@univerjs-pro/collaboration-client 0.2.4-alpha.0 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/es/index.js +1 -1
  3. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +2 -1
  4. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -1
  5. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +2 -1
  6. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +2 -1
  7. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +2 -1
  8. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +1 -1
  9. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +2 -1
  10. package/lib/types/controllers/collaboration/collaboration-state.d.ts +2 -1
  11. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +2 -1
  12. package/lib/types/index.d.ts +4 -0
  13. package/lib/types/models/cursor.d.ts +3 -1
  14. package/lib/types/plugin.d.ts +2 -1
  15. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +2 -1
  16. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +1 -1
  17. package/lib/types/services/local-cache/local-cache.service.d.ts +1 -1
  18. package/lib/types/services/permission/permission.service.d.ts +2 -1
  19. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +1 -1
  20. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +1 -1
  21. package/lib/types/services/socket/collaboration-socket.service.d.ts +1 -1
  22. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +1 -1
  23. package/lib/types/services/url/url.service.d.ts +1 -1
  24. package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +1 -0
  25. package/lib/umd/index.js +1 -1
  26. package/package.json +29 -27
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xade8c=_0x4292;(function(_0x21b30c,_0x3923af){const _0x10a9c4=_0x4292,_0x524235=_0x21b30c();while(!![]){try{const _0x508c70=parseInt(_0x10a9c4(0x217))/0x1*(parseInt(_0x10a9c4(0xff))/0x2)+-parseInt(_0x10a9c4(0x354))/0x3*(parseInt(_0x10a9c4(0x1ac))/0x4)+-parseInt(_0x10a9c4(0x11e))/0x5*(parseInt(_0x10a9c4(0x245))/0x6)+-parseInt(_0x10a9c4(0x33d))/0x7+parseInt(_0x10a9c4(0x2d1))/0x8+-parseInt(_0x10a9c4(0x1e8))/0x9+parseInt(_0x10a9c4(0x190))/0xa;if(_0x508c70===_0x3923af)break;else _0x524235['push'](_0x524235['shift']());}catch(_0x570b09){_0x524235['push'](_0x524235['shift']());}}}(_0x2636,0x68c84));var Bs=Object['defineProperty'],ks=(_0x39d76b,_0x5862bb,_0x1aa289)=>_0x5862bb in _0x39d76b?Bs(_0x39d76b,_0x5862bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aa289}):_0x39d76b[_0x5862bb]=_0x1aa289,l=(_0x542668,_0x459808,_0x58df3c)=>ks(_0x542668,typeof _0x459808!=_0xade8c(0x29e)?_0x459808+'':_0x459808,_0x58df3c);import{Disposable as _0x5297f3,toDisposable as _0x45cb21,UniverInstanceType as _0x9cd059,Inject as _0xd901da,UserManagerService as _0x371b9f,IUniverInstanceService as _0x3b87df,createIdentifier as _0xc3d169,DisposableCollection as _0x5e2383,IConfigService as _0x531a6b,ILogService as _0x255408,ISnapshotServerService as _0x5610c3,RxDisposable as _0x3fb7e3,LocaleService as _0x3fbf2b,Injector as _0x3c61ae,ILocalStorageService as _0x944e2d,Tools as _0x398800,ICommandService as _0x3f64f1,JSONX as _0x5d1c82,IPermissionService as _0x1b6020,IUndoRedoService as _0x1bc0b8,sequenceExecute as _0x45596a,OnLifecycle as _0x22ab7a,LifecycleStages as _0x35f1ee,Optional as _0x3badbf,CommandType as _0x25ba1e,Rectangle as _0x16c0da,ThemeService as _0x42d43e,useDependency as _0x2a3075,connectInjector as _0x5760b9,Workbook as _0x5e425c,textEncoder as _0x53c3e8,b64DecodeUnicode as _0x5ccd98,LocalUndoRedoService as _0x71087,IContextService as _0x23bea4,COLORS as _0x143f52,ColorKit as _0x410434,isInternalEditorID as _0x142b75,Plugin as _0xde0405,IAuthzIoService as _0x4e5c79,mergeOverrideWithDependencies as _0x2e36c0,DependentOn as _0x4bdc3b}from'@univerjs/core';import{SheetsSelectionsService as _0x49acad,SetSelectionsOperation as _0x45efda,InsertSheetMutation as _0x4fe9a1,WorkbookEditablePermission as _0xaddd59,RefRangeService as _0x2d1308,EffectRefRangId as _0x117f68,handleIRemoveRow as _0x4e9436,handleIRemoveCol as _0x4a8c83,handleMoveRange as _0x269fef,handleInsertRow as _0x59ae3e,handleInsertRangeMoveRight as _0x5acc49,handleInsertRangeMoveDown as _0x273ca7,handleInsertCol as _0x2fe4c1,handleDeleteRangeMoveUp as _0x1ec5bf,handleDeleteRangeMoveLeft as _0x4b1cd0,runRefRangeMutations as _0x40799b,SetWorksheetActivateCommand as _0x3fc4c1}from'@univerjs/sheets';import{MessageType as _0x4d4329}from'@univerjs/design';import{IBeforeCloseService as _0x477bf3,IMessageService as _0x48de42,INotificationService as _0x4cb594,useObservable as _0x190b58,BuiltInUIPart as _0x3b73a8,IUIPartsService as _0x6b2e9f}from'@univerjs/ui';import{CollaborationEvent as _0x1b9133,parseChangesetToProtocol as _0x391abe,RevisionService as _0x432311,isTransformMutationFailure as _0x1054d7,isTransformMutationsWithChangesetSuccess as _0x504c1f,ITransformService as _0x581964,mapDocumentTypeToUniverType as _0x19393c,isTransformChangesetsSuccess as _0x288394,CompressMutationService as _0x150830,parseProtocolChangeset as _0x28c9a8,SnapshotService as _0x570f37,isTransformMutationsWithChangesetFailure as _0xb6937e,UniverCollaborationPlugin as _0x4c40a3}from'@univerjs-pro/collaboration';import{merge as _0x52fd0c,Subject as _0x3718e0,BehaviorSubject as _0x1a37bf,distinctUntilChanged as _0x3cc420,fromEvent as _0x52fa92,of as _0x3ff30b,takeUntil as _0x2473df,debounceTime as _0x2ec9db,filter as _0x2a5048,switchMap as _0x2075a8,combineLatest as _0x5930bd,shareReplay as _0x23e965,mapTo as _0x53ba30,concatMap as _0x5af94b}from'rxjs';import{map as _0x176ea9,takeUntil as _0x68ef5b,take as _0x4efd5d,filter as _0x4c2296,delay as _0xf4f725,shareReplay as _0x3b73a3,switchMap as _0x1b27ff}from'rxjs/operators';import{IMEInputManagerService as _0x42fcd8,TextSelectionManagerService as _0x33f09e,serializeTextRange as _0x5b7fb3,DocStateChangeManagerService as _0x36a6d8,SetTextSelectionsOperation as _0x55ed86,RichTextEditingMutation as _0x372b8c,getDocObject as _0x570b80,DocSkeletonManagerService as _0x55bc8c}from'@univerjs/docs';import{HTTPService as _0x32bb9e,WebSocketService as _0x56a40f,MergeInterceptorFactory as _0x3f4d36,HTTPRequest as _0x2026b9,IHTTPImplementation as _0x2364b6,XHRHTTPImplementation as _0x11d4c7,ThresholdInterceptorFactory as _0x53aaa4}from'@univerjs/network';import{ImageSourceType as _0x146d1d,ImageUploadStatusType as _0x200c2c,IImageIoService as _0x355890}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x35f0e9,serializeRangeWithSheet as _0x1b1c8a}from'@univerjs/engine-formula';import _0x1ebe66 from'lodash/debounce';import{Shape as _0xd0c38,Rect as _0x2d5bd9,Vector2 as _0x4a4da3,IRenderManagerService as _0x1e26e7,NodePositionConvertToCursor as _0x362ef3,getColor as _0x42b6d4,TEXT_RANGE_LAYER_INDEX as _0x54aa29,RegularPolygon as _0x40800c}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x3c67f3,VIEWPORT_KEY as _0x1eba95,getCoordByCell as _0x287034,getSheetObject as _0x2a0247,SheetPermissionInitController as _0x331505}from'@univerjs/sheets-ui';import _0xeb971e,{forwardRef as _0x27c31b,useRef as _0x5ddd21,createElement as _0x5a9803}from'react';import _0xf44121 from'clsx';function _0x4292(_0xd54a48,_0x57481d){const _0x263610=_0x2636();return _0x4292=function(_0x4292b7,_0x37895d){_0x4292b7=_0x4292b7-0x78;let _0x183a12=_0x263610[_0x4292b7];return _0x183a12;},_0x4292(_0xd54a48,_0x57481d);}import{IRemoteInstanceService as _0x56e60a}from'@univerjs/rpc';const zi=_0xade8c(0xe1),Zi='/universer-api/snapshot',Qi='SNAPSHOT_URL_KEY',en=_0xade8c(0xa2),tn=0x7d0,sn=_0xade8c(0xf9),nn=_0xade8c(0x19a),rn=_0xade8c(0x39f),on=0x7530,bs=_0xade8c(0x385),Ts=0x2710,an='RETRY_CONNECTING_INTERVAL',cn=0x4e20,hn='RETRY_CONNECTING_MAX_COUNT',ln=0x3,_n=_0xade8c(0xde),un=0x3e8,dn=_0xade8c(0x377),fn=_0xade8c(0x23f),mn='LOGIN_URL_KEY',gn='/universer-api/oidc/authpage';var Rs=(_0x25a34b=>(_0x25a34b[_0x25a34b[_0xade8c(0x278)]=0x0]=_0xade8c(0x278),_0x25a34b[_0x25a34b['OK']=0x1]='OK',_0x25a34b[_0x25a34b['INTERNAL_ERROR']=0x2]=_0xade8c(0x389),_0x25a34b[_0x25a34b[_0xade8c(0x1a8)]=0x3]=_0xade8c(0x1a8),_0x25a34b[_0x25a34b[_0xade8c(0xef)]=0x4]=_0xade8c(0xef),_0x25a34b[_0x25a34b[_0xade8c(0x232)]=0x5]=_0xade8c(0x232),_0x25a34b[_0x25a34b[_0xade8c(0x33c)]=0x6]=_0xade8c(0x33c),_0x25a34b[_0x25a34b[_0xade8c(0xd9)]=0x7]=_0xade8c(0xd9),_0x25a34b[_0x25a34b['TOO_MANY_REQUESTS']=0x8]=_0xade8c(0x2d8),_0x25a34b[_0x25a34b[_0xade8c(0x196)]=0x9]=_0xade8c(0x196),_0x25a34b[_0x25a34b[_0xade8c(0x27d)]=0x1389]=_0xade8c(0x27d),_0x25a34b[_0x25a34b[_0xade8c(0x11f)]=0x1771]=_0xade8c(0x11f),_0x25a34b[_0x25a34b['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0xade8c(0x90),_0x25a34b[_0x25a34b[_0xade8c(0xf6)]=0x1b59]=_0xade8c(0xf6),_0x25a34b[_0x25a34b[_0xade8c(0x3ad)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x25a34b[_0x25a34b[_0xade8c(0xfd)]=0x1b5b]=_0xade8c(0xfd),_0x25a34b[_0x25a34b[_0xade8c(0x30e)]=0x1b5c]=_0xade8c(0x30e),_0x25a34b[_0x25a34b[_0xade8c(0xb4)]=0x1f41]=_0xade8c(0xb4),_0x25a34b[_0x25a34b[_0xade8c(0x276)]=0x2329]=_0xade8c(0x276),_0x25a34b[_0x25a34b[_0xade8c(0x14f)]=0x232a]=_0xade8c(0x14f),_0x25a34b[_0x25a34b[_0xade8c(0xb5)]=0x232b]=_0xade8c(0xb5),_0x25a34b[_0x25a34b[_0xade8c(0x327)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x25a34b[_0x25a34b['LICENSE_DISTRO_REJECTED']=0x232d]=_0xade8c(0x394),_0x25a34b[_0x25a34b[_0xade8c(0x2bb)]=0x2711]=_0xade8c(0x2bb),_0x25a34b[_0x25a34b['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0xade8c(0x103),_0x25a34b[_0x25a34b['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x25a34b))(Rs||{}),H=(_0x2505a2=>(_0x2505a2[_0x2505a2[_0xade8c(0xc5)]=0x0]=_0xade8c(0xc5),_0x2505a2[_0x2505a2[_0xade8c(0x1c7)]=0x1]='UNIVER_DOC',_0x2505a2[_0x2505a2[_0xade8c(0x3a3)]=0x2]=_0xade8c(0x3a3),_0x2505a2[_0x2505a2[_0xade8c(0x170)]=0x3]=_0xade8c(0x170),_0x2505a2[_0x2505a2['UNRECOGNIZED']=-0x1]=_0xade8c(0x36e),_0x2505a2))(H||{}),I=(_0x4322e2=>(_0x4322e2[_0x4322e2[_0xade8c(0x3a6)]=0x0]=_0xade8c(0x3a6),_0x4322e2[_0x4322e2['HELLO']=0x1]='HELLO',_0x4322e2[_0x4322e2[_0xade8c(0xa8)]=0x2]=_0xade8c(0xa8),_0x4322e2[_0x4322e2[_0xade8c(0x308)]=0x3]=_0xade8c(0x308),_0x4322e2[_0x4322e2['INGEST']=0x4]='INGEST',_0x4322e2[_0x4322e2[_0xade8c(0x1eb)]=0x5]=_0xade8c(0x1eb),_0x4322e2[_0x4322e2[_0xade8c(0x370)]=0x6]=_0xade8c(0x370),_0x4322e2[_0x4322e2[_0xade8c(0x36e)]=-0x1]=_0xade8c(0x36e),_0x4322e2))(I||{}),yt=(_0x22cef8=>(_0x22cef8[_0x22cef8[_0xade8c(0x1c0)]=0x0]='UNKNOWN_CODE',_0x22cef8[_0x22cef8['OK']=0x1]='OK',_0x22cef8[_0x22cef8[_0xade8c(0x140)]=0x2]=_0xade8c(0x140),_0x22cef8[_0x22cef8['UNRECOGNIZED']=-0x1]=_0xade8c(0x36e),_0x22cef8))(yt||{}),Sn=Object[_0xade8c(0x36b)],vn=Object[_0xade8c(0x22b)],pn=(_0x53e36c,_0x38424e,_0x5df1c5,_0x46e19d)=>{const _0xfd67c2=_0xade8c;for(var _0x17ef66=_0x46e19d>0x1?void 0x0:_0x46e19d?vn(_0x38424e,_0x5df1c5):_0x38424e,_0xcb4644=_0x53e36c[_0xfd67c2(0x331)]-0x1,_0x58d436;_0xcb4644>=0x0;_0xcb4644--)(_0x58d436=_0x53e36c[_0xcb4644])&&(_0x17ef66=(_0x46e19d?_0x58d436(_0x38424e,_0x5df1c5,_0x17ef66):_0x58d436(_0x17ef66))||_0x17ef66);return _0x46e19d&&_0x17ef66&&Sn(_0x38424e,_0x5df1c5,_0x17ef66),_0x17ef66;},Kt=(_0x5a0ae6,_0x48a509)=>(_0x2c6168,_0x5d9a80)=>_0x48a509(_0x2c6168,_0x5d9a80,_0x5a0ae6);let ne=class extends _0x5297f3{constructor(_0x5c04dd,_0xef95c){const _0x5e19c0=_0xade8c;super(),l(this,_0x5e19c0(0xf2),new Map()),(this[_0x5e19c0(0x1c2)]=_0x5c04dd,this[_0x5e19c0(0x1d9)]=_0xef95c,this[_0x5e19c0(0x1f1)](_0x45cb21(_0x52fd0c(this[_0x5e19c0(0x1c2)][_0x5e19c0(0x1a4)](_0x9cd059['UNIVER_SHEET'])[_0x5e19c0(0x2fe)](_0x176ea9(_0x1f9941=>_0x1f9941['getUnitId']())),this[_0x5e19c0(0x1c2)][_0x5e19c0(0x1a4)](_0x9cd059['UNIVER_DOC'])['pipe'](_0x176ea9(_0x318f67=>_0x318f67[_0x5e19c0(0x350)]())),this[_0x5e19c0(0x1c2)][_0x5e19c0(0x1a4)](_0x9cd059[_0x5e19c0(0x170)])['pipe'](_0x176ea9(_0x5059fb=>_0x5059fb['getUnitId']())))[_0x5e19c0(0xbf)](_0x258f93=>this[_0x5e19c0(0x20e)](_0x258f93)))));}[_0xade8c(0x174)](_0x147653){const _0x242f27=_0xade8c;this[_0x242f27(0x1d9)][_0x242f27(0x174)](_0x147653);}[_0xade8c(0x31f)](){const _0x5994be=_0xade8c;return this[_0x5994be(0x1d9)]['getCurrentUser']();}[_0xade8c(0x1ce)](_0x203037,_0x286bd5){const _0x529506=_0xade8c;let _0x46db06=this[_0x529506(0xf2)]['get'](_0x203037);_0x46db06||(_0x46db06=new In(),this[_0x529506(0xf2)][_0x529506(0xbd)](_0x203037,_0x46db06)),_0x46db06[_0x529506(0x1ce)](_0x286bd5);}[_0xade8c(0x32c)](_0x4b75a1,_0x54d24a){const _0x1b6998=_0xade8c,_0x37a6e7=this[_0x1b6998(0xf2)][_0x1b6998(0x275)](_0x4b75a1);_0x37a6e7&&_0x37a6e7[_0x1b6998(0x32c)](_0x54d24a);}[_0xade8c(0x2b2)](_0x1efd8f){const _0x1e85e9=_0xade8c;return this[_0x1e85e9(0xf2)][_0x1e85e9(0x275)](_0x1efd8f);}[_0xade8c(0xa5)](_0x6d9537,_0x2bb3ef){const _0x6d94c=_0xade8c,_0x479ffb=this['_roomMembers'][_0x6d94c(0x275)](_0x6d9537);if(_0x479ffb)return _0x479ffb[_0x6d94c(0xa5)](_0x2bb3ef);}[_0xade8c(0x20e)](_0x4d3ae7){const _0x3ff6c7=_0xade8c,_0x8210f6=this[_0x3ff6c7(0xf2)][_0x3ff6c7(0x275)](_0x4d3ae7);_0x8210f6&&(_0x8210f6[_0x3ff6c7(0x199)](),this[_0x3ff6c7(0xf2)][_0x3ff6c7(0x39d)](_0x4d3ae7));}[_0xade8c(0x199)](){const _0x5a6516=_0xade8c;this[_0x5a6516(0xf2)]['forEach'](_0x54e41e=>_0x54e41e['dispose']()),this[_0x5a6516(0xf2)][_0x5a6516(0x287)]();}};ne=pn([Kt(0x0,_0x3b87df),Kt(0x1,_0xd901da(_0x371b9f))],ne);class In extends _0x5297f3{constructor(){const _0x59fbbc=_0xade8c;super(...arguments),l(this,_0x59fbbc(0xc7),new Map());}['dispose'](){const _0x41ee51=_0xade8c;this[_0x41ee51(0xc7)][_0x41ee51(0x287)]();}[_0xade8c(0x1ce)](_0x4b8927){const _0x1dadbb=_0xade8c;this[_0x1dadbb(0xc7)][_0x1dadbb(0xbd)](_0x4b8927[_0x1dadbb(0x216)],_0x4b8927);}[_0xade8c(0x32c)](_0x41aa80){const _0x1c4e6c=_0xade8c;this['_members'][_0x1c4e6c(0x39d)](_0x41aa80);}[_0xade8c(0xa5)](_0x4a26c9){const _0x2d54f1=_0xade8c;return this[_0x2d54f1(0xc7)]['get'](_0x4a26c9);}}function En(_0x33a74d){const _0x219928=_0xade8c;var _0x5d91e5,_0x16e8ea,_0x7b1fe8,_0x5d6059;const _0x2b6881=_0x33a74d[_0x219928(0x19b)],_0x1a50c0=JSON['parse'](_0x2b6881);switch(_0x1a50c0[_0x219928(0x25f)]){case I['HEARTBEAT']:case I[_0x219928(0x219)]:{const _0x1a5581=_0x1a50c0[_0x219928(0x9b)];return{..._0x1a50c0,'data':_0x1a5581,'cmd':_0x1a50c0[_0x219928(0x25f)]};}case I[_0x219928(0xa8)]:{const _0x4b0ba8=_0x1a50c0[_0x219928(0xb0)];return{..._0x1a50c0,'data':_0x4b0ba8,'cmd':_0x1a50c0[_0x219928(0x25f)]};}case I['RECV']:{const _0x3fef90=_0x1a50c0[_0x219928(0x393)];switch(_0x3fef90['eventID']){case _0x1b9133['PERMISSION_REJ']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x5d91e5=_0x3fef90[_0x219928(0x367)])==null?void 0x0:_0x5d91e5['cs']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x29b)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x16e8ea=_0x3fef90[_0x219928(0x179)])==null?void 0x0:_0x16e8ea['cs']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x1a9)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x7b1fe8=_0x3fef90['newCsEvent'])==null?void 0x0:_0x7b1fe8['cs']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133['CHANGESET_REJ']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':(_0x5d6059=_0x3fef90[_0x219928(0xb9)])==null?void 0x0:_0x5d6059['cs']},'cmd':_0x1a50c0['cmd']};case _0x1b9133[_0x219928(0x390)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x10d)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x25a)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0xe0)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x8b)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x36d)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x250)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90['liveShareNewHost']},'cmd':_0x1a50c0['cmd']};case _0x1b9133['LIVESHARE_FETCH_OPERATIONS']:case _0x1b9133['LIVESHARE_OPERATION']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x2a8)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0xf8)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0xe8)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x1a3)]:return{..._0x1a50c0,'data':_0x3fef90,'cmd':_0x1a50c0['cmd']};case _0x1b9133[_0x219928(0xdf)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x24b)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133[_0x219928(0x130)]:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90['updatePermissionObjEvent']},'cmd':_0x1a50c0[_0x219928(0x25f)]};case _0x1b9133['SHOULD_CLOSE_CONN']:return{..._0x1a50c0,'data':{..._0x3fef90,'data':_0x3fef90[_0x219928(0x3b7)]},'cmd':_0x1a50c0[_0x219928(0x25f)]};default:return _0x1a50c0;}}default:return _0x1a50c0;}}function Cn(_0x1bc10a){const _0x2b2f5e=_0xade8c;switch(_0x1bc10a[_0x2b2f5e(0x25f)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a['cmd'],'routeKey':_0x1bc10a['routeKey']});case I[_0x2b2f5e(0x315)]:{let _0x2ae2e2;switch(_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x13b)]){case _0x1b9133['UPDATE_CURSOR']:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x390)],'updateCursorEvent':_0x1bc10a['data'][_0x2b2f5e(0x19b)]};break;}case _0x1b9133['USERS_LEAVE']:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x8b)],'leaveEvent':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x25a)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x25a)],'joinEvent':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x250)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x250)],'liveShareNewHost':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x2a0)]:{_0x2ae2e2={'eventID':_0x1b9133['LIVESHARE_OPERATION'],'liveShareOperation':_0x1bc10a[_0x2b2f5e(0x19b)][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0xf8)]:{_0x2ae2e2={'eventID':_0x1b9133['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1bc10a['data'][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x1cc)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x1cc)],'liveShareRequestHost':_0x1bc10a['data'][_0x2b2f5e(0x19b)]};break;}case _0x1b9133[_0x2b2f5e(0x259)]:{_0x2ae2e2={'eventID':_0x1b9133[_0x2b2f5e(0x259)]};break;}default:_0x2ae2e2={'eventID':_0x1bc10a[_0x2b2f5e(0x19b)]['eventID']};}return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a[_0x2b2f5e(0x25f)],'routeKey':_0x1bc10a[_0x2b2f5e(0x2c5)],'collaMsg':_0x2ae2e2});}case I[_0x2b2f5e(0xa8)]:return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a[_0x2b2f5e(0x25f)],'routeKey':_0x1bc10a[_0x2b2f5e(0x2c5)],'joinReq':_0x1bc10a[_0x2b2f5e(0x19b)]});case I[_0x2b2f5e(0x308)]:return JSON[_0x2b2f5e(0x2b0)]({'cmd':_0x1bc10a[_0x2b2f5e(0x25f)],'routeKey':_0x1bc10a[_0x2b2f5e(0x2c5)],'leaveReq':_0x1bc10a[_0x2b2f5e(0x19b)]});default:throw new Error(_0x2b2f5e(0x155));}}var bn=Object[_0xade8c(0x36b)],Tn=Object['getOwnPropertyDescriptor'],Rn=(_0x58b028,_0x23dfea,_0x593207,_0xae2026)=>{for(var _0x58a514=_0xae2026>0x1?void 0x0:_0xae2026?Tn(_0x23dfea,_0x593207):_0x23dfea,_0x1c692a=_0x58b028['length']-0x1,_0x1074a3;_0x1c692a>=0x0;_0x1c692a--)(_0x1074a3=_0x58b028[_0x1c692a])&&(_0x58a514=(_0xae2026?_0x1074a3(_0x23dfea,_0x593207,_0x58a514):_0x1074a3(_0x58a514))||_0x58a514);return _0xae2026&&_0x58a514&&bn(_0x23dfea,_0x593207,_0x58a514),_0x58a514;},Ee=(_0x4879c5,_0x18cac9)=>(_0x3ce321,_0x46430e)=>_0x18cac9(_0x3ce321,_0x46430e,_0x4879c5);const Os=_0xc3d169(_0xade8c(0x25d));function On(_0x163d19,_0x3ffc48,_0x18e210){const _0x5a2dbd=_0xade8c;return _0x163d19+'/'+_0x3ffc48+_0x5a2dbd(0x302)+_0x18e210+_0x5a2dbd(0x32e);}let gt=class{constructor(_0x3a207a,_0x272a1f,_0x1dfae9,_0x1259c9,_0x19969f){const _0x2af20c=_0xade8c;this[_0x2af20c(0x11b)]=_0x3a207a,this[_0x2af20c(0x335)]=_0x272a1f,this[_0x2af20c(0x253)]=_0x1dfae9,this[_0x2af20c(0x37f)]=_0x1259c9,this[_0x2af20c(0x355)]=_0x19969f;}['createSocket'](_0x122be5){const _0x392464=_0xade8c,_0x59178d=this['_ws']['createSocket'](_0x122be5);if(!_0x59178d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1b6a3d=new _0x5e2383(),_0x3aa7c0=new _0x3718e0();_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(_0x59178d[_0x392464(0x285)]['subscribe'](_0x159ff1=>_0x3aa7c0[_0x392464(0xab)](_0x159ff1)))),_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(()=>_0x3aa7c0['complete']()));const _0xeb16a=new _0x3718e0();_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(_0x59178d['error$'][_0x392464(0xbf)](_0x54ba92=>_0xeb16a['next'](_0x54ba92)))),_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(()=>_0xeb16a[_0x392464(0x239)]()));const _0x45bf6d=new _0x3718e0();_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(_0x59178d[_0x392464(0x20c)][_0x392464(0xbf)](_0x5d59be=>{const _0x2ad90c=_0x392464,_0x98ec8a=En(_0x5d59be);_0x45bf6d[_0x2ad90c(0xab)](_0x98ec8a);}))),_0x1b6a3d[_0x392464(0x21f)](_0x45cb21(()=>_0x45bf6d[_0x392464(0x239)]()));const _0x107b0c=()=>{const _0x2ea338=_0x392464;_0xeb16a[_0x2ea338(0xab)](new Event(_0x2ea338(0x13a))),_0x3aa7c0['next'](new CloseEvent(_0x2ea338(0x13a))),_0x743285['close']();},_0x743285={'memberID':'','close$':_0x3aa7c0['asObservable'](),'error$':_0xeb16a[_0x392464(0x329)](),'open$':_0x59178d['open$'],'message$':_0x45bf6d[_0x392464(0x329)](),'send':_0x54ffea=>{const _0x49b573=_0x392464;if(_0x54ffea[_0x49b573(0x25f)]===I[_0x49b573(0x315)]){if(_0x54ffea['data'][_0x49b573(0x13b)]===_0x1b9133[_0x49b573(0x35a)]){this[_0x49b573(0x391)](_0x743285,_0x54ffea[_0x49b573(0x19b)])[_0x49b573(0x23d)](_0xb9ffb2=>{const _0x555ece=_0x49b573;this[_0x555ece(0x37f)]['error'](_0xb9ffb2),_0x107b0c();});return;}if(_0x54ffea['data'][_0x49b573(0x13b)]===_0x1b9133[_0x49b573(0x34f)]){const _0x5c32a7=_0x54ffea[_0x49b573(0x19b)];this[_0x49b573(0x358)](_0x5c32a7)[_0x49b573(0x2dd)](_0x484349=>{const _0x500ed6=_0x49b573;_0x45bf6d[_0x500ed6(0xab)]({'cmd':I[_0x500ed6(0x370)],'code':yt['OK'],'routeKey':_0x5c32a7['data'][_0x500ed6(0x14d)],'routeType':'','data':{'eventID':_0x1b9133[_0x500ed6(0x25b)],'data':{'changesets':_0x484349}}});})[_0x49b573(0x23d)](_0x54a682=>{const _0x30eae1=_0x49b573;this[_0x30eae1(0x37f)][_0x30eae1(0x2cf)](_0x54a682),_0x107b0c();});return;}}_0x59178d['send'](Cn(_0x54ffea));},'close':()=>{const _0x29d813=_0x392464;_0x59178d[_0x29d813(0x17e)](),_0x1b6a3d[_0x29d813(0x199)]();}};return _0x743285;}async[_0xade8c(0x391)](_0x4372ec,_0x3f26a5){const _0x59b82b=_0xade8c;var _0x576ae2;const {unitType:_0x903c27,unitID:_0x27009a,changeset:_0x253338}=_0x3f26a5[_0x59b82b(0x19b)],_0x4b9ade={'unitID':_0x27009a,'memberID':_0x4372ec[_0x59b82b(0x216)],'type':_0x903c27,'changeset':_0x391abe(_0x253338)},_0x5b7e86=On((_0x576ae2=this[_0x59b82b(0x253)]['getConfig'](dn))!=null?_0x576ae2:fn,_0x903c27,_0x27009a);try{await this['_http'][_0x59b82b(0x35d)](_0x5b7e86,{'body':_0x4b9ade});}catch(_0x1217c8){throw this[_0x59b82b(0x37f)][_0x59b82b(0x2cf)]('[CollaborationSession]',_0x59b82b(0x305)),_0x1217c8;}}async[_0xade8c(0x358)](_0x2dff58){const _0x3459f3=_0xade8c,{unitID:_0x28ed22,from:_0xdb46cb,to:_0x42f5d5,unitType:_0x41e4bf}=_0x2dff58[_0x3459f3(0x19b)];return(await this[_0x3459f3(0x355)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x28ed22,'type':_0x41e4bf,'from':_0xdb46cb,'to':_0x42f5d5}))[_0x3459f3(0xe4)];}};gt=Rn([Ee(0x0,_0xd901da(_0x32bb9e)),Ee(0x1,_0xd901da(_0x56a40f)),Ee(0x2,_0x531a6b),Ee(0x3,_0x255408),Ee(0x4,_0x5610c3)],gt);class Ds{constructor(){const _0x23492c=_0xade8c;l(this,_0x23492c(0x8d),new _0x3718e0()),l(this,_0x23492c(0x115),this[_0x23492c(0x8d)][_0x23492c(0x329)]());}[_0xade8c(0x96)](_0x5c0ea8){const _0x179267=_0xade8c;this[_0x179267(0x8d)][_0x179267(0xab)](_0x5c0ea8);}}var Dn=Object[_0xade8c(0x36b)],Pn=Object[_0xade8c(0x22b)],Ps=(_0x351f34,_0x3c5a2e,_0x2659b6,_0x337e85)=>{const _0x12224b=_0xade8c;for(var _0x9fdb39=_0x337e85>0x1?void 0x0:_0x337e85?Pn(_0x3c5a2e,_0x2659b6):_0x3c5a2e,_0x4675e8=_0x351f34[_0x12224b(0x331)]-0x1,_0x2c1fa0;_0x4675e8>=0x0;_0x4675e8--)(_0x2c1fa0=_0x351f34[_0x4675e8])&&(_0x9fdb39=(_0x337e85?_0x2c1fa0(_0x3c5a2e,_0x2659b6,_0x9fdb39):_0x2c1fa0(_0x9fdb39))||_0x9fdb39);return _0x337e85&&_0x9fdb39&&Dn(_0x3c5a2e,_0x2659b6,_0x9fdb39),_0x9fdb39;},M=(_0x562975,_0x3af1d8)=>(_0x22db07,_0x1bdd7f)=>_0x3af1d8(_0x22db07,_0x1bdd7f,_0x562975),de=(_0x3e8c2e=>(_0x3e8c2e[_0x3e8c2e['IDLE']=0x0]=_0xade8c(0x3ac),_0x3e8c2e[_0x3e8c2e[_0xade8c(0x3b6)]=0x1]=_0xade8c(0x3b6),_0x3e8c2e[_0x3e8c2e['OFFLINE']=0x2]=_0xade8c(0x262),_0x3e8c2e[_0x3e8c2e['ONLINE']=0x3]=_0xade8c(0x241),_0x3e8c2e))(de||{});let St=class extends _0x3fb7e3{constructor(_0x3cb910,_0x19f58e,_0x4ca11b,_0x566164,_0x250393,_0x27ebfa,_0x23dfce,_0x29cb0b,_0x338d20){const _0x45c73f=_0xade8c;super(),l(this,_0x45c73f(0x2fa),new _0x1a37bf(0x0)),l(this,_0x45c73f(0x17f),this[_0x45c73f(0x2fa)]['asObservable']()),l(this,_0x45c73f(0x2b7),new _0x3718e0()),l(this,_0x45c73f(0x2ea),this[_0x45c73f(0x2b7)][_0x45c73f(0x329)]()),l(this,'_socket'),l(this,_0x45c73f(0x39a)),l(this,'_collaborationTimeoutTimer'),(this[_0x45c73f(0x34b)]=_0x3cb910,this[_0x45c73f(0x37f)]=_0x4ca11b,this[_0x45c73f(0x272)]=_0x566164,this[_0x45c73f(0x368)]=_0x250393,this['_configService']=_0x27ebfa,this[_0x45c73f(0x148)]=_0x23dfce,this[_0x45c73f(0x311)]=_0x29cb0b,this[_0x45c73f(0x388)]=_0x338d20,_0x19f58e['pipe'](_0x68ef5b(this[_0x45c73f(0x13d)]))['subscribe'](_0x4bc210=>{const _0x4e8b9e=_0x45c73f;var _0x5150c2;typeof _0x4bc210>'u'||(this[_0x4e8b9e(0x14c)]=_0x4bc210,_0x4bc210?(this[_0x4e8b9e(0x3a7)](_0x4bc210),this[_0x4e8b9e(0x39a)]=this[_0x4e8b9e(0x14c)][_0x4e8b9e(0x20c)][_0x4e8b9e(0xbf)](_0x18496e=>{const _0x5d64de=_0x4e8b9e;_0x18496e[_0x5d64de(0x2c5)]===this[_0x5d64de(0x34b)]&&this['_onCombEvent'](_0x18496e);})):(this[_0x4e8b9e(0x2fa)][_0x4e8b9e(0xab)](0x2),(_0x5150c2=this[_0x4e8b9e(0x39a)])==null||_0x5150c2['unsubscribe'](),this[_0x4e8b9e(0x39a)]=null));}),this[_0x45c73f(0x1f1)](this['_beforeCloseService'][_0x45c73f(0x3a8)](()=>{const _0xa8b2e3=_0x45c73f;var _0x106051;(_0x106051=this['_socket'])==null||_0x106051['send']({'cmd':I['LEAVE'],'data':{'roomID':this[_0xa8b2e3(0x34b)]}});})));}get['sessionStatus'](){const _0xa26297=_0xade8c;return this['_sessionStatus$'][_0xa26297(0x17d)]();}[_0xade8c(0xdc)](){const _0x5c25a9=_0xade8c;var _0x5c359f,_0x461e8c;return(_0x461e8c=(_0x5c359f=this[_0x5c25a9(0x14c)])==null?void 0x0:_0x5c359f[_0x5c25a9(0x216)])!=null?_0x461e8c:null;}[_0xade8c(0x199)](){const _0x551025=_0xade8c;super[_0x551025(0x199)](),this[_0x551025(0x13d)][_0x551025(0xab)](),this[_0x551025(0x13d)]['complete']();}[_0xade8c(0x17e)](){const _0x26646b=_0xade8c;var _0x1ec21d,_0x8a75f;(_0x1ec21d=this[_0x26646b(0x14c)])==null||_0x1ec21d[_0x26646b(0x18a)]({'cmd':I[_0x26646b(0x308)],'data':{'roomID':this[_0x26646b(0x34b)]}}),this[_0x26646b(0x2b7)][_0x26646b(0x239)](),this[_0x26646b(0x2fa)][_0x26646b(0x239)](),(_0x8a75f=this[_0x26646b(0x14c)])==null||_0x8a75f['close'](),this['dispose']();}[_0xade8c(0x3aa)](_0x9445f9){const _0x2fd48c=_0xade8c;_0x9445f9[_0x2fd48c(0x25f)]===I[_0x2fd48c(0xa8)]?this['_onJoinRoomEvent'](_0x9445f9):_0x9445f9[_0x2fd48c(0x25f)]===I[_0x2fd48c(0x370)]&&this[_0x2fd48c(0x347)](_0x9445f9);}['_joinRoom'](_0x21d843){const _0xee7f40=_0xade8c;this['_sessionStatus$'][_0xee7f40(0xab)](0x1),_0x21d843[_0xee7f40(0x18a)]({'cmd':I[_0xee7f40(0xa8)],'routeKey':this[_0xee7f40(0x34b)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0xade8c(0x274)](_0x142a77){const _0x5537a3=_0xade8c;var _0x5783be;if(_0x142a77[_0x5537a3(0x2d3)]===yt['FAIL']){this['_messageService'][_0x5537a3(0xfa)]({'type':_0x4d4329[_0x5537a3(0x398)],'content':this[_0x5537a3(0x148)]['t'](_0x5537a3(0x221))}),this[_0x5537a3(0x2fa)][_0x5537a3(0xab)](0x2);return;}this[_0x5537a3(0x2fa)]['next'](0x3);const _0x1c4c0f=(_0x5783be=_0x142a77['data']['roomInfos'][this[_0x5537a3(0x34b)]])==null?void 0x0:_0x5783be[_0x5537a3(0x279)];_0x1c4c0f&&_0x1c4c0f[_0x5537a3(0x2f2)](_0x46a7bd=>this['_memberService']['updateMember'](this[_0x5537a3(0x34b)],_0x46a7bd));}[_0xade8c(0x347)](_0x2c0e9f){const _0x24a36b=_0xade8c;try{const _0x28fc1c=_0x2c0e9f[_0x24a36b(0x19b)];switch(_0x28fc1c[_0x24a36b(0x13b)]){case _0x1b9133[_0x24a36b(0x25a)]:this[_0x24a36b(0xca)](_0x28fc1c),this['_event$'][_0x24a36b(0xab)](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0x8b)]:this[_0x24a36b(0x357)](_0x28fc1c),this[_0x24a36b(0x2b7)]['next'](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0x29b)]:this[_0x24a36b(0x1cd)](),this[_0x24a36b(0x2b7)][_0x24a36b(0xab)](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0x1a3)]:this['_logService'][_0x24a36b(0x2cf)](_0x24a36b(0x1d4)+JSON[_0x24a36b(0x2b0)](_0x28fc1c)),this[_0x24a36b(0x2b7)][_0x24a36b(0xab)](_0x28fc1c);break;case _0x1b9133[_0x24a36b(0xdf)]:this['_commentService'][_0x24a36b(0x96)](_0x28fc1c[_0x24a36b(0x19b)]),this[_0x24a36b(0x2b7)][_0x24a36b(0xab)](_0x28fc1c);break;default:this[_0x24a36b(0x2b7)]['next'](_0x28fc1c);}}catch(_0x3c4978){this['_logService']['error'](_0x3c4978,_0x2c0e9f);}}[_0xade8c(0xca)](_0x14cdeb){const _0x1c7178=_0xade8c;this[_0x1c7178(0x311)]['updateMember'](this[_0x1c7178(0x34b)],_0x14cdeb['data']);}[_0xade8c(0x357)](_0x552388){const _0x561f38=_0xade8c;this[_0x561f38(0x311)]['removeMember'](this[_0x561f38(0x34b)],_0x552388[_0x561f38(0x19b)][_0x561f38(0x216)]);}async['send'](_0x5b826d,_0x2adbd8){const _0x22e1d7=_0xade8c;if(this[_0x22e1d7(0x273)]!==0x3||!this[_0x22e1d7(0x14c)])throw new Error(_0x22e1d7(0x231));try{_0x5b826d['eventID']===_0x1b9133['NEW_CHANGESETS']&&this[_0x22e1d7(0x159)](),this[_0x22e1d7(0x14c)]['send']({'cmd':I[_0x22e1d7(0x315)],'routeKey':_0x2adbd8,'routeType':'','data':_0x5b826d});}catch(_0x4b9973){this[_0x22e1d7(0x37f)][_0x22e1d7(0x2cf)](_0x4b9973);}}[_0xade8c(0x159)](){const _0x564789=_0xade8c;var _0x503560;this[_0x564789(0x286)]=window[_0x564789(0x234)](()=>{const _0x4d13f7=_0x564789;this[_0x4d13f7(0x286)]=null,this[_0x4d13f7(0x368)][_0x4d13f7(0xfa)]({'type':_0x4d4329[_0x4d13f7(0xbe)],'content':this[_0x4d13f7(0x148)]['t']('session.collaboration-timeout')});},(_0x503560=this[_0x564789(0x253)]['getConfig'](bs))!=null?_0x503560:Ts);}[_0xade8c(0x1cd)](){const _0x4b0a98=_0xade8c;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4b0a98(0x286)]),this[_0x4b0a98(0x286)]=null);}};St=Ps([M(0x2,_0x255408),M(0x3,_0x477bf3),M(0x4,_0x48de42),M(0x5,_0x531a6b),M(0x6,_0xd901da(_0x3fbf2b)),M(0x7,_0xd901da(ne)),M(0x8,_0xd901da(Ds))],St);let ge=class extends _0x5297f3{constructor(_0x93a508,_0x6dd421,_0x161d81,_0x4fd5f1,_0x1d5b69,_0x31f97a){const _0x1c0072=_0xade8c;super(),l(this,_0x1c0072(0x2b4),new _0x1a37bf(void 0x0)),l(this,_0x1c0072(0x1c9),new Map()),l(this,_0x1c0072(0x257),new _0x1a37bf(0x0)),l(this,_0x1c0072(0x1ed),this['_status$'][_0x1c0072(0x329)]()),l(this,_0x1c0072(0x26a),!0x1),l(this,_0x1c0072(0x197)),l(this,_0x1c0072(0x2de)),l(this,'_retryConnectingTimer'),l(this,_0x1c0072(0x12e),0x0),(this[_0x1c0072(0xcc)]=_0x93a508,this['_localeService']=_0x6dd421,this['_messageService']=_0x161d81,this[_0x1c0072(0x37f)]=_0x4fd5f1,this['_configService']=_0x1d5b69,this['_socketService']=_0x31f97a);}get[_0xade8c(0x14c)](){const _0xdd0aba=_0xade8c;return this[_0xdd0aba(0x2b4)][_0xdd0aba(0x17d)]();}['dispose'](){const _0x553dc4=_0xade8c;super['dispose'](),this[_0x553dc4(0x1c9)]['forEach'](_0x1be397=>_0x1be397[_0x553dc4(0x199)]()),this['_sessions']['clear'](),this[_0x553dc4(0x257)]['complete']();}async[_0xade8c(0x12b)](_0x1c1923){const _0x49817a=_0xade8c;if(this[_0x49817a(0x1c9)][_0x49817a(0x1e7)](_0x1c1923))return this['_sessions'][_0x49817a(0x275)](_0x1c1923);this[_0x49817a(0x242)]();const _0x569f94=this[_0x49817a(0xcc)][_0x49817a(0x371)](St,_0x1c1923,this[_0x49817a(0x2b4)][_0x49817a(0x329)]());return this[_0x49817a(0x1c9)][_0x49817a(0xbd)](_0x1c1923,_0x569f94),_0x569f94;}[_0xade8c(0x38a)](_0x1db196){const _0x100c5a=_0xade8c;var _0x101697;const _0x2c2a3f=this[_0x100c5a(0x1c9)][_0x100c5a(0x275)](_0x1db196);_0x2c2a3f&&(this[_0x100c5a(0x1c9)][_0x100c5a(0x39d)](_0x1db196),_0x2c2a3f[_0x100c5a(0x17e)]()),this[_0x100c5a(0x1c9)]['size']||(_0x101697=this['_socket'])==null||_0x101697[_0x100c5a(0x17e)]();}['_createSocket'](){const _0xd779f7=_0xade8c;var _0x56f197;const _0x953530=(_0x56f197=this[_0xd779f7(0x253)][_0xd779f7(0x1df)](sn))!=null?_0x56f197:nn;return this[_0xd779f7(0x1b6)][_0xd779f7(0x133)](_0x953530);}[_0xade8c(0x242)](){const _0x10cec3=_0xade8c;try{const _0x28d583=this[_0x10cec3(0x1e5)]();if(_0x28d583){const _0x2d9b02=_0x28d583[_0x10cec3(0x18a)];_0x28d583['send']=_0x410133=>(this['_rescheduleHeartbeatEvent'](),_0x2d9b02[_0x10cec3(0x277)](_0x28d583,[_0x410133])),_0x28d583[_0x10cec3(0x20c)]['subscribe'](_0x5c22b0=>this['_onMessage'](_0x28d583,_0x5c22b0)),_0x28d583[_0x10cec3(0x1bf)][_0x10cec3(0x2fe)](_0x4efd5d(0x1))[_0x10cec3(0xbf)](_0x4928e1=>this[_0x10cec3(0x37f)]['error'](_0x10cec3(0x28a),_0x4928e1)),_0x28d583['open$']['pipe'](_0x4efd5d(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x28d583);}),_0x28d583[_0x10cec3(0x285)][_0x10cec3(0x2fe)](_0x4efd5d(0x1))[_0x10cec3(0xbf)](_0x4daaf4=>{const _0x4be295=_0x10cec3;this[_0x4be295(0x37f)][_0x4be295(0x180)]('[CollaborationSessionService]',_0x4be295(0x149),_0x4daaf4),this[_0x4be295(0x38b)]();});}}catch(_0x497487){this[_0x10cec3(0x37f)][_0x10cec3(0x2cf)](_0x497487),this[_0x10cec3(0x38b)]();}}[_0xade8c(0x160)](_0x216336){const _0x1a094c=_0xade8c;this['_logService'][_0x1a094c(0x180)](_0x1a094c(0x248),_0x1a094c(0x2e3)),_0x216336[_0x1a094c(0x18a)]({'cmd':I[_0x1a094c(0x219)]}),this[_0x1a094c(0x260)]();}[_0xade8c(0x38b)](){const _0x38cdc8=_0xade8c;var _0x105394;this[_0x38cdc8(0x257)][_0x38cdc8(0xab)](0x2),this['_socket$']['next'](null),this['_clearTimeoutTimer'](),this[_0x38cdc8(0x236)](),this[_0x38cdc8(0x26a)]=!0x1,this[_0x38cdc8(0x12e)]<((_0x105394=this[_0x38cdc8(0x253)][_0x38cdc8(0x1df)](hn))!=null?_0x105394:ln)?(this['_scheduleReconnection'](this[_0x38cdc8(0x12e)]),this[_0x38cdc8(0x12e)]+=0x1):this[_0x38cdc8(0x368)][_0x38cdc8(0xfa)]({'type':_0x4d4329[_0x38cdc8(0xbe)],'content':this['_localeService']['t'](_0x38cdc8(0x11c))});}[_0xade8c(0x1b5)](_0x4dda43){const _0x196abe=_0xade8c;var _0x46d726;const _0xac68b=((_0x46d726=this[_0x196abe(0x253)][_0x196abe(0x1df)](an))!=null?_0x46d726:cn)*0x2**_0x4dda43;this[_0x196abe(0x368)][_0x196abe(0xfa)]({'type':_0x4d4329['Warning'],'content':this['_localeService']['t']('session.will-retry')}),this[_0x196abe(0x26d)]=setTimeout(()=>{const _0x4759f1=_0x196abe;this[_0x4759f1(0x242)](),clearTimeout(this[_0x4759f1(0x26d)]),this['_retryConnectingTimer']=null;},_0xac68b);}[_0xade8c(0x260)](){const _0x102aa8=_0xade8c;var _0x46fc26;this[_0x102aa8(0x236)](),this[_0x102aa8(0x197)]=setTimeout(()=>this[_0x102aa8(0x2da)](),(_0x46fc26=this[_0x102aa8(0x253)][_0x102aa8(0x1df)](rn))!=null?_0x46fc26:on);}[_0xade8c(0x2da)](){const _0x28b203=_0xade8c;this[_0x28b203(0x14c)][_0x28b203(0x18a)]({'cmd':I[_0x28b203(0x1eb)]}),this['_waitForHeartbeatResponse']();}[_0xade8c(0x382)](){const _0x5803f7=_0xade8c;var _0x19c4c2;this[_0x5803f7(0x2de)]=setTimeout(()=>this[_0x5803f7(0x38b)](),(_0x19c4c2=this[_0x5803f7(0x253)][_0x5803f7(0x1df)](bs))!=null?_0x19c4c2:Ts);}[_0xade8c(0x1ea)](_0x46b920,_0x14e17d){const _0x35ff9b=_0xade8c,{cmd:_0x437575}=_0x14e17d;_0x437575===I[_0x35ff9b(0x219)]&&!this[_0x35ff9b(0x26a)]&&(_0x46b920[_0x35ff9b(0x216)]=_0x14e17d[_0x35ff9b(0x19b)][_0x35ff9b(0x216)],this['_socket$'][_0x35ff9b(0xab)](_0x46b920),this['_status$'][_0x35ff9b(0xab)](0x3),this[_0x35ff9b(0x26a)]=!0x0),_0x437575===I[_0x35ff9b(0x1eb)]&&this['_clearTimeoutTimer'](),this[_0x35ff9b(0x260)]();}[_0xade8c(0x236)](){const _0x1c47fc=_0xade8c;this[_0x1c47fc(0x197)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x1c47fc(0x197)]=null);}[_0xade8c(0x127)](){const _0x57e3f7=_0xade8c;this[_0x57e3f7(0x2de)]!=null&&(clearTimeout(this[_0x57e3f7(0x2de)]),this['_timeoutTimer']=null);}};ge=Ps([M(0x0,_0xd901da(_0x3c61ae)),M(0x1,_0xd901da(_0x3fbf2b)),M(0x2,_0x48de42),M(0x3,_0x255408),M(0x4,_0x531a6b),M(0x5,Os)],ge);var wn=Object[_0xade8c(0x36b)],Nn=Object['getOwnPropertyDescriptor'],Mn=(_0x3d7949,_0x53476a,_0x5f9b89,_0x504fde)=>{const _0x5ad7a5=_0xade8c;for(var _0x545046=_0x504fde>0x1?void 0x0:_0x504fde?Nn(_0x53476a,_0x5f9b89):_0x53476a,_0x1144fe=_0x3d7949[_0x5ad7a5(0x331)]-0x1,_0xae66f6;_0x1144fe>=0x0;_0x1144fe--)(_0xae66f6=_0x3d7949[_0x1144fe])&&(_0x545046=(_0x504fde?_0xae66f6(_0x53476a,_0x5f9b89,_0x545046):_0xae66f6(_0x545046))||_0x545046);return _0x504fde&&_0x545046&&wn(_0x53476a,_0x5f9b89,_0x545046),_0x545046;},Ce=(_0x5cff04,_0x2c8066)=>(_0x3a951f,_0x5e5617)=>_0x2c8066(_0x3a951f,_0x5e5617,_0x5cff04);let D=class extends _0x5297f3{constructor(_0x2e9de0,_0x299797,_0x43c333,_0x39ca4b,_0xb9e059){const _0x822978=_0xade8c;super(),l(this,_0x822978(0x13f),new Map()),l(this,_0x822978(0x243),new Map()),l(this,'_disabled',!0x1),(this[_0x822978(0x253)]=_0x2e9de0,this['_localStorageService']=_0x299797,this[_0x822978(0x272)]=_0x43c333,this['_localeService']=_0x39ca4b,this[_0x822978(0x30a)]=_0xb9e059,this[_0x822978(0x295)]());}[_0xade8c(0x164)](){const _0x3077e5=_0xade8c;this[_0x3077e5(0x26b)]=!0x0;}[_0xade8c(0x3ab)](){const _0x10573a=_0xade8c;this[_0x10573a(0x26b)]=!0x1;}['dispose'](){const _0x42f673=_0xade8c;this[_0x42f673(0x163)]()[_0x42f673(0x2dd)](()=>super[_0x42f673(0x199)]());}async[_0xade8c(0x1c1)](_0x561713){const _0xbbbb28=_0xade8c;return this[_0xbbbb28(0x26b)]?null:this[_0xbbbb28(0x121)]['getItem'](Xt(_0x561713));}async[_0xade8c(0x2f9)](_0xb78ddb,_0x3eacaa){const _0x4e0816=_0xade8c;return!!this['_localStorageService'][_0x4e0816(0x284)](_0xb78ddb,_0x3eacaa);}['updateOfflineData'](_0x4b093,_0x352f81,_0xe733ad,_0x32a301){const _0xe5ab94=_0xade8c,_0x1a6ace=this[_0xe5ab94(0x30a)][_0xe5ab94(0x7e)](_0x4b093);this[_0xe5ab94(0x13f)]['set'](_0x4b093,{'unitID':_0x4b093,'type':_0x352f81,'awaitingChangeset':_0xe733ad,'mutations':_0x32a301,'rev':_0x1a6ace}),this[_0xe5ab94(0x243)][_0xe5ab94(0x1e7)](_0x4b093)||this[_0xe5ab94(0x173)](_0x4b093);}['_scheduleSaving'](_0x3b6dc1){const _0x245349=_0xade8c,_0x191cd0=this['_getSaveTimeout']();_0x191cd0===0x0?this[_0x245349(0x384)](_0x3b6dc1):this[_0x245349(0x243)][_0x245349(0xbd)](_0x3b6dc1,setTimeout(()=>this[_0x245349(0x384)](_0x3b6dc1),_0x191cd0));}[_0xade8c(0x9f)](){const _0x1b8f80=_0xade8c;var _0x4d1ce1;return(_0x4d1ce1=this[_0x1b8f80(0x253)][_0x1b8f80(0x1df)](_n))!=null?_0x4d1ce1:un;}[_0xade8c(0x384)](_0x58948e){const _0x594b5c=_0xade8c,_0x434b5b=this[_0x594b5c(0x243)][_0x594b5c(0x275)](_0x58948e);return _0x434b5b!==void 0x0&&window[_0x594b5c(0xc0)](_0x434b5b),this[_0x594b5c(0x121)][_0x594b5c(0x284)](Xt(_0x58948e),this[_0x594b5c(0x13f)][_0x594b5c(0x275)](_0x58948e))['then'](()=>this['_saveTaskMap']['delete'](_0x58948e));}async[_0xade8c(0x163)](){const _0x6eab45=_0xade8c,_0x161866=[];this[_0x6eab45(0x243)][_0x6eab45(0x2f2)]((_0x194786,_0x226505)=>{const _0x28bca3=_0x6eab45;window['clearTimeout'](_0x194786),_0x161866[_0x28bca3(0x142)](this[_0x28bca3(0x384)](_0x226505)['then'](()=>{const _0x2a2b06=_0x28bca3;this[_0x2a2b06(0x243)][_0x2a2b06(0x39d)](_0x226505);}));}),await Promise[_0x6eab45(0x342)](_0x161866);}[_0xade8c(0x295)](){const _0x3ab17f=_0xade8c;this[_0x3ab17f(0x1f1)](this['_beforeCloseService'][_0x3ab17f(0x101)](()=>{const _0x453e09=_0x3ab17f;if(this['_saveTaskMap'][_0x453e09(0x337)])return this['_localeService']['t'](_0x453e09(0x288));}));}};D=Mn([Ce(0x0,_0x531a6b),Ce(0x1,_0x944e2d),Ce(0x2,_0x477bf3),Ce(0x3,_0xd901da(_0x3fbf2b)),Ce(0x4,_0xd901da(_0x432311))],D);function Xt(_0x2e4aea){const _0x14c20e=_0xade8c;return _0x14c20e(0x32f)+_0x2e4aea;}const et=_0xc3d169(_0xade8c(0x2d6));var ws=(_0x58dc43=>(_0x58dc43[_0x58dc43[_0xade8c(0x2e1)]=0x0]=_0xade8c(0x2e1),_0x58dc43[_0x58dc43['OTHER_CLIENTS_EDITING']=0x1]=_0xade8c(0x30c),_0x58dc43))(ws||{});const Jt=0x7530,qt='ACTIVE_UNIT_EVENT_CHANNEL';class An extends _0x5297f3{constructor(){const _0x2e0d38=_0xade8c;super(),l(this,_0x2e0d38(0x1e0),_0x398800['generateRandomId']()),l(this,_0x2e0d38(0x21b),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x2e0d38(0x2f1),null),l(this,_0x2e0d38(0x139),new Map()),l(this,_0x2e0d38(0x1da),new Map()),this['_init']();}['dispose'](){const _0x167cad=_0xade8c;super['dispose'](),this[_0x167cad(0x139)]['forEach']((_0x230d3b,_0x36f397)=>this[_0x167cad(0x198)](_0x36f397)),this[_0x167cad(0x2f1)]&&window['clearInterval'](this[_0x167cad(0x2f1)]);}[_0xade8c(0x1be)](_0x4ce6da){return this['_ensureSubject'](_0x4ce6da)['pipe'](_0x3cc420());}[_0xade8c(0x128)](_0x51ddf6){const _0x1fbfe0=_0xade8c;this[_0x1fbfe0(0x21b)][_0x1fbfe0(0x337)]===0x0&&this[_0x1fbfe0(0x1f3)](),this['_selfUnitIDs'][_0x1fbfe0(0x21f)](_0x51ddf6),this[_0x1fbfe0(0xf1)]({'type':0x0,'memberID':this[_0x1fbfe0(0x1e0)],'unitIDs':[_0x51ddf6],'isForwarded':!0x1});}['disposeUnit'](_0x6cedfb){const _0x309282=_0xade8c;this[_0x309282(0x21b)][_0x309282(0x39d)](_0x6cedfb),this[_0x309282(0x21b)]['size']===0x0&&this[_0x309282(0x2f1)]&&window[_0x309282(0x2f5)](this[_0x309282(0x2f1)]);}['_init'](){const _0x324291=_0xade8c;this['disposeWithMe'](_0x45cb21(_0x52fa92(window,_0x324291(0x2b3))[_0x324291(0xbf)](_0x226cd7=>{const _0x53d723=_0x324291;if(_0x226cd7['key']!==qt||!_0x226cd7[_0x53d723(0x28b)])return;const _0x15df89=JSON['parse'](_0x226cd7['newValue']);this[_0x53d723(0x224)](_0x15df89);}))),window['addEventListener'](_0x324291(0x111),()=>this['_send']({'type':0x1,'memberID':this[_0x324291(0x1e0)],'unitIDs':Array[_0x324291(0x310)](this[_0x324291(0x21b)])}));}[_0xade8c(0x224)](_0x238693){const _0x2368cd=_0xade8c;switch(_0x238693[_0x2368cd(0x207)]){case 0x0:this['_handleJoinEvent'](_0x238693);break;case 0x1:this[_0x2368cd(0x339)](_0x238693);break;case 0x2:this[_0x2368cd(0x211)](_0x238693);break;}}['_handleJoinEvent'](_0x267161){const _0x1383ea=_0xade8c,{unitIDs:_0x5db4e2,memberID:_0x23083b,isForwarded:_0x27847a}=_0x267161;_0x5db4e2[_0x1383ea(0x2f2)](_0x2a211d=>{const _0xc766bd=_0x1383ea;if(!_0x27847a&&this[_0xc766bd(0x1fb)][_0xc766bd(0x1e7)](_0x2a211d)&&this[_0xc766bd(0x184)](_0x2a211d)['next'](0x1),!this[_0xc766bd(0x1fb)]['has'](_0x2a211d)||!this[_0xc766bd(0x1fb)][_0xc766bd(0x275)](_0x2a211d)['has'](_0x23083b)){const _0x533ea1=this['_unitOnClients']['get'](_0x2a211d)||new Set();_0x533ea1[_0xc766bd(0x21f)](_0x23083b),this[_0xc766bd(0x1fb)]['set'](_0x2a211d,_0x533ea1),this[_0xc766bd(0x30f)](_0x23083b);}}),_0x27847a||this[_0x1383ea(0xf1)]({'type':0x0,'memberID':this[_0x1383ea(0x1e0)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30912b){const _0x7e0db3=_0xade8c;this[_0x7e0db3(0x198)](_0x30912b);const _0x22f94b=window[_0x7e0db3(0x234)](()=>{const _0xa1f496=_0x7e0db3;this[_0xa1f496(0x1fb)][_0xa1f496(0x2f2)](_0x1f0621=>{const _0x316a0f=_0xa1f496;_0x1f0621[_0x316a0f(0x39d)](_0x30912b);});},Jt*0x2);this[_0x7e0db3(0x139)]['set'](_0x30912b,_0x22f94b);}[_0xade8c(0x198)](_0x511956){const _0x1690e0=_0xade8c;if(this[_0x1690e0(0x139)]['has'](_0x511956)){const _0x432761=this[_0x1690e0(0x139)][_0x1690e0(0x275)](_0x511956);_0x432761&&window['clearTimeout'](_0x432761),this[_0x1690e0(0x139)][_0x1690e0(0xbd)](_0x511956,null);}}[_0xade8c(0x339)](_0x49499f){const _0x311efa=_0xade8c,{memberID:_0x3d8451,unitIDs:_0x3e10b7}=_0x49499f;_0x3e10b7[_0x311efa(0x2f2)](_0x492fb=>{const _0x2f4ec6=_0x311efa;var _0x21816a;const _0x58f307=this[_0x2f4ec6(0x1fb)][_0x2f4ec6(0x275)](_0x492fb);_0x58f307&&(_0x58f307[_0x2f4ec6(0x39d)](_0x3d8451),(_0x21816a=this[_0x2f4ec6(0x184)](_0x492fb))==null||_0x21816a[_0x2f4ec6(0xab)](_0x58f307[_0x2f4ec6(0x337)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x3d8451);}[_0xade8c(0x211)](_0x4c275f){const _0x5d1e9e=_0xade8c;this[_0x5d1e9e(0x30f)](_0x4c275f['memberID']);}[_0xade8c(0xf1)](_0x1df58e){const _0x37c3e1=_0xade8c;localStorage[_0x37c3e1(0x284)](qt,JSON[_0x37c3e1(0x2b0)](_0x1df58e));}[_0xade8c(0x1f3)](){const _0x1fc84f=_0xade8c;this['_heartbeatTimer']=window[_0x1fc84f(0x269)](()=>{const _0x47b496=_0x1fc84f;this[_0x47b496(0xf1)]({'type':0x2,'memberID':this[_0x47b496(0x1e0)]});},Jt);}[_0xade8c(0x184)](_0x2afa1d){const _0x54e14c=_0xade8c;return this[_0x54e14c(0x1da)][_0x54e14c(0x1e7)](_0x2afa1d)||this['_unitStatus']['set'](_0x2afa1d,new _0x1a37bf(0x0)),this[_0x54e14c(0x1da)][_0x54e14c(0x275)](_0x2afa1d);}}var yn=Object['defineProperty'],Un=Object[_0xade8c(0x22b)],Ln=(_0x244d15,_0x16b13f,_0x5b08f5,_0x549a36)=>{const _0x15bca9=_0xade8c;for(var _0x12c8f2=_0x549a36>0x1?void 0x0:_0x549a36?Un(_0x16b13f,_0x5b08f5):_0x16b13f,_0x15fc01=_0x244d15[_0x15bca9(0x331)]-0x1,_0x21d968;_0x15fc01>=0x0;_0x15fc01--)(_0x21d968=_0x244d15[_0x15fc01])&&(_0x12c8f2=(_0x549a36?_0x21d968(_0x16b13f,_0x5b08f5,_0x12c8f2):_0x21d968(_0x12c8f2))||_0x12c8f2);return _0x549a36&&_0x12c8f2&&yn(_0x16b13f,_0x5b08f5,_0x12c8f2),_0x12c8f2;},zt=(_0x4a2b89,_0x3f60c6)=>(_0x1dca1c,_0x247ef7)=>_0x3f60c6(_0x1dca1c,_0x247ef7,_0x4a2b89);let Xe=class{constructor(_0xe274b1,_0x16621e){this['_injector']=_0xe274b1,this['_transformService']=_0x16621e;}[_0xade8c(0x105)](_0x430bfb){const _0x3ebb69=_0xade8c;this[_0x3ebb69(0xce)](_0x430bfb),this[_0x3ebb69(0x84)](_0x430bfb);}[_0xade8c(0x17a)](_0x4be85c){const _0x43e9df=_0xade8c,_0x107255=this['_injector']['get'](_0x42fcd8),{redoCache:_0x4761ed}=_0x107255[_0x43e9df(0x237)]();if(_0x4761ed[_0x43e9df(0x331)]===0x0)return _0x4be85c;let _0x55e778=_0x398800[_0x43e9df(0x383)](_0x4be85c[_0x43e9df(0xf5)][0x0]);for(let _0x2cdff=0x0;_0x2cdff<_0x4761ed[_0x43e9df(0x331)];_0x2cdff++){const _0x160bcc={'id':_0x43e9df(0x39b),'params':{..._0x4761ed[_0x2cdff]}},_0xd82501=this[_0x43e9df(0x8e)][_0x43e9df(0xaa)](_0x55e778,_0x160bcc,!0x1);if(_0x1054d7(_0xd82501))throw _0xd82501[_0x43e9df(0x2cf)];_0x55e778=_0xd82501[_0x43e9df(0x16b)];}return{..._0x398800[_0x43e9df(0x383)](_0x4be85c),'mutations':[_0x55e778]};}[_0xade8c(0xce)](_0x304bec){const _0x354c16=_0xade8c,_0x262563=this['_injector'][_0x354c16(0x275)](_0x42fcd8),{undoCache:_0x348d9d,redoCache:_0x247af0}=_0x262563[_0x354c16(0x237)]();if(_0x348d9d['length']===0x0||_0x247af0[_0x354c16(0x331)]===0x0)return;const _0x1521e6=[],_0x92ee78=[];let _0x511c80=_0x398800['deepClone'](_0x304bec[_0x354c16(0xf5)][0x0]),_0x5ed1d8=_0x398800[_0x354c16(0x383)](_0x304bec[_0x354c16(0xf5)][0x0]);for(let _0x2c7216=_0x348d9d[_0x354c16(0x331)]-0x1;_0x2c7216>=0x0;_0x2c7216--){const _0x1a49c9={'id':_0x354c16(0x39b),'params':{..._0x348d9d[_0x2c7216]}},_0x3b687b={'id':_0x354c16(0x39b),'params':{..._0x247af0[_0x2c7216]}},_0x3df178=this[_0x354c16(0x8e)][_0x354c16(0xaa)](_0x511c80,_0x1a49c9,!0x1),_0x443b84=this[_0x354c16(0x8e)]['transformMutation'](_0x5ed1d8,_0x3b687b,!0x1);if(_0x1054d7(_0x3df178))throw _0x3df178[_0x354c16(0x2cf)];if(_0x1054d7(_0x443b84))throw _0x443b84[_0x354c16(0x2cf)];_0x1521e6[_0x354c16(0x14a)](_0x3df178[_0x354c16(0x244)][_0x354c16(0x27a)]),_0x92ee78[_0x354c16(0x14a)](_0x443b84[_0x354c16(0x244)][_0x354c16(0x27a)]),_0x511c80=_0x3df178[_0x354c16(0x16b)],_0x5ed1d8=_0x443b84[_0x354c16(0x16b)];}_0x262563[_0x354c16(0x9a)]({'undoCache':_0x1521e6,'redoCache':_0x92ee78});}[_0xade8c(0x84)](_0x11a583){const _0x5a114c=_0xade8c,_0x599849=this['_injector']['get'](_0x42fcd8),_0x210d52=_0x599849[_0x5a114c(0x2a3)]();if(_0x210d52==null)return;const _0x8d6817=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x11a583[_0x5a114c(0x14d)],'actions':null,'textRanges':[_0x210d52]}}],_0x1a69b8=this[_0x5a114c(0x8e)][_0x5a114c(0x392)](_0x11a583,_0x8d6817);if(!_0x504c1f(_0x1a69b8))throw _0x1a69b8[_0x5a114c(0x2cf)];const _0xc3d9ff=_0x1a69b8[_0x5a114c(0x244)][0x0][_0x5a114c(0x27a)][_0x5a114c(0x22f)];Array[_0x5a114c(0xc9)](_0xc3d9ff)&&_0xc3d9ff['length']&&_0x599849[_0x5a114c(0x166)](_0xc3d9ff[0x0]);}};Xe=Ln([zt(0x0,_0xd901da(_0x3c61ae)),zt(0x1,_0x581964)],Xe);var $n=Object[_0xade8c(0x36b)],jn=Object[_0xade8c(0x22b)],Hn=(_0x6b3b49,_0x15ce14,_0xec830,_0x3af955)=>{for(var _0x44f2e4=_0x3af955>0x1?void 0x0:_0x3af955?jn(_0x15ce14,_0xec830):_0x15ce14,_0x5abb4c=_0x6b3b49['length']-0x1,_0xf8ac5e;_0x5abb4c>=0x0;_0x5abb4c--)(_0xf8ac5e=_0x6b3b49[_0x5abb4c])&&(_0x44f2e4=(_0x3af955?_0xf8ac5e(_0x15ce14,_0xec830,_0x44f2e4):_0xf8ac5e(_0x44f2e4))||_0x44f2e4);return _0x3af955&&_0x44f2e4&&$n(_0x15ce14,_0xec830,_0x44f2e4),_0x44f2e4;},Zt=(_0x411673,_0x1a0ccb)=>(_0x90df26,_0x34f2be)=>_0x1a0ccb(_0x90df26,_0x34f2be,_0x411673);let Je=class{constructor(_0x3ccf47,_0x43bc65){const _0x37e7f0=_0xade8c;this['_injector']=_0x3ccf47,this[_0x37e7f0(0x8e)]=_0x43bc65;}[_0xade8c(0x2f4)](_0x296c52){const _0x1a355d=_0xade8c;var _0x487946;const _0x3b422f=this['_injector'][_0x1a355d(0x275)](_0x33f09e),_0x5ca76a=(_0x487946=_0x3b422f[_0x1a355d(0x200)]())!=null?_0x487946:[],_0x189596=_0x5ca76a==null?void 0x0:_0x5ca76a[_0x1a355d(0x39e)](_0x5b7fb3);if(_0x189596[_0x1a355d(0x331)]===0x0)return;const _0x402d42=[{'id':_0x1a355d(0x39b),'params':{'unitId':_0x296c52[_0x1a355d(0x14d)],'actions':null,'textRanges':_0x189596}}],_0x978c8c=this['_transformService'][_0x1a355d(0x392)](_0x296c52,_0x402d42);if(!_0x504c1f(_0x978c8c))throw _0x978c8c['error'];const _0x29d1cc=_0x978c8c[_0x1a355d(0x244)][0x0]['params'][_0x1a355d(0x22f)];Array[_0x1a355d(0xc9)](_0x29d1cc)&&_0x29d1cc[_0x1a355d(0x331)]&&_0x3b422f[_0x1a355d(0x291)](_0x29d1cc,!0x1);}};Je=Hn([Zt(0x0,_0xd901da(_0x3c61ae)),Zt(0x1,_0x581964)],Je);function Ns(_0x42607d){const _0x48d54a=_0xade8c;let _0x2067d3='';for(const _0x57c6a2 of _0x42607d){const {startOffset:_0x6c8340,endOffset:_0x2aca13,isActive:_0x1615b5}=_0x57c6a2;_0x2067d3[_0x48d54a(0x331)]&&(_0x2067d3+=','),_0x2067d3+=_0x6c8340+':'+_0x2aca13+':'+(_0x1615b5?'1':'0');}return _0x2067d3;}function xn(_0xae30d4){const _0x2f85f1=_0xade8c,_0x3dbda6=_0xae30d4[_0x2f85f1(0x18c)](','),_0x1b3446=[];for(const _0x4acd12 of _0x3dbda6){const [_0xabed75,_0x5cb806,_0x186469]=_0x4acd12[_0x2f85f1(0x18c)](':');_0x1b3446[_0x2f85f1(0x142)]({'startOffset':Number(_0xabed75),'endOffset':Number(_0x5cb806),'collapsed':_0xabed75===_0x5cb806,'isActive':_0x186469==='1'});}return _0x1b3446[_0x2f85f1(0x2fb)](_0x563a1e=>_0x563a1e['isActive'])||(_0x1b3446[0x0]['isActive']=!0x0),_0x1b3446;}class Ut extends _0x3fb7e3{constructor(){const _0x5353d4=_0xade8c;super(...arguments),l(this,_0x5353d4(0x3a4),new _0x1a37bf(null)),l(this,_0x5353d4(0x144),this[_0x5353d4(0x3a4)][_0x5353d4(0x329)]());}[_0xade8c(0x297)](_0x2c1ccb){const _0x278c70=_0xade8c,{unitID:_0x5bc552,memberID:_0x36e805,textRanges:_0x2b6e82}=_0x2c1ccb,_0x2acc63=Ns(_0x2b6e82),_0x3482bf={'unitID':_0x5bc552,'memberID':_0x36e805,'selection':_0x2acc63};this['_collabCursorState$'][_0x278c70(0xab)](_0x3482bf);}}var Fn=Object[_0xade8c(0x36b)],Vn=Object[_0xade8c(0x22b)],Bn=(_0x4247b2,_0x5ba632,_0x55283e,_0x2332b6)=>{const _0x56d668=_0xade8c;for(var _0x300343=_0x2332b6>0x1?void 0x0:_0x2332b6?Vn(_0x5ba632,_0x55283e):_0x5ba632,_0x4ce389=_0x4247b2[_0x56d668(0x331)]-0x1,_0x34c8e7;_0x4ce389>=0x0;_0x4ce389--)(_0x34c8e7=_0x4247b2[_0x4ce389])&&(_0x300343=(_0x2332b6?_0x34c8e7(_0x5ba632,_0x55283e,_0x300343):_0x34c8e7(_0x300343))||_0x300343);return _0x2332b6&&_0x300343&&Fn(_0x5ba632,_0x55283e,_0x300343),_0x300343;},Qt=(_0x2ab113,_0x32470e)=>(_0xfdbb06,_0x8b375b)=>_0x32470e(_0xfdbb06,_0x8b375b,_0x2ab113);function kn(_0x9f407d){const _0x366065=_0xade8c,{unitID:_0x4ccdaf,mutations:_0x43b054}=_0x9f407d;return{'unitId':_0x4ccdaf,'subUnitId':_0x43b054[0x0][_0x366065(0x27a)][_0x366065(0x205)]};}let qe=class{constructor(_0x22cec8,_0x54dc63){this['_injector']=_0x22cec8,this['_transformService']=_0x54dc63;}[_0xade8c(0x2f4)](_0x49f737){const _0x22586d=_0xade8c;var _0x1c6ec9,_0x3138df,_0x1c07c3;const _0x3baf10=this[_0x22586d(0xcc)][_0x22586d(0x275)](_0x49acad),{unitId:_0x3fffab,subUnitId:_0x41e53f}=kn(_0x49f737),_0x1e2deb=_0x3baf10[_0x22586d(0x106)](_0x3fffab)[_0x22586d(0x200)]();if(_0x1e2deb[_0x22586d(0x331)]===0x0||!_0x3fffab||!_0x41e53f)return;const _0x40e612=[{'id':_0x45efda['id'],'params':{'unitId':_0x3fffab,'subUnitId':_0x41e53f,'selections':_0x398800['deepClone'](_0x1e2deb)}}],_0x589fb3=this[_0x22586d(0x8e)][_0x22586d(0x392)](_0x49f737,_0x40e612);if(!_0x504c1f(_0x589fb3))throw _0x589fb3[_0x22586d(0x2cf)];const _0x31e18e=(_0x1c07c3=(_0x3138df=(_0x1c6ec9=_0x589fb3[_0x22586d(0x244)][0x0])==null?void 0x0:_0x1c6ec9[_0x22586d(0x27a)])==null?void 0x0:_0x3138df[_0x22586d(0xb3)])!=null?_0x1c07c3:_0x1e2deb;Array[_0x22586d(0xc9)](_0x31e18e)&&_0x31e18e[_0x22586d(0x331)]&&this[_0x22586d(0xcc)][_0x22586d(0x275)](_0x3f64f1)['executeCommand'](_0x45efda['id'],{'unitId':_0x3fffab,'subUnitId':_0x41e53f,'selections':_0x31e18e});}};qe=Bn([Qt(0x0,_0xd901da(_0x3c61ae)),Qt(0x1,_0x581964)],qe);const Wn=new Set([_0x4fe9a1['id']]);function Gn(_0x18de21,_0x5524de,_0x277a62,_0x4d0548,_0x3dd1ec){const _0x5b2734=_0xade8c;var _0x49612d,_0xd13e47,_0x15b946,_0x9b6d9b;const _0x3c889b=[];for(const _0x90e587 of _0x18de21)if(Wn[_0x5b2734(0x1e7)](_0x90e587['id'])){if(_0x3c889b[_0x5b2734(0x331)]>0x0)break;_0x3c889b[_0x5b2734(0x142)](_0x90e587);break;}else _0x3c889b[_0x5b2734(0x142)](_0x90e587);const _0x4b106b=(_0xd13e47=(_0x49612d=_0x3dd1ec[_0x5b2734(0x31f)]())==null?void 0x0:_0x49612d[_0x5b2734(0xc8)])!=null?_0xd13e47:_0x5b2734(0xc2),_0x5a5ba1=(_0x9b6d9b=(_0x15b946=_0x3dd1ec[_0x5b2734(0x31f)]())==null?void 0x0:_0x15b946[_0x5b2734(0x216)])!=null?_0x9b6d9b:_0x5b2734(0xc2);return{'changeset':{'unitID':_0x5524de,'type':_0x19393c(_0x277a62[_0x5b2734(0x91)](_0x5524de)),'baseRev':_0x4d0548['getCurrentRevForDocument'](_0x5524de),'revision':0x0,'userID':_0x4b106b,'memberID':_0x5a5ba1,'mutations':_0x3c889b},'pendingMutations':_0x18de21[_0x5b2734(0x1e9)](_0x3c889b[_0x5b2734(0x331)])};}function Yn(_0x221371,_0x3db61c,_0x1dde23,_0x391f8e,_0xe57557){const _0x2176cd=_0xade8c;var _0x1f6945,_0x24e15c,_0x169f5f,_0x3f30b9;const _0x41505d=[_0x221371[_0x2176cd(0x214)]((_0x3f40bd,_0x375557)=>{const _0x47c5df=_0x2176cd;var _0x5e5ece;const {id:_0x4a0b35}=_0x3f40bd,{id:_0x42d702,type:_0x342eda}=_0x375557,_0x1085b1=(_0x5e5ece=_0x3f40bd['params'])!=null?_0x5e5ece:{'actions':null},_0x1e0b20=_0x375557[_0x47c5df(0x27a)];if(_0x4a0b35&&_0x4a0b35!==_0x42d702)throw new Error(_0x47c5df(0x270)+_0x4a0b35+_0x47c5df(0x372)+_0x42d702+'.');return{..._0x3f40bd,'id':_0x42d702,'type':_0x342eda,'params':{'unitId':_0x1e0b20[_0x47c5df(0x158)],'textRanges':_0x1e0b20['textRanges'],'actions':_0x5d1c82[_0x47c5df(0x1e6)](_0x1085b1[_0x47c5df(0x2ba)],_0x1e0b20['actions'])}};},{})],_0x51f46f=(_0x24e15c=(_0x1f6945=_0xe57557[_0x2176cd(0x31f)]())==null?void 0x0:_0x1f6945[_0x2176cd(0xc8)])!=null?_0x24e15c:'unknown',_0x178ccf=(_0x3f30b9=(_0x169f5f=_0xe57557[_0x2176cd(0x31f)]())==null?void 0x0:_0x169f5f[_0x2176cd(0x216)])!=null?_0x3f30b9:'unknown';return{'changeset':{'unitID':_0x3db61c,'type':_0x19393c(_0x1dde23['getUnitType'](_0x3db61c)),'baseRev':_0x391f8e[_0x2176cd(0x7e)](_0x3db61c),'revision':0x0,'userID':_0x51f46f,'memberID':_0x178ccf,'mutations':_0x41505d},'pendingMutations':[]};}var Kn=Object['defineProperty'],Xn=Object[_0xade8c(0x22b)],oe=(_0x1b182b,_0x1afebf,_0x4af33c,_0x286b9e)=>{const _0x1ecb93=_0xade8c;for(var _0x2c7520=_0x286b9e>0x1?void 0x0:_0x286b9e?Xn(_0x1afebf,_0x4af33c):_0x1afebf,_0x57f282=_0x1b182b[_0x1ecb93(0x331)]-0x1,_0x5e8c3a;_0x57f282>=0x0;_0x57f282--)(_0x5e8c3a=_0x1b182b[_0x57f282])&&(_0x2c7520=(_0x286b9e?_0x5e8c3a(_0x1afebf,_0x4af33c,_0x2c7520):_0x5e8c3a(_0x2c7520))||_0x2c7520);return _0x286b9e&&_0x2c7520&&Kn(_0x1afebf,_0x4af33c,_0x2c7520),_0x2c7520;},m=(_0x2c56cd,_0x55856d)=>(_0x458f21,_0x310e39)=>_0x55856d(_0x458f21,_0x310e39,_0x2c56cd),w=(_0x1d9dd3=>(_0x1d9dd3['NOT_COLLAB']=_0xade8c(0x1dc),_0x1d9dd3[_0xade8c(0xd0)]='synced',_0x1d9dd3[_0xade8c(0x116)]=_0xade8c(0x29a),_0x1d9dd3[_0xade8c(0x324)]=_0xade8c(0xcb),_0x1d9dd3[_0xade8c(0x22e)]=_0xade8c(0x169),_0x1d9dd3[_0xade8c(0x31d)]=_0xade8c(0x3ae),_0x1d9dd3['CONFLICT']=_0xade8c(0x187),_0x1d9dd3[_0xade8c(0x262)]=_0xade8c(0xcd),_0x1d9dd3))(w||{});class ae{constructor(_0x349fb6,_0x3c17b3,_0xa4f4ef,_0x2d5fc1,_0x1e40ff,_0x5a2acf,_0x12846b,_0x52b0ce,_0x1d1207){const _0x4d9c95=_0xade8c;l(this,'_awaitingChangeset',null),l(this,_0x4d9c95(0x34a),[]),(this[_0x4d9c95(0x14d)]=_0x349fb6,this[_0x4d9c95(0x207)]=_0x3c17b3,this[_0x4d9c95(0x289)]=_0x1e40ff,this[_0x4d9c95(0x1ba)]=_0x5a2acf,this[_0x4d9c95(0x240)]=_0x12846b,this[_0x4d9c95(0x30a)]=_0x52b0ce,this[_0x4d9c95(0xf7)]=_0x1d1207,this['_awaitingChangeset']=_0xa4f4ef,this[_0x4d9c95(0x34a)]=_0x2d5fc1);}[_0xade8c(0x3a9)](_0x34432c){const _0x158113=_0xade8c,_0x3fea2f=this[_0x158113(0x30a)]['getCurrentRevForDocument'](this[_0x158113(0x14d)]);return _0x34432c[_0x158113(0x212)]>_0x3fea2f+0x1?(this[_0x158113(0x289)][_0x158113(0x1fd)]({'from':_0x3fea2f,'to':_0x34432c[_0x158113(0x212)]-0x1}),!0x0):!0x1;}[_0xade8c(0x360)](_0x4ce768){const _0x270af4=_0xade8c;this[_0x270af4(0x240)][_0x270af4(0x31b)](this[_0x270af4(0x14d)],_0x4ce768);}[_0xade8c(0x26f)](_0x58f0a0){const _0x137c2=_0xade8c;var _0x1e2dbf,_0x5594b4;(_0x5594b4=(_0x1e2dbf=this[_0x137c2(0x289)])[_0x137c2(0x366)])==null||_0x5594b4[_0x137c2(0x33b)](_0x1e2dbf,_0x58f0a0);}['_transformIMECache'](_0x32a298){const _0x5db926=_0xade8c;var _0x56b49e,_0x347720;return(_0x347720=(_0x56b49e=this[_0x5db926(0x289)])[_0x5db926(0x1bc)])==null?void 0x0:_0x347720['call'](_0x56b49e,_0x32a298);}['_transformRemoteChangesetByIMECache'](_0x3e5a02){const _0x5bc975=_0xade8c;var _0x3b9e21,_0xb934d7,_0x30d43a;return(_0x30d43a=(_0xb934d7=(_0x3b9e21=this[_0x5bc975(0x289)])[_0x5bc975(0x161)])==null?void 0x0:_0xb934d7['call'](_0x3b9e21,_0x3e5a02))!=null?_0x30d43a:_0x3e5a02;}[_0xade8c(0x124)](_0xcf6e4e){const _0x389b5a=_0xade8c;var _0x178064,_0x4f2af2;if(this[_0x389b5a(0x207)]===H[_0x389b5a(0x1c7)]){const {unitID:_0x39e5de,mutations:_0x4a4220,memberID:_0x47100b}=_0xcf6e4e,_0x11bd4c=_0x4a4220[0x0]['params'][_0x389b5a(0x22f)];Array[_0x389b5a(0xc9)](_0x11bd4c)&&_0x11bd4c[_0x389b5a(0x331)]>0x0&&((_0x4f2af2=(_0x178064=this[_0x389b5a(0x289)])[_0x389b5a(0x2b8)])==null||_0x4f2af2['call'](_0x178064,{'unitID':_0x39e5de,'memberID':_0x47100b,'textRanges':_0x11bd4c}));}}[_0xade8c(0x386)](){const _0x27ee2d=_0xade8c;this[_0x27ee2d(0xf7)]['updateOfflineData'](this[_0x27ee2d(0x14d)],this['type'],this['_awaitingChangeset'],this[_0x27ee2d(0x34a)]);}[_0xade8c(0x268)](){const _0x358977=_0xade8c;return this[_0x358977(0x30a)][_0x358977(0x7e)](this['unitID']);}[_0xade8c(0x2d7)](){const _0x53dbc0=_0xade8c;this['_revisionService'][_0x53dbc0(0x2be)](this[_0x53dbc0(0x14d)]);}[_0xade8c(0x153)](_0x2a4422){const _0x49c526=_0xade8c;var _0x4333c8;const _0x409ecf=this['_transformRemoteChangesetByIMECache'](_0x2a4422),_0x1306a5=_0x45596a(_0x409ecf['mutations'],this[_0x49c526(0x1ba)],{'fromCollab':!0x0});if(!_0x1306a5[_0x49c526(0x24c)])throw _0x1306a5['error']instanceof Error?_0x1306a5['error']:new Error((_0x4333c8=_0x1306a5[_0x49c526(0x2cf)])!=null?_0x4333c8:'[CollaborationState]:\x20apply\x20error!');this['_transformIMECache'](_0x409ecf),this['_transformUndoredo'](_0x2a4422),this[_0x49c526(0x26f)](_0x409ecf),this['_syncEditingCollabCursor'](_0x409ecf),this[_0x49c526(0x2d7)]();}}let Ne=class extends ae{constructor(_0x24299f,_0x527b7d,_0x12b53d,_0x2e55a3,_0x474657,_0x193d50,_0x2f04f6,_0x2cb249,_0x255454){const _0x4d6827=_0xade8c;super(_0x24299f,_0x527b7d,null,[],_0x12b53d,_0x2cb249,_0x2f04f6,_0x2e55a3,_0x474657),l(this,'status','synced'),(this[_0x4d6827(0xcc)]=_0x193d50,this[_0x4d6827(0x37f)]=_0x255454);}['appendMutation'](_0x1c15ce){const _0x39d139=_0xade8c,_0x2213cd=this[_0x39d139(0xcc)][_0x39d139(0x371)](k,this[_0x39d139(0x14d)],this['type'],[_0x1c15ce],this[_0x39d139(0x289)]);return _0x2213cd[_0x39d139(0x330)](),_0x2213cd[_0x39d139(0x386)](),_0x2213cd;}[_0xade8c(0x2cb)](_0x590a29){const _0x533723=_0xade8c;if(this[_0x533723(0x3a9)](_0x590a29))return this['_injector'][_0x533723(0x371)](G,this[_0x533723(0x14d)],this[_0x533723(0x207)],null,[],null,[_0x590a29],this[_0x533723(0x289)]);try{return this['_executeRemoteChangeset'](_0x590a29),this;}catch(_0x51e1cb){return this[_0x533723(0x37f)][_0x533723(0x2cf)](_0x533723(0x313),_0x51e1cb),this;}}[_0xade8c(0x25e)](){const _0x407c30=_0xade8c;throw new Error(_0x407c30(0xf4));}[_0xade8c(0xaf)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x418712=_0xade8c;return this[_0x418712(0xcc)][_0x418712(0x371)](z,this['unitID'],this[_0x418712(0x207)],null,[],this[_0x418712(0x289)]);}[_0xade8c(0x27f)](){return this;}['resend'](){const _0x27a02e=_0xade8c;throw new Error(_0x27a02e(0xb2));}};Ne=oe([m(0x3,_0xd901da(_0x432311)),m(0x4,_0xd901da(D)),m(0x5,_0xd901da(_0x3c61ae)),m(0x6,_0x1bc0b8),m(0x7,_0x3f64f1),m(0x8,_0x255408)],Ne);let k=class extends ae{constructor(_0x488e7e,_0x11c402,_0xa3b98c,_0x3ed495,_0x174b77,_0x49bf1c,_0x4da62b,_0x52f726,_0x457813,_0x59bb19,_0x27d471,_0x3f91a5,_0x467407,_0x43a477){const _0x42af87=_0xade8c;super(_0x488e7e,_0x11c402,null,_0xa3b98c,_0x3ed495,_0x59bb19,_0x43a477,_0x49bf1c,_0x4da62b),l(this,_0x42af87(0x3b8),_0x42af87(0x29a)),l(this,_0x42af87(0x1b8),null),l(this,'_sendingTimer',null),(this['_injector']=_0x174b77,this[_0x42af87(0x311)]=_0x52f726,this[_0x42af87(0x37f)]=_0x457813,this[_0x42af87(0x253)]=_0x27d471,this[_0x42af87(0x8e)]=_0x3f91a5,this[_0x42af87(0x1c2)]=_0x467407);}['appendMutation'](_0x16aa09){const _0x28cd2f=_0xade8c;return this[_0x28cd2f(0x34a)][_0x28cd2f(0x142)](_0x16aa09),this[_0x28cd2f(0x386)](),this;}['onRemoteChangeset'](_0x11ea75){const _0x640b62=_0xade8c;if(this[_0x640b62(0x3a9)](_0x11ea75))return this[_0x640b62(0x28c)](),this[_0x640b62(0xcc)][_0x640b62(0x371)](G,this['unitID'],this[_0x640b62(0x207)],null,this[_0x640b62(0x34a)],null,[_0x11ea75],this[_0x640b62(0x289)]);try{const _0x354eb7=this['_transformService'][_0x640b62(0x392)](_0x11ea75,this[_0x640b62(0x34a)]);if(_0x504c1f(_0x354eb7)){const {c1Prime:_0x54bdf0,m2Prime:_0x377505}=_0x354eb7;this['_executeRemoteChangeset'](_0x54bdf0);const _0x1d4d80=this[_0x640b62(0xcc)][_0x640b62(0x371)](k,this['unitID'],this[_0x640b62(0x207)],_0x377505,this['_handler']);return this[_0x640b62(0x28c)](),_0x1d4d80[_0x640b62(0x330)](this[_0x640b62(0x1b8)]?Math[_0x640b62(0x23c)](0x0,new Date()[_0x640b62(0x126)]()-this[_0x640b62(0x1b8)]):this[_0x640b62(0x369)]()),_0x1d4d80;}throw _0x354eb7[_0x640b62(0x2cf)];}catch(_0x5f1fad){return this[_0x640b62(0x37f)][_0x640b62(0x2cf)](_0x5f1fad),this[_0x640b62(0x2d4)](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x2a77f3=_0xade8c;return this[_0x2a77f3(0x28c)](),this[_0x2a77f3(0xcc)][_0x2a77f3(0x371)](z,this[_0x2a77f3(0x14d)],this['type'],null,this[_0x2a77f3(0x34a)],this[_0x2a77f3(0x289)]);}['toggleOnline'](){return this;}[_0xade8c(0x330)](_0x182b2e){const _0x45946b=_0xade8c;_0x182b2e=_0x182b2e!=null?_0x182b2e:this[_0x45946b(0x369)](),this[_0x45946b(0x1b8)]=new Date()['getTime'](),this[_0x45946b(0x2e0)]=setTimeout(()=>{const _0x181c57=_0x45946b;this[_0x181c57(0x28c)]();let _0x129867=null;switch(this['type']){case H[_0x181c57(0x3a3)]:{_0x129867=Gn(this[_0x181c57(0x34a)],this[_0x181c57(0x14d)],this['_univerInstanceService'],this[_0x181c57(0x30a)],this[_0x181c57(0x311)]);break;}case H['UNIVER_DOC']:{_0x129867=Yn(this[_0x181c57(0x34a)],this[_0x181c57(0x14d)],this[_0x181c57(0x1c2)],this[_0x181c57(0x30a)],this[_0x181c57(0x311)]);break;}default:throw new Error(_0x181c57(0x2c7)+this['type']+_0x181c57(0x322));}const {changeset:_0x2f4f73,pendingMutations:_0x932448}=_0x129867;this[_0x181c57(0x289)][_0x181c57(0x1d3)](_0x2f4f73);const _0x5d78f2=_0x932448['length']?this['_injector'][_0x181c57(0x371)](W,this['unitID'],this[_0x181c57(0x207)],_0x2f4f73,_0x932448,this['_handler']):this['_injector'][_0x181c57(0x371)](q,this[_0x181c57(0x14d)],this['type'],_0x2f4f73,this['_handler']);_0x5d78f2[_0x181c57(0x386)](),this[_0x181c57(0x289)][_0x181c57(0x3b9)](this,_0x5d78f2);},_0x182b2e);}[_0xade8c(0x369)](){const _0x30e050=_0xade8c;var _0xd28c2b;return(_0xd28c2b=this[_0x30e050(0x253)][_0x30e050(0x1df)](en))!=null?_0xd28c2b:tn;}[_0xade8c(0x1a7)](){const _0x24d0d0=_0xade8c;throw new Error(_0x24d0d0(0x2e6));}[_0xade8c(0x28c)](){const _0x3041a4=_0xade8c;this[_0x3041a4(0x2e0)]!=null&&(clearTimeout(this[_0x3041a4(0x2e0)]),this[_0x3041a4(0x2e0)]=null);}[_0xade8c(0x2d4)](_0x96bb0e){const _0x28b413=_0xade8c;return this[_0x28b413(0x28c)](),this['_injector']['createInstance'](re,this[_0x28b413(0x14d)],this['type'],null,this[_0x28b413(0x34a)],this[_0x28b413(0x289)],_0x96bb0e);}};k=oe([m(0x4,_0xd901da(_0x3c61ae)),m(0x5,_0xd901da(_0x432311)),m(0x6,_0xd901da(D)),m(0x7,_0xd901da(ne)),m(0x8,_0x255408),m(0x9,_0x3f64f1),m(0xa,_0x531a6b),m(0xb,_0x581964),m(0xc,_0x3b87df),m(0xd,_0x1bc0b8)],k);let q=class extends ae{constructor(_0x1d39d8,_0x351017,_0x4297a4,_0x26103f,_0x28d90c,_0x53f47a,_0x2d59c9,_0x692759,_0x7b589f,_0x583c7b,_0x17ff7b){const _0x22da82=_0xade8c;super(_0x1d39d8,_0x351017,_0x4297a4,[],_0x26103f,_0x692759,_0x17ff7b,_0x53f47a,_0x2d59c9),l(this,'status',_0x22da82(0xcb)),(this[_0x22da82(0xcc)]=_0x28d90c,this[_0x22da82(0x37f)]=_0x7b589f,this[_0x22da82(0x8e)]=_0x583c7b);}[_0xade8c(0x2b6)](_0xa57ea9){const _0x88a2b2=_0xade8c,_0x22b1f3=this[_0x88a2b2(0xcc)]['createInstance'](W,this[_0x88a2b2(0x14d)],this['type'],this[_0x88a2b2(0x78)],[_0xa57ea9],this[_0x88a2b2(0x289)]);return _0x22b1f3[_0x88a2b2(0x386)](),_0x22b1f3;}[_0xade8c(0x2cb)](_0x295eb4){const _0x32ec93=_0xade8c;if(this[_0x32ec93(0x3a9)](_0x295eb4))return this['_injector'][_0x32ec93(0x371)](G,this[_0x32ec93(0x14d)],this[_0x32ec93(0x207)],this['_awaitingChangeset'],[],null,[_0x295eb4],this[_0x32ec93(0x289)]);try{const _0x2d9de8=this[_0x32ec93(0x8e)][_0x32ec93(0x218)]([_0x295eb4],[this[_0x32ec93(0x78)]],!0x1);if(_0x288394(_0x2d9de8)){const {c1Prime:_0x34f8ea,c2Prime:_0x520cb8}=_0x2d9de8;this['_executeRemoteChangeset'](_0x34f8ea[0x0]),_0x520cb8[0x0]['baseRev']=this[_0x32ec93(0x268)]();const _0x505c1a=this['_injector'][_0x32ec93(0x371)](q,this['unitID'],this[_0x32ec93(0x207)],_0x520cb8[0x0],this['_handler']);return _0x505c1a[_0x32ec93(0x386)](),_0x505c1a;}return this[_0x32ec93(0x2d4)](!0x1);}catch(_0x11f16e){return this[_0x32ec93(0x37f)][_0x32ec93(0x2cf)](_0x11f16e),this[_0x32ec93(0x2d4)](!0x1);}}[_0xade8c(0x25e)](_0x3e1b4e){const _0x5784bb=_0xade8c,_0x3b83fd=this[_0x5784bb(0x30a)]['getCurrentRevForDocument'](this['unitID']);if(_0x3e1b4e[_0x5784bb(0x212)]<_0x3b83fd-0x1)return this;if(this[_0x5784bb(0x3a9)](_0x3e1b4e))return this['_injector'][_0x5784bb(0x371)](G,this[_0x5784bb(0x14d)],this[_0x5784bb(0x207)],null,[],this[_0x5784bb(0x78)],[],this[_0x5784bb(0x289)]);this[_0x5784bb(0x2d7)]();const _0x1147d8=this['_injector']['createInstance'](Ne,this['unitID'],this['type'],this['_handler']);return _0x1147d8[_0x5784bb(0x386)](),_0x1147d8;}[_0xade8c(0xaf)](_0x249495){const _0x8b8500=_0xade8c;return this[_0x8b8500(0x2d4)](!!(_0x249495!=null&&_0x249495[_0x8b8500(0x151)]));}['toggleOffline'](){const _0xff8f6=_0xade8c;return this['_injector'][_0xff8f6(0x371)](z,this[_0xff8f6(0x14d)],this[_0xff8f6(0x207)],this[_0xff8f6(0x78)],[],this[_0xff8f6(0x289)]);}['toggleOnline'](){return this;}[_0xade8c(0x1a7)](){const _0x89aff9=_0xade8c;this[_0x89aff9(0x289)]['onSendChangeset'](this[_0x89aff9(0x78)]);}['_onConflict'](_0x571a16){const _0x5c5556=_0xade8c;return this[_0x5c5556(0xcc)][_0x5c5556(0x371)](re,this[_0x5c5556(0x14d)],this['type'],this[_0x5c5556(0x78)],[],this[_0x5c5556(0x289)],_0x571a16);}};q=oe([m(0x4,_0xd901da(_0x3c61ae)),m(0x5,_0xd901da(_0x432311)),m(0x6,_0xd901da(D)),m(0x7,_0x3f64f1),m(0x8,_0x255408),m(0x9,_0x581964),m(0xa,_0x1bc0b8)],q);let W=class extends ae{constructor(_0x29d5fd,_0x1027fa,_0x362c17,_0x4f255a,_0x23816d,_0x23d70a,_0x3bf95c,_0x30a218,_0xb757b0,_0x230384,_0x1bb6e0,_0x50ef05){const _0x4351aa=_0xade8c;super(_0x29d5fd,_0x1027fa,_0x362c17,_0x4f255a,_0x23816d,_0xb757b0,_0x50ef05,_0x3bf95c,_0x30a218),l(this,_0x4351aa(0x3b8),_0x4351aa(0x169)),(this[_0x4351aa(0xcc)]=_0x23d70a,this[_0x4351aa(0x37f)]=_0x230384,this['_transformService']=_0x1bb6e0);}[_0xade8c(0x2b6)](_0x53e2d1){const _0x527a1e=_0xade8c;return this[_0x527a1e(0x34a)][_0x527a1e(0x142)](_0x53e2d1),this;}['onRemoteChangeset'](_0x55869d){const _0x1c78ad=_0xade8c;if(this[_0x1c78ad(0x3a9)](_0x55869d))return this[_0x1c78ad(0xcc)][_0x1c78ad(0x371)](G,this['unitID'],this[_0x1c78ad(0x207)],this[_0x1c78ad(0x78)],this[_0x1c78ad(0x34a)],null,[_0x55869d],this['_handler']);try{const _0x4e42a3=this[_0x1c78ad(0x8e)][_0x1c78ad(0x218)]([_0x55869d],[this[_0x1c78ad(0x78)]],!0x1);if(_0x288394(_0x4e42a3)){const {c1Prime:_0x12e287,c2Prime:_0x1eb4b2}=_0x4e42a3,_0x15daa3=this[_0x1c78ad(0x8e)]['transformMutationsWithChangeset'](_0x12e287[0x0],this[_0x1c78ad(0x34a)]);if(_0x504c1f(_0x15daa3)){const {c1Prime:_0xeaf847,m2Prime:_0x4381ca}=_0x15daa3;return this[_0x1c78ad(0x153)](_0xeaf847),_0x1eb4b2[0x0]['baseRev']=this[_0x1c78ad(0x268)](),this[_0x1c78ad(0xcc)][_0x1c78ad(0x371)](W,this[_0x1c78ad(0x14d)],this['type'],_0x1eb4b2[0x0],_0x4381ca,this[_0x1c78ad(0x289)]);}throw _0x15daa3[_0x1c78ad(0x2cf)];}throw _0x4e42a3[_0x1c78ad(0x2cf)];}catch(_0x6a6a5d){return this['_logService']['error'](_0x6a6a5d),this['_onConflict'](!0x1);}}[_0xade8c(0x25e)](_0x38463c){const _0x3aa81a=_0xade8c;if(this[_0x3aa81a(0x3a9)](_0x38463c))return this[_0x3aa81a(0xcc)][_0x3aa81a(0x371)](G,this[_0x3aa81a(0x14d)],this[_0x3aa81a(0x207)],null,this[_0x3aa81a(0x34a)],this[_0x3aa81a(0x78)],[],this[_0x3aa81a(0x289)]);this[_0x3aa81a(0x2d7)]();const _0x17254e=this[_0x3aa81a(0xcc)]['createInstance'](k,this['unitID'],this['type'],this[_0x3aa81a(0x34a)],this[_0x3aa81a(0x289)]);return _0x17254e[_0x3aa81a(0x330)](),_0x17254e[_0x3aa81a(0x386)](),_0x17254e;}[_0xade8c(0xaf)](_0x19196d){const _0x512b25=_0xade8c;return this['_onConflict'](!!(_0x19196d!=null&&_0x19196d[_0x512b25(0x151)]));}[_0xade8c(0x11d)](){const _0x1229ef=_0xade8c;return this[_0x1229ef(0xcc)]['createInstance'](z,this['unitID'],this[_0x1229ef(0x207)],this[_0x1229ef(0x78)],this['_pendingMutations'],this[_0x1229ef(0x289)]);}['toggleOnline'](){return this;}[_0xade8c(0x1a7)](){const _0x20a993=_0xade8c;this[_0x20a993(0x289)][_0x20a993(0x1d3)](this[_0x20a993(0x78)]);}[_0xade8c(0x2d4)](_0x29c269){const _0x52aea1=_0xade8c;return this[_0x52aea1(0xcc)][_0x52aea1(0x371)](re,this[_0x52aea1(0x14d)],this[_0x52aea1(0x207)],null,this[_0x52aea1(0x34a)],this['_handler'],_0x29c269);}};W=oe([m(0x5,_0xd901da(_0x3c61ae)),m(0x6,_0xd901da(_0x432311)),m(0x7,_0xd901da(D)),m(0x8,_0x3f64f1),m(0x9,_0x255408),m(0xa,_0x581964),m(0xb,_0x1bc0b8)],W);let re=class extends ae{constructor(_0x273927,_0x5dcdbc,_0x42c690,_0x43f095,_0x38b8c2,_0x14510a=!0x1,_0x328e54,_0x482074,_0x337177,_0x44fa5a,_0x11d826,_0x53d0b0,_0x13eb18){const _0x1dbaab=_0xade8c;super(_0x273927,_0x5dcdbc,_0x42c690,_0x43f095,_0x38b8c2,_0x482074,_0x337177,_0x11d826,_0x44fa5a),l(this,_0x1dbaab(0x3b8),'conflict'),(this[_0x1dbaab(0x247)]=_0x14510a,this[_0x1dbaab(0x10f)]=_0x328e54,this[_0x1dbaab(0x148)]=_0x53d0b0,this[_0x1dbaab(0x19c)]=_0x13eb18,this[_0x1dbaab(0x2c0)](),this[_0x1dbaab(0x319)](),this[_0x1dbaab(0x11a)]());}[_0xade8c(0x2b6)](){return this;}['onRemoteChangeset'](){return this;}[_0xade8c(0x25e)](){return this;}[_0xade8c(0xaf)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0xade8c(0x1a7)](){const _0xb25f0a=_0xade8c;throw new Error(_0xb25f0a(0x20d));}[_0xade8c(0x319)](){const _0x3b6364=_0xade8c;this[_0x3b6364(0xf7)][_0x3b6364(0x15e)](this[_0x3b6364(0x14d)],this[_0x3b6364(0x207)],null,[]);}[_0xade8c(0x2c0)](){const _0x3db941=_0xade8c;this['_isPermissionRej']?this['_notificationService'][_0x3db941(0xfa)]({'title':this[_0x3db941(0x148)]['t']('permission.title'),'content':this[_0x3db941(0x148)]['t']('permission.content'),'type':_0x3db941(0x2cf),'duration':0x0}):this['_notificationService']['show']({'title':this[_0x3db941(0x148)]['t']('conflict.title'),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x28935e=_0xade8c;this[_0x28935e(0x10f)][_0x28935e(0xd7)](new _0xaddd59(this[_0x28935e(0x14d)])['id'],!0x1);}};re=oe([m(0x6,_0xd901da(_0x1b6020)),m(0x7,_0x3f64f1),m(0x8,_0x1bc0b8),m(0x9,_0xd901da(D)),m(0xa,_0xd901da(_0x432311)),m(0xb,_0xd901da(_0x3fbf2b)),m(0xc,_0x4cb594)],re);let z=class extends ae{constructor(_0xbf1634,_0x1f7dff,_0x3930c0,_0x33e18e,_0x299507,_0x33ee90,_0x226701,_0x3433be,_0x1f8f7a,_0x4ca7e8){const _0x46d234=_0xade8c;super(_0xbf1634,_0x1f7dff,_0x3930c0,_0x33e18e,_0x299507,_0x1f8f7a,_0x4ca7e8,_0x226701,_0x3433be),l(this,'status',_0x46d234(0xcd)),this[_0x46d234(0xcc)]=_0x33ee90;}[_0xade8c(0x2b6)](_0x3def75){const _0x42e602=_0xade8c;return this[_0x42e602(0x34a)][_0x42e602(0x142)](_0x3def75),this[_0x42e602(0x386)](),this;}[_0xade8c(0x2cb)](_0x417ded){const _0x369c99=_0xade8c;throw new Error(_0x369c99(0x2bf));}[_0xade8c(0x25e)](){const _0x346106=_0xade8c;throw new Error(_0x346106(0xd8));}[_0xade8c(0xaf)](){const _0xf675c7=_0xade8c;throw new Error(_0xf675c7(0x1d2));}[_0xade8c(0x11d)](){return this;}['toggleOnline'](){const _0x130b7e=_0xade8c,{_injector:_0x5d6a41,_pendingMutations:_0x53dccf,_awaitingChangeset:_0x276f72,unitID:_0x789892,_handler:_0x390709,type:_0x2f5c1b}=this,_0x174d46=Ms(_0x5d6a41,_0x789892,_0x2f5c1b,_0x276f72,_0x53dccf,_0x390709);return _0x174d46 instanceof k?_0x174d46[_0x130b7e(0x330)]():(_0x174d46 instanceof W||_0x174d46 instanceof q)&&_0x174d46['resend'](),_0x174d46;}[_0xade8c(0x1a7)](){const _0x495fa9=_0xade8c;throw new Error(_0x495fa9(0xdd));}};z=oe([m(0x5,_0xd901da(_0x3c61ae)),m(0x6,_0xd901da(_0x432311)),m(0x7,_0xd901da(D)),m(0x8,_0x3f64f1),m(0x9,_0x1bc0b8)],z);let G=class extends ae{constructor(_0x26c004,_0x4abcfd,_0x5946cb,_0x14eef6,_0x123029,_0x3b3e9d,_0x3add7c,_0x441087,_0x59860c,_0xa4840f,_0x200c62,_0x3cb1b6,_0x59165f,_0x5e6fe5){const _0x439c66=_0xade8c;super(_0x26c004,_0x4abcfd,_0x5946cb,_0x14eef6,_0x3add7c,_0x3cb1b6,_0x59165f,_0x59860c,_0xa4840f),l(this,_0x439c66(0x3b8),_0x439c66(0x3ae)),(this[_0x439c66(0x1cb)]=_0x123029,this[_0x439c66(0x24a)]=_0x3b3e9d,this[_0x439c66(0xcc)]=_0x441087,this['_logService']=_0x200c62,this['_transformService']=_0x5e6fe5);}['onMissedChangesetFetched'](_0x18e2c4){const _0x4d90ce=_0xade8c;try{const _0x2995ee=[..._0x18e2c4,...this[_0x4d90ce(0x24a)]],_0x33854b=[this['_awaitingChangeset']||this[_0x4d90ce(0x1cb)]][_0x4d90ce(0x2a9)](_0x160949=>!!_0x160949);let _0x3a9f4a,_0x4d9240;if(_0x33854b[_0x4d90ce(0x331)]){const _0x26459d=this[_0x4d90ce(0x8e)][_0x4d90ce(0x218)](_0x2995ee,_0x33854b,!0x1);if(!_0x288394(_0x26459d))throw _0x26459d[_0x4d90ce(0x2cf)];_0x3a9f4a=_0x26459d['c1Prime'],_0x4d9240=_0x26459d[_0x4d90ce(0x195)];}else _0x3a9f4a=_0x2995ee,_0x4d9240=[];let _0x1b0568=this[_0x4d90ce(0x34a)];_0x3a9f4a[_0x4d90ce(0x2f2)](_0x5ff5fe=>{const _0x53b15e=_0x4d90ce;let _0xa4fa6c;if(_0x1b0568[_0x53b15e(0x331)]){const _0x491a5f=this[_0x53b15e(0x8e)][_0x53b15e(0x392)](_0x5ff5fe,_0x1b0568);if(!_0x504c1f(_0x491a5f))throw _0x491a5f[_0x53b15e(0x2cf)];_0xa4fa6c=_0x491a5f[_0x53b15e(0x233)],_0x1b0568=_0x491a5f['m2Prime'];}else _0xa4fa6c=_0x5ff5fe;this[_0x53b15e(0x153)](_0xa4fa6c);}),this[_0x4d90ce(0x1cb)]&&this[_0x4d90ce(0x2d7)](),this[_0x4d90ce(0x78)]&&_0x4d9240[_0x4d90ce(0x331)]&&(_0x4d9240[0x0][_0x4d90ce(0x2f0)]=this['_getCurrentRevision']());let _0x3cc308;if(this[_0x4d90ce(0x78)]&&_0x1b0568['length']!==0x0)_0x3cc308=this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](W,this[_0x4d90ce(0x14d)],this[_0x4d90ce(0x207)],_0x4d9240[0x0],_0x1b0568,this['_handler']);else{if(this['_awaitingChangeset']&&_0x1b0568['length']===0x0)_0x4d9240[0x0][_0x4d90ce(0x2f0)]=this[_0x4d90ce(0x268)](),_0x3cc308=this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](q,this['unitID'],this[_0x4d90ce(0x207)],_0x4d9240[0x0],this[_0x4d90ce(0x289)]);else{if(_0x1b0568['length']!==0x0){const _0x11dd33=this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](k,this[_0x4d90ce(0x14d)],this[_0x4d90ce(0x207)],_0x1b0568,this['_handler']);_0x11dd33['_schedule'](),_0x3cc308=_0x11dd33;}else _0x3cc308=this['_injector'][_0x4d90ce(0x371)](Ne,this['unitID'],this[_0x4d90ce(0x207)],this[_0x4d90ce(0x289)]);}}return _0x3cc308[_0x4d90ce(0x386)](),_0x3cc308;}catch(_0x33888d){return this[_0x4d90ce(0x37f)][_0x4d90ce(0x2cf)]('[FetchMissState]',_0x4d90ce(0xc4),_0x33888d),this[_0x4d90ce(0xcc)][_0x4d90ce(0x371)](re,this[_0x4d90ce(0x14d)],this[_0x4d90ce(0x207)],this[_0x4d90ce(0x78)],this[_0x4d90ce(0x34a)],this['_handler'],!0x1);}}[_0xade8c(0x1a7)](){const _0x5e6d1c=_0xade8c;throw new Error(_0x5e6d1c(0x1a5));}['appendMutation'](_0x3c2ac2){const _0x1df860=_0xade8c;return this[_0x1df860(0x34a)]['push'](_0x3c2ac2),this;}[_0xade8c(0x2cb)](_0x50649e){const _0x224d4c=_0xade8c;return this[_0x224d4c(0x24a)][_0x224d4c(0x142)](_0x50649e),this;}[_0xade8c(0x25e)](_0x3542d8){const _0x4c7381=_0xade8c;if(this[_0x4c7381(0x78)])return this[_0x4c7381(0x1cb)]=this[_0x4c7381(0x78)],this[_0x4c7381(0x78)]=null,this;throw new Error(_0x4c7381(0x15a));}[_0xade8c(0xaf)](_0x53f529){const _0x44b411=_0xade8c;return this[_0x44b411(0x2d4)](!!(_0x53f529!=null&&_0x53f529[_0x44b411(0x151)]));}[_0xade8c(0x11d)](){const _0xa1e36b=_0xade8c;return this['_injector']['createInstance'](z,this[_0xa1e36b(0x14d)],this['type'],this[_0xa1e36b(0x78)],this[_0xa1e36b(0x34a)],this['_handler']);}[_0xade8c(0x27f)](){return this;}['_onConflict'](_0x47c1f6){const _0x17beb1=_0xade8c;return this[_0x17beb1(0xcc)][_0x17beb1(0x371)](re,this[_0x17beb1(0x14d)],this[_0x17beb1(0x207)],this[_0x17beb1(0x78)],this['_pendingMutations'],this['_handler'],_0x47c1f6);}};G=oe([m(0x7,_0xd901da(_0x3c61ae)),m(0x8,_0xd901da(_0x432311)),m(0x9,_0xd901da(D)),m(0xa,_0x255408),m(0xb,_0x3f64f1),m(0xc,_0x1bc0b8),m(0xd,_0x581964)],G);function Ms(_0x512fec,_0x42a104,_0x44463d,_0x111821,_0x36684c,_0x4c246a){const _0x58ee30=_0xade8c;return _0x111821&&_0x36684c[_0x58ee30(0x331)]?_0x512fec[_0x58ee30(0x371)](W,_0x42a104,_0x44463d,_0x111821,_0x36684c,_0x4c246a):_0x111821?_0x512fec['createInstance'](q,_0x42a104,_0x44463d,_0x111821,_0x4c246a):_0x36684c[_0x58ee30(0x331)]?_0x512fec[_0x58ee30(0x371)](k,_0x42a104,_0x44463d,_0x36684c,_0x4c246a):_0x512fec[_0x58ee30(0x371)](Ne,_0x42a104,_0x44463d,_0x4c246a);}var Jn=Object[_0xade8c(0x36b)],qn=Object[_0xade8c(0x22b)],tt=(_0x41534c,_0x44eae0,_0x4cc2e2,_0x16cac8)=>{const _0x8d9a74=_0xade8c;for(var _0x9e18b3=_0x16cac8>0x1?void 0x0:_0x16cac8?qn(_0x44eae0,_0x4cc2e2):_0x44eae0,_0x997bc=_0x41534c[_0x8d9a74(0x331)]-0x1,_0x4ba834;_0x997bc>=0x0;_0x997bc--)(_0x4ba834=_0x41534c[_0x997bc])&&(_0x9e18b3=(_0x16cac8?_0x4ba834(_0x44eae0,_0x4cc2e2,_0x9e18b3):_0x4ba834(_0x9e18b3))||_0x9e18b3);return _0x16cac8&&_0x9e18b3&&Jn(_0x44eae0,_0x4cc2e2,_0x9e18b3),_0x9e18b3;},S=(_0x6ebbbe,_0x58114c)=>(_0x4f84c6,_0x1d54ef)=>_0x58114c(_0x4f84c6,_0x1d54ef,_0x6ebbbe);let De=class extends _0x3fb7e3{constructor(_0x56901d,_0x4a6730,_0x39b4a8){const _0x173b8a=_0xade8c;super(),l(this,_0x173b8a(0x306),new Map()),l(this,_0x173b8a(0x320),new _0x3718e0()),(this[_0x173b8a(0xcc)]=_0x56901d,this['_collabSessionService']=_0x4a6730,this[_0x173b8a(0x1c2)]=_0x39b4a8,this[_0x173b8a(0x312)]());}[_0xade8c(0x199)](){const _0x28a451=_0xade8c;super[_0x28a451(0x199)](),this[_0x28a451(0x306)][_0x28a451(0x2f2)](_0x41f8f5=>_0x41f8f5[_0x28a451(0x199)]()),this[_0x28a451(0x306)][_0x28a451(0x287)]();}[_0xade8c(0xa0)](_0x43a4f6){const _0x1c7ad1=_0xade8c;var _0x55095c;return(_0x55095c=this[_0x1c7ad1(0x306)][_0x1c7ad1(0x275)](_0x43a4f6))!=null?_0x55095c:null;}[_0xade8c(0x36a)](_0x523a2e){const _0x42ae8b=_0xade8c,_0x3c5a80=this[_0x42ae8b(0xa0)](_0x523a2e);return _0x3c5a80?_0x3ff30b(_0x3c5a80):this[_0x42ae8b(0x320)]['pipe'](_0x4c2296(_0x148474=>_0x148474[_0x42ae8b(0x14d)]===_0x523a2e));}[_0xade8c(0x312)](){const _0x3425bb=_0xade8c;this[_0x3425bb(0x1c2)][_0x3425bb(0x252)](_0x9cd059[_0x3425bb(0x3a3)])['pipe'](_0x2473df(this[_0x3425bb(0x13d)]),_0xf4f725(0x10))[_0x3425bb(0xbf)](async _0x132aa2=>{const _0x2799cf=_0x3425bb,_0x2cff99=_0x132aa2[_0x2799cf(0x350)](),_0x576ce0=await this[_0x2799cf(0x2ae)](_0x2cff99,H[_0x2799cf(0x3a3)]);this[_0x2799cf(0x306)][_0x2799cf(0xbd)](_0x2cff99,_0x576ce0);}),this[_0x3425bb(0x1c2)]['getTypeOfUnitAdded$'](_0x9cd059[_0x3425bb(0x1c7)])[_0x3425bb(0x2fe)](_0x2473df(this[_0x3425bb(0x13d)]),_0xf4f725(0x10))[_0x3425bb(0x2fe)](_0x4c2296(_0x29e649=>!_0x29e649['getUnitId']()[_0x3425bb(0xfc)]('__')))['subscribe'](async _0x5dc480=>{const _0x599e99=_0x3425bb,_0x151f0e=_0x5dc480[_0x599e99(0x350)](),_0xd0ec70=await this['_startCollaboration'](_0x151f0e,H[_0x599e99(0x1c7)]);this[_0x599e99(0x306)]['set'](_0x151f0e,_0xd0ec70);}),_0x52fd0c(this[_0x3425bb(0x1c2)][_0x3425bb(0x1a4)](_0x9cd059['UNIVER_SHEET']),this[_0x3425bb(0x1c2)][_0x3425bb(0x1a4)](_0x9cd059[_0x3425bb(0x1c7)]))['pipe'](_0x2473df(this[_0x3425bb(0x13d)]))[_0x3425bb(0xbf)](_0x490999=>{const _0x3028fa=_0x3425bb,_0x480dba=_0x490999[_0x3028fa(0x350)](),_0x481848=this[_0x3028fa(0x306)][_0x3028fa(0x275)](_0x480dba);_0x481848&&(_0x481848[_0x3028fa(0x199)](),this[_0x3028fa(0x306)]['delete'](_0x480dba));});}async[_0xade8c(0x2ae)](_0x19ae22,_0x127e4c){const _0x17fd54=_0xade8c,_0x15ad7f=await this['_collabSessionService'][_0x17fd54(0x12b)](_0x19ae22),_0x46cd09=this[_0x17fd54(0xcc)][_0x17fd54(0x371)](this[_0x17fd54(0x22d)](_0x127e4c),_0x19ae22,_0x127e4c,_0x15ad7f);return await _0x46cd09[_0x17fd54(0x254)](),this[_0x17fd54(0x320)][_0x17fd54(0xab)](_0x46cd09),_0x46cd09;}[_0xade8c(0x22d)](_0xed51fa){const _0x2f445f=_0xade8c;switch(_0xed51fa){case H[_0x2f445f(0x1c7)]:return vt;case H[_0x2f445f(0x3a3)]:return pt;default:throw new Error(_0x2f445f(0x300)+_0xed51fa);}}};De=tt([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],De),S(0x0,_0xd901da(_0x3c61ae)),S(0x1,_0xd901da(ge)),S(0x2,_0x3b87df)],De);let ze=class extends _0x3fb7e3{constructor(_0x13c257,_0x5bf7d1,_0x516198,_0x2ee067,_0x144bd3,_0x3130f1,_0x3200c0,_0x548e66,_0x3a0774,_0x454f8c,_0x20708f,_0x599181,_0x497a8b){const _0x43ceb7=_0xade8c;super(),l(this,_0x43ceb7(0x141),new _0x1a37bf(null)),l(this,'state$',this['_state$'][_0x43ceb7(0x329)]()),l(this,_0x43ceb7(0xad)),l(this,_0x43ceb7(0x24d),!0x1),l(this,_0x43ceb7(0x1ed),this[_0x43ceb7(0x2c1)][_0x43ceb7(0x2fe)](_0x176ea9(_0x2a3409=>_0x2a3409?_0x2a3409[_0x43ceb7(0x3b8)]:w[_0x43ceb7(0x262)]),_0x3b73a3(0x1))),l(this,'_transitionLocked',!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x43ceb7(0x14d)]=_0x13c257,this[_0x43ceb7(0x10c)]=_0x5bf7d1,this[_0x43ceb7(0x8f)]=_0x516198,this[_0x43ceb7(0xcc)]=_0x2ee067,this['_localCacheService']=_0x144bd3,this[_0x43ceb7(0xb6)]=_0x3130f1,this['_localeService']=_0x3200c0,this['_revisionService']=_0x548e66,this[_0x43ceb7(0x37f)]=_0x3a0774,this['_commandService']=_0x454f8c,this[_0x43ceb7(0x368)]=_0x20708f,this[_0x43ceb7(0x10f)]=_0x599181,this['_singleActiveUnitService']=_0x497a8b);}get[_0xade8c(0x271)](){const _0x1dfbf4=_0xade8c;return this[_0x1dfbf4(0xad)];}async['init'](){const _0x420e33=_0xade8c;if(this['state'])throw new Error(_0x420e33(0x31a));await this[_0x420e33(0x312)]();}[_0xade8c(0x2d9)](){return this['_collaborationPaused']=!0x0,_0x45cb21(()=>{const _0x302742=_0x4292;this[_0x302742(0x24d)]=!0x1,this[_0x302742(0x299)]();});}[_0xade8c(0x3b0)](_0x190c4d){const _0x492ed3=_0xade8c;this[_0x492ed3(0xad)]=_0x190c4d,this[_0x492ed3(0x141)][_0x492ed3(0xab)](_0x190c4d);}async['_init'](){const _0x3bebe1=_0xade8c;var _0x2d716a;return this[_0x3bebe1(0x3b0)](await this[_0x3bebe1(0x396)]()),this['_singleActiveUnitService']&&((_0x2d716a=this[_0x3bebe1(0x97)])==null||_0x2d716a[_0x3bebe1(0x128)](this[_0x3bebe1(0x14d)]),this[_0x3bebe1(0x1f1)](_0x45cb21(this[_0x3bebe1(0x97)]['getUnitStatus$'](this[_0x3bebe1(0x14d)])[_0x3bebe1(0xbf)](_0x16f438=>{const _0x3babec=_0x3bebe1;this[_0x3babec(0x37f)]['debug'](_0x3babec(0x201),_0x3babec(0x113),_0x16f438),_0x16f438===ws[_0x3babec(0x30c)]?(this[_0x3babec(0x368)][_0x3babec(0xfa)]({'content':this['_localeService']['t'](_0x3babec(0x27b)),'type':_0x4d4329[_0x3babec(0x398)]}),this[_0x3babec(0x10f)][_0x3babec(0xd7)](new _0xaddd59(this[_0x3babec(0x14d)])['id'],!0x1)):this[_0x3babec(0x10f)][_0x3babec(0xd7)](new _0xaddd59(this['unitID'])['id'],!0x0);})))),this['disposeWithMe'](_0x45cb21(this['_session'][_0x3bebe1(0x17f)][_0x3bebe1(0xbf)](_0x2b4c73=>{const _0x18250e=_0x3bebe1;_0x2b4c73===de['ONLINE']?this[_0x18250e(0x318)]():_0x2b4c73===de[_0x18250e(0x262)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x45cb21(this[_0x3bebe1(0x8f)]['event$'][_0x3bebe1(0xbf)](_0x37ac76=>{const _0x5ce55c=_0x3bebe1;try{switch(_0x37ac76[_0x5ce55c(0x13b)]){case _0x1b9133[_0x5ce55c(0x1a9)]:{this[_0x5ce55c(0x19e)](_0x28c9a8(_0x37ac76['data']));break;}case _0x1b9133[_0x5ce55c(0x29b)]:{this[_0x5ce55c(0x30b)](_0x37ac76[_0x5ce55c(0x19b)]);break;}case _0x1b9133['CHANGESET_REJ']:{this[_0x5ce55c(0xb7)]();break;}case _0x1b9133[_0x5ce55c(0x25b)]:{this[_0x5ce55c(0x109)](_0x37ac76[_0x5ce55c(0x19b)][_0x5ce55c(0xe4)][_0x5ce55c(0x39e)](_0x141642=>_0x28c9a8(_0x141642)));break;}case _0x1b9133['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1beb88){throw console[_0x5ce55c(0x2cf)]('Error\x20on\x20receiving\x20event',_0x1beb88),_0x1beb88;}}))),this[_0x3bebe1(0xad)];}[_0xade8c(0x2e9)](){const _0x8207f9=_0xade8c;this[_0x8207f9(0x150)]=!0x1;}['_lockTransition'](){const _0x2ae4bf=_0xade8c;if(this[_0x2ae4bf(0x150)])throw new Error(_0x2ae4bf(0x31c));this[_0x2ae4bf(0x150)]=!0x0;}[_0xade8c(0x352)](_0x4e0913){const _0x434cfd=_0xade8c;this[_0x434cfd(0x2b5)](),this['_updateState'](this[_0x434cfd(0xad)][_0x434cfd(0x2b6)](_0x4e0913)),this[_0x434cfd(0x2e9)]();}[_0xade8c(0x19e)](_0x1a5cef){const _0x535a09=_0xade8c;if(!(_0x1a5cef[_0x535a09(0x212)]<=this[_0x535a09(0x30a)][_0x535a09(0x7e)](this[_0x535a09(0x14d)]))){if(this[_0x535a09(0x24d)]){this[_0x535a09(0xa3)][_0x535a09(0x142)](_0x1a5cef);return;}this[_0x535a09(0x229)](_0x1a5cef);}}[_0xade8c(0x299)](){const _0x521ca8=_0xade8c;this[_0x521ca8(0xa3)][_0x521ca8(0x2f2)](_0x12f5eb=>this[_0x521ca8(0x229)](_0x12f5eb)),this['_remoteChangesetQueue']=[];}[_0xade8c(0x229)](_0x31f4b7){const _0x5030c3=_0xade8c,_0x544f44=this[_0x5030c3(0xb6)]['interceptor'][_0x5030c3(0x1a1)](this['_compressMutationService'][_0x5030c3(0x1c4)]['getInterceptPoints']()[_0x5030c3(0x2c4)])(_0x31f4b7['mutations'],null)||_0x31f4b7['mutations'],_0x18252c={..._0x31f4b7,'mutations':_0x544f44};this[_0x5030c3(0x2b5)](),this['_updateState'](this[_0x5030c3(0xad)][_0x5030c3(0x2cb)](_0x18252c)),this[_0x5030c3(0x2e9)]();}[_0xade8c(0x30b)](_0x4743ef){const _0x20d042=_0xade8c;this[_0x20d042(0x2b5)](),this[_0x20d042(0x3b0)](this['_state']['onRemoteAck'](_0x4743ef)),this['_unlockTransition']();}[_0xade8c(0xb7)](_0x455b39){const _0x4a0576=_0xade8c;this[_0x4a0576(0x2b5)](),this[_0x4a0576(0x3b0)](this['_state'][_0x4a0576(0xaf)](_0x455b39)),this[_0x4a0576(0x2e9)]();}['_onFetchMissResult'](_0x585cb3){const _0x33f613=_0xade8c;if(!(this[_0x33f613(0xad)]instanceof G))throw new TypeError(_0x33f613(0x183));const _0x5a4d31=_0x585cb3['map'](_0x69dc9d=>{const _0x13b7f9=_0x33f613,_0x4dbd68=this['_compressMutationService'][_0x13b7f9(0x1c4)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x13b7f9(0x1c4)][_0x13b7f9(0x343)]()['COMPRESS_MUTATION_APPLY'])(_0x69dc9d[_0x13b7f9(0xf5)],null)||_0x69dc9d['mutations'];return{..._0x69dc9d,'mutations':_0x4dbd68};});this['_lockTransition'](),this[_0x33f613(0x3b0)](this[_0x33f613(0xad)][_0x33f613(0x37b)](_0x5a4d31)),this[_0x33f613(0x2e9)]();}[_0xade8c(0x209)](){const _0x1a53e2=_0xade8c;this[_0x1a53e2(0x2b5)](),this['_updateState'](this[_0x1a53e2(0xad)][_0x1a53e2(0x11d)]()),this[_0x1a53e2(0x2e9)]();}[_0xade8c(0x318)](){const _0xcd8cdf=_0xade8c;this[_0xcd8cdf(0x2b5)](),this[_0xcd8cdf(0x3b0)](this[_0xcd8cdf(0xad)][_0xcd8cdf(0x27f)]()),this[_0xcd8cdf(0x2e9)]();}async[_0xade8c(0x396)](){return new Promise(_0x2599ba=>{const _0xf9ee30=_0x4292;this[_0xf9ee30(0x8f)][_0xf9ee30(0x17f)][_0xf9ee30(0x2fe)](_0x4efd5d(0x1))[_0xf9ee30(0xbf)](async _0x90d580=>{const _0x49f410=_0xf9ee30;_0x2599ba(await this['_createInitialStateImpl'](_0x90d580===de[_0x49f410(0x241)]));});});}['_createHandler'](){const _0x17b786=_0xade8c,_0x2cd08d=this[_0x17b786(0x14d)];return{'onStateChange':(_0x46d870,_0x54b011)=>{const _0x1cdac7=_0x17b786;if(_0x46d870!==this[_0x1cdac7(0xad)])throw new Error(_0x1cdac7(0xf3)+_0x46d870[_0x1cdac7(0x3b8)]+_0x1cdac7(0x182)+_0x54b011['status']+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x1cdac7(0x3b0)](_0x54b011);},'onSendChangeset':_0x1c3c1d=>{const _0x320115=_0x17b786,_0x156b85={'eventID':_0x1b9133[_0x320115(0x35a)],'data':{'unitID':_0x1c3c1d['unitID'],'unitType':this[_0x320115(0x10c)],'changeset':_0x1c3c1d,'memberID':this['_session']['getMemberID']()}};this[_0x320115(0x8f)][_0x320115(0x18a)](_0x156b85,this[_0x320115(0x14d)]);},'onMissingChangesets':({from:_0x471662,to:_0x12d738})=>{const _0x35deb1=_0x17b786;this[_0x35deb1(0x37f)][_0x35deb1(0x180)]('[CollaborationEntity]',_0x35deb1(0xa1)+_0x471662+'\x20to\x20'+_0x12d738);const _0x1154e5={'eventID':_0x1b9133[_0x35deb1(0x34f)],'data':{'unitID':_0x2cd08d,'unitType':this[_0x35deb1(0x10c)],'from':_0x471662,'to':_0x12d738}};this[_0x35deb1(0x8f)][_0x35deb1(0x18a)](_0x1154e5,this[_0x35deb1(0x14d)]);}};}async[_0xade8c(0x36c)](_0x25c2be){const _0x5036b1=_0xade8c;var _0x49976,_0x51393d;const _0x344050=await this[_0x5036b1(0xf7)][_0x5036b1(0x1c1)](this[_0x5036b1(0x14d)]),_0x3e7f7a=(_0x49976=_0x344050==null?void 0x0:_0x344050[_0x5036b1(0xf5)])!=null?_0x49976:[],_0x15a7da=(_0x51393d=_0x344050==null?void 0x0:_0x344050[_0x5036b1(0x206)])!=null?_0x51393d:null,_0x2b2782=this[_0x5036b1(0x14d)];try{this['_replayCachedMutations'](_0x15a7da,_0x3e7f7a);}catch(_0x5c531f){this['_logService'][_0x5036b1(0x2cf)](_0x5c531f);}const _0xf7dd4c=this[_0x5036b1(0xa7)]();if(_0x25c2be){const _0xd8dba0=Ms(this[_0x5036b1(0xcc)],_0x2b2782,this[_0x5036b1(0x10c)],_0x15a7da,_0x3e7f7a,_0xf7dd4c);return _0xd8dba0 instanceof k?_0xd8dba0['_schedule']():(_0xd8dba0 instanceof W||_0xd8dba0 instanceof q)&&_0xd8dba0[_0x5036b1(0x1a7)](),_0xd8dba0;}return this['_injector'][_0x5036b1(0x371)](z,_0x2b2782,this[_0x5036b1(0x10c)],_0x15a7da,_0x3e7f7a,_0xf7dd4c);}[_0xade8c(0x129)](_0x1ea1ad,_0x8f6027){const _0x53b74b=_0xade8c;var _0x3168f3,_0xe4d3fb;const _0x4ac9af=this[_0x53b74b(0xb6)][_0x53b74b(0x1c4)]['fetchThroughInterceptors'](this[_0x53b74b(0xb6)][_0x53b74b(0x1c4)][_0x53b74b(0x343)]()['COMPRESS_MUTATION_APPLY']);(_0x3168f3=_0x4ac9af((_0x1ea1ad==null?void 0x0:_0x1ea1ad[_0x53b74b(0xf5)])||[],null))==null||_0x3168f3['forEach'](_0x2e07c2=>this[_0x53b74b(0x1ba)][_0x53b74b(0x340)](_0x2e07c2['id'],_0x2e07c2['params'])),(_0xe4d3fb=_0x4ac9af(_0x8f6027||[],null))==null||_0xe4d3fb[_0x53b74b(0x2f2)](_0x1f6fcf=>this[_0x53b74b(0x1ba)]['executeCommand'](_0x1f6fcf['id'],_0x1f6fcf[_0x53b74b(0x27a)]));}};ze=tt([S(0x3,_0xd901da(_0x3c61ae)),S(0x4,_0xd901da(D)),S(0x5,_0xd901da(_0x150830)),S(0x6,_0xd901da(_0x3fbf2b)),S(0x7,_0xd901da(_0x432311)),S(0x8,_0x255408),S(0x9,_0x3f64f1),S(0xa,_0x48de42),S(0xb,_0x1b6020),S(0xc,_0x3badbf(et))],ze);let vt=class extends ze{constructor(_0x5924cb,_0x3d28ca,_0x45ac60,_0x18c30c,_0x326690,_0x151270,_0x115a24,_0x3982a1,_0x14268b,_0x527ce8,_0x182052,_0x529153,_0x4b0ec2,_0x2296a2,_0x2fbf34,_0xe6a5f0,_0x4fb299){const _0x155575=_0xade8c;super(_0x5924cb,_0x3d28ca,_0x45ac60,_0x18c30c,_0x326690,_0x151270,_0x115a24,_0x3982a1,_0x4b0ec2,_0x2296a2,_0x2fbf34,_0xe6a5f0,_0x4fb299),this[_0x155575(0x14d)]=_0x5924cb,this['type']=_0x3d28ca,this[_0x155575(0x1ef)]=_0x45ac60,this['_docStateChangeManagerService']=_0x14268b,this[_0x155575(0x157)]=_0x527ce8,this[_0x155575(0x3a2)]=_0x182052,this[_0x155575(0xb8)]=_0x529153;}[_0xade8c(0xa7)](){const _0x20285d=_0xade8c,_0x31b488=super['_createHandler']();return _0x31b488['onTransformIME']=_0x788139=>this['_docTransformIMECacheService'][_0x20285d(0x105)](_0x788139),_0x31b488[_0x20285d(0x366)]=_0x4ac55b=>this[_0x20285d(0x3a2)][_0x20285d(0x2f4)](_0x4ac55b),_0x31b488[_0x20285d(0x2b8)]=_0x5ece15=>this[_0x20285d(0xb8)][_0x20285d(0x297)](_0x5ece15),_0x31b488[_0x20285d(0x161)]=_0x5943af=>this[_0x20285d(0x157)][_0x20285d(0x17a)](_0x5943af),_0x31b488;}async['_init'](){const _0x35ef61=_0xade8c,_0x47c4ca=await super[_0x35ef61(0x312)]();return this['_docStateChangeManagerService']['docStateChange$'][_0x35ef61(0x2fe)](_0x2473df(this['dispose$']))[_0x35ef61(0xbf)](_0x2fc0dc=>{const _0x555691=_0x35ef61;if(_0x2fc0dc==null)return;const {unitId:_0xaf5ab9,redoState:_0xbd967a,commandId:_0xfb2fe}=_0x2fc0dc;if(_0xaf5ab9!==this[_0x555691(0x14d)])return;const _0x522b15={'id':_0xfb2fe,'type':_0x25ba1e[_0x555691(0x79)],'params':{'unitId':_0xaf5ab9,'actions':_0xbd967a[_0x555691(0x2ba)],'textRanges':null}};this[_0x555691(0x352)](_0x522b15);}),_0x47c4ca;}};vt=tt([S(0x3,_0xd901da(_0x3c61ae)),S(0x4,_0xd901da(D)),S(0x5,_0xd901da(_0x150830)),S(0x6,_0xd901da(_0x3fbf2b)),S(0x7,_0xd901da(_0x432311)),S(0x8,_0xd901da(_0x36a6d8)),S(0x9,_0xd901da(Xe)),S(0xa,_0xd901da(Je)),S(0xb,_0xd901da(Ut)),S(0xc,_0x255408),S(0xd,_0x3f64f1),S(0xe,_0x48de42),S(0xf,_0x1b6020),S(0x10,_0x3badbf(et))],vt);let pt=class extends ze{constructor(_0x5f18ae,_0x3a6692,_0xc7e70b,_0x4f11f9,_0x10c13c,_0x3215df,_0xf52d4,_0x5291d5,_0x3252ba,_0x4376bb,_0x2aea96,_0x250b43,_0x4ca628,_0x389e20){const _0x35cbd6=_0xade8c;super(_0x5f18ae,_0x3a6692,_0xc7e70b,_0x4f11f9,_0x10c13c,_0x3215df,_0xf52d4,_0x5291d5,_0x4376bb,_0x2aea96,_0x250b43,_0x4ca628,_0x389e20),this[_0x35cbd6(0x14d)]=_0x5f18ae,this[_0x35cbd6(0x207)]=_0x3a6692,this[_0x35cbd6(0x1ef)]=_0xc7e70b,this['_sheetTransformSelectionsService']=_0x3252ba;}[_0xade8c(0xa7)](){const _0x9f092f=_0xade8c,_0x44a92a=super[_0x9f092f(0xa7)]();return _0x44a92a['onTransformSelections']=_0x37d6a7=>this['_sheetTransformSelectionsService'][_0x9f092f(0x2f4)](_0x37d6a7),_0x44a92a;}async[_0xade8c(0x312)](){const _0x4906eb=_0xade8c,_0xfa0f0c=await super[_0x4906eb(0x312)]();return this['disposeWithMe'](this[_0x4906eb(0x1ba)][_0x4906eb(0x8a)]((_0x55769b,_0x4fad19)=>{const _0x1536af=_0x4906eb;if(_0x55769b[_0x1536af(0x207)]!==_0x25ba1e[_0x1536af(0x79)]||_0x4fad19!=null&&_0x4fad19[_0x1536af(0x177)]||_0x4fad19!=null&&_0x4fad19['onlyLocal'])return;const _0x3ae25a=_0x55769b[_0x1536af(0x27a)];if((_0x3ae25a==null?void 0x0:_0x3ae25a['unitId'])!==this[_0x1536af(0x14d)])return;const _0x41750a=_0x55769b,_0x7e0d42=this[_0x1536af(0xb6)]['interceptor'][_0x1536af(0x1a1)](this[_0x1536af(0xb6)][_0x1536af(0x1c4)][_0x1536af(0x343)]()[_0x1536af(0x7d)])([_0x41750a],null)||[_0x41750a];this['_onLocalMutation'](_0x7e0d42[0x0]);})),_0xfa0f0c;}};pt=tt([S(0x3,_0xd901da(_0x3c61ae)),S(0x4,_0xd901da(D)),S(0x5,_0xd901da(_0x150830)),S(0x6,_0xd901da(_0x3fbf2b)),S(0x7,_0xd901da(_0x432311)),S(0x8,_0xd901da(qe)),S(0x9,_0x255408),S(0xa,_0x3f64f1),S(0xb,_0x48de42),S(0xc,_0x1b6020),S(0xd,_0x3badbf(et))],pt);const es=[_0xade8c(0x2ff),_0xade8c(0x122),'verdancy600',_0xade8c(0x12f),_0xade8c(0x162),_0xade8c(0x2f6)];class Lt extends _0x5297f3{constructor(){const _0x5f445c=_0xade8c;super(...arguments),l(this,_0x5f445c(0x2aa),new Map()),l(this,_0x5f445c(0x37a),0x0);}['assignAColorForMemberID'](_0x29d1de){const _0x4412ed=_0xade8c;if(this[_0x4412ed(0x2aa)]['has'](_0x29d1de))return this[_0x4412ed(0x2aa)][_0x4412ed(0x275)](_0x29d1de);const _0x5b7cae=es[this[_0x4412ed(0x37a)]];return this[_0x4412ed(0x37a)]=(this[_0x4412ed(0x37a)]+0x1)%es['length'],this['_assignedColors'][_0x4412ed(0xbd)](_0x29d1de,_0x5b7cae),_0x5b7cae;}}var zn=Object['defineProperty'],Zn=Object['getOwnPropertyDescriptor'],Qn=(_0x5c6b91,_0x192852,_0x4fb3de,_0x57125c)=>{for(var _0x480355=_0x57125c>0x1?void 0x0:_0x57125c?Zn(_0x192852,_0x4fb3de):_0x192852,_0x3ddca7=_0x5c6b91['length']-0x1,_0x313168;_0x3ddca7>=0x0;_0x3ddca7--)(_0x313168=_0x5c6b91[_0x3ddca7])&&(_0x480355=(_0x57125c?_0x313168(_0x192852,_0x4fb3de,_0x480355):_0x313168(_0x480355))||_0x480355);return _0x57125c&&_0x480355&&zn(_0x192852,_0x4fb3de,_0x480355),_0x480355;},he=(_0x15ec39,_0x2250d9)=>(_0x257be7,_0x48bc37)=>_0x2250d9(_0x257be7,_0x48bc37,_0x15ec39);const er=0x12c,tr=0x64,sr=()=>{let _0x4640ea=[],_0x1516ec=!0x1;return _0x20c656=>{_0x4640ea['push'](_0x20c656),_0x1516ec||(_0x1516ec=!0x0,setTimeout(()=>{const _0x249c2c=_0x4292;_0x4640ea[_0x249c2c(0x2f2)](_0x64d09=>_0x64d09()),_0x4640ea=[],_0x1516ec=!0x1;}));};};let It=class extends _0x3fb7e3{constructor(_0x58dc65,_0x4fc353,_0x4878fa,_0x525431,_0x31c13a,_0x2e170e,_0x30045b,_0x595467){const _0x1fa963=_0xade8c;super(),l(this,_0x1fa963(0x93),!0x1),l(this,_0x1fa963(0x312),!0x1),l(this,_0x1fa963(0x280),new _0x1a37bf(new Map())),l(this,'cursorInfo$',this[_0x1fa963(0x280)]['asObservable']()),l(this,_0x1fa963(0x225),new _0x1a37bf([])),l(this,_0x1fa963(0x35c),this[_0x1fa963(0x225)][_0x1fa963(0x2fe)](_0x2ec9db(er))),l(this,_0x1fa963(0x1c5),_0x1ebe66((_0x1aed9e,_0x2c4332)=>{const _0x45b4f1=_0x1fa963,_0xa66a41={'eventID':_0x1b9133[_0x45b4f1(0x390)],'data':{'unitID':this['unitID'],'memberID':this[_0x45b4f1(0x8f)]['getMemberID'](),'selection':_0x1b1c8a(_0x1aed9e,_0x2c4332[_0x45b4f1(0x2c3)])}};this[_0x45b4f1(0x8f)][_0x45b4f1(0x18a)](_0xa66a41,this[_0x45b4f1(0x14d)]);},tr)),(this[_0x1fa963(0x14d)]=_0x58dc65,this[_0x1fa963(0x8f)]=_0x4fc353,this['_injector']=_0x4878fa,this[_0x1fa963(0x258)]=_0x525431,this[_0x1fa963(0x311)]=_0x31c13a,this[_0x1fa963(0x1c2)]=_0x2e170e,this['_commandService']=_0x30045b,this['_refRangeService']=_0x595467);}get[_0xade8c(0x294)](){const _0x4211ec=_0xade8c;return this['_cursorInfo$'][_0x4211ec(0x17d)]();}get['roomMembers'](){const _0x4c4ab8=_0xade8c;return this[_0x4c4ab8(0x225)][_0x4c4ab8(0x17d)]();}[_0xade8c(0x199)](){const _0x2f780e=_0xade8c;super[_0x2f780e(0x199)](),this[_0x2f780e(0x280)][_0x2f780e(0xab)](new Map()),this[_0x2f780e(0x280)][_0x2f780e(0x239)](),this['_roomMembers$'][_0x2f780e(0xab)]([]),this['_roomMembers$'][_0x2f780e(0x239)]();}[_0xade8c(0x254)](){const _0x46a67b=_0xade8c;this[_0x46a67b(0x312)]||(this[_0x46a67b(0x312)]=!0x0,this['_session']['sessionStatus$'][_0x46a67b(0x2fe)](_0x2473df(this[_0x46a67b(0x13d)]))[_0x46a67b(0xbf)](_0x1f6c3e=>{const _0x32b169=_0x46a67b;_0x1f6c3e===de[_0x32b169(0x241)]?this[_0x32b169(0x318)]():this['_toggleOffline']();}),this[_0x46a67b(0x8f)][_0x46a67b(0x2ea)][_0x46a67b(0x2fe)](_0x2473df(this['dispose$']))[_0x46a67b(0xbf)](_0x1475be=>{const _0x17e634=_0x46a67b,_0x2ac722=_0x1475be[_0x17e634(0x13b)];_0x2ac722===_0x1b9133['UPDATE_CURSOR']&&this[_0x17e634(0x32d)](_0x1475be),_0x2ac722===_0x1b9133[_0x17e634(0x8b)]&&this[_0x17e634(0x1aa)](_0x1475be);}),this['_onRefRangeChange'](),this[_0x46a67b(0x1f1)](this[_0x46a67b(0x1ba)][_0x46a67b(0x8a)](_0x4b4c4c=>{const _0x189fec=_0x46a67b;if(this[_0x189fec(0x93)]&&_0x4b4c4c['id']===_0x45efda['id']&&_0x4b4c4c['params'][_0x189fec(0x158)]===this[_0x189fec(0x14d)]){const _0x359609=_0x4b4c4c['params'];this[_0x189fec(0x1c5)](_0x359609[_0x189fec(0x205)],_0x359609[_0x189fec(0xb3)][0x0]);}})));}[_0xade8c(0x32d)](_0x487874){const _0x30af03=_0xade8c;var _0x5967ba,_0xc53d49;const {memberID:_0x4fd97d,selection:_0x3e0ed3}=_0x487874[_0x30af03(0x19b)],{sheetName:_0x12229e,range:_0x2b1c8a}=_0x35f0e9(_0x3e0ed3),_0x279bb1={'name':(_0xc53d49=(_0x5967ba=this[_0x30af03(0x311)][_0x30af03(0xa5)](this[_0x30af03(0x14d)],_0x4fd97d))==null?void 0x0:_0x5967ba[_0x30af03(0x89)])!=null?_0xc53d49:_0x30af03(0x381),'range':this[_0x30af03(0x1b1)](_0x12229e,_0x2b1c8a),'sheetID':_0x12229e,'color':this[_0x30af03(0x258)]['assignAColorForMemberID'](_0x4fd97d),'selection':_0x3e0ed3},_0x942893=this[_0x30af03(0x294)];_0x942893[_0x30af03(0xbd)](_0x4fd97d,_0x279bb1),this['_cursorInfo$'][_0x30af03(0xab)](_0x942893);}[_0xade8c(0x1aa)](_0x35ff84){const _0x5e5ea4=_0xade8c,{memberID:_0x262508}=_0x35ff84[_0x5e5ea4(0x19b)],_0x5b7155=this[_0x5e5ea4(0x294)];_0x5b7155[_0x5e5ea4(0x39d)](_0x262508),this[_0x5e5ea4(0x280)][_0x5e5ea4(0xab)](_0x5b7155);}[_0xade8c(0x1b1)](_0x3c31d0,_0x4815c2){const _0x507e28=_0xade8c;var _0x5441df,_0x959ee5;const _0xb1a01e=(_0x959ee5=(_0x5441df=this[_0x507e28(0x1c2)][_0x507e28(0x351)](this['unitID']))==null?void 0x0:_0x5441df[_0x507e28(0x13e)](_0x3c31d0))==null?void 0x0:_0x959ee5['getMergeData']();return(_0xb1a01e==null?void 0x0:_0xb1a01e[_0x507e28(0x18f)](_0x245fa2=>_0x16c0da[_0x507e28(0x17b)](_0x245fa2,_0x4815c2)))||_0x4815c2;}[_0xade8c(0x3a5)](){const _0x4f6b21=new _0x5e2383(),_0x56e604=sr(),_0x4e14d3=()=>{const _0x47f40a=_0x4292;_0x4f6b21[_0x47f40a(0x199)]();const _0xf7e318=(_0x5e9f17,_0x2a104f,_0x3a606b,_0x552155)=>{const _0x42ae36=_0x47f40a;let _0x19a19a=[];switch(_0x5e9f17['id']){case _0x117f68[_0x42ae36(0x1ab)]:{_0x19a19a=_0x4b1cd0(_0x5e9f17,_0x552155);break;}case _0x117f68['DeleteRangeMoveUpCommandId']:{_0x19a19a=_0x1ec5bf(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0x132)]:{_0x19a19a=_0x2fe4c1(_0x5e9f17,_0x552155);break;}case _0x117f68['InsertRangeMoveDownCommandId']:{_0x19a19a=_0x273ca7(_0x5e9f17,_0x552155);break;}case _0x117f68['InsertRangeMoveRightCommandId']:{_0x19a19a=_0x5acc49(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0xe7)]:{_0x19a19a=_0x59ae3e(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0xd1)]:{_0x19a19a=_0x269fef(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0x1f4)]:{_0x19a19a=_0x4a8c83(_0x5e9f17,_0x552155);break;}case _0x117f68[_0x42ae36(0xee)]:{_0x19a19a=_0x4e9436(_0x5e9f17,_0x552155);break;}}const _0x32a099=_0x40799b(_0x19a19a,_0x552155),_0x43858b=this[_0x42ae36(0x294)]['get'](_0x2a104f);if(_0x43858b&&_0x32a099){const _0x40543c={..._0x43858b,'range':_0x32a099};this[_0x42ae36(0x294)][_0x42ae36(0xbd)](_0x2a104f,_0x40543c),_0x56e604(()=>{const _0x43c078=_0x42ae36,_0x17f43a=this[_0x43c078(0x37e)][_0x43c078(0x376)](_0x32a099,_0x370bf6=>(_0x17f43a[_0x43c078(0x199)](),_0xf7e318(_0x370bf6,_0x2a104f,_0x3a606b,_0x32a099)));_0x4f6b21[_0x43c078(0x21f)](_0x17f43a);});}return{'redos':[],'undos':[]};};this[_0x47f40a(0x294)]['forEach']((_0xa780b8,_0x8b9b7c)=>{const _0x2fb58a=_0x47f40a,{range:_0x33e838,sheetID:_0x3ec949}=_0xa780b8,_0xc863d9=this[_0x2fb58a(0x37e)][_0x2fb58a(0x376)](_0x33e838,_0x532b5b=>(_0xc863d9[_0x2fb58a(0x199)](),_0xf7e318(_0x532b5b,_0x8b9b7c,_0x3ec949,_0x33e838)));_0x4f6b21[_0x2fb58a(0x21f)](_0xc863d9);});};this['disposeWithMe'](_0x45cb21(this['_cursorInfo$']['subscribe'](()=>{_0x4e14d3();})));}['_toggleOnline'](){const _0x268019=_0xade8c;var _0x3f256d,_0x4ef46d;if(this['_online']=!0x0,((_0x3f256d=this[_0x268019(0x1c2)][_0x268019(0x16f)]())==null?void 0x0:_0x3f256d[_0x268019(0x350)]())!==this['unitID'])return;const _0x3de083=(_0x4ef46d=this['_injector'][_0x268019(0x275)](_0x49acad)[_0x268019(0x200)]())==null?void 0x0:_0x4ef46d[0x0],_0x42a17f=this[_0x268019(0x1c2)][_0x268019(0x227)](_0x9cd059[_0x268019(0x3a3)])[_0x268019(0x387)]();_0x3de083&&_0x42a17f&&this[_0x268019(0x1c5)](_0x42a17f[_0x268019(0x16e)](),_0x3de083);}['_toggleOffline'](){this['_online']=!0x1;}};It=Qn([he(0x2,_0xd901da(_0x3c61ae)),he(0x3,_0xd901da(Lt)),he(0x4,_0xd901da(ne)),he(0x5,_0x3b87df),he(0x6,_0x3f64f1),he(0x7,_0xd901da(_0x2d1308))],It);var ir=Object[_0xade8c(0x36b)],nr=Object['getOwnPropertyDescriptor'],rr=(_0xbfc68e,_0x206e04,_0x3d0741,_0x54e0b0)=>{for(var _0x1a21f9=_0x54e0b0>0x1?void 0x0:_0x54e0b0?nr(_0x206e04,_0x3d0741):_0x206e04,_0x5bae2f=_0xbfc68e['length']-0x1,_0x1648cb;_0x5bae2f>=0x0;_0x5bae2f--)(_0x1648cb=_0xbfc68e[_0x5bae2f])&&(_0x1a21f9=(_0x54e0b0?_0x1648cb(_0x206e04,_0x3d0741,_0x1a21f9):_0x1648cb(_0x1a21f9))||_0x1a21f9);return _0x54e0b0&&_0x1a21f9&&ir(_0x206e04,_0x3d0741,_0x1a21f9),_0x1a21f9;},te=(_0x199577,_0x4f4ab1)=>(_0x4071eb,_0x597822)=>_0x4f4ab1(_0x4071eb,_0x597822,_0x199577);const or=0x12c,ar=0x64;let Et=class extends _0x3fb7e3{constructor(_0x4040,_0x5c2b84,_0x4235ff,_0x203170,_0x2f0b50,_0x34527b,_0x380c63,_0x43984b,_0xcace45){const _0xc961d5=_0xade8c;super(),l(this,_0xc961d5(0x93),!0x1),l(this,_0xc961d5(0x312),!0x1),l(this,_0xc961d5(0x280),new _0x1a37bf(new Map())),l(this,_0xc961d5(0x3a0),this[_0xc961d5(0x280)]['asObservable']()),l(this,_0xc961d5(0x225),new _0x1a37bf([])),l(this,_0xc961d5(0x35c),this[_0xc961d5(0x225)][_0xc961d5(0x2fe)](_0x2ec9db(or))),l(this,'_updateLocalCursor',_0x1ebe66(_0x5e3d4b=>{const _0x5cc3c7=_0xc961d5,_0x16d805={'eventID':_0x1b9133[_0x5cc3c7(0x390)],'data':{'unitID':this['unitID'],'memberID':this[_0x5cc3c7(0x8f)][_0x5cc3c7(0xdc)](),'selection':Ns(_0x5e3d4b)}};this['_session'][_0x5cc3c7(0x18a)](_0x16d805,this[_0x5cc3c7(0x14d)]);},ar)),(this[_0xc961d5(0x14d)]=_0x4040,this[_0xc961d5(0x8f)]=_0x5c2b84,this[_0xc961d5(0xcc)]=_0x4235ff,this[_0xc961d5(0x258)]=_0x203170,this[_0xc961d5(0x311)]=_0x2f0b50,this[_0xc961d5(0x1e2)]=_0x34527b,this[_0xc961d5(0x8e)]=_0x380c63,this[_0xc961d5(0x1c2)]=_0x43984b,this[_0xc961d5(0x1ba)]=_0xcace45);}get[_0xade8c(0x294)](){const _0x4a0b55=_0xade8c;return this[_0x4a0b55(0x280)][_0x4a0b55(0x17d)]();}get[_0xade8c(0xe2)](){const _0x3ad072=_0xade8c;return this[_0x3ad072(0x225)]['getValue']();}[_0xade8c(0x199)](){const _0x33a77d=_0xade8c;super[_0x33a77d(0x199)](),this['_cursorInfo$'][_0x33a77d(0xab)](new Map()),this[_0x33a77d(0x280)]['complete'](),this[_0x33a77d(0x225)][_0x33a77d(0xab)]([]),this['_roomMembers$'][_0x33a77d(0x239)]();}['init'](){const _0x239c90=_0xade8c;this[_0x239c90(0x312)]||(this['_init']=!0x0,this['_session']['sessionStatus$'][_0x239c90(0x2fe)](_0x2473df(this['dispose$']))[_0x239c90(0xbf)](_0x35ad3f=>{const _0x1cd188=_0x239c90;_0x35ad3f===de[_0x1cd188(0x241)]?this[_0x1cd188(0x318)]():this['_toggleOffline']();}),this[_0x239c90(0x8f)][_0x239c90(0x2ea)][_0x239c90(0x2fe)](_0x2473df(this[_0x239c90(0x13d)]))[_0x239c90(0xbf)](_0xf2db09=>{const _0x55644b=_0x239c90,_0x4108fa=_0xf2db09['eventID'];_0x4108fa===_0x1b9133[_0x55644b(0x390)]&&this[_0x55644b(0x32d)](_0xf2db09),_0x4108fa===_0x1b9133[_0x55644b(0x8b)]&&this[_0x55644b(0x1aa)](_0xf2db09);}),this[_0x239c90(0x1f1)](this[_0x239c90(0x1ba)]['onCommandExecuted'](_0x3cd557=>{const _0x191651=_0x239c90,_0x26e6e4=_0x3cd557[_0x191651(0x27a)];_0x26e6e4!=null&&this[_0x191651(0x93)]&&_0x3cd557['id']===_0x55ed86['id']&&_0x26e6e4['unitId']===this[_0x191651(0x14d)]&&_0x26e6e4[_0x191651(0xe3)]===!0x1&&this[_0x191651(0x1c5)](_0x26e6e4['ranges']);})),this[_0x239c90(0x1e2)][_0x239c90(0x144)][_0x239c90(0x2fe)](_0x2473df(this[_0x239c90(0x13d)]))[_0x239c90(0xbf)](_0x564cd4=>{const _0x979ef0=_0x239c90;if((_0x564cd4==null?void 0x0:_0x564cd4[_0x979ef0(0x14d)])!==this[_0x979ef0(0x14d)])return;const _0x4f4f53={'eventID':_0x1b9133[_0x979ef0(0x390)],'data':_0x564cd4};this[_0x979ef0(0x32d)](_0x4f4f53);}),this[_0x239c90(0x1f1)](this['_commandService']['onCommandExecuted'](_0x33b8d9=>{const _0x4f8843=_0x239c90;if(_0x33b8d9[_0x4f8843(0x27a)]==null)return;const _0x475d26=_0x33b8d9[_0x4f8843(0x27a)];if(_0x33b8d9['id']!==_0x372b8c['id']||_0x475d26['unitId']!==this[_0x4f8843(0x14d)])return;const _0x50d2a6={'id':'doc.mutation.rich-text-editing','params':_0x475d26},_0x537402=this[_0x4f8843(0x294)];for(const [_0x32d64b,_0xde275]of _0x537402){const _0x279a83={'id':_0x4f8843(0x39b),'params':{'unitId':this[_0x4f8843(0x14d)],'actions':null,'textRanges':_0xde275[_0x4f8843(0x2a4)]}},_0x218cc1=this[_0x4f8843(0x8e)][_0x4f8843(0xaa)](_0x50d2a6,_0x279a83,!0x1);if(_0x1054d7(_0x218cc1))throw _0x218cc1[_0x4f8843(0x2cf)];_0x537402[_0x4f8843(0xbd)](_0x32d64b,{..._0xde275,'ranges':_0x218cc1[_0x4f8843(0x244)]['params'][_0x4f8843(0x22f)]});}queueMicrotask(()=>{const _0x5949fc=_0x4f8843;this[_0x5949fc(0x280)][_0x5949fc(0xab)](_0x537402);});})));}[_0xade8c(0x32d)](_0x5cbd59){const _0x3f0989=_0xade8c;var _0xfe5789,_0x3f4bfa;const {memberID:_0x264c98,selection:_0x511b95}=_0x5cbd59[_0x3f0989(0x19b)],_0x582ba4=xn(_0x511b95),_0x945ad7=(_0x3f4bfa=(_0xfe5789=this['_memberService'][_0x3f0989(0xa5)](this[_0x3f0989(0x14d)],_0x264c98))==null?void 0x0:_0xfe5789['name'])!=null?_0x3f4bfa:_0x3f0989(0x381),_0x9824d3={'color':this[_0x3f0989(0x258)][_0x3f0989(0x356)](_0x264c98),'name':_0x945ad7,'ranges':_0x582ba4},_0x27a25c=this[_0x3f0989(0x294)];_0x27a25c[_0x3f0989(0xbd)](_0x264c98,_0x9824d3),this[_0x3f0989(0x280)][_0x3f0989(0xab)](_0x27a25c);}['_onCursorDelete'](_0x5ca11b){const _0x9df0a9=_0xade8c,{memberID:_0x2b3cee}=_0x5ca11b['data'],_0x1fb4ef=this[_0x9df0a9(0x294)];_0x1fb4ef[_0x9df0a9(0x39d)](_0x2b3cee),this[_0x9df0a9(0x280)][_0x9df0a9(0xab)](_0x1fb4ef);}[_0xade8c(0x318)](){const _0x5f024f=_0xade8c;var _0x1e27f2;if(this[_0x5f024f(0x93)]=!0x0,((_0x1e27f2=this['_univerInstanceService'][_0x5f024f(0x16f)]())==null?void 0x0:_0x1e27f2[_0x5f024f(0x350)]())!==this[_0x5f024f(0x14d)])return;const _0x371742=this['_injector'][_0x5f024f(0x275)](_0x33f09e)[_0x5f024f(0x200)](),_0x49e943=_0x371742==null?void 0x0:_0x371742['map'](_0x5b7fb3);Array[_0x5f024f(0xc9)](_0x49e943)&&_0x49e943[_0x5f024f(0x331)]>0x0&&this[_0x5f024f(0x1c5)](_0x49e943);}[_0xade8c(0x209)](){const _0x1da93a=_0xade8c;this[_0x1da93a(0x93)]=!0x1;}};Et=rr([te(0x2,_0xd901da(_0x3c61ae)),te(0x3,_0xd901da(Lt)),te(0x4,_0xd901da(ne)),te(0x5,_0xd901da(Ut)),te(0x6,_0x581964),te(0x7,_0x3b87df),te(0x8,_0x3f64f1)],Et);var cr=Object[_0xade8c(0x36b)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x4deff2,_0x311709,_0x3c9c92,_0x2a7abe)=>{const _0x53c650=_0xade8c;for(var _0x1403d1=_0x2a7abe>0x1?void 0x0:_0x2a7abe?hr(_0x311709,_0x3c9c92):_0x311709,_0x550948=_0x4deff2[_0x53c650(0x331)]-0x1,_0x5ec28f;_0x550948>=0x0;_0x550948--)(_0x5ec28f=_0x4deff2[_0x550948])&&(_0x1403d1=(_0x2a7abe?_0x5ec28f(_0x311709,_0x3c9c92,_0x1403d1):_0x5ec28f(_0x1403d1))||_0x1403d1);return _0x2a7abe&&_0x1403d1&&cr(_0x311709,_0x3c9c92,_0x1403d1),_0x1403d1;},ct=(_0x17baae,_0x5c201a)=>(_0x6e4d8b,_0x506bc5)=>_0x5c201a(_0x6e4d8b,_0x506bc5,_0x17baae);let fe=class extends _0x3fb7e3{constructor(_0x54ace0,_0x325f95,_0x5e79d4){const _0x543626=_0xade8c;super(),l(this,'_entities',new Map()),l(this,_0x543626(0x320),new _0x3718e0()),(this[_0x543626(0x1c2)]=_0x54ace0,this['_injector']=_0x325f95,this[_0x543626(0x2fd)]=_0x5e79d4,this[_0x543626(0x312)]());}['dispose'](){const _0x5dd0cb=_0xade8c;super[_0x5dd0cb(0x199)](),this['_entityInit$'][_0x5dd0cb(0x239)](),this[_0x5dd0cb(0x306)][_0x5dd0cb(0x2f2)](_0x51b32f=>_0x51b32f[_0x5dd0cb(0x199)]());}[_0xade8c(0x1f8)](_0x269a75){const _0x15c7de=_0xade8c;return this['_entities'][_0x15c7de(0x1e7)](_0x269a75)?this[_0x15c7de(0x306)][_0x15c7de(0x275)](_0x269a75)[_0x15c7de(0x3a0)]:this[_0x15c7de(0x320)][_0x15c7de(0x2fe)](_0x2a5048(_0x3e16d8=>_0x3e16d8[_0x15c7de(0x14d)]===_0x269a75),_0x2075a8(_0x37eee6=>_0x37eee6[_0x15c7de(0x3a0)]));}['_init'](){const _0x281a13=_0xade8c;this['_univerInstanceService'][_0x281a13(0x252)](_0x9cd059[_0x281a13(0x3a3)])[_0x281a13(0x2fe)](_0x2473df(this[_0x281a13(0x13d)]))[_0x281a13(0xbf)](async _0x28e18a=>{const _0x2e4285=_0x281a13,_0x1f8da6=_0x28e18a[_0x2e4285(0x350)](),_0x482291=await this[_0x2e4285(0x99)](_0x1f8da6);this[_0x2e4285(0x320)][_0x2e4285(0xab)](_0x482291),this['_entities']['set'](_0x1f8da6,_0x482291);}),this[_0x281a13(0x1c2)][_0x281a13(0x252)](_0x9cd059[_0x281a13(0x1c7)])[_0x281a13(0x2fe)](_0x2473df(this[_0x281a13(0x13d)]))[_0x281a13(0x2fe)](_0x2a5048(_0x3ff9c4=>!_0x3ff9c4['getUnitId']()[_0x281a13(0xfc)]('__')))[_0x281a13(0xbf)](async _0x48efa9=>{const _0x1d5dc9=_0x281a13,_0x21b5aa=_0x48efa9[_0x1d5dc9(0x350)](),_0x579848=await this[_0x1d5dc9(0x290)](_0x21b5aa);this['_entityInit$'][_0x1d5dc9(0xab)](_0x579848),this[_0x1d5dc9(0x306)][_0x1d5dc9(0xbd)](_0x21b5aa,_0x579848);}),_0x52fd0c(this[_0x281a13(0x1c2)][_0x281a13(0x1a4)](_0x9cd059[_0x281a13(0x1c7)]),this['_univerInstanceService'][_0x281a13(0x1a4)](_0x9cd059[_0x281a13(0x3a3)]))[_0x281a13(0x2fe)](_0x2473df(this[_0x281a13(0x13d)]))[_0x281a13(0xbf)](_0x12f577=>{const _0x562514=_0x281a13,_0x12df5a=_0x12f577[_0x562514(0x350)](),_0x1d9472=this[_0x562514(0x306)][_0x562514(0x275)](_0x12df5a);_0x1d9472&&(_0x1d9472[_0x562514(0x199)](),this['_entities'][_0x562514(0x39d)](_0x12df5a));});}async['_startSheetCollabCursor'](_0x10fcf5){const _0x27e700=_0xade8c,_0x5c6cd6=await this[_0x27e700(0x2fd)][_0x27e700(0x12b)](_0x10fcf5),_0x546ca4=this[_0x27e700(0xcc)][_0x27e700(0x371)](It,_0x10fcf5,_0x5c6cd6);return _0x546ca4['init'](),_0x546ca4;}async[_0xade8c(0x290)](_0xc04a07){const _0x4cbb40=_0xade8c,_0x439870=await this['_collabSessionService'][_0x4cbb40(0x12b)](_0xc04a07),_0x3a2b28=this[_0x4cbb40(0xcc)][_0x4cbb40(0x371)](Et,_0xc04a07,_0x439870);return _0x3a2b28['init'](),_0x3a2b28;}};fe=lr([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],fe),ct(0x0,_0x3b87df),ct(0x1,_0xd901da(_0x3c61ae)),ct(0x2,_0xd901da(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,_r=0x5;function ur(_0x2633ae,_0x3e95d8){const _0x4afb53=_0xade8c;let {radius:_0x2e57a0,width:_0x1408e4,height:_0x3eef43}=_0x3e95d8;_0x2e57a0=_0x2e57a0!=null?_0x2e57a0:0x0,_0x1408e4=_0x1408e4!=null?_0x1408e4:0x1e,_0x3eef43=_0x3eef43!=null?_0x3eef43:0x1e;let _0x846488=0x0,_0x3f3135=0x0,_0x270cf0=0x0;_0x846488=_0x3f3135=_0x270cf0=Math[_0x4afb53(0x194)](_0x2e57a0,_0x1408e4/0x2,_0x3eef43/0x2),_0x2633ae['beginPath'](),_0x2633ae[_0x4afb53(0x37c)](_0x846488,0x0),_0x2633ae[_0x4afb53(0x18b)](_0x1408e4-_0x3f3135,0x0),_0x2633ae[_0x4afb53(0x165)](_0x1408e4-_0x3f3135,_0x3f3135,_0x3f3135,Math['PI']*0x3/0x2,0x0,!0x1),_0x2633ae[_0x4afb53(0x18b)](_0x1408e4,_0x3eef43-_0x270cf0),_0x2633ae[_0x4afb53(0x165)](_0x1408e4-_0x270cf0,_0x3eef43-_0x270cf0,_0x270cf0,0x0,Math['PI']/0x2,!0x1),_0x2633ae[_0x4afb53(0x18b)](0x0,_0x3eef43),_0x2633ae[_0x4afb53(0x18b)](0x0,_0x846488),_0x2633ae['arc'](_0x846488,_0x846488,_0x846488,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2633ae[_0x4afb53(0x29f)](),_0x3e95d8['fill']&&(_0x2633ae[_0x4afb53(0x325)](),_0x2633ae[_0x4afb53(0x1db)]=_0x3e95d8[_0x4afb53(0x204)],_0x3e95d8[_0x4afb53(0x1f0)]==='evenodd'?_0x2633ae[_0x4afb53(0x204)](_0x4afb53(0x112)):_0x2633ae['fill'](),_0x2633ae[_0x4afb53(0x191)]());}class st extends _0xd0c38{constructor(_0x2d2f70,_0x1fdc62){const _0x3eb6dc=_0xade8c;super(_0x2d2f70,_0x1fdc62),l(this,_0x3eb6dc(0xe6)),l(this,_0x3eb6dc(0x29c)),(this[_0x3eb6dc(0xe6)]=_0x1fdc62==null?void 0x0:_0x1fdc62[_0x3eb6dc(0xe6)],this[_0x3eb6dc(0x29c)]=_0x1fdc62==null?void 0x0:_0x1fdc62[_0x3eb6dc(0x29c)]);}static[_0xade8c(0x301)](_0x3fbd97,_0x37c93c){const _0x474765=_0xade8c,{text:_0x2dd524,color:_0x1b1c3d}=_0x37c93c;_0x3fbd97['save'](),_0x3fbd97['font']=_0x474765(0xc6);const _0xaf86c7=_0x3fbd97[_0x474765(0x1fc)](_0x2dd524)['width'],_0x557724=Math[_0x474765(0x194)](_0xaf86c7+0x2*ht,ts);ur(_0x3fbd97,{'height':Me,'radius':0x4,'width':_0x557724,'fill':_0x1b1c3d,'evented':!0x1}),_0x3fbd97[_0x474765(0x1db)]=_0x474765(0x264);const _0x3e722a=ht,_0x59dd9e=Me-_r,_0x5dfb0e=ts-0x2*ht;if(_0xaf86c7>_0x5dfb0e){let _0x2d060b='',_0x384039=0x0;for(const _0x438d57 of _0x2dd524){const _0x337d61=_0x3fbd97[_0x474765(0x1fc)](_0x438d57)['width'];if(_0x384039+_0x337d61<=_0x5dfb0e-_0x3fbd97[_0x474765(0x1fc)]('...')[_0x474765(0x9e)])_0x2d060b+=_0x438d57,_0x384039+=_0x337d61;else{_0x2d060b+=_0x474765(0x317);break;}}_0x3fbd97[_0x474765(0x1c3)](_0x2d060b,_0x3e722a,_0x59dd9e);}else _0x3fbd97['fillText'](_0x2dd524,_0x3e722a,_0x59dd9e);_0x3fbd97[_0x474765(0x191)]();}[_0xade8c(0x176)](_0x1000bd){st['drawWith'](_0x1000bd,this);}}const dr=0x1,fr=1.5;class mr extends _0xd0c38{constructor(_0x263a52,_0x28a6fd){const _0x4c4113=_0xade8c;super(_0x263a52,_0x28a6fd),l(this,_0x4c4113(0x16c)),l(this,_0x4c4113(0x304),!0x1),l(this,_0x4c4113(0x27e)),l(this,_0x4c4113(0xa9),''),l(this,_0x4c4113(0x307),'top'),(_0x28a6fd&&this[_0x4c4113(0x22c)](_0x28a6fd),this[_0x4c4113(0x1d1)][_0x4c4113(0x17c)](()=>this[_0x4c4113(0x22c)]({'hovered':!0x0})),this[_0x4c4113(0xba)][_0x4c4113(0x17c)](()=>this[_0x4c4113(0x22c)]({'hovered':!0x1})));}[_0xade8c(0x22c)](_0x5c9917){const _0xc0bf95=_0xade8c;var _0x131cc5,_0x5d28fb,_0x4c699a,_0x1bd3e8,_0x24373a;this['_color']=(_0x131cc5=_0x5c9917[_0xc0bf95(0xe6)])!=null?_0x131cc5:this['_color'],this['_hovered']=(_0x5d28fb=_0x5c9917[_0xc0bf95(0x1d5)])!=null?_0x5d28fb:this[_0xc0bf95(0x304)],this[_0xc0bf95(0x27e)]=(_0x4c699a=_0x5c9917['range'])!=null?_0x4c699a:this[_0xc0bf95(0x27e)],this[_0xc0bf95(0xa9)]=(_0x1bd3e8=_0x5c9917['name'])!=null?_0x1bd3e8:this['_name'],this[_0xc0bf95(0x307)]=(_0x24373a=_0x5c9917[_0xc0bf95(0x10e)])!=null?_0x24373a:this['_labelPosition'],this[_0xc0bf95(0x375)]({'width':_0x5c9917[_0xc0bf95(0x9e)],'height':_0x5c9917[_0xc0bf95(0x267)]});}[_0xade8c(0x2fc)](_0x2b85b7){const _0x2f3288=_0xade8c,{row:_0x77607a,column:_0x324ce2}=_0x2b85b7;if(_0x77607a>=this[_0x2f3288(0x27e)]['startRow']&&_0x77607a<=this[_0x2f3288(0x27e)][_0x2f3288(0x137)]&&_0x324ce2>=this['_range'][_0x2f3288(0x215)]&&_0x324ce2<=this[_0x2f3288(0x27e)][_0x2f3288(0x2cc)]){this[_0x2f3288(0x22c)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0xade8c(0xeb)](_0x50366d){return!0x1;}[_0xade8c(0x176)](_0x284460){const _0x6aa118=_0xade8c;_0x2d5bd9['drawWith'](_0x284460,{'width':this[_0x6aa118(0x9e)],'height':this['height'],'strokeWidth':fr,'stroke':this[_0x6aa118(0x16c)],'evented':!0x1}),this['_hovered']&&(_0x284460[_0x6aa118(0x325)](),_0x284460[_0x6aa118(0x7f)](0x1,0x0,0x0,0x1,this[_0x6aa118(0x9e)],this['_labelPosition']===_0x6aa118(0x2ac)?0x0:-Me),st[_0x6aa118(0x301)](_0x284460,{'text':this[_0x6aa118(0xa9)],'color':this['_color']}),_0x284460[_0x6aa118(0x191)]());}}var gr=Object[_0xade8c(0x36b)],Sr=Object['getOwnPropertyDescriptor'],vr=(_0x46e265,_0x55ea1d,_0x4841d4,_0x202b6c)=>{const _0x9cccd9=_0xade8c;for(var _0x3c7db1=_0x202b6c>0x1?void 0x0:_0x202b6c?Sr(_0x55ea1d,_0x4841d4):_0x55ea1d,_0x33c6eb=_0x46e265[_0x9cccd9(0x331)]-0x1,_0x19d847;_0x33c6eb>=0x0;_0x33c6eb--)(_0x19d847=_0x46e265[_0x33c6eb])&&(_0x3c7db1=(_0x202b6c?_0x19d847(_0x55ea1d,_0x4841d4,_0x3c7db1):_0x19d847(_0x3c7db1))||_0x3c7db1);return _0x202b6c&&_0x3c7db1&&gr(_0x55ea1d,_0x4841d4,_0x3c7db1),_0x3c7db1;},$e=(_0x1f8354,_0x4831af)=>(_0x181f70,_0x35a479)=>_0x4831af(_0x181f70,_0x35a479,_0x1f8354);const pr=0x1389;let Ve=class extends _0x3fb7e3{constructor(_0x30e584,_0x4bcaf4,_0x24102d,_0x51ddef){const _0xec9ac1=_0xade8c;super(),l(this,_0xec9ac1(0x249),new Set()),l(this,_0xec9ac1(0x123),null),(this['_collabCursorController']=_0x30e584,this[_0xec9ac1(0x1c2)]=_0x4bcaf4,this['_renderManagerService']=_0x24102d,this[_0xec9ac1(0x26c)]=_0x51ddef,this[_0xec9ac1(0x312)]());}get['_sheetSkeletonManagerService'](){const _0x15fae5=_0xade8c;return this[_0x15fae5(0x2ec)][_0x15fae5(0x21a)](this[_0x15fae5(0x1c2)][_0x15fae5(0x227)](_0x9cd059[_0x15fae5(0x3a3)])[_0x15fae5(0x350)]())[_0x15fae5(0xbb)](_0x3c67f3);}get['_unitId'](){const _0x55b068=_0xade8c;return this[_0x55b068(0x1c2)][_0x55b068(0x227)](_0x9cd059[_0x55b068(0x3a3)])['getUnitId']();}['_init'](){const _0x12467c=_0xade8c;this['_sheetSkeletonManagerService']['currentSkeleton$']['pipe'](_0x68ef5b(this[_0x12467c(0x13d)]),_0x1b27ff(_0x334e4d=>{const _0x1b782c=_0x12467c;if(_0x334e4d){const _0x2bb714=_0x334e4d[_0x1b782c(0x83)];return _0x5930bd(this[_0x1b782c(0x2e8)][_0x1b782c(0x1f8)](this[_0x1b782c(0x38c)]),this[_0x1b782c(0x26c)][_0x1b782c(0x30d)])['pipe'](_0x176ea9(([_0x507ef2,_0x11de09])=>{const _0x566fb6=_0x1b782c,_0x298fed=new Map();return _0x507ef2[_0x566fb6(0x2f2)]((_0x491e63,_0x43a060)=>{const _0x2be796=_0x566fb6;if(_0x491e63[_0x2be796(0x303)]===_0x2bb714){const _0x142966={..._0x491e63};_0x142966[_0x2be796(0xe6)]=_0x11de09[_0x491e63['color']],_0x298fed['set'](_0x43a060,_0x142966);}}),{'skeleton':_0x334e4d,'cursors':_0x298fed};}));}return _0x3ff30b({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x28cf45,cursors:_0x1f0862})=>{this['_removeCollabCursors'](),_0x28cf45&&this['_updateCollabCursors'](_0x28cf45,_0x1f0862);}),this['_sheetSkeletonManagerService'][_0x12467c(0x2ed)]['subscribe'](_0x187c90=>{const _0x24738e=_0x12467c;if(_0x187c90==null)return;const {skeleton:_0x1b4d40}=_0x187c90,_0x1c8ade=this[_0x24738e(0x2ec)]['getRenderById'](this['_unitId']),{scene:_0xdc13b}=_0x1c8ade;_0xdc13b[_0x24738e(0x12a)][_0x24738e(0x17c)](_0x1ebe66(_0x266f26=>{const _0x2d013e=_0x24738e;var _0x48e72c,_0x358deb;const {offsetX:_0x43f815,offsetY:_0x4aaf4e}=_0x266f26,{x:_0x161433,y:_0x397bac}=_0xdc13b[_0x2d013e(0x2ab)](_0x4a4da3[_0x2d013e(0x87)]([_0x43f815,_0x4aaf4e])),{scaleX:_0x30e582,scaleY:_0x2c850b}=_0xdc13b['getAncestorScale'](),_0x12087e=_0xdc13b[_0x2d013e(0x223)](_0x1eba95[_0x2d013e(0x2c6)]),_0x526264=_0xdc13b[_0x2d013e(0x265)](_0x4a4da3[_0x2d013e(0x87)]([_0x161433,_0x397bac]),_0x12087e),_0x1f8987=_0x1b4d40[_0x2d013e(0x2c8)](_0x43f815,_0x4aaf4e,_0x30e582,_0x2c850b,_0x526264);((_0x48e72c=this[_0x2d013e(0x123)])==null?void 0x0:_0x48e72c[_0x2d013e(0x10b)])===_0x1f8987[_0x2d013e(0x10b)]&&((_0x358deb=this[_0x2d013e(0x123)])==null?void 0x0:_0x358deb[_0x2d013e(0x1b2)])===_0x1f8987[_0x2d013e(0x1b2)]||this[_0x2d013e(0x249)][_0x2d013e(0x2f2)](_0x1b853d=>{_0x1b853d['onMouseMove'](_0x1f8987);});},0x64));});}['_updateCollabCursors'](_0x257b6c,_0x206af6){const _0x42d798=_0xade8c;var _0x5f466c;const _0x272a2c=(_0x5f466c=this['_sheetSkeletonManagerService'][_0x42d798(0x143)]())==null?void 0x0:_0x5f466c[_0x42d798(0x348)];if(!_0x272a2c)return;const _0x1788d9=this['_getSheetObject']();if(!_0x1788d9)return;this['_cursors'][_0x42d798(0x2f2)](_0x478fe4=>{const _0x3daf66=_0x42d798;_0x478fe4[_0x3daf66(0x2e5)]();});const {scene:_0x4579da}=_0x1788d9,_0x3d1c79=Ir(Array[_0x42d798(0x310)](_0x206af6[_0x42d798(0x1ee)]()))[_0x42d798(0x39e)](_0x436a91=>{const _0x227e57=_0x42d798,{color:_0x427f4c,range:_0x1deb93,name:_0x1fd310,selection:_0x3680c9,sheetID:_0x5718eb}=_0x436a91,{startColumn:_0x459328,startRow:_0x110a99,endColumn:_0x165774,endRow:_0x2aa6d6}=_0x1deb93,_0x329089=_0x287034(_0x110a99,_0x459328,_0x4579da,_0x272a2c),_0x43de15=_0x287034(_0x2aa6d6,_0x165774,_0x4579da,_0x272a2c),{columnHeaderHeightAndMarginTop:_0x3a3f7d}=_0x272a2c,{startX:_0x2add5b,startY:_0xca8adc}=_0x329089,{endX:_0x552b2a,endY:_0x1a29d9}=_0x43de15,_0x150b33=_0x552b2a-_0x2add5b,_0x2bb160=_0x1a29d9-_0xca8adc,_0x5948a7={'labelPosition':_0xca8adc-_0x3a3f7d>=Me?_0x227e57(0x1f6):_0x227e57(0x2ac),'sheetID':_0x5718eb,'range':_0x1deb93,'color':_0x427f4c,'name':_0x1fd310,'selection':_0x3680c9,'left':_0x2add5b,'top':_0xca8adc,'width':_0x150b33,'height':_0x2bb160,'evented':!0x1,'zIndex':pr};return new mr(_0x1fd310,_0x5948a7);});_0x4579da[_0x42d798(0x152)](_0x3d1c79,dr),this['_cursors']=new Set(_0x3d1c79);}[_0xade8c(0x2db)](){const _0x236e5f=_0xade8c;var _0x45c97b;(_0x45c97b=this['_cursors'])==null||_0x45c97b[_0x236e5f(0x2f2)](_0x55dda1=>_0x55dda1[_0x236e5f(0x199)]());}[_0xade8c(0xa4)](){const _0x58a0eb=_0xade8c;return _0x2a0247(this['_univerInstanceService'],this[_0x58a0eb(0x2ec)]);}};Ve=vr([_0x22ab7a(_0x35f1ee[_0xade8c(0x1a6)],Ve),$e(0x0,_0xd901da(fe)),$e(0x1,_0x3b87df),$e(0x2,_0x1e26e7),$e(0x3,_0xd901da(_0x42d43e))],Ve);function Ir(_0x212e7e){const _0x2e1ccd=_0xade8c,_0x34aa93=new Map();return _0x212e7e[_0x2e1ccd(0x2f2)](_0x3512c1=>{const _0x197cea=_0x2e1ccd;if(_0x34aa93[_0x197cea(0x1e7)](_0x3512c1['selection'])){const _0xca84f=_0x34aa93['get'](_0x3512c1[_0x197cea(0x2b9)]);_0xca84f['name']+=',\x20'+_0x3512c1[_0x197cea(0x89)];}else _0x34aa93[_0x197cea(0xbd)](_0x3512c1[_0x197cea(0x2b9)],_0x3512c1);}),Array[_0x2e1ccd(0x310)](_0x34aa93[_0x2e1ccd(0x1ee)]());}var A=function(){const _0xcad473=_0xade8c;return A=Object[_0xcad473(0x120)]||function(_0x3bb14e){const _0x9778f4=_0xcad473;for(var _0xef3b00,_0x47048f=0x1,_0x55d4dc=arguments['length'];_0x47048f<_0x55d4dc;_0x47048f++){_0xef3b00=arguments[_0x47048f];for(var _0x4fd98b in _0xef3b00)Object['prototype']['hasOwnProperty'][_0x9778f4(0x33b)](_0xef3b00,_0x4fd98b)&&(_0x3bb14e[_0x4fd98b]=_0xef3b00[_0x4fd98b]);}return _0x3bb14e;},A[_0xcad473(0x277)](this,arguments);},Er=function(_0x1980b9,_0x380e28){const _0x361970=_0xade8c;var _0x3203e9={};for(var _0x3f7850 in _0x1980b9)Object[_0x361970(0x2bc)][_0x361970(0x220)][_0x361970(0x33b)](_0x1980b9,_0x3f7850)&&_0x380e28[_0x361970(0x332)](_0x3f7850)<0x0&&(_0x3203e9[_0x3f7850]=_0x1980b9[_0x3f7850]);if(_0x1980b9!=null&&typeof Object[_0x361970(0x35b)]==_0x361970(0x26e)){for(var _0x4912cd=0x0,_0x3f7850=Object['getOwnPropertySymbols'](_0x1980b9);_0x4912cd<_0x3f7850[_0x361970(0x331)];_0x4912cd++)_0x380e28[_0x361970(0x332)](_0x3f7850[_0x4912cd])<0x0&&Object[_0x361970(0x2bc)][_0x361970(0x202)][_0x361970(0x33b)](_0x1980b9,_0x3f7850[_0x4912cd])&&(_0x3203e9[_0x3f7850[_0x4912cd]]=_0x1980b9[_0x3f7850[_0x4912cd]]);}return _0x3203e9;},$t=_0x27c31b(function(_0x3bd03d,_0x5762c3){const _0x858daf=_0xade8c;var _0x219f55=_0x3bd03d[_0x858daf(0x1d7)],_0x22647e=_0x3bd03d['id'],_0xc8177d=_0x3bd03d[_0x858daf(0x1b4)],_0x1f3f61=_0x3bd03d[_0x858daf(0x15c)],_0x4eb13d=Er(_0x3bd03d,[_0x858daf(0x1d7),'id',_0x858daf(0x1b4),_0x858daf(0x15c)]),_0x2c92ac='univerjs-icon\x20univerjs-icon-'[_0x858daf(0x131)](_0x22647e,'\x20')[_0x858daf(0x131)](_0xc8177d||'')[_0x858daf(0xac)](),_0xe6cb10=_0x5ddd21('_'['concat'](Tr()));return As(_0x219f55,''[_0x858daf(0x131)](_0x22647e),{'defIds':_0x219f55[_0x858daf(0x33e)],'idSuffix':_0xe6cb10['current']},A({'ref':_0x5762c3,'className':_0x2c92ac},_0x4eb13d),_0x1f3f61);});function As(_0x2177b7,_0xd515cc,_0x115529,_0x2d6381,_0x59ff77){const _0xa32a79=_0xade8c;return _0x5a9803(_0x2177b7[_0xa32a79(0xcf)],A(A({'key':_0xd515cc},Cr(_0x2177b7,_0x115529,_0x59ff77)),_0x2d6381),(br(_0x2177b7,_0x115529)[_0xa32a79(0x117)]||[])[_0xa32a79(0x39e)](function(_0x4cfb57,_0x225afb){const _0x51d783=_0xa32a79;return As(_0x4cfb57,''[_0x51d783(0x131)](_0xd515cc,'-')['concat'](_0x2177b7[_0x51d783(0xcf)],'-')[_0x51d783(0x131)](_0x225afb),_0x115529,void 0x0,_0x59ff77);}));}function Cr(_0x377258,_0x3120f2,_0x4d5b04){const _0x589845=_0xade8c;var _0x561803=A({},_0x377258[_0x589845(0xfe)]);_0x4d5b04!=null&&_0x4d5b04['colorChannel1']&&_0x561803[_0x589845(0x204)]===_0x589845(0xd3)&&(_0x561803[_0x589845(0x204)]=_0x4d5b04['colorChannel1']);var _0x45b7ae=_0x3120f2[_0x589845(0x33e)];return!_0x45b7ae||_0x45b7ae[_0x589845(0x331)]===0x0||(_0x377258[_0x589845(0xcf)]===_0x589845(0x314)&&_0x561803[_0x589845(0x2f7)]&&(_0x561803['xlink:href']=_0x561803[_0x589845(0x2f7)]+_0x3120f2[_0x589845(0x10a)]),Object[_0x589845(0x85)](_0x561803)[_0x589845(0x2f2)](function(_0x25f15a){const _0x5fa0c2=_0x589845;var _0x6ff8dc=_0x25f15a[0x0],_0x3ce2c5=_0x25f15a[0x1];typeof _0x3ce2c5==_0x5fa0c2(0x36f)&&(_0x561803[_0x6ff8dc]=_0x3ce2c5[_0x5fa0c2(0x14e)](/url\(#(.*)\)/,_0x5fa0c2(0x3b2)[_0x5fa0c2(0x131)](_0x3120f2['idSuffix'],')')));})),_0x561803;}function br(_0x5af1e8,_0x518251){const _0x3e7884=_0xade8c;var _0x17c860,_0x21247a=_0x518251[_0x3e7884(0x33e)];return!_0x21247a||_0x21247a[_0x3e7884(0x331)]===0x0?_0x5af1e8:_0x5af1e8['tag']==='defs'&&(!((_0x17c860=_0x5af1e8[_0x3e7884(0x117)])===null||_0x17c860===void 0x0)&&_0x17c860['length'])?A(A({},_0x5af1e8),{'children':_0x5af1e8['children'][_0x3e7884(0x39e)](function(_0x5defa7){const _0x575f71=_0x3e7884;return typeof _0x5defa7[_0x575f71(0xfe)]['id']==_0x575f71(0x36f)&&_0x21247a&&_0x21247a['indexOf'](_0x5defa7[_0x575f71(0xfe)]['id'])>-0x1?A(A({},_0x5defa7),{'attrs':A(A({},_0x5defa7[_0x575f71(0xfe)]),{'id':_0x5defa7[_0x575f71(0xfe)]['id']+_0x518251['idSuffix']})}):_0x5defa7;})}):_0x5af1e8;}function Tr(){const _0x4875b4=_0xade8c;return Math[_0x4875b4(0x107)]()[_0x4875b4(0x346)](0x24)[_0x4875b4(0x18e)](0x2,0x8);}$t['displayName']=_0xade8c(0x29d);var Rr={'tag':_0xade8c(0x16a),'attrs':{'fill':_0xade8c(0x1b7),'viewBox':_0xade8c(0x21c),'width':_0xade8c(0x1fe),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xade8c(0x1bd)},'children':[{'tag':_0xade8c(0x2dc),'attrs':{'stroke':_0xade8c(0xc3),'d':_0xade8c(0xb1),'strokeLinecap':_0xade8c(0x37d),'strokeLinejoin':_0xade8c(0x37d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xade8c(0x336),'attrs':{'id':_0xade8c(0x379)},'children':[{'tag':'path','attrs':{'fill':_0xade8c(0x374),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},ys=_0x27c31b(function(_0x568384,_0xec6212){return _0x5a9803($t,Object['assign']({},_0x568384,{'id':'off-line-single','ref':_0xec6212,'icon':Rr}));});ys[_0xade8c(0x88)]=_0xade8c(0x15f);var Or={'tag':'svg','attrs':{'fill':_0xade8c(0x1b7),'viewBox':_0xade8c(0x35f),'width':_0xade8c(0x1fe),'height':_0xade8c(0x1fe)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0xade8c(0x2dc),'attrs':{'stroke':_0xade8c(0xc3),'d':_0xade8c(0x95),'strokeLinecap':_0xade8c(0x37d),'strokeLinejoin':_0xade8c(0x37d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0xade8c(0x336),'attrs':{'id':_0xade8c(0x19d)},'children':[{'tag':_0xade8c(0x2dc),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0xade8c(0x19d)]},Us=_0x27c31b(function(_0x5a118a,_0x996fd5){const _0xf1fdc2=_0xade8c;return _0x5a9803($t,Object['assign']({},_0x5a118a,{'id':_0xf1fdc2(0x359),'ref':_0x996fd5,'icon':Or}));});Us[_0xade8c(0x88)]=_0xade8c(0x261);const Dr=_0xade8c(0x27c),Pr='univer-online-status-title',wr='univer-online-status',Nr='univer-online',Mr=_0xade8c(0x1d6),be={'onlineStatusIcon':Dr,'onlineStatusTitle':Pr,'onlineStatus':wr,'online':Nr,'offline':Mr};function Ar(_0x10d2a1){const _0x366a91=_0xade8c;switch(_0x10d2a1){case w['OFFLINE']:return _0x366a91(0x172);case w[_0x366a91(0x395)]:return _0x366a91(0x298);case w[_0x366a91(0x31d)]:return'collabStatus.fetchMiss';case w[_0x366a91(0x7c)]:return _0x366a91(0x1e1);case w[_0x366a91(0x116)]:case w[_0x366a91(0x324)]:case w[_0x366a91(0x22e)]:return _0x366a91(0x2af);case w[_0x366a91(0xd0)]:return'collabStatus.synced';}}function yr(_0x21a744){const _0x4e6a97=_0xade8c,{status$:_0x136ece}=_0x21a744,_0x55d0b9=_0x190b58(_0x136ece,w[_0x4e6a97(0x7c)]),_0xe1e853=_0x2a3075(_0x3fbf2b),_0x37b6ec=_0x55d0b9!==w['OFFLINE'],_0x5dcbfc=_0xe1e853['t'](Ar(_0x55d0b9)),_0x21cb98=_0xf44121(be[_0x4e6a97(0x12c)],{[be[_0x4e6a97(0xda)]]:_0x37b6ec,[be[_0x4e6a97(0xcd)]]:!_0x37b6ec}),_0x11a243=_0x37b6ec?_0xeb971e[_0x4e6a97(0x98)](Us,null):_0xeb971e['createElement'](ys,null);return _0xeb971e[_0x4e6a97(0x98)](_0x4e6a97(0x24f),{'className':_0x21cb98},_0xeb971e[_0x4e6a97(0x98)]('div',{'className':be[_0x4e6a97(0x156)]},_0x11a243),_0xeb971e['createElement'](_0x4e6a97(0x24f),{'className':be[_0x4e6a97(0x22a)]},_0x5dcbfc));}var Ur=Object[_0xade8c(0x36b)],Lr=Object[_0xade8c(0x22b)],$r=(_0x50fdbc,_0x1b14f9,_0x14d0d3,_0x2eacdb)=>{const _0x247a13=_0xade8c;for(var _0x1502c7=_0x2eacdb>0x1?void 0x0:_0x2eacdb?Lr(_0x1b14f9,_0x14d0d3):_0x1b14f9,_0x375eda=_0x50fdbc[_0x247a13(0x331)]-0x1,_0x1e029f;_0x375eda>=0x0;_0x375eda--)(_0x1e029f=_0x50fdbc[_0x375eda])&&(_0x1502c7=(_0x2eacdb?_0x1e029f(_0x1b14f9,_0x14d0d3,_0x1502c7):_0x1e029f(_0x1502c7))||_0x1502c7);return _0x2eacdb&&_0x1502c7&&Ur(_0x1b14f9,_0x14d0d3,_0x1502c7),_0x1502c7;},je=(_0xb81627,_0x12b069)=>(_0x5367cb,_0x51542)=>_0x12b069(_0x5367cb,_0x51542,_0xb81627);let Be=class extends _0x5297f3{constructor(_0x24acbc,_0x490bd4,_0x34b888,_0x3285be){const _0xfff5d0=_0xade8c;super(),l(this,_0xfff5d0(0x257),new _0x1a37bf(w[_0xfff5d0(0x7c)])),(this[_0xfff5d0(0x1c2)]=_0x24acbc,this[_0xfff5d0(0x14b)]=_0x490bd4,this[_0xfff5d0(0xcc)]=_0x34b888,this[_0xfff5d0(0x1ca)]=_0x3285be,this[_0xfff5d0(0x1ae)](),this['_initStatusListener']());}[_0xade8c(0x1ae)](){const _0x17fa25=_0xade8c;this['disposeWithMe'](this[_0x17fa25(0x14b)][_0x17fa25(0x2e4)](_0x3b73a8['HEADER_MENU'],()=>_0x5760b9(jr({'status$':this[_0x17fa25(0x257)]['asObservable']()}),this[_0x17fa25(0xcc)])));}[_0xade8c(0x263)](){const _0x1ec2d8=_0xade8c;this['disposeWithMe'](_0x45cb21(this['_univerInstanceService'][_0x1ec2d8(0x2a2)]['pipe'](_0x2075a8(()=>{const _0x1366a4=_0x1ec2d8,_0x389427=this[_0x1366a4(0x1c2)][_0x1366a4(0x16f)]();return _0x389427?this[_0x1366a4(0x1ca)][_0x1366a4(0x36a)](_0x389427[_0x1366a4(0x350)]()):_0x3ff30b(null);}),_0x2075a8(_0x162c49=>_0x162c49?_0x162c49[_0x1ec2d8(0x1ed)]:_0x3ff30b(w[_0x1ec2d8(0x7c)])))[_0x1ec2d8(0xbf)](_0x5c2942=>{const _0x16fb09=_0x1ec2d8;this[_0x16fb09(0x257)][_0x16fb09(0xab)](_0x5c2942);})));}};Be=$r([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],Be),je(0x0,_0x3b87df),je(0x1,_0x6b2e9f),je(0x2,_0xd901da(_0x3c61ae)),je(0x3,_0xd901da(De))],Be);function jr(_0x429f32){const {status$:_0x5691d7}=_0x429f32;return function(){return _0xeb971e['createElement'](yr,{'status$':_0x5691d7});};}function _0x2636(){const _0x11eca8=['setTimeout','_getSnapshotAPIPrefix','_clearHeartbeatTimer','getUndoRedoMutationParamsCache','override','complete','_snapshotService','resourceIDs','max','catch','whenReady','/universer-api/comb','_undoRedoService','ONLINE','_tryEnsureSocket','_saveTaskMap','m2Prime','30OKItbP','onload','_isPermissionRej','[CollaborationSessionService]','_cursors','_queuedRemoteChangesets','commentUpdateEvent','result','_collaborationPaused','popstate','div','LIVESHARE_NEW_HOST','/allowed','getTypeOfUnitAdded$','_configService','init','registerHTTPInterceptor','change$','_status$','_colorAssignService','LIVESHARE_FETCH_OPERATIONS','USERS_ENTER','PSEUDO_FETCH_MISSING_RESULT','auth.needGotoLoginAlert','univer-pro.collaboration-client-socket-service','onRemoteAck','cmd','_rescheduleHeartbeatEvent','OnLineSingle','OFFLINE','_initStatusListener','#FFF','getVpScrollXYInfoByPosToVp','append','height','_getCurrentRevision','setInterval','_socketReady','_disabled','_themeService','_retryConnectingTimer','function','_transformSelections','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','state','_beforeCloseService','sessionStatus','_onJoinRoomEvent','get','LICENSE_MAX_UNITS_EXCEEDED','apply','UNDEFINED','members','params','collaboration.single-unit.warning','univer-online-status-icon','CHANGESET_REVISION_CONFILICT','_range','toggleOnline','_cursorInfo$','flatMap','_redoStacks','loadDoc','setItem','close$','_collaborationTimeoutTimer','clear','collaboration-client.offline-data-not-saved','_handler','[CollaborationSessionService]:\x20socket\x20error','newValue','_clearScheduledTask','_clearUndo','unsubscribe','image/bmp','_startDocCollabCursor','replaceTextRanges','collaborationUniverTypes','_anchorDot','cursorInfo','_setupBeforeClosingHandler','_config','syncEditingCollabCursor','collabStatus.conflict','_exhaustRemoteChangesetQueue','pending','CHANGESET_ACK','text','UniverIcon','symbol','closePath','LIVESHARE_OPERATION','putCollaborators','focused$','getActiveRange','ranges','activeSheet$','_initUnitPermissionChange','socketService','liveShareOperation','filter','_assignedColors','getRelativeToViewportCoord','bottom','initWorkbookPermissionChange','_startCollaboration','collabStatus.syncing','stringify','_drawRange','getRoom','storage','_socket$','_lockTransition','appendMutation','_event$','onSyncEditingCollabCursor','selection','actions','YUUMI_UNABLE_LOAD_URL','prototype','responseType','incrementRevForDocument','[OfflineState]:\x20received\x20changeset.','_showConflictNotification','state$','body','range','COMPRESS_MUTATION_APPLY','routeKey','VIEW_MAIN','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getCellPositionByOffset','searchParams','requestParams','onRemoteChangeset','endColumn','image/jpg','sheets','error','{fileID}','2308376hXxWml','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','code','_onConflict','saveChangeset','univer-pro.collaboration-client.single-active-unit-service','_incrementRevisionNumber','TOO_MANY_REQUESTS','pauseCollaboration','_sendHeartbeat','_removeCollabCursors','path','then','_timeoutTimer','deleteCollaborator','_sendingTimer','NO_OTHER_CLIENTS_EDITING','&to=','socket\x20open.','registerComponent','makeDirty','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_hideTimer','_collabCursorController','_unlockTransition','event$','pluginName','_renderManagerService','currentSkeleton$','_initModules','BASE64','baseRev','_heartbeatTimer','forEach','_getLoginPath','transformSelections','clearInterval','gold400','xlink:href','confirm','saveOfflineData','_sessionStatus$','some','onMouseMove','_collabSessionService','pipe','purple300','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','drawWith','/unit/','sheetID','_hovered','submit\x20changeset\x20error!','_entities','_labelPosition','LEAVE','transformStack\x20failed!','_revisionService','_onRemoteACK','OTHER_CLIENTS_EDITING','currentTheme$','APPLY_PERMISSION_DENIED','_scheduleClearOtherTimer','from','_memberService','_init','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','use','INGEST','localeService','...','_toggleOnline','_clearLocalCache','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','transformUndoRedo','[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.','FETCH_MISS','resolve','getCurrentUser','_entityInit$','_textBubble','\x20in\x20_schedule.','headers','AWAITING','save','_hover','LICENSE_EXPORT_SIZE_EXCEEDED','listCollaborators','asObservable','generateRandomId','[CollaborationUndoRedoService]','removeMember','_onCursorUpdate','/new_changes','unit-cache-','_schedule','length','indexOf','_initCloseConn','saveImage','_ws','clipPath','size','_handleHover','_handleLeaveEvent','_updateCollabCursors','call','ALREADY_EXISTS','5564622QTWKEi','defIds','originalMeta','executeCommand','_waitCount','all','getInterceptPoints','/fetchmissing?from=','SHOULD_CLOSE_CONN','toString','_onRecvEvent','skeleton','fetchMissingChangesets','_pendingMutations','_unitID','getDataModel','_cursor','encodeURIComponent','FETCH_MISSING','getUnitId','getUniverSheetInstance','_onLocalMutation','url','381ulUbWx','_snapshotServerService','assignAColorForMemberID','_onUserLeave','_fetchMissChangesets','on-line-single','SUBMIT_CHANGESET','getOwnPropertySymbols','roomMembers$','post','_drawAnchor','0\x200\x2017\x2016','_transformUndoredo','reverse','addObject','_collaborationSessionService','history','urlChange$','onTransformSelections','permissionRejEvent','_messageService','_getSendChangesetTimeout','getCollabEntity$','defineProperty','_createInitialStateImpl','leaveEvent','UNRECOGNIZED','string','RECV','createInstance','\x20-\x20','getViewModel','#fff','transformByState','registerRefRange','COLLAB_SUBMIT_CHANGESET_URL','target','off-line-single_clip0_910_343','_colorIndex','onMissedChangesetFetched','moveTo','round','_refRangeService','_logService','_getAPIPrefix','Unknown\x20user','_waitForHeartbeatResponse','deepClone','_saveCache','HEARTBEAT_TIMEOUT','_updateLocalCache','getActiveSheet','_commentService','INTERNAL_ERROR','closeSession','_onConnectionFailed','_unitId','objectType','enableSingleActiveInstanceLock','getParam','UPDATE_CURSOR','_submitChangeset','transformMutationsWithChangeset','collaMsg','LICENSE_DISTRO_REJECTED','CONFLICT','_createInitialState','FileId','Warning','UNIVER_COLLABORATION_CLIENT_PLUGIN','_socketMessageSubscription','doc.mutation.rich-text-editing','_getAPIPrefixPath','delete','map','HEARTBEAT_INTERVAL','cursorInfo$','_updateStatus','_docTransformSelectionsService','UNIVER_SHEET','_collabCursorState$','_onRefRangeChange','UNKNOWN_CMD','_joinRoom','registerOnClose','_checkMissing','_onCombEvent','enableLocalCache','IDLE','APPLY_NON_SEQUENTIAL_REVISION','fetch_missing','_decreaseWaiting','_updateState','collab-text-range-','url(#$1','removeParam','_getRedoStack','/universer-api/snapshot/','JOINING','shouldCloseConn','status','onStateChange','saveSnapshot','findNodePositionByCharIndex','_awaitingChangeset','MUTATION','enableOfflineEditing','batchAllowed','NOT_COLLAB','COMPRESS_MUTATION_SEND','getCurrentRevForDocument','transform','/-/object/-/batch_allowed','_document','Univer','sheetId','_transformPreviousActiveRange','entries','_shapes','FromArray','displayName','name','onCommandExecuted','USERS_LEAVE','getUnhiddenWorksheets','_commentUpdate$','_transformService','_session','SNAPSHOT_HAS_BEEN_REMOVED','getUnitType','black','_online','objects','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','onCommentUpdate','_singleActiveUnitService','createElement','_startSheetCollabCursor','setUndoRedoMutationParamsCache','infoRsp','_scene','_initMergeInterceptor','width','_getSaveTimeout','getCollabEntity','fetching\x20missing\x20changesets\x20from\x20','SEND_CHANGESET_TIMEOUT','_remoteChangesetQueue','_getSheetObject','getMember','_docSkeleton','_createHandler','JOIN','_name','transformMutation','next','trim','_state','_getUploadFileURL','onRemoteRej','joinRsp','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','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','selections','CONNECTOR_DATA_TOO_LARGE','LICENSE_IMPORT_SIZE_EXCEEDED','_compressMutationService','_onRemoteRejected','_docSyncEditingCollabCursorService','csRejEvent','onPointerLeave$','with','_substituteUndoStack','set','Error','subscribe','clearTimeout','json','unknown','currentColor','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_UNKNOWN','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_members','userID','isArray','_onUserJoin','awaiting','_injector','offline','_transformUndoRedoStack','tag','SYNCED','MoveRangeCommandId','Starting','colorChannel1','title','collab-text-anchor-','rev','updatePermissionPoint','[OfflineState]:\x20received\x20acknowledgement.','INVALID_ARGUMENT','online','patch','getMemberID','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LOCAL_CACHE_INTERVAL','COMMENT_UPDATE','joinEvent','SNAPSHOT_SERVER_URL_KEY','roomMembers','isEditing','changesets','ERROR_IMAGE_TYPE','color','InsertRowCommandId','liveShareNewHost','_anchor','/collaborator','triggerDblclick','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getSheetBlock','RemoveRowCommandId','NOT_FOUND','_setupSubUnitSync','_send','_roomMembers','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','[SyncedState]:\x20received\x20acknowledgement.','mutations','APPLY_REJECT','_localCacheService','LIVESHARE_TERMINATE','COLLAB_WEB_SOCKET_URL','show','/resources','startsWith','APPLY_REVISION_CONFILICT','attrs','138914Aocjoc','_substituteRedoStack','registerBeforeClose','?size=','YUUMI_URL_COL_OUT_OF_RANGE','_docSkeletonManagerService','transformIMECache','getWorkbookSelections','random','/universer-api/stream/file/upload','_onFetchMissResult','idSuffix','column','_type','updateCursorEvent','labelPosition','_permissionService','[DataLoaderController]','unload','evenodd','editing\x20status\x20changed\x20to','listRoles','commentUpdate$','PENDING','children','getUnitOnRev','unit','_disableEditing','_http','session.connection-failed','toggleOffline','696070XeMBwY','SNAPSHOT_INVALID_SNAPSHOT','assign','_localStorageService','jiqing500','_lastPointer','_syncEditingCollabCursor','UUID','getTime','_clearTimeoutTimer','editingUnit','_replayCachedMutations','onPointerMove$','requireSession','onlineStatus','collaboration.closeRoom','_retryCount','red300','UPDATE_PERMISSION_OBJ','concat','InsertColCommandId','createSocket','getImage','replaceState','rgba(255,\x20255,\x20255,\x200.01)','endRow','subunit','_clearOtherTimers','connection\x20error','eventID','objectID','dispose$','getSheetBySheetId','_cachedData','FAIL','_state$','push','getCurrent','collabCursorState$','_loadSheet','href','_render','_localeService','socket\x20close','unshift','_uiPartsService','_socket','unitID','replace','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_transitionLocked','isPermissionRej','addObjects','_executeRemoteChangeset','_updateSubUnitFromURLParams','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onlineStatusIcon','_docTransformIMECacheService','unitId','_scheduleCollaborationTimeoutTimer','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','setParam','extend','image/gif','updateOfflineData','OffLineSingle','_onConnectionOpen','onTransformRemoteChangesetByIMECache','blue400','_exhaustSavingTask','disableLocalCache','arc','setActiveRange','_imageSourceCache','action','awaiting_with_pending','svg','m1Prime','_color','_HTTPService','getSheetId','getFocusedUnit','UNIVER_SLIDE','list','collabStatus.offline','_scheduleSaving','setCurrentUser','?url=','_draw','fromCollab','_urlService','csAckEvent','transformRemoteChangeset','contains','subscribeEvent','getValue','close','sessionStatus$','debug','_httpService','\x0aAfter:\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_ensureSubject','_getAnchorBounding','getAncestorScale','conflict','_loadDoc','ERROR_IMAGE','send','lineTo','split','/-/object/list','substring','find','13415120JcIxTc','restore','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_clearRedo','min','c2Prime','COMPLETION_FINISHED','_sendHeartbeatTimer','_removeClearOtherTimer','dispose','ws://127.0.0.1:8000/universer-api/comb/connect','data','_notificationService','on-line-single_clip0_910_349','_onRemoteChangeset','image/jpeg','[UniverCollaborationClientPlugin]','fetchThroughInterceptors','update','MSG_FOR_ERROR','getTypeOfUnitDisposed$','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','Steady','resend','PERMISSION_DENIED','NEW_CHANGESETS','_onCursorDelete','DeleteRangeMoveLeftCommandId','6344hXQjMI','_replaceFileID','_initStatusComponent','allowed','src','_getMergeRange','row','getRangePointData','className','_scheduleReconnection','_socketService','none','_scheduleTimestamp','collaborators','_commandService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onTransformIME','url(#off-line-single_clip0_910_343)','getUnitStatus$','error$','UNKNOWN_CODE','loadOfflineData','_univerInstanceService','fillText','interceptor','_updateLocalCursor','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UNIVER_DOC','_getUndoStack','_sessions','_collaborationController','_acknowledgedAwaitingChangeset','LIVESHARE_REQUEST_HOST','_clearCollaborationTimeoutTimer','updateMember','setAlpha','snapshot','onPointerEnter$','[OfflineState]:\x20received\x20rejection.','onSendChangeset','save\x20fail\x20reason\x20is\x20','hovered','univer-offline','icon','createCollaborator','_userManagerService','_unitStatus','fillStyle','not_collab','saveSheetBlock','location','getConfig','_id','collabStatus.notCollab','_syncEditingCollabCursorService','addImageSourceCache','workbook','_createSocket','compose','has','576801BxoJrQ','slice','_onMessage','HEARTBEAT','_updateURLWithCurrentState','status$','values','session','fillRule','disposeWithMe','put','_scheduleHeartbeat','RemoveColCommandId','includes','top','hide','getCollabCursors$','POST','pushState','_unitOnClients','measureText','onMissingChangesets','1em','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getCurrentSelections','[CollaborationEntity]','propertyIsEnumerable','reject','fill','subUnitId','awaitingChangeset','type','_undoStacks','_toggleOffline','_transformStack','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','message$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_removeRoom','method','_change$','_handleHeartbeatEvent','revision','onStarting','reduce','startColumn','memberID','8HPBTxi','transformChangesets','HELLO','getRenderById','_selfUnitIDs','0\x200\x2016\x2016','encode','/object/','add','hasOwnProperty','session.room-full','_eventUnsubscribe','getViewport','_handleEvent','_roomMembers$','_getDocObject','getCurrentUnitForType','loadSheet','_applyRemoteChangeset','onlineStatusTitle','getOwnPropertyDescriptor','setShapeProps','_getCtorByUniverType','AWAITING_WITH_PENDING','textRanges','AUTHZ_URL_KEY','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UNAUTHENTICATED','c1Prime'];_0x2636=function(){return _0x11eca8;};return _0x2636();}const Ls=_0xc3d169('uni.network.url-service');var Hr=Object[_0xade8c(0x36b)],xr=Object[_0xade8c(0x22b)],Fr=(_0x3d3a5c,_0x149518,_0x5201d0,_0x546a29)=>{const _0x5cc02f=_0xade8c;for(var _0x1a153a=_0x546a29>0x1?void 0x0:_0x546a29?xr(_0x149518,_0x5201d0):_0x149518,_0x22e87d=_0x3d3a5c[_0x5cc02f(0x331)]-0x1,_0x511ab6;_0x22e87d>=0x0;_0x22e87d--)(_0x511ab6=_0x3d3a5c[_0x22e87d])&&(_0x1a153a=(_0x546a29?_0x511ab6(_0x149518,_0x5201d0,_0x1a153a):_0x511ab6(_0x1a153a))||_0x1a153a);return _0x546a29&&_0x1a153a&&Hr(_0x149518,_0x5201d0,_0x1a153a),_0x1a153a;},le=(_0x129456,_0x4984c3)=>(_0x540af0,_0x335f28)=>_0x4984c3(_0x540af0,_0x335f28,_0x129456);let ke=class extends _0x3fb7e3{constructor(_0x3f46f0,_0x1305e2,_0x5e4b30,_0x142b50,_0x2596e3,_0x1aaf65){const _0x919f70=_0xade8c;super(),this[_0x919f70(0x178)]=_0x3f46f0,this['_logService']=_0x1305e2,this[_0x919f70(0x1ba)]=_0x5e4b30,this['_localCacheService']=_0x142b50,this['_snapshotService']=_0x2596e3,_0x1aaf65?_0x1aaf65==null||_0x1aaf65[_0x919f70(0x23e)]()[_0x919f70(0x2dd)](()=>this['_init']()):(this[_0x919f70(0x37f)][_0x919f70(0x180)](_0x919f70(0x110),_0x919f70(0x1c6)),this[_0x919f70(0x312)]());}async[_0xade8c(0x312)](){const _0x261e33=_0xade8c,_0x54bb0c=this[_0x261e33(0x178)][_0x261e33(0x38f)](_0x261e33(0x119)),_0x21cad7=this[_0x261e33(0x178)][_0x261e33(0x38f)](_0x261e33(0x207));if(!_0x54bb0c||!_0x21cad7){this[_0x261e33(0x37f)][_0x261e33(0x180)](_0x261e33(0x110),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x21cad7)){case H['UNIVER_SHEET']:{const _0x1bab17=await this['_loadSheet'](_0x54bb0c);this[_0x261e33(0xf0)](_0x1bab17);break;}case H[_0x261e33(0x1c7)]:{await this['_loadDoc'](_0x54bb0c);break;}default:{this[_0x261e33(0x37f)][_0x261e33(0x2cf)](_0x261e33(0x110),_0x261e33(0xec));break;}}}async[_0xade8c(0xf0)](_0x2a328f){const _0x487d89=_0xade8c;await this['_updateSubUnitFromURLParams'](_0x2a328f),_0x2a328f[_0x487d89(0x2a5)]['pipe'](_0x2473df(this['dispose$']))[_0x487d89(0xbf)](_0x5dbb10=>{const _0x45199a=_0x487d89;_0x5dbb10&&this[_0x45199a(0x1ec)](_0x5dbb10);}),this['_urlService'][_0x487d89(0x365)][_0x487d89(0x2fe)](_0x2473df(this[_0x487d89(0x13d)]))[_0x487d89(0xbf)](()=>this['_updateSubUnitFromURLParams'](_0x2a328f));}[_0xade8c(0x1ec)](_0x34560b,_0x17bd11=!0x1){const _0x9f272=_0xade8c,_0x82a769=this[_0x9f272(0x178)][_0x9f272(0x38f)]('subunit');_0x34560b[_0x9f272(0x16e)]()!==_0x82a769&&this[_0x9f272(0x178)]['setParam'](_0x9f272(0x138),_0x34560b[_0x9f272(0x16e)](),_0x17bd11);}async[_0xade8c(0x154)](_0x3d67b1){const _0x4b2dfa=_0xade8c;var _0x2126c9;const _0x31b5d3=this['_urlService'][_0x4b2dfa(0x38f)](_0x4b2dfa(0x138));if(!_0x31b5d3||!_0x3d67b1['getSheetBySheetId'](_0x31b5d3)){const _0x558804=_0x3d67b1[_0x4b2dfa(0x8c)]()[0x0],_0x2d14d3=_0x3d67b1[_0x4b2dfa(0x13e)](_0x558804);if(!_0x2d14d3)return;this['_updateURLWithCurrentState'](_0x2d14d3,!0x0),await this[_0x4b2dfa(0x1ba)][_0x4b2dfa(0x340)](_0x3fc4c1['id'],{'unitId':_0x3d67b1[_0x4b2dfa(0x350)](),'subUnitId':_0x558804});return;}((_0x2126c9=_0x3d67b1[_0x4b2dfa(0x387)]())==null?void 0x0:_0x2126c9['getSheetId']())!==_0x31b5d3&&await this[_0x4b2dfa(0x1ba)][_0x4b2dfa(0x340)](_0x3fc4c1['id'],{'unitId':_0x3d67b1[_0x4b2dfa(0x350)](),'subUnitId':_0x31b5d3});}async[_0xade8c(0x145)](_0x39366d){const _0x3557de=_0xade8c;let _0x50a74d=0x0;const _0x3d49fb=await this[_0x3557de(0xf7)][_0x3557de(0x1c1)](_0x39366d);return _0x3d49fb&&(_0x3d49fb[_0x3557de(0x206)]||_0x3d49fb[_0x3557de(0xf5)][_0x3557de(0x331)]!==0x0)&&(_0x50a74d=_0x3d49fb['rev']),_0x50a74d===0x0&&this[_0x3557de(0x37f)]['debug']('[DataLoaderController]',_0x3557de(0x1bb)),this[_0x3557de(0x23a)][_0x3557de(0x228)](_0x39366d,_0x50a74d);}async[_0xade8c(0x188)](_0x1f91b1){const _0x3aee7f=_0xade8c;let _0x2de90b=0x0;const _0x3f6ae4=await this['_localCacheService']['loadOfflineData'](_0x1f91b1);return _0x3f6ae4&&(_0x3f6ae4[_0x3aee7f(0x206)]||_0x3f6ae4['mutations'][_0x3aee7f(0x331)]!==0x0)&&(_0x2de90b=_0x3f6ae4[_0x3aee7f(0xd6)]),_0x2de90b===0x0&&this[_0x3aee7f(0x37f)][_0x3aee7f(0x180)](_0x3aee7f(0x110),_0x3aee7f(0x1bb)),this['_snapshotService'][_0x3aee7f(0x283)](_0x1f91b1,_0x2de90b);}};ke=Fr([_0x22ab7a(_0x35f1ee[_0xade8c(0xd2)],ke),le(0x0,Ls),le(0x1,_0x255408),le(0x2,_0x3f64f1),le(0x3,_0xd901da(D)),le(0x4,_0xd901da(_0x570f37)),le(0x5,_0x3badbf(_0x56e60a))],ke);var Vr=Object[_0xade8c(0x36b)],Br=Object[_0xade8c(0x22b)],kr=(_0x4f1625,_0x54a6b2,_0x5427d5,_0x3c4870)=>{const _0x188bc4=_0xade8c;for(var _0x27bdc2=_0x3c4870>0x1?void 0x0:_0x3c4870?Br(_0x54a6b2,_0x5427d5):_0x54a6b2,_0x5ba890=_0x4f1625[_0x188bc4(0x331)]-0x1,_0x1db57c;_0x5ba890>=0x0;_0x5ba890--)(_0x1db57c=_0x4f1625[_0x5ba890])&&(_0x27bdc2=(_0x3c4870?_0x1db57c(_0x54a6b2,_0x5427d5,_0x27bdc2):_0x1db57c(_0x27bdc2))||_0x27bdc2);return _0x3c4870&&_0x27bdc2&&Vr(_0x54a6b2,_0x5427d5,_0x27bdc2),_0x27bdc2;},ss=(_0x5ba953,_0x134228)=>(_0x31065,_0x6bc10d)=>_0x134228(_0x31065,_0x6bc10d,_0x5ba953);const Wr='DEFAULT_FILE_NAME',Gr=_0xade8c(0x82);let We=class extends _0x5297f3{constructor(_0xfcf379,_0x171474){const _0x2f93da=_0xade8c;super(),this[_0x2f93da(0x1c2)]=_0xfcf379,this['_configService']=_0x171474,this[_0x2f93da(0x312)]();}[_0xade8c(0x312)](){const _0x31b418=_0xade8c;this[_0x31b418(0x1f1)](_0x45cb21(this[_0x31b418(0x1c2)]['focused$']['subscribe'](()=>{const _0x357343=_0x31b418;var _0x43c724;const _0x1b9ba4=this[_0x357343(0x1c2)][_0x357343(0x16f)]();let _0x33c5a0=(_0x43c724=this[_0x357343(0x253)][_0x357343(0x1df)](Wr))!=null?_0x43c724:Gr;_0x1b9ba4 instanceof _0x5e425c&&(_0x33c5a0=_0x1b9ba4[_0x357343(0x89)]),document[_0x357343(0xd4)]=_0x33c5a0;})));}};We=kr([_0x22ab7a(_0x35f1ee['Ready'],We),ss(0x0,_0x3b87df),ss(0x1,_0x531a6b)],We);var Yr=Object[_0xade8c(0x36b)],Kr=Object[_0xade8c(0x22b)],Xr=(_0x35e769,_0x1eb717,_0x192c6e,_0x2f7cf5)=>{const _0xd7a99d=_0xade8c;for(var _0x1de1eb=_0x2f7cf5>0x1?void 0x0:_0x2f7cf5?Kr(_0x1eb717,_0x192c6e):_0x1eb717,_0xd6912f=_0x35e769[_0xd7a99d(0x331)]-0x1,_0x25556e;_0xd6912f>=0x0;_0xd6912f--)(_0x25556e=_0x35e769[_0xd6912f])&&(_0x1de1eb=(_0x2f7cf5?_0x25556e(_0x1eb717,_0x192c6e,_0x1de1eb):_0x25556e(_0x1de1eb))||_0x1de1eb);return _0x2f7cf5&&_0x1de1eb&&Yr(_0x1eb717,_0x192c6e,_0x1de1eb),_0x1de1eb;},is=(_0x218922,_0x36525c)=>(_0x5ade44,_0x51e03e)=>_0x36525c(_0x5ade44,_0x51e03e,_0x218922);let Ct=class{constructor(_0x399ee6,_0x15541e){const _0x30056e=_0xade8c;this['_configService']=_0x399ee6,this[_0x30056e(0x181)]=_0x15541e;}async[_0xade8c(0x118)](_0x534b77,_0x37eb5a){const _0x48be9b=_0xade8c;var _0x225016;const {unitID:_0x5de43c,type:_0x4d1ff9,revision:_0x5f3c78=0x0}=_0x37eb5a,_0x26dc9e=this[_0x48be9b(0x235)]()+'/'+_0x4d1ff9+'/unit/'+_0x5de43c+'/rev/'+(_0x5f3c78===0x1?0x0:_0x5f3c78),_0x5b3c1c=(await this['_httpService'][_0x48be9b(0x275)](_0x26dc9e))['body'],_0x453dca=(_0x225016=_0x5b3c1c[_0x48be9b(0x1d0)])==null?void 0x0:_0x225016[_0x48be9b(0x1e4)];if(_0x453dca){const _0x54af27=_0x453dca==null?void 0x0:_0x453dca[_0x48be9b(0x33f)],_0x15364c=_0x53c3e8['encode'](_0x5ccd98(_0x54af27));_0x453dca[_0x48be9b(0x33f)]=_0x15364c,Object[_0x48be9b(0x85)](_0x453dca[_0x48be9b(0x2ce)])[_0x48be9b(0x2f2)](([,_0x13796e])=>{const _0x3939df=_0x48be9b,_0x179696=_0x13796e[_0x3939df(0x33f)],_0x22f592=_0x53c3e8[_0x3939df(0x21d)](_0x5ccd98(_0x179696));_0x13796e['originalMeta']=_0x22f592;});}return _0x5b3c1c;}async[_0xade8c(0xed)](_0x3f0b2d,_0x47981d){const _0x5e2ef8=_0xade8c,{unitID:_0xc00a74,type:_0x52cd,blockID:_0x20709a}=_0x47981d,_0x53be0b=this[_0x5e2ef8(0x380)]()+'/'+_0x52cd+_0x5e2ef8(0x302)+_0xc00a74+'/block/'+_0x20709a;return(await this['_httpService'][_0x5e2ef8(0x275)](_0x53be0b))[_0x5e2ef8(0x2c2)];}async[_0xade8c(0x349)](_0x2e21e7,_0x307861){const _0x127bd3=_0xade8c,{unitID:_0x4626e3,type:_0x58ec19,from:_0xf5993f,to:_0x213cd7}=_0x307861,_0x2919b1=this[_0x127bd3(0x380)]()+'/'+_0x58ec19+_0x127bd3(0x302)+_0x4626e3+_0x127bd3(0x344)+_0xf5993f+_0x127bd3(0x2e2)+_0x213cd7;return(await this[_0x127bd3(0x181)][_0x127bd3(0x275)](_0x2919b1))['body'];}[_0xade8c(0x235)](){const _0x55d735=_0xade8c;var _0x232f0c;return(_0x232f0c=this['_configService'][_0x55d735(0x1df)](Qi))!=null?_0x232f0c:this['_getAPIPrefix']();}[_0xade8c(0x380)](){const _0x303a94=_0xade8c;var _0x13433e;return(_0x13433e=this[_0x303a94(0x253)][_0x303a94(0x1df)](zi))!=null?_0x13433e:Zi;}async['getResourcesRequest'](_0x341db0,_0x5adbaa){const _0x4d3848=_0xade8c,_0x469cc7=_0x4d3848(0x3b5)+_0x5adbaa[_0x4d3848(0x207)]+_0x4d3848(0x302)+_0x5adbaa[_0x4d3848(0x14d)]+_0x4d3848(0xfb);return(await this[_0x4d3848(0x181)][_0x4d3848(0x275)](_0x469cc7,{'params':{'resourceId':JSON[_0x4d3848(0x2b0)](_0x5adbaa[_0x4d3848(0x23b)])}}))[_0x4d3848(0x2c2)];}[_0xade8c(0x3ba)](){const _0x1c71d1=_0xade8c;throw new Error(_0x1c71d1(0x2d2));}[_0xade8c(0x1dd)](){const _0x475bb6=_0xade8c;throw new Error(_0x475bb6(0x2d2));}[_0xade8c(0x2d5)](){const _0x136669=_0xade8c;throw new Error(_0x136669(0x2d2));}};Ct=Xr([is(0x0,_0x531a6b),is(0x1,_0xd901da(_0x32bb9e))],Ct);var Jr=Object['defineProperty'],qr=Object['getOwnPropertyDescriptor'],zr=(_0x7ebd6a,_0x14dffc,_0x22e98a,_0x588390)=>{const _0x4756bd=_0xade8c;for(var _0x3be4d2=_0x588390>0x1?void 0x0:_0x588390?qr(_0x14dffc,_0x22e98a):_0x14dffc,_0x1894f7=_0x7ebd6a[_0x4756bd(0x331)]-0x1,_0x2c9378;_0x1894f7>=0x0;_0x1894f7--)(_0x2c9378=_0x7ebd6a[_0x1894f7])&&(_0x3be4d2=(_0x588390?_0x2c9378(_0x14dffc,_0x22e98a,_0x3be4d2):_0x2c9378(_0x3be4d2))||_0x3be4d2);return _0x588390&&_0x3be4d2&&Jr(_0x14dffc,_0x22e98a,_0x3be4d2),_0x3be4d2;},Te=(_0x33307a,_0x244708)=>(_0x4db355,_0x477bd5)=>_0x244708(_0x4db355,_0x477bd5,_0x33307a);let bt=class extends _0x71087{constructor(_0x19c550,_0x533137,_0x575449,_0x4de0eb,_0x32172f){const _0xdfba07=_0xade8c;super(_0x19c550,_0x533137,_0x575449),this[_0xdfba07(0x8e)]=_0x4de0eb,this[_0xdfba07(0x37f)]=_0x32172f;}[_0xade8c(0x31b)](_0x56cee2,_0xa594d){const _0x3ab9ca=_0xade8c,_0x3002f0=this['_getUndoStack'](_0x56cee2);if(_0x3002f0)try{const _0x299c1a=this[_0x3ab9ca(0x20a)](_0x3002f0,_0xa594d);this['_substituteUndoStack'](_0x56cee2,_0x299c1a);}catch(_0x39371b){this['_logService'][_0x3ab9ca(0x2cf)](_0x3ab9ca(0x32b),_0x39371b),this[_0x3ab9ca(0x28d)](_0x56cee2);}const _0x5a5194=this[_0x3ab9ca(0x3b4)](_0x56cee2);if(_0x5a5194)try{const _0x59db0b=this[_0x3ab9ca(0x20a)](_0x5a5194,_0xa594d);this[_0x3ab9ca(0x100)](_0x56cee2,_0x59db0b);}catch(_0x58dda3){this[_0x3ab9ca(0x37f)][_0x3ab9ca(0x2cf)](_0x58dda3),this['_clearRedo'](_0x56cee2);}}['_clearUndo'](_0x14c182){const _0xacc14a=_0xade8c,_0xa17487=this[_0xacc14a(0x1c8)](_0x14c182);_0xa17487&&(_0xa17487['length']=0x0,this['_updateStatus']());}[_0xade8c(0x193)](_0x5262e3){const _0xac9c58=_0xade8c,_0x250683=this[_0xac9c58(0x3b4)](_0x5262e3);_0x250683&&(_0x250683[_0xac9c58(0x331)]=0x0,this['_updateStatus']());}[_0xade8c(0xbc)](_0x1c9073,_0x2cdf26){const _0x269865=_0xade8c;this[_0x269865(0x208)]['set'](_0x1c9073,_0x2cdf26),this['_updateStatus']();}[_0xade8c(0x100)](_0x5c6b20,_0x4ebcba){const _0x3fe076=_0xade8c;this[_0x3fe076(0x282)][_0x3fe076(0xbd)](_0x5c6b20,_0x4ebcba),this[_0x3fe076(0x3a1)]();}['_transformStack'](_0x50ed5c,_0x5e7e7e){const _0x42ee66=_0xade8c,_0x23e4b4=[];let _0x46327d=_0x5e7e7e,_0x485371=_0x5e7e7e;for(let _0x302eba=_0x50ed5c[_0x42ee66(0x331)]-0x1;_0x302eba>=0x0;_0x302eba--){const {unitID:_0x28d0ea,undoMutations:_0x4743af,redoMutations:_0x3aa03f}=_0x50ed5c[_0x302eba],_0x286544=this['_transformService']['transformMutationsWithChangeset'](_0x46327d,_0x4743af),_0x2a4130=this[_0x42ee66(0x8e)][_0x42ee66(0x392)](_0x485371,_0x3aa03f);if(_0xb6937e(_0x286544)||_0xb6937e(_0x2a4130)){this['_logService'][_0x42ee66(0x2cf)]('[CollaborationUndoRedoService]',_0x42ee66(0x309),_0x286544,_0x2a4130);break;}_0x46327d=_0x286544['c1Prime'],_0x485371=_0x2a4130['c1Prime'],_0x23e4b4[_0x42ee66(0x142)]({'unitID':_0x28d0ea,'undoMutations':_0x286544[_0x42ee66(0x244)],'redoMutations':_0x2a4130[_0x42ee66(0x244)]});}return _0x23e4b4[_0x42ee66(0x361)]();}};bt=zr([Te(0x0,_0x3b87df),Te(0x1,_0x3f64f1),Te(0x2,_0x23bea4),Te(0x3,_0x581964),Te(0x4,_0x255408)],bt);class Zr extends _0x3fb7e3{constructor(){const _0x3423ad=_0xade8c;super(),l(this,'urlChange$'),this[_0x3423ad(0x365)]=_0x52fa92(window,_0x3423ad(0x24e))[_0x3423ad(0x2fe)](_0x2473df(this[_0x3423ad(0x13d)]),_0x23e965(0x1),_0x53ba30(void 0x0));}[_0xade8c(0x15b)](_0x1cabc5,_0x21b59a,_0x425415=!0x1){const _0xb83413=_0xade8c,_0x200a73=new URL(window['location'][_0xb83413(0x146)]);_0x200a73[_0xb83413(0x2c9)][_0xb83413(0xbd)](_0x1cabc5,_0x21b59a),_0x425415?window[_0xb83413(0x364)][_0xb83413(0x135)]('','',_0x200a73[_0xb83413(0x346)]()):window[_0xb83413(0x364)][_0xb83413(0x1fa)]('','',_0x200a73[_0xb83413(0x346)]());}[_0xade8c(0x3b3)](_0x1fedf5,_0x5228a2=!0x1){const _0x210d74=_0xade8c,_0x2a51b1=new URL(window['location']['href']);_0x2a51b1[_0x210d74(0x2c9)][_0x210d74(0x39d)](_0x1fedf5),_0x5228a2?window[_0x210d74(0x364)]['replaceState']('','',_0x2a51b1[_0x210d74(0x346)]()):window[_0x210d74(0x364)][_0x210d74(0x1fa)]('','',_0x2a51b1[_0x210d74(0x346)]());}[_0xade8c(0x38f)](_0x2f1829){const _0x1bcfe7=_0xade8c;var _0x28b882;return(_0x28b882=new URL(window[_0x1bcfe7(0x1de)][_0x1bcfe7(0x146)])[_0x1bcfe7(0x2c9)][_0x1bcfe7(0x275)](_0x2f1829))!=null?_0x28b882:void 0x0;}}const lt=_0xade8c(0xd5),Qr=_0xade8c(0x3b1),He=0x6,eo=1.5,_t=0x4,to=1.5,so=_0xade8c(0x136);class io{constructor(_0xa31ebc,_0x1ab78d,_0xc23989,_0x53d3e4){const _0x280ae9=_0xade8c;l(this,_0x280ae9(0x86),[]),l(this,'_anchor',null),l(this,_0x280ae9(0x321),null),l(this,_0x280ae9(0x293),null),l(this,_0x280ae9(0x2e7),null),l(this,_0x280ae9(0x222),null),(this[_0x280ae9(0x34d)]=_0xa31ebc,this[_0x280ae9(0x9c)]=_0x1ab78d,this[_0x280ae9(0xa6)]=_0xc23989,this[_0x280ae9(0x81)]=_0x53d3e4,this[_0x280ae9(0x147)]());}set[_0xade8c(0x326)](_0x4246fb){const _0xd97e5c=_0xade8c;_0x4246fb?(this[_0xd97e5c(0x293)]&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0xd97e5c(0x321)][_0xd97e5c(0xfa)]()):(this[_0xd97e5c(0x293)]&&this[_0xd97e5c(0x293)]['show'](),this[_0xd97e5c(0x321)]&&this['_textBubble'][_0xd97e5c(0x1f7)]());}[_0xade8c(0x199)](){const _0x4191c8=_0xade8c;for(const _0x5ccfe0 of this[_0x4191c8(0x86)])_0x5ccfe0['dispose']();this['_textBubble']&&this[_0x4191c8(0x321)][_0x4191c8(0x199)](),this['_anchorDot']&&this[_0x4191c8(0x293)][_0x4191c8(0x199)](),this['_anchor']&&this['_anchor']['dispose'](),this[_0x4191c8(0x222)]&&this[_0x4191c8(0x222)]();}[_0xade8c(0x147)](){const _0x291351=_0xade8c,{_docSkeleton:_0xef74ec,_document:_0x5c0be7}=this,{color:_0x33cd93,name:_0x13a06a,ranges:_0x3503ce}=this[_0x291351(0x34d)],_0x5b98a2=_0x5c0be7['getOffsetConfig'](),{docsLeft:_0x14a65c,docsTop:_0xa81c36}=_0x5b98a2,_0x369adc=new _0x362ef3(_0x5b98a2,_0xef74ec);for(const {startOffset:_0x1ba78e,endOffset:_0x11e124,collapsed:_0x296eba,isActive:_0x384045}of _0x3503ce){const _0x2a6aa8=_0xef74ec['findNodePositionByCharIndex'](_0x1ba78e),_0x549386=_0xef74ec[_0x291351(0x3bb)](_0x11e124);if(_0x384045){const {contentBoxPointGroup:_0x2d3310}=_0x369adc[_0x291351(0x1b3)](_0x549386,_0x549386);if(_0x2d3310[_0x291351(0x331)]===0x0)continue;this[_0x291351(0x35e)](_0x33cd93,_0x2d3310,_0x14a65c,_0xa81c36,_0x13a06a),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x296eba){const {contentBoxPointGroup:_0x1fcea9}=_0x369adc[_0x291351(0x1b3)](_0x2a6aa8,_0x549386);if(_0x1fcea9[_0x291351(0x331)]===0x0)continue;this['_drawRange'](_0x33cd93,_0x1fcea9,_0x14a65c,_0xa81c36);}}}['_drawAnchor'](_0xe9e49d,_0x5604e2,_0x5938cd,_0x46c4ec,_0x1d1a83){const _0x567acb=_0xade8c,_0x36075a=this[_0x567acb(0x185)](_0x5604e2),{left:_0x26e69d,top:_0x471462,height:_0xb13ba2}=_0x36075a,_0x1b48ad=this['_getScale'](),_0xf9241d=to/_0x1b48ad,_0x2ec568=new _0x2d5bd9(lt+_0x398800[_0x567acb(0x32a)](He),{'left':_0x26e69d+_0x5938cd-_0xf9241d,'top':_0x471462+_0x46c4ec,'height':_0xb13ba2,'width':eo,'fill':_0xe9e49d||_0x42b6d4(_0x143f52[_0x567acb(0x92)],0x0),'strokeWidth':_0xf9241d,'stroke':so,'evented':!0x0});this[_0x567acb(0xe9)]=_0x2ec568,this['_scene'][_0x567acb(0x362)](_0x2ec568,_0x54aa29);const _0x74e887=new _0x2d5bd9(lt+_0x398800[_0x567acb(0x32a)](He),{'left':_0x26e69d+_0x5938cd-_0xf9241d,'top':_0x471462+_0x46c4ec-_t/0x2,'height':_t,'width':_t,'fill':_0xe9e49d||_0x42b6d4(_0x143f52[_0x567acb(0x92)],0x0),'strokeWidth':0x0,'stroke':_0xe9e49d||_0x42b6d4(_0x143f52[_0x567acb(0x92)],0x0),'evented':!0x1});this[_0x567acb(0x293)]=_0x74e887,this[_0x567acb(0x9c)][_0x567acb(0x362)](_0x74e887,_0x54aa29);const _0x2d9bc3=new st(lt+_0x398800[_0x567acb(0x32a)](He),{'left':_0x26e69d+_0x5938cd-_0xf9241d,'top':_0x471462+_0x46c4ec-Me,'text':_0x1d1a83,'color':_0xe9e49d});this['_textBubble']=_0x2d9bc3,this[_0x567acb(0x9c)][_0x567acb(0x362)](_0x2d9bc3,_0x54aa29),this[_0x567acb(0x326)]=!0x1;}[_0xade8c(0x338)](){const _0xba3119=_0xade8c,_0x278e9a=this[_0xba3119(0xe9)]['onPointerEnter$'][_0xba3119(0x17c)](()=>{const _0x4e5296=_0xba3119;this[_0x4e5296(0x326)]=!0x0;}),_0x23c83f=this[_0xba3119(0xe9)][_0xba3119(0xba)][_0xba3119(0x17c)](()=>{this['_hideTimer']&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x40b21b=_0x4292;this[_0x40b21b(0x326)]=!0x1;},0x7d0);});return()=>{const _0x2b2762=_0xba3119;_0x278e9a[_0x2b2762(0x28e)](),_0x23c83f[_0x2b2762(0x28e)]();};}[_0xade8c(0x2b1)](_0x4d2a6a,_0x53f27f,_0x578465,_0x13e79d){const _0x27339c=_0xade8c,_0x1dd199=new _0x410434(_0x4d2a6a)[_0x27339c(0x1cf)](0.2)['toRgbString'](),_0x369c1a=new _0x40800c(Qr+_0x398800[_0x27339c(0x32a)](He),{'pointsGroup':_0x53f27f,'fill':_0x1dd199||_0x42b6d4(_0x143f52['black'],0.2),'left':_0x578465,'top':_0x13e79d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27339c(0x86)][_0x27339c(0x142)](_0x369c1a),this[_0x27339c(0x9c)]['addObject'](_0x369c1a,_0x54aa29);}['_getAnchorBounding'](_0x2809a0){const _0x1a5f44=_0x2809a0[0x0],_0xd79ce7=_0x1a5f44[0x0],_0x1c11af=_0x1a5f44[0x2],{x:_0x2d522d,y:_0x234828}=_0xd79ce7,{x:_0x1a1a68,y:_0x1ced0a}=_0x1c11af;return{'left':_0x2d522d,'top':_0x234828,'width':_0x1a1a68-_0x2d522d,'height':_0x1ced0a-_0x234828};}['_getScale'](){const _0x3c56bb=_0xade8c,{scaleX:_0x26113d,scaleY:_0x9227ef}=this[_0x3c56bb(0x9c)][_0x3c56bb(0x186)]();return Math['max'](_0x26113d,_0x9227ef);}}var no=Object[_0xade8c(0x36b)],ro=Object[_0xade8c(0x22b)],oo=(_0x52d552,_0x562f50,_0x336ad5,_0x1dce85)=>{const _0x5d8b95=_0xade8c;for(var _0x218858=_0x1dce85>0x1?void 0x0:_0x1dce85?ro(_0x562f50,_0x336ad5):_0x562f50,_0x586194=_0x52d552[_0x5d8b95(0x331)]-0x1,_0x2ef767;_0x586194>=0x0;_0x586194--)(_0x2ef767=_0x52d552[_0x586194])&&(_0x218858=(_0x1dce85?_0x2ef767(_0x562f50,_0x336ad5,_0x218858):_0x2ef767(_0x218858))||_0x218858);return _0x1dce85&&_0x218858&&no(_0x562f50,_0x336ad5,_0x218858),_0x218858;},Re=(_0xb94e5e,_0x3ae1d5)=>(_0x4b2ef0,_0x27720e)=>_0x3ae1d5(_0x4b2ef0,_0x27720e,_0xb94e5e);let Ge=class extends _0x3fb7e3{constructor(_0x73b6f4,_0x22f8d3,_0x32dd91,_0x1865f4,_0x530448){const _0x3e6f78=_0xade8c;super(),l(this,_0x3e6f78(0x249),[]),(this['_collabCursorController']=_0x73b6f4,this['_univerInstanceService']=_0x22f8d3,this[_0x3e6f78(0x2ec)]=_0x32dd91,this[_0x3e6f78(0x104)]=_0x1865f4,this['_themeService']=_0x530448,this['_init']());}[_0xade8c(0x312)](){const _0x4c42d4=_0xade8c;this['_docSkeletonManagerService'][_0x4c42d4(0x2ed)][_0x4c42d4(0x2fe)](_0x68ef5b(this['dispose$']),_0x1b27ff(_0x51c784=>{const _0x3b14f0=_0x4c42d4;if(_0x51c784){const _0x5cb47d=_0x51c784[_0x3b14f0(0x373)]()[_0x3b14f0(0x34c)]()[_0x3b14f0(0x350)]();return _0x5930bd(this[_0x3b14f0(0x2e8)][_0x3b14f0(0x1f8)](_0x5cb47d),this[_0x3b14f0(0x26c)]['currentTheme$'])[_0x3b14f0(0x2fe)](_0x176ea9(([_0x47ab64,_0x1fc3c4])=>({'skeleton':_0x51c784,'cursors':[..._0x47ab64[_0x3b14f0(0x1ee)]()][_0x3b14f0(0x281)](_0x26cd15=>({..._0x26cd15,'color':_0x1fc3c4[_0x26cd15[_0x3b14f0(0xe6)]]}))})));}return _0x3ff30b({'skeleton':null,'cursors':[]});}))[_0x4c42d4(0xbf)](({skeleton:_0xeb4b83,cursors:_0x410816})=>{const _0x4636c7=_0x4c42d4;this[_0x4636c7(0x2db)](),_0xeb4b83&&this[_0x4636c7(0x33a)](_0xeb4b83,_0x410816);});}['_updateCollabCursors'](_0x377a12,_0xe11633){const _0x23ba18=_0xade8c,_0x1fa367=this['_getDocObject']();if(_0x1fa367==null)return;const {scene:_0xa29673,document:_0x4d6254}=_0x1fa367,_0x3f91f9=_0xe11633[_0x23ba18(0x39e)](_0x52572a=>new io(_0x52572a,_0xa29673,_0x377a12,_0x4d6254));this[_0x23ba18(0x249)]=_0x3f91f9;}[_0xade8c(0x2db)](){const _0x9021d6=_0xade8c;this[_0x9021d6(0x249)][_0x9021d6(0x2f2)](_0x43c5b5=>_0x43c5b5[_0x9021d6(0x199)]()),this['_cursors']=[];}[_0xade8c(0x226)](){const _0x3f4054=_0xade8c;return _0x570b80(this['_univerInstanceService'],this[_0x3f4054(0x2ec)]);}};Ge=oo([_0x22ab7a(_0x35f1ee[_0xade8c(0x1a6)],Ge),Re(0x0,_0xd901da(fe)),Re(0x1,_0x3b87df),Re(0x2,_0x1e26e7),Re(0x3,_0xd901da(_0x55bc8c)),Re(0x4,_0xd901da(_0x42d43e))],Ge);var ao=Object[_0xade8c(0x36b)],co=Object['getOwnPropertyDescriptor'],ho=(_0xc6422,_0x208374,_0x2dcdee,_0x637700)=>{const _0x2f9679=_0xade8c;for(var _0x92b3db=_0x637700>0x1?void 0x0:_0x637700?co(_0x208374,_0x2dcdee):_0x208374,_0x3f3da9=_0xc6422[_0x2f9679(0x331)]-0x1,_0x1f40fa;_0x3f3da9>=0x0;_0x3f3da9--)(_0x1f40fa=_0xc6422[_0x3f3da9])&&(_0x92b3db=(_0x637700?_0x1f40fa(_0x208374,_0x2dcdee,_0x92b3db):_0x1f40fa(_0x92b3db))||_0x92b3db);return _0x637700&&_0x92b3db&&ao(_0x208374,_0x2dcdee,_0x92b3db),_0x92b3db;},ut=(_0x45de26,_0x115097)=>(_0x3f4631,_0x39edc8)=>_0x115097(_0x3f4631,_0x39edc8,_0x45de26);let Ze=class{constructor(_0x2fb449,_0x2e7839,_0x8213d){const _0x10e414=_0xade8c;this[_0x10e414(0x253)]=_0x2fb449,this[_0x10e414(0x181)]=_0x2e7839,this[_0x10e414(0x316)]=_0x8213d,this[_0x10e414(0x254)]();}[_0xade8c(0x254)](){const _0x3c2490=_0xade8c;this[_0x3c2490(0x181)][_0x3c2490(0x255)]({'priority':0x1,'interceptor':(_0x1c34b9,_0x2f79d3)=>_0x2f79d3(_0x1c34b9)[_0x3c2490(0x2fe)](_0x5af94b(async _0x5de6ab=>{const _0x5f1db5=_0x3c2490,_0x5a5967=_0x5de6ab;if(_0x5a5967[_0x5f1db5(0x3b8)]===0x191&&window[_0x5f1db5(0x2f8)](this[_0x5f1db5(0x316)]['t'](_0x5f1db5(0x25c)))){const _0x266bcd=window[_0x5f1db5(0x34e)](window['location'][_0x5f1db5(0x146)]);window[_0x5f1db5(0x1de)][_0x5f1db5(0x146)]=this[_0x5f1db5(0x2f3)]()+_0x5f1db5(0x175)+_0x266bcd;}return _0x5a5967;}))});}['_getLoginPath'](){const _0x1d77aa=_0xade8c;var _0x4f2b6f;return(_0x4f2b6f=this[_0x1d77aa(0x253)][_0x1d77aa(0x1df)](mn))!=null?_0x4f2b6f:gn;}};Ze=ho([ut(0x0,_0x531a6b),ut(0x1,_0xd901da(_0x32bb9e)),ut(0x2,_0xd901da(_0x3fbf2b))],Ze);var lo=Object[_0xade8c(0x36b)],_o=Object[_0xade8c(0x22b)],uo=(_0x54d12a,_0x55f53f,_0x1aaeb9,_0x493d81)=>{const _0x19e287=_0xade8c;for(var _0x5a8ed4=_0x493d81>0x1?void 0x0:_0x493d81?_o(_0x55f53f,_0x1aaeb9):_0x55f53f,_0x30359d=_0x54d12a[_0x19e287(0x331)]-0x1,_0x32a83d;_0x30359d>=0x0;_0x30359d--)(_0x32a83d=_0x54d12a[_0x30359d])&&(_0x5a8ed4=(_0x493d81?_0x32a83d(_0x55f53f,_0x1aaeb9,_0x5a8ed4):_0x32a83d(_0x5a8ed4))||_0x5a8ed4);return _0x493d81&&_0x5a8ed4&&lo(_0x55f53f,_0x1aaeb9,_0x5a8ed4),_0x5a8ed4;},ns=(_0x319f38,_0x390eb5)=>(_0x455a0e,_0x205f1f)=>_0x390eb5(_0x455a0e,_0x205f1f,_0x319f38);const fo=_0xade8c(0x230),mo='/universer-api/authz';let Tt=class extends _0x5297f3{constructor(_0x2e0a07,_0x1fc6db){const _0x572985=_0xade8c;super(),this['_HTTPService']=_0x2e0a07,this[_0x572985(0x253)]=_0x1fc6db,this[_0x572985(0x9d)]();}['_initMergeInterceptor'](){const _0x45eeb7=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3f4d36({'isMatch'(_0x5a5e23){const _0x5501c4=_0x4292;var _0x7e69e6;if(_0x5a5e23[_0x5501c4(0x20f)]===_0x5501c4(0x1f9)&&((_0x7e69e6=_0x5a5e23[_0x5501c4(0x2ca)])!=null&&_0x7e69e6[_0x5501c4(0x2c2)])){const {objectID:_0x3332b0,objectType:_0x41a35e}=_0x5a5e23[_0x5501c4(0x2ca)]['body']||{};if(!_0x3332b0||_0x41a35e===void 0x0)return!0x1;const _0x1700ce=_0x45eeb7['_getAPIPrefixPath']()+'/'+_0x41a35e+_0x5501c4(0x21e)+_0x3332b0+_0x5501c4(0x251);if(_0x5a5e23[_0x5501c4(0x353)]===_0x1700ce)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x499ce8){const _0x3a062a=_0x4292;var _0x1a7500;return(_0x1a7500=_0x499ce8['requestParams'])==null?void 0x0:_0x1a7500[_0x3a062a(0x2c2)];},'mergeParamsToRequest'(_0x3e5cc1,_0x3384dd){const _0x476da0=_0x4292,_0x3b708e=_0x45eeb7[_0x476da0(0x39c)]()+_0x476da0(0x80),_0x31917e=_0x3e5cc1[_0x476da0(0x214)]((_0x3b3e16,_0x1f5c2e)=>{const _0x3afdc7=_0x476da0,{unitID:_0x543313,objectID:_0xa1969d,objectType:_0x124a91,actions:_0x5a34e6}=_0x1f5c2e;return _0x3b3e16[_0x543313]||(_0x3b3e16[_0x543313]={}),_0x3b3e16[_0x543313][_0xa1969d]||(_0x3b3e16[_0x543313][_0xa1969d]={'objectID':_0xa1969d,'objectType':_0x124a91,'actions':[]}),_0x3b3e16[_0x543313][_0xa1969d][_0x3afdc7(0x2ba)][_0x3afdc7(0x142)](..._0x5a34e6),_0x3b3e16;},{}),_0x3ed059=[];for(const _0x1ac374 in _0x31917e)for(const _0x529569 in _0x31917e[_0x1ac374]){const {actions:_0x12b8bc,objectType:_0x3169ab}=_0x31917e[_0x1ac374][_0x529569],_0x2b19e0=[...new Set(_0x12b8bc)];_0x3ed059['push']({'unitID':_0x1ac374,'objectID':_0x529569,'objectType':_0x3169ab,'actions':_0x2b19e0});}return new _0x2026b9(_0x476da0(0x1f9),_0x3b708e,{'headers':_0x3384dd[_0x476da0(0x323)],'withCredentials':_0x3384dd['withCredentials'],'responseType':_0x3384dd[_0x476da0(0x2bd)],'body':{'requests':_0x3ed059}});}},{'distributeResult'(_0x4c0f7e,_0x3ef775){const {objectActions:_0x20e946}=_0x4c0f7e;return _0x3ef775['map'](_0x5ef4ba=>{const _0x4e449c=_0x4292,{unitID:_0xfa037f,objectID:_0x277789,actions:_0x4782ef}=_0x5ef4ba,_0x2c2311=_0x20e946[_0x4e449c(0x18f)](_0x1ea004=>_0x1ea004[_0x4e449c(0x14d)]===_0xfa037f&&_0x1ea004[_0x4e449c(0x13c)]===_0x277789),_0x170e6f=_0x4782ef[_0x4e449c(0x39e)](_0x4e45cc=>_0x2c2311==null?void 0x0:_0x2c2311['actions'][_0x4e449c(0x18f)](_0x25330d=>_0x25330d[_0x4e449c(0x168)]===_0x4e45cc))[_0x4e449c(0x2a9)](_0x33767a=>!!_0x33767a);return{'config':_0x5ef4ba,'result':{'actions':_0x170e6f,'error':_0x4c0f7e['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x57e776=_0xade8c;var _0x170628;return(_0x170628=this['_configService'][_0x57e776(0x1df)](fo))!=null?_0x170628:mo;}async['create'](_0x4cacb9){const _0x399375=_0xade8c,_0x3506bb=this[_0x399375(0x39c)]()+'/'+_0x4cacb9['objectType']+'/object';return(await this[_0x399375(0x16d)][_0x399375(0x35d)](_0x3506bb,{'body':_0x4cacb9}))[_0x399375(0x2c2)][_0x399375(0x13c)]||'';}async[_0xade8c(0x171)](_0x3c15f8){const _0x291728=_0xade8c,_0x5c69fe=this[_0x291728(0x39c)]()+_0x291728(0x18d);return(await this['_HTTPService']['post'](_0x5c69fe,{'body':_0x3c15f8}))['body'][_0x291728(0x94)];}async[_0xade8c(0x1a2)](_0x57378a){const _0x1f43c8=_0xade8c,_0x1e8b6a=this[_0x1f43c8(0x39c)]()+'/'+_0x57378a[_0x1f43c8(0x38d)]+_0x1f43c8(0x21e)+_0x57378a[_0x1f43c8(0x13c)];await this[_0x1f43c8(0x16d)][_0x1f43c8(0x1f2)](_0x1e8b6a,{'body':_0x57378a});}async[_0xade8c(0x1af)](_0x33815a){const _0x3f4c2e=_0xade8c,_0x569631=this[_0x3f4c2e(0x39c)]()+'/'+_0x33815a[_0x3f4c2e(0x38d)]+_0x3f4c2e(0x21e)+_0x33815a[_0x3f4c2e(0x13c)]+_0x3f4c2e(0x251);return(await this[_0x3f4c2e(0x16d)]['post'](_0x569631,{'body':_0x33815a}))[_0x3f4c2e(0x2c2)][_0x3f4c2e(0x2ba)];}async[_0xade8c(0x7b)](_0x21033c){const _0x5a53bc=_0xade8c,_0xf7078=this[_0x5a53bc(0x39c)]()+'/-/object/-/batch_allowed';return(await this[_0x5a53bc(0x16d)]['post'](_0xf7078,{'body':{'requests':_0x21033c}}))[_0x5a53bc(0x2c2)]['objectActions'];}async[_0xade8c(0x114)](_0x17c06d){const _0x11eec3=_0xade8c,_0x46dd91=this[_0x11eec3(0x39c)]()+'/'+_0x17c06d[_0x11eec3(0x38d)]+'/role',_0x395c8e=await this[_0x11eec3(0x16d)][_0x11eec3(0x35d)](_0x46dd91,{'body':_0x17c06d});return{'roles':_0x395c8e[_0x11eec3(0x2c2)]['roles'],'actions':_0x395c8e[_0x11eec3(0x2c2)][_0x11eec3(0x2ba)]};}async[_0xade8c(0x2df)](_0x40c501){const _0x44f41d=_0xade8c,_0x91a93d=this['_getAPIPrefixPath']()+_0x44f41d(0xea);await this[_0x44f41d(0x16d)]['delete'](_0x91a93d,{'params':{'collaboratorID':_0x40c501['collaboratorID'],'objectID':_0x40c501['objectID'],'unitID':_0x40c501['unitID']}});}async['updateCollaborator'](_0x428314){const _0x1dc261=_0xade8c,_0x13d310=this[_0x1dc261(0x39c)]()+_0x1dc261(0xea);await this[_0x1dc261(0x16d)][_0x1dc261(0xdb)](_0x13d310,{'body':_0x428314});}async[_0xade8c(0x1d8)](_0x1ffc8f){const _0x50cdfc=_0xade8c,_0x100139=this[_0x50cdfc(0x39c)]()+_0x50cdfc(0xea);await this[_0x50cdfc(0x16d)]['post'](_0x100139,{'body':_0x1ffc8f});}async[_0xade8c(0x328)](_0x39ad8b){const _0x161303=_0xade8c,_0xd5bf1f=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x161303(0x16d)]['get'](_0xd5bf1f,{'params':{'objectID':_0x39ad8b[_0x161303(0x13c)],'unitID':_0x39ad8b[_0x161303(0x14d)]}}))[_0x161303(0x2c2)][_0x161303(0x1b9)];}async[_0xade8c(0x2a1)](_0x4dda06){const _0x4da8de=_0xade8c,_0x59acfb=this[_0x4da8de(0x39c)]()+_0x4da8de(0xea);await this[_0x4da8de(0x16d)]['put'](_0x59acfb,{'body':_0x4dda06});}};Tt=uo([ns(0x0,_0xd901da(_0x32bb9e)),ns(0x1,_0xd901da(_0x531a6b))],Tt);var go=Object[_0xade8c(0x36b)],So=Object[_0xade8c(0x22b)],vo=(_0x72fd,_0x2c99eb,_0x3e5d01,_0xfc6e11)=>{const _0x110ca5=_0xade8c;for(var _0x55222f=_0xfc6e11>0x1?void 0x0:_0xfc6e11?So(_0x2c99eb,_0x3e5d01):_0x2c99eb,_0x45e01a=_0x72fd[_0x110ca5(0x331)]-0x1,_0x36059f;_0x45e01a>=0x0;_0x45e01a--)(_0x36059f=_0x72fd[_0x45e01a])&&(_0x55222f=(_0xfc6e11?_0x36059f(_0x2c99eb,_0x3e5d01,_0x55222f):_0x36059f(_0x55222f))||_0x55222f);return _0xfc6e11&&_0x55222f&&go(_0x2c99eb,_0x3e5d01,_0x55222f),_0x55222f;},rs=(_0x49fe72,_0x2011f3)=>(_0x24b988,_0x3fde2c)=>_0x2011f3(_0x24b988,_0x3fde2c,_0x49fe72);const po=['image/png',_0xade8c(0x19f),_0xade8c(0x2cd),_0xade8c(0x15d),_0xade8c(0x28f)],Io=0x5*0x400*0x400,Eo=_0xade8c(0x1ff),Co=_0xade8c(0x108),bo=_0xade8c(0x192),To='/universer-api/file/{fileID}/sign-url';let Rt=class{constructor(_0x1209f2,_0x513f20){const _0x367d58=_0xade8c;l(this,'_waitCount',0x0),l(this,_0x367d58(0x210),new _0x3718e0()),l(this,_0x367d58(0x256),this[_0x367d58(0x210)]),l(this,_0x367d58(0x167),new Map()),(this['_httpService']=_0x1209f2,this['_configService']=_0x513f20);}['setWaitCount'](_0x4fa8fd){const _0x22e81b=_0xade8c;this[_0x22e81b(0x341)]=_0x4fa8fd,this['_change$'][_0x22e81b(0xab)](_0x4fa8fd);}['getImageSourceCache'](_0x2f9fae,_0xe551e4){const _0x39cfef=_0xade8c;if(_0xe551e4===_0x146d1d[_0x39cfef(0x2ef)]){const _0xb8c68d=new Image();return _0xb8c68d[_0x39cfef(0x1b0)]=_0x2f9fae,_0xb8c68d;}return this['_imageSourceCache'][_0x39cfef(0x275)](_0x2f9fae);}[_0xade8c(0x1e3)](_0x41c0fc,_0x57c441,_0x5cda94){const _0x5b142d=_0xade8c;_0x57c441===_0x146d1d['BASE64']||_0x5cda94==null||this[_0x5b142d(0x167)]['set'](_0x41c0fc,_0x5cda94);}async[_0xade8c(0x134)](_0x2e2432){const _0x32b499=_0xade8c;try{const _0x1f45e4=this[_0x32b499(0x1ad)](this['_getSignURL'](),''+_0x2e2432),_0x1601db=(await this[_0x32b499(0x181)][_0x32b499(0x275)](_0x1f45e4))['body'];return _0x1601db[_0x32b499(0x2cf)]&&_0x1601db[_0x32b499(0x2cf)][_0x32b499(0x2d3)]===Rs['OK']?Promise[_0x32b499(0x31e)](_0x1601db['url']):Promise[_0x32b499(0x203)](_0x1601db[_0x32b499(0x2cf)]);}catch(_0x5f31d2){return Promise[_0x32b499(0x203)](_0x5f31d2);}}async[_0xade8c(0x334)](_0x29e528){const _0x284706=_0xade8c;let _0x4ce1d9='';if(!po[_0x284706(0x1f5)](_0x29e528[_0x284706(0x207)]))return this[_0x284706(0x3af)](),Promise['reject'](new Error(_0x200c2c[_0x284706(0xe5)]));if(_0x29e528[_0x284706(0x337)]>Io)return this[_0x284706(0x3af)](),Promise[_0x284706(0x203)](new Error(_0x200c2c['ERROR_EXCEED_SIZE']));try{const _0x2ba97d=new FormData();_0x2ba97d[_0x284706(0x266)]('file',_0x29e528);const _0x59ca11=this[_0x284706(0xae)]()+_0x284706(0x102)+_0x29e528[_0x284706(0x337)]['toString'](),_0x4d9620=await(await fetch(_0x59ca11,{'method':_0x284706(0x1f9),'body':_0x2ba97d}))[_0x284706(0xc1)]();if(typeof _0x4d9620[_0x284706(0x397)]!=_0x284706(0x36f))return this[_0x284706(0x3af)](),Promise[_0x284706(0x203)](new Error(_0x200c2c[_0x284706(0x189)]));_0x4ce1d9=_0x4d9620[_0x284706(0x397)];}catch{return this['_decreaseWaiting'](),Promise[_0x284706(0x203)](new Error(_0x200c2c[_0x284706(0x189)]));}return new Promise((_0x31f856,_0x35ffac)=>{const _0x19e290=_0x284706,_0x2658ec=new FileReader();_0x2658ec['readAsDataURL'](_0x29e528),_0x2658ec[_0x19e290(0x246)]=_0x44e71e=>{const _0x56602d=_0x19e290;var _0x55444b;const _0x331ed8=(_0x55444b=_0x44e71e[_0x56602d(0x378)])==null?void 0x0:_0x55444b[_0x56602d(0x24c)];if(_0x331ed8==null){this[_0x56602d(0x3af)](),_0x35ffac(new Error(_0x200c2c[_0x56602d(0x189)]));return;}const _0x429da2=_0x398800[_0x56602d(0x32a)](0x6);_0x31f856({'imageId':_0x429da2,'imageSourceType':_0x146d1d[_0x56602d(0x125)],'source':_0x4ce1d9,'base64Cache':_0x331ed8,'status':_0x200c2c['SUCCUSS']}),this[_0x56602d(0x3af)]();};});}[_0xade8c(0xae)](){const _0x5c9bf9=_0xade8c;var _0x454375;return(_0x454375=this[_0x5c9bf9(0x253)][_0x5c9bf9(0x1df)](Eo))!=null?_0x454375:Co;}['_getSignURL'](){const _0x2e1208=_0xade8c;var _0x4f2962;return(_0x4f2962=this[_0x2e1208(0x253)][_0x2e1208(0x1df)](bo))!=null?_0x4f2962:To;}[_0xade8c(0x1ad)](_0x4a58b3,_0x213106){const _0x29f1f0=_0xade8c;return _0x4a58b3['replace'](_0x29f1f0(0x2d0),_0x213106);}[_0xade8c(0x3af)](){const _0x215341=_0xade8c;this[_0x215341(0x341)]-=0x1,this[_0x215341(0x210)][_0x215341(0xab)](this[_0x215341(0x341)]);}};Rt=vo([rs(0x0,_0xd901da(_0x32bb9e)),rs(0x1,_0x531a6b)],Rt);var Ro=Object[_0xade8c(0x36b)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x584669,_0x737f5e,_0x30d7e1,_0x50eab2)=>{const _0x3e51e6=_0xade8c;for(var _0x9841ea=_0x50eab2>0x1?void 0x0:_0x50eab2?Oo(_0x737f5e,_0x30d7e1):_0x737f5e,_0x44bfd2=_0x584669[_0x3e51e6(0x331)]-0x1,_0x39bdd1;_0x44bfd2>=0x0;_0x44bfd2--)(_0x39bdd1=_0x584669[_0x44bfd2])&&(_0x9841ea=(_0x50eab2?_0x39bdd1(_0x737f5e,_0x30d7e1,_0x9841ea):_0x39bdd1(_0x9841ea))||_0x9841ea);return _0x50eab2&&_0x9841ea&&Ro(_0x737f5e,_0x30d7e1,_0x9841ea),_0x9841ea;},Oe=(_0x34030d,_0x890b39)=>(_0x395c79,_0x1d8110)=>_0x890b39(_0x395c79,_0x1d8110,_0x34030d);let Ye=class extends _0x3fb7e3{constructor(_0x95a8af,_0x31963c,_0x4558a8,_0x547b33,_0xf40bc2){const _0x1b903e=_0xade8c;super(),this[_0x1b903e(0xcc)]=_0x95a8af,this[_0x1b903e(0x1c2)]=_0x31963c,this[_0x1b903e(0x10f)]=_0x4558a8,this[_0x1b903e(0x363)]=_0x547b33,this['_localeService']=_0xf40bc2,this[_0x1b903e(0x2a6)](),this[_0x1b903e(0x333)]();}[_0xade8c(0x333)](){const _0x3f13c6=_0xade8c,_0x3d6ddf=async _0x516525=>{const _0x5e29b1=_0x4292;(await this[_0x5e29b1(0x363)][_0x5e29b1(0x12b)](_0x516525))[_0x5e29b1(0x2ea)][_0x5e29b1(0x2fe)](_0x4c2296(_0x41a6db=>_0x41a6db['eventID']===_0x1b9133[_0x5e29b1(0x345)]),_0x68ef5b(this[_0x5e29b1(0x13d)]))[_0x5e29b1(0xbf)](_0x1905bd=>{const _0x309261=_0x5e29b1,_0x32a70e=_0x1905bd,{reason:_0x64e8e8}=_0x32a70e['data'];this['_injector'][_0x309261(0x275)](_0x48de42)[_0x309261(0xfa)]({'type':_0x4d4329[_0x309261(0xbe)],'content':this[_0x309261(0x148)]['t'](_0x309261(0x12d))+'('+_0x64e8e8+')'}),this[_0x309261(0x10f)][_0x309261(0xd7)](new _0xaddd59(_0x516525)['id'],!0x1),this[_0x309261(0x363)][_0x309261(0x38a)](_0x516525);});};_0x52fd0c(this[_0x3f13c6(0x1c2)][_0x3f13c6(0x252)](_0x9cd059[_0x3f13c6(0x3a3)]),this[_0x3f13c6(0x1c2)][_0x3f13c6(0x252)](_0x9cd059['UNIVER_DOC']))[_0x3f13c6(0x2fe)](_0x176ea9(_0x5cf426=>_0x5cf426[_0x3f13c6(0x350)]()),_0x4c2296(_0x1726cf=>!_0x142b75(_0x1726cf)),_0x68ef5b(this[_0x3f13c6(0x13d)]))[_0x3f13c6(0xbf)](_0x55fa33=>{_0x3d6ddf(_0x55fa33);});}[_0xade8c(0x2a6)](){const _0x21bf84=_0xade8c,_0x5bb891=async _0x2b71b6=>{const _0x16b545=_0x4292;(await this[_0x16b545(0x363)][_0x16b545(0x12b)](_0x2b71b6))[_0x16b545(0x2ea)]['pipe'](_0x4c2296(_0x4a2431=>_0x4a2431[_0x16b545(0x13b)]===_0x1b9133[_0x16b545(0x130)]),_0x68ef5b(this[_0x16b545(0x13d)]))[_0x16b545(0xbf)](_0x3888d5=>{const _0x5c22c8=_0x16b545,_0x404d2c=_0x3888d5,{objectId:_0x1f9ffc}=_0x404d2c[_0x5c22c8(0x19b)];_0x1f9ffc===_0x2b71b6&&this[_0x5c22c8(0xcc)]['get'](_0x331505)[_0x5c22c8(0x2ad)](_0x2b71b6);});};_0x52fd0c(this[_0x21bf84(0x1c2)]['getTypeOfUnitAdded$'](_0x9cd059[_0x21bf84(0x3a3)]),this[_0x21bf84(0x1c2)][_0x21bf84(0x252)](_0x9cd059[_0x21bf84(0x1c7)]))[_0x21bf84(0x2fe)](_0x176ea9(_0x54a8af=>_0x54a8af['getUnitId']()),_0x4c2296(_0x3377fe=>!_0x142b75(_0x3377fe)),_0x68ef5b(this[_0x21bf84(0x13d)]))[_0x21bf84(0xbf)](_0x2c84ac=>{_0x5bb891(_0x2c84ac);});}};Ye=Do([_0x22ab7a(_0x35f1ee['Starting'],Ye),Oe(0x0,_0xd901da(_0x3c61ae)),Oe(0x1,_0x3b87df),Oe(0x2,_0x1b6020),Oe(0x3,_0xd901da(ge)),Oe(0x4,_0xd901da(_0x3fbf2b))],Ye);var $s=Object['defineProperty'],Po=Object[_0xade8c(0x22b)],wo=(_0x3857c3,_0x105f8c,_0x736141)=>_0x105f8c in _0x3857c3?$s(_0x3857c3,_0x105f8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x736141}):_0x3857c3[_0x105f8c]=_0x736141,No=(_0xb3d6f5,_0x1a140a,_0x5b21f2,_0x39674a)=>{const _0xe7dc2f=_0xade8c;for(var _0x21948e=_0x39674a>0x1?void 0x0:_0x39674a?Po(_0x1a140a,_0x5b21f2):_0x1a140a,_0x1dea34=_0xb3d6f5[_0xe7dc2f(0x331)]-0x1,_0x228e30;_0x1dea34>=0x0;_0x1dea34--)(_0x228e30=_0xb3d6f5[_0x1dea34])&&(_0x21948e=(_0x39674a?_0x228e30(_0x1a140a,_0x5b21f2,_0x21948e):_0x228e30(_0x21948e))||_0x21948e);return _0x39674a&&_0x21948e&&$s(_0x1a140a,_0x5b21f2,_0x21948e),_0x21948e;},os=(_0x3fecf2,_0x4aff5d)=>(_0x4951f2,_0x2a5cdc)=>_0x4aff5d(_0x4951f2,_0x2a5cdc,_0x3fecf2),Mo=(_0x5dcce4,_0x467940,_0x21ab84)=>wo(_0x5dcce4,_0x467940+'',_0x21ab84);const Ao=_0xade8c(0x399);let Ot=class extends _0xde0405{constructor(_0x575b4b,_0x23a671,_0x25f806){const _0x2b0687=_0xade8c;super(),this[_0x2b0687(0x296)]=_0x575b4b,this[_0x2b0687(0x37f)]=_0x23a671,this[_0x2b0687(0xcc)]=_0x25f806;}[_0xade8c(0x213)](_0x44f8cb){const _0x2f8458=_0xade8c;var _0x278b92,_0x38eed2,_0x581808,_0x1a7e30,_0x4eb7ed;_0x44f8cb[_0x2f8458(0x1e7)](_0x1bc0b8)&&this[_0x2f8458(0x37f)][_0x2f8458(0x2cf)](_0x2f8458(0x1a0),_0x2f8458(0x20b));let _0x5818ef=[[_0x1bc0b8,{'useClass':bt}],[ge],[Lt],[_0x32bb9e],[Ls,{'useClass':Zr}],[ne],[D],[_0x56a40f],[qe],[Je],[Xe],[Ut],[Ze],[Ds],[Ye],[Os,{'useClass':(_0x38eed2=(_0x278b92=this[_0x2f8458(0x296)])==null?void 0x0:_0x278b92[_0x2f8458(0x2a7)])!=null?_0x38eed2:gt}],[_0x2364b6,{'useClass':_0x11d4c7}],[_0x5610c3,{'useClass':Ct}],[_0x4e5c79,{'useClass':Tt}],[_0x355890,{'useClass':Rt}],[De],[ke],[Be],[We],[fe]];(_0x581808=this[_0x2f8458(0x296)])!=null&&_0x581808[_0x2f8458(0x38e)]&&_0x5818ef[_0x2f8458(0x142)]([et,{'useClass':An}]),((_0x1a7e30=this[_0x2f8458(0x296)])==null?void 0x0:_0x1a7e30['collaborationUniverTypes'])==null||this[_0x2f8458(0x296)][_0x2f8458(0x292)][_0x2f8458(0x1f5)](_0x9cd059[_0x2f8458(0x3a3)])?_0x5818ef[_0x2f8458(0x142)]([Ve]):this['_config'][_0x2f8458(0x292)][_0x2f8458(0x1f5)](_0x9cd059[_0x2f8458(0x1c7)])&&_0x5818ef[_0x2f8458(0x142)]([Ge]),_0x5818ef=_0x2e36c0(_0x5818ef,(_0x4eb7ed=this[_0x2f8458(0x296)])==null?void 0x0:_0x4eb7ed[_0x2f8458(0x238)]),_0x5818ef['forEach'](_0x2b87fb=>_0x44f8cb['add'](_0x2b87fb)),_0x44f8cb[_0x2f8458(0x275)](_0x32bb9e)[_0x2f8458(0x255)]({'priority':0x14,'interceptor':_0x53aaa4({'maxParallel':0x6})}),this[_0x2f8458(0x2ee)]();}[_0xade8c(0x2ee)](){const _0x48188b=_0xade8c;var _0x233635,_0x532fd2;(_0x233635=this[_0x48188b(0x296)])!=null&&_0x233635[_0x48188b(0x7a)]||this[_0x48188b(0xcc)][_0x48188b(0x275)](D)['disableLocalCache'](),(_0x532fd2=this[_0x48188b(0x296)])!=null&&_0x532fd2['enableAuthServer']&&this[_0x48188b(0xcc)]['get'](Ze);}};Mo(Ot,_0xade8c(0x2eb),Ao),Ot=No([_0x4bdc3b(_0x4c40a3),os(0x1,_0x255408),os(0x2,_0xd901da(_0x3c61ae))],Ot);export{fo as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,sn as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,w as CollaborationStatus,yr as CollaborationStatusDisplay,Ds as CommentService,ke as DataLoaderController,Be as DesktopCollaborationStatusDisplayController,rn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,_n as LOCAL_CACHE_INTERVAL_KEY,mn as LOGIN_URL_KEY,D as LocalCacheService,en as SEND_CHANGESET_TIMEOUT_KEY,zi as SNAPSHOT_SERVER_URL_KEY,Qi as SNAPSHOT_URL_KEY,de as SessionStatus,Ot as UniverCollaborationClientPlugin,Zr as WebURLService,En as deserializeToCombResponse,Cn as serializeCombRequest};
1
+ const _0x1f5a54=_0x2f7f;(function(_0x21ef17,_0x119474){const _0x1dac4f=_0x2f7f,_0x57b404=_0x21ef17();while(!![]){try{const _0x51cb61=-parseInt(_0x1dac4f(0x1dd))/0x1*(parseInt(_0x1dac4f(0x297))/0x2)+-parseInt(_0x1dac4f(0x1f2))/0x3*(-parseInt(_0x1dac4f(0x2f1))/0x4)+-parseInt(_0x1dac4f(0x20f))/0x5*(parseInt(_0x1dac4f(0x3c9))/0x6)+parseInt(_0x1dac4f(0x3bc))/0x7*(-parseInt(_0x1dac4f(0x3b7))/0x8)+parseInt(_0x1dac4f(0x1ce))/0x9*(parseInt(_0x1dac4f(0x2f9))/0xa)+-parseInt(_0x1dac4f(0x377))/0xb+-parseInt(_0x1dac4f(0x2de))/0xc*(-parseInt(_0x1dac4f(0x229))/0xd);if(_0x51cb61===_0x119474)break;else _0x57b404['push'](_0x57b404['shift']());}catch(_0x3c8866){_0x57b404['push'](_0x57b404['shift']());}}}(_0x2454,0xd056a));var ks=Object[_0x1f5a54(0x29f)],Bs=(_0x1a10e6,_0x3485f1,_0x47f4b2)=>_0x3485f1 in _0x1a10e6?ks(_0x1a10e6,_0x3485f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47f4b2}):_0x1a10e6[_0x3485f1]=_0x47f4b2,l=(_0x96d766,_0x29f11d,_0x35ea80)=>Bs(_0x96d766,typeof _0x29f11d!=_0x1f5a54(0x200)?_0x29f11d+'':_0x29f11d,_0x35ea80);import{Disposable as _0x462626,toDisposable as _0x5d3cf2,UniverInstanceType as _0x5cab0b,UserManagerService as _0x49718f,IUniverInstanceService as _0x55bd21,DisposableCollection as _0x1382fe,IConfigService as _0x43c997,ILogService as _0x3e33de,ISnapshotServerService as _0x49d5c1,RxDisposable as _0x5915f1,LocaleService as _0x4eec6f,ILocalStorageService as _0x38f292,Tools as _0x4b796f,ICommandService as _0x257ce4,JSONX as _0x13a804,IPermissionService as _0x1721b0,IUndoRedoService as _0x4e4a39,sequenceExecute as _0x337b1e,OnLifecycle as _0x182a37,LifecycleStages as _0x46c7aa,CommandType as _0x4d2326,Rectangle as _0x708e4b,ThemeService as _0x5a1d7c,Workbook as _0x40f416,textEncoder as _0x4823f1,b64DecodeUnicode as _0x5dde85,LocalUndoRedoService as _0x10db64,IContextService as _0x1da175,COLORS as _0x411a85,ColorKit as _0x41c257,isInternalEditorID as _0xe275c4,Plugin as _0x2b09f1,IAuthzIoService as _0x29e930,mergeOverrideWithDependencies as _0x4e0679,DependentOn as _0x476f81}from'@univerjs/core';import{SheetsSelectionsService as _0x5914fd,SetSelectionsOperation as _0x109738,InsertSheetMutation as _0x54cc2b,WorkbookEditablePermission as _0x278a53,RefRangeService as _0x351ccc,EffectRefRangId as _0x349867,handleIRemoveRow as _0x2ff430,handleIRemoveCol as _0x2db791,handleMoveRange as _0x544ab2,handleInsertRow as _0x56aa1d,handleInsertRangeMoveRight as _0x515386,handleInsertRangeMoveDown as _0x13c601,handleInsertCol as _0x185ab7,handleDeleteRangeMoveUp as _0xad81ef,handleDeleteRangeMoveLeft as _0x3e36a2,runRefRangeMutations as _0x16303f,SetWorksheetActivateCommand as _0x436c7c}from'@univerjs/sheets';import{MessageType as _0x454b23}from'@univerjs/design';import{IBeforeCloseService as _0x28b08e,IMessageService as _0x58c973,INotificationService as _0x1d0f07,useObservable as _0x34ebf9,BuiltInUIPart as _0x184510,IUIPartsService as _0x16c51a}from'@univerjs/ui';import{CollaborationEvent as _0x505428,parseChangesetToProtocol as _0x29a67f,RevisionService as _0x2fc807,isTransformMutationFailure as _0x2bbef6,isTransformMutationsWithChangesetSuccess as _0x5abc17,ITransformService as _0x1215ee,mapDocumentTypeToUniverType as _0x2c9cce,isTransformChangesetsSuccess as _0x29a147,CompressMutationService as _0xb14cef,parseProtocolChangeset as _0x13fead,SnapshotService as _0x13134a,isTransformMutationsWithChangesetFailure as _0x2aee01,UniverCollaborationPlugin as _0x460423}from'@univerjs-pro/collaboration';import{Inject as _0x61a763,createIdentifier as _0x2b1b05,Injector as _0x2e9f94,Optional as _0x455db1}from'@wendellhu/redi';import{merge as _0x2e3217,Subject as _0x295019,BehaviorSubject as _0x24a55e,distinctUntilChanged as _0x4dffca,fromEvent as _0x45523d,of as _0x110ce6,takeUntil as _0x57fb4a,debounceTime as _0x49f759,filter as _0x21a70c,switchMap as _0x44b0e5,combineLatest as _0x5732cb,shareReplay as _0x956324,mapTo as _0x43ae84,concatMap as _0x12334d}from'rxjs';import{map as _0x28f321,takeUntil as _0x31e4a6,take as _0x4747bd,filter as _0x3d131e,delay as _0x29d1e4,shareReplay as _0x4a0e36,switchMap as _0x4c3023}from'rxjs/operators';import{IMEInputManagerService as _0x3f2d0c,TextSelectionManagerService as _0x233706,serializeTextRange as _0x4605fa,DocStateChangeManagerService as _0x3a189c,SetTextSelectionsOperation as _0x477910,RichTextEditingMutation as _0x52bb0d,getDocObject as _0x5ef147,DocSkeletonManagerService as _0x3824ed}from'@univerjs/docs';import{HTTPService as _0x11da14,WebSocketService as _0x2067e4,MergeInterceptorFactory as _0x10f37e,HTTPRequest as _0x5b1605,IHTTPImplementation as _0x449c33,XHRHTTPImplementation as _0x13770f,ThresholdInterceptorFactory as _0x50e197}from'@univerjs/network';import{ImageSourceType as _0x2a1a1d,ImageUploadStatusType as _0x190b89,IImageIoService as _0x32dd32}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x13b7f9,serializeRangeWithSheet as _0x24fc6d}from'@univerjs/engine-formula';import _0x21574d from'lodash/debounce';import{Shape as _0x520a18,Rect as _0x5d7c63,Vector2 as _0x1a7ec4,IRenderManagerService as _0x8604c3,NodePositionConvertToCursor as _0x229c8a,getColor as _0x3b289f,TEXT_RANGE_LAYER_INDEX as _0x293d74,RegularPolygon as _0x2b0581}from'@univerjs/engine-render';import{SheetSkeletonManagerService as _0x5f534a,VIEWPORT_KEY as _0x34fb7d,getCoordByCell as _0x1a9d48,getSheetObject as _0x54e459,SheetPermissionInitController as _0x302c8b}from'@univerjs/sheets-ui';import{useDependency as _0x32bad8,connectInjector as _0x2bdedc}from'@wendellhu/redi/react-bindings';function _0x2f7f(_0xb4ea9,_0x47e323){const _0x2454a0=_0x2454();return _0x2f7f=function(_0x2f7f0c,_0x5d6929){_0x2f7f0c=_0x2f7f0c-0x140;let _0x4b087d=_0x2454a0[_0x2f7f0c];return _0x4b087d;},_0x2f7f(_0xb4ea9,_0x47e323);}import _0x25f2cb,{forwardRef as _0x3c9976,useRef as _0x446d4f,createElement as _0x41bd2c}from'react';import _0x2d6edb from'clsx';import{IRemoteInstanceService as _0x49344d}from'@univerjs/rpc';const zi=_0x1f5a54(0x147),Zi=_0x1f5a54(0x179),Qi='SNAPSHOT_URL_KEY',en='SEND_CHANGESET_TIMEOUT',tn=0x7d0,sn=_0x1f5a54(0x1ac),nn=_0x1f5a54(0x3c3),rn=_0x1f5a54(0x163),on=0x7530,bs=_0x1f5a54(0x448),Ts=0x2710,an=_0x1f5a54(0x1c8),cn=0x4e20,hn=_0x1f5a54(0x25b),ln=0x3,_n=_0x1f5a54(0x14b),un=0x3e8,dn=_0x1f5a54(0x40d),fn=_0x1f5a54(0x14f),mn=_0x1f5a54(0x2f3),gn=_0x1f5a54(0x2e6);var Rs=(_0x1777da=>(_0x1777da[_0x1777da[_0x1f5a54(0x425)]=0x0]=_0x1f5a54(0x425),_0x1777da[_0x1777da['OK']=0x1]='OK',_0x1777da[_0x1777da[_0x1f5a54(0x37e)]=0x2]=_0x1f5a54(0x37e),_0x1777da[_0x1777da[_0x1f5a54(0x2b4)]=0x3]=_0x1f5a54(0x2b4),_0x1777da[_0x1777da[_0x1f5a54(0x239)]=0x4]=_0x1f5a54(0x239),_0x1777da[_0x1777da['UNAUTHENTICATED']=0x5]=_0x1f5a54(0x2ad),_0x1777da[_0x1777da[_0x1f5a54(0x298)]=0x6]=_0x1f5a54(0x298),_0x1777da[_0x1777da['INVALID_ARGUMENT']=0x7]=_0x1f5a54(0x271),_0x1777da[_0x1777da['TOO_MANY_REQUESTS']=0x8]=_0x1f5a54(0x1fe),_0x1777da[_0x1777da['COMPLETION_FINISHED']=0x9]=_0x1f5a54(0x34f),_0x1777da[_0x1777da[_0x1f5a54(0x278)]=0x1389]=_0x1f5a54(0x278),_0x1777da[_0x1777da[_0x1f5a54(0x3ee)]=0x1771]=_0x1f5a54(0x3ee),_0x1777da[_0x1777da[_0x1f5a54(0x285)]=0x1772]=_0x1f5a54(0x285),_0x1777da[_0x1777da[_0x1f5a54(0x3d6)]=0x1b59]=_0x1f5a54(0x3d6),_0x1777da[_0x1777da['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1f5a54(0x352),_0x1777da[_0x1777da[_0x1f5a54(0x214)]=0x1b5b]=_0x1f5a54(0x214),_0x1777da[_0x1777da[_0x1f5a54(0x382)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1777da[_0x1777da[_0x1f5a54(0x476)]=0x1f41]=_0x1f5a54(0x476),_0x1777da[_0x1777da[_0x1f5a54(0x302)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1777da[_0x1777da[_0x1f5a54(0x374)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1777da[_0x1777da['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x1f5a54(0x2ac),_0x1777da[_0x1777da[_0x1f5a54(0x1b2)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1777da[_0x1777da['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1f5a54(0x1bc),_0x1777da[_0x1777da[_0x1f5a54(0x166)]=0x2711]=_0x1f5a54(0x166),_0x1777da[_0x1777da[_0x1f5a54(0x35a)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1777da[_0x1777da[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x1777da))(Rs||{}),H=(_0x223f5e=>(_0x223f5e[_0x223f5e[_0x1f5a54(0x471)]=0x0]=_0x1f5a54(0x471),_0x223f5e[_0x223f5e[_0x1f5a54(0x315)]=0x1]=_0x1f5a54(0x315),_0x223f5e[_0x223f5e[_0x1f5a54(0x320)]=0x2]=_0x1f5a54(0x320),_0x223f5e[_0x223f5e['UNIVER_SLIDE']=0x3]=_0x1f5a54(0x1f0),_0x223f5e[_0x223f5e[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x223f5e))(H||{}),I=(_0x75d92f=>(_0x75d92f[_0x75d92f[_0x1f5a54(0x14d)]=0x0]=_0x1f5a54(0x14d),_0x75d92f[_0x75d92f[_0x1f5a54(0x230)]=0x1]=_0x1f5a54(0x230),_0x75d92f[_0x75d92f['JOIN']=0x2]=_0x1f5a54(0x1cc),_0x75d92f[_0x75d92f[_0x1f5a54(0x422)]=0x3]=_0x1f5a54(0x422),_0x75d92f[_0x75d92f[_0x1f5a54(0x358)]=0x4]='INGEST',_0x75d92f[_0x75d92f[_0x1f5a54(0x34b)]=0x5]=_0x1f5a54(0x34b),_0x75d92f[_0x75d92f[_0x1f5a54(0x46a)]=0x6]=_0x1f5a54(0x46a),_0x75d92f[_0x75d92f[_0x1f5a54(0x1cd)]=-0x1]=_0x1f5a54(0x1cd),_0x75d92f))(I||{}),yt=(_0x575536=>(_0x575536[_0x575536[_0x1f5a54(0x38d)]=0x0]=_0x1f5a54(0x38d),_0x575536[_0x575536['OK']=0x1]='OK',_0x575536[_0x575536[_0x1f5a54(0x378)]=0x2]=_0x1f5a54(0x378),_0x575536[_0x575536['UNRECOGNIZED']=-0x1]=_0x1f5a54(0x1cd),_0x575536))(yt||{}),Sn=Object['defineProperty'],vn=Object['getOwnPropertyDescriptor'],pn=(_0x299dd,_0x583e06,_0x4a0bd9,_0x1dd411)=>{const _0x288a03=_0x1f5a54;for(var _0x32dcfd=_0x1dd411>0x1?void 0x0:_0x1dd411?vn(_0x583e06,_0x4a0bd9):_0x583e06,_0x2e83ff=_0x299dd[_0x288a03(0x2d6)]-0x1,_0x45e844;_0x2e83ff>=0x0;_0x2e83ff--)(_0x45e844=_0x299dd[_0x2e83ff])&&(_0x32dcfd=(_0x1dd411?_0x45e844(_0x583e06,_0x4a0bd9,_0x32dcfd):_0x45e844(_0x32dcfd))||_0x32dcfd);return _0x1dd411&&_0x32dcfd&&Sn(_0x583e06,_0x4a0bd9,_0x32dcfd),_0x32dcfd;},Kt=(_0x261b19,_0x36759d)=>(_0x13a70c,_0x273a06)=>_0x36759d(_0x13a70c,_0x273a06,_0x261b19);let ne=class extends _0x462626{constructor(_0x12b3dd,_0x171d3d){const _0x10ed0a=_0x1f5a54;super(),l(this,'_roomMembers',new Map()),(this['_univerInstanceService']=_0x12b3dd,this[_0x10ed0a(0x411)]=_0x171d3d,this[_0x10ed0a(0x194)](_0x5d3cf2(_0x2e3217(this[_0x10ed0a(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x10ed0a(0x320)])[_0x10ed0a(0x180)](_0x28f321(_0x1f5651=>_0x1f5651[_0x10ed0a(0x2a2)]())),this[_0x10ed0a(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x10ed0a(0x315)])[_0x10ed0a(0x180)](_0x28f321(_0x3fc80e=>_0x3fc80e[_0x10ed0a(0x2a2)]())),this[_0x10ed0a(0x357)][_0x10ed0a(0x303)](_0x5cab0b['UNIVER_SLIDE'])['pipe'](_0x28f321(_0x334c0f=>_0x334c0f[_0x10ed0a(0x2a2)]())))[_0x10ed0a(0x2d9)](_0x1efe02=>this['_removeRoom'](_0x1efe02)))));}['setCurrentUser'](_0x3e1113){const _0x279ce1=_0x1f5a54;this[_0x279ce1(0x411)]['setCurrentUser'](_0x3e1113);}[_0x1f5a54(0x1c4)](){const _0x5481cf=_0x1f5a54;return this[_0x5481cf(0x411)]['getCurrentUser']();}[_0x1f5a54(0x30f)](_0x103dad,_0x44a420){const _0x12ce4f=_0x1f5a54;let _0x8d1351=this[_0x12ce4f(0x210)][_0x12ce4f(0x393)](_0x103dad);_0x8d1351||(_0x8d1351=new In(),this[_0x12ce4f(0x210)]['set'](_0x103dad,_0x8d1351)),_0x8d1351['updateMember'](_0x44a420);}[_0x1f5a54(0x437)](_0x141d98,_0x1e9078){const _0x3f2607=_0x1f5a54,_0x5376b6=this[_0x3f2607(0x210)][_0x3f2607(0x393)](_0x141d98);_0x5376b6&&_0x5376b6[_0x3f2607(0x437)](_0x1e9078);}['getRoom'](_0x326057){const _0x4bc543=_0x1f5a54;return this['_roomMembers'][_0x4bc543(0x393)](_0x326057);}['getMember'](_0x3cb698,_0x455ed3){const _0x30518f=_0x1f5a54,_0x6f43b=this[_0x30518f(0x210)][_0x30518f(0x393)](_0x3cb698);if(_0x6f43b)return _0x6f43b['getMember'](_0x455ed3);}[_0x1f5a54(0x420)](_0x2387d5){const _0x4f17d3=_0x1f5a54,_0x489c7c=this[_0x4f17d3(0x210)][_0x4f17d3(0x393)](_0x2387d5);_0x489c7c&&(_0x489c7c['dispose'](),this[_0x4f17d3(0x210)][_0x4f17d3(0x3a5)](_0x2387d5));}['dispose'](){const _0x2dfd01=_0x1f5a54;this[_0x2dfd01(0x210)]['forEach'](_0x5de16e=>_0x5de16e[_0x2dfd01(0x26e)]()),this[_0x2dfd01(0x210)]['clear']();}};ne=pn([Kt(0x0,_0x55bd21),Kt(0x1,_0x61a763(_0x49718f))],ne);class In extends _0x462626{constructor(){const _0x36ec65=_0x1f5a54;super(...arguments),l(this,_0x36ec65(0x18e),new Map());}[_0x1f5a54(0x26e)](){const _0x1fc5d8=_0x1f5a54;this[_0x1fc5d8(0x18e)][_0x1fc5d8(0x2f2)]();}[_0x1f5a54(0x30f)](_0xe590fd){const _0x122578=_0x1f5a54;this[_0x122578(0x18e)][_0x122578(0x22e)](_0xe590fd[_0x122578(0x2f0)],_0xe590fd);}[_0x1f5a54(0x437)](_0x14bc2f){this['_members']['delete'](_0x14bc2f);}[_0x1f5a54(0x29d)](_0x4261de){const _0x317bcd=_0x1f5a54;return this[_0x317bcd(0x18e)]['get'](_0x4261de);}}function En(_0x4fc726){const _0x3332a5=_0x1f5a54;var _0x50c162,_0x4700da,_0x213773,_0x2efe72;const _0x35380e=_0x4fc726[_0x3332a5(0x2a5)],_0x335417=JSON['parse'](_0x35380e);switch(_0x335417[_0x3332a5(0x3a8)]){case I[_0x3332a5(0x34b)]:case I['HELLO']:{const _0x239f61=_0x335417[_0x3332a5(0x1a4)];return{..._0x335417,'data':_0x239f61,'cmd':_0x335417['cmd']};}case I[_0x3332a5(0x1cc)]:{const _0x3957df=_0x335417[_0x3332a5(0x206)];return{..._0x335417,'data':_0x3957df,'cmd':_0x335417[_0x3332a5(0x3a8)]};}case I[_0x3332a5(0x46a)]:{const _0x5bb4c2=_0x335417[_0x3332a5(0x2dd)];switch(_0x5bb4c2['eventID']){case _0x505428[_0x3332a5(0x28a)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x50c162=_0x5bb4c2['permissionRejEvent'])==null?void 0x0:_0x50c162['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x27e)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x4700da=_0x5bb4c2[_0x3332a5(0x398)])==null?void 0x0:_0x4700da['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['NEW_CHANGESETS']:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x213773=_0x5bb4c2['newCsEvent'])==null?void 0x0:_0x213773['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x389)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':(_0x2efe72=_0x5bb4c2[_0x3332a5(0x27b)])==null?void 0x0:_0x2efe72['cs']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['UPDATE_CURSOR']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x3a1)]},'cmd':_0x335417['cmd']};case _0x505428[_0x3332a5(0x346)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['joinEvent']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['USERS_LEAVE']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x221)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x1b9)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['liveShareNewHost']},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x1df)]:case _0x505428[_0x3332a5(0x3e6)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['liveShareOperation']},'cmd':_0x335417['cmd']};case _0x505428[_0x3332a5(0x259)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x350)]},'cmd':_0x335417['cmd']};case _0x505428['MSG_FOR_ERROR']:return{..._0x335417,'data':_0x5bb4c2,'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428[_0x3332a5(0x43c)]:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x45e)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['UPDATE_PERMISSION_OBJ']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2[_0x3332a5(0x333)]},'cmd':_0x335417[_0x3332a5(0x3a8)]};case _0x505428['SHOULD_CLOSE_CONN']:return{..._0x335417,'data':{..._0x5bb4c2,'data':_0x5bb4c2['shouldCloseConn']},'cmd':_0x335417[_0x3332a5(0x3a8)]};default:return _0x335417;}}default:return _0x335417;}}function Cn(_0x27df3b){const _0x3a4bc8=_0x1f5a54;switch(_0x27df3b[_0x3a4bc8(0x3a8)]){case I[_0x3a4bc8(0x34b)]:case I['HELLO']:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)]});case I['INGEST']:{let _0x362335;switch(_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2cf)]){case _0x505428[_0x3a4bc8(0x412)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x412)],'updateCursorEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x42b)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x42b)],'leaveEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x346)]:{_0x362335={'eventID':_0x505428['USERS_ENTER'],'joinEvent':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428['LIVESHARE_NEW_HOST']:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x1b9)],'liveShareNewHost':_0x27df3b['data'][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x3e6)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x3e6)],'liveShareOperation':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x259)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x259)],'liveShareTerminate':_0x27df3b['data'][_0x3a4bc8(0x2a5)]};break;}case _0x505428[_0x3a4bc8(0x20b)]:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x20b)],'liveShareRequestHost':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2a5)]};break;}case _0x505428['LIVESHARE_FETCH_OPERATIONS']:{_0x362335={'eventID':_0x505428[_0x3a4bc8(0x1df)]};break;}default:_0x362335={'eventID':_0x27df3b[_0x3a4bc8(0x2a5)][_0x3a4bc8(0x2cf)]};}return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)],'collaMsg':_0x362335});}case I[_0x3a4bc8(0x1cc)]:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b['cmd'],'routeKey':_0x27df3b['routeKey'],'joinReq':_0x27df3b[_0x3a4bc8(0x2a5)]});case I[_0x3a4bc8(0x422)]:return JSON[_0x3a4bc8(0x41c)]({'cmd':_0x27df3b[_0x3a4bc8(0x3a8)],'routeKey':_0x27df3b[_0x3a4bc8(0x2db)],'leaveReq':_0x27df3b[_0x3a4bc8(0x2a5)]});default:throw new Error(_0x3a4bc8(0x3b5));}}var bn=Object['defineProperty'],Tn=Object[_0x1f5a54(0x3cc)],Rn=(_0x5f1e05,_0x1d7661,_0x5643c8,_0x50c3b4)=>{const _0x3bfa2a=_0x1f5a54;for(var _0x451673=_0x50c3b4>0x1?void 0x0:_0x50c3b4?Tn(_0x1d7661,_0x5643c8):_0x1d7661,_0x353b30=_0x5f1e05[_0x3bfa2a(0x2d6)]-0x1,_0x399abd;_0x353b30>=0x0;_0x353b30--)(_0x399abd=_0x5f1e05[_0x353b30])&&(_0x451673=(_0x50c3b4?_0x399abd(_0x1d7661,_0x5643c8,_0x451673):_0x399abd(_0x451673))||_0x451673);return _0x50c3b4&&_0x451673&&bn(_0x1d7661,_0x5643c8,_0x451673),_0x451673;},Ee=(_0xe8b9e0,_0x1ffe14)=>(_0x49946e,_0x2034ca)=>_0x1ffe14(_0x49946e,_0x2034ca,_0xe8b9e0);const Os=_0x2b1b05(_0x1f5a54(0x281));function On(_0x2d876a,_0x425d14,_0x40e745){const _0x498f94=_0x1f5a54;return _0x2d876a+'/'+_0x425d14+_0x498f94(0x35e)+_0x40e745+_0x498f94(0x342);}let gt=class{constructor(_0x49207e,_0x3f94a7,_0x5a46e7,_0x48c5bb,_0x11f464){const _0xdd7ded=_0x1f5a54;this[_0xdd7ded(0x36c)]=_0x49207e,this['_ws']=_0x3f94a7,this[_0xdd7ded(0x20c)]=_0x5a46e7,this[_0xdd7ded(0x308)]=_0x48c5bb,this[_0xdd7ded(0x156)]=_0x11f464;}[_0x1f5a54(0x198)](_0x265085){const _0x1d3a68=_0x1f5a54,_0x2fe162=this[_0x1d3a68(0x195)]['createSocket'](_0x265085);if(!_0x2fe162)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0xcb56d4=new _0x1382fe(),_0x13532e=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162['close$'][_0x1d3a68(0x2d9)](_0x4abc97=>_0x13532e[_0x1d3a68(0x39b)](_0x4abc97)))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x13532e[_0x1d3a68(0x424)]()));const _0x1f10d8=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162[_0x1d3a68(0x288)]['subscribe'](_0x394c39=>_0x1f10d8[_0x1d3a68(0x39b)](_0x394c39)))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x1f10d8[_0x1d3a68(0x424)]()));const _0x5cd29c=new _0x295019();_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(_0x2fe162[_0x1d3a68(0x3bd)][_0x1d3a68(0x2d9)](_0x23d4f3=>{const _0x118666=_0x1d3a68,_0x7239e5=En(_0x23d4f3);_0x5cd29c[_0x118666(0x39b)](_0x7239e5);}))),_0xcb56d4[_0x1d3a68(0x3c0)](_0x5d3cf2(()=>_0x5cd29c[_0x1d3a68(0x424)]()));const _0x59e8bf=()=>{const _0x4c245d=_0x1d3a68;_0x1f10d8[_0x4c245d(0x39b)](new Event(_0x4c245d(0x33c))),_0x13532e['next'](new CloseEvent(_0x4c245d(0x33c))),_0x3bdd78[_0x4c245d(0x1d2)]();},_0x3bdd78={'memberID':'','close$':_0x13532e[_0x1d3a68(0x26b)](),'error$':_0x1f10d8['asObservable'](),'open$':_0x2fe162['open$'],'message$':_0x5cd29c['asObservable'](),'send':_0x4c973f=>{const _0x52837a=_0x1d3a68;if(_0x4c973f[_0x52837a(0x3a8)]===I[_0x52837a(0x358)]){if(_0x4c973f[_0x52837a(0x2a5)][_0x52837a(0x2cf)]===_0x505428[_0x52837a(0x2d8)]){this[_0x52837a(0x359)](_0x3bdd78,_0x4c973f['data'])[_0x52837a(0x3c4)](_0x8291d3=>{const _0x3e0d99=_0x52837a;this[_0x3e0d99(0x308)][_0x3e0d99(0x419)](_0x8291d3),_0x59e8bf();});return;}if(_0x4c973f[_0x52837a(0x2a5)][_0x52837a(0x2cf)]===_0x505428[_0x52837a(0x1da)]){const _0x449840=_0x4c973f['data'];this[_0x52837a(0x289)](_0x449840)[_0x52837a(0x2e0)](_0x2ca38e=>{const _0x35e143=_0x52837a;_0x5cd29c['next']({'cmd':I[_0x35e143(0x46a)],'code':yt['OK'],'routeKey':_0x449840[_0x35e143(0x2a5)]['unitID'],'routeType':'','data':{'eventID':_0x505428[_0x35e143(0x421)],'data':{'changesets':_0x2ca38e}}});})[_0x52837a(0x3c4)](_0x384206=>{const _0x3d3e50=_0x52837a;this[_0x3d3e50(0x308)][_0x3d3e50(0x419)](_0x384206),_0x59e8bf();});return;}}_0x2fe162['send'](Cn(_0x4c973f));},'close':()=>{const _0x18aa92=_0x1d3a68;_0x2fe162[_0x18aa92(0x1d2)](),_0xcb56d4[_0x18aa92(0x26e)]();}};return _0x3bdd78;}async[_0x1f5a54(0x359)](_0x12f6b3,_0x507dc7){const _0xbfb616=_0x1f5a54;var _0x173a41;const {unitType:_0x41ae9d,unitID:_0x4ddf15,changeset:_0xb75bef}=_0x507dc7[_0xbfb616(0x2a5)],_0x4fedb1={'unitID':_0x4ddf15,'memberID':_0x12f6b3[_0xbfb616(0x2f0)],'type':_0x41ae9d,'changeset':_0x29a67f(_0xb75bef)},_0x52b715=On((_0x173a41=this['_configService'][_0xbfb616(0x19e)](dn))!=null?_0x173a41:fn,_0x41ae9d,_0x4ddf15);try{await this[_0xbfb616(0x36c)][_0xbfb616(0x1bf)](_0x52b715,{'body':_0x4fedb1});}catch(_0x19ca7f){throw this['_logService']['error'](_0xbfb616(0x41f),_0xbfb616(0x160)),_0x19ca7f;}}async['_fetchMissChangesets'](_0x1c9fae){const _0x2e1946=_0x1f5a54,{unitID:_0x5bf083,from:_0x23c2ac,to:_0x6f43b0,unitType:_0xa0884c}=_0x1c9fae[_0x2e1946(0x2a5)];return(await this[_0x2e1946(0x156)][_0x2e1946(0x355)]({'metadata':void 0x0},{'unitID':_0x5bf083,'type':_0xa0884c,'from':_0x23c2ac,'to':_0x6f43b0}))[_0x2e1946(0x262)];}};gt=Rn([Ee(0x0,_0x61a763(_0x11da14)),Ee(0x1,_0x61a763(_0x2067e4)),Ee(0x2,_0x43c997),Ee(0x3,_0x3e33de),Ee(0x4,_0x49d5c1)],gt);class Ds{constructor(){const _0x5724f1=_0x1f5a54;l(this,_0x5724f1(0x394),new _0x295019()),l(this,_0x5724f1(0x39f),this[_0x5724f1(0x394)][_0x5724f1(0x26b)]());}['onCommentUpdate'](_0x10ff21){const _0x3e00b0=_0x1f5a54;this[_0x3e00b0(0x394)][_0x3e00b0(0x39b)](_0x10ff21);}}var Dn=Object['defineProperty'],Pn=Object['getOwnPropertyDescriptor'],Ps=(_0xc2a8c0,_0x527787,_0x20561f,_0x342e6f)=>{for(var _0x467745=_0x342e6f>0x1?void 0x0:_0x342e6f?Pn(_0x527787,_0x20561f):_0x527787,_0x520482=_0xc2a8c0['length']-0x1,_0x11752f;_0x520482>=0x0;_0x520482--)(_0x11752f=_0xc2a8c0[_0x520482])&&(_0x467745=(_0x342e6f?_0x11752f(_0x527787,_0x20561f,_0x467745):_0x11752f(_0x467745))||_0x467745);return _0x342e6f&&_0x467745&&Dn(_0x527787,_0x20561f,_0x467745),_0x467745;},M=(_0x38b4f0,_0x3ff971)=>(_0x1a439d,_0x529bf5)=>_0x3ff971(_0x1a439d,_0x529bf5,_0x38b4f0),de=(_0x1087e8=>(_0x1087e8[_0x1087e8[_0x1f5a54(0x429)]=0x0]='IDLE',_0x1087e8[_0x1087e8[_0x1f5a54(0x171)]=0x1]=_0x1f5a54(0x171),_0x1087e8[_0x1087e8[_0x1f5a54(0x243)]=0x2]='OFFLINE',_0x1087e8[_0x1087e8[_0x1f5a54(0x405)]=0x3]='ONLINE',_0x1087e8))(de||{});let St=class extends _0x5915f1{constructor(_0x47e5d4,_0x4f24cc,_0x34157d,_0x167df3,_0x31104a,_0x32c346,_0x4a08c0,_0x1da6be,_0x4358fa){const _0x523b47=_0x1f5a54;super(),l(this,_0x523b47(0x427),new _0x24a55e(0x0)),l(this,'sessionStatus$',this[_0x523b47(0x427)][_0x523b47(0x26b)]()),l(this,_0x523b47(0x1f8),new _0x295019()),l(this,_0x523b47(0x403),this[_0x523b47(0x1f8)][_0x523b47(0x26b)]()),l(this,_0x523b47(0x2a4)),l(this,_0x523b47(0x2a1)),l(this,_0x523b47(0x268)),(this[_0x523b47(0x373)]=_0x47e5d4,this[_0x523b47(0x308)]=_0x34157d,this[_0x523b47(0x2c0)]=_0x167df3,this[_0x523b47(0x44b)]=_0x31104a,this[_0x523b47(0x20c)]=_0x32c346,this[_0x523b47(0x3a6)]=_0x4a08c0,this['_memberService']=_0x1da6be,this[_0x523b47(0x28d)]=_0x4358fa,_0x4f24cc['pipe'](_0x31e4a6(this[_0x523b47(0x3cd)]))[_0x523b47(0x2d9)](_0x26be35=>{const _0x2cafdc=_0x523b47;var _0x1ee821;typeof _0x26be35>'u'||(this['_socket']=_0x26be35,_0x26be35?(this[_0x2cafdc(0x408)](_0x26be35),this[_0x2cafdc(0x2a1)]=this[_0x2cafdc(0x2a4)][_0x2cafdc(0x3bd)]['subscribe'](_0x24cb35=>{const _0x11f6a1=_0x2cafdc;_0x24cb35['routeKey']===this[_0x11f6a1(0x373)]&&this[_0x11f6a1(0x1a2)](_0x24cb35);})):(this[_0x2cafdc(0x427)][_0x2cafdc(0x39b)](0x2),(_0x1ee821=this[_0x2cafdc(0x2a1)])==null||_0x1ee821[_0x2cafdc(0x3d0)](),this[_0x2cafdc(0x2a1)]=null));}),this[_0x523b47(0x194)](this[_0x523b47(0x2c0)]['registerOnClose'](()=>{const _0x296f9b=_0x523b47;var _0x3e2c7e;(_0x3e2c7e=this[_0x296f9b(0x2a4)])==null||_0x3e2c7e[_0x296f9b(0x1b5)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0xb8900a=_0x1f5a54;return this['_sessionStatus$'][_0xb8900a(0x321)]();}['getMemberID'](){const _0x5ee9e0=_0x1f5a54;var _0x1867be,_0x22f1ca;return(_0x22f1ca=(_0x1867be=this[_0x5ee9e0(0x2a4)])==null?void 0x0:_0x1867be[_0x5ee9e0(0x2f0)])!=null?_0x22f1ca:null;}[_0x1f5a54(0x26e)](){const _0x43ef01=_0x1f5a54;super[_0x43ef01(0x26e)](),this[_0x43ef01(0x3cd)][_0x43ef01(0x39b)](),this[_0x43ef01(0x3cd)][_0x43ef01(0x424)]();}['close'](){const _0x25cc1b=_0x1f5a54;var _0x5e437a,_0x469e0c;(_0x5e437a=this[_0x25cc1b(0x2a4)])==null||_0x5e437a[_0x25cc1b(0x1b5)]({'cmd':I[_0x25cc1b(0x422)],'data':{'roomID':this['_unitID']}}),this['_event$'][_0x25cc1b(0x424)](),this[_0x25cc1b(0x427)]['complete'](),(_0x469e0c=this[_0x25cc1b(0x2a4)])==null||_0x469e0c[_0x25cc1b(0x1d2)](),this[_0x25cc1b(0x26e)]();}[_0x1f5a54(0x1a2)](_0x3f53cc){const _0xba41fc=_0x1f5a54;_0x3f53cc[_0xba41fc(0x3a8)]===I['JOIN']?this[_0xba41fc(0x3b1)](_0x3f53cc):_0x3f53cc[_0xba41fc(0x3a8)]===I['RECV']&&this[_0xba41fc(0x1af)](_0x3f53cc);}['_joinRoom'](_0x14881b){const _0x1ce8d0=_0x1f5a54;this[_0x1ce8d0(0x427)][_0x1ce8d0(0x39b)](0x1),_0x14881b['send']({'cmd':I['JOIN'],'routeKey':this[_0x1ce8d0(0x373)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1ce8d0(0x373)]}]}});}[_0x1f5a54(0x3b1)](_0x192474){const _0x2eda4a=_0x1f5a54;var _0x5eb537;if(_0x192474[_0x2eda4a(0x275)]===yt[_0x2eda4a(0x378)]){this[_0x2eda4a(0x44b)][_0x2eda4a(0x43a)]({'type':_0x454b23[_0x2eda4a(0x17f)],'content':this[_0x2eda4a(0x3a6)]['t'](_0x2eda4a(0x182))}),this[_0x2eda4a(0x427)][_0x2eda4a(0x39b)](0x2);return;}this['_sessionStatus$'][_0x2eda4a(0x39b)](0x3);const _0x48cf70=(_0x5eb537=_0x192474[_0x2eda4a(0x2a5)][_0x2eda4a(0x220)][this[_0x2eda4a(0x373)]])==null?void 0x0:_0x5eb537[_0x2eda4a(0x3da)];_0x48cf70&&_0x48cf70[_0x2eda4a(0x37a)](_0x5b1948=>this[_0x2eda4a(0x2a0)][_0x2eda4a(0x30f)](this['_unitID'],_0x5b1948));}[_0x1f5a54(0x1af)](_0x2fe770){const _0x2cd16d=_0x1f5a54;try{const _0x22d949=_0x2fe770[_0x2cd16d(0x2a5)];switch(_0x22d949[_0x2cd16d(0x2cf)]){case _0x505428['USERS_ENTER']:this[_0x2cd16d(0x46d)](_0x22d949),this[_0x2cd16d(0x1f8)][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428['USERS_LEAVE']:this[_0x2cd16d(0x47b)](_0x22d949),this['_event$']['next'](_0x22d949);break;case _0x505428[_0x2cd16d(0x27e)]:this[_0x2cd16d(0x3ac)](),this['_event$'][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428[_0x2cd16d(0x237)]:this['_logService']['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x2cd16d(0x41c)](_0x22d949)),this['_event$'][_0x2cd16d(0x39b)](_0x22d949);break;case _0x505428[_0x2cd16d(0x43c)]:this[_0x2cd16d(0x28d)][_0x2cd16d(0x435)](_0x22d949[_0x2cd16d(0x2a5)]),this[_0x2cd16d(0x1f8)][_0x2cd16d(0x39b)](_0x22d949);break;default:this[_0x2cd16d(0x1f8)]['next'](_0x22d949);}}catch(_0xff87a3){this[_0x2cd16d(0x308)]['error'](_0xff87a3,_0x2fe770);}}[_0x1f5a54(0x46d)](_0x359ced){const _0x230c3f=_0x1f5a54;this[_0x230c3f(0x2a0)][_0x230c3f(0x30f)](this[_0x230c3f(0x373)],_0x359ced['data']);}[_0x1f5a54(0x47b)](_0x540050){const _0x9a7b77=_0x1f5a54;this[_0x9a7b77(0x2a0)][_0x9a7b77(0x437)](this['_unitID'],_0x540050[_0x9a7b77(0x2a5)][_0x9a7b77(0x2f0)]);}async['send'](_0x31ec56,_0x28eced){const _0xa09546=_0x1f5a54;if(this[_0xa09546(0x2a3)]!==0x3||!this[_0xa09546(0x2a4)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x31ec56[_0xa09546(0x2cf)]===_0x505428[_0xa09546(0x2f5)]&&this[_0xa09546(0x1cf)](),this[_0xa09546(0x2a4)][_0xa09546(0x1b5)]({'cmd':I['INGEST'],'routeKey':_0x28eced,'routeType':'','data':_0x31ec56});}catch(_0xc467ad){this[_0xa09546(0x308)][_0xa09546(0x419)](_0xc467ad);}}[_0x1f5a54(0x1cf)](){const _0x2f64f3=_0x1f5a54;var _0x33db2f;this['_collaborationTimeoutTimer']=window[_0x2f64f3(0x363)](()=>{const _0x1d32f0=_0x2f64f3;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x1d32f0(0x43a)]({'type':_0x454b23[_0x1d32f0(0x286)],'content':this[_0x1d32f0(0x3a6)]['t'](_0x1d32f0(0x2b7))});},(_0x33db2f=this[_0x2f64f3(0x20c)][_0x2f64f3(0x19e)](bs))!=null?_0x33db2f:Ts);}[_0x1f5a54(0x3ac)](){const _0x2b732f=_0x1f5a54;this[_0x2b732f(0x268)]&&(clearTimeout(this[_0x2b732f(0x268)]),this[_0x2b732f(0x268)]=null);}};St=Ps([M(0x2,_0x3e33de),M(0x3,_0x28b08e),M(0x4,_0x58c973),M(0x5,_0x43c997),M(0x6,_0x61a763(_0x4eec6f)),M(0x7,_0x61a763(ne)),M(0x8,_0x61a763(Ds))],St);let ge=class extends _0x462626{constructor(_0x12114e,_0x10527a,_0x42bc92,_0x56f000,_0x4cd76b,_0x45e95b){const _0x5c2eb3=_0x1f5a54;super(),l(this,_0x5c2eb3(0x24d),new _0x24a55e(void 0x0)),l(this,'_sessions',new Map()),l(this,_0x5c2eb3(0x465),new _0x24a55e(0x0)),l(this,_0x5c2eb3(0x41a),this[_0x5c2eb3(0x465)][_0x5c2eb3(0x26b)]()),l(this,_0x5c2eb3(0x1d9),!0x1),l(this,'_sendHeartbeatTimer'),l(this,_0x5c2eb3(0x3c7)),l(this,_0x5c2eb3(0x45a)),l(this,_0x5c2eb3(0x301),0x0),(this[_0x5c2eb3(0x3db)]=_0x12114e,this[_0x5c2eb3(0x3a6)]=_0x10527a,this['_messageService']=_0x42bc92,this[_0x5c2eb3(0x308)]=_0x56f000,this[_0x5c2eb3(0x20c)]=_0x4cd76b,this['_socketService']=_0x45e95b);}get['_socket'](){const _0x315f9e=_0x1f5a54;return this[_0x315f9e(0x24d)][_0x315f9e(0x321)]();}[_0x1f5a54(0x26e)](){const _0x351cdd=_0x1f5a54;super[_0x351cdd(0x26e)](),this[_0x351cdd(0x3cb)][_0x351cdd(0x37a)](_0x425257=>_0x425257[_0x351cdd(0x26e)]()),this[_0x351cdd(0x3cb)][_0x351cdd(0x2f2)](),this['_status$']['complete']();}async['requireSession'](_0x1746f7){const _0x300701=_0x1f5a54;if(this[_0x300701(0x3cb)][_0x300701(0x1d8)](_0x1746f7))return this['_sessions'][_0x300701(0x393)](_0x1746f7);this['_tryEnsureSocket']();const _0x293062=this[_0x300701(0x3db)][_0x300701(0x145)](St,_0x1746f7,this[_0x300701(0x24d)]['asObservable']());return this[_0x300701(0x3cb)][_0x300701(0x22e)](_0x1746f7,_0x293062),_0x293062;}[_0x1f5a54(0x257)](_0x1606f1){const _0xea1dcb=_0x1f5a54;var _0x23b917;const _0x3f7972=this[_0xea1dcb(0x3cb)][_0xea1dcb(0x393)](_0x1606f1);_0x3f7972&&(this[_0xea1dcb(0x3cb)]['delete'](_0x1606f1),_0x3f7972[_0xea1dcb(0x1d2)]()),this[_0xea1dcb(0x3cb)][_0xea1dcb(0x3d8)]||(_0x23b917=this['_socket'])==null||_0x23b917[_0xea1dcb(0x1d2)]();}[_0x1f5a54(0x3aa)](){const _0x2874ea=_0x1f5a54;var _0x55ee12;const _0x19bc13=(_0x55ee12=this[_0x2874ea(0x20c)][_0x2874ea(0x19e)](sn))!=null?_0x55ee12:nn;return this[_0x2874ea(0x33a)][_0x2874ea(0x198)](_0x19bc13);}[_0x1f5a54(0x217)](){const _0x3009cf=_0x1f5a54;try{const _0x4857ef=this[_0x3009cf(0x3aa)]();if(_0x4857ef){const _0x44fb55=_0x4857ef[_0x3009cf(0x1b5)];_0x4857ef[_0x3009cf(0x1b5)]=_0x33b651=>(this[_0x3009cf(0x222)](),_0x44fb55[_0x3009cf(0x1bb)](_0x4857ef,[_0x33b651])),_0x4857ef[_0x3009cf(0x3bd)][_0x3009cf(0x2d9)](_0x5e3cc3=>this[_0x3009cf(0x21e)](_0x4857ef,_0x5e3cc3)),_0x4857ef[_0x3009cf(0x288)]['pipe'](_0x4747bd(0x1))[_0x3009cf(0x2d9)](_0x2abeda=>this['_logService']['error']('[CollaborationSessionService]:\x20socket\x20error',_0x2abeda)),_0x4857ef['open$'][_0x3009cf(0x180)](_0x4747bd(0x1))[_0x3009cf(0x2d9)](()=>{const _0x843f62=_0x3009cf;this[_0x843f62(0x2fc)](_0x4857ef);}),_0x4857ef[_0x3009cf(0x167)][_0x3009cf(0x180)](_0x4747bd(0x1))[_0x3009cf(0x2d9)](_0x5b621e=>{const _0xaa0b72=_0x3009cf;this['_logService'][_0xaa0b72(0x319)](_0xaa0b72(0x364),'socket\x20close',_0x5b621e),this[_0xaa0b72(0x379)]();});}}catch(_0x2c3960){this['_logService']['error'](_0x2c3960),this[_0x3009cf(0x379)]();}}['_onConnectionOpen'](_0xf5eaa5){const _0x175dfa=_0x1f5a54;this[_0x175dfa(0x308)][_0x175dfa(0x319)](_0x175dfa(0x364),_0x175dfa(0x460)),_0xf5eaa5['send']({'cmd':I[_0x175dfa(0x230)]}),this[_0x175dfa(0x222)]();}[_0x1f5a54(0x379)](){const _0x2f3849=_0x1f5a54;var _0xf64025;this[_0x2f3849(0x465)][_0x2f3849(0x39b)](0x2),this[_0x2f3849(0x24d)][_0x2f3849(0x39b)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this['_socketReady']=!0x1,this[_0x2f3849(0x301)]<((_0xf64025=this[_0x2f3849(0x20c)][_0x2f3849(0x19e)](hn))!=null?_0xf64025:ln)?(this[_0x2f3849(0x3ce)](this[_0x2f3849(0x301)]),this[_0x2f3849(0x301)]+=0x1):this[_0x2f3849(0x44b)]['show']({'type':_0x454b23[_0x2f3849(0x286)],'content':this['_localeService']['t']('session.connection-failed')});}[_0x1f5a54(0x3ce)](_0x52f182){const _0x14b17e=_0x1f5a54;var _0x477612;const _0x249c61=((_0x477612=this[_0x14b17e(0x20c)][_0x14b17e(0x19e)](an))!=null?_0x477612:cn)*0x2**_0x52f182;this[_0x14b17e(0x44b)]['show']({'type':_0x454b23[_0x14b17e(0x17f)],'content':this[_0x14b17e(0x3a6)]['t'](_0x14b17e(0x274))}),this[_0x14b17e(0x45a)]=setTimeout(()=>{const _0x3516ed=_0x14b17e;this['_tryEnsureSocket'](),clearTimeout(this[_0x3516ed(0x45a)]),this[_0x3516ed(0x45a)]=null;},_0x249c61);}['_rescheduleHeartbeatEvent'](){const _0x29c65d=_0x1f5a54;var _0x549150;this[_0x29c65d(0x44c)](),this[_0x29c65d(0x238)]=setTimeout(()=>this[_0x29c65d(0x250)](),(_0x549150=this[_0x29c65d(0x20c)]['getConfig'](rn))!=null?_0x549150:on);}[_0x1f5a54(0x250)](){const _0x495b2d=_0x1f5a54;this[_0x495b2d(0x2a4)][_0x495b2d(0x1b5)]({'cmd':I[_0x495b2d(0x34b)]}),this['_waitForHeartbeatResponse']();}[_0x1f5a54(0x24b)](){const _0x196c59=_0x1f5a54;var _0x4a5c24;this[_0x196c59(0x3c7)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x4a5c24=this[_0x196c59(0x20c)][_0x196c59(0x19e)](bs))!=null?_0x4a5c24:Ts);}[_0x1f5a54(0x21e)](_0x35fee2,_0x3d692d){const _0x123e59=_0x1f5a54,{cmd:_0x46082c}=_0x3d692d;_0x46082c===I[_0x123e59(0x230)]&&!this['_socketReady']&&(_0x35fee2[_0x123e59(0x2f0)]=_0x3d692d[_0x123e59(0x2a5)][_0x123e59(0x2f0)],this[_0x123e59(0x24d)][_0x123e59(0x39b)](_0x35fee2),this[_0x123e59(0x465)]['next'](0x3),this[_0x123e59(0x1d9)]=!0x0),_0x46082c===I['HEARTBEAT']&&this['_clearTimeoutTimer'](),this[_0x123e59(0x222)]();}['_clearHeartbeatTimer'](){const _0x1aa2fb=_0x1f5a54;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x1aa2fb(0x238)]),this[_0x1aa2fb(0x238)]=null);}[_0x1f5a54(0x2cb)](){const _0x20f5e7=_0x1f5a54;this[_0x20f5e7(0x3c7)]!=null&&(clearTimeout(this[_0x20f5e7(0x3c7)]),this[_0x20f5e7(0x3c7)]=null);}};ge=Ps([M(0x0,_0x61a763(_0x2e9f94)),M(0x1,_0x61a763(_0x4eec6f)),M(0x2,_0x58c973),M(0x3,_0x3e33de),M(0x4,_0x43c997),M(0x5,Os)],ge);var wn=Object[_0x1f5a54(0x29f)],Nn=Object[_0x1f5a54(0x3cc)],Mn=(_0xbfb199,_0x34b6f1,_0x2f7445,_0x2f0f3d)=>{const _0x21e0a3=_0x1f5a54;for(var _0x24f703=_0x2f0f3d>0x1?void 0x0:_0x2f0f3d?Nn(_0x34b6f1,_0x2f7445):_0x34b6f1,_0xce08f2=_0xbfb199[_0x21e0a3(0x2d6)]-0x1,_0x135fdd;_0xce08f2>=0x0;_0xce08f2--)(_0x135fdd=_0xbfb199[_0xce08f2])&&(_0x24f703=(_0x2f0f3d?_0x135fdd(_0x34b6f1,_0x2f7445,_0x24f703):_0x135fdd(_0x24f703))||_0x24f703);return _0x2f0f3d&&_0x24f703&&wn(_0x34b6f1,_0x2f7445,_0x24f703),_0x24f703;},Ce=(_0x5b1f73,_0x152375)=>(_0x56a3e7,_0x561c62)=>_0x152375(_0x56a3e7,_0x561c62,_0x5b1f73);let D=class extends _0x462626{constructor(_0x28cbee,_0x5d30b8,_0x2bb526,_0x221fd7,_0x2699db){const _0x2f6d87=_0x1f5a54;super(),l(this,_0x2f6d87(0x291),new Map()),l(this,_0x2f6d87(0x2f7),new Map()),l(this,'_disabled',!0x1),(this[_0x2f6d87(0x20c)]=_0x28cbee,this['_localStorageService']=_0x5d30b8,this[_0x2f6d87(0x2c0)]=_0x2bb526,this[_0x2f6d87(0x3a6)]=_0x221fd7,this[_0x2f6d87(0x459)]=_0x2699db,this[_0x2f6d87(0x202)]());}[_0x1f5a54(0x3fa)](){const _0x346008=_0x1f5a54;this[_0x346008(0x31d)]=!0x0;}['enableLocalCache'](){const _0x40882c=_0x1f5a54;this[_0x40882c(0x31d)]=!0x1;}[_0x1f5a54(0x26e)](){const _0x324062=_0x1f5a54;this['exhaustSavingTask']()['then'](()=>super[_0x324062(0x26e)]());}async[_0x1f5a54(0x473)](_0x52fe2d){const _0x5f2432=_0x1f5a54;return this['_disabled']?null:this[_0x5f2432(0x47a)][_0x5f2432(0x1fd)](Xt(_0x52fe2d));}async[_0x1f5a54(0x1d0)](_0x12abec,_0xdb06b1){const _0x5b36fe=_0x1f5a54;return!!this['_localStorageService'][_0x5b36fe(0x14e)](_0x12abec,_0xdb06b1);}[_0x1f5a54(0x16f)](_0x3fd7e5,_0x37f784,_0x1d6ecc,_0x54c41d){const _0x2fc33b=_0x1f5a54,_0x3713f9=this[_0x2fc33b(0x459)][_0x2fc33b(0x236)](_0x3fd7e5);this[_0x2fc33b(0x291)][_0x2fc33b(0x22e)](_0x3fd7e5,{'unitID':_0x3fd7e5,'type':_0x37f784,'awaitingChangeset':_0x1d6ecc,'mutations':_0x54c41d,'rev':_0x3713f9}),this[_0x2fc33b(0x2f7)][_0x2fc33b(0x1d8)](_0x3fd7e5)||this[_0x2fc33b(0x255)](_0x3fd7e5);}[_0x1f5a54(0x255)](_0x7096bb){const _0x2a3fcb=_0x1f5a54,_0x28954b=this[_0x2a3fcb(0x152)]();_0x28954b===0x0?this['_saveCache'](_0x7096bb):this[_0x2a3fcb(0x2f7)][_0x2a3fcb(0x22e)](_0x7096bb,setTimeout(()=>this[_0x2a3fcb(0x32e)](_0x7096bb),_0x28954b));}[_0x1f5a54(0x152)](){const _0x50011b=_0x1f5a54;var _0x4291c9;return(_0x4291c9=this[_0x50011b(0x20c)][_0x50011b(0x19e)](_n))!=null?_0x4291c9:un;}[_0x1f5a54(0x32e)](_0x1a2b5a){const _0x1f811c=_0x1f5a54,_0x2e76cf=this[_0x1f811c(0x2f7)][_0x1f811c(0x393)](_0x1a2b5a);return _0x2e76cf!==void 0x0&&window[_0x1f811c(0x354)](_0x2e76cf),this['_localStorageService'][_0x1f811c(0x14e)](Xt(_0x1a2b5a),this['_cachedData'][_0x1f811c(0x393)](_0x1a2b5a))['then'](()=>this[_0x1f811c(0x2f7)][_0x1f811c(0x3a5)](_0x1a2b5a));}async[_0x1f5a54(0x270)](){const _0xc1148b=_0x1f5a54,_0x183c20=[];this[_0xc1148b(0x2f7)][_0xc1148b(0x37a)]((_0x2bf21a,_0x5bba2f)=>{const _0xec6d0d=_0xc1148b;window['clearTimeout'](_0x2bf21a),_0x183c20[_0xec6d0d(0x310)](this[_0xec6d0d(0x32e)](_0x5bba2f)[_0xec6d0d(0x2e0)](()=>{const _0x8526b1=_0xec6d0d;this[_0x8526b1(0x2f7)][_0x8526b1(0x3a5)](_0x5bba2f);}));}),await Promise[_0xc1148b(0x30c)](_0x183c20);}['_setupBeforeClosingHandler'](){const _0x146ded=_0x1f5a54;this[_0x146ded(0x194)](this[_0x146ded(0x2c0)][_0x146ded(0x353)](()=>{const _0x34a521=_0x146ded;if(this[_0x34a521(0x2f7)][_0x34a521(0x3d8)])return this[_0x34a521(0x3a6)]['t']('collaboration-client.offline-data-not-saved');}));}};D=Mn([Ce(0x0,_0x43c997),Ce(0x1,_0x38f292),Ce(0x2,_0x28b08e),Ce(0x3,_0x61a763(_0x4eec6f)),Ce(0x4,_0x61a763(_0x2fc807))],D);function Xt(_0x5de334){const _0x44c601=_0x1f5a54;return _0x44c601(0x19d)+_0x5de334;}const et=_0x2b1b05(_0x1f5a54(0x254));var ws=(_0x42a66d=>(_0x42a66d[_0x42a66d[_0x1f5a54(0x228)]=0x0]=_0x1f5a54(0x228),_0x42a66d[_0x42a66d['OTHER_CLIENTS_EDITING']=0x1]=_0x1f5a54(0x2ef),_0x42a66d))(ws||{});const Jt=0x7530,qt=_0x1f5a54(0x258);class An extends _0x462626{constructor(){const _0x19b7d3=_0x1f5a54;super(),l(this,'_id',_0x4b796f['generateRandomId']()),l(this,_0x19b7d3(0x16c),new Set()),l(this,_0x19b7d3(0x36d),new Map()),l(this,_0x19b7d3(0x3fc),null),l(this,'_clearOtherTimers',new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x1f5a54(0x26e)](){const _0x32c07c=_0x1f5a54;super[_0x32c07c(0x26e)](),this[_0x32c07c(0x384)][_0x32c07c(0x37a)]((_0x3f4576,_0x328406)=>this[_0x32c07c(0x2b9)](_0x328406)),this[_0x32c07c(0x3fc)]&&window[_0x32c07c(0x162)](this[_0x32c07c(0x3fc)]);}['getUnitStatus$'](_0x53a69b){const _0x2bed72=_0x1f5a54;return this['_ensureSubject'](_0x53a69b)[_0x2bed72(0x180)](_0x4dffca());}[_0x1f5a54(0x35d)](_0x5dfb19){const _0x314501=_0x1f5a54;this[_0x314501(0x16c)][_0x314501(0x3d8)]===0x0&&this[_0x314501(0x326)](),this[_0x314501(0x16c)][_0x314501(0x3c0)](_0x5dfb19),this['_send']({'type':0x0,'memberID':this[_0x314501(0x318)],'unitIDs':[_0x5dfb19],'isForwarded':!0x1});}['disposeUnit'](_0x27e755){const _0x2813ce=_0x1f5a54;this['_selfUnitIDs']['delete'](_0x27e755),this[_0x2813ce(0x16c)]['size']===0x0&&this[_0x2813ce(0x3fc)]&&window['clearInterval'](this[_0x2813ce(0x3fc)]);}[_0x1f5a54(0x3b6)](){const _0x58bd13=_0x1f5a54;this[_0x58bd13(0x194)](_0x5d3cf2(_0x45523d(window,_0x58bd13(0x1d4))[_0x58bd13(0x2d9)](_0x8cf5f8=>{const _0x37f1bb=_0x58bd13;if(_0x8cf5f8[_0x37f1bb(0x3f4)]!==qt||!_0x8cf5f8['newValue'])return;const _0x4f1d45=JSON['parse'](_0x8cf5f8[_0x37f1bb(0x146)]);this[_0x37f1bb(0x402)](_0x4f1d45);}))),window['addEventListener'](_0x58bd13(0x276),()=>this[_0x58bd13(0x27f)]({'type':0x1,'memberID':this[_0x58bd13(0x318)],'unitIDs':Array['from'](this[_0x58bd13(0x16c)])}));}[_0x1f5a54(0x402)](_0x5161f8){const _0x3cdc5f=_0x1f5a54;switch(_0x5161f8['type']){case 0x0:this[_0x3cdc5f(0x1f7)](_0x5161f8);break;case 0x1:this[_0x3cdc5f(0x1c9)](_0x5161f8);break;case 0x2:this[_0x3cdc5f(0x17d)](_0x5161f8);break;}}['_handleJoinEvent'](_0x26eefb){const _0x390f6d=_0x1f5a54,{unitIDs:_0x35d409,memberID:_0xc1912a,isForwarded:_0x319d50}=_0x26eefb;_0x35d409[_0x390f6d(0x37a)](_0x2bbe3a=>{const _0x57e1c8=_0x390f6d;if(!_0x319d50&&this['_unitOnClients'][_0x57e1c8(0x1d8)](_0x2bbe3a)&&this[_0x57e1c8(0x1a9)](_0x2bbe3a)[_0x57e1c8(0x39b)](0x1),!this['_unitOnClients'][_0x57e1c8(0x1d8)](_0x2bbe3a)||!this[_0x57e1c8(0x36d)][_0x57e1c8(0x393)](_0x2bbe3a)[_0x57e1c8(0x1d8)](_0xc1912a)){const _0x364d68=this[_0x57e1c8(0x36d)][_0x57e1c8(0x393)](_0x2bbe3a)||new Set();_0x364d68['add'](_0xc1912a),this['_unitOnClients']['set'](_0x2bbe3a,_0x364d68),this[_0x57e1c8(0x469)](_0xc1912a);}}),_0x319d50||this['_send']({'type':0x0,'memberID':this[_0x390f6d(0x318)],'unitIDs':[...this[_0x390f6d(0x16c)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x30fb29){const _0x359969=_0x1f5a54;this[_0x359969(0x2b9)](_0x30fb29);const _0xf3a00a=window[_0x359969(0x363)](()=>{const _0x33a9b1=_0x359969;this[_0x33a9b1(0x36d)][_0x33a9b1(0x37a)](_0x2a1fc6=>{const _0x492192=_0x33a9b1;_0x2a1fc6[_0x492192(0x3a5)](_0x30fb29);});},Jt*0x2);this[_0x359969(0x384)][_0x359969(0x22e)](_0x30fb29,_0xf3a00a);}['_removeClearOtherTimer'](_0x45ca5c){const _0x5494ea=_0x1f5a54;if(this[_0x5494ea(0x384)]['has'](_0x45ca5c)){const _0x4dcfe8=this[_0x5494ea(0x384)][_0x5494ea(0x393)](_0x45ca5c);_0x4dcfe8&&window[_0x5494ea(0x354)](_0x4dcfe8),this['_clearOtherTimers'][_0x5494ea(0x22e)](_0x45ca5c,null);}}[_0x1f5a54(0x1c9)](_0x2a2e80){const {memberID:_0x4e6bd5,unitIDs:_0x386c87}=_0x2a2e80;_0x386c87['forEach'](_0x26d8ad=>{const _0x4d2145=_0x2f7f;var _0x21b19d;const _0x36a086=this['_unitOnClients']['get'](_0x26d8ad);_0x36a086&&(_0x36a086['delete'](_0x4e6bd5),(_0x21b19d=this['_ensureSubject'](_0x26d8ad))==null||_0x21b19d[_0x4d2145(0x39b)](_0x36a086[_0x4d2145(0x3d8)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4e6bd5);}[_0x1f5a54(0x17d)](_0x1f710d){const _0x591a70=_0x1f5a54;this[_0x591a70(0x469)](_0x1f710d[_0x591a70(0x2f0)]);}[_0x1f5a54(0x27f)](_0x1df72e){const _0x17b20c=_0x1f5a54;localStorage[_0x17b20c(0x14e)](qt,JSON[_0x17b20c(0x41c)](_0x1df72e));}[_0x1f5a54(0x326)](){const _0x470606=_0x1f5a54;this[_0x470606(0x3fc)]=window['setInterval'](()=>{const _0x211e3f=_0x470606;this[_0x211e3f(0x27f)]({'type':0x2,'memberID':this[_0x211e3f(0x318)]});},Jt);}['_ensureSubject'](_0xa1f34d){const _0x498e5a=_0x1f5a54;return this['_unitStatus'][_0x498e5a(0x1d8)](_0xa1f34d)||this[_0x498e5a(0x1ea)][_0x498e5a(0x22e)](_0xa1f34d,new _0x24a55e(0x0)),this[_0x498e5a(0x1ea)][_0x498e5a(0x393)](_0xa1f34d);}}var yn=Object['defineProperty'],Un=Object[_0x1f5a54(0x3cc)],Ln=(_0x3fb07b,_0x440b2e,_0x1f9af4,_0x11351d)=>{const _0x3dd7ed=_0x1f5a54;for(var _0x404d47=_0x11351d>0x1?void 0x0:_0x11351d?Un(_0x440b2e,_0x1f9af4):_0x440b2e,_0x20e365=_0x3fb07b[_0x3dd7ed(0x2d6)]-0x1,_0x3e4f9b;_0x20e365>=0x0;_0x20e365--)(_0x3e4f9b=_0x3fb07b[_0x20e365])&&(_0x404d47=(_0x11351d?_0x3e4f9b(_0x440b2e,_0x1f9af4,_0x404d47):_0x3e4f9b(_0x404d47))||_0x404d47);return _0x11351d&&_0x404d47&&yn(_0x440b2e,_0x1f9af4,_0x404d47),_0x404d47;},zt=(_0x30be36,_0x2327b1)=>(_0x3193b1,_0x1f73a7)=>_0x2327b1(_0x3193b1,_0x1f73a7,_0x30be36);let Xe=class{constructor(_0x33f831,_0x5baebc){const _0x1dfb5c=_0x1f5a54;this[_0x1dfb5c(0x3db)]=_0x33f831,this[_0x1dfb5c(0x327)]=_0x5baebc;}[_0x1f5a54(0x300)](_0x1e4c27){const _0x58d00b=_0x1f5a54;this[_0x58d00b(0x43f)](_0x1e4c27),this[_0x58d00b(0x1fa)](_0x1e4c27);}[_0x1f5a54(0x348)](_0x40d834){const _0x3cb9ac=_0x1f5a54,_0x11ba7b=this['_injector'][_0x3cb9ac(0x393)](_0x3f2d0c),{redoCache:_0x164b82}=_0x11ba7b[_0x3cb9ac(0x190)]();if(_0x164b82['length']===0x0)return _0x40d834;let _0x516713=_0x4b796f['deepClone'](_0x40d834[_0x3cb9ac(0x466)][0x0]);for(let _0xe739f1=0x0;_0xe739f1<_0x164b82[_0x3cb9ac(0x2d6)];_0xe739f1++){const _0x2b04af={'id':'doc.mutation.rich-text-editing','params':{..._0x164b82[_0xe739f1]}},_0x2139bd=this[_0x3cb9ac(0x327)][_0x3cb9ac(0x34d)](_0x516713,_0x2b04af,!0x1);if(_0x2bbef6(_0x2139bd))throw _0x2139bd[_0x3cb9ac(0x419)];_0x516713=_0x2139bd[_0x3cb9ac(0x1fc)];}return{..._0x4b796f[_0x3cb9ac(0x1e6)](_0x40d834),'mutations':[_0x516713]};}[_0x1f5a54(0x43f)](_0x2b9df2){const _0xd62259=_0x1f5a54,_0x3e6e6c=this[_0xd62259(0x3db)][_0xd62259(0x393)](_0x3f2d0c),{undoCache:_0x282bef,redoCache:_0x474ac2}=_0x3e6e6c[_0xd62259(0x190)]();if(_0x282bef['length']===0x0||_0x474ac2['length']===0x0)return;const _0x1cfcba=[],_0x2b1356=[];let _0x515d39=_0x4b796f[_0xd62259(0x1e6)](_0x2b9df2[_0xd62259(0x466)][0x0]),_0x8bd1c0=_0x4b796f[_0xd62259(0x1e6)](_0x2b9df2[_0xd62259(0x466)][0x0]);for(let _0x93b88a=_0x282bef[_0xd62259(0x2d6)]-0x1;_0x93b88a>=0x0;_0x93b88a--){const _0xef66d={'id':'doc.mutation.rich-text-editing','params':{..._0x282bef[_0x93b88a]}},_0x10a9f7={'id':'doc.mutation.rich-text-editing','params':{..._0x474ac2[_0x93b88a]}},_0x45b88d=this[_0xd62259(0x327)]['transformMutation'](_0x515d39,_0xef66d,!0x1),_0x226658=this['_transformService'][_0xd62259(0x34d)](_0x8bd1c0,_0x10a9f7,!0x1);if(_0x2bbef6(_0x45b88d))throw _0x45b88d[_0xd62259(0x419)];if(_0x2bbef6(_0x226658))throw _0x226658['error'];_0x1cfcba['unshift'](_0x45b88d[_0xd62259(0x349)][_0xd62259(0x3ef)]),_0x2b1356[_0xd62259(0x283)](_0x226658[_0xd62259(0x349)][_0xd62259(0x3ef)]),_0x515d39=_0x45b88d[_0xd62259(0x1fc)],_0x8bd1c0=_0x226658['m1Prime'];}_0x3e6e6c[_0xd62259(0x37c)]({'undoCache':_0x1cfcba,'redoCache':_0x2b1356});}[_0x1f5a54(0x1fa)](_0x516f4f){const _0x16b212=_0x1f5a54,_0x298891=this['_injector']['get'](_0x3f2d0c),_0x16018e=_0x298891[_0x16b212(0x3f3)]();if(_0x16018e==null)return;const _0x43a33c=[{'id':_0x16b212(0x14c),'params':{'unitId':_0x516f4f['unitID'],'actions':null,'textRanges':[_0x16018e]}}],_0x1e9696=this[_0x16b212(0x327)][_0x16b212(0x461)](_0x516f4f,_0x43a33c);if(!_0x5abc17(_0x1e9696))throw _0x1e9696[_0x16b212(0x419)];const _0x96c7be=_0x1e9696[_0x16b212(0x349)][0x0][_0x16b212(0x3ef)][_0x16b212(0x279)];Array[_0x16b212(0x150)](_0x96c7be)&&_0x96c7be[_0x16b212(0x2d6)]&&_0x298891[_0x16b212(0x3be)](_0x96c7be[0x0]);}};Xe=Ln([zt(0x0,_0x61a763(_0x2e9f94)),zt(0x1,_0x1215ee)],Xe);var $n=Object[_0x1f5a54(0x29f)],jn=Object[_0x1f5a54(0x3cc)],Hn=(_0x447407,_0x32967c,_0x1cdb67,_0x4b5397)=>{for(var _0x2adbaf=_0x4b5397>0x1?void 0x0:_0x4b5397?jn(_0x32967c,_0x1cdb67):_0x32967c,_0x55c99a=_0x447407['length']-0x1,_0x5dd50d;_0x55c99a>=0x0;_0x55c99a--)(_0x5dd50d=_0x447407[_0x55c99a])&&(_0x2adbaf=(_0x4b5397?_0x5dd50d(_0x32967c,_0x1cdb67,_0x2adbaf):_0x5dd50d(_0x2adbaf))||_0x2adbaf);return _0x4b5397&&_0x2adbaf&&$n(_0x32967c,_0x1cdb67,_0x2adbaf),_0x2adbaf;},Zt=(_0x27c392,_0x4d236b)=>(_0x4cd439,_0x5127ee)=>_0x4d236b(_0x4cd439,_0x5127ee,_0x27c392);let Je=class{constructor(_0x2b1a66,_0x4ec42c){const _0x283d6d=_0x1f5a54;this[_0x283d6d(0x3db)]=_0x2b1a66,this[_0x283d6d(0x327)]=_0x4ec42c;}[_0x1f5a54(0x234)](_0x52dd1e){const _0x271dcc=_0x1f5a54;var _0x4066a0;const _0x91a058=this[_0x271dcc(0x3db)][_0x271dcc(0x393)](_0x233706),_0x396122=(_0x4066a0=_0x91a058[_0x271dcc(0x208)]())!=null?_0x4066a0:[],_0x41be01=_0x396122==null?void 0x0:_0x396122[_0x271dcc(0x1a7)](_0x4605fa);if(_0x41be01[_0x271dcc(0x2d6)]===0x0)return;const _0x53a0a8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x52dd1e['unitID'],'actions':null,'textRanges':_0x41be01}}],_0x29feb3=this[_0x271dcc(0x327)][_0x271dcc(0x461)](_0x52dd1e,_0x53a0a8);if(!_0x5abc17(_0x29feb3))throw _0x29feb3[_0x271dcc(0x419)];const _0x386482=_0x29feb3[_0x271dcc(0x349)][0x0][_0x271dcc(0x3ef)][_0x271dcc(0x279)];Array[_0x271dcc(0x150)](_0x386482)&&_0x386482[_0x271dcc(0x2d6)]&&_0x91a058['replaceTextRanges'](_0x386482,!0x1);}};Je=Hn([Zt(0x0,_0x61a763(_0x2e9f94)),Zt(0x1,_0x1215ee)],Je);function Ns(_0x202aee){const _0x39f7d1=_0x1f5a54;let _0x350a44='';for(const _0x3e8357 of _0x202aee){const {startOffset:_0x23ca6f,endOffset:_0x5e61d2,isActive:_0x3f6281}=_0x3e8357;_0x350a44[_0x39f7d1(0x2d6)]&&(_0x350a44+=','),_0x350a44+=_0x23ca6f+':'+_0x5e61d2+':'+(_0x3f6281?'1':'0');}return _0x350a44;}function xn(_0x490d2e){const _0x3c5062=_0x1f5a54,_0x4ccd08=_0x490d2e[_0x3c5062(0x335)](','),_0x30eeff=[];for(const _0x2cb035 of _0x4ccd08){const [_0x5b3b17,_0x37c8e0,_0x2a7314]=_0x2cb035[_0x3c5062(0x335)](':');_0x30eeff[_0x3c5062(0x310)]({'startOffset':Number(_0x5b3b17),'endOffset':Number(_0x37c8e0),'collapsed':_0x5b3b17===_0x37c8e0,'isActive':_0x2a7314==='1'});}return _0x30eeff[_0x3c5062(0x41b)](_0x30e03c=>_0x30e03c[_0x3c5062(0x1a5)])||(_0x30eeff[0x0]['isActive']=!0x0),_0x30eeff;}class Ut extends _0x5915f1{constructor(){const _0x26be49=_0x1f5a54;super(...arguments),l(this,_0x26be49(0x2c1),new _0x24a55e(null)),l(this,_0x26be49(0x155),this[_0x26be49(0x2c1)][_0x26be49(0x26b)]());}['syncEditingCollabCursor'](_0x44bc3d){const _0x39c604=_0x1f5a54,{unitID:_0x862d55,memberID:_0x58f24e,textRanges:_0x393036}=_0x44bc3d,_0x188bf1=Ns(_0x393036),_0x221fa2={'unitID':_0x862d55,'memberID':_0x58f24e,'selection':_0x188bf1};this[_0x39c604(0x2c1)][_0x39c604(0x39b)](_0x221fa2);}}var Fn=Object[_0x1f5a54(0x29f)],Vn=Object[_0x1f5a54(0x3cc)],kn=(_0x39604c,_0x4008d6,_0x2e9ecc,_0x63b972)=>{const _0x23ddf5=_0x1f5a54;for(var _0x5b0a42=_0x63b972>0x1?void 0x0:_0x63b972?Vn(_0x4008d6,_0x2e9ecc):_0x4008d6,_0x4f2348=_0x39604c[_0x23ddf5(0x2d6)]-0x1,_0x5cf17f;_0x4f2348>=0x0;_0x4f2348--)(_0x5cf17f=_0x39604c[_0x4f2348])&&(_0x5b0a42=(_0x63b972?_0x5cf17f(_0x4008d6,_0x2e9ecc,_0x5b0a42):_0x5cf17f(_0x5b0a42))||_0x5b0a42);return _0x63b972&&_0x5b0a42&&Fn(_0x4008d6,_0x2e9ecc,_0x5b0a42),_0x5b0a42;},Qt=(_0x58535e,_0xa5a342)=>(_0x151146,_0x412d50)=>_0xa5a342(_0x151146,_0x412d50,_0x58535e);function Bn(_0x1da9bc){const _0xd3581=_0x1f5a54,{unitID:_0x350ea3,mutations:_0x4975dd}=_0x1da9bc;return{'unitId':_0x350ea3,'subUnitId':_0x4975dd[0x0][_0xd3581(0x3ef)][_0xd3581(0x199)]};}let qe=class{constructor(_0x2a1441,_0x6a8353){const _0x910728=_0x1f5a54;this[_0x910728(0x3db)]=_0x2a1441,this[_0x910728(0x327)]=_0x6a8353;}[_0x1f5a54(0x234)](_0x433b8e){const _0x55f8f2=_0x1f5a54;var _0xfb446,_0x4c614a,_0x59bce2;const _0x51be90=this[_0x55f8f2(0x3db)]['get'](_0x5914fd),{unitId:_0xa620f,subUnitId:_0x13b917}=Bn(_0x433b8e),_0x5e04e4=_0x51be90[_0x55f8f2(0x2df)](_0xa620f)[_0x55f8f2(0x208)]();if(_0x5e04e4[_0x55f8f2(0x2d6)]===0x0||!_0xa620f||!_0x13b917)return;const _0x2c41bd=[{'id':_0x109738['id'],'params':{'unitId':_0xa620f,'subUnitId':_0x13b917,'selections':_0x4b796f[_0x55f8f2(0x1e6)](_0x5e04e4)}}],_0x474b09=this[_0x55f8f2(0x327)][_0x55f8f2(0x461)](_0x433b8e,_0x2c41bd);if(!_0x5abc17(_0x474b09))throw _0x474b09[_0x55f8f2(0x419)];const _0x20bbba=(_0x59bce2=(_0x4c614a=(_0xfb446=_0x474b09[_0x55f8f2(0x349)][0x0])==null?void 0x0:_0xfb446[_0x55f8f2(0x3ef)])==null?void 0x0:_0x4c614a[_0x55f8f2(0x2ab)])!=null?_0x59bce2:_0x5e04e4;Array[_0x55f8f2(0x150)](_0x20bbba)&&_0x20bbba['length']&&this['_injector'][_0x55f8f2(0x393)](_0x257ce4)[_0x55f8f2(0x2b2)](_0x109738['id'],{'unitId':_0xa620f,'subUnitId':_0x13b917,'selections':_0x20bbba});}};qe=kn([Qt(0x0,_0x61a763(_0x2e9f94)),Qt(0x1,_0x1215ee)],qe);const Wn=new Set([_0x54cc2b['id']]);function Gn(_0x15544c,_0xd398bc,_0x5d872c,_0x12ff5b,_0x5243d8){const _0x436cc9=_0x1f5a54;var _0x4449db,_0x37803b,_0x2d0250,_0x240877;const _0x2c3162=[];for(const _0x229160 of _0x15544c)if(Wn[_0x436cc9(0x1d8)](_0x229160['id'])){if(_0x2c3162[_0x436cc9(0x2d6)]>0x0)break;_0x2c3162[_0x436cc9(0x310)](_0x229160);break;}else _0x2c3162[_0x436cc9(0x310)](_0x229160);const _0x1ad832=(_0x37803b=(_0x4449db=_0x5243d8['getCurrentUser']())==null?void 0x0:_0x4449db[_0x436cc9(0x3a4)])!=null?_0x37803b:'unknown',_0x3aa332=(_0x240877=(_0x2d0250=_0x5243d8[_0x436cc9(0x1c4)]())==null?void 0x0:_0x2d0250[_0x436cc9(0x2f0)])!=null?_0x240877:_0x436cc9(0x169);return{'changeset':{'unitID':_0xd398bc,'type':_0x2c9cce(_0x5d872c['getUnitType'](_0xd398bc)),'baseRev':_0x12ff5b[_0x436cc9(0x236)](_0xd398bc),'revision':0x0,'userID':_0x1ad832,'memberID':_0x3aa332,'mutations':_0x2c3162},'pendingMutations':_0x15544c[_0x436cc9(0x19c)](_0x2c3162[_0x436cc9(0x2d6)])};}function Yn(_0x2bb260,_0x609f9e,_0x3a3b30,_0x2e7ccb,_0x552775){const _0x542d1e=_0x1f5a54;var _0x38237d,_0x1a877a,_0x242fba,_0x5a0f41;const _0x92ea01=[_0x2bb260['reduce']((_0x594bb9,_0x3a2f33)=>{const _0x576015=_0x2f7f;var _0x25594b;const {id:_0x2f4ead}=_0x594bb9,{id:_0x1aa3f3,type:_0x7af5a7}=_0x3a2f33,_0x7f2c61=(_0x25594b=_0x594bb9[_0x576015(0x3ef)])!=null?_0x25594b:{'actions':null},_0x39afa7=_0x3a2f33['params'];if(_0x2f4ead&&_0x2f4ead!==_0x1aa3f3)throw new Error(_0x576015(0x3c6)+_0x2f4ead+_0x576015(0x3cf)+_0x1aa3f3+'.');return{..._0x594bb9,'id':_0x1aa3f3,'type':_0x7af5a7,'params':{'unitId':_0x39afa7[_0x576015(0x3f8)],'textRanges':_0x39afa7[_0x576015(0x279)],'actions':_0x13a804[_0x576015(0x365)](_0x7f2c61[_0x576015(0x1b1)],_0x39afa7['actions'])}};},{})],_0x4dfabc=(_0x1a877a=(_0x38237d=_0x552775[_0x542d1e(0x1c4)]())==null?void 0x0:_0x38237d[_0x542d1e(0x3a4)])!=null?_0x1a877a:'unknown',_0x132be7=(_0x5a0f41=(_0x242fba=_0x552775[_0x542d1e(0x1c4)]())==null?void 0x0:_0x242fba[_0x542d1e(0x2f0)])!=null?_0x5a0f41:_0x542d1e(0x169);return{'changeset':{'unitID':_0x609f9e,'type':_0x2c9cce(_0x3a3b30[_0x542d1e(0x456)](_0x609f9e)),'baseRev':_0x2e7ccb[_0x542d1e(0x236)](_0x609f9e),'revision':0x0,'userID':_0x4dfabc,'memberID':_0x132be7,'mutations':_0x92ea01},'pendingMutations':[]};}var Kn=Object[_0x1f5a54(0x29f)],Xn=Object[_0x1f5a54(0x3cc)],oe=(_0x1b2670,_0x2beb2a,_0x546e96,_0xd5207c)=>{const _0x1d221f=_0x1f5a54;for(var _0x1f9805=_0xd5207c>0x1?void 0x0:_0xd5207c?Xn(_0x2beb2a,_0x546e96):_0x2beb2a,_0x16a8cc=_0x1b2670[_0x1d221f(0x2d6)]-0x1,_0x112405;_0x16a8cc>=0x0;_0x16a8cc--)(_0x112405=_0x1b2670[_0x16a8cc])&&(_0x1f9805=(_0xd5207c?_0x112405(_0x2beb2a,_0x546e96,_0x1f9805):_0x112405(_0x1f9805))||_0x1f9805);return _0xd5207c&&_0x1f9805&&Kn(_0x2beb2a,_0x546e96,_0x1f9805),_0x1f9805;},m=(_0x59c208,_0x1e4a1b)=>(_0x237ac8,_0x501cec)=>_0x1e4a1b(_0x237ac8,_0x501cec,_0x59c208),w=(_0x19f15=>(_0x19f15['NOT_COLLAB']='not_collab',_0x19f15['SYNCED']=_0x1f5a54(0x3c5),_0x19f15[_0x1f5a54(0x3e3)]=_0x1f5a54(0x2e7),_0x19f15[_0x1f5a54(0x45b)]=_0x1f5a54(0x240),_0x19f15[_0x1f5a54(0x224)]=_0x1f5a54(0x3e9),_0x19f15['FETCH_MISS']='fetch_missing',_0x19f15['CONFLICT']=_0x1f5a54(0x338),_0x19f15[_0x1f5a54(0x243)]='offline',_0x19f15))(w||{});class ae{constructor(_0x4f05f4,_0x2709e6,_0x193e3c,_0x589ee0,_0x8e3be5,_0x57a177,_0x378727,_0x5f533f,_0x2ac44e){const _0x45d8ec=_0x1f5a54;l(this,_0x45d8ec(0x177),null),l(this,_0x45d8ec(0x3b3),[]),(this[_0x45d8ec(0x213)]=_0x4f05f4,this[_0x45d8ec(0x400)]=_0x2709e6,this['_handler']=_0x8e3be5,this[_0x45d8ec(0x299)]=_0x57a177,this[_0x45d8ec(0x2c4)]=_0x378727,this[_0x45d8ec(0x459)]=_0x5f533f,this['_localCacheService']=_0x2ac44e,this[_0x45d8ec(0x177)]=_0x193e3c,this['_pendingMutations']=_0x589ee0);}[_0x1f5a54(0x372)](_0x3c0b3b){const _0x3a884a=_0x1f5a54,_0x3d3df3=this[_0x3a884a(0x459)]['getCurrentRevForDocument'](this['unitID']);return _0x3c0b3b['revision']>_0x3d3df3+0x1?(this['_handler']['onMissingChangesets']({'from':_0x3d3df3,'to':_0x3c0b3b[_0x3a884a(0x35c)]-0x1}),!0x0):!0x1;}[_0x1f5a54(0x260)](_0x3db330){const _0x2b6298=_0x1f5a54;this[_0x2b6298(0x2c4)][_0x2b6298(0x25f)](this[_0x2b6298(0x213)],_0x3db330);}[_0x1f5a54(0x191)](_0x34706f){const _0x3cfbc2=_0x1f5a54;var _0x16774f,_0x4df8ea;(_0x4df8ea=(_0x16774f=this[_0x3cfbc2(0x1d7)])[_0x3cfbc2(0x143)])==null||_0x4df8ea[_0x3cfbc2(0x25e)](_0x16774f,_0x34706f);}[_0x1f5a54(0x3ab)](_0xa7996f){const _0x5c2dbc=_0x1f5a54;var _0x33ebf0,_0x34513c;return(_0x34513c=(_0x33ebf0=this['_handler'])['onTransformIME'])==null?void 0x0:_0x34513c[_0x5c2dbc(0x25e)](_0x33ebf0,_0xa7996f);}[_0x1f5a54(0x2b5)](_0x20b6ee){const _0x185967=_0x1f5a54;var _0x4c6516,_0x4b40a4,_0x585f8c;return(_0x585f8c=(_0x4b40a4=(_0x4c6516=this['_handler'])[_0x185967(0x19f)])==null?void 0x0:_0x4b40a4[_0x185967(0x25e)](_0x4c6516,_0x20b6ee))!=null?_0x585f8c:_0x20b6ee;}[_0x1f5a54(0x17e)](_0x12412c){const _0x4c45be=_0x1f5a54;var _0x4ab8b7,_0x556c75;if(this['type']===H['UNIVER_DOC']){const {unitID:_0x10973a,mutations:_0x41f009,memberID:_0x321b10}=_0x12412c,_0x33f051=_0x41f009[0x0][_0x4c45be(0x3ef)][_0x4c45be(0x279)];Array[_0x4c45be(0x150)](_0x33f051)&&_0x33f051[_0x4c45be(0x2d6)]>0x0&&((_0x556c75=(_0x4ab8b7=this[_0x4c45be(0x1d7)])[_0x4c45be(0x32c)])==null||_0x556c75[_0x4c45be(0x25e)](_0x4ab8b7,{'unitID':_0x10973a,'memberID':_0x321b10,'textRanges':_0x33f051}));}}['_updateLocalCache'](){const _0x1375fb=_0x1f5a54;this[_0x1375fb(0x24c)][_0x1375fb(0x16f)](this[_0x1375fb(0x213)],this[_0x1375fb(0x400)],this[_0x1375fb(0x177)],this[_0x1375fb(0x3b3)]);}['_getCurrentRevision'](){const _0x3cc161=_0x1f5a54;return this[_0x3cc161(0x459)][_0x3cc161(0x236)](this[_0x3cc161(0x213)]);}[_0x1f5a54(0x3f5)](){const _0x47a26e=_0x1f5a54;this[_0x47a26e(0x459)]['incrementRevForDocument'](this[_0x47a26e(0x213)]);}[_0x1f5a54(0x3d3)](_0x5ad52d){const _0x33e388=_0x1f5a54;var _0x2aa02d;const _0x1ea081=this['_transformRemoteChangesetByIMECache'](_0x5ad52d),_0x23a4f3=_0x337b1e(_0x1ea081[_0x33e388(0x466)],this['_commandService'],{'fromCollab':!0x0});if(!_0x23a4f3[_0x33e388(0x2b3)])throw _0x23a4f3[_0x33e388(0x419)]instanceof Error?_0x23a4f3[_0x33e388(0x419)]:new Error((_0x2aa02d=_0x23a4f3['error'])!=null?_0x2aa02d:_0x33e388(0x451));this[_0x33e388(0x3ab)](_0x1ea081),this['_transformUndoredo'](_0x5ad52d),this[_0x33e388(0x191)](_0x1ea081),this[_0x33e388(0x17e)](_0x1ea081),this[_0x33e388(0x3f5)]();}}let Ne=class extends ae{constructor(_0x4873bf,_0x8417e0,_0x4658d0,_0xe10f5b,_0x58b0c4,_0x1039bd,_0x41bf27,_0x5a357b,_0x343e5a){const _0x400a51=_0x1f5a54;super(_0x4873bf,_0x8417e0,null,[],_0x4658d0,_0x5a357b,_0x41bf27,_0xe10f5b,_0x58b0c4),l(this,_0x400a51(0x453),_0x400a51(0x3c5)),(this[_0x400a51(0x3db)]=_0x1039bd,this[_0x400a51(0x308)]=_0x343e5a);}[_0x1f5a54(0x2c9)](_0x1bc4b0){const _0x1f30f3=_0x1f5a54,_0x13c91c=this['_injector'][_0x1f30f3(0x145)](B,this['unitID'],this['type'],[_0x1bc4b0],this[_0x1f30f3(0x1d7)]);return _0x13c91c[_0x1f30f3(0x467)](),_0x13c91c['_updateLocalCache'](),_0x13c91c;}['onRemoteChangeset'](_0x2047d3){const _0x61f0f9=_0x1f5a54;if(this['_checkMissing'](_0x2047d3))return this[_0x61f0f9(0x3db)][_0x61f0f9(0x145)](G,this[_0x61f0f9(0x213)],this[_0x61f0f9(0x400)],null,[],null,[_0x2047d3],this['_handler']);try{return this[_0x61f0f9(0x3d3)](_0x2047d3),this;}catch(_0x454ca9){return this[_0x61f0f9(0x308)][_0x61f0f9(0x419)](_0x61f0f9(0x1f4),_0x454ca9),this;}}[_0x1f5a54(0x23f)](){const _0x29ca02=_0x1f5a54;throw new Error(_0x29ca02(0x40b));}[_0x1f5a54(0x18a)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x1f5a54(0x43d)](){const _0x34b3ed=_0x1f5a54;return this[_0x34b3ed(0x3db)][_0x34b3ed(0x145)](z,this['unitID'],this['type'],null,[],this[_0x34b3ed(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}['resend'](){const _0x47af39=_0x1f5a54;throw new Error(_0x47af39(0x383));}};Ne=oe([m(0x3,_0x61a763(_0x2fc807)),m(0x4,_0x61a763(D)),m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x4e4a39),m(0x7,_0x257ce4),m(0x8,_0x3e33de)],Ne);let B=class extends ae{constructor(_0x16f8ef,_0x165d6e,_0x52b2cb,_0x49e0e5,_0x445d50,_0x32608e,_0x59b45f,_0x564a25,_0x459e90,_0x2305ff,_0x412a6b,_0x3005c3,_0x58657a,_0x4b9b3f){const _0x4eaa56=_0x1f5a54;super(_0x16f8ef,_0x165d6e,null,_0x52b2cb,_0x49e0e5,_0x2305ff,_0x4b9b3f,_0x32608e,_0x59b45f),l(this,_0x4eaa56(0x453),_0x4eaa56(0x2e7)),l(this,_0x4eaa56(0x430),null),l(this,_0x4eaa56(0x2fe),null),(this[_0x4eaa56(0x3db)]=_0x445d50,this[_0x4eaa56(0x2a0)]=_0x564a25,this[_0x4eaa56(0x308)]=_0x459e90,this[_0x4eaa56(0x20c)]=_0x412a6b,this[_0x4eaa56(0x327)]=_0x3005c3,this[_0x4eaa56(0x357)]=_0x58657a);}[_0x1f5a54(0x2c9)](_0x24cc60){const _0x4126d8=_0x1f5a54;return this[_0x4126d8(0x3b3)][_0x4126d8(0x310)](_0x24cc60),this[_0x4126d8(0x2a7)](),this;}[_0x1f5a54(0x201)](_0x18a1f3){const _0x5e7df7=_0x1f5a54;if(this[_0x5e7df7(0x372)](_0x18a1f3))return this['_clearScheduledTask'](),this['_injector'][_0x5e7df7(0x145)](G,this['unitID'],this[_0x5e7df7(0x400)],null,this[_0x5e7df7(0x3b3)],null,[_0x18a1f3],this[_0x5e7df7(0x1d7)]);try{const _0x3b5adb=this[_0x5e7df7(0x327)][_0x5e7df7(0x461)](_0x18a1f3,this[_0x5e7df7(0x3b3)]);if(_0x5abc17(_0x3b5adb)){const {c1Prime:_0x45fd05,m2Prime:_0x3a8741}=_0x3b5adb;this['_executeRemoteChangeset'](_0x45fd05);const _0x16732f=this[_0x5e7df7(0x3db)]['createInstance'](B,this[_0x5e7df7(0x213)],this[_0x5e7df7(0x400)],_0x3a8741,this[_0x5e7df7(0x1d7)]);return this['_clearScheduledTask'](),_0x16732f[_0x5e7df7(0x467)](this[_0x5e7df7(0x430)]?Math[_0x5e7df7(0x44a)](0x0,new Date()[_0x5e7df7(0x3a2)]()-this['_scheduleTimestamp']):this[_0x5e7df7(0x3fe)]()),_0x16732f;}throw _0x3b5adb['error'];}catch(_0xcd9758){return this['_logService'][_0x5e7df7(0x419)](_0xcd9758),this['_onConflict'](!0x1);}}[_0x1f5a54(0x23f)](){const _0x180a9c=_0x1f5a54;throw new Error(_0x180a9c(0x23a));}[_0x1f5a54(0x18a)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x1f5a54(0x43d)](){const _0x2de995=_0x1f5a54;return this[_0x2de995(0x22b)](),this[_0x2de995(0x3db)][_0x2de995(0x145)](z,this[_0x2de995(0x213)],this['type'],null,this[_0x2de995(0x3b3)],this[_0x2de995(0x1d7)]);}['toggleOnline'](){return this;}[_0x1f5a54(0x467)](_0x55a225){const _0x5daabd=_0x1f5a54;_0x55a225=_0x55a225!=null?_0x55a225:this['_getSendChangesetTimeout'](),this[_0x5daabd(0x430)]=new Date()[_0x5daabd(0x3a2)](),this[_0x5daabd(0x2fe)]=setTimeout(()=>{const _0x7ffea5=_0x5daabd;this[_0x7ffea5(0x22b)]();let _0x3977cb=null;switch(this[_0x7ffea5(0x400)]){case H[_0x7ffea5(0x320)]:{_0x3977cb=Gn(this[_0x7ffea5(0x3b3)],this[_0x7ffea5(0x213)],this[_0x7ffea5(0x357)],this[_0x7ffea5(0x459)],this['_memberService']);break;}case H[_0x7ffea5(0x315)]:{_0x3977cb=Yn(this[_0x7ffea5(0x3b3)],this[_0x7ffea5(0x213)],this[_0x7ffea5(0x357)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x7ffea5(0x3bf)+this[_0x7ffea5(0x400)]+'\x20in\x20_schedule.');}const {changeset:_0x310f95,pendingMutations:_0x16fa69}=_0x3977cb;this['_handler'][_0x7ffea5(0x1eb)](_0x310f95);const _0x5b8e88=_0x16fa69[_0x7ffea5(0x2d6)]?this[_0x7ffea5(0x3db)]['createInstance'](W,this[_0x7ffea5(0x213)],this['type'],_0x310f95,_0x16fa69,this['_handler']):this['_injector'][_0x7ffea5(0x145)](q,this[_0x7ffea5(0x213)],this[_0x7ffea5(0x400)],_0x310f95,this['_handler']);_0x5b8e88[_0x7ffea5(0x2a7)](),this[_0x7ffea5(0x1d7)][_0x7ffea5(0x218)](this,_0x5b8e88);},_0x55a225);}[_0x1f5a54(0x3fe)](){const _0x3c83e0=_0x1f5a54;var _0x3a394b;return(_0x3a394b=this[_0x3c83e0(0x20c)][_0x3c83e0(0x19e)](en))!=null?_0x3a394b:tn;}[_0x1f5a54(0x392)](){const _0x5513f2=_0x1f5a54;throw new Error(_0x5513f2(0x323));}[_0x1f5a54(0x22b)](){const _0x2953a6=_0x1f5a54;this[_0x2953a6(0x2fe)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2953a6(0x2fe)]=null);}[_0x1f5a54(0x2aa)](_0x2fa35d){const _0x23d5c8=_0x1f5a54;return this['_clearScheduledTask'](),this[_0x23d5c8(0x3db)]['createInstance'](re,this[_0x23d5c8(0x213)],this[_0x23d5c8(0x400)],null,this[_0x23d5c8(0x3b3)],this['_handler'],_0x2fa35d);}};B=oe([m(0x4,_0x61a763(_0x2e9f94)),m(0x5,_0x61a763(_0x2fc807)),m(0x6,_0x61a763(D)),m(0x7,_0x61a763(ne)),m(0x8,_0x3e33de),m(0x9,_0x257ce4),m(0xa,_0x43c997),m(0xb,_0x1215ee),m(0xc,_0x55bd21),m(0xd,_0x4e4a39)],B);let q=class extends ae{constructor(_0x1cfbfd,_0x1ecc2b,_0xc98fe,_0x4dfd1f,_0x2b2334,_0x28a80f,_0x5c4b1d,_0x279936,_0x304e7f,_0x3c6c09,_0x5626d2){const _0x1a449b=_0x1f5a54;super(_0x1cfbfd,_0x1ecc2b,_0xc98fe,[],_0x4dfd1f,_0x279936,_0x5626d2,_0x28a80f,_0x5c4b1d),l(this,_0x1a449b(0x453),'awaiting'),(this[_0x1a449b(0x3db)]=_0x2b2334,this[_0x1a449b(0x308)]=_0x304e7f,this[_0x1a449b(0x327)]=_0x3c6c09);}['appendMutation'](_0xa4a829){const _0x15f6d0=_0x1f5a54,_0x4a9ac0=this[_0x15f6d0(0x3db)]['createInstance'](W,this[_0x15f6d0(0x213)],this[_0x15f6d0(0x400)],this[_0x15f6d0(0x177)],[_0xa4a829],this[_0x15f6d0(0x1d7)]);return _0x4a9ac0[_0x15f6d0(0x2a7)](),_0x4a9ac0;}[_0x1f5a54(0x201)](_0x3555e0){const _0x53c728=_0x1f5a54;if(this[_0x53c728(0x372)](_0x3555e0))return this[_0x53c728(0x3db)]['createInstance'](G,this[_0x53c728(0x213)],this[_0x53c728(0x400)],this[_0x53c728(0x177)],[],null,[_0x3555e0],this[_0x53c728(0x1d7)]);try{const _0x53a1e8=this['_transformService'][_0x53c728(0x3d4)]([_0x3555e0],[this[_0x53c728(0x177)]],!0x1);if(_0x29a147(_0x53a1e8)){const {c1Prime:_0x92845e,c2Prime:_0x54f8f9}=_0x53a1e8;this['_executeRemoteChangeset'](_0x92845e[0x0]),_0x54f8f9[0x0][_0x53c728(0x3eb)]=this[_0x53c728(0x462)]();const _0x268878=this[_0x53c728(0x3db)]['createInstance'](q,this[_0x53c728(0x213)],this[_0x53c728(0x400)],_0x54f8f9[0x0],this[_0x53c728(0x1d7)]);return _0x268878['_updateLocalCache'](),_0x268878;}return this[_0x53c728(0x2aa)](!0x1);}catch(_0x5aa5b3){return this[_0x53c728(0x308)][_0x53c728(0x419)](_0x5aa5b3),this[_0x53c728(0x2aa)](!0x1);}}['onRemoteAck'](_0x4209de){const _0x225342=_0x1f5a54,_0x173eed=this[_0x225342(0x459)]['getCurrentRevForDocument'](this[_0x225342(0x213)]);if(_0x4209de['revision']<_0x173eed-0x1)return this;if(this['_checkMissing'](_0x4209de))return this['_injector'][_0x225342(0x145)](G,this[_0x225342(0x213)],this['type'],null,[],this[_0x225342(0x177)],[],this[_0x225342(0x1d7)]);this[_0x225342(0x3f5)]();const _0x51878d=this[_0x225342(0x3db)][_0x225342(0x145)](Ne,this['unitID'],this[_0x225342(0x400)],this[_0x225342(0x1d7)]);return _0x51878d[_0x225342(0x2a7)](),_0x51878d;}['onRemoteRej'](_0x252952){const _0x1a562f=_0x1f5a54;return this[_0x1a562f(0x2aa)](!!(_0x252952!=null&&_0x252952[_0x1a562f(0x362)]));}[_0x1f5a54(0x43d)](){const _0x52b459=_0x1f5a54;return this['_injector'][_0x52b459(0x145)](z,this[_0x52b459(0x213)],this[_0x52b459(0x400)],this['_awaitingChangeset'],[],this[_0x52b459(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x4edb0c=_0x1f5a54;this[_0x4edb0c(0x1d7)][_0x4edb0c(0x1eb)](this[_0x4edb0c(0x177)]);}['_onConflict'](_0x3c55e3){const _0xc6fece=_0x1f5a54;return this[_0xc6fece(0x3db)]['createInstance'](re,this[_0xc6fece(0x213)],this[_0xc6fece(0x400)],this[_0xc6fece(0x177)],[],this['_handler'],_0x3c55e3);}};q=oe([m(0x4,_0x61a763(_0x2e9f94)),m(0x5,_0x61a763(_0x2fc807)),m(0x6,_0x61a763(D)),m(0x7,_0x257ce4),m(0x8,_0x3e33de),m(0x9,_0x1215ee),m(0xa,_0x4e4a39)],q);let W=class extends ae{constructor(_0xe39aa9,_0x10393e,_0xe4590e,_0x1f6a42,_0x261a1e,_0x4945b9,_0x18d19b,_0x156829,_0x5c9a68,_0x4f5ca6,_0x1e8104,_0x30c227){const _0x53d3f8=_0x1f5a54;super(_0xe39aa9,_0x10393e,_0xe4590e,_0x1f6a42,_0x261a1e,_0x5c9a68,_0x30c227,_0x18d19b,_0x156829),l(this,'status',_0x53d3f8(0x3e9)),(this[_0x53d3f8(0x3db)]=_0x4945b9,this[_0x53d3f8(0x308)]=_0x4f5ca6,this[_0x53d3f8(0x327)]=_0x1e8104);}[_0x1f5a54(0x2c9)](_0x1e6d7f){const _0x1f46a1=_0x1f5a54;return this['_pendingMutations'][_0x1f46a1(0x310)](_0x1e6d7f),this;}[_0x1f5a54(0x201)](_0x5a2f5c){const _0x1a8915=_0x1f5a54;if(this[_0x1a8915(0x372)](_0x5a2f5c))return this[_0x1a8915(0x3db)][_0x1a8915(0x145)](G,this[_0x1a8915(0x213)],this[_0x1a8915(0x400)],this[_0x1a8915(0x177)],this[_0x1a8915(0x3b3)],null,[_0x5a2f5c],this[_0x1a8915(0x1d7)]);try{const _0x5ea763=this[_0x1a8915(0x327)]['transformChangesets']([_0x5a2f5c],[this['_awaitingChangeset']],!0x1);if(_0x29a147(_0x5ea763)){const {c1Prime:_0x51d405,c2Prime:_0x5d9a69}=_0x5ea763,_0x506b6b=this[_0x1a8915(0x327)][_0x1a8915(0x461)](_0x51d405[0x0],this[_0x1a8915(0x3b3)]);if(_0x5abc17(_0x506b6b)){const {c1Prime:_0x55506b,m2Prime:_0x555eb8}=_0x506b6b;return this['_executeRemoteChangeset'](_0x55506b),_0x5d9a69[0x0][_0x1a8915(0x3eb)]=this['_getCurrentRevision'](),this[_0x1a8915(0x3db)][_0x1a8915(0x145)](W,this['unitID'],this[_0x1a8915(0x400)],_0x5d9a69[0x0],_0x555eb8,this[_0x1a8915(0x1d7)]);}throw _0x506b6b[_0x1a8915(0x419)];}throw _0x5ea763[_0x1a8915(0x419)];}catch(_0x3ef417){return this[_0x1a8915(0x308)]['error'](_0x3ef417),this[_0x1a8915(0x2aa)](!0x1);}}[_0x1f5a54(0x23f)](_0x38c656){const _0x36b4d3=_0x1f5a54;if(this[_0x36b4d3(0x372)](_0x38c656))return this['_injector'][_0x36b4d3(0x145)](G,this[_0x36b4d3(0x213)],this[_0x36b4d3(0x400)],null,this[_0x36b4d3(0x3b3)],this[_0x36b4d3(0x177)],[],this[_0x36b4d3(0x1d7)]);this['_incrementRevisionNumber']();const _0x349ec5=this[_0x36b4d3(0x3db)][_0x36b4d3(0x145)](B,this['unitID'],this[_0x36b4d3(0x400)],this['_pendingMutations'],this[_0x36b4d3(0x1d7)]);return _0x349ec5[_0x36b4d3(0x467)](),_0x349ec5[_0x36b4d3(0x2a7)](),_0x349ec5;}[_0x1f5a54(0x18a)](_0x23862b){const _0x4222f6=_0x1f5a54;return this[_0x4222f6(0x2aa)](!!(_0x23862b!=null&&_0x23862b[_0x4222f6(0x362)]));}[_0x1f5a54(0x43d)](){const _0x31df21=_0x1f5a54;return this[_0x31df21(0x3db)][_0x31df21(0x145)](z,this['unitID'],this[_0x31df21(0x400)],this[_0x31df21(0x177)],this['_pendingMutations'],this[_0x31df21(0x1d7)]);}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x4c5d89=_0x1f5a54;this[_0x4c5d89(0x1d7)][_0x4c5d89(0x1eb)](this[_0x4c5d89(0x177)]);}[_0x1f5a54(0x2aa)](_0x403251){const _0x4f3e4c=_0x1f5a54;return this[_0x4f3e4c(0x3db)][_0x4f3e4c(0x145)](re,this[_0x4f3e4c(0x213)],this[_0x4f3e4c(0x400)],null,this['_pendingMutations'],this[_0x4f3e4c(0x1d7)],_0x403251);}};W=oe([m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x61a763(_0x2fc807)),m(0x7,_0x61a763(D)),m(0x8,_0x257ce4),m(0x9,_0x3e33de),m(0xa,_0x1215ee),m(0xb,_0x4e4a39)],W);let re=class extends ae{constructor(_0x2da707,_0x3d109b,_0x53f1b9,_0x3508bf,_0x5bb67b,_0xfbb11=!0x1,_0x3d0a7c,_0x14116f,_0x24c0ac,_0x5d0ee5,_0x2bcb5a,_0x574621,_0x1fed9f){const _0x53459a=_0x1f5a54;super(_0x2da707,_0x3d109b,_0x53f1b9,_0x3508bf,_0x5bb67b,_0x14116f,_0x24c0ac,_0x2bcb5a,_0x5d0ee5),l(this,_0x53459a(0x453),'conflict'),(this[_0x53459a(0x1a0)]=_0xfbb11,this['_permissionService']=_0x3d0a7c,this['_localeService']=_0x574621,this[_0x53459a(0x2e8)]=_0x1fed9f,this[_0x53459a(0x329)](),this['_clearLocalCache'](),this[_0x53459a(0x375)]());}[_0x1f5a54(0x2c9)](){return this;}[_0x1f5a54(0x201)](){return this;}['onRemoteAck'](){return this;}[_0x1f5a54(0x18a)](){return this;}[_0x1f5a54(0x43d)](){return this;}[_0x1f5a54(0x21f)](){return this;}[_0x1f5a54(0x392)](){const _0x398d5f=_0x1f5a54;throw new Error(_0x398d5f(0x28c));}[_0x1f5a54(0x3d7)](){const _0x43015e=_0x1f5a54;this['_localCacheService'][_0x43015e(0x16f)](this['unitID'],this[_0x43015e(0x400)],null,[]);}[_0x1f5a54(0x329)](){const _0x396793=_0x1f5a54;this[_0x396793(0x1a0)]?this[_0x396793(0x2e8)][_0x396793(0x43a)]({'title':this['_localeService']['t'](_0x396793(0x231)),'content':this[_0x396793(0x3a6)]['t']('permission.content'),'type':_0x396793(0x419),'duration':0x0}):this['_notificationService'][_0x396793(0x43a)]({'title':this[_0x396793(0x3a6)]['t'](_0x396793(0x181)),'content':this[_0x396793(0x3a6)]['t'](_0x396793(0x2e3)),'type':_0x396793(0x419),'duration':0x0});}[_0x1f5a54(0x375)](){const _0x500eee=_0x1f5a54;this[_0x500eee(0x1ba)]['updatePermissionPoint'](new _0x278a53(this[_0x500eee(0x213)])['id'],!0x1);}};re=oe([m(0x6,_0x61a763(_0x1721b0)),m(0x7,_0x257ce4),m(0x8,_0x4e4a39),m(0x9,_0x61a763(D)),m(0xa,_0x61a763(_0x2fc807)),m(0xb,_0x61a763(_0x4eec6f)),m(0xc,_0x1d0f07)],re);let z=class extends ae{constructor(_0x2c01e4,_0x5db69d,_0x2c558c,_0x31b641,_0x4f0613,_0xa22eb1,_0x204cab,_0x5de8bb,_0x254a6c,_0x165c83){const _0x53f591=_0x1f5a54;super(_0x2c01e4,_0x5db69d,_0x2c558c,_0x31b641,_0x4f0613,_0x254a6c,_0x165c83,_0x204cab,_0x5de8bb),l(this,_0x53f591(0x453),_0x53f591(0x2c8)),this[_0x53f591(0x3db)]=_0xa22eb1;}[_0x1f5a54(0x2c9)](_0x32169a){const _0x33cc6b=_0x1f5a54;return this[_0x33cc6b(0x3b3)][_0x33cc6b(0x310)](_0x32169a),this[_0x33cc6b(0x2a7)](),this;}[_0x1f5a54(0x201)](_0x40b61a){const _0x2ba2c4=_0x1f5a54;throw new Error(_0x2ba2c4(0x27d));}['onRemoteAck'](){const _0x23c38b=_0x1f5a54;throw new Error(_0x23c38b(0x19a));}['onRemoteRej'](){const _0x280a42=_0x1f5a54;throw new Error(_0x280a42(0x2d1));}['toggleOffline'](){return this;}[_0x1f5a54(0x21f)](){const _0x1c77d1=_0x1f5a54,{_injector:_0x59f4c5,_pendingMutations:_0x5338f7,_awaitingChangeset:_0x5a0216,unitID:_0x3ca979,_handler:_0x20c1a2,type:_0x177ea0}=this,_0x579c2d=Ms(_0x59f4c5,_0x3ca979,_0x177ea0,_0x5a0216,_0x5338f7,_0x20c1a2);return _0x579c2d instanceof B?_0x579c2d[_0x1c77d1(0x467)]():(_0x579c2d instanceof W||_0x579c2d instanceof q)&&_0x579c2d[_0x1c77d1(0x392)](),_0x579c2d;}[_0x1f5a54(0x392)](){const _0x1e20c7=_0x1f5a54;throw new Error(_0x1e20c7(0x282));}};z=oe([m(0x5,_0x61a763(_0x2e9f94)),m(0x6,_0x61a763(_0x2fc807)),m(0x7,_0x61a763(D)),m(0x8,_0x257ce4),m(0x9,_0x4e4a39)],z);let G=class extends ae{constructor(_0x3ef4a4,_0x5ee2f5,_0xb94c68,_0x4c6191,_0x355080,_0x4a6797,_0x39de29,_0x1f9dca,_0x6c7312,_0x2cc9f3,_0x1187b3,_0x31d929,_0x25628e,_0x1c189b){const _0xdb6c79=_0x1f5a54;super(_0x3ef4a4,_0x5ee2f5,_0xb94c68,_0x4c6191,_0x39de29,_0x31d929,_0x25628e,_0x6c7312,_0x2cc9f3),l(this,_0xdb6c79(0x453),_0xdb6c79(0x1b8)),(this[_0xdb6c79(0x322)]=_0x355080,this[_0xdb6c79(0x1d1)]=_0x4a6797,this[_0xdb6c79(0x3db)]=_0x1f9dca,this[_0xdb6c79(0x308)]=_0x1187b3,this[_0xdb6c79(0x327)]=_0x1c189b);}[_0x1f5a54(0x223)](_0x443310){const _0xdb0d55=_0x1f5a54;try{const _0x48a8f9=[..._0x443310,...this[_0xdb0d55(0x1d1)]],_0x37a856=[this[_0xdb0d55(0x177)]||this[_0xdb0d55(0x322)]][_0xdb0d55(0x434)](_0x29ddad=>!!_0x29ddad);let _0x367c2f,_0x5b0d6d;if(_0x37a856[_0xdb0d55(0x2d6)]){const _0x181d04=this['_transformService']['transformChangesets'](_0x48a8f9,_0x37a856,!0x1);if(!_0x29a147(_0x181d04))throw _0x181d04[_0xdb0d55(0x419)];_0x367c2f=_0x181d04[_0xdb0d55(0x454)],_0x5b0d6d=_0x181d04['c2Prime'];}else _0x367c2f=_0x48a8f9,_0x5b0d6d=[];let _0x219260=this[_0xdb0d55(0x3b3)];_0x367c2f['forEach'](_0x23adc8=>{const _0x8a13c0=_0xdb0d55;let _0x11b063;if(_0x219260[_0x8a13c0(0x2d6)]){const _0x805923=this['_transformService'][_0x8a13c0(0x461)](_0x23adc8,_0x219260);if(!_0x5abc17(_0x805923))throw _0x805923[_0x8a13c0(0x419)];_0x11b063=_0x805923[_0x8a13c0(0x454)],_0x219260=_0x805923[_0x8a13c0(0x349)];}else _0x11b063=_0x23adc8;this[_0x8a13c0(0x3d3)](_0x11b063);}),this[_0xdb0d55(0x322)]&&this[_0xdb0d55(0x3f5)](),this[_0xdb0d55(0x177)]&&_0x5b0d6d['length']&&(_0x5b0d6d[0x0][_0xdb0d55(0x3eb)]=this[_0xdb0d55(0x462)]());let _0x5d38f9;if(this[_0xdb0d55(0x177)]&&_0x219260[_0xdb0d55(0x2d6)]!==0x0)_0x5d38f9=this[_0xdb0d55(0x3db)][_0xdb0d55(0x145)](W,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],_0x5b0d6d[0x0],_0x219260,this[_0xdb0d55(0x1d7)]);else{if(this[_0xdb0d55(0x177)]&&_0x219260[_0xdb0d55(0x2d6)]===0x0)_0x5b0d6d[0x0]['baseRev']=this['_getCurrentRevision'](),_0x5d38f9=this[_0xdb0d55(0x3db)]['createInstance'](q,this[_0xdb0d55(0x213)],this['type'],_0x5b0d6d[0x0],this[_0xdb0d55(0x1d7)]);else{if(_0x219260[_0xdb0d55(0x2d6)]!==0x0){const _0x2cb958=this['_injector'][_0xdb0d55(0x145)](B,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],_0x219260,this[_0xdb0d55(0x1d7)]);_0x2cb958['_schedule'](),_0x5d38f9=_0x2cb958;}else _0x5d38f9=this['_injector']['createInstance'](Ne,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],this[_0xdb0d55(0x1d7)]);}}return _0x5d38f9['_updateLocalCache'](),_0x5d38f9;}catch(_0x3acfb0){return this[_0xdb0d55(0x308)]['error'](_0xdb0d55(0x447),_0xdb0d55(0x2fb),_0x3acfb0),this[_0xdb0d55(0x3db)][_0xdb0d55(0x145)](re,this[_0xdb0d55(0x213)],this[_0xdb0d55(0x400)],this[_0xdb0d55(0x177)],this[_0xdb0d55(0x3b3)],this[_0xdb0d55(0x1d7)],!0x1);}}[_0x1f5a54(0x392)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f5a54(0x2c9)](_0xe55fcd){const _0x4ec695=_0x1f5a54;return this[_0x4ec695(0x3b3)][_0x4ec695(0x310)](_0xe55fcd),this;}['onRemoteChangeset'](_0x350ace){const _0x52e11a=_0x1f5a54;return this[_0x52e11a(0x1d1)]['push'](_0x350ace),this;}[_0x1f5a54(0x23f)](_0x13c200){const _0x1e0e09=_0x1f5a54;if(this[_0x1e0e09(0x177)])return this['_acknowledgedAwaitingChangeset']=this[_0x1e0e09(0x177)],this[_0x1e0e09(0x177)]=null,this;throw new Error(_0x1e0e09(0x176));}[_0x1f5a54(0x18a)](_0x2bad31){const _0x2230d5=_0x1f5a54;return this[_0x2230d5(0x2aa)](!!(_0x2bad31!=null&&_0x2bad31['isPermissionRej']));}[_0x1f5a54(0x43d)](){const _0x2c6538=_0x1f5a54;return this['_injector'][_0x2c6538(0x145)](z,this[_0x2c6538(0x213)],this[_0x2c6538(0x400)],this[_0x2c6538(0x177)],this[_0x2c6538(0x3b3)],this[_0x2c6538(0x1d7)]);}['toggleOnline'](){return this;}['_onConflict'](_0x9172f4){const _0x5b8435=_0x1f5a54;return this[_0x5b8435(0x3db)][_0x5b8435(0x145)](re,this['unitID'],this[_0x5b8435(0x400)],this[_0x5b8435(0x177)],this[_0x5b8435(0x3b3)],this[_0x5b8435(0x1d7)],_0x9172f4);}};G=oe([m(0x7,_0x61a763(_0x2e9f94)),m(0x8,_0x61a763(_0x2fc807)),m(0x9,_0x61a763(D)),m(0xa,_0x3e33de),m(0xb,_0x257ce4),m(0xc,_0x4e4a39),m(0xd,_0x1215ee)],G);function Ms(_0x3c967f,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x57481f,_0x292914){const _0x32420d=_0x1f5a54;return _0x5d35b1&&_0x57481f[_0x32420d(0x2d6)]?_0x3c967f[_0x32420d(0x145)](W,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x57481f,_0x292914):_0x5d35b1?_0x3c967f[_0x32420d(0x145)](q,_0x3e4b13,_0xe2acbf,_0x5d35b1,_0x292914):_0x57481f[_0x32420d(0x2d6)]?_0x3c967f[_0x32420d(0x145)](B,_0x3e4b13,_0xe2acbf,_0x57481f,_0x292914):_0x3c967f[_0x32420d(0x145)](Ne,_0x3e4b13,_0xe2acbf,_0x292914);}var Jn=Object[_0x1f5a54(0x29f)],qn=Object[_0x1f5a54(0x3cc)],tt=(_0x288e80,_0x30f6a8,_0x8976ee,_0x4ccc31)=>{for(var _0x4e18fd=_0x4ccc31>0x1?void 0x0:_0x4ccc31?qn(_0x30f6a8,_0x8976ee):_0x30f6a8,_0x158e0c=_0x288e80['length']-0x1,_0xc83620;_0x158e0c>=0x0;_0x158e0c--)(_0xc83620=_0x288e80[_0x158e0c])&&(_0x4e18fd=(_0x4ccc31?_0xc83620(_0x30f6a8,_0x8976ee,_0x4e18fd):_0xc83620(_0x4e18fd))||_0x4e18fd);return _0x4ccc31&&_0x4e18fd&&Jn(_0x30f6a8,_0x8976ee,_0x4e18fd),_0x4e18fd;},S=(_0x3cdfc1,_0x3d33d1)=>(_0xeffe21,_0x19a995)=>_0x3d33d1(_0xeffe21,_0x19a995,_0x3cdfc1);let De=class extends _0x5915f1{constructor(_0x2cfa7c,_0x53b50a,_0x5cfcd9){const _0x2cc26c=_0x1f5a54;super(),l(this,_0x2cc26c(0x457),new Map()),l(this,_0x2cc26c(0x157),new _0x295019()),(this[_0x2cc26c(0x3db)]=_0x2cfa7c,this['_collabSessionService']=_0x53b50a,this[_0x2cc26c(0x357)]=_0x5cfcd9,this[_0x2cc26c(0x3b6)]());}[_0x1f5a54(0x26e)](){const _0xec9625=_0x1f5a54;super[_0xec9625(0x26e)](),this[_0xec9625(0x457)][_0xec9625(0x37a)](_0x45af75=>_0x45af75[_0xec9625(0x26e)]()),this[_0xec9625(0x457)][_0xec9625(0x2f2)]();}[_0x1f5a54(0x2c5)](_0x4173c2){const _0x2ba28b=_0x1f5a54;var _0x22e1c2;return(_0x22e1c2=this[_0x2ba28b(0x457)]['get'](_0x4173c2))!=null?_0x22e1c2:null;}[_0x1f5a54(0x431)](_0x4439b5){const _0x3ca7d2=_0x1f5a54,_0x362449=this[_0x3ca7d2(0x2c5)](_0x4439b5);return _0x362449?_0x110ce6(_0x362449):this['_entityInit$'][_0x3ca7d2(0x180)](_0x3d131e(_0x4f69a7=>_0x4f69a7['unitID']===_0x4439b5));}[_0x1f5a54(0x3b6)](){const _0x137800=_0x1f5a54;this[_0x137800(0x357)][_0x137800(0x1fb)](_0x5cab0b[_0x137800(0x320)])[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]),_0x29d1e4(0x10))[_0x137800(0x2d9)](async _0x23aeab=>{const _0xf219c=_0x137800,_0x449175=_0x23aeab[_0xf219c(0x2a2)](),_0x1561b1=await this[_0xf219c(0x1b0)](_0x449175,H[_0xf219c(0x320)]);this[_0xf219c(0x457)][_0xf219c(0x22e)](_0x449175,_0x1561b1);}),this[_0x137800(0x357)][_0x137800(0x1fb)](_0x5cab0b['UNIVER_DOC'])[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]),_0x29d1e4(0x10))['pipe'](_0x3d131e(_0x5f327b=>!_0x5f327b[_0x137800(0x2a2)]()[_0x137800(0x41d)]('__')))[_0x137800(0x2d9)](async _0x88e06e=>{const _0x4067c3=_0x137800,_0x3e2c7c=_0x88e06e[_0x4067c3(0x2a2)](),_0x4b8bbb=await this[_0x4067c3(0x1b0)](_0x3e2c7c,H['UNIVER_DOC']);this[_0x4067c3(0x457)][_0x4067c3(0x22e)](_0x3e2c7c,_0x4b8bbb);}),_0x2e3217(this[_0x137800(0x357)][_0x137800(0x303)](_0x5cab0b[_0x137800(0x320)]),this[_0x137800(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x137800(0x315)]))[_0x137800(0x180)](_0x57fb4a(this[_0x137800(0x3cd)]))[_0x137800(0x2d9)](_0x2707a3=>{const _0x5175c0=_0x137800,_0x2285ab=_0x2707a3[_0x5175c0(0x2a2)](),_0x19a9a4=this[_0x5175c0(0x457)][_0x5175c0(0x393)](_0x2285ab);_0x19a9a4&&(_0x19a9a4[_0x5175c0(0x26e)](),this[_0x5175c0(0x457)][_0x5175c0(0x3a5)](_0x2285ab));});}async[_0x1f5a54(0x1b0)](_0x162419,_0x4dbcdd){const _0x41cbc6=_0x1f5a54,_0x32899e=await this['_collabSessionService']['requireSession'](_0x162419),_0x2c0feb=this[_0x41cbc6(0x3db)]['createInstance'](this[_0x41cbc6(0x3c8)](_0x4dbcdd),_0x162419,_0x4dbcdd,_0x32899e);return await _0x2c0feb[_0x41cbc6(0x33e)](),this[_0x41cbc6(0x157)][_0x41cbc6(0x39b)](_0x2c0feb),_0x2c0feb;}[_0x1f5a54(0x3c8)](_0x46adb3){const _0xad3dc8=_0x1f5a54;switch(_0x46adb3){case H[_0xad3dc8(0x315)]:return vt;case H['UNIVER_SHEET']:return pt;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x46adb3);}}};De=tt([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],De),S(0x0,_0x61a763(_0x2e9f94)),S(0x1,_0x61a763(ge)),S(0x2,_0x55bd21)],De);let ze=class extends _0x5915f1{constructor(_0x3079f3,_0x39544b,_0x6011ba,_0x134f77,_0x4b5cab,_0x24c9f4,_0x534b86,_0x2607c7,_0x5d1a21,_0x36ef95,_0x2ce6b1,_0x3d2c43,_0x364307){const _0x7d12a8=_0x1f5a54;super(),l(this,_0x7d12a8(0x20a),new _0x24a55e(null)),l(this,_0x7d12a8(0x3f0),this[_0x7d12a8(0x20a)][_0x7d12a8(0x26b)]()),l(this,'_state'),l(this,_0x7d12a8(0x32a),!0x1),l(this,_0x7d12a8(0x41a),this[_0x7d12a8(0x3f0)]['pipe'](_0x28f321(_0x134b3c=>_0x134b3c?_0x134b3c['status']:w[_0x7d12a8(0x243)]),_0x4a0e36(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x7d12a8(0x3ba),[]),(this[_0x7d12a8(0x213)]=_0x3079f3,this[_0x7d12a8(0x14a)]=_0x39544b,this[_0x7d12a8(0x159)]=_0x6011ba,this[_0x7d12a8(0x3db)]=_0x134f77,this[_0x7d12a8(0x24c)]=_0x4b5cab,this['_compressMutationService']=_0x24c9f4,this[_0x7d12a8(0x3a6)]=_0x534b86,this['_revisionService']=_0x2607c7,this[_0x7d12a8(0x308)]=_0x5d1a21,this['_commandService']=_0x36ef95,this[_0x7d12a8(0x44b)]=_0x2ce6b1,this[_0x7d12a8(0x1ba)]=_0x3d2c43,this[_0x7d12a8(0x244)]=_0x364307);}get[_0x1f5a54(0x173)](){const _0x470ab2=_0x1f5a54;return this[_0x470ab2(0x31f)];}async[_0x1f5a54(0x33e)](){const _0x11c851=_0x1f5a54;if(this[_0x11c851(0x173)])throw new Error(_0x11c851(0x21c));await this[_0x11c851(0x3b6)]();}[_0x1f5a54(0x1b6)](){return this['_collaborationPaused']=!0x0,_0x5d3cf2(()=>{const _0x100132=_0x2f7f;this[_0x100132(0x32a)]=!0x1,this[_0x100132(0x2b0)]();});}[_0x1f5a54(0x3ae)](_0x55584d){const _0x1923e7=_0x1f5a54;this[_0x1923e7(0x31f)]=_0x55584d,this['_state$']['next'](_0x55584d);}async[_0x1f5a54(0x3b6)](){const _0x4a3ee9=_0x1f5a54;var _0x118d23;return this[_0x4a3ee9(0x3ae)](await this[_0x4a3ee9(0x306)]()),this['_singleActiveUnitService']&&((_0x118d23=this[_0x4a3ee9(0x244)])==null||_0x118d23[_0x4a3ee9(0x35d)](this[_0x4a3ee9(0x213)]),this[_0x4a3ee9(0x194)](_0x5d3cf2(this[_0x4a3ee9(0x244)][_0x4a3ee9(0x253)](this['unitID'])[_0x4a3ee9(0x2d9)](_0x57822e=>{const _0x28b564=_0x4a3ee9;this[_0x28b564(0x308)][_0x28b564(0x319)]('[CollaborationEntity]',_0x28b564(0x29c),_0x57822e),_0x57822e===ws[_0x28b564(0x2ef)]?(this[_0x28b564(0x44b)][_0x28b564(0x43a)]({'content':this[_0x28b564(0x3a6)]['t']('collaboration.single-unit.warning'),'type':_0x454b23[_0x28b564(0x17f)]}),this[_0x28b564(0x1ba)]['updatePermissionPoint'](new _0x278a53(this['unitID'])['id'],!0x1)):this[_0x28b564(0x1ba)][_0x28b564(0x2bb)](new _0x278a53(this[_0x28b564(0x213)])['id'],!0x0);})))),this[_0x4a3ee9(0x194)](_0x5d3cf2(this[_0x4a3ee9(0x159)][_0x4a3ee9(0x376)][_0x4a3ee9(0x2d9)](_0x2985c4=>{const _0x55e2cf=_0x4a3ee9;_0x2985c4===de[_0x55e2cf(0x405)]?this['_toggleOnline']():_0x2985c4===de[_0x55e2cf(0x243)]&&this['_toggleOffline']();}))),this['disposeWithMe'](_0x5d3cf2(this[_0x4a3ee9(0x159)][_0x4a3ee9(0x403)]['subscribe'](_0x18194e=>{const _0x1c75a9=_0x4a3ee9;try{switch(_0x18194e[_0x1c75a9(0x2cf)]){case _0x505428[_0x1c75a9(0x2f5)]:{this[_0x1c75a9(0x26c)](_0x13fead(_0x18194e[_0x1c75a9(0x2a5)]));break;}case _0x505428[_0x1c75a9(0x27e)]:{this[_0x1c75a9(0x38f)](_0x18194e[_0x1c75a9(0x2a5)]);break;}case _0x505428['CHANGESET_REJ']:{this[_0x1c75a9(0x3fb)]();break;}case _0x505428[_0x1c75a9(0x421)]:{this[_0x1c75a9(0x226)](_0x18194e[_0x1c75a9(0x2a5)][_0x1c75a9(0x262)][_0x1c75a9(0x1a7)](_0x3352a5=>_0x13fead(_0x3352a5)));break;}case _0x505428['PERMISSION_REJ']:this[_0x1c75a9(0x3fb)]({'isPermissionRej':!0x0});}}catch(_0x1159c3){throw console['error'](_0x1c75a9(0x2d3),_0x1159c3),_0x1159c3;}}))),this[_0x4a3ee9(0x31f)];}[_0x1f5a54(0x2ce)](){const _0x1b7725=_0x1f5a54;this[_0x1b7725(0x21b)]=!0x1;}[_0x1f5a54(0x30d)](){const _0x1951ad=_0x1f5a54;if(this[_0x1951ad(0x21b)])throw new Error(_0x1951ad(0x37f));this[_0x1951ad(0x21b)]=!0x0;}['_onLocalMutation'](_0x339edd){const _0x447a31=_0x1f5a54;this[_0x447a31(0x30d)](),this[_0x447a31(0x3ae)](this[_0x447a31(0x31f)]['appendMutation'](_0x339edd)),this[_0x447a31(0x2ce)]();}[_0x1f5a54(0x26c)](_0x1922ea){const _0xe32fa4=_0x1f5a54;if(!(_0x1922ea[_0xe32fa4(0x35c)]<=this[_0xe32fa4(0x459)][_0xe32fa4(0x236)](this[_0xe32fa4(0x213)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x1922ea);return;}this['_applyRemoteChangeset'](_0x1922ea);}}[_0x1f5a54(0x2b0)](){const _0x4e70ed=_0x1f5a54;this[_0x4e70ed(0x3ba)][_0x4e70ed(0x37a)](_0x16511c=>this[_0x4e70ed(0x3b8)](_0x16511c)),this[_0x4e70ed(0x3ba)]=[];}[_0x1f5a54(0x3b8)](_0x4a1024){const _0xdb10e=_0x1f5a54,_0x3f5ecf=this[_0xdb10e(0x386)][_0xdb10e(0x396)][_0xdb10e(0x474)](this[_0xdb10e(0x386)][_0xdb10e(0x396)][_0xdb10e(0x3f6)]()[_0xdb10e(0x371)])(_0x4a1024[_0xdb10e(0x466)],null)||_0x4a1024[_0xdb10e(0x466)],_0x4b09b6={..._0x4a1024,'mutations':_0x3f5ecf};this['_lockTransition'](),this['_updateState'](this[_0xdb10e(0x31f)][_0xdb10e(0x201)](_0x4b09b6)),this[_0xdb10e(0x2ce)]();}[_0x1f5a54(0x38f)](_0x1a6d66){const _0x42b3b8=_0x1f5a54;this[_0x42b3b8(0x30d)](),this[_0x42b3b8(0x3ae)](this[_0x42b3b8(0x31f)]['onRemoteAck'](_0x1a6d66)),this[_0x42b3b8(0x2ce)]();}[_0x1f5a54(0x3fb)](_0x1d95ad){const _0x3dd1a1=_0x1f5a54;this['_lockTransition'](),this[_0x3dd1a1(0x3ae)](this[_0x3dd1a1(0x31f)]['onRemoteRej'](_0x1d95ad)),this[_0x3dd1a1(0x2ce)]();}[_0x1f5a54(0x226)](_0x212388){const _0x28e7e2=_0x1f5a54;if(!(this['_state']instanceof G))throw new TypeError(_0x28e7e2(0x1e4));const _0x2dd04e=_0x212388[_0x28e7e2(0x1a7)](_0x1ec60c=>{const _0x9e2526=_0x28e7e2,_0x5f1808=this[_0x9e2526(0x386)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService'][_0x9e2526(0x396)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x1ec60c[_0x9e2526(0x466)],null)||_0x1ec60c[_0x9e2526(0x466)];return{..._0x1ec60c,'mutations':_0x5f1808};});this[_0x28e7e2(0x30d)](),this[_0x28e7e2(0x3ae)](this['_state']['onMissedChangesetFetched'](_0x2dd04e)),this['_unlockTransition']();}[_0x1f5a54(0x29a)](){const _0xb789d8=_0x1f5a54;this['_lockTransition'](),this['_updateState'](this[_0xb789d8(0x31f)][_0xb789d8(0x43d)]()),this[_0xb789d8(0x2ce)]();}[_0x1f5a54(0x22c)](){const _0x534587=_0x1f5a54;this[_0x534587(0x30d)](),this['_updateState'](this[_0x534587(0x31f)][_0x534587(0x21f)]()),this['_unlockTransition']();}async[_0x1f5a54(0x306)](){return new Promise(_0x3e61cd=>{const _0x3e4f02=_0x2f7f;this['_session']['sessionStatus$'][_0x3e4f02(0x180)](_0x4747bd(0x1))[_0x3e4f02(0x2d9)](async _0x3b799f=>{const _0x4015b5=_0x3e4f02;_0x3e61cd(await this[_0x4015b5(0x46f)](_0x3b799f===de[_0x4015b5(0x405)]));});});}[_0x1f5a54(0x1f6)](){const _0x31e639=_0x1f5a54,_0x17b19d=this[_0x31e639(0x213)];return{'onStateChange':(_0x4e02b3,_0x47a2d0)=>{const _0xa5ee17=_0x31e639;if(_0x4e02b3!==this[_0xa5ee17(0x31f)])throw new Error(_0xa5ee17(0x22f)+_0x4e02b3[_0xa5ee17(0x453)]+'\x0aAfter:\x20'+_0x47a2d0['status']+_0xa5ee17(0x24a)+this[_0xa5ee17(0x31f)][_0xa5ee17(0x453)]);this[_0xa5ee17(0x3ae)](_0x47a2d0);},'onSendChangeset':_0x1f7ebb=>{const _0x1a4b4d=_0x31e639,_0x86d475={'eventID':_0x505428[_0x1a4b4d(0x2d8)],'data':{'unitID':_0x1f7ebb['unitID'],'unitType':this[_0x1a4b4d(0x14a)],'changeset':_0x1f7ebb,'memberID':this[_0x1a4b4d(0x159)]['getMemberID']()}};this[_0x1a4b4d(0x159)]['send'](_0x86d475,this[_0x1a4b4d(0x213)]);},'onMissingChangesets':({from:_0x4fdced,to:_0x209961})=>{const _0x5ccbbc=_0x31e639;this[_0x5ccbbc(0x308)][_0x5ccbbc(0x319)](_0x5ccbbc(0x3e5),'fetching\x20missing\x20changesets\x20from\x20'+_0x4fdced+_0x5ccbbc(0x2d2)+_0x209961);const _0x48e6d7={'eventID':_0x505428[_0x5ccbbc(0x1da)],'data':{'unitID':_0x17b19d,'unitType':this[_0x5ccbbc(0x14a)],'from':_0x4fdced,'to':_0x209961}};this[_0x5ccbbc(0x159)][_0x5ccbbc(0x1b5)](_0x48e6d7,this[_0x5ccbbc(0x213)]);}};}async[_0x1f5a54(0x46f)](_0x99ef5c){const _0x34fa62=_0x1f5a54;var _0x30cac5,_0x51c0f8;const _0x57bb16=await this['_localCacheService'][_0x34fa62(0x473)](this[_0x34fa62(0x213)]),_0x291ad4=(_0x30cac5=_0x57bb16==null?void 0x0:_0x57bb16[_0x34fa62(0x466)])!=null?_0x30cac5:[],_0x1d83ae=(_0x51c0f8=_0x57bb16==null?void 0x0:_0x57bb16[_0x34fa62(0x266)])!=null?_0x51c0f8:null,_0x1a7f68=this[_0x34fa62(0x213)];try{this[_0x34fa62(0x2cd)](_0x1d83ae,_0x291ad4);}catch(_0x14918e){this[_0x34fa62(0x308)][_0x34fa62(0x419)](_0x14918e);}const _0x383625=this[_0x34fa62(0x1f6)]();if(_0x99ef5c){const _0x4ba679=Ms(this[_0x34fa62(0x3db)],_0x1a7f68,this[_0x34fa62(0x14a)],_0x1d83ae,_0x291ad4,_0x383625);return _0x4ba679 instanceof B?_0x4ba679[_0x34fa62(0x467)]():(_0x4ba679 instanceof W||_0x4ba679 instanceof q)&&_0x4ba679[_0x34fa62(0x392)](),_0x4ba679;}return this[_0x34fa62(0x3db)][_0x34fa62(0x145)](z,_0x1a7f68,this[_0x34fa62(0x14a)],_0x1d83ae,_0x291ad4,_0x383625);}[_0x1f5a54(0x2cd)](_0xff6f9b,_0x52f8db){const _0x530e62=_0x1f5a54;var _0x465799,_0x409d79;const _0x4f9fec=this[_0x530e62(0x386)][_0x530e62(0x396)][_0x530e62(0x474)](this[_0x530e62(0x386)][_0x530e62(0x396)][_0x530e62(0x3f6)]()[_0x530e62(0x371)]);(_0x465799=_0x4f9fec((_0xff6f9b==null?void 0x0:_0xff6f9b['mutations'])||[],null))==null||_0x465799['forEach'](_0x2a2c0a=>this['_commandService'][_0x530e62(0x2b2)](_0x2a2c0a['id'],_0x2a2c0a[_0x530e62(0x3ef)])),(_0x409d79=_0x4f9fec(_0x52f8db||[],null))==null||_0x409d79[_0x530e62(0x37a)](_0x2dfbbb=>this['_commandService']['executeCommand'](_0x2dfbbb['id'],_0x2dfbbb[_0x530e62(0x3ef)]));}};ze=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x3e33de),S(0x9,_0x257ce4),S(0xa,_0x58c973),S(0xb,_0x1721b0),S(0xc,_0x455db1(et))],ze);let vt=class extends ze{constructor(_0x4ac2b4,_0xc702cd,_0x2c4bc5,_0x3ed80b,_0x3ca47f,_0x3efb4f,_0x21edfb,_0x1e1193,_0x460600,_0x3444a2,_0x11c485,_0x3b2340,_0x4eb87f,_0x46f819,_0x4858cb,_0x348bb4,_0x5ec338){const _0x1c0f7e=_0x1f5a54;super(_0x4ac2b4,_0xc702cd,_0x2c4bc5,_0x3ed80b,_0x3ca47f,_0x3efb4f,_0x21edfb,_0x1e1193,_0x4eb87f,_0x46f819,_0x4858cb,_0x348bb4,_0x5ec338),this[_0x1c0f7e(0x213)]=_0x4ac2b4,this[_0x1c0f7e(0x400)]=_0xc702cd,this[_0x1c0f7e(0x452)]=_0x2c4bc5,this[_0x1c0f7e(0x2eb)]=_0x460600,this[_0x1c0f7e(0x20d)]=_0x3444a2,this[_0x1c0f7e(0x1b4)]=_0x11c485,this[_0x1c0f7e(0x3f1)]=_0x3b2340;}[_0x1f5a54(0x1f6)](){const _0x134b8c=_0x1f5a54,_0x39c03a=super[_0x134b8c(0x1f6)]();return _0x39c03a[_0x134b8c(0x39c)]=_0xb76f22=>this['_docTransformIMECacheService']['transformIMECache'](_0xb76f22),_0x39c03a['onTransformSelections']=_0x5d964a=>this[_0x134b8c(0x1b4)][_0x134b8c(0x234)](_0x5d964a),_0x39c03a['onSyncEditingCollabCursor']=_0x1a903f=>this[_0x134b8c(0x3f1)][_0x134b8c(0x15f)](_0x1a903f),_0x39c03a['onTransformRemoteChangesetByIMECache']=_0xc8e9a8=>this[_0x134b8c(0x20d)][_0x134b8c(0x348)](_0xc8e9a8),_0x39c03a;}async[_0x1f5a54(0x3b6)](){const _0x4891b7=_0x1f5a54,_0x11ab12=await super[_0x4891b7(0x3b6)]();return this[_0x4891b7(0x2eb)][_0x4891b7(0x1c2)][_0x4891b7(0x180)](_0x57fb4a(this[_0x4891b7(0x3cd)]))['subscribe'](_0x39e562=>{const _0x2ea652=_0x4891b7;if(_0x39e562==null)return;const {unitId:_0x598f1a,redoState:_0x3b4884,commandId:_0x9bc7ae}=_0x39e562;if(_0x598f1a!==this[_0x2ea652(0x213)])return;const _0xe89bd6={'id':_0x9bc7ae,'type':_0x4d2326[_0x2ea652(0x28e)],'params':{'unitId':_0x598f1a,'actions':_0x3b4884[_0x2ea652(0x1b1)],'textRanges':null}};this['_onLocalMutation'](_0xe89bd6);}),_0x11ab12;}};vt=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x61a763(_0x3a189c)),S(0x9,_0x61a763(Xe)),S(0xa,_0x61a763(Je)),S(0xb,_0x61a763(Ut)),S(0xc,_0x3e33de),S(0xd,_0x257ce4),S(0xe,_0x58c973),S(0xf,_0x1721b0),S(0x10,_0x455db1(et))],vt);let pt=class extends ze{constructor(_0x582abc,_0x3691cf,_0x3847d3,_0xd409cf,_0x125e1e,_0x1a093a,_0x4f5650,_0xc5ba64,_0x45b996,_0x31efa1,_0x63f8dc,_0x37da95,_0x498ae2,_0x3a9f36){const _0x4cea9d=_0x1f5a54;super(_0x582abc,_0x3691cf,_0x3847d3,_0xd409cf,_0x125e1e,_0x1a093a,_0x4f5650,_0xc5ba64,_0x31efa1,_0x63f8dc,_0x37da95,_0x498ae2,_0x3a9f36),this[_0x4cea9d(0x213)]=_0x582abc,this[_0x4cea9d(0x400)]=_0x3691cf,this[_0x4cea9d(0x452)]=_0x3847d3,this[_0x4cea9d(0x313)]=_0x45b996;}[_0x1f5a54(0x1f6)](){const _0x1bc1dc=_0x1f5a54,_0x328301=super[_0x1bc1dc(0x1f6)]();return _0x328301['onTransformSelections']=_0x3fcf65=>this[_0x1bc1dc(0x313)][_0x1bc1dc(0x234)](_0x3fcf65),_0x328301;}async[_0x1f5a54(0x3b6)](){const _0x3bef5e=_0x1f5a54,_0x408df3=await super[_0x3bef5e(0x3b6)]();return this['disposeWithMe'](this[_0x3bef5e(0x299)][_0x3bef5e(0x39e)]((_0x269dc6,_0x122e24)=>{const _0xcf1666=_0x3bef5e;if(_0x269dc6[_0xcf1666(0x400)]!==_0x4d2326['MUTATION']||_0x122e24!=null&&_0x122e24['fromCollab']||_0x122e24!=null&&_0x122e24[_0xcf1666(0x42c)])return;const _0x532a94=_0x269dc6['params'];if((_0x532a94==null?void 0x0:_0x532a94[_0xcf1666(0x3f8)])!==this['unitID'])return;const _0x17dac6=_0x269dc6,_0x939fa5=this[_0xcf1666(0x386)][_0xcf1666(0x396)][_0xcf1666(0x474)](this[_0xcf1666(0x386)][_0xcf1666(0x396)][_0xcf1666(0x3f6)]()[_0xcf1666(0x344)])([_0x17dac6],null)||[_0x17dac6];this[_0xcf1666(0x472)](_0x939fa5[0x0]);})),_0x408df3;}};pt=tt([S(0x3,_0x61a763(_0x2e9f94)),S(0x4,_0x61a763(D)),S(0x5,_0x61a763(_0xb14cef)),S(0x6,_0x61a763(_0x4eec6f)),S(0x7,_0x61a763(_0x2fc807)),S(0x8,_0x61a763(qe)),S(0x9,_0x3e33de),S(0xa,_0x257ce4),S(0xb,_0x58c973),S(0xc,_0x1721b0),S(0xd,_0x455db1(et))],pt);const es=['purple300',_0x1f5a54(0x246),'verdancy600',_0x1f5a54(0x2ae),_0x1f5a54(0x189),_0x1f5a54(0x2c7)];class Lt extends _0x462626{constructor(){const _0x354bc0=_0x1f5a54;super(...arguments),l(this,_0x354bc0(0x340),new Map()),l(this,_0x354bc0(0x207),0x0);}[_0x1f5a54(0x2ee)](_0x363fda){const _0x3d083c=_0x1f5a54;if(this[_0x3d083c(0x340)][_0x3d083c(0x1d8)](_0x363fda))return this['_assignedColors']['get'](_0x363fda);const _0x20cb41=es[this[_0x3d083c(0x207)]];return this[_0x3d083c(0x207)]=(this[_0x3d083c(0x207)]+0x1)%es[_0x3d083c(0x2d6)],this[_0x3d083c(0x340)][_0x3d083c(0x22e)](_0x363fda,_0x20cb41),_0x20cb41;}}var zn=Object[_0x1f5a54(0x29f)],Zn=Object[_0x1f5a54(0x3cc)],Qn=(_0x41034c,_0x41e6f3,_0x49e7e9,_0x4558b7)=>{const _0x2fad77=_0x1f5a54;for(var _0x257533=_0x4558b7>0x1?void 0x0:_0x4558b7?Zn(_0x41e6f3,_0x49e7e9):_0x41e6f3,_0x420e97=_0x41034c[_0x2fad77(0x2d6)]-0x1,_0x3067dc;_0x420e97>=0x0;_0x420e97--)(_0x3067dc=_0x41034c[_0x420e97])&&(_0x257533=(_0x4558b7?_0x3067dc(_0x41e6f3,_0x49e7e9,_0x257533):_0x3067dc(_0x257533))||_0x257533);return _0x4558b7&&_0x257533&&zn(_0x41e6f3,_0x49e7e9,_0x257533),_0x257533;},he=(_0x27e748,_0x4743d8)=>(_0x609922,_0x23899c)=>_0x4743d8(_0x609922,_0x23899c,_0x27e748);const er=0x12c,tr=0x64,sr=()=>{let _0x169fc4=[],_0x3031e4=!0x1;return _0x176d59=>{const _0x1e430d=_0x2f7f;_0x169fc4[_0x1e430d(0x310)](_0x176d59),_0x3031e4||(_0x3031e4=!0x0,setTimeout(()=>{const _0x32b75c=_0x1e430d;_0x169fc4[_0x32b75c(0x37a)](_0x44d1b9=>_0x44d1b9()),_0x169fc4=[],_0x3031e4=!0x1;}));};};let It=class extends _0x5915f1{constructor(_0xb95516,_0x41bffe,_0x3ca3f1,_0x172e8b,_0x20ebdd,_0x1285b2,_0x2bb0f2,_0x4a69fa){const _0x3e8dda=_0x1f5a54;super(),l(this,_0x3e8dda(0x144),!0x1),l(this,_0x3e8dda(0x3b6),!0x1),l(this,_0x3e8dda(0x172),new _0x24a55e(new Map())),l(this,_0x3e8dda(0x296),this[_0x3e8dda(0x172)][_0x3e8dda(0x26b)]()),l(this,_0x3e8dda(0x192),new _0x24a55e([])),l(this,_0x3e8dda(0x3c1),this[_0x3e8dda(0x192)]['pipe'](_0x49f759(er))),l(this,_0x3e8dda(0x2bf),_0x21574d((_0x3a0122,_0x5c999f)=>{const _0x5df923=_0x3e8dda,_0x4a39b4={'eventID':_0x505428['UPDATE_CURSOR'],'data':{'unitID':this[_0x5df923(0x213)],'memberID':this[_0x5df923(0x159)][_0x5df923(0x385)](),'selection':_0x24fc6d(_0x3a0122,_0x5c999f['range'])}};this[_0x5df923(0x159)]['send'](_0x4a39b4,this[_0x5df923(0x213)]);},tr)),(this[_0x3e8dda(0x213)]=_0xb95516,this[_0x3e8dda(0x159)]=_0x41bffe,this[_0x3e8dda(0x3db)]=_0x3ca3f1,this['_colorAssignService']=_0x172e8b,this[_0x3e8dda(0x2a0)]=_0x20ebdd,this[_0x3e8dda(0x357)]=_0x1285b2,this[_0x3e8dda(0x299)]=_0x2bb0f2,this[_0x3e8dda(0x2fa)]=_0x4a69fa);}get[_0x1f5a54(0x31e)](){const _0x5769ff=_0x1f5a54;return this[_0x5769ff(0x172)][_0x5769ff(0x321)]();}get[_0x1f5a54(0x38a)](){const _0x204364=_0x1f5a54;return this[_0x204364(0x192)]['getValue']();}[_0x1f5a54(0x26e)](){const _0x26d1bc=_0x1f5a54;super[_0x26d1bc(0x26e)](),this['_cursorInfo$']['next'](new Map()),this[_0x26d1bc(0x172)][_0x26d1bc(0x424)](),this[_0x26d1bc(0x192)][_0x26d1bc(0x39b)]([]),this['_roomMembers$'][_0x26d1bc(0x424)]();}[_0x1f5a54(0x33e)](){const _0x489da9=_0x1f5a54;this['_init']||(this[_0x489da9(0x3b6)]=!0x0,this[_0x489da9(0x159)]['sessionStatus$'][_0x489da9(0x180)](_0x57fb4a(this[_0x489da9(0x3cd)]))[_0x489da9(0x2d9)](_0x3ed328=>{const _0x380112=_0x489da9;_0x3ed328===de[_0x380112(0x405)]?this[_0x380112(0x22c)]():this['_toggleOffline']();}),this[_0x489da9(0x159)][_0x489da9(0x403)][_0x489da9(0x180)](_0x57fb4a(this['dispose$']))['subscribe'](_0x25a34c=>{const _0x35a310=_0x489da9,_0xc8b6d1=_0x25a34c['eventID'];_0xc8b6d1===_0x505428[_0x35a310(0x412)]&&this['_onCursorUpdate'](_0x25a34c),_0xc8b6d1===_0x505428[_0x35a310(0x42b)]&&this['_onCursorDelete'](_0x25a34c);}),this[_0x489da9(0x2d7)](),this[_0x489da9(0x194)](this[_0x489da9(0x299)]['onCommandExecuted'](_0xc1f4a1=>{const _0x5e2d07=_0x489da9;if(this[_0x5e2d07(0x144)]&&_0xc1f4a1['id']===_0x109738['id']&&_0xc1f4a1[_0x5e2d07(0x3ef)]['unitId']===this[_0x5e2d07(0x213)]){const _0x4cea45=_0xc1f4a1['params'];this[_0x5e2d07(0x2bf)](_0x4cea45['subUnitId'],_0x4cea45[_0x5e2d07(0x2ab)][0x0]);}})));}[_0x1f5a54(0x316)](_0x35d48e){const _0x865112=_0x1f5a54;var _0x587a15,_0x168ee3;const {memberID:_0xd5ed4d,selection:_0x629c96}=_0x35d48e[_0x865112(0x2a5)],{sheetName:_0x1943e8,range:_0x16945b}=_0x13b7f9(_0x629c96),_0x433647={'name':(_0x168ee3=(_0x587a15=this['_memberService']['getMember'](this[_0x865112(0x213)],_0xd5ed4d))==null?void 0x0:_0x587a15[_0x865112(0x40c)])!=null?_0x168ee3:_0x865112(0x23e),'range':this[_0x865112(0x406)](_0x1943e8,_0x16945b),'sheetID':_0x1943e8,'color':this[_0x865112(0x311)][_0x865112(0x2ee)](_0xd5ed4d),'selection':_0x629c96},_0x78eb61=this[_0x865112(0x31e)];_0x78eb61[_0x865112(0x22e)](_0xd5ed4d,_0x433647),this['_cursorInfo$']['next'](_0x78eb61);}[_0x1f5a54(0x1be)](_0x1bfbe5){const _0x1117d3=_0x1f5a54,{memberID:_0x5d6d67}=_0x1bfbe5[_0x1117d3(0x2a5)],_0x8cae25=this[_0x1117d3(0x31e)];_0x8cae25['delete'](_0x5d6d67),this[_0x1117d3(0x172)][_0x1117d3(0x39b)](_0x8cae25);}[_0x1f5a54(0x406)](_0x1b05dc,_0x404ea6){const _0x84f05c=_0x1f5a54;var _0x130b11,_0x50cb00;const _0x576d97=(_0x50cb00=(_0x130b11=this[_0x84f05c(0x357)][_0x84f05c(0x46c)](this['unitID']))==null?void 0x0:_0x130b11[_0x84f05c(0x232)](_0x1b05dc))==null?void 0x0:_0x50cb00[_0x84f05c(0x330)]();return(_0x576d97==null?void 0x0:_0x576d97[_0x84f05c(0x17c)](_0x294c32=>_0x708e4b[_0x84f05c(0x463)](_0x294c32,_0x404ea6)))||_0x404ea6;}[_0x1f5a54(0x2d7)](){const _0x3747f9=_0x1f5a54,_0x2c8035=new _0x1382fe(),_0x2d5cf7=sr(),_0x50d41c=()=>{const _0x57e7d4=_0x2f7f;_0x2c8035[_0x57e7d4(0x26e)]();const _0x2010d4=(_0x4bc4e5,_0x48ef4c,_0x36dcaf,_0x1fcce7)=>{const _0x462805=_0x57e7d4;let _0x357d35=[];switch(_0x4bc4e5['id']){case _0x349867[_0x462805(0x161)]:{_0x357d35=_0x3e36a2(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x1db)]:{_0x357d35=_0xad81ef(_0x4bc4e5,_0x1fcce7);break;}case _0x349867['InsertColCommandId']:{_0x357d35=_0x185ab7(_0x4bc4e5,_0x1fcce7);break;}case _0x349867['InsertRangeMoveDownCommandId']:{_0x357d35=_0x13c601(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x197)]:{_0x357d35=_0x515386(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x170)]:{_0x357d35=_0x56aa1d(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x37d)]:{_0x357d35=_0x544ab2(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x247)]:{_0x357d35=_0x2db791(_0x4bc4e5,_0x1fcce7);break;}case _0x349867[_0x462805(0x26d)]:{_0x357d35=_0x2ff430(_0x4bc4e5,_0x1fcce7);break;}}const _0x11ccc3=_0x16303f(_0x357d35,_0x1fcce7),_0x1473bb=this[_0x462805(0x31e)]['get'](_0x48ef4c);if(_0x1473bb&&_0x11ccc3){const _0x3f6b43={..._0x1473bb,'range':_0x11ccc3};this['cursorInfo'][_0x462805(0x22e)](_0x48ef4c,_0x3f6b43),_0x2d5cf7(()=>{const _0x83311c=_0x462805,_0x1100b8=this[_0x83311c(0x2fa)][_0x83311c(0x27a)](_0x11ccc3,_0x4c1c8f=>(_0x1100b8['dispose'](),_0x2010d4(_0x4c1c8f,_0x48ef4c,_0x36dcaf,_0x11ccc3)));_0x2c8035[_0x83311c(0x3c0)](_0x1100b8);});}return{'redos':[],'undos':[]};};this[_0x57e7d4(0x31e)][_0x57e7d4(0x37a)]((_0x2dbb82,_0x78b5d1)=>{const _0x5cc323=_0x57e7d4,{range:_0x55bfbe,sheetID:_0x142119}=_0x2dbb82,_0x59dae3=this['_refRangeService'][_0x5cc323(0x27a)](_0x55bfbe,_0x230d84=>(_0x59dae3['dispose'](),_0x2010d4(_0x230d84,_0x78b5d1,_0x142119,_0x55bfbe)));_0x2c8035[_0x5cc323(0x3c0)](_0x59dae3);});};this[_0x3747f9(0x194)](_0x5d3cf2(this['_cursorInfo$'][_0x3747f9(0x2d9)](()=>{_0x50d41c();})));}[_0x1f5a54(0x22c)](){const _0x26aced=_0x1f5a54;var _0x5cd6f7,_0x3fe489;if(this[_0x26aced(0x144)]=!0x0,((_0x5cd6f7=this[_0x26aced(0x357)][_0x26aced(0x3ed)]())==null?void 0x0:_0x5cd6f7[_0x26aced(0x2a2)]())!==this['unitID'])return;const _0x196f28=(_0x3fe489=this['_injector'][_0x26aced(0x393)](_0x5914fd)[_0x26aced(0x208)]())==null?void 0x0:_0x3fe489[0x0],_0x430c43=this['_univerInstanceService'][_0x26aced(0x440)](_0x5cab0b[_0x26aced(0x320)])['getActiveSheet']();_0x196f28&&_0x430c43&&this['_updateLocalCursor'](_0x430c43[_0x26aced(0x31a)](),_0x196f28);}['_toggleOffline'](){const _0x8fc27=_0x1f5a54;this[_0x8fc27(0x144)]=!0x1;}};It=Qn([he(0x2,_0x61a763(_0x2e9f94)),he(0x3,_0x61a763(Lt)),he(0x4,_0x61a763(ne)),he(0x5,_0x55bd21),he(0x6,_0x257ce4),he(0x7,_0x61a763(_0x351ccc))],It);var ir=Object[_0x1f5a54(0x29f)],nr=Object[_0x1f5a54(0x3cc)],rr=(_0x14024e,_0x4842b8,_0x254590,_0x2640c4)=>{const _0x87c145=_0x1f5a54;for(var _0x242925=_0x2640c4>0x1?void 0x0:_0x2640c4?nr(_0x4842b8,_0x254590):_0x4842b8,_0x324d03=_0x14024e[_0x87c145(0x2d6)]-0x1,_0x3dee07;_0x324d03>=0x0;_0x324d03--)(_0x3dee07=_0x14024e[_0x324d03])&&(_0x242925=(_0x2640c4?_0x3dee07(_0x4842b8,_0x254590,_0x242925):_0x3dee07(_0x242925))||_0x242925);return _0x2640c4&&_0x242925&&ir(_0x4842b8,_0x254590,_0x242925),_0x242925;},te=(_0x51b198,_0x5afaa5)=>(_0x2a3caf,_0x3534d8)=>_0x5afaa5(_0x2a3caf,_0x3534d8,_0x51b198);const or=0x12c,ar=0x64;let Et=class extends _0x5915f1{constructor(_0x2129c9,_0x4bff47,_0x20ee4b,_0x39d31a,_0x3ecf68,_0x144707,_0x2d24b0,_0x73ba2e,_0x2ff943){const _0x39f835=_0x1f5a54;super(),l(this,_0x39f835(0x144),!0x1),l(this,_0x39f835(0x3b6),!0x1),l(this,'_cursorInfo$',new _0x24a55e(new Map())),l(this,_0x39f835(0x296),this[_0x39f835(0x172)][_0x39f835(0x26b)]()),l(this,_0x39f835(0x192),new _0x24a55e([])),l(this,'roomMembers$',this[_0x39f835(0x192)][_0x39f835(0x180)](_0x49f759(or))),l(this,_0x39f835(0x2bf),_0x21574d(_0x58c3c6=>{const _0x5bcacd=_0x39f835,_0x3dc158={'eventID':_0x505428[_0x5bcacd(0x412)],'data':{'unitID':this[_0x5bcacd(0x213)],'memberID':this[_0x5bcacd(0x159)][_0x5bcacd(0x385)](),'selection':Ns(_0x58c3c6)}};this[_0x5bcacd(0x159)][_0x5bcacd(0x1b5)](_0x3dc158,this['unitID']);},ar)),(this[_0x39f835(0x213)]=_0x2129c9,this['_session']=_0x4bff47,this['_injector']=_0x20ee4b,this[_0x39f835(0x311)]=_0x39d31a,this[_0x39f835(0x2a0)]=_0x3ecf68,this[_0x39f835(0x2ba)]=_0x144707,this[_0x39f835(0x327)]=_0x2d24b0,this[_0x39f835(0x357)]=_0x73ba2e,this[_0x39f835(0x299)]=_0x2ff943);}get[_0x1f5a54(0x31e)](){const _0x3e05cf=_0x1f5a54;return this['_cursorInfo$'][_0x3e05cf(0x321)]();}get['roomMembers'](){const _0x55883c=_0x1f5a54;return this[_0x55883c(0x192)][_0x55883c(0x321)]();}[_0x1f5a54(0x26e)](){const _0x2b81d7=_0x1f5a54;super[_0x2b81d7(0x26e)](),this[_0x2b81d7(0x172)][_0x2b81d7(0x39b)](new Map()),this[_0x2b81d7(0x172)][_0x2b81d7(0x424)](),this['_roomMembers$'][_0x2b81d7(0x39b)]([]),this[_0x2b81d7(0x192)][_0x2b81d7(0x424)]();}[_0x1f5a54(0x33e)](){const _0x54885a=_0x1f5a54;this[_0x54885a(0x3b6)]||(this['_init']=!0x0,this[_0x54885a(0x159)]['sessionStatus$'][_0x54885a(0x180)](_0x57fb4a(this['dispose$']))[_0x54885a(0x2d9)](_0x3a7d13=>{const _0x8f025b=_0x54885a;_0x3a7d13===de[_0x8f025b(0x405)]?this[_0x8f025b(0x22c)]():this[_0x8f025b(0x29a)]();}),this[_0x54885a(0x159)][_0x54885a(0x403)][_0x54885a(0x180)](_0x57fb4a(this[_0x54885a(0x3cd)]))[_0x54885a(0x2d9)](_0x3ad4cd=>{const _0x1f6fd9=_0x54885a,_0x3a09cd=_0x3ad4cd[_0x1f6fd9(0x2cf)];_0x3a09cd===_0x505428['UPDATE_CURSOR']&&this[_0x1f6fd9(0x316)](_0x3ad4cd),_0x3a09cd===_0x505428[_0x1f6fd9(0x42b)]&&this[_0x1f6fd9(0x1be)](_0x3ad4cd);}),this[_0x54885a(0x194)](this[_0x54885a(0x299)][_0x54885a(0x39e)](_0x2d1963=>{const _0x39bfa6=_0x54885a,_0x3432c8=_0x2d1963[_0x39bfa6(0x3ef)];_0x3432c8!=null&&this[_0x39bfa6(0x144)]&&_0x2d1963['id']===_0x477910['id']&&_0x3432c8[_0x39bfa6(0x3f8)]===this[_0x39bfa6(0x213)]&&_0x3432c8[_0x39bfa6(0x3e0)]===!0x1&&this[_0x39bfa6(0x2bf)](_0x3432c8[_0x39bfa6(0x3af)]);})),this['_syncEditingCollabCursorService'][_0x54885a(0x155)]['pipe'](_0x57fb4a(this['dispose$']))[_0x54885a(0x2d9)](_0x4b911e=>{const _0xae52a1=_0x54885a;if((_0x4b911e==null?void 0x0:_0x4b911e['unitID'])!==this[_0xae52a1(0x213)])return;const _0x11f08a={'eventID':_0x505428[_0xae52a1(0x412)],'data':_0x4b911e};this['_onCursorUpdate'](_0x11f08a);}),this['disposeWithMe'](this[_0x54885a(0x299)][_0x54885a(0x39e)](_0x82e18=>{const _0x127d99=_0x54885a;if(_0x82e18[_0x127d99(0x3ef)]==null)return;const _0x4745db=_0x82e18[_0x127d99(0x3ef)];if(_0x82e18['id']!==_0x52bb0d['id']||_0x4745db[_0x127d99(0x3f8)]!==this[_0x127d99(0x213)])return;const _0x292074={'id':'doc.mutation.rich-text-editing','params':_0x4745db},_0x3f1100=this[_0x127d99(0x31e)];for(const [_0x286f9d,_0x331740]of _0x3f1100){const _0xb0dcd7={'id':_0x127d99(0x14c),'params':{'unitId':this[_0x127d99(0x213)],'actions':null,'textRanges':_0x331740['ranges']}},_0x1cea3b=this[_0x127d99(0x327)][_0x127d99(0x34d)](_0x292074,_0xb0dcd7,!0x1);if(_0x2bbef6(_0x1cea3b))throw _0x1cea3b[_0x127d99(0x419)];_0x3f1100[_0x127d99(0x22e)](_0x286f9d,{..._0x331740,'ranges':_0x1cea3b[_0x127d99(0x349)][_0x127d99(0x3ef)][_0x127d99(0x279)]});}queueMicrotask(()=>{const _0x1d63cd=_0x127d99;this[_0x1d63cd(0x172)][_0x1d63cd(0x39b)](_0x3f1100);});})));}[_0x1f5a54(0x316)](_0x39f286){const _0x5e3a20=_0x1f5a54;var _0x7b8de7,_0x40a96e;const {memberID:_0x2aac8c,selection:_0x4d4435}=_0x39f286[_0x5e3a20(0x2a5)],_0x39d5fa=xn(_0x4d4435),_0x17d48e=(_0x40a96e=(_0x7b8de7=this[_0x5e3a20(0x2a0)]['getMember'](this[_0x5e3a20(0x213)],_0x2aac8c))==null?void 0x0:_0x7b8de7['name'])!=null?_0x40a96e:_0x5e3a20(0x23e),_0x5cef9e={'color':this[_0x5e3a20(0x311)][_0x5e3a20(0x2ee)](_0x2aac8c),'name':_0x17d48e,'ranges':_0x39d5fa},_0x2ddfd8=this[_0x5e3a20(0x31e)];_0x2ddfd8[_0x5e3a20(0x22e)](_0x2aac8c,_0x5cef9e),this[_0x5e3a20(0x172)]['next'](_0x2ddfd8);}[_0x1f5a54(0x1be)](_0x3ff088){const _0xee2011=_0x1f5a54,{memberID:_0x2c0ba0}=_0x3ff088['data'],_0xa927ae=this[_0xee2011(0x31e)];_0xa927ae[_0xee2011(0x3a5)](_0x2c0ba0),this[_0xee2011(0x172)][_0xee2011(0x39b)](_0xa927ae);}[_0x1f5a54(0x22c)](){const _0xc5f218=_0x1f5a54;var _0x2c9916;if(this['_online']=!0x0,((_0x2c9916=this[_0xc5f218(0x357)]['getFocusedUnit']())==null?void 0x0:_0x2c9916[_0xc5f218(0x2a2)]())!==this[_0xc5f218(0x213)])return;const _0x1aa725=this[_0xc5f218(0x3db)][_0xc5f218(0x393)](_0x233706)['getCurrentSelections'](),_0x17fd6a=_0x1aa725==null?void 0x0:_0x1aa725['map'](_0x4605fa);Array[_0xc5f218(0x150)](_0x17fd6a)&&_0x17fd6a[_0xc5f218(0x2d6)]>0x0&&this[_0xc5f218(0x2bf)](_0x17fd6a);}['_toggleOffline'](){const _0x6b58ba=_0x1f5a54;this[_0x6b58ba(0x144)]=!0x1;}};Et=rr([te(0x2,_0x61a763(_0x2e9f94)),te(0x3,_0x61a763(Lt)),te(0x4,_0x61a763(ne)),te(0x5,_0x61a763(Ut)),te(0x6,_0x1215ee),te(0x7,_0x55bd21),te(0x8,_0x257ce4)],Et);var cr=Object[_0x1f5a54(0x29f)],hr=Object['getOwnPropertyDescriptor'],lr=(_0x3c1f0f,_0x1f7f56,_0x163fef,_0x34b36a)=>{for(var _0x2b7dfe=_0x34b36a>0x1?void 0x0:_0x34b36a?hr(_0x1f7f56,_0x163fef):_0x1f7f56,_0x33bae1=_0x3c1f0f['length']-0x1,_0x42233b;_0x33bae1>=0x0;_0x33bae1--)(_0x42233b=_0x3c1f0f[_0x33bae1])&&(_0x2b7dfe=(_0x34b36a?_0x42233b(_0x1f7f56,_0x163fef,_0x2b7dfe):_0x42233b(_0x2b7dfe))||_0x2b7dfe);return _0x34b36a&&_0x2b7dfe&&cr(_0x1f7f56,_0x163fef,_0x2b7dfe),_0x2b7dfe;},ct=(_0x4c5b08,_0x41af1c)=>(_0x56b7df,_0x595f01)=>_0x41af1c(_0x56b7df,_0x595f01,_0x4c5b08);let fe=class extends _0x5915f1{constructor(_0x21522a,_0x322ef0,_0x1e76ff){const _0x2db3f3=_0x1f5a54;super(),l(this,_0x2db3f3(0x457),new Map()),l(this,_0x2db3f3(0x157),new _0x295019()),(this[_0x2db3f3(0x357)]=_0x21522a,this[_0x2db3f3(0x3db)]=_0x322ef0,this[_0x2db3f3(0x3dc)]=_0x1e76ff,this[_0x2db3f3(0x3b6)]());}[_0x1f5a54(0x26e)](){const _0x1b44e5=_0x1f5a54;super[_0x1b44e5(0x26e)](),this['_entityInit$'][_0x1b44e5(0x424)](),this[_0x1b44e5(0x457)]['forEach'](_0x212510=>_0x212510['dispose']());}[_0x1f5a54(0x25c)](_0x3a909b){const _0x4232dc=_0x1f5a54;return this[_0x4232dc(0x457)][_0x4232dc(0x1d8)](_0x3a909b)?this[_0x4232dc(0x457)][_0x4232dc(0x393)](_0x3a909b)[_0x4232dc(0x296)]:this[_0x4232dc(0x157)][_0x4232dc(0x180)](_0x21a70c(_0x297c09=>_0x297c09[_0x4232dc(0x213)]===_0x3a909b),_0x44b0e5(_0x4e4197=>_0x4e4197['cursorInfo$']));}[_0x1f5a54(0x3b6)](){const _0x1ddfe0=_0x1f5a54;this[_0x1ddfe0(0x357)]['getTypeOfUnitAdded$'](_0x5cab0b[_0x1ddfe0(0x320)])[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))[_0x1ddfe0(0x2d9)](async _0x55540b=>{const _0x113593=_0x1ddfe0,_0x4be07f=_0x55540b[_0x113593(0x2a2)](),_0x3bd7ca=await this[_0x113593(0x2b6)](_0x4be07f);this[_0x113593(0x157)][_0x113593(0x39b)](_0x3bd7ca),this['_entities'][_0x113593(0x22e)](_0x4be07f,_0x3bd7ca);}),this[_0x1ddfe0(0x357)][_0x1ddfe0(0x1fb)](_0x5cab0b[_0x1ddfe0(0x315)])[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))['pipe'](_0x21a70c(_0x27fcc2=>!_0x27fcc2[_0x1ddfe0(0x2a2)]()[_0x1ddfe0(0x41d)]('__')))[_0x1ddfe0(0x2d9)](async _0x3ece30=>{const _0x40184c=_0x1ddfe0,_0x2ad90b=_0x3ece30[_0x40184c(0x2a2)](),_0x49b273=await this[_0x40184c(0x356)](_0x2ad90b);this[_0x40184c(0x157)][_0x40184c(0x39b)](_0x49b273),this[_0x40184c(0x457)]['set'](_0x2ad90b,_0x49b273);}),_0x2e3217(this[_0x1ddfe0(0x357)]['getTypeOfUnitDisposed$'](_0x5cab0b[_0x1ddfe0(0x315)]),this[_0x1ddfe0(0x357)][_0x1ddfe0(0x303)](_0x5cab0b[_0x1ddfe0(0x320)]))[_0x1ddfe0(0x180)](_0x57fb4a(this[_0x1ddfe0(0x3cd)]))['subscribe'](_0x4ecfe8=>{const _0x270d2a=_0x1ddfe0,_0xd4afd8=_0x4ecfe8[_0x270d2a(0x2a2)](),_0x61c5bd=this[_0x270d2a(0x457)][_0x270d2a(0x393)](_0xd4afd8);_0x61c5bd&&(_0x61c5bd[_0x270d2a(0x26e)](),this[_0x270d2a(0x457)][_0x270d2a(0x3a5)](_0xd4afd8));});}async['_startSheetCollabCursor'](_0x154c24){const _0x424683=_0x1f5a54,_0x24cf43=await this[_0x424683(0x3dc)][_0x424683(0x46e)](_0x154c24),_0x3be973=this[_0x424683(0x3db)]['createInstance'](It,_0x154c24,_0x24cf43);return _0x3be973['init'](),_0x3be973;}async['_startDocCollabCursor'](_0x3f31fd){const _0x372fc9=_0x1f5a54,_0x3871c8=await this[_0x372fc9(0x3dc)][_0x372fc9(0x46e)](_0x3f31fd),_0x21fc1c=this['_injector'][_0x372fc9(0x145)](Et,_0x3f31fd,_0x3871c8);return _0x21fc1c['init'](),_0x21fc1c;}};fe=lr([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],fe),ct(0x0,_0x55bd21),ct(0x1,_0x61a763(_0x2e9f94)),ct(0x2,_0x61a763(ge))],fe);const Me=0x14,ts=0xc8,ht=0x4,_r=0x5;function ur(_0x4d5f38,_0x34cfaa){const _0x4629c8=_0x1f5a54;let {radius:_0x123213,width:_0x24d5a8,height:_0xa40cfe}=_0x34cfaa;_0x123213=_0x123213!=null?_0x123213:0x0,_0x24d5a8=_0x24d5a8!=null?_0x24d5a8:0x1e,_0xa40cfe=_0xa40cfe!=null?_0xa40cfe:0x1e;let _0x5f10a6=0x0,_0x17e538=0x0,_0x3830f7=0x0;_0x5f10a6=_0x17e538=_0x3830f7=Math[_0x4629c8(0x3dd)](_0x123213,_0x24d5a8/0x2,_0xa40cfe/0x2),_0x4d5f38[_0x4629c8(0x45c)](),_0x4d5f38[_0x4629c8(0x28b)](_0x5f10a6,0x0),_0x4d5f38[_0x4629c8(0x439)](_0x24d5a8-_0x17e538,0x0),_0x4d5f38[_0x4629c8(0x45d)](_0x24d5a8-_0x17e538,_0x17e538,_0x17e538,Math['PI']*0x3/0x2,0x0,!0x1),_0x4d5f38[_0x4629c8(0x439)](_0x24d5a8,_0xa40cfe-_0x3830f7),_0x4d5f38['arc'](_0x24d5a8-_0x3830f7,_0xa40cfe-_0x3830f7,_0x3830f7,0x0,Math['PI']/0x2,!0x1),_0x4d5f38['lineTo'](0x0,_0xa40cfe),_0x4d5f38[_0x4629c8(0x439)](0x0,_0x5f10a6),_0x4d5f38[_0x4629c8(0x45d)](_0x5f10a6,_0x5f10a6,_0x5f10a6,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4d5f38['closePath'](),_0x34cfaa[_0x4629c8(0x332)]&&(_0x4d5f38[_0x4629c8(0x269)](),_0x4d5f38[_0x4629c8(0x3b0)]=_0x34cfaa['fill'],_0x34cfaa[_0x4629c8(0x3e2)]===_0x4629c8(0x1ad)?_0x4d5f38[_0x4629c8(0x332)](_0x4629c8(0x1ad)):_0x4d5f38[_0x4629c8(0x332)](),_0x4d5f38[_0x4629c8(0x3d5)]());}class st extends _0x520a18{constructor(_0x53d5d7,_0x1228ae){const _0x3bc9d8=_0x1f5a54;super(_0x53d5d7,_0x1228ae),l(this,_0x3bc9d8(0x428)),l(this,'text'),(this['color']=_0x1228ae==null?void 0x0:_0x1228ae[_0x3bc9d8(0x428)],this[_0x3bc9d8(0x3a9)]=_0x1228ae==null?void 0x0:_0x1228ae[_0x3bc9d8(0x3a9)]);}static['drawWith'](_0x19bfba,_0x59f71c){const _0x38b81d=_0x1f5a54,{text:_0x4da30d,color:_0x5c22bc}=_0x59f71c;_0x19bfba['save'](),_0x19bfba[_0x38b81d(0x273)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x1036cc=_0x19bfba[_0x38b81d(0x3e1)](_0x4da30d)[_0x38b81d(0x343)],_0x5bf305=Math[_0x38b81d(0x3dd)](_0x1036cc+0x2*ht,ts);ur(_0x19bfba,{'height':Me,'radius':0x4,'width':_0x5bf305,'fill':_0x5c22bc,'evented':!0x1}),_0x19bfba[_0x38b81d(0x3b0)]='#FFF';const _0x283c84=ht,_0x114c84=Me-_r,_0x1c7bc9=ts-0x2*ht;if(_0x1036cc>_0x1c7bc9){let _0x1d629e='',_0x3633c6=0x0;for(const _0x5de517 of _0x4da30d){const _0x579559=_0x19bfba['measureText'](_0x5de517)[_0x38b81d(0x343)];if(_0x3633c6+_0x579559<=_0x1c7bc9-_0x19bfba[_0x38b81d(0x3e1)](_0x38b81d(0x3ad))[_0x38b81d(0x343)])_0x1d629e+=_0x5de517,_0x3633c6+=_0x579559;else{_0x1d629e+=_0x38b81d(0x3ad);break;}}_0x19bfba['fillText'](_0x1d629e,_0x283c84,_0x114c84);}else _0x19bfba[_0x38b81d(0x18f)](_0x4da30d,_0x283c84,_0x114c84);_0x19bfba[_0x38b81d(0x3d5)]();}[_0x1f5a54(0x444)](_0x36b6a9){const _0x30fa35=_0x1f5a54;st[_0x30fa35(0x30b)](_0x36b6a9,this);}}const dr=0x1,fr=1.5;class mr extends _0x520a18{constructor(_0x2eb91a,_0x19341b){const _0x10e048=_0x1f5a54;super(_0x2eb91a,_0x19341b),l(this,_0x10e048(0x413)),l(this,'_hovered',!0x1),l(this,_0x10e048(0x334)),l(this,_0x10e048(0x433),''),l(this,_0x10e048(0x370),'top'),l(this,'_backgroundColor'),(_0x19341b&&this[_0x10e048(0x36b)](_0x19341b),this[_0x10e048(0x2cc)][_0x10e048(0x341)](()=>this[_0x10e048(0x36b)]({'hovered':!0x0})),this[_0x10e048(0x242)][_0x10e048(0x341)](()=>this[_0x10e048(0x36b)]({'hovered':!0x1})));}[_0x1f5a54(0x36b)](_0x5df3ae){const _0x530aec=_0x1f5a54;var _0x529125,_0x580446,_0x4fcd1f,_0x132257,_0x265906,_0x33b11a;this['_color']=(_0x529125=_0x5df3ae['color'])!=null?_0x529125:this[_0x530aec(0x413)],this[_0x530aec(0x317)]=(_0x580446=_0x5df3ae['hovered'])!=null?_0x580446:this[_0x530aec(0x317)],this['_range']=(_0x4fcd1f=_0x5df3ae[_0x530aec(0x1c7)])!=null?_0x4fcd1f:this[_0x530aec(0x334)],this[_0x530aec(0x433)]=(_0x132257=_0x5df3ae['name'])!=null?_0x132257:this[_0x530aec(0x433)],this[_0x530aec(0x370)]=(_0x265906=_0x5df3ae[_0x530aec(0x18c)])!=null?_0x265906:this[_0x530aec(0x370)],this[_0x530aec(0x40f)]=(_0x33b11a=_0x5df3ae[_0x530aec(0x2c3)])!=null?_0x33b11a:this[_0x530aec(0x40f)],this[_0x530aec(0x264)]({'width':_0x5df3ae[_0x530aec(0x343)],'height':_0x5df3ae[_0x530aec(0x158)]});}[_0x1f5a54(0x23b)](_0xc0f392){const _0x3980a7=_0x1f5a54,{row:_0x5c3278,column:_0x3ca6c7}=_0xc0f392;if(_0x5c3278>=this['_range'][_0x3980a7(0x438)]&&_0x5c3278<=this[_0x3980a7(0x334)]['endRow']&&_0x3ca6c7>=this['_range'][_0x3980a7(0x436)]&&_0x3ca6c7<=this[_0x3980a7(0x334)][_0x3980a7(0x272)]){this[_0x3980a7(0x36b)]({'hovered':!0x0});return;}this[_0x3980a7(0x36b)]({'hovered':!0x1});}[_0x1f5a54(0x347)](_0x358596){return!0x1;}[_0x1f5a54(0x444)](_0x84e62d){const _0x1944a4=_0x1f5a54;_0x5d7c63[_0x1944a4(0x30b)](_0x84e62d,{'width':this[_0x1944a4(0x343)],'height':this[_0x1944a4(0x158)],'strokeWidth':fr,'stroke':this[_0x1944a4(0x413)],'evented':!0x1,'fill':this[_0x1944a4(0x40f)]}),this[_0x1944a4(0x317)]&&(_0x84e62d[_0x1944a4(0x269)](),_0x84e62d['transform'](0x1,0x0,0x0,0x1,this[_0x1944a4(0x343)],this[_0x1944a4(0x370)]==='bottom'?0x0:-Me),st[_0x1944a4(0x30b)](_0x84e62d,{'text':this[_0x1944a4(0x433)],'color':this[_0x1944a4(0x413)]}),_0x84e62d['restore']());}}var gr=Object[_0x1f5a54(0x29f)],Sr=Object['getOwnPropertyDescriptor'],vr=(_0x5cb0dd,_0x5647f4,_0x40f81f,_0xf0f368)=>{const _0x172549=_0x1f5a54;for(var _0x37cd40=_0xf0f368>0x1?void 0x0:_0xf0f368?Sr(_0x5647f4,_0x40f81f):_0x5647f4,_0x3bd8a2=_0x5cb0dd[_0x172549(0x2d6)]-0x1,_0x4dbf0c;_0x3bd8a2>=0x0;_0x3bd8a2--)(_0x4dbf0c=_0x5cb0dd[_0x3bd8a2])&&(_0x37cd40=(_0xf0f368?_0x4dbf0c(_0x5647f4,_0x40f81f,_0x37cd40):_0x4dbf0c(_0x37cd40))||_0x37cd40);return _0xf0f368&&_0x37cd40&&gr(_0x5647f4,_0x40f81f,_0x37cd40),_0x37cd40;},$e=(_0x8022cf,_0x3f1dcd)=>(_0x2af62a,_0x20a509)=>_0x3f1dcd(_0x2af62a,_0x20a509,_0x8022cf);const pr=0x1389;let Ve=class extends _0x5915f1{constructor(_0xb9f6fa,_0x2bf6d2,_0x206c7f,_0x582048){const _0x5b63b=_0x1f5a54;super(),l(this,_0x5b63b(0x2bc),new Set()),l(this,'_lastPointer',null),(this[_0x5b63b(0x3f9)]=_0xb9f6fa,this['_univerInstanceService']=_0x2bf6d2,this[_0x5b63b(0x168)]=_0x206c7f,this[_0x5b63b(0x165)]=_0x582048,this[_0x5b63b(0x3b6)]());}get[_0x1f5a54(0x305)](){const _0x5750bf=_0x1f5a54;return this['_renderManagerService']['getRenderById'](this[_0x5750bf(0x357)][_0x5750bf(0x440)](_0x5cab0b['UNIVER_SHEET'])[_0x5750bf(0x2a2)]())[_0x5750bf(0x3ec)](_0x5f534a);}get[_0x1f5a54(0x292)](){const _0x20c00e=_0x1f5a54;return this[_0x20c00e(0x357)][_0x20c00e(0x440)](_0x5cab0b[_0x20c00e(0x320)])[_0x20c00e(0x2a2)]();}[_0x1f5a54(0x3b6)](){const _0x4931a8=_0x1f5a54;this['_sheetSkeletonManagerService'][_0x4931a8(0x2a9)][_0x4931a8(0x180)](_0x31e4a6(this['dispose$']),_0x4c3023(_0x5c75c3=>{const _0x3e612d=_0x4931a8;if(_0x5c75c3){const _0x459eed=_0x5c75c3[_0x3e612d(0x249)];return _0x5732cb(this['_collabCursorController'][_0x3e612d(0x25c)](this[_0x3e612d(0x292)]),this[_0x3e612d(0x165)][_0x3e612d(0x287)])[_0x3e612d(0x180)](_0x28f321(([_0x1bc8c7,_0x18c2b0])=>{const _0x2cda49=new Map();return _0x1bc8c7['forEach']((_0x3de325,_0x41066a)=>{const _0x3ad9fa=_0x2f7f;if(_0x3de325['sheetID']===_0x459eed){const _0x43844e={..._0x3de325};_0x43844e[_0x3ad9fa(0x428)]=_0x18c2b0[_0x3de325['color']],_0x2cda49[_0x3ad9fa(0x22e)](_0x41066a,_0x43844e);}}),{'skeleton':_0x5c75c3,'cursors':_0x2cda49};}));}return _0x110ce6({'skeleton':null,'cursors':new Map()});}))[_0x4931a8(0x2d9)](({skeleton:_0x485e61,cursors:_0x4d0187})=>{const _0x1d9ea3=_0x4931a8;this[_0x1d9ea3(0x34e)](),_0x485e61&&this[_0x1d9ea3(0x304)](_0x485e61,_0x4d0187);}),this[_0x4931a8(0x305)][_0x4931a8(0x2a9)]['subscribe'](_0x119a3d=>{const _0x14281a=_0x4931a8;if(_0x119a3d==null)return;const {skeleton:_0x37e767}=_0x119a3d,_0x5965d0=this[_0x14281a(0x168)][_0x14281a(0x1a1)](this[_0x14281a(0x292)]),{scene:_0x5df640}=_0x5965d0;_0x5df640[_0x14281a(0x33b)]['subscribeEvent'](_0x21574d(_0x540176=>{const _0x50cc96=_0x14281a;var _0x564c0,_0x51862b;const {offsetX:_0x3460e8,offsetY:_0xbe1c5a}=_0x540176,{x:_0x45f321,y:_0xe16e39}=_0x5df640[_0x50cc96(0x251)](_0x1a7ec4['FromArray']([_0x3460e8,_0xbe1c5a])),{scaleX:_0xe1f707,scaleY:_0x407d6a}=_0x5df640['getAncestorScale'](),_0x1ee84d=_0x5df640[_0x50cc96(0x3c2)](_0x34fb7d[_0x50cc96(0x443)]),_0x15e05d=_0x5df640[_0x50cc96(0x380)](_0x1a7ec4[_0x50cc96(0x1e1)]([_0x45f321,_0xe16e39]),_0x1ee84d),_0x567b96=_0x37e767[_0x50cc96(0x3b4)](_0x3460e8,_0xbe1c5a,_0xe1f707,_0x407d6a,_0x15e05d);((_0x564c0=this['_lastPointer'])==null?void 0x0:_0x564c0[_0x50cc96(0x2a6)])===_0x567b96[_0x50cc96(0x2a6)]&&((_0x51862b=this[_0x50cc96(0x263)])==null?void 0x0:_0x51862b[_0x50cc96(0x2c2)])===_0x567b96[_0x50cc96(0x2c2)]||this['_cursors'][_0x50cc96(0x37a)](_0x3106fa=>{const _0x174658=_0x50cc96;_0x3106fa[_0x174658(0x23b)](_0x567b96);});},0x64));});}[_0x1f5a54(0x304)](_0x424e76,_0x1e5ca0){const _0x2811c9=_0x1f5a54;var _0x2dc582;const _0x5d9636=(_0x2dc582=this[_0x2811c9(0x305)][_0x2811c9(0x1f5)]())==null?void 0x0:_0x2dc582[_0x2811c9(0x477)];if(!_0x5d9636)return;const _0x164cb3=this[_0x2811c9(0x148)]();if(!_0x164cb3)return;this[_0x2811c9(0x2bc)][_0x2811c9(0x37a)](_0x2e5563=>{const _0x353ecd=_0x2811c9;_0x2e5563[_0x353ecd(0x23c)]();});const {scene:_0x386a2c}=_0x164cb3,_0x37eefa=Ir(Array[_0x2811c9(0x25a)](_0x1e5ca0['values']()))[_0x2811c9(0x1a7)](_0x14ea0a=>{const _0x4b28c0=_0x2811c9,{color:_0x21ba85,range:_0x11136e,name:_0x10e757,selection:_0x3153e2,sheetID:_0x13e866}=_0x14ea0a,{startColumn:_0x24cb7f,startRow:_0x4a4b41,endColumn:_0x178e43,endRow:_0xc7b40f}=_0x11136e,_0x14b5a7=_0x1a9d48(_0x4a4b41,_0x24cb7f,_0x386a2c,_0x5d9636),_0x1e57bf=_0x1a9d48(_0xc7b40f,_0x178e43,_0x386a2c,_0x5d9636),{columnHeaderHeightAndMarginTop:_0xd043a4}=_0x5d9636,{startX:_0x190d16,startY:_0x298ca0}=_0x14b5a7,{endX:_0xd1b73,endY:_0x36974d}=_0x1e57bf,_0x2c18c6=_0xd1b73-_0x190d16,_0x1183d9=_0x36974d-_0x298ca0,_0x4a4556={'labelPosition':_0x298ca0-_0xd043a4>=Me?_0x4b28c0(0x1d5):'bottom','sheetID':_0x13e866,'range':_0x11136e,'color':_0x21ba85,'name':_0x10e757,'selection':_0x3153e2,'left':_0x190d16,'top':_0x298ca0,'width':_0x2c18c6,'height':_0x1183d9,'evented':!0x1,'zIndex':pr};return new mr(_0x10e757,_0x4a4556);});_0x386a2c[_0x2811c9(0x1ed)](_0x37eefa,dr),this[_0x2811c9(0x2bc)]=new Set(_0x37eefa);}[_0x1f5a54(0x34e)](){const _0x319ccc=_0x1f5a54;var _0x4f5e7a;(_0x4f5e7a=this[_0x319ccc(0x2bc)])==null||_0x4f5e7a[_0x319ccc(0x37a)](_0x4b8df8=>_0x4b8df8[_0x319ccc(0x26e)]());}[_0x1f5a54(0x148)](){const _0x4b6a98=_0x1f5a54;return _0x54e459(this[_0x4b6a98(0x357)],this[_0x4b6a98(0x168)]);}};Ve=vr([_0x182a37(_0x46c7aa[_0x1f5a54(0x3a3)],Ve),$e(0x0,_0x61a763(fe)),$e(0x1,_0x55bd21),$e(0x2,_0x8604c3),$e(0x3,_0x61a763(_0x5a1d7c))],Ve);function Ir(_0x1d9945){const _0x219c1d=_0x1f5a54,_0x48b286=new Map();return _0x1d9945[_0x219c1d(0x37a)](_0x3adf8d=>{const _0x22b725=_0x219c1d;if(_0x48b286['has'](_0x3adf8d[_0x22b725(0x324)])){const _0x5e3f2b=_0x48b286[_0x22b725(0x393)](_0x3adf8d[_0x22b725(0x324)]);_0x5e3f2b['name']+=',\x20'+_0x3adf8d[_0x22b725(0x40c)];}else _0x48b286[_0x22b725(0x22e)](_0x3adf8d[_0x22b725(0x324)],_0x3adf8d);}),Array[_0x219c1d(0x25a)](_0x48b286[_0x219c1d(0x410)]());}var A=function(){const _0x3d36c0=_0x1f5a54;return A=Object['assign']||function(_0x1c17e5){const _0x24e050=_0x2f7f;for(var _0x295e61,_0x3aa552=0x1,_0x4ab660=arguments[_0x24e050(0x2d6)];_0x3aa552<_0x4ab660;_0x3aa552++){_0x295e61=arguments[_0x3aa552];for(var _0x22420a in _0x295e61)Object[_0x24e050(0x2bd)][_0x24e050(0x35f)]['call'](_0x295e61,_0x22420a)&&(_0x1c17e5[_0x22420a]=_0x295e61[_0x22420a]);}return _0x1c17e5;},A[_0x3d36c0(0x1bb)](this,arguments);},Er=function(_0x24d8cb,_0x54445b){const _0x2ccdec=_0x1f5a54;var _0x36d776={};for(var _0x5db432 in _0x24d8cb)Object[_0x2ccdec(0x2bd)][_0x2ccdec(0x35f)][_0x2ccdec(0x25e)](_0x24d8cb,_0x5db432)&&_0x54445b[_0x2ccdec(0x295)](_0x5db432)<0x0&&(_0x36d776[_0x5db432]=_0x24d8cb[_0x5db432]);if(_0x24d8cb!=null&&typeof Object[_0x2ccdec(0x1d6)]=='function'){for(var _0x1aac50=0x0,_0x5db432=Object[_0x2ccdec(0x1d6)](_0x24d8cb);_0x1aac50<_0x5db432[_0x2ccdec(0x2d6)];_0x1aac50++)_0x54445b['indexOf'](_0x5db432[_0x1aac50])<0x0&&Object[_0x2ccdec(0x2bd)]['propertyIsEnumerable'][_0x2ccdec(0x25e)](_0x24d8cb,_0x5db432[_0x1aac50])&&(_0x36d776[_0x5db432[_0x1aac50]]=_0x24d8cb[_0x5db432[_0x1aac50]]);}return _0x36d776;},$t=_0x3c9976(function(_0x54624d,_0x908b7){const _0x4f4e8b=_0x1f5a54;var _0x475a3b=_0x54624d['icon'],_0x5d1726=_0x54624d['id'],_0x37b6e6=_0x54624d[_0x4f4e8b(0x37b)],_0x3c2d61=_0x54624d[_0x4f4e8b(0x22a)],_0x1319b3=Er(_0x54624d,[_0x4f4e8b(0x34a),'id',_0x4f4e8b(0x37b),_0x4f4e8b(0x22a)]),_0x55dcd8='univerjs-icon\x20univerjs-icon-'[_0x4f4e8b(0x2d0)](_0x5d1726,'\x20')[_0x4f4e8b(0x2d0)](_0x37b6e6||'')[_0x4f4e8b(0x397)](),_0x43eb7b=_0x446d4f('_'[_0x4f4e8b(0x2d0)](Tr()));return As(_0x475a3b,''[_0x4f4e8b(0x2d0)](_0x5d1726),{'defIds':_0x475a3b[_0x4f4e8b(0x450)],'idSuffix':_0x43eb7b[_0x4f4e8b(0x164)]},A({'ref':_0x908b7,'className':_0x55dcd8},_0x1319b3),_0x3c2d61);});function As(_0x155fce,_0x2ac97a,_0x162efb,_0x569eed,_0x1ae604){const _0x46d3a5=_0x1f5a54;return _0x41bd2c(_0x155fce[_0x46d3a5(0x33d)],A(A({'key':_0x2ac97a},Cr(_0x155fce,_0x162efb,_0x1ae604)),_0x569eed),(br(_0x155fce,_0x162efb)['children']||[])[_0x46d3a5(0x1a7)](function(_0x394cc1,_0x44486){const _0x520ab9=_0x46d3a5;return As(_0x394cc1,''[_0x520ab9(0x2d0)](_0x2ac97a,'-')[_0x520ab9(0x2d0)](_0x155fce[_0x520ab9(0x33d)],'-')[_0x520ab9(0x2d0)](_0x44486),_0x162efb,void 0x0,_0x1ae604);}));}function Cr(_0x4c1d7e,_0x146011,_0x3ed1f4){const _0x1c8dcf=_0x1f5a54;var _0x30c1e8=A({},_0x4c1d7e[_0x1c8dcf(0x277)]);_0x3ed1f4!=null&&_0x3ed1f4[_0x1c8dcf(0x280)]&&_0x30c1e8[_0x1c8dcf(0x332)]===_0x1c8dcf(0x280)&&(_0x30c1e8[_0x1c8dcf(0x332)]=_0x3ed1f4[_0x1c8dcf(0x280)]);var _0x15adda=_0x146011[_0x1c8dcf(0x450)];return!_0x15adda||_0x15adda[_0x1c8dcf(0x2d6)]===0x0||(_0x4c1d7e[_0x1c8dcf(0x33d)]===_0x1c8dcf(0x1ef)&&_0x30c1e8[_0x1c8dcf(0x216)]&&(_0x30c1e8[_0x1c8dcf(0x216)]=_0x30c1e8[_0x1c8dcf(0x216)]+_0x146011['idSuffix']),Object[_0x1c8dcf(0x1dc)](_0x30c1e8)['forEach'](function(_0x40f230){const _0x13c2c5=_0x1c8dcf;var _0x591f8d=_0x40f230[0x0],_0x5927ce=_0x40f230[0x1];typeof _0x5927ce==_0x13c2c5(0x3f2)&&(_0x30c1e8[_0x591f8d]=_0x5927ce['replace'](/url\(#(.*)\)/,_0x13c2c5(0x149)[_0x13c2c5(0x2d0)](_0x146011['idSuffix'],')')));})),_0x30c1e8;}function br(_0x3f75e5,_0x434afd){const _0xad3426=_0x1f5a54;var _0x369772,_0x17a335=_0x434afd[_0xad3426(0x450)];return!_0x17a335||_0x17a335[_0xad3426(0x2d6)]===0x0?_0x3f75e5:_0x3f75e5[_0xad3426(0x33d)]===_0xad3426(0x1e3)&&(!((_0x369772=_0x3f75e5[_0xad3426(0x3f7)])===null||_0x369772===void 0x0)&&_0x369772[_0xad3426(0x2d6)])?A(A({},_0x3f75e5),{'children':_0x3f75e5[_0xad3426(0x3f7)][_0xad3426(0x1a7)](function(_0x23265a){const _0x2f4f5a=_0xad3426;return typeof _0x23265a[_0x2f4f5a(0x277)]['id']==_0x2f4f5a(0x3f2)&&_0x17a335&&_0x17a335['indexOf'](_0x23265a[_0x2f4f5a(0x277)]['id'])>-0x1?A(A({},_0x23265a),{'attrs':A(A({},_0x23265a[_0x2f4f5a(0x277)]),{'id':_0x23265a['attrs']['id']+_0x434afd[_0x2f4f5a(0x470)]})}):_0x23265a;})}):_0x3f75e5;}function Tr(){const _0x529de4=_0x1f5a54;return Math[_0x529de4(0x339)]()[_0x529de4(0x196)](0x24)[_0x529de4(0x1b3)](0x2,0x8);}$t['displayName']=_0x1f5a54(0x1b7);var Rr={'tag':_0x1f5a54(0x1e8),'attrs':{'fill':_0x1f5a54(0x3df),'viewBox':'0\x200\x2016\x2016','width':_0x1f5a54(0x1a3),'height':_0x1f5a54(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f5a54(0x3ea)},'children':[{'tag':_0x1f5a54(0x38b),'attrs':{'stroke':_0x1f5a54(0x215),'d':_0x1f5a54(0x2be),'strokeLinecap':_0x1f5a54(0x1c3),'strokeLinejoin':_0x1f5a54(0x1c3),'strokeWidth':1.2}}]},{'tag':_0x1f5a54(0x1e3),'attrs':{},'children':[{'tag':_0x1f5a54(0x227),'attrs':{'id':_0x1f5a54(0x446)},'children':[{'tag':_0x1f5a54(0x38b),'attrs':{'fill':_0x1f5a54(0x21d),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x1f5a54(0x446)]},ys=_0x3c9976(function(_0x1fcaf4,_0x4e4316){return _0x41bd2c($t,Object['assign']({},_0x1fcaf4,{'id':'off-line-single','ref':_0x4e4316,'icon':Rr}));});ys[_0x1f5a54(0x307)]=_0x1f5a54(0x309);var Or={'tag':_0x1f5a54(0x1e8),'attrs':{'fill':'none','viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x1f5a54(0x1a3)},'children':[{'tag':'g','attrs':{'clipPath':_0x1f5a54(0x1c0)},'children':[{'tag':'path','attrs':{'stroke':_0x1f5a54(0x215),'d':_0x1f5a54(0x1c6),'strokeLinecap':_0x1f5a54(0x1c3),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1f5a54(0x1e3),'attrs':{},'children':[{'tag':_0x1f5a54(0x227),'attrs':{'id':_0x1f5a54(0x47c)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':_0x1f5a54(0x186)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Us=_0x3c9976(function(_0x57014b,_0x2278bb){const _0x211041=_0x1f5a54;return _0x41bd2c($t,Object[_0x211041(0x3fd)]({},_0x57014b,{'id':_0x211041(0x1e2),'ref':_0x2278bb,'icon':Or}));});Us['displayName']=_0x1f5a54(0x44f);const Dr='univer-online-status-icon',Pr=_0x1f5a54(0x140),wr=_0x1f5a54(0x3e4),Nr='univer-online',Mr=_0x1f5a54(0x2ec),be={'onlineStatusIcon':Dr,'onlineStatusTitle':Pr,'onlineStatus':wr,'online':Nr,'offline':Mr};function Ar(_0x26660a){const _0x5c9d7c=_0x1f5a54;switch(_0x26660a){case w[_0x5c9d7c(0x243)]:return'collabStatus.offline';case w['CONFLICT']:return'collabStatus.conflict';case w[_0x5c9d7c(0x468)]:return _0x5c9d7c(0x1a6);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x5c9d7c(0x3e3)]:case w[_0x5c9d7c(0x45b)]:case w['AWAITING_WITH_PENDING']:return _0x5c9d7c(0x2d4);case w[_0x5c9d7c(0x3a7)]:return _0x5c9d7c(0x2e9);}}function yr(_0x31d324){const _0x3eefad=_0x1f5a54,{status$:_0x1e3912}=_0x31d324,_0x2a5d01=_0x34ebf9(_0x1e3912,w['NOT_COLLAB']),_0x2e6d22=_0x32bad8(_0x4eec6f),_0x33a8cf=_0x2a5d01!==w[_0x3eefad(0x243)],_0xc89b0e=_0x2e6d22['t'](Ar(_0x2a5d01)),_0xe52ad4=_0x2d6edb(be['onlineStatus'],{[be['online']]:_0x33a8cf,[be[_0x3eefad(0x2c8)]]:!_0x33a8cf}),_0x4ff76e=_0x33a8cf?_0x25f2cb[_0x3eefad(0x153)](Us,null):_0x25f2cb[_0x3eefad(0x153)](ys,null);return _0x25f2cb[_0x3eefad(0x153)](_0x3eefad(0x2af),{'className':_0xe52ad4},_0x25f2cb['createElement'](_0x3eefad(0x2af),{'className':be[_0x3eefad(0x2dc)]},_0x4ff76e),_0x25f2cb[_0x3eefad(0x153)](_0x3eefad(0x2af),{'className':be[_0x3eefad(0x361)]},_0xc89b0e));}var Ur=Object[_0x1f5a54(0x29f)],Lr=Object['getOwnPropertyDescriptor'],$r=(_0x40b122,_0x1a5669,_0x1aa82b,_0x29894d)=>{for(var _0x5e80e0=_0x29894d>0x1?void 0x0:_0x29894d?Lr(_0x1a5669,_0x1aa82b):_0x1a5669,_0x3c00f8=_0x40b122['length']-0x1,_0x33d900;_0x3c00f8>=0x0;_0x3c00f8--)(_0x33d900=_0x40b122[_0x3c00f8])&&(_0x5e80e0=(_0x29894d?_0x33d900(_0x1a5669,_0x1aa82b,_0x5e80e0):_0x33d900(_0x5e80e0))||_0x5e80e0);return _0x29894d&&_0x5e80e0&&Ur(_0x1a5669,_0x1aa82b,_0x5e80e0),_0x5e80e0;},je=(_0x2233a2,_0x4bacf3)=>(_0x220bca,_0x53a9e0)=>_0x4bacf3(_0x220bca,_0x53a9e0,_0x2233a2);function _0x2454(){const _0x2f5e1a=['data','column','_updateLocalCache','hide','currentSkeleton$','_onConflict','selections','LICENSE_IMPORT_SIZE_EXCEEDED','UNAUTHENTICATED','red300','div','_exhaustRemoteChangesetQueue','socketService','executeCommand','result','PERMISSION_DENIED','_transformRemoteChangesetByIMECache','_startSheetCollabCursor','session.collaboration-timeout','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_removeClearOtherTimer','_syncEditingCollabCursorService','updatePermissionPoint','_cursors','prototype','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','_updateLocalCursor','_beforeCloseService','_collabCursorState$','row','backgroundColor','_undoRedoService','getCollabEntity','updateCollaborator','gold400','offline','appendMutation','_getSnapshotAPIPrefix','_clearTimeoutTimer','onPointerEnter$','_replayCachedMutations','_unlockTransition','eventID','concat','[OfflineState]:\x20received\x20rejection.','\x20to\x20','Error\x20on\x20receiving\x20event','collabStatus.syncing','_shapes','length','_onRefRangeChange','SUBMIT_CHANGESET','subscribe','_httpService','routeKey','onlineStatusIcon','collaMsg','30324ydADwI','getWorkbookSelections','then','whenReady','_getSignURL','conflict.content','_HTTPService','addObject','/universer-api/oidc/authpage','pending','_notificationService','collabStatus.synced','focused$','_docStateChangeManagerService','univer-offline','_urlService','assignAColorForMemberID','OTHER_CLIENTS_EDITING','memberID','903764KoTQgK','clear','LOGIN_URL_KEY','objects','NEW_CHANGESETS','_updateURLWithCurrentState','_saveTaskMap','/object','10cwNoBA','_refRangeService','failed\x20to\x20apply\x20missed\x20changesets!','_onConnectionOpen','ERROR_EXCEED_SIZE','_sendingTimer','_handleHover','transformIMECache','_retryCount','LICENSE_MAX_UNITS_EXCEEDED','getTypeOfUnitDisposed$','_updateCollabCursors','_sheetSkeletonManagerService','_createInitialState','displayName','_logService','OffLineSingle','?size=','drawWith','all','_lockTransition','reject','updateMember','push','_colorAssignService','_cursor','_sheetTransformSelectionsService','objectType','UNIVER_DOC','_onCursorUpdate','_hovered','_id','debug','getSheetId','setParam','_waitCount','_disabled','cursorInfo','_state','UNIVER_SHEET','getValue','_acknowledgedAwaitingChangeset','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','selection','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_scheduleHeartbeat','_transformService','generateRandomId','_showConflictNotification','_collaborationPaused','getAncestorScale','onSyncEditingCollabCursor','history','_saveCache','unit','getMergeData','findNodePositionByCharIndex','fill','updatePermissionObjEvent','_range','split','resolve','pushState','conflict','random','_socketService','onPointerMove$','connection\x20error','tag','init','patch','_assignedColors','subscribeEvent','/new_changes','width','COMPRESS_MUTATION_SEND','_snapshotService','USERS_ENTER','triggerDblclick','transformRemoteChangeset','m2Prime','icon','HEARTBEAT','_getAnchorBounding','transformMutation','_removeCollabCursors','COMPLETION_FINISHED','liveShareNewHost','rgba(255,\x20255,\x20255,\x200.01)','APPLY_NON_SEQUENTIAL_REVISION','registerBeforeClose','clearTimeout','fetchMissingChangesets','_startDocCollabCursor','_univerInstanceService','INGEST','_submitChangeset','YUUMI_URL_COL_OUT_OF_RANGE','getDataModel','revision','editingUnit','/unit/','hasOwnProperty','SUCCUSS','onlineStatusTitle','isPermissionRej','setTimeout','[CollaborationSessionService]','compose','Starting','_getScale','_undoStacks','getUnitOnRev','_getAPIPrefixPath','setShapeProps','_http','_unitOnClients','_getDocObject','file','_labelPosition','COMPRESS_MUTATION_APPLY','_checkMissing','_unitID','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_disableEditing','sessionStatus$','10927356oCXvSt','FAIL','_onConnectionFailed','forEach','className','setUndoRedoMutationParamsCache','MoveRangeCommandId','INTERNAL_ERROR','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','getVpScrollXYInfoByPosToVp','_hideTimer','APPLY_PERMISSION_DENIED','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_clearOtherTimers','getMemberID','_compressMutationService','_drawRange','createCollaborator','CHANGESET_REJ','roomMembers','path','action','UNKNOWN_CODE','toRgbString','_onRemoteACK','readAsDataURL','_initMergeInterceptor','resend','get','_commentUpdate$','/-/object/-/batch_allowed','interceptor','trim','csAckEvent','_docSkeletonManagerService','body','next','onTransformIME','listRoles','onCommandExecuted','commentUpdate$','registerComponent','updateCursorEvent','getTime','Steady','userID','delete','_localeService','SYNCED','cmd','text','_createSocket','_transformIMECache','_clearCollaborationTimeoutTimer','...','_updateState','ranges','fillStyle','_onJoinRoomEvent','FileId','_pendingMutations','getCellPositionByOffset','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_init','13544JvcXMb','_applyRemoteChangeset','_initUnitPermissionChange','_remoteChangesetQueue','originalMeta','5271kFlBVj','message$','setActiveRange','[PendingState]:\x20unhandled\x20univer\x20type:\x20','add','roomMembers$','getViewport','ws://127.0.0.1:8000/universer-api/comb/connect','catch','synced','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_timeoutTimer','_getCtorByUniverType','901338hNVsgw','includes','_sessions','getOwnPropertyDescriptor','dispose$','_scheduleReconnection','\x20-\x20','unsubscribe','image/jpg','method','_executeRemoteChangeset','transformChangesets','restore','APPLY_REJECT','_clearLocalCache','size','batchAllowed','members','_injector','_collabSessionService','min','_imageSourceCache','none','isEditing','measureText','fillRule','PENDING','univer-online-status','[CollaborationEntity]','LIVESHARE_OPERATION','UNIVER_COLLABORATION_CLIENT_PLUGIN','popstate','awaiting_with_pending','url(#off-line-single_clip0_910_343)','baseRev','with','getFocusedUnit','SNAPSHOT_INVALID_SNAPSHOT','params','state$','_docSyncEditingCollabCursorService','string','getActiveRange','key','_incrementRevisionNumber','getInterceptPoints','children','unitId','_collabCursorController','disableLocalCache','_onRemoteRejected','_heartbeatTimer','assign','_getSendChangesetTimeout','_substituteRedoStack','type','_anchor','_handleEvent','event$','pluginName','ONLINE','_getMergeRange','POST','_joinRoom','image/png','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[SyncedState]:\x20received\x20acknowledgement.','name','COLLAB_SUBMIT_CHANGESET_URL','url','_backgroundColor','values','_userManagerService','UPDATE_CURSOR','_color','_collaborationController','allowed','_collaborationSessionService','saveSnapshot','_textBubble','error','status$','some','stringify','startsWith','encode','[CollaborationSession]','_removeRoom','PSEUDO_FETCH_MISSING_RESULT','LEAVE','enableOfflineEditing','complete','UNDEFINED','UUID','_sessionStatus$','color','IDLE','enableAuthServer','USERS_LEAVE','onlyLocal','UPDATE_PERMISSION_OBJ','getImageSourceCache','change$','_scheduleTimestamp','getCollabEntity$','getImage','_name','filter','onCommentUpdate','startColumn','removeMember','startRow','lineTo','show','/universer-api/snapshot/','COMMENT_UPDATE','toggleOffline','_initStatusListener','_transformUndoRedoStack','getCurrentUnitForType','_getUndoStack','/collaborator','VIEW_MAIN','_draw','_updateSubUnitFromURLParams','off-line-single_clip0_910_343','[FetchMissState]','HEARTBEAT_TIMEOUT','image/jpeg','max','_messageService','_clearHeartbeatTimer','HEADER_MENU','_redoStacks','OnLineSingle','defIds','[CollaborationState]:\x20apply\x20error!','session','status','c1Prime','loadSheet','getUnitType','_entities','registerHTTPInterceptor','_revisionService','_retryConnectingTimer','AWAITING','beginPath','arc','commentUpdateEvent','_loadDoc','socket\x20open.','transformMutationsWithChangeset','_getCurrentRevision','contains','_uiPartsService','_status$','mutations','_schedule','FETCH_MISS','_scheduleClearOtherTimer','RECV','responseType','getUniverSheetInstance','_onUserJoin','requireSession','_createInitialStateImpl','idSuffix','UNIVER_UNKNOWN','_onLocalMutation','loadOfflineData','fetchThroughInterceptors','[CollaborationUndoRedoService]','CONNECTOR_DATA_TOO_LARGE','skeleton','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sheets','_localStorageService','_onUserLeave','on-line-single_clip0_910_349','univer-online-status-title','/universer-api/stream/file/upload','enableSingleActiveInstanceLock','onTransformSelections','_online','createInstance','newValue','SNAPSHOT_SERVER_URL_KEY','_getSheetObject','url(#$1','_type','LOCAL_CACHE_INTERVAL','doc.mutation.rich-text-editing','UNKNOWN_CMD','setItem','/universer-api/comb','isArray','_getLoginPath','_getSaveTimeout','createElement','image/gif','collabCursorState$','_snapshotServerService','_entityInit$','height','_session','location','put','subunit','target','_setupSubUnitSync','syncEditingCollabCursor','submit\x20changeset\x20error!','DeleteRangeMoveLeftCommandId','clearInterval','HEARTBEAT_INTERVAL','current','_themeService','YUUMI_UNABLE_LOAD_URL','close$','_renderManagerService','unknown','_initStatusComponent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_selfUnitIDs','_initModules','getRangePointData','updateOfflineData','InsertRowCommandId','JOINING','_cursorInfo$','state','ERROR_IMAGE','_docSkeleton','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_awaitingChangeset','_scene','/universer-api/snapshot','activeSheet$','NOT_COLLAB','find','_handleHeartbeatEvent','_syncEditingCollabCursor','Warning','pipe','conflict.title','session.room-full','requestParams','/-/object/list','/universer-api/file/{fileID}/sign-url','translate(.97)','_render','title','blue400','onRemoteRej','/object/','labelPosition','[UniverCollaborationClientPlugin]','_members','fillText','getUndoRedoMutationParamsCache','_transformSelections','_roomMembers$','src','disposeWithMe','_ws','toString','InsertRangeMoveRightCommandId','createSocket','subUnitId','[OfflineState]:\x20received\x20acknowledgement.','_transformStack','slice','unit-cache-','getConfig','onTransformRemoteChangesetByIMECache','_isPermissionRej','getRenderById','_onCombEvent','1em','infoRsp','isActive','collabStatus.fetchMiss','map','localeService','_ensureSubject','searchParams','setWaitCount','COLLAB_WEB_SOCKET_URL','evenodd','_hover','_onRecvEvent','_startCollaboration','actions','LICENSE_EXPORT_SIZE_EXCEEDED','substring','_docTransformSelectionsService','send','pauseCollaboration','UniverIcon','fetch_missing','LIVESHARE_NEW_HOST','_permissionService','apply','LICENSE_DISTRO_REJECTED','objectID','_onCursorDelete','post','url(#on-line-single_clip0_910_349)','_substituteUndoStack','docStateChange$','round','getCurrentUser','_replaceFileID','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','range','RETRY_CONNECTING_INTERVAL','_handleLeaveEvent','_getAPIPrefix','_updateStatus','JOIN','UNRECOGNIZED','3328839kkodfd','_scheduleCollaborationTimeoutTimer','saveOfflineData','_queuedRemoteChangesets','close','json','storage','top','getOwnPropertySymbols','_handler','has','_socketReady','FETCH_MISSING','DeleteRangeMoveUpCommandId','entries','1439499xDOTrP','collaborationUniverTypes','LIVESHARE_FETCH_OPERATIONS','_clearUndo','FromArray','on-line-single','defs','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','href','deepClone','[DataLoaderController]','svg','rev','_unitStatus','onSendChangeset','_getUploadFileURL','addObjects','create','use','UNIVER_SLIDE','saveChangeset','18kqJYdO','_drawAnchor','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','getCurrent','_createHandler','_handleJoinEvent','_event$','getParam','_transformPreviousActiveRange','getTypeOfUnitAdded$','m1Prime','getItem','TOO_MANY_REQUESTS','getUnhiddenWorksheets','symbol','onRemoteChangeset','_setupBeforeClosingHandler','roles','getViewModel','_getRedoStack','joinRsp','_colorIndex','getCurrentSelections','_initCloseConn','_state$','LIVESHARE_REQUEST_HOST','_configService','_docTransformIMECacheService','replaceState','10dZWhaW','_roomMembers','withCredentials','objectActions','unitID','APPLY_REVISION_CONFILICT','currentColor','xlink:href','_tryEnsureSocket','onStateChange','_eventUnsubscribe','flatMap','_transitionLocked','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','#fff','_onMessage','toggleOnline','roomInfos','leaveEvent','_rescheduleHeartbeatEvent','onMissedChangesetFetched','AWAITING_WITH_PENDING','AUTHZ_URL_KEY','_onFetchMissResult','clipPath','NO_OTHER_CLIENTS_EDITING','16133nVWVLK','extend','_clearScheduledTask','_toggleOnline','_clearRedo','set','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','HELLO','permission.title','getSheetBySheetId','listCollaborators','transformSelections','replace','getCurrentRevForDocument','MSG_FOR_ERROR','_sendHeartbeatTimer','NOT_FOUND','[PendingState]:\x20received\x20acknowledgement.','onMouseMove','makeDirty','onStarting','Unknown\x20user','onRemoteAck','awaiting','_loadSheet','onPointerLeave$','OFFLINE','_singleActiveUnitService','DEFAULT_FILE_NAME','jiqing500','RemoveColCommandId','collaboratorID','sheetId','\x0aCurrent:\x20','_waitForHeartbeatResponse','_localCacheService','_socket$','&to=','addImageSourceCache','_sendHeartbeat','getRelativeToViewportCoord','/universer-api/authz','getUnitStatus$','univer-pro.collaboration-client.single-active-unit-service','_scheduleSaving','collaborators','closeSession','ACTIVE_UNIT_EVENT_CHANNEL','LIVESHARE_TERMINATE','from','RETRY_CONNECTING_MAX_COUNT','getCollabCursors$','_anchorDot','call','transformUndoRedo','_transformUndoredo','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','changesets','_lastPointer','transformByState','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','awaitingChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_collaborationTimeoutTimer','save','Univer','asObservable','_onRemoteChangeset','RemoveRowCommandId','dispose','_config','exhaustSavingTask','INVALID_ARGUMENT','endColumn','font','session.will-retry','code','unload','attrs','CHANGESET_REVISION_CONFILICT','textRanges','registerRefRange','csRejEvent','black','[OfflineState]:\x20received\x20changeset.','CHANGESET_ACK','_send','colorChannel1','univer-pro.collaboration-client-socket-service','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','unshift','BASE64','SNAPSHOT_HAS_BEEN_REMOVED','Error','currentTheme$','error$','_fetchMissChangesets','PERMISSION_REJ','moveTo','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_commentService','MUTATION','headers','urlChange$','_cachedData','_unitId','_change$','deleteCollaborator','indexOf','cursorInfo$','2SMhvkz','ALREADY_EXISTS','_commandService','_toggleOffline','_decreaseWaiting','editing\x20status\x20changed\x20to','getMember','/rev/','defineProperty','_memberService','_socketMessageSubscription','getUnitId','sessionStatus','_socket'];_0x2454=function(){return _0x2f5e1a;};return _0x2454();}let ke=class extends _0x462626{constructor(_0x11713b,_0x1e7c5e,_0x6a53c9,_0x2a6b6e){const _0x5c7db6=_0x1f5a54;super(),l(this,_0x5c7db6(0x465),new _0x24a55e(w['NOT_COLLAB'])),(this[_0x5c7db6(0x357)]=_0x11713b,this[_0x5c7db6(0x464)]=_0x1e7c5e,this['_injector']=_0x6a53c9,this['_collaborationController']=_0x2a6b6e,this[_0x5c7db6(0x16a)](),this[_0x5c7db6(0x43e)]());}[_0x1f5a54(0x16a)](){const _0x193793=_0x1f5a54;this[_0x193793(0x194)](this[_0x193793(0x464)][_0x193793(0x3a0)](_0x184510[_0x193793(0x44d)],()=>_0x2bdedc(jr({'status$':this[_0x193793(0x465)][_0x193793(0x26b)]()}),this[_0x193793(0x3db)])));}[_0x1f5a54(0x43e)](){const _0x12aa05=_0x1f5a54;this[_0x12aa05(0x194)](_0x5d3cf2(this[_0x12aa05(0x357)][_0x12aa05(0x2ea)]['pipe'](_0x44b0e5(()=>{const _0xbe1551=_0x12aa05,_0x24140a=this[_0xbe1551(0x357)][_0xbe1551(0x3ed)]();return _0x24140a?this[_0xbe1551(0x414)][_0xbe1551(0x431)](_0x24140a[_0xbe1551(0x2a2)]()):_0x110ce6(null);}),_0x44b0e5(_0x2b2053=>_0x2b2053?_0x2b2053[_0x12aa05(0x41a)]:_0x110ce6(w[_0x12aa05(0x17b)])))[_0x12aa05(0x2d9)](_0x371c17=>{const _0x15ba6c=_0x12aa05;this[_0x15ba6c(0x465)][_0x15ba6c(0x39b)](_0x371c17);})));}};ke=$r([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],ke),je(0x0,_0x55bd21),je(0x1,_0x16c51a),je(0x2,_0x61a763(_0x2e9f94)),je(0x3,_0x61a763(De))],ke);function jr(_0x598512){const {status$:_0x2b13d8}=_0x598512;return function(){return _0x25f2cb['createElement'](yr,{'status$':_0x2b13d8});};}const Ls=_0x2b1b05('uni.network.url-service');var Hr=Object[_0x1f5a54(0x29f)],xr=Object[_0x1f5a54(0x3cc)],Fr=(_0x3e1d1a,_0x424c9e,_0x77c23c,_0x29c568)=>{for(var _0x400fae=_0x29c568>0x1?void 0x0:_0x29c568?xr(_0x424c9e,_0x77c23c):_0x424c9e,_0x31dcf5=_0x3e1d1a['length']-0x1,_0x5d2f35;_0x31dcf5>=0x0;_0x31dcf5--)(_0x5d2f35=_0x3e1d1a[_0x31dcf5])&&(_0x400fae=(_0x29c568?_0x5d2f35(_0x424c9e,_0x77c23c,_0x400fae):_0x5d2f35(_0x400fae))||_0x400fae);return _0x29c568&&_0x400fae&&Hr(_0x424c9e,_0x77c23c,_0x400fae),_0x400fae;},le=(_0x504da7,_0x43b6ab)=>(_0x16d08b,_0x5558b2)=>_0x43b6ab(_0x16d08b,_0x5558b2,_0x504da7);let Be=class extends _0x5915f1{constructor(_0x41b174,_0x41ab2c,_0x58aca8,_0x235454,_0x19ab29,_0x2b01e9){const _0x45781c=_0x1f5a54;super(),this[_0x45781c(0x2ed)]=_0x41b174,this[_0x45781c(0x308)]=_0x41ab2c,this[_0x45781c(0x299)]=_0x58aca8,this[_0x45781c(0x24c)]=_0x235454,this['_snapshotService']=_0x19ab29,_0x2b01e9?_0x2b01e9==null||_0x2b01e9[_0x45781c(0x2e1)]()[_0x45781c(0x2e0)](()=>this['_init']()):(this[_0x45781c(0x308)][_0x45781c(0x319)](_0x45781c(0x1e7),_0x45781c(0x265)),this[_0x45781c(0x3b6)]());}async['_init'](){const _0x200853=_0x1f5a54,_0x2b8aec=this[_0x200853(0x2ed)][_0x200853(0x1f9)](_0x200853(0x32f)),_0x8fdc30=this[_0x200853(0x2ed)][_0x200853(0x1f9)](_0x200853(0x400));if(!_0x2b8aec||!_0x8fdc30){this[_0x200853(0x308)][_0x200853(0x319)](_0x200853(0x1e7),_0x200853(0x16b));return;}switch(Number(_0x8fdc30)){case H[_0x200853(0x320)]:{const _0x1ff33a=await this[_0x200853(0x241)](_0x2b8aec);this['_setupSubUnitSync'](_0x1ff33a);break;}case H[_0x200853(0x315)]:{await this[_0x200853(0x45f)](_0x2b8aec);break;}default:{this[_0x200853(0x308)][_0x200853(0x419)](_0x200853(0x1e7),_0x200853(0x40a));break;}}}async[_0x1f5a54(0x15e)](_0x26914f){const _0x47aa4b=_0x1f5a54;await this['_updateSubUnitFromURLParams'](_0x26914f),_0x26914f[_0x47aa4b(0x17a)][_0x47aa4b(0x180)](_0x57fb4a(this['dispose$']))['subscribe'](_0xaad1c9=>{const _0x4f25dc=_0x47aa4b;_0xaad1c9&&this[_0x4f25dc(0x2f6)](_0xaad1c9);}),this[_0x47aa4b(0x2ed)][_0x47aa4b(0x290)][_0x47aa4b(0x180)](_0x57fb4a(this[_0x47aa4b(0x3cd)]))[_0x47aa4b(0x2d9)](()=>this[_0x47aa4b(0x445)](_0x26914f));}[_0x1f5a54(0x2f6)](_0x289152,_0x296291=!0x1){const _0x3c792e=_0x1f5a54,_0x4a68db=this[_0x3c792e(0x2ed)]['getParam'](_0x3c792e(0x15c));_0x289152[_0x3c792e(0x31a)]()!==_0x4a68db&&this[_0x3c792e(0x2ed)][_0x3c792e(0x31b)](_0x3c792e(0x15c),_0x289152[_0x3c792e(0x31a)](),_0x296291);}async['_updateSubUnitFromURLParams'](_0x4ea859){const _0x1d2663=_0x1f5a54;var _0x5c9aa6;const _0x44c566=this[_0x1d2663(0x2ed)]['getParam'](_0x1d2663(0x15c));if(!_0x44c566||!_0x4ea859[_0x1d2663(0x232)](_0x44c566)){const _0x3b5f33=_0x4ea859[_0x1d2663(0x1ff)]()[0x0],_0x1d81c7=_0x4ea859[_0x1d2663(0x232)](_0x3b5f33);if(!_0x1d81c7)return;this['_updateURLWithCurrentState'](_0x1d81c7,!0x0),await this['_commandService']['executeCommand'](_0x436c7c['id'],{'unitId':_0x4ea859[_0x1d2663(0x2a2)](),'subUnitId':_0x3b5f33});return;}((_0x5c9aa6=_0x4ea859['getActiveSheet']())==null?void 0x0:_0x5c9aa6[_0x1d2663(0x31a)]())!==_0x44c566&&await this['_commandService'][_0x1d2663(0x2b2)](_0x436c7c['id'],{'unitId':_0x4ea859[_0x1d2663(0x2a2)](),'subUnitId':_0x44c566});}async[_0x1f5a54(0x241)](_0x3a1b68){const _0x2e1850=_0x1f5a54;let _0x51e41a=0x0;const _0x9f4b31=await this[_0x2e1850(0x24c)][_0x2e1850(0x473)](_0x3a1b68);return _0x9f4b31&&(_0x9f4b31[_0x2e1850(0x266)]||_0x9f4b31[_0x2e1850(0x466)][_0x2e1850(0x2d6)]!==0x0)&&(_0x51e41a=_0x9f4b31[_0x2e1850(0x1e9)]),_0x51e41a===0x0&&this['_logService'][_0x2e1850(0x319)](_0x2e1850(0x1e7),_0x2e1850(0x2b8)),this[_0x2e1850(0x345)][_0x2e1850(0x455)](_0x3a1b68,_0x51e41a);}async[_0x1f5a54(0x45f)](_0x279686){const _0xb00588=_0x1f5a54;let _0x4a5752=0x0;const _0x3f45b2=await this['_localCacheService']['loadOfflineData'](_0x279686);return _0x3f45b2&&(_0x3f45b2[_0xb00588(0x266)]||_0x3f45b2[_0xb00588(0x466)][_0xb00588(0x2d6)]!==0x0)&&(_0x4a5752=_0x3f45b2['rev']),_0x4a5752===0x0&&this[_0xb00588(0x308)][_0xb00588(0x319)](_0xb00588(0x1e7),_0xb00588(0x2b8)),this[_0xb00588(0x345)]['loadDoc'](_0x279686,_0x4a5752);}};Be=Fr([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],Be),le(0x0,Ls),le(0x1,_0x3e33de),le(0x2,_0x257ce4),le(0x3,_0x61a763(D)),le(0x4,_0x61a763(_0x13134a)),le(0x5,_0x455db1(_0x49344d))],Be);var Vr=Object[_0x1f5a54(0x29f)],kr=Object['getOwnPropertyDescriptor'],Br=(_0x343482,_0x511f68,_0x12a823,_0x540670)=>{const _0x3d9958=_0x1f5a54;for(var _0x15ba45=_0x540670>0x1?void 0x0:_0x540670?kr(_0x511f68,_0x12a823):_0x511f68,_0x1bd12b=_0x343482[_0x3d9958(0x2d6)]-0x1,_0x48c02f;_0x1bd12b>=0x0;_0x1bd12b--)(_0x48c02f=_0x343482[_0x1bd12b])&&(_0x15ba45=(_0x540670?_0x48c02f(_0x511f68,_0x12a823,_0x15ba45):_0x48c02f(_0x15ba45))||_0x15ba45);return _0x540670&&_0x15ba45&&Vr(_0x511f68,_0x12a823,_0x15ba45),_0x15ba45;},ss=(_0x22ab45,_0x40ac70)=>(_0x54a8df,_0x3ef2d7)=>_0x40ac70(_0x54a8df,_0x3ef2d7,_0x22ab45);const Wr=_0x1f5a54(0x245),Gr=_0x1f5a54(0x26a);let We=class extends _0x462626{constructor(_0x29e431,_0x51ebaa){const _0x135d26=_0x1f5a54;super(),this[_0x135d26(0x357)]=_0x29e431,this[_0x135d26(0x20c)]=_0x51ebaa,this['_init']();}[_0x1f5a54(0x3b6)](){const _0x401697=_0x1f5a54;this[_0x401697(0x194)](_0x5d3cf2(this['_univerInstanceService'][_0x401697(0x2ea)][_0x401697(0x2d9)](()=>{const _0x387461=_0x401697;var _0x24e003;const _0x507c1c=this[_0x387461(0x357)][_0x387461(0x3ed)]();let _0x21008f=(_0x24e003=this[_0x387461(0x20c)][_0x387461(0x19e)](Wr))!=null?_0x24e003:Gr;_0x507c1c instanceof _0x40f416&&(_0x21008f=_0x507c1c['name']),document[_0x387461(0x188)]=_0x21008f;})));}};We=Br([_0x182a37(_0x46c7aa['Ready'],We),ss(0x0,_0x55bd21),ss(0x1,_0x43c997)],We);var Yr=Object[_0x1f5a54(0x29f)],Kr=Object[_0x1f5a54(0x3cc)],Xr=(_0x15c1d4,_0x22d6c0,_0x4f1de7,_0xa5642b)=>{const _0x117c7f=_0x1f5a54;for(var _0x28bc81=_0xa5642b>0x1?void 0x0:_0xa5642b?Kr(_0x22d6c0,_0x4f1de7):_0x22d6c0,_0x242a6a=_0x15c1d4[_0x117c7f(0x2d6)]-0x1,_0x1606f6;_0x242a6a>=0x0;_0x242a6a--)(_0x1606f6=_0x15c1d4[_0x242a6a])&&(_0x28bc81=(_0xa5642b?_0x1606f6(_0x22d6c0,_0x4f1de7,_0x28bc81):_0x1606f6(_0x28bc81))||_0x28bc81);return _0xa5642b&&_0x28bc81&&Yr(_0x22d6c0,_0x4f1de7,_0x28bc81),_0x28bc81;},is=(_0x5235a0,_0x1319ec)=>(_0x2be2c1,_0x2d9f89)=>_0x1319ec(_0x2be2c1,_0x2d9f89,_0x5235a0);let Ct=class{constructor(_0x1c7561,_0x736387){this['_configService']=_0x1c7561,this['_httpService']=_0x736387;}async[_0x1f5a54(0x369)](_0x13280f,_0xdd62d){const _0x682d2f=_0x1f5a54;var _0x2d1095;const {unitID:_0x22339e,type:_0x450357,revision:_0x39f1f0=0x0}=_0xdd62d,_0x65ec33=this[_0x682d2f(0x2ca)]()+'/'+_0x450357+_0x682d2f(0x35e)+_0x22339e+_0x682d2f(0x29e)+_0x39f1f0,_0x4135f2=(await this[_0x682d2f(0x2da)][_0x682d2f(0x393)](_0x65ec33))[_0x682d2f(0x39a)],_0x172e85=(_0x2d1095=_0x4135f2['snapshot'])==null?void 0x0:_0x2d1095['workbook'];if(_0x172e85){const _0x55bfcb=_0x172e85==null?void 0x0:_0x172e85['originalMeta'],_0x425471=_0x4823f1[_0x682d2f(0x41e)](_0x5dde85(_0x55bfcb));_0x172e85[_0x682d2f(0x3bb)]=_0x425471,Object['entries'](_0x172e85[_0x682d2f(0x479)])[_0x682d2f(0x37a)](([,_0x5670e7])=>{const _0x1861c5=_0x682d2f,_0x1c6bf4=_0x5670e7[_0x1861c5(0x3bb)],_0x5edfb2=_0x4823f1[_0x1861c5(0x41e)](_0x5dde85(_0x1c6bf4));_0x5670e7['originalMeta']=_0x5edfb2;});}return _0x4135f2;}async['getSheetBlock'](_0x160ac5,_0x42115b){const _0x430bb9=_0x1f5a54,{unitID:_0x4695b5,type:_0x2a0f8c,blockID:_0x4efebe}=_0x42115b,_0x44a6ef=this[_0x430bb9(0x1ca)]()+'/'+_0x2a0f8c+_0x430bb9(0x35e)+_0x4695b5+'/block/'+_0x4efebe;return(await this['_httpService']['get'](_0x44a6ef))[_0x430bb9(0x39a)];}async[_0x1f5a54(0x355)](_0x586f34,_0x448587){const _0x52576a=_0x1f5a54,{unitID:_0x1e87a4,type:_0x12353b,from:_0xd2d297,to:_0x20be7f}=_0x448587,_0xabaf8e=this[_0x52576a(0x1ca)]()+'/'+_0x12353b+_0x52576a(0x35e)+_0x1e87a4+'/fetchmissing?from='+_0xd2d297+_0x52576a(0x24e)+_0x20be7f;return(await this[_0x52576a(0x2da)][_0x52576a(0x393)](_0xabaf8e))[_0x52576a(0x39a)];}[_0x1f5a54(0x2ca)](){const _0x23368d=_0x1f5a54;var _0x5cbcf7;return(_0x5cbcf7=this[_0x23368d(0x20c)][_0x23368d(0x19e)](Qi))!=null?_0x5cbcf7:this['_getAPIPrefix']();}[_0x1f5a54(0x1ca)](){const _0x3a203c=_0x1f5a54;var _0x384481;return(_0x384481=this[_0x3a203c(0x20c)][_0x3a203c(0x19e)](zi))!=null?_0x384481:Zi;}async['getResourcesRequest'](_0x39fb41,_0x2a6d24){const _0x305cca=_0x1f5a54,_0xf2d801=_0x305cca(0x43b)+_0x2a6d24[_0x305cca(0x400)]+_0x305cca(0x35e)+_0x2a6d24[_0x305cca(0x213)]+'/resources';return(await this[_0x305cca(0x2da)][_0x305cca(0x393)](_0xf2d801,{'params':{'resourceId':JSON[_0x305cca(0x41c)](_0x2a6d24['resourceIDs'])}}))['body'];}[_0x1f5a54(0x417)](){const _0x5b78ba=_0x1f5a54;throw new Error(_0x5b78ba(0x478));}['saveSheetBlock'](){const _0x20b94c=_0x1f5a54;throw new Error(_0x20b94c(0x478));}[_0x1f5a54(0x1f1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ct=Xr([is(0x0,_0x43c997),is(0x1,_0x61a763(_0x11da14))],Ct);var Jr=Object['defineProperty'],qr=Object[_0x1f5a54(0x3cc)],zr=(_0x57691b,_0x28f4e6,_0x1642ac,_0x36b639)=>{for(var _0x4d64eb=_0x36b639>0x1?void 0x0:_0x36b639?qr(_0x28f4e6,_0x1642ac):_0x28f4e6,_0x2ce704=_0x57691b['length']-0x1,_0x49e099;_0x2ce704>=0x0;_0x2ce704--)(_0x49e099=_0x57691b[_0x2ce704])&&(_0x4d64eb=(_0x36b639?_0x49e099(_0x28f4e6,_0x1642ac,_0x4d64eb):_0x49e099(_0x4d64eb))||_0x4d64eb);return _0x36b639&&_0x4d64eb&&Jr(_0x28f4e6,_0x1642ac,_0x4d64eb),_0x4d64eb;},Te=(_0xc1a7fb,_0x3dc8e1)=>(_0x308399,_0x3910ac)=>_0x3dc8e1(_0x308399,_0x3910ac,_0xc1a7fb);let bt=class extends _0x10db64{constructor(_0x24498c,_0x568368,_0x96c516,_0x13327b,_0x18eaab){const _0xd7e612=_0x1f5a54;super(_0x24498c,_0x568368,_0x96c516),this[_0xd7e612(0x327)]=_0x13327b,this[_0xd7e612(0x308)]=_0x18eaab;}[_0x1f5a54(0x25f)](_0x1bb85b,_0x73b700){const _0x17cb60=_0x1f5a54,_0x4b869b=this[_0x17cb60(0x441)](_0x1bb85b);if(_0x4b869b)try{const _0xa235de=this[_0x17cb60(0x19b)](_0x4b869b,_0x73b700);this[_0x17cb60(0x1c1)](_0x1bb85b,_0xa235de);}catch(_0x445a2f){this[_0x17cb60(0x308)][_0x17cb60(0x419)]('[CollaborationUndoRedoService]',_0x445a2f),this['_clearUndo'](_0x1bb85b);}const _0x5a9974=this['_getRedoStack'](_0x1bb85b);if(_0x5a9974)try{const _0x1923c4=this[_0x17cb60(0x19b)](_0x5a9974,_0x73b700);this['_substituteRedoStack'](_0x1bb85b,_0x1923c4);}catch(_0x18fbfc){this[_0x17cb60(0x308)]['error'](_0x18fbfc),this[_0x17cb60(0x22d)](_0x1bb85b);}}[_0x1f5a54(0x1e0)](_0x1fe7d8){const _0x591814=_0x1f5a54,_0x459196=this[_0x591814(0x441)](_0x1fe7d8);_0x459196&&(_0x459196[_0x591814(0x2d6)]=0x0,this[_0x591814(0x1cb)]());}['_clearRedo'](_0x50293f){const _0x2bb3b9=_0x1f5a54,_0x47a314=this[_0x2bb3b9(0x205)](_0x50293f);_0x47a314&&(_0x47a314[_0x2bb3b9(0x2d6)]=0x0,this[_0x2bb3b9(0x1cb)]());}[_0x1f5a54(0x1c1)](_0x20dbfe,_0x593f57){const _0x2c5e8e=_0x1f5a54;this[_0x2c5e8e(0x368)][_0x2c5e8e(0x22e)](_0x20dbfe,_0x593f57),this[_0x2c5e8e(0x1cb)]();}[_0x1f5a54(0x3ff)](_0x4ee8b6,_0xb1eb6b){const _0x2e0b33=_0x1f5a54;this[_0x2e0b33(0x44e)][_0x2e0b33(0x22e)](_0x4ee8b6,_0xb1eb6b),this[_0x2e0b33(0x1cb)]();}[_0x1f5a54(0x19b)](_0x3b3a44,_0x33a473){const _0x3c4eae=_0x1f5a54,_0x5547d9=[];let _0x2ea057=_0x33a473,_0x43f032=_0x33a473;for(let _0x1c2c19=_0x3b3a44[_0x3c4eae(0x2d6)]-0x1;_0x1c2c19>=0x0;_0x1c2c19--){const {unitID:_0x2fc5f2,undoMutations:_0x19cca2,redoMutations:_0x2f4cc9}=_0x3b3a44[_0x1c2c19],_0x40c350=this[_0x3c4eae(0x327)][_0x3c4eae(0x461)](_0x2ea057,_0x19cca2),_0x44276b=this[_0x3c4eae(0x327)][_0x3c4eae(0x461)](_0x43f032,_0x2f4cc9);if(_0x2aee01(_0x40c350)||_0x2aee01(_0x44276b)){this[_0x3c4eae(0x308)]['error'](_0x3c4eae(0x475),'transformStack\x20failed!',_0x40c350,_0x44276b);break;}_0x2ea057=_0x40c350['c1Prime'],_0x43f032=_0x44276b['c1Prime'],_0x5547d9[_0x3c4eae(0x310)]({'unitID':_0x2fc5f2,'undoMutations':_0x40c350[_0x3c4eae(0x349)],'redoMutations':_0x44276b[_0x3c4eae(0x349)]});}return _0x5547d9['reverse']();}};bt=zr([Te(0x0,_0x55bd21),Te(0x1,_0x257ce4),Te(0x2,_0x1da175),Te(0x3,_0x1215ee),Te(0x4,_0x3e33de)],bt);class Zr extends _0x5915f1{constructor(){const _0xf24d29=_0x1f5a54;super(),l(this,_0xf24d29(0x290)),this[_0xf24d29(0x290)]=_0x45523d(window,_0xf24d29(0x3e8))[_0xf24d29(0x180)](_0x57fb4a(this['dispose$']),_0x956324(0x1),_0x43ae84(void 0x0));}['setParam'](_0x5c377c,_0x6328c5,_0x600aa1=!0x1){const _0x1b393c=_0x1f5a54,_0x5e4a18=new URL(window['location'][_0x1b393c(0x1e5)]);_0x5e4a18[_0x1b393c(0x1aa)][_0x1b393c(0x22e)](_0x5c377c,_0x6328c5),_0x600aa1?window[_0x1b393c(0x32d)][_0x1b393c(0x20e)]('','',_0x5e4a18[_0x1b393c(0x196)]()):window[_0x1b393c(0x32d)]['pushState']('','',_0x5e4a18[_0x1b393c(0x196)]());}['removeParam'](_0x418fbd,_0x5bfddd=!0x1){const _0x2770e5=_0x1f5a54,_0xcc5a54=new URL(window[_0x2770e5(0x15a)]['href']);_0xcc5a54[_0x2770e5(0x1aa)][_0x2770e5(0x3a5)](_0x418fbd),_0x5bfddd?window['history'][_0x2770e5(0x20e)]('','',_0xcc5a54[_0x2770e5(0x196)]()):window['history'][_0x2770e5(0x337)]('','',_0xcc5a54[_0x2770e5(0x196)]());}[_0x1f5a54(0x1f9)](_0x43874e){const _0x517184=_0x1f5a54;var _0x30c9b1;return(_0x30c9b1=new URL(window[_0x517184(0x15a)][_0x517184(0x1e5)])[_0x517184(0x1aa)][_0x517184(0x393)](_0x43874e))!=null?_0x30c9b1:void 0x0;}}const lt='collab-text-anchor-',Qr='collab-text-range-',He=0x6,eo=1.5,_t=0x4,to=1.5,so=_0x1f5a54(0x351);class io{constructor(_0x5e34a3,_0x14bcf7,_0x462622,_0x3cfd94){const _0x33087f=_0x1f5a54;l(this,_0x33087f(0x2d5),[]),l(this,_0x33087f(0x401),null),l(this,_0x33087f(0x418),null),l(this,'_anchorDot',null),l(this,'_hideTimer',null),l(this,_0x33087f(0x219),null),(this[_0x33087f(0x312)]=_0x5e34a3,this['_scene']=_0x14bcf7,this[_0x33087f(0x175)]=_0x462622,this['_document']=_0x3cfd94,this[_0x33087f(0x187)]());}set[_0x1f5a54(0x1ae)](_0x43d4ad){const _0x235f1f=_0x1f5a54;_0x43d4ad?(this[_0x235f1f(0x25d)]&&this[_0x235f1f(0x25d)][_0x235f1f(0x2a8)](),this[_0x235f1f(0x418)]&&this[_0x235f1f(0x418)][_0x235f1f(0x43a)]()):(this['_anchorDot']&&this[_0x235f1f(0x25d)][_0x235f1f(0x43a)](),this[_0x235f1f(0x418)]&&this[_0x235f1f(0x418)]['hide']());}[_0x1f5a54(0x26e)](){const _0x3bfb7f=_0x1f5a54;for(const _0x11065d of this['_shapes'])_0x11065d[_0x3bfb7f(0x26e)]();this[_0x3bfb7f(0x418)]&&this[_0x3bfb7f(0x418)][_0x3bfb7f(0x26e)](),this['_anchorDot']&&this[_0x3bfb7f(0x25d)][_0x3bfb7f(0x26e)](),this['_anchor']&&this[_0x3bfb7f(0x401)][_0x3bfb7f(0x26e)](),this[_0x3bfb7f(0x219)]&&this['_eventUnsubscribe']();}[_0x1f5a54(0x187)](){const _0x2afcf8=_0x1f5a54,{_docSkeleton:_0x47df2e,_document:_0x2e09e8}=this,{color:_0x477e76,name:_0x392df5,ranges:_0x38c469}=this['_cursor'],_0x5e890c=_0x2e09e8['getOffsetConfig'](),{docsLeft:_0x47fbb9,docsTop:_0x48bc5e}=_0x5e890c,_0x4ae7d7=new _0x229c8a(_0x5e890c,_0x47df2e);for(const {startOffset:_0x3be36a,endOffset:_0x4e9268,collapsed:_0x227e40,isActive:_0x3f2287}of _0x38c469){const _0x1466cd=_0x47df2e[_0x2afcf8(0x331)](_0x3be36a),_0xb5ef24=_0x47df2e[_0x2afcf8(0x331)](_0x4e9268);if(_0x3f2287){const {contentBoxPointGroup:_0x3a5550}=_0x4ae7d7['getRangePointData'](_0xb5ef24,_0xb5ef24);if(_0x3a5550[_0x2afcf8(0x2d6)]===0x0)continue;this[_0x2afcf8(0x1f3)](_0x477e76,_0x3a5550,_0x47fbb9,_0x48bc5e,_0x392df5),this[_0x2afcf8(0x219)]=this[_0x2afcf8(0x2ff)]();}if(!_0x227e40){const {contentBoxPointGroup:_0x308f50}=_0x4ae7d7[_0x2afcf8(0x16e)](_0x1466cd,_0xb5ef24);if(_0x308f50[_0x2afcf8(0x2d6)]===0x0)continue;this[_0x2afcf8(0x387)](_0x477e76,_0x308f50,_0x47fbb9,_0x48bc5e);}}}['_drawAnchor'](_0x1e119d,_0x4949fd,_0x1765ef,_0x3ad932,_0x184025){const _0x1f37c7=_0x1f5a54,_0x3c5a93=this['_getAnchorBounding'](_0x4949fd),{left:_0x305d88,top:_0x11e663,height:_0x4ebcc8}=_0x3c5a93,_0x75bdb7=this[_0x1f37c7(0x367)](),_0x4c8b20=to/_0x75bdb7,_0xd06bb=new _0x5d7c63(lt+_0x4b796f[_0x1f37c7(0x328)](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932,'height':_0x4ebcc8,'width':eo,'fill':_0x1e119d||_0x3b289f(_0x411a85['black'],0x0),'strokeWidth':_0x4c8b20,'stroke':so,'evented':!0x0});this[_0x1f37c7(0x401)]=_0xd06bb,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0xd06bb,_0x293d74);const _0x3a5eed=new _0x5d7c63(lt+_0x4b796f['generateRandomId'](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932-_t/0x2,'height':_t,'width':_t,'fill':_0x1e119d||_0x3b289f(_0x411a85[_0x1f37c7(0x27c)],0x0),'strokeWidth':0x0,'stroke':_0x1e119d||_0x3b289f(_0x411a85[_0x1f37c7(0x27c)],0x0),'evented':!0x1});this[_0x1f37c7(0x25d)]=_0x3a5eed,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0x3a5eed,_0x293d74);const _0x4baede=new st(lt+_0x4b796f[_0x1f37c7(0x328)](He),{'left':_0x305d88+_0x1765ef-_0x4c8b20,'top':_0x11e663+_0x3ad932-Me,'text':_0x184025,'color':_0x1e119d});this[_0x1f37c7(0x418)]=_0x4baede,this[_0x1f37c7(0x178)][_0x1f37c7(0x2e5)](_0x4baede,_0x293d74),this[_0x1f37c7(0x1ae)]=!0x1;}[_0x1f5a54(0x2ff)](){const _0x62e225=_0x1f5a54,_0x2fc20a=this['_anchor']['onPointerEnter$'][_0x62e225(0x341)](()=>{this['_hover']=!0x0;}),_0x5eb797=this[_0x62e225(0x401)][_0x62e225(0x242)][_0x62e225(0x341)](()=>{const _0x1c4a31=_0x62e225;this[_0x1c4a31(0x381)]&&clearTimeout(this['_hideTimer']),this[_0x1c4a31(0x381)]=setTimeout(()=>{const _0x48b0cb=_0x1c4a31;this[_0x48b0cb(0x1ae)]=!0x1;},0x7d0);});return()=>{const _0x34fd06=_0x62e225;_0x2fc20a['unsubscribe'](),_0x5eb797[_0x34fd06(0x3d0)]();};}['_drawRange'](_0x530bfd,_0x3a3b8c,_0x78fc4f,_0x33afc7){const _0x9073ed=_0x1f5a54,_0x576dba=new _0x41c257(_0x530bfd)['setAlpha'](0.2)[_0x9073ed(0x38e)](),_0x3f9fdb=new _0x2b0581(Qr+_0x4b796f[_0x9073ed(0x328)](He),{'pointsGroup':_0x3a3b8c,'fill':_0x576dba||_0x3b289f(_0x411a85[_0x9073ed(0x27c)],0.2),'left':_0x78fc4f,'top':_0x33afc7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9073ed(0x2d5)]['push'](_0x3f9fdb),this[_0x9073ed(0x178)][_0x9073ed(0x2e5)](_0x3f9fdb,_0x293d74);}[_0x1f5a54(0x34c)](_0x530a26){const _0x5daabf=_0x530a26[0x0],_0x20b905=_0x5daabf[0x0],_0x3455b9=_0x5daabf[0x2],{x:_0x2f8639,y:_0xef3d8d}=_0x20b905,{x:_0x2adb5d,y:_0x178f78}=_0x3455b9;return{'left':_0x2f8639,'top':_0xef3d8d,'width':_0x2adb5d-_0x2f8639,'height':_0x178f78-_0xef3d8d};}[_0x1f5a54(0x367)](){const _0x341e02=_0x1f5a54,{scaleX:_0x7b25a4,scaleY:_0x910a16}=this[_0x341e02(0x178)][_0x341e02(0x32b)]();return Math[_0x341e02(0x44a)](_0x7b25a4,_0x910a16);}}var no=Object[_0x1f5a54(0x29f)],ro=Object[_0x1f5a54(0x3cc)],oo=(_0xb24f8,_0x23d493,_0x3e7609,_0x2bf5b2)=>{const _0x52e9b6=_0x1f5a54;for(var _0x38e477=_0x2bf5b2>0x1?void 0x0:_0x2bf5b2?ro(_0x23d493,_0x3e7609):_0x23d493,_0x326044=_0xb24f8[_0x52e9b6(0x2d6)]-0x1,_0x54fe4f;_0x326044>=0x0;_0x326044--)(_0x54fe4f=_0xb24f8[_0x326044])&&(_0x38e477=(_0x2bf5b2?_0x54fe4f(_0x23d493,_0x3e7609,_0x38e477):_0x54fe4f(_0x38e477))||_0x38e477);return _0x2bf5b2&&_0x38e477&&no(_0x23d493,_0x3e7609,_0x38e477),_0x38e477;},Re=(_0x3b45cc,_0x4fd870)=>(_0x6bdb5,_0x1ad6b0)=>_0x4fd870(_0x6bdb5,_0x1ad6b0,_0x3b45cc);let Ge=class extends _0x5915f1{constructor(_0x1ef5e0,_0x398bdb,_0x4b00db,_0x42bfef,_0x15f0a0){const _0x51017c=_0x1f5a54;super(),l(this,_0x51017c(0x2bc),[]),(this['_collabCursorController']=_0x1ef5e0,this['_univerInstanceService']=_0x398bdb,this[_0x51017c(0x168)]=_0x4b00db,this[_0x51017c(0x399)]=_0x42bfef,this['_themeService']=_0x15f0a0,this[_0x51017c(0x3b6)]());}['_init'](){const _0x5037c4=_0x1f5a54;this[_0x5037c4(0x399)][_0x5037c4(0x2a9)][_0x5037c4(0x180)](_0x31e4a6(this[_0x5037c4(0x3cd)]),_0x4c3023(_0x28b9be=>{const _0xcf4ada=_0x5037c4;if(_0x28b9be){const _0x5f5666=_0x28b9be[_0xcf4ada(0x204)]()[_0xcf4ada(0x35b)]()[_0xcf4ada(0x2a2)]();return _0x5732cb(this[_0xcf4ada(0x3f9)][_0xcf4ada(0x25c)](_0x5f5666),this[_0xcf4ada(0x165)]['currentTheme$'])['pipe'](_0x28f321(([_0x2f657b,_0x1817b1])=>({'skeleton':_0x28b9be,'cursors':[..._0x2f657b[_0xcf4ada(0x410)]()][_0xcf4ada(0x21a)](_0x1003b1=>({..._0x1003b1,'color':_0x1817b1[_0x1003b1[_0xcf4ada(0x428)]]}))})));}return _0x110ce6({'skeleton':null,'cursors':[]});}))[_0x5037c4(0x2d9)](({skeleton:_0x834e45,cursors:_0x4625af})=>{const _0x9f1723=_0x5037c4;this[_0x9f1723(0x34e)](),_0x834e45&&this['_updateCollabCursors'](_0x834e45,_0x4625af);});}[_0x1f5a54(0x304)](_0x283696,_0x2ae031){const _0x56dac6=_0x1f5a54,_0x4ce7d0=this['_getDocObject']();if(_0x4ce7d0==null)return;const {scene:_0x3c4965,document:_0xae72b8}=_0x4ce7d0,_0x46ef6a=_0x2ae031['map'](_0x11260a=>new io(_0x11260a,_0x3c4965,_0x283696,_0xae72b8));this[_0x56dac6(0x2bc)]=_0x46ef6a;}['_removeCollabCursors'](){const _0x12c3c1=_0x1f5a54;this[_0x12c3c1(0x2bc)][_0x12c3c1(0x37a)](_0x4f61c5=>_0x4f61c5['dispose']()),this['_cursors']=[];}[_0x1f5a54(0x36e)](){const _0x351eea=_0x1f5a54;return _0x5ef147(this[_0x351eea(0x357)],this[_0x351eea(0x168)]);}};Ge=oo([_0x182a37(_0x46c7aa[_0x1f5a54(0x3a3)],Ge),Re(0x0,_0x61a763(fe)),Re(0x1,_0x55bd21),Re(0x2,_0x8604c3),Re(0x3,_0x61a763(_0x3824ed)),Re(0x4,_0x61a763(_0x5a1d7c))],Ge);var ao=Object[_0x1f5a54(0x29f)],co=Object[_0x1f5a54(0x3cc)],ho=(_0x2e9f26,_0x117706,_0xaae140,_0x5435d3)=>{for(var _0x5bfa25=_0x5435d3>0x1?void 0x0:_0x5435d3?co(_0x117706,_0xaae140):_0x117706,_0x538633=_0x2e9f26['length']-0x1,_0x4e160f;_0x538633>=0x0;_0x538633--)(_0x4e160f=_0x2e9f26[_0x538633])&&(_0x5bfa25=(_0x5435d3?_0x4e160f(_0x117706,_0xaae140,_0x5bfa25):_0x4e160f(_0x5bfa25))||_0x5bfa25);return _0x5435d3&&_0x5bfa25&&ao(_0x117706,_0xaae140,_0x5bfa25),_0x5bfa25;},ut=(_0x1b3e87,_0x87095f)=>(_0x424698,_0x1cd2e6)=>_0x87095f(_0x424698,_0x1cd2e6,_0x1b3e87);let Ze=class{constructor(_0x2c1678,_0x3a623e,_0x448b8f){const _0x530a03=_0x1f5a54;this[_0x530a03(0x20c)]=_0x2c1678,this[_0x530a03(0x2da)]=_0x3a623e,this[_0x530a03(0x1a8)]=_0x448b8f,this['init']();}[_0x1f5a54(0x33e)](){const _0x4478e3=_0x1f5a54;this[_0x4478e3(0x2da)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x38a7aa,_0x36bada)=>_0x36bada(_0x38a7aa)[_0x4478e3(0x180)](_0x12334d(async _0x1e7d97=>{const _0x3abf93=_0x4478e3,_0x43621a=_0x1e7d97;if(_0x43621a['status']===0x191&&window['confirm'](this[_0x3abf93(0x1a8)]['t']('auth.needGotoLoginAlert'))){const _0x474b3c=window['encodeURIComponent'](window[_0x3abf93(0x15a)][_0x3abf93(0x1e5)]);window['location'][_0x3abf93(0x1e5)]=this[_0x3abf93(0x151)]()+'?url='+_0x474b3c;}return _0x43621a;}))});}['_getLoginPath'](){const _0x2613c5=_0x1f5a54;var _0x3476e2;return(_0x3476e2=this[_0x2613c5(0x20c)][_0x2613c5(0x19e)](mn))!=null?_0x3476e2:gn;}};Ze=ho([ut(0x0,_0x43c997),ut(0x1,_0x61a763(_0x11da14)),ut(0x2,_0x61a763(_0x4eec6f))],Ze);var lo=Object[_0x1f5a54(0x29f)],_o=Object[_0x1f5a54(0x3cc)],uo=(_0x52526c,_0x158eee,_0x3fd2a0,_0x56195b)=>{const _0xb40409=_0x1f5a54;for(var _0x4f14b3=_0x56195b>0x1?void 0x0:_0x56195b?_o(_0x158eee,_0x3fd2a0):_0x158eee,_0x193f94=_0x52526c[_0xb40409(0x2d6)]-0x1,_0x2b9a4a;_0x193f94>=0x0;_0x193f94--)(_0x2b9a4a=_0x52526c[_0x193f94])&&(_0x4f14b3=(_0x56195b?_0x2b9a4a(_0x158eee,_0x3fd2a0,_0x4f14b3):_0x2b9a4a(_0x4f14b3))||_0x4f14b3);return _0x56195b&&_0x4f14b3&&lo(_0x158eee,_0x3fd2a0,_0x4f14b3),_0x4f14b3;},ns=(_0x3e8802,_0xabeaa3)=>(_0x19784d,_0x1bc127)=>_0xabeaa3(_0x19784d,_0x1bc127,_0x3e8802);const fo=_0x1f5a54(0x225),mo=_0x1f5a54(0x252);let Tt=class extends _0x462626{constructor(_0x222cf1,_0x27b8ad){const _0x476674=_0x1f5a54;super(),this[_0x476674(0x2e4)]=_0x222cf1,this[_0x476674(0x20c)]=_0x27b8ad,this[_0x476674(0x391)]();}[_0x1f5a54(0x391)](){const _0xdd6f10=_0x1f5a54,_0x5d1300=this;this[_0xdd6f10(0x194)](this[_0xdd6f10(0x2e4)][_0xdd6f10(0x458)]({'priority':0x3e7,'interceptor':_0x10f37e({'isMatch'(_0xb7665b){const _0x312aad=_0xdd6f10;var _0x40e7e8;if(_0xb7665b[_0x312aad(0x3d2)]==='POST'&&((_0x40e7e8=_0xb7665b[_0x312aad(0x183)])!=null&&_0x40e7e8[_0x312aad(0x39a)])){const {objectID:_0x1a2c1e,objectType:_0x231edb}=_0xb7665b[_0x312aad(0x183)]['body']||{};if(!_0x1a2c1e||_0x231edb===void 0x0)return!0x1;const _0x3ad162=_0x5d1300[_0x312aad(0x36a)]()+'/'+_0x231edb+_0x312aad(0x18b)+_0x1a2c1e+'/allowed';if(_0xb7665b[_0x312aad(0x40e)]===_0x3ad162)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x529e13){const _0x253ed7=_0xdd6f10;var _0x5249b2;return(_0x5249b2=_0x529e13[_0x253ed7(0x183)])==null?void 0x0:_0x5249b2['body'];},'mergeParamsToRequest'(_0x278b05,_0x2bb808){const _0x4d6360=_0xdd6f10,_0xd3b92a=_0x5d1300[_0x4d6360(0x36a)]()+_0x4d6360(0x395),_0x1a7ed5=_0x278b05['reduce']((_0x26c7d8,_0x314d6a)=>{const _0x539477=_0x4d6360,{unitID:_0x189297,objectID:_0xed0f34,objectType:_0x4a7685,actions:_0x4db90c}=_0x314d6a;return _0x26c7d8[_0x189297]||(_0x26c7d8[_0x189297]={}),_0x26c7d8[_0x189297][_0xed0f34]||(_0x26c7d8[_0x189297][_0xed0f34]={'objectID':_0xed0f34,'objectType':_0x4a7685,'actions':[]}),_0x26c7d8[_0x189297][_0xed0f34][_0x539477(0x1b1)][_0x539477(0x310)](..._0x4db90c),_0x26c7d8;},{}),_0x2f03c0=[];for(const _0x240f71 in _0x1a7ed5)for(const _0xf929e1 in _0x1a7ed5[_0x240f71]){const {actions:_0x59e9ca,objectType:_0x20aee4}=_0x1a7ed5[_0x240f71][_0xf929e1],_0x5ef8fc=[...new Set(_0x59e9ca)];_0x2f03c0[_0x4d6360(0x310)]({'unitID':_0x240f71,'objectID':_0xf929e1,'objectType':_0x20aee4,'actions':_0x5ef8fc});}return new _0x5b1605(_0x4d6360(0x407),_0xd3b92a,{'headers':_0x2bb808[_0x4d6360(0x28f)],'withCredentials':_0x2bb808[_0x4d6360(0x211)],'responseType':_0x2bb808[_0x4d6360(0x46b)],'body':{'requests':_0x2f03c0}});}},{'distributeResult'(_0x468f51,_0x3c6045){const _0x26af80=_0xdd6f10,{objectActions:_0xf26587}=_0x468f51;return _0x3c6045[_0x26af80(0x1a7)](_0x440883=>{const _0x194484=_0x26af80,{unitID:_0xffcfa0,objectID:_0x58397e,actions:_0x7847a4}=_0x440883,_0x20dbaf=_0xf26587[_0x194484(0x17c)](_0x342c82=>_0x342c82[_0x194484(0x213)]===_0xffcfa0&&_0x342c82['objectID']===_0x58397e),_0x46ac82=_0x7847a4[_0x194484(0x1a7)](_0x1824d8=>_0x20dbaf==null?void 0x0:_0x20dbaf['actions'][_0x194484(0x17c)](_0x4d10d7=>_0x4d10d7[_0x194484(0x38c)]===_0x1824d8))[_0x194484(0x434)](_0x33b8bd=>!!_0x33b8bd);return{'config':_0x440883,'result':{'actions':_0x46ac82,'error':_0x468f51['error']}};});}})}));}[_0x1f5a54(0x36a)](){const _0x37274a=_0x1f5a54;var _0x5e18fb;return(_0x5e18fb=this[_0x37274a(0x20c)]['getConfig'](fo))!=null?_0x5e18fb:mo;}async[_0x1f5a54(0x1ee)](_0x1a0024){const _0x2c179c=_0x1f5a54,_0x3fa88f=this[_0x2c179c(0x36a)]()+'/'+_0x1a0024[_0x2c179c(0x314)]+_0x2c179c(0x2f8);return(await this[_0x2c179c(0x2e4)][_0x2c179c(0x1bf)](_0x3fa88f,{'body':_0x1a0024}))[_0x2c179c(0x39a)]['objectID']||'';}async['list'](_0x394860){const _0x219112=_0x1f5a54,_0x3f6b01=this[_0x219112(0x36a)]()+_0x219112(0x184);return(await this[_0x219112(0x2e4)][_0x219112(0x1bf)](_0x3f6b01,{'body':_0x394860}))[_0x219112(0x39a)][_0x219112(0x2f4)];}async['update'](_0x4451f0){const _0x2dd54f=_0x1f5a54,_0x1c653c=this['_getAPIPrefixPath']()+'/'+_0x4451f0[_0x2dd54f(0x314)]+'/object/'+_0x4451f0['objectID'];await this['_HTTPService']['put'](_0x1c653c,{'body':_0x4451f0});}async[_0x1f5a54(0x415)](_0x1c7dc0){const _0x4ece96=_0x1f5a54,_0x52943f=this['_getAPIPrefixPath']()+'/'+_0x1c7dc0['objectType']+_0x4ece96(0x18b)+_0x1c7dc0[_0x4ece96(0x1bd)]+'/allowed';return(await this['_HTTPService'][_0x4ece96(0x1bf)](_0x52943f,{'body':_0x1c7dc0}))[_0x4ece96(0x39a)][_0x4ece96(0x1b1)];}async[_0x1f5a54(0x3d9)](_0xd9c3ab){const _0xd8c204=_0x1f5a54,_0x93084a=this[_0xd8c204(0x36a)]()+'/-/object/-/batch_allowed';return(await this[_0xd8c204(0x2e4)]['post'](_0x93084a,{'body':{'requests':_0xd9c3ab}}))['body'][_0xd8c204(0x212)];}async[_0x1f5a54(0x39d)](_0x5333da){const _0x120831=_0x1f5a54,_0x5296a0=this['_getAPIPrefixPath']()+'/'+_0x5333da[_0x120831(0x314)]+'/role',_0x28aac=await this[_0x120831(0x2e4)][_0x120831(0x1bf)](_0x5296a0,{'body':_0x5333da});return{'roles':_0x28aac[_0x120831(0x39a)][_0x120831(0x203)],'actions':_0x28aac[_0x120831(0x39a)][_0x120831(0x1b1)]};}async[_0x1f5a54(0x294)](_0x423f66){const _0x15b489=_0x1f5a54,_0x4598aa=this[_0x15b489(0x36a)]()+'/collaborator';await this[_0x15b489(0x2e4)][_0x15b489(0x3a5)](_0x4598aa,{'params':{'collaboratorID':_0x423f66[_0x15b489(0x248)],'objectID':_0x423f66['objectID'],'unitID':_0x423f66[_0x15b489(0x213)]}});}async[_0x1f5a54(0x2c6)](_0x4b5c81){const _0x1a6d55=_0x1f5a54,_0x5160db=this[_0x1a6d55(0x36a)]()+_0x1a6d55(0x442);await this[_0x1a6d55(0x2e4)][_0x1a6d55(0x33f)](_0x5160db,{'body':_0x4b5c81});}async[_0x1f5a54(0x388)](_0x127e11){const _0x2fb4df=_0x1f5a54,_0x1caf81=this[_0x2fb4df(0x36a)]()+_0x2fb4df(0x442);await this[_0x2fb4df(0x2e4)][_0x2fb4df(0x1bf)](_0x1caf81,{'body':_0x127e11});}async[_0x1f5a54(0x233)](_0x25c603){const _0x164608=_0x1f5a54,_0x1d0192=this[_0x164608(0x36a)]()+_0x164608(0x442);return(await this[_0x164608(0x2e4)][_0x164608(0x393)](_0x1d0192,{'params':{'objectID':_0x25c603[_0x164608(0x1bd)],'unitID':_0x25c603[_0x164608(0x213)]}}))[_0x164608(0x39a)][_0x164608(0x256)];}async['putCollaborators'](_0x3cb786){const _0x3e5394=_0x1f5a54,_0xb3d04c=this[_0x3e5394(0x36a)]()+_0x3e5394(0x442);await this['_HTTPService'][_0x3e5394(0x15b)](_0xb3d04c,{'body':_0x3cb786});}};Tt=uo([ns(0x0,_0x61a763(_0x11da14)),ns(0x1,_0x61a763(_0x43c997))],Tt);var go=Object['defineProperty'],So=Object[_0x1f5a54(0x3cc)],vo=(_0xd7e909,_0x5e9d7e,_0x47f8bd,_0xb9287b)=>{const _0x18ccee=_0x1f5a54;for(var _0xa137d2=_0xb9287b>0x1?void 0x0:_0xb9287b?So(_0x5e9d7e,_0x47f8bd):_0x5e9d7e,_0x32f607=_0xd7e909[_0x18ccee(0x2d6)]-0x1,_0x48b50e;_0x32f607>=0x0;_0x32f607--)(_0x48b50e=_0xd7e909[_0x32f607])&&(_0xa137d2=(_0xb9287b?_0x48b50e(_0x5e9d7e,_0x47f8bd,_0xa137d2):_0x48b50e(_0xa137d2))||_0xa137d2);return _0xb9287b&&_0xa137d2&&go(_0x5e9d7e,_0x47f8bd,_0xa137d2),_0xa137d2;},rs=(_0xc3da7d,_0x274abb)=>(_0xe2f00b,_0x1fe15e)=>_0x274abb(_0xe2f00b,_0x1fe15e,_0xc3da7d);const po=[_0x1f5a54(0x409),_0x1f5a54(0x449),_0x1f5a54(0x3d1),_0x1f5a54(0x154),'image/bmp'],Io=0x5*0x400*0x400,Eo=_0x1f5a54(0x267),Co=_0x1f5a54(0x141),bo=_0x1f5a54(0x325),To=_0x1f5a54(0x185);let Rt=class{constructor(_0x10499c,_0x266e4e){const _0x584b78=_0x1f5a54;l(this,_0x584b78(0x31c),0x0),l(this,'_change$',new _0x295019()),l(this,_0x584b78(0x42f),this[_0x584b78(0x293)]),l(this,_0x584b78(0x3de),new Map()),(this['_httpService']=_0x10499c,this[_0x584b78(0x20c)]=_0x266e4e);}[_0x1f5a54(0x1ab)](_0x1d7ee){const _0xe90539=_0x1f5a54;this[_0xe90539(0x31c)]=_0x1d7ee,this['_change$']['next'](_0x1d7ee);}[_0x1f5a54(0x42e)](_0x2f18e1,_0x2c6e45){const _0x37b02c=_0x1f5a54;if(_0x2c6e45===_0x2a1a1d[_0x37b02c(0x284)]){const _0x33836e=new Image();return _0x33836e[_0x37b02c(0x193)]=_0x2f18e1,_0x33836e;}return this[_0x37b02c(0x3de)]['get'](_0x2f18e1);}[_0x1f5a54(0x24f)](_0x5cd07b,_0x387d6b,_0x106fec){const _0xf9ca79=_0x1f5a54;_0x387d6b===_0x2a1a1d[_0xf9ca79(0x284)]||_0x106fec==null||this[_0xf9ca79(0x3de)]['set'](_0x5cd07b,_0x106fec);}async[_0x1f5a54(0x432)](_0x100118){const _0xca4770=_0x1f5a54;try{const _0xe92b62=this[_0xca4770(0x1c5)](this[_0xca4770(0x2e2)](),''+_0x100118),_0x3daf8b=(await this['_httpService'][_0xca4770(0x393)](_0xe92b62))['body'];return _0x3daf8b[_0xca4770(0x419)]&&_0x3daf8b[_0xca4770(0x419)][_0xca4770(0x275)]===Rs['OK']?Promise[_0xca4770(0x336)](_0x3daf8b[_0xca4770(0x40e)]):Promise[_0xca4770(0x30e)](_0x3daf8b[_0xca4770(0x419)]);}catch(_0x5e383f){return Promise[_0xca4770(0x30e)](_0x5e383f);}}async['saveImage'](_0x3cff6c){const _0x39f87f=_0x1f5a54;let _0xac4a41='';if(!po[_0x39f87f(0x3ca)](_0x3cff6c['type']))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x190b89['ERROR_IMAGE_TYPE']));if(_0x3cff6c[_0x39f87f(0x3d8)]>Io)return this[_0x39f87f(0x29b)](),Promise[_0x39f87f(0x30e)](new Error(_0x190b89[_0x39f87f(0x2fd)]));try{const _0x3e4bdd=new FormData();_0x3e4bdd['append'](_0x39f87f(0x36f),_0x3cff6c);const _0x4947f6=this[_0x39f87f(0x1ec)]()+_0x39f87f(0x30a)+_0x3cff6c[_0x39f87f(0x3d8)][_0x39f87f(0x196)](),_0x102585=await(await fetch(_0x4947f6,{'method':_0x39f87f(0x407),'body':_0x3e4bdd}))[_0x39f87f(0x1d3)]();if(typeof _0x102585[_0x39f87f(0x3b2)]!=_0x39f87f(0x3f2))return this[_0x39f87f(0x29b)](),Promise['reject'](new Error(_0x190b89[_0x39f87f(0x174)]));_0xac4a41=_0x102585[_0x39f87f(0x3b2)];}catch{return this['_decreaseWaiting'](),Promise[_0x39f87f(0x30e)](new Error(_0x190b89[_0x39f87f(0x174)]));}return new Promise((_0x12a851,_0x2d7dec)=>{const _0x54d48d=_0x39f87f,_0x1354c4=new FileReader();_0x1354c4[_0x54d48d(0x390)](_0x3cff6c),_0x1354c4['onload']=_0x579656=>{const _0x10a676=_0x54d48d;var _0x56f284;const _0x2233bf=(_0x56f284=_0x579656[_0x10a676(0x15d)])==null?void 0x0:_0x56f284[_0x10a676(0x2b3)];if(_0x2233bf==null){this[_0x10a676(0x29b)](),_0x2d7dec(new Error(_0x190b89['ERROR_IMAGE']));return;}const _0x2d2d2b=_0x4b796f['generateRandomId'](0x6);_0x12a851({'imageId':_0x2d2d2b,'imageSourceType':_0x2a1a1d[_0x10a676(0x426)],'source':_0xac4a41,'base64Cache':_0x2233bf,'status':_0x190b89[_0x10a676(0x360)]}),this[_0x10a676(0x29b)]();};});}[_0x1f5a54(0x1ec)](){const _0xb2bed1=_0x1f5a54;var _0x1cc128;return(_0x1cc128=this[_0xb2bed1(0x20c)][_0xb2bed1(0x19e)](Eo))!=null?_0x1cc128:Co;}['_getSignURL'](){const _0x1dbc83=_0x1f5a54;var _0x58d0b3;return(_0x58d0b3=this[_0x1dbc83(0x20c)][_0x1dbc83(0x19e)](bo))!=null?_0x58d0b3:To;}[_0x1f5a54(0x1c5)](_0x4b36c8,_0x5f4573){const _0x53ff50=_0x1f5a54;return _0x4b36c8[_0x53ff50(0x235)]('{fileID}',_0x5f4573);}[_0x1f5a54(0x29b)](){const _0x428d15=_0x1f5a54;this[_0x428d15(0x31c)]-=0x1,this[_0x428d15(0x293)][_0x428d15(0x39b)](this[_0x428d15(0x31c)]);}};Rt=vo([rs(0x0,_0x61a763(_0x11da14)),rs(0x1,_0x43c997)],Rt);var Ro=Object[_0x1f5a54(0x29f)],Oo=Object[_0x1f5a54(0x3cc)],Do=(_0x1b7bc4,_0x3e801a,_0x5a694d,_0x5ac6f1)=>{const _0x7f98ad=_0x1f5a54;for(var _0x4e6230=_0x5ac6f1>0x1?void 0x0:_0x5ac6f1?Oo(_0x3e801a,_0x5a694d):_0x3e801a,_0x3d27ce=_0x1b7bc4[_0x7f98ad(0x2d6)]-0x1,_0x2712a7;_0x3d27ce>=0x0;_0x3d27ce--)(_0x2712a7=_0x1b7bc4[_0x3d27ce])&&(_0x4e6230=(_0x5ac6f1?_0x2712a7(_0x3e801a,_0x5a694d,_0x4e6230):_0x2712a7(_0x4e6230))||_0x4e6230);return _0x5ac6f1&&_0x4e6230&&Ro(_0x3e801a,_0x5a694d,_0x4e6230),_0x4e6230;},Oe=(_0x1f7e6b,_0x47f4a8)=>(_0x237c9b,_0x52719d)=>_0x47f4a8(_0x237c9b,_0x52719d,_0x1f7e6b);let Ye=class extends _0x5915f1{constructor(_0x18d40e,_0x44ef2c,_0x48183f,_0x2c69d5,_0x252e6a){const _0x1579d2=_0x1f5a54;super(),this[_0x1579d2(0x3db)]=_0x18d40e,this['_univerInstanceService']=_0x44ef2c,this[_0x1579d2(0x1ba)]=_0x48183f,this['_collaborationSessionService']=_0x2c69d5,this[_0x1579d2(0x3a6)]=_0x252e6a,this['_initUnitPermissionChange'](),this[_0x1579d2(0x209)]();}[_0x1f5a54(0x209)](){const _0x3e0c25=_0x1f5a54,_0x22e067=async _0x4f06f8=>{const _0x24f93b=_0x2f7f;(await this[_0x24f93b(0x416)][_0x24f93b(0x46e)](_0x4f06f8))[_0x24f93b(0x403)]['pipe'](_0x3d131e(_0x47b391=>_0x47b391[_0x24f93b(0x2cf)]===_0x505428['SHOULD_CLOSE_CONN']),_0x31e4a6(this['dispose$']))[_0x24f93b(0x2d9)](_0xfc900e=>{const _0x154e37=_0x24f93b,_0x312869=_0xfc900e,{reason:_0x365c43}=_0x312869[_0x154e37(0x2a5)];this[_0x154e37(0x3db)][_0x154e37(0x393)](_0x58c973)[_0x154e37(0x43a)]({'type':_0x454b23['Error'],'content':this[_0x154e37(0x3a6)]['t']('collaboration.closeRoom')+'('+_0x365c43+')'}),this[_0x154e37(0x1ba)][_0x154e37(0x2bb)](new _0x278a53(_0x4f06f8)['id'],!0x1),this[_0x154e37(0x416)][_0x154e37(0x257)](_0x4f06f8);});};_0x2e3217(this[_0x3e0c25(0x357)][_0x3e0c25(0x1fb)](_0x5cab0b[_0x3e0c25(0x320)]),this[_0x3e0c25(0x357)][_0x3e0c25(0x1fb)](_0x5cab0b[_0x3e0c25(0x315)]))['pipe'](_0x28f321(_0x57bb98=>_0x57bb98[_0x3e0c25(0x2a2)]()),_0x3d131e(_0x3b18a1=>!_0xe275c4(_0x3b18a1)),_0x31e4a6(this[_0x3e0c25(0x3cd)]))[_0x3e0c25(0x2d9)](_0x248800=>{_0x22e067(_0x248800);});}[_0x1f5a54(0x3b9)](){const _0xa55b5a=_0x1f5a54,_0x4cf900=async _0x8aabf7=>{const _0x4c3e87=_0x2f7f;(await this[_0x4c3e87(0x416)]['requireSession'](_0x8aabf7))[_0x4c3e87(0x403)]['pipe'](_0x3d131e(_0x5809cf=>_0x5809cf[_0x4c3e87(0x2cf)]===_0x505428[_0x4c3e87(0x42d)]),_0x31e4a6(this['dispose$']))['subscribe'](_0x31745f=>{const _0x59e063=_0x4c3e87,_0x3e8682=_0x31745f,{objectId:_0x4d916d}=_0x3e8682[_0x59e063(0x2a5)];_0x4d916d===_0x8aabf7&&this[_0x59e063(0x3db)][_0x59e063(0x393)](_0x302c8b)['initWorkbookPermissionChange'](_0x8aabf7);});};_0x2e3217(this[_0xa55b5a(0x357)][_0xa55b5a(0x1fb)](_0x5cab0b[_0xa55b5a(0x320)]),this[_0xa55b5a(0x357)][_0xa55b5a(0x1fb)](_0x5cab0b[_0xa55b5a(0x315)]))['pipe'](_0x28f321(_0x3aea16=>_0x3aea16[_0xa55b5a(0x2a2)]()),_0x3d131e(_0x310585=>!_0xe275c4(_0x310585)),_0x31e4a6(this[_0xa55b5a(0x3cd)]))[_0xa55b5a(0x2d9)](_0x58b7ea=>{_0x4cf900(_0x58b7ea);});}};Ye=Do([_0x182a37(_0x46c7aa[_0x1f5a54(0x366)],Ye),Oe(0x0,_0x61a763(_0x2e9f94)),Oe(0x1,_0x55bd21),Oe(0x2,_0x1721b0),Oe(0x3,_0x61a763(ge)),Oe(0x4,_0x61a763(_0x4eec6f))],Ye);var $s=Object[_0x1f5a54(0x29f)],Po=Object[_0x1f5a54(0x3cc)],wo=(_0x358ecf,_0x5951cf,_0x164954)=>_0x5951cf in _0x358ecf?$s(_0x358ecf,_0x5951cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164954}):_0x358ecf[_0x5951cf]=_0x164954,No=(_0x229845,_0x482352,_0x244c75,_0x359285)=>{const _0x587408=_0x1f5a54;for(var _0x419081=_0x359285>0x1?void 0x0:_0x359285?Po(_0x482352,_0x244c75):_0x482352,_0x8e42e8=_0x229845[_0x587408(0x2d6)]-0x1,_0x238a9e;_0x8e42e8>=0x0;_0x8e42e8--)(_0x238a9e=_0x229845[_0x8e42e8])&&(_0x419081=(_0x359285?_0x238a9e(_0x482352,_0x244c75,_0x419081):_0x238a9e(_0x419081))||_0x419081);return _0x359285&&_0x419081&&$s(_0x482352,_0x244c75,_0x419081),_0x419081;},os=(_0x2d3527,_0x3e911a)=>(_0x48d6d3,_0x3c9709)=>_0x3e911a(_0x48d6d3,_0x3c9709,_0x2d3527),Mo=(_0x57cfac,_0x518779,_0x1e63b2)=>wo(_0x57cfac,_0x518779+'',_0x1e63b2);const Ao=_0x1f5a54(0x3e7);let Ot=class extends _0x2b09f1{constructor(_0x2f62a9,_0x3e22e7,_0x1ed6d7){const _0x151f4f=_0x1f5a54;super(),this[_0x151f4f(0x26f)]=_0x2f62a9,this[_0x151f4f(0x308)]=_0x3e22e7,this[_0x151f4f(0x3db)]=_0x1ed6d7;}[_0x1f5a54(0x23d)](_0x5621c6){const _0x37b977=_0x1f5a54;var _0x4a9d5b,_0xe8e709,_0x258414,_0x2ceca0,_0x1c9b6b;_0x5621c6[_0x37b977(0x1d8)](_0x4e4a39)&&this[_0x37b977(0x308)]['error'](_0x37b977(0x18d),_0x37b977(0x261));let _0xf23a14=[[_0x4e4a39,{'useClass':bt}],[ge],[Lt],[_0x11da14],[Ls,{'useClass':Zr}],[ne],[D],[_0x2067e4],[qe],[Je],[Xe],[Ut],[Ze],[Ds],[Ye],[Os,{'useClass':(_0xe8e709=(_0x4a9d5b=this['_config'])==null?void 0x0:_0x4a9d5b[_0x37b977(0x2b1)])!=null?_0xe8e709:gt}],[_0x449c33,{'useClass':_0x13770f}],[_0x49d5c1,{'useClass':Ct}],[_0x29e930,{'useClass':Tt}],[_0x32dd32,{'useClass':Rt}],[De],[Be],[ke],[We],[fe]];(_0x258414=this[_0x37b977(0x26f)])!=null&&_0x258414[_0x37b977(0x142)]&&_0xf23a14[_0x37b977(0x310)]([et,{'useClass':An}]),((_0x2ceca0=this['_config'])==null?void 0x0:_0x2ceca0['collaborationUniverTypes'])==null||this[_0x37b977(0x26f)][_0x37b977(0x1de)]['includes'](_0x5cab0b[_0x37b977(0x320)])?_0xf23a14[_0x37b977(0x310)]([Ve]):this[_0x37b977(0x26f)][_0x37b977(0x1de)][_0x37b977(0x3ca)](_0x5cab0b[_0x37b977(0x315)])&&_0xf23a14[_0x37b977(0x310)]([Ge]),_0xf23a14=_0x4e0679(_0xf23a14,(_0x1c9b6b=this[_0x37b977(0x26f)])==null?void 0x0:_0x1c9b6b['override']),_0xf23a14[_0x37b977(0x37a)](_0x2e8ae5=>_0x5621c6['add'](_0x2e8ae5)),_0x5621c6['get'](_0x11da14)[_0x37b977(0x458)]({'priority':0x14,'interceptor':_0x50e197({'maxParallel':0x6})}),this[_0x37b977(0x16d)]();}[_0x1f5a54(0x16d)](){const _0x846236=_0x1f5a54;var _0xc44211,_0x742958;(_0xc44211=this[_0x846236(0x26f)])!=null&&_0xc44211[_0x846236(0x423)]||this[_0x846236(0x3db)][_0x846236(0x393)](D)[_0x846236(0x3fa)](),(_0x742958=this[_0x846236(0x26f)])!=null&&_0x742958[_0x846236(0x42a)]&&this['_injector'][_0x846236(0x393)](Ze);}};Mo(Ot,_0x1f5a54(0x404),Ao),Ot=No([_0x476f81(_0x460423),os(0x1,_0x3e33de),os(0x2,_0x61a763(_0x2e9f94))],Ot);export{fo as AUTHZ_URL_KEY,Tt as AuthzIoHttpService,dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,sn as COLLAB_WEB_SOCKET_URL_KEY,De as CollaborationController,St as CollaborationSession,ge as CollaborationSessionService,gt as CollaborationSocketService,w as CollaborationStatus,yr as CollaborationStatusDisplay,Ds as CommentService,Be as DataLoaderController,ke as DesktopCollaborationStatusDisplayController,rn as HEARTBEAT_INTERVAL_KEY,bs as HEARTBEAT_TIMEOUT_KEY,Os as ICollaborationSocketService,Ls as IURLService,Rt as ImageIoService,_n as LOCAL_CACHE_INTERVAL_KEY,mn as LOGIN_URL_KEY,D as LocalCacheService,en as SEND_CHANGESET_TIMEOUT_KEY,zi as SNAPSHOT_SERVER_URL_KEY,Qi as SNAPSHOT_URL_KEY,de as SessionStatus,mr as SheetCollabCursorShape,pt as SheetCollaborationEntity,Ct as SnapshotServerOverHTTPService,Ot as UniverCollaborationClientPlugin,Zr as WebURLService,En as deserializeToCombResponse,Cn as serializeCombRequest};