@univerjs-pro/collaboration-client 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +15 -15
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x57ff19=_0x39cf;(function(_0x4c9fe8,_0x2c9f6c){const _0x47c92b=_0x39cf,_0x19f331=_0x4c9fe8();while(!![]){try{const _0x4d7830=parseInt(_0x47c92b(0x2c2))/0x1*(parseInt(_0x47c92b(0x2e7))/0x2)+-parseInt(_0x47c92b(0x31f))/0x3+-parseInt(_0x47c92b(0x144))/0x4*(-parseInt(_0x47c92b(0x1b8))/0x5)+parseInt(_0x47c92b(0x180))/0x6*(parseInt(_0x47c92b(0x247))/0x7)+parseInt(_0x47c92b(0x242))/0x8+-parseInt(_0x47c92b(0x1e8))/0x9+parseInt(_0x47c92b(0x2ff))/0xa;if(_0x4d7830===_0x2c9f6c)break;else _0x19f331['push'](_0x19f331['shift']());}catch(_0xe7978f){_0x19f331['push'](_0x19f331['shift']());}}}(_0x5b31,0xa7cb5));import{CollaborationEvent as _0x44b964,CompressMutationService as _0x3fd292,EmptyMutationInfo as _0x15ca03,ISnapshotServerService as _0x3e7383,ITransformService as _0x16e76a,RevisionService as _0x20a7ac,SnapshotService as _0x337384,UniverCollaborationPlugin as _0x2136e6,b64DecodeUnicode as _0x5634e2,isTransformChangesetsSuccess as _0x57a306,isTransformMutationsWithChangesetFailure as _0x1eec6a,isTransformMutationsWithChangesetSuccess as _0x567bda,mapDocumentTypeToUniverInstanceType as _0x53d98b,parseChangesetToProtocol as _0x16c8d0,parseProtocolChangeset as _0x3ee18b,textEncoder as _0x83560d,uuidv4 as _0x4539d8}from'@univerjs-pro/collaboration';import{CommandType as _0x5dbfab,DependentOn as _0x721fc5,Disposable as _0x170707,DisposableCollection as _0x24d45d,IAuthzIoService as _0x5aecc0,ICommandService as _0x3ad6c1,IConfigService as _0x37ec8b,IContextService as _0x567531,IImageIoService as _0x1fcb29,ILogService as _0xe5ab40,IMentionIOService as _0x5c2e69,IPermissionService as _0x3d554c,IUndoRedoService as _0x2ebda0,IUniverInstanceService as _0x20c84a,ImageSourceType as _0x16019b,ImageUploadStatusType as _0x409e72,Inject as _0x3862a7,Injector as _0x1e387a,JSONX as _0xd40002,LocalUndoRedoService as _0x2b50bd,LocaleService as _0x4ecf6b,MentionType as _0x51bdc8,OBJECT_PERMISSION_CONFIG_KEY as _0x5587f0,ObjectPermissionService as _0x4df243,Optional as _0x58c27a,Plugin as _0x161732,Quantity as _0x197fa9,Rectangle as _0x3be620,RxDisposable as _0x41c222,Tools as _0x410732,UniverInstanceType as _0xc3375b,UserManagerService as _0x1bb5ee,Workbook as _0x3be187,createIdentifier as _0x5d0b62,generateRandomId as _0xa87a24,isInternalEditorID as _0x181386,merge as _0xf2a441,mergeOverrideWithDependencies as _0x5d5164,registerDependencies as _0x18422a,resolveWithBasePath as _0x4d5d45,sequenceExecute as _0x1fb348,toDisposable as _0x872626,touchDependencies as _0x5dfbcb}from'@univerjs/core';import{DocStateChangeManagerService as _0x32ed66,RichTextEditingMutation as _0x3fb54e}from'@univerjs/docs';import{InsertSheetMutation as _0x5833b6,SetSelectionsOperation as _0xabc62e,SheetPermissionInitController as _0x16b792,SheetsSelectionsService as _0x2a9ce9,WorkbookEditablePermission as _0x2a45e8}from'@univerjs/sheets';import{BehaviorSubject as _0x2c6b74,ReplaySubject as _0x31f3b9,Subject as _0x2f068e,concatMap as _0x4af8da,firstValueFrom as _0x5bc7a6,map as _0x46d47e,merge as _0x5e7889,of as _0x399da8,shareReplay as _0x3d5147,take as _0x2e3eac,takeUntil as _0x3e825e}from'rxjs';import{CmdRspCode as _0x2e72bd,CombCmd as _0x522796,ErrorCode as _0x5d8829,FileSource as _0xb4aea2,UnitAction as _0x3a288d,UnitObject as _0x5f1d6f}from'@univerjs/protocol';import{ITelemetryService as _0x2cee13}from'@univerjs/telemetry';import{delay as _0x3e24a1,filter as _0x2f6e63,map as _0x2aece9,take as _0x5d4a75,takeUntil as _0x4e326c}from'rxjs/operators';import{AddSlidePageMutation as _0x422bbe,EnsureSlideMasterPageMutation as _0x3adc84,MoveSlidePageMutation as _0x9f6d0c,RemoveSlidePageMutation as _0x18031c}from'@univerjs-pro/slides';import{HTTPRequest as _0x3a47ca,HTTPService as _0x41945f,ISocketService as _0x2a16df,MergeInterceptorFactory as _0x3982ee,ThresholdInterceptorFactory as _0x536288,UniverNetworkPlugin as _0x59c27a}from'@univerjs/network';import{UniverLicensePlugin as _0x59814c,getGlobalObject as _0xbd6fb0}from'@univerjs-pro/license';import{cbc as _0x2cfbd6}from'@noble/ciphers/aes.js';import{concatBytes as _0x3fe3dd,randomBytes as _0x5b6ebf,utf8ToBytes as _0x48612b}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x244e12,getDrawingImageAllowSize as _0x3d52da}from'@univerjs/drawing';const R=_0x57ff19(0x322),gt={},_t='ws://127.0.0.1:8000/universer-api/comb/connect',vt=_0x57ff19(0x157),yt='HEARTBEAT_INTERVAL',bt=_0x57ff19(0x184),xt='RETRY_CONNECTING_MAX_COUNT',St=_0x57ff19(0x1bc),Ct=0x3e8,wt=_0x57ff19(0x16f),Tt=_0x57ff19(0x272);function Et(_0x24fc74){const _0x227d4b=_0x57ff19;return JSON[_0x227d4b(0x1ef)](_0x24fc74)[_0x227d4b(0x2e9)];}function Dt(_0x37c85b){'@babel/helpers - typeof';const _0x311e6c=_0x57ff19;return Dt=typeof Symbol==_0x311e6c(0xce)&&typeof Symbol[_0x311e6c(0x365)]=='symbol'?function(_0x574ca9){return typeof _0x574ca9;}:function(_0x5f5185){const _0x36ce7c=_0x311e6c;return _0x5f5185&&typeof Symbol=='function'&&_0x5f5185[_0x36ce7c(0x243)]===Symbol&&_0x5f5185!==Symbol[_0x36ce7c(0x168)]?_0x36ce7c(0x362):typeof _0x5f5185;},Dt(_0x37c85b);}function Ot(_0x139ef5,_0xeb71e0){const _0x508cad=_0x57ff19;if(Dt(_0x139ef5)!='object'||!_0x139ef5)return _0x139ef5;var _0x1fcfe8=_0x139ef5[Symbol[_0x508cad(0x1fa)]];if(_0x1fcfe8!==void 0x0){var _0x458a2f=_0x1fcfe8[_0x508cad(0x344)](_0x139ef5,_0xeb71e0||_0x508cad(0x2a3));if(Dt(_0x458a2f)!=_0x508cad(0xe5))return _0x458a2f;throw TypeError(_0x508cad(0x2da));}return(_0xeb71e0==='string'?String:Number)(_0x139ef5);}function kt(_0x125b9b){const _0x5e614e=_0x57ff19;var _0x206bfa=Ot(_0x125b9b,_0x5e614e(0x11b));return Dt(_0x206bfa)==_0x5e614e(0x362)?_0x206bfa:_0x206bfa+'';}function z(_0x5969c0,_0x32273f,_0x4c5882){return(_0x32273f=kt(_0x32273f))in _0x5969c0?Object['defineProperty'](_0x5969c0,_0x32273f,{'value':_0x4c5882,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5969c0[_0x32273f]=_0x4c5882,_0x5969c0;}let At=function(_0x1fa425){const _0x28ad48=_0x57ff19;return _0x1fa425[_0x28ad48(0x1aa)]=_0x28ad48(0x1aa),_0x1fa425['PERMISSION_DENIED']=_0x28ad48(0x286),_0x1fa425[_0x28ad48(0x141)]=_0x28ad48(0x141),_0x1fa425[_0x28ad48(0x24e)]=_0x28ad48(0x24e),_0x1fa425[_0x28ad48(0x135)]=_0x28ad48(0x135),_0x1fa425[_0x28ad48(0x24b)]=_0x28ad48(0x24b),_0x1fa425[_0x28ad48(0x387)]=_0x28ad48(0x387),_0x1fa425['SOCKET_FAILED_RETRY']=_0x28ad48(0x1ff),_0x1fa425[_0x28ad48(0x375)]='SOCKET_FAILED',_0x1fa425[_0x28ad48(0x215)]=_0x28ad48(0x215),_0x1fa425;}({});var B=class{constructor(){const _0x38646e=_0x57ff19;z(this,_0x38646e(0x190),new _0x2f068e()),z(this,_0x38646e(0xd7),this['_event$']['asObservable']());}['emitEvent'](_0x22835e){const _0xb3577a=_0x57ff19;this[_0xb3577a(0x190)][_0xb3577a(0x204)](_0x22835e);}},jt=class{constructor(){const _0x266539=_0x57ff19;z(this,_0x266539(0x196),new _0x2f068e()),z(this,_0x266539(0xe0),this[_0x266539(0x196)]['asObservable']());}[_0x57ff19(0xd1)](_0x2bc028){const _0xec3b0=_0x57ff19;this['_commentUpdate$'][_0xec3b0(0x204)](_0x2bc028);}};function V(_0x2dd0cb,_0x5dbf2f){return function(_0x5a5e88,_0x497f87){_0x5dbf2f(_0x5a5e88,_0x497f87,_0x2dd0cb);};}function H(_0xdf4a31,_0x15ed7b,_0x4c7c6e,_0x5013f7){const _0x8207ff=_0x57ff19;var _0x428a1c=arguments[_0x8207ff(0x2e9)],_0x491cb9=_0x428a1c<0x3?_0x15ed7b:_0x5013f7===null?_0x5013f7=Object[_0x8207ff(0x1b7)](_0x15ed7b,_0x4c7c6e):_0x5013f7,_0x41422b;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x8207ff(0xce))_0x491cb9=Reflect[_0x8207ff(0x31c)](_0xdf4a31,_0x15ed7b,_0x4c7c6e,_0x5013f7);else{for(var _0x3d1a67=_0xdf4a31[_0x8207ff(0x2e9)]-0x1;_0x3d1a67>=0x0;_0x3d1a67--)(_0x41422b=_0xdf4a31[_0x3d1a67])&&(_0x491cb9=(_0x428a1c<0x3?_0x41422b(_0x491cb9):_0x428a1c>0x3?_0x41422b(_0x15ed7b,_0x4c7c6e,_0x491cb9):_0x41422b(_0x15ed7b,_0x4c7c6e))||_0x491cb9);}return _0x428a1c>0x3&&_0x491cb9&&Object[_0x8207ff(0x15f)](_0x15ed7b,_0x4c7c6e,_0x491cb9),_0x491cb9;}let Mt=class extends _0x170707{constructor(_0x2c8996){const _0x2d327e=_0x57ff19;super(),this[_0x2d327e(0x305)]=_0x2c8996,z(this,'_roomMembers',new Map()),z(this,_0x2d327e(0x31e),new _0x2f068e()),this[_0x2d327e(0x1ba)](_0x5e7889(this['_univerInstanceService'][_0x2d327e(0x23d)](_0xc3375b[_0x2d327e(0x13d)])[_0x2d327e(0x10e)](_0x2aece9(_0x1a1f3d=>_0x1a1f3d[_0x2d327e(0x2d9)]())),this[_0x2d327e(0x305)][_0x2d327e(0x23d)](_0xc3375b[_0x2d327e(0x189)])['pipe'](_0x2aece9(_0x4f9c85=>_0x4f9c85['getUnitId']())),this[_0x2d327e(0x305)][_0x2d327e(0x23d)](_0xc3375b[_0x2d327e(0x32c)])['pipe'](_0x2aece9(_0x2b6d20=>_0x2b6d20[_0x2d327e(0x2d9)]())),this[_0x2d327e(0x305)][_0x2d327e(0x23d)](_0xc3375b[_0x2d327e(0xd9)])[_0x2d327e(0x10e)](_0x2aece9(_0x2353c5=>_0x2353c5['getUnitId']())))[_0x2d327e(0x143)](_0x1b49d8=>this[_0x2d327e(0x116)](_0x1b49d8)));}[_0x57ff19(0x2f2)](_0xfcee8a){const _0xf265fe=_0x57ff19;return this['_roomMembers'][_0xf265fe(0x1bf)](_0xfcee8a)?_0x399da8(this['_roomMembers']['get'](_0xfcee8a)):this[_0xf265fe(0x31e)]['pipe'](_0x2aece9(_0x2b24a0=>{const _0x2096e5=_0xf265fe;if(_0x2b24a0===_0xfcee8a)return this[_0x2096e5(0x348)][_0x2096e5(0x29d)](_0x2b24a0);}));}[_0x57ff19(0x132)](_0x4adcb7,_0x13778c){const _0x3cd4e3=_0x57ff19;let _0x38e2e1=this['_roomMembers']['get'](_0x4adcb7);_0x38e2e1||(_0x38e2e1=new Nt(),this[_0x3cd4e3(0x348)][_0x3cd4e3(0xed)](_0x4adcb7,_0x38e2e1),this[_0x3cd4e3(0x31e)][_0x3cd4e3(0x204)](_0x4adcb7)),_0x38e2e1[_0x3cd4e3(0x132)](_0x13778c);}['removeMember'](_0x57fade,_0x58ea08){const _0xc08658=_0x57ff19;let _0x5ed867=this['_roomMembers']['get'](_0x57fade);_0x5ed867&&_0x5ed867[_0xc08658(0x2fa)](_0x58ea08);}['getRoom'](_0x38a19c){const _0x32d82b=_0x57ff19;return this['_roomMembers'][_0x32d82b(0x29d)](_0x38a19c);}[_0x57ff19(0x226)](_0x44d901,_0x415629){const _0x25f7a9=_0x57ff19;let _0x525485=this[_0x25f7a9(0x348)]['get'](_0x44d901);if(_0x525485)return _0x525485[_0x25f7a9(0x226)](_0x415629);}[_0x57ff19(0x116)](_0x23f0ab){const _0x4c7e2c=_0x57ff19;let _0x12a8b4=this[_0x4c7e2c(0x348)]['get'](_0x23f0ab);_0x12a8b4&&(_0x12a8b4[_0x4c7e2c(0xd0)](),this[_0x4c7e2c(0x348)][_0x4c7e2c(0x2f3)](_0x23f0ab));}[_0x57ff19(0xd0)](){const _0x4bb510=_0x57ff19;this[_0x4bb510(0x348)][_0x4bb510(0x2db)](_0xd9fc6c=>_0xd9fc6c[_0x4bb510(0xd0)]()),this['_roomMembers']['clear'](),this['_roomCreated$'][_0x4bb510(0x352)]();}};Mt=H([V(0x0,_0x20c84a)],Mt);var Nt=class extends _0x170707{constructor(..._0x1bc16b){const _0x3630b4=_0x57ff19;super(..._0x1bc16b),z(this,_0x3630b4(0xcd),new Map()),z(this,'_members$',new _0x2c6b74(this['_members'])),z(this,_0x3630b4(0x1a7),this['_members$'][_0x3630b4(0x26a)]());}['dispose'](){const _0x5cfbe5=_0x57ff19;this['_members'][_0x5cfbe5(0x1fc)](),this[_0x5cfbe5(0x205)]['complete']();}['updateMember'](_0x9f92ee){const _0x5736c1=_0x57ff19;this[_0x5736c1(0xcd)][_0x5736c1(0xed)](_0x9f92ee[_0x5736c1(0x368)],_0x9f92ee),this['_emitMembers']();}[_0x57ff19(0x2fa)](_0x3ad32d){const _0x367b57=_0x57ff19;this['_members'][_0x367b57(0x2f3)](_0x3ad32d),this[_0x367b57(0x217)]();}[_0x57ff19(0x226)](_0x27984b){const _0x35a601=_0x57ff19;return this[_0x35a601(0xcd)][_0x35a601(0x29d)](_0x27984b);}[_0x57ff19(0x1ad)](){const _0x5894f6=_0x57ff19;return Array[_0x5894f6(0xe3)](this[_0x5894f6(0xcd)][_0x5894f6(0x2bc)]());}[_0x57ff19(0x217)](){const _0x3b0f76=_0x57ff19;this[_0x3b0f76(0x205)][_0x3b0f76(0x204)](this[_0x3b0f76(0xcd)]);}};function Pt(_0x79f71b,_0x2fb62f){const _0x38ffbb=_0x57ff19;if(It(_0x79f71b))return _0x2fb62f;if(_0x2fb62f[_0x38ffbb(0xe9)]===_0x44b964[_0x38ffbb(0x1cf)]){let _0xbc49b0=Vt(_0x79f71b),_0xe924eb=_0x2fb62f;return{..._0xe924eb,'data':{..._0xe924eb[_0x38ffbb(0x1ab)],'unitID':_0x79f71b[_0x38ffbb(0x18e)][_0x38ffbb(0xf8)],'unitType':_0x79f71b[_0x38ffbb(0x18e)][_0x38ffbb(0x324)]??_0xe924eb[_0x38ffbb(0x1ab)][_0x38ffbb(0x324)],'changeset':_0xbc49b0[_0x38ffbb(0x384)](_0xe924eb[_0x38ffbb(0x1ab)][_0x38ffbb(0xdc)],Ht(_0x79f71b))}};}if(_0x2fb62f[_0x38ffbb(0xe9)]===_0x44b964[_0x38ffbb(0x2f9)]){let _0x2084cb=_0x2fb62f;return{..._0x2084cb,'data':{..._0x2084cb[_0x38ffbb(0x1ab)],'unitID':_0x79f71b[_0x38ffbb(0x18e)][_0x38ffbb(0xf8)],'unitType':_0x79f71b[_0x38ffbb(0x18e)]['unitType']??_0x2084cb[_0x38ffbb(0x1ab)][_0x38ffbb(0x324)]}};}return _0x2fb62f;}function Ft(_0x11b600,_0x8504c6){const _0x2d6846=_0x57ff19;if(It(_0x11b600))return[_0x8504c6];switch(_0x8504c6['eventID']){case _0x44b964['NEW_CHANGESETS']:return[Lt(_0x11b600,_0x8504c6)];case _0x44b964[_0x2d6846(0x137)]:return[zt(_0x11b600,_0x8504c6)];case _0x44b964[_0x2d6846(0x34a)]:return[Rt(_0x11b600,_0x8504c6)];default:return[_0x8504c6];}}function _0x39cf(_0x24c775,_0x25f587){_0x24c775=_0x24c775-0xc9;const _0x5b315e=_0x5b31();let _0x39cfef=_0x5b315e[_0x24c775];return _0x39cfef;}function It(_0x1f09f6){const _0x29286f=_0x57ff19;return _0x1f09f6[_0x29286f(0x18e)][_0x29286f(0x2c0)]==null&&_0x1f09f6[_0x29286f(0x18e)][_0x29286f(0xf8)]===_0x1f09f6[_0x29286f(0x1ca)]&&!_0x1f09f6[_0x29286f(0xdc)];}function Lt(_0x54d9f5,_0x249552){const _0x5e7772=_0x57ff19;return{..._0x249552,'data':_0x16c8d0(Bt(_0x54d9f5,_0x3ee18b(_0x249552[_0x5e7772(0x1ab)])))};}function Rt(_0x5255c3,_0x29cab4){return{..._0x29cab4,'data':Bt(_0x5255c3,_0x29cab4['data'])};}function zt(_0x2d144f,_0x1976eb){const _0x51dbd2=_0x57ff19;let _0x113bec=_0x1976eb[_0x51dbd2(0x1ab)];return{..._0x1976eb,'data':{..._0x113bec,'changesets':_0x113bec[_0x51dbd2(0x10b)][_0x51dbd2(0xff)](_0x5007a6=>_0x16c8d0(Bt(_0x2d144f,_0x3ee18b(_0x5007a6))))}};}function Bt(_0x558853,_0x11187b){const _0x1c4495=_0x57ff19;return Vt(_0x558853)[_0x1c4495(0x30d)](_0x11187b,Ht(_0x558853));}function Vt(_0xbe9fad){const _0x47c4a7=_0x57ff19;if(!_0xbe9fad[_0x47c4a7(0xdc)])throw Error(_0x47c4a7(0x233));return _0xbe9fad[_0x47c4a7(0xdc)];}function Ht(_0xddf789){const _0x15e6cd=_0x57ff19;return{'localUnitId':_0xddf789[_0x15e6cd(0x1ca)],'unitType':_0xddf789['unitType'],'target':_0xddf789[_0x15e6cd(0x18e)]};}let Ut=function(_0x51e38e){const _0x364a31=_0x57ff19;return _0x51e38e[_0x51e38e[_0x364a31(0x264)]=0x0]=_0x364a31(0x264),_0x51e38e[_0x51e38e[_0x364a31(0x12c)]=0x1]=_0x364a31(0x12c),_0x51e38e[_0x51e38e[_0x364a31(0x318)]=0x2]=_0x364a31(0x318),_0x51e38e[_0x51e38e[_0x364a31(0x1f0)]=0x3]=_0x364a31(0x1f0),_0x51e38e;}({});const Wt={[_0x2e72bd['FAIL']]:'session.join-failed',[_0x2e72bd[_0x57ff19(0x21e)]]:_0x57ff19(0x29b),[_0x2e72bd[_0x57ff19(0x232)]]:_0x57ff19(0xca),[_0x2e72bd['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[_0x2e72bd['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x57ff19(0x2ec)};let Gt=class extends _0x41c222{get[_0x57ff19(0x161)](){const _0x2f06bd=_0x57ff19;return this[_0x2f06bd(0x110)][_0x2f06bd(0x2fc)]();}constructor(_0x147116,_0x594780,_0x3c95c8,_0x34ef5d,_0x164b04,_0x4826c6,_0x5836db,_0x1ad619){const _0x34ea4c=_0x57ff19;super(),this[_0x34ea4c(0x350)]=_0x147116,this[_0x34ea4c(0x1fd)]=_0x3c95c8,this['_configService']=_0x34ef5d,this['_memberService']=_0x164b04,this['_commentService']=_0x4826c6,this[_0x34ea4c(0x134)]=_0x5836db,this['_telemetryService']=_0x1ad619,z(this,_0x34ea4c(0x110),new _0x2c6b74(0x0)),z(this,'sessionStatus$',this[_0x34ea4c(0x110)]['asObservable']()),z(this,_0x34ea4c(0x190),new _0x2f068e()),z(this,_0x34ea4c(0xd7),this[_0x34ea4c(0x190)]['asObservable']()),z(this,_0x34ea4c(0x19a),void 0x0),z(this,_0x34ea4c(0x14a),void 0x0),z(this,'_collaborationTimeoutTimer',void 0x0),z(this,'_shouldReportTelemetry',!0x1),z(this,'_telemetryInfo',null),this[_0x34ea4c(0x252)]=!!this[_0x34ea4c(0x151)],_0x594780[_0x34ea4c(0x10e)](_0x3e825e(this[_0x34ea4c(0x111)]))[_0x34ea4c(0x143)](_0xd9a51f=>{const _0x400814=_0x34ea4c;if(_0xd9a51f!==void 0x0){if(this[_0x400814(0x19a)]=_0xd9a51f,_0xd9a51f)this[_0x400814(0x298)](_0xd9a51f),this[_0x400814(0x14a)]=_0xd9a51f['message$']['subscribe'](_0x5ec93c=>{const _0x39fa1d=_0x400814;_0x5ec93c[_0x39fa1d(0x124)]===this[_0x39fa1d(0x350)][_0x39fa1d(0x18e)][_0x39fa1d(0xf8)]&&this[_0x39fa1d(0x122)](_0x5ec93c);});else{var _0x23a3d2;this[_0x400814(0x1c8)](),this[_0x400814(0x110)]['next'](0x2),(_0x23a3d2=this[_0x400814(0x14a)])==null||_0x23a3d2[_0x400814(0x34d)](),this[_0x400814(0x14a)]=null;}}});}[_0x57ff19(0x212)](){const _0x3d3900=_0x57ff19;var _0x12496d;return((_0x12496d=this['_socket'])==null?void 0x0:_0x12496d[_0x3d3900(0x368)])??null;}[_0x57ff19(0xd0)](){const _0x505891=_0x57ff19;super[_0x505891(0xd0)](),this['close'](),this[_0x505891(0x111)][_0x505891(0x204)](),this[_0x505891(0x111)]['complete']();}['close'](){const _0x3a7986=_0x57ff19;var _0x4826e4;this[_0x3a7986(0x1c8)](),(_0x4826e4=this['_socket'])==null||_0x4826e4[_0x3a7986(0x17b)]({'cmd':_0x522796[_0x3a7986(0x1a9)],'data':{'roomID':this[_0x3a7986(0x350)][_0x3a7986(0x18e)][_0x3a7986(0xf8)]}}),this[_0x3a7986(0x190)]['complete'](),this[_0x3a7986(0x110)][_0x3a7986(0x352)]();}[_0x57ff19(0x122)](_0x2587f1){const _0x5524e2=_0x57ff19;_0x2587f1[_0x5524e2(0x16d)]===_0x522796[_0x5524e2(0x25d)]?this[_0x5524e2(0x187)](_0x2587f1):_0x2587f1[_0x5524e2(0x16d)]===_0x522796[_0x5524e2(0xdd)]&&this[_0x5524e2(0x1b5)](_0x2587f1);}[_0x57ff19(0x298)](_0x2c6b29){const _0x163c09=_0x57ff19;this[_0x163c09(0x110)][_0x163c09(0x204)](0x1),_0x2c6b29[_0x163c09(0x17b)]({'cmd':_0x522796[_0x163c09(0x25d)],'routeKey':this['_identity'][_0x163c09(0x18e)][_0x163c09(0xf8)],'routeType':'','data':{'rooms':[{'roomID':this[_0x163c09(0x350)][_0x163c09(0x18e)][_0x163c09(0xf8)]}]}});}[_0x57ff19(0x187)](_0x4e395b){const _0x1fe3d4=_0x57ff19;var _0x21c142;if(_0x4e395b[_0x1fe3d4(0x22e)]in Wt){this[_0x1fe3d4(0x134)]['emitEvent']({'id':_0x1fe3d4(0x387),'data':Wt[_0x4e395b['code']]}),this[_0x1fe3d4(0x110)][_0x1fe3d4(0x204)](0x2);return;}this[_0x1fe3d4(0x110)][_0x1fe3d4(0x204)](0x3);let _0x2d2d66=(_0x21c142=_0x4e395b[_0x1fe3d4(0x1ab)][_0x1fe3d4(0x33e)][this[_0x1fe3d4(0x350)]['target'][_0x1fe3d4(0xf8)]])==null?void 0x0:_0x21c142[_0x1fe3d4(0x285)];_0x2d2d66&&_0x2d2d66['forEach'](_0x5e3a64=>this[_0x1fe3d4(0x2b5)]['updateMember'](this['_identity'][_0x1fe3d4(0x1ca)],_0x5e3a64));}[_0x57ff19(0x1b5)](_0x16eb18){const _0xbb2463=_0x57ff19;try{let _0x238e5f=Ft(this[_0xbb2463(0x350)],_0x16eb18[_0xbb2463(0x1ab)]);for(let _0x29099d of _0x238e5f)switch(_0x29099d[_0xbb2463(0xe9)]){case _0x44b964['USERS_ENTER']:this[_0xbb2463(0x21a)](_0x29099d),this[_0xbb2463(0x190)][_0xbb2463(0x204)](_0x29099d);break;case _0x44b964[_0xbb2463(0x1cb)]:this['_onUserLeave'](_0x29099d),this['_event$']['next'](_0x29099d);break;case _0x44b964[_0xbb2463(0x371)]:case _0x44b964[_0xbb2463(0x34a)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0xbb2463(0x260)](),this[_0xbb2463(0x190)][_0xbb2463(0x204)](_0x29099d);break;case _0x44b964[_0xbb2463(0x2d2)]:this[_0xbb2463(0x1fd)]['error'](_0xbb2463(0x236)+JSON[_0xbb2463(0x1ef)](_0x29099d)),this[_0xbb2463(0x190)][_0xbb2463(0x204)](_0x29099d);break;case _0x44b964[_0xbb2463(0x1b4)]:this['_commentService'][_0xbb2463(0xd1)](_0x29099d[_0xbb2463(0x1ab)]),this[_0xbb2463(0x190)][_0xbb2463(0x204)](_0x29099d);break;default:this[_0xbb2463(0x190)][_0xbb2463(0x204)](_0x29099d);}}catch(_0xd7da95){this[_0xbb2463(0x1fd)][_0xbb2463(0x20d)](_0xd7da95,_0x16eb18);}}[_0x57ff19(0x21a)](_0x35c693){const _0x88954d=_0x57ff19;this[_0x88954d(0x2b5)][_0x88954d(0x132)](this[_0x88954d(0x350)][_0x88954d(0x1ca)],_0x35c693[_0x88954d(0x1ab)]);}[_0x57ff19(0x103)](_0x19e157){const _0x4fb04b=_0x57ff19;this[_0x4fb04b(0x2b5)][_0x4fb04b(0x2fa)](this['_identity'][_0x4fb04b(0x1ca)],_0x19e157['data'][_0x4fb04b(0x368)]);}async[_0x57ff19(0x17b)](_0x1d19c5,_0x2935d7){const _0x4fb31f=_0x57ff19;if(this[_0x4fb31f(0x161)]!==0x3||!this['_socket'])throw Error(_0x4fb31f(0x34e));try{let _0x367cf7=Pt(this[_0x4fb31f(0x350)],_0x1d19c5);_0x367cf7[_0x4fb31f(0xe9)]===_0x44b964[_0x4fb31f(0x1cf)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4fb31f(0x1ea)](_0x367cf7)),this[_0x4fb31f(0x19a)][_0x4fb31f(0x17b)]({'cmd':_0x522796[_0x4fb31f(0x18d)],'routeKey':this[_0x4fb31f(0x350)]['target'][_0x4fb31f(0xf8)],'routeType':'','data':_0x367cf7});}catch(_0x22775d){this[_0x4fb31f(0x1fd)][_0x4fb31f(0x20d)](_0x22775d);}}[_0x57ff19(0x1f1)](){const _0x3104d5=_0x57ff19;this[_0x3104d5(0x335)]=setTimeout(()=>{const _0x5165d3=_0x3104d5;this['_collaborationTimeoutTimer']=null,this[_0x5165d3(0x134)][_0x5165d3(0x325)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x3104d5(0x178)][_0x3104d5(0x2b8)](_0x3104d5(0x184))??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x30e257=_0x57ff19;this[_0x30e257(0x335)]&&=(clearTimeout(this['_collaborationTimeoutTimer']),null);}['_startTelemetryCollaborationNewChangeset'](_0xdcd47d){const _0x5c83db=_0x57ff19;if(!this[_0x5c83db(0x252)])return;let {data:_0x324f8f}=_0xdcd47d,{unitID:_0x2e11a0,changeset:_0xe84e7f}=_0x324f8f,{mutations:_0x353ea8,type:_0xe4904b}=_0xe84e7f;this[_0x5c83db(0x12e)]={'unitId':_0x2e11a0,'type':_0xe4904b,'startTime':performance[_0x5c83db(0x19f)](),'stopTime':0x0,'duration':0x0,'size':Et(_0x353ea8)};}[_0x57ff19(0x1d7)](){const _0x31e2b9=_0x57ff19;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this['_logService']['error'](_0x31e2b9(0xf6),_0x31e2b9(0x2a2));return;}this[_0x31e2b9(0x12e)]['stopTime']=performance[_0x31e2b9(0x19f)](),this['_telemetryInfo'][_0x31e2b9(0x186)]=this[_0x31e2b9(0x12e)]['stopTime']-this[_0x31e2b9(0x12e)][_0x31e2b9(0x2f8)],this['_telemetryService'][_0x31e2b9(0x202)](_0x31e2b9(0xfa),this[_0x31e2b9(0x12e)]),this['_telemetryInfo']=null;}}[_0x57ff19(0x1c8)](){const _0x5fab17=_0x57ff19;this[_0x5fab17(0x12e)]=null;}};Gt=H([V(0x2,_0xe5ab40),V(0x3,_0x37ec8b),V(0x4,_0x3862a7(Mt)),V(0x5,_0x3862a7(jt)),V(0x6,_0x3862a7(B)),V(0x7,_0x58c27a(_0x2cee13))],Gt);const U=_0x5d0b62(_0x57ff19(0x183));function Kt(_0x20166f){const _0x24938a=_0x57ff19;return _0x24938a(0x20e)+_0x20166f;}function qt(_0x4eca38){const _0x1bad51=_0x57ff19;let {unitID:_0x33aabf,mutations:_0x4cd1ce}=_0x4eca38;return{'unitId':_0x33aabf,'subUnitId':_0x4cd1ce['length']>0x0?_0x4cd1ce[0x0]['params'][_0x1bad51(0x255)]:null};}let Jt=class{constructor(_0x3b4757,_0x56ced8,_0x19d289){const _0x184302=_0x57ff19;this[_0x184302(0x28a)]=_0x3b4757,this[_0x184302(0xc9)]=_0x56ced8,this[_0x184302(0x249)]=_0x19d289;}[_0x57ff19(0x28b)](_0x542b72){const _0x264843=_0x57ff19;var _0x14a6a4,_0x4e19c8;let _0x3907bb=this['_injector'][_0x264843(0x29d)](_0x2a9ce9),{unitId:_0x558cdd,subUnitId:_0x33a6cb}=qt(_0x542b72),_0x5d89ef=_0x3907bb==null?void 0x0:_0x3907bb['getWorkbookSelections'](_0x558cdd)[_0x264843(0x169)](),_0x16548f=(_0x14a6a4=this['_instanceService']['getUnit'](_0x558cdd))==null||(_0x14a6a4=_0x14a6a4[_0x264843(0x22d)]())==null?void 0x0:_0x14a6a4['getSheetId']();if(_0x5d89ef[_0x264843(0x2e9)]===0x0||!_0x558cdd||!_0x33a6cb)return;let _0x3131ce=[{'id':_0xabc62e['id'],'params':{'unitId':_0x558cdd,'subUnitId':_0x16548f,'selections':_0x410732['deepClone'](_0x5d89ef)}}],_0xe64c60=this[_0x264843(0xc9)][_0x264843(0x1ee)](_0x542b72,_0x3131ce);if(!_0x567bda(_0xe64c60))throw _0xe64c60[_0x264843(0x20d)];let _0x5d1419=(_0x4e19c8=_0xe64c60[_0x264843(0x316)][0x0])==null||(_0x4e19c8=_0x4e19c8['params'])==null?void 0x0:_0x4e19c8[_0x264843(0x1e0)];if(Array[_0x264843(0x2f7)](_0x5d1419)&&_0x5d1419[_0x264843(0x2e9)]){if(_0x5d1419[_0x264843(0x2e9)]===_0x3131ce[0x0][_0x264843(0x114)][_0x264843(0x1e0)]['length']&&_0x5d1419[_0x264843(0x2e3)]((_0x13f1ff,_0x200d3f)=>_0x3be620['equals'](_0x13f1ff[_0x264843(0x2c4)],_0x3131ce[0x0][_0x264843(0x114)][_0x264843(0x1e0)][_0x200d3f][_0x264843(0x2c4)])))return;this[_0x264843(0x28a)][_0x264843(0x29d)](_0x3ad6c1)[_0x264843(0x138)](_0xabc62e['id'],{'unitId':_0x558cdd,'subUnitId':_0x16548f,'selections':_0x5d1419});}}};Jt=H([V(0x0,_0x3862a7(_0x1e387a)),V(0x1,_0x16e76a),V(0x2,_0x20c84a)],Jt);const W=_0x5d0b62(_0x57ff19(0x351));let Yt=function(_0x66b707){const _0x259850=_0x57ff19;return _0x66b707[_0x66b707[_0x259850(0x1be)]=0x0]=_0x259850(0x1be),_0x66b707[_0x66b707['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x66b707;}({});function Xt(_0x2b3fca){const _0xfe1e86=_0x57ff19;var _0x528f97;return!!((_0x528f97=_0x2b3fca[_0xfe1e86(0x114)])!=null&&_0x528f97[_0xfe1e86(0x2aa)]);}const Zt=new Set([_0x5833b6['id']]),Qt=new Set([_0x422bbe['id'],_0x3adc84['id'],_0x9f6d0c['id'],_0x18031c['id']]);function $t(_0xd632c0,_0x36f3de=Zt){const _0x569159=_0x57ff19;let _0x22b5a9=[];for(let _0x42f3a6 of _0xd632c0){if(_0x36f3de[_0x569159(0x1bf)](_0x42f3a6['id'])){if(_0x22b5a9[_0x569159(0x2e9)]>0x0)break;_0x22b5a9[_0x569159(0x28d)](_0x42f3a6);break;}if(Xt(_0x42f3a6)){if(_0x22b5a9[_0x569159(0x2e9)]>0x0)break;_0x22b5a9[_0x569159(0x28d)](_0x42f3a6);break;}_0x22b5a9[_0x569159(0x28d)](_0x42f3a6);}return _0x22b5a9;}function en(_0x5fd80a,_0x1f5925,_0x48d8ef,_0x43d050,_0xcb0205){const _0x33929b=_0x57ff19;let _0x18bc9e=$t(_0x5fd80a),_0x4b48e1=_0xcb0205[_0x33929b(0x246)](),_0x1eb960=(_0x4b48e1==null?void 0x0:_0x4b48e1[_0x33929b(0x2a5)])??_0x33929b(0x119),_0x4b931a=(_0x4b48e1==null?void 0x0:_0x4b48e1[_0x33929b(0x368)])??'unknown';return{'changeset':{'unitID':_0x1f5925,'type':_0x53d98b(_0x48d8ef[_0x33929b(0x28e)](_0x1f5925)),'baseRev':_0x43d050[_0x33929b(0x2b9)](_0x1f5925),'revision':0x0,'userID':_0x1eb960,'memberID':_0x4b931a,'mutations':_0x18bc9e},'pendingMutations':_0x5fd80a[_0x33929b(0x347)](_0x18bc9e[_0x33929b(0x2e9)])};}const tn=en;function nn(_0x42296f,_0x116d4a,_0x1125d1,_0x5748aa,_0x330815){const _0x5c2c5c=_0x57ff19;let _0x582379=$t(_0x42296f,Qt),_0x2d84d0=_0x330815['getCurrentUser'](),_0x28a9c1=(_0x2d84d0==null?void 0x0:_0x2d84d0['userID'])??_0x5c2c5c(0x119),_0x4ac97d=(_0x2d84d0==null?void 0x0:_0x2d84d0[_0x5c2c5c(0x368)])??_0x5c2c5c(0x119);return{'changeset':{'unitID':_0x116d4a,'type':_0x53d98b(_0x1125d1[_0x5c2c5c(0x28e)](_0x116d4a)),'baseRev':_0x5748aa[_0x5c2c5c(0x2b9)](_0x116d4a),'revision':0x0,'userID':_0x28a9c1,'memberID':_0x4ac97d,'mutations':_0x582379},'pendingMutations':_0x42296f['slice'](_0x582379[_0x5c2c5c(0x2e9)])};}function rn(_0x494b89,_0x565b7b,_0x3cb2ad,_0x2375db,_0x5a3492){const _0x5a8837=_0x57ff19;let _0x1b46c7=_0x494b89[_0x5a8837(0x268)]((_0x51b061,_0x320051)=>{const _0x2f2487=_0x5a8837;let _0xf4872=_0x51b061[_0x51b061[_0x2f2487(0x2e9)]-0x1],{id:_0x3be68e}=_0xf4872??{},{id:_0x4fc188,type:_0x6adbf3}=_0x320051,_0x9fd13=_0x320051[_0x2f2487(0x114)];if(_0x3be68e&&_0x3be68e!==_0x4fc188)throw Error(_0x2f2487(0x115)+_0x3be68e+_0x2f2487(0x1e1)+_0x4fc188+'.');if(!_0xf4872)return[{'id':_0x4fc188,'type':_0x6adbf3,'params':{'unitId':_0x9fd13[_0x2f2487(0xf8)],'textRanges':_0x9fd13[_0x2f2487(0x328)],'actions':_0x9fd13['actions']}}];let _0x24536a=_0xf4872['params'];return an(_0x24536a,_0x9fd13)?[..._0x51b061['slice'](0x0,-0x1),{..._0xf4872,'id':_0x4fc188,'type':_0x6adbf3,'params':{'unitId':_0x9fd13[_0x2f2487(0xf8)],'textRanges':_0x9fd13[_0x2f2487(0x328)],'actions':_0xd40002['compose'](_0x24536a['actions'],_0x9fd13[_0x2f2487(0x1a3)])}}]:[..._0x51b061,{'id':_0x4fc188,'type':_0x6adbf3,'params':{'unitId':_0x9fd13['unitId'],'textRanges':_0x9fd13[_0x2f2487(0x328)],'actions':_0x9fd13[_0x2f2487(0x1a3)]}}];},[]),_0x5dbebd=_0x5a3492[_0x5a8837(0x246)](),_0x2e6b0f=(_0x5dbebd==null?void 0x0:_0x5dbebd['userID'])??_0x5a8837(0x119),_0x4bb2cb=(_0x5dbebd==null?void 0x0:_0x5dbebd[_0x5a8837(0x368)])??_0x5a8837(0x119);return{'changeset':{'unitID':_0x565b7b,'type':_0x53d98b(_0x3cb2ad['getUnitType'](_0x565b7b)),'baseRev':_0x2375db[_0x5a8837(0x2b9)](_0x565b7b),'revision':0x0,'userID':_0x2e6b0f,'memberID':_0x4bb2cb,'mutations':_0x1b46c7},'pendingMutations':_0x494b89['slice'](_0x494b89['length'])};}function an(_0x3a5d09,_0x294395){const _0xdf0bb3=_0x57ff19;return!on(_0x3a5d09)&&!on(_0x294395)&&sn(_0x3a5d09[_0xdf0bb3(0x1a3)],_0x294395[_0xdf0bb3(0x1a3)]);}function on(_0x2a3380){return _0x2a3380['isCompositionEnd']!==void 0x0;}function _0x5b31(){const _0xc3758e=['_getUploadFileURL','getOwnPropertyDescriptor','65275lRdcMS','getSheetBlock','disposeWithMe','createSocket','LOCAL_CACHE_INTERVAL','univer-pro.collaboration-client-adapter-service','NO_OTHER_CLIENTS_EDITING','has','getCfgEnableObjInherit','_redoStacks','_tryEnsureSocket','[SyncedState]:\x20received\x20rejection.','[SyncedState]:\x20received\x20acknowledgement.','registerHTTPInterceptor','_clearHeartbeatTimer','univer-pro.collaboration-client.network-condition.service','_throwTelemetryCollaborationNewChangeset','_snapshotServerService','localUnitId','USERS_LEAVE','_compressMutationService','src','&to=','SUBMIT_CHANGESET','_commandService','_executeRemoteChangeset','_collaborationPaused','timeoutTimer','/allowed','find','text-x','_stopTelemetryCollaborationNewChangeset','resolve','fetchMissingChangesets','PERMISSION_REJ','localeService','_undoRedoService','saveSnapshot','Univer','_resendWithTimeout','selections','\x20-\x20','sort','reverse','_changesetSessionId','_substituteRedoStack','_status$','_clearRedo','3977046TCBaMh','onRemoteRej','_startTelemetryCollaborationNewChangeset','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_onConnectionFailed','enableOfflineEditing','transformMutationsWithChangeset','stringify','ONLINE','_scheduleCollaborationTimeoutTimer','sendHeartbeatTimer','getSnapshotAPIPath','SHOULD_CLOSE_CONN','socketReady','_localCacheService','getTime','loadDoc','COLLABORATION_ENDPOINT_INVALID','toPrimitive','append','clear','_logService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SOCKET_FAILED_RETRY','loadBoard','_transformUndoredo','capture','status','next','_members$','LIVESHARE_OPERATION','filter','_authzIoService','\x20in\x20_schedule.','some','getAllPermissionPoint','updatePermissionObjEvent','error','unit-cache-','_updateState','_getUnitPermissionPoints','_resendTimeout','getMemberID','_type','isPermissionRej','SUBMIT_CHANGESET_TIMEOUT','getImageSourceCache','_emitMembers','joinEvent','_transformRemoteChangesetByIMECache','_onUserJoin','_clearScheduledTask','UPDATE_PERMISSION_OBJ','_onRemoteACK','JOIN_ROOM_FULL','_toggleOffline','getAttachmentUrl','SNAPSHOT_URL_KEY','unitDisposed$','_rescheduleHeartbeat','editing\x20status\x20changed\x20to','LIVESHARE_FETCH_OPERATIONS','getMember','LIVESHARE_TERMINATE','listRoles','workbook','/collaborator','onSyncEditingCollabCursor','/universer-api/authz','getActiveSheet','code','message$','_acknowledgeAwaiting','url','JOIN_ROOM_NOT_EXISTS','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_cfgEnableObjInherit','min','save\x20fail\x20reason\x20is\x20','fromCharCode','connection\x20error','endsWith','packageName','allowed','setConfig','getTypeOfUnitDisposed$','/block/','_listenToNetworkCondition','/-/object/-/batch_allowed','setWaitCount','3754816DpqbVG','constructor','sendChangesetTimeout','getUploadOptions','getCurrentUser','148477xXXUAH','saveSheetBlock','_instanceService','_networkConditionService','CLOSE_ROOM','UUID','listCollaborators','CONFLICT_CACHE_CLEAR_FAILED','catch','SUCCUSS','apply','_shouldReportTelemetry','_unlockTransition','encodeURIComponent','subUnitId','then','_resendTimer','_sendingTimer','/universer-api/stream/file/upload','location','/object/','createCollaborator','JOIN','_getAPIPrefix','avatar','_clearCollaborationTimeoutTimer','/unit/','_transformIMECache','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','IDLE','_state','setCfgEnableObjInherit','_getDownloadEndpointURL','reduce','reject','asObservable','_remoteChangesetQueue','_awaitingChangeset','hostname','_onFetchMissResult','headers','objects','_unitLoaded$','/universer-api/uniscript','_acknowledgeAwaitingIfReady','resourceIDs','startsWith','subject','backupOfflineData','attachment','collabWebSocketUrl','UNIVER_SLIDE','retryConnectingTimer','awaiting','_queuedRemoteChangesets','result','[PendingState]:\x20received\x20rejection.','BASE64','parse','/universer-api/file/{fileID}/sign-url','_onLocalMutation','ERROR_IMAGE','members','PERMISSION_DENIED','AWAITING_WITH_PENDING','_transformRemoteChangesetByStateCache','Workbook','_injector','transformSelections','snapshotServerUrl','push','getUnitType','onMissingChangesets','mutations','body','docStateChange$','conflict','add','_config','objectType','sid','_joinRoom','updateSnapshot','base-ui.attachment-io.service','session.room-full','method','get','clearUnit','loadUnit','responseType','onRemoteAck','telemetry\x20info\x20is\x20not\x20initialized','default','POST','userID','onLocalMutation','_transformStack','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','SYNCED','__splitChunk__','enableSingleActiveInstanceLock','_createSocket','[UniverCollaborationClientPlugin]','onRemoteChangeset','_schedule','_startCollaboration','getImage','infoRsp','unitID','FileId','_memberService','hasOwnProperty','getInterceptPoints','getConfig','getCurrentRevOfUnit','_replaceFileID','[CollaborationState]:\x20apply\x20error!','values','fetchMiss','getUnit','onTransformSelections','endpoint','baseRev','24RvgnSz','NEW_CHANGESETS','range','DEFAULT_FILE_NAME','_prepareConflictRecovery','saveAttachment','_pendingMutations','_sender','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','?url=','withCredentials','put','joinRsp','charCodeAt','resolveUnit','MSG_FOR_ERROR','objectId','close','_docStateChangeManagerService','loadPdf','_sessionChannels','_getUndoStack','getUnitId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','forEach','_lockTransition','CHANGESET_REJ','_getRedoStack','_applyRemoteChangeset','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','objectID','close$','every','_httpService','liveShareNewHost','putCollaborators','81942YlTlVq','_createHandler','length','_initMergeInterceptor','accept','session.room-cnt-exceeds','fetch_missing','closeSession','_imageSourceCache','size','includes','waitForRoom$','delete','incrementRevOfUnit','list','appendMutation','isArray','startTime','FETCH_MISSING','removeMember','UnitEmbedded','getValue','UNIVER_PDF','pending','782460TlaiYV','uploadFileServerUrl','HELLO','updatePermissionPoint','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onMissedChangesetFetched','_univerInstanceService','updateCursorEvent','_transformStateCache','_initDependencies','_acknowledgedAwaitingRevision','_revisionService','commit','_collaborationSessionService','toLocal','floor','onStarting','_localeService','originalMeta','_checkMissing','_maxTotalRetryTimeout','_handler','snapshot','m2Prime','onStateChange','OFFLINE','onPrepareTransformSelections','COMPRESS_MUTATION_SEND','collaborators','decorate','univer-pro.collaboration-client-socket-service','_roomCreated$','3452028joLsyu','loadBase','_getSendChangesetTimeout','collaboration-client.config','Edit','unitType','emitEvent','cfgEnableObjInherit','editingUnit','textRanges','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','toggleOnline','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_BOARD','/rev/','_submitChangeset','USERS_ENTER','pauseCollaboration','{fileID}','getCollabEntity','collaMsg','override','_collaborationTimeoutTimer','change$','file','_getCurrentRevision','setShowComponents','&assign=','_socketChannels','_sendHeartbeat','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','roomInfos','authzUrl','/new_changes','[DataLoaderService]','enableAuthServer','_userManagerService','call','_createInitialStateImpl','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','slice','_roomMembers','transformChangesets','CHANGESET_SHOULD_RETRY','pluginName','entries','unsubscribe','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','confirm','_identity','univer-pro.collaboration-client.single-active-unit-service','complete','_incrementRevisionNumber','init','_handleRemoteChangesets','PERSON','origin','_onConflict','fromCollab','_registerDependencies','_isEchoedAwaitingChangeset','NOT_COLLAB','getCollabEntity$','state','_entityInit$','findIndex','getUnitStatus$','symbol','HEARTBEAT_INTERVAL','UPDATE_CURSOR','iterator','createInstance','csShouldRetryEvent','memberID','[OfflineState]:\x20received\x20changeset.','_syncEditingCollabCursor','_isPermissionRej','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','[PendingState]:\x20received\x20acknowledgement.','Error\x20on\x20receiving\x20event','_toggleOnline','awaiting_with_pending','CHANGESET_ACK','_transformAndApplyRemoteChangeset','getLatestCsReqIdBySid','[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_FAILED','error$','socketMessageSubscription','[CollaborationSessionService]','_closedUnits','LIVESHARE_REQUEST_HOST','_change$','transformUndoRedo','trim','[OfflineState]:\x20received\x20acknowledgement.','number','reconnect','_initCloseConn','_waitForHeartbeatResponse','\x20to\x20','toRemote','csAckEvent','open$','JOIN_ROOM_FAILED','_transformService','session.room-not-exists','encode','_snapshotService','_members','function','_updateStatus','dispose','onCommentUpdate','_onConnectionOpen','_entities','rev','_adapter','_transitionLocked','event$','_getSocketChannel','UNIVER_BASE','_scheduleCompleteTimestamp','_init','changeset','RECV','_prepareTransformSelections','status$','commentUpdate$','_eventService','getTypeOfUnitAdded$','from','LIVESHARE_NEW_HOST','object','replace','_showConflictNotification','_fetchMissChangesets','eventID','encrypt','_resolveSessionIdentity','/universer-api/snapshot','set','_disableEditing','onRemoteRetry','_hasSessionsForEndpoint','getFocusedUnit','_refreshUnitPermission','_changesetReqId','liveShareOperation','permissionRejEvent','[CollaborationSession]','&source=','unitId','endpointKey','collaboration_new_changeset','splice','_showConflictProcessingNotification','_pendingSessions','session','map','toggleOffline','/resources','debug','_onUserLeave','OPTIONAL','interceptor','version','onTransformIME','_initRequestHeader','readyForCollab','_handlerCallback','changesets','_clearTimeoutTimer','FETCH_MISS','pipe','create','_sessionStatus$','dispose$','candidateSocket','name','params','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_removeRoom','loadOfflineData','HEARTBEAT','unknown','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','string','@univerjs-pro/collaboration-client','rollback','_clearRetryConnectingTimer','refreshUnit','_socketService','maxSize','_onCombEvent','loadUnitOfRevision','routeKey','socketService','revision','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','missingChangesets','Failed\x20to\x20update\x20permission\x20point','unit','_onMessage','JOINING','_updateLocalCache','_telemetryInfo','_getAPIPrefixPath','getDeserializedSheetBlock','supports','updateMember','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_collaborationUIEventService','CONFLICT','unitInfo$','PSEUDO_FETCH_MISSING_RESULT','executeCommand','socket$','_onRemoteRetry','addHandlerCallback','_substituteUndoStack','UNIVER_SHEET','_sheetTransformSelectionsService','_onOffline','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','CONFLICT_PROCESSING','submit\x20changeset\x20error!','subscribe','80qKWyYB','updateCollaborator','_singleActiveUnitService','requireSession','_createSession','/universer-api/oidc/authpage','_socketMessageSubscription','offline','[CollaborationUndoRedoService]','_collabSessionService','_disposed','People','disableLocalCache','_telemetryService','_clearUndo','objectPermissionTypes','onSendChangeset','enableCollaboration','fetchThroughInterceptors','/universer-api/user/session-ticket','post','_updateUnitPermissionPoint','1.0.1','/universer-api/snapshot/','_initUnitPermissionChange','title','requestParams','defineProperty','loginUrlKey','sessionStatus','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','update','resend','[CollaborationSessionService]:\x20socket\x20error','_onRemoteRejected','_decreaseWaiting','prototype','getCurrentSelections','_tryReconnect','downloadEndpointUrl','_state$','cmd','clearOfflineData','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','failed\x20to\x20apply\x20missed\x20changesets!','COMPRESS_MUTATION_APPLY','_getSignURL','_getLoginPath','_getConfig','/fetchmissing?from=','_exhaustRemoteChangesetQueue','_permissionService','_configService','reqId','_waitCount','send','copyFileMeta','_unitInfo$','action','AWAITING','138QGZkov','onTransformRemoteChangesetByIMECache','_replayCachedMutations','collaboration-client.local-cache-service','HEARTBEAT_TIMEOUT','localCacheService','duration','_onJoinRoomEvent','c2Prime','UNIVER_DOC','signUrlServerUrl','ws://127.0.0.1:8000/universer-api/comb/connect','onTransformState','INGEST','target','/object','_event$','_upload','unitLoaded$','_getCtorByUniverInstanceType','_sessions','onTransformRemoteChangesetByStateCache','_commentUpdate$','/role','UNISCRIPT_RUN','?size=','_socket','retryCount','onlyLocal','_createInitialState','loadSlide','now','tables','toString','type','actions','loadSheet','awaitingChangeset','retryConnectingInterval','members$','c1Prime','LEAVE','OTHER_CLIENT_EDITING','data','_transformSelections','getAllMembers','_HTTPService','deleteCollaborator','MUTATION','batchAllowed','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','onMutationExecutedForCollab','COMMENT_UPDATE','_onRecvEvent'];_0x5b31=function(){return _0xc3758e;};return _0x5b31();}function sn(_0x3e78b7,_0x1b445c){return cn(_0x3e78b7)&&cn(_0x1b445c)&&!un(_0x3e78b7)&&!un(_0x1b445c)&&!ln(_0x3e78b7)&&!ln(_0x1b445c);}function cn(_0x282c60){const _0x5f590a=_0x57ff19;return dn(_0x282c60)[_0x5f590a(0x20a)](_0x4933ee=>fn(_0x4933ee)&&_0x4933ee['et']===_0x5f590a(0x1d6));}function ln(_0x28831c){const _0x3032ed=_0x57ff19;return dn(_0x28831c)['some'](_0x277b02=>Array[_0x3032ed(0x2f7)](_0x277b02)||typeof _0x277b02=='string'||typeof _0x277b02==_0x3032ed(0x37f));}function un(_0x4aaf9b){const _0x9bdc=_0x57ff19;return dn(_0x4aaf9b)[_0x9bdc(0x20a)](_0x40a4c6=>!fn(_0x40a4c6)||_0x40a4c6['et']!=='text-x'||!Array[_0x9bdc(0x2f7)](_0x40a4c6['e'])?!0x1:_0x40a4c6['e']['some'](_0x15bcfd=>!fn(_0x15bcfd)||!fn(_0x15bcfd['body'])?!0x1:Object['prototype'][_0x9bdc(0x2b6)][_0x9bdc(0x344)](_0x15bcfd[_0x9bdc(0x291)],_0x9bdc(0x1a0))||Object[_0x9bdc(0x168)][_0x9bdc(0x2b6)][_0x9bdc(0x344)](_0x15bcfd['body'],'columnGroups')||Object['prototype']['hasOwnProperty'][_0x9bdc(0x344)](_0x15bcfd['body'],'blockRanges')));}function dn(_0x34a79f){const _0x94ea00=_0x57ff19;if(!Array[_0x94ea00(0x2f7)](_0x34a79f))return[];let _0x3d3ab5=_0x34a79f['includes'](_0x94ea00(0x291))?_0x34a79f:_0x34a79f[_0x94ea00(0x1d5)](_0x2de37c=>Array[_0x94ea00(0x2f7)](_0x2de37c)&&_0x2de37c[_0x94ea00(0x2f1)](_0x94ea00(0x291)));if(!Array[_0x94ea00(0x2f7)](_0x3d3ab5))return[];let _0x44800d=_0x3d3ab5['indexOf'](_0x94ea00(0x291));return _0x44800d===-0x1?[]:_0x3d3ab5[_0x94ea00(0x347)](_0x44800d+0x1);}function fn(_0xa55e24){const _0x8ffc29=_0x57ff19;return typeof _0xa55e24==_0x8ffc29(0xe5)&&!!_0xa55e24&&!Array[_0x8ffc29(0x2f7)](_0xa55e24);}function pn(_0x42849c,_0x26cde4){const _0x336f1d=_0x57ff19;let _0x4e1bec=new _0x31f3b9(0x1);return setTimeout(()=>_0x4e1bec[_0x336f1d(0x204)](_0x26cde4),_0x42849c),_0x4e1bec['asObservable']()[_0x336f1d(0x10e)](_0x2e3eac(0x1));}var mn,hn,gn;let _n=function(_0x37e3f8){const _0x524d33=_0x57ff19;return _0x37e3f8[_0x524d33(0x35c)]='not_collab',_0x37e3f8[_0x524d33(0x2a9)]='synced',_0x37e3f8['PENDING']='pending',_0x37e3f8[_0x524d33(0x17f)]=_0x524d33(0x27c),_0x37e3f8[_0x524d33(0x287)]=_0x524d33(0x370),_0x37e3f8[_0x524d33(0x10d)]='fetch_missing',_0x37e3f8['CONFLICT']=_0x524d33(0x293),_0x37e3f8[_0x524d33(0x318)]=_0x524d33(0x14b),_0x37e3f8;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x3bb1b4,_0x33013b,_0x51efa0,_0x17593d,_0x43ea7f,_0x488794,_0x2b5feb,_0x1a5ef2,_0x2aa520){const _0x91fbef=_0x57ff19;this[_0x91fbef(0x2b3)]=_0x3bb1b4,this[_0x91fbef(0x1a2)]=_0x33013b,this['_handler']=_0x43ea7f,this['_commandService']=_0x488794,this[_0x91fbef(0x1dc)]=_0x2b5feb,this[_0x91fbef(0x30a)]=_0x1a5ef2,this[_0x91fbef(0x1f6)]=_0x2aa520,z(this,_0x91fbef(0x26c),null),z(this,'_pendingMutations',[]),this[_0x91fbef(0x26c)]=_0x51efa0,this[_0x91fbef(0x2c8)]=_0x17593d;}[_0x57ff19(0x312)](_0xfac316){const _0x889947=_0x57ff19;let _0x1d8b63=this['_revisionService']['getCurrentRevOfUnit'](this['unitID']);return _0xfac316[_0x889947(0x126)]>_0x1d8b63+0x1&&(this[_0x889947(0x314)][_0x889947(0x28f)]({'from':_0x1d8b63,'to':_0xfac316[_0x889947(0x126)]-0x1}),!0x0);}[_0x57ff19(0x201)](_0x7b2f74){const _0x49d382=_0x57ff19;this[_0x49d382(0x1dc)][_0x49d382(0x37c)](this['unitID'],_0x7b2f74);}['_transformSelections'](_0x2e4479){const _0x331d27=_0x57ff19;var _0x118d9f,_0x4cee4f;(_0x118d9f=(_0x4cee4f=this[_0x331d27(0x314)])['onTransformSelections'])==null||_0x118d9f[_0x331d27(0x344)](_0x4cee4f,_0x2e4479);}[_0x57ff19(0xde)](_0x276783){const _0x413733=_0x57ff19;var _0x4cf29f,_0x42fb21;return((_0x4cf29f=(_0x42fb21=this[_0x413733(0x314)])[_0x413733(0x319)])==null?void 0x0:_0x4cf29f[_0x413733(0x344)](_0x42fb21,_0x276783))??null;}['_transformIMECache'](_0x4ea7a6){const _0x1b96ea=_0x57ff19;var _0xef988f,_0x3f995b;return(_0xef988f=(_0x3f995b=this['_handler'])[_0x1b96ea(0x107)])==null?void 0x0:_0xef988f[_0x1b96ea(0x344)](_0x3f995b,_0x4ea7a6);}[_0x57ff19(0x307)](_0x2032a4){const _0xa75f08=_0x57ff19;var _0x29095b,_0x586467;return(_0x29095b=(_0x586467=this[_0xa75f08(0x314)])[_0xa75f08(0x18c)])==null?void 0x0:_0x29095b[_0xa75f08(0x344)](_0x586467,_0x2032a4);}[_0x57ff19(0x219)](_0x535d9c){const _0x59ddd2=_0x57ff19;var _0x3caab3,_0x6ed1bb;return((_0x3caab3=(_0x6ed1bb=this[_0x59ddd2(0x314)])[_0x59ddd2(0x181)])==null?void 0x0:_0x3caab3[_0x59ddd2(0x344)](_0x6ed1bb,_0x535d9c))??_0x535d9c;}['_transformRemoteChangesetByStateCache'](_0x2ba1ea){const _0x2ed257=_0x57ff19;var _0x3143c9,_0x72eeef;return((_0x3143c9=(_0x72eeef=this[_0x2ed257(0x314)])[_0x2ed257(0x195)])==null?void 0x0:_0x3143c9[_0x2ed257(0x344)](_0x72eeef,_0x2ba1ea))??_0x2ba1ea;}[_0x57ff19(0x36a)](_0x168c98){const _0xc8609c=_0x57ff19;if(this[_0xc8609c(0x1a2)]===_0xc3375b[_0xc8609c(0x189)]){let {unitID:_0x90b134,mutations:_0x3495c4,memberID:_0x5b9c52}=_0x168c98,_0x4491bd=_0x3495c4[_0xc8609c(0x2e9)]>0x0?_0x3495c4[0x0][_0xc8609c(0x114)][_0xc8609c(0x328)]:[];if(Array['isArray'](_0x4491bd)&&_0x4491bd[_0xc8609c(0x2e9)]>0x0){var _0x23257f,_0x243d3f;(_0x23257f=(_0x243d3f=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x23257f['call'](_0x243d3f,{'unitID':_0x90b134,'memberID':_0x5b9c52,'textRanges':_0x4491bd});}}}['_updateLocalCache'](){const _0x2a1e32=_0x57ff19;var _0xb6dbbf;(_0xb6dbbf=this[_0x2a1e32(0x1f6)])==null||_0xb6dbbf['updateOfflineData'](this[_0x2a1e32(0x2b3)],this[_0x2a1e32(0x1a2)],this[_0x2a1e32(0x26c)],this[_0x2a1e32(0x2c8)]);}[_0x57ff19(0x338)](){const _0x1fa4f4=_0x57ff19;return this[_0x1fa4f4(0x30a)][_0x1fa4f4(0x2b9)](this[_0x1fa4f4(0x2b3)]);}[_0x57ff19(0x353)](){const _0x43e434=_0x57ff19;this[_0x43e434(0x30a)][_0x43e434(0x2f4)](this[_0x43e434(0x2b3)]);}[_0x57ff19(0x1d1)](_0x4de17c){const _0x1bd9a5=_0x57ff19;let _0x5ac185=this[_0x1bd9a5(0x219)](_0x4de17c);_0x5ac185=this[_0x1bd9a5(0x288)](_0x5ac185);let _0x52554d=this[_0x1bd9a5(0xde)](_0x5ac185),_0x487ad6=_0x1fb348(_0x5ac185[_0x1bd9a5(0x290)],this['_commandService'],{'fromCollab':!0x0});if(!_0x487ad6[_0x1bd9a5(0x27e)])throw _0x52554d==null||_0x52554d[_0x1bd9a5(0x11d)](),_0x487ad6[_0x1bd9a5(0x20d)]instanceof Error?_0x487ad6['error']:Error(_0x487ad6[_0x1bd9a5(0x20d)]??_0x1bd9a5(0x2bb));_0x52554d==null||_0x52554d[_0x1bd9a5(0x30b)](),this[_0x1bd9a5(0x262)](_0x5ac185),this[_0x1bd9a5(0x307)](_0x5ac185),this['_transformUndoredo'](_0x4de17c),this[_0x1bd9a5(0x1ac)](_0x5ac185),this[_0x1bd9a5(0x36a)](_0x5ac185),this[_0x1bd9a5(0x353)]();}};let K=class extends G{constructor(_0x58fe80,_0x3d32f0,_0x284ff7,_0x48ca3a,_0x199b19,_0x4fb066,_0x4192f0,_0x576160,_0x189261,_0x39ef10){const _0x2da892=_0x57ff19;super(_0x58fe80,_0x3d32f0,null,[],_0x284ff7,_0x4192f0,_0x4fb066,_0x48ca3a,_0x39ef10),this['_injector']=_0x199b19,this[_0x2da892(0x1fd)]=_0x576160,this[_0x2da892(0xc9)]=_0x189261,this[_0x2da892(0x185)]=_0x39ef10,z(this,'status','synced');}[_0x57ff19(0x2f6)](_0x318086){const _0x2c996f=_0x57ff19;let _0x12f970=this['_injector'][_0x2c996f(0x366)](q,this[_0x2c996f(0x2b3)],this[_0x2c996f(0x1a2)],[_0x318086],this[_0x2c996f(0x314)]);return _0x12f970['_schedule'](),_0x12f970[_0x2c996f(0x12d)](),_0x12f970;}[_0x57ff19(0x2ae)](_0x47e1e4){const _0x246346=_0x57ff19;if(this[_0x246346(0x312)](_0x47e1e4))return this[_0x246346(0x28a)][_0x246346(0x366)](Q,this['unitID'],this[_0x246346(0x1a2)],null,[],null,[_0x47e1e4],this[_0x246346(0x314)]);try{let _0x3b786a=this[_0x246346(0xc9)]['transformMutationsWithChangeset'](_0x47e1e4,[_0x15ca03]);if(_0x567bda(_0x3b786a)){let {c1Prime:_0x5e86c5}=_0x3b786a;return this[_0x246346(0x1d1)](_0x5e86c5),this;}throw _0x3b786a[_0x246346(0x20d)];}catch(_0x35549f){return this[_0x246346(0x1fd)]['error'](_0x35549f),this[_0x246346(0x358)](!0x1);}}[_0x57ff19(0x358)](_0x12300a){const _0x2ebc05=_0x57ff19;return this[_0x2ebc05(0x28a)][_0x2ebc05(0x366)](X,this[_0x2ebc05(0x2b3)],this[_0x2ebc05(0x1a2)],null,[],this['_handler'],_0x12300a);}[_0x57ff19(0x2a1)](_0x495cbc){const _0x1abcc4=_0x57ff19;if(_0x495cbc[_0x1abcc4(0x126)]<=this[_0x1abcc4(0x338)]())return this;throw Error(_0x1abcc4(0x1c4));}[_0x57ff19(0x1e9)](){const _0x287a46=_0x57ff19;throw Error(_0x287a46(0x1c3));}['onRemoteRetry'](){return this;}[_0x57ff19(0x100)](){const _0x2d2f24=_0x57ff19;return this[_0x2d2f24(0x28a)]['createInstance'](Z,this[_0x2d2f24(0x2b3)],this[_0x2d2f24(0x1a2)],null,[],this[_0x2d2f24(0x314)]);}[_0x57ff19(0x32a)](){return this;}[_0x57ff19(0x164)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57ff19(0x2bd)](){const _0x284eb6=_0x57ff19;let _0x2b127e=this[_0x284eb6(0x30a)][_0x284eb6(0x2b9)](this[_0x284eb6(0x2b3)]);return this['_handler'][_0x284eb6(0x28f)]({'from':_0x2b127e,'to':0x0}),this[_0x284eb6(0x28a)][_0x284eb6(0x366)](Q,this[_0x284eb6(0x2b3)],this[_0x284eb6(0x1a2)],null,[],null,[],this[_0x284eb6(0x314)]);}};K=H([V(0x3,_0x3862a7(_0x20a7ac)),V(0x4,_0x3862a7(_0x1e387a)),V(0x5,_0x2ebda0),V(0x6,_0x3ad6c1),V(0x7,_0xe5ab40),V(0x8,_0x16e76a),V(0x9,_0x58c27a(U))],K);let q=mn=class extends G{constructor(_0x2f1b53,_0x37a927,_0x2148e4,_0x567a17,_0x187b88,_0x3787b3,_0x425da3,_0x396688,_0x2a94ef,_0x6b3ae8,_0x5d3fe9,_0x4d2f1e,_0xf1f5fa,_0x383600){const _0x1c69e9=_0x57ff19;super(_0x2f1b53,_0x37a927,null,_0x2148e4,_0x567a17,_0x2a94ef,_0xf1f5fa,_0x3787b3,_0x383600),this[_0x1c69e9(0x28a)]=_0x187b88,this[_0x1c69e9(0x343)]=_0x425da3,this[_0x1c69e9(0x1fd)]=_0x396688,this[_0x1c69e9(0x178)]=_0x6b3ae8,this['_transformService']=_0x5d3fe9,this[_0x1c69e9(0x305)]=_0x4d2f1e,z(this,_0x1c69e9(0x203),_0x1c69e9(0x2fe)),z(this,_0x1c69e9(0xda),null),z(this,_0x1c69e9(0x258),null);}[_0x57ff19(0x2f6)](_0x52a9d6){const _0x531a76=_0x57ff19;return this['_pendingMutations'][_0x531a76(0x28d)](_0x52a9d6),this[_0x531a76(0x12d)](),this;}['onRemoteChangeset'](_0x32448a){const _0x388e33=_0x57ff19;if(this[_0x388e33(0x312)](_0x32448a))return this[_0x388e33(0x21b)](),this[_0x388e33(0x28a)][_0x388e33(0x366)](Q,this[_0x388e33(0x2b3)],this[_0x388e33(0x1a2)],null,this['_pendingMutations'],null,[_0x32448a],this['_handler']);try{let _0x1b1eb2=this[_0x388e33(0xc9)][_0x388e33(0x1ee)](_0x32448a,this[_0x388e33(0x2c8)]);if(_0x567bda(_0x1b1eb2)){let {c1Prime:_0xbddc1f,m2Prime:_0x5b4857}=_0x1b1eb2;this[_0x388e33(0x1d1)](_0xbddc1f);let _0xc6c163=this[_0x388e33(0x28a)][_0x388e33(0x366)](mn,this[_0x388e33(0x2b3)],this[_0x388e33(0x1a2)],_0x5b4857,this[_0x388e33(0x314)]);this[_0x388e33(0x21b)]();let _0x4987ab=new Date()[_0x388e33(0x1f7)](),_0x22b6c7=this[_0x388e33(0xda)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x4987ab,0x0):this['_getSendChangesetTimeout']();return _0xc6c163['_schedule'](_0x22b6c7),_0xc6c163;}throw _0x1b1eb2[_0x388e33(0x20d)];}catch(_0x2ef1b7){return this['_logService'][_0x388e33(0x20d)](_0x2ef1b7),this['_onConflict'](!0x1);}}[_0x57ff19(0x2a1)](_0x369f71){const _0x16cbbf=_0x57ff19;if(_0x369f71['revision']<=this[_0x16cbbf(0x338)]())return this;throw Error(_0x16cbbf(0x36d));}[_0x57ff19(0x1e9)](){const _0x2045d0=_0x57ff19;throw Error(_0x2045d0(0x27f));}[_0x57ff19(0xef)](){return this;}[_0x57ff19(0x100)](){const _0x2678ba=_0x57ff19;return this[_0x2678ba(0x21b)](),this[_0x2678ba(0x28a)]['createInstance'](Z,this[_0x2678ba(0x2b3)],this[_0x2678ba(0x1a2)],null,this['_pendingMutations'],this[_0x2678ba(0x314)]);}[_0x57ff19(0x32a)](){return this;}['_schedule'](_0x50f821){const _0x5270a8=_0x57ff19;let _0x9dad6f=_0x50f821??this[_0x5270a8(0x321)]();this[_0x5270a8(0xda)]=new Date()[_0x5270a8(0x1f7)]()+_0x9dad6f,this['_sendingTimer']=setTimeout(()=>{const _0x21d60d=_0x5270a8;this[_0x21d60d(0x21b)]();let _0x4bc37e=null;switch(this['type']){case _0xc3375b[_0x21d60d(0x13d)]:_0x4bc37e=en(this['_pendingMutations'],this['unitID'],this[_0x21d60d(0x305)],this[_0x21d60d(0x30a)],this[_0x21d60d(0x343)]);break;case _0xc3375b[_0x21d60d(0x189)]:_0x4bc37e=this[_0x21d60d(0x2c8)][_0x21d60d(0x2e3)](_0x3f2956=>_0x3f2956['id']===_0x3fb54e['id'])?rn(this[_0x21d60d(0x2c8)],this[_0x21d60d(0x2b3)],this[_0x21d60d(0x305)],this['_revisionService'],this[_0x21d60d(0x343)]):en(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x21d60d(0x343)]);break;case _0xc3375b['UNIVER_SLIDE']:_0x4bc37e=nn(this[_0x21d60d(0x2c8)],this['unitID'],this['_univerInstanceService'],this[_0x21d60d(0x30a)],this['_userManagerService']);break;case _0xc3375b[_0x21d60d(0x2fd)]:_0x4bc37e=tn(this[_0x21d60d(0x2c8)],this['unitID'],this[_0x21d60d(0x305)],this[_0x21d60d(0x30a)],this[_0x21d60d(0x343)]);break;case _0xc3375b['UNIVER_BOARD']:_0x4bc37e=en(this[_0x21d60d(0x2c8)],this[_0x21d60d(0x2b3)],this['_univerInstanceService'],this['_revisionService'],this['_userManagerService']);break;case _0xc3375b[_0x21d60d(0xd9)]:_0x4bc37e=en(this[_0x21d60d(0x2c8)],this[_0x21d60d(0x2b3)],this[_0x21d60d(0x305)],this[_0x21d60d(0x30a)],this['_userManagerService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x21d60d(0x1a2)]+_0x21d60d(0x209));}let {changeset:_0x1ce186,pendingMutations:_0x5d3e32}=_0x4bc37e;this['_handler'][_0x21d60d(0x154)](_0x1ce186);let _0x579e6d=_0x5d3e32[_0x21d60d(0x2e9)]?this[_0x21d60d(0x28a)]['createInstance'](Y,this[_0x21d60d(0x2b3)],this[_0x21d60d(0x1a2)],_0x1ce186,_0x5d3e32,this['_handler'],void 0x0):this['_injector'][_0x21d60d(0x366)](J,this[_0x21d60d(0x2b3)],this[_0x21d60d(0x1a2)],_0x1ce186,this[_0x21d60d(0x314)]);_0x579e6d['_updateLocalCache'](),this[_0x21d60d(0x314)][_0x21d60d(0x317)](this,_0x579e6d);},_0x9dad6f);}[_0x57ff19(0x321)](){const _0x45e24e=_0x57ff19;let _0x1af2c0=this[_0x45e24e(0x178)]['getConfig'](R);return(_0x1af2c0==null?void 0x0:_0x1af2c0[_0x45e24e(0x244)])??0x7d0;}[_0x57ff19(0x164)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57ff19(0x21b)](){const _0x2be339=_0x57ff19;this[_0x2be339(0x258)]!=null&&(clearTimeout(this[_0x2be339(0x258)]),this[_0x2be339(0x258)]=null);}[_0x57ff19(0x358)](_0x3c7396){const _0x1923a0=_0x57ff19;return this[_0x1923a0(0x21b)](),this[_0x1923a0(0x28a)]['createInstance'](X,this[_0x1923a0(0x2b3)],this['type'],null,this[_0x1923a0(0x2c8)],this['_handler'],_0x3c7396);}};q=mn=H([V(0x4,_0x3862a7(_0x1e387a)),V(0x5,_0x3862a7(_0x20a7ac)),V(0x6,_0x3862a7(_0x1bb5ee)),V(0x7,_0xe5ab40),V(0x8,_0x3ad6c1),V(0x9,_0x37ec8b),V(0xa,_0x16e76a),V(0xb,_0x20c84a),V(0xc,_0x2ebda0),V(0xd,_0x58c27a(U))],q);let J=hn=class extends G{constructor(_0x186bc7,_0x29400d,_0x2f501b,_0x3f29a0,_0x18e0fb,_0x244a95,_0x1aa405,_0x5fa035,_0xa54ec,_0x4ff776,_0x21cc84){const _0xa7722e=_0x57ff19;super(_0x186bc7,_0x29400d,_0x2f501b,[],_0x3f29a0,_0x1aa405,_0x4ff776,_0x244a95,_0x21cc84),this[_0xa7722e(0x28a)]=_0x18e0fb,this['_logService']=_0x5fa035,this[_0xa7722e(0xc9)]=_0xa54ec,z(this,_0xa7722e(0x203),'awaiting'),z(this,_0xa7722e(0x211),0x0),z(this,_0xa7722e(0x313),0x0),z(this,'_resendTimer',void 0x0),z(this,_0xa7722e(0x2c9),void 0x0);}[_0x57ff19(0x2f6)](_0x396440){const _0x5b76c2=_0x57ff19;this[_0x5b76c2(0x21b)]();let _0x97456f=this[_0x5b76c2(0x28a)][_0x5b76c2(0x366)](Y,this[_0x5b76c2(0x2b3)],this[_0x5b76c2(0x1a2)],this[_0x5b76c2(0x26c)],[_0x396440],this['_handler'],this[_0x5b76c2(0x257)]);return _0x97456f[_0x5b76c2(0x12d)](),_0x97456f;}['onRemoteChangeset'](_0x2516ab){const _0x1c27c0=_0x57ff19;if(this[_0x1c27c0(0x312)](_0x2516ab))return this[_0x1c27c0(0x21b)](),this['_injector'][_0x1c27c0(0x366)](Q,this[_0x1c27c0(0x2b3)],this[_0x1c27c0(0x1a2)],this[_0x1c27c0(0x26c)],[],null,[_0x2516ab],this[_0x1c27c0(0x314)]);try{let _0x1c3c68=this[_0x1c27c0(0xc9)][_0x1c27c0(0x349)]([_0x2516ab],[this[_0x1c27c0(0x26c)]],!0x1);if(_0x57a306(_0x1c3c68)){let {c1Prime:_0x438bf4,c2Prime:_0xa28b7e}=_0x1c3c68;this[_0x1c27c0(0x1d1)](_0x438bf4[0x0]),_0xa28b7e[0x0][_0x1c27c0(0x2c1)]=this[_0x1c27c0(0x338)](),this[_0x1c27c0(0x21b)]();let _0x3bc553=this[_0x1c27c0(0x28a)][_0x1c27c0(0x366)](hn,this[_0x1c27c0(0x2b3)],this[_0x1c27c0(0x1a2)],_0xa28b7e[0x0],this[_0x1c27c0(0x314)]);return _0x3bc553[_0x1c27c0(0x12d)](),_0x3bc553;}throw _0x1c3c68[_0x1c27c0(0x20d)];}catch(_0x5d29c2){return this[_0x1c27c0(0x1fd)][_0x1c27c0(0x20d)](_0x5d29c2),this['_onConflict'](!0x1);}}[_0x57ff19(0x2a1)](_0x2888bb){const _0x548620=_0x57ff19;this[_0x548620(0x21b)]();let _0x146984=this[_0x548620(0x30a)][_0x548620(0x2b9)](this['unitID']);if(_0x2888bb[_0x548620(0x126)]<=_0x146984)return this;if(this['_checkMissing'](_0x2888bb))return this['_injector'][_0x548620(0x366)](Q,this[_0x548620(0x2b3)],this['type'],this[_0x548620(0x26c)],[],_0x2888bb[_0x548620(0x126)],[],this['_handler']);this[_0x548620(0x353)]();let _0xb7eb25=this['_injector'][_0x548620(0x366)](K,this[_0x548620(0x2b3)],this[_0x548620(0x1a2)],this[_0x548620(0x314)]);return _0xb7eb25[_0x548620(0x12d)](),_0xb7eb25;}['onRemoteRej'](_0x37fc6b){const _0xd66b03=_0x57ff19;return this[_0xd66b03(0x358)](!!(_0x37fc6b!=null&&_0x37fc6b[_0xd66b03(0x214)]));}[_0x57ff19(0xef)](_0x2f94f1){const _0x33e28c=_0x57ff19;return this[_0x33e28c(0x313)]>yn?this[_0x33e28c(0x100)]():(this[_0x33e28c(0x257)]=pn(this['_resendTimeout'],{'timeout':this[_0x33e28c(0x211)],'reqId':_0x2f94f1[_0x33e28c(0x179)]}),this['_sender']=this[_0x33e28c(0x257)]['subscribe'](({reqId:_0x197542,timeout:_0x2fe1d5})=>{const _0x4e2aa5=_0x33e28c;this[_0x4e2aa5(0x1df)](_0x197542,_0x2fe1d5);}),this);}['toggleOffline'](){const _0x2497e2=_0x57ff19;return this[_0x2497e2(0x21b)](),this[_0x2497e2(0x28a)][_0x2497e2(0x366)](Z,this[_0x2497e2(0x2b3)],this['type'],this[_0x2497e2(0x26c)],[],this[_0x2497e2(0x314)]);}[_0x57ff19(0x32a)](){return this;}[_0x57ff19(0x164)](){const _0x43fea4=_0x57ff19;this[_0x43fea4(0x314)][_0x43fea4(0x154)](this[_0x43fea4(0x26c)]);}['_onConflict'](_0x105f42){const _0x93774d=_0x57ff19;return this[_0x93774d(0x21b)](),this['_injector'][_0x93774d(0x366)](X,this[_0x93774d(0x2b3)],this[_0x93774d(0x1a2)],this['_awaitingChangeset'],[],this['_handler'],_0x105f42);}[_0x57ff19(0x1df)](_0x132584,_0x41cac1){const _0x266120=_0x57ff19;var _0x475ec3;_0x132584===((_0x475ec3=this[_0x266120(0x26c)])==null?void 0x0:_0x475ec3[_0x266120(0x179)])&&(this[_0x266120(0x164)](),this['_resendTimeout']=_0x41cac1===0x0?0x3e8:Math[_0x266120(0x235)](_0x41cac1*0x2,vn),this[_0x266120(0x313)]+=this[_0x266120(0x211)]);}['_clearScheduledTask'](){const _0x3b8c64=_0x57ff19;var _0x202391;(_0x202391=this[_0x3b8c64(0x2c9)])==null||_0x202391[_0x3b8c64(0x34d)](),this[_0x3b8c64(0x211)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=hn=H([V(0x4,_0x3862a7(_0x1e387a)),V(0x5,_0x3862a7(_0x20a7ac)),V(0x6,_0x3ad6c1),V(0x7,_0xe5ab40),V(0x8,_0x16e76a),V(0x9,_0x2ebda0),V(0xa,_0x58c27a(U))],J);let Y=gn=class extends G{constructor(_0x3e97a0,_0x11fbbb,_0x29637f,_0x34fcd4,_0x2653f9,_0x2854a0,_0x2b1bef,_0x1ec649,_0x557096,_0x165d47,_0x380d33,_0x2c6267,_0xd318ba){const _0x381614=_0x57ff19;super(_0x3e97a0,_0x11fbbb,_0x29637f,_0x34fcd4,_0x2653f9,_0x557096,_0x2c6267,_0x1ec649,_0xd318ba),this[_0x381614(0x28a)]=_0x2b1bef,this[_0x381614(0x1fd)]=_0x165d47,this[_0x381614(0xc9)]=_0x380d33,this['localCacheService']=_0xd318ba,z(this,'status',_0x381614(0x370)),z(this,_0x381614(0x211),0x0),z(this,_0x381614(0x313),0x0),z(this,_0x381614(0x257),void 0x0),z(this,_0x381614(0x2c9),void 0x0),_0x2854a0&&(this[_0x381614(0x257)]=_0x2854a0,this[_0x381614(0x2c9)]=this[_0x381614(0x257)][_0x381614(0x143)](({reqId:_0x578212,timeout:_0x5a4575})=>{const _0x1c2170=_0x381614;this[_0x1c2170(0x1df)](_0x578212,_0x5a4575);}));}['appendMutation'](_0xb31c57){const _0x56a9d3=_0x57ff19;return this[_0x56a9d3(0x2c8)][_0x56a9d3(0x28d)](_0xb31c57),this;}[_0x57ff19(0x2ae)](_0xf7478b){const _0x238082=_0x57ff19;if(this[_0x238082(0x312)](_0xf7478b))return this[_0x238082(0x21b)](),this[_0x238082(0x28a)][_0x238082(0x366)](Q,this['unitID'],this[_0x238082(0x1a2)],this[_0x238082(0x26c)],this[_0x238082(0x2c8)],null,[_0xf7478b],this[_0x238082(0x314)]);try{let _0x311647=this[_0x238082(0xc9)][_0x238082(0x349)]([_0xf7478b],[this['_awaitingChangeset']],!0x1);if(_0x57a306(_0x311647)){let {c1Prime:_0x37dd7f,c2Prime:_0x2ed930}=_0x311647,_0x3f4cfc=this[_0x238082(0xc9)]['transformMutationsWithChangeset'](_0x37dd7f[0x0],this[_0x238082(0x2c8)]);if(_0x567bda(_0x3f4cfc)){let {c1Prime:_0x1c4222,m2Prime:_0x553fca}=_0x3f4cfc;return this[_0x238082(0x1d1)](_0x1c4222),_0x2ed930[0x0]['baseRev']=this[_0x238082(0x338)](),this[_0x238082(0x21b)](),this[_0x238082(0x28a)][_0x238082(0x366)](gn,this['unitID'],this[_0x238082(0x1a2)],_0x2ed930[0x0],_0x553fca,this[_0x238082(0x314)],void 0x0);}throw _0x3f4cfc['error'];}throw _0x311647[_0x238082(0x20d)];}catch(_0x520363){return this[_0x238082(0x1fd)][_0x238082(0x20d)](_0x520363),this['_onConflict'](!0x1);}}[_0x57ff19(0x2a1)](_0x43261f){const _0x1db39a=_0x57ff19;this[_0x1db39a(0x21b)]();let _0x7766c4=this[_0x1db39a(0x338)]();if(_0x43261f[_0x1db39a(0x126)]<=_0x7766c4)return this;if(this[_0x1db39a(0x312)](_0x43261f))return this[_0x1db39a(0x28a)][_0x1db39a(0x366)](Q,this[_0x1db39a(0x2b3)],this[_0x1db39a(0x1a2)],this['_awaitingChangeset'],this[_0x1db39a(0x2c8)],_0x43261f['revision'],[],this[_0x1db39a(0x314)]);this[_0x1db39a(0x353)]();let _0xbe9dc9=this[_0x1db39a(0x28a)][_0x1db39a(0x366)](q,this[_0x1db39a(0x2b3)],this[_0x1db39a(0x1a2)],this[_0x1db39a(0x2c8)],this['_handler']);return _0xbe9dc9[_0x1db39a(0x2af)](),_0xbe9dc9['_updateLocalCache'](),_0xbe9dc9;}[_0x57ff19(0x1e9)](_0x5265d1){const _0x567470=_0x57ff19;return this['_onConflict'](!!(_0x5265d1!=null&&_0x5265d1[_0x567470(0x214)]));}[_0x57ff19(0xef)](_0x2444cb){const _0x4b4b81=_0x57ff19;return this[_0x4b4b81(0x313)]>yn?this[_0x4b4b81(0x100)]():(this[_0x4b4b81(0x257)]=pn(this[_0x4b4b81(0x211)],{'timeout':this[_0x4b4b81(0x211)],'reqId':_0x2444cb[_0x4b4b81(0x179)]}),this[_0x4b4b81(0x2c9)]=this[_0x4b4b81(0x257)][_0x4b4b81(0x143)](({reqId:_0xb96661,timeout:_0x57b7a8})=>{const _0x580398=_0x4b4b81;this[_0x580398(0x1df)](_0xb96661,_0x57b7a8);}),this);}[_0x57ff19(0x100)](){const _0x3e6f07=_0x57ff19;return this[_0x3e6f07(0x21b)](),this['_injector'][_0x3e6f07(0x366)](Z,this[_0x3e6f07(0x2b3)],this[_0x3e6f07(0x1a2)],this[_0x3e6f07(0x26c)],this[_0x3e6f07(0x2c8)],this[_0x3e6f07(0x314)]);}['toggleOnline'](){return this;}[_0x57ff19(0x164)](){const _0x110f46=_0x57ff19;this['_handler'][_0x110f46(0x154)](this['_awaitingChangeset']);}[_0x57ff19(0x358)](_0x341e58){const _0x3e0ef4=_0x57ff19;return this[_0x3e0ef4(0x21b)](),this['_injector']['createInstance'](X,this[_0x3e0ef4(0x2b3)],this[_0x3e0ef4(0x1a2)],null,this[_0x3e0ef4(0x2c8)],this[_0x3e0ef4(0x314)],_0x341e58);}[_0x57ff19(0x1df)](_0x1acb72,_0x4bef8a){const _0x4ebe2b=_0x57ff19;var _0x5ea51a;_0x1acb72===((_0x5ea51a=this[_0x4ebe2b(0x26c)])==null?void 0x0:_0x5ea51a[_0x4ebe2b(0x179)])&&(this['resend'](),this['_resendTimeout']=_0x4bef8a===0x0?0x3e8:Math[_0x4ebe2b(0x235)](_0x4bef8a*0x2,vn),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x57ff19(0x21b)](){const _0x4bcfd1=_0x57ff19;var _0x2695f7;(_0x2695f7=this[_0x4bcfd1(0x2c9)])==null||_0x2695f7[_0x4bcfd1(0x34d)](),this['_resendTimeout']=0x0,this[_0x4bcfd1(0x313)]=0x0;}};Y=gn=H([V(0x6,_0x3862a7(_0x1e387a)),V(0x7,_0x3862a7(_0x20a7ac)),V(0x8,_0x3ad6c1),V(0x9,_0xe5ab40),V(0xa,_0x16e76a),V(0xb,_0x2ebda0),V(0xc,_0x58c27a(U))],Y);let X=class extends G{constructor(_0x51ddef,_0x22ac24,_0x412a47,_0x3e596b,_0x4e9b95,_0x26546e=!0x1,_0x5c47e9,_0x456f29,_0x54cf64,_0x2f3b57,_0x38ee88,_0x1e7040,_0x11bbc5){const _0x4c3fe1=_0x57ff19;super(_0x51ddef,_0x22ac24,_0x412a47,_0x3e596b,_0x4e9b95,_0x456f29,_0x54cf64,_0x2f3b57,_0x11bbc5),this[_0x4c3fe1(0x36b)]=_0x26546e,this['_permissionService']=_0x5c47e9,this[_0x4c3fe1(0x310)]=_0x38ee88,this['_collaborationUIEventService']=_0x1e7040,this[_0x4c3fe1(0x185)]=_0x11bbc5,z(this,'status',_0x4c3fe1(0x293)),this[_0x4c3fe1(0xee)](),this['_showConflictProcessingNotification'](),this[_0x4c3fe1(0x2c6)]();}[_0x57ff19(0x2f6)](){return this;}[_0x57ff19(0x2ae)](){return this;}[_0x57ff19(0x2a1)](){return this;}['onRemoteRej'](){return this;}[_0x57ff19(0xef)](){return this;}[_0x57ff19(0x100)](){return this;}[_0x57ff19(0x32a)](){return this;}[_0x57ff19(0x164)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}async['_prepareConflictRecovery'](){const _0x259519=_0x57ff19;var _0x37c761,_0x5de208;await((_0x37c761=this[_0x259519(0x1f6)])==null||(_0x5de208=_0x37c761[_0x259519(0x277)])==null?void 0x0:_0x5de208[_0x259519(0x344)](_0x37c761,this[_0x259519(0x2b3)],_0x259519(0x293))['catch'](()=>void 0x0));try{var _0x4ec5d7;await((_0x4ec5d7=this['_localCacheService'])==null?void 0x0:_0x4ec5d7[_0x259519(0x16e)](this[_0x259519(0x2b3)]));}catch{this[_0x259519(0x134)][_0x259519(0x325)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this['unitID']});return;}this['_showConflictNotification']();}[_0x57ff19(0xfc)](){const _0x3b0370=_0x57ff19;this[_0x3b0370(0x134)][_0x3b0370(0x325)]({'id':'CONFLICT_PROCESSING'});}[_0x57ff19(0xe7)](){const _0x5ec72e=_0x57ff19;this[_0x5ec72e(0x36b)]?this[_0x5ec72e(0x134)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x5ec72e(0x134)][_0x5ec72e(0x325)]({'id':'CONFLICT'});}[_0x57ff19(0xee)](){const _0x808b5b=_0x57ff19;this['_permissionService']['updatePermissionPoint'](new _0x2a45e8(this[_0x808b5b(0x2b3)])['id'],!0x1);}};X=H([V(0x6,_0x3862a7(_0x3d554c)),V(0x7,_0x3ad6c1),V(0x8,_0x2ebda0),V(0x9,_0x3862a7(_0x20a7ac)),V(0xa,_0x3862a7(_0x4ecf6b)),V(0xb,_0x3862a7(B)),V(0xc,_0x58c27a(U))],X);let Z=class extends G{constructor(_0xd0eab8,_0x21b2f2,_0x581cc0,_0x5ce456,_0x4ea2a0,_0x55951c,_0x4f8e38,_0x53ce66,_0x361a55,_0xdf005c){const _0x415278=_0x57ff19;super(_0xd0eab8,_0x21b2f2,_0x581cc0,_0x5ce456,_0x4ea2a0,_0x53ce66,_0x361a55,_0x4f8e38,_0xdf005c),this['_injector']=_0x55951c,z(this,_0x415278(0x203),_0x415278(0x14b));}[_0x57ff19(0x2f6)](_0x291a03){const _0x25fea5=_0x57ff19;return this[_0x25fea5(0x2c8)][_0x25fea5(0x28d)](_0x291a03),this[_0x25fea5(0x12d)](),this;}[_0x57ff19(0x2ae)](_0x2048cc){const _0x28d85e=_0x57ff19;throw Error(_0x28d85e(0x369));}[_0x57ff19(0x2a1)](){const _0x1dfa15=_0x57ff19;throw Error(_0x1dfa15(0x37e));}[_0x57ff19(0x1e9)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x57ff19(0xef)](){return this;}[_0x57ff19(0x100)](){return this;}[_0x57ff19(0x32a)](){const _0x5334ee=_0x57ff19;let {_injector:_0x47d155,_pendingMutations:_0x16ba30,_awaitingChangeset:_0x450965,unitID:_0x2c4e25,_handler:_0x2fd824,type:_0x576503}=this,_0x4f7db5=bn(_0x47d155,_0x2c4e25,_0x576503,_0x450965,_0x16ba30,_0x2fd824);return _0x4f7db5 instanceof q?_0x4f7db5[_0x5334ee(0x2af)]():(_0x4f7db5 instanceof Y||_0x4f7db5 instanceof J)&&_0x4f7db5['resend'](),_0x4f7db5;}[_0x57ff19(0x164)](){const _0x424155=_0x57ff19;throw Error(_0x424155(0x2ca));}};Z=H([V(0x5,_0x3862a7(_0x1e387a)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3ad6c1),V(0x8,_0x2ebda0),V(0x9,_0x58c27a(U))],Z);let Q=class extends G{constructor(_0x5d656b,_0x58722f,_0x2d097d,_0x4039cf,_0x52a557,_0x855e81,_0x1df365,_0x1a761c,_0x30ca9a,_0x1c12bb,_0x2358bc,_0x204fab,_0x5ea9db,_0x4f79c){const _0x591597=_0x57ff19;super(_0x5d656b,_0x58722f,_0x2d097d,_0x4039cf,_0x1df365,_0x2358bc,_0x204fab,_0x30ca9a,_0x4f79c),this[_0x591597(0x309)]=_0x52a557,this[_0x591597(0x27d)]=_0x855e81,this[_0x591597(0x28a)]=_0x1a761c,this[_0x591597(0x1fd)]=_0x1c12bb,this[_0x591597(0xc9)]=_0x5ea9db,this[_0x591597(0x185)]=_0x4f79c,z(this,'status',_0x591597(0x2ed));}[_0x57ff19(0x304)](_0x1f53a2){const _0x13bcba=_0x57ff19;try{if(this[_0x13bcba(0x355)](_0x1f53a2)['missingChangesets'])throw Error(_0x13bcba(0x346));if(this[_0x13bcba(0x355)]([...this[_0x13bcba(0x27d)]][_0x13bcba(0x1e2)]((_0x3ffb08,_0x452c49)=>_0x3ffb08[_0x13bcba(0x126)]-_0x452c49[_0x13bcba(0x126)]))[_0x13bcba(0x128)])return this[_0x13bcba(0x27d)]=[],this[_0x13bcba(0x12d)](),this[_0x13bcba(0x314)][_0x13bcba(0x28f)]({'from':this[_0x13bcba(0x338)](),'to':0x0}),this;let _0x2fe9f5=this[_0x13bcba(0x26c)],_0x5dd529=this['_pendingMutations'],_0x1ac74d;if(_0x2fe9f5&&_0x5dd529[_0x13bcba(0x2e9)]!==0x0)_0x1ac74d=this['_injector']['createInstance'](Y,this['unitID'],this[_0x13bcba(0x1a2)],_0x2fe9f5,_0x5dd529,this['_handler'],void 0x0);else{if(_0x2fe9f5&&_0x5dd529[_0x13bcba(0x2e9)]===0x0)_0x2fe9f5[_0x13bcba(0x2c1)]=this['_getCurrentRevision'](),_0x1ac74d=this['_injector']['createInstance'](J,this[_0x13bcba(0x2b3)],this[_0x13bcba(0x1a2)],_0x2fe9f5,this['_handler']);else{if(_0x5dd529[_0x13bcba(0x2e9)]!==0x0){let _0x178ac3=this[_0x13bcba(0x28a)][_0x13bcba(0x366)](q,this['unitID'],this[_0x13bcba(0x1a2)],_0x5dd529,this[_0x13bcba(0x314)]);_0x178ac3[_0x13bcba(0x2af)](),_0x1ac74d=_0x178ac3;}else _0x1ac74d=this[_0x13bcba(0x28a)]['createInstance'](K,this[_0x13bcba(0x2b3)],this[_0x13bcba(0x1a2)],this[_0x13bcba(0x314)]);}}return _0x1ac74d[_0x13bcba(0x12d)](),_0x1ac74d;}catch(_0x196dff){return this[_0x13bcba(0x1fd)][_0x13bcba(0x20d)]('[FetchMissState]',_0x13bcba(0x170),_0x196dff),this[_0x13bcba(0x28a)][_0x13bcba(0x366)](X,this['unitID'],this[_0x13bcba(0x1a2)],this[_0x13bcba(0x26c)],this[_0x13bcba(0x2c8)],this[_0x13bcba(0x314)],!0x1);}}['_handleRemoteChangesets'](_0x32808e){const _0x5875d1=_0x57ff19;this[_0x5875d1(0x273)]();for(let _0x2ea9df=0x0;_0x2ea9df<_0x32808e['length'];_0x2ea9df++){let _0x59f473=_0x32808e[_0x2ea9df],_0x58aecc=this[_0x5875d1(0x338)]();if(!(_0x59f473[_0x5875d1(0x126)]<=_0x58aecc)){if(_0x59f473[_0x5875d1(0x126)]>_0x58aecc+0x1)return{'missingChangesets':!0x0};if(this[_0x5875d1(0x35b)](_0x59f473)){this[_0x5875d1(0x230)]();continue;}this[_0x5875d1(0x372)](_0x59f473),this[_0x5875d1(0x273)]();}}return{'missingChangesets':!0x1};}[_0x57ff19(0x372)](_0x24d434){const _0x38a473=_0x57ff19;let _0x677ce=_0x24d434,_0x2da0e5=this[_0x38a473(0x26c)];if(_0x2da0e5){let _0x329376=this[_0x38a473(0xc9)]['transformChangesets']([_0x24d434],[_0x2da0e5],!0x1);if(!_0x57a306(_0x329376))throw _0x329376[_0x38a473(0x20d)];_0x677ce=_0x329376[_0x38a473(0x1a8)][0x0],_0x2da0e5=_0x329376[_0x38a473(0x188)][0x0];}let _0x43dadc=this[_0x38a473(0x2c8)];if(_0x43dadc[_0x38a473(0x2e9)]){let _0x29cde9=this[_0x38a473(0xc9)][_0x38a473(0x1ee)](_0x677ce,_0x43dadc);if(!_0x567bda(_0x29cde9))throw _0x29cde9['error'];_0x677ce=_0x29cde9[_0x38a473(0x1a8)],_0x43dadc=_0x29cde9['m2Prime'];}this[_0x38a473(0x1d1)](_0x677ce),_0x2da0e5&&(_0x2da0e5[_0x38a473(0x2c1)]=this[_0x38a473(0x338)]()),this[_0x38a473(0x26c)]=_0x2da0e5,this[_0x38a473(0x2c8)]=_0x43dadc;}[_0x57ff19(0x273)](){const _0x44e6bd=_0x57ff19;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x2d10dd=this['_getCurrentRevision']();if(this['_acknowledgedAwaitingRevision']<=_0x2d10dd)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this[_0x44e6bd(0x309)]+'.');this[_0x44e6bd(0x309)]===_0x2d10dd+0x1&&this[_0x44e6bd(0x230)]();}['_acknowledgeAwaiting'](){const _0x1a44e3=_0x57ff19;this['_incrementRevisionNumber'](),this[_0x1a44e3(0x26c)]=null,this['_acknowledgedAwaitingRevision']=null;}[_0x57ff19(0x35b)](_0x5ca55a){const _0x16b900=_0x57ff19;let _0x204dbb=this[_0x16b900(0x26c)];return!_0x204dbb||!_0x204dbb[_0x16b900(0x297)]||_0x204dbb[_0x16b900(0x179)]===null||_0x204dbb[_0x16b900(0x179)]===void 0x0?!0x1:_0x5ca55a[_0x16b900(0x2b3)]===_0x204dbb['unitID']&&_0x5ca55a[_0x16b900(0x297)]===_0x204dbb[_0x16b900(0x297)]&&_0x5ca55a[_0x16b900(0x179)]===_0x204dbb[_0x16b900(0x179)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57ff19(0x2f6)](_0x474492){const _0x1259fd=_0x57ff19;return this[_0x1259fd(0x2c8)][_0x1259fd(0x28d)](_0x474492),this;}['onRemoteChangeset'](_0x481778){const _0x1325a7=_0x57ff19;return this['_queuedRemoteChangesets'][_0x1325a7(0x28d)](_0x481778),this;}[_0x57ff19(0x2a1)](_0x5da915){const _0x5cc72f=_0x57ff19;if(this['_awaitingChangeset']){let _0x3cb140=this[_0x5cc72f(0x338)]();return _0x5da915['revision']<=_0x3cb140||(_0x3cb140+0x1===_0x5da915[_0x5cc72f(0x126)]?(this['_incrementRevisionNumber'](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null):this[_0x5cc72f(0x309)]=_0x5da915[_0x5cc72f(0x126)]),this;}if(_0x5da915[_0x5cc72f(0x126)]<=this['_getCurrentRevision']())return this;throw Error(_0x5cc72f(0x329));}[_0x57ff19(0x1e9)](_0x27c701){const _0x5329a5=_0x57ff19;return this[_0x5329a5(0x358)](!!(_0x27c701!=null&&_0x27c701[_0x5329a5(0x214)]));}[_0x57ff19(0xef)](){return this;}[_0x57ff19(0x100)](){const _0x20a120=_0x57ff19;return this[_0x20a120(0x28a)][_0x20a120(0x366)](Z,this[_0x20a120(0x2b3)],this[_0x20a120(0x1a2)],this[_0x20a120(0x26c)],this['_pendingMutations'],this['_handler']);}[_0x57ff19(0x32a)](){return this;}['_onConflict'](_0x3a759e){const _0x2c7b1a=_0x57ff19;return this[_0x2c7b1a(0x28a)][_0x2c7b1a(0x366)](X,this[_0x2c7b1a(0x2b3)],this[_0x2c7b1a(0x1a2)],this['_awaitingChangeset'],this[_0x2c7b1a(0x2c8)],this[_0x2c7b1a(0x314)],_0x3a759e);}};Q=H([V(0x7,_0x3862a7(_0x1e387a)),V(0x8,_0x3862a7(_0x20a7ac)),V(0x9,_0xe5ab40),V(0xa,_0x3ad6c1),V(0xb,_0x2ebda0),V(0xc,_0x16e76a),V(0xd,_0x58c27a(U))],Q);function bn(_0x296ce9,_0x491de1,_0x1ef375,_0x5e44cc,_0xb4f788,_0x3c3dab){const _0x33db8a=_0x57ff19;return _0x5e44cc&&_0xb4f788[_0x33db8a(0x2e9)]?_0x296ce9[_0x33db8a(0x366)](Y,_0x491de1,_0x1ef375,_0x5e44cc,_0xb4f788,_0x3c3dab,void 0x0):_0x5e44cc?_0x296ce9['createInstance'](J,_0x491de1,_0x1ef375,_0x5e44cc,_0x3c3dab):_0xb4f788[_0x33db8a(0x2e9)]?_0x296ce9['createInstance'](q,_0x491de1,_0x1ef375,_0xb4f788,_0x3c3dab):_0x296ce9[_0x33db8a(0x366)](K,_0x491de1,_0x1ef375,_0x3c3dab);}let $=class extends _0x41c222{get[_0x57ff19(0x35e)](){const _0x4ccc27=_0x57ff19;return this[_0x4ccc27(0x265)];}constructor(_0x3c1d57,_0x15062c,_0x227988,_0x51c480,_0x466092,_0x2d26c2,_0x5a1bd7,_0x5c1403,_0xfd549f,_0x10272c,_0x21fe8e,_0x3a4c02,_0x48fedf,_0x55fe6a){const _0x24f3fd=_0x57ff19;super(),this[_0x24f3fd(0x2b3)]=_0x3c1d57,this[_0x24f3fd(0xfe)]=_0x15062c,this[_0x24f3fd(0x213)]=_0x227988,this['_injector']=_0x51c480,this[_0x24f3fd(0x1cc)]=_0x466092,this['_localeService']=_0x2d26c2,this[_0x24f3fd(0x30a)]=_0x5a1bd7,this['_eventService']=_0x5c1403,this[_0x24f3fd(0x305)]=_0xfd549f,this[_0x24f3fd(0x1fd)]=_0x10272c,this['_commandService']=_0x21fe8e,this[_0x24f3fd(0x177)]=_0x3a4c02,this[_0x24f3fd(0x146)]=_0x48fedf,this[_0x24f3fd(0x1f6)]=_0x55fe6a,z(this,'_state$',new _0x2c6b74(null)),z(this,'state$',this[_0x24f3fd(0x16c)]['asObservable']()),z(this,_0x24f3fd(0x265),void 0x0),z(this,_0x24f3fd(0x1d2),!0x1),z(this,_0x24f3fd(0x1e4),''),z(this,_0x24f3fd(0xf3),0x0),z(this,_0x24f3fd(0xdf),this['state$'][_0x24f3fd(0x10e)](_0x46d47e(_0x47eb89=>_0x47eb89?_0x47eb89['status']:_0x24f3fd(0x14b)),_0x3d5147({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x24f3fd(0xd6),!0x1),z(this,'_remoteChangesetQueue',[]);}async[_0x57ff19(0x354)](){const _0x44aa5b=_0x57ff19;if(this[_0x44aa5b(0x35e)])throw Error(_0x44aa5b(0x1eb));await this[_0x44aa5b(0xdb)]();}[_0x57ff19(0x330)](){const _0x2369c8=_0x57ff19;return this[_0x2369c8(0x1d2)]=!0x0,_0x872626(()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x57ff19(0x2a6)](_0x5d4bf3){const _0x482e34=_0x57ff19;this[_0x482e34(0x283)](_0x5d4bf3);}[_0x57ff19(0x20f)](_0x1ea617){const _0x426bbb=_0x57ff19;this[_0x426bbb(0x265)]=_0x1ea617,this[_0x426bbb(0x16c)]['next'](_0x1ea617);}async[_0x57ff19(0xdb)](){const _0x1312ad=_0x57ff19;if(this[_0x1312ad(0x20f)](await this[_0x1312ad(0x19d)]()),this[_0x1312ad(0x146)]){var _0x3a5e0f;(_0x3a5e0f=this['_singleActiveUnitService'])==null||_0x3a5e0f[_0x1312ad(0x327)](this[_0x1312ad(0x2b3)]),this[_0x1312ad(0x1ba)](this['_singleActiveUnitService'][_0x1312ad(0x361)](this[_0x1312ad(0x2b3)])['subscribe'](_0x99d29f=>{const _0xa567d8=_0x1312ad;this[_0xa567d8(0x1fd)][_0xa567d8(0x102)]('[CollaborationEntity]',_0xa567d8(0x224),_0x99d29f),_0x99d29f===0x1?(this[_0xa567d8(0xe1)][_0xa567d8(0x325)]({'id':_0xa567d8(0x1aa)}),this['_permissionService'][_0xa567d8(0x302)](new _0x2a45e8(this[_0xa567d8(0x2b3)])['id'],!0x1),this[_0xa567d8(0x177)][_0xa567d8(0x339)](!0x1)):(this[_0xa567d8(0x177)][_0xa567d8(0x302)](new _0x2a45e8(this[_0xa567d8(0x2b3)])['id'],!0x0),this[_0xa567d8(0x177)]['setShowComponents'](!0x0));}));}let _0x471026=!0x1;return this[_0x1312ad(0x1ba)](this[_0x1312ad(0xfe)]['sessionStatus$'][_0x1312ad(0x143)](_0x434506=>{const _0x1ad808=_0x1312ad;_0x434506===0x3?this[_0x1ad808(0x36f)](_0x471026):_0x434506===0x2&&(_0x471026=!0x0,this[_0x1ad808(0x21f)]());})),this['disposeWithMe'](this[_0x1312ad(0xfe)][_0x1312ad(0xd7)][_0x1312ad(0x143)](_0x1b88fd=>{const _0x32d554=_0x1312ad;try{switch(_0x1b88fd[_0x32d554(0xe9)]){case _0x44b964[_0x32d554(0x2c3)]:this['_onRemoteChangeset'](_0x3ee18b(_0x1b88fd[_0x32d554(0x1ab)]));break;case _0x44b964[_0x32d554(0x371)]:this['_onRemoteACK'](_0x1b88fd[_0x32d554(0x1ab)]);break;case _0x44b964[_0x32d554(0x2dd)]:this['_onRemoteRejected']();break;case _0x44b964['CHANGESET_SHOULD_RETRY']:this[_0x32d554(0x13a)](_0x1b88fd[_0x32d554(0x1ab)]);break;case _0x44b964[_0x32d554(0x137)]:this['_onFetchMissResult'](_0x1b88fd['data'][_0x32d554(0x10b)][_0x32d554(0xff)](_0x304dac=>_0x3ee18b(_0x304dac)));break;case _0x44b964[_0x32d554(0x1da)]:this[_0x32d554(0x166)]({'isPermissionRej':!0x0});break;case _0x44b964[_0x32d554(0x198)]:}}catch(_0x1e5993){throw console[_0x32d554(0x20d)](_0x32d554(0x36e),_0x1e5993),_0x1e5993;}})),this[_0x1312ad(0x265)];}[_0x57ff19(0x253)](){this['_transitionLocked']=!0x1;}[_0x57ff19(0x2dc)](){const _0x160b59=_0x57ff19;if(this[_0x160b59(0xd6)])throw Error(_0x160b59(0x374));this[_0x160b59(0xd6)]=!0x0;}[_0x57ff19(0x283)](_0x33dc47){const _0x2144fa=_0x57ff19;this[_0x2144fa(0x2dc)](),this[_0x2144fa(0x20f)](this[_0x2144fa(0x265)][_0x2144fa(0x2f6)](_0x33dc47)),this[_0x2144fa(0x253)]();}['_onRemoteChangeset'](_0x320c47){const _0x4833f1=_0x57ff19;if(!(_0x320c47[_0x4833f1(0x126)]<=this[_0x4833f1(0x30a)][_0x4833f1(0x2b9)](this[_0x4833f1(0x2b3)]))){if(this['_collaborationPaused']){this[_0x4833f1(0x26b)][_0x4833f1(0x28d)](_0x320c47);return;}this[_0x4833f1(0x2df)](_0x320c47);}}[_0x57ff19(0x176)](){const _0x501cae=_0x57ff19;this[_0x501cae(0x26b)][_0x501cae(0x2db)](_0x342c9f=>this[_0x501cae(0x2df)](_0x342c9f)),this[_0x501cae(0x26b)]=[];}[_0x57ff19(0x2df)](_0x395dc4){const _0x410078=_0x57ff19;let _0x3f77a2=this[_0x410078(0x1cc)]['interceptor'][_0x410078(0x156)](this[_0x410078(0x1cc)][_0x410078(0x105)][_0x410078(0x2b7)]()[_0x410078(0x171)])(_0x395dc4['mutations'],null)||_0x395dc4['mutations'],_0x5b1ff2={..._0x395dc4,'mutations':_0x3f77a2};this[_0x410078(0x2dc)](),this[_0x410078(0x20f)](this['_state'][_0x410078(0x2ae)](_0x5b1ff2)),this[_0x410078(0x253)]();}[_0x57ff19(0x21d)](_0x2a0c40){const _0x326869=_0x57ff19;this['_lockTransition'](),this[_0x326869(0x20f)](this[_0x326869(0x265)][_0x326869(0x2a1)](_0x2a0c40)),this[_0x326869(0x253)]();}[_0x57ff19(0x166)](_0x5da57b){const _0x38c526=_0x57ff19;this[_0x38c526(0x2dc)](),this[_0x38c526(0x20f)](this[_0x38c526(0x265)][_0x38c526(0x1e9)](_0x5da57b)),this[_0x38c526(0x253)]();}[_0x57ff19(0x13a)](_0x5372f){const _0x10d0a2=_0x57ff19;this[_0x10d0a2(0x2dc)](),this[_0x10d0a2(0x20f)](this[_0x10d0a2(0x265)][_0x10d0a2(0xef)](_0x5372f)),this[_0x10d0a2(0x253)]();}[_0x57ff19(0x26e)](_0x228fc5){const _0x5ae5e1=_0x57ff19;if(!(this[_0x5ae5e1(0x265)]instanceof Q))throw TypeError(_0x5ae5e1(0x2a8));let _0x56ebed=_0x228fc5[_0x5ae5e1(0xff)](_0x3b40cd=>{const _0x519181=_0x5ae5e1;let _0x513975=this['_compressMutationService'][_0x519181(0x105)][_0x519181(0x156)](this[_0x519181(0x1cc)]['interceptor'][_0x519181(0x2b7)]()['COMPRESS_MUTATION_APPLY'])(_0x3b40cd['mutations'],null)||_0x3b40cd[_0x519181(0x290)];return{..._0x3b40cd,'mutations':_0x513975};});this[_0x5ae5e1(0x2dc)](),this['_updateState'](this[_0x5ae5e1(0x265)][_0x5ae5e1(0x304)](_0x56ebed)),this[_0x5ae5e1(0x253)]();}['_toggleOffline'](){const _0x3883a3=_0x57ff19;this[_0x3883a3(0x2dc)](),this[_0x3883a3(0x20f)](this[_0x3883a3(0x265)]['toggleOffline']()),this[_0x3883a3(0x253)]();}[_0x57ff19(0x36f)](_0x2a52bd=!0x1){const _0x327814=_0x57ff19;this['_lockTransition'](),this[_0x327814(0x20f)](this[_0x327814(0x265)][_0x327814(0x32a)]()),this['_unlockTransition']();let _0x29a8e9=this[_0x327814(0x265)];_0x2a52bd&&_0x29a8e9 instanceof K&&(this[_0x327814(0x2dc)](),this['_updateState'](_0x29a8e9['fetchMiss']()),this[_0x327814(0x253)]());}async[_0x57ff19(0x19d)](){return new Promise(_0x1a02e3=>{const _0x2a6856=_0x39cf;this['session']['sessionStatus$'][_0x2a6856(0x10e)](_0x2e3eac(0x1))[_0x2a6856(0x143)](async _0x5d0de9=>{_0x1a02e3(await this['_createInitialStateImpl'](_0x5d0de9===0x3));});});}['_createHandler'](){const _0x4ad47e=_0x57ff19;let _0x39efa9=this[_0x4ad47e(0x2b3)];return{'onStateChange':(_0xb68e68,_0x1ed449)=>{const _0x590667=_0x4ad47e;if(_0xb68e68!==this[_0x590667(0x265)])throw Error(_0x590667(0x133)+_0xb68e68[_0x590667(0x203)]+'\x0aAfter:\x20'+_0x1ed449[_0x590667(0x203)]+'\x0aCurrent:\x20'+this[_0x590667(0x265)][_0x590667(0x203)]);this['_updateState'](_0x1ed449);},'onSendChangeset':_0x57c077=>{const _0x500544=_0x4ad47e;_0x57c077[_0x500544(0x297)]||(_0x57c077[_0x500544(0x297)]=this['_changesetSessionId'],_0x57c077[_0x500544(0x179)]=++this[_0x500544(0xf3)]);let _0x249aa5={'eventID':_0x44b964[_0x500544(0x1cf)],'data':{'unitID':_0x57c077['unitID'],'unitType':this[_0x500544(0x213)],'changeset':_0x57c077,'memberID':this[_0x500544(0xfe)][_0x500544(0x212)]()}};this[_0x500544(0xfe)]['send'](_0x249aa5,this[_0x500544(0x2b3)]);},'onMissingChangesets':({from:_0x1ae723,to:_0x405c11})=>{const _0x464b92=_0x4ad47e;this['_logService']['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x1ae723+_0x464b92(0x383)+_0x405c11);let _0x52d94a={'eventID':_0x44b964['FETCH_MISSING'],'data':{'unitID':_0x39efa9,'unitType':this['_type'],'from':_0x1ae723,'to':_0x405c11}};this[_0x464b92(0xfe)]['send'](_0x52d94a,this[_0x464b92(0x2b3)]);}};}async[_0x57ff19(0x345)](_0x2d3a21){const _0x15dd53=_0x57ff19;var _0x3f1f83;let _0x174181=await((_0x3f1f83=this[_0x15dd53(0x1f6)])==null?void 0x0:_0x3f1f83['loadOfflineData'](this['unitID'])),_0x991a04=(_0x174181==null?void 0x0:_0x174181[_0x15dd53(0x290)])??[],_0x2afecf=(_0x174181==null?void 0x0:_0x174181['awaitingChangeset'])??null,_0x4ea112=!!(_0x2afecf!=null&&_0x2afecf[_0x15dd53(0x297)])&&!!(_0x2afecf!=null&&_0x2afecf[_0x15dd53(0x179)]);this['_changesetSessionId']=_0x4ea112?_0x2afecf[_0x15dd53(0x297)]:_0x4539d8(),this[_0x15dd53(0xf3)]=_0x4ea112?_0x2afecf['reqId']:0x0;let _0x3f3777=this['unitID'];try{this[_0x15dd53(0x182)](_0x2afecf,_0x991a04);}catch(_0x5b8921){this[_0x15dd53(0x1fd)][_0x15dd53(0x20d)](_0x5b8921);}let _0x3a502b=this[_0x15dd53(0x2e8)]();if(_0x2d3a21){let _0x3536ca=bn(this[_0x15dd53(0x28a)],_0x3f3777,this[_0x15dd53(0x213)],_0x2afecf,_0x991a04,_0x3a502b);return _0x3536ca instanceof q?_0x3536ca[_0x15dd53(0x2af)]():(_0x3536ca instanceof Y||_0x3536ca instanceof J)&&_0x3536ca['resend'](),_0x3536ca;}return this['_injector']['createInstance'](Z,_0x3f3777,this[_0x15dd53(0x213)],_0x2afecf,_0x991a04,_0x3a502b);}[_0x57ff19(0x182)](_0x2001f2,_0x4ba576){const _0x1834b7=_0x57ff19;var _0x238559,_0x29d23f;let _0x1be95e=this['_compressMutationService'][_0x1834b7(0x105)][_0x1834b7(0x156)](this[_0x1834b7(0x1cc)][_0x1834b7(0x105)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x238559=_0x1be95e((_0x2001f2==null?void 0x0:_0x2001f2[_0x1834b7(0x290)])||[],null))==null||_0x238559[_0x1834b7(0x2db)](_0x56720d=>this[_0x1834b7(0x1d0)]['executeCommand'](_0x56720d['id'],_0x56720d[_0x1834b7(0x114)])),(_0x29d23f=_0x1be95e(_0x4ba576||[],null))==null||_0x29d23f[_0x1834b7(0x2db)](_0x59f1cc=>this[_0x1834b7(0x1d0)][_0x1834b7(0x138)](_0x59f1cc['id'],_0x59f1cc[_0x1834b7(0x114)]));}};$=H([V(0x3,_0x3862a7(_0x1e387a)),V(0x4,_0x3862a7(_0x3fd292)),V(0x5,_0x3862a7(_0x4ecf6b)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3862a7(B)),V(0x8,_0x20c84a),V(0x9,_0xe5ab40),V(0xa,_0x3ad6c1),V(0xb,_0x3d554c),V(0xc,_0x58c27a(W)),V(0xd,_0x58c27a(U))],$);let xn=class extends ${constructor(_0x9e5bd8,_0x84ca71,_0xb38566,_0x84b8d9,_0x13c6b5,_0x1f5117,_0x1041df,_0x196cef,_0x5b214f,_0x54462d,_0x2ea4a5,_0x1ce57f,_0x406a51,_0x21763b,_0x348cfc){const _0x1533fd=_0x57ff19;super(_0x9e5bd8,_0xb38566,_0x84ca71,_0x84b8d9,_0x13c6b5,_0x1f5117,_0x1041df,_0x196cef,_0x5b214f,_0x54462d,_0x2ea4a5,_0x1ce57f,_0x21763b,_0x348cfc),this[_0x1533fd(0x2b3)]=_0x9e5bd8,this[_0x1533fd(0x1a2)]=_0x84ca71,this[_0x1533fd(0x2d5)]=_0x406a51,z(this,_0x1533fd(0x10a),null);}[_0x57ff19(0x13b)](_0x490a60){const _0xce15fa=_0x57ff19;this[_0xce15fa(0x10a)]=_0x490a60;}[_0x57ff19(0xd0)](){const _0x1ac88=_0x57ff19;this[_0x1ac88(0x10a)]=null,super[_0x1ac88(0xd0)]();}[_0x57ff19(0x2e8)](){const _0xfd2ea8=_0x57ff19;let _0x17eb69=super[_0xfd2ea8(0x2e8)]();return _0x17eb69[_0xfd2ea8(0x107)]=_0x3ad8b8=>{const _0x1dcfe4=_0xfd2ea8;var _0x20a074,_0x6823e;return(_0x20a074=this['_handlerCallback'])==null||(_0x6823e=_0x20a074[_0x1dcfe4(0x107)])==null?void 0x0:_0x6823e[_0x1dcfe4(0x344)](_0x20a074,_0x3ad8b8);},_0x17eb69['onTransformState']=_0x21902e=>{const _0x3014ab=_0xfd2ea8;var _0x4fb73c,_0x752e59;return(_0x4fb73c=this[_0x3014ab(0x10a)])==null||(_0x752e59=_0x4fb73c['onTransformState'])==null?void 0x0:_0x752e59[_0x3014ab(0x344)](_0x4fb73c,_0x21902e);},_0x17eb69['onPrepareTransformSelections']=_0x566828=>{const _0x7f7b0f=_0xfd2ea8;var _0x27240f,_0x564a70;return((_0x27240f=this[_0x7f7b0f(0x10a)])==null||(_0x564a70=_0x27240f[_0x7f7b0f(0x319)])==null?void 0x0:_0x564a70[_0x7f7b0f(0x344)](_0x27240f,_0x566828))??null;},_0x17eb69[_0xfd2ea8(0x2bf)]=_0x146ac5=>{const _0x3a4ca0=_0xfd2ea8;var _0x319243,_0x48e86d;return(_0x319243=this[_0x3a4ca0(0x10a)])==null||(_0x48e86d=_0x319243[_0x3a4ca0(0x2bf)])==null?void 0x0:_0x48e86d[_0x3a4ca0(0x344)](_0x319243,_0x146ac5);},_0x17eb69[_0xfd2ea8(0x22b)]=_0xc68fa7=>{const _0x5550d2=_0xfd2ea8;var _0x1a0735,_0x52f389;return(_0x1a0735=this['_handlerCallback'])==null||(_0x52f389=_0x1a0735[_0x5550d2(0x22b)])==null?void 0x0:_0x52f389[_0x5550d2(0x344)](_0x1a0735,_0xc68fa7);},_0x17eb69['onTransformRemoteChangesetByIMECache']=_0x5c70ce=>{const _0x4acc98=_0xfd2ea8;var _0x237486,_0x3cdce1;return((_0x237486=this[_0x4acc98(0x10a)])==null||(_0x3cdce1=_0x237486[_0x4acc98(0x181)])==null?void 0x0:_0x3cdce1['call'](_0x237486,_0x5c70ce))??_0x5c70ce;},_0x17eb69[_0xfd2ea8(0x195)]=_0x1c4277=>{const _0x45cb9e=_0xfd2ea8;var _0x1b5835,_0x4920d8;return((_0x1b5835=this[_0x45cb9e(0x10a)])==null||(_0x4920d8=_0x1b5835[_0x45cb9e(0x195)])==null?void 0x0:_0x4920d8['call'](_0x1b5835,_0x1c4277))??_0x1c4277;},_0x17eb69;}async[_0x57ff19(0xdb)](){const _0x107b27=_0x57ff19;let _0x423c28=await super[_0x107b27(0xdb)]();return this[_0x107b27(0x1ba)](this[_0x107b27(0x2d5)][_0x107b27(0x292)]['subscribe'](_0x68559a=>{const _0xce6403=_0x107b27;if(_0x68559a==null||_0x68559a['unitId']!==this[_0xce6403(0x2b3)])return;let {commandId:_0x148375,redoState:_0x2eddc4,unitId:_0xd1a739}=_0x68559a,_0x915adf={'id':_0x148375,'type':_0x5dbfab[_0xce6403(0x1b0)],'params':{'unitId':_0xd1a739,'actions':_0x2eddc4[_0xce6403(0x1a3)],'textRanges':null}};this[_0xce6403(0x283)](_0x915adf);})),this[_0x107b27(0x1ba)](this[_0x107b27(0x1d0)][_0x107b27(0x1b3)]((_0x174eae,_0x48bc72)=>{const _0x2d189e=_0x107b27;if(_0x174eae[_0x2d189e(0x1a2)]!==_0x5dbfab[_0x2d189e(0x1b0)]||_0x48bc72!=null&&_0x48bc72['fromCollab']||_0x48bc72!=null&&_0x48bc72[_0x2d189e(0x19c)]||_0x174eae['id']===_0x3fb54e['id'])return;let _0x517909=_0x174eae[_0x2d189e(0x114)];if((_0x517909==null?void 0x0:_0x517909[_0x2d189e(0xf8)])!==this[_0x2d189e(0x2b3)])return;let _0x485056=_0x174eae,_0x58e51d=this[_0x2d189e(0x1cc)][_0x2d189e(0x105)][_0x2d189e(0x156)](this['_compressMutationService'][_0x2d189e(0x105)][_0x2d189e(0x2b7)]()['COMPRESS_MUTATION_SEND'])([_0x485056],this['_univerInstanceService'])||[_0x485056];this[_0x2d189e(0x283)](_0x58e51d[0x0]);})),_0x423c28;}};xn=H([V(0x3,_0x3862a7(_0x1e387a)),V(0x4,_0x3862a7(_0x3fd292)),V(0x5,_0x3862a7(_0x4ecf6b)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3862a7(B)),V(0x8,_0x20c84a),V(0x9,_0xe5ab40),V(0xa,_0x3ad6c1),V(0xb,_0x3d554c),V(0xc,_0x3862a7(_0x32ed66)),V(0xd,_0x58c27a(W)),V(0xe,_0x58c27a(U))],xn);let Sn=class extends ${constructor(_0x2f4aa4,_0x1c267a,_0x1ceb49,_0x4f8a4e,_0x5ced4d,_0xd87948,_0x246a7e,_0x41c3d7,_0x589558,_0x2084de,_0x25c491,_0x3a44f3,_0x1f662e,_0x56ed85){const _0x308792=_0x57ff19;super(_0x2f4aa4,_0x1ceb49,_0x1c267a,_0x4f8a4e,_0x5ced4d,_0xd87948,_0x246a7e,_0x41c3d7,_0x589558,_0x2084de,_0x25c491,_0x3a44f3,_0x1f662e,_0x56ed85),this['unitID']=_0x2f4aa4,this[_0x308792(0x1a2)]=_0x1c267a;}async[_0x57ff19(0xdb)](){const _0x409975=_0x57ff19;let _0x30be38=await super['_init']();return this['disposeWithMe'](this[_0x409975(0x1d0)][_0x409975(0x1b3)]((_0x5b4ed6,_0x3cf7df)=>{const _0x1b7c2=_0x409975;if(_0x5b4ed6['type']!==_0x5dbfab[_0x1b7c2(0x1b0)]||_0x3cf7df!=null&&_0x3cf7df[_0x1b7c2(0x359)]||_0x3cf7df!=null&&_0x3cf7df[_0x1b7c2(0x19c)])return;let _0x7be952=_0x5b4ed6[_0x1b7c2(0x114)];if((_0x7be952==null?void 0x0:_0x7be952[_0x1b7c2(0xf8)])!==this[_0x1b7c2(0x2b3)])return;let _0x1d6d1b=_0x5b4ed6,_0x54d1c6=this[_0x1b7c2(0x1cc)][_0x1b7c2(0x105)][_0x1b7c2(0x156)](this[_0x1b7c2(0x1cc)][_0x1b7c2(0x105)]['getInterceptPoints']()[_0x1b7c2(0x31a)])([_0x1d6d1b],this[_0x1b7c2(0x305)])||[_0x1d6d1b];this['_onLocalMutation'](_0x54d1c6[0x0]);})),_0x30be38;}};Sn=H([V(0x3,_0x3862a7(_0x1e387a)),V(0x4,_0x3862a7(_0x3fd292)),V(0x5,_0x3862a7(_0x4ecf6b)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3862a7(B)),V(0x8,_0x20c84a),V(0x9,_0xe5ab40),V(0xa,_0x3ad6c1),V(0xb,_0x3d554c),V(0xc,_0x58c27a(W)),V(0xd,_0x58c27a(U))],Sn);let Cn=class extends ${constructor(_0x220324,_0x38727b,_0x12321d,_0x373e8a,_0x178e93,_0x10be83,_0x4e6598,_0x4c19c8,_0x3673b4,_0x657fff,_0x49bfcd,_0x21d9a8,_0x1d1015,_0x25dd90,_0x1b53c5){const _0x3009c4=_0x57ff19;super(_0x220324,_0x12321d,_0x38727b,_0x373e8a,_0x178e93,_0x10be83,_0x4e6598,_0x3673b4,_0x657fff,_0x49bfcd,_0x21d9a8,_0x1d1015,_0x25dd90,_0x1b53c5),this['unitID']=_0x220324,this['type']=_0x38727b,this[_0x3009c4(0x13e)]=_0x4c19c8;}[_0x57ff19(0x2e8)](){const _0x30c140=_0x57ff19;let _0x18388c=super[_0x30c140(0x2e8)]();return _0x18388c[_0x30c140(0x2bf)]=_0x1f1a69=>this['_sheetTransformSelectionsService'][_0x30c140(0x28b)](_0x1f1a69),_0x18388c;}async[_0x57ff19(0xdb)](){const _0x241d7d=_0x57ff19;let _0x39cb04=await super[_0x241d7d(0xdb)]();return this[_0x241d7d(0x1ba)](this[_0x241d7d(0x1d0)][_0x241d7d(0x1b3)]((_0x53c426,_0x90852b)=>{const _0x27914a=_0x241d7d;if(_0x53c426['type']!==_0x5dbfab[_0x27914a(0x1b0)]||_0x90852b!=null&&_0x90852b[_0x27914a(0x359)]||_0x90852b!=null&&_0x90852b[_0x27914a(0x19c)])return;let _0x315872=_0x53c426[_0x27914a(0x114)];if((_0x315872==null?void 0x0:_0x315872[_0x27914a(0xf8)])!==this[_0x27914a(0x2b3)])return;let _0x5dbda1=_0x53c426,_0x4f1317=this[_0x27914a(0x1cc)][_0x27914a(0x105)][_0x27914a(0x156)](this['_compressMutationService'][_0x27914a(0x105)]['getInterceptPoints']()[_0x27914a(0x31a)])([_0x5dbda1],this[_0x27914a(0x305)])||[_0x5dbda1];this[_0x27914a(0x283)](_0x4f1317[0x0]);})),_0x39cb04;}};Cn=H([V(0x3,_0x3862a7(_0x1e387a)),V(0x4,_0x3862a7(_0x3fd292)),V(0x5,_0x3862a7(_0x4ecf6b)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3862a7(Jt)),V(0x8,_0x3862a7(B)),V(0x9,_0x20c84a),V(0xa,_0xe5ab40),V(0xb,_0x3ad6c1),V(0xc,_0x3d554c),V(0xd,_0x58c27a(W)),V(0xe,_0x58c27a(U))],Cn);let wn=class extends ${constructor(_0x50aa0a,_0x2d82ea,_0x4c7bf6,_0x243f51,_0x590b1b,_0x223c6f,_0x34e2ce,_0x3e0a1b,_0x3e2424,_0xb7a0dd,_0x46e15a,_0x8b208f,_0xae59fc,_0x3295b5){const _0xd34aa2=_0x57ff19;super(_0x50aa0a,_0x4c7bf6,_0x2d82ea,_0x243f51,_0x590b1b,_0x223c6f,_0x34e2ce,_0x3e0a1b,_0x3e2424,_0xb7a0dd,_0x46e15a,_0x8b208f,_0xae59fc,_0x3295b5),this[_0xd34aa2(0x2b3)]=_0x50aa0a,this[_0xd34aa2(0x1a2)]=_0x2d82ea;}async[_0x57ff19(0xdb)](){const _0x109096=_0x57ff19;let _0x45d47f=await super[_0x109096(0xdb)]();return this['disposeWithMe'](this[_0x109096(0x1d0)][_0x109096(0x1b3)]((_0x1bbe1c,_0x58d2dc)=>{const _0x504421=_0x109096;if(_0x1bbe1c[_0x504421(0x1a2)]!==_0x5dbfab[_0x504421(0x1b0)]||_0x58d2dc!=null&&_0x58d2dc[_0x504421(0x359)]||_0x58d2dc!=null&&_0x58d2dc[_0x504421(0x19c)])return;let _0x21c823=_0x1bbe1c[_0x504421(0x114)];if((_0x21c823==null?void 0x0:_0x21c823['unitId'])!==this[_0x504421(0x2b3)])return;let _0x14bc0f=_0x1bbe1c,_0x5c4fde=this[_0x504421(0x1cc)][_0x504421(0x105)][_0x504421(0x156)](this[_0x504421(0x1cc)][_0x504421(0x105)][_0x504421(0x2b7)]()['COMPRESS_MUTATION_SEND'])([_0x14bc0f],this[_0x504421(0x305)])||[_0x14bc0f];this[_0x504421(0x283)](_0x5c4fde[0x0]);})),_0x45d47f;}};wn=H([V(0x3,_0x3862a7(_0x1e387a)),V(0x4,_0x3862a7(_0x3fd292)),V(0x5,_0x3862a7(_0x4ecf6b)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3862a7(B)),V(0x8,_0x20c84a),V(0x9,_0xe5ab40),V(0xa,_0x3ad6c1),V(0xb,_0x3d554c),V(0xc,_0x58c27a(W)),V(0xd,_0x58c27a(U))],wn);let Tn=class extends ${constructor(_0x34ce74,_0x3de9e8,_0x409f65,_0x1a9012,_0x2f60a5,_0xfe6f26,_0x29ccf9,_0x463236,_0x3afca7,_0x23176d,_0x5516f6,_0x14ae1f,_0x362b64,_0x41f14f){const _0x5bd405=_0x57ff19;super(_0x34ce74,_0x409f65,_0x3de9e8,_0x1a9012,_0x2f60a5,_0xfe6f26,_0x29ccf9,_0x463236,_0x3afca7,_0x23176d,_0x5516f6,_0x14ae1f,_0x362b64,_0x41f14f),this['unitID']=_0x34ce74,this[_0x5bd405(0x1a2)]=_0x3de9e8;}async[_0x57ff19(0xdb)](){const _0x29bf83=_0x57ff19;let _0x3eae4e=await super['_init']();return this[_0x29bf83(0x1ba)](this['_commandService'][_0x29bf83(0x1b3)]((_0x319dda,_0x39af32)=>{const _0x57ec67=_0x29bf83;if(_0x319dda[_0x57ec67(0x1a2)]!==_0x5dbfab[_0x57ec67(0x1b0)]||_0x39af32!=null&&_0x39af32[_0x57ec67(0x359)]||_0x39af32!=null&&_0x39af32[_0x57ec67(0x19c)])return;let _0x2c59ba=_0x319dda[_0x57ec67(0x114)];if((_0x2c59ba==null?void 0x0:_0x2c59ba[_0x57ec67(0xf8)])!==this['unitID'])return;let _0x2e6b81=_0x319dda,_0x3c6ba4=this[_0x57ec67(0x1cc)]['interceptor'][_0x57ec67(0x156)](this[_0x57ec67(0x1cc)][_0x57ec67(0x105)][_0x57ec67(0x2b7)]()[_0x57ec67(0x31a)])([_0x2e6b81],this['_univerInstanceService'])||[_0x2e6b81];this['_onLocalMutation'](_0x3c6ba4[0x0]);})),_0x3eae4e;}};Tn=H([V(0x3,_0x3862a7(_0x1e387a)),V(0x4,_0x3862a7(_0x3fd292)),V(0x5,_0x3862a7(_0x4ecf6b)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3862a7(B)),V(0x8,_0x20c84a),V(0x9,_0xe5ab40),V(0xa,_0x3ad6c1),V(0xb,_0x3d554c),V(0xc,_0x58c27a(W)),V(0xd,_0x58c27a(U))],Tn);let En=class extends ${constructor(_0x13259d,_0x426f30,_0x459fd9,_0x26dedd,_0x1c7c6e,_0x3719df,_0x2206b3,_0x24900f,_0x46a3d0,_0x3d85c6,_0x47982a,_0x30401d,_0x1f9c43,_0x534c7d){const _0x51926e=_0x57ff19;super(_0x13259d,_0x459fd9,_0x426f30,_0x26dedd,_0x1c7c6e,_0x3719df,_0x2206b3,_0x24900f,_0x46a3d0,_0x3d85c6,_0x47982a,_0x30401d,_0x1f9c43,_0x534c7d),this[_0x51926e(0x2b3)]=_0x13259d,this[_0x51926e(0x1a2)]=_0x426f30;}async[_0x57ff19(0xdb)](){const _0x53ad34=_0x57ff19;let _0x5c2e18=await super[_0x53ad34(0xdb)]();return this[_0x53ad34(0x1ba)](this['_commandService'][_0x53ad34(0x1b3)]((_0x399c9b,_0x522acf)=>{const _0x5cbd68=_0x53ad34;if(_0x399c9b[_0x5cbd68(0x1a2)]!==_0x5dbfab['MUTATION']||_0x522acf!=null&&_0x522acf[_0x5cbd68(0x359)]||_0x522acf!=null&&_0x522acf['onlyLocal'])return;let _0x41702c=_0x399c9b['params'];if((_0x41702c==null?void 0x0:_0x41702c['unitId'])!==this['unitID'])return;let _0x24d001=_0x399c9b,_0x2471e7=this[_0x5cbd68(0x1cc)][_0x5cbd68(0x105)][_0x5cbd68(0x156)](this[_0x5cbd68(0x1cc)]['interceptor'][_0x5cbd68(0x2b7)]()[_0x5cbd68(0x31a)])([_0x24d001],this[_0x5cbd68(0x305)])||[_0x24d001];this[_0x5cbd68(0x283)](_0x2471e7[0x0]);})),_0x5c2e18;}};En=H([V(0x3,_0x3862a7(_0x1e387a)),V(0x4,_0x3862a7(_0x3fd292)),V(0x5,_0x3862a7(_0x4ecf6b)),V(0x6,_0x3862a7(_0x20a7ac)),V(0x7,_0x3862a7(B)),V(0x8,_0x20c84a),V(0x9,_0xe5ab40),V(0xa,_0x3ad6c1),V(0xb,_0x3d554c),V(0xc,_0x58c27a(W)),V(0xd,_0x58c27a(U))],En);const Dn=_0x5d0b62(_0x57ff19(0x1c7));function On(_0x3686f6){const _0x39b98c=_0x57ff19;let _0x5d4ad1=_0x3686f6[_0x39b98c(0x1ab)],_0x3892d3=JSON[_0x39b98c(0x281)](_0x5d4ad1);switch(_0x3892d3['cmd']){case _0x522796[_0x39b98c(0x118)]:case _0x522796['HELLO']:{let _0xfdbc99=_0x3892d3[_0x39b98c(0x2b2)];return{..._0x3892d3,'data':_0xfdbc99,'cmd':_0x3892d3[_0x39b98c(0x16d)]};}case _0x522796[_0x39b98c(0x25d)]:{let _0x599367=_0x3892d3[_0x39b98c(0x2cf)];return{..._0x3892d3,'data':_0x599367,'cmd':_0x3892d3['cmd']};}case _0x522796['RECV']:{let _0x440324=_0x3892d3[_0x39b98c(0x333)];switch(_0x440324['eventID']){case _0x44b964['PERMISSION_REJ']:var _0x39bbef;return{..._0x3892d3,'data':{..._0x440324,'data':(_0x39bbef=_0x440324[_0x39b98c(0xf5)])==null?void 0x0:_0x39bbef['cs']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964[_0x39b98c(0x371)]:var _0x3cab8e;return{..._0x3892d3,'data':{..._0x440324,'data':(_0x3cab8e=_0x440324[_0x39b98c(0x385)])==null?void 0x0:_0x3cab8e['cs']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964['NEW_CHANGESETS']:var _0x2fe689;return{..._0x3892d3,'data':{..._0x440324,'data':(_0x2fe689=_0x440324['newCsEvent'])==null?void 0x0:_0x2fe689['cs']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964['CHANGESET_REJ']:var _0x3a7f79;return{..._0x3892d3,'data':{..._0x440324,'data':(_0x3a7f79=_0x440324['csRejEvent'])==null?void 0x0:_0x3a7f79['cs']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964[_0x39b98c(0x34a)]:var _0x56da2c;return{..._0x3892d3,'data':{..._0x440324,'data':(_0x56da2c=_0x440324[_0x39b98c(0x367)])==null?void 0x0:_0x56da2c['cs']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964[_0x39b98c(0x364)]:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324[_0x39b98c(0x306)]},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964[_0x39b98c(0x32f)]:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324[_0x39b98c(0x218)]},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964[_0x39b98c(0x1cb)]:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324['leaveEvent']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964['LIVESHARE_NEW_HOST']:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324['liveShareNewHost']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964[_0x39b98c(0x225)]:case _0x44b964[_0x39b98c(0x206)]:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324[_0x39b98c(0xf4)]},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964[_0x39b98c(0x227)]:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324[_0x39b98c(0x2e5)]},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964['MSG_FOR_ERROR']:return{..._0x3892d3,'data':_0x440324,'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964['COMMENT_UPDATE']:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324['commentUpdateEvent']},'cmd':_0x3892d3['cmd']};case _0x44b964[_0x39b98c(0x21c)]:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324[_0x39b98c(0x20c)]},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964['SHOULD_CLOSE_CONN']:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324['shouldCloseConn']},'cmd':_0x3892d3[_0x39b98c(0x16d)]};case _0x44b964['UNISCRIPT_RUN']:return{..._0x3892d3,'data':{..._0x440324,'data':_0x440324['uniscriptRunEvent']},'cmd':_0x3892d3['cmd']};default:return _0x3892d3;}}default:return _0x3892d3;}}function kn(_0x438acd){const _0x57b5f8=_0x57ff19;switch(_0x438acd[_0x57b5f8(0x16d)]){case _0x522796[_0x57b5f8(0x118)]:case _0x522796[_0x57b5f8(0x301)]:return JSON[_0x57b5f8(0x1ef)]({'cmd':_0x438acd[_0x57b5f8(0x16d)],'routeKey':_0x438acd[_0x57b5f8(0x124)]});case _0x522796[_0x57b5f8(0x18d)]:{let _0x5a327e;switch(_0x438acd[_0x57b5f8(0x1ab)][_0x57b5f8(0xe9)]){case _0x44b964[_0x57b5f8(0x364)]:_0x5a327e={'eventID':_0x44b964[_0x57b5f8(0x364)],'updateCursorEvent':_0x438acd[_0x57b5f8(0x1ab)][_0x57b5f8(0x1ab)]};break;case _0x44b964['USERS_LEAVE']:_0x5a327e={'eventID':_0x44b964['USERS_LEAVE'],'leaveEvent':_0x438acd['data']['data']};break;case _0x44b964[_0x57b5f8(0x32f)]:_0x5a327e={'eventID':_0x44b964[_0x57b5f8(0x32f)],'joinEvent':_0x438acd['data'][_0x57b5f8(0x1ab)]};break;case _0x44b964[_0x57b5f8(0xe4)]:_0x5a327e={'eventID':_0x44b964['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x438acd[_0x57b5f8(0x1ab)][_0x57b5f8(0x1ab)]};break;case _0x44b964['LIVESHARE_OPERATION']:_0x5a327e={'eventID':_0x44b964['LIVESHARE_OPERATION'],'liveShareOperation':_0x438acd[_0x57b5f8(0x1ab)]['data']};break;case _0x44b964[_0x57b5f8(0x227)]:_0x5a327e={'eventID':_0x44b964['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x438acd[_0x57b5f8(0x1ab)]['data']};break;case _0x44b964[_0x57b5f8(0x37a)]:_0x5a327e={'eventID':_0x44b964['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x438acd[_0x57b5f8(0x1ab)][_0x57b5f8(0x1ab)]};break;case _0x44b964[_0x57b5f8(0x225)]:_0x5a327e={'eventID':_0x44b964[_0x57b5f8(0x225)]};break;default:_0x5a327e={'eventID':_0x438acd[_0x57b5f8(0x1ab)][_0x57b5f8(0xe9)]};}return JSON['stringify']({'cmd':_0x438acd[_0x57b5f8(0x16d)],'routeKey':_0x438acd[_0x57b5f8(0x124)],'collaMsg':_0x5a327e});}case _0x522796[_0x57b5f8(0x25d)]:return JSON[_0x57b5f8(0x1ef)]({'cmd':_0x438acd[_0x57b5f8(0x16d)],'routeKey':_0x438acd[_0x57b5f8(0x124)],'joinReq':_0x438acd[_0x57b5f8(0x1ab)]});case _0x522796[_0x57b5f8(0x1a9)]:return JSON[_0x57b5f8(0x1ef)]({'cmd':_0x438acd[_0x57b5f8(0x16d)],'routeKey':_0x438acd['routeKey'],'leaveReq':_0x438acd['data']});default:throw Error(_0x57b5f8(0x162));}}const An=_0x5d0b62(_0x57ff19(0x31d));function jn(_0x91f621,_0x53d9aa,_0x11e27e){const _0x5de89e=_0x57ff19;return _0x91f621+'/'+_0x53d9aa+'/unit/'+_0x11e27e+_0x5de89e(0x340);}let Mn=class extends _0x170707{constructor(_0x4aefc0,_0x4e13fc,_0x1ca1d0,_0x14a5c8,_0x52bca8){const _0x1df98f=_0x57ff19;super(),this[_0x1df98f(0x28a)]=_0x4aefc0,this[_0x1df98f(0x2e4)]=_0x4e13fc,this[_0x1df98f(0x178)]=_0x1ca1d0,this[_0x1df98f(0x1fd)]=_0x14a5c8,this[_0x1df98f(0x1c9)]=_0x52bca8;}['_doCreateSocket'](_0x14c7a0){const _0x572095=_0x57ff19;let _0x11b203=this[_0x572095(0x28a)][_0x572095(0x29d)](_0x2a16df);if(!_0x11b203)throw Error(_0x572095(0x11a));let _0xb2d4aa=_0x11b203[_0x572095(0x1bb)](_0x14c7a0);if(!_0xb2d4aa)throw Error(_0x572095(0x140));let _0x1823ad=new _0x24d45d(),_0x4e7052=new _0x2f068e();_0x1823ad['add'](_0xb2d4aa[_0x572095(0x2e2)][_0x572095(0x143)](_0x4d3ee0=>_0x4e7052[_0x572095(0x204)](_0x4d3ee0))),_0x1823ad[_0x572095(0x294)](_0x872626(()=>_0x4e7052[_0x572095(0x352)]()));let _0x24087c=new _0x2f068e();_0x1823ad[_0x572095(0x294)](_0xb2d4aa[_0x572095(0x376)][_0x572095(0x143)](_0x581c3d=>_0x24087c[_0x572095(0x204)](_0x581c3d))),_0x1823ad[_0x572095(0x294)](_0x872626(()=>_0x24087c[_0x572095(0x352)]()));let _0x3257bb=new _0x2f068e();_0x1823ad[_0x572095(0x294)](_0xb2d4aa[_0x572095(0x22f)][_0x572095(0x143)](_0x27fe5a=>{const _0x35ab08=_0x572095;let _0x127def=On(_0x27fe5a);_0x3257bb[_0x35ab08(0x204)](_0x127def);})),_0x1823ad['add'](_0x872626(()=>_0x3257bb[_0x572095(0x352)]()));let _0x3c474a,_0x55dc87=()=>{const _0x3a6ff9=_0x572095;_0x24087c[_0x3a6ff9(0x204)](new Event(_0x3a6ff9(0x238))),_0x4e7052[_0x3a6ff9(0x204)](new Event('connection\x20error')),_0x3c474a[_0x3a6ff9(0x2d4)]();};return _0x3c474a={'memberID':'','close$':_0x4e7052[_0x572095(0x26a)](),'error$':_0x24087c[_0x572095(0x26a)](),'open$':_0xb2d4aa['open$'],'message$':_0x3257bb[_0x572095(0x26a)](),'send':_0x324b87=>{const _0x3af9d5=_0x572095;if(_0x324b87['cmd']===_0x522796[_0x3af9d5(0x18d)]){if(_0x324b87[_0x3af9d5(0x1ab)][_0x3af9d5(0xe9)]===_0x44b964[_0x3af9d5(0x1cf)]){this[_0x3af9d5(0x32e)](_0x3c474a,_0x324b87[_0x3af9d5(0x1ab)])['catch'](_0x25a671=>{this['_logService']['error'](_0x25a671),_0x55dc87();});return;}if(_0x324b87[_0x3af9d5(0x1ab)]['eventID']===_0x44b964[_0x3af9d5(0x2f9)]){let _0x20f34a=_0x324b87['data'];this[_0x3af9d5(0xe8)](_0x20f34a)[_0x3af9d5(0x256)](_0x54c67f=>{const _0x24add3=_0x3af9d5;_0x3257bb['next']({'cmd':_0x522796[_0x24add3(0xdd)],'code':_0x2e72bd['OK'],'routeKey':_0x20f34a['data'][_0x24add3(0x2b3)],'routeType':'','data':{'eventID':_0x44b964[_0x24add3(0x137)],'data':{'changesets':_0x54c67f}}});})[_0x3af9d5(0x24f)](_0x3880e2=>{this['_logService']['error'](_0x3880e2),_0x55dc87();});return;}}_0xb2d4aa['send'](kn(_0x324b87));},'close':()=>{const _0x205465=_0x572095;_0xb2d4aa[_0x205465(0x2d4)](),_0x1823ad[_0x205465(0xd0)]();}},_0x3c474a;}async['_submitChangeset'](_0xfb0f2a,_0x100750){const _0x5ce42b=_0x57ff19;let {unitType:_0x315b16,unitID:_0x1ef503,changeset:_0x134fa5}=_0x100750['data'],_0x141125={'unitID':_0x1ef503,'memberID':_0xfb0f2a['memberID'],'type':_0x315b16,'changeset':_0x16c8d0(_0x134fa5)},_0x4474ee=this[_0x5ce42b(0x178)]['getConfig'](R),_0x49ecce=jn((_0x4474ee==null?void 0x0:_0x4474ee['collabSubmitChangesetUrl'])??'/universer-api/comb',_0x315b16,_0x1ef503);try{await this[_0x5ce42b(0x2e4)][_0x5ce42b(0x158)](_0x49ecce,{'body':_0x141125});}catch(_0x25761b){throw this[_0x5ce42b(0x1fd)][_0x5ce42b(0x20d)](_0x5ce42b(0xf6),_0x5ce42b(0x142)),_0x25761b;}}async[_0x57ff19(0xe8)](_0x2ab65f){const _0x34ce67=_0x57ff19;let {unitID:_0x368ecc,from:_0xe4c520,to:_0x2fb90f,unitType:_0x355dd4}=_0x2ab65f[_0x34ce67(0x1ab)];return(await this[_0x34ce67(0x1c9)][_0x34ce67(0x1d9)]({'metadata':void 0x0},{'unitID':_0x368ecc,'type':_0x355dd4,'from':_0xe4c520,'to':_0x2fb90f}))['changesets']['map'](_0x332b52=>((_0x332b52['mutations']===null||_0x332b52[_0x34ce67(0x290)]===void 0x0)&&(_0x332b52['mutations']=[]),_0x332b52));}};Mn=H([V(0x0,_0x3862a7(_0x1e387a)),V(0x1,_0x3862a7(_0x41945f)),V(0x2,_0x37ec8b),V(0x3,_0xe5ab40),V(0x4,_0x3e7383)],Mn);const Nn=_0x5d0b62(_0x57ff19(0x1bd));function Pn(_0x48b89e={}){const _0x296272=_0x57ff19;return _0x48b89e[_0x296272(0x2d1)]?{'resolveUnit':_0x48b89e[_0x296272(0x2d1)]}:{'resolveUnit':_0x555654=>({'target':{'unitId':_0x555654[_0x296272(0xf8)],'unitType':_0x555654[_0x296272(0x324)]}})};}function Fn(_0x42224b,_0x1764be,_0x4273d3){const _0x4ae2b9=_0x57ff19;let _0x57727a=_0x4273d3[_0x4ae2b9(0x18e)][_0x4ae2b9(0x2c0)];if(_0x57727a!=null&&_0x57727a[_0x4ae2b9(0x37d)]()==='')throw Error(_0x4ae2b9(0x1f9));if(!_0x4273d3[_0x4ae2b9(0x18e)][_0x4ae2b9(0xf8)])throw Error(_0x4ae2b9(0x2cb));return{'localUnitId':_0x42224b,'unitType':_0x1764be,'target':{'endpoint':_0x57727a,'unitId':_0x4273d3[_0x4ae2b9(0x18e)][_0x4ae2b9(0xf8)],'unitType':_0x4273d3[_0x4ae2b9(0x18e)][_0x4ae2b9(0x324)]??_0x1764be},'changeset':_0x4273d3['changeset']};}let In=class extends _0x170707{constructor(_0x5a260f,_0xbf80f7,_0x4c126e,_0x419432,_0x1f4210,_0x1c3bb7,_0x1a30fd){const _0x449fc6=_0x57ff19;super(),this[_0x449fc6(0x28a)]=_0x5a260f,this[_0x449fc6(0x1fd)]=_0xbf80f7,this[_0x449fc6(0x178)]=_0x4c126e,this['_socketService']=_0x419432,this['_collaborationUIEventService']=_0x1f4210,this['_adapter']=_0x1c3bb7,this['_networkConditionService']=_0x1a30fd,z(this,'_sessions',new Map()),z(this,_0x449fc6(0xfd),new Map()),z(this,_0x449fc6(0x2d7),new Map()),z(this,_0x449fc6(0x33b),new Map()),z(this,_0x449fc6(0x139),this[_0x449fc6(0xd8)](void 0x0)[_0x449fc6(0x139)]['asObservable']()),z(this,'_status$',new _0x2c6b74(0x0)),z(this,_0x449fc6(0xdf),this[_0x449fc6(0x1e6)][_0x449fc6(0x26a)]()),this[_0x449fc6(0x23f)]();}[_0x57ff19(0x23f)](){const _0x471b35=_0x57ff19;this[_0x471b35(0x24a)]&&this[_0x471b35(0x1ba)](this['_networkConditionService']['online$'][_0x471b35(0x143)](_0xb90e4e=>{const _0x3b57e1=_0x471b35;_0xb90e4e&&this[_0x3b57e1(0x380)](),_0xb90e4e||this[_0x3b57e1(0x33b)][_0x3b57e1(0x2db)](_0x1bc2d7=>this[_0x3b57e1(0x13f)](_0x1bc2d7));}));}[_0x57ff19(0xd0)](){const _0x364e1a=_0x57ff19;super[_0x364e1a(0xd0)](),this[_0x364e1a(0x33b)][_0x364e1a(0x2db)](_0x3e29f6=>{const _0x5a2120=_0x364e1a;var _0x3b91b9,_0x195ec5;(_0x3b91b9=_0x3e29f6[_0x5a2120(0x377)])==null||_0x3b91b9['unsubscribe'](),_0x3e29f6[_0x5a2120(0x377)]=null,this[_0x5a2120(0x11e)](_0x3e29f6),this[_0x5a2120(0x10c)](_0x3e29f6),this[_0x5a2120(0x1c6)](_0x3e29f6),(_0x195ec5=_0x3e29f6[_0x5a2120(0x139)][_0x5a2120(0x2fc)]())==null||_0x195ec5[_0x5a2120(0x2d4)](),_0x3e29f6[_0x5a2120(0x139)][_0x5a2120(0x352)]();}),this[_0x364e1a(0x33b)][_0x364e1a(0x1fc)](),this[_0x364e1a(0x194)][_0x364e1a(0x2db)](_0x52daee=>_0x52daee[_0x364e1a(0xd0)]()),this[_0x364e1a(0x194)][_0x364e1a(0x1fc)](),this[_0x364e1a(0x2d7)]['clear'](),this[_0x364e1a(0x1e6)][_0x364e1a(0x352)]();}async['requireSession'](_0x3f2bc9,_0xc92c01){const _0x146920=_0x57ff19;if(this['_sessions'][_0x146920(0x1bf)](_0x3f2bc9))return this[_0x146920(0x194)][_0x146920(0x29d)](_0x3f2bc9);let _0x448214=this[_0x146920(0xfd)][_0x146920(0x29d)](_0x3f2bc9);if(_0x448214)return _0x448214;let _0x481f5e=this[_0x146920(0x148)](_0x3f2bc9,_0xc92c01);this[_0x146920(0xfd)][_0x146920(0xed)](_0x3f2bc9,_0x481f5e);try{return await _0x481f5e;}finally{this[_0x146920(0xfd)][_0x146920(0x2f3)](_0x3f2bc9);}}async['_createSession'](_0x4e689a,_0x5eab49){const _0x3d8c5e=_0x57ff19;let _0x14b083=await this[_0x3d8c5e(0xeb)](_0x4e689a,_0x5eab49),_0x739652=this[_0x3d8c5e(0xd8)](_0x14b083['target']['endpoint']);this[_0x3d8c5e(0x1c2)](_0x739652);let _0x180fd6=this[_0x3d8c5e(0x28a)][_0x3d8c5e(0x366)](Gt,_0x14b083,_0x739652[_0x3d8c5e(0x139)]['asObservable']());return this[_0x3d8c5e(0x194)]['set'](_0x4e689a,_0x180fd6),this[_0x3d8c5e(0x2d7)]['set'](_0x4e689a,_0x739652[_0x3d8c5e(0xf9)]),_0x180fd6;}['closeSession'](_0x1cd420){const _0x3dbe33=_0x57ff19;let _0x4f7022=this['_sessions'][_0x3dbe33(0x29d)](_0x1cd420),_0x3df055=this[_0x3dbe33(0x2d7)]['get'](_0x1cd420);if(_0x4f7022&&(this[_0x3dbe33(0x194)]['delete'](_0x1cd420),this[_0x3dbe33(0x2d7)][_0x3dbe33(0x2f3)](_0x1cd420),_0x4f7022[_0x3dbe33(0x2d4)]()),_0x3df055&&!this[_0x3dbe33(0xf0)](_0x3df055)){var _0xc64841;let _0x39021c=this[_0x3dbe33(0x33b)][_0x3dbe33(0x29d)](_0x3df055);_0x39021c==null||(_0xc64841=_0x39021c[_0x3dbe33(0x139)][_0x3dbe33(0x2fc)]())==null||_0xc64841['close']();}}[_0x57ff19(0x380)](){const _0x412781=_0x57ff19;(this[_0x412781(0x33b)]['size']?[...this[_0x412781(0x33b)][_0x412781(0x2bc)]()]:[this[_0x412781(0xd8)](void 0x0)])[_0x412781(0x2db)](_0x3a2512=>{const _0x25e690=_0x412781;_0x3a2512[_0x25e690(0x19b)]=0x0,this[_0x25e690(0x11e)](_0x3a2512),this[_0x25e690(0x16a)](_0x3a2512);});}['_clearRetryConnectingTimer'](_0x47fd64){const _0x3d5946=_0x57ff19;_0x47fd64[_0x3d5946(0x27b)]!=null&&(clearTimeout(_0x47fd64[_0x3d5946(0x27b)]),_0x47fd64[_0x3d5946(0x27b)]=null);}async['_createSocket'](_0x1dbdcf){const _0x4c34da=_0x57ff19;let _0x46ede1=this[_0x4c34da(0x178)][_0x4c34da(0x2b8)](R),_0x39c667=_0x1dbdcf[_0x4c34da(0x2c0)]??(_0x46ede1==null?void 0x0:_0x46ede1[_0x4c34da(0x279)])??_0x4c34da(0x18b),_0x3756da=await this[_0x4c34da(0x120)]['createSocket'](_0x39c667);return _0x1dbdcf['candidateSocket']=_0x3756da,_0x3756da;}async[_0x57ff19(0x1c2)](_0x3052a5){const _0x5ebbf1=_0x57ff19;try{let _0x45c97d=_0x3052a5[_0x5ebbf1(0x139)]['getValue']()??_0x3052a5[_0x5ebbf1(0x112)]??await this[_0x5ebbf1(0x2ac)](_0x3052a5);if(_0x45c97d){var _0x332199;let _0x537721=_0x45c97d[_0x5ebbf1(0x17b)];_0x45c97d[_0x5ebbf1(0x17b)]=_0x397c67=>(_0x397c67[_0x5ebbf1(0x16d)]!==_0x522796[_0x5ebbf1(0x1a9)]&&this['_rescheduleHeartbeat'](_0x3052a5),_0x537721[_0x5ebbf1(0x251)](_0x45c97d,[_0x397c67])),(_0x332199=_0x3052a5['socketMessageSubscription'])==null||_0x332199[_0x5ebbf1(0x34d)](),_0x3052a5[_0x5ebbf1(0x377)]=null,_0x3052a5[_0x5ebbf1(0x377)]=_0x45c97d[_0x5ebbf1(0x22f)][_0x5ebbf1(0x143)](_0x40005b=>this[_0x5ebbf1(0x12b)](_0x3052a5,_0x45c97d,_0x40005b)),_0x45c97d[_0x5ebbf1(0x376)][_0x5ebbf1(0x10e)](_0x5d4a75(0x1))[_0x5ebbf1(0x143)](_0x3300e7=>this[_0x5ebbf1(0x1fd)]['error'](_0x5ebbf1(0x165),_0x3300e7)),_0x45c97d[_0x5ebbf1(0x386)][_0x5ebbf1(0x10e)](_0x5d4a75(0x1))[_0x5ebbf1(0x143)](()=>{const _0x18a08f=_0x5ebbf1;this[_0x18a08f(0xd2)](_0x3052a5,_0x45c97d);}),_0x45c97d[_0x5ebbf1(0x2e2)][_0x5ebbf1(0x10e)](_0x5d4a75(0x1))[_0x5ebbf1(0x143)](_0x56459e=>{const _0x18cc0f=_0x5ebbf1;this[_0x18cc0f(0x1fd)][_0x18cc0f(0x102)](_0x18cc0f(0x378),'socket\x20close',_0x56459e),this[_0x18cc0f(0x1ec)](_0x3052a5);});}}catch(_0xa6c129){this[_0x5ebbf1(0x1fd)]['error'](_0xa6c129),this[_0x5ebbf1(0x1ec)](_0x3052a5);}}['_onConnectionOpen'](_0x3ec80d,_0x3e7ad5){const _0x4079cc=_0x57ff19;this['_logService']['debug'](_0x4079cc(0x378),'socket\x20open.'),_0x3e7ad5[_0x4079cc(0x17b)]({'cmd':_0x522796[_0x4079cc(0x301)]}),this[_0x4079cc(0x223)](_0x3ec80d);}[_0x57ff19(0x13f)](_0x384705){const _0x56d5e0=_0x57ff19;_0x384705[_0x56d5e0(0x1f5)]=!0x1,_0x384705[_0x56d5e0(0x112)]=null,this[_0x56d5e0(0x1e6)][_0x56d5e0(0x204)](0x2),_0x384705[_0x56d5e0(0x139)][_0x56d5e0(0x204)](null),this[_0x56d5e0(0x10c)](_0x384705),this[_0x56d5e0(0x1c6)](_0x384705);}[_0x57ff19(0x1ec)](_0x4f82d2){const _0x31822b=_0x57ff19;this[_0x31822b(0x13f)](_0x4f82d2),this[_0x31822b(0xf0)](_0x4f82d2['endpointKey'])&&(_0x4f82d2[_0x31822b(0x19b)]<(this[_0x31822b(0x178)][_0x31822b(0x2b8)]('RETRY_CONNECTING_MAX_COUNT')??0x3)?(this[_0x31822b(0x134)][_0x31822b(0x325)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x31822b(0x16a)](_0x4f82d2)):this['_collaborationUIEventService'][_0x31822b(0x325)]({'id':'SOCKET_FAILED'}));}[_0x57ff19(0x16a)](_0x14073c){const _0x5ba1ef=_0x57ff19;let _0x5a5ced=_0x14073c[_0x5ba1ef(0x19b)],_0x3382e5=this['_configService']['getConfig'](R),_0x33a498=_0x5a5ced===0x0?0x0:((_0x3382e5==null?void 0x0:_0x3382e5[_0x5ba1ef(0x1a6)])??0x4e20)*0x2**_0x5a5ced;_0x14073c[_0x5ba1ef(0x27b)]=setTimeout(()=>{const _0x4855c5=_0x5ba1ef;clearTimeout(_0x14073c[_0x4855c5(0x27b)]),_0x14073c['retryConnectingTimer']=null,this[_0x4855c5(0x1c2)](_0x14073c);},_0x33a498),_0x14073c[_0x5ba1ef(0x19b)]+=0x1;}async[_0x57ff19(0xeb)](_0x30a6cb,_0x59eda9){const _0x99dc03=_0x57ff19;return Fn(_0x30a6cb,_0x59eda9,await this[_0x99dc03(0xd5)]['resolveUnit']({'unitId':_0x30a6cb,'unitType':_0x59eda9}));}[_0x57ff19(0x12b)](_0x174233,_0x3c765f,_0x570c98){const _0x36397d=_0x57ff19;let {cmd:_0x305dd2}=_0x570c98;_0x305dd2===_0x522796[_0x36397d(0x301)]&&!_0x174233[_0x36397d(0x1f5)]&&(_0x3c765f[_0x36397d(0x368)]=_0x570c98['data'][_0x36397d(0x368)],_0x174233[_0x36397d(0x19b)]=0x0,_0x174233[_0x36397d(0x139)][_0x36397d(0x204)](_0x3c765f),this['_status$'][_0x36397d(0x204)](0x3),_0x174233[_0x36397d(0x1f5)]=!0x0,_0x174233[_0x36397d(0x112)]=null),_0x305dd2===_0x522796[_0x36397d(0x118)]&&this[_0x36397d(0x10c)](_0x174233),this[_0x36397d(0x223)](_0x174233);}[_0x57ff19(0xf0)](_0x4d113f){const _0x9d8ec8=_0x57ff19;return[...this[_0x9d8ec8(0x2d7)][_0x9d8ec8(0x2bc)]()][_0x9d8ec8(0x20a)](_0x4a5e7c=>_0x4a5e7c===_0x4d113f);}[_0x57ff19(0xd8)](_0x3f1b30){const _0x55ee37=_0x57ff19;let _0x543f69=_0x3f1b30??'',_0x446c22=this[_0x55ee37(0x33b)][_0x55ee37(0x29d)](_0x543f69);if(_0x446c22)return _0x446c22;let _0x1b1adc={'endpointKey':_0x543f69,'endpoint':_0x3f1b30,'socket$':new _0x2c6b74(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x55ee37(0x33b)]['set'](_0x543f69,_0x1b1adc),_0x1b1adc;}[_0x57ff19(0x223)](_0x26de7f){const _0x2570de=_0x57ff19;this[_0x2570de(0x1c6)](_0x26de7f),_0x26de7f[_0x2570de(0x1f2)]=setTimeout(()=>this[_0x2570de(0x33c)](_0x26de7f),this[_0x2570de(0x178)][_0x2570de(0x2b8)](_0x2570de(0x363))??0x7530);}[_0x57ff19(0x33c)](_0x30635d){const _0x379aa6=_0x57ff19;_0x30635d['socket$']['getValue']()[_0x379aa6(0x17b)]({'cmd':_0x522796[_0x379aa6(0x118)]}),this[_0x379aa6(0x382)](_0x30635d);}[_0x57ff19(0x382)](_0x46aa8c){const _0x64dc5b=_0x57ff19;_0x46aa8c['timeoutTimer']=setTimeout(()=>this[_0x64dc5b(0x1ec)](_0x46aa8c),this[_0x64dc5b(0x178)][_0x64dc5b(0x2b8)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x57ff19(0x1c6)](_0x56b546){const _0x1f913e=_0x57ff19;_0x56b546[_0x1f913e(0x1f2)]!=null&&(clearTimeout(_0x56b546[_0x1f913e(0x1f2)]),_0x56b546[_0x1f913e(0x1f2)]=null);}['_clearTimeoutTimer'](_0x3a94ec){const _0x4b8e0b=_0x57ff19;_0x3a94ec[_0x4b8e0b(0x1d3)]!=null&&(clearTimeout(_0x3a94ec['timeoutTimer']),_0x3a94ec[_0x4b8e0b(0x1d3)]=null);}};In=H([V(0x0,_0x3862a7(_0x1e387a)),V(0x1,_0xe5ab40),V(0x2,_0x37ec8b),V(0x3,An),V(0x4,_0x3862a7(B)),V(0x5,Nn),V(0x6,_0x58c27a(Dn))],In);let Ln=class extends _0x41c222{constructor(_0x2790e6,_0x4e689f,_0xbd3b32,_0x3d7509){const _0x30dcd2=_0x57ff19;var _0x535fc6;super(),this['_injector']=_0x2790e6,this[_0x30dcd2(0x14d)]=_0x4e689f,this[_0x30dcd2(0x178)]=_0xbd3b32,this[_0x30dcd2(0x305)]=_0x3d7509,z(this,_0x30dcd2(0xd3),new Map()),z(this,'_entityInit$',new _0x2f068e()),z(this,'entityInit$',this[_0x30dcd2(0x35f)][_0x30dcd2(0x26a)]()),((_0x535fc6=this[_0x30dcd2(0x178)][_0x30dcd2(0x2b8)]('collaboration-client.config'))==null?void 0x0:_0x535fc6[_0x30dcd2(0x155)])!==!0x1&&this['_init']();}['dispose'](){const _0x111d92=_0x57ff19;super[_0x111d92(0xd0)](),this[_0x111d92(0xd3)][_0x111d92(0x2db)](_0x16a0c9=>_0x16a0c9[_0x111d92(0xd0)]()),this[_0x111d92(0xd3)][_0x111d92(0x1fc)]();}[_0x57ff19(0x332)](_0x2f4296){const _0x2d1534=_0x57ff19;return this[_0x2d1534(0xd3)]['get'](_0x2f4296)??null;}[_0x57ff19(0x35d)](_0x565a14){const _0x54098f=_0x57ff19;let _0x1505c2=this[_0x54098f(0x332)](_0x565a14);return _0x1505c2?_0x399da8(_0x1505c2):this[_0x54098f(0x35f)][_0x54098f(0x10e)](_0x2f6e63(_0x47cd93=>_0x47cd93[_0x54098f(0x2b3)]===_0x565a14));}[_0x57ff19(0x109)](_0x55358f){const _0x109810=_0x57ff19;return _0x5bc7a6(this[_0x109810(0x35d)](_0x55358f)[_0x109810(0x10e)](_0x2aece9(()=>void 0x0)));}['_init'](){const _0x529cc4=_0x57ff19;this[_0x529cc4(0x305)][_0x529cc4(0xe2)](_0xc3375b[_0x529cc4(0x13d)])['pipe'](_0x3e825e(this[_0x529cc4(0x111)]),_0x3e24a1(0x10))['subscribe'](async _0x1084fc=>{const _0x1479e3=_0x529cc4;let _0x4d74a5=_0x1084fc['unit']['getUnitId'](),_0x24af85=await this[_0x1479e3(0x2b0)](_0x4d74a5,_0xc3375b[_0x1479e3(0x13d)]);this['_entities'][_0x1479e3(0xed)](_0x4d74a5,_0x24af85);}),this[_0x529cc4(0x305)][_0x529cc4(0xe2)](_0xc3375b[_0x529cc4(0x189)])[_0x529cc4(0x10e)](_0x3e825e(this['dispose$']),_0x3e24a1(0x10))[_0x529cc4(0x10e)](_0x2f6e63(_0x1be29f=>!_0x1be29f[_0x529cc4(0x12a)][_0x529cc4(0x2d9)]()[_0x529cc4(0x275)]('__')))[_0x529cc4(0x143)](async _0x2ff2de=>{const _0x57a0e8=_0x529cc4;let _0x506782=_0x2ff2de[_0x57a0e8(0x12a)][_0x57a0e8(0x2d9)](),_0x1f7de1=await this[_0x57a0e8(0x2b0)](_0x506782,_0xc3375b['UNIVER_DOC']);this[_0x57a0e8(0xd3)][_0x57a0e8(0xed)](_0x506782,_0x1f7de1);}),this[_0x529cc4(0x305)]['getTypeOfUnitAdded$'](_0xc3375b[_0x529cc4(0x27a)])[_0x529cc4(0x10e)](_0x3e825e(this['dispose$']),_0x3e24a1(0x10))[_0x529cc4(0x143)](async _0x49a461=>{const _0x550fcc=_0x529cc4;let _0x5d99ca=_0x49a461[_0x550fcc(0x12a)][_0x550fcc(0x2d9)](),_0x5f4f4c=await this[_0x550fcc(0x2b0)](_0x5d99ca,_0xc3375b['UNIVER_SLIDE']);this[_0x550fcc(0xd3)][_0x550fcc(0xed)](_0x5d99ca,_0x5f4f4c);}),this[_0x529cc4(0x305)][_0x529cc4(0xe2)](_0xc3375b[_0x529cc4(0x32c)])[_0x529cc4(0x10e)](_0x3e825e(this[_0x529cc4(0x111)]),_0x3e24a1(0x10))[_0x529cc4(0x143)](async _0x5bde22=>{const _0xe1a59b=_0x529cc4;let _0x31b6b7=_0x5bde22[_0xe1a59b(0x12a)][_0xe1a59b(0x2d9)](),_0x927df8=await this[_0xe1a59b(0x2b0)](_0x31b6b7,_0xc3375b[_0xe1a59b(0x32c)]);this[_0xe1a59b(0xd3)][_0xe1a59b(0xed)](_0x31b6b7,_0x927df8);}),this['_univerInstanceService'][_0x529cc4(0xe2)](_0xc3375b[_0x529cc4(0xd9)])[_0x529cc4(0x10e)](_0x3e825e(this['dispose$']),_0x3e24a1(0x10))[_0x529cc4(0x143)](async _0x454433=>{const _0xcefe6a=_0x529cc4;let _0x747e6f=_0x454433[_0xcefe6a(0x12a)]['getUnitId'](),_0xc57b44=await this[_0xcefe6a(0x2b0)](_0x747e6f,_0xc3375b['UNIVER_BASE']);this[_0xcefe6a(0xd3)][_0xcefe6a(0xed)](_0x747e6f,_0xc57b44);}),this[_0x529cc4(0x305)][_0x529cc4(0xe2)](_0xc3375b[_0x529cc4(0x2fd)])[_0x529cc4(0x10e)](_0x3e825e(this[_0x529cc4(0x111)]),_0x3e24a1(0x10))[_0x529cc4(0x143)](async _0x92b4f6=>{const _0x596dd5=_0x529cc4;let _0x251bc4=_0x92b4f6[_0x596dd5(0x12a)]['getUnitId'](),_0x1642e9=await this[_0x596dd5(0x2b0)](_0x251bc4,_0xc3375b[_0x596dd5(0x2fd)]);this[_0x596dd5(0xd3)]['set'](_0x251bc4,_0x1642e9);}),_0x5e7889(this[_0x529cc4(0x305)][_0x529cc4(0x23d)](_0xc3375b[_0x529cc4(0x13d)]),this[_0x529cc4(0x305)][_0x529cc4(0x23d)](_0xc3375b[_0x529cc4(0x189)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0xc3375b['UNIVER_SLIDE']),this[_0x529cc4(0x305)]['getTypeOfUnitDisposed$'](_0xc3375b[_0x529cc4(0x32c)]),this[_0x529cc4(0x305)]['getTypeOfUnitDisposed$'](_0xc3375b['UNIVER_BASE']),this['_univerInstanceService'][_0x529cc4(0x23d)](_0xc3375b[_0x529cc4(0x2fd)]))[_0x529cc4(0x10e)](_0x3e825e(this[_0x529cc4(0x111)]))['subscribe'](_0x11c868=>{const _0x3cc5a0=_0x529cc4;let _0x1e5979=_0x11c868[_0x3cc5a0(0x2d9)](),_0x1412bf=this[_0x3cc5a0(0xd3)][_0x3cc5a0(0x29d)](_0x1e5979);_0x1412bf&&(_0x1412bf[_0x3cc5a0(0xd0)](),this[_0x3cc5a0(0xd3)][_0x3cc5a0(0x2f3)](_0x1e5979));});}async[_0x57ff19(0x2b0)](_0x2c8fe5,_0x38d71b){const _0x350ea9=_0x57ff19;let _0x256f74=await this[_0x350ea9(0x14d)][_0x350ea9(0x147)](_0x2c8fe5),_0x5d2afb=this['_injector'][_0x350ea9(0x366)](this['_getCtorByUniverInstanceType'](_0x38d71b),_0x2c8fe5,_0x38d71b,_0x256f74);return await _0x5d2afb[_0x350ea9(0x354)](),this['_entityInit$'][_0x350ea9(0x204)](_0x5d2afb),_0x5d2afb;}[_0x57ff19(0x193)](_0x21cc53){const _0xc85608=_0x57ff19;switch(_0x21cc53){case _0xc3375b[_0xc85608(0x189)]:return xn;case _0xc3375b[_0xc85608(0x13d)]:return Cn;case _0xc3375b[_0xc85608(0x27a)]:return wn;case _0xc3375b['UNIVER_BOARD']:return Tn;case _0xc3375b['UNIVER_BASE']:return Sn;case _0xc3375b['UNIVER_PDF']:return En;default:throw Error(_0xc85608(0x36c)+_0x21cc53);}}};Ln=H([V(0x0,_0x3862a7(_0x1e387a)),V(0x1,_0x3862a7(In)),V(0x2,_0x37ec8b),V(0x3,_0x20c84a)],Ln);var Rn=_0x57ff19(0x11c),zn=_0x57ff19(0x15a);let Bn=class extends _0x170707{constructor(_0xf841c0,_0x4e3df7){const _0x4bb792=_0x57ff19;super(),this[_0x4bb792(0x305)]=_0xf841c0,this[_0x4bb792(0x178)]=_0x4e3df7,this[_0x4bb792(0xdb)]();}[_0x57ff19(0xdb)](){const _0x58e575=_0x57ff19;this['disposeWithMe'](this['_univerInstanceService']['focused$'][_0x58e575(0x143)](()=>{const _0x212a6b=_0x58e575;let _0x117031=this['_univerInstanceService'][_0x212a6b(0xf1)](),_0x2fde85=this[_0x212a6b(0x178)][_0x212a6b(0x2b8)](_0x212a6b(0x2c5))??_0x212a6b(0x1de);_0x117031 instanceof _0x3be187&&(_0x2fde85=_0x117031[_0x212a6b(0x113)]),document[_0x212a6b(0x15d)]=_0x2fde85;}));}};Bn=H([V(0x0,_0x20c84a),V(0x1,_0x37ec8b)],Bn);const Vn=_0x5d0b62(_0x57ff19(0x29a));let Hn=class{constructor(_0x572be9,_0x5ccc5b,_0x5321af){const _0x2298b3=_0x57ff19;this[_0x2298b3(0x2e4)]=_0x572be9,this['_configService']=_0x5ccc5b,this[_0x2298b3(0x305)]=_0x5321af;}['getUploadOptions'](){const _0x1aadf7=_0x57ff19;return this[_0x1aadf7(0x174)]()[_0x1aadf7(0x278)]??{};}async[_0x57ff19(0x2c7)](_0x1f5fab){const _0x1220c1=_0x57ff19;let _0x1d47f9=this[_0x1220c1(0x245)]();if(Un(_0x1f5fab,_0x1d47f9),_0x1d47f9['upload'])return _0x1d47f9['upload'](_0x1f5fab);let _0x24a274=await this[_0x1220c1(0x191)](_0x1f5fab);return{'id':_0x24a274,'name':_0x1f5fab[_0x1220c1(0x113)],'mimeType':_0x1f5fab[_0x1220c1(0x1a2)],'size':_0x1f5fab['size'],'sourceType':_0x16019b[_0x1220c1(0x24c)],'source':_0x24a274};}async[_0x57ff19(0x220)](_0x4bd0c2,_0x3e7cb4){const _0x2db949=_0x57ff19;if(_0x3e7cb4!==_0x16019b[_0x2db949(0x24c)])return _0x4bd0c2;let _0x1ef412=(await this['_httpService']['get'](this['_getSignURL']()[_0x2db949(0xe6)](_0x2db949(0x331),_0x4bd0c2)))[_0x2db949(0x291)];if(_0x1ef412[_0x2db949(0x20d)]&&_0x1ef412[_0x2db949(0x20d)][_0x2db949(0x22e)]!==_0x5d8829['OK'])throw _0x1ef412[_0x2db949(0x20d)];if(!_0x1ef412[_0x2db949(0x231)])throw Error(_0x2db949(0x127));return _0x4d5d45(_0x1ef412['url'],this[_0x2db949(0x267)]());}async[_0x57ff19(0x191)](_0x32f790){const _0x174343=_0x57ff19;let _0x1be4bd=this[_0x174343(0x305)][_0x174343(0xf1)](),_0x45a735=_0x1be4bd==null?void 0x0:_0x1be4bd[_0x174343(0x2d9)]();if(!_0x45a735)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x44a578=new FormData();_0x44a578[_0x174343(0x1fb)](_0x174343(0x337),_0x32f790);let _0x4a3e46=this['_getUploadFileURL']()+_0x174343(0x199)+_0x32f790[_0x174343(0x2f0)][_0x174343(0x1a1)]()+_0x174343(0xf7)+_0xb4aea2[_0x174343(0x2fb)]+_0x174343(0x33a)+encodeURIComponent(_0x45a735),_0x5c6bd2=(await this[_0x174343(0x2e4)][_0x174343(0x158)](_0x4a3e46,{'body':_0x44a578}))['body'][_0x174343(0x2b4)];if(typeof _0x5c6bd2!='string'||!_0x5c6bd2)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x5c6bd2;}[_0x57ff19(0x1b6)](){const _0x8da947=_0x57ff19;return this['_getConfig']()[_0x8da947(0x300)]??_0x8da947(0x259);}['_getSignURL'](){const _0x3207e9=_0x57ff19;return this['_getConfig']()[_0x3207e9(0x18a)]??_0x3207e9(0x282);}[_0x57ff19(0x267)](){const _0x25fe86=_0x57ff19;let _0x5598eb=this[_0x25fe86(0x174)]();return _0x5598eb[_0x25fe86(0x16b)]?_0x5598eb[_0x25fe86(0x16b)]:typeof location<'u'?location[_0x25fe86(0x357)]:_0x5598eb[_0x25fe86(0x300)]??'';}['_getConfig'](){const _0x4592c6=_0x57ff19;return this[_0x4592c6(0x178)][_0x4592c6(0x2b8)](_0x4592c6(0x322))??{};}};Hn=H([V(0x0,_0x3862a7(_0x41945f)),V(0x1,_0x3862a7(_0x37ec8b)),V(0x2,_0x3862a7(_0x20c84a))],Hn);function Un(_0x3a5147,_0x2d683c){const _0x4dd497=_0x57ff19;var _0x16c188;if(_0x2d683c['maxSize']!=null&&_0x3a5147[_0x4dd497(0x2f0)]>_0x2d683c[_0x4dd497(0x121)])throw Error(_0x4dd497(0x2e0));if((_0x16c188=_0x2d683c[_0x4dd497(0x2eb)])!=null&&_0x16c188[_0x4dd497(0x2e9)]&&!_0x2d683c[_0x4dd497(0x2eb)][_0x4dd497(0x20a)](_0x5913a5=>_0x3a5147[_0x4dd497(0x1a2)]===_0x5913a5||_0x3a5147[_0x4dd497(0x113)][_0x4dd497(0x239)](_0x5913a5)||_0x5913a5[_0x4dd497(0x239)]('/*')&&_0x3a5147[_0x4dd497(0x1a2)][_0x4dd497(0x275)](_0x5913a5['slice'](0x0,-0x1))))throw Error(_0x4dd497(0x33d));}let Wn=class{constructor(_0x2b8b3a,_0x8a4d0c,_0x589a69){const _0x5aa4b5=_0x57ff19;this[_0x5aa4b5(0x178)]=_0x2b8b3a,this['_httpService']=_0x8a4d0c,this[_0x5aa4b5(0x1db)]=_0x589a69,this[_0x5aa4b5(0x354)]();}['init'](){const _0x18968e=_0x57ff19;this[_0x18968e(0x2e4)][_0x18968e(0x1c5)]({'priority':0x1,'interceptor':(_0x77d851,_0x4b5873)=>_0x4b5873(_0x77d851)[_0x18968e(0x10e)](_0x4af8da(async _0x3bf504=>{const _0x2863e6=_0x18968e;let _0x5415a5=_0x3bf504;if(_0x5415a5['status']===0x191){if(typeof window>'u')throw Error(_0x2863e6(0x263));if(window[_0x2863e6(0x34f)](this[_0x2863e6(0x1db)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x5800d0=window[_0x2863e6(0x254)](window[_0x2863e6(0x25a)]['href']);window['location']['href']=this[_0x2863e6(0x173)]()+_0x2863e6(0x2cc)+_0x5800d0;}}return _0x5415a5;}))});}['_getLoginPath'](){const _0x39942a=_0x57ff19;let _0x52f92e=this['_configService'][_0x39942a(0x2b8)](R);return(_0x52f92e==null?void 0x0:_0x52f92e[_0x39942a(0x160)])??_0x39942a(0x149);}};Wn=H([V(0x0,_0x37ec8b),V(0x1,_0x3862a7(_0x41945f)),V(0x2,_0x3862a7(_0x4ecf6b))],Wn);let Gn=class extends _0x170707{constructor(_0x458d0b,_0x130a64){const _0x5157ab=_0x57ff19;super(),this[_0x5157ab(0x1ae)]=_0x458d0b,this[_0x5157ab(0x178)]=_0x130a64,z(this,'_cfgEnableObjInherit',!0x1),this[_0x5157ab(0x2ea)]();}['_initMergeInterceptor'](){const _0x15981c=_0x57ff19;let _0x124541=this;this[_0x15981c(0x1ba)](this[_0x15981c(0x1ae)][_0x15981c(0x1c5)]({'priority':0x3e7,'interceptor':_0x3982ee({'isMatch'(_0x2faf0f){const _0x153186=_0x15981c;var _0x501799;if(_0x2faf0f[_0x153186(0x29c)]===_0x153186(0x2a4)&&(_0x501799=_0x2faf0f[_0x153186(0x15e)])!=null&&_0x501799[_0x153186(0x291)]){let {objectID:_0x45913f,objectType:_0x4d4896}=_0x2faf0f[_0x153186(0x15e)][_0x153186(0x291)]||{};if(!_0x45913f||_0x4d4896===void 0x0)return!0x1;let _0x2713aa=_0x124541[_0x153186(0x12f)]()+'/'+_0x4d4896+_0x153186(0x25b)+encodeURIComponent(_0x45913f)+'/allowed';if(_0x2faf0f['url']===_0x2713aa)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2ca91b){const _0x2bd8ca=_0x15981c;var _0x56a6ed;return(_0x56a6ed=_0x2ca91b[_0x2bd8ca(0x15e)])==null?void 0x0:_0x56a6ed[_0x2bd8ca(0x291)];},'mergeParamsToRequest'(_0x2f68c5,_0xf42a78){const _0x3fdb49=_0x15981c;let _0x1cb382=_0x124541[_0x3fdb49(0x12f)]()+_0x3fdb49(0x240),_0x52ab47=_0x2f68c5['reduce']((_0x5c5a1f,_0x587b48)=>{const _0x21d456=_0x3fdb49;let {unitID:_0x995284,objectID:_0x144938,objectType:_0x4a2ff7,actions:_0x174d00}=_0x587b48;return _0x5c5a1f[_0x995284]||(_0x5c5a1f[_0x995284]=Object['create'](null)),_0x5c5a1f[_0x995284][_0x144938]||(_0x5c5a1f[_0x995284][_0x144938]={'objectID':_0x144938,'objectType':_0x4a2ff7,'actions':[]}),_0x5c5a1f[_0x995284][_0x144938][_0x21d456(0x1a3)][_0x21d456(0x28d)](..._0x174d00),_0x5c5a1f;},Object[_0x3fdb49(0x10f)](null)),_0x2818d8=[];for(let _0x89fdfd in _0x52ab47)for(let _0x5ee04b in _0x52ab47[_0x89fdfd]){let {actions:_0x3db352,objectType:_0x4c1608}=_0x52ab47[_0x89fdfd][_0x5ee04b],_0x3143ae=[...new Set(_0x3db352)];_0x2818d8[_0x3fdb49(0x28d)]({'unitID':_0x89fdfd,'objectID':_0x5ee04b,'objectType':_0x4c1608,'actions':_0x3143ae});}return new _0x3a47ca(_0x3fdb49(0x2a4),_0x1cb382,{'headers':_0xf42a78['headers'],'withCredentials':_0xf42a78[_0x3fdb49(0x2cd)],'responseType':_0xf42a78[_0x3fdb49(0x2a0)],'body':{'requests':_0x2818d8}});}},{'distributeResult'(_0x3b500a,_0xf4bf4a){const _0x56eafe=_0x15981c;let {objectActions:_0xb03680}=_0x3b500a;return _0xf4bf4a[_0x56eafe(0xff)](_0x348855=>{const _0x2b7b16=_0x56eafe;let {unitID:_0x122847,objectID:_0x4fd4f6,actions:_0x22fdee}=_0x348855,_0x1c32e0=_0xb03680['find'](_0x2fb24d=>_0x2fb24d[_0x2b7b16(0x2b3)]===_0x122847&&_0x2fb24d[_0x2b7b16(0x2e1)]===_0x4fd4f6);return{'config':_0x348855,'result':{'actions':_0x22fdee['map'](_0x4b939b=>_0x1c32e0==null?void 0x0:_0x1c32e0[_0x2b7b16(0x1a3)][_0x2b7b16(0x1d5)](_0x577838=>_0x577838['action']===_0x4b939b))[_0x2b7b16(0x207)](_0x2dbcf1=>!!_0x2dbcf1),'error':_0x3b500a[_0x2b7b16(0x20d)]}};});}})}));}[_0x57ff19(0x12f)](){const _0x4d8975=_0x57ff19;let _0x3e998d=this[_0x4d8975(0x178)]['getConfig'](R);return(_0x3e998d==null?void 0x0:_0x3e998d[_0x4d8975(0x33f)])??_0x4d8975(0x22c);}async[_0x57ff19(0x10f)](_0x51eecb){const _0x1af4ad=_0x57ff19;let _0x118f5d=this[_0x1af4ad(0x12f)]()+'/'+_0x51eecb[_0x1af4ad(0x296)]+_0x1af4ad(0x18f);return(await this[_0x1af4ad(0x1ae)][_0x1af4ad(0x158)](_0x118f5d,{'body':_0x51eecb}))['body'][_0x1af4ad(0x2e1)]||'';}async[_0x57ff19(0x2f5)](_0x281f4b){const _0x4806e9=_0x57ff19;let _0x2bea05=this[_0x4806e9(0x12f)]()+'/-/object/list';return(await this[_0x4806e9(0x1ae)]['post'](_0x2bea05,{'body':_0x281f4b}))['body'][_0x4806e9(0x270)];}async[_0x57ff19(0x163)](_0x4269ea){const _0x52518b=_0x57ff19;var _0x5de3a2;let _0x11128f=this[_0x52518b(0x12f)]()+'/'+_0x4269ea['objectType']+_0x52518b(0x25b)+encodeURIComponent(_0x4269ea['objectID']),_0xfc8d7f=await this['_HTTPService'][_0x52518b(0x2ce)](_0x11128f,{'body':_0x4269ea});if((_0xfc8d7f==null||(_0x5de3a2=_0xfc8d7f[_0x52518b(0x291)])==null||(_0x5de3a2=_0x5de3a2['error'])==null?void 0x0:_0x5de3a2[_0x52518b(0x22e)])!==0x1)throw Error(_0x52518b(0x129));}async['allowed'](_0x2b578a){const _0x207b2b=_0x57ff19;let _0x39648c=this[_0x207b2b(0x12f)]()+'/'+_0x2b578a[_0x207b2b(0x296)]+'/object/'+encodeURIComponent(_0x2b578a['objectID'])+_0x207b2b(0x1d4);return(await this[_0x207b2b(0x1ae)][_0x207b2b(0x158)](_0x39648c,{'body':_0x2b578a}))[_0x207b2b(0x291)]['actions'];}async[_0x57ff19(0x1b1)](_0x3bd622){const _0x51c6ca=_0x57ff19;let _0x418e23=this[_0x51c6ca(0x12f)]()+_0x51c6ca(0x240);return(await this[_0x51c6ca(0x1ae)][_0x51c6ca(0x158)](_0x418e23,{'body':{'requests':_0x3bd622}}))[_0x51c6ca(0x291)]['objectActions'];}async[_0x57ff19(0x228)](_0x420a80){const _0x3d9d6e=_0x57ff19;let _0x10bb09=this[_0x3d9d6e(0x12f)]()+'/'+_0x420a80['objectType']+_0x3d9d6e(0x197),_0x3d644e=await this['_HTTPService'][_0x3d9d6e(0x158)](_0x10bb09,{'body':_0x420a80});return{'roles':_0x3d644e[_0x3d9d6e(0x291)]['roles'],'actions':_0x3d644e[_0x3d9d6e(0x291)]['actions']};}async[_0x57ff19(0x1af)](_0x48407c){const _0x4d33da=_0x57ff19;let _0x27aefd=this[_0x4d33da(0x12f)]()+_0x4d33da(0x22a);await this['_HTTPService'][_0x4d33da(0x2f3)](_0x27aefd,{'params':{'collaboratorID':_0x48407c['collaboratorID'],'objectID':_0x48407c['objectID'],'unitID':_0x48407c[_0x4d33da(0x2b3)]}});}async[_0x57ff19(0x145)](_0x83e3d7){const _0x449b9e=_0x57ff19;let _0x254495=this['_getAPIPrefixPath']()+_0x449b9e(0x22a);await this[_0x449b9e(0x1ae)]['patch'](_0x254495,{'body':_0x83e3d7});}async[_0x57ff19(0x25c)](_0x4eab51){const _0x4328ff=_0x57ff19;let _0x4cc52b=this[_0x4328ff(0x12f)]()+_0x4328ff(0x22a);await this[_0x4328ff(0x1ae)][_0x4328ff(0x158)](_0x4cc52b,{'body':_0x4eab51});}async[_0x57ff19(0x24d)](_0x338578){const _0x4c1439=_0x57ff19;let _0x39ff6f=this['_getAPIPrefixPath']()+_0x4c1439(0x22a),_0x29c367=await this[_0x4c1439(0x1ae)][_0x4c1439(0x29d)](_0x39ff6f,{'params':{'objectID':_0x338578[_0x4c1439(0x2e1)],'unitID':_0x338578[_0x4c1439(0x2b3)]}});return this[_0x4c1439(0x266)](_0x29c367[_0x4c1439(0x291)][_0x4c1439(0x326)]??!0x1),_0x29c367[_0x4c1439(0x291)][_0x4c1439(0x31b)];}async[_0x57ff19(0x2e6)](_0x2a4a42){const _0x23e534=_0x57ff19;let _0x24ed97=this[_0x23e534(0x12f)]()+_0x23e534(0x22a);await this[_0x23e534(0x1ae)][_0x23e534(0x2ce)](_0x24ed97,{'body':_0x2a4a42});}[_0x57ff19(0x266)](_0x26e97f){const _0x85035d=_0x57ff19;this[_0x85035d(0x234)]=_0x26e97f;}[_0x57ff19(0x1c0)](){return this['_cfgEnableObjInherit'];}};Gn=H([V(0x0,_0x3862a7(_0x41945f)),V(0x1,_0x3862a7(_0x37ec8b))],Gn);function Kn(_0x3ab8ef){const _0x3b865a=_0x57ff19;let _0x2b5147=atob(_0x3ab8ef),_0x382012=new Uint8Array(_0x2b5147[_0x3b865a(0x2e9)]);for(let _0x33a50d=0x0;_0x33a50d<_0x2b5147[_0x3b865a(0x2e9)];_0x33a50d++)_0x382012[_0x33a50d]=_0x2b5147[_0x3b865a(0x2d0)](_0x33a50d);return _0x382012;}function qn(_0x474300){const _0x416c66=_0x57ff19;let _0x125d49='';for(let _0x9777ac=0x0;_0x9777ac<_0x474300[_0x416c66(0x2e9)];_0x9777ac++)_0x125d49+=String[_0x416c66(0x237)](_0x474300[_0x9777ac]);return btoa(_0x125d49);}function Jn(_0x182440,_0x519759){const _0x4bb2ca=_0x57ff19;let _0x215b18=Kn(_0x519759),_0x3393a6=_0x5b6ebf(0x10),_0x27f4ca=_0x2cfbd6(_0x215b18,_0x3393a6)[_0x4bb2ca(0xea)](_0x48612b(_0x182440));return qn(_0x3fe3dd(_0x3393a6,_0x27f4ca));}function Yn(){const _0x48d899=_0x57ff19;let _0x342893=_0xbd6fb0()['__Key__'];if(typeof window<'u'&&window[_0x48d899(0x25a)]!==void 0x0&&_0x342893){let _0x35c000={'time':Math[_0x48d899(0x30e)](Date['now']()/0x3e8),'domain':location[_0x48d899(0x26d)]};return Jn(JSON[_0x48d899(0x1ef)](_0x35c000),_0x342893);}}let Xn=class{constructor(_0x1fb900){const _0x5b8bb5=_0x57ff19;this['_httpService']=_0x1fb900,this[_0x5b8bb5(0x108)]();}[_0x57ff19(0x108)](){const _0x5d1eef=_0x57ff19;this[_0x5d1eef(0x2e4)][_0x5d1eef(0x1c5)]({'interceptor':(_0x519e29,_0xa01ea8)=>{const _0x53b045=_0x5d1eef;let _0x325b85=Yn();return _0x325b85&&_0x519e29[_0x53b045(0x26f)][_0x53b045(0xed)]('x-univer-host',_0x325b85),_0xa01ea8(_0x519e29);}});}};Xn=H([V(0x0,_0x3862a7(_0x41945f))],Xn);let Zn=class extends _0x41c222{constructor(_0xb8ccd6,_0x17473c,_0x5bf84e){const _0x1e26d6=_0x57ff19;super(),this['_logService']=_0xb8ccd6,this[_0x1e26d6(0xcc)]=_0x17473c,this['_localCacheService']=_0x5bf84e,z(this,'_unitInfo$',new _0x2c6b74(null)),z(this,_0x1e26d6(0x271),new _0x2f068e()),z(this,_0x1e26d6(0x136),this['_unitInfo$'][_0x1e26d6(0x26a)]()),z(this,_0x1e26d6(0x192),this[_0x1e26d6(0x271)][_0x1e26d6(0x26a)]());}['dispose'](){const _0x1ba959=_0x57ff19;super[_0x1ba959(0xd0)](),this[_0x1ba959(0x271)][_0x1ba959(0x352)](),this[_0x1ba959(0x17d)][_0x1ba959(0x352)]();}async[_0x57ff19(0x123)](_0x29320c,_0x514eee,_0x216a73,_0x1d6893){const _0x30079c=_0x57ff19;this[_0x30079c(0x17d)][_0x30079c(0x204)]({'unitId':_0x29320c,'type':_0x514eee,'subUnitId':_0x1d6893});let _0x292e37=null;switch(_0x514eee){case _0xc3375b[_0x30079c(0x13d)]:_0x292e37=await this['_snapshotService'][_0x30079c(0x1a4)](_0x29320c,_0x216a73,void 0x0,{'initialSubUnitId':_0x1d6893});break;case _0xc3375b[_0x30079c(0x189)]:_0x292e37=await this[_0x30079c(0xcc)][_0x30079c(0x1f8)](_0x29320c,_0x216a73);break;case _0xc3375b[_0x30079c(0x27a)]:_0x292e37=await this[_0x30079c(0xcc)][_0x30079c(0x19e)](_0x29320c,_0x216a73);break;case _0xc3375b[_0x30079c(0x32c)]:_0x292e37=await this['_snapshotService'][_0x30079c(0x200)](_0x29320c,_0x216a73);break;case _0xc3375b['UNIVER_BASE']:_0x292e37=await this[_0x30079c(0xcc)][_0x30079c(0x320)](_0x29320c,_0x216a73);break;case _0xc3375b[_0x30079c(0x2fd)]:_0x292e37=await this[_0x30079c(0xcc)][_0x30079c(0x2d6)](_0x29320c,_0x216a73);break;default:this[_0x30079c(0x1fd)][_0x30079c(0x20d)](_0x30079c(0x341),_0x30079c(0x32b));}return _0x292e37&&this[_0x30079c(0x271)]['next'](_0x292e37),_0x292e37;}async[_0x57ff19(0x29f)](_0x1fe6fe,_0x3d2b00,_0x2e39c3){const _0x11e534=_0x57ff19;var _0x92bf21;this['_unitInfo$'][_0x11e534(0x204)]({'unitId':_0x1fe6fe,'type':_0x3d2b00,'subUnitId':_0x2e39c3});let _0x2bf38e=0x0,_0x230133=await((_0x92bf21=this[_0x11e534(0x1f6)])==null?void 0x0:_0x92bf21[_0x11e534(0x117)](_0x1fe6fe));return _0x230133&&(_0x230133[_0x11e534(0x1a5)]||_0x230133[_0x11e534(0x290)]['length']!==0x0)&&(_0x2bf38e=_0x230133[_0x11e534(0xd4)]),_0x2bf38e===0x0&&this[_0x11e534(0x1fd)][_0x11e534(0x102)](_0x11e534(0x341),_0x11e534(0x303)),this[_0x11e534(0x123)](_0x1fe6fe,_0x3d2b00,_0x2bf38e,_0x2e39c3);}};Zn=H([V(0x0,_0xe5ab40),V(0x1,_0x3862a7(_0x337384)),V(0x2,_0x58c27a(U))],Zn);let Qn=class{constructor(_0x441c37,_0x3a51c0,_0x34a616){const _0x230c2d=_0x57ff19;this[_0x230c2d(0x2e4)]=_0x441c37,this[_0x230c2d(0x178)]=_0x3a51c0,this[_0x230c2d(0x305)]=_0x34a616,z(this,'_waitCount',0x0),z(this,_0x230c2d(0x37b),new _0x2f068e()),z(this,_0x230c2d(0x336),this['_change$']),z(this,_0x230c2d(0x2ef),new Map());}[_0x57ff19(0x241)](_0x246488){const _0x57eb87=_0x57ff19;this[_0x57eb87(0x17a)]=_0x246488,this['_change$'][_0x57eb87(0x204)](_0x246488);}[_0x57ff19(0x216)](_0x363b12,_0x125a53){const _0x363892=_0x57ff19;if(_0x125a53===_0x16019b[_0x363892(0x280)]){let _0x3670e8=new Image();return _0x3670e8[_0x363892(0x1cd)]=_0x363b12,_0x3670e8;}return this['_imageSourceCache'][_0x363892(0x29d)](_0x363b12);}['addImageSourceCache'](_0xe8d7be,_0x284f89,_0x2d315c){const _0x2ab732=_0x57ff19;_0x284f89!==_0x16019b[_0x2ab732(0x280)]&&_0x2d315c!=null&&this[_0x2ab732(0x2ef)]['set'](_0xe8d7be,_0x2d315c);}async[_0x57ff19(0x2b1)](_0x4a9c3f){const _0x38bf04=_0x57ff19;try{let _0x5e8ee4=this['_replaceFileID'](this[_0x38bf04(0x172)](),''+_0x4a9c3f),_0x33bfe3=(await this['_httpService'][_0x38bf04(0x29d)](_0x5e8ee4))[_0x38bf04(0x291)];if(_0x33bfe3[_0x38bf04(0x20d)]&&_0x33bfe3[_0x38bf04(0x20d)][_0x38bf04(0x22e)]===_0x5d8829['OK']){let _0x2a6899=_0x4d5d45(_0x33bfe3[_0x38bf04(0x231)],this[_0x38bf04(0x267)]());return Promise[_0x38bf04(0x1d8)](_0x2a6899);}return Promise[_0x38bf04(0x269)](_0x33bfe3[_0x38bf04(0x20d)]);}catch(_0x52593f){return Promise[_0x38bf04(0x269)](_0x52593f);}}async['saveImage'](_0x3435bc){const _0x119bff=_0x57ff19;let _0x18350e='';if(!_0x244e12[_0x119bff(0x2f1)](_0x3435bc['type']))return this[_0x119bff(0x167)](),Promise['reject'](Error(_0x409e72['ERROR_IMAGE_TYPE']));if(_0x3435bc['size']>_0x3d52da())return this[_0x119bff(0x167)](),Promise[_0x119bff(0x269)](Error(_0x409e72['ERROR_EXCEED_SIZE']));try{let _0x1c4f0c=new FormData();_0x1c4f0c['append'](_0x119bff(0x337),_0x3435bc);let _0x5eafc=this[_0x119bff(0x305)][_0x119bff(0xf1)](),_0x38dc95=_0x5eafc==null?void 0x0:_0x5eafc[_0x119bff(0x2d9)]();if(!_0x38dc95)throw Error('unitId\x20is\x20not\x20found');let _0x48c01d=this[_0x119bff(0x1b6)]()+_0x119bff(0x199)+_0x3435bc['size']['toString']()+_0x119bff(0xf7)+_0xb4aea2[_0x119bff(0x2fb)]+'&assign='+encodeURIComponent(_0x38dc95),_0x4b4aa1={'body':_0x1c4f0c},_0x2beb32=(await this['_httpService']['post'](_0x48c01d,_0x4b4aa1))['body'];if(typeof _0x2beb32[_0x119bff(0x2b4)]!=_0x119bff(0x11b))return this['_decreaseWaiting'](),Promise[_0x119bff(0x269)](Error(_0x409e72[_0x119bff(0x284)]));_0x18350e=_0x2beb32[_0x119bff(0x2b4)];}catch{return this[_0x119bff(0x167)](),Promise['reject'](Error(_0x409e72[_0x119bff(0x284)]));}return new Promise((_0x2d00e8,_0x3fced4)=>{let _0x459b4b=new FileReader();_0x459b4b['readAsDataURL'](_0x3435bc),_0x459b4b['onload']=_0xacc584=>{const _0x1db511=_0x39cf;var _0x1996c7;let _0x1ee125=(_0x1996c7=_0xacc584[_0x1db511(0x18e)])==null?void 0x0:_0x1996c7[_0x1db511(0x27e)];if(_0x1ee125==null){this['_decreaseWaiting'](),_0x3fced4(Error(_0x409e72[_0x1db511(0x284)]));return;}_0x2d00e8({'imageId':_0xa87a24(0x6),'imageSourceType':_0x16019b['UUID'],'source':_0x18350e,'base64Cache':_0x1ee125,'status':_0x409e72[_0x1db511(0x250)]}),this[_0x1db511(0x167)]();};});}[_0x57ff19(0x1b6)](){const _0x45b31f=_0x57ff19;let _0x499139=this[_0x45b31f(0x178)]['getConfig'](R);return(_0x499139==null?void 0x0:_0x499139['uploadFileServerUrl'])??'/universer-api/stream/file/upload';}[_0x57ff19(0x172)](){const _0x322139=_0x57ff19;let _0x4aac85=this['_configService']['getConfig'](R);return(_0x4aac85==null?void 0x0:_0x4aac85[_0x322139(0x18a)])??_0x322139(0x282);}[_0x57ff19(0x267)](){const _0x499fea=_0x57ff19;let _0x57526c=this[_0x499fea(0x178)]['getConfig'](R);return(_0x57526c==null?void 0x0:_0x57526c[_0x499fea(0x16b)])??location[_0x499fea(0x357)];}[_0x57ff19(0x2ba)](_0x276214,_0x1c8cc3){const _0x166269=_0x57ff19;return _0x276214[_0x166269(0xe6)]('{fileID}',_0x1c8cc3);}[_0x57ff19(0x167)](){const _0x274961=_0x57ff19;--this[_0x274961(0x17a)],this['_change$'][_0x274961(0x204)](this[_0x274961(0x17a)]);}};Qn=H([V(0x0,_0x3862a7(_0x41945f)),V(0x1,_0x37ec8b),V(0x2,_0x3862a7(_0x20c84a))],Qn);let $n=class{constructor(_0x4e5d6b,_0x21bdc5){const _0x101b15=_0x57ff19;this[_0x101b15(0x178)]=_0x4e5d6b,this[_0x101b15(0x1ae)]=_0x21bdc5;}[_0x57ff19(0x12f)](){const _0x1a720d=_0x57ff19;let _0x4cfc75=this[_0x1a720d(0x178)][_0x1a720d(0x2b8)](R);return(_0x4cfc75==null?void 0x0:_0x4cfc75['authzUrl'])??'/universer-api/authz';}async[_0x57ff19(0x2f5)](_0x35d974){const _0x1499c9=_0x57ff19;let _0x3b57e7=this[_0x1499c9(0x12f)]()+_0x1499c9(0x22a);return{'list':[{'title':_0x1499c9(0x14f),'mentions':(await this[_0x1499c9(0x1ae)][_0x1499c9(0x29d)](_0x3b57e7,{'params':{'objectID':_0x35d974['unitId'],'unitID':_0x35d974[_0x1499c9(0xf8)]}}))['body']['collaborators'][_0x1499c9(0xff)](_0x11098a=>({'objectId':_0x11098a['id'],'name':_0x11098a[_0x1499c9(0x276)][_0x1499c9(0x113)],'metadata':{'icon':_0x11098a[_0x1499c9(0x276)][_0x1499c9(0x25f)]},'label':_0x11098a[_0x1499c9(0x276)][_0x1499c9(0x113)],'objectType':_0x51bdc8[_0x1499c9(0x356)]})),'metadata':{},'type':_0x51bdc8[_0x1499c9(0x356)]}]};}};$n=H([V(0x0,_0x3862a7(_0x37ec8b)),V(0x1,_0x3862a7(_0x41945f))],$n);let er=class extends _0x41c222{constructor(_0x408d4a,_0x1775c1,_0x429a83,_0x48c29b,_0x11bf7d,_0x4685cd){const _0x16ef1b=_0x57ff19;super(),this[_0x16ef1b(0x28a)]=_0x408d4a,this[_0x16ef1b(0x305)]=_0x1775c1,this[_0x16ef1b(0x177)]=_0x429a83,this['_authzIoService']=_0x48c29b,this['_collaborationSessionService']=_0x11bf7d,this['_collaborationUIEventService']=_0x4685cd,z(this,_0x16ef1b(0x379),new Set()),this[_0x16ef1b(0x1ba)](()=>this['_closedUnits']['clear']()),this[_0x16ef1b(0x1ba)](tr(this[_0x16ef1b(0x305)])[_0x16ef1b(0x143)](({unitId:_0x310322})=>this[_0x16ef1b(0x379)]['delete'](_0x310322))),this['_initUnitPermissionChange'](),this['_initCloseConn'](),[_0xc3375b['UNIVER_DOC'],_0xc3375b[_0x16ef1b(0x27a)],_0xc3375b[_0x16ef1b(0xd9)],_0xc3375b[_0x16ef1b(0x32c)]][_0x16ef1b(0x2db)](_0x5cbb41=>{const _0x451a26=_0x16ef1b;this[_0x451a26(0x1ba)](this[_0x451a26(0x305)]['getTypeOfUnitDisposed$'](_0x5cbb41)[_0x451a26(0x143)](_0x1759ff=>{const _0x312ae7=_0x451a26;this[_0x312ae7(0x379)]['add'](_0x1759ff[_0x312ae7(0x2d9)]()),this[_0x312ae7(0x28a)]['get'](_0x4df243)['clearUnit'](_0x1759ff[_0x312ae7(0x2d9)]());}));});}[_0x57ff19(0x381)](){const _0x26b2b6=_0x57ff19;let _0x52427b=async(_0x342f10,_0x5d4415)=>{const _0x127936=_0x39cf;let _0x3b68f1=await this[_0x127936(0x30c)][_0x127936(0x147)](_0x342f10);this[_0x127936(0x14e)]||this[_0x127936(0x379)][_0x127936(0x1bf)](_0x342f10)||!this[_0x127936(0x305)][_0x127936(0x2be)](_0x342f10)||_0x3b68f1[_0x127936(0xd7)][_0x127936(0x10e)](_0x2f6e63(_0xacc74f=>_0xacc74f[_0x127936(0xe9)]===_0x44b964[_0x127936(0x1f4)]),_0x4e326c(_0x5e7889(this['dispose$'],this[_0x127936(0x305)][_0x127936(0x222)][_0x127936(0x10e)](_0x2f6e63(_0x25d8e2=>_0x25d8e2[_0x127936(0x2d9)]()===_0x342f10)))))[_0x127936(0x143)](_0x32a813=>{const _0x4ddf08=_0x127936;let {reason:_0x18ba4f}=_0x32a813['data'];this[_0x4ddf08(0x134)][_0x4ddf08(0x325)]({'id':_0x4ddf08(0x24b),'data':_0x18ba4f}),this['_closedUnits']['add'](_0x342f10),this[_0x4ddf08(0x28a)]['get'](_0x4df243)[_0x4ddf08(0x29e)](_0x342f10);let _0x1ac4de=nr(_0x5d4415);_0x1ac4de!=null&&this['_updateUnitPermissionPoint'](_0x342f10,_0x1ac4de,_0x3a288d[_0x4ddf08(0x323)],!0x1),this[_0x4ddf08(0x30c)][_0x4ddf08(0x2ee)](_0x342f10);});};tr(this['_univerInstanceService'])[_0x26b2b6(0x10e)](_0x2f6e63(({unitId:_0x15805f})=>!_0x181386(_0x15805f)),_0x4e326c(this['dispose$']))[_0x26b2b6(0x143)](({type:_0x3a9ce4,unitId:_0x391ecb})=>{const _0x3801eb=_0x26b2b6;_0x52427b(_0x391ecb,_0x3a9ce4)['catch'](_0x55ef99=>this['_injector'][_0x3801eb(0x29d)](_0xe5ab40)[_0x3801eb(0x20d)](_0x55ef99));});}[_0x57ff19(0x15c)](){const _0x4a1f88=_0x57ff19;let _0x4b6a72=async(_0x5596bb,_0x370aed)=>{const _0x3392d0=_0x39cf;let _0x8d61da=await this[_0x3392d0(0x30c)][_0x3392d0(0x147)](_0x5596bb);if(!(this[_0x3392d0(0x14e)]||this[_0x3392d0(0x379)][_0x3392d0(0x1bf)](_0x5596bb)||!this[_0x3392d0(0x305)]['getUnit'](_0x5596bb))){if(_0x370aed===_0xc3375b[_0x3392d0(0x13d)]){let _0xb7359a=this[_0x3392d0(0x28a)][_0x3392d0(0x29d)](_0x16b792);await _0xb7359a['initWorkbookPermissionChange'](_0x5596bb),_0x8d61da['event$'][_0x3392d0(0x10e)](_0x2f6e63(_0x939a62=>_0x939a62[_0x3392d0(0xe9)]===_0x44b964['UPDATE_PERMISSION_OBJ']),_0x4e326c(_0x5e7889(this[_0x3392d0(0x111)],_0x8d61da[_0x3392d0(0xd7)][_0x3392d0(0x10e)](_0x2f6e63(_0xdbe15b=>_0xdbe15b[_0x3392d0(0xe9)]===_0x44b964[_0x3392d0(0x1f4)])),this[_0x3392d0(0x305)][_0x3392d0(0x222)][_0x3392d0(0x10e)](_0x2f6e63(_0x3577fd=>_0x3577fd[_0x3392d0(0x2d9)]()===_0x5596bb)))))[_0x3392d0(0x143)](_0x1ee337=>{const _0x23e495=_0x3392d0;let {objectId:_0x4a6ecc}=_0x1ee337[_0x23e495(0x1ab)];_0x4a6ecc===_0x5596bb?_0xb7359a['initWorkbookPermissionChange'](_0x5596bb):_0xb7359a['refreshPermission'](_0x5596bb,_0x4a6ecc);});return;}_0x8d61da[_0x3392d0(0xd7)][_0x3392d0(0x10e)](_0x2f6e63(_0x58e301=>_0x58e301[_0x3392d0(0xe9)]===_0x44b964['UPDATE_PERMISSION_OBJ']),_0x4e326c(_0x5e7889(this[_0x3392d0(0x111)],_0x8d61da['event$'][_0x3392d0(0x10e)](_0x2f6e63(_0x268bee=>_0x268bee['eventID']===_0x44b964[_0x3392d0(0x1f4)])),this[_0x3392d0(0x305)][_0x3392d0(0x222)][_0x3392d0(0x10e)](_0x2f6e63(_0x87b79a=>_0x87b79a[_0x3392d0(0x2d9)]()===_0x5596bb)))))[_0x3392d0(0x143)](()=>{const _0x381800=_0x3392d0;this[_0x381800(0xf2)](_0x5596bb,_0x370aed)[_0x381800(0x24f)](_0x373b9d=>this[_0x381800(0x28a)][_0x381800(0x29d)](_0xe5ab40)[_0x381800(0x20d)](_0x373b9d));}),await this['_refreshUnitPermission'](_0x5596bb,_0x370aed);}};tr(this[_0x4a1f88(0x305)])[_0x4a1f88(0x10e)](_0x2f6e63(({unitId:_0x34abba})=>!_0x181386(_0x34abba)),_0x4e326c(this[_0x4a1f88(0x111)]))[_0x4a1f88(0x143)](({type:_0x4f22b3,unitId:_0x4e4a73})=>{const _0x1a9aa4=_0x4a1f88;_0x4b6a72(_0x4e4a73,_0x4f22b3)['catch'](_0x5486d2=>this[_0x1a9aa4(0x28a)]['get'](_0xe5ab40)[_0x1a9aa4(0x20d)](_0x5486d2));});}async[_0x57ff19(0xf2)](_0x88cd74,_0x1e0d7d){const _0x124b52=_0x57ff19;let _0x51d288=nr(_0x1e0d7d);if(_0x51d288==null)return;let _0x43df35=this[_0x124b52(0x28a)][_0x124b52(0x29d)](_0x4df243);if(_0x43df35[_0x124b52(0x131)]({'unitId':_0x88cd74,'objectId':_0x88cd74,'objectType':_0x51d288})){await _0x43df35[_0x124b52(0x11f)](_0x88cd74);return;}let _0x1728eb=this[_0x124b52(0x210)](_0x88cd74,_0x51d288);if(!_0x1728eb[_0x124b52(0x2e9)])return;let _0x40b0c8=await this[_0x124b52(0x208)][_0x124b52(0x23b)]({'objectID':_0x88cd74,'objectType':_0x51d288,'unitID':_0x88cd74,'actions':_0x1728eb['map'](({action:_0x382126})=>_0x382126)});this[_0x124b52(0x14e)]||this['_closedUnits'][_0x124b52(0x1bf)](_0x88cd74)||!this[_0x124b52(0x305)][_0x124b52(0x2be)](_0x88cd74)||_0x40b0c8[_0x124b52(0x2db)](_0x25c4e3=>{const _0xd68f76=_0x124b52;let _0x5721b7=_0x25c4e3[_0xd68f76(0x17e)],_0x46238a=_0x25c4e3[_0xd68f76(0x23b)];_0x5721b7!=null&&_0x46238a!=null&&_0x1728eb[_0xd68f76(0x207)](_0x4c2a8f=>_0x4c2a8f[_0xd68f76(0x17e)]===_0x5721b7)[_0xd68f76(0x2db)](_0x32f43a=>this['_permissionService'][_0xd68f76(0x302)](_0x32f43a['id'],_0x46238a));});}['_getUnitPermissionPoints'](_0x23afaf,_0x564cf3){const _0x327ca2=_0x57ff19;let _0x131cdb=[];return this['_permissionService'][_0x327ca2(0x20b)]()[_0x327ca2(0x2db)]((_0x3faf5e,_0x54f5ab)=>{const _0x4a409e=_0x327ca2;_0x3faf5e['subscribe'](_0xf5ace6=>{const _0x4acb38=_0x39cf;_0xf5ace6[_0x4acb38(0x1a2)]===_0x564cf3&&_0x4acb38(0xf8)in _0xf5ace6&&_0xf5ace6[_0x4acb38(0xf8)]===_0x23afaf&&(!(_0x4acb38(0x2d3)in _0xf5ace6)||_0xf5ace6[_0x4acb38(0x2d3)]===_0x23afaf)&&_0x131cdb[_0x4acb38(0x28d)]({'id':_0x54f5ab,'action':_0xf5ace6['subType']});})[_0x4a409e(0x34d)]();}),_0x131cdb;}[_0x57ff19(0x159)](_0x5d4afb,_0x3e092f,_0x40fe10,_0x4411d9){const _0x5c5436=_0x57ff19;this[_0x5c5436(0x177)][_0x5c5436(0x20b)]()[_0x5c5436(0x2db)]((_0x15135d,_0x4ed412)=>{const _0xfb4705=_0x5c5436;let _0x28e1cb=!0x1;_0x15135d['subscribe'](_0x61dd5b=>{const _0x3894b5=_0x39cf;_0x28e1cb=_0x61dd5b['type']===_0x3e092f&&_0x61dd5b['subType']===_0x40fe10&&_0x3894b5(0xf8)in _0x61dd5b&&_0x61dd5b[_0x3894b5(0xf8)]===_0x5d4afb&&(!(_0x3894b5(0x2d3)in _0x61dd5b)||_0x61dd5b[_0x3894b5(0x2d3)]===_0x5d4afb);})[_0xfb4705(0x34d)](),_0x28e1cb&&this[_0xfb4705(0x177)][_0xfb4705(0x302)](_0x4ed412,_0x4411d9);});}};er=H([V(0x0,_0x3862a7(_0x1e387a)),V(0x1,_0x20c84a),V(0x2,_0x3d554c),V(0x3,_0x5aecc0),V(0x4,_0x3862a7(In)),V(0x5,_0x3862a7(B))],er);function tr(_0x395dbf){const _0x243d0a=_0x57ff19;return _0x5e7889(...[_0xc3375b[_0x243d0a(0x13d)],_0xc3375b[_0x243d0a(0x189)],_0xc3375b[_0x243d0a(0x27a)],_0xc3375b[_0x243d0a(0x32c)],_0xc3375b[_0x243d0a(0xd9)]][_0x243d0a(0xff)](_0x382be4=>_0x395dbf[_0x243d0a(0xe2)](_0x382be4)[_0x243d0a(0x10e)](_0x2aece9(_0x590e0d=>({'type':_0x382be4,'unitId':_0x590e0d['unit'][_0x243d0a(0x2d9)]()})))));}function nr(_0x43b4f5){const _0x43f9b5=_0x57ff19;switch(_0x43b4f5){case _0xc3375b['UNIVER_SHEET']:return _0x5f1d6f[_0x43f9b5(0x289)];case _0xc3375b['UNIVER_DOC']:return _0x5f1d6f['Document'];case _0xc3375b[_0x43f9b5(0x27a)]:return _0x5f1d6f['Slide'];case _0xc3375b[_0x43f9b5(0x32c)]:return _0x5f1d6f['Board'];case _0xc3375b['UNIVER_BASE']:return _0x5f1d6f['Base'];default:return;}}let rr=class{constructor(_0x3ec19f,_0xa15278){const _0x260237=_0x57ff19;this[_0x260237(0x178)]=_0x3ec19f,this[_0x260237(0x2e4)]=_0xa15278;}async['getUnitOnRev'](_0x269450,_0x40ffc4){const _0x5cd3d6=_0x57ff19;var _0x52edab;let {unitID:_0xdf3fd5,type:_0x48632f,revision:_0x31bfbe=0x0}=_0x40ffc4,_0x2aaa09=this[_0x5cd3d6(0x1f3)]()+'/'+_0x48632f+_0x5cd3d6(0x261)+_0xdf3fd5+_0x5cd3d6(0x32d)+_0x31bfbe,_0x22b5cd=(await this[_0x5cd3d6(0x2e4)][_0x5cd3d6(0x29d)](_0x2aaa09))['body'],_0x22aceb=(_0x52edab=_0x22b5cd[_0x5cd3d6(0x315)])==null?void 0x0:_0x52edab[_0x5cd3d6(0x229)];if(_0x22aceb){let _0x3b02df=_0x22aceb==null?void 0x0:_0x22aceb[_0x5cd3d6(0x311)];_0x22aceb[_0x5cd3d6(0x311)]=_0x83560d[_0x5cd3d6(0xcb)](_0x5634e2(_0x3b02df)),Object[_0x5cd3d6(0x34c)](_0x22aceb['sheets'])[_0x5cd3d6(0x2db)](([,_0x3cc1fc])=>{const _0x2264f5=_0x5cd3d6;let _0x202b56=_0x3cc1fc[_0x2264f5(0x311)];_0x3cc1fc[_0x2264f5(0x311)]=_0x83560d[_0x2264f5(0xcb)](_0x5634e2(_0x202b56));});}return _0x22b5cd;}async[_0x57ff19(0x1b9)](_0x46b25a,_0x9fe41a){const _0x56f5d6=_0x57ff19;let {unitID:_0x19a901,type:_0x5312a7,blockID:_0x49d9c2}=_0x9fe41a,_0x1d26b8=this[_0x56f5d6(0x25e)]()+'/'+_0x5312a7+_0x56f5d6(0x261)+_0x19a901+_0x56f5d6(0x23e)+_0x49d9c2;return(await this['_httpService'][_0x56f5d6(0x29d)](_0x1d26b8))['body'];}async[_0x57ff19(0x130)](_0x4c72f5,_0x91af4f){const _0xc3482=_0x57ff19;let {unitID:_0x4bdc1,type:_0x59df05,blockID:_0x275d54}=_0x91af4f,_0x429d84=this[_0xc3482(0x25e)]()+_0xc3482(0x23e)+_0x59df05+_0xc3482(0x261)+_0x4bdc1+_0xc3482(0x23e)+_0x275d54;return(await this[_0xc3482(0x2e4)][_0xc3482(0x29d)](_0x429d84))['body'];}async[_0x57ff19(0x1d9)](_0x306687,_0x3963fc){const _0x32099b=_0x57ff19;let {unitID:_0x32a34d,type:_0x6fef78,from:_0xd60f96,to:_0x1b0ad9}=_0x3963fc,_0x752a84=this[_0x32099b(0x25e)]()+'/'+_0x6fef78+'/unit/'+_0x32a34d+_0x32099b(0x175)+_0xd60f96+_0x32099b(0x1ce)+_0x1b0ad9;return(await this[_0x32099b(0x2e4)]['get'](_0x752a84))[_0x32099b(0x291)];}[_0x57ff19(0x1f3)](){const _0x31691d=_0x57ff19;return this[_0x31691d(0x178)][_0x31691d(0x2b8)](_0x31691d(0x221))??this[_0x31691d(0x25e)]();}[_0x57ff19(0x25e)](){const _0x395a85=_0x57ff19;let _0x26d234=this[_0x395a85(0x178)][_0x395a85(0x2b8)](R);return(_0x26d234==null?void 0x0:_0x26d234[_0x395a85(0x28c)])??_0x395a85(0xec);}async['getResourcesRequest'](_0x31dcc4,_0x4a116c){const _0x4848b3=_0x57ff19;let _0x28fdcc=_0x4848b3(0x15b)+_0x4a116c[_0x4848b3(0x1a2)]+_0x4848b3(0x261)+_0x4a116c[_0x4848b3(0x2b3)]+_0x4848b3(0x101);return(await this[_0x4848b3(0x2e4)][_0x4848b3(0x29d)](_0x28fdcc,{'params':{'resourceId':JSON['stringify'](_0x4a116c[_0x4848b3(0x274)])}}))[_0x4848b3(0x291)];}[_0x57ff19(0x1dd)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x57ff19(0x299)](){const _0x2b2190=_0x57ff19;throw Error(_0x2b2190(0x1b2));}[_0x57ff19(0x248)](){const _0x50bd94=_0x57ff19;throw Error(_0x50bd94(0x1b2));}['saveChangeset'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x57ff19(0x17c)](){const _0x4682b6=_0x57ff19;throw Error(_0x4682b6(0x1b2));}[_0x57ff19(0x373)](){const _0x396ce4=_0x57ff19;throw Error(_0x396ce4(0x1b2));}};rr=H([V(0x0,_0x37ec8b),V(0x1,_0x3862a7(_0x41945f))],rr);let ir=class extends _0x2b50bd{constructor(_0x14e175,_0x50dcab,_0xcad4af,_0x307475,_0x104a24,_0x2ce42e){const _0x3f3982=_0x57ff19;super(_0x14e175,_0x50dcab,_0xcad4af,_0x307475),this[_0x3f3982(0xc9)]=_0x104a24,this[_0x3f3982(0x1fd)]=_0x2ce42e;}[_0x57ff19(0x37c)](_0x174f8e,_0x3c244a){const _0x146c38=_0x57ff19;let _0x59d2e9=this[_0x146c38(0x2d8)](_0x174f8e);if(_0x59d2e9)try{let _0x4cf553=this[_0x146c38(0x2a7)](_0x59d2e9,_0x3c244a);this[_0x146c38(0x13c)](_0x174f8e,_0x4cf553);}catch(_0x1cc336){this['_logService'][_0x146c38(0x20d)](_0x146c38(0x14c),_0x1cc336),this[_0x146c38(0x152)](_0x174f8e);}let _0x5f0c1b=this[_0x146c38(0x2de)](_0x174f8e);if(_0x5f0c1b)try{let _0xb873ed=this[_0x146c38(0x2a7)](_0x5f0c1b,_0x3c244a);this[_0x146c38(0x1e5)](_0x174f8e,_0xb873ed);}catch(_0x5ee44c){this['_logService'][_0x146c38(0x20d)](_0x5ee44c),this[_0x146c38(0x1e7)](_0x174f8e);}}[_0x57ff19(0x152)](_0x221154){const _0x33a4c8=_0x57ff19;let _0x33b054=this[_0x33a4c8(0x2d8)](_0x221154);_0x33b054&&(_0x33b054[_0x33a4c8(0x2e9)]=0x0,this[_0x33a4c8(0xcf)]());}[_0x57ff19(0x1e7)](_0xcc5f8e){const _0x42dd84=_0x57ff19;let _0x497ec8=this['_getRedoStack'](_0xcc5f8e);_0x497ec8&&(_0x497ec8[_0x42dd84(0x2e9)]=0x0,this[_0x42dd84(0xcf)]());}['_substituteUndoStack'](_0x23f08f,_0x429bfb){const _0x546a62=_0x57ff19;this['_undoStacks'][_0x546a62(0xed)](_0x23f08f,_0x429bfb),this[_0x546a62(0xcf)]();}[_0x57ff19(0x1e5)](_0x184d05,_0x50883e){const _0x4c9d3b=_0x57ff19;this[_0x4c9d3b(0x1c1)][_0x4c9d3b(0xed)](_0x184d05,_0x50883e),this['_updateStatus']();}['_transformStack'](_0x4c8ac2,_0x4c46b7){const _0x4efb10=_0x57ff19;let _0x2742fa=[],_0x2dc6aa=_0x4c46b7,_0x5d093e=_0x4c46b7;for(let _0x3c45cf=_0x4c8ac2[_0x4efb10(0x2e9)]-0x1;_0x3c45cf>=0x0;_0x3c45cf--){let {unitID:_0x518762,undoMutations:_0xd441,redoMutations:_0x2d3bf6}=_0x4c8ac2[_0x3c45cf],_0x85669b=this['_transformService'][_0x4efb10(0x1ee)](_0x2dc6aa,_0xd441),_0x398598=this[_0x4efb10(0xc9)]['transformMutationsWithChangeset'](_0x5d093e,_0x2d3bf6);if(_0x1eec6a(_0x85669b)||_0x1eec6a(_0x398598)){this['_logService'][_0x4efb10(0x20d)](_0x4efb10(0x14c),'transformStack\x20failed!',_0x85669b,_0x398598);break;}_0x2dc6aa=_0x85669b[_0x4efb10(0x1a8)],_0x5d093e=_0x398598['c1Prime'],_0x2742fa[_0x4efb10(0x28d)]({'unitID':_0x518762,'undoMutations':_0x85669b[_0x4efb10(0x316)],'redoMutations':_0x398598[_0x4efb10(0x316)]});}return _0x2742fa[_0x4efb10(0x1e3)]();}};ir=H([V(0x0,_0x20c84a),V(0x1,_0x3ad6c1),V(0x2,_0x567531),V(0x3,_0x37ec8b),V(0x4,_0x16e76a),V(0x5,_0xe5ab40)],ir);let ar=class extends _0x161732{constructor(_0x309090=gt,_0xe092a,_0x2e994d,_0x3875d4){const _0x235637=_0x57ff19;super(),this[_0x235637(0x295)]=_0x309090,this[_0x235637(0x1fd)]=_0xe092a,this[_0x235637(0x28a)]=_0x2e994d,this['_configService']=_0x3875d4;let {..._0x319a90}=_0xf2a441({},gt,this['_config']);if(!_0x319a90[_0x235637(0x125)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x319a90,this[_0x235637(0x178)]['setConfig'](R,_0x319a90);}[_0x57ff19(0x30f)](){const _0x4bb3d3=_0x57ff19;this[_0x4bb3d3(0x178)][_0x4bb3d3(0x23c)](_0x5587f0,this['_config'][_0x4bb3d3(0x153)]??[]),this[_0x4bb3d3(0x35a)](),this[_0x4bb3d3(0x308)]();}[_0x57ff19(0x35a)](){const _0x2b5c89=_0x57ff19;var _0x1cd448,_0x56bced;this[_0x2b5c89(0x28a)][_0x2b5c89(0x1bf)](_0x2ebda0)&&this[_0x2b5c89(0x1fd)]['error'](_0x2b5c89(0x2ad),_0x2b5c89(0x1fe));let _0x55202f=_0x5d5164([[_0x2ebda0,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this[_0x2b5c89(0x295)]['socketService']}],[_0x3e7383,{'useClass':rr}],[_0x5aecc0,{'useClass':Gn}],[_0x1fcb29,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x5c2e69,{'useClass':$n}],[Ln],[Bn]],(_0x1cd448=this['_config'])==null?void 0x0:_0x1cd448[_0x2b5c89(0x334)]);if(!((_0x56bced=this[_0x2b5c89(0x295)])!=null&&_0x56bced[_0x2b5c89(0x2ab)])){let _0x122711=_0x55202f[_0x2b5c89(0x360)](([_0x5c3428])=>_0x5c3428===W);_0x122711!==-0x1&&_0x55202f[_0x2b5c89(0xfb)](_0x122711,0x1);}_0x18422a(this[_0x2b5c89(0x28a)],_0x55202f);}[_0x57ff19(0x308)](){const _0x6ae79=_0x57ff19;var _0x5a8636,_0x196eec;if(this[_0x6ae79(0x28a)]['get'](_0x41945f)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x536288({'maxParallel':0x6})}),!((_0x5a8636=this[_0x6ae79(0x295)])!=null&&_0x5a8636[_0x6ae79(0x1ed)])){var _0xb22a9e;(_0xb22a9e=this[_0x6ae79(0x28a)][_0x6ae79(0x29d)](U,_0x197fa9[_0x6ae79(0x104)]))==null||_0xb22a9e[_0x6ae79(0x150)]();}(_0x196eec=this['_config'])!=null&&_0x196eec[_0x6ae79(0x342)]&&_0x5dfbcb(this[_0x6ae79(0x28a)],[[Wn]]),_0x5dfbcb(this[_0x6ae79(0x28a)],[[Xn],[Ln],[er]]);}};z(ar,_0x57ff19(0x34b),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),z(ar,_0x57ff19(0x23a),Rn),z(ar,_0x57ff19(0x106),zn),ar=H([_0x721fc5(_0x59814c,_0x59c27a,_0x2136e6),V(0x1,_0xe5ab40),V(0x2,_0x3862a7(_0x1e387a)),V(0x3,_0x37ec8b)],ar);export{Gn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Sn as BaseCollaborationEntity,Tn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Hn as CollaborationAttachmentIoService,Ln as CollaborationController,$ as CollaborationEntity,Qn as CollaborationImageIoService,Gt as CollaborationSession,In as CollaborationSessionService,Mn as CollaborationSocketService,_n as CollaborationStatus,At as CollaborationUIEventId,B as CollaborationUIEventService,ir as CollaborativeUndoRedoService,jt as CommentService,X as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Tt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Zn as DataLoaderService,xn as DocCollaborationEntity,Q as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Vn as IAttachmentIoService,Nn as ICollaborationClientAdapterService,An as ICollaborationSocketService,U as ILocalCacheService,Dn as INetworkConditionService,W as ISingleActiveUnitService,Ct as LOCAL_CACHE_INTERVAL,St as LOCAL_CACHE_INTERVAL_KEY,Mt as MemberService,$n as MentionIoHttpService,Z as OfflineState,En as PdfCollaborationEntity,q as PendingState,wt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,xt as RETRY_CONNECTING_MAX_COUNT_KEY,Ut as SessionStatus,Cn as SheetCollaborationEntity,Jt as SheetTransformSelectionsService,wn as SlideCollaborationEntity,rr as SnapshotServerOverHTTPService,K as SyncedState,Yt as UnitStatus,ar as UniverCollaborationClientPlugin,Pn as createUniverCollaborationAdapter,On as deserializeToCombResponse,Kt as getLocalCacheKey,kn as serializeCombRequest};
1
+ const _0x19811e=_0x32e6;function _0x32e6(_0x26eaf0,_0x2a296f){_0x26eaf0=_0x26eaf0-0x121;const _0x1be8b=_0x1be8();let _0x32e66d=_0x1be8b[_0x26eaf0];return _0x32e66d;}(function(_0x31aa24,_0x21c01b){const _0x34314a=_0x32e6,_0x4b4dca=_0x31aa24();while(!![]){try{const _0x5c1a63=-parseInt(_0x34314a(0x345))/0x1*(parseInt(_0x34314a(0x1d7))/0x2)+parseInt(_0x34314a(0x3c8))/0x3*(parseInt(_0x34314a(0x23d))/0x4)+-parseInt(_0x34314a(0x2aa))/0x5+-parseInt(_0x34314a(0x274))/0x6+-parseInt(_0x34314a(0x306))/0x7*(-parseInt(_0x34314a(0x3bb))/0x8)+parseInt(_0x34314a(0x212))/0x9+-parseInt(_0x34314a(0x15b))/0xa*(-parseInt(_0x34314a(0x24d))/0xb);if(_0x5c1a63===_0x21c01b)break;else _0x4b4dca['push'](_0x4b4dca['shift']());}catch(_0x1d06c8){_0x4b4dca['push'](_0x4b4dca['shift']());}}}(_0x1be8,0xb99b8));import{CollaborationEvent as _0x27a7e8,CompressMutationService as _0x3e6ee0,EmptyMutationInfo as _0xa29bbd,ISnapshotServerService as _0x14257b,ITransformService as _0x435fb7,RevisionService as _0x4e5cfb,SnapshotService as _0x2367e2,UniverCollaborationPlugin as _0xe2a840,b64DecodeUnicode as _0x4ce680,isTransformChangesetsSuccess as _0x3c50a8,isTransformMutationsWithChangesetFailure as _0x4532f4,isTransformMutationsWithChangesetSuccess as _0x13dcd7,mapDocumentTypeToUniverInstanceType as _0x1b1539,parseChangesetToProtocol as _0x3ec998,parseProtocolChangeset as _0x52ab46,textEncoder as _0xa79221,uuidv4 as _0x640bce}from'@univerjs-pro/collaboration';import{CommandType as _0x40fa30,DependentOn as _0x22f4eb,Disposable as _0x3d72df,DisposableCollection as _0x49b66f,IAuthzIoService as _0x3a226b,ICommandService as _0xef393c,IConfigService as _0x2477d9,IContextService as _0x1ac843,IImageIoService as _0x393423,ILogService as _0x1ba700,IMentionIOService as _0x42b5e6,IPermissionService as _0x2197a8,IUndoRedoService as _0x3d966a,IUniverInstanceService as _0x4f5fa8,ImageSourceType as _0x19206b,ImageUploadStatusType as _0xe8fff7,Inject as _0x480e6d,Injector as _0x5a91fd,JSONX as _0x26d762,LocalUndoRedoService as _0x1720a8,LocaleService as _0x1e8fb8,MentionType as _0x2cf8e7,OBJECT_PERMISSION_CONFIG_KEY as _0x1e8245,ObjectPermissionService as _0x38d5f0,Optional as _0x1e59a5,Plugin as _0x370b6f,Quantity as _0x126bf3,Rectangle as _0x209662,RxDisposable as _0x39685b,Tools as _0x41c835,UniverInstanceType as _0x5d23e3,UserManagerService as _0x3e2728,Workbook as _0x37c076,createIdentifier as _0x538219,generateRandomId as _0x5f3466,isInternalEditorID as _0x5a7193,merge as _0x3d5516,mergeOverrideWithDependencies as _0x3b2c51,registerDependencies as _0x1bacd8,resolveWithBasePath as _0x26be64,sequenceExecute as _0x1cdaf4,toDisposable as _0x215dfb,touchDependencies as _0x3d1e12}from'@univerjs/core';import{DocStateChangeManagerService as _0x17b259,RichTextEditingMutation as _0x3a809f}from'@univerjs/docs';import{InsertSheetMutation as _0x560f34,SetSelectionsOperation as _0x4a8a0d,SheetPermissionInitController as _0x56ae16,SheetsSelectionsService as _0x2a7649,WorkbookEditablePermission as _0x404767}from'@univerjs/sheets';import{BehaviorSubject as _0x5d64e7,ReplaySubject as _0x584d6d,Subject as _0x33eafc,concatMap as _0x344f28,firstValueFrom as _0x1773f3,map as _0x5f1f30,merge as _0x5e3e6a,of as _0x5b3fe9,shareReplay as _0x34e70e,take as _0x5c55cb,takeUntil as _0x1b033d}from'rxjs';import{CmdRspCode as _0x37b9b2,CombCmd as _0x3b5ebc,ErrorCode as _0x21e177,FileSource as _0x4a74cc,UnitAction as _0x1f5848,UnitObject as _0x5e7d94}from'@univerjs/protocol';import{ITelemetryService as _0x3e86e2}from'@univerjs/telemetry';import{delay as _0x1ebfc0,filter as _0xae526b,map as _0x49f6f7,take as _0x1c88c9,takeUntil as _0x5e490d}from'rxjs/operators';import{AddSlidePageMutation as _0x253f54,EnsureSlideMasterPageMutation as _0x45480a,MoveSlidePageMutation as _0x1aaa8a,RemoveSlidePageMutation as _0x84ee02}from'@univerjs-pro/slides';import{HTTPRequest as _0x4c2e8f,HTTPService as _0x4288a3,ISocketService as _0xd03cee,MergeInterceptorFactory as _0x49dd8f,ThresholdInterceptorFactory as _0x4967eb,UniverNetworkPlugin as _0xae98f7}from'@univerjs/network';import{UniverLicensePlugin as _0xb82aa,getGlobalObject as _0x2312a4}from'@univerjs-pro/license';import{cbc as _0x255255}from'@noble/ciphers/aes.js';import{concatBytes as _0x3a4768,randomBytes as _0x439cec,utf8ToBytes as _0x383466}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x595060,getDrawingImageAllowSize as _0x5a7afa}from'@univerjs/drawing';const R='collaboration-client.config',gt={},_t=_0x19811e(0x20a),vt=_0x19811e(0x122),yt='HEARTBEAT_INTERVAL',bt=_0x19811e(0x2ae),xt=_0x19811e(0x250),St='LOCAL_CACHE_INTERVAL',Ct=0x3e8,wt=_0x19811e(0x364),Tt=_0x19811e(0x322);function Et(_0x1777db){const _0x3642ab=_0x19811e;return JSON['stringify'](_0x1777db)[_0x3642ab(0x2ab)];}function Dt(_0x11b744){'@babel/helpers - typeof';const _0x2fcc36=_0x19811e;return Dt=typeof Symbol==_0x2fcc36(0x25a)&&typeof Symbol[_0x2fcc36(0x2e3)]==_0x2fcc36(0x35b)?function(_0x1ec250){return typeof _0x1ec250;}:function(_0x1149a5){const _0x1687f8=_0x2fcc36;return _0x1149a5&&typeof Symbol==_0x1687f8(0x25a)&&_0x1149a5[_0x1687f8(0x1c2)]===Symbol&&_0x1149a5!==Symbol[_0x1687f8(0x201)]?_0x1687f8(0x35b):typeof _0x1149a5;},Dt(_0x11b744);}function Ot(_0x966924,_0xed6dc8){const _0x10cde7=_0x19811e;if(Dt(_0x966924)!=_0x10cde7(0x133)||!_0x966924)return _0x966924;var _0x4a2d1b=_0x966924[Symbol[_0x10cde7(0x229)]];if(_0x4a2d1b!==void 0x0){var _0x322b72=_0x4a2d1b[_0x10cde7(0x167)](_0x966924,_0xed6dc8||'default');if(Dt(_0x322b72)!=_0x10cde7(0x133))return _0x322b72;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xed6dc8===_0x10cde7(0x2f5)?String:Number)(_0x966924);}function kt(_0x50741b){const _0x45d9d9=_0x19811e;var _0x599a39=Ot(_0x50741b,_0x45d9d9(0x2f5));return Dt(_0x599a39)==_0x45d9d9(0x35b)?_0x599a39:_0x599a39+'';}function z(_0x43aa07,_0x5949e0,_0x587f9e){const _0x27e020=_0x19811e;return(_0x5949e0=kt(_0x5949e0))in _0x43aa07?Object[_0x27e020(0x20e)](_0x43aa07,_0x5949e0,{'value':_0x587f9e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43aa07[_0x5949e0]=_0x587f9e,_0x43aa07;}let At=function(_0x6257c5){const _0x14f5de=_0x19811e;return _0x6257c5[_0x14f5de(0x190)]='OTHER_CLIENT_EDITING',_0x6257c5['PERMISSION_DENIED']=_0x14f5de(0x30e),_0x6257c5[_0x14f5de(0x2c8)]=_0x14f5de(0x2c8),_0x6257c5['CONFLICT_CACHE_CLEAR_FAILED']=_0x14f5de(0x14c),_0x6257c5[_0x14f5de(0x21d)]=_0x14f5de(0x21d),_0x6257c5['CLOSE_ROOM']=_0x14f5de(0x3c1),_0x6257c5[_0x14f5de(0x29e)]=_0x14f5de(0x29e),_0x6257c5[_0x14f5de(0x23f)]=_0x14f5de(0x23f),_0x6257c5[_0x14f5de(0x342)]=_0x14f5de(0x342),_0x6257c5[_0x14f5de(0x337)]=_0x14f5de(0x337),_0x6257c5;}({});var B=class{constructor(){const _0x20686f=_0x19811e;z(this,'_event$',new _0x33eafc()),z(this,_0x20686f(0x360),this['_event$'][_0x20686f(0x316)]());}['emitEvent'](_0x25faec){const _0x403d40=_0x19811e;this[_0x403d40(0x12c)][_0x403d40(0x2d6)](_0x25faec);}},jt=class{constructor(){const _0x18bcf2=_0x19811e;z(this,_0x18bcf2(0x177),new _0x33eafc()),z(this,_0x18bcf2(0x38a),this[_0x18bcf2(0x177)]['asObservable']());}[_0x19811e(0x12f)](_0xdf9bb8){const _0x3f6be4=_0x19811e;this[_0x3f6be4(0x177)]['next'](_0xdf9bb8);}};function V(_0x42b812,_0xa5344a){return function(_0x2456f4,_0x83d3b0){_0xa5344a(_0x2456f4,_0x83d3b0,_0x42b812);};}function H(_0xe97b8d,_0x7f454,_0x3078b1,_0x1b506e){const _0x5186eb=_0x19811e;var _0x76aff3=arguments[_0x5186eb(0x2ab)],_0x296db4=_0x76aff3<0x3?_0x7f454:_0x1b506e===null?_0x1b506e=Object[_0x5186eb(0x1d8)](_0x7f454,_0x3078b1):_0x1b506e,_0x5117e0;if(typeof Reflect==_0x5186eb(0x133)&&typeof Reflect[_0x5186eb(0x246)]==_0x5186eb(0x25a))_0x296db4=Reflect[_0x5186eb(0x246)](_0xe97b8d,_0x7f454,_0x3078b1,_0x1b506e);else{for(var _0x337036=_0xe97b8d[_0x5186eb(0x2ab)]-0x1;_0x337036>=0x0;_0x337036--)(_0x5117e0=_0xe97b8d[_0x337036])&&(_0x296db4=(_0x76aff3<0x3?_0x5117e0(_0x296db4):_0x76aff3>0x3?_0x5117e0(_0x7f454,_0x3078b1,_0x296db4):_0x5117e0(_0x7f454,_0x3078b1))||_0x296db4);}return _0x76aff3>0x3&&_0x296db4&&Object['defineProperty'](_0x7f454,_0x3078b1,_0x296db4),_0x296db4;}let Mt=class extends _0x3d72df{constructor(_0x52e820){const _0x521148=_0x19811e;super(),this[_0x521148(0x2e7)]=_0x52e820,z(this,_0x521148(0x333),new Map()),z(this,_0x521148(0x2da),new _0x33eafc()),this['disposeWithMe'](_0x5e3e6a(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5d23e3[_0x521148(0x227)])[_0x521148(0x273)](_0x49f6f7(_0x2e3fc1=>_0x2e3fc1[_0x521148(0x382)]())),this['_univerInstanceService'][_0x521148(0x131)](_0x5d23e3['UNIVER_DOC'])[_0x521148(0x273)](_0x49f6f7(_0x1758ea=>_0x1758ea[_0x521148(0x382)]())),this[_0x521148(0x2e7)][_0x521148(0x131)](_0x5d23e3[_0x521148(0x328)])[_0x521148(0x273)](_0x49f6f7(_0x403c19=>_0x403c19[_0x521148(0x382)]())),this['_univerInstanceService'][_0x521148(0x131)](_0x5d23e3[_0x521148(0x38e)])[_0x521148(0x273)](_0x49f6f7(_0x5c8409=>_0x5c8409[_0x521148(0x382)]())))['subscribe'](_0x5326fe=>this[_0x521148(0x1cf)](_0x5326fe)));}[_0x19811e(0x375)](_0x3512a6){const _0xb9721e=_0x19811e;return this['_roomMembers'][_0xb9721e(0x1d6)](_0x3512a6)?_0x5b3fe9(this['_roomMembers']['get'](_0x3512a6)):this[_0xb9721e(0x2da)]['pipe'](_0x49f6f7(_0x32e463=>{const _0x46a0d5=_0xb9721e;if(_0x32e463===_0x3512a6)return this[_0x46a0d5(0x333)][_0x46a0d5(0x17c)](_0x32e463);}));}['updateMember'](_0x3c3f68,_0xf45a53){const _0x1eb466=_0x19811e;let _0x58cd41=this[_0x1eb466(0x333)][_0x1eb466(0x17c)](_0x3c3f68);_0x58cd41||(_0x58cd41=new Nt(),this[_0x1eb466(0x333)][_0x1eb466(0x1ee)](_0x3c3f68,_0x58cd41),this[_0x1eb466(0x2da)][_0x1eb466(0x2d6)](_0x3c3f68)),_0x58cd41[_0x1eb466(0x324)](_0xf45a53);}[_0x19811e(0x14a)](_0x39a8ec,_0x396bb4){const _0x2a51e3=_0x19811e;let _0xe3b65f=this[_0x2a51e3(0x333)][_0x2a51e3(0x17c)](_0x39a8ec);_0xe3b65f&&_0xe3b65f[_0x2a51e3(0x14a)](_0x396bb4);}[_0x19811e(0x12a)](_0x262a96){const _0xeedb48=_0x19811e;return this[_0xeedb48(0x333)][_0xeedb48(0x17c)](_0x262a96);}[_0x19811e(0x1bb)](_0x186c47,_0x4c34fc){const _0x15e072=_0x19811e;let _0x1a69dd=this[_0x15e072(0x333)][_0x15e072(0x17c)](_0x186c47);if(_0x1a69dd)return _0x1a69dd['getMember'](_0x4c34fc);}[_0x19811e(0x1cf)](_0x7f6278){const _0x24e8ea=_0x19811e;let _0x5534ff=this[_0x24e8ea(0x333)][_0x24e8ea(0x17c)](_0x7f6278);_0x5534ff&&(_0x5534ff['dispose'](),this[_0x24e8ea(0x333)]['delete'](_0x7f6278));}['dispose'](){const _0x5ca29f=_0x19811e;this[_0x5ca29f(0x333)][_0x5ca29f(0x332)](_0x2655f3=>_0x2655f3['dispose']()),this[_0x5ca29f(0x333)][_0x5ca29f(0x2e5)](),this[_0x5ca29f(0x2da)][_0x5ca29f(0x279)]();}};Mt=H([V(0x0,_0x4f5fa8)],Mt);var Nt=class extends _0x3d72df{constructor(..._0x2234b6){const _0x127e30=_0x19811e;super(..._0x2234b6),z(this,_0x127e30(0x3d3),new Map()),z(this,_0x127e30(0x2a6),new _0x5d64e7(this[_0x127e30(0x3d3)])),z(this,'members$',this['_members$'][_0x127e30(0x316)]());}[_0x19811e(0x194)](){const _0x191f14=_0x19811e;this[_0x191f14(0x3d3)]['clear'](),this['_members$'][_0x191f14(0x279)]();}['updateMember'](_0x56248a){const _0x2e984b=_0x19811e;this[_0x2e984b(0x3d3)][_0x2e984b(0x1ee)](_0x56248a[_0x2e984b(0x2ee)],_0x56248a),this[_0x2e984b(0x259)]();}[_0x19811e(0x14a)](_0x4659a2){const _0xa9332b=_0x19811e;this[_0xa9332b(0x3d3)][_0xa9332b(0x347)](_0x4659a2),this[_0xa9332b(0x259)]();}[_0x19811e(0x1bb)](_0x2691c7){const _0xcca9fa=_0x19811e;return this[_0xcca9fa(0x3d3)][_0xcca9fa(0x17c)](_0x2691c7);}[_0x19811e(0x149)](){const _0x2c485c=_0x19811e;return Array[_0x2c485c(0x22e)](this[_0x2c485c(0x3d3)]['values']());}['_emitMembers'](){const _0x49a909=_0x19811e;this[_0x49a909(0x2a6)][_0x49a909(0x2d6)](this[_0x49a909(0x3d3)]);}};function Pt(_0x4a3755,_0x480cf8){const _0x24f1ba=_0x19811e;if(It(_0x4a3755))return _0x480cf8;if(_0x480cf8[_0x24f1ba(0x13c)]===_0x27a7e8['SUBMIT_CHANGESET']){let _0x19c0b5=Vt(_0x4a3755),_0x291479=_0x480cf8;return{..._0x291479,'data':{..._0x291479['data'],'unitID':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x22b)],'unitType':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x2e4)]??_0x291479['data']['unitType'],'changeset':_0x19c0b5[_0x24f1ba(0x3bd)](_0x291479[_0x24f1ba(0x202)][_0x24f1ba(0x136)],Ht(_0x4a3755))}};}if(_0x480cf8['eventID']===_0x27a7e8[_0x24f1ba(0x39b)]){let _0x3931cc=_0x480cf8;return{..._0x3931cc,'data':{..._0x3931cc[_0x24f1ba(0x202)],'unitID':_0x4a3755['target'][_0x24f1ba(0x22b)],'unitType':_0x4a3755[_0x24f1ba(0x135)][_0x24f1ba(0x2e4)]??_0x3931cc['data'][_0x24f1ba(0x2e4)]}};}return _0x480cf8;}function Ft(_0xe03804,_0x2ba444){if(It(_0xe03804))return[_0x2ba444];switch(_0x2ba444['eventID']){case _0x27a7e8['NEW_CHANGESETS']:return[Lt(_0xe03804,_0x2ba444)];case _0x27a7e8['PSEUDO_FETCH_MISSING_RESULT']:return[zt(_0xe03804,_0x2ba444)];case _0x27a7e8['CHANGESET_SHOULD_RETRY']:return[Rt(_0xe03804,_0x2ba444)];default:return[_0x2ba444];}}function It(_0x55825f){const _0x58dd71=_0x19811e;return _0x55825f[_0x58dd71(0x135)]['endpoint']==null&&_0x55825f[_0x58dd71(0x135)][_0x58dd71(0x22b)]===_0x55825f['localUnitId']&&!_0x55825f[_0x58dd71(0x136)];}function Lt(_0x43eded,_0x32d38b){const _0x183fcc=_0x19811e;return{..._0x32d38b,'data':_0x3ec998(Bt(_0x43eded,_0x52ab46(_0x32d38b[_0x183fcc(0x202)])))};}function Rt(_0x5c9dd0,_0x4df4fb){const _0x1f93f3=_0x19811e;return{..._0x4df4fb,'data':Bt(_0x5c9dd0,_0x4df4fb[_0x1f93f3(0x202)])};}function zt(_0x3f9afc,_0x178da8){const _0x339692=_0x19811e;let _0xe720b8=_0x178da8['data'];return{..._0x178da8,'data':{..._0xe720b8,'changesets':_0xe720b8['changesets'][_0x339692(0x1a3)](_0x339fdf=>_0x3ec998(Bt(_0x3f9afc,_0x52ab46(_0x339fdf))))}};}function Bt(_0x1b080c,_0x5e48c7){return Vt(_0x1b080c)['toLocal'](_0x5e48c7,Ht(_0x1b080c));}function Vt(_0x56b2da){const _0x5b5757=_0x19811e;if(!_0x56b2da[_0x5b5757(0x136)])throw Error(_0x5b5757(0x367));return _0x56b2da[_0x5b5757(0x136)];}function Ht(_0x5c035e){const _0x5a7886=_0x19811e;return{'localUnitId':_0x5c035e['localUnitId'],'unitType':_0x5c035e[_0x5a7886(0x2e4)],'target':_0x5c035e[_0x5a7886(0x135)]};}let Ut=function(_0x45847a){const _0x124f31=_0x19811e;return _0x45847a[_0x45847a[_0x124f31(0x262)]=0x0]=_0x124f31(0x262),_0x45847a[_0x45847a[_0x124f31(0x241)]=0x1]=_0x124f31(0x241),_0x45847a[_0x45847a[_0x124f31(0x3cc)]=0x2]=_0x124f31(0x3cc),_0x45847a[_0x45847a[_0x124f31(0x1d0)]=0x3]=_0x124f31(0x1d0),_0x45847a;}({});const Wt={[_0x37b9b2[_0x19811e(0x343)]]:_0x19811e(0x1f3),[_0x37b9b2[_0x19811e(0x38b)]]:_0x19811e(0x266),[_0x37b9b2['JOIN_ROOM_NOT_EXISTS']]:_0x19811e(0x1a6),[_0x37b9b2[_0x19811e(0x37a)]]:_0x19811e(0x127),[_0x37b9b2[_0x19811e(0x385)]]:_0x19811e(0x2a1)};let Gt=class extends _0x39685b{get[_0x19811e(0x2a2)](){const _0x3ebe1b=_0x19811e;return this[_0x3ebe1b(0x199)]['getValue']();}constructor(_0x183d55,_0x500471,_0x34cdc2,_0x46cc7e,_0x51ef77,_0xf188a0,_0xbaa147,_0x69078b){const _0x57baba=_0x19811e;super(),this[_0x57baba(0x31d)]=_0x183d55,this[_0x57baba(0x261)]=_0x34cdc2,this[_0x57baba(0x216)]=_0x46cc7e,this['_memberService']=_0x51ef77,this[_0x57baba(0x310)]=_0xf188a0,this[_0x57baba(0x1af)]=_0xbaa147,this[_0x57baba(0x339)]=_0x69078b,z(this,_0x57baba(0x199),new _0x5d64e7(0x0)),z(this,_0x57baba(0x3a5),this[_0x57baba(0x199)][_0x57baba(0x316)]()),z(this,_0x57baba(0x12c),new _0x33eafc()),z(this,_0x57baba(0x360),this[_0x57baba(0x12c)][_0x57baba(0x316)]()),z(this,_0x57baba(0x365),void 0x0),z(this,'_socketMessageSubscription',void 0x0),z(this,'_collaborationTimeoutTimer',void 0x0),z(this,_0x57baba(0x296),!0x1),z(this,_0x57baba(0x39f),null),this[_0x57baba(0x296)]=!!this[_0x57baba(0x339)],_0x500471[_0x57baba(0x273)](_0x1b033d(this[_0x57baba(0x1a7)]))[_0x57baba(0x2c1)](_0x41b71f=>{const _0x2dc258=_0x57baba;if(_0x41b71f!==void 0x0){if(this['_socket']=_0x41b71f,_0x41b71f)this[_0x2dc258(0x14b)](_0x41b71f),this[_0x2dc258(0x2bc)]=_0x41b71f[_0x2dc258(0x1f1)][_0x2dc258(0x2c1)](_0x13ea06=>{const _0x2e1bd5=_0x2dc258;_0x13ea06[_0x2e1bd5(0x1bc)]===this[_0x2e1bd5(0x31d)][_0x2e1bd5(0x135)][_0x2e1bd5(0x22b)]&&this[_0x2e1bd5(0x222)](_0x13ea06);});else{var _0x1c79b1;this[_0x2dc258(0x3ce)](),this['_sessionStatus$']['next'](0x2),(_0x1c79b1=this['_socketMessageSubscription'])==null||_0x1c79b1[_0x2dc258(0x185)](),this[_0x2dc258(0x2bc)]=null;}}});}['getMemberID'](){const _0x274749=_0x19811e;var _0x433004;return((_0x433004=this[_0x274749(0x365)])==null?void 0x0:_0x433004[_0x274749(0x2ee)])??null;}[_0x19811e(0x194)](){const _0x12d250=_0x19811e;super[_0x12d250(0x194)](),this[_0x12d250(0x17f)](),this['dispose$']['next'](),this['dispose$'][_0x12d250(0x279)]();}[_0x19811e(0x17f)](){const _0xc2cac=_0x19811e;var _0xb40398;this['_throwTelemetryCollaborationNewChangeset'](),(_0xb40398=this[_0xc2cac(0x365)])==null||_0xb40398['send']({'cmd':_0x3b5ebc[_0xc2cac(0x233)],'data':{'roomID':this[_0xc2cac(0x31d)]['target'][_0xc2cac(0x22b)]}}),this['_event$']['complete'](),this[_0xc2cac(0x199)]['complete']();}[_0x19811e(0x222)](_0x167737){const _0x4db75f=_0x19811e;_0x167737[_0x4db75f(0x2d9)]===_0x3b5ebc[_0x4db75f(0x1d9)]?this[_0x4db75f(0x39d)](_0x167737):_0x167737[_0x4db75f(0x2d9)]===_0x3b5ebc[_0x4db75f(0x1e7)]&&this[_0x4db75f(0x2df)](_0x167737);}[_0x19811e(0x14b)](_0x3624af){const _0x415438=_0x19811e;this[_0x415438(0x199)][_0x415438(0x2d6)](0x1),_0x3624af[_0x415438(0x173)]({'cmd':_0x3b5ebc[_0x415438(0x1d9)],'routeKey':this[_0x415438(0x31d)][_0x415438(0x135)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x415438(0x135)][_0x415438(0x22b)]}]}});}[_0x19811e(0x39d)](_0x910e50){const _0x43f55f=_0x19811e;var _0x393895;if(_0x910e50[_0x43f55f(0x236)]in Wt){this['_collaborationUIEventService'][_0x43f55f(0x24a)]({'id':_0x43f55f(0x29e),'data':Wt[_0x910e50[_0x43f55f(0x236)]]}),this['_sessionStatus$'][_0x43f55f(0x2d6)](0x2);return;}this[_0x43f55f(0x199)][_0x43f55f(0x2d6)](0x3);let _0xd096ce=(_0x393895=_0x910e50[_0x43f55f(0x202)][_0x43f55f(0x3da)][this[_0x43f55f(0x31d)]['target']['unitId']])==null?void 0x0:_0x393895[_0x43f55f(0x282)];_0xd096ce&&_0xd096ce[_0x43f55f(0x332)](_0x5c6a63=>this[_0x43f55f(0x1fe)][_0x43f55f(0x324)](this['_identity'][_0x43f55f(0x3bc)],_0x5c6a63));}[_0x19811e(0x2df)](_0x40dfa5){const _0x3898b0=_0x19811e;try{let _0x4aff7d=Ft(this['_identity'],_0x40dfa5['data']);for(let _0x388ee1 of _0x4aff7d)switch(_0x388ee1['eventID']){case _0x27a7e8[_0x3898b0(0x34d)]:this[_0x3898b0(0x15e)](_0x388ee1),this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x16d)]:this[_0x3898b0(0x340)](_0x388ee1),this['_event$'][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8['CHANGESET_ACK']:case _0x27a7e8['CHANGESET_SHOULD_RETRY']:this[_0x3898b0(0x2ec)](),this[_0x3898b0(0x388)](),this['_event$']['next'](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x344)]:this['_logService'][_0x3898b0(0x2cd)](_0x3898b0(0x272)+JSON[_0x3898b0(0x3a0)](_0x388ee1)),this['_event$'][_0x3898b0(0x2d6)](_0x388ee1);break;case _0x27a7e8[_0x3898b0(0x1b6)]:this['_commentService'][_0x3898b0(0x12f)](_0x388ee1[_0x3898b0(0x202)]),this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);break;default:this[_0x3898b0(0x12c)][_0x3898b0(0x2d6)](_0x388ee1);}}catch(_0x1d805e){this['_logService']['error'](_0x1d805e,_0x40dfa5);}}['_onUserJoin'](_0x3a58e1){const _0x1602e5=_0x19811e;this[_0x1602e5(0x1fe)]['updateMember'](this['_identity'][_0x1602e5(0x3bc)],_0x3a58e1['data']);}[_0x19811e(0x340)](_0x3cc416){const _0x167142=_0x19811e;this['_memberService'][_0x167142(0x14a)](this[_0x167142(0x31d)]['localUnitId'],_0x3cc416[_0x167142(0x202)][_0x167142(0x2ee)]);}async['send'](_0x19d77c,_0x22c837){const _0xd71a95=_0x19811e;if(this['sessionStatus']!==0x3||!this[_0xd71a95(0x365)])throw Error(_0xd71a95(0x20b));try{let _0x761eba=Pt(this['_identity'],_0x19d77c);_0x761eba[_0xd71a95(0x13c)]===_0x27a7e8[_0xd71a95(0x1f6)]&&(this[_0xd71a95(0x35a)](),this[_0xd71a95(0x2eb)](_0x761eba)),this['_socket'][_0xd71a95(0x173)]({'cmd':_0x3b5ebc[_0xd71a95(0x2fb)],'routeKey':this[_0xd71a95(0x31d)][_0xd71a95(0x135)][_0xd71a95(0x22b)],'routeType':'','data':_0x761eba});}catch(_0x124c84){this['_logService'][_0xd71a95(0x2cd)](_0x124c84);}}[_0x19811e(0x35a)](){const _0x555c65=_0x19811e;this[_0x555c65(0x206)]=setTimeout(()=>{const _0x45770e=_0x555c65;this[_0x45770e(0x206)]=null,this['_collaborationUIEventService'][_0x45770e(0x24a)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this[_0x555c65(0x216)][_0x555c65(0x396)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x19811e(0x388)](){const _0x35a1af=_0x19811e;this[_0x35a1af(0x206)]&&=(clearTimeout(this[_0x35a1af(0x206)]),null);}['_startTelemetryCollaborationNewChangeset'](_0x28f572){const _0x4242f7=_0x19811e;if(!this[_0x4242f7(0x296)])return;let {data:_0x132b3b}=_0x28f572,{unitID:_0x25c94c,changeset:_0x45f9ae}=_0x132b3b,{mutations:_0x35bd2e,type:_0x2ec498}=_0x45f9ae;this['_telemetryInfo']={'unitId':_0x25c94c,'type':_0x2ec498,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Et(_0x35bd2e)};}[_0x19811e(0x2ec)](){const _0x478452=_0x19811e;if(this[_0x478452(0x296)]){if(!this[_0x478452(0x39f)]){this['_logService']['error'](_0x478452(0x351),_0x478452(0x3a9));return;}this[_0x478452(0x39f)][_0x478452(0x132)]=performance[_0x478452(0x1de)](),this[_0x478452(0x39f)][_0x478452(0x175)]=this[_0x478452(0x39f)][_0x478452(0x132)]-this['_telemetryInfo']['startTime'],this['_telemetryService'][_0x478452(0x311)]('collaboration_new_changeset',this[_0x478452(0x39f)]),this[_0x478452(0x39f)]=null;}}[_0x19811e(0x3ce)](){const _0x23f00f=_0x19811e;this[_0x23f00f(0x39f)]=null;}};Gt=H([V(0x2,_0x1ba700),V(0x3,_0x2477d9),V(0x4,_0x480e6d(Mt)),V(0x5,_0x480e6d(jt)),V(0x6,_0x480e6d(B)),V(0x7,_0x1e59a5(_0x3e86e2))],Gt);const U=_0x538219(_0x19811e(0x3b7));function Kt(_0x36f5e7){const _0x2013d6=_0x19811e;return _0x2013d6(0x219)+_0x36f5e7;}function qt(_0xbe0550){const _0x4af786=_0x19811e;let {unitID:_0x30c719,mutations:_0x2a48f3}=_0xbe0550;return{'unitId':_0x30c719,'subUnitId':_0x2a48f3['length']>0x0?_0x2a48f3[0x0][_0x4af786(0x359)][_0x4af786(0x1c0)]:null};}let Jt=class{constructor(_0x28977d,_0x34fad3,_0x1761d5){const _0x2d1cdf=_0x19811e;this[_0x2d1cdf(0x302)]=_0x28977d,this[_0x2d1cdf(0x3d8)]=_0x34fad3,this[_0x2d1cdf(0x1c4)]=_0x1761d5;}[_0x19811e(0x1b2)](_0x11c46b){const _0x276ddf=_0x19811e;var _0x303897,_0x10f34e;let _0x4fd165=this['_injector'][_0x276ddf(0x17c)](_0x2a7649),{unitId:_0x1bf043,subUnitId:_0x4a45a6}=qt(_0x11c46b),_0x8eb0f5=_0x4fd165==null?void 0x0:_0x4fd165[_0x276ddf(0x1b9)](_0x1bf043)[_0x276ddf(0x3c7)](),_0x12d091=(_0x303897=this[_0x276ddf(0x1c4)]['getUnit'](_0x1bf043))==null||(_0x303897=_0x303897['getActiveSheet']())==null?void 0x0:_0x303897[_0x276ddf(0x15f)]();if(_0x8eb0f5[_0x276ddf(0x2ab)]===0x0||!_0x1bf043||!_0x4a45a6)return;let _0x256edd=[{'id':_0x4a8a0d['id'],'params':{'unitId':_0x1bf043,'subUnitId':_0x12d091,'selections':_0x41c835['deepClone'](_0x8eb0f5)}}],_0xbd95e3=this[_0x276ddf(0x3d8)][_0x276ddf(0x19d)](_0x11c46b,_0x256edd);if(!_0x13dcd7(_0xbd95e3))throw _0xbd95e3['error'];let _0x153a83=(_0x10f34e=_0xbd95e3[_0x276ddf(0x2ba)][0x0])==null||(_0x10f34e=_0x10f34e['params'])==null?void 0x0:_0x10f34e[_0x276ddf(0x23e)];if(Array[_0x276ddf(0x3c2)](_0x153a83)&&_0x153a83[_0x276ddf(0x2ab)]){if(_0x153a83[_0x276ddf(0x2ab)]===_0x256edd[0x0]['params'][_0x276ddf(0x23e)][_0x276ddf(0x2ab)]&&_0x153a83[_0x276ddf(0x1e1)]((_0x3bf904,_0xfed8a4)=>_0x209662[_0x276ddf(0x1c6)](_0x3bf904[_0x276ddf(0x3c5)],_0x256edd[0x0][_0x276ddf(0x359)][_0x276ddf(0x23e)][_0xfed8a4][_0x276ddf(0x3c5)])))return;this[_0x276ddf(0x302)][_0x276ddf(0x17c)](_0xef393c)[_0x276ddf(0x144)](_0x4a8a0d['id'],{'unitId':_0x1bf043,'subUnitId':_0x12d091,'selections':_0x153a83});}}};Jt=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x435fb7),V(0x2,_0x4f5fa8)],Jt);const W=_0x538219('univer-pro.collaboration-client.single-active-unit-service');let Yt=function(_0x2d7b9d){const _0x1e48b2=_0x19811e;return _0x2d7b9d[_0x2d7b9d[_0x1e48b2(0x307)]=0x0]=_0x1e48b2(0x307),_0x2d7b9d[_0x2d7b9d[_0x1e48b2(0x263)]=0x1]=_0x1e48b2(0x263),_0x2d7b9d;}({});function Xt(_0x1cf284){const _0x56c65a=_0x19811e;var _0x36b53f;return!!((_0x36b53f=_0x1cf284[_0x56c65a(0x359)])!=null&&_0x36b53f['__splitChunk__']);}const Zt=new Set([_0x560f34['id']]),Qt=new Set([_0x253f54['id'],_0x45480a['id'],_0x1aaa8a['id'],_0x84ee02['id']]);function $t(_0x279e56,_0x5b1319=Zt){const _0x310a90=_0x19811e;let _0x523588=[];for(let _0x1e80d5 of _0x279e56){if(_0x5b1319['has'](_0x1e80d5['id'])){if(_0x523588['length']>0x0)break;_0x523588[_0x310a90(0x335)](_0x1e80d5);break;}if(Xt(_0x1e80d5)){if(_0x523588['length']>0x0)break;_0x523588[_0x310a90(0x335)](_0x1e80d5);break;}_0x523588['push'](_0x1e80d5);}return _0x523588;}function en(_0x75c9ca,_0x2742ea,_0x2d4940,_0xa4af9c,_0x1e1f03){const _0x10fe4f=_0x19811e;let _0x4b6b9e=$t(_0x75c9ca),_0x2eab2c=_0x1e1f03[_0x10fe4f(0x21e)](),_0x231236=(_0x2eab2c==null?void 0x0:_0x2eab2c[_0x10fe4f(0x2b3)])??_0x10fe4f(0x2ff),_0x428921=(_0x2eab2c==null?void 0x0:_0x2eab2c[_0x10fe4f(0x2ee)])??'unknown';return{'changeset':{'unitID':_0x2742ea,'type':_0x1b1539(_0x2d4940[_0x10fe4f(0x1e3)](_0x2742ea)),'baseRev':_0xa4af9c[_0x10fe4f(0x2ea)](_0x2742ea),'revision':0x0,'userID':_0x231236,'memberID':_0x428921,'mutations':_0x4b6b9e},'pendingMutations':_0x75c9ca['slice'](_0x4b6b9e[_0x10fe4f(0x2ab)])};}const tn=en;function nn(_0x4ac0ab,_0xc24e54,_0x199a48,_0x123ad5,_0x4729bb){const _0x2f8171=_0x19811e;let _0x4de894=$t(_0x4ac0ab,Qt),_0x362a23=_0x4729bb[_0x2f8171(0x21e)](),_0x2bfb08=(_0x362a23==null?void 0x0:_0x362a23[_0x2f8171(0x2b3)])??_0x2f8171(0x2ff),_0x1c2749=(_0x362a23==null?void 0x0:_0x362a23['memberID'])??'unknown';return{'changeset':{'unitID':_0xc24e54,'type':_0x1b1539(_0x199a48['getUnitType'](_0xc24e54)),'baseRev':_0x123ad5[_0x2f8171(0x2ea)](_0xc24e54),'revision':0x0,'userID':_0x2bfb08,'memberID':_0x1c2749,'mutations':_0x4de894},'pendingMutations':_0x4ac0ab[_0x2f8171(0x141)](_0x4de894[_0x2f8171(0x2ab)])};}function rn(_0x285d35,_0x104579,_0x2acb87,_0x2c3986,_0x36c1c3){const _0x5dd849=_0x19811e;let _0x591269=_0x285d35[_0x5dd849(0x3d9)]((_0x23d586,_0x2280e0)=>{const _0x2fbd8d=_0x5dd849;let _0x115950=_0x23d586[_0x23d586['length']-0x1],{id:_0x585c6a}=_0x115950??{},{id:_0x40fd2f,type:_0x55016e}=_0x2280e0,_0x28ba07=_0x2280e0['params'];if(_0x585c6a&&_0x585c6a!==_0x40fd2f)throw Error(_0x2fbd8d(0x284)+_0x585c6a+_0x2fbd8d(0x36c)+_0x40fd2f+'.');if(!_0x115950)return[{'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07[_0x2fbd8d(0x3dd)],'actions':_0x28ba07[_0x2fbd8d(0x303)]}}];let _0x409488=_0x115950['params'];return an(_0x409488,_0x28ba07)?[..._0x23d586[_0x2fbd8d(0x141)](0x0,-0x1),{..._0x115950,'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07['textRanges'],'actions':_0x26d762[_0x2fbd8d(0x193)](_0x409488[_0x2fbd8d(0x303)],_0x28ba07['actions'])}}]:[..._0x23d586,{'id':_0x40fd2f,'type':_0x55016e,'params':{'unitId':_0x28ba07[_0x2fbd8d(0x22b)],'textRanges':_0x28ba07[_0x2fbd8d(0x3dd)],'actions':_0x28ba07['actions']}}];},[]),_0x42a845=_0x36c1c3[_0x5dd849(0x21e)](),_0x25287c=(_0x42a845==null?void 0x0:_0x42a845['userID'])??_0x5dd849(0x2ff),_0x102a08=(_0x42a845==null?void 0x0:_0x42a845[_0x5dd849(0x2ee)])??_0x5dd849(0x2ff);return{'changeset':{'unitID':_0x104579,'type':_0x1b1539(_0x2acb87['getUnitType'](_0x104579)),'baseRev':_0x2c3986[_0x5dd849(0x2ea)](_0x104579),'revision':0x0,'userID':_0x25287c,'memberID':_0x102a08,'mutations':_0x591269},'pendingMutations':_0x285d35[_0x5dd849(0x141)](_0x285d35['length'])};}function an(_0x3ea3ff,_0x229435){const _0x1e163c=_0x19811e;return!on(_0x3ea3ff)&&!on(_0x229435)&&sn(_0x3ea3ff[_0x1e163c(0x303)],_0x229435[_0x1e163c(0x303)]);}function on(_0x1910f1){return _0x1910f1['isCompositionEnd']!==void 0x0;}function sn(_0x2f7a83,_0x2daac8){return cn(_0x2f7a83)&&cn(_0x2daac8)&&!un(_0x2f7a83)&&!un(_0x2daac8)&&!ln(_0x2f7a83)&&!ln(_0x2daac8);}function cn(_0x2ce0a7){const _0x8c5907=_0x19811e;return dn(_0x2ce0a7)['some'](_0x557c02=>fn(_0x557c02)&&_0x557c02['et']===_0x8c5907(0x37f));}function ln(_0x596ddb){const _0x395e3c=_0x19811e;return dn(_0x596ddb)[_0x395e3c(0x1aa)](_0x29fde4=>Array[_0x395e3c(0x3c2)](_0x29fde4)||typeof _0x29fde4=='string'||typeof _0x29fde4==_0x395e3c(0x384));}function un(_0x51c1d5){const _0x352114=_0x19811e;return dn(_0x51c1d5)[_0x352114(0x1aa)](_0x53765a=>!fn(_0x53765a)||_0x53765a['et']!=='text-x'||!Array[_0x352114(0x3c2)](_0x53765a['e'])?!0x1:_0x53765a['e'][_0x352114(0x1aa)](_0x2f8c5f=>!fn(_0x2f8c5f)||!fn(_0x2f8c5f[_0x352114(0x1ea)])?!0x1:Object[_0x352114(0x201)]['hasOwnProperty'][_0x352114(0x167)](_0x2f8c5f['body'],_0x352114(0x27c))||Object[_0x352114(0x201)][_0x352114(0x1c7)][_0x352114(0x167)](_0x2f8c5f[_0x352114(0x1ea)],_0x352114(0x267))||Object['prototype'][_0x352114(0x1c7)][_0x352114(0x167)](_0x2f8c5f[_0x352114(0x1ea)],'blockRanges')));}function dn(_0x48a1b1){const _0x2c6dca=_0x19811e;if(!Array['isArray'](_0x48a1b1))return[];let _0x4aa24e=_0x48a1b1[_0x2c6dca(0x139)](_0x2c6dca(0x1ea))?_0x48a1b1:_0x48a1b1[_0x2c6dca(0x180)](_0x5e16b8=>Array[_0x2c6dca(0x3c2)](_0x5e16b8)&&_0x5e16b8['includes']('body'));if(!Array[_0x2c6dca(0x3c2)](_0x4aa24e))return[];let _0xa31e4d=_0x4aa24e[_0x2c6dca(0x293)]('body');return _0xa31e4d===-0x1?[]:_0x4aa24e[_0x2c6dca(0x141)](_0xa31e4d+0x1);}function fn(_0x2995ec){const _0xacedb4=_0x19811e;return typeof _0x2995ec==_0xacedb4(0x133)&&!!_0x2995ec&&!Array[_0xacedb4(0x3c2)](_0x2995ec);}function pn(_0x1157f8,_0x1e3a5d){const _0x55542b=_0x19811e;let _0x364147=new _0x584d6d(0x1);return setTimeout(()=>_0x364147[_0x55542b(0x2d6)](_0x1e3a5d),_0x1157f8),_0x364147[_0x55542b(0x316)]()[_0x55542b(0x273)](_0x5c55cb(0x1));}var mn,hn,gn;let _n=function(_0x1b61cc){const _0x166eca=_0x19811e;return _0x1b61cc[_0x166eca(0x2f3)]=_0x166eca(0x28a),_0x1b61cc[_0x166eca(0x130)]=_0x166eca(0x327),_0x1b61cc[_0x166eca(0x3a1)]='pending',_0x1b61cc[_0x166eca(0x21b)]='awaiting',_0x1b61cc[_0x166eca(0x3c0)]=_0x166eca(0x1ac),_0x1b61cc[_0x166eca(0x19b)]=_0x166eca(0x2fd),_0x1b61cc[_0x166eca(0x21d)]=_0x166eca(0x19c),_0x1b61cc['OFFLINE']=_0x166eca(0x192),_0x1b61cc;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x3ae150,_0xe2b1a6,_0x270359,_0x3ce8f0,_0x3a192f,_0x77522b,_0x33023f,_0x60902e,_0x2ffc9c){const _0x473e2d=_0x19811e;this[_0x473e2d(0x25e)]=_0x3ae150,this['type']=_0xe2b1a6,this[_0x473e2d(0x151)]=_0x3a192f,this[_0x473e2d(0x3aa)]=_0x77522b,this[_0x473e2d(0x14e)]=_0x33023f,this[_0x473e2d(0x271)]=_0x60902e,this[_0x473e2d(0x121)]=_0x2ffc9c,z(this,'_awaitingChangeset',null),z(this,_0x473e2d(0x33f),[]),this[_0x473e2d(0x21c)]=_0x270359,this['_pendingMutations']=_0x3ce8f0;}[_0x19811e(0x12d)](_0x49b7f3){const _0x3e0759=_0x19811e;let _0x1d9073=this[_0x3e0759(0x271)][_0x3e0759(0x2ea)](this[_0x3e0759(0x25e)]);return _0x49b7f3[_0x3e0759(0x2fe)]>_0x1d9073+0x1&&(this[_0x3e0759(0x151)][_0x3e0759(0x3db)]({'from':_0x1d9073,'to':_0x49b7f3[_0x3e0759(0x2fe)]-0x1}),!0x0);}['_transformUndoredo'](_0x9ac608){const _0x5e1077=_0x19811e;this[_0x5e1077(0x14e)][_0x5e1077(0x32e)](this[_0x5e1077(0x25e)],_0x9ac608);}[_0x19811e(0x166)](_0x2c82ae){const _0x1274e1=_0x19811e;var _0x4cdc23,_0xa5f8a3;(_0x4cdc23=(_0xa5f8a3=this[_0x1274e1(0x151)])['onTransformSelections'])==null||_0x4cdc23[_0x1274e1(0x167)](_0xa5f8a3,_0x2c82ae);}[_0x19811e(0x125)](_0x16272a){const _0x417cf5=_0x19811e;var _0x4f239a,_0x598a3c;return((_0x4f239a=(_0x598a3c=this['_handler'])[_0x417cf5(0x138)])==null?void 0x0:_0x4f239a[_0x417cf5(0x167)](_0x598a3c,_0x16272a))??null;}[_0x19811e(0x29b)](_0x47c30f){const _0x275cfc=_0x19811e;var _0x57851c,_0x2c6c42;return(_0x57851c=(_0x2c6c42=this[_0x275cfc(0x151)])[_0x275cfc(0x24b)])==null?void 0x0:_0x57851c[_0x275cfc(0x167)](_0x2c6c42,_0x47c30f);}[_0x19811e(0x20c)](_0x1cc145){const _0x5d9940=_0x19811e;var _0x22244c,_0x2d54f6;return(_0x22244c=(_0x2d54f6=this[_0x5d9940(0x151)])[_0x5d9940(0x2ac)])==null?void 0x0:_0x22244c[_0x5d9940(0x167)](_0x2d54f6,_0x1cc145);}[_0x19811e(0x1e4)](_0x1082fc){const _0x40dcb3=_0x19811e;var _0x9105d3,_0x375d6b;return((_0x9105d3=(_0x375d6b=this[_0x40dcb3(0x151)])[_0x40dcb3(0x258)])==null?void 0x0:_0x9105d3['call'](_0x375d6b,_0x1082fc))??_0x1082fc;}['_transformRemoteChangesetByStateCache'](_0x114b20){const _0x3a42b4=_0x19811e;var _0x36f136,_0x55bed2;return((_0x36f136=(_0x55bed2=this[_0x3a42b4(0x151)])[_0x3a42b4(0x31b)])==null?void 0x0:_0x36f136[_0x3a42b4(0x167)](_0x55bed2,_0x114b20))??_0x114b20;}[_0x19811e(0x18b)](_0x440a0b){const _0x32c886=_0x19811e;if(this[_0x32c886(0x392)]===_0x5d23e3[_0x32c886(0x126)]){let {unitID:_0x353b49,mutations:_0x5d30f6,memberID:_0x2d2295}=_0x440a0b,_0x4411b7=_0x5d30f6[_0x32c886(0x2ab)]>0x0?_0x5d30f6[0x0][_0x32c886(0x359)][_0x32c886(0x3dd)]:[];if(Array['isArray'](_0x4411b7)&&_0x4411b7[_0x32c886(0x2ab)]>0x0){var _0x3aab6a,_0x958ba6;(_0x3aab6a=(_0x958ba6=this[_0x32c886(0x151)])['onSyncEditingCollabCursor'])==null||_0x3aab6a[_0x32c886(0x167)](_0x958ba6,{'unitID':_0x353b49,'memberID':_0x2d2295,'textRanges':_0x4411b7});}}}[_0x19811e(0x1b1)](){const _0x3ee9fe=_0x19811e;var _0x548422;(_0x548422=this[_0x3ee9fe(0x121)])==null||_0x548422[_0x3ee9fe(0x369)](this[_0x3ee9fe(0x25e)],this['type'],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x19811e(0x36b)](){const _0x10ec2c=_0x19811e;return this[_0x10ec2c(0x271)]['getCurrentRevOfUnit'](this[_0x10ec2c(0x25e)]);}[_0x19811e(0x323)](){const _0x5b7072=_0x19811e;this[_0x5b7072(0x271)][_0x5b7072(0x2c2)](this[_0x5b7072(0x25e)]);}[_0x19811e(0x35c)](_0x430ea6){const _0x1b5b2f=_0x19811e;let _0x3230b7=this[_0x1b5b2f(0x1e4)](_0x430ea6);_0x3230b7=this[_0x1b5b2f(0x270)](_0x3230b7);let _0x1add5e=this[_0x1b5b2f(0x125)](_0x3230b7),_0x5e7441=_0x1cdaf4(_0x3230b7[_0x1b5b2f(0x16e)],this[_0x1b5b2f(0x3aa)],{'fromCollab':!0x0});if(!_0x5e7441[_0x1b5b2f(0x2e9)])throw _0x1add5e==null||_0x1add5e['rollback'](),_0x5e7441[_0x1b5b2f(0x2cd)]instanceof Error?_0x5e7441['error']:Error(_0x5e7441[_0x1b5b2f(0x2cd)]??'[CollaborationState]:\x20apply\x20error!');_0x1add5e==null||_0x1add5e[_0x1b5b2f(0x2ce)](),this[_0x1b5b2f(0x29b)](_0x3230b7),this[_0x1b5b2f(0x20c)](_0x3230b7),this[_0x1b5b2f(0x33b)](_0x430ea6),this[_0x1b5b2f(0x166)](_0x3230b7),this[_0x1b5b2f(0x18b)](_0x3230b7),this[_0x1b5b2f(0x323)]();}};let K=class extends G{constructor(_0x28b24c,_0x2b4370,_0x252946,_0x628c7b,_0x35da9e,_0xb652c0,_0x57f1b7,_0x290a9e,_0x39d35f,_0x330f65){const _0x5a91b9=_0x19811e;super(_0x28b24c,_0x2b4370,null,[],_0x252946,_0x57f1b7,_0xb652c0,_0x628c7b,_0x330f65),this['_injector']=_0x35da9e,this[_0x5a91b9(0x261)]=_0x290a9e,this[_0x5a91b9(0x3d8)]=_0x39d35f,this[_0x5a91b9(0x38c)]=_0x330f65,z(this,_0x5a91b9(0x18d),_0x5a91b9(0x327));}['appendMutation'](_0x20c522){const _0x5aed48=_0x19811e;let _0x3827a8=this[_0x5aed48(0x302)][_0x5aed48(0x1d2)](q,this[_0x5aed48(0x25e)],this[_0x5aed48(0x392)],[_0x20c522],this[_0x5aed48(0x151)]);return _0x3827a8[_0x5aed48(0x235)](),_0x3827a8[_0x5aed48(0x1b1)](),_0x3827a8;}[_0x19811e(0x1dd)](_0x2868f5){const _0xef0e57=_0x19811e;if(this[_0xef0e57(0x12d)](_0x2868f5))return this[_0xef0e57(0x302)][_0xef0e57(0x1d2)](Q,this[_0xef0e57(0x25e)],this[_0xef0e57(0x392)],null,[],null,[_0x2868f5],this['_handler']);try{let _0x43349d=this[_0xef0e57(0x3d8)][_0xef0e57(0x19d)](_0x2868f5,[_0xa29bbd]);if(_0x13dcd7(_0x43349d)){let {c1Prime:_0x5097ac}=_0x43349d;return this[_0xef0e57(0x35c)](_0x5097ac),this;}throw _0x43349d[_0xef0e57(0x2cd)];}catch(_0xed372e){return this['_logService'][_0xef0e57(0x2cd)](_0xed372e),this[_0xef0e57(0x13a)](!0x1);}}['_onConflict'](_0xa346ea){const _0x1ccfa6=_0x19811e;return this[_0x1ccfa6(0x302)][_0x1ccfa6(0x1d2)](X,this[_0x1ccfa6(0x25e)],this[_0x1ccfa6(0x392)],null,[],this['_handler'],_0xa346ea);}[_0x19811e(0x33e)](_0x3f2b1a){const _0x4c4276=_0x19811e;if(_0x3f2b1a['revision']<=this[_0x4c4276(0x36b)]())return this;throw Error(_0x4c4276(0x2ef));}[_0x19811e(0x2d0)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){const _0x25fbed=_0x19811e;return this['_injector'][_0x25fbed(0x1d2)](Z,this[_0x25fbed(0x25e)],this['type'],null,[],this[_0x25fbed(0x151)]);}['toggleOnline'](){return this;}[_0x19811e(0x218)](){const _0x4e121c=_0x19811e;throw Error(_0x4e121c(0x146));}['fetchMiss'](){const _0x41301c=_0x19811e;let _0x50e6b4=this[_0x41301c(0x271)][_0x41301c(0x2ea)](this[_0x41301c(0x25e)]);return this[_0x41301c(0x151)]['onMissingChangesets']({'from':_0x50e6b4,'to':0x0}),this['_injector'][_0x41301c(0x1d2)](Q,this[_0x41301c(0x25e)],this['type'],null,[],null,[],this[_0x41301c(0x151)]);}};K=H([V(0x3,_0x480e6d(_0x4e5cfb)),V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x3d966a),V(0x6,_0xef393c),V(0x7,_0x1ba700),V(0x8,_0x435fb7),V(0x9,_0x1e59a5(U))],K);let q=mn=class extends G{constructor(_0x360474,_0x4ed921,_0x230c9c,_0x3b792d,_0x5b1793,_0x1e7055,_0x2730a7,_0x2fb665,_0x526f67,_0x2ed05a,_0x28d72d,_0x15e3ce,_0x4cb758,_0x3ac427){const _0x5c6716=_0x19811e;super(_0x360474,_0x4ed921,null,_0x230c9c,_0x3b792d,_0x526f67,_0x4cb758,_0x1e7055,_0x3ac427),this['_injector']=_0x5b1793,this[_0x5c6716(0x3a4)]=_0x2730a7,this[_0x5c6716(0x261)]=_0x2fb665,this[_0x5c6716(0x216)]=_0x2ed05a,this[_0x5c6716(0x3d8)]=_0x28d72d,this[_0x5c6716(0x2e7)]=_0x15e3ce,z(this,_0x5c6716(0x18d),_0x5c6716(0x277)),z(this,_0x5c6716(0x3b8),null),z(this,_0x5c6716(0x184),null);}['appendMutation'](_0x1193b1){const _0x58a20d=_0x19811e;return this['_pendingMutations'][_0x58a20d(0x335)](_0x1193b1),this[_0x58a20d(0x1b1)](),this;}[_0x19811e(0x1dd)](_0x16a288){const _0x2ddb41=_0x19811e;if(this[_0x2ddb41(0x12d)](_0x16a288))return this['_clearScheduledTask'](),this[_0x2ddb41(0x302)][_0x2ddb41(0x1d2)](Q,this[_0x2ddb41(0x25e)],this[_0x2ddb41(0x392)],null,this[_0x2ddb41(0x33f)],null,[_0x16a288],this[_0x2ddb41(0x151)]);try{let _0x2ef73e=this[_0x2ddb41(0x3d8)][_0x2ddb41(0x19d)](_0x16a288,this[_0x2ddb41(0x33f)]);if(_0x13dcd7(_0x2ef73e)){let {c1Prime:_0x80f716,m2Prime:_0x27665c}=_0x2ef73e;this[_0x2ddb41(0x35c)](_0x80f716);let _0x575a58=this['_injector'][_0x2ddb41(0x1d2)](mn,this[_0x2ddb41(0x25e)],this[_0x2ddb41(0x392)],_0x27665c,this['_handler']);this[_0x2ddb41(0x3df)]();let _0x309c92=new Date()[_0x2ddb41(0x211)](),_0x3452e1=this[_0x2ddb41(0x3b8)]?Math[_0x2ddb41(0x1dc)](this[_0x2ddb41(0x3b8)]-_0x309c92,0x0):this['_getSendChangesetTimeout']();return _0x575a58[_0x2ddb41(0x235)](_0x3452e1),_0x575a58;}throw _0x2ef73e[_0x2ddb41(0x2cd)];}catch(_0x3fb126){return this[_0x2ddb41(0x261)][_0x2ddb41(0x2cd)](_0x3fb126),this[_0x2ddb41(0x13a)](!0x1);}}[_0x19811e(0x33e)](_0x496df3){const _0x55b550=_0x19811e;if(_0x496df3[_0x55b550(0x2fe)]<=this[_0x55b550(0x36b)]())return this;throw Error(_0x55b550(0x1f9));}['onRemoteRej'](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x19811e(0x36a)](){return this;}[_0x19811e(0x2de)](){const _0x4524ce=_0x19811e;return this[_0x4524ce(0x3df)](),this['_injector'][_0x4524ce(0x1d2)](Z,this[_0x4524ce(0x25e)],this[_0x4524ce(0x392)],null,this['_pendingMutations'],this[_0x4524ce(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x235)](_0x5411f2){const _0x46128c=_0x19811e;let _0x11e7ea=_0x5411f2??this[_0x46128c(0x1db)]();this[_0x46128c(0x3b8)]=new Date()['getTime']()+_0x11e7ea,this['_sendingTimer']=setTimeout(()=>{const _0x25c0c2=_0x46128c;this[_0x25c0c2(0x3df)]();let _0x323a08=null;switch(this['type']){case _0x5d23e3['UNIVER_SHEET']:_0x323a08=en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this['_univerInstanceService'],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x126)]:_0x323a08=this[_0x25c0c2(0x33f)]['every'](_0x33f7f8=>_0x33f7f8['id']===_0x3a809f['id'])?rn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this['_revisionService'],this[_0x25c0c2(0x3a4)]):en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3['UNIVER_SLIDE']:_0x323a08=nn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this['_revisionService'],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x1f5)]:_0x323a08=tn(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this['_userManagerService']);break;case _0x5d23e3['UNIVER_BOARD']:_0x323a08=en(this[_0x25c0c2(0x33f)],this['unitID'],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this[_0x25c0c2(0x3a4)]);break;case _0x5d23e3[_0x25c0c2(0x38e)]:_0x323a08=en(this[_0x25c0c2(0x33f)],this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x2e7)],this[_0x25c0c2(0x271)],this['_userManagerService']);break;default:throw Error(_0x25c0c2(0x22c)+this[_0x25c0c2(0x392)]+'\x20in\x20_schedule.');}let {changeset:_0x31d7dd,pendingMutations:_0x115f6f}=_0x323a08;this[_0x25c0c2(0x151)][_0x25c0c2(0x221)](_0x31d7dd);let _0x5937fe=_0x115f6f[_0x25c0c2(0x2ab)]?this[_0x25c0c2(0x302)][_0x25c0c2(0x1d2)](Y,this[_0x25c0c2(0x25e)],this[_0x25c0c2(0x392)],_0x31d7dd,_0x115f6f,this['_handler'],void 0x0):this['_injector'][_0x25c0c2(0x1d2)](J,this[_0x25c0c2(0x25e)],this['type'],_0x31d7dd,this['_handler']);_0x5937fe[_0x25c0c2(0x1b1)](),this['_handler'][_0x25c0c2(0x1c1)](this,_0x5937fe);},_0x11e7ea);}[_0x19811e(0x1db)](){const _0x142cc5=_0x19811e;let _0x149707=this['_configService']['getConfig'](R);return(_0x149707==null?void 0x0:_0x149707[_0x142cc5(0x156)])??0x7d0;}['resend'](){const _0x431460=_0x19811e;throw Error(_0x431460(0x3dc));}[_0x19811e(0x3df)](){const _0x18f693=_0x19811e;this[_0x18f693(0x184)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x19811e(0x13a)](_0x5de659){const _0x25b8ee=_0x19811e;return this[_0x25b8ee(0x3df)](),this['_injector'][_0x25b8ee(0x1d2)](X,this[_0x25b8ee(0x25e)],this[_0x25b8ee(0x392)],null,this['_pendingMutations'],this[_0x25b8ee(0x151)],_0x5de659);}};q=mn=H([V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x480e6d(_0x4e5cfb)),V(0x6,_0x480e6d(_0x3e2728)),V(0x7,_0x1ba700),V(0x8,_0xef393c),V(0x9,_0x2477d9),V(0xa,_0x435fb7),V(0xb,_0x4f5fa8),V(0xc,_0x3d966a),V(0xd,_0x1e59a5(U))],q);let J=hn=class extends G{constructor(_0x490b86,_0x1127b0,_0x127cda,_0x778dee,_0x1590d5,_0xc9c1ad,_0x35215c,_0x2747ee,_0x4366eb,_0x294872,_0x2ef59f){const _0x278f38=_0x19811e;super(_0x490b86,_0x1127b0,_0x127cda,[],_0x778dee,_0x35215c,_0x294872,_0xc9c1ad,_0x2ef59f),this['_injector']=_0x1590d5,this['_logService']=_0x2747ee,this[_0x278f38(0x3d8)]=_0x4366eb,z(this,_0x278f38(0x18d),_0x278f38(0x3ad)),z(this,'_resendTimeout',0x0),z(this,_0x278f38(0x1ab),0x0),z(this,_0x278f38(0x3ca),void 0x0),z(this,_0x278f38(0x31a),void 0x0);}[_0x19811e(0x30a)](_0x35df59){const _0x501c35=_0x19811e;this[_0x501c35(0x3df)]();let _0x56d9d3=this[_0x501c35(0x302)][_0x501c35(0x1d2)](Y,this['unitID'],this[_0x501c35(0x392)],this['_awaitingChangeset'],[_0x35df59],this[_0x501c35(0x151)],this[_0x501c35(0x3ca)]);return _0x56d9d3[_0x501c35(0x1b1)](),_0x56d9d3;}['onRemoteChangeset'](_0x2624fd){const _0x1adf11=_0x19811e;if(this[_0x1adf11(0x12d)](_0x2624fd))return this[_0x1adf11(0x3df)](),this[_0x1adf11(0x302)]['createInstance'](Q,this[_0x1adf11(0x25e)],this[_0x1adf11(0x392)],this['_awaitingChangeset'],[],null,[_0x2624fd],this[_0x1adf11(0x151)]);try{let _0x300464=this[_0x1adf11(0x3d8)]['transformChangesets']([_0x2624fd],[this[_0x1adf11(0x21c)]],!0x1);if(_0x3c50a8(_0x300464)){let {c1Prime:_0xc7502,c2Prime:_0x1c7b2a}=_0x300464;this['_executeRemoteChangeset'](_0xc7502[0x0]),_0x1c7b2a[0x0][_0x1adf11(0x24c)]=this['_getCurrentRevision'](),this['_clearScheduledTask']();let _0x2899cf=this[_0x1adf11(0x302)][_0x1adf11(0x1d2)](hn,this['unitID'],this[_0x1adf11(0x392)],_0x1c7b2a[0x0],this[_0x1adf11(0x151)]);return _0x2899cf[_0x1adf11(0x1b1)](),_0x2899cf;}throw _0x300464['error'];}catch(_0x42ed98){return this[_0x1adf11(0x261)][_0x1adf11(0x2cd)](_0x42ed98),this[_0x1adf11(0x13a)](!0x1);}}[_0x19811e(0x33e)](_0x18845b){const _0x4d418f=_0x19811e;this[_0x4d418f(0x3df)]();let _0x199414=this['_revisionService'][_0x4d418f(0x2ea)](this[_0x4d418f(0x25e)]);if(_0x18845b[_0x4d418f(0x2fe)]<=_0x199414)return this;if(this['_checkMissing'](_0x18845b))return this[_0x4d418f(0x302)][_0x4d418f(0x1d2)](Q,this[_0x4d418f(0x25e)],this[_0x4d418f(0x392)],this['_awaitingChangeset'],[],_0x18845b['revision'],[],this[_0x4d418f(0x151)]);this[_0x4d418f(0x323)]();let _0x4f9a19=this[_0x4d418f(0x302)][_0x4d418f(0x1d2)](K,this[_0x4d418f(0x25e)],this[_0x4d418f(0x392)],this[_0x4d418f(0x151)]);return _0x4f9a19['_updateLocalCache'](),_0x4f9a19;}[_0x19811e(0x2d0)](_0x590214){const _0x44bf8a=_0x19811e;return this[_0x44bf8a(0x13a)](!!(_0x590214!=null&&_0x590214[_0x44bf8a(0x2b6)]));}[_0x19811e(0x36a)](_0x4619b2){const _0x4a6e05=_0x19811e;return this['_maxTotalRetryTimeout']>yn?this[_0x4a6e05(0x2de)]():(this[_0x4a6e05(0x3ca)]=pn(this['_resendTimeout'],{'timeout':this[_0x4a6e05(0x21f)],'reqId':_0x4619b2[_0x4a6e05(0x334)]}),this[_0x4a6e05(0x31a)]=this[_0x4a6e05(0x3ca)][_0x4a6e05(0x2c1)](({reqId:_0x3ccede,timeout:_0x4a9f91})=>{const _0x33f33b=_0x4a6e05;this[_0x33f33b(0x16b)](_0x3ccede,_0x4a9f91);}),this);}['toggleOffline'](){const _0x391615=_0x19811e;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this[_0x391615(0x25e)],this[_0x391615(0x392)],this[_0x391615(0x21c)],[],this['_handler']);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x218)](){const _0x190752=_0x19811e;this[_0x190752(0x151)][_0x190752(0x221)](this[_0x190752(0x21c)]);}['_onConflict'](_0x4967a9){const _0x4fcf31=_0x19811e;return this['_clearScheduledTask'](),this[_0x4fcf31(0x302)][_0x4fcf31(0x1d2)](X,this[_0x4fcf31(0x25e)],this[_0x4fcf31(0x392)],this['_awaitingChangeset'],[],this[_0x4fcf31(0x151)],_0x4967a9);}[_0x19811e(0x16b)](_0x39ab1d,_0x4106f5){const _0x17873b=_0x19811e;var _0x59c58d;_0x39ab1d===((_0x59c58d=this[_0x17873b(0x21c)])==null?void 0x0:_0x59c58d[_0x17873b(0x334)])&&(this['resend'](),this[_0x17873b(0x21f)]=_0x4106f5===0x0?0x3e8:Math[_0x17873b(0x134)](_0x4106f5*0x2,vn),this[_0x17873b(0x1ab)]+=this[_0x17873b(0x21f)]);}[_0x19811e(0x3df)](){const _0x2f6942=_0x19811e;var _0x37867c;(_0x37867c=this[_0x2f6942(0x31a)])==null||_0x37867c[_0x2f6942(0x185)](),this[_0x2f6942(0x21f)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};J=hn=H([V(0x4,_0x480e6d(_0x5a91fd)),V(0x5,_0x480e6d(_0x4e5cfb)),V(0x6,_0xef393c),V(0x7,_0x1ba700),V(0x8,_0x435fb7),V(0x9,_0x3d966a),V(0xa,_0x1e59a5(U))],J);let Y=gn=class extends G{constructor(_0x213b2b,_0x2f5f58,_0x56e822,_0xfbdfbe,_0x259ec0,_0x368b26,_0x4b8e89,_0x3537a8,_0x2c05ce,_0x2e9a99,_0x3dd73a,_0x4c9387,_0x5396b3){const _0x265440=_0x19811e;super(_0x213b2b,_0x2f5f58,_0x56e822,_0xfbdfbe,_0x259ec0,_0x2c05ce,_0x4c9387,_0x3537a8,_0x5396b3),this[_0x265440(0x302)]=_0x4b8e89,this[_0x265440(0x261)]=_0x2e9a99,this['_transformService']=_0x3dd73a,this[_0x265440(0x38c)]=_0x5396b3,z(this,_0x265440(0x18d),_0x265440(0x1ac)),z(this,_0x265440(0x21f),0x0),z(this,_0x265440(0x1ab),0x0),z(this,_0x265440(0x3ca),void 0x0),z(this,_0x265440(0x31a),void 0x0),_0x368b26&&(this[_0x265440(0x3ca)]=_0x368b26,this[_0x265440(0x31a)]=this[_0x265440(0x3ca)]['subscribe'](({reqId:_0x439d23,timeout:_0x4b01b4})=>{this['_resendWithTimeout'](_0x439d23,_0x4b01b4);}));}[_0x19811e(0x30a)](_0x1ea9e4){const _0x143e1b=_0x19811e;return this[_0x143e1b(0x33f)][_0x143e1b(0x335)](_0x1ea9e4),this;}[_0x19811e(0x1dd)](_0x5af09d){const _0x549a1e=_0x19811e;if(this[_0x549a1e(0x12d)](_0x5af09d))return this['_clearScheduledTask'](),this[_0x549a1e(0x302)][_0x549a1e(0x1d2)](Q,this[_0x549a1e(0x25e)],this['type'],this['_awaitingChangeset'],this[_0x549a1e(0x33f)],null,[_0x5af09d],this[_0x549a1e(0x151)]);try{let _0x5c3863=this['_transformService'][_0x549a1e(0x330)]([_0x5af09d],[this['_awaitingChangeset']],!0x1);if(_0x3c50a8(_0x5c3863)){let {c1Prime:_0x334318,c2Prime:_0x44d627}=_0x5c3863,_0x20dff6=this[_0x549a1e(0x3d8)][_0x549a1e(0x19d)](_0x334318[0x0],this[_0x549a1e(0x33f)]);if(_0x13dcd7(_0x20dff6)){let {c1Prime:_0xe8c5e1,m2Prime:_0x4a7a55}=_0x20dff6;return this[_0x549a1e(0x35c)](_0xe8c5e1),_0x44d627[0x0][_0x549a1e(0x24c)]=this[_0x549a1e(0x36b)](),this[_0x549a1e(0x3df)](),this[_0x549a1e(0x302)]['createInstance'](gn,this[_0x549a1e(0x25e)],this[_0x549a1e(0x392)],_0x44d627[0x0],_0x4a7a55,this['_handler'],void 0x0);}throw _0x20dff6[_0x549a1e(0x2cd)];}throw _0x5c3863[_0x549a1e(0x2cd)];}catch(_0x5dc142){return this[_0x549a1e(0x261)][_0x549a1e(0x2cd)](_0x5dc142),this[_0x549a1e(0x13a)](!0x1);}}['onRemoteAck'](_0x2b226a){const _0x51e242=_0x19811e;this['_clearScheduledTask']();let _0x183664=this['_getCurrentRevision']();if(_0x2b226a['revision']<=_0x183664)return this;if(this['_checkMissing'](_0x2b226a))return this[_0x51e242(0x302)]['createInstance'](Q,this[_0x51e242(0x25e)],this[_0x51e242(0x392)],this[_0x51e242(0x21c)],this[_0x51e242(0x33f)],_0x2b226a[_0x51e242(0x2fe)],[],this[_0x51e242(0x151)]);this[_0x51e242(0x323)]();let _0x412120=this[_0x51e242(0x302)][_0x51e242(0x1d2)](q,this[_0x51e242(0x25e)],this[_0x51e242(0x392)],this[_0x51e242(0x33f)],this[_0x51e242(0x151)]);return _0x412120['_schedule'](),_0x412120['_updateLocalCache'](),_0x412120;}['onRemoteRej'](_0x32e6e6){const _0x3fcf14=_0x19811e;return this[_0x3fcf14(0x13a)](!!(_0x32e6e6!=null&&_0x32e6e6[_0x3fcf14(0x2b6)]));}['onRemoteRetry'](_0x295eca){const _0x5ea8bd=_0x19811e;return this[_0x5ea8bd(0x1ab)]>yn?this[_0x5ea8bd(0x2de)]():(this[_0x5ea8bd(0x3ca)]=pn(this[_0x5ea8bd(0x21f)],{'timeout':this[_0x5ea8bd(0x21f)],'reqId':_0x295eca[_0x5ea8bd(0x334)]}),this[_0x5ea8bd(0x31a)]=this[_0x5ea8bd(0x3ca)][_0x5ea8bd(0x2c1)](({reqId:_0x560d0f,timeout:_0x307acc})=>{const _0x499679=_0x5ea8bd;this[_0x499679(0x16b)](_0x560d0f,_0x307acc);}),this);}['toggleOffline'](){const _0x32eb32=_0x19811e;return this['_clearScheduledTask'](),this['_injector']['createInstance'](Z,this[_0x32eb32(0x25e)],this['type'],this[_0x32eb32(0x21c)],this[_0x32eb32(0x33f)],this[_0x32eb32(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x218)](){const _0x15c915=_0x19811e;this[_0x15c915(0x151)][_0x15c915(0x221)](this['_awaitingChangeset']);}[_0x19811e(0x13a)](_0xb25b07){const _0x1d600a=_0x19811e;return this[_0x1d600a(0x3df)](),this[_0x1d600a(0x302)]['createInstance'](X,this[_0x1d600a(0x25e)],this[_0x1d600a(0x392)],null,this[_0x1d600a(0x33f)],this[_0x1d600a(0x151)],_0xb25b07);}[_0x19811e(0x16b)](_0x4e4b05,_0x2f7c4e){const _0x17dee0=_0x19811e;var _0xf76440;_0x4e4b05===((_0xf76440=this[_0x17dee0(0x21c)])==null?void 0x0:_0xf76440['reqId'])&&(this['resend'](),this['_resendTimeout']=_0x2f7c4e===0x0?0x3e8:Math[_0x17dee0(0x134)](_0x2f7c4e*0x2,vn),this[_0x17dee0(0x1ab)]+=this['_resendTimeout']);}[_0x19811e(0x3df)](){const _0x255423=_0x19811e;var _0x43febf;(_0x43febf=this['_sender'])==null||_0x43febf[_0x255423(0x185)](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};Y=gn=H([V(0x6,_0x480e6d(_0x5a91fd)),V(0x7,_0x480e6d(_0x4e5cfb)),V(0x8,_0xef393c),V(0x9,_0x1ba700),V(0xa,_0x435fb7),V(0xb,_0x3d966a),V(0xc,_0x1e59a5(U))],Y);let X=class extends G{constructor(_0x37d999,_0x2af230,_0x2b7e6e,_0x214c70,_0x263bc3,_0x4a5d1f=!0x1,_0x4d9da0,_0x15e410,_0x3ccfe0,_0x252e93,_0x3c9802,_0x237006,_0x2d075f){const _0x3f4060=_0x19811e;super(_0x37d999,_0x2af230,_0x2b7e6e,_0x214c70,_0x263bc3,_0x15e410,_0x3ccfe0,_0x252e93,_0x2d075f),this['_isPermissionRej']=_0x4a5d1f,this[_0x3f4060(0x283)]=_0x4d9da0,this[_0x3f4060(0x161)]=_0x3c9802,this[_0x3f4060(0x1af)]=_0x237006,this[_0x3f4060(0x38c)]=_0x2d075f,z(this,_0x3f4060(0x18d),_0x3f4060(0x19c)),this[_0x3f4060(0x3cd)](),this[_0x3f4060(0x260)](),this[_0x3f4060(0x354)]();}[_0x19811e(0x30a)](){return this;}[_0x19811e(0x1dd)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){return this;}[_0x19811e(0x214)](){return this;}['resend'](){const _0x225e6d=_0x19811e;throw Error(_0x225e6d(0x257));}async[_0x19811e(0x354)](){const _0x51196b=_0x19811e;var _0x471caa,_0x3d99c6;await((_0x471caa=this[_0x51196b(0x121)])==null||(_0x3d99c6=_0x471caa['backupOfflineData'])==null?void 0x0:_0x3d99c6['call'](_0x471caa,this[_0x51196b(0x25e)],_0x51196b(0x19c))['catch'](()=>void 0x0));try{var _0x24697a;await((_0x24697a=this['_localCacheService'])==null?void 0x0:_0x24697a['clearOfflineData'](this[_0x51196b(0x25e)]));}catch{this[_0x51196b(0x1af)][_0x51196b(0x24a)]({'id':_0x51196b(0x14c),'unitID':this[_0x51196b(0x25e)]});return;}this[_0x51196b(0x22a)]();}[_0x19811e(0x260)](){const _0x36fc64=_0x19811e;this['_collaborationUIEventService'][_0x36fc64(0x24a)]({'id':_0x36fc64(0x2c8)});}[_0x19811e(0x22a)](){const _0xca6e26=_0x19811e;this['_isPermissionRej']?this[_0xca6e26(0x1af)][_0xca6e26(0x24a)]({'id':_0xca6e26(0x30e)}):this[_0xca6e26(0x1af)][_0xca6e26(0x24a)]({'id':_0xca6e26(0x21d)});}['_disableEditing'](){const _0x2fbb96=_0x19811e;this[_0x2fbb96(0x283)][_0x2fbb96(0x3d1)](new _0x404767(this[_0x2fbb96(0x25e)])['id'],!0x1);}};X=H([V(0x6,_0x480e6d(_0x2197a8)),V(0x7,_0xef393c),V(0x8,_0x3d966a),V(0x9,_0x480e6d(_0x4e5cfb)),V(0xa,_0x480e6d(_0x1e8fb8)),V(0xb,_0x480e6d(B)),V(0xc,_0x1e59a5(U))],X);let Z=class extends G{constructor(_0xc510c3,_0x2c5c07,_0x5cf2b3,_0x4b77f9,_0x457197,_0x5cfaa4,_0x4572e5,_0x9779c2,_0x498cde,_0x4c35f3){const _0x2e4c7f=_0x19811e;super(_0xc510c3,_0x2c5c07,_0x5cf2b3,_0x4b77f9,_0x457197,_0x9779c2,_0x498cde,_0x4572e5,_0x4c35f3),this[_0x2e4c7f(0x302)]=_0x5cfaa4,z(this,_0x2e4c7f(0x18d),'offline');}[_0x19811e(0x30a)](_0x4aae89){const _0x4e839a=_0x19811e;return this[_0x4e839a(0x33f)][_0x4e839a(0x335)](_0x4aae89),this[_0x4e839a(0x1b1)](),this;}[_0x19811e(0x1dd)](_0x33ed9a){const _0x5958aa=_0x19811e;throw Error(_0x5958aa(0x290));}[_0x19811e(0x33e)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x19811e(0x2d0)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x19811e(0x36a)](){return this;}['toggleOffline'](){return this;}[_0x19811e(0x214)](){let {_injector:_0x42a271,_pendingMutations:_0x39d501,_awaitingChangeset:_0x1b7dc3,unitID:_0x269b2c,_handler:_0x4d4109,type:_0x2e2cbe}=this,_0x3d77eb=bn(_0x42a271,_0x269b2c,_0x2e2cbe,_0x1b7dc3,_0x39d501,_0x4d4109);return _0x3d77eb instanceof q?_0x3d77eb['_schedule']():(_0x3d77eb instanceof Y||_0x3d77eb instanceof J)&&_0x3d77eb['resend'](),_0x3d77eb;}[_0x19811e(0x218)](){const _0x1a126e=_0x19811e;throw Error(_0x1a126e(0x3ac));}};Z=H([V(0x5,_0x480e6d(_0x5a91fd)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0xef393c),V(0x8,_0x3d966a),V(0x9,_0x1e59a5(U))],Z);let Q=class extends G{constructor(_0x2b00a8,_0x259dfd,_0x59e137,_0x49aff8,_0x3a79fd,_0x20acbd,_0xeda8c7,_0x5c278e,_0x6779f1,_0x22c864,_0xa1a99d,_0x179703,_0x568215,_0x1195f3){const _0x4c69f9=_0x19811e;super(_0x2b00a8,_0x259dfd,_0x59e137,_0x49aff8,_0xeda8c7,_0xa1a99d,_0x179703,_0x6779f1,_0x1195f3),this[_0x4c69f9(0x1e6)]=_0x3a79fd,this['_queuedRemoteChangesets']=_0x20acbd,this[_0x4c69f9(0x302)]=_0x5c278e,this[_0x4c69f9(0x261)]=_0x22c864,this['_transformService']=_0x568215,this[_0x4c69f9(0x38c)]=_0x1195f3,z(this,_0x4c69f9(0x18d),_0x4c69f9(0x2fd));}[_0x19811e(0x22d)](_0x12b4b5){const _0x4b4be2=_0x19811e;try{if(this['_handleRemoteChangesets'](_0x12b4b5)['missingChangesets'])throw Error(_0x4b4be2(0x30b));if(this[_0x4b4be2(0x3d6)]([...this['_queuedRemoteChangesets']][_0x4b4be2(0x2a8)]((_0x55eea3,_0x1acda6)=>_0x55eea3[_0x4b4be2(0x2fe)]-_0x1acda6['revision']))[_0x4b4be2(0x1d5)])return this['_queuedRemoteChangesets']=[],this[_0x4b4be2(0x1b1)](),this[_0x4b4be2(0x151)][_0x4b4be2(0x3db)]({'from':this[_0x4b4be2(0x36b)](),'to':0x0}),this;let _0x515dac=this[_0x4b4be2(0x21c)],_0x4f6e04=this['_pendingMutations'],_0x1940fc;if(_0x515dac&&_0x4f6e04[_0x4b4be2(0x2ab)]!==0x0)_0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](Y,this['unitID'],this[_0x4b4be2(0x392)],_0x515dac,_0x4f6e04,this[_0x4b4be2(0x151)],void 0x0);else{if(_0x515dac&&_0x4f6e04['length']===0x0)_0x515dac['baseRev']=this[_0x4b4be2(0x36b)](),_0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](J,this[_0x4b4be2(0x25e)],this[_0x4b4be2(0x392)],_0x515dac,this['_handler']);else{if(_0x4f6e04[_0x4b4be2(0x2ab)]!==0x0){let _0x576f7b=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](q,this['unitID'],this[_0x4b4be2(0x392)],_0x4f6e04,this[_0x4b4be2(0x151)]);_0x576f7b['_schedule'](),_0x1940fc=_0x576f7b;}else _0x1940fc=this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](K,this['unitID'],this[_0x4b4be2(0x392)],this['_handler']);}}return _0x1940fc[_0x4b4be2(0x1b1)](),_0x1940fc;}catch(_0x4af068){return this[_0x4b4be2(0x261)][_0x4b4be2(0x2cd)]('[FetchMissState]',_0x4b4be2(0x1fa),_0x4af068),this[_0x4b4be2(0x302)][_0x4b4be2(0x1d2)](X,this['unitID'],this['type'],this[_0x4b4be2(0x21c)],this['_pendingMutations'],this[_0x4b4be2(0x151)],!0x1);}}[_0x19811e(0x3d6)](_0x30d2ba){const _0x183949=_0x19811e;this['_acknowledgeAwaitingIfReady']();for(let _0x27b005=0x0;_0x27b005<_0x30d2ba['length'];_0x27b005++){let _0x26e1cb=_0x30d2ba[_0x27b005],_0x8cd192=this['_getCurrentRevision']();if(!(_0x26e1cb[_0x183949(0x2fe)]<=_0x8cd192)){if(_0x26e1cb[_0x183949(0x2fe)]>_0x8cd192+0x1)return{'missingChangesets':!0x0};if(this[_0x183949(0x168)](_0x26e1cb)){this['_acknowledgeAwaiting']();continue;}this[_0x183949(0x292)](_0x26e1cb),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x19811e(0x292)](_0x7ddd86){const _0x383d01=_0x19811e;let _0x4c3fb8=_0x7ddd86,_0x370ef4=this[_0x383d01(0x21c)];if(_0x370ef4){let _0x4117ef=this['_transformService'][_0x383d01(0x330)]([_0x7ddd86],[_0x370ef4],!0x1);if(!_0x3c50a8(_0x4117ef))throw _0x4117ef[_0x383d01(0x2cd)];_0x4c3fb8=_0x4117ef[_0x383d01(0x3a7)][0x0],_0x370ef4=_0x4117ef['c2Prime'][0x0];}let _0x21dd03=this['_pendingMutations'];if(_0x21dd03[_0x383d01(0x2ab)]){let _0x21d914=this[_0x383d01(0x3d8)][_0x383d01(0x19d)](_0x4c3fb8,_0x21dd03);if(!_0x13dcd7(_0x21d914))throw _0x21d914[_0x383d01(0x2cd)];_0x4c3fb8=_0x21d914['c1Prime'],_0x21dd03=_0x21d914[_0x383d01(0x2ba)];}this['_executeRemoteChangeset'](_0x4c3fb8),_0x370ef4&&(_0x370ef4['baseRev']=this[_0x383d01(0x36b)]()),this[_0x383d01(0x21c)]=_0x370ef4,this[_0x383d01(0x33f)]=_0x21dd03;}[_0x19811e(0x196)](){const _0x4391cb=_0x19811e;if(!this[_0x4391cb(0x21c)]||this[_0x4391cb(0x1e6)]==null)return;let _0x35a493=this[_0x4391cb(0x36b)]();if(this[_0x4391cb(0x1e6)]<=_0x35a493)throw Error(_0x4391cb(0x3e0)+this[_0x4391cb(0x1e6)]+'.');this['_acknowledgedAwaitingRevision']===_0x35a493+0x1&&this[_0x4391cb(0x275)]();}['_acknowledgeAwaiting'](){const _0x2fcc4e=_0x19811e;this[_0x2fcc4e(0x323)](),this[_0x2fcc4e(0x21c)]=null,this[_0x2fcc4e(0x1e6)]=null;}[_0x19811e(0x168)](_0x39f0bb){const _0x1e2236=_0x19811e;let _0x8eb3eb=this[_0x1e2236(0x21c)];return!_0x8eb3eb||!_0x8eb3eb['sid']||_0x8eb3eb[_0x1e2236(0x334)]===null||_0x8eb3eb[_0x1e2236(0x334)]===void 0x0?!0x1:_0x39f0bb[_0x1e2236(0x25e)]===_0x8eb3eb[_0x1e2236(0x25e)]&&_0x39f0bb['sid']===_0x8eb3eb[_0x1e2236(0x22f)]&&_0x39f0bb[_0x1e2236(0x334)]===_0x8eb3eb['reqId'];}[_0x19811e(0x218)](){const _0x4279e0=_0x19811e;throw Error(_0x4279e0(0x2d5));}[_0x19811e(0x30a)](_0x56854d){const _0x17f981=_0x19811e;return this[_0x17f981(0x33f)][_0x17f981(0x335)](_0x56854d),this;}[_0x19811e(0x1dd)](_0x4c24c1){const _0x30e51d=_0x19811e;return this[_0x30e51d(0x12e)]['push'](_0x4c24c1),this;}[_0x19811e(0x33e)](_0x4b4ecb){const _0x218e09=_0x19811e;if(this['_awaitingChangeset']){let _0x4611b1=this[_0x218e09(0x36b)]();return _0x4b4ecb['revision']<=_0x4611b1||(_0x4611b1+0x1===_0x4b4ecb[_0x218e09(0x2fe)]?(this['_incrementRevisionNumber'](),this[_0x218e09(0x21c)]=null,this[_0x218e09(0x1e6)]=null):this[_0x218e09(0x1e6)]=_0x4b4ecb[_0x218e09(0x2fe)]),this;}if(_0x4b4ecb[_0x218e09(0x2fe)]<=this['_getCurrentRevision']())return this;throw Error(_0x218e09(0x1b3));}[_0x19811e(0x2d0)](_0x4f4aa7){const _0x3cdfa5=_0x19811e;return this[_0x3cdfa5(0x13a)](!!(_0x4f4aa7!=null&&_0x4f4aa7[_0x3cdfa5(0x2b6)]));}['onRemoteRetry'](){return this;}[_0x19811e(0x2de)](){const _0x174254=_0x19811e;return this['_injector'][_0x174254(0x1d2)](Z,this[_0x174254(0x25e)],this['type'],this[_0x174254(0x21c)],this[_0x174254(0x33f)],this[_0x174254(0x151)]);}[_0x19811e(0x214)](){return this;}[_0x19811e(0x13a)](_0x1da4be){const _0x3e1672=_0x19811e;return this[_0x3e1672(0x302)][_0x3e1672(0x1d2)](X,this[_0x3e1672(0x25e)],this['type'],this[_0x3e1672(0x21c)],this['_pendingMutations'],this[_0x3e1672(0x151)],_0x1da4be);}};Q=H([V(0x7,_0x480e6d(_0x5a91fd)),V(0x8,_0x480e6d(_0x4e5cfb)),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x3d966a),V(0xc,_0x435fb7),V(0xd,_0x1e59a5(U))],Q);function bn(_0x48dd92,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x2c0f5f,_0x580afa){const _0x3d2a7d=_0x19811e;return _0x1e8b81&&_0x2c0f5f[_0x3d2a7d(0x2ab)]?_0x48dd92[_0x3d2a7d(0x1d2)](Y,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x2c0f5f,_0x580afa,void 0x0):_0x1e8b81?_0x48dd92[_0x3d2a7d(0x1d2)](J,_0x51fda6,_0x4dc8bc,_0x1e8b81,_0x580afa):_0x2c0f5f[_0x3d2a7d(0x2ab)]?_0x48dd92[_0x3d2a7d(0x1d2)](q,_0x51fda6,_0x4dc8bc,_0x2c0f5f,_0x580afa):_0x48dd92[_0x3d2a7d(0x1d2)](K,_0x51fda6,_0x4dc8bc,_0x580afa);}let $=class extends _0x39685b{get[_0x19811e(0x195)](){const _0x194581=_0x19811e;return this[_0x194581(0x301)];}constructor(_0x3d00bb,_0x348ca5,_0x37ef58,_0x57e82f,_0xe5b284,_0x37bf29,_0x388e77,_0x48d300,_0x26a23d,_0x40f26b,_0x16fa17,_0x4fceaa,_0x1df4e2,_0xc9e364){const _0xfc6731=_0x19811e;super(),this['unitID']=_0x3d00bb,this[_0xfc6731(0x23c)]=_0x348ca5,this['_type']=_0x37ef58,this[_0xfc6731(0x302)]=_0x57e82f,this[_0xfc6731(0x20d)]=_0xe5b284,this['_localeService']=_0x37bf29,this['_revisionService']=_0x388e77,this[_0xfc6731(0x373)]=_0x48d300,this[_0xfc6731(0x2e7)]=_0x26a23d,this[_0xfc6731(0x261)]=_0x40f26b,this[_0xfc6731(0x3aa)]=_0x16fa17,this[_0xfc6731(0x283)]=_0x4fceaa,this[_0xfc6731(0x399)]=_0x1df4e2,this[_0xfc6731(0x121)]=_0xc9e364,z(this,_0xfc6731(0x314),new _0x5d64e7(null)),z(this,_0xfc6731(0x2a4),this[_0xfc6731(0x314)]['asObservable']()),z(this,'_state',void 0x0),z(this,'_collaborationPaused',!0x1),z(this,_0xfc6731(0x1e8),''),z(this,_0xfc6731(0x1fc),0x0),z(this,'status$',this[_0xfc6731(0x2a4)][_0xfc6731(0x273)](_0x5f1f30(_0x4c424d=>_0x4c424d?_0x4c424d[_0xfc6731(0x18d)]:_0xfc6731(0x192)),_0x34e70e({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0xfc6731(0x1bf),!0x1),z(this,_0xfc6731(0x37b),[]);}async[_0x19811e(0x26e)](){const _0xdcf2b2=_0x19811e;if(this['state'])throw Error(_0xdcf2b2(0x26d));await this[_0xdcf2b2(0x28f)]();}[_0x19811e(0x281)](){const _0x5e766b=_0x19811e;return this[_0x5e766b(0x163)]=!0x0,_0x215dfb(()=>{const _0x54c6b4=_0x5e766b;this[_0x54c6b4(0x163)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x19811e(0x147)](_0x3c867a){const _0x2ebcdf=_0x19811e;this[_0x2ebcdf(0x226)](_0x3c867a);}['_updateState'](_0x48cb92){const _0x1f93d7=_0x19811e;this[_0x1f93d7(0x301)]=_0x48cb92,this[_0x1f93d7(0x314)][_0x1f93d7(0x2d6)](_0x48cb92);}async[_0x19811e(0x28f)](){const _0x2228fe=_0x19811e;if(this[_0x2228fe(0x1e2)](await this[_0x2228fe(0x2d3)]()),this[_0x2228fe(0x399)]){var _0x369055;(_0x369055=this['_singleActiveUnitService'])==null||_0x369055[_0x2228fe(0x1e5)](this[_0x2228fe(0x25e)]),this[_0x2228fe(0x34b)](this[_0x2228fe(0x399)][_0x2228fe(0x2a0)](this[_0x2228fe(0x25e)])[_0x2228fe(0x2c1)](_0x32a647=>{const _0x2390a0=_0x2228fe;this['_logService']['debug'](_0x2390a0(0x3b6),_0x2390a0(0x355),_0x32a647),_0x32a647===0x1?(this[_0x2390a0(0x373)]['emitEvent']({'id':_0x2390a0(0x190)}),this['_permissionService'][_0x2390a0(0x3d1)](new _0x404767(this[_0x2390a0(0x25e)])['id'],!0x1),this[_0x2390a0(0x283)][_0x2390a0(0x363)](!0x1)):(this[_0x2390a0(0x283)][_0x2390a0(0x3d1)](new _0x404767(this[_0x2390a0(0x25e)])['id'],!0x0),this[_0x2390a0(0x283)][_0x2390a0(0x363)](!0x0));}));}let _0x312cff=!0x1;return this[_0x2228fe(0x34b)](this[_0x2228fe(0x23c)][_0x2228fe(0x3a5)][_0x2228fe(0x2c1)](_0x32d403=>{_0x32d403===0x3?this['_toggleOnline'](_0x312cff):_0x32d403===0x2&&(_0x312cff=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x2228fe(0x23c)][_0x2228fe(0x360)][_0x2228fe(0x2c1)](_0x5d44d3=>{const _0x3aeda6=_0x2228fe;try{switch(_0x5d44d3['eventID']){case _0x27a7e8[_0x3aeda6(0x398)]:this[_0x3aeda6(0x297)](_0x52ab46(_0x5d44d3[_0x3aeda6(0x202)]));break;case _0x27a7e8[_0x3aeda6(0x203)]:this[_0x3aeda6(0x245)](_0x5d44d3['data']);break;case _0x27a7e8[_0x3aeda6(0x265)]:this['_onRemoteRejected']();break;case _0x27a7e8['CHANGESET_SHOULD_RETRY']:this[_0x3aeda6(0x376)](_0x5d44d3[_0x3aeda6(0x202)]);break;case _0x27a7e8[_0x3aeda6(0x26c)]:this['_onFetchMissResult'](_0x5d44d3[_0x3aeda6(0x202)][_0x3aeda6(0x188)][_0x3aeda6(0x1a3)](_0xed743=>_0x52ab46(_0xed743)));break;case _0x27a7e8[_0x3aeda6(0x336)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case _0x27a7e8[_0x3aeda6(0x288)]:}}catch(_0x22a32e){throw console[_0x3aeda6(0x2cd)](_0x3aeda6(0x390),_0x22a32e),_0x22a32e;}})),this[_0x2228fe(0x301)];}[_0x19811e(0x176)](){this['_transitionLocked']=!0x1;}[_0x19811e(0x150)](){const _0x107ddc=_0x19811e;if(this[_0x107ddc(0x1bf)])throw Error(_0x107ddc(0x1f0));this[_0x107ddc(0x1bf)]=!0x0;}[_0x19811e(0x226)](_0x39cbff){const _0x3f1e47=_0x19811e;this[_0x3f1e47(0x150)](),this[_0x3f1e47(0x1e2)](this[_0x3f1e47(0x301)]['appendMutation'](_0x39cbff)),this[_0x3f1e47(0x176)]();}[_0x19811e(0x297)](_0x4ad6d3){const _0x3e4162=_0x19811e;if(!(_0x4ad6d3[_0x3e4162(0x2fe)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x3e4162(0x25e)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x4ad6d3);return;}this[_0x3e4162(0x13e)](_0x4ad6d3);}}['_exhaustRemoteChangesetQueue'](){const _0x5c33c9=_0x19811e;this['_remoteChangesetQueue'][_0x5c33c9(0x332)](_0x21e4c4=>this[_0x5c33c9(0x13e)](_0x21e4c4)),this[_0x5c33c9(0x37b)]=[];}['_applyRemoteChangeset'](_0x4540d4){const _0x18e9c3=_0x19811e;let _0x3b1a69=this[_0x18e9c3(0x20d)]['interceptor'][_0x18e9c3(0x32b)](this['_compressMutationService'][_0x18e9c3(0x352)][_0x18e9c3(0x14d)]()[_0x18e9c3(0x381)])(_0x4540d4[_0x18e9c3(0x16e)],null)||_0x4540d4[_0x18e9c3(0x16e)],_0x31f921={..._0x4540d4,'mutations':_0x3b1a69};this[_0x18e9c3(0x150)](),this[_0x18e9c3(0x1e2)](this[_0x18e9c3(0x301)][_0x18e9c3(0x1dd)](_0x31f921)),this[_0x18e9c3(0x176)]();}[_0x19811e(0x245)](_0x344ce3){const _0x4033fb=_0x19811e;this[_0x4033fb(0x150)](),this[_0x4033fb(0x1e2)](this[_0x4033fb(0x301)][_0x4033fb(0x33e)](_0x344ce3)),this['_unlockTransition']();}['_onRemoteRejected'](_0x62eae){const _0xf049b0=_0x19811e;this[_0xf049b0(0x150)](),this[_0xf049b0(0x1e2)](this['_state'][_0xf049b0(0x2d0)](_0x62eae)),this[_0xf049b0(0x176)]();}['_onRemoteRetry'](_0xba3f71){const _0x447530=_0x19811e;this['_lockTransition'](),this[_0x447530(0x1e2)](this[_0x447530(0x301)]['onRemoteRetry'](_0xba3f71)),this[_0x447530(0x176)]();}['_onFetchMissResult'](_0x400469){const _0x3bac32=_0x19811e;if(!(this[_0x3bac32(0x301)]instanceof Q))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x296dc8=_0x400469[_0x3bac32(0x1a3)](_0x285c44=>{const _0x2b0fc4=_0x3bac32;let _0x609393=this[_0x2b0fc4(0x20d)][_0x2b0fc4(0x352)][_0x2b0fc4(0x32b)](this[_0x2b0fc4(0x20d)][_0x2b0fc4(0x352)][_0x2b0fc4(0x14d)]()[_0x2b0fc4(0x381)])(_0x285c44['mutations'],null)||_0x285c44['mutations'];return{..._0x285c44,'mutations':_0x609393};});this[_0x3bac32(0x150)](),this[_0x3bac32(0x1e2)](this[_0x3bac32(0x301)][_0x3bac32(0x22d)](_0x296dc8)),this['_unlockTransition']();}['_toggleOffline'](){const _0x36f696=_0x19811e;this[_0x36f696(0x150)](),this[_0x36f696(0x1e2)](this[_0x36f696(0x301)][_0x36f696(0x2de)]()),this[_0x36f696(0x176)]();}['_toggleOnline'](_0x179868=!0x1){const _0x3a9e62=_0x19811e;this['_lockTransition'](),this['_updateState'](this[_0x3a9e62(0x301)][_0x3a9e62(0x214)]()),this[_0x3a9e62(0x176)]();let _0x53bfd9=this['_state'];_0x179868&&_0x53bfd9 instanceof K&&(this[_0x3a9e62(0x150)](),this[_0x3a9e62(0x1e2)](_0x53bfd9[_0x3a9e62(0x159)]()),this['_unlockTransition']());}async[_0x19811e(0x2d3)](){return new Promise(_0x663f20=>{const _0x64ca0b=_0x32e6;this[_0x64ca0b(0x23c)][_0x64ca0b(0x3a5)][_0x64ca0b(0x273)](_0x5c55cb(0x1))[_0x64ca0b(0x2c1)](async _0x741457=>{const _0x3d33f3=_0x64ca0b;_0x663f20(await this[_0x3d33f3(0x12b)](_0x741457===0x3));});});}['_createHandler'](){const _0x16ce72=_0x19811e;let _0x1dfe1b=this[_0x16ce72(0x25e)];return{'onStateChange':(_0x5d0e97,_0x1ac306)=>{const _0x241dc6=_0x16ce72;if(_0x5d0e97!==this[_0x241dc6(0x301)])throw Error(_0x241dc6(0x317)+_0x5d0e97[_0x241dc6(0x18d)]+'\x0aAfter:\x20'+_0x1ac306[_0x241dc6(0x18d)]+'\x0aCurrent:\x20'+this[_0x241dc6(0x301)][_0x241dc6(0x18d)]);this[_0x241dc6(0x1e2)](_0x1ac306);},'onSendChangeset':_0x24743e=>{const _0x13a6b3=_0x16ce72;_0x24743e[_0x13a6b3(0x22f)]||(_0x24743e[_0x13a6b3(0x22f)]=this[_0x13a6b3(0x1e8)],_0x24743e[_0x13a6b3(0x334)]=++this['_changesetReqId']);let _0x23416d={'eventID':_0x27a7e8[_0x13a6b3(0x1f6)],'data':{'unitID':_0x24743e[_0x13a6b3(0x25e)],'unitType':this[_0x13a6b3(0x27b)],'changeset':_0x24743e,'memberID':this['session'][_0x13a6b3(0x350)]()}};this[_0x13a6b3(0x23c)][_0x13a6b3(0x173)](_0x23416d,this[_0x13a6b3(0x25e)]);},'onMissingChangesets':({from:_0x431e4b,to:_0x3f5a7b})=>{const _0x4dbc24=_0x16ce72;this['_logService'][_0x4dbc24(0x1d1)]('[CollaborationEntity]',_0x4dbc24(0x27d)+_0x431e4b+_0x4dbc24(0x304)+_0x3f5a7b);let _0x36f84e={'eventID':_0x27a7e8[_0x4dbc24(0x39b)],'data':{'unitID':_0x1dfe1b,'unitType':this[_0x4dbc24(0x27b)],'from':_0x431e4b,'to':_0x3f5a7b}};this[_0x4dbc24(0x23c)][_0x4dbc24(0x173)](_0x36f84e,this[_0x4dbc24(0x25e)]);}};}async['_createInitialStateImpl'](_0x6ee127){const _0x392c02=_0x19811e;var _0x5e033e;let _0x72c599=await((_0x5e033e=this[_0x392c02(0x121)])==null?void 0x0:_0x5e033e[_0x392c02(0x152)](this['unitID'])),_0xb7a472=(_0x72c599==null?void 0x0:_0x72c599[_0x392c02(0x16e)])??[],_0x52c585=(_0x72c599==null?void 0x0:_0x72c599['awaitingChangeset'])??null,_0x274596=!!(_0x52c585!=null&&_0x52c585['sid'])&&!!(_0x52c585!=null&&_0x52c585['reqId']);this[_0x392c02(0x1e8)]=_0x274596?_0x52c585['sid']:_0x640bce(),this[_0x392c02(0x1fc)]=_0x274596?_0x52c585['reqId']:0x0;let _0x16fff4=this[_0x392c02(0x25e)];try{this['_replayCachedMutations'](_0x52c585,_0xb7a472);}catch(_0x28b581){this['_logService'][_0x392c02(0x2cd)](_0x28b581);}let _0x53011a=this[_0x392c02(0x36f)]();if(_0x6ee127){let _0x2d7b03=bn(this[_0x392c02(0x302)],_0x16fff4,this[_0x392c02(0x27b)],_0x52c585,_0xb7a472,_0x53011a);return _0x2d7b03 instanceof q?_0x2d7b03[_0x392c02(0x235)]():(_0x2d7b03 instanceof Y||_0x2d7b03 instanceof J)&&_0x2d7b03['resend'](),_0x2d7b03;}return this[_0x392c02(0x302)]['createInstance'](Z,_0x16fff4,this[_0x392c02(0x27b)],_0x52c585,_0xb7a472,_0x53011a);}[_0x19811e(0x3d2)](_0x410c66,_0x2e5edc){const _0x341c2d=_0x19811e;var _0x9e1cbc,_0x4adf88;let _0x4f15a5=this[_0x341c2d(0x20d)][_0x341c2d(0x352)][_0x341c2d(0x32b)](this['_compressMutationService'][_0x341c2d(0x352)]['getInterceptPoints']()[_0x341c2d(0x381)]);(_0x9e1cbc=_0x4f15a5((_0x410c66==null?void 0x0:_0x410c66[_0x341c2d(0x16e)])||[],null))==null||_0x9e1cbc[_0x341c2d(0x332)](_0xc77130=>this[_0x341c2d(0x3aa)]['executeCommand'](_0xc77130['id'],_0xc77130[_0x341c2d(0x359)])),(_0x4adf88=_0x4f15a5(_0x2e5edc||[],null))==null||_0x4adf88[_0x341c2d(0x332)](_0x4463=>this['_commandService'][_0x341c2d(0x144)](_0x4463['id'],_0x4463[_0x341c2d(0x359)]));}};$=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],$);let xn=class extends ${constructor(_0x43d29c,_0x40c788,_0x33eeda,_0x1084c6,_0x195b83,_0x5b24bc,_0x266b88,_0x5611b8,_0x27b102,_0x25e281,_0x51a953,_0x2c6b5a,_0x383374,_0x581db7,_0x448e06){const _0x531e2e=_0x19811e;super(_0x43d29c,_0x33eeda,_0x40c788,_0x1084c6,_0x195b83,_0x5b24bc,_0x266b88,_0x5611b8,_0x27b102,_0x25e281,_0x51a953,_0x2c6b5a,_0x581db7,_0x448e06),this[_0x531e2e(0x25e)]=_0x43d29c,this[_0x531e2e(0x392)]=_0x40c788,this[_0x531e2e(0x338)]=_0x383374,z(this,_0x531e2e(0x1cb),null);}[_0x19811e(0x3d0)](_0x59ec6d){const _0x340091=_0x19811e;this[_0x340091(0x1cb)]=_0x59ec6d;}[_0x19811e(0x194)](){const _0x733e51=_0x19811e;this[_0x733e51(0x1cb)]=null,super[_0x733e51(0x194)]();}['_createHandler'](){const _0x47363e=_0x19811e;let _0x36d6af=super[_0x47363e(0x36f)]();return _0x36d6af[_0x47363e(0x24b)]=_0x3e175f=>{const _0x41d595=_0x47363e;var _0x700d27,_0x1937c1;return(_0x700d27=this['_handlerCallback'])==null||(_0x1937c1=_0x700d27[_0x41d595(0x24b)])==null?void 0x0:_0x1937c1[_0x41d595(0x167)](_0x700d27,_0x3e175f);},_0x36d6af[_0x47363e(0x2ac)]=_0x2156f8=>{const _0x4d8533=_0x47363e;var _0xb86dab,_0x175fbe;return(_0xb86dab=this[_0x4d8533(0x1cb)])==null||(_0x175fbe=_0xb86dab[_0x4d8533(0x2ac)])==null?void 0x0:_0x175fbe['call'](_0xb86dab,_0x2156f8);},_0x36d6af[_0x47363e(0x138)]=_0x5f22a8=>{const _0x588d29=_0x47363e;var _0x4449be,_0x380f9f;return((_0x4449be=this['_handlerCallback'])==null||(_0x380f9f=_0x4449be[_0x588d29(0x138)])==null?void 0x0:_0x380f9f[_0x588d29(0x167)](_0x4449be,_0x5f22a8))??null;},_0x36d6af[_0x47363e(0x287)]=_0x1047b0=>{const _0x3c5f57=_0x47363e;var _0x507137,_0x16ecdb;return(_0x507137=this[_0x3c5f57(0x1cb)])==null||(_0x16ecdb=_0x507137[_0x3c5f57(0x287)])==null?void 0x0:_0x16ecdb[_0x3c5f57(0x167)](_0x507137,_0x1047b0);},_0x36d6af['onSyncEditingCollabCursor']=_0x2a2823=>{const _0x526479=_0x47363e;var _0x51e35e,_0x41404d;return(_0x51e35e=this[_0x526479(0x1cb)])==null||(_0x41404d=_0x51e35e[_0x526479(0x36e)])==null?void 0x0:_0x41404d[_0x526479(0x167)](_0x51e35e,_0x2a2823);},_0x36d6af['onTransformRemoteChangesetByIMECache']=_0x25b45e=>{const _0x558131=_0x47363e;var _0x4e513e,_0x1bceb1;return((_0x4e513e=this[_0x558131(0x1cb)])==null||(_0x1bceb1=_0x4e513e[_0x558131(0x258)])==null?void 0x0:_0x1bceb1['call'](_0x4e513e,_0x25b45e))??_0x25b45e;},_0x36d6af[_0x47363e(0x31b)]=_0xf9a4b=>{const _0x4d823f=_0x47363e;var _0x1376bb,_0x29a3d7;return((_0x1376bb=this[_0x4d823f(0x1cb)])==null||(_0x29a3d7=_0x1376bb['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x29a3d7['call'](_0x1376bb,_0xf9a4b))??_0xf9a4b;},_0x36d6af;}async['_init'](){const _0x12c5e4=_0x19811e;let _0x19f52b=await super[_0x12c5e4(0x28f)]();return this[_0x12c5e4(0x34b)](this['_docStateChangeManagerService']['docStateChange$'][_0x12c5e4(0x2c1)](_0x452a3e=>{const _0x4ab3c9=_0x12c5e4;if(_0x452a3e==null||_0x452a3e[_0x4ab3c9(0x22b)]!==this[_0x4ab3c9(0x25e)])return;let {commandId:_0x388292,redoState:_0x81afe5,unitId:_0x3077c7}=_0x452a3e,_0x13b00f={'id':_0x388292,'type':_0x40fa30['MUTATION'],'params':{'unitId':_0x3077c7,'actions':_0x81afe5[_0x4ab3c9(0x303)],'textRanges':null}};this['_onLocalMutation'](_0x13b00f);})),this[_0x12c5e4(0x34b)](this[_0x12c5e4(0x3aa)][_0x12c5e4(0x142)]((_0x39d6da,_0x55ca65)=>{const _0x248662=_0x12c5e4;if(_0x39d6da[_0x248662(0x392)]!==_0x40fa30[_0x248662(0x24f)]||_0x55ca65!=null&&_0x55ca65[_0x248662(0x1f2)]||_0x55ca65!=null&&_0x55ca65[_0x248662(0x3cb)]||_0x39d6da['id']===_0x3a809f['id'])return;let _0x56ad6e=_0x39d6da[_0x248662(0x359)];if((_0x56ad6e==null?void 0x0:_0x56ad6e[_0x248662(0x22b)])!==this[_0x248662(0x25e)])return;let _0x29076d=_0x39d6da,_0x69c8b3=this[_0x248662(0x20d)][_0x248662(0x352)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x248662(0x14d)]()['COMPRESS_MUTATION_SEND'])([_0x29076d],this[_0x248662(0x2e7)])||[_0x29076d];this['_onLocalMutation'](_0x69c8b3[0x0]);})),_0x19f52b;}};xn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x480e6d(_0x17b259)),V(0xd,_0x1e59a5(W)),V(0xe,_0x1e59a5(U))],xn);let Sn=class extends ${constructor(_0x20f01c,_0x1fface,_0x2312ce,_0x281d22,_0x1f305d,_0x135d6b,_0x4b7ede,_0x33456f,_0x8098ff,_0x1b5f49,_0x34e79d,_0x287976,_0x214443,_0x10fc52){const _0x5ef55f=_0x19811e;super(_0x20f01c,_0x2312ce,_0x1fface,_0x281d22,_0x1f305d,_0x135d6b,_0x4b7ede,_0x33456f,_0x8098ff,_0x1b5f49,_0x34e79d,_0x287976,_0x214443,_0x10fc52),this[_0x5ef55f(0x25e)]=_0x20f01c,this['type']=_0x1fface;}async['_init'](){const _0x183ac3=_0x19811e;let _0x302a39=await super[_0x183ac3(0x28f)]();return this[_0x183ac3(0x34b)](this['_commandService'][_0x183ac3(0x142)]((_0x5b0d08,_0x1064aa)=>{const _0x593b47=_0x183ac3;if(_0x5b0d08[_0x593b47(0x392)]!==_0x40fa30[_0x593b47(0x24f)]||_0x1064aa!=null&&_0x1064aa['fromCollab']||_0x1064aa!=null&&_0x1064aa[_0x593b47(0x3cb)])return;let _0x11daea=_0x5b0d08[_0x593b47(0x359)];if((_0x11daea==null?void 0x0:_0x11daea[_0x593b47(0x22b)])!==this[_0x593b47(0x25e)])return;let _0x52fa56=_0x5b0d08,_0x590854=this[_0x593b47(0x20d)][_0x593b47(0x352)]['fetchThroughInterceptors'](this[_0x593b47(0x20d)][_0x593b47(0x352)][_0x593b47(0x14d)]()[_0x593b47(0x1d3)])([_0x52fa56],this[_0x593b47(0x2e7)])||[_0x52fa56];this[_0x593b47(0x226)](_0x590854[0x0]);})),_0x302a39;}};Sn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],Sn);let Cn=class extends ${constructor(_0xb9beaf,_0x553833,_0x38122b,_0x25f9fd,_0x47c975,_0x339f83,_0x5d1e31,_0x17d2ac,_0x350511,_0x5dfdb5,_0xa9405d,_0x3ee86c,_0x5cc85c,_0x17f33c,_0x5a0024){const _0x244f88=_0x19811e;super(_0xb9beaf,_0x38122b,_0x553833,_0x25f9fd,_0x47c975,_0x339f83,_0x5d1e31,_0x350511,_0x5dfdb5,_0xa9405d,_0x3ee86c,_0x5cc85c,_0x17f33c,_0x5a0024),this['unitID']=_0xb9beaf,this[_0x244f88(0x392)]=_0x553833,this[_0x244f88(0x224)]=_0x17d2ac;}[_0x19811e(0x36f)](){const _0xe8e047=_0x19811e;let _0x115400=super[_0xe8e047(0x36f)]();return _0x115400[_0xe8e047(0x287)]=_0x477ec3=>this['_sheetTransformSelectionsService']['transformSelections'](_0x477ec3),_0x115400;}async[_0x19811e(0x28f)](){const _0x5d3775=_0x19811e;let _0x1dc246=await super[_0x5d3775(0x28f)]();return this[_0x5d3775(0x34b)](this[_0x5d3775(0x3aa)][_0x5d3775(0x142)]((_0x4cce6c,_0x40412f)=>{const _0xbd6619=_0x5d3775;if(_0x4cce6c['type']!==_0x40fa30[_0xbd6619(0x24f)]||_0x40412f!=null&&_0x40412f[_0xbd6619(0x1f2)]||_0x40412f!=null&&_0x40412f[_0xbd6619(0x3cb)])return;let _0x57b5d1=_0x4cce6c[_0xbd6619(0x359)];if((_0x57b5d1==null?void 0x0:_0x57b5d1[_0xbd6619(0x22b)])!==this[_0xbd6619(0x25e)])return;let _0x3218fe=_0x4cce6c,_0x5e2bce=this[_0xbd6619(0x20d)][_0xbd6619(0x352)][_0xbd6619(0x32b)](this[_0xbd6619(0x20d)][_0xbd6619(0x352)][_0xbd6619(0x14d)]()[_0xbd6619(0x1d3)])([_0x3218fe],this['_univerInstanceService'])||[_0x3218fe];this[_0xbd6619(0x226)](_0x5e2bce[0x0]);})),_0x1dc246;}};Cn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(Jt)),V(0x8,_0x480e6d(B)),V(0x9,_0x4f5fa8),V(0xa,_0x1ba700),V(0xb,_0xef393c),V(0xc,_0x2197a8),V(0xd,_0x1e59a5(W)),V(0xe,_0x1e59a5(U))],Cn);let wn=class extends ${constructor(_0x489e6f,_0x363f16,_0x13f6bd,_0x514ae3,_0x49f81c,_0x3e1f66,_0x16bd73,_0x4140bf,_0x11fabb,_0xe684c4,_0x48af8a,_0x310b40,_0x4bd866,_0x2170a7){const _0x3dc2c5=_0x19811e;super(_0x489e6f,_0x13f6bd,_0x363f16,_0x514ae3,_0x49f81c,_0x3e1f66,_0x16bd73,_0x4140bf,_0x11fabb,_0xe684c4,_0x48af8a,_0x310b40,_0x4bd866,_0x2170a7),this[_0x3dc2c5(0x25e)]=_0x489e6f,this['type']=_0x363f16;}async[_0x19811e(0x28f)](){const _0x1a5328=_0x19811e;let _0x4cb63d=await super[_0x1a5328(0x28f)]();return this[_0x1a5328(0x34b)](this['_commandService'][_0x1a5328(0x142)]((_0x37494a,_0x254a06)=>{const _0x198be5=_0x1a5328;if(_0x37494a['type']!==_0x40fa30[_0x198be5(0x24f)]||_0x254a06!=null&&_0x254a06['fromCollab']||_0x254a06!=null&&_0x254a06[_0x198be5(0x3cb)])return;let _0x4fa68f=_0x37494a['params'];if((_0x4fa68f==null?void 0x0:_0x4fa68f[_0x198be5(0x22b)])!==this[_0x198be5(0x25e)])return;let _0xab7710=_0x37494a,_0x2f797b=this[_0x198be5(0x20d)][_0x198be5(0x352)][_0x198be5(0x32b)](this['_compressMutationService'][_0x198be5(0x352)]['getInterceptPoints']()[_0x198be5(0x1d3)])([_0xab7710],this['_univerInstanceService'])||[_0xab7710];this[_0x198be5(0x226)](_0x2f797b[0x0]);})),_0x4cb63d;}};wn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],wn);let Tn=class extends ${constructor(_0x53f087,_0x34f49f,_0x22cfc5,_0x4dd44c,_0x5897dc,_0x2a352b,_0x51069f,_0x2c98e9,_0x129aa4,_0x2283af,_0x5eb3c3,_0x19dba6,_0x3bb1a2,_0x4e2dbe){const _0x4a2764=_0x19811e;super(_0x53f087,_0x22cfc5,_0x34f49f,_0x4dd44c,_0x5897dc,_0x2a352b,_0x51069f,_0x2c98e9,_0x129aa4,_0x2283af,_0x5eb3c3,_0x19dba6,_0x3bb1a2,_0x4e2dbe),this[_0x4a2764(0x25e)]=_0x53f087,this[_0x4a2764(0x392)]=_0x34f49f;}async[_0x19811e(0x28f)](){const _0x360ef4=_0x19811e;let _0x2316d1=await super[_0x360ef4(0x28f)]();return this[_0x360ef4(0x34b)](this['_commandService'][_0x360ef4(0x142)]((_0x588ecf,_0x336e68)=>{const _0x557fe4=_0x360ef4;if(_0x588ecf['type']!==_0x40fa30[_0x557fe4(0x24f)]||_0x336e68!=null&&_0x336e68[_0x557fe4(0x1f2)]||_0x336e68!=null&&_0x336e68[_0x557fe4(0x3cb)])return;let _0x25af95=_0x588ecf[_0x557fe4(0x359)];if((_0x25af95==null?void 0x0:_0x25af95[_0x557fe4(0x22b)])!==this[_0x557fe4(0x25e)])return;let _0x3eaf57=_0x588ecf,_0x5c7995=this[_0x557fe4(0x20d)][_0x557fe4(0x352)]['fetchThroughInterceptors'](this[_0x557fe4(0x20d)][_0x557fe4(0x352)][_0x557fe4(0x14d)]()[_0x557fe4(0x1d3)])([_0x3eaf57],this[_0x557fe4(0x2e7)])||[_0x3eaf57];this[_0x557fe4(0x226)](_0x5c7995[0x0]);})),_0x2316d1;}};Tn=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],Tn);let En=class extends ${constructor(_0xd7aae3,_0x2d7208,_0x539ffc,_0x32f198,_0x12459b,_0x5a84b6,_0xb0f361,_0x14f0f0,_0x58eb21,_0x2fd483,_0x1bd965,_0x592e4f,_0x217ea8,_0x1255f7){const _0x2dd681=_0x19811e;super(_0xd7aae3,_0x539ffc,_0x2d7208,_0x32f198,_0x12459b,_0x5a84b6,_0xb0f361,_0x14f0f0,_0x58eb21,_0x2fd483,_0x1bd965,_0x592e4f,_0x217ea8,_0x1255f7),this[_0x2dd681(0x25e)]=_0xd7aae3,this['type']=_0x2d7208;}async['_init'](){const _0x1b2953=_0x19811e;let _0xa16198=await super[_0x1b2953(0x28f)]();return this[_0x1b2953(0x34b)](this[_0x1b2953(0x3aa)]['onMutationExecutedForCollab']((_0x42a2c2,_0x51ba28)=>{const _0x20b339=_0x1b2953;if(_0x42a2c2['type']!==_0x40fa30[_0x20b339(0x24f)]||_0x51ba28!=null&&_0x51ba28[_0x20b339(0x1f2)]||_0x51ba28!=null&&_0x51ba28[_0x20b339(0x3cb)])return;let _0x491a42=_0x42a2c2[_0x20b339(0x359)];if((_0x491a42==null?void 0x0:_0x491a42['unitId'])!==this['unitID'])return;let _0x1cc665=_0x42a2c2,_0x3cfba9=this[_0x20b339(0x20d)][_0x20b339(0x352)]['fetchThroughInterceptors'](this[_0x20b339(0x20d)][_0x20b339(0x352)][_0x20b339(0x14d)]()[_0x20b339(0x1d3)])([_0x1cc665],this[_0x20b339(0x2e7)])||[_0x1cc665];this['_onLocalMutation'](_0x3cfba9[0x0]);})),_0xa16198;}};En=H([V(0x3,_0x480e6d(_0x5a91fd)),V(0x4,_0x480e6d(_0x3e6ee0)),V(0x5,_0x480e6d(_0x1e8fb8)),V(0x6,_0x480e6d(_0x4e5cfb)),V(0x7,_0x480e6d(B)),V(0x8,_0x4f5fa8),V(0x9,_0x1ba700),V(0xa,_0xef393c),V(0xb,_0x2197a8),V(0xc,_0x1e59a5(W)),V(0xd,_0x1e59a5(U))],En);const Dn=_0x538219(_0x19811e(0x2f0));function On(_0x5bd423){const _0x4d344c=_0x19811e;let _0x476e90=_0x5bd423['data'],_0x4d6155=JSON[_0x4d344c(0x3a8)](_0x476e90);switch(_0x4d6155[_0x4d344c(0x2d9)]){case _0x3b5ebc[_0x4d344c(0x1ca)]:case _0x3b5ebc[_0x4d344c(0x308)]:{let _0x2f0d2e=_0x4d6155[_0x4d344c(0x2a5)];return{..._0x4d6155,'data':_0x2f0d2e,'cmd':_0x4d6155['cmd']};}case _0x3b5ebc[_0x4d344c(0x1d9)]:{let _0x55b60b=_0x4d6155[_0x4d344c(0x249)];return{..._0x4d6155,'data':_0x55b60b,'cmd':_0x4d6155[_0x4d344c(0x2d9)]};}case _0x3b5ebc[_0x4d344c(0x1e7)]:{let _0x2a1f55=_0x4d6155['collaMsg'];switch(_0x2a1f55[_0x4d344c(0x13c)]){case _0x27a7e8[_0x4d344c(0x336)]:var _0x5374e3;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x5374e3=_0x2a1f55[_0x4d344c(0x1b7)])==null?void 0x0:_0x5374e3['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['CHANGESET_ACK']:var _0x2be4e4;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x2be4e4=_0x2a1f55['csAckEvent'])==null?void 0x0:_0x2be4e4['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x398)]:var _0x53f1de;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x53f1de=_0x2a1f55[_0x4d344c(0x3c6)])==null?void 0x0:_0x53f1de['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x265)]:var _0x4d5583;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x4d5583=_0x2a1f55[_0x4d344c(0x358)])==null?void 0x0:_0x4d5583['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x1ba)]:var _0x33b8d4;return{..._0x4d6155,'data':{..._0x2a1f55,'data':(_0x33b8d4=_0x2a1f55[_0x4d344c(0x15c)])==null?void 0x0:_0x33b8d4['cs']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x348)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1a5)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x34d)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x13d)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x16d)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1ce)]},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x124)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['liveShareNewHost']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['LIVESHARE_FETCH_OPERATIONS']:case _0x27a7e8[_0x4d344c(0x123)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x1bd)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x2e1)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['liveShareNewHost']},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x344)]:return{..._0x4d6155,'data':_0x2a1f55,'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x1b6)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['commentUpdateEvent']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8['UPDATE_PERMISSION_OBJ']:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['updatePermissionObjEvent']},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};case _0x27a7e8[_0x4d344c(0x137)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55['shouldCloseConn']},'cmd':_0x4d6155['cmd']};case _0x27a7e8[_0x4d344c(0x288)]:return{..._0x4d6155,'data':{..._0x2a1f55,'data':_0x2a1f55[_0x4d344c(0x174)]},'cmd':_0x4d6155[_0x4d344c(0x2d9)]};default:return _0x4d6155;}}default:return _0x4d6155;}}function kn(_0x139f42){const _0x247fa4=_0x19811e;switch(_0x139f42['cmd']){case _0x3b5ebc[_0x247fa4(0x1ca)]:case _0x3b5ebc[_0x247fa4(0x308)]:return JSON['stringify']({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42[_0x247fa4(0x1bc)]});case _0x3b5ebc[_0x247fa4(0x2fb)]:{let _0x41c334;switch(_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x13c)]){case _0x27a7e8[_0x247fa4(0x348)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x348)],'updateCursorEvent':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x16d)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x16d)],'leaveEvent':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8['USERS_ENTER']:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x34d)],'joinEvent':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8[_0x247fa4(0x124)]:_0x41c334={'eventID':_0x27a7e8['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x139f42[_0x247fa4(0x202)]['data']};break;case _0x27a7e8['LIVESHARE_OPERATION']:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x123)],'liveShareOperation':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x2e1)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x2e1)],'liveShareTerminate':_0x139f42['data'][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x204)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x204)],'liveShareRequestHost':_0x139f42[_0x247fa4(0x202)][_0x247fa4(0x202)]};break;case _0x27a7e8[_0x247fa4(0x320)]:_0x41c334={'eventID':_0x27a7e8[_0x247fa4(0x320)]};break;default:_0x41c334={'eventID':_0x139f42['data'][_0x247fa4(0x13c)]};}return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42[_0x247fa4(0x1bc)],'collaMsg':_0x41c334});}case _0x3b5ebc[_0x247fa4(0x1d9)]:return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42['cmd'],'routeKey':_0x139f42[_0x247fa4(0x1bc)],'joinReq':_0x139f42[_0x247fa4(0x202)]});case _0x3b5ebc['LEAVE']:return JSON[_0x247fa4(0x3a0)]({'cmd':_0x139f42[_0x247fa4(0x2d9)],'routeKey':_0x139f42['routeKey'],'leaveReq':_0x139f42['data']});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const An=_0x538219(_0x19811e(0x13b));function jn(_0x4d2881,_0x91f4e0,_0x2f7520){const _0x4cfdaa=_0x19811e;return _0x4d2881+'/'+_0x91f4e0+_0x4cfdaa(0x186)+_0x2f7520+_0x4cfdaa(0x234);}let Mn=class extends _0x3d72df{constructor(_0x51840f,_0x2632be,_0x1a9c0a,_0x78256c,_0x50506e){const _0x90e5b8=_0x19811e;super(),this[_0x90e5b8(0x302)]=_0x51840f,this['_httpService']=_0x2632be,this[_0x90e5b8(0x216)]=_0x1a9c0a,this['_logService']=_0x78256c,this[_0x90e5b8(0x28d)]=_0x50506e;}[_0x19811e(0x231)](_0x536883){const _0x21c18c=_0x19811e;let _0x56a60a=this['_injector']['get'](_0xd03cee);if(!_0x56a60a)throw Error(_0x21c18c(0x1b0));let _0x1437ca=_0x56a60a[_0x21c18c(0x248)](_0x536883);if(!_0x1437ca)throw Error(_0x21c18c(0x2a3));let _0x4c0e43=new _0x49b66f(),_0x3b7ea9=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca[_0x21c18c(0x3ae)][_0x21c18c(0x2c1)](_0x5290d1=>_0x3b7ea9[_0x21c18c(0x2d6)](_0x5290d1))),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x3b7ea9['complete']()));let _0x1ec8c4=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca[_0x21c18c(0x239)][_0x21c18c(0x2c1)](_0x55d597=>_0x1ec8c4[_0x21c18c(0x2d6)](_0x55d597))),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x1ec8c4[_0x21c18c(0x279)]()));let _0x43f034=new _0x33eafc();_0x4c0e43[_0x21c18c(0x2d1)](_0x1437ca['message$'][_0x21c18c(0x2c1)](_0x3c98c2=>{const _0x34c1c7=_0x21c18c;let _0x2d87b4=On(_0x3c98c2);_0x43f034[_0x34c1c7(0x2d6)](_0x2d87b4);})),_0x4c0e43[_0x21c18c(0x2d1)](_0x215dfb(()=>_0x43f034[_0x21c18c(0x279)]()));let _0x2731b6,_0x6e4a82=()=>{const _0x2d13f6=_0x21c18c;_0x1ec8c4[_0x2d13f6(0x2d6)](new Event(_0x2d13f6(0x189))),_0x3b7ea9[_0x2d13f6(0x2d6)](new Event(_0x2d13f6(0x189))),_0x2731b6['close']();};return _0x2731b6={'memberID':'','close$':_0x3b7ea9[_0x21c18c(0x316)](),'error$':_0x1ec8c4['asObservable'](),'open$':_0x1437ca[_0x21c18c(0x372)],'message$':_0x43f034[_0x21c18c(0x316)](),'send':_0x2474da=>{const _0x1c42ae=_0x21c18c;if(_0x2474da[_0x1c42ae(0x2d9)]===_0x3b5ebc[_0x1c42ae(0x2fb)]){if(_0x2474da[_0x1c42ae(0x202)]['eventID']===_0x27a7e8[_0x1c42ae(0x1f6)]){this['_submitChangeset'](_0x2731b6,_0x2474da[_0x1c42ae(0x202)])[_0x1c42ae(0x34a)](_0x219071=>{const _0xeefea6=_0x1c42ae;this['_logService'][_0xeefea6(0x2cd)](_0x219071),_0x6e4a82();});return;}if(_0x2474da['data'][_0x1c42ae(0x13c)]===_0x27a7e8[_0x1c42ae(0x39b)]){let _0x4d091a=_0x2474da['data'];this[_0x1c42ae(0x362)](_0x4d091a)[_0x1c42ae(0x29f)](_0x205f20=>{const _0x5bf252=_0x1c42ae;_0x43f034[_0x5bf252(0x2d6)]({'cmd':_0x3b5ebc[_0x5bf252(0x1e7)],'code':_0x37b9b2['OK'],'routeKey':_0x4d091a[_0x5bf252(0x202)][_0x5bf252(0x25e)],'routeType':'','data':{'eventID':_0x27a7e8[_0x5bf252(0x26c)],'data':{'changesets':_0x205f20}}});})[_0x1c42ae(0x34a)](_0x262622=>{const _0x429539=_0x1c42ae;this[_0x429539(0x261)][_0x429539(0x2cd)](_0x262622),_0x6e4a82();});return;}}_0x1437ca[_0x1c42ae(0x173)](kn(_0x2474da));},'close':()=>{const _0x1f6690=_0x21c18c;_0x1437ca[_0x1f6690(0x17f)](),_0x4c0e43[_0x1f6690(0x194)]();}},_0x2731b6;}async['_submitChangeset'](_0x4eeb33,_0x539a3b){const _0x389b4e=_0x19811e;let {unitType:_0x3214c3,unitID:_0x2d2b27,changeset:_0x4a27ea}=_0x539a3b['data'],_0x4a1f84={'unitID':_0x2d2b27,'memberID':_0x4eeb33['memberID'],'type':_0x3214c3,'changeset':_0x3ec998(_0x4a27ea)},_0x73dcc2=this[_0x389b4e(0x216)][_0x389b4e(0x396)](R),_0x4fabd3=jn((_0x73dcc2==null?void 0x0:_0x73dcc2[_0x389b4e(0x14f)])??_0x389b4e(0x223),_0x3214c3,_0x2d2b27);try{await this[_0x389b4e(0x2d7)][_0x389b4e(0x128)](_0x4fabd3,{'body':_0x4a1f84});}catch(_0x40450a){throw this[_0x389b4e(0x261)][_0x389b4e(0x2cd)](_0x389b4e(0x351),_0x389b4e(0x1c9)),_0x40450a;}}async[_0x19811e(0x362)](_0x2a6a00){const _0x12729f=_0x19811e;let {unitID:_0x34eddc,from:_0x37204b,to:_0x31c3ff,unitType:_0x13e82b}=_0x2a6a00[_0x12729f(0x202)];return(await this[_0x12729f(0x28d)][_0x12729f(0x19a)]({'metadata':void 0x0},{'unitID':_0x34eddc,'type':_0x13e82b,'from':_0x37204b,'to':_0x31c3ff}))['changesets']['map'](_0x339674=>((_0x339674[_0x12729f(0x16e)]===null||_0x339674[_0x12729f(0x16e)]===void 0x0)&&(_0x339674['mutations']=[]),_0x339674));}};Mn=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x480e6d(_0x4288a3)),V(0x2,_0x2477d9),V(0x3,_0x1ba700),V(0x4,_0x14257b)],Mn);const Nn=_0x538219(_0x19811e(0x164));function Pn(_0x43a483={}){const _0x2c9ff3=_0x19811e;return _0x43a483['resolveUnit']?{'resolveUnit':_0x43a483[_0x2c9ff3(0x2ca)]}:{'resolveUnit':_0x121ca2=>({'target':{'unitId':_0x121ca2['unitId'],'unitType':_0x121ca2['unitType']}})};}function Fn(_0x2722d6,_0x52baee,_0x935e7b){const _0x35b82b=_0x19811e;let _0x5638ec=_0x935e7b[_0x35b82b(0x135)][_0x35b82b(0x2c6)];if(_0x5638ec!=null&&_0x5638ec[_0x35b82b(0x37d)]()==='')throw Error(_0x35b82b(0x2a9));if(!_0x935e7b['target'][_0x35b82b(0x22b)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x2722d6,'unitType':_0x52baee,'target':{'endpoint':_0x5638ec,'unitId':_0x935e7b[_0x35b82b(0x135)]['unitId'],'unitType':_0x935e7b[_0x35b82b(0x135)]['unitType']??_0x52baee},'changeset':_0x935e7b[_0x35b82b(0x136)]};}let In=class extends _0x3d72df{constructor(_0x4f9fd5,_0x25098e,_0x24ad66,_0x45dd56,_0x4f91ca,_0x474f71,_0xccf13){const _0x4d750b=_0x19811e;super(),this[_0x4d750b(0x302)]=_0x4f9fd5,this['_logService']=_0x25098e,this[_0x4d750b(0x216)]=_0x24ad66,this[_0x4d750b(0x391)]=_0x45dd56,this[_0x4d750b(0x1af)]=_0x4f91ca,this[_0x4d750b(0x2bd)]=_0x474f71,this[_0x4d750b(0x2b7)]=_0xccf13,z(this,_0x4d750b(0x25c),new Map()),z(this,_0x4d750b(0x1f4),new Map()),z(this,_0x4d750b(0x1a2),new Map()),z(this,_0x4d750b(0x3b9),new Map()),z(this,_0x4d750b(0x18e),this[_0x4d750b(0x183)](void 0x0)[_0x4d750b(0x18e)]['asObservable']()),z(this,'_status$',new _0x5d64e7(0x0)),z(this,_0x4d750b(0x17d),this[_0x4d750b(0x170)][_0x4d750b(0x316)]()),this[_0x4d750b(0x238)]();}[_0x19811e(0x238)](){const _0xfda968=_0x19811e;this[_0xfda968(0x2b7)]&&this[_0xfda968(0x34b)](this[_0xfda968(0x2b7)][_0xfda968(0x1d4)][_0xfda968(0x2c1)](_0x3efac5=>{const _0x2306ed=_0xfda968;_0x3efac5&&this['reconnect'](),_0x3efac5||this[_0x2306ed(0x3b9)]['forEach'](_0x491b4b=>this[_0x2306ed(0x230)](_0x491b4b));}));}[_0x19811e(0x194)](){const _0xd32c04=_0x19811e;super[_0xd32c04(0x194)](),this['_socketChannels'][_0xd32c04(0x332)](_0x1a1c50=>{const _0x5df3d0=_0xd32c04;var _0xa7aa1f,_0x1f0441;(_0xa7aa1f=_0x1a1c50[_0x5df3d0(0x181)])==null||_0xa7aa1f[_0x5df3d0(0x185)](),_0x1a1c50[_0x5df3d0(0x181)]=null,this[_0x5df3d0(0x3bf)](_0x1a1c50),this[_0x5df3d0(0x171)](_0x1a1c50),this[_0x5df3d0(0x319)](_0x1a1c50),(_0x1f0441=_0x1a1c50[_0x5df3d0(0x18e)][_0x5df3d0(0x29a)]())==null||_0x1f0441[_0x5df3d0(0x17f)](),_0x1a1c50['socket$']['complete']();}),this[_0xd32c04(0x3b9)][_0xd32c04(0x2e5)](),this[_0xd32c04(0x25c)][_0xd32c04(0x332)](_0x1b8732=>_0x1b8732[_0xd32c04(0x194)]()),this['_sessions'][_0xd32c04(0x2e5)](),this['_sessionChannels'][_0xd32c04(0x2e5)](),this[_0xd32c04(0x170)][_0xd32c04(0x279)]();}async[_0x19811e(0x254)](_0x33c254,_0x3eb7d5){const _0x24c140=_0x19811e;if(this[_0x24c140(0x25c)][_0x24c140(0x1d6)](_0x33c254))return this['_sessions'][_0x24c140(0x17c)](_0x33c254);let _0x54187c=this[_0x24c140(0x1f4)][_0x24c140(0x17c)](_0x33c254);if(_0x54187c)return _0x54187c;let _0xf4c6b0=this[_0x24c140(0x143)](_0x33c254,_0x3eb7d5);this['_pendingSessions']['set'](_0x33c254,_0xf4c6b0);try{return await _0xf4c6b0;}finally{this[_0x24c140(0x1f4)][_0x24c140(0x347)](_0x33c254);}}async[_0x19811e(0x143)](_0x3b8263,_0x2588f9){const _0x2f4f70=_0x19811e;let _0x3f2452=await this['_resolveSessionIdentity'](_0x3b8263,_0x2588f9),_0x157428=this[_0x2f4f70(0x183)](_0x3f2452[_0x2f4f70(0x135)]['endpoint']);this['_tryEnsureSocket'](_0x157428);let _0x32dc86=this[_0x2f4f70(0x302)][_0x2f4f70(0x1d2)](Gt,_0x3f2452,_0x157428['socket$']['asObservable']());return this[_0x2f4f70(0x25c)]['set'](_0x3b8263,_0x32dc86),this['_sessionChannels']['set'](_0x3b8263,_0x157428[_0x2f4f70(0x3b0)]),_0x32dc86;}[_0x19811e(0x24e)](_0x35ea8a){const _0x314762=_0x19811e;let _0x257f80=this['_sessions'][_0x314762(0x17c)](_0x35ea8a),_0x370627=this[_0x314762(0x1a2)][_0x314762(0x17c)](_0x35ea8a);if(_0x257f80&&(this[_0x314762(0x25c)][_0x314762(0x347)](_0x35ea8a),this[_0x314762(0x1a2)][_0x314762(0x347)](_0x35ea8a),_0x257f80[_0x314762(0x17f)]()),_0x370627&&!this[_0x314762(0x286)](_0x370627)){var _0x139515;let _0x3d0df9=this['_socketChannels'][_0x314762(0x17c)](_0x370627);_0x3d0df9==null||(_0x139515=_0x3d0df9[_0x314762(0x18e)]['getValue']())==null||_0x139515[_0x314762(0x17f)]();}}['reconnect'](){const _0x1fe641=_0x19811e;(this[_0x1fe641(0x3b9)]['size']?[...this[_0x1fe641(0x3b9)][_0x1fe641(0x309)]()]:[this['_getSocketChannel'](void 0x0)])[_0x1fe641(0x332)](_0x403796=>{const _0x45edbc=_0x1fe641;_0x403796['retryCount']=0x0,this[_0x45edbc(0x3bf)](_0x403796),this[_0x45edbc(0x28b)](_0x403796);});}['_clearRetryConnectingTimer'](_0x3c1b4b){const _0x992bc5=_0x19811e;_0x3c1b4b[_0x992bc5(0x2d4)]!=null&&(clearTimeout(_0x3c1b4b[_0x992bc5(0x2d4)]),_0x3c1b4b[_0x992bc5(0x2d4)]=null);}async[_0x19811e(0x30c)](_0x4ead9d){const _0x14bd7c=_0x19811e;let _0x474e90=this[_0x14bd7c(0x216)][_0x14bd7c(0x396)](R),_0x22e522=_0x4ead9d['endpoint']??(_0x474e90==null?void 0x0:_0x474e90[_0x14bd7c(0x252)])??_0x14bd7c(0x20a),_0x2e751a=await this[_0x14bd7c(0x391)][_0x14bd7c(0x248)](_0x22e522);return _0x4ead9d[_0x14bd7c(0x1da)]=_0x2e751a,_0x2e751a;}async[_0x19811e(0x2e6)](_0x4b4dae){const _0xca840a=_0x19811e;try{let _0x493cd3=_0x4b4dae[_0xca840a(0x18e)][_0xca840a(0x29a)]()??_0x4b4dae['candidateSocket']??await this[_0xca840a(0x30c)](_0x4b4dae);if(_0x493cd3){var _0x1a30b7;let _0xa52c9e=_0x493cd3[_0xca840a(0x173)];_0x493cd3[_0xca840a(0x173)]=_0x2cb310=>(_0x2cb310[_0xca840a(0x2d9)]!==_0x3b5ebc[_0xca840a(0x233)]&&this[_0xca840a(0x256)](_0x4b4dae),_0xa52c9e[_0xca840a(0x370)](_0x493cd3,[_0x2cb310])),(_0x1a30b7=_0x4b4dae['socketMessageSubscription'])==null||_0x1a30b7['unsubscribe'](),_0x4b4dae[_0xca840a(0x181)]=null,_0x4b4dae[_0xca840a(0x181)]=_0x493cd3[_0xca840a(0x1f1)][_0xca840a(0x2c1)](_0x4fb51d=>this['_onMessage'](_0x4b4dae,_0x493cd3,_0x4fb51d)),_0x493cd3['error$']['pipe'](_0x1c88c9(0x1))[_0xca840a(0x2c1)](_0x3547dd=>this[_0xca840a(0x261)][_0xca840a(0x2cd)](_0xca840a(0x2d2),_0x3547dd)),_0x493cd3[_0xca840a(0x372)][_0xca840a(0x273)](_0x1c88c9(0x1))[_0xca840a(0x2c1)](()=>{const _0x2f1b27=_0xca840a;this[_0x2f1b27(0x29c)](_0x4b4dae,_0x493cd3);}),_0x493cd3[_0xca840a(0x3ae)]['pipe'](_0x1c88c9(0x1))[_0xca840a(0x2c1)](_0x338cae=>{const _0x1a2318=_0xca840a;this[_0x1a2318(0x261)][_0x1a2318(0x1d1)](_0x1a2318(0x2c4),_0x1a2318(0x1b4),_0x338cae),this[_0x1a2318(0x264)](_0x4b4dae);});}}catch(_0x531867){this['_logService'][_0xca840a(0x2cd)](_0x531867),this[_0xca840a(0x264)](_0x4b4dae);}}['_onConnectionOpen'](_0x4ae6b1,_0x2e6116){const _0x173061=_0x19811e;this[_0x173061(0x261)][_0x173061(0x1d1)](_0x173061(0x2c4),'socket\x20open.'),_0x2e6116[_0x173061(0x173)]({'cmd':_0x3b5ebc[_0x173061(0x308)]}),this[_0x173061(0x256)](_0x4ae6b1);}['_onOffline'](_0x55a571){const _0x4eb179=_0x19811e;_0x55a571[_0x4eb179(0x30d)]=!0x1,_0x55a571[_0x4eb179(0x1da)]=null,this[_0x4eb179(0x170)][_0x4eb179(0x2d6)](0x2),_0x55a571[_0x4eb179(0x18e)]['next'](null),this['_clearTimeoutTimer'](_0x55a571),this[_0x4eb179(0x319)](_0x55a571);}[_0x19811e(0x264)](_0x5be72b){const _0x2b9c3d=_0x19811e;this[_0x2b9c3d(0x230)](_0x5be72b),this['_hasSessionsForEndpoint'](_0x5be72b[_0x2b9c3d(0x3b0)])&&(_0x5be72b[_0x2b9c3d(0x1df)]<(this[_0x2b9c3d(0x216)]['getConfig'](_0x2b9c3d(0x250))??0x3)?(this[_0x2b9c3d(0x1af)][_0x2b9c3d(0x24a)]({'id':_0x2b9c3d(0x23f)}),this[_0x2b9c3d(0x28b)](_0x5be72b)):this[_0x2b9c3d(0x1af)]['emitEvent']({'id':_0x2b9c3d(0x342)}));}[_0x19811e(0x28b)](_0x2e5ec5){const _0x10a857=_0x19811e;let _0x1c49ff=_0x2e5ec5['retryCount'],_0x442069=this['_configService'][_0x10a857(0x396)](R),_0x54a126=_0x1c49ff===0x0?0x0:((_0x442069==null?void 0x0:_0x442069[_0x10a857(0x2f7)])??0x4e20)*0x2**_0x1c49ff;_0x2e5ec5[_0x10a857(0x2d4)]=setTimeout(()=>{const _0xac5642=_0x10a857;clearTimeout(_0x2e5ec5['retryConnectingTimer']),_0x2e5ec5['retryConnectingTimer']=null,this[_0xac5642(0x2e6)](_0x2e5ec5);},_0x54a126),_0x2e5ec5['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0xf16ec0,_0x5503e4){const _0x2e76af=_0x19811e;return Fn(_0xf16ec0,_0x5503e4,await this[_0x2e76af(0x2bd)][_0x2e76af(0x2ca)]({'unitId':_0xf16ec0,'unitType':_0x5503e4}));}['_onMessage'](_0x3e5708,_0x5136e2,_0x3770f1){const _0x53c76a=_0x19811e;let {cmd:_0x543e6e}=_0x3770f1;_0x543e6e===_0x3b5ebc['HELLO']&&!_0x3e5708[_0x53c76a(0x30d)]&&(_0x5136e2['memberID']=_0x3770f1[_0x53c76a(0x202)][_0x53c76a(0x2ee)],_0x3e5708[_0x53c76a(0x1df)]=0x0,_0x3e5708[_0x53c76a(0x18e)]['next'](_0x5136e2),this[_0x53c76a(0x170)][_0x53c76a(0x2d6)](0x3),_0x3e5708['socketReady']=!0x0,_0x3e5708['candidateSocket']=null),_0x543e6e===_0x3b5ebc[_0x53c76a(0x1ca)]&&this['_clearTimeoutTimer'](_0x3e5708),this[_0x53c76a(0x256)](_0x3e5708);}[_0x19811e(0x286)](_0x247e60){const _0x20ef35=_0x19811e;return[...this[_0x20ef35(0x1a2)][_0x20ef35(0x309)]()][_0x20ef35(0x1aa)](_0x50ed2f=>_0x50ed2f===_0x247e60);}[_0x19811e(0x183)](_0x1d1314){const _0x5085ac=_0x19811e;let _0x3a416d=_0x1d1314??'',_0x34dc7f=this[_0x5085ac(0x3b9)][_0x5085ac(0x17c)](_0x3a416d);if(_0x34dc7f)return _0x34dc7f;let _0xdaa3ba={'endpointKey':_0x3a416d,'endpoint':_0x1d1314,'socket$':new _0x5d64e7(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x5085ac(0x3b9)][_0x5085ac(0x1ee)](_0x3a416d,_0xdaa3ba),_0xdaa3ba;}[_0x19811e(0x256)](_0x2b5517){const _0x35b1eb=_0x19811e;this[_0x35b1eb(0x319)](_0x2b5517),_0x2b5517[_0x35b1eb(0x276)]=setTimeout(()=>this['_sendHeartbeat'](_0x2b5517),this[_0x35b1eb(0x216)]['getConfig'](_0x35b1eb(0x2af))??0x7530);}[_0x19811e(0x2b2)](_0x143731){const _0x1c913b=_0x19811e;_0x143731[_0x1c913b(0x18e)][_0x1c913b(0x29a)]()[_0x1c913b(0x173)]({'cmd':_0x3b5ebc[_0x1c913b(0x1ca)]}),this[_0x1c913b(0x329)](_0x143731);}['_waitForHeartbeatResponse'](_0x2c1f90){const _0x200092=_0x19811e;_0x2c1f90[_0x200092(0x169)]=setTimeout(()=>this[_0x200092(0x264)](_0x2c1f90),this[_0x200092(0x216)][_0x200092(0x396)](_0x200092(0x2ae))??0x4e20);}['_clearHeartbeatTimer'](_0x3a68ed){const _0xad20fb=_0x19811e;_0x3a68ed[_0xad20fb(0x276)]!=null&&(clearTimeout(_0x3a68ed[_0xad20fb(0x276)]),_0x3a68ed[_0xad20fb(0x276)]=null);}['_clearTimeoutTimer'](_0x296a3c){const _0x22d16b=_0x19811e;_0x296a3c[_0x22d16b(0x169)]!=null&&(clearTimeout(_0x296a3c[_0x22d16b(0x169)]),_0x296a3c[_0x22d16b(0x169)]=null);}};In=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x1ba700),V(0x2,_0x2477d9),V(0x3,An),V(0x4,_0x480e6d(B)),V(0x5,Nn),V(0x6,_0x1e59a5(Dn))],In);let Ln=class extends _0x39685b{constructor(_0x25cae0,_0x39c6be,_0x7a2f10,_0x48eb13){const _0x2e8b11=_0x19811e;var _0x550c3b;super(),this[_0x2e8b11(0x302)]=_0x25cae0,this[_0x2e8b11(0x291)]=_0x39c6be,this['_configService']=_0x7a2f10,this[_0x2e8b11(0x2e7)]=_0x48eb13,z(this,_0x2e8b11(0x38d),new Map()),z(this,'_entityInit$',new _0x33eafc()),z(this,'entityInit$',this['_entityInit$'][_0x2e8b11(0x316)]()),((_0x550c3b=this[_0x2e8b11(0x216)][_0x2e8b11(0x396)]('collaboration-client.config'))==null?void 0x0:_0x550c3b['enableCollaboration'])!==!0x1&&this[_0x2e8b11(0x28f)]();}[_0x19811e(0x194)](){const _0x5d6a4d=_0x19811e;super[_0x5d6a4d(0x194)](),this[_0x5d6a4d(0x38d)][_0x5d6a4d(0x332)](_0x59ecd2=>_0x59ecd2[_0x5d6a4d(0x194)]()),this[_0x5d6a4d(0x38d)][_0x5d6a4d(0x2e5)]();}[_0x19811e(0x2c3)](_0x3e2c9e){const _0x5e05ee=_0x19811e;return this[_0x5e05ee(0x38d)][_0x5e05ee(0x17c)](_0x3e2c9e)??null;}[_0x19811e(0x346)](_0x3f013e){const _0x3a2fd4=_0x19811e;let _0x1cac3a=this[_0x3a2fd4(0x2c3)](_0x3f013e);return _0x1cac3a?_0x5b3fe9(_0x1cac3a):this[_0x3a2fd4(0x38f)][_0x3a2fd4(0x273)](_0xae526b(_0x227280=>_0x227280['unitID']===_0x3f013e));}[_0x19811e(0x3d7)](_0x3c293e){const _0x1050b4=_0x19811e;return _0x1773f3(this[_0x1050b4(0x346)](_0x3c293e)[_0x1050b4(0x273)](_0x49f6f7(()=>void 0x0)));}[_0x19811e(0x28f)](){const _0x532dcc=_0x19811e;this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x227)])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x1a0891=>{const _0x1dd543=_0x532dcc;let _0x56fd53=_0x1a0891[_0x1dd543(0x225)][_0x1dd543(0x382)](),_0x199c9f=await this[_0x1dd543(0x240)](_0x56fd53,_0x5d23e3[_0x1dd543(0x227)]);this['_entities'][_0x1dd543(0x1ee)](_0x56fd53,_0x199c9f);}),this['_univerInstanceService'][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x126)])[_0x532dcc(0x273)](_0x1b033d(this['dispose$']),_0x1ebfc0(0x10))['pipe'](_0xae526b(_0x384c14=>!_0x384c14[_0x532dcc(0x225)][_0x532dcc(0x382)]()['startsWith']('__')))[_0x532dcc(0x2c1)](async _0x2bb406=>{const _0x4e814c=_0x532dcc;let _0x283c20=_0x2bb406[_0x4e814c(0x225)][_0x4e814c(0x382)](),_0x232d4b=await this[_0x4e814c(0x240)](_0x283c20,_0x5d23e3[_0x4e814c(0x126)]);this[_0x4e814c(0x38d)]['set'](_0x283c20,_0x232d4b);}),this['_univerInstanceService'][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x305)])[_0x532dcc(0x273)](_0x1b033d(this['dispose$']),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x45654c=>{const _0x556613=_0x532dcc;let _0x4cd3ca=_0x45654c['unit'][_0x556613(0x382)](),_0x9107bb=await this[_0x556613(0x240)](_0x4cd3ca,_0x5d23e3[_0x556613(0x305)]);this[_0x556613(0x38d)]['set'](_0x4cd3ca,_0x9107bb);}),this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3[_0x532dcc(0x328)])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x235955=>{const _0x3187a3=_0x532dcc;let _0x542c44=_0x235955['unit'][_0x3187a3(0x382)](),_0x55fcc0=await this[_0x3187a3(0x240)](_0x542c44,_0x5d23e3[_0x3187a3(0x328)]);this['_entities'][_0x3187a3(0x1ee)](_0x542c44,_0x55fcc0);}),this[_0x532dcc(0x2e7)][_0x532dcc(0x39e)](_0x5d23e3['UNIVER_BASE'])[_0x532dcc(0x273)](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x54274a=>{const _0x373148=_0x532dcc;let _0x1e5c24=_0x54274a[_0x373148(0x225)][_0x373148(0x382)](),_0x2c5883=await this[_0x373148(0x240)](_0x1e5c24,_0x5d23e3['UNIVER_BASE']);this[_0x373148(0x38d)]['set'](_0x1e5c24,_0x2c5883);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x5d23e3[_0x532dcc(0x1f5)])['pipe'](_0x1b033d(this[_0x532dcc(0x1a7)]),_0x1ebfc0(0x10))[_0x532dcc(0x2c1)](async _0x448779=>{const _0x20a7f0=_0x532dcc;let _0x12b41c=_0x448779['unit'][_0x20a7f0(0x382)](),_0x2e8ea1=await this[_0x20a7f0(0x240)](_0x12b41c,_0x5d23e3['UNIVER_PDF']);this[_0x20a7f0(0x38d)][_0x20a7f0(0x1ee)](_0x12b41c,_0x2e8ea1);}),_0x5e3e6a(this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3['UNIVER_SHEET']),this['_univerInstanceService'][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x126)]),this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x305)]),this[_0x532dcc(0x2e7)][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x328)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5d23e3[_0x532dcc(0x38e)]),this['_univerInstanceService'][_0x532dcc(0x131)](_0x5d23e3[_0x532dcc(0x1f5)]))[_0x532dcc(0x273)](_0x1b033d(this['dispose$']))[_0x532dcc(0x2c1)](_0x23f730=>{const _0xc14fd7=_0x532dcc;let _0x5b2991=_0x23f730['getUnitId'](),_0x253ca7=this[_0xc14fd7(0x38d)][_0xc14fd7(0x17c)](_0x5b2991);_0x253ca7&&(_0x253ca7[_0xc14fd7(0x194)](),this[_0xc14fd7(0x38d)][_0xc14fd7(0x347)](_0x5b2991));});}async[_0x19811e(0x240)](_0x39d689,_0x494ca2){const _0x507335=_0x19811e;let _0x48ee93=await this[_0x507335(0x291)][_0x507335(0x254)](_0x39d689),_0x570110=this[_0x507335(0x302)][_0x507335(0x1d2)](this[_0x507335(0x215)](_0x494ca2),_0x39d689,_0x494ca2,_0x48ee93);return await _0x570110[_0x507335(0x26e)](),this[_0x507335(0x38f)]['next'](_0x570110),_0x570110;}[_0x19811e(0x215)](_0xc871d1){const _0x402261=_0x19811e;switch(_0xc871d1){case _0x5d23e3[_0x402261(0x126)]:return xn;case _0x5d23e3[_0x402261(0x227)]:return Cn;case _0x5d23e3[_0x402261(0x305)]:return wn;case _0x5d23e3[_0x402261(0x328)]:return Tn;case _0x5d23e3[_0x402261(0x38e)]:return Sn;case _0x5d23e3[_0x402261(0x1f5)]:return En;default:throw Error(_0x402261(0x2cc)+_0xc871d1);}}};Ln=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x480e6d(In)),V(0x2,_0x2477d9),V(0x3,_0x4f5fa8)],Ln);var Rn='@univerjs-pro/collaboration-client',zn=_0x19811e(0x28e);let Bn=class extends _0x3d72df{constructor(_0x40c2f0,_0x186691){const _0x593b13=_0x19811e;super(),this[_0x593b13(0x2e7)]=_0x40c2f0,this[_0x593b13(0x216)]=_0x186691,this['_init']();}[_0x19811e(0x28f)](){const _0x1b1a33=_0x19811e;this[_0x1b1a33(0x34b)](this[_0x1b1a33(0x2e7)]['focused$'][_0x1b1a33(0x2c1)](()=>{const _0x46b709=_0x1b1a33;let _0x45e2ee=this[_0x46b709(0x2e7)][_0x46b709(0x1f8)](),_0x37d211=this[_0x46b709(0x216)]['getConfig']('DEFAULT_FILE_NAME')??_0x46b709(0x2f9);_0x45e2ee instanceof _0x37c076&&(_0x37d211=_0x45e2ee['name']),document['title']=_0x37d211;}));}};Bn=H([V(0x0,_0x4f5fa8),V(0x1,_0x2477d9)],Bn);const Vn=_0x538219(_0x19811e(0x2fc));let Hn=class{constructor(_0x1b13ea,_0x5d4ba1,_0x1773e6){const _0x808e59=_0x19811e;this[_0x808e59(0x2d7)]=_0x1b13ea,this[_0x808e59(0x216)]=_0x5d4ba1,this['_univerInstanceService']=_0x1773e6;}[_0x19811e(0x3a6)](){const _0x3655c7=_0x19811e;return this[_0x3655c7(0x2e2)]()[_0x3655c7(0x25d)]??{};}async['saveAttachment'](_0x4e906f){const _0x15f0d3=_0x19811e;let _0x50b672=this[_0x15f0d3(0x3a6)]();if(Un(_0x4e906f,_0x50b672),_0x50b672[_0x15f0d3(0x129)])return _0x50b672['upload'](_0x4e906f);let _0x568e97=await this[_0x15f0d3(0x35e)](_0x4e906f);return{'id':_0x568e97,'name':_0x4e906f[_0x15f0d3(0x1a8)],'mimeType':_0x4e906f['type'],'size':_0x4e906f[_0x15f0d3(0x3c3)],'sourceType':_0x19206b['UUID'],'source':_0x568e97};}async['getAttachmentUrl'](_0x5763fb,_0xab6223){const _0x11b55c=_0x19811e;if(_0xab6223!==_0x19206b[_0x11b55c(0x3de)])return _0x5763fb;let _0x3be29f=(await this[_0x11b55c(0x2d7)]['get'](this['_getSignURL']()[_0x11b55c(0x1c3)]('{fileID}',_0x5763fb)))['body'];if(_0x3be29f[_0x11b55c(0x2cd)]&&_0x3be29f['error'][_0x11b55c(0x236)]!==_0x21e177['OK'])throw _0x3be29f['error'];if(!_0x3be29f[_0x11b55c(0x17b)])throw Error(_0x11b55c(0x3c4));return _0x26be64(_0x3be29f['url'],this[_0x11b55c(0x32c)]());}async[_0x19811e(0x35e)](_0x44f548){const _0x438e2f=_0x19811e;let _0x5a6c59=this[_0x438e2f(0x2e7)]['getFocusedUnit'](),_0x5d415f=_0x5a6c59==null?void 0x0:_0x5a6c59[_0x438e2f(0x382)]();if(!_0x5d415f)throw Error(_0x438e2f(0x158));let _0x3331c6=new FormData();_0x3331c6[_0x438e2f(0x187)](_0x438e2f(0x1a1),_0x44f548);let _0x2c8e5f=this[_0x438e2f(0x3d5)]()+_0x438e2f(0x298)+_0x44f548[_0x438e2f(0x3c3)][_0x438e2f(0x374)]()+'&source='+_0x4a74cc[_0x438e2f(0x3c9)]+_0x438e2f(0x157)+encodeURIComponent(_0x5d415f),_0x286b0a=(await this[_0x438e2f(0x2d7)][_0x438e2f(0x128)](_0x2c8e5f,{'body':_0x3331c6}))['body'][_0x438e2f(0x289)];if(typeof _0x286b0a!=_0x438e2f(0x2f5)||!_0x286b0a)throw Error(_0x438e2f(0x378));return _0x286b0a;}[_0x19811e(0x3d5)](){const _0x46e24d=_0x19811e;return this[_0x46e24d(0x2e2)]()[_0x46e24d(0x3d4)]??_0x46e24d(0x389);}[_0x19811e(0x28c)](){const _0x739ba8=_0x19811e;return this[_0x739ba8(0x2e2)]()[_0x739ba8(0x251)]??_0x739ba8(0x331);}[_0x19811e(0x32c)](){const _0x3d6c28=_0x19811e;let _0x2d1fbe=this[_0x3d6c28(0x2e2)]();return _0x2d1fbe[_0x3d6c28(0x20f)]?_0x2d1fbe[_0x3d6c28(0x20f)]:typeof location<'u'?location[_0x3d6c28(0x2dd)]:_0x2d1fbe[_0x3d6c28(0x3d4)]??'';}[_0x19811e(0x2e2)](){const _0x33622f=_0x19811e;return this['_configService'][_0x33622f(0x396)](_0x33622f(0x2bb))??{};}};Hn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x480e6d(_0x2477d9)),V(0x2,_0x480e6d(_0x4f5fa8))],Hn);function Un(_0x248775,_0x907e4e){const _0x62f0bf=_0x19811e;var _0x15ca94;if(_0x907e4e[_0x62f0bf(0x2b8)]!=null&&_0x248775[_0x62f0bf(0x3c3)]>_0x907e4e['maxSize'])throw Error(_0x62f0bf(0x269));if((_0x15ca94=_0x907e4e[_0x62f0bf(0x232)])!=null&&_0x15ca94[_0x62f0bf(0x2ab)]&&!_0x907e4e['accept']['some'](_0x4d6e10=>_0x248775[_0x62f0bf(0x392)]===_0x4d6e10||_0x248775['name'][_0x62f0bf(0x312)](_0x4d6e10)||_0x4d6e10['endsWith']('/*')&&_0x248775['type'][_0x62f0bf(0x19f)](_0x4d6e10[_0x62f0bf(0x141)](0x0,-0x1))))throw Error(_0x62f0bf(0x31f));}let Wn=class{constructor(_0x65b9c7,_0x554dd7,_0x1f57f8){const _0x2c5555=_0x19811e;this[_0x2c5555(0x216)]=_0x65b9c7,this[_0x2c5555(0x2d7)]=_0x554dd7,this[_0x2c5555(0x31c)]=_0x1f57f8,this[_0x2c5555(0x26e)]();}[_0x19811e(0x26e)](){const _0x210273=_0x19811e;this[_0x210273(0x2d7)][_0x210273(0x3ba)]({'priority':0x1,'interceptor':(_0x49a9ac,_0x1011dd)=>_0x1011dd(_0x49a9ac)[_0x210273(0x273)](_0x344f28(async _0x1143dc=>{const _0x5c3ee7=_0x210273;let _0x56cd48=_0x1143dc;if(_0x56cd48[_0x5c3ee7(0x18d)]===0x191){if(typeof window>'u')throw Error(_0x5c3ee7(0x2e0));if(window[_0x5c3ee7(0x243)](this[_0x5c3ee7(0x31c)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x493039=window['encodeURIComponent'](window['location'][_0x5c3ee7(0x197)]);window[_0x5c3ee7(0x1a9)][_0x5c3ee7(0x197)]=this[_0x5c3ee7(0x182)]()+_0x5c3ee7(0x1eb)+_0x493039;}}return _0x56cd48;}))});}['_getLoginPath'](){const _0x347698=_0x19811e;let _0x5349c6=this[_0x347698(0x216)][_0x347698(0x396)](R);return(_0x5349c6==null?void 0x0:_0x5349c6[_0x347698(0x1ae)])??_0x347698(0x2dc);}};Wn=H([V(0x0,_0x2477d9),V(0x1,_0x480e6d(_0x4288a3)),V(0x2,_0x480e6d(_0x1e8fb8))],Wn);let Gn=class extends _0x3d72df{constructor(_0x5e203b,_0x32a3a9){const _0x4ebb9b=_0x19811e;super(),this[_0x4ebb9b(0x34f)]=_0x5e203b,this[_0x4ebb9b(0x216)]=_0x32a3a9,z(this,_0x4ebb9b(0x2bf),!0x1),this['_initMergeInterceptor']();}[_0x19811e(0x2c0)](){const _0x235866=_0x19811e;let _0x9d8e5=this;this['disposeWithMe'](this[_0x235866(0x34f)][_0x235866(0x3ba)]({'priority':0x3e7,'interceptor':_0x49dd8f({'isMatch'(_0x5ea0ef){const _0x215966=_0x235866;var _0x120556;if(_0x5ea0ef[_0x215966(0x1c5)]===_0x215966(0x315)&&(_0x120556=_0x5ea0ef[_0x215966(0x2b4)])!=null&&_0x120556[_0x215966(0x1ea)]){let {objectID:_0x192a2a,objectType:_0x581473}=_0x5ea0ef[_0x215966(0x2b4)][_0x215966(0x1ea)]||{};if(!_0x192a2a||_0x581473===void 0x0)return!0x1;let _0xc143f=_0x9d8e5[_0x215966(0x154)]()+'/'+_0x581473+_0x215966(0x244)+encodeURIComponent(_0x192a2a)+'/allowed';if(_0x5ea0ef['url']===_0xc143f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x117e98){const _0xd0e874=_0x235866;var _0x256b84;return(_0x256b84=_0x117e98[_0xd0e874(0x2b4)])==null?void 0x0:_0x256b84[_0xd0e874(0x1ea)];},'mergeParamsToRequest'(_0x17037a,_0x5de442){const _0x390289=_0x235866;let _0x113267=_0x9d8e5['_getAPIPrefixPath']()+_0x390289(0x377),_0x3a6445=_0x17037a[_0x390289(0x3d9)]((_0x3739a9,_0x3cd45e)=>{const _0x379154=_0x390289;let {unitID:_0x5a5929,objectID:_0x2aae33,objectType:_0x187552,actions:_0x382fc2}=_0x3cd45e;return _0x3739a9[_0x5a5929]||(_0x3739a9[_0x5a5929]=Object[_0x379154(0x2cb)](null)),_0x3739a9[_0x5a5929][_0x2aae33]||(_0x3739a9[_0x5a5929][_0x2aae33]={'objectID':_0x2aae33,'objectType':_0x187552,'actions':[]}),_0x3739a9[_0x5a5929][_0x2aae33][_0x379154(0x303)][_0x379154(0x335)](..._0x382fc2),_0x3739a9;},Object['create'](null)),_0x38a41c=[];for(let _0x46efd2 in _0x3a6445)for(let _0x4c0a2d in _0x3a6445[_0x46efd2]){let {actions:_0x33a387,objectType:_0x47bdbc}=_0x3a6445[_0x46efd2][_0x4c0a2d],_0x17f597=[...new Set(_0x33a387)];_0x38a41c[_0x390289(0x335)]({'unitID':_0x46efd2,'objectID':_0x4c0a2d,'objectType':_0x47bdbc,'actions':_0x17f597});}return new _0x4c2e8f('POST',_0x113267,{'headers':_0x5de442[_0x390289(0x3b2)],'withCredentials':_0x5de442['withCredentials'],'responseType':_0x5de442[_0x390289(0x2b9)],'body':{'requests':_0x38a41c}});}},{'distributeResult'(_0x555c3a,_0x25c127){const _0x5e1092=_0x235866;let {objectActions:_0x513b89}=_0x555c3a;return _0x25c127[_0x5e1092(0x1a3)](_0x2443f2=>{const _0x6766b7=_0x5e1092;let {unitID:_0x148f13,objectID:_0x104a78,actions:_0x1699fb}=_0x2443f2,_0x9b546a=_0x513b89[_0x6766b7(0x180)](_0x446e8f=>_0x446e8f[_0x6766b7(0x25e)]===_0x148f13&&_0x446e8f['objectID']===_0x104a78);return{'config':_0x2443f2,'result':{'actions':_0x1699fb[_0x6766b7(0x1a3)](_0x31ebcf=>_0x9b546a==null?void 0x0:_0x9b546a['actions']['find'](_0x264973=>_0x264973['action']===_0x31ebcf))[_0x6766b7(0x27a)](_0x5ba271=>!!_0x5ba271),'error':_0x555c3a[_0x6766b7(0x2cd)]}};});}})}));}[_0x19811e(0x154)](){const _0x550d3f=_0x19811e;let _0x3df6ff=this[_0x550d3f(0x216)][_0x550d3f(0x396)](R);return(_0x3df6ff==null?void 0x0:_0x3df6ff[_0x550d3f(0x34e)])??_0x550d3f(0x36d);}async[_0x19811e(0x2cb)](_0x15c42e){const _0x4fa10a=_0x19811e;let _0x5cff36=this[_0x4fa10a(0x154)]()+'/'+_0x15c42e[_0x4fa10a(0x3b3)]+_0x4fa10a(0x237);return(await this[_0x4fa10a(0x34f)]['post'](_0x5cff36,{'body':_0x15c42e}))[_0x4fa10a(0x1ea)][_0x4fa10a(0x18f)]||'';}async['list'](_0x33d586){const _0x2af936=_0x19811e;let _0x4198e2=this[_0x2af936(0x154)]()+_0x2af936(0x1ff);return(await this['_HTTPService']['post'](_0x4198e2,{'body':_0x33d586}))[_0x2af936(0x1ea)][_0x2af936(0x165)];}async[_0x19811e(0x18a)](_0x1689d1){const _0x4ce917=_0x19811e;var _0x5d13bb;let _0x1bd9b1=this[_0x4ce917(0x154)]()+'/'+_0x1689d1[_0x4ce917(0x3b3)]+_0x4ce917(0x244)+encodeURIComponent(_0x1689d1[_0x4ce917(0x18f)]),_0x362bb3=await this[_0x4ce917(0x34f)]['put'](_0x1bd9b1,{'body':_0x1689d1});if((_0x362bb3==null||(_0x5d13bb=_0x362bb3[_0x4ce917(0x1ea)])==null||(_0x5d13bb=_0x5d13bb[_0x4ce917(0x2cd)])==null?void 0x0:_0x5d13bb[_0x4ce917(0x236)])!==0x1)throw Error(_0x4ce917(0x31e));}async[_0x19811e(0x2e8)](_0x4eed68){const _0x1a0573=_0x19811e;let _0x4bbaf2=this[_0x1a0573(0x154)]()+'/'+_0x4eed68[_0x1a0573(0x3b3)]+_0x1a0573(0x244)+encodeURIComponent(_0x4eed68['objectID'])+_0x1a0573(0x32f);return(await this['_HTTPService'][_0x1a0573(0x128)](_0x4bbaf2,{'body':_0x4eed68}))[_0x1a0573(0x1ea)][_0x1a0573(0x303)];}async['batchAllowed'](_0xf180f){const _0x2c94c2=_0x19811e;let _0x7c6a48=this['_getAPIPrefixPath']()+_0x2c94c2(0x377);return(await this['_HTTPService'][_0x2c94c2(0x128)](_0x7c6a48,{'body':{'requests':_0xf180f}}))[_0x2c94c2(0x1ea)][_0x2c94c2(0x2f1)];}async[_0x19811e(0x30f)](_0x361681){const _0x265c08=_0x19811e;let _0x175460=this[_0x265c08(0x154)]()+'/'+_0x361681[_0x265c08(0x3b3)]+_0x265c08(0x1be),_0x26461e=await this[_0x265c08(0x34f)][_0x265c08(0x128)](_0x175460,{'body':_0x361681});return{'roles':_0x26461e['body'][_0x265c08(0x371)],'actions':_0x26461e['body'][_0x265c08(0x303)]};}async[_0x19811e(0x242)](_0x17ad46){const _0x95dc14=_0x19811e;let _0x5e29bd=this[_0x95dc14(0x154)]()+_0x95dc14(0x326);await this[_0x95dc14(0x34f)]['delete'](_0x5e29bd,{'params':{'collaboratorID':_0x17ad46[_0x95dc14(0x26a)],'objectID':_0x17ad46[_0x95dc14(0x18f)],'unitID':_0x17ad46[_0x95dc14(0x25e)]}});}async[_0x19811e(0x386)](_0x5cbb64){const _0x196422=_0x19811e;let _0x1041ab=this[_0x196422(0x154)]()+_0x196422(0x326);await this[_0x196422(0x34f)][_0x196422(0x33d)](_0x1041ab,{'body':_0x5cbb64});}async['createCollaborator'](_0x1c55e1){const _0x56a8b0=_0x19811e;let _0x4a6480=this[_0x56a8b0(0x154)]()+_0x56a8b0(0x326);await this[_0x56a8b0(0x34f)][_0x56a8b0(0x128)](_0x4a6480,{'body':_0x1c55e1});}async[_0x19811e(0x280)](_0x171773){const _0x4db0f7=_0x19811e;let _0x119d73=this[_0x4db0f7(0x154)]()+'/collaborator',_0x559d60=await this[_0x4db0f7(0x34f)][_0x4db0f7(0x17c)](_0x119d73,{'params':{'objectID':_0x171773[_0x4db0f7(0x18f)],'unitID':_0x171773[_0x4db0f7(0x25e)]}});return this['setCfgEnableObjInherit'](_0x559d60['body'][_0x4db0f7(0x3b4)]??!0x1),_0x559d60['body']['collaborators'];}async['putCollaborators'](_0x458f45){const _0x4007e1=_0x19811e;let _0x2d6380=this[_0x4007e1(0x154)]()+'/collaborator';await this[_0x4007e1(0x34f)][_0x4007e1(0x145)](_0x2d6380,{'body':_0x458f45});}[_0x19811e(0x32d)](_0xdd8cab){const _0x4bfdc2=_0x19811e;this[_0x4bfdc2(0x2bf)]=_0xdd8cab;}[_0x19811e(0x368)](){const _0x3f7a98=_0x19811e;return this[_0x3f7a98(0x2bf)];}};Gn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x480e6d(_0x2477d9))],Gn);function Kn(_0x58707d){const _0x4bcdbc=_0x19811e;let _0x10b699=atob(_0x58707d),_0xd49438=new Uint8Array(_0x10b699[_0x4bcdbc(0x2ab)]);for(let _0x114c92=0x0;_0x114c92<_0x10b699[_0x4bcdbc(0x2ab)];_0x114c92++)_0xd49438[_0x114c92]=_0x10b699['charCodeAt'](_0x114c92);return _0xd49438;}function qn(_0x5785dd){const _0x371b14=_0x19811e;let _0x36865d='';for(let _0x31873d=0x0;_0x31873d<_0x5785dd[_0x371b14(0x2ab)];_0x31873d++)_0x36865d+=String[_0x371b14(0x17a)](_0x5785dd[_0x31873d]);return btoa(_0x36865d);}function Jn(_0x4a122f,_0x1f5a12){const _0xd0fa31=_0x19811e;let _0x4bb260=Kn(_0x1f5a12),_0x24cec2=_0x439cec(0x10),_0x168ee2=_0x255255(_0x4bb260,_0x24cec2)[_0xd0fa31(0x255)](_0x383466(_0x4a122f));return qn(_0x3a4768(_0x24cec2,_0x168ee2));}function Yn(){const _0x439168=_0x19811e;let _0x24704f=_0x2312a4()[_0x439168(0x394)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x24704f){let _0x13b0e7={'time':Math[_0x439168(0x2b0)](Date[_0x439168(0x1de)]()/0x3e8),'domain':location[_0x439168(0x3b5)]};return Jn(JSON[_0x439168(0x3a0)](_0x13b0e7),_0x24704f);}}let Xn=class{constructor(_0x3da831){const _0x578a81=_0x19811e;this[_0x578a81(0x2d7)]=_0x3da831,this[_0x578a81(0x155)]();}[_0x19811e(0x155)](){const _0x29be5b=_0x19811e;this[_0x29be5b(0x2d7)]['registerHTTPInterceptor']({'interceptor':(_0x419ef5,_0x124f03)=>{const _0x14bf6b=_0x29be5b;let _0x5770fa=Yn();return _0x5770fa&&_0x419ef5[_0x14bf6b(0x3b2)][_0x14bf6b(0x1ee)]('x-univer-host',_0x5770fa),_0x124f03(_0x419ef5);}});}};Xn=H([V(0x0,_0x480e6d(_0x4288a3))],Xn);let Zn=class extends _0x39685b{constructor(_0x236184,_0x113add,_0x552793){const _0x52231f=_0x19811e;super(),this[_0x52231f(0x261)]=_0x236184,this[_0x52231f(0x179)]=_0x113add,this['_localCacheService']=_0x552793,z(this,_0x52231f(0x209),new _0x5d64e7(null)),z(this,_0x52231f(0x26b),new _0x33eafc()),z(this,_0x52231f(0x2be),this[_0x52231f(0x209)]['asObservable']()),z(this,_0x52231f(0x37e),this[_0x52231f(0x26b)]['asObservable']());}[_0x19811e(0x194)](){const _0x476bca=_0x19811e;super['dispose'](),this['_unitLoaded$'][_0x476bca(0x279)](),this['_unitInfo$'][_0x476bca(0x279)]();}async[_0x19811e(0x387)](_0x1954aa,_0xe327c3,_0x4b2864,_0x24c353){const _0x1f677f=_0x19811e;this[_0x1f677f(0x209)][_0x1f677f(0x2d6)]({'unitId':_0x1954aa,'type':_0xe327c3,'subUnitId':_0x24c353});let _0x28607b=null;switch(_0xe327c3){case _0x5d23e3[_0x1f677f(0x227)]:_0x28607b=await this['_snapshotService']['loadSheet'](_0x1954aa,_0x4b2864,void 0x0,{'initialSubUnitId':_0x24c353});break;case _0x5d23e3[_0x1f677f(0x126)]:_0x28607b=await this['_snapshotService'][_0x1f677f(0x220)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x305)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x3be)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x328)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x1e9)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x38e)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x153)](_0x1954aa,_0x4b2864);break;case _0x5d23e3[_0x1f677f(0x1f5)]:_0x28607b=await this[_0x1f677f(0x179)][_0x1f677f(0x200)](_0x1954aa,_0x4b2864);break;default:this[_0x1f677f(0x261)][_0x1f677f(0x2cd)](_0x1f677f(0x2c9),_0x1f677f(0x278));}return _0x28607b&&this['_unitLoaded$'][_0x1f677f(0x2d6)](_0x28607b),_0x28607b;}async[_0x19811e(0x357)](_0x17ac98,_0x20214e,_0x1873c4){const _0x32179d=_0x19811e;var _0x402db0;this[_0x32179d(0x209)][_0x32179d(0x2d6)]({'unitId':_0x17ac98,'type':_0x20214e,'subUnitId':_0x1873c4});let _0x339f4c=0x0,_0x20beda=await((_0x402db0=this[_0x32179d(0x121)])==null?void 0x0:_0x402db0[_0x32179d(0x152)](_0x17ac98));return _0x20beda&&(_0x20beda['awaitingChangeset']||_0x20beda[_0x32179d(0x16e)][_0x32179d(0x2ab)]!==0x0)&&(_0x339f4c=_0x20beda[_0x32179d(0x2f4)]),_0x339f4c===0x0&&this[_0x32179d(0x261)][_0x32179d(0x1d1)](_0x32179d(0x2c9),_0x32179d(0x397)),this['loadUnitOfRevision'](_0x17ac98,_0x20214e,_0x339f4c,_0x1873c4);}};Zn=H([V(0x0,_0x1ba700),V(0x1,_0x480e6d(_0x2367e2)),V(0x2,_0x1e59a5(U))],Zn);let Qn=class{constructor(_0xb5ae5d,_0x5356a6,_0x3ba0b8){const _0x36b2f2=_0x19811e;this[_0x36b2f2(0x2d7)]=_0xb5ae5d,this['_configService']=_0x5356a6,this[_0x36b2f2(0x2e7)]=_0x3ba0b8,z(this,_0x36b2f2(0x15d),0x0),z(this,'_change$',new _0x33eafc()),z(this,_0x36b2f2(0x160),this[_0x36b2f2(0x3b1)]),z(this,_0x36b2f2(0x37c),new Map());}[_0x19811e(0x1ad)](_0x12478c){const _0x485a2a=_0x19811e;this[_0x485a2a(0x15d)]=_0x12478c,this['_change$']['next'](_0x12478c);}[_0x19811e(0x23b)](_0x4f2fdd,_0x2dbfb4){const _0x300214=_0x19811e;if(_0x2dbfb4===_0x19206b['BASE64']){let _0x201dea=new Image();return _0x201dea[_0x300214(0x35f)]=_0x4f2fdd,_0x201dea;}return this[_0x300214(0x37c)][_0x300214(0x17c)](_0x4f2fdd);}[_0x19811e(0x1a0)](_0x165f64,_0x2c95cd,_0x947189){const _0x1b85b3=_0x19811e;_0x2c95cd!==_0x19206b['BASE64']&&_0x947189!=null&&this[_0x1b85b3(0x37c)]['set'](_0x165f64,_0x947189);}async[_0x19811e(0x1fd)](_0x1bf856){const _0x1983b7=_0x19811e;try{let _0x3ec90f=this[_0x1983b7(0x162)](this[_0x1983b7(0x28c)](),''+_0x1bf856),_0x5e7843=(await this['_httpService'][_0x1983b7(0x17c)](_0x3ec90f))[_0x1983b7(0x1ea)];if(_0x5e7843['error']&&_0x5e7843[_0x1983b7(0x2cd)][_0x1983b7(0x236)]===_0x21e177['OK']){let _0x42e628=_0x26be64(_0x5e7843['url'],this[_0x1983b7(0x32c)]());return Promise[_0x1983b7(0x2c5)](_0x42e628);}return Promise['reject'](_0x5e7843['error']);}catch(_0x28d38f){return Promise['reject'](_0x28d38f);}}async[_0x19811e(0x2cf)](_0x4d35f8){const _0x14470d=_0x19811e;let _0x4d218a='';if(!_0x595060[_0x14470d(0x139)](_0x4d35f8[_0x14470d(0x392)]))return this[_0x14470d(0x3cf)](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x294)]));if(_0x4d35f8[_0x14470d(0x3c3)]>_0x5a7afa())return this[_0x14470d(0x3cf)](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x19e)]));try{let _0x2a568a=new FormData();_0x2a568a['append'](_0x14470d(0x1a1),_0x4d35f8);let _0x36ac70=this['_univerInstanceService'][_0x14470d(0x1f8)](),_0x5dff0e=_0x36ac70==null?void 0x0:_0x36ac70['getUnitId']();if(!_0x5dff0e)throw Error(_0x14470d(0x172));let _0x2ed961=this[_0x14470d(0x3d5)]()+_0x14470d(0x298)+_0x4d35f8['size']['toString']()+_0x14470d(0x205)+_0x4a74cc[_0x14470d(0x3c9)]+_0x14470d(0x157)+encodeURIComponent(_0x5dff0e),_0x2e160d={'body':_0x2a568a},_0x16a58b=(await this[_0x14470d(0x2d7)]['post'](_0x2ed961,_0x2e160d))[_0x14470d(0x1ea)];if(typeof _0x16a58b[_0x14470d(0x289)]!=_0x14470d(0x2f5))return this['_decreaseWaiting'](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7['ERROR_IMAGE']));_0x4d218a=_0x16a58b['FileId'];}catch{return this['_decreaseWaiting'](),Promise[_0x14470d(0x33a)](Error(_0xe8fff7[_0x14470d(0x356)]));}return new Promise((_0x211bfb,_0x2350e7)=>{const _0x49bafc=_0x14470d;let _0x517710=new FileReader();_0x517710['readAsDataURL'](_0x4d35f8),_0x517710[_0x49bafc(0x34c)]=_0x2a5745=>{const _0x1057d2=_0x49bafc;var _0x16efd7;let _0x176c01=(_0x16efd7=_0x2a5745[_0x1057d2(0x135)])==null?void 0x0:_0x16efd7[_0x1057d2(0x2e9)];if(_0x176c01==null){this[_0x1057d2(0x3cf)](),_0x2350e7(Error(_0xe8fff7[_0x1057d2(0x356)]));return;}_0x211bfb({'imageId':_0x5f3466(0x6),'imageSourceType':_0x19206b['UUID'],'source':_0x4d218a,'base64Cache':_0x176c01,'status':_0xe8fff7['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x19811e(0x3d5)](){const _0x330b68=_0x19811e;let _0x265c89=this['_configService'][_0x330b68(0x396)](R);return(_0x265c89==null?void 0x0:_0x265c89[_0x330b68(0x3d4)])??_0x330b68(0x389);}[_0x19811e(0x28c)](){const _0x48d3ed=_0x19811e;let _0x1a87dc=this['_configService']['getConfig'](R);return(_0x1a87dc==null?void 0x0:_0x1a87dc[_0x48d3ed(0x251)])??'/universer-api/file/{fileID}/sign-url';}[_0x19811e(0x32c)](){const _0x5e8af7=_0x19811e;let _0x5f1e78=this['_configService'][_0x5e8af7(0x396)](R);return(_0x5f1e78==null?void 0x0:_0x5f1e78[_0x5e8af7(0x20f)])??location['origin'];}[_0x19811e(0x162)](_0xe108c9,_0x50df0d){const _0x3e7024=_0x19811e;return _0xe108c9[_0x3e7024(0x1c3)](_0x3e7024(0x217),_0x50df0d);}['_decreaseWaiting'](){const _0x392a9c=_0x19811e;--this[_0x392a9c(0x15d)],this[_0x392a9c(0x3b1)][_0x392a9c(0x2d6)](this[_0x392a9c(0x15d)]);}};Qn=H([V(0x0,_0x480e6d(_0x4288a3)),V(0x1,_0x2477d9),V(0x2,_0x480e6d(_0x4f5fa8))],Qn);let $n=class{constructor(_0x1e0189,_0x35d579){const _0x14cdc6=_0x19811e;this[_0x14cdc6(0x216)]=_0x1e0189,this[_0x14cdc6(0x34f)]=_0x35d579;}[_0x19811e(0x154)](){const _0x13e32a=_0x19811e;let _0x4f671a=this[_0x13e32a(0x216)][_0x13e32a(0x396)](R);return(_0x4f671a==null?void 0x0:_0x4f671a[_0x13e32a(0x34e)])??'/universer-api/authz';}async[_0x19811e(0x3a3)](_0x1a20af){const _0x51f3b8=_0x19811e;let _0x528772=this[_0x51f3b8(0x154)]()+_0x51f3b8(0x326);return{'list':[{'title':_0x51f3b8(0x178),'mentions':(await this['_HTTPService'][_0x51f3b8(0x17c)](_0x528772,{'params':{'objectID':_0x1a20af[_0x51f3b8(0x22b)],'unitID':_0x1a20af[_0x51f3b8(0x22b)]}}))[_0x51f3b8(0x1ea)][_0x51f3b8(0x17e)][_0x51f3b8(0x1a3)](_0x1928b6=>({'objectId':_0x1928b6['id'],'name':_0x1928b6[_0x51f3b8(0x325)][_0x51f3b8(0x1a8)],'metadata':{'icon':_0x1928b6['subject']['avatar']},'label':_0x1928b6[_0x51f3b8(0x325)][_0x51f3b8(0x1a8)],'objectType':_0x2cf8e7[_0x51f3b8(0x25b)]})),'metadata':{},'type':_0x2cf8e7[_0x51f3b8(0x25b)]}]};}};$n=H([V(0x0,_0x480e6d(_0x2477d9)),V(0x1,_0x480e6d(_0x4288a3))],$n);let er=class extends _0x39685b{constructor(_0x11b6f9,_0x4db643,_0x47fb8a,_0x58d192,_0x19841c,_0x5a8f3b){const _0x340db3=_0x19811e;super(),this['_injector']=_0x11b6f9,this[_0x340db3(0x2e7)]=_0x4db643,this[_0x340db3(0x283)]=_0x47fb8a,this['_authzIoService']=_0x58d192,this[_0x340db3(0x2d8)]=_0x19841c,this[_0x340db3(0x1af)]=_0x5a8f3b,z(this,_0x340db3(0x395),new Set()),this[_0x340db3(0x34b)](()=>this[_0x340db3(0x395)][_0x340db3(0x2e5)]()),this[_0x340db3(0x34b)](tr(this['_univerInstanceService'])['subscribe'](({unitId:_0x35629b})=>this[_0x340db3(0x395)][_0x340db3(0x347)](_0x35629b))),this[_0x340db3(0x210)](),this[_0x340db3(0x39a)](),[_0x5d23e3[_0x340db3(0x126)],_0x5d23e3[_0x340db3(0x305)],_0x5d23e3['UNIVER_BASE'],_0x5d23e3['UNIVER_BOARD']][_0x340db3(0x332)](_0x5e96f3=>{const _0x2ba13c=_0x340db3;this[_0x2ba13c(0x34b)](this[_0x2ba13c(0x2e7)][_0x2ba13c(0x131)](_0x5e96f3)[_0x2ba13c(0x2c1)](_0x5377e0=>{const _0x5798fe=_0x2ba13c;this[_0x5798fe(0x395)][_0x5798fe(0x2d1)](_0x5377e0[_0x5798fe(0x382)]()),this[_0x5798fe(0x302)][_0x5798fe(0x17c)](_0x38d5f0)[_0x5798fe(0x2fa)](_0x5377e0[_0x5798fe(0x382)]());}));});}[_0x19811e(0x39a)](){const _0x2bd420=_0x19811e;let _0x394e65=async(_0x59af34,_0xf440a)=>{const _0x47194f=_0x32e6;let _0x4ababd=await this[_0x47194f(0x2d8)][_0x47194f(0x254)](_0x59af34);this[_0x47194f(0x21a)]||this[_0x47194f(0x395)]['has'](_0x59af34)||!this[_0x47194f(0x2e7)][_0x47194f(0x3a2)](_0x59af34)||_0x4ababd['event$'][_0x47194f(0x273)](_0xae526b(_0x35583f=>_0x35583f['eventID']===_0x27a7e8[_0x47194f(0x137)]),_0x5e490d(_0x5e3e6a(this[_0x47194f(0x1a7)],this[_0x47194f(0x2e7)][_0x47194f(0x15a)]['pipe'](_0xae526b(_0x2f6c49=>_0x2f6c49[_0x47194f(0x382)]()===_0x59af34)))))[_0x47194f(0x2c1)](_0x5b4ccd=>{const _0xa9163b=_0x47194f;let {reason:_0x5efd17}=_0x5b4ccd[_0xa9163b(0x202)];this['_collaborationUIEventService']['emitEvent']({'id':'CLOSE_ROOM','data':_0x5efd17}),this[_0xa9163b(0x395)][_0xa9163b(0x2d1)](_0x59af34),this['_injector']['get'](_0x38d5f0)[_0xa9163b(0x2fa)](_0x59af34);let _0x173790=nr(_0xf440a);_0x173790!=null&&this[_0xa9163b(0x18c)](_0x59af34,_0x173790,_0x1f5848[_0xa9163b(0x228)],!0x1),this['_collaborationSessionService'][_0xa9163b(0x24e)](_0x59af34);});};tr(this[_0x2bd420(0x2e7)])['pipe'](_0xae526b(({unitId:_0x2e793a})=>!_0x5a7193(_0x2e793a)),_0x5e490d(this[_0x2bd420(0x1a7)]))[_0x2bd420(0x2c1)](({type:_0x72ab82,unitId:_0xc4dc59})=>{const _0x3a3e29=_0x2bd420;_0x394e65(_0xc4dc59,_0x72ab82)[_0x3a3e29(0x34a)](_0xd735fd=>this[_0x3a3e29(0x302)]['get'](_0x1ba700)[_0x3a3e29(0x2cd)](_0xd735fd));});}[_0x19811e(0x210)](){const _0x44d88e=_0x19811e;let _0x1dc372=async(_0x3b7d5d,_0x3d658c)=>{const _0x1ce2bf=_0x32e6;let _0x5d096b=await this[_0x1ce2bf(0x2d8)]['requireSession'](_0x3b7d5d);if(!(this[_0x1ce2bf(0x21a)]||this['_closedUnits'][_0x1ce2bf(0x1d6)](_0x3b7d5d)||!this['_univerInstanceService'][_0x1ce2bf(0x3a2)](_0x3b7d5d))){if(_0x3d658c===_0x5d23e3[_0x1ce2bf(0x227)]){let _0x4166f2=this[_0x1ce2bf(0x302)][_0x1ce2bf(0x17c)](_0x56ae16);await _0x4166f2['initWorkbookPermissionChange'](_0x3b7d5d),_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x1cd2d5=>_0x1cd2d5['eventID']===_0x27a7e8[_0x1ce2bf(0x32a)]),_0x5e490d(_0x5e3e6a(this['dispose$'],_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x58f7ee=>_0x58f7ee[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x137)])),this[_0x1ce2bf(0x2e7)]['unitDisposed$']['pipe'](_0xae526b(_0x5f1750=>_0x5f1750[_0x1ce2bf(0x382)]()===_0x3b7d5d)))))[_0x1ce2bf(0x2c1)](_0x440a5a=>{const _0x4871be=_0x1ce2bf;let {objectId:_0x10faba}=_0x440a5a[_0x4871be(0x202)];_0x10faba===_0x3b7d5d?_0x4166f2[_0x4871be(0x213)](_0x3b7d5d):_0x4166f2[_0x4871be(0x16f)](_0x3b7d5d,_0x10faba);});return;}_0x5d096b[_0x1ce2bf(0x360)]['pipe'](_0xae526b(_0x437905=>_0x437905[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x32a)]),_0x5e490d(_0x5e3e6a(this['dispose$'],_0x5d096b[_0x1ce2bf(0x360)][_0x1ce2bf(0x273)](_0xae526b(_0x5e5853=>_0x5e5853[_0x1ce2bf(0x13c)]===_0x27a7e8[_0x1ce2bf(0x137)])),this['_univerInstanceService']['unitDisposed$'][_0x1ce2bf(0x273)](_0xae526b(_0x5a1dcf=>_0x5a1dcf[_0x1ce2bf(0x382)]()===_0x3b7d5d)))))[_0x1ce2bf(0x2c1)](()=>{const _0x4df9b6=_0x1ce2bf;this['_refreshUnitPermission'](_0x3b7d5d,_0x3d658c)[_0x4df9b6(0x34a)](_0x1ddd96=>this[_0x4df9b6(0x302)][_0x4df9b6(0x17c)](_0x1ba700)[_0x4df9b6(0x2cd)](_0x1ddd96));}),await this[_0x1ce2bf(0x23a)](_0x3b7d5d,_0x3d658c);}};tr(this[_0x44d88e(0x2e7)])[_0x44d88e(0x273)](_0xae526b(({unitId:_0x5ea4f4})=>!_0x5a7193(_0x5ea4f4)),_0x5e490d(this[_0x44d88e(0x1a7)]))[_0x44d88e(0x2c1)](({type:_0x36eab9,unitId:_0x5acfc3})=>{const _0x5ced3f=_0x44d88e;_0x1dc372(_0x5acfc3,_0x36eab9)['catch'](_0x24e449=>this['_injector'][_0x5ced3f(0x17c)](_0x1ba700)['error'](_0x24e449));});}async[_0x19811e(0x23a)](_0x25d126,_0xfa9325){const _0x248c61=_0x19811e;let _0x20389b=nr(_0xfa9325);if(_0x20389b==null)return;let _0x1fbba2=this['_injector'][_0x248c61(0x17c)](_0x38d5f0);if(_0x1fbba2['supports']({'unitId':_0x25d126,'objectId':_0x25d126,'objectType':_0x20389b})){await _0x1fbba2['refreshUnit'](_0x25d126);return;}let _0x8b41cb=this[_0x248c61(0x25f)](_0x25d126,_0x20389b);if(!_0x8b41cb[_0x248c61(0x2ab)])return;let _0x18c649=await this[_0x248c61(0x148)][_0x248c61(0x2e8)]({'objectID':_0x25d126,'objectType':_0x20389b,'unitID':_0x25d126,'actions':_0x8b41cb[_0x248c61(0x1a3)](({action:_0x1ce138})=>_0x1ce138)});this[_0x248c61(0x21a)]||this[_0x248c61(0x395)][_0x248c61(0x1d6)](_0x25d126)||!this[_0x248c61(0x2e7)]['getUnit'](_0x25d126)||_0x18c649[_0x248c61(0x332)](_0x2bf7c6=>{const _0x591c62=_0x248c61;let _0x19a136=_0x2bf7c6[_0x591c62(0x313)],_0x380f20=_0x2bf7c6[_0x591c62(0x2e8)];_0x19a136!=null&&_0x380f20!=null&&_0x8b41cb[_0x591c62(0x27a)](_0x1e27d9=>_0x1e27d9[_0x591c62(0x313)]===_0x19a136)[_0x591c62(0x332)](_0x3ab3ae=>this[_0x591c62(0x283)]['updatePermissionPoint'](_0x3ab3ae['id'],_0x380f20));});}[_0x19811e(0x25f)](_0x2ff7ab,_0x1bee50){const _0x4651f8=_0x19811e;let _0x3fbc86=[];return this[_0x4651f8(0x283)][_0x4651f8(0x13f)]()[_0x4651f8(0x332)]((_0x4158a7,_0x506d1e)=>{const _0x1d8c8e=_0x4651f8;_0x4158a7[_0x1d8c8e(0x2c1)](_0x2a99c4=>{const _0x56c22a=_0x1d8c8e;_0x2a99c4['type']===_0x1bee50&&_0x56c22a(0x22b)in _0x2a99c4&&_0x2a99c4['unitId']===_0x2ff7ab&&(!(_0x56c22a(0x300)in _0x2a99c4)||_0x2a99c4[_0x56c22a(0x300)]===_0x2ff7ab)&&_0x3fbc86[_0x56c22a(0x335)]({'id':_0x506d1e,'action':_0x2a99c4[_0x56c22a(0x27e)]});})[_0x1d8c8e(0x185)]();}),_0x3fbc86;}[_0x19811e(0x18c)](_0x152f88,_0x33678d,_0x479200,_0x4dd2c0){const _0x368e38=_0x19811e;this[_0x368e38(0x283)]['getAllPermissionPoint']()['forEach']((_0x462da3,_0x532799)=>{const _0x46597e=_0x368e38;let _0xe06296=!0x1;_0x462da3[_0x46597e(0x2c1)](_0x3671ff=>{const _0x5edd84=_0x46597e;_0xe06296=_0x3671ff[_0x5edd84(0x392)]===_0x33678d&&_0x3671ff[_0x5edd84(0x27e)]===_0x479200&&'unitId'in _0x3671ff&&_0x3671ff[_0x5edd84(0x22b)]===_0x152f88&&(!('objectId'in _0x3671ff)||_0x3671ff[_0x5edd84(0x300)]===_0x152f88);})['unsubscribe'](),_0xe06296&&this['_permissionService'][_0x46597e(0x3d1)](_0x532799,_0x4dd2c0);});}};er=H([V(0x0,_0x480e6d(_0x5a91fd)),V(0x1,_0x4f5fa8),V(0x2,_0x2197a8),V(0x3,_0x3a226b),V(0x4,_0x480e6d(In)),V(0x5,_0x480e6d(B))],er);function tr(_0xd17465){const _0xf45ac6=_0x19811e;return _0x5e3e6a(...[_0x5d23e3['UNIVER_SHEET'],_0x5d23e3[_0xf45ac6(0x126)],_0x5d23e3[_0xf45ac6(0x305)],_0x5d23e3[_0xf45ac6(0x328)],_0x5d23e3[_0xf45ac6(0x38e)]][_0xf45ac6(0x1a3)](_0x13d58a=>_0xd17465['getTypeOfUnitAdded$'](_0x13d58a)[_0xf45ac6(0x273)](_0x49f6f7(_0x5b9220=>({'type':_0x13d58a,'unitId':_0x5b9220[_0xf45ac6(0x225)][_0xf45ac6(0x382)]()})))));}function nr(_0x13e3b5){const _0x5b62d8=_0x19811e;switch(_0x13e3b5){case _0x5d23e3[_0x5b62d8(0x227)]:return _0x5e7d94[_0x5b62d8(0x2a7)];case _0x5d23e3[_0x5b62d8(0x126)]:return _0x5e7d94['Document'];case _0x5d23e3['UNIVER_SLIDE']:return _0x5e7d94[_0x5b62d8(0x383)];case _0x5d23e3[_0x5b62d8(0x328)]:return _0x5e7d94['Board'];case _0x5d23e3[_0x5b62d8(0x38e)]:return _0x5e7d94[_0x5b62d8(0x3e1)];default:return;}}let rr=class{constructor(_0x16d8cd,_0x465692){this['_configService']=_0x16d8cd,this['_httpService']=_0x465692;}async[_0x19811e(0x318)](_0x41a37d,_0x2a2845){const _0x9d7a33=_0x19811e;var _0x448312;let {unitID:_0x1fbdf1,type:_0x3d3306,revision:_0x55ab3a=0x0}=_0x2a2845,_0x3a3b5a=this[_0x9d7a33(0x247)]()+'/'+_0x3d3306+'/unit/'+_0x1fbdf1+_0x9d7a33(0x3ab)+_0x55ab3a,_0x42dcf2=(await this[_0x9d7a33(0x2d7)][_0x9d7a33(0x17c)](_0x3a3b5a))[_0x9d7a33(0x1ea)],_0x348464=(_0x448312=_0x42dcf2[_0x9d7a33(0x2ed)])==null?void 0x0:_0x448312['workbook'];if(_0x348464){let _0x1e71da=_0x348464==null?void 0x0:_0x348464[_0x9d7a33(0x1ec)];_0x348464[_0x9d7a33(0x1ec)]=_0xa79221[_0x9d7a33(0x393)](_0x4ce680(_0x1e71da)),Object['entries'](_0x348464[_0x9d7a33(0x1f7)])[_0x9d7a33(0x332)](([,_0x371749])=>{const _0x26ef0f=_0x9d7a33;let _0x1cd4b8=_0x371749[_0x26ef0f(0x1ec)];_0x371749[_0x26ef0f(0x1ec)]=_0xa79221['encode'](_0x4ce680(_0x1cd4b8));});}return _0x42dcf2;}async['getSheetBlock'](_0x3341eb,_0xbe12cc){const _0x345af9=_0x19811e;let {unitID:_0x1b7a7d,type:_0x5e1aef,blockID:_0x40353d}=_0xbe12cc,_0x41ce48=this[_0x345af9(0x16c)]()+'/'+_0x5e1aef+_0x345af9(0x186)+_0x1b7a7d+_0x345af9(0x39c)+_0x40353d;return(await this[_0x345af9(0x2d7)][_0x345af9(0x17c)](_0x41ce48))['body'];}async[_0x19811e(0x253)](_0x48fe0d,_0x35fd58){const _0x4490a6=_0x19811e;let {unitID:_0x403a2e,type:_0x5bc6c2,blockID:_0x714c10}=_0x35fd58,_0x3bab48=this[_0x4490a6(0x16c)]()+_0x4490a6(0x39c)+_0x5bc6c2+_0x4490a6(0x186)+_0x403a2e+'/block/'+_0x714c10;return(await this[_0x4490a6(0x2d7)][_0x4490a6(0x17c)](_0x3bab48))[_0x4490a6(0x1ea)];}async[_0x19811e(0x19a)](_0x575528,_0xa3b550){const _0x44d6fc=_0x19811e;let {unitID:_0x42be3,type:_0xdbc8cb,from:_0xaad239,to:_0x343b3d}=_0xa3b550,_0x5a78e1=this[_0x44d6fc(0x16c)]()+'/'+_0xdbc8cb+_0x44d6fc(0x186)+_0x42be3+_0x44d6fc(0x198)+_0xaad239+_0x44d6fc(0x268)+_0x343b3d;return(await this['_httpService'][_0x44d6fc(0x17c)](_0x5a78e1))['body'];}[_0x19811e(0x247)](){const _0x29d973=_0x19811e;return this['_configService']['getConfig'](_0x29d973(0x2b5))??this[_0x29d973(0x16c)]();}[_0x19811e(0x16c)](){const _0x217eae=_0x19811e;let _0x22400c=this[_0x217eae(0x216)]['getConfig'](R);return(_0x22400c==null?void 0x0:_0x22400c['snapshotServerUrl'])??_0x217eae(0x380);}async[_0x19811e(0x35d)](_0x2e75ff,_0x5c9a5f){const _0x5275a2=_0x19811e;let _0x51feed=_0x5275a2(0x361)+_0x5c9a5f[_0x5275a2(0x392)]+_0x5275a2(0x186)+_0x5c9a5f['unitID']+_0x5275a2(0x299);return(await this['_httpService'][_0x5275a2(0x17c)](_0x51feed,{'params':{'resourceId':JSON['stringify'](_0x5c9a5f['resourceIDs'])}}))[_0x5275a2(0x1ea)];}[_0x19811e(0x26f)](){const _0x1ed675=_0x19811e;throw Error(_0x1ed675(0x366));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x19811e(0x1c8)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x19811e(0x2ad)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x2642aa=_0x19811e;throw Error(_0x2642aa(0x366));}[_0x19811e(0x295)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};rr=H([V(0x0,_0x2477d9),V(0x1,_0x480e6d(_0x4288a3))],rr);function _0x1be8(){const _0x428d3b=['encrypt','_rescheduleHeartbeat','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByIMECache','_emitMembers','function','PERSON','_sessions','attachment','unitID','_getUnitPermissionPoints','_showConflictProcessingNotification','_logService','IDLE','OTHER_CLIENTS_EDITING','_onConnectionFailed','CHANGESET_REJ','session.room-full','columnGroups','&to=','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','collaboratorID','_unitLoaded$','PSEUDO_FETCH_MISSING_RESULT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','init','saveSnapshot','_transformRemoteChangesetByStateCache','_revisionService','save\x20fail\x20reason\x20is\x20','pipe','4411326YkLDhR','_acknowledgeAwaiting','sendHeartbeatTimer','pending','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','complete','filter','_type','tables','fetching\x20missing\x20changesets\x20from\x20','subType','socketService','listCollaborators','pauseCollaboration','members','_permissionService','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[CollaborationUndoRedoService]','_hasSessionsForEndpoint','onTransformSelections','UNISCRIPT_RUN','FileId','not_collab','_tryReconnect','_getSignURL','_snapshotServerService','1.0.2','_init','[OfflineState]:\x20received\x20changeset.','_collabSessionService','_transformAndApplyRemoteChangeset','indexOf','ERROR_IMAGE_TYPE','getLatestCsReqIdBySid','_shouldReportTelemetry','_onRemoteChangeset','?size=','/resources','getValue','_transformIMECache','_onConnectionOpen','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','JOIN_ROOM_FAILED','then','getUnitStatus$','session.room-cnt-exceeds','sessionStatus','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','state$','infoRsp','_members$','Workbook','sort','COLLABORATION_ENDPOINT_INVALID','3062735ZrqxwQ','length','onTransformState','saveChangeset','HEARTBEAT_TIMEOUT','HEARTBEAT_INTERVAL','floor','splice','_sendHeartbeat','userID','requestParams','SNAPSHOT_URL_KEY','isPermissionRej','_networkConditionService','maxSize','responseType','m2Prime','collaboration-client.config','_socketMessageSubscription','_adapter','unitInfo$','_cfgEnableObjInherit','_initMergeInterceptor','subscribe','incrementRevOfUnit','getCollabEntity','[CollaborationSessionService]','resolve','endpoint','_substituteUndoStack','CONFLICT_PROCESSING','[DataLoaderService]','resolveUnit','create','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','error','commit','saveImage','onRemoteRej','add','[CollaborationSessionService]:\x20socket\x20error','_createInitialState','retryConnectingTimer','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','next','_httpService','_collaborationSessionService','cmd','_roomCreated$','_redoStacks','/universer-api/oidc/authpage','origin','toggleOffline','_onRecvEvent','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','LIVESHARE_TERMINATE','_getConfig','iterator','unitType','clear','_tryEnsureSocket','_univerInstanceService','allowed','result','getCurrentRevOfUnit','_startTelemetryCollaborationNewChangeset','_stopTelemetryCollaborationNewChangeset','snapshot','memberID','[SyncedState]:\x20received\x20acknowledgement.','univer-pro.collaboration-client.network-condition.service','objectActions','version','NOT_COLLAB','rev','string','_transformStack','retryConnectingInterval','objectPermissionTypes','Univer','clearUnit','INGEST','base-ui.attachment-io.service','fetch_missing','revision','unknown','objectId','_state','_injector','actions','\x20to\x20','UNIVER_SLIDE','340543QJjqPL','NO_OTHER_CLIENTS_EDITING','HELLO','values','appendMutation','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_createSocket','socketReady','PERMISSION_DENIED','listRoles','_commentService','capture','endsWith','action','_state$','POST','asObservable','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getUnitOnRev','_clearHeartbeatTimer','_sender','onTransformRemoteChangesetByStateCache','localeService','_identity','Failed\x20to\x20update\x20permission\x20point','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','LIVESHARE_FETCH_OPERATIONS','_updateStatus','/universer-api/uniscript','_incrementRevisionNumber','updateMember','subject','/collaborator','synced','UNIVER_BOARD','_waitForHeartbeatResponse','UPDATE_PERMISSION_OBJ','fetchThroughInterceptors','_getDownloadEndpointURL','setCfgEnableObjInherit','transformUndoRedo','/allowed','transformChangesets','/universer-api/file/{fileID}/sign-url','forEach','_roomMembers','reqId','push','PERMISSION_REJ','SUBMIT_CHANGESET_TIMEOUT','_docStateChangeManagerService','_telemetryService','reject','_transformUndoredo','findIndex','patch','onRemoteAck','_pendingMutations','_onUserLeave','_initDependencies','SOCKET_FAILED','FAIL','MSG_FOR_ERROR','4742FaTLSO','getCollabEntity$','delete','UPDATE_CURSOR','setConfig','catch','disposeWithMe','onload','USERS_ENTER','authzUrl','_HTTPService','getMemberID','[CollaborationSession]','interceptor','_getRedoStack','_prepareConflictRecovery','editing\x20status\x20changed\x20to','ERROR_IMAGE','loadUnit','csRejEvent','params','_scheduleCollaborationTimeoutTimer','symbol','_executeRemoteChangeset','getResourcesRequest','_upload','src','event$','/universer-api/snapshot/','_fetchMissChangesets','setShowComponents','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_socket','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','getCfgEnableObjInherit','updateOfflineData','onRemoteRetry','_getCurrentRevision','\x20-\x20','/universer-api/authz','onSyncEditingCollabCursor','_createHandler','apply','roles','open$','_eventService','toString','waitForRoom$','_onRemoteRetry','/-/object/-/batch_allowed','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_clearUndo','JOIN_ROOM_PERMISSION_DENIED','_remoteChangesetQueue','_imageSourceCache','trim','unitLoaded$','text-x','/universer-api/snapshot','COMPRESS_MUTATION_APPLY','getUnitId','Slide','number','GLOBAL_ROOMS_CNT_EXCEEDS','updateCollaborator','loadUnitOfRevision','_clearCollaborationTimeoutTimer','/universer-api/stream/file/upload','commentUpdate$','JOIN_ROOM_FULL','localCacheService','_entities','UNIVER_BASE','_entityInit$','Error\x20on\x20receiving\x20event','_socketService','type','encode','__Key__','_closedUnits','getConfig','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','NEW_CHANGESETS','_singleActiveUnitService','_initCloseConn','FETCH_MISSING','/block/','_onJoinRoomEvent','getTypeOfUnitAdded$','_telemetryInfo','stringify','PENDING','getUnit','list','_userManagerService','sessionStatus$','getUploadOptions','c1Prime','parse','telemetry\x20info\x20is\x20not\x20initialized','_commandService','/rev/','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','awaiting','close$','UNIVER_COLLABORATION_CLIENT_PLUGIN','endpointKey','_change$','headers','objectType','cfgEnableObjInherit','hostname','[CollaborationEntity]','collaboration-client.local-cache-service','_scheduleCompleteTimestamp','_socketChannels','registerHTTPInterceptor','80FprHxB','localUnitId','toRemote','loadSlide','_clearRetryConnectingTimer','AWAITING_WITH_PENDING','CLOSE_ROOM','isArray','size','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','range','newCsEvent','getCurrentSelections','28383tatrAb','UnitEmbedded','_resendTimer','onlyLocal','OFFLINE','_disableEditing','_throwTelemetryCollaborationNewChangeset','_decreaseWaiting','addHandlerCallback','updatePermissionPoint','_replayCachedMutations','_members','uploadFileServerUrl','_getUploadFileURL','_handleRemoteChangesets','readyForCollab','_transformService','reduce','roomInfos','onMissingChangesets','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','textRanges','UUID','_clearScheduledTask','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','Base','_localCacheService','/universer-api/user/session-ticket','LIVESHARE_OPERATION','LIVESHARE_NEW_HOST','_prepareTransformSelections','UNIVER_DOC','session.room-permission-denied','post','upload','getRoom','_createInitialStateImpl','_event$','_checkMissing','_queuedRemoteChangesets','onCommentUpdate','SYNCED','getTypeOfUnitDisposed$','stopTime','object','min','target','changeset','SHOULD_CLOSE_CONN','onPrepareTransformSelections','includes','_onConflict','univer-pro.collaboration-client-socket-service','eventID','joinEvent','_applyRemoteChangeset','getAllPermissionPoint','enableOfflineEditing','slice','onMutationExecutedForCollab','_createSession','executeCommand','put','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onLocalMutation','_authzIoService','getAllMembers','removeMember','_joinRoom','CONFLICT_CACHE_CLEAR_FAILED','getInterceptPoints','_undoRedoService','collabSubmitChangesetUrl','_lockTransition','_handler','loadOfflineData','loadBase','_getAPIPrefixPath','_initRequestHeader','sendChangesetTimeout','&assign=','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','fetchMiss','unitDisposed$','40dhmOFl','csShouldRetryEvent','_waitCount','_onUserJoin','getSheetId','change$','_localeService','_replaceFileID','_collaborationPaused','univer-pro.collaboration-client-adapter-service','objects','_transformSelections','call','_isEchoedAwaitingChangeset','timeoutTimer','_clearRedo','_resendWithTimeout','_getAPIPrefix','USERS_LEAVE','mutations','refreshPermission','_status$','_clearTimeoutTimer','unitId\x20is\x20not\x20found','send','uniscriptRunEvent','duration','_unlockTransition','_commentUpdate$','People','_snapshotService','fromCharCode','url','get','status$','collaborators','close','find','socketMessageSubscription','_getLoginPath','_getSocketChannel','_sendingTimer','unsubscribe','/unit/','append','changesets','connection\x20error','update','_syncEditingCollabCursor','_updateUnitPermissionPoint','status','socket$','objectID','OTHER_CLIENT_EDITING','override','offline','compose','dispose','state','_acknowledgeAwaitingIfReady','href','/fetchmissing?from=','_sessionStatus$','fetchMissingChangesets','FETCH_MISS','conflict','transformMutationsWithChangeset','ERROR_EXCEED_SIZE','startsWith','addImageSourceCache','file','_sessionChannels','map','_substituteRedoStack','updateCursorEvent','session.room-not-exists','dispose$','name','location','some','_maxTotalRetryTimeout','awaiting_with_pending','setWaitCount','loginUrlKey','_collaborationUIEventService','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_updateLocalCache','transformSelections','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','socket\x20close','[UniverCollaborationClientPlugin]','COMMENT_UPDATE','permissionRejEvent','pluginName','getWorkbookSelections','CHANGESET_SHOULD_RETRY','getMember','routeKey','liveShareOperation','/role','_transitionLocked','subUnitId','onStateChange','constructor','replace','_instanceService','method','equals','hasOwnProperty','saveSheetBlock','submit\x20changeset\x20error!','HEARTBEAT','_handlerCallback','_getUndoStack','_config','leaveEvent','_removeRoom','ONLINE','debug','createInstance','COMPRESS_MUTATION_SEND','online$','missingChangesets','has','372zAQukJ','getOwnPropertyDescriptor','JOIN','candidateSocket','_getSendChangesetTimeout','max','onRemoteChangeset','now','retryCount','OPTIONAL','every','_updateState','getUnitType','_transformRemoteChangesetByIMECache','editingUnit','_acknowledgedAwaitingRevision','RECV','_changesetSessionId','loadBoard','body','?url=','originalMeta','enableAuthServer','set','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[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.','message$','fromCollab','session.join-failed','_pendingSessions','UNIVER_PDF','SUBMIT_CHANGESET','sheets','getFocusedUnit','[PendingState]:\x20received\x20acknowledgement.','failed\x20to\x20apply\x20missed\x20changesets!','packageName','_changesetReqId','getImage','_memberService','/-/object/list','loadPdf','prototype','data','CHANGESET_ACK','LIVESHARE_REQUEST_HOST','&source=','_collaborationTimeoutTimer','enableSingleActiveInstanceLock','transformStack\x20failed!','_unitInfo$','ws://127.0.0.1:8000/universer-api/comb/connect','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformStateCache','_compressMutationService','defineProperty','downloadEndpointUrl','_initUnitPermissionChange','getTime','1325250HrzmFA','initWorkbookPermissionChange','toggleOnline','_getCtorByUniverInstanceType','_configService','{fileID}','resend','unit-cache-','_disposed','AWAITING','_awaitingChangeset','CONFLICT','getCurrentUser','_resendTimeout','loadDoc','onSendChangeset','_onCombEvent','/universer-api/comb','_sheetTransformSelectionsService','unit','_onLocalMutation','UNIVER_SHEET','Edit','toPrimitive','_showConflictNotification','unitId','[PendingState]:\x20unhandled\x20univer\x20type:\x20','onMissedChangesetFetched','from','sid','_onOffline','_doCreateSocket','accept','LEAVE','/new_changes','_schedule','code','/object','_listenToNetworkCondition','error$','_refreshUnitPermission','getImageSourceCache','session','64IUPIOr','selections','SOCKET_FAILED_RETRY','_startCollaboration','JOINING','deleteCollaborator','confirm','/object/','_onRemoteACK','decorate','getSnapshotAPIPath','createSocket','joinRsp','emitEvent','onTransformIME','baseRev','6063508hziTqU','closeSession','MUTATION','RETRY_CONNECTING_MAX_COUNT','signUrlServerUrl','collabWebSocketUrl','getDeserializedSheetBlock','requireSession'];_0x1be8=function(){return _0x428d3b;};return _0x1be8();}let ir=class extends _0x1720a8{constructor(_0x264b2f,_0x114095,_0x341bb2,_0x271b9d,_0x1c5512,_0x2088cf){const _0x5c6da7=_0x19811e;super(_0x264b2f,_0x114095,_0x341bb2,_0x271b9d),this[_0x5c6da7(0x3d8)]=_0x1c5512,this['_logService']=_0x2088cf;}[_0x19811e(0x32e)](_0xdfa61,_0x400fae){const _0x5e23d9=_0x19811e;let _0x25688a=this[_0x5e23d9(0x1cc)](_0xdfa61);if(_0x25688a)try{let _0x59bc74=this[_0x5e23d9(0x2f6)](_0x25688a,_0x400fae);this[_0x5e23d9(0x2c7)](_0xdfa61,_0x59bc74);}catch(_0x3f3299){this[_0x5e23d9(0x261)][_0x5e23d9(0x2cd)](_0x5e23d9(0x285),_0x3f3299),this[_0x5e23d9(0x379)](_0xdfa61);}let _0x5b070a=this['_getRedoStack'](_0xdfa61);if(_0x5b070a)try{let _0x287102=this[_0x5e23d9(0x2f6)](_0x5b070a,_0x400fae);this['_substituteRedoStack'](_0xdfa61,_0x287102);}catch(_0xd9f218){this[_0x5e23d9(0x261)][_0x5e23d9(0x2cd)](_0xd9f218),this[_0x5e23d9(0x16a)](_0xdfa61);}}['_clearUndo'](_0x4c6144){const _0xfabd94=_0x19811e;let _0x2365e5=this[_0xfabd94(0x1cc)](_0x4c6144);_0x2365e5&&(_0x2365e5[_0xfabd94(0x2ab)]=0x0,this[_0xfabd94(0x321)]());}[_0x19811e(0x16a)](_0x1b5f3f){const _0x49faa7=_0x19811e;let _0x4ccc21=this[_0x49faa7(0x353)](_0x1b5f3f);_0x4ccc21&&(_0x4ccc21[_0x49faa7(0x2ab)]=0x0,this[_0x49faa7(0x321)]());}[_0x19811e(0x2c7)](_0x26ac3d,_0x197ee1){const _0x4d682a=_0x19811e;this['_undoStacks'][_0x4d682a(0x1ee)](_0x26ac3d,_0x197ee1),this[_0x4d682a(0x321)]();}[_0x19811e(0x1a4)](_0x389ee2,_0x2aa558){const _0x57f226=_0x19811e;this[_0x57f226(0x2db)][_0x57f226(0x1ee)](_0x389ee2,_0x2aa558),this[_0x57f226(0x321)]();}[_0x19811e(0x2f6)](_0x1cf9c7,_0x50f44a){const _0x42b002=_0x19811e;let _0x3f966a=[],_0x563db3=_0x50f44a,_0x46aad2=_0x50f44a;for(let _0x240b8b=_0x1cf9c7[_0x42b002(0x2ab)]-0x1;_0x240b8b>=0x0;_0x240b8b--){let {unitID:_0x5eac39,undoMutations:_0xd6f055,redoMutations:_0x2510cc}=_0x1cf9c7[_0x240b8b],_0x21ee4e=this[_0x42b002(0x3d8)][_0x42b002(0x19d)](_0x563db3,_0xd6f055),_0x44cf4e=this[_0x42b002(0x3d8)][_0x42b002(0x19d)](_0x46aad2,_0x2510cc);if(_0x4532f4(_0x21ee4e)||_0x4532f4(_0x44cf4e)){this[_0x42b002(0x261)][_0x42b002(0x2cd)](_0x42b002(0x285),_0x42b002(0x208),_0x21ee4e,_0x44cf4e);break;}_0x563db3=_0x21ee4e[_0x42b002(0x3a7)],_0x46aad2=_0x44cf4e[_0x42b002(0x3a7)],_0x3f966a[_0x42b002(0x335)]({'unitID':_0x5eac39,'undoMutations':_0x21ee4e['m2Prime'],'redoMutations':_0x44cf4e[_0x42b002(0x2ba)]});}return _0x3f966a['reverse']();}};ir=H([V(0x0,_0x4f5fa8),V(0x1,_0xef393c),V(0x2,_0x1ac843),V(0x3,_0x2477d9),V(0x4,_0x435fb7),V(0x5,_0x1ba700)],ir);let ar=class extends _0x370b6f{constructor(_0x43b2ce=gt,_0x2b31c4,_0x1a2ae4,_0x2c2e69){const _0xf9302d=_0x19811e;super(),this[_0xf9302d(0x1cd)]=_0x43b2ce,this[_0xf9302d(0x261)]=_0x2b31c4,this[_0xf9302d(0x302)]=_0x1a2ae4,this[_0xf9302d(0x216)]=_0x2c2e69;let {..._0x2d40e8}=_0x3d5516({},gt,this[_0xf9302d(0x1cd)]);if(!_0x2d40e8['socketService'])throw Error(_0xf9302d(0x29d));this[_0xf9302d(0x1cd)]=_0x2d40e8,this['_configService'][_0xf9302d(0x349)](R,_0x2d40e8);}['onStarting'](){const _0x18a09e=_0x19811e;this[_0x18a09e(0x216)]['setConfig'](_0x1e8245,this[_0x18a09e(0x1cd)][_0x18a09e(0x2f8)]??[]),this['_registerDependencies'](),this[_0x18a09e(0x341)]();}['_registerDependencies'](){const _0xc3bc36=_0x19811e;var _0xb96505,_0x5f1b6e;this[_0xc3bc36(0x302)]['has'](_0x3d966a)&&this[_0xc3bc36(0x261)][_0xc3bc36(0x2cd)](_0xc3bc36(0x1b5),_0xc3bc36(0x1ef));let _0x4735d2=_0x3b2c51([[_0x3d966a,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this[_0xc3bc36(0x1cd)][_0xc3bc36(0x27f)]}],[_0x14257b,{'useClass':rr}],[_0x3a226b,{'useClass':Gn}],[_0x393423,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x42b5e6,{'useClass':$n}],[Ln],[Bn]],(_0xb96505=this[_0xc3bc36(0x1cd)])==null?void 0x0:_0xb96505[_0xc3bc36(0x191)]);if(!((_0x5f1b6e=this[_0xc3bc36(0x1cd)])!=null&&_0x5f1b6e[_0xc3bc36(0x207)])){let _0x5efcf3=_0x4735d2[_0xc3bc36(0x33c)](([_0x4c0ea7])=>_0x4c0ea7===W);_0x5efcf3!==-0x1&&_0x4735d2[_0xc3bc36(0x2b1)](_0x5efcf3,0x1);}_0x1bacd8(this[_0xc3bc36(0x302)],_0x4735d2);}[_0x19811e(0x341)](){const _0x2b5beb=_0x19811e;var _0x1d8a87,_0x3622a8;if(this[_0x2b5beb(0x302)][_0x2b5beb(0x17c)](_0x4288a3)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x4967eb({'maxParallel':0x6})}),!((_0x1d8a87=this[_0x2b5beb(0x1cd)])!=null&&_0x1d8a87[_0x2b5beb(0x140)])){var _0x5dcefb;(_0x5dcefb=this[_0x2b5beb(0x302)]['get'](U,_0x126bf3[_0x2b5beb(0x1e0)]))==null||_0x5dcefb['disableLocalCache']();}(_0x3622a8=this[_0x2b5beb(0x1cd)])!=null&&_0x3622a8[_0x2b5beb(0x1ed)]&&_0x3d1e12(this[_0x2b5beb(0x302)],[[Wn]]),_0x3d1e12(this['_injector'],[[Xn],[Ln],[er]]);}};z(ar,_0x19811e(0x1b8),_0x19811e(0x3af)),z(ar,_0x19811e(0x1fb),Rn),z(ar,_0x19811e(0x2f2),zn),ar=H([_0x22f4eb(_0xb82aa,_0xae98f7,_0xe2a840),V(0x1,_0x1ba700),V(0x2,_0x480e6d(_0x5a91fd)),V(0x3,_0x2477d9)],ar);export{Gn as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,Sn as BaseCollaborationEntity,Tn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Hn as CollaborationAttachmentIoService,Ln as CollaborationController,$ as CollaborationEntity,Qn as CollaborationImageIoService,Gt as CollaborationSession,In as CollaborationSessionService,Mn as CollaborationSocketService,_n as CollaborationStatus,At as CollaborationUIEventId,B as CollaborationUIEventService,ir as CollaborativeUndoRedoService,jt as CommentService,X as ConflictState,_t as DEFAULT_COLLAB_WEB_SOCKET_URL,Tt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,vt as DEFAULT_WS_SESSION_TICKET_URL,Zn as DataLoaderService,xn as DocCollaborationEntity,Q as FetchingMissState,yt as HEARTBEAT_INTERVAL_KEY,bt as HEARTBEAT_TIMEOUT_KEY,Vn as IAttachmentIoService,Nn as ICollaborationClientAdapterService,An as ICollaborationSocketService,U as ILocalCacheService,Dn as INetworkConditionService,W as ISingleActiveUnitService,Ct as LOCAL_CACHE_INTERVAL,St as LOCAL_CACHE_INTERVAL_KEY,Mt as MemberService,$n as MentionIoHttpService,Z as OfflineState,En as PdfCollaborationEntity,q as PendingState,wt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,xt as RETRY_CONNECTING_MAX_COUNT_KEY,Ut as SessionStatus,Cn as SheetCollaborationEntity,Jt as SheetTransformSelectionsService,wn as SlideCollaborationEntity,rr as SnapshotServerOverHTTPService,K as SyncedState,Yt as UnitStatus,ar as UniverCollaborationClientPlugin,Pn as createUniverCollaborationAdapter,On as deserializeToCombResponse,Kt as getLocalCacheKey,kn as serializeCombRequest};