@univerjs-pro/collaboration-client 0.22.1 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x37a288=_0x378b;(function(_0x4602ef,_0x49d109){const _0x43eabc=_0x378b,_0x52a6c3=_0x4602ef();while(!![]){try{const _0xcf45c7=parseInt(_0x43eabc(0x2e3))/0x1+parseInt(_0x43eabc(0x27d))/0x2+-parseInt(_0x43eabc(0x2db))/0x3+parseInt(_0x43eabc(0x1a5))/0x4+-parseInt(_0x43eabc(0x2a4))/0x5*(-parseInt(_0x43eabc(0x268))/0x6)+parseInt(_0x43eabc(0x35e))/0x7+parseInt(_0x43eabc(0x337))/0x8*(-parseInt(_0x43eabc(0x224))/0x9);if(_0xcf45c7===_0x49d109)break;else _0x52a6c3['push'](_0x52a6c3['shift']());}catch(_0x3f9b5c){_0x52a6c3['push'](_0x52a6c3['shift']());}}}(_0x1522,0x65051));import{CollaborationEvent,CompressMutationService,EmptyMutationInfo,ISnapshotServerService,ITransformService,RevisionService,SnapshotService,UniverCollaborationPlugin,b64DecodeUnicode,isTransformChangesetsSuccess,isTransformMutationsWithChangesetFailure,isTransformMutationsWithChangesetSuccess,mapDocumentTypeToUniverInstanceType,parseChangesetToProtocol,parseProtocolChangeset,textEncoder,uuidv4}from'@univerjs-pro/collaboration';import{CommandType,DependentOn,Disposable,DisposableCollection,IAuthzIoService,ICommandService,IConfigService,IContextService,ILogService,IMentionIOService,IPermissionService,IUndoRedoService,IUniverInstanceService,Inject,Injector,JSONX,LocalUndoRedoService,LocaleService,MentionType,Optional,Plugin,Quantity,Rectangle,RxDisposable,Tools,UniverInstanceType,UserManagerService,Workbook,createIdentifier,generateRandomId,isInternalEditorID,merge,mergeOverrideWithDependencies,registerDependencies,resolveWithBasePath,sequenceExecute,toDisposable,touchDependencies}from'@univerjs/core';import{RichTextEditingMutation}from'@univerjs/docs';import{InsertSheetMutation,SetSelectionsOperation,SheetPermissionInitController,SheetsSelectionsService,WorkbookEditablePermission}from'@univerjs/sheets';import{BehaviorSubject,ReplaySubject,Subject,concatMap,firstValueFrom,map,merge as _0x5de48a,of,shareReplay,take,takeUntil}from'rxjs';import{CmdRspCode,CombCmd,ErrorCode,FileSource}from'@univerjs/protocol';import{ITelemetryService}from'@univerjs/telemetry';import{delay,filter,map as _0x23341b,take as _0x8aa908,takeUntil as _0x2ed60a}from'rxjs/operators';import{HTTPRequest,HTTPService,ISocketService,MergeInterceptorFactory,ThresholdInterceptorFactory,UniverNetworkPlugin}from'@univerjs/network';import{UniverLicensePlugin,getGlobalObject}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST,IImageIoService,ImageSourceType,ImageUploadStatusType,getDrawingImageAllowSize}from'@univerjs/drawing';function _0x378b(_0xba0a8b,_0x11496e){_0xba0a8b=_0xba0a8b-0x146;const _0x15224a=_0x1522();let _0x378bbd=_0x15224a[_0xba0a8b];return _0x378bbd;}import{cbc}from'@noble/ciphers/aes.js';import{concatBytes,randomBytes,utf8ToBytes}from'@noble/ciphers/utils.js';const DEFAULT_SNAPSHOT_SERVER_URL=_0x37a288(0x1fd),SNAPSHOT_URL_KEY='SNAPSHOT_URL_KEY',DEFAULT_SEND_CHANGESET_TIMEOUT=0x7d0,DEFAULT_COLLAB_WEB_SOCKET_URL=_0x37a288(0x2b7),DEFAULT_WS_SESSION_TICKET_URL=_0x37a288(0x15a),HEARTBEAT_INTERVAL_KEY=_0x37a288(0x155),DEFAULT_HEARTBEAT_INTERVAL=0x7530,HEARTBEAT_TIMEOUT_KEY=_0x37a288(0x1e1),DEFAULT_HEARTBEAT_TIMEOUT=0x4e20,DEFAULT_RETRY_CONNECTING_INTERVAL=0x4e20,RETRY_CONNECTING_MAX_COUNT_KEY=_0x37a288(0x288),LOCAL_CACHE_INTERVAL_KEY='LOCAL_CACHE_INTERVAL',LOCAL_CACHE_INTERVAL=0x3e8,DEFAULT_COLLAB_SUBMIT_CHANGESET_URL=_0x37a288(0x24e),DEFAULT_LOGIN_URL=_0x37a288(0x147),REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY=_0x37a288(0x182),DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT=_0x37a288(0x242),TELEMETRY_COLLABORATION_NEW_CHANGESET=_0x37a288(0x2a3);function summaryChangesetSize(_0x779b81){const _0x1cba4d=_0x37a288;return JSON[_0x1cba4d(0x24a)](_0x779b81)[_0x1cba4d(0x1a6)];}function _typeof(_0x404f3a){'@babel/helpers - typeof';const _0x4419ff=_0x37a288;return _typeof=_0x4419ff(0x317)==typeof Symbol&&_0x4419ff(0x3a3)==typeof Symbol['iterator']?function(_0x312b73){return typeof _0x312b73;}:function(_0x5234b7){const _0x5317bd=_0x4419ff;return _0x5234b7&&_0x5317bd(0x317)==typeof Symbol&&_0x5234b7[_0x5317bd(0x1b2)]===Symbol&&_0x5234b7!==Symbol[_0x5317bd(0x187)]?_0x5317bd(0x3a3):typeof _0x5234b7;},_typeof(_0x404f3a);}function toPrimitive(_0x2f8f4b,_0x2f79d1){const _0x11220d=_0x37a288;if(_0x11220d(0x21f)!=_typeof(_0x2f8f4b)||!_0x2f8f4b)return _0x2f8f4b;var _0x1945b6=_0x2f8f4b[Symbol[_0x11220d(0x1ed)]];if(void 0x0!==_0x1945b6){var _0x238310=_0x1945b6[_0x11220d(0x2b8)](_0x2f8f4b,_0x2f79d1||_0x11220d(0x24d));if(_0x11220d(0x21f)!=_typeof(_0x238310))return _0x238310;throw new TypeError(_0x11220d(0x3ae));}return(_0x11220d(0x3a1)===_0x2f79d1?String:Number)(_0x2f8f4b);}function toPropertyKey(_0x1af6bd){const _0x4d66ec=_0x37a288;var _0x1cf727=toPrimitive(_0x1af6bd,'string');return _0x4d66ec(0x3a3)==_typeof(_0x1cf727)?_0x1cf727:_0x1cf727+'';}function _defineProperty(_0x25d6e0,_0x48a781,_0x4025ae){const _0x1a00f3=_0x37a288;return(_0x48a781=toPropertyKey(_0x48a781))in _0x25d6e0?Object[_0x1a00f3(0x389)](_0x25d6e0,_0x48a781,{'value':_0x4025ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x25d6e0[_0x48a781]=_0x4025ae,_0x25d6e0;}let CollaborationUIEventId=function(_0x273187){const _0x38d3a0=_0x37a288;return _0x273187['OTHER_CLIENT_EDITING']=_0x38d3a0(0x327),_0x273187[_0x38d3a0(0x18a)]=_0x38d3a0(0x18a),_0x273187[_0x38d3a0(0x2ab)]=_0x38d3a0(0x2ab),_0x273187[_0x38d3a0(0x379)]='CLOSE_ROOM',_0x273187[_0x38d3a0(0x161)]='JOIN_ROOM_FAILED',_0x273187[_0x38d3a0(0x1f7)]=_0x38d3a0(0x1f7),_0x273187[_0x38d3a0(0x388)]=_0x38d3a0(0x388),_0x273187[_0x38d3a0(0x180)]='SUBMIT_CHANGESET_TIMEOUT',_0x273187;}({});var CollaborationUIEventService=class{constructor(){const _0x5cb46c=_0x37a288;_defineProperty(this,'_event$',new Subject()),_defineProperty(this,_0x5cb46c(0x35a),this[_0x5cb46c(0x292)][_0x5cb46c(0x16b)]());}['emitEvent'](_0x5396f8){const _0x17afed=_0x37a288;this[_0x17afed(0x292)][_0x17afed(0x1b0)](_0x5396f8);}},CommentService=class{constructor(){const _0x5e3475=_0x37a288;_defineProperty(this,_0x5e3475(0x255),new Subject()),_defineProperty(this,_0x5e3475(0x39f),this[_0x5e3475(0x255)]['asObservable']());}[_0x37a288(0x234)](_0x1881b6){const _0x36f003=_0x37a288;this[_0x36f003(0x255)][_0x36f003(0x1b0)](_0x1881b6);}};function __decorateParam(_0x6f4d,_0x1c4ae4){return function(_0x437bf7,_0x19c3d5){_0x1c4ae4(_0x437bf7,_0x19c3d5,_0x6f4d);};}function __decorate(_0x2556b2,_0xd882e6,_0x83f34b,_0x34ca8d){const _0x789b13=_0x37a288;var _0x552b1e=arguments['length'],_0x492738=_0x552b1e<0x3?_0xd882e6:_0x34ca8d===null?_0x34ca8d=Object[_0x789b13(0x252)](_0xd882e6,_0x83f34b):_0x34ca8d,_0x1c25c0;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x789b13(0x317))_0x492738=Reflect[_0x789b13(0x186)](_0x2556b2,_0xd882e6,_0x83f34b,_0x34ca8d);else{for(var _0x5f5c25=_0x2556b2[_0x789b13(0x1a6)]-0x1;_0x5f5c25>=0x0;_0x5f5c25--)if(_0x1c25c0=_0x2556b2[_0x5f5c25])_0x492738=(_0x552b1e<0x3?_0x1c25c0(_0x492738):_0x552b1e>0x3?_0x1c25c0(_0xd882e6,_0x83f34b,_0x492738):_0x1c25c0(_0xd882e6,_0x83f34b))||_0x492738;}return _0x552b1e>0x3&&_0x492738&&Object[_0x789b13(0x389)](_0xd882e6,_0x83f34b,_0x492738),_0x492738;}let MemberService=class MemberService extends Disposable{constructor(_0x11775b,_0x52bd12){const _0x5d89fa=_0x37a288;super(),this[_0x5d89fa(0x229)]=_0x11775b,this[_0x5d89fa(0x283)]=_0x52bd12,_defineProperty(this,'_roomMembers',new Map()),_defineProperty(this,'_roomCreated$',new Subject()),this[_0x5d89fa(0x2f4)](_0x5de48a(this[_0x5d89fa(0x229)][_0x5d89fa(0x264)](UniverInstanceType[_0x5d89fa(0x362)])[_0x5d89fa(0x39b)](_0x23341b(_0x23dea0=>_0x23dea0['getUnitId']())),this[_0x5d89fa(0x229)]['getTypeOfUnitDisposed$'](UniverInstanceType['UNIVER_DOC'])['pipe'](_0x23341b(_0x4349ee=>_0x4349ee[_0x5d89fa(0x15e)]())))[_0x5d89fa(0x2ae)](_0x45ce48=>this[_0x5d89fa(0x14e)](_0x45ce48)));}[_0x37a288(0x171)](_0x45929a){const _0x4904be=_0x37a288;if(this['_roomMembers'][_0x4904be(0x315)](_0x45929a))return of(this[_0x4904be(0x257)][_0x4904be(0x213)](_0x45929a));return this[_0x4904be(0x3ab)][_0x4904be(0x39b)](_0x23341b(_0x48b1af=>{const _0x54298d=_0x4904be;if(_0x48b1af===_0x45929a)return this[_0x54298d(0x257)][_0x54298d(0x213)](_0x48b1af);}));}[_0x37a288(0x391)](_0x1b215e){const _0x5bafdf=_0x37a288;this[_0x5bafdf(0x283)]['setCurrentUser'](_0x1b215e);}[_0x37a288(0x1e3)](){const _0x36989c=_0x37a288;return this['_userManagerService'][_0x36989c(0x1e3)]();}['updateMember'](_0x2d403c,_0x2add21){const _0x54f26b=_0x37a288;let _0x3e68df=this['_roomMembers'][_0x54f26b(0x213)](_0x2d403c);!_0x3e68df&&(_0x3e68df=new RoomMember(),this[_0x54f26b(0x257)][_0x54f26b(0x2c4)](_0x2d403c,_0x3e68df),this['_roomCreated$'][_0x54f26b(0x1b0)](_0x2d403c)),_0x3e68df[_0x54f26b(0x1cf)](_0x2add21);}[_0x37a288(0x397)](_0x35d4a1,_0x5d9fe3){const _0x13a801=_0x37a288,_0x497978=this[_0x13a801(0x257)]['get'](_0x35d4a1);if(_0x497978)_0x497978['removeMember'](_0x5d9fe3);}[_0x37a288(0x3ac)](_0x318660){const _0x245e34=_0x37a288;return this[_0x245e34(0x257)][_0x245e34(0x213)](_0x318660);}[_0x37a288(0x26d)](_0x121eab,_0x3628c){const _0x2f173b=_0x37a288,_0x2b7317=this['_roomMembers'][_0x2f173b(0x213)](_0x121eab);if(_0x2b7317)return _0x2b7317[_0x2f173b(0x26d)](_0x3628c);}[_0x37a288(0x14e)](_0x2b4103){const _0x4d3ab4=_0x37a288,_0x5d3aeb=this['_roomMembers'][_0x4d3ab4(0x213)](_0x2b4103);_0x5d3aeb&&(_0x5d3aeb['dispose'](),this['_roomMembers']['delete'](_0x2b4103));}[_0x37a288(0x16a)](){const _0x49bfaf=_0x37a288;this['_roomMembers'][_0x49bfaf(0x25e)](_0x316554=>_0x316554[_0x49bfaf(0x16a)]()),this[_0x49bfaf(0x257)][_0x49bfaf(0x2fe)](),this[_0x49bfaf(0x3ab)][_0x49bfaf(0x39e)]();}};MemberService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,Inject(UserManagerService))],MemberService);var RoomMember=class extends Disposable{constructor(..._0x519401){const _0x3582cc=_0x37a288;super(..._0x519401),_defineProperty(this,_0x3582cc(0x1ad),new Map()),_defineProperty(this,_0x3582cc(0x2c3),new BehaviorSubject(this[_0x3582cc(0x1ad)])),_defineProperty(this,_0x3582cc(0x384),this[_0x3582cc(0x2c3)][_0x3582cc(0x16b)]());}[_0x37a288(0x16a)](){const _0x173520=_0x37a288;this[_0x173520(0x1ad)]['clear'](),this[_0x173520(0x2c3)][_0x173520(0x39e)]();}[_0x37a288(0x1cf)](_0xa5f9ed){const _0x1f91e5=_0x37a288;this['_members'][_0x1f91e5(0x2c4)](_0xa5f9ed['memberID'],_0xa5f9ed),this[_0x1f91e5(0x23f)]();}['removeMember'](_0x5965d9){const _0x36573a=_0x37a288;this[_0x36573a(0x1ad)][_0x36573a(0x377)](_0x5965d9),this[_0x36573a(0x23f)]();}[_0x37a288(0x26d)](_0x1287e4){const _0x12ba17=_0x37a288;return this['_members'][_0x12ba17(0x213)](_0x1287e4);}['getAllMembers'](){const _0x62a45a=_0x37a288;return Array[_0x62a45a(0x2f0)](this[_0x62a45a(0x1ad)][_0x62a45a(0x359)]());}['_emitMembers'](){const _0x2010f2=_0x37a288;this['_members$']['next'](this[_0x2010f2(0x1ad)]);}};let SessionStatus=function(_0x892f68){const _0xf0999d=_0x37a288;return _0x892f68[_0x892f68[_0xf0999d(0x31d)]=0x0]='IDLE',_0x892f68[_0x892f68[_0xf0999d(0x340)]=0x1]='JOINING',_0x892f68[_0x892f68[_0xf0999d(0x29c)]=0x2]=_0xf0999d(0x29c),_0x892f68[_0x892f68[_0xf0999d(0x3a9)]=0x3]='ONLINE',_0x892f68;}({});const FailedReason={[CmdRspCode[_0x37a288(0x32b)]]:'session.join-failed',[CmdRspCode[_0x37a288(0x375)]]:_0x37a288(0x382),[CmdRspCode[_0x37a288(0x290)]]:_0x37a288(0x2a0),[CmdRspCode[_0x37a288(0x390)]]:_0x37a288(0x336),[CmdRspCode[_0x37a288(0x218)]]:'session.room-cnt-exceeds'};let CollaborationSession=class CollaborationSession extends RxDisposable{get['sessionStatus'](){const _0x3f9152=_0x37a288;return this[_0x3f9152(0x1ee)][_0x3f9152(0x30f)]();}constructor(_0x38be43,_0x5730fa,_0x377ce1,_0x3ede00,_0x9e1c8a,_0x1ece3d,_0x5cfd46,_0x14c609){const _0x417a27=_0x37a288;super(),this['_unitID']=_0x38be43,this[_0x417a27(0x270)]=_0x377ce1,this[_0x417a27(0x1ec)]=_0x3ede00,this[_0x417a27(0x17f)]=_0x9e1c8a,this[_0x417a27(0x296)]=_0x1ece3d,this[_0x417a27(0x1e4)]=_0x5cfd46,this[_0x417a27(0x2b5)]=_0x14c609,_defineProperty(this,_0x417a27(0x1ee),new BehaviorSubject(0x0)),_defineProperty(this,_0x417a27(0x19d),this['_sessionStatus$'][_0x417a27(0x16b)]()),_defineProperty(this,_0x417a27(0x292),new Subject()),_defineProperty(this,'event$',this[_0x417a27(0x292)][_0x417a27(0x16b)]()),_defineProperty(this,_0x417a27(0x1c7),void 0x0),_defineProperty(this,'_socketMessageSubscription',void 0x0),_defineProperty(this,_0x417a27(0x21e),void 0x0),_defineProperty(this,_0x417a27(0x295),![]),_defineProperty(this,_0x417a27(0x2dd),null),this[_0x417a27(0x295)]=!!this[_0x417a27(0x2b5)],_0x5730fa['pipe'](takeUntil(this[_0x417a27(0x2d8)]))['subscribe'](_0x31584c=>{const _0x57b7ba=_0x417a27;if(typeof _0x31584c==='undefined')return;this[_0x57b7ba(0x1c7)]=_0x31584c;if(_0x31584c)this[_0x57b7ba(0x152)](_0x31584c),this[_0x57b7ba(0x2a9)]=_0x31584c[_0x57b7ba(0x250)]['subscribe'](_0x4576c3=>{const _0x125c75=_0x57b7ba;if(_0x4576c3[_0x125c75(0x304)]!==this[_0x125c75(0x321)])return;this[_0x125c75(0x151)](_0x4576c3);});else{var _0x3e1f30;this[_0x57b7ba(0x247)](),this[_0x57b7ba(0x1ee)][_0x57b7ba(0x1b0)](0x2),(_0x3e1f30=this['_socketMessageSubscription'])===null||_0x3e1f30===void 0x0||_0x3e1f30['unsubscribe'](),this[_0x57b7ba(0x2a9)]=null;}});}[_0x37a288(0x358)](){const _0x139a7d=_0x37a288;var _0x1a9752,_0x5546cc;return(_0x1a9752=(_0x5546cc=this[_0x139a7d(0x1c7)])===null||_0x5546cc===void 0x0?void 0x0:_0x5546cc[_0x139a7d(0x32d)])!==null&&_0x1a9752!==void 0x0?_0x1a9752:null;}[_0x37a288(0x16a)](){const _0x142e9a=_0x37a288;super[_0x142e9a(0x16a)](),this['close'](),this[_0x142e9a(0x2d8)][_0x142e9a(0x1b0)](),this[_0x142e9a(0x2d8)][_0x142e9a(0x39e)]();}[_0x37a288(0x2e5)](){const _0x2101f4=_0x37a288;var _0x1f768f,_0x425b3f;this[_0x2101f4(0x247)](),(_0x1f768f=this['_socket'])===null||_0x1f768f===void 0x0||_0x1f768f[_0x2101f4(0x316)]({'cmd':CombCmd[_0x2101f4(0x160)],'data':{'roomID':this[_0x2101f4(0x321)]}}),(_0x425b3f=this[_0x2101f4(0x1c7)])===null||_0x425b3f===void 0x0||_0x425b3f[_0x2101f4(0x2e5)](),this['_event$'][_0x2101f4(0x39e)](),this[_0x2101f4(0x1ee)][_0x2101f4(0x39e)]();}[_0x37a288(0x151)](_0x2e1c64){const _0x1735b8=_0x37a288;if(_0x2e1c64[_0x1735b8(0x301)]===CombCmd[_0x1735b8(0x22e)])this['_onJoinRoomEvent'](_0x2e1c64);else{if(_0x2e1c64[_0x1735b8(0x301)]===CombCmd[_0x1735b8(0x156)])this[_0x1735b8(0x308)](_0x2e1c64);}}[_0x37a288(0x152)](_0x1491f1){const _0x43f587=_0x37a288;this['_sessionStatus$']['next'](0x1),_0x1491f1['send']({'cmd':CombCmd['JOIN'],'routeKey':this[_0x43f587(0x321)],'routeType':'','data':{'rooms':[{'roomID':this[_0x43f587(0x321)]}]}});}[_0x37a288(0x1e7)](_0x495321){const _0xf80df5=_0x37a288;var _0x4b7665;if(_0x495321[_0xf80df5(0x25c)]in FailedReason){this[_0xf80df5(0x1e4)][_0xf80df5(0x294)]({'id':'JOIN_ROOM_FAILED','data':FailedReason[_0x495321[_0xf80df5(0x25c)]]}),this[_0xf80df5(0x1ee)]['next'](0x2);return;}this[_0xf80df5(0x1ee)][_0xf80df5(0x1b0)](0x3);const _0x37841b=(_0x4b7665=_0x495321[_0xf80df5(0x346)][_0xf80df5(0x37e)][this['_unitID']])===null||_0x4b7665===void 0x0?void 0x0:_0x4b7665[_0xf80df5(0x177)];if(_0x37841b)_0x37841b[_0xf80df5(0x25e)](_0x465e07=>this[_0xf80df5(0x17f)]['updateMember'](this[_0xf80df5(0x321)],_0x465e07));}[_0x37a288(0x308)](_0x2917d1){const _0x50b78a=_0x37a288;try{const _0x4eeba5=_0x2917d1[_0x50b78a(0x346)];switch(_0x4eeba5[_0x50b78a(0x1f3)]){case CollaborationEvent[_0x50b78a(0x2b3)]:this[_0x50b78a(0x2aa)](_0x4eeba5),this[_0x50b78a(0x292)]['next'](_0x4eeba5);break;case CollaborationEvent['USERS_LEAVE']:this[_0x50b78a(0x2c2)](_0x4eeba5),this[_0x50b78a(0x292)]['next'](_0x4eeba5);break;case CollaborationEvent[_0x50b78a(0x1d3)]:case CollaborationEvent[_0x50b78a(0x259)]:this[_0x50b78a(0x1c9)](),this[_0x50b78a(0x2b6)](),this[_0x50b78a(0x292)][_0x50b78a(0x1b0)](_0x4eeba5);break;case CollaborationEvent['MSG_FOR_ERROR']:this[_0x50b78a(0x270)][_0x50b78a(0x1cd)](_0x50b78a(0x349)+JSON['stringify'](_0x4eeba5)),this[_0x50b78a(0x292)][_0x50b78a(0x1b0)](_0x4eeba5);break;case CollaborationEvent[_0x50b78a(0x36a)]:this[_0x50b78a(0x296)][_0x50b78a(0x234)](_0x4eeba5[_0x50b78a(0x346)]),this[_0x50b78a(0x292)]['next'](_0x4eeba5);break;default:this[_0x50b78a(0x292)][_0x50b78a(0x1b0)](_0x4eeba5);}}catch(_0x26a92c){this['_logService']['error'](_0x26a92c,_0x2917d1);}}[_0x37a288(0x2aa)](_0x3c1051){const _0x3beff3=_0x37a288;this[_0x3beff3(0x17f)][_0x3beff3(0x1cf)](this['_unitID'],_0x3c1051[_0x3beff3(0x346)]);}[_0x37a288(0x2c2)](_0x5f41dc){const _0x306010=_0x37a288;this['_memberService'][_0x306010(0x397)](this[_0x306010(0x321)],_0x5f41dc[_0x306010(0x346)]['memberID']);}async[_0x37a288(0x316)](_0x478294,_0x519f66){const _0x423a19=_0x37a288;if(this[_0x423a19(0x2f7)]!==0x3||!this[_0x423a19(0x1c7)])throw new Error(_0x423a19(0x38c));try{_0x478294[_0x423a19(0x1f3)]===CollaborationEvent[_0x423a19(0x179)]&&(this[_0x423a19(0x2ef)](),this[_0x423a19(0x3b0)](_0x478294)),this['_socket'][_0x423a19(0x316)]({'cmd':CombCmd[_0x423a19(0x1c6)],'routeKey':_0x519f66,'routeType':'','data':_0x478294});}catch(_0x1e8b2c){this[_0x423a19(0x270)][_0x423a19(0x1cd)](_0x1e8b2c);}}[_0x37a288(0x2ef)](){const _0x2e9a82=_0x37a288;var _0x3c3d37;this[_0x2e9a82(0x21e)]=setTimeout(()=>{const _0x43f7c4=_0x2e9a82;this[_0x43f7c4(0x21e)]=null,this[_0x43f7c4(0x1e4)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x3c3d37=this[_0x2e9a82(0x1ec)][_0x2e9a82(0x38e)]('HEARTBEAT_TIMEOUT'))!==null&&_0x3c3d37!==void 0x0?_0x3c3d37:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x37a288(0x2b6)](){const _0x53671f=_0x37a288;this[_0x53671f(0x21e)]&&(clearTimeout(this[_0x53671f(0x21e)]),this[_0x53671f(0x21e)]=null);}[_0x37a288(0x3b0)](_0x4aab26){const _0x11e229=_0x37a288;if(!this['_shouldReportTelemetry'])return;const {data:_0x22cb5a}=_0x4aab26,{unitID:_0x3f9c4c,changeset:_0x437d7d}=_0x22cb5a,{mutations:_0x2273e9,type:_0x4ee7d7}=_0x437d7d;this['_telemetryInfo']={'unitId':_0x3f9c4c,'type':_0x4ee7d7,'startTime':performance[_0x11e229(0x2b0)](),'stopTime':0x0,'duration':0x0,'size':summaryChangesetSize(_0x2273e9)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x589409=_0x37a288;if(!this[_0x589409(0x295)])return;if(!this[_0x589409(0x2dd)]){this[_0x589409(0x270)]['error'](_0x589409(0x2bd),_0x589409(0x2ba));return;}this[_0x589409(0x2dd)][_0x589409(0x1be)]=performance[_0x589409(0x2b0)](),this[_0x589409(0x2dd)][_0x589409(0x353)]=this[_0x589409(0x2dd)][_0x589409(0x1be)]-this[_0x589409(0x2dd)]['startTime'],this[_0x589409(0x2b5)][_0x589409(0x29b)](TELEMETRY_COLLABORATION_NEW_CHANGESET,this[_0x589409(0x2dd)]),this[_0x589409(0x2dd)]=null;}[_0x37a288(0x247)](){const _0x5ba7e9=_0x37a288;this[_0x5ba7e9(0x2dd)]=null;}};CollaborationSession=__decorate([__decorateParam(0x2,ILogService),__decorateParam(0x3,IConfigService),__decorateParam(0x4,Inject(MemberService)),__decorateParam(0x5,Inject(CommentService)),__decorateParam(0x6,Inject(CollaborationUIEventService)),__decorateParam(0x7,Optional(ITelemetryService))],CollaborationSession);const ILocalCacheService=createIdentifier(_0x37a288(0x269));function getLocalCacheKey(_0x10f707){const _0x52a751=_0x37a288;return _0x52a751(0x28f)+_0x10f707;}function extractTargetFromFirstChangeset(_0x5d37e7){const {unitID:_0x2c04e3,mutations:_0x276e8d}=_0x5d37e7;return{'unitId':_0x2c04e3,'subUnitId':_0x276e8d['length']>0x0?_0x276e8d[0x0]['params']['subUnitId']:null};}let SheetTransformSelectionsService=class SheetTransformSelectionsService{constructor(_0x488311,_0x3aa910,_0x5aad6b){const _0x109de4=_0x37a288;this['_injector']=_0x488311,this[_0x109de4(0x37c)]=_0x3aa910,this[_0x109de4(0x165)]=_0x5aad6b;}[_0x37a288(0x325)](_0x7d6b11){const _0x44254e=_0x37a288;var _0x40533c,_0x498afa;const _0x19b30d=this[_0x44254e(0x299)]['get'](SheetsSelectionsService),{unitId:_0x442c79,subUnitId:_0x211de7}=extractTargetFromFirstChangeset(_0x7d6b11),_0x878614=_0x19b30d===null||_0x19b30d===void 0x0?void 0x0:_0x19b30d[_0x44254e(0x208)](_0x442c79)[_0x44254e(0x1f8)](),_0x10944b=(_0x40533c=this[_0x44254e(0x165)][_0x44254e(0x261)](_0x442c79))===null||_0x40533c===void 0x0||(_0x40533c=_0x40533c[_0x44254e(0x1b6)]())===null||_0x40533c===void 0x0?void 0x0:_0x40533c[_0x44254e(0x2cd)]();if(_0x878614[_0x44254e(0x1a6)]===0x0||!_0x442c79||!_0x211de7)return;const _0x292dfa=[{'id':SetSelectionsOperation['id'],'params':{'unitId':_0x442c79,'subUnitId':_0x10944b,'selections':Tools['deepClone'](_0x878614)}}],_0x2ef910=this['_transformService'][_0x44254e(0x230)](_0x7d6b11,_0x292dfa);if(!isTransformMutationsWithChangesetSuccess(_0x2ef910))throw _0x2ef910[_0x44254e(0x1cd)];const _0x42fe0d=(_0x498afa=_0x2ef910['m2Prime'][0x0])===null||_0x498afa===void 0x0||(_0x498afa=_0x498afa[_0x44254e(0x2eb)])===null||_0x498afa===void 0x0?void 0x0:_0x498afa[_0x44254e(0x1b1)];if(Array[_0x44254e(0x207)](_0x42fe0d)&&_0x42fe0d['length']){if(_0x42fe0d[_0x44254e(0x1a6)]===_0x292dfa[0x0][_0x44254e(0x2eb)][_0x44254e(0x1b1)][_0x44254e(0x1a6)]&&_0x42fe0d[_0x44254e(0x29d)]((_0x56db11,_0x1fbbd7)=>Rectangle[_0x44254e(0x343)](_0x56db11[_0x44254e(0x30e)],_0x292dfa[0x0][_0x44254e(0x2eb)]['selections'][_0x1fbbd7][_0x44254e(0x30e)])))return;this['_injector'][_0x44254e(0x213)](ICommandService)[_0x44254e(0x246)](SetSelectionsOperation['id'],{'unitId':_0x442c79,'subUnitId':_0x10944b,'selections':_0x42fe0d});}}};SheetTransformSelectionsService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,ITransformService),__decorateParam(0x2,IUniverInstanceService)],SheetTransformSelectionsService);const ISingleActiveUnitService=createIdentifier(_0x37a288(0x32a));let UnitStatus=function(_0x349d8b){const _0x27af42=_0x37a288;return _0x349d8b[_0x349d8b[_0x27af42(0x27e)]=0x0]=_0x27af42(0x27e),_0x349d8b[_0x349d8b[_0x27af42(0x1c0)]=0x1]=_0x27af42(0x1c0),_0x349d8b;}({});const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY=_0x37a288(0x324),configSymbol=Symbol(COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),defaultPluginConfig={};function isSplitChunkMutation(_0x10b997){const _0x91cbe8=_0x37a288;var _0x2a7fda;return!!((_0x2a7fda=_0x10b997[_0x91cbe8(0x2eb)])===null||_0x2a7fda===void 0x0?void 0x0:_0x2a7fda['__splitChunk__']);}const SINGLE_CHANGESET_MUTATIONS=new Set([InsertSheetMutation['id']]);function assembleSheetChangeset(_0x26bf57,_0x3e8f09,_0x2b8257,_0x5d3fad,_0x10049b){const _0xb8761b=_0x37a288;var _0x137b3f,_0x3283fa,_0x218023,_0x39d8e1;const _0x2fb638=[];for(const _0x2d1cc3 of _0x26bf57){if(SINGLE_CHANGESET_MUTATIONS['has'](_0x2d1cc3['id'])){if(_0x2fb638['length']>0x0)break;_0x2fb638[_0xb8761b(0x344)](_0x2d1cc3);break;}if(isSplitChunkMutation(_0x2d1cc3)){if(_0x2fb638['length']>0x0)break;_0x2fb638['push'](_0x2d1cc3);break;}_0x2fb638[_0xb8761b(0x344)](_0x2d1cc3);}const _0x2b8d44=(_0x137b3f=(_0x3283fa=_0x10049b[_0xb8761b(0x1e3)]())===null||_0x3283fa===void 0x0?void 0x0:_0x3283fa[_0xb8761b(0x172)])!==null&&_0x137b3f!==void 0x0?_0x137b3f:_0xb8761b(0x200),_0x5cd50f=(_0x218023=(_0x39d8e1=_0x10049b[_0xb8761b(0x1e3)]())===null||_0x39d8e1===void 0x0?void 0x0:_0x39d8e1[_0xb8761b(0x32d)])!==null&&_0x218023!==void 0x0?_0x218023:_0xb8761b(0x200);return{'changeset':{'unitID':_0x3e8f09,'type':mapDocumentTypeToUniverInstanceType(_0x2b8257[_0xb8761b(0x307)](_0x3e8f09)),'baseRev':_0x5d3fad['getCurrentRevOfUnit'](_0x3e8f09),'revision':0x0,'userID':_0x2b8d44,'memberID':_0x5cd50f,'mutations':_0x2fb638},'pendingMutations':_0x26bf57[_0xb8761b(0x1a3)](_0x2fb638[_0xb8761b(0x1a6)])};}function assembleDocChangeset(_0x303f54,_0x1c9d4a,_0x44ee12,_0x2d2d6b,_0x296685){const _0x37220c=_0x37a288;var _0x5ac05e,_0x5caa57,_0x240aa4,_0x367ea3;const _0x440954=[_0x303f54['reduce']((_0x5bf72d,_0x4c5a5f)=>{const _0x3db619=_0x378b;var _0x1ae0eb;const {id:_0x5630b1}=_0x5bf72d,{id:_0x1a2130,type:_0x42212d}=_0x4c5a5f,_0x3e4849=(_0x1ae0eb=_0x5bf72d[_0x3db619(0x2eb)])!==null&&_0x1ae0eb!==void 0x0?_0x1ae0eb:{'actions':null},_0x1d722f=_0x4c5a5f[_0x3db619(0x2eb)];if(_0x5630b1&&_0x5630b1!==_0x1a2130)throw new Error(_0x3db619(0x376)+_0x5630b1+'\x20-\x20'+_0x1a2130+'.');return{..._0x5bf72d,'id':_0x1a2130,'type':_0x42212d,'params':{'unitId':_0x1d722f[_0x3db619(0x17e)],'textRanges':_0x1d722f[_0x3db619(0x2b4)],'actions':JSONX[_0x3db619(0x278)](_0x3e4849[_0x3db619(0x164)],_0x1d722f[_0x3db619(0x164)])}};},{})],_0x40bcfd=(_0x5ac05e=(_0x5caa57=_0x296685['getCurrentUser']())===null||_0x5caa57===void 0x0?void 0x0:_0x5caa57['userID'])!==null&&_0x5ac05e!==void 0x0?_0x5ac05e:_0x37220c(0x200),_0x29791e=(_0x240aa4=(_0x367ea3=_0x296685[_0x37220c(0x1e3)]())===null||_0x367ea3===void 0x0?void 0x0:_0x367ea3[_0x37220c(0x32d)])!==null&&_0x240aa4!==void 0x0?_0x240aa4:_0x37220c(0x200);return{'changeset':{'unitID':_0x1c9d4a,'type':mapDocumentTypeToUniverInstanceType(_0x44ee12['getUnitType'](_0x1c9d4a)),'baseRev':_0x2d2d6b[_0x37220c(0x1b5)](_0x1c9d4a),'revision':0x0,'userID':_0x40bcfd,'memberID':_0x29791e,'mutations':_0x440954},'pendingMutations':[]};}function createTimerObservable$(_0x266845,_0x20a875){const _0x2e8ed2=_0x37a288,_0x1ca496=new ReplaySubject(0x1);return setTimeout(()=>_0x1ca496[_0x2e8ed2(0x1b0)](_0x20a875),_0x266845),_0x1ca496[_0x2e8ed2(0x16b)]()[_0x2e8ed2(0x39b)](take(0x1));}var _PendingState,_AwaitingState,_AwaitingWithPendingState;let CollaborationStatus=function(_0xa4cc6a){const _0x33eefc=_0x37a288;return _0xa4cc6a['NOT_COLLAB']=_0x33eefc(0x275),_0xa4cc6a[_0x33eefc(0x35c)]=_0x33eefc(0x372),_0xa4cc6a[_0x33eefc(0x1f0)]='pending',_0xa4cc6a['AWAITING']='awaiting',_0xa4cc6a['AWAITING_WITH_PENDING']=_0x33eefc(0x210),_0xa4cc6a[_0x33eefc(0x37d)]=_0x33eefc(0x185),_0xa4cc6a['CONFLICT']=_0x33eefc(0x2ed),_0xa4cc6a[_0x33eefc(0x29c)]='offline',_0xa4cc6a;}({});const MAX_RETRY_TIMEOUT=0x4e20,MAX_RETRY_TOTAL_TIMEOUT=0x2bf20;var CollaborationState=class{constructor(_0x15bb62,_0x5bf842,_0x51468a,_0x284967,_0x25990d,_0x25e0ca,_0x31278d,_0xb02f42,_0x2b53ff){const _0x3507ff=_0x37a288;this['unitID']=_0x15bb62,this[_0x3507ff(0x2b9)]=_0x5bf842,this['_handler']=_0x25990d,this[_0x3507ff(0x36d)]=_0x25e0ca,this['_undoRedoService']=_0x31278d,this[_0x3507ff(0x2c0)]=_0xb02f42,this[_0x3507ff(0x2a1)]=_0x2b53ff,_defineProperty(this,_0x3507ff(0x36c),null),_defineProperty(this,_0x3507ff(0x212),[]),this[_0x3507ff(0x36c)]=_0x51468a,this[_0x3507ff(0x212)]=_0x284967;}[_0x37a288(0x3a8)](_0x222667){const _0x438971=_0x37a288,_0x5ba0cf=this[_0x438971(0x2c0)]['getCurrentRevOfUnit'](this['unitID']);if(_0x222667[_0x438971(0x319)]>_0x5ba0cf+0x1)return this['_handler'][_0x438971(0x3a6)]({'from':_0x5ba0cf,'to':_0x222667[_0x438971(0x319)]-0x1}),!![];return![];}[_0x37a288(0x30a)](_0x26a2c1){const _0x1ffe05=_0x37a288;this['_undoRedoService'][_0x1ffe05(0x154)](this['unitID'],_0x26a2c1);}[_0x37a288(0x18e)](_0xd56923){const _0x407fdf=_0x37a288;var _0x25acc4,_0x2ffb88;(_0x25acc4=(_0x2ffb88=this[_0x407fdf(0x297)])[_0x407fdf(0x371)])===null||_0x25acc4===void 0x0||_0x25acc4[_0x407fdf(0x2b8)](_0x2ffb88,_0xd56923);}[_0x37a288(0x27f)](_0x56db88){const _0x4517b3=_0x37a288;var _0x4ad2e0,_0x32b1de;return(_0x4ad2e0=(_0x32b1de=this[_0x4517b3(0x297)])['onTransformIME'])===null||_0x4ad2e0===void 0x0?void 0x0:_0x4ad2e0[_0x4517b3(0x2b8)](_0x32b1de,_0x56db88);}[_0x37a288(0x219)](_0x496734){const _0x226489=_0x37a288;var _0x20505a,_0x34e19f;return(_0x20505a=(_0x34e19f=this[_0x226489(0x297)])['onTransformState'])===null||_0x20505a===void 0x0?void 0x0:_0x20505a[_0x226489(0x2b8)](_0x34e19f,_0x496734);}[_0x37a288(0x2d2)](_0x12b050){const _0x57e368=_0x37a288;var _0x3d5c2c,_0x16076f,_0x3c0c92;return(_0x3d5c2c=(_0x16076f=(_0x3c0c92=this[_0x57e368(0x297)])[_0x57e368(0x148)])===null||_0x16076f===void 0x0?void 0x0:_0x16076f['call'](_0x3c0c92,_0x12b050))!==null&&_0x3d5c2c!==void 0x0?_0x3d5c2c:_0x12b050;}[_0x37a288(0x1c4)](_0x250e89){const _0x58a7e0=_0x37a288;var _0x276bfb,_0x53eae5,_0xd93ec7;return(_0x276bfb=(_0x53eae5=(_0xd93ec7=this[_0x58a7e0(0x297)])['onTransformRemoteChangesetByStateCache'])===null||_0x53eae5===void 0x0?void 0x0:_0x53eae5[_0x58a7e0(0x2b8)](_0xd93ec7,_0x250e89))!==null&&_0x276bfb!==void 0x0?_0x276bfb:_0x250e89;}[_0x37a288(0x330)](_0x309ebc){const _0x3e8a86=_0x37a288;if(this[_0x3e8a86(0x2b9)]===UniverInstanceType[_0x3e8a86(0x3a2)]){const {unitID:_0x1c445a,mutations:_0x3cd868,memberID:_0x47f58b}=_0x309ebc,_0x4d9148=_0x3cd868[_0x3e8a86(0x1a6)]>0x0?_0x3cd868[0x0][_0x3e8a86(0x2eb)][_0x3e8a86(0x2b4)]:[];if(Array['isArray'](_0x4d9148)&&_0x4d9148[_0x3e8a86(0x1a6)]>0x0){var _0x51591a,_0x131521;(_0x51591a=(_0x131521=this[_0x3e8a86(0x297)])['onSyncEditingCollabCursor'])===null||_0x51591a===void 0x0||_0x51591a[_0x3e8a86(0x2b8)](_0x131521,{'unitID':_0x1c445a,'memberID':_0x47f58b,'textRanges':_0x4d9148});}}}[_0x37a288(0x365)](){const _0x268b19=_0x37a288;var _0x122d12;(_0x122d12=this[_0x268b19(0x2a1)])===null||_0x122d12===void 0x0||_0x122d12[_0x268b19(0x17b)](this['unitID'],this[_0x268b19(0x2b9)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x37a288(0x360)](){const _0x45c218=_0x37a288;return this[_0x45c218(0x2c0)][_0x45c218(0x1b5)](this[_0x45c218(0x196)]);}[_0x37a288(0x258)](){const _0x8cce6e=_0x37a288;this[_0x8cce6e(0x2c0)][_0x8cce6e(0x2e0)](this[_0x8cce6e(0x196)]);}['_executeRemoteChangeset'](_0x133e3b){const _0x52ab31=_0x37a288;let _0xa5047a=this[_0x52ab31(0x2d2)](_0x133e3b);_0xa5047a=this[_0x52ab31(0x1c4)](_0xa5047a);const _0x40c8b1=sequenceExecute(_0xa5047a[_0x52ab31(0x1ef)],this[_0x52ab31(0x36d)],{'fromCollab':!![]});if(!_0x40c8b1[_0x52ab31(0x1ae)]){var _0x5e233a;if(_0x40c8b1[_0x52ab31(0x1cd)]instanceof Error)throw _0x40c8b1[_0x52ab31(0x1cd)];throw new Error((_0x5e233a=_0x40c8b1['error'])!==null&&_0x5e233a!==void 0x0?_0x5e233a:'[CollaborationState]:\x20apply\x20error!');}this[_0x52ab31(0x27f)](_0xa5047a),this['_transformStateCache'](_0xa5047a),this[_0x52ab31(0x30a)](_0x133e3b),this[_0x52ab31(0x18e)](_0xa5047a),this[_0x52ab31(0x330)](_0xa5047a),this[_0x52ab31(0x258)]();}};let SyncedState=class SyncedState extends CollaborationState{constructor(_0x514146,_0x224103,_0x2770e9,_0x5f4d3c,_0x32e9d4,_0x42896c,_0x266750,_0x12b443,_0x6ba040,_0x3f83ae){const _0x48d715=_0x37a288;super(_0x514146,_0x224103,null,[],_0x2770e9,_0x266750,_0x42896c,_0x5f4d3c,_0x3f83ae),this[_0x48d715(0x299)]=_0x32e9d4,this['_logService']=_0x12b443,this[_0x48d715(0x37c)]=_0x6ba040,this[_0x48d715(0x1bc)]=_0x3f83ae,_defineProperty(this,_0x48d715(0x2cb),_0x48d715(0x372));}[_0x37a288(0x326)](_0x21b841){const _0x2e3fc3=_0x37a288,_0xc13331=this[_0x2e3fc3(0x299)][_0x2e3fc3(0x21a)](PendingState,this[_0x2e3fc3(0x196)],this['type'],[_0x21b841],this[_0x2e3fc3(0x297)]);return _0xc13331['_schedule'](),_0xc13331[_0x2e3fc3(0x365)](),_0xc13331;}[_0x37a288(0x342)](_0x4bbd92){const _0x2fbbef=_0x37a288;if(this[_0x2fbbef(0x3a8)](_0x4bbd92))return this[_0x2fbbef(0x299)][_0x2fbbef(0x21a)](FetchingMissState,this[_0x2fbbef(0x196)],this[_0x2fbbef(0x2b9)],null,[],null,[_0x4bbd92],this[_0x2fbbef(0x297)]);try{const _0x1d9410=this['_transformService']['transformMutationsWithChangeset'](_0x4bbd92,[EmptyMutationInfo]);if(isTransformMutationsWithChangesetSuccess(_0x1d9410)){const {c1Prime:_0xf2b6d}=_0x1d9410;return this[_0x2fbbef(0x1c5)](_0xf2b6d),this;}throw _0x1d9410[_0x2fbbef(0x1cd)];}catch(_0x34ed93){return this[_0x2fbbef(0x270)][_0x2fbbef(0x1cd)](_0x34ed93),this[_0x2fbbef(0x1ac)](![]);}}[_0x37a288(0x1ac)](_0x1419c2){const _0x4859b1=_0x37a288;return this[_0x4859b1(0x299)][_0x4859b1(0x21a)](ConflictState,this[_0x4859b1(0x196)],this['type'],null,[],this[_0x4859b1(0x297)],_0x1419c2);}[_0x37a288(0x217)](_0x25a802){const _0x2c4ae3=_0x37a288;if(_0x25a802[_0x2c4ae3(0x319)]<=this[_0x2c4ae3(0x360)]())return this;throw new Error(_0x2c4ae3(0x374));}['onRemoteRej'](){const _0x26d6c1=_0x37a288;throw new Error(_0x26d6c1(0x25f));}[_0x37a288(0x30b)](){return this;}[_0x37a288(0x167)](){const _0x4704c2=_0x37a288;return this[_0x4704c2(0x299)]['createInstance'](OfflineState,this[_0x4704c2(0x196)],this['type'],null,[],this[_0x4704c2(0x297)]);}['toggleOnline'](){return this;}[_0x37a288(0x2d5)](){const _0x5c8cfe=_0x37a288;throw new Error(_0x5c8cfe(0x237));}['fetchMiss'](){const _0x40ef74=_0x37a288,_0x552e53=this['_revisionService'][_0x40ef74(0x1b5)](this['unitID']);return this[_0x40ef74(0x297)]['onMissingChangesets']({'from':_0x552e53,'to':0x0}),this['_injector'][_0x40ef74(0x21a)](FetchingMissState,this['unitID'],this[_0x40ef74(0x2b9)],null,[],null,[],this['_handler']);}};SyncedState=__decorate([__decorateParam(0x3,Inject(RevisionService)),__decorateParam(0x4,Inject(Injector)),__decorateParam(0x5,IUndoRedoService),__decorateParam(0x6,ICommandService),__decorateParam(0x7,ILogService),__decorateParam(0x8,ITransformService),__decorateParam(0x9,Optional(ILocalCacheService))],SyncedState);let PendingState=_PendingState=class PendingState extends CollaborationState{constructor(_0x34cb99,_0x2c115f,_0x22edf3,_0x4c2164,_0x10300d,_0x23444d,_0x34ed82,_0x5913f0,_0x4033f9,_0x407d9b,_0x5d81f6,_0x368471,_0x22881c,_0x26554f){const _0x4ffbc9=_0x37a288;super(_0x34cb99,_0x2c115f,null,_0x22edf3,_0x4c2164,_0x4033f9,_0x22881c,_0x23444d,_0x26554f),this[_0x4ffbc9(0x299)]=_0x10300d,this[_0x4ffbc9(0x17f)]=_0x34ed82,this[_0x4ffbc9(0x270)]=_0x5913f0,this[_0x4ffbc9(0x1ec)]=_0x407d9b,this[_0x4ffbc9(0x37c)]=_0x5d81f6,this[_0x4ffbc9(0x229)]=_0x368471,_defineProperty(this,_0x4ffbc9(0x2cb),_0x4ffbc9(0x1cb)),_defineProperty(this,_0x4ffbc9(0x2e1),null),_defineProperty(this,_0x4ffbc9(0x20f),null);}[_0x37a288(0x326)](_0x13f4a7){const _0x395f47=_0x37a288;return this[_0x395f47(0x212)]['push'](_0x13f4a7),this[_0x395f47(0x365)](),this;}[_0x37a288(0x342)](_0x3ed1c7){const _0x53d3c0=_0x37a288;if(this[_0x53d3c0(0x3a8)](_0x3ed1c7))return this[_0x53d3c0(0x251)](),this[_0x53d3c0(0x299)]['createInstance'](FetchingMissState,this[_0x53d3c0(0x196)],this['type'],null,this[_0x53d3c0(0x212)],null,[_0x3ed1c7],this[_0x53d3c0(0x297)]);try{const _0x22e55f=this[_0x53d3c0(0x37c)][_0x53d3c0(0x230)](_0x3ed1c7,this['_pendingMutations']);if(isTransformMutationsWithChangesetSuccess(_0x22e55f)){const {c1Prime:_0x3fdbcf,m2Prime:_0x2f63f3}=_0x22e55f;this['_executeRemoteChangeset'](_0x3fdbcf);const _0x34875d=this['_injector'][_0x53d3c0(0x21a)](_PendingState,this['unitID'],this['type'],_0x2f63f3,this[_0x53d3c0(0x297)]);this[_0x53d3c0(0x251)]();const _0xee80b8=new Date()[_0x53d3c0(0x191)](),_0x504c62=this['_scheduleCompleteTimestamp']?Math['max'](this[_0x53d3c0(0x2e1)]-_0xee80b8,0x0):this[_0x53d3c0(0x23d)]();return _0x34875d['_schedule'](_0x504c62),_0x34875d;}throw _0x22e55f[_0x53d3c0(0x1cd)];}catch(_0x5a82fc){return this[_0x53d3c0(0x270)]['error'](_0x5a82fc),this[_0x53d3c0(0x1ac)](![]);}}[_0x37a288(0x217)](_0x598655){const _0x21351d=_0x37a288;if(_0x598655[_0x21351d(0x319)]<=this[_0x21351d(0x360)]())return this;throw new Error(_0x21351d(0x2fb));}[_0x37a288(0x298)](){const _0x25796e=_0x37a288;throw new Error(_0x25796e(0x33f));}['onRemoteRetry'](){return this;}[_0x37a288(0x167)](){const _0x29931d=_0x37a288;return this['_clearScheduledTask'](),this[_0x29931d(0x299)]['createInstance'](OfflineState,this['unitID'],this['type'],null,this[_0x29931d(0x212)],this[_0x29931d(0x297)]);}['toggleOnline'](){return this;}['_schedule'](_0x332e13){const _0xa5477e=_0x37a288,_0x15bc2b=_0x332e13!==null&&_0x332e13!==void 0x0?_0x332e13:this[_0xa5477e(0x23d)]();this['_scheduleCompleteTimestamp']=new Date()[_0xa5477e(0x191)]()+_0x15bc2b,this[_0xa5477e(0x20f)]=setTimeout(()=>{const _0x2336f6=_0xa5477e;this[_0x2336f6(0x251)]();let _0x5b9416=null;switch(this[_0x2336f6(0x2b9)]){case UniverInstanceType['UNIVER_SHEET']:_0x5b9416=assembleSheetChangeset(this[_0x2336f6(0x212)],this[_0x2336f6(0x196)],this[_0x2336f6(0x229)],this[_0x2336f6(0x2c0)],this[_0x2336f6(0x17f)]);break;case UniverInstanceType[_0x2336f6(0x3a2)]:if(this[_0x2336f6(0x212)][_0x2336f6(0x29d)](_0x37a314=>_0x37a314['id']===RichTextEditingMutation['id']))_0x5b9416=assembleDocChangeset(this[_0x2336f6(0x212)],this['unitID'],this[_0x2336f6(0x229)],this['_revisionService'],this[_0x2336f6(0x17f)]);else _0x5b9416=assembleSheetChangeset(this[_0x2336f6(0x212)],this['unitID'],this[_0x2336f6(0x229)],this[_0x2336f6(0x2c0)],this[_0x2336f6(0x17f)]);break;default:throw new Error(_0x2336f6(0x260)+this[_0x2336f6(0x2b9)]+'\x20in\x20_schedule.');}const {changeset:_0x285b41,pendingMutations:_0x505c9f}=_0x5b9416;this[_0x2336f6(0x297)][_0x2336f6(0x265)](_0x285b41);const _0x30ace4=_0x505c9f[_0x2336f6(0x1a6)]?this[_0x2336f6(0x299)][_0x2336f6(0x21a)](AwaitingWithPendingState,this['unitID'],this[_0x2336f6(0x2b9)],_0x285b41,_0x505c9f,this[_0x2336f6(0x297)],void 0x0):this['_injector'][_0x2336f6(0x21a)](AwaitingState,this[_0x2336f6(0x196)],this[_0x2336f6(0x2b9)],_0x285b41,this[_0x2336f6(0x297)]);_0x30ace4[_0x2336f6(0x365)](),this[_0x2336f6(0x297)][_0x2336f6(0x14b)](this,_0x30ace4);},_0x15bc2b);}['_getSendChangesetTimeout'](){const _0x13db95=_0x37a288;var _0x1878f1;const _0x3c64d6=this[_0x13db95(0x1ec)][_0x13db95(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x1878f1=_0x3c64d6===null||_0x3c64d6===void 0x0?void 0x0:_0x3c64d6[_0x13db95(0x37f)])!==null&&_0x1878f1!==void 0x0?_0x1878f1:DEFAULT_SEND_CHANGESET_TIMEOUT;}[_0x37a288(0x2d5)](){const _0x8bcbc5=_0x37a288;throw new Error(_0x8bcbc5(0x183));}[_0x37a288(0x251)](){const _0x383ced=_0x37a288;this[_0x383ced(0x20f)]!=null&&(clearTimeout(this[_0x383ced(0x20f)]),this[_0x383ced(0x20f)]=null);}['_onConflict'](_0x40741c){const _0x35e264=_0x37a288;return this[_0x35e264(0x251)](),this[_0x35e264(0x299)][_0x35e264(0x21a)](ConflictState,this['unitID'],this[_0x35e264(0x2b9)],null,this['_pendingMutations'],this['_handler'],_0x40741c);}};PendingState=_PendingState=__decorate([__decorateParam(0x4,Inject(Injector)),__decorateParam(0x5,Inject(RevisionService)),__decorateParam(0x6,Inject(MemberService)),__decorateParam(0x7,ILogService),__decorateParam(0x8,ICommandService),__decorateParam(0x9,IConfigService),__decorateParam(0xa,ITransformService),__decorateParam(0xb,IUniverInstanceService),__decorateParam(0xc,IUndoRedoService),__decorateParam(0xd,Optional(ILocalCacheService))],PendingState);function _0x1522(){const _0xc241ea=['_onOffline','routeKey','_socketReady','_sendHeartbeat','getUnitType','_onRecvEvent','state','_transformUndoredo','onRemoteRetry','_change$','_applyRemoteChangeset','range','getValue','_changesetSessionId','encrypt','DEFAULT_FILE_NAME','_snapshotServerService','state$','has','send','function','onload','revision','UPDATE_CURSOR','undefined','auth.needGotoLoginAlert','IDLE','saveSnapshot','put','CHANGESET_REJ','_unitID','?url=','close$','collaboration-client.config','transformSelections','appendMutation','OTHER_CLIENT_EDITING','[UniverCollaborationClientPlugin]','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','univer-pro.collaboration-client.single-active-unit-service','FAIL','unsubscribe','memberID','_HTTPService','USERS_LEAVE','_syncEditingCollabCursor','_decreaseWaiting','getResourcesRequest','_init','leaveEvent','_onMessage','session.room-permission-denied','7999312pLKKJL','submit\x20changeset\x20error!','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','UNISCRIPT_RUN','_clearTimeoutTimer','updateCursorEvent','objectType','onTransformIME','[PendingState]:\x20received\x20rejection.','JOINING','sid','onRemoteChangeset','equals','push','headers','data','_status$','_permissionService','save\x20fail\x20reason\x20is\x20','open$','rev','/unit/','_getLoginPath','catch','update','_socketService','_networkConditionService','_resendTimeout','duration','loginUrlKey','COMPRESS_MUTATION_SEND','getUnitOnRev','UUID','getMemberID','values','event$','_redoStacks','SYNCED','/resources','1227534rRpBfj','unit','_getCurrentRevision','url','UNIVER_SHEET','pauseCollaboration','&assign=','_updateLocalCache','_clearUndo','/-/object/-/batch_allowed','fetchMiss','_updateStatus','COMMENT_UPDATE','_entityInit$','_awaitingChangeset','_commandService','_schedule','add','_submitChangeset','onTransformSelections','synced','onMissedChangesetFetched','[SyncedState]:\x20received\x20acknowledgement.','JOIN_ROOM_FULL','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','delete','init','CLOSE_ROOM','online$','c1Prime','_transformService','FETCH_MISS','roomInfos','sendChangesetTimeout','hostname','registerHTTPInterceptor','session.room-full','_transformStack','members$','csShouldRetryEvent','version','fetchThroughInterceptors','SOCKET_FAILED','defineProperty','disableLocalCache','onStarting','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_isEchoedAwaitingChangeset','getConfig','_onConnectionOpen','JOIN_ROOM_PERMISSION_DENIED','setCurrentUser','_config','ERROR_IMAGE','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','loadOfflineData','_resendWithTimeout','removeMember','_queuedRemoteChangesets','_initMergeInterceptor','responseType','pipe','_resendTimer','saveSheetBlock','complete','commentUpdate$','PERMISSION_REJ','string','UNIVER_DOC','symbol','objectActions','_initUnitPermissionChange','onMissingChangesets','loadUnitOfRevision','_checkMissing','ONLINE','_waitCount','_roomCreated$','getRoom','avatar','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','then','_startTelemetryCollaborationNewChangeset','charCodeAt','/universer-api/oidc/authpage','onTransformRemoteChangesetByIMECache','[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.','_isPermissionRej','onStateChange','cfgEnableObjInherit','_createHandler','_removeRoom','_initRequestHeader','focused$','_onCombEvent','_joinRoom','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','transformUndoRedo','HEARTBEAT_INTERVAL','RECV','getImage','_onRemoteRetry','collaboratorID','/universer-api/user/session-ticket','editing\x20status\x20changed\x20to','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','_unlockTransition','getUnitId','0.22.1','LEAVE','JOIN_ROOM_FAILED','infoRsp','getImageSourceCache','actions','_instanceService','includes','toggleOffline','LIVESHARE_OPERATION','name','dispose','asObservable','_clearRedo','getSnapshotAPIPath','_acknowledgeAwaitingIfReady','href','socketService','waitForRoom$','userID','fetching\x20missing\x20changesets\x20from\x20','COMPRESS_MUTATION_APPLY','setCfgEnableObjInherit','_toggleOffline','members','readyForCollab','SUBMIT_CHANGESET','saveImage','updateOfflineData','snapshot','packageName','unitId','_memberService','SUBMIT_CHANGESET_TIMEOUT','_createInitialState','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_maxTotalRetryTimeout','fetch_missing','decorate','prototype','_entities','HELLO','PERMISSION_DENIED','status$','_getRedoStack','_fetchMissChangesets','_transformSelections','/universer-api/file/{fileID}/sign-url','_replaceFileID','getTime','_rescheduleHeartbeat','offline','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRemoteACK','unitID','_sendHeartbeatTimer','change$','changesets','loadDoc','Error\x20on\x20receiving\x20event','session','sessionStatus$','HEARTBEAT','originalMeta','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','/collaborator','[CollaborationEntity]','slice','find','315964cKUYZe','length','onMutationExecutedForCollab','FETCH_MISSING','confirm','getFocusedUnit','replace','_onConflict','_members','result','min','next','selections','constructor','joinEvent','list','getCurrentRevOfUnit','getActiveSheet','_getUndoStack','_getSignURL','univer-pro.collaboration-client-socket-service','error$','getSheetBlock','localCacheService','_retryConnectingTimer','stopTime','failed\x20to\x20apply\x20missed\x20changesets!','OTHER_CLIENTS_EDITING','SUCCUSS','_tryReconnect','[OfflineState]:\x20received\x20rejection.','_transformRemoteChangesetByStateCache','_executeRemoteChangeset','INGEST','_socket','connection\x20error','_stopTelemetryCollaborationNewChangeset','refreshPermission','pending','setConfig','error','getDeserializedSheetBlock','updateMember','objectID','getCfgEnableObjInherit','_getAPIPrefixPath','CHANGESET_ACK','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','interceptor','fetchMissingChangesets','reconnect','unitInfo$','POST','startsWith','_showConflictNotification','MUTATION','/fetchmissing?from=','closeSession','origin','subject','HEARTBEAT_TIMEOUT','_singleActiveUnitService','getCurrentUser','_collaborationUIEventService','_clearLocalCache','uploadFileServerUrl','_onJoinRoomEvent','_substituteRedoStack','[OfflineState]:\x20received\x20acknowledgement.','UnitEmbedded','permissionRejEvent','_configService','toPrimitive','_sessionStatus$','mutations','PENDING','map','reject','eventID','_updateState','toString','\x0aAfter:\x20','SOCKET_FAILED_RETRY','getCurrentSelections','_onRemoteRejected','_snapshotService','_initCloseConn','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','/universer-api/snapshot','_onLocalMutation','UNIVER_COLLABORATION_CLIENT_PLUGIN','unknown','liveShareNewHost','encodeURIComponent','awaiting','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_transformAndApplyRemoteChangeset','_getUploadFileURL','isArray','getWorkbookSelections','_collaborationSessionService','LIVESHARE_TERMINATE','collaborators','/role','_handlerCallback','NEW_CHANGESETS','_sendingTimer','awaiting_with_pending','socket\x20close','_pendingMutations','get','LIVESHARE_NEW_HOST','_cfgEnableObjInherit','_socket$','onRemoteAck','GLOBAL_ROOMS_CNT_EXCEEDS','_transformStateCache','createInstance','transformChangesets','_tryEnsureSocket','liveShareOperation','_collaborationTimeoutTimer','object','apply','reqId','resourceIDs','deleteCollaborator','9GLthFy','toggleOnline','requireSession','/block/','findIndex','_univerInstanceService','_acknowledgeAwaiting','_acknowledgedAwaitingRevision','splice','override','JOIN','socket\x20open.','transformMutationsWithChangeset','getTypeOfUnitAdded$','_httpService','ERROR_EXCEED_SIZE','onCommentUpdate','size','_onConnectionFailed','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','createCollaborator','target','sort','isPermissionRej','Failed\x20to\x20update\x20permission\x20point','_getSendChangesetTimeout','_createInitialStateImpl','_emitMembers','commentUpdateEvent','_exhaustRemoteChangesetQueue','/universer-api/uniscript','getInterceptPoints','_startCollaboration','MSG_FOR_ERROR','executeCommand','_throwTelemetryCollaborationNewChangeset','_clearHeartbeatTimer','requestParams','stringify','_remoteChangesetQueue','PERSON','default','/universer-api/comb','_type','message$','_clearScheduledTask','getOwnPropertyDescriptor','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','FileId','_commentUpdate$','_toggleOnline','_roomMembers','_incrementRevisionNumber','CHANGESET_SHOULD_RETRY','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_imageSourceCache','code','unitId\x20is\x20not\x20found','forEach','[SyncedState]:\x20received\x20rejection.','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getUnit','floor','_compressMutationService','getTypeOfUnitDisposed$','onSendChangeset','getCollabEntity$','loadUnit','3045066wfpYPO','collaboration-client.local-cache-service','_getDownloadEndpointURL','append','baseRev','getMember','socket$','enableSingleActiveInstanceLock','_logService','[DataLoaderService]','_disableEditing','joinRsp','[CollaborationUndoRedoService]','not_collab','Univer','collabSubmitChangesetUrl','compose','__Key__','LIVESHARE_FETCH_OPERATIONS','debug','updatePermissionObjEvent','387494oIvcgt','NO_OTHER_CLIENTS_EDITING','_transformIMECache','onTransformRemoteChangesetByStateCache','enableAuthServer','UPDATE_PERMISSION_OBJ','_userManagerService','PSEUDO_FETCH_MISSING_RESULT','filter','c2Prime','_onFetchMissResult','RETRY_CONNECTING_MAX_COUNT','_waitForHeartbeatResponse','People','_listenToNetworkCondition','sheets','entityInit$','_sessions','unit-cache-','JOIN_ROOM_NOT_EXISTS','getLatestCsReqIdBySid','_event$','/object/','emitEvent','_shouldReportTelemetry','_commentService','_handler','onRemoteRej','_injector','_getAPIPrefix','capture','OFFLINE','every','BASE64','_registerDependencies','session.room-not-exists','_localCacheService','ERROR_IMAGE_TYPE','collaboration_new_changeset','5VGefxg','_unitInfo$','_handleRemoteChangesets','updatePermissionPoint','[CollaborationSessionService]','_socketMessageSubscription','_onUserJoin','CONFLICT','title','createSocket','subscribe','m2Prime','now','[FetchMissState]','awaitingChangeset','USERS_ENTER','textRanges','_telemetryService','_clearCollaborationTimeoutTimer','ws://127.0.0.1:8000/universer-api/comb/connect','call','type','telemetry\x20info\x20is\x20not\x20initialized','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_localeService','[CollaborationSession]','fromCollab','post','_revisionService','_transitionLocked','_onUserLeave','_members$','set','patch','_changesetReqId','_lockTransition','_clearRetryConnectingTimer','_timeoutTimer','signUrlServerUrl','status','csAckEvent','getSheetId','fromCharCode','onLocalMutation','updateCollaborator','_onRemoteChangeset','_transformRemoteChangesetByIMECache','SHOULD_CLOSE_CONN','_retryCount','resend','_eventService','_state$','dispose$','_replayCachedMutations','_sender','755016XAlRPf','\x0aCurrent:\x20','_telemetryInfo','roles','_sheetTransformSelectionsService','incrementRevOfUnit','_scheduleCompleteTimestamp','enableOfflineEditing','709752qroVRA','OPTIONAL','close','shouldCloseConn','copyFileMeta','workbook','_candidateSocket','snapshotServerUrl','params','setWaitCount','conflict','missingChangesets','_scheduleCollaborationTimeoutTimer','from','_createSocket','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','body','disposeWithMe','file','encode','sessionStatus','localeService','_initDependencies','/universer-api/snapshot/','[PendingState]:\x20received\x20acknowledgement.','_state','_collaborationPaused','clear','authzUrl','location','cmd','src'];_0x1522=function(){return _0xc241ea;};return _0x1522();}let AwaitingState=_AwaitingState=class AwaitingState extends CollaborationState{constructor(_0x12515c,_0x570566,_0x2fe8db,_0x1e38cc,_0xf201d0,_0x49d774,_0x1da107,_0x15bb8b,_0x22e01a,_0x3323cd,_0x164178){const _0x5cddfb=_0x37a288;super(_0x12515c,_0x570566,_0x2fe8db,[],_0x1e38cc,_0x1da107,_0x3323cd,_0x49d774,_0x164178),this[_0x5cddfb(0x299)]=_0xf201d0,this[_0x5cddfb(0x270)]=_0x15bb8b,this[_0x5cddfb(0x37c)]=_0x22e01a,_defineProperty(this,'status',_0x5cddfb(0x203)),_defineProperty(this,_0x5cddfb(0x352),0x0),_defineProperty(this,_0x5cddfb(0x184),0x0),_defineProperty(this,_0x5cddfb(0x39c),void 0x0),_defineProperty(this,'_sender',void 0x0);}[_0x37a288(0x326)](_0x3b3c15){const _0x351ff5=_0x37a288;this[_0x351ff5(0x251)]();const _0x73643b=this[_0x351ff5(0x299)][_0x351ff5(0x21a)](AwaitingWithPendingState,this['unitID'],this[_0x351ff5(0x2b9)],this[_0x351ff5(0x36c)],[_0x3b3c15],this[_0x351ff5(0x297)],this[_0x351ff5(0x39c)]);return _0x73643b[_0x351ff5(0x365)](),_0x73643b;}[_0x37a288(0x342)](_0x33fdcb){const _0x20fe10=_0x37a288;if(this['_checkMissing'](_0x33fdcb))return this[_0x20fe10(0x251)](),this[_0x20fe10(0x299)][_0x20fe10(0x21a)](FetchingMissState,this[_0x20fe10(0x196)],this[_0x20fe10(0x2b9)],this[_0x20fe10(0x36c)],[],null,[_0x33fdcb],this[_0x20fe10(0x297)]);try{const _0x46130b=this['_transformService'][_0x20fe10(0x21b)]([_0x33fdcb],[this['_awaitingChangeset']],![]);if(isTransformChangesetsSuccess(_0x46130b)){const {c1Prime:_0xc93052,c2Prime:_0x312f7a}=_0x46130b;this['_executeRemoteChangeset'](_0xc93052[0x0]),_0x312f7a[0x0][_0x20fe10(0x26c)]=this[_0x20fe10(0x360)](),this[_0x20fe10(0x251)]();const _0x46359d=this[_0x20fe10(0x299)][_0x20fe10(0x21a)](_AwaitingState,this['unitID'],this[_0x20fe10(0x2b9)],_0x312f7a[0x0],this['_handler']);return _0x46359d[_0x20fe10(0x365)](),_0x46359d;}throw _0x46130b[_0x20fe10(0x1cd)];}catch(_0x319d3b){return this[_0x20fe10(0x270)][_0x20fe10(0x1cd)](_0x319d3b),this[_0x20fe10(0x1ac)](![]);}}[_0x37a288(0x217)](_0xe1a3b1){const _0x3de603=_0x37a288;this[_0x3de603(0x251)]();const _0x174993=this[_0x3de603(0x2c0)][_0x3de603(0x1b5)](this[_0x3de603(0x196)]);if(_0xe1a3b1['revision']<=_0x174993)return this;if(this[_0x3de603(0x3a8)](_0xe1a3b1))return this[_0x3de603(0x299)]['createInstance'](FetchingMissState,this[_0x3de603(0x196)],this[_0x3de603(0x2b9)],this[_0x3de603(0x36c)],[],_0xe1a3b1[_0x3de603(0x319)],[],this[_0x3de603(0x297)]);this['_incrementRevisionNumber']();const _0x1a1cc2=this['_injector'][_0x3de603(0x21a)](SyncedState,this['unitID'],this['type'],this[_0x3de603(0x297)]);return _0x1a1cc2['_updateLocalCache'](),_0x1a1cc2;}['onRemoteRej'](_0x4ecf54){const _0x138980=_0x37a288;return this[_0x138980(0x1ac)](!!(_0x4ecf54===null||_0x4ecf54===void 0x0?void 0x0:_0x4ecf54[_0x138980(0x23b)]));}[_0x37a288(0x30b)](_0xe72495){const _0x66a1bd=_0x37a288;if(this[_0x66a1bd(0x184)]>MAX_RETRY_TOTAL_TIMEOUT)return this[_0x66a1bd(0x167)]();return this[_0x66a1bd(0x39c)]=createTimerObservable$(this[_0x66a1bd(0x352)],{'timeout':this[_0x66a1bd(0x352)],'reqId':_0xe72495[_0x66a1bd(0x221)]}),this[_0x66a1bd(0x2da)]=this[_0x66a1bd(0x39c)][_0x66a1bd(0x2ae)](({reqId:_0x495815,timeout:_0x53b657})=>{const _0x23fad9=_0x66a1bd;this[_0x23fad9(0x396)](_0x495815,_0x53b657);}),this;}[_0x37a288(0x167)](){const _0x5bfebc=_0x37a288;return this['_clearScheduledTask'](),this[_0x5bfebc(0x299)][_0x5bfebc(0x21a)](OfflineState,this[_0x5bfebc(0x196)],this['type'],this['_awaitingChangeset'],[],this[_0x5bfebc(0x297)]);}[_0x37a288(0x225)](){return this;}[_0x37a288(0x2d5)](){const _0x30ae1d=_0x37a288;this[_0x30ae1d(0x297)][_0x30ae1d(0x265)](this[_0x30ae1d(0x36c)]);}[_0x37a288(0x1ac)](_0x2f10fc){const _0x44c0ef=_0x37a288;return this[_0x44c0ef(0x251)](),this['_injector']['createInstance'](ConflictState,this[_0x44c0ef(0x196)],this[_0x44c0ef(0x2b9)],this[_0x44c0ef(0x36c)],[],this['_handler'],_0x2f10fc);}[_0x37a288(0x396)](_0x552ebd,_0x567e9e){const _0x4bd3d9=_0x37a288;var _0x29bfbb;_0x552ebd===((_0x29bfbb=this[_0x4bd3d9(0x36c)])===null||_0x29bfbb===void 0x0?void 0x0:_0x29bfbb[_0x4bd3d9(0x221)])&&(this[_0x4bd3d9(0x2d5)](),this[_0x4bd3d9(0x352)]=_0x567e9e===0x0?0x3e8:Math['min'](_0x567e9e*0x2,MAX_RETRY_TIMEOUT),this['_maxTotalRetryTimeout']+=this[_0x4bd3d9(0x352)]);}[_0x37a288(0x251)](){const _0x2a8590=_0x37a288;var _0x180043;(_0x180043=this['_sender'])===null||_0x180043===void 0x0||_0x180043[_0x2a8590(0x32c)](),this[_0x2a8590(0x352)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};AwaitingState=_AwaitingState=__decorate([__decorateParam(0x4,Inject(Injector)),__decorateParam(0x5,Inject(RevisionService)),__decorateParam(0x6,ICommandService),__decorateParam(0x7,ILogService),__decorateParam(0x8,ITransformService),__decorateParam(0x9,IUndoRedoService),__decorateParam(0xa,Optional(ILocalCacheService))],AwaitingState);let AwaitingWithPendingState=_AwaitingWithPendingState=class AwaitingWithPendingState extends CollaborationState{constructor(_0x42fb94,_0x4151dc,_0x23e00e,_0x4b810e,_0x541723,_0x5953c0,_0x16095f,_0x3ea065,_0x821dc5,_0x32aaf5,_0x59cb9e,_0x40b610,_0x1cdf82){const _0x17fad3=_0x37a288;super(_0x42fb94,_0x4151dc,_0x23e00e,_0x4b810e,_0x541723,_0x821dc5,_0x40b610,_0x3ea065,_0x1cdf82),this[_0x17fad3(0x299)]=_0x16095f,this[_0x17fad3(0x270)]=_0x32aaf5,this[_0x17fad3(0x37c)]=_0x59cb9e,this[_0x17fad3(0x1bc)]=_0x1cdf82,_defineProperty(this,_0x17fad3(0x2cb),_0x17fad3(0x210)),_defineProperty(this,_0x17fad3(0x352),0x0),_defineProperty(this,'_maxTotalRetryTimeout',0x0),_defineProperty(this,_0x17fad3(0x39c),void 0x0),_defineProperty(this,'_sender',void 0x0),_0x5953c0&&(this[_0x17fad3(0x39c)]=_0x5953c0,this[_0x17fad3(0x2da)]=this[_0x17fad3(0x39c)]['subscribe'](({reqId:_0x15a72a,timeout:_0x1c8638})=>{this['_resendWithTimeout'](_0x15a72a,_0x1c8638);}));}[_0x37a288(0x326)](_0x2d59){const _0x540628=_0x37a288;return this['_pendingMutations'][_0x540628(0x344)](_0x2d59),this;}[_0x37a288(0x342)](_0x1fa046){const _0x29a10f=_0x37a288;if(this[_0x29a10f(0x3a8)](_0x1fa046))return this[_0x29a10f(0x251)](),this[_0x29a10f(0x299)][_0x29a10f(0x21a)](FetchingMissState,this[_0x29a10f(0x196)],this[_0x29a10f(0x2b9)],this[_0x29a10f(0x36c)],this[_0x29a10f(0x212)],null,[_0x1fa046],this[_0x29a10f(0x297)]);try{const _0x220592=this['_transformService']['transformChangesets']([_0x1fa046],[this[_0x29a10f(0x36c)]],![]);if(isTransformChangesetsSuccess(_0x220592)){const {c1Prime:_0x298ff7,c2Prime:_0x1886b1}=_0x220592,_0x31c0ff=this[_0x29a10f(0x37c)]['transformMutationsWithChangeset'](_0x298ff7[0x0],this[_0x29a10f(0x212)]);if(isTransformMutationsWithChangesetSuccess(_0x31c0ff)){const {c1Prime:_0x2edaf3,m2Prime:_0xee785f}=_0x31c0ff;return this[_0x29a10f(0x1c5)](_0x2edaf3),_0x1886b1[0x0]['baseRev']=this[_0x29a10f(0x360)](),this[_0x29a10f(0x251)](),this[_0x29a10f(0x299)][_0x29a10f(0x21a)](_AwaitingWithPendingState,this[_0x29a10f(0x196)],this[_0x29a10f(0x2b9)],_0x1886b1[0x0],_0xee785f,this['_handler'],void 0x0);}throw _0x31c0ff[_0x29a10f(0x1cd)];}throw _0x220592[_0x29a10f(0x1cd)];}catch(_0x4d05eb){return this['_logService'][_0x29a10f(0x1cd)](_0x4d05eb),this['_onConflict'](![]);}}[_0x37a288(0x217)](_0x49585d){const _0x464372=_0x37a288;this[_0x464372(0x251)]();const _0x1e7996=this[_0x464372(0x360)]();if(_0x49585d[_0x464372(0x319)]<=_0x1e7996)return this;if(this[_0x464372(0x3a8)](_0x49585d))return this[_0x464372(0x299)][_0x464372(0x21a)](FetchingMissState,this['unitID'],this[_0x464372(0x2b9)],this[_0x464372(0x36c)],this[_0x464372(0x212)],_0x49585d['revision'],[],this['_handler']);this[_0x464372(0x258)]();const _0xfcb9a1=this[_0x464372(0x299)][_0x464372(0x21a)](PendingState,this[_0x464372(0x196)],this[_0x464372(0x2b9)],this[_0x464372(0x212)],this['_handler']);return _0xfcb9a1['_schedule'](),_0xfcb9a1[_0x464372(0x365)](),_0xfcb9a1;}[_0x37a288(0x298)](_0x187217){const _0x2284a7=_0x37a288;return this[_0x2284a7(0x1ac)](!!(_0x187217===null||_0x187217===void 0x0?void 0x0:_0x187217[_0x2284a7(0x23b)]));}[_0x37a288(0x30b)](_0x36da85){const _0x53b14f=_0x37a288;if(this['_maxTotalRetryTimeout']>MAX_RETRY_TOTAL_TIMEOUT)return this[_0x53b14f(0x167)]();return this[_0x53b14f(0x39c)]=createTimerObservable$(this['_resendTimeout'],{'timeout':this[_0x53b14f(0x352)],'reqId':_0x36da85[_0x53b14f(0x221)]}),this['_sender']=this['_resendTimer'][_0x53b14f(0x2ae)](({reqId:_0x57b5b2,timeout:_0x39cb39})=>{const _0x2cc875=_0x53b14f;this[_0x2cc875(0x396)](_0x57b5b2,_0x39cb39);}),this;}[_0x37a288(0x167)](){const _0x1d2184=_0x37a288;return this[_0x1d2184(0x251)](),this[_0x1d2184(0x299)]['createInstance'](OfflineState,this[_0x1d2184(0x196)],this['type'],this['_awaitingChangeset'],this[_0x1d2184(0x212)],this['_handler']);}[_0x37a288(0x225)](){return this;}[_0x37a288(0x2d5)](){const _0x40306a=_0x37a288;this[_0x40306a(0x297)][_0x40306a(0x265)](this[_0x40306a(0x36c)]);}[_0x37a288(0x1ac)](_0x1e4b91){const _0x3060f8=_0x37a288;return this[_0x3060f8(0x251)](),this['_injector'][_0x3060f8(0x21a)](ConflictState,this[_0x3060f8(0x196)],this[_0x3060f8(0x2b9)],null,this[_0x3060f8(0x212)],this['_handler'],_0x1e4b91);}[_0x37a288(0x396)](_0x39029e,_0x3be891){const _0x2a9dc2=_0x37a288;var _0x552832;_0x39029e===((_0x552832=this[_0x2a9dc2(0x36c)])===null||_0x552832===void 0x0?void 0x0:_0x552832['reqId'])&&(this[_0x2a9dc2(0x2d5)](),this['_resendTimeout']=_0x3be891===0x0?0x3e8:Math[_0x2a9dc2(0x1af)](_0x3be891*0x2,MAX_RETRY_TIMEOUT),this[_0x2a9dc2(0x184)]+=this[_0x2a9dc2(0x352)]);}[_0x37a288(0x251)](){const _0x52370e=_0x37a288;var _0x2df561;(_0x2df561=this['_sender'])===null||_0x2df561===void 0x0||_0x2df561[_0x52370e(0x32c)](),this[_0x52370e(0x352)]=0x0,this[_0x52370e(0x184)]=0x0;}};AwaitingWithPendingState=_AwaitingWithPendingState=__decorate([__decorateParam(0x6,Inject(Injector)),__decorateParam(0x7,Inject(RevisionService)),__decorateParam(0x8,ICommandService),__decorateParam(0x9,ILogService),__decorateParam(0xa,ITransformService),__decorateParam(0xb,IUndoRedoService),__decorateParam(0xc,Optional(ILocalCacheService))],AwaitingWithPendingState);let ConflictState=class ConflictState extends CollaborationState{constructor(_0x3fc34d,_0x2fc991,_0x449b20,_0x2c088a,_0x3149d2,_0x263860=![],_0x9b9cdf,_0x3a7be2,_0x556e9f,_0x5c400b,_0x3ee4be,_0x2e51a9,_0x37cfbc){const _0x36a79a=_0x37a288;super(_0x3fc34d,_0x2fc991,_0x449b20,_0x2c088a,_0x3149d2,_0x3a7be2,_0x556e9f,_0x5c400b,_0x37cfbc),this[_0x36a79a(0x14a)]=_0x263860,this[_0x36a79a(0x348)]=_0x9b9cdf,this[_0x36a79a(0x2bc)]=_0x3ee4be,this[_0x36a79a(0x1e4)]=_0x2e51a9,this['localCacheService']=_0x37cfbc,_defineProperty(this,'status',_0x36a79a(0x2ed)),this[_0x36a79a(0x1db)](),this[_0x36a79a(0x1e5)](),this[_0x36a79a(0x272)]();}['appendMutation'](){return this;}[_0x37a288(0x342)](){return this;}[_0x37a288(0x217)](){return this;}['onRemoteRej'](){return this;}[_0x37a288(0x30b)](){return this;}[_0x37a288(0x167)](){return this;}[_0x37a288(0x225)](){return this;}[_0x37a288(0x2d5)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x37a288(0x1e5)](){const _0x2aa67a=_0x37a288;var _0x15e2ff;(_0x15e2ff=this['_localCacheService'])===null||_0x15e2ff===void 0x0||_0x15e2ff['updateOfflineData'](this[_0x2aa67a(0x196)],this[_0x2aa67a(0x2b9)],null,[]);}[_0x37a288(0x1db)](){const _0x43114f=_0x37a288;if(this['_isPermissionRej'])this[_0x43114f(0x1e4)]['emitEvent']({'id':_0x43114f(0x18a)});else this[_0x43114f(0x1e4)]['emitEvent']({'id':_0x43114f(0x2ab)});}[_0x37a288(0x272)](){const _0x36ae74=_0x37a288;this['_permissionService']['updatePermissionPoint'](new WorkbookEditablePermission(this[_0x36ae74(0x196)])['id'],![]);}};ConflictState=__decorate([__decorateParam(0x6,Inject(IPermissionService)),__decorateParam(0x7,ICommandService),__decorateParam(0x8,IUndoRedoService),__decorateParam(0x9,Inject(RevisionService)),__decorateParam(0xa,Inject(LocaleService)),__decorateParam(0xb,Inject(CollaborationUIEventService)),__decorateParam(0xc,Optional(ILocalCacheService))],ConflictState);let OfflineState=class OfflineState extends CollaborationState{constructor(_0x2a7f6c,_0x1cf9a4,_0x48d8d7,_0x3d866a,_0x4c5a74,_0x196f3e,_0x3aa4b4,_0x4cc750,_0x5a82ce,_0x3a260f){const _0x5a4967=_0x37a288;super(_0x2a7f6c,_0x1cf9a4,_0x48d8d7,_0x3d866a,_0x4c5a74,_0x4cc750,_0x5a82ce,_0x3aa4b4,_0x3a260f),this[_0x5a4967(0x299)]=_0x196f3e,_defineProperty(this,_0x5a4967(0x2cb),_0x5a4967(0x193));}[_0x37a288(0x326)](_0x258518){const _0xdc6a3c=_0x37a288;return this['_pendingMutations'][_0xdc6a3c(0x344)](_0x258518),this[_0xdc6a3c(0x365)](),this;}[_0x37a288(0x342)](_0x24d8cd){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x37a288(0x217)](){const _0x491184=_0x37a288;throw new Error(_0x491184(0x1e9));}[_0x37a288(0x298)](){const _0x260d39=_0x37a288;throw new Error(_0x260d39(0x1c3));}[_0x37a288(0x30b)](){return this;}[_0x37a288(0x167)](){return this;}[_0x37a288(0x225)](){const _0x1f0824=_0x37a288,{_injector:_0x26e88d,_pendingMutations:_0x483b6a,_awaitingChangeset:_0x5607d1,unitID:_0x7a8883,_handler:_0x1c33bb,type:_0x3a70c6}=this,_0x5a8602=createOnlineState(_0x26e88d,_0x7a8883,_0x3a70c6,_0x5607d1,_0x483b6a,_0x1c33bb);if(_0x5a8602 instanceof PendingState)_0x5a8602[_0x1f0824(0x36e)]();else{if(_0x5a8602 instanceof AwaitingWithPendingState||_0x5a8602 instanceof AwaitingState)_0x5a8602[_0x1f0824(0x2d5)]();}return _0x5a8602;}[_0x37a288(0x2d5)](){const _0x58e75c=_0x37a288;throw new Error(_0x58e75c(0x1a0));}};OfflineState=__decorate([__decorateParam(0x5,Inject(Injector)),__decorateParam(0x6,Inject(RevisionService)),__decorateParam(0x7,ICommandService),__decorateParam(0x8,IUndoRedoService),__decorateParam(0x9,Optional(ILocalCacheService))],OfflineState);let FetchingMissState=class FetchingMissState extends CollaborationState{constructor(_0x465a2b,_0x55f8f8,_0x513316,_0x5bfc41,_0x33cb17,_0x2f7a69,_0x1298f6,_0x4da9a8,_0x38ff76,_0x56c619,_0x468457,_0x49da95,_0x25c55b,_0x5dbd98){const _0xe60e8e=_0x37a288;super(_0x465a2b,_0x55f8f8,_0x513316,_0x5bfc41,_0x1298f6,_0x468457,_0x49da95,_0x38ff76,_0x5dbd98),this[_0xe60e8e(0x22b)]=_0x33cb17,this[_0xe60e8e(0x398)]=_0x2f7a69,this['_injector']=_0x4da9a8,this['_logService']=_0x56c619,this['_transformService']=_0x25c55b,this['localCacheService']=_0x5dbd98,_defineProperty(this,'status',_0xe60e8e(0x185));}['onMissedChangesetFetched'](_0x1fc92e){const _0x409525=_0x37a288;try{if(this['_handleRemoteChangesets'](_0x1fc92e)[_0x409525(0x2ee)])throw new Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x409525(0x2a6)]([...this[_0x409525(0x398)]][_0x409525(0x23a)]((_0x26dd02,_0x22a421)=>_0x26dd02[_0x409525(0x319)]-_0x22a421[_0x409525(0x319)]))[_0x409525(0x2ee)])return this[_0x409525(0x398)]=[],this[_0x409525(0x365)](),this[_0x409525(0x297)][_0x409525(0x3a6)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;const _0x3c5384=this['_awaitingChangeset'],_0x5b6bca=this['_pendingMutations'];let _0x1dc21c;if(_0x3c5384&&_0x5b6bca[_0x409525(0x1a6)]!==0x0)_0x1dc21c=this[_0x409525(0x299)][_0x409525(0x21a)](AwaitingWithPendingState,this[_0x409525(0x196)],this[_0x409525(0x2b9)],_0x3c5384,_0x5b6bca,this[_0x409525(0x297)],void 0x0);else{if(_0x3c5384&&_0x5b6bca[_0x409525(0x1a6)]===0x0)_0x3c5384[_0x409525(0x26c)]=this[_0x409525(0x360)](),_0x1dc21c=this[_0x409525(0x299)]['createInstance'](AwaitingState,this['unitID'],this[_0x409525(0x2b9)],_0x3c5384,this[_0x409525(0x297)]);else{if(_0x5b6bca[_0x409525(0x1a6)]!==0x0){const _0x41c4ca=this[_0x409525(0x299)][_0x409525(0x21a)](PendingState,this['unitID'],this[_0x409525(0x2b9)],_0x5b6bca,this[_0x409525(0x297)]);_0x41c4ca[_0x409525(0x36e)](),_0x1dc21c=_0x41c4ca;}else _0x1dc21c=this[_0x409525(0x299)][_0x409525(0x21a)](SyncedState,this[_0x409525(0x196)],this['type'],this[_0x409525(0x297)]);}}return _0x1dc21c[_0x409525(0x365)](),_0x1dc21c;}catch(_0xadfd36){return this[_0x409525(0x270)][_0x409525(0x1cd)](_0x409525(0x2b1),_0x409525(0x1bf),_0xadfd36),this[_0x409525(0x299)]['createInstance'](ConflictState,this['unitID'],this[_0x409525(0x2b9)],this[_0x409525(0x36c)],this[_0x409525(0x212)],this['_handler'],![]);}}[_0x37a288(0x2a6)](_0x1af4bd){const _0x4d2ebc=_0x37a288;this[_0x4d2ebc(0x16e)]();for(let _0x2b4898=0x0;_0x2b4898<_0x1af4bd[_0x4d2ebc(0x1a6)];_0x2b4898++){const _0x32a5e9=_0x1af4bd[_0x2b4898],_0x2c8bb3=this[_0x4d2ebc(0x360)]();if(_0x32a5e9[_0x4d2ebc(0x319)]<=_0x2c8bb3)continue;if(_0x32a5e9[_0x4d2ebc(0x319)]>_0x2c8bb3+0x1)return{'missingChangesets':!![]};if(this['_isEchoedAwaitingChangeset'](_0x32a5e9)){this['_acknowledgeAwaiting']();continue;}this[_0x4d2ebc(0x205)](_0x32a5e9),this['_acknowledgeAwaitingIfReady']();}return{'missingChangesets':![]};}[_0x37a288(0x205)](_0xce9fcf){const _0x241619=_0x37a288;let _0x1bd0fc=_0xce9fcf,_0xcb1885=this[_0x241619(0x36c)];if(_0xcb1885){const _0x135105=this[_0x241619(0x37c)][_0x241619(0x21b)]([_0xce9fcf],[_0xcb1885],![]);if(!isTransformChangesetsSuccess(_0x135105))throw _0x135105[_0x241619(0x1cd)];_0x1bd0fc=_0x135105[_0x241619(0x37b)][0x0],_0xcb1885=_0x135105[_0x241619(0x286)][0x0];}let _0x46efbc=this['_pendingMutations'];if(_0x46efbc[_0x241619(0x1a6)]){const _0x1f4899=this[_0x241619(0x37c)]['transformMutationsWithChangeset'](_0x1bd0fc,_0x46efbc);if(!isTransformMutationsWithChangesetSuccess(_0x1f4899))throw _0x1f4899[_0x241619(0x1cd)];_0x1bd0fc=_0x1f4899['c1Prime'],_0x46efbc=_0x1f4899[_0x241619(0x2af)];}this[_0x241619(0x1c5)](_0x1bd0fc);if(_0xcb1885)_0xcb1885[_0x241619(0x26c)]=this[_0x241619(0x360)]();this['_awaitingChangeset']=_0xcb1885,this['_pendingMutations']=_0x46efbc;}[_0x37a288(0x16e)](){const _0x1e2b3b=_0x37a288;if(!this[_0x1e2b3b(0x36c)]||this[_0x1e2b3b(0x22b)]==null)return;const _0x20803f=this[_0x1e2b3b(0x360)]();if(this['_acknowledgedAwaitingRevision']<=_0x20803f)throw new Error(_0x1e2b3b(0x2bb)+this[_0x1e2b3b(0x22b)]+'.');if(this['_acknowledgedAwaitingRevision']===_0x20803f+0x1)this[_0x1e2b3b(0x22a)]();}['_acknowledgeAwaiting'](){const _0x3d05b0=_0x37a288;this[_0x3d05b0(0x258)](),this['_awaitingChangeset']=null,this[_0x3d05b0(0x22b)]=null;}[_0x37a288(0x38d)](_0x245f36){const _0xe7a101=_0x37a288,_0x2683e5=this[_0xe7a101(0x36c)];if(!_0x2683e5)return![];if(!_0x2683e5['sid']||_0x2683e5['reqId']===null||_0x2683e5[_0xe7a101(0x221)]===void 0x0)return![];return _0x245f36[_0xe7a101(0x196)]===_0x2683e5['unitID']&&_0x245f36['sid']===_0x2683e5[_0xe7a101(0x341)]&&_0x245f36[_0xe7a101(0x221)]===_0x2683e5[_0xe7a101(0x221)];}['resend'](){const _0x2881da=_0x37a288;throw new Error(_0x2881da(0x194));}['appendMutation'](_0x29da96){return this['_pendingMutations']['push'](_0x29da96),this;}['onRemoteChangeset'](_0x45830f){const _0x11f762=_0x37a288;return this['_queuedRemoteChangesets'][_0x11f762(0x344)](_0x45830f),this;}['onRemoteAck'](_0x3462b6){const _0x25c5df=_0x37a288;if(this[_0x25c5df(0x36c)]){const _0xf6629=this[_0x25c5df(0x360)]();if(_0x3462b6[_0x25c5df(0x319)]<=_0xf6629)return this;else{if(_0xf6629+0x1===_0x3462b6[_0x25c5df(0x319)])this['_incrementRevisionNumber'](),this[_0x25c5df(0x36c)]=null,this[_0x25c5df(0x22b)]=null;else this[_0x25c5df(0x22b)]=_0x3462b6[_0x25c5df(0x319)];}return this;}if(_0x3462b6[_0x25c5df(0x319)]<=this[_0x25c5df(0x360)]())return this;throw new Error(_0x25c5df(0x1d4));}[_0x37a288(0x298)](_0xc2fd63){const _0x2f40b1=_0x37a288;return this[_0x2f40b1(0x1ac)](!!(_0xc2fd63===null||_0xc2fd63===void 0x0?void 0x0:_0xc2fd63['isPermissionRej']));}[_0x37a288(0x30b)](){return this;}[_0x37a288(0x167)](){const _0x36ad6f=_0x37a288;return this[_0x36ad6f(0x299)][_0x36ad6f(0x21a)](OfflineState,this[_0x36ad6f(0x196)],this[_0x36ad6f(0x2b9)],this[_0x36ad6f(0x36c)],this[_0x36ad6f(0x212)],this[_0x36ad6f(0x297)]);}[_0x37a288(0x225)](){return this;}['_onConflict'](_0x548104){const _0x3ac0c6=_0x37a288;return this[_0x3ac0c6(0x299)][_0x3ac0c6(0x21a)](ConflictState,this[_0x3ac0c6(0x196)],this['type'],this['_awaitingChangeset'],this[_0x3ac0c6(0x212)],this[_0x3ac0c6(0x297)],_0x548104);}};FetchingMissState=__decorate([__decorateParam(0x7,Inject(Injector)),__decorateParam(0x8,Inject(RevisionService)),__decorateParam(0x9,ILogService),__decorateParam(0xa,ICommandService),__decorateParam(0xb,IUndoRedoService),__decorateParam(0xc,ITransformService),__decorateParam(0xd,Optional(ILocalCacheService))],FetchingMissState);function createOnlineState(_0x584171,_0x3d5fde,_0xbe98d1,_0x425912,_0x1b2b34,_0x434d38){const _0x33ee92=_0x37a288;if(_0x425912&&_0x1b2b34[_0x33ee92(0x1a6)])return _0x584171[_0x33ee92(0x21a)](AwaitingWithPendingState,_0x3d5fde,_0xbe98d1,_0x425912,_0x1b2b34,_0x434d38,void 0x0);if(_0x425912)return _0x584171['createInstance'](AwaitingState,_0x3d5fde,_0xbe98d1,_0x425912,_0x434d38);if(_0x1b2b34['length'])return _0x584171[_0x33ee92(0x21a)](PendingState,_0x3d5fde,_0xbe98d1,_0x1b2b34,_0x434d38);return _0x584171[_0x33ee92(0x21a)](SyncedState,_0x3d5fde,_0xbe98d1,_0x434d38);}let CollaborationEntity=class CollaborationEntity extends RxDisposable{get[_0x37a288(0x309)](){const _0x1de919=_0x37a288;return this[_0x1de919(0x2fc)];}constructor(_0x37f2ed,_0x1cbbf9,_0x37224e,_0x15406c,_0x1fdfe3,_0x1d6dcc,_0x26e14f,_0x50c554,_0x3f5f48,_0x16d08f,_0x5e5a75,_0x53a1e5,_0x337e01,_0x1da79c){const _0x40873a=_0x37a288;super(),this[_0x40873a(0x196)]=_0x37f2ed,this[_0x40873a(0x19c)]=_0x1cbbf9,this[_0x40873a(0x24f)]=_0x37224e,this[_0x40873a(0x299)]=_0x15406c,this[_0x40873a(0x263)]=_0x1fdfe3,this[_0x40873a(0x2bc)]=_0x1d6dcc,this[_0x40873a(0x2c0)]=_0x26e14f,this[_0x40873a(0x2d6)]=_0x50c554,this[_0x40873a(0x229)]=_0x3f5f48,this[_0x40873a(0x270)]=_0x16d08f,this[_0x40873a(0x36d)]=_0x5e5a75,this[_0x40873a(0x348)]=_0x53a1e5,this[_0x40873a(0x1e2)]=_0x337e01,this[_0x40873a(0x2a1)]=_0x1da79c,_defineProperty(this,_0x40873a(0x2d7),new BehaviorSubject(null)),_defineProperty(this,_0x40873a(0x314),this[_0x40873a(0x2d7)][_0x40873a(0x16b)]()),_defineProperty(this,_0x40873a(0x2fc),void 0x0),_defineProperty(this,_0x40873a(0x2fd),![]),_defineProperty(this,_0x40873a(0x310),''),_defineProperty(this,'_changesetReqId',0x0),_defineProperty(this,_0x40873a(0x18b),this[_0x40873a(0x314)][_0x40873a(0x39b)](map(_0x2da50f=>{if(_0x2da50f)return _0x2da50f['status'];return'offline';}),shareReplay(0x1))),_defineProperty(this,_0x40873a(0x2c1),![]),_defineProperty(this,_0x40873a(0x24b),[]);}async[_0x37a288(0x378)](){const _0x25604e=_0x37a288;if(this[_0x25604e(0x309)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x25604e(0x333)]();}[_0x37a288(0x363)](){const _0x16b1f5=_0x37a288;return this[_0x16b1f5(0x2fd)]=!![],toDisposable(()=>{const _0x47f67b=_0x16b1f5;this[_0x47f67b(0x2fd)]=![],this[_0x47f67b(0x241)]();});}[_0x37a288(0x2cf)](_0x532a7f){const _0x4291c1=_0x37a288;this[_0x4291c1(0x1fe)](_0x532a7f);}[_0x37a288(0x1f4)](_0x212cd3){const _0xb2ba03=_0x37a288;this[_0xb2ba03(0x2fc)]=_0x212cd3,this['_state$']['next'](_0x212cd3);}async['_init'](){const _0x48a257=_0x37a288;this[_0x48a257(0x1f4)](await this[_0x48a257(0x181)]());if(this[_0x48a257(0x1e2)]){var _0x5329a4;(_0x5329a4=this[_0x48a257(0x1e2)])===null||_0x5329a4===void 0x0||_0x5329a4['editingUnit'](this[_0x48a257(0x196)]),this[_0x48a257(0x2f4)](this[_0x48a257(0x1e2)]['getUnitStatus$'](this[_0x48a257(0x196)])[_0x48a257(0x2ae)](_0x404207=>{const _0x23085a=_0x48a257;this['_logService'][_0x23085a(0x27b)](_0x23085a(0x1a2),_0x23085a(0x15b),_0x404207),_0x404207===0x1?(this['_eventService']['emitEvent']({'id':_0x23085a(0x327)}),this[_0x23085a(0x348)][_0x23085a(0x2a7)](new WorkbookEditablePermission(this[_0x23085a(0x196)])['id'],![]),this[_0x23085a(0x348)]['setShowComponents'](![])):(this[_0x23085a(0x348)][_0x23085a(0x2a7)](new WorkbookEditablePermission(this[_0x23085a(0x196)])['id'],!![]),this[_0x23085a(0x348)]['setShowComponents'](!![]));}));}let _0x13a004=![];return this['disposeWithMe'](this[_0x48a257(0x19c)][_0x48a257(0x19d)][_0x48a257(0x2ae)](_0x1b97d7=>{const _0x18aa99=_0x48a257;if(_0x1b97d7===0x3)this[_0x18aa99(0x256)](_0x13a004);else _0x1b97d7===0x2&&(_0x13a004=!![],this[_0x18aa99(0x176)]());})),this[_0x48a257(0x2f4)](this['session'][_0x48a257(0x35a)][_0x48a257(0x2ae)](_0x349873=>{const _0x3bb082=_0x48a257;try{switch(_0x349873[_0x3bb082(0x1f3)]){case CollaborationEvent[_0x3bb082(0x20e)]:this[_0x3bb082(0x2d1)](parseProtocolChangeset(_0x349873[_0x3bb082(0x346)]));break;case CollaborationEvent[_0x3bb082(0x1d3)]:this['_onRemoteACK'](_0x349873['data']);break;case CollaborationEvent[_0x3bb082(0x320)]:this[_0x3bb082(0x1f9)]();break;case CollaborationEvent[_0x3bb082(0x259)]:this[_0x3bb082(0x158)](_0x349873[_0x3bb082(0x346)]);break;case CollaborationEvent[_0x3bb082(0x284)]:this['_onFetchMissResult'](_0x349873['data'][_0x3bb082(0x199)][_0x3bb082(0x1f1)](_0x1dc087=>parseProtocolChangeset(_0x1dc087)));break;case CollaborationEvent[_0x3bb082(0x3a0)]:this['_onRemoteRejected']({'isPermissionRej':!![]});break;case CollaborationEvent[_0x3bb082(0x33a)]:break;}}catch(_0x2fda5e){console['error'](_0x3bb082(0x19b),_0x2fda5e);throw _0x2fda5e;}})),this[_0x48a257(0x2fc)];}[_0x37a288(0x15d)](){const _0x5df1d8=_0x37a288;this[_0x5df1d8(0x2c1)]=![];}['_lockTransition'](){const _0x204739=_0x37a288;if(this['_transitionLocked'])throw new Error(_0x204739(0x149));this[_0x204739(0x2c1)]=!![];}[_0x37a288(0x1fe)](_0x1ba702){const _0x395e7c=_0x37a288;this[_0x395e7c(0x2c7)](),this['_updateState'](this['_state']['appendMutation'](_0x1ba702)),this[_0x395e7c(0x15d)]();}['_onRemoteChangeset'](_0x18f9d4){const _0x36c945=_0x37a288;if(_0x18f9d4[_0x36c945(0x319)]<=this[_0x36c945(0x2c0)][_0x36c945(0x1b5)](this[_0x36c945(0x196)]))return;if(this[_0x36c945(0x2fd)]){this[_0x36c945(0x24b)][_0x36c945(0x344)](_0x18f9d4);return;}this[_0x36c945(0x30d)](_0x18f9d4);}[_0x37a288(0x241)](){const _0x4af243=_0x37a288;this[_0x4af243(0x24b)][_0x4af243(0x25e)](_0xafba27=>this[_0x4af243(0x30d)](_0xafba27)),this[_0x4af243(0x24b)]=[];}['_applyRemoteChangeset'](_0x528b90){const _0xa69283=_0x37a288,_0x57d852=this[_0xa69283(0x263)][_0xa69283(0x1d5)][_0xa69283(0x387)](this[_0xa69283(0x263)][_0xa69283(0x1d5)][_0xa69283(0x243)]()['COMPRESS_MUTATION_APPLY'])(_0x528b90[_0xa69283(0x1ef)],null)||_0x528b90['mutations'],_0x548a54={..._0x528b90,'mutations':_0x57d852};this[_0xa69283(0x2c7)](),this['_updateState'](this[_0xa69283(0x2fc)][_0xa69283(0x342)](_0x548a54)),this[_0xa69283(0x15d)]();}[_0x37a288(0x195)](_0x275ff3){const _0x158930=_0x37a288;this[_0x158930(0x2c7)](),this['_updateState'](this[_0x158930(0x2fc)][_0x158930(0x217)](_0x275ff3)),this[_0x158930(0x15d)]();}[_0x37a288(0x1f9)](_0x13084f){const _0x3c332e=_0x37a288;this[_0x3c332e(0x2c7)](),this['_updateState'](this[_0x3c332e(0x2fc)][_0x3c332e(0x298)](_0x13084f)),this[_0x3c332e(0x15d)]();}['_onRemoteRetry'](_0x3cd2cf){const _0x615e64=_0x37a288;this[_0x615e64(0x2c7)](),this[_0x615e64(0x1f4)](this[_0x615e64(0x2fc)][_0x615e64(0x30b)](_0x3cd2cf)),this[_0x615e64(0x15d)]();}[_0x37a288(0x287)](_0x22df4a){const _0xa0c9c2=_0x37a288;if(!(this[_0xa0c9c2(0x2fc)]instanceof FetchingMissState))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x56938c=_0x22df4a[_0xa0c9c2(0x1f1)](_0x47a207=>{const _0x4cf41e=_0xa0c9c2,_0x2f77e7=this[_0x4cf41e(0x263)]['interceptor'][_0x4cf41e(0x387)](this[_0x4cf41e(0x263)]['interceptor'][_0x4cf41e(0x243)]()[_0x4cf41e(0x174)])(_0x47a207[_0x4cf41e(0x1ef)],null)||_0x47a207[_0x4cf41e(0x1ef)];return{..._0x47a207,'mutations':_0x2f77e7};});this['_lockTransition'](),this['_updateState'](this[_0xa0c9c2(0x2fc)][_0xa0c9c2(0x373)](_0x56938c)),this[_0xa0c9c2(0x15d)]();}[_0x37a288(0x176)](){const _0x5c1b72=_0x37a288;this[_0x5c1b72(0x2c7)](),this[_0x5c1b72(0x1f4)](this[_0x5c1b72(0x2fc)][_0x5c1b72(0x167)]()),this[_0x5c1b72(0x15d)]();}[_0x37a288(0x256)](_0x2d345e=![]){const _0x3c7126=_0x37a288;this[_0x3c7126(0x2c7)](),this[_0x3c7126(0x1f4)](this[_0x3c7126(0x2fc)][_0x3c7126(0x225)]()),this[_0x3c7126(0x15d)]();const _0x40b470=this[_0x3c7126(0x2fc)];_0x2d345e&&_0x40b470 instanceof SyncedState&&(this['_lockTransition'](),this[_0x3c7126(0x1f4)](_0x40b470[_0x3c7126(0x368)]()),this[_0x3c7126(0x15d)]());}async[_0x37a288(0x181)](){return new Promise(_0x268e74=>{const _0x60ab38=_0x378b;this['session'][_0x60ab38(0x19d)][_0x60ab38(0x39b)](take(0x1))[_0x60ab38(0x2ae)](async _0x5db674=>{const _0x5a7018=_0x60ab38;_0x268e74(await this[_0x5a7018(0x23e)](_0x5db674===0x3));});});}['_createHandler'](){const _0x408732=_0x37a288,_0x426b6d=this[_0x408732(0x196)];return{'onStateChange':(_0x252e80,_0x389f90)=>{const _0x4ed965=_0x408732;if(_0x252e80!==this[_0x4ed965(0x2fc)])throw new Error(_0x4ed965(0x253)+_0x252e80[_0x4ed965(0x2cb)]+_0x4ed965(0x1f6)+_0x389f90['status']+_0x4ed965(0x2dc)+this[_0x4ed965(0x2fc)]['status']);this[_0x4ed965(0x1f4)](_0x389f90);},'onSendChangeset':_0x59c953=>{const _0x8dea17=_0x408732;!_0x59c953[_0x8dea17(0x341)]&&(_0x59c953[_0x8dea17(0x341)]=this[_0x8dea17(0x310)],_0x59c953[_0x8dea17(0x221)]=++this[_0x8dea17(0x2c6)]);const _0x150228={'eventID':CollaborationEvent[_0x8dea17(0x179)],'data':{'unitID':_0x59c953[_0x8dea17(0x196)],'unitType':this[_0x8dea17(0x24f)],'changeset':_0x59c953,'memberID':this[_0x8dea17(0x19c)][_0x8dea17(0x358)]()}};this[_0x8dea17(0x19c)][_0x8dea17(0x316)](_0x150228,this[_0x8dea17(0x196)]);},'onMissingChangesets':({from:_0x1aa496,to:_0x374e39})=>{const _0x539459=_0x408732;this[_0x539459(0x270)][_0x539459(0x27b)](_0x539459(0x1a2),_0x539459(0x173)+_0x1aa496+'\x20to\x20'+_0x374e39);const _0x4d8239={'eventID':CollaborationEvent['FETCH_MISSING'],'data':{'unitID':_0x426b6d,'unitType':this[_0x539459(0x24f)],'from':_0x1aa496,'to':_0x374e39}};this['session'][_0x539459(0x316)](_0x4d8239,this[_0x539459(0x196)]);}};}async[_0x37a288(0x23e)](_0x577169){const _0x22ee07=_0x37a288;var _0x17837a,_0x24b429,_0x5538bf;const _0x341600=await((_0x17837a=this['_localCacheService'])===null||_0x17837a===void 0x0?void 0x0:_0x17837a[_0x22ee07(0x395)](this[_0x22ee07(0x196)])),_0x5e08a5=(_0x24b429=_0x341600===null||_0x341600===void 0x0?void 0x0:_0x341600[_0x22ee07(0x1ef)])!==null&&_0x24b429!==void 0x0?_0x24b429:[],_0x46fb66=(_0x5538bf=_0x341600===null||_0x341600===void 0x0?void 0x0:_0x341600[_0x22ee07(0x2b2)])!==null&&_0x5538bf!==void 0x0?_0x5538bf:null,_0x3eb1ea=!!(_0x46fb66===null||_0x46fb66===void 0x0?void 0x0:_0x46fb66['sid'])&&!!(_0x46fb66===null||_0x46fb66===void 0x0?void 0x0:_0x46fb66[_0x22ee07(0x221)]);this['_changesetSessionId']=_0x3eb1ea?_0x46fb66[_0x22ee07(0x341)]:uuidv4(),this[_0x22ee07(0x2c6)]=_0x3eb1ea?_0x46fb66[_0x22ee07(0x221)]:0x0;const _0x3ca235=this[_0x22ee07(0x196)];try{this[_0x22ee07(0x2d9)](_0x46fb66,_0x5e08a5);}catch(_0x5602f4){this[_0x22ee07(0x270)]['error'](_0x5602f4);}const _0x175ea4=this[_0x22ee07(0x14d)]();if(_0x577169){const _0x354f14=createOnlineState(this[_0x22ee07(0x299)],_0x3ca235,this[_0x22ee07(0x24f)],_0x46fb66,_0x5e08a5,_0x175ea4);if(_0x354f14 instanceof PendingState)_0x354f14[_0x22ee07(0x36e)]();else{if(_0x354f14 instanceof AwaitingWithPendingState||_0x354f14 instanceof AwaitingState)_0x354f14[_0x22ee07(0x2d5)]();}return _0x354f14;}return this[_0x22ee07(0x299)][_0x22ee07(0x21a)](OfflineState,_0x3ca235,this[_0x22ee07(0x24f)],_0x46fb66,_0x5e08a5,_0x175ea4);}['_replayCachedMutations'](_0x83d967,_0x59dcc0){const _0x3cf84f=_0x37a288;var _0x499c5d,_0x49e4d1;const _0x2a134c=this[_0x3cf84f(0x263)][_0x3cf84f(0x1d5)][_0x3cf84f(0x387)](this[_0x3cf84f(0x263)][_0x3cf84f(0x1d5)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x499c5d=_0x2a134c((_0x83d967===null||_0x83d967===void 0x0?void 0x0:_0x83d967[_0x3cf84f(0x1ef)])||[],null))===null||_0x499c5d===void 0x0||_0x499c5d['forEach'](_0x1df1de=>this['_commandService'][_0x3cf84f(0x246)](_0x1df1de['id'],_0x1df1de[_0x3cf84f(0x2eb)])),(_0x49e4d1=_0x2a134c(_0x59dcc0||[],null))===null||_0x49e4d1===void 0x0||_0x49e4d1[_0x3cf84f(0x25e)](_0x34b1f9=>this[_0x3cf84f(0x36d)][_0x3cf84f(0x246)](_0x34b1f9['id'],_0x34b1f9[_0x3cf84f(0x2eb)]));}};CollaborationEntity=__decorate([__decorateParam(0x3,Inject(Injector)),__decorateParam(0x4,Inject(CompressMutationService)),__decorateParam(0x5,Inject(LocaleService)),__decorateParam(0x6,Inject(RevisionService)),__decorateParam(0x7,Inject(CollaborationUIEventService)),__decorateParam(0x8,IUniverInstanceService),__decorateParam(0x9,ILogService),__decorateParam(0xa,ICommandService),__decorateParam(0xb,IPermissionService),__decorateParam(0xc,Optional(ISingleActiveUnitService)),__decorateParam(0xd,Optional(ILocalCacheService))],CollaborationEntity);let DocCollaborationEntity=class DocCollaborationEntity extends CollaborationEntity{constructor(_0x2d5fdb,_0x9210d,_0x42dab0,_0x2d5408,_0x2aab84,_0x1acb6d,_0x4ebfc6,_0x444429,_0x56bd61,_0x2df3fa,_0xe73b91,_0x4f5064,_0x3ea458,_0x21c9f7){const _0x3d4fac=_0x37a288;super(_0x2d5fdb,_0x42dab0,_0x9210d,_0x2d5408,_0x2aab84,_0x1acb6d,_0x4ebfc6,_0x444429,_0x56bd61,_0x2df3fa,_0xe73b91,_0x4f5064,_0x3ea458,_0x21c9f7),this['unitID']=_0x2d5fdb,this[_0x3d4fac(0x2b9)]=_0x9210d,_defineProperty(this,_0x3d4fac(0x20d),null);}['addHandlerCallback'](_0x4dc8ae){this['_handlerCallback']=_0x4dc8ae;}[_0x37a288(0x16a)](){const _0x2be447=_0x37a288;this[_0x2be447(0x20d)]=null,super[_0x2be447(0x16a)]();}['_createHandler'](){const _0x4c0be7=_0x37a288,_0x3a70fa=super['_createHandler']();return _0x3a70fa[_0x4c0be7(0x33e)]=_0xe641ce=>{const _0x34874a=_0x4c0be7;var _0x5cf5dc,_0x6f4108;return(_0x5cf5dc=this[_0x34874a(0x20d)])===null||_0x5cf5dc===void 0x0||(_0x6f4108=_0x5cf5dc[_0x34874a(0x33e)])===null||_0x6f4108===void 0x0?void 0x0:_0x6f4108[_0x34874a(0x2b8)](_0x5cf5dc,_0xe641ce);},_0x3a70fa['onTransformState']=_0xd8138d=>{const _0x447d07=_0x4c0be7;var _0x5abc25,_0x5f3bb8;return(_0x5abc25=this[_0x447d07(0x20d)])===null||_0x5abc25===void 0x0||(_0x5f3bb8=_0x5abc25['onTransformState'])===null||_0x5f3bb8===void 0x0?void 0x0:_0x5f3bb8[_0x447d07(0x2b8)](_0x5abc25,_0xd8138d);},_0x3a70fa['onTransformSelections']=_0x4a4597=>{const _0x2b5c1a=_0x4c0be7;var _0x349e1a,_0x11413c;return(_0x349e1a=this['_handlerCallback'])===null||_0x349e1a===void 0x0||(_0x11413c=_0x349e1a[_0x2b5c1a(0x371)])===null||_0x11413c===void 0x0?void 0x0:_0x11413c[_0x2b5c1a(0x2b8)](_0x349e1a,_0x4a4597);},_0x3a70fa['onSyncEditingCollabCursor']=_0x9b4b1e=>{const _0x50730d=_0x4c0be7;var _0x2b8b63,_0x553ae0;return(_0x2b8b63=this[_0x50730d(0x20d)])===null||_0x2b8b63===void 0x0||(_0x553ae0=_0x2b8b63['onSyncEditingCollabCursor'])===null||_0x553ae0===void 0x0?void 0x0:_0x553ae0['call'](_0x2b8b63,_0x9b4b1e);},_0x3a70fa['onTransformRemoteChangesetByIMECache']=_0x5f4718=>{const _0x153174=_0x4c0be7;var _0x16f374,_0x4d4a3c,_0x364cf0;if(!((_0x16f374=this['_handlerCallback'])===null||_0x16f374===void 0x0?void 0x0:_0x16f374[_0x153174(0x148)]))throw new Error(_0x153174(0x15c));return(_0x4d4a3c=this[_0x153174(0x20d)])===null||_0x4d4a3c===void 0x0||(_0x364cf0=_0x4d4a3c[_0x153174(0x148)])===null||_0x364cf0===void 0x0?void 0x0:_0x364cf0[_0x153174(0x2b8)](_0x4d4a3c,_0x5f4718);},_0x3a70fa[_0x4c0be7(0x280)]=_0x1e93bf=>{const _0x4dca96=_0x4c0be7;var _0x3bedcc,_0x51d0e2,_0x4d100c;if(!((_0x3bedcc=this['_handlerCallback'])===null||_0x3bedcc===void 0x0?void 0x0:_0x3bedcc[_0x4dca96(0x280)]))throw new Error(_0x4dca96(0x2f2));return(_0x51d0e2=this['_handlerCallback'])===null||_0x51d0e2===void 0x0||(_0x4d100c=_0x51d0e2[_0x4dca96(0x280)])===null||_0x4d100c===void 0x0?void 0x0:_0x4d100c[_0x4dca96(0x2b8)](_0x51d0e2,_0x1e93bf);},_0x3a70fa;}async['_init'](){const _0x855d0d=_0x37a288,_0xb20d17=await super['_init']();return this[_0x855d0d(0x2f4)](this[_0x855d0d(0x36d)][_0x855d0d(0x1a7)]((_0x4327ca,_0x2b9c67)=>{const _0x1fad8b=_0x855d0d;if(_0x4327ca[_0x1fad8b(0x2b9)]!==CommandType[_0x1fad8b(0x1dc)]||(_0x2b9c67===null||_0x2b9c67===void 0x0?void 0x0:_0x2b9c67[_0x1fad8b(0x2be)])||(_0x2b9c67===null||_0x2b9c67===void 0x0?void 0x0:_0x2b9c67['onlyLocal']))return;if(_0x4327ca['id']===RichTextEditingMutation['id'])return;const _0xd3ea0f=_0x4327ca[_0x1fad8b(0x2eb)];if((_0xd3ea0f===null||_0xd3ea0f===void 0x0?void 0x0:_0xd3ea0f[_0x1fad8b(0x17e)])!==this[_0x1fad8b(0x196)])return;const _0x4f8587=_0x4327ca,_0x56ca95=this[_0x1fad8b(0x263)][_0x1fad8b(0x1d5)][_0x1fad8b(0x387)](this[_0x1fad8b(0x263)][_0x1fad8b(0x1d5)]['getInterceptPoints']()[_0x1fad8b(0x355)])([_0x4f8587],this[_0x1fad8b(0x229)])||[_0x4f8587];this[_0x1fad8b(0x1fe)](_0x56ca95[0x0]);})),_0xb20d17;}};DocCollaborationEntity=__decorate([__decorateParam(0x3,Inject(Injector)),__decorateParam(0x4,Inject(CompressMutationService)),__decorateParam(0x5,Inject(LocaleService)),__decorateParam(0x6,Inject(RevisionService)),__decorateParam(0x7,Inject(CollaborationUIEventService)),__decorateParam(0x8,IUniverInstanceService),__decorateParam(0x9,ILogService),__decorateParam(0xa,ICommandService),__decorateParam(0xb,IPermissionService),__decorateParam(0xc,Optional(ISingleActiveUnitService)),__decorateParam(0xd,Optional(ILocalCacheService))],DocCollaborationEntity);let SheetCollaborationEntity=class SheetCollaborationEntity extends CollaborationEntity{constructor(_0x413562,_0x2f7604,_0x292bfd,_0x3cfac1,_0x25e287,_0x5aa605,_0x38533c,_0x307812,_0x26f3c1,_0x164205,_0x17fc38,_0x45b59b,_0x1e7e10,_0x35eaa7,_0x3409c7){const _0x11476f=_0x37a288;super(_0x413562,_0x292bfd,_0x2f7604,_0x3cfac1,_0x25e287,_0x5aa605,_0x38533c,_0x26f3c1,_0x164205,_0x17fc38,_0x45b59b,_0x1e7e10,_0x35eaa7,_0x3409c7),this[_0x11476f(0x196)]=_0x413562,this[_0x11476f(0x2b9)]=_0x2f7604,this[_0x11476f(0x2df)]=_0x307812;}[_0x37a288(0x14d)](){const _0x3f048b=_0x37a288,_0x4dfaab=super[_0x3f048b(0x14d)]();return _0x4dfaab[_0x3f048b(0x371)]=_0x155a7d=>this[_0x3f048b(0x2df)][_0x3f048b(0x325)](_0x155a7d),_0x4dfaab;}async[_0x37a288(0x333)](){const _0x3ec712=_0x37a288,_0x2c2039=await super[_0x3ec712(0x333)]();return this[_0x3ec712(0x2f4)](this[_0x3ec712(0x36d)]['onMutationExecutedForCollab']((_0xd6147,_0x326c2e)=>{const _0x5a4511=_0x3ec712;if(_0xd6147[_0x5a4511(0x2b9)]!==CommandType['MUTATION']||(_0x326c2e===null||_0x326c2e===void 0x0?void 0x0:_0x326c2e['fromCollab'])||(_0x326c2e===null||_0x326c2e===void 0x0?void 0x0:_0x326c2e['onlyLocal']))return;const _0x145fa7=_0xd6147[_0x5a4511(0x2eb)];if((_0x145fa7===null||_0x145fa7===void 0x0?void 0x0:_0x145fa7[_0x5a4511(0x17e)])!==this[_0x5a4511(0x196)])return;const _0xea1aa5=_0xd6147,_0x38725e=this[_0x5a4511(0x263)][_0x5a4511(0x1d5)][_0x5a4511(0x387)](this[_0x5a4511(0x263)][_0x5a4511(0x1d5)]['getInterceptPoints']()[_0x5a4511(0x355)])([_0xea1aa5],this[_0x5a4511(0x229)])||[_0xea1aa5];this['_onLocalMutation'](_0x38725e[0x0]);})),_0x2c2039;}};SheetCollaborationEntity=__decorate([__decorateParam(0x3,Inject(Injector)),__decorateParam(0x4,Inject(CompressMutationService)),__decorateParam(0x5,Inject(LocaleService)),__decorateParam(0x6,Inject(RevisionService)),__decorateParam(0x7,Inject(SheetTransformSelectionsService)),__decorateParam(0x8,Inject(CollaborationUIEventService)),__decorateParam(0x9,IUniverInstanceService),__decorateParam(0xa,ILogService),__decorateParam(0xb,ICommandService),__decorateParam(0xc,IPermissionService),__decorateParam(0xd,Optional(ISingleActiveUnitService)),__decorateParam(0xe,Optional(ILocalCacheService))],SheetCollaborationEntity);const INetworkConditionService=createIdentifier('univer-pro.collaboration-client.network-condition.service');function deserializeToCombResponse(_0xa67b2c){const _0x24eb80=_0x37a288,_0x48fe96=_0xa67b2c[_0x24eb80(0x346)],_0x307861=JSON['parse'](_0x48fe96);switch(_0x307861[_0x24eb80(0x301)]){case CombCmd[_0x24eb80(0x19e)]:case CombCmd[_0x24eb80(0x189)]:{const _0x2e059a=_0x307861[_0x24eb80(0x162)];return{..._0x307861,'data':_0x2e059a,'cmd':_0x307861[_0x24eb80(0x301)]};}case CombCmd[_0x24eb80(0x22e)]:{const _0x3da5a8=_0x307861[_0x24eb80(0x273)];return{..._0x307861,'data':_0x3da5a8,'cmd':_0x307861['cmd']};}case CombCmd[_0x24eb80(0x156)]:{const _0x572e04=_0x307861['collaMsg'];switch(_0x572e04[_0x24eb80(0x1f3)]){case CollaborationEvent[_0x24eb80(0x3a0)]:var _0x5a96eb;return{..._0x307861,'data':{..._0x572e04,'data':(_0x5a96eb=_0x572e04[_0x24eb80(0x1eb)])===null||_0x5a96eb===void 0x0?void 0x0:_0x5a96eb['cs']},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x1d3)]:var _0x1a3bfe;return{..._0x307861,'data':{..._0x572e04,'data':(_0x1a3bfe=_0x572e04[_0x24eb80(0x2cc)])===null||_0x1a3bfe===void 0x0?void 0x0:_0x1a3bfe['cs']},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x20e)]:var _0x595930;return{..._0x307861,'data':{..._0x572e04,'data':(_0x595930=_0x572e04['newCsEvent'])===null||_0x595930===void 0x0?void 0x0:_0x595930['cs']},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x320)]:var _0x3d5c6c;return{..._0x307861,'data':{..._0x572e04,'data':(_0x3d5c6c=_0x572e04['csRejEvent'])===null||_0x3d5c6c===void 0x0?void 0x0:_0x3d5c6c['cs']},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x259)]:var _0x1b63b6;return{..._0x307861,'data':{..._0x572e04,'data':(_0x1b63b6=_0x572e04[_0x24eb80(0x385)])===null||_0x1b63b6===void 0x0?void 0x0:_0x1b63b6['cs']},'cmd':_0x307861['cmd']};case CollaborationEvent[_0x24eb80(0x31a)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x33c)]},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x2b3)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x1b3)]},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x32f)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x334)]},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x214)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x201)]},'cmd':_0x307861['cmd']};case CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']:case CollaborationEvent['LIVESHARE_OPERATION']:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x21d)]},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent['LIVESHARE_TERMINATE']:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x201)]},'cmd':_0x307861['cmd']};case CollaborationEvent[_0x24eb80(0x245)]:return{..._0x307861,'data':_0x572e04,'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x36a)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x240)]},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x282)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x27c)]},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x2d3)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04[_0x24eb80(0x2e6)]},'cmd':_0x307861[_0x24eb80(0x301)]};case CollaborationEvent[_0x24eb80(0x33a)]:return{..._0x307861,'data':{..._0x572e04,'data':_0x572e04['uniscriptRunEvent']},'cmd':_0x307861['cmd']};default:return _0x307861;}}default:return _0x307861;}}function serializeCombRequest(_0x31fb2c){const _0x38a0b0=_0x37a288;switch(_0x31fb2c['cmd']){case CombCmd[_0x38a0b0(0x19e)]:case CombCmd['HELLO']:return JSON[_0x38a0b0(0x24a)]({'cmd':_0x31fb2c['cmd'],'routeKey':_0x31fb2c[_0x38a0b0(0x304)]});case CombCmd[_0x38a0b0(0x1c6)]:{let _0x68b8ae;switch(_0x31fb2c[_0x38a0b0(0x346)][_0x38a0b0(0x1f3)]){case CollaborationEvent['UPDATE_CURSOR']:_0x68b8ae={'eventID':CollaborationEvent[_0x38a0b0(0x31a)],'updateCursorEvent':_0x31fb2c['data']['data']};break;case CollaborationEvent[_0x38a0b0(0x32f)]:_0x68b8ae={'eventID':CollaborationEvent['USERS_LEAVE'],'leaveEvent':_0x31fb2c[_0x38a0b0(0x346)]['data']};break;case CollaborationEvent[_0x38a0b0(0x2b3)]:_0x68b8ae={'eventID':CollaborationEvent[_0x38a0b0(0x2b3)],'joinEvent':_0x31fb2c[_0x38a0b0(0x346)][_0x38a0b0(0x346)]};break;case CollaborationEvent[_0x38a0b0(0x214)]:_0x68b8ae={'eventID':CollaborationEvent[_0x38a0b0(0x214)],'liveShareNewHost':_0x31fb2c[_0x38a0b0(0x346)]['data']};break;case CollaborationEvent[_0x38a0b0(0x168)]:_0x68b8ae={'eventID':CollaborationEvent[_0x38a0b0(0x168)],'liveShareOperation':_0x31fb2c[_0x38a0b0(0x346)][_0x38a0b0(0x346)]};break;case CollaborationEvent[_0x38a0b0(0x20a)]:_0x68b8ae={'eventID':CollaborationEvent['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x31fb2c[_0x38a0b0(0x346)][_0x38a0b0(0x346)]};break;case CollaborationEvent['LIVESHARE_REQUEST_HOST']:_0x68b8ae={'eventID':CollaborationEvent['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x31fb2c[_0x38a0b0(0x346)][_0x38a0b0(0x346)]};break;case CollaborationEvent[_0x38a0b0(0x27a)]:_0x68b8ae={'eventID':CollaborationEvent['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x68b8ae={'eventID':_0x31fb2c[_0x38a0b0(0x346)][_0x38a0b0(0x1f3)]};}return JSON[_0x38a0b0(0x24a)]({'cmd':_0x31fb2c[_0x38a0b0(0x301)],'routeKey':_0x31fb2c[_0x38a0b0(0x304)],'collaMsg':_0x68b8ae});}case CombCmd['JOIN']:return JSON[_0x38a0b0(0x24a)]({'cmd':_0x31fb2c[_0x38a0b0(0x301)],'routeKey':_0x31fb2c['routeKey'],'joinReq':_0x31fb2c[_0x38a0b0(0x346)]});case CombCmd[_0x38a0b0(0x160)]:return JSON[_0x38a0b0(0x24a)]({'cmd':_0x31fb2c['cmd'],'routeKey':_0x31fb2c[_0x38a0b0(0x304)],'leaveReq':_0x31fb2c[_0x38a0b0(0x346)]});default:throw new Error(_0x38a0b0(0x394));}}const ICollaborationSocketService=createIdentifier(_0x37a288(0x1b9));function generateSubmitChangesPath(_0x3f92f4,_0x33b46f,_0x1652d3){const _0x508c15=_0x37a288;return _0x3f92f4+'/'+_0x33b46f+_0x508c15(0x34c)+_0x1652d3+'/new_changes';}let CollaborationSocketService=class CollaborationSocketService extends Disposable{constructor(_0x5f22b7,_0x9b7dc9,_0x1b61d,_0x56d45d,_0x17b32e){const _0x62bdf2=_0x37a288;super(),this[_0x62bdf2(0x299)]=_0x5f22b7,this[_0x62bdf2(0x232)]=_0x9b7dc9,this['_configService']=_0x1b61d,this[_0x62bdf2(0x270)]=_0x56d45d,this[_0x62bdf2(0x313)]=_0x17b32e;}['_doCreateSocket'](_0x45cf8d){const _0x3780f1=_0x37a288,_0x14aee1=this[_0x3780f1(0x299)]['get'](ISocketService);if(!_0x14aee1)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');const _0x65f84d=_0x14aee1['createSocket'](_0x45cf8d);if(!_0x65f84d)throw new Error(_0x3780f1(0x329));const _0x36a95d=new DisposableCollection(),_0x194be3=new Subject();_0x36a95d[_0x3780f1(0x36f)](_0x65f84d[_0x3780f1(0x323)]['subscribe'](_0x1eca95=>_0x194be3[_0x3780f1(0x1b0)](_0x1eca95))),_0x36a95d[_0x3780f1(0x36f)](toDisposable(()=>_0x194be3['complete']()));const _0x5d5ac4=new Subject();_0x36a95d[_0x3780f1(0x36f)](_0x65f84d[_0x3780f1(0x1ba)][_0x3780f1(0x2ae)](_0x559620=>_0x5d5ac4[_0x3780f1(0x1b0)](_0x559620))),_0x36a95d[_0x3780f1(0x36f)](toDisposable(()=>_0x5d5ac4[_0x3780f1(0x39e)]()));const _0x3b59bc=new Subject();_0x36a95d['add'](_0x65f84d[_0x3780f1(0x250)][_0x3780f1(0x2ae)](_0xa6afff=>{const _0x3f2885=deserializeToCombResponse(_0xa6afff);_0x3b59bc['next'](_0x3f2885);})),_0x36a95d[_0x3780f1(0x36f)](toDisposable(()=>_0x3b59bc[_0x3780f1(0x39e)]()));let _0xf66f70;const _0x4ed5e6=()=>{const _0x3c91ce=_0x3780f1;_0x5d5ac4['next'](new Event(_0x3c91ce(0x1c8))),_0x194be3[_0x3c91ce(0x1b0)](new Event(_0x3c91ce(0x1c8))),_0xf66f70['close']();};return _0xf66f70={'memberID':'','close$':_0x194be3[_0x3780f1(0x16b)](),'error$':_0x5d5ac4['asObservable'](),'open$':_0x65f84d[_0x3780f1(0x34a)],'message$':_0x3b59bc[_0x3780f1(0x16b)](),'send':_0x310594=>{const _0x176a23=_0x3780f1;if(_0x310594[_0x176a23(0x301)]===CombCmd[_0x176a23(0x1c6)]){if(_0x310594[_0x176a23(0x346)]['eventID']===CollaborationEvent['SUBMIT_CHANGESET']){this['_submitChangeset'](_0xf66f70,_0x310594[_0x176a23(0x346)])[_0x176a23(0x34e)](_0x4bc1db=>{const _0x51131c=_0x176a23;this[_0x51131c(0x270)]['error'](_0x4bc1db),_0x4ed5e6();});return;}if(_0x310594[_0x176a23(0x346)][_0x176a23(0x1f3)]===CollaborationEvent[_0x176a23(0x1a8)]){const _0x1d257d=_0x310594[_0x176a23(0x346)];this['_fetchMissChangesets'](_0x1d257d)[_0x176a23(0x3af)](_0x782e67=>{const _0xa6663=_0x176a23;_0x3b59bc['next']({'cmd':CombCmd[_0xa6663(0x156)],'code':CmdRspCode['OK'],'routeKey':_0x1d257d[_0xa6663(0x346)][_0xa6663(0x196)],'routeType':'','data':{'eventID':CollaborationEvent['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x782e67}}});})[_0x176a23(0x34e)](_0x217170=>{const _0x35b7ab=_0x176a23;this[_0x35b7ab(0x270)]['error'](_0x217170),_0x4ed5e6();});return;}}_0x65f84d[_0x176a23(0x316)](serializeCombRequest(_0x310594));},'close':()=>{const _0xcd9e2=_0x3780f1;_0x65f84d[_0xcd9e2(0x2e5)](),_0x36a95d[_0xcd9e2(0x16a)]();}},_0xf66f70;}async[_0x37a288(0x370)](_0x2666c0,_0x313446){const _0x474140=_0x37a288;var _0x2f7184;const {unitType:_0xbb6522,unitID:_0x4429d7,changeset:_0x5e1fe7}=_0x313446['data'],_0x521d32={'unitID':_0x4429d7,'memberID':_0x2666c0[_0x474140(0x32d)],'type':_0xbb6522,'changeset':parseChangesetToProtocol(_0x5e1fe7)},_0xb75db=this[_0x474140(0x1ec)][_0x474140(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x1a759b=generateSubmitChangesPath((_0x2f7184=_0xb75db===null||_0xb75db===void 0x0?void 0x0:_0xb75db[_0x474140(0x277)])!==null&&_0x2f7184!==void 0x0?_0x2f7184:DEFAULT_COLLAB_SUBMIT_CHANGESET_URL,_0xbb6522,_0x4429d7);try{await this[_0x474140(0x232)][_0x474140(0x2bf)](_0x1a759b,{'body':_0x521d32});}catch(_0x397b9f){this[_0x474140(0x270)]['error'](_0x474140(0x2bd),_0x474140(0x338));throw _0x397b9f;}}async[_0x37a288(0x18d)](_0x59e16e){const _0x2b1cdc=_0x37a288,{unitID:_0x398ea6,from:_0x49c1a5,to:_0x2f4111,unitType:_0x1b9767}=_0x59e16e[_0x2b1cdc(0x346)];return(await this[_0x2b1cdc(0x313)][_0x2b1cdc(0x1d6)]({'metadata':void 0x0},{'unitID':_0x398ea6,'type':_0x1b9767,'from':_0x49c1a5,'to':_0x2f4111}))['changesets'][_0x2b1cdc(0x1f1)](_0x5a5c4d=>{const _0x58f9a4=_0x2b1cdc;if(_0x5a5c4d[_0x58f9a4(0x1ef)]===null||_0x5a5c4d['mutations']===void 0x0)_0x5a5c4d[_0x58f9a4(0x1ef)]=[];return _0x5a5c4d;});}};CollaborationSocketService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ILogService),__decorateParam(0x4,ISnapshotServerService)],CollaborationSocketService);let CollaborationSessionService=class CollaborationSessionService extends Disposable{get['_socket'](){const _0x2556ba=_0x37a288;return this[_0x2556ba(0x216)][_0x2556ba(0x30f)]();}constructor(_0xf1e11a,_0x40c186,_0x690b45,_0x33f015,_0x5e8705,_0x175959){const _0xbb6287=_0x37a288;super(),this[_0xbb6287(0x299)]=_0xf1e11a,this[_0xbb6287(0x270)]=_0x40c186,this[_0xbb6287(0x1ec)]=_0x690b45,this['_socketService']=_0x33f015,this['_collaborationUIEventService']=_0x5e8705,this['_networkConditionService']=_0x175959,_defineProperty(this,'_socket$',new BehaviorSubject(void 0x0)),_defineProperty(this,_0xbb6287(0x26e),this[_0xbb6287(0x216)][_0xbb6287(0x16b)]()),_defineProperty(this,_0xbb6287(0x2e9),null),_defineProperty(this,_0xbb6287(0x28e),new Map()),_defineProperty(this,_0xbb6287(0x347),new BehaviorSubject(0x0)),_defineProperty(this,_0xbb6287(0x18b),this[_0xbb6287(0x347)][_0xbb6287(0x16b)]()),_defineProperty(this,'_socketReady',![]),_defineProperty(this,_0xbb6287(0x1bd),void 0x0),_defineProperty(this,'_retryCount',0x0),_defineProperty(this,'_sendHeartbeatTimer',void 0x0),_defineProperty(this,_0xbb6287(0x2c9),void 0x0),this[_0xbb6287(0x28b)]();}[_0x37a288(0x28b)](){const _0x5a63fd=_0x37a288;if(!this[_0x5a63fd(0x351)])return;this[_0x5a63fd(0x2f4)](this[_0x5a63fd(0x351)][_0x5a63fd(0x37a)]['subscribe'](_0x321a47=>{const _0x146e81=_0x5a63fd;if(_0x321a47&&!this[_0x146e81(0x1c7)])this['reconnect']();if(!_0x321a47)this['_onOffline']();}));}['dispose'](){const _0x27cf0d=_0x37a288;super[_0x27cf0d(0x16a)](),this[_0x27cf0d(0x2c8)](),this[_0x27cf0d(0x33b)](),this[_0x27cf0d(0x248)](),this['_sessions'][_0x27cf0d(0x25e)](_0x539b9f=>_0x539b9f['dispose']()),this['_sessions'][_0x27cf0d(0x2fe)](),this[_0x27cf0d(0x347)][_0x27cf0d(0x39e)]();}async[_0x37a288(0x226)](_0x1d2457){const _0x270640=_0x37a288;if(this[_0x270640(0x28e)][_0x270640(0x315)](_0x1d2457))return this[_0x270640(0x28e)]['get'](_0x1d2457);this[_0x270640(0x21c)]();const _0x427ce4=this[_0x270640(0x299)]['createInstance'](CollaborationSession,_0x1d2457,this[_0x270640(0x216)][_0x270640(0x16b)]());return this[_0x270640(0x28e)][_0x270640(0x2c4)](_0x1d2457,_0x427ce4),_0x427ce4;}[_0x37a288(0x1de)](_0x261c7){const _0x221eff=_0x37a288,_0x59de4f=this[_0x221eff(0x28e)][_0x221eff(0x213)](_0x261c7);_0x59de4f&&(this[_0x221eff(0x28e)][_0x221eff(0x377)](_0x261c7),_0x59de4f[_0x221eff(0x2e5)]());if(!this[_0x221eff(0x28e)][_0x221eff(0x235)]){var _0x239ca4;(_0x239ca4=this[_0x221eff(0x1c7)])===null||_0x239ca4===void 0x0||_0x239ca4['close']();}}[_0x37a288(0x1d7)](){const _0x1d8422=_0x37a288;this[_0x1d8422(0x2d4)]=0x0,this[_0x1d8422(0x2c8)](),this['_tryReconnect']();}[_0x37a288(0x2c8)](){const _0xfda6f9=_0x37a288;this[_0xfda6f9(0x1bd)]!=null&&(clearTimeout(this[_0xfda6f9(0x1bd)]),this[_0xfda6f9(0x1bd)]=null);}async[_0x37a288(0x2f1)](){const _0x5c21b3=_0x37a288;var _0x5d6176;const _0x3221c6=this[_0x5c21b3(0x1ec)][_0x5c21b3(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x60c84=(_0x5d6176=_0x3221c6===null||_0x3221c6===void 0x0?void 0x0:_0x3221c6['collabWebSocketUrl'])!==null&&_0x5d6176!==void 0x0?_0x5d6176:DEFAULT_COLLAB_WEB_SOCKET_URL,_0x300c78=await this[_0x5c21b3(0x350)][_0x5c21b3(0x2ad)](_0x60c84);return this[_0x5c21b3(0x2e9)]=_0x300c78,_0x300c78;}async[_0x37a288(0x21c)](){const _0x381f88=_0x37a288;try{var _0x52f945,_0x14e876;const _0x2d41b0=(_0x52f945=(_0x14e876=this[_0x381f88(0x1c7)])!==null&&_0x14e876!==void 0x0?_0x14e876:this[_0x381f88(0x2e9)])!==null&&_0x52f945!==void 0x0?_0x52f945:await this[_0x381f88(0x2f1)]();if(_0x2d41b0){const _0x239187=_0x2d41b0['send'];_0x2d41b0['send']=_0x36724a=>{const _0x57f776=_0x381f88;if(_0x36724a[_0x57f776(0x301)]!==CombCmd[_0x57f776(0x160)])this[_0x57f776(0x192)]();return _0x239187[_0x57f776(0x220)](_0x2d41b0,[_0x36724a]);},_0x2d41b0[_0x381f88(0x250)][_0x381f88(0x2ae)](_0x170c23=>this[_0x381f88(0x335)](_0x2d41b0,_0x170c23)),_0x2d41b0['error$']['pipe'](_0x8aa908(0x1))[_0x381f88(0x2ae)](_0x1ab9aa=>this[_0x381f88(0x270)][_0x381f88(0x1cd)]('[CollaborationSessionService]:\x20socket\x20error',_0x1ab9aa)),_0x2d41b0[_0x381f88(0x34a)][_0x381f88(0x39b)](_0x8aa908(0x1))[_0x381f88(0x2ae)](()=>{const _0x6a68be=_0x381f88;this[_0x6a68be(0x38f)](_0x2d41b0);}),_0x2d41b0[_0x381f88(0x323)]['pipe'](_0x8aa908(0x1))[_0x381f88(0x2ae)](_0xbedb1c=>{const _0x33481a=_0x381f88;this[_0x33481a(0x270)][_0x33481a(0x27b)]('[CollaborationSessionService]',_0x33481a(0x211),_0xbedb1c),this[_0x33481a(0x236)]();});}}catch(_0x4fa2f9){this['_logService'][_0x381f88(0x1cd)](_0x4fa2f9),this[_0x381f88(0x236)]();}}['_onConnectionOpen'](_0x16cd94){const _0x417372=_0x37a288;this[_0x417372(0x270)][_0x417372(0x27b)](_0x417372(0x2a8),_0x417372(0x22f)),_0x16cd94['send']({'cmd':CombCmd[_0x417372(0x189)]}),this[_0x417372(0x192)]();}['_onOffline'](){const _0x38b179=_0x37a288;this[_0x38b179(0x305)]=![],this[_0x38b179(0x2e9)]=null,this[_0x38b179(0x347)][_0x38b179(0x1b0)](0x2),this[_0x38b179(0x216)][_0x38b179(0x1b0)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}[_0x37a288(0x236)](){const _0x1fa727=_0x37a288;var _0x50069f;this[_0x1fa727(0x303)]();if(this['_retryCount']<((_0x50069f=this[_0x1fa727(0x1ec)]['getConfig'](_0x1fa727(0x288)))!==null&&_0x50069f!==void 0x0?_0x50069f:0x3))this[_0x1fa727(0x1e4)][_0x1fa727(0x294)]({'id':_0x1fa727(0x1f7)}),this[_0x1fa727(0x1c2)]();else this[_0x1fa727(0x1e4)][_0x1fa727(0x294)]({'id':_0x1fa727(0x388)});}['_tryReconnect'](){const _0xcd1be8=_0x37a288;var _0x4cd6b5;const _0x72abca=this[_0xcd1be8(0x2d4)],_0x1dd7df=this[_0xcd1be8(0x1ec)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY),_0x2a6621=_0x72abca===0x0?0x0:((_0x4cd6b5=_0x1dd7df===null||_0x1dd7df===void 0x0?void 0x0:_0x1dd7df['retryConnectingInterval'])!==null&&_0x4cd6b5!==void 0x0?_0x4cd6b5:DEFAULT_RETRY_CONNECTING_INTERVAL)*0x2**_0x72abca;this[_0xcd1be8(0x1bd)]=setTimeout(()=>{const _0x54f995=_0xcd1be8;clearTimeout(this['_retryConnectingTimer']),this[_0x54f995(0x1bd)]=null,this[_0x54f995(0x21c)]();},_0x2a6621),this[_0xcd1be8(0x2d4)]+=0x1;}[_0x37a288(0x335)](_0x3c68ed,_0x3ee9fa){const _0x34f8c8=_0x37a288,{cmd:_0x134ea6}=_0x3ee9fa;_0x134ea6===CombCmd[_0x34f8c8(0x189)]&&!this[_0x34f8c8(0x305)]&&(_0x3c68ed[_0x34f8c8(0x32d)]=_0x3ee9fa[_0x34f8c8(0x346)][_0x34f8c8(0x32d)],this[_0x34f8c8(0x216)][_0x34f8c8(0x1b0)](_0x3c68ed),this[_0x34f8c8(0x347)][_0x34f8c8(0x1b0)](0x3),this[_0x34f8c8(0x305)]=!![],this[_0x34f8c8(0x2e9)]=null);if(_0x134ea6===CombCmd[_0x34f8c8(0x19e)])this[_0x34f8c8(0x33b)]();this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x7cbf18=_0x37a288;var _0x5034f9;this[_0x7cbf18(0x248)](),this[_0x7cbf18(0x197)]=setTimeout(()=>this[_0x7cbf18(0x306)](),(_0x5034f9=this[_0x7cbf18(0x1ec)][_0x7cbf18(0x38e)](_0x7cbf18(0x155)))!==null&&_0x5034f9!==void 0x0?_0x5034f9:DEFAULT_HEARTBEAT_INTERVAL);}[_0x37a288(0x306)](){const _0xdc1b77=_0x37a288;this[_0xdc1b77(0x1c7)][_0xdc1b77(0x316)]({'cmd':CombCmd['HEARTBEAT']}),this[_0xdc1b77(0x289)]();}[_0x37a288(0x289)](){const _0x4978e7=_0x37a288;var _0x507fdb;this[_0x4978e7(0x2c9)]=setTimeout(()=>this[_0x4978e7(0x236)](),(_0x507fdb=this[_0x4978e7(0x1ec)][_0x4978e7(0x38e)]('HEARTBEAT_TIMEOUT'))!==null&&_0x507fdb!==void 0x0?_0x507fdb:DEFAULT_HEARTBEAT_TIMEOUT);}[_0x37a288(0x248)](){const _0x18984d=_0x37a288;this[_0x18984d(0x197)]!=null&&(clearTimeout(this[_0x18984d(0x197)]),this[_0x18984d(0x197)]=null);}['_clearTimeoutTimer'](){const _0x3301e3=_0x37a288;this[_0x3301e3(0x2c9)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3301e3(0x2c9)]=null);}};CollaborationSessionService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,ILogService),__decorateParam(0x2,IConfigService),__decorateParam(0x3,ICollaborationSocketService),__decorateParam(0x4,Inject(CollaborationUIEventService)),__decorateParam(0x5,Optional(INetworkConditionService))],CollaborationSessionService);let CollaborationController=class CollaborationController extends RxDisposable{constructor(_0x33e94f,_0x68fda7,_0xe7256a,_0x11adf9){const _0x54385a=_0x37a288;var _0x290c2d;super(),this['_injector']=_0x33e94f,this['_collabSessionService']=_0x68fda7,this[_0x54385a(0x1ec)]=_0xe7256a,this[_0x54385a(0x229)]=_0x11adf9,_defineProperty(this,_0x54385a(0x188),new Map()),_defineProperty(this,_0x54385a(0x36b),new Subject()),_defineProperty(this,_0x54385a(0x28d),this[_0x54385a(0x36b)][_0x54385a(0x16b)]());if(((_0x290c2d=this[_0x54385a(0x1ec)]['getConfig']('collaboration-client.config'))===null||_0x290c2d===void 0x0?void 0x0:_0x290c2d['enableCollaboration'])!==![])this['_init']();}[_0x37a288(0x16a)](){const _0x295dbd=_0x37a288;super[_0x295dbd(0x16a)](),this[_0x295dbd(0x188)]['forEach'](_0x935c9=>_0x935c9['dispose']()),this[_0x295dbd(0x188)]['clear']();}['getCollabEntity'](_0xb74760){const _0x3b0317=_0x37a288;var _0x141942;return(_0x141942=this[_0x3b0317(0x188)]['get'](_0xb74760))!==null&&_0x141942!==void 0x0?_0x141942:null;}['getCollabEntity$'](_0x233842){const _0x354230=_0x37a288,_0x3507fd=this['getCollabEntity'](_0x233842);if(_0x3507fd)return of(_0x3507fd);return this[_0x354230(0x36b)][_0x354230(0x39b)](filter(_0x316a9f=>_0x316a9f['unitID']===_0x233842));}[_0x37a288(0x178)](_0x14b58e){const _0x10a63f=_0x37a288;return firstValueFrom(this[_0x10a63f(0x266)](_0x14b58e)[_0x10a63f(0x39b)](_0x23341b(()=>void 0x0)));}['_init'](){const _0x323167=_0x37a288,_0x294e68=0x10;this[_0x323167(0x229)][_0x323167(0x231)](UniverInstanceType[_0x323167(0x362)])[_0x323167(0x39b)](takeUntil(this['dispose$']),delay(_0x294e68))[_0x323167(0x2ae)](async _0x13a120=>{const _0x25ea93=_0x323167,_0x9e5316=_0x13a120[_0x25ea93(0x35f)][_0x25ea93(0x15e)](),_0x394818=await this['_startCollaboration'](_0x9e5316,UniverInstanceType[_0x25ea93(0x362)]);this[_0x25ea93(0x188)][_0x25ea93(0x2c4)](_0x9e5316,_0x394818);}),this[_0x323167(0x229)][_0x323167(0x231)](UniverInstanceType[_0x323167(0x3a2)])['pipe'](takeUntil(this['dispose$']),delay(_0x294e68))[_0x323167(0x39b)](filter(_0x433609=>{const _0x58a5a5=_0x323167;return!_0x433609[_0x58a5a5(0x35f)][_0x58a5a5(0x15e)]()[_0x58a5a5(0x1da)]('__');}))[_0x323167(0x2ae)](async _0x278da1=>{const _0x55ac64=_0x323167,_0x499eff=_0x278da1[_0x55ac64(0x35f)][_0x55ac64(0x15e)](),_0x3955b4=await this['_startCollaboration'](_0x499eff,UniverInstanceType[_0x55ac64(0x3a2)]);this[_0x55ac64(0x188)][_0x55ac64(0x2c4)](_0x499eff,_0x3955b4);}),_0x5de48a(this[_0x323167(0x229)][_0x323167(0x264)](UniverInstanceType[_0x323167(0x362)]),this[_0x323167(0x229)]['getTypeOfUnitDisposed$'](UniverInstanceType[_0x323167(0x3a2)]))[_0x323167(0x39b)](takeUntil(this[_0x323167(0x2d8)]))[_0x323167(0x2ae)](_0x49e78e=>{const _0x3e0ae8=_0x323167,_0x4f9e88=_0x49e78e[_0x3e0ae8(0x15e)](),_0x3c4684=this['_entities'][_0x3e0ae8(0x213)](_0x4f9e88);_0x3c4684&&(_0x3c4684['dispose'](),this[_0x3e0ae8(0x188)]['delete'](_0x4f9e88));});}async[_0x37a288(0x244)](_0x505ce3,_0x57464b){const _0x529a4d=_0x37a288,_0x327571=await this['_collabSessionService'][_0x529a4d(0x226)](_0x505ce3),_0x2821ba=this['_injector'][_0x529a4d(0x21a)](this['_getCtorByUniverInstanceType'](_0x57464b),_0x505ce3,_0x57464b,_0x327571);return await _0x2821ba['init'](),this['_entityInit$'][_0x529a4d(0x1b0)](_0x2821ba),_0x2821ba;}['_getCtorByUniverInstanceType'](_0x398b81){const _0x2a9c47=_0x37a288;switch(_0x398b81){case UniverInstanceType[_0x2a9c47(0x3a2)]:return DocCollaborationEntity;case UniverInstanceType[_0x2a9c47(0x362)]:return SheetCollaborationEntity;default:throw new Error(_0x2a9c47(0x25a)+_0x398b81);}}};CollaborationController=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,Inject(CollaborationSessionService)),__decorateParam(0x2,IConfigService),__decorateParam(0x3,IUniverInstanceService)],CollaborationController);var name='@univerjs-pro/collaboration-client',version=_0x37a288(0x15f);const DEFAULT_FILE_NAME_KEY=_0x37a288(0x312),UNIVER_DEFAULT_FILE_NAME=_0x37a288(0x276);let FileNameController=class FileNameController extends Disposable{constructor(_0x41da65,_0x5befd8){const _0x5573e3=_0x37a288;super(),this[_0x5573e3(0x229)]=_0x41da65,this['_configService']=_0x5befd8,this[_0x5573e3(0x333)]();}['_init'](){const _0x5a943f=_0x37a288;this['disposeWithMe'](this[_0x5a943f(0x229)][_0x5a943f(0x150)][_0x5a943f(0x2ae)](()=>{const _0x164eb8=_0x5a943f;var _0x33f8be;const _0x429611=this[_0x164eb8(0x229)][_0x164eb8(0x1aa)]();let _0x3d9b78=(_0x33f8be=this[_0x164eb8(0x1ec)][_0x164eb8(0x38e)]('DEFAULT_FILE_NAME'))!==null&&_0x33f8be!==void 0x0?_0x33f8be:UNIVER_DEFAULT_FILE_NAME;if(_0x429611 instanceof Workbook)_0x3d9b78=_0x429611[_0x164eb8(0x169)];document[_0x164eb8(0x2ac)]=_0x3d9b78;}));}};FileNameController=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IConfigService)],FileNameController);let AuthServerService=class AuthServerService{constructor(_0x8d2baf,_0x404d33,_0x543d0f){const _0x46225f=_0x37a288;this[_0x46225f(0x1ec)]=_0x8d2baf,this[_0x46225f(0x232)]=_0x404d33,this[_0x46225f(0x2f8)]=_0x543d0f,this[_0x46225f(0x378)]();}[_0x37a288(0x378)](){const _0x6c6645=_0x37a288;this[_0x6c6645(0x232)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x158602,_0x418ca5)=>{return _0x418ca5(_0x158602)['pipe'](concatMap(async _0x58fac9=>{const _0xe14f33=_0x378b,_0x32c53f=_0x58fac9;if(_0x32c53f['status']===0x191){if(typeof window===_0xe14f33(0x31b))throw new Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0xe14f33(0x1a9)](this['localeService']['t'](_0xe14f33(0x31c)))){const _0xf33711=window[_0xe14f33(0x202)](window[_0xe14f33(0x300)][_0xe14f33(0x16f)]);window[_0xe14f33(0x300)]['href']=this[_0xe14f33(0x34d)]()+_0xe14f33(0x322)+_0xf33711;}}return _0x32c53f;}));}});}[_0x37a288(0x34d)](){const _0x40bdf0=_0x37a288;var _0x3760a1;const _0x236ffa=this[_0x40bdf0(0x1ec)][_0x40bdf0(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x3760a1=_0x236ffa===null||_0x236ffa===void 0x0?void 0x0:_0x236ffa[_0x40bdf0(0x354)])!==null&&_0x3760a1!==void 0x0?_0x3760a1:DEFAULT_LOGIN_URL;}};AuthServerService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService)),__decorateParam(0x2,Inject(LocaleService))],AuthServerService);const DEFAULT_AUTHZ_URL_KEY$1='/universer-api/authz';let AuthzIoHttpService=class AuthzIoHttpService extends Disposable{constructor(_0x38b274,_0x55d2ae){const _0x439fd6=_0x37a288;super(),this['_HTTPService']=_0x38b274,this[_0x439fd6(0x1ec)]=_0x55d2ae,_defineProperty(this,_0x439fd6(0x215),![]),this[_0x439fd6(0x399)]();}[_0x37a288(0x399)](){const _0x3c429e=_0x37a288,_0x5cefbe=this;this[_0x3c429e(0x2f4)](this[_0x3c429e(0x32e)][_0x3c429e(0x381)]({'priority':0x3e7,'interceptor':MergeInterceptorFactory({'isMatch'(_0x1909e5){const _0x2ab6e7=_0x3c429e;var _0x39126f;if(_0x1909e5['method']===_0x2ab6e7(0x1d9)&&((_0x39126f=_0x1909e5[_0x2ab6e7(0x249)])===null||_0x39126f===void 0x0?void 0x0:_0x39126f['body'])){const {objectID:_0x1069cb,objectType:_0x2a5b46}=_0x1909e5['requestParams'][_0x2ab6e7(0x2f3)]||{};if(!_0x1069cb||_0x2a5b46===void 0x0)return![];const _0xdb29a6=_0x5cefbe['_getAPIPrefixPath']()+'/'+_0x2a5b46+_0x2ab6e7(0x293)+_0x1069cb+'/allowed';if(_0x1909e5[_0x2ab6e7(0x361)]===_0xdb29a6)return!![];}return![];},'getParamsFromRequest'(_0x44c8a7){const _0x3a7a5c=_0x3c429e;var _0x3eb7af;return(_0x3eb7af=_0x44c8a7['requestParams'])===null||_0x3eb7af===void 0x0?void 0x0:_0x3eb7af[_0x3a7a5c(0x2f3)];},'mergeParamsToRequest'(_0x832566,_0x365ed2){const _0x2e658d=_0x3c429e,_0x57297d=_0x5cefbe['_getAPIPrefixPath']()+_0x2e658d(0x367),_0x569ff8=_0x832566['reduce']((_0x2c6e42,_0x37db60)=>{const _0x4a4930=_0x2e658d,{unitID:_0x58a291,objectID:_0x59e668,objectType:_0x530823,actions:_0x5157a5}=_0x37db60;if(!_0x2c6e42[_0x58a291])_0x2c6e42[_0x58a291]={};if(!_0x2c6e42[_0x58a291][_0x59e668])_0x2c6e42[_0x58a291][_0x59e668]={'objectID':_0x59e668,'objectType':_0x530823,'actions':[]};return _0x2c6e42[_0x58a291][_0x59e668]['actions'][_0x4a4930(0x344)](..._0x5157a5),_0x2c6e42;},{}),_0x1b18a8=[];for(const _0x369298 in _0x569ff8)for(const _0x48ed7f in _0x569ff8[_0x369298]){const {actions:_0x272046,objectType:_0x47540c}=_0x569ff8[_0x369298][_0x48ed7f],_0x58be27=[...new Set(_0x272046)];_0x1b18a8[_0x2e658d(0x344)]({'unitID':_0x369298,'objectID':_0x48ed7f,'objectType':_0x47540c,'actions':_0x58be27});}return new HTTPRequest(_0x2e658d(0x1d9),_0x57297d,{'headers':_0x365ed2[_0x2e658d(0x345)],'withCredentials':_0x365ed2['withCredentials'],'responseType':_0x365ed2[_0x2e658d(0x39a)],'body':{'requests':_0x1b18a8}});}},{'distributeResult'(_0x418200,_0x123b80){const _0xd817ec=_0x3c429e,{objectActions:_0x1e903e}=_0x418200;return _0x123b80[_0xd817ec(0x1f1)](_0x4fcdef=>{const _0x44cf86=_0xd817ec,{unitID:_0x90a8ac,objectID:_0x13d269,actions:_0x40a3b5}=_0x4fcdef,_0x5ea31d=_0x1e903e[_0x44cf86(0x1a4)](_0x1a71dc=>_0x1a71dc[_0x44cf86(0x196)]===_0x90a8ac&&_0x1a71dc[_0x44cf86(0x1d0)]===_0x13d269);return{'config':_0x4fcdef,'result':{'actions':_0x40a3b5[_0x44cf86(0x1f1)](_0x23e1b4=>_0x5ea31d===null||_0x5ea31d===void 0x0?void 0x0:_0x5ea31d['actions']['find'](_0x5a05ca=>_0x5a05ca['action']===_0x23e1b4))[_0x44cf86(0x285)](_0x4d6834=>!!_0x4d6834),'error':_0x418200[_0x44cf86(0x1cd)]}};});}})}));}[_0x37a288(0x1d2)](){const _0x3d8f17=_0x37a288;var _0xe81edb;const _0x397c8b=this[_0x3d8f17(0x1ec)][_0x3d8f17(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0xe81edb=_0x397c8b===null||_0x397c8b===void 0x0?void 0x0:_0x397c8b['authzUrl'])!==null&&_0xe81edb!==void 0x0?_0xe81edb:DEFAULT_AUTHZ_URL_KEY$1;}async['create'](_0x3534b0){const _0x33d9fd=_0x37a288,_0x99a959=this['_getAPIPrefixPath']()+'/'+_0x3534b0['objectType']+'/object';return(await this[_0x33d9fd(0x32e)]['post'](_0x99a959,{'body':_0x3534b0}))[_0x33d9fd(0x2f3)][_0x33d9fd(0x1d0)]||'';}async[_0x37a288(0x1b4)](_0x20c853){const _0x5915e1=_0x37a288,_0x141390=this[_0x5915e1(0x1d2)]()+'/-/object/list';return(await this[_0x5915e1(0x32e)][_0x5915e1(0x2bf)](_0x141390,{'body':_0x20c853}))[_0x5915e1(0x2f3)]['objects'];}async[_0x37a288(0x34f)](_0x5906e6){const _0x2725f6=_0x37a288;var _0x5c637c;const _0x32cb37=this['_getAPIPrefixPath']()+'/'+_0x5906e6['objectType']+_0x2725f6(0x293)+_0x5906e6[_0x2725f6(0x1d0)],_0x40e34d=await this[_0x2725f6(0x32e)]['put'](_0x32cb37,{'body':_0x5906e6});if((_0x40e34d===null||_0x40e34d===void 0x0||(_0x5c637c=_0x40e34d[_0x2725f6(0x2f3)])===null||_0x5c637c===void 0x0||(_0x5c637c=_0x5c637c[_0x2725f6(0x1cd)])===null||_0x5c637c===void 0x0?void 0x0:_0x5c637c[_0x2725f6(0x25c)])!==0x1)throw new Error(_0x2725f6(0x23c));}async['allowed'](_0x37fb0b){const _0x41b58a=_0x37a288,_0x587fb0=this[_0x41b58a(0x1d2)]()+'/'+_0x37fb0b['objectType']+_0x41b58a(0x293)+_0x37fb0b[_0x41b58a(0x1d0)]+'/allowed';return(await this[_0x41b58a(0x32e)][_0x41b58a(0x2bf)](_0x587fb0,{'body':_0x37fb0b}))[_0x41b58a(0x2f3)][_0x41b58a(0x164)];}async['batchAllowed'](_0xf51214){const _0x203656=_0x37a288,_0x34678b=this[_0x203656(0x1d2)]()+_0x203656(0x367);return(await this['_HTTPService']['post'](_0x34678b,{'body':{'requests':_0xf51214}}))[_0x203656(0x2f3)][_0x203656(0x3a4)];}async['listRoles'](_0x3ea374){const _0x1df767=_0x37a288,_0x17b4b1=this[_0x1df767(0x1d2)]()+'/'+_0x3ea374[_0x1df767(0x33d)]+_0x1df767(0x20c),_0x55be48=await this[_0x1df767(0x32e)][_0x1df767(0x2bf)](_0x17b4b1,{'body':_0x3ea374});return{'roles':_0x55be48[_0x1df767(0x2f3)][_0x1df767(0x2de)],'actions':_0x55be48['body'][_0x1df767(0x164)]};}async[_0x37a288(0x223)](_0x14925c){const _0x59b3ba=_0x37a288,_0x41b8cc=this['_getAPIPrefixPath']()+_0x59b3ba(0x1a1);await this['_HTTPService'][_0x59b3ba(0x377)](_0x41b8cc,{'params':{'collaboratorID':_0x14925c[_0x59b3ba(0x159)],'objectID':_0x14925c[_0x59b3ba(0x1d0)],'unitID':_0x14925c[_0x59b3ba(0x196)]}});}async[_0x37a288(0x2d0)](_0x2c827f){const _0x508252=_0x37a288,_0x5b84f3=this[_0x508252(0x1d2)]()+_0x508252(0x1a1);await this[_0x508252(0x32e)][_0x508252(0x2c5)](_0x5b84f3,{'body':_0x2c827f});}async[_0x37a288(0x238)](_0xfb9414){const _0x202a76=_0x37a288,_0x1dd57f=this[_0x202a76(0x1d2)]()+'/collaborator';await this[_0x202a76(0x32e)][_0x202a76(0x2bf)](_0x1dd57f,{'body':_0xfb9414});}async['listCollaborators'](_0x5a4c32){const _0x229ffe=_0x37a288;var _0x100310;const _0x3d0a70=this[_0x229ffe(0x1d2)]()+'/collaborator',_0x1607b7=await this[_0x229ffe(0x32e)]['get'](_0x3d0a70,{'params':{'objectID':_0x5a4c32[_0x229ffe(0x1d0)],'unitID':_0x5a4c32[_0x229ffe(0x196)]}});return this[_0x229ffe(0x175)]((_0x100310=_0x1607b7[_0x229ffe(0x2f3)][_0x229ffe(0x14c)])!==null&&_0x100310!==void 0x0?_0x100310:![]),_0x1607b7[_0x229ffe(0x2f3)][_0x229ffe(0x20b)];}async['putCollaborators'](_0x3e6bb4){const _0x50a729=_0x37a288,_0x3b4117=this['_getAPIPrefixPath']()+_0x50a729(0x1a1);await this[_0x50a729(0x32e)][_0x50a729(0x31f)](_0x3b4117,{'body':_0x3e6bb4});}[_0x37a288(0x175)](_0x34479e){const _0x5011ab=_0x37a288;this[_0x5011ab(0x215)]=_0x34479e;}[_0x37a288(0x1d1)](){return this['_cfgEnableObjInherit'];}};AuthzIoHttpService=__decorate([__decorateParam(0x0,Inject(HTTPService)),__decorateParam(0x1,Inject(IConfigService))],AuthzIoHttpService);function base64ToBytes(_0x2d04f2){const _0x166afe=_0x37a288,_0x409550=atob(_0x2d04f2),_0x124a00=new Uint8Array(_0x409550[_0x166afe(0x1a6)]);for(let _0xa45620=0x0;_0xa45620<_0x409550['length'];_0xa45620++)_0x124a00[_0xa45620]=_0x409550[_0x166afe(0x146)](_0xa45620);return _0x124a00;}function bytesToBase64(_0x1ef48d){const _0x43f470=_0x37a288;let _0x3518d7='';for(let _0x443576=0x0;_0x443576<_0x1ef48d[_0x43f470(0x1a6)];_0x443576++)_0x3518d7+=String[_0x43f470(0x2ce)](_0x1ef48d[_0x443576]);return btoa(_0x3518d7);}function encrypt(_0x27e441,_0x1d7a72){const _0x1be6a8=_0x37a288,_0x116a33=base64ToBytes(_0x1d7a72),_0x143ad1=randomBytes(0x10);return bytesToBase64(concatBytes(_0x143ad1,cbc(_0x116a33,_0x143ad1)[_0x1be6a8(0x311)](utf8ToBytes(_0x27e441))));}function getAttachHeader(){const _0x30eb57=_0x37a288,_0x5480ce=getGlobalObject()[_0x30eb57(0x279)];if(typeof window!==_0x30eb57(0x31b)&&typeof window[_0x30eb57(0x300)]!=='undefined'&&_0x5480ce){const _0x507845={'time':Math[_0x30eb57(0x262)](Date[_0x30eb57(0x2b0)]()/0x3e8),'domain':location[_0x30eb57(0x380)]};return encrypt(JSON[_0x30eb57(0x24a)](_0x507845),_0x5480ce);}}let DomainRequestService=class DomainRequestService{constructor(_0x104f19){const _0x465bad=_0x37a288;this[_0x465bad(0x232)]=_0x104f19,this['_initRequestHeader']();}[_0x37a288(0x14f)](){const _0x4369f8=_0x37a288;this[_0x4369f8(0x232)][_0x4369f8(0x381)]({'interceptor':(_0x2d2408,_0x3c1455)=>{const _0x15741b=_0x4369f8,_0x40344e=getAttachHeader();if(_0x40344e)_0x2d2408[_0x15741b(0x345)][_0x15741b(0x2c4)]('x-univer-host',_0x40344e);return _0x3c1455(_0x2d2408);}});}};DomainRequestService=__decorate([__decorateParam(0x0,Inject(HTTPService))],DomainRequestService);let DataLoaderService=class DataLoaderService extends RxDisposable{constructor(_0x2c98c0,_0x564b97,_0x5eabdc){const _0x348ab3=_0x37a288;super(),this[_0x348ab3(0x270)]=_0x2c98c0,this[_0x348ab3(0x1fa)]=_0x564b97,this[_0x348ab3(0x2a1)]=_0x5eabdc,_defineProperty(this,_0x348ab3(0x2a5),new BehaviorSubject(null)),_defineProperty(this,_0x348ab3(0x1d8),this[_0x348ab3(0x2a5)][_0x348ab3(0x16b)]());}async[_0x37a288(0x3a7)](_0x464061,_0x56b24a,_0x2a2319){const _0x182aaa=_0x37a288;this['_unitInfo$']['next']({'unitId':_0x464061,'type':_0x56b24a});let _0x1b605a=null;switch(_0x56b24a){case UniverInstanceType[_0x182aaa(0x362)]:_0x1b605a=await this[_0x182aaa(0x1fa)]['loadSheet'](_0x464061,_0x2a2319);break;case UniverInstanceType[_0x182aaa(0x3a2)]:_0x1b605a=await this[_0x182aaa(0x1fa)][_0x182aaa(0x19a)](_0x464061,_0x2a2319);break;default:this[_0x182aaa(0x270)]['error'](_0x182aaa(0x271),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x1b605a;}async[_0x37a288(0x267)](_0x37df39,_0x163f36,_0x3006dc){const _0x2f575a=_0x37a288;var _0x5363b5;this['_unitInfo$']['next']({'unitId':_0x37df39,'type':_0x163f36,'subUnitId':_0x3006dc});let _0x2d3265=0x0;const _0x554155=await((_0x5363b5=this['_localCacheService'])===null||_0x5363b5===void 0x0?void 0x0:_0x5363b5[_0x2f575a(0x395)](_0x37df39));if(_0x554155&&(_0x554155[_0x2f575a(0x2b2)]||_0x554155['mutations'][_0x2f575a(0x1a6)]!==0x0))_0x2d3265=_0x554155[_0x2f575a(0x34b)];if(_0x2d3265===0x0)this[_0x2f575a(0x270)]['debug'](_0x2f575a(0x271),_0x2f575a(0x204));return this[_0x2f575a(0x3a7)](_0x37df39,_0x163f36,_0x2d3265);}};DataLoaderService=__decorate([__decorateParam(0x0,ILogService),__decorateParam(0x1,Inject(SnapshotService)),__decorateParam(0x2,Optional(ILocalCacheService))],DataLoaderService);const DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY='/universer-api/stream/file/upload',DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY=_0x37a288(0x18f);let CollaborationImageIoService=class CollaborationImageIoService{constructor(_0x523eac,_0x2c5bfd,_0x6166c6){const _0x3a78fd=_0x37a288;this[_0x3a78fd(0x232)]=_0x523eac,this[_0x3a78fd(0x1ec)]=_0x2c5bfd,this[_0x3a78fd(0x229)]=_0x6166c6,_defineProperty(this,_0x3a78fd(0x3aa),0x0),_defineProperty(this,_0x3a78fd(0x30c),new Subject()),_defineProperty(this,_0x3a78fd(0x198),this[_0x3a78fd(0x30c)]),_defineProperty(this,_0x3a78fd(0x25b),new Map());}[_0x37a288(0x2ec)](_0x2e5f56){const _0x41cb71=_0x37a288;this[_0x41cb71(0x3aa)]=_0x2e5f56,this[_0x41cb71(0x30c)][_0x41cb71(0x1b0)](_0x2e5f56);}[_0x37a288(0x163)](_0x22aa7e,_0x5ce32b){const _0x178145=_0x37a288;if(_0x5ce32b===ImageSourceType[_0x178145(0x29e)]){const _0x1dbf28=new Image();return _0x1dbf28[_0x178145(0x302)]=_0x22aa7e,_0x1dbf28;}return this[_0x178145(0x25b)]['get'](_0x22aa7e);}['addImageSourceCache'](_0x39d121,_0x36c29a,_0x1e46a5){const _0x22ece7=_0x37a288;if(_0x36c29a===ImageSourceType[_0x22ece7(0x29e)]||_0x1e46a5==null)return;this[_0x22ece7(0x25b)][_0x22ece7(0x2c4)](_0x39d121,_0x1e46a5);}async[_0x37a288(0x157)](_0x49e213){const _0x36912b=_0x37a288;try{const _0x51174a=this[_0x36912b(0x190)](this[_0x36912b(0x1b8)](),''+_0x49e213),_0x10ee13=(await this['_httpService'][_0x36912b(0x213)](_0x51174a))[_0x36912b(0x2f3)];if(_0x10ee13[_0x36912b(0x1cd)]&&_0x10ee13['error'][_0x36912b(0x25c)]===ErrorCode['OK']){const _0x43f6bb=resolveWithBasePath(_0x10ee13[_0x36912b(0x361)],this[_0x36912b(0x26a)]());return Promise['resolve'](_0x43f6bb);}return Promise['reject'](_0x10ee13['error']);}catch(_0x395d23){return Promise[_0x36912b(0x1f2)](_0x395d23);}}async[_0x37a288(0x17a)](_0x55da7e){const _0x5bc478=_0x37a288;let _0x3f8d0f='';if(!DRAWING_IMAGE_ALLOW_IMAGE_LIST[_0x5bc478(0x166)](_0x55da7e['type']))return this['_decreaseWaiting'](),Promise[_0x5bc478(0x1f2)](new Error(ImageUploadStatusType[_0x5bc478(0x2a2)]));if(_0x55da7e[_0x5bc478(0x235)]>getDrawingImageAllowSize())return this[_0x5bc478(0x331)](),Promise[_0x5bc478(0x1f2)](new Error(ImageUploadStatusType[_0x5bc478(0x233)]));try{const _0x3aea85=new FormData();_0x3aea85[_0x5bc478(0x26b)](_0x5bc478(0x2f5),_0x55da7e);const _0x127aa0=this['_univerInstanceService'][_0x5bc478(0x1aa)](),_0x5ba2c8=_0x127aa0===null||_0x127aa0===void 0x0?void 0x0:_0x127aa0[_0x5bc478(0x15e)]();if(!_0x5ba2c8)throw new Error(_0x5bc478(0x25d));const _0x5affca=this[_0x5bc478(0x206)]()+'?size='+_0x55da7e[_0x5bc478(0x235)][_0x5bc478(0x1f5)]()+'&source='+FileSource[_0x5bc478(0x1ea)]+_0x5bc478(0x364)+encodeURIComponent(_0x5ba2c8),_0x1fbf8f={'body':_0x3aea85},_0x59a427=(await this[_0x5bc478(0x232)][_0x5bc478(0x2bf)](_0x5affca,_0x1fbf8f))[_0x5bc478(0x2f3)];if(typeof _0x59a427[_0x5bc478(0x254)]!==_0x5bc478(0x3a1))return this[_0x5bc478(0x331)](),Promise[_0x5bc478(0x1f2)](new Error(ImageUploadStatusType[_0x5bc478(0x393)]));_0x3f8d0f=_0x59a427['FileId'];}catch(_0x3c77cb){return this['_decreaseWaiting'](),Promise[_0x5bc478(0x1f2)](new Error(ImageUploadStatusType[_0x5bc478(0x393)]));}return new Promise((_0x6836cf,_0x13a1f8)=>{const _0x14f234=_0x5bc478,_0x243eee=new FileReader();_0x243eee['readAsDataURL'](_0x55da7e),_0x243eee[_0x14f234(0x318)]=_0x2a5d35=>{const _0x5a727f=_0x14f234;var _0x479210;const _0x5afe93=(_0x479210=_0x2a5d35[_0x5a727f(0x239)])===null||_0x479210===void 0x0?void 0x0:_0x479210['result'];if(_0x5afe93==null){this[_0x5a727f(0x331)](),_0x13a1f8(new Error(ImageUploadStatusType[_0x5a727f(0x393)]));return;}_0x6836cf({'imageId':generateRandomId(0x6),'imageSourceType':ImageSourceType[_0x5a727f(0x357)],'source':_0x3f8d0f,'base64Cache':_0x5afe93,'status':ImageUploadStatusType[_0x5a727f(0x1c1)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x24a02d=_0x37a288;var _0x49553b;const _0x12c97a=this[_0x24a02d(0x1ec)][_0x24a02d(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x49553b=_0x12c97a===null||_0x12c97a===void 0x0?void 0x0:_0x12c97a[_0x24a02d(0x1e6)])!==null&&_0x49553b!==void 0x0?_0x49553b:DEFAULT_EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY;}[_0x37a288(0x1b8)](){const _0x39e131=_0x37a288;var _0x11df8c;const _0x1730a=this[_0x39e131(0x1ec)][_0x39e131(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x11df8c=_0x1730a===null||_0x1730a===void 0x0?void 0x0:_0x1730a[_0x39e131(0x2ca)])!==null&&_0x11df8c!==void 0x0?_0x11df8c:DEFAULT_EXCHANGE_SIGN_URL_SERVER_URL_KEY;}[_0x37a288(0x26a)](){const _0x223d74=_0x37a288;var _0x28f2de;const _0x1c7ff9=this[_0x223d74(0x1ec)][_0x223d74(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x28f2de=_0x1c7ff9===null||_0x1c7ff9===void 0x0?void 0x0:_0x1c7ff9['downloadEndpointUrl'])!==null&&_0x28f2de!==void 0x0?_0x28f2de:location[_0x223d74(0x1df)];}[_0x37a288(0x190)](_0x364187,_0x521634){const _0x30e5e0=_0x37a288;return _0x364187[_0x30e5e0(0x1ab)]('{fileID}',_0x521634);}[_0x37a288(0x331)](){const _0x3347f0=_0x37a288;this[_0x3347f0(0x3aa)]-=0x1,this[_0x3347f0(0x30c)]['next'](this[_0x3347f0(0x3aa)]);}};CollaborationImageIoService=__decorate([__decorateParam(0x0,Inject(HTTPService)),__decorateParam(0x1,IConfigService),__decorateParam(0x2,Inject(IUniverInstanceService))],CollaborationImageIoService);const DEFAULT_AUTHZ_URL_KEY='/universer-api/authz';let MentionIoHttpService=class MentionIoHttpService{constructor(_0x53a815,_0x5c4af4){const _0x8147bc=_0x37a288;this['_configService']=_0x53a815,this[_0x8147bc(0x32e)]=_0x5c4af4;}[_0x37a288(0x1d2)](){const _0x30bdb4=_0x37a288;var _0x5776dc;const _0x3d5672=this[_0x30bdb4(0x1ec)]['getConfig'](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x5776dc=_0x3d5672===null||_0x3d5672===void 0x0?void 0x0:_0x3d5672[_0x30bdb4(0x2ff)])!==null&&_0x5776dc!==void 0x0?_0x5776dc:DEFAULT_AUTHZ_URL_KEY;}async[_0x37a288(0x1b4)](_0x198f64){const _0x5c3f9e=_0x37a288,_0x452457=this[_0x5c3f9e(0x1d2)]()+_0x5c3f9e(0x1a1);return{'list':[{'title':_0x5c3f9e(0x28a),'mentions':(await this[_0x5c3f9e(0x32e)][_0x5c3f9e(0x213)](_0x452457,{'params':{'objectID':_0x198f64['unitId'],'unitID':_0x198f64['unitId']}}))[_0x5c3f9e(0x2f3)][_0x5c3f9e(0x20b)][_0x5c3f9e(0x1f1)](_0x66f65f=>({'objectId':_0x66f65f['id'],'name':_0x66f65f[_0x5c3f9e(0x1e0)][_0x5c3f9e(0x169)],'metadata':{'icon':_0x66f65f[_0x5c3f9e(0x1e0)][_0x5c3f9e(0x3ad)]},'label':_0x66f65f[_0x5c3f9e(0x1e0)][_0x5c3f9e(0x169)],'objectType':MentionType['PERSON']})),'metadata':{},'type':MentionType[_0x5c3f9e(0x24c)]}]};}};MentionIoHttpService=__decorate([__decorateParam(0x0,Inject(IConfigService)),__decorateParam(0x1,Inject(HTTPService))],MentionIoHttpService);let PermissionService=class PermissionService extends RxDisposable{constructor(_0x4a18dc,_0x117a11,_0x4843af,_0x4ea79b,_0x2ebc17){const _0x2664c5=_0x37a288;super(),this[_0x2664c5(0x299)]=_0x4a18dc,this[_0x2664c5(0x229)]=_0x117a11,this[_0x2664c5(0x348)]=_0x4843af,this[_0x2664c5(0x209)]=_0x4ea79b,this[_0x2664c5(0x1e4)]=_0x2ebc17,this[_0x2664c5(0x3a5)](),this[_0x2664c5(0x1fb)]();}['_initCloseConn'](){const _0x291fd1=_0x37a288,_0x31cb7b=async _0x2c1a08=>{const _0xd7d241=_0x378b;(await this[_0xd7d241(0x209)][_0xd7d241(0x226)](_0x2c1a08))[_0xd7d241(0x35a)]['pipe'](filter(_0x4882ba=>_0x4882ba['eventID']===CollaborationEvent['SHOULD_CLOSE_CONN']),_0x2ed60a(this['dispose$']))[_0xd7d241(0x2ae)](_0x5bf01b=>{const _0x435ea=_0xd7d241,{reason:_0x290ba6}=_0x5bf01b['data'];this[_0x435ea(0x1e4)][_0x435ea(0x294)]({'id':'CLOSE_ROOM','data':_0x290ba6}),this[_0x435ea(0x348)][_0x435ea(0x2a7)](new WorkbookEditablePermission(_0x2c1a08)['id'],![]),this[_0x435ea(0x209)]['closeSession'](_0x2c1a08);});};_0x5de48a(this[_0x291fd1(0x229)][_0x291fd1(0x231)](UniverInstanceType[_0x291fd1(0x362)]),this[_0x291fd1(0x229)][_0x291fd1(0x231)](UniverInstanceType[_0x291fd1(0x3a2)]))['pipe'](_0x23341b(_0x449804=>_0x449804[_0x291fd1(0x35f)][_0x291fd1(0x15e)]()),filter(_0x3059ea=>!isInternalEditorID(_0x3059ea)),_0x2ed60a(this[_0x291fd1(0x2d8)]))[_0x291fd1(0x2ae)](_0x780f4a=>{_0x31cb7b(_0x780f4a);});}[_0x37a288(0x3a5)](){const _0x37bb13=_0x37a288,_0x3169a0=async _0x2594d4=>{const _0x550fd9=_0x378b,_0x3688f9=await this[_0x550fd9(0x209)][_0x550fd9(0x226)](_0x2594d4),_0x3c20aa=this[_0x550fd9(0x299)]['get'](SheetPermissionInitController);_0x3688f9['event$'][_0x550fd9(0x39b)](filter(_0x2cfd0c=>_0x2cfd0c[_0x550fd9(0x1f3)]===CollaborationEvent['UPDATE_PERMISSION_OBJ']),_0x2ed60a(this['dispose$']))[_0x550fd9(0x2ae)](_0x4d8ce1=>{const _0x3ba353=_0x550fd9,{objectId:_0x39c533}=_0x4d8ce1[_0x3ba353(0x346)];if(_0x39c533===_0x2594d4)_0x3c20aa['initWorkbookPermissionChange'](_0x2594d4);else _0x3c20aa[_0x3ba353(0x1ca)](_0x2594d4,_0x39c533);});};_0x5de48a(this[_0x37bb13(0x229)][_0x37bb13(0x231)](UniverInstanceType[_0x37bb13(0x362)]))[_0x37bb13(0x39b)](_0x23341b(_0x37c7e0=>_0x37c7e0[_0x37bb13(0x35f)][_0x37bb13(0x15e)]()),filter(_0x170832=>!isInternalEditorID(_0x170832)),_0x2ed60a(this[_0x37bb13(0x2d8)]))[_0x37bb13(0x2ae)](_0x4f83a5=>{_0x3169a0(_0x4f83a5);});}};PermissionService=__decorate([__decorateParam(0x0,Inject(Injector)),__decorateParam(0x1,IUniverInstanceService),__decorateParam(0x2,IPermissionService),__decorateParam(0x3,Inject(CollaborationSessionService)),__decorateParam(0x4,Inject(CollaborationUIEventService))],PermissionService);let SnapshotServerOverHTTPService=class SnapshotServerOverHTTPService{constructor(_0x536a8e,_0x3c5f31){const _0x4046cd=_0x37a288;this[_0x4046cd(0x1ec)]=_0x536a8e,this[_0x4046cd(0x232)]=_0x3c5f31;}async[_0x37a288(0x356)](_0x23660b,_0x32665b){const _0x5b0154=_0x37a288;var _0x4eaab7;const {unitID:_0x38c6e2,type:_0x47a0de,revision:revision=0x0}=_0x32665b,_0x176f6c=this['getSnapshotAPIPath']()+'/'+_0x47a0de+_0x5b0154(0x34c)+_0x38c6e2+'/rev/'+revision,_0x2909df=(await this[_0x5b0154(0x232)][_0x5b0154(0x213)](_0x176f6c))[_0x5b0154(0x2f3)],_0x8341e3=(_0x4eaab7=_0x2909df[_0x5b0154(0x17c)])===null||_0x4eaab7===void 0x0?void 0x0:_0x4eaab7[_0x5b0154(0x2e8)];if(_0x8341e3){const _0x3ff100=_0x8341e3===null||_0x8341e3===void 0x0?void 0x0:_0x8341e3['originalMeta'];_0x8341e3[_0x5b0154(0x19f)]=textEncoder[_0x5b0154(0x2f6)](b64DecodeUnicode(_0x3ff100)),Object['entries'](_0x8341e3[_0x5b0154(0x28c)])[_0x5b0154(0x25e)](([,_0x20f92f])=>{const _0x4bebd8=_0x5b0154,_0x31cb1f=_0x20f92f[_0x4bebd8(0x19f)];_0x20f92f[_0x4bebd8(0x19f)]=textEncoder[_0x4bebd8(0x2f6)](b64DecodeUnicode(_0x31cb1f));});}return _0x2909df;}async[_0x37a288(0x1bb)](_0x39f3ed,_0x427383){const _0x45b6a9=_0x37a288,{unitID:_0x32236c,type:_0x45d47d,blockID:_0x2c12bb}=_0x427383,_0x5e7238=this[_0x45b6a9(0x29a)]()+'/'+_0x45d47d+_0x45b6a9(0x34c)+_0x32236c+'/block/'+_0x2c12bb;return(await this[_0x45b6a9(0x232)][_0x45b6a9(0x213)](_0x5e7238))[_0x45b6a9(0x2f3)];}async[_0x37a288(0x1ce)](_0x58dd5a,_0x23f312){const _0x45fe57=_0x37a288,{unitID:_0x18bad6,type:_0x400c7f,blockID:_0x2d8eef}=_0x23f312,_0x29cf4e=this[_0x45fe57(0x29a)]()+'/block/'+_0x400c7f+_0x45fe57(0x34c)+_0x18bad6+_0x45fe57(0x227)+_0x2d8eef;return(await this[_0x45fe57(0x232)][_0x45fe57(0x213)](_0x29cf4e))[_0x45fe57(0x2f3)];}async['fetchMissingChangesets'](_0x355909,_0xcfde13){const _0xa92d8b=_0x37a288,{unitID:_0x32ab30,type:_0x6177e4,from:_0x3da6c5,to:_0x2b50d0}=_0xcfde13,_0x9bd94a=this['_getAPIPrefix']()+'/'+_0x6177e4+'/unit/'+_0x32ab30+_0xa92d8b(0x1dd)+_0x3da6c5+'&to='+_0x2b50d0;return(await this[_0xa92d8b(0x232)][_0xa92d8b(0x213)](_0x9bd94a))['body'];}[_0x37a288(0x16d)](){const _0x35a977=_0x37a288;var _0x1ba5a9;return(_0x1ba5a9=this[_0x35a977(0x1ec)][_0x35a977(0x38e)]('SNAPSHOT_URL_KEY'))!==null&&_0x1ba5a9!==void 0x0?_0x1ba5a9:this[_0x35a977(0x29a)]();}[_0x37a288(0x29a)](){const _0x16d776=_0x37a288;var _0x25baeb;const _0x41c35b=this['_configService'][_0x16d776(0x38e)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY);return(_0x25baeb=_0x41c35b===null||_0x41c35b===void 0x0?void 0x0:_0x41c35b[_0x16d776(0x2ea)])!==null&&_0x25baeb!==void 0x0?_0x25baeb:DEFAULT_SNAPSHOT_SERVER_URL;}async[_0x37a288(0x332)](_0x33a699,_0x410001){const _0x505bd4=_0x37a288,_0x3cd553=_0x505bd4(0x2fa)+_0x410001[_0x505bd4(0x2b9)]+_0x505bd4(0x34c)+_0x410001[_0x505bd4(0x196)]+_0x505bd4(0x35d);return(await this[_0x505bd4(0x232)]['get'](_0x3cd553,{'params':{'resourceId':JSON['stringify'](_0x410001[_0x505bd4(0x222)])}}))[_0x505bd4(0x2f3)];}[_0x37a288(0x31e)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['updateSnapshot'](){const _0x24594d=_0x37a288;throw new Error(_0x24594d(0x339));}[_0x37a288(0x39d)](){const _0x2457b3=_0x37a288;throw new Error(_0x2457b3(0x339));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x37a288(0x2e7)](){const _0x5152ca=_0x37a288;throw new Error(_0x5152ca(0x339));}[_0x37a288(0x291)](){const _0x586125=_0x37a288;throw new Error(_0x586125(0x339));}};SnapshotServerOverHTTPService=__decorate([__decorateParam(0x0,IConfigService),__decorateParam(0x1,Inject(HTTPService))],SnapshotServerOverHTTPService);let CollaborativeUndoRedoService=class CollaborativeUndoRedoService extends LocalUndoRedoService{constructor(_0x5b1863,_0x56f97f,_0x1ec502,_0x4773fa,_0x1a5862){const _0x108ece=_0x37a288;super(_0x5b1863,_0x56f97f,_0x1ec502),this[_0x108ece(0x37c)]=_0x4773fa,this[_0x108ece(0x270)]=_0x1a5862;}[_0x37a288(0x154)](_0x683413,_0x34ad31){const _0x5cf589=_0x37a288,_0x5842b2=this[_0x5cf589(0x1b7)](_0x683413);if(_0x5842b2)try{const _0x4ebbdb=this[_0x5cf589(0x383)](_0x5842b2,_0x34ad31);this['_substituteUndoStack'](_0x683413,_0x4ebbdb);}catch(_0x29bb49){this[_0x5cf589(0x270)]['error'](_0x5cf589(0x274),_0x29bb49),this[_0x5cf589(0x366)](_0x683413);}const _0x53c7ce=this[_0x5cf589(0x18c)](_0x683413);if(_0x53c7ce)try{const _0x563d87=this[_0x5cf589(0x383)](_0x53c7ce,_0x34ad31);this['_substituteRedoStack'](_0x683413,_0x563d87);}catch(_0x2c664d){this[_0x5cf589(0x270)][_0x5cf589(0x1cd)](_0x2c664d),this['_clearRedo'](_0x683413);}}['_clearUndo'](_0x5cb564){const _0x39863a=_0x37a288,_0x4b770d=this[_0x39863a(0x1b7)](_0x5cb564);_0x4b770d&&(_0x4b770d[_0x39863a(0x1a6)]=0x0,this[_0x39863a(0x369)]());}[_0x37a288(0x16c)](_0x53631d){const _0x154941=_0x37a288,_0x5860c6=this['_getRedoStack'](_0x53631d);_0x5860c6&&(_0x5860c6['length']=0x0,this[_0x154941(0x369)]());}['_substituteUndoStack'](_0x25e97f,_0x194d7d){const _0x474a08=_0x37a288;this['_undoStacks'][_0x474a08(0x2c4)](_0x25e97f,_0x194d7d),this['_updateStatus']();}[_0x37a288(0x1e8)](_0x3b6f72,_0x999684){const _0x7012d9=_0x37a288;this[_0x7012d9(0x35b)]['set'](_0x3b6f72,_0x999684),this['_updateStatus']();}[_0x37a288(0x383)](_0x5af5e6,_0x4d72ee){const _0x23fce2=_0x37a288,_0x4b3ee2=[];let _0x4438c9=_0x4d72ee,_0xe27ce0=_0x4d72ee;for(let _0x147868=_0x5af5e6[_0x23fce2(0x1a6)]-0x1;_0x147868>=0x0;_0x147868--){const {unitID:_0x390455,undoMutations:_0x584c7c,redoMutations:_0x29ce24}=_0x5af5e6[_0x147868],_0x433e5d=this[_0x23fce2(0x37c)][_0x23fce2(0x230)](_0x4438c9,_0x584c7c),_0x3c89b6=this[_0x23fce2(0x37c)][_0x23fce2(0x230)](_0xe27ce0,_0x29ce24);if(isTransformMutationsWithChangesetFailure(_0x433e5d)||isTransformMutationsWithChangesetFailure(_0x3c89b6)){this[_0x23fce2(0x270)][_0x23fce2(0x1cd)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x433e5d,_0x3c89b6);break;}_0x4438c9=_0x433e5d[_0x23fce2(0x37b)],_0xe27ce0=_0x3c89b6[_0x23fce2(0x37b)],_0x4b3ee2[_0x23fce2(0x344)]({'unitID':_0x390455,'undoMutations':_0x433e5d[_0x23fce2(0x2af)],'redoMutations':_0x3c89b6[_0x23fce2(0x2af)]});}return _0x4b3ee2['reverse']();}};CollaborativeUndoRedoService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,ICommandService),__decorateParam(0x2,IContextService),__decorateParam(0x3,ITransformService),__decorateParam(0x4,ILogService)],CollaborativeUndoRedoService);let UniverCollaborationClientPlugin=class UniverCollaborationClientPlugin extends Plugin{constructor(_0x34407c={},_0x27c0f1,_0xe29ce,_0xf60fd0){const _0x60c132=_0x37a288;super(),this[_0x60c132(0x392)]=_0x34407c,this['_logService']=_0x27c0f1,this[_0x60c132(0x299)]=_0xe29ce,this[_0x60c132(0x1ec)]=_0xf60fd0;const {..._0x216248}=merge({},defaultPluginConfig,_0x34407c);if(!_0x216248[_0x60c132(0x170)])throw new Error(_0x60c132(0x1fc));this[_0x60c132(0x392)]=_0x216248,this[_0x60c132(0x1ec)][_0x60c132(0x1cc)](COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,_0x216248);}[_0x37a288(0x38b)](){const _0x1dcc5d=_0x37a288;this['_registerDependencies'](),this[_0x1dcc5d(0x2f9)]();}[_0x37a288(0x29f)](){const _0x2a8872=_0x37a288;var _0x47baf8,_0x41b536;if(this[_0x2a8872(0x299)][_0x2a8872(0x315)](IUndoRedoService))this['_logService'][_0x2a8872(0x1cd)](_0x2a8872(0x328),_0x2a8872(0x153));const _0xc38e1=mergeOverrideWithDependencies([[IUndoRedoService,{'useClass':CollaborativeUndoRedoService}],[CollaborationSessionService],[MemberService],[SheetTransformSelectionsService],[AuthServerService],[DomainRequestService],[CommentService],[PermissionService],[CollaborationUIEventService],[DataLoaderService],[ICollaborationSocketService,{'useClass':this[_0x2a8872(0x392)][_0x2a8872(0x170)]}],[ISnapshotServerService,{'useClass':SnapshotServerOverHTTPService}],[IAuthzIoService,{'useClass':AuthzIoHttpService}],[IImageIoService,{'useClass':CollaborationImageIoService}],[IMentionIOService,{'useClass':MentionIoHttpService}],[CollaborationController],[FileNameController]],(_0x47baf8=this['_config'])===null||_0x47baf8===void 0x0?void 0x0:_0x47baf8[_0x2a8872(0x22d)]);if(!((_0x41b536=this[_0x2a8872(0x392)])===null||_0x41b536===void 0x0?void 0x0:_0x41b536[_0x2a8872(0x26f)])){const _0x54cf01=_0xc38e1[_0x2a8872(0x228)](([_0x2a38f3])=>_0x2a38f3===ISingleActiveUnitService);if(_0x54cf01!==-0x1)_0xc38e1[_0x2a8872(0x22c)](_0x54cf01,0x1);}registerDependencies(this[_0x2a8872(0x299)],_0xc38e1);}[_0x37a288(0x2f9)](){const _0x147389=_0x37a288;var _0x3dd7ff,_0x2e480e;this['_injector']['get'](HTTPService)[_0x147389(0x381)]({'priority':0x14,'interceptor':ThresholdInterceptorFactory({'maxParallel':0x6})});if(!((_0x3dd7ff=this[_0x147389(0x392)])===null||_0x3dd7ff===void 0x0?void 0x0:_0x3dd7ff[_0x147389(0x2e2)])){var _0x3ec556;(_0x3ec556=this[_0x147389(0x299)][_0x147389(0x213)](ILocalCacheService,Quantity[_0x147389(0x2e4)]))===null||_0x3ec556===void 0x0||_0x3ec556[_0x147389(0x38a)]();}if((_0x2e480e=this[_0x147389(0x392)])===null||_0x2e480e===void 0x0?void 0x0:_0x2e480e[_0x147389(0x281)])touchDependencies(this[_0x147389(0x299)],[[AuthServerService]]);touchDependencies(this['_injector'],[[DomainRequestService],[CollaborationController],[PermissionService]]);}};_defineProperty(UniverCollaborationClientPlugin,'pluginName',_0x37a288(0x1ff)),_defineProperty(UniverCollaborationClientPlugin,_0x37a288(0x17d),name),_defineProperty(UniverCollaborationClientPlugin,_0x37a288(0x386),version),UniverCollaborationClientPlugin=__decorate([DependentOn(UniverLicensePlugin,UniverCollaborationPlugin,UniverNetworkPlugin),__decorateParam(0x1,ILogService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService)],UniverCollaborationClientPlugin);export{AuthzIoHttpService,AwaitingState,AwaitingWithPendingState,COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,CollaborationController,CollaborationEntity,CollaborationImageIoService,CollaborationSession,CollaborationSessionService,CollaborationSocketService,CollaborationStatus,CollaborationUIEventId,CollaborationUIEventService,CollaborativeUndoRedoService,CommentService,ConflictState,DEFAULT_COLLAB_WEB_SOCKET_URL,DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,DEFAULT_WS_SESSION_TICKET_URL,DataLoaderService,DocCollaborationEntity,FetchingMissState,HEARTBEAT_INTERVAL_KEY,HEARTBEAT_TIMEOUT_KEY,ICollaborationSocketService,ILocalCacheService,INetworkConditionService,ISingleActiveUnitService,LOCAL_CACHE_INTERVAL,LOCAL_CACHE_INTERVAL_KEY,MemberService,MentionIoHttpService,OfflineState,PendingState,REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,RETRY_CONNECTING_MAX_COUNT_KEY,SessionStatus,SheetCollaborationEntity,SheetTransformSelectionsService,SnapshotServerOverHTTPService,SyncedState,UnitStatus,UniverCollaborationClientPlugin,deserializeToCombResponse,getLocalCacheKey,serializeCombRequest};
|
|
1
|
+
const _0x50ca80=_0x3123;(function(_0x3d60d7,_0x5b7018){const _0x2b0ad5=_0x3123,_0x157f70=_0x3d60d7();while(!![]){try{const _0x1e7487=-parseInt(_0x2b0ad5(0x32c))/0x1+parseInt(_0x2b0ad5(0xff))/0x2*(parseInt(_0x2b0ad5(0x2f2))/0x3)+parseInt(_0x2b0ad5(0x359))/0x4+-parseInt(_0x2b0ad5(0x253))/0x5*(-parseInt(_0x2b0ad5(0x18d))/0x6)+-parseInt(_0x2b0ad5(0x287))/0x7*(-parseInt(_0x2b0ad5(0x161))/0x8)+parseInt(_0x2b0ad5(0x1cd))/0x9*(-parseInt(_0x2b0ad5(0x228))/0xa)+parseInt(_0x2b0ad5(0x2f6))/0xb*(-parseInt(_0x2b0ad5(0x242))/0xc);if(_0x1e7487===_0x5b7018)break;else _0x157f70['push'](_0x157f70['shift']());}catch(_0xb86181){_0x157f70['push'](_0x157f70['shift']());}}}(_0x5997,0x9c7b4));import{CollaborationEvent as _0x3b8cc3,CompressMutationService as _0x32c83e,EmptyMutationInfo as _0x43243e,ISnapshotServerService as _0x61d41c,ITransformService as _0x1726e6,RevisionService as _0x4565f5,SnapshotService as _0x195e17,UniverCollaborationPlugin as _0x4e4157,b64DecodeUnicode as _0x3d3618,isTransformChangesetsSuccess as _0x3fa49e,isTransformMutationsWithChangesetFailure as _0x53fd64,isTransformMutationsWithChangesetSuccess as _0xa549dc,mapDocumentTypeToUniverInstanceType as _0x351811,parseChangesetToProtocol as _0x58dede,parseProtocolChangeset as _0x25ebd1,textEncoder as _0x2e6b4d,uuidv4 as _0x5085ef}from'@univerjs-pro/collaboration';import{CommandType as _0x58f761,DependentOn as _0x36b668,Disposable as _0x9fa895,DisposableCollection as _0x96e511,IAuthzIoService as _0x5e68f5,ICommandService as _0x2d9981,IConfigService as _0x25ecfe,IContextService as _0x711b23,ILogService as _0x5b7991,IMentionIOService as _0x1849c0,IPermissionService as _0x393a1b,IUndoRedoService as _0x16c6c1,IUniverInstanceService as _0x2dad56,Inject as _0x4bd6ab,Injector as _0x280033,JSONX as _0x385314,LocalUndoRedoService as _0x2585ac,LocaleService as _0x4d3fc2,MentionType as _0x4ced22,Optional as _0x122efe,Plugin as _0x10339e,Quantity as _0x4cdc56,Rectangle as _0x16707f,RxDisposable as _0x1e6e8b,Tools as _0x536fbb,UniverInstanceType as _0x261bc8,UserManagerService as _0x28c29d,Workbook as _0x33ac8d,createIdentifier as _0x3f595f,generateRandomId as _0x5f423d,isInternalEditorID as _0x3309a8,merge as _0x48b3d1,mergeOverrideWithDependencies as _0x177d9b,registerDependencies as _0x47484a,resolveWithBasePath as _0x3243cf,sequenceExecute as _0x1d2185,toDisposable as _0x50490a,touchDependencies as _0x16b47b}from'@univerjs/core';import{RichTextEditingMutation as _0x4add4c}from'@univerjs/docs';import{InsertSheetMutation as _0x1b2d6b,SetSelectionsOperation as _0x2b69fe,SheetPermissionInitController as _0x11aeaf,SheetsSelectionsService as _0x239a68,WorkbookEditablePermission as _0x2c6ff9}from'@univerjs/sheets';import{BehaviorSubject as _0x4a3716,ReplaySubject as _0x3b3840,Subject as _0x582e08,concatMap as _0x53be54,firstValueFrom as _0x1022a6,map as _0x196732,merge as _0x12dbcf,of as _0x97c2d4,shareReplay as _0x5b45b4,take as _0x42a5ba,takeUntil as _0x17aedf}from'rxjs';import{CmdRspCode as _0x222ab7,CombCmd as _0x1e2dc3,ErrorCode as _0x111d5a,FileSource as _0x1897c5}from'@univerjs/protocol';import{ITelemetryService as _0x3b7202}from'@univerjs/telemetry';import{delay as _0xd4ac63,filter as _0x4a6387,map as _0x3cf0ac,take as _0x1174d3,takeUntil as _0x5d5659}from'rxjs/operators';import{HTTPRequest as _0x1e9f1a,HTTPService as _0x2872f5,ISocketService as _0x3859d3,MergeInterceptorFactory as _0x28486c,ThresholdInterceptorFactory as _0x48583f,UniverNetworkPlugin as _0x2a9b2f}from'@univerjs/network';import{UniverLicensePlugin as _0x534395,getGlobalObject as _0x55cc8b}from'@univerjs-pro/license';function _0x5997(){const _0x5c41cc=['/universer-api/snapshot/','saveImage','signUrlServerUrl','_getAPIPrefix','_transformSelections','JOIN_ROOM_NOT_EXISTS','_onConnectionOpen','_socket$','body','focused$','_commentService','defineProperty','set','_retryConnectingTimer','_clearCollaborationTimeoutTimer','_getLoginPath','editing\x20status\x20changed\x20to','onRemoteRetry','open$','getUnitStatus$','_telemetryService','DEFAULT_FILE_NAME','find','_onRemoteRetry','_collaborationTimeoutTimer','constructor','ERROR_IMAGE','type','_executeRemoteChangeset','get','_joinRoom','getResourcesRequest','disposeWithMe','_socket','_imageSourceCache','_resendTimeout','_getCurrentRevision','capture','SUBMIT_CHANGESET_TIMEOUT','toPrimitive','params','onlyLocal','1712001XeZxCT','Failed\x20to\x20update\x20permission\x20point','&to=','filter','11jJBoxh','getLatestCsReqIdBySid','loadUnitOfRevision','getUnitId','onCommentUpdate','floor','_redoStacks','override','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_showConflictNotification','_waitCount','mutations','COMPRESS_MUTATION_APPLY','COMMENT_UPDATE','_retryCount','_disableEditing','UPDATE_PERMISSION_OBJ','/rev/','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_resendTimer','reverse','createCollaborator','_decreaseWaiting','put','onSyncEditingCollabCursor','add','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[SyncedState]:\x20received\x20acknowledgement.','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_logService','CLOSE_ROOM','UUID','RETRY_CONNECTING_MAX_COUNT','leaveEvent','[CollaborationSession]','PERSON','_remoteChangesetQueue','commentUpdateEvent','CHANGESET_ACK','transformStack\x20failed!','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_checkMissing','getCurrentSelections','conflict','string','stringify','getTypeOfUnitDisposed$','symbol','_resendWithTimeout','session.room-permission-denied','_handler','[CollaborationSessionService]','onRemoteAck','target','475781KgUAPZ','LIVESHARE_TERMINATE','readyForCollab','IDLE','awaiting','init','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','collabWebSocketUrl','getCfgEnableObjInherit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_startCollaboration','PSEUDO_FETCH_MISSING_RESULT','_acknowledgeAwaitingIfReady','fetching\x20missing\x20changesets\x20from\x20','_status$','_initCloseConn','_change$','_revisionService','_waitForHeartbeatResponse','entries','complete','updateMember','_members','_onMessage','refreshPermission','_getDownloadEndpointURL','origin','ERROR_IMAGE_TYPE','loadOfflineData','_initMergeInterceptor','_getUndoStack','_syncEditingCollabCursor','_roomCreated$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','shouldCloseConn','pluginName','updateOfflineData','_clearTimeoutTimer','@univerjs-pro/collaboration-client','_getSignURL','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','emitEvent','getTime','list','_unitInfo$','2089548jwylwY','USERS_LEAVE','CHANGESET_REJ','removeMember','_initUnitPermissionChange','_sendingTimer','_createInitialStateImpl','_replayCachedMutations','localeService','{fileID}','AWAITING_WITH_PENDING','reduce','create','getCollabEntity','_tryEnsureSocket','?size=','session','socket\x20open.','c1Prime','HEARTBEAT_TIMEOUT','getInterceptPoints','loginUrlKey','isArray','compose','_singleActiveUnitService','patch','_clearScheduledTask','_sender','_transformRemoteChangesetByStateCache','uniscriptRunEvent','2IefZSM','_snapshotService','PERMISSION_REJ','_injector','POST','initWorkbookPermissionChange','userID','getConfig','?url=','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','href','LEAVE','_sessions','_transformAndApplyRemoteChangeset','[FetchMissState]','_onUserJoin','People','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','close','/-/object/-/batch_allowed','_undoStacks','_stopTelemetryCollaborationNewChangeset','_type','UnitEmbedded','roomInfos','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','_roomMembers','getCurrentUser','UNIVER_COLLABORATION_CLIENT_PLUGIN','editingUnit','requestParams','ERROR_EXCEED_SIZE','next','/block/','/role','change$','_registerDependencies','_clearHeartbeatTimer','cmd','session.room-not-exists','objects','apply','/-/object/list','joinRsp','saveSheetBlock','collaboration-client.config','FETCH_MISSING','code','members$','_socketService','FileId','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','revision','isPermissionRej','_transitionLocked','_configService','title','socket\x20close','/universer-api/uniscript','HELLO','COMPRESS_MUTATION_SEND','_timeoutTimer','fetchMiss','has','onload','batchAllowed','NEW_CHANGESETS','loadSheet','deleteCollaborator','UNIVER_SHEET','collaboration-client.local-cache-service','getImage','SOCKET_FAILED','online$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','loadUnit','min','_tryReconnect','textRanges','duration','pending','close$','_applyRemoteChangeset','_onUserLeave','_removeRoom','SOCKET_FAILED_RETRY','_createInitialState','GLOBAL_ROOMS_CNT_EXCEEDS','_throwTelemetryCollaborationNewChangeset','UPDATE_CURSOR','packageName','getCurrentRevOfUnit','_substituteUndoStack','_onConnectionFailed','_incrementRevisionNumber','changesets','_onOffline','headers','88BaeoWx','routeKey','getValue','_doCreateSocket','PERMISSION_DENIED','/universer-api/authz','allowed','debug','onRemoteChangeset','[DataLoaderService]','_instanceService','requireSession','_collaborationPaused','authzUrl','/resources','readAsDataURL','_clearUndo','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_substituteRedoStack','getMember','UNISCRIPT_RUN','dispose$','size','unit','findIndex','_clearLocalCache','_state','onTransformSelections','session.room-cnt-exceeds','_onJoinRoomEvent','_userManagerService','BASE64','liveShareNewHost','_localeService','onMissingChangesets','0.23.0','_onConflict','onMissedChangesetFetched','_permissionService','SHOULD_CLOSE_CONN','catch','result','_exhaustRemoteChangesetQueue','_listenToNetworkCondition','11208kiMMsL','_startTelemetryCollaborationNewChangeset','_isPermissionRej','_onRecvEvent','MUTATION','HEARTBEAT','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','univer-pro.collaboration-client.network-condition.service','_unitID','onStarting','encode','unitInfo$','startsWith','JOIN_ROOM_FULL','members','objectType','_onRemoteChangeset','getCollabEntity$','unsubscribe','AWAITING','_initDependencies','offline','_transformService','collaboration_new_changeset','_socketReady','status','event$','/object/','object','/collaborator','updatePermissionPoint','_schedule','_getCtorByUniverInstanceType','file','sort','createSocket','_shouldReportTelemetry','roles','_memberService','updatePermissionObjEvent','setCfgEnableObjInherit','RECV','onTransformState','data','HEARTBEAT_INTERVAL','CONFLICT','[OfflineState]:\x20received\x20changeset.','from','/allowed','location','forEach','fetchMissingChangesets','/unit/','commentUpdate$','_members$','enableCollaboration','executeCommand','getDeserializedSheetBlock','src','onTransformIME','map','listCollaborators','copyFileMeta','infoRsp','1259289IjOvqI','_commandService','_toggleOffline','_createSocket','listRoles','_scheduleCollaborationTimeoutTimer','asObservable','_replaceFileID','getUnitType','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','transformChangesets','onRemoteRej','_sheetTransformSelectionsService','_httpService','_getUploadFileURL','_onCombEvent','_sendHeartbeatTimer','stopTime','toggleOnline','_telemetryInfo','LIVESHARE_OPERATION','name','avatar','range','objectID','updateCollaborator','permissionRejEvent','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','/new_changes','fetch_missing','_queuedRemoteChangesets','fromCharCode','_onLocalMutation','_event$','putCollaborators','_awaitingChangeset','_sendHeartbeat','_transformRemoteChangesetByIMECache','csShouldRetryEvent','\x20-\x20','_localCacheService','sessionStatus','closeSession','objectActions','workbook','_pendingMutations','transformSelections','message$','getTypeOfUnitAdded$','subscribe','prototype','onSendChangeset','_submitChangeset','includes','OFFLINE','selections','univer-pro.collaboration-client.single-active-unit-service','state','getSheetBlock','actions','_scheduleCompleteTimestamp','onMutationExecutedForCollab','[SyncedState]:\x20received\x20rejection.','JOINING','[PendingState]:\x20received\x20rejection.','SYNCED','sessionStatus$','LOCAL_CACHE_INTERVAL','_clearRetryConnectingTimer','_getSendChangesetTimeout','unit-cache-','LIVESHARE_FETCH_OPERATIONS','_config','snapshotServerUrl','now','encodeURIComponent','[CollaborationEntity]','\x20to\x20','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_changesetSessionId','session.join-failed','deepClone','_emitMembers','[UniverCollaborationClientPlugin]','startTime','_updateLocalCache','url','action','memberID','_createHandler','OTHER_CLIENTS_EDITING','50OGjqds','_handlerCallback','_lockTransition','_rescheduleHeartbeat','_cfgEnableObjInherit','localCacheService','parse','uploadFileServerUrl','univer-pro.collaboration-client-socket-service','_eventService','_state$','_unlockTransition','getUnitOnRev','SNAPSHOT_URL_KEY','sid','_init','[CollaborationState]:\x20apply\x20error!','OTHER_CLIENT_EDITING','iterator','MSG_FOR_ERROR','getSheetId','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_candidateSocket','_snapshotServerService','loadDoc','_socketMessageSubscription','12098508AajtPn','awaitingChangeset','_entities','dispose','onTransformRemoteChangesetByStateCache','unitID','setCurrentUser','collaMsg','_HTTPService','_clearRedo','\x0aAfter:\x20','Univer','[OfflineState]:\x20received\x20acknowledgement.','update','onTransformRemoteChangesetByIMECache','send','unitId\x20is\x20not\x20found','1510muIkbn','_updateStatus','synced','state$','_univerInstanceService','UNIVER_DOC','waitForRoom$','createInstance','function','_sessionStatus$','_collaborationSessionService','getAllMembers','transformMutationsWithChangeset','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','unitId','LIVESHARE_NEW_HOST','_maxTotalRetryTimeout','post','_networkConditionService','SUBMIT_CHANGESET','FAIL','/universer-api/oidc/authpage','_getAPIPrefixPath','/universer-api/snapshot','/universer-api/file/{fileID}/sign-url','baseRev','appendMutation','_transformStack','push','clear','/universer-api/stream/file/upload','error$','INGEST','reject','incrementRevOfUnit','csAckEvent','_transformUndoredo','getFocusedUnit','/universer-api/user/session-ticket','eventID','every','_handleRemoteChangesets','saveChangeset','max','getActiveSheet','registerHTTPInterceptor','missingChangesets','_commentUpdate$','JOIN_ROOM_PERMISSION_DENIED','_collaborationUIEventService','742861StmQUf','JOIN','&assign=','getMemberID','_collabSessionService','JOIN_ROOM_FAILED','CHANGESET_SHOULD_RETRY','equals','_compressMutationService','entityInit$','delete','error','setShowComponents','transformUndoRedo','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_fetchMissChangesets','newCsEvent','resend','cfgEnableObjInherit','USERS_ENTER','_getRedoStack','slice','method','submit\x20changeset\x20error!','length','_undoRedoService','downloadEndpointUrl','NO_OTHER_CLIENTS_EDITING','_updateState','awaiting_with_pending','reconnect','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','unknown','[CollaborationSessionService]:\x20socket\x20error','fromCollab','_acknowledgedAwaitingRevision','_isEchoedAwaitingChangeset','getRoom','fetchThroughInterceptors','ONLINE','_onRemoteRejected','/object','_onFetchMissResult','FETCH_MISS','pipe','getSnapshotAPIPath','reqId','not_collab','NOT_COLLAB','[PendingState]:\x20received\x20acknowledgement.','getWorkbookSelections','toggleOffline','_transformStateCache','x-univer-host','m2Prime','_entityInit$','interceptor','updateSnapshot','originalMeta','call','_transformIMECache','_acknowledgeAwaiting','snapshot','subject','_changesetReqId'];_0x5997=function(){return _0x5c41cc;};return _0x5997();}import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x492880,IImageIoService as _0x505a62,ImageSourceType as _0x58c991,ImageUploadStatusType as _0x58b178,getDrawingImageAllowSize as _0x5631f8}from'@univerjs/drawing';import{cbc as _0x56ae54}from'@noble/ciphers/aes.js';import{concatBytes as _0x3fda9d,randomBytes as _0x2d6247,utf8ToBytes as _0x1306c9}from'@noble/ciphers/utils.js';const ut='ws://127.0.0.1:8000/universer-api/comb/connect',dt=_0x50ca80(0x27b),ft=_0x50ca80(0x1b9),pt=_0x50ca80(0xf4),mt=0x4e20,ht=_0x50ca80(0x316),gt=_0x50ca80(0x210),_t=0x3e8,vt=_0x50ca80(0x312),yt=_0x50ca80(0x139);function bt(_0x50605e){const _0x1280bb=_0x50ca80;return JSON[_0x1280bb(0x323)](_0x50605e)[_0x1280bb(0x29f)];}function F(_0x5204ca){'@babel/helpers - typeof';const _0x389b89=_0x50ca80;return F=typeof Symbol==_0x389b89(0x25b)&&typeof Symbol[_0x389b89(0x23a)]==_0x389b89(0x325)?function(_0x15831b){return typeof _0x15831b;}:function(_0x3066bc){const _0x223052=_0x389b89;return _0x3066bc&&typeof Symbol==_0x223052(0x25b)&&_0x3066bc[_0x223052(0x2e1)]===Symbol&&_0x3066bc!==Symbol[_0x223052(0x1ff)]?_0x223052(0x325):typeof _0x3066bc;},F(_0x5204ca);}function xt(_0x6cd441,_0x394804){const _0x4d9719=_0x50ca80;if(F(_0x6cd441)!=_0x4d9719(0x1a9)||!_0x6cd441)return _0x6cd441;var _0x578d1b=_0x6cd441[Symbol[_0x4d9719(0x2ef)]];if(_0x578d1b!==void 0x0){var _0x318aa6=_0x578d1b[_0x4d9719(0x2c2)](_0x6cd441,_0x394804||'default');if(F(_0x318aa6)!=_0x4d9719(0x1a9))return _0x318aa6;throw TypeError(_0x4d9719(0x335));}return(_0x394804===_0x4d9719(0x322)?String:Number)(_0x6cd441);}function St(_0x3b4a17){const _0x213c80=_0x50ca80;var _0x2f4d34=xt(_0x3b4a17,'string');return F(_0x2f4d34)==_0x213c80(0x325)?_0x2f4d34:_0x2f4d34+'';}function I(_0x5ab35f,_0x284b07,_0x2a40a2){return(_0x284b07=St(_0x284b07))in _0x5ab35f?Object['defineProperty'](_0x5ab35f,_0x284b07,{'value':_0x2a40a2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ab35f[_0x284b07]=_0x2a40a2,_0x5ab35f;}let Ct=function(_0x3df8ac){const _0x308e59=_0x50ca80;return _0x3df8ac[_0x308e59(0x239)]=_0x308e59(0x239),_0x3df8ac['PERMISSION_DENIED']=_0x308e59(0x165),_0x3df8ac['CONFLICT']=_0x308e59(0x1ba),_0x3df8ac[_0x308e59(0x314)]=_0x308e59(0x314),_0x3df8ac[_0x308e59(0x28c)]='JOIN_ROOM_FAILED',_0x3df8ac[_0x308e59(0x154)]=_0x308e59(0x154),_0x3df8ac[_0x308e59(0x147)]=_0x308e59(0x147),_0x3df8ac['SUBMIT_CHANGESET_TIMEOUT']=_0x308e59(0x2ee),_0x3df8ac;}({});var L=class{constructor(){const _0x4cd69c=_0x50ca80;I(this,_0x4cd69c(0x1ee),new _0x582e08()),I(this,_0x4cd69c(0x1a7),this[_0x4cd69c(0x1ee)][_0x4cd69c(0x1d3)]());}[_0x50ca80(0x355)](_0xda2702){const _0x1b862c=_0x50ca80;this[_0x1b862c(0x1ee)][_0x1b862c(0x11f)](_0xda2702);}},wt=class{constructor(){const _0x1c2c2e=_0x50ca80;I(this,'_commentUpdate$',new _0x582e08()),I(this,_0x1c2c2e(0x1c2),this[_0x1c2c2e(0x284)][_0x1c2c2e(0x1d3)]());}['onCommentUpdate'](_0x252259){const _0x156cd3=_0x50ca80;this[_0x156cd3(0x284)][_0x156cd3(0x11f)](_0x252259);}};function R(_0x375f53,_0x5c92cf){return function(_0x40bd23,_0x1a6864){_0x5c92cf(_0x40bd23,_0x1a6864,_0x375f53);};}function z(_0x57d9bd,_0x4a81de,_0x4daf40,_0x118837){const _0xca1f9e=_0x50ca80;var _0x43bf0d=arguments['length'],_0x334c98=_0x43bf0d<0x3?_0x4a81de:_0x118837===null?_0x118837=Object[_0xca1f9e(0x261)](_0x4a81de,_0x4daf40):_0x118837,_0x144929;if(typeof Reflect==_0xca1f9e(0x1a9)&&typeof Reflect['decorate']==_0xca1f9e(0x25b))_0x334c98=Reflect['decorate'](_0x57d9bd,_0x4a81de,_0x4daf40,_0x118837);else{for(var _0x1bb3b7=_0x57d9bd['length']-0x1;_0x1bb3b7>=0x0;_0x1bb3b7--)(_0x144929=_0x57d9bd[_0x1bb3b7])&&(_0x334c98=(_0x43bf0d<0x3?_0x144929(_0x334c98):_0x43bf0d>0x3?_0x144929(_0x4a81de,_0x4daf40,_0x334c98):_0x144929(_0x4a81de,_0x4daf40))||_0x334c98);}return _0x43bf0d>0x3&&_0x334c98&&Object[_0xca1f9e(0x2d3)](_0x4a81de,_0x4daf40,_0x334c98),_0x334c98;}let B=class extends _0x9fa895{constructor(_0x3e0feb,_0x525e90){const _0x34e0e2=_0x50ca80;super(),this[_0x34e0e2(0x257)]=_0x3e0feb,this[_0x34e0e2(0x17f)]=_0x525e90,I(this,'_roomMembers',new Map()),I(this,'_roomCreated$',new _0x582e08()),this['disposeWithMe'](_0x12dbcf(this[_0x34e0e2(0x257)][_0x34e0e2(0x324)](_0x261bc8[_0x34e0e2(0x144)])[_0x34e0e2(0x2b3)](_0x3cf0ac(_0x1e6309=>_0x1e6309['getUnitId']())),this[_0x34e0e2(0x257)][_0x34e0e2(0x324)](_0x261bc8[_0x34e0e2(0x258)])[_0x34e0e2(0x2b3)](_0x3cf0ac(_0x5c0c36=>_0x5c0c36[_0x34e0e2(0x2f9)]())))[_0x34e0e2(0x1fe)](_0x1872e6=>this[_0x34e0e2(0x153)](_0x1872e6)));}[_0x50ca80(0x259)](_0x1f9fbb){const _0x233099=_0x50ca80;return this['_roomMembers'][_0x233099(0x13e)](_0x1f9fbb)?_0x97c2d4(this[_0x233099(0x119)][_0x233099(0x2e5)](_0x1f9fbb)):this[_0x233099(0x34c)][_0x233099(0x2b3)](_0x3cf0ac(_0xfe6faf=>{const _0x2cd6dd=_0x233099;if(_0xfe6faf===_0x1f9fbb)return this[_0x2cd6dd(0x119)][_0x2cd6dd(0x2e5)](_0xfe6faf);}));}[_0x50ca80(0x248)](_0x3ec0ca){const _0x1b5f5a=_0x50ca80;this['_userManagerService'][_0x1b5f5a(0x248)](_0x3ec0ca);}['getCurrentUser'](){const _0x36c4fd=_0x50ca80;return this[_0x36c4fd(0x17f)]['getCurrentUser']();}[_0x50ca80(0x341)](_0x391c40,_0x1f874d){const _0x2c2827=_0x50ca80;let _0x430c18=this['_roomMembers'][_0x2c2827(0x2e5)](_0x391c40);_0x430c18||(_0x430c18=new Tt(),this['_roomMembers'][_0x2c2827(0x2d4)](_0x391c40,_0x430c18),this[_0x2c2827(0x34c)][_0x2c2827(0x11f)](_0x391c40)),_0x430c18['updateMember'](_0x1f874d);}[_0x50ca80(0x35c)](_0x40767d,_0x4d9afd){const _0x3bcf7f=_0x50ca80;let _0x4a2ba6=this[_0x3bcf7f(0x119)][_0x3bcf7f(0x2e5)](_0x40767d);_0x4a2ba6&&_0x4a2ba6[_0x3bcf7f(0x35c)](_0x4d9afd);}[_0x50ca80(0x2ac)](_0x519b96){const _0x3bb0c5=_0x50ca80;return this['_roomMembers'][_0x3bb0c5(0x2e5)](_0x519b96);}[_0x50ca80(0x174)](_0x22e4a6,_0x227c8b){const _0x19d149=_0x50ca80;let _0xd8b1=this[_0x19d149(0x119)][_0x19d149(0x2e5)](_0x22e4a6);if(_0xd8b1)return _0xd8b1['getMember'](_0x227c8b);}['_removeRoom'](_0x4e048a){const _0x2f0c0b=_0x50ca80;let _0x226d38=this['_roomMembers'][_0x2f0c0b(0x2e5)](_0x4e048a);_0x226d38&&(_0x226d38[_0x2f0c0b(0x245)](),this[_0x2f0c0b(0x119)][_0x2f0c0b(0x291)](_0x4e048a));}[_0x50ca80(0x245)](){const _0x146c76=_0x50ca80;this[_0x146c76(0x119)][_0x146c76(0x1bf)](_0x560138=>_0x560138[_0x146c76(0x245)]()),this['_roomMembers']['clear'](),this[_0x146c76(0x34c)]['complete']();}};B=z([R(0x0,_0x2dad56),R(0x1,_0x4bd6ab(_0x28c29d))],B);var Tt=class extends _0x9fa895{constructor(..._0x3d63de){const _0x39e592=_0x50ca80;super(..._0x3d63de),I(this,_0x39e592(0x342),new Map()),I(this,'_members$',new _0x4a3716(this['_members'])),I(this,_0x39e592(0x12f),this['_members$'][_0x39e592(0x1d3)]());}[_0x50ca80(0x245)](){const _0x1277c8=_0x50ca80;this['_members'][_0x1277c8(0x272)](),this[_0x1277c8(0x1c3)][_0x1277c8(0x340)]();}[_0x50ca80(0x341)](_0x106d46){const _0x3081fd=_0x50ca80;this['_members']['set'](_0x106d46[_0x3081fd(0x225)],_0x106d46),this['_emitMembers']();}['removeMember'](_0x4d4e36){const _0x31a2f3=_0x50ca80;this['_members'][_0x31a2f3(0x291)](_0x4d4e36),this[_0x31a2f3(0x21f)]();}[_0x50ca80(0x174)](_0x438257){const _0x376fab=_0x50ca80;return this['_members'][_0x376fab(0x2e5)](_0x438257);}[_0x50ca80(0x25e)](){const _0xb7c7da=_0x50ca80;return Array[_0xb7c7da(0x1bc)](this[_0xb7c7da(0x342)]['values']());}['_emitMembers'](){const _0x30b939=_0x50ca80;this[_0x30b939(0x1c3)]['next'](this[_0x30b939(0x342)]);}};let Et=function(_0x1d91ab){const _0x5a9a6d=_0x50ca80;return _0x1d91ab[_0x1d91ab[_0x5a9a6d(0x32f)]=0x0]=_0x5a9a6d(0x32f),_0x1d91ab[_0x1d91ab['JOINING']=0x1]=_0x5a9a6d(0x20c),_0x1d91ab[_0x1d91ab[_0x5a9a6d(0x203)]=0x2]=_0x5a9a6d(0x203),_0x1d91ab[_0x1d91ab[_0x5a9a6d(0x2ae)]=0x3]=_0x5a9a6d(0x2ae),_0x1d91ab;}({});const Dt={[_0x222ab7[_0x50ca80(0x269)]]:_0x50ca80(0x21d),[_0x222ab7[_0x50ca80(0x19a)]]:'session.room-full',[_0x222ab7[_0x50ca80(0x2cd)]]:_0x50ca80(0x126),[_0x222ab7[_0x50ca80(0x285)]]:_0x50ca80(0x327),[_0x222ab7[_0x50ca80(0x156)]]:_0x50ca80(0x17d)};let Ot=class extends _0x1e6e8b{get[_0x50ca80(0x1f6)](){const _0x571a02=_0x50ca80;return this[_0x571a02(0x25c)]['getValue']();}constructor(_0x1414e7,_0xd76053,_0x9b4ade,_0x3c2a87,_0x30040e,_0x1dc097,_0x19229a,_0x40f311){const _0x25e372=_0x50ca80;super(),this[_0x25e372(0x195)]=_0x1414e7,this['_logService']=_0x9b4ade,this['_configService']=_0x3c2a87,this['_memberService']=_0x30040e,this[_0x25e372(0x2d2)]=_0x1dc097,this[_0x25e372(0x286)]=_0x19229a,this[_0x25e372(0x2dc)]=_0x40f311,I(this,_0x25e372(0x25c),new _0x4a3716(0x0)),I(this,_0x25e372(0x20f),this['_sessionStatus$'][_0x25e372(0x1d3)]()),I(this,_0x25e372(0x1ee),new _0x582e08()),I(this,_0x25e372(0x1a7),this[_0x25e372(0x1ee)][_0x25e372(0x1d3)]()),I(this,_0x25e372(0x2e9),void 0x0),I(this,_0x25e372(0x241),void 0x0),I(this,'_collaborationTimeoutTimer',void 0x0),I(this,_0x25e372(0x1b1),!0x1),I(this,_0x25e372(0x1e0),null),this[_0x25e372(0x1b1)]=!!this[_0x25e372(0x2dc)],_0xd76053['pipe'](_0x17aedf(this[_0x25e372(0x176)]))['subscribe'](_0x109fcf=>{const _0x506ea4=_0x25e372;if(_0x109fcf!==void 0x0){if(this['_socket']=_0x109fcf,_0x109fcf)this[_0x506ea4(0x2e6)](_0x109fcf),this[_0x506ea4(0x241)]=_0x109fcf[_0x506ea4(0x1fc)][_0x506ea4(0x1fe)](_0x166a80=>{const _0x1a8169=_0x506ea4;_0x166a80['routeKey']===this[_0x1a8169(0x195)]&&this['_onCombEvent'](_0x166a80);});else{var _0x33c407;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x506ea4(0x25c)]['next'](0x2),(_0x33c407=this['_socketMessageSubscription'])==null||_0x33c407[_0x506ea4(0x19f)](),this['_socketMessageSubscription']=null;}}});}[_0x50ca80(0x28a)](){const _0x294265=_0x50ca80;var _0x40b4be,_0x2a9fe1;return(_0x40b4be=(_0x2a9fe1=this[_0x294265(0x2e9)])==null?void 0x0:_0x2a9fe1[_0x294265(0x225)])==null?null:_0x40b4be;}[_0x50ca80(0x245)](){const _0x202d79=_0x50ca80;super[_0x202d79(0x245)](),this[_0x202d79(0x111)](),this['dispose$']['next'](),this[_0x202d79(0x176)][_0x202d79(0x340)]();}[_0x50ca80(0x111)](){const _0x1f1b50=_0x50ca80;var _0x77c9d4,_0x1f4a46;this[_0x1f1b50(0x157)](),(_0x77c9d4=this[_0x1f1b50(0x2e9)])==null||_0x77c9d4['send']({'cmd':_0x1e2dc3['LEAVE'],'data':{'roomID':this[_0x1f1b50(0x195)]}}),(_0x1f4a46=this[_0x1f1b50(0x2e9)])==null||_0x1f4a46[_0x1f1b50(0x111)](),this[_0x1f1b50(0x1ee)]['complete'](),this[_0x1f1b50(0x25c)]['complete']();}[_0x50ca80(0x1dc)](_0x420969){const _0x8fa125=_0x50ca80;_0x420969[_0x8fa125(0x125)]===_0x1e2dc3[_0x8fa125(0x288)]?this['_onJoinRoomEvent'](_0x420969):_0x420969['cmd']===_0x1e2dc3[_0x8fa125(0x1b6)]&&this[_0x8fa125(0x190)](_0x420969);}[_0x50ca80(0x2e6)](_0x2192e2){const _0x1185e3=_0x50ca80;this['_sessionStatus$'][_0x1185e3(0x11f)](0x1),_0x2192e2['send']({'cmd':_0x1e2dc3[_0x1185e3(0x288)],'routeKey':this[_0x1185e3(0x195)],'routeType':'','data':{'rooms':[{'roomID':this[_0x1185e3(0x195)]}]}});}[_0x50ca80(0x17e)](_0x1a6a7c){const _0x2ea2c0=_0x50ca80;var _0x1123db;if(_0x1a6a7c[_0x2ea2c0(0x12e)]in Dt){this[_0x2ea2c0(0x286)][_0x2ea2c0(0x355)]({'id':'JOIN_ROOM_FAILED','data':Dt[_0x1a6a7c[_0x2ea2c0(0x12e)]]}),this['_sessionStatus$'][_0x2ea2c0(0x11f)](0x2);return;}this[_0x2ea2c0(0x25c)][_0x2ea2c0(0x11f)](0x3);let _0x4c776b=(_0x1123db=_0x1a6a7c['data'][_0x2ea2c0(0x117)][this[_0x2ea2c0(0x195)]])==null?void 0x0:_0x1123db[_0x2ea2c0(0x19b)];_0x4c776b&&_0x4c776b['forEach'](_0x111173=>this[_0x2ea2c0(0x1b3)][_0x2ea2c0(0x341)](this[_0x2ea2c0(0x195)],_0x111173));}[_0x50ca80(0x190)](_0x510632){const _0x266b91=_0x50ca80;try{let _0x2339e1=_0x510632[_0x266b91(0x1b8)];switch(_0x2339e1[_0x266b91(0x27c)]){case _0x3b8cc3[_0x266b91(0x29a)]:this['_onUserJoin'](_0x2339e1),this['_event$'][_0x266b91(0x11f)](_0x2339e1);break;case _0x3b8cc3[_0x266b91(0x35a)]:this[_0x266b91(0x152)](_0x2339e1),this['_event$']['next'](_0x2339e1);break;case _0x3b8cc3[_0x266b91(0x31c)]:case _0x3b8cc3[_0x266b91(0x28d)]:this[_0x266b91(0x114)](),this[_0x266b91(0x2d6)](),this['_event$'][_0x266b91(0x11f)](_0x2339e1);break;case _0x3b8cc3[_0x266b91(0x23b)]:this[_0x266b91(0x313)][_0x266b91(0x292)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x266b91(0x323)](_0x2339e1)),this['_event$'][_0x266b91(0x11f)](_0x2339e1);break;case _0x3b8cc3['COMMENT_UPDATE']:this['_commentService'][_0x266b91(0x2fa)](_0x2339e1[_0x266b91(0x1b8)]),this['_event$']['next'](_0x2339e1);break;default:this['_event$'][_0x266b91(0x11f)](_0x2339e1);}}catch(_0x531071){this[_0x266b91(0x313)][_0x266b91(0x292)](_0x531071,_0x510632);}}[_0x50ca80(0x10e)](_0x3a1a94){const _0x28e53c=_0x50ca80;this[_0x28e53c(0x1b3)][_0x28e53c(0x341)](this['_unitID'],_0x3a1a94[_0x28e53c(0x1b8)]);}[_0x50ca80(0x152)](_0x19f21e){const _0x2629d3=_0x50ca80;this[_0x2629d3(0x1b3)][_0x2629d3(0x35c)](this[_0x2629d3(0x195)],_0x19f21e[_0x2629d3(0x1b8)][_0x2629d3(0x225)]);}async[_0x50ca80(0x251)](_0x2a79c6,_0x371be2){const _0x545d77=_0x50ca80;if(this[_0x545d77(0x1f6)]!==0x3||!this[_0x545d77(0x2e9)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2a79c6[_0x545d77(0x27c)]===_0x3b8cc3['SUBMIT_CHANGESET']&&(this[_0x545d77(0x1d2)](),this[_0x545d77(0x18e)](_0x2a79c6)),this['_socket'][_0x545d77(0x251)]({'cmd':_0x1e2dc3['INGEST'],'routeKey':_0x371be2,'routeType':'','data':_0x2a79c6});}catch(_0x52db79){this['_logService'][_0x545d77(0x292)](_0x52db79);}}[_0x50ca80(0x1d2)](){const _0x23f1c9=_0x50ca80;var _0x127f59;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x110ff4=_0x3123;this[_0x110ff4(0x2e0)]=null,this[_0x110ff4(0x286)]['emitEvent']({'id':'SUBMIT_CHANGESET_TIMEOUT'});},(_0x127f59=this[_0x23f1c9(0x136)][_0x23f1c9(0x106)]('HEARTBEAT_TIMEOUT'))==null?mt:_0x127f59);}['_clearCollaborationTimeoutTimer'](){const _0x35c010=_0x50ca80;this[_0x35c010(0x2e0)]&&(clearTimeout(this[_0x35c010(0x2e0)]),this[_0x35c010(0x2e0)]=null);}['_startTelemetryCollaborationNewChangeset'](_0xa1e9cf){const _0x11626d=_0x50ca80;if(!this[_0x11626d(0x1b1)])return;let {data:_0x54a3f8}=_0xa1e9cf,{unitID:_0x3f1093,changeset:_0x163a2b}=_0x54a3f8,{mutations:_0x4bbb8f,type:_0x4c23ff}=_0x163a2b;this['_telemetryInfo']={'unitId':_0x3f1093,'type':_0x4c23ff,'startTime':performance[_0x11626d(0x217)](),'stopTime':0x0,'duration':0x0,'size':bt(_0x4bbb8f)};}[_0x50ca80(0x114)](){const _0x3fed9a=_0x50ca80;if(this[_0x3fed9a(0x1b1)]){if(!this[_0x3fed9a(0x1e0)]){this['_logService'][_0x3fed9a(0x292)](_0x3fed9a(0x318),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x3fed9a(0x1e0)][_0x3fed9a(0x1de)]=performance[_0x3fed9a(0x217)](),this[_0x3fed9a(0x1e0)][_0x3fed9a(0x14e)]=this[_0x3fed9a(0x1e0)]['stopTime']-this[_0x3fed9a(0x1e0)][_0x3fed9a(0x221)],this['_telemetryService'][_0x3fed9a(0x2ed)](_0x3fed9a(0x1a4),this[_0x3fed9a(0x1e0)]),this[_0x3fed9a(0x1e0)]=null;}}[_0x50ca80(0x157)](){const _0x35e29e=_0x50ca80;this[_0x35e29e(0x1e0)]=null;}};Ot=z([R(0x2,_0x5b7991),R(0x3,_0x25ecfe),R(0x4,_0x4bd6ab(B)),R(0x5,_0x4bd6ab(wt)),R(0x6,_0x4bd6ab(L)),R(0x7,_0x122efe(_0x3b7202))],Ot);const V=_0x3f595f(_0x50ca80(0x145));function kt(_0x49efad){const _0x328d82=_0x50ca80;return _0x328d82(0x213)+_0x49efad;}function At(_0x4af5cc){const _0x2cafdf=_0x50ca80;let {unitID:_0x58edc6,mutations:_0x515575}=_0x4af5cc;return{'unitId':_0x58edc6,'subUnitId':_0x515575['length']>0x0?_0x515575[0x0][_0x2cafdf(0x2f0)]['subUnitId']:null};}let H=class{constructor(_0x142ec4,_0x53ac30,_0x2bd1b3){const _0x1dc9a7=_0x50ca80;this[_0x1dc9a7(0x102)]=_0x142ec4,this[_0x1dc9a7(0x1a3)]=_0x53ac30,this[_0x1dc9a7(0x16b)]=_0x2bd1b3;}[_0x50ca80(0x1fb)](_0x58cc70){const _0x2c99d8=_0x50ca80;var _0x97a6df,_0x1015d6;let _0x348fc7=this[_0x2c99d8(0x102)][_0x2c99d8(0x2e5)](_0x239a68),{unitId:_0x2a5a3d,subUnitId:_0x4a6d9d}=At(_0x58cc70),_0x5db7eb=_0x348fc7==null?void 0x0:_0x348fc7[_0x2c99d8(0x2b9)](_0x2a5a3d)[_0x2c99d8(0x320)](),_0x4441c9=(_0x97a6df=this['_instanceService']['getUnit'](_0x2a5a3d))==null||(_0x97a6df=_0x97a6df[_0x2c99d8(0x281)]())==null?void 0x0:_0x97a6df[_0x2c99d8(0x23c)]();if(_0x5db7eb[_0x2c99d8(0x29f)]===0x0||!_0x2a5a3d||!_0x4a6d9d)return;let _0x1cb5e7=[{'id':_0x2b69fe['id'],'params':{'unitId':_0x2a5a3d,'subUnitId':_0x4441c9,'selections':_0x536fbb[_0x2c99d8(0x21e)](_0x5db7eb)}}],_0x32277e=this[_0x2c99d8(0x1a3)][_0x2c99d8(0x25f)](_0x58cc70,_0x1cb5e7);if(!_0xa549dc(_0x32277e))throw _0x32277e[_0x2c99d8(0x292)];let _0x16b291=(_0x1015d6=_0x32277e[_0x2c99d8(0x2bd)][0x0])==null||(_0x1015d6=_0x1015d6['params'])==null?void 0x0:_0x1015d6[_0x2c99d8(0x204)];if(Array[_0x2c99d8(0xf7)](_0x16b291)&&_0x16b291['length']){if(_0x16b291['length']===_0x1cb5e7[0x0][_0x2c99d8(0x2f0)][_0x2c99d8(0x204)][_0x2c99d8(0x29f)]&&_0x16b291[_0x2c99d8(0x27d)]((_0x21c4c4,_0x47dd82)=>_0x16707f[_0x2c99d8(0x28e)](_0x21c4c4[_0x2c99d8(0x1e4)],_0x1cb5e7[0x0][_0x2c99d8(0x2f0)][_0x2c99d8(0x204)][_0x47dd82]['range'])))return;this[_0x2c99d8(0x102)]['get'](_0x2d9981)[_0x2c99d8(0x1c5)](_0x2b69fe['id'],{'unitId':_0x2a5a3d,'subUnitId':_0x4441c9,'selections':_0x16b291});}}};H=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x1726e6),R(0x2,_0x2dad56)],H);const jt=_0x3f595f(_0x50ca80(0x205));let Mt=function(_0x534668){const _0x2609a2=_0x50ca80;return _0x534668[_0x534668[_0x2609a2(0x2a2)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x534668[_0x534668[_0x2609a2(0x227)]=0x1]=_0x2609a2(0x227),_0x534668;}({});const U='collaboration-client.config';Symbol(U);const Nt={};function Pt(_0x438fd0){var _0x172ece;return!!((_0x172ece=_0x438fd0['params'])!=null&&_0x172ece['__splitChunk__']);}const Ft=new Set([_0x1b2d6b['id']]);function It(_0x3f8d60,_0x49c8ed,_0x19b1f4,_0x40d153,_0x5178a5){const _0x5820b0=_0x50ca80;var _0x66718c,_0x26003e,_0x3feacb,_0x1293bd;let _0xa55ff9=[];for(let _0xb5b6ce of _0x3f8d60){if(Ft[_0x5820b0(0x13e)](_0xb5b6ce['id'])){if(_0xa55ff9['length']>0x0)break;_0xa55ff9[_0x5820b0(0x271)](_0xb5b6ce);break;}if(Pt(_0xb5b6ce)){if(_0xa55ff9['length']>0x0)break;_0xa55ff9[_0x5820b0(0x271)](_0xb5b6ce);break;}_0xa55ff9[_0x5820b0(0x271)](_0xb5b6ce);}let _0x3fc617=(_0x66718c=(_0x26003e=_0x5178a5[_0x5820b0(0x11a)]())==null?void 0x0:_0x26003e['userID'])==null?_0x5820b0(0x2a7):_0x66718c,_0x50120e=(_0x3feacb=(_0x1293bd=_0x5178a5['getCurrentUser']())==null?void 0x0:_0x1293bd['memberID'])==null?_0x5820b0(0x2a7):_0x3feacb;return{'changeset':{'unitID':_0x49c8ed,'type':_0x351811(_0x19b1f4[_0x5820b0(0x1d5)](_0x49c8ed)),'baseRev':_0x40d153[_0x5820b0(0x15a)](_0x49c8ed),'revision':0x0,'userID':_0x3fc617,'memberID':_0x50120e,'mutations':_0xa55ff9},'pendingMutations':_0x3f8d60[_0x5820b0(0x29c)](_0xa55ff9[_0x5820b0(0x29f)])};}function Lt(_0x4e7df5,_0x3ceb3e,_0x166bf0,_0x42fa21,_0x1d9511){const _0x23481c=_0x50ca80;var _0x17e9c6,_0x395788,_0x26708c,_0x3e540d;let _0x175170=[_0x4e7df5[_0x23481c(0xec)]((_0x44dd98,_0x539b77)=>{const _0x533fd8=_0x23481c;var _0x349c8b;let {id:_0x47e701}=_0x44dd98,{id:_0x3475b2,type:_0x987118}=_0x539b77,_0x2333c5=(_0x349c8b=_0x44dd98[_0x533fd8(0x2f0)])==null?{'actions':null}:_0x349c8b,_0x1edf9c=_0x539b77[_0x533fd8(0x2f0)];if(_0x47e701&&_0x47e701!==_0x3475b2)throw Error(_0x533fd8(0x332)+_0x47e701+_0x533fd8(0x1f4)+_0x3475b2+'.');return{..._0x44dd98,'id':_0x3475b2,'type':_0x987118,'params':{'unitId':_0x1edf9c[_0x533fd8(0x263)],'textRanges':_0x1edf9c[_0x533fd8(0x14d)],'actions':_0x385314[_0x533fd8(0xf8)](_0x2333c5[_0x533fd8(0x208)],_0x1edf9c[_0x533fd8(0x208)])}};},{})],_0x26ec07=(_0x17e9c6=(_0x395788=_0x1d9511[_0x23481c(0x11a)]())==null?void 0x0:_0x395788[_0x23481c(0x105)])==null?'unknown':_0x17e9c6,_0x1e4196=(_0x26708c=(_0x3e540d=_0x1d9511[_0x23481c(0x11a)]())==null?void 0x0:_0x3e540d[_0x23481c(0x225)])==null?_0x23481c(0x2a7):_0x26708c;return{'changeset':{'unitID':_0x3ceb3e,'type':_0x351811(_0x166bf0['getUnitType'](_0x3ceb3e)),'baseRev':_0x42fa21['getCurrentRevOfUnit'](_0x3ceb3e),'revision':0x0,'userID':_0x26ec07,'memberID':_0x1e4196,'mutations':_0x175170},'pendingMutations':[]};}function Rt(_0x390eb1,_0x313584){const _0x1d0364=_0x50ca80;let _0x569eaa=new _0x3b3840(0x1);return setTimeout(()=>_0x569eaa['next'](_0x313584),_0x390eb1),_0x569eaa[_0x1d0364(0x1d3)]()['pipe'](_0x42a5ba(0x1));}var zt,Bt,Vt;let Ht=function(_0x4e91c0){const _0x14d72f=_0x50ca80;return _0x4e91c0[_0x14d72f(0x2b7)]=_0x14d72f(0x2b6),_0x4e91c0[_0x14d72f(0x20e)]=_0x14d72f(0x255),_0x4e91c0['PENDING']=_0x14d72f(0x14f),_0x4e91c0[_0x14d72f(0x1a0)]=_0x14d72f(0x330),_0x4e91c0[_0x14d72f(0xeb)]=_0x14d72f(0x2a4),_0x4e91c0[_0x14d72f(0x2b2)]=_0x14d72f(0x1ea),_0x4e91c0[_0x14d72f(0x1ba)]=_0x14d72f(0x321),_0x4e91c0[_0x14d72f(0x203)]=_0x14d72f(0x1a2),_0x4e91c0;}({});const Ut=0x4e20,Wt=0x2bf20;var W=class{constructor(_0x149756,_0x41314f,_0x570591,_0x782c34,_0x495dcd,_0x579c48,_0x47242b,_0x139b93,_0x401129){const _0x4af31f=_0x50ca80;this['unitID']=_0x149756,this[_0x4af31f(0x2e3)]=_0x41314f,this[_0x4af31f(0x328)]=_0x495dcd,this['_commandService']=_0x579c48,this[_0x4af31f(0x2a0)]=_0x47242b,this[_0x4af31f(0x33d)]=_0x139b93,this['_localCacheService']=_0x401129,I(this,'_awaitingChangeset',null),I(this,_0x4af31f(0x1fa),[]),this[_0x4af31f(0x1f0)]=_0x570591,this[_0x4af31f(0x1fa)]=_0x782c34;}[_0x50ca80(0x31f)](_0x54c480){const _0x294bd9=_0x50ca80;let _0xf9c1e=this[_0x294bd9(0x33d)][_0x294bd9(0x15a)](this[_0x294bd9(0x247)]);return _0x54c480[_0x294bd9(0x133)]>_0xf9c1e+0x1?(this[_0x294bd9(0x328)][_0x294bd9(0x183)]({'from':_0xf9c1e,'to':_0x54c480[_0x294bd9(0x133)]-0x1}),!0x0):!0x1;}[_0x50ca80(0x279)](_0x25adf3){const _0x8bb3c0=_0x50ca80;this[_0x8bb3c0(0x2a0)][_0x8bb3c0(0x294)](this[_0x8bb3c0(0x247)],_0x25adf3);}[_0x50ca80(0x2cc)](_0x299f5c){const _0x135bdb=_0x50ca80;var _0x9f8ba,_0x28feb5;(_0x9f8ba=(_0x28feb5=this[_0x135bdb(0x328)])[_0x135bdb(0x17c)])==null||_0x9f8ba[_0x135bdb(0x2c2)](_0x28feb5,_0x299f5c);}[_0x50ca80(0x2c3)](_0x2be5b8){const _0x252db4=_0x50ca80;var _0x1a7949,_0x4aabb6;return(_0x1a7949=(_0x4aabb6=this[_0x252db4(0x328)])[_0x252db4(0x1c8)])==null?void 0x0:_0x1a7949[_0x252db4(0x2c2)](_0x4aabb6,_0x2be5b8);}[_0x50ca80(0x2bb)](_0x4e0fd8){const _0x22e6e8=_0x50ca80;var _0x1786a8,_0x4b8f11;return(_0x1786a8=(_0x4b8f11=this[_0x22e6e8(0x328)])[_0x22e6e8(0x1b7)])==null?void 0x0:_0x1786a8[_0x22e6e8(0x2c2)](_0x4b8f11,_0x4e0fd8);}[_0x50ca80(0x1f2)](_0x54c79e){const _0xf81842=_0x50ca80;var _0x486251,_0x5ac671,_0x80e864;return(_0x486251=(_0x5ac671=(_0x80e864=this[_0xf81842(0x328)])[_0xf81842(0x250)])==null?void 0x0:_0x5ac671[_0xf81842(0x2c2)](_0x80e864,_0x54c79e))==null?_0x54c79e:_0x486251;}['_transformRemoteChangesetByStateCache'](_0x29f3ff){var _0x53ea62,_0x374c8c,_0xbc9064;return(_0x53ea62=(_0x374c8c=(_0xbc9064=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x374c8c['call'](_0xbc9064,_0x29f3ff))==null?_0x29f3ff:_0x53ea62;}[_0x50ca80(0x34b)](_0x46a81e){const _0x523d48=_0x50ca80;if(this[_0x523d48(0x2e3)]===_0x261bc8[_0x523d48(0x258)]){let {unitID:_0x3fb7ba,mutations:_0x2c3f7f,memberID:_0x29e541}=_0x46a81e,_0x5b724c=_0x2c3f7f[_0x523d48(0x29f)]>0x0?_0x2c3f7f[0x0][_0x523d48(0x2f0)][_0x523d48(0x14d)]:[];if(Array[_0x523d48(0xf7)](_0x5b724c)&&_0x5b724c[_0x523d48(0x29f)]>0x0){var _0x4b010d,_0x32001f;(_0x4b010d=(_0x32001f=this[_0x523d48(0x328)])[_0x523d48(0x30e)])==null||_0x4b010d[_0x523d48(0x2c2)](_0x32001f,{'unitID':_0x3fb7ba,'memberID':_0x29e541,'textRanges':_0x5b724c});}}}[_0x50ca80(0x222)](){const _0x30a341=_0x50ca80;var _0x28ff7e;(_0x28ff7e=this[_0x30a341(0x1f5)])==null||_0x28ff7e[_0x30a341(0x350)](this[_0x30a341(0x247)],this['type'],this['_awaitingChangeset'],this[_0x30a341(0x1fa)]);}['_getCurrentRevision'](){const _0x38b7da=_0x50ca80;return this[_0x38b7da(0x33d)][_0x38b7da(0x15a)](this[_0x38b7da(0x247)]);}[_0x50ca80(0x15d)](){const _0x3f1ef6=_0x50ca80;this['_revisionService'][_0x3f1ef6(0x277)](this['unitID']);}['_executeRemoteChangeset'](_0x38e47a){const _0x13cfb5=_0x50ca80;let _0x25e8f9=this[_0x13cfb5(0x1f2)](_0x38e47a);_0x25e8f9=this[_0x13cfb5(0xfd)](_0x25e8f9);let _0x19382f=_0x1d2185(_0x25e8f9[_0x13cfb5(0x301)],this[_0x13cfb5(0x1ce)],{'fromCollab':!0x0});if(!_0x19382f[_0x13cfb5(0x18a)]){var _0x55e2f6;throw _0x19382f[_0x13cfb5(0x292)]instanceof Error?_0x19382f[_0x13cfb5(0x292)]:Error((_0x55e2f6=_0x19382f[_0x13cfb5(0x292)])==null?_0x13cfb5(0x238):_0x55e2f6);}this[_0x13cfb5(0x2c3)](_0x25e8f9),this[_0x13cfb5(0x2bb)](_0x25e8f9),this[_0x13cfb5(0x279)](_0x38e47a),this[_0x13cfb5(0x2cc)](_0x25e8f9),this[_0x13cfb5(0x34b)](_0x25e8f9),this[_0x13cfb5(0x15d)]();}};let G=class extends W{constructor(_0x4ac7ae,_0x598471,_0x15ed1b,_0x1338e0,_0x30d0e9,_0x1b11be,_0x1ce489,_0x46f9d9,_0x3aa93c,_0x19402a){const _0x2ac3a4=_0x50ca80;super(_0x4ac7ae,_0x598471,null,[],_0x15ed1b,_0x1ce489,_0x1b11be,_0x1338e0,_0x19402a),this[_0x2ac3a4(0x102)]=_0x30d0e9,this[_0x2ac3a4(0x313)]=_0x46f9d9,this['_transformService']=_0x3aa93c,this[_0x2ac3a4(0x22d)]=_0x19402a,I(this,'status',_0x2ac3a4(0x255));}['appendMutation'](_0x31d3da){const _0x3ae587=_0x50ca80;let _0x4b9424=this[_0x3ae587(0x102)]['createInstance'](K,this[_0x3ae587(0x247)],this[_0x3ae587(0x2e3)],[_0x31d3da],this[_0x3ae587(0x328)]);return _0x4b9424[_0x3ae587(0x1ac)](),_0x4b9424[_0x3ae587(0x222)](),_0x4b9424;}[_0x50ca80(0x169)](_0x56b605){const _0x9abe39=_0x50ca80;if(this['_checkMissing'](_0x56b605))return this[_0x9abe39(0x102)][_0x9abe39(0x25a)](Z,this[_0x9abe39(0x247)],this[_0x9abe39(0x2e3)],null,[],null,[_0x56b605],this[_0x9abe39(0x328)]);try{let _0x149f1d=this['_transformService'][_0x9abe39(0x25f)](_0x56b605,[_0x43243e]);if(_0xa549dc(_0x149f1d)){let {c1Prime:_0x3c37a2}=_0x149f1d;return this[_0x9abe39(0x2e4)](_0x3c37a2),this;}throw _0x149f1d['error'];}catch(_0x359c61){return this[_0x9abe39(0x313)][_0x9abe39(0x292)](_0x359c61),this[_0x9abe39(0x185)](!0x1);}}[_0x50ca80(0x185)](_0x13e005){const _0x23ee1b=_0x50ca80;return this['_injector'][_0x23ee1b(0x25a)](Y,this[_0x23ee1b(0x247)],this[_0x23ee1b(0x2e3)],null,[],this['_handler'],_0x13e005);}[_0x50ca80(0x32a)](_0x20d607){const _0x3cac27=_0x50ca80;if(_0x20d607[_0x3cac27(0x133)]<=this['_getCurrentRevision']())return this;throw Error(_0x3cac27(0x311));}['onRemoteRej'](){const _0x3a1901=_0x50ca80;throw Error(_0x3a1901(0x20b));}[_0x50ca80(0x2d9)](){return this;}[_0x50ca80(0x2ba)](){const _0x3daa99=_0x50ca80;return this[_0x3daa99(0x102)][_0x3daa99(0x25a)](X,this[_0x3daa99(0x247)],this['type'],null,[],this[_0x3daa99(0x328)]);}['toggleOnline'](){return this;}[_0x50ca80(0x298)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x50ca80(0x13d)](){const _0x3935fa=_0x50ca80;let _0x536d37=this[_0x3935fa(0x33d)][_0x3935fa(0x15a)](this['unitID']);return this['_handler'][_0x3935fa(0x183)]({'from':_0x536d37,'to':0x0}),this['_injector'][_0x3935fa(0x25a)](Z,this[_0x3935fa(0x247)],this[_0x3935fa(0x2e3)],null,[],null,[],this[_0x3935fa(0x328)]);}};G=z([R(0x3,_0x4bd6ab(_0x4565f5)),R(0x4,_0x4bd6ab(_0x280033)),R(0x5,_0x16c6c1),R(0x6,_0x2d9981),R(0x7,_0x5b7991),R(0x8,_0x1726e6),R(0x9,_0x122efe(V))],G);let K=zt=class extends W{constructor(_0x4b6d71,_0x34782c,_0x41425b,_0x87e31e,_0x183df6,_0x3f81fd,_0x13c508,_0x4f3be9,_0x41de11,_0x3f16bb,_0x1559a7,_0x5bdc7f,_0x146045,_0x186406){const _0x309a34=_0x50ca80;super(_0x4b6d71,_0x34782c,null,_0x41425b,_0x87e31e,_0x41de11,_0x146045,_0x3f81fd,_0x186406),this[_0x309a34(0x102)]=_0x183df6,this[_0x309a34(0x1b3)]=_0x13c508,this[_0x309a34(0x313)]=_0x4f3be9,this[_0x309a34(0x136)]=_0x3f16bb,this['_transformService']=_0x1559a7,this[_0x309a34(0x257)]=_0x5bdc7f,I(this,'status',_0x309a34(0x14f)),I(this,_0x309a34(0x209),null),I(this,_0x309a34(0x35e),null);}[_0x50ca80(0x26f)](_0x595ad){const _0x3c18bc=_0x50ca80;return this['_pendingMutations'][_0x3c18bc(0x271)](_0x595ad),this[_0x3c18bc(0x222)](),this;}[_0x50ca80(0x169)](_0x5e0a3b){const _0x3dabfb=_0x50ca80;if(this[_0x3dabfb(0x31f)](_0x5e0a3b))return this[_0x3dabfb(0xfb)](),this[_0x3dabfb(0x102)]['createInstance'](Z,this['unitID'],this[_0x3dabfb(0x2e3)],null,this['_pendingMutations'],null,[_0x5e0a3b],this[_0x3dabfb(0x328)]);try{let _0x55199e=this['_transformService'][_0x3dabfb(0x25f)](_0x5e0a3b,this['_pendingMutations']);if(_0xa549dc(_0x55199e)){let {c1Prime:_0x3e9791,m2Prime:_0x106615}=_0x55199e;this[_0x3dabfb(0x2e4)](_0x3e9791);let _0x503b23=this[_0x3dabfb(0x102)]['createInstance'](zt,this['unitID'],this[_0x3dabfb(0x2e3)],_0x106615,this[_0x3dabfb(0x328)]);this[_0x3dabfb(0xfb)]();let _0x551ff8=new Date()[_0x3dabfb(0x356)](),_0x3efb49=this[_0x3dabfb(0x209)]?Math[_0x3dabfb(0x280)](this['_scheduleCompleteTimestamp']-_0x551ff8,0x0):this[_0x3dabfb(0x212)]();return _0x503b23[_0x3dabfb(0x1ac)](_0x3efb49),_0x503b23;}throw _0x55199e[_0x3dabfb(0x292)];}catch(_0x381e2b){return this['_logService'][_0x3dabfb(0x292)](_0x381e2b),this[_0x3dabfb(0x185)](!0x1);}}['onRemoteAck'](_0x40b20c){const _0x24d721=_0x50ca80;if(_0x40b20c[_0x24d721(0x133)]<=this['_getCurrentRevision']())return this;throw Error(_0x24d721(0x2b8));}[_0x50ca80(0x1d8)](){const _0x103ad6=_0x50ca80;throw Error(_0x103ad6(0x20d));}[_0x50ca80(0x2d9)](){return this;}[_0x50ca80(0x2ba)](){const _0x4c2f7d=_0x50ca80;return this['_clearScheduledTask'](),this[_0x4c2f7d(0x102)]['createInstance'](X,this[_0x4c2f7d(0x247)],this[_0x4c2f7d(0x2e3)],null,this[_0x4c2f7d(0x1fa)],this['_handler']);}[_0x50ca80(0x1df)](){return this;}['_schedule'](_0x7a663){const _0x2b1197=_0x50ca80;let _0x4c4e11=_0x7a663==null?this[_0x2b1197(0x212)]():_0x7a663;this[_0x2b1197(0x209)]=new Date()[_0x2b1197(0x356)]()+_0x4c4e11,this['_sendingTimer']=setTimeout(()=>{const _0x56312c=_0x2b1197;this[_0x56312c(0xfb)]();let _0x2c5564=null;switch(this[_0x56312c(0x2e3)]){case _0x261bc8[_0x56312c(0x144)]:_0x2c5564=It(this[_0x56312c(0x1fa)],this[_0x56312c(0x247)],this[_0x56312c(0x257)],this[_0x56312c(0x33d)],this['_memberService']);break;case _0x261bc8[_0x56312c(0x258)]:_0x2c5564=this[_0x56312c(0x1fa)][_0x56312c(0x27d)](_0x1311ee=>_0x1311ee['id']===_0x4add4c['id'])?Lt(this[_0x56312c(0x1fa)],this[_0x56312c(0x247)],this[_0x56312c(0x257)],this['_revisionService'],this['_memberService']):It(this['_pendingMutations'],this['unitID'],this[_0x56312c(0x257)],this[_0x56312c(0x33d)],this['_memberService']);break;default:throw Error(_0x56312c(0x149)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x382a19,pendingMutations:_0x2e2728}=_0x2c5564;this[_0x56312c(0x328)][_0x56312c(0x200)](_0x382a19);let _0x460ffa=_0x2e2728[_0x56312c(0x29f)]?this[_0x56312c(0x102)][_0x56312c(0x25a)](J,this[_0x56312c(0x247)],this['type'],_0x382a19,_0x2e2728,this['_handler'],void 0x0):this[_0x56312c(0x102)][_0x56312c(0x25a)](q,this['unitID'],this['type'],_0x382a19,this[_0x56312c(0x328)]);_0x460ffa[_0x56312c(0x222)](),this[_0x56312c(0x328)]['onStateChange'](this,_0x460ffa);},_0x4c4e11);}['_getSendChangesetTimeout'](){const _0x5b0455=_0x50ca80;var _0x3064da;let _0x3bdaa6=this[_0x5b0455(0x136)]['getConfig'](U);return(_0x3064da=_0x3bdaa6==null?void 0x0:_0x3bdaa6['sendChangesetTimeout'])==null?0x7d0:_0x3064da;}[_0x50ca80(0x298)](){const _0x528d25=_0x50ca80;throw Error(_0x528d25(0x1e8));}['_clearScheduledTask'](){const _0x5c4299=_0x50ca80;this[_0x5c4299(0x35e)]!=null&&(clearTimeout(this[_0x5c4299(0x35e)]),this['_sendingTimer']=null);}['_onConflict'](_0x424e5b){const _0x24a586=_0x50ca80;return this[_0x24a586(0xfb)](),this[_0x24a586(0x102)][_0x24a586(0x25a)](Y,this[_0x24a586(0x247)],this[_0x24a586(0x2e3)],null,this[_0x24a586(0x1fa)],this[_0x24a586(0x328)],_0x424e5b);}};K=zt=z([R(0x4,_0x4bd6ab(_0x280033)),R(0x5,_0x4bd6ab(_0x4565f5)),R(0x6,_0x4bd6ab(B)),R(0x7,_0x5b7991),R(0x8,_0x2d9981),R(0x9,_0x25ecfe),R(0xa,_0x1726e6),R(0xb,_0x2dad56),R(0xc,_0x16c6c1),R(0xd,_0x122efe(V))],K);let q=Bt=class extends W{constructor(_0xd2eb13,_0x1c2e9c,_0x260c98,_0x85816b,_0x5af78b,_0x2e6c6f,_0x2145d8,_0x33d97e,_0x132685,_0x4ef044,_0x5ad294){const _0x39fdc4=_0x50ca80;super(_0xd2eb13,_0x1c2e9c,_0x260c98,[],_0x85816b,_0x2145d8,_0x4ef044,_0x2e6c6f,_0x5ad294),this[_0x39fdc4(0x102)]=_0x5af78b,this[_0x39fdc4(0x313)]=_0x33d97e,this[_0x39fdc4(0x1a3)]=_0x132685,I(this,_0x39fdc4(0x1a6),_0x39fdc4(0x330)),I(this,_0x39fdc4(0x2eb),0x0),I(this,_0x39fdc4(0x265),0x0),I(this,_0x39fdc4(0x309),void 0x0),I(this,'_sender',void 0x0);}['appendMutation'](_0x1a8dc5){const _0x3a786e=_0x50ca80;this[_0x3a786e(0xfb)]();let _0x146457=this[_0x3a786e(0x102)][_0x3a786e(0x25a)](J,this['unitID'],this[_0x3a786e(0x2e3)],this[_0x3a786e(0x1f0)],[_0x1a8dc5],this[_0x3a786e(0x328)],this[_0x3a786e(0x309)]);return _0x146457['_updateLocalCache'](),_0x146457;}['onRemoteChangeset'](_0x4eb728){const _0x380d9d=_0x50ca80;if(this[_0x380d9d(0x31f)](_0x4eb728))return this[_0x380d9d(0xfb)](),this['_injector'][_0x380d9d(0x25a)](Z,this['unitID'],this[_0x380d9d(0x2e3)],this[_0x380d9d(0x1f0)],[],null,[_0x4eb728],this[_0x380d9d(0x328)]);try{let _0x3e9eb0=this['_transformService']['transformChangesets']([_0x4eb728],[this['_awaitingChangeset']],!0x1);if(_0x3fa49e(_0x3e9eb0)){let {c1Prime:_0x1395d9,c2Prime:_0x38db50}=_0x3e9eb0;this[_0x380d9d(0x2e4)](_0x1395d9[0x0]),_0x38db50[0x0][_0x380d9d(0x26e)]=this[_0x380d9d(0x2ec)](),this[_0x380d9d(0xfb)]();let _0x464f6f=this['_injector'][_0x380d9d(0x25a)](Bt,this['unitID'],this[_0x380d9d(0x2e3)],_0x38db50[0x0],this['_handler']);return _0x464f6f['_updateLocalCache'](),_0x464f6f;}throw _0x3e9eb0[_0x380d9d(0x292)];}catch(_0xff2cd8){return this[_0x380d9d(0x313)][_0x380d9d(0x292)](_0xff2cd8),this[_0x380d9d(0x185)](!0x1);}}[_0x50ca80(0x32a)](_0x4e7a70){const _0x2e600c=_0x50ca80;this[_0x2e600c(0xfb)]();let _0x4a8451=this[_0x2e600c(0x33d)]['getCurrentRevOfUnit'](this['unitID']);if(_0x4e7a70[_0x2e600c(0x133)]<=_0x4a8451)return this;if(this[_0x2e600c(0x31f)](_0x4e7a70))return this[_0x2e600c(0x102)][_0x2e600c(0x25a)](Z,this[_0x2e600c(0x247)],this['type'],this[_0x2e600c(0x1f0)],[],_0x4e7a70['revision'],[],this[_0x2e600c(0x328)]);this[_0x2e600c(0x15d)]();let _0x23b50f=this[_0x2e600c(0x102)][_0x2e600c(0x25a)](G,this['unitID'],this[_0x2e600c(0x2e3)],this[_0x2e600c(0x328)]);return _0x23b50f[_0x2e600c(0x222)](),_0x23b50f;}['onRemoteRej'](_0x253cf6){const _0x483aee=_0x50ca80;return this[_0x483aee(0x185)](!!(_0x253cf6!=null&&_0x253cf6[_0x483aee(0x134)]));}['onRemoteRetry'](_0x2b38de){const _0x135c4b=_0x50ca80;return this[_0x135c4b(0x265)]>Wt?this[_0x135c4b(0x2ba)]():(this[_0x135c4b(0x309)]=Rt(this[_0x135c4b(0x2eb)],{'timeout':this[_0x135c4b(0x2eb)],'reqId':_0x2b38de['reqId']}),this[_0x135c4b(0xfc)]=this[_0x135c4b(0x309)][_0x135c4b(0x1fe)](({reqId:_0xae33cc,timeout:_0x34c96e})=>{const _0x5242c7=_0x135c4b;this[_0x5242c7(0x326)](_0xae33cc,_0x34c96e);}),this);}[_0x50ca80(0x2ba)](){const _0x733dc7=_0x50ca80;return this[_0x733dc7(0xfb)](),this[_0x733dc7(0x102)][_0x733dc7(0x25a)](X,this['unitID'],this[_0x733dc7(0x2e3)],this[_0x733dc7(0x1f0)],[],this['_handler']);}[_0x50ca80(0x1df)](){return this;}['resend'](){const _0x30947e=_0x50ca80;this[_0x30947e(0x328)][_0x30947e(0x200)](this[_0x30947e(0x1f0)]);}[_0x50ca80(0x185)](_0xf3a9d4){const _0x5c7db8=_0x50ca80;return this['_clearScheduledTask'](),this[_0x5c7db8(0x102)]['createInstance'](Y,this[_0x5c7db8(0x247)],this['type'],this[_0x5c7db8(0x1f0)],[],this[_0x5c7db8(0x328)],_0xf3a9d4);}[_0x50ca80(0x326)](_0x5b92bc,_0x241e1a){const _0x389712=_0x50ca80;var _0x19a5d6;_0x5b92bc===((_0x19a5d6=this[_0x389712(0x1f0)])==null?void 0x0:_0x19a5d6[_0x389712(0x2b5)])&&(this[_0x389712(0x298)](),this[_0x389712(0x2eb)]=_0x241e1a===0x0?0x3e8:Math[_0x389712(0x14b)](_0x241e1a*0x2,Ut),this[_0x389712(0x265)]+=this[_0x389712(0x2eb)]);}[_0x50ca80(0xfb)](){const _0x52bc95=_0x50ca80;var _0x444dce;(_0x444dce=this[_0x52bc95(0xfc)])==null||_0x444dce[_0x52bc95(0x19f)](),this['_resendTimeout']=0x0,this[_0x52bc95(0x265)]=0x0;}};q=Bt=z([R(0x4,_0x4bd6ab(_0x280033)),R(0x5,_0x4bd6ab(_0x4565f5)),R(0x6,_0x2d9981),R(0x7,_0x5b7991),R(0x8,_0x1726e6),R(0x9,_0x16c6c1),R(0xa,_0x122efe(V))],q);let J=Vt=class extends W{constructor(_0xede22a,_0x1eb85c,_0x15cd14,_0x523483,_0x31009c,_0x1d0b31,_0x50e548,_0x45ef62,_0x4b5aec,_0x50ebb5,_0x2b950e,_0x998d08,_0x46fce7){const _0x1cb776=_0x50ca80;super(_0xede22a,_0x1eb85c,_0x15cd14,_0x523483,_0x31009c,_0x4b5aec,_0x998d08,_0x45ef62,_0x46fce7),this['_injector']=_0x50e548,this[_0x1cb776(0x313)]=_0x50ebb5,this[_0x1cb776(0x1a3)]=_0x2b950e,this[_0x1cb776(0x22d)]=_0x46fce7,I(this,'status',_0x1cb776(0x2a4)),I(this,_0x1cb776(0x2eb),0x0),I(this,_0x1cb776(0x265),0x0),I(this,_0x1cb776(0x309),void 0x0),I(this,_0x1cb776(0xfc),void 0x0),_0x1d0b31&&(this[_0x1cb776(0x309)]=_0x1d0b31,this[_0x1cb776(0xfc)]=this['_resendTimer'][_0x1cb776(0x1fe)](({reqId:_0x247730,timeout:_0x593409})=>{const _0x51ed14=_0x1cb776;this[_0x51ed14(0x326)](_0x247730,_0x593409);}));}['appendMutation'](_0x2259d1){const _0x6e6fc8=_0x50ca80;return this[_0x6e6fc8(0x1fa)]['push'](_0x2259d1),this;}[_0x50ca80(0x169)](_0x424376){const _0x3d5ef5=_0x50ca80;if(this[_0x3d5ef5(0x31f)](_0x424376))return this[_0x3d5ef5(0xfb)](),this['_injector'][_0x3d5ef5(0x25a)](Z,this[_0x3d5ef5(0x247)],this[_0x3d5ef5(0x2e3)],this[_0x3d5ef5(0x1f0)],this[_0x3d5ef5(0x1fa)],null,[_0x424376],this['_handler']);try{let _0x189568=this[_0x3d5ef5(0x1a3)]['transformChangesets']([_0x424376],[this[_0x3d5ef5(0x1f0)]],!0x1);if(_0x3fa49e(_0x189568)){let {c1Prime:_0x49a953,c2Prime:_0x36faf8}=_0x189568,_0x1e1c9a=this['_transformService'][_0x3d5ef5(0x25f)](_0x49a953[0x0],this[_0x3d5ef5(0x1fa)]);if(_0xa549dc(_0x1e1c9a)){let {c1Prime:_0x38e4da,m2Prime:_0x50e7e0}=_0x1e1c9a;return this[_0x3d5ef5(0x2e4)](_0x38e4da),_0x36faf8[0x0][_0x3d5ef5(0x26e)]=this['_getCurrentRevision'](),this[_0x3d5ef5(0xfb)](),this['_injector'][_0x3d5ef5(0x25a)](Vt,this[_0x3d5ef5(0x247)],this['type'],_0x36faf8[0x0],_0x50e7e0,this[_0x3d5ef5(0x328)],void 0x0);}throw _0x1e1c9a[_0x3d5ef5(0x292)];}throw _0x189568[_0x3d5ef5(0x292)];}catch(_0x2af00e){return this[_0x3d5ef5(0x313)][_0x3d5ef5(0x292)](_0x2af00e),this['_onConflict'](!0x1);}}[_0x50ca80(0x32a)](_0x32632a){const _0x177db4=_0x50ca80;this[_0x177db4(0xfb)]();let _0x286309=this[_0x177db4(0x2ec)]();if(_0x32632a[_0x177db4(0x133)]<=_0x286309)return this;if(this[_0x177db4(0x31f)](_0x32632a))return this['_injector'][_0x177db4(0x25a)](Z,this['unitID'],this['type'],this[_0x177db4(0x1f0)],this[_0x177db4(0x1fa)],_0x32632a[_0x177db4(0x133)],[],this[_0x177db4(0x328)]);this['_incrementRevisionNumber']();let _0x3729b0=this[_0x177db4(0x102)][_0x177db4(0x25a)](K,this[_0x177db4(0x247)],this[_0x177db4(0x2e3)],this[_0x177db4(0x1fa)],this[_0x177db4(0x328)]);return _0x3729b0[_0x177db4(0x1ac)](),_0x3729b0[_0x177db4(0x222)](),_0x3729b0;}['onRemoteRej'](_0x17276d){const _0x4de36b=_0x50ca80;return this[_0x4de36b(0x185)](!!(_0x17276d!=null&&_0x17276d[_0x4de36b(0x134)]));}[_0x50ca80(0x2d9)](_0x3587fa){const _0x48c372=_0x50ca80;return this[_0x48c372(0x265)]>Wt?this[_0x48c372(0x2ba)]():(this[_0x48c372(0x309)]=Rt(this[_0x48c372(0x2eb)],{'timeout':this[_0x48c372(0x2eb)],'reqId':_0x3587fa[_0x48c372(0x2b5)]}),this[_0x48c372(0xfc)]=this[_0x48c372(0x309)][_0x48c372(0x1fe)](({reqId:_0x50aa50,timeout:_0x3d4b93})=>{const _0x12dfc4=_0x48c372;this[_0x12dfc4(0x326)](_0x50aa50,_0x3d4b93);}),this);}[_0x50ca80(0x2ba)](){const _0x35c839=_0x50ca80;return this[_0x35c839(0xfb)](),this[_0x35c839(0x102)][_0x35c839(0x25a)](X,this['unitID'],this[_0x35c839(0x2e3)],this[_0x35c839(0x1f0)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}[_0x50ca80(0x298)](){const _0x535cdf=_0x50ca80;this[_0x535cdf(0x328)][_0x535cdf(0x200)](this[_0x535cdf(0x1f0)]);}[_0x50ca80(0x185)](_0x484a6e){const _0x25c5ac=_0x50ca80;return this[_0x25c5ac(0xfb)](),this[_0x25c5ac(0x102)][_0x25c5ac(0x25a)](Y,this[_0x25c5ac(0x247)],this[_0x25c5ac(0x2e3)],null,this[_0x25c5ac(0x1fa)],this[_0x25c5ac(0x328)],_0x484a6e);}['_resendWithTimeout'](_0x479950,_0x59ef15){const _0x3ef13b=_0x50ca80;var _0x1c22aa;_0x479950===((_0x1c22aa=this['_awaitingChangeset'])==null?void 0x0:_0x1c22aa[_0x3ef13b(0x2b5)])&&(this[_0x3ef13b(0x298)](),this[_0x3ef13b(0x2eb)]=_0x59ef15===0x0?0x3e8:Math[_0x3ef13b(0x14b)](_0x59ef15*0x2,Ut),this[_0x3ef13b(0x265)]+=this['_resendTimeout']);}['_clearScheduledTask'](){const _0x59fb55=_0x50ca80;var _0x3db71d;(_0x3db71d=this[_0x59fb55(0xfc)])==null||_0x3db71d[_0x59fb55(0x19f)](),this[_0x59fb55(0x2eb)]=0x0,this[_0x59fb55(0x265)]=0x0;}};J=Vt=z([R(0x6,_0x4bd6ab(_0x280033)),R(0x7,_0x4bd6ab(_0x4565f5)),R(0x8,_0x2d9981),R(0x9,_0x5b7991),R(0xa,_0x1726e6),R(0xb,_0x16c6c1),R(0xc,_0x122efe(V))],J);let Y=class extends W{constructor(_0x55bf3b,_0x53ea02,_0x53f761,_0x1146ee,_0xd28ffb,_0x41c137=!0x1,_0x45fe32,_0x49e1d,_0x18477b,_0x390a75,_0x5697e3,_0x4b07b5,_0x4d9e02){const _0x3b4601=_0x50ca80;super(_0x55bf3b,_0x53ea02,_0x53f761,_0x1146ee,_0xd28ffb,_0x49e1d,_0x18477b,_0x390a75,_0x4d9e02),this['_isPermissionRej']=_0x41c137,this[_0x3b4601(0x187)]=_0x45fe32,this[_0x3b4601(0x182)]=_0x5697e3,this[_0x3b4601(0x286)]=_0x4b07b5,this[_0x3b4601(0x22d)]=_0x4d9e02,I(this,_0x3b4601(0x1a6),_0x3b4601(0x321)),this[_0x3b4601(0x2ff)](),this[_0x3b4601(0x17a)](),this[_0x3b4601(0x305)]();}[_0x50ca80(0x26f)](){return this;}[_0x50ca80(0x169)](){return this;}['onRemoteAck'](){return this;}[_0x50ca80(0x1d8)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x50ca80(0x1df)](){return this;}[_0x50ca80(0x298)](){const _0xca88c5=_0x50ca80;throw Error(_0xca88c5(0x2fe));}[_0x50ca80(0x17a)](){const _0x1c5efb=_0x50ca80;var _0x1e42be;(_0x1e42be=this[_0x1c5efb(0x1f5)])==null||_0x1e42be[_0x1c5efb(0x350)](this[_0x1c5efb(0x247)],this[_0x1c5efb(0x2e3)],null,[]);}[_0x50ca80(0x2ff)](){const _0x44c38b=_0x50ca80;this[_0x44c38b(0x18f)]?this[_0x44c38b(0x286)][_0x44c38b(0x355)]({'id':_0x44c38b(0x165)}):this['_collaborationUIEventService'][_0x44c38b(0x355)]({'id':_0x44c38b(0x1ba)});}['_disableEditing'](){const _0x4bd12c=_0x50ca80;this[_0x4bd12c(0x187)]['updatePermissionPoint'](new _0x2c6ff9(this['unitID'])['id'],!0x1);}};Y=z([R(0x6,_0x4bd6ab(_0x393a1b)),R(0x7,_0x2d9981),R(0x8,_0x16c6c1),R(0x9,_0x4bd6ab(_0x4565f5)),R(0xa,_0x4bd6ab(_0x4d3fc2)),R(0xb,_0x4bd6ab(L)),R(0xc,_0x122efe(V))],Y);let X=class extends W{constructor(_0x467503,_0x18dc57,_0x4f2c9b,_0x16788e,_0x20c510,_0x50977d,_0x3acea0,_0x31e51a,_0xc91da7,_0x4127f2){const _0x402f9f=_0x50ca80;super(_0x467503,_0x18dc57,_0x4f2c9b,_0x16788e,_0x20c510,_0x31e51a,_0xc91da7,_0x3acea0,_0x4127f2),this[_0x402f9f(0x102)]=_0x50977d,I(this,_0x402f9f(0x1a6),_0x402f9f(0x1a2));}['appendMutation'](_0x23b1cc){const _0x12ecc3=_0x50ca80;return this[_0x12ecc3(0x1fa)][_0x12ecc3(0x271)](_0x23b1cc),this[_0x12ecc3(0x222)](),this;}[_0x50ca80(0x169)](_0x353627){const _0x4a9cad=_0x50ca80;throw Error(_0x4a9cad(0x1bb));}['onRemoteAck'](){const _0x4ac674=_0x50ca80;throw Error(_0x4ac674(0x24e));}[_0x50ca80(0x1d8)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x50ca80(0x2d9)](){return this;}[_0x50ca80(0x2ba)](){return this;}[_0x50ca80(0x1df)](){const _0x2946b7=_0x50ca80;let {_injector:_0x3cfcab,_pendingMutations:_0x2c251a,_awaitingChangeset:_0x47f5d6,unitID:_0x9c132c,_handler:_0x31b0a1,type:_0x18a889}=this,_0x33e3e7=Gt(_0x3cfcab,_0x9c132c,_0x18a889,_0x47f5d6,_0x2c251a,_0x31b0a1);return _0x33e3e7 instanceof K?_0x33e3e7[_0x2946b7(0x1ac)]():(_0x33e3e7 instanceof J||_0x33e3e7 instanceof q)&&_0x33e3e7[_0x2946b7(0x298)](),_0x33e3e7;}['resend'](){const _0x5bf80a=_0x50ca80;throw Error(_0x5bf80a(0x172));}};X=z([R(0x5,_0x4bd6ab(_0x280033)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x2d9981),R(0x8,_0x16c6c1),R(0x9,_0x122efe(V))],X);let Z=class extends W{constructor(_0x233b46,_0x2bd5ec,_0x46d62d,_0x5713dd,_0x5a8968,_0x5e462b,_0x12f182,_0x5a709a,_0x13ceb4,_0x1f1f70,_0x5ea395,_0x3526eb,_0x43720b,_0x54d4a3){const _0x441af6=_0x50ca80;super(_0x233b46,_0x2bd5ec,_0x46d62d,_0x5713dd,_0x12f182,_0x5ea395,_0x3526eb,_0x13ceb4,_0x54d4a3),this[_0x441af6(0x2aa)]=_0x5a8968,this[_0x441af6(0x1eb)]=_0x5e462b,this[_0x441af6(0x102)]=_0x5a709a,this[_0x441af6(0x313)]=_0x1f1f70,this[_0x441af6(0x1a3)]=_0x43720b,this['localCacheService']=_0x54d4a3,I(this,_0x441af6(0x1a6),_0x441af6(0x1ea));}[_0x50ca80(0x186)](_0x49ec6c){const _0x11ae2f=_0x50ca80;try{if(this[_0x11ae2f(0x27e)](_0x49ec6c)[_0x11ae2f(0x283)])throw Error(_0x11ae2f(0x260));if(this['_handleRemoteChangesets']([...this['_queuedRemoteChangesets']][_0x11ae2f(0x1af)]((_0x4ba4f7,_0x38cfdc)=>_0x4ba4f7[_0x11ae2f(0x133)]-_0x38cfdc[_0x11ae2f(0x133)]))[_0x11ae2f(0x283)])return this[_0x11ae2f(0x1eb)]=[],this[_0x11ae2f(0x222)](),this[_0x11ae2f(0x328)]['onMissingChangesets']({'from':this[_0x11ae2f(0x2ec)](),'to':0x0}),this;let _0x514433=this[_0x11ae2f(0x1f0)],_0x55636e=this['_pendingMutations'],_0x4e109c;if(_0x514433&&_0x55636e[_0x11ae2f(0x29f)]!==0x0)_0x4e109c=this['_injector'][_0x11ae2f(0x25a)](J,this['unitID'],this[_0x11ae2f(0x2e3)],_0x514433,_0x55636e,this[_0x11ae2f(0x328)],void 0x0);else{if(_0x514433&&_0x55636e[_0x11ae2f(0x29f)]===0x0)_0x514433[_0x11ae2f(0x26e)]=this[_0x11ae2f(0x2ec)](),_0x4e109c=this[_0x11ae2f(0x102)][_0x11ae2f(0x25a)](q,this[_0x11ae2f(0x247)],this[_0x11ae2f(0x2e3)],_0x514433,this[_0x11ae2f(0x328)]);else{if(_0x55636e['length']!==0x0){let _0x2f1115=this[_0x11ae2f(0x102)]['createInstance'](K,this['unitID'],this[_0x11ae2f(0x2e3)],_0x55636e,this[_0x11ae2f(0x328)]);_0x2f1115['_schedule'](),_0x4e109c=_0x2f1115;}else _0x4e109c=this['_injector'][_0x11ae2f(0x25a)](G,this[_0x11ae2f(0x247)],this[_0x11ae2f(0x2e3)],this[_0x11ae2f(0x328)]);}}return _0x4e109c[_0x11ae2f(0x222)](),_0x4e109c;}catch(_0x1adf61){return this[_0x11ae2f(0x313)][_0x11ae2f(0x292)](_0x11ae2f(0x10d),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1adf61),this[_0x11ae2f(0x102)][_0x11ae2f(0x25a)](Y,this[_0x11ae2f(0x247)],this[_0x11ae2f(0x2e3)],this['_awaitingChangeset'],this[_0x11ae2f(0x1fa)],this[_0x11ae2f(0x328)],!0x1);}}[_0x50ca80(0x27e)](_0xfce5a7){const _0x489800=_0x50ca80;this['_acknowledgeAwaitingIfReady']();for(let _0x457f29=0x0;_0x457f29<_0xfce5a7['length'];_0x457f29++){let _0x10f9db=_0xfce5a7[_0x457f29],_0x5a0fbb=this[_0x489800(0x2ec)]();if(!(_0x10f9db[_0x489800(0x133)]<=_0x5a0fbb)){if(_0x10f9db[_0x489800(0x133)]>_0x5a0fbb+0x1)return{'missingChangesets':!0x0};if(this[_0x489800(0x2ab)](_0x10f9db)){this[_0x489800(0x2c4)]();continue;}this[_0x489800(0x10c)](_0x10f9db),this[_0x489800(0x338)]();}}return{'missingChangesets':!0x1};}[_0x50ca80(0x10c)](_0x218902){const _0x58371c=_0x50ca80;let _0x68cf0d=_0x218902,_0x119d99=this[_0x58371c(0x1f0)];if(_0x119d99){let _0x1f6d64=this['_transformService'][_0x58371c(0x1d7)]([_0x218902],[_0x119d99],!0x1);if(!_0x3fa49e(_0x1f6d64))throw _0x1f6d64[_0x58371c(0x292)];_0x68cf0d=_0x1f6d64['c1Prime'][0x0],_0x119d99=_0x1f6d64['c2Prime'][0x0];}let _0x5df23f=this['_pendingMutations'];if(_0x5df23f[_0x58371c(0x29f)]){let _0x22aec5=this[_0x58371c(0x1a3)]['transformMutationsWithChangeset'](_0x68cf0d,_0x5df23f);if(!_0xa549dc(_0x22aec5))throw _0x22aec5[_0x58371c(0x292)];_0x68cf0d=_0x22aec5[_0x58371c(0xf3)],_0x5df23f=_0x22aec5[_0x58371c(0x2bd)];}this[_0x58371c(0x2e4)](_0x68cf0d),_0x119d99&&(_0x119d99[_0x58371c(0x26e)]=this[_0x58371c(0x2ec)]()),this[_0x58371c(0x1f0)]=_0x119d99,this[_0x58371c(0x1fa)]=_0x5df23f;}[_0x50ca80(0x338)](){const _0x2ee089=_0x50ca80;if(!this[_0x2ee089(0x1f0)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x31db4b=this[_0x2ee089(0x2ec)]();if(this['_acknowledgedAwaitingRevision']<=_0x31db4b)throw Error(_0x2ee089(0x308)+this['_acknowledgedAwaitingRevision']+'.');this['_acknowledgedAwaitingRevision']===_0x31db4b+0x1&&this['_acknowledgeAwaiting']();}[_0x50ca80(0x2c4)](){const _0x37dbb6=_0x50ca80;this['_incrementRevisionNumber'](),this[_0x37dbb6(0x1f0)]=null,this[_0x37dbb6(0x2aa)]=null;}[_0x50ca80(0x2ab)](_0x33b4ee){const _0x1535fe=_0x50ca80;let _0x581427=this[_0x1535fe(0x1f0)];return!_0x581427||!_0x581427[_0x1535fe(0x236)]||_0x581427[_0x1535fe(0x2b5)]===null||_0x581427[_0x1535fe(0x2b5)]===void 0x0?!0x1:_0x33b4ee[_0x1535fe(0x247)]===_0x581427['unitID']&&_0x33b4ee[_0x1535fe(0x236)]===_0x581427[_0x1535fe(0x236)]&&_0x33b4ee['reqId']===_0x581427[_0x1535fe(0x2b5)];}['resend'](){const _0x417da4=_0x50ca80;throw Error(_0x417da4(0x132));}[_0x50ca80(0x26f)](_0x2996db){const _0x512bc2=_0x50ca80;return this['_pendingMutations'][_0x512bc2(0x271)](_0x2996db),this;}['onRemoteChangeset'](_0x2bf462){const _0x113b0c=_0x50ca80;return this[_0x113b0c(0x1eb)]['push'](_0x2bf462),this;}[_0x50ca80(0x32a)](_0x2d76fe){const _0x5cf448=_0x50ca80;if(this[_0x5cf448(0x1f0)]){let _0x3e71ab=this[_0x5cf448(0x2ec)]();return _0x2d76fe['revision']<=_0x3e71ab||(_0x3e71ab+0x1===_0x2d76fe[_0x5cf448(0x133)]?(this[_0x5cf448(0x15d)](),this[_0x5cf448(0x1f0)]=null,this[_0x5cf448(0x2aa)]=null):this[_0x5cf448(0x2aa)]=_0x2d76fe['revision']),this;}if(_0x2d76fe['revision']<=this[_0x5cf448(0x2ec)]())return this;throw Error(_0x5cf448(0x23d));}[_0x50ca80(0x1d8)](_0x2f650a){const _0x3463ca=_0x50ca80;return this['_onConflict'](!!(_0x2f650a!=null&&_0x2f650a[_0x3463ca(0x134)]));}[_0x50ca80(0x2d9)](){return this;}['toggleOffline'](){const _0x3f82e3=_0x50ca80;return this[_0x3f82e3(0x102)]['createInstance'](X,this[_0x3f82e3(0x247)],this[_0x3f82e3(0x2e3)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3f82e3(0x328)]);}['toggleOnline'](){return this;}[_0x50ca80(0x185)](_0x10be61){const _0x536f78=_0x50ca80;return this['_injector'][_0x536f78(0x25a)](Y,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x536f78(0x1fa)],this[_0x536f78(0x328)],_0x10be61);}};Z=z([R(0x7,_0x4bd6ab(_0x280033)),R(0x8,_0x4bd6ab(_0x4565f5)),R(0x9,_0x5b7991),R(0xa,_0x2d9981),R(0xb,_0x16c6c1),R(0xc,_0x1726e6),R(0xd,_0x122efe(V))],Z);function Gt(_0x7c0050,_0x50786d,_0x2de2cc,_0x515c05,_0x10b9bd,_0xc4159d){const _0x31e12c=_0x50ca80;return _0x515c05&&_0x10b9bd[_0x31e12c(0x29f)]?_0x7c0050[_0x31e12c(0x25a)](J,_0x50786d,_0x2de2cc,_0x515c05,_0x10b9bd,_0xc4159d,void 0x0):_0x515c05?_0x7c0050[_0x31e12c(0x25a)](q,_0x50786d,_0x2de2cc,_0x515c05,_0xc4159d):_0x10b9bd[_0x31e12c(0x29f)]?_0x7c0050['createInstance'](K,_0x50786d,_0x2de2cc,_0x10b9bd,_0xc4159d):_0x7c0050[_0x31e12c(0x25a)](G,_0x50786d,_0x2de2cc,_0xc4159d);}let Kt=class extends _0x1e6e8b{get[_0x50ca80(0x206)](){const _0x5603da=_0x50ca80;return this[_0x5603da(0x17b)];}constructor(_0xc7657a,_0x136419,_0x5b7078,_0x4738c9,_0x49c656,_0x13c8e5,_0x538ea1,_0x6e46cc,_0x272c79,_0x24d293,_0x408f23,_0x11bf77,_0x52befc,_0x25e72a){const _0x5612f3=_0x50ca80;super(),this[_0x5612f3(0x247)]=_0xc7657a,this['session']=_0x136419,this[_0x5612f3(0x115)]=_0x5b7078,this[_0x5612f3(0x102)]=_0x4738c9,this['_compressMutationService']=_0x49c656,this[_0x5612f3(0x182)]=_0x13c8e5,this['_revisionService']=_0x538ea1,this[_0x5612f3(0x231)]=_0x6e46cc,this[_0x5612f3(0x257)]=_0x272c79,this[_0x5612f3(0x313)]=_0x24d293,this['_commandService']=_0x408f23,this[_0x5612f3(0x187)]=_0x11bf77,this[_0x5612f3(0xf9)]=_0x52befc,this[_0x5612f3(0x1f5)]=_0x25e72a,I(this,_0x5612f3(0x232),new _0x4a3716(null)),I(this,'state$',this[_0x5612f3(0x232)][_0x5612f3(0x1d3)]()),I(this,_0x5612f3(0x17b),void 0x0),I(this,_0x5612f3(0x16d),!0x1),I(this,_0x5612f3(0x21c),''),I(this,_0x5612f3(0x2c7),0x0),I(this,'status$',this[_0x5612f3(0x256)][_0x5612f3(0x2b3)](_0x196732(_0xc68931=>_0xc68931?_0xc68931['status']:'offline'),_0x5b45b4(0x1))),I(this,_0x5612f3(0x135),!0x1),I(this,_0x5612f3(0x31a),[]);}async[_0x50ca80(0x331)](){const _0x4cac4a=_0x50ca80;if(this[_0x4cac4a(0x206)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}['pauseCollaboration'](){const _0x1ffd0d=_0x50ca80;return this[_0x1ffd0d(0x16d)]=!0x0,_0x50490a(()=>{const _0x49d800=_0x1ffd0d;this[_0x49d800(0x16d)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0x2a9234){const _0x1946b8=_0x50ca80;this[_0x1946b8(0x1ed)](_0x2a9234);}[_0x50ca80(0x2a3)](_0x3480a2){const _0x172a90=_0x50ca80;this[_0x172a90(0x17b)]=_0x3480a2,this[_0x172a90(0x232)][_0x172a90(0x11f)](_0x3480a2);}async['_init'](){const _0x3f24f6=_0x50ca80;if(this['_updateState'](await this[_0x3f24f6(0x155)]()),this[_0x3f24f6(0xf9)]){var _0x2a698d;(_0x2a698d=this[_0x3f24f6(0xf9)])==null||_0x2a698d[_0x3f24f6(0x11c)](this['unitID']),this[_0x3f24f6(0x2e8)](this[_0x3f24f6(0xf9)][_0x3f24f6(0x2db)](this[_0x3f24f6(0x247)])[_0x3f24f6(0x1fe)](_0x2886e7=>{const _0x1144ab=_0x3f24f6;this[_0x1144ab(0x313)][_0x1144ab(0x168)](_0x1144ab(0x219),_0x1144ab(0x2d8),_0x2886e7),_0x2886e7===0x1?(this['_eventService']['emitEvent']({'id':_0x1144ab(0x239)}),this[_0x1144ab(0x187)]['updatePermissionPoint'](new _0x2c6ff9(this[_0x1144ab(0x247)])['id'],!0x1),this[_0x1144ab(0x187)][_0x1144ab(0x293)](!0x1)):(this[_0x1144ab(0x187)][_0x1144ab(0x1ab)](new _0x2c6ff9(this['unitID'])['id'],!0x0),this[_0x1144ab(0x187)][_0x1144ab(0x293)](!0x0));}));}let _0x3bb1a8=!0x1;return this[_0x3f24f6(0x2e8)](this[_0x3f24f6(0xf1)]['sessionStatus$']['subscribe'](_0x1eb8c2=>{const _0x48d085=_0x3f24f6;_0x1eb8c2===0x3?this['_toggleOnline'](_0x3bb1a8):_0x1eb8c2===0x2&&(_0x3bb1a8=!0x0,this[_0x48d085(0x1cf)]());})),this['disposeWithMe'](this[_0x3f24f6(0xf1)][_0x3f24f6(0x1a7)][_0x3f24f6(0x1fe)](_0x5dbf56=>{const _0xff48c4=_0x3f24f6;try{switch(_0x5dbf56['eventID']){case _0x3b8cc3[_0xff48c4(0x141)]:this[_0xff48c4(0x19d)](_0x25ebd1(_0x5dbf56[_0xff48c4(0x1b8)]));break;case _0x3b8cc3[_0xff48c4(0x31c)]:this['_onRemoteACK'](_0x5dbf56[_0xff48c4(0x1b8)]);break;case _0x3b8cc3[_0xff48c4(0x35b)]:this[_0xff48c4(0x2af)]();break;case _0x3b8cc3[_0xff48c4(0x28d)]:this[_0xff48c4(0x2df)](_0x5dbf56[_0xff48c4(0x1b8)]);break;case _0x3b8cc3[_0xff48c4(0x337)]:this[_0xff48c4(0x2b1)](_0x5dbf56[_0xff48c4(0x1b8)][_0xff48c4(0x15e)][_0xff48c4(0x1c9)](_0x5ab02f=>_0x25ebd1(_0x5ab02f)));break;case _0x3b8cc3[_0xff48c4(0x101)]:this[_0xff48c4(0x2af)]({'isPermissionRej':!0x0});break;case _0x3b8cc3[_0xff48c4(0x175)]:break;}}catch(_0x55d29c){throw console[_0xff48c4(0x292)]('Error\x20on\x20receiving\x20event',_0x55d29c),_0x55d29c;}})),this[_0x3f24f6(0x17b)];}['_unlockTransition'](){const _0x4b3dab=_0x50ca80;this[_0x4b3dab(0x135)]=!0x1;}['_lockTransition'](){const _0x19f959=_0x50ca80;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x19f959(0x135)]=!0x0;}['_onLocalMutation'](_0x4b5e0c){const _0x34a894=_0x50ca80;this[_0x34a894(0x22a)](),this[_0x34a894(0x2a3)](this[_0x34a894(0x17b)][_0x34a894(0x26f)](_0x4b5e0c)),this[_0x34a894(0x233)]();}['_onRemoteChangeset'](_0x50766e){const _0x5995e5=_0x50ca80;if(!(_0x50766e[_0x5995e5(0x133)]<=this[_0x5995e5(0x33d)][_0x5995e5(0x15a)](this[_0x5995e5(0x247)]))){if(this[_0x5995e5(0x16d)]){this[_0x5995e5(0x31a)][_0x5995e5(0x271)](_0x50766e);return;}this[_0x5995e5(0x151)](_0x50766e);}}[_0x50ca80(0x18b)](){const _0x43c062=_0x50ca80;this[_0x43c062(0x31a)][_0x43c062(0x1bf)](_0x1abc45=>this['_applyRemoteChangeset'](_0x1abc45)),this['_remoteChangesetQueue']=[];}[_0x50ca80(0x151)](_0x15392b){const _0x142eba=_0x50ca80;let _0x19fb39=this[_0x142eba(0x28f)][_0x142eba(0x2bf)][_0x142eba(0x2ad)](this[_0x142eba(0x28f)][_0x142eba(0x2bf)][_0x142eba(0xf5)]()[_0x142eba(0x302)])(_0x15392b[_0x142eba(0x301)],null)||_0x15392b[_0x142eba(0x301)],_0x235f53={..._0x15392b,'mutations':_0x19fb39};this[_0x142eba(0x22a)](),this[_0x142eba(0x2a3)](this[_0x142eba(0x17b)][_0x142eba(0x169)](_0x235f53)),this[_0x142eba(0x233)]();}['_onRemoteACK'](_0x48d50b){const _0x4e39cc=_0x50ca80;this['_lockTransition'](),this[_0x4e39cc(0x2a3)](this[_0x4e39cc(0x17b)][_0x4e39cc(0x32a)](_0x48d50b)),this[_0x4e39cc(0x233)]();}[_0x50ca80(0x2af)](_0x4fb7c6){const _0x2275cc=_0x50ca80;this[_0x2275cc(0x22a)](),this[_0x2275cc(0x2a3)](this[_0x2275cc(0x17b)]['onRemoteRej'](_0x4fb7c6)),this[_0x2275cc(0x233)]();}['_onRemoteRetry'](_0xd3ab9e){const _0x197a58=_0x50ca80;this[_0x197a58(0x22a)](),this[_0x197a58(0x2a3)](this[_0x197a58(0x17b)]['onRemoteRetry'](_0xd3ab9e)),this[_0x197a58(0x233)]();}[_0x50ca80(0x2b1)](_0x3a446f){const _0x5858cb=_0x50ca80;if(!(this[_0x5858cb(0x17b)]instanceof Z))throw TypeError(_0x5858cb(0x2a6));let _0xbf21ac=_0x3a446f[_0x5858cb(0x1c9)](_0x3868e5=>{const _0x2ec31f=_0x5858cb;let _0x1c3770=this['_compressMutationService'][_0x2ec31f(0x2bf)][_0x2ec31f(0x2ad)](this[_0x2ec31f(0x28f)][_0x2ec31f(0x2bf)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x3868e5[_0x2ec31f(0x301)],null)||_0x3868e5[_0x2ec31f(0x301)];return{..._0x3868e5,'mutations':_0x1c3770};});this['_lockTransition'](),this[_0x5858cb(0x2a3)](this[_0x5858cb(0x17b)][_0x5858cb(0x186)](_0xbf21ac)),this[_0x5858cb(0x233)]();}['_toggleOffline'](){const _0x42e305=_0x50ca80;this['_lockTransition'](),this[_0x42e305(0x2a3)](this[_0x42e305(0x17b)][_0x42e305(0x2ba)]()),this[_0x42e305(0x233)]();}['_toggleOnline'](_0x2bf970=!0x1){const _0x7e566e=_0x50ca80;this[_0x7e566e(0x22a)](),this['_updateState'](this[_0x7e566e(0x17b)]['toggleOnline']()),this[_0x7e566e(0x233)]();let _0x53a7b5=this[_0x7e566e(0x17b)];_0x2bf970&&_0x53a7b5 instanceof G&&(this[_0x7e566e(0x22a)](),this[_0x7e566e(0x2a3)](_0x53a7b5[_0x7e566e(0x13d)]()),this[_0x7e566e(0x233)]());}async[_0x50ca80(0x155)](){return new Promise(_0x1a9745=>{const _0x52172d=_0x3123;this[_0x52172d(0xf1)]['sessionStatus$'][_0x52172d(0x2b3)](_0x42a5ba(0x1))['subscribe'](async _0x488774=>{const _0x3edbf2=_0x52172d;_0x1a9745(await this[_0x3edbf2(0xe7)](_0x488774===0x3));});});}['_createHandler'](){const _0x2d96fa=_0x50ca80;let _0x372db4=this[_0x2d96fa(0x247)];return{'onStateChange':(_0x3f3075,_0x4fbfe2)=>{const _0x358e25=_0x2d96fa;if(_0x3f3075!==this[_0x358e25(0x17b)])throw Error(_0x358e25(0x295)+_0x3f3075[_0x358e25(0x1a6)]+_0x358e25(0x24c)+_0x4fbfe2[_0x358e25(0x1a6)]+'\x0aCurrent:\x20'+this[_0x358e25(0x17b)][_0x358e25(0x1a6)]);this[_0x358e25(0x2a3)](_0x4fbfe2);},'onSendChangeset':_0x13e8e5=>{const _0x1cfdec=_0x2d96fa;_0x13e8e5['sid']||(_0x13e8e5[_0x1cfdec(0x236)]=this[_0x1cfdec(0x21c)],_0x13e8e5[_0x1cfdec(0x2b5)]=++this['_changesetReqId']);let _0x48b1b2={'eventID':_0x3b8cc3[_0x1cfdec(0x268)],'data':{'unitID':_0x13e8e5['unitID'],'unitType':this[_0x1cfdec(0x115)],'changeset':_0x13e8e5,'memberID':this[_0x1cfdec(0xf1)][_0x1cfdec(0x28a)]()}};this['session'][_0x1cfdec(0x251)](_0x48b1b2,this[_0x1cfdec(0x247)]);},'onMissingChangesets':({from:_0xef7969,to:_0x364a5e})=>{const _0x99fab3=_0x2d96fa;this['_logService'][_0x99fab3(0x168)](_0x99fab3(0x219),_0x99fab3(0x339)+_0xef7969+_0x99fab3(0x21a)+_0x364a5e);let _0x42fd13={'eventID':_0x3b8cc3[_0x99fab3(0x12d)],'data':{'unitID':_0x372db4,'unitType':this[_0x99fab3(0x115)],'from':_0xef7969,'to':_0x364a5e}};this[_0x99fab3(0xf1)][_0x99fab3(0x251)](_0x42fd13,this['unitID']);}};}async['_createInitialStateImpl'](_0x306298){const _0x5d36d7=_0x50ca80;var _0x4e1a2d,_0x36f007,_0xbf2654;let _0x59b750=await((_0x4e1a2d=this['_localCacheService'])==null?void 0x0:_0x4e1a2d[_0x5d36d7(0x348)](this[_0x5d36d7(0x247)])),_0x3ffba0=(_0x36f007=_0x59b750==null?void 0x0:_0x59b750[_0x5d36d7(0x301)])==null?[]:_0x36f007,_0x5820aa=(_0xbf2654=_0x59b750==null?void 0x0:_0x59b750[_0x5d36d7(0x243)])==null?null:_0xbf2654,_0x591d3d=!!(_0x5820aa!=null&&_0x5820aa[_0x5d36d7(0x236)])&&!!(_0x5820aa!=null&&_0x5820aa['reqId']);this['_changesetSessionId']=_0x591d3d?_0x5820aa[_0x5d36d7(0x236)]:_0x5085ef(),this[_0x5d36d7(0x2c7)]=_0x591d3d?_0x5820aa['reqId']:0x0;let _0x5b6698=this[_0x5d36d7(0x247)];try{this[_0x5d36d7(0xe8)](_0x5820aa,_0x3ffba0);}catch(_0x51464b){this[_0x5d36d7(0x313)][_0x5d36d7(0x292)](_0x51464b);}let _0x40fb2d=this[_0x5d36d7(0x226)]();if(_0x306298){let _0x15b092=Gt(this['_injector'],_0x5b6698,this[_0x5d36d7(0x115)],_0x5820aa,_0x3ffba0,_0x40fb2d);return _0x15b092 instanceof K?_0x15b092[_0x5d36d7(0x1ac)]():(_0x15b092 instanceof J||_0x15b092 instanceof q)&&_0x15b092[_0x5d36d7(0x298)](),_0x15b092;}return this['_injector'][_0x5d36d7(0x25a)](X,_0x5b6698,this[_0x5d36d7(0x115)],_0x5820aa,_0x3ffba0,_0x40fb2d);}[_0x50ca80(0xe8)](_0x5c65b3,_0x3659cd){const _0x110bdd=_0x50ca80;var _0x5b2bd3,_0x351ace;let _0x153262=this[_0x110bdd(0x28f)][_0x110bdd(0x2bf)]['fetchThroughInterceptors'](this[_0x110bdd(0x28f)][_0x110bdd(0x2bf)][_0x110bdd(0xf5)]()[_0x110bdd(0x302)]);(_0x5b2bd3=_0x153262((_0x5c65b3==null?void 0x0:_0x5c65b3[_0x110bdd(0x301)])||[],null))==null||_0x5b2bd3[_0x110bdd(0x1bf)](_0x562d30=>this[_0x110bdd(0x1ce)]['executeCommand'](_0x562d30['id'],_0x562d30[_0x110bdd(0x2f0)])),(_0x351ace=_0x153262(_0x3659cd||[],null))==null||_0x351ace[_0x110bdd(0x1bf)](_0x14803c=>this['_commandService'][_0x110bdd(0x1c5)](_0x14803c['id'],_0x14803c[_0x110bdd(0x2f0)]));}};Kt=z([R(0x3,_0x4bd6ab(_0x280033)),R(0x4,_0x4bd6ab(_0x32c83e)),R(0x5,_0x4bd6ab(_0x4d3fc2)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x4bd6ab(L)),R(0x8,_0x2dad56),R(0x9,_0x5b7991),R(0xa,_0x2d9981),R(0xb,_0x393a1b),R(0xc,_0x122efe(jt)),R(0xd,_0x122efe(V))],Kt);let qt=class extends Kt{constructor(_0xc68b5d,_0x1ea910,_0x4ba08f,_0x4710e4,_0x5c2223,_0x5e4ae4,_0x862270,_0x206503,_0x33bc94,_0x2a07dc,_0x46dbad,_0x47ca20,_0x119305,_0x543252){const _0x89d94b=_0x50ca80;super(_0xc68b5d,_0x4ba08f,_0x1ea910,_0x4710e4,_0x5c2223,_0x5e4ae4,_0x862270,_0x206503,_0x33bc94,_0x2a07dc,_0x46dbad,_0x47ca20,_0x119305,_0x543252),this[_0x89d94b(0x247)]=_0xc68b5d,this[_0x89d94b(0x2e3)]=_0x1ea910,I(this,'_handlerCallback',null);}['addHandlerCallback'](_0x6ac260){const _0x697fc1=_0x50ca80;this[_0x697fc1(0x229)]=_0x6ac260;}[_0x50ca80(0x245)](){const _0x2b9319=_0x50ca80;this['_handlerCallback']=null,super[_0x2b9319(0x245)]();}[_0x50ca80(0x226)](){const _0xebe88=_0x50ca80;let _0x4a52e8=super[_0xebe88(0x226)]();return _0x4a52e8['onTransformIME']=_0x4111a5=>{const _0x29dcfa=_0xebe88;var _0x13954a,_0x3dc87f;return(_0x13954a=this[_0x29dcfa(0x229)])==null||(_0x3dc87f=_0x13954a[_0x29dcfa(0x1c8)])==null?void 0x0:_0x3dc87f['call'](_0x13954a,_0x4111a5);},_0x4a52e8[_0xebe88(0x1b7)]=_0x5b8286=>{const _0xe7870e=_0xebe88;var _0xe3835f,_0x5851aa;return(_0xe3835f=this['_handlerCallback'])==null||(_0x5851aa=_0xe3835f[_0xe7870e(0x1b7)])==null?void 0x0:_0x5851aa['call'](_0xe3835f,_0x5b8286);},_0x4a52e8[_0xebe88(0x17c)]=_0xf90dab=>{const _0x31884f=_0xebe88;var _0x56e915,_0x597b7b;return(_0x56e915=this[_0x31884f(0x229)])==null||(_0x597b7b=_0x56e915[_0x31884f(0x17c)])==null?void 0x0:_0x597b7b[_0x31884f(0x2c2)](_0x56e915,_0xf90dab);},_0x4a52e8[_0xebe88(0x30e)]=_0x17c7d9=>{const _0x4eb67c=_0xebe88;var _0x1cd770,_0x5077f0;return(_0x1cd770=this[_0x4eb67c(0x229)])==null||(_0x5077f0=_0x1cd770[_0x4eb67c(0x30e)])==null?void 0x0:_0x5077f0[_0x4eb67c(0x2c2)](_0x1cd770,_0x17c7d9);},_0x4a52e8['onTransformRemoteChangesetByIMECache']=_0x34a6c2=>{const _0x4a05a1=_0xebe88;var _0x46cca6,_0x28dab6,_0x3664ce;if(!((_0x46cca6=this[_0x4a05a1(0x229)])!=null&&_0x46cca6[_0x4a05a1(0x250)]))throw Error(_0x4a05a1(0x118));return(_0x28dab6=this[_0x4a05a1(0x229)])==null||(_0x3664ce=_0x28dab6[_0x4a05a1(0x250)])==null?void 0x0:_0x3664ce[_0x4a05a1(0x2c2)](_0x28dab6,_0x34a6c2);},_0x4a52e8[_0xebe88(0x246)]=_0x51bad8=>{const _0x37f4=_0xebe88;var _0x61378b,_0x256643,_0xeb313f;if(!((_0x61378b=this['_handlerCallback'])!=null&&_0x61378b[_0x37f4(0x246)]))throw Error(_0x37f4(0x1d6));return(_0x256643=this[_0x37f4(0x229)])==null||(_0xeb313f=_0x256643[_0x37f4(0x246)])==null?void 0x0:_0xeb313f[_0x37f4(0x2c2)](_0x256643,_0x51bad8);},_0x4a52e8;}async['_init'](){const _0xa65a81=_0x50ca80;let _0x226591=await super[_0xa65a81(0x237)]();return this[_0xa65a81(0x2e8)](this[_0xa65a81(0x1ce)]['onMutationExecutedForCollab']((_0x5ab22c,_0x4d5c0d)=>{const _0x166f72=_0xa65a81;if(_0x5ab22c[_0x166f72(0x2e3)]!==_0x58f761[_0x166f72(0x191)]||_0x4d5c0d!=null&&_0x4d5c0d[_0x166f72(0x2a9)]||_0x4d5c0d!=null&&_0x4d5c0d[_0x166f72(0x2f1)]||_0x5ab22c['id']===_0x4add4c['id'])return;let _0x4b1cf6=_0x5ab22c[_0x166f72(0x2f0)];if((_0x4b1cf6==null?void 0x0:_0x4b1cf6[_0x166f72(0x263)])!==this[_0x166f72(0x247)])return;let _0x256e09=_0x5ab22c,_0x3d718f=this[_0x166f72(0x28f)][_0x166f72(0x2bf)][_0x166f72(0x2ad)](this['_compressMutationService'][_0x166f72(0x2bf)][_0x166f72(0xf5)]()['COMPRESS_MUTATION_SEND'])([_0x256e09],this['_univerInstanceService'])||[_0x256e09];this[_0x166f72(0x1ed)](_0x3d718f[0x0]);})),_0x226591;}};qt=z([R(0x3,_0x4bd6ab(_0x280033)),R(0x4,_0x4bd6ab(_0x32c83e)),R(0x5,_0x4bd6ab(_0x4d3fc2)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x4bd6ab(L)),R(0x8,_0x2dad56),R(0x9,_0x5b7991),R(0xa,_0x2d9981),R(0xb,_0x393a1b),R(0xc,_0x122efe(jt)),R(0xd,_0x122efe(V))],qt);let Jt=class extends Kt{constructor(_0x362e2e,_0x480f53,_0x5a442a,_0x26f339,_0x44ac12,_0x39a3af,_0x19dd47,_0x4a49ff,_0x39b97a,_0x17e844,_0x52022b,_0x3618ac,_0x507dde,_0x1b4c85,_0x2cb7d5){const _0x4be3c5=_0x50ca80;super(_0x362e2e,_0x5a442a,_0x480f53,_0x26f339,_0x44ac12,_0x39a3af,_0x19dd47,_0x39b97a,_0x17e844,_0x52022b,_0x3618ac,_0x507dde,_0x1b4c85,_0x2cb7d5),this[_0x4be3c5(0x247)]=_0x362e2e,this[_0x4be3c5(0x2e3)]=_0x480f53,this[_0x4be3c5(0x1d9)]=_0x4a49ff;}[_0x50ca80(0x226)](){const _0x5663fb=_0x50ca80;let _0x4e4254=super['_createHandler']();return _0x4e4254['onTransformSelections']=_0x1433fb=>this[_0x5663fb(0x1d9)]['transformSelections'](_0x1433fb),_0x4e4254;}async[_0x50ca80(0x237)](){const _0x5cbb88=_0x50ca80;let _0x5bac91=await super['_init']();return this[_0x5cbb88(0x2e8)](this[_0x5cbb88(0x1ce)][_0x5cbb88(0x20a)]((_0xf3f40e,_0x2e0d97)=>{const _0x24058b=_0x5cbb88;if(_0xf3f40e[_0x24058b(0x2e3)]!==_0x58f761['MUTATION']||_0x2e0d97!=null&&_0x2e0d97['fromCollab']||_0x2e0d97!=null&&_0x2e0d97[_0x24058b(0x2f1)])return;let _0x16a3fd=_0xf3f40e[_0x24058b(0x2f0)];if((_0x16a3fd==null?void 0x0:_0x16a3fd[_0x24058b(0x263)])!==this['unitID'])return;let _0x9de8d7=_0xf3f40e,_0x51c26b=this[_0x24058b(0x28f)]['interceptor'][_0x24058b(0x2ad)](this['_compressMutationService'][_0x24058b(0x2bf)][_0x24058b(0xf5)]()[_0x24058b(0x13b)])([_0x9de8d7],this['_univerInstanceService'])||[_0x9de8d7];this[_0x24058b(0x1ed)](_0x51c26b[0x0]);})),_0x5bac91;}};Jt=z([R(0x3,_0x4bd6ab(_0x280033)),R(0x4,_0x4bd6ab(_0x32c83e)),R(0x5,_0x4bd6ab(_0x4d3fc2)),R(0x6,_0x4bd6ab(_0x4565f5)),R(0x7,_0x4bd6ab(H)),R(0x8,_0x4bd6ab(L)),R(0x9,_0x2dad56),R(0xa,_0x5b7991),R(0xb,_0x2d9981),R(0xc,_0x393a1b),R(0xd,_0x122efe(jt)),R(0xe,_0x122efe(V))],Jt);const Yt=_0x3f595f(_0x50ca80(0x194));function Xt(_0x1cf013){const _0x45006f=_0x50ca80;let _0x40446b=_0x1cf013[_0x45006f(0x1b8)],_0xc97962=JSON[_0x45006f(0x22e)](_0x40446b);switch(_0xc97962[_0x45006f(0x125)]){case _0x1e2dc3['HEARTBEAT']:case _0x1e2dc3[_0x45006f(0x13a)]:{let _0x2cd74d=_0xc97962[_0x45006f(0x1cc)];return{..._0xc97962,'data':_0x2cd74d,'cmd':_0xc97962['cmd']};}case _0x1e2dc3[_0x45006f(0x288)]:{let _0x3763c3=_0xc97962[_0x45006f(0x12a)];return{..._0xc97962,'data':_0x3763c3,'cmd':_0xc97962['cmd']};}case _0x1e2dc3[_0x45006f(0x1b6)]:{let _0x1512f3=_0xc97962[_0x45006f(0x249)];switch(_0x1512f3[_0x45006f(0x27c)]){case _0x3b8cc3[_0x45006f(0x101)]:var _0x12fa4a;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x12fa4a=_0x1512f3[_0x45006f(0x1e7)])==null?void 0x0:_0x12fa4a['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['CHANGESET_ACK']:var _0x549638;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x549638=_0x1512f3[_0x45006f(0x278)])==null?void 0x0:_0x549638['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x141)]:var _0x5d46f8;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x5d46f8=_0x1512f3[_0x45006f(0x297)])==null?void 0x0:_0x5d46f8['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['CHANGESET_REJ']:var _0x27f97f;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x27f97f=_0x1512f3['csRejEvent'])==null?void 0x0:_0x27f97f['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['CHANGESET_SHOULD_RETRY']:var _0x2bb170;return{..._0xc97962,'data':{..._0x1512f3,'data':(_0x2bb170=_0x1512f3[_0x45006f(0x1f3)])==null?void 0x0:_0x2bb170['cs']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x158)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['updateCursorEvent']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['USERS_ENTER']:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['joinEvent']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x35a)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x317)]},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x264)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['liveShareNewHost']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x214)]:case _0x3b8cc3['LIVESHARE_OPERATION']:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3['liveShareOperation']},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3['LIVESHARE_TERMINATE']:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x181)]},'cmd':_0xc97962['cmd']};case _0x3b8cc3[_0x45006f(0x23b)]:return{..._0xc97962,'data':_0x1512f3,'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x303)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x31b)]},'cmd':_0xc97962['cmd']};case _0x3b8cc3[_0x45006f(0x306)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x1b4)]},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x188)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0x34e)]},'cmd':_0xc97962[_0x45006f(0x125)]};case _0x3b8cc3[_0x45006f(0x175)]:return{..._0xc97962,'data':{..._0x1512f3,'data':_0x1512f3[_0x45006f(0xfe)]},'cmd':_0xc97962[_0x45006f(0x125)]};default:return _0xc97962;}}default:return _0xc97962;}}function Zt(_0xd4096b){const _0x2926ba=_0x50ca80;switch(_0xd4096b[_0x2926ba(0x125)]){case _0x1e2dc3['HEARTBEAT']:case _0x1e2dc3[_0x2926ba(0x13a)]:return JSON[_0x2926ba(0x323)]({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b[_0x2926ba(0x162)]});case _0x1e2dc3[_0x2926ba(0x275)]:{let _0x1e2baa;switch(_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x27c)]){case _0x3b8cc3['UPDATE_CURSOR']:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x158)],'updateCursorEvent':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3[_0x2926ba(0x35a)]:_0x1e2baa={'eventID':_0x3b8cc3['USERS_LEAVE'],'leaveEvent':_0xd4096b[_0x2926ba(0x1b8)]['data']};break;case _0x3b8cc3[_0x2926ba(0x29a)]:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x29a)],'joinEvent':_0xd4096b['data'][_0x2926ba(0x1b8)]};break;case _0x3b8cc3['LIVESHARE_NEW_HOST']:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x264)],'liveShareNewHost':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3[_0x2926ba(0x1e1)]:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x1e1)],'liveShareOperation':_0xd4096b[_0x2926ba(0x1b8)]['data']};break;case _0x3b8cc3[_0x2926ba(0x32d)]:_0x1e2baa={'eventID':_0x3b8cc3['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3[_0x2926ba(0x262)]:_0x1e2baa={'eventID':_0x3b8cc3['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0xd4096b[_0x2926ba(0x1b8)][_0x2926ba(0x1b8)]};break;case _0x3b8cc3['LIVESHARE_FETCH_OPERATIONS']:_0x1e2baa={'eventID':_0x3b8cc3[_0x2926ba(0x214)]};break;default:_0x1e2baa={'eventID':_0xd4096b['data'][_0x2926ba(0x27c)]};}return JSON[_0x2926ba(0x323)]({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b[_0x2926ba(0x162)],'collaMsg':_0x1e2baa});}case _0x1e2dc3[_0x2926ba(0x288)]:return JSON['stringify']({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b[_0x2926ba(0x162)],'joinReq':_0xd4096b[_0x2926ba(0x1b8)]});case _0x1e2dc3['LEAVE']:return JSON[_0x2926ba(0x323)]({'cmd':_0xd4096b[_0x2926ba(0x125)],'routeKey':_0xd4096b['routeKey'],'leaveReq':_0xd4096b[_0x2926ba(0x1b8)]});default:throw Error(_0x2926ba(0x34d));}}const Qt=_0x3f595f(_0x50ca80(0x230));function $t(_0x46d8d6,_0x426c0d,_0x28f25f){const _0x2c7075=_0x50ca80;return _0x46d8d6+'/'+_0x426c0d+_0x2c7075(0x1c1)+_0x28f25f+_0x2c7075(0x1e9);}let en=class extends _0x9fa895{constructor(_0x42420c,_0x3f11fd,_0x4c3870,_0x3a32a2,_0x40d9fa){const _0x5c02d8=_0x50ca80;super(),this[_0x5c02d8(0x102)]=_0x42420c,this[_0x5c02d8(0x1da)]=_0x3f11fd,this[_0x5c02d8(0x136)]=_0x4c3870,this[_0x5c02d8(0x313)]=_0x3a32a2,this[_0x5c02d8(0x23f)]=_0x40d9fa;}[_0x50ca80(0x164)](_0x1efc85){const _0x258f34=_0x50ca80;let _0x45783d=this['_injector'][_0x258f34(0x2e5)](_0x3859d3);if(!_0x45783d)throw Error(_0x258f34(0x354));let _0xb3699b=_0x45783d[_0x258f34(0x1b0)](_0x1efc85);if(!_0xb3699b)throw Error(_0x258f34(0x108));let _0x4a40c7=new _0x96e511(),_0x544100=new _0x582e08();_0x4a40c7[_0x258f34(0x30f)](_0xb3699b[_0x258f34(0x150)]['subscribe'](_0x2342df=>_0x544100[_0x258f34(0x11f)](_0x2342df))),_0x4a40c7[_0x258f34(0x30f)](_0x50490a(()=>_0x544100[_0x258f34(0x340)]()));let _0x35669f=new _0x582e08();_0x4a40c7[_0x258f34(0x30f)](_0xb3699b[_0x258f34(0x274)]['subscribe'](_0x4ba5c1=>_0x35669f[_0x258f34(0x11f)](_0x4ba5c1))),_0x4a40c7[_0x258f34(0x30f)](_0x50490a(()=>_0x35669f['complete']()));let _0x19056d=new _0x582e08();_0x4a40c7[_0x258f34(0x30f)](_0xb3699b['message$'][_0x258f34(0x1fe)](_0xcb71=>{const _0x1b9ab9=_0x258f34;let _0xcf01a3=Xt(_0xcb71);_0x19056d[_0x1b9ab9(0x11f)](_0xcf01a3);})),_0x4a40c7['add'](_0x50490a(()=>_0x19056d['complete']()));let _0x454ffb,_0x328802=()=>{const _0x4beb85=_0x258f34;_0x35669f[_0x4beb85(0x11f)](new Event('connection\x20error')),_0x544100[_0x4beb85(0x11f)](new Event('connection\x20error')),_0x454ffb[_0x4beb85(0x111)]();};return _0x454ffb={'memberID':'','close$':_0x544100[_0x258f34(0x1d3)](),'error$':_0x35669f['asObservable'](),'open$':_0xb3699b[_0x258f34(0x2da)],'message$':_0x19056d[_0x258f34(0x1d3)](),'send':_0x20b391=>{const _0x2f443b=_0x258f34;if(_0x20b391[_0x2f443b(0x125)]===_0x1e2dc3[_0x2f443b(0x275)]){if(_0x20b391[_0x2f443b(0x1b8)]['eventID']===_0x3b8cc3[_0x2f443b(0x268)]){this[_0x2f443b(0x201)](_0x454ffb,_0x20b391[_0x2f443b(0x1b8)])[_0x2f443b(0x189)](_0xef8f0e=>{const _0x79e768=_0x2f443b;this[_0x79e768(0x313)][_0x79e768(0x292)](_0xef8f0e),_0x328802();});return;}if(_0x20b391['data'][_0x2f443b(0x27c)]===_0x3b8cc3[_0x2f443b(0x12d)]){let _0x4b8f54=_0x20b391[_0x2f443b(0x1b8)];this['_fetchMissChangesets'](_0x4b8f54)['then'](_0x5bcb97=>{const _0x27273f=_0x2f443b;_0x19056d[_0x27273f(0x11f)]({'cmd':_0x1e2dc3['RECV'],'code':_0x222ab7['OK'],'routeKey':_0x4b8f54['data'][_0x27273f(0x247)],'routeType':'','data':{'eventID':_0x3b8cc3['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x5bcb97}}});})[_0x2f443b(0x189)](_0x16ceb1=>{const _0x8e46b7=_0x2f443b;this['_logService'][_0x8e46b7(0x292)](_0x16ceb1),_0x328802();});return;}}_0xb3699b[_0x2f443b(0x251)](Zt(_0x20b391));},'close':()=>{const _0x234e37=_0x258f34;_0xb3699b[_0x234e37(0x111)](),_0x4a40c7[_0x234e37(0x245)]();}},_0x454ffb;}async[_0x50ca80(0x201)](_0x5bb42b,_0x2a13ab){const _0x941ef9=_0x50ca80;var _0x383db0;let {unitType:_0x1bf86a,unitID:_0x4c0458,changeset:_0x481f94}=_0x2a13ab[_0x941ef9(0x1b8)],_0x4d6ca7={'unitID':_0x4c0458,'memberID':_0x5bb42b['memberID'],'type':_0x1bf86a,'changeset':_0x58dede(_0x481f94)},_0x365be0=this[_0x941ef9(0x136)][_0x941ef9(0x106)](U),_0x17de66=$t((_0x383db0=_0x365be0==null?void 0x0:_0x365be0['collabSubmitChangesetUrl'])==null?'/universer-api/comb':_0x383db0,_0x1bf86a,_0x4c0458);try{await this[_0x941ef9(0x1da)][_0x941ef9(0x266)](_0x17de66,{'body':_0x4d6ca7});}catch(_0x296653){throw this['_logService'][_0x941ef9(0x292)](_0x941ef9(0x318),_0x941ef9(0x29e)),_0x296653;}}async[_0x50ca80(0x296)](_0x2070dd){const _0xadb563=_0x50ca80;let {unitID:_0x1c5ef9,from:_0xd7f011,to:_0x40c7d2,unitType:_0x264e4b}=_0x2070dd[_0xadb563(0x1b8)];return(await this[_0xadb563(0x23f)][_0xadb563(0x1c0)]({'metadata':void 0x0},{'unitID':_0x1c5ef9,'type':_0x264e4b,'from':_0xd7f011,'to':_0x40c7d2}))[_0xadb563(0x15e)]['map'](_0x7fe3e0=>((_0x7fe3e0[_0xadb563(0x301)]===null||_0x7fe3e0[_0xadb563(0x301)]===void 0x0)&&(_0x7fe3e0['mutations']=[]),_0x7fe3e0));}};en=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x4bd6ab(_0x2872f5)),R(0x2,_0x25ecfe),R(0x3,_0x5b7991),R(0x4,_0x61d41c)],en);let Q=class extends _0x9fa895{get[_0x50ca80(0x2e9)](){const _0x524cc0=_0x50ca80;return this[_0x524cc0(0x2cf)][_0x524cc0(0x163)]();}constructor(_0x43608d,_0x62e70,_0x123064,_0x42d7dc,_0x2cd0aa,_0x1308b1){const _0x1316d5=_0x50ca80;super(),this['_injector']=_0x43608d,this[_0x1316d5(0x313)]=_0x62e70,this['_configService']=_0x123064,this[_0x1316d5(0x130)]=_0x42d7dc,this[_0x1316d5(0x286)]=_0x2cd0aa,this['_networkConditionService']=_0x1308b1,I(this,_0x1316d5(0x2cf),new _0x4a3716(void 0x0)),I(this,'socket$',this[_0x1316d5(0x2cf)]['asObservable']()),I(this,'_candidateSocket',null),I(this,'_sessions',new Map()),I(this,'_status$',new _0x4a3716(0x0)),I(this,'status$',this[_0x1316d5(0x33a)][_0x1316d5(0x1d3)]()),I(this,_0x1316d5(0x1a5),!0x1),I(this,_0x1316d5(0x2d5),void 0x0),I(this,'_retryCount',0x0),I(this,'_sendHeartbeatTimer',void 0x0),I(this,_0x1316d5(0x13c),void 0x0),this[_0x1316d5(0x18c)]();}[_0x50ca80(0x18c)](){const _0x364087=_0x50ca80;this[_0x364087(0x267)]&&this[_0x364087(0x2e8)](this['_networkConditionService'][_0x364087(0x148)]['subscribe'](_0x3ba928=>{const _0x2ffafe=_0x364087;_0x3ba928&&!this[_0x2ffafe(0x2e9)]&&this[_0x2ffafe(0x2a5)](),_0x3ba928||this[_0x2ffafe(0x15f)]();}));}['dispose'](){const _0x42505e=_0x50ca80;super[_0x42505e(0x245)](),this['_clearRetryConnectingTimer'](),this['_clearTimeoutTimer'](),this[_0x42505e(0x124)](),this[_0x42505e(0x10b)][_0x42505e(0x1bf)](_0x30ea02=>_0x30ea02[_0x42505e(0x245)]()),this[_0x42505e(0x10b)][_0x42505e(0x272)](),this[_0x42505e(0x33a)][_0x42505e(0x340)]();}async[_0x50ca80(0x16c)](_0x3eb61b){const _0x5f13ef=_0x50ca80;if(this[_0x5f13ef(0x10b)]['has'](_0x3eb61b))return this['_sessions'][_0x5f13ef(0x2e5)](_0x3eb61b);this['_tryEnsureSocket']();let _0x1cf9ec=this['_injector'][_0x5f13ef(0x25a)](Ot,_0x3eb61b,this[_0x5f13ef(0x2cf)][_0x5f13ef(0x1d3)]());return this[_0x5f13ef(0x10b)][_0x5f13ef(0x2d4)](_0x3eb61b,_0x1cf9ec),_0x1cf9ec;}[_0x50ca80(0x1f7)](_0xed0716){const _0x412f61=_0x50ca80;let _0x2d3a61=this[_0x412f61(0x10b)][_0x412f61(0x2e5)](_0xed0716);if(_0x2d3a61&&(this[_0x412f61(0x10b)]['delete'](_0xed0716),_0x2d3a61[_0x412f61(0x111)]()),!this[_0x412f61(0x10b)][_0x412f61(0x177)]){var _0x13e973;(_0x13e973=this[_0x412f61(0x2e9)])==null||_0x13e973['close']();}}['reconnect'](){const _0x3c81f5=_0x50ca80;this[_0x3c81f5(0x304)]=0x0,this[_0x3c81f5(0x211)](),this['_tryReconnect']();}[_0x50ca80(0x211)](){const _0x362796=_0x50ca80;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x362796(0x2d5)]),this[_0x362796(0x2d5)]=null);}async[_0x50ca80(0x1d0)](){const _0x5785e4=_0x50ca80;var _0x3257d5;let _0x3f4d04=this[_0x5785e4(0x136)][_0x5785e4(0x106)](U),_0x319e2d=(_0x3257d5=_0x3f4d04==null?void 0x0:_0x3f4d04[_0x5785e4(0x333)])==null?ut:_0x3257d5,_0x2127f6=await this['_socketService'][_0x5785e4(0x1b0)](_0x319e2d);return this['_candidateSocket']=_0x2127f6,_0x2127f6;}async['_tryEnsureSocket'](){const _0x36d13d=_0x50ca80;try{var _0x2baa64,_0x5df696;let _0x1fd012=(_0x2baa64=(_0x5df696=this['_socket'])==null?this[_0x36d13d(0x23e)]:_0x5df696)==null?await this[_0x36d13d(0x1d0)]():_0x2baa64;if(_0x1fd012){let _0x32cb04=_0x1fd012[_0x36d13d(0x251)];_0x1fd012[_0x36d13d(0x251)]=_0x200e66=>(_0x200e66[_0x36d13d(0x125)]!==_0x1e2dc3[_0x36d13d(0x10a)]&&this[_0x36d13d(0x22b)](),_0x32cb04[_0x36d13d(0x128)](_0x1fd012,[_0x200e66])),_0x1fd012[_0x36d13d(0x1fc)][_0x36d13d(0x1fe)](_0x5a96b9=>this['_onMessage'](_0x1fd012,_0x5a96b9)),_0x1fd012[_0x36d13d(0x274)][_0x36d13d(0x2b3)](_0x1174d3(0x1))[_0x36d13d(0x1fe)](_0xe9b1e5=>this[_0x36d13d(0x313)][_0x36d13d(0x292)](_0x36d13d(0x2a8),_0xe9b1e5)),_0x1fd012['open$'][_0x36d13d(0x2b3)](_0x1174d3(0x1))[_0x36d13d(0x1fe)](()=>{const _0x243f51=_0x36d13d;this[_0x243f51(0x2ce)](_0x1fd012);}),_0x1fd012['close$'][_0x36d13d(0x2b3)](_0x1174d3(0x1))[_0x36d13d(0x1fe)](_0xfbeae9=>{const _0x369cb8=_0x36d13d;this['_logService'][_0x369cb8(0x168)](_0x369cb8(0x329),_0x369cb8(0x138),_0xfbeae9),this[_0x369cb8(0x15c)]();});}}catch(_0x1999fd){this[_0x36d13d(0x313)][_0x36d13d(0x292)](_0x1999fd),this[_0x36d13d(0x15c)]();}}[_0x50ca80(0x2ce)](_0xf86c39){const _0x1d743b=_0x50ca80;this[_0x1d743b(0x313)][_0x1d743b(0x168)]('[CollaborationSessionService]',_0x1d743b(0xf2)),_0xf86c39[_0x1d743b(0x251)]({'cmd':_0x1e2dc3['HELLO']}),this[_0x1d743b(0x22b)]();}['_onOffline'](){const _0x5ae53c=_0x50ca80;this[_0x5ae53c(0x1a5)]=!0x1,this[_0x5ae53c(0x23e)]=null,this[_0x5ae53c(0x33a)][_0x5ae53c(0x11f)](0x2),this[_0x5ae53c(0x2cf)][_0x5ae53c(0x11f)](null),this['_clearTimeoutTimer'](),this[_0x5ae53c(0x124)]();}[_0x50ca80(0x15c)](){const _0x4cd3bb=_0x50ca80;var _0x4091a7;this[_0x4cd3bb(0x15f)](),this[_0x4cd3bb(0x304)]<((_0x4091a7=this[_0x4cd3bb(0x136)]['getConfig'](_0x4cd3bb(0x316)))==null?0x3:_0x4091a7)?(this[_0x4cd3bb(0x286)][_0x4cd3bb(0x355)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x4cd3bb(0x14c)]()):this[_0x4cd3bb(0x286)][_0x4cd3bb(0x355)]({'id':'SOCKET_FAILED'});}['_tryReconnect'](){const _0x92efcf=_0x50ca80;var _0xbb1a4a;let _0x4d0eac=this['_retryCount'],_0x11695d=this[_0x92efcf(0x136)]['getConfig'](U),_0xeb6137=_0x4d0eac===0x0?0x0:((_0xbb1a4a=_0x11695d==null?void 0x0:_0x11695d['retryConnectingInterval'])==null?0x4e20:_0xbb1a4a)*0x2**_0x4d0eac;this[_0x92efcf(0x2d5)]=setTimeout(()=>{const _0x44ca9f=_0x92efcf;clearTimeout(this[_0x44ca9f(0x2d5)]),this[_0x44ca9f(0x2d5)]=null,this[_0x44ca9f(0xef)]();},_0xeb6137),this[_0x92efcf(0x304)]+=0x1;}[_0x50ca80(0x343)](_0x453540,_0x4be79a){const _0x23e52c=_0x50ca80;let {cmd:_0x5c6377}=_0x4be79a;_0x5c6377===_0x1e2dc3[_0x23e52c(0x13a)]&&!this['_socketReady']&&(_0x453540[_0x23e52c(0x225)]=_0x4be79a['data'][_0x23e52c(0x225)],this[_0x23e52c(0x2cf)][_0x23e52c(0x11f)](_0x453540),this[_0x23e52c(0x33a)]['next'](0x3),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x5c6377===_0x1e2dc3[_0x23e52c(0x192)]&&this[_0x23e52c(0x351)](),this[_0x23e52c(0x22b)]();}[_0x50ca80(0x22b)](){const _0x164752=_0x50ca80;var _0x5e272b;this[_0x164752(0x124)](),this[_0x164752(0x1dd)]=setTimeout(()=>this[_0x164752(0x1f1)](),(_0x5e272b=this[_0x164752(0x136)][_0x164752(0x106)](_0x164752(0x1b9)))==null?0x7530:_0x5e272b);}['_sendHeartbeat'](){const _0x13628e=_0x50ca80;this[_0x13628e(0x2e9)]['send']({'cmd':_0x1e2dc3['HEARTBEAT']}),this[_0x13628e(0x33e)]();}[_0x50ca80(0x33e)](){const _0x4f4802=_0x50ca80;var _0x3f64df;this[_0x4f4802(0x13c)]=setTimeout(()=>this[_0x4f4802(0x15c)](),(_0x3f64df=this[_0x4f4802(0x136)][_0x4f4802(0x106)]('HEARTBEAT_TIMEOUT'))==null?mt:_0x3f64df);}[_0x50ca80(0x124)](){const _0x418a63=_0x50ca80;this[_0x418a63(0x1dd)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x418a63(0x1dd)]=null);}[_0x50ca80(0x351)](){const _0x4df150=_0x50ca80;this[_0x4df150(0x13c)]!=null&&(clearTimeout(this[_0x4df150(0x13c)]),this[_0x4df150(0x13c)]=null);}};Q=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x5b7991),R(0x2,_0x25ecfe),R(0x3,Qt),R(0x4,_0x4bd6ab(L)),R(0x5,_0x122efe(Yt))],Q);let tn=class extends _0x1e6e8b{constructor(_0x3f8365,_0x3eac56,_0x4e87b6,_0x4e5e21){const _0x5d26c7=_0x50ca80;var _0x348f1d;super(),this[_0x5d26c7(0x102)]=_0x3f8365,this[_0x5d26c7(0x28b)]=_0x3eac56,this['_configService']=_0x4e87b6,this[_0x5d26c7(0x257)]=_0x4e5e21,I(this,_0x5d26c7(0x244),new Map()),I(this,_0x5d26c7(0x2be),new _0x582e08()),I(this,_0x5d26c7(0x290),this[_0x5d26c7(0x2be)][_0x5d26c7(0x1d3)]()),((_0x348f1d=this[_0x5d26c7(0x136)][_0x5d26c7(0x106)](_0x5d26c7(0x12c)))==null?void 0x0:_0x348f1d[_0x5d26c7(0x1c4)])!==!0x1&&this[_0x5d26c7(0x237)]();}[_0x50ca80(0x245)](){const _0x1b928e=_0x50ca80;super[_0x1b928e(0x245)](),this[_0x1b928e(0x244)]['forEach'](_0x15c10e=>_0x15c10e[_0x1b928e(0x245)]()),this['_entities'][_0x1b928e(0x272)]();}[_0x50ca80(0xee)](_0x45a272){const _0x3c5d01=_0x50ca80;var _0x185c6e;return(_0x185c6e=this[_0x3c5d01(0x244)][_0x3c5d01(0x2e5)](_0x45a272))==null?null:_0x185c6e;}[_0x50ca80(0x19e)](_0x3a337a){let _0x5b781c=this['getCollabEntity'](_0x3a337a);return _0x5b781c?_0x97c2d4(_0x5b781c):this['_entityInit$']['pipe'](_0x4a6387(_0x573602=>_0x573602['unitID']===_0x3a337a));}[_0x50ca80(0x32e)](_0x1dea89){const _0x5795c4=_0x50ca80;return _0x1022a6(this[_0x5795c4(0x19e)](_0x1dea89)[_0x5795c4(0x2b3)](_0x3cf0ac(()=>void 0x0)));}[_0x50ca80(0x237)](){const _0x2f4db9=_0x50ca80;this['_univerInstanceService'][_0x2f4db9(0x1fd)](_0x261bc8[_0x2f4db9(0x144)])[_0x2f4db9(0x2b3)](_0x17aedf(this[_0x2f4db9(0x176)]),_0xd4ac63(0x10))[_0x2f4db9(0x1fe)](async _0x3a24fe=>{const _0x501386=_0x2f4db9;let _0x297890=_0x3a24fe[_0x501386(0x178)][_0x501386(0x2f9)](),_0x534ccf=await this[_0x501386(0x336)](_0x297890,_0x261bc8[_0x501386(0x144)]);this['_entities'][_0x501386(0x2d4)](_0x297890,_0x534ccf);}),this[_0x2f4db9(0x257)][_0x2f4db9(0x1fd)](_0x261bc8[_0x2f4db9(0x258)])[_0x2f4db9(0x2b3)](_0x17aedf(this[_0x2f4db9(0x176)]),_0xd4ac63(0x10))[_0x2f4db9(0x2b3)](_0x4a6387(_0x5baf1f=>!_0x5baf1f['unit'][_0x2f4db9(0x2f9)]()[_0x2f4db9(0x199)]('__')))[_0x2f4db9(0x1fe)](async _0x31713f=>{const _0x1865c8=_0x2f4db9;let _0x4db78a=_0x31713f[_0x1865c8(0x178)]['getUnitId'](),_0x4c9fd1=await this[_0x1865c8(0x336)](_0x4db78a,_0x261bc8[_0x1865c8(0x258)]);this['_entities']['set'](_0x4db78a,_0x4c9fd1);}),_0x12dbcf(this[_0x2f4db9(0x257)][_0x2f4db9(0x324)](_0x261bc8[_0x2f4db9(0x144)]),this[_0x2f4db9(0x257)][_0x2f4db9(0x324)](_0x261bc8[_0x2f4db9(0x258)]))[_0x2f4db9(0x2b3)](_0x17aedf(this[_0x2f4db9(0x176)]))['subscribe'](_0x50516d=>{const _0x1ec4ee=_0x2f4db9;let _0x2bbc8c=_0x50516d[_0x1ec4ee(0x2f9)](),_0x253019=this[_0x1ec4ee(0x244)][_0x1ec4ee(0x2e5)](_0x2bbc8c);_0x253019&&(_0x253019[_0x1ec4ee(0x245)](),this[_0x1ec4ee(0x244)][_0x1ec4ee(0x291)](_0x2bbc8c));});}async[_0x50ca80(0x336)](_0x39ee41,_0x63e56){const _0x5b1827=_0x50ca80;let _0x8e5f39=await this[_0x5b1827(0x28b)][_0x5b1827(0x16c)](_0x39ee41),_0x4e03f6=this[_0x5b1827(0x102)]['createInstance'](this[_0x5b1827(0x1ad)](_0x63e56),_0x39ee41,_0x63e56,_0x8e5f39);return await _0x4e03f6[_0x5b1827(0x331)](),this[_0x5b1827(0x2be)][_0x5b1827(0x11f)](_0x4e03f6),_0x4e03f6;}[_0x50ca80(0x1ad)](_0x233b94){const _0x29c4d8=_0x50ca80;switch(_0x233b94){case _0x261bc8[_0x29c4d8(0x258)]:return qt;case _0x261bc8[_0x29c4d8(0x144)]:return Jt;default:throw Error(_0x29c4d8(0x193)+_0x233b94);}}};tn=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x4bd6ab(Q)),R(0x2,_0x25ecfe),R(0x3,_0x2dad56)],tn);var nn=_0x50ca80(0x352),rn=_0x50ca80(0x184);let an=class extends _0x9fa895{constructor(_0x3222e5,_0x5725dd){const _0x325a32=_0x50ca80;super(),this[_0x325a32(0x257)]=_0x3222e5,this[_0x325a32(0x136)]=_0x5725dd,this['_init']();}[_0x50ca80(0x237)](){const _0x1ef531=_0x50ca80;this['disposeWithMe'](this[_0x1ef531(0x257)][_0x1ef531(0x2d1)][_0x1ef531(0x1fe)](()=>{const _0x514b40=_0x1ef531;var _0x4ce563;let _0x5b2000=this[_0x514b40(0x257)][_0x514b40(0x27a)](),_0x468176=(_0x4ce563=this['_configService']['getConfig'](_0x514b40(0x2dd)))==null?_0x514b40(0x24d):_0x4ce563;_0x5b2000 instanceof _0x33ac8d&&(_0x468176=_0x5b2000[_0x514b40(0x1e2)]),document[_0x514b40(0x137)]=_0x468176;}));}};function _0x3123(_0x45ff2d,_0x2e299d){_0x45ff2d=_0x45ff2d-0xe7;const _0x599755=_0x5997();let _0x31235c=_0x599755[_0x45ff2d];return _0x31235c;}an=z([R(0x0,_0x2dad56),R(0x1,_0x25ecfe)],an);let on=class{constructor(_0x208d7c,_0x36810d,_0x48751e){const _0x6b9b4a=_0x50ca80;this['_configService']=_0x208d7c,this['_httpService']=_0x36810d,this['localeService']=_0x48751e,this[_0x6b9b4a(0x331)]();}[_0x50ca80(0x331)](){const _0xe97a23=_0x50ca80;this[_0xe97a23(0x1da)][_0xe97a23(0x282)]({'priority':0x1,'interceptor':(_0x1583ac,_0x45f4c7)=>_0x45f4c7(_0x1583ac)[_0xe97a23(0x2b3)](_0x53be54(async _0x28afd0=>{const _0x69e300=_0xe97a23;let _0xfa1591=_0x28afd0;if(_0xfa1591[_0x69e300(0x1a6)]===0x191){if(typeof window>'u')throw Error(_0x69e300(0x21b));if(window['confirm'](this[_0x69e300(0xe9)]['t']('auth.needGotoLoginAlert'))){let _0x3d985e=window[_0x69e300(0x218)](window[_0x69e300(0x1be)]['href']);window[_0x69e300(0x1be)][_0x69e300(0x109)]=this[_0x69e300(0x2d7)]()+_0x69e300(0x107)+_0x3d985e;}}return _0xfa1591;}))});}[_0x50ca80(0x2d7)](){const _0x3edfd3=_0x50ca80;var _0x47d65b;let _0x389cea=this[_0x3edfd3(0x136)][_0x3edfd3(0x106)](U);return(_0x47d65b=_0x389cea==null?void 0x0:_0x389cea[_0x3edfd3(0xf6)])==null?_0x3edfd3(0x26a):_0x47d65b;}};on=z([R(0x0,_0x25ecfe),R(0x1,_0x4bd6ab(_0x2872f5)),R(0x2,_0x4bd6ab(_0x4d3fc2))],on);let sn=class extends _0x9fa895{constructor(_0x1b8922,_0x4275e8){const _0x500720=_0x50ca80;super(),this['_HTTPService']=_0x1b8922,this[_0x500720(0x136)]=_0x4275e8,I(this,_0x500720(0x22c),!0x1),this[_0x500720(0x349)]();}['_initMergeInterceptor'](){const _0x242362=_0x50ca80;let _0x4f7ccf=this;this[_0x242362(0x2e8)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x28486c({'isMatch'(_0x7d07a3){const _0xd7117a=_0x242362;var _0x28691a;if(_0x7d07a3[_0xd7117a(0x29d)]===_0xd7117a(0x103)&&(_0x28691a=_0x7d07a3[_0xd7117a(0x11d)])!=null&&_0x28691a[_0xd7117a(0x2d0)]){let {objectID:_0x7330ef,objectType:_0x1dcf78}=_0x7d07a3[_0xd7117a(0x11d)][_0xd7117a(0x2d0)]||{};if(!_0x7330ef||_0x1dcf78===void 0x0)return!0x1;let _0x4583ee=_0x4f7ccf[_0xd7117a(0x26b)]()+'/'+_0x1dcf78+'/object/'+_0x7330ef+_0xd7117a(0x1bd);if(_0x7d07a3[_0xd7117a(0x223)]===_0x4583ee)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x12cd72){const _0x383582=_0x242362;var _0x2fb279;return(_0x2fb279=_0x12cd72[_0x383582(0x11d)])==null?void 0x0:_0x2fb279[_0x383582(0x2d0)];},'mergeParamsToRequest'(_0x44edac,_0x284c94){const _0xcc3a42=_0x242362;let _0x218513=_0x4f7ccf[_0xcc3a42(0x26b)]()+_0xcc3a42(0x112),_0x33bf5f=_0x44edac[_0xcc3a42(0xec)]((_0x40e7a1,_0x2b6f70)=>{const _0x3ea4aa=_0xcc3a42;let {unitID:_0x12d0d5,objectID:_0x6d9986,objectType:_0x391cd8,actions:_0x469e4e}=_0x2b6f70;return _0x40e7a1[_0x12d0d5]||(_0x40e7a1[_0x12d0d5]={}),_0x40e7a1[_0x12d0d5][_0x6d9986]||(_0x40e7a1[_0x12d0d5][_0x6d9986]={'objectID':_0x6d9986,'objectType':_0x391cd8,'actions':[]}),_0x40e7a1[_0x12d0d5][_0x6d9986][_0x3ea4aa(0x208)][_0x3ea4aa(0x271)](..._0x469e4e),_0x40e7a1;},{}),_0x1b32b2=[];for(let _0x38eb0d in _0x33bf5f)for(let _0x56a4fc in _0x33bf5f[_0x38eb0d]){let {actions:_0x4063e0,objectType:_0x23170e}=_0x33bf5f[_0x38eb0d][_0x56a4fc],_0x4df8b0=[...new Set(_0x4063e0)];_0x1b32b2[_0xcc3a42(0x271)]({'unitID':_0x38eb0d,'objectID':_0x56a4fc,'objectType':_0x23170e,'actions':_0x4df8b0});}return new _0x1e9f1a('POST',_0x218513,{'headers':_0x284c94[_0xcc3a42(0x160)],'withCredentials':_0x284c94['withCredentials'],'responseType':_0x284c94['responseType'],'body':{'requests':_0x1b32b2}});}},{'distributeResult'(_0x4fc536,_0x1b9040){const _0x17f7a2=_0x242362;let {objectActions:_0x4540d5}=_0x4fc536;return _0x1b9040[_0x17f7a2(0x1c9)](_0x4062e1=>{const _0x2f8408=_0x17f7a2;let {unitID:_0x51e3ba,objectID:_0x1db8b2,actions:_0x85da6f}=_0x4062e1,_0x50947b=_0x4540d5[_0x2f8408(0x2de)](_0x23b91c=>_0x23b91c[_0x2f8408(0x247)]===_0x51e3ba&&_0x23b91c[_0x2f8408(0x1e5)]===_0x1db8b2);return{'config':_0x4062e1,'result':{'actions':_0x85da6f[_0x2f8408(0x1c9)](_0x3c84ec=>_0x50947b==null?void 0x0:_0x50947b['actions'][_0x2f8408(0x2de)](_0x9f189a=>_0x9f189a[_0x2f8408(0x224)]===_0x3c84ec))[_0x2f8408(0x2f5)](_0x2ff693=>!!_0x2ff693),'error':_0x4fc536[_0x2f8408(0x292)]}};});}})}));}[_0x50ca80(0x26b)](){const _0x4da804=_0x50ca80;var _0xa1e6d;let _0x13c659=this[_0x4da804(0x136)][_0x4da804(0x106)](U);return(_0xa1e6d=_0x13c659==null?void 0x0:_0x13c659[_0x4da804(0x16e)])==null?'/universer-api/authz':_0xa1e6d;}async[_0x50ca80(0xed)](_0x37f5be){const _0x52a08b=_0x50ca80;let _0x211007=this[_0x52a08b(0x26b)]()+'/'+_0x37f5be[_0x52a08b(0x19c)]+_0x52a08b(0x2b0);return(await this[_0x52a08b(0x24a)][_0x52a08b(0x266)](_0x211007,{'body':_0x37f5be}))['body'][_0x52a08b(0x1e5)]||'';}async[_0x50ca80(0x357)](_0x5e46fc){const _0x2b1164=_0x50ca80;let _0x41dac2=this['_getAPIPrefixPath']()+_0x2b1164(0x129);return(await this[_0x2b1164(0x24a)]['post'](_0x41dac2,{'body':_0x5e46fc}))['body'][_0x2b1164(0x127)];}async[_0x50ca80(0x24f)](_0x4878e3){const _0x3ea543=_0x50ca80;var _0x4c07a6;let _0x388515=this[_0x3ea543(0x26b)]()+'/'+_0x4878e3[_0x3ea543(0x19c)]+_0x3ea543(0x1a8)+_0x4878e3[_0x3ea543(0x1e5)],_0x1aa3c2=await this[_0x3ea543(0x24a)][_0x3ea543(0x30d)](_0x388515,{'body':_0x4878e3});if((_0x1aa3c2==null||(_0x4c07a6=_0x1aa3c2['body'])==null||(_0x4c07a6=_0x4c07a6['error'])==null?void 0x0:_0x4c07a6[_0x3ea543(0x12e)])!==0x1)throw Error(_0x3ea543(0x2f3));}async[_0x50ca80(0x167)](_0x433482){const _0x49df78=_0x50ca80;let _0x4eebfb=this['_getAPIPrefixPath']()+'/'+_0x433482['objectType']+_0x49df78(0x1a8)+_0x433482[_0x49df78(0x1e5)]+_0x49df78(0x1bd);return(await this['_HTTPService'][_0x49df78(0x266)](_0x4eebfb,{'body':_0x433482}))[_0x49df78(0x2d0)][_0x49df78(0x208)];}async[_0x50ca80(0x140)](_0x20361c){const _0x3a5401=_0x50ca80;let _0xb7e1f7=this['_getAPIPrefixPath']()+_0x3a5401(0x112);return(await this[_0x3a5401(0x24a)]['post'](_0xb7e1f7,{'body':{'requests':_0x20361c}}))[_0x3a5401(0x2d0)][_0x3a5401(0x1f8)];}async[_0x50ca80(0x1d1)](_0x180f2){const _0x277acc=_0x50ca80;let _0x4ca378=this['_getAPIPrefixPath']()+'/'+_0x180f2['objectType']+_0x277acc(0x121),_0x1e583f=await this[_0x277acc(0x24a)][_0x277acc(0x266)](_0x4ca378,{'body':_0x180f2});return{'roles':_0x1e583f[_0x277acc(0x2d0)][_0x277acc(0x1b2)],'actions':_0x1e583f[_0x277acc(0x2d0)][_0x277acc(0x208)]};}async[_0x50ca80(0x143)](_0x3e1c68){const _0x28116b=_0x50ca80;let _0x1d3347=this[_0x28116b(0x26b)]()+'/collaborator';await this[_0x28116b(0x24a)]['delete'](_0x1d3347,{'params':{'collaboratorID':_0x3e1c68['collaboratorID'],'objectID':_0x3e1c68[_0x28116b(0x1e5)],'unitID':_0x3e1c68['unitID']}});}async[_0x50ca80(0x1e6)](_0x1d8000){const _0x3e3735=_0x50ca80;let _0x1714d4=this[_0x3e3735(0x26b)]()+_0x3e3735(0x1aa);await this[_0x3e3735(0x24a)][_0x3e3735(0xfa)](_0x1714d4,{'body':_0x1d8000});}async[_0x50ca80(0x30b)](_0x56bcb7){const _0x1c3ab6=_0x50ca80;let _0x1b842d=this[_0x1c3ab6(0x26b)]()+_0x1c3ab6(0x1aa);await this[_0x1c3ab6(0x24a)][_0x1c3ab6(0x266)](_0x1b842d,{'body':_0x56bcb7});}async[_0x50ca80(0x1ca)](_0x599d48){const _0x2cf001=_0x50ca80;var _0x2d76db;let _0x5e508e=this[_0x2cf001(0x26b)]()+'/collaborator',_0x484d34=await this['_HTTPService']['get'](_0x5e508e,{'params':{'objectID':_0x599d48[_0x2cf001(0x1e5)],'unitID':_0x599d48[_0x2cf001(0x247)]}});return this['setCfgEnableObjInherit']((_0x2d76db=_0x484d34[_0x2cf001(0x2d0)][_0x2cf001(0x299)])==null?!0x1:_0x2d76db),_0x484d34['body']['collaborators'];}async[_0x50ca80(0x1ef)](_0x5cc0a6){const _0x2f954b=_0x50ca80;let _0x2a0b04=this[_0x2f954b(0x26b)]()+'/collaborator';await this[_0x2f954b(0x24a)][_0x2f954b(0x30d)](_0x2a0b04,{'body':_0x5cc0a6});}[_0x50ca80(0x1b5)](_0x4fe954){const _0x1b0d5f=_0x50ca80;this[_0x1b0d5f(0x22c)]=_0x4fe954;}[_0x50ca80(0x334)](){const _0x4afc6e=_0x50ca80;return this[_0x4afc6e(0x22c)];}};sn=z([R(0x0,_0x4bd6ab(_0x2872f5)),R(0x1,_0x4bd6ab(_0x25ecfe))],sn);function cn(_0x5ac272){const _0x517fa7=_0x50ca80;let _0x2fbe33=atob(_0x5ac272),_0x1d019b=new Uint8Array(_0x2fbe33[_0x517fa7(0x29f)]);for(let _0x1ba372=0x0;_0x1ba372<_0x2fbe33['length'];_0x1ba372++)_0x1d019b[_0x1ba372]=_0x2fbe33['charCodeAt'](_0x1ba372);return _0x1d019b;}function ln(_0x43564b){const _0xb3bb45=_0x50ca80;let _0x2e9fcf='';for(let _0x2aad01=0x0;_0x2aad01<_0x43564b['length'];_0x2aad01++)_0x2e9fcf+=String[_0xb3bb45(0x1ec)](_0x43564b[_0x2aad01]);return btoa(_0x2e9fcf);}function un(_0x3ec6f9,_0x44fbcf){let _0x1a049b=cn(_0x44fbcf),_0x1b977a=_0x2d6247(0x10);return ln(_0x3fda9d(_0x1b977a,_0x56ae54(_0x1a049b,_0x1b977a)['encrypt'](_0x1306c9(_0x3ec6f9))));}function dn(){const _0x59db84=_0x50ca80;let _0x4d9506=_0x55cc8b()['__Key__'];if(typeof window<'u'&&window[_0x59db84(0x1be)]!==void 0x0&&_0x4d9506){let _0x4d7b1f={'time':Math[_0x59db84(0x2fb)](Date[_0x59db84(0x217)]()/0x3e8),'domain':location['hostname']};return un(JSON['stringify'](_0x4d7b1f),_0x4d9506);}}let fn=class{constructor(_0x3fc698){const _0x19774e=_0x50ca80;this[_0x19774e(0x1da)]=_0x3fc698,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x1b3c2f=_0x50ca80;this[_0x1b3c2f(0x1da)][_0x1b3c2f(0x282)]({'interceptor':(_0x33050d,_0x41d7f1)=>{const _0x46e7ca=_0x1b3c2f;let _0x25f941=dn();return _0x25f941&&_0x33050d[_0x46e7ca(0x160)][_0x46e7ca(0x2d4)](_0x46e7ca(0x2bc),_0x25f941),_0x41d7f1(_0x33050d);}});}};fn=z([R(0x0,_0x4bd6ab(_0x2872f5))],fn);let pn=class extends _0x1e6e8b{constructor(_0x3fbee0,_0x277469,_0x2b8624){const _0x5de385=_0x50ca80;super(),this['_logService']=_0x3fbee0,this[_0x5de385(0x100)]=_0x277469,this[_0x5de385(0x1f5)]=_0x2b8624,I(this,_0x5de385(0x358),new _0x4a3716(null)),I(this,_0x5de385(0x198),this[_0x5de385(0x358)]['asObservable']());}async[_0x50ca80(0x2f8)](_0xc1ec96,_0x374589,_0x8ea170){const _0x22ac3f=_0x50ca80;this[_0x22ac3f(0x358)][_0x22ac3f(0x11f)]({'unitId':_0xc1ec96,'type':_0x374589});let _0x59cbbd=null;switch(_0x374589){case _0x261bc8['UNIVER_SHEET']:_0x59cbbd=await this[_0x22ac3f(0x100)][_0x22ac3f(0x142)](_0xc1ec96,_0x8ea170);break;case _0x261bc8[_0x22ac3f(0x258)]:_0x59cbbd=await this['_snapshotService'][_0x22ac3f(0x240)](_0xc1ec96,_0x8ea170);break;default:this[_0x22ac3f(0x313)][_0x22ac3f(0x292)](_0x22ac3f(0x16a),_0x22ac3f(0x310));break;}return _0x59cbbd;}async[_0x50ca80(0x14a)](_0x1216e9,_0x5d31c2,_0x27fa5e){const _0x3414b6=_0x50ca80;var _0x334263;this[_0x3414b6(0x358)][_0x3414b6(0x11f)]({'unitId':_0x1216e9,'type':_0x5d31c2,'subUnitId':_0x27fa5e});let _0x11914a=0x0,_0x2cd7a6=await((_0x334263=this[_0x3414b6(0x1f5)])==null?void 0x0:_0x334263[_0x3414b6(0x348)](_0x1216e9));return _0x2cd7a6&&(_0x2cd7a6[_0x3414b6(0x243)]||_0x2cd7a6[_0x3414b6(0x301)][_0x3414b6(0x29f)]!==0x0)&&(_0x11914a=_0x2cd7a6['rev']),_0x11914a===0x0&&this['_logService'][_0x3414b6(0x168)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3414b6(0x2f8)](_0x1216e9,_0x5d31c2,_0x11914a);}};pn=z([R(0x0,_0x5b7991),R(0x1,_0x4bd6ab(_0x195e17)),R(0x2,_0x122efe(V))],pn);let mn=class{constructor(_0x452d12,_0x4c3421,_0x59787b){const _0x2df6ab=_0x50ca80;this[_0x2df6ab(0x1da)]=_0x452d12,this[_0x2df6ab(0x136)]=_0x4c3421,this[_0x2df6ab(0x257)]=_0x59787b,I(this,_0x2df6ab(0x300),0x0),I(this,'_change$',new _0x582e08()),I(this,_0x2df6ab(0x122),this['_change$']),I(this,_0x2df6ab(0x2ea),new Map());}['setWaitCount'](_0x490bca){const _0x26ac30=_0x50ca80;this[_0x26ac30(0x300)]=_0x490bca,this[_0x26ac30(0x33c)]['next'](_0x490bca);}['getImageSourceCache'](_0x516fd9,_0x51f246){const _0x3631ff=_0x50ca80;if(_0x51f246===_0x58c991[_0x3631ff(0x180)]){let _0x3f1d35=new Image();return _0x3f1d35[_0x3631ff(0x1c7)]=_0x516fd9,_0x3f1d35;}return this[_0x3631ff(0x2ea)][_0x3631ff(0x2e5)](_0x516fd9);}['addImageSourceCache'](_0x539f84,_0x26c6e8,_0x152b57){const _0x4c8c8f=_0x50ca80;_0x26c6e8===_0x58c991[_0x4c8c8f(0x180)]||_0x152b57==null||this[_0x4c8c8f(0x2ea)][_0x4c8c8f(0x2d4)](_0x539f84,_0x152b57);}async[_0x50ca80(0x146)](_0x492f06){const _0x2ef0a8=_0x50ca80;try{let _0x5122a9=this[_0x2ef0a8(0x1d4)](this[_0x2ef0a8(0x353)](),''+_0x492f06),_0x2f097e=(await this['_httpService'][_0x2ef0a8(0x2e5)](_0x5122a9))['body'];if(_0x2f097e[_0x2ef0a8(0x292)]&&_0x2f097e[_0x2ef0a8(0x292)][_0x2ef0a8(0x12e)]===_0x111d5a['OK']){let _0x507d55=_0x3243cf(_0x2f097e[_0x2ef0a8(0x223)],this[_0x2ef0a8(0x345)]());return Promise['resolve'](_0x507d55);}return Promise[_0x2ef0a8(0x276)](_0x2f097e[_0x2ef0a8(0x292)]);}catch(_0x343367){return Promise[_0x2ef0a8(0x276)](_0x343367);}}async[_0x50ca80(0x2c9)](_0x24a54f){const _0xf8507c=_0x50ca80;let _0x5d54de='';if(!_0x492880[_0xf8507c(0x202)](_0x24a54f[_0xf8507c(0x2e3)]))return this[_0xf8507c(0x30c)](),Promise[_0xf8507c(0x276)](Error(_0x58b178[_0xf8507c(0x347)]));if(_0x24a54f[_0xf8507c(0x177)]>_0x5631f8())return this[_0xf8507c(0x30c)](),Promise['reject'](Error(_0x58b178[_0xf8507c(0x11e)]));try{let _0x413887=new FormData();_0x413887['append'](_0xf8507c(0x1ae),_0x24a54f);let _0x54d6ff=this['_univerInstanceService'][_0xf8507c(0x27a)](),_0x15bfc1=_0x54d6ff==null?void 0x0:_0x54d6ff[_0xf8507c(0x2f9)]();if(!_0x15bfc1)throw Error(_0xf8507c(0x252));let _0x2e971c=this['_getUploadFileURL']()+_0xf8507c(0xf0)+_0x24a54f[_0xf8507c(0x177)]['toString']()+'&source='+_0x1897c5[_0xf8507c(0x116)]+_0xf8507c(0x289)+encodeURIComponent(_0x15bfc1),_0x55ace9={'body':_0x413887},_0x1b1d18=(await this[_0xf8507c(0x1da)][_0xf8507c(0x266)](_0x2e971c,_0x55ace9))[_0xf8507c(0x2d0)];if(typeof _0x1b1d18[_0xf8507c(0x131)]!='string')return this[_0xf8507c(0x30c)](),Promise[_0xf8507c(0x276)](Error(_0x58b178[_0xf8507c(0x2e2)]));_0x5d54de=_0x1b1d18[_0xf8507c(0x131)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x58b178['ERROR_IMAGE']));}return new Promise((_0x59d97f,_0x2b8c33)=>{const _0x11e99c=_0xf8507c;let _0x355ed5=new FileReader();_0x355ed5[_0x11e99c(0x170)](_0x24a54f),_0x355ed5[_0x11e99c(0x13f)]=_0x284cf6=>{const _0x1cc7d1=_0x11e99c;var _0x3a96eb;let _0xf4f7d0=(_0x3a96eb=_0x284cf6[_0x1cc7d1(0x32b)])==null?void 0x0:_0x3a96eb[_0x1cc7d1(0x18a)];if(_0xf4f7d0==null){this[_0x1cc7d1(0x30c)](),_0x2b8c33(Error(_0x58b178[_0x1cc7d1(0x2e2)]));return;}_0x59d97f({'imageId':_0x5f423d(0x6),'imageSourceType':_0x58c991[_0x1cc7d1(0x315)],'source':_0x5d54de,'base64Cache':_0xf4f7d0,'status':_0x58b178['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x50ca80(0x1db)](){const _0x1c1888=_0x50ca80;var _0x2629ea;let _0x419e1a=this[_0x1c1888(0x136)]['getConfig'](U);return(_0x2629ea=_0x419e1a==null?void 0x0:_0x419e1a[_0x1c1888(0x22f)])==null?_0x1c1888(0x273):_0x2629ea;}[_0x50ca80(0x353)](){const _0x445be0=_0x50ca80;var _0xa535e2;let _0x36eb28=this['_configService'][_0x445be0(0x106)](U);return(_0xa535e2=_0x36eb28==null?void 0x0:_0x36eb28[_0x445be0(0x2ca)])==null?_0x445be0(0x26d):_0xa535e2;}['_getDownloadEndpointURL'](){const _0x5e69be=_0x50ca80;var _0x1e648d;let _0x32f878=this['_configService']['getConfig'](U);return(_0x1e648d=_0x32f878==null?void 0x0:_0x32f878[_0x5e69be(0x2a1)])==null?location[_0x5e69be(0x346)]:_0x1e648d;}['_replaceFileID'](_0x227687,_0x30b674){const _0x1cc17b=_0x50ca80;return _0x227687['replace'](_0x1cc17b(0xea),_0x30b674);}[_0x50ca80(0x30c)](){const _0x230496=_0x50ca80;--this[_0x230496(0x300)],this[_0x230496(0x33c)][_0x230496(0x11f)](this[_0x230496(0x300)]);}};mn=z([R(0x0,_0x4bd6ab(_0x2872f5)),R(0x1,_0x25ecfe),R(0x2,_0x4bd6ab(_0x2dad56))],mn);let hn=class{constructor(_0x2cde5a,_0x1fb484){const _0x3452c4=_0x50ca80;this[_0x3452c4(0x136)]=_0x2cde5a,this[_0x3452c4(0x24a)]=_0x1fb484;}[_0x50ca80(0x26b)](){const _0x54dffd=_0x50ca80;var _0x5b76b1;let _0x3cb23a=this[_0x54dffd(0x136)]['getConfig'](U);return(_0x5b76b1=_0x3cb23a==null?void 0x0:_0x3cb23a[_0x54dffd(0x16e)])==null?_0x54dffd(0x166):_0x5b76b1;}async[_0x50ca80(0x357)](_0x42c507){const _0x238ffc=_0x50ca80;let _0x4e3ac4=this[_0x238ffc(0x26b)]()+'/collaborator';return{'list':[{'title':_0x238ffc(0x10f),'mentions':(await this['_HTTPService'][_0x238ffc(0x2e5)](_0x4e3ac4,{'params':{'objectID':_0x42c507[_0x238ffc(0x263)],'unitID':_0x42c507[_0x238ffc(0x263)]}}))[_0x238ffc(0x2d0)]['collaborators'][_0x238ffc(0x1c9)](_0x78e745=>({'objectId':_0x78e745['id'],'name':_0x78e745[_0x238ffc(0x2c6)][_0x238ffc(0x1e2)],'metadata':{'icon':_0x78e745['subject'][_0x238ffc(0x1e3)]},'label':_0x78e745[_0x238ffc(0x2c6)][_0x238ffc(0x1e2)],'objectType':_0x4ced22[_0x238ffc(0x319)]})),'metadata':{},'type':_0x4ced22[_0x238ffc(0x319)]}]};}};hn=z([R(0x0,_0x4bd6ab(_0x25ecfe)),R(0x1,_0x4bd6ab(_0x2872f5))],hn);let gn=class extends _0x1e6e8b{constructor(_0x141828,_0x5376e9,_0x4c4b7c,_0x3ec3af,_0x40837b){const _0x178400=_0x50ca80;super(),this[_0x178400(0x102)]=_0x141828,this['_univerInstanceService']=_0x5376e9,this[_0x178400(0x187)]=_0x4c4b7c,this['_collaborationSessionService']=_0x3ec3af,this[_0x178400(0x286)]=_0x40837b,this[_0x178400(0x35d)](),this[_0x178400(0x33b)]();}['_initCloseConn'](){const _0x31622b=_0x50ca80;let _0x4e7e30=async _0x29fe6f=>{const _0x54149c=_0x3123;(await this[_0x54149c(0x25d)][_0x54149c(0x16c)](_0x29fe6f))['event$'][_0x54149c(0x2b3)](_0x4a6387(_0x464d5b=>_0x464d5b[_0x54149c(0x27c)]===_0x3b8cc3[_0x54149c(0x188)]),_0x5d5659(this[_0x54149c(0x176)]))['subscribe'](_0x59c864=>{const _0x4e1f53=_0x54149c;let {reason:_0x10eabf}=_0x59c864['data'];this[_0x4e1f53(0x286)][_0x4e1f53(0x355)]({'id':_0x4e1f53(0x314),'data':_0x10eabf}),this[_0x4e1f53(0x187)][_0x4e1f53(0x1ab)](new _0x2c6ff9(_0x29fe6f)['id'],!0x1),this[_0x4e1f53(0x25d)][_0x4e1f53(0x1f7)](_0x29fe6f);});};_0x12dbcf(this[_0x31622b(0x257)]['getTypeOfUnitAdded$'](_0x261bc8[_0x31622b(0x144)]),this[_0x31622b(0x257)][_0x31622b(0x1fd)](_0x261bc8[_0x31622b(0x258)]))['pipe'](_0x3cf0ac(_0x280175=>_0x280175[_0x31622b(0x178)][_0x31622b(0x2f9)]()),_0x4a6387(_0x3afe8d=>!_0x3309a8(_0x3afe8d)),_0x5d5659(this[_0x31622b(0x176)]))[_0x31622b(0x1fe)](_0x542d0f=>{_0x4e7e30(_0x542d0f);});}[_0x50ca80(0x35d)](){const _0x23b92f=_0x50ca80;let _0x155cdf=async _0x477e61=>{const _0x2d9596=_0x3123;let _0x35676b=await this[_0x2d9596(0x25d)]['requireSession'](_0x477e61),_0x4a3582=this[_0x2d9596(0x102)][_0x2d9596(0x2e5)](_0x11aeaf);_0x35676b[_0x2d9596(0x1a7)][_0x2d9596(0x2b3)](_0x4a6387(_0x53963e=>_0x53963e[_0x2d9596(0x27c)]===_0x3b8cc3[_0x2d9596(0x306)]),_0x5d5659(this['dispose$']))['subscribe'](_0x1f9fd5=>{const _0x4e1575=_0x2d9596;let {objectId:_0x38fd3f}=_0x1f9fd5['data'];_0x38fd3f===_0x477e61?_0x4a3582[_0x4e1575(0x104)](_0x477e61):_0x4a3582[_0x4e1575(0x344)](_0x477e61,_0x38fd3f);});};_0x12dbcf(this[_0x23b92f(0x257)][_0x23b92f(0x1fd)](_0x261bc8[_0x23b92f(0x144)]))[_0x23b92f(0x2b3)](_0x3cf0ac(_0x2be71a=>_0x2be71a[_0x23b92f(0x178)][_0x23b92f(0x2f9)]()),_0x4a6387(_0xd231aa=>!_0x3309a8(_0xd231aa)),_0x5d5659(this[_0x23b92f(0x176)]))[_0x23b92f(0x1fe)](_0xf68b92=>{_0x155cdf(_0xf68b92);});}};gn=z([R(0x0,_0x4bd6ab(_0x280033)),R(0x1,_0x2dad56),R(0x2,_0x393a1b),R(0x3,_0x4bd6ab(Q)),R(0x4,_0x4bd6ab(L))],gn);let _n=class{constructor(_0x196647,_0x1ea403){const _0x3834db=_0x50ca80;this[_0x3834db(0x136)]=_0x196647,this[_0x3834db(0x1da)]=_0x1ea403;}async[_0x50ca80(0x234)](_0x58d787,_0x41c228){const _0x1327f5=_0x50ca80;var _0x5ee5bf;let {unitID:_0x4ff1cc,type:_0x677e01,revision:_0x414846=0x0}=_0x41c228,_0x3aa136=this[_0x1327f5(0x2b4)]()+'/'+_0x677e01+'/unit/'+_0x4ff1cc+_0x1327f5(0x307)+_0x414846,_0x5c2c51=(await this[_0x1327f5(0x1da)][_0x1327f5(0x2e5)](_0x3aa136))[_0x1327f5(0x2d0)],_0x55a59e=(_0x5ee5bf=_0x5c2c51[_0x1327f5(0x2c5)])==null?void 0x0:_0x5ee5bf[_0x1327f5(0x1f9)];if(_0x55a59e){let _0x5178eb=_0x55a59e==null?void 0x0:_0x55a59e[_0x1327f5(0x2c1)];_0x55a59e[_0x1327f5(0x2c1)]=_0x2e6b4d['encode'](_0x3d3618(_0x5178eb)),Object[_0x1327f5(0x33f)](_0x55a59e['sheets'])[_0x1327f5(0x1bf)](([,_0x4d8123])=>{const _0x11acea=_0x1327f5;let _0x51ddff=_0x4d8123['originalMeta'];_0x4d8123[_0x11acea(0x2c1)]=_0x2e6b4d[_0x11acea(0x197)](_0x3d3618(_0x51ddff));});}return _0x5c2c51;}async[_0x50ca80(0x207)](_0x3f1e05,_0xc1a9cb){const _0x22f5e1=_0x50ca80;let {unitID:_0x3e8402,type:_0xf6ff78,blockID:_0x3c27fc}=_0xc1a9cb,_0x511406=this[_0x22f5e1(0x2cb)]()+'/'+_0xf6ff78+_0x22f5e1(0x1c1)+_0x3e8402+_0x22f5e1(0x120)+_0x3c27fc;return(await this[_0x22f5e1(0x1da)][_0x22f5e1(0x2e5)](_0x511406))['body'];}async[_0x50ca80(0x1c6)](_0x29a498,_0x27f688){const _0x5a769d=_0x50ca80;let {unitID:_0x35117e,type:_0x18adcc,blockID:_0x50909f}=_0x27f688,_0x29319=this['_getAPIPrefix']()+_0x5a769d(0x120)+_0x18adcc+'/unit/'+_0x35117e+_0x5a769d(0x120)+_0x50909f;return(await this[_0x5a769d(0x1da)][_0x5a769d(0x2e5)](_0x29319))['body'];}async[_0x50ca80(0x1c0)](_0x3f19d1,_0x408498){const _0x25bd60=_0x50ca80;let {unitID:_0x27e618,type:_0x1fbfca,from:_0x55120c,to:_0xf1962}=_0x408498,_0x7179bf=this[_0x25bd60(0x2cb)]()+'/'+_0x1fbfca+_0x25bd60(0x1c1)+_0x27e618+'/fetchmissing?from='+_0x55120c+_0x25bd60(0x2f4)+_0xf1962;return(await this['_httpService'][_0x25bd60(0x2e5)](_0x7179bf))[_0x25bd60(0x2d0)];}[_0x50ca80(0x2b4)](){const _0xad30fb=_0x50ca80;var _0x2d8f74;return(_0x2d8f74=this[_0xad30fb(0x136)][_0xad30fb(0x106)](_0xad30fb(0x235)))==null?this[_0xad30fb(0x2cb)]():_0x2d8f74;}[_0x50ca80(0x2cb)](){const _0x51932f=_0x50ca80;var _0x3f5da4;let _0x42309c=this[_0x51932f(0x136)][_0x51932f(0x106)](U);return(_0x3f5da4=_0x42309c==null?void 0x0:_0x42309c[_0x51932f(0x216)])==null?_0x51932f(0x26c):_0x3f5da4;}async[_0x50ca80(0x2e7)](_0x16d3f8,_0x240bc6){const _0x1451d9=_0x50ca80;let _0x5a7afa=_0x1451d9(0x2c8)+_0x240bc6[_0x1451d9(0x2e3)]+_0x1451d9(0x1c1)+_0x240bc6['unitID']+_0x1451d9(0x16f);return(await this[_0x1451d9(0x1da)][_0x1451d9(0x2e5)](_0x5a7afa,{'params':{'resourceId':JSON['stringify'](_0x240bc6['resourceIDs'])}}))[_0x1451d9(0x2d0)];}['saveSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x50ca80(0x2c0)](){const _0x1e966c=_0x50ca80;throw Error(_0x1e966c(0x110));}[_0x50ca80(0x12b)](){const _0x110bc2=_0x50ca80;throw Error(_0x110bc2(0x110));}[_0x50ca80(0x27f)](){const _0x45b38b=_0x50ca80;throw Error(_0x45b38b(0x110));}[_0x50ca80(0x1cb)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x50ca80(0x2f7)](){const _0xd3d8fa=_0x50ca80;throw Error(_0xd3d8fa(0x110));}};_n=z([R(0x0,_0x25ecfe),R(0x1,_0x4bd6ab(_0x2872f5))],_n);let vn=class extends _0x2585ac{constructor(_0x1cd924,_0x4ea8e4,_0x25fd7d,_0x4930ba,_0x16a0bc){const _0x4d2e11=_0x50ca80;super(_0x1cd924,_0x4ea8e4,_0x25fd7d),this[_0x4d2e11(0x1a3)]=_0x4930ba,this[_0x4d2e11(0x313)]=_0x16a0bc;}['transformUndoRedo'](_0x238be8,_0x1c279f){const _0x495333=_0x50ca80;let _0x460a87=this[_0x495333(0x34a)](_0x238be8);if(_0x460a87)try{let _0x5ea703=this[_0x495333(0x270)](_0x460a87,_0x1c279f);this[_0x495333(0x15b)](_0x238be8,_0x5ea703);}catch(_0x50704a){this['_logService'][_0x495333(0x292)]('[CollaborationUndoRedoService]',_0x50704a),this[_0x495333(0x171)](_0x238be8);}let _0x88b476=this[_0x495333(0x29b)](_0x238be8);if(_0x88b476)try{let _0x4bf838=this[_0x495333(0x270)](_0x88b476,_0x1c279f);this['_substituteRedoStack'](_0x238be8,_0x4bf838);}catch(_0x21a0d3){this[_0x495333(0x313)]['error'](_0x21a0d3),this[_0x495333(0x24b)](_0x238be8);}}[_0x50ca80(0x171)](_0x45577d){const _0x418cf4=_0x50ca80;let _0x2dbca2=this[_0x418cf4(0x34a)](_0x45577d);_0x2dbca2&&(_0x2dbca2['length']=0x0,this[_0x418cf4(0x254)]());}[_0x50ca80(0x24b)](_0x2c8efb){const _0x3e647d=_0x50ca80;let _0x2f112b=this[_0x3e647d(0x29b)](_0x2c8efb);_0x2f112b&&(_0x2f112b[_0x3e647d(0x29f)]=0x0,this['_updateStatus']());}[_0x50ca80(0x15b)](_0x3e65ee,_0x3f4e83){const _0x1686dd=_0x50ca80;this[_0x1686dd(0x113)]['set'](_0x3e65ee,_0x3f4e83),this[_0x1686dd(0x254)]();}[_0x50ca80(0x173)](_0x3e82dc,_0x2d4aac){const _0x17d35b=_0x50ca80;this[_0x17d35b(0x2fc)]['set'](_0x3e82dc,_0x2d4aac),this['_updateStatus']();}[_0x50ca80(0x270)](_0x2592ef,_0x10545a){const _0x28cfb4=_0x50ca80;let _0x19f87d=[],_0x3b5a90=_0x10545a,_0x421950=_0x10545a;for(let _0x8d5878=_0x2592ef['length']-0x1;_0x8d5878>=0x0;_0x8d5878--){let {unitID:_0xe00318,undoMutations:_0x5af3db,redoMutations:_0x1a601b}=_0x2592ef[_0x8d5878],_0xc500fa=this[_0x28cfb4(0x1a3)][_0x28cfb4(0x25f)](_0x3b5a90,_0x5af3db),_0x5af437=this[_0x28cfb4(0x1a3)][_0x28cfb4(0x25f)](_0x421950,_0x1a601b);if(_0x53fd64(_0xc500fa)||_0x53fd64(_0x5af437)){this['_logService'][_0x28cfb4(0x292)]('[CollaborationUndoRedoService]',_0x28cfb4(0x31d),_0xc500fa,_0x5af437);break;}_0x3b5a90=_0xc500fa[_0x28cfb4(0xf3)],_0x421950=_0x5af437[_0x28cfb4(0xf3)],_0x19f87d[_0x28cfb4(0x271)]({'unitID':_0xe00318,'undoMutations':_0xc500fa[_0x28cfb4(0x2bd)],'redoMutations':_0x5af437[_0x28cfb4(0x2bd)]});}return _0x19f87d[_0x28cfb4(0x30a)]();}};vn=z([R(0x0,_0x2dad56),R(0x1,_0x2d9981),R(0x2,_0x711b23),R(0x3,_0x1726e6),R(0x4,_0x5b7991)],vn);let $=class extends _0x10339e{constructor(_0x21e932={},_0x37ab12,_0x3221b2,_0xc7f0eb){const _0x1c8824=_0x50ca80;super(),this[_0x1c8824(0x215)]=_0x21e932,this[_0x1c8824(0x313)]=_0x37ab12,this[_0x1c8824(0x102)]=_0x3221b2,this['_configService']=_0xc7f0eb;let {..._0x585441}=_0x48b3d1({},Nt,_0x21e932);if(!_0x585441['socketService'])throw Error(_0x1c8824(0x31e));this['_config']=_0x585441,this[_0x1c8824(0x136)]['setConfig'](U,_0x585441);}[_0x50ca80(0x196)](){const _0x3a7901=_0x50ca80;this[_0x3a7901(0x123)](),this[_0x3a7901(0x1a1)]();}['_registerDependencies'](){const _0x186e91=_0x50ca80;var _0x1432fc,_0x1b6df0;this[_0x186e91(0x102)]['has'](_0x16c6c1)&&this[_0x186e91(0x313)]['error'](_0x186e91(0x220),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x1eae7c=_0x177d9b([[_0x16c6c1,{'useClass':vn}],[Q],[B],[H],[on],[fn],[wt],[gn],[L],[pn],[Qt,{'useClass':this['_config']['socketService']}],[_0x61d41c,{'useClass':_n}],[_0x5e68f5,{'useClass':sn}],[_0x505a62,{'useClass':mn}],[_0x1849c0,{'useClass':hn}],[tn],[an]],(_0x1432fc=this[_0x186e91(0x215)])==null?void 0x0:_0x1432fc[_0x186e91(0x2fd)]);if(!((_0x1b6df0=this['_config'])!=null&&_0x1b6df0['enableSingleActiveInstanceLock'])){let _0x86c5ed=_0x1eae7c[_0x186e91(0x179)](([_0x4d0e34])=>_0x4d0e34===jt);_0x86c5ed!==-0x1&&_0x1eae7c['splice'](_0x86c5ed,0x1);}_0x47484a(this['_injector'],_0x1eae7c);}['_initDependencies'](){const _0x594f5a=_0x50ca80;var _0x19c2b2,_0x1c81e3;if(this[_0x594f5a(0x102)][_0x594f5a(0x2e5)](_0x2872f5)[_0x594f5a(0x282)]({'priority':0x14,'interceptor':_0x48583f({'maxParallel':0x6})}),!((_0x19c2b2=this[_0x594f5a(0x215)])!=null&&_0x19c2b2['enableOfflineEditing'])){var _0x2468ed;(_0x2468ed=this[_0x594f5a(0x102)][_0x594f5a(0x2e5)](V,_0x4cdc56['OPTIONAL']))==null||_0x2468ed['disableLocalCache']();}(_0x1c81e3=this[_0x594f5a(0x215)])!=null&&_0x1c81e3['enableAuthServer']&&_0x16b47b(this['_injector'],[[on]]),_0x16b47b(this[_0x594f5a(0x102)],[[fn],[tn],[gn]]);}};I($,_0x50ca80(0x34f),_0x50ca80(0x11b)),I($,_0x50ca80(0x159),nn),I($,'version',rn),$=z([_0x36b668(_0x534395,_0x4e4157,_0x2a9b2f),R(0x1,_0x5b7991),R(0x2,_0x4bd6ab(_0x280033)),R(0x3,_0x25ecfe)],$);export{sn as AuthzIoHttpService,q as AwaitingState,J as AwaitingWithPendingState,U as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,tn as CollaborationController,Kt as CollaborationEntity,mn as CollaborationImageIoService,Ot as CollaborationSession,Q as CollaborationSessionService,en as CollaborationSocketService,Ht as CollaborationStatus,Ct as CollaborationUIEventId,L as CollaborationUIEventService,vn as CollaborativeUndoRedoService,wt as CommentService,Y as ConflictState,ut as DEFAULT_COLLAB_WEB_SOCKET_URL,yt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,dt as DEFAULT_WS_SESSION_TICKET_URL,pn as DataLoaderService,qt as DocCollaborationEntity,Z as FetchingMissState,ft as HEARTBEAT_INTERVAL_KEY,pt as HEARTBEAT_TIMEOUT_KEY,Qt as ICollaborationSocketService,V as ILocalCacheService,Yt as INetworkConditionService,jt as ISingleActiveUnitService,_t as LOCAL_CACHE_INTERVAL,gt as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,hn as MentionIoHttpService,X as OfflineState,K as PendingState,vt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,ht as RETRY_CONNECTING_MAX_COUNT_KEY,Et as SessionStatus,Jt as SheetCollaborationEntity,H as SheetTransformSelectionsService,_n as SnapshotServerOverHTTPService,G as SyncedState,Mt as UnitStatus,$ as UniverCollaborationClientPlugin,Xt as deserializeToCombResponse,kt as getLocalCacheKey,Zt as serializeCombRequest};
|