@univerjs-pro/collaboration-client 1.0.0-alpha.2 → 1.0.0-alpha.3
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/README.md +8 -2
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.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-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.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-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +6 -0
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -2
- package/lib/types/facade/f-collaboration.d.ts +40 -0
- package/lib/types/index.d.ts +6 -3
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +1 -4
- package/lib/types/services/collaboration-session/collaboration-changeset-translator.d.ts +4 -0
- package/lib/types/services/collaboration-session/collaboration-client-adapter.d.ts +39 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +5 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +14 -14
- package/lib/types/services/image-remote/image-io.service.d.ts +2 -4
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -16
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x8a6054=_0x4e5e;(function(_0x54b0aa,_0x5a64c9){const _0x320258=_0x4e5e,_0x1dafdd=_0x54b0aa();while(!![]){try{const _0x35a540=parseInt(_0x320258(0x3a4))/0x1*(parseInt(_0x320258(0x2b8))/0x2)+parseInt(_0x320258(0x215))/0x3+parseInt(_0x320258(0x2b9))/0x4+parseInt(_0x320258(0x34c))/0x5+parseInt(_0x320258(0x3e7))/0x6*(parseInt(_0x320258(0x2cb))/0x7)+-parseInt(_0x320258(0x31b))/0x8+-parseInt(_0x320258(0x229))/0x9*(parseInt(_0x320258(0x395))/0xa);if(_0x35a540===_0x5a64c9)break;else _0x1dafdd['push'](_0x1dafdd['shift']());}catch(_0xf8e8ed){_0x1dafdd['push'](_0x1dafdd['shift']());}}}(_0x13e4,0x5addb));import{ApplyBaseJson1Mutation as _0x3f56f6}from'@univerjs-pro/bases';import{CollaborationEvent as _0xaf3ca4,CompressMutationService as _0x3076ce,EmptyMutationInfo as _0x5ee03a,ISnapshotServerService as _0x17f9a7,ITransformService as _0x3a7b09,RevisionService as _0x2ae16f,SnapshotService as _0x298033,UniverCollaborationPlugin as _0x1e3474,b64DecodeUnicode as _0x53de1d,isTransformChangesetsSuccess as _0x6b1d9c,isTransformMutationsWithChangesetFailure as _0x9ff381,isTransformMutationsWithChangesetSuccess as _0x3b86d9,mapDocumentTypeToUniverInstanceType as _0x352118,parseChangesetToProtocol as _0x1302d1,parseProtocolChangeset as _0x5aeffd,textEncoder as _0x59abbe,uuidv4 as _0x5f1132}from'@univerjs-pro/collaboration';import{CommandType as _0x5e8c41,DependentOn as _0x3ad841,Disposable as _0x4dd34b,DisposableCollection as _0x1d27be,IAuthzIoService as _0x3854b9,ICommandService as _0x1b4da7,IConfigService as _0x29206e,IContextService as _0x190113,ILogService as _0x2b6744,IMentionIOService as _0xa55784,IPermissionService as _0x4fbdaa,IUndoRedoService as _0x5995ce,IUniverInstanceService as _0x3ca986,Inject as _0xaba5e9,Injector as _0x126fc9,JSONX as _0x330f55,LocalUndoRedoService as _0x6d510e,LocaleService as _0x5d1c63,MentionType as _0x212032,Optional as _0x44ad0b,Plugin as _0x4c6e74,Quantity as _0x419f27,Rectangle as _0x519e4d,RxDisposable as _0x2cad8a,Tools as _0x4d0fc4,UniverInstanceType as _0x21be62,UserManagerService as _0x319e28,Workbook as _0x593fc2,createIdentifier as _0x1460b1,generateRandomId as _0x2f5c77,isInternalEditorID as _0x576038,merge as _0x18c740,mergeOverrideWithDependencies as _0x4845fd,registerDependencies as _0x4a7397,resolveWithBasePath as _0x1715f8,sequenceExecute as _0x50d83a,toDisposable as _0x38efac,touchDependencies as _0x363b5d}from'@univerjs/core';import{DocStateChangeManagerService as _0x31afd,RichTextEditingMutation as _0x58b552}from'@univerjs/docs';import{InsertSheetMutation as _0x4b75c9,SetSelectionsOperation as _0x7c2e48,SheetPermissionInitController as _0x3e6270,SheetsSelectionsService as _0x40d635,WorkbookEditablePermission as _0x15b1fe}from'@univerjs/sheets';import{BehaviorSubject as _0xe5e901,ReplaySubject as _0x542921,Subject as _0x40a752,concatMap as _0x521ccf,firstValueFrom as _0x277b96,map as _0x3e2b04,merge as _0x6051a6,of as _0x286aef,shareReplay as _0x350751,take as _0x207f3d,takeUntil as _0x433254}from'rxjs';import{CmdRspCode as _0x98405f,CombCmd as _0x4741b3,ErrorCode as _0x5abdf9,FileSource as _0x1e4ced}from'@univerjs/protocol';import{ITelemetryService as _0x5ab129}from'@univerjs/telemetry';import{delay as _0x10be0c,filter as _0x53e111,map as _0x3685dc,take as _0x23c1e7,takeUntil as _0x4b0be1}from'rxjs/operators';import{AddSlidePageMutation as _0xaa3f77,EnsureSlideMasterPageMutation as _0x2a139f,MoveSlidePageMutation as _0x399910,RemoveSlidePageMutation as _0x42ca93}from'@univerjs-pro/slides';import{HTTPRequest as _0x2e2e88,HTTPService as _0xbf1860,ISocketService as _0x5c41dd,MergeInterceptorFactory as _0x15b5e1,ThresholdInterceptorFactory as _0x266a98,UniverNetworkPlugin as _0x2fe6ef}from'@univerjs/network';import{UniverLicensePlugin as _0x236b97,getGlobalObject as _0x217b08}from'@univerjs-pro/license';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x1581da,IImageIoService as _0x536aa2,ImageSourceType as _0x4f5e7e,ImageUploadStatusType as _0x2d0a7a,getDrawingImageAllowSize as _0x38298b}from'@univerjs/drawing';import{cbc as _0x1ba736}from'@noble/ciphers/aes.js';import{concatBytes as _0x2a1100,randomBytes as _0xafcec8,utf8ToBytes as _0x23c2da}from'@noble/ciphers/utils.js';const F=_0x8a6054(0x39d),gt={},_t='ws://127.0.0.1:8000/universer-api/comb/connect',vt='/universer-api/user/session-ticket',yt=_0x8a6054(0x28e),bt=_0x8a6054(0x460),xt=0x4e20,St=_0x8a6054(0x353),Ct=_0x8a6054(0x369),wt=0x3e8,Tt=_0x8a6054(0x2c9),Et='/universer-api/uniscript';function Dt(_0x433ec4){const _0x18c206=_0x8a6054;return JSON[_0x18c206(0x331)](_0x433ec4)[_0x18c206(0x2fb)];}function Ot(_0xf23c71){'@babel/helpers - typeof';const _0xe75240=_0x8a6054;return Ot=typeof Symbol==_0xe75240(0x39a)&&typeof Symbol[_0xe75240(0x219)]=='symbol'?function(_0x1c0f97){return typeof _0x1c0f97;}:function(_0x3f2d9e){const _0x18060f=_0xe75240;return _0x3f2d9e&&typeof Symbol==_0x18060f(0x39a)&&_0x3f2d9e[_0x18060f(0x232)]===Symbol&&_0x3f2d9e!==Symbol[_0x18060f(0x323)]?_0x18060f(0x377):typeof _0x3f2d9e;},Ot(_0xf23c71);}function kt(_0xa8bc97,_0x27a7e4){const _0x500bde=_0x8a6054;if(Ot(_0xa8bc97)!=_0x500bde(0x244)||!_0xa8bc97)return _0xa8bc97;var _0x2634fb=_0xa8bc97[Symbol[_0x500bde(0x342)]];if(_0x2634fb!==void 0x0){var _0x48ef5b=_0x2634fb[_0x500bde(0x1f6)](_0xa8bc97,_0x27a7e4||'default');if(Ot(_0x48ef5b)!=_0x500bde(0x244))return _0x48ef5b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x27a7e4===_0x500bde(0x469)?String:Number)(_0xa8bc97);}function At(_0x2f41f4){const _0x4ee3d4=_0x8a6054;var _0xc0fac1=kt(_0x2f41f4,_0x4ee3d4(0x469));return Ot(_0xc0fac1)==_0x4ee3d4(0x377)?_0xc0fac1:_0xc0fac1+'';}function I(_0xc49c0f,_0x224393,_0x3a5c9d){const _0x303dab=_0x8a6054;return(_0x224393=At(_0x224393))in _0xc49c0f?Object[_0x303dab(0x36c)](_0xc49c0f,_0x224393,{'value':_0x3a5c9d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc49c0f[_0x224393]=_0x3a5c9d,_0xc49c0f;}let jt=function(_0x58e774){const _0x598585=_0x8a6054;return _0x58e774[_0x598585(0x2c2)]=_0x598585(0x2c2),_0x58e774[_0x598585(0x34d)]=_0x598585(0x34d),_0x58e774[_0x598585(0x456)]=_0x598585(0x456),_0x58e774['CLOSE_ROOM']=_0x598585(0x261),_0x58e774['JOIN_ROOM_FAILED']=_0x598585(0x224),_0x58e774['SOCKET_FAILED_RETRY']=_0x598585(0x44f),_0x58e774['SOCKET_FAILED']=_0x598585(0x426),_0x58e774['SUBMIT_CHANGESET_TIMEOUT']=_0x598585(0x207),_0x58e774;}({});var L=class{constructor(){const _0x3217e0=_0x8a6054;I(this,_0x3217e0(0x3ac),new _0x40a752()),I(this,_0x3217e0(0x39b),this[_0x3217e0(0x3ac)][_0x3217e0(0x2a7)]());}[_0x8a6054(0x264)](_0x5b3a9c){this['_event$']['next'](_0x5b3a9c);}},Mt=class{constructor(){const _0x2121fe=_0x8a6054;I(this,_0x2121fe(0x23c),new _0x40a752()),I(this,_0x2121fe(0x2b2),this['_commentUpdate$'][_0x2121fe(0x2a7)]());}[_0x8a6054(0x326)](_0x1a6470){const _0x154c0d=_0x8a6054;this['_commentUpdate$'][_0x154c0d(0x23e)](_0x1a6470);}};function R(_0x3330bc,_0x5cf6b5){return function(_0xd7834a,_0x5e057b){_0x5cf6b5(_0xd7834a,_0x5e057b,_0x3330bc);};}function z(_0x2185c4,_0x4cf367,_0x2b5a74,_0x524510){const _0x18e1dc=_0x8a6054;var _0x3240c0=arguments[_0x18e1dc(0x2fb)],_0x54dd99=_0x3240c0<0x3?_0x4cf367:_0x524510===null?_0x524510=Object['getOwnPropertyDescriptor'](_0x4cf367,_0x2b5a74):_0x524510,_0x26a067;if(typeof Reflect==_0x18e1dc(0x244)&&typeof Reflect['decorate']==_0x18e1dc(0x39a))_0x54dd99=Reflect[_0x18e1dc(0x233)](_0x2185c4,_0x4cf367,_0x2b5a74,_0x524510);else{for(var _0x4037e4=_0x2185c4[_0x18e1dc(0x2fb)]-0x1;_0x4037e4>=0x0;_0x4037e4--)(_0x26a067=_0x2185c4[_0x4037e4])&&(_0x54dd99=(_0x3240c0<0x3?_0x26a067(_0x54dd99):_0x3240c0>0x3?_0x26a067(_0x4cf367,_0x2b5a74,_0x54dd99):_0x26a067(_0x4cf367,_0x2b5a74))||_0x54dd99);}return _0x3240c0>0x3&&_0x54dd99&&Object[_0x18e1dc(0x36c)](_0x4cf367,_0x2b5a74,_0x54dd99),_0x54dd99;}let B=class extends _0x4dd34b{constructor(_0x11a8b0,_0x39b9de){const _0x1035fa=_0x8a6054;super(),this[_0x1035fa(0x42c)]=_0x11a8b0,this[_0x1035fa(0x2b0)]=_0x39b9de,I(this,_0x1035fa(0x2e5),new Map()),I(this,_0x1035fa(0x2d7),new _0x40a752()),this[_0x1035fa(0x368)](_0x6051a6(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x21be62['UNIVER_SHEET'])[_0x1035fa(0x320)](_0x3685dc(_0x42729e=>_0x42729e[_0x1035fa(0x2c1)]())),this[_0x1035fa(0x42c)][_0x1035fa(0x365)](_0x21be62[_0x1035fa(0x28a)])[_0x1035fa(0x320)](_0x3685dc(_0x43c2bf=>_0x43c2bf[_0x1035fa(0x2c1)]())),this[_0x1035fa(0x42c)][_0x1035fa(0x365)](_0x21be62[_0x1035fa(0x2ee)])[_0x1035fa(0x320)](_0x3685dc(_0x59bff0=>_0x59bff0[_0x1035fa(0x2c1)]())))[_0x1035fa(0x2f8)](_0x5179d8=>this[_0x1035fa(0x1f9)](_0x5179d8)));}[_0x8a6054(0x2a1)](_0x3a692f){const _0x55f5ab=_0x8a6054;return this[_0x55f5ab(0x2e5)][_0x55f5ab(0x3b6)](_0x3a692f)?_0x286aef(this[_0x55f5ab(0x2e5)][_0x55f5ab(0x44e)](_0x3a692f)):this['_roomCreated$'][_0x55f5ab(0x320)](_0x3685dc(_0x28bfce=>{const _0x525fd6=_0x55f5ab;if(_0x28bfce===_0x3a692f)return this[_0x525fd6(0x2e5)][_0x525fd6(0x44e)](_0x28bfce);}));}[_0x8a6054(0x3a3)](_0x31da4e){const _0xb62af5=_0x8a6054;this['_userManagerService'][_0xb62af5(0x3a3)](_0x31da4e);}[_0x8a6054(0x351)](){const _0x174c76=_0x8a6054;return this[_0x174c76(0x2b0)][_0x174c76(0x351)]();}[_0x8a6054(0x462)](_0x23bbaf,_0x394eb5){const _0x307a07=_0x8a6054;let _0x383db1=this[_0x307a07(0x2e5)][_0x307a07(0x44e)](_0x23bbaf);_0x383db1||(_0x383db1=new Nt(),this[_0x307a07(0x2e5)]['set'](_0x23bbaf,_0x383db1),this[_0x307a07(0x2d7)][_0x307a07(0x23e)](_0x23bbaf)),_0x383db1[_0x307a07(0x462)](_0x394eb5);}['removeMember'](_0x1521b2,_0x779959){const _0x38a209=_0x8a6054;let _0x6b0d76=this['_roomMembers']['get'](_0x1521b2);_0x6b0d76&&_0x6b0d76[_0x38a209(0x21c)](_0x779959);}[_0x8a6054(0x448)](_0x33ff16){const _0x1a533d=_0x8a6054;return this['_roomMembers'][_0x1a533d(0x44e)](_0x33ff16);}['getMember'](_0x5945ad,_0x27229e){const _0x2663fa=_0x8a6054;let _0x19d60c=this[_0x2663fa(0x2e5)][_0x2663fa(0x44e)](_0x5945ad);if(_0x19d60c)return _0x19d60c['getMember'](_0x27229e);}['_removeRoom'](_0x51d076){const _0x276a25=_0x8a6054;let _0x37ba04=this[_0x276a25(0x2e5)][_0x276a25(0x44e)](_0x51d076);_0x37ba04&&(_0x37ba04[_0x276a25(0x457)](),this[_0x276a25(0x2e5)]['delete'](_0x51d076));}[_0x8a6054(0x457)](){const _0x104971=_0x8a6054;this[_0x104971(0x2e5)][_0x104971(0x380)](_0x346ad6=>_0x346ad6[_0x104971(0x457)]()),this[_0x104971(0x2e5)][_0x104971(0x2b6)](),this['_roomCreated$']['complete']();}};B=z([R(0x0,_0x3ca986),R(0x1,_0xaba5e9(_0x319e28))],B);var Nt=class extends _0x4dd34b{constructor(..._0x4b13a8){const _0xa1f4ca=_0x8a6054;super(..._0x4b13a8),I(this,_0xa1f4ca(0x250),new Map()),I(this,_0xa1f4ca(0x2d2),new _0xe5e901(this[_0xa1f4ca(0x250)])),I(this,'members$',this[_0xa1f4ca(0x2d2)]['asObservable']());}['dispose'](){const _0x5ac5de=_0x8a6054;this['_members'][_0x5ac5de(0x2b6)](),this['_members$'][_0x5ac5de(0x2f1)]();}['updateMember'](_0x287b0c){const _0x3ff2a6=_0x8a6054;this[_0x3ff2a6(0x250)][_0x3ff2a6(0x2f4)](_0x287b0c[_0x3ff2a6(0x36a)],_0x287b0c),this['_emitMembers']();}[_0x8a6054(0x21c)](_0xa98eb1){const _0x14dae6=_0x8a6054;this[_0x14dae6(0x250)][_0x14dae6(0x24b)](_0xa98eb1),this[_0x14dae6(0x31a)]();}['getMember'](_0x5aa2a3){const _0x11ae89=_0x8a6054;return this[_0x11ae89(0x250)][_0x11ae89(0x44e)](_0x5aa2a3);}[_0x8a6054(0x399)](){const _0x26b1c1=_0x8a6054;return Array[_0x26b1c1(0x437)](this[_0x26b1c1(0x250)][_0x26b1c1(0x41e)]());}[_0x8a6054(0x31a)](){const _0x596982=_0x8a6054;this[_0x596982(0x2d2)][_0x596982(0x23e)](this[_0x596982(0x250)]);}};let Pt=function(_0x43c115){const _0x1d116e=_0x8a6054;return _0x43c115[_0x43c115[_0x1d116e(0x379)]=0x0]='IDLE',_0x43c115[_0x43c115[_0x1d116e(0x384)]=0x1]='JOINING',_0x43c115[_0x43c115[_0x1d116e(0x340)]=0x2]=_0x1d116e(0x340),_0x43c115[_0x43c115[_0x1d116e(0x237)]=0x3]='ONLINE',_0x43c115;}({});const Ft={[_0x98405f[_0x8a6054(0x3d5)]]:_0x8a6054(0x3b9),[_0x98405f[_0x8a6054(0x3ce)]]:'session.room-full',[_0x98405f[_0x8a6054(0x3d2)]]:_0x8a6054(0x3c2),[_0x98405f[_0x8a6054(0x310)]]:_0x8a6054(0x273),[_0x98405f['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x8a6054(0x3a1)};let It=class extends _0x2cad8a{get[_0x8a6054(0x440)](){const _0x4b16b1=_0x8a6054;return this['_sessionStatus$'][_0x4b16b1(0x421)]();}constructor(_0x1c38e9,_0x52fae1,_0x546a74,_0xed99c7,_0x5da87a,_0xf8ab53,_0x2cac90,_0x190264){const _0x14e728=_0x8a6054;super(),this[_0x14e728(0x311)]=_0x1c38e9,this[_0x14e728(0x31e)]=_0x546a74,this[_0x14e728(0x34a)]=_0xed99c7,this[_0x14e728(0x38e)]=_0x5da87a,this[_0x14e728(0x445)]=_0xf8ab53,this[_0x14e728(0x316)]=_0x2cac90,this['_telemetryService']=_0x190264,I(this,'_sessionStatus$',new _0xe5e901(0x0)),I(this,'sessionStatus$',this[_0x14e728(0x283)][_0x14e728(0x2a7)]()),I(this,_0x14e728(0x3ac),new _0x40a752()),I(this,_0x14e728(0x39b),this[_0x14e728(0x3ac)]['asObservable']()),I(this,'_socket',void 0x0),I(this,_0x14e728(0x3a8),void 0x0),I(this,_0x14e728(0x3c1),void 0x0),I(this,_0x14e728(0x44b),!0x1),I(this,_0x14e728(0x40a),null),this[_0x14e728(0x44b)]=!!this['_telemetryService'],_0x52fae1[_0x14e728(0x320)](_0x433254(this[_0x14e728(0x348)]))[_0x14e728(0x2f8)](_0x402db6=>{const _0xf64751=_0x14e728;if(_0x402db6!==void 0x0){if(this[_0xf64751(0x383)]=_0x402db6,_0x402db6)this['_joinRoom'](_0x402db6),this[_0xf64751(0x3a8)]=_0x402db6[_0xf64751(0x400)][_0xf64751(0x2f8)](_0x13e42c=>{const _0x37e04d=_0xf64751;_0x13e42c[_0x37e04d(0x3dd)]===this['_unitID']&&this[_0x37e04d(0x30e)](_0x13e42c);});else{var _0x2c0207;this[_0xf64751(0x1f3)](),this[_0xf64751(0x283)][_0xf64751(0x23e)](0x2),(_0x2c0207=this[_0xf64751(0x3a8)])==null||_0x2c0207[_0xf64751(0x30d)](),this[_0xf64751(0x3a8)]=null;}}});}[_0x8a6054(0x2c6)](){const _0x53267c=_0x8a6054;var _0x3a5ddc,_0x397d84;return(_0x3a5ddc=(_0x397d84=this[_0x53267c(0x383)])==null?void 0x0:_0x397d84[_0x53267c(0x36a)])==null?null:_0x3a5ddc;}[_0x8a6054(0x457)](){const _0x4a674c=_0x8a6054;super['dispose'](),this[_0x4a674c(0x282)](),this['dispose$'][_0x4a674c(0x23e)](),this[_0x4a674c(0x348)][_0x4a674c(0x2f1)]();}[_0x8a6054(0x282)](){const _0xdcf8c4=_0x8a6054;var _0x30bdb6,_0x55cb83;this[_0xdcf8c4(0x1f3)](),(_0x30bdb6=this[_0xdcf8c4(0x383)])==null||_0x30bdb6[_0xdcf8c4(0x20d)]({'cmd':_0x4741b3[_0xdcf8c4(0x3b5)],'data':{'roomID':this['_unitID']}}),(_0x55cb83=this[_0xdcf8c4(0x383)])==null||_0x55cb83[_0xdcf8c4(0x282)](),this['_event$'][_0xdcf8c4(0x2f1)](),this[_0xdcf8c4(0x283)][_0xdcf8c4(0x2f1)]();}['_onCombEvent'](_0x57017c){const _0x1842a8=_0x8a6054;_0x57017c['cmd']===_0x4741b3[_0x1842a8(0x3cb)]?this[_0x1842a8(0x312)](_0x57017c):_0x57017c[_0x1842a8(0x39f)]===_0x4741b3[_0x1842a8(0x336)]&&this[_0x1842a8(0x1fc)](_0x57017c);}[_0x8a6054(0x3b1)](_0xe4d2f2){const _0x10c7a4=_0x8a6054;this[_0x10c7a4(0x283)][_0x10c7a4(0x23e)](0x1),_0xe4d2f2[_0x10c7a4(0x20d)]({'cmd':_0x4741b3['JOIN'],'routeKey':this[_0x10c7a4(0x311)],'routeType':'','data':{'rooms':[{'roomID':this[_0x10c7a4(0x311)]}]}});}[_0x8a6054(0x312)](_0x5d4444){const _0x3d7f74=_0x8a6054;var _0x53f575;if(_0x5d4444[_0x3d7f74(0x433)]in Ft){this[_0x3d7f74(0x316)][_0x3d7f74(0x264)]({'id':_0x3d7f74(0x224),'data':Ft[_0x5d4444['code']]}),this[_0x3d7f74(0x283)][_0x3d7f74(0x23e)](0x2);return;}this[_0x3d7f74(0x283)][_0x3d7f74(0x23e)](0x3);let _0x1e99e0=(_0x53f575=_0x5d4444['data']['roomInfos'][this[_0x3d7f74(0x311)]])==null?void 0x0:_0x53f575[_0x3d7f74(0x450)];_0x1e99e0&&_0x1e99e0[_0x3d7f74(0x380)](_0x449c7b=>this[_0x3d7f74(0x38e)][_0x3d7f74(0x462)](this[_0x3d7f74(0x311)],_0x449c7b));}[_0x8a6054(0x1fc)](_0x15aad9){const _0x1925c4=_0x8a6054;try{let _0x5ef0f7=_0x15aad9['data'];switch(_0x5ef0f7[_0x1925c4(0x2d0)]){case _0xaf3ca4[_0x1925c4(0x225)]:this[_0x1925c4(0x2ae)](_0x5ef0f7),this[_0x1925c4(0x3ac)][_0x1925c4(0x23e)](_0x5ef0f7);break;case _0xaf3ca4[_0x1925c4(0x276)]:this[_0x1925c4(0x43c)](_0x5ef0f7),this[_0x1925c4(0x3ac)][_0x1925c4(0x23e)](_0x5ef0f7);break;case _0xaf3ca4[_0x1925c4(0x360)]:case _0xaf3ca4[_0x1925c4(0x393)]:this[_0x1925c4(0x2be)](),this[_0x1925c4(0x34f)](),this[_0x1925c4(0x3ac)][_0x1925c4(0x23e)](_0x5ef0f7);break;case _0xaf3ca4['MSG_FOR_ERROR']:this[_0x1925c4(0x31e)][_0x1925c4(0x2c0)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x1925c4(0x331)](_0x5ef0f7)),this['_event$'][_0x1925c4(0x23e)](_0x5ef0f7);break;case _0xaf3ca4[_0x1925c4(0x405)]:this[_0x1925c4(0x445)]['onCommentUpdate'](_0x5ef0f7[_0x1925c4(0x21e)]),this['_event$'][_0x1925c4(0x23e)](_0x5ef0f7);break;default:this[_0x1925c4(0x3ac)][_0x1925c4(0x23e)](_0x5ef0f7);}}catch(_0x5035f9){this['_logService'][_0x1925c4(0x2c0)](_0x5035f9,_0x15aad9);}}[_0x8a6054(0x2ae)](_0x1f2f10){const _0x2cab82=_0x8a6054;this[_0x2cab82(0x38e)]['updateMember'](this[_0x2cab82(0x311)],_0x1f2f10[_0x2cab82(0x21e)]);}[_0x8a6054(0x43c)](_0x3ec7a2){const _0x3c592c=_0x8a6054;this[_0x3c592c(0x38e)][_0x3c592c(0x21c)](this[_0x3c592c(0x311)],_0x3ec7a2[_0x3c592c(0x21e)][_0x3c592c(0x36a)]);}async[_0x8a6054(0x20d)](_0x1f579e,_0x43a70a){const _0x3382b5=_0x8a6054;if(this[_0x3382b5(0x440)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1f579e[_0x3382b5(0x2d0)]===_0xaf3ca4[_0x3382b5(0x3cd)]&&(this[_0x3382b5(0x435)](),this[_0x3382b5(0x248)](_0x1f579e)),this[_0x3382b5(0x383)]['send']({'cmd':_0x4741b3[_0x3382b5(0x222)],'routeKey':_0x43a70a,'routeType':'','data':_0x1f579e});}catch(_0x193aa9){this[_0x3382b5(0x31e)][_0x3382b5(0x2c0)](_0x193aa9);}}['_scheduleCollaborationTimeoutTimer'](){const _0x1b0be7=_0x8a6054;var _0x1f002e;this[_0x1b0be7(0x3c1)]=setTimeout(()=>{const _0xfc66d3=_0x1b0be7;this['_collaborationTimeoutTimer']=null,this[_0xfc66d3(0x316)][_0xfc66d3(0x264)]({'id':_0xfc66d3(0x207)});},(_0x1f002e=this[_0x1b0be7(0x34a)][_0x1b0be7(0x278)](_0x1b0be7(0x460)))==null?xt:_0x1f002e);}[_0x8a6054(0x34f)](){const _0x5a5e77=_0x8a6054;this[_0x5a5e77(0x3c1)]&&(clearTimeout(this[_0x5a5e77(0x3c1)]),this[_0x5a5e77(0x3c1)]=null);}[_0x8a6054(0x248)](_0x1f3d21){if(!this['_shouldReportTelemetry'])return;let {data:_0x4aeea0}=_0x1f3d21,{unitID:_0x180a15,changeset:_0x17490e}=_0x4aeea0,{mutations:_0x38da3d,type:_0x3f0a7b}=_0x17490e;this['_telemetryInfo']={'unitId':_0x180a15,'type':_0x3f0a7b,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Dt(_0x38da3d)};}[_0x8a6054(0x2be)](){const _0xf05028=_0x8a6054;if(this['_shouldReportTelemetry']){if(!this[_0xf05028(0x40a)]){this[_0xf05028(0x31e)][_0xf05028(0x2c0)](_0xf05028(0x425),_0xf05028(0x29b));return;}this[_0xf05028(0x40a)][_0xf05028(0x410)]=performance[_0xf05028(0x2f3)](),this[_0xf05028(0x40a)][_0xf05028(0x38f)]=this[_0xf05028(0x40a)]['stopTime']-this[_0xf05028(0x40a)][_0xf05028(0x239)],this[_0xf05028(0x3ee)][_0xf05028(0x367)](_0xf05028(0x223),this[_0xf05028(0x40a)]),this[_0xf05028(0x40a)]=null;}}[_0x8a6054(0x1f3)](){const _0x4703e2=_0x8a6054;this[_0x4703e2(0x40a)]=null;}};It=z([R(0x2,_0x2b6744),R(0x3,_0x29206e),R(0x4,_0xaba5e9(B)),R(0x5,_0xaba5e9(Mt)),R(0x6,_0xaba5e9(L)),R(0x7,_0x44ad0b(_0x5ab129))],It);const V=_0x1460b1(_0x8a6054(0x404));function Lt(_0x43c1b4){const _0x5e5476=_0x8a6054;return _0x5e5476(0x200)+_0x43c1b4;}function Rt(_0x1e94db){const _0x569908=_0x8a6054;let {unitID:_0x4b7585,mutations:_0x5185c3}=_0x1e94db;return{'unitId':_0x4b7585,'subUnitId':_0x5185c3['length']>0x0?_0x5185c3[0x0][_0x569908(0x3e9)]['subUnitId']:null};}let zt=class{constructor(_0x29ac82,_0x47b7f2,_0x4d90f6){const _0x2b0a20=_0x8a6054;this[_0x2b0a20(0x21a)]=_0x29ac82,this[_0x2b0a20(0x216)]=_0x47b7f2,this[_0x2b0a20(0x23b)]=_0x4d90f6;}[_0x8a6054(0x27e)](_0x377b4f){const _0x4c26d0=_0x8a6054;var _0x1d0d04,_0x36b429;let _0x1e2016=this[_0x4c26d0(0x21a)][_0x4c26d0(0x44e)](_0x40d635),{unitId:_0x3b13e9,subUnitId:_0x170e2c}=Rt(_0x377b4f),_0x2f86fc=_0x1e2016==null?void 0x0:_0x1e2016['getWorkbookSelections'](_0x3b13e9)[_0x4c26d0(0x2d9)](),_0x41430d=(_0x1d0d04=this[_0x4c26d0(0x23b)][_0x4c26d0(0x2bb)](_0x3b13e9))==null||(_0x1d0d04=_0x1d0d04['getActiveSheet']())==null?void 0x0:_0x1d0d04[_0x4c26d0(0x2c5)]();if(_0x2f86fc[_0x4c26d0(0x2fb)]===0x0||!_0x3b13e9||!_0x170e2c)return;let _0x59bdb6=[{'id':_0x7c2e48['id'],'params':{'unitId':_0x3b13e9,'subUnitId':_0x41430d,'selections':_0x4d0fc4[_0x4c26d0(0x20c)](_0x2f86fc)}}],_0x4f66bd=this['_transformService'][_0x4c26d0(0x254)](_0x377b4f,_0x59bdb6);if(!_0x3b86d9(_0x4f66bd))throw _0x4f66bd['error'];let _0x1c38d9=(_0x36b429=_0x4f66bd[_0x4c26d0(0x1fb)][0x0])==null||(_0x36b429=_0x36b429[_0x4c26d0(0x3e9)])==null?void 0x0:_0x36b429[_0x4c26d0(0x37e)];if(Array[_0x4c26d0(0x37f)](_0x1c38d9)&&_0x1c38d9[_0x4c26d0(0x2fb)]){if(_0x1c38d9[_0x4c26d0(0x2fb)]===_0x59bdb6[0x0][_0x4c26d0(0x3e9)][_0x4c26d0(0x37e)]['length']&&_0x1c38d9[_0x4c26d0(0x413)]((_0x4ad7e7,_0x44e0d6)=>_0x519e4d[_0x4c26d0(0x3ff)](_0x4ad7e7[_0x4c26d0(0x2ab)],_0x59bdb6[0x0][_0x4c26d0(0x3e9)][_0x4c26d0(0x37e)][_0x44e0d6][_0x4c26d0(0x2ab)])))return;this[_0x4c26d0(0x21a)]['get'](_0x1b4da7)['executeCommand'](_0x7c2e48['id'],{'unitId':_0x3b13e9,'subUnitId':_0x41430d,'selections':_0x1c38d9});}}};zt=z([R(0x0,_0xaba5e9(_0x126fc9)),R(0x1,_0x3a7b09),R(0x2,_0x3ca986)],zt);const H=_0x1460b1(_0x8a6054(0x36e));let Bt=function(_0x3e1cdc){const _0x3f9b80=_0x8a6054;return _0x3e1cdc[_0x3e1cdc[_0x3f9b80(0x408)]=0x0]=_0x3f9b80(0x408),_0x3e1cdc[_0x3e1cdc[_0x3f9b80(0x339)]=0x1]=_0x3f9b80(0x339),_0x3e1cdc;}({});function Vt(_0x46c76e){const _0x159b10=_0x8a6054;var _0x288766;return!!((_0x288766=_0x46c76e[_0x159b10(0x3e9)])!=null&&_0x288766[_0x159b10(0x266)]);}const Ht=new Set([_0x4b75c9['id']]),Ut=new Set([_0xaa3f77['id'],_0x2a139f['id'],_0x399910['id'],_0x42ca93['id']]);function Wt(_0x51084a,_0x2a1037=Ht){const _0x46032d=_0x8a6054;let _0x48bc78=[];for(let _0x2a4b6c of _0x51084a){if(_0x2a1037[_0x46032d(0x3b6)](_0x2a4b6c['id'])){if(_0x48bc78['length']>0x0)break;_0x48bc78[_0x46032d(0x27a)](_0x2a4b6c);break;}if(Vt(_0x2a4b6c)){if(_0x48bc78[_0x46032d(0x2fb)]>0x0)break;_0x48bc78[_0x46032d(0x27a)](_0x2a4b6c);break;}_0x48bc78[_0x46032d(0x27a)](_0x2a4b6c);}return _0x48bc78;}function Gt(_0x3a5333,_0x34d90d,_0x3713a4,_0x4194ec,_0x4635c0){const _0x2e41d7=_0x8a6054;var _0x1f45d6,_0x3b3d40,_0x2c3e83,_0x2f7d38;let _0x39be3d=Wt(_0x3a5333),_0x290ca8=(_0x1f45d6=(_0x3b3d40=_0x4635c0[_0x2e41d7(0x351)]())==null?void 0x0:_0x3b3d40['userID'])==null?_0x2e41d7(0x416):_0x1f45d6,_0x146ec9=(_0x2c3e83=(_0x2f7d38=_0x4635c0['getCurrentUser']())==null?void 0x0:_0x2f7d38[_0x2e41d7(0x36a)])==null?_0x2e41d7(0x416):_0x2c3e83;return{'changeset':{'unitID':_0x34d90d,'type':_0x352118(_0x3713a4[_0x2e41d7(0x218)](_0x34d90d)),'baseRev':_0x4194ec[_0x2e41d7(0x35a)](_0x34d90d),'revision':0x0,'userID':_0x290ca8,'memberID':_0x146ec9,'mutations':_0x39be3d},'pendingMutations':_0x3a5333[_0x2e41d7(0x3c4)](_0x39be3d['length'])};}const Kt=Gt;function qt(_0x3efb74,_0x5489f4,_0x45d1c9,_0x33d9a9,_0x4676a2){return Gt(_0x3efb74,_0x5489f4,_0x45d1c9,_0x33d9a9,_0x4676a2);}function Jt(_0x2a627c,_0x24c2cb,_0x5f23b0,_0x2821c3,_0x466dec){const _0x1f52e6=_0x8a6054;var _0x549805,_0x55ac98,_0x513ad6,_0x173c7e;let _0x3e8a95=Wt(_0x2a627c,Ut),_0x45873e=(_0x549805=(_0x55ac98=_0x466dec[_0x1f52e6(0x351)]())==null?void 0x0:_0x55ac98[_0x1f52e6(0x43e)])==null?'unknown':_0x549805,_0x5d2a58=(_0x513ad6=(_0x173c7e=_0x466dec[_0x1f52e6(0x351)]())==null?void 0x0:_0x173c7e[_0x1f52e6(0x36a)])==null?_0x1f52e6(0x416):_0x513ad6;return{'changeset':{'unitID':_0x24c2cb,'type':_0x352118(_0x5f23b0['getUnitType'](_0x24c2cb)),'baseRev':_0x2821c3[_0x1f52e6(0x35a)](_0x24c2cb),'revision':0x0,'userID':_0x45873e,'memberID':_0x5d2a58,'mutations':_0x3e8a95},'pendingMutations':_0x2a627c[_0x1f52e6(0x3c4)](_0x3e8a95['length'])};}function Yt(_0x47a7a8,_0x5970f0,_0x5c369d,_0x167bd1,_0x45c573){const _0x5f4135=_0x8a6054;var _0x1d1531,_0x476009,_0x320b99,_0x5b028b;let _0x4fc6c6=_0x47a7a8[_0x5f4135(0x309)]((_0x45953c,_0x2033cb)=>{const _0x2d5d2f=_0x5f4135;let _0x3aec27=_0x45953c[_0x45953c[_0x2d5d2f(0x2fb)]-0x1],{id:_0x9e8cd6}=_0x3aec27==null?{}:_0x3aec27,{id:_0x20ba21,type:_0x2ef022}=_0x2033cb,_0x547365=_0x2033cb[_0x2d5d2f(0x3e9)];if(_0x9e8cd6&&_0x9e8cd6!==_0x20ba21)throw Error(_0x2d5d2f(0x2c8)+_0x9e8cd6+'\x20-\x20'+_0x20ba21+'.');if(!_0x3aec27)return[{'id':_0x20ba21,'type':_0x2ef022,'params':{'unitId':_0x547365[_0x2d5d2f(0x33e)],'textRanges':_0x547365[_0x2d5d2f(0x2ea)],'actions':_0x547365['actions']}}];let _0x5d171a=_0x3aec27[_0x2d5d2f(0x3e9)];return Xt(_0x5d171a[_0x2d5d2f(0x290)],_0x547365[_0x2d5d2f(0x290)])?[..._0x45953c[_0x2d5d2f(0x3c4)](0x0,-0x1),{..._0x3aec27,'id':_0x20ba21,'type':_0x2ef022,'params':{'unitId':_0x547365[_0x2d5d2f(0x33e)],'textRanges':_0x547365[_0x2d5d2f(0x2ea)],'actions':_0x330f55[_0x2d5d2f(0x46a)](_0x5d171a[_0x2d5d2f(0x290)],_0x547365['actions'])}}]:[..._0x45953c,{'id':_0x20ba21,'type':_0x2ef022,'params':{'unitId':_0x547365[_0x2d5d2f(0x33e)],'textRanges':_0x547365[_0x2d5d2f(0x2ea)],'actions':_0x547365[_0x2d5d2f(0x290)]}}];},[]),_0x46e35f=(_0x1d1531=(_0x476009=_0x45c573[_0x5f4135(0x351)]())==null?void 0x0:_0x476009[_0x5f4135(0x43e)])==null?_0x5f4135(0x416):_0x1d1531,_0x49cd87=(_0x320b99=(_0x5b028b=_0x45c573[_0x5f4135(0x351)]())==null?void 0x0:_0x5b028b[_0x5f4135(0x36a)])==null?'unknown':_0x320b99;return{'changeset':{'unitID':_0x5970f0,'type':_0x352118(_0x5c369d['getUnitType'](_0x5970f0)),'baseRev':_0x167bd1[_0x5f4135(0x35a)](_0x5970f0),'revision':0x0,'userID':_0x46e35f,'memberID':_0x49cd87,'mutations':_0x4fc6c6},'pendingMutations':_0x47a7a8[_0x5f4135(0x3c4)](_0x47a7a8[_0x5f4135(0x2fb)])};}function Xt(_0x4c34cd,_0x21698c){return Zt(_0x4c34cd)&&Zt(_0x21698c)&&!Qt(_0x4c34cd)&&!Qt(_0x21698c);}function Zt(_0x25da6d){const _0x2caadf=_0x8a6054;return $t(_0x25da6d)[_0x2caadf(0x288)](_0x17bc3d=>en(_0x17bc3d)&&_0x17bc3d['et']===_0x2caadf(0x242));}function Qt(_0x5df46e){const _0x1cdbeb=_0x8a6054;return $t(_0x5df46e)[_0x1cdbeb(0x288)](_0x2b60e6=>Array[_0x1cdbeb(0x37f)](_0x2b60e6)||typeof _0x2b60e6==_0x1cdbeb(0x469)||typeof _0x2b60e6==_0x1cdbeb(0x447));}function $t(_0x4b9e76){const _0x4892f7=_0x8a6054;if(!Array[_0x4892f7(0x37f)](_0x4b9e76))return[];let _0x15753b=_0x4b9e76[_0x4892f7(0x2de)](_0x4892f7(0x3a5))?_0x4b9e76:_0x4b9e76[_0x4892f7(0x21f)](_0x54e125=>Array['isArray'](_0x54e125)&&_0x54e125[_0x4892f7(0x2de)](_0x4892f7(0x3a5)));if(!Array[_0x4892f7(0x37f)](_0x15753b))return[];let _0x4e90ce=_0x15753b[_0x4892f7(0x461)]('body');return _0x4e90ce===-0x1?[]:_0x15753b[_0x4892f7(0x3c4)](_0x4e90ce+0x1);}function en(_0x54a0d9){const _0x46de9f=_0x8a6054;return typeof _0x54a0d9==_0x46de9f(0x244)&&!!_0x54a0d9&&!Array[_0x46de9f(0x37f)](_0x54a0d9);}function tn(_0x217d76,_0x55b10b){const _0x5e72ec=_0x8a6054;let _0x4276a8=new _0x542921(0x1);return setTimeout(()=>_0x4276a8[_0x5e72ec(0x23e)](_0x55b10b),_0x217d76),_0x4276a8[_0x5e72ec(0x2a7)]()[_0x5e72ec(0x320)](_0x207f3d(0x1));}var nn,rn,an;let on=function(_0xaa6f49){const _0x31315e=_0x8a6054;return _0xaa6f49[_0x31315e(0x2fc)]=_0x31315e(0x3e5),_0xaa6f49[_0x31315e(0x297)]=_0x31315e(0x46b),_0xaa6f49['PENDING']=_0x31315e(0x452),_0xaa6f49['AWAITING']='awaiting',_0xaa6f49[_0x31315e(0x2e8)]=_0x31315e(0x389),_0xaa6f49[_0x31315e(0x43b)]=_0x31315e(0x366),_0xaa6f49[_0x31315e(0x456)]=_0x31315e(0x234),_0xaa6f49[_0x31315e(0x340)]=_0x31315e(0x289),_0xaa6f49;}({});const sn=0x4e20,cn=0x2bf20;var U=class{constructor(_0x91786c,_0xe83cae,_0x2144dc,_0x5913cf,_0x578130,_0x14fe69,_0x4af729,_0x26f90f,_0x5c073c){const _0x4c25d6=_0x8a6054;this['unitID']=_0x91786c,this[_0x4c25d6(0x466)]=_0xe83cae,this[_0x4c25d6(0x3ab)]=_0x578130,this[_0x4c25d6(0x238)]=_0x14fe69,this[_0x4c25d6(0x255)]=_0x4af729,this[_0x4c25d6(0x412)]=_0x26f90f,this[_0x4c25d6(0x3bd)]=_0x5c073c,I(this,_0x4c25d6(0x2a0),null),I(this,_0x4c25d6(0x420),[]),this[_0x4c25d6(0x2a0)]=_0x2144dc,this[_0x4c25d6(0x420)]=_0x5913cf;}[_0x8a6054(0x3ec)](_0x5b91fb){const _0x5395f0=_0x8a6054;let _0x3f007e=this[_0x5395f0(0x412)][_0x5395f0(0x35a)](this[_0x5395f0(0x33a)]);return _0x5b91fb[_0x5395f0(0x446)]>_0x3f007e+0x1?(this[_0x5395f0(0x3ab)][_0x5395f0(0x230)]({'from':_0x3f007e,'to':_0x5b91fb[_0x5395f0(0x446)]-0x1}),!0x0):!0x1;}[_0x8a6054(0x271)](_0x23de59){const _0x47c6ff=_0x8a6054;this['_undoRedoService'][_0x47c6ff(0x26b)](this['unitID'],_0x23de59);}[_0x8a6054(0x24e)](_0x448d57){const _0x2166df=_0x8a6054;var _0x400dd6,_0x453890;(_0x400dd6=(_0x453890=this[_0x2166df(0x3ab)])[_0x2166df(0x260)])==null||_0x400dd6[_0x2166df(0x1f6)](_0x453890,_0x448d57);}[_0x8a6054(0x24f)](_0x4bfe5b){const _0x5d4fa0=_0x8a6054;var _0x391d50,_0x411eb3;return(_0x391d50=(_0x411eb3=this[_0x5d4fa0(0x3ab)])['onTransformIME'])==null?void 0x0:_0x391d50['call'](_0x411eb3,_0x4bfe5b);}['_transformStateCache'](_0x2ec649){const _0x23d3df=_0x8a6054;var _0x1554c2,_0x4a2da5;return(_0x1554c2=(_0x4a2da5=this[_0x23d3df(0x3ab)])['onTransformState'])==null?void 0x0:_0x1554c2[_0x23d3df(0x1f6)](_0x4a2da5,_0x2ec649);}[_0x8a6054(0x3e6)](_0x17689c){const _0x3bcdc9=_0x8a6054;var _0x131584,_0x4e1fb6,_0x3229e2;return(_0x131584=(_0x4e1fb6=(_0x3229e2=this[_0x3bcdc9(0x3ab)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4e1fb6[_0x3bcdc9(0x1f6)](_0x3229e2,_0x17689c))==null?_0x17689c:_0x131584;}[_0x8a6054(0x370)](_0x53180a){const _0x336363=_0x8a6054;var _0x563e98,_0x4e7827,_0x5151ea;return(_0x563e98=(_0x4e7827=(_0x5151ea=this[_0x336363(0x3ab)])[_0x336363(0x346)])==null?void 0x0:_0x4e7827['call'](_0x5151ea,_0x53180a))==null?_0x53180a:_0x563e98;}[_0x8a6054(0x391)](_0x5a3366){const _0x3d6b60=_0x8a6054;if(this[_0x3d6b60(0x466)]===_0x21be62[_0x3d6b60(0x28a)]){let {unitID:_0x5354b9,mutations:_0x4e4934,memberID:_0x21b1e1}=_0x5a3366,_0x1a2f8e=_0x4e4934[_0x3d6b60(0x2fb)]>0x0?_0x4e4934[0x0][_0x3d6b60(0x3e9)][_0x3d6b60(0x2ea)]:[];if(Array[_0x3d6b60(0x37f)](_0x1a2f8e)&&_0x1a2f8e[_0x3d6b60(0x2fb)]>0x0){var _0x15f1c1,_0x43e505;(_0x15f1c1=(_0x43e505=this[_0x3d6b60(0x3ab)])[_0x3d6b60(0x356)])==null||_0x15f1c1[_0x3d6b60(0x1f6)](_0x43e505,{'unitID':_0x5354b9,'memberID':_0x21b1e1,'textRanges':_0x1a2f8e});}}}[_0x8a6054(0x304)](){const _0x53d9de=_0x8a6054;var _0x1459db;(_0x1459db=this[_0x53d9de(0x3bd)])==null||_0x1459db[_0x53d9de(0x429)](this[_0x53d9de(0x33a)],this[_0x53d9de(0x466)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x8a6054(0x38a)](){const _0x223e62=_0x8a6054;return this['_revisionService'][_0x223e62(0x35a)](this['unitID']);}[_0x8a6054(0x32e)](){const _0x44ec10=_0x8a6054;this[_0x44ec10(0x412)][_0x44ec10(0x36f)](this['unitID']);}[_0x8a6054(0x3f4)](_0x2769a0){const _0x43a08e=_0x8a6054;let _0x1dc53b=this['_transformRemoteChangesetByIMECache'](_0x2769a0);_0x1dc53b=this[_0x43a08e(0x370)](_0x1dc53b);let _0x118d69=_0x50d83a(_0x1dc53b[_0x43a08e(0x444)],this[_0x43a08e(0x238)],{'fromCollab':!0x0});if(!_0x118d69[_0x43a08e(0x411)]){var _0x2e7e92;throw _0x118d69[_0x43a08e(0x2c0)]instanceof Error?_0x118d69['error']:Error((_0x2e7e92=_0x118d69['error'])==null?'[CollaborationState]:\x20apply\x20error!':_0x2e7e92);}this[_0x43a08e(0x24f)](_0x1dc53b),this[_0x43a08e(0x208)](_0x1dc53b),this[_0x43a08e(0x271)](_0x2769a0),this[_0x43a08e(0x24e)](_0x1dc53b),this[_0x43a08e(0x391)](_0x1dc53b),this['_incrementRevisionNumber']();}};let W=class extends U{constructor(_0x1794a1,_0x2db36f,_0x31207f,_0x40fd33,_0x4039a4,_0x3df65f,_0x1c3596,_0x1ea950,_0x31432a,_0x5c8581){const _0x398c56=_0x8a6054;super(_0x1794a1,_0x2db36f,null,[],_0x31207f,_0x1c3596,_0x3df65f,_0x40fd33,_0x5c8581),this[_0x398c56(0x21a)]=_0x4039a4,this[_0x398c56(0x31e)]=_0x1ea950,this[_0x398c56(0x216)]=_0x31432a,this[_0x398c56(0x284)]=_0x5c8581,I(this,_0x398c56(0x2d3),_0x398c56(0x46b));}[_0x8a6054(0x453)](_0x18b650){const _0x4d3790=_0x8a6054;let _0x3d7182=this[_0x4d3790(0x21a)][_0x4d3790(0x275)](G,this['unitID'],this['type'],[_0x18b650],this[_0x4d3790(0x3ab)]);return _0x3d7182[_0x4d3790(0x40c)](),_0x3d7182[_0x4d3790(0x304)](),_0x3d7182;}[_0x8a6054(0x45b)](_0x4271e0){const _0x2f04fe=_0x8a6054;if(this[_0x2f04fe(0x3ec)](_0x4271e0))return this[_0x2f04fe(0x21a)][_0x2f04fe(0x275)](X,this[_0x2f04fe(0x33a)],this['type'],null,[],null,[_0x4271e0],this[_0x2f04fe(0x3ab)]);try{let _0x5d69ac=this['_transformService'][_0x2f04fe(0x254)](_0x4271e0,[_0x5ee03a]);if(_0x3b86d9(_0x5d69ac)){let {c1Prime:_0x81d4e}=_0x5d69ac;return this['_executeRemoteChangeset'](_0x81d4e),this;}throw _0x5d69ac[_0x2f04fe(0x2c0)];}catch(_0x40c808){return this[_0x2f04fe(0x31e)][_0x2f04fe(0x2c0)](_0x40c808),this[_0x2f04fe(0x38c)](!0x1);}}[_0x8a6054(0x38c)](_0x134495){const _0xf87a3a=_0x8a6054;return this['_injector'][_0xf87a3a(0x275)](J,this[_0xf87a3a(0x33a)],this[_0xf87a3a(0x466)],null,[],this[_0xf87a3a(0x3ab)],_0x134495);}['onRemoteAck'](_0x38ef9a){const _0x4e4f5d=_0x8a6054;if(_0x38ef9a[_0x4e4f5d(0x446)]<=this[_0x4e4f5d(0x38a)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x8a6054(0x388)](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x8a6054(0x2f9)](){return this;}[_0x8a6054(0x374)](){const _0x1ded6c=_0x8a6054;return this[_0x1ded6c(0x21a)]['createInstance'](Y,this['unitID'],this[_0x1ded6c(0x466)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x8a6054(0x2c4)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x8a6054(0x3b4)](){const _0x54d3e2=_0x8a6054;let _0x4a6e16=this['_revisionService'][_0x54d3e2(0x35a)](this[_0x54d3e2(0x33a)]);return this[_0x54d3e2(0x3ab)][_0x54d3e2(0x230)]({'from':_0x4a6e16,'to':0x0}),this[_0x54d3e2(0x21a)]['createInstance'](X,this[_0x54d3e2(0x33a)],this['type'],null,[],null,[],this[_0x54d3e2(0x3ab)]);}};W=z([R(0x3,_0xaba5e9(_0x2ae16f)),R(0x4,_0xaba5e9(_0x126fc9)),R(0x5,_0x5995ce),R(0x6,_0x1b4da7),R(0x7,_0x2b6744),R(0x8,_0x3a7b09),R(0x9,_0x44ad0b(V))],W);let G=nn=class extends U{constructor(_0x341b01,_0x330347,_0x6e653c,_0xc39367,_0x42f8fd,_0x31ad0b,_0xdc09c8,_0x2a6c48,_0x30ec3f,_0x406a8a,_0x52a9dc,_0x303f0b,_0x334204,_0x38291a){const _0x3155d8=_0x8a6054;super(_0x341b01,_0x330347,null,_0x6e653c,_0xc39367,_0x30ec3f,_0x334204,_0x31ad0b,_0x38291a),this['_injector']=_0x42f8fd,this[_0x3155d8(0x38e)]=_0xdc09c8,this['_logService']=_0x2a6c48,this[_0x3155d8(0x34a)]=_0x406a8a,this[_0x3155d8(0x216)]=_0x52a9dc,this[_0x3155d8(0x42c)]=_0x303f0b,I(this,'status',_0x3155d8(0x452)),I(this,_0x3155d8(0x28c),null),I(this,_0x3155d8(0x231),null);}[_0x8a6054(0x453)](_0x5c2e57){const _0x390bda=_0x8a6054;return this['_pendingMutations'][_0x390bda(0x27a)](_0x5c2e57),this[_0x390bda(0x304)](),this;}[_0x8a6054(0x45b)](_0x217718){const _0x4078d5=_0x8a6054;if(this[_0x4078d5(0x3ec)](_0x217718))return this[_0x4078d5(0x428)](),this[_0x4078d5(0x21a)]['createInstance'](X,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x217718],this[_0x4078d5(0x3ab)]);try{let _0x36c82a=this['_transformService'][_0x4078d5(0x254)](_0x217718,this[_0x4078d5(0x420)]);if(_0x3b86d9(_0x36c82a)){let {c1Prime:_0x44b966,m2Prime:_0x41d304}=_0x36c82a;this[_0x4078d5(0x3f4)](_0x44b966);let _0x4b457b=this[_0x4078d5(0x21a)][_0x4078d5(0x275)](nn,this[_0x4078d5(0x33a)],this['type'],_0x41d304,this['_handler']);this[_0x4078d5(0x428)]();let _0x4b0104=new Date()[_0x4078d5(0x431)](),_0x5d7b31=this[_0x4078d5(0x28c)]?Math[_0x4078d5(0x439)](this[_0x4078d5(0x28c)]-_0x4b0104,0x0):this[_0x4078d5(0x220)]();return _0x4b457b['_schedule'](_0x5d7b31),_0x4b457b;}throw _0x36c82a['error'];}catch(_0x2fa705){return this['_logService'][_0x4078d5(0x2c0)](_0x2fa705),this[_0x4078d5(0x38c)](!0x1);}}[_0x8a6054(0x22d)](_0x18c197){const _0x2c7417=_0x8a6054;if(_0x18c197[_0x2c7417(0x446)]<=this[_0x2c7417(0x38a)]())return this;throw Error(_0x2c7417(0x3df));}[_0x8a6054(0x388)](){const _0x84f8a0=_0x8a6054;throw Error(_0x84f8a0(0x29c));}[_0x8a6054(0x2f9)](){return this;}['toggleOffline'](){const _0x609cd8=_0x8a6054;return this[_0x609cd8(0x428)](),this[_0x609cd8(0x21a)][_0x609cd8(0x275)](Y,this[_0x609cd8(0x33a)],this[_0x609cd8(0x466)],null,this[_0x609cd8(0x420)],this['_handler']);}['toggleOnline'](){return this;}[_0x8a6054(0x40c)](_0x302713){const _0x53a1b4=_0x8a6054;let _0x5a100f=_0x302713==null?this[_0x53a1b4(0x220)]():_0x302713;this['_scheduleCompleteTimestamp']=new Date()[_0x53a1b4(0x431)]()+_0x5a100f,this['_sendingTimer']=setTimeout(()=>{const _0x7d4c02=_0x53a1b4;this['_clearScheduledTask']();let _0x248322=null;switch(this['type']){case _0x21be62[_0x7d4c02(0x322)]:_0x248322=Kt(this[_0x7d4c02(0x420)],this['unitID'],this[_0x7d4c02(0x42c)],this[_0x7d4c02(0x412)],this[_0x7d4c02(0x38e)]);break;case _0x21be62['UNIVER_DOC']:_0x248322=this[_0x7d4c02(0x420)]['every'](_0x3bde8b=>_0x3bde8b['id']===_0x58b552['id'])?Yt(this['_pendingMutations'],this[_0x7d4c02(0x33a)],this[_0x7d4c02(0x42c)],this[_0x7d4c02(0x412)],this['_memberService']):Kt(this[_0x7d4c02(0x420)],this[_0x7d4c02(0x33a)],this[_0x7d4c02(0x42c)],this[_0x7d4c02(0x412)],this[_0x7d4c02(0x38e)]);break;case _0x21be62['UNIVER_SLIDE']:_0x248322=Jt(this[_0x7d4c02(0x420)],this[_0x7d4c02(0x33a)],this['_univerInstanceService'],this[_0x7d4c02(0x412)],this[_0x7d4c02(0x38e)]);break;case _0x21be62[_0x7d4c02(0x2ee)]:_0x248322=qt(this['_pendingMutations'],this[_0x7d4c02(0x33a)],this[_0x7d4c02(0x42c)],this['_revisionService'],this[_0x7d4c02(0x38e)]);break;default:throw Error(_0x7d4c02(0x42d)+this[_0x7d4c02(0x466)]+_0x7d4c02(0x3c3));}let {changeset:_0x5537c2,pendingMutations:_0x403b29}=_0x248322;this[_0x7d4c02(0x3ab)][_0x7d4c02(0x2e6)](_0x5537c2);let _0x20b7fb=_0x403b29['length']?this[_0x7d4c02(0x21a)][_0x7d4c02(0x275)](q,this[_0x7d4c02(0x33a)],this[_0x7d4c02(0x466)],_0x5537c2,_0x403b29,this['_handler'],void 0x0):this['_injector'][_0x7d4c02(0x275)](K,this[_0x7d4c02(0x33a)],this[_0x7d4c02(0x466)],_0x5537c2,this[_0x7d4c02(0x3ab)]);_0x20b7fb[_0x7d4c02(0x304)](),this[_0x7d4c02(0x3ab)][_0x7d4c02(0x2dc)](this,_0x20b7fb);},_0x5a100f);}[_0x8a6054(0x220)](){const _0x31e55d=_0x8a6054;var _0x57991e;let _0x3a18dc=this['_configService'][_0x31e55d(0x278)](F);return(_0x57991e=_0x3a18dc==null?void 0x0:_0x3a18dc['sendChangesetTimeout'])==null?0x7d0:_0x57991e;}[_0x8a6054(0x2c4)](){const _0x96b9d7=_0x8a6054;throw Error(_0x96b9d7(0x2a2));}[_0x8a6054(0x428)](){const _0x364fdd=_0x8a6054;this[_0x364fdd(0x231)]!=null&&(clearTimeout(this[_0x364fdd(0x231)]),this[_0x364fdd(0x231)]=null);}[_0x8a6054(0x38c)](_0x2e8e1b){const _0x260db0=_0x8a6054;return this[_0x260db0(0x428)](),this['_injector'][_0x260db0(0x275)](J,this[_0x260db0(0x33a)],this['type'],null,this[_0x260db0(0x420)],this[_0x260db0(0x3ab)],_0x2e8e1b);}};G=nn=z([R(0x4,_0xaba5e9(_0x126fc9)),R(0x5,_0xaba5e9(_0x2ae16f)),R(0x6,_0xaba5e9(B)),R(0x7,_0x2b6744),R(0x8,_0x1b4da7),R(0x9,_0x29206e),R(0xa,_0x3a7b09),R(0xb,_0x3ca986),R(0xc,_0x5995ce),R(0xd,_0x44ad0b(V))],G);let K=rn=class extends U{constructor(_0x6f72c,_0x3d341b,_0x16f6e3,_0x3d7e08,_0x4a9269,_0x2b21a6,_0x4de04a,_0x764007,_0x1a5638,_0x3f63d7,_0x5e19ee){const _0x5a5c7f=_0x8a6054;super(_0x6f72c,_0x3d341b,_0x16f6e3,[],_0x3d7e08,_0x4de04a,_0x3f63d7,_0x2b21a6,_0x5e19ee),this['_injector']=_0x4a9269,this[_0x5a5c7f(0x31e)]=_0x764007,this[_0x5a5c7f(0x216)]=_0x1a5638,I(this,_0x5a5c7f(0x2d3),'awaiting'),I(this,_0x5a5c7f(0x332),0x0),I(this,_0x5a5c7f(0x37a),0x0),I(this,_0x5a5c7f(0x296),void 0x0),I(this,_0x5a5c7f(0x34e),void 0x0);}[_0x8a6054(0x453)](_0x482a5b){const _0x5cbb0d=_0x8a6054;this[_0x5cbb0d(0x428)]();let _0x1f63b2=this[_0x5cbb0d(0x21a)][_0x5cbb0d(0x275)](q,this[_0x5cbb0d(0x33a)],this[_0x5cbb0d(0x466)],this['_awaitingChangeset'],[_0x482a5b],this[_0x5cbb0d(0x3ab)],this[_0x5cbb0d(0x296)]);return _0x1f63b2[_0x5cbb0d(0x304)](),_0x1f63b2;}[_0x8a6054(0x45b)](_0x510d7f){const _0xf06a51=_0x8a6054;if(this[_0xf06a51(0x3ec)](_0x510d7f))return this['_clearScheduledTask'](),this[_0xf06a51(0x21a)]['createInstance'](X,this['unitID'],this['type'],this[_0xf06a51(0x2a0)],[],null,[_0x510d7f],this['_handler']);try{let _0xa1ccc6=this['_transformService']['transformChangesets']([_0x510d7f],[this[_0xf06a51(0x2a0)]],!0x1);if(_0x6b1d9c(_0xa1ccc6)){let {c1Prime:_0x47329c,c2Prime:_0x1f14f9}=_0xa1ccc6;this['_executeRemoteChangeset'](_0x47329c[0x0]),_0x1f14f9[0x0][_0xf06a51(0x20f)]=this[_0xf06a51(0x38a)](),this[_0xf06a51(0x428)]();let _0x3a04ad=this[_0xf06a51(0x21a)][_0xf06a51(0x275)](rn,this['unitID'],this[_0xf06a51(0x466)],_0x1f14f9[0x0],this['_handler']);return _0x3a04ad[_0xf06a51(0x304)](),_0x3a04ad;}throw _0xa1ccc6['error'];}catch(_0x228de1){return this[_0xf06a51(0x31e)][_0xf06a51(0x2c0)](_0x228de1),this[_0xf06a51(0x38c)](!0x1);}}[_0x8a6054(0x22d)](_0x242ae2){const _0x1eb2e9=_0x8a6054;this[_0x1eb2e9(0x428)]();let _0x2c48ed=this[_0x1eb2e9(0x412)][_0x1eb2e9(0x35a)](this['unitID']);if(_0x242ae2[_0x1eb2e9(0x446)]<=_0x2c48ed)return this;if(this['_checkMissing'](_0x242ae2))return this[_0x1eb2e9(0x21a)][_0x1eb2e9(0x275)](X,this['unitID'],this['type'],this['_awaitingChangeset'],[],_0x242ae2[_0x1eb2e9(0x446)],[],this['_handler']);this[_0x1eb2e9(0x32e)]();let _0x404b6c=this[_0x1eb2e9(0x21a)]['createInstance'](W,this[_0x1eb2e9(0x33a)],this[_0x1eb2e9(0x466)],this[_0x1eb2e9(0x3ab)]);return _0x404b6c[_0x1eb2e9(0x304)](),_0x404b6c;}[_0x8a6054(0x388)](_0x33b21d){const _0x4f6878=_0x8a6054;return this[_0x4f6878(0x38c)](!!(_0x33b21d!=null&&_0x33b21d['isPermissionRej']));}[_0x8a6054(0x2f9)](_0x494bda){const _0x24a3d8=_0x8a6054;return this[_0x24a3d8(0x37a)]>cn?this[_0x24a3d8(0x374)]():(this[_0x24a3d8(0x296)]=tn(this[_0x24a3d8(0x332)],{'timeout':this[_0x24a3d8(0x332)],'reqId':_0x494bda[_0x24a3d8(0x22e)]}),this[_0x24a3d8(0x34e)]=this[_0x24a3d8(0x296)][_0x24a3d8(0x2f8)](({reqId:_0x4af1c6,timeout:_0x5413d2})=>{const _0x2d6f28=_0x24a3d8;this[_0x2d6f28(0x358)](_0x4af1c6,_0x5413d2);}),this);}[_0x8a6054(0x374)](){const _0x4d2134=_0x8a6054;return this['_clearScheduledTask'](),this[_0x4d2134(0x21a)]['createInstance'](Y,this[_0x4d2134(0x33a)],this[_0x4d2134(0x466)],this[_0x4d2134(0x2a0)],[],this[_0x4d2134(0x3ab)]);}['toggleOnline'](){return this;}[_0x8a6054(0x2c4)](){const _0xb87d51=_0x8a6054;this[_0xb87d51(0x3ab)][_0xb87d51(0x2e6)](this[_0xb87d51(0x2a0)]);}['_onConflict'](_0x235052){const _0x31345b=_0x8a6054;return this[_0x31345b(0x428)](),this[_0x31345b(0x21a)][_0x31345b(0x275)](J,this[_0x31345b(0x33a)],this[_0x31345b(0x466)],this[_0x31345b(0x2a0)],[],this[_0x31345b(0x3ab)],_0x235052);}[_0x8a6054(0x358)](_0x1eb041,_0x257ab9){const _0x21b0d3=_0x8a6054;var _0x4f931f;_0x1eb041===((_0x4f931f=this['_awaitingChangeset'])==null?void 0x0:_0x4f931f[_0x21b0d3(0x22e)])&&(this[_0x21b0d3(0x2c4)](),this[_0x21b0d3(0x332)]=_0x257ab9===0x0?0x3e8:Math[_0x21b0d3(0x23a)](_0x257ab9*0x2,sn),this[_0x21b0d3(0x37a)]+=this[_0x21b0d3(0x332)]);}[_0x8a6054(0x428)](){const _0xaf814e=_0x8a6054;var _0x2bb089;(_0x2bb089=this[_0xaf814e(0x34e)])==null||_0x2bb089[_0xaf814e(0x30d)](),this[_0xaf814e(0x332)]=0x0,this[_0xaf814e(0x37a)]=0x0;}};K=rn=z([R(0x4,_0xaba5e9(_0x126fc9)),R(0x5,_0xaba5e9(_0x2ae16f)),R(0x6,_0x1b4da7),R(0x7,_0x2b6744),R(0x8,_0x3a7b09),R(0x9,_0x5995ce),R(0xa,_0x44ad0b(V))],K);let q=an=class extends U{constructor(_0x1a4221,_0x1736a1,_0x2a0cd4,_0x1e2f36,_0x41b26e,_0x5ce046,_0x1316c4,_0x32a18,_0x449969,_0x207e97,_0x291390,_0x232d0a,_0xa4eb5c){const _0x5085e0=_0x8a6054;super(_0x1a4221,_0x1736a1,_0x2a0cd4,_0x1e2f36,_0x41b26e,_0x449969,_0x232d0a,_0x32a18,_0xa4eb5c),this['_injector']=_0x1316c4,this[_0x5085e0(0x31e)]=_0x207e97,this['_transformService']=_0x291390,this[_0x5085e0(0x284)]=_0xa4eb5c,I(this,'status',_0x5085e0(0x389)),I(this,_0x5085e0(0x332),0x0),I(this,_0x5085e0(0x37a),0x0),I(this,_0x5085e0(0x296),void 0x0),I(this,_0x5085e0(0x34e),void 0x0),_0x5ce046&&(this[_0x5085e0(0x296)]=_0x5ce046,this[_0x5085e0(0x34e)]=this[_0x5085e0(0x296)][_0x5085e0(0x2f8)](({reqId:_0x49f55a,timeout:_0x48c3ca})=>{this['_resendWithTimeout'](_0x49f55a,_0x48c3ca);}));}[_0x8a6054(0x453)](_0x189c13){const _0x405b6d=_0x8a6054;return this['_pendingMutations'][_0x405b6d(0x27a)](_0x189c13),this;}['onRemoteChangeset'](_0x225888){const _0x223cf9=_0x8a6054;if(this[_0x223cf9(0x3ec)](_0x225888))return this[_0x223cf9(0x428)](),this[_0x223cf9(0x21a)][_0x223cf9(0x275)](X,this[_0x223cf9(0x33a)],this[_0x223cf9(0x466)],this['_awaitingChangeset'],this[_0x223cf9(0x420)],null,[_0x225888],this[_0x223cf9(0x3ab)]);try{let _0x22c477=this[_0x223cf9(0x216)][_0x223cf9(0x301)]([_0x225888],[this[_0x223cf9(0x2a0)]],!0x1);if(_0x6b1d9c(_0x22c477)){let {c1Prime:_0x498492,c2Prime:_0xf2d468}=_0x22c477,_0x52d1e0=this[_0x223cf9(0x216)][_0x223cf9(0x254)](_0x498492[0x0],this[_0x223cf9(0x420)]);if(_0x3b86d9(_0x52d1e0)){let {c1Prime:_0x1072da,m2Prime:_0x3d5ffa}=_0x52d1e0;return this[_0x223cf9(0x3f4)](_0x1072da),_0xf2d468[0x0]['baseRev']=this[_0x223cf9(0x38a)](),this['_clearScheduledTask'](),this[_0x223cf9(0x21a)][_0x223cf9(0x275)](an,this['unitID'],this[_0x223cf9(0x466)],_0xf2d468[0x0],_0x3d5ffa,this[_0x223cf9(0x3ab)],void 0x0);}throw _0x52d1e0[_0x223cf9(0x2c0)];}throw _0x22c477[_0x223cf9(0x2c0)];}catch(_0x51f19d){return this[_0x223cf9(0x31e)][_0x223cf9(0x2c0)](_0x51f19d),this[_0x223cf9(0x38c)](!0x1);}}[_0x8a6054(0x22d)](_0x3ada28){const _0x1597dc=_0x8a6054;this[_0x1597dc(0x428)]();let _0x412dda=this[_0x1597dc(0x38a)]();if(_0x3ada28[_0x1597dc(0x446)]<=_0x412dda)return this;if(this[_0x1597dc(0x3ec)](_0x3ada28))return this[_0x1597dc(0x21a)][_0x1597dc(0x275)](X,this[_0x1597dc(0x33a)],this['type'],this[_0x1597dc(0x2a0)],this['_pendingMutations'],_0x3ada28[_0x1597dc(0x446)],[],this[_0x1597dc(0x3ab)]);this['_incrementRevisionNumber']();let _0xa0e13a=this[_0x1597dc(0x21a)][_0x1597dc(0x275)](G,this[_0x1597dc(0x33a)],this['type'],this['_pendingMutations'],this[_0x1597dc(0x3ab)]);return _0xa0e13a[_0x1597dc(0x40c)](),_0xa0e13a['_updateLocalCache'](),_0xa0e13a;}['onRemoteRej'](_0x205e70){const _0x14d04f=_0x8a6054;return this[_0x14d04f(0x38c)](!!(_0x205e70!=null&&_0x205e70['isPermissionRej']));}[_0x8a6054(0x2f9)](_0x43b057){const _0x5ebdae=_0x8a6054;return this[_0x5ebdae(0x37a)]>cn?this[_0x5ebdae(0x374)]():(this[_0x5ebdae(0x296)]=tn(this[_0x5ebdae(0x332)],{'timeout':this['_resendTimeout'],'reqId':_0x43b057[_0x5ebdae(0x22e)]}),this['_sender']=this['_resendTimer'][_0x5ebdae(0x2f8)](({reqId:_0xbc864e,timeout:_0x43362c})=>{const _0x3a82c7=_0x5ebdae;this[_0x3a82c7(0x358)](_0xbc864e,_0x43362c);}),this);}['toggleOffline'](){const _0x4cb13f=_0x8a6054;return this[_0x4cb13f(0x428)](),this[_0x4cb13f(0x21a)]['createInstance'](Y,this[_0x4cb13f(0x33a)],this[_0x4cb13f(0x466)],this['_awaitingChangeset'],this[_0x4cb13f(0x420)],this['_handler']);}[_0x8a6054(0x324)](){return this;}[_0x8a6054(0x2c4)](){const _0x4eac56=_0x8a6054;this['_handler'][_0x4eac56(0x2e6)](this[_0x4eac56(0x2a0)]);}[_0x8a6054(0x38c)](_0x23186d){const _0x36eab0=_0x8a6054;return this[_0x36eab0(0x428)](),this[_0x36eab0(0x21a)]['createInstance'](J,this['unitID'],this['type'],null,this['_pendingMutations'],this['_handler'],_0x23186d);}[_0x8a6054(0x358)](_0x5a47ea,_0x238c22){const _0x36b20d=_0x8a6054;var _0x4a0baf;_0x5a47ea===((_0x4a0baf=this[_0x36b20d(0x2a0)])==null?void 0x0:_0x4a0baf['reqId'])&&(this[_0x36b20d(0x2c4)](),this['_resendTimeout']=_0x238c22===0x0?0x3e8:Math[_0x36b20d(0x23a)](_0x238c22*0x2,sn),this[_0x36b20d(0x37a)]+=this['_resendTimeout']);}[_0x8a6054(0x428)](){const _0x48c1cf=_0x8a6054;var _0x30863b;(_0x30863b=this[_0x48c1cf(0x34e)])==null||_0x30863b[_0x48c1cf(0x30d)](),this[_0x48c1cf(0x332)]=0x0,this[_0x48c1cf(0x37a)]=0x0;}};q=an=z([R(0x6,_0xaba5e9(_0x126fc9)),R(0x7,_0xaba5e9(_0x2ae16f)),R(0x8,_0x1b4da7),R(0x9,_0x2b6744),R(0xa,_0x3a7b09),R(0xb,_0x5995ce),R(0xc,_0x44ad0b(V))],q);let J=class extends U{constructor(_0x6aade5,_0x4104bc,_0x2d75f2,_0x99a561,_0x37059c,_0x30b2f6=!0x1,_0x9b5f86,_0x17c1f4,_0x309919,_0x976c64,_0x4be6a8,_0x4eccc9,_0x5215d6){const _0x8886c8=_0x8a6054;super(_0x6aade5,_0x4104bc,_0x2d75f2,_0x99a561,_0x37059c,_0x17c1f4,_0x309919,_0x976c64,_0x5215d6),this['_isPermissionRej']=_0x30b2f6,this['_permissionService']=_0x9b5f86,this['_localeService']=_0x4be6a8,this[_0x8886c8(0x316)]=_0x4eccc9,this[_0x8886c8(0x284)]=_0x5215d6,I(this,_0x8886c8(0x2d3),_0x8886c8(0x234)),this['_showConflictNotification'](),this[_0x8886c8(0x357)](),this[_0x8886c8(0x28d)]();}['appendMutation'](){return this;}[_0x8a6054(0x45b)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x8a6054(0x2f9)](){return this;}['toggleOffline'](){return this;}[_0x8a6054(0x324)](){return this;}['resend'](){const _0x20e99f=_0x8a6054;throw Error(_0x20e99f(0x434));}[_0x8a6054(0x357)](){const _0x3f403f=_0x8a6054;var _0x26e53b,_0xfdbe0f,_0x5cef76;(_0x26e53b=this[_0x3f403f(0x3bd)])==null||(_0xfdbe0f=_0x26e53b['backupOfflineData'])==null||(_0xfdbe0f=_0xfdbe0f[_0x3f403f(0x1f6)](_0x26e53b,this[_0x3f403f(0x33a)],'conflict'))==null||_0xfdbe0f[_0x3f403f(0x247)](()=>void 0x0),(_0x5cef76=this[_0x3f403f(0x3bd)])==null||_0x5cef76[_0x3f403f(0x429)](this[_0x3f403f(0x33a)],this[_0x3f403f(0x466)],null,[]);}['_showConflictNotification'](){const _0x1cc2ed=_0x8a6054;this[_0x1cc2ed(0x44a)]?this[_0x1cc2ed(0x316)][_0x1cc2ed(0x264)]({'id':_0x1cc2ed(0x34d)}):this[_0x1cc2ed(0x316)][_0x1cc2ed(0x264)]({'id':_0x1cc2ed(0x456)});}['_disableEditing'](){const _0x5ec92c=_0x8a6054;this['_permissionService'][_0x5ec92c(0x2dd)](new _0x15b1fe(this['unitID'])['id'],!0x1);}};J=z([R(0x6,_0xaba5e9(_0x4fbdaa)),R(0x7,_0x1b4da7),R(0x8,_0x5995ce),R(0x9,_0xaba5e9(_0x2ae16f)),R(0xa,_0xaba5e9(_0x5d1c63)),R(0xb,_0xaba5e9(L)),R(0xc,_0x44ad0b(V))],J);let Y=class extends U{constructor(_0x1113bc,_0x3cd82d,_0x71eb03,_0x27b0f2,_0x204fb7,_0x460999,_0x151406,_0x5ddb17,_0x3924b0,_0x47be4b){const _0x130331=_0x8a6054;super(_0x1113bc,_0x3cd82d,_0x71eb03,_0x27b0f2,_0x204fb7,_0x5ddb17,_0x3924b0,_0x151406,_0x47be4b),this['_injector']=_0x460999,I(this,_0x130331(0x2d3),_0x130331(0x289));}['appendMutation'](_0x680dc){const _0x392541=_0x8a6054;return this[_0x392541(0x420)][_0x392541(0x27a)](_0x680dc),this[_0x392541(0x304)](),this;}[_0x8a6054(0x45b)](_0x22fa77){const _0x82874e=_0x8a6054;throw Error(_0x82874e(0x204));}[_0x8a6054(0x22d)](){const _0x107015=_0x8a6054;throw Error(_0x107015(0x3d3));}[_0x8a6054(0x388)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x8a6054(0x2f9)](){return this;}[_0x8a6054(0x374)](){return this;}[_0x8a6054(0x324)](){const _0x49670a=_0x8a6054;let {_injector:_0x120118,_pendingMutations:_0x18c07a,_awaitingChangeset:_0x1ba804,unitID:_0x559108,_handler:_0xc5ecbb,type:_0x277aca}=this,_0xf00237=ln(_0x120118,_0x559108,_0x277aca,_0x1ba804,_0x18c07a,_0xc5ecbb);return _0xf00237 instanceof G?_0xf00237[_0x49670a(0x40c)]():(_0xf00237 instanceof q||_0xf00237 instanceof K)&&_0xf00237[_0x49670a(0x2c4)](),_0xf00237;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Y=z([R(0x5,_0xaba5e9(_0x126fc9)),R(0x6,_0xaba5e9(_0x2ae16f)),R(0x7,_0x1b4da7),R(0x8,_0x5995ce),R(0x9,_0x44ad0b(V))],Y);let X=class extends U{constructor(_0x42c699,_0x411e63,_0x26581f,_0x5d6323,_0x1a1b14,_0x32a82c,_0x5f0207,_0x1ebd0b,_0x5ca377,_0x4b60eb,_0x3a7b79,_0x10f938,_0x4b45d4,_0x418368){const _0x4159e3=_0x8a6054;super(_0x42c699,_0x411e63,_0x26581f,_0x5d6323,_0x5f0207,_0x3a7b79,_0x10f938,_0x5ca377,_0x418368),this['_acknowledgedAwaitingRevision']=_0x1a1b14,this[_0x4159e3(0x2c7)]=_0x32a82c,this[_0x4159e3(0x21a)]=_0x1ebd0b,this[_0x4159e3(0x31e)]=_0x4b60eb,this[_0x4159e3(0x216)]=_0x4b45d4,this['localCacheService']=_0x418368,I(this,_0x4159e3(0x2d3),_0x4159e3(0x366));}['onMissedChangesetFetched'](_0x4ec830){const _0x28ae06=_0x8a6054;try{if(this['_handleRemoteChangesets'](_0x4ec830)[_0x28ae06(0x30b)])throw Error(_0x28ae06(0x279));if(this[_0x28ae06(0x423)]([...this[_0x28ae06(0x2c7)]]['sort']((_0x510a69,_0x512e94)=>_0x510a69[_0x28ae06(0x446)]-_0x512e94[_0x28ae06(0x446)]))[_0x28ae06(0x30b)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x28ae06(0x3ab)]['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x1cb5c2=this[_0x28ae06(0x2a0)],_0x1b7452=this[_0x28ae06(0x420)],_0x433942;if(_0x1cb5c2&&_0x1b7452[_0x28ae06(0x2fb)]!==0x0)_0x433942=this[_0x28ae06(0x21a)][_0x28ae06(0x275)](q,this['unitID'],this[_0x28ae06(0x466)],_0x1cb5c2,_0x1b7452,this[_0x28ae06(0x3ab)],void 0x0);else{if(_0x1cb5c2&&_0x1b7452[_0x28ae06(0x2fb)]===0x0)_0x1cb5c2['baseRev']=this[_0x28ae06(0x38a)](),_0x433942=this['_injector']['createInstance'](K,this['unitID'],this['type'],_0x1cb5c2,this[_0x28ae06(0x3ab)]);else{if(_0x1b7452[_0x28ae06(0x2fb)]!==0x0){let _0x1b5e32=this['_injector'][_0x28ae06(0x275)](G,this[_0x28ae06(0x33a)],this[_0x28ae06(0x466)],_0x1b7452,this[_0x28ae06(0x3ab)]);_0x1b5e32[_0x28ae06(0x40c)](),_0x433942=_0x1b5e32;}else _0x433942=this[_0x28ae06(0x21a)]['createInstance'](W,this[_0x28ae06(0x33a)],this[_0x28ae06(0x466)],this['_handler']);}}return _0x433942[_0x28ae06(0x304)](),_0x433942;}catch(_0x4deae1){return this[_0x28ae06(0x31e)]['error'](_0x28ae06(0x263),_0x28ae06(0x256),_0x4deae1),this[_0x28ae06(0x21a)]['createInstance'](J,this['unitID'],this[_0x28ae06(0x466)],this[_0x28ae06(0x2a0)],this[_0x28ae06(0x420)],this[_0x28ae06(0x3ab)],!0x1);}}[_0x8a6054(0x423)](_0x213de7){const _0x2eea72=_0x8a6054;this[_0x2eea72(0x403)]();for(let _0x34d294=0x0;_0x34d294<_0x213de7[_0x2eea72(0x2fb)];_0x34d294++){let _0x316c0d=_0x213de7[_0x34d294],_0x1b02b9=this[_0x2eea72(0x38a)]();if(!(_0x316c0d['revision']<=_0x1b02b9)){if(_0x316c0d[_0x2eea72(0x446)]>_0x1b02b9+0x1)return{'missingChangesets':!0x0};if(this[_0x2eea72(0x2e1)](_0x316c0d)){this[_0x2eea72(0x20e)]();continue;}this[_0x2eea72(0x32f)](_0x316c0d),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x8a6054(0x32f)](_0x52d2c0){const _0x7403cd=_0x8a6054;let _0x23bdd3=_0x52d2c0,_0x1a9d9c=this[_0x7403cd(0x2a0)];if(_0x1a9d9c){let _0x4b6539=this[_0x7403cd(0x216)][_0x7403cd(0x301)]([_0x52d2c0],[_0x1a9d9c],!0x1);if(!_0x6b1d9c(_0x4b6539))throw _0x4b6539['error'];_0x23bdd3=_0x4b6539[_0x7403cd(0x2b7)][0x0],_0x1a9d9c=_0x4b6539['c2Prime'][0x0];}let _0x6c8d92=this[_0x7403cd(0x420)];if(_0x6c8d92[_0x7403cd(0x2fb)]){let _0x2ddea8=this[_0x7403cd(0x216)]['transformMutationsWithChangeset'](_0x23bdd3,_0x6c8d92);if(!_0x3b86d9(_0x2ddea8))throw _0x2ddea8['error'];_0x23bdd3=_0x2ddea8['c1Prime'],_0x6c8d92=_0x2ddea8['m2Prime'];}this[_0x7403cd(0x3f4)](_0x23bdd3),_0x1a9d9c&&(_0x1a9d9c[_0x7403cd(0x20f)]=this[_0x7403cd(0x38a)]()),this['_awaitingChangeset']=_0x1a9d9c,this['_pendingMutations']=_0x6c8d92;}[_0x8a6054(0x403)](){const _0x2c213b=_0x8a6054;if(!this['_awaitingChangeset']||this[_0x2c213b(0x42e)]==null)return;let _0x239c5c=this[_0x2c213b(0x38a)]();if(this[_0x2c213b(0x42e)]<=_0x239c5c)throw Error(_0x2c213b(0x401)+this[_0x2c213b(0x42e)]+'.');this[_0x2c213b(0x42e)]===_0x239c5c+0x1&&this[_0x2c213b(0x20e)]();}[_0x8a6054(0x20e)](){const _0x128b27=_0x8a6054;this[_0x128b27(0x32e)](),this[_0x128b27(0x2a0)]=null,this['_acknowledgedAwaitingRevision']=null;}['_isEchoedAwaitingChangeset'](_0x972d9f){const _0x4d9ea1=_0x8a6054;let _0x16534b=this[_0x4d9ea1(0x2a0)];return!_0x16534b||!_0x16534b[_0x4d9ea1(0x2ba)]||_0x16534b[_0x4d9ea1(0x22e)]===null||_0x16534b[_0x4d9ea1(0x22e)]===void 0x0?!0x1:_0x972d9f['unitID']===_0x16534b[_0x4d9ea1(0x33a)]&&_0x972d9f[_0x4d9ea1(0x2ba)]===_0x16534b[_0x4d9ea1(0x2ba)]&&_0x972d9f['reqId']===_0x16534b[_0x4d9ea1(0x22e)];}[_0x8a6054(0x2c4)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x8a6054(0x453)](_0x5887c0){const _0x56b5e0=_0x8a6054;return this[_0x56b5e0(0x420)]['push'](_0x5887c0),this;}[_0x8a6054(0x45b)](_0x2528e2){const _0x3d6831=_0x8a6054;return this[_0x3d6831(0x2c7)]['push'](_0x2528e2),this;}['onRemoteAck'](_0xce1fd5){const _0x52a891=_0x8a6054;if(this[_0x52a891(0x2a0)]){let _0x56fe67=this[_0x52a891(0x38a)]();return _0xce1fd5[_0x52a891(0x446)]<=_0x56fe67||(_0x56fe67+0x1===_0xce1fd5[_0x52a891(0x446)]?(this[_0x52a891(0x32e)](),this['_awaitingChangeset']=null,this[_0x52a891(0x42e)]=null):this[_0x52a891(0x42e)]=_0xce1fd5[_0x52a891(0x446)]),this;}if(_0xce1fd5[_0x52a891(0x446)]<=this[_0x52a891(0x38a)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x3a81db){const _0x22f356=_0x8a6054;return this[_0x22f356(0x38c)](!!(_0x3a81db!=null&&_0x3a81db[_0x22f356(0x352)]));}[_0x8a6054(0x2f9)](){return this;}['toggleOffline'](){const _0x3553a0=_0x8a6054;return this[_0x3553a0(0x21a)]['createInstance'](Y,this[_0x3553a0(0x33a)],this[_0x3553a0(0x466)],this[_0x3553a0(0x2a0)],this[_0x3553a0(0x420)],this[_0x3553a0(0x3ab)]);}['toggleOnline'](){return this;}[_0x8a6054(0x38c)](_0x121ac3){const _0x4e75f8=_0x8a6054;return this['_injector'][_0x4e75f8(0x275)](J,this[_0x4e75f8(0x33a)],this['type'],this[_0x4e75f8(0x2a0)],this[_0x4e75f8(0x420)],this['_handler'],_0x121ac3);}};X=z([R(0x7,_0xaba5e9(_0x126fc9)),R(0x8,_0xaba5e9(_0x2ae16f)),R(0x9,_0x2b6744),R(0xa,_0x1b4da7),R(0xb,_0x5995ce),R(0xc,_0x3a7b09),R(0xd,_0x44ad0b(V))],X);function ln(_0x5efc66,_0x22c0ba,_0x58cf07,_0x2dadc5,_0x4b7a94,_0x411887){const _0x196ce6=_0x8a6054;return _0x2dadc5&&_0x4b7a94[_0x196ce6(0x2fb)]?_0x5efc66['createInstance'](q,_0x22c0ba,_0x58cf07,_0x2dadc5,_0x4b7a94,_0x411887,void 0x0):_0x2dadc5?_0x5efc66['createInstance'](K,_0x22c0ba,_0x58cf07,_0x2dadc5,_0x411887):_0x4b7a94[_0x196ce6(0x2fb)]?_0x5efc66[_0x196ce6(0x275)](G,_0x22c0ba,_0x58cf07,_0x4b7a94,_0x411887):_0x5efc66[_0x196ce6(0x275)](W,_0x22c0ba,_0x58cf07,_0x411887);}let Z=class extends _0x2cad8a{get[_0x8a6054(0x32a)](){const _0x5edae9=_0x8a6054;return this[_0x5edae9(0x2e4)];}constructor(_0x42f1d8,_0x4a3e02,_0x985d39,_0x2315b9,_0x307e59,_0x4ec7e4,_0x2c3b6e,_0x480efd,_0x3e3102,_0x974c9a,_0x190170,_0x1f9590,_0x12aac2,_0x215cb6){const _0x4a2ef8=_0x8a6054;super(),this[_0x4a2ef8(0x33a)]=_0x42f1d8,this[_0x4a2ef8(0x27c)]=_0x4a3e02,this[_0x4a2ef8(0x33c)]=_0x985d39,this['_injector']=_0x2315b9,this[_0x4a2ef8(0x29a)]=_0x307e59,this['_localeService']=_0x4ec7e4,this[_0x4a2ef8(0x412)]=_0x2c3b6e,this[_0x4a2ef8(0x2f5)]=_0x480efd,this['_univerInstanceService']=_0x3e3102,this[_0x4a2ef8(0x31e)]=_0x974c9a,this[_0x4a2ef8(0x238)]=_0x190170,this['_permissionService']=_0x1f9590,this['_singleActiveUnitService']=_0x12aac2,this[_0x4a2ef8(0x3bd)]=_0x215cb6,I(this,'_state$',new _0xe5e901(null)),I(this,_0x4a2ef8(0x2b5),this[_0x4a2ef8(0x2af)][_0x4a2ef8(0x2a7)]()),I(this,_0x4a2ef8(0x2e4),void 0x0),I(this,_0x4a2ef8(0x245),!0x1),I(this,_0x4a2ef8(0x467),''),I(this,_0x4a2ef8(0x26e),0x0),I(this,_0x4a2ef8(0x417),this[_0x4a2ef8(0x2b5)][_0x4a2ef8(0x320)](_0x3e2b04(_0x1c014f=>_0x1c014f?_0x1c014f[_0x4a2ef8(0x2d3)]:'offline'),_0x350751({'bufferSize':0x1,'refCount':!0x0}))),I(this,_0x4a2ef8(0x1f4),!0x1),I(this,'_remoteChangesetQueue',[]);}async[_0x8a6054(0x25b)](){const _0x41329f=_0x8a6054;if(this[_0x41329f(0x32a)])throw Error(_0x41329f(0x3d0));await this[_0x41329f(0x41c)]();}['pauseCollaboration'](){return this['_collaborationPaused']=!0x0,_0x38efac(()=>{const _0x2287f3=_0x4e5e;this[_0x2287f3(0x245)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['onLocalMutation'](_0x21309b){this['_onLocalMutation'](_0x21309b);}[_0x8a6054(0x307)](_0x495af5){const _0x6f7739=_0x8a6054;this[_0x6f7739(0x2e4)]=_0x495af5,this['_state$']['next'](_0x495af5);}async['_init'](){const _0x45e1aa=_0x8a6054;if(this[_0x45e1aa(0x307)](await this[_0x45e1aa(0x3e1)]()),this[_0x45e1aa(0x277)]){var _0x4e5b1b;(_0x4e5b1b=this[_0x45e1aa(0x277)])==null||_0x4e5b1b['editingUnit'](this[_0x45e1aa(0x33a)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x45e1aa(0x3fd)](this[_0x45e1aa(0x33a)])[_0x45e1aa(0x2f8)](_0x3b0fa4=>{const _0x3951df=_0x45e1aa;this['_logService'][_0x3951df(0x252)](_0x3951df(0x2eb),_0x3951df(0x2a4),_0x3b0fa4),_0x3b0fa4===0x1?(this['_eventService']['emitEvent']({'id':_0x3951df(0x2c2)}),this[_0x3951df(0x361)][_0x3951df(0x2dd)](new _0x15b1fe(this[_0x3951df(0x33a)])['id'],!0x1),this[_0x3951df(0x361)][_0x3951df(0x3b2)](!0x1)):(this[_0x3951df(0x361)][_0x3951df(0x2dd)](new _0x15b1fe(this[_0x3951df(0x33a)])['id'],!0x0),this[_0x3951df(0x361)][_0x3951df(0x3b2)](!0x0));}));}let _0x51342b=!0x1;return this[_0x45e1aa(0x368)](this[_0x45e1aa(0x27c)][_0x45e1aa(0x37b)][_0x45e1aa(0x2f8)](_0x248c46=>{const _0x1ee810=_0x45e1aa;_0x248c46===0x3?this['_toggleOnline'](_0x51342b):_0x248c46===0x2&&(_0x51342b=!0x0,this[_0x1ee810(0x3f8)]());})),this[_0x45e1aa(0x368)](this[_0x45e1aa(0x27c)]['event$'][_0x45e1aa(0x2f8)](_0x4983fb=>{const _0x512eeb=_0x45e1aa;try{switch(_0x4983fb[_0x512eeb(0x2d0)]){case _0xaf3ca4['NEW_CHANGESETS']:this[_0x512eeb(0x3d9)](_0x5aeffd(_0x4983fb['data']));break;case _0xaf3ca4[_0x512eeb(0x360)]:this[_0x512eeb(0x390)](_0x4983fb['data']);break;case _0xaf3ca4[_0x512eeb(0x32b)]:this['_onRemoteRejected']();break;case _0xaf3ca4['CHANGESET_SHOULD_RETRY']:this['_onRemoteRetry'](_0x4983fb[_0x512eeb(0x21e)]);break;case _0xaf3ca4[_0x512eeb(0x29f)]:this[_0x512eeb(0x3a7)](_0x4983fb[_0x512eeb(0x21e)][_0x512eeb(0x2f7)][_0x512eeb(0x3bc)](_0x261a9a=>_0x5aeffd(_0x261a9a)));break;case _0xaf3ca4['PERMISSION_REJ']:this[_0x512eeb(0x22a)]({'isPermissionRej':!0x0});break;case _0xaf3ca4['UNISCRIPT_RUN']:break;}}catch(_0x5aae42){throw console[_0x512eeb(0x2c0)]('Error\x20on\x20receiving\x20event',_0x5aae42),_0x5aae42;}})),this['_state'];}[_0x8a6054(0x330)](){this['_transitionLocked']=!0x1;}[_0x8a6054(0x1f7)](){const _0x487ec0=_0x8a6054;if(this[_0x487ec0(0x1f4)])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['_transitionLocked']=!0x0;}[_0x8a6054(0x2b4)](_0x5f3888){const _0x1508b6=_0x8a6054;this[_0x1508b6(0x1f7)](),this[_0x1508b6(0x307)](this[_0x1508b6(0x2e4)]['appendMutation'](_0x5f3888)),this['_unlockTransition']();}[_0x8a6054(0x3d9)](_0x206ec5){const _0x5e8bb7=_0x8a6054;if(!(_0x206ec5[_0x5e8bb7(0x446)]<=this[_0x5e8bb7(0x412)][_0x5e8bb7(0x35a)](this[_0x5e8bb7(0x33a)]))){if(this[_0x5e8bb7(0x245)]){this['_remoteChangesetQueue'][_0x5e8bb7(0x27a)](_0x206ec5);return;}this[_0x5e8bb7(0x299)](_0x206ec5);}}[_0x8a6054(0x2fd)](){const _0x4ead4e=_0x8a6054;this[_0x4ead4e(0x422)][_0x4ead4e(0x380)](_0x52b415=>this[_0x4ead4e(0x299)](_0x52b415)),this[_0x4ead4e(0x422)]=[];}[_0x8a6054(0x299)](_0x4a8ef0){const _0x196023=_0x8a6054;let _0x3a5a7f=this[_0x196023(0x29a)][_0x196023(0x221)]['fetchThroughInterceptors'](this[_0x196023(0x29a)][_0x196023(0x221)][_0x196023(0x2f0)]()['COMPRESS_MUTATION_APPLY'])(_0x4a8ef0[_0x196023(0x444)],null)||_0x4a8ef0[_0x196023(0x444)],_0x295795={..._0x4a8ef0,'mutations':_0x3a5a7f};this[_0x196023(0x1f7)](),this[_0x196023(0x307)](this[_0x196023(0x2e4)][_0x196023(0x45b)](_0x295795)),this[_0x196023(0x330)]();}[_0x8a6054(0x390)](_0x5efa2d){const _0x556a41=_0x8a6054;this[_0x556a41(0x1f7)](),this[_0x556a41(0x307)](this[_0x556a41(0x2e4)]['onRemoteAck'](_0x5efa2d)),this[_0x556a41(0x330)]();}[_0x8a6054(0x22a)](_0x5d4c40){const _0x4f2402=_0x8a6054;this[_0x4f2402(0x1f7)](),this[_0x4f2402(0x307)](this['_state'][_0x4f2402(0x388)](_0x5d4c40)),this['_unlockTransition']();}['_onRemoteRetry'](_0x2bcbb1){const _0x5691cb=_0x8a6054;this['_lockTransition'](),this[_0x5691cb(0x307)](this[_0x5691cb(0x2e4)][_0x5691cb(0x2f9)](_0x2bcbb1)),this['_unlockTransition']();}[_0x8a6054(0x3a7)](_0x2ca512){const _0xcae279=_0x8a6054;if(!(this[_0xcae279(0x2e4)]instanceof X))throw TypeError(_0xcae279(0x40b));let _0x423cd4=_0x2ca512[_0xcae279(0x3bc)](_0x1febeb=>{const _0x507451=_0xcae279;let _0x511910=this[_0x507451(0x29a)][_0x507451(0x221)][_0x507451(0x3a9)](this['_compressMutationService'][_0x507451(0x221)][_0x507451(0x2f0)]()[_0x507451(0x3e2)])(_0x1febeb[_0x507451(0x444)],null)||_0x1febeb['mutations'];return{..._0x1febeb,'mutations':_0x511910};});this['_lockTransition'](),this['_updateState'](this[_0xcae279(0x2e4)]['onMissedChangesetFetched'](_0x423cd4)),this[_0xcae279(0x330)]();}[_0x8a6054(0x3f8)](){const _0x402d20=_0x8a6054;this[_0x402d20(0x1f7)](),this[_0x402d20(0x307)](this[_0x402d20(0x2e4)][_0x402d20(0x374)]()),this['_unlockTransition']();}[_0x8a6054(0x359)](_0x4f58ec=!0x1){const _0x261613=_0x8a6054;this[_0x261613(0x1f7)](),this['_updateState'](this['_state'][_0x261613(0x324)]()),this['_unlockTransition']();let _0x39f7bb=this['_state'];_0x4f58ec&&_0x39f7bb instanceof W&&(this[_0x261613(0x1f7)](),this[_0x261613(0x307)](_0x39f7bb['fetchMiss']()),this[_0x261613(0x330)]());}async[_0x8a6054(0x3e1)](){return new Promise(_0x5d9f1f=>{const _0x1989f9=_0x4e5e;this[_0x1989f9(0x27c)][_0x1989f9(0x37b)]['pipe'](_0x207f3d(0x1))[_0x1989f9(0x2f8)](async _0x54b9e2=>{const _0x2b72bb=_0x1989f9;_0x5d9f1f(await this[_0x2b72bb(0x3cf)](_0x54b9e2===0x3));});});}['_createHandler'](){const _0x3fc132=_0x8a6054;let _0x5ad7b9=this[_0x3fc132(0x33a)];return{'onStateChange':(_0x24ad98,_0x23ddbd)=>{const _0x39c957=_0x3fc132;if(_0x24ad98!==this[_0x39c957(0x2e4)])throw Error(_0x39c957(0x22b)+_0x24ad98[_0x39c957(0x2d3)]+_0x39c957(0x3c0)+_0x23ddbd[_0x39c957(0x2d3)]+_0x39c957(0x24c)+this['_state'][_0x39c957(0x2d3)]);this['_updateState'](_0x23ddbd);},'onSendChangeset':_0x237105=>{const _0x3bbcc6=_0x3fc132;_0x237105[_0x3bbcc6(0x2ba)]||(_0x237105[_0x3bbcc6(0x2ba)]=this['_changesetSessionId'],_0x237105['reqId']=++this[_0x3bbcc6(0x26e)]);let _0x1d04e8={'eventID':_0xaf3ca4[_0x3bbcc6(0x3cd)],'data':{'unitID':_0x237105[_0x3bbcc6(0x33a)],'unitType':this[_0x3bbcc6(0x33c)],'changeset':_0x237105,'memberID':this[_0x3bbcc6(0x27c)][_0x3bbcc6(0x2c6)]()}};this[_0x3bbcc6(0x27c)][_0x3bbcc6(0x20d)](_0x1d04e8,this[_0x3bbcc6(0x33a)]);},'onMissingChangesets':({from:_0x106fe6,to:_0x4e5733})=>{const _0xf8c40=_0x3fc132;this['_logService'][_0xf8c40(0x252)](_0xf8c40(0x2eb),'fetching\x20missing\x20changesets\x20from\x20'+_0x106fe6+_0xf8c40(0x3dc)+_0x4e5733);let _0x1bc8f1={'eventID':_0xaf3ca4[_0xf8c40(0x236)],'data':{'unitID':_0x5ad7b9,'unitType':this[_0xf8c40(0x33c)],'from':_0x106fe6,'to':_0x4e5733}};this['session']['send'](_0x1bc8f1,this[_0xf8c40(0x33a)]);}};}async['_createInitialStateImpl'](_0x448e48){const _0x4c5624=_0x8a6054;var _0x54c82d,_0x44c606,_0x7023e3;let _0x3a51e9=await((_0x54c82d=this[_0x4c5624(0x3bd)])==null?void 0x0:_0x54c82d[_0x4c5624(0x3af)](this['unitID'])),_0x2cf672=(_0x44c606=_0x3a51e9==null?void 0x0:_0x3a51e9[_0x4c5624(0x444)])==null?[]:_0x44c606,_0x25c2ca=(_0x7023e3=_0x3a51e9==null?void 0x0:_0x3a51e9[_0x4c5624(0x2d1)])==null?null:_0x7023e3,_0x41f21f=!!(_0x25c2ca!=null&&_0x25c2ca[_0x4c5624(0x2ba)])&&!!(_0x25c2ca!=null&&_0x25c2ca['reqId']);this[_0x4c5624(0x467)]=_0x41f21f?_0x25c2ca[_0x4c5624(0x2ba)]:_0x5f1132(),this[_0x4c5624(0x26e)]=_0x41f21f?_0x25c2ca[_0x4c5624(0x22e)]:0x0;let _0x36dd21=this['unitID'];try{this[_0x4c5624(0x3fa)](_0x25c2ca,_0x2cf672);}catch(_0x4161b3){this[_0x4c5624(0x31e)][_0x4c5624(0x2c0)](_0x4161b3);}let _0x4846d3=this['_createHandler']();if(_0x448e48){let _0xdb7617=ln(this[_0x4c5624(0x21a)],_0x36dd21,this['_type'],_0x25c2ca,_0x2cf672,_0x4846d3);return _0xdb7617 instanceof G?_0xdb7617[_0x4c5624(0x40c)]():(_0xdb7617 instanceof q||_0xdb7617 instanceof K)&&_0xdb7617['resend'](),_0xdb7617;}return this[_0x4c5624(0x21a)][_0x4c5624(0x275)](Y,_0x36dd21,this[_0x4c5624(0x33c)],_0x25c2ca,_0x2cf672,_0x4846d3);}[_0x8a6054(0x3fa)](_0x36610f,_0x3c6012){const _0x3ffc63=_0x8a6054;var _0x1c05d2,_0x1c71af;let _0x51d217=this[_0x3ffc63(0x29a)][_0x3ffc63(0x221)][_0x3ffc63(0x3a9)](this['_compressMutationService'][_0x3ffc63(0x221)][_0x3ffc63(0x2f0)]()[_0x3ffc63(0x3e2)]);(_0x1c05d2=_0x51d217((_0x36610f==null?void 0x0:_0x36610f[_0x3ffc63(0x444)])||[],null))==null||_0x1c05d2[_0x3ffc63(0x380)](_0x4e44a7=>this[_0x3ffc63(0x238)][_0x3ffc63(0x246)](_0x4e44a7['id'],_0x4e44a7[_0x3ffc63(0x3e9)])),(_0x1c71af=_0x51d217(_0x3c6012||[],null))==null||_0x1c71af[_0x3ffc63(0x380)](_0x5e968a=>this[_0x3ffc63(0x238)][_0x3ffc63(0x246)](_0x5e968a['id'],_0x5e968a[_0x3ffc63(0x3e9)]));}};Z=z([R(0x3,_0xaba5e9(_0x126fc9)),R(0x4,_0xaba5e9(_0x3076ce)),R(0x5,_0xaba5e9(_0x5d1c63)),R(0x6,_0xaba5e9(_0x2ae16f)),R(0x7,_0xaba5e9(L)),R(0x8,_0x3ca986),R(0x9,_0x2b6744),R(0xa,_0x1b4da7),R(0xb,_0x4fbdaa),R(0xc,_0x44ad0b(H)),R(0xd,_0x44ad0b(V))],Z);let un=class extends Z{constructor(_0x15c3ce,_0x3d3c21,_0x4bc8eb,_0x59cf76,_0x1cc758,_0x158227,_0x46cb8a,_0x5ef9a3,_0x27d7e3,_0x3b023c,_0x9acad4,_0x1604ee,_0x4a8e6c,_0x5ac7b5,_0x5d417c){const _0x40e6be=_0x8a6054;super(_0x15c3ce,_0x4bc8eb,_0x3d3c21,_0x59cf76,_0x1cc758,_0x158227,_0x46cb8a,_0x5ef9a3,_0x27d7e3,_0x3b023c,_0x9acad4,_0x1604ee,_0x5ac7b5,_0x5d417c),this[_0x40e6be(0x33a)]=_0x15c3ce,this[_0x40e6be(0x466)]=_0x3d3c21,this['_docStateChangeManagerService']=_0x4a8e6c,I(this,_0x40e6be(0x2e0),null);}[_0x8a6054(0x44c)](_0xbaaa78){const _0x5b9cc1=_0x8a6054;this[_0x5b9cc1(0x2e0)]=_0xbaaa78;}['dispose'](){const _0x535424=_0x8a6054;this[_0x535424(0x2e0)]=null,super[_0x535424(0x457)]();}[_0x8a6054(0x45e)](){const _0x493982=_0x8a6054;let _0x7cf009=super[_0x493982(0x45e)]();return _0x7cf009[_0x493982(0x33d)]=_0x1e102e=>{const _0x40e202=_0x493982;var _0x8e7ebc,_0x289beb;return(_0x8e7ebc=this[_0x40e202(0x2e0)])==null||(_0x289beb=_0x8e7ebc[_0x40e202(0x33d)])==null?void 0x0:_0x289beb['call'](_0x8e7ebc,_0x1e102e);},_0x7cf009[_0x493982(0x3f0)]=_0x498eed=>{const _0x373a96=_0x493982;var _0x566c09,_0x564478;return(_0x566c09=this['_handlerCallback'])==null||(_0x564478=_0x566c09[_0x373a96(0x3f0)])==null?void 0x0:_0x564478[_0x373a96(0x1f6)](_0x566c09,_0x498eed);},_0x7cf009[_0x493982(0x260)]=_0x342744=>{const _0x58848a=_0x493982;var _0x493301,_0x1dba1e;return(_0x493301=this[_0x58848a(0x2e0)])==null||(_0x1dba1e=_0x493301[_0x58848a(0x260)])==null?void 0x0:_0x1dba1e['call'](_0x493301,_0x342744);},_0x7cf009[_0x493982(0x356)]=_0xc87ff8=>{const _0x5f44b3=_0x493982;var _0x2ba5c1,_0x3905d5;return(_0x2ba5c1=this[_0x5f44b3(0x2e0)])==null||(_0x3905d5=_0x2ba5c1[_0x5f44b3(0x356)])==null?void 0x0:_0x3905d5[_0x5f44b3(0x1f6)](_0x2ba5c1,_0xc87ff8);},_0x7cf009['onTransformRemoteChangesetByIMECache']=_0x4f24b8=>{const _0x4f126b=_0x493982;var _0x2460fb,_0x5b9a99,_0x432fb6;return(_0x2460fb=(_0x5b9a99=this[_0x4f126b(0x2e0)])==null||(_0x432fb6=_0x5b9a99['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x432fb6['call'](_0x5b9a99,_0x4f24b8))==null?_0x4f24b8:_0x2460fb;},_0x7cf009['onTransformRemoteChangesetByStateCache']=_0x1ae500=>{const _0x214b57=_0x493982;var _0x4d1b4f,_0x3969dd,_0x4ab939;return(_0x4d1b4f=(_0x3969dd=this['_handlerCallback'])==null||(_0x4ab939=_0x3969dd[_0x214b57(0x346)])==null?void 0x0:_0x4ab939[_0x214b57(0x1f6)](_0x3969dd,_0x1ae500))==null?_0x1ae500:_0x4d1b4f;},_0x7cf009;}async['_init'](){const _0x530b91=_0x8a6054;if(this[_0x530b91(0x3f6)]==null)throw Error(_0x530b91(0x262));let _0x300443=await super[_0x530b91(0x41c)]();return this['disposeWithMe'](this[_0x530b91(0x3f6)][_0x530b91(0x2fe)]['subscribe'](_0x8ea769=>{const _0xcf479c=_0x530b91;if(_0x8ea769==null||_0x8ea769['unitId']!==this['unitID'])return;let {commandId:_0x51b354,redoState:_0x1e9da3,unitId:_0x54ab00}=_0x8ea769,_0x491f2b={'id':_0x51b354,'type':_0x5e8c41['MUTATION'],'params':{'unitId':_0x54ab00,'actions':_0x1e9da3[_0xcf479c(0x290)],'textRanges':null}};this['_onLocalMutation'](_0x491f2b);})),this[_0x530b91(0x368)](this[_0x530b91(0x238)]['onMutationExecutedForCollab']((_0x5f3c49,_0x517ed0)=>{const _0x5a4d63=_0x530b91;if(_0x5f3c49['type']!==_0x5e8c41[_0x5a4d63(0x28f)]||_0x517ed0!=null&&_0x517ed0[_0x5a4d63(0x343)]||_0x517ed0!=null&&_0x517ed0[_0x5a4d63(0x269)]||_0x5f3c49['id']===_0x58b552['id'])return;let _0x5ed864=_0x5f3c49['params'];if((_0x5ed864==null?void 0x0:_0x5ed864['unitId'])!==this[_0x5a4d63(0x33a)])return;let _0x4441f1=_0x5f3c49,_0x131b7d=this[_0x5a4d63(0x29a)][_0x5a4d63(0x221)][_0x5a4d63(0x3a9)](this[_0x5a4d63(0x29a)]['interceptor'][_0x5a4d63(0x2f0)]()['COMPRESS_MUTATION_SEND'])([_0x4441f1],this['_univerInstanceService'])||[_0x4441f1];this[_0x5a4d63(0x2b4)](_0x131b7d[0x0]);})),_0x300443;}};function _0x4e5e(_0x53e40b,_0x323fad){_0x53e40b=_0x53e40b-0x1f3;const _0x13e4ec=_0x13e4();let _0x4e5eb4=_0x13e4ec[_0x53e40b];return _0x4e5eb4;}un=z([R(0x3,_0xaba5e9(_0x126fc9)),R(0x4,_0xaba5e9(_0x3076ce)),R(0x5,_0xaba5e9(_0x5d1c63)),R(0x6,_0xaba5e9(_0x2ae16f)),R(0x7,_0xaba5e9(L)),R(0x8,_0x3ca986),R(0x9,_0x2b6744),R(0xa,_0x1b4da7),R(0xb,_0x4fbdaa),R(0xc,_0x44ad0b(_0x31afd)),R(0xd,_0x44ad0b(H)),R(0xe,_0x44ad0b(V))],un);let dn=class extends Z{constructor(_0x2b8ed9,_0x2ddb3f,_0x2df603,_0x49995f,_0xf0f935,_0x534b30,_0x10352a,_0x2ebded,_0x3efbf8,_0x42de40,_0x5d96c5,_0x3a081f,_0xeccb7f,_0x2cf9ca){const _0x20e9ac=_0x8a6054;super(_0x2b8ed9,_0x2df603,_0x2ddb3f,_0x49995f,_0xf0f935,_0x534b30,_0x10352a,_0x2ebded,_0x3efbf8,_0x42de40,_0x5d96c5,_0x3a081f,_0xeccb7f,_0x2cf9ca),this[_0x20e9ac(0x33a)]=_0x2b8ed9,this['type']=_0x2ddb3f;}async[_0x8a6054(0x41c)](){const _0x183476=_0x8a6054;let _0x5b0b1b=await super[_0x183476(0x41c)]();return this['disposeWithMe'](this[_0x183476(0x238)][_0x183476(0x38d)]((_0x8ddcf0,_0x4e6f0e)=>{const _0x4b3b72=_0x183476;if(_0x8ddcf0['type']!==_0x5e8c41[_0x4b3b72(0x28f)]||_0x4e6f0e!=null&&_0x4e6f0e[_0x4b3b72(0x343)]||_0x4e6f0e!=null&&_0x4e6f0e[_0x4b3b72(0x269)]||_0x8ddcf0['id']!==_0x3f56f6['id'])return;let _0x485287=_0x8ddcf0['params'];if((_0x485287==null?void 0x0:_0x485287['unitId'])!==this[_0x4b3b72(0x33a)])return;let _0x1dbbff=_0x8ddcf0,_0x488694=this[_0x4b3b72(0x29a)][_0x4b3b72(0x221)][_0x4b3b72(0x3a9)](this[_0x4b3b72(0x29a)][_0x4b3b72(0x221)]['getInterceptPoints']()[_0x4b3b72(0x442)])([_0x1dbbff],this['_univerInstanceService'])||[_0x1dbbff];this[_0x4b3b72(0x2b4)](_0x488694[0x0]);})),_0x5b0b1b;}};dn=z([R(0x3,_0xaba5e9(_0x126fc9)),R(0x4,_0xaba5e9(_0x3076ce)),R(0x5,_0xaba5e9(_0x5d1c63)),R(0x6,_0xaba5e9(_0x2ae16f)),R(0x7,_0xaba5e9(L)),R(0x8,_0x3ca986),R(0x9,_0x2b6744),R(0xa,_0x1b4da7),R(0xb,_0x4fbdaa),R(0xc,_0x44ad0b(H)),R(0xd,_0x44ad0b(V))],dn);let fn=class extends Z{constructor(_0x1014f8,_0x22d5ad,_0x4df9bf,_0x1aa76f,_0x2d55fe,_0x15d4e9,_0x4284ec,_0x4a62c4,_0x48dc3a,_0x2384ec,_0xd3ffbd,_0x42ce41,_0x279444,_0xfed492,_0x4c7d71){const _0x3ad1fc=_0x8a6054;super(_0x1014f8,_0x4df9bf,_0x22d5ad,_0x1aa76f,_0x2d55fe,_0x15d4e9,_0x4284ec,_0x48dc3a,_0x2384ec,_0xd3ffbd,_0x42ce41,_0x279444,_0xfed492,_0x4c7d71),this['unitID']=_0x1014f8,this[_0x3ad1fc(0x466)]=_0x22d5ad,this[_0x3ad1fc(0x31d)]=_0x4a62c4;}[_0x8a6054(0x45e)](){const _0x5ca4d9=_0x8a6054;let _0x58d0a6=super[_0x5ca4d9(0x45e)]();return _0x58d0a6[_0x5ca4d9(0x260)]=_0x23919e=>this[_0x5ca4d9(0x31d)][_0x5ca4d9(0x27e)](_0x23919e),_0x58d0a6;}async[_0x8a6054(0x41c)](){const _0x5a765f=_0x8a6054;let _0x249a31=await super['_init']();return this[_0x5a765f(0x368)](this[_0x5a765f(0x238)][_0x5a765f(0x38d)]((_0x51c626,_0x527a6c)=>{const _0x53dd84=_0x5a765f;if(_0x51c626[_0x53dd84(0x466)]!==_0x5e8c41[_0x53dd84(0x28f)]||_0x527a6c!=null&&_0x527a6c[_0x53dd84(0x343)]||_0x527a6c!=null&&_0x527a6c[_0x53dd84(0x269)])return;let _0x1f947a=_0x51c626[_0x53dd84(0x3e9)];if((_0x1f947a==null?void 0x0:_0x1f947a[_0x53dd84(0x33e)])!==this[_0x53dd84(0x33a)])return;let _0x36d62b=_0x51c626,_0x1cc54a=this[_0x53dd84(0x29a)]['interceptor'][_0x53dd84(0x3a9)](this['_compressMutationService'][_0x53dd84(0x221)][_0x53dd84(0x2f0)]()['COMPRESS_MUTATION_SEND'])([_0x36d62b],this[_0x53dd84(0x42c)])||[_0x36d62b];this[_0x53dd84(0x2b4)](_0x1cc54a[0x0]);})),_0x249a31;}};fn=z([R(0x3,_0xaba5e9(_0x126fc9)),R(0x4,_0xaba5e9(_0x3076ce)),R(0x5,_0xaba5e9(_0x5d1c63)),R(0x6,_0xaba5e9(_0x2ae16f)),R(0x7,_0xaba5e9(zt)),R(0x8,_0xaba5e9(L)),R(0x9,_0x3ca986),R(0xa,_0x2b6744),R(0xb,_0x1b4da7),R(0xc,_0x4fbdaa),R(0xd,_0x44ad0b(H)),R(0xe,_0x44ad0b(V))],fn);let pn=class extends Z{constructor(_0x54e3e9,_0x31fb73,_0x1ebed3,_0xa3cc53,_0x378731,_0x42e3c2,_0x4883be,_0x24f80e,_0x586882,_0x152914,_0x4d3892,_0x51bd8a,_0x1241e7,_0x542373){const _0x24b96b=_0x8a6054;super(_0x54e3e9,_0x1ebed3,_0x31fb73,_0xa3cc53,_0x378731,_0x42e3c2,_0x4883be,_0x24f80e,_0x586882,_0x152914,_0x4d3892,_0x51bd8a,_0x1241e7,_0x542373),this['unitID']=_0x54e3e9,this[_0x24b96b(0x466)]=_0x31fb73;}async['_init'](){const _0x3d94ff=_0x8a6054;let _0x10e866=await super[_0x3d94ff(0x41c)]();return this[_0x3d94ff(0x368)](this['_commandService'][_0x3d94ff(0x38d)]((_0x3609c1,_0x120aa6)=>{const _0x410ef7=_0x3d94ff;if(_0x3609c1[_0x410ef7(0x466)]!==_0x5e8c41['MUTATION']||_0x120aa6!=null&&_0x120aa6['fromCollab']||_0x120aa6!=null&&_0x120aa6[_0x410ef7(0x269)])return;let _0x3bf483=_0x3609c1[_0x410ef7(0x3e9)];if((_0x3bf483==null?void 0x0:_0x3bf483[_0x410ef7(0x33e)])!==this[_0x410ef7(0x33a)])return;let _0x98b27=_0x3609c1,_0x133643=this['_compressMutationService'][_0x410ef7(0x221)][_0x410ef7(0x3a9)](this['_compressMutationService'][_0x410ef7(0x221)][_0x410ef7(0x2f0)]()['COMPRESS_MUTATION_SEND'])([_0x98b27],this[_0x410ef7(0x42c)])||[_0x98b27];this['_onLocalMutation'](_0x133643[0x0]);})),_0x10e866;}};pn=z([R(0x3,_0xaba5e9(_0x126fc9)),R(0x4,_0xaba5e9(_0x3076ce)),R(0x5,_0xaba5e9(_0x5d1c63)),R(0x6,_0xaba5e9(_0x2ae16f)),R(0x7,_0xaba5e9(L)),R(0x8,_0x3ca986),R(0x9,_0x2b6744),R(0xa,_0x1b4da7),R(0xb,_0x4fbdaa),R(0xc,_0x44ad0b(H)),R(0xd,_0x44ad0b(V))],pn);const mn=_0x1460b1(_0x8a6054(0x213));function hn(_0xcbd1ae){const _0x5e4e52=_0x8a6054;let _0x2ef1e6=_0xcbd1ae[_0x5e4e52(0x21e)],_0x434589=JSON[_0x5e4e52(0x397)](_0x2ef1e6);switch(_0x434589[_0x5e4e52(0x39f)]){case _0x4741b3['HEARTBEAT']:case _0x4741b3[_0x5e4e52(0x20a)]:{let _0x421f61=_0x434589[_0x5e4e52(0x385)];return{..._0x434589,'data':_0x421f61,'cmd':_0x434589['cmd']};}case _0x4741b3[_0x5e4e52(0x3cb)]:{let _0x5c357b=_0x434589[_0x5e4e52(0x3c5)];return{..._0x434589,'data':_0x5c357b,'cmd':_0x434589['cmd']};}case _0x4741b3[_0x5e4e52(0x336)]:{let _0x16425d=_0x434589['collaMsg'];switch(_0x16425d[_0x5e4e52(0x2d0)]){case _0xaf3ca4['PERMISSION_REJ']:var _0x14cb0f;return{..._0x434589,'data':{..._0x16425d,'data':(_0x14cb0f=_0x16425d[_0x5e4e52(0x337)])==null?void 0x0:_0x14cb0f['cs']},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x360)]:var _0x70e24e;return{..._0x434589,'data':{..._0x16425d,'data':(_0x70e24e=_0x16425d['csAckEvent'])==null?void 0x0:_0x70e24e['cs']},'cmd':_0x434589['cmd']};case _0xaf3ca4[_0x5e4e52(0x3ae)]:var _0x309b6c;return{..._0x434589,'data':{..._0x16425d,'data':(_0x309b6c=_0x16425d[_0x5e4e52(0x454)])==null?void 0x0:_0x309b6c['cs']},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4['CHANGESET_REJ']:var _0x46577c;return{..._0x434589,'data':{..._0x16425d,'data':(_0x46577c=_0x16425d[_0x5e4e52(0x2d4)])==null?void 0x0:_0x46577c['cs']},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x393)]:var _0x162d34;return{..._0x434589,'data':{..._0x16425d,'data':(_0x162d34=_0x16425d[_0x5e4e52(0x3e3)])==null?void 0x0:_0x162d34['cs']},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x203)]:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x443)]},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4['USERS_ENTER']:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x3ed)]},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x276)]:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x43d)]},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x40e)]:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x1f8)]},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x22f)]:case _0xaf3ca4[_0x5e4e52(0x2ff)]:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x45f)]},'cmd':_0x434589['cmd']};case _0xaf3ca4[_0x5e4e52(0x20b)]:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x1f8)]},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4['MSG_FOR_ERROR']:return{..._0x434589,'data':_0x16425d,'cmd':_0x434589['cmd']};case _0xaf3ca4['COMMENT_UPDATE']:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x25e)]},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x458)]:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d['updatePermissionObjEvent']},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4[_0x5e4e52(0x3bf)]:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d[_0x5e4e52(0x3fb)]},'cmd':_0x434589[_0x5e4e52(0x39f)]};case _0xaf3ca4['UNISCRIPT_RUN']:return{..._0x434589,'data':{..._0x16425d,'data':_0x16425d['uniscriptRunEvent']},'cmd':_0x434589[_0x5e4e52(0x39f)]};default:return _0x434589;}}default:return _0x434589;}}function gn(_0x45786b){const _0x5dc514=_0x8a6054;switch(_0x45786b[_0x5dc514(0x39f)]){case _0x4741b3[_0x5dc514(0x26f)]:case _0x4741b3['HELLO']:return JSON['stringify']({'cmd':_0x45786b[_0x5dc514(0x39f)],'routeKey':_0x45786b['routeKey']});case _0x4741b3[_0x5dc514(0x222)]:{let _0x444091;switch(_0x45786b[_0x5dc514(0x21e)][_0x5dc514(0x2d0)]){case _0xaf3ca4[_0x5dc514(0x203)]:_0x444091={'eventID':_0xaf3ca4[_0x5dc514(0x203)],'updateCursorEvent':_0x45786b['data'][_0x5dc514(0x21e)]};break;case _0xaf3ca4['USERS_LEAVE']:_0x444091={'eventID':_0xaf3ca4[_0x5dc514(0x276)],'leaveEvent':_0x45786b[_0x5dc514(0x21e)][_0x5dc514(0x21e)]};break;case _0xaf3ca4[_0x5dc514(0x225)]:_0x444091={'eventID':_0xaf3ca4['USERS_ENTER'],'joinEvent':_0x45786b[_0x5dc514(0x21e)][_0x5dc514(0x21e)]};break;case _0xaf3ca4[_0x5dc514(0x40e)]:_0x444091={'eventID':_0xaf3ca4[_0x5dc514(0x40e)],'liveShareNewHost':_0x45786b[_0x5dc514(0x21e)][_0x5dc514(0x21e)]};break;case _0xaf3ca4['LIVESHARE_OPERATION']:_0x444091={'eventID':_0xaf3ca4[_0x5dc514(0x2ff)],'liveShareOperation':_0x45786b['data'][_0x5dc514(0x21e)]};break;case _0xaf3ca4[_0x5dc514(0x20b)]:_0x444091={'eventID':_0xaf3ca4[_0x5dc514(0x20b)],'liveShareTerminate':_0x45786b[_0x5dc514(0x21e)]['data']};break;case _0xaf3ca4[_0x5dc514(0x26c)]:_0x444091={'eventID':_0xaf3ca4[_0x5dc514(0x26c)],'liveShareRequestHost':_0x45786b[_0x5dc514(0x21e)]['data']};break;case _0xaf3ca4[_0x5dc514(0x22f)]:_0x444091={'eventID':_0xaf3ca4['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x444091={'eventID':_0x45786b[_0x5dc514(0x21e)][_0x5dc514(0x2d0)]};}return JSON[_0x5dc514(0x331)]({'cmd':_0x45786b[_0x5dc514(0x39f)],'routeKey':_0x45786b[_0x5dc514(0x3dd)],'collaMsg':_0x444091});}case _0x4741b3[_0x5dc514(0x3cb)]:return JSON[_0x5dc514(0x331)]({'cmd':_0x45786b[_0x5dc514(0x39f)],'routeKey':_0x45786b[_0x5dc514(0x3dd)],'joinReq':_0x45786b[_0x5dc514(0x21e)]});case _0x4741b3[_0x5dc514(0x3b5)]:return JSON[_0x5dc514(0x331)]({'cmd':_0x45786b[_0x5dc514(0x39f)],'routeKey':_0x45786b[_0x5dc514(0x3dd)],'leaveReq':_0x45786b[_0x5dc514(0x21e)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const _n=_0x1460b1('univer-pro.collaboration-client-socket-service');function vn(_0x28e291,_0x3fa323,_0x4a802c){const _0x4c5db5=_0x8a6054;return _0x28e291+'/'+_0x3fa323+_0x4c5db5(0x40d)+_0x4a802c+'/new_changes';}let yn=class extends _0x4dd34b{constructor(_0x4726c7,_0x327f7d,_0x4b359b,_0x53ed92,_0x183ba8){const _0x35bc08=_0x8a6054;super(),this[_0x35bc08(0x21a)]=_0x4726c7,this[_0x35bc08(0x291)]=_0x327f7d,this[_0x35bc08(0x34a)]=_0x4b359b,this[_0x35bc08(0x31e)]=_0x53ed92,this[_0x35bc08(0x328)]=_0x183ba8;}[_0x8a6054(0x209)](_0x299cf0){const _0x286187=_0x8a6054;let _0x249a66=this[_0x286187(0x21a)][_0x286187(0x44e)](_0x5c41dd);if(!_0x249a66)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x110dd8=_0x249a66[_0x286187(0x3b7)](_0x299cf0);if(!_0x110dd8)throw Error(_0x286187(0x202));let _0x504a63=new _0x1d27be(),_0xa40fbb=new _0x40a752();_0x504a63[_0x286187(0x214)](_0x110dd8[_0x286187(0x424)][_0x286187(0x2f8)](_0x2c727a=>_0xa40fbb['next'](_0x2c727a))),_0x504a63[_0x286187(0x214)](_0x38efac(()=>_0xa40fbb[_0x286187(0x2f1)]()));let _0x22618c=new _0x40a752();_0x504a63[_0x286187(0x214)](_0x110dd8[_0x286187(0x3f5)][_0x286187(0x2f8)](_0x95972e=>_0x22618c['next'](_0x95972e))),_0x504a63['add'](_0x38efac(()=>_0x22618c[_0x286187(0x2f1)]()));let _0x55f8f6=new _0x40a752();_0x504a63[_0x286187(0x214)](_0x110dd8[_0x286187(0x400)][_0x286187(0x2f8)](_0x26f989=>{let _0x287fdf=hn(_0x26f989);_0x55f8f6['next'](_0x287fdf);})),_0x504a63['add'](_0x38efac(()=>_0x55f8f6[_0x286187(0x2f1)]()));let _0x5e7716,_0x2e1f37=()=>{const _0x1e6efe=_0x286187;_0x22618c[_0x1e6efe(0x23e)](new Event('connection\x20error')),_0xa40fbb[_0x1e6efe(0x23e)](new Event(_0x1e6efe(0x259))),_0x5e7716[_0x1e6efe(0x282)]();};return _0x5e7716={'memberID':'','close$':_0xa40fbb[_0x286187(0x2a7)](),'error$':_0x22618c[_0x286187(0x2a7)](),'open$':_0x110dd8[_0x286187(0x30f)],'message$':_0x55f8f6[_0x286187(0x2a7)](),'send':_0x1f2542=>{const _0x23c641=_0x286187;if(_0x1f2542[_0x23c641(0x39f)]===_0x4741b3[_0x23c641(0x222)]){if(_0x1f2542[_0x23c641(0x21e)][_0x23c641(0x2d0)]===_0xaf3ca4[_0x23c641(0x3cd)]){this[_0x23c641(0x32d)](_0x5e7716,_0x1f2542[_0x23c641(0x21e)])[_0x23c641(0x247)](_0x21fac8=>{const _0x5f46d0=_0x23c641;this[_0x5f46d0(0x31e)][_0x5f46d0(0x2c0)](_0x21fac8),_0x2e1f37();});return;}if(_0x1f2542['data'][_0x23c641(0x2d0)]===_0xaf3ca4[_0x23c641(0x236)]){let _0x270723=_0x1f2542[_0x23c641(0x21e)];this['_fetchMissChangesets'](_0x270723)[_0x23c641(0x23f)](_0x4dda24=>{const _0x42e7a8=_0x23c641;_0x55f8f6[_0x42e7a8(0x23e)]({'cmd':_0x4741b3[_0x42e7a8(0x336)],'code':_0x98405f['OK'],'routeKey':_0x270723['data'][_0x42e7a8(0x33a)],'routeType':'','data':{'eventID':_0xaf3ca4[_0x42e7a8(0x29f)],'data':{'changesets':_0x4dda24}}});})['catch'](_0x4471cc=>{const _0x4ac67f=_0x23c641;this[_0x4ac67f(0x31e)][_0x4ac67f(0x2c0)](_0x4471cc),_0x2e1f37();});return;}}_0x110dd8[_0x23c641(0x20d)](gn(_0x1f2542));},'close':()=>{const _0x3e63ef=_0x286187;_0x110dd8['close'](),_0x504a63[_0x3e63ef(0x457)]();}},_0x5e7716;}async[_0x8a6054(0x32d)](_0x3bb226,_0x4c53bc){const _0x3a1f4a=_0x8a6054;var _0xca4812;let {unitType:_0x3a8bc9,unitID:_0x355c5a,changeset:_0x25d364}=_0x4c53bc['data'],_0x413ad4={'unitID':_0x355c5a,'memberID':_0x3bb226[_0x3a1f4a(0x36a)],'type':_0x3a8bc9,'changeset':_0x1302d1(_0x25d364)},_0x460a5d=this[_0x3a1f4a(0x34a)]['getConfig'](F),_0x1efef1=vn((_0xca4812=_0x460a5d==null?void 0x0:_0x460a5d[_0x3a1f4a(0x24a)])==null?'/universer-api/comb':_0xca4812,_0x3a8bc9,_0x355c5a);try{await this[_0x3a1f4a(0x291)][_0x3a1f4a(0x375)](_0x1efef1,{'body':_0x413ad4});}catch(_0xb4cc97){throw this[_0x3a1f4a(0x31e)][_0x3a1f4a(0x2c0)](_0x3a1f4a(0x425),_0x3a1f4a(0x2e3)),_0xb4cc97;}}async[_0x8a6054(0x41a)](_0x3a560d){const _0x5c5ea7=_0x8a6054;let {unitID:_0x3baf4e,from:_0x92798a,to:_0x3ebc9d,unitType:_0x96569e}=_0x3a560d[_0x5c5ea7(0x21e)];return(await this[_0x5c5ea7(0x328)][_0x5c5ea7(0x2e7)]({'metadata':void 0x0},{'unitID':_0x3baf4e,'type':_0x96569e,'from':_0x92798a,'to':_0x3ebc9d}))[_0x5c5ea7(0x2f7)][_0x5c5ea7(0x3bc)](_0x263e9e=>((_0x263e9e[_0x5c5ea7(0x444)]===null||_0x263e9e[_0x5c5ea7(0x444)]===void 0x0)&&(_0x263e9e[_0x5c5ea7(0x444)]=[]),_0x263e9e));}};yn=z([R(0x0,_0xaba5e9(_0x126fc9)),R(0x1,_0xaba5e9(_0xbf1860)),R(0x2,_0x29206e),R(0x3,_0x2b6744),R(0x4,_0x17f9a7)],yn);let Q=class extends _0x4dd34b{get[_0x8a6054(0x383)](){const _0x41e395=_0x8a6054;return this[_0x41e395(0x2ce)][_0x41e395(0x421)]();}constructor(_0x1cf501,_0xc261d2,_0x4f5625,_0x1aec1a,_0x5534b4,_0x1da82b){const _0x435f7d=_0x8a6054;super(),this['_injector']=_0x1cf501,this[_0x435f7d(0x31e)]=_0xc261d2,this[_0x435f7d(0x34a)]=_0x4f5625,this['_socketService']=_0x1aec1a,this[_0x435f7d(0x316)]=_0x5534b4,this['_networkConditionService']=_0x1da82b,I(this,_0x435f7d(0x2ce),new _0xe5e901(void 0x0)),I(this,_0x435f7d(0x43a),this[_0x435f7d(0x2ce)][_0x435f7d(0x2a7)]()),I(this,_0x435f7d(0x2df),null),I(this,'_sessions',new Map()),I(this,_0x435f7d(0x37c),new _0xe5e901(0x0)),I(this,_0x435f7d(0x417),this[_0x435f7d(0x37c)][_0x435f7d(0x2a7)]()),I(this,'_socketReady',!0x1),I(this,'_retryConnectingTimer',void 0x0),I(this,'_retryCount',0x0),I(this,_0x435f7d(0x3a8),null),I(this,'_sendHeartbeatTimer',void 0x0),I(this,_0x435f7d(0x382),void 0x0),this['_listenToNetworkCondition']();}[_0x8a6054(0x345)](){const _0x10c23d=_0x8a6054;this[_0x10c23d(0x430)]&&this[_0x10c23d(0x368)](this[_0x10c23d(0x430)]['online$']['subscribe'](_0x1c5b81=>{const _0x50a361=_0x10c23d;_0x1c5b81&&!this[_0x50a361(0x383)]&&this[_0x50a361(0x3ef)](),_0x1c5b81||this[_0x50a361(0x36b)]();}));}[_0x8a6054(0x457)](){const _0x4ea328=_0x8a6054;var _0x286d46;super[_0x4ea328(0x457)](),(_0x286d46=this[_0x4ea328(0x3a8)])==null||_0x286d46[_0x4ea328(0x30d)](),this[_0x4ea328(0x3a8)]=null,this[_0x4ea328(0x341)](),this[_0x4ea328(0x43f)](),this['_clearHeartbeatTimer'](),this['_sessions'][_0x4ea328(0x380)](_0x4cbe5a=>_0x4cbe5a[_0x4ea328(0x457)]()),this[_0x4ea328(0x427)][_0x4ea328(0x2b6)](),this[_0x4ea328(0x37c)][_0x4ea328(0x2f1)]();}async['requireSession'](_0x2e10c1){const _0x5e763a=_0x8a6054;if(this[_0x5e763a(0x427)][_0x5e763a(0x3b6)](_0x2e10c1))return this[_0x5e763a(0x427)][_0x5e763a(0x44e)](_0x2e10c1);this[_0x5e763a(0x2fa)]();let _0x913a64=this['_injector'][_0x5e763a(0x275)](It,_0x2e10c1,this[_0x5e763a(0x2ce)][_0x5e763a(0x2a7)]());return this[_0x5e763a(0x427)][_0x5e763a(0x2f4)](_0x2e10c1,_0x913a64),_0x913a64;}[_0x8a6054(0x1fa)](_0x4c73b0){const _0x25f2dd=_0x8a6054;let _0x3d7f0f=this[_0x25f2dd(0x427)]['get'](_0x4c73b0);if(_0x3d7f0f&&(this[_0x25f2dd(0x427)][_0x25f2dd(0x24b)](_0x4c73b0),_0x3d7f0f[_0x25f2dd(0x282)]()),!this[_0x25f2dd(0x427)]['size']){var _0x48880d;(_0x48880d=this[_0x25f2dd(0x383)])==null||_0x48880d[_0x25f2dd(0x282)]();}}['reconnect'](){const _0x1277e6=_0x8a6054;this[_0x1277e6(0x249)]=0x0,this[_0x1277e6(0x341)](),this[_0x1277e6(0x396)]();}[_0x8a6054(0x341)](){const _0x49fff0=_0x8a6054;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x49fff0(0x349)]),this[_0x49fff0(0x349)]=null);}async['_createSocket'](){const _0x4fc3e7=_0x8a6054;var _0x32b4d1;let _0x372c14=this['_configService']['getConfig'](F),_0x52937b=(_0x32b4d1=_0x372c14==null?void 0x0:_0x372c14['collabWebSocketUrl'])==null?_t:_0x32b4d1,_0xe9b592=await this[_0x4fc3e7(0x2e2)]['createSocket'](_0x52937b);return this[_0x4fc3e7(0x2df)]=_0xe9b592,_0xe9b592;}async['_tryEnsureSocket'](){const _0x1f6b4f=_0x8a6054;try{var _0x438e43,_0xf10f8f;let _0x315a5c=(_0x438e43=(_0xf10f8f=this['_socket'])==null?this['_candidateSocket']:_0xf10f8f)==null?await this[_0x1f6b4f(0x2cd)]():_0x438e43;if(_0x315a5c){var _0x16b8f6;let _0x688257=_0x315a5c[_0x1f6b4f(0x20d)];_0x315a5c[_0x1f6b4f(0x20d)]=_0xb4756=>(_0xb4756[_0x1f6b4f(0x39f)]!==_0x4741b3[_0x1f6b4f(0x3b5)]&&this['_rescheduleHeartbeat'](),_0x688257[_0x1f6b4f(0x3aa)](_0x315a5c,[_0xb4756])),(_0x16b8f6=this[_0x1f6b4f(0x3a8)])==null||_0x16b8f6[_0x1f6b4f(0x30d)](),this[_0x1f6b4f(0x3a8)]=null,this[_0x1f6b4f(0x3a8)]=_0x315a5c[_0x1f6b4f(0x400)][_0x1f6b4f(0x2f8)](_0xa50232=>this[_0x1f6b4f(0x35e)](_0x315a5c,_0xa50232)),_0x315a5c['error$'][_0x1f6b4f(0x320)](_0x23c1e7(0x1))[_0x1f6b4f(0x2f8)](_0x94c662=>this[_0x1f6b4f(0x31e)][_0x1f6b4f(0x2c0)](_0x1f6b4f(0x3f9),_0x94c662)),_0x315a5c[_0x1f6b4f(0x30f)][_0x1f6b4f(0x320)](_0x23c1e7(0x1))[_0x1f6b4f(0x2f8)](()=>{const _0x94d930=_0x1f6b4f;this[_0x94d930(0x33b)](_0x315a5c);}),_0x315a5c['close$'][_0x1f6b4f(0x320)](_0x23c1e7(0x1))[_0x1f6b4f(0x2f8)](_0x429b1f=>{const _0x173d43=_0x1f6b4f;this[_0x173d43(0x31e)][_0x173d43(0x252)](_0x173d43(0x206),'socket\x20close',_0x429b1f),this[_0x173d43(0x2d8)]();});}}catch(_0x2beaf6){this[_0x1f6b4f(0x31e)][_0x1f6b4f(0x2c0)](_0x2beaf6),this[_0x1f6b4f(0x2d8)]();}}[_0x8a6054(0x33b)](_0x59dce1){const _0x312b8=_0x8a6054;this['_logService'][_0x312b8(0x252)](_0x312b8(0x206),_0x312b8(0x44d)),_0x59dce1[_0x312b8(0x20d)]({'cmd':_0x4741b3['HELLO']}),this[_0x312b8(0x30c)]();}[_0x8a6054(0x36b)](){const _0x1ed0ca=_0x8a6054;this[_0x1ed0ca(0x42a)]=!0x1,this[_0x1ed0ca(0x2df)]=null,this['_status$'][_0x1ed0ca(0x23e)](0x2),this[_0x1ed0ca(0x2ce)][_0x1ed0ca(0x23e)](null),this[_0x1ed0ca(0x43f)](),this['_clearHeartbeatTimer']();}[_0x8a6054(0x2d8)](){const _0x5591c4=_0x8a6054;var _0x531895;this[_0x5591c4(0x36b)](),this[_0x5591c4(0x249)]<((_0x531895=this[_0x5591c4(0x34a)]['getConfig'](_0x5591c4(0x353)))==null?0x3:_0x531895)?(this[_0x5591c4(0x316)][_0x5591c4(0x264)]({'id':_0x5591c4(0x44f)}),this[_0x5591c4(0x396)]()):this['_collaborationUIEventService'][_0x5591c4(0x264)]({'id':_0x5591c4(0x426)});}[_0x8a6054(0x396)](){const _0x335e53=_0x8a6054;var _0x2a57de;let _0x1a9a2e=this[_0x335e53(0x249)],_0x245210=this[_0x335e53(0x34a)][_0x335e53(0x278)](F),_0x37f3a5=_0x1a9a2e===0x0?0x0:((_0x2a57de=_0x245210==null?void 0x0:_0x245210['retryConnectingInterval'])==null?0x4e20:_0x2a57de)*0x2**_0x1a9a2e;this[_0x335e53(0x349)]=setTimeout(()=>{const _0x440a33=_0x335e53;clearTimeout(this[_0x440a33(0x349)]),this['_retryConnectingTimer']=null,this[_0x440a33(0x2fa)]();},_0x37f3a5),this[_0x335e53(0x249)]+=0x1;}['_onMessage'](_0xf6c6ef,_0x207b7a){const _0x28a7b6=_0x8a6054;let {cmd:_0x32ea25}=_0x207b7a;_0x32ea25===_0x4741b3[_0x28a7b6(0x20a)]&&!this[_0x28a7b6(0x42a)]&&(_0xf6c6ef[_0x28a7b6(0x36a)]=_0x207b7a[_0x28a7b6(0x21e)][_0x28a7b6(0x36a)],this['_socket$'][_0x28a7b6(0x23e)](_0xf6c6ef),this[_0x28a7b6(0x37c)]['next'](0x3),this[_0x28a7b6(0x42a)]=!0x0,this[_0x28a7b6(0x2df)]=null),_0x32ea25===_0x4741b3[_0x28a7b6(0x26f)]&&this['_clearTimeoutTimer'](),this[_0x28a7b6(0x30c)]();}[_0x8a6054(0x30c)](){const _0x4472a4=_0x8a6054;var _0x136211;this[_0x4472a4(0x3c7)](),this[_0x4472a4(0x414)]=setTimeout(()=>this[_0x4472a4(0x45d)](),(_0x136211=this[_0x4472a4(0x34a)][_0x4472a4(0x278)](_0x4472a4(0x28e)))==null?0x7530:_0x136211);}[_0x8a6054(0x45d)](){const _0x530415=_0x8a6054;this[_0x530415(0x383)][_0x530415(0x20d)]({'cmd':_0x4741b3[_0x530415(0x26f)]}),this[_0x530415(0x455)]();}[_0x8a6054(0x455)](){const _0x575c1a=_0x8a6054;var _0x14d795;this[_0x575c1a(0x382)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x14d795=this['_configService']['getConfig'](_0x575c1a(0x460)))==null?xt:_0x14d795);}[_0x8a6054(0x3c7)](){const _0x2ccd0d=_0x8a6054;this[_0x2ccd0d(0x414)]!=null&&(clearTimeout(this[_0x2ccd0d(0x414)]),this[_0x2ccd0d(0x414)]=null);}[_0x8a6054(0x43f)](){const _0x4f5d3f=_0x8a6054;this[_0x4f5d3f(0x382)]!=null&&(clearTimeout(this[_0x4f5d3f(0x382)]),this[_0x4f5d3f(0x382)]=null);}};Q=z([R(0x0,_0xaba5e9(_0x126fc9)),R(0x1,_0x2b6744),R(0x2,_0x29206e),R(0x3,_n),R(0x4,_0xaba5e9(L)),R(0x5,_0x44ad0b(mn))],Q);let bn=class extends _0x2cad8a{constructor(_0xc7d23f,_0x232341,_0x3f3e9f,_0x518650){const _0xe46c2b=_0x8a6054;var _0xa358ab;super(),this[_0xe46c2b(0x21a)]=_0xc7d23f,this[_0xe46c2b(0x2bd)]=_0x232341,this[_0xe46c2b(0x34a)]=_0x3f3e9f,this['_univerInstanceService']=_0x518650,I(this,_0xe46c2b(0x2cc),new Map()),I(this,_0xe46c2b(0x387),new _0x40a752()),I(this,'entityInit$',this[_0xe46c2b(0x387)][_0xe46c2b(0x2a7)]()),((_0xa358ab=this[_0xe46c2b(0x34a)]['getConfig'](_0xe46c2b(0x39d)))==null?void 0x0:_0xa358ab['enableCollaboration'])!==!0x1&&this[_0xe46c2b(0x41c)]();}['dispose'](){const _0x1d203f=_0x8a6054;super['dispose'](),this['_entities'][_0x1d203f(0x380)](_0x31b7a6=>_0x31b7a6[_0x1d203f(0x457)]()),this[_0x1d203f(0x2cc)]['clear']();}[_0x8a6054(0x29d)](_0x5abe1b){var _0x1cfba6;return(_0x1cfba6=this['_entities']['get'](_0x5abe1b))==null?null:_0x1cfba6;}[_0x8a6054(0x42b)](_0x20d4b2){const _0x545f69=_0x8a6054;let _0x599621=this['getCollabEntity'](_0x20d4b2);return _0x599621?_0x286aef(_0x599621):this['_entityInit$'][_0x545f69(0x320)](_0x53e111(_0x1f216f=>_0x1f216f[_0x545f69(0x33a)]===_0x20d4b2));}['readyForCollab'](_0x10123d){const _0x59211d=_0x8a6054;return _0x277b96(this['getCollabEntity$'](_0x10123d)[_0x59211d(0x320)](_0x3685dc(()=>void 0x0)));}[_0x8a6054(0x41c)](){const _0x2739ff=_0x8a6054;this[_0x2739ff(0x42c)][_0x2739ff(0x23d)](_0x21be62['UNIVER_SHEET'])[_0x2739ff(0x320)](_0x433254(this[_0x2739ff(0x348)]),_0x10be0c(0x10))['subscribe'](async _0x151c46=>{const _0x17d2ea=_0x2739ff;let _0x1dec74=_0x151c46[_0x17d2ea(0x313)][_0x17d2ea(0x2c1)](),_0xf9c7ee=await this[_0x17d2ea(0x2bc)](_0x1dec74,_0x21be62[_0x17d2ea(0x322)]);this['_entities']['set'](_0x1dec74,_0xf9c7ee);}),this[_0x2739ff(0x42c)][_0x2739ff(0x23d)](_0x21be62[_0x2739ff(0x28a)])[_0x2739ff(0x320)](_0x433254(this[_0x2739ff(0x348)]),_0x10be0c(0x10))[_0x2739ff(0x320)](_0x53e111(_0x5db62a=>!_0x5db62a[_0x2739ff(0x313)][_0x2739ff(0x2c1)]()[_0x2739ff(0x26d)]('__')))['subscribe'](async _0x24a3e9=>{const _0x23a816=_0x2739ff;let _0x4d1d3f=_0x24a3e9[_0x23a816(0x313)][_0x23a816(0x2c1)](),_0x18c200=await this['_startCollaboration'](_0x4d1d3f,_0x21be62[_0x23a816(0x28a)]);this[_0x23a816(0x2cc)][_0x23a816(0x2f4)](_0x4d1d3f,_0x18c200);}),this[_0x2739ff(0x42c)][_0x2739ff(0x23d)](_0x21be62['UNIVER_SLIDE'])['pipe'](_0x433254(this[_0x2739ff(0x348)]),_0x10be0c(0x10))[_0x2739ff(0x2f8)](async _0x26ce99=>{const _0x54ad78=_0x2739ff;let _0x4b3455=_0x26ce99[_0x54ad78(0x313)][_0x54ad78(0x2c1)](),_0x31e0bd=await this[_0x54ad78(0x2bc)](_0x4b3455,_0x21be62['UNIVER_SLIDE']);this['_entities']['set'](_0x4b3455,_0x31e0bd);}),this['_univerInstanceService'][_0x2739ff(0x23d)](_0x21be62[_0x2739ff(0x2ee)])[_0x2739ff(0x320)](_0x433254(this[_0x2739ff(0x348)]),_0x10be0c(0x10))[_0x2739ff(0x2f8)](async _0x402d69=>{const _0x132067=_0x2739ff;let _0x1e7efc=_0x402d69[_0x132067(0x313)][_0x132067(0x2c1)](),_0xb4e9bf=await this['_startCollaboration'](_0x1e7efc,_0x21be62[_0x132067(0x2ee)]);this[_0x132067(0x2cc)]['set'](_0x1e7efc,_0xb4e9bf);}),_0x6051a6(this[_0x2739ff(0x42c)]['getTypeOfUnitDisposed$'](_0x21be62['UNIVER_SHEET']),this[_0x2739ff(0x42c)][_0x2739ff(0x365)](_0x21be62[_0x2739ff(0x28a)]),this[_0x2739ff(0x42c)][_0x2739ff(0x365)](_0x21be62[_0x2739ff(0x3e0)]),this[_0x2739ff(0x42c)][_0x2739ff(0x365)](_0x21be62['UNIVER_BASE']))[_0x2739ff(0x320)](_0x433254(this[_0x2739ff(0x348)]))[_0x2739ff(0x2f8)](_0x56b2be=>{const _0x593e35=_0x2739ff;let _0x4802e5=_0x56b2be['getUnitId'](),_0x955376=this[_0x593e35(0x2cc)][_0x593e35(0x44e)](_0x4802e5);_0x955376&&(_0x955376['dispose'](),this['_entities'][_0x593e35(0x24b)](_0x4802e5));});}async[_0x8a6054(0x2bc)](_0x3d4db5,_0x4d7d8c){const _0x33a609=_0x8a6054;let _0x238511=await this['_collabSessionService'][_0x33a609(0x298)](_0x3d4db5),_0x18ae0f=this[_0x33a609(0x21a)][_0x33a609(0x275)](this['_getCtorByUniverInstanceType'](_0x4d7d8c),_0x3d4db5,_0x4d7d8c,_0x238511);return await _0x18ae0f[_0x33a609(0x25b)](),this['_entityInit$'][_0x33a609(0x23e)](_0x18ae0f),_0x18ae0f;}[_0x8a6054(0x210)](_0x50f25c){const _0x53d693=_0x8a6054;switch(_0x50f25c){case _0x21be62[_0x53d693(0x28a)]:return un;case _0x21be62[_0x53d693(0x322)]:return fn;case _0x21be62[_0x53d693(0x3e0)]:return pn;case _0x21be62[_0x53d693(0x2ee)]:return dn;default:throw Error(_0x53d693(0x459)+_0x50f25c);}}};bn=z([R(0x0,_0xaba5e9(_0x126fc9)),R(0x1,_0xaba5e9(Q)),R(0x2,_0x29206e),R(0x3,_0x3ca986)],bn);var xn='@univerjs-pro/collaboration-client',Sn=_0x8a6054(0x30a);let Cn=class extends _0x4dd34b{constructor(_0x2b9ff5,_0xc1a4d9){const _0x3a0aa6=_0x8a6054;super(),this[_0x3a0aa6(0x42c)]=_0x2b9ff5,this[_0x3a0aa6(0x34a)]=_0xc1a4d9,this[_0x3a0aa6(0x41c)]();}['_init'](){const _0x48d509=_0x8a6054;this[_0x48d509(0x368)](this[_0x48d509(0x42c)][_0x48d509(0x3a6)][_0x48d509(0x2f8)](()=>{const _0x276cab=_0x48d509;var _0x5b242f;let _0x4fb0ba=this[_0x276cab(0x42c)]['getFocusedUnit'](),_0x185bcf=(_0x5b242f=this[_0x276cab(0x34a)][_0x276cab(0x278)]('DEFAULT_FILE_NAME'))==null?'Univer':_0x5b242f;_0x4fb0ba instanceof _0x593fc2&&(_0x185bcf=_0x4fb0ba[_0x276cab(0x286)]),document[_0x276cab(0x270)]=_0x185bcf;}));}};Cn=z([R(0x0,_0x3ca986),R(0x1,_0x29206e)],Cn);function _0x13e4(){const _0x58d3e4=['size','_joinRoom','setShowComponents','_updateStatus','fetchMiss','LEAVE','has','createSocket','_snapshotService','session.join-failed','filter','encrypt','map','_localCacheService','_initCloseConn','SHOULD_CLOSE_CONN','\x0aAfter:\x20','_collaborationTimeoutTimer','session.room-not-exists','\x20in\x20_schedule.','slice','joinRsp','downloadEndpointUrl','_clearHeartbeatTimer','_undoStacks','reject','roles','JOIN','location','SUBMIT_CHANGESET','JOIN_ROOM_FULL','_createInitialStateImpl','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','localeService','JOIN_ROOM_NOT_EXISTS','[OfflineState]:\x20received\x20acknowledgement.','socketService','FAIL','file','copyFileMeta','?size=','_onRemoteChangeset','src','_unitInfo$','\x20to\x20','routeKey','[CollaborationUndoRedoService]','[PendingState]:\x20received\x20acknowledgement.','UNIVER_SLIDE','_createInitialState','COMPRESS_MUTATION_APPLY','csShouldRetryEvent','getImage','not_collab','_transformRemoteChangesetByIMECache','936mXsWLH','_getSignURL','params','getUploadOptions','createCollaborator','_checkMissing','joinEvent','_telemetryService','reconnect','onTransformState','resolve','disableLocalCache','getImageSourceCache','_executeRemoteChangeset','error$','_docStateChangeManagerService','getDeserializedSheetBlock','_toggleOffline','[CollaborationSessionService]:\x20socket\x20error','_replayCachedMutations','shouldCloseConn','findIndex','getUnitStatus$','ERROR_IMAGE_TYPE','equals','message$','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_initMergeInterceptor','_acknowledgeAwaitingIfReady','collaboration-client.local-cache-service','COMMENT_UPDATE','_cfgEnableObjInherit','/object','NO_OTHER_CLIENTS_EDITING','ERROR_EXCEED_SIZE','_telemetryInfo','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_schedule','/unit/','LIVESHARE_NEW_HOST','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','stopTime','result','_revisionService','every','_sendHeartbeatTimer','splice','unknown','status$','POST','reverse','_fetchMissChangesets','updateCollaborator','_init','_getUndoStack','values','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_pendingMutations','getValue','_remoteChangesetQueue','_handleRemoteChangesets','close$','[CollaborationSession]','SOCKET_FAILED','_sessions','_clearScheduledTask','updateOfflineData','_socketReady','getCollabEntity$','_univerInstanceService','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_acknowledgedAwaitingRevision','/role','_networkConditionService','getTime','listRoles','code','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_scheduleCollaborationTimeoutTimer','/collaborator','from','_collaborationSessionService','max','socket$','FETCH_MISS','_onUserLeave','leaveEvent','userID','_clearTimeoutTimer','sessionStatus','_waitCount','COMPRESS_MUTATION_SEND','updateCursorEvent','mutations','_commentService','revision','number','getRoom','&assign=','_isPermissionRej','_shouldReportTelemetry','addHandlerCallback','socket\x20open.','get','SOCKET_FAILED_RETRY','members','subject','pending','appendMutation','newCsEvent','_waitForHeartbeatResponse','CONFLICT','dispose','UPDATE_PERMISSION_OBJ','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','saveSheetBlock','onRemoteChangeset','unitLoaded$','_sendHeartbeat','_createHandler','liveShareOperation','HEARTBEAT_TIMEOUT','indexOf','updateMember','FileId','_decreaseWaiting','objectActions','type','_changesetSessionId','endsWith','string','compose','synced','_throwTelemetryCollaborationNewChangeset','_transitionLocked','append','call','_lockTransition','liveShareNewHost','_removeRoom','closeSession','m2Prime','_onRecvEvent','getUnitOnRev','__Key__','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','unit-cache-','sheets','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','UPDATE_CURSOR','[OfflineState]:\x20received\x20changeset.','_transformStack','[CollaborationSessionService]','SUBMIT_CHANGESET_TIMEOUT','_transformStateCache','_doCreateSocket','HELLO','LIVESHARE_TERMINATE','deepClone','send','_acknowledgeAwaiting','baseRev','_getCtorByUniverInstanceType','workbook','[UniverCollaborationClientPlugin]','univer-pro.collaboration-client.network-condition.service','add','947214ecGWpI','_transformService','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','getUnitType','iterator','_injector','enableOfflineEditing','removeMember','readAsDataURL','data','find','_getSendChangesetTimeout','interceptor','INGEST','collaboration_new_changeset','JOIN_ROOM_FAILED','USERS_ENTER','UNIVER_COLLABORATION_CLIENT_PLUGIN','override','encode','572661GqVqkV','_onRemoteRejected','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','/rev/','onRemoteAck','reqId','LIVESHARE_FETCH_OPERATIONS','onMissingChangesets','_sendingTimer','constructor','decorate','conflict','getLatestCsReqIdBySid','FETCH_MISSING','ONLINE','_commandService','startTime','min','_instanceService','_commentUpdate$','getTypeOfUnitAdded$','next','then','fromCharCode','objectID','text-x','url','object','_collaborationPaused','executeCommand','catch','_startTelemetryCollaborationNewChangeset','_retryCount','collabSubmitChangesetUrl','delete','\x0aCurrent:\x20','OPTIONAL','_transformSelections','_transformIMECache','_members','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','debug','/universer-api/snapshot/','transformMutationsWithChangeset','_undoRedoService','failed\x20to\x20apply\x20missed\x20changesets!','_clearRedo','transformStack\x20failed!','connection\x20error','[DataLoaderService]','init','base-ui.attachment-io.service','People','commentUpdateEvent','?url=','onTransformSelections','CLOSE_ROOM','[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.','[FetchMissState]','emitEvent','_registerDependencies','__splitChunk__','put','collaboration-client.auth.needGotoLoginAlert','onlyLocal','getResourcesRequest','transformUndoRedo','LIVESHARE_REQUEST_HOST','startsWith','_changesetReqId','HEARTBEAT','title','_transformUndoredo','maxSize','session.room-permission-denied','/universer-api/file/{fileID}/sign-url','createInstance','USERS_LEAVE','_singleActiveUnitService','getConfig','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','push','_change$','session','rev','transformSelections','/universer-api/stream/file/upload','requestParams','/allowed','close','_sessionStatus$','localCacheService','snapshot','name','_getRedoStack','some','offline','UNIVER_DOC','update','_scheduleCompleteTimestamp','_disableEditing','HEARTBEAT_INTERVAL','MUTATION','actions','_httpService','getSheetBlock','originalMeta','/object/','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_resendTimer','SYNCED','requireSession','_applyRemoteChangeset','_compressMutationService','telemetry\x20info\x20is\x20not\x20initialized','[PendingState]:\x20received\x20rejection.','getCollabEntity','URL','PSEUDO_FETCH_MISSING_RESULT','_awaitingChangeset','waitForRoom$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/authz','editing\x20status\x20changed\x20to','responseType','cfgEnableObjInherit','asObservable','upload','initWorkbookPermissionChange','/universer-api/snapshot','range','setCfgEnableObjInherit','getFocusedUnit','_onUserJoin','_state$','_userManagerService','authzUrl','commentUpdate$','loginUrlKey','_onLocalMutation','state$','clear','c1Prime','1405396ypgWgd','859680fDUTRf','sid','getUnit','_startCollaboration','_collabSessionService','_stopTelemetryCollaborationNewChangeset','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','error','getUnitId','OTHER_CLIENT_EDITING','loadDoc','resend','getSheetId','getMemberID','_queuedRemoteChangesets','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_imageSourceCache','31360JiFWwZ','_entities','_createSocket','_socket$','version','eventID','awaitingChangeset','_members$','status','csRejEvent','onload','Failed\x20to\x20update\x20permission\x20point','_roomCreated$','_onConnectionFailed','getCurrentSelections','setConfig','setWaitCount','onStateChange','updatePermissionPoint','includes','_candidateSocket','_handlerCallback','_isEchoedAwaitingChangeset','_socketService','submit\x20changeset\x20error!','_state','_roomMembers','onSendChangeset','fetchMissingChangesets','AWAITING_WITH_PENDING','origin','textRanges','[CollaborationEntity]','objectType','_substituteRedoStack','UNIVER_BASE','avatar','getInterceptPoints','complete','/block/','now','set','_eventService','loadUnit','changesets','subscribe','onRemoteRetry','_tryEnsureSocket','length','NOT_COLLAB','_exhaustRemoteChangesetQueue','docStateChange$','LIVESHARE_OPERATION','collaborators','transformChangesets','ERROR_IMAGE','_replaceFileID','_updateLocalCache','pluginName','_redoStacks','_updateState','uploadFileServerUrl','reduce','1.0.0-alpha.2','missingChangesets','_rescheduleHeartbeat','unsubscribe','_onCombEvent','open$','JOIN_ROOM_PERMISSION_DENIED','_unitID','_onJoinRoomEvent','unit','BASE64','headers','_collaborationUIEventService','PERSON','href','deleteCollaborator','_emitMembers','2591864eISikV','resourceIDs','_sheetTransformSelectionsService','_logService','_substituteUndoStack','pipe','toString','UNIVER_SHEET','prototype','toggleOnline','refreshPermission','onCommentUpdate','snapshotServerUrl','_snapshotServerService','withCredentials','state','CHANGESET_REJ','_getDownloadEndpointURL','_submitChangeset','_incrementRevisionNumber','_transformAndApplyRemoteChangeset','_unlockTransition','stringify','_resendTimeout','_initRequestHeader','entries','charCodeAt','RECV','permissionRejEvent','registerHTTPInterceptor','OTHER_CLIENTS_EDITING','unitID','_onConnectionOpen','_type','onTransformIME','unitId','accept','OFFLINE','_clearRetryConnectingTimer','toPrimitive','fromCollab','_upload','_listenToNetworkCondition','onTransformRemoteChangesetByStateCache','method','dispose$','_retryConnectingTimer','_configService','&source=','818860DGVLhg','PERMISSION_DENIED','_sender','_clearCollaborationTimeoutTimer','saveImage','getCurrentUser','isPermissionRej','RETRY_CONNECTING_MAX_COUNT','UnitEmbedded','x-univer-host','onSyncEditingCollabCursor','_clearLocalCache','_resendWithTimeout','_toggleOnline','getCurrentRevOfUnit','_clearUndo','objects','unitId\x20is\x20not\x20found','_onMessage','allowed','CHANGESET_ACK','_permissionService','UUID','_getUploadFileURL','loadBase','getTypeOfUnitDisposed$','fetch_missing','capture','disposeWithMe','LOCAL_CACHE_INTERVAL','memberID','_onOffline','defineProperty','loadSheet','univer-pro.collaboration-client.single-active-unit-service','incrementRevOfUnit','_transformRemoteChangesetByStateCache','encodeURIComponent','_unitLoaded$','listCollaborators','toggleOffline','post','_getLoginPath','symbol','_getAPIPrefixPath','IDLE','_maxTotalRetryTimeout','sessionStatus$','_status$','packageName','selections','isArray','forEach','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_timeoutTimer','_socket','JOINING','infoRsp','saveChangeset','_entityInit$','onRemoteRej','awaiting_with_pending','_getCurrentRevision','list','_onConflict','onMutationExecutedForCollab','_memberService','duration','_onRemoteACK','_syncEditingCollabCursor','/-/object/-/batch_allowed','CHANGESET_SHOULD_RETRY','_getAPIPrefix','220XpZodT','_tryReconnect','parse','getSnapshotAPIPath','getAllMembers','function','event$','_getConfig','collaboration-client.config','_initDependencies','cmd','_config','session.room-cnt-exceeds','_HTTPService','setCurrentUser','1KJqhwd','body','focused$','_onFetchMissResult','_socketMessageSubscription','fetchThroughInterceptors','apply','_handler','_event$','SUCCUSS','NEW_CHANGESETS','loadOfflineData'];_0x13e4=function(){return _0x58d3e4;};return _0x13e4();}let wn=function(_0x409408){const _0x17d975=_0x8a6054;return _0x409408[_0x17d975(0x29e)]=_0x17d975(0x29e),_0x409408[_0x17d975(0x362)]=_0x17d975(0x362),_0x409408[_0x17d975(0x314)]=_0x17d975(0x314),_0x409408;}({});const Tn=_0x1460b1(_0x8a6054(0x25c));let En=class{constructor(_0x3ff959,_0x4bc407,_0x455bb1){const _0x532001=_0x8a6054;this[_0x532001(0x291)]=_0x3ff959,this[_0x532001(0x34a)]=_0x4bc407,this['_univerInstanceService']=_0x455bb1;}[_0x8a6054(0x3ea)](){const _0x2865d6=_0x8a6054;var _0x5bec90;return(_0x5bec90=this[_0x2865d6(0x39c)]()['attachment'])==null?{}:_0x5bec90;}async['saveAttachment'](_0x2b63b1){const _0x5b47a5=_0x8a6054;let _0x344616=this[_0x5b47a5(0x3ea)]();if(Dn(_0x2b63b1,_0x344616),_0x344616[_0x5b47a5(0x2a8)])return _0x344616['upload'](_0x2b63b1);let _0x2fd308=await this[_0x5b47a5(0x344)](_0x2b63b1);return{'id':_0x2fd308,'name':_0x2b63b1[_0x5b47a5(0x286)],'mimeType':_0x2b63b1[_0x5b47a5(0x466)],'size':_0x2b63b1['size'],'sourceType':_0x5b47a5(0x362),'source':_0x2fd308};}async[_0x8a6054(0x344)](_0x5371c0){const _0x34b772=_0x8a6054;let _0xacb645=this[_0x34b772(0x42c)][_0x34b772(0x2ad)](),_0x530bfe=_0xacb645==null?void 0x0:_0xacb645[_0x34b772(0x2c1)]();if(!_0x530bfe)throw Error(_0x34b772(0x40f));let _0x408123=new FormData();_0x408123[_0x34b772(0x1f5)](_0x34b772(0x3d6),_0x5371c0);let _0x2270ba=this[_0x34b772(0x363)]()+'?size='+_0x5371c0[_0x34b772(0x3b0)][_0x34b772(0x321)]()+_0x34b772(0x34b)+_0x1e4ced[_0x34b772(0x354)]+_0x34b772(0x449)+encodeURIComponent(_0x530bfe),_0x30983f=(await this['_httpService'][_0x34b772(0x375)](_0x2270ba,{'body':_0x408123}))[_0x34b772(0x3a5)]['FileId'];if(typeof _0x30983f!=_0x34b772(0x469)||!_0x30983f)throw Error(_0x34b772(0x41f));return _0x30983f;}[_0x8a6054(0x363)](){const _0x12ee8e=_0x8a6054;var _0x3e0d16;return(_0x3e0d16=this['_getConfig']()['uploadFileServerUrl'])==null?_0x12ee8e(0x27f):_0x3e0d16;}[_0x8a6054(0x39c)](){const _0x1ba6cb=_0x8a6054;var _0x1dfdd1;return(_0x1dfdd1=this[_0x1ba6cb(0x34a)][_0x1ba6cb(0x278)](_0x1ba6cb(0x39d)))==null?{}:_0x1dfdd1;}};En=z([R(0x0,_0xaba5e9(_0xbf1860)),R(0x1,_0xaba5e9(_0x29206e)),R(0x2,_0xaba5e9(_0x3ca986))],En);function Dn(_0x270295,_0x538b03){const _0xcf5371=_0x8a6054;var _0x5b8b9e;if(_0x538b03[_0xcf5371(0x272)]!=null&&_0x270295[_0xcf5371(0x3b0)]>_0x538b03[_0xcf5371(0x272)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x5b8b9e=_0x538b03['accept'])!=null&&_0x5b8b9e[_0xcf5371(0x2fb)]&&!_0x538b03[_0xcf5371(0x33f)]['some'](_0xf5a6f8=>_0x270295[_0xcf5371(0x466)]===_0xf5a6f8||_0x270295[_0xcf5371(0x286)]['endsWith'](_0xf5a6f8)||_0xf5a6f8[_0xcf5371(0x468)]('/*')&&_0x270295[_0xcf5371(0x466)][_0xcf5371(0x26d)](_0xf5a6f8[_0xcf5371(0x3c4)](0x0,-0x1))))throw Error(_0xcf5371(0x1ff));}let On=class{constructor(_0x1b7a8e,_0x552b0a,_0x166a78){const _0x4e663b=_0x8a6054;this[_0x4e663b(0x34a)]=_0x1b7a8e,this[_0x4e663b(0x291)]=_0x552b0a,this['localeService']=_0x166a78,this[_0x4e663b(0x25b)]();}[_0x8a6054(0x25b)](){const _0x2a2765=_0x8a6054;this[_0x2a2765(0x291)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x56ca2c,_0x5bf58b)=>_0x5bf58b(_0x56ca2c)[_0x2a2765(0x320)](_0x521ccf(async _0xbb7d75=>{const _0x2e65e7=_0x2a2765;let _0x4ed104=_0xbb7d75;if(_0x4ed104[_0x2e65e7(0x2d3)]===0x191){if(typeof window>'u')throw Error(_0x2e65e7(0x217));if(window['confirm'](this[_0x2e65e7(0x3d1)]['t'](_0x2e65e7(0x268)))){let _0x147f10=window[_0x2e65e7(0x371)](window[_0x2e65e7(0x3cc)][_0x2e65e7(0x318)]);window[_0x2e65e7(0x3cc)][_0x2e65e7(0x318)]=this[_0x2e65e7(0x376)]()+_0x2e65e7(0x25f)+_0x147f10;}}return _0x4ed104;}))});}[_0x8a6054(0x376)](){const _0x4a572f=_0x8a6054;var _0x303a64;let _0x5bc357=this[_0x4a572f(0x34a)]['getConfig'](F);return(_0x303a64=_0x5bc357==null?void 0x0:_0x5bc357[_0x4a572f(0x2b3)])==null?'/universer-api/oidc/authpage':_0x303a64;}};On=z([R(0x0,_0x29206e),R(0x1,_0xaba5e9(_0xbf1860)),R(0x2,_0xaba5e9(_0x5d1c63))],On);let kn=class extends _0x4dd34b{constructor(_0x3ae99c,_0x2c2521){const _0x2ac7f2=_0x8a6054;super(),this[_0x2ac7f2(0x3a2)]=_0x3ae99c,this[_0x2ac7f2(0x34a)]=_0x2c2521,I(this,_0x2ac7f2(0x406),!0x1),this['_initMergeInterceptor']();}[_0x8a6054(0x402)](){const _0x32e357=_0x8a6054;let _0x530d37=this;this[_0x32e357(0x368)](this[_0x32e357(0x3a2)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x15b5e1({'isMatch'(_0x1d7087){const _0x2622d0=_0x32e357;var _0x2325b6;if(_0x1d7087[_0x2622d0(0x347)]===_0x2622d0(0x418)&&(_0x2325b6=_0x1d7087[_0x2622d0(0x280)])!=null&&_0x2325b6[_0x2622d0(0x3a5)]){let {objectID:_0x410341,objectType:_0x4cc694}=_0x1d7087[_0x2622d0(0x280)][_0x2622d0(0x3a5)]||{};if(!_0x410341||_0x4cc694===void 0x0)return!0x1;let _0x502a61=_0x530d37['_getAPIPrefixPath']()+'/'+_0x4cc694+_0x2622d0(0x294)+_0x410341+_0x2622d0(0x281);if(_0x1d7087[_0x2622d0(0x243)]===_0x502a61)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5a9b8b){const _0x30b98c=_0x32e357;var _0x57ae50;return(_0x57ae50=_0x5a9b8b[_0x30b98c(0x280)])==null?void 0x0:_0x57ae50['body'];},'mergeParamsToRequest'(_0x43d2ea,_0x5f510a){const _0x12f941=_0x32e357;let _0x429bbc=_0x530d37[_0x12f941(0x378)]()+_0x12f941(0x392),_0x42e39d=_0x43d2ea[_0x12f941(0x309)]((_0x229c89,_0x16ff06)=>{const _0x34d42a=_0x12f941;let {unitID:_0x2e56e2,objectID:_0x11006d,objectType:_0x2ca044,actions:_0x1bcd57}=_0x16ff06;return _0x229c89[_0x2e56e2]||(_0x229c89[_0x2e56e2]={}),_0x229c89[_0x2e56e2][_0x11006d]||(_0x229c89[_0x2e56e2][_0x11006d]={'objectID':_0x11006d,'objectType':_0x2ca044,'actions':[]}),_0x229c89[_0x2e56e2][_0x11006d][_0x34d42a(0x290)]['push'](..._0x1bcd57),_0x229c89;},{}),_0x4adbb5=[];for(let _0x1a5191 in _0x42e39d)for(let _0x5e34e4 in _0x42e39d[_0x1a5191]){let {actions:_0x29c036,objectType:_0x2ec062}=_0x42e39d[_0x1a5191][_0x5e34e4],_0x4c29e3=[...new Set(_0x29c036)];_0x4adbb5['push']({'unitID':_0x1a5191,'objectID':_0x5e34e4,'objectType':_0x2ec062,'actions':_0x4c29e3});}return new _0x2e2e88(_0x12f941(0x418),_0x429bbc,{'headers':_0x5f510a['headers'],'withCredentials':_0x5f510a[_0x12f941(0x329)],'responseType':_0x5f510a[_0x12f941(0x2a5)],'body':{'requests':_0x4adbb5}});}},{'distributeResult'(_0x1eba9f,_0xc6b3b1){const _0x3bfe15=_0x32e357;let {objectActions:_0x343d9d}=_0x1eba9f;return _0xc6b3b1[_0x3bfe15(0x3bc)](_0x56bf5d=>{const _0x10cd43=_0x3bfe15;let {unitID:_0x4c34ee,objectID:_0x2fe635,actions:_0x471bb5}=_0x56bf5d,_0x16a0d0=_0x343d9d['find'](_0xa07c7b=>_0xa07c7b[_0x10cd43(0x33a)]===_0x4c34ee&&_0xa07c7b['objectID']===_0x2fe635);return{'config':_0x56bf5d,'result':{'actions':_0x471bb5[_0x10cd43(0x3bc)](_0xbe55bf=>_0x16a0d0==null?void 0x0:_0x16a0d0['actions'][_0x10cd43(0x21f)](_0x158136=>_0x158136['action']===_0xbe55bf))[_0x10cd43(0x3ba)](_0x394943=>!!_0x394943),'error':_0x1eba9f[_0x10cd43(0x2c0)]}};});}})}));}[_0x8a6054(0x378)](){const _0x40373f=_0x8a6054;var _0x5c90c0;let _0x53fc80=this['_configService']['getConfig'](F);return(_0x5c90c0=_0x53fc80==null?void 0x0:_0x53fc80['authzUrl'])==null?_0x40373f(0x2a3):_0x5c90c0;}async['create'](_0x400190){const _0x54987a=_0x8a6054;let _0x2ebe02=this[_0x54987a(0x378)]()+'/'+_0x400190[_0x54987a(0x2ec)]+_0x54987a(0x407);return(await this[_0x54987a(0x3a2)][_0x54987a(0x375)](_0x2ebe02,{'body':_0x400190}))[_0x54987a(0x3a5)][_0x54987a(0x241)]||'';}async[_0x8a6054(0x38b)](_0x1a136e){const _0x23cfd7=_0x8a6054;let _0x347150=this[_0x23cfd7(0x378)]()+'/-/object/list';return(await this[_0x23cfd7(0x3a2)]['post'](_0x347150,{'body':_0x1a136e}))[_0x23cfd7(0x3a5)][_0x23cfd7(0x35c)];}async[_0x8a6054(0x28b)](_0x1afee9){const _0x234c96=_0x8a6054;var _0xaa09da;let _0x547903=this[_0x234c96(0x378)]()+'/'+_0x1afee9[_0x234c96(0x2ec)]+_0x234c96(0x294)+_0x1afee9[_0x234c96(0x241)],_0x1512da=await this[_0x234c96(0x3a2)][_0x234c96(0x267)](_0x547903,{'body':_0x1afee9});if((_0x1512da==null||(_0xaa09da=_0x1512da[_0x234c96(0x3a5)])==null||(_0xaa09da=_0xaa09da[_0x234c96(0x2c0)])==null?void 0x0:_0xaa09da[_0x234c96(0x433)])!==0x1)throw Error(_0x234c96(0x2d6));}async[_0x8a6054(0x35f)](_0x2de0e9){const _0x678251=_0x8a6054;let _0x40203c=this[_0x678251(0x378)]()+'/'+_0x2de0e9['objectType']+'/object/'+_0x2de0e9['objectID']+_0x678251(0x281);return(await this['_HTTPService']['post'](_0x40203c,{'body':_0x2de0e9}))[_0x678251(0x3a5)]['actions'];}async['batchAllowed'](_0x4e623a){const _0x38b613=_0x8a6054;let _0x4a7dd8=this[_0x38b613(0x378)]()+'/-/object/-/batch_allowed';return(await this[_0x38b613(0x3a2)][_0x38b613(0x375)](_0x4a7dd8,{'body':{'requests':_0x4e623a}}))[_0x38b613(0x3a5)][_0x38b613(0x465)];}async[_0x8a6054(0x432)](_0x151cc7){const _0x3cdc4a=_0x8a6054;let _0x22970a=this[_0x3cdc4a(0x378)]()+'/'+_0x151cc7['objectType']+_0x3cdc4a(0x42f),_0x8b175f=await this[_0x3cdc4a(0x3a2)][_0x3cdc4a(0x375)](_0x22970a,{'body':_0x151cc7});return{'roles':_0x8b175f[_0x3cdc4a(0x3a5)][_0x3cdc4a(0x3ca)],'actions':_0x8b175f[_0x3cdc4a(0x3a5)][_0x3cdc4a(0x290)]};}async[_0x8a6054(0x319)](_0x414a96){const _0x4e984c=_0x8a6054;let _0x45f72f=this[_0x4e984c(0x378)]()+_0x4e984c(0x436);await this[_0x4e984c(0x3a2)][_0x4e984c(0x24b)](_0x45f72f,{'params':{'collaboratorID':_0x414a96['collaboratorID'],'objectID':_0x414a96[_0x4e984c(0x241)],'unitID':_0x414a96[_0x4e984c(0x33a)]}});}async[_0x8a6054(0x41b)](_0x3c2889){const _0x50a0fc=_0x8a6054;let _0x193b35=this[_0x50a0fc(0x378)]()+_0x50a0fc(0x436);await this[_0x50a0fc(0x3a2)]['patch'](_0x193b35,{'body':_0x3c2889});}async[_0x8a6054(0x3eb)](_0x9de592){const _0x69db39=_0x8a6054;let _0x440e44=this[_0x69db39(0x378)]()+_0x69db39(0x436);await this['_HTTPService'][_0x69db39(0x375)](_0x440e44,{'body':_0x9de592});}async[_0x8a6054(0x373)](_0x708703){const _0x1d3abb=_0x8a6054;var _0x533641;let _0x45e692=this[_0x1d3abb(0x378)]()+_0x1d3abb(0x436),_0xcf1bc=await this[_0x1d3abb(0x3a2)][_0x1d3abb(0x44e)](_0x45e692,{'params':{'objectID':_0x708703['objectID'],'unitID':_0x708703[_0x1d3abb(0x33a)]}});return this['setCfgEnableObjInherit']((_0x533641=_0xcf1bc['body'][_0x1d3abb(0x2a6)])==null?!0x1:_0x533641),_0xcf1bc['body'][_0x1d3abb(0x300)];}async['putCollaborators'](_0x9c48a6){const _0x2ae24f=_0x8a6054;let _0x3120d9=this[_0x2ae24f(0x378)]()+_0x2ae24f(0x436);await this[_0x2ae24f(0x3a2)]['put'](_0x3120d9,{'body':_0x9c48a6});}[_0x8a6054(0x2ac)](_0xac6272){const _0x3491a4=_0x8a6054;this[_0x3491a4(0x406)]=_0xac6272;}['getCfgEnableObjInherit'](){const _0x13f5ae=_0x8a6054;return this[_0x13f5ae(0x406)];}};kn=z([R(0x0,_0xaba5e9(_0xbf1860)),R(0x1,_0xaba5e9(_0x29206e))],kn);function An(_0x2a1dd4){const _0x2acefb=_0x8a6054;let _0x55061=atob(_0x2a1dd4),_0x202be2=new Uint8Array(_0x55061[_0x2acefb(0x2fb)]);for(let _0x39b2b2=0x0;_0x39b2b2<_0x55061['length'];_0x39b2b2++)_0x202be2[_0x39b2b2]=_0x55061[_0x2acefb(0x335)](_0x39b2b2);return _0x202be2;}function jn(_0x1c2d15){const _0x255f24=_0x8a6054;let _0x12680e='';for(let _0x3b6b49=0x0;_0x3b6b49<_0x1c2d15[_0x255f24(0x2fb)];_0x3b6b49++)_0x12680e+=String[_0x255f24(0x240)](_0x1c2d15[_0x3b6b49]);return btoa(_0x12680e);}function Mn(_0xfc969d,_0x262cf5){const _0x162f46=_0x8a6054;let _0x586b50=An(_0x262cf5),_0x3d54b6=_0xafcec8(0x10);return jn(_0x2a1100(_0x3d54b6,_0x1ba736(_0x586b50,_0x3d54b6)[_0x162f46(0x3bb)](_0x23c2da(_0xfc969d))));}function Nn(){const _0x57583f=_0x8a6054;let _0x426727=_0x217b08()[_0x57583f(0x1fe)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x426727){let _0xa600cb={'time':Math['floor'](Date['now']()/0x3e8),'domain':location['hostname']};return Mn(JSON[_0x57583f(0x331)](_0xa600cb),_0x426727);}}let Pn=class{constructor(_0x5ebdf5){const _0x35db76=_0x8a6054;this[_0x35db76(0x291)]=_0x5ebdf5,this[_0x35db76(0x333)]();}[_0x8a6054(0x333)](){const _0xd529f4=_0x8a6054;this['_httpService'][_0xd529f4(0x338)]({'interceptor':(_0xbff54b,_0x5e6eb5)=>{const _0x322eb6=_0xd529f4;let _0x537f28=Nn();return _0x537f28&&_0xbff54b[_0x322eb6(0x315)][_0x322eb6(0x2f4)](_0x322eb6(0x355),_0x537f28),_0x5e6eb5(_0xbff54b);}});}};Pn=z([R(0x0,_0xaba5e9(_0xbf1860))],Pn);let Fn=class extends _0x2cad8a{constructor(_0x169e8c,_0x127ae2,_0x3ae685){const _0x166fa6=_0x8a6054;super(),this[_0x166fa6(0x31e)]=_0x169e8c,this[_0x166fa6(0x3b8)]=_0x127ae2,this[_0x166fa6(0x3bd)]=_0x3ae685,I(this,'_unitInfo$',new _0xe5e901(null)),I(this,_0x166fa6(0x372),new _0x40a752()),I(this,'unitInfo$',this[_0x166fa6(0x3db)]['asObservable']()),I(this,_0x166fa6(0x45c),this[_0x166fa6(0x372)][_0x166fa6(0x2a7)]());}['dispose'](){const _0x4f4cd3=_0x8a6054;super[_0x4f4cd3(0x457)](),this[_0x4f4cd3(0x372)]['complete'](),this[_0x4f4cd3(0x3db)][_0x4f4cd3(0x2f1)]();}async['loadUnitOfRevision'](_0x3aad8a,_0x5dc639,_0x3acb94){const _0x259f3c=_0x8a6054;this[_0x259f3c(0x3db)][_0x259f3c(0x23e)]({'unitId':_0x3aad8a,'type':_0x5dc639});let _0x2a0623=null;switch(_0x5dc639){case _0x21be62['UNIVER_SHEET']:_0x2a0623=await this[_0x259f3c(0x3b8)][_0x259f3c(0x36d)](_0x3aad8a,_0x3acb94);break;case _0x21be62[_0x259f3c(0x28a)]:_0x2a0623=await this['_snapshotService'][_0x259f3c(0x2c3)](_0x3aad8a,_0x3acb94);break;case _0x21be62['UNIVER_SLIDE']:_0x2a0623=await this[_0x259f3c(0x3b8)]['loadSlide'](_0x3aad8a,_0x3acb94);break;case _0x21be62['UNIVER_BASE']:_0x2a0623=await this[_0x259f3c(0x3b8)][_0x259f3c(0x364)](_0x3aad8a,_0x3acb94);break;default:this[_0x259f3c(0x31e)]['error'](_0x259f3c(0x25a),_0x259f3c(0x2bf));break;}return _0x2a0623&&this[_0x259f3c(0x372)][_0x259f3c(0x23e)](_0x2a0623),_0x2a0623;}async[_0x8a6054(0x2f6)](_0x45d4f0,_0x340ecc,_0x5861f3){const _0x5479e1=_0x8a6054;var _0x3d01d2;this[_0x5479e1(0x3db)][_0x5479e1(0x23e)]({'unitId':_0x45d4f0,'type':_0x340ecc,'subUnitId':_0x5861f3});let _0x50d3fb=0x0,_0x13e24a=await((_0x3d01d2=this[_0x5479e1(0x3bd)])==null?void 0x0:_0x3d01d2[_0x5479e1(0x3af)](_0x45d4f0));return _0x13e24a&&(_0x13e24a['awaitingChangeset']||_0x13e24a['mutations'][_0x5479e1(0x2fb)]!==0x0)&&(_0x50d3fb=_0x13e24a[_0x5479e1(0x27d)]),_0x50d3fb===0x0&&this[_0x5479e1(0x31e)]['debug'](_0x5479e1(0x25a),_0x5479e1(0x381)),this['loadUnitOfRevision'](_0x45d4f0,_0x340ecc,_0x50d3fb);}};Fn=z([R(0x0,_0x2b6744),R(0x1,_0xaba5e9(_0x298033)),R(0x2,_0x44ad0b(V))],Fn);let In=class{constructor(_0x364108,_0x167401,_0x17799a){const _0xb95991=_0x8a6054;this['_httpService']=_0x364108,this[_0xb95991(0x34a)]=_0x167401,this[_0xb95991(0x42c)]=_0x17799a,I(this,_0xb95991(0x441),0x0),I(this,'_change$',new _0x40a752()),I(this,'change$',this[_0xb95991(0x27b)]),I(this,_0xb95991(0x2ca),new Map());}[_0x8a6054(0x2db)](_0x31e707){const _0x284329=_0x8a6054;this['_waitCount']=_0x31e707,this[_0x284329(0x27b)][_0x284329(0x23e)](_0x31e707);}[_0x8a6054(0x3f3)](_0xe9eb0e,_0x254afa){const _0x1c2730=_0x8a6054;if(_0x254afa===_0x4f5e7e[_0x1c2730(0x314)]){let _0x35624d=new Image();return _0x35624d[_0x1c2730(0x3da)]=_0xe9eb0e,_0x35624d;}return this['_imageSourceCache'][_0x1c2730(0x44e)](_0xe9eb0e);}['addImageSourceCache'](_0x5a27be,_0x23e0bb,_0x1efb20){const _0x4f33c3=_0x8a6054;_0x23e0bb===_0x4f5e7e['BASE64']||_0x1efb20==null||this[_0x4f33c3(0x2ca)][_0x4f33c3(0x2f4)](_0x5a27be,_0x1efb20);}async[_0x8a6054(0x3e4)](_0x571ba1){const _0x22d30a=_0x8a6054;try{let _0x4fe945=this[_0x22d30a(0x303)](this[_0x22d30a(0x3e8)](),''+_0x571ba1),_0x210d58=(await this['_httpService']['get'](_0x4fe945))[_0x22d30a(0x3a5)];if(_0x210d58[_0x22d30a(0x2c0)]&&_0x210d58[_0x22d30a(0x2c0)][_0x22d30a(0x433)]===_0x5abdf9['OK']){let _0x11c7c1=_0x1715f8(_0x210d58[_0x22d30a(0x243)],this[_0x22d30a(0x32c)]());return Promise[_0x22d30a(0x3f1)](_0x11c7c1);}return Promise[_0x22d30a(0x3c9)](_0x210d58['error']);}catch(_0x5a3386){return Promise['reject'](_0x5a3386);}}async[_0x8a6054(0x350)](_0x535f75){const _0x3da4a0=_0x8a6054;let _0x565920='';if(!_0x1581da[_0x3da4a0(0x2de)](_0x535f75[_0x3da4a0(0x466)]))return this[_0x3da4a0(0x464)](),Promise[_0x3da4a0(0x3c9)](Error(_0x2d0a7a[_0x3da4a0(0x3fe)]));if(_0x535f75[_0x3da4a0(0x3b0)]>_0x38298b())return this['_decreaseWaiting'](),Promise['reject'](Error(_0x2d0a7a[_0x3da4a0(0x409)]));try{let _0x24f16e=new FormData();_0x24f16e[_0x3da4a0(0x1f5)]('file',_0x535f75);let _0x1c9290=this[_0x3da4a0(0x42c)][_0x3da4a0(0x2ad)](),_0x4f434c=_0x1c9290==null?void 0x0:_0x1c9290[_0x3da4a0(0x2c1)]();if(!_0x4f434c)throw Error(_0x3da4a0(0x35d));let _0x2e2a88=this[_0x3da4a0(0x363)]()+_0x3da4a0(0x3d8)+_0x535f75[_0x3da4a0(0x3b0)][_0x3da4a0(0x321)]()+_0x3da4a0(0x34b)+_0x1e4ced[_0x3da4a0(0x354)]+_0x3da4a0(0x449)+encodeURIComponent(_0x4f434c),_0xfb931d={'body':_0x24f16e},_0x20eca0=(await this[_0x3da4a0(0x291)][_0x3da4a0(0x375)](_0x2e2a88,_0xfb931d))[_0x3da4a0(0x3a5)];if(typeof _0x20eca0[_0x3da4a0(0x463)]!=_0x3da4a0(0x469))return this[_0x3da4a0(0x464)](),Promise[_0x3da4a0(0x3c9)](Error(_0x2d0a7a[_0x3da4a0(0x302)]));_0x565920=_0x20eca0[_0x3da4a0(0x463)];}catch{return this[_0x3da4a0(0x464)](),Promise[_0x3da4a0(0x3c9)](Error(_0x2d0a7a[_0x3da4a0(0x302)]));}return new Promise((_0x42d385,_0xa54da8)=>{const _0x52d539=_0x3da4a0;let _0x3c5870=new FileReader();_0x3c5870[_0x52d539(0x21d)](_0x535f75),_0x3c5870[_0x52d539(0x2d5)]=_0x3e9844=>{const _0x5218e2=_0x52d539;var _0x4823dc;let _0x152641=(_0x4823dc=_0x3e9844['target'])==null?void 0x0:_0x4823dc['result'];if(_0x152641==null){this['_decreaseWaiting'](),_0xa54da8(Error(_0x2d0a7a['ERROR_IMAGE']));return;}_0x42d385({'imageId':_0x2f5c77(0x6),'imageSourceType':_0x4f5e7e[_0x5218e2(0x362)],'source':_0x565920,'base64Cache':_0x152641,'status':_0x2d0a7a[_0x5218e2(0x3ad)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x5f27b2=_0x8a6054;var _0x23cfc3;let _0x395199=this[_0x5f27b2(0x34a)][_0x5f27b2(0x278)](F);return(_0x23cfc3=_0x395199==null?void 0x0:_0x395199[_0x5f27b2(0x308)])==null?_0x5f27b2(0x27f):_0x23cfc3;}['_getSignURL'](){const _0x181e63=_0x8a6054;var _0x39135d;let _0x29b401=this[_0x181e63(0x34a)][_0x181e63(0x278)](F);return(_0x39135d=_0x29b401==null?void 0x0:_0x29b401['signUrlServerUrl'])==null?_0x181e63(0x274):_0x39135d;}[_0x8a6054(0x32c)](){const _0x323f98=_0x8a6054;var _0x4c2c30;let _0x3eba72=this[_0x323f98(0x34a)]['getConfig'](F);return(_0x4c2c30=_0x3eba72==null?void 0x0:_0x3eba72[_0x323f98(0x3c6)])==null?location[_0x323f98(0x2e9)]:_0x4c2c30;}[_0x8a6054(0x303)](_0x2077e9,_0x19cf7c){return _0x2077e9['replace']('{fileID}',_0x19cf7c);}[_0x8a6054(0x464)](){const _0x3e4d15=_0x8a6054;--this[_0x3e4d15(0x441)],this[_0x3e4d15(0x27b)][_0x3e4d15(0x23e)](this[_0x3e4d15(0x441)]);}};In=z([R(0x0,_0xaba5e9(_0xbf1860)),R(0x1,_0x29206e),R(0x2,_0xaba5e9(_0x3ca986))],In);let Ln=class{constructor(_0x1478e2,_0xe8a230){const _0x28e802=_0x8a6054;this[_0x28e802(0x34a)]=_0x1478e2,this['_HTTPService']=_0xe8a230;}['_getAPIPrefixPath'](){const _0x136396=_0x8a6054;var _0x1f89ce;let _0x5d1b02=this[_0x136396(0x34a)]['getConfig'](F);return(_0x1f89ce=_0x5d1b02==null?void 0x0:_0x5d1b02[_0x136396(0x2b1)])==null?_0x136396(0x2a3):_0x1f89ce;}async['list'](_0x24568c){const _0x142df1=_0x8a6054;let _0x6e5b99=this[_0x142df1(0x378)]()+_0x142df1(0x436);return{'list':[{'title':_0x142df1(0x25d),'mentions':(await this[_0x142df1(0x3a2)]['get'](_0x6e5b99,{'params':{'objectID':_0x24568c['unitId'],'unitID':_0x24568c[_0x142df1(0x33e)]}}))[_0x142df1(0x3a5)][_0x142df1(0x300)]['map'](_0x10f24f=>({'objectId':_0x10f24f['id'],'name':_0x10f24f[_0x142df1(0x451)][_0x142df1(0x286)],'metadata':{'icon':_0x10f24f[_0x142df1(0x451)][_0x142df1(0x2ef)]},'label':_0x10f24f[_0x142df1(0x451)][_0x142df1(0x286)],'objectType':_0x212032[_0x142df1(0x317)]})),'metadata':{},'type':_0x212032[_0x142df1(0x317)]}]};}};Ln=z([R(0x0,_0xaba5e9(_0x29206e)),R(0x1,_0xaba5e9(_0xbf1860))],Ln);let Rn=class extends _0x2cad8a{constructor(_0x4f0760,_0xcac522,_0x4730ff,_0x56fd5b,_0x8db5b7){const _0x2605dd=_0x8a6054;super(),this['_injector']=_0x4f0760,this[_0x2605dd(0x42c)]=_0xcac522,this['_permissionService']=_0x4730ff,this[_0x2605dd(0x438)]=_0x56fd5b,this['_collaborationUIEventService']=_0x8db5b7,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x8a6054(0x3be)](){const _0x2313f9=_0x8a6054;let _0x5903cd=async _0x3d94c6=>{const _0x10f7a0=_0x4e5e;(await this[_0x10f7a0(0x438)]['requireSession'](_0x3d94c6))[_0x10f7a0(0x39b)][_0x10f7a0(0x320)](_0x53e111(_0x34b91e=>_0x34b91e[_0x10f7a0(0x2d0)]===_0xaf3ca4[_0x10f7a0(0x3bf)]),_0x4b0be1(this[_0x10f7a0(0x348)]))[_0x10f7a0(0x2f8)](_0x1473aa=>{const _0x381231=_0x10f7a0;let {reason:_0x55acf5}=_0x1473aa[_0x381231(0x21e)];this['_collaborationUIEventService'][_0x381231(0x264)]({'id':_0x381231(0x261),'data':_0x55acf5}),this['_permissionService'][_0x381231(0x2dd)](new _0x15b1fe(_0x3d94c6)['id'],!0x1),this[_0x381231(0x438)][_0x381231(0x1fa)](_0x3d94c6);});};_0x6051a6(this[_0x2313f9(0x42c)]['getTypeOfUnitAdded$'](_0x21be62['UNIVER_SHEET']),this[_0x2313f9(0x42c)][_0x2313f9(0x23d)](_0x21be62[_0x2313f9(0x28a)]),this[_0x2313f9(0x42c)]['getTypeOfUnitAdded$'](_0x21be62[_0x2313f9(0x2ee)]))[_0x2313f9(0x320)](_0x3685dc(_0x51a346=>_0x51a346[_0x2313f9(0x313)]['getUnitId']()),_0x53e111(_0x38ac72=>!_0x576038(_0x38ac72)),_0x4b0be1(this[_0x2313f9(0x348)]))[_0x2313f9(0x2f8)](_0x279f26=>{_0x5903cd(_0x279f26);});}['_initUnitPermissionChange'](){const _0x2cfb08=_0x8a6054;let _0x1bb763=async _0xfcf426=>{const _0x1e0c33=_0x4e5e;let _0x19fc36=await this['_collaborationSessionService'][_0x1e0c33(0x298)](_0xfcf426),_0x3a5dc9=this[_0x1e0c33(0x21a)][_0x1e0c33(0x44e)](_0x3e6270);_0x19fc36[_0x1e0c33(0x39b)][_0x1e0c33(0x320)](_0x53e111(_0x32d7d8=>_0x32d7d8['eventID']===_0xaf3ca4['UPDATE_PERMISSION_OBJ']),_0x4b0be1(this['dispose$']))['subscribe'](_0x19d5f9=>{const _0x52fe7c=_0x1e0c33;let {objectId:_0x10433b}=_0x19d5f9[_0x52fe7c(0x21e)];_0x10433b===_0xfcf426?_0x3a5dc9[_0x52fe7c(0x2a9)](_0xfcf426):_0x3a5dc9[_0x52fe7c(0x325)](_0xfcf426,_0x10433b);});};_0x6051a6(this[_0x2cfb08(0x42c)][_0x2cfb08(0x23d)](_0x21be62[_0x2cfb08(0x322)]))[_0x2cfb08(0x320)](_0x3685dc(_0x1b27a7=>_0x1b27a7[_0x2cfb08(0x313)]['getUnitId']()),_0x53e111(_0x30cf3f=>!_0x576038(_0x30cf3f)),_0x4b0be1(this[_0x2cfb08(0x348)]))['subscribe'](_0x26fecd=>{_0x1bb763(_0x26fecd);});}};Rn=z([R(0x0,_0xaba5e9(_0x126fc9)),R(0x1,_0x3ca986),R(0x2,_0x4fbdaa),R(0x3,_0xaba5e9(Q)),R(0x4,_0xaba5e9(L))],Rn);let zn=class{constructor(_0x3f0fb5,_0xb070b7){const _0x31f3a3=_0x8a6054;this[_0x31f3a3(0x34a)]=_0x3f0fb5,this['_httpService']=_0xb070b7;}async[_0x8a6054(0x1fd)](_0x224baf,_0x48a99c){const _0x58b493=_0x8a6054;var _0x10b1fe;let {unitID:_0x386485,type:_0x1b8c4d,revision:_0xf160a6=0x0}=_0x48a99c,_0x2232ce=this[_0x58b493(0x398)]()+'/'+_0x1b8c4d+_0x58b493(0x40d)+_0x386485+_0x58b493(0x22c)+_0xf160a6,_0x2839b8=(await this[_0x58b493(0x291)][_0x58b493(0x44e)](_0x2232ce))[_0x58b493(0x3a5)],_0x225025=(_0x10b1fe=_0x2839b8[_0x58b493(0x285)])==null?void 0x0:_0x10b1fe[_0x58b493(0x211)];if(_0x225025){let _0x227dea=_0x225025==null?void 0x0:_0x225025[_0x58b493(0x293)];_0x225025[_0x58b493(0x293)]=_0x59abbe[_0x58b493(0x228)](_0x53de1d(_0x227dea)),Object[_0x58b493(0x334)](_0x225025[_0x58b493(0x201)])[_0x58b493(0x380)](([,_0xc64667])=>{const _0x4231bb=_0x58b493;let _0x43c670=_0xc64667['originalMeta'];_0xc64667[_0x4231bb(0x293)]=_0x59abbe['encode'](_0x53de1d(_0x43c670));});}return _0x2839b8;}async[_0x8a6054(0x292)](_0x52616d,_0x3aab2f){const _0x48f22b=_0x8a6054;let {unitID:_0x482ad5,type:_0x575e51,blockID:_0x1fa4aa}=_0x3aab2f,_0x3e8425=this[_0x48f22b(0x394)]()+'/'+_0x575e51+_0x48f22b(0x40d)+_0x482ad5+_0x48f22b(0x2f2)+_0x1fa4aa;return(await this[_0x48f22b(0x291)][_0x48f22b(0x44e)](_0x3e8425))[_0x48f22b(0x3a5)];}async[_0x8a6054(0x3f7)](_0x50130c,_0x3e66a1){const _0x52be6a=_0x8a6054;let {unitID:_0x247c96,type:_0x46cf99,blockID:_0x13698b}=_0x3e66a1,_0x15ebaf=this[_0x52be6a(0x394)]()+_0x52be6a(0x2f2)+_0x46cf99+_0x52be6a(0x40d)+_0x247c96+_0x52be6a(0x2f2)+_0x13698b;return(await this[_0x52be6a(0x291)]['get'](_0x15ebaf))['body'];}async[_0x8a6054(0x2e7)](_0x5b6715,_0x19d7b9){const _0xbe9a83=_0x8a6054;let {unitID:_0x1ab577,type:_0x524c6c,from:_0x124512,to:_0xd5543b}=_0x19d7b9,_0x516c5e=this[_0xbe9a83(0x394)]()+'/'+_0x524c6c+'/unit/'+_0x1ab577+'/fetchmissing?from='+_0x124512+'&to='+_0xd5543b;return(await this[_0xbe9a83(0x291)][_0xbe9a83(0x44e)](_0x516c5e))[_0xbe9a83(0x3a5)];}['getSnapshotAPIPath'](){const _0x52d30b=_0x8a6054;var _0x110c96;return(_0x110c96=this['_configService']['getConfig']('SNAPSHOT_URL_KEY'))==null?this[_0x52d30b(0x394)]():_0x110c96;}[_0x8a6054(0x394)](){const _0x49b341=_0x8a6054;var _0x1a5fc3;let _0x5cf0a0=this[_0x49b341(0x34a)][_0x49b341(0x278)](F);return(_0x1a5fc3=_0x5cf0a0==null?void 0x0:_0x5cf0a0[_0x49b341(0x327)])==null?_0x49b341(0x2aa):_0x1a5fc3;}async[_0x8a6054(0x26a)](_0x5dc5d9,_0x1b6c00){const _0x192110=_0x8a6054;let _0x1d4a03=_0x192110(0x253)+_0x1b6c00[_0x192110(0x466)]+_0x192110(0x40d)+_0x1b6c00[_0x192110(0x33a)]+'/resources';return(await this[_0x192110(0x291)]['get'](_0x1d4a03,{'params':{'resourceId':JSON[_0x192110(0x331)](_0x1b6c00[_0x192110(0x31c)])}}))[_0x192110(0x3a5)];}['saveSnapshot'](){const _0x2e29cf=_0x8a6054;throw Error(_0x2e29cf(0x251));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x8a6054(0x45a)](){const _0x5e9356=_0x8a6054;throw Error(_0x5e9356(0x251));}[_0x8a6054(0x386)](){const _0x51c25a=_0x8a6054;throw Error(_0x51c25a(0x251));}[_0x8a6054(0x3d7)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x8a6054(0x235)](){const _0x47ea15=_0x8a6054;throw Error(_0x47ea15(0x251));}};zn=z([R(0x0,_0x29206e),R(0x1,_0xaba5e9(_0xbf1860))],zn);let Bn=class extends _0x6d510e{constructor(_0x461a6b,_0x46e66d,_0x1bb8cf,_0x2825f2,_0x377ffd){const _0x5de724=_0x8a6054;super(_0x461a6b,_0x46e66d,_0x1bb8cf),this['_transformService']=_0x2825f2,this[_0x5de724(0x31e)]=_0x377ffd;}['transformUndoRedo'](_0x1f9f20,_0x2348d7){const _0x5e7cee=_0x8a6054;let _0x3f90dc=this[_0x5e7cee(0x41d)](_0x1f9f20);if(_0x3f90dc)try{let _0x51522f=this[_0x5e7cee(0x205)](_0x3f90dc,_0x2348d7);this[_0x5e7cee(0x31f)](_0x1f9f20,_0x51522f);}catch(_0x2f1d6b){this[_0x5e7cee(0x31e)][_0x5e7cee(0x2c0)](_0x5e7cee(0x3de),_0x2f1d6b),this[_0x5e7cee(0x35b)](_0x1f9f20);}let _0x15d672=this['_getRedoStack'](_0x1f9f20);if(_0x15d672)try{let _0x4fc82a=this['_transformStack'](_0x15d672,_0x2348d7);this[_0x5e7cee(0x2ed)](_0x1f9f20,_0x4fc82a);}catch(_0xacbf77){this[_0x5e7cee(0x31e)][_0x5e7cee(0x2c0)](_0xacbf77),this[_0x5e7cee(0x257)](_0x1f9f20);}}[_0x8a6054(0x35b)](_0x57511b){const _0x4edd3d=_0x8a6054;let _0x3c5c89=this[_0x4edd3d(0x41d)](_0x57511b);_0x3c5c89&&(_0x3c5c89[_0x4edd3d(0x2fb)]=0x0,this['_updateStatus']());}['_clearRedo'](_0xbc3be7){const _0x36a4a5=_0x8a6054;let _0x4e35dc=this[_0x36a4a5(0x287)](_0xbc3be7);_0x4e35dc&&(_0x4e35dc['length']=0x0,this[_0x36a4a5(0x3b3)]());}[_0x8a6054(0x31f)](_0x18916b,_0x177b0a){const _0x4082bb=_0x8a6054;this[_0x4082bb(0x3c8)][_0x4082bb(0x2f4)](_0x18916b,_0x177b0a),this[_0x4082bb(0x3b3)]();}[_0x8a6054(0x2ed)](_0x20fcc0,_0x53248c){const _0x139ecc=_0x8a6054;this[_0x139ecc(0x306)][_0x139ecc(0x2f4)](_0x20fcc0,_0x53248c),this[_0x139ecc(0x3b3)]();}[_0x8a6054(0x205)](_0x2a7420,_0x26a3fd){const _0x1f0379=_0x8a6054;let _0x1782a4=[],_0x2fa1cd=_0x26a3fd,_0x239790=_0x26a3fd;for(let _0x35e5e6=_0x2a7420[_0x1f0379(0x2fb)]-0x1;_0x35e5e6>=0x0;_0x35e5e6--){let {unitID:_0x1a4df3,undoMutations:_0x3a1114,redoMutations:_0x3a50b5}=_0x2a7420[_0x35e5e6],_0x4c7c84=this['_transformService'][_0x1f0379(0x254)](_0x2fa1cd,_0x3a1114),_0x3bc5a2=this['_transformService'][_0x1f0379(0x254)](_0x239790,_0x3a50b5);if(_0x9ff381(_0x4c7c84)||_0x9ff381(_0x3bc5a2)){this[_0x1f0379(0x31e)][_0x1f0379(0x2c0)](_0x1f0379(0x3de),_0x1f0379(0x258),_0x4c7c84,_0x3bc5a2);break;}_0x2fa1cd=_0x4c7c84[_0x1f0379(0x2b7)],_0x239790=_0x3bc5a2[_0x1f0379(0x2b7)],_0x1782a4[_0x1f0379(0x27a)]({'unitID':_0x1a4df3,'undoMutations':_0x4c7c84[_0x1f0379(0x1fb)],'redoMutations':_0x3bc5a2[_0x1f0379(0x1fb)]});}return _0x1782a4[_0x1f0379(0x419)]();}};Bn=z([R(0x0,_0x3ca986),R(0x1,_0x1b4da7),R(0x2,_0x190113),R(0x3,_0x3a7b09),R(0x4,_0x2b6744)],Bn);let $=class extends _0x4c6e74{constructor(_0x239a21=gt,_0x258bfd,_0x362a6d,_0x28e8f6){const _0x21bc9e=_0x8a6054;super(),this[_0x21bc9e(0x3a0)]=_0x239a21,this['_logService']=_0x258bfd,this[_0x21bc9e(0x21a)]=_0x362a6d,this[_0x21bc9e(0x34a)]=_0x28e8f6;let {..._0x481081}=_0x18c740({},gt,this[_0x21bc9e(0x3a0)]);if(!_0x481081[_0x21bc9e(0x3d4)])throw Error(_0x21bc9e(0x295));this[_0x21bc9e(0x3a0)]=_0x481081,this[_0x21bc9e(0x34a)][_0x21bc9e(0x2da)](F,_0x481081);}['onStarting'](){const _0x372e43=_0x8a6054;this[_0x372e43(0x265)](),this[_0x372e43(0x39e)]();}[_0x8a6054(0x265)](){const _0x27eaac=_0x8a6054;var _0x2ba7e6,_0x30115b;this[_0x27eaac(0x21a)][_0x27eaac(0x3b6)](_0x5995ce)&&this[_0x27eaac(0x31e)]['error'](_0x27eaac(0x212),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2cb9f5=_0x4845fd([[_0x5995ce,{'useClass':Bn}],[Q],[B],[zt],[On],[Pn],[Mt],[Rn],[L],[Fn],[_n,{'useClass':this[_0x27eaac(0x3a0)][_0x27eaac(0x3d4)]}],[_0x17f9a7,{'useClass':zn}],[_0x3854b9,{'useClass':kn}],[_0x536aa2,{'useClass':In}],[Tn,{'useClass':En}],[_0xa55784,{'useClass':Ln}],[bn],[Cn]],(_0x2ba7e6=this[_0x27eaac(0x3a0)])==null?void 0x0:_0x2ba7e6[_0x27eaac(0x227)]);if(!((_0x30115b=this[_0x27eaac(0x3a0)])!=null&&_0x30115b['enableSingleActiveInstanceLock'])){let _0x35606e=_0x2cb9f5[_0x27eaac(0x3fc)](([_0x1a7ead])=>_0x1a7ead===H);_0x35606e!==-0x1&&_0x2cb9f5[_0x27eaac(0x415)](_0x35606e,0x1);}_0x4a7397(this['_injector'],_0x2cb9f5);}[_0x8a6054(0x39e)](){const _0x2bde15=_0x8a6054;var _0x1e6251,_0xca2413;if(this[_0x2bde15(0x21a)][_0x2bde15(0x44e)](_0xbf1860)[_0x2bde15(0x338)]({'priority':0x14,'interceptor':_0x266a98({'maxParallel':0x6})}),!((_0x1e6251=this['_config'])!=null&&_0x1e6251[_0x2bde15(0x21b)])){var _0x36b138;(_0x36b138=this['_injector'][_0x2bde15(0x44e)](V,_0x419f27[_0x2bde15(0x24d)]))==null||_0x36b138[_0x2bde15(0x3f2)]();}(_0xca2413=this[_0x2bde15(0x3a0)])!=null&&_0xca2413['enableAuthServer']&&_0x363b5d(this[_0x2bde15(0x21a)],[[On]]),_0x363b5d(this['_injector'],[[Pn],[bn],[Rn]]);}};I($,_0x8a6054(0x305),_0x8a6054(0x226)),I($,_0x8a6054(0x37d),xn),I($,_0x8a6054(0x2cf),Sn),$=z([_0x3ad841(_0x236b97,_0x1e3474,_0x2fe6ef),R(0x1,_0x2b6744),R(0x2,_0xaba5e9(_0x126fc9)),R(0x3,_0x29206e)],$);export{wn as AttachmentSourceType,kn as AuthzIoHttpService,K as AwaitingState,q as AwaitingWithPendingState,F as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,En as CollaborationAttachmentIoService,bn as CollaborationController,Z as CollaborationEntity,In as CollaborationImageIoService,It as CollaborationSession,Q as CollaborationSessionService,yn as CollaborationSocketService,on as CollaborationStatus,jt as CollaborationUIEventId,L as CollaborationUIEventService,Bn as CollaborativeUndoRedoService,Mt as CommentService,J as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Et as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Fn as DataLoaderService,un as DocCollaborationEntity,X as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Tn as IAttachmentIoService,_n as ICollaborationSocketService,V as ILocalCacheService,mn as INetworkConditionService,H as ISingleActiveUnitService,wt as LOCAL_CACHE_INTERVAL,Ct as LOCAL_CACHE_INTERVAL_KEY,B as MemberService,Ln as MentionIoHttpService,Y as OfflineState,G as PendingState,Tt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,St as RETRY_CONNECTING_MAX_COUNT_KEY,Pt as SessionStatus,fn as SheetCollaborationEntity,zt as SheetTransformSelectionsService,zn as SnapshotServerOverHTTPService,W as SyncedState,Bt as UnitStatus,$ as UniverCollaborationClientPlugin,hn as deserializeToCombResponse,Lt as getLocalCacheKey,gn as serializeCombRequest};
|
|
1
|
+
const _0x3c69ef=_0x43c7;(function(_0x41ec24,_0x380d63){const _0x15f7a2=_0x43c7,_0x176c06=_0x41ec24();while(!![]){try{const _0x22fe91=-parseInt(_0x15f7a2(0x39c))/0x1*(-parseInt(_0x15f7a2(0x21b))/0x2)+parseInt(_0x15f7a2(0x404))/0x3*(parseInt(_0x15f7a2(0x307))/0x4)+parseInt(_0x15f7a2(0x1e6))/0x5+parseInt(_0x15f7a2(0x1aa))/0x6+parseInt(_0x15f7a2(0x264))/0x7+parseInt(_0x15f7a2(0x2dc))/0x8+-parseInt(_0x15f7a2(0x361))/0x9;if(_0x22fe91===_0x380d63)break;else _0x176c06['push'](_0x176c06['shift']());}catch(_0x576bf1){_0x176c06['push'](_0x176c06['shift']());}}}(_0x36d7,0x186d6));import{CollaborationEvent as _0x43102b,CompressMutationService as _0x4e166f,EmptyMutationInfo as _0x59ed8b,ISnapshotServerService as _0xf3e9c6,ITransformService as _0x3a995f,RevisionService as _0x2d7797,SnapshotService as _0x45d3b5,UniverCollaborationPlugin as _0x493098,b64DecodeUnicode as _0x14b14d,isTransformChangesetsSuccess as _0x23d0df,isTransformMutationsWithChangesetFailure as _0x18826e,isTransformMutationsWithChangesetSuccess as _0x30d694,mapDocumentTypeToUniverInstanceType as _0x4e1660,parseChangesetToProtocol as _0x4835ca,parseProtocolChangeset as _0x131ca5,textEncoder as _0x9afde9,uuidv4 as _0x15262c}from'@univerjs-pro/collaboration';import{CommandType as _0x537f94,DependentOn as _0x25f04d,Disposable as _0x1c670c,DisposableCollection as _0x4fc3ed,IAuthzIoService as _0x3c91dc,ICommandService as _0x4705e0,IConfigService as _0x1f37e4,IContextService as _0x6a8ee3,IImageIoService as _0x80c08d,ILogService as _0x5c3e7f,IMentionIOService as _0x3ae42a,IPermissionService as _0x36da45,IUndoRedoService as _0x4aa991,IUniverInstanceService as _0x344fe1,ImageSourceType as _0xb1e59a,ImageUploadStatusType as _0x320d1a,Inject as _0xe230cc,Injector as _0x31a56e,JSONX as _0x42c2de,LocalUndoRedoService as _0x1faad3,LocaleService as _0x9a407d,MentionType as _0x3a7b55,Optional as _0x2b3cfa,Plugin as _0x2c6762,Quantity as _0x46b617,Rectangle as _0x4038f3,RxDisposable as _0x50b38b,Tools as _0x52d975,UniverInstanceType as _0x9a8e4e,UserManagerService as _0x55a0a7,Workbook as _0x19ddfe,createIdentifier as _0x27db79,generateRandomId as _0x5c124c,isInternalEditorID as _0x5bdd45,merge as _0x507159,mergeOverrideWithDependencies as _0x23d6dd,registerDependencies as _0xa204e3,resolveWithBasePath as _0x6dad3d,sequenceExecute as _0x8d0c4b,toDisposable as _0x4a5ee8,touchDependencies as _0x17b45d}from'@univerjs/core';import{DocStateChangeManagerService as _0x4be2f8,RichTextEditingMutation as _0x386ca6}from'@univerjs/docs';import{InsertSheetMutation as _0x11df8b,SetSelectionsOperation as _0x1b5157,SheetPermissionInitController as _0x2be84a,SheetsSelectionsService as _0x173cd0,WorkbookEditablePermission as _0x1413a3}from'@univerjs/sheets';import{BehaviorSubject as _0x296086,ReplaySubject as _0x464a6c,Subject as _0x59eece,concatMap as _0x55ed4c,firstValueFrom as _0x34da10,map as _0x37ecf3,merge as _0x4802bd,of as _0x282a93,shareReplay as _0x1c2ab6,take as _0x40acda,takeUntil as _0x48361a}from'rxjs';import{CmdRspCode as _0x1d3aac,CombCmd as _0x5b7fe7,ErrorCode as _0x291ad4,FileSource as _0x316b67}from'@univerjs/protocol';import{ITelemetryService as _0x2f845e}from'@univerjs/telemetry';import{delay as _0x58575b,filter as _0x26acea,map as _0xf99eb3,take as _0x3b77de,takeUntil as _0x241cda}from'rxjs/operators';import{AddSlidePageMutation as _0x3d73f2,EnsureSlideMasterPageMutation as _0x27d579,MoveSlidePageMutation as _0x1fa40d,RemoveSlidePageMutation as _0x46d741}from'@univerjs-pro/slides';import{HTTPRequest as _0x200900,HTTPService as _0x32d10d,ISocketService as _0x313930,MergeInterceptorFactory as _0x392035,ThresholdInterceptorFactory as _0x4e8da6,UniverNetworkPlugin as _0x3667b4}from'@univerjs/network';import{UniverLicensePlugin as _0x6b7911,getGlobalObject as _0x1c22a4}from'@univerjs-pro/license';import{cbc as _0x89c1d1}from'@noble/ciphers/aes.js';import{concatBytes as _0x1ecd97,randomBytes as _0x3911d9,utf8ToBytes as _0x3329bb}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x43c969,getDrawingImageAllowSize as _0x3e4b91}from'@univerjs/drawing';const L=_0x3c69ef(0x268),pt={},mt=_0x3c69ef(0x2de),ht=_0x3c69ef(0x1e1),gt=_0x3c69ef(0x37e),_t=_0x3c69ef(0x2a9),vt=0x4e20,yt=_0x3c69ef(0x317),bt=_0x3c69ef(0x23e),xt=0x3e8,St=_0x3c69ef(0x22f),Ct='/universer-api/uniscript';function wt(_0x4c1e0a){const _0x2179b1=_0x3c69ef;return JSON[_0x2179b1(0x2f7)](_0x4c1e0a)[_0x2179b1(0x3a1)];}function Tt(_0x66cb47){'@babel/helpers - typeof';const _0x25c290=_0x3c69ef;return Tt=typeof Symbol==_0x25c290(0x35a)&&typeof Symbol['iterator']==_0x25c290(0x391)?function(_0x35729d){return typeof _0x35729d;}:function(_0x4c91b6){const _0x29e11b=_0x25c290;return _0x4c91b6&&typeof Symbol==_0x29e11b(0x35a)&&_0x4c91b6[_0x29e11b(0x36a)]===Symbol&&_0x4c91b6!==Symbol[_0x29e11b(0x401)]?'symbol':typeof _0x4c91b6;},Tt(_0x66cb47);}function Et(_0x491656,_0x2e0eb1){const _0x375a4b=_0x3c69ef;if(Tt(_0x491656)!=_0x375a4b(0x1e0)||!_0x491656)return _0x491656;var _0x568cc9=_0x491656[Symbol['toPrimitive']];if(_0x568cc9!==void 0x0){var _0x5f077e=_0x568cc9[_0x375a4b(0x1db)](_0x491656,_0x2e0eb1||_0x375a4b(0x3de));if(Tt(_0x5f077e)!=_0x375a4b(0x1e0))return _0x5f077e;throw TypeError(_0x375a4b(0x22c));}return(_0x2e0eb1===_0x375a4b(0x3e7)?String:Number)(_0x491656);}function Dt(_0xdbae83){const _0x401606=_0x3c69ef;var _0x606781=Et(_0xdbae83,'string');return Tt(_0x606781)==_0x401606(0x391)?_0x606781:_0x606781+'';}function R(_0x11d019,_0x5b3cbb,_0x1f0252){const _0x130528=_0x3c69ef;return(_0x5b3cbb=Dt(_0x5b3cbb))in _0x11d019?Object[_0x130528(0x3c4)](_0x11d019,_0x5b3cbb,{'value':_0x1f0252,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11d019[_0x5b3cbb]=_0x1f0252,_0x11d019;}let Ot=function(_0x41b070){const _0x1cb5a2=_0x3c69ef;return _0x41b070['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x41b070[_0x1cb5a2(0x300)]=_0x1cb5a2(0x300),_0x41b070['CONFLICT']='CONFLICT',_0x41b070[_0x1cb5a2(0x3bd)]=_0x1cb5a2(0x3bd),_0x41b070['JOIN_ROOM_FAILED']='JOIN_ROOM_FAILED',_0x41b070[_0x1cb5a2(0x18f)]='SOCKET_FAILED_RETRY',_0x41b070[_0x1cb5a2(0x343)]=_0x1cb5a2(0x343),_0x41b070[_0x1cb5a2(0x28b)]=_0x1cb5a2(0x28b),_0x41b070;}({});var z=class{constructor(){const _0x10708f=_0x3c69ef;R(this,_0x10708f(0x367),new _0x59eece()),R(this,_0x10708f(0x1b7),this[_0x10708f(0x367)][_0x10708f(0x1cc)]());}['emitEvent'](_0x360f14){const _0x2a9982=_0x3c69ef;this[_0x2a9982(0x367)]['next'](_0x360f14);}},kt=class{constructor(){const _0x5be539=_0x3c69ef;R(this,_0x5be539(0x1a9),new _0x59eece()),R(this,'commentUpdate$',this[_0x5be539(0x1a9)][_0x5be539(0x1cc)]());}[_0x3c69ef(0x38b)](_0x1f9537){const _0x2d596f=_0x3c69ef;this[_0x2d596f(0x1a9)]['next'](_0x1f9537);}};function B(_0xb7d947,_0x266c38){return function(_0x573a10,_0x11d86e){_0x266c38(_0x573a10,_0x11d86e,_0xb7d947);};}function V(_0x4ab4c4,_0x46c620,_0xf0975b,_0x14152a){const _0x19eedd=_0x3c69ef;var _0x44fe1e=arguments[_0x19eedd(0x3a1)],_0x5e52e8=_0x44fe1e<0x3?_0x46c620:_0x14152a===null?_0x14152a=Object[_0x19eedd(0x19b)](_0x46c620,_0xf0975b):_0x14152a,_0x4723a7;if(typeof Reflect==_0x19eedd(0x1e0)&&typeof Reflect[_0x19eedd(0x324)]==_0x19eedd(0x35a))_0x5e52e8=Reflect[_0x19eedd(0x324)](_0x4ab4c4,_0x46c620,_0xf0975b,_0x14152a);else{for(var _0x1c479e=_0x4ab4c4['length']-0x1;_0x1c479e>=0x0;_0x1c479e--)(_0x4723a7=_0x4ab4c4[_0x1c479e])&&(_0x5e52e8=(_0x44fe1e<0x3?_0x4723a7(_0x5e52e8):_0x44fe1e>0x3?_0x4723a7(_0x46c620,_0xf0975b,_0x5e52e8):_0x4723a7(_0x46c620,_0xf0975b))||_0x5e52e8);}return _0x44fe1e>0x3&&_0x5e52e8&&Object[_0x19eedd(0x3c4)](_0x46c620,_0xf0975b,_0x5e52e8),_0x5e52e8;}let H=class extends _0x1c670c{constructor(_0x5e2511,_0xb9129b){const _0x407ff3=_0x3c69ef;super(),this['_univerInstanceService']=_0x5e2511,this['_userManagerService']=_0xb9129b,R(this,_0x407ff3(0x38d),new Map()),R(this,_0x407ff3(0x2e9),new _0x59eece()),this[_0x407ff3(0x3b8)](_0x4802bd(this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x1a4)])['pipe'](_0xf99eb3(_0x59cf5f=>_0x59cf5f[_0x407ff3(0x270)]())),this['_univerInstanceService'][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x274)])[_0x407ff3(0x380)](_0xf99eb3(_0x320146=>_0x320146[_0x407ff3(0x270)]())),this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e['UNIVER_BOARD'])[_0x407ff3(0x380)](_0xf99eb3(_0x2b8f37=>_0x2b8f37['getUnitId']())),this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x3b3)])[_0x407ff3(0x380)](_0xf99eb3(_0x362c29=>_0x362c29[_0x407ff3(0x270)]())))['subscribe'](_0x1e573a=>this[_0x407ff3(0x2b7)](_0x1e573a)));}[_0x3c69ef(0x2e7)](_0x5e9f80){const _0x46094e=_0x3c69ef;return this[_0x46094e(0x38d)][_0x46094e(0x387)](_0x5e9f80)?_0x282a93(this[_0x46094e(0x38d)][_0x46094e(0x20f)](_0x5e9f80)):this[_0x46094e(0x2e9)][_0x46094e(0x380)](_0xf99eb3(_0x114991=>{const _0x577174=_0x46094e;if(_0x114991===_0x5e9f80)return this['_roomMembers'][_0x577174(0x20f)](_0x114991);}));}[_0x3c69ef(0x206)](_0x4606ac){this['_userManagerService']['setCurrentUser'](_0x4606ac);}[_0x3c69ef(0x32d)](){const _0xa4aad3=_0x3c69ef;return this[_0xa4aad3(0x3b5)][_0xa4aad3(0x32d)]();}[_0x3c69ef(0x316)](_0x1e4e4a,_0x506a41){const _0xb44407=_0x3c69ef;let _0x27b869=this[_0xb44407(0x38d)]['get'](_0x1e4e4a);_0x27b869||(_0x27b869=new At(),this[_0xb44407(0x38d)]['set'](_0x1e4e4a,_0x27b869),this[_0xb44407(0x2e9)]['next'](_0x1e4e4a)),_0x27b869[_0xb44407(0x316)](_0x506a41);}['removeMember'](_0xe057d4,_0x184d73){const _0x51dc3d=_0x3c69ef;let _0x42346a=this[_0x51dc3d(0x38d)]['get'](_0xe057d4);_0x42346a&&_0x42346a[_0x51dc3d(0x266)](_0x184d73);}[_0x3c69ef(0x321)](_0x3c8f17){const _0x297ef6=_0x3c69ef;return this['_roomMembers'][_0x297ef6(0x20f)](_0x3c8f17);}[_0x3c69ef(0x331)](_0x559c39,_0x4a4007){const _0xc174c9=_0x3c69ef;let _0x195623=this[_0xc174c9(0x38d)][_0xc174c9(0x20f)](_0x559c39);if(_0x195623)return _0x195623[_0xc174c9(0x331)](_0x4a4007);}[_0x3c69ef(0x2b7)](_0x5f3fd3){const _0x3a72c5=_0x3c69ef;let _0x4af813=this[_0x3a72c5(0x38d)][_0x3a72c5(0x20f)](_0x5f3fd3);_0x4af813&&(_0x4af813[_0x3a72c5(0x20b)](),this[_0x3a72c5(0x38d)]['delete'](_0x5f3fd3));}['dispose'](){const _0x11d339=_0x3c69ef;this[_0x11d339(0x38d)][_0x11d339(0x1e5)](_0x3ce11d=>_0x3ce11d['dispose']()),this['_roomMembers'][_0x11d339(0x3bf)](),this['_roomCreated$'][_0x11d339(0x3aa)]();}};H=V([B(0x0,_0x344fe1),B(0x1,_0xe230cc(_0x55a0a7))],H);var At=class extends _0x1c670c{constructor(..._0x5b2632){const _0x2beb7a=_0x3c69ef;super(..._0x5b2632),R(this,_0x2beb7a(0x197),new Map()),R(this,_0x2beb7a(0x1f2),new _0x296086(this[_0x2beb7a(0x197)])),R(this,'members$',this[_0x2beb7a(0x1f2)]['asObservable']());}[_0x3c69ef(0x20b)](){const _0x839b85=_0x3c69ef;this['_members']['clear'](),this[_0x839b85(0x1f2)]['complete']();}[_0x3c69ef(0x316)](_0x3bb383){const _0x341dd4=_0x3c69ef;this[_0x341dd4(0x197)]['set'](_0x3bb383[_0x341dd4(0x223)],_0x3bb383),this['_emitMembers']();}[_0x3c69ef(0x266)](_0x15517b){const _0x5ea666=_0x3c69ef;this[_0x5ea666(0x197)][_0x5ea666(0x393)](_0x15517b),this[_0x5ea666(0x2b8)]();}[_0x3c69ef(0x331)](_0x32ce58){const _0x52372b=_0x3c69ef;return this[_0x52372b(0x197)][_0x52372b(0x20f)](_0x32ce58);}[_0x3c69ef(0x36b)](){const _0x557730=_0x3c69ef;return Array['from'](this[_0x557730(0x197)][_0x557730(0x1ef)]());}['_emitMembers'](){const _0x2c5e38=_0x3c69ef;this[_0x2c5e38(0x1f2)][_0x2c5e38(0x19a)](this[_0x2c5e38(0x197)]);}};function jt(_0x115230,_0x486809){const _0x536836=_0x3c69ef;if(Nt(_0x115230))return _0x486809;if(_0x486809['eventID']===_0x43102b['SUBMIT_CHANGESET']){var _0x455d28;let _0x150386=Rt(_0x115230),_0x16f05b=_0x486809;return{..._0x16f05b,'data':{..._0x16f05b[_0x536836(0x2ee)],'unitID':_0x115230[_0x536836(0x3d8)]['unitId'],'unitType':(_0x455d28=_0x115230['target']['unitType'])==null?_0x16f05b[_0x536836(0x2ee)][_0x536836(0x242)]:_0x455d28,'changeset':_0x150386['toRemote'](_0x16f05b[_0x536836(0x2ee)][_0x536836(0x2c2)],zt(_0x115230))}};}if(_0x486809[_0x536836(0x3f0)]===_0x43102b['FETCH_MISSING']){var _0x3d674d;let _0x5a19f1=_0x486809;return{..._0x5a19f1,'data':{..._0x5a19f1['data'],'unitID':_0x115230[_0x536836(0x3d8)]['unitId'],'unitType':(_0x3d674d=_0x115230[_0x536836(0x3d8)]['unitType'])==null?_0x5a19f1[_0x536836(0x2ee)][_0x536836(0x242)]:_0x3d674d}};}return _0x486809;}function Mt(_0x3d32c5,_0x10b652){const _0x33f5f1=_0x3c69ef;if(Nt(_0x3d32c5))return[_0x10b652];switch(_0x10b652['eventID']){case _0x43102b[_0x33f5f1(0x265)]:return[Pt(_0x3d32c5,_0x10b652)];case _0x43102b[_0x33f5f1(0x269)]:return[It(_0x3d32c5,_0x10b652)];case _0x43102b[_0x33f5f1(0x24b)]:return[Ft(_0x3d32c5,_0x10b652)];default:return[_0x10b652];}}function Nt(_0x8ef860){const _0x3d54b0=_0x3c69ef;return _0x8ef860['target']['endpoint']==null&&_0x8ef860[_0x3d54b0(0x3d8)][_0x3d54b0(0x296)]===_0x8ef860[_0x3d54b0(0x2e4)]&&!_0x8ef860[_0x3d54b0(0x2c2)];}function Pt(_0x4af4b9,_0x4806bd){const _0x3308ef=_0x3c69ef;return{..._0x4806bd,'data':_0x4835ca(Lt(_0x4af4b9,_0x131ca5(_0x4806bd[_0x3308ef(0x2ee)])))};}function Ft(_0x89206d,_0x32b1c4){const _0xffa229=_0x3c69ef;return{..._0x32b1c4,'data':Lt(_0x89206d,_0x32b1c4[_0xffa229(0x2ee)])};}function It(_0x3ce054,_0x48df30){const _0x40a830=_0x3c69ef;let _0x4e7908=_0x48df30[_0x40a830(0x2ee)];return{..._0x48df30,'data':{..._0x4e7908,'changesets':_0x4e7908[_0x40a830(0x23a)][_0x40a830(0x35d)](_0x3cc44d=>_0x4835ca(Lt(_0x3ce054,_0x131ca5(_0x3cc44d))))}};}function Lt(_0x1be39e,_0x17bf6f){return Rt(_0x1be39e)['toLocal'](_0x17bf6f,zt(_0x1be39e));}function Rt(_0x2ae73e){const _0x5cbd0b=_0x3c69ef;if(!_0x2ae73e['changeset'])throw Error(_0x5cbd0b(0x2b3));return _0x2ae73e[_0x5cbd0b(0x2c2)];}function zt(_0x121db5){const _0x224b7c=_0x3c69ef;return{'localUnitId':_0x121db5[_0x224b7c(0x2e4)],'unitType':_0x121db5[_0x224b7c(0x242)],'target':_0x121db5[_0x224b7c(0x3d8)]};}let Bt=function(_0x4fd693){const _0xf6e6b8=_0x3c69ef;return _0x4fd693[_0x4fd693[_0xf6e6b8(0x32c)]=0x0]=_0xf6e6b8(0x32c),_0x4fd693[_0x4fd693[_0xf6e6b8(0x344)]=0x1]=_0xf6e6b8(0x344),_0x4fd693[_0x4fd693['OFFLINE']=0x2]='OFFLINE',_0x4fd693[_0x4fd693[_0xf6e6b8(0x3cb)]=0x3]=_0xf6e6b8(0x3cb),_0x4fd693;}({});const Vt={[_0x1d3aac['FAIL']]:_0x3c69ef(0x369),[_0x1d3aac['JOIN_ROOM_FULL']]:'session.room-full',[_0x1d3aac[_0x3c69ef(0x3a4)]]:_0x3c69ef(0x34e),[_0x1d3aac['JOIN_ROOM_PERMISSION_DENIED']]:_0x3c69ef(0x30e),[_0x1d3aac['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x3c69ef(0x3f6)};let Ht=class extends _0x50b38b{get[_0x3c69ef(0x289)](){const _0x427556=_0x3c69ef;return this['_sessionStatus$'][_0x427556(0x368)]();}constructor(_0x5d27c2,_0x5011ed,_0x43bf43,_0x3d0233,_0x5ce071,_0x94d369,_0x4a4f5d,_0x3d0569){const _0x58a867=_0x3c69ef;super(),this[_0x58a867(0x2f2)]=_0x5d27c2,this[_0x58a867(0x3f4)]=_0x43bf43,this[_0x58a867(0x305)]=_0x3d0233,this[_0x58a867(0x356)]=_0x5ce071,this['_commentService']=_0x94d369,this[_0x58a867(0x290)]=_0x4a4f5d,this[_0x58a867(0x399)]=_0x3d0569,R(this,_0x58a867(0x2cb),new _0x296086(0x0)),R(this,_0x58a867(0x2ae),this[_0x58a867(0x2cb)][_0x58a867(0x1cc)]()),R(this,_0x58a867(0x367),new _0x59eece()),R(this,_0x58a867(0x1b7),this['_event$']['asObservable']()),R(this,_0x58a867(0x329),void 0x0),R(this,_0x58a867(0x1e9),void 0x0),R(this,_0x58a867(0x374),void 0x0),R(this,_0x58a867(0x414),!0x1),R(this,_0x58a867(0x29e),null),this[_0x58a867(0x414)]=!!this['_telemetryService'],_0x5011ed[_0x58a867(0x380)](_0x48361a(this['dispose$']))[_0x58a867(0x420)](_0x223710=>{const _0x2948b1=_0x58a867;if(_0x223710!==void 0x0){if(this[_0x2948b1(0x329)]=_0x223710,_0x223710)this[_0x2948b1(0x3ff)](_0x223710),this[_0x2948b1(0x1e9)]=_0x223710[_0x2948b1(0x261)][_0x2948b1(0x420)](_0x278d8b=>{const _0x30369d=_0x2948b1;_0x278d8b[_0x30369d(0x2fd)]===this[_0x30369d(0x2f2)][_0x30369d(0x3d8)][_0x30369d(0x296)]&&this[_0x30369d(0x2dd)](_0x278d8b);});else{var _0xdd7ddd;this[_0x2948b1(0x3e4)](),this[_0x2948b1(0x2cb)]['next'](0x2),(_0xdd7ddd=this[_0x2948b1(0x1e9)])==null||_0xdd7ddd[_0x2948b1(0x3c3)](),this[_0x2948b1(0x1e9)]=null;}}});}[_0x3c69ef(0x3fd)](){const _0x365524=_0x3c69ef;var _0x3f021b,_0x2fe307;return(_0x3f021b=(_0x2fe307=this[_0x365524(0x329)])==null?void 0x0:_0x2fe307[_0x365524(0x223)])==null?null:_0x3f021b;}[_0x3c69ef(0x20b)](){const _0x437e5a=_0x3c69ef;super[_0x437e5a(0x20b)](),this['close'](),this[_0x437e5a(0x294)]['next'](),this['dispose$'][_0x437e5a(0x3aa)]();}['close'](){const _0x470601=_0x3c69ef;var _0x4c07ec;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4c07ec=this[_0x470601(0x329)])==null||_0x4c07ec[_0x470601(0x31a)]({'cmd':_0x5b7fe7[_0x470601(0x31b)],'data':{'roomID':this[_0x470601(0x2f2)][_0x470601(0x3d8)][_0x470601(0x296)]}}),this[_0x470601(0x367)][_0x470601(0x3aa)](),this[_0x470601(0x2cb)][_0x470601(0x3aa)]();}['_onCombEvent'](_0x39d170){const _0x173e06=_0x3c69ef;_0x39d170[_0x173e06(0x258)]===_0x5b7fe7[_0x173e06(0x3b6)]?this['_onJoinRoomEvent'](_0x39d170):_0x39d170[_0x173e06(0x258)]===_0x5b7fe7[_0x173e06(0x2f9)]&&this[_0x173e06(0x2f0)](_0x39d170);}[_0x3c69ef(0x3ff)](_0x84423e){const _0x2625a8=_0x3c69ef;this[_0x2625a8(0x2cb)][_0x2625a8(0x19a)](0x1),_0x84423e[_0x2625a8(0x31a)]({'cmd':_0x5b7fe7[_0x2625a8(0x3b6)],'routeKey':this[_0x2625a8(0x2f2)][_0x2625a8(0x3d8)][_0x2625a8(0x296)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x2625a8(0x3d8)][_0x2625a8(0x296)]}]}});}[_0x3c69ef(0x38f)](_0x49a13a){const _0x3ad991=_0x3c69ef;var _0x17ab76;if(_0x49a13a[_0x3ad991(0x28a)]in Vt){this['_collaborationUIEventService'][_0x3ad991(0x377)]({'id':_0x3ad991(0x35b),'data':Vt[_0x49a13a[_0x3ad991(0x28a)]]}),this[_0x3ad991(0x2cb)][_0x3ad991(0x19a)](0x2);return;}this[_0x3ad991(0x2cb)]['next'](0x3);let _0x54709f=(_0x17ab76=_0x49a13a[_0x3ad991(0x2ee)]['roomInfos'][this[_0x3ad991(0x2f2)][_0x3ad991(0x3d8)][_0x3ad991(0x296)]])==null?void 0x0:_0x17ab76['members'];_0x54709f&&_0x54709f[_0x3ad991(0x1e5)](_0x14143b=>this[_0x3ad991(0x356)][_0x3ad991(0x316)](this[_0x3ad991(0x2f2)][_0x3ad991(0x2e4)],_0x14143b));}['_onRecvEvent'](_0x57f6fe){const _0x192121=_0x3c69ef;try{let _0x31bba4=Mt(this[_0x192121(0x2f2)],_0x57f6fe[_0x192121(0x2ee)]);for(let _0xd9798 of _0x31bba4)switch(_0xd9798['eventID']){case _0x43102b['USERS_ENTER']:this[_0x192121(0x363)](_0xd9798),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b[_0x192121(0x334)]:this['_onUserLeave'](_0xd9798),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b['CHANGESET_ACK']:case _0x43102b[_0x192121(0x24b)]:this[_0x192121(0x352)](),this[_0x192121(0x3eb)](),this[_0x192121(0x367)]['next'](_0xd9798);break;case _0x43102b['MSG_FOR_ERROR']:this[_0x192121(0x3f4)][_0x192121(0x199)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0xd9798)),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b['COMMENT_UPDATE']:this[_0x192121(0x1d9)][_0x192121(0x38b)](_0xd9798['data']),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;default:this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);}}catch(_0x4b959d){this[_0x192121(0x3f4)][_0x192121(0x199)](_0x4b959d,_0x57f6fe);}}[_0x3c69ef(0x363)](_0x19e834){const _0x5eea61=_0x3c69ef;this[_0x5eea61(0x356)][_0x5eea61(0x316)](this[_0x5eea61(0x2f2)][_0x5eea61(0x2e4)],_0x19e834['data']);}[_0x3c69ef(0x3e9)](_0x1543f4){const _0x5774d9=_0x3c69ef;this['_memberService']['removeMember'](this[_0x5774d9(0x2f2)][_0x5774d9(0x2e4)],_0x1543f4[_0x5774d9(0x2ee)]['memberID']);}async[_0x3c69ef(0x31a)](_0x2eb573,_0x332797){const _0x427bd0=_0x3c69ef;if(this['sessionStatus']!==0x3||!this[_0x427bd0(0x329)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x5baf4a=jt(this[_0x427bd0(0x2f2)],_0x2eb573);_0x5baf4a[_0x427bd0(0x3f0)]===_0x43102b[_0x427bd0(0x36c)]&&(this[_0x427bd0(0x262)](),this[_0x427bd0(0x2d6)](_0x5baf4a)),this[_0x427bd0(0x329)][_0x427bd0(0x31a)]({'cmd':_0x5b7fe7[_0x427bd0(0x3d9)],'routeKey':this[_0x427bd0(0x2f2)][_0x427bd0(0x3d8)][_0x427bd0(0x296)],'routeType':'','data':_0x5baf4a});}catch(_0x4ecdc4){this[_0x427bd0(0x3f4)][_0x427bd0(0x199)](_0x4ecdc4);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2772ea=_0x3c69ef;var _0x3895e4;this[_0x2772ea(0x374)]=setTimeout(()=>{const _0x1a2f4e=_0x2772ea;this[_0x1a2f4e(0x374)]=null,this[_0x1a2f4e(0x290)][_0x1a2f4e(0x377)]({'id':_0x1a2f4e(0x28b)});},(_0x3895e4=this['_configService'][_0x2772ea(0x353)](_0x2772ea(0x2a9)))==null?vt:_0x3895e4);}[_0x3c69ef(0x3eb)](){const _0x4bb704=_0x3c69ef;this[_0x4bb704(0x374)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4bb704(0x374)]=null);}[_0x3c69ef(0x2d6)](_0x167af1){const _0xf17398=_0x3c69ef;if(!this['_shouldReportTelemetry'])return;let {data:_0x22184b}=_0x167af1,{unitID:_0x286cdc,changeset:_0x150a62}=_0x22184b,{mutations:_0x3491f3,type:_0x1fefbc}=_0x150a62;this[_0xf17398(0x29e)]={'unitId':_0x286cdc,'type':_0x1fefbc,'startTime':performance[_0xf17398(0x1ca)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x3491f3)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x494555=_0x3c69ef;if(this['_shouldReportTelemetry']){if(!this[_0x494555(0x29e)]){this['_logService'][_0x494555(0x199)](_0x494555(0x297),_0x494555(0x34d));return;}this[_0x494555(0x29e)][_0x494555(0x31f)]=performance[_0x494555(0x1ca)](),this[_0x494555(0x29e)][_0x494555(0x407)]=this['_telemetryInfo']['stopTime']-this[_0x494555(0x29e)]['startTime'],this[_0x494555(0x399)][_0x494555(0x27f)](_0x494555(0x28e),this[_0x494555(0x29e)]),this['_telemetryInfo']=null;}}[_0x3c69ef(0x3e4)](){const _0x54a9a5=_0x3c69ef;this[_0x54a9a5(0x29e)]=null;}};Ht=V([B(0x2,_0x5c3e7f),B(0x3,_0x1f37e4),B(0x4,_0xe230cc(H)),B(0x5,_0xe230cc(kt)),B(0x6,_0xe230cc(z)),B(0x7,_0x2b3cfa(_0x2f845e))],Ht);const U=_0x27db79('collaboration-client.local-cache-service');function Ut(_0x429a2b){const _0x3098df=_0x3c69ef;return _0x3098df(0x1dd)+_0x429a2b;}function Wt(_0x341c7a){const _0x1a6710=_0x3c69ef;let {unitID:_0x5c3c57,mutations:_0x5d930e}=_0x341c7a;return{'unitId':_0x5c3c57,'subUnitId':_0x5d930e[_0x1a6710(0x3a1)]>0x0?_0x5d930e[0x0][_0x1a6710(0x3c6)]['subUnitId']:null};}let Gt=class{constructor(_0x4ad6e9,_0x2b0d6e,_0x535944){this['_injector']=_0x4ad6e9,this['_transformService']=_0x2b0d6e,this['_instanceService']=_0x535944;}[_0x3c69ef(0x319)](_0x5b3983){const _0x4a82da=_0x3c69ef;var _0x27bc10,_0x2c3932;let _0x58e4c0=this[_0x4a82da(0x27a)]['get'](_0x173cd0),{unitId:_0x40a970,subUnitId:_0x158669}=Wt(_0x5b3983),_0x6ec3f1=_0x58e4c0==null?void 0x0:_0x58e4c0[_0x4a82da(0x3be)](_0x40a970)['getCurrentSelections'](),_0x429e14=(_0x27bc10=this[_0x4a82da(0x226)][_0x4a82da(0x1b8)](_0x40a970))==null||(_0x27bc10=_0x27bc10[_0x4a82da(0x2ad)]())==null?void 0x0:_0x27bc10[_0x4a82da(0x339)]();if(_0x6ec3f1[_0x4a82da(0x3a1)]===0x0||!_0x40a970||!_0x158669)return;let _0x29f354=[{'id':_0x1b5157['id'],'params':{'unitId':_0x40a970,'subUnitId':_0x429e14,'selections':_0x52d975['deepClone'](_0x6ec3f1)}}],_0x41d46f=this[_0x4a82da(0x1c6)][_0x4a82da(0x2f6)](_0x5b3983,_0x29f354);if(!_0x30d694(_0x41d46f))throw _0x41d46f[_0x4a82da(0x199)];let _0x2ae173=(_0x2c3932=_0x41d46f[_0x4a82da(0x3a6)][0x0])==null||(_0x2c3932=_0x2c3932[_0x4a82da(0x3c6)])==null?void 0x0:_0x2c3932['selections'];if(Array[_0x4a82da(0x3cf)](_0x2ae173)&&_0x2ae173['length']){if(_0x2ae173[_0x4a82da(0x3a1)]===_0x29f354[0x0][_0x4a82da(0x3c6)][_0x4a82da(0x1af)]['length']&&_0x2ae173[_0x4a82da(0x3fa)]((_0x4aa5f1,_0x20fb79)=>_0x4038f3[_0x4a82da(0x1b5)](_0x4aa5f1[_0x4a82da(0x22a)],_0x29f354[0x0][_0x4a82da(0x3c6)]['selections'][_0x20fb79]['range'])))return;this['_injector'][_0x4a82da(0x20f)](_0x4705e0)[_0x4a82da(0x295)](_0x1b5157['id'],{'unitId':_0x40a970,'subUnitId':_0x429e14,'selections':_0x2ae173});}}};Gt=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x3a995f),B(0x2,_0x344fe1)],Gt);const W=_0x27db79(_0x3c69ef(0x241));let Kt=function(_0x4d5603){const _0x5d848d=_0x3c69ef;return _0x4d5603[_0x4d5603['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5d848d(0x2df),_0x4d5603[_0x4d5603[_0x5d848d(0x1cf)]=0x1]=_0x5d848d(0x1cf),_0x4d5603;}({});function qt(_0x4378a9){const _0x4d31a3=_0x3c69ef;var _0x332fc1;return!!((_0x332fc1=_0x4378a9[_0x4d31a3(0x3c6)])!=null&&_0x332fc1[_0x4d31a3(0x193)]);}const Jt=new Set([_0x11df8b['id']]),Yt=new Set([_0x3d73f2['id'],_0x27d579['id'],_0x1fa40d['id'],_0x46d741['id']]);function Xt(_0xa8b655,_0x4ac0f0=Jt){const _0x2f8b39=_0x3c69ef;let _0x3cf7a8=[];for(let _0x540cc7 of _0xa8b655){if(_0x4ac0f0[_0x2f8b39(0x387)](_0x540cc7['id'])){if(_0x3cf7a8[_0x2f8b39(0x3a1)]>0x0)break;_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);break;}if(qt(_0x540cc7)){if(_0x3cf7a8[_0x2f8b39(0x3a1)]>0x0)break;_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);break;}_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);}return _0x3cf7a8;}function _0x43c7(_0x340530,_0x2f37e9){_0x340530=_0x340530-0x188;const _0x36d743=_0x36d7();let _0x43c7a0=_0x36d743[_0x340530];return _0x43c7a0;}function Zt(_0x375659,_0x5bb4f5,_0x19047d,_0x3a6159,_0x47541a){const _0x588c85=_0x3c69ef;var _0xa71543,_0x16d5b6,_0x4b1848,_0x3a6a6f;let _0x33cece=Xt(_0x375659),_0x3bc432=(_0xa71543=(_0x16d5b6=_0x47541a['getCurrentUser']())==null?void 0x0:_0x16d5b6[_0x588c85(0x3c0)])==null?_0x588c85(0x263):_0xa71543,_0x24c358=(_0x4b1848=(_0x3a6a6f=_0x47541a['getCurrentUser']())==null?void 0x0:_0x3a6a6f[_0x588c85(0x223)])==null?'unknown':_0x4b1848;return{'changeset':{'unitID':_0x5bb4f5,'type':_0x4e1660(_0x19047d[_0x588c85(0x328)](_0x5bb4f5)),'baseRev':_0x3a6159[_0x588c85(0x306)](_0x5bb4f5),'revision':0x0,'userID':_0x3bc432,'memberID':_0x24c358,'mutations':_0x33cece},'pendingMutations':_0x375659['slice'](_0x33cece[_0x588c85(0x3a1)])};}function Qt(_0x3d9f05,_0x3ee736,_0x16c7e3,_0x5a7c1b,_0x1cb42d){const _0x405c81=_0x3c69ef;var _0x5bc3be,_0xcf48ad,_0x2124a7,_0x21e3f2;let _0x20223b=Xt(_0x3d9f05,Yt),_0x15e2a8=(_0x5bc3be=(_0xcf48ad=_0x1cb42d[_0x405c81(0x32d)]())==null?void 0x0:_0xcf48ad[_0x405c81(0x3c0)])==null?_0x405c81(0x263):_0x5bc3be,_0x4e3ce3=(_0x2124a7=(_0x21e3f2=_0x1cb42d[_0x405c81(0x32d)]())==null?void 0x0:_0x21e3f2['memberID'])==null?_0x405c81(0x263):_0x2124a7;return{'changeset':{'unitID':_0x3ee736,'type':_0x4e1660(_0x16c7e3[_0x405c81(0x328)](_0x3ee736)),'baseRev':_0x5a7c1b[_0x405c81(0x306)](_0x3ee736),'revision':0x0,'userID':_0x15e2a8,'memberID':_0x4e3ce3,'mutations':_0x20223b},'pendingMutations':_0x3d9f05[_0x405c81(0x335)](_0x20223b[_0x405c81(0x3a1)])};}function $t(_0x2aecce,_0xf7dbba,_0x2fe705,_0x4c59ed,_0x38883f){const _0xa0be4e=_0x3c69ef;var _0x49ac83,_0x3a80b6,_0x2a2ee2,_0x16ec91;let _0x171977=_0x2aecce[_0xa0be4e(0x225)]((_0x5ae69f,_0x167e20)=>{const _0x2d7269=_0xa0be4e;let _0x54d892=_0x5ae69f[_0x5ae69f[_0x2d7269(0x3a1)]-0x1],{id:_0x2ecb2c}=_0x54d892==null?{}:_0x54d892,{id:_0x4652ae,type:_0x49e6fd}=_0x167e20,_0x46cc68=_0x167e20[_0x2d7269(0x3c6)];if(_0x2ecb2c&&_0x2ecb2c!==_0x4652ae)throw Error(_0x2d7269(0x2a6)+_0x2ecb2c+_0x2d7269(0x1eb)+_0x4652ae+'.');if(!_0x54d892)return[{'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68['unitId'],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x46cc68[_0x2d7269(0x3ad)]}}];let _0x5288b5=_0x54d892[_0x2d7269(0x3c6)];return en(_0x5288b5,_0x46cc68)?[..._0x5ae69f[_0x2d7269(0x335)](0x0,-0x1),{..._0x54d892,'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68['unitId'],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x42c2de['compose'](_0x5288b5[_0x2d7269(0x3ad)],_0x46cc68[_0x2d7269(0x3ad)])}}]:[..._0x5ae69f,{'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68[_0x2d7269(0x296)],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x46cc68[_0x2d7269(0x3ad)]}}];},[]),_0x429922=(_0x49ac83=(_0x3a80b6=_0x38883f[_0xa0be4e(0x32d)]())==null?void 0x0:_0x3a80b6[_0xa0be4e(0x3c0)])==null?_0xa0be4e(0x263):_0x49ac83,_0x4362e6=(_0x2a2ee2=(_0x16ec91=_0x38883f[_0xa0be4e(0x32d)]())==null?void 0x0:_0x16ec91[_0xa0be4e(0x223)])==null?_0xa0be4e(0x263):_0x2a2ee2;return{'changeset':{'unitID':_0xf7dbba,'type':_0x4e1660(_0x2fe705[_0xa0be4e(0x328)](_0xf7dbba)),'baseRev':_0x4c59ed[_0xa0be4e(0x306)](_0xf7dbba),'revision':0x0,'userID':_0x429922,'memberID':_0x4362e6,'mutations':_0x171977},'pendingMutations':_0x2aecce[_0xa0be4e(0x335)](_0x2aecce[_0xa0be4e(0x3a1)])};}function en(_0x161fe0,_0x19a38f){const _0x344b87=_0x3c69ef;return!tn(_0x161fe0)&&!tn(_0x19a38f)&&nn(_0x161fe0[_0x344b87(0x3ad)],_0x19a38f[_0x344b87(0x3ad)]);}function tn(_0x17a5b5){const _0x7d1426=_0x3c69ef;return _0x17a5b5[_0x7d1426(0x22d)]!==void 0x0;}function nn(_0x3d6b99,_0x2d2bc3){return rn(_0x3d6b99)&&rn(_0x2d2bc3)&&!on(_0x3d6b99)&&!on(_0x2d2bc3)&&!an(_0x3d6b99)&&!an(_0x2d2bc3);}function rn(_0x4cea77){const _0x360d90=_0x3c69ef;return sn(_0x4cea77)[_0x360d90(0x238)](_0x3d5d94=>cn(_0x3d5d94)&&_0x3d5d94['et']===_0x360d90(0x2ab));}function an(_0x1efdd5){const _0x3f36e6=_0x3c69ef;return sn(_0x1efdd5)[_0x3f36e6(0x238)](_0x565db9=>Array[_0x3f36e6(0x3cf)](_0x565db9)||typeof _0x565db9==_0x3f36e6(0x3e7)||typeof _0x565db9==_0x3f36e6(0x2ef));}function on(_0x29e15b){const _0x4387d2=_0x3c69ef;return sn(_0x29e15b)['some'](_0x4eb3b6=>!cn(_0x4eb3b6)||_0x4eb3b6['et']!=='text-x'||!Array['isArray'](_0x4eb3b6['e'])?!0x1:_0x4eb3b6['e'][_0x4387d2(0x238)](_0x582fde=>!cn(_0x582fde)||!cn(_0x582fde[_0x4387d2(0x31c)])?!0x1:Object[_0x4387d2(0x401)]['hasOwnProperty'][_0x4387d2(0x1db)](_0x582fde[_0x4387d2(0x31c)],_0x4387d2(0x402))||Object[_0x4387d2(0x401)][_0x4387d2(0x26e)][_0x4387d2(0x1db)](_0x582fde['body'],_0x4387d2(0x376))||Object[_0x4387d2(0x401)][_0x4387d2(0x26e)][_0x4387d2(0x1db)](_0x582fde[_0x4387d2(0x31c)],_0x4387d2(0x33d))));}function sn(_0x5e1825){const _0x519fb2=_0x3c69ef;if(!Array[_0x519fb2(0x3cf)](_0x5e1825))return[];let _0x3e8194=_0x5e1825[_0x519fb2(0x24f)](_0x519fb2(0x31c))?_0x5e1825:_0x5e1825[_0x519fb2(0x3ca)](_0x459c3e=>Array[_0x519fb2(0x3cf)](_0x459c3e)&&_0x459c3e[_0x519fb2(0x24f)](_0x519fb2(0x31c)));if(!Array[_0x519fb2(0x3cf)](_0x3e8194))return[];let _0x2e6457=_0x3e8194[_0x519fb2(0x272)](_0x519fb2(0x31c));return _0x2e6457===-0x1?[]:_0x3e8194['slice'](_0x2e6457+0x1);}function cn(_0xb0fb3c){const _0x57be3b=_0x3c69ef;return typeof _0xb0fb3c=='object'&&!!_0xb0fb3c&&!Array[_0x57be3b(0x3cf)](_0xb0fb3c);}function ln(_0xba200,_0xd88a1){const _0x201ce3=_0x3c69ef;let _0x21d165=new _0x464a6c(0x1);return setTimeout(()=>_0x21d165[_0x201ce3(0x19a)](_0xd88a1),_0xba200),_0x21d165[_0x201ce3(0x1cc)]()['pipe'](_0x40acda(0x1));}var un,dn,fn;let pn=function(_0x4ff6c2){const _0x5257d3=_0x3c69ef;return _0x4ff6c2[_0x5257d3(0x3dc)]=_0x5257d3(0x209),_0x4ff6c2[_0x5257d3(0x3e3)]='synced',_0x4ff6c2[_0x5257d3(0x3c7)]=_0x5257d3(0x3b0),_0x4ff6c2[_0x5257d3(0x1b1)]='awaiting',_0x4ff6c2['AWAITING_WITH_PENDING']=_0x5257d3(0x22b),_0x4ff6c2[_0x5257d3(0x27b)]=_0x5257d3(0x302),_0x4ff6c2[_0x5257d3(0x1f0)]=_0x5257d3(0x338),_0x4ff6c2[_0x5257d3(0x342)]=_0x5257d3(0x255),_0x4ff6c2;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x489681,_0x58776d,_0x832a14,_0x15bf60,_0xecb570,_0x28f99b,_0x19d046,_0x576b24,_0x119098){const _0x19361e=_0x3c69ef;this['unitID']=_0x489681,this[_0x19361e(0x315)]=_0x58776d,this[_0x19361e(0x194)]=_0xecb570,this['_commandService']=_0x28f99b,this[_0x19361e(0x3a3)]=_0x19d046,this[_0x19361e(0x403)]=_0x576b24,this['_localCacheService']=_0x119098,R(this,_0x19361e(0x2bd),null),R(this,_0x19361e(0x1a7),[]),this['_awaitingChangeset']=_0x832a14,this[_0x19361e(0x1a7)]=_0x15bf60;}['_checkMissing'](_0x5b4f10){const _0x3ce0f9=_0x3c69ef;let _0x1d2cf4=this[_0x3ce0f9(0x403)][_0x3ce0f9(0x306)](this[_0x3ce0f9(0x40c)]);return _0x5b4f10[_0x3ce0f9(0x2fe)]>_0x1d2cf4+0x1?(this[_0x3ce0f9(0x194)][_0x3ce0f9(0x23c)]({'from':_0x1d2cf4,'to':_0x5b4f10['revision']-0x1}),!0x0):!0x1;}[_0x3c69ef(0x309)](_0x4b6831){const _0xadc302=_0x3c69ef;this[_0xadc302(0x3a3)][_0xadc302(0x388)](this[_0xadc302(0x40c)],_0x4b6831);}['_transformSelections'](_0x101137){const _0x325300=_0x3c69ef;var _0x2b73e8,_0x375889;(_0x2b73e8=(_0x375889=this['_handler'])[_0x325300(0x218)])==null||_0x2b73e8['call'](_0x375889,_0x101137);}[_0x3c69ef(0x366)](_0x29aa69){const _0x5219a4=_0x3c69ef;var _0x58a90e,_0x26ecf0;return(_0x58a90e=(_0x26ecf0=this[_0x5219a4(0x194)])[_0x5219a4(0x2be)])==null?void 0x0:_0x58a90e['call'](_0x26ecf0,_0x29aa69);}['_transformStateCache'](_0x1517f5){const _0x233735=_0x3c69ef;var _0x57cef5,_0x34d228;return(_0x57cef5=(_0x34d228=this['_handler'])['onTransformState'])==null?void 0x0:_0x57cef5[_0x233735(0x1db)](_0x34d228,_0x1517f5);}[_0x3c69ef(0x19f)](_0x2a1a4b){const _0x268084=_0x3c69ef;var _0x4e7a70,_0xeeb1bd,_0x330f8f;return(_0x4e7a70=(_0xeeb1bd=(_0x330f8f=this[_0x268084(0x194)])[_0x268084(0x1df)])==null?void 0x0:_0xeeb1bd[_0x268084(0x1db)](_0x330f8f,_0x2a1a4b))==null?_0x2a1a4b:_0x4e7a70;}[_0x3c69ef(0x1fc)](_0x547ff1){const _0x5d3772=_0x3c69ef;var _0x516cfb,_0x33a2f6,_0x4a84e3;return(_0x516cfb=(_0x33a2f6=(_0x4a84e3=this['_handler'])[_0x5d3772(0x1d2)])==null?void 0x0:_0x33a2f6['call'](_0x4a84e3,_0x547ff1))==null?_0x547ff1:_0x516cfb;}[_0x3c69ef(0x248)](_0x4d91e4){const _0x3e1c13=_0x3c69ef;if(this[_0x3e1c13(0x315)]===_0x9a8e4e[_0x3e1c13(0x274)]){let {unitID:_0x2eb58a,mutations:_0x2f35b3,memberID:_0x4ff885}=_0x4d91e4,_0x11c768=_0x2f35b3['length']>0x0?_0x2f35b3[0x0][_0x3e1c13(0x3c6)][_0x3e1c13(0x246)]:[];if(Array[_0x3e1c13(0x3cf)](_0x11c768)&&_0x11c768[_0x3e1c13(0x3a1)]>0x0){var _0x50e3c2,_0x59d313;(_0x50e3c2=(_0x59d313=this[_0x3e1c13(0x194)])[_0x3e1c13(0x41c)])==null||_0x50e3c2[_0x3e1c13(0x1db)](_0x59d313,{'unitID':_0x2eb58a,'memberID':_0x4ff885,'textRanges':_0x11c768});}}}[_0x3c69ef(0x2bc)](){const _0x1f0211=_0x3c69ef;var _0x3a6a13;(_0x3a6a13=this[_0x1f0211(0x1f4)])==null||_0x3a6a13[_0x1f0211(0x411)](this[_0x1f0211(0x40c)],this[_0x1f0211(0x315)],this['_awaitingChangeset'],this[_0x1f0211(0x1a7)]);}[_0x3c69ef(0x312)](){const _0x5b866f=_0x3c69ef;return this['_revisionService'][_0x5b866f(0x306)](this[_0x5b866f(0x40c)]);}['_incrementRevisionNumber'](){const _0x92604e=_0x3c69ef;this['_revisionService'][_0x92604e(0x2fc)](this[_0x92604e(0x40c)]);}[_0x3c69ef(0x3ac)](_0x33422b){const _0x5f6746=_0x3c69ef;let _0x9b2b25=this[_0x5f6746(0x19f)](_0x33422b);_0x9b2b25=this[_0x5f6746(0x1fc)](_0x9b2b25);let _0x10c430=_0x8d0c4b(_0x9b2b25[_0x5f6746(0x188)],this[_0x5f6746(0x1ac)],{'fromCollab':!0x0});if(!_0x10c430[_0x5f6746(0x2bb)]){var _0x4795fc;throw _0x10c430['error']instanceof Error?_0x10c430[_0x5f6746(0x199)]:Error((_0x4795fc=_0x10c430[_0x5f6746(0x199)])==null?'[CollaborationState]:\x20apply\x20error!':_0x4795fc);}this[_0x5f6746(0x366)](_0x9b2b25),this['_transformStateCache'](_0x9b2b25),this[_0x5f6746(0x309)](_0x33422b),this[_0x5f6746(0x2ba)](_0x9b2b25),this[_0x5f6746(0x248)](_0x9b2b25),this[_0x5f6746(0x1b6)]();}};let K=class extends G{constructor(_0x1c960d,_0x156a08,_0x490e7c,_0x2306d6,_0x229927,_0x559cb4,_0x5b8a88,_0x3a7341,_0x57ec9a,_0x5ad296){const _0x4ebf35=_0x3c69ef;super(_0x1c960d,_0x156a08,null,[],_0x490e7c,_0x5b8a88,_0x559cb4,_0x2306d6,_0x5ad296),this[_0x4ebf35(0x27a)]=_0x229927,this[_0x4ebf35(0x3f4)]=_0x3a7341,this[_0x4ebf35(0x1c6)]=_0x57ec9a,this[_0x4ebf35(0x19d)]=_0x5ad296,R(this,'status',_0x4ebf35(0x2e6));}[_0x3c69ef(0x3fe)](_0x62ae8f){const _0x56f532=_0x3c69ef;let _0x53ec72=this['_injector'][_0x56f532(0x24d)](q,this['unitID'],this[_0x56f532(0x315)],[_0x62ae8f],this[_0x56f532(0x194)]);return _0x53ec72[_0x56f532(0x3dd)](),_0x53ec72['_updateLocalCache'](),_0x53ec72;}[_0x3c69ef(0x323)](_0x5605c4){const _0x25ad49=_0x3c69ef;if(this['_checkMissing'](_0x5605c4))return this['_injector'][_0x25ad49(0x24d)](Q,this['unitID'],this['type'],null,[],null,[_0x5605c4],this[_0x25ad49(0x194)]);try{let _0x9bcd62=this['_transformService'][_0x25ad49(0x2f6)](_0x5605c4,[_0x59ed8b]);if(_0x30d694(_0x9bcd62)){let {c1Prime:_0x2da469}=_0x9bcd62;return this[_0x25ad49(0x3ac)](_0x2da469),this;}throw _0x9bcd62[_0x25ad49(0x199)];}catch(_0x12b48e){return this[_0x25ad49(0x3f4)][_0x25ad49(0x199)](_0x12b48e),this[_0x25ad49(0x370)](!0x1);}}[_0x3c69ef(0x370)](_0x6d8dbf){const _0x5422ea=_0x3c69ef;return this[_0x5422ea(0x27a)][_0x5422ea(0x24d)](X,this[_0x5422ea(0x40c)],this[_0x5422ea(0x315)],null,[],this[_0x5422ea(0x194)],_0x6d8dbf);}[_0x3c69ef(0x38c)](_0x1cbb66){const _0x17f626=_0x3c69ef;if(_0x1cbb66[_0x17f626(0x2fe)]<=this[_0x17f626(0x312)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3c69ef(0x28f)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3c69ef(0x2f1)](){const _0xc35551=_0x3c69ef;return this[_0xc35551(0x27a)][_0xc35551(0x24d)](Z,this['unitID'],this['type'],null,[],this[_0xc35551(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}['resend'](){const _0x5d822d=_0x3c69ef;throw Error(_0x5d822d(0x1d7));}[_0x3c69ef(0x2cd)](){const _0x18b82d=_0x3c69ef;let _0x3ad445=this[_0x18b82d(0x403)][_0x18b82d(0x306)](this[_0x18b82d(0x40c)]);return this['_handler'][_0x18b82d(0x23c)]({'from':_0x3ad445,'to':0x0}),this[_0x18b82d(0x27a)][_0x18b82d(0x24d)](Q,this[_0x18b82d(0x40c)],this[_0x18b82d(0x315)],null,[],null,[],this[_0x18b82d(0x194)]);}};K=V([B(0x3,_0xe230cc(_0x2d7797)),B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0x4aa991),B(0x6,_0x4705e0),B(0x7,_0x5c3e7f),B(0x8,_0x3a995f),B(0x9,_0x2b3cfa(U))],K);let q=un=class extends G{constructor(_0x5a72fe,_0x437d6f,_0x53d4d3,_0x18efe2,_0x4a8562,_0x21ddb6,_0x50e7de,_0x103986,_0x5bdbca,_0x181b94,_0x82ff59,_0x509e53,_0x35a88e,_0xc8d988){const _0x5e3998=_0x3c69ef;super(_0x5a72fe,_0x437d6f,null,_0x53d4d3,_0x18efe2,_0x5bdbca,_0x35a88e,_0x21ddb6,_0xc8d988),this[_0x5e3998(0x27a)]=_0x4a8562,this['_memberService']=_0x50e7de,this['_logService']=_0x103986,this['_configService']=_0x181b94,this[_0x5e3998(0x1c6)]=_0x82ff59,this[_0x5e3998(0x1ba)]=_0x509e53,R(this,_0x5e3998(0x275),_0x5e3998(0x3b0)),R(this,_0x5e3998(0x204),null),R(this,_0x5e3998(0x259),null);}['appendMutation'](_0x2850f0){const _0x4ed356=_0x3c69ef;return this['_pendingMutations'][_0x4ed356(0x217)](_0x2850f0),this[_0x4ed356(0x2bc)](),this;}[_0x3c69ef(0x323)](_0x5573ae){const _0x39b076=_0x3c69ef;if(this['_checkMissing'](_0x5573ae))return this[_0x39b076(0x2b6)](),this[_0x39b076(0x27a)]['createInstance'](Q,this[_0x39b076(0x40c)],this[_0x39b076(0x315)],null,this['_pendingMutations'],null,[_0x5573ae],this[_0x39b076(0x194)]);try{let _0xa3f5f3=this[_0x39b076(0x1c6)][_0x39b076(0x2f6)](_0x5573ae,this[_0x39b076(0x1a7)]);if(_0x30d694(_0xa3f5f3)){let {c1Prime:_0x4f120b,m2Prime:_0x26aa0c}=_0xa3f5f3;this['_executeRemoteChangeset'](_0x4f120b);let _0xfc3599=this[_0x39b076(0x27a)]['createInstance'](un,this[_0x39b076(0x40c)],this[_0x39b076(0x315)],_0x26aa0c,this['_handler']);this[_0x39b076(0x2b6)]();let _0x306b7b=new Date()[_0x39b076(0x2a3)](),_0x3eb39b=this[_0x39b076(0x204)]?Math[_0x39b076(0x19c)](this[_0x39b076(0x204)]-_0x306b7b,0x0):this[_0x39b076(0x200)]();return _0xfc3599[_0x39b076(0x3dd)](_0x3eb39b),_0xfc3599;}throw _0xa3f5f3['error'];}catch(_0x3f1a46){return this[_0x39b076(0x3f4)]['error'](_0x3f1a46),this[_0x39b076(0x370)](!0x1);}}[_0x3c69ef(0x38c)](_0x4c8732){const _0x54fa84=_0x3c69ef;if(_0x4c8732['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x54fa84(0x1bb));}[_0x3c69ef(0x28f)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3c69ef(0x2f1)](){const _0x5265f1=_0x3c69ef;return this[_0x5265f1(0x2b6)](),this[_0x5265f1(0x27a)][_0x5265f1(0x24d)](Z,this[_0x5265f1(0x40c)],this[_0x5265f1(0x315)],null,this[_0x5265f1(0x1a7)],this['_handler']);}['toggleOnline'](){return this;}[_0x3c69ef(0x3dd)](_0xb4e244){const _0x5100d4=_0x3c69ef;let _0x4d22a6=_0xb4e244==null?this['_getSendChangesetTimeout']():_0xb4e244;this[_0x5100d4(0x204)]=new Date()[_0x5100d4(0x2a3)]()+_0x4d22a6,this[_0x5100d4(0x259)]=setTimeout(()=>{const _0x4d7caa=_0x5100d4;this[_0x4d7caa(0x2b6)]();let _0x3696fd=null;switch(this[_0x4d7caa(0x315)]){case _0x9a8e4e[_0x4d7caa(0x1a4)]:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x1ba)],this['_revisionService'],this['_memberService']);break;case _0x9a8e4e[_0x4d7caa(0x274)]:_0x3696fd=this[_0x4d7caa(0x1a7)][_0x4d7caa(0x3fa)](_0x449f23=>_0x449f23['id']===_0x386ca6['id'])?$t(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x4d7caa(0x403)],this[_0x4d7caa(0x356)]):Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this['_univerInstanceService'],this['_revisionService'],this[_0x4d7caa(0x356)]);break;case _0x9a8e4e[_0x4d7caa(0x3c8)]:_0x3696fd=Qt(this[_0x4d7caa(0x1a7)],this['unitID'],this[_0x4d7caa(0x1ba)],this[_0x4d7caa(0x403)],this['_memberService']);break;case _0x9a8e4e[_0x4d7caa(0x360)]:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x1ba)],this['_revisionService'],this[_0x4d7caa(0x356)]);break;case _0x9a8e4e['UNIVER_BASE']:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this['unitID'],this[_0x4d7caa(0x1ba)],this['_revisionService'],this[_0x4d7caa(0x356)]);break;default:throw Error(_0x4d7caa(0x3db)+this[_0x4d7caa(0x315)]+'\x20in\x20_schedule.');}let {changeset:_0x3bf8c6,pendingMutations:_0x14a60c}=_0x3696fd;this[_0x4d7caa(0x194)][_0x4d7caa(0x3e8)](_0x3bf8c6);let _0x1986f9=_0x14a60c[_0x4d7caa(0x3a1)]?this['_injector'][_0x4d7caa(0x24d)](Y,this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x315)],_0x3bf8c6,_0x14a60c,this[_0x4d7caa(0x194)],void 0x0):this['_injector']['createInstance'](J,this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x315)],_0x3bf8c6,this[_0x4d7caa(0x194)]);_0x1986f9[_0x4d7caa(0x2bc)](),this[_0x4d7caa(0x194)][_0x4d7caa(0x190)](this,_0x1986f9);},_0x4d22a6);}[_0x3c69ef(0x200)](){const _0x174d81=_0x3c69ef;var _0x21bea1;let _0xc4bb73=this[_0x174d81(0x305)]['getConfig'](L);return(_0x21bea1=_0xc4bb73==null?void 0x0:_0xc4bb73[_0x174d81(0x281)])==null?0x7d0:_0x21bea1;}[_0x3c69ef(0x23b)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3c69ef(0x2b6)](){const _0x215589=_0x3c69ef;this[_0x215589(0x259)]!=null&&(clearTimeout(this[_0x215589(0x259)]),this['_sendingTimer']=null);}[_0x3c69ef(0x370)](_0x3a1030){const _0x20eb17=_0x3c69ef;return this[_0x20eb17(0x2b6)](),this[_0x20eb17(0x27a)][_0x20eb17(0x24d)](X,this[_0x20eb17(0x40c)],this['type'],null,this[_0x20eb17(0x1a7)],this[_0x20eb17(0x194)],_0x3a1030);}};q=un=V([B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0xe230cc(_0x2d7797)),B(0x6,_0xe230cc(H)),B(0x7,_0x5c3e7f),B(0x8,_0x4705e0),B(0x9,_0x1f37e4),B(0xa,_0x3a995f),B(0xb,_0x344fe1),B(0xc,_0x4aa991),B(0xd,_0x2b3cfa(U))],q);let J=dn=class extends G{constructor(_0x2217ed,_0x1620da,_0x445cff,_0x5e8461,_0x11f79e,_0x3ed9af,_0x465b50,_0x239610,_0x3498db,_0xd1a09c,_0x8922a2){const _0x1a62ef=_0x3c69ef;super(_0x2217ed,_0x1620da,_0x445cff,[],_0x5e8461,_0x465b50,_0xd1a09c,_0x3ed9af,_0x8922a2),this['_injector']=_0x11f79e,this[_0x1a62ef(0x3f4)]=_0x239610,this[_0x1a62ef(0x1c6)]=_0x3498db,R(this,'status','awaiting'),R(this,_0x1a62ef(0x1d6),0x0),R(this,_0x1a62ef(0x322),0x0),R(this,_0x1a62ef(0x318),void 0x0),R(this,_0x1a62ef(0x26f),void 0x0);}[_0x3c69ef(0x3fe)](_0x528f7f){const _0x390399=_0x3c69ef;this[_0x390399(0x2b6)]();let _0x1fcd6b=this[_0x390399(0x27a)]['createInstance'](Y,this[_0x390399(0x40c)],this[_0x390399(0x315)],this[_0x390399(0x2bd)],[_0x528f7f],this['_handler'],this[_0x390399(0x318)]);return _0x1fcd6b[_0x390399(0x2bc)](),_0x1fcd6b;}[_0x3c69ef(0x323)](_0x1a63c7){const _0x1558b6=_0x3c69ef;if(this[_0x1558b6(0x32f)](_0x1a63c7))return this['_clearScheduledTask'](),this[_0x1558b6(0x27a)][_0x1558b6(0x24d)](Q,this['unitID'],this[_0x1558b6(0x315)],this[_0x1558b6(0x2bd)],[],null,[_0x1a63c7],this[_0x1558b6(0x194)]);try{let _0x3134b3=this[_0x1558b6(0x1c6)]['transformChangesets']([_0x1a63c7],[this['_awaitingChangeset']],!0x1);if(_0x23d0df(_0x3134b3)){let {c1Prime:_0x500aee,c2Prime:_0x1436da}=_0x3134b3;this[_0x1558b6(0x3ac)](_0x500aee[0x0]),_0x1436da[0x0][_0x1558b6(0x3f1)]=this[_0x1558b6(0x312)](),this[_0x1558b6(0x2b6)]();let _0x715615=this['_injector'][_0x1558b6(0x24d)](dn,this['unitID'],this[_0x1558b6(0x315)],_0x1436da[0x0],this['_handler']);return _0x715615[_0x1558b6(0x2bc)](),_0x715615;}throw _0x3134b3[_0x1558b6(0x199)];}catch(_0x242c3a){return this[_0x1558b6(0x3f4)][_0x1558b6(0x199)](_0x242c3a),this[_0x1558b6(0x370)](!0x1);}}[_0x3c69ef(0x38c)](_0x2f5501){const _0x34e89a=_0x3c69ef;this['_clearScheduledTask']();let _0x4f44c7=this['_revisionService'][_0x34e89a(0x306)](this[_0x34e89a(0x40c)]);if(_0x2f5501[_0x34e89a(0x2fe)]<=_0x4f44c7)return this;if(this[_0x34e89a(0x32f)](_0x2f5501))return this[_0x34e89a(0x27a)][_0x34e89a(0x24d)](Q,this[_0x34e89a(0x40c)],this[_0x34e89a(0x315)],this[_0x34e89a(0x2bd)],[],_0x2f5501['revision'],[],this[_0x34e89a(0x194)]);this[_0x34e89a(0x1b6)]();let _0x527498=this[_0x34e89a(0x27a)][_0x34e89a(0x24d)](K,this[_0x34e89a(0x40c)],this[_0x34e89a(0x315)],this[_0x34e89a(0x194)]);return _0x527498[_0x34e89a(0x2bc)](),_0x527498;}[_0x3c69ef(0x28f)](_0x46564b){const _0x2dd4dc=_0x3c69ef;return this[_0x2dd4dc(0x370)](!!(_0x46564b!=null&&_0x46564b['isPermissionRej']));}[_0x3c69ef(0x20a)](_0x22711a){const _0xc8d169=_0x3c69ef;return this[_0xc8d169(0x322)]>hn?this['toggleOffline']():(this['_resendTimer']=ln(this[_0xc8d169(0x1d6)],{'timeout':this['_resendTimeout'],'reqId':_0x22711a['reqId']}),this[_0xc8d169(0x26f)]=this[_0xc8d169(0x318)][_0xc8d169(0x420)](({reqId:_0x46823a,timeout:_0xd77f47})=>{const _0x3cdbd6=_0xc8d169;this[_0x3cdbd6(0x417)](_0x46823a,_0xd77f47);}),this);}[_0x3c69ef(0x2f1)](){const _0x3a7542=_0x3c69ef;return this[_0x3a7542(0x2b6)](),this[_0x3a7542(0x27a)][_0x3a7542(0x24d)](Z,this[_0x3a7542(0x40c)],this['type'],this[_0x3a7542(0x2bd)],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x40da21=_0x3c69ef;this[_0x40da21(0x194)][_0x40da21(0x3e8)](this[_0x40da21(0x2bd)]);}[_0x3c69ef(0x370)](_0x35f37f){const _0x2d2214=_0x3c69ef;return this[_0x2d2214(0x2b6)](),this[_0x2d2214(0x27a)][_0x2d2214(0x24d)](X,this[_0x2d2214(0x40c)],this[_0x2d2214(0x315)],this['_awaitingChangeset'],[],this['_handler'],_0x35f37f);}[_0x3c69ef(0x417)](_0x8d14e1,_0x113043){const _0x33aa81=_0x3c69ef;var _0x2d1966;_0x8d14e1===((_0x2d1966=this[_0x33aa81(0x2bd)])==null?void 0x0:_0x2d1966['reqId'])&&(this[_0x33aa81(0x23b)](),this[_0x33aa81(0x1d6)]=_0x113043===0x0?0x3e8:Math[_0x33aa81(0x304)](_0x113043*0x2,mn),this[_0x33aa81(0x322)]+=this[_0x33aa81(0x1d6)]);}[_0x3c69ef(0x2b6)](){const _0x1ec1d0=_0x3c69ef;var _0x38c21c;(_0x38c21c=this[_0x1ec1d0(0x26f)])==null||_0x38c21c[_0x1ec1d0(0x3c3)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=dn=V([B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0xe230cc(_0x2d7797)),B(0x6,_0x4705e0),B(0x7,_0x5c3e7f),B(0x8,_0x3a995f),B(0x9,_0x4aa991),B(0xa,_0x2b3cfa(U))],J);let Y=fn=class extends G{constructor(_0x545bd6,_0x22c82c,_0x2b46ec,_0x172dfe,_0x2e8d62,_0x2b5225,_0xaf74c,_0x4edf9f,_0x200e6c,_0x386f23,_0x5f466e,_0x5ead60,_0x3a7c70){const _0x568eb4=_0x3c69ef;super(_0x545bd6,_0x22c82c,_0x2b46ec,_0x172dfe,_0x2e8d62,_0x200e6c,_0x5ead60,_0x4edf9f,_0x3a7c70),this['_injector']=_0xaf74c,this['_logService']=_0x386f23,this[_0x568eb4(0x1c6)]=_0x5f466e,this[_0x568eb4(0x19d)]=_0x3a7c70,R(this,_0x568eb4(0x275),_0x568eb4(0x22b)),R(this,_0x568eb4(0x1d6),0x0),R(this,_0x568eb4(0x322),0x0),R(this,_0x568eb4(0x318),void 0x0),R(this,_0x568eb4(0x26f),void 0x0),_0x2b5225&&(this['_resendTimer']=_0x2b5225,this[_0x568eb4(0x26f)]=this[_0x568eb4(0x318)][_0x568eb4(0x420)](({reqId:_0x2d1467,timeout:_0x597fd9})=>{const _0x26a66b=_0x568eb4;this[_0x26a66b(0x417)](_0x2d1467,_0x597fd9);}));}[_0x3c69ef(0x3fe)](_0x45f4de){const _0x2edacf=_0x3c69ef;return this['_pendingMutations'][_0x2edacf(0x217)](_0x45f4de),this;}[_0x3c69ef(0x323)](_0x361f3b){const _0x54f8e4=_0x3c69ef;if(this[_0x54f8e4(0x32f)](_0x361f3b))return this[_0x54f8e4(0x2b6)](),this[_0x54f8e4(0x27a)][_0x54f8e4(0x24d)](Q,this[_0x54f8e4(0x40c)],this['type'],this['_awaitingChangeset'],this[_0x54f8e4(0x1a7)],null,[_0x361f3b],this['_handler']);try{let _0x494d27=this[_0x54f8e4(0x1c6)]['transformChangesets']([_0x361f3b],[this[_0x54f8e4(0x2bd)]],!0x1);if(_0x23d0df(_0x494d27)){let {c1Prime:_0x5e6f90,c2Prime:_0xe3b286}=_0x494d27,_0x334ffa=this['_transformService'][_0x54f8e4(0x2f6)](_0x5e6f90[0x0],this['_pendingMutations']);if(_0x30d694(_0x334ffa)){let {c1Prime:_0x491569,m2Prime:_0x2e21bc}=_0x334ffa;return this['_executeRemoteChangeset'](_0x491569),_0xe3b286[0x0][_0x54f8e4(0x3f1)]=this[_0x54f8e4(0x312)](),this[_0x54f8e4(0x2b6)](),this['_injector']['createInstance'](fn,this[_0x54f8e4(0x40c)],this[_0x54f8e4(0x315)],_0xe3b286[0x0],_0x2e21bc,this[_0x54f8e4(0x194)],void 0x0);}throw _0x334ffa['error'];}throw _0x494d27[_0x54f8e4(0x199)];}catch(_0x14f25c){return this['_logService'][_0x54f8e4(0x199)](_0x14f25c),this[_0x54f8e4(0x370)](!0x1);}}['onRemoteAck'](_0x301298){const _0x24412a=_0x3c69ef;this[_0x24412a(0x2b6)]();let _0x3ff55d=this[_0x24412a(0x312)]();if(_0x301298[_0x24412a(0x2fe)]<=_0x3ff55d)return this;if(this['_checkMissing'](_0x301298))return this[_0x24412a(0x27a)][_0x24412a(0x24d)](Q,this['unitID'],this[_0x24412a(0x315)],this[_0x24412a(0x2bd)],this[_0x24412a(0x1a7)],_0x301298['revision'],[],this[_0x24412a(0x194)]);this[_0x24412a(0x1b6)]();let _0x16c874=this['_injector'][_0x24412a(0x24d)](q,this[_0x24412a(0x40c)],this['type'],this[_0x24412a(0x1a7)],this[_0x24412a(0x194)]);return _0x16c874['_schedule'](),_0x16c874['_updateLocalCache'](),_0x16c874;}[_0x3c69ef(0x28f)](_0x73e28b){const _0x4c7764=_0x3c69ef;return this[_0x4c7764(0x370)](!!(_0x73e28b!=null&&_0x73e28b[_0x4c7764(0x18e)]));}[_0x3c69ef(0x20a)](_0x20b295){const _0x14b613=_0x3c69ef;return this[_0x14b613(0x322)]>hn?this[_0x14b613(0x2f1)]():(this['_resendTimer']=ln(this[_0x14b613(0x1d6)],{'timeout':this[_0x14b613(0x1d6)],'reqId':_0x20b295[_0x14b613(0x256)]}),this[_0x14b613(0x26f)]=this['_resendTimer'][_0x14b613(0x420)](({reqId:_0x5d8979,timeout:_0x881d36})=>{const _0xf9c88a=_0x14b613;this[_0xf9c88a(0x417)](_0x5d8979,_0x881d36);}),this);}[_0x3c69ef(0x2f1)](){const _0x37fa7b=_0x3c69ef;return this[_0x37fa7b(0x2b6)](),this[_0x37fa7b(0x27a)][_0x37fa7b(0x24d)](Z,this[_0x37fa7b(0x40c)],this[_0x37fa7b(0x315)],this[_0x37fa7b(0x2bd)],this[_0x37fa7b(0x1a7)],this[_0x37fa7b(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}[_0x3c69ef(0x23b)](){const _0x45f782=_0x3c69ef;this[_0x45f782(0x194)][_0x45f782(0x3e8)](this['_awaitingChangeset']);}[_0x3c69ef(0x370)](_0x28b618){const _0x5c65b2=_0x3c69ef;return this[_0x5c65b2(0x2b6)](),this[_0x5c65b2(0x27a)][_0x5c65b2(0x24d)](X,this['unitID'],this['type'],null,this[_0x5c65b2(0x1a7)],this[_0x5c65b2(0x194)],_0x28b618);}[_0x3c69ef(0x417)](_0x37bffc,_0x468a23){const _0x32824e=_0x3c69ef;var _0xd948d6;_0x37bffc===((_0xd948d6=this[_0x32824e(0x2bd)])==null?void 0x0:_0xd948d6[_0x32824e(0x256)])&&(this[_0x32824e(0x23b)](),this[_0x32824e(0x1d6)]=_0x468a23===0x0?0x3e8:Math['min'](_0x468a23*0x2,mn),this[_0x32824e(0x322)]+=this[_0x32824e(0x1d6)]);}[_0x3c69ef(0x2b6)](){const _0x5a3e31=_0x3c69ef;var _0x26f761;(_0x26f761=this['_sender'])==null||_0x26f761[_0x5a3e31(0x3c3)](),this[_0x5a3e31(0x1d6)]=0x0,this[_0x5a3e31(0x322)]=0x0;}};Y=fn=V([B(0x6,_0xe230cc(_0x31a56e)),B(0x7,_0xe230cc(_0x2d7797)),B(0x8,_0x4705e0),B(0x9,_0x5c3e7f),B(0xa,_0x3a995f),B(0xb,_0x4aa991),B(0xc,_0x2b3cfa(U))],Y);let X=class extends G{constructor(_0x935a49,_0x5b7a7b,_0x1ae170,_0x577270,_0x4d5629,_0x23d190=!0x1,_0x114832,_0x5077ef,_0x4d28a7,_0x2d17a4,_0x70ff4e,_0x19648f,_0x1d63c2){const _0x244bcb=_0x3c69ef;super(_0x935a49,_0x5b7a7b,_0x1ae170,_0x577270,_0x4d5629,_0x5077ef,_0x4d28a7,_0x2d17a4,_0x1d63c2),this[_0x244bcb(0x28c)]=_0x23d190,this['_permissionService']=_0x114832,this[_0x244bcb(0x2c0)]=_0x70ff4e,this[_0x244bcb(0x290)]=_0x19648f,this[_0x244bcb(0x19d)]=_0x1d63c2,R(this,_0x244bcb(0x275),_0x244bcb(0x338)),this['_showConflictNotification'](),this[_0x244bcb(0x2d1)](),this[_0x244bcb(0x21a)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x3c69ef(0x28f)](){return this;}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){return this;}['toggleOnline'](){return this;}[_0x3c69ef(0x23b)](){const _0x47fe29=_0x3c69ef;throw Error(_0x47fe29(0x18c));}[_0x3c69ef(0x2d1)](){const _0x246258=_0x3c69ef;var _0x3180cf,_0x4a013d,_0x8e6e50;(_0x3180cf=this[_0x246258(0x1f4)])==null||(_0x4a013d=_0x3180cf[_0x246258(0x1fe)])==null||(_0x4a013d=_0x4a013d[_0x246258(0x1db)](_0x3180cf,this[_0x246258(0x40c)],'conflict'))==null||_0x4a013d[_0x246258(0x299)](()=>void 0x0),(_0x8e6e50=this[_0x246258(0x1f4)])==null||_0x8e6e50['updateOfflineData'](this[_0x246258(0x40c)],this['type'],null,[]);}[_0x3c69ef(0x2b2)](){const _0x4b2ba4=_0x3c69ef;this[_0x4b2ba4(0x28c)]?this[_0x4b2ba4(0x290)][_0x4b2ba4(0x377)]({'id':_0x4b2ba4(0x300)}):this['_collaborationUIEventService'][_0x4b2ba4(0x377)]({'id':_0x4b2ba4(0x1f0)});}[_0x3c69ef(0x21a)](){const _0x571d59=_0x3c69ef;this[_0x571d59(0x313)][_0x571d59(0x32b)](new _0x1413a3(this['unitID'])['id'],!0x1);}};X=V([B(0x6,_0xe230cc(_0x36da45)),B(0x7,_0x4705e0),B(0x8,_0x4aa991),B(0x9,_0xe230cc(_0x2d7797)),B(0xa,_0xe230cc(_0x9a407d)),B(0xb,_0xe230cc(z)),B(0xc,_0x2b3cfa(U))],X);let Z=class extends G{constructor(_0x1bc167,_0x340eee,_0x49de8c,_0x4957bd,_0x118cd9,_0xa3890b,_0x234bca,_0x2e4f8d,_0x2ce56d,_0x235b41){const _0xf9a1a2=_0x3c69ef;super(_0x1bc167,_0x340eee,_0x49de8c,_0x4957bd,_0x118cd9,_0x2e4f8d,_0x2ce56d,_0x234bca,_0x235b41),this[_0xf9a1a2(0x27a)]=_0xa3890b,R(this,_0xf9a1a2(0x275),_0xf9a1a2(0x255));}[_0x3c69ef(0x3fe)](_0x2c4e64){const _0x32859c=_0x3c69ef;return this[_0x32859c(0x1a7)][_0x32859c(0x217)](_0x2c4e64),this['_updateLocalCache'](),this;}[_0x3c69ef(0x323)](_0x2c32fb){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x3c69ef(0x38c)](){const _0x233166=_0x3c69ef;throw Error(_0x233166(0x1dc));}[_0x3c69ef(0x28f)](){const _0x15edf2=_0x3c69ef;throw Error(_0x15edf2(0x3fb));}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){return this;}[_0x3c69ef(0x2b9)](){const _0x4c7a93=_0x3c69ef;let {_injector:_0x3ce6d2,_pendingMutations:_0x2dd51c,_awaitingChangeset:_0x425547,unitID:_0x2d8832,_handler:_0x3bb6e1,type:_0x1d4996}=this,_0x223862=gn(_0x3ce6d2,_0x2d8832,_0x1d4996,_0x425547,_0x2dd51c,_0x3bb6e1);return _0x223862 instanceof q?_0x223862['_schedule']():(_0x223862 instanceof Y||_0x223862 instanceof J)&&_0x223862[_0x4c7a93(0x23b)](),_0x223862;}[_0x3c69ef(0x23b)](){const _0x31f545=_0x3c69ef;throw Error(_0x31f545(0x1cd));}};Z=V([B(0x5,_0xe230cc(_0x31a56e)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0x4705e0),B(0x8,_0x4aa991),B(0x9,_0x2b3cfa(U))],Z);let Q=class extends G{constructor(_0xa4ce7,_0x57443d,_0x48415c,_0x5c66db,_0x42b46c,_0x49d572,_0x3bd616,_0x4e346a,_0x4973c2,_0xa7caba,_0x1f5a99,_0x35a90e,_0x4c2d8f,_0x4abb00){const _0x597de6=_0x3c69ef;super(_0xa4ce7,_0x57443d,_0x48415c,_0x5c66db,_0x3bd616,_0x1f5a99,_0x35a90e,_0x4973c2,_0x4abb00),this[_0x597de6(0x2d2)]=_0x42b46c,this['_queuedRemoteChangesets']=_0x49d572,this['_injector']=_0x4e346a,this[_0x597de6(0x3f4)]=_0xa7caba,this[_0x597de6(0x1c6)]=_0x4c2d8f,this[_0x597de6(0x19d)]=_0x4abb00,R(this,_0x597de6(0x275),_0x597de6(0x302));}[_0x3c69ef(0x33e)](_0x32bd77){const _0x2ace9e=_0x3c69ef;try{if(this[_0x2ace9e(0x216)](_0x32bd77)[_0x2ace9e(0x219)])throw Error(_0x2ace9e(0x20d));if(this[_0x2ace9e(0x216)]([...this[_0x2ace9e(0x25c)]]['sort']((_0x19bad8,_0x1e44fb)=>_0x19bad8['revision']-_0x1e44fb[_0x2ace9e(0x2fe)]))[_0x2ace9e(0x219)])return this[_0x2ace9e(0x25c)]=[],this[_0x2ace9e(0x2bc)](),this['_handler'][_0x2ace9e(0x23c)]({'from':this[_0x2ace9e(0x312)](),'to':0x0}),this;let _0x44fd45=this[_0x2ace9e(0x2bd)],_0x3e7454=this['_pendingMutations'],_0x3f7833;if(_0x44fd45&&_0x3e7454[_0x2ace9e(0x3a1)]!==0x0)_0x3f7833=this['_injector'][_0x2ace9e(0x24d)](Y,this['unitID'],this[_0x2ace9e(0x315)],_0x44fd45,_0x3e7454,this[_0x2ace9e(0x194)],void 0x0);else{if(_0x44fd45&&_0x3e7454[_0x2ace9e(0x3a1)]===0x0)_0x44fd45[_0x2ace9e(0x3f1)]=this[_0x2ace9e(0x312)](),_0x3f7833=this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](J,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],_0x44fd45,this['_handler']);else{if(_0x3e7454[_0x2ace9e(0x3a1)]!==0x0){let _0x1d66cd=this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](q,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],_0x3e7454,this[_0x2ace9e(0x194)]);_0x1d66cd[_0x2ace9e(0x3dd)](),_0x3f7833=_0x1d66cd;}else _0x3f7833=this['_injector'][_0x2ace9e(0x24d)](K,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],this[_0x2ace9e(0x194)]);}}return _0x3f7833[_0x2ace9e(0x2bc)](),_0x3f7833;}catch(_0x33877a){return this['_logService'][_0x2ace9e(0x199)](_0x2ace9e(0x20e),_0x2ace9e(0x30c),_0x33877a),this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](X,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],this[_0x2ace9e(0x2bd)],this[_0x2ace9e(0x1a7)],this[_0x2ace9e(0x194)],!0x1);}}[_0x3c69ef(0x216)](_0x510a16){const _0x356cac=_0x3c69ef;this[_0x356cac(0x2a4)]();for(let _0x40a128=0x0;_0x40a128<_0x510a16[_0x356cac(0x3a1)];_0x40a128++){let _0x135973=_0x510a16[_0x40a128],_0x1efeed=this['_getCurrentRevision']();if(!(_0x135973['revision']<=_0x1efeed)){if(_0x135973['revision']>_0x1efeed+0x1)return{'missingChangesets':!0x0};if(this[_0x356cac(0x2db)](_0x135973)){this['_acknowledgeAwaiting']();continue;}this[_0x356cac(0x298)](_0x135973),this[_0x356cac(0x2a4)]();}}return{'missingChangesets':!0x1};}[_0x3c69ef(0x298)](_0x19404c){const _0x257c91=_0x3c69ef;let _0x183101=_0x19404c,_0x247419=this[_0x257c91(0x2bd)];if(_0x247419){let _0x5d6650=this[_0x257c91(0x1c6)][_0x257c91(0x1f8)]([_0x19404c],[_0x247419],!0x1);if(!_0x23d0df(_0x5d6650))throw _0x5d6650[_0x257c91(0x199)];_0x183101=_0x5d6650[_0x257c91(0x29c)][0x0],_0x247419=_0x5d6650[_0x257c91(0x2e3)][0x0];}let _0x54e9bc=this[_0x257c91(0x1a7)];if(_0x54e9bc[_0x257c91(0x3a1)]){let _0x65506d=this[_0x257c91(0x1c6)][_0x257c91(0x2f6)](_0x183101,_0x54e9bc);if(!_0x30d694(_0x65506d))throw _0x65506d['error'];_0x183101=_0x65506d[_0x257c91(0x29c)],_0x54e9bc=_0x65506d[_0x257c91(0x3a6)];}this['_executeRemoteChangeset'](_0x183101),_0x247419&&(_0x247419['baseRev']=this[_0x257c91(0x312)]()),this[_0x257c91(0x2bd)]=_0x247419,this[_0x257c91(0x1a7)]=_0x54e9bc;}[_0x3c69ef(0x2a4)](){const _0xaca3f4=_0x3c69ef;if(!this['_awaitingChangeset']||this[_0xaca3f4(0x2d2)]==null)return;let _0x201e20=this[_0xaca3f4(0x312)]();if(this[_0xaca3f4(0x2d2)]<=_0x201e20)throw Error(_0xaca3f4(0x286)+this['_acknowledgedAwaitingRevision']+'.');this[_0xaca3f4(0x2d2)]===_0x201e20+0x1&&this[_0xaca3f4(0x31d)]();}[_0x3c69ef(0x31d)](){const _0x1cd40f=_0x3c69ef;this[_0x1cd40f(0x1b6)](),this[_0x1cd40f(0x2bd)]=null,this[_0x1cd40f(0x2d2)]=null;}['_isEchoedAwaitingChangeset'](_0x2eacbd){const _0x25d81d=_0x3c69ef;let _0x250261=this[_0x25d81d(0x2bd)];return!_0x250261||!_0x250261['sid']||_0x250261[_0x25d81d(0x256)]===null||_0x250261[_0x25d81d(0x256)]===void 0x0?!0x1:_0x2eacbd[_0x25d81d(0x40c)]===_0x250261[_0x25d81d(0x40c)]&&_0x2eacbd[_0x25d81d(0x41d)]===_0x250261[_0x25d81d(0x41d)]&&_0x2eacbd[_0x25d81d(0x256)]===_0x250261[_0x25d81d(0x256)];}[_0x3c69ef(0x23b)](){const _0x40027=_0x3c69ef;throw Error(_0x40027(0x30b));}['appendMutation'](_0x408edb){const _0x1fc867=_0x3c69ef;return this[_0x1fc867(0x1a7)]['push'](_0x408edb),this;}['onRemoteChangeset'](_0x38791b){const _0x31fa66=_0x3c69ef;return this[_0x31fa66(0x25c)][_0x31fa66(0x217)](_0x38791b),this;}[_0x3c69ef(0x38c)](_0x57635c){const _0x128711=_0x3c69ef;if(this['_awaitingChangeset']){let _0x35d51f=this[_0x128711(0x312)]();return _0x57635c[_0x128711(0x2fe)]<=_0x35d51f||(_0x35d51f+0x1===_0x57635c[_0x128711(0x2fe)]?(this[_0x128711(0x1b6)](),this[_0x128711(0x2bd)]=null,this[_0x128711(0x2d2)]=null):this[_0x128711(0x2d2)]=_0x57635c['revision']),this;}if(_0x57635c['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x128711(0x2eb));}[_0x3c69ef(0x28f)](_0x560c8c){const _0xbd1e0a=_0x3c69ef;return this[_0xbd1e0a(0x370)](!!(_0x560c8c!=null&&_0x560c8c[_0xbd1e0a(0x18e)]));}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){const _0x5c690a=_0x3c69ef;return this['_injector']['createInstance'](Z,this[_0x5c690a(0x40c)],this[_0x5c690a(0x315)],this['_awaitingChangeset'],this[_0x5c690a(0x1a7)],this[_0x5c690a(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}[_0x3c69ef(0x370)](_0x188fcb){const _0x162dc4=_0x3c69ef;return this[_0x162dc4(0x27a)]['createInstance'](X,this['unitID'],this[_0x162dc4(0x315)],this[_0x162dc4(0x2bd)],this['_pendingMutations'],this['_handler'],_0x188fcb);}};Q=V([B(0x7,_0xe230cc(_0x31a56e)),B(0x8,_0xe230cc(_0x2d7797)),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x4aa991),B(0xc,_0x3a995f),B(0xd,_0x2b3cfa(U))],Q);function gn(_0x38ff98,_0x206b20,_0x15d397,_0x1188bc,_0x11a980,_0xb9be65){const _0x11a9a7=_0x3c69ef;return _0x1188bc&&_0x11a980[_0x11a9a7(0x3a1)]?_0x38ff98[_0x11a9a7(0x24d)](Y,_0x206b20,_0x15d397,_0x1188bc,_0x11a980,_0xb9be65,void 0x0):_0x1188bc?_0x38ff98[_0x11a9a7(0x24d)](J,_0x206b20,_0x15d397,_0x1188bc,_0xb9be65):_0x11a980[_0x11a9a7(0x3a1)]?_0x38ff98[_0x11a9a7(0x24d)](q,_0x206b20,_0x15d397,_0x11a980,_0xb9be65):_0x38ff98['createInstance'](K,_0x206b20,_0x15d397,_0xb9be65);}let $=class extends _0x50b38b{get[_0x3c69ef(0x378)](){const _0x4a11eb=_0x3c69ef;return this[_0x4a11eb(0x222)];}constructor(_0x1a9adb,_0x443d4f,_0x18c436,_0x338b41,_0x444e76,_0x2119ec,_0x56b4be,_0x187d5f,_0x42bc3c,_0x219e50,_0x5efb9d,_0x291d58,_0x367277,_0x1f1c26){const _0x438272=_0x3c69ef;super(),this[_0x438272(0x40c)]=_0x1a9adb,this[_0x438272(0x1c3)]=_0x443d4f,this[_0x438272(0x3ed)]=_0x18c436,this[_0x438272(0x27a)]=_0x338b41,this['_compressMutationService']=_0x444e76,this[_0x438272(0x2c0)]=_0x2119ec,this[_0x438272(0x403)]=_0x56b4be,this[_0x438272(0x3ef)]=_0x187d5f,this[_0x438272(0x1ba)]=_0x42bc3c,this[_0x438272(0x3f4)]=_0x219e50,this[_0x438272(0x1ac)]=_0x5efb9d,this[_0x438272(0x313)]=_0x291d58,this[_0x438272(0x2d5)]=_0x367277,this[_0x438272(0x1f4)]=_0x1f1c26,R(this,_0x438272(0x232),new _0x296086(null)),R(this,_0x438272(0x2ec),this['_state$'][_0x438272(0x1cc)]()),R(this,_0x438272(0x222),void 0x0),R(this,'_collaborationPaused',!0x1),R(this,'_changesetSessionId',''),R(this,_0x438272(0x373),0x0),R(this,'status$',this[_0x438272(0x2ec)][_0x438272(0x380)](_0x37ecf3(_0x2aec4e=>_0x2aec4e?_0x2aec4e[_0x438272(0x275)]:_0x438272(0x255)),_0x1c2ab6({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x438272(0x2c4),!0x1),R(this,_0x438272(0x1ed),[]);}async[_0x3c69ef(0x2ea)](){const _0x14929e=_0x3c69ef;if(this[_0x14929e(0x378)])throw Error(_0x14929e(0x3e5));await this[_0x14929e(0x293)]();}[_0x3c69ef(0x2ca)](){const _0x143c4b=_0x3c69ef;return this[_0x143c4b(0x2cc)]=!0x0,_0x4a5ee8(()=>{const _0x5eccf7=_0x143c4b;this[_0x5eccf7(0x2cc)]=!0x1,this[_0x5eccf7(0x3f7)]();});}[_0x3c69ef(0x1d8)](_0x122a3f){this['_onLocalMutation'](_0x122a3f);}[_0x3c69ef(0x285)](_0x1052cf){const _0xc2d14c=_0x3c69ef;this[_0xc2d14c(0x222)]=_0x1052cf,this[_0xc2d14c(0x232)]['next'](_0x1052cf);}async[_0x3c69ef(0x293)](){const _0x2e1274=_0x3c69ef;if(this[_0x2e1274(0x285)](await this[_0x2e1274(0x280)]()),this[_0x2e1274(0x2d5)]){var _0x25a336;(_0x25a336=this[_0x2e1274(0x2d5)])==null||_0x25a336[_0x2e1274(0x415)](this[_0x2e1274(0x40c)]),this[_0x2e1274(0x3b8)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x2e1274(0x40c)])[_0x2e1274(0x420)](_0x4f70bd=>{const _0x4b1639=_0x2e1274;this[_0x4b1639(0x3f4)]['debug']('[CollaborationEntity]',_0x4b1639(0x33b),_0x4f70bd),_0x4f70bd===0x1?(this[_0x4b1639(0x3ef)][_0x4b1639(0x377)]({'id':_0x4b1639(0x231)}),this[_0x4b1639(0x313)][_0x4b1639(0x32b)](new _0x1413a3(this[_0x4b1639(0x40c)])['id'],!0x1),this['_permissionService'][_0x4b1639(0x25b)](!0x1)):(this[_0x4b1639(0x313)]['updatePermissionPoint'](new _0x1413a3(this[_0x4b1639(0x40c)])['id'],!0x0),this[_0x4b1639(0x313)]['setShowComponents'](!0x0));}));}let _0xf66a36=!0x1;return this['disposeWithMe'](this[_0x2e1274(0x1c3)][_0x2e1274(0x2ae)][_0x2e1274(0x420)](_0x52f261=>{const _0x57d6c5=_0x2e1274;_0x52f261===0x3?this[_0x57d6c5(0x362)](_0xf66a36):_0x52f261===0x2&&(_0xf66a36=!0x0,this[_0x57d6c5(0x350)]());})),this[_0x2e1274(0x3b8)](this[_0x2e1274(0x1c3)][_0x2e1274(0x1b7)][_0x2e1274(0x420)](_0xd5f611=>{const _0x97877e=_0x2e1274;try{switch(_0xd5f611['eventID']){case _0x43102b['NEW_CHANGESETS']:this['_onRemoteChangeset'](_0x131ca5(_0xd5f611[_0x97877e(0x2ee)]));break;case _0x43102b['CHANGESET_ACK']:this[_0x97877e(0x394)](_0xd5f611[_0x97877e(0x2ee)]);break;case _0x43102b['CHANGESET_REJ']:this[_0x97877e(0x400)]();break;case _0x43102b['CHANGESET_SHOULD_RETRY']:this[_0x97877e(0x37d)](_0xd5f611[_0x97877e(0x2ee)]);break;case _0x43102b[_0x97877e(0x269)]:this[_0x97877e(0x3cc)](_0xd5f611[_0x97877e(0x2ee)][_0x97877e(0x23a)][_0x97877e(0x35d)](_0x4e6094=>_0x131ca5(_0x4e6094)));break;case _0x43102b[_0x97877e(0x271)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x43102b[_0x97877e(0x251)]:break;}}catch(_0x525b19){throw console['error'](_0x97877e(0x1bf),_0x525b19),_0x525b19;}})),this[_0x2e1274(0x222)];}[_0x3c69ef(0x1a2)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x539433=_0x3c69ef;if(this[_0x539433(0x2c4)])throw Error(_0x539433(0x25a));this['_transitionLocked']=!0x0;}[_0x3c69ef(0x30f)](_0x49eaef){const _0x53cf65=_0x3c69ef;this[_0x53cf65(0x3a9)](),this['_updateState'](this['_state']['appendMutation'](_0x49eaef)),this['_unlockTransition']();}[_0x3c69ef(0x205)](_0x134d74){const _0x3dc6a8=_0x3c69ef;if(!(_0x134d74[_0x3dc6a8(0x2fe)]<=this[_0x3dc6a8(0x403)][_0x3dc6a8(0x306)](this['unitID']))){if(this[_0x3dc6a8(0x2cc)]){this[_0x3dc6a8(0x1ed)][_0x3dc6a8(0x217)](_0x134d74);return;}this[_0x3dc6a8(0x3df)](_0x134d74);}}[_0x3c69ef(0x3f7)](){const _0x474efe=_0x3c69ef;this[_0x474efe(0x1ed)][_0x474efe(0x1e5)](_0x4413b8=>this[_0x474efe(0x3df)](_0x4413b8)),this[_0x474efe(0x1ed)]=[];}[_0x3c69ef(0x3df)](_0x3693c7){const _0x17f440=_0x3c69ef;let _0x32117d=this['_compressMutationService'][_0x17f440(0x1fd)][_0x17f440(0x2b1)](this['_compressMutationService'][_0x17f440(0x1fd)]['getInterceptPoints']()[_0x17f440(0x392)])(_0x3693c7['mutations'],null)||_0x3693c7['mutations'],_0xe24772={..._0x3693c7,'mutations':_0x32117d};this['_lockTransition'](),this[_0x17f440(0x285)](this[_0x17f440(0x222)]['onRemoteChangeset'](_0xe24772)),this[_0x17f440(0x1a2)]();}[_0x3c69ef(0x394)](_0x2a823b){const _0x1be608=_0x3c69ef;this[_0x1be608(0x3a9)](),this[_0x1be608(0x285)](this[_0x1be608(0x222)][_0x1be608(0x38c)](_0x2a823b)),this[_0x1be608(0x1a2)]();}[_0x3c69ef(0x400)](_0x482d60){const _0x2ef6b3=_0x3c69ef;this[_0x2ef6b3(0x3a9)](),this[_0x2ef6b3(0x285)](this['_state'][_0x2ef6b3(0x28f)](_0x482d60)),this[_0x2ef6b3(0x1a2)]();}[_0x3c69ef(0x37d)](_0x1fb3f5){const _0x316204=_0x3c69ef;this[_0x316204(0x3a9)](),this[_0x316204(0x285)](this[_0x316204(0x222)][_0x316204(0x20a)](_0x1fb3f5)),this['_unlockTransition']();}[_0x3c69ef(0x3cc)](_0x5c86bd){const _0x36c857=_0x3c69ef;if(!(this[_0x36c857(0x222)]instanceof Q))throw TypeError(_0x36c857(0x208));let _0x3b8c51=_0x5c86bd[_0x36c857(0x35d)](_0x22b9c=>{const _0x28d52c=_0x36c857;let _0x361da1=this['_compressMutationService'][_0x28d52c(0x1fd)][_0x28d52c(0x2b1)](this[_0x28d52c(0x1be)][_0x28d52c(0x1fd)]['getInterceptPoints']()[_0x28d52c(0x392)])(_0x22b9c['mutations'],null)||_0x22b9c['mutations'];return{..._0x22b9c,'mutations':_0x361da1};});this[_0x36c857(0x3a9)](),this[_0x36c857(0x285)](this['_state'][_0x36c857(0x33e)](_0x3b8c51)),this['_unlockTransition']();}[_0x3c69ef(0x350)](){const _0x1b3188=_0x3c69ef;this[_0x1b3188(0x3a9)](),this[_0x1b3188(0x285)](this[_0x1b3188(0x222)][_0x1b3188(0x2f1)]()),this[_0x1b3188(0x1a2)]();}[_0x3c69ef(0x362)](_0x424c7d=!0x1){const _0x5b6b53=_0x3c69ef;this['_lockTransition'](),this['_updateState'](this[_0x5b6b53(0x222)]['toggleOnline']()),this[_0x5b6b53(0x1a2)]();let _0x59cc1f=this[_0x5b6b53(0x222)];_0x424c7d&&_0x59cc1f instanceof K&&(this['_lockTransition'](),this[_0x5b6b53(0x285)](_0x59cc1f[_0x5b6b53(0x2cd)]()),this[_0x5b6b53(0x1a2)]());}async[_0x3c69ef(0x280)](){return new Promise(_0x20106a=>{const _0x49a8d4=_0x43c7;this['session'][_0x49a8d4(0x2ae)][_0x49a8d4(0x380)](_0x40acda(0x1))[_0x49a8d4(0x420)](async _0x5177c1=>{const _0x3d6d0f=_0x49a8d4;_0x20106a(await this[_0x3d6d0f(0x1ad)](_0x5177c1===0x3));});});}['_createHandler'](){let _0x163f03=this['unitID'];return{'onStateChange':(_0x1832a4,_0x40f3ed)=>{const _0x4a34ee=_0x43c7;if(_0x1832a4!==this[_0x4a34ee(0x222)])throw Error(_0x4a34ee(0x2f5)+_0x1832a4[_0x4a34ee(0x275)]+_0x4a34ee(0x2e1)+_0x40f3ed[_0x4a34ee(0x275)]+_0x4a34ee(0x357)+this[_0x4a34ee(0x222)]['status']);this['_updateState'](_0x40f3ed);},'onSendChangeset':_0xdca9d1=>{const _0x1511db=_0x43c7;_0xdca9d1[_0x1511db(0x41d)]||(_0xdca9d1[_0x1511db(0x41d)]=this[_0x1511db(0x191)],_0xdca9d1[_0x1511db(0x256)]=++this[_0x1511db(0x373)]);let _0xc9886c={'eventID':_0x43102b[_0x1511db(0x36c)],'data':{'unitID':_0xdca9d1[_0x1511db(0x40c)],'unitType':this[_0x1511db(0x3ed)],'changeset':_0xdca9d1,'memberID':this[_0x1511db(0x1c3)]['getMemberID']()}};this[_0x1511db(0x1c3)]['send'](_0xc9886c,this[_0x1511db(0x40c)]);},'onMissingChangesets':({from:_0x6c9298,to:_0xd3982c})=>{const _0x38b03c=_0x43c7;this[_0x38b03c(0x3f4)][_0x38b03c(0x2c6)](_0x38b03c(0x26c),_0x38b03c(0x20c)+_0x6c9298+_0x38b03c(0x234)+_0xd3982c);let _0x345002={'eventID':_0x43102b['FETCH_MISSING'],'data':{'unitID':_0x163f03,'unitType':this['_type'],'from':_0x6c9298,'to':_0xd3982c}};this[_0x38b03c(0x1c3)]['send'](_0x345002,this[_0x38b03c(0x40c)]);}};}async['_createInitialStateImpl'](_0x4e7252){const _0x2fff1a=_0x3c69ef;var _0x212162,_0x3ff504,_0x90e848;let _0x2e694e=await((_0x212162=this[_0x2fff1a(0x1f4)])==null?void 0x0:_0x212162[_0x2fff1a(0x3ce)](this[_0x2fff1a(0x40c)])),_0x4827e4=(_0x3ff504=_0x2e694e==null?void 0x0:_0x2e694e[_0x2fff1a(0x188)])==null?[]:_0x3ff504,_0x3a75e9=(_0x90e848=_0x2e694e==null?void 0x0:_0x2e694e[_0x2fff1a(0x2af)])==null?null:_0x90e848,_0x5e9c16=!!(_0x3a75e9!=null&&_0x3a75e9['sid'])&&!!(_0x3a75e9!=null&&_0x3a75e9[_0x2fff1a(0x256)]);this[_0x2fff1a(0x191)]=_0x5e9c16?_0x3a75e9['sid']:_0x15262c(),this[_0x2fff1a(0x373)]=_0x5e9c16?_0x3a75e9[_0x2fff1a(0x256)]:0x0;let _0x52638f=this[_0x2fff1a(0x40c)];try{this[_0x2fff1a(0x396)](_0x3a75e9,_0x4827e4);}catch(_0x29894e){this[_0x2fff1a(0x3f4)][_0x2fff1a(0x199)](_0x29894e);}let _0x203e8d=this[_0x2fff1a(0x39a)]();if(_0x4e7252){let _0x56df9e=gn(this[_0x2fff1a(0x27a)],_0x52638f,this[_0x2fff1a(0x3ed)],_0x3a75e9,_0x4827e4,_0x203e8d);return _0x56df9e instanceof q?_0x56df9e[_0x2fff1a(0x3dd)]():(_0x56df9e instanceof Y||_0x56df9e instanceof J)&&_0x56df9e[_0x2fff1a(0x23b)](),_0x56df9e;}return this[_0x2fff1a(0x27a)][_0x2fff1a(0x24d)](Z,_0x52638f,this['_type'],_0x3a75e9,_0x4827e4,_0x203e8d);}[_0x3c69ef(0x396)](_0x2bd800,_0xda174b){const _0x58ad1a=_0x3c69ef;var _0x50ab9a,_0x416047;let _0x1c1c31=this[_0x58ad1a(0x1be)][_0x58ad1a(0x1fd)]['fetchThroughInterceptors'](this[_0x58ad1a(0x1be)]['interceptor'][_0x58ad1a(0x29a)]()[_0x58ad1a(0x392)]);(_0x50ab9a=_0x1c1c31((_0x2bd800==null?void 0x0:_0x2bd800[_0x58ad1a(0x188)])||[],null))==null||_0x50ab9a[_0x58ad1a(0x1e5)](_0x397bfc=>this[_0x58ad1a(0x1ac)]['executeCommand'](_0x397bfc['id'],_0x397bfc['params'])),(_0x416047=_0x1c1c31(_0xda174b||[],null))==null||_0x416047[_0x58ad1a(0x1e5)](_0x2d092f=>this[_0x58ad1a(0x1ac)][_0x58ad1a(0x295)](_0x2d092f['id'],_0x2d092f[_0x58ad1a(0x3c6)]));}};$=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],$);let _n=class extends ${constructor(_0x2e8548,_0x42f376,_0xaa74ee,_0x3b47f8,_0x1dd896,_0x300aed,_0x132c2,_0x2b39e9,_0x1e398c,_0x399076,_0x1ebdc7,_0x44e95e,_0x5484ad,_0x118107,_0x464c3c){const _0x50411f=_0x3c69ef;super(_0x2e8548,_0xaa74ee,_0x42f376,_0x3b47f8,_0x1dd896,_0x300aed,_0x132c2,_0x2b39e9,_0x1e398c,_0x399076,_0x1ebdc7,_0x44e95e,_0x118107,_0x464c3c),this['unitID']=_0x2e8548,this['type']=_0x42f376,this['_docStateChangeManagerService']=_0x5484ad,R(this,_0x50411f(0x1f9),null);}[_0x3c69ef(0x310)](_0x426f7e){const _0x2a4b13=_0x3c69ef;this[_0x2a4b13(0x1f9)]=_0x426f7e;}['dispose'](){const _0x22413b=_0x3c69ef;this[_0x22413b(0x1f9)]=null,super['dispose']();}[_0x3c69ef(0x39a)](){const _0x419a31=_0x3c69ef;let _0x47120b=super[_0x419a31(0x39a)]();return _0x47120b[_0x419a31(0x2be)]=_0x2a48e9=>{const _0x4b613a=_0x419a31;var _0x3157dc,_0x3d8e1f;return(_0x3157dc=this[_0x4b613a(0x1f9)])==null||(_0x3d8e1f=_0x3157dc[_0x4b613a(0x2be)])==null?void 0x0:_0x3d8e1f[_0x4b613a(0x1db)](_0x3157dc,_0x2a48e9);},_0x47120b[_0x419a31(0x3d5)]=_0x590a14=>{const _0x5ab02c=_0x419a31;var _0x3b92ff,_0xa01130;return(_0x3b92ff=this[_0x5ab02c(0x1f9)])==null||(_0xa01130=_0x3b92ff['onTransformState'])==null?void 0x0:_0xa01130[_0x5ab02c(0x1db)](_0x3b92ff,_0x590a14);},_0x47120b[_0x419a31(0x218)]=_0x707d0b=>{const _0x4eed76=_0x419a31;var _0x1060dd,_0x6b5f6a;return(_0x1060dd=this[_0x4eed76(0x1f9)])==null||(_0x6b5f6a=_0x1060dd['onTransformSelections'])==null?void 0x0:_0x6b5f6a[_0x4eed76(0x1db)](_0x1060dd,_0x707d0b);},_0x47120b['onSyncEditingCollabCursor']=_0x400fc9=>{const _0x6cb29b=_0x419a31;var _0x52fbee,_0x14b0af;return(_0x52fbee=this[_0x6cb29b(0x1f9)])==null||(_0x14b0af=_0x52fbee[_0x6cb29b(0x41c)])==null?void 0x0:_0x14b0af[_0x6cb29b(0x1db)](_0x52fbee,_0x400fc9);},_0x47120b[_0x419a31(0x1df)]=_0x302ecc=>{const _0x542e27=_0x419a31;var _0x4d4b2d,_0x556a6b,_0x4d14ca;return(_0x4d4b2d=(_0x556a6b=this[_0x542e27(0x1f9)])==null||(_0x4d14ca=_0x556a6b[_0x542e27(0x1df)])==null?void 0x0:_0x4d14ca[_0x542e27(0x1db)](_0x556a6b,_0x302ecc))==null?_0x302ecc:_0x4d4b2d;},_0x47120b[_0x419a31(0x1d2)]=_0x18a952=>{const _0x181727=_0x419a31;var _0x5e592c,_0xb35c92,_0x570730;return(_0x5e592c=(_0xb35c92=this[_0x181727(0x1f9)])==null||(_0x570730=_0xb35c92['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x570730['call'](_0xb35c92,_0x18a952))==null?_0x18a952:_0x5e592c;},_0x47120b;}async[_0x3c69ef(0x293)](){const _0x2c68bf=_0x3c69ef;if(this[_0x2c68bf(0x2e5)]==null)throw Error('[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.');let _0x13e389=await super[_0x2c68bf(0x293)]();return this[_0x2c68bf(0x3b8)](this['_docStateChangeManagerService'][_0x2c68bf(0x383)][_0x2c68bf(0x420)](_0x13a77e=>{const _0x34df37=_0x2c68bf;if(_0x13a77e==null||_0x13a77e['unitId']!==this[_0x34df37(0x40c)])return;let {commandId:_0x4a36b6,redoState:_0x1c5ee7,unitId:_0x20d0cd}=_0x13a77e,_0x50ba65={'id':_0x4a36b6,'type':_0x537f94[_0x34df37(0x249)],'params':{'unitId':_0x20d0cd,'actions':_0x1c5ee7['actions'],'textRanges':null}};this['_onLocalMutation'](_0x50ba65);})),this[_0x2c68bf(0x3b8)](this[_0x2c68bf(0x1ac)][_0x2c68bf(0x24a)]((_0x572a8b,_0x92f048)=>{const _0x440adc=_0x2c68bf;if(_0x572a8b[_0x440adc(0x315)]!==_0x537f94[_0x440adc(0x249)]||_0x92f048!=null&&_0x92f048['fromCollab']||_0x92f048!=null&&_0x92f048[_0x440adc(0x1d4)]||_0x572a8b['id']===_0x386ca6['id'])return;let _0x32d818=_0x572a8b[_0x440adc(0x3c6)];if((_0x32d818==null?void 0x0:_0x32d818['unitId'])!==this[_0x440adc(0x40c)])return;let _0x1e0819=_0x572a8b,_0x35dfbf=this['_compressMutationService'][_0x440adc(0x1fd)][_0x440adc(0x2b1)](this[_0x440adc(0x1be)][_0x440adc(0x1fd)][_0x440adc(0x29a)]()[_0x440adc(0x291)])([_0x1e0819],this[_0x440adc(0x1ba)])||[_0x1e0819];this[_0x440adc(0x30f)](_0x35dfbf[0x0]);})),_0x13e389;}};_n=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(_0x4be2f8)),B(0xd,_0x2b3cfa(W)),B(0xe,_0x2b3cfa(U))],_n);let vn=class extends ${constructor(_0x46adfc,_0x3c6562,_0x3a3712,_0x5e8b84,_0xf5721b,_0x596f85,_0x54cf35,_0x460941,_0xcfbc49,_0x19084a,_0x8a67fa,_0xf1fb4b,_0x5683d3,_0x528b1d){const _0x716287=_0x3c69ef;super(_0x46adfc,_0x3a3712,_0x3c6562,_0x5e8b84,_0xf5721b,_0x596f85,_0x54cf35,_0x460941,_0xcfbc49,_0x19084a,_0x8a67fa,_0xf1fb4b,_0x5683d3,_0x528b1d),this[_0x716287(0x40c)]=_0x46adfc,this[_0x716287(0x315)]=_0x3c6562;}async[_0x3c69ef(0x293)](){const _0x445a86=_0x3c69ef;let _0x1cc503=await super['_init']();return this[_0x445a86(0x3b8)](this[_0x445a86(0x1ac)]['onMutationExecutedForCollab']((_0x2bb3ec,_0x427459)=>{const _0x201f9d=_0x445a86;if(_0x2bb3ec[_0x201f9d(0x315)]!==_0x537f94[_0x201f9d(0x249)]||_0x427459!=null&&_0x427459[_0x201f9d(0x27c)]||_0x427459!=null&&_0x427459[_0x201f9d(0x1d4)])return;let _0x553451=_0x2bb3ec[_0x201f9d(0x3c6)];if((_0x553451==null?void 0x0:_0x553451[_0x201f9d(0x296)])!==this[_0x201f9d(0x40c)])return;let _0x51bd7b=_0x2bb3ec,_0x362a8b=this[_0x201f9d(0x1be)]['interceptor'][_0x201f9d(0x2b1)](this[_0x201f9d(0x1be)]['interceptor'][_0x201f9d(0x29a)]()[_0x201f9d(0x291)])([_0x51bd7b],this[_0x201f9d(0x1ba)])||[_0x51bd7b];this['_onLocalMutation'](_0x362a8b[0x0]);})),_0x1cc503;}};vn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],vn);let yn=class extends ${constructor(_0x1e42a9,_0x28a47f,_0x3b31ff,_0x25bc29,_0xe1f759,_0x568f05,_0x568ce7,_0x4ebd37,_0x3c31ad,_0x23510e,_0x3971bc,_0x486985,_0x1796f4,_0x2e5bb0,_0x67d82d){const _0x222c34=_0x3c69ef;super(_0x1e42a9,_0x3b31ff,_0x28a47f,_0x25bc29,_0xe1f759,_0x568f05,_0x568ce7,_0x3c31ad,_0x23510e,_0x3971bc,_0x486985,_0x1796f4,_0x2e5bb0,_0x67d82d),this[_0x222c34(0x40c)]=_0x1e42a9,this[_0x222c34(0x315)]=_0x28a47f,this['_sheetTransformSelectionsService']=_0x4ebd37;}[_0x3c69ef(0x39a)](){const _0x316007=_0x3c69ef;let _0x402261=super[_0x316007(0x39a)]();return _0x402261[_0x316007(0x218)]=_0x5a6b70=>this[_0x316007(0x1e4)][_0x316007(0x319)](_0x5a6b70),_0x402261;}async[_0x3c69ef(0x293)](){const _0x30a9c2=_0x3c69ef;let _0x486284=await super[_0x30a9c2(0x293)]();return this[_0x30a9c2(0x3b8)](this[_0x30a9c2(0x1ac)][_0x30a9c2(0x24a)]((_0x3c15c2,_0x172f28)=>{const _0x27ea99=_0x30a9c2;if(_0x3c15c2[_0x27ea99(0x315)]!==_0x537f94[_0x27ea99(0x249)]||_0x172f28!=null&&_0x172f28['fromCollab']||_0x172f28!=null&&_0x172f28['onlyLocal'])return;let _0x2fb41e=_0x3c15c2[_0x27ea99(0x3c6)];if((_0x2fb41e==null?void 0x0:_0x2fb41e['unitId'])!==this[_0x27ea99(0x40c)])return;let _0x5e6d9d=_0x3c15c2,_0x26f2c4=this[_0x27ea99(0x1be)][_0x27ea99(0x1fd)][_0x27ea99(0x2b1)](this['_compressMutationService'][_0x27ea99(0x1fd)][_0x27ea99(0x29a)]()['COMPRESS_MUTATION_SEND'])([_0x5e6d9d],this[_0x27ea99(0x1ba)])||[_0x5e6d9d];this[_0x27ea99(0x30f)](_0x26f2c4[0x0]);})),_0x486284;}};yn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(Gt)),B(0x8,_0xe230cc(z)),B(0x9,_0x344fe1),B(0xa,_0x5c3e7f),B(0xb,_0x4705e0),B(0xc,_0x36da45),B(0xd,_0x2b3cfa(W)),B(0xe,_0x2b3cfa(U))],yn);let bn=class extends ${constructor(_0x35d40d,_0x54eb32,_0x9d883c,_0x245556,_0x2d53ee,_0x1c6722,_0x3f338f,_0x1ae0b4,_0x2e7cfb,_0x54e0b1,_0x411e1f,_0x5821b7,_0x45ffdf,_0x12f958){const _0x1a226f=_0x3c69ef;super(_0x35d40d,_0x9d883c,_0x54eb32,_0x245556,_0x2d53ee,_0x1c6722,_0x3f338f,_0x1ae0b4,_0x2e7cfb,_0x54e0b1,_0x411e1f,_0x5821b7,_0x45ffdf,_0x12f958),this[_0x1a226f(0x40c)]=_0x35d40d,this[_0x1a226f(0x315)]=_0x54eb32;}async[_0x3c69ef(0x293)](){const _0x4f9764=_0x3c69ef;let _0x1313a1=await super['_init']();return this[_0x4f9764(0x3b8)](this[_0x4f9764(0x1ac)][_0x4f9764(0x24a)]((_0x3d3735,_0x220789)=>{const _0x191b30=_0x4f9764;if(_0x3d3735[_0x191b30(0x315)]!==_0x537f94[_0x191b30(0x249)]||_0x220789!=null&&_0x220789[_0x191b30(0x27c)]||_0x220789!=null&&_0x220789[_0x191b30(0x1d4)])return;let _0x33cc2f=_0x3d3735[_0x191b30(0x3c6)];if((_0x33cc2f==null?void 0x0:_0x33cc2f[_0x191b30(0x296)])!==this[_0x191b30(0x40c)])return;let _0xaa6da7=_0x3d3735,_0x2e3601=this[_0x191b30(0x1be)][_0x191b30(0x1fd)]['fetchThroughInterceptors'](this[_0x191b30(0x1be)][_0x191b30(0x1fd)][_0x191b30(0x29a)]()[_0x191b30(0x291)])([_0xaa6da7],this[_0x191b30(0x1ba)])||[_0xaa6da7];this[_0x191b30(0x30f)](_0x2e3601[0x0]);})),_0x1313a1;}};bn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],bn);let xn=class extends ${constructor(_0x44c9fc,_0x54d53b,_0x26d7ac,_0x5b9f3e,_0x219219,_0x4370aa,_0x4fe147,_0x1135bf,_0x286d73,_0x2dea4f,_0x3030ec,_0x30665,_0x47bf7f,_0x5c4a6c){const _0x36d7ed=_0x3c69ef;super(_0x44c9fc,_0x26d7ac,_0x54d53b,_0x5b9f3e,_0x219219,_0x4370aa,_0x4fe147,_0x1135bf,_0x286d73,_0x2dea4f,_0x3030ec,_0x30665,_0x47bf7f,_0x5c4a6c),this[_0x36d7ed(0x40c)]=_0x44c9fc,this[_0x36d7ed(0x315)]=_0x54d53b;}async[_0x3c69ef(0x293)](){const _0xa93250=_0x3c69ef;let _0x5f3bbf=await super['_init']();return this['disposeWithMe'](this[_0xa93250(0x1ac)]['onMutationExecutedForCollab']((_0x551932,_0x44fa3f)=>{const _0x2c0d65=_0xa93250;if(_0x551932[_0x2c0d65(0x315)]!==_0x537f94[_0x2c0d65(0x249)]||_0x44fa3f!=null&&_0x44fa3f[_0x2c0d65(0x27c)]||_0x44fa3f!=null&&_0x44fa3f[_0x2c0d65(0x1d4)])return;let _0xbaf690=_0x551932[_0x2c0d65(0x3c6)];if((_0xbaf690==null?void 0x0:_0xbaf690[_0x2c0d65(0x296)])!==this[_0x2c0d65(0x40c)])return;let _0x5ca8fb=_0x551932,_0x4e56b0=this[_0x2c0d65(0x1be)][_0x2c0d65(0x1fd)]['fetchThroughInterceptors'](this[_0x2c0d65(0x1be)][_0x2c0d65(0x1fd)][_0x2c0d65(0x29a)]()[_0x2c0d65(0x291)])([_0x5ca8fb],this[_0x2c0d65(0x1ba)])||[_0x5ca8fb];this[_0x2c0d65(0x30f)](_0x4e56b0[0x0]);})),_0x5f3bbf;}};xn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],xn);const Sn=_0x27db79(_0x3c69ef(0x1ff));function Cn(_0x58219c){const _0x1c54b2=_0x3c69ef;let _0x2d69b6=_0x58219c[_0x1c54b2(0x2ee)],_0x38fa42=JSON[_0x1c54b2(0x26d)](_0x2d69b6);switch(_0x38fa42['cmd']){case _0x5b7fe7[_0x1c54b2(0x31e)]:case _0x5b7fe7['HELLO']:{let _0x99ca06=_0x38fa42[_0x1c54b2(0x41f)];return{..._0x38fa42,'data':_0x99ca06,'cmd':_0x38fa42[_0x1c54b2(0x258)]};}case _0x5b7fe7['JOIN']:{let _0xfcb535=_0x38fa42[_0x1c54b2(0x3ae)];return{..._0x38fa42,'data':_0xfcb535,'cmd':_0x38fa42[_0x1c54b2(0x258)]};}case _0x5b7fe7['RECV']:{let _0x32e2fb=_0x38fa42[_0x1c54b2(0x235)];switch(_0x32e2fb['eventID']){case _0x43102b['PERMISSION_REJ']:var _0x199cf0;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x199cf0=_0x32e2fb[_0x1c54b2(0x2c1)])==null?void 0x0:_0x199cf0['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x348)]:var _0x27c39c;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x27c39c=_0x32e2fb[_0x1c54b2(0x34f)])==null?void 0x0:_0x27c39c['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x265)]:var _0x581b2b;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x581b2b=_0x32e2fb['newCsEvent'])==null?void 0x0:_0x581b2b['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['CHANGESET_REJ']:var _0x51d227;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x51d227=_0x32e2fb[_0x1c54b2(0x1bd)])==null?void 0x0:_0x51d227['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['CHANGESET_SHOULD_RETRY']:var _0x473a5e;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x473a5e=_0x32e2fb[_0x1c54b2(0x21c)])==null?void 0x0:_0x473a5e['cs']},'cmd':_0x38fa42['cmd']};case _0x43102b[_0x1c54b2(0x37a)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb['updateCursorEvent']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x1ec)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x3b4)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x334)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x22e)]},'cmd':_0x38fa42['cmd']};case _0x43102b['LIVESHARE_NEW_HOST']:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x224)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['LIVESHARE_FETCH_OPERATIONS']:case _0x43102b[_0x1c54b2(0x3e2)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x292)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x236)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x224)]},'cmd':_0x38fa42['cmd']};case _0x43102b[_0x1c54b2(0x19e)]:return{..._0x38fa42,'data':_0x32e2fb,'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x30a)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x283)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x365)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x38a)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['SHOULD_CLOSE_CONN']:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x379)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x251)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x3ee)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};default:return _0x38fa42;}}default:return _0x38fa42;}}function wn(_0x5eac57){const _0x5d7ca4=_0x3c69ef;switch(_0x5eac57[_0x5d7ca4(0x258)]){case _0x5b7fe7['HEARTBEAT']:case _0x5b7fe7[_0x5d7ca4(0x389)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57[_0x5d7ca4(0x258)],'routeKey':_0x5eac57['routeKey']});case _0x5b7fe7[_0x5d7ca4(0x3d9)]:{let _0x217462;switch(_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x3f0)]){case _0x43102b['UPDATE_CURSOR']:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x37a)],'updateCursorEvent':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['USERS_LEAVE']:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x334)],'leaveEvent':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x1ec)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x1ec)],'joinEvent':_0x5eac57[_0x5d7ca4(0x2ee)]['data']};break;case _0x43102b[_0x5d7ca4(0x39f)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x39f)],'liveShareNewHost':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x3e2)]:_0x217462={'eventID':_0x43102b['LIVESHARE_OPERATION'],'liveShareOperation':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['LIVESHARE_TERMINATE']:_0x217462={'eventID':_0x43102b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x21d)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x21d)],'liveShareRequestHost':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['LIVESHARE_FETCH_OPERATIONS']:_0x217462={'eventID':_0x43102b['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x217462={'eventID':_0x5eac57['data'][_0x5d7ca4(0x3f0)]};}return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57[_0x5d7ca4(0x258)],'routeKey':_0x5eac57[_0x5d7ca4(0x2fd)],'collaMsg':_0x217462});}case _0x5b7fe7[_0x5d7ca4(0x3b6)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57['cmd'],'routeKey':_0x5eac57['routeKey'],'joinReq':_0x5eac57['data']});case _0x5b7fe7[_0x5d7ca4(0x31b)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57['cmd'],'routeKey':_0x5eac57['routeKey'],'leaveReq':_0x5eac57[_0x5d7ca4(0x2ee)]});default:throw Error(_0x5d7ca4(0x2c5));}}const Tn=_0x27db79('univer-pro.collaboration-client-socket-service');function En(_0x588bae,_0x29feae,_0xf407a6){const _0x3625dd=_0x3c69ef;return _0x588bae+'/'+_0x29feae+_0x3625dd(0x203)+_0xf407a6+_0x3625dd(0x3bc);}let Dn=class extends _0x1c670c{constructor(_0x7d3a7e,_0xf34dd9,_0x3aa0cc,_0x2ee96c,_0x4d612a){const _0x393261=_0x3c69ef;super(),this['_injector']=_0x7d3a7e,this['_httpService']=_0xf34dd9,this[_0x393261(0x305)]=_0x3aa0cc,this[_0x393261(0x3f4)]=_0x2ee96c,this['_snapshotServerService']=_0x4d612a;}[_0x3c69ef(0x3fc)](_0x403a85){const _0x21503f=_0x3c69ef;let _0x53da94=this['_injector'][_0x21503f(0x20f)](_0x313930);if(!_0x53da94)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x73f2b4=_0x53da94['createSocket'](_0x403a85);if(!_0x73f2b4)throw Error(_0x21503f(0x198));let _0x2bff96=new _0x4fc3ed(),_0x57fc0c=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x1fa)]['subscribe'](_0x3b47b5=>_0x57fc0c[_0x21503f(0x19a)](_0x3b47b5))),_0x2bff96['add'](_0x4a5ee8(()=>_0x57fc0c['complete']()));let _0x26c044=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x1da)]['subscribe'](_0x3cc7a0=>_0x26c044[_0x21503f(0x19a)](_0x3cc7a0))),_0x2bff96[_0x21503f(0x308)](_0x4a5ee8(()=>_0x26c044[_0x21503f(0x3aa)]()));let _0x38ff4d=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x261)][_0x21503f(0x420)](_0x1cb854=>{const _0x5eada7=_0x21503f;let _0x3ad065=Cn(_0x1cb854);_0x38ff4d[_0x5eada7(0x19a)](_0x3ad065);})),_0x2bff96[_0x21503f(0x308)](_0x4a5ee8(()=>_0x38ff4d[_0x21503f(0x3aa)]()));let _0x1aba0f,_0x54d4ab=()=>{const _0x153e7f=_0x21503f;_0x26c044[_0x153e7f(0x19a)](new Event(_0x153e7f(0x3c2))),_0x57fc0c['next'](new Event(_0x153e7f(0x3c2))),_0x1aba0f[_0x153e7f(0x25d)]();};return _0x1aba0f={'memberID':'','close$':_0x57fc0c['asObservable'](),'error$':_0x26c044[_0x21503f(0x1cc)](),'open$':_0x73f2b4[_0x21503f(0x3e6)],'message$':_0x38ff4d[_0x21503f(0x1cc)](),'send':_0x3d790e=>{const _0x5197e8=_0x21503f;if(_0x3d790e[_0x5197e8(0x258)]===_0x5b7fe7[_0x5197e8(0x3d9)]){if(_0x3d790e['data'][_0x5197e8(0x3f0)]===_0x43102b[_0x5197e8(0x36c)]){this[_0x5197e8(0x2da)](_0x1aba0f,_0x3d790e['data'])[_0x5197e8(0x299)](_0x166cbc=>{const _0x42505d=_0x5197e8;this[_0x42505d(0x3f4)][_0x42505d(0x199)](_0x166cbc),_0x54d4ab();});return;}if(_0x3d790e[_0x5197e8(0x2ee)][_0x5197e8(0x3f0)]===_0x43102b[_0x5197e8(0x3ab)]){let _0x305ed3=_0x3d790e[_0x5197e8(0x2ee)];this[_0x5197e8(0x416)](_0x305ed3)[_0x5197e8(0x3b1)](_0x1fbdc4=>{const _0x552895=_0x5197e8;_0x38ff4d[_0x552895(0x19a)]({'cmd':_0x5b7fe7[_0x552895(0x2f9)],'code':_0x1d3aac['OK'],'routeKey':_0x305ed3[_0x552895(0x2ee)][_0x552895(0x40c)],'routeType':'','data':{'eventID':_0x43102b['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1fbdc4}}});})[_0x5197e8(0x299)](_0xf8ee04=>{const _0x481a76=_0x5197e8;this[_0x481a76(0x3f4)][_0x481a76(0x199)](_0xf8ee04),_0x54d4ab();});return;}}_0x73f2b4[_0x5197e8(0x31a)](wn(_0x3d790e));},'close':()=>{const _0x37152e=_0x21503f;_0x73f2b4[_0x37152e(0x25d)](),_0x2bff96[_0x37152e(0x20b)]();}},_0x1aba0f;}async[_0x3c69ef(0x2da)](_0x33c29b,_0x33205f){const _0xadac22=_0x3c69ef;var _0x6c94ca;let {unitType:_0x15eb42,unitID:_0x5197a0,changeset:_0x32b566}=_0x33205f[_0xadac22(0x2ee)],_0x50a488={'unitID':_0x5197a0,'memberID':_0x33c29b[_0xadac22(0x223)],'type':_0x15eb42,'changeset':_0x4835ca(_0x32b566)},_0x408684=this['_configService'][_0xadac22(0x353)](L),_0x3fd897=En((_0x6c94ca=_0x408684==null?void 0x0:_0x408684[_0xadac22(0x201)])==null?_0xadac22(0x23f):_0x6c94ca,_0x15eb42,_0x5197a0);try{await this['_httpService']['post'](_0x3fd897,{'body':_0x50a488});}catch(_0xb4f526){throw this[_0xadac22(0x3f4)][_0xadac22(0x199)](_0xadac22(0x297),'submit\x20changeset\x20error!'),_0xb4f526;}}async[_0x3c69ef(0x416)](_0x3fda22){const _0x3fe8ef=_0x3c69ef;let {unitID:_0x44e0bc,from:_0x343e22,to:_0x3df731,unitType:_0x4e268e}=_0x3fda22[_0x3fe8ef(0x2ee)];return(await this['_snapshotServerService'][_0x3fe8ef(0x364)]({'metadata':void 0x0},{'unitID':_0x44e0bc,'type':_0x4e268e,'from':_0x343e22,'to':_0x3df731}))[_0x3fe8ef(0x23a)][_0x3fe8ef(0x35d)](_0x41a4a3=>((_0x41a4a3[_0x3fe8ef(0x188)]===null||_0x41a4a3['mutations']===void 0x0)&&(_0x41a4a3[_0x3fe8ef(0x188)]=[]),_0x41a4a3));}};Dn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0xe230cc(_0x32d10d)),B(0x2,_0x1f37e4),B(0x3,_0x5c3e7f),B(0x4,_0xf3e9c6)],Dn);const On=_0x27db79(_0x3c69ef(0x288));function kn(_0x16b3dd={}){const _0x449158=_0x3c69ef;return _0x16b3dd[_0x449158(0x40e)]?{'resolveUnit':_0x16b3dd[_0x449158(0x40e)]}:{'resolveUnit':_0x37a10d=>({'target':{'unitId':_0x37a10d[_0x449158(0x296)],'unitType':_0x37a10d[_0x449158(0x242)]}})};}function An(_0x5657b0,_0x5df3a8,_0x2577d9){const _0x7fc8e9=_0x3c69ef;var _0x140aca;let _0x26ac17=_0x2577d9[_0x7fc8e9(0x3d8)][_0x7fc8e9(0x34a)];if(_0x26ac17!=null&&_0x26ac17['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x2577d9['target'][_0x7fc8e9(0x296)])throw Error(_0x7fc8e9(0x1b9));return{'localUnitId':_0x5657b0,'unitType':_0x5df3a8,'target':{'endpoint':_0x26ac17,'unitId':_0x2577d9[_0x7fc8e9(0x3d8)]['unitId'],'unitType':(_0x140aca=_0x2577d9['target'][_0x7fc8e9(0x242)])==null?_0x5df3a8:_0x140aca},'changeset':_0x2577d9[_0x7fc8e9(0x2c2)]};}let jn=class extends _0x1c670c{constructor(_0x2ceeba,_0x1889d7,_0x12b760,_0x292ea8,_0x29ef4c,_0x41ef23,_0x5683d4){const _0x51c193=_0x3c69ef;super(),this[_0x51c193(0x27a)]=_0x2ceeba,this[_0x51c193(0x3f4)]=_0x1889d7,this[_0x51c193(0x305)]=_0x12b760,this['_socketService']=_0x292ea8,this[_0x51c193(0x290)]=_0x29ef4c,this[_0x51c193(0x3ec)]=_0x41ef23,this[_0x51c193(0x252)]=_0x5683d4,R(this,_0x51c193(0x2a7),new Map()),R(this,'_pendingSessions',new Map()),R(this,_0x51c193(0x2aa),new Map()),R(this,'_socketChannels',new Map()),R(this,'socket$',this[_0x51c193(0x240)](void 0x0)['socket$'][_0x51c193(0x1cc)]()),R(this,_0x51c193(0x2c8),new _0x296086(0x0)),R(this,_0x51c193(0x3d4),this[_0x51c193(0x2c8)][_0x51c193(0x1cc)]()),this[_0x51c193(0x287)]();}['_listenToNetworkCondition'](){const _0x1f90fa=_0x3c69ef;this[_0x1f90fa(0x252)]&&this[_0x1f90fa(0x3b8)](this[_0x1f90fa(0x252)][_0x1f90fa(0x1d1)][_0x1f90fa(0x420)](_0x568e52=>{const _0x44a084=_0x1f90fa;_0x568e52&&this[_0x44a084(0x35e)](),_0x568e52||this[_0x44a084(0x29f)][_0x44a084(0x1e5)](_0x56f0e2=>this[_0x44a084(0x1e8)](_0x56f0e2));}));}[_0x3c69ef(0x20b)](){const _0x311cd0=_0x3c69ef;super[_0x311cd0(0x20b)](),this[_0x311cd0(0x29f)]['forEach'](_0x417a2e=>{const _0x178e05=_0x311cd0;var _0x40cbe3,_0x10a949;(_0x40cbe3=_0x417a2e[_0x178e05(0x2f3)])==null||_0x40cbe3['unsubscribe'](),_0x417a2e[_0x178e05(0x2f3)]=null,this[_0x178e05(0x336)](_0x417a2e),this['_clearTimeoutTimer'](_0x417a2e),this['_clearHeartbeatTimer'](_0x417a2e),(_0x10a949=_0x417a2e['socket$'][_0x178e05(0x368)]())==null||_0x10a949[_0x178e05(0x25d)](),_0x417a2e[_0x178e05(0x2b5)][_0x178e05(0x3aa)]();}),this['_socketChannels'][_0x311cd0(0x3bf)](),this[_0x311cd0(0x2a7)]['forEach'](_0x850252=>_0x850252[_0x311cd0(0x20b)]()),this[_0x311cd0(0x2a7)]['clear'](),this[_0x311cd0(0x2aa)][_0x311cd0(0x3bf)](),this['_status$'][_0x311cd0(0x3aa)]();}async[_0x3c69ef(0x2d4)](_0x6cdfbd,_0x2a857a){const _0x513e4b=_0x3c69ef;if(this['_sessions']['has'](_0x6cdfbd))return this[_0x513e4b(0x2a7)][_0x513e4b(0x20f)](_0x6cdfbd);let _0x3fc363=this[_0x513e4b(0x1e3)]['get'](_0x6cdfbd);if(_0x3fc363)return _0x3fc363;let _0x376495=this[_0x513e4b(0x214)](_0x6cdfbd,_0x2a857a);this[_0x513e4b(0x1e3)]['set'](_0x6cdfbd,_0x376495);try{return await _0x376495;}finally{this[_0x513e4b(0x1e3)][_0x513e4b(0x393)](_0x6cdfbd);}}async[_0x3c69ef(0x214)](_0x5781c5,_0xfa767b){const _0x1be84f=_0x3c69ef;let _0x2c1b9d=await this[_0x1be84f(0x346)](_0x5781c5,_0xfa767b),_0x2fc305=this[_0x1be84f(0x240)](_0x2c1b9d[_0x1be84f(0x3d8)][_0x1be84f(0x34a)]);this[_0x1be84f(0x21f)](_0x2fc305);let _0x11608a=this[_0x1be84f(0x27a)][_0x1be84f(0x24d)](Ht,_0x2c1b9d,_0x2fc305['socket$'][_0x1be84f(0x1cc)]());return this['_sessions'][_0x1be84f(0x220)](_0x5781c5,_0x11608a),this[_0x1be84f(0x2aa)]['set'](_0x5781c5,_0x2fc305['endpointKey']),_0x11608a;}[_0x3c69ef(0x32e)](_0x4b33ca){const _0x3311f8=_0x3c69ef;let _0x2c7103=this[_0x3311f8(0x2a7)][_0x3311f8(0x20f)](_0x4b33ca),_0x328c9f=this[_0x3311f8(0x2aa)][_0x3311f8(0x20f)](_0x4b33ca);if(_0x2c7103&&(this[_0x3311f8(0x2a7)]['delete'](_0x4b33ca),this['_sessionChannels'][_0x3311f8(0x393)](_0x4b33ca),_0x2c7103[_0x3311f8(0x25d)]()),_0x328c9f&&!this['_hasSessionsForEndpoint'](_0x328c9f)){var _0x301975;let _0x5aece1=this['_socketChannels']['get'](_0x328c9f);_0x5aece1==null||(_0x301975=_0x5aece1['socket$'][_0x3311f8(0x368)]())==null||_0x301975['close']();}}['reconnect'](){const _0x49946e=_0x3c69ef;(this[_0x49946e(0x29f)][_0x49946e(0x229)]?[...this['_socketChannels']['values']()]:[this[_0x49946e(0x240)](void 0x0)])[_0x49946e(0x1e5)](_0x37bce1=>{const _0x255110=_0x49946e;_0x37bce1[_0x255110(0x1f3)]=0x0,this[_0x255110(0x336)](_0x37bce1),this[_0x255110(0x215)](_0x37bce1);});}[_0x3c69ef(0x336)](_0x354dcb){const _0x25ec42=_0x3c69ef;_0x354dcb[_0x25ec42(0x2d0)]!=null&&(clearTimeout(_0x354dcb[_0x25ec42(0x2d0)]),_0x354dcb[_0x25ec42(0x2d0)]=null);}async[_0x3c69ef(0x354)](_0x1213f5){const _0xae061b=_0x3c69ef;var _0x10f6bd,_0x2c2b25;let _0x1ea7f5=this[_0xae061b(0x305)][_0xae061b(0x353)](L),_0x4d8253=(_0x10f6bd=(_0x2c2b25=_0x1213f5[_0xae061b(0x34a)])==null?_0x1ea7f5==null?void 0x0:_0x1ea7f5[_0xae061b(0x23d)]:_0x2c2b25)==null?mt:_0x10f6bd,_0x1dc0f2=await this['_socketService'][_0xae061b(0x2d7)](_0x4d8253);return _0x1213f5[_0xae061b(0x3f2)]=_0x1dc0f2,_0x1dc0f2;}async[_0x3c69ef(0x21f)](_0x3a1771){const _0x1bf93e=_0x3c69ef;try{var _0x138372,_0x152d95;let _0xa67934=(_0x138372=(_0x152d95=_0x3a1771[_0x1bf93e(0x2b5)][_0x1bf93e(0x368)]())==null?_0x3a1771[_0x1bf93e(0x3f2)]:_0x152d95)==null?await this['_createSocket'](_0x3a1771):_0x138372;if(_0xa67934){var _0x508fd8;let _0x3062db=_0xa67934[_0x1bf93e(0x31a)];_0xa67934['send']=_0x208f4d=>(_0x208f4d['cmd']!==_0x5b7fe7[_0x1bf93e(0x31b)]&&this['_rescheduleHeartbeat'](_0x3a1771),_0x3062db[_0x1bf93e(0x303)](_0xa67934,[_0x208f4d])),(_0x508fd8=_0x3a1771['socketMessageSubscription'])==null||_0x508fd8['unsubscribe'](),_0x3a1771[_0x1bf93e(0x2f3)]=null,_0x3a1771['socketMessageSubscription']=_0xa67934[_0x1bf93e(0x261)]['subscribe'](_0x30a3a9=>this[_0x1bf93e(0x419)](_0x3a1771,_0xa67934,_0x30a3a9)),_0xa67934[_0x1bf93e(0x1da)][_0x1bf93e(0x380)](_0x3b77de(0x1))[_0x1bf93e(0x420)](_0x118af4=>this[_0x1bf93e(0x3f4)][_0x1bf93e(0x199)]('[CollaborationSessionService]:\x20socket\x20error',_0x118af4)),_0xa67934['open$'][_0x1bf93e(0x380)](_0x3b77de(0x1))['subscribe'](()=>{const _0x4452ae=_0x1bf93e;this[_0x4452ae(0x1d3)](_0x3a1771,_0xa67934);}),_0xa67934['close$'][_0x1bf93e(0x380)](_0x3b77de(0x1))[_0x1bf93e(0x420)](_0x64d387=>{const _0x5bf5ab=_0x1bf93e;this[_0x5bf5ab(0x3f4)][_0x5bf5ab(0x2c6)](_0x5bf5ab(0x1c1),_0x5bf5ab(0x2ed),_0x64d387),this[_0x5bf5ab(0x1a6)](_0x3a1771);});}}catch(_0x1d07bd){this[_0x1bf93e(0x3f4)][_0x1bf93e(0x199)](_0x1d07bd),this[_0x1bf93e(0x1a6)](_0x3a1771);}}[_0x3c69ef(0x1d3)](_0x532f2e,_0x55c181){const _0x3930b2=_0x3c69ef;this['_logService'][_0x3930b2(0x2c6)](_0x3930b2(0x1c1),_0x3930b2(0x1a0)),_0x55c181[_0x3930b2(0x31a)]({'cmd':_0x5b7fe7[_0x3930b2(0x389)]}),this[_0x3930b2(0x276)](_0x532f2e);}[_0x3c69ef(0x1e8)](_0x24d63c){const _0x29673f=_0x3c69ef;_0x24d63c['socketReady']=!0x1,_0x24d63c[_0x29673f(0x3f2)]=null,this[_0x29673f(0x2c8)][_0x29673f(0x19a)](0x2),_0x24d63c['socket$'][_0x29673f(0x19a)](null),this[_0x29673f(0x243)](_0x24d63c),this[_0x29673f(0x39d)](_0x24d63c);}[_0x3c69ef(0x1a6)](_0x2f6c86){const _0x3488f8=_0x3c69ef;var _0x593f2a;this[_0x3488f8(0x1e8)](_0x2f6c86),this[_0x3488f8(0x34b)](_0x2f6c86[_0x3488f8(0x1b0)])&&(_0x2f6c86[_0x3488f8(0x1f3)]<((_0x593f2a=this[_0x3488f8(0x305)][_0x3488f8(0x353)](_0x3488f8(0x317)))==null?0x3:_0x593f2a)?(this[_0x3488f8(0x290)][_0x3488f8(0x377)]({'id':_0x3488f8(0x18f)}),this[_0x3488f8(0x215)](_0x2f6c86)):this['_collaborationUIEventService'][_0x3488f8(0x377)]({'id':_0x3488f8(0x343)}));}[_0x3c69ef(0x215)](_0x209e3c){const _0x23c27e=_0x3c69ef;var _0x492eb2;let _0x59e76f=_0x209e3c[_0x23c27e(0x1f3)],_0x2a9778=this[_0x23c27e(0x305)][_0x23c27e(0x353)](L),_0x367b23=_0x59e76f===0x0?0x0:((_0x492eb2=_0x2a9778==null?void 0x0:_0x2a9778['retryConnectingInterval'])==null?0x4e20:_0x492eb2)*0x2**_0x59e76f;_0x209e3c[_0x23c27e(0x2d0)]=setTimeout(()=>{const _0x24f74d=_0x23c27e;clearTimeout(_0x209e3c[_0x24f74d(0x2d0)]),_0x209e3c[_0x24f74d(0x2d0)]=null,this[_0x24f74d(0x21f)](_0x209e3c);},_0x367b23),_0x209e3c[_0x23c27e(0x1f3)]+=0x1;}async['_resolveSessionIdentity'](_0x34dd3d,_0x419df4){const _0x2c8dac=_0x3c69ef;return An(_0x34dd3d,_0x419df4,await this[_0x2c8dac(0x3ec)]['resolveUnit']({'unitId':_0x34dd3d,'unitType':_0x419df4}));}[_0x3c69ef(0x419)](_0x3e7031,_0x5dbfa9,_0x2c3dbe){const _0x54035f=_0x3c69ef;let {cmd:_0xe61440}=_0x2c3dbe;_0xe61440===_0x5b7fe7['HELLO']&&!_0x3e7031[_0x54035f(0x212)]&&(_0x5dbfa9[_0x54035f(0x223)]=_0x2c3dbe[_0x54035f(0x2ee)][_0x54035f(0x223)],_0x3e7031[_0x54035f(0x2b5)][_0x54035f(0x19a)](_0x5dbfa9),this[_0x54035f(0x2c8)][_0x54035f(0x19a)](0x3),_0x3e7031[_0x54035f(0x212)]=!0x0,_0x3e7031[_0x54035f(0x3f2)]=null),_0xe61440===_0x5b7fe7[_0x54035f(0x31e)]&&this[_0x54035f(0x243)](_0x3e7031),this[_0x54035f(0x276)](_0x3e7031);}[_0x3c69ef(0x34b)](_0x2b3891){const _0x3c128d=_0x3c69ef;return[...this['_sessionChannels'][_0x3c128d(0x1ef)]()]['some'](_0x5c3111=>_0x5c3111===_0x2b3891);}[_0x3c69ef(0x240)](_0x5d9d66){const _0x1c2f43=_0x3c69ef;let _0x1e48c2=_0x5d9d66==null?'':_0x5d9d66,_0x5b3775=this[_0x1c2f43(0x29f)][_0x1c2f43(0x20f)](_0x1e48c2);if(_0x5b3775)return _0x5b3775;let _0x1b7d4a={'endpointKey':_0x1e48c2,'endpoint':_0x5d9d66,'socket$':new _0x296086(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1c2f43(0x29f)][_0x1c2f43(0x220)](_0x1e48c2,_0x1b7d4a),_0x1b7d4a;}['_rescheduleHeartbeat'](_0x207b3d){const _0x430c99=_0x3c69ef;var _0x8b346b;this['_clearHeartbeatTimer'](_0x207b3d),_0x207b3d[_0x430c99(0x28d)]=setTimeout(()=>this['_sendHeartbeat'](_0x207b3d),(_0x8b346b=this[_0x430c99(0x305)][_0x430c99(0x353)](_0x430c99(0x37e)))==null?0x7530:_0x8b346b);}['_sendHeartbeat'](_0x5acc19){const _0xfff4fa=_0x3c69ef;_0x5acc19[_0xfff4fa(0x2b5)][_0xfff4fa(0x368)]()[_0xfff4fa(0x31a)]({'cmd':_0x5b7fe7['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x5acc19);}[_0x3c69ef(0x3f5)](_0x28b356){const _0x4902b4=_0x3c69ef;var _0x2c26fa;_0x28b356[_0x4902b4(0x408)]=setTimeout(()=>this['_onConnectionFailed'](_0x28b356),(_0x2c26fa=this['_configService'][_0x4902b4(0x353)](_0x4902b4(0x2a9)))==null?vt:_0x2c26fa);}[_0x3c69ef(0x39d)](_0x3036b5){const _0xaf34af=_0x3c69ef;_0x3036b5[_0xaf34af(0x28d)]!=null&&(clearTimeout(_0x3036b5[_0xaf34af(0x28d)]),_0x3036b5['sendHeartbeatTimer']=null);}[_0x3c69ef(0x243)](_0x4f5ea2){const _0x5a3c75=_0x3c69ef;_0x4f5ea2[_0x5a3c75(0x408)]!=null&&(clearTimeout(_0x4f5ea2[_0x5a3c75(0x408)]),_0x4f5ea2[_0x5a3c75(0x408)]=null);}};jn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x5c3e7f),B(0x2,_0x1f37e4),B(0x3,Tn),B(0x4,_0xe230cc(z)),B(0x5,On),B(0x6,_0x2b3cfa(Sn))],jn);let Mn=class extends _0x50b38b{constructor(_0x2a843f,_0x2c1af9,_0x5ab38a,_0x14798f){const _0x18decd=_0x3c69ef;var _0x1a59db;super(),this['_injector']=_0x2a843f,this[_0x18decd(0x3d2)]=_0x2c1af9,this[_0x18decd(0x305)]=_0x5ab38a,this[_0x18decd(0x1ba)]=_0x14798f,R(this,_0x18decd(0x221),new Map()),R(this,_0x18decd(0x3af),new _0x59eece()),R(this,'entityInit$',this['_entityInit$'][_0x18decd(0x1cc)]()),((_0x1a59db=this['_configService'][_0x18decd(0x353)](_0x18decd(0x268)))==null?void 0x0:_0x1a59db[_0x18decd(0x333)])!==!0x1&&this[_0x18decd(0x293)]();}[_0x3c69ef(0x20b)](){const _0x2a08db=_0x3c69ef;super[_0x2a08db(0x20b)](),this[_0x2a08db(0x221)][_0x2a08db(0x1e5)](_0x22c463=>_0x22c463[_0x2a08db(0x20b)]()),this[_0x2a08db(0x221)][_0x2a08db(0x3bf)]();}[_0x3c69ef(0x320)](_0x4d2bba){const _0x6724f1=_0x3c69ef;var _0x47e017;return(_0x47e017=this[_0x6724f1(0x221)][_0x6724f1(0x20f)](_0x4d2bba))==null?null:_0x47e017;}[_0x3c69ef(0x3e1)](_0x2a6e3c){const _0x1052d4=_0x3c69ef;let _0x2817cb=this[_0x1052d4(0x320)](_0x2a6e3c);return _0x2817cb?_0x282a93(_0x2817cb):this[_0x1052d4(0x3af)][_0x1052d4(0x380)](_0x26acea(_0x414600=>_0x414600[_0x1052d4(0x40c)]===_0x2a6e3c));}[_0x3c69ef(0x351)](_0x46b29c){const _0x1bc659=_0x3c69ef;return _0x34da10(this[_0x1bc659(0x3e1)](_0x46b29c)['pipe'](_0xf99eb3(()=>void 0x0)));}[_0x3c69ef(0x293)](){const _0x13acd3=_0x3c69ef;this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e['UNIVER_SHEET'])[_0x13acd3(0x380)](_0x48361a(this[_0x13acd3(0x294)]),_0x58575b(0x10))['subscribe'](async _0x26eb7d=>{const _0x36d826=_0x13acd3;let _0x4c7d26=_0x26eb7d[_0x36d826(0x3d6)][_0x36d826(0x270)](),_0x4a4e7e=await this[_0x36d826(0x2a0)](_0x4c7d26,_0x9a8e4e[_0x36d826(0x1a4)]);this[_0x36d826(0x221)][_0x36d826(0x220)](_0x4c7d26,_0x4a4e7e);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x274)])[_0x13acd3(0x380)](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x380)](_0x26acea(_0x2c05e7=>!_0x2c05e7[_0x13acd3(0x3d6)][_0x13acd3(0x270)]()[_0x13acd3(0x3cd)]('__')))['subscribe'](async _0x184a7e=>{const _0x4b5622=_0x13acd3;let _0x51ac8d=_0x184a7e[_0x4b5622(0x3d6)][_0x4b5622(0x270)](),_0x5e2227=await this[_0x4b5622(0x2a0)](_0x51ac8d,_0x9a8e4e['UNIVER_DOC']);this[_0x4b5622(0x221)]['set'](_0x51ac8d,_0x5e2227);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x3c8)])[_0x13acd3(0x380)](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x33385b=>{const _0x242424=_0x13acd3;let _0x53a715=_0x33385b[_0x242424(0x3d6)][_0x242424(0x270)](),_0xf8927d=await this[_0x242424(0x2a0)](_0x53a715,_0x9a8e4e[_0x242424(0x3c8)]);this[_0x242424(0x221)][_0x242424(0x220)](_0x53a715,_0xf8927d);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x360)])['pipe'](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x11fab8=>{const _0x7bdf0b=_0x13acd3;let _0x18f41d=_0x11fab8[_0x7bdf0b(0x3d6)][_0x7bdf0b(0x270)](),_0x21c856=await this[_0x7bdf0b(0x2a0)](_0x18f41d,_0x9a8e4e[_0x7bdf0b(0x360)]);this[_0x7bdf0b(0x221)]['set'](_0x18f41d,_0x21c856);}),this['_univerInstanceService'][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x3b3)])[_0x13acd3(0x380)](_0x48361a(this[_0x13acd3(0x294)]),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x5ee058=>{const _0x3f3c79=_0x13acd3;let _0x2ecc7d=_0x5ee058[_0x3f3c79(0x3d6)][_0x3f3c79(0x270)](),_0x457a07=await this[_0x3f3c79(0x2a0)](_0x2ecc7d,_0x9a8e4e[_0x3f3c79(0x3b3)]);this[_0x3f3c79(0x221)][_0x3f3c79(0x220)](_0x2ecc7d,_0x457a07);}),_0x4802bd(this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x1a4)]),this[_0x13acd3(0x1ba)]['getTypeOfUnitDisposed$'](_0x9a8e4e[_0x13acd3(0x274)]),this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x3c8)]),this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x360)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x9a8e4e['UNIVER_BASE']))['pipe'](_0x48361a(this[_0x13acd3(0x294)]))[_0x13acd3(0x420)](_0x357f94=>{const _0x13c7da=_0x13acd3;let _0xb7fcd1=_0x357f94[_0x13c7da(0x270)](),_0x4ffec1=this['_entities'][_0x13c7da(0x20f)](_0xb7fcd1);_0x4ffec1&&(_0x4ffec1[_0x13c7da(0x20b)](),this[_0x13c7da(0x221)]['delete'](_0xb7fcd1));});}async[_0x3c69ef(0x2a0)](_0x34fc9b,_0x2cf927){const _0x143b7c=_0x3c69ef;let _0x4e3b86=await this['_collabSessionService'][_0x143b7c(0x2d4)](_0x34fc9b),_0x1b3008=this[_0x143b7c(0x27a)]['createInstance'](this['_getCtorByUniverInstanceType'](_0x2cf927),_0x34fc9b,_0x2cf927,_0x4e3b86);return await _0x1b3008[_0x143b7c(0x2ea)](),this['_entityInit$'][_0x143b7c(0x19a)](_0x1b3008),_0x1b3008;}['_getCtorByUniverInstanceType'](_0x5ed872){const _0x5cc8d8=_0x3c69ef;switch(_0x5ed872){case _0x9a8e4e[_0x5cc8d8(0x274)]:return _n;case _0x9a8e4e[_0x5cc8d8(0x1a4)]:return yn;case _0x9a8e4e[_0x5cc8d8(0x3c8)]:return bn;case _0x9a8e4e[_0x5cc8d8(0x360)]:return xn;case _0x9a8e4e['UNIVER_BASE']:return vn;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x5ed872);}}};Mn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0xe230cc(jn)),B(0x2,_0x1f37e4),B(0x3,_0x344fe1)],Mn);var Nn='@univerjs-pro/collaboration-client',Pn=_0x3c69ef(0x397);let Fn=class extends _0x1c670c{constructor(_0x3cc386,_0x253123){const _0x4a79d7=_0x3c69ef;super(),this[_0x4a79d7(0x1ba)]=_0x3cc386,this['_configService']=_0x253123,this[_0x4a79d7(0x293)]();}[_0x3c69ef(0x293)](){const _0xb303d6=_0x3c69ef;this[_0xb303d6(0x3b8)](this[_0xb303d6(0x1ba)]['focused$'][_0xb303d6(0x420)](()=>{const _0x50337b=_0xb303d6;var _0x1a7227;let _0x1caba7=this[_0x50337b(0x1ba)][_0x50337b(0x230)](),_0x1607ec=(_0x1a7227=this[_0x50337b(0x305)][_0x50337b(0x353)]('DEFAULT_FILE_NAME'))==null?_0x50337b(0x1b2):_0x1a7227;_0x1caba7 instanceof _0x19ddfe&&(_0x1607ec=_0x1caba7['name']),document[_0x50337b(0x36e)]=_0x1607ec;}));}};Fn=V([B(0x0,_0x344fe1),B(0x1,_0x1f37e4)],Fn);let In=function(_0x558325){const _0x4f938a=_0x3c69ef;return _0x558325['URL']=_0x4f938a(0x37f),_0x558325['UUID']=_0x4f938a(0x3ba),_0x558325[_0x4f938a(0x3a8)]=_0x4f938a(0x3a8),_0x558325;}({});const Ln=_0x27db79(_0x3c69ef(0x25f));let Rn=class{constructor(_0x1defb7,_0x34a251,_0x360a15){const _0x4f3add=_0x3c69ef;this[_0x4f3add(0x2e8)]=_0x1defb7,this[_0x4f3add(0x305)]=_0x34a251,this[_0x4f3add(0x1ba)]=_0x360a15;}[_0x3c69ef(0x2a2)](){const _0x30cbbc=_0x3c69ef;var _0x89618d;return(_0x89618d=this['_getConfig']()[_0x30cbbc(0x237)])==null?{}:_0x89618d;}async[_0x3c69ef(0x1bc)](_0x4dcec0){const _0x14070f=_0x3c69ef;let _0x2acbe7=this['getUploadOptions']();if(zn(_0x4dcec0,_0x2acbe7),_0x2acbe7['upload'])return _0x2acbe7['upload'](_0x4dcec0);let _0x166f02=await this[_0x14070f(0x36d)](_0x4dcec0);return{'id':_0x166f02,'name':_0x4dcec0[_0x14070f(0x245)],'mimeType':_0x4dcec0[_0x14070f(0x315)],'size':_0x4dcec0[_0x14070f(0x229)],'sourceType':_0x14070f(0x3ba),'source':_0x166f02};}async[_0x3c69ef(0x36d)](_0x4d271b){const _0x2a9a5b=_0x3c69ef;let _0x4f4cc6=this['_univerInstanceService'][_0x2a9a5b(0x230)](),_0x3fc7ea=_0x4f4cc6==null?void 0x0:_0x4f4cc6['getUnitId']();if(!_0x3fc7ea)throw Error(_0x2a9a5b(0x33c));let _0x204ae6=new FormData();_0x204ae6['append']('file',_0x4d271b);let _0x3701ac=this['_getUploadFileURL']()+_0x2a9a5b(0x2d9)+_0x4d271b['size'][_0x2a9a5b(0x2a1)]()+_0x2a9a5b(0x3d7)+_0x316b67[_0x2a9a5b(0x38e)]+_0x2a9a5b(0x29d)+encodeURIComponent(_0x3fc7ea),_0x2e72c5=(await this[_0x2a9a5b(0x2e8)]['post'](_0x3701ac,{'body':_0x204ae6}))[_0x2a9a5b(0x31c)][_0x2a9a5b(0x418)];if(typeof _0x2e72c5!=_0x2a9a5b(0x3e7)||!_0x2e72c5)throw Error(_0x2a9a5b(0x3f9));return _0x2e72c5;}[_0x3c69ef(0x35f)](){const _0x754ffb=_0x3c69ef;var _0x4f5862;return(_0x4f5862=this[_0x754ffb(0x1c7)]()[_0x754ffb(0x1fb)])==null?'/universer-api/stream/file/upload':_0x4f5862;}['_getConfig'](){const _0x408852=_0x3c69ef;var _0x5ee068;return(_0x5ee068=this['_configService'][_0x408852(0x353)](_0x408852(0x268)))==null?{}:_0x5ee068;}};Rn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0xe230cc(_0x1f37e4)),B(0x2,_0xe230cc(_0x344fe1))],Rn);function zn(_0x2a86ea,_0x1db651){const _0x378329=_0x3c69ef;var _0x468eac;if(_0x1db651[_0x378329(0x385)]!=null&&_0x2a86ea['size']>_0x1db651[_0x378329(0x385)])throw Error(_0x378329(0x340));if((_0x468eac=_0x1db651[_0x378329(0x311)])!=null&&_0x468eac[_0x378329(0x3a1)]&&!_0x1db651[_0x378329(0x311)]['some'](_0x16deef=>_0x2a86ea['type']===_0x16deef||_0x2a86ea[_0x378329(0x245)][_0x378329(0x2ac)](_0x16deef)||_0x16deef[_0x378329(0x2ac)]('/*')&&_0x2a86ea[_0x378329(0x315)]['startsWith'](_0x16deef[_0x378329(0x335)](0x0,-0x1))))throw Error(_0x378329(0x384));}let Bn=class{constructor(_0x3d09af,_0x3712c3,_0x409b6a){const _0xf359e7=_0x3c69ef;this[_0xf359e7(0x305)]=_0x3d09af,this['_httpService']=_0x3712c3,this['localeService']=_0x409b6a,this['init']();}[_0x3c69ef(0x2ea)](){const _0x242f62=_0x3c69ef;this[_0x242f62(0x2e8)][_0x242f62(0x3a5)]({'priority':0x1,'interceptor':(_0x281134,_0x1f1adc)=>_0x1f1adc(_0x281134)['pipe'](_0x55ed4c(async _0x11c3af=>{const _0x32faf7=_0x242f62;let _0x13c64e=_0x11c3af;if(_0x13c64e[_0x32faf7(0x275)]===0x191){if(typeof window>'u')throw Error(_0x32faf7(0x345));if(window['confirm'](this[_0x32faf7(0x21e)]['t'](_0x32faf7(0x3bb)))){let _0x534677=window[_0x32faf7(0x2e2)](window[_0x32faf7(0x1b4)][_0x32faf7(0x30d)]);window[_0x32faf7(0x1b4)]['href']=this[_0x32faf7(0x1a3)]()+_0x32faf7(0x3a0)+_0x534677;}}return _0x13c64e;}))});}[_0x3c69ef(0x1a3)](){const _0x5c3c45=_0x3c69ef;var _0x2d95ea;let _0x1ce58d=this[_0x5c3c45(0x305)][_0x5c3c45(0x353)](L);return(_0x2d95ea=_0x1ce58d==null?void 0x0:_0x1ce58d['loginUrlKey'])==null?'/universer-api/oidc/authpage':_0x2d95ea;}};function _0x36d7(){const _0x5059f8=['readyForCollab','_stopTelemetryCollaborationNewChangeset','getConfig','_createSocket','onload','_memberService','\x0aCurrent:\x20','getCfgEnableObjInherit','/-/object/-/batch_allowed','function','JOIN_ROOM_FAILED','subject','map','reconnect','_getUploadFileURL','UNIVER_BOARD','5636952JZFHfg','_toggleOnline','_onUserJoin','fetchMissingChangesets','UPDATE_PERMISSION_OBJ','_transformIMECache','_event$','getValue','session.join-failed','constructor','getAllMembers','SUBMIT_CHANGESET','_upload','title','allowed','_onConflict','findIndex','_getUndoStack','_changesetReqId','_collaborationTimeoutTimer','resourceIDs','columnGroups','emitEvent','state','shouldCloseConn','UPDATE_CURSOR','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sheets','_onRemoteRetry','HEARTBEAT_INTERVAL','URL','pipe','/universer-api/snapshot/','_unitInfo$','docStateChange$','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','maxSize','headers','has','transformUndoRedo','HELLO','updatePermissionObjEvent','onCommentUpdate','onRemoteAck','_roomMembers','UnitEmbedded','_onJoinRoomEvent','/universer-api/stream/file/upload','symbol','COMPRESS_MUTATION_APPLY','delete','_onRemoteACK','getTypeOfUnitAdded$','_replayCachedMutations','1.0.0-alpha.3','authzUrl','_telemetryService','_createHandler','POST','8UsRIhV','_clearHeartbeatTimer','_updateStatus','LIVESHARE_NEW_HOST','?url=','length','refreshPermission','_undoRedoService','JOIN_ROOM_NOT_EXISTS','registerHTTPInterceptor','m2Prime','loadDoc','BASE64','_lockTransition','complete','FETCH_MISSING','_executeRemoteChangeset','actions','joinRsp','_entityInit$','pending','then','charCodeAt','UNIVER_BASE','joinEvent','_userManagerService','JOIN','&to=','disposeWithMe','objectActions','UUID','collaboration-client.auth.needGotoLoginAlert','/new_changes','CLOSE_ROOM','getWorkbookSelections','clear','userID','_clearRedo','connection\x20error','unsubscribe','defineProperty','_replaceFileID','params','PENDING','UNIVER_SLIDE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','find','ONLINE','_onFetchMissResult','startsWith','loadOfflineData','isArray','initWorkbookPermissionChange','workbook','_collabSessionService','fromCharCode','status$','onTransformState','unit','&source=','target','INGEST','resolve','[PendingState]:\x20unhandled\x20univer\x20type:\x20','NOT_COLLAB','_schedule','default','_applyRemoteChangeset','saveSnapshot','getCollabEntity$','LIVESHARE_OPERATION','SYNCED','_throwTelemetryCollaborationNewChangeset','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','open$','string','onSendChangeset','_onUserLeave','loadBoard','_clearCollaborationTimeoutTimer','_adapter','_type','uniscriptRunEvent','_eventService','eventID','baseRev','candidateSocket','_transformStack','_logService','_waitForHeartbeatResponse','session.room-cnt-exceeds','_exhaustRemoteChangesetQueue','src','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','every','[OfflineState]:\x20received\x20rejection.','_doCreateSocket','getMemberID','appendMutation','_joinRoom','_onRemoteRejected','prototype','tables','_revisionService','279246AOhUVI','_snapshotService','getSheetBlock','duration','timeoutTimer','PERSON','/resources','enableAuthServer','unitID','floor','resolveUnit','_change$','_getAPIPrefix','updateOfflineData','/allowed','_initDependencies','_shouldReportTelemetry','editingUnit','_fetchMissChangesets','_resendWithTimeout','FileId','_onMessage','_waitCount','patch','onSyncEditingCollabCursor','sid','setCfgEnableObjInherit','infoRsp','subscribe','mutations','update','_substituteUndoStack','pluginName','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getSnapshotAPIPath','isPermissionRej','SOCKET_FAILED_RETRY','onStateChange','_changesetSessionId','override','__splitChunk__','_handler','_collaborationSessionService','collaborators','_members','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','error','next','getOwnPropertyDescriptor','max','localCacheService','MSG_FOR_ERROR','_transformRemoteChangesetByIMECache','socket\x20open.','saveChangeset','_unlockTransition','_getLoginPath','UNIVER_SHEET','enableOfflineEditing','_onConnectionFailed','_pendingMutations','originalMeta','_commentUpdate$','442842Hxjxmj','batchAllowed','_commandService','_createInitialStateImpl','encode','selections','endpointKey','AWAITING','Univer','saveImage','location','equals','_incrementRevisionNumber','event$','getUnit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_univerInstanceService','[PendingState]:\x20received\x20acknowledgement.','saveAttachment','csRejEvent','_compressMutationService','Error\x20on\x20receiving\x20event','putCollaborators','[CollaborationSessionService]','[DataLoaderService]','session','_getRedoStack','requestParams','_transformService','_getConfig','ERROR_IMAGE_TYPE','transformStack\x20failed!','now','_imageSourceCache','asObservable','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OPTIONAL','OTHER_CLIENTS_EDITING','/universer-api/authz','online$','onTransformRemoteChangesetByStateCache','_onConnectionOpen','onlyLocal','_initUnitPermissionChange','_resendTimeout','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onLocalMutation','_commentService','error$','call','[OfflineState]:\x20received\x20acknowledgement.','unit-cache-','_getAPIPrefixPath','onTransformRemoteChangesetByIMECache','object','/universer-api/user/session-ticket','put','_pendingSessions','_sheetTransformSelectionsService','forEach','1000085lQjvpb','x-univer-host','_onOffline','_socketMessageSubscription','packageName','\x20-\x20','USERS_ENTER','_remoteChangesetQueue','__Key__','values','CONFLICT','socketService','_members$','retryCount','_localCacheService','/universer-api/file/{fileID}/sign-url','/collaborator','/rev/','transformChangesets','_handlerCallback','close$','uploadFileServerUrl','_transformRemoteChangesetByStateCache','interceptor','backupOfflineData','univer-pro.collaboration-client.network-condition.service','_getSendChangesetTimeout','collabSubmitChangesetUrl','rev','/unit/','_scheduleCompleteTimestamp','_onRemoteChangeset','setCurrentUser','enableSingleActiveInstanceLock','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','not_collab','onRemoteRetry','dispose','fetching\x20missing\x20changesets\x20from\x20','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','[FetchMissState]','get','filter','_getSignURL','socketReady','listCollaborators','_createSession','_tryReconnect','_handleRemoteChangesets','push','onTransformSelections','missingChangesets','_disableEditing','38398xxtaJV','csShouldRetryEvent','LIVESHARE_REQUEST_HOST','localeService','_tryEnsureSocket','set','_entities','_state','memberID','liveShareNewHost','reduce','_instanceService','_config','createCollaborator','size','range','awaiting_with_pending','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isCompositionEnd','leaveEvent','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getFocusedUnit','OTHER_CLIENT_EDITING','_state$','_HTTPService','\x20to\x20','collaMsg','LIVESHARE_TERMINATE','attachment','some','change$','changesets','resend','onMissingChangesets','collabWebSocketUrl','LOCAL_CACHE_INTERVAL','/universer-api/comb','_getSocketChannel','univer-pro.collaboration-client.single-active-unit-service','unitType','_clearTimeoutTimer','loadUnitOfRevision','name','textRanges','post','_syncEditingCollabCursor','MUTATION','onMutationExecutedForCollab','CHANGESET_SHOULD_RETRY','replace','createInstance','SUCCUSS','includes','snapshot','UNISCRIPT_RUN','_networkConditionService','create','readAsDataURL','offline','reqId','roles','cmd','_sendingTimer','[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.','setShowComponents','_queuedRemoteChangesets','close','objects','base-ui.attachment-io.service','_undoStacks','message$','_scheduleCollaborationTimeoutTimer','unknown','1353177iyuXef','NEW_CHANGESETS','removeMember','_clearUndo','collaboration-client.config','PSEUDO_FETCH_MISSING_RESULT','disableLocalCache','setWaitCount','[CollaborationEntity]','parse','hasOwnProperty','_sender','getUnitId','PERMISSION_REJ','indexOf','_decreaseWaiting','UNIVER_DOC','status','_rescheduleHeartbeat','snapshotServerUrl','saveSheetBlock','entries','_injector','FETCH_MISS','fromCollab','ERROR_IMAGE','/fetchmissing?from=','capture','_createInitialState','sendChangesetTimeout','_initCloseConn','commentUpdateEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_updateState','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_listenToNetworkCondition','univer-pro.collaboration-client-adapter-service','sessionStatus','code','SUBMIT_CHANGESET_TIMEOUT','_isPermissionRej','sendHeartbeatTimer','collaboration_new_changeset','onRemoteRej','_collaborationUIEventService','COMPRESS_MUTATION_SEND','liveShareOperation','_init','dispose$','executeCommand','unitId','[CollaborationSession]','_transformAndApplyRemoteChangeset','catch','getInterceptPoints','ERROR_EXCEED_SIZE','c1Prime','&assign=','_telemetryInfo','_socketChannels','_startCollaboration','toString','getUploadOptions','getTime','_acknowledgeAwaitingIfReady','_initMergeInterceptor','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_sessions','/role','HEARTBEAT_TIMEOUT','_sessionChannels','text-x','endsWith','getActiveSheet','sessionStatus$','awaitingChangeset','[CollaborationUndoRedoService]','fetchThroughInterceptors','_showConflictNotification','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_registerDependencies','socket$','_clearScheduledTask','_removeRoom','_emitMembers','toggleOnline','_transformSelections','result','_updateLocalCache','_awaitingChangeset','onTransformIME','loadSlide','_localeService','permissionRejEvent','changeset','objectType','_transitionLocked','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','debug','encrypt','_status$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','pauseCollaboration','_sessionStatus$','_collaborationPaused','fetchMiss','/object/','version','retryConnectingTimer','_clearLocalCache','_acknowledgedAwaitingRevision','_cfgEnableObjInherit','requireSession','_singleActiveUnitService','_startTelemetryCollaborationNewChangeset','createSocket','UNIVER_COLLABORATION_CLIENT_PLUGIN','?size=','_submitChangeset','_isEchoedAwaitingChangeset','100584IVWskT','_onCombEvent','ws://127.0.0.1:8000/universer-api/comb/connect','NO_OTHER_CLIENTS_EDITING','unitInfo$','\x0aAfter:\x20','encodeURIComponent','c2Prime','localUnitId','_docStateChangeManagerService','synced','waitForRoom$','_httpService','_roomCreated$','init','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','state$','socket\x20close','data','number','_onRecvEvent','toggleOffline','_identity','socketMessageSubscription','_getDownloadEndpointURL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','transformMutationsWithChangeset','stringify','_initRequestHeader','RECV','addImageSourceCache','[UniverCollaborationClientPlugin]','incrementRevOfUnit','routeKey','revision','getUnitOnRev','PERMISSION_DENIED','Failed\x20to\x20update\x20permission\x20point','fetch_missing','apply','min','_configService','getCurrentRevOfUnit','4TnBodK','add','_transformUndoredo','COMMENT_UPDATE','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','failed\x20to\x20apply\x20missed\x20changesets!','href','session.room-permission-denied','_onLocalMutation','addHandlerCallback','accept','_getCurrentRevision','_permissionService','list','type','updateMember','RETRY_CONNECTING_MAX_COUNT','_resendTimer','transformSelections','send','LEAVE','body','_acknowledgeAwaiting','HEARTBEAT','stopTime','getCollabEntity','getRoom','_maxTotalRetryTimeout','onRemoteChangeset','decorate','listRoles','reject','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnitType','_socket','getTypeOfUnitDisposed$','updatePermissionPoint','IDLE','getCurrentUser','closeSession','_checkMissing','getImage','getMember','_unitLoaded$','enableCollaboration','USERS_LEAVE','slice','_clearRetryConnectingTimer','url','conflict','getSheetId','/block/','editing\x20status\x20changed\x20to','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','blockRanges','onMissedChangesetFetched','downloadEndpointUrl','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','objectID','OFFLINE','SOCKET_FAILED','JOINING','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_resolveSessionIdentity','updateCollaborator','CHANGESET_ACK','append','endpoint','_hasSessionsForEndpoint','getDeserializedSheetBlock','telemetry\x20info\x20is\x20not\x20initialized','session.room-not-exists','csAckEvent','_toggleOffline'];_0x36d7=function(){return _0x5059f8;};return _0x36d7();}Bn=V([B(0x0,_0x1f37e4),B(0x1,_0xe230cc(_0x32d10d)),B(0x2,_0xe230cc(_0x9a407d))],Bn);let Vn=class extends _0x1c670c{constructor(_0xf145b9,_0x35395c){const _0x2ffe5b=_0x3c69ef;super(),this['_HTTPService']=_0xf145b9,this[_0x2ffe5b(0x305)]=_0x35395c,R(this,_0x2ffe5b(0x2d3),!0x1),this[_0x2ffe5b(0x2a5)]();}[_0x3c69ef(0x2a5)](){const _0x45ba3e=_0x3c69ef;let _0x4a7148=this;this[_0x45ba3e(0x3b8)](this['_HTTPService'][_0x45ba3e(0x3a5)]({'priority':0x3e7,'interceptor':_0x392035({'isMatch'(_0x226e40){const _0x117a73=_0x45ba3e;var _0x4d0b0b;if(_0x226e40['method']==='POST'&&(_0x4d0b0b=_0x226e40[_0x117a73(0x1c5)])!=null&&_0x4d0b0b['body']){let {objectID:_0x28706b,objectType:_0xa70cc1}=_0x226e40[_0x117a73(0x1c5)][_0x117a73(0x31c)]||{};if(!_0x28706b||_0xa70cc1===void 0x0)return!0x1;let _0x5636f1=_0x4a7148[_0x117a73(0x1de)]()+'/'+_0xa70cc1+_0x117a73(0x2ce)+_0x28706b+_0x117a73(0x412);if(_0x226e40[_0x117a73(0x337)]===_0x5636f1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5c7f76){const _0x1f18ba=_0x45ba3e;var _0x3e50ff;return(_0x3e50ff=_0x5c7f76[_0x1f18ba(0x1c5)])==null?void 0x0:_0x3e50ff[_0x1f18ba(0x31c)];},'mergeParamsToRequest'(_0x2b4340,_0x5ef54b){const _0x424837=_0x45ba3e;let _0x54b521=_0x4a7148[_0x424837(0x1de)]()+_0x424837(0x359),_0x4a83f6=_0x2b4340[_0x424837(0x225)]((_0x33c370,_0x8fd0c4)=>{const _0x18666e=_0x424837;let {unitID:_0x1ad1ea,objectID:_0x585453,objectType:_0x2afa9b,actions:_0x3e6e86}=_0x8fd0c4;return _0x33c370[_0x1ad1ea]||(_0x33c370[_0x1ad1ea]={}),_0x33c370[_0x1ad1ea][_0x585453]||(_0x33c370[_0x1ad1ea][_0x585453]={'objectID':_0x585453,'objectType':_0x2afa9b,'actions':[]}),_0x33c370[_0x1ad1ea][_0x585453][_0x18666e(0x3ad)][_0x18666e(0x217)](..._0x3e6e86),_0x33c370;},{}),_0x1297df=[];for(let _0xc841dc in _0x4a83f6)for(let _0x2f8925 in _0x4a83f6[_0xc841dc]){let {actions:_0x184fa4,objectType:_0x306127}=_0x4a83f6[_0xc841dc][_0x2f8925],_0x4bebd5=[...new Set(_0x184fa4)];_0x1297df[_0x424837(0x217)]({'unitID':_0xc841dc,'objectID':_0x2f8925,'objectType':_0x306127,'actions':_0x4bebd5});}return new _0x200900(_0x424837(0x39b),_0x54b521,{'headers':_0x5ef54b[_0x424837(0x386)],'withCredentials':_0x5ef54b['withCredentials'],'responseType':_0x5ef54b['responseType'],'body':{'requests':_0x1297df}});}},{'distributeResult'(_0x375e76,_0x9df3b6){const _0x2189c7=_0x45ba3e;let {objectActions:_0x19cd7f}=_0x375e76;return _0x9df3b6[_0x2189c7(0x35d)](_0x155364=>{const _0x4b807b=_0x2189c7;let {unitID:_0x386926,objectID:_0x43687d,actions:_0x3fd73d}=_0x155364,_0x4449c8=_0x19cd7f[_0x4b807b(0x3ca)](_0x1452b4=>_0x1452b4[_0x4b807b(0x40c)]===_0x386926&&_0x1452b4[_0x4b807b(0x341)]===_0x43687d);return{'config':_0x155364,'result':{'actions':_0x3fd73d[_0x4b807b(0x35d)](_0x39e168=>_0x4449c8==null?void 0x0:_0x4449c8[_0x4b807b(0x3ad)]['find'](_0x3a0f06=>_0x3a0f06['action']===_0x39e168))[_0x4b807b(0x210)](_0x37251f=>!!_0x37251f),'error':_0x375e76['error']}};});}})}));}[_0x3c69ef(0x1de)](){const _0x2c3c47=_0x3c69ef;var _0x2de2b2;let _0x70afc3=this[_0x2c3c47(0x305)]['getConfig'](L);return(_0x2de2b2=_0x70afc3==null?void 0x0:_0x70afc3['authzUrl'])==null?'/universer-api/authz':_0x2de2b2;}async[_0x3c69ef(0x253)](_0x39fe4b){const _0xc5b793=_0x3c69ef;let _0x5dcd33=this[_0xc5b793(0x1de)]()+'/'+_0x39fe4b['objectType']+'/object';return(await this[_0xc5b793(0x233)][_0xc5b793(0x247)](_0x5dcd33,{'body':_0x39fe4b}))[_0xc5b793(0x31c)][_0xc5b793(0x341)]||'';}async[_0x3c69ef(0x314)](_0x3c7549){const _0x13301f=_0x3c69ef;let _0x3c6f63=this[_0x13301f(0x1de)]()+'/-/object/list';return(await this[_0x13301f(0x233)][_0x13301f(0x247)](_0x3c6f63,{'body':_0x3c7549}))['body'][_0x13301f(0x25e)];}async[_0x3c69ef(0x189)](_0x50dcd3){const _0x20393d=_0x3c69ef;var _0x333f2f;let _0x3fceee=this['_getAPIPrefixPath']()+'/'+_0x50dcd3[_0x20393d(0x2c3)]+'/object/'+_0x50dcd3[_0x20393d(0x341)],_0x4ea9b0=await this['_HTTPService'][_0x20393d(0x1e2)](_0x3fceee,{'body':_0x50dcd3});if((_0x4ea9b0==null||(_0x333f2f=_0x4ea9b0[_0x20393d(0x31c)])==null||(_0x333f2f=_0x333f2f[_0x20393d(0x199)])==null?void 0x0:_0x333f2f['code'])!==0x1)throw Error(_0x20393d(0x301));}async[_0x3c69ef(0x36f)](_0x177b41){const _0x5adbc7=_0x3c69ef;let _0x116b3f=this['_getAPIPrefixPath']()+'/'+_0x177b41['objectType']+_0x5adbc7(0x2ce)+_0x177b41[_0x5adbc7(0x341)]+_0x5adbc7(0x412);return(await this[_0x5adbc7(0x233)][_0x5adbc7(0x247)](_0x116b3f,{'body':_0x177b41}))['body'][_0x5adbc7(0x3ad)];}async[_0x3c69ef(0x1ab)](_0x487f93){const _0x398b30=_0x3c69ef;let _0x290746=this[_0x398b30(0x1de)]()+_0x398b30(0x359);return(await this['_HTTPService']['post'](_0x290746,{'body':{'requests':_0x487f93}}))[_0x398b30(0x31c)][_0x398b30(0x3b9)];}async[_0x3c69ef(0x325)](_0x36e0b0){const _0x457bef=_0x3c69ef;let _0x417b94=this[_0x457bef(0x1de)]()+'/'+_0x36e0b0['objectType']+_0x457bef(0x2a8),_0x34d97f=await this[_0x457bef(0x233)][_0x457bef(0x247)](_0x417b94,{'body':_0x36e0b0});return{'roles':_0x34d97f['body'][_0x457bef(0x257)],'actions':_0x34d97f['body'][_0x457bef(0x3ad)]};}async['deleteCollaborator'](_0x4f0a80){const _0x6a8231=_0x3c69ef;let _0x1b2e23=this[_0x6a8231(0x1de)]()+_0x6a8231(0x1f6);await this[_0x6a8231(0x233)][_0x6a8231(0x393)](_0x1b2e23,{'params':{'collaboratorID':_0x4f0a80['collaboratorID'],'objectID':_0x4f0a80[_0x6a8231(0x341)],'unitID':_0x4f0a80['unitID']}});}async[_0x3c69ef(0x347)](_0x1cc04e){const _0x6400d5=_0x3c69ef;let _0x219360=this['_getAPIPrefixPath']()+_0x6400d5(0x1f6);await this['_HTTPService'][_0x6400d5(0x41b)](_0x219360,{'body':_0x1cc04e});}async[_0x3c69ef(0x228)](_0x2efe19){const _0x12f089=_0x3c69ef;let _0x446cd1=this[_0x12f089(0x1de)]()+'/collaborator';await this[_0x12f089(0x233)][_0x12f089(0x247)](_0x446cd1,{'body':_0x2efe19});}async[_0x3c69ef(0x213)](_0x4aa67c){const _0x4d96a4=_0x3c69ef;var _0x3b0a1f;let _0x1be069=this[_0x4d96a4(0x1de)]()+_0x4d96a4(0x1f6),_0x5912d3=await this[_0x4d96a4(0x233)][_0x4d96a4(0x20f)](_0x1be069,{'params':{'objectID':_0x4aa67c[_0x4d96a4(0x341)],'unitID':_0x4aa67c['unitID']}});return this[_0x4d96a4(0x41e)]((_0x3b0a1f=_0x5912d3[_0x4d96a4(0x31c)]['cfgEnableObjInherit'])==null?!0x1:_0x3b0a1f),_0x5912d3['body'][_0x4d96a4(0x196)];}async[_0x3c69ef(0x1c0)](_0x33f5b2){const _0x358ad1=_0x3c69ef;let _0x212619=this[_0x358ad1(0x1de)]()+'/collaborator';await this['_HTTPService'][_0x358ad1(0x1e2)](_0x212619,{'body':_0x33f5b2});}['setCfgEnableObjInherit'](_0x2e30fa){const _0x2b2b7b=_0x3c69ef;this[_0x2b2b7b(0x2d3)]=_0x2e30fa;}[_0x3c69ef(0x358)](){const _0x15cec4=_0x3c69ef;return this[_0x15cec4(0x2d3)];}};Vn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0xe230cc(_0x1f37e4))],Vn);function Hn(_0xb1eece){const _0x1e91c7=_0x3c69ef;let _0x38e6d4=atob(_0xb1eece),_0x5b48e6=new Uint8Array(_0x38e6d4[_0x1e91c7(0x3a1)]);for(let _0x170999=0x0;_0x170999<_0x38e6d4[_0x1e91c7(0x3a1)];_0x170999++)_0x5b48e6[_0x170999]=_0x38e6d4[_0x1e91c7(0x3b2)](_0x170999);return _0x5b48e6;}function Un(_0x5ddf73){const _0x1c06d7=_0x3c69ef;let _0x11f1a3='';for(let _0x549bbc=0x0;_0x549bbc<_0x5ddf73['length'];_0x549bbc++)_0x11f1a3+=String[_0x1c06d7(0x3d3)](_0x5ddf73[_0x549bbc]);return btoa(_0x11f1a3);}function Wn(_0x4d6ad1,_0x47490e){const _0x376b30=_0x3c69ef;let _0x834fad=Hn(_0x47490e),_0x24d96c=_0x3911d9(0x10);return Un(_0x1ecd97(_0x24d96c,_0x89c1d1(_0x834fad,_0x24d96c)[_0x376b30(0x2c7)](_0x3329bb(_0x4d6ad1))));}function Gn(){const _0x39baf1=_0x3c69ef;let _0x2601df=_0x1c22a4()[_0x39baf1(0x1ee)];if(typeof window<'u'&&window[_0x39baf1(0x1b4)]!==void 0x0&&_0x2601df){let _0x3eeb62={'time':Math[_0x39baf1(0x40d)](Date[_0x39baf1(0x1ca)]()/0x3e8),'domain':location['hostname']};return Wn(JSON[_0x39baf1(0x2f7)](_0x3eeb62),_0x2601df);}}let Kn=class{constructor(_0x407fe7){const _0x4c08ac=_0x3c69ef;this[_0x4c08ac(0x2e8)]=_0x407fe7,this[_0x4c08ac(0x2f8)]();}['_initRequestHeader'](){const _0x42fe34=_0x3c69ef;this[_0x42fe34(0x2e8)][_0x42fe34(0x3a5)]({'interceptor':(_0x349100,_0x2dba32)=>{const _0x1b43e6=_0x42fe34;let _0x287c99=Gn();return _0x287c99&&_0x349100[_0x1b43e6(0x386)][_0x1b43e6(0x220)](_0x1b43e6(0x1e7),_0x287c99),_0x2dba32(_0x349100);}});}};Kn=V([B(0x0,_0xe230cc(_0x32d10d))],Kn);let qn=class extends _0x50b38b{constructor(_0x3a7507,_0x296463,_0x1446e4){const _0x35beea=_0x3c69ef;super(),this[_0x35beea(0x3f4)]=_0x3a7507,this['_snapshotService']=_0x296463,this['_localCacheService']=_0x1446e4,R(this,_0x35beea(0x382),new _0x296086(null)),R(this,_0x35beea(0x332),new _0x59eece()),R(this,_0x35beea(0x2e0),this['_unitInfo$']['asObservable']()),R(this,'unitLoaded$',this[_0x35beea(0x332)]['asObservable']());}['dispose'](){const _0x24f104=_0x3c69ef;super[_0x24f104(0x20b)](),this['_unitLoaded$'][_0x24f104(0x3aa)](),this[_0x24f104(0x382)][_0x24f104(0x3aa)]();}async[_0x3c69ef(0x244)](_0x5a7247,_0x3061dc,_0x38c803){const _0xfd0031=_0x3c69ef;this[_0xfd0031(0x382)][_0xfd0031(0x19a)]({'unitId':_0x5a7247,'type':_0x3061dc});let _0x39a964=null;switch(_0x3061dc){case _0x9a8e4e['UNIVER_SHEET']:_0x39a964=await this[_0xfd0031(0x405)]['loadSheet'](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x274)]:_0x39a964=await this[_0xfd0031(0x405)][_0xfd0031(0x3a7)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x3c8)]:_0x39a964=await this['_snapshotService'][_0xfd0031(0x2bf)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x360)]:_0x39a964=await this[_0xfd0031(0x405)][_0xfd0031(0x3ea)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x3b3)]:_0x39a964=await this['_snapshotService']['loadBase'](_0x5a7247,_0x38c803);break;default:this['_logService'][_0xfd0031(0x199)]('[DataLoaderService]',_0xfd0031(0x327));break;}return _0x39a964&&this['_unitLoaded$'][_0xfd0031(0x19a)](_0x39a964),_0x39a964;}async['loadUnit'](_0x12fa3d,_0x3898b2,_0x585121){const _0x5164a9=_0x3c69ef;var _0x5edb03;this[_0x5164a9(0x382)][_0x5164a9(0x19a)]({'unitId':_0x12fa3d,'type':_0x3898b2,'subUnitId':_0x585121});let _0x3cfd91=0x0,_0x51bd38=await((_0x5edb03=this['_localCacheService'])==null?void 0x0:_0x5edb03['loadOfflineData'](_0x12fa3d));return _0x51bd38&&(_0x51bd38[_0x5164a9(0x2af)]||_0x51bd38[_0x5164a9(0x188)][_0x5164a9(0x3a1)]!==0x0)&&(_0x3cfd91=_0x51bd38[_0x5164a9(0x202)]),_0x3cfd91===0x0&&this['_logService'][_0x5164a9(0x2c6)](_0x5164a9(0x1c2),_0x5164a9(0x284)),this[_0x5164a9(0x244)](_0x12fa3d,_0x3898b2,_0x3cfd91);}};qn=V([B(0x0,_0x5c3e7f),B(0x1,_0xe230cc(_0x45d3b5)),B(0x2,_0x2b3cfa(U))],qn);let Jn=class{constructor(_0x5e7a27,_0x1ecf2e,_0x16b8fc){const _0x5de4c0=_0x3c69ef;this['_httpService']=_0x5e7a27,this[_0x5de4c0(0x305)]=_0x1ecf2e,this[_0x5de4c0(0x1ba)]=_0x16b8fc,R(this,'_waitCount',0x0),R(this,_0x5de4c0(0x40f),new _0x59eece()),R(this,_0x5de4c0(0x239),this[_0x5de4c0(0x40f)]),R(this,_0x5de4c0(0x1cb),new Map());}[_0x3c69ef(0x26b)](_0x50bd40){const _0x1372f3=_0x3c69ef;this[_0x1372f3(0x41a)]=_0x50bd40,this[_0x1372f3(0x40f)][_0x1372f3(0x19a)](_0x50bd40);}['getImageSourceCache'](_0x506a59,_0x3ab86b){const _0x153a76=_0x3c69ef;if(_0x3ab86b===_0xb1e59a['BASE64']){let _0xb36e13=new Image();return _0xb36e13[_0x153a76(0x3f8)]=_0x506a59,_0xb36e13;}return this[_0x153a76(0x1cb)]['get'](_0x506a59);}[_0x3c69ef(0x2fa)](_0x41fbff,_0x16bd38,_0x16867a){const _0x2f0481=_0x3c69ef;_0x16bd38===_0xb1e59a[_0x2f0481(0x3a8)]||_0x16867a==null||this[_0x2f0481(0x1cb)][_0x2f0481(0x220)](_0x41fbff,_0x16867a);}async[_0x3c69ef(0x330)](_0x129e8c){const _0x24f92c=_0x3c69ef;try{let _0xc08f69=this[_0x24f92c(0x3c5)](this[_0x24f92c(0x211)](),''+_0x129e8c),_0x32eb7c=(await this[_0x24f92c(0x2e8)]['get'](_0xc08f69))['body'];if(_0x32eb7c[_0x24f92c(0x199)]&&_0x32eb7c[_0x24f92c(0x199)]['code']===_0x291ad4['OK']){let _0x25f46c=_0x6dad3d(_0x32eb7c[_0x24f92c(0x337)],this[_0x24f92c(0x2f4)]());return Promise[_0x24f92c(0x3da)](_0x25f46c);}return Promise[_0x24f92c(0x326)](_0x32eb7c[_0x24f92c(0x199)]);}catch(_0x532e64){return Promise['reject'](_0x532e64);}}async[_0x3c69ef(0x1b3)](_0x567db0){const _0x14c4b7=_0x3c69ef;let _0x2f95d5='';if(!_0x43c969[_0x14c4b7(0x24f)](_0x567db0[_0x14c4b7(0x315)]))return this[_0x14c4b7(0x273)](),Promise['reject'](Error(_0x320d1a[_0x14c4b7(0x1c8)]));if(_0x567db0['size']>_0x3e4b91())return this[_0x14c4b7(0x273)](),Promise['reject'](Error(_0x320d1a[_0x14c4b7(0x29b)]));try{let _0x1f1452=new FormData();_0x1f1452[_0x14c4b7(0x349)]('file',_0x567db0);let _0x563536=this[_0x14c4b7(0x1ba)][_0x14c4b7(0x230)](),_0x5e0627=_0x563536==null?void 0x0:_0x563536[_0x14c4b7(0x270)]();if(!_0x5e0627)throw Error('unitId\x20is\x20not\x20found');let _0x54be06=this[_0x14c4b7(0x35f)]()+_0x14c4b7(0x2d9)+_0x567db0[_0x14c4b7(0x229)][_0x14c4b7(0x2a1)]()+'&source='+_0x316b67[_0x14c4b7(0x38e)]+'&assign='+encodeURIComponent(_0x5e0627),_0x49cf52={'body':_0x1f1452},_0x2d0230=(await this[_0x14c4b7(0x2e8)][_0x14c4b7(0x247)](_0x54be06,_0x49cf52))[_0x14c4b7(0x31c)];if(typeof _0x2d0230[_0x14c4b7(0x418)]!=_0x14c4b7(0x3e7))return this[_0x14c4b7(0x273)](),Promise[_0x14c4b7(0x326)](Error(_0x320d1a[_0x14c4b7(0x27d)]));_0x2f95d5=_0x2d0230[_0x14c4b7(0x418)];}catch{return this[_0x14c4b7(0x273)](),Promise[_0x14c4b7(0x326)](Error(_0x320d1a['ERROR_IMAGE']));}return new Promise((_0x33a029,_0x498b14)=>{const _0x400365=_0x14c4b7;let _0x288ed8=new FileReader();_0x288ed8[_0x400365(0x254)](_0x567db0),_0x288ed8[_0x400365(0x355)]=_0x1df57d=>{const _0x388573=_0x400365;var _0x531b2f;let _0x374f60=(_0x531b2f=_0x1df57d[_0x388573(0x3d8)])==null?void 0x0:_0x531b2f[_0x388573(0x2bb)];if(_0x374f60==null){this['_decreaseWaiting'](),_0x498b14(Error(_0x320d1a[_0x388573(0x27d)]));return;}_0x33a029({'imageId':_0x5c124c(0x6),'imageSourceType':_0xb1e59a[_0x388573(0x3ba)],'source':_0x2f95d5,'base64Cache':_0x374f60,'status':_0x320d1a[_0x388573(0x24e)]}),this[_0x388573(0x273)]();};});}[_0x3c69ef(0x35f)](){const _0x867f89=_0x3c69ef;var _0x2d4ade;let _0x37fdcd=this[_0x867f89(0x305)][_0x867f89(0x353)](L);return(_0x2d4ade=_0x37fdcd==null?void 0x0:_0x37fdcd[_0x867f89(0x1fb)])==null?_0x867f89(0x390):_0x2d4ade;}[_0x3c69ef(0x211)](){const _0x1e7eb3=_0x3c69ef;var _0x16f271;let _0x4cf3a6=this[_0x1e7eb3(0x305)][_0x1e7eb3(0x353)](L);return(_0x16f271=_0x4cf3a6==null?void 0x0:_0x4cf3a6['signUrlServerUrl'])==null?_0x1e7eb3(0x1f5):_0x16f271;}['_getDownloadEndpointURL'](){const _0x54a8f1=_0x3c69ef;var _0x3e0715;let _0x115a51=this[_0x54a8f1(0x305)][_0x54a8f1(0x353)](L);return(_0x3e0715=_0x115a51==null?void 0x0:_0x115a51[_0x54a8f1(0x33f)])==null?location['origin']:_0x3e0715;}[_0x3c69ef(0x3c5)](_0x3773e5,_0x2a5c7b){const _0x231ae9=_0x3c69ef;return _0x3773e5[_0x231ae9(0x24c)]('{fileID}',_0x2a5c7b);}['_decreaseWaiting'](){const _0x42e3ab=_0x3c69ef;--this[_0x42e3ab(0x41a)],this[_0x42e3ab(0x40f)][_0x42e3ab(0x19a)](this[_0x42e3ab(0x41a)]);}};Jn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0x1f37e4),B(0x2,_0xe230cc(_0x344fe1))],Jn);let Yn=class{constructor(_0x5284df,_0x106e52){const _0x44951c=_0x3c69ef;this[_0x44951c(0x305)]=_0x5284df,this['_HTTPService']=_0x106e52;}['_getAPIPrefixPath'](){const _0x4e8015=_0x3c69ef;var _0x1be638;let _0x8bcf85=this[_0x4e8015(0x305)][_0x4e8015(0x353)](L);return(_0x1be638=_0x8bcf85==null?void 0x0:_0x8bcf85[_0x4e8015(0x398)])==null?_0x4e8015(0x1d0):_0x1be638;}async[_0x3c69ef(0x314)](_0x3f9b2f){const _0xe59c12=_0x3c69ef;let _0x1de5e2=this[_0xe59c12(0x1de)]()+'/collaborator';return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0xe59c12(0x20f)](_0x1de5e2,{'params':{'objectID':_0x3f9b2f[_0xe59c12(0x296)],'unitID':_0x3f9b2f[_0xe59c12(0x296)]}}))[_0xe59c12(0x31c)][_0xe59c12(0x196)]['map'](_0x165193=>({'objectId':_0x165193['id'],'name':_0x165193['subject'][_0xe59c12(0x245)],'metadata':{'icon':_0x165193[_0xe59c12(0x35c)]['avatar']},'label':_0x165193['subject'][_0xe59c12(0x245)],'objectType':_0x3a7b55[_0xe59c12(0x409)]})),'metadata':{},'type':_0x3a7b55[_0xe59c12(0x409)]}]};}};Yn=V([B(0x0,_0xe230cc(_0x1f37e4)),B(0x1,_0xe230cc(_0x32d10d))],Yn);let Xn=class extends _0x50b38b{constructor(_0x4479e8,_0xe02e7d,_0x4c2bb1,_0x2d40b2,_0x15bf13){const _0x2cae6a=_0x3c69ef;super(),this['_injector']=_0x4479e8,this[_0x2cae6a(0x1ba)]=_0xe02e7d,this[_0x2cae6a(0x313)]=_0x4c2bb1,this[_0x2cae6a(0x195)]=_0x2d40b2,this['_collaborationUIEventService']=_0x15bf13,this['_initUnitPermissionChange'](),this[_0x2cae6a(0x282)]();}['_initCloseConn'](){const _0x2ba269=_0x3c69ef;let _0x3fc325=async _0x5269d9=>{const _0x3f1118=_0x43c7;(await this[_0x3f1118(0x195)][_0x3f1118(0x2d4)](_0x5269d9))[_0x3f1118(0x1b7)][_0x3f1118(0x380)](_0x26acea(_0x5b2635=>_0x5b2635[_0x3f1118(0x3f0)]===_0x43102b['SHOULD_CLOSE_CONN']),_0x241cda(this[_0x3f1118(0x294)]))['subscribe'](_0x4fc4b2=>{const _0x23a085=_0x3f1118;let {reason:_0x5257d6}=_0x4fc4b2[_0x23a085(0x2ee)];this[_0x23a085(0x290)][_0x23a085(0x377)]({'id':_0x23a085(0x3bd),'data':_0x5257d6}),this[_0x23a085(0x313)][_0x23a085(0x32b)](new _0x1413a3(_0x5269d9)['id'],!0x1),this[_0x23a085(0x195)][_0x23a085(0x32e)](_0x5269d9);});};_0x4802bd(this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x1a4)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x274)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x360)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x3b3)]))[_0x2ba269(0x380)](_0xf99eb3(_0x51b0af=>_0x51b0af[_0x2ba269(0x3d6)][_0x2ba269(0x270)]()),_0x26acea(_0x4277b6=>!_0x5bdd45(_0x4277b6)),_0x241cda(this[_0x2ba269(0x294)]))[_0x2ba269(0x420)](_0x1c6ceb=>{_0x3fc325(_0x1c6ceb);});}[_0x3c69ef(0x1d5)](){const _0x51de51=_0x3c69ef;let _0x398920=async _0x17ea12=>{const _0x51ad69=_0x43c7;let _0x58f3a0=await this['_collaborationSessionService'][_0x51ad69(0x2d4)](_0x17ea12),_0x4ee41c=this[_0x51ad69(0x27a)]['get'](_0x2be84a);_0x58f3a0['event$'][_0x51ad69(0x380)](_0x26acea(_0x512fac=>_0x512fac['eventID']===_0x43102b[_0x51ad69(0x365)]),_0x241cda(this['dispose$']))[_0x51ad69(0x420)](_0x66912a=>{const _0x3eb264=_0x51ad69;let {objectId:_0xca0675}=_0x66912a[_0x3eb264(0x2ee)];_0xca0675===_0x17ea12?_0x4ee41c[_0x3eb264(0x3d0)](_0x17ea12):_0x4ee41c[_0x3eb264(0x3a2)](_0x17ea12,_0xca0675);});};_0x4802bd(this['_univerInstanceService'][_0x51de51(0x395)](_0x9a8e4e[_0x51de51(0x1a4)]))[_0x51de51(0x380)](_0xf99eb3(_0x415e02=>_0x415e02[_0x51de51(0x3d6)][_0x51de51(0x270)]()),_0x26acea(_0x517d5d=>!_0x5bdd45(_0x517d5d)),_0x241cda(this[_0x51de51(0x294)]))[_0x51de51(0x420)](_0x7470b6=>{_0x398920(_0x7470b6);});}};Xn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x344fe1),B(0x2,_0x36da45),B(0x3,_0xe230cc(jn)),B(0x4,_0xe230cc(z))],Xn);let Zn=class{constructor(_0x29c7d8,_0x50f01b){const _0x48b6cc=_0x3c69ef;this[_0x48b6cc(0x305)]=_0x29c7d8,this[_0x48b6cc(0x2e8)]=_0x50f01b;}async[_0x3c69ef(0x2ff)](_0x4e5c1f,_0x4fefda){const _0xb5d4d0=_0x3c69ef;var _0x2c783a;let {unitID:_0x57e7e9,type:_0x4941a1,revision:_0x1c6f27=0x0}=_0x4fefda,_0x621f2f=this[_0xb5d4d0(0x18d)]()+'/'+_0x4941a1+_0xb5d4d0(0x203)+_0x57e7e9+_0xb5d4d0(0x1f7)+_0x1c6f27,_0x583c52=(await this[_0xb5d4d0(0x2e8)][_0xb5d4d0(0x20f)](_0x621f2f))[_0xb5d4d0(0x31c)],_0x3cc9cb=(_0x2c783a=_0x583c52[_0xb5d4d0(0x250)])==null?void 0x0:_0x2c783a[_0xb5d4d0(0x3d1)];if(_0x3cc9cb){let _0x2e8c2c=_0x3cc9cb==null?void 0x0:_0x3cc9cb[_0xb5d4d0(0x1a8)];_0x3cc9cb[_0xb5d4d0(0x1a8)]=_0x9afde9['encode'](_0x14b14d(_0x2e8c2c)),Object[_0xb5d4d0(0x279)](_0x3cc9cb[_0xb5d4d0(0x37c)])['forEach'](([,_0x4baa2f])=>{const _0x3d9dbf=_0xb5d4d0;let _0x1bf15e=_0x4baa2f[_0x3d9dbf(0x1a8)];_0x4baa2f[_0x3d9dbf(0x1a8)]=_0x9afde9[_0x3d9dbf(0x1ae)](_0x14b14d(_0x1bf15e));});}return _0x583c52;}async[_0x3c69ef(0x406)](_0x2fbacc,_0x4d29f9){const _0x1e4834=_0x3c69ef;let {unitID:_0x7b0bbd,type:_0x2497e8,blockID:_0xb385d}=_0x4d29f9,_0x4cbe18=this['_getAPIPrefix']()+'/'+_0x2497e8+_0x1e4834(0x203)+_0x7b0bbd+_0x1e4834(0x33a)+_0xb385d;return(await this['_httpService'][_0x1e4834(0x20f)](_0x4cbe18))[_0x1e4834(0x31c)];}async[_0x3c69ef(0x34c)](_0xcdf50,_0x5d7f74){const _0x3a88c7=_0x3c69ef;let {unitID:_0x55349,type:_0xcbf097,blockID:_0x58ae78}=_0x5d7f74,_0x55fcf4=this[_0x3a88c7(0x410)]()+'/block/'+_0xcbf097+_0x3a88c7(0x203)+_0x55349+_0x3a88c7(0x33a)+_0x58ae78;return(await this['_httpService'][_0x3a88c7(0x20f)](_0x55fcf4))[_0x3a88c7(0x31c)];}async['fetchMissingChangesets'](_0x12e4ed,_0x4d05f3){const _0x498d4f=_0x3c69ef;let {unitID:_0x5469fb,type:_0x123905,from:_0x3d4e94,to:_0x8eed3b}=_0x4d05f3,_0x4f8023=this[_0x498d4f(0x410)]()+'/'+_0x123905+'/unit/'+_0x5469fb+_0x498d4f(0x27e)+_0x3d4e94+_0x498d4f(0x3b7)+_0x8eed3b;return(await this[_0x498d4f(0x2e8)]['get'](_0x4f8023))[_0x498d4f(0x31c)];}['getSnapshotAPIPath'](){const _0x579e2f=_0x3c69ef;var _0x3da506;return(_0x3da506=this[_0x579e2f(0x305)][_0x579e2f(0x353)]('SNAPSHOT_URL_KEY'))==null?this[_0x579e2f(0x410)]():_0x3da506;}[_0x3c69ef(0x410)](){const _0x4ab717=_0x3c69ef;var _0x1b35dd;let _0x4d8c39=this[_0x4ab717(0x305)][_0x4ab717(0x353)](L);return(_0x1b35dd=_0x4d8c39==null?void 0x0:_0x4d8c39[_0x4ab717(0x277)])==null?'/universer-api/snapshot':_0x1b35dd;}async['getResourcesRequest'](_0x54509b,_0x1f8f2f){const _0x1dd038=_0x3c69ef;let _0x232b18=_0x1dd038(0x381)+_0x1f8f2f[_0x1dd038(0x315)]+_0x1dd038(0x203)+_0x1f8f2f['unitID']+_0x1dd038(0x40a);return(await this[_0x1dd038(0x2e8)]['get'](_0x232b18,{'params':{'resourceId':JSON['stringify'](_0x1f8f2f[_0x1dd038(0x375)])}}))[_0x1dd038(0x31c)];}[_0x3c69ef(0x3e0)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['updateSnapshot'](){const _0x48bd95=_0x3c69ef;throw Error(_0x48bd95(0x37b));}[_0x3c69ef(0x278)](){const _0x4aa23e=_0x3c69ef;throw Error(_0x4aa23e(0x37b));}[_0x3c69ef(0x1a1)](){const _0x26f929=_0x3c69ef;throw Error(_0x26f929(0x37b));}['copyFileMeta'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x204201=_0x3c69ef;throw Error(_0x204201(0x37b));}};Zn=V([B(0x0,_0x1f37e4),B(0x1,_0xe230cc(_0x32d10d))],Zn);let Qn=class extends _0x1faad3{constructor(_0x1c0da9,_0x3e0541,_0x55064,_0x11be9a,_0x36897a){const _0x556ce6=_0x3c69ef;super(_0x1c0da9,_0x3e0541,_0x55064),this['_transformService']=_0x11be9a,this[_0x556ce6(0x3f4)]=_0x36897a;}['transformUndoRedo'](_0x19c1b7,_0x4cebb6){const _0x444e21=_0x3c69ef;let _0x416bdd=this[_0x444e21(0x372)](_0x19c1b7);if(_0x416bdd)try{let _0x10af39=this['_transformStack'](_0x416bdd,_0x4cebb6);this[_0x444e21(0x18a)](_0x19c1b7,_0x10af39);}catch(_0xede247){this[_0x444e21(0x3f4)]['error'](_0x444e21(0x2b0),_0xede247),this['_clearUndo'](_0x19c1b7);}let _0x4f2962=this[_0x444e21(0x1c4)](_0x19c1b7);if(_0x4f2962)try{let _0x1f0b8b=this[_0x444e21(0x3f3)](_0x4f2962,_0x4cebb6);this['_substituteRedoStack'](_0x19c1b7,_0x1f0b8b);}catch(_0x38c8f0){this[_0x444e21(0x3f4)][_0x444e21(0x199)](_0x38c8f0),this[_0x444e21(0x3c1)](_0x19c1b7);}}[_0x3c69ef(0x267)](_0x354219){const _0x37271b=_0x3c69ef;let _0x5af69f=this[_0x37271b(0x372)](_0x354219);_0x5af69f&&(_0x5af69f[_0x37271b(0x3a1)]=0x0,this[_0x37271b(0x39e)]());}[_0x3c69ef(0x3c1)](_0xa4566e){const _0x10158d=_0x3c69ef;let _0xb22c2c=this[_0x10158d(0x1c4)](_0xa4566e);_0xb22c2c&&(_0xb22c2c[_0x10158d(0x3a1)]=0x0,this[_0x10158d(0x39e)]());}['_substituteUndoStack'](_0x5b8b29,_0x4ad455){const _0x43d386=_0x3c69ef;this[_0x43d386(0x260)][_0x43d386(0x220)](_0x5b8b29,_0x4ad455),this[_0x43d386(0x39e)]();}['_substituteRedoStack'](_0x5ddf33,_0x3e5093){const _0x192be9=_0x3c69ef;this['_redoStacks'][_0x192be9(0x220)](_0x5ddf33,_0x3e5093),this[_0x192be9(0x39e)]();}[_0x3c69ef(0x3f3)](_0x7058aa,_0x540b7c){const _0x4086c7=_0x3c69ef;let _0x5a787b=[],_0x57dc6d=_0x540b7c,_0x479c48=_0x540b7c;for(let _0x2b7ccc=_0x7058aa[_0x4086c7(0x3a1)]-0x1;_0x2b7ccc>=0x0;_0x2b7ccc--){let {unitID:_0xd63e37,undoMutations:_0x5e193d,redoMutations:_0x19a689}=_0x7058aa[_0x2b7ccc],_0x45e43e=this[_0x4086c7(0x1c6)][_0x4086c7(0x2f6)](_0x57dc6d,_0x5e193d),_0x44cc34=this[_0x4086c7(0x1c6)][_0x4086c7(0x2f6)](_0x479c48,_0x19a689);if(_0x18826e(_0x45e43e)||_0x18826e(_0x44cc34)){this[_0x4086c7(0x3f4)]['error'](_0x4086c7(0x2b0),_0x4086c7(0x1c9),_0x45e43e,_0x44cc34);break;}_0x57dc6d=_0x45e43e[_0x4086c7(0x29c)],_0x479c48=_0x44cc34[_0x4086c7(0x29c)],_0x5a787b[_0x4086c7(0x217)]({'unitID':_0xd63e37,'undoMutations':_0x45e43e['m2Prime'],'redoMutations':_0x44cc34[_0x4086c7(0x3a6)]});}return _0x5a787b['reverse']();}};Qn=V([B(0x0,_0x344fe1),B(0x1,_0x4705e0),B(0x2,_0x6a8ee3),B(0x3,_0x3a995f),B(0x4,_0x5c3e7f)],Qn);let $n=class extends _0x2c6762{constructor(_0x1d7772=pt,_0x25be26,_0x5b9fcb,_0xb7fbe0){const _0x3a079e=_0x3c69ef;super(),this['_config']=_0x1d7772,this[_0x3a079e(0x3f4)]=_0x25be26,this['_injector']=_0x5b9fcb,this[_0x3a079e(0x305)]=_0xb7fbe0;let {..._0x3743ad}=_0x507159({},pt,this[_0x3a079e(0x227)]);if(!_0x3743ad['socketService'])throw Error(_0x3a079e(0x2c9));this[_0x3a079e(0x227)]=_0x3743ad,this[_0x3a079e(0x305)]['setConfig'](L,_0x3743ad);}['onStarting'](){const _0x4ede1c=_0x3c69ef;this[_0x4ede1c(0x2b4)](),this[_0x4ede1c(0x413)]();}[_0x3c69ef(0x2b4)](){const _0x51d431=_0x3c69ef;var _0x570fe0,_0x4e9976;this[_0x51d431(0x27a)][_0x51d431(0x387)](_0x4aa991)&&this[_0x51d431(0x3f4)][_0x51d431(0x199)](_0x51d431(0x2fb),_0x51d431(0x3c9));let _0x2fbb12=_0x23d6dd([[_0x4aa991,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0x51d431(0x227)][_0x51d431(0x1f1)]}],[_0xf3e9c6,{'useClass':Zn}],[_0x3c91dc,{'useClass':Vn}],[_0x80c08d,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x3ae42a,{'useClass':Yn}],[Mn],[Fn]],(_0x570fe0=this[_0x51d431(0x227)])==null?void 0x0:_0x570fe0[_0x51d431(0x192)]);if(!((_0x4e9976=this[_0x51d431(0x227)])!=null&&_0x4e9976[_0x51d431(0x207)])){let _0x2dbdbb=_0x2fbb12[_0x51d431(0x371)](([_0x398370])=>_0x398370===W);_0x2dbdbb!==-0x1&&_0x2fbb12['splice'](_0x2dbdbb,0x1);}_0xa204e3(this[_0x51d431(0x27a)],_0x2fbb12);}[_0x3c69ef(0x413)](){const _0x230659=_0x3c69ef;var _0x478194,_0x229cb3;if(this[_0x230659(0x27a)][_0x230659(0x20f)](_0x32d10d)[_0x230659(0x3a5)]({'priority':0x14,'interceptor':_0x4e8da6({'maxParallel':0x6})}),!((_0x478194=this['_config'])!=null&&_0x478194[_0x230659(0x1a5)])){var _0xbd3e0b;(_0xbd3e0b=this[_0x230659(0x27a)][_0x230659(0x20f)](U,_0x46b617[_0x230659(0x1ce)]))==null||_0xbd3e0b[_0x230659(0x26a)]();}(_0x229cb3=this[_0x230659(0x227)])!=null&&_0x229cb3[_0x230659(0x40b)]&&_0x17b45d(this['_injector'],[[Bn]]),_0x17b45d(this[_0x230659(0x27a)],[[Kn],[Mn],[Xn]]);}};R($n,_0x3c69ef(0x18b),_0x3c69ef(0x2d8)),R($n,_0x3c69ef(0x1ea),Nn),R($n,_0x3c69ef(0x2cf),Pn),$n=V([_0x25f04d(_0x6b7911,_0x493098,_0x3667b4),B(0x1,_0x5c3e7f),B(0x2,_0xe230cc(_0x31a56e)),B(0x3,_0x1f37e4)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
|