@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +2 -2
- package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
- 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 +14 -14
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3c69ef=_0x43c7;(function(_0x41ec24,_0x380d63){const _0x15f7a2=_0x43c7,_0x176c06=_0x41ec24();while(!![]){try{const _0x22fe91=-parseInt(_0x15f7a2(0x39c))/0x1*(-parseInt(_0x15f7a2(0x21b))/0x2)+parseInt(_0x15f7a2(0x404))/0x3*(parseInt(_0x15f7a2(0x307))/0x4)+parseInt(_0x15f7a2(0x1e6))/0x5+parseInt(_0x15f7a2(0x1aa))/0x6+parseInt(_0x15f7a2(0x264))/0x7+parseInt(_0x15f7a2(0x2dc))/0x8+-parseInt(_0x15f7a2(0x361))/0x9;if(_0x22fe91===_0x380d63)break;else _0x176c06['push'](_0x176c06['shift']());}catch(_0x576bf1){_0x176c06['push'](_0x176c06['shift']());}}}(_0x36d7,0x186d6));import{CollaborationEvent as _0x43102b,CompressMutationService as _0x4e166f,EmptyMutationInfo as _0x59ed8b,ISnapshotServerService as _0xf3e9c6,ITransformService as _0x3a995f,RevisionService as _0x2d7797,SnapshotService as _0x45d3b5,UniverCollaborationPlugin as _0x493098,b64DecodeUnicode as _0x14b14d,isTransformChangesetsSuccess as _0x23d0df,isTransformMutationsWithChangesetFailure as _0x18826e,isTransformMutationsWithChangesetSuccess as _0x30d694,mapDocumentTypeToUniverInstanceType as _0x4e1660,parseChangesetToProtocol as _0x4835ca,parseProtocolChangeset as _0x131ca5,textEncoder as _0x9afde9,uuidv4 as _0x15262c}from'@univerjs-pro/collaboration';import{CommandType as _0x537f94,DependentOn as _0x25f04d,Disposable as _0x1c670c,DisposableCollection as _0x4fc3ed,IAuthzIoService as _0x3c91dc,ICommandService as _0x4705e0,IConfigService as _0x1f37e4,IContextService as _0x6a8ee3,IImageIoService as _0x80c08d,ILogService as _0x5c3e7f,IMentionIOService as _0x3ae42a,IPermissionService as _0x36da45,IUndoRedoService as _0x4aa991,IUniverInstanceService as _0x344fe1,ImageSourceType as _0xb1e59a,ImageUploadStatusType as _0x320d1a,Inject as _0xe230cc,Injector as _0x31a56e,JSONX as _0x42c2de,LocalUndoRedoService as _0x1faad3,LocaleService as _0x9a407d,MentionType as _0x3a7b55,Optional as _0x2b3cfa,Plugin as _0x2c6762,Quantity as _0x46b617,Rectangle as _0x4038f3,RxDisposable as _0x50b38b,Tools as _0x52d975,UniverInstanceType as _0x9a8e4e,UserManagerService as _0x55a0a7,Workbook as _0x19ddfe,createIdentifier as _0x27db79,generateRandomId as _0x5c124c,isInternalEditorID as _0x5bdd45,merge as _0x507159,mergeOverrideWithDependencies as _0x23d6dd,registerDependencies as _0xa204e3,resolveWithBasePath as _0x6dad3d,sequenceExecute as _0x8d0c4b,toDisposable as _0x4a5ee8,touchDependencies as _0x17b45d}from'@univerjs/core';import{DocStateChangeManagerService as _0x4be2f8,RichTextEditingMutation as _0x386ca6}from'@univerjs/docs';import{InsertSheetMutation as _0x11df8b,SetSelectionsOperation as _0x1b5157,SheetPermissionInitController as _0x2be84a,SheetsSelectionsService as _0x173cd0,WorkbookEditablePermission as _0x1413a3}from'@univerjs/sheets';import{BehaviorSubject as _0x296086,ReplaySubject as _0x464a6c,Subject as _0x59eece,concatMap as _0x55ed4c,firstValueFrom as _0x34da10,map as _0x37ecf3,merge as _0x4802bd,of as _0x282a93,shareReplay as _0x1c2ab6,take as _0x40acda,takeUntil as _0x48361a}from'rxjs';import{CmdRspCode as _0x1d3aac,CombCmd as _0x5b7fe7,ErrorCode as _0x291ad4,FileSource as _0x316b67}from'@univerjs/protocol';import{ITelemetryService as _0x2f845e}from'@univerjs/telemetry';import{delay as _0x58575b,filter as _0x26acea,map as _0xf99eb3,take as _0x3b77de,takeUntil as _0x241cda}from'rxjs/operators';import{AddSlidePageMutation as _0x3d73f2,EnsureSlideMasterPageMutation as _0x27d579,MoveSlidePageMutation as _0x1fa40d,RemoveSlidePageMutation as _0x46d741}from'@univerjs-pro/slides';import{HTTPRequest as _0x200900,HTTPService as _0x32d10d,ISocketService as _0x313930,MergeInterceptorFactory as _0x392035,ThresholdInterceptorFactory as _0x4e8da6,UniverNetworkPlugin as _0x3667b4}from'@univerjs/network';import{UniverLicensePlugin as _0x6b7911,getGlobalObject as _0x1c22a4}from'@univerjs-pro/license';import{cbc as _0x89c1d1}from'@noble/ciphers/aes.js';import{concatBytes as _0x1ecd97,randomBytes as _0x3911d9,utf8ToBytes as _0x3329bb}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x43c969,getDrawingImageAllowSize as _0x3e4b91}from'@univerjs/drawing';const L=_0x3c69ef(0x268),pt={},mt=_0x3c69ef(0x2de),ht=_0x3c69ef(0x1e1),gt=_0x3c69ef(0x37e),_t=_0x3c69ef(0x2a9),vt=0x4e20,yt=_0x3c69ef(0x317),bt=_0x3c69ef(0x23e),xt=0x3e8,St=_0x3c69ef(0x22f),Ct='/universer-api/uniscript';function wt(_0x4c1e0a){const _0x2179b1=_0x3c69ef;return JSON[_0x2179b1(0x2f7)](_0x4c1e0a)[_0x2179b1(0x3a1)];}function Tt(_0x66cb47){'@babel/helpers - typeof';const _0x25c290=_0x3c69ef;return Tt=typeof Symbol==_0x25c290(0x35a)&&typeof Symbol['iterator']==_0x25c290(0x391)?function(_0x35729d){return typeof _0x35729d;}:function(_0x4c91b6){const _0x29e11b=_0x25c290;return _0x4c91b6&&typeof Symbol==_0x29e11b(0x35a)&&_0x4c91b6[_0x29e11b(0x36a)]===Symbol&&_0x4c91b6!==Symbol[_0x29e11b(0x401)]?'symbol':typeof _0x4c91b6;},Tt(_0x66cb47);}function Et(_0x491656,_0x2e0eb1){const _0x375a4b=_0x3c69ef;if(Tt(_0x491656)!=_0x375a4b(0x1e0)||!_0x491656)return _0x491656;var _0x568cc9=_0x491656[Symbol['toPrimitive']];if(_0x568cc9!==void 0x0){var _0x5f077e=_0x568cc9[_0x375a4b(0x1db)](_0x491656,_0x2e0eb1||_0x375a4b(0x3de));if(Tt(_0x5f077e)!=_0x375a4b(0x1e0))return _0x5f077e;throw TypeError(_0x375a4b(0x22c));}return(_0x2e0eb1===_0x375a4b(0x3e7)?String:Number)(_0x491656);}function Dt(_0xdbae83){const _0x401606=_0x3c69ef;var _0x606781=Et(_0xdbae83,'string');return Tt(_0x606781)==_0x401606(0x391)?_0x606781:_0x606781+'';}function R(_0x11d019,_0x5b3cbb,_0x1f0252){const _0x130528=_0x3c69ef;return(_0x5b3cbb=Dt(_0x5b3cbb))in _0x11d019?Object[_0x130528(0x3c4)](_0x11d019,_0x5b3cbb,{'value':_0x1f0252,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x11d019[_0x5b3cbb]=_0x1f0252,_0x11d019;}let Ot=function(_0x41b070){const _0x1cb5a2=_0x3c69ef;return _0x41b070['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x41b070[_0x1cb5a2(0x300)]=_0x1cb5a2(0x300),_0x41b070['CONFLICT']='CONFLICT',_0x41b070[_0x1cb5a2(0x3bd)]=_0x1cb5a2(0x3bd),_0x41b070['JOIN_ROOM_FAILED']='JOIN_ROOM_FAILED',_0x41b070[_0x1cb5a2(0x18f)]='SOCKET_FAILED_RETRY',_0x41b070[_0x1cb5a2(0x343)]=_0x1cb5a2(0x343),_0x41b070[_0x1cb5a2(0x28b)]=_0x1cb5a2(0x28b),_0x41b070;}({});var z=class{constructor(){const _0x10708f=_0x3c69ef;R(this,_0x10708f(0x367),new _0x59eece()),R(this,_0x10708f(0x1b7),this[_0x10708f(0x367)][_0x10708f(0x1cc)]());}['emitEvent'](_0x360f14){const _0x2a9982=_0x3c69ef;this[_0x2a9982(0x367)]['next'](_0x360f14);}},kt=class{constructor(){const _0x5be539=_0x3c69ef;R(this,_0x5be539(0x1a9),new _0x59eece()),R(this,'commentUpdate$',this[_0x5be539(0x1a9)][_0x5be539(0x1cc)]());}[_0x3c69ef(0x38b)](_0x1f9537){const _0x2d596f=_0x3c69ef;this[_0x2d596f(0x1a9)]['next'](_0x1f9537);}};function B(_0xb7d947,_0x266c38){return function(_0x573a10,_0x11d86e){_0x266c38(_0x573a10,_0x11d86e,_0xb7d947);};}function V(_0x4ab4c4,_0x46c620,_0xf0975b,_0x14152a){const _0x19eedd=_0x3c69ef;var _0x44fe1e=arguments[_0x19eedd(0x3a1)],_0x5e52e8=_0x44fe1e<0x3?_0x46c620:_0x14152a===null?_0x14152a=Object[_0x19eedd(0x19b)](_0x46c620,_0xf0975b):_0x14152a,_0x4723a7;if(typeof Reflect==_0x19eedd(0x1e0)&&typeof Reflect[_0x19eedd(0x324)]==_0x19eedd(0x35a))_0x5e52e8=Reflect[_0x19eedd(0x324)](_0x4ab4c4,_0x46c620,_0xf0975b,_0x14152a);else{for(var _0x1c479e=_0x4ab4c4['length']-0x1;_0x1c479e>=0x0;_0x1c479e--)(_0x4723a7=_0x4ab4c4[_0x1c479e])&&(_0x5e52e8=(_0x44fe1e<0x3?_0x4723a7(_0x5e52e8):_0x44fe1e>0x3?_0x4723a7(_0x46c620,_0xf0975b,_0x5e52e8):_0x4723a7(_0x46c620,_0xf0975b))||_0x5e52e8);}return _0x44fe1e>0x3&&_0x5e52e8&&Object[_0x19eedd(0x3c4)](_0x46c620,_0xf0975b,_0x5e52e8),_0x5e52e8;}let H=class extends _0x1c670c{constructor(_0x5e2511,_0xb9129b){const _0x407ff3=_0x3c69ef;super(),this['_univerInstanceService']=_0x5e2511,this['_userManagerService']=_0xb9129b,R(this,_0x407ff3(0x38d),new Map()),R(this,_0x407ff3(0x2e9),new _0x59eece()),this[_0x407ff3(0x3b8)](_0x4802bd(this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x1a4)])['pipe'](_0xf99eb3(_0x59cf5f=>_0x59cf5f[_0x407ff3(0x270)]())),this['_univerInstanceService'][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x274)])[_0x407ff3(0x380)](_0xf99eb3(_0x320146=>_0x320146[_0x407ff3(0x270)]())),this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e['UNIVER_BOARD'])[_0x407ff3(0x380)](_0xf99eb3(_0x2b8f37=>_0x2b8f37['getUnitId']())),this[_0x407ff3(0x1ba)][_0x407ff3(0x32a)](_0x9a8e4e[_0x407ff3(0x3b3)])[_0x407ff3(0x380)](_0xf99eb3(_0x362c29=>_0x362c29[_0x407ff3(0x270)]())))['subscribe'](_0x1e573a=>this[_0x407ff3(0x2b7)](_0x1e573a)));}[_0x3c69ef(0x2e7)](_0x5e9f80){const _0x46094e=_0x3c69ef;return this[_0x46094e(0x38d)][_0x46094e(0x387)](_0x5e9f80)?_0x282a93(this[_0x46094e(0x38d)][_0x46094e(0x20f)](_0x5e9f80)):this[_0x46094e(0x2e9)][_0x46094e(0x380)](_0xf99eb3(_0x114991=>{const _0x577174=_0x46094e;if(_0x114991===_0x5e9f80)return this['_roomMembers'][_0x577174(0x20f)](_0x114991);}));}[_0x3c69ef(0x206)](_0x4606ac){this['_userManagerService']['setCurrentUser'](_0x4606ac);}[_0x3c69ef(0x32d)](){const _0xa4aad3=_0x3c69ef;return this[_0xa4aad3(0x3b5)][_0xa4aad3(0x32d)]();}[_0x3c69ef(0x316)](_0x1e4e4a,_0x506a41){const _0xb44407=_0x3c69ef;let _0x27b869=this[_0xb44407(0x38d)]['get'](_0x1e4e4a);_0x27b869||(_0x27b869=new At(),this[_0xb44407(0x38d)]['set'](_0x1e4e4a,_0x27b869),this[_0xb44407(0x2e9)]['next'](_0x1e4e4a)),_0x27b869[_0xb44407(0x316)](_0x506a41);}['removeMember'](_0xe057d4,_0x184d73){const _0x51dc3d=_0x3c69ef;let _0x42346a=this[_0x51dc3d(0x38d)]['get'](_0xe057d4);_0x42346a&&_0x42346a[_0x51dc3d(0x266)](_0x184d73);}[_0x3c69ef(0x321)](_0x3c8f17){const _0x297ef6=_0x3c69ef;return this['_roomMembers'][_0x297ef6(0x20f)](_0x3c8f17);}[_0x3c69ef(0x331)](_0x559c39,_0x4a4007){const _0xc174c9=_0x3c69ef;let _0x195623=this[_0xc174c9(0x38d)][_0xc174c9(0x20f)](_0x559c39);if(_0x195623)return _0x195623[_0xc174c9(0x331)](_0x4a4007);}[_0x3c69ef(0x2b7)](_0x5f3fd3){const _0x3a72c5=_0x3c69ef;let _0x4af813=this[_0x3a72c5(0x38d)][_0x3a72c5(0x20f)](_0x5f3fd3);_0x4af813&&(_0x4af813[_0x3a72c5(0x20b)](),this[_0x3a72c5(0x38d)]['delete'](_0x5f3fd3));}['dispose'](){const _0x11d339=_0x3c69ef;this[_0x11d339(0x38d)][_0x11d339(0x1e5)](_0x3ce11d=>_0x3ce11d['dispose']()),this['_roomMembers'][_0x11d339(0x3bf)](),this['_roomCreated$'][_0x11d339(0x3aa)]();}};H=V([B(0x0,_0x344fe1),B(0x1,_0xe230cc(_0x55a0a7))],H);var At=class extends _0x1c670c{constructor(..._0x5b2632){const _0x2beb7a=_0x3c69ef;super(..._0x5b2632),R(this,_0x2beb7a(0x197),new Map()),R(this,_0x2beb7a(0x1f2),new _0x296086(this[_0x2beb7a(0x197)])),R(this,'members$',this[_0x2beb7a(0x1f2)]['asObservable']());}[_0x3c69ef(0x20b)](){const _0x839b85=_0x3c69ef;this['_members']['clear'](),this[_0x839b85(0x1f2)]['complete']();}[_0x3c69ef(0x316)](_0x3bb383){const _0x341dd4=_0x3c69ef;this[_0x341dd4(0x197)]['set'](_0x3bb383[_0x341dd4(0x223)],_0x3bb383),this['_emitMembers']();}[_0x3c69ef(0x266)](_0x15517b){const _0x5ea666=_0x3c69ef;this[_0x5ea666(0x197)][_0x5ea666(0x393)](_0x15517b),this[_0x5ea666(0x2b8)]();}[_0x3c69ef(0x331)](_0x32ce58){const _0x52372b=_0x3c69ef;return this[_0x52372b(0x197)][_0x52372b(0x20f)](_0x32ce58);}[_0x3c69ef(0x36b)](){const _0x557730=_0x3c69ef;return Array['from'](this[_0x557730(0x197)][_0x557730(0x1ef)]());}['_emitMembers'](){const _0x2c5e38=_0x3c69ef;this[_0x2c5e38(0x1f2)][_0x2c5e38(0x19a)](this[_0x2c5e38(0x197)]);}};function jt(_0x115230,_0x486809){const _0x536836=_0x3c69ef;if(Nt(_0x115230))return _0x486809;if(_0x486809['eventID']===_0x43102b['SUBMIT_CHANGESET']){var _0x455d28;let _0x150386=Rt(_0x115230),_0x16f05b=_0x486809;return{..._0x16f05b,'data':{..._0x16f05b[_0x536836(0x2ee)],'unitID':_0x115230[_0x536836(0x3d8)]['unitId'],'unitType':(_0x455d28=_0x115230['target']['unitType'])==null?_0x16f05b[_0x536836(0x2ee)][_0x536836(0x242)]:_0x455d28,'changeset':_0x150386['toRemote'](_0x16f05b[_0x536836(0x2ee)][_0x536836(0x2c2)],zt(_0x115230))}};}if(_0x486809[_0x536836(0x3f0)]===_0x43102b['FETCH_MISSING']){var _0x3d674d;let _0x5a19f1=_0x486809;return{..._0x5a19f1,'data':{..._0x5a19f1['data'],'unitID':_0x115230[_0x536836(0x3d8)]['unitId'],'unitType':(_0x3d674d=_0x115230[_0x536836(0x3d8)]['unitType'])==null?_0x5a19f1[_0x536836(0x2ee)][_0x536836(0x242)]:_0x3d674d}};}return _0x486809;}function Mt(_0x3d32c5,_0x10b652){const _0x33f5f1=_0x3c69ef;if(Nt(_0x3d32c5))return[_0x10b652];switch(_0x10b652['eventID']){case _0x43102b[_0x33f5f1(0x265)]:return[Pt(_0x3d32c5,_0x10b652)];case _0x43102b[_0x33f5f1(0x269)]:return[It(_0x3d32c5,_0x10b652)];case _0x43102b[_0x33f5f1(0x24b)]:return[Ft(_0x3d32c5,_0x10b652)];default:return[_0x10b652];}}function Nt(_0x8ef860){const _0x3d54b0=_0x3c69ef;return _0x8ef860['target']['endpoint']==null&&_0x8ef860[_0x3d54b0(0x3d8)][_0x3d54b0(0x296)]===_0x8ef860[_0x3d54b0(0x2e4)]&&!_0x8ef860[_0x3d54b0(0x2c2)];}function Pt(_0x4af4b9,_0x4806bd){const _0x3308ef=_0x3c69ef;return{..._0x4806bd,'data':_0x4835ca(Lt(_0x4af4b9,_0x131ca5(_0x4806bd[_0x3308ef(0x2ee)])))};}function Ft(_0x89206d,_0x32b1c4){const _0xffa229=_0x3c69ef;return{..._0x32b1c4,'data':Lt(_0x89206d,_0x32b1c4[_0xffa229(0x2ee)])};}function It(_0x3ce054,_0x48df30){const _0x40a830=_0x3c69ef;let _0x4e7908=_0x48df30[_0x40a830(0x2ee)];return{..._0x48df30,'data':{..._0x4e7908,'changesets':_0x4e7908[_0x40a830(0x23a)][_0x40a830(0x35d)](_0x3cc44d=>_0x4835ca(Lt(_0x3ce054,_0x131ca5(_0x3cc44d))))}};}function Lt(_0x1be39e,_0x17bf6f){return Rt(_0x1be39e)['toLocal'](_0x17bf6f,zt(_0x1be39e));}function Rt(_0x2ae73e){const _0x5cbd0b=_0x3c69ef;if(!_0x2ae73e['changeset'])throw Error(_0x5cbd0b(0x2b3));return _0x2ae73e[_0x5cbd0b(0x2c2)];}function zt(_0x121db5){const _0x224b7c=_0x3c69ef;return{'localUnitId':_0x121db5[_0x224b7c(0x2e4)],'unitType':_0x121db5[_0x224b7c(0x242)],'target':_0x121db5[_0x224b7c(0x3d8)]};}let Bt=function(_0x4fd693){const _0xf6e6b8=_0x3c69ef;return _0x4fd693[_0x4fd693[_0xf6e6b8(0x32c)]=0x0]=_0xf6e6b8(0x32c),_0x4fd693[_0x4fd693[_0xf6e6b8(0x344)]=0x1]=_0xf6e6b8(0x344),_0x4fd693[_0x4fd693['OFFLINE']=0x2]='OFFLINE',_0x4fd693[_0x4fd693[_0xf6e6b8(0x3cb)]=0x3]=_0xf6e6b8(0x3cb),_0x4fd693;}({});const Vt={[_0x1d3aac['FAIL']]:_0x3c69ef(0x369),[_0x1d3aac['JOIN_ROOM_FULL']]:'session.room-full',[_0x1d3aac[_0x3c69ef(0x3a4)]]:_0x3c69ef(0x34e),[_0x1d3aac['JOIN_ROOM_PERMISSION_DENIED']]:_0x3c69ef(0x30e),[_0x1d3aac['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x3c69ef(0x3f6)};let Ht=class extends _0x50b38b{get[_0x3c69ef(0x289)](){const _0x427556=_0x3c69ef;return this['_sessionStatus$'][_0x427556(0x368)]();}constructor(_0x5d27c2,_0x5011ed,_0x43bf43,_0x3d0233,_0x5ce071,_0x94d369,_0x4a4f5d,_0x3d0569){const _0x58a867=_0x3c69ef;super(),this[_0x58a867(0x2f2)]=_0x5d27c2,this[_0x58a867(0x3f4)]=_0x43bf43,this[_0x58a867(0x305)]=_0x3d0233,this[_0x58a867(0x356)]=_0x5ce071,this['_commentService']=_0x94d369,this[_0x58a867(0x290)]=_0x4a4f5d,this[_0x58a867(0x399)]=_0x3d0569,R(this,_0x58a867(0x2cb),new _0x296086(0x0)),R(this,_0x58a867(0x2ae),this[_0x58a867(0x2cb)][_0x58a867(0x1cc)]()),R(this,_0x58a867(0x367),new _0x59eece()),R(this,_0x58a867(0x1b7),this['_event$']['asObservable']()),R(this,_0x58a867(0x329),void 0x0),R(this,_0x58a867(0x1e9),void 0x0),R(this,_0x58a867(0x374),void 0x0),R(this,_0x58a867(0x414),!0x1),R(this,_0x58a867(0x29e),null),this[_0x58a867(0x414)]=!!this['_telemetryService'],_0x5011ed[_0x58a867(0x380)](_0x48361a(this['dispose$']))[_0x58a867(0x420)](_0x223710=>{const _0x2948b1=_0x58a867;if(_0x223710!==void 0x0){if(this[_0x2948b1(0x329)]=_0x223710,_0x223710)this[_0x2948b1(0x3ff)](_0x223710),this[_0x2948b1(0x1e9)]=_0x223710[_0x2948b1(0x261)][_0x2948b1(0x420)](_0x278d8b=>{const _0x30369d=_0x2948b1;_0x278d8b[_0x30369d(0x2fd)]===this[_0x30369d(0x2f2)][_0x30369d(0x3d8)][_0x30369d(0x296)]&&this[_0x30369d(0x2dd)](_0x278d8b);});else{var _0xdd7ddd;this[_0x2948b1(0x3e4)](),this[_0x2948b1(0x2cb)]['next'](0x2),(_0xdd7ddd=this[_0x2948b1(0x1e9)])==null||_0xdd7ddd[_0x2948b1(0x3c3)](),this[_0x2948b1(0x1e9)]=null;}}});}[_0x3c69ef(0x3fd)](){const _0x365524=_0x3c69ef;var _0x3f021b,_0x2fe307;return(_0x3f021b=(_0x2fe307=this[_0x365524(0x329)])==null?void 0x0:_0x2fe307[_0x365524(0x223)])==null?null:_0x3f021b;}[_0x3c69ef(0x20b)](){const _0x437e5a=_0x3c69ef;super[_0x437e5a(0x20b)](),this['close'](),this[_0x437e5a(0x294)]['next'](),this['dispose$'][_0x437e5a(0x3aa)]();}['close'](){const _0x470601=_0x3c69ef;var _0x4c07ec;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4c07ec=this[_0x470601(0x329)])==null||_0x4c07ec[_0x470601(0x31a)]({'cmd':_0x5b7fe7[_0x470601(0x31b)],'data':{'roomID':this[_0x470601(0x2f2)][_0x470601(0x3d8)][_0x470601(0x296)]}}),this[_0x470601(0x367)][_0x470601(0x3aa)](),this[_0x470601(0x2cb)][_0x470601(0x3aa)]();}['_onCombEvent'](_0x39d170){const _0x173e06=_0x3c69ef;_0x39d170[_0x173e06(0x258)]===_0x5b7fe7[_0x173e06(0x3b6)]?this['_onJoinRoomEvent'](_0x39d170):_0x39d170[_0x173e06(0x258)]===_0x5b7fe7[_0x173e06(0x2f9)]&&this[_0x173e06(0x2f0)](_0x39d170);}[_0x3c69ef(0x3ff)](_0x84423e){const _0x2625a8=_0x3c69ef;this[_0x2625a8(0x2cb)][_0x2625a8(0x19a)](0x1),_0x84423e[_0x2625a8(0x31a)]({'cmd':_0x5b7fe7[_0x2625a8(0x3b6)],'routeKey':this[_0x2625a8(0x2f2)][_0x2625a8(0x3d8)][_0x2625a8(0x296)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x2625a8(0x3d8)][_0x2625a8(0x296)]}]}});}[_0x3c69ef(0x38f)](_0x49a13a){const _0x3ad991=_0x3c69ef;var _0x17ab76;if(_0x49a13a[_0x3ad991(0x28a)]in Vt){this['_collaborationUIEventService'][_0x3ad991(0x377)]({'id':_0x3ad991(0x35b),'data':Vt[_0x49a13a[_0x3ad991(0x28a)]]}),this[_0x3ad991(0x2cb)][_0x3ad991(0x19a)](0x2);return;}this[_0x3ad991(0x2cb)]['next'](0x3);let _0x54709f=(_0x17ab76=_0x49a13a[_0x3ad991(0x2ee)]['roomInfos'][this[_0x3ad991(0x2f2)][_0x3ad991(0x3d8)][_0x3ad991(0x296)]])==null?void 0x0:_0x17ab76['members'];_0x54709f&&_0x54709f[_0x3ad991(0x1e5)](_0x14143b=>this[_0x3ad991(0x356)][_0x3ad991(0x316)](this[_0x3ad991(0x2f2)][_0x3ad991(0x2e4)],_0x14143b));}['_onRecvEvent'](_0x57f6fe){const _0x192121=_0x3c69ef;try{let _0x31bba4=Mt(this[_0x192121(0x2f2)],_0x57f6fe[_0x192121(0x2ee)]);for(let _0xd9798 of _0x31bba4)switch(_0xd9798['eventID']){case _0x43102b['USERS_ENTER']:this[_0x192121(0x363)](_0xd9798),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b[_0x192121(0x334)]:this['_onUserLeave'](_0xd9798),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b['CHANGESET_ACK']:case _0x43102b[_0x192121(0x24b)]:this[_0x192121(0x352)](),this[_0x192121(0x3eb)](),this[_0x192121(0x367)]['next'](_0xd9798);break;case _0x43102b['MSG_FOR_ERROR']:this[_0x192121(0x3f4)][_0x192121(0x199)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0xd9798)),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;case _0x43102b['COMMENT_UPDATE']:this[_0x192121(0x1d9)][_0x192121(0x38b)](_0xd9798['data']),this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);break;default:this[_0x192121(0x367)][_0x192121(0x19a)](_0xd9798);}}catch(_0x4b959d){this[_0x192121(0x3f4)][_0x192121(0x199)](_0x4b959d,_0x57f6fe);}}[_0x3c69ef(0x363)](_0x19e834){const _0x5eea61=_0x3c69ef;this[_0x5eea61(0x356)][_0x5eea61(0x316)](this[_0x5eea61(0x2f2)][_0x5eea61(0x2e4)],_0x19e834['data']);}[_0x3c69ef(0x3e9)](_0x1543f4){const _0x5774d9=_0x3c69ef;this['_memberService']['removeMember'](this[_0x5774d9(0x2f2)][_0x5774d9(0x2e4)],_0x1543f4[_0x5774d9(0x2ee)]['memberID']);}async[_0x3c69ef(0x31a)](_0x2eb573,_0x332797){const _0x427bd0=_0x3c69ef;if(this['sessionStatus']!==0x3||!this[_0x427bd0(0x329)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x5baf4a=jt(this[_0x427bd0(0x2f2)],_0x2eb573);_0x5baf4a[_0x427bd0(0x3f0)]===_0x43102b[_0x427bd0(0x36c)]&&(this[_0x427bd0(0x262)](),this[_0x427bd0(0x2d6)](_0x5baf4a)),this[_0x427bd0(0x329)][_0x427bd0(0x31a)]({'cmd':_0x5b7fe7[_0x427bd0(0x3d9)],'routeKey':this[_0x427bd0(0x2f2)][_0x427bd0(0x3d8)][_0x427bd0(0x296)],'routeType':'','data':_0x5baf4a});}catch(_0x4ecdc4){this[_0x427bd0(0x3f4)][_0x427bd0(0x199)](_0x4ecdc4);}}['_scheduleCollaborationTimeoutTimer'](){const _0x2772ea=_0x3c69ef;var _0x3895e4;this[_0x2772ea(0x374)]=setTimeout(()=>{const _0x1a2f4e=_0x2772ea;this[_0x1a2f4e(0x374)]=null,this[_0x1a2f4e(0x290)][_0x1a2f4e(0x377)]({'id':_0x1a2f4e(0x28b)});},(_0x3895e4=this['_configService'][_0x2772ea(0x353)](_0x2772ea(0x2a9)))==null?vt:_0x3895e4);}[_0x3c69ef(0x3eb)](){const _0x4bb704=_0x3c69ef;this[_0x4bb704(0x374)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x4bb704(0x374)]=null);}[_0x3c69ef(0x2d6)](_0x167af1){const _0xf17398=_0x3c69ef;if(!this['_shouldReportTelemetry'])return;let {data:_0x22184b}=_0x167af1,{unitID:_0x286cdc,changeset:_0x150a62}=_0x22184b,{mutations:_0x3491f3,type:_0x1fefbc}=_0x150a62;this[_0xf17398(0x29e)]={'unitId':_0x286cdc,'type':_0x1fefbc,'startTime':performance[_0xf17398(0x1ca)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x3491f3)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x494555=_0x3c69ef;if(this['_shouldReportTelemetry']){if(!this[_0x494555(0x29e)]){this['_logService'][_0x494555(0x199)](_0x494555(0x297),_0x494555(0x34d));return;}this[_0x494555(0x29e)][_0x494555(0x31f)]=performance[_0x494555(0x1ca)](),this[_0x494555(0x29e)][_0x494555(0x407)]=this['_telemetryInfo']['stopTime']-this[_0x494555(0x29e)]['startTime'],this[_0x494555(0x399)][_0x494555(0x27f)](_0x494555(0x28e),this[_0x494555(0x29e)]),this['_telemetryInfo']=null;}}[_0x3c69ef(0x3e4)](){const _0x54a9a5=_0x3c69ef;this[_0x54a9a5(0x29e)]=null;}};Ht=V([B(0x2,_0x5c3e7f),B(0x3,_0x1f37e4),B(0x4,_0xe230cc(H)),B(0x5,_0xe230cc(kt)),B(0x6,_0xe230cc(z)),B(0x7,_0x2b3cfa(_0x2f845e))],Ht);const U=_0x27db79('collaboration-client.local-cache-service');function Ut(_0x429a2b){const _0x3098df=_0x3c69ef;return _0x3098df(0x1dd)+_0x429a2b;}function Wt(_0x341c7a){const _0x1a6710=_0x3c69ef;let {unitID:_0x5c3c57,mutations:_0x5d930e}=_0x341c7a;return{'unitId':_0x5c3c57,'subUnitId':_0x5d930e[_0x1a6710(0x3a1)]>0x0?_0x5d930e[0x0][_0x1a6710(0x3c6)]['subUnitId']:null};}let Gt=class{constructor(_0x4ad6e9,_0x2b0d6e,_0x535944){this['_injector']=_0x4ad6e9,this['_transformService']=_0x2b0d6e,this['_instanceService']=_0x535944;}[_0x3c69ef(0x319)](_0x5b3983){const _0x4a82da=_0x3c69ef;var _0x27bc10,_0x2c3932;let _0x58e4c0=this[_0x4a82da(0x27a)]['get'](_0x173cd0),{unitId:_0x40a970,subUnitId:_0x158669}=Wt(_0x5b3983),_0x6ec3f1=_0x58e4c0==null?void 0x0:_0x58e4c0[_0x4a82da(0x3be)](_0x40a970)['getCurrentSelections'](),_0x429e14=(_0x27bc10=this[_0x4a82da(0x226)][_0x4a82da(0x1b8)](_0x40a970))==null||(_0x27bc10=_0x27bc10[_0x4a82da(0x2ad)]())==null?void 0x0:_0x27bc10[_0x4a82da(0x339)]();if(_0x6ec3f1[_0x4a82da(0x3a1)]===0x0||!_0x40a970||!_0x158669)return;let _0x29f354=[{'id':_0x1b5157['id'],'params':{'unitId':_0x40a970,'subUnitId':_0x429e14,'selections':_0x52d975['deepClone'](_0x6ec3f1)}}],_0x41d46f=this[_0x4a82da(0x1c6)][_0x4a82da(0x2f6)](_0x5b3983,_0x29f354);if(!_0x30d694(_0x41d46f))throw _0x41d46f[_0x4a82da(0x199)];let _0x2ae173=(_0x2c3932=_0x41d46f[_0x4a82da(0x3a6)][0x0])==null||(_0x2c3932=_0x2c3932[_0x4a82da(0x3c6)])==null?void 0x0:_0x2c3932['selections'];if(Array[_0x4a82da(0x3cf)](_0x2ae173)&&_0x2ae173['length']){if(_0x2ae173[_0x4a82da(0x3a1)]===_0x29f354[0x0][_0x4a82da(0x3c6)][_0x4a82da(0x1af)]['length']&&_0x2ae173[_0x4a82da(0x3fa)]((_0x4aa5f1,_0x20fb79)=>_0x4038f3[_0x4a82da(0x1b5)](_0x4aa5f1[_0x4a82da(0x22a)],_0x29f354[0x0][_0x4a82da(0x3c6)]['selections'][_0x20fb79]['range'])))return;this['_injector'][_0x4a82da(0x20f)](_0x4705e0)[_0x4a82da(0x295)](_0x1b5157['id'],{'unitId':_0x40a970,'subUnitId':_0x429e14,'selections':_0x2ae173});}}};Gt=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x3a995f),B(0x2,_0x344fe1)],Gt);const W=_0x27db79(_0x3c69ef(0x241));let Kt=function(_0x4d5603){const _0x5d848d=_0x3c69ef;return _0x4d5603[_0x4d5603['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x5d848d(0x2df),_0x4d5603[_0x4d5603[_0x5d848d(0x1cf)]=0x1]=_0x5d848d(0x1cf),_0x4d5603;}({});function qt(_0x4378a9){const _0x4d31a3=_0x3c69ef;var _0x332fc1;return!!((_0x332fc1=_0x4378a9[_0x4d31a3(0x3c6)])!=null&&_0x332fc1[_0x4d31a3(0x193)]);}const Jt=new Set([_0x11df8b['id']]),Yt=new Set([_0x3d73f2['id'],_0x27d579['id'],_0x1fa40d['id'],_0x46d741['id']]);function Xt(_0xa8b655,_0x4ac0f0=Jt){const _0x2f8b39=_0x3c69ef;let _0x3cf7a8=[];for(let _0x540cc7 of _0xa8b655){if(_0x4ac0f0[_0x2f8b39(0x387)](_0x540cc7['id'])){if(_0x3cf7a8[_0x2f8b39(0x3a1)]>0x0)break;_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);break;}if(qt(_0x540cc7)){if(_0x3cf7a8[_0x2f8b39(0x3a1)]>0x0)break;_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);break;}_0x3cf7a8[_0x2f8b39(0x217)](_0x540cc7);}return _0x3cf7a8;}function _0x43c7(_0x340530,_0x2f37e9){_0x340530=_0x340530-0x188;const _0x36d743=_0x36d7();let _0x43c7a0=_0x36d743[_0x340530];return _0x43c7a0;}function Zt(_0x375659,_0x5bb4f5,_0x19047d,_0x3a6159,_0x47541a){const _0x588c85=_0x3c69ef;var _0xa71543,_0x16d5b6,_0x4b1848,_0x3a6a6f;let _0x33cece=Xt(_0x375659),_0x3bc432=(_0xa71543=(_0x16d5b6=_0x47541a['getCurrentUser']())==null?void 0x0:_0x16d5b6[_0x588c85(0x3c0)])==null?_0x588c85(0x263):_0xa71543,_0x24c358=(_0x4b1848=(_0x3a6a6f=_0x47541a['getCurrentUser']())==null?void 0x0:_0x3a6a6f[_0x588c85(0x223)])==null?'unknown':_0x4b1848;return{'changeset':{'unitID':_0x5bb4f5,'type':_0x4e1660(_0x19047d[_0x588c85(0x328)](_0x5bb4f5)),'baseRev':_0x3a6159[_0x588c85(0x306)](_0x5bb4f5),'revision':0x0,'userID':_0x3bc432,'memberID':_0x24c358,'mutations':_0x33cece},'pendingMutations':_0x375659['slice'](_0x33cece[_0x588c85(0x3a1)])};}function Qt(_0x3d9f05,_0x3ee736,_0x16c7e3,_0x5a7c1b,_0x1cb42d){const _0x405c81=_0x3c69ef;var _0x5bc3be,_0xcf48ad,_0x2124a7,_0x21e3f2;let _0x20223b=Xt(_0x3d9f05,Yt),_0x15e2a8=(_0x5bc3be=(_0xcf48ad=_0x1cb42d[_0x405c81(0x32d)]())==null?void 0x0:_0xcf48ad[_0x405c81(0x3c0)])==null?_0x405c81(0x263):_0x5bc3be,_0x4e3ce3=(_0x2124a7=(_0x21e3f2=_0x1cb42d[_0x405c81(0x32d)]())==null?void 0x0:_0x21e3f2['memberID'])==null?_0x405c81(0x263):_0x2124a7;return{'changeset':{'unitID':_0x3ee736,'type':_0x4e1660(_0x16c7e3[_0x405c81(0x328)](_0x3ee736)),'baseRev':_0x5a7c1b[_0x405c81(0x306)](_0x3ee736),'revision':0x0,'userID':_0x15e2a8,'memberID':_0x4e3ce3,'mutations':_0x20223b},'pendingMutations':_0x3d9f05[_0x405c81(0x335)](_0x20223b[_0x405c81(0x3a1)])};}function $t(_0x2aecce,_0xf7dbba,_0x2fe705,_0x4c59ed,_0x38883f){const _0xa0be4e=_0x3c69ef;var _0x49ac83,_0x3a80b6,_0x2a2ee2,_0x16ec91;let _0x171977=_0x2aecce[_0xa0be4e(0x225)]((_0x5ae69f,_0x167e20)=>{const _0x2d7269=_0xa0be4e;let _0x54d892=_0x5ae69f[_0x5ae69f[_0x2d7269(0x3a1)]-0x1],{id:_0x2ecb2c}=_0x54d892==null?{}:_0x54d892,{id:_0x4652ae,type:_0x49e6fd}=_0x167e20,_0x46cc68=_0x167e20[_0x2d7269(0x3c6)];if(_0x2ecb2c&&_0x2ecb2c!==_0x4652ae)throw Error(_0x2d7269(0x2a6)+_0x2ecb2c+_0x2d7269(0x1eb)+_0x4652ae+'.');if(!_0x54d892)return[{'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68['unitId'],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x46cc68[_0x2d7269(0x3ad)]}}];let _0x5288b5=_0x54d892[_0x2d7269(0x3c6)];return en(_0x5288b5,_0x46cc68)?[..._0x5ae69f[_0x2d7269(0x335)](0x0,-0x1),{..._0x54d892,'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68['unitId'],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x42c2de['compose'](_0x5288b5[_0x2d7269(0x3ad)],_0x46cc68[_0x2d7269(0x3ad)])}}]:[..._0x5ae69f,{'id':_0x4652ae,'type':_0x49e6fd,'params':{'unitId':_0x46cc68[_0x2d7269(0x296)],'textRanges':_0x46cc68[_0x2d7269(0x246)],'actions':_0x46cc68[_0x2d7269(0x3ad)]}}];},[]),_0x429922=(_0x49ac83=(_0x3a80b6=_0x38883f[_0xa0be4e(0x32d)]())==null?void 0x0:_0x3a80b6[_0xa0be4e(0x3c0)])==null?_0xa0be4e(0x263):_0x49ac83,_0x4362e6=(_0x2a2ee2=(_0x16ec91=_0x38883f[_0xa0be4e(0x32d)]())==null?void 0x0:_0x16ec91[_0xa0be4e(0x223)])==null?_0xa0be4e(0x263):_0x2a2ee2;return{'changeset':{'unitID':_0xf7dbba,'type':_0x4e1660(_0x2fe705[_0xa0be4e(0x328)](_0xf7dbba)),'baseRev':_0x4c59ed[_0xa0be4e(0x306)](_0xf7dbba),'revision':0x0,'userID':_0x429922,'memberID':_0x4362e6,'mutations':_0x171977},'pendingMutations':_0x2aecce[_0xa0be4e(0x335)](_0x2aecce[_0xa0be4e(0x3a1)])};}function en(_0x161fe0,_0x19a38f){const _0x344b87=_0x3c69ef;return!tn(_0x161fe0)&&!tn(_0x19a38f)&&nn(_0x161fe0[_0x344b87(0x3ad)],_0x19a38f[_0x344b87(0x3ad)]);}function tn(_0x17a5b5){const _0x7d1426=_0x3c69ef;return _0x17a5b5[_0x7d1426(0x22d)]!==void 0x0;}function nn(_0x3d6b99,_0x2d2bc3){return rn(_0x3d6b99)&&rn(_0x2d2bc3)&&!on(_0x3d6b99)&&!on(_0x2d2bc3)&&!an(_0x3d6b99)&&!an(_0x2d2bc3);}function rn(_0x4cea77){const _0x360d90=_0x3c69ef;return sn(_0x4cea77)[_0x360d90(0x238)](_0x3d5d94=>cn(_0x3d5d94)&&_0x3d5d94['et']===_0x360d90(0x2ab));}function an(_0x1efdd5){const _0x3f36e6=_0x3c69ef;return sn(_0x1efdd5)[_0x3f36e6(0x238)](_0x565db9=>Array[_0x3f36e6(0x3cf)](_0x565db9)||typeof _0x565db9==_0x3f36e6(0x3e7)||typeof _0x565db9==_0x3f36e6(0x2ef));}function on(_0x29e15b){const _0x4387d2=_0x3c69ef;return sn(_0x29e15b)['some'](_0x4eb3b6=>!cn(_0x4eb3b6)||_0x4eb3b6['et']!=='text-x'||!Array['isArray'](_0x4eb3b6['e'])?!0x1:_0x4eb3b6['e'][_0x4387d2(0x238)](_0x582fde=>!cn(_0x582fde)||!cn(_0x582fde[_0x4387d2(0x31c)])?!0x1:Object[_0x4387d2(0x401)]['hasOwnProperty'][_0x4387d2(0x1db)](_0x582fde[_0x4387d2(0x31c)],_0x4387d2(0x402))||Object[_0x4387d2(0x401)][_0x4387d2(0x26e)][_0x4387d2(0x1db)](_0x582fde['body'],_0x4387d2(0x376))||Object[_0x4387d2(0x401)][_0x4387d2(0x26e)][_0x4387d2(0x1db)](_0x582fde[_0x4387d2(0x31c)],_0x4387d2(0x33d))));}function sn(_0x5e1825){const _0x519fb2=_0x3c69ef;if(!Array[_0x519fb2(0x3cf)](_0x5e1825))return[];let _0x3e8194=_0x5e1825[_0x519fb2(0x24f)](_0x519fb2(0x31c))?_0x5e1825:_0x5e1825[_0x519fb2(0x3ca)](_0x459c3e=>Array[_0x519fb2(0x3cf)](_0x459c3e)&&_0x459c3e[_0x519fb2(0x24f)](_0x519fb2(0x31c)));if(!Array[_0x519fb2(0x3cf)](_0x3e8194))return[];let _0x2e6457=_0x3e8194[_0x519fb2(0x272)](_0x519fb2(0x31c));return _0x2e6457===-0x1?[]:_0x3e8194['slice'](_0x2e6457+0x1);}function cn(_0xb0fb3c){const _0x57be3b=_0x3c69ef;return typeof _0xb0fb3c=='object'&&!!_0xb0fb3c&&!Array[_0x57be3b(0x3cf)](_0xb0fb3c);}function ln(_0xba200,_0xd88a1){const _0x201ce3=_0x3c69ef;let _0x21d165=new _0x464a6c(0x1);return setTimeout(()=>_0x21d165[_0x201ce3(0x19a)](_0xd88a1),_0xba200),_0x21d165[_0x201ce3(0x1cc)]()['pipe'](_0x40acda(0x1));}var un,dn,fn;let pn=function(_0x4ff6c2){const _0x5257d3=_0x3c69ef;return _0x4ff6c2[_0x5257d3(0x3dc)]=_0x5257d3(0x209),_0x4ff6c2[_0x5257d3(0x3e3)]='synced',_0x4ff6c2[_0x5257d3(0x3c7)]=_0x5257d3(0x3b0),_0x4ff6c2[_0x5257d3(0x1b1)]='awaiting',_0x4ff6c2['AWAITING_WITH_PENDING']=_0x5257d3(0x22b),_0x4ff6c2[_0x5257d3(0x27b)]=_0x5257d3(0x302),_0x4ff6c2[_0x5257d3(0x1f0)]=_0x5257d3(0x338),_0x4ff6c2[_0x5257d3(0x342)]=_0x5257d3(0x255),_0x4ff6c2;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x489681,_0x58776d,_0x832a14,_0x15bf60,_0xecb570,_0x28f99b,_0x19d046,_0x576b24,_0x119098){const _0x19361e=_0x3c69ef;this['unitID']=_0x489681,this[_0x19361e(0x315)]=_0x58776d,this[_0x19361e(0x194)]=_0xecb570,this['_commandService']=_0x28f99b,this[_0x19361e(0x3a3)]=_0x19d046,this[_0x19361e(0x403)]=_0x576b24,this['_localCacheService']=_0x119098,R(this,_0x19361e(0x2bd),null),R(this,_0x19361e(0x1a7),[]),this['_awaitingChangeset']=_0x832a14,this[_0x19361e(0x1a7)]=_0x15bf60;}['_checkMissing'](_0x5b4f10){const _0x3ce0f9=_0x3c69ef;let _0x1d2cf4=this[_0x3ce0f9(0x403)][_0x3ce0f9(0x306)](this[_0x3ce0f9(0x40c)]);return _0x5b4f10[_0x3ce0f9(0x2fe)]>_0x1d2cf4+0x1?(this[_0x3ce0f9(0x194)][_0x3ce0f9(0x23c)]({'from':_0x1d2cf4,'to':_0x5b4f10['revision']-0x1}),!0x0):!0x1;}[_0x3c69ef(0x309)](_0x4b6831){const _0xadc302=_0x3c69ef;this[_0xadc302(0x3a3)][_0xadc302(0x388)](this[_0xadc302(0x40c)],_0x4b6831);}['_transformSelections'](_0x101137){const _0x325300=_0x3c69ef;var _0x2b73e8,_0x375889;(_0x2b73e8=(_0x375889=this['_handler'])[_0x325300(0x218)])==null||_0x2b73e8['call'](_0x375889,_0x101137);}[_0x3c69ef(0x366)](_0x29aa69){const _0x5219a4=_0x3c69ef;var _0x58a90e,_0x26ecf0;return(_0x58a90e=(_0x26ecf0=this[_0x5219a4(0x194)])[_0x5219a4(0x2be)])==null?void 0x0:_0x58a90e['call'](_0x26ecf0,_0x29aa69);}['_transformStateCache'](_0x1517f5){const _0x233735=_0x3c69ef;var _0x57cef5,_0x34d228;return(_0x57cef5=(_0x34d228=this['_handler'])['onTransformState'])==null?void 0x0:_0x57cef5[_0x233735(0x1db)](_0x34d228,_0x1517f5);}[_0x3c69ef(0x19f)](_0x2a1a4b){const _0x268084=_0x3c69ef;var _0x4e7a70,_0xeeb1bd,_0x330f8f;return(_0x4e7a70=(_0xeeb1bd=(_0x330f8f=this[_0x268084(0x194)])[_0x268084(0x1df)])==null?void 0x0:_0xeeb1bd[_0x268084(0x1db)](_0x330f8f,_0x2a1a4b))==null?_0x2a1a4b:_0x4e7a70;}[_0x3c69ef(0x1fc)](_0x547ff1){const _0x5d3772=_0x3c69ef;var _0x516cfb,_0x33a2f6,_0x4a84e3;return(_0x516cfb=(_0x33a2f6=(_0x4a84e3=this['_handler'])[_0x5d3772(0x1d2)])==null?void 0x0:_0x33a2f6['call'](_0x4a84e3,_0x547ff1))==null?_0x547ff1:_0x516cfb;}[_0x3c69ef(0x248)](_0x4d91e4){const _0x3e1c13=_0x3c69ef;if(this[_0x3e1c13(0x315)]===_0x9a8e4e[_0x3e1c13(0x274)]){let {unitID:_0x2eb58a,mutations:_0x2f35b3,memberID:_0x4ff885}=_0x4d91e4,_0x11c768=_0x2f35b3['length']>0x0?_0x2f35b3[0x0][_0x3e1c13(0x3c6)][_0x3e1c13(0x246)]:[];if(Array[_0x3e1c13(0x3cf)](_0x11c768)&&_0x11c768[_0x3e1c13(0x3a1)]>0x0){var _0x50e3c2,_0x59d313;(_0x50e3c2=(_0x59d313=this[_0x3e1c13(0x194)])[_0x3e1c13(0x41c)])==null||_0x50e3c2[_0x3e1c13(0x1db)](_0x59d313,{'unitID':_0x2eb58a,'memberID':_0x4ff885,'textRanges':_0x11c768});}}}[_0x3c69ef(0x2bc)](){const _0x1f0211=_0x3c69ef;var _0x3a6a13;(_0x3a6a13=this[_0x1f0211(0x1f4)])==null||_0x3a6a13[_0x1f0211(0x411)](this[_0x1f0211(0x40c)],this[_0x1f0211(0x315)],this['_awaitingChangeset'],this[_0x1f0211(0x1a7)]);}[_0x3c69ef(0x312)](){const _0x5b866f=_0x3c69ef;return this['_revisionService'][_0x5b866f(0x306)](this[_0x5b866f(0x40c)]);}['_incrementRevisionNumber'](){const _0x92604e=_0x3c69ef;this['_revisionService'][_0x92604e(0x2fc)](this[_0x92604e(0x40c)]);}[_0x3c69ef(0x3ac)](_0x33422b){const _0x5f6746=_0x3c69ef;let _0x9b2b25=this[_0x5f6746(0x19f)](_0x33422b);_0x9b2b25=this[_0x5f6746(0x1fc)](_0x9b2b25);let _0x10c430=_0x8d0c4b(_0x9b2b25[_0x5f6746(0x188)],this[_0x5f6746(0x1ac)],{'fromCollab':!0x0});if(!_0x10c430[_0x5f6746(0x2bb)]){var _0x4795fc;throw _0x10c430['error']instanceof Error?_0x10c430[_0x5f6746(0x199)]:Error((_0x4795fc=_0x10c430[_0x5f6746(0x199)])==null?'[CollaborationState]:\x20apply\x20error!':_0x4795fc);}this[_0x5f6746(0x366)](_0x9b2b25),this['_transformStateCache'](_0x9b2b25),this[_0x5f6746(0x309)](_0x33422b),this[_0x5f6746(0x2ba)](_0x9b2b25),this[_0x5f6746(0x248)](_0x9b2b25),this[_0x5f6746(0x1b6)]();}};let K=class extends G{constructor(_0x1c960d,_0x156a08,_0x490e7c,_0x2306d6,_0x229927,_0x559cb4,_0x5b8a88,_0x3a7341,_0x57ec9a,_0x5ad296){const _0x4ebf35=_0x3c69ef;super(_0x1c960d,_0x156a08,null,[],_0x490e7c,_0x5b8a88,_0x559cb4,_0x2306d6,_0x5ad296),this[_0x4ebf35(0x27a)]=_0x229927,this[_0x4ebf35(0x3f4)]=_0x3a7341,this[_0x4ebf35(0x1c6)]=_0x57ec9a,this[_0x4ebf35(0x19d)]=_0x5ad296,R(this,'status',_0x4ebf35(0x2e6));}[_0x3c69ef(0x3fe)](_0x62ae8f){const _0x56f532=_0x3c69ef;let _0x53ec72=this['_injector'][_0x56f532(0x24d)](q,this['unitID'],this[_0x56f532(0x315)],[_0x62ae8f],this[_0x56f532(0x194)]);return _0x53ec72[_0x56f532(0x3dd)](),_0x53ec72['_updateLocalCache'](),_0x53ec72;}[_0x3c69ef(0x323)](_0x5605c4){const _0x25ad49=_0x3c69ef;if(this['_checkMissing'](_0x5605c4))return this['_injector'][_0x25ad49(0x24d)](Q,this['unitID'],this['type'],null,[],null,[_0x5605c4],this[_0x25ad49(0x194)]);try{let _0x9bcd62=this['_transformService'][_0x25ad49(0x2f6)](_0x5605c4,[_0x59ed8b]);if(_0x30d694(_0x9bcd62)){let {c1Prime:_0x2da469}=_0x9bcd62;return this[_0x25ad49(0x3ac)](_0x2da469),this;}throw _0x9bcd62[_0x25ad49(0x199)];}catch(_0x12b48e){return this[_0x25ad49(0x3f4)][_0x25ad49(0x199)](_0x12b48e),this[_0x25ad49(0x370)](!0x1);}}[_0x3c69ef(0x370)](_0x6d8dbf){const _0x5422ea=_0x3c69ef;return this[_0x5422ea(0x27a)][_0x5422ea(0x24d)](X,this[_0x5422ea(0x40c)],this[_0x5422ea(0x315)],null,[],this[_0x5422ea(0x194)],_0x6d8dbf);}[_0x3c69ef(0x38c)](_0x1cbb66){const _0x17f626=_0x3c69ef;if(_0x1cbb66[_0x17f626(0x2fe)]<=this[_0x17f626(0x312)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3c69ef(0x28f)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3c69ef(0x2f1)](){const _0xc35551=_0x3c69ef;return this[_0xc35551(0x27a)][_0xc35551(0x24d)](Z,this['unitID'],this['type'],null,[],this[_0xc35551(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}['resend'](){const _0x5d822d=_0x3c69ef;throw Error(_0x5d822d(0x1d7));}[_0x3c69ef(0x2cd)](){const _0x18b82d=_0x3c69ef;let _0x3ad445=this[_0x18b82d(0x403)][_0x18b82d(0x306)](this[_0x18b82d(0x40c)]);return this['_handler'][_0x18b82d(0x23c)]({'from':_0x3ad445,'to':0x0}),this[_0x18b82d(0x27a)][_0x18b82d(0x24d)](Q,this[_0x18b82d(0x40c)],this[_0x18b82d(0x315)],null,[],null,[],this[_0x18b82d(0x194)]);}};K=V([B(0x3,_0xe230cc(_0x2d7797)),B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0x4aa991),B(0x6,_0x4705e0),B(0x7,_0x5c3e7f),B(0x8,_0x3a995f),B(0x9,_0x2b3cfa(U))],K);let q=un=class extends G{constructor(_0x5a72fe,_0x437d6f,_0x53d4d3,_0x18efe2,_0x4a8562,_0x21ddb6,_0x50e7de,_0x103986,_0x5bdbca,_0x181b94,_0x82ff59,_0x509e53,_0x35a88e,_0xc8d988){const _0x5e3998=_0x3c69ef;super(_0x5a72fe,_0x437d6f,null,_0x53d4d3,_0x18efe2,_0x5bdbca,_0x35a88e,_0x21ddb6,_0xc8d988),this[_0x5e3998(0x27a)]=_0x4a8562,this['_memberService']=_0x50e7de,this['_logService']=_0x103986,this['_configService']=_0x181b94,this[_0x5e3998(0x1c6)]=_0x82ff59,this[_0x5e3998(0x1ba)]=_0x509e53,R(this,_0x5e3998(0x275),_0x5e3998(0x3b0)),R(this,_0x5e3998(0x204),null),R(this,_0x5e3998(0x259),null);}['appendMutation'](_0x2850f0){const _0x4ed356=_0x3c69ef;return this['_pendingMutations'][_0x4ed356(0x217)](_0x2850f0),this[_0x4ed356(0x2bc)](),this;}[_0x3c69ef(0x323)](_0x5573ae){const _0x39b076=_0x3c69ef;if(this['_checkMissing'](_0x5573ae))return this[_0x39b076(0x2b6)](),this[_0x39b076(0x27a)]['createInstance'](Q,this[_0x39b076(0x40c)],this[_0x39b076(0x315)],null,this['_pendingMutations'],null,[_0x5573ae],this[_0x39b076(0x194)]);try{let _0xa3f5f3=this[_0x39b076(0x1c6)][_0x39b076(0x2f6)](_0x5573ae,this[_0x39b076(0x1a7)]);if(_0x30d694(_0xa3f5f3)){let {c1Prime:_0x4f120b,m2Prime:_0x26aa0c}=_0xa3f5f3;this['_executeRemoteChangeset'](_0x4f120b);let _0xfc3599=this[_0x39b076(0x27a)]['createInstance'](un,this[_0x39b076(0x40c)],this[_0x39b076(0x315)],_0x26aa0c,this['_handler']);this[_0x39b076(0x2b6)]();let _0x306b7b=new Date()[_0x39b076(0x2a3)](),_0x3eb39b=this[_0x39b076(0x204)]?Math[_0x39b076(0x19c)](this[_0x39b076(0x204)]-_0x306b7b,0x0):this[_0x39b076(0x200)]();return _0xfc3599[_0x39b076(0x3dd)](_0x3eb39b),_0xfc3599;}throw _0xa3f5f3['error'];}catch(_0x3f1a46){return this[_0x39b076(0x3f4)]['error'](_0x3f1a46),this[_0x39b076(0x370)](!0x1);}}[_0x3c69ef(0x38c)](_0x4c8732){const _0x54fa84=_0x3c69ef;if(_0x4c8732['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x54fa84(0x1bb));}[_0x3c69ef(0x28f)](){throw Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3c69ef(0x2f1)](){const _0x5265f1=_0x3c69ef;return this[_0x5265f1(0x2b6)](),this[_0x5265f1(0x27a)][_0x5265f1(0x24d)](Z,this[_0x5265f1(0x40c)],this[_0x5265f1(0x315)],null,this[_0x5265f1(0x1a7)],this['_handler']);}['toggleOnline'](){return this;}[_0x3c69ef(0x3dd)](_0xb4e244){const _0x5100d4=_0x3c69ef;let _0x4d22a6=_0xb4e244==null?this['_getSendChangesetTimeout']():_0xb4e244;this[_0x5100d4(0x204)]=new Date()[_0x5100d4(0x2a3)]()+_0x4d22a6,this[_0x5100d4(0x259)]=setTimeout(()=>{const _0x4d7caa=_0x5100d4;this[_0x4d7caa(0x2b6)]();let _0x3696fd=null;switch(this[_0x4d7caa(0x315)]){case _0x9a8e4e[_0x4d7caa(0x1a4)]:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x1ba)],this['_revisionService'],this['_memberService']);break;case _0x9a8e4e[_0x4d7caa(0x274)]:_0x3696fd=this[_0x4d7caa(0x1a7)][_0x4d7caa(0x3fa)](_0x449f23=>_0x449f23['id']===_0x386ca6['id'])?$t(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x4d7caa(0x403)],this[_0x4d7caa(0x356)]):Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this['_univerInstanceService'],this['_revisionService'],this[_0x4d7caa(0x356)]);break;case _0x9a8e4e[_0x4d7caa(0x3c8)]:_0x3696fd=Qt(this[_0x4d7caa(0x1a7)],this['unitID'],this[_0x4d7caa(0x1ba)],this[_0x4d7caa(0x403)],this['_memberService']);break;case _0x9a8e4e[_0x4d7caa(0x360)]:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x1ba)],this['_revisionService'],this[_0x4d7caa(0x356)]);break;case _0x9a8e4e['UNIVER_BASE']:_0x3696fd=Zt(this[_0x4d7caa(0x1a7)],this['unitID'],this[_0x4d7caa(0x1ba)],this['_revisionService'],this[_0x4d7caa(0x356)]);break;default:throw Error(_0x4d7caa(0x3db)+this[_0x4d7caa(0x315)]+'\x20in\x20_schedule.');}let {changeset:_0x3bf8c6,pendingMutations:_0x14a60c}=_0x3696fd;this[_0x4d7caa(0x194)][_0x4d7caa(0x3e8)](_0x3bf8c6);let _0x1986f9=_0x14a60c[_0x4d7caa(0x3a1)]?this['_injector'][_0x4d7caa(0x24d)](Y,this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x315)],_0x3bf8c6,_0x14a60c,this[_0x4d7caa(0x194)],void 0x0):this['_injector']['createInstance'](J,this[_0x4d7caa(0x40c)],this[_0x4d7caa(0x315)],_0x3bf8c6,this[_0x4d7caa(0x194)]);_0x1986f9[_0x4d7caa(0x2bc)](),this[_0x4d7caa(0x194)][_0x4d7caa(0x190)](this,_0x1986f9);},_0x4d22a6);}[_0x3c69ef(0x200)](){const _0x174d81=_0x3c69ef;var _0x21bea1;let _0xc4bb73=this[_0x174d81(0x305)]['getConfig'](L);return(_0x21bea1=_0xc4bb73==null?void 0x0:_0xc4bb73[_0x174d81(0x281)])==null?0x7d0:_0x21bea1;}[_0x3c69ef(0x23b)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3c69ef(0x2b6)](){const _0x215589=_0x3c69ef;this[_0x215589(0x259)]!=null&&(clearTimeout(this[_0x215589(0x259)]),this['_sendingTimer']=null);}[_0x3c69ef(0x370)](_0x3a1030){const _0x20eb17=_0x3c69ef;return this[_0x20eb17(0x2b6)](),this[_0x20eb17(0x27a)][_0x20eb17(0x24d)](X,this[_0x20eb17(0x40c)],this['type'],null,this[_0x20eb17(0x1a7)],this[_0x20eb17(0x194)],_0x3a1030);}};q=un=V([B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0xe230cc(_0x2d7797)),B(0x6,_0xe230cc(H)),B(0x7,_0x5c3e7f),B(0x8,_0x4705e0),B(0x9,_0x1f37e4),B(0xa,_0x3a995f),B(0xb,_0x344fe1),B(0xc,_0x4aa991),B(0xd,_0x2b3cfa(U))],q);let J=dn=class extends G{constructor(_0x2217ed,_0x1620da,_0x445cff,_0x5e8461,_0x11f79e,_0x3ed9af,_0x465b50,_0x239610,_0x3498db,_0xd1a09c,_0x8922a2){const _0x1a62ef=_0x3c69ef;super(_0x2217ed,_0x1620da,_0x445cff,[],_0x5e8461,_0x465b50,_0xd1a09c,_0x3ed9af,_0x8922a2),this['_injector']=_0x11f79e,this[_0x1a62ef(0x3f4)]=_0x239610,this[_0x1a62ef(0x1c6)]=_0x3498db,R(this,'status','awaiting'),R(this,_0x1a62ef(0x1d6),0x0),R(this,_0x1a62ef(0x322),0x0),R(this,_0x1a62ef(0x318),void 0x0),R(this,_0x1a62ef(0x26f),void 0x0);}[_0x3c69ef(0x3fe)](_0x528f7f){const _0x390399=_0x3c69ef;this[_0x390399(0x2b6)]();let _0x1fcd6b=this[_0x390399(0x27a)]['createInstance'](Y,this[_0x390399(0x40c)],this[_0x390399(0x315)],this[_0x390399(0x2bd)],[_0x528f7f],this['_handler'],this[_0x390399(0x318)]);return _0x1fcd6b[_0x390399(0x2bc)](),_0x1fcd6b;}[_0x3c69ef(0x323)](_0x1a63c7){const _0x1558b6=_0x3c69ef;if(this[_0x1558b6(0x32f)](_0x1a63c7))return this['_clearScheduledTask'](),this[_0x1558b6(0x27a)][_0x1558b6(0x24d)](Q,this['unitID'],this[_0x1558b6(0x315)],this[_0x1558b6(0x2bd)],[],null,[_0x1a63c7],this[_0x1558b6(0x194)]);try{let _0x3134b3=this[_0x1558b6(0x1c6)]['transformChangesets']([_0x1a63c7],[this['_awaitingChangeset']],!0x1);if(_0x23d0df(_0x3134b3)){let {c1Prime:_0x500aee,c2Prime:_0x1436da}=_0x3134b3;this[_0x1558b6(0x3ac)](_0x500aee[0x0]),_0x1436da[0x0][_0x1558b6(0x3f1)]=this[_0x1558b6(0x312)](),this[_0x1558b6(0x2b6)]();let _0x715615=this['_injector'][_0x1558b6(0x24d)](dn,this['unitID'],this[_0x1558b6(0x315)],_0x1436da[0x0],this['_handler']);return _0x715615[_0x1558b6(0x2bc)](),_0x715615;}throw _0x3134b3[_0x1558b6(0x199)];}catch(_0x242c3a){return this[_0x1558b6(0x3f4)][_0x1558b6(0x199)](_0x242c3a),this[_0x1558b6(0x370)](!0x1);}}[_0x3c69ef(0x38c)](_0x2f5501){const _0x34e89a=_0x3c69ef;this['_clearScheduledTask']();let _0x4f44c7=this['_revisionService'][_0x34e89a(0x306)](this[_0x34e89a(0x40c)]);if(_0x2f5501[_0x34e89a(0x2fe)]<=_0x4f44c7)return this;if(this[_0x34e89a(0x32f)](_0x2f5501))return this[_0x34e89a(0x27a)][_0x34e89a(0x24d)](Q,this[_0x34e89a(0x40c)],this[_0x34e89a(0x315)],this[_0x34e89a(0x2bd)],[],_0x2f5501['revision'],[],this[_0x34e89a(0x194)]);this[_0x34e89a(0x1b6)]();let _0x527498=this[_0x34e89a(0x27a)][_0x34e89a(0x24d)](K,this[_0x34e89a(0x40c)],this[_0x34e89a(0x315)],this[_0x34e89a(0x194)]);return _0x527498[_0x34e89a(0x2bc)](),_0x527498;}[_0x3c69ef(0x28f)](_0x46564b){const _0x2dd4dc=_0x3c69ef;return this[_0x2dd4dc(0x370)](!!(_0x46564b!=null&&_0x46564b['isPermissionRej']));}[_0x3c69ef(0x20a)](_0x22711a){const _0xc8d169=_0x3c69ef;return this[_0xc8d169(0x322)]>hn?this['toggleOffline']():(this['_resendTimer']=ln(this[_0xc8d169(0x1d6)],{'timeout':this['_resendTimeout'],'reqId':_0x22711a['reqId']}),this[_0xc8d169(0x26f)]=this[_0xc8d169(0x318)][_0xc8d169(0x420)](({reqId:_0x46823a,timeout:_0xd77f47})=>{const _0x3cdbd6=_0xc8d169;this[_0x3cdbd6(0x417)](_0x46823a,_0xd77f47);}),this);}[_0x3c69ef(0x2f1)](){const _0x3a7542=_0x3c69ef;return this[_0x3a7542(0x2b6)](),this[_0x3a7542(0x27a)][_0x3a7542(0x24d)](Z,this[_0x3a7542(0x40c)],this['type'],this[_0x3a7542(0x2bd)],[],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x40da21=_0x3c69ef;this[_0x40da21(0x194)][_0x40da21(0x3e8)](this[_0x40da21(0x2bd)]);}[_0x3c69ef(0x370)](_0x35f37f){const _0x2d2214=_0x3c69ef;return this[_0x2d2214(0x2b6)](),this[_0x2d2214(0x27a)][_0x2d2214(0x24d)](X,this[_0x2d2214(0x40c)],this[_0x2d2214(0x315)],this['_awaitingChangeset'],[],this['_handler'],_0x35f37f);}[_0x3c69ef(0x417)](_0x8d14e1,_0x113043){const _0x33aa81=_0x3c69ef;var _0x2d1966;_0x8d14e1===((_0x2d1966=this[_0x33aa81(0x2bd)])==null?void 0x0:_0x2d1966['reqId'])&&(this[_0x33aa81(0x23b)](),this[_0x33aa81(0x1d6)]=_0x113043===0x0?0x3e8:Math[_0x33aa81(0x304)](_0x113043*0x2,mn),this[_0x33aa81(0x322)]+=this[_0x33aa81(0x1d6)]);}[_0x3c69ef(0x2b6)](){const _0x1ec1d0=_0x3c69ef;var _0x38c21c;(_0x38c21c=this[_0x1ec1d0(0x26f)])==null||_0x38c21c[_0x1ec1d0(0x3c3)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=dn=V([B(0x4,_0xe230cc(_0x31a56e)),B(0x5,_0xe230cc(_0x2d7797)),B(0x6,_0x4705e0),B(0x7,_0x5c3e7f),B(0x8,_0x3a995f),B(0x9,_0x4aa991),B(0xa,_0x2b3cfa(U))],J);let Y=fn=class extends G{constructor(_0x545bd6,_0x22c82c,_0x2b46ec,_0x172dfe,_0x2e8d62,_0x2b5225,_0xaf74c,_0x4edf9f,_0x200e6c,_0x386f23,_0x5f466e,_0x5ead60,_0x3a7c70){const _0x568eb4=_0x3c69ef;super(_0x545bd6,_0x22c82c,_0x2b46ec,_0x172dfe,_0x2e8d62,_0x200e6c,_0x5ead60,_0x4edf9f,_0x3a7c70),this['_injector']=_0xaf74c,this['_logService']=_0x386f23,this[_0x568eb4(0x1c6)]=_0x5f466e,this[_0x568eb4(0x19d)]=_0x3a7c70,R(this,_0x568eb4(0x275),_0x568eb4(0x22b)),R(this,_0x568eb4(0x1d6),0x0),R(this,_0x568eb4(0x322),0x0),R(this,_0x568eb4(0x318),void 0x0),R(this,_0x568eb4(0x26f),void 0x0),_0x2b5225&&(this['_resendTimer']=_0x2b5225,this[_0x568eb4(0x26f)]=this[_0x568eb4(0x318)][_0x568eb4(0x420)](({reqId:_0x2d1467,timeout:_0x597fd9})=>{const _0x26a66b=_0x568eb4;this[_0x26a66b(0x417)](_0x2d1467,_0x597fd9);}));}[_0x3c69ef(0x3fe)](_0x45f4de){const _0x2edacf=_0x3c69ef;return this['_pendingMutations'][_0x2edacf(0x217)](_0x45f4de),this;}[_0x3c69ef(0x323)](_0x361f3b){const _0x54f8e4=_0x3c69ef;if(this[_0x54f8e4(0x32f)](_0x361f3b))return this[_0x54f8e4(0x2b6)](),this[_0x54f8e4(0x27a)][_0x54f8e4(0x24d)](Q,this[_0x54f8e4(0x40c)],this['type'],this['_awaitingChangeset'],this[_0x54f8e4(0x1a7)],null,[_0x361f3b],this['_handler']);try{let _0x494d27=this[_0x54f8e4(0x1c6)]['transformChangesets']([_0x361f3b],[this[_0x54f8e4(0x2bd)]],!0x1);if(_0x23d0df(_0x494d27)){let {c1Prime:_0x5e6f90,c2Prime:_0xe3b286}=_0x494d27,_0x334ffa=this['_transformService'][_0x54f8e4(0x2f6)](_0x5e6f90[0x0],this['_pendingMutations']);if(_0x30d694(_0x334ffa)){let {c1Prime:_0x491569,m2Prime:_0x2e21bc}=_0x334ffa;return this['_executeRemoteChangeset'](_0x491569),_0xe3b286[0x0][_0x54f8e4(0x3f1)]=this[_0x54f8e4(0x312)](),this[_0x54f8e4(0x2b6)](),this['_injector']['createInstance'](fn,this[_0x54f8e4(0x40c)],this[_0x54f8e4(0x315)],_0xe3b286[0x0],_0x2e21bc,this[_0x54f8e4(0x194)],void 0x0);}throw _0x334ffa['error'];}throw _0x494d27[_0x54f8e4(0x199)];}catch(_0x14f25c){return this['_logService'][_0x54f8e4(0x199)](_0x14f25c),this[_0x54f8e4(0x370)](!0x1);}}['onRemoteAck'](_0x301298){const _0x24412a=_0x3c69ef;this[_0x24412a(0x2b6)]();let _0x3ff55d=this[_0x24412a(0x312)]();if(_0x301298[_0x24412a(0x2fe)]<=_0x3ff55d)return this;if(this['_checkMissing'](_0x301298))return this[_0x24412a(0x27a)][_0x24412a(0x24d)](Q,this['unitID'],this[_0x24412a(0x315)],this[_0x24412a(0x2bd)],this[_0x24412a(0x1a7)],_0x301298['revision'],[],this[_0x24412a(0x194)]);this[_0x24412a(0x1b6)]();let _0x16c874=this['_injector'][_0x24412a(0x24d)](q,this[_0x24412a(0x40c)],this['type'],this[_0x24412a(0x1a7)],this[_0x24412a(0x194)]);return _0x16c874['_schedule'](),_0x16c874['_updateLocalCache'](),_0x16c874;}[_0x3c69ef(0x28f)](_0x73e28b){const _0x4c7764=_0x3c69ef;return this[_0x4c7764(0x370)](!!(_0x73e28b!=null&&_0x73e28b[_0x4c7764(0x18e)]));}[_0x3c69ef(0x20a)](_0x20b295){const _0x14b613=_0x3c69ef;return this[_0x14b613(0x322)]>hn?this[_0x14b613(0x2f1)]():(this['_resendTimer']=ln(this[_0x14b613(0x1d6)],{'timeout':this[_0x14b613(0x1d6)],'reqId':_0x20b295[_0x14b613(0x256)]}),this[_0x14b613(0x26f)]=this['_resendTimer'][_0x14b613(0x420)](({reqId:_0x5d8979,timeout:_0x881d36})=>{const _0xf9c88a=_0x14b613;this[_0xf9c88a(0x417)](_0x5d8979,_0x881d36);}),this);}[_0x3c69ef(0x2f1)](){const _0x37fa7b=_0x3c69ef;return this[_0x37fa7b(0x2b6)](),this[_0x37fa7b(0x27a)][_0x37fa7b(0x24d)](Z,this[_0x37fa7b(0x40c)],this[_0x37fa7b(0x315)],this[_0x37fa7b(0x2bd)],this[_0x37fa7b(0x1a7)],this[_0x37fa7b(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}[_0x3c69ef(0x23b)](){const _0x45f782=_0x3c69ef;this[_0x45f782(0x194)][_0x45f782(0x3e8)](this['_awaitingChangeset']);}[_0x3c69ef(0x370)](_0x28b618){const _0x5c65b2=_0x3c69ef;return this[_0x5c65b2(0x2b6)](),this[_0x5c65b2(0x27a)][_0x5c65b2(0x24d)](X,this['unitID'],this['type'],null,this[_0x5c65b2(0x1a7)],this[_0x5c65b2(0x194)],_0x28b618);}[_0x3c69ef(0x417)](_0x37bffc,_0x468a23){const _0x32824e=_0x3c69ef;var _0xd948d6;_0x37bffc===((_0xd948d6=this[_0x32824e(0x2bd)])==null?void 0x0:_0xd948d6[_0x32824e(0x256)])&&(this[_0x32824e(0x23b)](),this[_0x32824e(0x1d6)]=_0x468a23===0x0?0x3e8:Math['min'](_0x468a23*0x2,mn),this[_0x32824e(0x322)]+=this[_0x32824e(0x1d6)]);}[_0x3c69ef(0x2b6)](){const _0x5a3e31=_0x3c69ef;var _0x26f761;(_0x26f761=this['_sender'])==null||_0x26f761[_0x5a3e31(0x3c3)](),this[_0x5a3e31(0x1d6)]=0x0,this[_0x5a3e31(0x322)]=0x0;}};Y=fn=V([B(0x6,_0xe230cc(_0x31a56e)),B(0x7,_0xe230cc(_0x2d7797)),B(0x8,_0x4705e0),B(0x9,_0x5c3e7f),B(0xa,_0x3a995f),B(0xb,_0x4aa991),B(0xc,_0x2b3cfa(U))],Y);let X=class extends G{constructor(_0x935a49,_0x5b7a7b,_0x1ae170,_0x577270,_0x4d5629,_0x23d190=!0x1,_0x114832,_0x5077ef,_0x4d28a7,_0x2d17a4,_0x70ff4e,_0x19648f,_0x1d63c2){const _0x244bcb=_0x3c69ef;super(_0x935a49,_0x5b7a7b,_0x1ae170,_0x577270,_0x4d5629,_0x5077ef,_0x4d28a7,_0x2d17a4,_0x1d63c2),this[_0x244bcb(0x28c)]=_0x23d190,this['_permissionService']=_0x114832,this[_0x244bcb(0x2c0)]=_0x70ff4e,this[_0x244bcb(0x290)]=_0x19648f,this[_0x244bcb(0x19d)]=_0x1d63c2,R(this,_0x244bcb(0x275),_0x244bcb(0x338)),this['_showConflictNotification'](),this[_0x244bcb(0x2d1)](),this[_0x244bcb(0x21a)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}[_0x3c69ef(0x28f)](){return this;}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){return this;}['toggleOnline'](){return this;}[_0x3c69ef(0x23b)](){const _0x47fe29=_0x3c69ef;throw Error(_0x47fe29(0x18c));}[_0x3c69ef(0x2d1)](){const _0x246258=_0x3c69ef;var _0x3180cf,_0x4a013d,_0x8e6e50;(_0x3180cf=this[_0x246258(0x1f4)])==null||(_0x4a013d=_0x3180cf[_0x246258(0x1fe)])==null||(_0x4a013d=_0x4a013d[_0x246258(0x1db)](_0x3180cf,this[_0x246258(0x40c)],'conflict'))==null||_0x4a013d[_0x246258(0x299)](()=>void 0x0),(_0x8e6e50=this[_0x246258(0x1f4)])==null||_0x8e6e50['updateOfflineData'](this[_0x246258(0x40c)],this['type'],null,[]);}[_0x3c69ef(0x2b2)](){const _0x4b2ba4=_0x3c69ef;this[_0x4b2ba4(0x28c)]?this[_0x4b2ba4(0x290)][_0x4b2ba4(0x377)]({'id':_0x4b2ba4(0x300)}):this['_collaborationUIEventService'][_0x4b2ba4(0x377)]({'id':_0x4b2ba4(0x1f0)});}[_0x3c69ef(0x21a)](){const _0x571d59=_0x3c69ef;this[_0x571d59(0x313)][_0x571d59(0x32b)](new _0x1413a3(this['unitID'])['id'],!0x1);}};X=V([B(0x6,_0xe230cc(_0x36da45)),B(0x7,_0x4705e0),B(0x8,_0x4aa991),B(0x9,_0xe230cc(_0x2d7797)),B(0xa,_0xe230cc(_0x9a407d)),B(0xb,_0xe230cc(z)),B(0xc,_0x2b3cfa(U))],X);let Z=class extends G{constructor(_0x1bc167,_0x340eee,_0x49de8c,_0x4957bd,_0x118cd9,_0xa3890b,_0x234bca,_0x2e4f8d,_0x2ce56d,_0x235b41){const _0xf9a1a2=_0x3c69ef;super(_0x1bc167,_0x340eee,_0x49de8c,_0x4957bd,_0x118cd9,_0x2e4f8d,_0x2ce56d,_0x234bca,_0x235b41),this[_0xf9a1a2(0x27a)]=_0xa3890b,R(this,_0xf9a1a2(0x275),_0xf9a1a2(0x255));}[_0x3c69ef(0x3fe)](_0x2c4e64){const _0x32859c=_0x3c69ef;return this[_0x32859c(0x1a7)][_0x32859c(0x217)](_0x2c4e64),this['_updateLocalCache'](),this;}[_0x3c69ef(0x323)](_0x2c32fb){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x3c69ef(0x38c)](){const _0x233166=_0x3c69ef;throw Error(_0x233166(0x1dc));}[_0x3c69ef(0x28f)](){const _0x15edf2=_0x3c69ef;throw Error(_0x15edf2(0x3fb));}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){return this;}[_0x3c69ef(0x2b9)](){const _0x4c7a93=_0x3c69ef;let {_injector:_0x3ce6d2,_pendingMutations:_0x2dd51c,_awaitingChangeset:_0x425547,unitID:_0x2d8832,_handler:_0x3bb6e1,type:_0x1d4996}=this,_0x223862=gn(_0x3ce6d2,_0x2d8832,_0x1d4996,_0x425547,_0x2dd51c,_0x3bb6e1);return _0x223862 instanceof q?_0x223862['_schedule']():(_0x223862 instanceof Y||_0x223862 instanceof J)&&_0x223862[_0x4c7a93(0x23b)](),_0x223862;}[_0x3c69ef(0x23b)](){const _0x31f545=_0x3c69ef;throw Error(_0x31f545(0x1cd));}};Z=V([B(0x5,_0xe230cc(_0x31a56e)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0x4705e0),B(0x8,_0x4aa991),B(0x9,_0x2b3cfa(U))],Z);let Q=class extends G{constructor(_0xa4ce7,_0x57443d,_0x48415c,_0x5c66db,_0x42b46c,_0x49d572,_0x3bd616,_0x4e346a,_0x4973c2,_0xa7caba,_0x1f5a99,_0x35a90e,_0x4c2d8f,_0x4abb00){const _0x597de6=_0x3c69ef;super(_0xa4ce7,_0x57443d,_0x48415c,_0x5c66db,_0x3bd616,_0x1f5a99,_0x35a90e,_0x4973c2,_0x4abb00),this[_0x597de6(0x2d2)]=_0x42b46c,this['_queuedRemoteChangesets']=_0x49d572,this['_injector']=_0x4e346a,this[_0x597de6(0x3f4)]=_0xa7caba,this[_0x597de6(0x1c6)]=_0x4c2d8f,this[_0x597de6(0x19d)]=_0x4abb00,R(this,_0x597de6(0x275),_0x597de6(0x302));}[_0x3c69ef(0x33e)](_0x32bd77){const _0x2ace9e=_0x3c69ef;try{if(this[_0x2ace9e(0x216)](_0x32bd77)[_0x2ace9e(0x219)])throw Error(_0x2ace9e(0x20d));if(this[_0x2ace9e(0x216)]([...this[_0x2ace9e(0x25c)]]['sort']((_0x19bad8,_0x1e44fb)=>_0x19bad8['revision']-_0x1e44fb[_0x2ace9e(0x2fe)]))[_0x2ace9e(0x219)])return this[_0x2ace9e(0x25c)]=[],this[_0x2ace9e(0x2bc)](),this['_handler'][_0x2ace9e(0x23c)]({'from':this[_0x2ace9e(0x312)](),'to':0x0}),this;let _0x44fd45=this[_0x2ace9e(0x2bd)],_0x3e7454=this['_pendingMutations'],_0x3f7833;if(_0x44fd45&&_0x3e7454[_0x2ace9e(0x3a1)]!==0x0)_0x3f7833=this['_injector'][_0x2ace9e(0x24d)](Y,this['unitID'],this[_0x2ace9e(0x315)],_0x44fd45,_0x3e7454,this[_0x2ace9e(0x194)],void 0x0);else{if(_0x44fd45&&_0x3e7454[_0x2ace9e(0x3a1)]===0x0)_0x44fd45[_0x2ace9e(0x3f1)]=this[_0x2ace9e(0x312)](),_0x3f7833=this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](J,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],_0x44fd45,this['_handler']);else{if(_0x3e7454[_0x2ace9e(0x3a1)]!==0x0){let _0x1d66cd=this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](q,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],_0x3e7454,this[_0x2ace9e(0x194)]);_0x1d66cd[_0x2ace9e(0x3dd)](),_0x3f7833=_0x1d66cd;}else _0x3f7833=this['_injector'][_0x2ace9e(0x24d)](K,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],this[_0x2ace9e(0x194)]);}}return _0x3f7833[_0x2ace9e(0x2bc)](),_0x3f7833;}catch(_0x33877a){return this['_logService'][_0x2ace9e(0x199)](_0x2ace9e(0x20e),_0x2ace9e(0x30c),_0x33877a),this[_0x2ace9e(0x27a)][_0x2ace9e(0x24d)](X,this[_0x2ace9e(0x40c)],this[_0x2ace9e(0x315)],this[_0x2ace9e(0x2bd)],this[_0x2ace9e(0x1a7)],this[_0x2ace9e(0x194)],!0x1);}}[_0x3c69ef(0x216)](_0x510a16){const _0x356cac=_0x3c69ef;this[_0x356cac(0x2a4)]();for(let _0x40a128=0x0;_0x40a128<_0x510a16[_0x356cac(0x3a1)];_0x40a128++){let _0x135973=_0x510a16[_0x40a128],_0x1efeed=this['_getCurrentRevision']();if(!(_0x135973['revision']<=_0x1efeed)){if(_0x135973['revision']>_0x1efeed+0x1)return{'missingChangesets':!0x0};if(this[_0x356cac(0x2db)](_0x135973)){this['_acknowledgeAwaiting']();continue;}this[_0x356cac(0x298)](_0x135973),this[_0x356cac(0x2a4)]();}}return{'missingChangesets':!0x1};}[_0x3c69ef(0x298)](_0x19404c){const _0x257c91=_0x3c69ef;let _0x183101=_0x19404c,_0x247419=this[_0x257c91(0x2bd)];if(_0x247419){let _0x5d6650=this[_0x257c91(0x1c6)][_0x257c91(0x1f8)]([_0x19404c],[_0x247419],!0x1);if(!_0x23d0df(_0x5d6650))throw _0x5d6650[_0x257c91(0x199)];_0x183101=_0x5d6650[_0x257c91(0x29c)][0x0],_0x247419=_0x5d6650[_0x257c91(0x2e3)][0x0];}let _0x54e9bc=this[_0x257c91(0x1a7)];if(_0x54e9bc[_0x257c91(0x3a1)]){let _0x65506d=this[_0x257c91(0x1c6)][_0x257c91(0x2f6)](_0x183101,_0x54e9bc);if(!_0x30d694(_0x65506d))throw _0x65506d['error'];_0x183101=_0x65506d[_0x257c91(0x29c)],_0x54e9bc=_0x65506d[_0x257c91(0x3a6)];}this['_executeRemoteChangeset'](_0x183101),_0x247419&&(_0x247419['baseRev']=this[_0x257c91(0x312)]()),this[_0x257c91(0x2bd)]=_0x247419,this[_0x257c91(0x1a7)]=_0x54e9bc;}[_0x3c69ef(0x2a4)](){const _0xaca3f4=_0x3c69ef;if(!this['_awaitingChangeset']||this[_0xaca3f4(0x2d2)]==null)return;let _0x201e20=this[_0xaca3f4(0x312)]();if(this[_0xaca3f4(0x2d2)]<=_0x201e20)throw Error(_0xaca3f4(0x286)+this['_acknowledgedAwaitingRevision']+'.');this[_0xaca3f4(0x2d2)]===_0x201e20+0x1&&this[_0xaca3f4(0x31d)]();}[_0x3c69ef(0x31d)](){const _0x1cd40f=_0x3c69ef;this[_0x1cd40f(0x1b6)](),this[_0x1cd40f(0x2bd)]=null,this[_0x1cd40f(0x2d2)]=null;}['_isEchoedAwaitingChangeset'](_0x2eacbd){const _0x25d81d=_0x3c69ef;let _0x250261=this[_0x25d81d(0x2bd)];return!_0x250261||!_0x250261['sid']||_0x250261[_0x25d81d(0x256)]===null||_0x250261[_0x25d81d(0x256)]===void 0x0?!0x1:_0x2eacbd[_0x25d81d(0x40c)]===_0x250261[_0x25d81d(0x40c)]&&_0x2eacbd[_0x25d81d(0x41d)]===_0x250261[_0x25d81d(0x41d)]&&_0x2eacbd[_0x25d81d(0x256)]===_0x250261[_0x25d81d(0x256)];}[_0x3c69ef(0x23b)](){const _0x40027=_0x3c69ef;throw Error(_0x40027(0x30b));}['appendMutation'](_0x408edb){const _0x1fc867=_0x3c69ef;return this[_0x1fc867(0x1a7)]['push'](_0x408edb),this;}['onRemoteChangeset'](_0x38791b){const _0x31fa66=_0x3c69ef;return this[_0x31fa66(0x25c)][_0x31fa66(0x217)](_0x38791b),this;}[_0x3c69ef(0x38c)](_0x57635c){const _0x128711=_0x3c69ef;if(this['_awaitingChangeset']){let _0x35d51f=this[_0x128711(0x312)]();return _0x57635c[_0x128711(0x2fe)]<=_0x35d51f||(_0x35d51f+0x1===_0x57635c[_0x128711(0x2fe)]?(this[_0x128711(0x1b6)](),this[_0x128711(0x2bd)]=null,this[_0x128711(0x2d2)]=null):this[_0x128711(0x2d2)]=_0x57635c['revision']),this;}if(_0x57635c['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x128711(0x2eb));}[_0x3c69ef(0x28f)](_0x560c8c){const _0xbd1e0a=_0x3c69ef;return this[_0xbd1e0a(0x370)](!!(_0x560c8c!=null&&_0x560c8c[_0xbd1e0a(0x18e)]));}[_0x3c69ef(0x20a)](){return this;}[_0x3c69ef(0x2f1)](){const _0x5c690a=_0x3c69ef;return this['_injector']['createInstance'](Z,this[_0x5c690a(0x40c)],this[_0x5c690a(0x315)],this['_awaitingChangeset'],this[_0x5c690a(0x1a7)],this[_0x5c690a(0x194)]);}[_0x3c69ef(0x2b9)](){return this;}[_0x3c69ef(0x370)](_0x188fcb){const _0x162dc4=_0x3c69ef;return this[_0x162dc4(0x27a)]['createInstance'](X,this['unitID'],this[_0x162dc4(0x315)],this[_0x162dc4(0x2bd)],this['_pendingMutations'],this['_handler'],_0x188fcb);}};Q=V([B(0x7,_0xe230cc(_0x31a56e)),B(0x8,_0xe230cc(_0x2d7797)),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x4aa991),B(0xc,_0x3a995f),B(0xd,_0x2b3cfa(U))],Q);function gn(_0x38ff98,_0x206b20,_0x15d397,_0x1188bc,_0x11a980,_0xb9be65){const _0x11a9a7=_0x3c69ef;return _0x1188bc&&_0x11a980[_0x11a9a7(0x3a1)]?_0x38ff98[_0x11a9a7(0x24d)](Y,_0x206b20,_0x15d397,_0x1188bc,_0x11a980,_0xb9be65,void 0x0):_0x1188bc?_0x38ff98[_0x11a9a7(0x24d)](J,_0x206b20,_0x15d397,_0x1188bc,_0xb9be65):_0x11a980[_0x11a9a7(0x3a1)]?_0x38ff98[_0x11a9a7(0x24d)](q,_0x206b20,_0x15d397,_0x11a980,_0xb9be65):_0x38ff98['createInstance'](K,_0x206b20,_0x15d397,_0xb9be65);}let $=class extends _0x50b38b{get[_0x3c69ef(0x378)](){const _0x4a11eb=_0x3c69ef;return this[_0x4a11eb(0x222)];}constructor(_0x1a9adb,_0x443d4f,_0x18c436,_0x338b41,_0x444e76,_0x2119ec,_0x56b4be,_0x187d5f,_0x42bc3c,_0x219e50,_0x5efb9d,_0x291d58,_0x367277,_0x1f1c26){const _0x438272=_0x3c69ef;super(),this[_0x438272(0x40c)]=_0x1a9adb,this[_0x438272(0x1c3)]=_0x443d4f,this[_0x438272(0x3ed)]=_0x18c436,this[_0x438272(0x27a)]=_0x338b41,this['_compressMutationService']=_0x444e76,this[_0x438272(0x2c0)]=_0x2119ec,this[_0x438272(0x403)]=_0x56b4be,this[_0x438272(0x3ef)]=_0x187d5f,this[_0x438272(0x1ba)]=_0x42bc3c,this[_0x438272(0x3f4)]=_0x219e50,this[_0x438272(0x1ac)]=_0x5efb9d,this[_0x438272(0x313)]=_0x291d58,this[_0x438272(0x2d5)]=_0x367277,this[_0x438272(0x1f4)]=_0x1f1c26,R(this,_0x438272(0x232),new _0x296086(null)),R(this,_0x438272(0x2ec),this['_state$'][_0x438272(0x1cc)]()),R(this,_0x438272(0x222),void 0x0),R(this,'_collaborationPaused',!0x1),R(this,'_changesetSessionId',''),R(this,_0x438272(0x373),0x0),R(this,'status$',this[_0x438272(0x2ec)][_0x438272(0x380)](_0x37ecf3(_0x2aec4e=>_0x2aec4e?_0x2aec4e[_0x438272(0x275)]:_0x438272(0x255)),_0x1c2ab6({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x438272(0x2c4),!0x1),R(this,_0x438272(0x1ed),[]);}async[_0x3c69ef(0x2ea)](){const _0x14929e=_0x3c69ef;if(this[_0x14929e(0x378)])throw Error(_0x14929e(0x3e5));await this[_0x14929e(0x293)]();}[_0x3c69ef(0x2ca)](){const _0x143c4b=_0x3c69ef;return this[_0x143c4b(0x2cc)]=!0x0,_0x4a5ee8(()=>{const _0x5eccf7=_0x143c4b;this[_0x5eccf7(0x2cc)]=!0x1,this[_0x5eccf7(0x3f7)]();});}[_0x3c69ef(0x1d8)](_0x122a3f){this['_onLocalMutation'](_0x122a3f);}[_0x3c69ef(0x285)](_0x1052cf){const _0xc2d14c=_0x3c69ef;this[_0xc2d14c(0x222)]=_0x1052cf,this[_0xc2d14c(0x232)]['next'](_0x1052cf);}async[_0x3c69ef(0x293)](){const _0x2e1274=_0x3c69ef;if(this[_0x2e1274(0x285)](await this[_0x2e1274(0x280)]()),this[_0x2e1274(0x2d5)]){var _0x25a336;(_0x25a336=this[_0x2e1274(0x2d5)])==null||_0x25a336[_0x2e1274(0x415)](this[_0x2e1274(0x40c)]),this[_0x2e1274(0x3b8)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x2e1274(0x40c)])[_0x2e1274(0x420)](_0x4f70bd=>{const _0x4b1639=_0x2e1274;this[_0x4b1639(0x3f4)]['debug']('[CollaborationEntity]',_0x4b1639(0x33b),_0x4f70bd),_0x4f70bd===0x1?(this[_0x4b1639(0x3ef)][_0x4b1639(0x377)]({'id':_0x4b1639(0x231)}),this[_0x4b1639(0x313)][_0x4b1639(0x32b)](new _0x1413a3(this[_0x4b1639(0x40c)])['id'],!0x1),this['_permissionService'][_0x4b1639(0x25b)](!0x1)):(this[_0x4b1639(0x313)]['updatePermissionPoint'](new _0x1413a3(this[_0x4b1639(0x40c)])['id'],!0x0),this[_0x4b1639(0x313)]['setShowComponents'](!0x0));}));}let _0xf66a36=!0x1;return this['disposeWithMe'](this[_0x2e1274(0x1c3)][_0x2e1274(0x2ae)][_0x2e1274(0x420)](_0x52f261=>{const _0x57d6c5=_0x2e1274;_0x52f261===0x3?this[_0x57d6c5(0x362)](_0xf66a36):_0x52f261===0x2&&(_0xf66a36=!0x0,this[_0x57d6c5(0x350)]());})),this[_0x2e1274(0x3b8)](this[_0x2e1274(0x1c3)][_0x2e1274(0x1b7)][_0x2e1274(0x420)](_0xd5f611=>{const _0x97877e=_0x2e1274;try{switch(_0xd5f611['eventID']){case _0x43102b['NEW_CHANGESETS']:this['_onRemoteChangeset'](_0x131ca5(_0xd5f611[_0x97877e(0x2ee)]));break;case _0x43102b['CHANGESET_ACK']:this[_0x97877e(0x394)](_0xd5f611[_0x97877e(0x2ee)]);break;case _0x43102b['CHANGESET_REJ']:this[_0x97877e(0x400)]();break;case _0x43102b['CHANGESET_SHOULD_RETRY']:this[_0x97877e(0x37d)](_0xd5f611[_0x97877e(0x2ee)]);break;case _0x43102b[_0x97877e(0x269)]:this[_0x97877e(0x3cc)](_0xd5f611[_0x97877e(0x2ee)][_0x97877e(0x23a)][_0x97877e(0x35d)](_0x4e6094=>_0x131ca5(_0x4e6094)));break;case _0x43102b[_0x97877e(0x271)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x43102b[_0x97877e(0x251)]:break;}}catch(_0x525b19){throw console['error'](_0x97877e(0x1bf),_0x525b19),_0x525b19;}})),this[_0x2e1274(0x222)];}[_0x3c69ef(0x1a2)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x539433=_0x3c69ef;if(this[_0x539433(0x2c4)])throw Error(_0x539433(0x25a));this['_transitionLocked']=!0x0;}[_0x3c69ef(0x30f)](_0x49eaef){const _0x53cf65=_0x3c69ef;this[_0x53cf65(0x3a9)](),this['_updateState'](this['_state']['appendMutation'](_0x49eaef)),this['_unlockTransition']();}[_0x3c69ef(0x205)](_0x134d74){const _0x3dc6a8=_0x3c69ef;if(!(_0x134d74[_0x3dc6a8(0x2fe)]<=this[_0x3dc6a8(0x403)][_0x3dc6a8(0x306)](this['unitID']))){if(this[_0x3dc6a8(0x2cc)]){this[_0x3dc6a8(0x1ed)][_0x3dc6a8(0x217)](_0x134d74);return;}this[_0x3dc6a8(0x3df)](_0x134d74);}}[_0x3c69ef(0x3f7)](){const _0x474efe=_0x3c69ef;this[_0x474efe(0x1ed)][_0x474efe(0x1e5)](_0x4413b8=>this[_0x474efe(0x3df)](_0x4413b8)),this[_0x474efe(0x1ed)]=[];}[_0x3c69ef(0x3df)](_0x3693c7){const _0x17f440=_0x3c69ef;let _0x32117d=this['_compressMutationService'][_0x17f440(0x1fd)][_0x17f440(0x2b1)](this['_compressMutationService'][_0x17f440(0x1fd)]['getInterceptPoints']()[_0x17f440(0x392)])(_0x3693c7['mutations'],null)||_0x3693c7['mutations'],_0xe24772={..._0x3693c7,'mutations':_0x32117d};this['_lockTransition'](),this[_0x17f440(0x285)](this[_0x17f440(0x222)]['onRemoteChangeset'](_0xe24772)),this[_0x17f440(0x1a2)]();}[_0x3c69ef(0x394)](_0x2a823b){const _0x1be608=_0x3c69ef;this[_0x1be608(0x3a9)](),this[_0x1be608(0x285)](this[_0x1be608(0x222)][_0x1be608(0x38c)](_0x2a823b)),this[_0x1be608(0x1a2)]();}[_0x3c69ef(0x400)](_0x482d60){const _0x2ef6b3=_0x3c69ef;this[_0x2ef6b3(0x3a9)](),this[_0x2ef6b3(0x285)](this['_state'][_0x2ef6b3(0x28f)](_0x482d60)),this[_0x2ef6b3(0x1a2)]();}[_0x3c69ef(0x37d)](_0x1fb3f5){const _0x316204=_0x3c69ef;this[_0x316204(0x3a9)](),this[_0x316204(0x285)](this[_0x316204(0x222)][_0x316204(0x20a)](_0x1fb3f5)),this['_unlockTransition']();}[_0x3c69ef(0x3cc)](_0x5c86bd){const _0x36c857=_0x3c69ef;if(!(this[_0x36c857(0x222)]instanceof Q))throw TypeError(_0x36c857(0x208));let _0x3b8c51=_0x5c86bd[_0x36c857(0x35d)](_0x22b9c=>{const _0x28d52c=_0x36c857;let _0x361da1=this['_compressMutationService'][_0x28d52c(0x1fd)][_0x28d52c(0x2b1)](this[_0x28d52c(0x1be)][_0x28d52c(0x1fd)]['getInterceptPoints']()[_0x28d52c(0x392)])(_0x22b9c['mutations'],null)||_0x22b9c['mutations'];return{..._0x22b9c,'mutations':_0x361da1};});this[_0x36c857(0x3a9)](),this[_0x36c857(0x285)](this['_state'][_0x36c857(0x33e)](_0x3b8c51)),this['_unlockTransition']();}[_0x3c69ef(0x350)](){const _0x1b3188=_0x3c69ef;this[_0x1b3188(0x3a9)](),this[_0x1b3188(0x285)](this[_0x1b3188(0x222)][_0x1b3188(0x2f1)]()),this[_0x1b3188(0x1a2)]();}[_0x3c69ef(0x362)](_0x424c7d=!0x1){const _0x5b6b53=_0x3c69ef;this['_lockTransition'](),this['_updateState'](this[_0x5b6b53(0x222)]['toggleOnline']()),this[_0x5b6b53(0x1a2)]();let _0x59cc1f=this[_0x5b6b53(0x222)];_0x424c7d&&_0x59cc1f instanceof K&&(this['_lockTransition'](),this[_0x5b6b53(0x285)](_0x59cc1f[_0x5b6b53(0x2cd)]()),this[_0x5b6b53(0x1a2)]());}async[_0x3c69ef(0x280)](){return new Promise(_0x20106a=>{const _0x49a8d4=_0x43c7;this['session'][_0x49a8d4(0x2ae)][_0x49a8d4(0x380)](_0x40acda(0x1))[_0x49a8d4(0x420)](async _0x5177c1=>{const _0x3d6d0f=_0x49a8d4;_0x20106a(await this[_0x3d6d0f(0x1ad)](_0x5177c1===0x3));});});}['_createHandler'](){let _0x163f03=this['unitID'];return{'onStateChange':(_0x1832a4,_0x40f3ed)=>{const _0x4a34ee=_0x43c7;if(_0x1832a4!==this[_0x4a34ee(0x222)])throw Error(_0x4a34ee(0x2f5)+_0x1832a4[_0x4a34ee(0x275)]+_0x4a34ee(0x2e1)+_0x40f3ed[_0x4a34ee(0x275)]+_0x4a34ee(0x357)+this[_0x4a34ee(0x222)]['status']);this['_updateState'](_0x40f3ed);},'onSendChangeset':_0xdca9d1=>{const _0x1511db=_0x43c7;_0xdca9d1[_0x1511db(0x41d)]||(_0xdca9d1[_0x1511db(0x41d)]=this[_0x1511db(0x191)],_0xdca9d1[_0x1511db(0x256)]=++this[_0x1511db(0x373)]);let _0xc9886c={'eventID':_0x43102b[_0x1511db(0x36c)],'data':{'unitID':_0xdca9d1[_0x1511db(0x40c)],'unitType':this[_0x1511db(0x3ed)],'changeset':_0xdca9d1,'memberID':this[_0x1511db(0x1c3)]['getMemberID']()}};this[_0x1511db(0x1c3)]['send'](_0xc9886c,this[_0x1511db(0x40c)]);},'onMissingChangesets':({from:_0x6c9298,to:_0xd3982c})=>{const _0x38b03c=_0x43c7;this[_0x38b03c(0x3f4)][_0x38b03c(0x2c6)](_0x38b03c(0x26c),_0x38b03c(0x20c)+_0x6c9298+_0x38b03c(0x234)+_0xd3982c);let _0x345002={'eventID':_0x43102b['FETCH_MISSING'],'data':{'unitID':_0x163f03,'unitType':this['_type'],'from':_0x6c9298,'to':_0xd3982c}};this[_0x38b03c(0x1c3)]['send'](_0x345002,this[_0x38b03c(0x40c)]);}};}async['_createInitialStateImpl'](_0x4e7252){const _0x2fff1a=_0x3c69ef;var _0x212162,_0x3ff504,_0x90e848;let _0x2e694e=await((_0x212162=this[_0x2fff1a(0x1f4)])==null?void 0x0:_0x212162[_0x2fff1a(0x3ce)](this[_0x2fff1a(0x40c)])),_0x4827e4=(_0x3ff504=_0x2e694e==null?void 0x0:_0x2e694e[_0x2fff1a(0x188)])==null?[]:_0x3ff504,_0x3a75e9=(_0x90e848=_0x2e694e==null?void 0x0:_0x2e694e[_0x2fff1a(0x2af)])==null?null:_0x90e848,_0x5e9c16=!!(_0x3a75e9!=null&&_0x3a75e9['sid'])&&!!(_0x3a75e9!=null&&_0x3a75e9[_0x2fff1a(0x256)]);this[_0x2fff1a(0x191)]=_0x5e9c16?_0x3a75e9['sid']:_0x15262c(),this[_0x2fff1a(0x373)]=_0x5e9c16?_0x3a75e9[_0x2fff1a(0x256)]:0x0;let _0x52638f=this[_0x2fff1a(0x40c)];try{this[_0x2fff1a(0x396)](_0x3a75e9,_0x4827e4);}catch(_0x29894e){this[_0x2fff1a(0x3f4)][_0x2fff1a(0x199)](_0x29894e);}let _0x203e8d=this[_0x2fff1a(0x39a)]();if(_0x4e7252){let _0x56df9e=gn(this[_0x2fff1a(0x27a)],_0x52638f,this[_0x2fff1a(0x3ed)],_0x3a75e9,_0x4827e4,_0x203e8d);return _0x56df9e instanceof q?_0x56df9e[_0x2fff1a(0x3dd)]():(_0x56df9e instanceof Y||_0x56df9e instanceof J)&&_0x56df9e[_0x2fff1a(0x23b)](),_0x56df9e;}return this[_0x2fff1a(0x27a)][_0x2fff1a(0x24d)](Z,_0x52638f,this['_type'],_0x3a75e9,_0x4827e4,_0x203e8d);}[_0x3c69ef(0x396)](_0x2bd800,_0xda174b){const _0x58ad1a=_0x3c69ef;var _0x50ab9a,_0x416047;let _0x1c1c31=this[_0x58ad1a(0x1be)][_0x58ad1a(0x1fd)]['fetchThroughInterceptors'](this[_0x58ad1a(0x1be)]['interceptor'][_0x58ad1a(0x29a)]()[_0x58ad1a(0x392)]);(_0x50ab9a=_0x1c1c31((_0x2bd800==null?void 0x0:_0x2bd800[_0x58ad1a(0x188)])||[],null))==null||_0x50ab9a[_0x58ad1a(0x1e5)](_0x397bfc=>this[_0x58ad1a(0x1ac)]['executeCommand'](_0x397bfc['id'],_0x397bfc['params'])),(_0x416047=_0x1c1c31(_0xda174b||[],null))==null||_0x416047[_0x58ad1a(0x1e5)](_0x2d092f=>this[_0x58ad1a(0x1ac)][_0x58ad1a(0x295)](_0x2d092f['id'],_0x2d092f[_0x58ad1a(0x3c6)]));}};$=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],$);let _n=class extends ${constructor(_0x2e8548,_0x42f376,_0xaa74ee,_0x3b47f8,_0x1dd896,_0x300aed,_0x132c2,_0x2b39e9,_0x1e398c,_0x399076,_0x1ebdc7,_0x44e95e,_0x5484ad,_0x118107,_0x464c3c){const _0x50411f=_0x3c69ef;super(_0x2e8548,_0xaa74ee,_0x42f376,_0x3b47f8,_0x1dd896,_0x300aed,_0x132c2,_0x2b39e9,_0x1e398c,_0x399076,_0x1ebdc7,_0x44e95e,_0x118107,_0x464c3c),this['unitID']=_0x2e8548,this['type']=_0x42f376,this['_docStateChangeManagerService']=_0x5484ad,R(this,_0x50411f(0x1f9),null);}[_0x3c69ef(0x310)](_0x426f7e){const _0x2a4b13=_0x3c69ef;this[_0x2a4b13(0x1f9)]=_0x426f7e;}['dispose'](){const _0x22413b=_0x3c69ef;this[_0x22413b(0x1f9)]=null,super['dispose']();}[_0x3c69ef(0x39a)](){const _0x419a31=_0x3c69ef;let _0x47120b=super[_0x419a31(0x39a)]();return _0x47120b[_0x419a31(0x2be)]=_0x2a48e9=>{const _0x4b613a=_0x419a31;var _0x3157dc,_0x3d8e1f;return(_0x3157dc=this[_0x4b613a(0x1f9)])==null||(_0x3d8e1f=_0x3157dc[_0x4b613a(0x2be)])==null?void 0x0:_0x3d8e1f[_0x4b613a(0x1db)](_0x3157dc,_0x2a48e9);},_0x47120b[_0x419a31(0x3d5)]=_0x590a14=>{const _0x5ab02c=_0x419a31;var _0x3b92ff,_0xa01130;return(_0x3b92ff=this[_0x5ab02c(0x1f9)])==null||(_0xa01130=_0x3b92ff['onTransformState'])==null?void 0x0:_0xa01130[_0x5ab02c(0x1db)](_0x3b92ff,_0x590a14);},_0x47120b[_0x419a31(0x218)]=_0x707d0b=>{const _0x4eed76=_0x419a31;var _0x1060dd,_0x6b5f6a;return(_0x1060dd=this[_0x4eed76(0x1f9)])==null||(_0x6b5f6a=_0x1060dd['onTransformSelections'])==null?void 0x0:_0x6b5f6a[_0x4eed76(0x1db)](_0x1060dd,_0x707d0b);},_0x47120b['onSyncEditingCollabCursor']=_0x400fc9=>{const _0x6cb29b=_0x419a31;var _0x52fbee,_0x14b0af;return(_0x52fbee=this[_0x6cb29b(0x1f9)])==null||(_0x14b0af=_0x52fbee[_0x6cb29b(0x41c)])==null?void 0x0:_0x14b0af[_0x6cb29b(0x1db)](_0x52fbee,_0x400fc9);},_0x47120b[_0x419a31(0x1df)]=_0x302ecc=>{const _0x542e27=_0x419a31;var _0x4d4b2d,_0x556a6b,_0x4d14ca;return(_0x4d4b2d=(_0x556a6b=this[_0x542e27(0x1f9)])==null||(_0x4d14ca=_0x556a6b[_0x542e27(0x1df)])==null?void 0x0:_0x4d14ca[_0x542e27(0x1db)](_0x556a6b,_0x302ecc))==null?_0x302ecc:_0x4d4b2d;},_0x47120b[_0x419a31(0x1d2)]=_0x18a952=>{const _0x181727=_0x419a31;var _0x5e592c,_0xb35c92,_0x570730;return(_0x5e592c=(_0xb35c92=this[_0x181727(0x1f9)])==null||(_0x570730=_0xb35c92['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x570730['call'](_0xb35c92,_0x18a952))==null?_0x18a952:_0x5e592c;},_0x47120b;}async[_0x3c69ef(0x293)](){const _0x2c68bf=_0x3c69ef;if(this[_0x2c68bf(0x2e5)]==null)throw Error('[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.');let _0x13e389=await super[_0x2c68bf(0x293)]();return this[_0x2c68bf(0x3b8)](this['_docStateChangeManagerService'][_0x2c68bf(0x383)][_0x2c68bf(0x420)](_0x13a77e=>{const _0x34df37=_0x2c68bf;if(_0x13a77e==null||_0x13a77e['unitId']!==this[_0x34df37(0x40c)])return;let {commandId:_0x4a36b6,redoState:_0x1c5ee7,unitId:_0x20d0cd}=_0x13a77e,_0x50ba65={'id':_0x4a36b6,'type':_0x537f94[_0x34df37(0x249)],'params':{'unitId':_0x20d0cd,'actions':_0x1c5ee7['actions'],'textRanges':null}};this['_onLocalMutation'](_0x50ba65);})),this[_0x2c68bf(0x3b8)](this[_0x2c68bf(0x1ac)][_0x2c68bf(0x24a)]((_0x572a8b,_0x92f048)=>{const _0x440adc=_0x2c68bf;if(_0x572a8b[_0x440adc(0x315)]!==_0x537f94[_0x440adc(0x249)]||_0x92f048!=null&&_0x92f048['fromCollab']||_0x92f048!=null&&_0x92f048[_0x440adc(0x1d4)]||_0x572a8b['id']===_0x386ca6['id'])return;let _0x32d818=_0x572a8b[_0x440adc(0x3c6)];if((_0x32d818==null?void 0x0:_0x32d818['unitId'])!==this[_0x440adc(0x40c)])return;let _0x1e0819=_0x572a8b,_0x35dfbf=this['_compressMutationService'][_0x440adc(0x1fd)][_0x440adc(0x2b1)](this[_0x440adc(0x1be)][_0x440adc(0x1fd)][_0x440adc(0x29a)]()[_0x440adc(0x291)])([_0x1e0819],this[_0x440adc(0x1ba)])||[_0x1e0819];this[_0x440adc(0x30f)](_0x35dfbf[0x0]);})),_0x13e389;}};_n=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(_0x4be2f8)),B(0xd,_0x2b3cfa(W)),B(0xe,_0x2b3cfa(U))],_n);let vn=class extends ${constructor(_0x46adfc,_0x3c6562,_0x3a3712,_0x5e8b84,_0xf5721b,_0x596f85,_0x54cf35,_0x460941,_0xcfbc49,_0x19084a,_0x8a67fa,_0xf1fb4b,_0x5683d3,_0x528b1d){const _0x716287=_0x3c69ef;super(_0x46adfc,_0x3a3712,_0x3c6562,_0x5e8b84,_0xf5721b,_0x596f85,_0x54cf35,_0x460941,_0xcfbc49,_0x19084a,_0x8a67fa,_0xf1fb4b,_0x5683d3,_0x528b1d),this[_0x716287(0x40c)]=_0x46adfc,this[_0x716287(0x315)]=_0x3c6562;}async[_0x3c69ef(0x293)](){const _0x445a86=_0x3c69ef;let _0x1cc503=await super['_init']();return this[_0x445a86(0x3b8)](this[_0x445a86(0x1ac)]['onMutationExecutedForCollab']((_0x2bb3ec,_0x427459)=>{const _0x201f9d=_0x445a86;if(_0x2bb3ec[_0x201f9d(0x315)]!==_0x537f94[_0x201f9d(0x249)]||_0x427459!=null&&_0x427459[_0x201f9d(0x27c)]||_0x427459!=null&&_0x427459[_0x201f9d(0x1d4)])return;let _0x553451=_0x2bb3ec[_0x201f9d(0x3c6)];if((_0x553451==null?void 0x0:_0x553451[_0x201f9d(0x296)])!==this[_0x201f9d(0x40c)])return;let _0x51bd7b=_0x2bb3ec,_0x362a8b=this[_0x201f9d(0x1be)]['interceptor'][_0x201f9d(0x2b1)](this[_0x201f9d(0x1be)]['interceptor'][_0x201f9d(0x29a)]()[_0x201f9d(0x291)])([_0x51bd7b],this[_0x201f9d(0x1ba)])||[_0x51bd7b];this['_onLocalMutation'](_0x362a8b[0x0]);})),_0x1cc503;}};vn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],vn);let yn=class extends ${constructor(_0x1e42a9,_0x28a47f,_0x3b31ff,_0x25bc29,_0xe1f759,_0x568f05,_0x568ce7,_0x4ebd37,_0x3c31ad,_0x23510e,_0x3971bc,_0x486985,_0x1796f4,_0x2e5bb0,_0x67d82d){const _0x222c34=_0x3c69ef;super(_0x1e42a9,_0x3b31ff,_0x28a47f,_0x25bc29,_0xe1f759,_0x568f05,_0x568ce7,_0x3c31ad,_0x23510e,_0x3971bc,_0x486985,_0x1796f4,_0x2e5bb0,_0x67d82d),this[_0x222c34(0x40c)]=_0x1e42a9,this[_0x222c34(0x315)]=_0x28a47f,this['_sheetTransformSelectionsService']=_0x4ebd37;}[_0x3c69ef(0x39a)](){const _0x316007=_0x3c69ef;let _0x402261=super[_0x316007(0x39a)]();return _0x402261[_0x316007(0x218)]=_0x5a6b70=>this[_0x316007(0x1e4)][_0x316007(0x319)](_0x5a6b70),_0x402261;}async[_0x3c69ef(0x293)](){const _0x30a9c2=_0x3c69ef;let _0x486284=await super[_0x30a9c2(0x293)]();return this[_0x30a9c2(0x3b8)](this[_0x30a9c2(0x1ac)][_0x30a9c2(0x24a)]((_0x3c15c2,_0x172f28)=>{const _0x27ea99=_0x30a9c2;if(_0x3c15c2[_0x27ea99(0x315)]!==_0x537f94[_0x27ea99(0x249)]||_0x172f28!=null&&_0x172f28['fromCollab']||_0x172f28!=null&&_0x172f28['onlyLocal'])return;let _0x2fb41e=_0x3c15c2[_0x27ea99(0x3c6)];if((_0x2fb41e==null?void 0x0:_0x2fb41e['unitId'])!==this[_0x27ea99(0x40c)])return;let _0x5e6d9d=_0x3c15c2,_0x26f2c4=this[_0x27ea99(0x1be)][_0x27ea99(0x1fd)][_0x27ea99(0x2b1)](this['_compressMutationService'][_0x27ea99(0x1fd)][_0x27ea99(0x29a)]()['COMPRESS_MUTATION_SEND'])([_0x5e6d9d],this[_0x27ea99(0x1ba)])||[_0x5e6d9d];this[_0x27ea99(0x30f)](_0x26f2c4[0x0]);})),_0x486284;}};yn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(Gt)),B(0x8,_0xe230cc(z)),B(0x9,_0x344fe1),B(0xa,_0x5c3e7f),B(0xb,_0x4705e0),B(0xc,_0x36da45),B(0xd,_0x2b3cfa(W)),B(0xe,_0x2b3cfa(U))],yn);let bn=class extends ${constructor(_0x35d40d,_0x54eb32,_0x9d883c,_0x245556,_0x2d53ee,_0x1c6722,_0x3f338f,_0x1ae0b4,_0x2e7cfb,_0x54e0b1,_0x411e1f,_0x5821b7,_0x45ffdf,_0x12f958){const _0x1a226f=_0x3c69ef;super(_0x35d40d,_0x9d883c,_0x54eb32,_0x245556,_0x2d53ee,_0x1c6722,_0x3f338f,_0x1ae0b4,_0x2e7cfb,_0x54e0b1,_0x411e1f,_0x5821b7,_0x45ffdf,_0x12f958),this[_0x1a226f(0x40c)]=_0x35d40d,this[_0x1a226f(0x315)]=_0x54eb32;}async[_0x3c69ef(0x293)](){const _0x4f9764=_0x3c69ef;let _0x1313a1=await super['_init']();return this[_0x4f9764(0x3b8)](this[_0x4f9764(0x1ac)][_0x4f9764(0x24a)]((_0x3d3735,_0x220789)=>{const _0x191b30=_0x4f9764;if(_0x3d3735[_0x191b30(0x315)]!==_0x537f94[_0x191b30(0x249)]||_0x220789!=null&&_0x220789[_0x191b30(0x27c)]||_0x220789!=null&&_0x220789[_0x191b30(0x1d4)])return;let _0x33cc2f=_0x3d3735[_0x191b30(0x3c6)];if((_0x33cc2f==null?void 0x0:_0x33cc2f[_0x191b30(0x296)])!==this[_0x191b30(0x40c)])return;let _0xaa6da7=_0x3d3735,_0x2e3601=this[_0x191b30(0x1be)][_0x191b30(0x1fd)]['fetchThroughInterceptors'](this[_0x191b30(0x1be)][_0x191b30(0x1fd)][_0x191b30(0x29a)]()[_0x191b30(0x291)])([_0xaa6da7],this[_0x191b30(0x1ba)])||[_0xaa6da7];this[_0x191b30(0x30f)](_0x2e3601[0x0]);})),_0x1313a1;}};bn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],bn);let xn=class extends ${constructor(_0x44c9fc,_0x54d53b,_0x26d7ac,_0x5b9f3e,_0x219219,_0x4370aa,_0x4fe147,_0x1135bf,_0x286d73,_0x2dea4f,_0x3030ec,_0x30665,_0x47bf7f,_0x5c4a6c){const _0x36d7ed=_0x3c69ef;super(_0x44c9fc,_0x26d7ac,_0x54d53b,_0x5b9f3e,_0x219219,_0x4370aa,_0x4fe147,_0x1135bf,_0x286d73,_0x2dea4f,_0x3030ec,_0x30665,_0x47bf7f,_0x5c4a6c),this[_0x36d7ed(0x40c)]=_0x44c9fc,this[_0x36d7ed(0x315)]=_0x54d53b;}async[_0x3c69ef(0x293)](){const _0xa93250=_0x3c69ef;let _0x5f3bbf=await super['_init']();return this['disposeWithMe'](this[_0xa93250(0x1ac)]['onMutationExecutedForCollab']((_0x551932,_0x44fa3f)=>{const _0x2c0d65=_0xa93250;if(_0x551932[_0x2c0d65(0x315)]!==_0x537f94[_0x2c0d65(0x249)]||_0x44fa3f!=null&&_0x44fa3f[_0x2c0d65(0x27c)]||_0x44fa3f!=null&&_0x44fa3f[_0x2c0d65(0x1d4)])return;let _0xbaf690=_0x551932[_0x2c0d65(0x3c6)];if((_0xbaf690==null?void 0x0:_0xbaf690[_0x2c0d65(0x296)])!==this[_0x2c0d65(0x40c)])return;let _0x5ca8fb=_0x551932,_0x4e56b0=this[_0x2c0d65(0x1be)][_0x2c0d65(0x1fd)]['fetchThroughInterceptors'](this[_0x2c0d65(0x1be)][_0x2c0d65(0x1fd)][_0x2c0d65(0x29a)]()[_0x2c0d65(0x291)])([_0x5ca8fb],this[_0x2c0d65(0x1ba)])||[_0x5ca8fb];this[_0x2c0d65(0x30f)](_0x4e56b0[0x0]);})),_0x5f3bbf;}};xn=V([B(0x3,_0xe230cc(_0x31a56e)),B(0x4,_0xe230cc(_0x4e166f)),B(0x5,_0xe230cc(_0x9a407d)),B(0x6,_0xe230cc(_0x2d7797)),B(0x7,_0xe230cc(z)),B(0x8,_0x344fe1),B(0x9,_0x5c3e7f),B(0xa,_0x4705e0),B(0xb,_0x36da45),B(0xc,_0x2b3cfa(W)),B(0xd,_0x2b3cfa(U))],xn);const Sn=_0x27db79(_0x3c69ef(0x1ff));function Cn(_0x58219c){const _0x1c54b2=_0x3c69ef;let _0x2d69b6=_0x58219c[_0x1c54b2(0x2ee)],_0x38fa42=JSON[_0x1c54b2(0x26d)](_0x2d69b6);switch(_0x38fa42['cmd']){case _0x5b7fe7[_0x1c54b2(0x31e)]:case _0x5b7fe7['HELLO']:{let _0x99ca06=_0x38fa42[_0x1c54b2(0x41f)];return{..._0x38fa42,'data':_0x99ca06,'cmd':_0x38fa42[_0x1c54b2(0x258)]};}case _0x5b7fe7['JOIN']:{let _0xfcb535=_0x38fa42[_0x1c54b2(0x3ae)];return{..._0x38fa42,'data':_0xfcb535,'cmd':_0x38fa42[_0x1c54b2(0x258)]};}case _0x5b7fe7['RECV']:{let _0x32e2fb=_0x38fa42[_0x1c54b2(0x235)];switch(_0x32e2fb['eventID']){case _0x43102b['PERMISSION_REJ']:var _0x199cf0;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x199cf0=_0x32e2fb[_0x1c54b2(0x2c1)])==null?void 0x0:_0x199cf0['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x348)]:var _0x27c39c;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x27c39c=_0x32e2fb[_0x1c54b2(0x34f)])==null?void 0x0:_0x27c39c['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x265)]:var _0x581b2b;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x581b2b=_0x32e2fb['newCsEvent'])==null?void 0x0:_0x581b2b['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['CHANGESET_REJ']:var _0x51d227;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x51d227=_0x32e2fb[_0x1c54b2(0x1bd)])==null?void 0x0:_0x51d227['cs']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['CHANGESET_SHOULD_RETRY']:var _0x473a5e;return{..._0x38fa42,'data':{..._0x32e2fb,'data':(_0x473a5e=_0x32e2fb[_0x1c54b2(0x21c)])==null?void 0x0:_0x473a5e['cs']},'cmd':_0x38fa42['cmd']};case _0x43102b[_0x1c54b2(0x37a)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb['updateCursorEvent']},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x1ec)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x3b4)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x334)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x22e)]},'cmd':_0x38fa42['cmd']};case _0x43102b['LIVESHARE_NEW_HOST']:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x224)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['LIVESHARE_FETCH_OPERATIONS']:case _0x43102b[_0x1c54b2(0x3e2)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x292)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x236)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x224)]},'cmd':_0x38fa42['cmd']};case _0x43102b[_0x1c54b2(0x19e)]:return{..._0x38fa42,'data':_0x32e2fb,'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x30a)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x283)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x365)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x38a)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b['SHOULD_CLOSE_CONN']:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x379)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};case _0x43102b[_0x1c54b2(0x251)]:return{..._0x38fa42,'data':{..._0x32e2fb,'data':_0x32e2fb[_0x1c54b2(0x3ee)]},'cmd':_0x38fa42[_0x1c54b2(0x258)]};default:return _0x38fa42;}}default:return _0x38fa42;}}function wn(_0x5eac57){const _0x5d7ca4=_0x3c69ef;switch(_0x5eac57[_0x5d7ca4(0x258)]){case _0x5b7fe7['HEARTBEAT']:case _0x5b7fe7[_0x5d7ca4(0x389)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57[_0x5d7ca4(0x258)],'routeKey':_0x5eac57['routeKey']});case _0x5b7fe7[_0x5d7ca4(0x3d9)]:{let _0x217462;switch(_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x3f0)]){case _0x43102b['UPDATE_CURSOR']:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x37a)],'updateCursorEvent':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['USERS_LEAVE']:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x334)],'leaveEvent':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x1ec)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x1ec)],'joinEvent':_0x5eac57[_0x5d7ca4(0x2ee)]['data']};break;case _0x43102b[_0x5d7ca4(0x39f)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x39f)],'liveShareNewHost':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x3e2)]:_0x217462={'eventID':_0x43102b['LIVESHARE_OPERATION'],'liveShareOperation':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['LIVESHARE_TERMINATE']:_0x217462={'eventID':_0x43102b['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b[_0x5d7ca4(0x21d)]:_0x217462={'eventID':_0x43102b[_0x5d7ca4(0x21d)],'liveShareRequestHost':_0x5eac57[_0x5d7ca4(0x2ee)][_0x5d7ca4(0x2ee)]};break;case _0x43102b['LIVESHARE_FETCH_OPERATIONS']:_0x217462={'eventID':_0x43102b['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x217462={'eventID':_0x5eac57['data'][_0x5d7ca4(0x3f0)]};}return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57[_0x5d7ca4(0x258)],'routeKey':_0x5eac57[_0x5d7ca4(0x2fd)],'collaMsg':_0x217462});}case _0x5b7fe7[_0x5d7ca4(0x3b6)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57['cmd'],'routeKey':_0x5eac57['routeKey'],'joinReq':_0x5eac57['data']});case _0x5b7fe7[_0x5d7ca4(0x31b)]:return JSON[_0x5d7ca4(0x2f7)]({'cmd':_0x5eac57['cmd'],'routeKey':_0x5eac57['routeKey'],'leaveReq':_0x5eac57[_0x5d7ca4(0x2ee)]});default:throw Error(_0x5d7ca4(0x2c5));}}const Tn=_0x27db79('univer-pro.collaboration-client-socket-service');function En(_0x588bae,_0x29feae,_0xf407a6){const _0x3625dd=_0x3c69ef;return _0x588bae+'/'+_0x29feae+_0x3625dd(0x203)+_0xf407a6+_0x3625dd(0x3bc);}let Dn=class extends _0x1c670c{constructor(_0x7d3a7e,_0xf34dd9,_0x3aa0cc,_0x2ee96c,_0x4d612a){const _0x393261=_0x3c69ef;super(),this['_injector']=_0x7d3a7e,this['_httpService']=_0xf34dd9,this[_0x393261(0x305)]=_0x3aa0cc,this[_0x393261(0x3f4)]=_0x2ee96c,this['_snapshotServerService']=_0x4d612a;}[_0x3c69ef(0x3fc)](_0x403a85){const _0x21503f=_0x3c69ef;let _0x53da94=this['_injector'][_0x21503f(0x20f)](_0x313930);if(!_0x53da94)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x73f2b4=_0x53da94['createSocket'](_0x403a85);if(!_0x73f2b4)throw Error(_0x21503f(0x198));let _0x2bff96=new _0x4fc3ed(),_0x57fc0c=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x1fa)]['subscribe'](_0x3b47b5=>_0x57fc0c[_0x21503f(0x19a)](_0x3b47b5))),_0x2bff96['add'](_0x4a5ee8(()=>_0x57fc0c['complete']()));let _0x26c044=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x1da)]['subscribe'](_0x3cc7a0=>_0x26c044[_0x21503f(0x19a)](_0x3cc7a0))),_0x2bff96[_0x21503f(0x308)](_0x4a5ee8(()=>_0x26c044[_0x21503f(0x3aa)]()));let _0x38ff4d=new _0x59eece();_0x2bff96[_0x21503f(0x308)](_0x73f2b4[_0x21503f(0x261)][_0x21503f(0x420)](_0x1cb854=>{const _0x5eada7=_0x21503f;let _0x3ad065=Cn(_0x1cb854);_0x38ff4d[_0x5eada7(0x19a)](_0x3ad065);})),_0x2bff96[_0x21503f(0x308)](_0x4a5ee8(()=>_0x38ff4d[_0x21503f(0x3aa)]()));let _0x1aba0f,_0x54d4ab=()=>{const _0x153e7f=_0x21503f;_0x26c044[_0x153e7f(0x19a)](new Event(_0x153e7f(0x3c2))),_0x57fc0c['next'](new Event(_0x153e7f(0x3c2))),_0x1aba0f[_0x153e7f(0x25d)]();};return _0x1aba0f={'memberID':'','close$':_0x57fc0c['asObservable'](),'error$':_0x26c044[_0x21503f(0x1cc)](),'open$':_0x73f2b4[_0x21503f(0x3e6)],'message$':_0x38ff4d[_0x21503f(0x1cc)](),'send':_0x3d790e=>{const _0x5197e8=_0x21503f;if(_0x3d790e[_0x5197e8(0x258)]===_0x5b7fe7[_0x5197e8(0x3d9)]){if(_0x3d790e['data'][_0x5197e8(0x3f0)]===_0x43102b[_0x5197e8(0x36c)]){this[_0x5197e8(0x2da)](_0x1aba0f,_0x3d790e['data'])[_0x5197e8(0x299)](_0x166cbc=>{const _0x42505d=_0x5197e8;this[_0x42505d(0x3f4)][_0x42505d(0x199)](_0x166cbc),_0x54d4ab();});return;}if(_0x3d790e[_0x5197e8(0x2ee)][_0x5197e8(0x3f0)]===_0x43102b[_0x5197e8(0x3ab)]){let _0x305ed3=_0x3d790e[_0x5197e8(0x2ee)];this[_0x5197e8(0x416)](_0x305ed3)[_0x5197e8(0x3b1)](_0x1fbdc4=>{const _0x552895=_0x5197e8;_0x38ff4d[_0x552895(0x19a)]({'cmd':_0x5b7fe7[_0x552895(0x2f9)],'code':_0x1d3aac['OK'],'routeKey':_0x305ed3[_0x552895(0x2ee)][_0x552895(0x40c)],'routeType':'','data':{'eventID':_0x43102b['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1fbdc4}}});})[_0x5197e8(0x299)](_0xf8ee04=>{const _0x481a76=_0x5197e8;this[_0x481a76(0x3f4)][_0x481a76(0x199)](_0xf8ee04),_0x54d4ab();});return;}}_0x73f2b4[_0x5197e8(0x31a)](wn(_0x3d790e));},'close':()=>{const _0x37152e=_0x21503f;_0x73f2b4[_0x37152e(0x25d)](),_0x2bff96[_0x37152e(0x20b)]();}},_0x1aba0f;}async[_0x3c69ef(0x2da)](_0x33c29b,_0x33205f){const _0xadac22=_0x3c69ef;var _0x6c94ca;let {unitType:_0x15eb42,unitID:_0x5197a0,changeset:_0x32b566}=_0x33205f[_0xadac22(0x2ee)],_0x50a488={'unitID':_0x5197a0,'memberID':_0x33c29b[_0xadac22(0x223)],'type':_0x15eb42,'changeset':_0x4835ca(_0x32b566)},_0x408684=this['_configService'][_0xadac22(0x353)](L),_0x3fd897=En((_0x6c94ca=_0x408684==null?void 0x0:_0x408684[_0xadac22(0x201)])==null?_0xadac22(0x23f):_0x6c94ca,_0x15eb42,_0x5197a0);try{await this['_httpService']['post'](_0x3fd897,{'body':_0x50a488});}catch(_0xb4f526){throw this[_0xadac22(0x3f4)][_0xadac22(0x199)](_0xadac22(0x297),'submit\x20changeset\x20error!'),_0xb4f526;}}async[_0x3c69ef(0x416)](_0x3fda22){const _0x3fe8ef=_0x3c69ef;let {unitID:_0x44e0bc,from:_0x343e22,to:_0x3df731,unitType:_0x4e268e}=_0x3fda22[_0x3fe8ef(0x2ee)];return(await this['_snapshotServerService'][_0x3fe8ef(0x364)]({'metadata':void 0x0},{'unitID':_0x44e0bc,'type':_0x4e268e,'from':_0x343e22,'to':_0x3df731}))[_0x3fe8ef(0x23a)][_0x3fe8ef(0x35d)](_0x41a4a3=>((_0x41a4a3[_0x3fe8ef(0x188)]===null||_0x41a4a3['mutations']===void 0x0)&&(_0x41a4a3[_0x3fe8ef(0x188)]=[]),_0x41a4a3));}};Dn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0xe230cc(_0x32d10d)),B(0x2,_0x1f37e4),B(0x3,_0x5c3e7f),B(0x4,_0xf3e9c6)],Dn);const On=_0x27db79(_0x3c69ef(0x288));function kn(_0x16b3dd={}){const _0x449158=_0x3c69ef;return _0x16b3dd[_0x449158(0x40e)]?{'resolveUnit':_0x16b3dd[_0x449158(0x40e)]}:{'resolveUnit':_0x37a10d=>({'target':{'unitId':_0x37a10d[_0x449158(0x296)],'unitType':_0x37a10d[_0x449158(0x242)]}})};}function An(_0x5657b0,_0x5df3a8,_0x2577d9){const _0x7fc8e9=_0x3c69ef;var _0x140aca;let _0x26ac17=_0x2577d9[_0x7fc8e9(0x3d8)][_0x7fc8e9(0x34a)];if(_0x26ac17!=null&&_0x26ac17['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x2577d9['target'][_0x7fc8e9(0x296)])throw Error(_0x7fc8e9(0x1b9));return{'localUnitId':_0x5657b0,'unitType':_0x5df3a8,'target':{'endpoint':_0x26ac17,'unitId':_0x2577d9[_0x7fc8e9(0x3d8)]['unitId'],'unitType':(_0x140aca=_0x2577d9['target'][_0x7fc8e9(0x242)])==null?_0x5df3a8:_0x140aca},'changeset':_0x2577d9[_0x7fc8e9(0x2c2)]};}let jn=class extends _0x1c670c{constructor(_0x2ceeba,_0x1889d7,_0x12b760,_0x292ea8,_0x29ef4c,_0x41ef23,_0x5683d4){const _0x51c193=_0x3c69ef;super(),this[_0x51c193(0x27a)]=_0x2ceeba,this[_0x51c193(0x3f4)]=_0x1889d7,this[_0x51c193(0x305)]=_0x12b760,this['_socketService']=_0x292ea8,this[_0x51c193(0x290)]=_0x29ef4c,this[_0x51c193(0x3ec)]=_0x41ef23,this[_0x51c193(0x252)]=_0x5683d4,R(this,_0x51c193(0x2a7),new Map()),R(this,'_pendingSessions',new Map()),R(this,_0x51c193(0x2aa),new Map()),R(this,'_socketChannels',new Map()),R(this,'socket$',this[_0x51c193(0x240)](void 0x0)['socket$'][_0x51c193(0x1cc)]()),R(this,_0x51c193(0x2c8),new _0x296086(0x0)),R(this,_0x51c193(0x3d4),this[_0x51c193(0x2c8)][_0x51c193(0x1cc)]()),this[_0x51c193(0x287)]();}['_listenToNetworkCondition'](){const _0x1f90fa=_0x3c69ef;this[_0x1f90fa(0x252)]&&this[_0x1f90fa(0x3b8)](this[_0x1f90fa(0x252)][_0x1f90fa(0x1d1)][_0x1f90fa(0x420)](_0x568e52=>{const _0x44a084=_0x1f90fa;_0x568e52&&this[_0x44a084(0x35e)](),_0x568e52||this[_0x44a084(0x29f)][_0x44a084(0x1e5)](_0x56f0e2=>this[_0x44a084(0x1e8)](_0x56f0e2));}));}[_0x3c69ef(0x20b)](){const _0x311cd0=_0x3c69ef;super[_0x311cd0(0x20b)](),this[_0x311cd0(0x29f)]['forEach'](_0x417a2e=>{const _0x178e05=_0x311cd0;var _0x40cbe3,_0x10a949;(_0x40cbe3=_0x417a2e[_0x178e05(0x2f3)])==null||_0x40cbe3['unsubscribe'](),_0x417a2e[_0x178e05(0x2f3)]=null,this[_0x178e05(0x336)](_0x417a2e),this['_clearTimeoutTimer'](_0x417a2e),this['_clearHeartbeatTimer'](_0x417a2e),(_0x10a949=_0x417a2e['socket$'][_0x178e05(0x368)]())==null||_0x10a949[_0x178e05(0x25d)](),_0x417a2e[_0x178e05(0x2b5)][_0x178e05(0x3aa)]();}),this['_socketChannels'][_0x311cd0(0x3bf)](),this[_0x311cd0(0x2a7)]['forEach'](_0x850252=>_0x850252[_0x311cd0(0x20b)]()),this[_0x311cd0(0x2a7)]['clear'](),this[_0x311cd0(0x2aa)][_0x311cd0(0x3bf)](),this['_status$'][_0x311cd0(0x3aa)]();}async[_0x3c69ef(0x2d4)](_0x6cdfbd,_0x2a857a){const _0x513e4b=_0x3c69ef;if(this['_sessions']['has'](_0x6cdfbd))return this[_0x513e4b(0x2a7)][_0x513e4b(0x20f)](_0x6cdfbd);let _0x3fc363=this[_0x513e4b(0x1e3)]['get'](_0x6cdfbd);if(_0x3fc363)return _0x3fc363;let _0x376495=this[_0x513e4b(0x214)](_0x6cdfbd,_0x2a857a);this[_0x513e4b(0x1e3)]['set'](_0x6cdfbd,_0x376495);try{return await _0x376495;}finally{this[_0x513e4b(0x1e3)][_0x513e4b(0x393)](_0x6cdfbd);}}async[_0x3c69ef(0x214)](_0x5781c5,_0xfa767b){const _0x1be84f=_0x3c69ef;let _0x2c1b9d=await this[_0x1be84f(0x346)](_0x5781c5,_0xfa767b),_0x2fc305=this[_0x1be84f(0x240)](_0x2c1b9d[_0x1be84f(0x3d8)][_0x1be84f(0x34a)]);this[_0x1be84f(0x21f)](_0x2fc305);let _0x11608a=this[_0x1be84f(0x27a)][_0x1be84f(0x24d)](Ht,_0x2c1b9d,_0x2fc305['socket$'][_0x1be84f(0x1cc)]());return this['_sessions'][_0x1be84f(0x220)](_0x5781c5,_0x11608a),this[_0x1be84f(0x2aa)]['set'](_0x5781c5,_0x2fc305['endpointKey']),_0x11608a;}[_0x3c69ef(0x32e)](_0x4b33ca){const _0x3311f8=_0x3c69ef;let _0x2c7103=this[_0x3311f8(0x2a7)][_0x3311f8(0x20f)](_0x4b33ca),_0x328c9f=this[_0x3311f8(0x2aa)][_0x3311f8(0x20f)](_0x4b33ca);if(_0x2c7103&&(this[_0x3311f8(0x2a7)]['delete'](_0x4b33ca),this['_sessionChannels'][_0x3311f8(0x393)](_0x4b33ca),_0x2c7103[_0x3311f8(0x25d)]()),_0x328c9f&&!this['_hasSessionsForEndpoint'](_0x328c9f)){var _0x301975;let _0x5aece1=this['_socketChannels']['get'](_0x328c9f);_0x5aece1==null||(_0x301975=_0x5aece1['socket$'][_0x3311f8(0x368)]())==null||_0x301975['close']();}}['reconnect'](){const _0x49946e=_0x3c69ef;(this[_0x49946e(0x29f)][_0x49946e(0x229)]?[...this['_socketChannels']['values']()]:[this[_0x49946e(0x240)](void 0x0)])[_0x49946e(0x1e5)](_0x37bce1=>{const _0x255110=_0x49946e;_0x37bce1[_0x255110(0x1f3)]=0x0,this[_0x255110(0x336)](_0x37bce1),this[_0x255110(0x215)](_0x37bce1);});}[_0x3c69ef(0x336)](_0x354dcb){const _0x25ec42=_0x3c69ef;_0x354dcb[_0x25ec42(0x2d0)]!=null&&(clearTimeout(_0x354dcb[_0x25ec42(0x2d0)]),_0x354dcb[_0x25ec42(0x2d0)]=null);}async[_0x3c69ef(0x354)](_0x1213f5){const _0xae061b=_0x3c69ef;var _0x10f6bd,_0x2c2b25;let _0x1ea7f5=this[_0xae061b(0x305)][_0xae061b(0x353)](L),_0x4d8253=(_0x10f6bd=(_0x2c2b25=_0x1213f5[_0xae061b(0x34a)])==null?_0x1ea7f5==null?void 0x0:_0x1ea7f5[_0xae061b(0x23d)]:_0x2c2b25)==null?mt:_0x10f6bd,_0x1dc0f2=await this['_socketService'][_0xae061b(0x2d7)](_0x4d8253);return _0x1213f5[_0xae061b(0x3f2)]=_0x1dc0f2,_0x1dc0f2;}async[_0x3c69ef(0x21f)](_0x3a1771){const _0x1bf93e=_0x3c69ef;try{var _0x138372,_0x152d95;let _0xa67934=(_0x138372=(_0x152d95=_0x3a1771[_0x1bf93e(0x2b5)][_0x1bf93e(0x368)]())==null?_0x3a1771[_0x1bf93e(0x3f2)]:_0x152d95)==null?await this['_createSocket'](_0x3a1771):_0x138372;if(_0xa67934){var _0x508fd8;let _0x3062db=_0xa67934[_0x1bf93e(0x31a)];_0xa67934['send']=_0x208f4d=>(_0x208f4d['cmd']!==_0x5b7fe7[_0x1bf93e(0x31b)]&&this['_rescheduleHeartbeat'](_0x3a1771),_0x3062db[_0x1bf93e(0x303)](_0xa67934,[_0x208f4d])),(_0x508fd8=_0x3a1771['socketMessageSubscription'])==null||_0x508fd8['unsubscribe'](),_0x3a1771[_0x1bf93e(0x2f3)]=null,_0x3a1771['socketMessageSubscription']=_0xa67934[_0x1bf93e(0x261)]['subscribe'](_0x30a3a9=>this[_0x1bf93e(0x419)](_0x3a1771,_0xa67934,_0x30a3a9)),_0xa67934[_0x1bf93e(0x1da)][_0x1bf93e(0x380)](_0x3b77de(0x1))[_0x1bf93e(0x420)](_0x118af4=>this[_0x1bf93e(0x3f4)][_0x1bf93e(0x199)]('[CollaborationSessionService]:\x20socket\x20error',_0x118af4)),_0xa67934['open$'][_0x1bf93e(0x380)](_0x3b77de(0x1))['subscribe'](()=>{const _0x4452ae=_0x1bf93e;this[_0x4452ae(0x1d3)](_0x3a1771,_0xa67934);}),_0xa67934['close$'][_0x1bf93e(0x380)](_0x3b77de(0x1))[_0x1bf93e(0x420)](_0x64d387=>{const _0x5bf5ab=_0x1bf93e;this[_0x5bf5ab(0x3f4)][_0x5bf5ab(0x2c6)](_0x5bf5ab(0x1c1),_0x5bf5ab(0x2ed),_0x64d387),this[_0x5bf5ab(0x1a6)](_0x3a1771);});}}catch(_0x1d07bd){this[_0x1bf93e(0x3f4)][_0x1bf93e(0x199)](_0x1d07bd),this[_0x1bf93e(0x1a6)](_0x3a1771);}}[_0x3c69ef(0x1d3)](_0x532f2e,_0x55c181){const _0x3930b2=_0x3c69ef;this['_logService'][_0x3930b2(0x2c6)](_0x3930b2(0x1c1),_0x3930b2(0x1a0)),_0x55c181[_0x3930b2(0x31a)]({'cmd':_0x5b7fe7[_0x3930b2(0x389)]}),this[_0x3930b2(0x276)](_0x532f2e);}[_0x3c69ef(0x1e8)](_0x24d63c){const _0x29673f=_0x3c69ef;_0x24d63c['socketReady']=!0x1,_0x24d63c[_0x29673f(0x3f2)]=null,this[_0x29673f(0x2c8)][_0x29673f(0x19a)](0x2),_0x24d63c['socket$'][_0x29673f(0x19a)](null),this[_0x29673f(0x243)](_0x24d63c),this[_0x29673f(0x39d)](_0x24d63c);}[_0x3c69ef(0x1a6)](_0x2f6c86){const _0x3488f8=_0x3c69ef;var _0x593f2a;this[_0x3488f8(0x1e8)](_0x2f6c86),this[_0x3488f8(0x34b)](_0x2f6c86[_0x3488f8(0x1b0)])&&(_0x2f6c86[_0x3488f8(0x1f3)]<((_0x593f2a=this[_0x3488f8(0x305)][_0x3488f8(0x353)](_0x3488f8(0x317)))==null?0x3:_0x593f2a)?(this[_0x3488f8(0x290)][_0x3488f8(0x377)]({'id':_0x3488f8(0x18f)}),this[_0x3488f8(0x215)](_0x2f6c86)):this['_collaborationUIEventService'][_0x3488f8(0x377)]({'id':_0x3488f8(0x343)}));}[_0x3c69ef(0x215)](_0x209e3c){const _0x23c27e=_0x3c69ef;var _0x492eb2;let _0x59e76f=_0x209e3c[_0x23c27e(0x1f3)],_0x2a9778=this[_0x23c27e(0x305)][_0x23c27e(0x353)](L),_0x367b23=_0x59e76f===0x0?0x0:((_0x492eb2=_0x2a9778==null?void 0x0:_0x2a9778['retryConnectingInterval'])==null?0x4e20:_0x492eb2)*0x2**_0x59e76f;_0x209e3c[_0x23c27e(0x2d0)]=setTimeout(()=>{const _0x24f74d=_0x23c27e;clearTimeout(_0x209e3c[_0x24f74d(0x2d0)]),_0x209e3c[_0x24f74d(0x2d0)]=null,this[_0x24f74d(0x21f)](_0x209e3c);},_0x367b23),_0x209e3c[_0x23c27e(0x1f3)]+=0x1;}async['_resolveSessionIdentity'](_0x34dd3d,_0x419df4){const _0x2c8dac=_0x3c69ef;return An(_0x34dd3d,_0x419df4,await this[_0x2c8dac(0x3ec)]['resolveUnit']({'unitId':_0x34dd3d,'unitType':_0x419df4}));}[_0x3c69ef(0x419)](_0x3e7031,_0x5dbfa9,_0x2c3dbe){const _0x54035f=_0x3c69ef;let {cmd:_0xe61440}=_0x2c3dbe;_0xe61440===_0x5b7fe7['HELLO']&&!_0x3e7031[_0x54035f(0x212)]&&(_0x5dbfa9[_0x54035f(0x223)]=_0x2c3dbe[_0x54035f(0x2ee)][_0x54035f(0x223)],_0x3e7031[_0x54035f(0x2b5)][_0x54035f(0x19a)](_0x5dbfa9),this[_0x54035f(0x2c8)][_0x54035f(0x19a)](0x3),_0x3e7031[_0x54035f(0x212)]=!0x0,_0x3e7031[_0x54035f(0x3f2)]=null),_0xe61440===_0x5b7fe7[_0x54035f(0x31e)]&&this[_0x54035f(0x243)](_0x3e7031),this[_0x54035f(0x276)](_0x3e7031);}[_0x3c69ef(0x34b)](_0x2b3891){const _0x3c128d=_0x3c69ef;return[...this['_sessionChannels'][_0x3c128d(0x1ef)]()]['some'](_0x5c3111=>_0x5c3111===_0x2b3891);}[_0x3c69ef(0x240)](_0x5d9d66){const _0x1c2f43=_0x3c69ef;let _0x1e48c2=_0x5d9d66==null?'':_0x5d9d66,_0x5b3775=this[_0x1c2f43(0x29f)][_0x1c2f43(0x20f)](_0x1e48c2);if(_0x5b3775)return _0x5b3775;let _0x1b7d4a={'endpointKey':_0x1e48c2,'endpoint':_0x5d9d66,'socket$':new _0x296086(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x1c2f43(0x29f)][_0x1c2f43(0x220)](_0x1e48c2,_0x1b7d4a),_0x1b7d4a;}['_rescheduleHeartbeat'](_0x207b3d){const _0x430c99=_0x3c69ef;var _0x8b346b;this['_clearHeartbeatTimer'](_0x207b3d),_0x207b3d[_0x430c99(0x28d)]=setTimeout(()=>this['_sendHeartbeat'](_0x207b3d),(_0x8b346b=this[_0x430c99(0x305)][_0x430c99(0x353)](_0x430c99(0x37e)))==null?0x7530:_0x8b346b);}['_sendHeartbeat'](_0x5acc19){const _0xfff4fa=_0x3c69ef;_0x5acc19[_0xfff4fa(0x2b5)][_0xfff4fa(0x368)]()[_0xfff4fa(0x31a)]({'cmd':_0x5b7fe7['HEARTBEAT']}),this['_waitForHeartbeatResponse'](_0x5acc19);}[_0x3c69ef(0x3f5)](_0x28b356){const _0x4902b4=_0x3c69ef;var _0x2c26fa;_0x28b356[_0x4902b4(0x408)]=setTimeout(()=>this['_onConnectionFailed'](_0x28b356),(_0x2c26fa=this['_configService'][_0x4902b4(0x353)](_0x4902b4(0x2a9)))==null?vt:_0x2c26fa);}[_0x3c69ef(0x39d)](_0x3036b5){const _0xaf34af=_0x3c69ef;_0x3036b5[_0xaf34af(0x28d)]!=null&&(clearTimeout(_0x3036b5[_0xaf34af(0x28d)]),_0x3036b5['sendHeartbeatTimer']=null);}[_0x3c69ef(0x243)](_0x4f5ea2){const _0x5a3c75=_0x3c69ef;_0x4f5ea2[_0x5a3c75(0x408)]!=null&&(clearTimeout(_0x4f5ea2[_0x5a3c75(0x408)]),_0x4f5ea2[_0x5a3c75(0x408)]=null);}};jn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x5c3e7f),B(0x2,_0x1f37e4),B(0x3,Tn),B(0x4,_0xe230cc(z)),B(0x5,On),B(0x6,_0x2b3cfa(Sn))],jn);let Mn=class extends _0x50b38b{constructor(_0x2a843f,_0x2c1af9,_0x5ab38a,_0x14798f){const _0x18decd=_0x3c69ef;var _0x1a59db;super(),this['_injector']=_0x2a843f,this[_0x18decd(0x3d2)]=_0x2c1af9,this[_0x18decd(0x305)]=_0x5ab38a,this[_0x18decd(0x1ba)]=_0x14798f,R(this,_0x18decd(0x221),new Map()),R(this,_0x18decd(0x3af),new _0x59eece()),R(this,'entityInit$',this['_entityInit$'][_0x18decd(0x1cc)]()),((_0x1a59db=this['_configService'][_0x18decd(0x353)](_0x18decd(0x268)))==null?void 0x0:_0x1a59db[_0x18decd(0x333)])!==!0x1&&this[_0x18decd(0x293)]();}[_0x3c69ef(0x20b)](){const _0x2a08db=_0x3c69ef;super[_0x2a08db(0x20b)](),this[_0x2a08db(0x221)][_0x2a08db(0x1e5)](_0x22c463=>_0x22c463[_0x2a08db(0x20b)]()),this[_0x2a08db(0x221)][_0x2a08db(0x3bf)]();}[_0x3c69ef(0x320)](_0x4d2bba){const _0x6724f1=_0x3c69ef;var _0x47e017;return(_0x47e017=this[_0x6724f1(0x221)][_0x6724f1(0x20f)](_0x4d2bba))==null?null:_0x47e017;}[_0x3c69ef(0x3e1)](_0x2a6e3c){const _0x1052d4=_0x3c69ef;let _0x2817cb=this[_0x1052d4(0x320)](_0x2a6e3c);return _0x2817cb?_0x282a93(_0x2817cb):this[_0x1052d4(0x3af)][_0x1052d4(0x380)](_0x26acea(_0x414600=>_0x414600[_0x1052d4(0x40c)]===_0x2a6e3c));}[_0x3c69ef(0x351)](_0x46b29c){const _0x1bc659=_0x3c69ef;return _0x34da10(this[_0x1bc659(0x3e1)](_0x46b29c)['pipe'](_0xf99eb3(()=>void 0x0)));}[_0x3c69ef(0x293)](){const _0x13acd3=_0x3c69ef;this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e['UNIVER_SHEET'])[_0x13acd3(0x380)](_0x48361a(this[_0x13acd3(0x294)]),_0x58575b(0x10))['subscribe'](async _0x26eb7d=>{const _0x36d826=_0x13acd3;let _0x4c7d26=_0x26eb7d[_0x36d826(0x3d6)][_0x36d826(0x270)](),_0x4a4e7e=await this[_0x36d826(0x2a0)](_0x4c7d26,_0x9a8e4e[_0x36d826(0x1a4)]);this[_0x36d826(0x221)][_0x36d826(0x220)](_0x4c7d26,_0x4a4e7e);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x274)])[_0x13acd3(0x380)](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x380)](_0x26acea(_0x2c05e7=>!_0x2c05e7[_0x13acd3(0x3d6)][_0x13acd3(0x270)]()[_0x13acd3(0x3cd)]('__')))['subscribe'](async _0x184a7e=>{const _0x4b5622=_0x13acd3;let _0x51ac8d=_0x184a7e[_0x4b5622(0x3d6)][_0x4b5622(0x270)](),_0x5e2227=await this[_0x4b5622(0x2a0)](_0x51ac8d,_0x9a8e4e['UNIVER_DOC']);this[_0x4b5622(0x221)]['set'](_0x51ac8d,_0x5e2227);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x3c8)])[_0x13acd3(0x380)](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x33385b=>{const _0x242424=_0x13acd3;let _0x53a715=_0x33385b[_0x242424(0x3d6)][_0x242424(0x270)](),_0xf8927d=await this[_0x242424(0x2a0)](_0x53a715,_0x9a8e4e[_0x242424(0x3c8)]);this[_0x242424(0x221)][_0x242424(0x220)](_0x53a715,_0xf8927d);}),this[_0x13acd3(0x1ba)][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x360)])['pipe'](_0x48361a(this['dispose$']),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x11fab8=>{const _0x7bdf0b=_0x13acd3;let _0x18f41d=_0x11fab8[_0x7bdf0b(0x3d6)][_0x7bdf0b(0x270)](),_0x21c856=await this[_0x7bdf0b(0x2a0)](_0x18f41d,_0x9a8e4e[_0x7bdf0b(0x360)]);this[_0x7bdf0b(0x221)]['set'](_0x18f41d,_0x21c856);}),this['_univerInstanceService'][_0x13acd3(0x395)](_0x9a8e4e[_0x13acd3(0x3b3)])[_0x13acd3(0x380)](_0x48361a(this[_0x13acd3(0x294)]),_0x58575b(0x10))[_0x13acd3(0x420)](async _0x5ee058=>{const _0x3f3c79=_0x13acd3;let _0x2ecc7d=_0x5ee058[_0x3f3c79(0x3d6)][_0x3f3c79(0x270)](),_0x457a07=await this[_0x3f3c79(0x2a0)](_0x2ecc7d,_0x9a8e4e[_0x3f3c79(0x3b3)]);this[_0x3f3c79(0x221)][_0x3f3c79(0x220)](_0x2ecc7d,_0x457a07);}),_0x4802bd(this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x1a4)]),this[_0x13acd3(0x1ba)]['getTypeOfUnitDisposed$'](_0x9a8e4e[_0x13acd3(0x274)]),this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x3c8)]),this[_0x13acd3(0x1ba)][_0x13acd3(0x32a)](_0x9a8e4e[_0x13acd3(0x360)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x9a8e4e['UNIVER_BASE']))['pipe'](_0x48361a(this[_0x13acd3(0x294)]))[_0x13acd3(0x420)](_0x357f94=>{const _0x13c7da=_0x13acd3;let _0xb7fcd1=_0x357f94[_0x13c7da(0x270)](),_0x4ffec1=this['_entities'][_0x13c7da(0x20f)](_0xb7fcd1);_0x4ffec1&&(_0x4ffec1[_0x13c7da(0x20b)](),this[_0x13c7da(0x221)]['delete'](_0xb7fcd1));});}async[_0x3c69ef(0x2a0)](_0x34fc9b,_0x2cf927){const _0x143b7c=_0x3c69ef;let _0x4e3b86=await this['_collabSessionService'][_0x143b7c(0x2d4)](_0x34fc9b),_0x1b3008=this[_0x143b7c(0x27a)]['createInstance'](this['_getCtorByUniverInstanceType'](_0x2cf927),_0x34fc9b,_0x2cf927,_0x4e3b86);return await _0x1b3008[_0x143b7c(0x2ea)](),this['_entityInit$'][_0x143b7c(0x19a)](_0x1b3008),_0x1b3008;}['_getCtorByUniverInstanceType'](_0x5ed872){const _0x5cc8d8=_0x3c69ef;switch(_0x5ed872){case _0x9a8e4e[_0x5cc8d8(0x274)]:return _n;case _0x9a8e4e[_0x5cc8d8(0x1a4)]:return yn;case _0x9a8e4e[_0x5cc8d8(0x3c8)]:return bn;case _0x9a8e4e[_0x5cc8d8(0x360)]:return xn;case _0x9a8e4e['UNIVER_BASE']:return vn;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x5ed872);}}};Mn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0xe230cc(jn)),B(0x2,_0x1f37e4),B(0x3,_0x344fe1)],Mn);var Nn='@univerjs-pro/collaboration-client',Pn=_0x3c69ef(0x397);let Fn=class extends _0x1c670c{constructor(_0x3cc386,_0x253123){const _0x4a79d7=_0x3c69ef;super(),this[_0x4a79d7(0x1ba)]=_0x3cc386,this['_configService']=_0x253123,this[_0x4a79d7(0x293)]();}[_0x3c69ef(0x293)](){const _0xb303d6=_0x3c69ef;this[_0xb303d6(0x3b8)](this[_0xb303d6(0x1ba)]['focused$'][_0xb303d6(0x420)](()=>{const _0x50337b=_0xb303d6;var _0x1a7227;let _0x1caba7=this[_0x50337b(0x1ba)][_0x50337b(0x230)](),_0x1607ec=(_0x1a7227=this[_0x50337b(0x305)][_0x50337b(0x353)]('DEFAULT_FILE_NAME'))==null?_0x50337b(0x1b2):_0x1a7227;_0x1caba7 instanceof _0x19ddfe&&(_0x1607ec=_0x1caba7['name']),document[_0x50337b(0x36e)]=_0x1607ec;}));}};Fn=V([B(0x0,_0x344fe1),B(0x1,_0x1f37e4)],Fn);let In=function(_0x558325){const _0x4f938a=_0x3c69ef;return _0x558325['URL']=_0x4f938a(0x37f),_0x558325['UUID']=_0x4f938a(0x3ba),_0x558325[_0x4f938a(0x3a8)]=_0x4f938a(0x3a8),_0x558325;}({});const Ln=_0x27db79(_0x3c69ef(0x25f));let Rn=class{constructor(_0x1defb7,_0x34a251,_0x360a15){const _0x4f3add=_0x3c69ef;this[_0x4f3add(0x2e8)]=_0x1defb7,this[_0x4f3add(0x305)]=_0x34a251,this[_0x4f3add(0x1ba)]=_0x360a15;}[_0x3c69ef(0x2a2)](){const _0x30cbbc=_0x3c69ef;var _0x89618d;return(_0x89618d=this['_getConfig']()[_0x30cbbc(0x237)])==null?{}:_0x89618d;}async[_0x3c69ef(0x1bc)](_0x4dcec0){const _0x14070f=_0x3c69ef;let _0x2acbe7=this['getUploadOptions']();if(zn(_0x4dcec0,_0x2acbe7),_0x2acbe7['upload'])return _0x2acbe7['upload'](_0x4dcec0);let _0x166f02=await this[_0x14070f(0x36d)](_0x4dcec0);return{'id':_0x166f02,'name':_0x4dcec0[_0x14070f(0x245)],'mimeType':_0x4dcec0[_0x14070f(0x315)],'size':_0x4dcec0[_0x14070f(0x229)],'sourceType':_0x14070f(0x3ba),'source':_0x166f02};}async[_0x3c69ef(0x36d)](_0x4d271b){const _0x2a9a5b=_0x3c69ef;let _0x4f4cc6=this['_univerInstanceService'][_0x2a9a5b(0x230)](),_0x3fc7ea=_0x4f4cc6==null?void 0x0:_0x4f4cc6['getUnitId']();if(!_0x3fc7ea)throw Error(_0x2a9a5b(0x33c));let _0x204ae6=new FormData();_0x204ae6['append']('file',_0x4d271b);let _0x3701ac=this['_getUploadFileURL']()+_0x2a9a5b(0x2d9)+_0x4d271b['size'][_0x2a9a5b(0x2a1)]()+_0x2a9a5b(0x3d7)+_0x316b67[_0x2a9a5b(0x38e)]+_0x2a9a5b(0x29d)+encodeURIComponent(_0x3fc7ea),_0x2e72c5=(await this[_0x2a9a5b(0x2e8)]['post'](_0x3701ac,{'body':_0x204ae6}))[_0x2a9a5b(0x31c)][_0x2a9a5b(0x418)];if(typeof _0x2e72c5!=_0x2a9a5b(0x3e7)||!_0x2e72c5)throw Error(_0x2a9a5b(0x3f9));return _0x2e72c5;}[_0x3c69ef(0x35f)](){const _0x754ffb=_0x3c69ef;var _0x4f5862;return(_0x4f5862=this[_0x754ffb(0x1c7)]()[_0x754ffb(0x1fb)])==null?'/universer-api/stream/file/upload':_0x4f5862;}['_getConfig'](){const _0x408852=_0x3c69ef;var _0x5ee068;return(_0x5ee068=this['_configService'][_0x408852(0x353)](_0x408852(0x268)))==null?{}:_0x5ee068;}};Rn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0xe230cc(_0x1f37e4)),B(0x2,_0xe230cc(_0x344fe1))],Rn);function zn(_0x2a86ea,_0x1db651){const _0x378329=_0x3c69ef;var _0x468eac;if(_0x1db651[_0x378329(0x385)]!=null&&_0x2a86ea['size']>_0x1db651[_0x378329(0x385)])throw Error(_0x378329(0x340));if((_0x468eac=_0x1db651[_0x378329(0x311)])!=null&&_0x468eac[_0x378329(0x3a1)]&&!_0x1db651[_0x378329(0x311)]['some'](_0x16deef=>_0x2a86ea['type']===_0x16deef||_0x2a86ea[_0x378329(0x245)][_0x378329(0x2ac)](_0x16deef)||_0x16deef[_0x378329(0x2ac)]('/*')&&_0x2a86ea[_0x378329(0x315)]['startsWith'](_0x16deef[_0x378329(0x335)](0x0,-0x1))))throw Error(_0x378329(0x384));}let Bn=class{constructor(_0x3d09af,_0x3712c3,_0x409b6a){const _0xf359e7=_0x3c69ef;this[_0xf359e7(0x305)]=_0x3d09af,this['_httpService']=_0x3712c3,this['localeService']=_0x409b6a,this['init']();}[_0x3c69ef(0x2ea)](){const _0x242f62=_0x3c69ef;this[_0x242f62(0x2e8)][_0x242f62(0x3a5)]({'priority':0x1,'interceptor':(_0x281134,_0x1f1adc)=>_0x1f1adc(_0x281134)['pipe'](_0x55ed4c(async _0x11c3af=>{const _0x32faf7=_0x242f62;let _0x13c64e=_0x11c3af;if(_0x13c64e[_0x32faf7(0x275)]===0x191){if(typeof window>'u')throw Error(_0x32faf7(0x345));if(window['confirm'](this[_0x32faf7(0x21e)]['t'](_0x32faf7(0x3bb)))){let _0x534677=window[_0x32faf7(0x2e2)](window[_0x32faf7(0x1b4)][_0x32faf7(0x30d)]);window[_0x32faf7(0x1b4)]['href']=this[_0x32faf7(0x1a3)]()+_0x32faf7(0x3a0)+_0x534677;}}return _0x13c64e;}))});}[_0x3c69ef(0x1a3)](){const _0x5c3c45=_0x3c69ef;var _0x2d95ea;let _0x1ce58d=this[_0x5c3c45(0x305)][_0x5c3c45(0x353)](L);return(_0x2d95ea=_0x1ce58d==null?void 0x0:_0x1ce58d['loginUrlKey'])==null?'/universer-api/oidc/authpage':_0x2d95ea;}};function _0x36d7(){const _0x5059f8=['readyForCollab','_stopTelemetryCollaborationNewChangeset','getConfig','_createSocket','onload','_memberService','\x0aCurrent:\x20','getCfgEnableObjInherit','/-/object/-/batch_allowed','function','JOIN_ROOM_FAILED','subject','map','reconnect','_getUploadFileURL','UNIVER_BOARD','5636952JZFHfg','_toggleOnline','_onUserJoin','fetchMissingChangesets','UPDATE_PERMISSION_OBJ','_transformIMECache','_event$','getValue','session.join-failed','constructor','getAllMembers','SUBMIT_CHANGESET','_upload','title','allowed','_onConflict','findIndex','_getUndoStack','_changesetReqId','_collaborationTimeoutTimer','resourceIDs','columnGroups','emitEvent','state','shouldCloseConn','UPDATE_CURSOR','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sheets','_onRemoteRetry','HEARTBEAT_INTERVAL','URL','pipe','/universer-api/snapshot/','_unitInfo$','docStateChange$','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','maxSize','headers','has','transformUndoRedo','HELLO','updatePermissionObjEvent','onCommentUpdate','onRemoteAck','_roomMembers','UnitEmbedded','_onJoinRoomEvent','/universer-api/stream/file/upload','symbol','COMPRESS_MUTATION_APPLY','delete','_onRemoteACK','getTypeOfUnitAdded$','_replayCachedMutations','1.0.0-alpha.3','authzUrl','_telemetryService','_createHandler','POST','8UsRIhV','_clearHeartbeatTimer','_updateStatus','LIVESHARE_NEW_HOST','?url=','length','refreshPermission','_undoRedoService','JOIN_ROOM_NOT_EXISTS','registerHTTPInterceptor','m2Prime','loadDoc','BASE64','_lockTransition','complete','FETCH_MISSING','_executeRemoteChangeset','actions','joinRsp','_entityInit$','pending','then','charCodeAt','UNIVER_BASE','joinEvent','_userManagerService','JOIN','&to=','disposeWithMe','objectActions','UUID','collaboration-client.auth.needGotoLoginAlert','/new_changes','CLOSE_ROOM','getWorkbookSelections','clear','userID','_clearRedo','connection\x20error','unsubscribe','defineProperty','_replaceFileID','params','PENDING','UNIVER_SLIDE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','find','ONLINE','_onFetchMissResult','startsWith','loadOfflineData','isArray','initWorkbookPermissionChange','workbook','_collabSessionService','fromCharCode','status$','onTransformState','unit','&source=','target','INGEST','resolve','[PendingState]:\x20unhandled\x20univer\x20type:\x20','NOT_COLLAB','_schedule','default','_applyRemoteChangeset','saveSnapshot','getCollabEntity$','LIVESHARE_OPERATION','SYNCED','_throwTelemetryCollaborationNewChangeset','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','open$','string','onSendChangeset','_onUserLeave','loadBoard','_clearCollaborationTimeoutTimer','_adapter','_type','uniscriptRunEvent','_eventService','eventID','baseRev','candidateSocket','_transformStack','_logService','_waitForHeartbeatResponse','session.room-cnt-exceeds','_exhaustRemoteChangesetQueue','src','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','every','[OfflineState]:\x20received\x20rejection.','_doCreateSocket','getMemberID','appendMutation','_joinRoom','_onRemoteRejected','prototype','tables','_revisionService','279246AOhUVI','_snapshotService','getSheetBlock','duration','timeoutTimer','PERSON','/resources','enableAuthServer','unitID','floor','resolveUnit','_change$','_getAPIPrefix','updateOfflineData','/allowed','_initDependencies','_shouldReportTelemetry','editingUnit','_fetchMissChangesets','_resendWithTimeout','FileId','_onMessage','_waitCount','patch','onSyncEditingCollabCursor','sid','setCfgEnableObjInherit','infoRsp','subscribe','mutations','update','_substituteUndoStack','pluginName','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getSnapshotAPIPath','isPermissionRej','SOCKET_FAILED_RETRY','onStateChange','_changesetSessionId','override','__splitChunk__','_handler','_collaborationSessionService','collaborators','_members','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','error','next','getOwnPropertyDescriptor','max','localCacheService','MSG_FOR_ERROR','_transformRemoteChangesetByIMECache','socket\x20open.','saveChangeset','_unlockTransition','_getLoginPath','UNIVER_SHEET','enableOfflineEditing','_onConnectionFailed','_pendingMutations','originalMeta','_commentUpdate$','442842Hxjxmj','batchAllowed','_commandService','_createInitialStateImpl','encode','selections','endpointKey','AWAITING','Univer','saveImage','location','equals','_incrementRevisionNumber','event$','getUnit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_univerInstanceService','[PendingState]:\x20received\x20acknowledgement.','saveAttachment','csRejEvent','_compressMutationService','Error\x20on\x20receiving\x20event','putCollaborators','[CollaborationSessionService]','[DataLoaderService]','session','_getRedoStack','requestParams','_transformService','_getConfig','ERROR_IMAGE_TYPE','transformStack\x20failed!','now','_imageSourceCache','asObservable','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OPTIONAL','OTHER_CLIENTS_EDITING','/universer-api/authz','online$','onTransformRemoteChangesetByStateCache','_onConnectionOpen','onlyLocal','_initUnitPermissionChange','_resendTimeout','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onLocalMutation','_commentService','error$','call','[OfflineState]:\x20received\x20acknowledgement.','unit-cache-','_getAPIPrefixPath','onTransformRemoteChangesetByIMECache','object','/universer-api/user/session-ticket','put','_pendingSessions','_sheetTransformSelectionsService','forEach','1000085lQjvpb','x-univer-host','_onOffline','_socketMessageSubscription','packageName','\x20-\x20','USERS_ENTER','_remoteChangesetQueue','__Key__','values','CONFLICT','socketService','_members$','retryCount','_localCacheService','/universer-api/file/{fileID}/sign-url','/collaborator','/rev/','transformChangesets','_handlerCallback','close$','uploadFileServerUrl','_transformRemoteChangesetByStateCache','interceptor','backupOfflineData','univer-pro.collaboration-client.network-condition.service','_getSendChangesetTimeout','collabSubmitChangesetUrl','rev','/unit/','_scheduleCompleteTimestamp','_onRemoteChangeset','setCurrentUser','enableSingleActiveInstanceLock','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','not_collab','onRemoteRetry','dispose','fetching\x20missing\x20changesets\x20from\x20','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','[FetchMissState]','get','filter','_getSignURL','socketReady','listCollaborators','_createSession','_tryReconnect','_handleRemoteChangesets','push','onTransformSelections','missingChangesets','_disableEditing','38398xxtaJV','csShouldRetryEvent','LIVESHARE_REQUEST_HOST','localeService','_tryEnsureSocket','set','_entities','_state','memberID','liveShareNewHost','reduce','_instanceService','_config','createCollaborator','size','range','awaiting_with_pending','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isCompositionEnd','leaveEvent','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getFocusedUnit','OTHER_CLIENT_EDITING','_state$','_HTTPService','\x20to\x20','collaMsg','LIVESHARE_TERMINATE','attachment','some','change$','changesets','resend','onMissingChangesets','collabWebSocketUrl','LOCAL_CACHE_INTERVAL','/universer-api/comb','_getSocketChannel','univer-pro.collaboration-client.single-active-unit-service','unitType','_clearTimeoutTimer','loadUnitOfRevision','name','textRanges','post','_syncEditingCollabCursor','MUTATION','onMutationExecutedForCollab','CHANGESET_SHOULD_RETRY','replace','createInstance','SUCCUSS','includes','snapshot','UNISCRIPT_RUN','_networkConditionService','create','readAsDataURL','offline','reqId','roles','cmd','_sendingTimer','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','setShowComponents','_queuedRemoteChangesets','close','objects','base-ui.attachment-io.service','_undoStacks','message$','_scheduleCollaborationTimeoutTimer','unknown','1353177iyuXef','NEW_CHANGESETS','removeMember','_clearUndo','collaboration-client.config','PSEUDO_FETCH_MISSING_RESULT','disableLocalCache','setWaitCount','[CollaborationEntity]','parse','hasOwnProperty','_sender','getUnitId','PERMISSION_REJ','indexOf','_decreaseWaiting','UNIVER_DOC','status','_rescheduleHeartbeat','snapshotServerUrl','saveSheetBlock','entries','_injector','FETCH_MISS','fromCollab','ERROR_IMAGE','/fetchmissing?from=','capture','_createInitialState','sendChangesetTimeout','_initCloseConn','commentUpdateEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_updateState','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_listenToNetworkCondition','univer-pro.collaboration-client-adapter-service','sessionStatus','code','SUBMIT_CHANGESET_TIMEOUT','_isPermissionRej','sendHeartbeatTimer','collaboration_new_changeset','onRemoteRej','_collaborationUIEventService','COMPRESS_MUTATION_SEND','liveShareOperation','_init','dispose$','executeCommand','unitId','[CollaborationSession]','_transformAndApplyRemoteChangeset','catch','getInterceptPoints','ERROR_EXCEED_SIZE','c1Prime','&assign=','_telemetryInfo','_socketChannels','_startCollaboration','toString','getUploadOptions','getTime','_acknowledgeAwaitingIfReady','_initMergeInterceptor','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_sessions','/role','HEARTBEAT_TIMEOUT','_sessionChannels','text-x','endsWith','getActiveSheet','sessionStatus$','awaitingChangeset','[CollaborationUndoRedoService]','fetchThroughInterceptors','_showConflictNotification','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_registerDependencies','socket$','_clearScheduledTask','_removeRoom','_emitMembers','toggleOnline','_transformSelections','result','_updateLocalCache','_awaitingChangeset','onTransformIME','loadSlide','_localeService','permissionRejEvent','changeset','objectType','_transitionLocked','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','debug','encrypt','_status$','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','pauseCollaboration','_sessionStatus$','_collaborationPaused','fetchMiss','/object/','version','retryConnectingTimer','_clearLocalCache','_acknowledgedAwaitingRevision','_cfgEnableObjInherit','requireSession','_singleActiveUnitService','_startTelemetryCollaborationNewChangeset','createSocket','UNIVER_COLLABORATION_CLIENT_PLUGIN','?size=','_submitChangeset','_isEchoedAwaitingChangeset','100584IVWskT','_onCombEvent','ws://127.0.0.1:8000/universer-api/comb/connect','NO_OTHER_CLIENTS_EDITING','unitInfo$','\x0aAfter:\x20','encodeURIComponent','c2Prime','localUnitId','_docStateChangeManagerService','synced','waitForRoom$','_httpService','_roomCreated$','init','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','state$','socket\x20close','data','number','_onRecvEvent','toggleOffline','_identity','socketMessageSubscription','_getDownloadEndpointURL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','transformMutationsWithChangeset','stringify','_initRequestHeader','RECV','addImageSourceCache','[UniverCollaborationClientPlugin]','incrementRevOfUnit','routeKey','revision','getUnitOnRev','PERMISSION_DENIED','Failed\x20to\x20update\x20permission\x20point','fetch_missing','apply','min','_configService','getCurrentRevOfUnit','4TnBodK','add','_transformUndoredo','COMMENT_UPDATE','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','failed\x20to\x20apply\x20missed\x20changesets!','href','session.room-permission-denied','_onLocalMutation','addHandlerCallback','accept','_getCurrentRevision','_permissionService','list','type','updateMember','RETRY_CONNECTING_MAX_COUNT','_resendTimer','transformSelections','send','LEAVE','body','_acknowledgeAwaiting','HEARTBEAT','stopTime','getCollabEntity','getRoom','_maxTotalRetryTimeout','onRemoteChangeset','decorate','listRoles','reject','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getUnitType','_socket','getTypeOfUnitDisposed$','updatePermissionPoint','IDLE','getCurrentUser','closeSession','_checkMissing','getImage','getMember','_unitLoaded$','enableCollaboration','USERS_LEAVE','slice','_clearRetryConnectingTimer','url','conflict','getSheetId','/block/','editing\x20status\x20changed\x20to','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','blockRanges','onMissedChangesetFetched','downloadEndpointUrl','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','objectID','OFFLINE','SOCKET_FAILED','JOINING','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_resolveSessionIdentity','updateCollaborator','CHANGESET_ACK','append','endpoint','_hasSessionsForEndpoint','getDeserializedSheetBlock','telemetry\x20info\x20is\x20not\x20initialized','session.room-not-exists','csAckEvent','_toggleOffline'];_0x36d7=function(){return _0x5059f8;};return _0x36d7();}Bn=V([B(0x0,_0x1f37e4),B(0x1,_0xe230cc(_0x32d10d)),B(0x2,_0xe230cc(_0x9a407d))],Bn);let Vn=class extends _0x1c670c{constructor(_0xf145b9,_0x35395c){const _0x2ffe5b=_0x3c69ef;super(),this['_HTTPService']=_0xf145b9,this[_0x2ffe5b(0x305)]=_0x35395c,R(this,_0x2ffe5b(0x2d3),!0x1),this[_0x2ffe5b(0x2a5)]();}[_0x3c69ef(0x2a5)](){const _0x45ba3e=_0x3c69ef;let _0x4a7148=this;this[_0x45ba3e(0x3b8)](this['_HTTPService'][_0x45ba3e(0x3a5)]({'priority':0x3e7,'interceptor':_0x392035({'isMatch'(_0x226e40){const _0x117a73=_0x45ba3e;var _0x4d0b0b;if(_0x226e40['method']==='POST'&&(_0x4d0b0b=_0x226e40[_0x117a73(0x1c5)])!=null&&_0x4d0b0b['body']){let {objectID:_0x28706b,objectType:_0xa70cc1}=_0x226e40[_0x117a73(0x1c5)][_0x117a73(0x31c)]||{};if(!_0x28706b||_0xa70cc1===void 0x0)return!0x1;let _0x5636f1=_0x4a7148[_0x117a73(0x1de)]()+'/'+_0xa70cc1+_0x117a73(0x2ce)+_0x28706b+_0x117a73(0x412);if(_0x226e40[_0x117a73(0x337)]===_0x5636f1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5c7f76){const _0x1f18ba=_0x45ba3e;var _0x3e50ff;return(_0x3e50ff=_0x5c7f76[_0x1f18ba(0x1c5)])==null?void 0x0:_0x3e50ff[_0x1f18ba(0x31c)];},'mergeParamsToRequest'(_0x2b4340,_0x5ef54b){const _0x424837=_0x45ba3e;let _0x54b521=_0x4a7148[_0x424837(0x1de)]()+_0x424837(0x359),_0x4a83f6=_0x2b4340[_0x424837(0x225)]((_0x33c370,_0x8fd0c4)=>{const _0x18666e=_0x424837;let {unitID:_0x1ad1ea,objectID:_0x585453,objectType:_0x2afa9b,actions:_0x3e6e86}=_0x8fd0c4;return _0x33c370[_0x1ad1ea]||(_0x33c370[_0x1ad1ea]={}),_0x33c370[_0x1ad1ea][_0x585453]||(_0x33c370[_0x1ad1ea][_0x585453]={'objectID':_0x585453,'objectType':_0x2afa9b,'actions':[]}),_0x33c370[_0x1ad1ea][_0x585453][_0x18666e(0x3ad)][_0x18666e(0x217)](..._0x3e6e86),_0x33c370;},{}),_0x1297df=[];for(let _0xc841dc in _0x4a83f6)for(let _0x2f8925 in _0x4a83f6[_0xc841dc]){let {actions:_0x184fa4,objectType:_0x306127}=_0x4a83f6[_0xc841dc][_0x2f8925],_0x4bebd5=[...new Set(_0x184fa4)];_0x1297df[_0x424837(0x217)]({'unitID':_0xc841dc,'objectID':_0x2f8925,'objectType':_0x306127,'actions':_0x4bebd5});}return new _0x200900(_0x424837(0x39b),_0x54b521,{'headers':_0x5ef54b[_0x424837(0x386)],'withCredentials':_0x5ef54b['withCredentials'],'responseType':_0x5ef54b['responseType'],'body':{'requests':_0x1297df}});}},{'distributeResult'(_0x375e76,_0x9df3b6){const _0x2189c7=_0x45ba3e;let {objectActions:_0x19cd7f}=_0x375e76;return _0x9df3b6[_0x2189c7(0x35d)](_0x155364=>{const _0x4b807b=_0x2189c7;let {unitID:_0x386926,objectID:_0x43687d,actions:_0x3fd73d}=_0x155364,_0x4449c8=_0x19cd7f[_0x4b807b(0x3ca)](_0x1452b4=>_0x1452b4[_0x4b807b(0x40c)]===_0x386926&&_0x1452b4[_0x4b807b(0x341)]===_0x43687d);return{'config':_0x155364,'result':{'actions':_0x3fd73d[_0x4b807b(0x35d)](_0x39e168=>_0x4449c8==null?void 0x0:_0x4449c8[_0x4b807b(0x3ad)]['find'](_0x3a0f06=>_0x3a0f06['action']===_0x39e168))[_0x4b807b(0x210)](_0x37251f=>!!_0x37251f),'error':_0x375e76['error']}};});}})}));}[_0x3c69ef(0x1de)](){const _0x2c3c47=_0x3c69ef;var _0x2de2b2;let _0x70afc3=this[_0x2c3c47(0x305)]['getConfig'](L);return(_0x2de2b2=_0x70afc3==null?void 0x0:_0x70afc3['authzUrl'])==null?'/universer-api/authz':_0x2de2b2;}async[_0x3c69ef(0x253)](_0x39fe4b){const _0xc5b793=_0x3c69ef;let _0x5dcd33=this[_0xc5b793(0x1de)]()+'/'+_0x39fe4b['objectType']+'/object';return(await this[_0xc5b793(0x233)][_0xc5b793(0x247)](_0x5dcd33,{'body':_0x39fe4b}))[_0xc5b793(0x31c)][_0xc5b793(0x341)]||'';}async[_0x3c69ef(0x314)](_0x3c7549){const _0x13301f=_0x3c69ef;let _0x3c6f63=this[_0x13301f(0x1de)]()+'/-/object/list';return(await this[_0x13301f(0x233)][_0x13301f(0x247)](_0x3c6f63,{'body':_0x3c7549}))['body'][_0x13301f(0x25e)];}async[_0x3c69ef(0x189)](_0x50dcd3){const _0x20393d=_0x3c69ef;var _0x333f2f;let _0x3fceee=this['_getAPIPrefixPath']()+'/'+_0x50dcd3[_0x20393d(0x2c3)]+'/object/'+_0x50dcd3[_0x20393d(0x341)],_0x4ea9b0=await this['_HTTPService'][_0x20393d(0x1e2)](_0x3fceee,{'body':_0x50dcd3});if((_0x4ea9b0==null||(_0x333f2f=_0x4ea9b0[_0x20393d(0x31c)])==null||(_0x333f2f=_0x333f2f[_0x20393d(0x199)])==null?void 0x0:_0x333f2f['code'])!==0x1)throw Error(_0x20393d(0x301));}async[_0x3c69ef(0x36f)](_0x177b41){const _0x5adbc7=_0x3c69ef;let _0x116b3f=this['_getAPIPrefixPath']()+'/'+_0x177b41['objectType']+_0x5adbc7(0x2ce)+_0x177b41[_0x5adbc7(0x341)]+_0x5adbc7(0x412);return(await this[_0x5adbc7(0x233)][_0x5adbc7(0x247)](_0x116b3f,{'body':_0x177b41}))['body'][_0x5adbc7(0x3ad)];}async[_0x3c69ef(0x1ab)](_0x487f93){const _0x398b30=_0x3c69ef;let _0x290746=this[_0x398b30(0x1de)]()+_0x398b30(0x359);return(await this['_HTTPService']['post'](_0x290746,{'body':{'requests':_0x487f93}}))[_0x398b30(0x31c)][_0x398b30(0x3b9)];}async[_0x3c69ef(0x325)](_0x36e0b0){const _0x457bef=_0x3c69ef;let _0x417b94=this[_0x457bef(0x1de)]()+'/'+_0x36e0b0['objectType']+_0x457bef(0x2a8),_0x34d97f=await this[_0x457bef(0x233)][_0x457bef(0x247)](_0x417b94,{'body':_0x36e0b0});return{'roles':_0x34d97f['body'][_0x457bef(0x257)],'actions':_0x34d97f['body'][_0x457bef(0x3ad)]};}async['deleteCollaborator'](_0x4f0a80){const _0x6a8231=_0x3c69ef;let _0x1b2e23=this[_0x6a8231(0x1de)]()+_0x6a8231(0x1f6);await this[_0x6a8231(0x233)][_0x6a8231(0x393)](_0x1b2e23,{'params':{'collaboratorID':_0x4f0a80['collaboratorID'],'objectID':_0x4f0a80[_0x6a8231(0x341)],'unitID':_0x4f0a80['unitID']}});}async[_0x3c69ef(0x347)](_0x1cc04e){const _0x6400d5=_0x3c69ef;let _0x219360=this['_getAPIPrefixPath']()+_0x6400d5(0x1f6);await this['_HTTPService'][_0x6400d5(0x41b)](_0x219360,{'body':_0x1cc04e});}async[_0x3c69ef(0x228)](_0x2efe19){const _0x12f089=_0x3c69ef;let _0x446cd1=this[_0x12f089(0x1de)]()+'/collaborator';await this[_0x12f089(0x233)][_0x12f089(0x247)](_0x446cd1,{'body':_0x2efe19});}async[_0x3c69ef(0x213)](_0x4aa67c){const _0x4d96a4=_0x3c69ef;var _0x3b0a1f;let _0x1be069=this[_0x4d96a4(0x1de)]()+_0x4d96a4(0x1f6),_0x5912d3=await this[_0x4d96a4(0x233)][_0x4d96a4(0x20f)](_0x1be069,{'params':{'objectID':_0x4aa67c[_0x4d96a4(0x341)],'unitID':_0x4aa67c['unitID']}});return this[_0x4d96a4(0x41e)]((_0x3b0a1f=_0x5912d3[_0x4d96a4(0x31c)]['cfgEnableObjInherit'])==null?!0x1:_0x3b0a1f),_0x5912d3['body'][_0x4d96a4(0x196)];}async[_0x3c69ef(0x1c0)](_0x33f5b2){const _0x358ad1=_0x3c69ef;let _0x212619=this[_0x358ad1(0x1de)]()+'/collaborator';await this['_HTTPService'][_0x358ad1(0x1e2)](_0x212619,{'body':_0x33f5b2});}['setCfgEnableObjInherit'](_0x2e30fa){const _0x2b2b7b=_0x3c69ef;this[_0x2b2b7b(0x2d3)]=_0x2e30fa;}[_0x3c69ef(0x358)](){const _0x15cec4=_0x3c69ef;return this[_0x15cec4(0x2d3)];}};Vn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0xe230cc(_0x1f37e4))],Vn);function Hn(_0xb1eece){const _0x1e91c7=_0x3c69ef;let _0x38e6d4=atob(_0xb1eece),_0x5b48e6=new Uint8Array(_0x38e6d4[_0x1e91c7(0x3a1)]);for(let _0x170999=0x0;_0x170999<_0x38e6d4[_0x1e91c7(0x3a1)];_0x170999++)_0x5b48e6[_0x170999]=_0x38e6d4[_0x1e91c7(0x3b2)](_0x170999);return _0x5b48e6;}function Un(_0x5ddf73){const _0x1c06d7=_0x3c69ef;let _0x11f1a3='';for(let _0x549bbc=0x0;_0x549bbc<_0x5ddf73['length'];_0x549bbc++)_0x11f1a3+=String[_0x1c06d7(0x3d3)](_0x5ddf73[_0x549bbc]);return btoa(_0x11f1a3);}function Wn(_0x4d6ad1,_0x47490e){const _0x376b30=_0x3c69ef;let _0x834fad=Hn(_0x47490e),_0x24d96c=_0x3911d9(0x10);return Un(_0x1ecd97(_0x24d96c,_0x89c1d1(_0x834fad,_0x24d96c)[_0x376b30(0x2c7)](_0x3329bb(_0x4d6ad1))));}function Gn(){const _0x39baf1=_0x3c69ef;let _0x2601df=_0x1c22a4()[_0x39baf1(0x1ee)];if(typeof window<'u'&&window[_0x39baf1(0x1b4)]!==void 0x0&&_0x2601df){let _0x3eeb62={'time':Math[_0x39baf1(0x40d)](Date[_0x39baf1(0x1ca)]()/0x3e8),'domain':location['hostname']};return Wn(JSON[_0x39baf1(0x2f7)](_0x3eeb62),_0x2601df);}}let Kn=class{constructor(_0x407fe7){const _0x4c08ac=_0x3c69ef;this[_0x4c08ac(0x2e8)]=_0x407fe7,this[_0x4c08ac(0x2f8)]();}['_initRequestHeader'](){const _0x42fe34=_0x3c69ef;this[_0x42fe34(0x2e8)][_0x42fe34(0x3a5)]({'interceptor':(_0x349100,_0x2dba32)=>{const _0x1b43e6=_0x42fe34;let _0x287c99=Gn();return _0x287c99&&_0x349100[_0x1b43e6(0x386)][_0x1b43e6(0x220)](_0x1b43e6(0x1e7),_0x287c99),_0x2dba32(_0x349100);}});}};Kn=V([B(0x0,_0xe230cc(_0x32d10d))],Kn);let qn=class extends _0x50b38b{constructor(_0x3a7507,_0x296463,_0x1446e4){const _0x35beea=_0x3c69ef;super(),this[_0x35beea(0x3f4)]=_0x3a7507,this['_snapshotService']=_0x296463,this['_localCacheService']=_0x1446e4,R(this,_0x35beea(0x382),new _0x296086(null)),R(this,_0x35beea(0x332),new _0x59eece()),R(this,_0x35beea(0x2e0),this['_unitInfo$']['asObservable']()),R(this,'unitLoaded$',this[_0x35beea(0x332)]['asObservable']());}['dispose'](){const _0x24f104=_0x3c69ef;super[_0x24f104(0x20b)](),this['_unitLoaded$'][_0x24f104(0x3aa)](),this[_0x24f104(0x382)][_0x24f104(0x3aa)]();}async[_0x3c69ef(0x244)](_0x5a7247,_0x3061dc,_0x38c803){const _0xfd0031=_0x3c69ef;this[_0xfd0031(0x382)][_0xfd0031(0x19a)]({'unitId':_0x5a7247,'type':_0x3061dc});let _0x39a964=null;switch(_0x3061dc){case _0x9a8e4e['UNIVER_SHEET']:_0x39a964=await this[_0xfd0031(0x405)]['loadSheet'](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x274)]:_0x39a964=await this[_0xfd0031(0x405)][_0xfd0031(0x3a7)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x3c8)]:_0x39a964=await this['_snapshotService'][_0xfd0031(0x2bf)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x360)]:_0x39a964=await this[_0xfd0031(0x405)][_0xfd0031(0x3ea)](_0x5a7247,_0x38c803);break;case _0x9a8e4e[_0xfd0031(0x3b3)]:_0x39a964=await this['_snapshotService']['loadBase'](_0x5a7247,_0x38c803);break;default:this['_logService'][_0xfd0031(0x199)]('[DataLoaderService]',_0xfd0031(0x327));break;}return _0x39a964&&this['_unitLoaded$'][_0xfd0031(0x19a)](_0x39a964),_0x39a964;}async['loadUnit'](_0x12fa3d,_0x3898b2,_0x585121){const _0x5164a9=_0x3c69ef;var _0x5edb03;this[_0x5164a9(0x382)][_0x5164a9(0x19a)]({'unitId':_0x12fa3d,'type':_0x3898b2,'subUnitId':_0x585121});let _0x3cfd91=0x0,_0x51bd38=await((_0x5edb03=this['_localCacheService'])==null?void 0x0:_0x5edb03['loadOfflineData'](_0x12fa3d));return _0x51bd38&&(_0x51bd38[_0x5164a9(0x2af)]||_0x51bd38[_0x5164a9(0x188)][_0x5164a9(0x3a1)]!==0x0)&&(_0x3cfd91=_0x51bd38[_0x5164a9(0x202)]),_0x3cfd91===0x0&&this['_logService'][_0x5164a9(0x2c6)](_0x5164a9(0x1c2),_0x5164a9(0x284)),this[_0x5164a9(0x244)](_0x12fa3d,_0x3898b2,_0x3cfd91);}};qn=V([B(0x0,_0x5c3e7f),B(0x1,_0xe230cc(_0x45d3b5)),B(0x2,_0x2b3cfa(U))],qn);let Jn=class{constructor(_0x5e7a27,_0x1ecf2e,_0x16b8fc){const _0x5de4c0=_0x3c69ef;this['_httpService']=_0x5e7a27,this[_0x5de4c0(0x305)]=_0x1ecf2e,this[_0x5de4c0(0x1ba)]=_0x16b8fc,R(this,'_waitCount',0x0),R(this,_0x5de4c0(0x40f),new _0x59eece()),R(this,_0x5de4c0(0x239),this[_0x5de4c0(0x40f)]),R(this,_0x5de4c0(0x1cb),new Map());}[_0x3c69ef(0x26b)](_0x50bd40){const _0x1372f3=_0x3c69ef;this[_0x1372f3(0x41a)]=_0x50bd40,this[_0x1372f3(0x40f)][_0x1372f3(0x19a)](_0x50bd40);}['getImageSourceCache'](_0x506a59,_0x3ab86b){const _0x153a76=_0x3c69ef;if(_0x3ab86b===_0xb1e59a['BASE64']){let _0xb36e13=new Image();return _0xb36e13[_0x153a76(0x3f8)]=_0x506a59,_0xb36e13;}return this[_0x153a76(0x1cb)]['get'](_0x506a59);}[_0x3c69ef(0x2fa)](_0x41fbff,_0x16bd38,_0x16867a){const _0x2f0481=_0x3c69ef;_0x16bd38===_0xb1e59a[_0x2f0481(0x3a8)]||_0x16867a==null||this[_0x2f0481(0x1cb)][_0x2f0481(0x220)](_0x41fbff,_0x16867a);}async[_0x3c69ef(0x330)](_0x129e8c){const _0x24f92c=_0x3c69ef;try{let _0xc08f69=this[_0x24f92c(0x3c5)](this[_0x24f92c(0x211)](),''+_0x129e8c),_0x32eb7c=(await this[_0x24f92c(0x2e8)]['get'](_0xc08f69))['body'];if(_0x32eb7c[_0x24f92c(0x199)]&&_0x32eb7c[_0x24f92c(0x199)]['code']===_0x291ad4['OK']){let _0x25f46c=_0x6dad3d(_0x32eb7c[_0x24f92c(0x337)],this[_0x24f92c(0x2f4)]());return Promise[_0x24f92c(0x3da)](_0x25f46c);}return Promise[_0x24f92c(0x326)](_0x32eb7c[_0x24f92c(0x199)]);}catch(_0x532e64){return Promise['reject'](_0x532e64);}}async[_0x3c69ef(0x1b3)](_0x567db0){const _0x14c4b7=_0x3c69ef;let _0x2f95d5='';if(!_0x43c969[_0x14c4b7(0x24f)](_0x567db0[_0x14c4b7(0x315)]))return this[_0x14c4b7(0x273)](),Promise['reject'](Error(_0x320d1a[_0x14c4b7(0x1c8)]));if(_0x567db0['size']>_0x3e4b91())return this[_0x14c4b7(0x273)](),Promise['reject'](Error(_0x320d1a[_0x14c4b7(0x29b)]));try{let _0x1f1452=new FormData();_0x1f1452[_0x14c4b7(0x349)]('file',_0x567db0);let _0x563536=this[_0x14c4b7(0x1ba)][_0x14c4b7(0x230)](),_0x5e0627=_0x563536==null?void 0x0:_0x563536[_0x14c4b7(0x270)]();if(!_0x5e0627)throw Error('unitId\x20is\x20not\x20found');let _0x54be06=this[_0x14c4b7(0x35f)]()+_0x14c4b7(0x2d9)+_0x567db0[_0x14c4b7(0x229)][_0x14c4b7(0x2a1)]()+'&source='+_0x316b67[_0x14c4b7(0x38e)]+'&assign='+encodeURIComponent(_0x5e0627),_0x49cf52={'body':_0x1f1452},_0x2d0230=(await this[_0x14c4b7(0x2e8)][_0x14c4b7(0x247)](_0x54be06,_0x49cf52))[_0x14c4b7(0x31c)];if(typeof _0x2d0230[_0x14c4b7(0x418)]!=_0x14c4b7(0x3e7))return this[_0x14c4b7(0x273)](),Promise[_0x14c4b7(0x326)](Error(_0x320d1a[_0x14c4b7(0x27d)]));_0x2f95d5=_0x2d0230[_0x14c4b7(0x418)];}catch{return this[_0x14c4b7(0x273)](),Promise[_0x14c4b7(0x326)](Error(_0x320d1a['ERROR_IMAGE']));}return new Promise((_0x33a029,_0x498b14)=>{const _0x400365=_0x14c4b7;let _0x288ed8=new FileReader();_0x288ed8[_0x400365(0x254)](_0x567db0),_0x288ed8[_0x400365(0x355)]=_0x1df57d=>{const _0x388573=_0x400365;var _0x531b2f;let _0x374f60=(_0x531b2f=_0x1df57d[_0x388573(0x3d8)])==null?void 0x0:_0x531b2f[_0x388573(0x2bb)];if(_0x374f60==null){this['_decreaseWaiting'](),_0x498b14(Error(_0x320d1a[_0x388573(0x27d)]));return;}_0x33a029({'imageId':_0x5c124c(0x6),'imageSourceType':_0xb1e59a[_0x388573(0x3ba)],'source':_0x2f95d5,'base64Cache':_0x374f60,'status':_0x320d1a[_0x388573(0x24e)]}),this[_0x388573(0x273)]();};});}[_0x3c69ef(0x35f)](){const _0x867f89=_0x3c69ef;var _0x2d4ade;let _0x37fdcd=this[_0x867f89(0x305)][_0x867f89(0x353)](L);return(_0x2d4ade=_0x37fdcd==null?void 0x0:_0x37fdcd[_0x867f89(0x1fb)])==null?_0x867f89(0x390):_0x2d4ade;}[_0x3c69ef(0x211)](){const _0x1e7eb3=_0x3c69ef;var _0x16f271;let _0x4cf3a6=this[_0x1e7eb3(0x305)][_0x1e7eb3(0x353)](L);return(_0x16f271=_0x4cf3a6==null?void 0x0:_0x4cf3a6['signUrlServerUrl'])==null?_0x1e7eb3(0x1f5):_0x16f271;}['_getDownloadEndpointURL'](){const _0x54a8f1=_0x3c69ef;var _0x3e0715;let _0x115a51=this[_0x54a8f1(0x305)][_0x54a8f1(0x353)](L);return(_0x3e0715=_0x115a51==null?void 0x0:_0x115a51[_0x54a8f1(0x33f)])==null?location['origin']:_0x3e0715;}[_0x3c69ef(0x3c5)](_0x3773e5,_0x2a5c7b){const _0x231ae9=_0x3c69ef;return _0x3773e5[_0x231ae9(0x24c)]('{fileID}',_0x2a5c7b);}['_decreaseWaiting'](){const _0x42e3ab=_0x3c69ef;--this[_0x42e3ab(0x41a)],this[_0x42e3ab(0x40f)][_0x42e3ab(0x19a)](this[_0x42e3ab(0x41a)]);}};Jn=V([B(0x0,_0xe230cc(_0x32d10d)),B(0x1,_0x1f37e4),B(0x2,_0xe230cc(_0x344fe1))],Jn);let Yn=class{constructor(_0x5284df,_0x106e52){const _0x44951c=_0x3c69ef;this[_0x44951c(0x305)]=_0x5284df,this['_HTTPService']=_0x106e52;}['_getAPIPrefixPath'](){const _0x4e8015=_0x3c69ef;var _0x1be638;let _0x8bcf85=this[_0x4e8015(0x305)][_0x4e8015(0x353)](L);return(_0x1be638=_0x8bcf85==null?void 0x0:_0x8bcf85[_0x4e8015(0x398)])==null?_0x4e8015(0x1d0):_0x1be638;}async[_0x3c69ef(0x314)](_0x3f9b2f){const _0xe59c12=_0x3c69ef;let _0x1de5e2=this[_0xe59c12(0x1de)]()+'/collaborator';return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0xe59c12(0x20f)](_0x1de5e2,{'params':{'objectID':_0x3f9b2f[_0xe59c12(0x296)],'unitID':_0x3f9b2f[_0xe59c12(0x296)]}}))[_0xe59c12(0x31c)][_0xe59c12(0x196)]['map'](_0x165193=>({'objectId':_0x165193['id'],'name':_0x165193['subject'][_0xe59c12(0x245)],'metadata':{'icon':_0x165193[_0xe59c12(0x35c)]['avatar']},'label':_0x165193['subject'][_0xe59c12(0x245)],'objectType':_0x3a7b55[_0xe59c12(0x409)]})),'metadata':{},'type':_0x3a7b55[_0xe59c12(0x409)]}]};}};Yn=V([B(0x0,_0xe230cc(_0x1f37e4)),B(0x1,_0xe230cc(_0x32d10d))],Yn);let Xn=class extends _0x50b38b{constructor(_0x4479e8,_0xe02e7d,_0x4c2bb1,_0x2d40b2,_0x15bf13){const _0x2cae6a=_0x3c69ef;super(),this['_injector']=_0x4479e8,this[_0x2cae6a(0x1ba)]=_0xe02e7d,this[_0x2cae6a(0x313)]=_0x4c2bb1,this[_0x2cae6a(0x195)]=_0x2d40b2,this['_collaborationUIEventService']=_0x15bf13,this['_initUnitPermissionChange'](),this[_0x2cae6a(0x282)]();}['_initCloseConn'](){const _0x2ba269=_0x3c69ef;let _0x3fc325=async _0x5269d9=>{const _0x3f1118=_0x43c7;(await this[_0x3f1118(0x195)][_0x3f1118(0x2d4)](_0x5269d9))[_0x3f1118(0x1b7)][_0x3f1118(0x380)](_0x26acea(_0x5b2635=>_0x5b2635[_0x3f1118(0x3f0)]===_0x43102b['SHOULD_CLOSE_CONN']),_0x241cda(this[_0x3f1118(0x294)]))['subscribe'](_0x4fc4b2=>{const _0x23a085=_0x3f1118;let {reason:_0x5257d6}=_0x4fc4b2[_0x23a085(0x2ee)];this[_0x23a085(0x290)][_0x23a085(0x377)]({'id':_0x23a085(0x3bd),'data':_0x5257d6}),this[_0x23a085(0x313)][_0x23a085(0x32b)](new _0x1413a3(_0x5269d9)['id'],!0x1),this[_0x23a085(0x195)][_0x23a085(0x32e)](_0x5269d9);});};_0x4802bd(this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x1a4)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x274)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x360)]),this[_0x2ba269(0x1ba)][_0x2ba269(0x395)](_0x9a8e4e[_0x2ba269(0x3b3)]))[_0x2ba269(0x380)](_0xf99eb3(_0x51b0af=>_0x51b0af[_0x2ba269(0x3d6)][_0x2ba269(0x270)]()),_0x26acea(_0x4277b6=>!_0x5bdd45(_0x4277b6)),_0x241cda(this[_0x2ba269(0x294)]))[_0x2ba269(0x420)](_0x1c6ceb=>{_0x3fc325(_0x1c6ceb);});}[_0x3c69ef(0x1d5)](){const _0x51de51=_0x3c69ef;let _0x398920=async _0x17ea12=>{const _0x51ad69=_0x43c7;let _0x58f3a0=await this['_collaborationSessionService'][_0x51ad69(0x2d4)](_0x17ea12),_0x4ee41c=this[_0x51ad69(0x27a)]['get'](_0x2be84a);_0x58f3a0['event$'][_0x51ad69(0x380)](_0x26acea(_0x512fac=>_0x512fac['eventID']===_0x43102b[_0x51ad69(0x365)]),_0x241cda(this['dispose$']))[_0x51ad69(0x420)](_0x66912a=>{const _0x3eb264=_0x51ad69;let {objectId:_0xca0675}=_0x66912a[_0x3eb264(0x2ee)];_0xca0675===_0x17ea12?_0x4ee41c[_0x3eb264(0x3d0)](_0x17ea12):_0x4ee41c[_0x3eb264(0x3a2)](_0x17ea12,_0xca0675);});};_0x4802bd(this['_univerInstanceService'][_0x51de51(0x395)](_0x9a8e4e[_0x51de51(0x1a4)]))[_0x51de51(0x380)](_0xf99eb3(_0x415e02=>_0x415e02[_0x51de51(0x3d6)][_0x51de51(0x270)]()),_0x26acea(_0x517d5d=>!_0x5bdd45(_0x517d5d)),_0x241cda(this[_0x51de51(0x294)]))[_0x51de51(0x420)](_0x7470b6=>{_0x398920(_0x7470b6);});}};Xn=V([B(0x0,_0xe230cc(_0x31a56e)),B(0x1,_0x344fe1),B(0x2,_0x36da45),B(0x3,_0xe230cc(jn)),B(0x4,_0xe230cc(z))],Xn);let Zn=class{constructor(_0x29c7d8,_0x50f01b){const _0x48b6cc=_0x3c69ef;this[_0x48b6cc(0x305)]=_0x29c7d8,this[_0x48b6cc(0x2e8)]=_0x50f01b;}async[_0x3c69ef(0x2ff)](_0x4e5c1f,_0x4fefda){const _0xb5d4d0=_0x3c69ef;var _0x2c783a;let {unitID:_0x57e7e9,type:_0x4941a1,revision:_0x1c6f27=0x0}=_0x4fefda,_0x621f2f=this[_0xb5d4d0(0x18d)]()+'/'+_0x4941a1+_0xb5d4d0(0x203)+_0x57e7e9+_0xb5d4d0(0x1f7)+_0x1c6f27,_0x583c52=(await this[_0xb5d4d0(0x2e8)][_0xb5d4d0(0x20f)](_0x621f2f))[_0xb5d4d0(0x31c)],_0x3cc9cb=(_0x2c783a=_0x583c52[_0xb5d4d0(0x250)])==null?void 0x0:_0x2c783a[_0xb5d4d0(0x3d1)];if(_0x3cc9cb){let _0x2e8c2c=_0x3cc9cb==null?void 0x0:_0x3cc9cb[_0xb5d4d0(0x1a8)];_0x3cc9cb[_0xb5d4d0(0x1a8)]=_0x9afde9['encode'](_0x14b14d(_0x2e8c2c)),Object[_0xb5d4d0(0x279)](_0x3cc9cb[_0xb5d4d0(0x37c)])['forEach'](([,_0x4baa2f])=>{const _0x3d9dbf=_0xb5d4d0;let _0x1bf15e=_0x4baa2f[_0x3d9dbf(0x1a8)];_0x4baa2f[_0x3d9dbf(0x1a8)]=_0x9afde9[_0x3d9dbf(0x1ae)](_0x14b14d(_0x1bf15e));});}return _0x583c52;}async[_0x3c69ef(0x406)](_0x2fbacc,_0x4d29f9){const _0x1e4834=_0x3c69ef;let {unitID:_0x7b0bbd,type:_0x2497e8,blockID:_0xb385d}=_0x4d29f9,_0x4cbe18=this['_getAPIPrefix']()+'/'+_0x2497e8+_0x1e4834(0x203)+_0x7b0bbd+_0x1e4834(0x33a)+_0xb385d;return(await this['_httpService'][_0x1e4834(0x20f)](_0x4cbe18))[_0x1e4834(0x31c)];}async[_0x3c69ef(0x34c)](_0xcdf50,_0x5d7f74){const _0x3a88c7=_0x3c69ef;let {unitID:_0x55349,type:_0xcbf097,blockID:_0x58ae78}=_0x5d7f74,_0x55fcf4=this[_0x3a88c7(0x410)]()+'/block/'+_0xcbf097+_0x3a88c7(0x203)+_0x55349+_0x3a88c7(0x33a)+_0x58ae78;return(await this['_httpService'][_0x3a88c7(0x20f)](_0x55fcf4))[_0x3a88c7(0x31c)];}async['fetchMissingChangesets'](_0x12e4ed,_0x4d05f3){const _0x498d4f=_0x3c69ef;let {unitID:_0x5469fb,type:_0x123905,from:_0x3d4e94,to:_0x8eed3b}=_0x4d05f3,_0x4f8023=this[_0x498d4f(0x410)]()+'/'+_0x123905+'/unit/'+_0x5469fb+_0x498d4f(0x27e)+_0x3d4e94+_0x498d4f(0x3b7)+_0x8eed3b;return(await this[_0x498d4f(0x2e8)]['get'](_0x4f8023))[_0x498d4f(0x31c)];}['getSnapshotAPIPath'](){const _0x579e2f=_0x3c69ef;var _0x3da506;return(_0x3da506=this[_0x579e2f(0x305)][_0x579e2f(0x353)]('SNAPSHOT_URL_KEY'))==null?this[_0x579e2f(0x410)]():_0x3da506;}[_0x3c69ef(0x410)](){const _0x4ab717=_0x3c69ef;var _0x1b35dd;let _0x4d8c39=this[_0x4ab717(0x305)][_0x4ab717(0x353)](L);return(_0x1b35dd=_0x4d8c39==null?void 0x0:_0x4d8c39[_0x4ab717(0x277)])==null?'/universer-api/snapshot':_0x1b35dd;}async['getResourcesRequest'](_0x54509b,_0x1f8f2f){const _0x1dd038=_0x3c69ef;let _0x232b18=_0x1dd038(0x381)+_0x1f8f2f[_0x1dd038(0x315)]+_0x1dd038(0x203)+_0x1f8f2f['unitID']+_0x1dd038(0x40a);return(await this[_0x1dd038(0x2e8)]['get'](_0x232b18,{'params':{'resourceId':JSON['stringify'](_0x1f8f2f[_0x1dd038(0x375)])}}))[_0x1dd038(0x31c)];}[_0x3c69ef(0x3e0)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['updateSnapshot'](){const _0x48bd95=_0x3c69ef;throw Error(_0x48bd95(0x37b));}[_0x3c69ef(0x278)](){const _0x4aa23e=_0x3c69ef;throw Error(_0x4aa23e(0x37b));}[_0x3c69ef(0x1a1)](){const _0x26f929=_0x3c69ef;throw Error(_0x26f929(0x37b));}['copyFileMeta'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x204201=_0x3c69ef;throw Error(_0x204201(0x37b));}};Zn=V([B(0x0,_0x1f37e4),B(0x1,_0xe230cc(_0x32d10d))],Zn);let Qn=class extends _0x1faad3{constructor(_0x1c0da9,_0x3e0541,_0x55064,_0x11be9a,_0x36897a){const _0x556ce6=_0x3c69ef;super(_0x1c0da9,_0x3e0541,_0x55064),this['_transformService']=_0x11be9a,this[_0x556ce6(0x3f4)]=_0x36897a;}['transformUndoRedo'](_0x19c1b7,_0x4cebb6){const _0x444e21=_0x3c69ef;let _0x416bdd=this[_0x444e21(0x372)](_0x19c1b7);if(_0x416bdd)try{let _0x10af39=this['_transformStack'](_0x416bdd,_0x4cebb6);this[_0x444e21(0x18a)](_0x19c1b7,_0x10af39);}catch(_0xede247){this[_0x444e21(0x3f4)]['error'](_0x444e21(0x2b0),_0xede247),this['_clearUndo'](_0x19c1b7);}let _0x4f2962=this[_0x444e21(0x1c4)](_0x19c1b7);if(_0x4f2962)try{let _0x1f0b8b=this[_0x444e21(0x3f3)](_0x4f2962,_0x4cebb6);this['_substituteRedoStack'](_0x19c1b7,_0x1f0b8b);}catch(_0x38c8f0){this[_0x444e21(0x3f4)][_0x444e21(0x199)](_0x38c8f0),this[_0x444e21(0x3c1)](_0x19c1b7);}}[_0x3c69ef(0x267)](_0x354219){const _0x37271b=_0x3c69ef;let _0x5af69f=this[_0x37271b(0x372)](_0x354219);_0x5af69f&&(_0x5af69f[_0x37271b(0x3a1)]=0x0,this[_0x37271b(0x39e)]());}[_0x3c69ef(0x3c1)](_0xa4566e){const _0x10158d=_0x3c69ef;let _0xb22c2c=this[_0x10158d(0x1c4)](_0xa4566e);_0xb22c2c&&(_0xb22c2c[_0x10158d(0x3a1)]=0x0,this[_0x10158d(0x39e)]());}['_substituteUndoStack'](_0x5b8b29,_0x4ad455){const _0x43d386=_0x3c69ef;this[_0x43d386(0x260)][_0x43d386(0x220)](_0x5b8b29,_0x4ad455),this[_0x43d386(0x39e)]();}['_substituteRedoStack'](_0x5ddf33,_0x3e5093){const _0x192be9=_0x3c69ef;this['_redoStacks'][_0x192be9(0x220)](_0x5ddf33,_0x3e5093),this[_0x192be9(0x39e)]();}[_0x3c69ef(0x3f3)](_0x7058aa,_0x540b7c){const _0x4086c7=_0x3c69ef;let _0x5a787b=[],_0x57dc6d=_0x540b7c,_0x479c48=_0x540b7c;for(let _0x2b7ccc=_0x7058aa[_0x4086c7(0x3a1)]-0x1;_0x2b7ccc>=0x0;_0x2b7ccc--){let {unitID:_0xd63e37,undoMutations:_0x5e193d,redoMutations:_0x19a689}=_0x7058aa[_0x2b7ccc],_0x45e43e=this[_0x4086c7(0x1c6)][_0x4086c7(0x2f6)](_0x57dc6d,_0x5e193d),_0x44cc34=this[_0x4086c7(0x1c6)][_0x4086c7(0x2f6)](_0x479c48,_0x19a689);if(_0x18826e(_0x45e43e)||_0x18826e(_0x44cc34)){this[_0x4086c7(0x3f4)]['error'](_0x4086c7(0x2b0),_0x4086c7(0x1c9),_0x45e43e,_0x44cc34);break;}_0x57dc6d=_0x45e43e[_0x4086c7(0x29c)],_0x479c48=_0x44cc34[_0x4086c7(0x29c)],_0x5a787b[_0x4086c7(0x217)]({'unitID':_0xd63e37,'undoMutations':_0x45e43e['m2Prime'],'redoMutations':_0x44cc34[_0x4086c7(0x3a6)]});}return _0x5a787b['reverse']();}};Qn=V([B(0x0,_0x344fe1),B(0x1,_0x4705e0),B(0x2,_0x6a8ee3),B(0x3,_0x3a995f),B(0x4,_0x5c3e7f)],Qn);let $n=class extends _0x2c6762{constructor(_0x1d7772=pt,_0x25be26,_0x5b9fcb,_0xb7fbe0){const _0x3a079e=_0x3c69ef;super(),this['_config']=_0x1d7772,this[_0x3a079e(0x3f4)]=_0x25be26,this['_injector']=_0x5b9fcb,this[_0x3a079e(0x305)]=_0xb7fbe0;let {..._0x3743ad}=_0x507159({},pt,this[_0x3a079e(0x227)]);if(!_0x3743ad['socketService'])throw Error(_0x3a079e(0x2c9));this[_0x3a079e(0x227)]=_0x3743ad,this[_0x3a079e(0x305)]['setConfig'](L,_0x3743ad);}['onStarting'](){const _0x4ede1c=_0x3c69ef;this[_0x4ede1c(0x2b4)](),this[_0x4ede1c(0x413)]();}[_0x3c69ef(0x2b4)](){const _0x51d431=_0x3c69ef;var _0x570fe0,_0x4e9976;this[_0x51d431(0x27a)][_0x51d431(0x387)](_0x4aa991)&&this[_0x51d431(0x3f4)][_0x51d431(0x199)](_0x51d431(0x2fb),_0x51d431(0x3c9));let _0x2fbb12=_0x23d6dd([[_0x4aa991,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0x51d431(0x227)][_0x51d431(0x1f1)]}],[_0xf3e9c6,{'useClass':Zn}],[_0x3c91dc,{'useClass':Vn}],[_0x80c08d,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x3ae42a,{'useClass':Yn}],[Mn],[Fn]],(_0x570fe0=this[_0x51d431(0x227)])==null?void 0x0:_0x570fe0[_0x51d431(0x192)]);if(!((_0x4e9976=this[_0x51d431(0x227)])!=null&&_0x4e9976[_0x51d431(0x207)])){let _0x2dbdbb=_0x2fbb12[_0x51d431(0x371)](([_0x398370])=>_0x398370===W);_0x2dbdbb!==-0x1&&_0x2fbb12['splice'](_0x2dbdbb,0x1);}_0xa204e3(this[_0x51d431(0x27a)],_0x2fbb12);}[_0x3c69ef(0x413)](){const _0x230659=_0x3c69ef;var _0x478194,_0x229cb3;if(this[_0x230659(0x27a)][_0x230659(0x20f)](_0x32d10d)[_0x230659(0x3a5)]({'priority':0x14,'interceptor':_0x4e8da6({'maxParallel':0x6})}),!((_0x478194=this['_config'])!=null&&_0x478194[_0x230659(0x1a5)])){var _0xbd3e0b;(_0xbd3e0b=this[_0x230659(0x27a)][_0x230659(0x20f)](U,_0x46b617[_0x230659(0x1ce)]))==null||_0xbd3e0b[_0x230659(0x26a)]();}(_0x229cb3=this[_0x230659(0x227)])!=null&&_0x229cb3[_0x230659(0x40b)]&&_0x17b45d(this['_injector'],[[Bn]]),_0x17b45d(this[_0x230659(0x27a)],[[Kn],[Mn],[Xn]]);}};R($n,_0x3c69ef(0x18b),_0x3c69ef(0x2d8)),R($n,_0x3c69ef(0x1ea),Nn),R($n,_0x3c69ef(0x2cf),Pn),$n=V([_0x25f04d(_0x6b7911,_0x493098,_0x3667b4),B(0x1,_0x5c3e7f),B(0x2,_0xe230cc(_0x31a56e)),B(0x3,_0x1f37e4)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
|
|
1
|
+
const _0x4792e8=_0xf8b7;(function(_0x18d718,_0x3819c8){const _0x44298a=_0xf8b7,_0x3ef030=_0x18d718();while(!![]){try{const _0x5f3be7=-parseInt(_0x44298a(0x221))/0x1+parseInt(_0x44298a(0x15b))/0x2+-parseInt(_0x44298a(0x32c))/0x3*(-parseInt(_0x44298a(0x19c))/0x4)+-parseInt(_0x44298a(0x273))/0x5+-parseInt(_0x44298a(0x225))/0x6*(-parseInt(_0x44298a(0x25d))/0x7)+parseInt(_0x44298a(0x2bf))/0x8*(parseInt(_0x44298a(0x3b3))/0x9)+-parseInt(_0x44298a(0x2e3))/0xa*(parseInt(_0x44298a(0x29a))/0xb);if(_0x5f3be7===_0x3819c8)break;else _0x3ef030['push'](_0x3ef030['shift']());}catch(_0x12cd24){_0x3ef030['push'](_0x3ef030['shift']());}}}(_0x4bc3,0xb0388));import{CollaborationEvent as _0xfb25b2,CompressMutationService as _0x4f00f5,EmptyMutationInfo as _0x3d208d,ISnapshotServerService as _0x315027,ITransformService as _0x44c79e,RevisionService as _0x2ee9c5,SnapshotService as _0x2eec7d,UniverCollaborationPlugin as _0x158f84,b64DecodeUnicode as _0x886276,isTransformChangesetsSuccess as _0xbba3f,isTransformMutationsWithChangesetFailure as _0x1bf146,isTransformMutationsWithChangesetSuccess as _0x23cb3e,mapDocumentTypeToUniverInstanceType as _0x1479b3,parseChangesetToProtocol as _0x123852,parseProtocolChangeset as _0x3195f2,textEncoder as _0x36757f,uuidv4 as _0x9592e0}from'@univerjs-pro/collaboration';import{CommandType as _0x14cb83,DependentOn as _0x393cb5,Disposable as _0x52a1e4,DisposableCollection as _0x1f0700,IAuthzIoService as _0x2562e0,ICommandService as _0x235ea9,IConfigService as _0x4d4035,IContextService as _0x1c35be,IImageIoService as _0x34b67b,ILogService as _0x1dc40d,IMentionIOService as _0x33d114,IPermissionService as _0x1414dd,IUndoRedoService as _0x22a7f2,IUniverInstanceService as _0x3764b1,ImageSourceType as _0xb6904b,ImageUploadStatusType as _0x169214,Inject as _0x42bf05,Injector as _0x303c70,JSONX as _0x4290cf,LocalUndoRedoService as _0x4d3d2a,LocaleService as _0x5ce553,MentionType as _0x487dc0,Optional as _0x480fb8,Plugin as _0xa02fe0,Quantity as _0x49f328,Rectangle as _0x91a6c6,RxDisposable as _0x3b463b,Tools as _0x11371e,UniverInstanceType as _0x481a99,UserManagerService as _0x71a154,Workbook as _0x4b553a,createIdentifier as _0x41885f,generateRandomId as _0x4b55d3,isInternalEditorID as _0x382c36,merge as _0x418281,mergeOverrideWithDependencies as _0x36f659,registerDependencies as _0x2785b8,resolveWithBasePath as _0x349c2d,sequenceExecute as _0x59694c,toDisposable as _0x10e2de,touchDependencies as _0x5842f0}from'@univerjs/core';import{DocStateChangeManagerService as _0x72975f,RichTextEditingMutation as _0x34aba9}from'@univerjs/docs';import{InsertSheetMutation as _0x5e387a,SetSelectionsOperation as _0x882d41,SheetPermissionInitController as _0x31e0ee,SheetsSelectionsService as _0x3241bc,WorkbookEditablePermission as _0x3f892d}from'@univerjs/sheets';import{BehaviorSubject as _0x4093e5,ReplaySubject as _0x18bfea,Subject as _0xb9cc50,concatMap as _0x42118f,firstValueFrom as _0x41dbe7,map as _0x3c9835,merge as _0x20d630,of as _0x41b901,shareReplay as _0x3ebe4c,take as _0x2b5e35,takeUntil as _0x516751}from'rxjs';import{CmdRspCode as _0x5d2c4e,CombCmd as _0x1cca16,ErrorCode as _0x36be5a,FileSource as _0x2d4c14}from'@univerjs/protocol';import{ITelemetryService as _0x25cbc7}from'@univerjs/telemetry';import{delay as _0x856ddb,filter as _0x410a39,map as _0x2c8ebc,take as _0x3e82c0,takeUntil as _0x539673}from'rxjs/operators';import{AddSlidePageMutation as _0xd07246,EnsureSlideMasterPageMutation as _0x479fa1,MoveSlidePageMutation as _0x235245,RemoveSlidePageMutation as _0x1262ab}from'@univerjs-pro/slides';import{HTTPRequest as _0x25e740,HTTPService as _0x2c95c7,ISocketService as _0x2eb1e7,MergeInterceptorFactory as _0x26d2f3,ThresholdInterceptorFactory as _0x3ff293,UniverNetworkPlugin as _0x2f0791}from'@univerjs/network';import{UniverLicensePlugin as _0x3fdc72,getGlobalObject as _0x43c59b}from'@univerjs-pro/license';import{cbc as _0x102cd1}from'@noble/ciphers/aes.js';import{concatBytes as _0x21e7b9,randomBytes as _0x19fc48,utf8ToBytes as _0x4b34d5}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x46b851,getDrawingImageAllowSize as _0x474fba}from'@univerjs/drawing';const L=_0x4792e8(0x20b),pt={},mt=_0x4792e8(0x2a8),ht=_0x4792e8(0x1ba),gt=_0x4792e8(0x189),_t='HEARTBEAT_TIMEOUT',vt=0x4e20,yt=_0x4792e8(0x360),bt='LOCAL_CACHE_INTERVAL',xt=0x3e8,St='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',Ct=_0x4792e8(0x149);function wt(_0x5c7fc9){const _0x4a43c=_0x4792e8;return JSON[_0x4a43c(0x32e)](_0x5c7fc9)[_0x4a43c(0x277)];}function Tt(_0x4ce3c6){'@babel/helpers - typeof';const _0x3ecdd1=_0x4792e8;return Tt=typeof Symbol==_0x3ecdd1(0x2ad)&&typeof Symbol[_0x3ecdd1(0x352)]==_0x3ecdd1(0x2ba)?function(_0x2414d3){return typeof _0x2414d3;}:function(_0x4de31a){const _0x15d3e9=_0x3ecdd1;return _0x4de31a&&typeof Symbol==_0x15d3e9(0x2ad)&&_0x4de31a[_0x15d3e9(0x3db)]===Symbol&&_0x4de31a!==Symbol['prototype']?'symbol':typeof _0x4de31a;},Tt(_0x4ce3c6);}function Et(_0x408974,_0x3e9ebb){const _0x195b1d=_0x4792e8;if(Tt(_0x408974)!='object'||!_0x408974)return _0x408974;var _0x30d2d3=_0x408974[Symbol['toPrimitive']];if(_0x30d2d3!==void 0x0){var _0x5554f7=_0x30d2d3[_0x195b1d(0x2d0)](_0x408974,_0x3e9ebb||_0x195b1d(0x21c));if(Tt(_0x5554f7)!=_0x195b1d(0x179))return _0x5554f7;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3e9ebb==='string'?String:Number)(_0x408974);}function Dt(_0x571290){const _0x11c8a8=_0x4792e8;var _0x5124db=Et(_0x571290,'string');return Tt(_0x5124db)==_0x11c8a8(0x2ba)?_0x5124db:_0x5124db+'';}function R(_0x51f1c5,_0x363a6a,_0x11014b){const _0x3dd9b1=_0x4792e8;return(_0x363a6a=Dt(_0x363a6a))in _0x51f1c5?Object[_0x3dd9b1(0x1fa)](_0x51f1c5,_0x363a6a,{'value':_0x11014b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51f1c5[_0x363a6a]=_0x11014b,_0x51f1c5;}let Ot=function(_0x347e22){const _0x3ec51a=_0x4792e8;return _0x347e22[_0x3ec51a(0x3aa)]=_0x3ec51a(0x3aa),_0x347e22[_0x3ec51a(0x2e1)]=_0x3ec51a(0x2e1),_0x347e22[_0x3ec51a(0x2cf)]=_0x3ec51a(0x2cf),_0x347e22[_0x3ec51a(0x224)]=_0x3ec51a(0x224),_0x347e22[_0x3ec51a(0x3ce)]=_0x3ec51a(0x3ce),_0x347e22[_0x3ec51a(0x2e0)]=_0x3ec51a(0x2e0),_0x347e22['SOCKET_FAILED']=_0x3ec51a(0x3a1),_0x347e22[_0x3ec51a(0x315)]=_0x3ec51a(0x315),_0x347e22;}({});var z=class{constructor(){const _0x333c31=_0x4792e8;R(this,'_event$',new _0xb9cc50()),R(this,'event$',this[_0x333c31(0x1b3)]['asObservable']());}[_0x4792e8(0x2d9)](_0x58ddad){const _0x443679=_0x4792e8;this[_0x443679(0x1b3)][_0x443679(0x1ff)](_0x58ddad);}},kt=class{constructor(){const _0x2928be=_0x4792e8;R(this,'_commentUpdate$',new _0xb9cc50()),R(this,'commentUpdate$',this[_0x2928be(0x260)]['asObservable']());}[_0x4792e8(0x184)](_0x29c03c){const _0x52e4ed=_0x4792e8;this[_0x52e4ed(0x260)]['next'](_0x29c03c);}};function B(_0x485f76,_0x5809a8){return function(_0x222e00,_0x81c54c){_0x5809a8(_0x222e00,_0x81c54c,_0x485f76);};}function V(_0x3c4fe0,_0x150902,_0x115834,_0x69c6c7){const _0x5d81b3=_0x4792e8;var _0x59d325=arguments['length'],_0x51dc0f=_0x59d325<0x3?_0x150902:_0x69c6c7===null?_0x69c6c7=Object[_0x5d81b3(0x31d)](_0x150902,_0x115834):_0x69c6c7,_0x191061;if(typeof Reflect==_0x5d81b3(0x179)&&typeof Reflect[_0x5d81b3(0x351)]==_0x5d81b3(0x2ad))_0x51dc0f=Reflect[_0x5d81b3(0x351)](_0x3c4fe0,_0x150902,_0x115834,_0x69c6c7);else{for(var _0x633e41=_0x3c4fe0[_0x5d81b3(0x277)]-0x1;_0x633e41>=0x0;_0x633e41--)(_0x191061=_0x3c4fe0[_0x633e41])&&(_0x51dc0f=(_0x59d325<0x3?_0x191061(_0x51dc0f):_0x59d325>0x3?_0x191061(_0x150902,_0x115834,_0x51dc0f):_0x191061(_0x150902,_0x115834))||_0x51dc0f);}return _0x59d325>0x3&&_0x51dc0f&&Object[_0x5d81b3(0x1fa)](_0x150902,_0x115834,_0x51dc0f),_0x51dc0f;}let H=class extends _0x52a1e4{constructor(_0x28ff75,_0x26dd5b){const _0x51dad4=_0x4792e8;super(),this['_univerInstanceService']=_0x28ff75,this['_userManagerService']=_0x26dd5b,R(this,_0x51dad4(0x1ea),new Map()),R(this,_0x51dad4(0x30e),new _0xb9cc50()),this[_0x51dad4(0x18d)](_0x20d630(this['_univerInstanceService'][_0x51dad4(0x16a)](_0x481a99['UNIVER_SHEET'])[_0x51dad4(0x23f)](_0x2c8ebc(_0x3a4b07=>_0x3a4b07[_0x51dad4(0x256)]())),this[_0x51dad4(0x3bf)][_0x51dad4(0x16a)](_0x481a99[_0x51dad4(0x1d2)])['pipe'](_0x2c8ebc(_0x556bf5=>_0x556bf5[_0x51dad4(0x256)]())),this['_univerInstanceService'][_0x51dad4(0x16a)](_0x481a99[_0x51dad4(0x1cf)])[_0x51dad4(0x23f)](_0x2c8ebc(_0x598877=>_0x598877['getUnitId']())),this[_0x51dad4(0x3bf)]['getTypeOfUnitDisposed$'](_0x481a99[_0x51dad4(0x2c6)])['pipe'](_0x2c8ebc(_0x400839=>_0x400839[_0x51dad4(0x256)]())))[_0x51dad4(0x31b)](_0x2de519=>this[_0x51dad4(0x36d)](_0x2de519)));}['waitForRoom$'](_0x37a4af){const _0x3ef032=_0x4792e8;return this[_0x3ef032(0x1ea)][_0x3ef032(0x287)](_0x37a4af)?_0x41b901(this['_roomMembers']['get'](_0x37a4af)):this[_0x3ef032(0x30e)][_0x3ef032(0x23f)](_0x2c8ebc(_0x7cd1fc=>{const _0x534314=_0x3ef032;if(_0x7cd1fc===_0x37a4af)return this[_0x534314(0x1ea)][_0x534314(0x1b5)](_0x7cd1fc);}));}[_0x4792e8(0x3de)](_0x19eb18){this['_userManagerService']['setCurrentUser'](_0x19eb18);}[_0x4792e8(0x178)](){const _0x48dce6=_0x4792e8;return this[_0x48dce6(0x223)]['getCurrentUser']();}[_0x4792e8(0x188)](_0x385876,_0x50f43e){const _0xebc586=_0x4792e8;let _0x2f122e=this['_roomMembers'][_0xebc586(0x1b5)](_0x385876);_0x2f122e||(_0x2f122e=new At(),this[_0xebc586(0x1ea)][_0xebc586(0x2ea)](_0x385876,_0x2f122e),this['_roomCreated$'][_0xebc586(0x1ff)](_0x385876)),_0x2f122e[_0xebc586(0x188)](_0x50f43e);}[_0x4792e8(0x283)](_0x3cedcf,_0x9f6fd2){const _0x26da89=_0x4792e8;let _0x25779c=this['_roomMembers'][_0x26da89(0x1b5)](_0x3cedcf);_0x25779c&&_0x25779c[_0x26da89(0x283)](_0x9f6fd2);}['getRoom'](_0x2f3093){const _0x31f77a=_0x4792e8;return this[_0x31f77a(0x1ea)]['get'](_0x2f3093);}['getMember'](_0x17fffc,_0x56ecd4){const _0x183bc8=_0x4792e8;let _0x57e70a=this[_0x183bc8(0x1ea)]['get'](_0x17fffc);if(_0x57e70a)return _0x57e70a[_0x183bc8(0x185)](_0x56ecd4);}[_0x4792e8(0x36d)](_0x4027c5){const _0x2eaaf3=_0x4792e8;let _0x100b01=this[_0x2eaaf3(0x1ea)]['get'](_0x4027c5);_0x100b01&&(_0x100b01[_0x2eaaf3(0x387)](),this[_0x2eaaf3(0x1ea)][_0x2eaaf3(0x1b9)](_0x4027c5));}[_0x4792e8(0x387)](){const _0x358970=_0x4792e8;this[_0x358970(0x1ea)]['forEach'](_0x4b39e8=>_0x4b39e8[_0x358970(0x387)]()),this[_0x358970(0x1ea)][_0x358970(0x211)](),this[_0x358970(0x30e)][_0x358970(0x1bb)]();}};H=V([B(0x0,_0x3764b1),B(0x1,_0x42bf05(_0x71a154))],H);var At=class extends _0x52a1e4{constructor(..._0x23aa53){const _0x498f04=_0x4792e8;super(..._0x23aa53),R(this,'_members',new Map()),R(this,_0x498f04(0x222),new _0x4093e5(this[_0x498f04(0x176)])),R(this,_0x498f04(0x1ee),this[_0x498f04(0x222)]['asObservable']());}[_0x4792e8(0x387)](){const _0x842c7e=_0x4792e8;this[_0x842c7e(0x176)][_0x842c7e(0x211)](),this['_members$'][_0x842c7e(0x1bb)]();}['updateMember'](_0x364a52){const _0x4e07ab=_0x4792e8;this[_0x4e07ab(0x176)]['set'](_0x364a52[_0x4e07ab(0x2bd)],_0x364a52),this[_0x4e07ab(0x208)]();}[_0x4792e8(0x283)](_0x180739){const _0x48d3af=_0x4792e8;this['_members'][_0x48d3af(0x1b9)](_0x180739),this[_0x48d3af(0x208)]();}['getMember'](_0x205002){const _0x28e43d=_0x4792e8;return this[_0x28e43d(0x176)]['get'](_0x205002);}[_0x4792e8(0x3a2)](){const _0x47d40e=_0x4792e8;return Array['from'](this[_0x47d40e(0x176)][_0x47d40e(0x19a)]());}[_0x4792e8(0x208)](){const _0x437ee4=_0x4792e8;this[_0x437ee4(0x222)]['next'](this[_0x437ee4(0x176)]);}};function jt(_0x259474,_0x13e9d4){const _0x121673=_0x4792e8;if(Nt(_0x259474))return _0x13e9d4;if(_0x13e9d4[_0x121673(0x383)]===_0xfb25b2['SUBMIT_CHANGESET']){var _0xf2ad46;let _0x279d30=Rt(_0x259474),_0x141b34=_0x13e9d4;return{..._0x141b34,'data':{..._0x141b34[_0x121673(0x325)],'unitID':_0x259474[_0x121673(0x348)][_0x121673(0x326)],'unitType':(_0xf2ad46=_0x259474[_0x121673(0x348)][_0x121673(0x33e)])==null?_0x141b34[_0x121673(0x325)][_0x121673(0x33e)]:_0xf2ad46,'changeset':_0x279d30[_0x121673(0x395)](_0x141b34['data'][_0x121673(0x330)],zt(_0x259474))}};}if(_0x13e9d4[_0x121673(0x383)]===_0xfb25b2[_0x121673(0x3c2)]){var _0x2d1c45;let _0x4cfead=_0x13e9d4;return{..._0x4cfead,'data':{..._0x4cfead['data'],'unitID':_0x259474[_0x121673(0x348)][_0x121673(0x326)],'unitType':(_0x2d1c45=_0x259474[_0x121673(0x348)][_0x121673(0x33e)])==null?_0x4cfead[_0x121673(0x325)][_0x121673(0x33e)]:_0x2d1c45}};}return _0x13e9d4;}function Mt(_0x2f2afd,_0x1502b8){const _0x4034fc=_0x4792e8;if(Nt(_0x2f2afd))return[_0x1502b8];switch(_0x1502b8[_0x4034fc(0x383)]){case _0xfb25b2[_0x4034fc(0x3bd)]:return[Pt(_0x2f2afd,_0x1502b8)];case _0xfb25b2['PSEUDO_FETCH_MISSING_RESULT']:return[It(_0x2f2afd,_0x1502b8)];case _0xfb25b2[_0x4034fc(0x217)]:return[Ft(_0x2f2afd,_0x1502b8)];default:return[_0x1502b8];}}function Nt(_0x5e2700){const _0x46ed1a=_0x4792e8;return _0x5e2700[_0x46ed1a(0x348)][_0x46ed1a(0x1ce)]==null&&_0x5e2700['target'][_0x46ed1a(0x326)]===_0x5e2700[_0x46ed1a(0x2b2)]&&!_0x5e2700['changeset'];}function Pt(_0x208a9e,_0x1eca44){return{..._0x1eca44,'data':_0x123852(Lt(_0x208a9e,_0x3195f2(_0x1eca44['data'])))};}function Ft(_0x16a6ee,_0x1ad6ce){return{..._0x1ad6ce,'data':Lt(_0x16a6ee,_0x1ad6ce['data'])};}function It(_0x38586f,_0x323dae){const _0x30c2a3=_0x4792e8;let _0x2e63f0=_0x323dae[_0x30c2a3(0x325)];return{..._0x323dae,'data':{..._0x2e63f0,'changesets':_0x2e63f0[_0x30c2a3(0x3b0)][_0x30c2a3(0x24f)](_0x1d4f78=>_0x123852(Lt(_0x38586f,_0x3195f2(_0x1d4f78))))}};}function Lt(_0x44566a,_0x37e1a1){const _0x277e7b=_0x4792e8;return Rt(_0x44566a)[_0x277e7b(0x1e6)](_0x37e1a1,zt(_0x44566a));}function Rt(_0x420033){const _0x42057f=_0x4792e8;if(!_0x420033[_0x42057f(0x330)])throw Error(_0x42057f(0x282));return _0x420033[_0x42057f(0x330)];}function zt(_0xc4d12a){const _0x3f2854=_0x4792e8;return{'localUnitId':_0xc4d12a[_0x3f2854(0x2b2)],'unitType':_0xc4d12a[_0x3f2854(0x33e)],'target':_0xc4d12a[_0x3f2854(0x348)]};}let Bt=function(_0x5e3f76){const _0x669c62=_0x4792e8;return _0x5e3f76[_0x5e3f76['IDLE']=0x0]=_0x669c62(0x307),_0x5e3f76[_0x5e3f76[_0x669c62(0x334)]=0x1]='JOINING',_0x5e3f76[_0x5e3f76[_0x669c62(0x1a1)]=0x2]=_0x669c62(0x1a1),_0x5e3f76[_0x5e3f76['ONLINE']=0x3]=_0x669c62(0x158),_0x5e3f76;}({});const Vt={[_0x5d2c4e[_0x4792e8(0x3e3)]]:_0x4792e8(0x209),[_0x5d2c4e['JOIN_ROOM_FULL']]:_0x4792e8(0x31f),[_0x5d2c4e[_0x4792e8(0x3e4)]]:'session.room-not-exists',[_0x5d2c4e[_0x4792e8(0x275)]]:_0x4792e8(0x2cc),[_0x5d2c4e[_0x4792e8(0x1a7)]]:_0x4792e8(0x227)};let Ht=class extends _0x3b463b{get['sessionStatus'](){const _0x373129=_0x4792e8;return this['_sessionStatus$'][_0x373129(0x2ed)]();}constructor(_0x3c225e,_0x1de7ad,_0x11fefe,_0x5c9065,_0x46b19f,_0x34b27f,_0x5f2bb3,_0x434e13){const _0x4ca4fe=_0x4792e8;super(),this['_identity']=_0x3c225e,this[_0x4ca4fe(0x398)]=_0x11fefe,this[_0x4ca4fe(0x183)]=_0x5c9065,this[_0x4ca4fe(0x36f)]=_0x46b19f,this[_0x4ca4fe(0x17b)]=_0x34b27f,this['_collaborationUIEventService']=_0x5f2bb3,this['_telemetryService']=_0x434e13,R(this,'_sessionStatus$',new _0x4093e5(0x0)),R(this,_0x4ca4fe(0x1c2),this[_0x4ca4fe(0x145)]['asObservable']()),R(this,_0x4ca4fe(0x1b3),new _0xb9cc50()),R(this,_0x4ca4fe(0x32a),this[_0x4ca4fe(0x1b3)]['asObservable']()),R(this,_0x4ca4fe(0x25c),void 0x0),R(this,'_socketMessageSubscription',void 0x0),R(this,_0x4ca4fe(0x370),void 0x0),R(this,'_shouldReportTelemetry',!0x1),R(this,_0x4ca4fe(0x196),null),this[_0x4ca4fe(0x1f3)]=!!this[_0x4ca4fe(0x2ee)],_0x1de7ad[_0x4ca4fe(0x23f)](_0x516751(this[_0x4ca4fe(0x26f)]))['subscribe'](_0x1f5db4=>{const _0x2b8226=_0x4ca4fe;if(_0x1f5db4!==void 0x0){if(this[_0x2b8226(0x25c)]=_0x1f5db4,_0x1f5db4)this[_0x2b8226(0x3b6)](_0x1f5db4),this[_0x2b8226(0x212)]=_0x1f5db4[_0x2b8226(0x374)][_0x2b8226(0x31b)](_0x4f7292=>{const _0x5308cb=_0x2b8226;_0x4f7292['routeKey']===this[_0x5308cb(0x167)][_0x5308cb(0x348)][_0x5308cb(0x326)]&&this['_onCombEvent'](_0x4f7292);});else{var _0x22e591;this[_0x2b8226(0x391)](),this[_0x2b8226(0x145)][_0x2b8226(0x1ff)](0x2),(_0x22e591=this[_0x2b8226(0x212)])==null||_0x22e591[_0x2b8226(0x1f8)](),this[_0x2b8226(0x212)]=null;}}});}[_0x4792e8(0x291)](){var _0x78c395,_0xbb9400;return(_0x78c395=(_0xbb9400=this['_socket'])==null?void 0x0:_0xbb9400['memberID'])==null?null:_0x78c395;}['dispose'](){const _0x3caf89=_0x4792e8;super[_0x3caf89(0x387)](),this['close'](),this[_0x3caf89(0x26f)][_0x3caf89(0x1ff)](),this[_0x3caf89(0x26f)]['complete']();}[_0x4792e8(0x30b)](){const _0x426348=_0x4792e8;var _0x4ec261;this[_0x426348(0x391)](),(_0x4ec261=this['_socket'])==null||_0x4ec261[_0x426348(0x379)]({'cmd':_0x1cca16[_0x426348(0x369)],'data':{'roomID':this[_0x426348(0x167)]['target']['unitId']}}),this[_0x426348(0x1b3)][_0x426348(0x1bb)](),this['_sessionStatus$']['complete']();}[_0x4792e8(0x29c)](_0x3242c9){const _0x37a856=_0x4792e8;_0x3242c9[_0x37a856(0x384)]===_0x1cca16[_0x37a856(0x3e7)]?this['_onJoinRoomEvent'](_0x3242c9):_0x3242c9[_0x37a856(0x384)]===_0x1cca16[_0x37a856(0x156)]&&this[_0x37a856(0x18e)](_0x3242c9);}['_joinRoom'](_0x2e468b){const _0x295777=_0x4792e8;this[_0x295777(0x145)][_0x295777(0x1ff)](0x1),_0x2e468b[_0x295777(0x379)]({'cmd':_0x1cca16[_0x295777(0x3e7)],'routeKey':this['_identity']['target'][_0x295777(0x326)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x295777(0x348)]['unitId']}]}});}['_onJoinRoomEvent'](_0x2bbbe2){const _0x328cd0=_0x4792e8;var _0x4119fe;if(_0x2bbbe2[_0x328cd0(0x26b)]in Vt){this['_collaborationUIEventService']['emitEvent']({'id':_0x328cd0(0x3ce),'data':Vt[_0x2bbbe2[_0x328cd0(0x26b)]]}),this[_0x328cd0(0x145)][_0x328cd0(0x1ff)](0x2);return;}this[_0x328cd0(0x145)][_0x328cd0(0x1ff)](0x3);let _0x39522b=(_0x4119fe=_0x2bbbe2[_0x328cd0(0x325)]['roomInfos'][this['_identity'][_0x328cd0(0x348)][_0x328cd0(0x326)]])==null?void 0x0:_0x4119fe[_0x328cd0(0x191)];_0x39522b&&_0x39522b[_0x328cd0(0x3e9)](_0x40497f=>this[_0x328cd0(0x36f)][_0x328cd0(0x188)](this[_0x328cd0(0x167)][_0x328cd0(0x2b2)],_0x40497f));}[_0x4792e8(0x18e)](_0x1d60d3){const _0x2d659a=_0x4792e8;try{let _0x50efa3=Mt(this[_0x2d659a(0x167)],_0x1d60d3[_0x2d659a(0x325)]);for(let _0x3fcf8e of _0x50efa3)switch(_0x3fcf8e['eventID']){case _0xfb25b2[_0x2d659a(0x2a7)]:this[_0x2d659a(0x249)](_0x3fcf8e),this[_0x2d659a(0x1b3)][_0x2d659a(0x1ff)](_0x3fcf8e);break;case _0xfb25b2[_0x2d659a(0x303)]:this[_0x2d659a(0x308)](_0x3fcf8e),this['_event$']['next'](_0x3fcf8e);break;case _0xfb25b2['CHANGESET_ACK']:case _0xfb25b2[_0x2d659a(0x217)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x2d659a(0x2d1)](),this[_0x2d659a(0x1b3)][_0x2d659a(0x1ff)](_0x3fcf8e);break;case _0xfb25b2[_0x2d659a(0x150)]:this[_0x2d659a(0x398)][_0x2d659a(0x269)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x3fcf8e)),this[_0x2d659a(0x1b3)]['next'](_0x3fcf8e);break;case _0xfb25b2[_0x2d659a(0x3a5)]:this[_0x2d659a(0x17b)][_0x2d659a(0x184)](_0x3fcf8e[_0x2d659a(0x325)]),this['_event$'][_0x2d659a(0x1ff)](_0x3fcf8e);break;default:this['_event$']['next'](_0x3fcf8e);}}catch(_0x4c8bcc){this[_0x2d659a(0x398)][_0x2d659a(0x269)](_0x4c8bcc,_0x1d60d3);}}[_0x4792e8(0x249)](_0x23d590){const _0x211b39=_0x4792e8;this[_0x211b39(0x36f)]['updateMember'](this[_0x211b39(0x167)][_0x211b39(0x2b2)],_0x23d590[_0x211b39(0x325)]);}[_0x4792e8(0x308)](_0x109a01){const _0x2a697a=_0x4792e8;this[_0x2a697a(0x36f)]['removeMember'](this[_0x2a697a(0x167)][_0x2a697a(0x2b2)],_0x109a01[_0x2a697a(0x325)]['memberID']);}async[_0x4792e8(0x379)](_0x5e9ecd,_0xac964e){const _0x1b094c=_0x4792e8;if(this[_0x1b094c(0x1b4)]!==0x3||!this[_0x1b094c(0x25c)])throw Error(_0x1b094c(0x3c3));try{let _0x44285e=jt(this[_0x1b094c(0x167)],_0x5e9ecd);_0x44285e[_0x1b094c(0x383)]===_0xfb25b2[_0x1b094c(0x15f)]&&(this[_0x1b094c(0x171)](),this[_0x1b094c(0x2f2)](_0x44285e)),this[_0x1b094c(0x25c)][_0x1b094c(0x379)]({'cmd':_0x1cca16[_0x1b094c(0x18c)],'routeKey':this[_0x1b094c(0x167)]['target'][_0x1b094c(0x326)],'routeType':'','data':_0x44285e});}catch(_0x26268e){this['_logService']['error'](_0x26268e);}}[_0x4792e8(0x171)](){const _0x1d703b=_0x4792e8;var _0x4d3a40;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x7ba1c1=_0xf8b7;this[_0x7ba1c1(0x370)]=null,this['_collaborationUIEventService'][_0x7ba1c1(0x2d9)]({'id':_0x7ba1c1(0x315)});},(_0x4d3a40=this[_0x1d703b(0x183)][_0x1d703b(0x3c8)](_0x1d703b(0x257)))==null?vt:_0x4d3a40);}[_0x4792e8(0x2d1)](){const _0x3220ef=_0x4792e8;this[_0x3220ef(0x370)]&&(clearTimeout(this[_0x3220ef(0x370)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x416778){const _0x15e02f=_0x4792e8;if(!this['_shouldReportTelemetry'])return;let {data:_0x5d50a7}=_0x416778,{unitID:_0x5f1edd,changeset:_0xa50f62}=_0x5d50a7,{mutations:_0x3c0228,type:_0x29e098}=_0xa50f62;this['_telemetryInfo']={'unitId':_0x5f1edd,'type':_0x29e098,'startTime':performance[_0x15e02f(0x3d4)](),'stopTime':0x0,'duration':0x0,'size':wt(_0x3c0228)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x150a94=_0x4792e8;if(this[_0x150a94(0x1f3)]){if(!this[_0x150a94(0x196)]){this[_0x150a94(0x398)]['error'](_0x150a94(0x322),_0x150a94(0x17d));return;}this[_0x150a94(0x196)][_0x150a94(0x38b)]=performance[_0x150a94(0x3d4)](),this[_0x150a94(0x196)][_0x150a94(0x3b5)]=this[_0x150a94(0x196)][_0x150a94(0x38b)]-this[_0x150a94(0x196)][_0x150a94(0x321)],this['_telemetryService']['capture'](_0x150a94(0x37c),this[_0x150a94(0x196)]),this[_0x150a94(0x196)]=null;}}[_0x4792e8(0x391)](){const _0xfd09d=_0x4792e8;this[_0xfd09d(0x196)]=null;}};Ht=V([B(0x2,_0x1dc40d),B(0x3,_0x4d4035),B(0x4,_0x42bf05(H)),B(0x5,_0x42bf05(kt)),B(0x6,_0x42bf05(z)),B(0x7,_0x480fb8(_0x25cbc7))],Ht);const U=_0x41885f(_0x4792e8(0x36a));function Ut(_0x3cacea){const _0x51a5a5=_0x4792e8;return _0x51a5a5(0x295)+_0x3cacea;}function Wt(_0x4cf445){const _0x1e6dc2=_0x4792e8;let {unitID:_0x199621,mutations:_0xf4b1d5}=_0x4cf445;return{'unitId':_0x199621,'subUnitId':_0xf4b1d5['length']>0x0?_0xf4b1d5[0x0][_0x1e6dc2(0x33b)]['subUnitId']:null};}let Gt=class{constructor(_0x209f1d,_0x589ca5,_0x21f4c3){const _0x162027=_0x4792e8;this[_0x162027(0x320)]=_0x209f1d,this[_0x162027(0x1dd)]=_0x589ca5,this[_0x162027(0x1a2)]=_0x21f4c3;}[_0x4792e8(0x195)](_0x4d56a2){const _0x43152b=_0x4792e8;var _0x1a47ab,_0x1bb380;let _0x8c543e=this[_0x43152b(0x320)][_0x43152b(0x1b5)](_0x3241bc),{unitId:_0x4bf5d8,subUnitId:_0x45c5cb}=Wt(_0x4d56a2),_0x435ecd=_0x8c543e==null?void 0x0:_0x8c543e[_0x43152b(0x15a)](_0x4bf5d8)[_0x43152b(0x1df)](),_0x3eef63=(_0x1a47ab=this[_0x43152b(0x1a2)][_0x43152b(0x1ef)](_0x4bf5d8))==null||(_0x1a47ab=_0x1a47ab[_0x43152b(0x231)]())==null?void 0x0:_0x1a47ab[_0x43152b(0x359)]();if(_0x435ecd[_0x43152b(0x277)]===0x0||!_0x4bf5d8||!_0x45c5cb)return;let _0x5d564a=[{'id':_0x882d41['id'],'params':{'unitId':_0x4bf5d8,'subUnitId':_0x3eef63,'selections':_0x11371e[_0x43152b(0x3d5)](_0x435ecd)}}],_0x43454c=this[_0x43152b(0x1dd)][_0x43152b(0x2e6)](_0x4d56a2,_0x5d564a);if(!_0x23cb3e(_0x43454c))throw _0x43454c[_0x43152b(0x269)];let _0xf630fd=(_0x1bb380=_0x43454c[_0x43152b(0x157)][0x0])==null||(_0x1bb380=_0x1bb380[_0x43152b(0x33b)])==null?void 0x0:_0x1bb380[_0x43152b(0x3ca)];if(Array[_0x43152b(0x305)](_0xf630fd)&&_0xf630fd[_0x43152b(0x277)]){if(_0xf630fd[_0x43152b(0x277)]===_0x5d564a[0x0][_0x43152b(0x33b)][_0x43152b(0x3ca)][_0x43152b(0x277)]&&_0xf630fd[_0x43152b(0x2c2)]((_0x2891a8,_0x2aab8d)=>_0x91a6c6[_0x43152b(0x3c7)](_0x2891a8[_0x43152b(0x38c)],_0x5d564a[0x0][_0x43152b(0x33b)][_0x43152b(0x3ca)][_0x2aab8d][_0x43152b(0x38c)])))return;this[_0x43152b(0x320)][_0x43152b(0x1b5)](_0x235ea9)['executeCommand'](_0x882d41['id'],{'unitId':_0x4bf5d8,'subUnitId':_0x3eef63,'selections':_0xf630fd});}}};Gt=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x44c79e),B(0x2,_0x3764b1)],Gt);const W=_0x41885f(_0x4792e8(0x1d3));let Kt=function(_0x8fb6e5){const _0x1f198d=_0x4792e8;return _0x8fb6e5[_0x8fb6e5[_0x1f198d(0x3a8)]=0x0]=_0x1f198d(0x3a8),_0x8fb6e5[_0x8fb6e5[_0x1f198d(0x17c)]=0x1]='OTHER_CLIENTS_EDITING',_0x8fb6e5;}({});function qt(_0x58621e){const _0x486ad9=_0x4792e8;var _0x10fcdd;return!!((_0x10fcdd=_0x58621e[_0x486ad9(0x33b)])!=null&&_0x10fcdd[_0x486ad9(0x29f)]);}const Jt=new Set([_0x5e387a['id']]),Yt=new Set([_0xd07246['id'],_0x479fa1['id'],_0x235245['id'],_0x1262ab['id']]);function Xt(_0x5b7821,_0x55a777=Jt){const _0x543d65=_0x4792e8;let _0x3a1064=[];for(let _0x2fc553 of _0x5b7821){if(_0x55a777[_0x543d65(0x287)](_0x2fc553['id'])){if(_0x3a1064['length']>0x0)break;_0x3a1064['push'](_0x2fc553);break;}if(qt(_0x2fc553)){if(_0x3a1064[_0x543d65(0x277)]>0x0)break;_0x3a1064[_0x543d65(0x198)](_0x2fc553);break;}_0x3a1064[_0x543d65(0x198)](_0x2fc553);}return _0x3a1064;}function Zt(_0x98f657,_0x45491f,_0x3b6442,_0x3dc548,_0x1b3e99){const _0x4e92e6=_0x4792e8;var _0x251e81,_0x1d8869,_0x3237ad,_0x2f332b;let _0xaf105a=Xt(_0x98f657),_0x2648c5=(_0x251e81=(_0x1d8869=_0x1b3e99['getCurrentUser']())==null?void 0x0:_0x1d8869[_0x4e92e6(0x35a)])==null?_0x4e92e6(0x3e5):_0x251e81,_0x15889c=(_0x3237ad=(_0x2f332b=_0x1b3e99[_0x4e92e6(0x178)]())==null?void 0x0:_0x2f332b['memberID'])==null?'unknown':_0x3237ad;return{'changeset':{'unitID':_0x45491f,'type':_0x1479b3(_0x3b6442[_0x4e92e6(0x186)](_0x45491f)),'baseRev':_0x3dc548[_0x4e92e6(0x28d)](_0x45491f),'revision':0x0,'userID':_0x2648c5,'memberID':_0x15889c,'mutations':_0xaf105a},'pendingMutations':_0x98f657[_0x4e92e6(0x276)](_0xaf105a[_0x4e92e6(0x277)])};}function Qt(_0x59aefe,_0x309898,_0x42c613,_0x45819e,_0x1dcebc){const _0x4198f8=_0x4792e8;var _0x42c859,_0x42dc80,_0x2cfc02,_0xf14126;let _0x40ffc8=Xt(_0x59aefe,Yt),_0x1b3539=(_0x42c859=(_0x42dc80=_0x1dcebc[_0x4198f8(0x178)]())==null?void 0x0:_0x42dc80[_0x4198f8(0x35a)])==null?_0x4198f8(0x3e5):_0x42c859,_0x58f1d1=(_0x2cfc02=(_0xf14126=_0x1dcebc[_0x4198f8(0x178)]())==null?void 0x0:_0xf14126['memberID'])==null?_0x4198f8(0x3e5):_0x2cfc02;return{'changeset':{'unitID':_0x309898,'type':_0x1479b3(_0x42c613[_0x4198f8(0x186)](_0x309898)),'baseRev':_0x45819e['getCurrentRevOfUnit'](_0x309898),'revision':0x0,'userID':_0x1b3539,'memberID':_0x58f1d1,'mutations':_0x40ffc8},'pendingMutations':_0x59aefe[_0x4198f8(0x276)](_0x40ffc8[_0x4198f8(0x277)])};}function _0xf8b7(_0x587bd5,_0x319e97){_0x587bd5=_0x587bd5-0x145;const _0x4bc394=_0x4bc3();let _0xf8b72a=_0x4bc394[_0x587bd5];return _0xf8b72a;}function $t(_0x397f6c,_0x175e6f,_0x6cd59b,_0x3633ca,_0x4344c3){const _0x48106=_0x4792e8;var _0x441430,_0x27beb7,_0x140a76,_0x3ed4ea;let _0x15f79e=_0x397f6c[_0x48106(0x1e7)]((_0x21388c,_0x13f00a)=>{const _0x48fb3f=_0x48106;let _0x292f00=_0x21388c[_0x21388c[_0x48fb3f(0x277)]-0x1],{id:_0x20685b}=_0x292f00==null?{}:_0x292f00,{id:_0x2d8cf6,type:_0x341d05}=_0x13f00a,_0xaf3894=_0x13f00a[_0x48fb3f(0x33b)];if(_0x20685b&&_0x20685b!==_0x2d8cf6)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x20685b+_0x48fb3f(0x1b7)+_0x2d8cf6+'.');if(!_0x292f00)return[{'id':_0x2d8cf6,'type':_0x341d05,'params':{'unitId':_0xaf3894[_0x48fb3f(0x326)],'textRanges':_0xaf3894[_0x48fb3f(0x1da)],'actions':_0xaf3894[_0x48fb3f(0x34d)]}}];let _0x17de48=_0x292f00['params'];return en(_0x17de48,_0xaf3894)?[..._0x21388c['slice'](0x0,-0x1),{..._0x292f00,'id':_0x2d8cf6,'type':_0x341d05,'params':{'unitId':_0xaf3894['unitId'],'textRanges':_0xaf3894[_0x48fb3f(0x1da)],'actions':_0x4290cf[_0x48fb3f(0x285)](_0x17de48[_0x48fb3f(0x34d)],_0xaf3894[_0x48fb3f(0x34d)])}}]:[..._0x21388c,{'id':_0x2d8cf6,'type':_0x341d05,'params':{'unitId':_0xaf3894[_0x48fb3f(0x326)],'textRanges':_0xaf3894[_0x48fb3f(0x1da)],'actions':_0xaf3894[_0x48fb3f(0x34d)]}}];},[]),_0x5d5ccc=(_0x441430=(_0x27beb7=_0x4344c3[_0x48106(0x178)]())==null?void 0x0:_0x27beb7[_0x48106(0x35a)])==null?'unknown':_0x441430,_0x5dce97=(_0x140a76=(_0x3ed4ea=_0x4344c3[_0x48106(0x178)]())==null?void 0x0:_0x3ed4ea['memberID'])==null?_0x48106(0x3e5):_0x140a76;return{'changeset':{'unitID':_0x175e6f,'type':_0x1479b3(_0x6cd59b['getUnitType'](_0x175e6f)),'baseRev':_0x3633ca['getCurrentRevOfUnit'](_0x175e6f),'revision':0x0,'userID':_0x5d5ccc,'memberID':_0x5dce97,'mutations':_0x15f79e},'pendingMutations':_0x397f6c[_0x48106(0x276)](_0x397f6c[_0x48106(0x277)])};}function en(_0x57ebb2,_0x5f1407){const _0x491ff1=_0x4792e8;return!tn(_0x57ebb2)&&!tn(_0x5f1407)&&nn(_0x57ebb2['actions'],_0x5f1407[_0x491ff1(0x34d)]);}function tn(_0x5ce8cf){const _0xc1f18b=_0x4792e8;return _0x5ce8cf[_0xc1f18b(0x181)]!==void 0x0;}function nn(_0x3a92e9,_0x1d9600){return rn(_0x3a92e9)&&rn(_0x1d9600)&&!on(_0x3a92e9)&&!on(_0x1d9600)&&!an(_0x3a92e9)&&!an(_0x1d9600);}function rn(_0xaef416){const _0x2adebe=_0x4792e8;return sn(_0xaef416)['some'](_0x35820a=>cn(_0x35820a)&&_0x35820a['et']===_0x2adebe(0x2b4));}function _0x4bc3(){const _0x584108=['_queuedRemoteChangesets','SUBMIT_CHANGESET_TIMEOUT','socket\x20close','_acknowledgeAwaitingIfReady','URL','unitInfo$','/new_changes','subscribe','onRemoteChangeset','getOwnPropertyDescriptor','baseRev','session.room-full','_injector','startTime','[CollaborationSession]','_onRemoteRejected','getUploadOptions','data','unitId','\x20in\x20_schedule.','collaborators','_status$','event$','_createInitialStateImpl','417jZgwfH','_clearLocalCache','stringify','awaiting_with_pending','changeset','sheets','createInstance','awaiting','JOINING','encode','_substituteUndoStack','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_waitCount','endsWith','_networkConditionService','params','_localCacheService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','unitType','&to=','_change$','href','add','floor','[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.','socket\x20open.','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','onLocalMutation','target','snapshot','timeoutTimer','url','debug','actions','updateSnapshot','_executeRemoteChangeset','init','decorate','iterator','_clearScheduledTask','[DataLoaderService]','/unit/','_clearTimeoutTimer','_remoteChangesetQueue','HELLO','getSheetId','userID','shouldCloseConn','_replayCachedMutations','UPDATE_PERMISSION_OBJ','_getSignURL','base-ui.attachment-io.service','RETRY_CONNECTING_MAX_COUNT','POST','Error\x20on\x20receiving\x20event','method','[CollaborationSessionService]','leaveEvent','resolveUnit','create','onSyncEditingCollabCursor','LEAVE','collaboration-client.local-cache-service','catch','getSnapshotAPIPath','_removeRoom','retryConnectingTimer','_memberService','_collaborationTimeoutTimer','enableSingleActiveInstanceLock','_tryEnsureSocket','_permissionService','message$','_getDownloadEndpointURL','getTypeOfUnitAdded$','_handlerCallback','withCredentials','send','listCollaborators','[UniverCollaborationClientPlugin]','collaboration_new_changeset','fetchMiss','registerHTTPInterceptor','reconnect','appendMutation','_adapter','_sessionChannels','eventID','cmd','_entities','SNAPSHOT_URL_KEY','dispose','result','_schedule','name','stopTime','range','toggleOnline','enableCollaboration','_upload','_toggleOffline','_throwTelemetryCollaborationNewChangeset','addImageSourceCache','entries','COLLABORATION_ENDPOINT_INVALID','toRemote','unitLoaded$','_clearRedo','_logService','[OfflineState]:\x20received\x20acknowledgement.','/allowed','readAsDataURL','_HTTPService','_scheduleCompleteTimestamp','_replaceFileID','onMutationExecutedForCollab','_resendTimeout','SOCKET_FAILED','getAllMembers','resourceIDs','connection\x20error','COMMENT_UPDATE','mutations','loginUrlKey','NO_OTHER_CLIENTS_EDITING','_checkMissing','OTHER_CLIENT_EDITING','__Key__','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','body','_resendWithTimeout','_applyRemoteChangeset','changesets','fromCollab','/universer-api/authz','12405348NjaQlk','update','duration','_joinRoom','replace','setWaitCount','createSocket','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','infoRsp','[SyncedState]:\x20received\x20rejection.','NEW_CHANGESETS','requestParams','_univerInstanceService','OPTIONAL','fetching\x20missing\x20changesets\x20from\x20','FETCH_MISSING','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','closeSession','asObservable','collabWebSocketUrl','equals','getConfig','getResourcesRequest','selections','avatar','ERROR_IMAGE_TYPE','updateCollaborator','JOIN_ROOM_FAILED','snapshotServerUrl','headers','/role','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_changesetSessionId','now','deepClone','_exhaustRemoteChangesetQueue','onTransformSelections','batchAllowed','_getConfig','sort','constructor','parse','retryConnectingInterval','setCurrentUser','_onConflict','localCacheService','docStateChange$','AWAITING_WITH_PENDING','FAIL','JOIN_ROOM_NOT_EXISTS','unknown','transformChangesets','JOIN','unitId\x20is\x20not\x20found','forEach','close$','disableLocalCache','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','sendChangesetTimeout','splice','charCodeAt','UNIVER_SHEET','_onConnectionOpen','_sessionStatus$','saveSnapshot','LIVESHARE_NEW_HOST','getUnitStatus$','/universer-api/uniscript','_sendingTimer','newCsEvent','conflict','post','_disableEditing','reqId','MSG_FOR_ERROR','objectType','/universer-api/snapshot/','then','listRoles','getSheetBlock','RECV','m2Prime','ONLINE','state','getWorkbookSelections','2644328MzIHDG','_getCtorByUniverInstanceType','getCollabEntity','_incrementRevisionNumber','SUBMIT_CHANGESET','/universer-api/file/{fileID}/sign-url','hasOwnProperty','_hasSessionsForEndpoint','origin','univer-pro.collaboration-client.network-condition.service','saveSheetBlock','prototype','_identity','getImage','hostname','getTypeOfUnitDisposed$','authzUrl','_onRemoteRetry','univer-pro.collaboration-client-socket-service','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_unitInfo$','fetch_missing','_scheduleCollaborationTimeoutTimer','AWAITING','_state','editing\x20status\x20changed\x20to','_syncEditingCollabCursor','_members','socketReady','getCurrentUser','object','resend','_commentService','OTHER_CLIENTS_EDITING','telemetry\x20info\x20is\x20not\x20initialized','saveImage','deleteCollaborator','NOT_COLLAB','isCompositionEnd','maxSize','_configService','onCommentUpdate','getMember','getUnitType','/collaborator','updateMember','HEARTBEAT_INTERVAL','HEARTBEAT','socket$','INGEST','disposeWithMe','_onRecvEvent','sid','_getAPIPrefix','members','status$','_registerDependencies','getCollabEntity$','transformSelections','_telemetryInfo','focused$','push','readyForCollab','values','_getSendChangesetTimeout','21404dkfUgM','_listenToNetworkCondition','getUnitOnRev','getTime','_commandService','OFFLINE','_instanceService','_httpService','accept','loadSlide','loadSheet','GLOBAL_ROOMS_CNT_EXCEEDS','/object/','UNIVER_SLIDE','onTransformRemoteChangesetByIMECache','_transformRemoteChangesetByStateCache','_createSocket','includes','/universer-api/comb','_createInitialState','session','CHANGESET_ACK','collaboration-client.auth.needGotoLoginAlert','_event$','sessionStatus','get','_docStateChangeManagerService','\x20-\x20','_imageSourceCache','delete','/universer-api/user/session-ticket','complete','_clearHeartbeatTimer','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','toggleOffline','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','encrypt','min','sessionStatus$','Failed\x20to\x20update\x20permission\x20point','collabSubmitChangesetUrl','entityInit$','_transformAndApplyRemoteChangeset','objectActions','_transformRemoteChangesetByIMECache','SHOULD_CLOSE_CONN','workbook','_clearRetryConnectingTimer','_transformIMECache','_eventService','endpoint','UNIVER_BOARD','_type','find','UNIVER_DOC','univer-pro.collaboration-client.single-active-unit-service','_transformSelections','\x0aAfter:\x20','_getSocketChannel','x-univer-host','revision','confirm','textRanges','onRemoteRetry','getInterceptPoints','_transformService','missingChangesets','getCurrentSelections','1.0.0-alpha.5','editingUnit','getImageSourceCache','list','_collabSessionService','interceptor','toLocal','reduce','onTransformIME','_isEchoedAwaitingChangeset','_roomMembers','_singleActiveUnitService','not_collab','pluginName','members$','getUnit','_resolveSessionIdentity','candidateSocket','endpointKey','_shouldReportTelemetry','initWorkbookPermissionChange','onSendChangeset','joinEvent','FileId','unsubscribe','createCollaborator','defineProperty','_showConflictNotification','LIVESHARE_FETCH_OPERATIONS','columnGroups','_onMessage','next','/universer-api/oidc/authpage','string','state$','tables','onMissingChangesets','originalMeta','_changesetReqId','_socketChannels','_emitMembers','session.join-failed','/block/','collaboration-client.config','fetchThroughInterceptors','_maxTotalRetryTimeout','[OfflineState]:\x20received\x20changeset.','_initDependencies','_snapshotService','clear','_socketMessageSubscription','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','size','ERROR_IMAGE','onRemoteAck','CHANGESET_SHOULD_RETRY','_awaitingChangeset','onRemoteRej','permissionRejEvent','_pendingSessions','default','routeKey','number','[CollaborationUndoRedoService]','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','790888QqUakv','_members$','_userManagerService','CLOSE_ROOM','12cOcOJO','override','session.room-cnt-exceeds','getLatestCsReqIdBySid','COMPRESS_MUTATION_APPLY','[PendingState]:\x20unhandled\x20univer\x20type:\x20','isPermissionRej','getCfgEnableObjInherit','_getUndoStack','DEFAULT_FILE_NAME','collaboratorID','_onFetchMissResult','getActiveSheet','@univerjs-pro/collaboration-client','_sheetTransformSelectionsService','indexOf','LIVESHARE_TERMINATE','backupOfflineData','_startCollaboration','reject','_sendHeartbeat','rev','Univer','_getUploadFileURL','[PendingState]:\x20received\x20rejection.','_createSession','pipe','_unitLoaded$','_sender','_collaborationSessionService','objectID','loadUnitOfRevision','socketService','_decreaseWaiting','location','&assign=','_onUserJoin','_state$','unitID','_createHandler','PSEUDO_FETCH_MISSING_RESULT','_resendTimer','map','_compressMutationService','putCollaborators','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','[PendingState]:\x20received\x20acknowledgement.','status','append','getUnitId','HEARTBEAT_TIMEOUT','_sessions','onMissedChangesetFetched','_submitChangeset','_getAPIPrefixPath','_socket','3114986MolFRp','MUTATION','collaMsg','_commentUpdate$','subject','[CollaborationEntity]','attachment','/universer-api/snapshot','updateOfflineData','max','findIndex','c2Prime','error','_config','code','open$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_fetchMissChangesets','dispose$','/fetchmissing?from=','transformUndoRedo','UNISCRIPT_RUN','5999340hOmHAQ','offline','JOIN_ROOM_PERMISSION_DENIED','slice','length','retryCount','saveChangeset','transformStack\x20failed!','_updateState','refreshPermission','uploadFileServerUrl','_handler','onlyLocal','_rescheduleHeartbeat','_onConnectionFailed','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','removeMember','_onRemoteChangeset','compose','LIVESHARE_REQUEST_HOST','has','onStateChange','[FetchMissState]','blockRanges','pauseCollaboration','PERMISSION_REJ','getCurrentRevOfUnit','COMPRESS_MUTATION_SEND','startsWith','c1Prime','getMemberID','_transitionLocked','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','{fileID}','unit-cache-','commentUpdateEvent','loadBoard','_acknowledgedAwaitingRevision','socketMessageSubscription','11dMDsGD','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onCombEvent','_substituteRedoStack','_undoStacks','__splitChunk__','_toggleOnline','[CollaborationState]:\x20apply\x20error!','_collaborationUIEventService','executeCommand','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_revisionService','localeService','USERS_ENTER','ws://127.0.0.1:8000/universer-api/comb/connect','put','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','/-/object/-/batch_allowed','_initMergeInterceptor','function','_waitForHeartbeatResponse','/rev/','_getRedoStack','_initRequestHeader','localUnitId','[CollaborationSessionService]:\x20socket\x20error','text-x','_getCurrentRevision','BASE64','csShouldRetryEvent','_pendingMutations','upload','symbol','failed\x20to\x20apply\x20missed\x20changesets!','loadUnit','memberID','_initUnitPermissionChange','8KJAsmW','toString','_handleRemoteChangesets','every','packageName','error$','awaitingChangeset','UNIVER_BASE','_cfgEnableObjInherit','synced','_isPermissionRej','encodeURIComponent','_getLoginPath','session.room-permission-denied','action','_transformStack','CONFLICT','call','_clearCollaborationTimeoutTimer','PERSON','file','\x0aCurrent:\x20','getDeserializedSheetBlock','setConfig','_onOffline','getFocusedUnit','emitEvent','_unlockTransition','CHANGESET_REJ','/universer-api/stream/file/upload','filter','loadDoc','LIVESHARE_OPERATION','SOCKET_FAILED_RETRY','PERMISSION_DENIED','_updateLocalCache','16217650gXJVZy','updatePermissionPoint','_clearUndo','transformMutationsWithChangeset','title','\x20to\x20','_onRemoteACK','set','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','SUCCUSS','getValue','_telemetryService','signUrlServerUrl','_init','addHandlerCallback','_startTelemetryCollaborationNewChangeset','_collaborationPaused','_lockTransition','_entityInit$','onTransformRemoteChangesetByStateCache','unit','updatePermissionObjEvent','pending','?size=','_onLocalMutation','apply','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','some','_acknowledgeAwaiting','FETCH_MISS','setShowComponents','_initCloseConn','USERS_LEAVE','[OfflineState]:\x20received\x20rejection.','isArray','type','IDLE','_onUserLeave','_tryReconnect','UUID','close','UnitEmbedded','_updateStatus','_roomCreated$','_undoRedoService','patch','sendHeartbeatTimer','requireSession','_localeService'];_0x4bc3=function(){return _0x584108;};return _0x4bc3();}function an(_0xc1a4ca){const _0x243955=_0x4792e8;return sn(_0xc1a4ca)[_0x243955(0x2fe)](_0x58294d=>Array[_0x243955(0x305)](_0x58294d)||typeof _0x58294d==_0x243955(0x201)||typeof _0x58294d==_0x243955(0x21e));}function on(_0x46bc1c){const _0x364b2f=_0x4792e8;return sn(_0x46bc1c)[_0x364b2f(0x2fe)](_0x190d0e=>!cn(_0x190d0e)||_0x190d0e['et']!==_0x364b2f(0x2b4)||!Array[_0x364b2f(0x305)](_0x190d0e['e'])?!0x1:_0x190d0e['e'][_0x364b2f(0x2fe)](_0x417e2e=>!cn(_0x417e2e)||!cn(_0x417e2e[_0x364b2f(0x3ad)])?!0x1:Object[_0x364b2f(0x166)][_0x364b2f(0x161)][_0x364b2f(0x2d0)](_0x417e2e['body'],_0x364b2f(0x203))||Object[_0x364b2f(0x166)][_0x364b2f(0x161)]['call'](_0x417e2e[_0x364b2f(0x3ad)],_0x364b2f(0x1fd))||Object['prototype'][_0x364b2f(0x161)]['call'](_0x417e2e[_0x364b2f(0x3ad)],_0x364b2f(0x28a))));}function sn(_0x5ccff3){const _0x4d0380=_0x4792e8;if(!Array[_0x4d0380(0x305)](_0x5ccff3))return[];let _0x36d7a8=_0x5ccff3[_0x4d0380(0x1ad)]('body')?_0x5ccff3:_0x5ccff3[_0x4d0380(0x1d1)](_0xcae831=>Array[_0x4d0380(0x305)](_0xcae831)&&_0xcae831[_0x4d0380(0x1ad)](_0x4d0380(0x3ad)));if(!Array[_0x4d0380(0x305)](_0x36d7a8))return[];let _0x27c724=_0x36d7a8[_0x4d0380(0x234)](_0x4d0380(0x3ad));return _0x27c724===-0x1?[]:_0x36d7a8['slice'](_0x27c724+0x1);}function cn(_0x1cfe70){const _0x4e986a=_0x4792e8;return typeof _0x1cfe70==_0x4e986a(0x179)&&!!_0x1cfe70&&!Array['isArray'](_0x1cfe70);}function ln(_0x456092,_0x172962){const _0x2f7827=_0x4792e8;let _0x41a546=new _0x18bfea(0x1);return setTimeout(()=>_0x41a546['next'](_0x172962),_0x456092),_0x41a546[_0x2f7827(0x3c5)]()['pipe'](_0x2b5e35(0x1));}var un,dn,fn;let pn=function(_0x31a534){const _0x48c5ae=_0x4792e8;return _0x31a534[_0x48c5ae(0x180)]=_0x48c5ae(0x1ec),_0x31a534['SYNCED']=_0x48c5ae(0x2c8),_0x31a534['PENDING']=_0x48c5ae(0x2f9),_0x31a534[_0x48c5ae(0x172)]=_0x48c5ae(0x333),_0x31a534[_0x48c5ae(0x3e2)]=_0x48c5ae(0x32f),_0x31a534[_0x48c5ae(0x300)]=_0x48c5ae(0x170),_0x31a534[_0x48c5ae(0x2cf)]=_0x48c5ae(0x14c),_0x31a534[_0x48c5ae(0x1a1)]=_0x48c5ae(0x274),_0x31a534;}({});const mn=0x4e20,hn=0x2bf20;var G=class{constructor(_0x4ffb60,_0x2f9e42,_0x563b68,_0xce3e27,_0x2c1b52,_0x2d048b,_0x3cb90f,_0x545b7f,_0x157e33){const _0x33d883=_0x4792e8;this['unitID']=_0x4ffb60,this[_0x33d883(0x306)]=_0x2f9e42,this[_0x33d883(0x27e)]=_0x2c1b52,this[_0x33d883(0x1a0)]=_0x2d048b,this[_0x33d883(0x30f)]=_0x3cb90f,this[_0x33d883(0x2a5)]=_0x545b7f,this['_localCacheService']=_0x157e33,R(this,_0x33d883(0x218),null),R(this,_0x33d883(0x2b8),[]),this[_0x33d883(0x218)]=_0x563b68,this[_0x33d883(0x2b8)]=_0xce3e27;}[_0x4792e8(0x3a9)](_0x2a6091){const _0x26a8aa=_0x4792e8;let _0x211e19=this[_0x26a8aa(0x2a5)][_0x26a8aa(0x28d)](this[_0x26a8aa(0x24b)]);return _0x2a6091['revision']>_0x211e19+0x1?(this[_0x26a8aa(0x27e)][_0x26a8aa(0x204)]({'from':_0x211e19,'to':_0x2a6091[_0x26a8aa(0x1d8)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x4addd0){const _0x36c6d4=_0x4792e8;this[_0x36c6d4(0x30f)][_0x36c6d4(0x271)](this[_0x36c6d4(0x24b)],_0x4addd0);}[_0x4792e8(0x1d4)](_0x26850f){const _0x279f17=_0x4792e8;var _0x1706b3,_0x12ef72;(_0x1706b3=(_0x12ef72=this[_0x279f17(0x27e)])[_0x279f17(0x3d7)])==null||_0x1706b3[_0x279f17(0x2d0)](_0x12ef72,_0x26850f);}[_0x4792e8(0x1cc)](_0x301040){const _0x3371c4=_0x4792e8;var _0x201f44,_0x3d8a83;return(_0x201f44=(_0x3d8a83=this[_0x3371c4(0x27e)])[_0x3371c4(0x1e8)])==null?void 0x0:_0x201f44[_0x3371c4(0x2d0)](_0x3d8a83,_0x301040);}['_transformStateCache'](_0x3c1277){const _0x56676d=_0x4792e8;var _0x3ea0b8,_0x4354b0;return(_0x3ea0b8=(_0x4354b0=this[_0x56676d(0x27e)])['onTransformState'])==null?void 0x0:_0x3ea0b8[_0x56676d(0x2d0)](_0x4354b0,_0x3c1277);}[_0x4792e8(0x1c8)](_0x1bfecd){const _0x1ec312=_0x4792e8;var _0x5590f2,_0x4c60a0,_0x15d222;return(_0x5590f2=(_0x4c60a0=(_0x15d222=this['_handler'])[_0x1ec312(0x1aa)])==null?void 0x0:_0x4c60a0['call'](_0x15d222,_0x1bfecd))==null?_0x1bfecd:_0x5590f2;}[_0x4792e8(0x1ab)](_0x1f05fd){const _0x3f6e25=_0x4792e8;var _0x101629,_0x39ce02,_0x170871;return(_0x101629=(_0x39ce02=(_0x170871=this[_0x3f6e25(0x27e)])[_0x3f6e25(0x2f6)])==null?void 0x0:_0x39ce02[_0x3f6e25(0x2d0)](_0x170871,_0x1f05fd))==null?_0x1f05fd:_0x101629;}[_0x4792e8(0x175)](_0x5c7ea5){const _0x278dae=_0x4792e8;if(this['type']===_0x481a99[_0x278dae(0x1d2)]){let {unitID:_0x4a60c7,mutations:_0x40da85,memberID:_0x29a20a}=_0x5c7ea5,_0x2c67a0=_0x40da85[_0x278dae(0x277)]>0x0?_0x40da85[0x0][_0x278dae(0x33b)][_0x278dae(0x1da)]:[];if(Array[_0x278dae(0x305)](_0x2c67a0)&&_0x2c67a0[_0x278dae(0x277)]>0x0){var _0x5e86e9,_0xcf784c;(_0x5e86e9=(_0xcf784c=this['_handler'])[_0x278dae(0x368)])==null||_0x5e86e9[_0x278dae(0x2d0)](_0xcf784c,{'unitID':_0x4a60c7,'memberID':_0x29a20a,'textRanges':_0x2c67a0});}}}['_updateLocalCache'](){const _0x839d0e=_0x4792e8;var _0x55ef52;(_0x55ef52=this[_0x839d0e(0x33c)])==null||_0x55ef52[_0x839d0e(0x265)](this['unitID'],this[_0x839d0e(0x306)],this['_awaitingChangeset'],this[_0x839d0e(0x2b8)]);}[_0x4792e8(0x2b5)](){const _0x350da7=_0x4792e8;return this['_revisionService'][_0x350da7(0x28d)](this[_0x350da7(0x24b)]);}[_0x4792e8(0x15e)](){const _0x90acc1=_0x4792e8;this[_0x90acc1(0x2a5)]['incrementRevOfUnit'](this[_0x90acc1(0x24b)]);}['_executeRemoteChangeset'](_0x1e4b83){const _0xf530c6=_0x4792e8;let _0x35b7fa=this[_0xf530c6(0x1c8)](_0x1e4b83);_0x35b7fa=this[_0xf530c6(0x1ab)](_0x35b7fa);let _0x18d796=_0x59694c(_0x35b7fa['mutations'],this[_0xf530c6(0x1a0)],{'fromCollab':!0x0});if(!_0x18d796[_0xf530c6(0x388)]){var _0x40feb2;throw _0x18d796[_0xf530c6(0x269)]instanceof Error?_0x18d796[_0xf530c6(0x269)]:Error((_0x40feb2=_0x18d796[_0xf530c6(0x269)])==null?_0xf530c6(0x2a1):_0x40feb2);}this[_0xf530c6(0x1cc)](_0x35b7fa),this['_transformStateCache'](_0x35b7fa),this['_transformUndoredo'](_0x1e4b83),this['_transformSelections'](_0x35b7fa),this[_0xf530c6(0x175)](_0x35b7fa),this[_0xf530c6(0x15e)]();}};let K=class extends G{constructor(_0x1b432d,_0x5a81ba,_0xa11061,_0x1eea0b,_0x275dec,_0x21ff45,_0x3e4e3e,_0x2cb23b,_0xbb9143,_0x46dfa1){const _0x295e81=_0x4792e8;super(_0x1b432d,_0x5a81ba,null,[],_0xa11061,_0x3e4e3e,_0x21ff45,_0x1eea0b,_0x46dfa1),this['_injector']=_0x275dec,this[_0x295e81(0x398)]=_0x2cb23b,this['_transformService']=_0xbb9143,this[_0x295e81(0x3e0)]=_0x46dfa1,R(this,_0x295e81(0x254),_0x295e81(0x2c8));}[_0x4792e8(0x380)](_0x2cae45){const _0x36db69=_0x4792e8;let _0x16c4c7=this[_0x36db69(0x320)][_0x36db69(0x332)](q,this[_0x36db69(0x24b)],this['type'],[_0x2cae45],this[_0x36db69(0x27e)]);return _0x16c4c7[_0x36db69(0x389)](),_0x16c4c7[_0x36db69(0x2e2)](),_0x16c4c7;}[_0x4792e8(0x31c)](_0x2047e0){const _0x1fe840=_0x4792e8;if(this[_0x1fe840(0x3a9)](_0x2047e0))return this[_0x1fe840(0x320)]['createInstance'](Q,this['unitID'],this['type'],null,[],null,[_0x2047e0],this[_0x1fe840(0x27e)]);try{let _0x1703ec=this['_transformService'][_0x1fe840(0x2e6)](_0x2047e0,[_0x3d208d]);if(_0x23cb3e(_0x1703ec)){let {c1Prime:_0x4c5c1a}=_0x1703ec;return this[_0x1fe840(0x34f)](_0x4c5c1a),this;}throw _0x1703ec[_0x1fe840(0x269)];}catch(_0x36d6ee){return this[_0x1fe840(0x398)][_0x1fe840(0x269)](_0x36d6ee),this[_0x1fe840(0x3df)](!0x1);}}['_onConflict'](_0xabbaae){const _0x5bcbc0=_0x4792e8;return this['_injector'][_0x5bcbc0(0x332)](X,this[_0x5bcbc0(0x24b)],this[_0x5bcbc0(0x306)],null,[],this[_0x5bcbc0(0x27e)],_0xabbaae);}[_0x4792e8(0x216)](_0x23bcf0){const _0x15dc08=_0x4792e8;if(_0x23bcf0[_0x15dc08(0x1d8)]<=this[_0x15dc08(0x2b5)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x30a80c=_0x4792e8;throw Error(_0x30a80c(0x3bc));}[_0x4792e8(0x1db)](){return this;}['toggleOffline'](){const _0x413e4e=_0x4792e8;return this[_0x413e4e(0x320)][_0x413e4e(0x332)](Z,this[_0x413e4e(0x24b)],this[_0x413e4e(0x306)],null,[],this[_0x413e4e(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x17a)](){const _0x53ffff=_0x4792e8;throw Error(_0x53ffff(0x337));}[_0x4792e8(0x37d)](){const _0x3f5d1a=_0x4792e8;let _0x5298ed=this[_0x3f5d1a(0x2a5)][_0x3f5d1a(0x28d)](this[_0x3f5d1a(0x24b)]);return this[_0x3f5d1a(0x27e)][_0x3f5d1a(0x204)]({'from':_0x5298ed,'to':0x0}),this[_0x3f5d1a(0x320)][_0x3f5d1a(0x332)](Q,this[_0x3f5d1a(0x24b)],this['type'],null,[],null,[],this['_handler']);}};K=V([B(0x3,_0x42bf05(_0x2ee9c5)),B(0x4,_0x42bf05(_0x303c70)),B(0x5,_0x22a7f2),B(0x6,_0x235ea9),B(0x7,_0x1dc40d),B(0x8,_0x44c79e),B(0x9,_0x480fb8(U))],K);let q=un=class extends G{constructor(_0x17f1cc,_0x2e9dfd,_0x102a71,_0x28f7a5,_0x497634,_0x32fd68,_0x5b1bd7,_0x27ee7b,_0x1b7ba8,_0x4ca94f,_0x62603c,_0x1bb9b5,_0x304251,_0x406546){const _0x36aeff=_0x4792e8;super(_0x17f1cc,_0x2e9dfd,null,_0x102a71,_0x28f7a5,_0x1b7ba8,_0x304251,_0x32fd68,_0x406546),this[_0x36aeff(0x320)]=_0x497634,this[_0x36aeff(0x36f)]=_0x5b1bd7,this[_0x36aeff(0x398)]=_0x27ee7b,this[_0x36aeff(0x183)]=_0x4ca94f,this['_transformService']=_0x62603c,this['_univerInstanceService']=_0x1bb9b5,R(this,_0x36aeff(0x254),_0x36aeff(0x2f9)),R(this,_0x36aeff(0x39d),null),R(this,'_sendingTimer',null);}[_0x4792e8(0x380)](_0x368adb){const _0x2162a0=_0x4792e8;return this[_0x2162a0(0x2b8)]['push'](_0x368adb),this[_0x2162a0(0x2e2)](),this;}['onRemoteChangeset'](_0x4d5039){const _0x5e5cb3=_0x4792e8;if(this[_0x5e5cb3(0x3a9)](_0x4d5039))return this['_clearScheduledTask'](),this['_injector']['createInstance'](Q,this['unitID'],this[_0x5e5cb3(0x306)],null,this[_0x5e5cb3(0x2b8)],null,[_0x4d5039],this['_handler']);try{let _0xb36687=this[_0x5e5cb3(0x1dd)][_0x5e5cb3(0x2e6)](_0x4d5039,this[_0x5e5cb3(0x2b8)]);if(_0x23cb3e(_0xb36687)){let {c1Prime:_0x5a704c,m2Prime:_0x458c26}=_0xb36687;this[_0x5e5cb3(0x34f)](_0x5a704c);let _0x67aad7=this[_0x5e5cb3(0x320)][_0x5e5cb3(0x332)](un,this[_0x5e5cb3(0x24b)],this[_0x5e5cb3(0x306)],_0x458c26,this['_handler']);this['_clearScheduledTask']();let _0x4e9d85=new Date()[_0x5e5cb3(0x19f)](),_0x5dd009=this[_0x5e5cb3(0x39d)]?Math[_0x5e5cb3(0x266)](this['_scheduleCompleteTimestamp']-_0x4e9d85,0x0):this['_getSendChangesetTimeout']();return _0x67aad7[_0x5e5cb3(0x389)](_0x5dd009),_0x67aad7;}throw _0xb36687[_0x5e5cb3(0x269)];}catch(_0x528a31){return this[_0x5e5cb3(0x398)][_0x5e5cb3(0x269)](_0x528a31),this[_0x5e5cb3(0x3df)](!0x1);}}[_0x4792e8(0x216)](_0x3a05b6){const _0x3e4a27=_0x4792e8;if(_0x3a05b6[_0x3e4a27(0x1d8)]<=this[_0x3e4a27(0x2b5)]())return this;throw Error(_0x3e4a27(0x253));}[_0x4792e8(0x219)](){const _0x111ab1=_0x4792e8;throw Error(_0x111ab1(0x23d));}[_0x4792e8(0x1db)](){return this;}['toggleOffline'](){const _0x489036=_0x4792e8;return this['_clearScheduledTask'](),this[_0x489036(0x320)][_0x489036(0x332)](Z,this[_0x489036(0x24b)],this[_0x489036(0x306)],null,this[_0x489036(0x2b8)],this[_0x489036(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x389)](_0x210b6d){const _0x18bad3=_0x4792e8;let _0x4d4bfc=_0x210b6d==null?this[_0x18bad3(0x19b)]():_0x210b6d;this[_0x18bad3(0x39d)]=new Date()['getTime']()+_0x4d4bfc,this[_0x18bad3(0x14a)]=setTimeout(()=>{const _0x1ac570=_0x18bad3;this[_0x1ac570(0x353)]();let _0x1bf0d7=null;switch(this['type']){case _0x481a99[_0x1ac570(0x3f0)]:_0x1bf0d7=Zt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this[_0x1ac570(0x2a5)],this[_0x1ac570(0x36f)]);break;case _0x481a99['UNIVER_DOC']:_0x1bf0d7=this['_pendingMutations'][_0x1ac570(0x2c2)](_0x304858=>_0x304858['id']===_0x34aba9['id'])?$t(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this['_univerInstanceService'],this[_0x1ac570(0x2a5)],this[_0x1ac570(0x36f)]):Zt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this['_revisionService'],this[_0x1ac570(0x36f)]);break;case _0x481a99[_0x1ac570(0x1a9)]:_0x1bf0d7=Qt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this[_0x1ac570(0x2a5)],this[_0x1ac570(0x36f)]);break;case _0x481a99['UNIVER_BOARD']:_0x1bf0d7=Zt(this[_0x1ac570(0x2b8)],this['unitID'],this[_0x1ac570(0x3bf)],this['_revisionService'],this['_memberService']);break;case _0x481a99['UNIVER_BASE']:_0x1bf0d7=Zt(this[_0x1ac570(0x2b8)],this[_0x1ac570(0x24b)],this[_0x1ac570(0x3bf)],this['_revisionService'],this[_0x1ac570(0x36f)]);break;default:throw Error(_0x1ac570(0x22a)+this[_0x1ac570(0x306)]+_0x1ac570(0x327));}let {changeset:_0x47cc51,pendingMutations:_0x62147d}=_0x1bf0d7;this[_0x1ac570(0x27e)]['onSendChangeset'](_0x47cc51);let _0x3089ae=_0x62147d[_0x1ac570(0x277)]?this['_injector']['createInstance'](Y,this['unitID'],this['type'],_0x47cc51,_0x62147d,this[_0x1ac570(0x27e)],void 0x0):this[_0x1ac570(0x320)][_0x1ac570(0x332)](J,this[_0x1ac570(0x24b)],this[_0x1ac570(0x306)],_0x47cc51,this['_handler']);_0x3089ae[_0x1ac570(0x2e2)](),this['_handler'][_0x1ac570(0x288)](this,_0x3089ae);},_0x4d4bfc);}[_0x4792e8(0x19b)](){const _0x2667e5=_0x4792e8;var _0x1358a5;let _0x2313d8=this[_0x2667e5(0x183)][_0x2667e5(0x3c8)](L);return(_0x1358a5=_0x2313d8==null?void 0x0:_0x2313d8[_0x2667e5(0x3ed)])==null?0x7d0:_0x1358a5;}[_0x4792e8(0x17a)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4792e8(0x353)](){const _0x2aacf4=_0x4792e8;this[_0x2aacf4(0x14a)]!=null&&(clearTimeout(this[_0x2aacf4(0x14a)]),this['_sendingTimer']=null);}['_onConflict'](_0x5d95cb){const _0x34b4a8=_0x4792e8;return this['_clearScheduledTask'](),this[_0x34b4a8(0x320)][_0x34b4a8(0x332)](X,this[_0x34b4a8(0x24b)],this['type'],null,this['_pendingMutations'],this['_handler'],_0x5d95cb);}};q=un=V([B(0x4,_0x42bf05(_0x303c70)),B(0x5,_0x42bf05(_0x2ee9c5)),B(0x6,_0x42bf05(H)),B(0x7,_0x1dc40d),B(0x8,_0x235ea9),B(0x9,_0x4d4035),B(0xa,_0x44c79e),B(0xb,_0x3764b1),B(0xc,_0x22a7f2),B(0xd,_0x480fb8(U))],q);let J=dn=class extends G{constructor(_0x393ed9,_0x4065fb,_0x330a89,_0x4d8b1e,_0x6d7f5e,_0x38313d,_0x3279c9,_0x5192ae,_0x4886a4,_0x5cd2cc,_0x31643c){const _0xf1afe9=_0x4792e8;super(_0x393ed9,_0x4065fb,_0x330a89,[],_0x4d8b1e,_0x3279c9,_0x5cd2cc,_0x38313d,_0x31643c),this[_0xf1afe9(0x320)]=_0x6d7f5e,this['_logService']=_0x5192ae,this[_0xf1afe9(0x1dd)]=_0x4886a4,R(this,_0xf1afe9(0x254),_0xf1afe9(0x333)),R(this,'_resendTimeout',0x0),R(this,'_maxTotalRetryTimeout',0x0),R(this,'_resendTimer',void 0x0),R(this,_0xf1afe9(0x241),void 0x0);}['appendMutation'](_0x4bf946){const _0x5bcb6f=_0x4792e8;this[_0x5bcb6f(0x353)]();let _0xb85ccc=this[_0x5bcb6f(0x320)][_0x5bcb6f(0x332)](Y,this[_0x5bcb6f(0x24b)],this['type'],this[_0x5bcb6f(0x218)],[_0x4bf946],this['_handler'],this[_0x5bcb6f(0x24e)]);return _0xb85ccc['_updateLocalCache'](),_0xb85ccc;}[_0x4792e8(0x31c)](_0x58d89f){const _0x58fb4a=_0x4792e8;if(this[_0x58fb4a(0x3a9)](_0x58d89f))return this[_0x58fb4a(0x353)](),this[_0x58fb4a(0x320)]['createInstance'](Q,this[_0x58fb4a(0x24b)],this[_0x58fb4a(0x306)],this['_awaitingChangeset'],[],null,[_0x58d89f],this[_0x58fb4a(0x27e)]);try{let _0x279fef=this[_0x58fb4a(0x1dd)][_0x58fb4a(0x3e6)]([_0x58d89f],[this[_0x58fb4a(0x218)]],!0x1);if(_0xbba3f(_0x279fef)){let {c1Prime:_0x34f243,c2Prime:_0x2b7e76}=_0x279fef;this[_0x58fb4a(0x34f)](_0x34f243[0x0]),_0x2b7e76[0x0][_0x58fb4a(0x31e)]=this[_0x58fb4a(0x2b5)](),this[_0x58fb4a(0x353)]();let _0x444ce0=this[_0x58fb4a(0x320)]['createInstance'](dn,this['unitID'],this[_0x58fb4a(0x306)],_0x2b7e76[0x0],this[_0x58fb4a(0x27e)]);return _0x444ce0[_0x58fb4a(0x2e2)](),_0x444ce0;}throw _0x279fef[_0x58fb4a(0x269)];}catch(_0x4c920b){return this['_logService'][_0x58fb4a(0x269)](_0x4c920b),this[_0x58fb4a(0x3df)](!0x1);}}[_0x4792e8(0x216)](_0x2eabd3){const _0x3d9e07=_0x4792e8;this[_0x3d9e07(0x353)]();let _0x4987a7=this[_0x3d9e07(0x2a5)][_0x3d9e07(0x28d)](this['unitID']);if(_0x2eabd3['revision']<=_0x4987a7)return this;if(this[_0x3d9e07(0x3a9)](_0x2eabd3))return this[_0x3d9e07(0x320)][_0x3d9e07(0x332)](Q,this[_0x3d9e07(0x24b)],this[_0x3d9e07(0x306)],this[_0x3d9e07(0x218)],[],_0x2eabd3['revision'],[],this[_0x3d9e07(0x27e)]);this[_0x3d9e07(0x15e)]();let _0x3463cc=this[_0x3d9e07(0x320)][_0x3d9e07(0x332)](K,this[_0x3d9e07(0x24b)],this[_0x3d9e07(0x306)],this['_handler']);return _0x3463cc[_0x3d9e07(0x2e2)](),_0x3463cc;}[_0x4792e8(0x219)](_0x4ae65d){const _0x1c2840=_0x4792e8;return this['_onConflict'](!!(_0x4ae65d!=null&&_0x4ae65d[_0x1c2840(0x22b)]));}[_0x4792e8(0x1db)](_0x4df1a4){const _0x168f8e=_0x4792e8;return this[_0x168f8e(0x20d)]>hn?this[_0x168f8e(0x1be)]():(this['_resendTimer']=ln(this[_0x168f8e(0x3a0)],{'timeout':this[_0x168f8e(0x3a0)],'reqId':_0x4df1a4['reqId']}),this[_0x168f8e(0x241)]=this[_0x168f8e(0x24e)][_0x168f8e(0x31b)](({reqId:_0x47d077,timeout:_0x5a86c4})=>{const _0x3b87c3=_0x168f8e;this[_0x3b87c3(0x3ae)](_0x47d077,_0x5a86c4);}),this);}[_0x4792e8(0x1be)](){const _0x3ebe1a=_0x4792e8;return this[_0x3ebe1a(0x353)](),this[_0x3ebe1a(0x320)][_0x3ebe1a(0x332)](Z,this[_0x3ebe1a(0x24b)],this[_0x3ebe1a(0x306)],this['_awaitingChangeset'],[],this[_0x3ebe1a(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x17a)](){const _0x43fac4=_0x4792e8;this[_0x43fac4(0x27e)]['onSendChangeset'](this[_0x43fac4(0x218)]);}[_0x4792e8(0x3df)](_0x1b01da){const _0x1130c6=_0x4792e8;return this[_0x1130c6(0x353)](),this[_0x1130c6(0x320)][_0x1130c6(0x332)](X,this['unitID'],this[_0x1130c6(0x306)],this[_0x1130c6(0x218)],[],this[_0x1130c6(0x27e)],_0x1b01da);}[_0x4792e8(0x3ae)](_0x572a05,_0x4e9838){const _0x1a7046=_0x4792e8;var _0x1bd76e;_0x572a05===((_0x1bd76e=this[_0x1a7046(0x218)])==null?void 0x0:_0x1bd76e[_0x1a7046(0x14f)])&&(this[_0x1a7046(0x17a)](),this[_0x1a7046(0x3a0)]=_0x4e9838===0x0?0x3e8:Math[_0x1a7046(0x1c1)](_0x4e9838*0x2,mn),this['_maxTotalRetryTimeout']+=this[_0x1a7046(0x3a0)]);}[_0x4792e8(0x353)](){const _0x2034fc=_0x4792e8;var _0x4f3ef3;(_0x4f3ef3=this['_sender'])==null||_0x4f3ef3[_0x2034fc(0x1f8)](),this[_0x2034fc(0x3a0)]=0x0,this[_0x2034fc(0x20d)]=0x0;}};J=dn=V([B(0x4,_0x42bf05(_0x303c70)),B(0x5,_0x42bf05(_0x2ee9c5)),B(0x6,_0x235ea9),B(0x7,_0x1dc40d),B(0x8,_0x44c79e),B(0x9,_0x22a7f2),B(0xa,_0x480fb8(U))],J);let Y=fn=class extends G{constructor(_0x326241,_0x2ab5e5,_0x3d2ffe,_0x1d607f,_0x43a177,_0x5d032f,_0x2effb4,_0xba9ea9,_0x4af17f,_0x1dc95d,_0x426977,_0x4c7aed,_0x1a189c){const _0x165aeb=_0x4792e8;super(_0x326241,_0x2ab5e5,_0x3d2ffe,_0x1d607f,_0x43a177,_0x4af17f,_0x4c7aed,_0xba9ea9,_0x1a189c),this[_0x165aeb(0x320)]=_0x2effb4,this[_0x165aeb(0x398)]=_0x1dc95d,this[_0x165aeb(0x1dd)]=_0x426977,this['localCacheService']=_0x1a189c,R(this,'status',_0x165aeb(0x32f)),R(this,'_resendTimeout',0x0),R(this,_0x165aeb(0x20d),0x0),R(this,'_resendTimer',void 0x0),R(this,_0x165aeb(0x241),void 0x0),_0x5d032f&&(this[_0x165aeb(0x24e)]=_0x5d032f,this['_sender']=this[_0x165aeb(0x24e)][_0x165aeb(0x31b)](({reqId:_0x35700f,timeout:_0x392a0c})=>{const _0x1786e6=_0x165aeb;this[_0x1786e6(0x3ae)](_0x35700f,_0x392a0c);}));}['appendMutation'](_0x562915){const _0x23207c=_0x4792e8;return this[_0x23207c(0x2b8)][_0x23207c(0x198)](_0x562915),this;}[_0x4792e8(0x31c)](_0x104fdb){const _0x3c34ba=_0x4792e8;if(this[_0x3c34ba(0x3a9)](_0x104fdb))return this[_0x3c34ba(0x353)](),this[_0x3c34ba(0x320)]['createInstance'](Q,this[_0x3c34ba(0x24b)],this['type'],this[_0x3c34ba(0x218)],this[_0x3c34ba(0x2b8)],null,[_0x104fdb],this['_handler']);try{let _0x315de5=this[_0x3c34ba(0x1dd)][_0x3c34ba(0x3e6)]([_0x104fdb],[this[_0x3c34ba(0x218)]],!0x1);if(_0xbba3f(_0x315de5)){let {c1Prime:_0x2a2d44,c2Prime:_0x316742}=_0x315de5,_0x364098=this['_transformService'][_0x3c34ba(0x2e6)](_0x2a2d44[0x0],this[_0x3c34ba(0x2b8)]);if(_0x23cb3e(_0x364098)){let {c1Prime:_0x177271,m2Prime:_0x5cdb45}=_0x364098;return this[_0x3c34ba(0x34f)](_0x177271),_0x316742[0x0][_0x3c34ba(0x31e)]=this[_0x3c34ba(0x2b5)](),this[_0x3c34ba(0x353)](),this[_0x3c34ba(0x320)][_0x3c34ba(0x332)](fn,this[_0x3c34ba(0x24b)],this[_0x3c34ba(0x306)],_0x316742[0x0],_0x5cdb45,this['_handler'],void 0x0);}throw _0x364098[_0x3c34ba(0x269)];}throw _0x315de5['error'];}catch(_0x3fe0a5){return this['_logService'][_0x3c34ba(0x269)](_0x3fe0a5),this[_0x3c34ba(0x3df)](!0x1);}}[_0x4792e8(0x216)](_0x334484){const _0xf2a4fc=_0x4792e8;this[_0xf2a4fc(0x353)]();let _0x30e6fd=this[_0xf2a4fc(0x2b5)]();if(_0x334484[_0xf2a4fc(0x1d8)]<=_0x30e6fd)return this;if(this[_0xf2a4fc(0x3a9)](_0x334484))return this[_0xf2a4fc(0x320)]['createInstance'](Q,this['unitID'],this[_0xf2a4fc(0x306)],this[_0xf2a4fc(0x218)],this[_0xf2a4fc(0x2b8)],_0x334484[_0xf2a4fc(0x1d8)],[],this['_handler']);this[_0xf2a4fc(0x15e)]();let _0x2d5c82=this[_0xf2a4fc(0x320)][_0xf2a4fc(0x332)](q,this['unitID'],this[_0xf2a4fc(0x306)],this[_0xf2a4fc(0x2b8)],this['_handler']);return _0x2d5c82['_schedule'](),_0x2d5c82[_0xf2a4fc(0x2e2)](),_0x2d5c82;}[_0x4792e8(0x219)](_0x6a175a){const _0x48efdb=_0x4792e8;return this['_onConflict'](!!(_0x6a175a!=null&&_0x6a175a[_0x48efdb(0x22b)]));}['onRemoteRetry'](_0x2a6a09){const _0x4b8d59=_0x4792e8;return this[_0x4b8d59(0x20d)]>hn?this[_0x4b8d59(0x1be)]():(this[_0x4b8d59(0x24e)]=ln(this[_0x4b8d59(0x3a0)],{'timeout':this[_0x4b8d59(0x3a0)],'reqId':_0x2a6a09[_0x4b8d59(0x14f)]}),this[_0x4b8d59(0x241)]=this[_0x4b8d59(0x24e)][_0x4b8d59(0x31b)](({reqId:_0x4d993,timeout:_0x19df69})=>{const _0x11e2f8=_0x4b8d59;this[_0x11e2f8(0x3ae)](_0x4d993,_0x19df69);}),this);}[_0x4792e8(0x1be)](){const _0x407fa4=_0x4792e8;return this[_0x407fa4(0x353)](),this['_injector']['createInstance'](Z,this[_0x407fa4(0x24b)],this[_0x407fa4(0x306)],this[_0x407fa4(0x218)],this[_0x407fa4(0x2b8)],this[_0x407fa4(0x27e)]);}[_0x4792e8(0x38d)](){return this;}[_0x4792e8(0x17a)](){const _0x1b59bd=_0x4792e8;this[_0x1b59bd(0x27e)][_0x1b59bd(0x1f5)](this[_0x1b59bd(0x218)]);}['_onConflict'](_0x52a400){const _0x37abf8=_0x4792e8;return this[_0x37abf8(0x353)](),this[_0x37abf8(0x320)][_0x37abf8(0x332)](X,this[_0x37abf8(0x24b)],this[_0x37abf8(0x306)],null,this['_pendingMutations'],this['_handler'],_0x52a400);}['_resendWithTimeout'](_0x5c2842,_0x5edbb2){const _0x26eb0e=_0x4792e8;var _0x14f213;_0x5c2842===((_0x14f213=this[_0x26eb0e(0x218)])==null?void 0x0:_0x14f213[_0x26eb0e(0x14f)])&&(this[_0x26eb0e(0x17a)](),this['_resendTimeout']=_0x5edbb2===0x0?0x3e8:Math['min'](_0x5edbb2*0x2,mn),this[_0x26eb0e(0x20d)]+=this[_0x26eb0e(0x3a0)]);}[_0x4792e8(0x353)](){const _0x16b2b6=_0x4792e8;var _0x208eb1;(_0x208eb1=this[_0x16b2b6(0x241)])==null||_0x208eb1[_0x16b2b6(0x1f8)](),this[_0x16b2b6(0x3a0)]=0x0,this[_0x16b2b6(0x20d)]=0x0;}};Y=fn=V([B(0x6,_0x42bf05(_0x303c70)),B(0x7,_0x42bf05(_0x2ee9c5)),B(0x8,_0x235ea9),B(0x9,_0x1dc40d),B(0xa,_0x44c79e),B(0xb,_0x22a7f2),B(0xc,_0x480fb8(U))],Y);let X=class extends G{constructor(_0x83db5,_0x52b582,_0x216226,_0x14a893,_0x4836b8,_0x6c7263=!0x1,_0x1079d6,_0x5ef352,_0xf28cb2,_0x6bbf79,_0x2facc4,_0x2bf75f,_0x39fa6f){const _0x536cee=_0x4792e8;super(_0x83db5,_0x52b582,_0x216226,_0x14a893,_0x4836b8,_0x5ef352,_0xf28cb2,_0x6bbf79,_0x39fa6f),this[_0x536cee(0x2c9)]=_0x6c7263,this['_permissionService']=_0x1079d6,this[_0x536cee(0x313)]=_0x2facc4,this['_collaborationUIEventService']=_0x2bf75f,this[_0x536cee(0x3e0)]=_0x39fa6f,R(this,_0x536cee(0x254),_0x536cee(0x14c)),this['_showConflictNotification'](),this[_0x536cee(0x32d)](),this[_0x536cee(0x14e)]();}[_0x4792e8(0x380)](){return this;}[_0x4792e8(0x31c)](){return this;}['onRemoteAck'](){return this;}[_0x4792e8(0x219)](){return this;}['onRemoteRetry'](){return this;}[_0x4792e8(0x1be)](){return this;}[_0x4792e8(0x38d)](){return this;}['resend'](){const _0x57a967=_0x4792e8;throw Error(_0x57a967(0x213));}[_0x4792e8(0x32d)](){const _0x119aee=_0x4792e8;var _0x27b652,_0x2215a8,_0xbb12c6;(_0x27b652=this[_0x119aee(0x33c)])==null||(_0x2215a8=_0x27b652[_0x119aee(0x236)])==null||(_0x2215a8=_0x2215a8[_0x119aee(0x2d0)](_0x27b652,this[_0x119aee(0x24b)],_0x119aee(0x14c)))==null||_0x2215a8[_0x119aee(0x36b)](()=>void 0x0),(_0xbb12c6=this['_localCacheService'])==null||_0xbb12c6['updateOfflineData'](this[_0x119aee(0x24b)],this['type'],null,[]);}[_0x4792e8(0x1fb)](){const _0x59fbc1=_0x4792e8;this[_0x59fbc1(0x2c9)]?this[_0x59fbc1(0x2a2)][_0x59fbc1(0x2d9)]({'id':_0x59fbc1(0x2e1)}):this[_0x59fbc1(0x2a2)][_0x59fbc1(0x2d9)]({'id':'CONFLICT'});}['_disableEditing'](){const _0x23e331=_0x4792e8;this[_0x23e331(0x373)][_0x23e331(0x2e4)](new _0x3f892d(this[_0x23e331(0x24b)])['id'],!0x1);}};X=V([B(0x6,_0x42bf05(_0x1414dd)),B(0x7,_0x235ea9),B(0x8,_0x22a7f2),B(0x9,_0x42bf05(_0x2ee9c5)),B(0xa,_0x42bf05(_0x5ce553)),B(0xb,_0x42bf05(z)),B(0xc,_0x480fb8(U))],X);let Z=class extends G{constructor(_0x373005,_0x24fba5,_0x19055f,_0x33f3cc,_0x3fb9fa,_0x56528d,_0x4a7d95,_0x281615,_0x37aa46,_0x2e872b){const _0x4c6d74=_0x4792e8;super(_0x373005,_0x24fba5,_0x19055f,_0x33f3cc,_0x3fb9fa,_0x281615,_0x37aa46,_0x4a7d95,_0x2e872b),this[_0x4c6d74(0x320)]=_0x56528d,R(this,_0x4c6d74(0x254),_0x4c6d74(0x274));}[_0x4792e8(0x380)](_0xaf1056){const _0x9d02ce=_0x4792e8;return this[_0x9d02ce(0x2b8)]['push'](_0xaf1056),this[_0x9d02ce(0x2e2)](),this;}[_0x4792e8(0x31c)](_0x285946){const _0xd78f45=_0x4792e8;throw Error(_0xd78f45(0x20e));}['onRemoteAck'](){const _0x443cbb=_0x4792e8;throw Error(_0x443cbb(0x399));}['onRemoteRej'](){const _0x681ca7=_0x4792e8;throw Error(_0x681ca7(0x304));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x4792e8(0x38d)](){const _0x3b8f11=_0x4792e8;let {_injector:_0x3043f5,_pendingMutations:_0x130350,_awaitingChangeset:_0x359b9b,unitID:_0x298aa0,_handler:_0x4e4ba9,type:_0x184b74}=this,_0x4a738b=gn(_0x3043f5,_0x298aa0,_0x184b74,_0x359b9b,_0x130350,_0x4e4ba9);return _0x4a738b instanceof q?_0x4a738b['_schedule']():(_0x4a738b instanceof Y||_0x4a738b instanceof J)&&_0x4a738b[_0x3b8f11(0x17a)](),_0x4a738b;}[_0x4792e8(0x17a)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Z=V([B(0x5,_0x42bf05(_0x303c70)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x235ea9),B(0x8,_0x22a7f2),B(0x9,_0x480fb8(U))],Z);let Q=class extends G{constructor(_0x21157a,_0x1f24d9,_0xb222f1,_0x4d915d,_0x23a50e,_0x4c3f82,_0x205c31,_0x1f8482,_0x15036a,_0x4fe4be,_0x52ab43,_0x511df0,_0x35d28b,_0x25c6be){const _0x43b8ae=_0x4792e8;super(_0x21157a,_0x1f24d9,_0xb222f1,_0x4d915d,_0x205c31,_0x52ab43,_0x511df0,_0x15036a,_0x25c6be),this[_0x43b8ae(0x298)]=_0x23a50e,this['_queuedRemoteChangesets']=_0x4c3f82,this[_0x43b8ae(0x320)]=_0x1f8482,this[_0x43b8ae(0x398)]=_0x4fe4be,this[_0x43b8ae(0x1dd)]=_0x35d28b,this['localCacheService']=_0x25c6be,R(this,_0x43b8ae(0x254),_0x43b8ae(0x170));}[_0x4792e8(0x259)](_0x5ec466){const _0x4b0712=_0x4792e8;try{if(this[_0x4b0712(0x2c1)](_0x5ec466)[_0x4b0712(0x1de)])throw Error(_0x4b0712(0x2aa));if(this[_0x4b0712(0x2c1)]([...this[_0x4b0712(0x314)]][_0x4b0712(0x3da)]((_0x350757,_0x87bda3)=>_0x350757[_0x4b0712(0x1d8)]-_0x87bda3[_0x4b0712(0x1d8)]))[_0x4b0712(0x1de)])return this[_0x4b0712(0x314)]=[],this[_0x4b0712(0x2e2)](),this['_handler'][_0x4b0712(0x204)]({'from':this[_0x4b0712(0x2b5)](),'to':0x0}),this;let _0x335c77=this[_0x4b0712(0x218)],_0x10a813=this['_pendingMutations'],_0x371f90;if(_0x335c77&&_0x10a813[_0x4b0712(0x277)]!==0x0)_0x371f90=this[_0x4b0712(0x320)][_0x4b0712(0x332)](Y,this[_0x4b0712(0x24b)],this['type'],_0x335c77,_0x10a813,this[_0x4b0712(0x27e)],void 0x0);else{if(_0x335c77&&_0x10a813[_0x4b0712(0x277)]===0x0)_0x335c77['baseRev']=this['_getCurrentRevision'](),_0x371f90=this[_0x4b0712(0x320)]['createInstance'](J,this[_0x4b0712(0x24b)],this['type'],_0x335c77,this[_0x4b0712(0x27e)]);else{if(_0x10a813[_0x4b0712(0x277)]!==0x0){let _0x1e1419=this[_0x4b0712(0x320)][_0x4b0712(0x332)](q,this[_0x4b0712(0x24b)],this['type'],_0x10a813,this[_0x4b0712(0x27e)]);_0x1e1419['_schedule'](),_0x371f90=_0x1e1419;}else _0x371f90=this[_0x4b0712(0x320)]['createInstance'](K,this[_0x4b0712(0x24b)],this[_0x4b0712(0x306)],this[_0x4b0712(0x27e)]);}}return _0x371f90[_0x4b0712(0x2e2)](),_0x371f90;}catch(_0x45e6f9){return this[_0x4b0712(0x398)]['error'](_0x4b0712(0x289),_0x4b0712(0x2bb),_0x45e6f9),this[_0x4b0712(0x320)][_0x4b0712(0x332)](X,this[_0x4b0712(0x24b)],this[_0x4b0712(0x306)],this[_0x4b0712(0x218)],this[_0x4b0712(0x2b8)],this['_handler'],!0x1);}}[_0x4792e8(0x2c1)](_0x333b50){const _0x281a62=_0x4792e8;this[_0x281a62(0x317)]();for(let _0x5e97e4=0x0;_0x5e97e4<_0x333b50[_0x281a62(0x277)];_0x5e97e4++){let _0x372663=_0x333b50[_0x5e97e4],_0x2e62b1=this[_0x281a62(0x2b5)]();if(!(_0x372663[_0x281a62(0x1d8)]<=_0x2e62b1)){if(_0x372663['revision']>_0x2e62b1+0x1)return{'missingChangesets':!0x0};if(this[_0x281a62(0x1e9)](_0x372663)){this[_0x281a62(0x2ff)]();continue;}this[_0x281a62(0x1c6)](_0x372663),this[_0x281a62(0x317)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x3dc097){const _0x43320d=_0x4792e8;let _0x14b75e=_0x3dc097,_0x1b87bf=this[_0x43320d(0x218)];if(_0x1b87bf){let _0x2fa758=this['_transformService'][_0x43320d(0x3e6)]([_0x3dc097],[_0x1b87bf],!0x1);if(!_0xbba3f(_0x2fa758))throw _0x2fa758['error'];_0x14b75e=_0x2fa758[_0x43320d(0x290)][0x0],_0x1b87bf=_0x2fa758[_0x43320d(0x268)][0x0];}let _0xb7c5f6=this[_0x43320d(0x2b8)];if(_0xb7c5f6[_0x43320d(0x277)]){let _0x4fd119=this[_0x43320d(0x1dd)][_0x43320d(0x2e6)](_0x14b75e,_0xb7c5f6);if(!_0x23cb3e(_0x4fd119))throw _0x4fd119[_0x43320d(0x269)];_0x14b75e=_0x4fd119[_0x43320d(0x290)],_0xb7c5f6=_0x4fd119[_0x43320d(0x157)];}this[_0x43320d(0x34f)](_0x14b75e),_0x1b87bf&&(_0x1b87bf['baseRev']=this[_0x43320d(0x2b5)]()),this[_0x43320d(0x218)]=_0x1b87bf,this[_0x43320d(0x2b8)]=_0xb7c5f6;}[_0x4792e8(0x317)](){const _0x1b00c4=_0x4792e8;if(!this[_0x1b00c4(0x218)]||this[_0x1b00c4(0x298)]==null)return;let _0x5d9ddf=this[_0x1b00c4(0x2b5)]();if(this['_acknowledgedAwaitingRevision']<=_0x5d9ddf)throw Error(_0x1b00c4(0x293)+this[_0x1b00c4(0x298)]+'.');this[_0x1b00c4(0x298)]===_0x5d9ddf+0x1&&this[_0x1b00c4(0x2ff)]();}[_0x4792e8(0x2ff)](){const _0x1b66bf=_0x4792e8;this[_0x1b66bf(0x15e)](),this[_0x1b66bf(0x218)]=null,this[_0x1b66bf(0x298)]=null;}[_0x4792e8(0x1e9)](_0x164aa3){const _0x4de71d=_0x4792e8;let _0x58d136=this[_0x4de71d(0x218)];return!_0x58d136||!_0x58d136['sid']||_0x58d136[_0x4de71d(0x14f)]===null||_0x58d136[_0x4de71d(0x14f)]===void 0x0?!0x1:_0x164aa3[_0x4de71d(0x24b)]===_0x58d136[_0x4de71d(0x24b)]&&_0x164aa3[_0x4de71d(0x18f)]===_0x58d136[_0x4de71d(0x18f)]&&_0x164aa3[_0x4de71d(0x14f)]===_0x58d136[_0x4de71d(0x14f)];}[_0x4792e8(0x17a)](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x4434f1){const _0x5a1a27=_0x4792e8;return this[_0x5a1a27(0x2b8)]['push'](_0x4434f1),this;}['onRemoteChangeset'](_0x307fa1){const _0x337aed=_0x4792e8;return this[_0x337aed(0x314)][_0x337aed(0x198)](_0x307fa1),this;}['onRemoteAck'](_0x15097a){const _0x1ac5ac=_0x4792e8;if(this[_0x1ac5ac(0x218)]){let _0x10b8ac=this['_getCurrentRevision']();return _0x15097a[_0x1ac5ac(0x1d8)]<=_0x10b8ac||(_0x10b8ac+0x1===_0x15097a[_0x1ac5ac(0x1d8)]?(this[_0x1ac5ac(0x15e)](),this[_0x1ac5ac(0x218)]=null,this[_0x1ac5ac(0x298)]=null):this[_0x1ac5ac(0x298)]=_0x15097a[_0x1ac5ac(0x1d8)]),this;}if(_0x15097a[_0x1ac5ac(0x1d8)]<=this['_getCurrentRevision']())return this;throw Error(_0x1ac5ac(0x3ac));}[_0x4792e8(0x219)](_0xaec93){const _0x19392a=_0x4792e8;return this[_0x19392a(0x3df)](!!(_0xaec93!=null&&_0xaec93['isPermissionRej']));}[_0x4792e8(0x1db)](){return this;}[_0x4792e8(0x1be)](){const _0x5520c5=_0x4792e8;return this[_0x5520c5(0x320)][_0x5520c5(0x332)](Z,this['unitID'],this[_0x5520c5(0x306)],this[_0x5520c5(0x218)],this['_pendingMutations'],this[_0x5520c5(0x27e)]);}['toggleOnline'](){return this;}['_onConflict'](_0x1d983d){const _0x4f84a2=_0x4792e8;return this[_0x4f84a2(0x320)]['createInstance'](X,this[_0x4f84a2(0x24b)],this[_0x4f84a2(0x306)],this[_0x4f84a2(0x218)],this[_0x4f84a2(0x2b8)],this[_0x4f84a2(0x27e)],_0x1d983d);}};Q=V([B(0x7,_0x42bf05(_0x303c70)),B(0x8,_0x42bf05(_0x2ee9c5)),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x22a7f2),B(0xc,_0x44c79e),B(0xd,_0x480fb8(U))],Q);function gn(_0x24c112,_0x311e9e,_0x303573,_0x5ae8b7,_0x458d02,_0x5eb7c9){const _0x550e91=_0x4792e8;return _0x5ae8b7&&_0x458d02[_0x550e91(0x277)]?_0x24c112[_0x550e91(0x332)](Y,_0x311e9e,_0x303573,_0x5ae8b7,_0x458d02,_0x5eb7c9,void 0x0):_0x5ae8b7?_0x24c112[_0x550e91(0x332)](J,_0x311e9e,_0x303573,_0x5ae8b7,_0x5eb7c9):_0x458d02[_0x550e91(0x277)]?_0x24c112[_0x550e91(0x332)](q,_0x311e9e,_0x303573,_0x458d02,_0x5eb7c9):_0x24c112[_0x550e91(0x332)](K,_0x311e9e,_0x303573,_0x5eb7c9);}let $=class extends _0x3b463b{get[_0x4792e8(0x159)](){return this['_state'];}constructor(_0x453557,_0x5cc873,_0x31b85e,_0x6d7852,_0x2b2829,_0x325da7,_0x45e9e3,_0x504475,_0x4b7fb8,_0x38f316,_0x1dd4ac,_0x567a41,_0x4538bf,_0x5b9e00){const _0x1f3770=_0x4792e8;super(),this[_0x1f3770(0x24b)]=_0x453557,this[_0x1f3770(0x1b0)]=_0x5cc873,this[_0x1f3770(0x1d0)]=_0x31b85e,this['_injector']=_0x6d7852,this[_0x1f3770(0x250)]=_0x2b2829,this[_0x1f3770(0x313)]=_0x325da7,this[_0x1f3770(0x2a5)]=_0x45e9e3,this[_0x1f3770(0x1cd)]=_0x504475,this[_0x1f3770(0x3bf)]=_0x4b7fb8,this[_0x1f3770(0x398)]=_0x38f316,this[_0x1f3770(0x1a0)]=_0x1dd4ac,this[_0x1f3770(0x373)]=_0x567a41,this['_singleActiveUnitService']=_0x4538bf,this[_0x1f3770(0x33c)]=_0x5b9e00,R(this,_0x1f3770(0x24a),new _0x4093e5(null)),R(this,'state$',this[_0x1f3770(0x24a)][_0x1f3770(0x3c5)]()),R(this,_0x1f3770(0x173),void 0x0),R(this,_0x1f3770(0x2f3),!0x1),R(this,_0x1f3770(0x3d3),''),R(this,'_changesetReqId',0x0),R(this,_0x1f3770(0x192),this[_0x1f3770(0x202)]['pipe'](_0x3c9835(_0x787fb6=>_0x787fb6?_0x787fb6[_0x1f3770(0x254)]:_0x1f3770(0x274)),_0x3ebe4c({'bufferSize':0x1,'refCount':!0x0}))),R(this,_0x1f3770(0x292),!0x1),R(this,'_remoteChangesetQueue',[]);}async[_0x4792e8(0x350)](){const _0xce5bcf=_0x4792e8;if(this[_0xce5bcf(0x159)])throw Error(_0xce5bcf(0x26d));await this[_0xce5bcf(0x2f0)]();}[_0x4792e8(0x28b)](){const _0x5c471f=_0x4792e8;return this[_0x5c471f(0x2f3)]=!0x0,_0x10e2de(()=>{const _0x100e0d=_0x5c471f;this['_collaborationPaused']=!0x1,this[_0x100e0d(0x3d6)]();});}[_0x4792e8(0x347)](_0x3a2451){const _0xd5f294=_0x4792e8;this[_0xd5f294(0x2fb)](_0x3a2451);}[_0x4792e8(0x27b)](_0x12fc4c){const _0x60fdf2=_0x4792e8;this['_state']=_0x12fc4c,this[_0x60fdf2(0x24a)][_0x60fdf2(0x1ff)](_0x12fc4c);}async[_0x4792e8(0x2f0)](){const _0x5a81a1=_0x4792e8;if(this[_0x5a81a1(0x27b)](await this[_0x5a81a1(0x1af)]()),this[_0x5a81a1(0x1eb)]){var _0x8f696c;(_0x8f696c=this[_0x5a81a1(0x1eb)])==null||_0x8f696c[_0x5a81a1(0x1e1)](this[_0x5a81a1(0x24b)]),this[_0x5a81a1(0x18d)](this[_0x5a81a1(0x1eb)][_0x5a81a1(0x148)](this[_0x5a81a1(0x24b)])['subscribe'](_0x445b73=>{const _0x262a80=_0x5a81a1;this[_0x262a80(0x398)][_0x262a80(0x34c)](_0x262a80(0x262),_0x262a80(0x174),_0x445b73),_0x445b73===0x1?(this[_0x262a80(0x1cd)][_0x262a80(0x2d9)]({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService'][_0x262a80(0x2e4)](new _0x3f892d(this[_0x262a80(0x24b)])['id'],!0x1),this[_0x262a80(0x373)][_0x262a80(0x301)](!0x1)):(this[_0x262a80(0x373)][_0x262a80(0x2e4)](new _0x3f892d(this[_0x262a80(0x24b)])['id'],!0x0),this[_0x262a80(0x373)][_0x262a80(0x301)](!0x0));}));}let _0x10a62f=!0x1;return this['disposeWithMe'](this[_0x5a81a1(0x1b0)][_0x5a81a1(0x1c2)]['subscribe'](_0x15ddaa=>{const _0x317213=_0x5a81a1;_0x15ddaa===0x3?this[_0x317213(0x2a0)](_0x10a62f):_0x15ddaa===0x2&&(_0x10a62f=!0x0,this[_0x317213(0x390)]());})),this[_0x5a81a1(0x18d)](this['session'][_0x5a81a1(0x32a)][_0x5a81a1(0x31b)](_0x2e94da=>{const _0x1f4904=_0x5a81a1;try{switch(_0x2e94da['eventID']){case _0xfb25b2[_0x1f4904(0x3bd)]:this[_0x1f4904(0x284)](_0x3195f2(_0x2e94da['data']));break;case _0xfb25b2[_0x1f4904(0x1b1)]:this[_0x1f4904(0x2e9)](_0x2e94da[_0x1f4904(0x325)]);break;case _0xfb25b2['CHANGESET_REJ']:this[_0x1f4904(0x323)]();break;case _0xfb25b2['CHANGESET_SHOULD_RETRY']:this[_0x1f4904(0x16c)](_0x2e94da[_0x1f4904(0x325)]);break;case _0xfb25b2[_0x1f4904(0x24d)]:this[_0x1f4904(0x230)](_0x2e94da[_0x1f4904(0x325)][_0x1f4904(0x3b0)][_0x1f4904(0x24f)](_0x4a85fc=>_0x3195f2(_0x4a85fc)));break;case _0xfb25b2[_0x1f4904(0x28c)]:this[_0x1f4904(0x323)]({'isPermissionRej':!0x0});break;case _0xfb25b2[_0x1f4904(0x272)]:break;}}catch(_0xe36bde){throw console[_0x1f4904(0x269)](_0x1f4904(0x362),_0xe36bde),_0xe36bde;}})),this[_0x5a81a1(0x173)];}[_0x4792e8(0x2da)](){this['_transitionLocked']=!0x1;}[_0x4792e8(0x2f4)](){const _0x5edcf6=_0x4792e8;if(this[_0x5edcf6(0x292)])throw Error(_0x5edcf6(0x344));this[_0x5edcf6(0x292)]=!0x0;}[_0x4792e8(0x2fb)](_0x44e7fa){const _0x367278=_0x4792e8;this[_0x367278(0x2f4)](),this[_0x367278(0x27b)](this[_0x367278(0x173)][_0x367278(0x380)](_0x44e7fa)),this[_0x367278(0x2da)]();}[_0x4792e8(0x284)](_0x319a7b){const _0x28173c=_0x4792e8;if(!(_0x319a7b[_0x28173c(0x1d8)]<=this[_0x28173c(0x2a5)][_0x28173c(0x28d)](this[_0x28173c(0x24b)]))){if(this[_0x28173c(0x2f3)]){this['_remoteChangesetQueue'][_0x28173c(0x198)](_0x319a7b);return;}this[_0x28173c(0x3af)](_0x319a7b);}}[_0x4792e8(0x3d6)](){const _0x4578b1=_0x4792e8;this['_remoteChangesetQueue']['forEach'](_0x4ed88e=>this[_0x4578b1(0x3af)](_0x4ed88e)),this[_0x4578b1(0x357)]=[];}[_0x4792e8(0x3af)](_0x318fc4){const _0x59a5f9=_0x4792e8;let _0x37d77a=this[_0x59a5f9(0x250)]['interceptor'][_0x59a5f9(0x20c)](this[_0x59a5f9(0x250)][_0x59a5f9(0x1e5)][_0x59a5f9(0x1dc)]()[_0x59a5f9(0x229)])(_0x318fc4['mutations'],null)||_0x318fc4[_0x59a5f9(0x3a6)],_0x535a28={..._0x318fc4,'mutations':_0x37d77a};this[_0x59a5f9(0x2f4)](),this[_0x59a5f9(0x27b)](this[_0x59a5f9(0x173)][_0x59a5f9(0x31c)](_0x535a28)),this[_0x59a5f9(0x2da)]();}[_0x4792e8(0x2e9)](_0x669029){const _0x24d9b6=_0x4792e8;this[_0x24d9b6(0x2f4)](),this[_0x24d9b6(0x27b)](this[_0x24d9b6(0x173)]['onRemoteAck'](_0x669029)),this[_0x24d9b6(0x2da)]();}[_0x4792e8(0x323)](_0x1a6692){const _0x199b43=_0x4792e8;this[_0x199b43(0x2f4)](),this['_updateState'](this[_0x199b43(0x173)]['onRemoteRej'](_0x1a6692)),this['_unlockTransition']();}['_onRemoteRetry'](_0x257ebb){const _0x55b100=_0x4792e8;this[_0x55b100(0x2f4)](),this[_0x55b100(0x27b)](this[_0x55b100(0x173)][_0x55b100(0x1db)](_0x257ebb)),this[_0x55b100(0x2da)]();}[_0x4792e8(0x230)](_0x300730){const _0x11874c=_0x4792e8;if(!(this[_0x11874c(0x173)]instanceof Q))throw TypeError(_0x11874c(0x2eb));let _0x31857a=_0x300730[_0x11874c(0x24f)](_0xb2923e=>{const _0x38577a=_0x11874c;let _0x16648e=this[_0x38577a(0x250)][_0x38577a(0x1e5)][_0x38577a(0x20c)](this['_compressMutationService'][_0x38577a(0x1e5)][_0x38577a(0x1dc)]()[_0x38577a(0x229)])(_0xb2923e[_0x38577a(0x3a6)],null)||_0xb2923e[_0x38577a(0x3a6)];return{..._0xb2923e,'mutations':_0x16648e};});this[_0x11874c(0x2f4)](),this[_0x11874c(0x27b)](this[_0x11874c(0x173)][_0x11874c(0x259)](_0x31857a)),this[_0x11874c(0x2da)]();}[_0x4792e8(0x390)](){const _0x4d9192=_0x4792e8;this[_0x4d9192(0x2f4)](),this['_updateState'](this['_state']['toggleOffline']()),this['_unlockTransition']();}[_0x4792e8(0x2a0)](_0x2cce13=!0x1){const _0x485f39=_0x4792e8;this[_0x485f39(0x2f4)](),this[_0x485f39(0x27b)](this[_0x485f39(0x173)][_0x485f39(0x38d)]()),this[_0x485f39(0x2da)]();let _0x552af2=this['_state'];_0x2cce13&&_0x552af2 instanceof K&&(this[_0x485f39(0x2f4)](),this[_0x485f39(0x27b)](_0x552af2[_0x485f39(0x37d)]()),this[_0x485f39(0x2da)]());}async['_createInitialState'](){return new Promise(_0x2d4d94=>{const _0x34eb88=_0xf8b7;this['session'][_0x34eb88(0x1c2)][_0x34eb88(0x23f)](_0x2b5e35(0x1))[_0x34eb88(0x31b)](async _0x404cbb=>{const _0x2b3761=_0x34eb88;_0x2d4d94(await this[_0x2b3761(0x32b)](_0x404cbb===0x3));});});}[_0x4792e8(0x24c)](){const _0x4afb68=_0x4792e8;let _0x5de2d4=this[_0x4afb68(0x24b)];return{'onStateChange':(_0x108370,_0x49de0f)=>{const _0x2602d9=_0x4afb68;if(_0x108370!==this[_0x2602d9(0x173)])throw Error(_0x2602d9(0x3ba)+_0x108370['status']+_0x2602d9(0x1d5)+_0x49de0f['status']+_0x2602d9(0x2d4)+this[_0x2602d9(0x173)][_0x2602d9(0x254)]);this[_0x2602d9(0x27b)](_0x49de0f);},'onSendChangeset':_0x13f3e6=>{const _0x24a158=_0x4afb68;_0x13f3e6[_0x24a158(0x18f)]||(_0x13f3e6[_0x24a158(0x18f)]=this[_0x24a158(0x3d3)],_0x13f3e6[_0x24a158(0x14f)]=++this[_0x24a158(0x206)]);let _0x556b0b={'eventID':_0xfb25b2[_0x24a158(0x15f)],'data':{'unitID':_0x13f3e6[_0x24a158(0x24b)],'unitType':this['_type'],'changeset':_0x13f3e6,'memberID':this[_0x24a158(0x1b0)]['getMemberID']()}};this[_0x24a158(0x1b0)][_0x24a158(0x379)](_0x556b0b,this[_0x24a158(0x24b)]);},'onMissingChangesets':({from:_0x4d89bf,to:_0x53a84e})=>{const _0x40663a=_0x4afb68;this[_0x40663a(0x398)][_0x40663a(0x34c)](_0x40663a(0x262),_0x40663a(0x3c1)+_0x4d89bf+_0x40663a(0x2e8)+_0x53a84e);let _0x4f5d50={'eventID':_0xfb25b2[_0x40663a(0x3c2)],'data':{'unitID':_0x5de2d4,'unitType':this[_0x40663a(0x1d0)],'from':_0x4d89bf,'to':_0x53a84e}};this[_0x40663a(0x1b0)][_0x40663a(0x379)](_0x4f5d50,this[_0x40663a(0x24b)]);}};}async[_0x4792e8(0x32b)](_0x4f5959){const _0x688510=_0x4792e8;var _0x1962d6,_0x5af42f,_0xe043e6;let _0x3c84ac=await((_0x1962d6=this[_0x688510(0x33c)])==null?void 0x0:_0x1962d6['loadOfflineData'](this[_0x688510(0x24b)])),_0xd61116=(_0x5af42f=_0x3c84ac==null?void 0x0:_0x3c84ac['mutations'])==null?[]:_0x5af42f,_0x2f8612=(_0xe043e6=_0x3c84ac==null?void 0x0:_0x3c84ac['awaitingChangeset'])==null?null:_0xe043e6,_0x1166eb=!!(_0x2f8612!=null&&_0x2f8612[_0x688510(0x18f)])&&!!(_0x2f8612!=null&&_0x2f8612[_0x688510(0x14f)]);this[_0x688510(0x3d3)]=_0x1166eb?_0x2f8612[_0x688510(0x18f)]:_0x9592e0(),this['_changesetReqId']=_0x1166eb?_0x2f8612[_0x688510(0x14f)]:0x0;let _0x4a7bc1=this['unitID'];try{this[_0x688510(0x35c)](_0x2f8612,_0xd61116);}catch(_0x8de8fe){this[_0x688510(0x398)][_0x688510(0x269)](_0x8de8fe);}let _0x2ae1f7=this[_0x688510(0x24c)]();if(_0x4f5959){let _0x75af17=gn(this['_injector'],_0x4a7bc1,this[_0x688510(0x1d0)],_0x2f8612,_0xd61116,_0x2ae1f7);return _0x75af17 instanceof q?_0x75af17[_0x688510(0x389)]():(_0x75af17 instanceof Y||_0x75af17 instanceof J)&&_0x75af17[_0x688510(0x17a)](),_0x75af17;}return this[_0x688510(0x320)]['createInstance'](Z,_0x4a7bc1,this['_type'],_0x2f8612,_0xd61116,_0x2ae1f7);}['_replayCachedMutations'](_0xbe7954,_0x519ce0){const _0x18f2fc=_0x4792e8;var _0x81a107,_0x388916;let _0x5af6f3=this[_0x18f2fc(0x250)]['interceptor'][_0x18f2fc(0x20c)](this['_compressMutationService'][_0x18f2fc(0x1e5)][_0x18f2fc(0x1dc)]()[_0x18f2fc(0x229)]);(_0x81a107=_0x5af6f3((_0xbe7954==null?void 0x0:_0xbe7954[_0x18f2fc(0x3a6)])||[],null))==null||_0x81a107[_0x18f2fc(0x3e9)](_0x2b3bea=>this[_0x18f2fc(0x1a0)][_0x18f2fc(0x2a3)](_0x2b3bea['id'],_0x2b3bea[_0x18f2fc(0x33b)])),(_0x388916=_0x5af6f3(_0x519ce0||[],null))==null||_0x388916['forEach'](_0x58553e=>this[_0x18f2fc(0x1a0)]['executeCommand'](_0x58553e['id'],_0x58553e[_0x18f2fc(0x33b)]));}};$=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],$);let _n=class extends ${constructor(_0x4142cd,_0x37cb4d,_0x134c81,_0x26a278,_0x1f89d6,_0xb86c28,_0x1a5572,_0x43e781,_0x4eea9a,_0x468cf6,_0x3a2be8,_0x4e8b32,_0x5dae91,_0x20407d,_0x3ef415){const _0x4e0500=_0x4792e8;super(_0x4142cd,_0x134c81,_0x37cb4d,_0x26a278,_0x1f89d6,_0xb86c28,_0x1a5572,_0x43e781,_0x4eea9a,_0x468cf6,_0x3a2be8,_0x4e8b32,_0x20407d,_0x3ef415),this[_0x4e0500(0x24b)]=_0x4142cd,this[_0x4e0500(0x306)]=_0x37cb4d,this[_0x4e0500(0x1b6)]=_0x5dae91,R(this,_0x4e0500(0x377),null);}[_0x4792e8(0x2f1)](_0x4e2b77){this['_handlerCallback']=_0x4e2b77;}[_0x4792e8(0x387)](){const _0x3916ac=_0x4792e8;this[_0x3916ac(0x377)]=null,super[_0x3916ac(0x387)]();}[_0x4792e8(0x24c)](){const _0xb375db=_0x4792e8;let _0xc7b2a5=super[_0xb375db(0x24c)]();return _0xc7b2a5[_0xb375db(0x1e8)]=_0x4f2937=>{const _0x4b6f29=_0xb375db;var _0x5c34dc,_0x419567;return(_0x5c34dc=this[_0x4b6f29(0x377)])==null||(_0x419567=_0x5c34dc[_0x4b6f29(0x1e8)])==null?void 0x0:_0x419567['call'](_0x5c34dc,_0x4f2937);},_0xc7b2a5['onTransformState']=_0x2c6b58=>{const _0x4d7858=_0xb375db;var _0x4b2364,_0x226305;return(_0x4b2364=this[_0x4d7858(0x377)])==null||(_0x226305=_0x4b2364['onTransformState'])==null?void 0x0:_0x226305[_0x4d7858(0x2d0)](_0x4b2364,_0x2c6b58);},_0xc7b2a5[_0xb375db(0x3d7)]=_0x4ce319=>{const _0x1b36a4=_0xb375db;var _0x1e70ee,_0x2d5656;return(_0x1e70ee=this[_0x1b36a4(0x377)])==null||(_0x2d5656=_0x1e70ee[_0x1b36a4(0x3d7)])==null?void 0x0:_0x2d5656[_0x1b36a4(0x2d0)](_0x1e70ee,_0x4ce319);},_0xc7b2a5['onSyncEditingCollabCursor']=_0x276061=>{const _0x72960b=_0xb375db;var _0x14a461,_0x326e76;return(_0x14a461=this[_0x72960b(0x377)])==null||(_0x326e76=_0x14a461['onSyncEditingCollabCursor'])==null?void 0x0:_0x326e76[_0x72960b(0x2d0)](_0x14a461,_0x276061);},_0xc7b2a5[_0xb375db(0x1aa)]=_0x47d413=>{const _0xf11b65=_0xb375db;var _0x3ccf85,_0x212901,_0x3365a6;return(_0x3ccf85=(_0x212901=this[_0xf11b65(0x377)])==null||(_0x3365a6=_0x212901['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3365a6[_0xf11b65(0x2d0)](_0x212901,_0x47d413))==null?_0x47d413:_0x3ccf85;},_0xc7b2a5[_0xb375db(0x2f6)]=_0x542ab0=>{const _0x467d8d=_0xb375db;var _0x25e791,_0xd9f71b,_0x2ab8cf;return(_0x25e791=(_0xd9f71b=this[_0x467d8d(0x377)])==null||(_0x2ab8cf=_0xd9f71b['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x2ab8cf[_0x467d8d(0x2d0)](_0xd9f71b,_0x542ab0))==null?_0x542ab0:_0x25e791;},_0xc7b2a5;}async[_0x4792e8(0x2f0)](){const _0x546831=_0x4792e8;let _0x303e4f=await super[_0x546831(0x2f0)]();return this[_0x546831(0x18d)](this[_0x546831(0x1b6)][_0x546831(0x3e1)]['subscribe'](_0x14f421=>{const _0x1738b3=_0x546831;if(_0x14f421==null||_0x14f421[_0x1738b3(0x326)]!==this[_0x1738b3(0x24b)])return;let {commandId:_0x444790,redoState:_0x2c2961,unitId:_0x38540f}=_0x14f421,_0x295dd3={'id':_0x444790,'type':_0x14cb83[_0x1738b3(0x25e)],'params':{'unitId':_0x38540f,'actions':_0x2c2961[_0x1738b3(0x34d)],'textRanges':null}};this[_0x1738b3(0x2fb)](_0x295dd3);})),this['disposeWithMe'](this['_commandService']['onMutationExecutedForCollab']((_0x5ac2d7,_0x3674a6)=>{const _0xdf0f21=_0x546831;if(_0x5ac2d7['type']!==_0x14cb83[_0xdf0f21(0x25e)]||_0x3674a6!=null&&_0x3674a6[_0xdf0f21(0x3b1)]||_0x3674a6!=null&&_0x3674a6[_0xdf0f21(0x27f)]||_0x5ac2d7['id']===_0x34aba9['id'])return;let _0x577e12=_0x5ac2d7[_0xdf0f21(0x33b)];if((_0x577e12==null?void 0x0:_0x577e12[_0xdf0f21(0x326)])!==this[_0xdf0f21(0x24b)])return;let _0x4dc196=_0x5ac2d7,_0x5c0aec=this[_0xdf0f21(0x250)]['interceptor'][_0xdf0f21(0x20c)](this[_0xdf0f21(0x250)][_0xdf0f21(0x1e5)][_0xdf0f21(0x1dc)]()[_0xdf0f21(0x28e)])([_0x4dc196],this[_0xdf0f21(0x3bf)])||[_0x4dc196];this[_0xdf0f21(0x2fb)](_0x5c0aec[0x0]);})),_0x303e4f;}};_n=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x42bf05(_0x72975f)),B(0xd,_0x480fb8(W)),B(0xe,_0x480fb8(U))],_n);let vn=class extends ${constructor(_0x1d8c6c,_0x4529de,_0x117223,_0x100806,_0x52b784,_0x24089a,_0x599afb,_0x487885,_0x4cae8f,_0x2a9f58,_0x4eefea,_0x426f5c,_0x59f3fd,_0x3529e8){const _0x3b7423=_0x4792e8;super(_0x1d8c6c,_0x117223,_0x4529de,_0x100806,_0x52b784,_0x24089a,_0x599afb,_0x487885,_0x4cae8f,_0x2a9f58,_0x4eefea,_0x426f5c,_0x59f3fd,_0x3529e8),this[_0x3b7423(0x24b)]=_0x1d8c6c,this['type']=_0x4529de;}async[_0x4792e8(0x2f0)](){const _0x141264=_0x4792e8;let _0xfc0637=await super[_0x141264(0x2f0)]();return this[_0x141264(0x18d)](this[_0x141264(0x1a0)]['onMutationExecutedForCollab']((_0x196eae,_0x3a752a)=>{const _0x49eb55=_0x141264;if(_0x196eae[_0x49eb55(0x306)]!==_0x14cb83[_0x49eb55(0x25e)]||_0x3a752a!=null&&_0x3a752a[_0x49eb55(0x3b1)]||_0x3a752a!=null&&_0x3a752a[_0x49eb55(0x27f)])return;let _0x2c0d7a=_0x196eae[_0x49eb55(0x33b)];if((_0x2c0d7a==null?void 0x0:_0x2c0d7a[_0x49eb55(0x326)])!==this[_0x49eb55(0x24b)])return;let _0x20b4c3=_0x196eae,_0x4f4fc0=this[_0x49eb55(0x250)][_0x49eb55(0x1e5)][_0x49eb55(0x20c)](this[_0x49eb55(0x250)][_0x49eb55(0x1e5)]['getInterceptPoints']()[_0x49eb55(0x28e)])([_0x20b4c3],this['_univerInstanceService'])||[_0x20b4c3];this[_0x49eb55(0x2fb)](_0x4f4fc0[0x0]);})),_0xfc0637;}};vn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],vn);let yn=class extends ${constructor(_0x1de262,_0x270fa5,_0x33d5ec,_0x31d4bb,_0x559168,_0x1fd36a,_0xbd6b26,_0x2e7a2b,_0x5882af,_0x55b8e2,_0x33d021,_0x42cff4,_0x110d89,_0x39732f,_0x3c3a75){const _0x2167b4=_0x4792e8;super(_0x1de262,_0x33d5ec,_0x270fa5,_0x31d4bb,_0x559168,_0x1fd36a,_0xbd6b26,_0x5882af,_0x55b8e2,_0x33d021,_0x42cff4,_0x110d89,_0x39732f,_0x3c3a75),this[_0x2167b4(0x24b)]=_0x1de262,this[_0x2167b4(0x306)]=_0x270fa5,this[_0x2167b4(0x233)]=_0x2e7a2b;}[_0x4792e8(0x24c)](){const _0x1826db=_0x4792e8;let _0x3f9237=super[_0x1826db(0x24c)]();return _0x3f9237[_0x1826db(0x3d7)]=_0x5d225a=>this[_0x1826db(0x233)]['transformSelections'](_0x5d225a),_0x3f9237;}async[_0x4792e8(0x2f0)](){const _0x493c3a=_0x4792e8;let _0x24f229=await super[_0x493c3a(0x2f0)]();return this[_0x493c3a(0x18d)](this[_0x493c3a(0x1a0)][_0x493c3a(0x39f)]((_0x597602,_0x550fed)=>{const _0xc097b4=_0x493c3a;if(_0x597602[_0xc097b4(0x306)]!==_0x14cb83[_0xc097b4(0x25e)]||_0x550fed!=null&&_0x550fed[_0xc097b4(0x3b1)]||_0x550fed!=null&&_0x550fed[_0xc097b4(0x27f)])return;let _0x205b8b=_0x597602[_0xc097b4(0x33b)];if((_0x205b8b==null?void 0x0:_0x205b8b['unitId'])!==this[_0xc097b4(0x24b)])return;let _0x442849=_0x597602,_0x2b747d=this[_0xc097b4(0x250)][_0xc097b4(0x1e5)]['fetchThroughInterceptors'](this[_0xc097b4(0x250)][_0xc097b4(0x1e5)]['getInterceptPoints']()[_0xc097b4(0x28e)])([_0x442849],this[_0xc097b4(0x3bf)])||[_0x442849];this[_0xc097b4(0x2fb)](_0x2b747d[0x0]);})),_0x24f229;}};yn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(Gt)),B(0x8,_0x42bf05(z)),B(0x9,_0x3764b1),B(0xa,_0x1dc40d),B(0xb,_0x235ea9),B(0xc,_0x1414dd),B(0xd,_0x480fb8(W)),B(0xe,_0x480fb8(U))],yn);let bn=class extends ${constructor(_0x55e9df,_0x5abdd7,_0x592a6a,_0xa44ab3,_0x40c64e,_0x4abba4,_0x1812a9,_0xe6d149,_0x496a68,_0x1ed6f3,_0x2d9db4,_0x175910,_0x3009c2,_0x351290){const _0x287942=_0x4792e8;super(_0x55e9df,_0x592a6a,_0x5abdd7,_0xa44ab3,_0x40c64e,_0x4abba4,_0x1812a9,_0xe6d149,_0x496a68,_0x1ed6f3,_0x2d9db4,_0x175910,_0x3009c2,_0x351290),this[_0x287942(0x24b)]=_0x55e9df,this['type']=_0x5abdd7;}async[_0x4792e8(0x2f0)](){const _0xb4d756=_0x4792e8;let _0x309a35=await super[_0xb4d756(0x2f0)]();return this['disposeWithMe'](this[_0xb4d756(0x1a0)]['onMutationExecutedForCollab']((_0xd849a,_0x322c20)=>{const _0x270f6d=_0xb4d756;if(_0xd849a['type']!==_0x14cb83['MUTATION']||_0x322c20!=null&&_0x322c20[_0x270f6d(0x3b1)]||_0x322c20!=null&&_0x322c20[_0x270f6d(0x27f)])return;let _0x56cadd=_0xd849a[_0x270f6d(0x33b)];if((_0x56cadd==null?void 0x0:_0x56cadd[_0x270f6d(0x326)])!==this['unitID'])return;let _0x41a517=_0xd849a,_0x133712=this[_0x270f6d(0x250)][_0x270f6d(0x1e5)][_0x270f6d(0x20c)](this[_0x270f6d(0x250)][_0x270f6d(0x1e5)][_0x270f6d(0x1dc)]()[_0x270f6d(0x28e)])([_0x41a517],this[_0x270f6d(0x3bf)])||[_0x41a517];this[_0x270f6d(0x2fb)](_0x133712[0x0]);})),_0x309a35;}};bn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],bn);let xn=class extends ${constructor(_0x3198ab,_0x54c33f,_0x35c77f,_0x207f11,_0x5ed691,_0x687cae,_0x5ba0c4,_0x281bee,_0x2de764,_0x144464,_0x434c27,_0x44dae3,_0x4a168f,_0x45af20){const _0x6c5500=_0x4792e8;super(_0x3198ab,_0x35c77f,_0x54c33f,_0x207f11,_0x5ed691,_0x687cae,_0x5ba0c4,_0x281bee,_0x2de764,_0x144464,_0x434c27,_0x44dae3,_0x4a168f,_0x45af20),this[_0x6c5500(0x24b)]=_0x3198ab,this[_0x6c5500(0x306)]=_0x54c33f;}async[_0x4792e8(0x2f0)](){const _0x5541d7=_0x4792e8;let _0x32e4bc=await super[_0x5541d7(0x2f0)]();return this[_0x5541d7(0x18d)](this[_0x5541d7(0x1a0)][_0x5541d7(0x39f)]((_0x4b9967,_0x57a310)=>{const _0x43a59c=_0x5541d7;if(_0x4b9967[_0x43a59c(0x306)]!==_0x14cb83[_0x43a59c(0x25e)]||_0x57a310!=null&&_0x57a310[_0x43a59c(0x3b1)]||_0x57a310!=null&&_0x57a310[_0x43a59c(0x27f)])return;let _0x570517=_0x4b9967[_0x43a59c(0x33b)];if((_0x570517==null?void 0x0:_0x570517[_0x43a59c(0x326)])!==this[_0x43a59c(0x24b)])return;let _0x45ed64=_0x4b9967,_0x4454c8=this[_0x43a59c(0x250)]['interceptor'][_0x43a59c(0x20c)](this[_0x43a59c(0x250)][_0x43a59c(0x1e5)]['getInterceptPoints']()[_0x43a59c(0x28e)])([_0x45ed64],this['_univerInstanceService'])||[_0x45ed64];this[_0x43a59c(0x2fb)](_0x4454c8[0x0]);})),_0x32e4bc;}};xn=V([B(0x3,_0x42bf05(_0x303c70)),B(0x4,_0x42bf05(_0x4f00f5)),B(0x5,_0x42bf05(_0x5ce553)),B(0x6,_0x42bf05(_0x2ee9c5)),B(0x7,_0x42bf05(z)),B(0x8,_0x3764b1),B(0x9,_0x1dc40d),B(0xa,_0x235ea9),B(0xb,_0x1414dd),B(0xc,_0x480fb8(W)),B(0xd,_0x480fb8(U))],xn);const Sn=_0x41885f(_0x4792e8(0x164));function Cn(_0x1ec42b){const _0x26a2bf=_0x4792e8;let _0x2fba47=_0x1ec42b['data'],_0x22e03e=JSON[_0x26a2bf(0x3dc)](_0x2fba47);switch(_0x22e03e['cmd']){case _0x1cca16[_0x26a2bf(0x18a)]:case _0x1cca16[_0x26a2bf(0x358)]:{let _0x44d1bb=_0x22e03e[_0x26a2bf(0x3bb)];return{..._0x22e03e,'data':_0x44d1bb,'cmd':_0x22e03e[_0x26a2bf(0x384)]};}case _0x1cca16[_0x26a2bf(0x3e7)]:{let _0x7fae10=_0x22e03e['joinRsp'];return{..._0x22e03e,'data':_0x7fae10,'cmd':_0x22e03e[_0x26a2bf(0x384)]};}case _0x1cca16[_0x26a2bf(0x156)]:{let _0x280187=_0x22e03e[_0x26a2bf(0x25f)];switch(_0x280187[_0x26a2bf(0x383)]){case _0xfb25b2[_0x26a2bf(0x28c)]:var _0x478d0d;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x478d0d=_0x280187[_0x26a2bf(0x21a)])==null?void 0x0:_0x478d0d['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2['CHANGESET_ACK']:var _0x149356;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x149356=_0x280187['csAckEvent'])==null?void 0x0:_0x149356['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x3bd)]:var _0x7ad732;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x7ad732=_0x280187[_0x26a2bf(0x14b)])==null?void 0x0:_0x7ad732['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x2db)]:var _0xda2346;return{..._0x22e03e,'data':{..._0x280187,'data':(_0xda2346=_0x280187['csRejEvent'])==null?void 0x0:_0xda2346['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x217)]:var _0x59f8e3;return{..._0x22e03e,'data':{..._0x280187,'data':(_0x59f8e3=_0x280187[_0x26a2bf(0x2b7)])==null?void 0x0:_0x59f8e3['cs']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2['UPDATE_CURSOR']:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['updateCursorEvent']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x2a7)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x1f6)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x303)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x365)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x147)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['liveShareNewHost']},'cmd':_0x22e03e['cmd']};case _0xfb25b2[_0x26a2bf(0x1fc)]:case _0xfb25b2['LIVESHARE_OPERATION']:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['liveShareOperation']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x235)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['liveShareNewHost']},'cmd':_0x22e03e['cmd']};case _0xfb25b2[_0x26a2bf(0x150)]:return{..._0x22e03e,'data':_0x280187,'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x3a5)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x296)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x35d)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x2f8)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x1c9)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187[_0x26a2bf(0x35b)]},'cmd':_0x22e03e[_0x26a2bf(0x384)]};case _0xfb25b2[_0x26a2bf(0x272)]:return{..._0x22e03e,'data':{..._0x280187,'data':_0x280187['uniscriptRunEvent']},'cmd':_0x22e03e[_0x26a2bf(0x384)]};default:return _0x22e03e;}}default:return _0x22e03e;}}function wn(_0x22fc5c){const _0x39341a=_0x4792e8;switch(_0x22fc5c[_0x39341a(0x384)]){case _0x1cca16[_0x39341a(0x18a)]:case _0x1cca16['HELLO']:return JSON[_0x39341a(0x32e)]({'cmd':_0x22fc5c[_0x39341a(0x384)],'routeKey':_0x22fc5c[_0x39341a(0x21d)]});case _0x1cca16['INGEST']:{let _0x1f549d;switch(_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x383)]){case _0xfb25b2['UPDATE_CURSOR']:_0x1f549d={'eventID':_0xfb25b2['UPDATE_CURSOR'],'updateCursorEvent':_0x22fc5c['data'][_0x39341a(0x325)]};break;case _0xfb25b2['USERS_LEAVE']:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x303)],'leaveEvent':_0x22fc5c['data']['data']};break;case _0xfb25b2[_0x39341a(0x2a7)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x2a7)],'joinEvent':_0x22fc5c['data'][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x147)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x147)],'liveShareNewHost':_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x2df)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x2df)],'liveShareOperation':_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x235)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x235)],'liveShareTerminate':_0x22fc5c['data'][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x286)]:_0x1f549d={'eventID':_0xfb25b2[_0x39341a(0x286)],'liveShareRequestHost':_0x22fc5c[_0x39341a(0x325)][_0x39341a(0x325)]};break;case _0xfb25b2[_0x39341a(0x1fc)]:_0x1f549d={'eventID':_0xfb25b2['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x1f549d={'eventID':_0x22fc5c['data'][_0x39341a(0x383)]};}return JSON['stringify']({'cmd':_0x22fc5c['cmd'],'routeKey':_0x22fc5c['routeKey'],'collaMsg':_0x1f549d});}case _0x1cca16[_0x39341a(0x3e7)]:return JSON[_0x39341a(0x32e)]({'cmd':_0x22fc5c['cmd'],'routeKey':_0x22fc5c[_0x39341a(0x21d)],'joinReq':_0x22fc5c[_0x39341a(0x325)]});case _0x1cca16[_0x39341a(0x369)]:return JSON[_0x39341a(0x32e)]({'cmd':_0x22fc5c[_0x39341a(0x384)],'routeKey':_0x22fc5c[_0x39341a(0x21d)],'leaveReq':_0x22fc5c[_0x39341a(0x325)]});default:throw Error(_0x39341a(0x33d));}}const Tn=_0x41885f(_0x4792e8(0x16d));function En(_0x7181a9,_0x4355da,_0x357af2){const _0x5e9580=_0x4792e8;return _0x7181a9+'/'+_0x4355da+_0x5e9580(0x355)+_0x357af2+_0x5e9580(0x31a);}let Dn=class extends _0x52a1e4{constructor(_0x5d0847,_0x4d0273,_0x1bc433,_0x44caab,_0x5d8638){const _0x7a094a=_0x4792e8;super(),this[_0x7a094a(0x320)]=_0x5d0847,this[_0x7a094a(0x1a3)]=_0x4d0273,this[_0x7a094a(0x183)]=_0x1bc433,this[_0x7a094a(0x398)]=_0x44caab,this['_snapshotServerService']=_0x5d8638;}['_doCreateSocket'](_0x60ff61){const _0x114e50=_0x4792e8;let _0x98fb99=this[_0x114e50(0x320)][_0x114e50(0x1b5)](_0x2eb1e7);if(!_0x98fb99)throw Error(_0x114e50(0x252));let _0x583edb=_0x98fb99[_0x114e50(0x3b9)](_0x60ff61);if(!_0x583edb)throw Error(_0x114e50(0x2a4));let _0x4dff7d=new _0x1f0700(),_0x58a3ff=new _0xb9cc50();_0x4dff7d[_0x114e50(0x342)](_0x583edb[_0x114e50(0x3ea)][_0x114e50(0x31b)](_0x29b3d5=>_0x58a3ff[_0x114e50(0x1ff)](_0x29b3d5))),_0x4dff7d[_0x114e50(0x342)](_0x10e2de(()=>_0x58a3ff['complete']()));let _0x28b955=new _0xb9cc50();_0x4dff7d[_0x114e50(0x342)](_0x583edb[_0x114e50(0x2c4)][_0x114e50(0x31b)](_0x15b9fa=>_0x28b955[_0x114e50(0x1ff)](_0x15b9fa))),_0x4dff7d[_0x114e50(0x342)](_0x10e2de(()=>_0x28b955[_0x114e50(0x1bb)]()));let _0xe297b7=new _0xb9cc50();_0x4dff7d[_0x114e50(0x342)](_0x583edb['message$'][_0x114e50(0x31b)](_0xffebc7=>{const _0x3296f2=_0x114e50;let _0x43dfcb=Cn(_0xffebc7);_0xe297b7[_0x3296f2(0x1ff)](_0x43dfcb);})),_0x4dff7d[_0x114e50(0x342)](_0x10e2de(()=>_0xe297b7[_0x114e50(0x1bb)]()));let _0x4a06a1,_0x303c96=()=>{const _0x84eccd=_0x114e50;_0x28b955['next'](new Event(_0x84eccd(0x3a4))),_0x58a3ff[_0x84eccd(0x1ff)](new Event(_0x84eccd(0x3a4))),_0x4a06a1[_0x84eccd(0x30b)]();};return _0x4a06a1={'memberID':'','close$':_0x58a3ff[_0x114e50(0x3c5)](),'error$':_0x28b955['asObservable'](),'open$':_0x583edb[_0x114e50(0x26c)],'message$':_0xe297b7[_0x114e50(0x3c5)](),'send':_0x5009c6=>{const _0x31dc6b=_0x114e50;if(_0x5009c6[_0x31dc6b(0x384)]===_0x1cca16[_0x31dc6b(0x18c)]){if(_0x5009c6[_0x31dc6b(0x325)][_0x31dc6b(0x383)]===_0xfb25b2[_0x31dc6b(0x15f)]){this['_submitChangeset'](_0x4a06a1,_0x5009c6[_0x31dc6b(0x325)])['catch'](_0x2c462b=>{const _0x5f2ca5=_0x31dc6b;this[_0x5f2ca5(0x398)][_0x5f2ca5(0x269)](_0x2c462b),_0x303c96();});return;}if(_0x5009c6[_0x31dc6b(0x325)][_0x31dc6b(0x383)]===_0xfb25b2['FETCH_MISSING']){let _0x322a91=_0x5009c6[_0x31dc6b(0x325)];this[_0x31dc6b(0x26e)](_0x322a91)[_0x31dc6b(0x153)](_0xd3d9ad=>{const _0x12eabd=_0x31dc6b;_0xe297b7['next']({'cmd':_0x1cca16[_0x12eabd(0x156)],'code':_0x5d2c4e['OK'],'routeKey':_0x322a91[_0x12eabd(0x325)][_0x12eabd(0x24b)],'routeType':'','data':{'eventID':_0xfb25b2[_0x12eabd(0x24d)],'data':{'changesets':_0xd3d9ad}}});})[_0x31dc6b(0x36b)](_0x2ca077=>{const _0x2888d2=_0x31dc6b;this[_0x2888d2(0x398)][_0x2888d2(0x269)](_0x2ca077),_0x303c96();});return;}}_0x583edb[_0x31dc6b(0x379)](wn(_0x5009c6));},'close':()=>{const _0x44563d=_0x114e50;_0x583edb[_0x44563d(0x30b)](),_0x4dff7d[_0x44563d(0x387)]();}},_0x4a06a1;}async[_0x4792e8(0x25a)](_0x501852,_0x2baae4){const _0x5624bb=_0x4792e8;var _0x52d5be;let {unitType:_0x4e1a8d,unitID:_0x5884f4,changeset:_0x36b194}=_0x2baae4[_0x5624bb(0x325)],_0x24f928={'unitID':_0x5884f4,'memberID':_0x501852[_0x5624bb(0x2bd)],'type':_0x4e1a8d,'changeset':_0x123852(_0x36b194)},_0x5e81e6=this[_0x5624bb(0x183)][_0x5624bb(0x3c8)](L),_0x2c94d6=En((_0x52d5be=_0x5e81e6==null?void 0x0:_0x5e81e6[_0x5624bb(0x1c4)])==null?_0x5624bb(0x1ae):_0x52d5be,_0x4e1a8d,_0x5884f4);try{await this[_0x5624bb(0x1a3)][_0x5624bb(0x14d)](_0x2c94d6,{'body':_0x24f928});}catch(_0x363e08){throw this['_logService'][_0x5624bb(0x269)](_0x5624bb(0x322),'submit\x20changeset\x20error!'),_0x363e08;}}async[_0x4792e8(0x26e)](_0xae28d4){const _0x325639=_0x4792e8;let {unitID:_0x1ee98b,from:_0x403265,to:_0x53e1dc,unitType:_0x227cc8}=_0xae28d4[_0x325639(0x325)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1ee98b,'type':_0x227cc8,'from':_0x403265,'to':_0x53e1dc}))[_0x325639(0x3b0)]['map'](_0xa5003d=>((_0xa5003d['mutations']===null||_0xa5003d[_0x325639(0x3a6)]===void 0x0)&&(_0xa5003d['mutations']=[]),_0xa5003d));}};Dn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x42bf05(_0x2c95c7)),B(0x2,_0x4d4035),B(0x3,_0x1dc40d),B(0x4,_0x315027)],Dn);const On=_0x41885f('univer-pro.collaboration-client-adapter-service');function kn(_0x4f1eb6={}){const _0xa9e100=_0x4792e8;return _0x4f1eb6[_0xa9e100(0x366)]?{'resolveUnit':_0x4f1eb6[_0xa9e100(0x366)]}:{'resolveUnit':_0x15ac6b=>({'target':{'unitId':_0x15ac6b['unitId'],'unitType':_0x15ac6b['unitType']}})};}function An(_0x2e80b5,_0x2d05b7,_0x429284){const _0x3fad26=_0x4792e8;var _0x5b39cc;let _0x1027a0=_0x429284[_0x3fad26(0x348)]['endpoint'];if(_0x1027a0!=null&&_0x1027a0['trim']()==='')throw Error(_0x3fad26(0x394));if(!_0x429284[_0x3fad26(0x348)]['unitId'])throw Error(_0x3fad26(0x1bd));return{'localUnitId':_0x2e80b5,'unitType':_0x2d05b7,'target':{'endpoint':_0x1027a0,'unitId':_0x429284[_0x3fad26(0x348)][_0x3fad26(0x326)],'unitType':(_0x5b39cc=_0x429284[_0x3fad26(0x348)][_0x3fad26(0x33e)])==null?_0x2d05b7:_0x5b39cc},'changeset':_0x429284[_0x3fad26(0x330)]};}let jn=class extends _0x52a1e4{constructor(_0x373432,_0x3cd341,_0x211447,_0x1ea198,_0x237cce,_0x22a91d,_0x3d7296){const _0x3f5fba=_0x4792e8;super(),this[_0x3f5fba(0x320)]=_0x373432,this[_0x3f5fba(0x398)]=_0x3cd341,this[_0x3f5fba(0x183)]=_0x211447,this['_socketService']=_0x1ea198,this[_0x3f5fba(0x2a2)]=_0x237cce,this[_0x3f5fba(0x381)]=_0x22a91d,this[_0x3f5fba(0x33a)]=_0x3d7296,R(this,_0x3f5fba(0x258),new Map()),R(this,_0x3f5fba(0x21b),new Map()),R(this,_0x3f5fba(0x382),new Map()),R(this,_0x3f5fba(0x207),new Map()),R(this,_0x3f5fba(0x18b),this['_getSocketChannel'](void 0x0)[_0x3f5fba(0x18b)][_0x3f5fba(0x3c5)]()),R(this,_0x3f5fba(0x329),new _0x4093e5(0x0)),R(this,_0x3f5fba(0x192),this[_0x3f5fba(0x329)]['asObservable']()),this['_listenToNetworkCondition']();}[_0x4792e8(0x19d)](){const _0xeb8a8c=_0x4792e8;this[_0xeb8a8c(0x33a)]&&this[_0xeb8a8c(0x18d)](this['_networkConditionService']['online$'][_0xeb8a8c(0x31b)](_0x5083ec=>{const _0x3edb2b=_0xeb8a8c;_0x5083ec&&this[_0x3edb2b(0x37f)](),_0x5083ec||this['_socketChannels'][_0x3edb2b(0x3e9)](_0x5d26c5=>this[_0x3edb2b(0x2d7)](_0x5d26c5));}));}[_0x4792e8(0x387)](){const _0x347635=_0x4792e8;super[_0x347635(0x387)](),this[_0x347635(0x207)][_0x347635(0x3e9)](_0x2bb213=>{const _0x5dd24e=_0x347635;var _0x1a5c48,_0x56a762;(_0x1a5c48=_0x2bb213[_0x5dd24e(0x299)])==null||_0x1a5c48['unsubscribe'](),_0x2bb213[_0x5dd24e(0x299)]=null,this[_0x5dd24e(0x1cb)](_0x2bb213),this[_0x5dd24e(0x356)](_0x2bb213),this[_0x5dd24e(0x1bc)](_0x2bb213),(_0x56a762=_0x2bb213[_0x5dd24e(0x18b)][_0x5dd24e(0x2ed)]())==null||_0x56a762[_0x5dd24e(0x30b)](),_0x2bb213[_0x5dd24e(0x18b)][_0x5dd24e(0x1bb)]();}),this[_0x347635(0x207)]['clear'](),this['_sessions'][_0x347635(0x3e9)](_0x49f98e=>_0x49f98e[_0x347635(0x387)]()),this[_0x347635(0x258)][_0x347635(0x211)](),this['_sessionChannels'][_0x347635(0x211)](),this[_0x347635(0x329)][_0x347635(0x1bb)]();}async[_0x4792e8(0x312)](_0x96164a,_0x15632f){const _0x3fe270=_0x4792e8;if(this[_0x3fe270(0x258)][_0x3fe270(0x287)](_0x96164a))return this['_sessions'][_0x3fe270(0x1b5)](_0x96164a);let _0x2eee16=this[_0x3fe270(0x21b)][_0x3fe270(0x1b5)](_0x96164a);if(_0x2eee16)return _0x2eee16;let _0x4f73eb=this[_0x3fe270(0x23e)](_0x96164a,_0x15632f);this['_pendingSessions'][_0x3fe270(0x2ea)](_0x96164a,_0x4f73eb);try{return await _0x4f73eb;}finally{this[_0x3fe270(0x21b)][_0x3fe270(0x1b9)](_0x96164a);}}async[_0x4792e8(0x23e)](_0x5a87d9,_0x417870){const _0x26776d=_0x4792e8;let _0x4e0954=await this[_0x26776d(0x1f0)](_0x5a87d9,_0x417870),_0x27b1cf=this[_0x26776d(0x1d6)](_0x4e0954[_0x26776d(0x348)][_0x26776d(0x1ce)]);this[_0x26776d(0x372)](_0x27b1cf);let _0x78d451=this[_0x26776d(0x320)]['createInstance'](Ht,_0x4e0954,_0x27b1cf[_0x26776d(0x18b)][_0x26776d(0x3c5)]());return this[_0x26776d(0x258)][_0x26776d(0x2ea)](_0x5a87d9,_0x78d451),this[_0x26776d(0x382)]['set'](_0x5a87d9,_0x27b1cf[_0x26776d(0x1f2)]),_0x78d451;}[_0x4792e8(0x3c4)](_0x4077fa){const _0x70ff5b=_0x4792e8;let _0x58dbb1=this[_0x70ff5b(0x258)]['get'](_0x4077fa),_0x68a490=this[_0x70ff5b(0x382)][_0x70ff5b(0x1b5)](_0x4077fa);if(_0x58dbb1&&(this[_0x70ff5b(0x258)][_0x70ff5b(0x1b9)](_0x4077fa),this[_0x70ff5b(0x382)]['delete'](_0x4077fa),_0x58dbb1[_0x70ff5b(0x30b)]()),_0x68a490&&!this['_hasSessionsForEndpoint'](_0x68a490)){var _0x4f4e64;let _0x1e49b7=this[_0x70ff5b(0x207)][_0x70ff5b(0x1b5)](_0x68a490);_0x1e49b7==null||(_0x4f4e64=_0x1e49b7[_0x70ff5b(0x18b)][_0x70ff5b(0x2ed)]())==null||_0x4f4e64[_0x70ff5b(0x30b)]();}}['reconnect'](){const _0x35c05d=_0x4792e8;(this['_socketChannels'][_0x35c05d(0x214)]?[...this[_0x35c05d(0x207)][_0x35c05d(0x19a)]()]:[this[_0x35c05d(0x1d6)](void 0x0)])[_0x35c05d(0x3e9)](_0x42817d=>{const _0x53117e=_0x35c05d;_0x42817d[_0x53117e(0x278)]=0x0,this['_clearRetryConnectingTimer'](_0x42817d),this[_0x53117e(0x309)](_0x42817d);});}[_0x4792e8(0x1cb)](_0x36db97){const _0x5cbdb3=_0x4792e8;_0x36db97[_0x5cbdb3(0x36e)]!=null&&(clearTimeout(_0x36db97[_0x5cbdb3(0x36e)]),_0x36db97[_0x5cbdb3(0x36e)]=null);}async[_0x4792e8(0x1ac)](_0x44d600){const _0x2994b5=_0x4792e8;var _0x2292e0,_0x577f2b;let _0x577d30=this[_0x2994b5(0x183)][_0x2994b5(0x3c8)](L),_0x51a88c=(_0x2292e0=(_0x577f2b=_0x44d600[_0x2994b5(0x1ce)])==null?_0x577d30==null?void 0x0:_0x577d30[_0x2994b5(0x3c6)]:_0x577f2b)==null?mt:_0x2292e0,_0x13998f=await this['_socketService'][_0x2994b5(0x3b9)](_0x51a88c);return _0x44d600[_0x2994b5(0x1f1)]=_0x13998f,_0x13998f;}async['_tryEnsureSocket'](_0x18fc73){const _0x2b960c=_0x4792e8;try{var _0x39105e,_0x44d119;let _0x1184d2=(_0x39105e=(_0x44d119=_0x18fc73[_0x2b960c(0x18b)][_0x2b960c(0x2ed)]())==null?_0x18fc73[_0x2b960c(0x1f1)]:_0x44d119)==null?await this[_0x2b960c(0x1ac)](_0x18fc73):_0x39105e;if(_0x1184d2){var _0x459fd0;let _0x38fb16=_0x1184d2[_0x2b960c(0x379)];_0x1184d2['send']=_0x247ac7=>(_0x247ac7[_0x2b960c(0x384)]!==_0x1cca16[_0x2b960c(0x369)]&&this['_rescheduleHeartbeat'](_0x18fc73),_0x38fb16[_0x2b960c(0x2fc)](_0x1184d2,[_0x247ac7])),(_0x459fd0=_0x18fc73[_0x2b960c(0x299)])==null||_0x459fd0[_0x2b960c(0x1f8)](),_0x18fc73['socketMessageSubscription']=null,_0x18fc73[_0x2b960c(0x299)]=_0x1184d2[_0x2b960c(0x374)][_0x2b960c(0x31b)](_0x22221c=>this['_onMessage'](_0x18fc73,_0x1184d2,_0x22221c)),_0x1184d2['error$'][_0x2b960c(0x23f)](_0x3e82c0(0x1))[_0x2b960c(0x31b)](_0x47780a=>this[_0x2b960c(0x398)][_0x2b960c(0x269)](_0x2b960c(0x2b3),_0x47780a)),_0x1184d2['open$'][_0x2b960c(0x23f)](_0x3e82c0(0x1))[_0x2b960c(0x31b)](()=>{const _0x461bf2=_0x2b960c;this[_0x461bf2(0x3f1)](_0x18fc73,_0x1184d2);}),_0x1184d2['close$'][_0x2b960c(0x23f)](_0x3e82c0(0x1))[_0x2b960c(0x31b)](_0x5c6332=>{const _0x1f2f9f=_0x2b960c;this[_0x1f2f9f(0x398)]['debug'](_0x1f2f9f(0x364),_0x1f2f9f(0x316),_0x5c6332),this[_0x1f2f9f(0x281)](_0x18fc73);});}}catch(_0x51df20){this[_0x2b960c(0x398)][_0x2b960c(0x269)](_0x51df20),this[_0x2b960c(0x281)](_0x18fc73);}}['_onConnectionOpen'](_0x1d8a0a,_0x1550ec){const _0x4152d8=_0x4792e8;this['_logService'][_0x4152d8(0x34c)](_0x4152d8(0x364),_0x4152d8(0x345)),_0x1550ec[_0x4152d8(0x379)]({'cmd':_0x1cca16[_0x4152d8(0x358)]}),this['_rescheduleHeartbeat'](_0x1d8a0a);}[_0x4792e8(0x2d7)](_0x4220c6){const _0x1630c3=_0x4792e8;_0x4220c6[_0x1630c3(0x177)]=!0x1,_0x4220c6[_0x1630c3(0x1f1)]=null,this[_0x1630c3(0x329)][_0x1630c3(0x1ff)](0x2),_0x4220c6['socket$']['next'](null),this[_0x1630c3(0x356)](_0x4220c6),this[_0x1630c3(0x1bc)](_0x4220c6);}[_0x4792e8(0x281)](_0x5d3a3e){const _0x1c1c93=_0x4792e8;var _0x19e6fd;this[_0x1c1c93(0x2d7)](_0x5d3a3e),this['_hasSessionsForEndpoint'](_0x5d3a3e[_0x1c1c93(0x1f2)])&&(_0x5d3a3e[_0x1c1c93(0x278)]<((_0x19e6fd=this[_0x1c1c93(0x183)][_0x1c1c93(0x3c8)](_0x1c1c93(0x360)))==null?0x3:_0x19e6fd)?(this[_0x1c1c93(0x2a2)][_0x1c1c93(0x2d9)]({'id':_0x1c1c93(0x2e0)}),this[_0x1c1c93(0x309)](_0x5d3a3e)):this['_collaborationUIEventService']['emitEvent']({'id':_0x1c1c93(0x3a1)}));}[_0x4792e8(0x309)](_0x523641){const _0xbf9b86=_0x4792e8;var _0x4ff7cd;let _0xbb99a8=_0x523641['retryCount'],_0x26d899=this[_0xbf9b86(0x183)]['getConfig'](L),_0x40f94a=_0xbb99a8===0x0?0x0:((_0x4ff7cd=_0x26d899==null?void 0x0:_0x26d899[_0xbf9b86(0x3dd)])==null?0x4e20:_0x4ff7cd)*0x2**_0xbb99a8;_0x523641[_0xbf9b86(0x36e)]=setTimeout(()=>{const _0x475df6=_0xbf9b86;clearTimeout(_0x523641[_0x475df6(0x36e)]),_0x523641[_0x475df6(0x36e)]=null,this[_0x475df6(0x372)](_0x523641);},_0x40f94a),_0x523641[_0xbf9b86(0x278)]+=0x1;}async[_0x4792e8(0x1f0)](_0x2f0ac5,_0x33fbea){return An(_0x2f0ac5,_0x33fbea,await this['_adapter']['resolveUnit']({'unitId':_0x2f0ac5,'unitType':_0x33fbea}));}[_0x4792e8(0x1fe)](_0xcf946d,_0x20c5ac,_0x47fde8){const _0x5205db=_0x4792e8;let {cmd:_0x44951e}=_0x47fde8;_0x44951e===_0x1cca16[_0x5205db(0x358)]&&!_0xcf946d[_0x5205db(0x177)]&&(_0x20c5ac[_0x5205db(0x2bd)]=_0x47fde8[_0x5205db(0x325)][_0x5205db(0x2bd)],_0xcf946d[_0x5205db(0x18b)][_0x5205db(0x1ff)](_0x20c5ac),this[_0x5205db(0x329)]['next'](0x3),_0xcf946d[_0x5205db(0x177)]=!0x0,_0xcf946d[_0x5205db(0x1f1)]=null),_0x44951e===_0x1cca16[_0x5205db(0x18a)]&&this[_0x5205db(0x356)](_0xcf946d),this[_0x5205db(0x280)](_0xcf946d);}[_0x4792e8(0x162)](_0x15449a){const _0x117bcf=_0x4792e8;return[...this[_0x117bcf(0x382)][_0x117bcf(0x19a)]()][_0x117bcf(0x2fe)](_0x34827a=>_0x34827a===_0x15449a);}[_0x4792e8(0x1d6)](_0x576c30){const _0x3c4ef1=_0x4792e8;let _0x81e507=_0x576c30==null?'':_0x576c30,_0x529ce6=this[_0x3c4ef1(0x207)][_0x3c4ef1(0x1b5)](_0x81e507);if(_0x529ce6)return _0x529ce6;let _0x2a3979={'endpointKey':_0x81e507,'endpoint':_0x576c30,'socket$':new _0x4093e5(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x3c4ef1(0x2ea)](_0x81e507,_0x2a3979),_0x2a3979;}[_0x4792e8(0x280)](_0x24caf3){const _0x305c3f=_0x4792e8;var _0x59998d;this['_clearHeartbeatTimer'](_0x24caf3),_0x24caf3[_0x305c3f(0x311)]=setTimeout(()=>this[_0x305c3f(0x239)](_0x24caf3),(_0x59998d=this[_0x305c3f(0x183)][_0x305c3f(0x3c8)](_0x305c3f(0x189)))==null?0x7530:_0x59998d);}['_sendHeartbeat'](_0x15ff21){const _0x51e568=_0x4792e8;_0x15ff21[_0x51e568(0x18b)][_0x51e568(0x2ed)]()[_0x51e568(0x379)]({'cmd':_0x1cca16[_0x51e568(0x18a)]}),this[_0x51e568(0x2ae)](_0x15ff21);}[_0x4792e8(0x2ae)](_0x286c2a){const _0x5d607b=_0x4792e8;var _0x517ecf;_0x286c2a[_0x5d607b(0x34a)]=setTimeout(()=>this['_onConnectionFailed'](_0x286c2a),(_0x517ecf=this['_configService'][_0x5d607b(0x3c8)](_0x5d607b(0x257)))==null?vt:_0x517ecf);}[_0x4792e8(0x1bc)](_0x20270d){const _0x1c6751=_0x4792e8;_0x20270d[_0x1c6751(0x311)]!=null&&(clearTimeout(_0x20270d[_0x1c6751(0x311)]),_0x20270d[_0x1c6751(0x311)]=null);}[_0x4792e8(0x356)](_0x2b8ab4){const _0x138b4a=_0x4792e8;_0x2b8ab4[_0x138b4a(0x34a)]!=null&&(clearTimeout(_0x2b8ab4[_0x138b4a(0x34a)]),_0x2b8ab4['timeoutTimer']=null);}};jn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x1dc40d),B(0x2,_0x4d4035),B(0x3,Tn),B(0x4,_0x42bf05(z)),B(0x5,On),B(0x6,_0x480fb8(Sn))],jn);let Mn=class extends _0x3b463b{constructor(_0x1c1949,_0x30fedb,_0x5b1526,_0x28fc45){const _0x11261a=_0x4792e8;var _0x421129;super(),this[_0x11261a(0x320)]=_0x1c1949,this[_0x11261a(0x1e4)]=_0x30fedb,this['_configService']=_0x5b1526,this['_univerInstanceService']=_0x28fc45,R(this,'_entities',new Map()),R(this,_0x11261a(0x2f5),new _0xb9cc50()),R(this,_0x11261a(0x1c5),this[_0x11261a(0x2f5)]['asObservable']()),((_0x421129=this['_configService']['getConfig'](_0x11261a(0x20b)))==null?void 0x0:_0x421129[_0x11261a(0x38e)])!==!0x1&&this[_0x11261a(0x2f0)]();}[_0x4792e8(0x387)](){const _0x793c87=_0x4792e8;super[_0x793c87(0x387)](),this['_entities'][_0x793c87(0x3e9)](_0x2bc498=>_0x2bc498[_0x793c87(0x387)]()),this[_0x793c87(0x385)][_0x793c87(0x211)]();}['getCollabEntity'](_0x481049){const _0x1ee130=_0x4792e8;var _0x1fd311;return(_0x1fd311=this['_entities'][_0x1ee130(0x1b5)](_0x481049))==null?null:_0x1fd311;}[_0x4792e8(0x194)](_0x46c276){const _0x294b39=_0x4792e8;let _0x4aae89=this[_0x294b39(0x15d)](_0x46c276);return _0x4aae89?_0x41b901(_0x4aae89):this[_0x294b39(0x2f5)]['pipe'](_0x410a39(_0x1f2a0d=>_0x1f2a0d['unitID']===_0x46c276));}[_0x4792e8(0x199)](_0xabf723){const _0x1abdcb=_0x4792e8;return _0x41dbe7(this[_0x1abdcb(0x194)](_0xabf723)[_0x1abdcb(0x23f)](_0x2c8ebc(()=>void 0x0)));}[_0x4792e8(0x2f0)](){const _0x13bedc=_0x4792e8;this[_0x13bedc(0x3bf)]['getTypeOfUnitAdded$'](_0x481a99[_0x13bedc(0x3f0)])['pipe'](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))['subscribe'](async _0xb37d11=>{const _0x59d3f5=_0x13bedc;let _0x3973f5=_0xb37d11[_0x59d3f5(0x2f7)][_0x59d3f5(0x256)](),_0x4ead4c=await this['_startCollaboration'](_0x3973f5,_0x481a99[_0x59d3f5(0x3f0)]);this[_0x59d3f5(0x385)]['set'](_0x3973f5,_0x4ead4c);}),this['_univerInstanceService'][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x1d2)])['pipe'](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))['pipe'](_0x410a39(_0x1b5225=>!_0x1b5225[_0x13bedc(0x2f7)][_0x13bedc(0x256)]()[_0x13bedc(0x28f)]('__')))[_0x13bedc(0x31b)](async _0x155ed7=>{const _0xd3d03b=_0x13bedc;let _0x117374=_0x155ed7[_0xd3d03b(0x2f7)]['getUnitId'](),_0x3d36a2=await this['_startCollaboration'](_0x117374,_0x481a99['UNIVER_DOC']);this[_0xd3d03b(0x385)][_0xd3d03b(0x2ea)](_0x117374,_0x3d36a2);}),this['_univerInstanceService'][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x1a9)])[_0x13bedc(0x23f)](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))[_0x13bedc(0x31b)](async _0x2ada35=>{const _0x1da6df=_0x13bedc;let _0x1e9140=_0x2ada35[_0x1da6df(0x2f7)][_0x1da6df(0x256)](),_0x1aef8f=await this[_0x1da6df(0x237)](_0x1e9140,_0x481a99[_0x1da6df(0x1a9)]);this[_0x1da6df(0x385)][_0x1da6df(0x2ea)](_0x1e9140,_0x1aef8f);}),this[_0x13bedc(0x3bf)][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x1cf)])['pipe'](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))[_0x13bedc(0x31b)](async _0x3ece17=>{const _0x4491fa=_0x13bedc;let _0x335cfc=_0x3ece17[_0x4491fa(0x2f7)][_0x4491fa(0x256)](),_0x5dda3a=await this[_0x4491fa(0x237)](_0x335cfc,_0x481a99[_0x4491fa(0x1cf)]);this[_0x4491fa(0x385)][_0x4491fa(0x2ea)](_0x335cfc,_0x5dda3a);}),this[_0x13bedc(0x3bf)][_0x13bedc(0x376)](_0x481a99[_0x13bedc(0x2c6)])[_0x13bedc(0x23f)](_0x516751(this[_0x13bedc(0x26f)]),_0x856ddb(0x10))[_0x13bedc(0x31b)](async _0x3b1841=>{const _0x504737=_0x13bedc;let _0x10e870=_0x3b1841[_0x504737(0x2f7)][_0x504737(0x256)](),_0x2c0c8a=await this['_startCollaboration'](_0x10e870,_0x481a99[_0x504737(0x2c6)]);this[_0x504737(0x385)][_0x504737(0x2ea)](_0x10e870,_0x2c0c8a);}),_0x20d630(this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x3f0)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x1d2)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x1a9)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x1cf)]),this[_0x13bedc(0x3bf)][_0x13bedc(0x16a)](_0x481a99[_0x13bedc(0x2c6)]))[_0x13bedc(0x23f)](_0x516751(this[_0x13bedc(0x26f)]))[_0x13bedc(0x31b)](_0x196909=>{const _0x3f401b=_0x13bedc;let _0x560fd8=_0x196909[_0x3f401b(0x256)](),_0x1c1dcd=this[_0x3f401b(0x385)][_0x3f401b(0x1b5)](_0x560fd8);_0x1c1dcd&&(_0x1c1dcd[_0x3f401b(0x387)](),this[_0x3f401b(0x385)][_0x3f401b(0x1b9)](_0x560fd8));});}async[_0x4792e8(0x237)](_0x513165,_0x5e851d){const _0x375837=_0x4792e8;let _0x4301a6=await this[_0x375837(0x1e4)]['requireSession'](_0x513165),_0x29a1f7=this[_0x375837(0x320)]['createInstance'](this[_0x375837(0x15c)](_0x5e851d),_0x513165,_0x5e851d,_0x4301a6);return await _0x29a1f7[_0x375837(0x350)](),this[_0x375837(0x2f5)][_0x375837(0x1ff)](_0x29a1f7),_0x29a1f7;}[_0x4792e8(0x15c)](_0x1f133a){const _0x3df579=_0x4792e8;switch(_0x1f133a){case _0x481a99[_0x3df579(0x1d2)]:return _n;case _0x481a99[_0x3df579(0x3f0)]:return yn;case _0x481a99[_0x3df579(0x1a9)]:return bn;case _0x481a99['UNIVER_BOARD']:return xn;case _0x481a99[_0x3df579(0x2c6)]:return vn;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x1f133a);}}};Mn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x42bf05(jn)),B(0x2,_0x4d4035),B(0x3,_0x3764b1)],Mn);var Nn=_0x4792e8(0x232),Pn=_0x4792e8(0x1e0);let Fn=class extends _0x52a1e4{constructor(_0x46d8c7,_0x3f57b0){const _0x11e647=_0x4792e8;super(),this['_univerInstanceService']=_0x46d8c7,this[_0x11e647(0x183)]=_0x3f57b0,this[_0x11e647(0x2f0)]();}[_0x4792e8(0x2f0)](){const _0x234b10=_0x4792e8;this[_0x234b10(0x18d)](this[_0x234b10(0x3bf)][_0x234b10(0x197)][_0x234b10(0x31b)](()=>{const _0x5a2578=_0x234b10;var _0x526b34;let _0x317b10=this[_0x5a2578(0x3bf)][_0x5a2578(0x2d8)](),_0x2fbd15=(_0x526b34=this[_0x5a2578(0x183)]['getConfig'](_0x5a2578(0x22e)))==null?_0x5a2578(0x23b):_0x526b34;_0x317b10 instanceof _0x4b553a&&(_0x2fbd15=_0x317b10[_0x5a2578(0x38a)]),document[_0x5a2578(0x2e7)]=_0x2fbd15;}));}};Fn=V([B(0x0,_0x3764b1),B(0x1,_0x4d4035)],Fn);let In=function(_0x46097c){const _0x29b5e3=_0x4792e8;return _0x46097c[_0x29b5e3(0x318)]=_0x29b5e3(0x318),_0x46097c[_0x29b5e3(0x30a)]=_0x29b5e3(0x30a),_0x46097c[_0x29b5e3(0x2b6)]=_0x29b5e3(0x2b6),_0x46097c;}({});const Ln=_0x41885f(_0x4792e8(0x35f));let Rn=class{constructor(_0x1d52d2,_0xccf8c1,_0x211601){const _0x2db5b3=_0x4792e8;this[_0x2db5b3(0x1a3)]=_0x1d52d2,this[_0x2db5b3(0x183)]=_0xccf8c1,this[_0x2db5b3(0x3bf)]=_0x211601;}[_0x4792e8(0x324)](){const _0x3ae117=_0x4792e8;var _0x93d7d5;return(_0x93d7d5=this[_0x3ae117(0x3d9)]()[_0x3ae117(0x263)])==null?{}:_0x93d7d5;}async['saveAttachment'](_0x3354ba){const _0x1bfe0e=_0x4792e8;let _0x156c7f=this[_0x1bfe0e(0x324)]();if(zn(_0x3354ba,_0x156c7f),_0x156c7f[_0x1bfe0e(0x2b9)])return _0x156c7f['upload'](_0x3354ba);let _0x2ff2f8=await this[_0x1bfe0e(0x38f)](_0x3354ba);return{'id':_0x2ff2f8,'name':_0x3354ba[_0x1bfe0e(0x38a)],'mimeType':_0x3354ba['type'],'size':_0x3354ba[_0x1bfe0e(0x214)],'sourceType':_0x1bfe0e(0x30a),'source':_0x2ff2f8};}async[_0x4792e8(0x38f)](_0x36c8a1){const _0x34a806=_0x4792e8;let _0x31d804=this[_0x34a806(0x3bf)][_0x34a806(0x2d8)](),_0x31db10=_0x31d804==null?void 0x0:_0x31d804[_0x34a806(0x256)]();if(!_0x31db10)throw Error(_0x34a806(0x3d2));let _0x123271=new FormData();_0x123271[_0x34a806(0x255)](_0x34a806(0x2d3),_0x36c8a1);let _0x4a29af=this[_0x34a806(0x23c)]()+'?size='+_0x36c8a1[_0x34a806(0x214)]['toString']()+'&source='+_0x2d4c14[_0x34a806(0x30c)]+_0x34a806(0x248)+encodeURIComponent(_0x31db10),_0x5520e7=(await this['_httpService'][_0x34a806(0x14d)](_0x4a29af,{'body':_0x123271}))['body'][_0x34a806(0x1f7)];if(typeof _0x5520e7!=_0x34a806(0x201)||!_0x5520e7)throw Error(_0x34a806(0x220));return _0x5520e7;}[_0x4792e8(0x23c)](){const _0x3d7994=_0x4792e8;var _0xa52c58;return(_0xa52c58=this[_0x3d7994(0x3d9)]()[_0x3d7994(0x27d)])==null?'/universer-api/stream/file/upload':_0xa52c58;}[_0x4792e8(0x3d9)](){const _0x3fd49d=_0x4792e8;var _0x552761;return(_0x552761=this[_0x3fd49d(0x183)]['getConfig'](_0x3fd49d(0x20b)))==null?{}:_0x552761;}};Rn=V([B(0x0,_0x42bf05(_0x2c95c7)),B(0x1,_0x42bf05(_0x4d4035)),B(0x2,_0x42bf05(_0x3764b1))],Rn);function zn(_0x3b771f,_0x57a3a4){const _0x196bc2=_0x4792e8;var _0x9dc660;if(_0x57a3a4[_0x196bc2(0x182)]!=null&&_0x3b771f[_0x196bc2(0x214)]>_0x57a3a4['maxSize'])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x9dc660=_0x57a3a4[_0x196bc2(0x1a4)])!=null&&_0x9dc660[_0x196bc2(0x277)]&&!_0x57a3a4[_0x196bc2(0x1a4)]['some'](_0x2058ab=>_0x3b771f['type']===_0x2058ab||_0x3b771f[_0x196bc2(0x38a)][_0x196bc2(0x339)](_0x2058ab)||_0x2058ab[_0x196bc2(0x339)]('/*')&&_0x3b771f[_0x196bc2(0x306)][_0x196bc2(0x28f)](_0x2058ab[_0x196bc2(0x276)](0x0,-0x1))))throw Error(_0x196bc2(0x3ec));}let Bn=class{constructor(_0x48fc75,_0x5e9387,_0x4b4b54){const _0x525945=_0x4792e8;this[_0x525945(0x183)]=_0x48fc75,this[_0x525945(0x1a3)]=_0x5e9387,this['localeService']=_0x4b4b54,this[_0x525945(0x350)]();}[_0x4792e8(0x350)](){const _0x595b74=_0x4792e8;this['_httpService'][_0x595b74(0x37e)]({'priority':0x1,'interceptor':(_0x3851ee,_0xd82ed6)=>_0xd82ed6(_0x3851ee)['pipe'](_0x42118f(async _0x42c895=>{const _0x1ea595=_0x595b74;let _0x41f102=_0x42c895;if(_0x41f102[_0x1ea595(0x254)]===0x191){if(typeof window>'u')throw Error(_0x1ea595(0x2fd));if(window[_0x1ea595(0x1d9)](this[_0x1ea595(0x2a6)]['t'](_0x1ea595(0x1b2)))){let _0x5f1599=window[_0x1ea595(0x2ca)](window['location']['href']);window[_0x1ea595(0x247)][_0x1ea595(0x341)]=this[_0x1ea595(0x2cb)]()+'?url='+_0x5f1599;}}return _0x41f102;}))});}[_0x4792e8(0x2cb)](){const _0x1263a6=_0x4792e8;var _0x299217;let _0x3243d4=this[_0x1263a6(0x183)]['getConfig'](L);return(_0x299217=_0x3243d4==null?void 0x0:_0x3243d4[_0x1263a6(0x3a7)])==null?_0x1263a6(0x200):_0x299217;}};Bn=V([B(0x0,_0x4d4035),B(0x1,_0x42bf05(_0x2c95c7)),B(0x2,_0x42bf05(_0x5ce553))],Bn);let Vn=class extends _0x52a1e4{constructor(_0x6f8e65,_0x287944){const _0x2b3322=_0x4792e8;super(),this[_0x2b3322(0x39c)]=_0x6f8e65,this[_0x2b3322(0x183)]=_0x287944,R(this,_0x2b3322(0x2c7),!0x1),this['_initMergeInterceptor']();}[_0x4792e8(0x2ac)](){const _0x24a82c=_0x4792e8;let _0x32916d=this;this[_0x24a82c(0x18d)](this[_0x24a82c(0x39c)][_0x24a82c(0x37e)]({'priority':0x3e7,'interceptor':_0x26d2f3({'isMatch'(_0x30d667){const _0x52e843=_0x24a82c;var _0x5ce1d7;if(_0x30d667[_0x52e843(0x363)]===_0x52e843(0x361)&&(_0x5ce1d7=_0x30d667[_0x52e843(0x3be)])!=null&&_0x5ce1d7['body']){let {objectID:_0x5e48c9,objectType:_0x21824c}=_0x30d667[_0x52e843(0x3be)][_0x52e843(0x3ad)]||{};if(!_0x5e48c9||_0x21824c===void 0x0)return!0x1;let _0x31e5b6=_0x32916d[_0x52e843(0x25b)]()+'/'+_0x21824c+_0x52e843(0x1a8)+_0x5e48c9+_0x52e843(0x39a);if(_0x30d667[_0x52e843(0x34b)]===_0x31e5b6)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x23e564){const _0x287392=_0x24a82c;var _0x345fb8;return(_0x345fb8=_0x23e564[_0x287392(0x3be)])==null?void 0x0:_0x345fb8[_0x287392(0x3ad)];},'mergeParamsToRequest'(_0x58cea8,_0x4c47a5){const _0x4df2e2=_0x24a82c;let _0x39d721=_0x32916d[_0x4df2e2(0x25b)]()+_0x4df2e2(0x2ab),_0x4be79f=_0x58cea8['reduce']((_0x49a4fe,_0x3c0579)=>{const _0x5c5c27=_0x4df2e2;let {unitID:_0x3abe49,objectID:_0x43338e,objectType:_0x677471,actions:_0xf4d515}=_0x3c0579;return _0x49a4fe[_0x3abe49]||(_0x49a4fe[_0x3abe49]={}),_0x49a4fe[_0x3abe49][_0x43338e]||(_0x49a4fe[_0x3abe49][_0x43338e]={'objectID':_0x43338e,'objectType':_0x677471,'actions':[]}),_0x49a4fe[_0x3abe49][_0x43338e][_0x5c5c27(0x34d)]['push'](..._0xf4d515),_0x49a4fe;},{}),_0x4e5651=[];for(let _0x5cce90 in _0x4be79f)for(let _0x52220e in _0x4be79f[_0x5cce90]){let {actions:_0x5ece9f,objectType:_0x3fd313}=_0x4be79f[_0x5cce90][_0x52220e],_0x73c329=[...new Set(_0x5ece9f)];_0x4e5651[_0x4df2e2(0x198)]({'unitID':_0x5cce90,'objectID':_0x52220e,'objectType':_0x3fd313,'actions':_0x73c329});}return new _0x25e740(_0x4df2e2(0x361),_0x39d721,{'headers':_0x4c47a5['headers'],'withCredentials':_0x4c47a5[_0x4df2e2(0x378)],'responseType':_0x4c47a5['responseType'],'body':{'requests':_0x4e5651}});}},{'distributeResult'(_0x169880,_0x209e3e){const _0x1c3de9=_0x24a82c;let {objectActions:_0x228c6e}=_0x169880;return _0x209e3e[_0x1c3de9(0x24f)](_0x185638=>{const _0x43baf6=_0x1c3de9;let {unitID:_0x50d4c7,objectID:_0x3e4839,actions:_0x609096}=_0x185638,_0x3e541d=_0x228c6e[_0x43baf6(0x1d1)](_0x2b4383=>_0x2b4383[_0x43baf6(0x24b)]===_0x50d4c7&&_0x2b4383[_0x43baf6(0x243)]===_0x3e4839);return{'config':_0x185638,'result':{'actions':_0x609096[_0x43baf6(0x24f)](_0x270bfa=>_0x3e541d==null?void 0x0:_0x3e541d[_0x43baf6(0x34d)][_0x43baf6(0x1d1)](_0xf43e56=>_0xf43e56[_0x43baf6(0x2cd)]===_0x270bfa))[_0x43baf6(0x2dd)](_0x586a40=>!!_0x586a40),'error':_0x169880[_0x43baf6(0x269)]}};});}})}));}[_0x4792e8(0x25b)](){const _0x59c2a7=_0x4792e8;var _0x4b32ad;let _0xd01335=this[_0x59c2a7(0x183)][_0x59c2a7(0x3c8)](L);return(_0x4b32ad=_0xd01335==null?void 0x0:_0xd01335['authzUrl'])==null?_0x59c2a7(0x3b2):_0x4b32ad;}async[_0x4792e8(0x367)](_0xc4ec32){const _0x1c3e27=_0x4792e8;let _0x36ae13=this[_0x1c3e27(0x25b)]()+'/'+_0xc4ec32[_0x1c3e27(0x151)]+'/object';return(await this[_0x1c3e27(0x39c)][_0x1c3e27(0x14d)](_0x36ae13,{'body':_0xc4ec32}))[_0x1c3e27(0x3ad)][_0x1c3e27(0x243)]||'';}async[_0x4792e8(0x1e3)](_0x5be76b){const _0x2bfc1a=_0x4792e8;let _0x104b2a=this[_0x2bfc1a(0x25b)]()+'/-/object/list';return(await this[_0x2bfc1a(0x39c)][_0x2bfc1a(0x14d)](_0x104b2a,{'body':_0x5be76b}))[_0x2bfc1a(0x3ad)]['objects'];}async[_0x4792e8(0x3b4)](_0x1608ed){const _0x428a57=_0x4792e8;var _0x4cefae;let _0x4b4b91=this['_getAPIPrefixPath']()+'/'+_0x1608ed[_0x428a57(0x151)]+_0x428a57(0x1a8)+_0x1608ed['objectID'],_0x34d195=await this[_0x428a57(0x39c)][_0x428a57(0x2a9)](_0x4b4b91,{'body':_0x1608ed});if((_0x34d195==null||(_0x4cefae=_0x34d195[_0x428a57(0x3ad)])==null||(_0x4cefae=_0x4cefae[_0x428a57(0x269)])==null?void 0x0:_0x4cefae[_0x428a57(0x26b)])!==0x1)throw Error(_0x428a57(0x1c3));}async['allowed'](_0x1360ab){const _0x3873c7=_0x4792e8;let _0x4da5cf=this[_0x3873c7(0x25b)]()+'/'+_0x1360ab[_0x3873c7(0x151)]+_0x3873c7(0x1a8)+_0x1360ab[_0x3873c7(0x243)]+_0x3873c7(0x39a);return(await this[_0x3873c7(0x39c)][_0x3873c7(0x14d)](_0x4da5cf,{'body':_0x1360ab}))['body']['actions'];}async[_0x4792e8(0x3d8)](_0x3f9ddd){const _0x468cdb=_0x4792e8;let _0x66d398=this[_0x468cdb(0x25b)]()+_0x468cdb(0x2ab);return(await this['_HTTPService']['post'](_0x66d398,{'body':{'requests':_0x3f9ddd}}))['body'][_0x468cdb(0x1c7)];}async[_0x4792e8(0x154)](_0x22a06d){const _0x2c9851=_0x4792e8;let _0x59adac=this[_0x2c9851(0x25b)]()+'/'+_0x22a06d['objectType']+_0x2c9851(0x3d1),_0x215cfc=await this[_0x2c9851(0x39c)][_0x2c9851(0x14d)](_0x59adac,{'body':_0x22a06d});return{'roles':_0x215cfc[_0x2c9851(0x3ad)]['roles'],'actions':_0x215cfc[_0x2c9851(0x3ad)][_0x2c9851(0x34d)]};}async[_0x4792e8(0x17f)](_0x30c21d){const _0xedcfb0=_0x4792e8;let _0x5aea31=this['_getAPIPrefixPath']()+_0xedcfb0(0x187);await this['_HTTPService'][_0xedcfb0(0x1b9)](_0x5aea31,{'params':{'collaboratorID':_0x30c21d[_0xedcfb0(0x22f)],'objectID':_0x30c21d[_0xedcfb0(0x243)],'unitID':_0x30c21d[_0xedcfb0(0x24b)]}});}async[_0x4792e8(0x3cd)](_0x3bcfd5){const _0x4a4d1e=_0x4792e8;let _0x76d225=this[_0x4a4d1e(0x25b)]()+'/collaborator';await this[_0x4a4d1e(0x39c)][_0x4a4d1e(0x310)](_0x76d225,{'body':_0x3bcfd5});}async[_0x4792e8(0x1f9)](_0x57cd48){const _0x11cc18=_0x4792e8;let _0x3be312=this[_0x11cc18(0x25b)]()+_0x11cc18(0x187);await this[_0x11cc18(0x39c)]['post'](_0x3be312,{'body':_0x57cd48});}async[_0x4792e8(0x37a)](_0x5266ee){const _0x48334e=_0x4792e8;var _0x16fbad;let _0x2447a0=this[_0x48334e(0x25b)]()+_0x48334e(0x187),_0x3268a7=await this[_0x48334e(0x39c)][_0x48334e(0x1b5)](_0x2447a0,{'params':{'objectID':_0x5266ee[_0x48334e(0x243)],'unitID':_0x5266ee['unitID']}});return this['setCfgEnableObjInherit']((_0x16fbad=_0x3268a7['body']['cfgEnableObjInherit'])==null?!0x1:_0x16fbad),_0x3268a7[_0x48334e(0x3ad)][_0x48334e(0x328)];}async[_0x4792e8(0x251)](_0x2e2fcf){const _0x388f60=_0x4792e8;let _0x48eaf0=this[_0x388f60(0x25b)]()+'/collaborator';await this['_HTTPService'][_0x388f60(0x2a9)](_0x48eaf0,{'body':_0x2e2fcf});}['setCfgEnableObjInherit'](_0xaae929){const _0x434331=_0x4792e8;this[_0x434331(0x2c7)]=_0xaae929;}[_0x4792e8(0x22c)](){return this['_cfgEnableObjInherit'];}};Vn=V([B(0x0,_0x42bf05(_0x2c95c7)),B(0x1,_0x42bf05(_0x4d4035))],Vn);function Hn(_0x4e376d){const _0x208127=_0x4792e8;let _0x2d3a6a=atob(_0x4e376d),_0x417c7f=new Uint8Array(_0x2d3a6a[_0x208127(0x277)]);for(let _0x30181a=0x0;_0x30181a<_0x2d3a6a[_0x208127(0x277)];_0x30181a++)_0x417c7f[_0x30181a]=_0x2d3a6a[_0x208127(0x3ef)](_0x30181a);return _0x417c7f;}function Un(_0x2708be){const _0x53652c=_0x4792e8;let _0x18d587='';for(let _0x35b461=0x0;_0x35b461<_0x2708be[_0x53652c(0x277)];_0x35b461++)_0x18d587+=String['fromCharCode'](_0x2708be[_0x35b461]);return btoa(_0x18d587);}function Wn(_0x2bb590,_0x128c2d){const _0x14efa3=_0x4792e8;let _0x26fe4b=Hn(_0x128c2d),_0x1d32a5=_0x19fc48(0x10);return Un(_0x21e7b9(_0x1d32a5,_0x102cd1(_0x26fe4b,_0x1d32a5)[_0x14efa3(0x1c0)](_0x4b34d5(_0x2bb590))));}function Gn(){const _0x2e4e00=_0x4792e8;let _0x3a338f=_0x43c59b()[_0x2e4e00(0x3ab)];if(typeof window<'u'&&window[_0x2e4e00(0x247)]!==void 0x0&&_0x3a338f){let _0x493920={'time':Math[_0x2e4e00(0x343)](Date['now']()/0x3e8),'domain':location[_0x2e4e00(0x169)]};return Wn(JSON['stringify'](_0x493920),_0x3a338f);}}let Kn=class{constructor(_0x566e1a){const _0x304d50=_0x4792e8;this[_0x304d50(0x1a3)]=_0x566e1a,this[_0x304d50(0x2b1)]();}[_0x4792e8(0x2b1)](){const _0x40ba2c=_0x4792e8;this[_0x40ba2c(0x1a3)]['registerHTTPInterceptor']({'interceptor':(_0x2f5b92,_0x4ae0c9)=>{const _0x281f6f=_0x40ba2c;let _0x4b6406=Gn();return _0x4b6406&&_0x2f5b92[_0x281f6f(0x3d0)][_0x281f6f(0x2ea)](_0x281f6f(0x1d7),_0x4b6406),_0x4ae0c9(_0x2f5b92);}});}};Kn=V([B(0x0,_0x42bf05(_0x2c95c7))],Kn);let qn=class extends _0x3b463b{constructor(_0x1506af,_0x49ae8d,_0x3af984){const _0x140b04=_0x4792e8;super(),this[_0x140b04(0x398)]=_0x1506af,this['_snapshotService']=_0x49ae8d,this[_0x140b04(0x33c)]=_0x3af984,R(this,'_unitInfo$',new _0x4093e5(null)),R(this,_0x140b04(0x240),new _0xb9cc50()),R(this,_0x140b04(0x319),this[_0x140b04(0x16f)][_0x140b04(0x3c5)]()),R(this,_0x140b04(0x396),this['_unitLoaded$'][_0x140b04(0x3c5)]());}[_0x4792e8(0x387)](){const _0x3c2230=_0x4792e8;super[_0x3c2230(0x387)](),this[_0x3c2230(0x240)][_0x3c2230(0x1bb)](),this[_0x3c2230(0x16f)][_0x3c2230(0x1bb)]();}async[_0x4792e8(0x244)](_0x592d06,_0x2d7c15,_0x553850,_0x443c34){const _0x493d96=_0x4792e8;this[_0x493d96(0x16f)][_0x493d96(0x1ff)]({'unitId':_0x592d06,'type':_0x2d7c15,'subUnitId':_0x443c34});let _0x6956fc=null;switch(_0x2d7c15){case _0x481a99[_0x493d96(0x3f0)]:_0x6956fc=await this['_snapshotService'][_0x493d96(0x1a6)](_0x592d06,_0x553850,void 0x0,{'initialSubUnitId':_0x443c34});break;case _0x481a99[_0x493d96(0x1d2)]:_0x6956fc=await this[_0x493d96(0x210)][_0x493d96(0x2de)](_0x592d06,_0x553850);break;case _0x481a99[_0x493d96(0x1a9)]:_0x6956fc=await this[_0x493d96(0x210)][_0x493d96(0x1a5)](_0x592d06,_0x553850);break;case _0x481a99[_0x493d96(0x1cf)]:_0x6956fc=await this[_0x493d96(0x210)][_0x493d96(0x297)](_0x592d06,_0x553850);break;case _0x481a99['UNIVER_BASE']:_0x6956fc=await this[_0x493d96(0x210)]['loadBase'](_0x592d06,_0x553850);break;default:this[_0x493d96(0x398)][_0x493d96(0x269)](_0x493d96(0x354),_0x493d96(0x346));break;}return _0x6956fc&&this[_0x493d96(0x240)]['next'](_0x6956fc),_0x6956fc;}async[_0x4792e8(0x2bc)](_0xa89400,_0x4c93f9,_0x3ed15c){const _0x4eb0e9=_0x4792e8;var _0x2e0576;this[_0x4eb0e9(0x16f)][_0x4eb0e9(0x1ff)]({'unitId':_0xa89400,'type':_0x4c93f9,'subUnitId':_0x3ed15c});let _0x5bd7d9=0x0,_0x1616d0=await((_0x2e0576=this['_localCacheService'])==null?void 0x0:_0x2e0576['loadOfflineData'](_0xa89400));return _0x1616d0&&(_0x1616d0[_0x4eb0e9(0x2c5)]||_0x1616d0[_0x4eb0e9(0x3a6)]['length']!==0x0)&&(_0x5bd7d9=_0x1616d0[_0x4eb0e9(0x23a)]),_0x5bd7d9===0x0&&this[_0x4eb0e9(0x398)][_0x4eb0e9(0x34c)](_0x4eb0e9(0x354),_0x4eb0e9(0x1bf)),this['loadUnitOfRevision'](_0xa89400,_0x4c93f9,_0x5bd7d9,_0x3ed15c);}};qn=V([B(0x0,_0x1dc40d),B(0x1,_0x42bf05(_0x2eec7d)),B(0x2,_0x480fb8(U))],qn);let Jn=class{constructor(_0x2798c0,_0x112f3e,_0x2bcf4c){const _0x59603f=_0x4792e8;this['_httpService']=_0x2798c0,this['_configService']=_0x112f3e,this[_0x59603f(0x3bf)]=_0x2bcf4c,R(this,_0x59603f(0x338),0x0),R(this,_0x59603f(0x340),new _0xb9cc50()),R(this,'change$',this[_0x59603f(0x340)]),R(this,'_imageSourceCache',new Map());}[_0x4792e8(0x3b8)](_0x4106de){const _0x4a488=_0x4792e8;this[_0x4a488(0x338)]=_0x4106de,this['_change$'][_0x4a488(0x1ff)](_0x4106de);}[_0x4792e8(0x1e2)](_0x319a25,_0x5aa5be){const _0x3c97dc=_0x4792e8;if(_0x5aa5be===_0xb6904b['BASE64']){let _0x3e7a11=new Image();return _0x3e7a11['src']=_0x319a25,_0x3e7a11;}return this[_0x3c97dc(0x1b8)][_0x3c97dc(0x1b5)](_0x319a25);}[_0x4792e8(0x392)](_0x24a3f3,_0x19e4eb,_0x524344){_0x19e4eb===_0xb6904b['BASE64']||_0x524344==null||this['_imageSourceCache']['set'](_0x24a3f3,_0x524344);}async[_0x4792e8(0x168)](_0x2e2b0a){const _0x519dd3=_0x4792e8;try{let _0x4e1dc0=this[_0x519dd3(0x39e)](this[_0x519dd3(0x35e)](),''+_0x2e2b0a),_0x5cd52a=(await this[_0x519dd3(0x1a3)][_0x519dd3(0x1b5)](_0x4e1dc0))['body'];if(_0x5cd52a[_0x519dd3(0x269)]&&_0x5cd52a[_0x519dd3(0x269)][_0x519dd3(0x26b)]===_0x36be5a['OK']){let _0xc60f05=_0x349c2d(_0x5cd52a[_0x519dd3(0x34b)],this[_0x519dd3(0x375)]());return Promise['resolve'](_0xc60f05);}return Promise[_0x519dd3(0x238)](_0x5cd52a[_0x519dd3(0x269)]);}catch(_0x1855e8){return Promise[_0x519dd3(0x238)](_0x1855e8);}}async[_0x4792e8(0x17e)](_0x3eb257){const _0x3c39b4=_0x4792e8;let _0x21f087='';if(!_0x46b851[_0x3c39b4(0x1ad)](_0x3eb257[_0x3c39b4(0x306)]))return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214[_0x3c39b4(0x3cc)]));if(_0x3eb257[_0x3c39b4(0x214)]>_0x474fba())return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214['ERROR_EXCEED_SIZE']));try{let _0x5d4efc=new FormData();_0x5d4efc[_0x3c39b4(0x255)](_0x3c39b4(0x2d3),_0x3eb257);let _0x152854=this['_univerInstanceService'][_0x3c39b4(0x2d8)](),_0x597176=_0x152854==null?void 0x0:_0x152854[_0x3c39b4(0x256)]();if(!_0x597176)throw Error(_0x3c39b4(0x3e8));let _0xc51809=this[_0x3c39b4(0x23c)]()+_0x3c39b4(0x2fa)+_0x3eb257[_0x3c39b4(0x214)][_0x3c39b4(0x2c0)]()+'&source='+_0x2d4c14[_0x3c39b4(0x30c)]+_0x3c39b4(0x248)+encodeURIComponent(_0x597176),_0x1838ea={'body':_0x5d4efc},_0x23de50=(await this[_0x3c39b4(0x1a3)][_0x3c39b4(0x14d)](_0xc51809,_0x1838ea))[_0x3c39b4(0x3ad)];if(typeof _0x23de50[_0x3c39b4(0x1f7)]!=_0x3c39b4(0x201))return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214[_0x3c39b4(0x215)]));_0x21f087=_0x23de50[_0x3c39b4(0x1f7)];}catch{return this[_0x3c39b4(0x246)](),Promise[_0x3c39b4(0x238)](Error(_0x169214[_0x3c39b4(0x215)]));}return new Promise((_0xafbfa4,_0x211945)=>{const _0x25f76a=_0x3c39b4;let _0x479856=new FileReader();_0x479856[_0x25f76a(0x39b)](_0x3eb257),_0x479856['onload']=_0x17c710=>{const _0x3dec82=_0x25f76a;var _0x38e62f;let _0x20da1c=(_0x38e62f=_0x17c710[_0x3dec82(0x348)])==null?void 0x0:_0x38e62f['result'];if(_0x20da1c==null){this[_0x3dec82(0x246)](),_0x211945(Error(_0x169214['ERROR_IMAGE']));return;}_0xafbfa4({'imageId':_0x4b55d3(0x6),'imageSourceType':_0xb6904b[_0x3dec82(0x30a)],'source':_0x21f087,'base64Cache':_0x20da1c,'status':_0x169214[_0x3dec82(0x2ec)]}),this[_0x3dec82(0x246)]();};});}['_getUploadFileURL'](){const _0x1bf56f=_0x4792e8;var _0x4d1b34;let _0x2277b3=this[_0x1bf56f(0x183)][_0x1bf56f(0x3c8)](L);return(_0x4d1b34=_0x2277b3==null?void 0x0:_0x2277b3['uploadFileServerUrl'])==null?_0x1bf56f(0x2dc):_0x4d1b34;}['_getSignURL'](){const _0x11a1e3=_0x4792e8;var _0x114aae;let _0x20e35c=this[_0x11a1e3(0x183)][_0x11a1e3(0x3c8)](L);return(_0x114aae=_0x20e35c==null?void 0x0:_0x20e35c[_0x11a1e3(0x2ef)])==null?_0x11a1e3(0x160):_0x114aae;}[_0x4792e8(0x375)](){const _0x469062=_0x4792e8;var _0x290ff9;let _0x4b241b=this[_0x469062(0x183)][_0x469062(0x3c8)](L);return(_0x290ff9=_0x4b241b==null?void 0x0:_0x4b241b['downloadEndpointUrl'])==null?location[_0x469062(0x163)]:_0x290ff9;}['_replaceFileID'](_0x2a1081,_0x48dd3b){const _0x1847b6=_0x4792e8;return _0x2a1081[_0x1847b6(0x3b7)](_0x1847b6(0x294),_0x48dd3b);}['_decreaseWaiting'](){const _0x53cf22=_0x4792e8;--this[_0x53cf22(0x338)],this[_0x53cf22(0x340)]['next'](this[_0x53cf22(0x338)]);}};Jn=V([B(0x0,_0x42bf05(_0x2c95c7)),B(0x1,_0x4d4035),B(0x2,_0x42bf05(_0x3764b1))],Jn);let Yn=class{constructor(_0x471e4e,_0x3e5f34){const _0x2e50b5=_0x4792e8;this[_0x2e50b5(0x183)]=_0x471e4e,this[_0x2e50b5(0x39c)]=_0x3e5f34;}[_0x4792e8(0x25b)](){const _0x2f6c5e=_0x4792e8;var _0x51a142;let _0xf59b50=this['_configService'][_0x2f6c5e(0x3c8)](L);return(_0x51a142=_0xf59b50==null?void 0x0:_0xf59b50[_0x2f6c5e(0x16b)])==null?'/universer-api/authz':_0x51a142;}async['list'](_0x54760d){const _0x1db5b6=_0x4792e8;let _0xb3a059=this[_0x1db5b6(0x25b)]()+'/collaborator';return{'list':[{'title':'People','mentions':(await this[_0x1db5b6(0x39c)][_0x1db5b6(0x1b5)](_0xb3a059,{'params':{'objectID':_0x54760d[_0x1db5b6(0x326)],'unitID':_0x54760d[_0x1db5b6(0x326)]}}))[_0x1db5b6(0x3ad)][_0x1db5b6(0x328)][_0x1db5b6(0x24f)](_0x1be136=>({'objectId':_0x1be136['id'],'name':_0x1be136[_0x1db5b6(0x261)][_0x1db5b6(0x38a)],'metadata':{'icon':_0x1be136[_0x1db5b6(0x261)][_0x1db5b6(0x3cb)]},'label':_0x1be136[_0x1db5b6(0x261)][_0x1db5b6(0x38a)],'objectType':_0x487dc0[_0x1db5b6(0x2d2)]})),'metadata':{},'type':_0x487dc0[_0x1db5b6(0x2d2)]}]};}};Yn=V([B(0x0,_0x42bf05(_0x4d4035)),B(0x1,_0x42bf05(_0x2c95c7))],Yn);let Xn=class extends _0x3b463b{constructor(_0x369312,_0x961933,_0x2dcc29,_0x392550,_0x203a2f){const _0xa9d56a=_0x4792e8;super(),this['_injector']=_0x369312,this[_0xa9d56a(0x3bf)]=_0x961933,this[_0xa9d56a(0x373)]=_0x2dcc29,this[_0xa9d56a(0x242)]=_0x392550,this[_0xa9d56a(0x2a2)]=_0x203a2f,this[_0xa9d56a(0x2be)](),this[_0xa9d56a(0x302)]();}[_0x4792e8(0x302)](){const _0x3b8e7e=_0x4792e8;let _0x59e9ed=async _0x3d3832=>{const _0x5e7d8a=_0xf8b7;(await this[_0x5e7d8a(0x242)][_0x5e7d8a(0x312)](_0x3d3832))[_0x5e7d8a(0x32a)][_0x5e7d8a(0x23f)](_0x410a39(_0x24c91f=>_0x24c91f[_0x5e7d8a(0x383)]===_0xfb25b2[_0x5e7d8a(0x1c9)]),_0x539673(this[_0x5e7d8a(0x26f)]))[_0x5e7d8a(0x31b)](_0xf3180f=>{const _0x212ac9=_0x5e7d8a;let {reason:_0x2fde3e}=_0xf3180f[_0x212ac9(0x325)];this[_0x212ac9(0x2a2)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x2fde3e}),this[_0x212ac9(0x373)][_0x212ac9(0x2e4)](new _0x3f892d(_0x3d3832)['id'],!0x1),this[_0x212ac9(0x242)]['closeSession'](_0x3d3832);});};_0x20d630(this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99['UNIVER_SHEET']),this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99[_0x3b8e7e(0x1d2)]),this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99['UNIVER_BOARD']),this[_0x3b8e7e(0x3bf)][_0x3b8e7e(0x376)](_0x481a99[_0x3b8e7e(0x2c6)]))[_0x3b8e7e(0x23f)](_0x2c8ebc(_0x559e27=>_0x559e27['unit']['getUnitId']()),_0x410a39(_0x547963=>!_0x382c36(_0x547963)),_0x539673(this[_0x3b8e7e(0x26f)]))['subscribe'](_0x3147ec=>{_0x59e9ed(_0x3147ec);});}[_0x4792e8(0x2be)](){const _0x8ac91e=_0x4792e8;let _0x2a9e8f=async _0x432b52=>{const _0x42b56c=_0xf8b7;let _0x3b6d6e=await this[_0x42b56c(0x242)][_0x42b56c(0x312)](_0x432b52),_0x3666be=this[_0x42b56c(0x320)][_0x42b56c(0x1b5)](_0x31e0ee);_0x3b6d6e['event$']['pipe'](_0x410a39(_0x46b64b=>_0x46b64b[_0x42b56c(0x383)]===_0xfb25b2[_0x42b56c(0x35d)]),_0x539673(this[_0x42b56c(0x26f)]))[_0x42b56c(0x31b)](_0x4535db=>{const _0x538f48=_0x42b56c;let {objectId:_0x2dc7fd}=_0x4535db[_0x538f48(0x325)];_0x2dc7fd===_0x432b52?_0x3666be[_0x538f48(0x1f4)](_0x432b52):_0x3666be[_0x538f48(0x27c)](_0x432b52,_0x2dc7fd);});};_0x20d630(this[_0x8ac91e(0x3bf)][_0x8ac91e(0x376)](_0x481a99[_0x8ac91e(0x3f0)]))[_0x8ac91e(0x23f)](_0x2c8ebc(_0x63df7f=>_0x63df7f[_0x8ac91e(0x2f7)]['getUnitId']()),_0x410a39(_0x36527e=>!_0x382c36(_0x36527e)),_0x539673(this['dispose$']))['subscribe'](_0x243088=>{_0x2a9e8f(_0x243088);});}};Xn=V([B(0x0,_0x42bf05(_0x303c70)),B(0x1,_0x3764b1),B(0x2,_0x1414dd),B(0x3,_0x42bf05(jn)),B(0x4,_0x42bf05(z))],Xn);let Zn=class{constructor(_0x821fb0,_0x2877a7){const _0x132565=_0x4792e8;this[_0x132565(0x183)]=_0x821fb0,this[_0x132565(0x1a3)]=_0x2877a7;}async[_0x4792e8(0x19e)](_0x2d2298,_0x116d03){const _0x1df380=_0x4792e8;var _0x294c46;let {unitID:_0x4ef73c,type:_0x469a80,revision:_0x3a5deb=0x0}=_0x116d03,_0x59ac02=this[_0x1df380(0x36c)]()+'/'+_0x469a80+_0x1df380(0x355)+_0x4ef73c+_0x1df380(0x2af)+_0x3a5deb,_0x1aec5c=(await this[_0x1df380(0x1a3)][_0x1df380(0x1b5)](_0x59ac02))[_0x1df380(0x3ad)],_0x527228=(_0x294c46=_0x1aec5c[_0x1df380(0x349)])==null?void 0x0:_0x294c46[_0x1df380(0x1ca)];if(_0x527228){let _0x11694f=_0x527228==null?void 0x0:_0x527228[_0x1df380(0x205)];_0x527228['originalMeta']=_0x36757f['encode'](_0x886276(_0x11694f)),Object[_0x1df380(0x393)](_0x527228[_0x1df380(0x331)])[_0x1df380(0x3e9)](([,_0xeab129])=>{const _0x49f7d7=_0x1df380;let _0x33a93c=_0xeab129[_0x49f7d7(0x205)];_0xeab129[_0x49f7d7(0x205)]=_0x36757f[_0x49f7d7(0x335)](_0x886276(_0x33a93c));});}return _0x1aec5c;}async[_0x4792e8(0x155)](_0x5470c2,_0x57481a){const _0xee7065=_0x4792e8;let {unitID:_0x5a55ac,type:_0x3c6a0e,blockID:_0xe907ba}=_0x57481a,_0x31c435=this[_0xee7065(0x190)]()+'/'+_0x3c6a0e+_0xee7065(0x355)+_0x5a55ac+_0xee7065(0x20a)+_0xe907ba;return(await this[_0xee7065(0x1a3)][_0xee7065(0x1b5)](_0x31c435))['body'];}async[_0x4792e8(0x2d5)](_0x13a197,_0x21fb1a){const _0x61bcf8=_0x4792e8;let {unitID:_0x343d92,type:_0x21e1c0,blockID:_0x3c4134}=_0x21fb1a,_0x3b1366=this[_0x61bcf8(0x190)]()+_0x61bcf8(0x20a)+_0x21e1c0+_0x61bcf8(0x355)+_0x343d92+_0x61bcf8(0x20a)+_0x3c4134;return(await this['_httpService']['get'](_0x3b1366))[_0x61bcf8(0x3ad)];}async['fetchMissingChangesets'](_0x34c3d0,_0x3878fd){const _0x363f52=_0x4792e8;let {unitID:_0x3f5946,type:_0x3632ea,from:_0x170687,to:_0x3a6f80}=_0x3878fd,_0x2a25ae=this[_0x363f52(0x190)]()+'/'+_0x3632ea+_0x363f52(0x355)+_0x3f5946+_0x363f52(0x270)+_0x170687+_0x363f52(0x33f)+_0x3a6f80;return(await this[_0x363f52(0x1a3)]['get'](_0x2a25ae))[_0x363f52(0x3ad)];}[_0x4792e8(0x36c)](){const _0x5dcf88=_0x4792e8;var _0x5004fa;return(_0x5004fa=this[_0x5dcf88(0x183)][_0x5dcf88(0x3c8)](_0x5dcf88(0x386)))==null?this['_getAPIPrefix']():_0x5004fa;}[_0x4792e8(0x190)](){const _0x3e2443=_0x4792e8;var _0x364629;let _0x44bbdf=this[_0x3e2443(0x183)][_0x3e2443(0x3c8)](L);return(_0x364629=_0x44bbdf==null?void 0x0:_0x44bbdf[_0x3e2443(0x3cf)])==null?_0x3e2443(0x264):_0x364629;}async[_0x4792e8(0x3c9)](_0x68f1e8,_0x186cf3){const _0x28e704=_0x4792e8;let _0x3f2aef=_0x28e704(0x152)+_0x186cf3['type']+_0x28e704(0x355)+_0x186cf3['unitID']+'/resources';return(await this[_0x28e704(0x1a3)]['get'](_0x3f2aef,{'params':{'resourceId':JSON['stringify'](_0x186cf3[_0x28e704(0x3a3)])}}))[_0x28e704(0x3ad)];}[_0x4792e8(0x146)](){const _0x4b97fa=_0x4792e8;throw Error(_0x4b97fa(0x29b));}[_0x4792e8(0x34e)](){const _0x2346c8=_0x4792e8;throw Error(_0x2346c8(0x29b));}[_0x4792e8(0x165)](){const _0x388e72=_0x4792e8;throw Error(_0x388e72(0x29b));}[_0x4792e8(0x279)](){const _0x5d9174=_0x4792e8;throw Error(_0x5d9174(0x29b));}['copyFileMeta'](){const _0x3c3ec4=_0x4792e8;throw Error(_0x3c3ec4(0x29b));}[_0x4792e8(0x228)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Zn=V([B(0x0,_0x4d4035),B(0x1,_0x42bf05(_0x2c95c7))],Zn);let Qn=class extends _0x4d3d2a{constructor(_0x342a1d,_0x34a65f,_0x52aa25,_0x226839,_0x735afa){const _0x35d757=_0x4792e8;super(_0x342a1d,_0x34a65f,_0x52aa25),this['_transformService']=_0x226839,this[_0x35d757(0x398)]=_0x735afa;}[_0x4792e8(0x271)](_0x8312f6,_0x4fa317){const _0x5a1a85=_0x4792e8;let _0x255af6=this[_0x5a1a85(0x22d)](_0x8312f6);if(_0x255af6)try{let _0x56020d=this['_transformStack'](_0x255af6,_0x4fa317);this[_0x5a1a85(0x336)](_0x8312f6,_0x56020d);}catch(_0x201cce){this[_0x5a1a85(0x398)]['error'](_0x5a1a85(0x21f),_0x201cce),this[_0x5a1a85(0x2e5)](_0x8312f6);}let _0x2feeac=this[_0x5a1a85(0x2b0)](_0x8312f6);if(_0x2feeac)try{let _0x43fb8e=this[_0x5a1a85(0x2ce)](_0x2feeac,_0x4fa317);this['_substituteRedoStack'](_0x8312f6,_0x43fb8e);}catch(_0x39bf53){this[_0x5a1a85(0x398)][_0x5a1a85(0x269)](_0x39bf53),this[_0x5a1a85(0x397)](_0x8312f6);}}['_clearUndo'](_0x3d3055){const _0x458da3=_0x4792e8;let _0x490eac=this[_0x458da3(0x22d)](_0x3d3055);_0x490eac&&(_0x490eac[_0x458da3(0x277)]=0x0,this[_0x458da3(0x30d)]());}[_0x4792e8(0x397)](_0x2452d5){const _0x4ccf57=_0x4792e8;let _0x2727e4=this[_0x4ccf57(0x2b0)](_0x2452d5);_0x2727e4&&(_0x2727e4[_0x4ccf57(0x277)]=0x0,this[_0x4ccf57(0x30d)]());}[_0x4792e8(0x336)](_0x2eb0c7,_0x5472a5){const _0x103cbe=_0x4792e8;this[_0x103cbe(0x29e)][_0x103cbe(0x2ea)](_0x2eb0c7,_0x5472a5),this[_0x103cbe(0x30d)]();}[_0x4792e8(0x29d)](_0x5a946e,_0x1144f4){const _0x5cd065=_0x4792e8;this['_redoStacks'][_0x5cd065(0x2ea)](_0x5a946e,_0x1144f4),this[_0x5cd065(0x30d)]();}[_0x4792e8(0x2ce)](_0x4c74e6,_0x11290d){const _0x4236c4=_0x4792e8;let _0x500e27=[],_0x12b72e=_0x11290d,_0x5e375e=_0x11290d;for(let _0x51ea0e=_0x4c74e6[_0x4236c4(0x277)]-0x1;_0x51ea0e>=0x0;_0x51ea0e--){let {unitID:_0x1aa9fa,undoMutations:_0x47f247,redoMutations:_0x1a2fe2}=_0x4c74e6[_0x51ea0e],_0x2de8cc=this['_transformService'][_0x4236c4(0x2e6)](_0x12b72e,_0x47f247),_0x68dc19=this[_0x4236c4(0x1dd)]['transformMutationsWithChangeset'](_0x5e375e,_0x1a2fe2);if(_0x1bf146(_0x2de8cc)||_0x1bf146(_0x68dc19)){this['_logService'][_0x4236c4(0x269)]('[CollaborationUndoRedoService]',_0x4236c4(0x27a),_0x2de8cc,_0x68dc19);break;}_0x12b72e=_0x2de8cc[_0x4236c4(0x290)],_0x5e375e=_0x68dc19[_0x4236c4(0x290)],_0x500e27['push']({'unitID':_0x1aa9fa,'undoMutations':_0x2de8cc[_0x4236c4(0x157)],'redoMutations':_0x68dc19[_0x4236c4(0x157)]});}return _0x500e27['reverse']();}};Qn=V([B(0x0,_0x3764b1),B(0x1,_0x235ea9),B(0x2,_0x1c35be),B(0x3,_0x44c79e),B(0x4,_0x1dc40d)],Qn);let $n=class extends _0xa02fe0{constructor(_0x592ea4=pt,_0x53998e,_0x89af9f,_0x1f5a8f){const _0x25121e=_0x4792e8;super(),this[_0x25121e(0x26a)]=_0x592ea4,this['_logService']=_0x53998e,this[_0x25121e(0x320)]=_0x89af9f,this[_0x25121e(0x183)]=_0x1f5a8f;let {..._0x45e05d}=_0x418281({},pt,this[_0x25121e(0x26a)]);if(!_0x45e05d[_0x25121e(0x245)])throw Error(_0x25121e(0x16e));this['_config']=_0x45e05d,this[_0x25121e(0x183)][_0x25121e(0x2d6)](L,_0x45e05d);}['onStarting'](){const _0x1c2329=_0x4792e8;this[_0x1c2329(0x193)](),this[_0x1c2329(0x20f)]();}[_0x4792e8(0x193)](){const _0xf33440=_0x4792e8;var _0x303324,_0xad2da4;this[_0xf33440(0x320)][_0xf33440(0x287)](_0x22a7f2)&&this[_0xf33440(0x398)][_0xf33440(0x269)](_0xf33440(0x37b),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3fd140=_0x36f659([[_0x22a7f2,{'useClass':Qn}],[On,{'useValue':kn()}],[jn],[H],[Gt],[Bn],[Kn],[kt],[Xn],[z],[qn],[Tn,{'useClass':this[_0xf33440(0x26a)][_0xf33440(0x245)]}],[_0x315027,{'useClass':Zn}],[_0x2562e0,{'useClass':Vn}],[_0x34b67b,{'useClass':Jn}],[Ln,{'useClass':Rn}],[_0x33d114,{'useClass':Yn}],[Mn],[Fn]],(_0x303324=this[_0xf33440(0x26a)])==null?void 0x0:_0x303324[_0xf33440(0x226)]);if(!((_0xad2da4=this['_config'])!=null&&_0xad2da4[_0xf33440(0x371)])){let _0x5764a4=_0x3fd140[_0xf33440(0x267)](([_0x20e46e])=>_0x20e46e===W);_0x5764a4!==-0x1&&_0x3fd140[_0xf33440(0x3ee)](_0x5764a4,0x1);}_0x2785b8(this[_0xf33440(0x320)],_0x3fd140);}[_0x4792e8(0x20f)](){const _0x1d0f75=_0x4792e8;var _0x2ff9df,_0x5c644c;if(this[_0x1d0f75(0x320)][_0x1d0f75(0x1b5)](_0x2c95c7)[_0x1d0f75(0x37e)]({'priority':0x14,'interceptor':_0x3ff293({'maxParallel':0x6})}),!((_0x2ff9df=this[_0x1d0f75(0x26a)])!=null&&_0x2ff9df['enableOfflineEditing'])){var _0xbab255;(_0xbab255=this[_0x1d0f75(0x320)][_0x1d0f75(0x1b5)](U,_0x49f328[_0x1d0f75(0x3c0)]))==null||_0xbab255[_0x1d0f75(0x3eb)]();}(_0x5c644c=this[_0x1d0f75(0x26a)])!=null&&_0x5c644c['enableAuthServer']&&_0x5842f0(this[_0x1d0f75(0x320)],[[Bn]]),_0x5842f0(this[_0x1d0f75(0x320)],[[Kn],[Mn],[Xn]]);}};R($n,_0x4792e8(0x1ed),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),R($n,_0x4792e8(0x2c3),Nn),R($n,'version',Pn),$n=V([_0x393cb5(_0x3fdc72,_0x158f84,_0x2f0791),B(0x1,_0x1dc40d),B(0x2,_0x42bf05(_0x303c70)),B(0x3,_0x4d4035)],$n);export{In as AttachmentSourceType,Vn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,vn as BaseCollaborationEntity,xn as BoardCollaborationEntity,L as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Rn as CollaborationAttachmentIoService,Mn as CollaborationController,$ as CollaborationEntity,Jn as CollaborationImageIoService,Ht as CollaborationSession,jn as CollaborationSessionService,Dn as CollaborationSocketService,pn as CollaborationStatus,Ot as CollaborationUIEventId,z as CollaborationUIEventService,Qn as CollaborativeUndoRedoService,kt as CommentService,X as ConflictState,mt as DEFAULT_COLLAB_WEB_SOCKET_URL,Ct as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,ht as DEFAULT_WS_SESSION_TICKET_URL,qn as DataLoaderService,_n as DocCollaborationEntity,Q as FetchingMissState,gt as HEARTBEAT_INTERVAL_KEY,_t as HEARTBEAT_TIMEOUT_KEY,Ln as IAttachmentIoService,On as ICollaborationClientAdapterService,Tn as ICollaborationSocketService,U as ILocalCacheService,Sn as INetworkConditionService,W as ISingleActiveUnitService,xt as LOCAL_CACHE_INTERVAL,bt as LOCAL_CACHE_INTERVAL_KEY,H as MemberService,Yn as MentionIoHttpService,Z as OfflineState,q as PendingState,St as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,yt as RETRY_CONNECTING_MAX_COUNT_KEY,Bt as SessionStatus,yn as SheetCollaborationEntity,Gt as SheetTransformSelectionsService,bn as SlideCollaborationEntity,Zn as SnapshotServerOverHTTPService,K as SyncedState,Kt as UnitStatus,$n as UniverCollaborationClientPlugin,kn as createUniverCollaborationAdapter,Cn as deserializeToCombResponse,Ut as getLocalCacheKey,wn as serializeCombRequest};
|