@univerjs-pro/collaboration-client 1.0.0-alpha.8 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/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/facade/f-collaboration.d.ts +14 -0
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
- 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 -15
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3bc572=_0xe493;(function(_0xa5b5c0,_0x22d697){const _0x1d6e1a=_0xe493,_0x392395=_0xa5b5c0();while(!![]){try{const _0x559f74=parseInt(_0x1d6e1a(0x32c))/0x1*(parseInt(_0x1d6e1a(0x34a))/0x2)+-parseInt(_0x1d6e1a(0x376))/0x3*(parseInt(_0x1d6e1a(0x3b4))/0x4)+parseInt(_0x1d6e1a(0x373))/0x5+parseInt(_0x1d6e1a(0x1cf))/0x6*(-parseInt(_0x1d6e1a(0x417))/0x7)+-parseInt(_0x1d6e1a(0x375))/0x8+parseInt(_0x1d6e1a(0x259))/0x9*(parseInt(_0x1d6e1a(0x333))/0xa)+-parseInt(_0x1d6e1a(0x208))/0xb;if(_0x559f74===_0x22d697)break;else _0x392395['push'](_0x392395['shift']());}catch(_0x3a05ab){_0x392395['push'](_0x392395['shift']());}}}(_0x3e80,0x8c93d));import{CollaborationEvent as _0x7dd1cb,CompressMutationService as _0x46826b,EmptyMutationInfo as _0x1b64d1,ISnapshotServerService as _0xe1e81f,ITransformService as _0x29bc05,RevisionService as _0x2cb5e4,SnapshotService as _0x3209ea,UniverCollaborationPlugin as _0x901b3,b64DecodeUnicode as _0x430315,isTransformChangesetsSuccess as _0x41af53,isTransformMutationsWithChangesetFailure as _0x33bd16,isTransformMutationsWithChangesetSuccess as _0x34fd35,mapDocumentTypeToUniverInstanceType as _0x386cb9,parseChangesetToProtocol as _0x43c492,parseProtocolChangeset as _0x4823fa,textEncoder as _0x204083,uuidv4 as _0x5d9f01}from'@univerjs-pro/collaboration';import{CommandType as _0xe60bf6,DependentOn as _0x30d4af,Disposable as _0x376cce,DisposableCollection as _0x186c27,IAuthzIoService as _0x27e034,ICommandService as _0x1f135e,IConfigService as _0xa7a1b6,IContextService as _0x5e05d4,IImageIoService as _0x4c34f1,ILogService as _0x2e09c7,IMentionIOService as _0x1a6754,IPermissionService as _0x3058fc,IUndoRedoService as _0x51c17f,IUniverInstanceService as _0x6f9bb2,ImageSourceType as _0x493f5e,ImageUploadStatusType as _0x13bf4f,Inject as _0x167908,Injector as _0x35e9e2,JSONX as _0x52478b,LocalUndoRedoService as _0x150656,LocaleService as _0x3b5f18,MentionType as _0x118ea1,Optional as _0x2a5dd8,Plugin as _0x9c02e4,Quantity as _0x1c058a,Rectangle as _0x53336f,RxDisposable as _0x4ca998,Tools as _0x3ea6fe,UniverInstanceType as _0x1f1b4f,UserManagerService as _0x1ab04a,Workbook as _0x45f35b,createIdentifier as _0x5685c4,generateRandomId as _0x197487,isInternalEditorID as _0x238b00,merge as _0x147984,mergeOverrideWithDependencies as _0x4f5c21,registerDependencies as _0x2ba51f,resolveWithBasePath as _0x4823ba,sequenceExecute as _0x416b22,toDisposable as _0x11df70,touchDependencies as _0x1d20c8}from'@univerjs/core';import{DocStateChangeManagerService as _0x6630d3,RichTextEditingMutation as _0x7aa9b}from'@univerjs/docs';import{InsertSheetMutation as _0xad6688,SetSelectionsOperation as _0x3f0685,SheetPermissionInitController as _0x265733,SheetsSelectionsService as _0x3ad638,WorkbookEditablePermission as _0x3d21fe}from'@univerjs/sheets';import{BehaviorSubject as _0x31b85e,ReplaySubject as _0x60521f,Subject as _0x5b6066,concatMap as _0x4bcf17,firstValueFrom as _0xecbbf6,map as _0xdcb41d,merge as _0x4b9f39,of as _0x5d6819,shareReplay as _0x238a10,take as _0x5d0356,takeUntil as _0xb785f}from'rxjs';import{CmdRspCode as _0x20fc41,CombCmd as _0x23fb1d,ErrorCode as _0x2fd5b6,FileSource as _0x10cf89}from'@univerjs/protocol';import{ITelemetryService as _0x3915b7}from'@univerjs/telemetry';import{delay as _0x5f4ad8,filter as _0x519396,map as _0x37612c,take as _0x18ddcd,takeUntil as _0x42f81a}from'rxjs/operators';import{AddSlidePageMutation as _0x9f63e,EnsureSlideMasterPageMutation as _0x45dcdc,MoveSlidePageMutation as _0xcd2053,RemoveSlidePageMutation as _0x5667d9}from'@univerjs-pro/slides';import{HTTPRequest as _0x3cc753,HTTPService as _0x6a3f01,ISocketService as _0x1d5e1d,MergeInterceptorFactory as _0x24f540,ThresholdInterceptorFactory as _0x28f61d,UniverNetworkPlugin as _0x21d398}from'@univerjs/network';import{UniverLicensePlugin as _0x442bd0,getGlobalObject as _0x153271}from'@univerjs-pro/license';import{cbc as _0x3823ef}from'@noble/ciphers/aes.js';import{concatBytes as _0x2bb09d,randomBytes as _0x1dfafc,utf8ToBytes as _0x34339e}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x286929,getDrawingImageAllowSize as _0xba57e6}from'@univerjs/drawing';const R=_0x3bc572(0x282),ft={},pt=_0x3bc572(0x22e),mt=_0x3bc572(0x3fb),ht=_0x3bc572(0x2c2),gt=_0x3bc572(0x358),_t=0x4e20,vt='RETRY_CONNECTING_MAX_COUNT',yt=_0x3bc572(0x1df),bt=0x3e8,xt=_0x3bc572(0x1fe),St=_0x3bc572(0x359);function Ct(_0x28ec4d){const _0x5825ae=_0x3bc572;return JSON[_0x5825ae(0x3c3)](_0x28ec4d)['length'];}function _0xe493(_0x206303,_0x4afa36){_0x206303=_0x206303-0x1ab;const _0x3e809a=_0x3e80();let _0xe493f2=_0x3e809a[_0x206303];return _0xe493f2;}function wt(_0x3f4935){'@babel/helpers - typeof';const _0x2ff5c3=_0x3bc572;return wt=typeof Symbol==_0x2ff5c3(0x261)&&typeof Symbol['iterator']==_0x2ff5c3(0x326)?function(_0x794e9c){return typeof _0x794e9c;}:function(_0x23450d){const _0x123d93=_0x2ff5c3;return _0x23450d&&typeof Symbol=='function'&&_0x23450d[_0x123d93(0x2fb)]===Symbol&&_0x23450d!==Symbol['prototype']?_0x123d93(0x326):typeof _0x23450d;},wt(_0x3f4935);}function Tt(_0x1880d1,_0x1f9049){const _0x3e370e=_0x3bc572;if(wt(_0x1880d1)!='object'||!_0x1880d1)return _0x1880d1;var _0x2a8309=_0x1880d1[Symbol[_0x3e370e(0x1bd)]];if(_0x2a8309!==void 0x0){var _0x4e5027=_0x2a8309['call'](_0x1880d1,_0x1f9049||_0x3e370e(0x307));if(wt(_0x4e5027)!=_0x3e370e(0x3d4))return _0x4e5027;throw TypeError(_0x3e370e(0x29b));}return(_0x1f9049===_0x3e370e(0x288)?String:Number)(_0x1880d1);}function Et(_0x11244c){var _0x3bb26d=Tt(_0x11244c,'string');return wt(_0x3bb26d)=='symbol'?_0x3bb26d:_0x3bb26d+'';}function z(_0x3fedc1,_0x162725,_0x5f558a){return(_0x162725=Et(_0x162725))in _0x3fedc1?Object['defineProperty'](_0x3fedc1,_0x162725,{'value':_0x5f558a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3fedc1[_0x162725]=_0x5f558a,_0x3fedc1;}let Dt=function(_0x3ab8c4){const _0xf68e2f=_0x3bc572;return _0x3ab8c4['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x3ab8c4['PERMISSION_DENIED']=_0xf68e2f(0x2ab),_0x3ab8c4['CONFLICT']='CONFLICT',_0x3ab8c4[_0xf68e2f(0x3be)]='CLOSE_ROOM',_0x3ab8c4[_0xf68e2f(0x324)]=_0xf68e2f(0x324),_0x3ab8c4[_0xf68e2f(0x1b3)]=_0xf68e2f(0x1b3),_0x3ab8c4[_0xf68e2f(0x40b)]=_0xf68e2f(0x40b),_0x3ab8c4[_0xf68e2f(0x3f8)]=_0xf68e2f(0x3f8),_0x3ab8c4;}({});var B=class{constructor(){const _0x38c36f=_0x3bc572;z(this,_0x38c36f(0x35a),new _0x5b6066()),z(this,_0x38c36f(0x396),this[_0x38c36f(0x35a)][_0x38c36f(0x43c)]());}[_0x3bc572(0x340)](_0xa9d9f8){const _0x180dbe=_0x3bc572;this[_0x180dbe(0x35a)][_0x180dbe(0x2c7)](_0xa9d9f8);}},Ot=class{constructor(){const _0xe9b7a1=_0x3bc572;z(this,_0xe9b7a1(0x36d),new _0x5b6066()),z(this,_0xe9b7a1(0x291),this[_0xe9b7a1(0x36d)][_0xe9b7a1(0x43c)]());}['onCommentUpdate'](_0x252ade){const _0x4bbd59=_0x3bc572;this[_0x4bbd59(0x36d)]['next'](_0x252ade);}};function V(_0x4a0ded,_0x1f986d){return function(_0x96670c,_0x9f8a74){_0x1f986d(_0x96670c,_0x9f8a74,_0x4a0ded);};}function H(_0x38fd8b,_0x35b3a7,_0x546123,_0x55816d){const _0x1b1d42=_0x3bc572;var _0x5ddeec=arguments[_0x1b1d42(0x28d)],_0x9ccf9c=_0x5ddeec<0x3?_0x35b3a7:_0x55816d===null?_0x55816d=Object[_0x1b1d42(0x3f6)](_0x35b3a7,_0x546123):_0x55816d,_0x1d0092;if(typeof Reflect==_0x1b1d42(0x3d4)&&typeof Reflect[_0x1b1d42(0x2ef)]==_0x1b1d42(0x261))_0x9ccf9c=Reflect[_0x1b1d42(0x2ef)](_0x38fd8b,_0x35b3a7,_0x546123,_0x55816d);else{for(var _0x16a495=_0x38fd8b[_0x1b1d42(0x28d)]-0x1;_0x16a495>=0x0;_0x16a495--)(_0x1d0092=_0x38fd8b[_0x16a495])&&(_0x9ccf9c=(_0x5ddeec<0x3?_0x1d0092(_0x9ccf9c):_0x5ddeec>0x3?_0x1d0092(_0x35b3a7,_0x546123,_0x9ccf9c):_0x1d0092(_0x35b3a7,_0x546123))||_0x9ccf9c);}return _0x5ddeec>0x3&&_0x9ccf9c&&Object[_0x1b1d42(0x3f2)](_0x35b3a7,_0x546123,_0x9ccf9c),_0x9ccf9c;}let kt=class extends _0x376cce{constructor(_0x5ba2f2){const _0x4435cc=_0x3bc572;super(),this['_univerInstanceService']=_0x5ba2f2,z(this,_0x4435cc(0x2c1),new Map()),z(this,_0x4435cc(0x323),new _0x5b6066()),this[_0x4435cc(0x21b)](_0x4b9f39(this['_univerInstanceService'][_0x4435cc(0x40a)](_0x1f1b4f[_0x4435cc(0x33c)])[_0x4435cc(0x264)](_0x37612c(_0x579553=>_0x579553[_0x4435cc(0x1da)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_DOC'])[_0x4435cc(0x264)](_0x37612c(_0x7f8500=>_0x7f8500[_0x4435cc(0x1da)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_BOARD'])[_0x4435cc(0x264)](_0x37612c(_0x5dbf96=>_0x5dbf96[_0x4435cc(0x1da)]())),this[_0x4435cc(0x449)][_0x4435cc(0x40a)](_0x1f1b4f[_0x4435cc(0x3fd)])[_0x4435cc(0x264)](_0x37612c(_0x5cb423=>_0x5cb423[_0x4435cc(0x1da)]())))[_0x4435cc(0x368)](_0x55d9e7=>this[_0x4435cc(0x3cc)](_0x55d9e7)));}[_0x3bc572(0x409)](_0x32a340){const _0x8d89e2=_0x3bc572;return this[_0x8d89e2(0x2c1)]['has'](_0x32a340)?_0x5d6819(this[_0x8d89e2(0x2c1)]['get'](_0x32a340)):this[_0x8d89e2(0x323)][_0x8d89e2(0x264)](_0x37612c(_0x1e49e2=>{const _0x1b2cc3=_0x8d89e2;if(_0x1e49e2===_0x32a340)return this[_0x1b2cc3(0x2c1)]['get'](_0x1e49e2);}));}[_0x3bc572(0x1f5)](_0x4385fc,_0x5f44c9){const _0x37f590=_0x3bc572;let _0x57e0d4=this[_0x37f590(0x2c1)][_0x37f590(0x1e3)](_0x4385fc);_0x57e0d4||(_0x57e0d4=new At(),this[_0x37f590(0x2c1)][_0x37f590(0x405)](_0x4385fc,_0x57e0d4),this[_0x37f590(0x323)][_0x37f590(0x2c7)](_0x4385fc)),_0x57e0d4[_0x37f590(0x1f5)](_0x5f44c9);}[_0x3bc572(0x2c5)](_0x2ff6a7,_0x5e9086){const _0xb03ffa=_0x3bc572;let _0x1e965f=this['_roomMembers'][_0xb03ffa(0x1e3)](_0x2ff6a7);_0x1e965f&&_0x1e965f[_0xb03ffa(0x2c5)](_0x5e9086);}[_0x3bc572(0x3af)](_0x34fecd){const _0x5bd20c=_0x3bc572;return this[_0x5bd20c(0x2c1)][_0x5bd20c(0x1e3)](_0x34fecd);}['getMember'](_0x390a6f,_0x419860){const _0x45188e=_0x3bc572;let _0x1b8758=this['_roomMembers'][_0x45188e(0x1e3)](_0x390a6f);if(_0x1b8758)return _0x1b8758[_0x45188e(0x355)](_0x419860);}['_removeRoom'](_0x18a122){const _0x603d7d=_0x3bc572;let _0x5f176e=this['_roomMembers'][_0x603d7d(0x1e3)](_0x18a122);_0x5f176e&&(_0x5f176e[_0x603d7d(0x1d4)](),this[_0x603d7d(0x2c1)]['delete'](_0x18a122));}[_0x3bc572(0x1d4)](){const _0x27b16d=_0x3bc572;this[_0x27b16d(0x2c1)][_0x27b16d(0x29a)](_0x236375=>_0x236375[_0x27b16d(0x1d4)]()),this[_0x27b16d(0x2c1)][_0x27b16d(0x3bb)](),this[_0x27b16d(0x323)][_0x27b16d(0x42f)]();}};kt=H([V(0x0,_0x6f9bb2)],kt);var At=class extends _0x376cce{constructor(..._0x1ae04b){const _0x45b14b=_0x3bc572;super(..._0x1ae04b),z(this,_0x45b14b(0x231),new Map()),z(this,_0x45b14b(0x2cc),new _0x31b85e(this[_0x45b14b(0x231)])),z(this,_0x45b14b(0x3ed),this[_0x45b14b(0x2cc)]['asObservable']());}[_0x3bc572(0x1d4)](){const _0x692be1=_0x3bc572;this['_members'][_0x692be1(0x3bb)](),this['_members$'][_0x692be1(0x42f)]();}['updateMember'](_0x2b28fc){const _0x3b98ac=_0x3bc572;this[_0x3b98ac(0x231)][_0x3b98ac(0x405)](_0x2b28fc[_0x3b98ac(0x3b6)],_0x2b28fc),this[_0x3b98ac(0x20a)]();}['removeMember'](_0x386aa4){const _0x4b76ea=_0x3bc572;this[_0x4b76ea(0x231)][_0x4b76ea(0x1b4)](_0x386aa4),this['_emitMembers']();}['getMember'](_0x30602e){const _0x45d12d=_0x3bc572;return this['_members'][_0x45d12d(0x1e3)](_0x30602e);}[_0x3bc572(0x22d)](){const _0x2e4981=_0x3bc572;return Array['from'](this[_0x2e4981(0x231)][_0x2e4981(0x3fe)]());}[_0x3bc572(0x20a)](){const _0x2296e5=_0x3bc572;this['_members$'][_0x2296e5(0x2c7)](this[_0x2296e5(0x231)]);}};function jt(_0x1b19a7,_0x596630){const _0x507407=_0x3bc572;if(Nt(_0x1b19a7))return _0x596630;if(_0x596630['eventID']===_0x7dd1cb['SUBMIT_CHANGESET']){var _0x4d58f5;let _0x5be6dd=Rt(_0x1b19a7),_0x4cf29d=_0x596630;return{..._0x4cf29d,'data':{..._0x4cf29d[_0x507407(0x2c6)],'unitID':_0x1b19a7['target']['unitId'],'unitType':(_0x4d58f5=_0x1b19a7[_0x507407(0x24b)][_0x507407(0x1d0)])==null?_0x4cf29d[_0x507407(0x2c6)][_0x507407(0x1d0)]:_0x4d58f5,'changeset':_0x5be6dd[_0x507407(0x334)](_0x4cf29d[_0x507407(0x2c6)]['changeset'],zt(_0x1b19a7))}};}if(_0x596630[_0x507407(0x313)]===_0x7dd1cb['FETCH_MISSING']){var _0x59c8bc;let _0x53c5a5=_0x596630;return{..._0x53c5a5,'data':{..._0x53c5a5['data'],'unitID':_0x1b19a7[_0x507407(0x24b)]['unitId'],'unitType':(_0x59c8bc=_0x1b19a7[_0x507407(0x24b)][_0x507407(0x1d0)])==null?_0x53c5a5[_0x507407(0x2c6)]['unitType']:_0x59c8bc}};}return _0x596630;}function Mt(_0x107114,_0x4fe339){const _0x82cd7c=_0x3bc572;if(Nt(_0x107114))return[_0x4fe339];switch(_0x4fe339[_0x82cd7c(0x313)]){case _0x7dd1cb['NEW_CHANGESETS']:return[Pt(_0x107114,_0x4fe339)];case _0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT']:return[It(_0x107114,_0x4fe339)];case _0x7dd1cb[_0x82cd7c(0x257)]:return[Ft(_0x107114,_0x4fe339)];default:return[_0x4fe339];}}function Nt(_0x10279c){const _0x3696d4=_0x3bc572;return _0x10279c[_0x3696d4(0x24b)][_0x3696d4(0x356)]==null&&_0x10279c[_0x3696d4(0x24b)][_0x3696d4(0x395)]===_0x10279c[_0x3696d4(0x3fc)]&&!_0x10279c['changeset'];}function Pt(_0x2ae07c,_0x26abb7){const _0x5793c3=_0x3bc572;return{..._0x26abb7,'data':_0x43c492(Lt(_0x2ae07c,_0x4823fa(_0x26abb7[_0x5793c3(0x2c6)])))};}function Ft(_0x4b6631,_0x1eae6d){const _0x350943=_0x3bc572;return{..._0x1eae6d,'data':Lt(_0x4b6631,_0x1eae6d[_0x350943(0x2c6)])};}function It(_0x2e0267,_0x4880a8){const _0xe17818=_0x3bc572;let _0x5f47ff=_0x4880a8[_0xe17818(0x2c6)];return{..._0x4880a8,'data':{..._0x5f47ff,'changesets':_0x5f47ff[_0xe17818(0x23e)][_0xe17818(0x239)](_0x1e84e1=>_0x43c492(Lt(_0x2e0267,_0x4823fa(_0x1e84e1))))}};}function Lt(_0x46197e,_0xdb480e){const _0x344e35=_0x3bc572;return Rt(_0x46197e)[_0x344e35(0x2fc)](_0xdb480e,zt(_0x46197e));}function Rt(_0x314e21){const _0x55669b=_0x3bc572;if(!_0x314e21['changeset'])throw Error(_0x55669b(0x40d));return _0x314e21[_0x55669b(0x3e3)];}function zt(_0x5663ce){const _0x5600ed=_0x3bc572;return{'localUnitId':_0x5663ce[_0x5600ed(0x3fc)],'unitType':_0x5663ce['unitType'],'target':_0x5663ce[_0x5600ed(0x24b)]};}let Bt=function(_0x1253b5){const _0x23c679=_0x3bc572;return _0x1253b5[_0x1253b5['IDLE']=0x0]='IDLE',_0x1253b5[_0x1253b5['JOINING']=0x1]=_0x23c679(0x328),_0x1253b5[_0x1253b5['OFFLINE']=0x2]='OFFLINE',_0x1253b5[_0x1253b5[_0x23c679(0x36c)]=0x3]=_0x23c679(0x36c),_0x1253b5;}({});const Vt={[_0x20fc41[_0x3bc572(0x26c)]]:'session.join-failed',[_0x20fc41[_0x3bc572(0x1e8)]]:_0x3bc572(0x255),[_0x20fc41[_0x3bc572(0x295)]]:_0x3bc572(0x30c),[_0x20fc41['JOIN_ROOM_PERMISSION_DENIED']]:_0x3bc572(0x445),[_0x20fc41[_0x3bc572(0x224)]]:_0x3bc572(0x2a7)};let Ht=class extends _0x4ca998{get[_0x3bc572(0x3ce)](){const _0x31b3db=_0x3bc572;return this['_sessionStatus$'][_0x31b3db(0x207)]();}constructor(_0x14f088,_0xf0b910,_0x1b4e01,_0xc09c43,_0x6cda4,_0x567062,_0x2e413c,_0x5b5240){const _0x29fc11=_0x3bc572;super(),this[_0x29fc11(0x24a)]=_0x14f088,this[_0x29fc11(0x1c1)]=_0x1b4e01,this[_0x29fc11(0x1c9)]=_0xc09c43,this[_0x29fc11(0x2a6)]=_0x6cda4,this[_0x29fc11(0x1c5)]=_0x567062,this['_collaborationUIEventService']=_0x2e413c,this[_0x29fc11(0x3f1)]=_0x5b5240,z(this,_0x29fc11(0x363),new _0x31b85e(0x0)),z(this,_0x29fc11(0x1d9),this[_0x29fc11(0x363)]['asObservable']()),z(this,_0x29fc11(0x35a),new _0x5b6066()),z(this,'event$',this['_event$'][_0x29fc11(0x43c)]()),z(this,_0x29fc11(0x41e),void 0x0),z(this,_0x29fc11(0x35f),void 0x0),z(this,_0x29fc11(0x228),void 0x0),z(this,_0x29fc11(0x201),!0x1),z(this,'_telemetryInfo',null),this[_0x29fc11(0x201)]=!!this[_0x29fc11(0x3f1)],_0xf0b910[_0x29fc11(0x264)](_0xb785f(this[_0x29fc11(0x3d6)]))['subscribe'](_0x5c9f47=>{const _0x28ce0=_0x29fc11;if(_0x5c9f47!==void 0x0){if(this[_0x28ce0(0x41e)]=_0x5c9f47,_0x5c9f47)this['_joinRoom'](_0x5c9f47),this[_0x28ce0(0x35f)]=_0x5c9f47[_0x28ce0(0x30b)][_0x28ce0(0x368)](_0x35b1eb=>{const _0x7e9182=_0x28ce0;_0x35b1eb[_0x7e9182(0x1b6)]===this[_0x7e9182(0x24a)][_0x7e9182(0x24b)][_0x7e9182(0x395)]&&this['_onCombEvent'](_0x35b1eb);});else{var _0x3ae976;this[_0x28ce0(0x213)](),this[_0x28ce0(0x363)][_0x28ce0(0x2c7)](0x2),(_0x3ae976=this[_0x28ce0(0x35f)])==null||_0x3ae976[_0x28ce0(0x277)](),this[_0x28ce0(0x35f)]=null;}}});}[_0x3bc572(0x22c)](){const _0x245106=_0x3bc572;var _0x3c9ce2,_0x2b99e4;return(_0x3c9ce2=(_0x2b99e4=this[_0x245106(0x41e)])==null?void 0x0:_0x2b99e4[_0x245106(0x3b6)])==null?null:_0x3c9ce2;}['dispose'](){const _0x31bc85=_0x3bc572;super['dispose'](),this[_0x31bc85(0x3cf)](),this[_0x31bc85(0x3d6)][_0x31bc85(0x2c7)](),this[_0x31bc85(0x3d6)]['complete']();}[_0x3bc572(0x3cf)](){const _0x2edf8b=_0x3bc572;var _0x50c33e;this[_0x2edf8b(0x213)](),(_0x50c33e=this[_0x2edf8b(0x41e)])==null||_0x50c33e[_0x2edf8b(0x1ef)]({'cmd':_0x23fb1d[_0x2edf8b(0x444)],'data':{'roomID':this[_0x2edf8b(0x24a)][_0x2edf8b(0x24b)][_0x2edf8b(0x395)]}}),this[_0x2edf8b(0x35a)][_0x2edf8b(0x42f)](),this[_0x2edf8b(0x363)][_0x2edf8b(0x42f)]();}['_onCombEvent'](_0x5a1627){const _0x2a483d=_0x3bc572;_0x5a1627['cmd']===_0x23fb1d['JOIN']?this['_onJoinRoomEvent'](_0x5a1627):_0x5a1627[_0x2a483d(0x265)]===_0x23fb1d[_0x2a483d(0x2e1)]&&this[_0x2a483d(0x312)](_0x5a1627);}[_0x3bc572(0x23f)](_0x30ee10){const _0x4c7914=_0x3bc572;this[_0x4c7914(0x363)]['next'](0x1),_0x30ee10[_0x4c7914(0x1ef)]({'cmd':_0x23fb1d[_0x4c7914(0x2a3)],'routeKey':this['_identity'][_0x4c7914(0x24b)][_0x4c7914(0x395)],'routeType':'','data':{'rooms':[{'roomID':this[_0x4c7914(0x24a)][_0x4c7914(0x24b)]['unitId']}]}});}[_0x3bc572(0x3c1)](_0x12d32c){const _0x4d9dd7=_0x3bc572;var _0x43a5ef;if(_0x12d32c[_0x4d9dd7(0x36f)]in Vt){this[_0x4d9dd7(0x33e)][_0x4d9dd7(0x340)]({'id':'JOIN_ROOM_FAILED','data':Vt[_0x12d32c[_0x4d9dd7(0x36f)]]}),this[_0x4d9dd7(0x363)]['next'](0x2);return;}this[_0x4d9dd7(0x363)][_0x4d9dd7(0x2c7)](0x3);let _0x1358ea=(_0x43a5ef=_0x12d32c['data']['roomInfos'][this[_0x4d9dd7(0x24a)][_0x4d9dd7(0x24b)][_0x4d9dd7(0x395)]])==null?void 0x0:_0x43a5ef[_0x4d9dd7(0x3aa)];_0x1358ea&&_0x1358ea[_0x4d9dd7(0x29a)](_0x5401f5=>this[_0x4d9dd7(0x2a6)][_0x4d9dd7(0x1f5)](this[_0x4d9dd7(0x24a)][_0x4d9dd7(0x3fc)],_0x5401f5));}['_onRecvEvent'](_0x33206a){const _0xdf237d=_0x3bc572;try{let _0x1fb995=Mt(this[_0xdf237d(0x24a)],_0x33206a[_0xdf237d(0x2c6)]);for(let _0x4cc02a of _0x1fb995)switch(_0x4cc02a['eventID']){case _0x7dd1cb['USERS_ENTER']:this[_0xdf237d(0x3dc)](_0x4cc02a),this['_event$'][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb[_0xdf237d(0x221)]:this[_0xdf237d(0x21c)](_0x4cc02a),this['_event$']['next'](_0x4cc02a);break;case _0x7dd1cb[_0xdf237d(0x25d)]:case _0x7dd1cb[_0xdf237d(0x257)]:this[_0xdf237d(0x39e)](),this[_0xdf237d(0x262)](),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb['MSG_FOR_ERROR']:this[_0xdf237d(0x1c1)][_0xdf237d(0x298)]('save\x20fail\x20reason\x20is\x20'+JSON[_0xdf237d(0x3c3)](_0x4cc02a)),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;case _0x7dd1cb['COMMENT_UPDATE']:this[_0xdf237d(0x1c5)][_0xdf237d(0x2d3)](_0x4cc02a['data']),this[_0xdf237d(0x35a)][_0xdf237d(0x2c7)](_0x4cc02a);break;default:this['_event$']['next'](_0x4cc02a);}}catch(_0x35f54b){this['_logService'][_0xdf237d(0x298)](_0x35f54b,_0x33206a);}}[_0x3bc572(0x3dc)](_0x1bbd1d){const _0x5691=_0x3bc572;this[_0x5691(0x2a6)][_0x5691(0x1f5)](this[_0x5691(0x24a)]['localUnitId'],_0x1bbd1d['data']);}[_0x3bc572(0x21c)](_0x262f8e){const _0x554246=_0x3bc572;this[_0x554246(0x2a6)][_0x554246(0x2c5)](this[_0x554246(0x24a)][_0x554246(0x3fc)],_0x262f8e['data'][_0x554246(0x3b6)]);}async[_0x3bc572(0x1ef)](_0x90a8a1,_0x3e6863){const _0x2e8957=_0x3bc572;if(this[_0x2e8957(0x3ce)]!==0x3||!this[_0x2e8957(0x41e)])throw Error(_0x2e8957(0x408));try{let _0x24f6ef=jt(this[_0x2e8957(0x24a)],_0x90a8a1);_0x24f6ef[_0x2e8957(0x313)]===_0x7dd1cb[_0x2e8957(0x2b1)]&&(this[_0x2e8957(0x3e5)](),this[_0x2e8957(0x423)](_0x24f6ef)),this[_0x2e8957(0x41e)][_0x2e8957(0x1ef)]({'cmd':_0x23fb1d[_0x2e8957(0x28e)],'routeKey':this['_identity'][_0x2e8957(0x24b)]['unitId'],'routeType':'','data':_0x24f6ef});}catch(_0x1fbdeb){this[_0x2e8957(0x1c1)][_0x2e8957(0x298)](_0x1fbdeb);}}[_0x3bc572(0x3e5)](){const _0x305d66=_0x3bc572;var _0x12af1e;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3bbdba=_0xe493;this[_0x3bbdba(0x228)]=null,this[_0x3bbdba(0x33e)]['emitEvent']({'id':_0x3bbdba(0x3f8)});},(_0x12af1e=this[_0x305d66(0x1c9)]['getConfig'](_0x305d66(0x358)))==null?_t:_0x12af1e);}[_0x3bc572(0x262)](){const _0x936c6e=_0x3bc572;this[_0x936c6e(0x228)]&&(clearTimeout(this[_0x936c6e(0x228)]),this['_collaborationTimeoutTimer']=null);}[_0x3bc572(0x423)](_0x12d377){const _0x58bb3e=_0x3bc572;if(!this[_0x58bb3e(0x201)])return;let {data:_0xb4ce1}=_0x12d377,{unitID:_0x2511e6,changeset:_0x5d802a}=_0xb4ce1,{mutations:_0x5f4587,type:_0x41e011}=_0x5d802a;this[_0x58bb3e(0x30d)]={'unitId':_0x2511e6,'type':_0x41e011,'startTime':performance[_0x58bb3e(0x249)](),'stopTime':0x0,'duration':0x0,'size':Ct(_0x5f4587)};}[_0x3bc572(0x39e)](){const _0x14e47d=_0x3bc572;if(this[_0x14e47d(0x201)]){if(!this[_0x14e47d(0x30d)]){this[_0x14e47d(0x1c1)][_0x14e47d(0x298)](_0x14e47d(0x33a),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x14e47d(0x30d)][_0x14e47d(0x223)]=performance['now'](),this[_0x14e47d(0x30d)]['duration']=this[_0x14e47d(0x30d)][_0x14e47d(0x223)]-this[_0x14e47d(0x30d)][_0x14e47d(0x2b3)],this[_0x14e47d(0x3f1)][_0x14e47d(0x2db)]('collaboration_new_changeset',this['_telemetryInfo']),this[_0x14e47d(0x30d)]=null;}}[_0x3bc572(0x213)](){const _0x4e7026=_0x3bc572;this[_0x4e7026(0x30d)]=null;}};Ht=H([V(0x2,_0x2e09c7),V(0x3,_0xa7a1b6),V(0x4,_0x167908(kt)),V(0x5,_0x167908(Ot)),V(0x6,_0x167908(B)),V(0x7,_0x2a5dd8(_0x3915b7))],Ht);const U=_0x5685c4(_0x3bc572(0x2ff));function Ut(_0x3f2b44){return'unit-cache-'+_0x3f2b44;}function Wt(_0x3191a3){const _0x26d917=_0x3bc572;let {unitID:_0x4a1e5b,mutations:_0x4b3792}=_0x3191a3;return{'unitId':_0x4a1e5b,'subUnitId':_0x4b3792['length']>0x0?_0x4b3792[0x0][_0x26d917(0x2a4)][_0x26d917(0x217)]:null};}let Gt=class{constructor(_0xbbc176,_0x53fd38,_0x3e075d){const _0x45403f=_0x3bc572;this[_0x45403f(0x44d)]=_0xbbc176,this[_0x45403f(0x284)]=_0x53fd38,this['_instanceService']=_0x3e075d;}['transformSelections'](_0x595a6d){const _0x572796=_0x3bc572;var _0x23d770,_0x4e3b75;let _0xc79583=this[_0x572796(0x44d)][_0x572796(0x1e3)](_0x3ad638),{unitId:_0x394ea6,subUnitId:_0x214f39}=Wt(_0x595a6d),_0x527475=_0xc79583==null?void 0x0:_0xc79583[_0x572796(0x246)](_0x394ea6)[_0x572796(0x1c3)](),_0x144df1=(_0x23d770=this[_0x572796(0x1c6)][_0x572796(0x412)](_0x394ea6))==null||(_0x23d770=_0x23d770[_0x572796(0x3c9)]())==null?void 0x0:_0x23d770[_0x572796(0x2cf)]();if(_0x527475['length']===0x0||!_0x394ea6||!_0x214f39)return;let _0x2a2c6d=[{'id':_0x3f0685['id'],'params':{'unitId':_0x394ea6,'subUnitId':_0x144df1,'selections':_0x3ea6fe[_0x572796(0x2af)](_0x527475)}}],_0x56b642=this[_0x572796(0x284)][_0x572796(0x37a)](_0x595a6d,_0x2a2c6d);if(!_0x34fd35(_0x56b642))throw _0x56b642['error'];let _0x563c4a=(_0x4e3b75=_0x56b642[_0x572796(0x296)][0x0])==null||(_0x4e3b75=_0x4e3b75[_0x572796(0x2a4)])==null?void 0x0:_0x4e3b75[_0x572796(0x24d)];if(Array[_0x572796(0x2fa)](_0x563c4a)&&_0x563c4a['length']){if(_0x563c4a[_0x572796(0x28d)]===_0x2a2c6d[0x0][_0x572796(0x2a4)][_0x572796(0x24d)][_0x572796(0x28d)]&&_0x563c4a[_0x572796(0x41a)]((_0x1a3eb5,_0x34a2e1)=>_0x53336f[_0x572796(0x21f)](_0x1a3eb5[_0x572796(0x346)],_0x2a2c6d[0x0][_0x572796(0x2a4)][_0x572796(0x24d)][_0x34a2e1][_0x572796(0x346)])))return;this['_injector'][_0x572796(0x1e3)](_0x1f135e)[_0x572796(0x414)](_0x3f0685['id'],{'unitId':_0x394ea6,'subUnitId':_0x144df1,'selections':_0x563c4a});}}};function _0x3e80(){const _0x2a6be5=['MUTATION','loadPdf','_userManagerService','RECV','uniscriptRunEvent','state$','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','sid','userID','_resendTimer','_waitCount','_queuedRemoteChangesets','append','baseRev','connection\x20error','_getAPIPrefix','_onLocalMutation','decorate','type','_clearScheduledTask','originalMeta','slice','retryConnectingInterval','_updateLocalCache','[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.','loadBoard','_transformStateCache','state','isArray','constructor','toLocal','[OfflineState]:\x20received\x20acknowledgement.','createInstance','collaboration-client.local-cache-service','localCacheService','NEW_CHANGESETS','/object','UPDATE_PERMISSION_OBJ','splice','debug','getConfig','default','COLLABORATION_ENDPOINT_INVALID','unitLoaded$','fromCollab','message$','session.room-not-exists','_telemetryInfo','_checkMissing','getAttachmentUrl','loginUrlKey','actions','_onRecvEvent','eventID','open$','pauseCollaboration','onTransformState','_scheduleCompleteTimestamp','size','OFFLINE','_sessionChannels','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','copyFileMeta','UNISCRIPT_RUN','_syncEditingCollabCursor','tables','_sender','_pendingMutations','listCollaborators','_roomCreated$','JOIN_ROOM_FAILED','_initCloseConn','symbol','_transitionLocked','JOINING','{fileID}','_schedule','_change$','1VeMnoa','incrementRevOfUnit','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','origin','collabWebSocketUrl','_listenToNetworkCondition','onMissedChangesetFetched','191220mcTAOj','toRemote','loadDoc','reduce','trim','missingChangesets','getTime','[CollaborationSession]','LIVESHARE_REQUEST_HOST','UNIVER_SHEET','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_collaborationUIEventService','&to=','emitEvent','localeService','_maxTotalRetryTimeout','loadSlide','indexOf','deleteCollaborator','range','uploadFileServerUrl','csShouldRetryEvent','_handler','2195798LQUfIj','_getLoginPath','list','appendMutation','_status$','_resendTimeout','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','socket\x20close','apply','_updateState','socket$','getMember','endpoint','_state$','HEARTBEAT_TIMEOUT','/universer-api/uniscript','_event$','OTHER_CLIENT_EDITING','Error\x20on\x20receiving\x20event','_sessions','awaiting_with_pending','_socketMessageSubscription','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','min','_getAPIPrefixPath','_sessionStatus$','saveSheetBlock','onTransformRemoteChangesetByStateCache','?size=','_upload','subscribe','_hasSessionsForEndpoint','reject','_onOffline','ONLINE','_commentUpdate$','objects','code','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationUndoRedoService]','_initRequestHeader','3187890TYctmy','_eventService','750400MGaXaU','263631RAGHBk','findIndex','getUploadOptions','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','transformMutationsWithChangeset','error$','encodeURIComponent','encode','\x20to\x20','update','_transformSelections','interceptor','includes','close$','_transformRemoteChangesetByIMECache','_localeService','updateCursorEvent','BASE64','/block/','AWAITING','onRemoteRej','loadBase','onLocalMutation','endpointKey','_acknowledgeAwaiting','collaborators','/universer-api/comb','isPermissionRej','href','transformStack\x20failed!','_transformAndApplyRemoteChangeset','unitId','event$','univer-pro.collaboration-client-adapter-service','find','unitID','[PendingState]:\x20received\x20rejection.','entries','CONFLICT','_commandService','_stopTelemetryCollaborationNewChangeset','[OfflineState]:\x20received\x20changeset.','floor','replace','_clearRedo','_exhaustRemoteChangesetQueue','AWAITING_WITH_PENDING','/object/','/allowed','FETCH_MISS','_replayCachedMutations','putCollaborators','members','onTransformRemoteChangesetByIMECache','offline','call','__Key__','getRoom','onMutationExecutedForCollab','_revisionService','FileId','Univer','20egGdmq','_registerDependencies','memberID','_httpService','getInterceptPoints','PERMISSION_REJ','_startCollaboration','clear','_onConflict','revision','CLOSE_ROOM','init','_collabSessionService','_onJoinRoomEvent','awaitingChangeset','stringify','UNIVER_SLIDE','[UniverCollaborationClientPlugin]','entityInit$','[FetchMissState]','_changesetReqId','getActiveSheet','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_snapshotServerService','_removeRoom','url','sessionStatus','close','roles','/rev/','_fetchMissChangesets','shouldCloseConn','object','_unitLoaded$','dispose$','location','NO_OTHER_CLIENTS_EDITING','requestParams','[CollaborationEntity]','_HTTPService','_onUserJoin','_sendingTimer','_tryEnsureSocket','SYNCED','hostname','UNIVER_DOC','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','changeset','/collaborator','_scheduleCollaborationTimeoutTimer','_showConflictNotification','__splitChunk__','withCredentials','docStateChange$','RETRY_CONNECTING_MAX_COUNT','accept','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','members$','updateCollaborator','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','PENDING','_telemetryService','defineProperty','_tryReconnect','COMMENT_UPDATE','reverse','getOwnPropertyDescriptor','_rescheduleHeartbeat','SUBMIT_CHANGESET_TIMEOUT','socketMessageSubscription','&source=','/universer-api/user/session-ticket','localUnitId','UNIVER_BASE','values','candidateSocket','_undoStacks','joinEvent','resolveUnit','columnGroups','getUnitType','set','_getRedoStack','/-/object/list','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','waitForRoom$','getTypeOfUnitDisposed$','SOCKET_FAILED','&assign=','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_decreaseWaiting','catch','_entities','some','getUnit','onRemoteRetry','executeCommand','_getUndoStack','_substituteUndoStack','5705hhfAWU','sendChangesetTimeout','onRemoteChangeset','every','transformUndoRedo','_networkConditionService','number','_socket','/new_changes','_onFetchMissResult','retryConnectingTimer','_localCacheService','_startTelemetryCollaborationNewChangeset','_getSendChangesetTimeout','setCfgEnableObjInherit','UNIVER_BOARD','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','socketService','updatePermissionPoint','onMissingChangesets','_onConnectionFailed','COMPRESS_MUTATION_SEND','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_collaborationPaused','complete','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','session','enableAuthServer','_incrementRevisionNumber','[PendingState]:\x20received\x20acknowledgement.','c1Prime','loadUnit','saveSnapshot','ERROR_IMAGE_TYPE','createSocket','SUCCUSS','_unlockTransition','asObservable','onStarting','_transformStack','/universer-api/stream/file/upload','_updateStatus','rev','_createInitialState','status','LEAVE','session.room-permission-denied','addHandlerCallback','_transformUndoredo','_changesetSessionId','_univerInstanceService','_socketService','snapshot','/unit/','_injector','_onRemoteRetry','_onRemoteRejected','saveChangeset','objectID','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_state','pending','_transformIMECache','submit\x20changeset\x20error!','x-univer-host','SOCKET_FAILED_RETRY','delete','onTransformIME','routeKey','POST','_docStateChangeManagerService','then','_handlerCallback','disableLocalCache','closeSession','toPrimitive','unit','onlyLocal','infoRsp','_logService','sendHeartbeatTimer','getCurrentSelections','collabSubmitChangesetUrl','_commentService','_instanceService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','downloadEndpointUrl','_configService','SNAPSHOT_URL_KEY','_permissionService','UnitEmbedded','_resendWithTimeout','_sheetTransformSelectionsService','7836YwuJbt','unitType','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','status$','/universer-api/file/{fileID}/sign-url','dispose','isCompositionEnd','_disableEditing','_entityInit$','univer-pro.collaboration-client-socket-service','sessionStatus$','getUnitId','_undoRedoService','_config','COMPRESS_MUTATION_APPLY','addImageSourceCache','LOCAL_CACHE_INTERVAL','_initUnitPermissionChange','_clearRetryConnectingTimer','prototype','get','collaMsg','_handleRemoteChangesets','getCollabEntity$','confirm','JOIN_ROOM_FULL','_getUploadFileURL','workbook','create','UPDATE_CURSOR','OPTIONAL','_compressMutationService','send','_initMergeInterceptor','_clearTimeoutTimer','transformChangesets','refreshPermission','_createSession','updateMember','toString','ERROR_EXCEED_SIZE','failed\x20to\x20apply\x20missed\x20changesets!','[DataLoaderService]','fetching\x20missing\x20changesets\x20from\x20','fetchThroughInterceptors','_getSignURL','onRemoteAck','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_singleActiveUnitService','max','_shouldReportTelemetry','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','file','editingUnit','title','liveShareNewHost','getValue','3596747RtAFKd','_sendHeartbeat','_emitMembers','HEARTBEAT','ERROR_IMAGE','_onRemoteChangeset','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','/resources','enableSingleActiveInstanceLock','collaboration-client.auth.needGotoLoginAlert','_init','_throwTelemetryCollaborationNewChangeset','startsWith','onSyncEditingCollabCursor','cfgEnableObjInherit','subUnitId','_toggleOffline','override','getImage','disposeWithMe','_onUserLeave','Failed\x20to\x20update\x20permission\x20point','_getConfig','equals','_remoteChangesetQueue','USERS_LEAVE','commentUpdateEvent','stopTime','GLOBAL_ROOMS_CNT_EXCEEDS','_collaborationSessionService','compose','mutations','_collaborationTimeoutTimer','_clearLocalCache','conflict','reqId','getMemberID','getAllMembers','ws://127.0.0.1:8000/universer-api/comb/connect','timeoutTimer','toggleOnline','_members','\x20-\x20','getCurrentRevOfUnit','c2Prime','subject','body','onTransformSelections','updatePermissionObjEvent','map','@univerjs-pro/collaboration-client','patch','version','parse','changesets','_joinRoom','_onConnectionOpen','UUID','_resolveSessionIdentity','/-/object/-/batch_allowed','/universer-api/snapshot/','loadUnitOfRevision','getWorkbookSelections','saveAttachment','socket\x20open.','now','_identity','target','pluginName','selections','_applyRemoteChangeset','OTHER_CLIENTS_EDITING','push','_createSocket','requireSession','joinRsp','registerHTTPInterceptor','session.room-full','result','CHANGESET_SHOULD_RETRY','_imageSourceCache','360dmKTIR','setConfig','online$','_awaitingChangeset','CHANGESET_ACK','getCurrentUser','name','_acknowledgeAwaitingIfReady','function','_clearCollaborationTimeoutTimer','setWaitCount','pipe','cmd','_getSocketChannel','backupOfflineData','SHOULD_CLOSE_CONN','[CollaborationSessionService]:\x20socket\x20error','toggleOffline','_type','FAIL','getFocusedUnit','readAsDataURL','\x0aCurrent:\x20','loadOfflineData','_redoStacks','_onRemoteACK','objectType','loadSheet','authzUrl','sort','unsubscribe','LIVESHARE_TERMINATE','_lockTransition','[CollaborationState]:\x20apply\x20error!','_clearUndo','endsWith','USERS_ENTER','setShowComponents','post','onload','getSnapshotAPIPath','collaboration-client.config','action','_transformService','reconnect','transformSelections','maxSize','string','resend','_getDownloadEndpointURL','getDeserializedSheetBlock','newCsEvent','length','INGEST','focused$','/universer-api/authz','commentUpdate$','HELLO','add','_waitForHeartbeatResponse','JOIN_ROOM_NOT_EXISTS','m2Prime','LIVESHARE_FETCH_OPERATIONS','error','_substituteRedoStack','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_socketChannels','updateOfflineData','[SyncedState]:\x20received\x20acknowledgement.','avatar','_createInitialStateImpl','_cfgEnableObjInherit','_clearHeartbeatTimer','JOIN','params','_toggleOnline','_memberService','session.room-cnt-exceeds','liveShareOperation','resolve','[CollaborationSessionService]','PERMISSION_DENIED','_pendingSessions','_unitInfo$','LIVESHARE_NEW_HOST','deepClone','fetch_missing','SUBMIT_CHANGESET','_getCurrentRevision','startTime','socketReady','headers','_executeRemoteChangeset','_acknowledgedAwaitingRevision','text-x','_onMessage','fetchMissingChangesets','LIVESHARE_OPERATION','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','src','textRanges','_snapshotService','_getCtorByUniverInstanceType','_roomMembers','HEARTBEAT_INTERVAL','CHANGESET_REJ','getTypeOfUnitAdded$','removeMember','data','next','retryCount','signUrlServerUrl','UNIVER_PDF','unknown','_members$','_createHandler','hasOwnProperty','getSheetId','attachment','_replaceFileID','responseType','onCommentUpdate','method','_isEchoedAwaitingChangeset','upload','_transformRemoteChangesetByStateCache','_adapter','put','_isPermissionRej','capture','getCollabEntity','has'];_0x3e80=function(){return _0x2a6be5;};return _0x3e80();}Gt=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x29bc05),V(0x2,_0x6f9bb2)],Gt);const W=_0x5685c4('univer-pro.collaboration-client.single-active-unit-service');let Kt=function(_0x2aec77){const _0x595624=_0x3bc572;return _0x2aec77[_0x2aec77[_0x595624(0x3d8)]=0x0]=_0x595624(0x3d8),_0x2aec77[_0x2aec77[_0x595624(0x24f)]=0x1]=_0x595624(0x24f),_0x2aec77;}({});function qt(_0xfb9627){const _0x478949=_0x3bc572;var _0x279fe3;return!!((_0x279fe3=_0xfb9627[_0x478949(0x2a4)])!=null&&_0x279fe3[_0x478949(0x3e7)]);}const Jt=new Set([_0xad6688['id']]),Yt=new Set([_0x9f63e['id'],_0x45dcdc['id'],_0xcd2053['id'],_0x5667d9['id']]);function Xt(_0x236b4e,_0x8662ba=Jt){const _0x1765a5=_0x3bc572;let _0x5b019d=[];for(let _0x444060 of _0x236b4e){if(_0x8662ba['has'](_0x444060['id'])){if(_0x5b019d[_0x1765a5(0x28d)]>0x0)break;_0x5b019d['push'](_0x444060);break;}if(qt(_0x444060)){if(_0x5b019d[_0x1765a5(0x28d)]>0x0)break;_0x5b019d['push'](_0x444060);break;}_0x5b019d['push'](_0x444060);}return _0x5b019d;}function Zt(_0x2fa2fa,_0x107587,_0x50fc6b,_0x575c42,_0x3c1fac){const _0x25ac7d=_0x3bc572;var _0x2434dd,_0x19a63a;let _0x2cda4f=Xt(_0x2fa2fa),_0x588498=_0x3c1fac[_0x25ac7d(0x25e)](),_0x21eb75=(_0x2434dd=_0x588498==null?void 0x0:_0x588498[_0x25ac7d(0x2e6)])==null?_0x25ac7d(0x2cb):_0x2434dd,_0x518e5f=(_0x19a63a=_0x588498==null?void 0x0:_0x588498[_0x25ac7d(0x3b6)])==null?_0x25ac7d(0x2cb):_0x19a63a;return{'changeset':{'unitID':_0x107587,'type':_0x386cb9(_0x50fc6b['getUnitType'](_0x107587)),'baseRev':_0x575c42[_0x25ac7d(0x233)](_0x107587),'revision':0x0,'userID':_0x21eb75,'memberID':_0x518e5f,'mutations':_0x2cda4f},'pendingMutations':_0x2fa2fa['slice'](_0x2cda4f['length'])};}const Qt=Zt;function $t(_0x34c562,_0x2dea2d,_0x39a881,_0x594f7e,_0x4d326c){const _0x11e82f=_0x3bc572;var _0x493ca1,_0x2ce202;let _0x1905dd=Xt(_0x34c562,Yt),_0x57dbfe=_0x4d326c[_0x11e82f(0x25e)](),_0x1a010f=(_0x493ca1=_0x57dbfe==null?void 0x0:_0x57dbfe[_0x11e82f(0x2e6)])==null?_0x11e82f(0x2cb):_0x493ca1,_0x11e40d=(_0x2ce202=_0x57dbfe==null?void 0x0:_0x57dbfe['memberID'])==null?_0x11e82f(0x2cb):_0x2ce202;return{'changeset':{'unitID':_0x2dea2d,'type':_0x386cb9(_0x39a881[_0x11e82f(0x404)](_0x2dea2d)),'baseRev':_0x594f7e[_0x11e82f(0x233)](_0x2dea2d),'revision':0x0,'userID':_0x1a010f,'memberID':_0x11e40d,'mutations':_0x1905dd},'pendingMutations':_0x34c562['slice'](_0x1905dd[_0x11e82f(0x28d)])};}function en(_0xaebef7,_0xa15779,_0x305232,_0x18911b,_0x3e8d3c){const _0x564341=_0x3bc572;var _0x160fca,_0x23d260;let _0x42550c=_0xaebef7[_0x564341(0x336)]((_0x26b98d,_0x14da05)=>{const _0x421f26=_0x564341;let _0x399f49=_0x26b98d[_0x26b98d['length']-0x1],{id:_0x4ce703}=_0x399f49==null?{}:_0x399f49,{id:_0x25ddb7,type:_0x465393}=_0x14da05,_0x1629f7=_0x14da05['params'];if(_0x4ce703&&_0x4ce703!==_0x25ddb7)throw Error(_0x421f26(0x3ec)+_0x4ce703+_0x421f26(0x232)+_0x25ddb7+'.');if(!_0x399f49)return[{'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7['unitId'],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x1629f7[_0x421f26(0x311)]}}];let _0xbd6d82=_0x399f49[_0x421f26(0x2a4)];return tn(_0xbd6d82,_0x1629f7)?[..._0x26b98d[_0x421f26(0x2f3)](0x0,-0x1),{..._0x399f49,'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7[_0x421f26(0x395)],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x52478b[_0x421f26(0x226)](_0xbd6d82[_0x421f26(0x311)],_0x1629f7[_0x421f26(0x311)])}}]:[..._0x26b98d,{'id':_0x25ddb7,'type':_0x465393,'params':{'unitId':_0x1629f7[_0x421f26(0x395)],'textRanges':_0x1629f7[_0x421f26(0x2be)],'actions':_0x1629f7[_0x421f26(0x311)]}}];},[]),_0x4781f7=_0x3e8d3c[_0x564341(0x25e)](),_0x54de57=(_0x160fca=_0x4781f7==null?void 0x0:_0x4781f7['userID'])==null?_0x564341(0x2cb):_0x160fca,_0x5bc475=(_0x23d260=_0x4781f7==null?void 0x0:_0x4781f7[_0x564341(0x3b6)])==null?'unknown':_0x23d260;return{'changeset':{'unitID':_0xa15779,'type':_0x386cb9(_0x305232['getUnitType'](_0xa15779)),'baseRev':_0x18911b['getCurrentRevOfUnit'](_0xa15779),'revision':0x0,'userID':_0x54de57,'memberID':_0x5bc475,'mutations':_0x42550c},'pendingMutations':_0xaebef7[_0x564341(0x2f3)](_0xaebef7['length'])};}function tn(_0x225627,_0x3db0f2){const _0x209f4e=_0x3bc572;return!nn(_0x225627)&&!nn(_0x3db0f2)&&rn(_0x225627[_0x209f4e(0x311)],_0x3db0f2['actions']);}function nn(_0x1d3c9f){const _0x1d36ed=_0x3bc572;return _0x1d3c9f[_0x1d36ed(0x1d5)]!==void 0x0;}function rn(_0x501cb3,_0x2e24f6){return an(_0x501cb3)&&an(_0x2e24f6)&&!sn(_0x501cb3)&&!sn(_0x2e24f6)&&!on(_0x501cb3)&&!on(_0x2e24f6);}function an(_0x5a27ae){const _0x2eb807=_0x3bc572;return cn(_0x5a27ae)[_0x2eb807(0x411)](_0x2dfea7=>ln(_0x2dfea7)&&_0x2dfea7['et']===_0x2eb807(0x2b8));}function on(_0x1594e9){const _0x5be26c=_0x3bc572;return cn(_0x1594e9)[_0x5be26c(0x411)](_0x5b4183=>Array[_0x5be26c(0x2fa)](_0x5b4183)||typeof _0x5b4183==_0x5be26c(0x288)||typeof _0x5b4183==_0x5be26c(0x41d));}function sn(_0x5e77a7){const _0xaaec87=_0x3bc572;return cn(_0x5e77a7)[_0xaaec87(0x411)](_0x18da95=>!ln(_0x18da95)||_0x18da95['et']!=='text-x'||!Array[_0xaaec87(0x2fa)](_0x18da95['e'])?!0x1:_0x18da95['e']['some'](_0x1080f3=>!ln(_0x1080f3)||!ln(_0x1080f3['body'])?!0x1:Object[_0xaaec87(0x1e2)][_0xaaec87(0x2ce)]['call'](_0x1080f3['body'],_0xaaec87(0x31f))||Object['prototype']['hasOwnProperty'][_0xaaec87(0x3ad)](_0x1080f3['body'],_0xaaec87(0x403))||Object[_0xaaec87(0x1e2)][_0xaaec87(0x2ce)][_0xaaec87(0x3ad)](_0x1080f3['body'],'blockRanges')));}function cn(_0x4c643a){const _0x5f3589=_0x3bc572;if(!Array[_0x5f3589(0x2fa)](_0x4c643a))return[];let _0x20596a=_0x4c643a[_0x5f3589(0x382)](_0x5f3589(0x236))?_0x4c643a:_0x4c643a[_0x5f3589(0x398)](_0x2e5c59=>Array['isArray'](_0x2e5c59)&&_0x2e5c59[_0x5f3589(0x382)](_0x5f3589(0x236)));if(!Array[_0x5f3589(0x2fa)](_0x20596a))return[];let _0x2417eb=_0x20596a[_0x5f3589(0x344)]('body');return _0x2417eb===-0x1?[]:_0x20596a['slice'](_0x2417eb+0x1);}function ln(_0xf32c6){const _0x43cf59=_0x3bc572;return typeof _0xf32c6==_0x43cf59(0x3d4)&&!!_0xf32c6&&!Array[_0x43cf59(0x2fa)](_0xf32c6);}function un(_0x1e2b47,_0x230f83){const _0xd4cf60=_0x3bc572;let _0x46b400=new _0x60521f(0x1);return setTimeout(()=>_0x46b400[_0xd4cf60(0x2c7)](_0x230f83),_0x1e2b47),_0x46b400[_0xd4cf60(0x43c)]()[_0xd4cf60(0x264)](_0x5d0356(0x1));}var dn,fn,pn;let mn=function(_0x3fbacb){const _0x201d6a=_0x3bc572;return _0x3fbacb['NOT_COLLAB']='not_collab',_0x3fbacb[_0x201d6a(0x3df)]='synced',_0x3fbacb[_0x201d6a(0x3f0)]=_0x201d6a(0x1af),_0x3fbacb[_0x201d6a(0x389)]='awaiting',_0x3fbacb[_0x201d6a(0x3a4)]=_0x201d6a(0x35e),_0x3fbacb[_0x201d6a(0x3a7)]=_0x201d6a(0x2b0),_0x3fbacb[_0x201d6a(0x39c)]='conflict',_0x3fbacb[_0x201d6a(0x319)]=_0x201d6a(0x3ac),_0x3fbacb;}({});const hn=0x4e20,gn=0x2bf20;var G=class{constructor(_0x5d5f51,_0xbaeeeb,_0x4d9ca,_0x4f58e1,_0x44c91a,_0x1d9120,_0x43249f,_0x5b128a,_0x17b511){const _0xcd37fc=_0x3bc572;this[_0xcd37fc(0x399)]=_0x5d5f51,this[_0xcd37fc(0x2f0)]=_0xbaeeeb,this[_0xcd37fc(0x349)]=_0x44c91a,this[_0xcd37fc(0x39d)]=_0x1d9120,this[_0xcd37fc(0x1db)]=_0x43249f,this[_0xcd37fc(0x3b1)]=_0x5b128a,this[_0xcd37fc(0x422)]=_0x17b511,z(this,_0xcd37fc(0x25c),null),z(this,_0xcd37fc(0x321),[]),this[_0xcd37fc(0x25c)]=_0x4d9ca,this[_0xcd37fc(0x321)]=_0x4f58e1;}[_0x3bc572(0x30e)](_0x4f0918){const _0x2ae6d4=_0x3bc572;let _0x3a92fb=this['_revisionService'][_0x2ae6d4(0x233)](this['unitID']);return _0x4f0918[_0x2ae6d4(0x3bd)]>_0x3a92fb+0x1?(this['_handler'][_0x2ae6d4(0x42a)]({'from':_0x3a92fb,'to':_0x4f0918[_0x2ae6d4(0x3bd)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x587166){const _0x38d83e=_0x3bc572;this['_undoRedoService'][_0x38d83e(0x41b)](this['unitID'],_0x587166);}[_0x3bc572(0x380)](_0x12320e){const _0x119d57=_0x3bc572;var _0x2eafd5,_0xd08b7c;(_0x2eafd5=(_0xd08b7c=this[_0x119d57(0x349)])[_0x119d57(0x237)])==null||_0x2eafd5['call'](_0xd08b7c,_0x12320e);}[_0x3bc572(0x1b0)](_0x2073bd){const _0x3f4b1a=_0x3bc572;var _0x4a1ff5,_0x52c6dc;return(_0x4a1ff5=(_0x52c6dc=this[_0x3f4b1a(0x349)])[_0x3f4b1a(0x1b5)])==null?void 0x0:_0x4a1ff5['call'](_0x52c6dc,_0x2073bd);}[_0x3bc572(0x2f8)](_0x1890b5){const _0x5555ec=_0x3bc572;var _0x2e143c,_0x1c4996;return(_0x2e143c=(_0x1c4996=this[_0x5555ec(0x349)])['onTransformState'])==null?void 0x0:_0x2e143c['call'](_0x1c4996,_0x1890b5);}[_0x3bc572(0x384)](_0x1287c4){const _0x1d5199=_0x3bc572;var _0xa35a20,_0x407031,_0x8b4ac4;return(_0xa35a20=(_0x407031=(_0x8b4ac4=this[_0x1d5199(0x349)])[_0x1d5199(0x3ab)])==null?void 0x0:_0x407031[_0x1d5199(0x3ad)](_0x8b4ac4,_0x1287c4))==null?_0x1287c4:_0xa35a20;}[_0x3bc572(0x2d7)](_0xffa975){const _0x3d522a=_0x3bc572;var _0x4297d9,_0x510468,_0x2e769c;return(_0x4297d9=(_0x510468=(_0x2e769c=this[_0x3d522a(0x349)])[_0x3d522a(0x365)])==null?void 0x0:_0x510468['call'](_0x2e769c,_0xffa975))==null?_0xffa975:_0x4297d9;}[_0x3bc572(0x31e)](_0x3c5e80){const _0x5d8d25=_0x3bc572;if(this[_0x5d8d25(0x2f0)]===_0x1f1b4f[_0x5d8d25(0x3e1)]){let {unitID:_0x3fe5db,mutations:_0x16a46b,memberID:_0x24dfed}=_0x3c5e80,_0x37463c=_0x16a46b[_0x5d8d25(0x28d)]>0x0?_0x16a46b[0x0][_0x5d8d25(0x2a4)][_0x5d8d25(0x2be)]:[];if(Array[_0x5d8d25(0x2fa)](_0x37463c)&&_0x37463c[_0x5d8d25(0x28d)]>0x0){var _0x1852d5,_0x1409ac;(_0x1852d5=(_0x1409ac=this[_0x5d8d25(0x349)])[_0x5d8d25(0x215)])==null||_0x1852d5[_0x5d8d25(0x3ad)](_0x1409ac,{'unitID':_0x3fe5db,'memberID':_0x24dfed,'textRanges':_0x37463c});}}}['_updateLocalCache'](){const _0x4e55a4=_0x3bc572;var _0xe70d84;(_0xe70d84=this['_localCacheService'])==null||_0xe70d84[_0x4e55a4(0x29d)](this[_0x4e55a4(0x399)],this['type'],this[_0x4e55a4(0x25c)],this[_0x4e55a4(0x321)]);}[_0x3bc572(0x2b2)](){const _0x18ebcc=_0x3bc572;return this['_revisionService'][_0x18ebcc(0x233)](this[_0x18ebcc(0x399)]);}['_incrementRevisionNumber'](){const _0x56edf3=_0x3bc572;this[_0x56edf3(0x3b1)][_0x56edf3(0x32d)](this[_0x56edf3(0x399)]);}[_0x3bc572(0x2b6)](_0x3d292d){const _0x4df71f=_0x3bc572;let _0xcf0aac=this[_0x4df71f(0x384)](_0x3d292d);_0xcf0aac=this[_0x4df71f(0x2d7)](_0xcf0aac);let _0x3dbc31=_0x416b22(_0xcf0aac[_0x4df71f(0x227)],this[_0x4df71f(0x39d)],{'fromCollab':!0x0});if(!_0x3dbc31[_0x4df71f(0x256)]){var _0x225ce9;throw _0x3dbc31[_0x4df71f(0x298)]instanceof Error?_0x3dbc31[_0x4df71f(0x298)]:Error((_0x225ce9=_0x3dbc31[_0x4df71f(0x298)])==null?_0x4df71f(0x27a):_0x225ce9);}this[_0x4df71f(0x1b0)](_0xcf0aac),this[_0x4df71f(0x2f8)](_0xcf0aac),this[_0x4df71f(0x447)](_0x3d292d),this['_transformSelections'](_0xcf0aac),this['_syncEditingCollabCursor'](_0xcf0aac),this[_0x4df71f(0x433)]();}};let K=class extends G{constructor(_0x193fe0,_0x3b4e21,_0x19c6aa,_0x2dcf7f,_0x2ea382,_0x3bb737,_0x486d93,_0x5ce6c6,_0xe34151,_0x24871d){const _0xc583e0=_0x3bc572;super(_0x193fe0,_0x3b4e21,null,[],_0x19c6aa,_0x486d93,_0x3bb737,_0x2dcf7f,_0x24871d),this[_0xc583e0(0x44d)]=_0x2ea382,this[_0xc583e0(0x1c1)]=_0x5ce6c6,this[_0xc583e0(0x284)]=_0xe34151,this[_0xc583e0(0x300)]=_0x24871d,z(this,'status','synced');}[_0x3bc572(0x34d)](_0x44e010){const _0x247f59=_0x3bc572;let _0x4d3dd1=this[_0x247f59(0x44d)][_0x247f59(0x2fe)](q,this['unitID'],this[_0x247f59(0x2f0)],[_0x44e010],this[_0x247f59(0x349)]);return _0x4d3dd1[_0x247f59(0x32a)](),_0x4d3dd1[_0x247f59(0x2f5)](),_0x4d3dd1;}[_0x3bc572(0x419)](_0x4f21f5){const _0x14436c=_0x3bc572;if(this[_0x14436c(0x30e)](_0x4f21f5))return this[_0x14436c(0x44d)][_0x14436c(0x2fe)](Q,this[_0x14436c(0x399)],this['type'],null,[],null,[_0x4f21f5],this[_0x14436c(0x349)]);try{let _0x64a9e0=this['_transformService']['transformMutationsWithChangeset'](_0x4f21f5,[_0x1b64d1]);if(_0x34fd35(_0x64a9e0)){let {c1Prime:_0x23023e}=_0x64a9e0;return this[_0x14436c(0x2b6)](_0x23023e),this;}throw _0x64a9e0[_0x14436c(0x298)];}catch(_0x3ca0d3){return this[_0x14436c(0x1c1)][_0x14436c(0x298)](_0x3ca0d3),this[_0x14436c(0x3bc)](!0x1);}}[_0x3bc572(0x3bc)](_0x3fe7da){const _0x232d0d=_0x3bc572;return this['_injector'][_0x232d0d(0x2fe)](X,this[_0x232d0d(0x399)],this[_0x232d0d(0x2f0)],null,[],this[_0x232d0d(0x349)],_0x3fe7da);}[_0x3bc572(0x1fd)](_0x8ad938){const _0x556603=_0x3bc572;if(_0x8ad938[_0x556603(0x3bd)]<=this[_0x556603(0x2b2)]())return this;throw Error(_0x556603(0x29e));}['onRemoteRej'](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3bc572(0x26a)](){const _0xa7c583=_0x3bc572;return this[_0xa7c583(0x44d)][_0xa7c583(0x2fe)](Z,this['unitID'],this[_0xa7c583(0x2f0)],null,[],this[_0xa7c583(0x349)]);}[_0x3bc572(0x230)](){return this;}['resend'](){const _0x1c6c19=_0x3bc572;throw Error(_0x1c6c19(0x1d1));}['fetchMiss'](){const _0x509056=_0x3bc572;let _0x2b52a0=this[_0x509056(0x3b1)][_0x509056(0x233)](this[_0x509056(0x399)]);return this[_0x509056(0x349)]['onMissingChangesets']({'from':_0x2b52a0,'to':0x0}),this['_injector'][_0x509056(0x2fe)](Q,this['unitID'],this[_0x509056(0x2f0)],null,[],null,[],this['_handler']);}};K=H([V(0x3,_0x167908(_0x2cb5e4)),V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x51c17f),V(0x6,_0x1f135e),V(0x7,_0x2e09c7),V(0x8,_0x29bc05),V(0x9,_0x2a5dd8(U))],K);let q=dn=class extends G{constructor(_0x436fdd,_0x2b45ee,_0x151dad,_0x3c7997,_0x4a0aaa,_0x2c0083,_0x5017fa,_0x5044a9,_0xdce33,_0x1673ae,_0x53c64b,_0x40a4a5,_0x177124,_0x1ce2e3){const _0x512115=_0x3bc572;super(_0x436fdd,_0x2b45ee,null,_0x151dad,_0x3c7997,_0xdce33,_0x177124,_0x2c0083,_0x1ce2e3),this[_0x512115(0x44d)]=_0x4a0aaa,this['_userManagerService']=_0x5017fa,this[_0x512115(0x1c1)]=_0x5044a9,this[_0x512115(0x1c9)]=_0x1673ae,this[_0x512115(0x284)]=_0x53c64b,this['_univerInstanceService']=_0x40a4a5,z(this,'status',_0x512115(0x1af)),z(this,_0x512115(0x317),null),z(this,'_sendingTimer',null);}[_0x3bc572(0x34d)](_0x1116c0){const _0x2367e4=_0x3bc572;return this['_pendingMutations'][_0x2367e4(0x250)](_0x1116c0),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x432eb0){const _0x3e186a=_0x3bc572;if(this[_0x3e186a(0x30e)](_0x432eb0))return this[_0x3e186a(0x2f1)](),this[_0x3e186a(0x44d)][_0x3e186a(0x2fe)](Q,this[_0x3e186a(0x399)],this[_0x3e186a(0x2f0)],null,this[_0x3e186a(0x321)],null,[_0x432eb0],this[_0x3e186a(0x349)]);try{let _0xb536f2=this[_0x3e186a(0x284)][_0x3e186a(0x37a)](_0x432eb0,this['_pendingMutations']);if(_0x34fd35(_0xb536f2)){let {c1Prime:_0x3fc4c5,m2Prime:_0x510014}=_0xb536f2;this[_0x3e186a(0x2b6)](_0x3fc4c5);let _0x13d8c8=this[_0x3e186a(0x44d)][_0x3e186a(0x2fe)](dn,this[_0x3e186a(0x399)],this[_0x3e186a(0x2f0)],_0x510014,this[_0x3e186a(0x349)]);this[_0x3e186a(0x2f1)]();let _0x18429a=new Date()[_0x3e186a(0x339)](),_0x36abfd=this[_0x3e186a(0x317)]?Math[_0x3e186a(0x200)](this['_scheduleCompleteTimestamp']-_0x18429a,0x0):this[_0x3e186a(0x424)]();return _0x13d8c8[_0x3e186a(0x32a)](_0x36abfd),_0x13d8c8;}throw _0xb536f2[_0x3e186a(0x298)];}catch(_0x133398){return this[_0x3e186a(0x1c1)]['error'](_0x133398),this[_0x3e186a(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0x529686){const _0xcab950=_0x3bc572;if(_0x529686['revision']<=this[_0xcab950(0x2b2)]())return this;throw Error(_0xcab950(0x434));}[_0x3bc572(0x38a)](){const _0xfba4fa=_0x3bc572;throw Error(_0xfba4fa(0x39a));}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){const _0x58936e=_0x3bc572;return this['_clearScheduledTask'](),this[_0x58936e(0x44d)][_0x58936e(0x2fe)](Z,this[_0x58936e(0x399)],this[_0x58936e(0x2f0)],null,this[_0x58936e(0x321)],this['_handler']);}[_0x3bc572(0x230)](){return this;}[_0x3bc572(0x32a)](_0xda5e91){const _0x31de7b=_0x3bc572;let _0x44994a=_0xda5e91==null?this[_0x31de7b(0x424)]():_0xda5e91;this[_0x31de7b(0x317)]=new Date()['getTime']()+_0x44994a,this['_sendingTimer']=setTimeout(()=>{const _0x2357b1=_0x31de7b;this['_clearScheduledTask']();let _0x1f5127=null;switch(this[_0x2357b1(0x2f0)]){case _0x1f1b4f[_0x2357b1(0x33c)]:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this['_univerInstanceService'],this['_revisionService'],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f['UNIVER_DOC']:_0x1f5127=this['_pendingMutations']['every'](_0x56f2d6=>_0x56f2d6['id']===_0x7aa9b['id'])?en(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]):Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this['_univerInstanceService'],this[_0x2357b1(0x3b1)],this['_userManagerService']);break;case _0x1f1b4f['UNIVER_SLIDE']:_0x1f5127=$t(this[_0x2357b1(0x321)],this['unitID'],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f[_0x2357b1(0x2ca)]:_0x1f5127=Qt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this['_revisionService'],this[_0x2357b1(0x2e0)]);break;case _0x1f1b4f['UNIVER_BOARD']:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this['_revisionService'],this['_userManagerService']);break;case _0x1f1b4f[_0x2357b1(0x3fd)]:_0x1f5127=Zt(this[_0x2357b1(0x321)],this[_0x2357b1(0x399)],this[_0x2357b1(0x449)],this[_0x2357b1(0x3b1)],this[_0x2357b1(0x2e0)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2357b1(0x2f0)]+'\x20in\x20_schedule.');}let {changeset:_0x2bb61e,pendingMutations:_0x63a9c9}=_0x1f5127;this[_0x2357b1(0x349)][_0x2357b1(0x1ac)](_0x2bb61e);let _0x4fb4a4=_0x63a9c9['length']?this[_0x2357b1(0x44d)][_0x2357b1(0x2fe)](Y,this[_0x2357b1(0x399)],this['type'],_0x2bb61e,_0x63a9c9,this[_0x2357b1(0x349)],void 0x0):this['_injector'][_0x2357b1(0x2fe)](J,this[_0x2357b1(0x399)],this[_0x2357b1(0x2f0)],_0x2bb61e,this['_handler']);_0x4fb4a4['_updateLocalCache'](),this[_0x2357b1(0x349)]['onStateChange'](this,_0x4fb4a4);},_0x44994a);}[_0x3bc572(0x424)](){const _0x4d2098=_0x3bc572;var _0x24ef1f;let _0x4140e7=this[_0x4d2098(0x1c9)][_0x4d2098(0x306)](R);return(_0x24ef1f=_0x4140e7==null?void 0x0:_0x4140e7[_0x4d2098(0x418)])==null?0x7d0:_0x24ef1f;}[_0x3bc572(0x289)](){const _0x4be7b8=_0x3bc572;throw Error(_0x4be7b8(0x370));}[_0x3bc572(0x2f1)](){const _0x8b46b0=_0x3bc572;this[_0x8b46b0(0x3dd)]!=null&&(clearTimeout(this[_0x8b46b0(0x3dd)]),this[_0x8b46b0(0x3dd)]=null);}[_0x3bc572(0x3bc)](_0x5aee6c){const _0x5c1ca3=_0x3bc572;return this['_clearScheduledTask'](),this[_0x5c1ca3(0x44d)][_0x5c1ca3(0x2fe)](X,this['unitID'],this[_0x5c1ca3(0x2f0)],null,this[_0x5c1ca3(0x321)],this[_0x5c1ca3(0x349)],_0x5aee6c);}};q=dn=H([V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x167908(_0x2cb5e4)),V(0x6,_0x167908(_0x1ab04a)),V(0x7,_0x2e09c7),V(0x8,_0x1f135e),V(0x9,_0xa7a1b6),V(0xa,_0x29bc05),V(0xb,_0x6f9bb2),V(0xc,_0x51c17f),V(0xd,_0x2a5dd8(U))],q);let J=fn=class extends G{constructor(_0xc0890d,_0x440a5f,_0x40c150,_0x518e52,_0x558068,_0x2ca0fb,_0x5cd4bc,_0x49d34c,_0x3ad081,_0x3369dc,_0x18f9de){const _0x19178e=_0x3bc572;super(_0xc0890d,_0x440a5f,_0x40c150,[],_0x518e52,_0x5cd4bc,_0x3369dc,_0x2ca0fb,_0x18f9de),this[_0x19178e(0x44d)]=_0x558068,this['_logService']=_0x49d34c,this[_0x19178e(0x284)]=_0x3ad081,z(this,_0x19178e(0x443),'awaiting'),z(this,_0x19178e(0x34f),0x0),z(this,_0x19178e(0x342),0x0),z(this,_0x19178e(0x2e7),void 0x0),z(this,_0x19178e(0x320),void 0x0);}[_0x3bc572(0x34d)](_0x1142c6){const _0x4bddac=_0x3bc572;this[_0x4bddac(0x2f1)]();let _0x4130fa=this[_0x4bddac(0x44d)][_0x4bddac(0x2fe)](Y,this[_0x4bddac(0x399)],this['type'],this[_0x4bddac(0x25c)],[_0x1142c6],this[_0x4bddac(0x349)],this[_0x4bddac(0x2e7)]);return _0x4130fa[_0x4bddac(0x2f5)](),_0x4130fa;}[_0x3bc572(0x419)](_0x224e8e){const _0x5f0405=_0x3bc572;if(this[_0x5f0405(0x30e)](_0x224e8e))return this['_clearScheduledTask'](),this[_0x5f0405(0x44d)][_0x5f0405(0x2fe)](Q,this['unitID'],this[_0x5f0405(0x2f0)],this[_0x5f0405(0x25c)],[],null,[_0x224e8e],this[_0x5f0405(0x349)]);try{let _0x225aea=this['_transformService']['transformChangesets']([_0x224e8e],[this[_0x5f0405(0x25c)]],!0x1);if(_0x41af53(_0x225aea)){let {c1Prime:_0x58177a,c2Prime:_0x3af9b8}=_0x225aea;this[_0x5f0405(0x2b6)](_0x58177a[0x0]),_0x3af9b8[0x0][_0x5f0405(0x2eb)]=this[_0x5f0405(0x2b2)](),this[_0x5f0405(0x2f1)]();let _0x970271=this[_0x5f0405(0x44d)]['createInstance'](fn,this[_0x5f0405(0x399)],this[_0x5f0405(0x2f0)],_0x3af9b8[0x0],this['_handler']);return _0x970271[_0x5f0405(0x2f5)](),_0x970271;}throw _0x225aea[_0x5f0405(0x298)];}catch(_0x2f4546){return this[_0x5f0405(0x1c1)]['error'](_0x2f4546),this[_0x5f0405(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0xc8a96d){const _0x5e6f23=_0x3bc572;this[_0x5e6f23(0x2f1)]();let _0x3d585e=this[_0x5e6f23(0x3b1)][_0x5e6f23(0x233)](this[_0x5e6f23(0x399)]);if(_0xc8a96d['revision']<=_0x3d585e)return this;if(this[_0x5e6f23(0x30e)](_0xc8a96d))return this[_0x5e6f23(0x44d)][_0x5e6f23(0x2fe)](Q,this[_0x5e6f23(0x399)],this[_0x5e6f23(0x2f0)],this['_awaitingChangeset'],[],_0xc8a96d[_0x5e6f23(0x3bd)],[],this[_0x5e6f23(0x349)]);this[_0x5e6f23(0x433)]();let _0x498370=this[_0x5e6f23(0x44d)][_0x5e6f23(0x2fe)](K,this[_0x5e6f23(0x399)],this['type'],this[_0x5e6f23(0x349)]);return _0x498370[_0x5e6f23(0x2f5)](),_0x498370;}[_0x3bc572(0x38a)](_0x4327a7){const _0x216248=_0x3bc572;return this[_0x216248(0x3bc)](!!(_0x4327a7!=null&&_0x4327a7[_0x216248(0x391)]));}[_0x3bc572(0x413)](_0x456a76){const _0x1233a6=_0x3bc572;return this[_0x1233a6(0x342)]>gn?this['toggleOffline']():(this['_resendTimer']=un(this[_0x1233a6(0x34f)],{'timeout':this[_0x1233a6(0x34f)],'reqId':_0x456a76[_0x1233a6(0x22b)]}),this[_0x1233a6(0x320)]=this[_0x1233a6(0x2e7)][_0x1233a6(0x368)](({reqId:_0x1b5f3e,timeout:_0x1b343b})=>{const _0x2133a4=_0x1233a6;this[_0x2133a4(0x1cd)](_0x1b5f3e,_0x1b343b);}),this);}[_0x3bc572(0x26a)](){const _0x2a8ffa=_0x3bc572;return this[_0x2a8ffa(0x2f1)](),this['_injector'][_0x2a8ffa(0x2fe)](Z,this[_0x2a8ffa(0x399)],this[_0x2a8ffa(0x2f0)],this[_0x2a8ffa(0x25c)],[],this[_0x2a8ffa(0x349)]);}['toggleOnline'](){return this;}[_0x3bc572(0x289)](){const _0x2f5378=_0x3bc572;this[_0x2f5378(0x349)][_0x2f5378(0x1ac)](this['_awaitingChangeset']);}[_0x3bc572(0x3bc)](_0x4605be){const _0x3eee3d=_0x3bc572;return this[_0x3eee3d(0x2f1)](),this[_0x3eee3d(0x44d)][_0x3eee3d(0x2fe)](X,this[_0x3eee3d(0x399)],this['type'],this[_0x3eee3d(0x25c)],[],this[_0x3eee3d(0x349)],_0x4605be);}['_resendWithTimeout'](_0x52b3db,_0x31a0df){const _0x22d3d7=_0x3bc572;var _0x31a873;_0x52b3db===((_0x31a873=this[_0x22d3d7(0x25c)])==null?void 0x0:_0x31a873[_0x22d3d7(0x22b)])&&(this[_0x22d3d7(0x289)](),this[_0x22d3d7(0x34f)]=_0x31a0df===0x0?0x3e8:Math[_0x22d3d7(0x361)](_0x31a0df*0x2,hn),this[_0x22d3d7(0x342)]+=this[_0x22d3d7(0x34f)]);}['_clearScheduledTask'](){const _0x6964a3=_0x3bc572;var _0x175c32;(_0x175c32=this['_sender'])==null||_0x175c32['unsubscribe'](),this[_0x6964a3(0x34f)]=0x0,this[_0x6964a3(0x342)]=0x0;}};J=fn=H([V(0x4,_0x167908(_0x35e9e2)),V(0x5,_0x167908(_0x2cb5e4)),V(0x6,_0x1f135e),V(0x7,_0x2e09c7),V(0x8,_0x29bc05),V(0x9,_0x51c17f),V(0xa,_0x2a5dd8(U))],J);let Y=pn=class extends G{constructor(_0x40c54b,_0x28c7f8,_0x13e26b,_0x5e406e,_0x10d86c,_0x3dfb21,_0x9b0053,_0x58a19a,_0x546f7b,_0x1cbba9,_0x3d8be1,_0x1374fe,_0x42f9ee){const _0x367900=_0x3bc572;super(_0x40c54b,_0x28c7f8,_0x13e26b,_0x5e406e,_0x10d86c,_0x546f7b,_0x1374fe,_0x58a19a,_0x42f9ee),this[_0x367900(0x44d)]=_0x9b0053,this[_0x367900(0x1c1)]=_0x1cbba9,this[_0x367900(0x284)]=_0x3d8be1,this[_0x367900(0x300)]=_0x42f9ee,z(this,_0x367900(0x443),_0x367900(0x35e)),z(this,'_resendTimeout',0x0),z(this,_0x367900(0x342),0x0),z(this,_0x367900(0x2e7),void 0x0),z(this,_0x367900(0x320),void 0x0),_0x3dfb21&&(this[_0x367900(0x2e7)]=_0x3dfb21,this['_sender']=this[_0x367900(0x2e7)][_0x367900(0x368)](({reqId:_0x1c5bc8,timeout:_0x32b8a2})=>{this['_resendWithTimeout'](_0x1c5bc8,_0x32b8a2);}));}['appendMutation'](_0x1bc6ec){const _0x5b6dc7=_0x3bc572;return this[_0x5b6dc7(0x321)][_0x5b6dc7(0x250)](_0x1bc6ec),this;}['onRemoteChangeset'](_0x40f30b){const _0x2feb80=_0x3bc572;if(this['_checkMissing'](_0x40f30b))return this['_clearScheduledTask'](),this['_injector'][_0x2feb80(0x2fe)](Q,this[_0x2feb80(0x399)],this[_0x2feb80(0x2f0)],this[_0x2feb80(0x25c)],this[_0x2feb80(0x321)],null,[_0x40f30b],this[_0x2feb80(0x349)]);try{let _0x1d7641=this[_0x2feb80(0x284)][_0x2feb80(0x1f2)]([_0x40f30b],[this[_0x2feb80(0x25c)]],!0x1);if(_0x41af53(_0x1d7641)){let {c1Prime:_0x905a8a,c2Prime:_0x3b8545}=_0x1d7641,_0x35e187=this[_0x2feb80(0x284)][_0x2feb80(0x37a)](_0x905a8a[0x0],this[_0x2feb80(0x321)]);if(_0x34fd35(_0x35e187)){let {c1Prime:_0x5c7cb1,m2Prime:_0x150589}=_0x35e187;return this['_executeRemoteChangeset'](_0x5c7cb1),_0x3b8545[0x0][_0x2feb80(0x2eb)]=this[_0x2feb80(0x2b2)](),this[_0x2feb80(0x2f1)](),this[_0x2feb80(0x44d)]['createInstance'](pn,this[_0x2feb80(0x399)],this[_0x2feb80(0x2f0)],_0x3b8545[0x0],_0x150589,this[_0x2feb80(0x349)],void 0x0);}throw _0x35e187[_0x2feb80(0x298)];}throw _0x1d7641[_0x2feb80(0x298)];}catch(_0x351b64){return this['_logService'][_0x2feb80(0x298)](_0x351b64),this[_0x2feb80(0x3bc)](!0x1);}}[_0x3bc572(0x1fd)](_0x323294){const _0x2325ca=_0x3bc572;this[_0x2325ca(0x2f1)]();let _0x2817d3=this[_0x2325ca(0x2b2)]();if(_0x323294[_0x2325ca(0x3bd)]<=_0x2817d3)return this;if(this[_0x2325ca(0x30e)](_0x323294))return this[_0x2325ca(0x44d)][_0x2325ca(0x2fe)](Q,this[_0x2325ca(0x399)],this['type'],this[_0x2325ca(0x25c)],this[_0x2325ca(0x321)],_0x323294[_0x2325ca(0x3bd)],[],this[_0x2325ca(0x349)]);this[_0x2325ca(0x433)]();let _0x50fcc6=this[_0x2325ca(0x44d)][_0x2325ca(0x2fe)](q,this['unitID'],this['type'],this[_0x2325ca(0x321)],this[_0x2325ca(0x349)]);return _0x50fcc6['_schedule'](),_0x50fcc6[_0x2325ca(0x2f5)](),_0x50fcc6;}[_0x3bc572(0x38a)](_0x4b91d8){const _0x357879=_0x3bc572;return this[_0x357879(0x3bc)](!!(_0x4b91d8!=null&&_0x4b91d8[_0x357879(0x391)]));}[_0x3bc572(0x413)](_0x233c4c){const _0x33daa3=_0x3bc572;return this['_maxTotalRetryTimeout']>gn?this['toggleOffline']():(this[_0x33daa3(0x2e7)]=un(this[_0x33daa3(0x34f)],{'timeout':this[_0x33daa3(0x34f)],'reqId':_0x233c4c[_0x33daa3(0x22b)]}),this[_0x33daa3(0x320)]=this[_0x33daa3(0x2e7)][_0x33daa3(0x368)](({reqId:_0xf05885,timeout:_0x15ec91})=>{const _0x5c9f10=_0x33daa3;this[_0x5c9f10(0x1cd)](_0xf05885,_0x15ec91);}),this);}[_0x3bc572(0x26a)](){const _0x1d1143=_0x3bc572;return this[_0x1d1143(0x2f1)](),this['_injector'][_0x1d1143(0x2fe)](Z,this['unitID'],this['type'],this[_0x1d1143(0x25c)],this[_0x1d1143(0x321)],this[_0x1d1143(0x349)]);}[_0x3bc572(0x230)](){return this;}['resend'](){const _0x31efb8=_0x3bc572;this[_0x31efb8(0x349)][_0x31efb8(0x1ac)](this['_awaitingChangeset']);}[_0x3bc572(0x3bc)](_0xc6b02a){const _0x42ee77=_0x3bc572;return this[_0x42ee77(0x2f1)](),this[_0x42ee77(0x44d)][_0x42ee77(0x2fe)](X,this[_0x42ee77(0x399)],this[_0x42ee77(0x2f0)],null,this['_pendingMutations'],this['_handler'],_0xc6b02a);}[_0x3bc572(0x1cd)](_0x3a8ea2,_0x35077d){const _0x3f64b8=_0x3bc572;var _0x2ce4cb;_0x3a8ea2===((_0x2ce4cb=this[_0x3f64b8(0x25c)])==null?void 0x0:_0x2ce4cb[_0x3f64b8(0x22b)])&&(this['resend'](),this[_0x3f64b8(0x34f)]=_0x35077d===0x0?0x3e8:Math[_0x3f64b8(0x361)](_0x35077d*0x2,hn),this[_0x3f64b8(0x342)]+=this['_resendTimeout']);}[_0x3bc572(0x2f1)](){const _0x2e4961=_0x3bc572;var _0x148598;(_0x148598=this[_0x2e4961(0x320)])==null||_0x148598['unsubscribe'](),this[_0x2e4961(0x34f)]=0x0,this[_0x2e4961(0x342)]=0x0;}};Y=pn=H([V(0x6,_0x167908(_0x35e9e2)),V(0x7,_0x167908(_0x2cb5e4)),V(0x8,_0x1f135e),V(0x9,_0x2e09c7),V(0xa,_0x29bc05),V(0xb,_0x51c17f),V(0xc,_0x2a5dd8(U))],Y);let X=class extends G{constructor(_0xb0a240,_0x228080,_0x4b9d61,_0x37de91,_0x35b607,_0x532b40=!0x1,_0x2b63ca,_0x5a1bfa,_0x507131,_0x402147,_0x3018ec,_0xca040e,_0x24e3fb){const _0x528483=_0x3bc572;super(_0xb0a240,_0x228080,_0x4b9d61,_0x37de91,_0x35b607,_0x5a1bfa,_0x507131,_0x402147,_0x24e3fb),this[_0x528483(0x2da)]=_0x532b40,this[_0x528483(0x1cb)]=_0x2b63ca,this['_localeService']=_0x3018ec,this[_0x528483(0x33e)]=_0xca040e,this[_0x528483(0x300)]=_0x24e3fb,z(this,_0x528483(0x443),_0x528483(0x22a)),this[_0x528483(0x3e6)](),this['_clearLocalCache'](),this['_disableEditing']();}[_0x3bc572(0x34d)](){return this;}[_0x3bc572(0x419)](){return this;}[_0x3bc572(0x1fd)](){return this;}[_0x3bc572(0x38a)](){return this;}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){return this;}[_0x3bc572(0x230)](){return this;}[_0x3bc572(0x289)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc572(0x229)](){const _0x5cd7c0=_0x3bc572;var _0x2e369f,_0x2899b6,_0x96e06;(_0x2e369f=this[_0x5cd7c0(0x422)])==null||(_0x2899b6=_0x2e369f[_0x5cd7c0(0x267)])==null||(_0x2899b6=_0x2899b6['call'](_0x2e369f,this['unitID'],_0x5cd7c0(0x22a)))==null||_0x2899b6['catch'](()=>void 0x0),(_0x96e06=this[_0x5cd7c0(0x422)])==null||_0x96e06[_0x5cd7c0(0x29d)](this[_0x5cd7c0(0x399)],this[_0x5cd7c0(0x2f0)],null,[]);}[_0x3bc572(0x3e6)](){const _0x243976=_0x3bc572;this['_isPermissionRej']?this[_0x243976(0x33e)][_0x243976(0x340)]({'id':_0x243976(0x2ab)}):this[_0x243976(0x33e)][_0x243976(0x340)]({'id':_0x243976(0x39c)});}[_0x3bc572(0x1d6)](){const _0x345c9a=_0x3bc572;this[_0x345c9a(0x1cb)][_0x345c9a(0x429)](new _0x3d21fe(this[_0x345c9a(0x399)])['id'],!0x1);}};X=H([V(0x6,_0x167908(_0x3058fc)),V(0x7,_0x1f135e),V(0x8,_0x51c17f),V(0x9,_0x167908(_0x2cb5e4)),V(0xa,_0x167908(_0x3b5f18)),V(0xb,_0x167908(B)),V(0xc,_0x2a5dd8(U))],X);let Z=class extends G{constructor(_0x102cc1,_0x41a25a,_0x391f61,_0x315bd0,_0x5b7f17,_0x450a10,_0x2a6560,_0x32183c,_0x3b72e7,_0x155a71){const _0x141176=_0x3bc572;super(_0x102cc1,_0x41a25a,_0x391f61,_0x315bd0,_0x5b7f17,_0x32183c,_0x3b72e7,_0x2a6560,_0x155a71),this[_0x141176(0x44d)]=_0x450a10,z(this,_0x141176(0x443),'offline');}[_0x3bc572(0x34d)](_0x4590f5){const _0x5b0052=_0x3bc572;return this[_0x5b0052(0x321)][_0x5b0052(0x250)](_0x4590f5),this[_0x5b0052(0x2f5)](),this;}[_0x3bc572(0x419)](_0x4c059e){const _0x1664a1=_0x3bc572;throw Error(_0x1664a1(0x39f));}['onRemoteAck'](){const _0x5316ec=_0x3bc572;throw Error(_0x5316ec(0x2fd));}[_0x3bc572(0x38a)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x3bc572(0x413)](){return this;}[_0x3bc572(0x26a)](){return this;}['toggleOnline'](){const _0x310d63=_0x3bc572;let {_injector:_0x39210b,_pendingMutations:_0x295daa,_awaitingChangeset:_0x18406,unitID:_0x13cc7b,_handler:_0x1e910a,type:_0x518b56}=this,_0x223a66=_n(_0x39210b,_0x13cc7b,_0x518b56,_0x18406,_0x295daa,_0x1e910a);return _0x223a66 instanceof q?_0x223a66[_0x310d63(0x32a)]():(_0x223a66 instanceof Y||_0x223a66 instanceof J)&&_0x223a66['resend'](),_0x223a66;}[_0x3bc572(0x289)](){const _0x2404e6=_0x3bc572;throw Error(_0x2404e6(0x350));}};Z=H([V(0x5,_0x167908(_0x35e9e2)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x1f135e),V(0x8,_0x51c17f),V(0x9,_0x2a5dd8(U))],Z);let Q=class extends G{constructor(_0xc4276c,_0x177ed2,_0x272334,_0xbfd6b6,_0x31a91a,_0x13bf9,_0x2eda27,_0x13cc46,_0x38d536,_0x4efb6d,_0x8acefe,_0x596f97,_0x41783d,_0x5a68e5){const _0x5b99f8=_0x3bc572;super(_0xc4276c,_0x177ed2,_0x272334,_0xbfd6b6,_0x2eda27,_0x8acefe,_0x596f97,_0x38d536,_0x5a68e5),this[_0x5b99f8(0x2b7)]=_0x31a91a,this[_0x5b99f8(0x2e9)]=_0x13bf9,this[_0x5b99f8(0x44d)]=_0x13cc46,this[_0x5b99f8(0x1c1)]=_0x4efb6d,this[_0x5b99f8(0x284)]=_0x41783d,this[_0x5b99f8(0x300)]=_0x5a68e5,z(this,_0x5b99f8(0x443),_0x5b99f8(0x2b0));}[_0x3bc572(0x332)](_0x35c7e5){const _0x1c7e88=_0x3bc572;try{if(this[_0x1c7e88(0x1e5)](_0x35c7e5)[_0x1c7e88(0x338)])throw Error(_0x1c7e88(0x31b));if(this[_0x1c7e88(0x1e5)]([...this[_0x1c7e88(0x2e9)]][_0x1c7e88(0x276)]((_0x1d663f,_0xf8394d)=>_0x1d663f['revision']-_0xf8394d[_0x1c7e88(0x3bd)]))['missingChangesets'])return this[_0x1c7e88(0x2e9)]=[],this[_0x1c7e88(0x2f5)](),this[_0x1c7e88(0x349)][_0x1c7e88(0x42a)]({'from':this[_0x1c7e88(0x2b2)](),'to':0x0}),this;let _0x152b53=this[_0x1c7e88(0x25c)],_0x42b756=this[_0x1c7e88(0x321)],_0x5c6fc4;if(_0x152b53&&_0x42b756[_0x1c7e88(0x28d)]!==0x0)_0x5c6fc4=this['_injector']['createInstance'](Y,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x152b53,_0x42b756,this[_0x1c7e88(0x349)],void 0x0);else{if(_0x152b53&&_0x42b756[_0x1c7e88(0x28d)]===0x0)_0x152b53[_0x1c7e88(0x2eb)]=this[_0x1c7e88(0x2b2)](),_0x5c6fc4=this['_injector'][_0x1c7e88(0x2fe)](J,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x152b53,this[_0x1c7e88(0x349)]);else{if(_0x42b756[_0x1c7e88(0x28d)]!==0x0){let _0xa1073a=this[_0x1c7e88(0x44d)]['createInstance'](q,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],_0x42b756,this['_handler']);_0xa1073a[_0x1c7e88(0x32a)](),_0x5c6fc4=_0xa1073a;}else _0x5c6fc4=this['_injector'][_0x1c7e88(0x2fe)](K,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],this[_0x1c7e88(0x349)]);}}return _0x5c6fc4[_0x1c7e88(0x2f5)](),_0x5c6fc4;}catch(_0x12d719){return this['_logService'][_0x1c7e88(0x298)](_0x1c7e88(0x3c7),_0x1c7e88(0x1f8),_0x12d719),this['_injector']['createInstance'](X,this[_0x1c7e88(0x399)],this[_0x1c7e88(0x2f0)],this[_0x1c7e88(0x25c)],this[_0x1c7e88(0x321)],this[_0x1c7e88(0x349)],!0x1);}}[_0x3bc572(0x1e5)](_0xf2e7de){const _0x2def73=_0x3bc572;this[_0x2def73(0x260)]();for(let _0x6cdb7c=0x0;_0x6cdb7c<_0xf2e7de[_0x2def73(0x28d)];_0x6cdb7c++){let _0x5a078e=_0xf2e7de[_0x6cdb7c],_0x382d40=this[_0x2def73(0x2b2)]();if(!(_0x5a078e[_0x2def73(0x3bd)]<=_0x382d40)){if(_0x5a078e[_0x2def73(0x3bd)]>_0x382d40+0x1)return{'missingChangesets':!0x0};if(this[_0x2def73(0x2d5)](_0x5a078e)){this[_0x2def73(0x38e)]();continue;}this[_0x2def73(0x394)](_0x5a078e),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x3bc572(0x394)](_0x263f1d){const _0x348fba=_0x3bc572;let _0x5186a9=_0x263f1d,_0x2bb647=this[_0x348fba(0x25c)];if(_0x2bb647){let _0x3b96a1=this[_0x348fba(0x284)]['transformChangesets']([_0x263f1d],[_0x2bb647],!0x1);if(!_0x41af53(_0x3b96a1))throw _0x3b96a1[_0x348fba(0x298)];_0x5186a9=_0x3b96a1[_0x348fba(0x435)][0x0],_0x2bb647=_0x3b96a1[_0x348fba(0x234)][0x0];}let _0x4649c7=this['_pendingMutations'];if(_0x4649c7[_0x348fba(0x28d)]){let _0x16717c=this[_0x348fba(0x284)]['transformMutationsWithChangeset'](_0x5186a9,_0x4649c7);if(!_0x34fd35(_0x16717c))throw _0x16717c[_0x348fba(0x298)];_0x5186a9=_0x16717c['c1Prime'],_0x4649c7=_0x16717c[_0x348fba(0x296)];}this['_executeRemoteChangeset'](_0x5186a9),_0x2bb647&&(_0x2bb647['baseRev']=this[_0x348fba(0x2b2)]()),this[_0x348fba(0x25c)]=_0x2bb647,this['_pendingMutations']=_0x4649c7;}[_0x3bc572(0x260)](){const _0x280f2f=_0x3bc572;if(!this[_0x280f2f(0x25c)]||this[_0x280f2f(0x2b7)]==null)return;let _0x27a4e5=this[_0x280f2f(0x2b2)]();if(this['_acknowledgedAwaitingRevision']<=_0x27a4e5)throw Error(_0x280f2f(0x3ca)+this['_acknowledgedAwaitingRevision']+'.');this[_0x280f2f(0x2b7)]===_0x27a4e5+0x1&&this['_acknowledgeAwaiting']();}[_0x3bc572(0x38e)](){const _0x509cfa=_0x3bc572;this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this[_0x509cfa(0x2b7)]=null;}['_isEchoedAwaitingChangeset'](_0x5dbd46){const _0x1d0e17=_0x3bc572;let _0x5b2824=this[_0x1d0e17(0x25c)];return!_0x5b2824||!_0x5b2824[_0x1d0e17(0x2e5)]||_0x5b2824[_0x1d0e17(0x22b)]===null||_0x5b2824[_0x1d0e17(0x22b)]===void 0x0?!0x1:_0x5dbd46[_0x1d0e17(0x399)]===_0x5b2824[_0x1d0e17(0x399)]&&_0x5dbd46[_0x1d0e17(0x2e5)]===_0x5b2824[_0x1d0e17(0x2e5)]&&_0x5dbd46[_0x1d0e17(0x22b)]===_0x5b2824[_0x1d0e17(0x22b)];}[_0x3bc572(0x289)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc572(0x34d)](_0x59b116){const _0x195bc6=_0x3bc572;return this[_0x195bc6(0x321)][_0x195bc6(0x250)](_0x59b116),this;}[_0x3bc572(0x419)](_0x36c2da){const _0x12f95c=_0x3bc572;return this[_0x12f95c(0x2e9)]['push'](_0x36c2da),this;}[_0x3bc572(0x1fd)](_0x533a21){const _0x317150=_0x3bc572;if(this[_0x317150(0x25c)]){let _0x2f10b1=this[_0x317150(0x2b2)]();return _0x533a21[_0x317150(0x3bd)]<=_0x2f10b1||(_0x2f10b1+0x1===_0x533a21[_0x317150(0x3bd)]?(this[_0x317150(0x433)](),this[_0x317150(0x25c)]=null,this[_0x317150(0x2b7)]=null):this[_0x317150(0x2b7)]=_0x533a21['revision']),this;}if(_0x533a21[_0x317150(0x3bd)]<=this['_getCurrentRevision']())return this;throw Error(_0x317150(0x3ef));}[_0x3bc572(0x38a)](_0x47caa6){const _0x258514=_0x3bc572;return this['_onConflict'](!!(_0x47caa6!=null&&_0x47caa6[_0x258514(0x391)]));}['onRemoteRetry'](){return this;}[_0x3bc572(0x26a)](){const _0x531b67=_0x3bc572;return this[_0x531b67(0x44d)]['createInstance'](Z,this[_0x531b67(0x399)],this['type'],this['_awaitingChangeset'],this[_0x531b67(0x321)],this[_0x531b67(0x349)]);}['toggleOnline'](){return this;}[_0x3bc572(0x3bc)](_0x4fc784){const _0x79c8aa=_0x3bc572;return this[_0x79c8aa(0x44d)]['createInstance'](X,this['unitID'],this[_0x79c8aa(0x2f0)],this[_0x79c8aa(0x25c)],this[_0x79c8aa(0x321)],this[_0x79c8aa(0x349)],_0x4fc784);}};Q=H([V(0x7,_0x167908(_0x35e9e2)),V(0x8,_0x167908(_0x2cb5e4)),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x51c17f),V(0xc,_0x29bc05),V(0xd,_0x2a5dd8(U))],Q);function _n(_0x324f3a,_0x455098,_0x4c4d27,_0x19fe45,_0x185f2c,_0x58a82a){const _0x17a5d0=_0x3bc572;return _0x19fe45&&_0x185f2c[_0x17a5d0(0x28d)]?_0x324f3a[_0x17a5d0(0x2fe)](Y,_0x455098,_0x4c4d27,_0x19fe45,_0x185f2c,_0x58a82a,void 0x0):_0x19fe45?_0x324f3a[_0x17a5d0(0x2fe)](J,_0x455098,_0x4c4d27,_0x19fe45,_0x58a82a):_0x185f2c[_0x17a5d0(0x28d)]?_0x324f3a[_0x17a5d0(0x2fe)](q,_0x455098,_0x4c4d27,_0x185f2c,_0x58a82a):_0x324f3a[_0x17a5d0(0x2fe)](K,_0x455098,_0x4c4d27,_0x58a82a);}let $=class extends _0x4ca998{get[_0x3bc572(0x2f9)](){const _0x212655=_0x3bc572;return this[_0x212655(0x1ae)];}constructor(_0x264a60,_0x557c9c,_0x453bcd,_0x400b4c,_0x398753,_0x5406f7,_0x447f7a,_0xfdda42,_0x3e78a9,_0x93df92,_0x49cf90,_0xe196d3,_0x115bf7,_0xa3e110){const _0x26421f=_0x3bc572;super(),this[_0x26421f(0x399)]=_0x264a60,this['session']=_0x557c9c,this[_0x26421f(0x26b)]=_0x453bcd,this[_0x26421f(0x44d)]=_0x400b4c,this[_0x26421f(0x1ee)]=_0x398753,this[_0x26421f(0x385)]=_0x5406f7,this['_revisionService']=_0x447f7a,this[_0x26421f(0x374)]=_0xfdda42,this[_0x26421f(0x449)]=_0x3e78a9,this[_0x26421f(0x1c1)]=_0x93df92,this[_0x26421f(0x39d)]=_0x49cf90,this[_0x26421f(0x1cb)]=_0xe196d3,this[_0x26421f(0x1ff)]=_0x115bf7,this[_0x26421f(0x422)]=_0xa3e110,z(this,_0x26421f(0x357),new _0x31b85e(null)),z(this,_0x26421f(0x2e3),this[_0x26421f(0x357)][_0x26421f(0x43c)]()),z(this,_0x26421f(0x1ae),void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0x26421f(0x448),''),z(this,_0x26421f(0x3c8),0x0),z(this,_0x26421f(0x1d2),this[_0x26421f(0x2e3)][_0x26421f(0x264)](_0xdcb41d(_0x389a79=>_0x389a79?_0x389a79['status']:_0x26421f(0x3ac)),_0x238a10({'bufferSize':0x1,'refCount':!0x0}))),z(this,'_transitionLocked',!0x1),z(this,_0x26421f(0x220),[]);}async['init'](){const _0x4187b8=_0x3bc572;if(this[_0x4187b8(0x2f9)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x3bc572(0x315)](){const _0x5547e3=_0x3bc572;return this[_0x5547e3(0x42e)]=!0x0,_0x11df70(()=>{const _0x3618f8=_0x5547e3;this[_0x3618f8(0x42e)]=!0x1,this[_0x3618f8(0x3a3)]();});}[_0x3bc572(0x38c)](_0x4c08ce){this['_onLocalMutation'](_0x4c08ce);}[_0x3bc572(0x353)](_0x48dcf7){const _0x4cf36d=_0x3bc572;this['_state']=_0x48dcf7,this[_0x4cf36d(0x357)][_0x4cf36d(0x2c7)](_0x48dcf7);}async['_init'](){const _0x296016=_0x3bc572;if(this[_0x296016(0x353)](await this[_0x296016(0x442)]()),this[_0x296016(0x1ff)]){var _0x220df5;(_0x220df5=this[_0x296016(0x1ff)])==null||_0x220df5[_0x296016(0x204)](this[_0x296016(0x399)]),this[_0x296016(0x21b)](this[_0x296016(0x1ff)]['getUnitStatus$'](this[_0x296016(0x399)])[_0x296016(0x368)](_0x199f6c=>{const _0x257b7e=_0x296016;this[_0x257b7e(0x1c1)][_0x257b7e(0x305)](_0x257b7e(0x3da),'editing\x20status\x20changed\x20to',_0x199f6c),_0x199f6c===0x1?(this['_eventService'][_0x257b7e(0x340)]({'id':_0x257b7e(0x35b)}),this[_0x257b7e(0x1cb)][_0x257b7e(0x429)](new _0x3d21fe(this[_0x257b7e(0x399)])['id'],!0x1),this[_0x257b7e(0x1cb)][_0x257b7e(0x27e)](!0x1)):(this[_0x257b7e(0x1cb)][_0x257b7e(0x429)](new _0x3d21fe(this[_0x257b7e(0x399)])['id'],!0x0),this[_0x257b7e(0x1cb)][_0x257b7e(0x27e)](!0x0));}));}let _0x2b09dc=!0x1;return this['disposeWithMe'](this[_0x296016(0x431)][_0x296016(0x1d9)]['subscribe'](_0x56f9c5=>{const _0x48b63f=_0x296016;_0x56f9c5===0x3?this[_0x48b63f(0x2a5)](_0x2b09dc):_0x56f9c5===0x2&&(_0x2b09dc=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x296016(0x431)][_0x296016(0x396)][_0x296016(0x368)](_0x2dfa61=>{const _0x547330=_0x296016;try{switch(_0x2dfa61[_0x547330(0x313)]){case _0x7dd1cb[_0x547330(0x301)]:this[_0x547330(0x20d)](_0x4823fa(_0x2dfa61[_0x547330(0x2c6)]));break;case _0x7dd1cb[_0x547330(0x25d)]:this[_0x547330(0x272)](_0x2dfa61['data']);break;case _0x7dd1cb[_0x547330(0x2c3)]:this[_0x547330(0x44f)]();break;case _0x7dd1cb[_0x547330(0x257)]:this[_0x547330(0x44e)](_0x2dfa61[_0x547330(0x2c6)]);break;case _0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT']:this[_0x547330(0x420)](_0x2dfa61[_0x547330(0x2c6)][_0x547330(0x23e)][_0x547330(0x239)](_0x30d8e9=>_0x4823fa(_0x30d8e9)));break;case _0x7dd1cb['PERMISSION_REJ']:this[_0x547330(0x44f)]({'isPermissionRej':!0x0});break;case _0x7dd1cb[_0x547330(0x31d)]:break;}}catch(_0x332af0){throw console[_0x547330(0x298)](_0x547330(0x35c),_0x332af0),_0x332af0;}})),this[_0x296016(0x1ae)];}['_unlockTransition'](){const _0x1864d8=_0x3bc572;this[_0x1864d8(0x327)]=!0x1;}[_0x3bc572(0x279)](){const _0xe3f17e=_0x3bc572;if(this[_0xe3f17e(0x327)])throw Error(_0xe3f17e(0x2f6));this[_0xe3f17e(0x327)]=!0x0;}[_0x3bc572(0x2ee)](_0x491fe3){const _0x1aaf8a=_0x3bc572;this['_lockTransition'](),this[_0x1aaf8a(0x353)](this['_state']['appendMutation'](_0x491fe3)),this[_0x1aaf8a(0x43b)]();}[_0x3bc572(0x20d)](_0x42127f){const _0x1c32e4=_0x3bc572;if(!(_0x42127f[_0x1c32e4(0x3bd)]<=this['_revisionService'][_0x1c32e4(0x233)](this['unitID']))){if(this[_0x1c32e4(0x42e)]){this[_0x1c32e4(0x220)][_0x1c32e4(0x250)](_0x42127f);return;}this[_0x1c32e4(0x24e)](_0x42127f);}}[_0x3bc572(0x3a3)](){const _0xb3d687=_0x3bc572;this[_0xb3d687(0x220)]['forEach'](_0x31bafc=>this[_0xb3d687(0x24e)](_0x31bafc)),this[_0xb3d687(0x220)]=[];}[_0x3bc572(0x24e)](_0x3ca1bb){const _0xa5b664=_0x3bc572;let _0x5c3361=this[_0xa5b664(0x1ee)]['interceptor'][_0xa5b664(0x1fb)](this[_0xa5b664(0x1ee)][_0xa5b664(0x381)][_0xa5b664(0x3b8)]()['COMPRESS_MUTATION_APPLY'])(_0x3ca1bb[_0xa5b664(0x227)],null)||_0x3ca1bb[_0xa5b664(0x227)],_0x317bb2={..._0x3ca1bb,'mutations':_0x5c3361};this[_0xa5b664(0x279)](),this['_updateState'](this[_0xa5b664(0x1ae)]['onRemoteChangeset'](_0x317bb2)),this[_0xa5b664(0x43b)]();}['_onRemoteACK'](_0xfc5a74){const _0x4218a4=_0x3bc572;this[_0x4218a4(0x279)](),this['_updateState'](this[_0x4218a4(0x1ae)][_0x4218a4(0x1fd)](_0xfc5a74)),this[_0x4218a4(0x43b)]();}[_0x3bc572(0x44f)](_0x3ee965){const _0x39e948=_0x3bc572;this[_0x39e948(0x279)](),this[_0x39e948(0x353)](this[_0x39e948(0x1ae)][_0x39e948(0x38a)](_0x3ee965)),this[_0x39e948(0x43b)]();}[_0x3bc572(0x44e)](_0x2eb247){const _0x550211=_0x3bc572;this[_0x550211(0x279)](),this['_updateState'](this[_0x550211(0x1ae)][_0x550211(0x413)](_0x2eb247)),this[_0x550211(0x43b)]();}[_0x3bc572(0x420)](_0xbcffd5){const _0xd50e28=_0x3bc572;if(!(this[_0xd50e28(0x1ae)]instanceof Q))throw TypeError(_0xd50e28(0x3e2));let _0x36d1f0=_0xbcffd5[_0xd50e28(0x239)](_0x2ada7a=>{const _0x642b70=_0xd50e28;let _0x1c4514=this[_0x642b70(0x1ee)][_0x642b70(0x381)][_0x642b70(0x1fb)](this['_compressMutationService'][_0x642b70(0x381)][_0x642b70(0x3b8)]()['COMPRESS_MUTATION_APPLY'])(_0x2ada7a[_0x642b70(0x227)],null)||_0x2ada7a['mutations'];return{..._0x2ada7a,'mutations':_0x1c4514};});this[_0xd50e28(0x279)](),this['_updateState'](this['_state'][_0xd50e28(0x332)](_0x36d1f0)),this['_unlockTransition']();}[_0x3bc572(0x218)](){const _0x3b34f7=_0x3bc572;this[_0x3b34f7(0x279)](),this['_updateState'](this[_0x3b34f7(0x1ae)][_0x3b34f7(0x26a)]()),this['_unlockTransition']();}[_0x3bc572(0x2a5)](_0x4fa30c=!0x1){const _0x15aaeb=_0x3bc572;this[_0x15aaeb(0x279)](),this[_0x15aaeb(0x353)](this[_0x15aaeb(0x1ae)][_0x15aaeb(0x230)]()),this[_0x15aaeb(0x43b)]();let _0x304ce3=this[_0x15aaeb(0x1ae)];_0x4fa30c&&_0x304ce3 instanceof K&&(this[_0x15aaeb(0x279)](),this[_0x15aaeb(0x353)](_0x304ce3['fetchMiss']()),this[_0x15aaeb(0x43b)]());}async[_0x3bc572(0x442)](){return new Promise(_0x53775c=>{const _0x40612f=_0xe493;this[_0x40612f(0x431)][_0x40612f(0x1d9)][_0x40612f(0x264)](_0x5d0356(0x1))[_0x40612f(0x368)](async _0x894bc0=>{_0x53775c(await this['_createInitialStateImpl'](_0x894bc0===0x3));});});}[_0x3bc572(0x2cd)](){const _0x494c19=_0x3bc572;let _0x164678=this[_0x494c19(0x399)];return{'onStateChange':(_0x54d852,_0x1dc63c)=>{const _0x3a2c02=_0x494c19;if(_0x54d852!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x54d852[_0x3a2c02(0x443)]+'\x0aAfter:\x20'+_0x1dc63c['status']+_0x3a2c02(0x26f)+this['_state'][_0x3a2c02(0x443)]);this[_0x3a2c02(0x353)](_0x1dc63c);},'onSendChangeset':_0x1e10dc=>{const _0x48f0ea=_0x494c19;_0x1e10dc[_0x48f0ea(0x2e5)]||(_0x1e10dc[_0x48f0ea(0x2e5)]=this[_0x48f0ea(0x448)],_0x1e10dc[_0x48f0ea(0x22b)]=++this[_0x48f0ea(0x3c8)]);let _0x4367dc={'eventID':_0x7dd1cb[_0x48f0ea(0x2b1)],'data':{'unitID':_0x1e10dc[_0x48f0ea(0x399)],'unitType':this[_0x48f0ea(0x26b)],'changeset':_0x1e10dc,'memberID':this[_0x48f0ea(0x431)][_0x48f0ea(0x22c)]()}};this[_0x48f0ea(0x431)][_0x48f0ea(0x1ef)](_0x4367dc,this[_0x48f0ea(0x399)]);},'onMissingChangesets':({from:_0x2de029,to:_0x5f036e})=>{const _0x13db91=_0x494c19;this[_0x13db91(0x1c1)][_0x13db91(0x305)](_0x13db91(0x3da),_0x13db91(0x1fa)+_0x2de029+_0x13db91(0x37e)+_0x5f036e);let _0xb3f0e9={'eventID':_0x7dd1cb['FETCH_MISSING'],'data':{'unitID':_0x164678,'unitType':this[_0x13db91(0x26b)],'from':_0x2de029,'to':_0x5f036e}};this[_0x13db91(0x431)][_0x13db91(0x1ef)](_0xb3f0e9,this['unitID']);}};}async[_0x3bc572(0x2a0)](_0xc71d3c){const _0x244051=_0x3bc572;var _0x1d0c26,_0x27217c,_0x22cf7e;let _0x1324a5=await((_0x1d0c26=this[_0x244051(0x422)])==null?void 0x0:_0x1d0c26['loadOfflineData'](this[_0x244051(0x399)])),_0x2f0bf2=(_0x27217c=_0x1324a5==null?void 0x0:_0x1324a5['mutations'])==null?[]:_0x27217c,_0x12a8ec=(_0x22cf7e=_0x1324a5==null?void 0x0:_0x1324a5[_0x244051(0x3c2)])==null?null:_0x22cf7e,_0x552811=!!(_0x12a8ec!=null&&_0x12a8ec[_0x244051(0x2e5)])&&!!(_0x12a8ec!=null&&_0x12a8ec[_0x244051(0x22b)]);this['_changesetSessionId']=_0x552811?_0x12a8ec[_0x244051(0x2e5)]:_0x5d9f01(),this[_0x244051(0x3c8)]=_0x552811?_0x12a8ec[_0x244051(0x22b)]:0x0;let _0x3d795c=this[_0x244051(0x399)];try{this[_0x244051(0x3a8)](_0x12a8ec,_0x2f0bf2);}catch(_0x246c90){this[_0x244051(0x1c1)]['error'](_0x246c90);}let _0x2e7233=this[_0x244051(0x2cd)]();if(_0xc71d3c){let _0x1765f2=_n(this[_0x244051(0x44d)],_0x3d795c,this['_type'],_0x12a8ec,_0x2f0bf2,_0x2e7233);return _0x1765f2 instanceof q?_0x1765f2[_0x244051(0x32a)]():(_0x1765f2 instanceof Y||_0x1765f2 instanceof J)&&_0x1765f2['resend'](),_0x1765f2;}return this['_injector'][_0x244051(0x2fe)](Z,_0x3d795c,this[_0x244051(0x26b)],_0x12a8ec,_0x2f0bf2,_0x2e7233);}[_0x3bc572(0x3a8)](_0x4ab43e,_0x53e8b9){const _0x5604ea=_0x3bc572;var _0x15b539,_0x4b87ec;let _0x340dd4=this[_0x5604ea(0x1ee)][_0x5604ea(0x381)][_0x5604ea(0x1fb)](this[_0x5604ea(0x1ee)][_0x5604ea(0x381)][_0x5604ea(0x3b8)]()[_0x5604ea(0x1dd)]);(_0x15b539=_0x340dd4((_0x4ab43e==null?void 0x0:_0x4ab43e[_0x5604ea(0x227)])||[],null))==null||_0x15b539[_0x5604ea(0x29a)](_0x254114=>this[_0x5604ea(0x39d)][_0x5604ea(0x414)](_0x254114['id'],_0x254114[_0x5604ea(0x2a4)])),(_0x4b87ec=_0x340dd4(_0x53e8b9||[],null))==null||_0x4b87ec[_0x5604ea(0x29a)](_0x5811a7=>this[_0x5604ea(0x39d)][_0x5604ea(0x414)](_0x5811a7['id'],_0x5811a7['params']));}};$=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],$);let vn=class extends ${constructor(_0x5c3ea2,_0x1a11fc,_0x301a65,_0x54fe0e,_0x31544d,_0x2375b9,_0x11e237,_0x2143be,_0x11b95d,_0x2f94f0,_0x3ac41a,_0x111725,_0x906a2e,_0x9ebf20,_0x3420d3){const _0x603d5c=_0x3bc572;super(_0x5c3ea2,_0x301a65,_0x1a11fc,_0x54fe0e,_0x31544d,_0x2375b9,_0x11e237,_0x2143be,_0x11b95d,_0x2f94f0,_0x3ac41a,_0x111725,_0x9ebf20,_0x3420d3),this['unitID']=_0x5c3ea2,this['type']=_0x1a11fc,this[_0x603d5c(0x1b8)]=_0x906a2e,z(this,_0x603d5c(0x1ba),null);}[_0x3bc572(0x446)](_0x2e1dbe){const _0x57fe97=_0x3bc572;this[_0x57fe97(0x1ba)]=_0x2e1dbe;}[_0x3bc572(0x1d4)](){const _0x3f2906=_0x3bc572;this[_0x3f2906(0x1ba)]=null,super[_0x3f2906(0x1d4)]();}[_0x3bc572(0x2cd)](){const _0x2c5500=_0x3bc572;let _0x44783a=super['_createHandler']();return _0x44783a[_0x2c5500(0x1b5)]=_0x5ab15a=>{const _0x169751=_0x2c5500;var _0x418561,_0x50b615;return(_0x418561=this[_0x169751(0x1ba)])==null||(_0x50b615=_0x418561[_0x169751(0x1b5)])==null?void 0x0:_0x50b615[_0x169751(0x3ad)](_0x418561,_0x5ab15a);},_0x44783a[_0x2c5500(0x316)]=_0x358143=>{const _0x5c77ee=_0x2c5500;var _0x5d8136,_0x49d1ef;return(_0x5d8136=this[_0x5c77ee(0x1ba)])==null||(_0x49d1ef=_0x5d8136[_0x5c77ee(0x316)])==null?void 0x0:_0x49d1ef['call'](_0x5d8136,_0x358143);},_0x44783a[_0x2c5500(0x237)]=_0x3a7577=>{const _0x13dab6=_0x2c5500;var _0xd985c4,_0x5b8716;return(_0xd985c4=this[_0x13dab6(0x1ba)])==null||(_0x5b8716=_0xd985c4['onTransformSelections'])==null?void 0x0:_0x5b8716[_0x13dab6(0x3ad)](_0xd985c4,_0x3a7577);},_0x44783a[_0x2c5500(0x215)]=_0x53699c=>{const _0x204f4d=_0x2c5500;var _0x2dcf10,_0x3d3c47;return(_0x2dcf10=this[_0x204f4d(0x1ba)])==null||(_0x3d3c47=_0x2dcf10[_0x204f4d(0x215)])==null?void 0x0:_0x3d3c47['call'](_0x2dcf10,_0x53699c);},_0x44783a[_0x2c5500(0x3ab)]=_0xa03b25=>{const _0x49f344=_0x2c5500;var _0x11e32c,_0x4f41e6,_0x4e1aea;return(_0x11e32c=(_0x4f41e6=this[_0x49f344(0x1ba)])==null||(_0x4e1aea=_0x4f41e6[_0x49f344(0x3ab)])==null?void 0x0:_0x4e1aea['call'](_0x4f41e6,_0xa03b25))==null?_0xa03b25:_0x11e32c;},_0x44783a[_0x2c5500(0x365)]=_0x4c9387=>{const _0xde59f1=_0x2c5500;var _0x12d405,_0x3fd734,_0x15e181;return(_0x12d405=(_0x3fd734=this[_0xde59f1(0x1ba)])==null||(_0x15e181=_0x3fd734[_0xde59f1(0x365)])==null?void 0x0:_0x15e181[_0xde59f1(0x3ad)](_0x3fd734,_0x4c9387))==null?_0x4c9387:_0x12d405;},_0x44783a;}async['_init'](){const _0x48b8ec=_0x3bc572;let _0x579f1e=await super[_0x48b8ec(0x212)]();return this[_0x48b8ec(0x21b)](this[_0x48b8ec(0x1b8)][_0x48b8ec(0x3e9)][_0x48b8ec(0x368)](_0xb59e66=>{const _0x1d8535=_0x48b8ec;if(_0xb59e66==null||_0xb59e66[_0x1d8535(0x395)]!==this[_0x1d8535(0x399)])return;let {commandId:_0x17b28b,redoState:_0x4576d9,unitId:_0x4f9f7d}=_0xb59e66,_0x1ee602={'id':_0x17b28b,'type':_0xe60bf6[_0x1d8535(0x2de)],'params':{'unitId':_0x4f9f7d,'actions':_0x4576d9[_0x1d8535(0x311)],'textRanges':null}};this['_onLocalMutation'](_0x1ee602);})),this['disposeWithMe'](this['_commandService'][_0x48b8ec(0x3b0)]((_0x1e6b66,_0x28b55c)=>{const _0x751e9b=_0x48b8ec;if(_0x1e6b66[_0x751e9b(0x2f0)]!==_0xe60bf6['MUTATION']||_0x28b55c!=null&&_0x28b55c[_0x751e9b(0x30a)]||_0x28b55c!=null&&_0x28b55c[_0x751e9b(0x1bf)]||_0x1e6b66['id']===_0x7aa9b['id'])return;let _0x36dd37=_0x1e6b66[_0x751e9b(0x2a4)];if((_0x36dd37==null?void 0x0:_0x36dd37['unitId'])!==this['unitID'])return;let _0xf221a0=_0x1e6b66,_0x4e8617=this[_0x751e9b(0x1ee)][_0x751e9b(0x381)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x751e9b(0x42c)])([_0xf221a0],this[_0x751e9b(0x449)])||[_0xf221a0];this[_0x751e9b(0x2ee)](_0x4e8617[0x0]);})),_0x579f1e;}};vn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x167908(_0x6630d3)),V(0xd,_0x2a5dd8(W)),V(0xe,_0x2a5dd8(U))],vn);let yn=class extends ${constructor(_0x5d27b1,_0x4e3fe9,_0xe124cd,_0x10b539,_0x376a1c,_0x4fff92,_0x531b66,_0x54189e,_0x48a06e,_0x402a9f,_0x41921d,_0x22964f,_0x5ab86b,_0x37e57e){const _0x4866f6=_0x3bc572;super(_0x5d27b1,_0xe124cd,_0x4e3fe9,_0x10b539,_0x376a1c,_0x4fff92,_0x531b66,_0x54189e,_0x48a06e,_0x402a9f,_0x41921d,_0x22964f,_0x5ab86b,_0x37e57e),this[_0x4866f6(0x399)]=_0x5d27b1,this[_0x4866f6(0x2f0)]=_0x4e3fe9;}async[_0x3bc572(0x212)](){const _0x17cdf1=_0x3bc572;let _0x5dbfe3=await super[_0x17cdf1(0x212)]();return this['disposeWithMe'](this[_0x17cdf1(0x39d)][_0x17cdf1(0x3b0)]((_0x37961b,_0x16f51)=>{const _0x23af79=_0x17cdf1;if(_0x37961b[_0x23af79(0x2f0)]!==_0xe60bf6['MUTATION']||_0x16f51!=null&&_0x16f51[_0x23af79(0x30a)]||_0x16f51!=null&&_0x16f51[_0x23af79(0x1bf)])return;let _0x4e4226=_0x37961b[_0x23af79(0x2a4)];if((_0x4e4226==null?void 0x0:_0x4e4226[_0x23af79(0x395)])!==this[_0x23af79(0x399)])return;let _0x1bc40e=_0x37961b,_0x4da2f8=this[_0x23af79(0x1ee)][_0x23af79(0x381)][_0x23af79(0x1fb)](this[_0x23af79(0x1ee)][_0x23af79(0x381)]['getInterceptPoints']()[_0x23af79(0x42c)])([_0x1bc40e],this[_0x23af79(0x449)])||[_0x1bc40e];this[_0x23af79(0x2ee)](_0x4da2f8[0x0]);})),_0x5dbfe3;}};yn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],yn);let bn=class extends ${constructor(_0x53c713,_0x2f0a87,_0x55ec75,_0x1a2e94,_0x2b3597,_0x1235fe,_0xd63eb9,_0x5b9bd8,_0x49a5d6,_0x223ece,_0x40ba46,_0x3bc335,_0x14dc45,_0x38eb2a,_0x2edf97){const _0x3b251d=_0x3bc572;super(_0x53c713,_0x55ec75,_0x2f0a87,_0x1a2e94,_0x2b3597,_0x1235fe,_0xd63eb9,_0x49a5d6,_0x223ece,_0x40ba46,_0x3bc335,_0x14dc45,_0x38eb2a,_0x2edf97),this[_0x3b251d(0x399)]=_0x53c713,this[_0x3b251d(0x2f0)]=_0x2f0a87,this[_0x3b251d(0x1ce)]=_0x5b9bd8;}['_createHandler'](){const _0xd8ca7c=_0x3bc572;let _0x3eac2c=super['_createHandler']();return _0x3eac2c[_0xd8ca7c(0x237)]=_0x3013a6=>this[_0xd8ca7c(0x1ce)][_0xd8ca7c(0x286)](_0x3013a6),_0x3eac2c;}async[_0x3bc572(0x212)](){const _0x207480=_0x3bc572;let _0x3206b0=await super[_0x207480(0x212)]();return this[_0x207480(0x21b)](this[_0x207480(0x39d)][_0x207480(0x3b0)]((_0x289466,_0x371d2a)=>{const _0x5efa0b=_0x207480;if(_0x289466[_0x5efa0b(0x2f0)]!==_0xe60bf6['MUTATION']||_0x371d2a!=null&&_0x371d2a[_0x5efa0b(0x30a)]||_0x371d2a!=null&&_0x371d2a[_0x5efa0b(0x1bf)])return;let _0x41e253=_0x289466[_0x5efa0b(0x2a4)];if((_0x41e253==null?void 0x0:_0x41e253[_0x5efa0b(0x395)])!==this[_0x5efa0b(0x399)])return;let _0x2f4597=_0x289466,_0x23162e=this['_compressMutationService'][_0x5efa0b(0x381)][_0x5efa0b(0x1fb)](this['_compressMutationService'][_0x5efa0b(0x381)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x2f4597],this[_0x5efa0b(0x449)])||[_0x2f4597];this[_0x5efa0b(0x2ee)](_0x23162e[0x0]);})),_0x3206b0;}};bn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(Gt)),V(0x8,_0x167908(B)),V(0x9,_0x6f9bb2),V(0xa,_0x2e09c7),V(0xb,_0x1f135e),V(0xc,_0x3058fc),V(0xd,_0x2a5dd8(W)),V(0xe,_0x2a5dd8(U))],bn);let xn=class extends ${constructor(_0x1439a2,_0x45b61f,_0x3e14bb,_0xe32552,_0xb161d3,_0x59f409,_0x5d6172,_0x563812,_0x5d194a,_0x2c8c98,_0x29a370,_0x72988d,_0x529801,_0x365f3b){const _0x31902b=_0x3bc572;super(_0x1439a2,_0x3e14bb,_0x45b61f,_0xe32552,_0xb161d3,_0x59f409,_0x5d6172,_0x563812,_0x5d194a,_0x2c8c98,_0x29a370,_0x72988d,_0x529801,_0x365f3b),this[_0x31902b(0x399)]=_0x1439a2,this['type']=_0x45b61f;}async['_init'](){const _0x41488f=_0x3bc572;let _0x45bff5=await super[_0x41488f(0x212)]();return this[_0x41488f(0x21b)](this[_0x41488f(0x39d)]['onMutationExecutedForCollab']((_0x37ae12,_0x5c2a40)=>{const _0x3a1fe0=_0x41488f;if(_0x37ae12[_0x3a1fe0(0x2f0)]!==_0xe60bf6[_0x3a1fe0(0x2de)]||_0x5c2a40!=null&&_0x5c2a40['fromCollab']||_0x5c2a40!=null&&_0x5c2a40['onlyLocal'])return;let _0x5da24b=_0x37ae12[_0x3a1fe0(0x2a4)];if((_0x5da24b==null?void 0x0:_0x5da24b[_0x3a1fe0(0x395)])!==this[_0x3a1fe0(0x399)])return;let _0x360514=_0x37ae12,_0x48bede=this[_0x3a1fe0(0x1ee)][_0x3a1fe0(0x381)][_0x3a1fe0(0x1fb)](this['_compressMutationService'][_0x3a1fe0(0x381)][_0x3a1fe0(0x3b8)]()[_0x3a1fe0(0x42c)])([_0x360514],this[_0x3a1fe0(0x449)])||[_0x360514];this[_0x3a1fe0(0x2ee)](_0x48bede[0x0]);})),_0x45bff5;}};xn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],xn);let Sn=class extends ${constructor(_0x31745d,_0x5df562,_0x4c326e,_0x3796a4,_0x44fb8f,_0x11519e,_0x2b931c,_0x568ac0,_0x31131f,_0x309ee4,_0x2fd4b4,_0x10eb1b,_0xdf0652,_0x4d21ff){const _0x1827bd=_0x3bc572;super(_0x31745d,_0x4c326e,_0x5df562,_0x3796a4,_0x44fb8f,_0x11519e,_0x2b931c,_0x568ac0,_0x31131f,_0x309ee4,_0x2fd4b4,_0x10eb1b,_0xdf0652,_0x4d21ff),this['unitID']=_0x31745d,this[_0x1827bd(0x2f0)]=_0x5df562;}async['_init'](){const _0x4863b5=_0x3bc572;let _0x174b03=await super[_0x4863b5(0x212)]();return this[_0x4863b5(0x21b)](this[_0x4863b5(0x39d)][_0x4863b5(0x3b0)]((_0x1fc323,_0x532f10)=>{const _0x1d3a4f=_0x4863b5;if(_0x1fc323['type']!==_0xe60bf6[_0x1d3a4f(0x2de)]||_0x532f10!=null&&_0x532f10[_0x1d3a4f(0x30a)]||_0x532f10!=null&&_0x532f10[_0x1d3a4f(0x1bf)])return;let _0x5ed7f3=_0x1fc323[_0x1d3a4f(0x2a4)];if((_0x5ed7f3==null?void 0x0:_0x5ed7f3[_0x1d3a4f(0x395)])!==this['unitID'])return;let _0x5c7aab=_0x1fc323,_0xf9d4e9=this[_0x1d3a4f(0x1ee)][_0x1d3a4f(0x381)][_0x1d3a4f(0x1fb)](this['_compressMutationService'][_0x1d3a4f(0x381)][_0x1d3a4f(0x3b8)]()[_0x1d3a4f(0x42c)])([_0x5c7aab],this[_0x1d3a4f(0x449)])||[_0x5c7aab];this[_0x1d3a4f(0x2ee)](_0xf9d4e9[0x0]);})),_0x174b03;}};Sn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],Sn);let Cn=class extends ${constructor(_0x2f4e21,_0x3d2540,_0x255105,_0x549697,_0x403742,_0x476681,_0x4a9b06,_0x3563f4,_0x2dfeee,_0x33f122,_0x349843,_0x274bdc,_0x38b761,_0x4c2edd){const _0x404fcd=_0x3bc572;super(_0x2f4e21,_0x255105,_0x3d2540,_0x549697,_0x403742,_0x476681,_0x4a9b06,_0x3563f4,_0x2dfeee,_0x33f122,_0x349843,_0x274bdc,_0x38b761,_0x4c2edd),this[_0x404fcd(0x399)]=_0x2f4e21,this[_0x404fcd(0x2f0)]=_0x3d2540;}async[_0x3bc572(0x212)](){const _0x3efa3a=_0x3bc572;let _0x35a563=await super['_init']();return this[_0x3efa3a(0x21b)](this[_0x3efa3a(0x39d)][_0x3efa3a(0x3b0)]((_0x415244,_0x31ed49)=>{const _0x3f6c09=_0x3efa3a;if(_0x415244[_0x3f6c09(0x2f0)]!==_0xe60bf6[_0x3f6c09(0x2de)]||_0x31ed49!=null&&_0x31ed49['fromCollab']||_0x31ed49!=null&&_0x31ed49[_0x3f6c09(0x1bf)])return;let _0x47d87f=_0x415244['params'];if((_0x47d87f==null?void 0x0:_0x47d87f[_0x3f6c09(0x395)])!==this[_0x3f6c09(0x399)])return;let _0x56cb5c=_0x415244,_0x58e10e=this['_compressMutationService'][_0x3f6c09(0x381)][_0x3f6c09(0x1fb)](this[_0x3f6c09(0x1ee)][_0x3f6c09(0x381)][_0x3f6c09(0x3b8)]()['COMPRESS_MUTATION_SEND'])([_0x56cb5c],this[_0x3f6c09(0x449)])||[_0x56cb5c];this[_0x3f6c09(0x2ee)](_0x58e10e[0x0]);})),_0x35a563;}};Cn=H([V(0x3,_0x167908(_0x35e9e2)),V(0x4,_0x167908(_0x46826b)),V(0x5,_0x167908(_0x3b5f18)),V(0x6,_0x167908(_0x2cb5e4)),V(0x7,_0x167908(B)),V(0x8,_0x6f9bb2),V(0x9,_0x2e09c7),V(0xa,_0x1f135e),V(0xb,_0x3058fc),V(0xc,_0x2a5dd8(W)),V(0xd,_0x2a5dd8(U))],Cn);const wn=_0x5685c4('univer-pro.collaboration-client.network-condition.service');function Tn(_0x82ac03){const _0x497f2e=_0x3bc572;let _0x35d3d2=_0x82ac03[_0x497f2e(0x2c6)],_0x53e354=JSON[_0x497f2e(0x23d)](_0x35d3d2);switch(_0x53e354[_0x497f2e(0x265)]){case _0x23fb1d[_0x497f2e(0x20b)]:case _0x23fb1d['HELLO']:{let _0x4d8e36=_0x53e354[_0x497f2e(0x1c0)];return{..._0x53e354,'data':_0x4d8e36,'cmd':_0x53e354['cmd']};}case _0x23fb1d['JOIN']:{let _0x4d28e8=_0x53e354[_0x497f2e(0x253)];return{..._0x53e354,'data':_0x4d28e8,'cmd':_0x53e354['cmd']};}case _0x23fb1d['RECV']:{let _0x5d2b16=_0x53e354[_0x497f2e(0x1e4)];switch(_0x5d2b16[_0x497f2e(0x313)]){case _0x7dd1cb[_0x497f2e(0x3b9)]:var _0x8c19f9;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x8c19f9=_0x5d2b16['permissionRejEvent'])==null?void 0x0:_0x8c19f9['cs']},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x25d)]:var _0x4b04a6;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4b04a6=_0x5d2b16['csAckEvent'])==null?void 0x0:_0x4b04a6['cs']},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x301)]:var _0x4fa414;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4fa414=_0x5d2b16[_0x497f2e(0x28c)])==null?void 0x0:_0x4fa414['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x2c3)]:var _0x4d6d79;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x4d6d79=_0x5d2b16['csRejEvent'])==null?void 0x0:_0x4d6d79['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x257)]:var _0x1b1315;return{..._0x53e354,'data':{..._0x5d2b16,'data':(_0x1b1315=_0x5d2b16[_0x497f2e(0x348)])==null?void 0x0:_0x1b1315['cs']},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb['UPDATE_CURSOR']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x386)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x27d)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x401)]},'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x221)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16['leaveEvent']},'cmd':_0x53e354['cmd']};case _0x7dd1cb['LIVESHARE_NEW_HOST']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x206)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x297)]:case _0x7dd1cb['LIVESHARE_OPERATION']:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x2a8)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x278)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x206)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb['MSG_FOR_ERROR']:return{..._0x53e354,'data':_0x5d2b16,'cmd':_0x53e354['cmd']};case _0x7dd1cb[_0x497f2e(0x3f4)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x222)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x303)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x238)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x268)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x3d3)]},'cmd':_0x53e354[_0x497f2e(0x265)]};case _0x7dd1cb[_0x497f2e(0x31d)]:return{..._0x53e354,'data':{..._0x5d2b16,'data':_0x5d2b16[_0x497f2e(0x2e2)]},'cmd':_0x53e354['cmd']};default:return _0x53e354;}}default:return _0x53e354;}}function En(_0x3e7ab6){const _0xb42a6a=_0x3bc572;switch(_0x3e7ab6[_0xb42a6a(0x265)]){case _0x23fb1d[_0xb42a6a(0x20b)]:case _0x23fb1d[_0xb42a6a(0x292)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)]});case _0x23fb1d['INGEST']:{let _0x3998be;switch(_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x313)]){case _0x7dd1cb[_0xb42a6a(0x1ec)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x1ec)],'updateCursorEvent':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x221)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x221)],'leaveEvent':_0x3e7ab6['data']['data']};break;case _0x7dd1cb[_0xb42a6a(0x27d)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x27d)],'joinEvent':_0x3e7ab6['data'][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x2ae)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x2ae)],'liveShareNewHost':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x2bb)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x2bb)],'liveShareOperation':_0x3e7ab6['data'][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb[_0xb42a6a(0x278)]:_0x3998be={'eventID':_0x7dd1cb['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x2c6)]};break;case _0x7dd1cb['LIVESHARE_REQUEST_HOST']:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x33b)],'liveShareRequestHost':_0x3e7ab6['data']['data']};break;case _0x7dd1cb[_0xb42a6a(0x297)]:_0x3998be={'eventID':_0x7dd1cb[_0xb42a6a(0x297)]};break;default:_0x3998be={'eventID':_0x3e7ab6[_0xb42a6a(0x2c6)][_0xb42a6a(0x313)]};}return JSON['stringify']({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'collaMsg':_0x3998be});}case _0x23fb1d[_0xb42a6a(0x2a3)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'joinReq':_0x3e7ab6['data']});case _0x23fb1d[_0xb42a6a(0x444)]:return JSON[_0xb42a6a(0x3c3)]({'cmd':_0x3e7ab6[_0xb42a6a(0x265)],'routeKey':_0x3e7ab6[_0xb42a6a(0x1b6)],'leaveReq':_0x3e7ab6['data']});default:throw Error(_0xb42a6a(0x33d));}}const Dn=_0x5685c4(_0x3bc572(0x1d8));function On(_0x150751,_0x3530cd,_0x520566){const _0x10ddea=_0x3bc572;return _0x150751+'/'+_0x3530cd+_0x10ddea(0x44c)+_0x520566+_0x10ddea(0x41f);}let kn=class extends _0x376cce{constructor(_0x1c8e5d,_0x1d8336,_0x35e30c,_0x7e797b,_0x3b02e6){const _0x444a2f=_0x3bc572;super(),this[_0x444a2f(0x44d)]=_0x1c8e5d,this['_httpService']=_0x1d8336,this[_0x444a2f(0x1c9)]=_0x35e30c,this[_0x444a2f(0x1c1)]=_0x7e797b,this[_0x444a2f(0x3cb)]=_0x3b02e6;}['_doCreateSocket'](_0x2dfdaa){const _0x192d3e=_0x3bc572;let _0x555bd4=this['_injector'][_0x192d3e(0x1e3)](_0x1d5e1d);if(!_0x555bd4)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x91c1e3=_0x555bd4[_0x192d3e(0x439)](_0x2dfdaa);if(!_0x91c1e3)throw Error(_0x192d3e(0x202));let _0xc4e2cd=new _0x186c27(),_0x21bcf8=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x383)][_0x192d3e(0x368)](_0x2c9442=>_0x21bcf8[_0x192d3e(0x2c7)](_0x2c9442))),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x21bcf8['complete']()));let _0x37ceef=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x37b)][_0x192d3e(0x368)](_0x30c2aa=>_0x37ceef[_0x192d3e(0x2c7)](_0x30c2aa))),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x37ceef[_0x192d3e(0x42f)]()));let _0x3943d1=new _0x5b6066();_0xc4e2cd[_0x192d3e(0x293)](_0x91c1e3[_0x192d3e(0x30b)]['subscribe'](_0x13ffa1=>{const _0xc0f8e3=_0x192d3e;let _0x3f5cbe=Tn(_0x13ffa1);_0x3943d1[_0xc0f8e3(0x2c7)](_0x3f5cbe);})),_0xc4e2cd[_0x192d3e(0x293)](_0x11df70(()=>_0x3943d1[_0x192d3e(0x42f)]()));let _0x5b814e,_0x4b8a47=()=>{const _0x3e51b5=_0x192d3e;_0x37ceef[_0x3e51b5(0x2c7)](new Event(_0x3e51b5(0x2ec))),_0x21bcf8[_0x3e51b5(0x2c7)](new Event(_0x3e51b5(0x2ec))),_0x5b814e['close']();};return _0x5b814e={'memberID':'','close$':_0x21bcf8[_0x192d3e(0x43c)](),'error$':_0x37ceef['asObservable'](),'open$':_0x91c1e3['open$'],'message$':_0x3943d1[_0x192d3e(0x43c)](),'send':_0x53858c=>{const _0xbc1d24=_0x192d3e;if(_0x53858c[_0xbc1d24(0x265)]===_0x23fb1d[_0xbc1d24(0x28e)]){if(_0x53858c[_0xbc1d24(0x2c6)][_0xbc1d24(0x313)]===_0x7dd1cb[_0xbc1d24(0x2b1)]){this['_submitChangeset'](_0x5b814e,_0x53858c[_0xbc1d24(0x2c6)])[_0xbc1d24(0x40f)](_0xe0660c=>{const _0x13e778=_0xbc1d24;this[_0x13e778(0x1c1)]['error'](_0xe0660c),_0x4b8a47();});return;}if(_0x53858c['data'][_0xbc1d24(0x313)]===_0x7dd1cb['FETCH_MISSING']){let _0x4cdbbc=_0x53858c[_0xbc1d24(0x2c6)];this['_fetchMissChangesets'](_0x4cdbbc)[_0xbc1d24(0x1b9)](_0x12bca3=>{const _0x2be8b4=_0xbc1d24;_0x3943d1['next']({'cmd':_0x23fb1d[_0x2be8b4(0x2e1)],'code':_0x20fc41['OK'],'routeKey':_0x4cdbbc['data'][_0x2be8b4(0x399)],'routeType':'','data':{'eventID':_0x7dd1cb['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x12bca3}}});})[_0xbc1d24(0x40f)](_0x472fab=>{const _0x5bac35=_0xbc1d24;this[_0x5bac35(0x1c1)][_0x5bac35(0x298)](_0x472fab),_0x4b8a47();});return;}}_0x91c1e3[_0xbc1d24(0x1ef)](En(_0x53858c));},'close':()=>{const _0x18a2f7=_0x192d3e;_0x91c1e3[_0x18a2f7(0x3cf)](),_0xc4e2cd[_0x18a2f7(0x1d4)]();}},_0x5b814e;}async['_submitChangeset'](_0x171b99,_0x268b8c){const _0x415ff9=_0x3bc572;var _0x30a3e2;let {unitType:_0x59d14e,unitID:_0x440eea,changeset:_0x3ec0cc}=_0x268b8c['data'],_0x482620={'unitID':_0x440eea,'memberID':_0x171b99[_0x415ff9(0x3b6)],'type':_0x59d14e,'changeset':_0x43c492(_0x3ec0cc)},_0x38557b=this['_configService'][_0x415ff9(0x306)](R),_0x4dfe68=On((_0x30a3e2=_0x38557b==null?void 0x0:_0x38557b[_0x415ff9(0x1c4)])==null?_0x415ff9(0x390):_0x30a3e2,_0x59d14e,_0x440eea);try{await this[_0x415ff9(0x3b7)][_0x415ff9(0x27f)](_0x4dfe68,{'body':_0x482620});}catch(_0x338ed8){throw this['_logService'][_0x415ff9(0x298)](_0x415ff9(0x33a),_0x415ff9(0x1b1)),_0x338ed8;}}async[_0x3bc572(0x3d2)](_0x439312){const _0x2ef4e2=_0x3bc572;let {unitID:_0x53d0fa,from:_0x419d9b,to:_0x1e81f5,unitType:_0x4c4322}=_0x439312['data'];return(await this['_snapshotServerService'][_0x2ef4e2(0x2ba)]({'metadata':void 0x0},{'unitID':_0x53d0fa,'type':_0x4c4322,'from':_0x419d9b,'to':_0x1e81f5}))[_0x2ef4e2(0x23e)][_0x2ef4e2(0x239)](_0x4a3d08=>((_0x4a3d08['mutations']===null||_0x4a3d08['mutations']===void 0x0)&&(_0x4a3d08[_0x2ef4e2(0x227)]=[]),_0x4a3d08));}};kn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x167908(_0x6a3f01)),V(0x2,_0xa7a1b6),V(0x3,_0x2e09c7),V(0x4,_0xe1e81f)],kn);const An=_0x5685c4(_0x3bc572(0x397));function jn(_0x15b16a={}){const _0x2ecb32=_0x3bc572;return _0x15b16a[_0x2ecb32(0x402)]?{'resolveUnit':_0x15b16a[_0x2ecb32(0x402)]}:{'resolveUnit':_0x149ad5=>({'target':{'unitId':_0x149ad5[_0x2ecb32(0x395)],'unitType':_0x149ad5[_0x2ecb32(0x1d0)]}})};}function Mn(_0xa227af,_0x328b0b,_0x1e965e){const _0x4fdf7b=_0x3bc572;var _0x222bd4;let _0xf2f556=_0x1e965e[_0x4fdf7b(0x24b)][_0x4fdf7b(0x356)];if(_0xf2f556!=null&&_0xf2f556[_0x4fdf7b(0x337)]()==='')throw Error(_0x4fdf7b(0x308));if(!_0x1e965e[_0x4fdf7b(0x24b)]['unitId'])throw Error(_0x4fdf7b(0x20e));return{'localUnitId':_0xa227af,'unitType':_0x328b0b,'target':{'endpoint':_0xf2f556,'unitId':_0x1e965e[_0x4fdf7b(0x24b)]['unitId'],'unitType':(_0x222bd4=_0x1e965e['target'][_0x4fdf7b(0x1d0)])==null?_0x328b0b:_0x222bd4},'changeset':_0x1e965e[_0x4fdf7b(0x3e3)]};}let Nn=class extends _0x376cce{constructor(_0x36e01a,_0x5a2d33,_0x2d32ce,_0x3f223f,_0x1b22ef,_0x14781f,_0x1c3378){const _0x425796=_0x3bc572;super(),this['_injector']=_0x36e01a,this[_0x425796(0x1c1)]=_0x5a2d33,this[_0x425796(0x1c9)]=_0x2d32ce,this[_0x425796(0x44a)]=_0x3f223f,this[_0x425796(0x33e)]=_0x1b22ef,this[_0x425796(0x2d8)]=_0x14781f,this['_networkConditionService']=_0x1c3378,z(this,_0x425796(0x35d),new Map()),z(this,_0x425796(0x2ac),new Map()),z(this,_0x425796(0x31a),new Map()),z(this,_0x425796(0x29c),new Map()),z(this,_0x425796(0x354),this['_getSocketChannel'](void 0x0)['socket$'][_0x425796(0x43c)]()),z(this,_0x425796(0x34e),new _0x31b85e(0x0)),z(this,'status$',this[_0x425796(0x34e)][_0x425796(0x43c)]()),this[_0x425796(0x331)]();}[_0x3bc572(0x331)](){const _0x20e3b7=_0x3bc572;this[_0x20e3b7(0x41c)]&&this['disposeWithMe'](this['_networkConditionService'][_0x20e3b7(0x25b)][_0x20e3b7(0x368)](_0x19d259=>{const _0x42cf09=_0x20e3b7;_0x19d259&&this[_0x42cf09(0x285)](),_0x19d259||this[_0x42cf09(0x29c)][_0x42cf09(0x29a)](_0x528b26=>this[_0x42cf09(0x36b)](_0x528b26));}));}['dispose'](){const _0x83984f=_0x3bc572;super['dispose'](),this[_0x83984f(0x29c)][_0x83984f(0x29a)](_0x153ca5=>{const _0x2dd67d=_0x83984f;var _0x1b0117,_0x381a4a;(_0x1b0117=_0x153ca5[_0x2dd67d(0x3f9)])==null||_0x1b0117[_0x2dd67d(0x277)](),_0x153ca5['socketMessageSubscription']=null,this[_0x2dd67d(0x1e1)](_0x153ca5),this[_0x2dd67d(0x1f1)](_0x153ca5),this['_clearHeartbeatTimer'](_0x153ca5),(_0x381a4a=_0x153ca5[_0x2dd67d(0x354)][_0x2dd67d(0x207)]())==null||_0x381a4a[_0x2dd67d(0x3cf)](),_0x153ca5[_0x2dd67d(0x354)]['complete']();}),this[_0x83984f(0x29c)][_0x83984f(0x3bb)](),this[_0x83984f(0x35d)]['forEach'](_0x5e98df=>_0x5e98df[_0x83984f(0x1d4)]()),this['_sessions'][_0x83984f(0x3bb)](),this[_0x83984f(0x31a)][_0x83984f(0x3bb)](),this[_0x83984f(0x34e)][_0x83984f(0x42f)]();}async[_0x3bc572(0x252)](_0x55557d,_0x34d65e){const _0x5d2f42=_0x3bc572;if(this[_0x5d2f42(0x35d)][_0x5d2f42(0x2dd)](_0x55557d))return this[_0x5d2f42(0x35d)][_0x5d2f42(0x1e3)](_0x55557d);let _0x5c9b22=this[_0x5d2f42(0x2ac)][_0x5d2f42(0x1e3)](_0x55557d);if(_0x5c9b22)return _0x5c9b22;let _0x25b71e=this['_createSession'](_0x55557d,_0x34d65e);this[_0x5d2f42(0x2ac)][_0x5d2f42(0x405)](_0x55557d,_0x25b71e);try{return await _0x25b71e;}finally{this[_0x5d2f42(0x2ac)][_0x5d2f42(0x1b4)](_0x55557d);}}async[_0x3bc572(0x1f4)](_0x5e3f40,_0x973574){const _0x2d9cba=_0x3bc572;let _0x10b753=await this[_0x2d9cba(0x242)](_0x5e3f40,_0x973574),_0x3500f8=this[_0x2d9cba(0x266)](_0x10b753[_0x2d9cba(0x24b)][_0x2d9cba(0x356)]);this[_0x2d9cba(0x3de)](_0x3500f8);let _0x3fb988=this[_0x2d9cba(0x44d)][_0x2d9cba(0x2fe)](Ht,_0x10b753,_0x3500f8['socket$']['asObservable']());return this[_0x2d9cba(0x35d)][_0x2d9cba(0x405)](_0x5e3f40,_0x3fb988),this[_0x2d9cba(0x31a)][_0x2d9cba(0x405)](_0x5e3f40,_0x3500f8[_0x2d9cba(0x38d)]),_0x3fb988;}[_0x3bc572(0x1bc)](_0x5396ca){const _0x2456b0=_0x3bc572;let _0x59bfb0=this[_0x2456b0(0x35d)][_0x2456b0(0x1e3)](_0x5396ca),_0x384028=this[_0x2456b0(0x31a)][_0x2456b0(0x1e3)](_0x5396ca);if(_0x59bfb0&&(this[_0x2456b0(0x35d)][_0x2456b0(0x1b4)](_0x5396ca),this['_sessionChannels'][_0x2456b0(0x1b4)](_0x5396ca),_0x59bfb0[_0x2456b0(0x3cf)]()),_0x384028&&!this[_0x2456b0(0x369)](_0x384028)){var _0x31035a;let _0x1c8a5d=this[_0x2456b0(0x29c)][_0x2456b0(0x1e3)](_0x384028);_0x1c8a5d==null||(_0x31035a=_0x1c8a5d[_0x2456b0(0x354)][_0x2456b0(0x207)]())==null||_0x31035a[_0x2456b0(0x3cf)]();}}['reconnect'](){const _0x3887fa=_0x3bc572;(this[_0x3887fa(0x29c)]['size']?[...this[_0x3887fa(0x29c)][_0x3887fa(0x3fe)]()]:[this['_getSocketChannel'](void 0x0)])[_0x3887fa(0x29a)](_0x1a2776=>{const _0x1f0a4e=_0x3887fa;_0x1a2776[_0x1f0a4e(0x2c8)]=0x0,this[_0x1f0a4e(0x1e1)](_0x1a2776),this[_0x1f0a4e(0x3f3)](_0x1a2776);});}['_clearRetryConnectingTimer'](_0x24e2e0){const _0x339bf0=_0x3bc572;_0x24e2e0[_0x339bf0(0x421)]!=null&&(clearTimeout(_0x24e2e0[_0x339bf0(0x421)]),_0x24e2e0['retryConnectingTimer']=null);}async[_0x3bc572(0x251)](_0x2b4e4e){const _0x45f500=_0x3bc572;var _0x101b3f,_0x426ff8;let _0x564d14=this['_configService'][_0x45f500(0x306)](R),_0x4d2690=(_0x101b3f=(_0x426ff8=_0x2b4e4e['endpoint'])==null?_0x564d14==null?void 0x0:_0x564d14[_0x45f500(0x330)]:_0x426ff8)==null?pt:_0x101b3f,_0x3c0a22=await this['_socketService']['createSocket'](_0x4d2690);return _0x2b4e4e[_0x45f500(0x3ff)]=_0x3c0a22,_0x3c0a22;}async[_0x3bc572(0x3de)](_0x515186){const _0x1f5db3=_0x3bc572;try{var _0x5d8650,_0x405274;let _0x41fe8b=(_0x5d8650=(_0x405274=_0x515186['socket$'][_0x1f5db3(0x207)]())==null?_0x515186[_0x1f5db3(0x3ff)]:_0x405274)==null?await this[_0x1f5db3(0x251)](_0x515186):_0x5d8650;if(_0x41fe8b){var _0x38cbbf;let _0x8c8a5a=_0x41fe8b[_0x1f5db3(0x1ef)];_0x41fe8b[_0x1f5db3(0x1ef)]=_0x3e60d1=>(_0x3e60d1[_0x1f5db3(0x265)]!==_0x23fb1d[_0x1f5db3(0x444)]&&this[_0x1f5db3(0x3f7)](_0x515186),_0x8c8a5a[_0x1f5db3(0x352)](_0x41fe8b,[_0x3e60d1])),(_0x38cbbf=_0x515186[_0x1f5db3(0x3f9)])==null||_0x38cbbf[_0x1f5db3(0x277)](),_0x515186[_0x1f5db3(0x3f9)]=null,_0x515186[_0x1f5db3(0x3f9)]=_0x41fe8b[_0x1f5db3(0x30b)][_0x1f5db3(0x368)](_0x27ffff=>this[_0x1f5db3(0x2b9)](_0x515186,_0x41fe8b,_0x27ffff)),_0x41fe8b[_0x1f5db3(0x37b)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](_0x468216=>this['_logService'][_0x1f5db3(0x298)](_0x1f5db3(0x269),_0x468216)),_0x41fe8b[_0x1f5db3(0x314)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](()=>{const _0x422178=_0x1f5db3;this[_0x422178(0x240)](_0x515186,_0x41fe8b);}),_0x41fe8b[_0x1f5db3(0x383)][_0x1f5db3(0x264)](_0x18ddcd(0x1))[_0x1f5db3(0x368)](_0x383053=>{const _0x58c7e7=_0x1f5db3;this[_0x58c7e7(0x1c1)][_0x58c7e7(0x305)](_0x58c7e7(0x2aa),_0x58c7e7(0x351),_0x383053),this[_0x58c7e7(0x42b)](_0x515186);});}}catch(_0x518d1b){this[_0x1f5db3(0x1c1)][_0x1f5db3(0x298)](_0x518d1b),this['_onConnectionFailed'](_0x515186);}}[_0x3bc572(0x240)](_0x8fb146,_0x4426df){const _0x21092f=_0x3bc572;this['_logService'][_0x21092f(0x305)]('[CollaborationSessionService]',_0x21092f(0x248)),_0x4426df[_0x21092f(0x1ef)]({'cmd':_0x23fb1d['HELLO']}),this[_0x21092f(0x3f7)](_0x8fb146);}[_0x3bc572(0x36b)](_0x10f922){const _0x23ad54=_0x3bc572;_0x10f922[_0x23ad54(0x2b4)]=!0x1,_0x10f922[_0x23ad54(0x3ff)]=null,this[_0x23ad54(0x34e)][_0x23ad54(0x2c7)](0x2),_0x10f922[_0x23ad54(0x354)]['next'](null),this['_clearTimeoutTimer'](_0x10f922),this[_0x23ad54(0x2a2)](_0x10f922);}[_0x3bc572(0x42b)](_0x2784da){const _0x4d842f=_0x3bc572;var _0x3b68fd;this[_0x4d842f(0x36b)](_0x2784da),this[_0x4d842f(0x369)](_0x2784da[_0x4d842f(0x38d)])&&(_0x2784da[_0x4d842f(0x2c8)]<((_0x3b68fd=this['_configService']['getConfig'](_0x4d842f(0x3ea)))==null?0x3:_0x3b68fd)?(this['_collaborationUIEventService'][_0x4d842f(0x340)]({'id':_0x4d842f(0x1b3)}),this[_0x4d842f(0x3f3)](_0x2784da)):this[_0x4d842f(0x33e)][_0x4d842f(0x340)]({'id':_0x4d842f(0x40b)}));}[_0x3bc572(0x3f3)](_0x4c7e4b){const _0x56e7b9=_0x3bc572;var _0x12851c;let _0x13e8e0=_0x4c7e4b[_0x56e7b9(0x2c8)],_0x73db5a=this[_0x56e7b9(0x1c9)][_0x56e7b9(0x306)](R),_0x5e866d=_0x13e8e0===0x0?0x0:((_0x12851c=_0x73db5a==null?void 0x0:_0x73db5a[_0x56e7b9(0x2f4)])==null?0x4e20:_0x12851c)*0x2**_0x13e8e0;_0x4c7e4b[_0x56e7b9(0x421)]=setTimeout(()=>{const _0x1da677=_0x56e7b9;clearTimeout(_0x4c7e4b[_0x1da677(0x421)]),_0x4c7e4b[_0x1da677(0x421)]=null,this[_0x1da677(0x3de)](_0x4c7e4b);},_0x5e866d),_0x4c7e4b['retryCount']+=0x1;}async[_0x3bc572(0x242)](_0x12ef76,_0x31e9ba){const _0x4084c1=_0x3bc572;return Mn(_0x12ef76,_0x31e9ba,await this[_0x4084c1(0x2d8)][_0x4084c1(0x402)]({'unitId':_0x12ef76,'unitType':_0x31e9ba}));}[_0x3bc572(0x2b9)](_0x2d1a6e,_0x41be4c,_0x1bb642){const _0xc4a754=_0x3bc572;let {cmd:_0xa98b78}=_0x1bb642;_0xa98b78===_0x23fb1d[_0xc4a754(0x292)]&&!_0x2d1a6e[_0xc4a754(0x2b4)]&&(_0x41be4c[_0xc4a754(0x3b6)]=_0x1bb642[_0xc4a754(0x2c6)]['memberID'],_0x2d1a6e[_0xc4a754(0x354)]['next'](_0x41be4c),this[_0xc4a754(0x34e)]['next'](0x3),_0x2d1a6e['socketReady']=!0x0,_0x2d1a6e[_0xc4a754(0x3ff)]=null),_0xa98b78===_0x23fb1d[_0xc4a754(0x20b)]&&this['_clearTimeoutTimer'](_0x2d1a6e),this[_0xc4a754(0x3f7)](_0x2d1a6e);}['_hasSessionsForEndpoint'](_0x4d0f02){const _0x5705e5=_0x3bc572;return[...this['_sessionChannels'][_0x5705e5(0x3fe)]()]['some'](_0x2172d4=>_0x2172d4===_0x4d0f02);}[_0x3bc572(0x266)](_0x223f86){const _0x1b4dd0=_0x3bc572;let _0xf559=_0x223f86==null?'':_0x223f86,_0x34edef=this[_0x1b4dd0(0x29c)]['get'](_0xf559);if(_0x34edef)return _0x34edef;let _0x9fbaf={'endpointKey':_0xf559,'endpoint':_0x223f86,'socket$':new _0x31b85e(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1b4dd0(0x29c)]['set'](_0xf559,_0x9fbaf),_0x9fbaf;}[_0x3bc572(0x3f7)](_0xb5cffc){const _0x5736fe=_0x3bc572;var _0x157b5f;this[_0x5736fe(0x2a2)](_0xb5cffc),_0xb5cffc['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0xb5cffc),(_0x157b5f=this['_configService'][_0x5736fe(0x306)](_0x5736fe(0x2c2)))==null?0x7530:_0x157b5f);}[_0x3bc572(0x209)](_0x3d37c6){const _0x4110eb=_0x3bc572;_0x3d37c6[_0x4110eb(0x354)][_0x4110eb(0x207)]()[_0x4110eb(0x1ef)]({'cmd':_0x23fb1d[_0x4110eb(0x20b)]}),this[_0x4110eb(0x294)](_0x3d37c6);}[_0x3bc572(0x294)](_0x51e9fd){const _0xa98c6=_0x3bc572;var _0x1e3f14;_0x51e9fd[_0xa98c6(0x22f)]=setTimeout(()=>this['_onConnectionFailed'](_0x51e9fd),(_0x1e3f14=this[_0xa98c6(0x1c9)][_0xa98c6(0x306)](_0xa98c6(0x358)))==null?_t:_0x1e3f14);}[_0x3bc572(0x2a2)](_0x200333){const _0x2ca126=_0x3bc572;_0x200333[_0x2ca126(0x1c2)]!=null&&(clearTimeout(_0x200333[_0x2ca126(0x1c2)]),_0x200333[_0x2ca126(0x1c2)]=null);}[_0x3bc572(0x1f1)](_0x4a6f1f){const _0x3e610b=_0x3bc572;_0x4a6f1f['timeoutTimer']!=null&&(clearTimeout(_0x4a6f1f['timeoutTimer']),_0x4a6f1f[_0x3e610b(0x22f)]=null);}};Nn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x2e09c7),V(0x2,_0xa7a1b6),V(0x3,Dn),V(0x4,_0x167908(B)),V(0x5,An),V(0x6,_0x2a5dd8(wn))],Nn);let Pn=class extends _0x4ca998{constructor(_0x24ac63,_0x1dd727,_0x3ba1f0,_0x33ee1c){const _0x5776a4=_0x3bc572;var _0x5aa67b;super(),this[_0x5776a4(0x44d)]=_0x24ac63,this['_collabSessionService']=_0x1dd727,this['_configService']=_0x3ba1f0,this[_0x5776a4(0x449)]=_0x33ee1c,z(this,_0x5776a4(0x410),new Map()),z(this,'_entityInit$',new _0x5b6066()),z(this,_0x5776a4(0x3c6),this[_0x5776a4(0x1d7)][_0x5776a4(0x43c)]()),((_0x5aa67b=this[_0x5776a4(0x1c9)][_0x5776a4(0x306)](_0x5776a4(0x282)))==null?void 0x0:_0x5aa67b['enableCollaboration'])!==!0x1&&this[_0x5776a4(0x212)]();}[_0x3bc572(0x1d4)](){const _0x45156f=_0x3bc572;super['dispose'](),this[_0x45156f(0x410)][_0x45156f(0x29a)](_0xd1585a=>_0xd1585a[_0x45156f(0x1d4)]()),this[_0x45156f(0x410)][_0x45156f(0x3bb)]();}[_0x3bc572(0x2dc)](_0x116cd3){const _0x38b59e=_0x3bc572;var _0x22ff9e;return(_0x22ff9e=this[_0x38b59e(0x410)][_0x38b59e(0x1e3)](_0x116cd3))==null?null:_0x22ff9e;}[_0x3bc572(0x1e6)](_0x2e3273){const _0x2785cc=_0x3bc572;let _0x4ef23d=this[_0x2785cc(0x2dc)](_0x2e3273);return _0x4ef23d?_0x5d6819(_0x4ef23d):this[_0x2785cc(0x1d7)][_0x2785cc(0x264)](_0x519396(_0x55ae0a=>_0x55ae0a[_0x2785cc(0x399)]===_0x2e3273));}['readyForCollab'](_0x5a7335){const _0x5aac37=_0x3bc572;return _0xecbbf6(this['getCollabEntity$'](_0x5a7335)[_0x5aac37(0x264)](_0x37612c(()=>void 0x0)));}[_0x3bc572(0x212)](){const _0x590857=_0x3bc572;this['_univerInstanceService'][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x33c)])[_0x590857(0x264)](_0xb785f(this['dispose$']),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x5dbd01=>{const _0x533c74=_0x590857;let _0x51e8c6=_0x5dbd01[_0x533c74(0x1be)][_0x533c74(0x1da)](),_0x1d4529=await this[_0x533c74(0x3ba)](_0x51e8c6,_0x1f1b4f[_0x533c74(0x33c)]);this['_entities'][_0x533c74(0x405)](_0x51e8c6,_0x1d4529);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x3e1)])['pipe'](_0xb785f(this['dispose$']),_0x5f4ad8(0x10))[_0x590857(0x264)](_0x519396(_0x3d9e94=>!_0x3d9e94[_0x590857(0x1be)]['getUnitId']()['startsWith']('__')))[_0x590857(0x368)](async _0x1e70f8=>{const _0x499b82=_0x590857;let _0x6f127e=_0x1e70f8[_0x499b82(0x1be)]['getUnitId'](),_0x132cab=await this[_0x499b82(0x3ba)](_0x6f127e,_0x1f1b4f[_0x499b82(0x3e1)]);this[_0x499b82(0x410)][_0x499b82(0x405)](_0x6f127e,_0x132cab);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x1f1b4f[_0x590857(0x3c4)])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x19e9db=>{const _0x42b396=_0x590857;let _0x280147=_0x19e9db[_0x42b396(0x1be)][_0x42b396(0x1da)](),_0x1ae9bd=await this['_startCollaboration'](_0x280147,_0x1f1b4f[_0x42b396(0x3c4)]);this['_entities'][_0x42b396(0x405)](_0x280147,_0x1ae9bd);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f['UNIVER_BOARD'])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x2afa27=>{const _0x3790f7=_0x590857;let _0x2d0f76=_0x2afa27[_0x3790f7(0x1be)][_0x3790f7(0x1da)](),_0x2a77df=await this[_0x3790f7(0x3ba)](_0x2d0f76,_0x1f1b4f[_0x3790f7(0x426)]);this[_0x3790f7(0x410)][_0x3790f7(0x405)](_0x2d0f76,_0x2a77df);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x1f1b4f[_0x590857(0x3fd)])[_0x590857(0x264)](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0x4d61db=>{const _0x3a8a4b=_0x590857;let _0x13d988=_0x4d61db['unit']['getUnitId'](),_0xe919fc=await this[_0x3a8a4b(0x3ba)](_0x13d988,_0x1f1b4f[_0x3a8a4b(0x3fd)]);this[_0x3a8a4b(0x410)][_0x3a8a4b(0x405)](_0x13d988,_0xe919fc);}),this[_0x590857(0x449)][_0x590857(0x2c4)](_0x1f1b4f[_0x590857(0x2ca)])['pipe'](_0xb785f(this[_0x590857(0x3d6)]),_0x5f4ad8(0x10))[_0x590857(0x368)](async _0xf52425=>{const _0x1e38d9=_0x590857;let _0x2682b9=_0xf52425[_0x1e38d9(0x1be)]['getUnitId'](),_0x24fecb=await this[_0x1e38d9(0x3ba)](_0x2682b9,_0x1f1b4f[_0x1e38d9(0x2ca)]);this[_0x1e38d9(0x410)][_0x1e38d9(0x405)](_0x2682b9,_0x24fecb);}),_0x4b9f39(this[_0x590857(0x449)]['getTypeOfUnitDisposed$'](_0x1f1b4f[_0x590857(0x33c)]),this[_0x590857(0x449)][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x3e1)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f[_0x590857(0x3c4)]),this[_0x590857(0x449)][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x426)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1f1b4f['UNIVER_BASE']),this['_univerInstanceService'][_0x590857(0x40a)](_0x1f1b4f[_0x590857(0x2ca)]))['pipe'](_0xb785f(this[_0x590857(0x3d6)]))[_0x590857(0x368)](_0x901140=>{const _0x24bdfe=_0x590857;let _0x5ec70b=_0x901140[_0x24bdfe(0x1da)](),_0x5e2f8c=this[_0x24bdfe(0x410)][_0x24bdfe(0x1e3)](_0x5ec70b);_0x5e2f8c&&(_0x5e2f8c[_0x24bdfe(0x1d4)](),this[_0x24bdfe(0x410)]['delete'](_0x5ec70b));});}async[_0x3bc572(0x3ba)](_0x122823,_0x3429b6){const _0x3079cf=_0x3bc572;let _0x533c0b=await this[_0x3079cf(0x3c0)][_0x3079cf(0x252)](_0x122823),_0x58586e=this['_injector'][_0x3079cf(0x2fe)](this[_0x3079cf(0x2c0)](_0x3429b6),_0x122823,_0x3429b6,_0x533c0b);return await _0x58586e['init'](),this[_0x3079cf(0x1d7)][_0x3079cf(0x2c7)](_0x58586e),_0x58586e;}[_0x3bc572(0x2c0)](_0x2a2649){const _0x382d36=_0x3bc572;switch(_0x2a2649){case _0x1f1b4f[_0x382d36(0x3e1)]:return vn;case _0x1f1b4f['UNIVER_SHEET']:return bn;case _0x1f1b4f['UNIVER_SLIDE']:return xn;case _0x1f1b4f[_0x382d36(0x426)]:return Sn;case _0x1f1b4f['UNIVER_BASE']:return yn;case _0x1f1b4f[_0x382d36(0x2ca)]:return Cn;default:throw Error(_0x382d36(0x379)+_0x2a2649);}}};Pn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x167908(Nn)),V(0x2,_0xa7a1b6),V(0x3,_0x6f9bb2)],Pn);var Fn=_0x3bc572(0x23a),In='1.0.0-alpha.8';let Ln=class extends _0x376cce{constructor(_0x1a0204,_0x5364ca){const _0x6a8544=_0x3bc572;super(),this['_univerInstanceService']=_0x1a0204,this['_configService']=_0x5364ca,this[_0x6a8544(0x212)]();}['_init'](){const _0x464ada=_0x3bc572;this['disposeWithMe'](this[_0x464ada(0x449)][_0x464ada(0x28f)][_0x464ada(0x368)](()=>{const _0xaba180=_0x464ada;var _0x331bb6;let _0xe38336=this[_0xaba180(0x449)][_0xaba180(0x26d)](),_0x120b1=(_0x331bb6=this['_configService']['getConfig']('DEFAULT_FILE_NAME'))==null?_0xaba180(0x3b3):_0x331bb6;_0xe38336 instanceof _0x45f35b&&(_0x120b1=_0xe38336['name']),document[_0xaba180(0x205)]=_0x120b1;}));}};Ln=H([V(0x0,_0x6f9bb2),V(0x1,_0xa7a1b6)],Ln);const Rn=_0x5685c4('base-ui.attachment-io.service');let zn=class{constructor(_0x4d2b44,_0x28e77e,_0x23c88b){const _0x4eba0c=_0x3bc572;this['_httpService']=_0x4d2b44,this[_0x4eba0c(0x1c9)]=_0x28e77e,this['_univerInstanceService']=_0x23c88b;}[_0x3bc572(0x378)](){const _0x37b1be=_0x3bc572;var _0x4ad9fa;return(_0x4ad9fa=this['_getConfig']()[_0x37b1be(0x2d0)])==null?{}:_0x4ad9fa;}async[_0x3bc572(0x247)](_0x4aef98){const _0x48636f=_0x3bc572;let _0x23971f=this[_0x48636f(0x378)]();if(Bn(_0x4aef98,_0x23971f),_0x23971f[_0x48636f(0x2d6)])return _0x23971f['upload'](_0x4aef98);let _0x5c55fc=await this['_upload'](_0x4aef98);return{'id':_0x5c55fc,'name':_0x4aef98[_0x48636f(0x25f)],'mimeType':_0x4aef98[_0x48636f(0x2f0)],'size':_0x4aef98['size'],'sourceType':_0x493f5e[_0x48636f(0x241)],'source':_0x5c55fc};}async[_0x3bc572(0x30f)](_0xa3775c,_0x1be913){const _0x3b2273=_0x3bc572;if(_0x1be913!==_0x493f5e[_0x3b2273(0x241)])return _0xa3775c;let _0x1f0236=(await this[_0x3b2273(0x3b7)]['get'](this[_0x3b2273(0x1fc)]()['replace'](_0x3b2273(0x329),_0xa3775c)))['body'];if(_0x1f0236['error']&&_0x1f0236[_0x3b2273(0x298)][_0x3b2273(0x36f)]!==_0x2fd5b6['OK'])throw _0x1f0236[_0x3b2273(0x298)];if(!_0x1f0236[_0x3b2273(0x3cd)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return _0x4823ba(_0x1f0236[_0x3b2273(0x3cd)],this[_0x3b2273(0x28a)]());}async[_0x3bc572(0x367)](_0x262097){const _0x3d3f20=_0x3bc572;let _0x3efb20=this[_0x3d3f20(0x449)][_0x3d3f20(0x26d)](),_0x369c41=_0x3efb20==null?void 0x0:_0x3efb20[_0x3d3f20(0x1da)]();if(!_0x369c41)throw Error(_0x3d3f20(0x42d));let _0xa05d5a=new FormData();_0xa05d5a['append'](_0x3d3f20(0x203),_0x262097);let _0x748fb=this['_getUploadFileURL']()+_0x3d3f20(0x366)+_0x262097['size'][_0x3d3f20(0x1f6)]()+_0x3d3f20(0x3fa)+_0x10cf89[_0x3d3f20(0x1cc)]+_0x3d3f20(0x40c)+encodeURIComponent(_0x369c41),_0x38d680=(await this[_0x3d3f20(0x3b7)][_0x3d3f20(0x27f)](_0x748fb,{'body':_0xa05d5a}))['body'][_0x3d3f20(0x3b2)];if(typeof _0x38d680!=_0x3d3f20(0x288)||!_0x38d680)throw Error(_0x3d3f20(0x2bc));return _0x38d680;}[_0x3bc572(0x1e9)](){const _0x1ff444=_0x3bc572;var _0x128049;return(_0x128049=this[_0x1ff444(0x21e)]()['uploadFileServerUrl'])==null?_0x1ff444(0x43f):_0x128049;}[_0x3bc572(0x1fc)](){const _0x3f740f=_0x3bc572;var _0x2d833f;return(_0x2d833f=this[_0x3f740f(0x21e)]()[_0x3f740f(0x2c9)])==null?'/universer-api/file/{fileID}/sign-url':_0x2d833f;}[_0x3bc572(0x28a)](){const _0x2b2d12=_0x3bc572;var _0x47dc22;let _0x130926=this[_0x2b2d12(0x21e)]();return _0x130926['downloadEndpointUrl']?_0x130926[_0x2b2d12(0x1c8)]:typeof location<'u'?location[_0x2b2d12(0x32f)]:(_0x47dc22=_0x130926[_0x2b2d12(0x347)])==null?'':_0x47dc22;}[_0x3bc572(0x21e)](){const _0x6bfa25=_0x3bc572;var _0x10a52c;return(_0x10a52c=this[_0x6bfa25(0x1c9)][_0x6bfa25(0x306)](_0x6bfa25(0x282)))==null?{}:_0x10a52c;}};zn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0x167908(_0xa7a1b6)),V(0x2,_0x167908(_0x6f9bb2))],zn);function Bn(_0x4cab76,_0x50e8bc){const _0x3defc8=_0x3bc572;var _0x45bfca;if(_0x50e8bc[_0x3defc8(0x287)]!=null&&_0x4cab76[_0x3defc8(0x318)]>_0x50e8bc[_0x3defc8(0x287)])throw Error(_0x3defc8(0x32e));if((_0x45bfca=_0x50e8bc[_0x3defc8(0x3eb)])!=null&&_0x45bfca[_0x3defc8(0x28d)]&&!_0x50e8bc['accept']['some'](_0x1912dc=>_0x4cab76['type']===_0x1912dc||_0x4cab76[_0x3defc8(0x25f)]['endsWith'](_0x1912dc)||_0x1912dc[_0x3defc8(0x27c)]('/*')&&_0x4cab76['type'][_0x3defc8(0x214)](_0x1912dc['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let Vn=class{constructor(_0x4e0436,_0x3804d0,_0x466068){const _0x4600a4=_0x3bc572;this['_configService']=_0x4e0436,this[_0x4600a4(0x3b7)]=_0x3804d0,this[_0x4600a4(0x341)]=_0x466068,this[_0x4600a4(0x3bf)]();}['init'](){const _0x16c9e1=_0x3bc572;this[_0x16c9e1(0x3b7)][_0x16c9e1(0x254)]({'priority':0x1,'interceptor':(_0x59dfd4,_0x489e7a)=>_0x489e7a(_0x59dfd4)[_0x16c9e1(0x264)](_0x4bcf17(async _0x528401=>{const _0x48ff8e=_0x16c9e1;let _0x2b0c60=_0x528401;if(_0x2b0c60['status']===0x191){if(typeof window>'u')throw Error(_0x48ff8e(0x2e4));if(window[_0x48ff8e(0x1e7)](this[_0x48ff8e(0x341)]['t'](_0x48ff8e(0x211)))){let _0x8fc6f0=window[_0x48ff8e(0x37c)](window['location']['href']);window['location'][_0x48ff8e(0x392)]=this[_0x48ff8e(0x34b)]()+'?url='+_0x8fc6f0;}}return _0x2b0c60;}))});}[_0x3bc572(0x34b)](){const _0x3fa052=_0x3bc572;var _0x209ad7;let _0x3ce33e=this['_configService']['getConfig'](R);return(_0x209ad7=_0x3ce33e==null?void 0x0:_0x3ce33e[_0x3fa052(0x310)])==null?'/universer-api/oidc/authpage':_0x209ad7;}};Vn=H([V(0x0,_0xa7a1b6),V(0x1,_0x167908(_0x6a3f01)),V(0x2,_0x167908(_0x3b5f18))],Vn);let Hn=class extends _0x376cce{constructor(_0x51d49d,_0x1f72a4){const _0x21c479=_0x3bc572;super(),this['_HTTPService']=_0x51d49d,this[_0x21c479(0x1c9)]=_0x1f72a4,z(this,'_cfgEnableObjInherit',!0x1),this[_0x21c479(0x1f0)]();}[_0x3bc572(0x1f0)](){const _0x3151cd=_0x3bc572;let _0x5befb8=this;this[_0x3151cd(0x21b)](this[_0x3151cd(0x3db)][_0x3151cd(0x254)]({'priority':0x3e7,'interceptor':_0x24f540({'isMatch'(_0x4c1fd3){const _0x1d5896=_0x3151cd;var _0x10a3d9;if(_0x4c1fd3[_0x1d5896(0x2d4)]===_0x1d5896(0x1b7)&&(_0x10a3d9=_0x4c1fd3['requestParams'])!=null&&_0x10a3d9[_0x1d5896(0x236)]){let {objectID:_0x49d135,objectType:_0x707585}=_0x4c1fd3['requestParams'][_0x1d5896(0x236)]||{};if(!_0x49d135||_0x707585===void 0x0)return!0x1;let _0x5f30c8=_0x5befb8[_0x1d5896(0x362)]()+'/'+_0x707585+_0x1d5896(0x3a5)+_0x49d135+_0x1d5896(0x3a6);if(_0x4c1fd3[_0x1d5896(0x3cd)]===_0x5f30c8)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xd26b22){const _0x529018=_0x3151cd;var _0x3a2fbb;return(_0x3a2fbb=_0xd26b22[_0x529018(0x3d9)])==null?void 0x0:_0x3a2fbb[_0x529018(0x236)];},'mergeParamsToRequest'(_0x260308,_0x438029){const _0x3d3c70=_0x3151cd;let _0x4d2924=_0x5befb8[_0x3d3c70(0x362)]()+_0x3d3c70(0x243),_0x1a3c5b=_0x260308[_0x3d3c70(0x336)]((_0x5c3015,_0x301cf5)=>{const _0x24b3d8=_0x3d3c70;let {unitID:_0x10cd1c,objectID:_0x1ef581,objectType:_0x41933b,actions:_0x1467a1}=_0x301cf5;return _0x5c3015[_0x10cd1c]||(_0x5c3015[_0x10cd1c]={}),_0x5c3015[_0x10cd1c][_0x1ef581]||(_0x5c3015[_0x10cd1c][_0x1ef581]={'objectID':_0x1ef581,'objectType':_0x41933b,'actions':[]}),_0x5c3015[_0x10cd1c][_0x1ef581]['actions'][_0x24b3d8(0x250)](..._0x1467a1),_0x5c3015;},{}),_0x3f5c2c=[];for(let _0x592442 in _0x1a3c5b)for(let _0x1c6460 in _0x1a3c5b[_0x592442]){let {actions:_0x4db69c,objectType:_0x506bf4}=_0x1a3c5b[_0x592442][_0x1c6460],_0x3bdbda=[...new Set(_0x4db69c)];_0x3f5c2c[_0x3d3c70(0x250)]({'unitID':_0x592442,'objectID':_0x1c6460,'objectType':_0x506bf4,'actions':_0x3bdbda});}return new _0x3cc753('POST',_0x4d2924,{'headers':_0x438029[_0x3d3c70(0x2b5)],'withCredentials':_0x438029[_0x3d3c70(0x3e8)],'responseType':_0x438029[_0x3d3c70(0x2d2)],'body':{'requests':_0x3f5c2c}});}},{'distributeResult'(_0x45f209,_0xf63e21){const _0x415754=_0x3151cd;let {objectActions:_0xf187f2}=_0x45f209;return _0xf63e21[_0x415754(0x239)](_0x4083f3=>{const _0x85373f=_0x415754;let {unitID:_0x41c5a8,objectID:_0x1d96b3,actions:_0x560bcb}=_0x4083f3,_0x9582fd=_0xf187f2['find'](_0x4fb080=>_0x4fb080['unitID']===_0x41c5a8&&_0x4fb080[_0x85373f(0x1ab)]===_0x1d96b3);return{'config':_0x4083f3,'result':{'actions':_0x560bcb[_0x85373f(0x239)](_0x12a25e=>_0x9582fd==null?void 0x0:_0x9582fd[_0x85373f(0x311)][_0x85373f(0x398)](_0x20459b=>_0x20459b[_0x85373f(0x283)]===_0x12a25e))['filter'](_0x199d0=>!!_0x199d0),'error':_0x45f209[_0x85373f(0x298)]}};});}})}));}[_0x3bc572(0x362)](){const _0xdbf4d1=_0x3bc572;var _0x109536;let _0x32300a=this[_0xdbf4d1(0x1c9)][_0xdbf4d1(0x306)](R);return(_0x109536=_0x32300a==null?void 0x0:_0x32300a['authzUrl'])==null?_0xdbf4d1(0x290):_0x109536;}async[_0x3bc572(0x1eb)](_0x5c5720){const _0x2341a1=_0x3bc572;let _0x5000a5=this[_0x2341a1(0x362)]()+'/'+_0x5c5720['objectType']+_0x2341a1(0x302);return(await this[_0x2341a1(0x3db)]['post'](_0x5000a5,{'body':_0x5c5720}))['body'][_0x2341a1(0x1ab)]||'';}async[_0x3bc572(0x34c)](_0x1bcf06){const _0x1c4351=_0x3bc572;let _0x303b21=this['_getAPIPrefixPath']()+_0x1c4351(0x407);return(await this[_0x1c4351(0x3db)][_0x1c4351(0x27f)](_0x303b21,{'body':_0x1bcf06}))[_0x1c4351(0x236)][_0x1c4351(0x36e)];}async[_0x3bc572(0x37f)](_0x54196c){const _0x173a6e=_0x3bc572;var _0x37e999;let _0x8fb431=this[_0x173a6e(0x362)]()+'/'+_0x54196c[_0x173a6e(0x273)]+_0x173a6e(0x3a5)+_0x54196c[_0x173a6e(0x1ab)],_0xd5e7fe=await this[_0x173a6e(0x3db)][_0x173a6e(0x2d9)](_0x8fb431,{'body':_0x54196c});if((_0xd5e7fe==null||(_0x37e999=_0xd5e7fe[_0x173a6e(0x236)])==null||(_0x37e999=_0x37e999[_0x173a6e(0x298)])==null?void 0x0:_0x37e999[_0x173a6e(0x36f)])!==0x1)throw Error(_0x173a6e(0x21d));}async['allowed'](_0x4ea0e1){const _0x270a31=_0x3bc572;let _0x30e018=this['_getAPIPrefixPath']()+'/'+_0x4ea0e1[_0x270a31(0x273)]+_0x270a31(0x3a5)+_0x4ea0e1[_0x270a31(0x1ab)]+_0x270a31(0x3a6);return(await this[_0x270a31(0x3db)][_0x270a31(0x27f)](_0x30e018,{'body':_0x4ea0e1}))[_0x270a31(0x236)][_0x270a31(0x311)];}async['batchAllowed'](_0x3ac8ff){const _0x9976b1=_0x3bc572;let _0x3a455e=this[_0x9976b1(0x362)]()+_0x9976b1(0x243);return(await this['_HTTPService'][_0x9976b1(0x27f)](_0x3a455e,{'body':{'requests':_0x3ac8ff}}))[_0x9976b1(0x236)]['objectActions'];}async['listRoles'](_0xae85bc){const _0x5de7f2=_0x3bc572;let _0x495c24=this[_0x5de7f2(0x362)]()+'/'+_0xae85bc['objectType']+'/role',_0x8bc260=await this[_0x5de7f2(0x3db)][_0x5de7f2(0x27f)](_0x495c24,{'body':_0xae85bc});return{'roles':_0x8bc260[_0x5de7f2(0x236)][_0x5de7f2(0x3d0)],'actions':_0x8bc260[_0x5de7f2(0x236)][_0x5de7f2(0x311)]};}async[_0x3bc572(0x345)](_0x442481){const _0x44dded=_0x3bc572;let _0x5e14e0=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x44dded(0x3db)][_0x44dded(0x1b4)](_0x5e14e0,{'params':{'collaboratorID':_0x442481['collaboratorID'],'objectID':_0x442481[_0x44dded(0x1ab)],'unitID':_0x442481[_0x44dded(0x399)]}});}async[_0x3bc572(0x3ee)](_0x5e34f1){const _0x19a4c4=_0x3bc572;let _0x3d1ebc=this['_getAPIPrefixPath']()+_0x19a4c4(0x3e4);await this[_0x19a4c4(0x3db)][_0x19a4c4(0x23b)](_0x3d1ebc,{'body':_0x5e34f1});}async['createCollaborator'](_0x11a3e8){const _0x42a097=_0x3bc572;let _0xffbfab=this[_0x42a097(0x362)]()+_0x42a097(0x3e4);await this[_0x42a097(0x3db)][_0x42a097(0x27f)](_0xffbfab,{'body':_0x11a3e8});}async[_0x3bc572(0x322)](_0x296720){const _0x73a708=_0x3bc572;var _0x451891;let _0x11b07b=this[_0x73a708(0x362)]()+_0x73a708(0x3e4),_0x4a8dfb=await this[_0x73a708(0x3db)][_0x73a708(0x1e3)](_0x11b07b,{'params':{'objectID':_0x296720[_0x73a708(0x1ab)],'unitID':_0x296720[_0x73a708(0x399)]}});return this[_0x73a708(0x425)]((_0x451891=_0x4a8dfb[_0x73a708(0x236)][_0x73a708(0x216)])!=null&&_0x451891),_0x4a8dfb[_0x73a708(0x236)][_0x73a708(0x38f)];}async[_0x3bc572(0x3a9)](_0x12bdc7){const _0xd1d887=_0x3bc572;let _0x1a6fea=this[_0xd1d887(0x362)]()+_0xd1d887(0x3e4);await this[_0xd1d887(0x3db)][_0xd1d887(0x2d9)](_0x1a6fea,{'body':_0x12bdc7});}[_0x3bc572(0x425)](_0x5aaa4e){const _0x9021ee=_0x3bc572;this[_0x9021ee(0x2a1)]=_0x5aaa4e;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};Hn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0x167908(_0xa7a1b6))],Hn);function Un(_0x4ec4f6){const _0x17e813=_0x3bc572;let _0x5a89b6=atob(_0x4ec4f6),_0x4809de=new Uint8Array(_0x5a89b6[_0x17e813(0x28d)]);for(let _0x19a64f=0x0;_0x19a64f<_0x5a89b6[_0x17e813(0x28d)];_0x19a64f++)_0x4809de[_0x19a64f]=_0x5a89b6['charCodeAt'](_0x19a64f);return _0x4809de;}function Wn(_0xdd1e4b){const _0x54582b=_0x3bc572;let _0x42126e='';for(let _0x31d73d=0x0;_0x31d73d<_0xdd1e4b[_0x54582b(0x28d)];_0x31d73d++)_0x42126e+=String['fromCharCode'](_0xdd1e4b[_0x31d73d]);return btoa(_0x42126e);}function Gn(_0x1e1b16,_0xa24e80){let _0x353a1a=Un(_0xa24e80),_0x2969b8=_0x1dfafc(0x10);return Wn(_0x2bb09d(_0x2969b8,_0x3823ef(_0x353a1a,_0x2969b8)['encrypt'](_0x34339e(_0x1e1b16))));}function Kn(){const _0x3da139=_0x3bc572;let _0x1e627c=_0x153271()[_0x3da139(0x3ae)];if(typeof window<'u'&&window[_0x3da139(0x3d7)]!==void 0x0&&_0x1e627c){let _0x18b81f={'time':Math[_0x3da139(0x3a0)](Date['now']()/0x3e8),'domain':location[_0x3da139(0x3e0)]};return Gn(JSON[_0x3da139(0x3c3)](_0x18b81f),_0x1e627c);}}let qn=class{constructor(_0x52c5bb){const _0x6bab9f=_0x3bc572;this[_0x6bab9f(0x3b7)]=_0x52c5bb,this['_initRequestHeader']();}[_0x3bc572(0x372)](){const _0x4d808d=_0x3bc572;this['_httpService'][_0x4d808d(0x254)]({'interceptor':(_0xc952b,_0x42814b)=>{const _0x124280=_0x4d808d;let _0x72a80=Kn();return _0x72a80&&_0xc952b[_0x124280(0x2b5)]['set'](_0x124280(0x1b2),_0x72a80),_0x42814b(_0xc952b);}});}};qn=H([V(0x0,_0x167908(_0x6a3f01))],qn);let Jn=class extends _0x4ca998{constructor(_0x2adb41,_0x4f9091,_0x4364e6){const _0x3de8a0=_0x3bc572;super(),this[_0x3de8a0(0x1c1)]=_0x2adb41,this[_0x3de8a0(0x2bf)]=_0x4f9091,this[_0x3de8a0(0x422)]=_0x4364e6,z(this,_0x3de8a0(0x2ad),new _0x31b85e(null)),z(this,'_unitLoaded$',new _0x5b6066()),z(this,'unitInfo$',this[_0x3de8a0(0x2ad)][_0x3de8a0(0x43c)]()),z(this,_0x3de8a0(0x309),this[_0x3de8a0(0x3d5)][_0x3de8a0(0x43c)]());}[_0x3bc572(0x1d4)](){const _0x22549b=_0x3bc572;super[_0x22549b(0x1d4)](),this[_0x22549b(0x3d5)]['complete'](),this[_0x22549b(0x2ad)][_0x22549b(0x42f)]();}async[_0x3bc572(0x245)](_0x1d44e0,_0x17750a,_0x3481ff,_0x5a1da8){const _0x19bfd4=_0x3bc572;this['_unitInfo$'][_0x19bfd4(0x2c7)]({'unitId':_0x1d44e0,'type':_0x17750a,'subUnitId':_0x5a1da8});let _0x28f19a=null;switch(_0x17750a){case _0x1f1b4f[_0x19bfd4(0x33c)]:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x274)](_0x1d44e0,_0x3481ff,void 0x0,{'initialSubUnitId':_0x5a1da8});break;case _0x1f1b4f['UNIVER_DOC']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x335)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f['UNIVER_SLIDE']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x343)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f[_0x19bfd4(0x426)]:_0x28f19a=await this['_snapshotService'][_0x19bfd4(0x2f7)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f[_0x19bfd4(0x3fd)]:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x38b)](_0x1d44e0,_0x3481ff);break;case _0x1f1b4f['UNIVER_PDF']:_0x28f19a=await this[_0x19bfd4(0x2bf)][_0x19bfd4(0x2df)](_0x1d44e0,_0x3481ff);break;default:this[_0x19bfd4(0x1c1)][_0x19bfd4(0x298)](_0x19bfd4(0x1f9),_0x19bfd4(0x430));break;}return _0x28f19a&&this[_0x19bfd4(0x3d5)][_0x19bfd4(0x2c7)](_0x28f19a),_0x28f19a;}async[_0x3bc572(0x436)](_0x103631,_0x46c4e9,_0x22d060){const _0xa98243=_0x3bc572;var _0x39f1bf;this[_0xa98243(0x2ad)][_0xa98243(0x2c7)]({'unitId':_0x103631,'type':_0x46c4e9,'subUnitId':_0x22d060});let _0xbdd6e0=0x0,_0x6906ed=await((_0x39f1bf=this[_0xa98243(0x422)])==null?void 0x0:_0x39f1bf[_0xa98243(0x270)](_0x103631));return _0x6906ed&&(_0x6906ed[_0xa98243(0x3c2)]||_0x6906ed[_0xa98243(0x227)][_0xa98243(0x28d)]!==0x0)&&(_0xbdd6e0=_0x6906ed[_0xa98243(0x441)]),_0xbdd6e0===0x0&&this[_0xa98243(0x1c1)][_0xa98243(0x305)](_0xa98243(0x1f9),_0xa98243(0x427)),this[_0xa98243(0x245)](_0x103631,_0x46c4e9,_0xbdd6e0,_0x22d060);}};Jn=H([V(0x0,_0x2e09c7),V(0x1,_0x167908(_0x3209ea)),V(0x2,_0x2a5dd8(U))],Jn);let Yn=class{constructor(_0x119983,_0x146e1e,_0x59aca5){const _0x3cee12=_0x3bc572;this[_0x3cee12(0x3b7)]=_0x119983,this[_0x3cee12(0x1c9)]=_0x146e1e,this[_0x3cee12(0x449)]=_0x59aca5,z(this,_0x3cee12(0x2e8),0x0),z(this,_0x3cee12(0x32b),new _0x5b6066()),z(this,'change$',this[_0x3cee12(0x32b)]),z(this,_0x3cee12(0x258),new Map());}[_0x3bc572(0x263)](_0x4bf4e4){const _0x2497a5=_0x3bc572;this['_waitCount']=_0x4bf4e4,this['_change$'][_0x2497a5(0x2c7)](_0x4bf4e4);}['getImageSourceCache'](_0x44ce42,_0x40d9e1){const _0x256470=_0x3bc572;if(_0x40d9e1===_0x493f5e[_0x256470(0x387)]){let _0x3601b8=new Image();return _0x3601b8[_0x256470(0x2bd)]=_0x44ce42,_0x3601b8;}return this[_0x256470(0x258)][_0x256470(0x1e3)](_0x44ce42);}[_0x3bc572(0x1de)](_0x23e2e6,_0x2e21b2,_0x33a642){const _0x1ee106=_0x3bc572;_0x2e21b2!==_0x493f5e[_0x1ee106(0x387)]&&_0x33a642!=null&&this['_imageSourceCache'][_0x1ee106(0x405)](_0x23e2e6,_0x33a642);}async[_0x3bc572(0x21a)](_0xc48d3c){const _0x52764e=_0x3bc572;try{let _0x316873=this['_replaceFileID'](this['_getSignURL'](),''+_0xc48d3c),_0x28a0c2=(await this['_httpService'][_0x52764e(0x1e3)](_0x316873))[_0x52764e(0x236)];if(_0x28a0c2[_0x52764e(0x298)]&&_0x28a0c2[_0x52764e(0x298)]['code']===_0x2fd5b6['OK']){let _0x313384=_0x4823ba(_0x28a0c2[_0x52764e(0x3cd)],this[_0x52764e(0x28a)]());return Promise[_0x52764e(0x2a9)](_0x313384);}return Promise[_0x52764e(0x36a)](_0x28a0c2['error']);}catch(_0x3f72f0){return Promise[_0x52764e(0x36a)](_0x3f72f0);}}async['saveImage'](_0x203dec){const _0x37f57a=_0x3bc572;let _0x7d0a00='';if(!_0x286929[_0x37f57a(0x382)](_0x203dec[_0x37f57a(0x2f0)]))return this['_decreaseWaiting'](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f[_0x37f57a(0x438)]));if(_0x203dec[_0x37f57a(0x318)]>_0xba57e6())return this[_0x37f57a(0x40e)](),Promise['reject'](Error(_0x13bf4f[_0x37f57a(0x1f7)]));try{let _0x1d1502=new FormData();_0x1d1502[_0x37f57a(0x2ea)]('file',_0x203dec);let _0x1c036c=this[_0x37f57a(0x449)][_0x37f57a(0x26d)](),_0x3d9904=_0x1c036c==null?void 0x0:_0x1c036c[_0x37f57a(0x1da)]();if(!_0x3d9904)throw Error('unitId\x20is\x20not\x20found');let _0x31bf43=this[_0x37f57a(0x1e9)]()+'?size='+_0x203dec['size']['toString']()+_0x37f57a(0x3fa)+_0x10cf89[_0x37f57a(0x1cc)]+_0x37f57a(0x40c)+encodeURIComponent(_0x3d9904),_0x3d8e20={'body':_0x1d1502},_0xde078=(await this['_httpService']['post'](_0x31bf43,_0x3d8e20))['body'];if(typeof _0xde078[_0x37f57a(0x3b2)]!=_0x37f57a(0x288))return this[_0x37f57a(0x40e)](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f['ERROR_IMAGE']));_0x7d0a00=_0xde078['FileId'];}catch{return this[_0x37f57a(0x40e)](),Promise[_0x37f57a(0x36a)](Error(_0x13bf4f[_0x37f57a(0x20c)]));}return new Promise((_0x2c0ddb,_0x3d8362)=>{const _0x5c5732=_0x37f57a;let _0xc72eb5=new FileReader();_0xc72eb5[_0x5c5732(0x26e)](_0x203dec),_0xc72eb5[_0x5c5732(0x280)]=_0x3678d4=>{const _0x5bec75=_0x5c5732;var _0x283226;let _0xd1d02e=(_0x283226=_0x3678d4[_0x5bec75(0x24b)])==null?void 0x0:_0x283226[_0x5bec75(0x256)];if(_0xd1d02e==null){this[_0x5bec75(0x40e)](),_0x3d8362(Error(_0x13bf4f[_0x5bec75(0x20c)]));return;}_0x2c0ddb({'imageId':_0x197487(0x6),'imageSourceType':_0x493f5e['UUID'],'source':_0x7d0a00,'base64Cache':_0xd1d02e,'status':_0x13bf4f[_0x5bec75(0x43a)]}),this[_0x5bec75(0x40e)]();};});}['_getUploadFileURL'](){const _0x4bed2d=_0x3bc572;var _0x2c0fe7;let _0x2782dc=this[_0x4bed2d(0x1c9)][_0x4bed2d(0x306)](R);return(_0x2c0fe7=_0x2782dc==null?void 0x0:_0x2782dc['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x2c0fe7;}['_getSignURL'](){const _0x3dfe70=_0x3bc572;var _0x5f0152;let _0x36e24d=this[_0x3dfe70(0x1c9)]['getConfig'](R);return(_0x5f0152=_0x36e24d==null?void 0x0:_0x36e24d[_0x3dfe70(0x2c9)])==null?_0x3dfe70(0x1d3):_0x5f0152;}[_0x3bc572(0x28a)](){const _0x2f49c4=_0x3bc572;var _0x2280b2;let _0x5b4850=this[_0x2f49c4(0x1c9)][_0x2f49c4(0x306)](R);return(_0x2280b2=_0x5b4850==null?void 0x0:_0x5b4850[_0x2f49c4(0x1c8)])==null?location[_0x2f49c4(0x32f)]:_0x2280b2;}[_0x3bc572(0x2d1)](_0x280357,_0x114b43){const _0x163da0=_0x3bc572;return _0x280357[_0x163da0(0x3a1)](_0x163da0(0x329),_0x114b43);}[_0x3bc572(0x40e)](){const _0x3d076d=_0x3bc572;--this['_waitCount'],this[_0x3d076d(0x32b)][_0x3d076d(0x2c7)](this['_waitCount']);}};Yn=H([V(0x0,_0x167908(_0x6a3f01)),V(0x1,_0xa7a1b6),V(0x2,_0x167908(_0x6f9bb2))],Yn);let Xn=class{constructor(_0x5a4f14,_0x4c6868){const _0x3ef839=_0x3bc572;this[_0x3ef839(0x1c9)]=_0x5a4f14,this[_0x3ef839(0x3db)]=_0x4c6868;}[_0x3bc572(0x362)](){const _0x24663a=_0x3bc572;var _0x32339b;let _0x3731db=this[_0x24663a(0x1c9)][_0x24663a(0x306)](R);return(_0x32339b=_0x3731db==null?void 0x0:_0x3731db[_0x24663a(0x275)])==null?_0x24663a(0x290):_0x32339b;}async['list'](_0x40bdf4){const _0x3e7197=_0x3bc572;let _0x20f410=this['_getAPIPrefixPath']()+_0x3e7197(0x3e4);return{'list':[{'title':'People','mentions':(await this[_0x3e7197(0x3db)][_0x3e7197(0x1e3)](_0x20f410,{'params':{'objectID':_0x40bdf4['unitId'],'unitID':_0x40bdf4[_0x3e7197(0x395)]}}))[_0x3e7197(0x236)][_0x3e7197(0x38f)][_0x3e7197(0x239)](_0x263bc0=>({'objectId':_0x263bc0['id'],'name':_0x263bc0[_0x3e7197(0x235)][_0x3e7197(0x25f)],'metadata':{'icon':_0x263bc0[_0x3e7197(0x235)][_0x3e7197(0x29f)]},'label':_0x263bc0['subject'][_0x3e7197(0x25f)],'objectType':_0x118ea1['PERSON']})),'metadata':{},'type':_0x118ea1['PERSON']}]};}};Xn=H([V(0x0,_0x167908(_0xa7a1b6)),V(0x1,_0x167908(_0x6a3f01))],Xn);let Zn=class extends _0x4ca998{constructor(_0x1d9c62,_0x4820b0,_0x2b0266,_0x17fd9a,_0x2f50a9){const _0x2f40c4=_0x3bc572;super(),this[_0x2f40c4(0x44d)]=_0x1d9c62,this['_univerInstanceService']=_0x4820b0,this[_0x2f40c4(0x1cb)]=_0x2b0266,this[_0x2f40c4(0x225)]=_0x17fd9a,this[_0x2f40c4(0x33e)]=_0x2f50a9,this[_0x2f40c4(0x1e0)](),this[_0x2f40c4(0x325)]();}['_initCloseConn'](){const _0x2e83c8=_0x3bc572;let _0x4778ee=async _0x3122ff=>{const _0x461d2f=_0xe493;(await this[_0x461d2f(0x225)][_0x461d2f(0x252)](_0x3122ff))[_0x461d2f(0x396)][_0x461d2f(0x264)](_0x519396(_0x5ddbab=>_0x5ddbab['eventID']===_0x7dd1cb[_0x461d2f(0x268)]),_0x42f81a(this[_0x461d2f(0x3d6)]))[_0x461d2f(0x368)](_0x26a7d8=>{const _0x348c41=_0x461d2f;let {reason:_0x1d4fe7}=_0x26a7d8['data'];this[_0x348c41(0x33e)][_0x348c41(0x340)]({'id':_0x348c41(0x3be),'data':_0x1d4fe7}),this[_0x348c41(0x1cb)][_0x348c41(0x429)](new _0x3d21fe(_0x3122ff)['id'],!0x1),this['_collaborationSessionService'][_0x348c41(0x1bc)](_0x3122ff);});};_0x4b9f39(this['_univerInstanceService'][_0x2e83c8(0x2c4)](_0x1f1b4f[_0x2e83c8(0x33c)]),this[_0x2e83c8(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f['UNIVER_DOC']),this[_0x2e83c8(0x449)][_0x2e83c8(0x2c4)](_0x1f1b4f[_0x2e83c8(0x426)]),this[_0x2e83c8(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f[_0x2e83c8(0x3fd)]))[_0x2e83c8(0x264)](_0x37612c(_0x42544e=>_0x42544e[_0x2e83c8(0x1be)][_0x2e83c8(0x1da)]()),_0x519396(_0xd07265=>!_0x238b00(_0xd07265)),_0x42f81a(this['dispose$']))[_0x2e83c8(0x368)](_0x2d0272=>{_0x4778ee(_0x2d0272);});}['_initUnitPermissionChange'](){const _0x436c8a=_0x3bc572;let _0x3b74e4=async _0x323bdf=>{const _0x58530f=_0xe493;let _0x99b5a0=await this[_0x58530f(0x225)][_0x58530f(0x252)](_0x323bdf),_0x5167de=this[_0x58530f(0x44d)][_0x58530f(0x1e3)](_0x265733);_0x99b5a0[_0x58530f(0x396)][_0x58530f(0x264)](_0x519396(_0x3340d3=>_0x3340d3[_0x58530f(0x313)]===_0x7dd1cb[_0x58530f(0x303)]),_0x42f81a(this[_0x58530f(0x3d6)]))['subscribe'](_0x3c6930=>{const _0x380789=_0x58530f;let {objectId:_0x17d682}=_0x3c6930[_0x380789(0x2c6)];_0x17d682===_0x323bdf?_0x5167de['initWorkbookPermissionChange'](_0x323bdf):_0x5167de[_0x380789(0x1f3)](_0x323bdf,_0x17d682);});};_0x4b9f39(this[_0x436c8a(0x449)]['getTypeOfUnitAdded$'](_0x1f1b4f[_0x436c8a(0x33c)]))[_0x436c8a(0x264)](_0x37612c(_0x16f89c=>_0x16f89c[_0x436c8a(0x1be)]['getUnitId']()),_0x519396(_0xdc8ea=>!_0x238b00(_0xdc8ea)),_0x42f81a(this[_0x436c8a(0x3d6)]))[_0x436c8a(0x368)](_0x324245=>{_0x3b74e4(_0x324245);});}};Zn=H([V(0x0,_0x167908(_0x35e9e2)),V(0x1,_0x6f9bb2),V(0x2,_0x3058fc),V(0x3,_0x167908(Nn)),V(0x4,_0x167908(B))],Zn);let Qn=class{constructor(_0x212c3f,_0xcc7cf3){const _0x4c37ce=_0x3bc572;this[_0x4c37ce(0x1c9)]=_0x212c3f,this[_0x4c37ce(0x3b7)]=_0xcc7cf3;}async['getUnitOnRev'](_0x49e016,_0x481721){const _0x9f8487=_0x3bc572;var _0x1fec1e;let {unitID:_0x3b859f,type:_0x34ccbc,revision:_0x5ae4cd=0x0}=_0x481721,_0x4e7c67=this[_0x9f8487(0x281)]()+'/'+_0x34ccbc+_0x9f8487(0x44c)+_0x3b859f+_0x9f8487(0x3d1)+_0x5ae4cd,_0x47f1f5=(await this[_0x9f8487(0x3b7)][_0x9f8487(0x1e3)](_0x4e7c67))[_0x9f8487(0x236)],_0x5ab13b=(_0x1fec1e=_0x47f1f5[_0x9f8487(0x44b)])==null?void 0x0:_0x1fec1e[_0x9f8487(0x1ea)];if(_0x5ab13b){let _0x232fe8=_0x5ab13b==null?void 0x0:_0x5ab13b['originalMeta'];_0x5ab13b[_0x9f8487(0x2f2)]=_0x204083[_0x9f8487(0x37d)](_0x430315(_0x232fe8)),Object[_0x9f8487(0x39b)](_0x5ab13b['sheets'])['forEach'](([,_0x219c26])=>{const _0x1eca97=_0x9f8487;let _0x5f9e16=_0x219c26['originalMeta'];_0x219c26[_0x1eca97(0x2f2)]=_0x204083[_0x1eca97(0x37d)](_0x430315(_0x5f9e16));});}return _0x47f1f5;}async['getSheetBlock'](_0x56b31e,_0x3d47ac){const _0x1ab6da=_0x3bc572;let {unitID:_0x51b1d4,type:_0x328ee7,blockID:_0x38f639}=_0x3d47ac,_0x3e00e5=this[_0x1ab6da(0x2ed)]()+'/'+_0x328ee7+_0x1ab6da(0x44c)+_0x51b1d4+'/block/'+_0x38f639;return(await this[_0x1ab6da(0x3b7)][_0x1ab6da(0x1e3)](_0x3e00e5))['body'];}async[_0x3bc572(0x28b)](_0x713725,_0x26ea5e){const _0x500a7f=_0x3bc572;let {unitID:_0x4f9ded,type:_0x22d373,blockID:_0x2a54c2}=_0x26ea5e,_0x1ffdb3=this[_0x500a7f(0x2ed)]()+_0x500a7f(0x388)+_0x22d373+'/unit/'+_0x4f9ded+'/block/'+_0x2a54c2;return(await this[_0x500a7f(0x3b7)][_0x500a7f(0x1e3)](_0x1ffdb3))[_0x500a7f(0x236)];}async['fetchMissingChangesets'](_0x6ecbfe,_0x38c06a){const _0x521374=_0x3bc572;let {unitID:_0x40ae29,type:_0x203a32,from:_0x23f95b,to:_0x277d1a}=_0x38c06a,_0x1bf8c8=this['_getAPIPrefix']()+'/'+_0x203a32+'/unit/'+_0x40ae29+'/fetchmissing?from='+_0x23f95b+_0x521374(0x33f)+_0x277d1a;return(await this[_0x521374(0x3b7)]['get'](_0x1bf8c8))[_0x521374(0x236)];}[_0x3bc572(0x281)](){const _0x4a597f=_0x3bc572;var _0x37c74a;return(_0x37c74a=this[_0x4a597f(0x1c9)][_0x4a597f(0x306)](_0x4a597f(0x1ca)))==null?this[_0x4a597f(0x2ed)]():_0x37c74a;}['_getAPIPrefix'](){const _0x9ab555=_0x3bc572;var _0x226e4f;let _0x29cf0b=this[_0x9ab555(0x1c9)][_0x9ab555(0x306)](R);return(_0x226e4f=_0x29cf0b==null?void 0x0:_0x29cf0b['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x226e4f;}async['getResourcesRequest'](_0x2f62fd,_0x764619){const _0x2f3982=_0x3bc572;let _0x5d131d=_0x2f3982(0x244)+_0x764619[_0x2f3982(0x2f0)]+_0x2f3982(0x44c)+_0x764619[_0x2f3982(0x399)]+_0x2f3982(0x20f);return(await this['_httpService'][_0x2f3982(0x1e3)](_0x5d131d,{'params':{'resourceId':JSON[_0x2f3982(0x3c3)](_0x764619['resourceIDs'])}}))['body'];}[_0x3bc572(0x437)](){const _0x5cfaef=_0x3bc572;throw Error(_0x5cfaef(0x1c7));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3bc572(0x364)](){const _0x225ebf=_0x3bc572;throw Error(_0x225ebf(0x1c7));}[_0x3bc572(0x450)](){const _0x9bb25d=_0x3bc572;throw Error(_0x9bb25d(0x1c7));}[_0x3bc572(0x31c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x335040=_0x3bc572;throw Error(_0x335040(0x1c7));}};Qn=H([V(0x0,_0xa7a1b6),V(0x1,_0x167908(_0x6a3f01))],Qn);let $n=class extends _0x150656{constructor(_0x3fd4c9,_0xf46001,_0xfb68f3,_0x5f375a,_0x21e54c){const _0x533d27=_0x3bc572;super(_0x3fd4c9,_0xf46001,_0xfb68f3),this[_0x533d27(0x284)]=_0x5f375a,this['_logService']=_0x21e54c;}[_0x3bc572(0x41b)](_0xcafba6,_0x3ccdc2){const _0x42aa4e=_0x3bc572;let _0x251e75=this[_0x42aa4e(0x415)](_0xcafba6);if(_0x251e75)try{let _0x38bfac=this['_transformStack'](_0x251e75,_0x3ccdc2);this[_0x42aa4e(0x416)](_0xcafba6,_0x38bfac);}catch(_0x2ff7e3){this[_0x42aa4e(0x1c1)]['error']('[CollaborationUndoRedoService]',_0x2ff7e3),this[_0x42aa4e(0x27b)](_0xcafba6);}let _0x4af311=this['_getRedoStack'](_0xcafba6);if(_0x4af311)try{let _0x31254f=this['_transformStack'](_0x4af311,_0x3ccdc2);this[_0x42aa4e(0x299)](_0xcafba6,_0x31254f);}catch(_0x538450){this[_0x42aa4e(0x1c1)][_0x42aa4e(0x298)](_0x538450),this['_clearRedo'](_0xcafba6);}}['_clearUndo'](_0x3ad802){const _0x173890=_0x3bc572;let _0x3a2cc8=this[_0x173890(0x415)](_0x3ad802);_0x3a2cc8&&(_0x3a2cc8['length']=0x0,this[_0x173890(0x440)]());}[_0x3bc572(0x3a2)](_0x3effde){const _0x13cbd0=_0x3bc572;let _0x2cd857=this[_0x13cbd0(0x406)](_0x3effde);_0x2cd857&&(_0x2cd857['length']=0x0,this[_0x13cbd0(0x440)]());}[_0x3bc572(0x416)](_0x11f118,_0x59d576){const _0x3517e8=_0x3bc572;this[_0x3517e8(0x400)][_0x3517e8(0x405)](_0x11f118,_0x59d576),this['_updateStatus']();}[_0x3bc572(0x299)](_0x30166d,_0x6fc35e){const _0x1835f1=_0x3bc572;this[_0x1835f1(0x271)]['set'](_0x30166d,_0x6fc35e),this[_0x1835f1(0x440)]();}[_0x3bc572(0x43e)](_0x34b78a,_0x54e5e4){const _0xe07b4a=_0x3bc572;let _0x4965d8=[],_0x2ac6a3=_0x54e5e4,_0x4c86b7=_0x54e5e4;for(let _0x429ffd=_0x34b78a[_0xe07b4a(0x28d)]-0x1;_0x429ffd>=0x0;_0x429ffd--){let {unitID:_0x5d6a05,undoMutations:_0x43ddad,redoMutations:_0x495478}=_0x34b78a[_0x429ffd],_0x5c8427=this[_0xe07b4a(0x284)]['transformMutationsWithChangeset'](_0x2ac6a3,_0x43ddad),_0x29f617=this[_0xe07b4a(0x284)]['transformMutationsWithChangeset'](_0x4c86b7,_0x495478);if(_0x33bd16(_0x5c8427)||_0x33bd16(_0x29f617)){this[_0xe07b4a(0x1c1)][_0xe07b4a(0x298)](_0xe07b4a(0x371),_0xe07b4a(0x393),_0x5c8427,_0x29f617);break;}_0x2ac6a3=_0x5c8427[_0xe07b4a(0x435)],_0x4c86b7=_0x29f617[_0xe07b4a(0x435)],_0x4965d8[_0xe07b4a(0x250)]({'unitID':_0x5d6a05,'undoMutations':_0x5c8427[_0xe07b4a(0x296)],'redoMutations':_0x29f617[_0xe07b4a(0x296)]});}return _0x4965d8[_0xe07b4a(0x3f5)]();}};$n=H([V(0x0,_0x6f9bb2),V(0x1,_0x1f135e),V(0x2,_0x5e05d4),V(0x3,_0x29bc05),V(0x4,_0x2e09c7)],$n);let er=class extends _0x9c02e4{constructor(_0x2fe5fc=ft,_0x3c061c,_0x296317,_0x4493d6){const _0xc44ebb=_0x3bc572;super(),this[_0xc44ebb(0x1dc)]=_0x2fe5fc,this[_0xc44ebb(0x1c1)]=_0x3c061c,this[_0xc44ebb(0x44d)]=_0x296317,this[_0xc44ebb(0x1c9)]=_0x4493d6;let {..._0x47a3fa}=_0x147984({},ft,this[_0xc44ebb(0x1dc)]);if(!_0x47a3fa[_0xc44ebb(0x428)])throw Error(_0xc44ebb(0x360));this[_0xc44ebb(0x1dc)]=_0x47a3fa,this[_0xc44ebb(0x1c9)][_0xc44ebb(0x25a)](R,_0x47a3fa);}[_0x3bc572(0x43d)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x3bc572(0x3b5)](){const _0x266a3b=_0x3bc572;var _0x2341c4,_0x1aa018;this[_0x266a3b(0x44d)]['has'](_0x51c17f)&&this[_0x266a3b(0x1c1)][_0x266a3b(0x298)](_0x266a3b(0x3c5),_0x266a3b(0x1ad));let _0x2a3662=_0x4f5c21([[_0x51c17f,{'useClass':$n}],[An,{'useValue':jn()}],[Nn],[kt],[Gt],[Vn],[qn],[Ot],[Zn],[B],[Jn],[Dn,{'useClass':this[_0x266a3b(0x1dc)][_0x266a3b(0x428)]}],[_0xe1e81f,{'useClass':Qn}],[_0x27e034,{'useClass':Hn}],[_0x4c34f1,{'useClass':Yn}],[Rn,{'useClass':zn}],[_0x1a6754,{'useClass':Xn}],[Pn],[Ln]],(_0x2341c4=this[_0x266a3b(0x1dc)])==null?void 0x0:_0x2341c4[_0x266a3b(0x219)]);if(!((_0x1aa018=this['_config'])!=null&&_0x1aa018[_0x266a3b(0x210)])){let _0x5ce356=_0x2a3662[_0x266a3b(0x377)](([_0x4df436])=>_0x4df436===W);_0x5ce356!==-0x1&&_0x2a3662[_0x266a3b(0x304)](_0x5ce356,0x1);}_0x2ba51f(this[_0x266a3b(0x44d)],_0x2a3662);}['_initDependencies'](){const _0x11c8f7=_0x3bc572;var _0x42d99b,_0x1e28b1;if(this[_0x11c8f7(0x44d)][_0x11c8f7(0x1e3)](_0x6a3f01)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x28f61d({'maxParallel':0x6})}),!((_0x42d99b=this[_0x11c8f7(0x1dc)])!=null&&_0x42d99b['enableOfflineEditing'])){var _0x163b90;(_0x163b90=this[_0x11c8f7(0x44d)][_0x11c8f7(0x1e3)](U,_0x1c058a[_0x11c8f7(0x1ed)]))==null||_0x163b90[_0x11c8f7(0x1bb)]();}(_0x1e28b1=this[_0x11c8f7(0x1dc)])!=null&&_0x1e28b1[_0x11c8f7(0x432)]&&_0x1d20c8(this[_0x11c8f7(0x44d)],[[Vn]]),_0x1d20c8(this[_0x11c8f7(0x44d)],[[qn],[Pn],[Zn]]);}};z(er,_0x3bc572(0x24c),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),z(er,'packageName',Fn),z(er,_0x3bc572(0x23c),In),er=H([_0x30d4af(_0x442bd0,_0x21d398,_0x901b3),V(0x1,_0x2e09c7),V(0x2,_0x167908(_0x35e9e2)),V(0x3,_0xa7a1b6)],er);export{Hn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,yn as BaseCollaborationEntity,Sn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,zn as CollaborationAttachmentIoService,Pn as CollaborationController,$ as CollaborationEntity,Yn as CollaborationImageIoService,Ht as CollaborationSession,Nn as CollaborationSessionService,kn as CollaborationSocketService,mn as CollaborationStatus,Dt as CollaborationUIEventId,B as CollaborationUIEventService,$n as CollaborativeUndoRedoService,Ot as CommentService,X as ConflictState,pt as DEFAULT_COLLAB_WEB_SOCKET_URL,St as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,mt as DEFAULT_WS_SESSION_TICKET_URL,Jn as DataLoaderService,vn as DocCollaborationEntity,Q as FetchingMissState,ht as HEARTBEAT_INTERVAL_KEY,gt as HEARTBEAT_TIMEOUT_KEY,Rn as IAttachmentIoService,An as ICollaborationClientAdapterService,Dn as ICollaborationSocketService,U as ILocalCacheService,wn as INetworkConditionService,W as ISingleActiveUnitService,bt as LOCAL_CACHE_INTERVAL,yt as LOCAL_CACHE_INTERVAL_KEY,kt as MemberService,Xn as MentionIoHttpService,Z as OfflineState,Cn as PdfCollaborationEntity,q as PendingState,xt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,vt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,bn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,xn as SlideCollaborationEntity,Qn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,er as UniverCollaborationClientPlugin,jn as createUniverCollaborationAdapter,Tn as deserializeToCombResponse,Ut as getLocalCacheKey,En as serializeCombRequest};
|
|
1
|
+
const _0x1f5521=_0x2b9e;(function(_0x2d550b,_0x7ed453){const _0x18992e=_0x2b9e,_0x1a9ca9=_0x2d550b();while(!![]){try{const _0x246aff=-parseInt(_0x18992e(0x35e))/0x1*(parseInt(_0x18992e(0x20b))/0x2)+parseInt(_0x18992e(0x1a2))/0x3+parseInt(_0x18992e(0x378))/0x4+parseInt(_0x18992e(0x291))/0x5+-parseInt(_0x18992e(0x27f))/0x6*(-parseInt(_0x18992e(0x332))/0x7)+-parseInt(_0x18992e(0x3b8))/0x8+parseInt(_0x18992e(0x3bc))/0x9;if(_0x246aff===_0x7ed453)break;else _0x1a9ca9['push'](_0x1a9ca9['shift']());}catch(_0x44e517){_0x1a9ca9['push'](_0x1a9ca9['shift']());}}}(_0x1cc8,0x65ab7));import{CollaborationEvent as _0x28cc07,CompressMutationService as _0x34fb2b,EmptyMutationInfo as _0x6877be,ISnapshotServerService as _0x223810,ITransformService as _0x30bd2c,RevisionService as _0x21335b,SnapshotService as _0xa106a3,UniverCollaborationPlugin as _0x3886aa,b64DecodeUnicode as _0x52c95b,isTransformChangesetsSuccess as _0x32b26c,isTransformMutationsWithChangesetFailure as _0xc4ea4b,isTransformMutationsWithChangesetSuccess as _0x71163b,mapDocumentTypeToUniverInstanceType as _0x242325,parseChangesetToProtocol as _0x53b382,parseProtocolChangeset as _0x50c9bb,textEncoder as _0x23efb2,uuidv4 as _0xf5037d}from'@univerjs-pro/collaboration';import{CommandType as _0x3ac237,DependentOn as _0x1a8c7d,Disposable as _0x13fb6a,DisposableCollection as _0x3f655f,IAuthzIoService as _0x389ebf,ICommandService as _0x24738d,IConfigService as _0x123a79,IContextService as _0x3d76ae,IImageIoService as _0x17ef7f,ILogService as _0x3849f9,IMentionIOService as _0x5ec686,IPermissionService as _0x51823a,IUndoRedoService as _0x143b1e,IUniverInstanceService as _0x238a9e,ImageSourceType as _0x36d131,ImageUploadStatusType as _0x5af30f,Inject as _0x32c7b6,Injector as _0xd2295f,JSONX as _0x4c7fe5,LocalUndoRedoService as _0xa29cff,LocaleService as _0xed8942,MentionType as _0xf50ac4,Optional as _0x100ce1,Plugin as _0x2c2938,Quantity as _0x5262c6,Rectangle as _0x224ddf,RxDisposable as _0x2fb3e4,Tools as _0x36c319,UniverInstanceType as _0x4f4a88,UserManagerService as _0x522a20,Workbook as _0x1005dd,createIdentifier as _0x382d48,generateRandomId as _0x3b00a4,isInternalEditorID as _0x395bd6,merge as _0x5b8bc5,mergeOverrideWithDependencies as _0x410d5e,registerDependencies as _0x3eca33,resolveWithBasePath as _0x3de6a3,sequenceExecute as _0x1f41b0,toDisposable as _0x1e0938,touchDependencies as _0x1c608a}from'@univerjs/core';function _0x2b9e(_0x222f0e,_0x5cfa4e){_0x222f0e=_0x222f0e-0x13e;const _0x1cc86d=_0x1cc8();let _0x2b9ee1=_0x1cc86d[_0x222f0e];return _0x2b9ee1;}import{DocStateChangeManagerService as _0x3382a8,RichTextEditingMutation as _0x47e1e8}from'@univerjs/docs';import{InsertSheetMutation as _0xe7917a,SetSelectionsOperation as _0x2d0b65,SheetPermissionInitController as _0x2ddc32,SheetsSelectionsService as _0x5859a2,WorkbookEditablePermission as _0x57781e}from'@univerjs/sheets';import{BehaviorSubject as _0x21afa9,ReplaySubject as _0x16703b,Subject as _0x548400,concatMap as _0x1b7252,firstValueFrom as _0x199bcd,map as _0x185b9d,merge as _0x48bcdd,of as _0x195754,shareReplay as _0x4f20dd,take as _0x14e08c,takeUntil as _0x10e0d6}from'rxjs';import{CmdRspCode as _0x2486d1,CombCmd as _0x45aed2,ErrorCode as _0x5caf42,FileSource as _0x52302f}from'@univerjs/protocol';import{ITelemetryService as _0x25a71a}from'@univerjs/telemetry';import{delay as _0x42710a,filter as _0x3dc9b5,map as _0x55a320,take as _0x12e312,takeUntil as _0x530203}from'rxjs/operators';import{AddSlidePageMutation as _0x2ee980,EnsureSlideMasterPageMutation as _0x4b2065,MoveSlidePageMutation as _0x223877,RemoveSlidePageMutation as _0x1e507d}from'@univerjs-pro/slides';import{HTTPRequest as _0x3570bd,HTTPService as _0x314f58,ISocketService as _0x1fbe1f,MergeInterceptorFactory as _0x113520,ThresholdInterceptorFactory as _0x12c387,UniverNetworkPlugin as _0x32578b}from'@univerjs/network';import{UniverLicensePlugin as _0x267699,getGlobalObject as _0x122e45}from'@univerjs-pro/license';import{cbc as _0x3a25ba}from'@noble/ciphers/aes.js';import{concatBytes as _0x27bfb1,randomBytes as _0x585ea6,utf8ToBytes as _0x499a8d}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x10020d,getDrawingImageAllowSize as _0x57aa8f}from'@univerjs/drawing';const R=_0x1f5521(0x203),ft={},pt=_0x1f5521(0x1e7),mt=_0x1f5521(0x1b7),ht=_0x1f5521(0x305),gt='HEARTBEAT_TIMEOUT',_t=_0x1f5521(0x2a2),vt=_0x1f5521(0x354),yt=0x3e8,bt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',xt=_0x1f5521(0x3b1);function St(_0x575a2a){const _0xc418fb=_0x1f5521;return JSON['stringify'](_0x575a2a)[_0xc418fb(0x316)];}function Ct(_0x5e17ea){'@babel/helpers - typeof';const _0xd001d8=_0x1f5521;return Ct=typeof Symbol==_0xd001d8(0x167)&&typeof Symbol[_0xd001d8(0x3ad)]=='symbol'?function(_0x52d4f7){return typeof _0x52d4f7;}:function(_0x278990){const _0x91e6ab=_0xd001d8;return _0x278990&&typeof Symbol=='function'&&_0x278990[_0x91e6ab(0x28e)]===Symbol&&_0x278990!==Symbol['prototype']?_0x91e6ab(0x397):typeof _0x278990;},Ct(_0x5e17ea);}function wt(_0x31ce4e,_0x477f21){const _0x11edd0=_0x1f5521;if(Ct(_0x31ce4e)!='object'||!_0x31ce4e)return _0x31ce4e;var _0x16bb4b=_0x31ce4e[Symbol['toPrimitive']];if(_0x16bb4b!==void 0x0){var _0x34b8ba=_0x16bb4b[_0x11edd0(0x359)](_0x31ce4e,_0x477f21||'default');if(Ct(_0x34b8ba)!=_0x11edd0(0x313))return _0x34b8ba;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x477f21===_0x11edd0(0x239)?String:Number)(_0x31ce4e);}function Tt(_0x3b1528){const _0x54a6e3=_0x1f5521;var _0x2359f2=wt(_0x3b1528,_0x54a6e3(0x239));return Ct(_0x2359f2)=='symbol'?_0x2359f2:_0x2359f2+'';}function z(_0x56f508,_0x4124b8,_0x5f175f){const _0x2e702f=_0x1f5521;return(_0x4124b8=Tt(_0x4124b8))in _0x56f508?Object[_0x2e702f(0x37b)](_0x56f508,_0x4124b8,{'value':_0x5f175f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x56f508[_0x4124b8]=_0x5f175f,_0x56f508;}let Et=function(_0x5bea01){const _0x3c052e=_0x1f5521;return _0x5bea01[_0x3c052e(0x2af)]=_0x3c052e(0x2af),_0x5bea01[_0x3c052e(0x3af)]='PERMISSION_DENIED',_0x5bea01[_0x3c052e(0x32d)]='CONFLICT',_0x5bea01['CLOSE_ROOM']=_0x3c052e(0x338),_0x5bea01['JOIN_ROOM_FAILED']=_0x3c052e(0x2d2),_0x5bea01[_0x3c052e(0x2a0)]=_0x3c052e(0x2a0),_0x5bea01['SOCKET_FAILED']=_0x3c052e(0x20f),_0x5bea01[_0x3c052e(0x28b)]=_0x3c052e(0x28b),_0x5bea01;}({});var B=class{constructor(){const _0x508e71=_0x1f5521;z(this,_0x508e71(0x39f),new _0x548400()),z(this,_0x508e71(0x3d5),this[_0x508e71(0x39f)][_0x508e71(0x37a)]());}[_0x1f5521(0x205)](_0x4297b6){const _0x2437c2=_0x1f5521;this['_event$'][_0x2437c2(0x1ae)](_0x4297b6);}},Dt=class{constructor(){const _0x303d29=_0x1f5521;z(this,_0x303d29(0x296),new _0x548400()),z(this,'commentUpdate$',this[_0x303d29(0x296)]['asObservable']());}[_0x1f5521(0x256)](_0x2d148e){const _0x442e5c=_0x1f5521;this[_0x442e5c(0x296)]['next'](_0x2d148e);}};function V(_0x15713d,_0x20ee82){return function(_0x47a6b6,_0xdf7322){_0x20ee82(_0x47a6b6,_0xdf7322,_0x15713d);};}function H(_0x2ee748,_0x46c45b,_0x2c61a7,_0x578586){const _0x39e622=_0x1f5521;var _0x1d7a98=arguments[_0x39e622(0x316)],_0x39ac98=_0x1d7a98<0x3?_0x46c45b:_0x578586===null?_0x578586=Object[_0x39e622(0x14a)](_0x46c45b,_0x2c61a7):_0x578586,_0x3526db;if(typeof Reflect==_0x39e622(0x313)&&typeof Reflect[_0x39e622(0x29c)]==_0x39e622(0x167))_0x39ac98=Reflect[_0x39e622(0x29c)](_0x2ee748,_0x46c45b,_0x2c61a7,_0x578586);else{for(var _0x51b1d7=_0x2ee748['length']-0x1;_0x51b1d7>=0x0;_0x51b1d7--)(_0x3526db=_0x2ee748[_0x51b1d7])&&(_0x39ac98=(_0x1d7a98<0x3?_0x3526db(_0x39ac98):_0x1d7a98>0x3?_0x3526db(_0x46c45b,_0x2c61a7,_0x39ac98):_0x3526db(_0x46c45b,_0x2c61a7))||_0x39ac98);}return _0x1d7a98>0x3&&_0x39ac98&&Object[_0x39e622(0x37b)](_0x46c45b,_0x2c61a7,_0x39ac98),_0x39ac98;}let Ot=class extends _0x13fb6a{constructor(_0x55d843){const _0x7e437d=_0x1f5521;super(),this['_univerInstanceService']=_0x55d843,z(this,_0x7e437d(0x396),new Map()),z(this,_0x7e437d(0x176),new _0x548400()),this[_0x7e437d(0x34e)](_0x48bcdd(this['_univerInstanceService'][_0x7e437d(0x1fe)](_0x4f4a88[_0x7e437d(0x399)])[_0x7e437d(0x220)](_0x55a320(_0x83b2a6=>_0x83b2a6[_0x7e437d(0x3d7)]())),this[_0x7e437d(0x329)][_0x7e437d(0x1fe)](_0x4f4a88[_0x7e437d(0x33c)])[_0x7e437d(0x220)](_0x55a320(_0x5a7229=>_0x5a7229[_0x7e437d(0x3d7)]())),this[_0x7e437d(0x329)][_0x7e437d(0x1fe)](_0x4f4a88['UNIVER_BOARD'])['pipe'](_0x55a320(_0x285f4e=>_0x285f4e['getUnitId']())),this[_0x7e437d(0x329)][_0x7e437d(0x1fe)](_0x4f4a88[_0x7e437d(0x337)])[_0x7e437d(0x220)](_0x55a320(_0x41209e=>_0x41209e[_0x7e437d(0x3d7)]())))[_0x7e437d(0x2dc)](_0x386507=>this[_0x7e437d(0x1db)](_0x386507)));}[_0x1f5521(0x35c)](_0x152990){const _0x57d263=_0x1f5521;return this[_0x57d263(0x396)][_0x57d263(0x2de)](_0x152990)?_0x195754(this[_0x57d263(0x396)]['get'](_0x152990)):this[_0x57d263(0x176)]['pipe'](_0x55a320(_0x599e53=>{const _0x20e5b9=_0x57d263;if(_0x599e53===_0x152990)return this[_0x20e5b9(0x396)][_0x20e5b9(0x20c)](_0x599e53);}));}[_0x1f5521(0x3a0)](_0x413f51,_0x15dfe2){const _0x11d96d=_0x1f5521;let _0x7f341b=this[_0x11d96d(0x396)]['get'](_0x413f51);_0x7f341b||(_0x7f341b=new kt(),this[_0x11d96d(0x396)][_0x11d96d(0x16f)](_0x413f51,_0x7f341b),this['_roomCreated$'][_0x11d96d(0x1ae)](_0x413f51)),_0x7f341b[_0x11d96d(0x3a0)](_0x15dfe2);}['removeMember'](_0x4b5ae1,_0x68b8b){const _0x2bc5bb=_0x1f5521;let _0x134390=this[_0x2bc5bb(0x396)][_0x2bc5bb(0x20c)](_0x4b5ae1);_0x134390&&_0x134390[_0x2bc5bb(0x21d)](_0x68b8b);}['getRoom'](_0x2c8144){const _0x53e546=_0x1f5521;return this[_0x53e546(0x396)][_0x53e546(0x20c)](_0x2c8144);}['getMember'](_0x4bd4e1,_0x56c1fb){const _0x4c183e=_0x1f5521;let _0x1dd6fe=this[_0x4c183e(0x396)][_0x4c183e(0x20c)](_0x4bd4e1);if(_0x1dd6fe)return _0x1dd6fe[_0x4c183e(0x35f)](_0x56c1fb);}[_0x1f5521(0x1db)](_0x17a5b5){const _0x28315a=_0x1f5521;let _0x5b37d8=this[_0x28315a(0x396)][_0x28315a(0x20c)](_0x17a5b5);_0x5b37d8&&(_0x5b37d8[_0x28315a(0x1ee)](),this[_0x28315a(0x396)]['delete'](_0x17a5b5));}[_0x1f5521(0x1ee)](){const _0x5e7982=_0x1f5521;this[_0x5e7982(0x396)][_0x5e7982(0x154)](_0x48252a=>_0x48252a['dispose']()),this[_0x5e7982(0x396)][_0x5e7982(0x2bd)](),this[_0x5e7982(0x176)][_0x5e7982(0x185)]();}};Ot=H([V(0x0,_0x238a9e)],Ot);var kt=class extends _0x13fb6a{constructor(..._0xc1fdec){const _0x3a735f=_0x1f5521;super(..._0xc1fdec),z(this,_0x3a735f(0x362),new Map()),z(this,_0x3a735f(0x1e2),new _0x21afa9(this[_0x3a735f(0x362)])),z(this,_0x3a735f(0x143),this[_0x3a735f(0x1e2)][_0x3a735f(0x37a)]());}['dispose'](){const _0x565242=_0x1f5521;this[_0x565242(0x362)][_0x565242(0x2bd)](),this[_0x565242(0x1e2)][_0x565242(0x185)]();}[_0x1f5521(0x3a0)](_0x2d76f7){const _0x3c2987=_0x1f5521;this[_0x3c2987(0x362)][_0x3c2987(0x16f)](_0x2d76f7[_0x3c2987(0x235)],_0x2d76f7),this['_emitMembers']();}['removeMember'](_0x331b47){const _0x37d19d=_0x1f5521;this[_0x37d19d(0x362)][_0x37d19d(0x204)](_0x331b47),this[_0x37d19d(0x315)]();}[_0x1f5521(0x35f)](_0x4728f4){const _0x2d5a02=_0x1f5521;return this['_members'][_0x2d5a02(0x20c)](_0x4728f4);}[_0x1f5521(0x148)](){const _0x5b5136=_0x1f5521;return Array['from'](this[_0x5b5136(0x362)]['values']());}[_0x1f5521(0x315)](){const _0x1e554f=_0x1f5521;this[_0x1e554f(0x1e2)][_0x1e554f(0x1ae)](this[_0x1e554f(0x362)]);}};function At(_0x73b270,_0x12c97c){const _0x134ec0=_0x1f5521;if(Mt(_0x73b270))return _0x12c97c;if(_0x12c97c[_0x134ec0(0x1b1)]===_0x28cc07[_0x134ec0(0x168)]){let _0x5683eb=Lt(_0x73b270),_0x43d8fe=_0x12c97c;return{..._0x43d8fe,'data':{..._0x43d8fe[_0x134ec0(0x2cc)],'unitID':_0x73b270['target'][_0x134ec0(0x2c4)],'unitType':_0x73b270[_0x134ec0(0x1ef)]['unitType']??_0x43d8fe[_0x134ec0(0x2cc)][_0x134ec0(0x1e6)],'changeset':_0x5683eb[_0x134ec0(0x343)](_0x43d8fe[_0x134ec0(0x2cc)][_0x134ec0(0x361)],Rt(_0x73b270))}};}if(_0x12c97c[_0x134ec0(0x1b1)]===_0x28cc07['FETCH_MISSING']){let _0x142063=_0x12c97c;return{..._0x142063,'data':{..._0x142063[_0x134ec0(0x2cc)],'unitID':_0x73b270[_0x134ec0(0x1ef)]['unitId'],'unitType':_0x73b270[_0x134ec0(0x1ef)][_0x134ec0(0x1e6)]??_0x142063[_0x134ec0(0x2cc)][_0x134ec0(0x1e6)]}};}return _0x12c97c;}function jt(_0x28d57d,_0x5e773a){const _0x10979a=_0x1f5521;if(Mt(_0x28d57d))return[_0x5e773a];switch(_0x5e773a[_0x10979a(0x1b1)]){case _0x28cc07[_0x10979a(0x1ff)]:return[Nt(_0x28d57d,_0x5e773a)];case _0x28cc07[_0x10979a(0x3a4)]:return[Ft(_0x28d57d,_0x5e773a)];case _0x28cc07[_0x10979a(0x14b)]:return[Pt(_0x28d57d,_0x5e773a)];default:return[_0x5e773a];}}function Mt(_0x2e6289){const _0xd6497f=_0x1f5521;return _0x2e6289[_0xd6497f(0x1ef)][_0xd6497f(0x1b8)]==null&&_0x2e6289[_0xd6497f(0x1ef)]['unitId']===_0x2e6289[_0xd6497f(0x37d)]&&!_0x2e6289[_0xd6497f(0x361)];}function Nt(_0x5dbc3c,_0x32451d){const _0x2c6717=_0x1f5521;return{..._0x32451d,'data':_0x53b382(It(_0x5dbc3c,_0x50c9bb(_0x32451d[_0x2c6717(0x2cc)])))};}function Pt(_0x248863,_0x17033d){const _0x1da5e8=_0x1f5521;return{..._0x17033d,'data':It(_0x248863,_0x17033d[_0x1da5e8(0x2cc)])};}function Ft(_0x5bd44a,_0x37d892){const _0x1f1d54=_0x1f5521;let _0xca0397=_0x37d892[_0x1f1d54(0x2cc)];return{..._0x37d892,'data':{..._0xca0397,'changesets':_0xca0397[_0x1f1d54(0x25d)][_0x1f1d54(0x2ea)](_0x272938=>_0x53b382(It(_0x5bd44a,_0x50c9bb(_0x272938))))}};}function It(_0x29c42a,_0x4d400b){return Lt(_0x29c42a)['toLocal'](_0x4d400b,Rt(_0x29c42a));}function Lt(_0x10d0e6){const _0x388ee5=_0x1f5521;if(!_0x10d0e6[_0x388ee5(0x361)])throw Error(_0x388ee5(0x1c0));return _0x10d0e6['changeset'];}function Rt(_0x3c8707){const _0x32c64f=_0x1f5521;return{'localUnitId':_0x3c8707[_0x32c64f(0x37d)],'unitType':_0x3c8707['unitType'],'target':_0x3c8707['target']};}let zt=function(_0x1147fa){const _0x124c3d=_0x1f5521;return _0x1147fa[_0x1147fa[_0x124c3d(0x288)]=0x0]='IDLE',_0x1147fa[_0x1147fa[_0x124c3d(0x1e9)]=0x1]=_0x124c3d(0x1e9),_0x1147fa[_0x1147fa['OFFLINE']=0x2]='OFFLINE',_0x1147fa[_0x1147fa[_0x124c3d(0x33d)]=0x3]='ONLINE',_0x1147fa;}({});const Bt={[_0x2486d1['FAIL']]:_0x1f5521(0x18d),[_0x2486d1[_0x1f5521(0x2e7)]]:'session.room-full',[_0x2486d1[_0x1f5521(0x342)]]:_0x1f5521(0x385),[_0x2486d1[_0x1f5521(0x21f)]]:_0x1f5521(0x28a),[_0x2486d1[_0x1f5521(0x17b)]]:_0x1f5521(0x3d9)};let Vt=class extends _0x2fb3e4{get[_0x1f5521(0x350)](){const _0x317d21=_0x1f5521;return this[_0x317d21(0x39d)][_0x317d21(0x3ca)]();}constructor(_0x42de9,_0x95d6a6,_0x529fd5,_0xafc5e0,_0x1cc5d5,_0x2b7157,_0x38530b,_0x4a8940){const _0x36f18a=_0x1f5521;super(),this[_0x36f18a(0x216)]=_0x42de9,this[_0x36f18a(0x2dd)]=_0x529fd5,this[_0x36f18a(0x2a1)]=_0xafc5e0,this[_0x36f18a(0x37f)]=_0x1cc5d5,this['_commentService']=_0x2b7157,this['_collaborationUIEventService']=_0x38530b,this[_0x36f18a(0x307)]=_0x4a8940,z(this,_0x36f18a(0x39d),new _0x21afa9(0x0)),z(this,_0x36f18a(0x30a),this[_0x36f18a(0x39d)]['asObservable']()),z(this,'_event$',new _0x548400()),z(this,_0x36f18a(0x3d5),this[_0x36f18a(0x39f)][_0x36f18a(0x37a)]()),z(this,'_socket',void 0x0),z(this,'_socketMessageSubscription',void 0x0),z(this,_0x36f18a(0x14f),void 0x0),z(this,_0x36f18a(0x393),!0x1),z(this,_0x36f18a(0x1bc),null),this[_0x36f18a(0x393)]=!!this['_telemetryService'],_0x95d6a6[_0x36f18a(0x220)](_0x10e0d6(this[_0x36f18a(0x201)]))[_0x36f18a(0x2dc)](_0x1548e8=>{const _0x5d9600=_0x36f18a;if(_0x1548e8!==void 0x0){if(this[_0x5d9600(0x1de)]=_0x1548e8,_0x1548e8)this[_0x5d9600(0x335)](_0x1548e8),this[_0x5d9600(0x327)]=_0x1548e8[_0x5d9600(0x1ce)][_0x5d9600(0x2dc)](_0xf64745=>{const _0x352aaf=_0x5d9600;_0xf64745[_0x352aaf(0x294)]===this[_0x352aaf(0x216)][_0x352aaf(0x1ef)]['unitId']&&this[_0x352aaf(0x18a)](_0xf64745);});else{var _0x16d1f3;this[_0x5d9600(0x2c0)](),this[_0x5d9600(0x39d)][_0x5d9600(0x1ae)](0x2),(_0x16d1f3=this['_socketMessageSubscription'])==null||_0x16d1f3['unsubscribe'](),this[_0x5d9600(0x327)]=null;}}});}[_0x1f5521(0x371)](){const _0x4df25c=_0x1f5521;var _0x36c405;return((_0x36c405=this[_0x4df25c(0x1de)])==null?void 0x0:_0x36c405[_0x4df25c(0x235)])??null;}[_0x1f5521(0x1ee)](){const _0x543823=_0x1f5521;super[_0x543823(0x1ee)](),this[_0x543823(0x301)](),this[_0x543823(0x201)][_0x543823(0x1ae)](),this['dispose$'][_0x543823(0x185)]();}[_0x1f5521(0x301)](){const _0x2f80e2=_0x1f5521;var _0x2e8735;this[_0x2f80e2(0x2c0)](),(_0x2e8735=this[_0x2f80e2(0x1de)])==null||_0x2e8735[_0x2f80e2(0x3bb)]({'cmd':_0x45aed2[_0x2f80e2(0x297)],'data':{'roomID':this['_identity'][_0x2f80e2(0x1ef)][_0x2f80e2(0x2c4)]}}),this[_0x2f80e2(0x39f)][_0x2f80e2(0x185)](),this[_0x2f80e2(0x39d)][_0x2f80e2(0x185)]();}['_onCombEvent'](_0x19af50){const _0x140130=_0x1f5521;_0x19af50[_0x140130(0x381)]===_0x45aed2[_0x140130(0x23d)]?this[_0x140130(0x300)](_0x19af50):_0x19af50['cmd']===_0x45aed2[_0x140130(0x146)]&&this[_0x140130(0x325)](_0x19af50);}['_joinRoom'](_0x45bf6b){const _0x19304b=_0x1f5521;this[_0x19304b(0x39d)][_0x19304b(0x1ae)](0x1),_0x45bf6b['send']({'cmd':_0x45aed2[_0x19304b(0x23d)],'routeKey':this[_0x19304b(0x216)][_0x19304b(0x1ef)][_0x19304b(0x2c4)],'routeType':'','data':{'rooms':[{'roomID':this[_0x19304b(0x216)][_0x19304b(0x1ef)][_0x19304b(0x2c4)]}]}});}[_0x1f5521(0x300)](_0x226bcd){const _0x215b41=_0x1f5521;var _0x2cae61;if(_0x226bcd[_0x215b41(0x26d)]in Bt){this[_0x215b41(0x3a1)][_0x215b41(0x205)]({'id':_0x215b41(0x2d2),'data':Bt[_0x226bcd[_0x215b41(0x26d)]]}),this[_0x215b41(0x39d)][_0x215b41(0x1ae)](0x2);return;}this['_sessionStatus$'][_0x215b41(0x1ae)](0x3);let _0x105e14=(_0x2cae61=_0x226bcd[_0x215b41(0x2cc)][_0x215b41(0x2f1)][this[_0x215b41(0x216)][_0x215b41(0x1ef)][_0x215b41(0x2c4)]])==null?void 0x0:_0x2cae61[_0x215b41(0x375)];_0x105e14&&_0x105e14[_0x215b41(0x154)](_0x2894a4=>this[_0x215b41(0x37f)][_0x215b41(0x3a0)](this[_0x215b41(0x216)][_0x215b41(0x37d)],_0x2894a4));}[_0x1f5521(0x325)](_0x15dd12){const _0x192214=_0x1f5521;try{let _0x13d0d3=jt(this[_0x192214(0x216)],_0x15dd12['data']);for(let _0x4cc9ba of _0x13d0d3)switch(_0x4cc9ba['eventID']){case _0x28cc07['USERS_ENTER']:this[_0x192214(0x39a)](_0x4cc9ba),this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x1af)]:this[_0x192214(0x208)](_0x4cc9ba),this['_event$'][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x19a)]:case _0x28cc07['CHANGESET_SHOULD_RETRY']:this[_0x192214(0x27a)](),this[_0x192214(0x140)](),this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x164)]:this[_0x192214(0x2dd)][_0x192214(0x2fc)](_0x192214(0x1f2)+JSON[_0x192214(0x212)](_0x4cc9ba)),this['_event$'][_0x192214(0x1ae)](_0x4cc9ba);break;case _0x28cc07[_0x192214(0x2a8)]:this['_commentService'][_0x192214(0x256)](_0x4cc9ba[_0x192214(0x2cc)]),this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);break;default:this[_0x192214(0x39f)][_0x192214(0x1ae)](_0x4cc9ba);}}catch(_0x3c147f){this[_0x192214(0x2dd)][_0x192214(0x2fc)](_0x3c147f,_0x15dd12);}}[_0x1f5521(0x39a)](_0x523f14){const _0x138fdf=_0x1f5521;this[_0x138fdf(0x37f)][_0x138fdf(0x3a0)](this['_identity']['localUnitId'],_0x523f14[_0x138fdf(0x2cc)]);}['_onUserLeave'](_0x361079){const _0x522b4b=_0x1f5521;this[_0x522b4b(0x37f)]['removeMember'](this[_0x522b4b(0x216)][_0x522b4b(0x37d)],_0x361079[_0x522b4b(0x2cc)][_0x522b4b(0x235)]);}async['send'](_0x2e8a81,_0x4c83a3){const _0xadbf00=_0x1f5521;if(this[_0xadbf00(0x350)]!==0x3||!this[_0xadbf00(0x1de)])throw Error(_0xadbf00(0x318));try{let _0x5ea8c2=At(this[_0xadbf00(0x216)],_0x2e8a81);_0x5ea8c2[_0xadbf00(0x1b1)]===_0x28cc07[_0xadbf00(0x168)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0xadbf00(0x376)](_0x5ea8c2)),this['_socket'][_0xadbf00(0x3bb)]({'cmd':_0x45aed2[_0xadbf00(0x2ee)],'routeKey':this[_0xadbf00(0x216)][_0xadbf00(0x1ef)]['unitId'],'routeType':'','data':_0x5ea8c2});}catch(_0xea1ab2){this[_0xadbf00(0x2dd)][_0xadbf00(0x2fc)](_0xea1ab2);}}['_scheduleCollaborationTimeoutTimer'](){const _0x22c3a9=_0x1f5521;this[_0x22c3a9(0x14f)]=setTimeout(()=>{const _0x377773=_0x22c3a9;this[_0x377773(0x14f)]=null,this[_0x377773(0x3a1)][_0x377773(0x205)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this['_configService']['getConfig'](_0x22c3a9(0x3a3))??0x4e20);}[_0x1f5521(0x140)](){const _0x2d299b=_0x1f5521;this[_0x2d299b(0x14f)]&&=(clearTimeout(this[_0x2d299b(0x14f)]),null);}[_0x1f5521(0x376)](_0x242539){const _0x4f9de1=_0x1f5521;if(!this[_0x4f9de1(0x393)])return;let {data:_0x43433a}=_0x242539,{unitID:_0x1678a4,changeset:_0xf1f4ce}=_0x43433a,{mutations:_0x47abe7,type:_0x32621b}=_0xf1f4ce;this[_0x4f9de1(0x1bc)]={'unitId':_0x1678a4,'type':_0x32621b,'startTime':performance[_0x4f9de1(0x30b)](),'stopTime':0x0,'duration':0x0,'size':St(_0x47abe7)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x428fd2=_0x1f5521;if(this[_0x428fd2(0x393)]){if(!this[_0x428fd2(0x1bc)]){this['_logService'][_0x428fd2(0x2fc)](_0x428fd2(0x1fa),_0x428fd2(0x29d));return;}this[_0x428fd2(0x1bc)][_0x428fd2(0x35b)]=performance[_0x428fd2(0x30b)](),this[_0x428fd2(0x1bc)]['duration']=this[_0x428fd2(0x1bc)]['stopTime']-this[_0x428fd2(0x1bc)]['startTime'],this[_0x428fd2(0x307)][_0x428fd2(0x1dc)](_0x428fd2(0x347),this['_telemetryInfo']),this[_0x428fd2(0x1bc)]=null;}}[_0x1f5521(0x2c0)](){const _0x5abc50=_0x1f5521;this[_0x5abc50(0x1bc)]=null;}};Vt=H([V(0x2,_0x3849f9),V(0x3,_0x123a79),V(0x4,_0x32c7b6(Ot)),V(0x5,_0x32c7b6(Dt)),V(0x6,_0x32c7b6(B)),V(0x7,_0x100ce1(_0x25a71a))],Vt);const U=_0x382d48(_0x1f5521(0x3b0));function Ht(_0x1699a7){const _0x19da34=_0x1f5521;return _0x19da34(0x22f)+_0x1699a7;}function Ut(_0x54f1ba){const _0x5aed0a=_0x1f5521;let {unitID:_0x16b717,mutations:_0x27c6e9}=_0x54f1ba;return{'unitId':_0x16b717,'subUnitId':_0x27c6e9[_0x5aed0a(0x316)]>0x0?_0x27c6e9[0x0][_0x5aed0a(0x366)][_0x5aed0a(0x2f2)]:null};}let Wt=class{constructor(_0x2ab1d4,_0x2b6fb1,_0x445adc){const _0x304ec1=_0x1f5521;this[_0x304ec1(0x391)]=_0x2ab1d4,this[_0x304ec1(0x2c5)]=_0x2b6fb1,this[_0x304ec1(0x249)]=_0x445adc;}['transformSelections'](_0x531bb2){const _0x1b5dbe=_0x1f5521;var _0x215a3e,_0x19fde5;let _0x56d4df=this[_0x1b5dbe(0x391)]['get'](_0x5859a2),{unitId:_0x4351d3,subUnitId:_0x379f22}=Ut(_0x531bb2),_0x454e97=_0x56d4df==null?void 0x0:_0x56d4df[_0x1b5dbe(0x2e8)](_0x4351d3)[_0x1b5dbe(0x358)](),_0x225061=(_0x215a3e=this['_instanceService']['getUnit'](_0x4351d3))==null||(_0x215a3e=_0x215a3e[_0x1b5dbe(0x27b)]())==null?void 0x0:_0x215a3e[_0x1b5dbe(0x190)]();if(_0x454e97['length']===0x0||!_0x4351d3||!_0x379f22)return;let _0x4d12f5=[{'id':_0x2d0b65['id'],'params':{'unitId':_0x4351d3,'subUnitId':_0x225061,'selections':_0x36c319['deepClone'](_0x454e97)}}],_0xdbf93a=this[_0x1b5dbe(0x2c5)][_0x1b5dbe(0x222)](_0x531bb2,_0x4d12f5);if(!_0x71163b(_0xdbf93a))throw _0xdbf93a[_0x1b5dbe(0x2fc)];let _0x4737b5=(_0x19fde5=_0xdbf93a[_0x1b5dbe(0x242)][0x0])==null||(_0x19fde5=_0x19fde5[_0x1b5dbe(0x366)])==null?void 0x0:_0x19fde5[_0x1b5dbe(0x31f)];if(Array['isArray'](_0x4737b5)&&_0x4737b5[_0x1b5dbe(0x316)]){if(_0x4737b5[_0x1b5dbe(0x316)]===_0x4d12f5[0x0][_0x1b5dbe(0x366)]['selections'][_0x1b5dbe(0x316)]&&_0x4737b5[_0x1b5dbe(0x15f)]((_0x146fcb,_0x356664)=>_0x224ddf[_0x1b5dbe(0x344)](_0x146fcb[_0x1b5dbe(0x23b)],_0x4d12f5[0x0][_0x1b5dbe(0x366)][_0x1b5dbe(0x31f)][_0x356664][_0x1b5dbe(0x23b)])))return;this['_injector'][_0x1b5dbe(0x20c)](_0x24738d)['executeCommand'](_0x2d0b65['id'],{'unitId':_0x4351d3,'subUnitId':_0x225061,'selections':_0x4737b5});}}};Wt=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x30bd2c),V(0x2,_0x238a9e)],Wt);const W=_0x382d48(_0x1f5521(0x2a4));let Gt=function(_0x19436d){const _0x460f8=_0x1f5521;return _0x19436d[_0x19436d[_0x460f8(0x3cf)]=0x0]=_0x460f8(0x3cf),_0x19436d[_0x19436d['OTHER_CLIENTS_EDITING']=0x1]=_0x460f8(0x211),_0x19436d;}({});function Kt(_0x5c6048){const _0x1f477e=_0x1f5521;var _0x3d3c3a;return!!((_0x3d3c3a=_0x5c6048[_0x1f477e(0x366)])!=null&&_0x3d3c3a[_0x1f477e(0x24b)]);}const qt=new Set([_0xe7917a['id']]),Jt=new Set([_0x2ee980['id'],_0x4b2065['id'],_0x223877['id'],_0x1e507d['id']]);function Yt(_0x4148ec,_0x88917b=qt){const _0x1d6add=_0x1f5521;let _0x30dcb1=[];for(let _0xee4221 of _0x4148ec){if(_0x88917b[_0x1d6add(0x2de)](_0xee4221['id'])){if(_0x30dcb1[_0x1d6add(0x316)]>0x0)break;_0x30dcb1['push'](_0xee4221);break;}if(Kt(_0xee4221)){if(_0x30dcb1[_0x1d6add(0x316)]>0x0)break;_0x30dcb1[_0x1d6add(0x1cf)](_0xee4221);break;}_0x30dcb1['push'](_0xee4221);}return _0x30dcb1;}function Xt(_0x10be5d,_0x4a1287,_0x954e38,_0x2247f7,_0x470f51){const _0x852e=_0x1f5521;let _0x325052=Yt(_0x10be5d),_0x2e0171=_0x470f51[_0x852e(0x15e)](),_0x43e397=(_0x2e0171==null?void 0x0:_0x2e0171['userID'])??_0x852e(0x2e3),_0x442fa0=(_0x2e0171==null?void 0x0:_0x2e0171[_0x852e(0x235)])??'unknown';return{'changeset':{'unitID':_0x4a1287,'type':_0x242325(_0x954e38['getUnitType'](_0x4a1287)),'baseRev':_0x2247f7['getCurrentRevOfUnit'](_0x4a1287),'revision':0x0,'userID':_0x43e397,'memberID':_0x442fa0,'mutations':_0x325052},'pendingMutations':_0x10be5d[_0x852e(0x2ca)](_0x325052[_0x852e(0x316)])};}const Zt=Xt;function Qt(_0x5553f5,_0x3ba9ff,_0x494070,_0x49a65b,_0x2d007d){const _0x432a4d=_0x1f5521;let _0x297269=Yt(_0x5553f5,Jt),_0x979a1a=_0x2d007d[_0x432a4d(0x15e)](),_0x591b34=(_0x979a1a==null?void 0x0:_0x979a1a[_0x432a4d(0x200)])??'unknown',_0x13d693=(_0x979a1a==null?void 0x0:_0x979a1a['memberID'])??_0x432a4d(0x2e3);return{'changeset':{'unitID':_0x3ba9ff,'type':_0x242325(_0x494070[_0x432a4d(0x24d)](_0x3ba9ff)),'baseRev':_0x49a65b[_0x432a4d(0x2d5)](_0x3ba9ff),'revision':0x0,'userID':_0x591b34,'memberID':_0x13d693,'mutations':_0x297269},'pendingMutations':_0x5553f5[_0x432a4d(0x2ca)](_0x297269[_0x432a4d(0x316)])};}function $t(_0x377e3b,_0x55560a,_0x561ef6,_0x3c209d,_0x537f4a){const _0x1b1142=_0x1f5521;let _0x28f12f=_0x377e3b[_0x1b1142(0x18e)]((_0x1d2563,_0x272252)=>{const _0x4b9079=_0x1b1142;let _0x4a63ec=_0x1d2563[_0x1d2563[_0x4b9079(0x316)]-0x1],{id:_0xa8242c}=_0x4a63ec??{},{id:_0x49cd58,type:_0x210bdd}=_0x272252,_0x27c853=_0x272252[_0x4b9079(0x366)];if(_0xa8242c&&_0xa8242c!==_0x49cd58)throw Error(_0x4b9079(0x2bf)+_0xa8242c+_0x4b9079(0x386)+_0x49cd58+'.');if(!_0x4a63ec)return[{'id':_0x49cd58,'type':_0x210bdd,'params':{'unitId':_0x27c853[_0x4b9079(0x2c4)],'textRanges':_0x27c853['textRanges'],'actions':_0x27c853[_0x4b9079(0x1d6)]}}];let _0x4de8cd=_0x4a63ec[_0x4b9079(0x366)];return en(_0x4de8cd,_0x27c853)?[..._0x1d2563[_0x4b9079(0x2ca)](0x0,-0x1),{..._0x4a63ec,'id':_0x49cd58,'type':_0x210bdd,'params':{'unitId':_0x27c853[_0x4b9079(0x2c4)],'textRanges':_0x27c853[_0x4b9079(0x3da)],'actions':_0x4c7fe5['compose'](_0x4de8cd[_0x4b9079(0x1d6)],_0x27c853['actions'])}}]:[..._0x1d2563,{'id':_0x49cd58,'type':_0x210bdd,'params':{'unitId':_0x27c853[_0x4b9079(0x2c4)],'textRanges':_0x27c853[_0x4b9079(0x3da)],'actions':_0x27c853[_0x4b9079(0x1d6)]}}];},[]),_0x23078e=_0x537f4a['getCurrentUser'](),_0x3cefdd=(_0x23078e==null?void 0x0:_0x23078e[_0x1b1142(0x200)])??_0x1b1142(0x2e3),_0x563bdb=(_0x23078e==null?void 0x0:_0x23078e['memberID'])??_0x1b1142(0x2e3);return{'changeset':{'unitID':_0x55560a,'type':_0x242325(_0x561ef6['getUnitType'](_0x55560a)),'baseRev':_0x3c209d[_0x1b1142(0x2d5)](_0x55560a),'revision':0x0,'userID':_0x3cefdd,'memberID':_0x563bdb,'mutations':_0x28f12f},'pendingMutations':_0x377e3b['slice'](_0x377e3b['length'])};}function en(_0x4fc041,_0x55008a){const _0x1fa9e9=_0x1f5521;return!tn(_0x4fc041)&&!tn(_0x55008a)&&nn(_0x4fc041[_0x1fa9e9(0x1d6)],_0x55008a[_0x1fa9e9(0x1d6)]);}function tn(_0x21dc30){const _0x303394=_0x1f5521;return _0x21dc30[_0x303394(0x388)]!==void 0x0;}function nn(_0x1fe2ee,_0x105e1d){return rn(_0x1fe2ee)&&rn(_0x105e1d)&&!on(_0x1fe2ee)&&!on(_0x105e1d)&&!an(_0x1fe2ee)&&!an(_0x105e1d);}function rn(_0x2803c0){const _0x4b5821=_0x1f5521;return sn(_0x2803c0)['some'](_0x1e0618=>cn(_0x1e0618)&&_0x1e0618['et']===_0x4b5821(0x2a6));}function an(_0x40f8ba){const _0x5509d6=_0x1f5521;return sn(_0x40f8ba)[_0x5509d6(0x2ae)](_0x1f0aba=>Array[_0x5509d6(0x33b)](_0x1f0aba)||typeof _0x1f0aba==_0x5509d6(0x239)||typeof _0x1f0aba==_0x5509d6(0x193));}function on(_0xb021be){const _0x5bc41d=_0x1f5521;return sn(_0xb021be)[_0x5bc41d(0x2ae)](_0x19449c=>!cn(_0x19449c)||_0x19449c['et']!==_0x5bc41d(0x2a6)||!Array[_0x5bc41d(0x33b)](_0x19449c['e'])?!0x1:_0x19449c['e']['some'](_0xe65896=>!cn(_0xe65896)||!cn(_0xe65896['body'])?!0x1:Object['prototype']['hasOwnProperty']['call'](_0xe65896[_0x5bc41d(0x1c3)],_0x5bc41d(0x1ab))||Object[_0x5bc41d(0x155)]['hasOwnProperty'][_0x5bc41d(0x359)](_0xe65896[_0x5bc41d(0x1c3)],_0x5bc41d(0x17f))||Object['prototype'][_0x5bc41d(0x2c3)][_0x5bc41d(0x359)](_0xe65896['body'],_0x5bc41d(0x267))));}function sn(_0x475e12){const _0x21f793=_0x1f5521;if(!Array['isArray'](_0x475e12))return[];let _0xbbde9=_0x475e12['includes'](_0x21f793(0x1c3))?_0x475e12:_0x475e12['find'](_0x6281df=>Array[_0x21f793(0x33b)](_0x6281df)&&_0x6281df[_0x21f793(0x377)]('body'));if(!Array[_0x21f793(0x33b)](_0xbbde9))return[];let _0x1d1ee1=_0xbbde9[_0x21f793(0x348)](_0x21f793(0x1c3));return _0x1d1ee1===-0x1?[]:_0xbbde9[_0x21f793(0x2ca)](_0x1d1ee1+0x1);}function cn(_0x3965e7){const _0x224b5e=_0x1f5521;return typeof _0x3965e7=='object'&&!!_0x3965e7&&!Array[_0x224b5e(0x33b)](_0x3965e7);}function ln(_0x27a47b,_0x197b3b){const _0x58e8d9=_0x1f5521;let _0x43bdb9=new _0x16703b(0x1);return setTimeout(()=>_0x43bdb9[_0x58e8d9(0x1ae)](_0x197b3b),_0x27a47b),_0x43bdb9['asObservable']()[_0x58e8d9(0x220)](_0x14e08c(0x1));}var un,dn,fn;let pn=function(_0x4f250a){const _0x337f29=_0x1f5521;return _0x4f250a[_0x337f29(0x1bf)]=_0x337f29(0x336),_0x4f250a['SYNCED']=_0x337f29(0x319),_0x4f250a[_0x337f29(0x1a9)]='pending',_0x4f250a['AWAITING']='awaiting',_0x4f250a[_0x337f29(0x225)]='awaiting_with_pending',_0x4f250a[_0x337f29(0x360)]='fetch_missing',_0x4f250a[_0x337f29(0x32d)]='conflict',_0x4f250a[_0x337f29(0x32e)]=_0x337f29(0x269),_0x4f250a;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x15b1be,_0x7421d7,_0x48fc79,_0x453cb1,_0xd6bdd,_0x105788,_0x47c74b,_0x5bea00,_0x114874){const _0x21de38=_0x1f5521;this['unitID']=_0x15b1be,this[_0x21de38(0x258)]=_0x7421d7,this[_0x21de38(0x2c7)]=_0xd6bdd,this['_commandService']=_0x105788,this[_0x21de38(0x2f9)]=_0x47c74b,this[_0x21de38(0x247)]=_0x5bea00,this[_0x21de38(0x2ab)]=_0x114874,z(this,_0x21de38(0x174),null),z(this,'_pendingMutations',[]),this[_0x21de38(0x174)]=_0x48fc79,this[_0x21de38(0x1fd)]=_0x453cb1;}[_0x1f5521(0x2b9)](_0xae0fc6){const _0x21b79e=_0x1f5521;let _0x2b457c=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return _0xae0fc6[_0x21b79e(0x145)]>_0x2b457c+0x1?(this['_handler'][_0x21b79e(0x302)]({'from':_0x2b457c,'to':_0xae0fc6[_0x21b79e(0x145)]-0x1}),!0x0):!0x1;}[_0x1f5521(0x3c2)](_0x101faf){const _0xd8dc83=_0x1f5521;this['_undoRedoService'][_0xd8dc83(0x279)](this[_0xd8dc83(0x322)],_0x101faf);}[_0x1f5521(0x1cc)](_0x10acfe){const _0x44ea49=_0x1f5521;var _0xe0a870,_0x46acb5;(_0xe0a870=(_0x46acb5=this['_handler'])[_0x44ea49(0x339)])==null||_0xe0a870[_0x44ea49(0x359)](_0x46acb5,_0x10acfe);}['_transformIMECache'](_0x467cfb){const _0x3dfe4f=_0x1f5521;var _0x407e44,_0x488e24;return(_0x407e44=(_0x488e24=this[_0x3dfe4f(0x2c7)])[_0x3dfe4f(0x1ac)])==null?void 0x0:_0x407e44['call'](_0x488e24,_0x467cfb);}[_0x1f5521(0x2c9)](_0xe72e8c){const _0x138bdf=_0x1f5521;var _0xc03ddc,_0x4c8199;return(_0xc03ddc=(_0x4c8199=this[_0x138bdf(0x2c7)])[_0x138bdf(0x31e)])==null?void 0x0:_0xc03ddc[_0x138bdf(0x359)](_0x4c8199,_0xe72e8c);}[_0x1f5521(0x3e0)](_0x3c5401){const _0x370b82=_0x1f5521;var _0x18fcbb,_0x44350a;return((_0x18fcbb=(_0x44350a=this['_handler'])[_0x370b82(0x15b)])==null?void 0x0:_0x18fcbb[_0x370b82(0x359)](_0x44350a,_0x3c5401))??_0x3c5401;}['_transformRemoteChangesetByStateCache'](_0x194a95){const _0x4c54f0=_0x1f5521;var _0x2d5177,_0x1ea946;return((_0x2d5177=(_0x1ea946=this[_0x4c54f0(0x2c7)])[_0x4c54f0(0x236)])==null?void 0x0:_0x2d5177['call'](_0x1ea946,_0x194a95))??_0x194a95;}['_syncEditingCollabCursor'](_0x1a726e){const _0x1f0d8a=_0x1f5521;if(this[_0x1f0d8a(0x258)]===_0x4f4a88[_0x1f0d8a(0x33c)]){let {unitID:_0x3d61ee,mutations:_0x1237dc,memberID:_0x19eccf}=_0x1a726e,_0x5c9b92=_0x1237dc[_0x1f0d8a(0x316)]>0x0?_0x1237dc[0x0][_0x1f0d8a(0x366)][_0x1f0d8a(0x3da)]:[];if(Array['isArray'](_0x5c9b92)&&_0x5c9b92[_0x1f0d8a(0x316)]>0x0){var _0x9706bc,_0x4ee431;(_0x9706bc=(_0x4ee431=this[_0x1f0d8a(0x2c7)])[_0x1f0d8a(0x29b)])==null||_0x9706bc[_0x1f0d8a(0x359)](_0x4ee431,{'unitID':_0x3d61ee,'memberID':_0x19eccf,'textRanges':_0x5c9b92});}}}[_0x1f5521(0x30e)](){const _0x50f695=_0x1f5521;var _0x3d262a;(_0x3d262a=this[_0x50f695(0x2ab)])==null||_0x3d262a[_0x50f695(0x2d9)](this[_0x50f695(0x322)],this['type'],this[_0x50f695(0x174)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x571ac8=_0x1f5521;return this[_0x571ac8(0x247)][_0x571ac8(0x2d5)](this[_0x571ac8(0x322)]);}[_0x1f5521(0x2e9)](){const _0x432fe5=_0x1f5521;this[_0x432fe5(0x247)][_0x432fe5(0x292)](this[_0x432fe5(0x322)]);}[_0x1f5521(0x308)](_0x104317){const _0xd765bf=_0x1f5521;let _0x5e945f=this['_transformRemoteChangesetByIMECache'](_0x104317);_0x5e945f=this[_0xd765bf(0x29e)](_0x5e945f);let _0x239156=_0x1f41b0(_0x5e945f[_0xd765bf(0x17c)],this['_commandService'],{'fromCollab':!0x0});if(!_0x239156['result'])throw _0x239156[_0xd765bf(0x2fc)]instanceof Error?_0x239156[_0xd765bf(0x2fc)]:Error(_0x239156['error']??'[CollaborationState]:\x20apply\x20error!');this[_0xd765bf(0x241)](_0x5e945f),this[_0xd765bf(0x2c9)](_0x5e945f),this[_0xd765bf(0x3c2)](_0x104317),this['_transformSelections'](_0x5e945f),this['_syncEditingCollabCursor'](_0x5e945f),this['_incrementRevisionNumber']();}};let K=class extends G{constructor(_0x42096b,_0x5d50dc,_0x2fb83b,_0x165368,_0x4fd950,_0x52b8b2,_0x5ccbed,_0x5cda46,_0x4dfc31,_0x852496){const _0x1e9955=_0x1f5521;super(_0x42096b,_0x5d50dc,null,[],_0x2fb83b,_0x5ccbed,_0x52b8b2,_0x165368,_0x852496),this[_0x1e9955(0x391)]=_0x4fd950,this[_0x1e9955(0x2dd)]=_0x5cda46,this[_0x1e9955(0x2c5)]=_0x4dfc31,this[_0x1e9955(0x263)]=_0x852496,z(this,_0x1e9955(0x1fc),'synced');}[_0x1f5521(0x2b1)](_0xbfc6de){const _0x30a63f=_0x1f5521;let _0x1e5ab8=this[_0x30a63f(0x391)]['createInstance'](q,this[_0x30a63f(0x322)],this[_0x30a63f(0x258)],[_0xbfc6de],this[_0x30a63f(0x2c7)]);return _0x1e5ab8[_0x30a63f(0x2be)](),_0x1e5ab8['_updateLocalCache'](),_0x1e5ab8;}['onRemoteChangeset'](_0x45f96b){const _0x225db7=_0x1f5521;if(this['_checkMissing'](_0x45f96b))return this[_0x225db7(0x391)]['createInstance'](Q,this[_0x225db7(0x322)],this[_0x225db7(0x258)],null,[],null,[_0x45f96b],this[_0x225db7(0x2c7)]);try{let _0x130725=this[_0x225db7(0x2c5)]['transformMutationsWithChangeset'](_0x45f96b,[_0x6877be]);if(_0x71163b(_0x130725)){let {c1Prime:_0xa3a440}=_0x130725;return this[_0x225db7(0x308)](_0xa3a440),this;}throw _0x130725['error'];}catch(_0x54ab43){return this[_0x225db7(0x2dd)]['error'](_0x54ab43),this[_0x225db7(0x27e)](!0x1);}}[_0x1f5521(0x27e)](_0x4387b7){const _0x12ee03=_0x1f5521;return this[_0x12ee03(0x391)][_0x12ee03(0x351)](X,this[_0x12ee03(0x322)],this[_0x12ee03(0x258)],null,[],this[_0x12ee03(0x2c7)],_0x4387b7);}[_0x1f5521(0x2f5)](_0xa719ba){const _0x4d07d5=_0x1f5521;if(_0xa719ba[_0x4d07d5(0x145)]<=this['_getCurrentRevision']())return this;throw Error(_0x4d07d5(0x226));}[_0x1f5521(0x275)](){const _0x400976=_0x1f5521;throw Error(_0x400976(0x1c4));}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){const _0x1b50e8=_0x1f5521;return this['_injector'][_0x1b50e8(0x351)](Z,this[_0x1b50e8(0x322)],this['type'],null,[],this[_0x1b50e8(0x2c7)]);}['toggleOnline'](){return this;}[_0x1f5521(0x3a6)](){const _0x287eb2=_0x1f5521;throw Error(_0x287eb2(0x369));}[_0x1f5521(0x28f)](){const _0x1c7ac1=_0x1f5521;let _0x1cc2cd=this['_revisionService'][_0x1c7ac1(0x2d5)](this[_0x1c7ac1(0x322)]);return this[_0x1c7ac1(0x2c7)][_0x1c7ac1(0x302)]({'from':_0x1cc2cd,'to':0x0}),this[_0x1c7ac1(0x391)][_0x1c7ac1(0x351)](Q,this[_0x1c7ac1(0x322)],this[_0x1c7ac1(0x258)],null,[],null,[],this[_0x1c7ac1(0x2c7)]);}};function _0x1cc8(){const _0x4a8ade=['_resendTimeout','removeMember','collaboration-client.auth.needGotoLoginAlert','JOIN_ROOM_PERMISSION_DENIED','pipe','requireSession','transformMutationsWithChangeset','getSnapshotAPIPath','executeCommand','AWAITING_WITH_PENDING','[SyncedState]:\x20received\x20acknowledgement.','onStateChange','_replayCachedMutations','_clearRedo','permissionRejEvent','_transitionLocked','_sendingTimer','BASE64','file','unit-cache-','HEARTBEAT','_fetchMissChangesets','status$','_initRequestHeader','getFocusedUnit','memberID','onTransformRemoteChangesetByStateCache','LIVESHARE_REQUEST_HOST','_queuedRemoteChangesets','string','HELLO','range','min','JOIN','open$','add','pluginName','_transformIMECache','m2Prime','result','findIndex','getCollabEntity','fromCollab','_revisionService','_sender','_instanceService','&to=','__splitChunk__','_localeService','getUnitType','_change$','deleteCollaborator','refreshPermission','enableOfflineEditing','toString','update','_initMergeInterceptor','_collaborationPaused','onCommentUpdate','loginUrlKey','type','/universer-api/snapshot','focused$','_clearScheduledTask','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','changesets','/role','commentUpdateEvent','_onRemoteChangeset','filter','ERROR_IMAGE_TYPE','localCacheService','transformStack\x20failed!','_snapshotService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','blockRanges','backupOfflineData','offline','roles','loadBase','onlyLocal','code','close$','unsubscribe','_getUndoStack','[FetchMissState]','joinRsp','/universer-api/authz','snapshot','onRemoteRej','_acknowledgeAwaiting','onMutationExecutedForCollab','state$','transformUndoRedo','_stopTelemetryCollaborationNewChangeset','getActiveSheet','liveShareNewHost','leaveEvent','_onConflict','54Opgyxv','/allowed','saveSheetBlock','isPermissionRej','_lockTransition','_docStateChangeManagerService','_getCurrentRevision','LIVESHARE_FETCH_OPERATIONS','_getAPIPrefix','IDLE','packageName','session.room-permission-denied','SUBMIT_CHANGESET_TIMEOUT','_clearTimeoutTimer','_sessionChannels','constructor','fetchMiss','loadBoard','248750EwPtxh','incrementRevOfUnit','missingChangesets','routeKey','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_commentUpdate$','LEAVE','createSocket','downloadEndpointUrl','_init','onSyncEditingCollabCursor','decorate','telemetry\x20info\x20is\x20not\x20initialized','_transformRemoteChangesetByStateCache','_acknowledgeAwaitingIfReady','SOCKET_FAILED_RETRY','_configService','RETRY_CONNECTING_MAX_COUNT','readAsDataURL','univer-pro.collaboration-client.single-active-unit-service','_onOffline','text-x','_unitLoaded$','COMMENT_UPDATE','_undoStacks','_exhaustRemoteChangesetQueue','_localCacheService','updateSnapshot','?size=','some','OTHER_CLIENT_EDITING','loadDoc','appendMutation','getCfgEnableObjInherit','enableAuthServer','_networkConditionService','max','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','values','encode','_checkMissing','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','OPTIONAL','\x20in\x20_schedule.','clear','_schedule','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_throwTelemetryCollaborationNewChangeset','_createInitialStateImpl','init','hasOwnProperty','unitId','_transformService','updatePermissionObjEvent','_handler','resolve','_transformStateCache','slice','UNIVER_BOARD','data','_getSignURL','localeService','createCollaborator','socketMessageSubscription','FileId','JOIN_ROOM_FAILED','getSheetBlock','setConfig','getCurrentRevOfUnit','_collabSessionService','avatar','getImageSourceCache','updateOfflineData','closeSession','location','subscribe','_logService','has','put','_onRemoteACK','_getRedoStack','COMPRESS_MUTATION_SEND','unknown','state','_onRemoteRetry','saveImage','JOIN_ROOM_FULL','getWorkbookSelections','_incrementRevisionNumber','map','onMissedChangesetFetched','conflict','override','INGEST','authzUrl','_onRemoteRejected','roomInfos','subUnitId','transformSelections','splice','onRemoteAck','_tryReconnect','reqId','copyFileMeta','_undoRedoService','_waitCount','originalMeta','error','\x0aAfter:\x20','patch','_updateState','_onJoinRoomEvent','close','onMissingChangesets','objectID','getInterceptPoints','HEARTBEAT_INTERVAL','disableLocalCache','_telemetryService','_executeRemoteChangeset','@univerjs-pro/collaboration-client','sessionStatus$','now','loadPdf','_initDependencies','_updateLocalCache','objectType','_disableEditing','_eventService','replace','object','onRemoteRetry','_emitMembers','length','_httpService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','synced','_onFetchMissResult','getAttachmentUrl','reverse','subject','onTransformState','selections','_commandService','_unitInfo$','unitID','socket\x20open.','ERROR_IMAGE','_onRecvEvent','entityInit$','_socketMessageSubscription','collaboratorID','_univerInstanceService','fetchThroughInterceptors','readyForCollab','fromCharCode','CONFLICT','OFFLINE','_getUploadFileURL','/new_changes','method','125090CVyDSc','entries','_onConnectionOpen','_joinRoom','not_collab','UNIVER_BASE','CLOSE_ROOM','onTransformSelections','collaborators','isArray','UNIVER_DOC','ONLINE','_pendingSessions','endpointKey','/rev/','ERROR_EXCEED_SIZE','JOIN_ROOM_NOT_EXISTS','toRemote','equals','title','1.0.0-beta.1','collaboration_new_changeset','indexOf','_status$','_clearHeartbeatTimer','UNISCRIPT_RUN','_getSendChangesetTimeout','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','disposeWithMe','_type','sessionStatus','createInstance','sendChangesetTimeout','_entities','LOCAL_CACHE_INTERVAL','connection\x20error','[PendingState]:\x20received\x20rejection.','Error\x20on\x20receiving\x20event','getCurrentSelections','call','debug','stopTime','waitForRoom$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','68268VqKcbJ','getMember','FETCH_MISS','changeset','_members','loadOfflineData','_config','POST','params','csRejEvent','USERS_ENTER','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/universer-api/comb','session','_sheetTransformSelectionsService','_waitForHeartbeatResponse','UPDATE_PERMISSION_OBJ','_isPermissionRej','[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.','getMemberID','_resendTimer','SHOULD_CLOSE_CONN','_socketService','members','_startTelemetryCollaborationNewChangeset','includes','640056PKHCNH','awaitingChangeset','asObservable','defineProperty','_resolveSessionIdentity','localUnitId','FETCH_MISSING','_memberService','retryConnectingTimer','cmd','_initUnitPermissionChange','_createSession','_adapter','session.room-not-exists','\x20-\x20','LIVESHARE_TERMINATE','isCompositionEnd','url','MUTATION','_state','[CollaborationSessionService]','_doCreateSocket','/universer-api/snapshot/','getImage','_updateStatus','_injector','encodeURIComponent','_shouldReportTelemetry','[CollaborationEntity]','_rescheduleHeartbeat','_roomMembers','symbol','_createInitialState','UNIVER_SHEET','_onUserJoin','catch','/block/','_sessionStatus$','[DataLoaderService]','_event$','updateMember','_collaborationUIEventService','socket\x20close','HEARTBEAT_TIMEOUT','PSEUDO_FETCH_MISSING_RESULT','onload','resend','PERMISSION_REJ','listRoles','UPDATE_CURSOR','accept','then','_cfgEnableObjInherit','iterator','_singleActiveUnitService','PERMISSION_DENIED','collaboration-client.local-cache-service','/universer-api/uniscript','sendHeartbeatTimer','origin','getResourcesRequest','shouldCloseConn','[CollaborationUndoRedoService]','list','4679184PYwTji','UNIVER_PDF','People','send','9347490ePWwCV','saveAttachment','/universer-api/oidc/authpage','_getSocketChannel','getTime','_handlerCallback','_transformUndoredo','listCollaborators','_userManagerService','_onConnectionFailed','LIVESHARE_OPERATION','_initCloseConn','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','charCodeAt','getValue','sid','loadUnitOfRevision','setCfgEnableObjInherit','{fileID}','NO_OTHER_CLIENTS_EDITING','_getCtorByUniverInstanceType','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_replaceFileID','_getAPIPrefixPath','parse','event$','_changesetSessionId','getUnitId','Failed\x20to\x20update\x20permission\x20point','session.room-cnt-exceeds','textRanges','_resendWithTimeout','_unlockTransition','socket$','rev','_clearLocalCache','_transformRemoteChangesetByIMECache','_entityInit$','socketService','_startCollaboration','_clearCollaborationTimeoutTimer','setWaitCount','_toggleOffline','members$','unit','revision','RECV','reject','getAllMembers','snapshotServerUrl','getOwnPropertyDescriptor','CHANGESET_SHOULD_RETRY','withCredentials','Univer','timeoutTimer','_collaborationTimeoutTimer','x-univer-host','signUrlServerUrl','_socketChannels','loadUnit','forEach','prototype','_createHandler','collabWebSocketUrl','_onMessage','_remoteChangesetQueue','_acknowledgedAwaitingRevision','onTransformRemoteChangesetByIMECache','initWorkbookPermissionChange','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getCurrentUser','every','post','COMPRESS_MUTATION_APPLY','_collaborationSessionService','registerHTTPInterceptor','MSG_FOR_ERROR','interceptor','_sessions','function','SUBMIT_CHANGESET','_state$','&assign=','/unit/','upload','_imageSourceCache','addImageSourceCache','set','error$','_listenToNetworkCondition','retryConnectingInterval','startsWith','_awaitingChangeset','_handleRemoteChangesets','_roomCreated$','_scheduleCompleteTimestamp','?url=','_getConfig','[PendingState]:\x20unhandled\x20univer\x20type:\x20','GLOBAL_ROOMS_CNT_EXCEEDS','mutations','[OfflineState]:\x20received\x20rejection.','retryCount','columnGroups','fetch_missing','editing\x20status\x20changed\x20to','pauseCollaboration','c2Prime','_clearRetryConnectingTimer','complete','resolveUnit','_compressMutationService','failed\x20to\x20apply\x20missed\x20changesets!','_showConflictNotification','_onCombEvent','sort','updatePermissionPoint','session.join-failed','reduce','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getSheetId','append','/collaborator','number','UNIVER_SLIDE','_onLocalMutation','_redoStacks','_getDownloadEndpointURL','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','transformChangesets','CHANGESET_ACK','&source=','\x20to\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getUnitOnRev','requestParams','/-/object/-/batch_allowed','_substituteRedoStack','1234047ttFvaH','_changesetReqId','_applyRemoteChangeset','newCsEvent','/universer-api/stream/file/upload','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','baseRev','PENDING','csAckEvent','tables','onTransformIME','__Key__','next','USERS_LEAVE','/resources','eventID','attachment','resourceIDs','fetchMissingChangesets','/universer-api/file/{fileID}/sign-url','_isEchoedAwaitingChangeset','/universer-api/user/session-ticket','endpoint','COLLABORATION_ENDPOINT_INVALID','uniscriptRunEvent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_telemetryInfo','apply','getTypeOfUnitAdded$','NOT_COLLAB','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','socketReady','/object','body','[SyncedState]:\x20received\x20rejection.','CHANGESET_REJ','c1Prime','headers','onRemoteChangeset','maxSize','href','SNAPSHOT_URL_KEY','_transformSelections','_transformAndApplyRemoteChangeset','message$','push','_submitChangeset','getConfig','_hasSessionsForEndpoint','online$','_tryEnsureSocket','uploadFileServerUrl','actions','_substituteUndoStack','csShouldRetryEvent','_HTTPService','_decreaseWaiting','_removeRoom','capture','getCollabEntity$','_socket','getUploadOptions','\x0aCurrent:\x20','base-ui.attachment-io.service','_members$','candidateSocket','SUCCUSS','floor','unitType','ws://127.0.0.1:8000/universer-api/comb/connect','docStateChange$','JOINING','batchAllowed','PERSON','_toggleOnline','_permissionService','dispose','target','[CollaborationSessionService]:\x20socket\x20error','toggleOffline','save\x20fail\x20reason\x20is\x20','_transformStack','getUnitStatus$','onSendChangeset','saveSnapshot','endsWith','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','confirm','[CollaborationSession]','src','status','_pendingMutations','getTypeOfUnitDisposed$','NEW_CHANGESETS','userID','dispose$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','collaboration-client.config','delete','emitEvent','_upload','setShowComponents','_onUserLeave','find','_sendHeartbeat','24ARBzvY','get','_maxTotalRetryTimeout','saveChangeset','SOCKET_FAILED','toggleOnline','OTHER_CLIENTS_EDITING','stringify','/object/','_getLoginPath','LIVESHARE_NEW_HOST','_identity','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','name','_clearUndo','[OfflineState]:\x20received\x20changeset.','size'];_0x1cc8=function(){return _0x4a8ade;};return _0x1cc8();}K=H([V(0x3,_0x32c7b6(_0x21335b)),V(0x4,_0x32c7b6(_0xd2295f)),V(0x5,_0x143b1e),V(0x6,_0x24738d),V(0x7,_0x3849f9),V(0x8,_0x30bd2c),V(0x9,_0x100ce1(U))],K);let q=un=class extends G{constructor(_0x406c24,_0x36bf4a,_0x20565e,_0x184307,_0x1c31b7,_0x3102c7,_0x1a78d2,_0x7ed6b9,_0x347d43,_0x53015b,_0x66ae36,_0x19817a,_0x219994,_0x144a2c){const _0xb8ef69=_0x1f5521;super(_0x406c24,_0x36bf4a,null,_0x20565e,_0x184307,_0x347d43,_0x219994,_0x3102c7,_0x144a2c),this[_0xb8ef69(0x391)]=_0x1c31b7,this['_userManagerService']=_0x1a78d2,this[_0xb8ef69(0x2dd)]=_0x7ed6b9,this[_0xb8ef69(0x2a1)]=_0x53015b,this[_0xb8ef69(0x2c5)]=_0x66ae36,this[_0xb8ef69(0x329)]=_0x19817a,z(this,_0xb8ef69(0x1fc),'pending'),z(this,'_scheduleCompleteTimestamp',null),z(this,_0xb8ef69(0x22c),null);}[_0x1f5521(0x2b1)](_0x2106ce){const _0x5400b6=_0x1f5521;return this[_0x5400b6(0x1fd)][_0x5400b6(0x1cf)](_0x2106ce),this['_updateLocalCache'](),this;}[_0x1f5521(0x1c8)](_0x2b4b61){const _0x83950a=_0x1f5521;if(this[_0x83950a(0x2b9)](_0x2b4b61))return this[_0x83950a(0x25b)](),this[_0x83950a(0x391)][_0x83950a(0x351)](Q,this[_0x83950a(0x322)],this['type'],null,this[_0x83950a(0x1fd)],null,[_0x2b4b61],this[_0x83950a(0x2c7)]);try{let _0x44f43d=this[_0x83950a(0x2c5)]['transformMutationsWithChangeset'](_0x2b4b61,this[_0x83950a(0x1fd)]);if(_0x71163b(_0x44f43d)){let {c1Prime:_0x54a97c,m2Prime:_0x204dd4}=_0x44f43d;this['_executeRemoteChangeset'](_0x54a97c);let _0x4b266a=this[_0x83950a(0x391)][_0x83950a(0x351)](un,this[_0x83950a(0x322)],this['type'],_0x204dd4,this[_0x83950a(0x2c7)]);this[_0x83950a(0x25b)]();let _0x5c344b=new Date()['getTime'](),_0x5728b3=this[_0x83950a(0x177)]?Math[_0x83950a(0x2b5)](this[_0x83950a(0x177)]-_0x5c344b,0x0):this[_0x83950a(0x34c)]();return _0x4b266a[_0x83950a(0x2be)](_0x5728b3),_0x4b266a;}throw _0x44f43d[_0x83950a(0x2fc)];}catch(_0x3f743c){return this['_logService'][_0x83950a(0x2fc)](_0x3f743c),this[_0x83950a(0x27e)](!0x1);}}[_0x1f5521(0x2f5)](_0x270971){const _0x5664e7=_0x1f5521;if(_0x270971[_0x5664e7(0x145)]<=this[_0x5664e7(0x285)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1f5521(0x275)](){const _0x3d2eb0=_0x1f5521;throw Error(_0x3d2eb0(0x356));}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){const _0x5d85f6=_0x1f5521;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this['unitID'],this[_0x5d85f6(0x258)],null,this[_0x5d85f6(0x1fd)],this['_handler']);}['toggleOnline'](){return this;}['_schedule'](_0x392b01){const _0x3dfe01=_0x1f5521;let _0x1392cb=_0x392b01??this[_0x3dfe01(0x34c)]();this[_0x3dfe01(0x177)]=new Date()[_0x3dfe01(0x3c0)]()+_0x1392cb,this[_0x3dfe01(0x22c)]=setTimeout(()=>{const _0x52bcaf=_0x3dfe01;this[_0x52bcaf(0x25b)]();let _0x4b460e=null;switch(this[_0x52bcaf(0x258)]){case _0x4f4a88[_0x52bcaf(0x399)]:_0x4b460e=Xt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x33c)]:_0x4b460e=this[_0x52bcaf(0x1fd)][_0x52bcaf(0x15f)](_0x24280c=>_0x24280c['id']===_0x47e1e8['id'])?$t(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]):Xt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x194)]:_0x4b460e=Qt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this[_0x52bcaf(0x329)],this['_revisionService'],this['_userManagerService']);break;case _0x4f4a88[_0x52bcaf(0x3b9)]:_0x4b460e=Zt(this[_0x52bcaf(0x1fd)],this['unitID'],this['_univerInstanceService'],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x2cb)]:_0x4b460e=Xt(this[_0x52bcaf(0x1fd)],this['unitID'],this[_0x52bcaf(0x329)],this[_0x52bcaf(0x247)],this[_0x52bcaf(0x3c4)]);break;case _0x4f4a88[_0x52bcaf(0x337)]:_0x4b460e=Xt(this[_0x52bcaf(0x1fd)],this[_0x52bcaf(0x322)],this['_univerInstanceService'],this[_0x52bcaf(0x247)],this['_userManagerService']);break;default:throw Error(_0x52bcaf(0x17a)+this[_0x52bcaf(0x258)]+_0x52bcaf(0x2bc));}let {changeset:_0x2fd117,pendingMutations:_0x5a2c09}=_0x4b460e;this[_0x52bcaf(0x2c7)][_0x52bcaf(0x1f5)](_0x2fd117);let _0x39701a=_0x5a2c09[_0x52bcaf(0x316)]?this[_0x52bcaf(0x391)]['createInstance'](Y,this[_0x52bcaf(0x322)],this[_0x52bcaf(0x258)],_0x2fd117,_0x5a2c09,this['_handler'],void 0x0):this[_0x52bcaf(0x391)]['createInstance'](J,this[_0x52bcaf(0x322)],this[_0x52bcaf(0x258)],_0x2fd117,this['_handler']);_0x39701a['_updateLocalCache'](),this[_0x52bcaf(0x2c7)][_0x52bcaf(0x227)](this,_0x39701a);},_0x1392cb);}['_getSendChangesetTimeout'](){const _0x43ff9c=_0x1f5521;let _0x56a703=this['_configService'][_0x43ff9c(0x1d1)](R);return(_0x56a703==null?void 0x0:_0x56a703[_0x43ff9c(0x352)])??0x7d0;}[_0x1f5521(0x3a6)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f5521(0x25b)](){const _0x628072=_0x1f5521;this[_0x628072(0x22c)]!=null&&(clearTimeout(this[_0x628072(0x22c)]),this[_0x628072(0x22c)]=null);}[_0x1f5521(0x27e)](_0x2f5e9c){const _0x1b70b3=_0x1f5521;return this[_0x1b70b3(0x25b)](),this[_0x1b70b3(0x391)][_0x1b70b3(0x351)](X,this[_0x1b70b3(0x322)],this[_0x1b70b3(0x258)],null,this[_0x1b70b3(0x1fd)],this['_handler'],_0x2f5e9c);}};q=un=H([V(0x4,_0x32c7b6(_0xd2295f)),V(0x5,_0x32c7b6(_0x21335b)),V(0x6,_0x32c7b6(_0x522a20)),V(0x7,_0x3849f9),V(0x8,_0x24738d),V(0x9,_0x123a79),V(0xa,_0x30bd2c),V(0xb,_0x238a9e),V(0xc,_0x143b1e),V(0xd,_0x100ce1(U))],q);let J=dn=class extends G{constructor(_0x38fd5a,_0x270e7b,_0x237446,_0x4c907e,_0x55f58b,_0x1d655c,_0x28b821,_0x55d746,_0x52f75f,_0x41c9e9,_0x23b8f5){const _0xdea443=_0x1f5521;super(_0x38fd5a,_0x270e7b,_0x237446,[],_0x4c907e,_0x28b821,_0x41c9e9,_0x1d655c,_0x23b8f5),this[_0xdea443(0x391)]=_0x55f58b,this['_logService']=_0x55d746,this[_0xdea443(0x2c5)]=_0x52f75f,z(this,'status','awaiting'),z(this,_0xdea443(0x21c),0x0),z(this,_0xdea443(0x20d),0x0),z(this,_0xdea443(0x372),void 0x0),z(this,'_sender',void 0x0);}['appendMutation'](_0xb0bd73){const _0x3a90ff=_0x1f5521;this['_clearScheduledTask']();let _0x4ec6d9=this[_0x3a90ff(0x391)][_0x3a90ff(0x351)](Y,this[_0x3a90ff(0x322)],this[_0x3a90ff(0x258)],this['_awaitingChangeset'],[_0xb0bd73],this['_handler'],this[_0x3a90ff(0x372)]);return _0x4ec6d9[_0x3a90ff(0x30e)](),_0x4ec6d9;}[_0x1f5521(0x1c8)](_0x2e3a92){const _0x37976d=_0x1f5521;if(this[_0x37976d(0x2b9)](_0x2e3a92))return this[_0x37976d(0x25b)](),this['_injector'][_0x37976d(0x351)](Q,this[_0x37976d(0x322)],this['type'],this['_awaitingChangeset'],[],null,[_0x2e3a92],this[_0x37976d(0x2c7)]);try{let _0x1f578e=this[_0x37976d(0x2c5)][_0x37976d(0x199)]([_0x2e3a92],[this[_0x37976d(0x174)]],!0x1);if(_0x32b26c(_0x1f578e)){let {c1Prime:_0x501e59,c2Prime:_0x1b5f2b}=_0x1f578e;this[_0x37976d(0x308)](_0x501e59[0x0]),_0x1b5f2b[0x0][_0x37976d(0x1a8)]=this[_0x37976d(0x285)](),this[_0x37976d(0x25b)]();let _0x5416be=this[_0x37976d(0x391)][_0x37976d(0x351)](dn,this['unitID'],this['type'],_0x1b5f2b[0x0],this['_handler']);return _0x5416be['_updateLocalCache'](),_0x5416be;}throw _0x1f578e['error'];}catch(_0x14c96b){return this['_logService'][_0x37976d(0x2fc)](_0x14c96b),this[_0x37976d(0x27e)](!0x1);}}[_0x1f5521(0x2f5)](_0x4f38f2){const _0x828b6=_0x1f5521;this[_0x828b6(0x25b)]();let _0x55790e=this[_0x828b6(0x247)][_0x828b6(0x2d5)](this['unitID']);if(_0x4f38f2[_0x828b6(0x145)]<=_0x55790e)return this;if(this[_0x828b6(0x2b9)](_0x4f38f2))return this['_injector'][_0x828b6(0x351)](Q,this[_0x828b6(0x322)],this[_0x828b6(0x258)],this[_0x828b6(0x174)],[],_0x4f38f2[_0x828b6(0x145)],[],this[_0x828b6(0x2c7)]);this['_incrementRevisionNumber']();let _0x471000=this[_0x828b6(0x391)][_0x828b6(0x351)](K,this[_0x828b6(0x322)],this[_0x828b6(0x258)],this[_0x828b6(0x2c7)]);return _0x471000[_0x828b6(0x30e)](),_0x471000;}[_0x1f5521(0x275)](_0x1ef083){const _0xbf70b5=_0x1f5521;return this[_0xbf70b5(0x27e)](!!(_0x1ef083!=null&&_0x1ef083[_0xbf70b5(0x282)]));}[_0x1f5521(0x314)](_0x23b65c){const _0x39c5cf=_0x1f5521;return this[_0x39c5cf(0x20d)]>hn?this[_0x39c5cf(0x1f1)]():(this[_0x39c5cf(0x372)]=ln(this[_0x39c5cf(0x21c)],{'timeout':this['_resendTimeout'],'reqId':_0x23b65c[_0x39c5cf(0x2f7)]}),this[_0x39c5cf(0x248)]=this['_resendTimer'][_0x39c5cf(0x2dc)](({reqId:_0x327828,timeout:_0x1363f1})=>{this['_resendWithTimeout'](_0x327828,_0x1363f1);}),this);}[_0x1f5521(0x1f1)](){const _0x593360=_0x1f5521;return this[_0x593360(0x25b)](),this['_injector']['createInstance'](Z,this[_0x593360(0x322)],this[_0x593360(0x258)],this[_0x593360(0x174)],[],this[_0x593360(0x2c7)]);}[_0x1f5521(0x210)](){return this;}[_0x1f5521(0x3a6)](){const _0x214c19=_0x1f5521;this[_0x214c19(0x2c7)]['onSendChangeset'](this[_0x214c19(0x174)]);}[_0x1f5521(0x27e)](_0x10af3d){const _0xc99033=_0x1f5521;return this['_clearScheduledTask'](),this[_0xc99033(0x391)]['createInstance'](X,this['unitID'],this[_0xc99033(0x258)],this[_0xc99033(0x174)],[],this[_0xc99033(0x2c7)],_0x10af3d);}[_0x1f5521(0x3db)](_0x13ef5b,_0x12729a){const _0xe7380b=_0x1f5521;var _0x37738d;_0x13ef5b===((_0x37738d=this['_awaitingChangeset'])==null?void 0x0:_0x37738d[_0xe7380b(0x2f7)])&&(this[_0xe7380b(0x3a6)](),this['_resendTimeout']=_0x12729a===0x0?0x3e8:Math[_0xe7380b(0x23c)](_0x12729a*0x2,mn),this[_0xe7380b(0x20d)]+=this[_0xe7380b(0x21c)]);}[_0x1f5521(0x25b)](){const _0x27888a=_0x1f5521;var _0x13fff5;(_0x13fff5=this[_0x27888a(0x248)])==null||_0x13fff5['unsubscribe'](),this[_0x27888a(0x21c)]=0x0,this[_0x27888a(0x20d)]=0x0;}};J=dn=H([V(0x4,_0x32c7b6(_0xd2295f)),V(0x5,_0x32c7b6(_0x21335b)),V(0x6,_0x24738d),V(0x7,_0x3849f9),V(0x8,_0x30bd2c),V(0x9,_0x143b1e),V(0xa,_0x100ce1(U))],J);let Y=fn=class extends G{constructor(_0x174e55,_0x381d6a,_0x159225,_0x592f52,_0x5b7383,_0x3f904b,_0x186c5b,_0x39689a,_0x5e2489,_0x4d42bc,_0xfb6220,_0x1d992b,_0x54b24e){const _0x5d090e=_0x1f5521;super(_0x174e55,_0x381d6a,_0x159225,_0x592f52,_0x5b7383,_0x5e2489,_0x1d992b,_0x39689a,_0x54b24e),this[_0x5d090e(0x391)]=_0x186c5b,this[_0x5d090e(0x2dd)]=_0x4d42bc,this['_transformService']=_0xfb6220,this['localCacheService']=_0x54b24e,z(this,_0x5d090e(0x1fc),'awaiting_with_pending'),z(this,'_resendTimeout',0x0),z(this,_0x5d090e(0x20d),0x0),z(this,_0x5d090e(0x372),void 0x0),z(this,'_sender',void 0x0),_0x3f904b&&(this[_0x5d090e(0x372)]=_0x3f904b,this['_sender']=this['_resendTimer'][_0x5d090e(0x2dc)](({reqId:_0x2be6dc,timeout:_0x1cae8c})=>{const _0x6c530c=_0x5d090e;this[_0x6c530c(0x3db)](_0x2be6dc,_0x1cae8c);}));}[_0x1f5521(0x2b1)](_0x2a0950){const _0x20eede=_0x1f5521;return this['_pendingMutations'][_0x20eede(0x1cf)](_0x2a0950),this;}[_0x1f5521(0x1c8)](_0x53dcc4){const _0x2d8ff5=_0x1f5521;if(this[_0x2d8ff5(0x2b9)](_0x53dcc4))return this[_0x2d8ff5(0x25b)](),this['_injector']['createInstance'](Q,this[_0x2d8ff5(0x322)],this[_0x2d8ff5(0x258)],this[_0x2d8ff5(0x174)],this['_pendingMutations'],null,[_0x53dcc4],this['_handler']);try{let _0xe507a0=this[_0x2d8ff5(0x2c5)][_0x2d8ff5(0x199)]([_0x53dcc4],[this[_0x2d8ff5(0x174)]],!0x1);if(_0x32b26c(_0xe507a0)){let {c1Prime:_0x39ee9c,c2Prime:_0x378149}=_0xe507a0,_0x21728f=this['_transformService'][_0x2d8ff5(0x222)](_0x39ee9c[0x0],this[_0x2d8ff5(0x1fd)]);if(_0x71163b(_0x21728f)){let {c1Prime:_0x3262a1,m2Prime:_0x313590}=_0x21728f;return this['_executeRemoteChangeset'](_0x3262a1),_0x378149[0x0]['baseRev']=this[_0x2d8ff5(0x285)](),this['_clearScheduledTask'](),this['_injector'][_0x2d8ff5(0x351)](fn,this[_0x2d8ff5(0x322)],this[_0x2d8ff5(0x258)],_0x378149[0x0],_0x313590,this[_0x2d8ff5(0x2c7)],void 0x0);}throw _0x21728f['error'];}throw _0xe507a0['error'];}catch(_0x2f0038){return this[_0x2d8ff5(0x2dd)][_0x2d8ff5(0x2fc)](_0x2f0038),this[_0x2d8ff5(0x27e)](!0x1);}}[_0x1f5521(0x2f5)](_0x3abe06){const _0x2b009d=_0x1f5521;this[_0x2b009d(0x25b)]();let _0x169b82=this[_0x2b009d(0x285)]();if(_0x3abe06['revision']<=_0x169b82)return this;if(this[_0x2b009d(0x2b9)](_0x3abe06))return this['_injector'][_0x2b009d(0x351)](Q,this['unitID'],this['type'],this[_0x2b009d(0x174)],this[_0x2b009d(0x1fd)],_0x3abe06['revision'],[],this[_0x2b009d(0x2c7)]);this['_incrementRevisionNumber']();let _0x206047=this['_injector'][_0x2b009d(0x351)](q,this[_0x2b009d(0x322)],this[_0x2b009d(0x258)],this['_pendingMutations'],this[_0x2b009d(0x2c7)]);return _0x206047['_schedule'](),_0x206047['_updateLocalCache'](),_0x206047;}[_0x1f5521(0x275)](_0x4e37a1){const _0x3b0baa=_0x1f5521;return this[_0x3b0baa(0x27e)](!!(_0x4e37a1!=null&&_0x4e37a1[_0x3b0baa(0x282)]));}['onRemoteRetry'](_0x4e44c3){const _0x6a917b=_0x1f5521;return this['_maxTotalRetryTimeout']>hn?this['toggleOffline']():(this[_0x6a917b(0x372)]=ln(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x4e44c3[_0x6a917b(0x2f7)]}),this[_0x6a917b(0x248)]=this['_resendTimer'][_0x6a917b(0x2dc)](({reqId:_0x31f83f,timeout:_0x3706bb})=>{this['_resendWithTimeout'](_0x31f83f,_0x3706bb);}),this);}[_0x1f5521(0x1f1)](){const _0x4cd26c=_0x1f5521;return this[_0x4cd26c(0x25b)](),this[_0x4cd26c(0x391)][_0x4cd26c(0x351)](Z,this[_0x4cd26c(0x322)],this[_0x4cd26c(0x258)],this[_0x4cd26c(0x174)],this[_0x4cd26c(0x1fd)],this[_0x4cd26c(0x2c7)]);}['toggleOnline'](){return this;}['resend'](){const _0x1afed4=_0x1f5521;this['_handler'][_0x1afed4(0x1f5)](this[_0x1afed4(0x174)]);}['_onConflict'](_0x57e6ba){const _0x31d1fc=_0x1f5521;return this['_clearScheduledTask'](),this[_0x31d1fc(0x391)][_0x31d1fc(0x351)](X,this['unitID'],this['type'],null,this[_0x31d1fc(0x1fd)],this['_handler'],_0x57e6ba);}[_0x1f5521(0x3db)](_0x23c5d3,_0x3be7aa){const _0x4fb8b7=_0x1f5521;var _0x4264ba;_0x23c5d3===((_0x4264ba=this[_0x4fb8b7(0x174)])==null?void 0x0:_0x4264ba[_0x4fb8b7(0x2f7)])&&(this[_0x4fb8b7(0x3a6)](),this[_0x4fb8b7(0x21c)]=_0x3be7aa===0x0?0x3e8:Math[_0x4fb8b7(0x23c)](_0x3be7aa*0x2,mn),this[_0x4fb8b7(0x20d)]+=this[_0x4fb8b7(0x21c)]);}[_0x1f5521(0x25b)](){const _0x5d91d1=_0x1f5521;var _0xb828ba;(_0xb828ba=this[_0x5d91d1(0x248)])==null||_0xb828ba['unsubscribe'](),this[_0x5d91d1(0x21c)]=0x0,this[_0x5d91d1(0x20d)]=0x0;}};Y=fn=H([V(0x6,_0x32c7b6(_0xd2295f)),V(0x7,_0x32c7b6(_0x21335b)),V(0x8,_0x24738d),V(0x9,_0x3849f9),V(0xa,_0x30bd2c),V(0xb,_0x143b1e),V(0xc,_0x100ce1(U))],Y);let X=class extends G{constructor(_0x114d8a,_0x37d48a,_0x1ea857,_0x7eb290,_0x2808af,_0x348bc3=!0x1,_0x316b4f,_0x3b7b55,_0x28f17c,_0x2f4d48,_0x5e6ced,_0x9dfdd5,_0x529ee0){const _0x2ca5c4=_0x1f5521;super(_0x114d8a,_0x37d48a,_0x1ea857,_0x7eb290,_0x2808af,_0x3b7b55,_0x28f17c,_0x2f4d48,_0x529ee0),this[_0x2ca5c4(0x36f)]=_0x348bc3,this['_permissionService']=_0x316b4f,this[_0x2ca5c4(0x24c)]=_0x5e6ced,this[_0x2ca5c4(0x3a1)]=_0x9dfdd5,this['localCacheService']=_0x529ee0,z(this,_0x2ca5c4(0x1fc),_0x2ca5c4(0x2ec)),this[_0x2ca5c4(0x189)](),this[_0x2ca5c4(0x3df)](),this[_0x2ca5c4(0x310)]();}[_0x1f5521(0x2b1)](){return this;}[_0x1f5521(0x1c8)](){return this;}[_0x1f5521(0x2f5)](){return this;}[_0x1f5521(0x275)](){return this;}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){return this;}['toggleOnline'](){return this;}[_0x1f5521(0x3a6)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearLocalCache'](){const _0x436d98=_0x1f5521;var _0x563edb,_0x4d3996,_0x19843d;(_0x563edb=this[_0x436d98(0x2ab)])==null||(_0x4d3996=_0x563edb[_0x436d98(0x268)])==null||(_0x4d3996=_0x4d3996[_0x436d98(0x359)](_0x563edb,this['unitID'],_0x436d98(0x2ec)))==null||_0x4d3996[_0x436d98(0x39b)](()=>void 0x0),(_0x19843d=this[_0x436d98(0x2ab)])==null||_0x19843d['updateOfflineData'](this[_0x436d98(0x322)],this[_0x436d98(0x258)],null,[]);}[_0x1f5521(0x189)](){const _0x393a50=_0x1f5521;this[_0x393a50(0x36f)]?this[_0x393a50(0x3a1)][_0x393a50(0x205)]({'id':_0x393a50(0x3af)}):this[_0x393a50(0x3a1)]['emitEvent']({'id':'CONFLICT'});}[_0x1f5521(0x310)](){const _0x92ede7=_0x1f5521;this[_0x92ede7(0x1ed)][_0x92ede7(0x18c)](new _0x57781e(this[_0x92ede7(0x322)])['id'],!0x1);}};X=H([V(0x6,_0x32c7b6(_0x51823a)),V(0x7,_0x24738d),V(0x8,_0x143b1e),V(0x9,_0x32c7b6(_0x21335b)),V(0xa,_0x32c7b6(_0xed8942)),V(0xb,_0x32c7b6(B)),V(0xc,_0x100ce1(U))],X);let Z=class extends G{constructor(_0x1c03b3,_0xe420c5,_0x5719c4,_0x2aeb35,_0x389917,_0x37c193,_0x339046,_0x8c7212,_0x28f175,_0x78865b){const _0x2d618b=_0x1f5521;super(_0x1c03b3,_0xe420c5,_0x5719c4,_0x2aeb35,_0x389917,_0x8c7212,_0x28f175,_0x339046,_0x78865b),this[_0x2d618b(0x391)]=_0x37c193,z(this,_0x2d618b(0x1fc),_0x2d618b(0x269));}[_0x1f5521(0x2b1)](_0x1d2d74){const _0x35bd7b=_0x1f5521;return this[_0x35bd7b(0x1fd)][_0x35bd7b(0x1cf)](_0x1d2d74),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xdf37b7){const _0x86af44=_0x1f5521;throw Error(_0x86af44(0x21a));}[_0x1f5521(0x2f5)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x1f5521(0x275)](){const _0x2a095c=_0x1f5521;throw Error(_0x2a095c(0x17d));}[_0x1f5521(0x314)](){return this;}['toggleOffline'](){return this;}[_0x1f5521(0x210)](){const _0x2835cc=_0x1f5521;let {_injector:_0x3a36c1,_pendingMutations:_0x43c80f,_awaitingChangeset:_0x46d065,unitID:_0x5440a3,_handler:_0x1a450a,type:_0x4423f5}=this,_0x54ea1d=gn(_0x3a36c1,_0x5440a3,_0x4423f5,_0x46d065,_0x43c80f,_0x1a450a);return _0x54ea1d instanceof q?_0x54ea1d[_0x2835cc(0x2be)]():(_0x54ea1d instanceof Y||_0x54ea1d instanceof J)&&_0x54ea1d['resend'](),_0x54ea1d;}[_0x1f5521(0x3a6)](){const _0x1e1b9b=_0x1f5521;throw Error(_0x1e1b9b(0x3d1));}};Z=H([V(0x5,_0x32c7b6(_0xd2295f)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x24738d),V(0x8,_0x143b1e),V(0x9,_0x100ce1(U))],Z);let Q=class extends G{constructor(_0x94f7a1,_0x336b94,_0x5b0b30,_0x59b50d,_0x378fe7,_0x4fe006,_0x344781,_0x1aa62c,_0x544728,_0x21f295,_0x374e16,_0x5dd30d,_0x2dac2d,_0x1317f0){const _0x2fff32=_0x1f5521;super(_0x94f7a1,_0x336b94,_0x5b0b30,_0x59b50d,_0x344781,_0x374e16,_0x5dd30d,_0x544728,_0x1317f0),this[_0x2fff32(0x15a)]=_0x378fe7,this[_0x2fff32(0x238)]=_0x4fe006,this['_injector']=_0x1aa62c,this[_0x2fff32(0x2dd)]=_0x21f295,this['_transformService']=_0x2dac2d,this[_0x2fff32(0x263)]=_0x1317f0,z(this,_0x2fff32(0x1fc),_0x2fff32(0x180));}[_0x1f5521(0x2eb)](_0x25cbf0){const _0x513ae8=_0x1f5521;try{if(this[_0x513ae8(0x175)](_0x25cbf0)[_0x513ae8(0x293)])throw Error(_0x513ae8(0x18f));if(this[_0x513ae8(0x175)]([...this[_0x513ae8(0x238)]][_0x513ae8(0x18b)]((_0x4ca36a,_0x33b843)=>_0x4ca36a[_0x513ae8(0x145)]-_0x33b843[_0x513ae8(0x145)]))[_0x513ae8(0x293)])return this[_0x513ae8(0x238)]=[],this['_updateLocalCache'](),this[_0x513ae8(0x2c7)][_0x513ae8(0x302)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x4fd90a=this['_awaitingChangeset'],_0x23c900=this[_0x513ae8(0x1fd)],_0x27118d;if(_0x4fd90a&&_0x23c900[_0x513ae8(0x316)]!==0x0)_0x27118d=this[_0x513ae8(0x391)][_0x513ae8(0x351)](Y,this['unitID'],this[_0x513ae8(0x258)],_0x4fd90a,_0x23c900,this[_0x513ae8(0x2c7)],void 0x0);else{if(_0x4fd90a&&_0x23c900[_0x513ae8(0x316)]===0x0)_0x4fd90a[_0x513ae8(0x1a8)]=this[_0x513ae8(0x285)](),_0x27118d=this[_0x513ae8(0x391)][_0x513ae8(0x351)](J,this[_0x513ae8(0x322)],this[_0x513ae8(0x258)],_0x4fd90a,this[_0x513ae8(0x2c7)]);else{if(_0x23c900[_0x513ae8(0x316)]!==0x0){let _0x48f1cb=this[_0x513ae8(0x391)][_0x513ae8(0x351)](q,this[_0x513ae8(0x322)],this[_0x513ae8(0x258)],_0x23c900,this[_0x513ae8(0x2c7)]);_0x48f1cb[_0x513ae8(0x2be)](),_0x27118d=_0x48f1cb;}else _0x27118d=this[_0x513ae8(0x391)][_0x513ae8(0x351)](K,this[_0x513ae8(0x322)],this[_0x513ae8(0x258)],this[_0x513ae8(0x2c7)]);}}return _0x27118d['_updateLocalCache'](),_0x27118d;}catch(_0x2a7e36){return this[_0x513ae8(0x2dd)][_0x513ae8(0x2fc)](_0x513ae8(0x271),_0x513ae8(0x188),_0x2a7e36),this[_0x513ae8(0x391)][_0x513ae8(0x351)](X,this[_0x513ae8(0x322)],this['type'],this[_0x513ae8(0x174)],this['_pendingMutations'],this[_0x513ae8(0x2c7)],!0x1);}}[_0x1f5521(0x175)](_0x4c3738){const _0x473013=_0x1f5521;this[_0x473013(0x29f)]();for(let _0x4759e4=0x0;_0x4759e4<_0x4c3738[_0x473013(0x316)];_0x4759e4++){let _0x35c9e4=_0x4c3738[_0x4759e4],_0xb04f3b=this[_0x473013(0x285)]();if(!(_0x35c9e4[_0x473013(0x145)]<=_0xb04f3b)){if(_0x35c9e4[_0x473013(0x145)]>_0xb04f3b+0x1)return{'missingChangesets':!0x0};if(this[_0x473013(0x1b6)](_0x35c9e4)){this[_0x473013(0x276)]();continue;}this[_0x473013(0x1cd)](_0x35c9e4),this[_0x473013(0x29f)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x5ae17e){const _0x56e04c=_0x1f5521;let _0x2f96a2=_0x5ae17e,_0x100ff9=this['_awaitingChangeset'];if(_0x100ff9){let _0x3328f9=this[_0x56e04c(0x2c5)][_0x56e04c(0x199)]([_0x5ae17e],[_0x100ff9],!0x1);if(!_0x32b26c(_0x3328f9))throw _0x3328f9[_0x56e04c(0x2fc)];_0x2f96a2=_0x3328f9[_0x56e04c(0x1c6)][0x0],_0x100ff9=_0x3328f9[_0x56e04c(0x183)][0x0];}let _0x3416e0=this[_0x56e04c(0x1fd)];if(_0x3416e0[_0x56e04c(0x316)]){let _0x453211=this[_0x56e04c(0x2c5)]['transformMutationsWithChangeset'](_0x2f96a2,_0x3416e0);if(!_0x71163b(_0x453211))throw _0x453211[_0x56e04c(0x2fc)];_0x2f96a2=_0x453211[_0x56e04c(0x1c6)],_0x3416e0=_0x453211[_0x56e04c(0x242)];}this[_0x56e04c(0x308)](_0x2f96a2),_0x100ff9&&(_0x100ff9[_0x56e04c(0x1a8)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0x100ff9,this[_0x56e04c(0x1fd)]=_0x3416e0;}['_acknowledgeAwaitingIfReady'](){const _0xe2f71e=_0x1f5521;if(!this['_awaitingChangeset']||this[_0xe2f71e(0x15a)]==null)return;let _0x27bf82=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x27bf82)throw Error(_0xe2f71e(0x15d)+this[_0xe2f71e(0x15a)]+'.');this['_acknowledgedAwaitingRevision']===_0x27bf82+0x1&&this[_0xe2f71e(0x276)]();}['_acknowledgeAwaiting'](){const _0x3ccad5=_0x1f5521;this[_0x3ccad5(0x2e9)](),this[_0x3ccad5(0x174)]=null,this[_0x3ccad5(0x15a)]=null;}[_0x1f5521(0x1b6)](_0x356fb0){const _0x22b263=_0x1f5521;let _0x54dd31=this['_awaitingChangeset'];return!_0x54dd31||!_0x54dd31['sid']||_0x54dd31['reqId']===null||_0x54dd31['reqId']===void 0x0?!0x1:_0x356fb0[_0x22b263(0x322)]===_0x54dd31[_0x22b263(0x322)]&&_0x356fb0[_0x22b263(0x3cb)]===_0x54dd31[_0x22b263(0x3cb)]&&_0x356fb0[_0x22b263(0x2f7)]===_0x54dd31[_0x22b263(0x2f7)];}[_0x1f5521(0x3a6)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1f5521(0x2b1)](_0x194071){const _0x5ca2b8=_0x1f5521;return this['_pendingMutations'][_0x5ca2b8(0x1cf)](_0x194071),this;}[_0x1f5521(0x1c8)](_0x312574){const _0x5dbae8=_0x1f5521;return this['_queuedRemoteChangesets'][_0x5dbae8(0x1cf)](_0x312574),this;}['onRemoteAck'](_0x971d55){const _0x2d0585=_0x1f5521;if(this[_0x2d0585(0x174)]){let _0x264f98=this[_0x2d0585(0x285)]();return _0x971d55[_0x2d0585(0x145)]<=_0x264f98||(_0x264f98+0x1===_0x971d55[_0x2d0585(0x145)]?(this[_0x2d0585(0x2e9)](),this[_0x2d0585(0x174)]=null,this[_0x2d0585(0x15a)]=null):this[_0x2d0585(0x15a)]=_0x971d55[_0x2d0585(0x145)]),this;}if(_0x971d55[_0x2d0585(0x145)]<=this[_0x2d0585(0x285)]())return this;throw Error(_0x2d0585(0x1bb));}[_0x1f5521(0x275)](_0x176b3d){const _0x38e28d=_0x1f5521;return this[_0x38e28d(0x27e)](!!(_0x176b3d!=null&&_0x176b3d[_0x38e28d(0x282)]));}['onRemoteRetry'](){return this;}[_0x1f5521(0x1f1)](){const _0x217551=_0x1f5521;return this[_0x217551(0x391)]['createInstance'](Z,this[_0x217551(0x322)],this['type'],this[_0x217551(0x174)],this[_0x217551(0x1fd)],this[_0x217551(0x2c7)]);}[_0x1f5521(0x210)](){return this;}[_0x1f5521(0x27e)](_0x52d654){const _0x496b0a=_0x1f5521;return this[_0x496b0a(0x391)]['createInstance'](X,this[_0x496b0a(0x322)],this[_0x496b0a(0x258)],this['_awaitingChangeset'],this[_0x496b0a(0x1fd)],this[_0x496b0a(0x2c7)],_0x52d654);}};Q=H([V(0x7,_0x32c7b6(_0xd2295f)),V(0x8,_0x32c7b6(_0x21335b)),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x143b1e),V(0xc,_0x30bd2c),V(0xd,_0x100ce1(U))],Q);function gn(_0x55e892,_0x45ba61,_0x5b368a,_0x15da9a,_0x21cd02,_0x51e18d){const _0x34bb03=_0x1f5521;return _0x15da9a&&_0x21cd02[_0x34bb03(0x316)]?_0x55e892['createInstance'](Y,_0x45ba61,_0x5b368a,_0x15da9a,_0x21cd02,_0x51e18d,void 0x0):_0x15da9a?_0x55e892[_0x34bb03(0x351)](J,_0x45ba61,_0x5b368a,_0x15da9a,_0x51e18d):_0x21cd02['length']?_0x55e892[_0x34bb03(0x351)](q,_0x45ba61,_0x5b368a,_0x21cd02,_0x51e18d):_0x55e892[_0x34bb03(0x351)](K,_0x45ba61,_0x5b368a,_0x51e18d);}let $=class extends _0x2fb3e4{get[_0x1f5521(0x2e4)](){const _0x236f2f=_0x1f5521;return this[_0x236f2f(0x38b)];}constructor(_0x15259a,_0xaa74ca,_0x362943,_0x427c86,_0x58dc6f,_0x22891b,_0x1762a3,_0x39294f,_0x209572,_0x17e9db,_0x56d45b,_0x5e1c35,_0x1a2969,_0x2fe06f){const _0x5598e7=_0x1f5521;super(),this[_0x5598e7(0x322)]=_0x15259a,this[_0x5598e7(0x36b)]=_0xaa74ca,this[_0x5598e7(0x34f)]=_0x362943,this[_0x5598e7(0x391)]=_0x427c86,this['_compressMutationService']=_0x58dc6f,this['_localeService']=_0x22891b,this['_revisionService']=_0x1762a3,this[_0x5598e7(0x311)]=_0x39294f,this[_0x5598e7(0x329)]=_0x209572,this[_0x5598e7(0x2dd)]=_0x17e9db,this[_0x5598e7(0x320)]=_0x56d45b,this[_0x5598e7(0x1ed)]=_0x5e1c35,this[_0x5598e7(0x3ae)]=_0x1a2969,this[_0x5598e7(0x2ab)]=_0x2fe06f,z(this,_0x5598e7(0x169),new _0x21afa9(null)),z(this,_0x5598e7(0x278),this[_0x5598e7(0x169)][_0x5598e7(0x37a)]()),z(this,'_state',void 0x0),z(this,_0x5598e7(0x255),!0x1),z(this,_0x5598e7(0x3d6),''),z(this,_0x5598e7(0x1a3),0x0),z(this,_0x5598e7(0x232),this['state$'][_0x5598e7(0x220)](_0x185b9d(_0x262dbd=>_0x262dbd?_0x262dbd['status']:_0x5598e7(0x269)),_0x4f20dd({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x5598e7(0x22b),!0x1),z(this,_0x5598e7(0x159),[]);}async[_0x1f5521(0x2c2)](){const _0xcfdfc4=_0x1f5521;if(this[_0xcfdfc4(0x2e4)])throw Error(_0xcfdfc4(0x19d));await this['_init']();}[_0x1f5521(0x182)](){const _0x16f692=_0x1f5521;return this[_0x16f692(0x255)]=!0x0,_0x1e0938(()=>{const _0x345ac5=_0x16f692;this[_0x345ac5(0x255)]=!0x1,this[_0x345ac5(0x2aa)]();});}['onLocalMutation'](_0x33e752){this['_onLocalMutation'](_0x33e752);}['_updateState'](_0x21f190){const _0x808a03=_0x1f5521;this[_0x808a03(0x38b)]=_0x21f190,this[_0x808a03(0x169)][_0x808a03(0x1ae)](_0x21f190);}async['_init'](){const _0x829c8=_0x1f5521;if(this[_0x829c8(0x2ff)](await this['_createInitialState']()),this[_0x829c8(0x3ae)]){var _0x55cb6f;(_0x55cb6f=this[_0x829c8(0x3ae)])==null||_0x55cb6f['editingUnit'](this[_0x829c8(0x322)]),this[_0x829c8(0x34e)](this[_0x829c8(0x3ae)][_0x829c8(0x1f4)](this['unitID'])[_0x829c8(0x2dc)](_0x4820da=>{const _0x3c3ad1=_0x829c8;this[_0x3c3ad1(0x2dd)]['debug'](_0x3c3ad1(0x394),_0x3c3ad1(0x181),_0x4820da),_0x4820da===0x1?(this[_0x3c3ad1(0x311)][_0x3c3ad1(0x205)]({'id':_0x3c3ad1(0x2af)}),this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x18c)](new _0x57781e(this[_0x3c3ad1(0x322)])['id'],!0x1),this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x207)](!0x1)):(this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x18c)](new _0x57781e(this[_0x3c3ad1(0x322)])['id'],!0x0),this[_0x3c3ad1(0x1ed)][_0x3c3ad1(0x207)](!0x0));}));}let _0x10ef51=!0x1;return this[_0x829c8(0x34e)](this[_0x829c8(0x36b)][_0x829c8(0x30a)][_0x829c8(0x2dc)](_0x4ce756=>{const _0x4c3359=_0x829c8;_0x4ce756===0x3?this[_0x4c3359(0x1ec)](_0x10ef51):_0x4ce756===0x2&&(_0x10ef51=!0x0,this[_0x4c3359(0x142)]());})),this['disposeWithMe'](this[_0x829c8(0x36b)][_0x829c8(0x3d5)][_0x829c8(0x2dc)](_0x462695=>{const _0x4a42fb=_0x829c8;try{switch(_0x462695[_0x4a42fb(0x1b1)]){case _0x28cc07[_0x4a42fb(0x1ff)]:this[_0x4a42fb(0x260)](_0x50c9bb(_0x462695['data']));break;case _0x28cc07[_0x4a42fb(0x19a)]:this[_0x4a42fb(0x2e0)](_0x462695[_0x4a42fb(0x2cc)]);break;case _0x28cc07[_0x4a42fb(0x1c5)]:this[_0x4a42fb(0x2f0)]();break;case _0x28cc07[_0x4a42fb(0x14b)]:this[_0x4a42fb(0x2e5)](_0x462695[_0x4a42fb(0x2cc)]);break;case _0x28cc07['PSEUDO_FETCH_MISSING_RESULT']:this['_onFetchMissResult'](_0x462695[_0x4a42fb(0x2cc)][_0x4a42fb(0x25d)][_0x4a42fb(0x2ea)](_0x32c1f2=>_0x50c9bb(_0x32c1f2)));break;case _0x28cc07[_0x4a42fb(0x3a7)]:this[_0x4a42fb(0x2f0)]({'isPermissionRej':!0x0});break;case _0x28cc07[_0x4a42fb(0x34b)]:break;}}catch(_0x42adb5){throw console[_0x4a42fb(0x2fc)](_0x4a42fb(0x357),_0x42adb5),_0x42adb5;}})),this[_0x829c8(0x38b)];}['_unlockTransition'](){const _0x4a2d8e=_0x1f5521;this[_0x4a2d8e(0x22b)]=!0x1;}[_0x1f5521(0x283)](){const _0x4f4d1b=_0x1f5521;if(this[_0x4f4d1b(0x22b)])throw Error(_0x4f4d1b(0x370));this[_0x4f4d1b(0x22b)]=!0x0;}[_0x1f5521(0x195)](_0xf2461a){const _0x2a117b=_0x1f5521;this[_0x2a117b(0x283)](),this[_0x2a117b(0x2ff)](this['_state'][_0x2a117b(0x2b1)](_0xf2461a)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x43732c){const _0x16481d=_0x1f5521;if(!(_0x43732c[_0x16481d(0x145)]<=this[_0x16481d(0x247)]['getCurrentRevOfUnit'](this[_0x16481d(0x322)]))){if(this[_0x16481d(0x255)]){this[_0x16481d(0x159)][_0x16481d(0x1cf)](_0x43732c);return;}this[_0x16481d(0x1a4)](_0x43732c);}}[_0x1f5521(0x2aa)](){const _0x1eb10d=_0x1f5521;this[_0x1eb10d(0x159)]['forEach'](_0x2b8d60=>this[_0x1eb10d(0x1a4)](_0x2b8d60)),this[_0x1eb10d(0x159)]=[];}[_0x1f5521(0x1a4)](_0x4a3ec5){const _0x32f66a=_0x1f5521;let _0x2382ef=this[_0x32f66a(0x187)][_0x32f66a(0x165)][_0x32f66a(0x32a)](this[_0x32f66a(0x187)][_0x32f66a(0x165)][_0x32f66a(0x304)]()['COMPRESS_MUTATION_APPLY'])(_0x4a3ec5[_0x32f66a(0x17c)],null)||_0x4a3ec5[_0x32f66a(0x17c)],_0x57f138={..._0x4a3ec5,'mutations':_0x2382ef};this[_0x32f66a(0x283)](),this['_updateState'](this[_0x32f66a(0x38b)]['onRemoteChangeset'](_0x57f138)),this[_0x32f66a(0x3dc)]();}['_onRemoteACK'](_0x6ed843){const _0x2d3865=_0x1f5521;this[_0x2d3865(0x283)](),this[_0x2d3865(0x2ff)](this['_state']['onRemoteAck'](_0x6ed843)),this['_unlockTransition']();}['_onRemoteRejected'](_0xe2c4b8){const _0x36d11c=_0x1f5521;this['_lockTransition'](),this[_0x36d11c(0x2ff)](this['_state']['onRemoteRej'](_0xe2c4b8)),this['_unlockTransition']();}[_0x1f5521(0x2e5)](_0x2b29a4){const _0x194c26=_0x1f5521;this[_0x194c26(0x283)](),this[_0x194c26(0x2ff)](this[_0x194c26(0x38b)]['onRemoteRetry'](_0x2b29a4)),this[_0x194c26(0x3dc)]();}[_0x1f5521(0x31a)](_0xa97d4c){const _0x5d0836=_0x1f5521;if(!(this[_0x5d0836(0x38b)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x5c11fc=_0xa97d4c[_0x5d0836(0x2ea)](_0xd7dcfc=>{const _0x2bbbc0=_0x5d0836;let _0x3780a1=this[_0x2bbbc0(0x187)][_0x2bbbc0(0x165)][_0x2bbbc0(0x32a)](this[_0x2bbbc0(0x187)][_0x2bbbc0(0x165)][_0x2bbbc0(0x304)]()[_0x2bbbc0(0x161)])(_0xd7dcfc[_0x2bbbc0(0x17c)],null)||_0xd7dcfc[_0x2bbbc0(0x17c)];return{..._0xd7dcfc,'mutations':_0x3780a1};});this['_lockTransition'](),this[_0x5d0836(0x2ff)](this['_state'][_0x5d0836(0x2eb)](_0x5c11fc)),this[_0x5d0836(0x3dc)]();}[_0x1f5521(0x142)](){const _0x487efe=_0x1f5521;this[_0x487efe(0x283)](),this['_updateState'](this[_0x487efe(0x38b)][_0x487efe(0x1f1)]()),this[_0x487efe(0x3dc)]();}[_0x1f5521(0x1ec)](_0x2a5d3f=!0x1){const _0x4f3fb5=_0x1f5521;this['_lockTransition'](),this['_updateState'](this[_0x4f3fb5(0x38b)][_0x4f3fb5(0x210)]()),this[_0x4f3fb5(0x3dc)]();let _0x406137=this[_0x4f3fb5(0x38b)];_0x2a5d3f&&_0x406137 instanceof K&&(this[_0x4f3fb5(0x283)](),this[_0x4f3fb5(0x2ff)](_0x406137['fetchMiss']()),this[_0x4f3fb5(0x3dc)]());}async[_0x1f5521(0x398)](){return new Promise(_0x4243ef=>{const _0x38d73a=_0x2b9e;this[_0x38d73a(0x36b)][_0x38d73a(0x30a)]['pipe'](_0x14e08c(0x1))[_0x38d73a(0x2dc)](async _0x1795fb=>{const _0x2df588=_0x38d73a;_0x4243ef(await this[_0x2df588(0x2c1)](_0x1795fb===0x3));});});}[_0x1f5521(0x156)](){const _0x520e89=_0x1f5521;let _0x303507=this[_0x520e89(0x322)];return{'onStateChange':(_0x576243,_0x49fe48)=>{const _0x3f904f=_0x520e89;if(_0x576243!==this[_0x3f904f(0x38b)])throw Error(_0x3f904f(0x202)+_0x576243[_0x3f904f(0x1fc)]+_0x3f904f(0x2fd)+_0x49fe48['status']+_0x3f904f(0x1e0)+this[_0x3f904f(0x38b)]['status']);this['_updateState'](_0x49fe48);},'onSendChangeset':_0x39bdfc=>{const _0xf55c9=_0x520e89;_0x39bdfc[_0xf55c9(0x3cb)]||(_0x39bdfc[_0xf55c9(0x3cb)]=this['_changesetSessionId'],_0x39bdfc[_0xf55c9(0x2f7)]=++this[_0xf55c9(0x1a3)]);let _0x22ab0d={'eventID':_0x28cc07[_0xf55c9(0x168)],'data':{'unitID':_0x39bdfc[_0xf55c9(0x322)],'unitType':this[_0xf55c9(0x34f)],'changeset':_0x39bdfc,'memberID':this['session'][_0xf55c9(0x371)]()}};this[_0xf55c9(0x36b)][_0xf55c9(0x3bb)](_0x22ab0d,this[_0xf55c9(0x322)]);},'onMissingChangesets':({from:_0x346302,to:_0x520ffd})=>{const _0x22bb5e=_0x520e89;this[_0x22bb5e(0x2dd)][_0x22bb5e(0x35a)](_0x22bb5e(0x394),'fetching\x20missing\x20changesets\x20from\x20'+_0x346302+_0x22bb5e(0x19c)+_0x520ffd);let _0x59bdd9={'eventID':_0x28cc07['FETCH_MISSING'],'data':{'unitID':_0x303507,'unitType':this['_type'],'from':_0x346302,'to':_0x520ffd}};this[_0x22bb5e(0x36b)][_0x22bb5e(0x3bb)](_0x59bdd9,this[_0x22bb5e(0x322)]);}};}async['_createInitialStateImpl'](_0x41fa40){const _0x55a2fc=_0x1f5521;var _0x1ea1b1;let _0x290b45=await((_0x1ea1b1=this['_localCacheService'])==null?void 0x0:_0x1ea1b1[_0x55a2fc(0x363)](this[_0x55a2fc(0x322)])),_0x170d25=(_0x290b45==null?void 0x0:_0x290b45[_0x55a2fc(0x17c)])??[],_0x18a72f=(_0x290b45==null?void 0x0:_0x290b45['awaitingChangeset'])??null,_0x2f3621=!!(_0x18a72f!=null&&_0x18a72f[_0x55a2fc(0x3cb)])&&!!(_0x18a72f!=null&&_0x18a72f[_0x55a2fc(0x2f7)]);this[_0x55a2fc(0x3d6)]=_0x2f3621?_0x18a72f['sid']:_0xf5037d(),this[_0x55a2fc(0x1a3)]=_0x2f3621?_0x18a72f['reqId']:0x0;let _0x1cca9d=this['unitID'];try{this['_replayCachedMutations'](_0x18a72f,_0x170d25);}catch(_0x25068c){this[_0x55a2fc(0x2dd)][_0x55a2fc(0x2fc)](_0x25068c);}let _0x4a697b=this[_0x55a2fc(0x156)]();if(_0x41fa40){let _0x4955b9=gn(this[_0x55a2fc(0x391)],_0x1cca9d,this[_0x55a2fc(0x34f)],_0x18a72f,_0x170d25,_0x4a697b);return _0x4955b9 instanceof q?_0x4955b9[_0x55a2fc(0x2be)]():(_0x4955b9 instanceof Y||_0x4955b9 instanceof J)&&_0x4955b9[_0x55a2fc(0x3a6)](),_0x4955b9;}return this['_injector'][_0x55a2fc(0x351)](Z,_0x1cca9d,this['_type'],_0x18a72f,_0x170d25,_0x4a697b);}[_0x1f5521(0x228)](_0x3191b2,_0x3d9fdd){const _0x59b947=_0x1f5521;var _0x894461,_0x205d0b;let _0x1ce3f7=this[_0x59b947(0x187)]['interceptor'][_0x59b947(0x32a)](this[_0x59b947(0x187)][_0x59b947(0x165)][_0x59b947(0x304)]()[_0x59b947(0x161)]);(_0x894461=_0x1ce3f7((_0x3191b2==null?void 0x0:_0x3191b2[_0x59b947(0x17c)])||[],null))==null||_0x894461['forEach'](_0x58f84a=>this[_0x59b947(0x320)]['executeCommand'](_0x58f84a['id'],_0x58f84a[_0x59b947(0x366)])),(_0x205d0b=_0x1ce3f7(_0x3d9fdd||[],null))==null||_0x205d0b[_0x59b947(0x154)](_0x307fa2=>this['_commandService'][_0x59b947(0x224)](_0x307fa2['id'],_0x307fa2[_0x59b947(0x366)]));}};$=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],$);let _n=class extends ${constructor(_0x4110d5,_0x202745,_0x5b6136,_0x8e11a7,_0x29dbf3,_0x2e031c,_0xfdbfd6,_0x19b47a,_0x3e83df,_0x3aef70,_0x50dbc7,_0x32faeb,_0xac168a,_0x1d0cfa,_0x5f48e8){const _0xe5cacb=_0x1f5521;super(_0x4110d5,_0x5b6136,_0x202745,_0x8e11a7,_0x29dbf3,_0x2e031c,_0xfdbfd6,_0x19b47a,_0x3e83df,_0x3aef70,_0x50dbc7,_0x32faeb,_0x1d0cfa,_0x5f48e8),this[_0xe5cacb(0x322)]=_0x4110d5,this['type']=_0x202745,this[_0xe5cacb(0x284)]=_0xac168a,z(this,_0xe5cacb(0x3c1),null);}['addHandlerCallback'](_0x4b85ec){const _0x215d72=_0x1f5521;this[_0x215d72(0x3c1)]=_0x4b85ec;}[_0x1f5521(0x1ee)](){const _0x4a5284=_0x1f5521;this[_0x4a5284(0x3c1)]=null,super[_0x4a5284(0x1ee)]();}['_createHandler'](){const _0x3534b7=_0x1f5521;let _0x141d51=super[_0x3534b7(0x156)]();return _0x141d51['onTransformIME']=_0x1e9741=>{const _0x161ccd=_0x3534b7;var _0x534f5a,_0x386e82;return(_0x534f5a=this[_0x161ccd(0x3c1)])==null||(_0x386e82=_0x534f5a[_0x161ccd(0x1ac)])==null?void 0x0:_0x386e82['call'](_0x534f5a,_0x1e9741);},_0x141d51[_0x3534b7(0x31e)]=_0x18669e=>{const _0x36f94f=_0x3534b7;var _0x84acfa,_0x558384;return(_0x84acfa=this[_0x36f94f(0x3c1)])==null||(_0x558384=_0x84acfa[_0x36f94f(0x31e)])==null?void 0x0:_0x558384[_0x36f94f(0x359)](_0x84acfa,_0x18669e);},_0x141d51[_0x3534b7(0x339)]=_0x582c73=>{const _0x44c810=_0x3534b7;var _0x159e75,_0x2c5660;return(_0x159e75=this[_0x44c810(0x3c1)])==null||(_0x2c5660=_0x159e75[_0x44c810(0x339)])==null?void 0x0:_0x2c5660[_0x44c810(0x359)](_0x159e75,_0x582c73);},_0x141d51[_0x3534b7(0x29b)]=_0x349e5c=>{const _0x130b3f=_0x3534b7;var _0x5c0d02,_0x2a2f09;return(_0x5c0d02=this[_0x130b3f(0x3c1)])==null||(_0x2a2f09=_0x5c0d02[_0x130b3f(0x29b)])==null?void 0x0:_0x2a2f09[_0x130b3f(0x359)](_0x5c0d02,_0x349e5c);},_0x141d51[_0x3534b7(0x15b)]=_0x18dead=>{const _0x9e41bb=_0x3534b7;var _0x39b3a4,_0x2d1bbb;return((_0x39b3a4=this[_0x9e41bb(0x3c1)])==null||(_0x2d1bbb=_0x39b3a4[_0x9e41bb(0x15b)])==null?void 0x0:_0x2d1bbb[_0x9e41bb(0x359)](_0x39b3a4,_0x18dead))??_0x18dead;},_0x141d51[_0x3534b7(0x236)]=_0x1a0150=>{const _0x3d1083=_0x3534b7;var _0x44e003,_0x21a95c;return((_0x44e003=this[_0x3d1083(0x3c1)])==null||(_0x21a95c=_0x44e003[_0x3d1083(0x236)])==null?void 0x0:_0x21a95c['call'](_0x44e003,_0x1a0150))??_0x1a0150;},_0x141d51;}async['_init'](){const _0x559f6d=_0x1f5521;let _0x270051=await super['_init']();return this[_0x559f6d(0x34e)](this['_docStateChangeManagerService'][_0x559f6d(0x1e8)]['subscribe'](_0xab2bef=>{const _0x29d04d=_0x559f6d;if(_0xab2bef==null||_0xab2bef[_0x29d04d(0x2c4)]!==this[_0x29d04d(0x322)])return;let {commandId:_0xcdd74b,redoState:_0x47d2d1,unitId:_0x1f4adc}=_0xab2bef,_0x59e87c={'id':_0xcdd74b,'type':_0x3ac237[_0x29d04d(0x38a)],'params':{'unitId':_0x1f4adc,'actions':_0x47d2d1[_0x29d04d(0x1d6)],'textRanges':null}};this['_onLocalMutation'](_0x59e87c);})),this['disposeWithMe'](this[_0x559f6d(0x320)][_0x559f6d(0x277)]((_0x4d2302,_0x1e6e69)=>{const _0x1feacd=_0x559f6d;if(_0x4d2302[_0x1feacd(0x258)]!==_0x3ac237[_0x1feacd(0x38a)]||_0x1e6e69!=null&&_0x1e6e69['fromCollab']||_0x1e6e69!=null&&_0x1e6e69[_0x1feacd(0x26c)]||_0x4d2302['id']===_0x47e1e8['id'])return;let _0x15a4d5=_0x4d2302[_0x1feacd(0x366)];if((_0x15a4d5==null?void 0x0:_0x15a4d5['unitId'])!==this[_0x1feacd(0x322)])return;let _0x12b9ff=_0x4d2302,_0x5040ae=this[_0x1feacd(0x187)][_0x1feacd(0x165)][_0x1feacd(0x32a)](this['_compressMutationService'][_0x1feacd(0x165)]['getInterceptPoints']()[_0x1feacd(0x2e2)])([_0x12b9ff],this[_0x1feacd(0x329)])||[_0x12b9ff];this[_0x1feacd(0x195)](_0x5040ae[0x0]);})),_0x270051;}};_n=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x32c7b6(_0x3382a8)),V(0xd,_0x100ce1(W)),V(0xe,_0x100ce1(U))],_n);let vn=class extends ${constructor(_0x54836d,_0x3b9c13,_0x4d32aa,_0x99b26d,_0x44ead6,_0x6bce31,_0x148112,_0x3befb2,_0x326cab,_0x49ba80,_0x2507ab,_0x46a4a6,_0x1a2a84,_0x2e90e1){const _0x126a3a=_0x1f5521;super(_0x54836d,_0x4d32aa,_0x3b9c13,_0x99b26d,_0x44ead6,_0x6bce31,_0x148112,_0x3befb2,_0x326cab,_0x49ba80,_0x2507ab,_0x46a4a6,_0x1a2a84,_0x2e90e1),this['unitID']=_0x54836d,this[_0x126a3a(0x258)]=_0x3b9c13;}async[_0x1f5521(0x29a)](){const _0x342e8e=_0x1f5521;let _0x13521f=await super[_0x342e8e(0x29a)]();return this[_0x342e8e(0x34e)](this['_commandService']['onMutationExecutedForCollab']((_0x1d71a6,_0x38b05a)=>{const _0x5a989a=_0x342e8e;if(_0x1d71a6[_0x5a989a(0x258)]!==_0x3ac237[_0x5a989a(0x38a)]||_0x38b05a!=null&&_0x38b05a[_0x5a989a(0x246)]||_0x38b05a!=null&&_0x38b05a['onlyLocal'])return;let _0xc3e86=_0x1d71a6[_0x5a989a(0x366)];if((_0xc3e86==null?void 0x0:_0xc3e86[_0x5a989a(0x2c4)])!==this[_0x5a989a(0x322)])return;let _0x254411=_0x1d71a6,_0x361308=this[_0x5a989a(0x187)][_0x5a989a(0x165)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5a989a(0x165)]['getInterceptPoints']()[_0x5a989a(0x2e2)])([_0x254411],this[_0x5a989a(0x329)])||[_0x254411];this['_onLocalMutation'](_0x361308[0x0]);})),_0x13521f;}};vn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],vn);let yn=class extends ${constructor(_0x1b6ed4,_0xdbec27,_0x179f90,_0x16de01,_0x5274a6,_0x5a6917,_0x53db24,_0x3c7412,_0x1bfe07,_0x3691cc,_0xce06f9,_0x274cce,_0x58aa26,_0x5477fd,_0x13ab9d){super(_0x1b6ed4,_0x179f90,_0xdbec27,_0x16de01,_0x5274a6,_0x5a6917,_0x53db24,_0x1bfe07,_0x3691cc,_0xce06f9,_0x274cce,_0x58aa26,_0x5477fd,_0x13ab9d),this['unitID']=_0x1b6ed4,this['type']=_0xdbec27,this['_sheetTransformSelectionsService']=_0x3c7412;}[_0x1f5521(0x156)](){const _0x2f3cc3=_0x1f5521;let _0x5234d2=super[_0x2f3cc3(0x156)]();return _0x5234d2['onTransformSelections']=_0x5bbcfa=>this[_0x2f3cc3(0x36c)][_0x2f3cc3(0x2f3)](_0x5bbcfa),_0x5234d2;}async['_init'](){const _0x45852e=_0x1f5521;let _0x5ef99f=await super['_init']();return this[_0x45852e(0x34e)](this[_0x45852e(0x320)]['onMutationExecutedForCollab']((_0x3ba8fe,_0x50f5e8)=>{const _0x5083f7=_0x45852e;if(_0x3ba8fe[_0x5083f7(0x258)]!==_0x3ac237[_0x5083f7(0x38a)]||_0x50f5e8!=null&&_0x50f5e8[_0x5083f7(0x246)]||_0x50f5e8!=null&&_0x50f5e8[_0x5083f7(0x26c)])return;let _0x119269=_0x3ba8fe[_0x5083f7(0x366)];if((_0x119269==null?void 0x0:_0x119269[_0x5083f7(0x2c4)])!==this[_0x5083f7(0x322)])return;let _0x182f0e=_0x3ba8fe,_0x188f13=this[_0x5083f7(0x187)]['interceptor']['fetchThroughInterceptors'](this[_0x5083f7(0x187)][_0x5083f7(0x165)][_0x5083f7(0x304)]()[_0x5083f7(0x2e2)])([_0x182f0e],this[_0x5083f7(0x329)])||[_0x182f0e];this[_0x5083f7(0x195)](_0x188f13[0x0]);})),_0x5ef99f;}};yn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(Wt)),V(0x8,_0x32c7b6(B)),V(0x9,_0x238a9e),V(0xa,_0x3849f9),V(0xb,_0x24738d),V(0xc,_0x51823a),V(0xd,_0x100ce1(W)),V(0xe,_0x100ce1(U))],yn);let bn=class extends ${constructor(_0xf0ff18,_0x1ec106,_0x389dff,_0x1e88c5,_0x49bcfd,_0xcb4498,_0x220011,_0x263cf1,_0x4361c0,_0x2de9e8,_0x26fecf,_0x1d2d86,_0x4af098,_0x410a05){const _0x435500=_0x1f5521;super(_0xf0ff18,_0x389dff,_0x1ec106,_0x1e88c5,_0x49bcfd,_0xcb4498,_0x220011,_0x263cf1,_0x4361c0,_0x2de9e8,_0x26fecf,_0x1d2d86,_0x4af098,_0x410a05),this[_0x435500(0x322)]=_0xf0ff18,this[_0x435500(0x258)]=_0x1ec106;}async[_0x1f5521(0x29a)](){const _0x3f7769=_0x1f5521;let _0x2223f9=await super[_0x3f7769(0x29a)]();return this[_0x3f7769(0x34e)](this[_0x3f7769(0x320)][_0x3f7769(0x277)]((_0x89a2cb,_0x37aa83)=>{const _0x519c40=_0x3f7769;if(_0x89a2cb[_0x519c40(0x258)]!==_0x3ac237[_0x519c40(0x38a)]||_0x37aa83!=null&&_0x37aa83[_0x519c40(0x246)]||_0x37aa83!=null&&_0x37aa83[_0x519c40(0x26c)])return;let _0x7e68de=_0x89a2cb[_0x519c40(0x366)];if((_0x7e68de==null?void 0x0:_0x7e68de['unitId'])!==this[_0x519c40(0x322)])return;let _0x484264=_0x89a2cb,_0xa7fa37=this[_0x519c40(0x187)][_0x519c40(0x165)][_0x519c40(0x32a)](this[_0x519c40(0x187)][_0x519c40(0x165)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x484264],this['_univerInstanceService'])||[_0x484264];this[_0x519c40(0x195)](_0xa7fa37[0x0]);})),_0x2223f9;}};bn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],bn);let xn=class extends ${constructor(_0x20dc54,_0x5c1721,_0xa9ce1c,_0x53aa86,_0x125d5e,_0x1e3f2f,_0x5874e9,_0x38873b,_0x4c31e3,_0x593d21,_0x3cd3d6,_0x3e79de,_0x643209,_0x4bc424){const _0xfed91a=_0x1f5521;super(_0x20dc54,_0xa9ce1c,_0x5c1721,_0x53aa86,_0x125d5e,_0x1e3f2f,_0x5874e9,_0x38873b,_0x4c31e3,_0x593d21,_0x3cd3d6,_0x3e79de,_0x643209,_0x4bc424),this[_0xfed91a(0x322)]=_0x20dc54,this['type']=_0x5c1721;}async[_0x1f5521(0x29a)](){const _0x202796=_0x1f5521;let _0x128c3c=await super[_0x202796(0x29a)]();return this['disposeWithMe'](this[_0x202796(0x320)][_0x202796(0x277)]((_0x1f637a,_0x1213c5)=>{const _0x23842e=_0x202796;if(_0x1f637a[_0x23842e(0x258)]!==_0x3ac237['MUTATION']||_0x1213c5!=null&&_0x1213c5[_0x23842e(0x246)]||_0x1213c5!=null&&_0x1213c5[_0x23842e(0x26c)])return;let _0xa06f11=_0x1f637a[_0x23842e(0x366)];if((_0xa06f11==null?void 0x0:_0xa06f11[_0x23842e(0x2c4)])!==this[_0x23842e(0x322)])return;let _0x30e9c0=_0x1f637a,_0x22b829=this[_0x23842e(0x187)][_0x23842e(0x165)][_0x23842e(0x32a)](this[_0x23842e(0x187)][_0x23842e(0x165)][_0x23842e(0x304)]()[_0x23842e(0x2e2)])([_0x30e9c0],this[_0x23842e(0x329)])||[_0x30e9c0];this['_onLocalMutation'](_0x22b829[0x0]);})),_0x128c3c;}};xn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],xn);let Sn=class extends ${constructor(_0xfbe574,_0x4f4be6,_0x5b2921,_0x1a6d98,_0x292aab,_0x3aa213,_0x3adec5,_0x217abc,_0x25ebda,_0x222ae9,_0x22ca9b,_0x363a31,_0x30ab5c,_0x439181){const _0x546a5b=_0x1f5521;super(_0xfbe574,_0x5b2921,_0x4f4be6,_0x1a6d98,_0x292aab,_0x3aa213,_0x3adec5,_0x217abc,_0x25ebda,_0x222ae9,_0x22ca9b,_0x363a31,_0x30ab5c,_0x439181),this[_0x546a5b(0x322)]=_0xfbe574,this['type']=_0x4f4be6;}async[_0x1f5521(0x29a)](){const _0x492721=_0x1f5521;let _0x425ffb=await super['_init']();return this[_0x492721(0x34e)](this[_0x492721(0x320)][_0x492721(0x277)]((_0x565a2b,_0x18692f)=>{const _0xab86d7=_0x492721;if(_0x565a2b[_0xab86d7(0x258)]!==_0x3ac237[_0xab86d7(0x38a)]||_0x18692f!=null&&_0x18692f[_0xab86d7(0x246)]||_0x18692f!=null&&_0x18692f[_0xab86d7(0x26c)])return;let _0x2ae222=_0x565a2b[_0xab86d7(0x366)];if((_0x2ae222==null?void 0x0:_0x2ae222[_0xab86d7(0x2c4)])!==this[_0xab86d7(0x322)])return;let _0x51fade=_0x565a2b,_0x8623e7=this[_0xab86d7(0x187)]['interceptor'][_0xab86d7(0x32a)](this[_0xab86d7(0x187)][_0xab86d7(0x165)]['getInterceptPoints']()[_0xab86d7(0x2e2)])([_0x51fade],this[_0xab86d7(0x329)])||[_0x51fade];this['_onLocalMutation'](_0x8623e7[0x0]);})),_0x425ffb;}};Sn=H([V(0x3,_0x32c7b6(_0xd2295f)),V(0x4,_0x32c7b6(_0x34fb2b)),V(0x5,_0x32c7b6(_0xed8942)),V(0x6,_0x32c7b6(_0x21335b)),V(0x7,_0x32c7b6(B)),V(0x8,_0x238a9e),V(0x9,_0x3849f9),V(0xa,_0x24738d),V(0xb,_0x51823a),V(0xc,_0x100ce1(W)),V(0xd,_0x100ce1(U))],Sn);const Cn=_0x382d48('univer-pro.collaboration-client.network-condition.service');function wn(_0x5d2416){const _0x244b85=_0x1f5521;let _0x5c1cfa=_0x5d2416[_0x244b85(0x2cc)],_0x240749=JSON[_0x244b85(0x3d4)](_0x5c1cfa);switch(_0x240749[_0x244b85(0x381)]){case _0x45aed2['HEARTBEAT']:case _0x45aed2['HELLO']:{let _0x44044e=_0x240749['infoRsp'];return{..._0x240749,'data':_0x44044e,'cmd':_0x240749[_0x244b85(0x381)]};}case _0x45aed2[_0x244b85(0x23d)]:{let _0x1a8cf4=_0x240749[_0x244b85(0x272)];return{..._0x240749,'data':_0x1a8cf4,'cmd':_0x240749['cmd']};}case _0x45aed2['RECV']:{let _0x168dfc=_0x240749['collaMsg'];switch(_0x168dfc['eventID']){case _0x28cc07[_0x244b85(0x3a7)]:var _0xdbce2b;return{..._0x240749,'data':{..._0x168dfc,'data':(_0xdbce2b=_0x168dfc[_0x244b85(0x22a)])==null?void 0x0:_0xdbce2b['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['CHANGESET_ACK']:var _0x2bc10f;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x2bc10f=_0x168dfc[_0x244b85(0x1aa)])==null?void 0x0:_0x2bc10f['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['NEW_CHANGESETS']:var _0x52d92f;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x52d92f=_0x168dfc[_0x244b85(0x1a5)])==null?void 0x0:_0x52d92f['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['CHANGESET_REJ']:var _0x37a27b;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x37a27b=_0x168dfc[_0x244b85(0x367)])==null?void 0x0:_0x37a27b['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x14b)]:var _0x2b6bb2;return{..._0x240749,'data':{..._0x168dfc,'data':(_0x2b6bb2=_0x168dfc[_0x244b85(0x1d8)])==null?void 0x0:_0x2b6bb2['cs']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x3a9)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc['updateCursorEvent']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x368)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc['joinEvent']},'cmd':_0x240749['cmd']};case _0x28cc07[_0x244b85(0x1af)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x27d)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x215)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x27c)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x286)]:case _0x28cc07['LIVESHARE_OPERATION']:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc['liveShareOperation']},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['LIVESHARE_TERMINATE']:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x27c)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x164)]:return{..._0x240749,'data':_0x168dfc,'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x2a8)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x25f)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x36e)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x2c6)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07[_0x244b85(0x373)]:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x3b5)]},'cmd':_0x240749[_0x244b85(0x381)]};case _0x28cc07['UNISCRIPT_RUN']:return{..._0x240749,'data':{..._0x168dfc,'data':_0x168dfc[_0x244b85(0x1ba)]},'cmd':_0x240749[_0x244b85(0x381)]};default:return _0x240749;}}default:return _0x240749;}}function Tn(_0x1dabf4){const _0x61320=_0x1f5521;switch(_0x1dabf4[_0x61320(0x381)]){case _0x45aed2[_0x61320(0x230)]:case _0x45aed2[_0x61320(0x23a)]:return JSON[_0x61320(0x212)]({'cmd':_0x1dabf4['cmd'],'routeKey':_0x1dabf4[_0x61320(0x294)]});case _0x45aed2[_0x61320(0x2ee)]:{let _0x49840f;switch(_0x1dabf4['data']['eventID']){case _0x28cc07[_0x61320(0x3a9)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x3a9)],'updateCursorEvent':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x1af)]:_0x49840f={'eventID':_0x28cc07['USERS_LEAVE'],'leaveEvent':_0x1dabf4['data'][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x368)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x368)],'joinEvent':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x215)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x215)],'liveShareNewHost':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x3c6)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x3c6)],'liveShareOperation':_0x1dabf4['data'][_0x61320(0x2cc)]};break;case _0x28cc07['LIVESHARE_TERMINATE']:_0x49840f={'eventID':_0x28cc07[_0x61320(0x387)],'liveShareTerminate':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x237)]:_0x49840f={'eventID':_0x28cc07['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x1dabf4[_0x61320(0x2cc)][_0x61320(0x2cc)]};break;case _0x28cc07[_0x61320(0x286)]:_0x49840f={'eventID':_0x28cc07[_0x61320(0x286)]};break;default:_0x49840f={'eventID':_0x1dabf4['data'][_0x61320(0x1b1)]};}return JSON[_0x61320(0x212)]({'cmd':_0x1dabf4[_0x61320(0x381)],'routeKey':_0x1dabf4[_0x61320(0x294)],'collaMsg':_0x49840f});}case _0x45aed2[_0x61320(0x23d)]:return JSON[_0x61320(0x212)]({'cmd':_0x1dabf4[_0x61320(0x381)],'routeKey':_0x1dabf4[_0x61320(0x294)],'joinReq':_0x1dabf4[_0x61320(0x2cc)]});case _0x45aed2['LEAVE']:return JSON['stringify']({'cmd':_0x1dabf4[_0x61320(0x381)],'routeKey':_0x1dabf4[_0x61320(0x294)],'leaveReq':_0x1dabf4[_0x61320(0x2cc)]});default:throw Error(_0x61320(0x198));}}const En=_0x382d48('univer-pro.collaboration-client-socket-service');function Dn(_0x45734f,_0x5c98a7,_0x375099){const _0xd8877d=_0x1f5521;return _0x45734f+'/'+_0x5c98a7+_0xd8877d(0x16b)+_0x375099+_0xd8877d(0x330);}let On=class extends _0x13fb6a{constructor(_0x2c7d2e,_0x2d0664,_0x36375f,_0x125885,_0x1857b6){const _0x5ae71f=_0x1f5521;super(),this[_0x5ae71f(0x391)]=_0x2c7d2e,this[_0x5ae71f(0x317)]=_0x2d0664,this[_0x5ae71f(0x2a1)]=_0x36375f,this['_logService']=_0x125885,this['_snapshotServerService']=_0x1857b6;}[_0x1f5521(0x38d)](_0x82f02f){const _0x345ee7=_0x1f5521;let _0x573dff=this[_0x345ee7(0x391)]['get'](_0x1fbe1f);if(!_0x573dff)throw Error(_0x345ee7(0x25c));let _0x2e6d1b=_0x573dff[_0x345ee7(0x298)](_0x82f02f);if(!_0x2e6d1b)throw Error(_0x345ee7(0x2ba));let _0x2c7adb=new _0x3f655f(),_0x7e9e71=new _0x548400();_0x2c7adb[_0x345ee7(0x23f)](_0x2e6d1b[_0x345ee7(0x26e)][_0x345ee7(0x2dc)](_0x3beb6f=>_0x7e9e71[_0x345ee7(0x1ae)](_0x3beb6f))),_0x2c7adb['add'](_0x1e0938(()=>_0x7e9e71[_0x345ee7(0x185)]()));let _0x525b16=new _0x548400();_0x2c7adb[_0x345ee7(0x23f)](_0x2e6d1b['error$']['subscribe'](_0x5df50e=>_0x525b16['next'](_0x5df50e))),_0x2c7adb[_0x345ee7(0x23f)](_0x1e0938(()=>_0x525b16[_0x345ee7(0x185)]()));let _0x587906=new _0x548400();_0x2c7adb['add'](_0x2e6d1b[_0x345ee7(0x1ce)][_0x345ee7(0x2dc)](_0xa1b88a=>{const _0x52efbd=_0x345ee7;let _0x4f300e=wn(_0xa1b88a);_0x587906[_0x52efbd(0x1ae)](_0x4f300e);})),_0x2c7adb['add'](_0x1e0938(()=>_0x587906[_0x345ee7(0x185)]()));let _0x28de1b,_0x5d3ceb=()=>{const _0x4d8524=_0x345ee7;_0x525b16[_0x4d8524(0x1ae)](new Event(_0x4d8524(0x355))),_0x7e9e71[_0x4d8524(0x1ae)](new Event(_0x4d8524(0x355))),_0x28de1b[_0x4d8524(0x301)]();};return _0x28de1b={'memberID':'','close$':_0x7e9e71['asObservable'](),'error$':_0x525b16['asObservable'](),'open$':_0x2e6d1b[_0x345ee7(0x23e)],'message$':_0x587906[_0x345ee7(0x37a)](),'send':_0x9baf42=>{const _0x13ae24=_0x345ee7;if(_0x9baf42['cmd']===_0x45aed2[_0x13ae24(0x2ee)]){if(_0x9baf42[_0x13ae24(0x2cc)][_0x13ae24(0x1b1)]===_0x28cc07[_0x13ae24(0x168)]){this[_0x13ae24(0x1d0)](_0x28de1b,_0x9baf42[_0x13ae24(0x2cc)])[_0x13ae24(0x39b)](_0x1eacee=>{const _0x5f0c04=_0x13ae24;this[_0x5f0c04(0x2dd)][_0x5f0c04(0x2fc)](_0x1eacee),_0x5d3ceb();});return;}if(_0x9baf42[_0x13ae24(0x2cc)]['eventID']===_0x28cc07[_0x13ae24(0x37e)]){let _0x38a879=_0x9baf42[_0x13ae24(0x2cc)];this[_0x13ae24(0x231)](_0x38a879)[_0x13ae24(0x3ab)](_0x346833=>{const _0x50466c=_0x13ae24;_0x587906['next']({'cmd':_0x45aed2[_0x50466c(0x146)],'code':_0x2486d1['OK'],'routeKey':_0x38a879[_0x50466c(0x2cc)][_0x50466c(0x322)],'routeType':'','data':{'eventID':_0x28cc07[_0x50466c(0x3a4)],'data':{'changesets':_0x346833}}});})[_0x13ae24(0x39b)](_0x29171e=>{const _0xf8eca5=_0x13ae24;this[_0xf8eca5(0x2dd)][_0xf8eca5(0x2fc)](_0x29171e),_0x5d3ceb();});return;}}_0x2e6d1b['send'](Tn(_0x9baf42));},'close':()=>{const _0x10c20d=_0x345ee7;_0x2e6d1b[_0x10c20d(0x301)](),_0x2c7adb[_0x10c20d(0x1ee)]();}},_0x28de1b;}async[_0x1f5521(0x1d0)](_0x16862,_0x375d9e){const _0x5d14bd=_0x1f5521;let {unitType:_0x583618,unitID:_0x19afb6,changeset:_0x3763d6}=_0x375d9e['data'],_0x2010d6={'unitID':_0x19afb6,'memberID':_0x16862[_0x5d14bd(0x235)],'type':_0x583618,'changeset':_0x53b382(_0x3763d6)},_0x5f2335=this[_0x5d14bd(0x2a1)][_0x5d14bd(0x1d1)](R),_0x44b296=Dn((_0x5f2335==null?void 0x0:_0x5f2335['collabSubmitChangesetUrl'])??_0x5d14bd(0x36a),_0x583618,_0x19afb6);try{await this[_0x5d14bd(0x317)][_0x5d14bd(0x160)](_0x44b296,{'body':_0x2010d6});}catch(_0x558951){throw this[_0x5d14bd(0x2dd)][_0x5d14bd(0x2fc)](_0x5d14bd(0x1fa),'submit\x20changeset\x20error!'),_0x558951;}}async[_0x1f5521(0x231)](_0x1d7cb5){const _0x48f3e8=_0x1f5521;let {unitID:_0x39a535,from:_0x487def,to:_0x4cbb3b,unitType:_0x5a2294}=_0x1d7cb5[_0x48f3e8(0x2cc)];return(await this['_snapshotServerService'][_0x48f3e8(0x1b4)]({'metadata':void 0x0},{'unitID':_0x39a535,'type':_0x5a2294,'from':_0x487def,'to':_0x4cbb3b}))[_0x48f3e8(0x25d)][_0x48f3e8(0x2ea)](_0x259125=>((_0x259125[_0x48f3e8(0x17c)]===null||_0x259125[_0x48f3e8(0x17c)]===void 0x0)&&(_0x259125[_0x48f3e8(0x17c)]=[]),_0x259125));}};On=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x32c7b6(_0x314f58)),V(0x2,_0x123a79),V(0x3,_0x3849f9),V(0x4,_0x223810)],On);const kn=_0x382d48('univer-pro.collaboration-client-adapter-service');function An(_0x1d7a2d={}){const _0x216c15=_0x1f5521;return _0x1d7a2d[_0x216c15(0x186)]?{'resolveUnit':_0x1d7a2d['resolveUnit']}:{'resolveUnit':_0x556bc0=>({'target':{'unitId':_0x556bc0['unitId'],'unitType':_0x556bc0[_0x216c15(0x1e6)]}})};}function jn(_0x34fe4c,_0x5801c4,_0x553dd3){const _0x358ded=_0x1f5521;let _0x496819=_0x553dd3['target'][_0x358ded(0x1b8)];if(_0x496819!=null&&_0x496819['trim']()==='')throw Error(_0x358ded(0x1b9));if(!_0x553dd3[_0x358ded(0x1ef)][_0x358ded(0x2c4)])throw Error(_0x358ded(0x1a7));return{'localUnitId':_0x34fe4c,'unitType':_0x5801c4,'target':{'endpoint':_0x496819,'unitId':_0x553dd3[_0x358ded(0x1ef)][_0x358ded(0x2c4)],'unitType':_0x553dd3[_0x358ded(0x1ef)][_0x358ded(0x1e6)]??_0x5801c4},'changeset':_0x553dd3[_0x358ded(0x361)]};}let Mn=class extends _0x13fb6a{constructor(_0x1488ce,_0x10b8a0,_0x15df6a,_0x23661f,_0xc24119,_0x45df76,_0xfb6024){const _0x22fa33=_0x1f5521;super(),this[_0x22fa33(0x391)]=_0x1488ce,this[_0x22fa33(0x2dd)]=_0x10b8a0,this['_configService']=_0x15df6a,this['_socketService']=_0x23661f,this[_0x22fa33(0x3a1)]=_0xc24119,this[_0x22fa33(0x384)]=_0x45df76,this[_0x22fa33(0x2b4)]=_0xfb6024,z(this,_0x22fa33(0x166),new Map()),z(this,'_pendingSessions',new Map()),z(this,_0x22fa33(0x28d),new Map()),z(this,_0x22fa33(0x152),new Map()),z(this,_0x22fa33(0x3dd),this[_0x22fa33(0x3bf)](void 0x0)['socket$'][_0x22fa33(0x37a)]()),z(this,_0x22fa33(0x349),new _0x21afa9(0x0)),z(this,_0x22fa33(0x232),this['_status$'][_0x22fa33(0x37a)]()),this[_0x22fa33(0x171)]();}['_listenToNetworkCondition'](){const _0x54a864=_0x1f5521;this[_0x54a864(0x2b4)]&&this[_0x54a864(0x34e)](this['_networkConditionService'][_0x54a864(0x1d3)]['subscribe'](_0x5bd295=>{const _0x4811f9=_0x54a864;_0x5bd295&&this['reconnect'](),_0x5bd295||this[_0x4811f9(0x152)][_0x4811f9(0x154)](_0x58859d=>this[_0x4811f9(0x2a5)](_0x58859d));}));}[_0x1f5521(0x1ee)](){const _0x54c86e=_0x1f5521;super[_0x54c86e(0x1ee)](),this[_0x54c86e(0x152)][_0x54c86e(0x154)](_0x9088b7=>{const _0xb630cc=_0x54c86e;var _0xcf2290,_0x2fef78;(_0xcf2290=_0x9088b7[_0xb630cc(0x2d0)])==null||_0xcf2290['unsubscribe'](),_0x9088b7[_0xb630cc(0x2d0)]=null,this[_0xb630cc(0x184)](_0x9088b7),this[_0xb630cc(0x28c)](_0x9088b7),this[_0xb630cc(0x34a)](_0x9088b7),(_0x2fef78=_0x9088b7['socket$'][_0xb630cc(0x3ca)]())==null||_0x2fef78[_0xb630cc(0x301)](),_0x9088b7[_0xb630cc(0x3dd)][_0xb630cc(0x185)]();}),this['_socketChannels'][_0x54c86e(0x2bd)](),this[_0x54c86e(0x166)][_0x54c86e(0x154)](_0x125ac0=>_0x125ac0[_0x54c86e(0x1ee)]()),this['_sessions']['clear'](),this['_sessionChannels']['clear'](),this[_0x54c86e(0x349)][_0x54c86e(0x185)]();}async[_0x1f5521(0x221)](_0x880289,_0x1eec47){const _0x5aab69=_0x1f5521;if(this['_sessions']['has'](_0x880289))return this['_sessions'][_0x5aab69(0x20c)](_0x880289);let _0x5b1d9f=this[_0x5aab69(0x33e)][_0x5aab69(0x20c)](_0x880289);if(_0x5b1d9f)return _0x5b1d9f;let _0x1611c9=this[_0x5aab69(0x383)](_0x880289,_0x1eec47);this[_0x5aab69(0x33e)]['set'](_0x880289,_0x1611c9);try{return await _0x1611c9;}finally{this['_pendingSessions'][_0x5aab69(0x204)](_0x880289);}}async[_0x1f5521(0x383)](_0x4dba68,_0x50a7e6){const _0x300400=_0x1f5521;let _0x526bd6=await this['_resolveSessionIdentity'](_0x4dba68,_0x50a7e6),_0x50513f=this[_0x300400(0x3bf)](_0x526bd6[_0x300400(0x1ef)][_0x300400(0x1b8)]);this[_0x300400(0x1d4)](_0x50513f);let _0x3e9cb5=this[_0x300400(0x391)][_0x300400(0x351)](Vt,_0x526bd6,_0x50513f[_0x300400(0x3dd)]['asObservable']());return this[_0x300400(0x166)][_0x300400(0x16f)](_0x4dba68,_0x3e9cb5),this[_0x300400(0x28d)]['set'](_0x4dba68,_0x50513f[_0x300400(0x33f)]),_0x3e9cb5;}['closeSession'](_0x3fad62){const _0xbe0bf4=_0x1f5521;let _0x2ce926=this[_0xbe0bf4(0x166)][_0xbe0bf4(0x20c)](_0x3fad62),_0xaf0210=this[_0xbe0bf4(0x28d)][_0xbe0bf4(0x20c)](_0x3fad62);if(_0x2ce926&&(this[_0xbe0bf4(0x166)][_0xbe0bf4(0x204)](_0x3fad62),this[_0xbe0bf4(0x28d)][_0xbe0bf4(0x204)](_0x3fad62),_0x2ce926[_0xbe0bf4(0x301)]()),_0xaf0210&&!this[_0xbe0bf4(0x1d2)](_0xaf0210)){var _0xc5c7a3;let _0x5c7aff=this[_0xbe0bf4(0x152)][_0xbe0bf4(0x20c)](_0xaf0210);_0x5c7aff==null||(_0xc5c7a3=_0x5c7aff[_0xbe0bf4(0x3dd)][_0xbe0bf4(0x3ca)]())==null||_0xc5c7a3[_0xbe0bf4(0x301)]();}}['reconnect'](){const _0x284e74=_0x1f5521;(this['_socketChannels'][_0x284e74(0x21b)]?[...this[_0x284e74(0x152)][_0x284e74(0x2b7)]()]:[this[_0x284e74(0x3bf)](void 0x0)])[_0x284e74(0x154)](_0x30d59f=>{const _0xd23391=_0x284e74;_0x30d59f[_0xd23391(0x17e)]=0x0,this['_clearRetryConnectingTimer'](_0x30d59f),this[_0xd23391(0x2f6)](_0x30d59f);});}[_0x1f5521(0x184)](_0x46d797){const _0x349182=_0x1f5521;_0x46d797[_0x349182(0x380)]!=null&&(clearTimeout(_0x46d797[_0x349182(0x380)]),_0x46d797[_0x349182(0x380)]=null);}async['_createSocket'](_0x35b62c){const _0xd8d430=_0x1f5521;let _0x4d37e5=this[_0xd8d430(0x2a1)][_0xd8d430(0x1d1)](R),_0x54870c=_0x35b62c[_0xd8d430(0x1b8)]??(_0x4d37e5==null?void 0x0:_0x4d37e5[_0xd8d430(0x157)])??_0xd8d430(0x1e7),_0x253ebc=await this[_0xd8d430(0x374)][_0xd8d430(0x298)](_0x54870c);return _0x35b62c['candidateSocket']=_0x253ebc,_0x253ebc;}async[_0x1f5521(0x1d4)](_0xa66ad0){const _0x27e057=_0x1f5521;try{let _0x466d5e=_0xa66ad0['socket$'][_0x27e057(0x3ca)]()??_0xa66ad0[_0x27e057(0x1e3)]??await this['_createSocket'](_0xa66ad0);if(_0x466d5e){var _0x4ec82f;let _0x203896=_0x466d5e[_0x27e057(0x3bb)];_0x466d5e['send']=_0x45b693=>(_0x45b693[_0x27e057(0x381)]!==_0x45aed2['LEAVE']&&this[_0x27e057(0x395)](_0xa66ad0),_0x203896[_0x27e057(0x1bd)](_0x466d5e,[_0x45b693])),(_0x4ec82f=_0xa66ad0[_0x27e057(0x2d0)])==null||_0x4ec82f[_0x27e057(0x26f)](),_0xa66ad0[_0x27e057(0x2d0)]=null,_0xa66ad0[_0x27e057(0x2d0)]=_0x466d5e['message$'][_0x27e057(0x2dc)](_0x55b2c0=>this[_0x27e057(0x158)](_0xa66ad0,_0x466d5e,_0x55b2c0)),_0x466d5e[_0x27e057(0x170)]['pipe'](_0x12e312(0x1))[_0x27e057(0x2dc)](_0x19536f=>this['_logService'][_0x27e057(0x2fc)](_0x27e057(0x1f0),_0x19536f)),_0x466d5e['open$']['pipe'](_0x12e312(0x1))[_0x27e057(0x2dc)](()=>{const _0x3645af=_0x27e057;this[_0x3645af(0x334)](_0xa66ad0,_0x466d5e);}),_0x466d5e[_0x27e057(0x26e)][_0x27e057(0x220)](_0x12e312(0x1))[_0x27e057(0x2dc)](_0x59e110=>{const _0x42badf=_0x27e057;this[_0x42badf(0x2dd)][_0x42badf(0x35a)](_0x42badf(0x38c),_0x42badf(0x3a2),_0x59e110),this[_0x42badf(0x3c5)](_0xa66ad0);});}}catch(_0x16248e){this[_0x27e057(0x2dd)][_0x27e057(0x2fc)](_0x16248e),this['_onConnectionFailed'](_0xa66ad0);}}[_0x1f5521(0x334)](_0x3354a6,_0x1d8048){const _0x3adc5c=_0x1f5521;this['_logService'][_0x3adc5c(0x35a)](_0x3adc5c(0x38c),_0x3adc5c(0x323)),_0x1d8048[_0x3adc5c(0x3bb)]({'cmd':_0x45aed2[_0x3adc5c(0x23a)]}),this['_rescheduleHeartbeat'](_0x3354a6);}[_0x1f5521(0x2a5)](_0x3576be){const _0x443d6a=_0x1f5521;_0x3576be[_0x443d6a(0x1c1)]=!0x1,_0x3576be[_0x443d6a(0x1e3)]=null,this[_0x443d6a(0x349)][_0x443d6a(0x1ae)](0x2),_0x3576be[_0x443d6a(0x3dd)][_0x443d6a(0x1ae)](null),this[_0x443d6a(0x28c)](_0x3576be),this[_0x443d6a(0x34a)](_0x3576be);}[_0x1f5521(0x3c5)](_0x2984c2){const _0x55a1f7=_0x1f5521;this['_onOffline'](_0x2984c2),this['_hasSessionsForEndpoint'](_0x2984c2[_0x55a1f7(0x33f)])&&(_0x2984c2[_0x55a1f7(0x17e)]<(this['_configService'][_0x55a1f7(0x1d1)](_0x55a1f7(0x2a2))??0x3)?(this['_collaborationUIEventService'][_0x55a1f7(0x205)]({'id':_0x55a1f7(0x2a0)}),this[_0x55a1f7(0x2f6)](_0x2984c2)):this['_collaborationUIEventService'][_0x55a1f7(0x205)]({'id':'SOCKET_FAILED'}));}[_0x1f5521(0x2f6)](_0x5670e2){const _0xa05978=_0x1f5521;let _0x98abc6=_0x5670e2[_0xa05978(0x17e)],_0x21dd43=this['_configService'][_0xa05978(0x1d1)](R),_0x11900b=_0x98abc6===0x0?0x0:((_0x21dd43==null?void 0x0:_0x21dd43[_0xa05978(0x172)])??0x4e20)*0x2**_0x98abc6;_0x5670e2[_0xa05978(0x380)]=setTimeout(()=>{const _0x10b76e=_0xa05978;clearTimeout(_0x5670e2['retryConnectingTimer']),_0x5670e2[_0x10b76e(0x380)]=null,this[_0x10b76e(0x1d4)](_0x5670e2);},_0x11900b),_0x5670e2[_0xa05978(0x17e)]+=0x1;}async[_0x1f5521(0x37c)](_0x52f72c,_0x3492d9){const _0x3f5c1d=_0x1f5521;return jn(_0x52f72c,_0x3492d9,await this[_0x3f5c1d(0x384)][_0x3f5c1d(0x186)]({'unitId':_0x52f72c,'unitType':_0x3492d9}));}[_0x1f5521(0x158)](_0xaaee99,_0x53af3c,_0x164982){const _0x8993ba=_0x1f5521;let {cmd:_0x116103}=_0x164982;_0x116103===_0x45aed2[_0x8993ba(0x23a)]&&!_0xaaee99[_0x8993ba(0x1c1)]&&(_0x53af3c[_0x8993ba(0x235)]=_0x164982['data'][_0x8993ba(0x235)],_0xaaee99[_0x8993ba(0x3dd)][_0x8993ba(0x1ae)](_0x53af3c),this[_0x8993ba(0x349)][_0x8993ba(0x1ae)](0x3),_0xaaee99[_0x8993ba(0x1c1)]=!0x0,_0xaaee99['candidateSocket']=null),_0x116103===_0x45aed2[_0x8993ba(0x230)]&&this[_0x8993ba(0x28c)](_0xaaee99),this[_0x8993ba(0x395)](_0xaaee99);}[_0x1f5521(0x1d2)](_0x5b7ca5){const _0x3900b1=_0x1f5521;return[...this[_0x3900b1(0x28d)]['values']()][_0x3900b1(0x2ae)](_0x242f49=>_0x242f49===_0x5b7ca5);}['_getSocketChannel'](_0x252b26){const _0x4d19ed=_0x1f5521;let _0xb56752=_0x252b26??'',_0x8b5ab8=this[_0x4d19ed(0x152)][_0x4d19ed(0x20c)](_0xb56752);if(_0x8b5ab8)return _0x8b5ab8;let _0x112eb6={'endpointKey':_0xb56752,'endpoint':_0x252b26,'socket$':new _0x21afa9(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4d19ed(0x152)]['set'](_0xb56752,_0x112eb6),_0x112eb6;}[_0x1f5521(0x395)](_0x1f9d2e){const _0x368d17=_0x1f5521;this[_0x368d17(0x34a)](_0x1f9d2e),_0x1f9d2e['sendHeartbeatTimer']=setTimeout(()=>this[_0x368d17(0x20a)](_0x1f9d2e),this['_configService'][_0x368d17(0x1d1)](_0x368d17(0x305))??0x7530);}[_0x1f5521(0x20a)](_0x5c078a){const _0x3af08d=_0x1f5521;_0x5c078a[_0x3af08d(0x3dd)][_0x3af08d(0x3ca)]()['send']({'cmd':_0x45aed2[_0x3af08d(0x230)]}),this[_0x3af08d(0x36d)](_0x5c078a);}[_0x1f5521(0x36d)](_0x47523d){const _0x27a390=_0x1f5521;_0x47523d[_0x27a390(0x14e)]=setTimeout(()=>this[_0x27a390(0x3c5)](_0x47523d),this['_configService'][_0x27a390(0x1d1)](_0x27a390(0x3a3))??0x4e20);}[_0x1f5521(0x34a)](_0xc86519){const _0x593424=_0x1f5521;_0xc86519[_0x593424(0x3b2)]!=null&&(clearTimeout(_0xc86519['sendHeartbeatTimer']),_0xc86519['sendHeartbeatTimer']=null);}[_0x1f5521(0x28c)](_0x5837dc){const _0x223240=_0x1f5521;_0x5837dc[_0x223240(0x14e)]!=null&&(clearTimeout(_0x5837dc[_0x223240(0x14e)]),_0x5837dc['timeoutTimer']=null);}};Mn=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x3849f9),V(0x2,_0x123a79),V(0x3,En),V(0x4,_0x32c7b6(B)),V(0x5,kn),V(0x6,_0x100ce1(Cn))],Mn);let Nn=class extends _0x2fb3e4{constructor(_0x14b777,_0x5e00d5,_0x2e90dd,_0x4890c5){const _0x1cac74=_0x1f5521;var _0xad7f37;super(),this[_0x1cac74(0x391)]=_0x14b777,this[_0x1cac74(0x2d6)]=_0x5e00d5,this[_0x1cac74(0x2a1)]=_0x2e90dd,this[_0x1cac74(0x329)]=_0x4890c5,z(this,_0x1cac74(0x353),new Map()),z(this,_0x1cac74(0x3e1),new _0x548400()),z(this,_0x1cac74(0x326),this[_0x1cac74(0x3e1)][_0x1cac74(0x37a)]()),((_0xad7f37=this[_0x1cac74(0x2a1)]['getConfig'](_0x1cac74(0x203)))==null?void 0x0:_0xad7f37['enableCollaboration'])!==!0x1&&this[_0x1cac74(0x29a)]();}[_0x1f5521(0x1ee)](){const _0x1adfc6=_0x1f5521;super[_0x1adfc6(0x1ee)](),this['_entities'][_0x1adfc6(0x154)](_0x2e5171=>_0x2e5171[_0x1adfc6(0x1ee)]()),this['_entities'][_0x1adfc6(0x2bd)]();}[_0x1f5521(0x245)](_0x35d81c){const _0x26b673=_0x1f5521;return this[_0x26b673(0x353)][_0x26b673(0x20c)](_0x35d81c)??null;}[_0x1f5521(0x1dd)](_0x1905c8){const _0x398c2b=_0x1f5521;let _0x47423c=this[_0x398c2b(0x245)](_0x1905c8);return _0x47423c?_0x195754(_0x47423c):this['_entityInit$'][_0x398c2b(0x220)](_0x3dc9b5(_0x42a953=>_0x42a953[_0x398c2b(0x322)]===_0x1905c8));}[_0x1f5521(0x32b)](_0xd0f694){const _0xc6cb2=_0x1f5521;return _0x199bcd(this[_0xc6cb2(0x1dd)](_0xd0f694)[_0xc6cb2(0x220)](_0x55a320(()=>void 0x0)));}[_0x1f5521(0x29a)](){const _0x30b8fe=_0x1f5521;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4f4a88[_0x30b8fe(0x399)])['pipe'](_0x10e0d6(this['dispose$']),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x5e8d61=>{const _0x25b89a=_0x30b8fe;let _0x426e14=_0x5e8d61[_0x25b89a(0x144)][_0x25b89a(0x3d7)](),_0x1dd264=await this[_0x25b89a(0x13f)](_0x426e14,_0x4f4a88['UNIVER_SHEET']);this[_0x25b89a(0x353)]['set'](_0x426e14,_0x1dd264);}),this[_0x30b8fe(0x329)][_0x30b8fe(0x1be)](_0x4f4a88[_0x30b8fe(0x33c)])[_0x30b8fe(0x220)](_0x10e0d6(this['dispose$']),_0x42710a(0x10))[_0x30b8fe(0x220)](_0x3dc9b5(_0x50b1a2=>!_0x50b1a2[_0x30b8fe(0x144)][_0x30b8fe(0x3d7)]()[_0x30b8fe(0x173)]('__')))[_0x30b8fe(0x2dc)](async _0x16ea43=>{const _0xa905f6=_0x30b8fe;let _0x10b847=_0x16ea43[_0xa905f6(0x144)][_0xa905f6(0x3d7)](),_0x52e1b9=await this[_0xa905f6(0x13f)](_0x10b847,_0x4f4a88[_0xa905f6(0x33c)]);this[_0xa905f6(0x353)][_0xa905f6(0x16f)](_0x10b847,_0x52e1b9);}),this[_0x30b8fe(0x329)]['getTypeOfUnitAdded$'](_0x4f4a88[_0x30b8fe(0x194)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x2f0c16=>{const _0x48304a=_0x30b8fe;let _0x49b07f=_0x2f0c16[_0x48304a(0x144)][_0x48304a(0x3d7)](),_0x236207=await this[_0x48304a(0x13f)](_0x49b07f,_0x4f4a88[_0x48304a(0x194)]);this[_0x48304a(0x353)][_0x48304a(0x16f)](_0x49b07f,_0x236207);}),this[_0x30b8fe(0x329)][_0x30b8fe(0x1be)](_0x4f4a88[_0x30b8fe(0x2cb)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x200065=>{const _0x139e13=_0x30b8fe;let _0x373dc3=_0x200065['unit'][_0x139e13(0x3d7)](),_0x4ab74c=await this[_0x139e13(0x13f)](_0x373dc3,_0x4f4a88[_0x139e13(0x2cb)]);this[_0x139e13(0x353)][_0x139e13(0x16f)](_0x373dc3,_0x4ab74c);}),this['_univerInstanceService'][_0x30b8fe(0x1be)](_0x4f4a88[_0x30b8fe(0x337)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x5e174d=>{const _0x4a61a8=_0x30b8fe;let _0x22d527=_0x5e174d[_0x4a61a8(0x144)][_0x4a61a8(0x3d7)](),_0x26fd7d=await this[_0x4a61a8(0x13f)](_0x22d527,_0x4f4a88[_0x4a61a8(0x337)]);this['_entities']['set'](_0x22d527,_0x26fd7d);}),this[_0x30b8fe(0x329)]['getTypeOfUnitAdded$'](_0x4f4a88[_0x30b8fe(0x3b9)])[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]),_0x42710a(0x10))[_0x30b8fe(0x2dc)](async _0x5ba56c=>{const _0x4d88a9=_0x30b8fe;let _0x3fa4fb=_0x5ba56c['unit']['getUnitId'](),_0x4783dc=await this[_0x4d88a9(0x13f)](_0x3fa4fb,_0x4f4a88['UNIVER_PDF']);this[_0x4d88a9(0x353)][_0x4d88a9(0x16f)](_0x3fa4fb,_0x4783dc);}),_0x48bcdd(this[_0x30b8fe(0x329)][_0x30b8fe(0x1fe)](_0x4f4a88[_0x30b8fe(0x399)]),this[_0x30b8fe(0x329)][_0x30b8fe(0x1fe)](_0x4f4a88['UNIVER_DOC']),this[_0x30b8fe(0x329)]['getTypeOfUnitDisposed$'](_0x4f4a88[_0x30b8fe(0x194)]),this[_0x30b8fe(0x329)][_0x30b8fe(0x1fe)](_0x4f4a88[_0x30b8fe(0x2cb)]),this['_univerInstanceService'][_0x30b8fe(0x1fe)](_0x4f4a88['UNIVER_BASE']),this[_0x30b8fe(0x329)]['getTypeOfUnitDisposed$'](_0x4f4a88[_0x30b8fe(0x3b9)]))[_0x30b8fe(0x220)](_0x10e0d6(this[_0x30b8fe(0x201)]))[_0x30b8fe(0x2dc)](_0x4a8848=>{const _0x113ddd=_0x30b8fe;let _0x87f700=_0x4a8848[_0x113ddd(0x3d7)](),_0x4feb8f=this[_0x113ddd(0x353)][_0x113ddd(0x20c)](_0x87f700);_0x4feb8f&&(_0x4feb8f['dispose'](),this[_0x113ddd(0x353)][_0x113ddd(0x204)](_0x87f700));});}async[_0x1f5521(0x13f)](_0x1f2f8e,_0x2aef24){const _0xb34a2a=_0x1f5521;let _0x2824b4=await this[_0xb34a2a(0x2d6)][_0xb34a2a(0x221)](_0x1f2f8e),_0x221cff=this[_0xb34a2a(0x391)][_0xb34a2a(0x351)](this['_getCtorByUniverInstanceType'](_0x2aef24),_0x1f2f8e,_0x2aef24,_0x2824b4);return await _0x221cff[_0xb34a2a(0x2c2)](),this[_0xb34a2a(0x3e1)]['next'](_0x221cff),_0x221cff;}[_0x1f5521(0x3d0)](_0x59c382){const _0x30cadf=_0x1f5521;switch(_0x59c382){case _0x4f4a88['UNIVER_DOC']:return _n;case _0x4f4a88[_0x30cadf(0x399)]:return yn;case _0x4f4a88['UNIVER_SLIDE']:return bn;case _0x4f4a88['UNIVER_BOARD']:return xn;case _0x4f4a88['UNIVER_BASE']:return vn;case _0x4f4a88[_0x30cadf(0x3b9)]:return Sn;default:throw Error(_0x30cadf(0x217)+_0x59c382);}}};Nn=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x32c7b6(Mn)),V(0x2,_0x123a79),V(0x3,_0x238a9e)],Nn);var Pn=_0x1f5521(0x309),Fn=_0x1f5521(0x346);let In=class extends _0x13fb6a{constructor(_0x1ab00e,_0x39cd77){const _0x32f98c=_0x1f5521;super(),this[_0x32f98c(0x329)]=_0x1ab00e,this[_0x32f98c(0x2a1)]=_0x39cd77,this['_init']();}[_0x1f5521(0x29a)](){const _0x2222cf=_0x1f5521;this[_0x2222cf(0x34e)](this[_0x2222cf(0x329)][_0x2222cf(0x25a)][_0x2222cf(0x2dc)](()=>{const _0x1b142a=_0x2222cf;let _0x3cf655=this['_univerInstanceService'][_0x1b142a(0x234)](),_0x25fa61=this[_0x1b142a(0x2a1)]['getConfig']('DEFAULT_FILE_NAME')??_0x1b142a(0x14d);_0x3cf655 instanceof _0x1005dd&&(_0x25fa61=_0x3cf655[_0x1b142a(0x218)]),document[_0x1b142a(0x345)]=_0x25fa61;}));}};In=H([V(0x0,_0x238a9e),V(0x1,_0x123a79)],In);const Ln=_0x382d48(_0x1f5521(0x1e1));let Rn=class{constructor(_0x9f8b07,_0x55ac6d,_0x247b57){const _0xee9372=_0x1f5521;this[_0xee9372(0x317)]=_0x9f8b07,this['_configService']=_0x55ac6d,this[_0xee9372(0x329)]=_0x247b57;}[_0x1f5521(0x1df)](){const _0x1d97df=_0x1f5521;return this['_getConfig']()[_0x1d97df(0x1b2)]??{};}async[_0x1f5521(0x3bd)](_0x26fafd){const _0xeaa64c=_0x1f5521;let _0x3f85f6=this[_0xeaa64c(0x1df)]();if(zn(_0x26fafd,_0x3f85f6),_0x3f85f6[_0xeaa64c(0x16c)])return _0x3f85f6[_0xeaa64c(0x16c)](_0x26fafd);let _0xad0f7f=await this[_0xeaa64c(0x206)](_0x26fafd);return{'id':_0xad0f7f,'name':_0x26fafd[_0xeaa64c(0x218)],'mimeType':_0x26fafd[_0xeaa64c(0x258)],'size':_0x26fafd[_0xeaa64c(0x21b)],'sourceType':_0x36d131['UUID'],'source':_0xad0f7f};}async[_0x1f5521(0x31b)](_0x775aab,_0x46d216){const _0x8d077=_0x1f5521;if(_0x46d216!==_0x36d131['UUID'])return _0x775aab;let _0x13442f=(await this[_0x8d077(0x317)]['get'](this[_0x8d077(0x2cd)]()['replace'](_0x8d077(0x3ce),_0x775aab)))[_0x8d077(0x1c3)];if(_0x13442f[_0x8d077(0x2fc)]&&_0x13442f[_0x8d077(0x2fc)][_0x8d077(0x26d)]!==_0x5caf42['OK'])throw _0x13442f[_0x8d077(0x2fc)];if(!_0x13442f[_0x8d077(0x389)])throw Error(_0x8d077(0x295));return _0x3de6a3(_0x13442f[_0x8d077(0x389)],this[_0x8d077(0x197)]());}async['_upload'](_0x1901f1){const _0x1ec761=_0x1f5521;let _0x50f9f3=this['_univerInstanceService'][_0x1ec761(0x234)](),_0x5c7f62=_0x50f9f3==null?void 0x0:_0x50f9f3[_0x1ec761(0x3d7)]();if(!_0x5c7f62)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x50c877=new FormData();_0x50c877[_0x1ec761(0x191)](_0x1ec761(0x22e),_0x1901f1);let _0x207117=this[_0x1ec761(0x32f)]()+_0x1ec761(0x2ad)+_0x1901f1[_0x1ec761(0x21b)][_0x1ec761(0x252)]()+'&source='+_0x52302f['UnitEmbedded']+_0x1ec761(0x16a)+encodeURIComponent(_0x5c7f62),_0x291088=(await this[_0x1ec761(0x317)][_0x1ec761(0x160)](_0x207117,{'body':_0x50c877}))[_0x1ec761(0x1c3)][_0x1ec761(0x2d1)];if(typeof _0x291088!=_0x1ec761(0x239)||!_0x291088)throw Error(_0x1ec761(0x1f8));return _0x291088;}[_0x1f5521(0x32f)](){const _0x3c58c2=_0x1f5521;return this[_0x3c58c2(0x179)]()[_0x3c58c2(0x1d5)]??_0x3c58c2(0x1a6);}['_getSignURL'](){const _0x3cb3e1=_0x1f5521;return this[_0x3cb3e1(0x179)]()[_0x3cb3e1(0x151)]??_0x3cb3e1(0x1b5);}[_0x1f5521(0x197)](){const _0xae4d73=_0x1f5521;let _0x577708=this[_0xae4d73(0x179)]();return _0x577708[_0xae4d73(0x299)]?_0x577708[_0xae4d73(0x299)]:typeof location<'u'?location[_0xae4d73(0x3b3)]:_0x577708[_0xae4d73(0x1d5)]??'';}[_0x1f5521(0x179)](){const _0x753efa=_0x1f5521;return this['_configService'][_0x753efa(0x1d1)]('collaboration-client.config')??{};}};Rn=H([V(0x0,_0x32c7b6(_0x314f58)),V(0x1,_0x32c7b6(_0x123a79)),V(0x2,_0x32c7b6(_0x238a9e))],Rn);function zn(_0x4d2afb,_0x5b42c8){const _0x48d3ef=_0x1f5521;var _0x3238a2;if(_0x5b42c8[_0x48d3ef(0x1c9)]!=null&&_0x4d2afb['size']>_0x5b42c8['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x3238a2=_0x5b42c8[_0x48d3ef(0x3aa)])!=null&&_0x3238a2[_0x48d3ef(0x316)]&&!_0x5b42c8['accept'][_0x48d3ef(0x2ae)](_0x52ca5f=>_0x4d2afb[_0x48d3ef(0x258)]===_0x52ca5f||_0x4d2afb[_0x48d3ef(0x218)][_0x48d3ef(0x1f7)](_0x52ca5f)||_0x52ca5f[_0x48d3ef(0x1f7)]('/*')&&_0x4d2afb['type'][_0x48d3ef(0x173)](_0x52ca5f[_0x48d3ef(0x2ca)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let Bn=class{constructor(_0x1cacdc,_0x4c884f,_0x3722e8){const _0x2d1403=_0x1f5521;this[_0x2d1403(0x2a1)]=_0x1cacdc,this[_0x2d1403(0x317)]=_0x4c884f,this[_0x2d1403(0x2ce)]=_0x3722e8,this[_0x2d1403(0x2c2)]();}[_0x1f5521(0x2c2)](){const _0x54fc5e=_0x1f5521;this[_0x54fc5e(0x317)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5523a9,_0x137313)=>_0x137313(_0x5523a9)[_0x54fc5e(0x220)](_0x1b7252(async _0x3d5f5a=>{const _0x3fe44f=_0x54fc5e;let _0x5be999=_0x3d5f5a;if(_0x5be999[_0x3fe44f(0x1fc)]===0x191){if(typeof window>'u')throw Error(_0x3fe44f(0x2b6));if(window[_0x3fe44f(0x1f9)](this[_0x3fe44f(0x2ce)]['t'](_0x3fe44f(0x21e)))){let _0x93dd73=window[_0x3fe44f(0x392)](window['location']['href']);window[_0x3fe44f(0x2db)][_0x3fe44f(0x1ca)]=this[_0x3fe44f(0x214)]()+_0x3fe44f(0x178)+_0x93dd73;}}return _0x5be999;}))});}[_0x1f5521(0x214)](){const _0x3d519f=_0x1f5521;let _0x3032c5=this[_0x3d519f(0x2a1)][_0x3d519f(0x1d1)](R);return(_0x3032c5==null?void 0x0:_0x3032c5[_0x3d519f(0x257)])??_0x3d519f(0x3be);}};Bn=H([V(0x0,_0x123a79),V(0x1,_0x32c7b6(_0x314f58)),V(0x2,_0x32c7b6(_0xed8942))],Bn);let Vn=class extends _0x13fb6a{constructor(_0x5305d8,_0x35fd97){const _0x591de4=_0x1f5521;super(),this[_0x591de4(0x1d9)]=_0x5305d8,this[_0x591de4(0x2a1)]=_0x35fd97,z(this,'_cfgEnableObjInherit',!0x1),this[_0x591de4(0x254)]();}[_0x1f5521(0x254)](){const _0x5b427a=_0x1f5521;let _0x2188a5=this;this['disposeWithMe'](this['_HTTPService'][_0x5b427a(0x163)]({'priority':0x3e7,'interceptor':_0x113520({'isMatch'(_0x318a63){const _0x50ccc5=_0x5b427a;var _0x54a80d;if(_0x318a63[_0x50ccc5(0x331)]==='POST'&&(_0x54a80d=_0x318a63[_0x50ccc5(0x19f)])!=null&&_0x54a80d[_0x50ccc5(0x1c3)]){let {objectID:_0x3f1244,objectType:_0x19ef10}=_0x318a63[_0x50ccc5(0x19f)]['body']||{};if(!_0x3f1244||_0x19ef10===void 0x0)return!0x1;let _0xa7e7de=_0x2188a5[_0x50ccc5(0x3d3)]()+'/'+_0x19ef10+_0x50ccc5(0x213)+_0x3f1244+_0x50ccc5(0x280);if(_0x318a63['url']===_0xa7e7de)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x477c60){const _0x223a0f=_0x5b427a;var _0x131478;return(_0x131478=_0x477c60[_0x223a0f(0x19f)])==null?void 0x0:_0x131478['body'];},'mergeParamsToRequest'(_0x578b5f,_0x20ba01){const _0x1cfe41=_0x5b427a;let _0x4cb814=_0x2188a5[_0x1cfe41(0x3d3)]()+_0x1cfe41(0x1a0),_0x4cd5ab=_0x578b5f[_0x1cfe41(0x18e)]((_0x4c295e,_0x5eadde)=>{const _0x318ae8=_0x1cfe41;let {unitID:_0x105028,objectID:_0x50edd6,objectType:_0x17abc8,actions:_0xecd677}=_0x5eadde;return _0x4c295e[_0x105028]||(_0x4c295e[_0x105028]={}),_0x4c295e[_0x105028][_0x50edd6]||(_0x4c295e[_0x105028][_0x50edd6]={'objectID':_0x50edd6,'objectType':_0x17abc8,'actions':[]}),_0x4c295e[_0x105028][_0x50edd6]['actions'][_0x318ae8(0x1cf)](..._0xecd677),_0x4c295e;},{}),_0x1e200e=[];for(let _0x591388 in _0x4cd5ab)for(let _0xacaee in _0x4cd5ab[_0x591388]){let {actions:_0xd8fc82,objectType:_0x143826}=_0x4cd5ab[_0x591388][_0xacaee],_0x5b7f8c=[...new Set(_0xd8fc82)];_0x1e200e[_0x1cfe41(0x1cf)]({'unitID':_0x591388,'objectID':_0xacaee,'objectType':_0x143826,'actions':_0x5b7f8c});}return new _0x3570bd(_0x1cfe41(0x365),_0x4cb814,{'headers':_0x20ba01['headers'],'withCredentials':_0x20ba01[_0x1cfe41(0x14c)],'responseType':_0x20ba01['responseType'],'body':{'requests':_0x1e200e}});}},{'distributeResult'(_0x42285e,_0x56e009){const _0x4bbfae=_0x5b427a;let {objectActions:_0x510b71}=_0x42285e;return _0x56e009[_0x4bbfae(0x2ea)](_0x2c7e40=>{const _0x181845=_0x4bbfae;let {unitID:_0x3e0191,objectID:_0x25dbaf,actions:_0x5376c3}=_0x2c7e40,_0x29a571=_0x510b71[_0x181845(0x209)](_0xbb18ec=>_0xbb18ec['unitID']===_0x3e0191&&_0xbb18ec[_0x181845(0x303)]===_0x25dbaf);return{'config':_0x2c7e40,'result':{'actions':_0x5376c3['map'](_0x46069e=>_0x29a571==null?void 0x0:_0x29a571['actions']['find'](_0x148b88=>_0x148b88['action']===_0x46069e))[_0x181845(0x261)](_0x308449=>!!_0x308449),'error':_0x42285e[_0x181845(0x2fc)]}};});}})}));}[_0x1f5521(0x3d3)](){const _0x2eb382=_0x1f5521;let _0x15b042=this[_0x2eb382(0x2a1)]['getConfig'](R);return(_0x15b042==null?void 0x0:_0x15b042[_0x2eb382(0x2ef)])??_0x2eb382(0x273);}async['create'](_0x425ed9){const _0x438b0f=_0x1f5521;let _0x3ee360=this[_0x438b0f(0x3d3)]()+'/'+_0x425ed9[_0x438b0f(0x30f)]+_0x438b0f(0x1c2);return(await this[_0x438b0f(0x1d9)][_0x438b0f(0x160)](_0x3ee360,{'body':_0x425ed9}))[_0x438b0f(0x1c3)][_0x438b0f(0x303)]||'';}async[_0x1f5521(0x3b7)](_0x34b248){const _0x4d4499=_0x1f5521;let _0x3f99c7=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x4d4499(0x1d9)][_0x4d4499(0x160)](_0x3f99c7,{'body':_0x34b248}))[_0x4d4499(0x1c3)]['objects'];}async[_0x1f5521(0x253)](_0x3c8d0f){const _0x36f399=_0x1f5521;var _0x1c6913;let _0x508906=this[_0x36f399(0x3d3)]()+'/'+_0x3c8d0f[_0x36f399(0x30f)]+'/object/'+_0x3c8d0f['objectID'],_0xb9661d=await this[_0x36f399(0x1d9)]['put'](_0x508906,{'body':_0x3c8d0f});if((_0xb9661d==null||(_0x1c6913=_0xb9661d[_0x36f399(0x1c3)])==null||(_0x1c6913=_0x1c6913[_0x36f399(0x2fc)])==null?void 0x0:_0x1c6913[_0x36f399(0x26d)])!==0x1)throw Error(_0x36f399(0x3d8));}async['allowed'](_0x4a87a6){const _0x458757=_0x1f5521;let _0x148315=this['_getAPIPrefixPath']()+'/'+_0x4a87a6[_0x458757(0x30f)]+_0x458757(0x213)+_0x4a87a6['objectID']+_0x458757(0x280);return(await this[_0x458757(0x1d9)][_0x458757(0x160)](_0x148315,{'body':_0x4a87a6}))[_0x458757(0x1c3)][_0x458757(0x1d6)];}async[_0x1f5521(0x1ea)](_0x106778){const _0x5b1a3b=_0x1f5521;let _0x365a38=this[_0x5b1a3b(0x3d3)]()+_0x5b1a3b(0x1a0);return(await this[_0x5b1a3b(0x1d9)][_0x5b1a3b(0x160)](_0x365a38,{'body':{'requests':_0x106778}}))[_0x5b1a3b(0x1c3)]['objectActions'];}async[_0x1f5521(0x3a8)](_0x137d5e){const _0x1044a8=_0x1f5521;let _0x133f00=this[_0x1044a8(0x3d3)]()+'/'+_0x137d5e[_0x1044a8(0x30f)]+_0x1044a8(0x25e),_0x5eacd7=await this['_HTTPService'][_0x1044a8(0x160)](_0x133f00,{'body':_0x137d5e});return{'roles':_0x5eacd7['body'][_0x1044a8(0x26a)],'actions':_0x5eacd7[_0x1044a8(0x1c3)]['actions']};}async[_0x1f5521(0x24f)](_0x4c40d0){const _0x1030ec=_0x1f5521;let _0x261862=this[_0x1030ec(0x3d3)]()+'/collaborator';await this[_0x1030ec(0x1d9)]['delete'](_0x261862,{'params':{'collaboratorID':_0x4c40d0[_0x1030ec(0x328)],'objectID':_0x4c40d0['objectID'],'unitID':_0x4c40d0[_0x1030ec(0x322)]}});}async['updateCollaborator'](_0x2a0017){const _0x367693=_0x1f5521;let _0x2c3735=this[_0x367693(0x3d3)]()+_0x367693(0x192);await this[_0x367693(0x1d9)][_0x367693(0x2fe)](_0x2c3735,{'body':_0x2a0017});}async[_0x1f5521(0x2cf)](_0x2d0df0){const _0x31935d=_0x1f5521;let _0x187969=this[_0x31935d(0x3d3)]()+_0x31935d(0x192);await this[_0x31935d(0x1d9)][_0x31935d(0x160)](_0x187969,{'body':_0x2d0df0});}async[_0x1f5521(0x3c3)](_0x2a14d5){const _0x35468e=_0x1f5521;let _0xc33a20=this['_getAPIPrefixPath']()+'/collaborator',_0x280690=await this[_0x35468e(0x1d9)]['get'](_0xc33a20,{'params':{'objectID':_0x2a14d5[_0x35468e(0x303)],'unitID':_0x2a14d5[_0x35468e(0x322)]}});return this[_0x35468e(0x3cd)](_0x280690['body']['cfgEnableObjInherit']??!0x1),_0x280690[_0x35468e(0x1c3)][_0x35468e(0x33a)];}async['putCollaborators'](_0x456d0d){const _0x44e2ad=_0x1f5521;let _0x1e2310=this[_0x44e2ad(0x3d3)]()+'/collaborator';await this[_0x44e2ad(0x1d9)][_0x44e2ad(0x2df)](_0x1e2310,{'body':_0x456d0d});}[_0x1f5521(0x3cd)](_0x530acd){const _0x2e5e42=_0x1f5521;this[_0x2e5e42(0x3ac)]=_0x530acd;}[_0x1f5521(0x2b2)](){const _0x586f7d=_0x1f5521;return this[_0x586f7d(0x3ac)];}};Vn=H([V(0x0,_0x32c7b6(_0x314f58)),V(0x1,_0x32c7b6(_0x123a79))],Vn);function Hn(_0x42021a){const _0x41db27=_0x1f5521;let _0x3536fe=atob(_0x42021a),_0x1f7865=new Uint8Array(_0x3536fe[_0x41db27(0x316)]);for(let _0x1021c0=0x0;_0x1021c0<_0x3536fe[_0x41db27(0x316)];_0x1021c0++)_0x1f7865[_0x1021c0]=_0x3536fe[_0x41db27(0x3c9)](_0x1021c0);return _0x1f7865;}function Un(_0x5df708){const _0x5a5453=_0x1f5521;let _0x8ea7a0='';for(let _0x2ecd46=0x0;_0x2ecd46<_0x5df708[_0x5a5453(0x316)];_0x2ecd46++)_0x8ea7a0+=String[_0x5a5453(0x32c)](_0x5df708[_0x2ecd46]);return btoa(_0x8ea7a0);}function Wn(_0x25c04a,_0x44924d){let _0x5af11d=Hn(_0x44924d),_0x2dc1da=_0x585ea6(0x10);return Un(_0x27bfb1(_0x2dc1da,_0x3a25ba(_0x5af11d,_0x2dc1da)['encrypt'](_0x499a8d(_0x25c04a))));}function Gn(){const _0x51ff97=_0x1f5521;let _0x3c4072=_0x122e45()[_0x51ff97(0x1ad)];if(typeof window<'u'&&window[_0x51ff97(0x2db)]!==void 0x0&&_0x3c4072){let _0x2b8b0c={'time':Math[_0x51ff97(0x1e5)](Date[_0x51ff97(0x30b)]()/0x3e8),'domain':location['hostname']};return Wn(JSON[_0x51ff97(0x212)](_0x2b8b0c),_0x3c4072);}}let Kn=class{constructor(_0x4191b7){const _0x1057fe=_0x1f5521;this['_httpService']=_0x4191b7,this[_0x1057fe(0x233)]();}[_0x1f5521(0x233)](){const _0x5d765b=_0x1f5521;this['_httpService'][_0x5d765b(0x163)]({'interceptor':(_0x28db17,_0x4cc5df)=>{const _0x51fc70=_0x5d765b;let _0x2feeab=Gn();return _0x2feeab&&_0x28db17[_0x51fc70(0x1c7)][_0x51fc70(0x16f)](_0x51fc70(0x150),_0x2feeab),_0x4cc5df(_0x28db17);}});}};Kn=H([V(0x0,_0x32c7b6(_0x314f58))],Kn);let qn=class extends _0x2fb3e4{constructor(_0x46aa7b,_0x4e3f04,_0xdbc692){const _0x5dd315=_0x1f5521;super(),this[_0x5dd315(0x2dd)]=_0x46aa7b,this['_snapshotService']=_0x4e3f04,this[_0x5dd315(0x2ab)]=_0xdbc692,z(this,_0x5dd315(0x321),new _0x21afa9(null)),z(this,_0x5dd315(0x2a7),new _0x548400()),z(this,'unitInfo$',this['_unitInfo$'][_0x5dd315(0x37a)]()),z(this,'unitLoaded$',this[_0x5dd315(0x2a7)][_0x5dd315(0x37a)]());}['dispose'](){const _0x3062e0=_0x1f5521;super[_0x3062e0(0x1ee)](),this[_0x3062e0(0x2a7)][_0x3062e0(0x185)](),this[_0x3062e0(0x321)][_0x3062e0(0x185)]();}async[_0x1f5521(0x3cc)](_0x4b33af,_0x3d592c,_0x4e61b0,_0x1f367b){const _0x44fa6c=_0x1f5521;this[_0x44fa6c(0x321)][_0x44fa6c(0x1ae)]({'unitId':_0x4b33af,'type':_0x3d592c,'subUnitId':_0x1f367b});let _0x2587a7=null;switch(_0x3d592c){case _0x4f4a88[_0x44fa6c(0x399)]:_0x2587a7=await this['_snapshotService']['loadSheet'](_0x4b33af,_0x4e61b0,void 0x0,{'initialSubUnitId':_0x1f367b});break;case _0x4f4a88['UNIVER_DOC']:_0x2587a7=await this[_0x44fa6c(0x265)][_0x44fa6c(0x2b0)](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x194)]:_0x2587a7=await this[_0x44fa6c(0x265)]['loadSlide'](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x2cb)]:_0x2587a7=await this[_0x44fa6c(0x265)][_0x44fa6c(0x290)](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x337)]:_0x2587a7=await this['_snapshotService'][_0x44fa6c(0x26b)](_0x4b33af,_0x4e61b0);break;case _0x4f4a88[_0x44fa6c(0x3b9)]:_0x2587a7=await this[_0x44fa6c(0x265)][_0x44fa6c(0x30c)](_0x4b33af,_0x4e61b0);break;default:this[_0x44fa6c(0x2dd)][_0x44fa6c(0x2fc)](_0x44fa6c(0x39e),_0x44fa6c(0x34d));break;}return _0x2587a7&&this[_0x44fa6c(0x2a7)][_0x44fa6c(0x1ae)](_0x2587a7),_0x2587a7;}async[_0x1f5521(0x153)](_0x53e383,_0x3d1464,_0x2cd9d1){const _0x3d901e=_0x1f5521;var _0x5f307f;this[_0x3d901e(0x321)][_0x3d901e(0x1ae)]({'unitId':_0x53e383,'type':_0x3d1464,'subUnitId':_0x2cd9d1});let _0x1a0e56=0x0,_0x109a9f=await((_0x5f307f=this[_0x3d901e(0x2ab)])==null?void 0x0:_0x5f307f['loadOfflineData'](_0x53e383));return _0x109a9f&&(_0x109a9f[_0x3d901e(0x379)]||_0x109a9f['mutations'][_0x3d901e(0x316)]!==0x0)&&(_0x1a0e56=_0x109a9f[_0x3d901e(0x3de)]),_0x1a0e56===0x0&&this['_logService'][_0x3d901e(0x35a)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3d901e(0x3cc)](_0x53e383,_0x3d1464,_0x1a0e56,_0x2cd9d1);}};qn=H([V(0x0,_0x3849f9),V(0x1,_0x32c7b6(_0xa106a3)),V(0x2,_0x100ce1(U))],qn);let Jn=class{constructor(_0x19d2d4,_0x2bb49b,_0x37c4fa){const _0xbd0a9d=_0x1f5521;this[_0xbd0a9d(0x317)]=_0x19d2d4,this[_0xbd0a9d(0x2a1)]=_0x2bb49b,this[_0xbd0a9d(0x329)]=_0x37c4fa,z(this,_0xbd0a9d(0x2fa),0x0),z(this,_0xbd0a9d(0x24e),new _0x548400()),z(this,'change$',this[_0xbd0a9d(0x24e)]),z(this,_0xbd0a9d(0x16d),new Map());}[_0x1f5521(0x141)](_0x2fe372){const _0x19bc75=_0x1f5521;this[_0x19bc75(0x2fa)]=_0x2fe372,this['_change$'][_0x19bc75(0x1ae)](_0x2fe372);}[_0x1f5521(0x2d8)](_0x3f6e06,_0x539854){const _0x3c1d41=_0x1f5521;if(_0x539854===_0x36d131['BASE64']){let _0x683d8f=new Image();return _0x683d8f[_0x3c1d41(0x1fb)]=_0x3f6e06,_0x683d8f;}return this['_imageSourceCache'][_0x3c1d41(0x20c)](_0x3f6e06);}[_0x1f5521(0x16e)](_0x4b9596,_0x5d026f,_0x529e99){const _0x1d284c=_0x1f5521;_0x5d026f!==_0x36d131[_0x1d284c(0x22d)]&&_0x529e99!=null&&this[_0x1d284c(0x16d)]['set'](_0x4b9596,_0x529e99);}async[_0x1f5521(0x38f)](_0x27162a){const _0x551ffb=_0x1f5521;try{let _0x49ee6c=this[_0x551ffb(0x3d2)](this[_0x551ffb(0x2cd)](),''+_0x27162a),_0x42fed6=(await this['_httpService'][_0x551ffb(0x20c)](_0x49ee6c))[_0x551ffb(0x1c3)];if(_0x42fed6['error']&&_0x42fed6['error'][_0x551ffb(0x26d)]===_0x5caf42['OK']){let _0x13d8f1=_0x3de6a3(_0x42fed6[_0x551ffb(0x389)],this[_0x551ffb(0x197)]());return Promise[_0x551ffb(0x2c8)](_0x13d8f1);}return Promise[_0x551ffb(0x147)](_0x42fed6[_0x551ffb(0x2fc)]);}catch(_0x55c820){return Promise[_0x551ffb(0x147)](_0x55c820);}}async[_0x1f5521(0x2e6)](_0x5a3047){const _0x4b30b3=_0x1f5521;let _0x32864d='';if(!_0x10020d[_0x4b30b3(0x377)](_0x5a3047['type']))return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f[_0x4b30b3(0x262)]));if(_0x5a3047['size']>_0x57aa8f())return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f[_0x4b30b3(0x341)]));try{let _0x11e7d6=new FormData();_0x11e7d6[_0x4b30b3(0x191)](_0x4b30b3(0x22e),_0x5a3047);let _0x5115e5=this[_0x4b30b3(0x329)]['getFocusedUnit'](),_0x2d8ef2=_0x5115e5==null?void 0x0:_0x5115e5[_0x4b30b3(0x3d7)]();if(!_0x2d8ef2)throw Error('unitId\x20is\x20not\x20found');let _0x4470b3=this['_getUploadFileURL']()+_0x4b30b3(0x2ad)+_0x5a3047[_0x4b30b3(0x21b)][_0x4b30b3(0x252)]()+_0x4b30b3(0x19b)+_0x52302f['UnitEmbedded']+_0x4b30b3(0x16a)+encodeURIComponent(_0x2d8ef2),_0x2633e8={'body':_0x11e7d6},_0x526408=(await this[_0x4b30b3(0x317)][_0x4b30b3(0x160)](_0x4470b3,_0x2633e8))[_0x4b30b3(0x1c3)];if(typeof _0x526408[_0x4b30b3(0x2d1)]!='string')return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f[_0x4b30b3(0x324)]));_0x32864d=_0x526408[_0x4b30b3(0x2d1)];}catch{return this[_0x4b30b3(0x1da)](),Promise[_0x4b30b3(0x147)](Error(_0x5af30f['ERROR_IMAGE']));}return new Promise((_0x424a30,_0x230e4a)=>{const _0x142b92=_0x4b30b3;let _0x27a987=new FileReader();_0x27a987[_0x142b92(0x2a3)](_0x5a3047),_0x27a987[_0x142b92(0x3a5)]=_0x566f2c=>{const _0x329f3b=_0x142b92;var _0x5ba5ab;let _0x451efa=(_0x5ba5ab=_0x566f2c[_0x329f3b(0x1ef)])==null?void 0x0:_0x5ba5ab[_0x329f3b(0x243)];if(_0x451efa==null){this[_0x329f3b(0x1da)](),_0x230e4a(Error(_0x5af30f[_0x329f3b(0x324)]));return;}_0x424a30({'imageId':_0x3b00a4(0x6),'imageSourceType':_0x36d131['UUID'],'source':_0x32864d,'base64Cache':_0x451efa,'status':_0x5af30f[_0x329f3b(0x1e4)]}),this['_decreaseWaiting']();};});}[_0x1f5521(0x32f)](){const _0x12ffa6=_0x1f5521;let _0x11bbf0=this[_0x12ffa6(0x2a1)][_0x12ffa6(0x1d1)](R);return(_0x11bbf0==null?void 0x0:_0x11bbf0['uploadFileServerUrl'])??_0x12ffa6(0x1a6);}[_0x1f5521(0x2cd)](){const _0x65bc67=_0x1f5521;let _0x32d6f3=this[_0x65bc67(0x2a1)]['getConfig'](R);return(_0x32d6f3==null?void 0x0:_0x32d6f3[_0x65bc67(0x151)])??'/universer-api/file/{fileID}/sign-url';}[_0x1f5521(0x197)](){const _0x42319d=_0x1f5521;let _0x321750=this[_0x42319d(0x2a1)][_0x42319d(0x1d1)](R);return(_0x321750==null?void 0x0:_0x321750[_0x42319d(0x299)])??location['origin'];}[_0x1f5521(0x3d2)](_0x3542e5,_0x32a938){const _0xaa61fa=_0x1f5521;return _0x3542e5[_0xaa61fa(0x312)](_0xaa61fa(0x3ce),_0x32a938);}[_0x1f5521(0x1da)](){const _0x1f6357=_0x1f5521;--this[_0x1f6357(0x2fa)],this[_0x1f6357(0x24e)][_0x1f6357(0x1ae)](this[_0x1f6357(0x2fa)]);}};Jn=H([V(0x0,_0x32c7b6(_0x314f58)),V(0x1,_0x123a79),V(0x2,_0x32c7b6(_0x238a9e))],Jn);let Yn=class{constructor(_0x2d8124,_0x287518){const _0x1ad04e=_0x1f5521;this[_0x1ad04e(0x2a1)]=_0x2d8124,this[_0x1ad04e(0x1d9)]=_0x287518;}[_0x1f5521(0x3d3)](){const _0x247206=_0x1f5521;let _0x7a7874=this[_0x247206(0x2a1)][_0x247206(0x1d1)](R);return(_0x7a7874==null?void 0x0:_0x7a7874[_0x247206(0x2ef)])??_0x247206(0x273);}async['list'](_0x294f99){const _0x30fe04=_0x1f5521;let _0x150d82=this[_0x30fe04(0x3d3)]()+'/collaborator';return{'list':[{'title':_0x30fe04(0x3ba),'mentions':(await this['_HTTPService'][_0x30fe04(0x20c)](_0x150d82,{'params':{'objectID':_0x294f99[_0x30fe04(0x2c4)],'unitID':_0x294f99[_0x30fe04(0x2c4)]}}))['body']['collaborators']['map'](_0x1edeb9=>({'objectId':_0x1edeb9['id'],'name':_0x1edeb9[_0x30fe04(0x31d)][_0x30fe04(0x218)],'metadata':{'icon':_0x1edeb9[_0x30fe04(0x31d)][_0x30fe04(0x2d7)]},'label':_0x1edeb9[_0x30fe04(0x31d)]['name'],'objectType':_0xf50ac4[_0x30fe04(0x1eb)]})),'metadata':{},'type':_0xf50ac4[_0x30fe04(0x1eb)]}]};}};Yn=H([V(0x0,_0x32c7b6(_0x123a79)),V(0x1,_0x32c7b6(_0x314f58))],Yn);let Xn=class extends _0x2fb3e4{constructor(_0x20bd8d,_0x43cfe0,_0x54f732,_0x53f6b4,_0x1e1d4d){const _0x5f15c4=_0x1f5521;super(),this[_0x5f15c4(0x391)]=_0x20bd8d,this[_0x5f15c4(0x329)]=_0x43cfe0,this[_0x5f15c4(0x1ed)]=_0x54f732,this[_0x5f15c4(0x162)]=_0x53f6b4,this[_0x5f15c4(0x3a1)]=_0x1e1d4d,this[_0x5f15c4(0x382)](),this[_0x5f15c4(0x3c7)]();}[_0x1f5521(0x3c7)](){const _0x3ec21f=_0x1f5521;let _0x2513ba=async _0x20aed3=>{const _0x2231fa=_0x2b9e;(await this[_0x2231fa(0x162)][_0x2231fa(0x221)](_0x20aed3))['event$'][_0x2231fa(0x220)](_0x3dc9b5(_0x2841e9=>_0x2841e9[_0x2231fa(0x1b1)]===_0x28cc07[_0x2231fa(0x373)]),_0x530203(this['dispose$']))[_0x2231fa(0x2dc)](_0x30c53c=>{const _0x5f1eae=_0x2231fa;let {reason:_0x4a8601}=_0x30c53c[_0x5f1eae(0x2cc)];this[_0x5f1eae(0x3a1)][_0x5f1eae(0x205)]({'id':_0x5f1eae(0x338),'data':_0x4a8601}),this[_0x5f1eae(0x1ed)][_0x5f1eae(0x18c)](new _0x57781e(_0x20aed3)['id'],!0x1),this[_0x5f1eae(0x162)][_0x5f1eae(0x2da)](_0x20aed3);});};_0x48bcdd(this[_0x3ec21f(0x329)]['getTypeOfUnitAdded$'](_0x4f4a88[_0x3ec21f(0x399)]),this[_0x3ec21f(0x329)][_0x3ec21f(0x1be)](_0x4f4a88[_0x3ec21f(0x33c)]),this['_univerInstanceService'][_0x3ec21f(0x1be)](_0x4f4a88[_0x3ec21f(0x2cb)]),this[_0x3ec21f(0x329)][_0x3ec21f(0x1be)](_0x4f4a88[_0x3ec21f(0x337)]))[_0x3ec21f(0x220)](_0x55a320(_0x491b49=>_0x491b49[_0x3ec21f(0x144)][_0x3ec21f(0x3d7)]()),_0x3dc9b5(_0x3b6ce2=>!_0x395bd6(_0x3b6ce2)),_0x530203(this[_0x3ec21f(0x201)]))[_0x3ec21f(0x2dc)](_0x2b3403=>{_0x2513ba(_0x2b3403);});}['_initUnitPermissionChange'](){const _0x42a946=_0x1f5521;let _0x4c74d7=async _0x1e42f9=>{const _0x5f062a=_0x2b9e;let _0x42acc9=await this[_0x5f062a(0x162)][_0x5f062a(0x221)](_0x1e42f9),_0x106217=this[_0x5f062a(0x391)][_0x5f062a(0x20c)](_0x2ddc32);_0x42acc9['event$']['pipe'](_0x3dc9b5(_0x2e8336=>_0x2e8336[_0x5f062a(0x1b1)]===_0x28cc07[_0x5f062a(0x36e)]),_0x530203(this[_0x5f062a(0x201)]))[_0x5f062a(0x2dc)](_0x592805=>{const _0x12400f=_0x5f062a;let {objectId:_0x10f014}=_0x592805['data'];_0x10f014===_0x1e42f9?_0x106217[_0x12400f(0x15c)](_0x1e42f9):_0x106217[_0x12400f(0x250)](_0x1e42f9,_0x10f014);});};_0x48bcdd(this['_univerInstanceService'][_0x42a946(0x1be)](_0x4f4a88[_0x42a946(0x399)]))[_0x42a946(0x220)](_0x55a320(_0x10217b=>_0x10217b['unit'][_0x42a946(0x3d7)]()),_0x3dc9b5(_0x1cbad0=>!_0x395bd6(_0x1cbad0)),_0x530203(this[_0x42a946(0x201)]))[_0x42a946(0x2dc)](_0x11fbd2=>{_0x4c74d7(_0x11fbd2);});}};Xn=H([V(0x0,_0x32c7b6(_0xd2295f)),V(0x1,_0x238a9e),V(0x2,_0x51823a),V(0x3,_0x32c7b6(Mn)),V(0x4,_0x32c7b6(B))],Xn);let Zn=class{constructor(_0x379c88,_0x46de35){const _0x3a59de=_0x1f5521;this[_0x3a59de(0x2a1)]=_0x379c88,this['_httpService']=_0x46de35;}async[_0x1f5521(0x19e)](_0x5c2f3c,_0x2bf320){const _0x2e6104=_0x1f5521;var _0x484b13;let {unitID:_0x3e24fb,type:_0x26773d,revision:_0x3821e5=0x0}=_0x2bf320,_0x256385=this['getSnapshotAPIPath']()+'/'+_0x26773d+_0x2e6104(0x16b)+_0x3e24fb+_0x2e6104(0x340)+_0x3821e5,_0x7a98c4=(await this['_httpService'][_0x2e6104(0x20c)](_0x256385))[_0x2e6104(0x1c3)],_0xceee2f=(_0x484b13=_0x7a98c4[_0x2e6104(0x274)])==null?void 0x0:_0x484b13['workbook'];if(_0xceee2f){let _0x4efc24=_0xceee2f==null?void 0x0:_0xceee2f[_0x2e6104(0x2fb)];_0xceee2f['originalMeta']=_0x23efb2[_0x2e6104(0x2b8)](_0x52c95b(_0x4efc24)),Object[_0x2e6104(0x333)](_0xceee2f['sheets'])[_0x2e6104(0x154)](([,_0x153291])=>{const _0x893aa2=_0x2e6104;let _0xc507b5=_0x153291[_0x893aa2(0x2fb)];_0x153291[_0x893aa2(0x2fb)]=_0x23efb2[_0x893aa2(0x2b8)](_0x52c95b(_0xc507b5));});}return _0x7a98c4;}async[_0x1f5521(0x2d3)](_0x27f118,_0x5b3250){const _0xf12188=_0x1f5521;let {unitID:_0x1ef8eb,type:_0x4ddcb3,blockID:_0x23a731}=_0x5b3250,_0x73f2f9=this[_0xf12188(0x287)]()+'/'+_0x4ddcb3+_0xf12188(0x16b)+_0x1ef8eb+'/block/'+_0x23a731;return(await this[_0xf12188(0x317)]['get'](_0x73f2f9))['body'];}async['getDeserializedSheetBlock'](_0x22f7c2,_0x589d31){const _0x2038dd=_0x1f5521;let {unitID:_0x1b9259,type:_0x339c37,blockID:_0x6b0594}=_0x589d31,_0x42208d=this[_0x2038dd(0x287)]()+_0x2038dd(0x39c)+_0x339c37+_0x2038dd(0x16b)+_0x1b9259+_0x2038dd(0x39c)+_0x6b0594;return(await this['_httpService'][_0x2038dd(0x20c)](_0x42208d))['body'];}async['fetchMissingChangesets'](_0x385176,_0x35927d){const _0x2c1fa3=_0x1f5521;let {unitID:_0x200177,type:_0x570a1d,from:_0x4eff3e,to:_0x12adcb}=_0x35927d,_0x46fd6c=this[_0x2c1fa3(0x287)]()+'/'+_0x570a1d+'/unit/'+_0x200177+'/fetchmissing?from='+_0x4eff3e+_0x2c1fa3(0x24a)+_0x12adcb;return(await this[_0x2c1fa3(0x317)][_0x2c1fa3(0x20c)](_0x46fd6c))[_0x2c1fa3(0x1c3)];}[_0x1f5521(0x223)](){const _0x39eb96=_0x1f5521;return this['_configService'][_0x39eb96(0x1d1)](_0x39eb96(0x1cb))??this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x2bfc83=_0x1f5521;let _0x484bf1=this[_0x2bfc83(0x2a1)][_0x2bfc83(0x1d1)](R);return(_0x484bf1==null?void 0x0:_0x484bf1[_0x2bfc83(0x149)])??_0x2bfc83(0x259);}async[_0x1f5521(0x3b4)](_0x22fdc1,_0x4dfd54){const _0x2e4fb6=_0x1f5521;let _0x2e9d65=_0x2e4fb6(0x38e)+_0x4dfd54[_0x2e4fb6(0x258)]+_0x2e4fb6(0x16b)+_0x4dfd54[_0x2e4fb6(0x322)]+_0x2e4fb6(0x1b0);return(await this[_0x2e4fb6(0x317)][_0x2e4fb6(0x20c)](_0x2e9d65,{'params':{'resourceId':JSON[_0x2e4fb6(0x212)](_0x4dfd54[_0x2e4fb6(0x1b3)])}}))['body'];}[_0x1f5521(0x1f6)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1f5521(0x2ac)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x1f5521(0x281)](){const _0x35f641=_0x1f5521;throw Error(_0x35f641(0x35d));}[_0x1f5521(0x20e)](){const _0x27afb0=_0x1f5521;throw Error(_0x27afb0(0x35d));}[_0x1f5521(0x2f8)](){const _0x176e50=_0x1f5521;throw Error(_0x176e50(0x35d));}['getLatestCsReqIdBySid'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Zn=H([V(0x0,_0x123a79),V(0x1,_0x32c7b6(_0x314f58))],Zn);let Qn=class extends _0xa29cff{constructor(_0x42145f,_0x54eeeb,_0x34b561,_0x46295,_0x4aac16,_0x5a406b){const _0x402eb6=_0x1f5521;super(_0x42145f,_0x54eeeb,_0x34b561,_0x46295),this[_0x402eb6(0x2c5)]=_0x4aac16,this[_0x402eb6(0x2dd)]=_0x5a406b;}[_0x1f5521(0x279)](_0x19f7a6,_0x309c32){const _0x4ad890=_0x1f5521;let _0x465b02=this[_0x4ad890(0x270)](_0x19f7a6);if(_0x465b02)try{let _0x33dc3a=this[_0x4ad890(0x1f3)](_0x465b02,_0x309c32);this[_0x4ad890(0x1d7)](_0x19f7a6,_0x33dc3a);}catch(_0x583418){this[_0x4ad890(0x2dd)]['error']('[CollaborationUndoRedoService]',_0x583418),this[_0x4ad890(0x219)](_0x19f7a6);}let _0x5dd13e=this[_0x4ad890(0x2e1)](_0x19f7a6);if(_0x5dd13e)try{let _0x3df5c6=this[_0x4ad890(0x1f3)](_0x5dd13e,_0x309c32);this['_substituteRedoStack'](_0x19f7a6,_0x3df5c6);}catch(_0x5cb7aa){this['_logService'][_0x4ad890(0x2fc)](_0x5cb7aa),this[_0x4ad890(0x229)](_0x19f7a6);}}[_0x1f5521(0x219)](_0x143059){const _0x4c4b34=_0x1f5521;let _0x1e6b1c=this[_0x4c4b34(0x270)](_0x143059);_0x1e6b1c&&(_0x1e6b1c['length']=0x0,this[_0x4c4b34(0x390)]());}[_0x1f5521(0x229)](_0x1b8687){const _0x465574=_0x1f5521;let _0x1f939f=this['_getRedoStack'](_0x1b8687);_0x1f939f&&(_0x1f939f['length']=0x0,this[_0x465574(0x390)]());}[_0x1f5521(0x1d7)](_0x2b6ba7,_0x1888db){const _0xd162cc=_0x1f5521;this[_0xd162cc(0x2a9)][_0xd162cc(0x16f)](_0x2b6ba7,_0x1888db),this[_0xd162cc(0x390)]();}[_0x1f5521(0x1a1)](_0x45c841,_0x32b4fd){const _0x5e04ff=_0x1f5521;this[_0x5e04ff(0x196)][_0x5e04ff(0x16f)](_0x45c841,_0x32b4fd),this[_0x5e04ff(0x390)]();}[_0x1f5521(0x1f3)](_0x1ec16b,_0x1a9b36){const _0xb7d94d=_0x1f5521;let _0x381596=[],_0x5ae4b1=_0x1a9b36,_0x107ba5=_0x1a9b36;for(let _0x1f0b62=_0x1ec16b[_0xb7d94d(0x316)]-0x1;_0x1f0b62>=0x0;_0x1f0b62--){let {unitID:_0x480c6a,undoMutations:_0x30b37e,redoMutations:_0xc64442}=_0x1ec16b[_0x1f0b62],_0x1bcb71=this['_transformService'][_0xb7d94d(0x222)](_0x5ae4b1,_0x30b37e),_0x565782=this[_0xb7d94d(0x2c5)][_0xb7d94d(0x222)](_0x107ba5,_0xc64442);if(_0xc4ea4b(_0x1bcb71)||_0xc4ea4b(_0x565782)){this[_0xb7d94d(0x2dd)][_0xb7d94d(0x2fc)](_0xb7d94d(0x3b6),_0xb7d94d(0x264),_0x1bcb71,_0x565782);break;}_0x5ae4b1=_0x1bcb71['c1Prime'],_0x107ba5=_0x565782[_0xb7d94d(0x1c6)],_0x381596['push']({'unitID':_0x480c6a,'undoMutations':_0x1bcb71['m2Prime'],'redoMutations':_0x565782[_0xb7d94d(0x242)]});}return _0x381596[_0xb7d94d(0x31c)]();}};Qn=H([V(0x0,_0x238a9e),V(0x1,_0x24738d),V(0x2,_0x3d76ae),V(0x3,_0x123a79),V(0x4,_0x30bd2c),V(0x5,_0x3849f9)],Qn);let $n=class extends _0x2c2938{constructor(_0xb5a5d8=ft,_0x1a0928,_0x2af6aa,_0x1a2961){const _0x5e44b1=_0x1f5521;super(),this[_0x5e44b1(0x364)]=_0xb5a5d8,this[_0x5e44b1(0x2dd)]=_0x1a0928,this[_0x5e44b1(0x391)]=_0x2af6aa,this[_0x5e44b1(0x2a1)]=_0x1a2961;let {..._0x2f6a27}=_0x5b8bc5({},ft,this[_0x5e44b1(0x364)]);if(!_0x2f6a27[_0x5e44b1(0x13e)])throw Error(_0x5e44b1(0x3c8));this['_config']=_0x2f6a27,this[_0x5e44b1(0x2a1)][_0x5e44b1(0x2d4)](R,_0x2f6a27);}['onStarting'](){const _0x490f24=_0x1f5521;this['_registerDependencies'](),this[_0x490f24(0x30d)]();}['_registerDependencies'](){const _0x40db14=_0x1f5521;var _0xe3090f,_0x13b372;this['_injector']['has'](_0x143b1e)&&this['_logService'][_0x40db14(0x2fc)]('[UniverCollaborationClientPlugin]',_0x40db14(0x266));let _0xe9d0de=_0x410d5e([[_0x143b1e,{'useClass':Qn}],[kn,{'useValue':An()}],[Mn],[Ot],[Wt],[Bn],[Kn],[Dt],[Xn],[B],[qn],[En,{'useClass':this[_0x40db14(0x364)][_0x40db14(0x13e)]}],[_0x223810,{'useClass':Zn}],[_0x389ebf,{'useClass':Vn}],[_0x17ef7f,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x5ec686,{'useClass':Yn}],[Nn],[In]],(_0xe3090f=this['_config'])==null?void 0x0:_0xe3090f[_0x40db14(0x2ed)]);if(!((_0x13b372=this[_0x40db14(0x364)])!=null&&_0x13b372['enableSingleActiveInstanceLock'])){let _0x1232da=_0xe9d0de[_0x40db14(0x244)](([_0xfb9f40])=>_0xfb9f40===W);_0x1232da!==-0x1&&_0xe9d0de[_0x40db14(0x2f4)](_0x1232da,0x1);}_0x3eca33(this[_0x40db14(0x391)],_0xe9d0de);}[_0x1f5521(0x30d)](){const _0x11056b=_0x1f5521;var _0x2ac724,_0x10ce29;if(this[_0x11056b(0x391)][_0x11056b(0x20c)](_0x314f58)[_0x11056b(0x163)]({'priority':0x14,'interceptor':_0x12c387({'maxParallel':0x6})}),!((_0x2ac724=this[_0x11056b(0x364)])!=null&&_0x2ac724[_0x11056b(0x251)])){var _0xb7dd4a;(_0xb7dd4a=this[_0x11056b(0x391)][_0x11056b(0x20c)](U,_0x5262c6[_0x11056b(0x2bb)]))==null||_0xb7dd4a[_0x11056b(0x306)]();}(_0x10ce29=this[_0x11056b(0x364)])!=null&&_0x10ce29[_0x11056b(0x2b3)]&&_0x1c608a(this[_0x11056b(0x391)],[[Bn]]),_0x1c608a(this[_0x11056b(0x391)],[[Kn],[Nn],[Xn]]);}};z($n,_0x1f5521(0x240),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),z($n,_0x1f5521(0x289),Pn),z($n,'version',Fn),$n=H([_0x1a8c7d(_0x267699,_0x32578b,_0x3886aa),V(0x1,_0x3849f9),V(0x2,_0x32c7b6(_0xd2295f)),V(0x3,_0x123a79)],$n);export{Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Nn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Vt as CollaborationSession,Mn as CollaborationSessionService,On as CollaborationSocketService,pn as CollaborationStatus,Et as CollaborationUIEventId,B as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,Dt as CommentService,X as ConflictState,pt as DEFAULT_COLLAB_WEB_SOCKET_URL,xt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,mt as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,ht as HEARTBEAT_INTERVAL_KEY,gt as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,kn as ICollaborationClientAdapterService,En as ICollaborationSocketService,U as ILocalCacheService,Cn as INetworkConditionService,W as ISingleActiveUnitService,yt as LOCAL_CACHE_INTERVAL,vt as LOCAL_CACHE_INTERVAL_KEY,Ot as MemberService,Yn as MentionIoHttpService,Z as OfflineState,Sn as PdfCollaborationEntity,q as PendingState,bt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,_t as RETRY_CONNECTING_MAX_COUNT_KEY,zt as SessionStatus,yn as SheetCollaborationEntity,Wt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Gt as UnitStatus,$n as UniverCollaborationClientPlugin,An as createUniverCollaborationAdapter,wn as deserializeToCombResponse,Ht as getLocalCacheKey,Tn as serializeCombRequest};
|