@univerjs-pro/collaboration-client 1.0.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +2 -0
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/config/config.d.ts +19 -0
  66. package/lib/types/controllers/collaboration/changeset-submitter.d.ts +132 -0
  67. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +28 -1
  68. package/lib/types/controllers/collaboration/collaboration-state.d.ts +175 -43
  69. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +7 -0
  70. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +7 -3
  71. package/lib/types/facade/f-collaboration.d.ts +20 -4
  72. package/lib/types/facade/f-event.d.ts +87 -2
  73. package/lib/types/index.d.ts +5 -3
  74. package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -8
  75. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +4 -4
  76. package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +9 -0
  77. package/lib/types/services/data-loader/data-loader.service.d.ts +9 -2
  78. package/lib/types/services/local-cache/local-cache.service.d.ts +11 -6
  79. package/lib/types/services/socket/collaboration-socket.service.d.ts +10 -2
  80. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +5 -0
  81. package/lib/umd/facade.js +1 -1
  82. package/lib/umd/index.js +1 -1
  83. package/lib/umd/locale/ar-SA.js +1 -1
  84. package/lib/umd/locale/ca-ES.js +1 -1
  85. package/lib/umd/locale/de-DE.js +1 -1
  86. package/lib/umd/locale/en-US.js +1 -1
  87. package/lib/umd/locale/es-ES.js +1 -1
  88. package/lib/umd/locale/fa-IR.js +1 -1
  89. package/lib/umd/locale/fr-FR.js +1 -1
  90. package/lib/umd/locale/id-ID.js +1 -1
  91. package/lib/umd/locale/it-IT.js +1 -1
  92. package/lib/umd/locale/ja-JP.js +1 -1
  93. package/lib/umd/locale/ko-KR.js +1 -1
  94. package/lib/umd/locale/pl-PL.js +1 -1
  95. package/lib/umd/locale/pt-BR.js +1 -1
  96. package/lib/umd/locale/ru-RU.js +1 -1
  97. package/lib/umd/locale/sk-SK.js +1 -1
  98. package/lib/umd/locale/vi-VN.js +1 -1
  99. package/lib/umd/locale/zh-CN.js +1 -1
  100. package/lib/umd/locale/zh-HK.js +1 -1
  101. package/lib/umd/locale/zh-TW.js +1 -1
  102. package/package.json +16 -16
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5c9f94=_0x4bc2;(function(_0x3ea006,_0x185810){const _0x5cc461=_0x4bc2,_0x6c118c=_0x3ea006();while(!![]){try{const _0x2af99e=-parseInt(_0x5cc461(0x1a6))/0x1+-parseInt(_0x5cc461(0x1a7))/0x2+-parseInt(_0x5cc461(0x388))/0x3+parseInt(_0x5cc461(0x21e))/0x4+-parseInt(_0x5cc461(0x1e1))/0x5*(-parseInt(_0x5cc461(0x2f7))/0x6)+parseInt(_0x5cc461(0x2ad))/0x7+parseInt(_0x5cc461(0x1d6))/0x8;if(_0x2af99e===_0x185810)break;else _0x6c118c['push'](_0x6c118c['shift']());}catch(_0x3d8b31){_0x6c118c['push'](_0x6c118c['shift']());}}}(_0x3253,0x6e683));import{CollaborationEvent as _0x538b71,CompressMutationService as _0x2162d4,EmptyMutationInfo as _0x2b1099,ISnapshotServerService as _0x1425c0,ITransformService as _0x173ca8,RevisionService as _0x9b85a2,SnapshotService as _0x5dfed7,UniverCollaborationPlugin as _0xfacf11,b64DecodeUnicode as _0x523ae7,isTransformChangesetsSuccess as _0x31eeb1,isTransformMutationsWithChangesetFailure as _0x635ce5,isTransformMutationsWithChangesetSuccess as _0x2c24b6,mapDocumentTypeToUniverInstanceType as _0x4c0f7a,parseChangesetToProtocol as _0x3e125d,parseProtocolChangeset as _0xde3e04,textEncoder as _0x202300,uuidv4 as _0x209d6d}from'@univerjs-pro/collaboration';import{CommandType as _0x4a7495,DependentOn as _0x9817de,Disposable as _0x588e84,DisposableCollection as _0x21b987,IAuthzIoService as _0x18ec33,ICommandService as _0x397ef7,IConfigService as _0xf41dc9,IContextService as _0x316af7,IImageIoService as _0x3b2d53,ILogService as _0x3981ee,IMentionIOService as _0x2e02ae,IPermissionService as _0x30415d,IUndoRedoService as _0x34c2a3,IUniverInstanceService as _0x4c5cd7,ImageSourceType as _0x237f28,ImageUploadStatusType as _0x47a5be,Inject as _0xcf8d3f,Injector as _0x19ff28,JSONX as _0xdabad,LocalUndoRedoService as _0xd03d1e,LocaleService as _0x5c6337,MentionType as _0x4191c4,OBJECT_PERMISSION_CONFIG_KEY as _0x4ee50c,ObjectPermissionService as _0x126fa5,Optional as _0x1da68f,Plugin as _0x5b070b,Quantity as _0x527f9b,Rectangle as _0x393b90,RxDisposable as _0x468ac5,Tools as _0x5269d3,UniverInstanceType as _0x2efadb,UserManagerService as _0x2caeff,Workbook as _0x2b4036,createIdentifier as _0x1db16f,generateRandomId as _0x53f585,isInternalEditorID as _0x21b585,merge as _0x195f67,mergeOverrideWithDependencies as _0x448bc4,registerDependencies as _0x11234a,resolveWithBasePath as _0x6adb79,sequenceExecute as _0x146494,toDisposable as _0x2b94ed,touchDependencies as _0x393dc2}from'@univerjs/core';import{DocStateChangeManagerService as _0xb48de9,RichTextEditingMutation as _0x5b44a5}from'@univerjs/docs';import{InsertSheetMutation as _0x39ca1b,SetSelectionsOperation as _0x1ae86b,SheetPermissionInitController as _0x4be829,SheetsSelectionsService as _0x144fe1,WorkbookEditablePermission as _0x350235}from'@univerjs/sheets';import{BehaviorSubject as _0x1946cb,ReplaySubject as _0x1f4774,Subject as _0x4e03af,concatMap as _0x17473d,firstValueFrom as _0x3f95e4,map as _0x98781b,merge as _0x41572c,of as _0xf609a3,shareReplay as _0x43a741,take as _0xc0564d,takeUntil as _0x21bb40}from'rxjs';import{CmdRspCode as _0x3c0867,CombCmd as _0xcb980a,ErrorCode as _0x1aa6bc,FileSource as _0x4a6968,UnitAction as _0x4616a5,UnitObject as _0x3490f2}from'@univerjs/protocol';import{ITelemetryService as _0x53a96b}from'@univerjs/telemetry';import{delay as _0x2fc4f9,filter as _0x5d4b25,map as _0x13126a,take as _0x2c8673,takeUntil as _0x212efd}from'rxjs/operators';import{AddSlidePageMutation as _0x3cc358,EnsureSlideMasterPageMutation as _0x273390,MoveSlidePageMutation as _0x35dc8d,RemoveSlidePageMutation as _0x155725}from'@univerjs-pro/slides';import{HTTPRequest as _0x3b0f3b,HTTPService as _0x145224,ISocketService as _0x17aa40,MergeInterceptorFactory as _0xad30e1,ThresholdInterceptorFactory as _0x2c8f3e,UniverNetworkPlugin as _0x10430a}from'@univerjs/network';import{UniverLicensePlugin as _0x2ecc84,getGlobalObject as _0xcad4c5}from'@univerjs-pro/license';import{cbc as _0xd5b70f}from'@noble/ciphers/aes.js';import{concatBytes as _0x496bb6,randomBytes as _0x862e1b,utf8ToBytes as _0x50e238}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x3f4112,getDrawingImageAllowSize as _0x4b738e}from'@univerjs/drawing';const R=_0x5c9f94(0x247),gt={},_t='ws://127.0.0.1:8000/universer-api/comb/connect',vt=_0x5c9f94(0x1a9),yt=_0x5c9f94(0x25e),bt=_0x5c9f94(0x304),xt=_0x5c9f94(0x15a),St='LOCAL_CACHE_INTERVAL',Ct=0x3e8,wt='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',Tt=_0x5c9f94(0x3bc);function Et(_0x2cc12d){const _0x4ad122=_0x5c9f94;return JSON[_0x4ad122(0x2d6)](_0x2cc12d)[_0x4ad122(0x2fd)];}function Dt(_0x38812e){'@babel/helpers - typeof';const _0x3b3f36=_0x5c9f94;return Dt=typeof Symbol=='function'&&typeof Symbol[_0x3b3f36(0x1f2)]==_0x3b3f36(0x173)?function(_0x29f01a){return typeof _0x29f01a;}:function(_0x643f4c){const _0x1d1779=_0x3b3f36;return _0x643f4c&&typeof Symbol==_0x1d1779(0x2ce)&&_0x643f4c[_0x1d1779(0x376)]===Symbol&&_0x643f4c!==Symbol['prototype']?_0x1d1779(0x173):typeof _0x643f4c;},Dt(_0x38812e);}function Ot(_0x401796,_0x4295c8){const _0x24fdfe=_0x5c9f94;if(Dt(_0x401796)!=_0x24fdfe(0x220)||!_0x401796)return _0x401796;var _0x34df3f=_0x401796[Symbol['toPrimitive']];if(_0x34df3f!==void 0x0){var _0x41d4da=_0x34df3f[_0x24fdfe(0x23e)](_0x401796,_0x4295c8||'default');if(Dt(_0x41d4da)!=_0x24fdfe(0x220))return _0x41d4da;throw TypeError(_0x24fdfe(0x2a3));}return(_0x4295c8===_0x24fdfe(0x2df)?String:Number)(_0x401796);}function kt(_0x421872){const _0x573650=_0x5c9f94;var _0x434c8=Ot(_0x421872,_0x573650(0x2df));return Dt(_0x434c8)=='symbol'?_0x434c8:_0x434c8+'';}function z(_0x1b2347,_0x475786,_0x465e53){const _0x2ba0b7=_0x5c9f94;return(_0x475786=kt(_0x475786))in _0x1b2347?Object[_0x2ba0b7(0x1b2)](_0x1b2347,_0x475786,{'value':_0x465e53,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b2347[_0x475786]=_0x465e53,_0x1b2347;}let At=function(_0x2f65c6){const _0x43a3a4=_0x5c9f94;return _0x2f65c6['OTHER_CLIENT_EDITING']=_0x43a3a4(0x39c),_0x2f65c6['PERMISSION_DENIED']=_0x43a3a4(0x1c5),_0x2f65c6[_0x43a3a4(0x260)]=_0x43a3a4(0x260),_0x2f65c6[_0x43a3a4(0x137)]=_0x43a3a4(0x137),_0x2f65c6[_0x43a3a4(0x2be)]='CONFLICT',_0x2f65c6[_0x43a3a4(0x31b)]=_0x43a3a4(0x31b),_0x2f65c6[_0x43a3a4(0x175)]=_0x43a3a4(0x175),_0x2f65c6['SOCKET_FAILED_RETRY']=_0x43a3a4(0x2c3),_0x2f65c6[_0x43a3a4(0x1d7)]='SOCKET_FAILED',_0x2f65c6[_0x43a3a4(0x1b7)]=_0x43a3a4(0x1b7),_0x2f65c6;}({});var B=class{constructor(){const _0x9934d7=_0x5c9f94;z(this,_0x9934d7(0x385),new _0x4e03af()),z(this,_0x9934d7(0x1ad),this[_0x9934d7(0x385)][_0x9934d7(0x190)]());}[_0x5c9f94(0x3a8)](_0x571d70){const _0x2d456d=_0x5c9f94;this[_0x2d456d(0x385)][_0x2d456d(0x3b1)](_0x571d70);}},jt=class{constructor(){const _0x3a32ac=_0x5c9f94;z(this,'_commentUpdate$',new _0x4e03af()),z(this,_0x3a32ac(0x2d0),this[_0x3a32ac(0x1d1)][_0x3a32ac(0x190)]());}['onCommentUpdate'](_0x1d66d7){const _0x336537=_0x5c9f94;this[_0x336537(0x1d1)][_0x336537(0x3b1)](_0x1d66d7);}};function V(_0x104a17,_0x5d2771){return function(_0x981871,_0x219c4f){_0x5d2771(_0x981871,_0x219c4f,_0x104a17);};}function H(_0x4ac523,_0x2c7a1b,_0x2dbcad,_0xbf20d1){const _0x26bceb=_0x5c9f94;var _0x1a12ce=arguments[_0x26bceb(0x2fd)],_0x4c55c0=_0x1a12ce<0x3?_0x2c7a1b:_0xbf20d1===null?_0xbf20d1=Object[_0x26bceb(0x32b)](_0x2c7a1b,_0x2dbcad):_0xbf20d1,_0x33029e;if(typeof Reflect==_0x26bceb(0x220)&&typeof Reflect['decorate']==_0x26bceb(0x2ce))_0x4c55c0=Reflect['decorate'](_0x4ac523,_0x2c7a1b,_0x2dbcad,_0xbf20d1);else{for(var _0x3ee8e0=_0x4ac523[_0x26bceb(0x2fd)]-0x1;_0x3ee8e0>=0x0;_0x3ee8e0--)(_0x33029e=_0x4ac523[_0x3ee8e0])&&(_0x4c55c0=(_0x1a12ce<0x3?_0x33029e(_0x4c55c0):_0x1a12ce>0x3?_0x33029e(_0x2c7a1b,_0x2dbcad,_0x4c55c0):_0x33029e(_0x2c7a1b,_0x2dbcad))||_0x4c55c0);}return _0x1a12ce>0x3&&_0x4c55c0&&Object[_0x26bceb(0x1b2)](_0x2c7a1b,_0x2dbcad,_0x4c55c0),_0x4c55c0;}let Mt=class extends _0x588e84{constructor(_0x56e010){const _0x325a00=_0x5c9f94;super(),this[_0x325a00(0x28a)]=_0x56e010,z(this,_0x325a00(0x341),new Map()),z(this,_0x325a00(0x13d),new _0x4e03af()),this[_0x325a00(0x189)](_0x41572c(this['_univerInstanceService'][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x21d)])[_0x325a00(0x270)](_0x13126a(_0x103676=>_0x103676['getUnitId']())),this[_0x325a00(0x28a)][_0x325a00(0x2ae)](_0x2efadb['UNIVER_DOC'])[_0x325a00(0x270)](_0x13126a(_0x5c609b=>_0x5c609b['getUnitId']())),this[_0x325a00(0x28a)][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x3ed)])[_0x325a00(0x270)](_0x13126a(_0x1c4557=>_0x1c4557['getUnitId']())),this['_univerInstanceService'][_0x325a00(0x2ae)](_0x2efadb[_0x325a00(0x3a6)])[_0x325a00(0x270)](_0x13126a(_0x4f1b03=>_0x4f1b03[_0x325a00(0x394)]())))[_0x325a00(0x168)](_0xe67d6a=>this[_0x325a00(0x3d8)](_0xe67d6a)));}[_0x5c9f94(0x357)](_0x112ce1){const _0x1d0356=_0x5c9f94;return this[_0x1d0356(0x341)][_0x1d0356(0x3e3)](_0x112ce1)?_0xf609a3(this[_0x1d0356(0x341)]['get'](_0x112ce1)):this['_roomCreated$'][_0x1d0356(0x270)](_0x13126a(_0x30fd78=>{const _0xe58bf0=_0x1d0356;if(_0x30fd78===_0x112ce1)return this[_0xe58bf0(0x341)]['get'](_0x30fd78);}));}[_0x5c9f94(0x283)](_0x3923fd,_0x534072){const _0x42c0b3=_0x5c9f94;let _0x424628=this[_0x42c0b3(0x341)][_0x42c0b3(0x160)](_0x3923fd);_0x424628||(_0x424628=new Nt(),this[_0x42c0b3(0x341)][_0x42c0b3(0x1b3)](_0x3923fd,_0x424628),this['_roomCreated$'][_0x42c0b3(0x3b1)](_0x3923fd)),_0x424628[_0x42c0b3(0x283)](_0x534072);}[_0x5c9f94(0x396)](_0x4a250c,_0x35476e){const _0x1f5229=_0x5c9f94;let _0x52ffcc=this[_0x1f5229(0x341)]['get'](_0x4a250c);_0x52ffcc&&_0x52ffcc[_0x1f5229(0x396)](_0x35476e);}[_0x5c9f94(0x1e9)](_0x3bf9b2){const _0x33c51=_0x5c9f94;return this[_0x33c51(0x341)]['get'](_0x3bf9b2);}[_0x5c9f94(0x186)](_0x58e891,_0x2c3de4){const _0x1d03a8=_0x5c9f94;let _0x2bf2f8=this[_0x1d03a8(0x341)][_0x1d03a8(0x160)](_0x58e891);if(_0x2bf2f8)return _0x2bf2f8[_0x1d03a8(0x186)](_0x2c3de4);}[_0x5c9f94(0x3d8)](_0x39ac5b){const _0x9d1f07=_0x5c9f94;let _0x4478bd=this[_0x9d1f07(0x341)]['get'](_0x39ac5b);_0x4478bd&&(_0x4478bd[_0x9d1f07(0x316)](),this['_roomMembers'][_0x9d1f07(0x1e8)](_0x39ac5b));}[_0x5c9f94(0x316)](){const _0x396603=_0x5c9f94;this[_0x396603(0x341)][_0x396603(0x2de)](_0x5eeca3=>_0x5eeca3[_0x396603(0x316)]()),this['_roomMembers'][_0x396603(0x19e)](),this['_roomCreated$'][_0x396603(0x31a)]();}};Mt=H([V(0x0,_0x4c5cd7)],Mt);var Nt=class extends _0x588e84{constructor(..._0x24baf0){const _0x2fe885=_0x5c9f94;super(..._0x24baf0),z(this,'_members',new Map()),z(this,_0x2fe885(0x140),new _0x1946cb(this[_0x2fe885(0x222)])),z(this,_0x2fe885(0x194),this[_0x2fe885(0x140)][_0x2fe885(0x190)]());}[_0x5c9f94(0x316)](){const _0x29667a=_0x5c9f94;this[_0x29667a(0x222)][_0x29667a(0x19e)](),this['_members$']['complete']();}['updateMember'](_0x1e060f){const _0xeccd80=_0x5c9f94;this[_0xeccd80(0x222)][_0xeccd80(0x1b3)](_0x1e060f[_0xeccd80(0x331)],_0x1e060f),this[_0xeccd80(0x1ca)]();}['removeMember'](_0x325568){const _0x24051a=_0x5c9f94;this[_0x24051a(0x222)]['delete'](_0x325568),this[_0x24051a(0x1ca)]();}[_0x5c9f94(0x186)](_0x4f0be9){const _0x5277ca=_0x5c9f94;return this[_0x5277ca(0x222)][_0x5277ca(0x160)](_0x4f0be9);}[_0x5c9f94(0x22a)](){const _0x29c0b4=_0x5c9f94;return Array['from'](this[_0x29c0b4(0x222)][_0x29c0b4(0x381)]());}[_0x5c9f94(0x1ca)](){const _0x51848e=_0x5c9f94;this[_0x51848e(0x140)][_0x51848e(0x3b1)](this[_0x51848e(0x222)]);}};function Pt(_0xde1693,_0x3b676b){const _0xa49d6a=_0x5c9f94;if(It(_0xde1693))return _0x3b676b;if(_0x3b676b[_0xa49d6a(0x198)]===_0x538b71[_0xa49d6a(0x2c5)]){let _0xf52a71=Vt(_0xde1693),_0x5a036d=_0x3b676b;return{..._0x5a036d,'data':{..._0x5a036d[_0xa49d6a(0x3cf)],'unitID':_0xde1693[_0xa49d6a(0x141)]['unitId'],'unitType':_0xde1693[_0xa49d6a(0x141)][_0xa49d6a(0x2fb)]??_0x5a036d['data'][_0xa49d6a(0x2fb)],'changeset':_0xf52a71[_0xa49d6a(0x1d4)](_0x5a036d[_0xa49d6a(0x3cf)][_0xa49d6a(0x226)],Ht(_0xde1693))}};}if(_0x3b676b[_0xa49d6a(0x198)]===_0x538b71[_0xa49d6a(0x25a)]){let _0x44018d=_0x3b676b;return{..._0x44018d,'data':{..._0x44018d['data'],'unitID':_0xde1693[_0xa49d6a(0x141)]['unitId'],'unitType':_0xde1693['target']['unitType']??_0x44018d[_0xa49d6a(0x3cf)][_0xa49d6a(0x2fb)]}};}return _0x3b676b;}function Ft(_0x495c10,_0x38acac){const _0x221db8=_0x5c9f94;if(It(_0x495c10))return[_0x38acac];switch(_0x38acac[_0x221db8(0x198)]){case _0x538b71[_0x221db8(0x33b)]:return[Lt(_0x495c10,_0x38acac)];case _0x538b71[_0x221db8(0x378)]:return[zt(_0x495c10,_0x38acac)];case _0x538b71['CHANGESET_SHOULD_RETRY']:return[Rt(_0x495c10,_0x38acac)];default:return[_0x38acac];}}function It(_0x53d32b){const _0xfec618=_0x5c9f94;return _0x53d32b['target'][_0xfec618(0x3e4)]==null&&_0x53d32b[_0xfec618(0x141)]['unitId']===_0x53d32b[_0xfec618(0x37d)]&&!_0x53d32b[_0xfec618(0x226)];}function Lt(_0x25a877,_0xc00933){return{..._0xc00933,'data':_0x3e125d(Bt(_0x25a877,_0xde3e04(_0xc00933['data'])))};}function Rt(_0xf1459d,_0x628bbd){const _0x3ddeb0=_0x5c9f94;return{..._0x628bbd,'data':Bt(_0xf1459d,_0x628bbd[_0x3ddeb0(0x3cf)])};}function zt(_0x37ed37,_0x2ddd3c){const _0x3a3839=_0x5c9f94;let _0x241804=_0x2ddd3c[_0x3a3839(0x3cf)];return{..._0x2ddd3c,'data':{..._0x241804,'changesets':_0x241804[_0x3a3839(0x329)][_0x3a3839(0x375)](_0x165aba=>_0x3e125d(Bt(_0x37ed37,_0xde3e04(_0x165aba))))}};}function Bt(_0x7575bd,_0x3233b6){const _0x4b3743=_0x5c9f94;return Vt(_0x7575bd)[_0x4b3743(0x3db)](_0x3233b6,Ht(_0x7575bd));}function Vt(_0x5e8934){const _0x39d770=_0x5c9f94;if(!_0x5e8934[_0x39d770(0x226)])throw Error(_0x39d770(0x214));return _0x5e8934[_0x39d770(0x226)];}function Ht(_0x3c752f){const _0x40aa2b=_0x5c9f94;return{'localUnitId':_0x3c752f[_0x40aa2b(0x37d)],'unitType':_0x3c752f[_0x40aa2b(0x2fb)],'target':_0x3c752f[_0x40aa2b(0x141)]};}let Ut=function(_0x31123b){const _0x193dfd=_0x5c9f94;return _0x31123b[_0x31123b['IDLE']=0x0]=_0x193dfd(0x3a2),_0x31123b[_0x31123b[_0x193dfd(0x2e9)]=0x1]='JOINING',_0x31123b[_0x31123b[_0x193dfd(0x398)]=0x2]=_0x193dfd(0x398),_0x31123b[_0x31123b['ONLINE']=0x3]='ONLINE',_0x31123b;}({});const Wt={[_0x3c0867['FAIL']]:_0x5c9f94(0x346),[_0x3c0867['JOIN_ROOM_FULL']]:_0x5c9f94(0x17e),[_0x3c0867[_0x5c9f94(0x1ef)]]:_0x5c9f94(0x36f),[_0x3c0867[_0x5c9f94(0x28c)]]:_0x5c9f94(0x174),[_0x3c0867['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x5c9f94(0x239)};let Gt=class extends _0x468ac5{get[_0x5c9f94(0x163)](){const _0xbf0ab3=_0x5c9f94;return this[_0xbf0ab3(0x1ee)][_0xbf0ab3(0x154)]();}constructor(_0x122ec1,_0x164aaf,_0x468424,_0x50f6c2,_0x2dd6e9,_0x446fc5,_0xf090cb,_0x3f78d2){const _0x4b6985=_0x5c9f94;super(),this['_identity']=_0x122ec1,this[_0x4b6985(0x26a)]=_0x468424,this[_0x4b6985(0x323)]=_0x50f6c2,this[_0x4b6985(0x139)]=_0x2dd6e9,this[_0x4b6985(0x3c9)]=_0x446fc5,this[_0x4b6985(0x143)]=_0xf090cb,this[_0x4b6985(0x2b5)]=_0x3f78d2,z(this,'_sessionStatus$',new _0x1946cb(0x0)),z(this,_0x4b6985(0x225),this[_0x4b6985(0x1ee)][_0x4b6985(0x190)]()),z(this,_0x4b6985(0x385),new _0x4e03af()),z(this,_0x4b6985(0x1ad),this['_event$']['asObservable']()),z(this,_0x4b6985(0x18d),void 0x0),z(this,_0x4b6985(0x20e),void 0x0),z(this,_0x4b6985(0x3c7),void 0x0),z(this,_0x4b6985(0x15d),!0x1),z(this,_0x4b6985(0x1f9),null),this[_0x4b6985(0x15d)]=!!this[_0x4b6985(0x2b5)],_0x164aaf[_0x4b6985(0x270)](_0x21bb40(this['dispose$']))[_0x4b6985(0x168)](_0x48cf24=>{const _0x5c01c8=_0x4b6985;if(_0x48cf24!==void 0x0){if(this['_socket']=_0x48cf24,_0x48cf24)this[_0x5c01c8(0x1f3)](_0x48cf24),this[_0x5c01c8(0x20e)]=_0x48cf24[_0x5c01c8(0x366)][_0x5c01c8(0x168)](_0x1acaba=>{const _0x50df3e=_0x5c01c8;_0x1acaba['routeKey']===this[_0x50df3e(0x3d9)]['target'][_0x50df3e(0x13c)]&&this[_0x50df3e(0x377)](_0x1acaba);});else{var _0x41fc77;this[_0x5c01c8(0x2f9)](),this[_0x5c01c8(0x1ee)][_0x5c01c8(0x3b1)](0x2),(_0x41fc77=this[_0x5c01c8(0x20e)])==null||_0x41fc77[_0x5c01c8(0x20f)](),this[_0x5c01c8(0x20e)]=null;}}});}[_0x5c9f94(0x395)](){const _0x5def27=_0x5c9f94;var _0x591232;return((_0x591232=this[_0x5def27(0x18d)])==null?void 0x0:_0x591232['memberID'])??null;}[_0x5c9f94(0x316)](){const _0xa9c9a1=_0x5c9f94;super[_0xa9c9a1(0x316)](),this[_0xa9c9a1(0x17d)](),this['dispose$'][_0xa9c9a1(0x3b1)](),this['dispose$'][_0xa9c9a1(0x31a)]();}[_0x5c9f94(0x17d)](){const _0x23fc8c=_0x5c9f94;var _0x514dc5;this[_0x23fc8c(0x2f9)](),(_0x514dc5=this['_socket'])==null||_0x514dc5['send']({'cmd':_0xcb980a[_0x23fc8c(0x17c)],'data':{'roomID':this[_0x23fc8c(0x3d9)][_0x23fc8c(0x141)][_0x23fc8c(0x13c)]}}),this[_0x23fc8c(0x385)][_0x23fc8c(0x31a)](),this[_0x23fc8c(0x1ee)][_0x23fc8c(0x31a)]();}['_onCombEvent'](_0x4e3f6c){const _0x470ee2=_0x5c9f94;_0x4e3f6c[_0x470ee2(0x14d)]===_0xcb980a[_0x470ee2(0x164)]?this[_0x470ee2(0x138)](_0x4e3f6c):_0x4e3f6c[_0x470ee2(0x14d)]===_0xcb980a['RECV']&&this[_0x470ee2(0x18e)](_0x4e3f6c);}[_0x5c9f94(0x1f3)](_0x544d2c){const _0x2491e3=_0x5c9f94;this['_sessionStatus$'][_0x2491e3(0x3b1)](0x1),_0x544d2c[_0x2491e3(0x308)]({'cmd':_0xcb980a[_0x2491e3(0x164)],'routeKey':this['_identity'][_0x2491e3(0x141)][_0x2491e3(0x13c)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x2491e3(0x141)][_0x2491e3(0x13c)]}]}});}[_0x5c9f94(0x138)](_0x55114d){const _0x1e14e7=_0x5c9f94;var _0x528613;if(_0x55114d[_0x1e14e7(0x267)]in Wt){this[_0x1e14e7(0x143)][_0x1e14e7(0x3a8)]({'id':_0x1e14e7(0x175),'data':Wt[_0x55114d[_0x1e14e7(0x267)]]}),this[_0x1e14e7(0x1ee)]['next'](0x2);return;}this['_sessionStatus$'][_0x1e14e7(0x3b1)](0x3);let _0x2e9826=(_0x528613=_0x55114d['data']['roomInfos'][this[_0x1e14e7(0x3d9)]['target'][_0x1e14e7(0x13c)]])==null?void 0x0:_0x528613['members'];_0x2e9826&&_0x2e9826['forEach'](_0x1d8ef9=>this[_0x1e14e7(0x139)]['updateMember'](this[_0x1e14e7(0x3d9)][_0x1e14e7(0x37d)],_0x1d8ef9));}[_0x5c9f94(0x18e)](_0x174bd0){const _0x583ad7=_0x5c9f94;try{let _0x17172e=Ft(this[_0x583ad7(0x3d9)],_0x174bd0[_0x583ad7(0x3cf)]);for(let _0xe85928 of _0x17172e)switch(_0xe85928[_0x583ad7(0x198)]){case _0x538b71[_0x583ad7(0x38e)]:this[_0x583ad7(0x330)](_0xe85928),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71['USERS_LEAVE']:this['_onUserLeave'](_0xe85928),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71['CHANGESET_ACK']:case _0x538b71[_0x583ad7(0x24e)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x583ad7(0x385)]['next'](_0xe85928);break;case _0x538b71['MSG_FOR_ERROR']:this[_0x583ad7(0x26a)][_0x583ad7(0x2dc)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x583ad7(0x2d6)](_0xe85928)),this[_0x583ad7(0x385)][_0x583ad7(0x3b1)](_0xe85928);break;case _0x538b71[_0x583ad7(0x286)]:this[_0x583ad7(0x3c9)][_0x583ad7(0x146)](_0xe85928[_0x583ad7(0x3cf)]),this['_event$'][_0x583ad7(0x3b1)](_0xe85928);break;default:this['_event$'][_0x583ad7(0x3b1)](_0xe85928);}}catch(_0x5d546e){this[_0x583ad7(0x26a)][_0x583ad7(0x2dc)](_0x5d546e,_0x174bd0);}}[_0x5c9f94(0x330)](_0x19337f){const _0x843c7=_0x5c9f94;this['_memberService'][_0x843c7(0x283)](this[_0x843c7(0x3d9)][_0x843c7(0x37d)],_0x19337f['data']);}[_0x5c9f94(0x23f)](_0x3736ee){const _0xc4c548=_0x5c9f94;this[_0xc4c548(0x139)]['removeMember'](this['_identity'][_0xc4c548(0x37d)],_0x3736ee['data'][_0xc4c548(0x331)]);}async[_0x5c9f94(0x308)](_0x492b40,_0x495cd4){const _0x1f0b44=_0x5c9f94;if(this['sessionStatus']!==0x3||!this['_socket'])throw Error(_0x1f0b44(0x218));try{let _0x2be7ad=Pt(this[_0x1f0b44(0x3d9)],_0x492b40);_0x2be7ad['eventID']===_0x538b71[_0x1f0b44(0x2c5)]&&(this[_0x1f0b44(0x368)](),this[_0x1f0b44(0x1dc)](_0x2be7ad)),this['_socket'][_0x1f0b44(0x308)]({'cmd':_0xcb980a['INGEST'],'routeKey':this[_0x1f0b44(0x3d9)][_0x1f0b44(0x141)][_0x1f0b44(0x13c)],'routeType':'','data':_0x2be7ad});}catch(_0x221930){this['_logService']['error'](_0x221930);}}[_0x5c9f94(0x368)](){const _0xceec4b=_0x5c9f94;this[_0xceec4b(0x3c7)]=setTimeout(()=>{const _0x2e4625=_0xceec4b;this[_0x2e4625(0x3c7)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0x2e4625(0x1b7)});},this[_0xceec4b(0x323)][_0xceec4b(0x1a1)]('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x5c9f94(0x2a0)](){const _0x1262cf=_0x5c9f94;this[_0x1262cf(0x3c7)]&&=(clearTimeout(this[_0x1262cf(0x3c7)]),null);}[_0x5c9f94(0x1dc)](_0x466d76){const _0x922ac7=_0x5c9f94;if(!this[_0x922ac7(0x15d)])return;let {data:_0x3b9bc5}=_0x466d76,{unitID:_0xddd22f,changeset:_0x52ddeb}=_0x3b9bc5,{mutations:_0x197d47,type:_0x1488d5}=_0x52ddeb;this['_telemetryInfo']={'unitId':_0xddd22f,'type':_0x1488d5,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Et(_0x197d47)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5dd86d=_0x5c9f94;if(this[_0x5dd86d(0x15d)]){if(!this['_telemetryInfo']){this[_0x5dd86d(0x26a)]['error']('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x5dd86d(0x1f9)][_0x5dd86d(0x2b6)]=performance[_0x5dd86d(0x1dd)](),this['_telemetryInfo'][_0x5dd86d(0x38d)]=this['_telemetryInfo']['stopTime']-this[_0x5dd86d(0x1f9)][_0x5dd86d(0x3d1)],this[_0x5dd86d(0x2b5)]['capture'](_0x5dd86d(0x262),this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x5c9f94(0x2f9)](){this['_telemetryInfo']=null;}};Gt=H([V(0x2,_0x3981ee),V(0x3,_0xf41dc9),V(0x4,_0xcf8d3f(Mt)),V(0x5,_0xcf8d3f(jt)),V(0x6,_0xcf8d3f(B)),V(0x7,_0x1da68f(_0x53a96b))],Gt);const U=_0x1db16f(_0x5c9f94(0x204));function Kt(_0x3a2126){const _0x1448bd=_0x5c9f94;return _0x1448bd(0x2e4)+_0x3a2126;}function qt(_0x5b4f3b){const _0x5de7ad=_0x5c9f94;let {unitID:_0x8642d,mutations:_0x2f5f86}=_0x5b4f3b;return{'unitId':_0x8642d,'subUnitId':_0x2f5f86[_0x5de7ad(0x2fd)]>0x0?_0x2f5f86[0x0]['params'][_0x5de7ad(0x312)]:null};}let Jt=class{constructor(_0x4f8a91,_0x5e078c,_0x39abde){const _0x486b07=_0x5c9f94;this[_0x486b07(0x3eb)]=_0x4f8a91,this[_0x486b07(0x364)]=_0x5e078c,this[_0x486b07(0x293)]=_0x39abde;}[_0x5c9f94(0x3af)](_0x55ea81){const _0x9a9e0e=_0x5c9f94;var _0x1d30b2,_0x6f7c7;let _0xf9730a=this[_0x9a9e0e(0x3eb)][_0x9a9e0e(0x160)](_0x144fe1),{unitId:_0x52866b,subUnitId:_0x1e0de7}=qt(_0x55ea81),_0x33b332=_0xf9730a==null?void 0x0:_0xf9730a['getWorkbookSelections'](_0x52866b)[_0x9a9e0e(0x1ba)](),_0x21dcbc=(_0x1d30b2=this[_0x9a9e0e(0x293)][_0x9a9e0e(0x29e)](_0x52866b))==null||(_0x1d30b2=_0x1d30b2['getActiveSheet']())==null?void 0x0:_0x1d30b2[_0x9a9e0e(0x27c)]();if(_0x33b332['length']===0x0||!_0x52866b||!_0x1e0de7)return;let _0x24b192=[{'id':_0x1ae86b['id'],'params':{'unitId':_0x52866b,'subUnitId':_0x21dcbc,'selections':_0x5269d3[_0x9a9e0e(0x37b)](_0x33b332)}}],_0x2b33a2=this[_0x9a9e0e(0x364)]['transformMutationsWithChangeset'](_0x55ea81,_0x24b192);if(!_0x2c24b6(_0x2b33a2))throw _0x2b33a2['error'];let _0x1c84c0=(_0x6f7c7=_0x2b33a2['m2Prime'][0x0])==null||(_0x6f7c7=_0x6f7c7['params'])==null?void 0x0:_0x6f7c7[_0x9a9e0e(0x23a)];if(Array['isArray'](_0x1c84c0)&&_0x1c84c0['length']){if(_0x1c84c0[_0x9a9e0e(0x2fd)]===_0x24b192[0x0][_0x9a9e0e(0x1a4)][_0x9a9e0e(0x23a)][_0x9a9e0e(0x2fd)]&&_0x1c84c0[_0x9a9e0e(0x340)]((_0x4992e3,_0x3826b1)=>_0x393b90['equals'](_0x4992e3[_0x9a9e0e(0x29b)],_0x24b192[0x0][_0x9a9e0e(0x1a4)][_0x9a9e0e(0x23a)][_0x3826b1]['range'])))return;this[_0x9a9e0e(0x3eb)][_0x9a9e0e(0x160)](_0x397ef7)['executeCommand'](_0x1ae86b['id'],{'unitId':_0x52866b,'subUnitId':_0x21dcbc,'selections':_0x1c84c0});}}};Jt=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x173ca8),V(0x2,_0x4c5cd7)],Jt);const W=_0x1db16f(_0x5c9f94(0x25d));let Yt=function(_0x46047e){const _0x25d62d=_0x5c9f94;return _0x46047e[_0x46047e[_0x25d62d(0x344)]=0x0]=_0x25d62d(0x344),_0x46047e[_0x46047e['OTHER_CLIENTS_EDITING']=0x1]=_0x25d62d(0x29d),_0x46047e;}({});function Xt(_0x5f5b5){const _0x248633=_0x5c9f94;var _0x210b3e;return!!((_0x210b3e=_0x5f5b5[_0x248633(0x1a4)])!=null&&_0x210b3e[_0x248633(0x208)]);}const Zt=new Set([_0x39ca1b['id']]),Qt=new Set([_0x3cc358['id'],_0x273390['id'],_0x35dc8d['id'],_0x155725['id']]);function $t(_0x171c0f,_0x525789=Zt){const _0x1a0694=_0x5c9f94;let _0x99f2=[];for(let _0x4b33c6 of _0x171c0f){if(_0x525789[_0x1a0694(0x3e3)](_0x4b33c6['id'])){if(_0x99f2[_0x1a0694(0x2fd)]>0x0)break;_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);break;}if(Xt(_0x4b33c6)){if(_0x99f2[_0x1a0694(0x2fd)]>0x0)break;_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);break;}_0x99f2[_0x1a0694(0x26f)](_0x4b33c6);}return _0x99f2;}function en(_0x2bd447,_0x34f0d5,_0x55a158,_0x2f2663,_0x49cab1){const _0x341a4b=_0x5c9f94;let _0x595972=$t(_0x2bd447),_0x3c39c2=_0x49cab1[_0x341a4b(0x2ec)](),_0x214888=(_0x3c39c2==null?void 0x0:_0x3c39c2[_0x341a4b(0x3ad)])??_0x341a4b(0x336),_0x52fdce=(_0x3c39c2==null?void 0x0:_0x3c39c2[_0x341a4b(0x331)])??_0x341a4b(0x336);return{'changeset':{'unitID':_0x34f0d5,'type':_0x4c0f7a(_0x55a158[_0x341a4b(0x155)](_0x34f0d5)),'baseRev':_0x2f2663[_0x341a4b(0x18f)](_0x34f0d5),'revision':0x0,'userID':_0x214888,'memberID':_0x52fdce,'mutations':_0x595972},'pendingMutations':_0x2bd447['slice'](_0x595972[_0x341a4b(0x2fd)])};}const tn=en;function nn(_0x2b0b57,_0xd2c260,_0x3f5d1a,_0x3ca90e,_0x43a359){const _0x2bc965=_0x5c9f94;let _0x266f0d=$t(_0x2b0b57,Qt),_0x2c9f05=_0x43a359['getCurrentUser'](),_0x4ac489=(_0x2c9f05==null?void 0x0:_0x2c9f05[_0x2bc965(0x3ad)])??_0x2bc965(0x336),_0x1e9320=(_0x2c9f05==null?void 0x0:_0x2c9f05[_0x2bc965(0x331)])??_0x2bc965(0x336);return{'changeset':{'unitID':_0xd2c260,'type':_0x4c0f7a(_0x3f5d1a[_0x2bc965(0x155)](_0xd2c260)),'baseRev':_0x3ca90e[_0x2bc965(0x18f)](_0xd2c260),'revision':0x0,'userID':_0x4ac489,'memberID':_0x1e9320,'mutations':_0x266f0d},'pendingMutations':_0x2b0b57[_0x2bc965(0x157)](_0x266f0d[_0x2bc965(0x2fd)])};}function rn(_0x3c49a3,_0x591d96,_0x26821a,_0xdd4c50,_0x4251b9){const _0x4d1d85=_0x5c9f94;let _0x28e550=_0x3c49a3[_0x4d1d85(0x1f5)]((_0x2b7a22,_0x520815)=>{const _0x260dd5=_0x4d1d85;let _0x54b928=_0x2b7a22[_0x2b7a22[_0x260dd5(0x2fd)]-0x1],{id:_0x4aeeb4}=_0x54b928??{},{id:_0xe56478,type:_0x14e1fc}=_0x520815,_0x1f602c=_0x520815[_0x260dd5(0x1a4)];if(_0x4aeeb4&&_0x4aeeb4!==_0xe56478)throw Error(_0x260dd5(0x167)+_0x4aeeb4+_0x260dd5(0x3e8)+_0xe56478+'.');if(!_0x54b928)return[{'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c[_0x260dd5(0x161)],'actions':_0x1f602c['actions']}}];let _0x8a5214=_0x54b928[_0x260dd5(0x1a4)];return an(_0x8a5214,_0x1f602c)?[..._0x2b7a22[_0x260dd5(0x157)](0x0,-0x1),{..._0x54b928,'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c['textRanges'],'actions':_0xdabad[_0x260dd5(0x2d7)](_0x8a5214[_0x260dd5(0x37e)],_0x1f602c[_0x260dd5(0x37e)])}}]:[..._0x2b7a22,{'id':_0xe56478,'type':_0x14e1fc,'params':{'unitId':_0x1f602c[_0x260dd5(0x13c)],'textRanges':_0x1f602c[_0x260dd5(0x161)],'actions':_0x1f602c[_0x260dd5(0x37e)]}}];},[]),_0x48c239=_0x4251b9[_0x4d1d85(0x2ec)](),_0x8cc370=(_0x48c239==null?void 0x0:_0x48c239[_0x4d1d85(0x3ad)])??_0x4d1d85(0x336),_0x1fe6d7=(_0x48c239==null?void 0x0:_0x48c239[_0x4d1d85(0x331)])??_0x4d1d85(0x336);return{'changeset':{'unitID':_0x591d96,'type':_0x4c0f7a(_0x26821a[_0x4d1d85(0x155)](_0x591d96)),'baseRev':_0xdd4c50[_0x4d1d85(0x18f)](_0x591d96),'revision':0x0,'userID':_0x8cc370,'memberID':_0x1fe6d7,'mutations':_0x28e550},'pendingMutations':_0x3c49a3[_0x4d1d85(0x157)](_0x3c49a3[_0x4d1d85(0x2fd)])};}function an(_0x20b870,_0x4368f5){const _0x30aff4=_0x5c9f94;return!on(_0x20b870)&&!on(_0x4368f5)&&sn(_0x20b870['actions'],_0x4368f5[_0x30aff4(0x37e)]);}function on(_0x1ee7fa){const _0x2c9b7d=_0x5c9f94;return _0x1ee7fa[_0x2c9b7d(0x166)]!==void 0x0;}function sn(_0x5723b6,_0x2ba02d){return cn(_0x5723b6)&&cn(_0x2ba02d)&&!un(_0x5723b6)&&!un(_0x2ba02d)&&!ln(_0x5723b6)&&!ln(_0x2ba02d);}function cn(_0x2e755b){const _0x180cf1=_0x5c9f94;return dn(_0x2e755b)[_0x180cf1(0x1b6)](_0x7459d6=>fn(_0x7459d6)&&_0x7459d6['et']==='text-x');}function ln(_0x38686d){const _0x53eef4=_0x5c9f94;return dn(_0x38686d)[_0x53eef4(0x1b6)](_0x34ff2d=>Array[_0x53eef4(0x302)](_0x34ff2d)||typeof _0x34ff2d==_0x53eef4(0x2df)||typeof _0x34ff2d==_0x53eef4(0x240));}function un(_0x4bf517){const _0x5f59f5=_0x5c9f94;return dn(_0x4bf517)['some'](_0x5378a6=>!fn(_0x5378a6)||_0x5378a6['et']!==_0x5f59f5(0x248)||!Array[_0x5f59f5(0x302)](_0x5378a6['e'])?!0x1:_0x5378a6['e'][_0x5f59f5(0x1b6)](_0x421382=>!fn(_0x421382)||!fn(_0x421382[_0x5f59f5(0x234)])?!0x1:Object[_0x5f59f5(0x211)][_0x5f59f5(0x158)][_0x5f59f5(0x23e)](_0x421382[_0x5f59f5(0x234)],'tables')||Object[_0x5f59f5(0x211)]['hasOwnProperty'][_0x5f59f5(0x23e)](_0x421382[_0x5f59f5(0x234)],_0x5f59f5(0x351))||Object[_0x5f59f5(0x211)]['hasOwnProperty']['call'](_0x421382[_0x5f59f5(0x234)],_0x5f59f5(0x266))));}function dn(_0x222103){const _0x6bf5e4=_0x5c9f94;if(!Array['isArray'](_0x222103))return[];let _0x487c05=_0x222103[_0x6bf5e4(0x32d)](_0x6bf5e4(0x234))?_0x222103:_0x222103[_0x6bf5e4(0x16e)](_0x443635=>Array[_0x6bf5e4(0x302)](_0x443635)&&_0x443635[_0x6bf5e4(0x32d)](_0x6bf5e4(0x234)));if(!Array['isArray'](_0x487c05))return[];let _0x2d36d1=_0x487c05['indexOf'](_0x6bf5e4(0x234));return _0x2d36d1===-0x1?[]:_0x487c05[_0x6bf5e4(0x157)](_0x2d36d1+0x1);}function fn(_0x236a74){return typeof _0x236a74=='object'&&!!_0x236a74&&!Array['isArray'](_0x236a74);}function pn(_0x1b5e50,_0x52e178){const _0x43bb08=_0x5c9f94;let _0x3f6d34=new _0x1f4774(0x1);return setTimeout(()=>_0x3f6d34[_0x43bb08(0x3b1)](_0x52e178),_0x1b5e50),_0x3f6d34[_0x43bb08(0x190)]()[_0x43bb08(0x270)](_0xc0564d(0x1));}var mn,hn,gn;let _n=function(_0xcb944d){const _0x5b39a4=_0x5c9f94;return _0xcb944d[_0x5b39a4(0x2f0)]=_0x5b39a4(0x273),_0xcb944d[_0x5b39a4(0x1a2)]=_0x5b39a4(0x3b2),_0xcb944d[_0x5b39a4(0x1b1)]=_0x5b39a4(0x3a0),_0xcb944d[_0x5b39a4(0x256)]=_0x5b39a4(0x1a8),_0xcb944d[_0x5b39a4(0x269)]='awaiting_with_pending',_0xcb944d[_0x5b39a4(0x324)]='fetch_missing',_0xcb944d[_0x5b39a4(0x2be)]=_0x5b39a4(0x2d9),_0xcb944d[_0x5b39a4(0x398)]=_0x5b39a4(0x2e3),_0xcb944d;}({});const vn=0x4e20,yn=0x2bf20;var G=class{constructor(_0x4bce10,_0x50087a,_0x29e2e7,_0x2a4485,_0x515793,_0xc97578,_0x3026c9,_0x9518e4,_0x3a747b){const _0x752c=_0x5c9f94;this[_0x752c(0x24c)]=_0x4bce10,this['type']=_0x50087a,this[_0x752c(0x195)]=_0x515793,this[_0x752c(0x2a7)]=_0xc97578,this[_0x752c(0x33d)]=_0x3026c9,this[_0x752c(0x382)]=_0x9518e4,this['_localCacheService']=_0x3a747b,z(this,_0x752c(0x25c),null),z(this,_0x752c(0x322),[]),this[_0x752c(0x25c)]=_0x29e2e7,this[_0x752c(0x322)]=_0x2a4485;}[_0x5c9f94(0x34f)](_0x570486){const _0x54c16b=_0x5c9f94;let _0x1351d5=this[_0x54c16b(0x382)][_0x54c16b(0x18f)](this[_0x54c16b(0x24c)]);return _0x570486[_0x54c16b(0x2dd)]>_0x1351d5+0x1&&(this[_0x54c16b(0x195)][_0x54c16b(0x25b)]({'from':_0x1351d5,'to':_0x570486[_0x54c16b(0x2dd)]-0x1}),!0x0);}[_0x5c9f94(0x30e)](_0x562207){const _0x300c8d=_0x5c9f94;this[_0x300c8d(0x33d)]['transformUndoRedo'](this[_0x300c8d(0x24c)],_0x562207);}[_0x5c9f94(0x19d)](_0x462688){const _0x589fa3=_0x5c9f94;var _0x5ae928,_0x24b92c;(_0x5ae928=(_0x24b92c=this['_handler'])[_0x589fa3(0x252)])==null||_0x5ae928[_0x589fa3(0x23e)](_0x24b92c,_0x462688);}[_0x5c9f94(0x2a8)](_0x44162c){const _0x4d5f0d=_0x5c9f94;var _0x3559ad,_0x3b0b4b;return((_0x3559ad=(_0x3b0b4b=this[_0x4d5f0d(0x195)])[_0x4d5f0d(0x3ab)])==null?void 0x0:_0x3559ad[_0x4d5f0d(0x23e)](_0x3b0b4b,_0x44162c))??null;}[_0x5c9f94(0x35d)](_0x33401c){const _0x389883=_0x5c9f94;var _0x320a12,_0x2f0058;return(_0x320a12=(_0x2f0058=this[_0x389883(0x195)])[_0x389883(0x20c)])==null?void 0x0:_0x320a12[_0x389883(0x23e)](_0x2f0058,_0x33401c);}[_0x5c9f94(0x15b)](_0x152ca1){const _0x14d3c3=_0x5c9f94;var _0x1a0d40,_0x5896c6;return(_0x1a0d40=(_0x5896c6=this[_0x14d3c3(0x195)])['onTransformState'])==null?void 0x0:_0x1a0d40[_0x14d3c3(0x23e)](_0x5896c6,_0x152ca1);}[_0x5c9f94(0x31d)](_0x56ca94){const _0x1de4a3=_0x5c9f94;var _0x2f50a3,_0x29adcb;return((_0x2f50a3=(_0x29adcb=this[_0x1de4a3(0x195)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2f50a3[_0x1de4a3(0x23e)](_0x29adcb,_0x56ca94))??_0x56ca94;}[_0x5c9f94(0x2bc)](_0x1accde){const _0x5b0bb2=_0x5c9f94;var _0xed727a,_0x69f75b;return((_0xed727a=(_0x69f75b=this[_0x5b0bb2(0x195)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0xed727a['call'](_0x69f75b,_0x1accde))??_0x1accde;}[_0x5c9f94(0x2ea)](_0x1588f7){const _0x209731=_0x5c9f94;if(this[_0x209731(0x34b)]===_0x2efadb[_0x209731(0x29a)]){let {unitID:_0x55702e,mutations:_0x6517bc,memberID:_0x1e0477}=_0x1588f7,_0x5b1477=_0x6517bc['length']>0x0?_0x6517bc[0x0][_0x209731(0x1a4)][_0x209731(0x161)]:[];if(Array[_0x209731(0x302)](_0x5b1477)&&_0x5b1477[_0x209731(0x2fd)]>0x0){var _0x294132,_0x20c974;(_0x294132=(_0x20c974=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x294132[_0x209731(0x23e)](_0x20c974,{'unitID':_0x55702e,'memberID':_0x1e0477,'textRanges':_0x5b1477});}}}['_updateLocalCache'](){const _0x597fef=_0x5c9f94;var _0x14ffb0;(_0x14ffb0=this[_0x597fef(0x255)])==null||_0x14ffb0[_0x597fef(0x3e9)](this['unitID'],this['type'],this[_0x597fef(0x25c)],this[_0x597fef(0x322)]);}[_0x5c9f94(0x268)](){const _0x2f714c=_0x5c9f94;return this[_0x2f714c(0x382)]['getCurrentRevOfUnit'](this[_0x2f714c(0x24c)]);}[_0x5c9f94(0x243)](){const _0x883f2f=_0x5c9f94;this[_0x883f2f(0x382)][_0x883f2f(0x2c0)](this[_0x883f2f(0x24c)]);}['_executeRemoteChangeset'](_0x48d164){const _0x6971bc=_0x5c9f94;let _0x4629dc=this[_0x6971bc(0x31d)](_0x48d164);_0x4629dc=this[_0x6971bc(0x2bc)](_0x4629dc);let _0x1c9d38=this[_0x6971bc(0x2a8)](_0x4629dc),_0x4ab338=_0x146494(_0x4629dc[_0x6971bc(0x202)],this[_0x6971bc(0x2a7)],{'fromCollab':!0x0});if(!_0x4ab338[_0x6971bc(0x1c3)])throw _0x1c9d38==null||_0x1c9d38[_0x6971bc(0x246)](),_0x4ab338[_0x6971bc(0x2dc)]instanceof Error?_0x4ab338[_0x6971bc(0x2dc)]:Error(_0x4ab338[_0x6971bc(0x2dc)]??'[CollaborationState]:\x20apply\x20error!');_0x1c9d38==null||_0x1c9d38[_0x6971bc(0x2cb)](),this['_transformIMECache'](_0x4629dc),this[_0x6971bc(0x15b)](_0x4629dc),this[_0x6971bc(0x30e)](_0x48d164),this['_transformSelections'](_0x4629dc),this[_0x6971bc(0x2ea)](_0x4629dc),this[_0x6971bc(0x243)]();}};let K=class extends G{constructor(_0x79544f,_0x24400a,_0x2d5e6a,_0x3ba05a,_0x2c7804,_0x4afb28,_0x404493,_0x5cccba,_0x1cb532,_0x58d876){const _0x449912=_0x5c9f94;super(_0x79544f,_0x24400a,null,[],_0x2d5e6a,_0x404493,_0x4afb28,_0x3ba05a,_0x58d876),this['_injector']=_0x2c7804,this[_0x449912(0x26a)]=_0x5cccba,this[_0x449912(0x364)]=_0x1cb532,this[_0x449912(0x35e)]=_0x58d876,z(this,_0x449912(0x1a0),'synced');}[_0x5c9f94(0x254)](_0x29e652){const _0x1baca9=_0x5c9f94;let _0x405991=this[_0x1baca9(0x3eb)][_0x1baca9(0x2c8)](q,this[_0x1baca9(0x24c)],this[_0x1baca9(0x34b)],[_0x29e652],this['_handler']);return _0x405991['_schedule'](),_0x405991[_0x1baca9(0x2c7)](),_0x405991;}[_0x5c9f94(0x387)](_0x25449c){const _0x511b47=_0x5c9f94;if(this['_checkMissing'](_0x25449c))return this['_injector']['createInstance'](Q,this['unitID'],this[_0x511b47(0x34b)],null,[],null,[_0x25449c],this[_0x511b47(0x195)]);try{let _0x7a27e=this[_0x511b47(0x364)][_0x511b47(0x32f)](_0x25449c,[_0x2b1099]);if(_0x2c24b6(_0x7a27e)){let {c1Prime:_0x417a02}=_0x7a27e;return this['_executeRemoteChangeset'](_0x417a02),this;}throw _0x7a27e[_0x511b47(0x2dc)];}catch(_0x1edb98){return this[_0x511b47(0x26a)][_0x511b47(0x2dc)](_0x1edb98),this[_0x511b47(0x31e)](!0x1);}}[_0x5c9f94(0x31e)](_0x2ea01c){const _0xbd5c90=_0x5c9f94;return this[_0xbd5c90(0x3eb)][_0xbd5c90(0x2c8)](X,this[_0xbd5c90(0x24c)],this[_0xbd5c90(0x34b)],null,[],this[_0xbd5c90(0x195)],_0x2ea01c);}[_0x5c9f94(0x354)](_0x77cb40){const _0x4f5300=_0x5c9f94;if(_0x77cb40[_0x4f5300(0x2dd)]<=this[_0x4f5300(0x268)]())return this;throw Error(_0x4f5300(0x3b0));}[_0x5c9f94(0x1e6)](){const _0x51e99e=_0x5c9f94;throw Error(_0x51e99e(0x2d2));}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){const _0x694fdd=_0x5c9f94;return this[_0x694fdd(0x3eb)][_0x694fdd(0x2c8)](Z,this[_0x694fdd(0x24c)],this[_0x694fdd(0x34b)],null,[],this[_0x694fdd(0x195)]);}[_0x5c9f94(0x281)](){return this;}['resend'](){const _0x3b1e33=_0x5c9f94;throw Error(_0x3b1e33(0x1e4));}[_0x5c9f94(0x231)](){const _0x214fa1=_0x5c9f94;let _0x1168fe=this['_revisionService'][_0x214fa1(0x18f)](this['unitID']);return this[_0x214fa1(0x195)][_0x214fa1(0x25b)]({'from':_0x1168fe,'to':0x0}),this[_0x214fa1(0x3eb)][_0x214fa1(0x2c8)](Q,this[_0x214fa1(0x24c)],this[_0x214fa1(0x34b)],null,[],null,[],this['_handler']);}};K=H([V(0x3,_0xcf8d3f(_0x9b85a2)),V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0x34c2a3),V(0x6,_0x397ef7),V(0x7,_0x3981ee),V(0x8,_0x173ca8),V(0x9,_0x1da68f(U))],K);let q=mn=class extends G{constructor(_0x264024,_0x1572cc,_0x2d44ff,_0x4900b7,_0x3061a9,_0x4a381e,_0x5cf223,_0x3ce401,_0x47e56a,_0x4440b3,_0x289a3b,_0x5974a6,_0x47093,_0x57eb37){const _0x2be123=_0x5c9f94;super(_0x264024,_0x1572cc,null,_0x2d44ff,_0x4900b7,_0x47e56a,_0x47093,_0x4a381e,_0x57eb37),this[_0x2be123(0x3eb)]=_0x3061a9,this[_0x2be123(0x2b8)]=_0x5cf223,this['_logService']=_0x3ce401,this[_0x2be123(0x323)]=_0x4440b3,this['_transformService']=_0x289a3b,this['_univerInstanceService']=_0x5974a6,z(this,_0x2be123(0x1a0),_0x2be123(0x3a0)),z(this,_0x2be123(0x2ac),null),z(this,_0x2be123(0x2c2),null);}[_0x5c9f94(0x254)](_0x558834){const _0x316545=_0x5c9f94;return this['_pendingMutations'][_0x316545(0x26f)](_0x558834),this[_0x316545(0x2c7)](),this;}[_0x5c9f94(0x387)](_0x32215d){const _0xa1113d=_0x5c9f94;if(this[_0xa1113d(0x34f)](_0x32215d))return this[_0xa1113d(0x35a)](),this[_0xa1113d(0x3eb)][_0xa1113d(0x2c8)](Q,this[_0xa1113d(0x24c)],this[_0xa1113d(0x34b)],null,this[_0xa1113d(0x322)],null,[_0x32215d],this[_0xa1113d(0x195)]);try{let _0x518f11=this[_0xa1113d(0x364)][_0xa1113d(0x32f)](_0x32215d,this[_0xa1113d(0x322)]);if(_0x2c24b6(_0x518f11)){let {c1Prime:_0x2683c2,m2Prime:_0x4ced46}=_0x518f11;this[_0xa1113d(0x349)](_0x2683c2);let _0x1caba2=this[_0xa1113d(0x3eb)][_0xa1113d(0x2c8)](mn,this['unitID'],this[_0xa1113d(0x34b)],_0x4ced46,this[_0xa1113d(0x195)]);this[_0xa1113d(0x35a)]();let _0x172e56=new Date()['getTime'](),_0x5c8b80=this[_0xa1113d(0x2ac)]?Math[_0xa1113d(0x30d)](this[_0xa1113d(0x2ac)]-_0x172e56,0x0):this[_0xa1113d(0x2e2)]();return _0x1caba2[_0xa1113d(0x3ee)](_0x5c8b80),_0x1caba2;}throw _0x518f11[_0xa1113d(0x2dc)];}catch(_0x5c554a){return this[_0xa1113d(0x26a)][_0xa1113d(0x2dc)](_0x5c554a),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x3e551a){const _0x540554=_0x5c9f94;if(_0x3e551a[_0x540554(0x2dd)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5c9f94(0x1e6)](){const _0x33e914=_0x5c9f94;throw Error(_0x33e914(0x197));}['onRemoteRetry'](){return this;}[_0x5c9f94(0x3aa)](){const _0x244619=_0x5c9f94;return this[_0x244619(0x35a)](),this['_injector']['createInstance'](Z,this['unitID'],this[_0x244619(0x34b)],null,this[_0x244619(0x322)],this[_0x244619(0x195)]);}['toggleOnline'](){return this;}[_0x5c9f94(0x3ee)](_0x8e936d){const _0x3ba351=_0x5c9f94;let _0x557d2d=_0x8e936d??this[_0x3ba351(0x2e2)]();this[_0x3ba351(0x2ac)]=new Date()[_0x3ba351(0x356)]()+_0x557d2d,this[_0x3ba351(0x2c2)]=setTimeout(()=>{const _0xbfefb9=_0x3ba351;this[_0xbfefb9(0x35a)]();let _0x122051=null;switch(this[_0xbfefb9(0x34b)]){case _0x2efadb[_0xbfefb9(0x21d)]:_0x122051=en(this['_pendingMutations'],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this['_userManagerService']);break;case _0x2efadb[_0xbfefb9(0x29a)]:_0x122051=this[_0xbfefb9(0x322)][_0xbfefb9(0x340)](_0x1b079f=>_0x1b079f['id']===_0x5b44a5['id'])?rn(this['_pendingMutations'],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]):en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x1d3)]:_0x122051=nn(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this['_revisionService'],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x29f)]:_0x122051=tn(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x28a)],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x3ed)]:_0x122051=en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this[_0xbfefb9(0x382)],this[_0xbfefb9(0x2b8)]);break;case _0x2efadb[_0xbfefb9(0x3a6)]:_0x122051=en(this[_0xbfefb9(0x322)],this[_0xbfefb9(0x24c)],this['_univerInstanceService'],this['_revisionService'],this[_0xbfefb9(0x2b8)]);break;default:throw Error(_0xbfefb9(0x184)+this[_0xbfefb9(0x34b)]+'\x20in\x20_schedule.');}let {changeset:_0x3c0851,pendingMutations:_0x276bd4}=_0x122051;this[_0xbfefb9(0x195)][_0xbfefb9(0x18c)](_0x3c0851);let _0x3be906=_0x276bd4[_0xbfefb9(0x2fd)]?this[_0xbfefb9(0x3eb)][_0xbfefb9(0x2c8)](Y,this['unitID'],this[_0xbfefb9(0x34b)],_0x3c0851,_0x276bd4,this['_handler'],void 0x0):this[_0xbfefb9(0x3eb)][_0xbfefb9(0x2c8)](J,this[_0xbfefb9(0x24c)],this[_0xbfefb9(0x34b)],_0x3c0851,this[_0xbfefb9(0x195)]);_0x3be906[_0xbfefb9(0x2c7)](),this[_0xbfefb9(0x195)][_0xbfefb9(0x1cd)](this,_0x3be906);},_0x557d2d);}[_0x5c9f94(0x2e2)](){const _0x2d0eb6=_0x5c9f94;let _0xde50d=this[_0x2d0eb6(0x323)]['getConfig'](R);return(_0xde50d==null?void 0x0:_0xde50d[_0x2d0eb6(0x170)])??0x7d0;}[_0x5c9f94(0x3e7)](){const _0x2a715d=_0x5c9f94;throw Error(_0x2a715d(0x21f));}[_0x5c9f94(0x35a)](){const _0x122a41=_0x5c9f94;this[_0x122a41(0x2c2)]!=null&&(clearTimeout(this[_0x122a41(0x2c2)]),this['_sendingTimer']=null);}[_0x5c9f94(0x31e)](_0x17d8ac){const _0x28e232=_0x5c9f94;return this[_0x28e232(0x35a)](),this['_injector'][_0x28e232(0x2c8)](X,this[_0x28e232(0x24c)],this[_0x28e232(0x34b)],null,this[_0x28e232(0x322)],this[_0x28e232(0x195)],_0x17d8ac);}};q=mn=H([V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0xcf8d3f(_0x9b85a2)),V(0x6,_0xcf8d3f(_0x2caeff)),V(0x7,_0x3981ee),V(0x8,_0x397ef7),V(0x9,_0xf41dc9),V(0xa,_0x173ca8),V(0xb,_0x4c5cd7),V(0xc,_0x34c2a3),V(0xd,_0x1da68f(U))],q);let J=hn=class extends G{constructor(_0x4825e2,_0xd58ebf,_0x4e608c,_0x17e2ee,_0x49e856,_0x23bd21,_0x5ec9a8,_0x4d17ed,_0x4346a1,_0x2597fa,_0x7d8c7a){const _0x4bdaf2=_0x5c9f94;super(_0x4825e2,_0xd58ebf,_0x4e608c,[],_0x17e2ee,_0x5ec9a8,_0x2597fa,_0x23bd21,_0x7d8c7a),this[_0x4bdaf2(0x3eb)]=_0x49e856,this['_logService']=_0x4d17ed,this[_0x4bdaf2(0x364)]=_0x4346a1,z(this,_0x4bdaf2(0x1a0),_0x4bdaf2(0x1a8)),z(this,'_resendTimeout',0x0),z(this,_0x4bdaf2(0x1fc),0x0),z(this,'_resendTimer',void 0x0),z(this,_0x4bdaf2(0x297),void 0x0);}['appendMutation'](_0xd297b2){const _0x11cdb9=_0x5c9f94;this[_0x11cdb9(0x35a)]();let _0x389798=this[_0x11cdb9(0x3eb)][_0x11cdb9(0x2c8)](Y,this[_0x11cdb9(0x24c)],this['type'],this[_0x11cdb9(0x25c)],[_0xd297b2],this['_handler'],this[_0x11cdb9(0x15c)]);return _0x389798['_updateLocalCache'](),_0x389798;}[_0x5c9f94(0x387)](_0x7d9915){const _0x4a7d33=_0x5c9f94;if(this[_0x4a7d33(0x34f)](_0x7d9915))return this[_0x4a7d33(0x35a)](),this[_0x4a7d33(0x3eb)]['createInstance'](Q,this[_0x4a7d33(0x24c)],this[_0x4a7d33(0x34b)],this[_0x4a7d33(0x25c)],[],null,[_0x7d9915],this[_0x4a7d33(0x195)]);try{let _0x567244=this[_0x4a7d33(0x364)][_0x4a7d33(0x26d)]([_0x7d9915],[this['_awaitingChangeset']],!0x1);if(_0x31eeb1(_0x567244)){let {c1Prime:_0x4fa909,c2Prime:_0x509931}=_0x567244;this[_0x4a7d33(0x349)](_0x4fa909[0x0]),_0x509931[0x0][_0x4a7d33(0x2c4)]=this[_0x4a7d33(0x268)](),this['_clearScheduledTask']();let _0x1704d3=this[_0x4a7d33(0x3eb)][_0x4a7d33(0x2c8)](hn,this['unitID'],this[_0x4a7d33(0x34b)],_0x509931[0x0],this['_handler']);return _0x1704d3[_0x4a7d33(0x2c7)](),_0x1704d3;}throw _0x567244[_0x4a7d33(0x2dc)];}catch(_0x218f9c){return this[_0x4a7d33(0x26a)][_0x4a7d33(0x2dc)](_0x218f9c),this[_0x4a7d33(0x31e)](!0x1);}}['onRemoteAck'](_0x1179c4){const _0xe57052=_0x5c9f94;this[_0xe57052(0x35a)]();let _0x15e74a=this[_0xe57052(0x382)]['getCurrentRevOfUnit'](this[_0xe57052(0x24c)]);if(_0x1179c4['revision']<=_0x15e74a)return this;if(this[_0xe57052(0x34f)](_0x1179c4))return this['_injector'][_0xe57052(0x2c8)](Q,this['unitID'],this[_0xe57052(0x34b)],this[_0xe57052(0x25c)],[],_0x1179c4[_0xe57052(0x2dd)],[],this[_0xe57052(0x195)]);this[_0xe57052(0x243)]();let _0x231e37=this[_0xe57052(0x3eb)][_0xe57052(0x2c8)](K,this[_0xe57052(0x24c)],this['type'],this[_0xe57052(0x195)]);return _0x231e37['_updateLocalCache'](),_0x231e37;}[_0x5c9f94(0x1e6)](_0x1fbf7a){const _0x49d023=_0x5c9f94;return this[_0x49d023(0x31e)](!!(_0x1fbf7a!=null&&_0x1fbf7a[_0x49d023(0x2da)]));}[_0x5c9f94(0x3c1)](_0x198d92){const _0x4f9333=_0x5c9f94;return this[_0x4f9333(0x1fc)]>yn?this[_0x4f9333(0x3aa)]():(this[_0x4f9333(0x15c)]=pn(this[_0x4f9333(0x36a)],{'timeout':this[_0x4f9333(0x36a)],'reqId':_0x198d92['reqId']}),this['_sender']=this[_0x4f9333(0x15c)][_0x4f9333(0x168)](({reqId:_0x1e5818,timeout:_0x1975a9})=>{this['_resendWithTimeout'](_0x1e5818,_0x1975a9);}),this);}[_0x5c9f94(0x3aa)](){const _0x5d8a3e=_0x5c9f94;return this[_0x5d8a3e(0x35a)](),this[_0x5d8a3e(0x3eb)][_0x5d8a3e(0x2c8)](Z,this[_0x5d8a3e(0x24c)],this['type'],this['_awaitingChangeset'],[],this[_0x5d8a3e(0x195)]);}['toggleOnline'](){return this;}[_0x5c9f94(0x3e7)](){const _0x3bb331=_0x5c9f94;this[_0x3bb331(0x195)][_0x3bb331(0x18c)](this[_0x3bb331(0x25c)]);}[_0x5c9f94(0x31e)](_0x349dff){const _0x2d3019=_0x5c9f94;return this['_clearScheduledTask'](),this[_0x2d3019(0x3eb)][_0x2d3019(0x2c8)](X,this[_0x2d3019(0x24c)],this[_0x2d3019(0x34b)],this[_0x2d3019(0x25c)],[],this[_0x2d3019(0x195)],_0x349dff);}[_0x5c9f94(0x271)](_0x2a6216,_0x42eea2){const _0x18a4d8=_0x5c9f94;var _0xa0fbcb;_0x2a6216===((_0xa0fbcb=this['_awaitingChangeset'])==null?void 0x0:_0xa0fbcb['reqId'])&&(this[_0x18a4d8(0x3e7)](),this[_0x18a4d8(0x36a)]=_0x42eea2===0x0?0x3e8:Math[_0x18a4d8(0x290)](_0x42eea2*0x2,vn),this[_0x18a4d8(0x1fc)]+=this[_0x18a4d8(0x36a)]);}['_clearScheduledTask'](){const _0x9e3a38=_0x5c9f94;var _0x2e3c91;(_0x2e3c91=this[_0x9e3a38(0x297)])==null||_0x2e3c91[_0x9e3a38(0x20f)](),this[_0x9e3a38(0x36a)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};function _0x4bc2(_0x277a3e,_0x22bb80){_0x277a3e=_0x277a3e-0x137;const _0x3253af=_0x3253();let _0x4bc23b=_0x3253af[_0x277a3e];return _0x4bc23b;}J=hn=H([V(0x4,_0xcf8d3f(_0x19ff28)),V(0x5,_0xcf8d3f(_0x9b85a2)),V(0x6,_0x397ef7),V(0x7,_0x3981ee),V(0x8,_0x173ca8),V(0x9,_0x34c2a3),V(0xa,_0x1da68f(U))],J);let Y=gn=class extends G{constructor(_0x4ddec4,_0x3c9482,_0x3b786f,_0x34c3f0,_0x511a5f,_0xe6b969,_0x33280f,_0x1be969,_0x348cc2,_0x47e87e,_0x1ad009,_0x20361e,_0x170ad2){const _0x979912=_0x5c9f94;super(_0x4ddec4,_0x3c9482,_0x3b786f,_0x34c3f0,_0x511a5f,_0x348cc2,_0x20361e,_0x1be969,_0x170ad2),this[_0x979912(0x3eb)]=_0x33280f,this[_0x979912(0x26a)]=_0x47e87e,this[_0x979912(0x364)]=_0x1ad009,this[_0x979912(0x35e)]=_0x170ad2,z(this,_0x979912(0x1a0),'awaiting_with_pending'),z(this,_0x979912(0x36a),0x0),z(this,'_maxTotalRetryTimeout',0x0),z(this,_0x979912(0x15c),void 0x0),z(this,'_sender',void 0x0),_0xe6b969&&(this[_0x979912(0x15c)]=_0xe6b969,this['_sender']=this[_0x979912(0x15c)]['subscribe'](({reqId:_0x5c98a2,timeout:_0x3ce95f})=>{this['_resendWithTimeout'](_0x5c98a2,_0x3ce95f);}));}[_0x5c9f94(0x254)](_0x36cf9b){const _0xbcc1a0=_0x5c9f94;return this[_0xbcc1a0(0x322)][_0xbcc1a0(0x26f)](_0x36cf9b),this;}[_0x5c9f94(0x387)](_0x5e35ac){const _0x2a17c6=_0x5c9f94;if(this[_0x2a17c6(0x34f)](_0x5e35ac))return this['_clearScheduledTask'](),this['_injector']['createInstance'](Q,this['unitID'],this[_0x2a17c6(0x34b)],this[_0x2a17c6(0x25c)],this['_pendingMutations'],null,[_0x5e35ac],this[_0x2a17c6(0x195)]);try{let _0x5948fe=this[_0x2a17c6(0x364)][_0x2a17c6(0x26d)]([_0x5e35ac],[this[_0x2a17c6(0x25c)]],!0x1);if(_0x31eeb1(_0x5948fe)){let {c1Prime:_0x53ff47,c2Prime:_0x51b24c}=_0x5948fe,_0x1ee8e0=this['_transformService'][_0x2a17c6(0x32f)](_0x53ff47[0x0],this[_0x2a17c6(0x322)]);if(_0x2c24b6(_0x1ee8e0)){let {c1Prime:_0x39627d,m2Prime:_0x59023a}=_0x1ee8e0;return this[_0x2a17c6(0x349)](_0x39627d),_0x51b24c[0x0][_0x2a17c6(0x2c4)]=this[_0x2a17c6(0x268)](),this[_0x2a17c6(0x35a)](),this[_0x2a17c6(0x3eb)]['createInstance'](gn,this[_0x2a17c6(0x24c)],this['type'],_0x51b24c[0x0],_0x59023a,this[_0x2a17c6(0x195)],void 0x0);}throw _0x1ee8e0[_0x2a17c6(0x2dc)];}throw _0x5948fe['error'];}catch(_0x325758){return this['_logService'][_0x2a17c6(0x2dc)](_0x325758),this[_0x2a17c6(0x31e)](!0x1);}}[_0x5c9f94(0x354)](_0x2ef9a8){const _0x40ed69=_0x5c9f94;this['_clearScheduledTask']();let _0x346aca=this[_0x40ed69(0x268)]();if(_0x2ef9a8[_0x40ed69(0x2dd)]<=_0x346aca)return this;if(this['_checkMissing'](_0x2ef9a8))return this[_0x40ed69(0x3eb)][_0x40ed69(0x2c8)](Q,this[_0x40ed69(0x24c)],this[_0x40ed69(0x34b)],this[_0x40ed69(0x25c)],this[_0x40ed69(0x322)],_0x2ef9a8['revision'],[],this[_0x40ed69(0x195)]);this[_0x40ed69(0x243)]();let _0xc2c6b7=this[_0x40ed69(0x3eb)][_0x40ed69(0x2c8)](q,this['unitID'],this[_0x40ed69(0x34b)],this['_pendingMutations'],this[_0x40ed69(0x195)]);return _0xc2c6b7[_0x40ed69(0x3ee)](),_0xc2c6b7[_0x40ed69(0x2c7)](),_0xc2c6b7;}['onRemoteRej'](_0x3a769d){const _0x50a782=_0x5c9f94;return this[_0x50a782(0x31e)](!!(_0x3a769d!=null&&_0x3a769d[_0x50a782(0x2da)]));}[_0x5c9f94(0x3c1)](_0x5e3075){const _0x120b18=_0x5c9f94;return this['_maxTotalRetryTimeout']>yn?this[_0x120b18(0x3aa)]():(this[_0x120b18(0x15c)]=pn(this[_0x120b18(0x36a)],{'timeout':this[_0x120b18(0x36a)],'reqId':_0x5e3075[_0x120b18(0x1f8)]}),this[_0x120b18(0x297)]=this[_0x120b18(0x15c)]['subscribe'](({reqId:_0x10eef6,timeout:_0x209bd4})=>{const _0x416576=_0x120b18;this[_0x416576(0x271)](_0x10eef6,_0x209bd4);}),this);}[_0x5c9f94(0x3aa)](){const _0x49bbf4=_0x5c9f94;return this[_0x49bbf4(0x35a)](),this[_0x49bbf4(0x3eb)]['createInstance'](Z,this[_0x49bbf4(0x24c)],this[_0x49bbf4(0x34b)],this[_0x49bbf4(0x25c)],this[_0x49bbf4(0x322)],this[_0x49bbf4(0x195)]);}[_0x5c9f94(0x281)](){return this;}[_0x5c9f94(0x3e7)](){const _0x1595ca=_0x5c9f94;this[_0x1595ca(0x195)]['onSendChangeset'](this[_0x1595ca(0x25c)]);}[_0x5c9f94(0x31e)](_0x572639){const _0x56ccf4=_0x5c9f94;return this[_0x56ccf4(0x35a)](),this[_0x56ccf4(0x3eb)]['createInstance'](X,this['unitID'],this['type'],null,this[_0x56ccf4(0x322)],this[_0x56ccf4(0x195)],_0x572639);}[_0x5c9f94(0x271)](_0xc96070,_0x32b2c9){const _0x370083=_0x5c9f94;var _0x464f0e;_0xc96070===((_0x464f0e=this[_0x370083(0x25c)])==null?void 0x0:_0x464f0e['reqId'])&&(this[_0x370083(0x3e7)](),this['_resendTimeout']=_0x32b2c9===0x0?0x3e8:Math['min'](_0x32b2c9*0x2,vn),this[_0x370083(0x1fc)]+=this[_0x370083(0x36a)]);}[_0x5c9f94(0x35a)](){const _0xe233d=_0x5c9f94;var _0x2c4b5b;(_0x2c4b5b=this[_0xe233d(0x297)])==null||_0x2c4b5b[_0xe233d(0x20f)](),this[_0xe233d(0x36a)]=0x0,this[_0xe233d(0x1fc)]=0x0;}};Y=gn=H([V(0x6,_0xcf8d3f(_0x19ff28)),V(0x7,_0xcf8d3f(_0x9b85a2)),V(0x8,_0x397ef7),V(0x9,_0x3981ee),V(0xa,_0x173ca8),V(0xb,_0x34c2a3),V(0xc,_0x1da68f(U))],Y);let X=class extends G{constructor(_0x13d91e,_0x4edb28,_0x23d1fa,_0x5c8200,_0x5b2c3f,_0x4fab0e=!0x1,_0x35eb96,_0x232867,_0x562c65,_0x9c0e8e,_0x228014,_0x15c5cb,_0x5494b7){const _0x385b08=_0x5c9f94;super(_0x13d91e,_0x4edb28,_0x23d1fa,_0x5c8200,_0x5b2c3f,_0x232867,_0x562c65,_0x9c0e8e,_0x5494b7),this[_0x385b08(0x338)]=_0x4fab0e,this[_0x385b08(0x150)]=_0x35eb96,this[_0x385b08(0x205)]=_0x228014,this['_collaborationUIEventService']=_0x15c5cb,this[_0x385b08(0x35e)]=_0x5494b7,z(this,_0x385b08(0x1a0),_0x385b08(0x2d9)),this['_disableEditing'](),this['_showConflictProcessingNotification'](),this[_0x385b08(0x3dd)]();}[_0x5c9f94(0x254)](){return this;}[_0x5c9f94(0x387)](){return this;}['onRemoteAck'](){return this;}[_0x5c9f94(0x1e6)](){return this;}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){return this;}[_0x5c9f94(0x281)](){return this;}[_0x5c9f94(0x3e7)](){const _0x18a89f=_0x5c9f94;throw Error(_0x18a89f(0x339));}async[_0x5c9f94(0x3dd)](){const _0x125b15=_0x5c9f94;var _0x277f0e,_0x5c32a5;await((_0x277f0e=this[_0x125b15(0x255)])==null||(_0x5c32a5=_0x277f0e[_0x125b15(0x28e)])==null?void 0x0:_0x5c32a5[_0x125b15(0x23e)](_0x277f0e,this['unitID'],'conflict')[_0x125b15(0x3e1)](()=>void 0x0));try{var _0x938a72;await((_0x938a72=this[_0x125b15(0x255)])==null?void 0x0:_0x938a72[_0x125b15(0x1fe)](this[_0x125b15(0x24c)]));}catch{this[_0x125b15(0x143)][_0x125b15(0x3a8)]({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x125b15(0x24c)]});return;}this[_0x125b15(0x3d5)]();}[_0x5c9f94(0x1bb)](){const _0x2c8a54=_0x5c9f94;this['_collaborationUIEventService'][_0x2c8a54(0x3a8)]({'id':'CONFLICT_PROCESSING'});}[_0x5c9f94(0x3d5)](){const _0x2673be=_0x5c9f94;this[_0x2673be(0x338)]?this[_0x2673be(0x143)]['emitEvent']({'id':_0x2673be(0x1c5)}):this[_0x2673be(0x143)][_0x2673be(0x3a8)]({'id':'CONFLICT'});}[_0x5c9f94(0x37f)](){const _0x5d157e=_0x5c9f94;this[_0x5d157e(0x150)][_0x5d157e(0x285)](new _0x350235(this['unitID'])['id'],!0x1);}};X=H([V(0x6,_0xcf8d3f(_0x30415d)),V(0x7,_0x397ef7),V(0x8,_0x34c2a3),V(0x9,_0xcf8d3f(_0x9b85a2)),V(0xa,_0xcf8d3f(_0x5c6337)),V(0xb,_0xcf8d3f(B)),V(0xc,_0x1da68f(U))],X);let Z=class extends G{constructor(_0x44e3e5,_0x185235,_0x3ec78f,_0x557d95,_0x5e9c84,_0x4588c1,_0x31ecbd,_0x5821c9,_0x1bcdc2,_0x571d8d){const _0x36dc7c=_0x5c9f94;super(_0x44e3e5,_0x185235,_0x3ec78f,_0x557d95,_0x5e9c84,_0x5821c9,_0x1bcdc2,_0x31ecbd,_0x571d8d),this[_0x36dc7c(0x3eb)]=_0x4588c1,z(this,_0x36dc7c(0x1a0),_0x36dc7c(0x2e3));}[_0x5c9f94(0x254)](_0x594e91){const _0x1f7e47=_0x5c9f94;return this[_0x1f7e47(0x322)][_0x1f7e47(0x26f)](_0x594e91),this[_0x1f7e47(0x2c7)](),this;}['onRemoteChangeset'](_0x19e821){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x5c9f94(0x354)](){const _0x3f38f8=_0x5c9f94;throw Error(_0x3f38f8(0x383));}[_0x5c9f94(0x1e6)](){const _0x12523a=_0x5c9f94;throw Error(_0x12523a(0x216));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x5c9f94(0x281)](){const _0x1500a4=_0x5c9f94;let {_injector:_0xa80653,_pendingMutations:_0x41724e,_awaitingChangeset:_0x3efe65,unitID:_0x1c71ec,_handler:_0x332298,type:_0x2e9729}=this,_0x1e5c54=bn(_0xa80653,_0x1c71ec,_0x2e9729,_0x3efe65,_0x41724e,_0x332298);return _0x1e5c54 instanceof q?_0x1e5c54['_schedule']():(_0x1e5c54 instanceof Y||_0x1e5c54 instanceof J)&&_0x1e5c54[_0x1500a4(0x3e7)](),_0x1e5c54;}[_0x5c9f94(0x3e7)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Z=H([V(0x5,_0xcf8d3f(_0x19ff28)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0x397ef7),V(0x8,_0x34c2a3),V(0x9,_0x1da68f(U))],Z);let Q=class extends G{constructor(_0x20dd7a,_0x283789,_0x22294e,_0x53e821,_0x11310d,_0x2c27b0,_0x40e4f3,_0x27ee2b,_0x33e7d3,_0x386f94,_0x2dbbb0,_0x5957c1,_0xa4894f,_0x5de5e7){const _0x5c9509=_0x5c9f94;super(_0x20dd7a,_0x283789,_0x22294e,_0x53e821,_0x40e4f3,_0x2dbbb0,_0x5957c1,_0x33e7d3,_0x5de5e7),this[_0x5c9509(0x3bd)]=_0x11310d,this['_queuedRemoteChangesets']=_0x2c27b0,this['_injector']=_0x27ee2b,this['_logService']=_0x386f94,this['_transformService']=_0xa4894f,this['localCacheService']=_0x5de5e7,z(this,_0x5c9509(0x1a0),'fetch_missing');}[_0x5c9f94(0x27e)](_0x2f3868){const _0x138f4e=_0x5c9f94;try{if(this['_handleRemoteChangesets'](_0x2f3868)['missingChangesets'])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x138f4e(0x291)]([...this[_0x138f4e(0x221)]][_0x138f4e(0x249)]((_0x22f29e,_0x426abf)=>_0x22f29e['revision']-_0x426abf[_0x138f4e(0x2dd)]))[_0x138f4e(0x1e2)])return this[_0x138f4e(0x221)]=[],this['_updateLocalCache'](),this[_0x138f4e(0x195)][_0x138f4e(0x25b)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xf8c8d9=this[_0x138f4e(0x25c)],_0x5e48ef=this[_0x138f4e(0x322)],_0x25bf4e;if(_0xf8c8d9&&_0x5e48ef[_0x138f4e(0x2fd)]!==0x0)_0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](Y,this['unitID'],this[_0x138f4e(0x34b)],_0xf8c8d9,_0x5e48ef,this[_0x138f4e(0x195)],void 0x0);else{if(_0xf8c8d9&&_0x5e48ef[_0x138f4e(0x2fd)]===0x0)_0xf8c8d9[_0x138f4e(0x2c4)]=this[_0x138f4e(0x268)](),_0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](J,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],_0xf8c8d9,this['_handler']);else{if(_0x5e48ef[_0x138f4e(0x2fd)]!==0x0){let _0x28ace3=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](q,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],_0x5e48ef,this[_0x138f4e(0x195)]);_0x28ace3[_0x138f4e(0x3ee)](),_0x25bf4e=_0x28ace3;}else _0x25bf4e=this[_0x138f4e(0x3eb)][_0x138f4e(0x2c8)](K,this[_0x138f4e(0x24c)],this[_0x138f4e(0x34b)],this['_handler']);}}return _0x25bf4e[_0x138f4e(0x2c7)](),_0x25bf4e;}catch(_0x58de83){return this[_0x138f4e(0x26a)][_0x138f4e(0x2dc)]('[FetchMissState]',_0x138f4e(0x36b),_0x58de83),this['_injector'][_0x138f4e(0x2c8)](X,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x138f4e(0x322)],this[_0x138f4e(0x195)],!0x1);}}[_0x5c9f94(0x291)](_0x299f76){const _0x4cc3b6=_0x5c9f94;this[_0x4cc3b6(0x151)]();for(let _0x2a5030=0x0;_0x2a5030<_0x299f76[_0x4cc3b6(0x2fd)];_0x2a5030++){let _0xd99cfa=_0x299f76[_0x2a5030],_0x493d98=this[_0x4cc3b6(0x268)]();if(!(_0xd99cfa[_0x4cc3b6(0x2dd)]<=_0x493d98)){if(_0xd99cfa[_0x4cc3b6(0x2dd)]>_0x493d98+0x1)return{'missingChangesets':!0x0};if(this[_0x4cc3b6(0x272)](_0xd99cfa)){this[_0x4cc3b6(0x193)]();continue;}this[_0x4cc3b6(0x2c9)](_0xd99cfa),this[_0x4cc3b6(0x151)]();}}return{'missingChangesets':!0x1};}[_0x5c9f94(0x2c9)](_0x5b20a5){const _0x5af20c=_0x5c9f94;let _0x3ccfff=_0x5b20a5,_0x2c496a=this[_0x5af20c(0x25c)];if(_0x2c496a){let _0x18cc62=this['_transformService']['transformChangesets']([_0x5b20a5],[_0x2c496a],!0x1);if(!_0x31eeb1(_0x18cc62))throw _0x18cc62[_0x5af20c(0x2dc)];_0x3ccfff=_0x18cc62[_0x5af20c(0x2d3)][0x0],_0x2c496a=_0x18cc62[_0x5af20c(0x227)][0x0];}let _0x160f5d=this[_0x5af20c(0x322)];if(_0x160f5d[_0x5af20c(0x2fd)]){let _0x3d5417=this[_0x5af20c(0x364)][_0x5af20c(0x32f)](_0x3ccfff,_0x160f5d);if(!_0x2c24b6(_0x3d5417))throw _0x3d5417[_0x5af20c(0x2dc)];_0x3ccfff=_0x3d5417['c1Prime'],_0x160f5d=_0x3d5417[_0x5af20c(0x1ab)];}this[_0x5af20c(0x349)](_0x3ccfff),_0x2c496a&&(_0x2c496a[_0x5af20c(0x2c4)]=this[_0x5af20c(0x268)]()),this[_0x5af20c(0x25c)]=_0x2c496a,this[_0x5af20c(0x322)]=_0x160f5d;}[_0x5c9f94(0x151)](){const _0x5dd30a=_0x5c9f94;if(!this[_0x5dd30a(0x25c)]||this[_0x5dd30a(0x3bd)]==null)return;let _0x289903=this[_0x5dd30a(0x268)]();if(this[_0x5dd30a(0x3bd)]<=_0x289903)throw Error(_0x5dd30a(0x236)+this['_acknowledgedAwaitingRevision']+'.');this[_0x5dd30a(0x3bd)]===_0x289903+0x1&&this[_0x5dd30a(0x193)]();}[_0x5c9f94(0x193)](){const _0x5e4349=_0x5c9f94;this[_0x5e4349(0x243)](),this[_0x5e4349(0x25c)]=null,this[_0x5e4349(0x3bd)]=null;}['_isEchoedAwaitingChangeset'](_0x4c5160){const _0x149c16=_0x5c9f94;let _0x5805b5=this[_0x149c16(0x25c)];return!_0x5805b5||!_0x5805b5[_0x149c16(0x282)]||_0x5805b5[_0x149c16(0x1f8)]===null||_0x5805b5[_0x149c16(0x1f8)]===void 0x0?!0x1:_0x4c5160[_0x149c16(0x24c)]===_0x5805b5['unitID']&&_0x4c5160[_0x149c16(0x282)]===_0x5805b5[_0x149c16(0x282)]&&_0x4c5160['reqId']===_0x5805b5[_0x149c16(0x1f8)];}[_0x5c9f94(0x3e7)](){const _0x37064b=_0x5c9f94;throw Error(_0x37064b(0x1b5));}[_0x5c9f94(0x254)](_0x36fe84){const _0x207035=_0x5c9f94;return this[_0x207035(0x322)][_0x207035(0x26f)](_0x36fe84),this;}['onRemoteChangeset'](_0x5c651b){const _0x135bd3=_0x5c9f94;return this[_0x135bd3(0x221)][_0x135bd3(0x26f)](_0x5c651b),this;}[_0x5c9f94(0x354)](_0x515058){const _0x3216e3=_0x5c9f94;if(this[_0x3216e3(0x25c)]){let _0x11a809=this[_0x3216e3(0x268)]();return _0x515058['revision']<=_0x11a809||(_0x11a809+0x1===_0x515058[_0x3216e3(0x2dd)]?(this['_incrementRevisionNumber'](),this[_0x3216e3(0x25c)]=null,this[_0x3216e3(0x3bd)]=null):this[_0x3216e3(0x3bd)]=_0x515058[_0x3216e3(0x2dd)]),this;}if(_0x515058[_0x3216e3(0x2dd)]<=this[_0x3216e3(0x268)]())return this;throw Error(_0x3216e3(0x18b));}[_0x5c9f94(0x1e6)](_0x235d77){const _0x16d154=_0x5c9f94;return this[_0x16d154(0x31e)](!!(_0x235d77!=null&&_0x235d77[_0x16d154(0x2da)]));}[_0x5c9f94(0x3c1)](){return this;}[_0x5c9f94(0x3aa)](){const _0x1bf16f=_0x5c9f94;return this['_injector']['createInstance'](Z,this['unitID'],this[_0x1bf16f(0x34b)],this[_0x1bf16f(0x25c)],this[_0x1bf16f(0x322)],this[_0x1bf16f(0x195)]);}[_0x5c9f94(0x281)](){return this;}['_onConflict'](_0x28b138){const _0x4e9d2a=_0x5c9f94;return this[_0x4e9d2a(0x3eb)]['createInstance'](X,this['unitID'],this[_0x4e9d2a(0x34b)],this['_awaitingChangeset'],this[_0x4e9d2a(0x322)],this[_0x4e9d2a(0x195)],_0x28b138);}};Q=H([V(0x7,_0xcf8d3f(_0x19ff28)),V(0x8,_0xcf8d3f(_0x9b85a2)),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x34c2a3),V(0xc,_0x173ca8),V(0xd,_0x1da68f(U))],Q);function bn(_0x187200,_0x12543d,_0xab0597,_0x264bba,_0x47a889,_0x51cb9c){const _0x277fe1=_0x5c9f94;return _0x264bba&&_0x47a889[_0x277fe1(0x2fd)]?_0x187200[_0x277fe1(0x2c8)](Y,_0x12543d,_0xab0597,_0x264bba,_0x47a889,_0x51cb9c,void 0x0):_0x264bba?_0x187200['createInstance'](J,_0x12543d,_0xab0597,_0x264bba,_0x51cb9c):_0x47a889[_0x277fe1(0x2fd)]?_0x187200[_0x277fe1(0x2c8)](q,_0x12543d,_0xab0597,_0x47a889,_0x51cb9c):_0x187200['createInstance'](K,_0x12543d,_0xab0597,_0x51cb9c);}let $=class extends _0x468ac5{get[_0x5c9f94(0x16a)](){const _0x5b9dc6=_0x5c9f94;return this[_0x5b9dc6(0x232)];}constructor(_0x1064f9,_0x443890,_0x1ab5bd,_0x29d046,_0x2de612,_0x38e5ee,_0x39003d,_0x42072f,_0x48ca90,_0x5a6a16,_0x1ae315,_0x39e759,_0x301c4e,_0x255ef6){const _0x5b1c37=_0x5c9f94;super(),this['unitID']=_0x1064f9,this[_0x5b1c37(0x3c5)]=_0x443890,this[_0x5b1c37(0x213)]=_0x1ab5bd,this['_injector']=_0x29d046,this['_compressMutationService']=_0x2de612,this[_0x5b1c37(0x205)]=_0x38e5ee,this[_0x5b1c37(0x382)]=_0x39003d,this['_eventService']=_0x42072f,this['_univerInstanceService']=_0x48ca90,this[_0x5b1c37(0x26a)]=_0x5a6a16,this[_0x5b1c37(0x2a7)]=_0x1ae315,this[_0x5b1c37(0x150)]=_0x39e759,this[_0x5b1c37(0x333)]=_0x301c4e,this[_0x5b1c37(0x255)]=_0x255ef6,z(this,_0x5b1c37(0x28d),new _0x1946cb(null)),z(this,'state$',this[_0x5b1c37(0x28d)][_0x5b1c37(0x190)]()),z(this,_0x5b1c37(0x232),void 0x0),z(this,_0x5b1c37(0x23c),!0x1),z(this,_0x5b1c37(0x2fa),''),z(this,_0x5b1c37(0x355),0x0),z(this,'status$',this[_0x5b1c37(0x1eb)][_0x5b1c37(0x270)](_0x98781b(_0x2c8444=>_0x2c8444?_0x2c8444[_0x5b1c37(0x1a0)]:_0x5b1c37(0x2e3)),_0x43a741({'bufferSize':0x1,'refCount':!0x0}))),z(this,'_transitionLocked',!0x1),z(this,_0x5b1c37(0x1cf),[]);}async[_0x5c9f94(0x1f6)](){const _0x4135e8=_0x5c9f94;if(this[_0x4135e8(0x16a)])throw Error(_0x4135e8(0x358));await this['_init']();}[_0x5c9f94(0x2b3)](){const _0x553ba9=_0x5c9f94;return this[_0x553ba9(0x23c)]=!0x0,_0x2b94ed(()=>{const _0x232b49=_0x553ba9;this[_0x232b49(0x23c)]=!0x1,this[_0x232b49(0x16c)]();});}[_0x5c9f94(0x181)](_0x1c798d){this['_onLocalMutation'](_0x1c798d);}[_0x5c9f94(0x2bd)](_0x24920b){const _0x3f29c3=_0x5c9f94;this[_0x3f29c3(0x232)]=_0x24920b,this[_0x3f29c3(0x28d)]['next'](_0x24920b);}async[_0x5c9f94(0x215)](){const _0x2e3384=_0x5c9f94;if(this[_0x2e3384(0x2bd)](await this[_0x2e3384(0x3b7)]()),this[_0x2e3384(0x333)]){var _0x1e3a4b;(_0x1e3a4b=this['_singleActiveUnitService'])==null||_0x1e3a4b[_0x2e3384(0x3d0)](this[_0x2e3384(0x24c)]),this[_0x2e3384(0x189)](this[_0x2e3384(0x333)]['getUnitStatus$'](this[_0x2e3384(0x24c)])[_0x2e3384(0x168)](_0x4e7c01=>{const _0x4dba45=_0x2e3384;this['_logService'][_0x4dba45(0x1aa)](_0x4dba45(0x32e),_0x4dba45(0x2ca),_0x4e7c01),_0x4e7c01===0x1?(this[_0x4dba45(0x1d0)][_0x4dba45(0x3a8)]({'id':_0x4dba45(0x39c)}),this['_permissionService'][_0x4dba45(0x285)](new _0x350235(this[_0x4dba45(0x24c)])['id'],!0x1),this[_0x4dba45(0x150)][_0x4dba45(0x172)](!0x1)):(this[_0x4dba45(0x150)][_0x4dba45(0x285)](new _0x350235(this[_0x4dba45(0x24c)])['id'],!0x0),this[_0x4dba45(0x150)]['setShowComponents'](!0x0));}));}let _0x52342c=!0x1;return this['disposeWithMe'](this[_0x2e3384(0x3c5)][_0x2e3384(0x225)][_0x2e3384(0x168)](_0x3fd840=>{const _0x48463c=_0x2e3384;_0x3fd840===0x3?this[_0x48463c(0x393)](_0x52342c):_0x3fd840===0x2&&(_0x52342c=!0x0,this['_toggleOffline']());})),this[_0x2e3384(0x189)](this[_0x2e3384(0x3c5)][_0x2e3384(0x1ad)][_0x2e3384(0x168)](_0xba18aa=>{const _0x2c0c9b=_0x2e3384;try{switch(_0xba18aa[_0x2c0c9b(0x198)]){case _0x538b71['NEW_CHANGESETS']:this[_0x2c0c9b(0x13e)](_0xde3e04(_0xba18aa[_0x2c0c9b(0x3cf)]));break;case _0x538b71['CHANGESET_ACK']:this[_0x2c0c9b(0x32a)](_0xba18aa[_0x2c0c9b(0x3cf)]);break;case _0x538b71[_0x2c0c9b(0x22c)]:this[_0x2c0c9b(0x13f)]();break;case _0x538b71[_0x2c0c9b(0x24e)]:this[_0x2c0c9b(0x310)](_0xba18aa[_0x2c0c9b(0x3cf)]);break;case _0x538b71[_0x2c0c9b(0x378)]:this[_0x2c0c9b(0x39b)](_0xba18aa['data'][_0x2c0c9b(0x329)][_0x2c0c9b(0x375)](_0x2f346f=>_0xde3e04(_0x2f346f)));break;case _0x538b71[_0x2c0c9b(0x22e)]:this[_0x2c0c9b(0x13f)]({'isPermissionRej':!0x0});break;case _0x538b71[_0x2c0c9b(0x1bd)]:}}catch(_0x447f64){throw console['error'](_0x2c0c9b(0x27b),_0x447f64),_0x447f64;}})),this[_0x2e3384(0x232)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x5c9f94(0x3da)](){const _0x312d8a=_0x5c9f94;if(this[_0x312d8a(0x353)])throw Error(_0x312d8a(0x1ac));this[_0x312d8a(0x353)]=!0x0;}[_0x5c9f94(0x311)](_0x324da1){const _0xe7624a=_0x5c9f94;this[_0xe7624a(0x3da)](),this[_0xe7624a(0x2bd)](this[_0xe7624a(0x232)][_0xe7624a(0x254)](_0x324da1)),this[_0xe7624a(0x19f)]();}[_0x5c9f94(0x13e)](_0x3227da){const _0x5d7227=_0x5c9f94;if(!(_0x3227da['revision']<=this['_revisionService'][_0x5d7227(0x18f)](this[_0x5d7227(0x24c)]))){if(this['_collaborationPaused']){this[_0x5d7227(0x1cf)][_0x5d7227(0x26f)](_0x3227da);return;}this['_applyRemoteChangeset'](_0x3227da);}}[_0x5c9f94(0x16c)](){const _0x3543be=_0x5c9f94;this[_0x3543be(0x1cf)]['forEach'](_0x11d37f=>this[_0x3543be(0x2ed)](_0x11d37f)),this[_0x3543be(0x1cf)]=[];}[_0x5c9f94(0x2ed)](_0x25d4aa){const _0x9e14ac=_0x5c9f94;let _0x4355a1=this['_compressMutationService'][_0x9e14ac(0x392)][_0x9e14ac(0x15e)](this[_0x9e14ac(0x21c)][_0x9e14ac(0x392)][_0x9e14ac(0x2f2)]()['COMPRESS_MUTATION_APPLY'])(_0x25d4aa[_0x9e14ac(0x202)],null)||_0x25d4aa[_0x9e14ac(0x202)],_0x588445={..._0x25d4aa,'mutations':_0x4355a1};this[_0x9e14ac(0x3da)](),this[_0x9e14ac(0x2bd)](this[_0x9e14ac(0x232)][_0x9e14ac(0x387)](_0x588445)),this[_0x9e14ac(0x19f)]();}['_onRemoteACK'](_0x286278){const _0x1710cf=_0x5c9f94;this[_0x1710cf(0x3da)](),this['_updateState'](this[_0x1710cf(0x232)]['onRemoteAck'](_0x286278)),this[_0x1710cf(0x19f)]();}[_0x5c9f94(0x13f)](_0x12386b){const _0x1a4bfa=_0x5c9f94;this[_0x1a4bfa(0x3da)](),this[_0x1a4bfa(0x2bd)](this[_0x1a4bfa(0x232)][_0x1a4bfa(0x1e6)](_0x12386b)),this['_unlockTransition']();}['_onRemoteRetry'](_0x5d0b59){const _0x3e81b2=_0x5c9f94;this['_lockTransition'](),this['_updateState'](this['_state'][_0x3e81b2(0x3c1)](_0x5d0b59)),this[_0x3e81b2(0x19f)]();}[_0x5c9f94(0x39b)](_0x5c6bc7){const _0x4878ba=_0x5c9f94;if(!(this[_0x4878ba(0x232)]instanceof Q))throw TypeError(_0x4878ba(0x276));let _0x4acff1=_0x5c6bc7[_0x4878ba(0x375)](_0x559da9=>{const _0x390b7b=_0x4878ba;let _0x30cd4f=this[_0x390b7b(0x21c)]['interceptor'][_0x390b7b(0x15e)](this['_compressMutationService'][_0x390b7b(0x392)]['getInterceptPoints']()[_0x390b7b(0x38f)])(_0x559da9[_0x390b7b(0x202)],null)||_0x559da9[_0x390b7b(0x202)];return{..._0x559da9,'mutations':_0x30cd4f};});this[_0x4878ba(0x3da)](),this[_0x4878ba(0x2bd)](this['_state']['onMissedChangesetFetched'](_0x4acff1)),this[_0x4878ba(0x19f)]();}[_0x5c9f94(0x1bf)](){const _0x597f7d=_0x5c9f94;this[_0x597f7d(0x3da)](),this[_0x597f7d(0x2bd)](this[_0x597f7d(0x232)][_0x597f7d(0x3aa)]()),this[_0x597f7d(0x19f)]();}[_0x5c9f94(0x393)](_0x3e148f=!0x1){const _0x23f9eb=_0x5c9f94;this[_0x23f9eb(0x3da)](),this['_updateState'](this[_0x23f9eb(0x232)][_0x23f9eb(0x281)]()),this['_unlockTransition']();let _0x2c7d02=this[_0x23f9eb(0x232)];_0x3e148f&&_0x2c7d02 instanceof K&&(this['_lockTransition'](),this[_0x23f9eb(0x2bd)](_0x2c7d02[_0x23f9eb(0x231)]()),this[_0x23f9eb(0x19f)]());}async['_createInitialState'](){return new Promise(_0x182ae7=>{const _0x2c6537=_0x4bc2;this['session'][_0x2c6537(0x225)][_0x2c6537(0x270)](_0xc0564d(0x1))[_0x2c6537(0x168)](async _0x2e2f16=>{const _0x413191=_0x2c6537;_0x182ae7(await this[_0x413191(0x27d)](_0x2e2f16===0x3));});});}['_createHandler'](){const _0x2d1875=_0x5c9f94;let _0x10e04d=this[_0x2d1875(0x24c)];return{'onStateChange':(_0x5ac38b,_0x380239)=>{const _0xba694e=_0x2d1875;if(_0x5ac38b!==this[_0xba694e(0x232)])throw Error(_0xba694e(0x1bc)+_0x5ac38b[_0xba694e(0x1a0)]+'\x0aAfter:\x20'+_0x380239['status']+'\x0aCurrent:\x20'+this[_0xba694e(0x232)][_0xba694e(0x1a0)]);this[_0xba694e(0x2bd)](_0x380239);},'onSendChangeset':_0x17cffe=>{const _0x5bb126=_0x2d1875;_0x17cffe[_0x5bb126(0x282)]||(_0x17cffe[_0x5bb126(0x282)]=this[_0x5bb126(0x2fa)],_0x17cffe['reqId']=++this[_0x5bb126(0x355)]);let _0x399209={'eventID':_0x538b71['SUBMIT_CHANGESET'],'data':{'unitID':_0x17cffe['unitID'],'unitType':this[_0x5bb126(0x213)],'changeset':_0x17cffe,'memberID':this['session'][_0x5bb126(0x395)]()}};this[_0x5bb126(0x3c5)]['send'](_0x399209,this[_0x5bb126(0x24c)]);},'onMissingChangesets':({from:_0x27be33,to:_0x458e02})=>{const _0x290fc3=_0x2d1875;this['_logService'][_0x290fc3(0x1aa)](_0x290fc3(0x32e),_0x290fc3(0x306)+_0x27be33+_0x290fc3(0x223)+_0x458e02);let _0x363f6b={'eventID':_0x538b71['FETCH_MISSING'],'data':{'unitID':_0x10e04d,'unitType':this[_0x290fc3(0x213)],'from':_0x27be33,'to':_0x458e02}};this[_0x290fc3(0x3c5)]['send'](_0x363f6b,this[_0x290fc3(0x24c)]);}};}async['_createInitialStateImpl'](_0x3c1086){const _0xbf2dc0=_0x5c9f94;var _0x1429e2;let _0x251186=await((_0x1429e2=this[_0xbf2dc0(0x255)])==null?void 0x0:_0x1429e2[_0xbf2dc0(0x179)](this['unitID'])),_0x2c534f=(_0x251186==null?void 0x0:_0x251186['mutations'])??[],_0x58fbff=(_0x251186==null?void 0x0:_0x251186['awaitingChangeset'])??null,_0x29c0bd=!!(_0x58fbff!=null&&_0x58fbff[_0xbf2dc0(0x282)])&&!!(_0x58fbff!=null&&_0x58fbff[_0xbf2dc0(0x1f8)]);this[_0xbf2dc0(0x2fa)]=_0x29c0bd?_0x58fbff['sid']:_0x209d6d(),this[_0xbf2dc0(0x355)]=_0x29c0bd?_0x58fbff[_0xbf2dc0(0x1f8)]:0x0;let _0x51931e=this[_0xbf2dc0(0x24c)];try{this[_0xbf2dc0(0x30b)](_0x58fbff,_0x2c534f);}catch(_0x38f38e){this['_logService'][_0xbf2dc0(0x2dc)](_0x38f38e);}let _0x2ed716=this[_0xbf2dc0(0x2f6)]();if(_0x3c1086){let _0x436a2b=bn(this[_0xbf2dc0(0x3eb)],_0x51931e,this[_0xbf2dc0(0x213)],_0x58fbff,_0x2c534f,_0x2ed716);return _0x436a2b instanceof q?_0x436a2b[_0xbf2dc0(0x3ee)]():(_0x436a2b instanceof Y||_0x436a2b instanceof J)&&_0x436a2b['resend'](),_0x436a2b;}return this[_0xbf2dc0(0x3eb)][_0xbf2dc0(0x2c8)](Z,_0x51931e,this[_0xbf2dc0(0x213)],_0x58fbff,_0x2c534f,_0x2ed716);}['_replayCachedMutations'](_0x3aeebf,_0x1f13b7){const _0x4405ab=_0x5c9f94;var _0x41d0bf,_0x480ce8;let _0x713f64=this[_0x4405ab(0x21c)][_0x4405ab(0x392)][_0x4405ab(0x15e)](this[_0x4405ab(0x21c)][_0x4405ab(0x392)][_0x4405ab(0x2f2)]()[_0x4405ab(0x38f)]);(_0x41d0bf=_0x713f64((_0x3aeebf==null?void 0x0:_0x3aeebf['mutations'])||[],null))==null||_0x41d0bf[_0x4405ab(0x2de)](_0x339ddc=>this[_0x4405ab(0x2a7)][_0x4405ab(0x36c)](_0x339ddc['id'],_0x339ddc['params'])),(_0x480ce8=_0x713f64(_0x1f13b7||[],null))==null||_0x480ce8[_0x4405ab(0x2de)](_0x577478=>this[_0x4405ab(0x2a7)][_0x4405ab(0x36c)](_0x577478['id'],_0x577478[_0x4405ab(0x1a4)]));}};$=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],$);let xn=class extends ${constructor(_0x79363f,_0x1c170f,_0x551504,_0x1620de,_0x3b443b,_0x4f5b01,_0x5e22a5,_0x13f704,_0x41ed0b,_0x16c42c,_0x16198e,_0x55ed1b,_0x1fbfc8,_0x3962f3,_0x2df605){const _0x65d9ab=_0x5c9f94;super(_0x79363f,_0x551504,_0x1c170f,_0x1620de,_0x3b443b,_0x4f5b01,_0x5e22a5,_0x13f704,_0x41ed0b,_0x16c42c,_0x16198e,_0x55ed1b,_0x3962f3,_0x2df605),this[_0x65d9ab(0x24c)]=_0x79363f,this[_0x65d9ab(0x34b)]=_0x1c170f,this['_docStateChangeManagerService']=_0x1fbfc8,z(this,'_handlerCallback',null);}[_0x5c9f94(0x2bf)](_0x1ba105){const _0x4347b4=_0x5c9f94;this[_0x4347b4(0x2a4)]=_0x1ba105;}[_0x5c9f94(0x316)](){const _0x2e171b=_0x5c9f94;this[_0x2e171b(0x2a4)]=null,super[_0x2e171b(0x316)]();}[_0x5c9f94(0x2f6)](){const _0x3ad0b8=_0x5c9f94;let _0x49f336=super['_createHandler']();return _0x49f336['onTransformIME']=_0x3d7aa0=>{const _0x2d552b=_0x4bc2;var _0x3b7e65,_0x397c21;return(_0x3b7e65=this['_handlerCallback'])==null||(_0x397c21=_0x3b7e65[_0x2d552b(0x20c)])==null?void 0x0:_0x397c21[_0x2d552b(0x23e)](_0x3b7e65,_0x3d7aa0);},_0x49f336[_0x3ad0b8(0x14b)]=_0x42c86c=>{const _0x135aa5=_0x3ad0b8;var _0x545715,_0x5d36e9;return(_0x545715=this[_0x135aa5(0x2a4)])==null||(_0x5d36e9=_0x545715[_0x135aa5(0x14b)])==null?void 0x0:_0x5d36e9['call'](_0x545715,_0x42c86c);},_0x49f336['onPrepareTransformSelections']=_0x152545=>{const _0x1255b0=_0x3ad0b8;var _0x348f5c,_0x28a044;return((_0x348f5c=this[_0x1255b0(0x2a4)])==null||(_0x28a044=_0x348f5c[_0x1255b0(0x3ab)])==null?void 0x0:_0x28a044['call'](_0x348f5c,_0x152545))??null;},_0x49f336[_0x3ad0b8(0x252)]=_0xa6d9bb=>{const _0x286dcf=_0x3ad0b8;var _0x21698f,_0x18182;return(_0x21698f=this[_0x286dcf(0x2a4)])==null||(_0x18182=_0x21698f[_0x286dcf(0x252)])==null?void 0x0:_0x18182['call'](_0x21698f,_0xa6d9bb);},_0x49f336[_0x3ad0b8(0x371)]=_0x181198=>{const _0x57f622=_0x3ad0b8;var _0x1be166,_0x451678;return(_0x1be166=this[_0x57f622(0x2a4)])==null||(_0x451678=_0x1be166['onSyncEditingCollabCursor'])==null?void 0x0:_0x451678[_0x57f622(0x23e)](_0x1be166,_0x181198);},_0x49f336['onTransformRemoteChangesetByIMECache']=_0x2c54e4=>{const _0x2d54b8=_0x3ad0b8;var _0x4e121b,_0x1ca125;return((_0x4e121b=this['_handlerCallback'])==null||(_0x1ca125=_0x4e121b['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1ca125[_0x2d54b8(0x23e)](_0x4e121b,_0x2c54e4))??_0x2c54e4;},_0x49f336[_0x3ad0b8(0x176)]=_0x4afd8d=>{const _0x102175=_0x3ad0b8;var _0x2dd709,_0x2eff87;return((_0x2dd709=this[_0x102175(0x2a4)])==null||(_0x2eff87=_0x2dd709['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x2eff87[_0x102175(0x23e)](_0x2dd709,_0x4afd8d))??_0x4afd8d;},_0x49f336;}async[_0x5c9f94(0x215)](){const _0x4a590e=_0x5c9f94;let _0x322bf5=await super[_0x4a590e(0x215)]();return this[_0x4a590e(0x189)](this[_0x4a590e(0x14a)][_0x4a590e(0x38c)]['subscribe'](_0x4adb5c=>{const _0x2524e9=_0x4a590e;if(_0x4adb5c==null||_0x4adb5c['unitId']!==this[_0x2524e9(0x24c)])return;let {commandId:_0x3b284e,redoState:_0x2de64d,unitId:_0x2169af}=_0x4adb5c,_0x12e63f={'id':_0x3b284e,'type':_0x4a7495[_0x2524e9(0x2b0)],'params':{'unitId':_0x2169af,'actions':_0x2de64d[_0x2524e9(0x37e)],'textRanges':null}};this['_onLocalMutation'](_0x12e63f);})),this['disposeWithMe'](this[_0x4a590e(0x2a7)][_0x4a590e(0x210)]((_0x10f509,_0x5888a4)=>{const _0x1c58a5=_0x4a590e;if(_0x10f509[_0x1c58a5(0x34b)]!==_0x4a7495[_0x1c58a5(0x2b0)]||_0x5888a4!=null&&_0x5888a4['fromCollab']||_0x5888a4!=null&&_0x5888a4['onlyLocal']||_0x10f509['id']===_0x5b44a5['id'])return;let _0x1bb7eb=_0x10f509[_0x1c58a5(0x1a4)];if((_0x1bb7eb==null?void 0x0:_0x1bb7eb[_0x1c58a5(0x13c)])!==this[_0x1c58a5(0x24c)])return;let _0x12e0c1=_0x10f509,_0x2a956e=this[_0x1c58a5(0x21c)]['interceptor'][_0x1c58a5(0x15e)](this[_0x1c58a5(0x21c)][_0x1c58a5(0x392)][_0x1c58a5(0x2f2)]()['COMPRESS_MUTATION_SEND'])([_0x12e0c1],this['_univerInstanceService'])||[_0x12e0c1];this[_0x1c58a5(0x311)](_0x2a956e[0x0]);})),_0x322bf5;}};xn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0xcf8d3f(_0xb48de9)),V(0xd,_0x1da68f(W)),V(0xe,_0x1da68f(U))],xn);let Sn=class extends ${constructor(_0x5639cf,_0xa8388c,_0x1170bd,_0x3abcd6,_0x2e3f7e,_0x10374a,_0x27fa53,_0x51c3c6,_0x4fceb4,_0x5b7cc6,_0x5c25a2,_0x29361e,_0x3a3a71,_0x4ea8fb){const _0x2a354c=_0x5c9f94;super(_0x5639cf,_0x1170bd,_0xa8388c,_0x3abcd6,_0x2e3f7e,_0x10374a,_0x27fa53,_0x51c3c6,_0x4fceb4,_0x5b7cc6,_0x5c25a2,_0x29361e,_0x3a3a71,_0x4ea8fb),this[_0x2a354c(0x24c)]=_0x5639cf,this[_0x2a354c(0x34b)]=_0xa8388c;}async[_0x5c9f94(0x215)](){const _0x5c50ae=_0x5c9f94;let _0x4f53d7=await super[_0x5c50ae(0x215)]();return this[_0x5c50ae(0x189)](this[_0x5c50ae(0x2a7)][_0x5c50ae(0x210)]((_0x2f4e3f,_0x543ba8)=>{const _0x5a4c67=_0x5c50ae;if(_0x2f4e3f[_0x5a4c67(0x34b)]!==_0x4a7495[_0x5a4c67(0x2b0)]||_0x543ba8!=null&&_0x543ba8['fromCollab']||_0x543ba8!=null&&_0x543ba8[_0x5a4c67(0x3be)])return;let _0x4c6b96=_0x2f4e3f[_0x5a4c67(0x1a4)];if((_0x4c6b96==null?void 0x0:_0x4c6b96[_0x5a4c67(0x13c)])!==this[_0x5a4c67(0x24c)])return;let _0xdabd59=_0x2f4e3f,_0x3df09d=this[_0x5a4c67(0x21c)]['interceptor'][_0x5a4c67(0x15e)](this[_0x5a4c67(0x21c)][_0x5a4c67(0x392)][_0x5a4c67(0x2f2)]()['COMPRESS_MUTATION_SEND'])([_0xdabd59],this[_0x5a4c67(0x28a)])||[_0xdabd59];this[_0x5a4c67(0x311)](_0x3df09d[0x0]);})),_0x4f53d7;}};Sn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],Sn);let Cn=class extends ${constructor(_0x891fb0,_0xb7da1a,_0x416e6a,_0x540ce5,_0x488475,_0x121055,_0x514aa4,_0x5b32f9,_0x1e3649,_0xe9aeb8,_0x3f367e,_0x10e1b7,_0x461f56,_0xa392c0,_0x324c7e){const _0x537f21=_0x5c9f94;super(_0x891fb0,_0x416e6a,_0xb7da1a,_0x540ce5,_0x488475,_0x121055,_0x514aa4,_0x1e3649,_0xe9aeb8,_0x3f367e,_0x10e1b7,_0x461f56,_0xa392c0,_0x324c7e),this[_0x537f21(0x24c)]=_0x891fb0,this[_0x537f21(0x34b)]=_0xb7da1a,this[_0x537f21(0x327)]=_0x5b32f9;}['_createHandler'](){const _0x71ac90=_0x5c9f94;let _0x36adcf=super[_0x71ac90(0x2f6)]();return _0x36adcf[_0x71ac90(0x252)]=_0x125b09=>this['_sheetTransformSelectionsService'][_0x71ac90(0x3af)](_0x125b09),_0x36adcf;}async[_0x5c9f94(0x215)](){const _0x2dc6fa=_0x5c9f94;let _0x9769f3=await super[_0x2dc6fa(0x215)]();return this['disposeWithMe'](this['_commandService'][_0x2dc6fa(0x210)]((_0x239dda,_0x1ba7c2)=>{const _0x334944=_0x2dc6fa;if(_0x239dda[_0x334944(0x34b)]!==_0x4a7495[_0x334944(0x2b0)]||_0x1ba7c2!=null&&_0x1ba7c2[_0x334944(0x1ec)]||_0x1ba7c2!=null&&_0x1ba7c2[_0x334944(0x3be)])return;let _0x46a47b=_0x239dda[_0x334944(0x1a4)];if((_0x46a47b==null?void 0x0:_0x46a47b['unitId'])!==this['unitID'])return;let _0x1a928b=_0x239dda,_0x3b9929=this[_0x334944(0x21c)]['interceptor'][_0x334944(0x15e)](this['_compressMutationService'][_0x334944(0x392)][_0x334944(0x2f2)]()[_0x334944(0x3e6)])([_0x1a928b],this[_0x334944(0x28a)])||[_0x1a928b];this[_0x334944(0x311)](_0x3b9929[0x0]);})),_0x9769f3;}};Cn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(Jt)),V(0x8,_0xcf8d3f(B)),V(0x9,_0x4c5cd7),V(0xa,_0x3981ee),V(0xb,_0x397ef7),V(0xc,_0x30415d),V(0xd,_0x1da68f(W)),V(0xe,_0x1da68f(U))],Cn);let wn=class extends ${constructor(_0x530d9b,_0xc80387,_0x34a80c,_0x3490ce,_0x218dc3,_0x2d123a,_0x48772a,_0x753dac,_0x2cda8c,_0x5bf3ca,_0x431468,_0x2da05b,_0x29e4b7,_0x390b4c){const _0x446686=_0x5c9f94;super(_0x530d9b,_0x34a80c,_0xc80387,_0x3490ce,_0x218dc3,_0x2d123a,_0x48772a,_0x753dac,_0x2cda8c,_0x5bf3ca,_0x431468,_0x2da05b,_0x29e4b7,_0x390b4c),this[_0x446686(0x24c)]=_0x530d9b,this[_0x446686(0x34b)]=_0xc80387;}async[_0x5c9f94(0x215)](){const _0x1d49b1=_0x5c9f94;let _0x2a5907=await super[_0x1d49b1(0x215)]();return this['disposeWithMe'](this[_0x1d49b1(0x2a7)][_0x1d49b1(0x210)]((_0x2f51be,_0x5dc794)=>{const _0x49bbf7=_0x1d49b1;if(_0x2f51be[_0x49bbf7(0x34b)]!==_0x4a7495[_0x49bbf7(0x2b0)]||_0x5dc794!=null&&_0x5dc794['fromCollab']||_0x5dc794!=null&&_0x5dc794['onlyLocal'])return;let _0x55b506=_0x2f51be[_0x49bbf7(0x1a4)];if((_0x55b506==null?void 0x0:_0x55b506[_0x49bbf7(0x13c)])!==this[_0x49bbf7(0x24c)])return;let _0x498a99=_0x2f51be,_0x22691c=this[_0x49bbf7(0x21c)][_0x49bbf7(0x392)][_0x49bbf7(0x15e)](this[_0x49bbf7(0x21c)][_0x49bbf7(0x392)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x498a99],this[_0x49bbf7(0x28a)])||[_0x498a99];this['_onLocalMutation'](_0x22691c[0x0]);})),_0x2a5907;}};wn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],wn);let Tn=class extends ${constructor(_0x1162b2,_0x15fba6,_0x265b9a,_0x229e0b,_0x11f13a,_0x21f94,_0x10eb99,_0x50d6ba,_0x44157a,_0x194c96,_0x48a2f9,_0x22922d,_0x49bba3,_0x15634b){super(_0x1162b2,_0x265b9a,_0x15fba6,_0x229e0b,_0x11f13a,_0x21f94,_0x10eb99,_0x50d6ba,_0x44157a,_0x194c96,_0x48a2f9,_0x22922d,_0x49bba3,_0x15634b),this['unitID']=_0x1162b2,this['type']=_0x15fba6;}async[_0x5c9f94(0x215)](){const _0xa7a9c0=_0x5c9f94;let _0x3bb5b5=await super[_0xa7a9c0(0x215)]();return this[_0xa7a9c0(0x189)](this[_0xa7a9c0(0x2a7)][_0xa7a9c0(0x210)]((_0x1092d7,_0x3fbeac)=>{const _0x59e940=_0xa7a9c0;if(_0x1092d7[_0x59e940(0x34b)]!==_0x4a7495[_0x59e940(0x2b0)]||_0x3fbeac!=null&&_0x3fbeac[_0x59e940(0x1ec)]||_0x3fbeac!=null&&_0x3fbeac[_0x59e940(0x3be)])return;let _0x495357=_0x1092d7['params'];if((_0x495357==null?void 0x0:_0x495357[_0x59e940(0x13c)])!==this[_0x59e940(0x24c)])return;let _0x4785da=_0x1092d7,_0x264e02=this[_0x59e940(0x21c)][_0x59e940(0x392)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x59e940(0x392)][_0x59e940(0x2f2)]()[_0x59e940(0x3e6)])([_0x4785da],this[_0x59e940(0x28a)])||[_0x4785da];this[_0x59e940(0x311)](_0x264e02[0x0]);})),_0x3bb5b5;}};Tn=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],Tn);let En=class extends ${constructor(_0x51ee6a,_0x252d1a,_0x4d2f29,_0x57062f,_0xb6ecb8,_0x50061b,_0x4982ab,_0x5d88d1,_0x2f90c2,_0xacc948,_0x1eb99e,_0x1994ad,_0x50750f,_0x3c86aa){super(_0x51ee6a,_0x4d2f29,_0x252d1a,_0x57062f,_0xb6ecb8,_0x50061b,_0x4982ab,_0x5d88d1,_0x2f90c2,_0xacc948,_0x1eb99e,_0x1994ad,_0x50750f,_0x3c86aa),this['unitID']=_0x51ee6a,this['type']=_0x252d1a;}async['_init'](){const _0x40a288=_0x5c9f94;let _0x2f4bca=await super[_0x40a288(0x215)]();return this[_0x40a288(0x189)](this[_0x40a288(0x2a7)][_0x40a288(0x210)]((_0x4e15f6,_0x4728f8)=>{const _0x1b8899=_0x40a288;if(_0x4e15f6[_0x1b8899(0x34b)]!==_0x4a7495['MUTATION']||_0x4728f8!=null&&_0x4728f8[_0x1b8899(0x1ec)]||_0x4728f8!=null&&_0x4728f8['onlyLocal'])return;let _0xfda770=_0x4e15f6['params'];if((_0xfda770==null?void 0x0:_0xfda770[_0x1b8899(0x13c)])!==this[_0x1b8899(0x24c)])return;let _0x32f618=_0x4e15f6,_0x47844a=this[_0x1b8899(0x21c)]['interceptor']['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x1b8899(0x2f2)]()[_0x1b8899(0x3e6)])([_0x32f618],this[_0x1b8899(0x28a)])||[_0x32f618];this[_0x1b8899(0x311)](_0x47844a[0x0]);})),_0x2f4bca;}};En=H([V(0x3,_0xcf8d3f(_0x19ff28)),V(0x4,_0xcf8d3f(_0x2162d4)),V(0x5,_0xcf8d3f(_0x5c6337)),V(0x6,_0xcf8d3f(_0x9b85a2)),V(0x7,_0xcf8d3f(B)),V(0x8,_0x4c5cd7),V(0x9,_0x3981ee),V(0xa,_0x397ef7),V(0xb,_0x30415d),V(0xc,_0x1da68f(W)),V(0xd,_0x1da68f(U))],En);const Dn=_0x1db16f(_0x5c9f94(0x3f0));function On(_0x5d8288){const _0xdf38a5=_0x5c9f94;let _0x1defda=_0x5d8288[_0xdf38a5(0x3cf)],_0x2b8fac=JSON['parse'](_0x1defda);switch(_0x2b8fac['cmd']){case _0xcb980a[_0xdf38a5(0x337)]:case _0xcb980a[_0xdf38a5(0x3a5)]:{let _0x3b6817=_0x2b8fac[_0xdf38a5(0x3cb)];return{..._0x2b8fac,'data':_0x3b6817,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};}case _0xcb980a[_0xdf38a5(0x164)]:{let _0x3878ac=_0x2b8fac['joinRsp'];return{..._0x2b8fac,'data':_0x3878ac,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};}case _0xcb980a[_0xdf38a5(0x180)]:{let _0x483660=_0x2b8fac[_0xdf38a5(0x14c)];switch(_0x483660[_0xdf38a5(0x198)]){case _0x538b71[_0xdf38a5(0x22e)]:var _0x3bda6e;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x3bda6e=_0x483660[_0xdf38a5(0x294)])==null?void 0x0:_0x3bda6e['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['CHANGESET_ACK']:var _0xa9c48d;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0xa9c48d=_0x483660[_0xdf38a5(0x13a)])==null?void 0x0:_0xa9c48d['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['NEW_CHANGESETS']:var _0x3b1052;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x3b1052=_0x483660[_0xdf38a5(0x263)])==null?void 0x0:_0x3b1052['cs']},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x22c)]:var _0x2cd97d;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x2cd97d=_0x483660[_0xdf38a5(0x2fe)])==null?void 0x0:_0x2cd97d['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x24e)]:var _0x1b95d8;return{..._0x2b8fac,'data':{..._0x483660,'data':(_0x1b95d8=_0x483660[_0xdf38a5(0x24a)])==null?void 0x0:_0x1b95d8['cs']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x251)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x178)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['USERS_ENTER']:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x1df)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['USERS_LEAVE']:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['leaveEvent']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x1f7)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x182)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71['LIVESHARE_FETCH_OPERATIONS']:case _0x538b71[_0xdf38a5(0x33c)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x17a)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x307)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x182)]},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x145)]:return{..._0x2b8fac,'data':_0x483660,'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x286)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x289)]},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x18a)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['updatePermissionObjEvent']},'cmd':_0x2b8fac['cmd']};case _0x538b71[_0xdf38a5(0x20d)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660[_0xdf38a5(0x332)]},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};case _0x538b71[_0xdf38a5(0x1bd)]:return{..._0x2b8fac,'data':{..._0x483660,'data':_0x483660['uniscriptRunEvent']},'cmd':_0x2b8fac[_0xdf38a5(0x14d)]};default:return _0x2b8fac;}}default:return _0x2b8fac;}}function kn(_0x4efe3f){const _0x497068=_0x5c9f94;switch(_0x4efe3f[_0x497068(0x14d)]){case _0xcb980a['HEARTBEAT']:case _0xcb980a[_0x497068(0x3a5)]:return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f[_0x497068(0x14d)],'routeKey':_0x4efe3f[_0x497068(0x3f2)]});case _0xcb980a[_0x497068(0x3ba)]:{let _0xe24cea;switch(_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x198)]){case _0x538b71[_0x497068(0x251)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x251)],'updateCursorEvent':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x298)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x298)],'leaveEvent':_0x4efe3f['data'][_0x497068(0x3cf)]};break;case _0x538b71['USERS_ENTER']:_0xe24cea={'eventID':_0x538b71[_0x497068(0x38e)],'joinEvent':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x1f7)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x1f7)],'liveShareNewHost':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71['LIVESHARE_OPERATION']:_0xe24cea={'eventID':_0x538b71['LIVESHARE_OPERATION'],'liveShareOperation':_0x4efe3f[_0x497068(0x3cf)]['data']};break;case _0x538b71[_0x497068(0x307)]:_0xe24cea={'eventID':_0x538b71['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x348)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x348)],'liveShareRequestHost':_0x4efe3f['data'][_0x497068(0x3cf)]};break;case _0x538b71[_0x497068(0x14e)]:_0xe24cea={'eventID':_0x538b71[_0x497068(0x14e)]};break;default:_0xe24cea={'eventID':_0x4efe3f[_0x497068(0x3cf)][_0x497068(0x198)]};}return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f['cmd'],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'collaMsg':_0xe24cea});}case _0xcb980a[_0x497068(0x164)]:return JSON[_0x497068(0x2d6)]({'cmd':_0x4efe3f['cmd'],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'joinReq':_0x4efe3f[_0x497068(0x3cf)]});case _0xcb980a[_0x497068(0x17c)]:return JSON['stringify']({'cmd':_0x4efe3f[_0x497068(0x14d)],'routeKey':_0x4efe3f[_0x497068(0x3f2)],'leaveReq':_0x4efe3f[_0x497068(0x3cf)]});default:throw Error(_0x497068(0x34d));}}const An=_0x1db16f(_0x5c9f94(0x21a));function jn(_0x2b7dc1,_0x335c19,_0x40d67d){const _0x1ed0dd=_0x5c9f94;return _0x2b7dc1+'/'+_0x335c19+_0x1ed0dd(0x2d4)+_0x40d67d+_0x1ed0dd(0x17b);}let Mn=class extends _0x588e84{constructor(_0x236c84,_0xab110b,_0x4287f8,_0x11c6a3,_0x290575){const _0x521c4c=_0x5c9f94;super(),this[_0x521c4c(0x3eb)]=_0x236c84,this[_0x521c4c(0x379)]=_0xab110b,this[_0x521c4c(0x323)]=_0x4287f8,this[_0x521c4c(0x26a)]=_0x11c6a3,this[_0x521c4c(0x2e8)]=_0x290575;}[_0x5c9f94(0x275)](_0x3f5677){const _0x834ee4=_0x5c9f94;let _0x36b431=this['_injector'][_0x834ee4(0x160)](_0x17aa40);if(!_0x36b431)throw Error(_0x834ee4(0x22f));let _0x4c8256=_0x36b431[_0x834ee4(0x300)](_0x3f5677);if(!_0x4c8256)throw Error(_0x834ee4(0x199));let _0x105db0=new _0x21b987(),_0x27c1e1=new _0x4e03af();_0x105db0[_0x834ee4(0x287)](_0x4c8256[_0x834ee4(0x1ed)][_0x834ee4(0x168)](_0x5c6a2a=>_0x27c1e1['next'](_0x5c6a2a))),_0x105db0[_0x834ee4(0x287)](_0x2b94ed(()=>_0x27c1e1['complete']()));let _0x3955c1=new _0x4e03af();_0x105db0[_0x834ee4(0x287)](_0x4c8256[_0x834ee4(0x183)][_0x834ee4(0x168)](_0x1426a4=>_0x3955c1[_0x834ee4(0x3b1)](_0x1426a4))),_0x105db0['add'](_0x2b94ed(()=>_0x3955c1[_0x834ee4(0x31a)]()));let _0x24d7ba=new _0x4e03af();_0x105db0['add'](_0x4c8256[_0x834ee4(0x366)][_0x834ee4(0x168)](_0x1bd997=>{let _0x41e55b=On(_0x1bd997);_0x24d7ba['next'](_0x41e55b);})),_0x105db0['add'](_0x2b94ed(()=>_0x24d7ba[_0x834ee4(0x31a)]()));let _0x51f866,_0x6f45e3=()=>{const _0x29730f=_0x834ee4;_0x3955c1[_0x29730f(0x3b1)](new Event(_0x29730f(0x326))),_0x27c1e1[_0x29730f(0x3b1)](new Event(_0x29730f(0x326))),_0x51f866[_0x29730f(0x17d)]();};return _0x51f866={'memberID':'','close$':_0x27c1e1[_0x834ee4(0x190)](),'error$':_0x3955c1[_0x834ee4(0x190)](),'open$':_0x4c8256[_0x834ee4(0x1f1)],'message$':_0x24d7ba['asObservable'](),'send':_0x549db6=>{const _0x2249cd=_0x834ee4;if(_0x549db6[_0x2249cd(0x14d)]===_0xcb980a['INGEST']){if(_0x549db6[_0x2249cd(0x3cf)][_0x2249cd(0x198)]===_0x538b71[_0x2249cd(0x2c5)]){this[_0x2249cd(0x1d9)](_0x51f866,_0x549db6['data'])['catch'](_0x18a914=>{const _0x38a7c6=_0x2249cd;this[_0x38a7c6(0x26a)][_0x38a7c6(0x2dc)](_0x18a914),_0x6f45e3();});return;}if(_0x549db6[_0x2249cd(0x3cf)][_0x2249cd(0x198)]===_0x538b71[_0x2249cd(0x25a)]){let _0x5489b9=_0x549db6[_0x2249cd(0x3cf)];this[_0x2249cd(0x17f)](_0x5489b9)['then'](_0x508aed=>{const _0x2dde13=_0x2249cd;_0x24d7ba[_0x2dde13(0x3b1)]({'cmd':_0xcb980a[_0x2dde13(0x180)],'code':_0x3c0867['OK'],'routeKey':_0x5489b9['data']['unitID'],'routeType':'','data':{'eventID':_0x538b71[_0x2dde13(0x378)],'data':{'changesets':_0x508aed}}});})[_0x2249cd(0x3e1)](_0x1b6db1=>{const _0x309338=_0x2249cd;this[_0x309338(0x26a)][_0x309338(0x2dc)](_0x1b6db1),_0x6f45e3();});return;}}_0x4c8256['send'](kn(_0x549db6));},'close':()=>{const _0x21f517=_0x834ee4;_0x4c8256[_0x21f517(0x17d)](),_0x105db0[_0x21f517(0x316)]();}},_0x51f866;}async[_0x5c9f94(0x1d9)](_0x5982d0,_0x197f23){const _0x1040a1=_0x5c9f94;let {unitType:_0x2c73fd,unitID:_0x310564,changeset:_0x121897}=_0x197f23[_0x1040a1(0x3cf)],_0x4c1520={'unitID':_0x310564,'memberID':_0x5982d0[_0x1040a1(0x331)],'type':_0x2c73fd,'changeset':_0x3e125d(_0x121897)},_0x393b82=this[_0x1040a1(0x323)][_0x1040a1(0x1a1)](R),_0x155648=jn((_0x393b82==null?void 0x0:_0x393b82['collabSubmitChangesetUrl'])??_0x1040a1(0x2b7),_0x2c73fd,_0x310564);try{await this[_0x1040a1(0x379)][_0x1040a1(0x320)](_0x155648,{'body':_0x4c1520});}catch(_0x4e37de){throw this['_logService'][_0x1040a1(0x2dc)](_0x1040a1(0x177),_0x1040a1(0x30f)),_0x4e37de;}}async['_fetchMissChangesets'](_0x30d927){const _0x16011c=_0x5c9f94;let {unitID:_0x32864d,from:_0x34ba2e,to:_0x4fa12e,unitType:_0x535a6b}=_0x30d927[_0x16011c(0x3cf)];return(await this[_0x16011c(0x2e8)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x32864d,'type':_0x535a6b,'from':_0x34ba2e,'to':_0x4fa12e}))[_0x16011c(0x329)][_0x16011c(0x375)](_0x3b5e16=>((_0x3b5e16[_0x16011c(0x202)]===null||_0x3b5e16[_0x16011c(0x202)]===void 0x0)&&(_0x3b5e16[_0x16011c(0x202)]=[]),_0x3b5e16));}};Mn=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0xcf8d3f(_0x145224)),V(0x2,_0xf41dc9),V(0x3,_0x3981ee),V(0x4,_0x1425c0)],Mn);const Nn=_0x1db16f('univer-pro.collaboration-client-adapter-service');function Pn(_0x487df4={}){const _0x3c6859=_0x5c9f94;return _0x487df4['resolveUnit']?{'resolveUnit':_0x487df4[_0x3c6859(0x39a)]}:{'resolveUnit':_0xc394e5=>({'target':{'unitId':_0xc394e5[_0x3c6859(0x13c)],'unitType':_0xc394e5[_0x3c6859(0x2fb)]}})};}function Fn(_0x434fdb,_0x44fa1a,_0x100620){const _0x553d06=_0x5c9f94;let _0x49b47a=_0x100620['target']['endpoint'];if(_0x49b47a!=null&&_0x49b47a['trim']()==='')throw Error(_0x553d06(0x1e0));if(!_0x100620['target'][_0x553d06(0x13c)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x434fdb,'unitType':_0x44fa1a,'target':{'endpoint':_0x49b47a,'unitId':_0x100620['target'][_0x553d06(0x13c)],'unitType':_0x100620[_0x553d06(0x141)][_0x553d06(0x2fb)]??_0x44fa1a},'changeset':_0x100620['changeset']};}let In=class extends _0x588e84{constructor(_0x8aa0f6,_0x146292,_0x59cc3d,_0x5c1b84,_0x5e490e,_0x1d2c50,_0x501ef1){const _0x4f2734=_0x5c9f94;super(),this[_0x4f2734(0x3eb)]=_0x8aa0f6,this['_logService']=_0x146292,this[_0x4f2734(0x323)]=_0x59cc3d,this[_0x4f2734(0x162)]=_0x5c1b84,this[_0x4f2734(0x143)]=_0x5e490e,this[_0x4f2734(0x314)]=_0x1d2c50,this[_0x4f2734(0x15f)]=_0x501ef1,z(this,_0x4f2734(0x277),new Map()),z(this,'_pendingSessions',new Map()),z(this,_0x4f2734(0x321),new Map()),z(this,'_socketChannels',new Map()),z(this,'socket$',this[_0x4f2734(0x315)](void 0x0)['socket$']['asObservable']()),z(this,_0x4f2734(0x362),new _0x1946cb(0x0)),z(this,_0x4f2734(0x2a9),this['_status$'][_0x4f2734(0x190)]()),this[_0x4f2734(0x3b3)]();}[_0x5c9f94(0x3b3)](){const _0x11b615=_0x5c9f94;this[_0x11b615(0x15f)]&&this['disposeWithMe'](this[_0x11b615(0x15f)][_0x11b615(0x361)][_0x11b615(0x168)](_0x15f428=>{const _0x11ecf8=_0x11b615;_0x15f428&&this[_0x11ecf8(0x3c6)](),_0x15f428||this[_0x11ecf8(0x20b)][_0x11ecf8(0x2de)](_0x27f286=>this['_onOffline'](_0x27f286));}));}[_0x5c9f94(0x316)](){const _0x5575b1=_0x5c9f94;super[_0x5575b1(0x316)](),this[_0x5575b1(0x20b)]['forEach'](_0x2240bd=>{const _0x32b5bf=_0x5575b1;var _0x5ee37f,_0x166525;(_0x5ee37f=_0x2240bd[_0x32b5bf(0x3c0)])==null||_0x5ee37f['unsubscribe'](),_0x2240bd[_0x32b5bf(0x3c0)]=null,this[_0x32b5bf(0x343)](_0x2240bd),this[_0x32b5bf(0x2a1)](_0x2240bd),this[_0x32b5bf(0x2b1)](_0x2240bd),(_0x166525=_0x2240bd[_0x32b5bf(0x3cd)][_0x32b5bf(0x154)]())==null||_0x166525[_0x32b5bf(0x17d)](),_0x2240bd[_0x32b5bf(0x3cd)][_0x32b5bf(0x31a)]();}),this['_socketChannels'][_0x5575b1(0x19e)](),this[_0x5575b1(0x277)]['forEach'](_0x44dbcc=>_0x44dbcc[_0x5575b1(0x316)]()),this[_0x5575b1(0x277)][_0x5575b1(0x19e)](),this[_0x5575b1(0x321)][_0x5575b1(0x19e)](),this[_0x5575b1(0x362)][_0x5575b1(0x31a)]();}async['requireSession'](_0x59001a,_0x1fbb13){const _0x37dff7=_0x5c9f94;if(this[_0x37dff7(0x277)][_0x37dff7(0x3e3)](_0x59001a))return this[_0x37dff7(0x277)]['get'](_0x59001a);let _0x7e8e9d=this[_0x37dff7(0x39d)]['get'](_0x59001a);if(_0x7e8e9d)return _0x7e8e9d;let _0x41101=this[_0x37dff7(0x3de)](_0x59001a,_0x1fbb13);this[_0x37dff7(0x39d)][_0x37dff7(0x1b3)](_0x59001a,_0x41101);try{return await _0x41101;}finally{this[_0x37dff7(0x39d)][_0x37dff7(0x1e8)](_0x59001a);}}async[_0x5c9f94(0x3de)](_0x5a08be,_0x19f0dd){const _0x58c40c=_0x5c9f94;let _0x3cda54=await this[_0x58c40c(0x3a9)](_0x5a08be,_0x19f0dd),_0x2f084a=this['_getSocketChannel'](_0x3cda54[_0x58c40c(0x141)]['endpoint']);this[_0x58c40c(0x3e0)](_0x2f084a);let _0x5377c7=this[_0x58c40c(0x3eb)][_0x58c40c(0x2c8)](Gt,_0x3cda54,_0x2f084a[_0x58c40c(0x3cd)][_0x58c40c(0x190)]());return this[_0x58c40c(0x277)][_0x58c40c(0x1b3)](_0x5a08be,_0x5377c7),this['_sessionChannels']['set'](_0x5a08be,_0x2f084a[_0x58c40c(0x3ca)]),_0x5377c7;}[_0x5c9f94(0x36e)](_0x291758){const _0x4289e9=_0x5c9f94;let _0x3ee99a=this['_sessions'][_0x4289e9(0x160)](_0x291758),_0xb8fa44=this[_0x4289e9(0x321)]['get'](_0x291758);if(_0x3ee99a&&(this['_sessions'][_0x4289e9(0x1e8)](_0x291758),this[_0x4289e9(0x321)][_0x4289e9(0x1e8)](_0x291758),_0x3ee99a['close']()),_0xb8fa44&&!this[_0x4289e9(0x365)](_0xb8fa44)){var _0x2ed8fa;let _0xe6d221=this[_0x4289e9(0x20b)]['get'](_0xb8fa44);_0xe6d221==null||(_0x2ed8fa=_0xe6d221['socket$'][_0x4289e9(0x154)]())==null||_0x2ed8fa[_0x4289e9(0x17d)]();}}[_0x5c9f94(0x3c6)](){const _0x34eff7=_0x5c9f94;(this[_0x34eff7(0x20b)][_0x34eff7(0x3e5)]?[...this['_socketChannels'][_0x34eff7(0x381)]()]:[this[_0x34eff7(0x315)](void 0x0)])['forEach'](_0x513ea0=>{const _0x3286cd=_0x34eff7;_0x513ea0[_0x3286cd(0x16f)]=0x0,this[_0x3286cd(0x343)](_0x513ea0),this[_0x3286cd(0x34c)](_0x513ea0);});}[_0x5c9f94(0x343)](_0x34d293){const _0x3db616=_0x5c9f94;_0x34d293[_0x3db616(0x1d8)]!=null&&(clearTimeout(_0x34d293['retryConnectingTimer']),_0x34d293[_0x3db616(0x1d8)]=null);}async[_0x5c9f94(0x359)](_0x2b4b81){const _0x1ee1a1=_0x5c9f94;let _0x443ea4=this[_0x1ee1a1(0x323)][_0x1ee1a1(0x1a1)](R),_0x1d6524=_0x2b4b81[_0x1ee1a1(0x3e4)]??(_0x443ea4==null?void 0x0:_0x443ea4[_0x1ee1a1(0x370)])??_0x1ee1a1(0x245),_0x297886=await this['_socketService']['createSocket'](_0x1d6524);return _0x2b4b81[_0x1ee1a1(0x20a)]=_0x297886,_0x297886;}async[_0x5c9f94(0x3e0)](_0x15c0fa){const _0x4138b4=_0x5c9f94;try{let _0x4827ff=_0x15c0fa[_0x4138b4(0x3cd)]['getValue']()??_0x15c0fa[_0x4138b4(0x20a)]??await this['_createSocket'](_0x15c0fa);if(_0x4827ff){var _0x145b1b;let _0x24cdab=_0x4827ff[_0x4138b4(0x308)];_0x4827ff['send']=_0x25e7da=>(_0x25e7da[_0x4138b4(0x14d)]!==_0xcb980a[_0x4138b4(0x17c)]&&this[_0x4138b4(0x200)](_0x15c0fa),_0x24cdab[_0x4138b4(0x347)](_0x4827ff,[_0x25e7da])),(_0x145b1b=_0x15c0fa[_0x4138b4(0x3c0)])==null||_0x145b1b[_0x4138b4(0x20f)](),_0x15c0fa['socketMessageSubscription']=null,_0x15c0fa['socketMessageSubscription']=_0x4827ff[_0x4138b4(0x366)]['subscribe'](_0x29f6e7=>this[_0x4138b4(0x242)](_0x15c0fa,_0x4827ff,_0x29f6e7)),_0x4827ff['error$'][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](_0x681c4d=>this[_0x4138b4(0x26a)]['error'](_0x4138b4(0x19b),_0x681c4d)),_0x4827ff[_0x4138b4(0x1f1)][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](()=>{this['_onConnectionOpen'](_0x15c0fa,_0x4827ff);}),_0x4827ff[_0x4138b4(0x1ed)][_0x4138b4(0x270)](_0x2c8673(0x1))[_0x4138b4(0x168)](_0x147933=>{const _0x11e5d9=_0x4138b4;this['_logService'][_0x11e5d9(0x1aa)](_0x11e5d9(0x228),_0x11e5d9(0x209),_0x147933),this[_0x11e5d9(0x280)](_0x15c0fa);});}}catch(_0x5a2e6b){this['_logService'][_0x4138b4(0x2dc)](_0x5a2e6b),this['_onConnectionFailed'](_0x15c0fa);}}['_onConnectionOpen'](_0x2a7a60,_0x400883){const _0x421afe=_0x5c9f94;this[_0x421afe(0x26a)][_0x421afe(0x1aa)](_0x421afe(0x228),_0x421afe(0x2fc)),_0x400883[_0x421afe(0x308)]({'cmd':_0xcb980a[_0x421afe(0x3a5)]}),this[_0x421afe(0x200)](_0x2a7a60);}[_0x5c9f94(0x318)](_0x8694c){const _0x3ee346=_0x5c9f94;_0x8694c[_0x3ee346(0x3a1)]=!0x1,_0x8694c[_0x3ee346(0x20a)]=null,this[_0x3ee346(0x362)]['next'](0x2),_0x8694c[_0x3ee346(0x3cd)]['next'](null),this[_0x3ee346(0x2a1)](_0x8694c),this[_0x3ee346(0x2b1)](_0x8694c);}[_0x5c9f94(0x280)](_0x2a4109){const _0x32d5ea=_0x5c9f94;this[_0x32d5ea(0x318)](_0x2a4109),this[_0x32d5ea(0x365)](_0x2a4109[_0x32d5ea(0x3ca)])&&(_0x2a4109['retryCount']<(this[_0x32d5ea(0x323)][_0x32d5ea(0x1a1)](_0x32d5ea(0x15a))??0x3)?(this['_collaborationUIEventService'][_0x32d5ea(0x3a8)]({'id':_0x32d5ea(0x2c3)}),this[_0x32d5ea(0x34c)](_0x2a4109)):this['_collaborationUIEventService']['emitEvent']({'id':_0x32d5ea(0x1d7)}));}['_tryReconnect'](_0x2ca25b){const _0x2c3b42=_0x5c9f94;let _0x283a8b=_0x2ca25b[_0x2c3b42(0x16f)],_0x122556=this['_configService']['getConfig'](R),_0x4579fe=_0x283a8b===0x0?0x0:((_0x122556==null?void 0x0:_0x122556['retryConnectingInterval'])??0x4e20)*0x2**_0x283a8b;_0x2ca25b[_0x2c3b42(0x1d8)]=setTimeout(()=>{const _0x172bd0=_0x2c3b42;clearTimeout(_0x2ca25b[_0x172bd0(0x1d8)]),_0x2ca25b[_0x172bd0(0x1d8)]=null,this[_0x172bd0(0x3e0)](_0x2ca25b);},_0x4579fe),_0x2ca25b[_0x2c3b42(0x16f)]+=0x1;}async[_0x5c9f94(0x3a9)](_0x50c755,_0x30fc37){const _0x5959f9=_0x5c9f94;return Fn(_0x50c755,_0x30fc37,await this[_0x5959f9(0x314)][_0x5959f9(0x39a)]({'unitId':_0x50c755,'unitType':_0x30fc37}));}[_0x5c9f94(0x242)](_0x253622,_0x18f1e3,_0x30cb59){const _0x220fe0=_0x5c9f94;let {cmd:_0x47c608}=_0x30cb59;_0x47c608===_0xcb980a[_0x220fe0(0x3a5)]&&!_0x253622[_0x220fe0(0x3a1)]&&(_0x18f1e3[_0x220fe0(0x331)]=_0x30cb59['data']['memberID'],_0x253622[_0x220fe0(0x16f)]=0x0,_0x253622['socket$']['next'](_0x18f1e3),this[_0x220fe0(0x362)][_0x220fe0(0x3b1)](0x3),_0x253622['socketReady']=!0x0,_0x253622[_0x220fe0(0x20a)]=null),_0x47c608===_0xcb980a[_0x220fe0(0x337)]&&this[_0x220fe0(0x2a1)](_0x253622),this['_rescheduleHeartbeat'](_0x253622);}[_0x5c9f94(0x365)](_0x1f971b){const _0x322d85=_0x5c9f94;return[...this[_0x322d85(0x321)][_0x322d85(0x381)]()][_0x322d85(0x1b6)](_0x37117e=>_0x37117e===_0x1f971b);}[_0x5c9f94(0x315)](_0x1bb80f){const _0x22e22b=_0x5c9f94;let _0x313c65=_0x1bb80f??'',_0xa25a73=this[_0x22e22b(0x20b)][_0x22e22b(0x160)](_0x313c65);if(_0xa25a73)return _0xa25a73;let _0x562da1={'endpointKey':_0x313c65,'endpoint':_0x1bb80f,'socket$':new _0x1946cb(void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x22e22b(0x20b)][_0x22e22b(0x1b3)](_0x313c65,_0x562da1),_0x562da1;}[_0x5c9f94(0x200)](_0x1ff0ef){const _0x31dd4a=_0x5c9f94;this[_0x31dd4a(0x2b1)](_0x1ff0ef),_0x1ff0ef[_0x31dd4a(0x229)]=setTimeout(()=>this['_sendHeartbeat'](_0x1ff0ef),this[_0x31dd4a(0x323)][_0x31dd4a(0x1a1)](_0x31dd4a(0x25e))??0x7530);}[_0x5c9f94(0x3e2)](_0x284fde){const _0x3418e2=_0x5c9f94;_0x284fde[_0x3418e2(0x3cd)][_0x3418e2(0x154)]()[_0x3418e2(0x308)]({'cmd':_0xcb980a[_0x3418e2(0x337)]}),this['_waitForHeartbeatResponse'](_0x284fde);}[_0x5c9f94(0x3b6)](_0x4cda4a){const _0x8fe492=_0x5c9f94;_0x4cda4a[_0x8fe492(0x2b2)]=setTimeout(()=>this['_onConnectionFailed'](_0x4cda4a),this[_0x8fe492(0x323)]['getConfig']('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x5c9f94(0x2b1)](_0x36ae3a){const _0xc1825a=_0x5c9f94;_0x36ae3a[_0xc1825a(0x229)]!=null&&(clearTimeout(_0x36ae3a[_0xc1825a(0x229)]),_0x36ae3a[_0xc1825a(0x229)]=null);}['_clearTimeoutTimer'](_0x5aa4ab){const _0x2f3648=_0x5c9f94;_0x5aa4ab[_0x2f3648(0x2b2)]!=null&&(clearTimeout(_0x5aa4ab['timeoutTimer']),_0x5aa4ab[_0x2f3648(0x2b2)]=null);}};In=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x3981ee),V(0x2,_0xf41dc9),V(0x3,An),V(0x4,_0xcf8d3f(B)),V(0x5,Nn),V(0x6,_0x1da68f(Dn))],In);let Ln=class extends _0x468ac5{constructor(_0x54f9b1,_0x260d40,_0x3f2018,_0xd9ed2c){const _0x3a8e4f=_0x5c9f94;var _0x23353b;super(),this[_0x3a8e4f(0x3eb)]=_0x54f9b1,this[_0x3a8e4f(0x219)]=_0x260d40,this[_0x3a8e4f(0x323)]=_0x3f2018,this[_0x3a8e4f(0x28a)]=_0xd9ed2c,z(this,_0x3a8e4f(0x261),new Map()),z(this,_0x3a8e4f(0x313),new _0x4e03af()),z(this,_0x3a8e4f(0x397),this[_0x3a8e4f(0x313)][_0x3a8e4f(0x190)]()),((_0x23353b=this['_configService'][_0x3a8e4f(0x1a1)](_0x3a8e4f(0x247)))==null?void 0x0:_0x23353b['enableCollaboration'])!==!0x1&&this['_init']();}[_0x5c9f94(0x316)](){const _0x3f6b8c=_0x5c9f94;super[_0x3f6b8c(0x316)](),this[_0x3f6b8c(0x261)][_0x3f6b8c(0x2de)](_0x59cab3=>_0x59cab3['dispose']()),this['_entities']['clear']();}[_0x5c9f94(0x369)](_0x211206){const _0x1f85f8=_0x5c9f94;return this[_0x1f85f8(0x261)][_0x1f85f8(0x160)](_0x211206)??null;}[_0x5c9f94(0x250)](_0x589f19){const _0x1324b6=_0x5c9f94;let _0xdb0403=this[_0x1324b6(0x369)](_0x589f19);return _0xdb0403?_0xf609a3(_0xdb0403):this[_0x1324b6(0x313)][_0x1324b6(0x270)](_0x5d4b25(_0x1eee52=>_0x1eee52[_0x1324b6(0x24c)]===_0x589f19));}[_0x5c9f94(0x373)](_0xf4c3bd){const _0x5e2385=_0x5c9f94;return _0x3f95e4(this[_0x5e2385(0x250)](_0xf4c3bd)[_0x5e2385(0x270)](_0x13126a(()=>void 0x0)));}[_0x5c9f94(0x215)](){const _0x2a1553=_0x5c9f94;this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x21d)])[_0x2a1553(0x270)](_0x21bb40(this['dispose$']),_0x2fc4f9(0x10))['subscribe'](async _0x15c19d=>{const _0x4c7ebc=_0x2a1553;let _0x200108=_0x15c19d['unit'][_0x4c7ebc(0x394)](),_0x354265=await this[_0x4c7ebc(0x3f1)](_0x200108,_0x2efadb[_0x4c7ebc(0x21d)]);this['_entities'][_0x4c7ebc(0x1b3)](_0x200108,_0x354265);}),this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x29a)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x270)](_0x5d4b25(_0x2ebba4=>!_0x2ebba4[_0x2a1553(0x1e7)][_0x2a1553(0x394)]()['startsWith']('__')))[_0x2a1553(0x168)](async _0x2f9086=>{const _0x2c196a=_0x2a1553;let _0x1aa750=_0x2f9086[_0x2c196a(0x1e7)][_0x2c196a(0x394)](),_0x1faa6e=await this['_startCollaboration'](_0x1aa750,_0x2efadb[_0x2c196a(0x29a)]);this['_entities'][_0x2c196a(0x1b3)](_0x1aa750,_0x1faa6e);}),this[_0x2a1553(0x28a)][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x1d3)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x403f57=>{const _0x216709=_0x2a1553;let _0x1d411d=_0x403f57['unit']['getUnitId'](),_0x4d96b1=await this[_0x216709(0x3f1)](_0x1d411d,_0x2efadb[_0x216709(0x1d3)]);this[_0x216709(0x261)][_0x216709(0x1b3)](_0x1d411d,_0x4d96b1);}),this[_0x2a1553(0x28a)]['getTypeOfUnitAdded$'](_0x2efadb[_0x2a1553(0x3ed)])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x24c549=>{const _0x21f218=_0x2a1553;let _0x3fd863=_0x24c549['unit'][_0x21f218(0x394)](),_0x4107b0=await this['_startCollaboration'](_0x3fd863,_0x2efadb[_0x21f218(0x3ed)]);this[_0x21f218(0x261)][_0x21f218(0x1b3)](_0x3fd863,_0x4107b0);}),this['_univerInstanceService'][_0x2a1553(0x2ff)](_0x2efadb[_0x2a1553(0x3a6)])['pipe'](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))[_0x2a1553(0x168)](async _0x194151=>{const _0x46845b=_0x2a1553;let _0x4c2cec=_0x194151[_0x46845b(0x1e7)][_0x46845b(0x394)](),_0x281edf=await this[_0x46845b(0x3f1)](_0x4c2cec,_0x2efadb[_0x46845b(0x3a6)]);this[_0x46845b(0x261)][_0x46845b(0x1b3)](_0x4c2cec,_0x281edf);}),this['_univerInstanceService'][_0x2a1553(0x2ff)](_0x2efadb['UNIVER_PDF'])[_0x2a1553(0x270)](_0x21bb40(this[_0x2a1553(0x391)]),_0x2fc4f9(0x10))['subscribe'](async _0x4b08a3=>{const _0x303fd3=_0x2a1553;let _0x552dcb=_0x4b08a3[_0x303fd3(0x1e7)][_0x303fd3(0x394)](),_0x15144d=await this[_0x303fd3(0x3f1)](_0x552dcb,_0x2efadb['UNIVER_PDF']);this[_0x303fd3(0x261)][_0x303fd3(0x1b3)](_0x552dcb,_0x15144d);}),_0x41572c(this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x21d)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x29a)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb['UNIVER_SLIDE']),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x3ed)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb[_0x2a1553(0x3a6)]),this[_0x2a1553(0x28a)][_0x2a1553(0x2ae)](_0x2efadb['UNIVER_PDF']))[_0x2a1553(0x270)](_0x21bb40(this['dispose$']))[_0x2a1553(0x168)](_0x16d115=>{const _0x5eb3f2=_0x2a1553;let _0x2f9cc9=_0x16d115[_0x5eb3f2(0x394)](),_0x162cf1=this[_0x5eb3f2(0x261)][_0x5eb3f2(0x160)](_0x2f9cc9);_0x162cf1&&(_0x162cf1[_0x5eb3f2(0x316)](),this['_entities'][_0x5eb3f2(0x1e8)](_0x2f9cc9));});}async[_0x5c9f94(0x3f1)](_0x2c092d,_0x18f66e){const _0x51534a=_0x5c9f94;let _0x309e4e=await this[_0x51534a(0x219)]['requireSession'](_0x2c092d),_0x598cfe=this[_0x51534a(0x3eb)][_0x51534a(0x2c8)](this[_0x51534a(0x39e)](_0x18f66e),_0x2c092d,_0x18f66e,_0x309e4e);return await _0x598cfe[_0x51534a(0x1f6)](),this['_entityInit$']['next'](_0x598cfe),_0x598cfe;}[_0x5c9f94(0x39e)](_0x356997){const _0x1fd2a8=_0x5c9f94;switch(_0x356997){case _0x2efadb[_0x1fd2a8(0x29a)]:return xn;case _0x2efadb['UNIVER_SHEET']:return Cn;case _0x2efadb[_0x1fd2a8(0x1d3)]:return wn;case _0x2efadb[_0x1fd2a8(0x3ed)]:return Tn;case _0x2efadb['UNIVER_BASE']:return Sn;case _0x2efadb['UNIVER_PDF']:return En;default:throw Error(_0x1fd2a8(0x30c)+_0x356997);}}};Ln=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0xcf8d3f(In)),V(0x2,_0xf41dc9),V(0x3,_0x4c5cd7)],Ln);var Rn=_0x5c9f94(0x1fb),zn='1.0.4';let Bn=class extends _0x588e84{constructor(_0x46fbd8,_0x4b6b67){const _0x106455=_0x5c9f94;super(),this[_0x106455(0x28a)]=_0x46fbd8,this['_configService']=_0x4b6b67,this[_0x106455(0x215)]();}[_0x5c9f94(0x215)](){const _0x3cc670=_0x5c9f94;this[_0x3cc670(0x189)](this[_0x3cc670(0x28a)][_0x3cc670(0x2b4)][_0x3cc670(0x168)](()=>{const _0x873c96=_0x3cc670;let _0x976f36=this[_0x873c96(0x28a)][_0x873c96(0x191)](),_0x37ffa4=this[_0x873c96(0x323)]['getConfig'](_0x873c96(0x21b))??_0x873c96(0x1cb);_0x976f36 instanceof _0x2b4036&&(_0x37ffa4=_0x976f36[_0x873c96(0x31c)]),document[_0x873c96(0x206)]=_0x37ffa4;}));}};function _0x3253(){const _0x373357=['/-/object/-/batch_allowed','[DataLoaderService]','_commandService','_prepareTransformSelections','status$','resolve','refreshUnit','_scheduleCompleteTimestamp','1560300yAbxBT','getTypeOfUnitDisposed$','_getLoginPath','MUTATION','_clearHeartbeatTimer','timeoutTimer','pauseCollaboration','focused$','_telemetryService','stopTime','/universer-api/comb','_userManagerService','headers','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_getUploadFileURL','_transformRemoteChangesetByStateCache','_updateState','CONFLICT','addHandlerCallback','incrementRevOfUnit','Slide','_sendingTimer','SOCKET_FAILED_RETRY','baseRev','SUBMIT_CHANGESET','onload','_updateLocalCache','createInstance','_transformAndApplyRemoteChangeset','editing\x20status\x20changed\x20to','commit','collaborators','POST','function','downloadEndpointUrl','commentUpdate$','awaitingChangeset','[SyncedState]:\x20received\x20rejection.','c1Prime','/unit/','_cfgEnableObjInherit','stringify','compose','override','conflict','isPermissionRej','origin','error','revision','forEach','string','objectActions','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_getSendChangesetTimeout','offline','unit-cache-','fetchMissingChangesets','loadUnit','_disposed','_snapshotServerService','JOINING','_syncEditingCollabCursor','?size=','getCurrentUser','_applyRemoteChangeset','getUnitOnRev','setCfgEnableObjInherit','NOT_COLLAB','saveImage','getInterceptPoints','loadDoc','/universer-api/stream/file/upload','responseType','_createHandler','194802AEAyWE','clearUnit','_throwTelemetryCollaborationNewChangeset','_changesetSessionId','unitType','socket\x20open.','length','csRejEvent','getTypeOfUnitAdded$','createSocket','_closedUnits','isArray','localeService','HEARTBEAT_TIMEOUT','_refreshUnitPermission','fetching\x20missing\x20changesets\x20from\x20','LIVESHARE_TERMINATE','send','setConfig','objects','_replayCachedMutations','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','max','_transformUndoredo','submit\x20changeset\x20error!','_onRemoteRetry','_onLocalMutation','subUnitId','_entityInit$','_adapter','_getSocketChannel','dispose','charCodeAt','_onOffline','saveAttachment','complete','CLOSE_ROOM','name','_transformRemoteChangesetByIMECache','_onConflict','version','post','_sessionChannels','_pendingMutations','_configService','FETCH_MISS','originalMeta','connection\x20error','_sheetTransformSelectionsService','_config','changesets','_onRemoteACK','getOwnPropertyDescriptor','/resources','includes','[CollaborationEntity]','transformMutationsWithChangeset','_onUserJoin','memberID','shouldCloseConn','_singleActiveUnitService','_substituteUndoStack','_initUnitPermissionChange','unknown','HEARTBEAT','_isPermissionRej','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','loadUnitOfRevision','NEW_CHANGESETS','LIVESHARE_OPERATION','_undoRedoService','/rev/','startsWith','every','_roomMembers','url','_clearRetryConnectingTimer','NO_OTHER_CLIENTS_EDITING','_HTTPService','session.join-failed','apply','LIVESHARE_REQUEST_HOST','_executeRemoteChangeset','Base','type','_tryReconnect','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','/universer-api/snapshot/','_checkMissing','confirm','columnGroups','toString','_transitionLocked','onRemoteAck','_changesetReqId','getTime','waitForRoom$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_createSocket','_clearScheduledTask','initWorkbookPermissionChange','_waitCount','_transformIMECache','localCacheService','subject','_decreaseWaiting','online$','_status$','[UniverCollaborationClientPlugin]','_transformService','_hasSessionsForEndpoint','message$','_getAPIPrefixPath','_scheduleCollaborationTimeoutTimer','getCollabEntity','_resendTimeout','failed\x20to\x20apply\x20missed\x20changesets!','executeCommand','method','closeSession','session.room-not-exists','collabWebSocketUrl','onSyncEditingCollabCursor','getImage','readyForCollab','list','map','constructor','_onCombEvent','PSEUDO_FETCH_MISSING_RESULT','_httpService','UNIVER_COLLABORATION_CLIENT_PLUGIN','deepClone','_getConfig','localUnitId','actions','_disableEditing','updateCollaborator','values','_revisionService','[OfflineState]:\x20received\x20acknowledgement.','{fileID}','_event$','authzUrl','onRemoteChangeset','1932642WPImRo','endsWith','onStarting','objectId','docStateChange$','duration','USERS_ENTER','COMPRESS_MUTATION_APPLY','create','dispose$','interceptor','_toggleOnline','getUnitId','getMemberID','removeMember','entityInit$','OFFLINE','snapshot','resolveUnit','_onFetchMissResult','OTHER_CLIENT_EDITING','_pendingSessions','_getCtorByUniverInstanceType','unitDisposed$','pending','socketReady','IDLE','entries','saveSnapshot','HELLO','UNIVER_BASE','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','emitEvent','_resolveSessionIdentity','toggleOffline','onPrepareTransformSelections','getResourcesRequest','userID','_getSignURL','transformSelections','[SyncedState]:\x20received\x20acknowledgement.','next','synced','_listenToNetworkCondition','maxSize','BASE64','_waitForHeartbeatResponse','_createInitialState','disableLocalCache','OPTIONAL','INGEST','/allowed','/universer-api/uniscript','_acknowledgedAwaitingRevision','onlyLocal','_clearUndo','socketMessageSubscription','onRemoteRetry','PERSON','reverse','&assign=','session','reconnect','_collaborationTimeoutTimer','addImageSourceCache','_commentService','endpointKey','infoRsp','roles','socket$','_getUndoStack','data','editingUnit','startTime','_transformStack','collaboratorID','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_showConflictNotification','/universer-api/authz','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','_removeRoom','_identity','_lockTransition','toLocal','packageName','_prepareConflictRecovery','_createSession','UUID','_tryEnsureSocket','catch','_sendHeartbeat','has','endpoint','size','COMPRESS_MUTATION_SEND','resend','\x20-\x20','updateOfflineData','loadPdf','_injector','encode','UNIVER_BOARD','_schedule','fromCharCode','univer-pro.collaboration-client.network-condition.service','_startCollaboration','routeKey','CONFLICT_CACHE_CLEAR_FAILED','_onJoinRoomEvent','_memberService','csAckEvent','batchAllowed','unitId','_roomCreated$','_onRemoteChangeset','_onRemoteRejected','_members$','target','href','_collaborationUIEventService','_collaborationSessionService','MSG_FOR_ERROR','onCommentUpdate','signUrlServerUrl','uploadFileServerUrl','_getRedoStack','_docStateChangeManagerService','onTransformState','collaMsg','cmd','LIVESHARE_FETCH_OPERATIONS','requestParams','_permissionService','_acknowledgeAwaitingIfReady','transformUndoRedo','replace','getValue','getUnitType','[CollaborationUndoRedoService]','slice','hasOwnProperty','_redoStacks','RETRY_CONNECTING_MAX_COUNT','_transformStateCache','_resendTimer','_shouldReportTelemetry','fetchThroughInterceptors','_networkConditionService','get','textRanges','_socketService','sessionStatus','JOIN','encodeURIComponent','isCompositionEnd','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','subscribe','objectType','state','objectID','_exhaustRemoteChangesetQueue','getSnapshotAPIPath','find','retryCount','sendChangesetTimeout','withCredentials','setShowComponents','symbol','session.room-permission-denied','JOIN_ROOM_FAILED','onTransformRemoteChangesetByStateCache','[CollaborationSession]','updateCursorEvent','loadOfflineData','liveShareOperation','/new_changes','LEAVE','close','session.room-full','_fetchMissChangesets','RECV','onLocalMutation','liveShareNewHost','error$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','&source=','getMember','_snapshotService','/universer-api/oidc/authpage','disposeWithMe','UPDATE_PERMISSION_OBJ','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onSendChangeset','_socket','_onRecvEvent','getCurrentRevOfUnit','asObservable','getFocusedUnit','/universer-api/file/{fileID}/sign-url','_acknowledgeAwaiting','members$','_handler','unitLoaded$','[PendingState]:\x20received\x20rejection.','eventID','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_initDependencies','[CollaborationSessionService]:\x20socket\x20error','upload','_transformSelections','clear','_unlockTransition','status','getConfig','SYNCED','_clearRedo','params','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','470816adDheL','1428652CamFSm','awaiting','/universer-api/user/session-ticket','debug','m2Prime','[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.','event$','/collaborator','loginUrlKey','snapshotServerUrl','PENDING','defineProperty','set','listCollaborators','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','some','SUBMIT_CHANGESET_TIMEOUT','createCollaborator','_getAPIPrefix','getCurrentSelections','_showConflictProcessingNotification','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNISCRIPT_RUN','supports','_toggleOffline','loadSheet','socketService','_replaceFileID','result','base-ui.attachment-io.service','PERMISSION_DENIED','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','resourceIDs','unitInfo$','_unitInfo$','_emitMembers','Univer','UnitEmbedded','onStateChange','getUploadOptions','_remoteChangesetQueue','_eventService','_commentUpdate$','ERROR_IMAGE','UNIVER_SLIDE','toRemote','&to=','9035496RzXAed','SOCKET_FAILED','retryConnectingTimer','_submitChangeset','cfgEnableObjInherit','Edit','_startTelemetryCollaborationNewChangeset','now','_initRequestHeader','joinEvent','COLLABORATION_ENDPOINT_INVALID','60HaRlcv','missingChangesets','/block/','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','append','onRemoteRej','unit','delete','getRoom','_updateUnitPermissionPoint','state$','fromCollab','close$','_sessionStatus$','JOIN_ROOM_NOT_EXISTS','workbook','open$','iterator','_joinRoom','hostname','reduce','init','LIVESHARE_NEW_HOST','reqId','_telemetryInfo','subType','@univerjs-pro/collaboration-client','_maxTotalRetryTimeout','src','clearOfflineData','enableAuthServer','_rescheduleHeartbeat','saveChangeset','mutations','getSheetBlock','collaboration-client.local-cache-service','_localeService','title','_upload','__splitChunk__','socket\x20close','candidateSocket','_socketChannels','onTransformIME','SHOULD_CLOSE_CONN','_socketMessageSubscription','unsubscribe','onMutationExecutedForCollab','prototype','_getDownloadEndpointURL','_type','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_init','[OfflineState]:\x20received\x20rejection.','/-/object/list','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_collabSessionService','univer-pro.collaboration-client-socket-service','DEFAULT_FILE_NAME','_compressMutationService','UNIVER_SHEET','2158568GwvhvB','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','object','_queuedRemoteChangesets','_members','\x20to\x20','action','sessionStatus$','changeset','c2Prime','[CollaborationSessionService]','sendHeartbeatTimer','getAllMembers','loadSlide','CHANGESET_REJ','_updateStatus','PERMISSION_REJ','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','registerHTTPInterceptor','fetchMiss','_state','_substituteRedoStack','body','transformStack\x20failed!','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','FileId','enableOfflineEditing','session.room-cnt-exceeds','selections','/object/','_collaborationPaused','refreshPermission','call','_onUserLeave','number','change$','_onMessage','_incrementRevisionNumber','findIndex','ws://127.0.0.1:8000/universer-api/comb/connect','rollback','collaboration-client.config','text-x','sort','csShouldRetryEvent','_change$','unitID','Workbook','CHANGESET_SHOULD_RETRY','_unitLoaded$','getCollabEntity$','UPDATE_CURSOR','onTransformSelections','/fetchmissing?from=','appendMutation','_localCacheService','AWAITING','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','listRoles','_imageSourceCache','FETCH_MISSING','onMissingChangesets','_awaitingChangeset','univer-pro.collaboration-client.single-active-unit-service','HEARTBEAT_INTERVAL','_registerDependencies','CONFLICT_PROCESSING','_entities','collaboration_new_changeset','newCsEvent','objectPermissionTypes','Failed\x20to\x20update\x20permission\x20point','blockRanges','code','_getCurrentRevision','AWAITING_WITH_PENDING','_logService','/object','avatar','transformChangesets','x-univer-host','push','pipe','_resendWithTimeout','_isEchoedAwaitingChangeset','not_collab','ERROR_EXCEED_SIZE','_doCreateSocket','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_sessions','put','_authzIoService','SUCCUSS','Error\x20on\x20receiving\x20event','getSheetId','_createInitialStateImpl','onMissedChangesetFetched','SNAPSHOT_URL_KEY','_onConnectionFailed','toggleOnline','sid','updateMember','_initCloseConn','updatePermissionPoint','COMMENT_UPDATE','add','Board','commentUpdateEvent','_univerInstanceService','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','JOIN_ROOM_PERMISSION_DENIED','_state$','backupOfflineData','file','min','_handleRemoteChangesets','accept','_instanceService','permissionRejEvent','reject','allowed','_sender','USERS_LEAVE','enableSingleActiveInstanceLock','UNIVER_DOC','range','requireSession','OTHER_CLIENTS_EDITING','getUnit','UNIVER_PDF','_clearCollaborationTimeoutTimer','_clearTimeoutTimer','setWaitCount','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_handlerCallback'];_0x3253=function(){return _0x373357;};return _0x3253();}Bn=H([V(0x0,_0x4c5cd7),V(0x1,_0xf41dc9)],Bn);const Vn=_0x1db16f(_0x5c9f94(0x1c4));let Hn=class{constructor(_0x35f02b,_0x36b0d3,_0x1e5923){const _0x13f33c=_0x5c9f94;this[_0x13f33c(0x379)]=_0x35f02b,this[_0x13f33c(0x323)]=_0x36b0d3,this[_0x13f33c(0x28a)]=_0x1e5923;}[_0x5c9f94(0x1ce)](){const _0x25e01d=_0x5c9f94;return this[_0x25e01d(0x37c)]()['attachment']??{};}async[_0x5c9f94(0x319)](_0x2fa195){const _0x418dfe=_0x5c9f94;let _0x15d88c=this[_0x418dfe(0x1ce)]();if(Un(_0x2fa195,_0x15d88c),_0x15d88c[_0x418dfe(0x19c)])return _0x15d88c['upload'](_0x2fa195);let _0x347955=await this[_0x418dfe(0x207)](_0x2fa195);return{'id':_0x347955,'name':_0x2fa195[_0x418dfe(0x31c)],'mimeType':_0x2fa195[_0x418dfe(0x34b)],'size':_0x2fa195[_0x418dfe(0x3e5)],'sourceType':_0x237f28[_0x418dfe(0x3df)],'source':_0x347955};}async['getAttachmentUrl'](_0x42f02b,_0x4a39dc){const _0x503279=_0x5c9f94;if(_0x4a39dc!==_0x237f28[_0x503279(0x3df)])return _0x42f02b;let _0x209d36=(await this[_0x503279(0x379)]['get'](this[_0x503279(0x3ae)]()['replace'](_0x503279(0x384),_0x42f02b)))['body'];if(_0x209d36[_0x503279(0x2dc)]&&_0x209d36[_0x503279(0x2dc)]['code']!==_0x1aa6bc['OK'])throw _0x209d36[_0x503279(0x2dc)];if(!_0x209d36[_0x503279(0x342)])throw Error(_0x503279(0x3a7));return _0x6adb79(_0x209d36[_0x503279(0x342)],this[_0x503279(0x212)]());}async[_0x5c9f94(0x207)](_0x3b6913){const _0x572a4d=_0x5c9f94;let _0x5c269c=this['_univerInstanceService'][_0x572a4d(0x191)](),_0x23b4c4=_0x5c269c==null?void 0x0:_0x5c269c[_0x572a4d(0x394)]();if(!_0x23b4c4)throw Error(_0x572a4d(0x28b));let _0x451d4d=new FormData();_0x451d4d[_0x572a4d(0x1e5)](_0x572a4d(0x28f),_0x3b6913);let _0x34d344=this['_getUploadFileURL']()+_0x572a4d(0x2eb)+_0x3b6913[_0x572a4d(0x3e5)][_0x572a4d(0x352)]()+_0x572a4d(0x185)+_0x4a6968[_0x572a4d(0x1cc)]+_0x572a4d(0x3c4)+encodeURIComponent(_0x23b4c4),_0x465762=(await this[_0x572a4d(0x379)][_0x572a4d(0x320)](_0x34d344,{'body':_0x451d4d}))[_0x572a4d(0x234)]['FileId'];if(typeof _0x465762!='string'||!_0x465762)throw Error(_0x572a4d(0x3d7));return _0x465762;}[_0x5c9f94(0x2bb)](){const _0x3270b9=_0x5c9f94;return this[_0x3270b9(0x37c)]()[_0x3270b9(0x148)]??_0x3270b9(0x2f4);}['_getSignURL'](){const _0x604f6=_0x5c9f94;return this[_0x604f6(0x37c)]()[_0x604f6(0x147)]??_0x604f6(0x192);}['_getDownloadEndpointURL'](){const _0x231a3e=_0x5c9f94;let _0x1c433c=this[_0x231a3e(0x37c)]();return _0x1c433c[_0x231a3e(0x2cf)]?_0x1c433c[_0x231a3e(0x2cf)]:typeof location<'u'?location[_0x231a3e(0x2db)]:_0x1c433c[_0x231a3e(0x148)]??'';}[_0x5c9f94(0x37c)](){const _0x1e8f31=_0x5c9f94;return this[_0x1e8f31(0x323)]['getConfig']('collaboration-client.config')??{};}};Hn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xcf8d3f(_0xf41dc9)),V(0x2,_0xcf8d3f(_0x4c5cd7))],Hn);function Un(_0x3b0e8a,_0x309b8c){const _0x597de7=_0x5c9f94;var _0x400198;if(_0x309b8c['maxSize']!=null&&_0x3b0e8a[_0x597de7(0x3e5)]>_0x309b8c[_0x597de7(0x3b4)])throw Error(_0x597de7(0x3d4));if((_0x400198=_0x309b8c[_0x597de7(0x292)])!=null&&_0x400198[_0x597de7(0x2fd)]&&!_0x309b8c[_0x597de7(0x292)][_0x597de7(0x1b6)](_0x1c192d=>_0x3b0e8a[_0x597de7(0x34b)]===_0x1c192d||_0x3b0e8a[_0x597de7(0x31c)][_0x597de7(0x389)](_0x1c192d)||_0x1c192d[_0x597de7(0x389)]('/*')&&_0x3b0e8a[_0x597de7(0x34b)][_0x597de7(0x33f)](_0x1c192d[_0x597de7(0x157)](0x0,-0x1))))throw Error(_0x597de7(0x1a5));}let Wn=class{constructor(_0x433cc2,_0x2ccbf8,_0x511876){const _0xfdd60b=_0x5c9f94;this[_0xfdd60b(0x323)]=_0x433cc2,this['_httpService']=_0x2ccbf8,this[_0xfdd60b(0x303)]=_0x511876,this[_0xfdd60b(0x1f6)]();}[_0x5c9f94(0x1f6)](){const _0x5de832=_0x5c9f94;this[_0x5de832(0x379)][_0x5de832(0x230)]({'priority':0x1,'interceptor':(_0x268983,_0x35b39a)=>_0x35b39a(_0x268983)[_0x5de832(0x270)](_0x17473d(async _0x3d233e=>{const _0xb33244=_0x5de832;let _0xf4d83d=_0x3d233e;if(_0xf4d83d['status']===0x191){if(typeof window>'u')throw Error(_0xb33244(0x2e1));if(window[_0xb33244(0x350)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x15673f=window[_0xb33244(0x165)](window['location']['href']);window['location'][_0xb33244(0x142)]=this['_getLoginPath']()+'?url='+_0x15673f;}}return _0xf4d83d;}))});}[_0x5c9f94(0x2af)](){const _0x5db330=_0x5c9f94;let _0x52a5e2=this['_configService'][_0x5db330(0x1a1)](R);return(_0x52a5e2==null?void 0x0:_0x52a5e2[_0x5db330(0x1af)])??_0x5db330(0x188);}};Wn=H([V(0x0,_0xf41dc9),V(0x1,_0xcf8d3f(_0x145224)),V(0x2,_0xcf8d3f(_0x5c6337))],Wn);let Gn=class extends _0x588e84{constructor(_0x2c2538,_0x153402){const _0x526c8b=_0x5c9f94;super(),this['_HTTPService']=_0x2c2538,this[_0x526c8b(0x323)]=_0x153402,z(this,_0x526c8b(0x2d5),!0x1),this['_initMergeInterceptor']();}['_initMergeInterceptor'](){let _0x5c5053=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0xad30e1({'isMatch'(_0x52c42d){const _0x59b68c=_0x4bc2;var _0x338c8a;if(_0x52c42d[_0x59b68c(0x36d)]===_0x59b68c(0x2cd)&&(_0x338c8a=_0x52c42d[_0x59b68c(0x14f)])!=null&&_0x338c8a[_0x59b68c(0x234)]){let {objectID:_0x27e6dd,objectType:_0x5d856c}=_0x52c42d[_0x59b68c(0x14f)][_0x59b68c(0x234)]||{};if(!_0x27e6dd||_0x5d856c===void 0x0)return!0x1;let _0x54af4b=_0x5c5053[_0x59b68c(0x367)]()+'/'+_0x5d856c+_0x59b68c(0x23b)+encodeURIComponent(_0x27e6dd)+'/allowed';if(_0x52c42d['url']===_0x54af4b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2bb77b){const _0xda8f=_0x4bc2;var _0x228bd8;return(_0x228bd8=_0x2bb77b[_0xda8f(0x14f)])==null?void 0x0:_0x228bd8[_0xda8f(0x234)];},'mergeParamsToRequest'(_0x35d4b3,_0x254af3){const _0x3e6846=_0x4bc2;let _0x283388=_0x5c5053['_getAPIPrefixPath']()+_0x3e6846(0x2a5),_0x3623bf=_0x35d4b3[_0x3e6846(0x1f5)]((_0x916689,_0x14788b)=>{const _0x8c8867=_0x3e6846;let {unitID:_0x5017fc,objectID:_0xf427c3,objectType:_0x48054f,actions:_0x5e2988}=_0x14788b;return _0x916689[_0x5017fc]||(_0x916689[_0x5017fc]=Object[_0x8c8867(0x390)](null)),_0x916689[_0x5017fc][_0xf427c3]||(_0x916689[_0x5017fc][_0xf427c3]={'objectID':_0xf427c3,'objectType':_0x48054f,'actions':[]}),_0x916689[_0x5017fc][_0xf427c3]['actions']['push'](..._0x5e2988),_0x916689;},Object[_0x3e6846(0x390)](null)),_0x3e7cc8=[];for(let _0x2e51c1 in _0x3623bf)for(let _0x5a5a79 in _0x3623bf[_0x2e51c1]){let {actions:_0x3b5234,objectType:_0x41c9d4}=_0x3623bf[_0x2e51c1][_0x5a5a79],_0x37ddc7=[...new Set(_0x3b5234)];_0x3e7cc8[_0x3e6846(0x26f)]({'unitID':_0x2e51c1,'objectID':_0x5a5a79,'objectType':_0x41c9d4,'actions':_0x37ddc7});}return new _0x3b0f3b(_0x3e6846(0x2cd),_0x283388,{'headers':_0x254af3[_0x3e6846(0x2b9)],'withCredentials':_0x254af3[_0x3e6846(0x171)],'responseType':_0x254af3[_0x3e6846(0x2f5)],'body':{'requests':_0x3e7cc8}});}},{'distributeResult'(_0x55a5c1,_0x3983a0){const _0x27e3dd=_0x4bc2;let {objectActions:_0x9244a}=_0x55a5c1;return _0x3983a0[_0x27e3dd(0x375)](_0x365bcf=>{const _0x53d1ac=_0x27e3dd;let {unitID:_0x1cdb22,objectID:_0x326638,actions:_0x11eeb9}=_0x365bcf,_0x37f184=_0x9244a[_0x53d1ac(0x16e)](_0x17a90d=>_0x17a90d[_0x53d1ac(0x24c)]===_0x1cdb22&&_0x17a90d[_0x53d1ac(0x16b)]===_0x326638);return{'config':_0x365bcf,'result':{'actions':_0x11eeb9[_0x53d1ac(0x375)](_0x453276=>_0x37f184==null?void 0x0:_0x37f184[_0x53d1ac(0x37e)][_0x53d1ac(0x16e)](_0x1f3bcc=>_0x1f3bcc[_0x53d1ac(0x224)]===_0x453276))['filter'](_0x18f7ed=>!!_0x18f7ed),'error':_0x55a5c1[_0x53d1ac(0x2dc)]}};});}})}));}[_0x5c9f94(0x367)](){const _0x26f423=_0x5c9f94;let _0x5afca7=this[_0x26f423(0x323)][_0x26f423(0x1a1)](R);return(_0x5afca7==null?void 0x0:_0x5afca7['authzUrl'])??_0x26f423(0x3d6);}async[_0x5c9f94(0x390)](_0x5e7229){const _0x214416=_0x5c9f94;let _0xb63916=this[_0x214416(0x367)]()+'/'+_0x5e7229['objectType']+_0x214416(0x26b);return(await this[_0x214416(0x345)][_0x214416(0x320)](_0xb63916,{'body':_0x5e7229}))['body'][_0x214416(0x16b)]||'';}async[_0x5c9f94(0x374)](_0x15ef43){const _0x939da5=_0x5c9f94;let _0x9c5389=this[_0x939da5(0x367)]()+_0x939da5(0x217);return(await this['_HTTPService'][_0x939da5(0x320)](_0x9c5389,{'body':_0x15ef43}))[_0x939da5(0x234)][_0x939da5(0x30a)];}async['update'](_0x339116){const _0x32806a=_0x5c9f94;var _0x14e500;let _0x73cdc7=this[_0x32806a(0x367)]()+'/'+_0x339116[_0x32806a(0x169)]+_0x32806a(0x23b)+encodeURIComponent(_0x339116[_0x32806a(0x16b)]),_0x1146bc=await this[_0x32806a(0x345)][_0x32806a(0x278)](_0x73cdc7,{'body':_0x339116});if((_0x1146bc==null||(_0x14e500=_0x1146bc['body'])==null||(_0x14e500=_0x14e500['error'])==null?void 0x0:_0x14e500[_0x32806a(0x267)])!==0x1)throw Error(_0x32806a(0x265));}async[_0x5c9f94(0x296)](_0x5427a3){const _0x3ac84b=_0x5c9f94;let _0x3cd743=this['_getAPIPrefixPath']()+'/'+_0x5427a3[_0x3ac84b(0x169)]+'/object/'+encodeURIComponent(_0x5427a3['objectID'])+_0x3ac84b(0x3bb);return(await this[_0x3ac84b(0x345)][_0x3ac84b(0x320)](_0x3cd743,{'body':_0x5427a3}))[_0x3ac84b(0x234)][_0x3ac84b(0x37e)];}async[_0x5c9f94(0x13b)](_0x41764d){const _0x4e12db=_0x5c9f94;let _0x512d25=this[_0x4e12db(0x367)]()+_0x4e12db(0x2a5);return(await this['_HTTPService']['post'](_0x512d25,{'body':{'requests':_0x41764d}}))[_0x4e12db(0x234)][_0x4e12db(0x2e0)];}async[_0x5c9f94(0x258)](_0x3c6f2b){const _0x17db54=_0x5c9f94;let _0x7408ea=this['_getAPIPrefixPath']()+'/'+_0x3c6f2b[_0x17db54(0x169)]+'/role',_0x341295=await this[_0x17db54(0x345)][_0x17db54(0x320)](_0x7408ea,{'body':_0x3c6f2b});return{'roles':_0x341295[_0x17db54(0x234)][_0x17db54(0x3cc)],'actions':_0x341295[_0x17db54(0x234)]['actions']};}async['deleteCollaborator'](_0x5e9aac){const _0x23ad22=_0x5c9f94;let _0x40ca8d=this[_0x23ad22(0x367)]()+_0x23ad22(0x1ae);await this[_0x23ad22(0x345)][_0x23ad22(0x1e8)](_0x40ca8d,{'params':{'collaboratorID':_0x5e9aac[_0x23ad22(0x3d3)],'objectID':_0x5e9aac['objectID'],'unitID':_0x5e9aac[_0x23ad22(0x24c)]}});}async[_0x5c9f94(0x380)](_0x47a10b){const _0x4eb152=_0x5c9f94;let _0x5dfc0f=this[_0x4eb152(0x367)]()+'/collaborator';await this[_0x4eb152(0x345)]['patch'](_0x5dfc0f,{'body':_0x47a10b});}async[_0x5c9f94(0x1b8)](_0x5c684c){const _0x25ffc4=_0x5c9f94;let _0x214b6c=this[_0x25ffc4(0x367)]()+_0x25ffc4(0x1ae);await this[_0x25ffc4(0x345)][_0x25ffc4(0x320)](_0x214b6c,{'body':_0x5c684c});}async[_0x5c9f94(0x1b4)](_0x4115a5){const _0x10f6ce=_0x5c9f94;let _0x501042=this[_0x10f6ce(0x367)]()+_0x10f6ce(0x1ae),_0x34388e=await this['_HTTPService'][_0x10f6ce(0x160)](_0x501042,{'params':{'objectID':_0x4115a5[_0x10f6ce(0x16b)],'unitID':_0x4115a5[_0x10f6ce(0x24c)]}});return this[_0x10f6ce(0x2ef)](_0x34388e['body'][_0x10f6ce(0x1da)]??!0x1),_0x34388e[_0x10f6ce(0x234)][_0x10f6ce(0x2cc)];}async['putCollaborators'](_0x1dc90e){const _0x5a6668=_0x5c9f94;let _0x236424=this[_0x5a6668(0x367)]()+_0x5a6668(0x1ae);await this['_HTTPService'][_0x5a6668(0x278)](_0x236424,{'body':_0x1dc90e});}['setCfgEnableObjInherit'](_0xfc4865){this['_cfgEnableObjInherit']=_0xfc4865;}['getCfgEnableObjInherit'](){const _0x20e221=_0x5c9f94;return this[_0x20e221(0x2d5)];}};Gn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xcf8d3f(_0xf41dc9))],Gn);function Kn(_0x34cbbd){const _0x1ba6ae=_0x5c9f94;let _0x752ea0=atob(_0x34cbbd),_0x543b11=new Uint8Array(_0x752ea0[_0x1ba6ae(0x2fd)]);for(let _0x2dffcf=0x0;_0x2dffcf<_0x752ea0[_0x1ba6ae(0x2fd)];_0x2dffcf++)_0x543b11[_0x2dffcf]=_0x752ea0[_0x1ba6ae(0x317)](_0x2dffcf);return _0x543b11;}function qn(_0x25b2b4){const _0x5c3e3b=_0x5c9f94;let _0xe155cc='';for(let _0xc5bc2c=0x0;_0xc5bc2c<_0x25b2b4[_0x5c3e3b(0x2fd)];_0xc5bc2c++)_0xe155cc+=String[_0x5c3e3b(0x3ef)](_0x25b2b4[_0xc5bc2c]);return btoa(_0xe155cc);}function Jn(_0x28a02e,_0x45134b){let _0xae7933=Kn(_0x45134b),_0x569c4a=_0x862e1b(0x10),_0x5e6e37=_0xd5b70f(_0xae7933,_0x569c4a)['encrypt'](_0x50e238(_0x28a02e));return qn(_0x496bb6(_0x569c4a,_0x5e6e37));}function Yn(){const _0x41d6a9=_0x5c9f94;let _0x2af3d9=_0xcad4c5()['__Key__'];if(typeof window<'u'&&window['location']!==void 0x0&&_0x2af3d9){let _0x383d54={'time':Math['floor'](Date[_0x41d6a9(0x1dd)]()/0x3e8),'domain':location[_0x41d6a9(0x1f4)]};return Jn(JSON[_0x41d6a9(0x2d6)](_0x383d54),_0x2af3d9);}}let Xn=class{constructor(_0x1de4ca){const _0x44a756=_0x5c9f94;this[_0x44a756(0x379)]=_0x1de4ca,this[_0x44a756(0x1de)]();}[_0x5c9f94(0x1de)](){const _0x3d1bda=_0x5c9f94;this[_0x3d1bda(0x379)]['registerHTTPInterceptor']({'interceptor':(_0x10a715,_0x713874)=>{const _0x3a7d70=_0x3d1bda;let _0x3b6fc3=Yn();return _0x3b6fc3&&_0x10a715[_0x3a7d70(0x2b9)][_0x3a7d70(0x1b3)](_0x3a7d70(0x26e),_0x3b6fc3),_0x713874(_0x10a715);}});}};Xn=H([V(0x0,_0xcf8d3f(_0x145224))],Xn);let Zn=class extends _0x468ac5{constructor(_0x4904f8,_0x3e7236,_0x397c17){const _0x17049d=_0x5c9f94;super(),this[_0x17049d(0x26a)]=_0x4904f8,this[_0x17049d(0x187)]=_0x3e7236,this['_localCacheService']=_0x397c17,z(this,'_unitInfo$',new _0x1946cb(null)),z(this,_0x17049d(0x24f),new _0x4e03af()),z(this,_0x17049d(0x1c8),this[_0x17049d(0x1c9)][_0x17049d(0x190)]()),z(this,_0x17049d(0x196),this[_0x17049d(0x24f)][_0x17049d(0x190)]());}[_0x5c9f94(0x316)](){const _0x30ff7d=_0x5c9f94;super[_0x30ff7d(0x316)](),this['_unitLoaded$'][_0x30ff7d(0x31a)](),this[_0x30ff7d(0x1c9)][_0x30ff7d(0x31a)]();}async[_0x5c9f94(0x33a)](_0x2ee901,_0x3ac394,_0x467ca2,_0x9386df){const _0x5be3fb=_0x5c9f94;this[_0x5be3fb(0x1c9)][_0x5be3fb(0x3b1)]({'unitId':_0x2ee901,'type':_0x3ac394,'subUnitId':_0x9386df});let _0xf109ec=null;switch(_0x3ac394){case _0x2efadb[_0x5be3fb(0x21d)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x1c0)](_0x2ee901,_0x467ca2,void 0x0,{'initialSubUnitId':_0x9386df});break;case _0x2efadb[_0x5be3fb(0x29a)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x2f3)](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x1d3)]:_0xf109ec=await this['_snapshotService'][_0x5be3fb(0x22b)](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x3ed)]:_0xf109ec=await this[_0x5be3fb(0x187)]['loadBoard'](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x3a6)]:_0xf109ec=await this[_0x5be3fb(0x187)]['loadBase'](_0x2ee901,_0x467ca2);break;case _0x2efadb[_0x5be3fb(0x29f)]:_0xf109ec=await this[_0x5be3fb(0x187)][_0x5be3fb(0x3ea)](_0x2ee901,_0x467ca2);break;default:this['_logService'][_0x5be3fb(0x2dc)](_0x5be3fb(0x2a6),_0x5be3fb(0x257));}return _0xf109ec&&this[_0x5be3fb(0x24f)][_0x5be3fb(0x3b1)](_0xf109ec),_0xf109ec;}async[_0x5c9f94(0x2e6)](_0x5da47e,_0xbab6f1,_0x2d1b21){const _0x12982e=_0x5c9f94;var _0x3e3a57;this['_unitInfo$'][_0x12982e(0x3b1)]({'unitId':_0x5da47e,'type':_0xbab6f1,'subUnitId':_0x2d1b21});let _0x4c4dc6=0x0,_0x1fa9f6=await((_0x3e3a57=this['_localCacheService'])==null?void 0x0:_0x3e3a57['loadOfflineData'](_0x5da47e));return _0x1fa9f6&&(_0x1fa9f6[_0x12982e(0x2d1)]||_0x1fa9f6[_0x12982e(0x202)]['length']!==0x0)&&(_0x4c4dc6=_0x1fa9f6['rev']),_0x4c4dc6===0x0&&this['_logService'][_0x12982e(0x1aa)](_0x12982e(0x2a6),_0x12982e(0x1c6)),this[_0x12982e(0x33a)](_0x5da47e,_0xbab6f1,_0x4c4dc6,_0x2d1b21);}};Zn=H([V(0x0,_0x3981ee),V(0x1,_0xcf8d3f(_0x5dfed7)),V(0x2,_0x1da68f(U))],Zn);let Qn=class{constructor(_0x24363d,_0x2dae57,_0x295e65){const _0x57530a=_0x5c9f94;this[_0x57530a(0x379)]=_0x24363d,this[_0x57530a(0x323)]=_0x2dae57,this[_0x57530a(0x28a)]=_0x295e65,z(this,_0x57530a(0x35c),0x0),z(this,_0x57530a(0x24b),new _0x4e03af()),z(this,_0x57530a(0x241),this[_0x57530a(0x24b)]),z(this,_0x57530a(0x259),new Map());}[_0x5c9f94(0x2a2)](_0x276dac){const _0x1e0e33=_0x5c9f94;this[_0x1e0e33(0x35c)]=_0x276dac,this[_0x1e0e33(0x24b)][_0x1e0e33(0x3b1)](_0x276dac);}['getImageSourceCache'](_0x149c1e,_0x1b672c){const _0x19dce6=_0x5c9f94;if(_0x1b672c===_0x237f28[_0x19dce6(0x3b5)]){let _0x538383=new Image();return _0x538383[_0x19dce6(0x1fd)]=_0x149c1e,_0x538383;}return this[_0x19dce6(0x259)][_0x19dce6(0x160)](_0x149c1e);}[_0x5c9f94(0x3c8)](_0x4d1bd3,_0x322abc,_0x5e6949){const _0x44f0e6=_0x5c9f94;_0x322abc!==_0x237f28[_0x44f0e6(0x3b5)]&&_0x5e6949!=null&&this[_0x44f0e6(0x259)]['set'](_0x4d1bd3,_0x5e6949);}async[_0x5c9f94(0x372)](_0x53828b){const _0x3da4fb=_0x5c9f94;try{let _0x3a72c7=this[_0x3da4fb(0x1c2)](this[_0x3da4fb(0x3ae)](),''+_0x53828b),_0x24aba1=(await this[_0x3da4fb(0x379)][_0x3da4fb(0x160)](_0x3a72c7))[_0x3da4fb(0x234)];if(_0x24aba1[_0x3da4fb(0x2dc)]&&_0x24aba1[_0x3da4fb(0x2dc)][_0x3da4fb(0x267)]===_0x1aa6bc['OK']){let _0x21a1fc=_0x6adb79(_0x24aba1['url'],this[_0x3da4fb(0x212)]());return Promise[_0x3da4fb(0x2aa)](_0x21a1fc);}return Promise[_0x3da4fb(0x295)](_0x24aba1[_0x3da4fb(0x2dc)]);}catch(_0x19e9f7){return Promise['reject'](_0x19e9f7);}}async[_0x5c9f94(0x2f1)](_0xb233ab){const _0x11884c=_0x5c9f94;let _0x1b60ac='';if(!_0x3f4112[_0x11884c(0x32d)](_0xb233ab['type']))return this[_0x11884c(0x360)](),Promise[_0x11884c(0x295)](Error(_0x47a5be['ERROR_IMAGE_TYPE']));if(_0xb233ab['size']>_0x4b738e())return this[_0x11884c(0x360)](),Promise[_0x11884c(0x295)](Error(_0x47a5be[_0x11884c(0x274)]));try{let _0x400e8e=new FormData();_0x400e8e['append'](_0x11884c(0x28f),_0xb233ab);let _0xf0ce69=this[_0x11884c(0x28a)][_0x11884c(0x191)](),_0x209adc=_0xf0ce69==null?void 0x0:_0xf0ce69[_0x11884c(0x394)]();if(!_0x209adc)throw Error('unitId\x20is\x20not\x20found');let _0x58be14=this[_0x11884c(0x2bb)]()+_0x11884c(0x2eb)+_0xb233ab[_0x11884c(0x3e5)]['toString']()+'&source='+_0x4a6968[_0x11884c(0x1cc)]+'&assign='+encodeURIComponent(_0x209adc),_0x1a423f={'body':_0x400e8e},_0x126658=(await this[_0x11884c(0x379)][_0x11884c(0x320)](_0x58be14,_0x1a423f))['body'];if(typeof _0x126658[_0x11884c(0x237)]!=_0x11884c(0x2df))return this['_decreaseWaiting'](),Promise['reject'](Error(_0x47a5be['ERROR_IMAGE']));_0x1b60ac=_0x126658[_0x11884c(0x237)];}catch{return this[_0x11884c(0x360)](),Promise['reject'](Error(_0x47a5be[_0x11884c(0x1d2)]));}return new Promise((_0x2c3ee7,_0x328741)=>{const _0x959bed=_0x11884c;let _0x4078ba=new FileReader();_0x4078ba['readAsDataURL'](_0xb233ab),_0x4078ba[_0x959bed(0x2c6)]=_0x46e8f9=>{const _0x5e5f84=_0x959bed;var _0x3974da;let _0x25bcc6=(_0x3974da=_0x46e8f9['target'])==null?void 0x0:_0x3974da[_0x5e5f84(0x1c3)];if(_0x25bcc6==null){this[_0x5e5f84(0x360)](),_0x328741(Error(_0x47a5be['ERROR_IMAGE']));return;}_0x2c3ee7({'imageId':_0x53f585(0x6),'imageSourceType':_0x237f28['UUID'],'source':_0x1b60ac,'base64Cache':_0x25bcc6,'status':_0x47a5be[_0x5e5f84(0x27a)]}),this[_0x5e5f84(0x360)]();};});}[_0x5c9f94(0x2bb)](){const _0x13e2d8=_0x5c9f94;let _0x1b560b=this[_0x13e2d8(0x323)][_0x13e2d8(0x1a1)](R);return(_0x1b560b==null?void 0x0:_0x1b560b['uploadFileServerUrl'])??_0x13e2d8(0x2f4);}['_getSignURL'](){const _0x11b87c=_0x5c9f94;let _0x3a24f3=this[_0x11b87c(0x323)]['getConfig'](R);return(_0x3a24f3==null?void 0x0:_0x3a24f3[_0x11b87c(0x147)])??_0x11b87c(0x192);}[_0x5c9f94(0x212)](){const _0x404bd1=_0x5c9f94;let _0x4ae073=this[_0x404bd1(0x323)][_0x404bd1(0x1a1)](R);return(_0x4ae073==null?void 0x0:_0x4ae073[_0x404bd1(0x2cf)])??location[_0x404bd1(0x2db)];}[_0x5c9f94(0x1c2)](_0x334750,_0x4bfb05){const _0x5f029d=_0x5c9f94;return _0x334750[_0x5f029d(0x153)]('{fileID}',_0x4bfb05);}['_decreaseWaiting'](){const _0x2e4d9b=_0x5c9f94;--this[_0x2e4d9b(0x35c)],this['_change$']['next'](this['_waitCount']);}};Qn=H([V(0x0,_0xcf8d3f(_0x145224)),V(0x1,_0xf41dc9),V(0x2,_0xcf8d3f(_0x4c5cd7))],Qn);let $n=class{constructor(_0x46b94a,_0x27781d){const _0xf766cf=_0x5c9f94;this['_configService']=_0x46b94a,this[_0xf766cf(0x345)]=_0x27781d;}[_0x5c9f94(0x367)](){const _0x3bca50=_0x5c9f94;let _0x2cf988=this[_0x3bca50(0x323)][_0x3bca50(0x1a1)](R);return(_0x2cf988==null?void 0x0:_0x2cf988[_0x3bca50(0x386)])??_0x3bca50(0x3d6);}async['list'](_0x35469e){const _0x23e58f=_0x5c9f94;let _0x5636b1=this['_getAPIPrefixPath']()+_0x23e58f(0x1ae);return{'list':[{'title':'People','mentions':(await this[_0x23e58f(0x345)]['get'](_0x5636b1,{'params':{'objectID':_0x35469e[_0x23e58f(0x13c)],'unitID':_0x35469e[_0x23e58f(0x13c)]}}))['body'][_0x23e58f(0x2cc)][_0x23e58f(0x375)](_0x260795=>({'objectId':_0x260795['id'],'name':_0x260795['subject']['name'],'metadata':{'icon':_0x260795[_0x23e58f(0x35f)][_0x23e58f(0x26c)]},'label':_0x260795['subject'][_0x23e58f(0x31c)],'objectType':_0x4191c4[_0x23e58f(0x3c2)]})),'metadata':{},'type':_0x4191c4['PERSON']}]};}};$n=H([V(0x0,_0xcf8d3f(_0xf41dc9)),V(0x1,_0xcf8d3f(_0x145224))],$n);let er=class extends _0x468ac5{constructor(_0x4377ca,_0x29d2d6,_0x32a253,_0x58389f,_0x535ecf,_0x182284){const _0x158ea2=_0x5c9f94;super(),this[_0x158ea2(0x3eb)]=_0x4377ca,this[_0x158ea2(0x28a)]=_0x29d2d6,this['_permissionService']=_0x32a253,this['_authzIoService']=_0x58389f,this[_0x158ea2(0x144)]=_0x535ecf,this[_0x158ea2(0x143)]=_0x182284,z(this,_0x158ea2(0x301),new Set()),this['disposeWithMe'](()=>this['_closedUnits']['clear']()),this['disposeWithMe'](tr(this[_0x158ea2(0x28a)])['subscribe'](({unitId:_0x228d92})=>this['_closedUnits']['delete'](_0x228d92))),this[_0x158ea2(0x335)](),this[_0x158ea2(0x284)](),[_0x2efadb[_0x158ea2(0x29a)],_0x2efadb[_0x158ea2(0x1d3)],_0x2efadb[_0x158ea2(0x3a6)],_0x2efadb[_0x158ea2(0x3ed)]][_0x158ea2(0x2de)](_0x4c86ad=>{const _0xa20f25=_0x158ea2;this['disposeWithMe'](this['_univerInstanceService'][_0xa20f25(0x2ae)](_0x4c86ad)[_0xa20f25(0x168)](_0x54bc8f=>{const _0x269539=_0xa20f25;this['_closedUnits']['add'](_0x54bc8f[_0x269539(0x394)]()),this[_0x269539(0x3eb)]['get'](_0x126fa5)[_0x269539(0x2f8)](_0x54bc8f[_0x269539(0x394)]());}));});}[_0x5c9f94(0x284)](){const _0x267e35=_0x5c9f94;let _0x3ebf5b=async(_0xbf229a,_0x24787c)=>{const _0x579263=_0x4bc2;let _0x256d77=await this[_0x579263(0x144)][_0x579263(0x29c)](_0xbf229a);this[_0x579263(0x2e7)]||this[_0x579263(0x301)]['has'](_0xbf229a)||!this[_0x579263(0x28a)][_0x579263(0x29e)](_0xbf229a)||_0x256d77[_0x579263(0x1ad)]['pipe'](_0x5d4b25(_0x1e177c=>_0x1e177c[_0x579263(0x198)]===_0x538b71[_0x579263(0x20d)]),_0x212efd(_0x41572c(this['dispose$'],this[_0x579263(0x28a)][_0x579263(0x39f)][_0x579263(0x270)](_0x5d4b25(_0x3deb3c=>_0x3deb3c[_0x579263(0x394)]()===_0xbf229a)))))[_0x579263(0x168)](_0x2b1520=>{const _0x3c286a=_0x579263;let {reason:_0xca08e7}=_0x2b1520[_0x3c286a(0x3cf)];this[_0x3c286a(0x143)]['emitEvent']({'id':_0x3c286a(0x31b),'data':_0xca08e7}),this[_0x3c286a(0x301)][_0x3c286a(0x287)](_0xbf229a),this[_0x3c286a(0x3eb)][_0x3c286a(0x160)](_0x126fa5)['clearUnit'](_0xbf229a);let _0x5aef9f=nr(_0x24787c);_0x5aef9f!=null&&this[_0x3c286a(0x1ea)](_0xbf229a,_0x5aef9f,_0x4616a5[_0x3c286a(0x1db)],!0x1),this['_collaborationSessionService'][_0x3c286a(0x36e)](_0xbf229a);});};tr(this[_0x267e35(0x28a)])[_0x267e35(0x270)](_0x5d4b25(({unitId:_0x3f0195})=>!_0x21b585(_0x3f0195)),_0x212efd(this['dispose$']))[_0x267e35(0x168)](({type:_0x554274,unitId:_0xcf1d53})=>{const _0x583a09=_0x267e35;_0x3ebf5b(_0xcf1d53,_0x554274)['catch'](_0x52184f=>this[_0x583a09(0x3eb)]['get'](_0x3981ee)['error'](_0x52184f));});}[_0x5c9f94(0x335)](){const _0x25e5fd=_0x5c9f94;let _0x558582=async(_0x3d544a,_0x265344)=>{const _0x32c5b9=_0x4bc2;let _0x514726=await this['_collaborationSessionService'][_0x32c5b9(0x29c)](_0x3d544a);if(!(this[_0x32c5b9(0x2e7)]||this[_0x32c5b9(0x301)]['has'](_0x3d544a)||!this['_univerInstanceService'][_0x32c5b9(0x29e)](_0x3d544a))){if(_0x265344===_0x2efadb['UNIVER_SHEET']){let _0x2b4855=this[_0x32c5b9(0x3eb)][_0x32c5b9(0x160)](_0x4be829);await _0x2b4855[_0x32c5b9(0x35b)](_0x3d544a),_0x514726['event$'][_0x32c5b9(0x270)](_0x5d4b25(_0x1518e9=>_0x1518e9['eventID']===_0x538b71['UPDATE_PERMISSION_OBJ']),_0x212efd(_0x41572c(this[_0x32c5b9(0x391)],_0x514726[_0x32c5b9(0x1ad)][_0x32c5b9(0x270)](_0x5d4b25(_0x3780c3=>_0x3780c3['eventID']===_0x538b71['SHOULD_CLOSE_CONN'])),this[_0x32c5b9(0x28a)][_0x32c5b9(0x39f)]['pipe'](_0x5d4b25(_0x3a1ff8=>_0x3a1ff8['getUnitId']()===_0x3d544a)))))['subscribe'](_0xbc1cd0=>{const _0x4ae7ee=_0x32c5b9;let {objectId:_0x8623b6}=_0xbc1cd0['data'];_0x8623b6===_0x3d544a?_0x2b4855[_0x4ae7ee(0x35b)](_0x3d544a):_0x2b4855[_0x4ae7ee(0x23d)](_0x3d544a,_0x8623b6);});return;}_0x514726[_0x32c5b9(0x1ad)]['pipe'](_0x5d4b25(_0x50240e=>_0x50240e[_0x32c5b9(0x198)]===_0x538b71[_0x32c5b9(0x18a)]),_0x212efd(_0x41572c(this[_0x32c5b9(0x391)],_0x514726[_0x32c5b9(0x1ad)][_0x32c5b9(0x270)](_0x5d4b25(_0x142186=>_0x142186[_0x32c5b9(0x198)]===_0x538b71['SHOULD_CLOSE_CONN'])),this[_0x32c5b9(0x28a)][_0x32c5b9(0x39f)][_0x32c5b9(0x270)](_0x5d4b25(_0x494545=>_0x494545['getUnitId']()===_0x3d544a)))))[_0x32c5b9(0x168)](()=>{const _0x3b4874=_0x32c5b9;this[_0x3b4874(0x305)](_0x3d544a,_0x265344)['catch'](_0x266c41=>this[_0x3b4874(0x3eb)]['get'](_0x3981ee)[_0x3b4874(0x2dc)](_0x266c41));}),await this[_0x32c5b9(0x305)](_0x3d544a,_0x265344);}};tr(this[_0x25e5fd(0x28a)])[_0x25e5fd(0x270)](_0x5d4b25(({unitId:_0x5e6e2e})=>!_0x21b585(_0x5e6e2e)),_0x212efd(this[_0x25e5fd(0x391)]))[_0x25e5fd(0x168)](({type:_0x44ae8b,unitId:_0x5e2670})=>{const _0x4532e4=_0x25e5fd;_0x558582(_0x5e2670,_0x44ae8b)[_0x4532e4(0x3e1)](_0x3c29d3=>this[_0x4532e4(0x3eb)][_0x4532e4(0x160)](_0x3981ee)['error'](_0x3c29d3));});}async[_0x5c9f94(0x305)](_0x5e3722,_0x321d){const _0x3e7055=_0x5c9f94;let _0x333db5=nr(_0x321d);if(_0x333db5==null)return;let _0x18e1ed=this[_0x3e7055(0x3eb)]['get'](_0x126fa5);if(_0x18e1ed[_0x3e7055(0x1be)]({'unitId':_0x5e3722,'objectId':_0x5e3722,'objectType':_0x333db5})){await _0x18e1ed[_0x3e7055(0x2ab)](_0x5e3722);return;}let _0x1d2b20=this['_getUnitPermissionPoints'](_0x5e3722,_0x333db5);if(!_0x1d2b20[_0x3e7055(0x2fd)])return;let _0x26734f=await this[_0x3e7055(0x279)][_0x3e7055(0x296)]({'objectID':_0x5e3722,'objectType':_0x333db5,'unitID':_0x5e3722,'actions':_0x1d2b20['map'](({action:_0x299647})=>_0x299647)});this[_0x3e7055(0x2e7)]||this[_0x3e7055(0x301)][_0x3e7055(0x3e3)](_0x5e3722)||!this[_0x3e7055(0x28a)][_0x3e7055(0x29e)](_0x5e3722)||_0x26734f[_0x3e7055(0x2de)](_0x107e19=>{const _0x9754f3=_0x3e7055;let _0x2151e6=_0x107e19[_0x9754f3(0x224)],_0x1eb762=_0x107e19[_0x9754f3(0x296)];_0x2151e6!=null&&_0x1eb762!=null&&_0x1d2b20['filter'](_0x56cfff=>_0x56cfff[_0x9754f3(0x224)]===_0x2151e6)['forEach'](_0x1c72b6=>this['_permissionService'][_0x9754f3(0x285)](_0x1c72b6['id'],_0x1eb762));});}['_getUnitPermissionPoints'](_0x5ecd0c,_0x2a903e){const _0x18dd51=_0x5c9f94;let _0x3a42a8=[];return this[_0x18dd51(0x150)]['getAllPermissionPoint']()[_0x18dd51(0x2de)]((_0x436494,_0x3c799b)=>{const _0x340107=_0x18dd51;_0x436494[_0x340107(0x168)](_0x227bd5=>{const _0x1bd7c3=_0x340107;_0x227bd5['type']===_0x2a903e&&'unitId'in _0x227bd5&&_0x227bd5[_0x1bd7c3(0x13c)]===_0x5ecd0c&&(!('objectId'in _0x227bd5)||_0x227bd5[_0x1bd7c3(0x38b)]===_0x5ecd0c)&&_0x3a42a8['push']({'id':_0x3c799b,'action':_0x227bd5['subType']});})['unsubscribe']();}),_0x3a42a8;}[_0x5c9f94(0x1ea)](_0x5c046e,_0x522df5,_0x490560,_0x50a560){const _0x21e39a=_0x5c9f94;this[_0x21e39a(0x150)]['getAllPermissionPoint']()[_0x21e39a(0x2de)]((_0x5035d1,_0xb10ff2)=>{const _0x11f52e=_0x21e39a;let _0x549570=!0x1;_0x5035d1[_0x11f52e(0x168)](_0x45e766=>{const _0x551a51=_0x11f52e;_0x549570=_0x45e766[_0x551a51(0x34b)]===_0x522df5&&_0x45e766[_0x551a51(0x1fa)]===_0x490560&&'unitId'in _0x45e766&&_0x45e766[_0x551a51(0x13c)]===_0x5c046e&&(!(_0x551a51(0x38b)in _0x45e766)||_0x45e766[_0x551a51(0x38b)]===_0x5c046e);})[_0x11f52e(0x20f)](),_0x549570&&this[_0x11f52e(0x150)]['updatePermissionPoint'](_0xb10ff2,_0x50a560);});}};er=H([V(0x0,_0xcf8d3f(_0x19ff28)),V(0x1,_0x4c5cd7),V(0x2,_0x30415d),V(0x3,_0x18ec33),V(0x4,_0xcf8d3f(In)),V(0x5,_0xcf8d3f(B))],er);function tr(_0x4a66cd){const _0x4debd2=_0x5c9f94;return _0x41572c(...[_0x2efadb[_0x4debd2(0x21d)],_0x2efadb[_0x4debd2(0x29a)],_0x2efadb[_0x4debd2(0x1d3)],_0x2efadb[_0x4debd2(0x3ed)],_0x2efadb[_0x4debd2(0x3a6)]][_0x4debd2(0x375)](_0x4c5e9f=>_0x4a66cd[_0x4debd2(0x2ff)](_0x4c5e9f)['pipe'](_0x13126a(_0x5d04dc=>({'type':_0x4c5e9f,'unitId':_0x5d04dc[_0x4debd2(0x1e7)][_0x4debd2(0x394)]()})))));}function nr(_0x1d9e9e){const _0x519cf8=_0x5c9f94;switch(_0x1d9e9e){case _0x2efadb[_0x519cf8(0x21d)]:return _0x3490f2[_0x519cf8(0x24d)];case _0x2efadb[_0x519cf8(0x29a)]:return _0x3490f2['Document'];case _0x2efadb['UNIVER_SLIDE']:return _0x3490f2[_0x519cf8(0x2c1)];case _0x2efadb['UNIVER_BOARD']:return _0x3490f2[_0x519cf8(0x288)];case _0x2efadb[_0x519cf8(0x3a6)]:return _0x3490f2[_0x519cf8(0x34a)];default:return;}}let rr=class{constructor(_0x5238b4,_0x3eec89){const _0x4db05a=_0x5c9f94;this[_0x4db05a(0x323)]=_0x5238b4,this[_0x4db05a(0x379)]=_0x3eec89;}async[_0x5c9f94(0x2ee)](_0x29927c,_0x19dbca){const _0x1323c0=_0x5c9f94;var _0x36e064;let {unitID:_0x20f1f2,type:_0x41db79,revision:_0x5086c0=0x0}=_0x19dbca,_0x298e77=this[_0x1323c0(0x16d)]()+'/'+_0x41db79+_0x1323c0(0x2d4)+_0x20f1f2+_0x1323c0(0x33e)+_0x5086c0,_0x647daa=(await this['_httpService'][_0x1323c0(0x160)](_0x298e77))[_0x1323c0(0x234)],_0x1767da=(_0x36e064=_0x647daa[_0x1323c0(0x399)])==null?void 0x0:_0x36e064[_0x1323c0(0x1f0)];if(_0x1767da){let _0x336d24=_0x1767da==null?void 0x0:_0x1767da[_0x1323c0(0x325)];_0x1767da[_0x1323c0(0x325)]=_0x202300[_0x1323c0(0x3ec)](_0x523ae7(_0x336d24)),Object[_0x1323c0(0x3a3)](_0x1767da['sheets'])[_0x1323c0(0x2de)](([,_0x2e583d])=>{const _0x136127=_0x1323c0;let _0x51364c=_0x2e583d[_0x136127(0x325)];_0x2e583d['originalMeta']=_0x202300['encode'](_0x523ae7(_0x51364c));});}return _0x647daa;}async[_0x5c9f94(0x203)](_0x6b978a,_0x18b7c3){const _0x7533fe=_0x5c9f94;let {unitID:_0x2d8182,type:_0x371bae,blockID:_0x3ee0af}=_0x18b7c3,_0x336db8=this[_0x7533fe(0x1b9)]()+'/'+_0x371bae+_0x7533fe(0x2d4)+_0x2d8182+'/block/'+_0x3ee0af;return(await this['_httpService'][_0x7533fe(0x160)](_0x336db8))[_0x7533fe(0x234)];}async['getDeserializedSheetBlock'](_0x3320bb,_0x5a6cd9){const _0x44c37e=_0x5c9f94;let {unitID:_0x44413b,type:_0x675675,blockID:_0x4ae5b8}=_0x5a6cd9,_0x16e7e9=this[_0x44c37e(0x1b9)]()+_0x44c37e(0x1e3)+_0x675675+_0x44c37e(0x2d4)+_0x44413b+_0x44c37e(0x1e3)+_0x4ae5b8;return(await this['_httpService']['get'](_0x16e7e9))[_0x44c37e(0x234)];}async[_0x5c9f94(0x2e5)](_0x5cf28c,_0x5ac032){const _0x5238ba=_0x5c9f94;let {unitID:_0x4355b4,type:_0x1c4cfd,from:_0x6bb149,to:_0x1b154f}=_0x5ac032,_0x5527f8=this[_0x5238ba(0x1b9)]()+'/'+_0x1c4cfd+_0x5238ba(0x2d4)+_0x4355b4+_0x5238ba(0x253)+_0x6bb149+_0x5238ba(0x1d5)+_0x1b154f;return(await this['_httpService'][_0x5238ba(0x160)](_0x5527f8))['body'];}[_0x5c9f94(0x16d)](){const _0x38134d=_0x5c9f94;return this['_configService'][_0x38134d(0x1a1)](_0x38134d(0x27f))??this['_getAPIPrefix']();}[_0x5c9f94(0x1b9)](){const _0x300719=_0x5c9f94;let _0x29d741=this[_0x300719(0x323)][_0x300719(0x1a1)](R);return(_0x29d741==null?void 0x0:_0x29d741[_0x300719(0x1b0)])??'/universer-api/snapshot';}async[_0x5c9f94(0x3ac)](_0x287bd0,_0x1e68bb){const _0x198b90=_0x5c9f94;let _0x346317=_0x198b90(0x34e)+_0x1e68bb[_0x198b90(0x34b)]+_0x198b90(0x2d4)+_0x1e68bb[_0x198b90(0x24c)]+_0x198b90(0x32c);return(await this[_0x198b90(0x379)]['get'](_0x346317,{'params':{'resourceId':JSON[_0x198b90(0x2d6)](_0x1e68bb[_0x198b90(0x1c7)])}}))['body'];}[_0x5c9f94(0x3a4)](){const _0x4983f2=_0x5c9f94;throw Error(_0x4983f2(0x2ba));}['updateSnapshot'](){const _0x5d66f1=_0x5c9f94;throw Error(_0x5d66f1(0x2ba));}['saveSheetBlock'](){const _0x400062=_0x5c9f94;throw Error(_0x400062(0x2ba));}[_0x5c9f94(0x201)](){const _0x15d556=_0x5c9f94;throw Error(_0x15d556(0x2ba));}['copyFileMeta'](){const _0x4ac32a=_0x5c9f94;throw Error(_0x4ac32a(0x2ba));}['getLatestCsReqIdBySid'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};rr=H([V(0x0,_0xf41dc9),V(0x1,_0xcf8d3f(_0x145224))],rr);let ir=class extends _0xd03d1e{constructor(_0x956c0a,_0x2bdb67,_0x11a692,_0x3f4ce1,_0x3056ff,_0x55e8dc){const _0x2b431b=_0x5c9f94;super(_0x956c0a,_0x2bdb67,_0x11a692,_0x3f4ce1),this['_transformService']=_0x3056ff,this[_0x2b431b(0x26a)]=_0x55e8dc;}[_0x5c9f94(0x152)](_0x395a70,_0x558a0f){const _0x29c0a2=_0x5c9f94;let _0x9f703c=this[_0x29c0a2(0x3ce)](_0x395a70);if(_0x9f703c)try{let _0x52f1b3=this['_transformStack'](_0x9f703c,_0x558a0f);this['_substituteUndoStack'](_0x395a70,_0x52f1b3);}catch(_0x5e5206){this['_logService'][_0x29c0a2(0x2dc)](_0x29c0a2(0x156),_0x5e5206),this[_0x29c0a2(0x3bf)](_0x395a70);}let _0x45d103=this[_0x29c0a2(0x149)](_0x395a70);if(_0x45d103)try{let _0x6be077=this[_0x29c0a2(0x3d2)](_0x45d103,_0x558a0f);this[_0x29c0a2(0x233)](_0x395a70,_0x6be077);}catch(_0x152933){this['_logService'][_0x29c0a2(0x2dc)](_0x152933),this[_0x29c0a2(0x1a3)](_0x395a70);}}[_0x5c9f94(0x3bf)](_0x3fddf5){const _0x77dddc=_0x5c9f94;let _0x2f5439=this[_0x77dddc(0x3ce)](_0x3fddf5);_0x2f5439&&(_0x2f5439[_0x77dddc(0x2fd)]=0x0,this[_0x77dddc(0x22d)]());}[_0x5c9f94(0x1a3)](_0x392c3f){const _0x4acaaa=_0x5c9f94;let _0x54c221=this[_0x4acaaa(0x149)](_0x392c3f);_0x54c221&&(_0x54c221[_0x4acaaa(0x2fd)]=0x0,this[_0x4acaaa(0x22d)]());}[_0x5c9f94(0x334)](_0xf7be0a,_0x403d29){const _0x3a90f7=_0x5c9f94;this['_undoStacks'][_0x3a90f7(0x1b3)](_0xf7be0a,_0x403d29),this[_0x3a90f7(0x22d)]();}['_substituteRedoStack'](_0x17ceb2,_0x3ff0f9){const _0x2b9596=_0x5c9f94;this[_0x2b9596(0x159)][_0x2b9596(0x1b3)](_0x17ceb2,_0x3ff0f9),this[_0x2b9596(0x22d)]();}[_0x5c9f94(0x3d2)](_0x1eae08,_0x338173){const _0x48e737=_0x5c9f94;let _0x36fd20=[],_0x2a24a1=_0x338173,_0x38a116=_0x338173;for(let _0x592b3f=_0x1eae08[_0x48e737(0x2fd)]-0x1;_0x592b3f>=0x0;_0x592b3f--){let {unitID:_0x4995f4,undoMutations:_0x1fe217,redoMutations:_0x13ffb3}=_0x1eae08[_0x592b3f],_0x311652=this[_0x48e737(0x364)][_0x48e737(0x32f)](_0x2a24a1,_0x1fe217),_0x22bb5b=this[_0x48e737(0x364)][_0x48e737(0x32f)](_0x38a116,_0x13ffb3);if(_0x635ce5(_0x311652)||_0x635ce5(_0x22bb5b)){this[_0x48e737(0x26a)][_0x48e737(0x2dc)](_0x48e737(0x156),_0x48e737(0x235),_0x311652,_0x22bb5b);break;}_0x2a24a1=_0x311652[_0x48e737(0x2d3)],_0x38a116=_0x22bb5b['c1Prime'],_0x36fd20[_0x48e737(0x26f)]({'unitID':_0x4995f4,'undoMutations':_0x311652[_0x48e737(0x1ab)],'redoMutations':_0x22bb5b[_0x48e737(0x1ab)]});}return _0x36fd20[_0x48e737(0x3c3)]();}};ir=H([V(0x0,_0x4c5cd7),V(0x1,_0x397ef7),V(0x2,_0x316af7),V(0x3,_0xf41dc9),V(0x4,_0x173ca8),V(0x5,_0x3981ee)],ir);let ar=class extends _0x5b070b{constructor(_0x49ca30=gt,_0x29f8a2,_0x28acad,_0x2aedde){const _0x3e776a=_0x5c9f94;super(),this[_0x3e776a(0x328)]=_0x49ca30,this[_0x3e776a(0x26a)]=_0x29f8a2,this[_0x3e776a(0x3eb)]=_0x28acad,this[_0x3e776a(0x323)]=_0x2aedde;let {..._0x456779}=_0x195f67({},gt,this[_0x3e776a(0x328)]);if(!_0x456779[_0x3e776a(0x1c1)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x3e776a(0x328)]=_0x456779,this[_0x3e776a(0x323)]['setConfig'](R,_0x456779);}[_0x5c9f94(0x38a)](){const _0x13d033=_0x5c9f94;this[_0x13d033(0x323)][_0x13d033(0x309)](_0x4ee50c,this[_0x13d033(0x328)][_0x13d033(0x264)]??[]),this['_registerDependencies'](),this[_0x13d033(0x19a)]();}[_0x5c9f94(0x25f)](){const _0x6902e3=_0x5c9f94;var _0x353d8b,_0x381c48;this[_0x6902e3(0x3eb)]['has'](_0x34c2a3)&&this[_0x6902e3(0x26a)][_0x6902e3(0x2dc)](_0x6902e3(0x363),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x279331=_0x448bc4([[_0x34c2a3,{'useClass':ir}],[Nn,{'useValue':Pn()}],[In],[Mt],[Jt],[Wn],[Xn],[jt],[er],[B],[Zn],[An,{'useClass':this[_0x6902e3(0x328)][_0x6902e3(0x1c1)]}],[_0x1425c0,{'useClass':rr}],[_0x18ec33,{'useClass':Gn}],[_0x3b2d53,{'useClass':Qn}],[Vn,{'useClass':Hn}],[_0x2e02ae,{'useClass':$n}],[Ln],[Bn]],(_0x353d8b=this[_0x6902e3(0x328)])==null?void 0x0:_0x353d8b[_0x6902e3(0x2d8)]);if(!((_0x381c48=this[_0x6902e3(0x328)])!=null&&_0x381c48[_0x6902e3(0x299)])){let _0x2f0dfd=_0x279331[_0x6902e3(0x244)](([_0x2be234])=>_0x2be234===W);_0x2f0dfd!==-0x1&&_0x279331['splice'](_0x2f0dfd,0x1);}_0x11234a(this[_0x6902e3(0x3eb)],_0x279331);}['_initDependencies'](){const _0x5e0a4f=_0x5c9f94;var _0x1aff81,_0x2035ad;if(this[_0x5e0a4f(0x3eb)][_0x5e0a4f(0x160)](_0x145224)[_0x5e0a4f(0x230)]({'priority':0x14,'interceptor':_0x2c8f3e({'maxParallel':0x6})}),!((_0x1aff81=this['_config'])!=null&&_0x1aff81[_0x5e0a4f(0x238)])){var _0x236a52;(_0x236a52=this[_0x5e0a4f(0x3eb)][_0x5e0a4f(0x160)](U,_0x527f9b[_0x5e0a4f(0x3b9)]))==null||_0x236a52[_0x5e0a4f(0x3b8)]();}(_0x2035ad=this[_0x5e0a4f(0x328)])!=null&&_0x2035ad[_0x5e0a4f(0x1ff)]&&_0x393dc2(this[_0x5e0a4f(0x3eb)],[[Wn]]),_0x393dc2(this[_0x5e0a4f(0x3eb)],[[Xn],[Ln],[er]]);}};z(ar,'pluginName',_0x5c9f94(0x37a)),z(ar,_0x5c9f94(0x3dc),Rn),z(ar,_0x5c9f94(0x31f),zn),ar=H([_0x9817de(_0x2ecc84,_0x10430a,_0xfacf11),V(0x1,_0x3981ee),V(0x2,_0xcf8d3f(_0x19ff28)),V(0x3,_0xf41dc9)],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 _0x3951cd=_0x3bda;(function(_0xee153f,_0x3d4ac6){const _0x3fbe7a=_0x3bda,_0x46845c=_0xee153f();while(!![]){try{const _0x290b0c=parseInt(_0x3fbe7a(0x2bb))/0x1+-parseInt(_0x3fbe7a(0x21a))/0x2*(-parseInt(_0x3fbe7a(0x198))/0x3)+parseInt(_0x3fbe7a(0x180))/0x4*(-parseInt(_0x3fbe7a(0x2db))/0x5)+-parseInt(_0x3fbe7a(0x209))/0x6+parseInt(_0x3fbe7a(0x22b))/0x7*(parseInt(_0x3fbe7a(0x37b))/0x8)+parseInt(_0x3fbe7a(0x2a7))/0x9*(-parseInt(_0x3fbe7a(0x348))/0xa)+parseInt(_0x3fbe7a(0x2ba))/0xb;if(_0x290b0c===_0x3d4ac6)break;else _0x46845c['push'](_0x46845c['shift']());}catch(_0x1c604b){_0x46845c['push'](_0x46845c['shift']());}}}(_0x4acc,0x4fec0));import{HTTPEventType as _0x427cd4,HTTPRequest as _0x113c92,HTTPResponseError as _0x14321a,HTTPService as _0x474fac,ISocketService as _0x45c4a7,MergeInterceptorFactory as _0x24d1e7,ThresholdInterceptorFactory as _0x2afa71,UniverNetworkPlugin as _0x523ba4}from'@univerjs/network';import{BehaviorSubject as _0x2a2d0e,Subject as _0x1c980d,Subscription as _0x52f784,TimeoutError as _0x4191cc,concatMap as _0x55ade0,filter as _0x50c1ff,firstValueFrom as _0x3d76ac,map as _0x558e2b,merge as _0x2c2fbb,of as _0x1f8450,shareReplay as _0x27a7e1,take as _0x528040,takeUntil as _0x212641,timeout as _0x911955}from'rxjs';import{CollaborationEvent as _0x232d5b,CompressMutationService as _0x3bbb34,EmptyMutationInfo as _0x3ab065,ISnapshotServerService as _0x5d6715,ITransformService as _0x457218,RevertRevisionMutation as _0x18357d,RevisionService as _0x1c1bdc,SnapshotService as _0x479f0e,UniverCollaborationPlugin as _0x4827bb,b64DecodeUnicode as _0x210ae1,isTransformChangesetsSuccess as _0x10f8ec,isTransformMutationsWithChangesetFailure as _0x4864dd,isTransformMutationsWithChangesetSuccess as _0x17508c,mapDocumentTypeToUniverInstanceType as _0x962c74,parseChangesetToProtocol as _0x3b24ed,parseProtocolChangeset as _0x3dcc73,textEncoder as _0x52fa7f,uuidv4 as _0x2c83f6}from'@univerjs-pro/collaboration';import{CommandType as _0x5da130,DependentOn as _0x439e93,Disposable as _0x361893,DisposableCollection as _0x4ad1af,IAuthzIoService as _0x435940,ICommandService as _0x140e4b,IConfigService as _0xc1d862,IContextService as _0x288fbe,IImageIoService as _0x5bdc02,ILogService as _0x42f5a0,IMentionIOService as _0x3a35bd,IPermissionService as _0x58d573,IUndoRedoService as _0x5a28cb,IUniverInstanceService as _0xa820d0,ImageSourceType as _0x21fc0d,ImageUploadStatusType as _0x20f770,Inject as _0x2781ac,Injector as _0x4d605d,JSON1 as _0x6cb7ee,JSONX as _0x1a0d9c,LocalUndoRedoService as _0x4e75b7,LocaleService as _0x1b1a62,MentionType as _0x2eef9d,OBJECT_PERMISSION_CONFIG_KEY as _0x330918,ObjectPermissionService as _0xd0c2e4,Optional as _0x1a982e,Plugin as _0x20974d,Quantity as _0x155bfe,Rectangle as _0x20956e,RxDisposable as _0x161c82,TextXActionType as _0x4a44bd,Tools as _0x6b190b,UniverInstanceType as _0x29dacb,UpdateDocsAttributeType as _0x1380a3,UserManagerService as _0x352a5e,Workbook as _0x1d8aa3,createIdentifier as _0xdde0fc,generateRandomId as _0x27f3f5,isInternalEditorID as _0x3ed5ae,merge as _0x42d960,mergeOverrideWithDependencies as _0x1e3bbe,registerDependencies as _0x20083b,resolveWithBasePath as _0x201598,sequenceExecute as _0x3455c2,toDisposable as _0x5d9427,touchDependencies as _0x3fbcdd}from'@univerjs/core';import{DocStateChangeManagerService as _0x3217cb,RichTextEditingMutation as _0x3f15d9}from'@univerjs/docs';import{InsertSheetMutation as _0x1f5fec,SetSelectionsOperation as _0x2560ef,SheetPermissionInitController as _0x291ac6,SheetsSelectionsService as _0x1a9f3a,WorkbookEditablePermission as _0x761135}from'@univerjs/sheets';import{CmdRspCode as _0x57718a,CombCmd as _0x5cf4e9,ErrorCode as _0x378050,FileSource as _0x37ef15,UnitAction as _0x13369c,UnitObject as _0x572dda}from'@univerjs/protocol';import{ITelemetryService as _0x68bd8e}from'@univerjs/telemetry';import{delay as _0x1097e2,filter as _0x45d50e,map as _0x2c9947,take as _0x393e2e,takeUntil as _0x56395a}from'rxjs/operators';import{AddSlidePageMutation as _0x501c42,EnsureSlideMasterPageMutation as _0x3ac25a,MoveSlidePageMutation as _0x4e4720,RemoveSlidePageMutation as _0xec2f10}from'@univerjs-pro/slides';import{UniverLicensePlugin as _0x683f9c,getGlobalObject as _0x159fe3}from'@univerjs-pro/license';import{cbc as _0x1e023e}from'@noble/ciphers/aes.js';import{concatBytes as _0x20f6b6,randomBytes as _0x3cd5c7,utf8ToBytes as _0x564f3a}from'@noble/ciphers/utils.js';import{DRAWING_IMAGE_ALLOW_IMAGE_LIST as _0x15871a,getDrawingImageAllowSize as _0x504316}from'@univerjs/drawing';const R=_0x3951cd(0x34c),Tt={},Et=_0x3951cd(0x340),Dt=_0x3951cd(0x275),Ot=_0x3951cd(0x41d),kt=_0x3951cd(0x30f),At=_0x3951cd(0x31d),jt=_0x3951cd(0x3e3),Mt=0x3e8,Nt=_0x3951cd(0x251),Pt=_0x3951cd(0x164);function Ft(_0x5c83e3){'@babel/helpers - typeof';const _0x23d0e8=_0x3951cd;return Ft=typeof Symbol==_0x23d0e8(0x36e)&&typeof Symbol[_0x23d0e8(0x2f5)]==_0x23d0e8(0x44e)?function(_0x21d4a7){return typeof _0x21d4a7;}:function(_0x143ec3){const _0x15acd4=_0x23d0e8;return _0x143ec3&&typeof Symbol==_0x15acd4(0x36e)&&_0x143ec3['constructor']===Symbol&&_0x143ec3!==Symbol['prototype']?_0x15acd4(0x44e):typeof _0x143ec3;},Ft(_0x5c83e3);}function It(_0x2f9a0b,_0x405f28){const _0x2e3783=_0x3951cd;if(Ft(_0x2f9a0b)!=_0x2e3783(0x1e0)||!_0x2f9a0b)return _0x2f9a0b;var _0x5cf2af=_0x2f9a0b[Symbol['toPrimitive']];if(_0x5cf2af!==void 0x0){var _0xfafcda=_0x5cf2af[_0x2e3783(0x326)](_0x2f9a0b,_0x405f28||'default');if(Ft(_0xfafcda)!=_0x2e3783(0x1e0))return _0xfafcda;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x405f28==='string'?String:Number)(_0x2f9a0b);}function Lt(_0x3e776e){const _0x4d424f=_0x3951cd;var _0x2a4a8b=It(_0x3e776e,_0x4d424f(0x3db));return Ft(_0x2a4a8b)==_0x4d424f(0x44e)?_0x2a4a8b:_0x2a4a8b+'';}function z(_0x14cbc3,_0x4b177c,_0x450f31){const _0x4be0ef=_0x3951cd;return(_0x4b177c=Lt(_0x4b177c))in _0x14cbc3?Object[_0x4be0ef(0x28b)](_0x14cbc3,_0x4b177c,{'value':_0x450f31,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14cbc3[_0x4b177c]=_0x450f31,_0x14cbc3;}const Rt=0x4e20,zt=0x1d4c0;var Bt=class{constructor(_0x51bfd4,_0x1d18b1,_0x35fa76={}){const _0xce7c3b=_0x3951cd;this[_0xce7c3b(0x194)]=_0x1d18b1,this[_0xce7c3b(0x1bc)]=_0x35fa76,z(this,_0xce7c3b(0x35f),0x0),z(this,_0xce7c3b(0x24a),void 0x0),z(this,_0xce7c3b(0x2e1),void 0x0),z(this,_0xce7c3b(0x36d),void 0x0),z(this,_0xce7c3b(0x42b),0x0),z(this,_0xce7c3b(0x245),0x0),z(this,_0xce7c3b(0x1ec),null),z(this,'_pendingReason',null),z(this,_0xce7c3b(0x19c),null),z(this,_0xce7c3b(0x175),0x0),z(this,_0xce7c3b(0x31a),!0x1),z(this,'_now',void 0x0),z(this,_0xce7c3b(0x3e7),void 0x0),this['_reqId']=_0x51bfd4,this[_0xce7c3b(0x2e1)]=_0x35fa76[_0xce7c3b(0x2d8)]??0x4e20,this[_0xce7c3b(0x36d)]=Math[_0xce7c3b(0x276)](_0x35fa76[_0xce7c3b(0x277)]??0x1d4c0,this[_0xce7c3b(0x2e1)]),this[_0xce7c3b(0x1b5)]=_0x35fa76[_0xce7c3b(0x1ed)]??(()=>Date[_0xce7c3b(0x1ed)]()),this[_0xce7c3b(0x24a)]=this[_0xce7c3b(0x1b5)]();}get[_0x3951cd(0x3ee)](){const _0x2b9b77=_0x3951cd;return this[_0x2b9b77(0x3e7)];}get[_0x3951cd(0x457)](){const _0x4e2502=_0x3951cd;return this[_0x4e2502(0x35f)];}get[_0x3951cd(0x3f0)](){const _0x50fe65=_0x3951cd;return this[_0x50fe65(0x245)];}get[_0x3951cd(0x1d1)](){const _0xdd59e7=_0x3951cd;return this[_0xdd59e7(0x1b5)]()-this['_firstSentAt'];}[_0x3951cd(0x3d6)](_0x44119c){const _0x31f9df=_0x3951cd;if(this[_0x31f9df(0x31a)])return;this[_0x31f9df(0x19c)]=_0x44119c;let _0x4d840d=this[_0x31f9df(0x290)];_0x4d840d&&(this[_0x31f9df(0x290)]=null,this[_0x31f9df(0x3ca)](_0x4d840d));}[_0x3951cd(0x451)](){const _0x1466a1=_0x3951cd;this[_0x1466a1(0x19c)]=null;}[_0x3951cd(0x303)](_0xba7154,_0x40d149,_0x310dc1){const _0x544698=_0x3951cd;this[_0x544698(0x31a)]||(_0x310dc1&&this[_0x544698(0x259)](_0x310dc1),this[_0x544698(0x3aa)](),this['_deliver'](_0xba7154),this[_0x544698(0x3e7)]=_0xba7154[_0x544698(0x3ee)]??this[_0x544698(0x3e7)],_0x310dc1&&this[_0x544698(0x1ba)](_0x310dc1,_0x40d149));}[_0x3951cd(0x3aa)](){const _0x1af3b0=_0x3951cd;this[_0x1af3b0(0x20e)](this[_0x1af3b0(0x2e1)],_0x1af3b0(0x157));}['requestRetry'](){const _0x443055=_0x3951cd;this['_schedule'](this[_0x443055(0x42b)],'should_retry');}[_0x3951cd(0x3b6)](){const _0x2102b9=_0x3951cd;this['_disposed']=!0x0,this[_0x2102b9(0x3d8)](),this[_0x2102b9(0x19c)]=null,this[_0x2102b9(0x290)]=null;}[_0x3951cd(0x2b0)](_0x31d686){const _0x18b290=_0x3951cd;let _0x2b36e0=++this[_0x18b290(0x175)],_0xe1c7a3;try{_0xe1c7a3=this[_0x18b290(0x194)](_0x31d686,{'timeout':this['_ackTimeout']});}catch(_0x47603e){this[_0x18b290(0x2e6)](_0x2b36e0,_0x47603e);return;}_0xe1c7a3 instanceof Promise&&_0xe1c7a3['catch'](_0x3cde09=>this[_0x18b290(0x2e6)](_0x2b36e0,_0x3cde09));}[_0x3951cd(0x2e6)](_0x28781f,_0x55c7dd){const _0x5bcbb8=_0x3951cd;if(this['_disposed']||_0x28781f!==this['_sendToken'])return;let _0x126e61=Vt(_0x55c7dd,this[_0x5bcbb8(0x42b)]);_0x126e61!==null&&this['_schedule'](_0x126e61,'request_failed');}['_schedule'](_0x5e3244,_0x3a5460){const _0xa7aa45=_0x3951cd;this[_0xa7aa45(0x31a)]||(this[_0xa7aa45(0x3d8)](),this['_pendingReason']=null,this['_nextDelay']=_0x5e3244,this[_0xa7aa45(0x1ec)]=setTimeout(()=>{const _0x1a6995=_0xa7aa45;this['_timer']=null,this[_0x1a6995(0x19c)]?this[_0x1a6995(0x3ca)](_0x3a5460):this['_pendingReason']=_0x3a5460;},_0x5e3244));}[_0x3951cd(0x3ca)](_0x3cbcc9){const _0x1b0282=_0x3951cd;let _0x5b7231=this[_0x1b0282(0x19c)];if(!_0x5b7231||this[_0x1b0282(0x31a)])return;let {changeset:_0x3bd0e9,unsyncedMutationCount:_0x542b99}=_0x5b7231();this['_countResend'](_0x3cbcc9),this[_0x1b0282(0x3aa)](),this[_0x1b0282(0x2b0)](_0x3bd0e9),this['_reqId']=_0x3bd0e9['reqId']??this[_0x1b0282(0x3e7)],this['_notifyResend'](_0x3cbcc9,_0x542b99);}['_countResend'](_0x45accb){const _0x21be19=_0x3951cd;this[_0x21be19(0x35f)]+=0x1,_0x45accb==='should_retry'||_0x45accb===_0x21be19(0x3ed)?this[_0x21be19(0x42b)]=this[_0x21be19(0x42b)]===0x0?0x3e8:Math['min'](this[_0x21be19(0x42b)]*0x2,0x4e20):_0x45accb===_0x21be19(0x157)&&(this['_ackTimeout']=Math[_0x21be19(0x369)](this[_0x21be19(0x2e1)]*0x2,this['_maxAckTimeout']));}[_0x3951cd(0x1ba)](_0x5142ab,_0x362355){const _0x1daf20=_0x3951cd;var _0xc84d78,_0x322e21;this[_0x1daf20(0x31a)]||(_0xc84d78=(_0x322e21=this[_0x1daf20(0x1bc)])['onResend'])==null||_0xc84d78[_0x1daf20(0x326)](_0x322e21,{'reqId':this['_reqId'],'reason':_0x5142ab,'attempt':this[_0x1daf20(0x35f)],'elapsedMs':this[_0x1daf20(0x1d1)],'unsyncedMutationCount':_0x362355,'nextDelayMs':this[_0x1daf20(0x2e1)]});}[_0x3951cd(0x3d8)](){const _0x286a4d=_0x3951cd;this['_timer']!=null&&(clearTimeout(this[_0x286a4d(0x1ec)]),this['_timer']=null);}};function Vt(_0x384fc9,_0x4c8c45){const _0x2c3698=_0x3951cd;if(_0x384fc9 instanceof _0x4191cc)return null;if(_0x384fc9 instanceof _0x14321a){let _0x1b34e8=_0x384fc9[_0x2c3698(0x3bf)]??0x0;return _0x1b34e8===0x0||_0x1b34e8===0x198||_0x1b34e8===0x1ad||_0x1b34e8>=0x1f4?Math[_0x2c3698(0x276)](_0x4c8c45,Ht(_0x384fc9)):null;}return _0x4c8c45;}function Ht(_0xeca244){const _0x465081=_0x3951cd;var _0xf6453d;let _0xb37075=(_0xf6453d=_0xeca244['headers'])==null||(_0xf6453d=_0xf6453d['get'](_0x465081(0x224)))==null?void 0x0:_0xf6453d[0x0],_0x5b3e9b=_0xb37075===void 0x0?NaN:Number(_0xb37075);return Number[_0x465081(0x166)](_0x5b3e9b)&&_0x5b3e9b>0x0?_0x5b3e9b*0x3e8:0x0;}function Ut(_0x196409){return JSON['stringify'](_0x196409)['length'];}function _0x4acc(){const _0x39e6ff=['memberID','charCodeAt','info','_maxAckTimeout','function','USERS_ENTER','_localeService','filter','sessionStatus$','UPDATE_CURSOR','updateCollaborator','snapshot','getFocusedUnit','length','saveSnapshot','members$','file','192OwVowL','_hasSessionsForEndpoint','stale','startTime','/resources','CHANGESET_SHOULD_RETRY','SUCCUSS','getValue','online$','Response','_createSession','_onLocalMutation','hasLocalChanges','telemetry\x20info\x20is\x20not\x20initialized','onlyLocal','toRemote','setWaitCount','sendHeartbeatTimer','_sessionChannels','_waitCount','isNoop','waitForRoom$','_substituteRedoStack','_getConfig','packageName','updatePermissionObjEvent','getLatestCsReqIdBySid','_conflict$','_listenToNetworkCondition','unitId','_telemetryInfo','action','collaboration-client.auth.needGotoLoginAlert','loginUrlKey','JOIN_ROOM_PERMISSION_DENIED','hasWritePending','_updateUnitPermissionPoint','stopTime','_changesetReqId','reduce','fetch_missing','_throwTelemetryCollaborationNewChangeset','resolveUnit','_imageSourceCache','[OfflineState]','ERROR_EXCEED_SIZE','handshakeTimer','armAckTimeout','_initMergeInterceptor','getMember','roomInfos','_transformStack','loadBase','resend','failed\x20to\x20apply\x20missed\x20changesets!','Base','transformSelections','_onRecvEvent','awaiting','dispose','_getUploadFileURL','_entities','UNIVER_SHEET','transformUndoRedo','userID','[CollaborationSessionService]','_createSocket','_loadSnapshot','status','HEARTBEAT','transformStack\x20failed!','_univerInstanceService','setCfgEnableObjInherit','objectType','[FetchMissState]','objects','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','warn','_collaborationUIEventService','_resend','candidateSocket','onRemoteRetry','setConfig','_transformSelections','_applyRemoteChangeset','UNISCRIPT_RUN','_onConnectionFailed','incrementRevOfUnit','loadUnitOfRevision','_toPending','pauseCollaboration','bind','AWAITING_WITH_PENDING','_clearTimer','slice','endpointKey','string','_createHandler','_snapshotService','toString','close$','getUnitStatus$','_onJoinRoomEvent','_eventService','LOCAL_CACHE_INTERVAL','objectPermissionTypes','collaboration_new_changeset','onSendChangeset','_reqId','SHOULD_CLOSE_CONN','subType','fetchMiss','localChanges','_userManagerService','request_failed','reqId','sheets','nextDelayMs','unitDisposed$','ERROR_IMAGE','{fileID}','error$','/universer-api/snapshot/','_onFetchMissResult','&assign=','getConfig','HTTP\x20','sid','values','_submitChangeset','univer-pro.collaboration-client-adapter-service','timeout','socketSubscription','_remoteRevertInfo','toLocal','_socketService','\x20-\x20','columnGroups','push','uniscriptRunEvent','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_initUnitPermissionChange','indexOf','addImageSourceCache','COMPRESS_MUTATION_APPLY','_transitionLocked','CHANGESET_REJ','onMissingChangesets','_prepareTransformSelections','fetchMissingChangesets','every','/universer-api/authz','[CollaborationSession]','_replayCachedMutations','/allowed','reject','_state','onTransformRemoteChangesetByStateCache','href','deleteCollaborator','batchAllowed','_injector','HEARTBEAT_INTERVAL','JOIN_ROOM_NOT_EXISTS','CONFLICT_PROCESSING','removeMember','localUnitId','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_upload','post','_classifyRemoteChangeset','onRemoteRej','_unlockTransition','RemoteChangesetApplyError','_commandService','upload','_retryBackoff','_requestMissingChangesets','_executeRemoteChangeset','_status$','getSnapshot','toggleOnline','_showConflictProcessingNotification','_adapter','IDLE','routeKey','body','allowed','sendChangesetTimeout','_removeRoom','socketService','fetching\x20missing\x20changesets\x20from\x20','_change$','version','createSocket','registerHTTPInterceptor','onMissedChangesetFetched','diffValue','parse','uploadFileServerUrl','status$','_doCreateSocket','\x20failed:\x20','mutations','textRanges','objectId','_rejectionInfo','synced','_toggleOffline','transformChangesets','list','symbol','onTransformSelections','/new_changes','unbind','includes','unsubscribe','attachment','equals','loadSlide','attempt','_unitLoaded$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','/unit/','ignored\x20remote\x20changeset\x20of\x20revision\x20','_remoteChangesetQueue','RECV','getAllPermissionPoint','[AwaitingWithPendingState]','__splitChunk__','_isEchoedAwaitingChangeset','newCsEvent','replace','NEW_CHANGESETS','stream','next','online','message','_rescheduleHeartbeat','_transformStateCache','complete','reason','_onConflict','_sessionStatus$','changesetResend$','onRemoteAck','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_init','collaboration-client.local-cache-service','ignored\x20acknowledgement\x20of\x20revision\x20','?url=','_logService','_authzIoService','[DataLoaderService]','CLOSE_ROOM','unit-cache-','objectID','LIVESHARE_FETCH_OPERATIONS','eventID','unit','coverType','[PendingState]:\x20received\x20acknowledgement.','cmd','getTypeOfUnitDisposed$','_pendingMutations','_onRemoteChangeset','number','_getCtorByUniverInstanceType','_filterTableActions','_clearRedo','Workbook','ack_timeout','getCurrentRevOfUnit','toggleOffline','_type','INSERT','method','_onRemoteRejected','commentUpdate$','missingChangesets','_onUserLeave','ONLINE','_submitter','liveShareNewHost','/universer-api/uniscript','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','isFinite','deepClone','onMutationExecutedForCollab','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','closeSession','_cfgEnableObjInherit','socketReady','_redoStacks','_socketMessageSubscription','result','_revisionService','apply_failed','FAIL','MSG_FOR_ERROR','requestRetry','_sendToken','_sendingTimer','add','c2Prime','conflict','getCfgEnableObjInherit','_invertDocumentHistory','_members$','trim','_networkConditionService','_rebaseUnchangedAttributes','11188vEepyC','DEFAULT_FILE_NAME','_rebaseParagraphHistory','_shouldReportTelemetry','_collabSessionService','loadOfflineData','type','JOIN_ROOM_FAILED','Error\x20on\x20receiving\x20event','_toggleOnline','endsWith','SYNCED','create','_onRemoteRetry','_initCloseConn','_onOffline','_handlerCallback','_dropAcknowledgedAwaiting','/-/object/-/batch_allowed','_handler','_send','unitId\x20is\x20not\x20found','socket\x20open.','JOINING','3TVfrUQ','_roomMembers','deleteProperty','ignored\x20stale\x20ack\x20of\x20revision\x20','_source','_collaborationPaused','commit','_getAPIPrefix','findIndex','_stopTelemetryCollaborationNewChangeset','error','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','message$','set','pending','?size=','ignored\x20rejection.','readyForCollab','getWorkbookSelections','getUnitId','socket$','/role','disableLocalCache','getImageSourceCache','collaMsg','clear','permission_rejected','\x20at\x20revision\x20','_createInitialStateImpl','_now','leaveEvent','timeoutTimer','_updateLocalCache','apply','_notifyResend','_getSocketChannel','_options','_httpService','originalMeta','submitting\x20changeset\x20','title','_socketChannels','withCredentials','hasOwnProperty','tables','onTransformState','COMPRESS_MUTATION_SEND','_getSendChangesetTimeout','paragraphs','stringify','maxChangesetAckTimeout','event$','startIndex','/universer-api/file/{fileID}/sign-url','/universer-api/snapshot','encode','readAsDataURL','elapsedMs','changesets','getCurrentUser','putCollaborators','duration','getTypeOfUnitAdded$','_lockTransition','_disposeSubmitter','onApply','UNIVER_DOC','_transformAndApplyRemoteChangeset','_initDependencies','/-/object/list','_exhaustRemoteChangesetQueue','snapshotServerUrl','object','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','open$','_telemetryService','/block/','onTransformRemoteChangesetByIMECache','_unsyncedMutationCount','OPTIONAL','isArray','_socket','_clearRetryConnectingTimer','len','_timer','now','prototype','permissionRejEvent','@univerjs-pro/collaboration-client','onload','base-ui.attachment-io.service','params','INGEST','paragraphId','LEAVE','_event$','_scheduleCompleteTimestamp','getMemberID','subscribe','closed','copyFileMeta','unitType','SOCKET_FAILED_RETRY','enableCollaboration','OTHER_CLIENTS_EDITING','roles','UNIVER_BASE','session.room-not-exists','_clearUndo','updateCursorEvent','loadDoc','asObservable','Slide','2524380wFjZSM','USERS_LEAVE','csShouldRetryEvent','_fetchMissChangesets','_handleRemoteChangesets','_schedule','_unitInfo$','_sessions','_dispatchRemoteChangeset','name','_isAckOfAwaitingChangeset','[SyncedState]:\x20received\x20rejection.','_getLoginPath','readCursor','isCompositionEnd','/universer-api/stream/file/upload','onCommentUpdate','160774ebjzwv','oldBody','loadSheet','conflict$','_singleActiveUnitService','baseRev','catch','_onUserJoin','SUBMIT_CHANGESET','getTime','retry-after','_state$','encrypt','_onMessage','LIVESHARE_NEW_HOST','_permissionService','appendMutation','130382EzGKzc','_onConnectionOpen','GLOBAL_ROOMS_CNT_EXCEEDS','session.join-failed','location','_createInitialState','map','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','CONFLICT','UPDATE_PERMISSION_OBJ','JOIN','_loadUnit','univer-pro.collaboration-client-socket-service','initWorkbookPermissionChange','floor','PSEUDO_FETCH_MISSING_RESULT','_docStateChangeManagerService','\x20to\x20','saveImage','CHANGESET_ACK','entityInit$','session.room-full','_registerDependencies','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','updatePermissionPoint','getSheetBlock','_nextDelay','_tryReconnect','createCollaborator','_snapshotServerService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_firstSentAt','onTransformIME','isPermissionRej','src','_startTelemetryCollaborationNewChangeset','override','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_clearTimeoutTimer','_getUndoStack','emitEvent','_getCurrentRevision','CONFLICT_CACHE_CLEAR_FAILED','onConflict','forEach','_countResend','POST','saveAttachment','supports','_transformRemoteChangesetByStateCache','selections','text-x','_waitForHeartbeatResponse','pipe','applied','UNIVER_COLLABORATION_CLIENT_PLUGIN','PERMISSION_DENIED','PERSON','_transformUndoredo','_queuedRemoteChangesets','_updateState','fromCollab','keys','loadBoard','focused$','BASE64','blockRanges','/fetchmissing?from=','_transit','editing\x20status\x20changed\x20to','unitLoaded$','state','createInstance','/universer-api/user/session-ticket','max','maxAckTimeout','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','dispose$','[AwaitingState]','onRemoteRevert','OFFLINE','_updateStatus','getUnit','origin','FETCH_MISS','csRejEvent','UnitEmbedded','headers','fetchThroughInterceptors','UNIVER_BOARD','clearOfflineData','_compressMutationService','sessionStatus','_commentService','Univer','defineProperty','_undoStacks','_roomCreated$','_commentUpdate$','tableSource','_pendingReason','close','People','1.2.0','[SyncedState]:\x20received\x20acknowledgement.','collabSubmitChangesetUrl','getInterceptPoints','revert','maxSize','applyError','init','onLocalMutation','_acknowledgeAwaiting','paragraph','traverse','_tryEnsureSocket','c1Prime','_transformRemoteChangesetByIMECache','getAllMembers','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','signUrlServerUrl','capture','_decreaseWaiting','9zrBsBX','objectActions','unknown','_sheetTransformSelectionsService','_collaborationSessionService','_members','LIVESHARE_REQUEST_HOST','PERMISSION_REJ','_memberService','_deliver','has','update','send','localCacheService','interceptor','awaitingChangeset','_getAPIPrefixPath','listRoles','_replaceFileID','10822559epMjpS','185224gLDKih','Document','[PendingState]:\x20unhandled\x20univer\x20type:\x20','COLLABORATION_ENDPOINT_INVALID','url','range','updateSnapshot','disposeWithMe','UNIVER_SLIDE','collabWebSocketUrl','confirm','localeService','_HTTPService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','offline','echo','_toSynced','transformMutationsWithChangeset','size','&source=','onRemoteChangeset','data','resendTimeouts','/object/','getCollabEntity','_detachSubmitter','refreshUnit','_emitMembers','revision','ackTimeout','save\x20fail\x20reason\x20is\x20','_localCacheService','695hLOrMU','fromCharCode','getUnitType','changeset','not_collab','COMMENT_UPDATE','_ackTimeout','session','[CollaborationEntity]','_prepareConflictRecovery','accept','_onRequestFailed','missing','ERROR_IMAGE_TYPE','onSyncEditingCollabCursor','UUID','state$','awaiting_with_pending','decorate','retryConnectingTimer','_onRemoteACK','getSnapshotAPIPath','MUTATION','LIVESHARE_OPERATION','unitID','csAckEvent','iterator','_transformIMECache','_changesetResend$','_getUnitPermissionPoints','endpoint','_changesetSessionId','_transformService','actions','ack_of_awaiting','session.room-permission-denied','commentUpdateEvent','delete','_createChangesetSubmitter','downloadEndpointUrl','submit','getDeserializedSheetBlock','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_clearHeartbeatTimer','some','AWAITING','getActiveSheet','debug','compose','startsWith','_acknowledgedAwaitingRevision','/universer-api/oidc/authpage','HEARTBEAT_TIMEOUT','_pendingSessions','connection\x20error','get','_instanceService','HELLO','_classifyAck','\x20in\x20_schedule.','requireSession','_identity','pluginName','_disposed','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_config','RETRY_CONNECTING_MAX_COUNT','getPath','NO_OTHER_CLIENTS_EDITING','_incrementRevisionNumber','UNIVER_PDF','authzUrl','_entityInit$','_startCollaboration','_awaitingChangeset','call','[PendingState]:\x20received\x20rejection.','_resolveSessionIdentity','target','onPrepareTransformSelections','unitInfo$','REPLACE','_initRequestHeader','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','changesetAckTimeout','OTHER_CLIENT_EDITING','onStateChange','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','[UniverCollaborationClientPlugin]','\x0aAfter:\x20','_refreshUnitPermission','getResourcesRequest','connectionAttempt','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','FETCH_MISSING','clearUnit','loadPdf','_substituteUndoStack','_conflictInfoFromError','find','_sendHeartbeat','ws://127.0.0.1:8000/universer-api/comb/connect','_getDownloadEndpointURL','[CollaborationSessionService]:\x20socket\x20error','requestParams','getUploadOptions','getSheetId','_joinRoom','append','5596310BBsQGg','executeCommand','retryCount','_getSignURL','collaboration-client.config','isObject','univer-pro.collaboration-client.network-condition.service','_clearScheduledTask','_closedUnits','_transformAndApply','_clearHandshakeTimer','onMissing','put','_transformHistoryMutations','LIVESHARE_TERMINATE','_configService','hostname','updateMember','docStateChange$','cfgEnableObjInherit','/collaborator','_syncEditingCollabCursor','resolve','_attempt','m2Prime','enableAuthServer','setShowComponents','SOCKET_FAILED','/universer-api/comb','socket\x20close','code','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','reconnect','min'];_0x4acc=function(){return _0x39e6ff;};return _0x4acc();}let Wt=function(_0x5e998a){const _0x2c833a=_0x3951cd;return _0x5e998a[_0x2c833a(0x330)]=_0x2c833a(0x330),_0x5e998a[_0x2c833a(0x264)]='PERMISSION_DENIED',_0x5e998a[_0x2c833a(0x41f)]='CONFLICT_PROCESSING',_0x5e998a[_0x2c833a(0x256)]=_0x2c833a(0x256),_0x5e998a[_0x2c833a(0x233)]='CONFLICT',_0x5e998a[_0x2c833a(0x146)]='CLOSE_ROOM',_0x5e998a['JOIN_ROOM_FAILED']=_0x2c833a(0x187),_0x5e998a['SOCKET_FAILED_RETRY']=_0x2c833a(0x1fe),_0x5e998a[_0x2c833a(0x363)]=_0x2c833a(0x363),_0x5e998a['SUBMIT_CHANGESET_TIMEOUT']='SUBMIT_CHANGESET_TIMEOUT',_0x5e998a;}({});var B=class{constructor(){const _0x1322e5=_0x3951cd;z(this,_0x1322e5(0x1f7),new _0x1c980d()),z(this,'event$',this[_0x1322e5(0x1f7)][_0x1322e5(0x207)]());}[_0x3951cd(0x254)](_0x1c92c7){const _0x423e1b=_0x3951cd;this[_0x423e1b(0x1f7)]['next'](_0x1c92c7);}},Gt=class{constructor(){const _0x19bb94=_0x3951cd;z(this,_0x19bb94(0x28e),new _0x1c980d()),z(this,_0x19bb94(0x15e),this[_0x19bb94(0x28e)][_0x19bb94(0x207)]());}[_0x3951cd(0x219)](_0x10ef02){const _0x23d724=_0x3951cd;this[_0x23d724(0x28e)][_0x23d724(0x466)](_0x10ef02);}};function V(_0x269f24,_0x4a123f){return function(_0x406129,_0x5755d4){_0x4a123f(_0x406129,_0x5755d4,_0x269f24);};}function H(_0x312515,_0x1d94a4,_0x50bc3e,_0x14d29a){const _0x217f4f=_0x3951cd;var _0x4a49bd=arguments[_0x217f4f(0x377)],_0x149c1f=_0x4a49bd<0x3?_0x1d94a4:_0x14d29a===null?_0x14d29a=Object['getOwnPropertyDescriptor'](_0x1d94a4,_0x50bc3e):_0x14d29a,_0x548343;if(typeof Reflect==_0x217f4f(0x1e0)&&typeof Reflect['decorate']==_0x217f4f(0x36e))_0x149c1f=Reflect[_0x217f4f(0x2ed)](_0x312515,_0x1d94a4,_0x50bc3e,_0x14d29a);else{for(var _0x4d7653=_0x312515[_0x217f4f(0x377)]-0x1;_0x4d7653>=0x0;_0x4d7653--)(_0x548343=_0x312515[_0x4d7653])&&(_0x149c1f=(_0x4a49bd<0x3?_0x548343(_0x149c1f):_0x4a49bd>0x3?_0x548343(_0x1d94a4,_0x50bc3e,_0x149c1f):_0x548343(_0x1d94a4,_0x50bc3e))||_0x149c1f);}return _0x4a49bd>0x3&&_0x149c1f&&Object[_0x217f4f(0x28b)](_0x1d94a4,_0x50bc3e,_0x149c1f),_0x149c1f;}let Kt=class extends _0x361893{constructor(_0x3b81cf){const _0x149a69=_0x3951cd;super(),this['_univerInstanceService']=_0x3b81cf,z(this,_0x149a69(0x199),new Map()),z(this,_0x149a69(0x28d),new _0x1c980d()),this[_0x149a69(0x2c2)](_0x2c2fbb(this[_0x149a69(0x3c2)][_0x149a69(0x14f)](_0x29dacb[_0x149a69(0x3b9)])[_0x149a69(0x261)](_0x2c9947(_0x25fa12=>_0x25fa12[_0x149a69(0x1ab)]())),this[_0x149a69(0x3c2)][_0x149a69(0x14f)](_0x29dacb[_0x149a69(0x1da)])['pipe'](_0x2c9947(_0x38f98f=>_0x38f98f[_0x149a69(0x1ab)]())),this[_0x149a69(0x3c2)][_0x149a69(0x14f)](_0x29dacb['UNIVER_BOARD'])[_0x149a69(0x261)](_0x2c9947(_0x4ed90a=>_0x4ed90a[_0x149a69(0x1ab)]())),this[_0x149a69(0x3c2)][_0x149a69(0x14f)](_0x29dacb[_0x149a69(0x202)])['pipe'](_0x2c9947(_0x1324b3=>_0x1324b3[_0x149a69(0x1ab)]())))[_0x149a69(0x1fa)](_0x2e9ac5=>this[_0x149a69(0x438)](_0x2e9ac5)));}[_0x3951cd(0x390)](_0x95ce31){const _0x74aa3d=_0x3951cd;return this['_roomMembers'][_0x74aa3d(0x2b1)](_0x95ce31)?_0x1f8450(this['_roomMembers'][_0x74aa3d(0x312)](_0x95ce31)):this['_roomCreated$'][_0x74aa3d(0x261)](_0x2c9947(_0x4ff7a4=>{const _0x4a3f15=_0x74aa3d;if(_0x4ff7a4===_0x95ce31)return this['_roomMembers'][_0x4a3f15(0x312)](_0x4ff7a4);}));}[_0x3951cd(0x359)](_0x8df256,_0x51b5b4){const _0x4e9026=_0x3951cd;let _0x3a881c=this[_0x4e9026(0x199)][_0x4e9026(0x312)](_0x8df256);_0x3a881c||(_0x3a881c=new qt(),this['_roomMembers'][_0x4e9026(0x1a5)](_0x8df256,_0x3a881c),this[_0x4e9026(0x28d)]['next'](_0x8df256)),_0x3a881c[_0x4e9026(0x359)](_0x51b5b4);}[_0x3951cd(0x420)](_0x5d81a8,_0x4a942d){const _0x468e66=_0x3951cd;let _0x871b3f=this[_0x468e66(0x199)][_0x468e66(0x312)](_0x5d81a8);_0x871b3f&&_0x871b3f['removeMember'](_0x4a942d);}['getRoom'](_0x2c5a62){const _0x49e740=_0x3951cd;return this[_0x49e740(0x199)][_0x49e740(0x312)](_0x2c5a62);}[_0x3951cd(0x3ac)](_0x371cbc,_0x16ed76){let _0x2fbb45=this['_roomMembers']['get'](_0x371cbc);if(_0x2fbb45)return _0x2fbb45['getMember'](_0x16ed76);}[_0x3951cd(0x438)](_0x145953){const _0x4eba83=_0x3951cd;let _0xf405b1=this[_0x4eba83(0x199)][_0x4eba83(0x312)](_0x145953);_0xf405b1&&(_0xf405b1[_0x4eba83(0x3b6)](),this[_0x4eba83(0x199)]['delete'](_0x145953));}[_0x3951cd(0x3b6)](){const _0x5de14e=_0x3951cd;this[_0x5de14e(0x199)]['forEach'](_0x4e5766=>_0x4e5766[_0x5de14e(0x3b6)]()),this[_0x5de14e(0x199)]['clear'](),this[_0x5de14e(0x28d)][_0x5de14e(0x46b)]();}};Kt=H([V(0x0,_0xa820d0)],Kt);var qt=class extends _0x361893{constructor(..._0x29631d){const _0x2932c2=_0x3951cd;super(..._0x29631d),z(this,'_members',new Map()),z(this,_0x2932c2(0x17c),new _0x2a2d0e(this['_members'])),z(this,_0x2932c2(0x379),this[_0x2932c2(0x17c)][_0x2932c2(0x207)]());}[_0x3951cd(0x3b6)](){const _0x19aebf=_0x3951cd;this[_0x19aebf(0x2ac)][_0x19aebf(0x1b1)](),this[_0x19aebf(0x17c)][_0x19aebf(0x46b)]();}[_0x3951cd(0x359)](_0x4e6fd0){const _0x2b2afb=_0x3951cd;this[_0x2b2afb(0x2ac)][_0x2b2afb(0x1a5)](_0x4e6fd0[_0x2b2afb(0x36a)],_0x4e6fd0),this[_0x2b2afb(0x2d6)]();}[_0x3951cd(0x420)](_0x5eae29){const _0x5b36f0=_0x3951cd;this[_0x5b36f0(0x2ac)][_0x5b36f0(0x300)](_0x5eae29),this[_0x5b36f0(0x2d6)]();}[_0x3951cd(0x3ac)](_0x5f19ae){const _0x1b5d8f=_0x3951cd;return this[_0x1b5d8f(0x2ac)][_0x1b5d8f(0x312)](_0x5f19ae);}[_0x3951cd(0x2a2)](){const _0x5141b7=_0x3951cd;return Array['from'](this[_0x5141b7(0x2ac)]['values']());}[_0x3951cd(0x2d6)](){const _0x437ed6=_0x3951cd;this[_0x437ed6(0x17c)][_0x437ed6(0x466)](this[_0x437ed6(0x2ac)]);}};function Jt(_0xc014f,_0x48cdfc){const _0x5064f8=_0x3951cd;if(Xt(_0xc014f))return _0x48cdfc;if(_0x48cdfc[_0x5064f8(0x14a)]===_0x232d5b[_0x5064f8(0x222)]){let _0x35d2ee=tn(_0xc014f),_0x35255c=_0x48cdfc;return{..._0x35255c,'data':{..._0x35255c['data'],'unitID':_0xc014f[_0x5064f8(0x329)][_0x5064f8(0x398)],'unitType':_0xc014f[_0x5064f8(0x329)][_0x5064f8(0x1fd)]??_0x35255c[_0x5064f8(0x2d0)][_0x5064f8(0x1fd)],'changeset':_0x35d2ee[_0x5064f8(0x38a)](_0x35255c[_0x5064f8(0x2d0)][_0x5064f8(0x2de)],nn(_0xc014f))}};}if(_0x48cdfc[_0x5064f8(0x14a)]===_0x232d5b[_0x5064f8(0x339)]){let _0x398a21=_0x48cdfc;return{..._0x398a21,'data':{..._0x398a21[_0x5064f8(0x2d0)],'unitID':_0xc014f[_0x5064f8(0x329)][_0x5064f8(0x398)],'unitType':_0xc014f[_0x5064f8(0x329)]['unitType']??_0x398a21[_0x5064f8(0x2d0)][_0x5064f8(0x1fd)]}};}return _0x48cdfc;}function Yt(_0x5c3125,_0x24d3dd){const _0x51b905=_0x3951cd;if(Xt(_0x5c3125))return[_0x24d3dd];switch(_0x24d3dd[_0x51b905(0x14a)]){case _0x232d5b[_0x51b905(0x464)]:return[Zt(_0x5c3125,_0x24d3dd)];case _0x232d5b[_0x51b905(0x23a)]:return[$t(_0x5c3125,_0x24d3dd)];case _0x232d5b[_0x51b905(0x380)]:return[Qt(_0x5c3125,_0x24d3dd)];default:return[_0x24d3dd];}}function Xt(_0x5d9fb1){const _0x235f3=_0x3951cd;return _0x5d9fb1[_0x235f3(0x329)]['endpoint']==null&&_0x5d9fb1[_0x235f3(0x329)][_0x235f3(0x398)]===_0x5d9fb1[_0x235f3(0x421)]&&!_0x5d9fb1[_0x235f3(0x2de)];}function Zt(_0x3dacf2,_0x1074d5){const _0x37885a=_0x3951cd;return{..._0x1074d5,'data':_0x3b24ed(en(_0x3dacf2,_0x3dcc73(_0x1074d5[_0x37885a(0x2d0)])))};}function Qt(_0x172cd1,_0x5a6ad4){return{..._0x5a6ad4,'data':en(_0x172cd1,_0x5a6ad4['data'])};}function $t(_0x14ab2b,_0x156b82){const _0x154cea=_0x3951cd;let _0x337a25=_0x156b82[_0x154cea(0x2d0)];return{..._0x156b82,'data':{..._0x337a25,'changesets':_0x337a25[_0x154cea(0x1d2)]['map'](_0x2d3c0e=>_0x3b24ed(en(_0x14ab2b,_0x3dcc73(_0x2d3c0e))))}};}function en(_0x38bb73,_0x5e5590){const _0x59a501=_0x3951cd;return tn(_0x38bb73)[_0x59a501(0x401)](_0x5e5590,nn(_0x38bb73));}function tn(_0x718ad5){const _0x993254=_0x3951cd;if(!_0x718ad5[_0x993254(0x2de)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x718ad5['changeset'];}function nn(_0x830fa2){const _0x2d4309=_0x3951cd;return{'localUnitId':_0x830fa2['localUnitId'],'unitType':_0x830fa2[_0x2d4309(0x1fd)],'target':_0x830fa2[_0x2d4309(0x329)]};}let rn=function(_0x409f05){const _0x1af665=_0x3951cd;return _0x409f05[_0x409f05[_0x1af665(0x433)]=0x0]=_0x1af665(0x433),_0x409f05[_0x409f05[_0x1af665(0x197)]=0x1]=_0x1af665(0x197),_0x409f05[_0x409f05[_0x1af665(0x27c)]=0x2]=_0x1af665(0x27c),_0x409f05[_0x409f05[_0x1af665(0x161)]=0x3]='ONLINE',_0x409f05;}({});function _0x3bda(_0x1a1e94,_0x23f444){_0x1a1e94=_0x1a1e94-0x144;const _0x4acc48=_0x4acc();let _0x3bda48=_0x4acc48[_0x1a1e94];return _0x3bda48;}const an={[_0x57718a[_0x3951cd(0x172)]]:_0x3951cd(0x22e),[_0x57718a['JOIN_ROOM_FULL']]:_0x3951cd(0x240),[_0x57718a[_0x3951cd(0x41e)]]:_0x3951cd(0x203),[_0x57718a[_0x3951cd(0x39d)]]:_0x3951cd(0x2fe),[_0x57718a[_0x3951cd(0x22d)]]:'session.room-cnt-exceeds'};let on=class extends _0x161c82{get[_0x3951cd(0x288)](){const _0x790c06=_0x3951cd;return this[_0x790c06(0x46e)][_0x790c06(0x382)]();}constructor(_0xbb5ec9,_0x5edc6c,_0x46e7b1,_0xb275a8,_0x3179f0,_0x3fc9f4,_0x40c1b4){const _0x1d7f12=_0x3951cd;super(),this['_identity']=_0xbb5ec9,this[_0x1d7f12(0x476)]=_0x46e7b1,this[_0x1d7f12(0x2af)]=_0xb275a8,this[_0x1d7f12(0x289)]=_0x3179f0,this[_0x1d7f12(0x3c9)]=_0x3fc9f4,this[_0x1d7f12(0x1e3)]=_0x40c1b4,z(this,_0x1d7f12(0x46e),new _0x2a2d0e(0x0)),z(this,_0x1d7f12(0x372),this['_sessionStatus$']['asObservable']()),z(this,_0x1d7f12(0x1f7),new _0x1c980d()),z(this,_0x1d7f12(0x1cb),this[_0x1d7f12(0x1f7)][_0x1d7f12(0x207)]()),z(this,_0x1d7f12(0x1e9),void 0x0),z(this,_0x1d7f12(0x16e),void 0x0),z(this,'_shouldReportTelemetry',!0x1),z(this,_0x1d7f12(0x399),null),this[_0x1d7f12(0x183)]=!!this[_0x1d7f12(0x1e3)],_0x5edc6c[_0x1d7f12(0x261)](_0x212641(this[_0x1d7f12(0x279)]))[_0x1d7f12(0x1fa)](_0x24303d=>{const _0x577084=_0x1d7f12;if(_0x24303d!==void 0x0){if(this[_0x577084(0x1e9)]=_0x24303d,_0x24303d)this['_joinRoom'](_0x24303d),this['_socketMessageSubscription']=_0x24303d[_0x577084(0x1a4)][_0x577084(0x1fa)](_0x5bbbbf=>{const _0x1fcb62=_0x577084;_0x5bbbbf[_0x1fcb62(0x434)]===this[_0x1fcb62(0x318)][_0x1fcb62(0x329)][_0x1fcb62(0x398)]&&this['_onCombEvent'](_0x5bbbbf);});else{var _0x344946;this[_0x577084(0x3a4)](),this[_0x577084(0x46e)][_0x577084(0x466)](0x2),(_0x344946=this['_socketMessageSubscription'])==null||_0x344946[_0x577084(0x453)](),this['_socketMessageSubscription']=null;}}});}['getMemberID'](){const _0x193095=_0x3951cd;var _0x3beda0;return((_0x3beda0=this[_0x193095(0x1e9)])==null?void 0x0:_0x3beda0['memberID'])??null;}[_0x3951cd(0x3b6)](){const _0x567bc5=_0x3951cd;super[_0x567bc5(0x3b6)](),this[_0x567bc5(0x291)](),this[_0x567bc5(0x279)][_0x567bc5(0x466)](),this[_0x567bc5(0x279)]['complete']();}[_0x3951cd(0x291)](){const _0x2af47e=_0x3951cd;var _0x348723;this[_0x2af47e(0x3a4)](),(_0x348723=this[_0x2af47e(0x1e9)])==null||_0x348723[_0x2af47e(0x2b3)]({'cmd':_0x5cf4e9[_0x2af47e(0x1f6)],'data':{'roomID':this[_0x2af47e(0x318)][_0x2af47e(0x329)][_0x2af47e(0x398)]}}),this[_0x2af47e(0x1f7)][_0x2af47e(0x46b)](),this[_0x2af47e(0x46e)][_0x2af47e(0x46b)]();}['_onCombEvent'](_0x355312){const _0x16c6e7=_0x3951cd;_0x355312['cmd']===_0x5cf4e9['JOIN']?this['_onJoinRoomEvent'](_0x355312):_0x355312[_0x16c6e7(0x14e)]===_0x5cf4e9[_0x16c6e7(0x45d)]&&this[_0x16c6e7(0x3b4)](_0x355312);}[_0x3951cd(0x346)](_0x482af6){const _0x570495=_0x3951cd;this['_sessionStatus$'][_0x570495(0x466)](0x1),_0x482af6[_0x570495(0x2b3)]({'cmd':_0x5cf4e9[_0x570495(0x235)],'routeKey':this[_0x570495(0x318)][_0x570495(0x329)][_0x570495(0x398)],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x570495(0x329)][_0x570495(0x398)]}]}});}[_0x3951cd(0x3e1)](_0xbec00c){const _0xddcae3=_0x3951cd;var _0x3245ae;if(_0xbec00c[_0xddcae3(0x366)]in an){this[_0xddcae3(0x3c9)][_0xddcae3(0x254)]({'id':_0xddcae3(0x187),'data':an[_0xbec00c[_0xddcae3(0x366)]]}),this[_0xddcae3(0x46e)]['next'](0x2);return;}this[_0xddcae3(0x46e)][_0xddcae3(0x466)](0x3);let _0x5c1321=(_0x3245ae=_0xbec00c[_0xddcae3(0x2d0)][_0xddcae3(0x3ad)][this[_0xddcae3(0x318)]['target'][_0xddcae3(0x398)]])==null?void 0x0:_0x3245ae['members'];_0x5c1321&&_0x5c1321[_0xddcae3(0x258)](_0x3aaef3=>this[_0xddcae3(0x2af)][_0xddcae3(0x359)](this[_0xddcae3(0x318)]['localUnitId'],_0x3aaef3));}['_onRecvEvent'](_0x5d621c){const _0x14ad75=_0x3951cd;try{let _0x53ab36=Yt(this[_0x14ad75(0x318)],_0x5d621c[_0x14ad75(0x2d0)]);for(let _0x5a3389 of _0x53ab36)switch(_0x5a3389[_0x14ad75(0x14a)]){case _0x232d5b[_0x14ad75(0x36f)]:this[_0x14ad75(0x221)](_0x5a3389),this['_event$'][_0x14ad75(0x466)](_0x5a3389);break;case _0x232d5b['USERS_LEAVE']:this[_0x14ad75(0x160)](_0x5a3389),this[_0x14ad75(0x1f7)][_0x14ad75(0x466)](_0x5a3389);break;case _0x232d5b[_0x14ad75(0x23e)]:case _0x232d5b[_0x14ad75(0x380)]:this[_0x14ad75(0x1a1)](),this[_0x14ad75(0x1f7)][_0x14ad75(0x466)](_0x5a3389);break;case _0x232d5b[_0x14ad75(0x173)]:this['_logService'][_0x14ad75(0x1a2)](_0x14ad75(0x2d9)+JSON[_0x14ad75(0x1c9)](_0x5a3389)),this[_0x14ad75(0x1f7)][_0x14ad75(0x466)](_0x5a3389);break;case _0x232d5b['COMMENT_UPDATE']:this[_0x14ad75(0x289)]['onCommentUpdate'](_0x5a3389['data']),this['_event$'][_0x14ad75(0x466)](_0x5a3389);break;default:this[_0x14ad75(0x1f7)]['next'](_0x5a3389);}}catch(_0x82bc65){this[_0x14ad75(0x476)][_0x14ad75(0x1a2)](_0x82bc65,_0x5d621c);}}[_0x3951cd(0x221)](_0x1edb15){const _0x5348fd=_0x3951cd;this[_0x5348fd(0x2af)]['updateMember'](this[_0x5348fd(0x318)][_0x5348fd(0x421)],_0x1edb15[_0x5348fd(0x2d0)]);}['_onUserLeave'](_0x790cf2){const _0x159ab3=_0x3951cd;this[_0x159ab3(0x2af)][_0x159ab3(0x420)](this['_identity']['localUnitId'],_0x790cf2[_0x159ab3(0x2d0)][_0x159ab3(0x36a)]);}async[_0x3951cd(0x2b3)](_0x1f99b2,_0xa378e3,_0x9b6b4){const _0x33c353=_0x3951cd;if(this[_0x33c353(0x288)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x34bdd0=Jt(this[_0x33c353(0x318)],_0x1f99b2);_0x34bdd0['eventID']===_0x232d5b[_0x33c353(0x222)]&&this['_startTelemetryCollaborationNewChangeset'](_0x34bdd0);let _0x5db8f8={'cmd':_0x5cf4e9[_0x33c353(0x1f4)],'routeKey':this[_0x33c353(0x318)][_0x33c353(0x329)][_0x33c353(0x398)],'routeType':'','data':_0x34bdd0};return _0x9b6b4===void 0x0?this[_0x33c353(0x1e9)][_0x33c353(0x2b3)](_0x5db8f8):this[_0x33c353(0x1e9)][_0x33c353(0x2b3)](_0x5db8f8,_0x9b6b4);}catch(_0xc0c60c){this['_logService'][_0x33c353(0x1a2)](_0xc0c60c);}}[_0x3951cd(0x24e)](_0x232f0b){const _0x37d9e5=_0x3951cd;if(!this[_0x37d9e5(0x183)])return;let {data:_0x1724a7}=_0x232f0b,{unitID:_0x37766a,changeset:_0x347188}=_0x1724a7,{mutations:_0x3363c3,type:_0x2b481c}=_0x347188;this[_0x37d9e5(0x399)]={'unitId':_0x37766a,'type':_0x2b481c,'startTime':performance[_0x37d9e5(0x1ed)](),'stopTime':0x0,'duration':0x0,'size':Ut(_0x3363c3)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x1e034e=_0x3951cd;this[_0x1e034e(0x183)]&&(this[_0x1e034e(0x399)]?(this['_telemetryInfo'][_0x1e034e(0x3a0)]=performance[_0x1e034e(0x1ed)](),this[_0x1e034e(0x399)][_0x1e034e(0x1d5)]=this[_0x1e034e(0x399)][_0x1e034e(0x3a0)]-this['_telemetryInfo'][_0x1e034e(0x37e)],this['_telemetryService'][_0x1e034e(0x2a5)](_0x1e034e(0x3e5),this[_0x1e034e(0x399)]),this[_0x1e034e(0x399)]=null):this[_0x1e034e(0x476)]['error'](_0x1e034e(0x413),_0x1e034e(0x388)));}[_0x3951cd(0x3a4)](){this['_telemetryInfo']=null;}};on=H([V(0x2,_0x42f5a0),V(0x3,_0x2781ac(Kt)),V(0x4,_0x2781ac(Gt)),V(0x5,_0x2781ac(B)),V(0x6,_0x1a982e(_0x68bd8e))],on);const U=_0xdde0fc(_0x3951cd(0x473));function sn(_0x1a8580,_0x9eea94){const _0x581ae8=_0x3951cd;return _0x9eea94===''||_0x9eea94==null?_0x581ae8(0x147)+_0x1a8580:_0x581ae8(0x147)+_0x1a8580+'-'+encodeURIComponent(_0x9eea94);}function cn(_0xb3e483){const _0x4a807f=_0x3951cd;let {unitID:_0x5257fc,mutations:_0x31a122}=_0xb3e483;return{'unitId':_0x5257fc,'subUnitId':_0x31a122[_0x4a807f(0x377)]>0x0?_0x31a122[0x0][_0x4a807f(0x1f3)]['subUnitId']:null};}let ln=class{constructor(_0x1cf126,_0x3b9b8e,_0x3894b1){const _0x3295cc=_0x3951cd;this[_0x3295cc(0x41c)]=_0x1cf126,this[_0x3295cc(0x2fb)]=_0x3b9b8e,this[_0x3295cc(0x313)]=_0x3894b1;}[_0x3951cd(0x3b3)](_0xf04f54){const _0x4c629a=_0x3951cd;var _0x1ef69e,_0xde5352;let _0x2249ea=this[_0x4c629a(0x41c)]['get'](_0x1a9f3a),{unitId:_0x139cb3,subUnitId:_0x478784}=cn(_0xf04f54),_0x2f18a8=_0x2249ea==null?void 0x0:_0x2249ea[_0x4c629a(0x1aa)](_0x139cb3)['getCurrentSelections'](),_0x1e604a=(_0x1ef69e=this[_0x4c629a(0x313)][_0x4c629a(0x27e)](_0x139cb3))==null||(_0x1ef69e=_0x1ef69e[_0x4c629a(0x309)]())==null?void 0x0:_0x1ef69e[_0x4c629a(0x345)]();if(_0x2f18a8['length']===0x0||!_0x139cb3||!_0x478784)return;let _0x1955ad=[{'id':_0x2560ef['id'],'params':{'unitId':_0x139cb3,'subUnitId':_0x1e604a,'selections':_0x6b190b[_0x4c629a(0x167)](_0x2f18a8)}}],_0x289aad=this[_0x4c629a(0x2fb)][_0x4c629a(0x2cc)](_0xf04f54,_0x1955ad);if(!_0x17508c(_0x289aad))throw _0x289aad[_0x4c629a(0x1a2)];let _0xc71b73=(_0xde5352=_0x289aad[_0x4c629a(0x360)][0x0])==null||(_0xde5352=_0xde5352['params'])==null?void 0x0:_0xde5352[_0x4c629a(0x25e)];if(Array[_0x4c629a(0x1e8)](_0xc71b73)&&_0xc71b73[_0x4c629a(0x377)]){if(_0xc71b73['length']===_0x1955ad[0x0][_0x4c629a(0x1f3)][_0x4c629a(0x25e)]['length']&&_0xc71b73[_0x4c629a(0x411)]((_0x1a675a,_0xb8dbd8)=>_0x20956e[_0x4c629a(0x455)](_0x1a675a[_0x4c629a(0x2c0)],_0x1955ad[0x0][_0x4c629a(0x1f3)]['selections'][_0xb8dbd8]['range'])))return;this[_0x4c629a(0x41c)][_0x4c629a(0x312)](_0x140e4b)[_0x4c629a(0x349)](_0x2560ef['id'],{'unitId':_0x139cb3,'subUnitId':_0x1e604a,'selections':_0xc71b73});}}};ln=H([V(0x0,_0x2781ac(_0x4d605d)),V(0x1,_0x457218),V(0x2,_0xa820d0)],ln);const W=_0xdde0fc('univer-pro.collaboration-client.single-active-unit-service');let un=function(_0x452063){const _0x3a4841=_0x3951cd;return _0x452063[_0x452063[_0x3a4841(0x31f)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x452063[_0x452063['OTHER_CLIENTS_EDITING']=0x1]=_0x3a4841(0x200),_0x452063;}({});function dn(_0x1e021d){const _0x412eb7=_0x3951cd;var _0x3db731;return!!((_0x3db731=_0x1e021d[_0x412eb7(0x1f3)])!=null&&_0x3db731[_0x412eb7(0x460)]);}const fn=new Set([_0x1f5fec['id']]),pn=new Set([_0x501c42['id'],_0x3ac25a['id'],_0x4e4720['id'],_0xec2f10['id']]);function mn(_0x3d41d3,_0x2e006a=fn){const _0x544c97=_0x3951cd;let _0x315eb0=[];for(let _0x5b84ad of _0x3d41d3){if(_0x2e006a[_0x544c97(0x2b1)](_0x5b84ad['id'])||dn(_0x5b84ad)){if(_0x315eb0[_0x544c97(0x377)]>0x0)break;_0x315eb0[_0x544c97(0x405)](_0x5b84ad);break;}_0x315eb0[_0x544c97(0x405)](_0x5b84ad);}return _0x315eb0;}function hn(_0x38e1f0,_0x5dbc8d,_0x4bf43c,_0x45c02d,_0xff391d){const _0x2054ad=_0x3951cd;let _0x1eba17=mn(_0x38e1f0),_0x168f73=_0xff391d['getCurrentUser'](),_0x1adf72=(_0x168f73==null?void 0x0:_0x168f73[_0x2054ad(0x3bb)])??_0x2054ad(0x2a9),_0x201db4=(_0x168f73==null?void 0x0:_0x168f73[_0x2054ad(0x36a)])??_0x2054ad(0x2a9);return{'changeset':{'unitID':_0x5dbc8d,'type':_0x962c74(_0x4bf43c[_0x2054ad(0x2dd)](_0x5dbc8d)),'baseRev':_0x45c02d[_0x2054ad(0x158)](_0x5dbc8d),'revision':0x0,'userID':_0x1adf72,'memberID':_0x201db4,'mutations':_0x1eba17},'pendingMutations':_0x38e1f0[_0x2054ad(0x3d9)](_0x1eba17[_0x2054ad(0x377)])};}const gn=hn;function _n(_0x5e4ff5,_0x49e71b,_0x41ee36,_0x4e1f35,_0x326dbe){const _0x832074=_0x3951cd;let _0x43cdfb=mn(_0x5e4ff5,pn),_0x473ae1=_0x326dbe[_0x832074(0x1d3)](),_0x9b25ae=(_0x473ae1==null?void 0x0:_0x473ae1[_0x832074(0x3bb)])??_0x832074(0x2a9),_0xe04304=(_0x473ae1==null?void 0x0:_0x473ae1[_0x832074(0x36a)])??_0x832074(0x2a9);return{'changeset':{'unitID':_0x49e71b,'type':_0x962c74(_0x41ee36[_0x832074(0x2dd)](_0x49e71b)),'baseRev':_0x4e1f35['getCurrentRevOfUnit'](_0x49e71b),'revision':0x0,'userID':_0x9b25ae,'memberID':_0xe04304,'mutations':_0x43cdfb},'pendingMutations':_0x5e4ff5[_0x832074(0x3d9)](_0x43cdfb[_0x832074(0x377)])};}function vn(_0x1ea401,_0x54cbbf,_0x14e861,_0x4377c7,_0x39407b){const _0x17d634=_0x3951cd;let _0x362d3a=_0x1ea401[_0x17d634(0x3a2)]((_0x3d1089,_0x11a7ba)=>{const _0x9aa811=_0x17d634;let _0x140479=_0x3d1089[_0x3d1089['length']-0x1],{id:_0x327732}=_0x140479??{},{id:_0x3d6b06,type:_0x75ca6}=_0x11a7ba,_0x5e6fca=_0x11a7ba[_0x9aa811(0x1f3)];if(_0x327732&&_0x327732!==_0x3d6b06)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x327732+_0x9aa811(0x403)+_0x3d6b06+'.');if(!_0x140479)return[{'id':_0x3d6b06,'type':_0x75ca6,'params':{'unitId':_0x5e6fca[_0x9aa811(0x398)],'textRanges':_0x5e6fca[_0x9aa811(0x447)],'actions':_0x5e6fca[_0x9aa811(0x2fc)]}}];let _0x7fb7c6=_0x140479['params'];return yn(_0x7fb7c6,_0x5e6fca)?[..._0x3d1089[_0x9aa811(0x3d9)](0x0,-0x1),{..._0x140479,'id':_0x3d6b06,'type':_0x75ca6,'params':{'unitId':_0x5e6fca[_0x9aa811(0x398)],'textRanges':_0x5e6fca[_0x9aa811(0x447)],'actions':_0x1a0d9c[_0x9aa811(0x30b)](_0x7fb7c6[_0x9aa811(0x2fc)],_0x5e6fca['actions'])}}]:[..._0x3d1089,{'id':_0x3d6b06,'type':_0x75ca6,'params':{'unitId':_0x5e6fca[_0x9aa811(0x398)],'textRanges':_0x5e6fca[_0x9aa811(0x447)],'actions':_0x5e6fca['actions']}}];},[]),_0xa57276=_0x39407b[_0x17d634(0x1d3)](),_0x1a6ac2=(_0xa57276==null?void 0x0:_0xa57276[_0x17d634(0x3bb)])??_0x17d634(0x2a9),_0x5e03f2=(_0xa57276==null?void 0x0:_0xa57276[_0x17d634(0x36a)])??_0x17d634(0x2a9);return{'changeset':{'unitID':_0x54cbbf,'type':_0x962c74(_0x14e861['getUnitType'](_0x54cbbf)),'baseRev':_0x4377c7['getCurrentRevOfUnit'](_0x54cbbf),'revision':0x0,'userID':_0x1a6ac2,'memberID':_0x5e03f2,'mutations':_0x362d3a},'pendingMutations':_0x1ea401['slice'](_0x1ea401[_0x17d634(0x377)])};}function yn(_0x4f1df2,_0x223d53){const _0x391aa3=_0x3951cd;return!bn(_0x4f1df2)&&!bn(_0x223d53)&&xn(_0x4f1df2[_0x391aa3(0x2fc)],_0x223d53['actions']);}function bn(_0x38084e){const _0x355ffe=_0x3951cd;return _0x38084e[_0x355ffe(0x217)]!==void 0x0;}function xn(_0x3ad07b,_0x2925b5){return Sn(_0x3ad07b)&&Sn(_0x2925b5)&&!wn(_0x3ad07b)&&!wn(_0x2925b5)&&!Cn(_0x3ad07b)&&!Cn(_0x2925b5);}function Sn(_0x48b950){const _0x22e5cf=_0x3951cd;return Tn(_0x48b950)[_0x22e5cf(0x307)](_0x58ac56=>En(_0x58ac56)&&_0x58ac56['et']===_0x22e5cf(0x25f));}function Cn(_0x191c47){const _0x200da9=_0x3951cd;return Tn(_0x191c47)[_0x200da9(0x307)](_0x58b91b=>Array[_0x200da9(0x1e8)](_0x58b91b)||typeof _0x58b91b==_0x200da9(0x3db)||typeof _0x58b91b==_0x200da9(0x152));}function wn(_0x363d86){const _0x4f76b4=_0x3951cd;return Tn(_0x363d86)[_0x4f76b4(0x307)](_0x2a6e39=>!En(_0x2a6e39)||_0x2a6e39['et']!==_0x4f76b4(0x25f)||!Array[_0x4f76b4(0x1e8)](_0x2a6e39['e'])?!0x1:_0x2a6e39['e']['some'](_0x296814=>!En(_0x296814)||!En(_0x296814[_0x4f76b4(0x435)])?!0x1:Object[_0x4f76b4(0x1ee)][_0x4f76b4(0x1c3)]['call'](_0x296814[_0x4f76b4(0x435)],_0x4f76b4(0x1c4))||Object[_0x4f76b4(0x1ee)][_0x4f76b4(0x1c3)][_0x4f76b4(0x326)](_0x296814[_0x4f76b4(0x435)],_0x4f76b4(0x404))||Object[_0x4f76b4(0x1ee)][_0x4f76b4(0x1c3)][_0x4f76b4(0x326)](_0x296814[_0x4f76b4(0x435)],_0x4f76b4(0x26e))));}function Tn(_0x1f506c){const _0x23802e=_0x3951cd;if(!Array[_0x23802e(0x1e8)](_0x1f506c))return[];let _0x2d9851=_0x1f506c[_0x23802e(0x452)]('body')?_0x1f506c:_0x1f506c[_0x23802e(0x33e)](_0x24ed15=>Array[_0x23802e(0x1e8)](_0x24ed15)&&_0x24ed15['includes'](_0x23802e(0x435)));if(!Array[_0x23802e(0x1e8)](_0x2d9851))return[];let _0x4e6348=_0x2d9851[_0x23802e(0x409)](_0x23802e(0x435));return _0x4e6348===-0x1?[]:_0x2d9851['slice'](_0x4e6348+0x1);}function En(_0x2f203a){const _0x450c60=_0x3951cd;return typeof _0x2f203a==_0x450c60(0x1e0)&&!!_0x2f203a&&!Array[_0x450c60(0x1e8)](_0x2f203a);}function Dn(_0x496a32,_0x5c3a07){const _0x21a490=_0x3951cd;for(let _0xee1c82 of _0x496a32[_0x21a490(0x446)]){if(_0xee1c82['id']!==_0x18357d['id'])continue;let _0x4c6499=_0xee1c82[_0x21a490(0x1f3)];if((_0x4c6499==null?void 0x0:_0x4c6499['unitId'])===_0x5c3a07&&typeof _0x4c6499['revision']==_0x21a490(0x152))return{'unitId':_0x4c6499['unitId'],'revision':_0x4c6499[_0x21a490(0x2d7)]};}return null;}var On,kn,An,jn=class extends Error{constructor(_0x24065c){const _0x21b5b3=_0x3951cd;super(_0x24065c instanceof Error?_0x24065c[_0x21b5b3(0x468)]:typeof _0x24065c==_0x21b5b3(0x3db)?_0x24065c:'[CollaborationState]:\x20apply\x20error!'),this[_0x21b5b3(0x299)]=_0x24065c,this['name']=_0x21b5b3(0x428);}},Mn=class extends Error{constructor(_0x1e94bd){const _0x4fcf79=_0x3951cd;var _0x18c1fa;super(_0x4fcf79(0x242)+((_0x18c1fa=_0x1e94bd[_0x4fcf79(0x297)])==null?void 0x0:_0x18c1fa['revision'])+'.'),this[_0x4fcf79(0x36c)]=_0x1e94bd,this[_0x4fcf79(0x212)]='RemoteRevertError';}};let Nn=function(_0x16f862){const _0x26aa33=_0x3951cd;return _0x16f862['NOT_COLLAB']=_0x26aa33(0x2df),_0x16f862[_0x26aa33(0x18b)]='synced',_0x16f862['PENDING']='pending',_0x16f862[_0x26aa33(0x308)]='awaiting',_0x16f862[_0x26aa33(0x3d7)]=_0x26aa33(0x2ec),_0x16f862[_0x26aa33(0x280)]=_0x26aa33(0x3a3),_0x16f862[_0x26aa33(0x233)]='conflict',_0x16f862['OFFLINE']='offline',_0x16f862;}({});var G=class{constructor(_0x25ad96,_0x36a4fb,_0x12e55d,_0x4ad8e9,_0x30078e,_0x45a298,_0x6958f1,_0x28cf34,_0x53544c){const _0x52407c=_0x3951cd;this['unitID']=_0x25ad96,this['type']=_0x36a4fb,this['_handler']=_0x30078e,this[_0x52407c(0x429)]=_0x45a298,this['_undoRedoService']=_0x6958f1,this[_0x52407c(0x170)]=_0x28cf34,this[_0x52407c(0x2da)]=_0x53544c,z(this,_0x52407c(0x325),null),z(this,_0x52407c(0x150),[]),this[_0x52407c(0x325)]=_0x12e55d,this['_pendingMutations']=_0x4ad8e9;}[_0x3951cd(0x387)](){const _0x387ece=_0x3951cd;return!!this[_0x387ece(0x325)]||this[_0x387ece(0x150)]['length']>0x0;}[_0x3951cd(0x3b6)](){}[_0x3951cd(0x1e6)](){const _0x2289fe=_0x3951cd;var _0x326f39;return(((_0x326f39=this[_0x2289fe(0x325)])==null?void 0x0:_0x326f39['mutations'][_0x2289fe(0x377)])??0x0)+this['_pendingMutations']['length'];}[_0x3951cd(0x301)](_0x4ad713){const _0x46ae8f=_0x3951cd;return new Bt(_0x4ad713[_0x46ae8f(0x3ee)]??0x0,(_0x491ca2,_0x371436)=>this[_0x46ae8f(0x193)][_0x46ae8f(0x3e6)](_0x491ca2,_0x371436),{...this[_0x46ae8f(0x193)][_0x46ae8f(0x2d1)],'onResend':_0x3c1cd0=>{const _0x2d859a=_0x46ae8f;var _0x49330f,_0x36e18b;return(_0x49330f=(_0x36e18b=this['_handler'])['onChangesetResend'])==null?void 0x0:_0x49330f[_0x2d859a(0x326)](_0x36e18b,_0x3c1cd0);}});}[_0x3951cd(0x425)](_0x2ffcd1){const _0x15779e=_0x3951cd;if(this[_0x15779e(0x461)](_0x2ffcd1))return _0x15779e(0x2ca);if(Dn(_0x2ffcd1,this[_0x15779e(0x2f3)]))return'remote_revert';let _0x227e72=this[_0x15779e(0x255)]();return _0x2ffcd1[_0x15779e(0x2d7)]<=_0x227e72?_0x15779e(0x262):_0x2ffcd1[_0x15779e(0x2d7)]>_0x227e72+0x1?_0x15779e(0x2e7):_0x15779e(0x1b9);}[_0x3951cd(0x315)](_0x3ecab9){const _0x2e9cd2=_0x3951cd;let _0x50aab8=this[_0x2e9cd2(0x255)]();return _0x3ecab9[_0x2e9cd2(0x2d7)]<=_0x50aab8?this[_0x2e9cd2(0x213)](_0x3ecab9)?_0x2e9cd2(0x2fd):_0x2e9cd2(0x37d):_0x3ecab9[_0x2e9cd2(0x2d7)]>_0x50aab8+0x1?_0x2e9cd2(0x2e7):_0x2e9cd2(0x466);}[_0x3951cd(0x211)](_0x3a5f8c,_0x4586a5){const _0x3744a0=_0x3951cd;switch(this[_0x3744a0(0x425)](_0x3a5f8c)){case _0x3744a0(0x2ca):return this[_0x3744a0(0x470)](_0x3a5f8c);case'remote_revert':return _0x4586a5[_0x3744a0(0x27b)](_0x3a5f8c);case _0x3744a0(0x262):return this;case _0x3744a0(0x2e7):return this[_0x3744a0(0x42c)](_0x3a5f8c['revision']),_0x4586a5[_0x3744a0(0x353)](_0x3a5f8c);case'apply':return _0x4586a5[_0x3744a0(0x1d9)](_0x3a5f8c);}}['_remoteRevertInfo'](_0x18af48){const _0x4f21dd=_0x3951cd;return{'reason':'remote_revert','revert':{'revision':Dn(_0x18af48,this[_0x4f21dd(0x2f3)])[_0x4f21dd(0x2d7)],'memberId':_0x18af48[_0x4f21dd(0x36a)],'userId':_0x18af48[_0x4f21dd(0x3bb)]}};}[_0x3951cd(0x33d)](_0x34dd4b){const _0x178823=_0x3951cd;return{'reason':_0x34dd4b instanceof jn?_0x178823(0x171):'transform_failed','message':_0x34dd4b instanceof Error?_0x34dd4b[_0x178823(0x468)]:typeof _0x34dd4b==_0x178823(0x3db)?_0x34dd4b:void 0x0};}[_0x3951cd(0x449)](_0x343ffd){const _0x4a05fe=_0x3951cd;return{'reason':_0x343ffd!=null&&_0x343ffd[_0x4a05fe(0x24c)]?_0x4a05fe(0x1b2):'changeset_rejected'};}['_requestMissingChangesets'](_0x14f4b2){const _0x29fe10=_0x3951cd;this[_0x29fe10(0x193)][_0x29fe10(0x40e)]({'from':this[_0x29fe10(0x255)](),'to':_0x14f4b2-0x1});}[_0x3951cd(0x266)](_0x4dd6a0){const _0x1f8935=_0x3951cd;this['_undoRedoService'][_0x1f8935(0x3ba)](this['unitID'],_0x4dd6a0);}[_0x3951cd(0x3ce)](_0x3081f6){const _0x552f4d=_0x3951cd;var _0x2e0621,_0x35e760;(_0x2e0621=(_0x35e760=this[_0x552f4d(0x193)])['onTransformSelections'])==null||_0x2e0621[_0x552f4d(0x326)](_0x35e760,_0x3081f6);}[_0x3951cd(0x40f)](_0x1b8a70){const _0x288f7e=_0x3951cd;var _0x29337e,_0x215447;return((_0x29337e=(_0x215447=this[_0x288f7e(0x193)])[_0x288f7e(0x32a)])==null?void 0x0:_0x29337e[_0x288f7e(0x326)](_0x215447,_0x1b8a70))??null;}[_0x3951cd(0x2f6)](_0x4ee2a0){const _0x3acbeb=_0x3951cd;var _0x3415d6,_0x1016d2;return(_0x3415d6=(_0x1016d2=this[_0x3acbeb(0x193)])[_0x3acbeb(0x24b)])==null?void 0x0:_0x3415d6[_0x3acbeb(0x326)](_0x1016d2,_0x4ee2a0);}[_0x3951cd(0x46a)](_0x555dad){const _0x130077=_0x3951cd;var _0x24a6f5,_0x25d50c;return(_0x24a6f5=(_0x25d50c=this[_0x130077(0x193)])[_0x130077(0x1c5)])==null?void 0x0:_0x24a6f5['call'](_0x25d50c,_0x555dad);}[_0x3951cd(0x2a1)](_0x2b3616){const _0x3fbed9=_0x3951cd;var _0x420a95,_0x28d3d0;return((_0x420a95=(_0x28d3d0=this['_handler'])[_0x3fbed9(0x1e5)])==null?void 0x0:_0x420a95[_0x3fbed9(0x326)](_0x28d3d0,_0x2b3616))??_0x2b3616;}['_transformRemoteChangesetByStateCache'](_0x35a682){const _0x507b0a=_0x3951cd;var _0x580a04,_0x1c2d2e;return((_0x580a04=(_0x1c2d2e=this[_0x507b0a(0x193)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x580a04[_0x507b0a(0x326)](_0x1c2d2e,_0x35a682))??_0x35a682;}['_syncEditingCollabCursor'](_0x21859f){const _0x4afffe=_0x3951cd;if(this[_0x4afffe(0x186)]===_0x29dacb['UNIVER_DOC']){let {unitID:_0x2ceda0,mutations:_0x1b3ec8,memberID:_0x26a72f}=_0x21859f,_0x298c1d=_0x1b3ec8[_0x4afffe(0x377)]>0x0?_0x1b3ec8[0x0][_0x4afffe(0x1f3)]['textRanges']:[];if(Array[_0x4afffe(0x1e8)](_0x298c1d)&&_0x298c1d[_0x4afffe(0x377)]>0x0){var _0x19304c,_0x32e55c;(_0x19304c=(_0x32e55c=this[_0x4afffe(0x193)])['onSyncEditingCollabCursor'])==null||_0x19304c[_0x4afffe(0x326)](_0x32e55c,{'unitID':_0x2ceda0,'memberID':_0x26a72f,'textRanges':_0x298c1d});}}}[_0x3951cd(0x1b8)](){const _0x2cc998=_0x3951cd;var _0x39ab70;(_0x39ab70=this['_localCacheService'])==null||_0x39ab70['updateOfflineData'](this[_0x2cc998(0x2f3)],this[_0x2cc998(0x186)],this[_0x2cc998(0x325)],this[_0x2cc998(0x150)]);}[_0x3951cd(0x255)](){const _0x2cc57b=_0x3951cd;return this[_0x2cc57b(0x170)][_0x2cc57b(0x158)](this[_0x2cc57b(0x2f3)]);}[_0x3951cd(0x461)](_0x573bc3){const _0x5c8a1c=_0x3951cd;let _0x2aa484=this['_awaitingChangeset'];return!_0x2aa484||!_0x2aa484[_0x5c8a1c(0x3fa)]||_0x2aa484[_0x5c8a1c(0x3ee)]===null||_0x2aa484[_0x5c8a1c(0x3ee)]===void 0x0?!0x1:_0x573bc3[_0x5c8a1c(0x2f3)]===_0x2aa484[_0x5c8a1c(0x2f3)]&&_0x573bc3[_0x5c8a1c(0x3fa)]===_0x2aa484[_0x5c8a1c(0x3fa)]&&_0x573bc3[_0x5c8a1c(0x3ee)]===_0x2aa484[_0x5c8a1c(0x3ee)];}[_0x3951cd(0x213)](_0x6d478){const _0x3d232f=_0x3951cd;let _0x59a2bc=this[_0x3d232f(0x325)];return!(_0x59a2bc!=null&&_0x59a2bc[_0x3d232f(0x3fa)])||_0x59a2bc[_0x3d232f(0x3ee)]==null||!_0x6d478[_0x3d232f(0x3fa)]||_0x6d478[_0x3d232f(0x3ee)]==null?!0x1:_0x6d478[_0x3d232f(0x3fa)]===_0x59a2bc[_0x3d232f(0x3fa)]&&_0x6d478[_0x3d232f(0x3ee)]===_0x59a2bc['reqId'];}[_0x3951cd(0x320)](){const _0x5d9a79=_0x3951cd;this[_0x5d9a79(0x170)][_0x5d9a79(0x3d2)](this['unitID']);}['_executeRemoteChangeset'](_0x110435){const _0x59eb46=_0x3951cd;let _0x542bed=this[_0x59eb46(0x2a1)](_0x110435);_0x542bed=this[_0x59eb46(0x25d)](_0x542bed);let _0x196c07=this[_0x59eb46(0x40f)](_0x542bed),_0x493ffa=_0x3455c2(_0x542bed[_0x59eb46(0x446)],this[_0x59eb46(0x429)],{'fromCollab':!0x0});if(!_0x493ffa[_0x59eb46(0x16f)])throw _0x196c07==null||_0x196c07['rollback'](),new jn(_0x493ffa[_0x59eb46(0x1a2)]);_0x196c07==null||_0x196c07[_0x59eb46(0x19e)](),this[_0x59eb46(0x2f6)](_0x542bed),this['_transformStateCache'](_0x542bed),this[_0x59eb46(0x266)](_0x110435),this[_0x59eb46(0x3ce)](_0x542bed),this[_0x59eb46(0x35d)](_0x542bed),this['_incrementRevisionNumber']();}};let K=class extends G{constructor(_0x21140e,_0x489d58,_0x41024f,_0x55f036,_0x5d8ca1,_0x155954,_0x4a2b67,_0x4726c9,_0x51ad91,_0x135be4){const _0x3a0e53=_0x3951cd;super(_0x21140e,_0x489d58,null,[],_0x41024f,_0x4a2b67,_0x155954,_0x55f036,_0x135be4),this['_injector']=_0x5d8ca1,this['_logService']=_0x4726c9,this[_0x3a0e53(0x2fb)]=_0x51ad91,this[_0x3a0e53(0x2b4)]=_0x135be4,z(this,_0x3a0e53(0x3bf),_0x3a0e53(0x44a));}['appendMutation'](_0x1ef5b6){const _0xf79c4f=_0x3951cd;let _0x5abece=this[_0xf79c4f(0x41c)]['createInstance'](q,this[_0xf79c4f(0x2f3)],this[_0xf79c4f(0x186)],[_0x1ef5b6],this[_0xf79c4f(0x193)]);return _0x5abece[_0xf79c4f(0x20e)](),_0x5abece[_0xf79c4f(0x1b8)](),_0x5abece;}['onRemoteChangeset'](_0x14525f){const _0x43e921=_0x3951cd;return this[_0x43e921(0x211)](_0x14525f,{'onMissing':()=>this['_injector'][_0x43e921(0x274)](Q,this[_0x43e921(0x2f3)],this['type'],null,[],null,[_0x14525f],this[_0x43e921(0x193)],void 0x0),'onApply':()=>this['_transformAndApply'](_0x14525f),'onRemoteRevert':()=>this[_0x43e921(0x46d)](this[_0x43e921(0x400)](_0x14525f))});}[_0x3951cd(0x351)](_0x247750){const _0x3e20be=_0x3951cd;try{let _0x1c4bcd=this[_0x3e20be(0x2fb)][_0x3e20be(0x2cc)](_0x247750,[_0x3ab065]);if(_0x17508c(_0x1c4bcd)){let {c1Prime:_0x4dfba5}=_0x1c4bcd;return this[_0x3e20be(0x42d)](_0x4dfba5),this;}throw _0x1c4bcd[_0x3e20be(0x1a2)];}catch(_0x27efd3){return this[_0x3e20be(0x476)][_0x3e20be(0x1a2)](_0x27efd3),this[_0x3e20be(0x46d)](this[_0x3e20be(0x33d)](_0x27efd3));}}[_0x3951cd(0x46d)](_0x38e479){const _0x5f26c3=_0x3951cd;return this[_0x5f26c3(0x41c)]['createInstance'](X,this[_0x5f26c3(0x2f3)],this[_0x5f26c3(0x186)],null,[],this[_0x5f26c3(0x193)],_0x38e479);}[_0x3951cd(0x470)](_0x405b5f){const _0x4a8396=_0x3951cd;if(this['_classifyAck'](_0x405b5f)===_0x4a8396(0x37d))return this;throw Error(_0x4a8396(0x294));}['onRemoteRej'](){const _0x5155a2=_0x3951cd;throw Error(_0x5155a2(0x214));}[_0x3951cd(0x3cc)](){return this;}[_0x3951cd(0x159)](){const _0x5115a3=_0x3951cd;return this['_injector'][_0x5115a3(0x274)](Z,this[_0x5115a3(0x2f3)],this[_0x5115a3(0x186)],null,[],this['_handler']);}[_0x3951cd(0x430)](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3951cd(0x3ea)](){const _0xdc1fca=_0x3951cd;let _0x58b586=this[_0xdc1fca(0x170)][_0xdc1fca(0x158)](this[_0xdc1fca(0x2f3)]);return this[_0xdc1fca(0x193)][_0xdc1fca(0x40e)]({'from':_0x58b586,'to':0x0}),this[_0xdc1fca(0x41c)][_0xdc1fca(0x274)](Q,this['unitID'],this[_0xdc1fca(0x186)],null,[],null,[],this[_0xdc1fca(0x193)],void 0x0);}};K=H([V(0x3,_0x2781ac(_0x1c1bdc)),V(0x4,_0x2781ac(_0x4d605d)),V(0x5,_0x5a28cb),V(0x6,_0x140e4b),V(0x7,_0x42f5a0),V(0x8,_0x457218),V(0x9,_0x1a982e(U))],K);let q=On=class extends G{constructor(_0x3955f7,_0x3ce1b3,_0x2782c7,_0x20240c,_0x51a2cf,_0x4e99c6,_0xd6f852,_0x3a9934,_0x412114,_0x14ebb3,_0x5eac47,_0x3ed659,_0x40ae5e,_0x31ed27){const _0x459598=_0x3951cd;super(_0x3955f7,_0x3ce1b3,null,_0x2782c7,_0x20240c,_0x412114,_0x40ae5e,_0x4e99c6,_0x31ed27),this[_0x459598(0x41c)]=_0x51a2cf,this[_0x459598(0x3ec)]=_0xd6f852,this['_logService']=_0x3a9934,this[_0x459598(0x357)]=_0x14ebb3,this[_0x459598(0x2fb)]=_0x5eac47,this[_0x459598(0x3c2)]=_0x3ed659,z(this,_0x459598(0x3bf),_0x459598(0x1a6)),z(this,_0x459598(0x1f8),null),z(this,_0x459598(0x176),null);}[_0x3951cd(0x22a)](_0x2bb8c7){const _0x18af88=_0x3951cd;return this[_0x18af88(0x150)][_0x18af88(0x405)](_0x2bb8c7),this[_0x18af88(0x1b8)](),this;}[_0x3951cd(0x2cf)](_0x26a298){const _0xa2ce00=_0x3951cd;return this[_0xa2ce00(0x211)](_0x26a298,{'onMissing':()=>(this[_0xa2ce00(0x34f)](),this[_0xa2ce00(0x41c)][_0xa2ce00(0x274)](Q,this['unitID'],this[_0xa2ce00(0x186)],null,this[_0xa2ce00(0x150)],null,[_0x26a298],this[_0xa2ce00(0x193)],void 0x0)),'onApply':()=>this['_transformAndApply'](_0x26a298),'onRemoteRevert':()=>this['_onConflict'](this['_remoteRevertInfo'](_0x26a298))});}[_0x3951cd(0x351)](_0x2b15ec){const _0xc20b20=_0x3951cd;try{let _0x2bbc33=this[_0xc20b20(0x2fb)][_0xc20b20(0x2cc)](_0x2b15ec,this[_0xc20b20(0x150)]);if(_0x17508c(_0x2bbc33)){let {c1Prime:_0x815e23,m2Prime:_0x37e3d4}=_0x2bbc33;this[_0xc20b20(0x42d)](_0x815e23);let _0x5f1549=this[_0xc20b20(0x41c)]['createInstance'](On,this['unitID'],this[_0xc20b20(0x186)],_0x37e3d4,this[_0xc20b20(0x193)]);_0x5f1549['_updateLocalCache'](),this['_clearScheduledTask']();let _0x36ce1e=new Date()['getTime'](),_0x41ebd3=this[_0xc20b20(0x1f8)]?Math[_0xc20b20(0x276)](this[_0xc20b20(0x1f8)]-_0x36ce1e,0x0):this[_0xc20b20(0x1c7)]();return _0x5f1549[_0xc20b20(0x20e)](_0x41ebd3),_0x5f1549;}throw _0x2bbc33[_0xc20b20(0x1a2)];}catch(_0x5f8bc1){return this[_0xc20b20(0x476)][_0xc20b20(0x1a2)](_0x5f8bc1),this[_0xc20b20(0x46d)](this[_0xc20b20(0x33d)](_0x5f8bc1));}}[_0x3951cd(0x470)](_0x2358df){const _0x1bfe26=_0x3951cd;if(this[_0x1bfe26(0x315)](_0x2358df)===_0x1bfe26(0x37d))return this;throw Error(_0x1bfe26(0x14d));}[_0x3951cd(0x426)](){const _0x5c8a86=_0x3951cd;throw Error(_0x5c8a86(0x327));}[_0x3951cd(0x3cc)](){return this;}[_0x3951cd(0x159)](){const _0x4655ef=_0x3951cd;return this['_clearScheduledTask'](),this[_0x4655ef(0x41c)][_0x4655ef(0x274)](Z,this[_0x4655ef(0x2f3)],this[_0x4655ef(0x186)],null,this[_0x4655ef(0x150)],this['_handler']);}[_0x3951cd(0x430)](){return this;}[_0x3951cd(0x20e)](_0x4291f9){const _0x2e759b=_0x3951cd;let _0x50e77a=_0x4291f9??this[_0x2e759b(0x1c7)]();this[_0x2e759b(0x1f8)]=new Date()[_0x2e759b(0x223)]()+_0x50e77a,this[_0x2e759b(0x176)]=setTimeout(()=>{const _0x241143=_0x2e759b;this[_0x241143(0x34f)]();let _0x16ea23=null;switch(this[_0x241143(0x186)]){case _0x29dacb['UNIVER_SHEET']:_0x16ea23=hn(this[_0x241143(0x150)],this[_0x241143(0x2f3)],this[_0x241143(0x3c2)],this[_0x241143(0x170)],this[_0x241143(0x3ec)]);break;case _0x29dacb['UNIVER_DOC']:_0x16ea23=this[_0x241143(0x150)][_0x241143(0x411)](_0xcb8a4c=>_0xcb8a4c['id']===_0x3f15d9['id'])?vn(this['_pendingMutations'],this[_0x241143(0x2f3)],this['_univerInstanceService'],this[_0x241143(0x170)],this[_0x241143(0x3ec)]):hn(this[_0x241143(0x150)],this['unitID'],this['_univerInstanceService'],this[_0x241143(0x170)],this[_0x241143(0x3ec)]);break;case _0x29dacb[_0x241143(0x2c3)]:_0x16ea23=_n(this[_0x241143(0x150)],this[_0x241143(0x2f3)],this[_0x241143(0x3c2)],this[_0x241143(0x170)],this['_userManagerService']);break;case _0x29dacb['UNIVER_PDF']:_0x16ea23=gn(this['_pendingMutations'],this[_0x241143(0x2f3)],this[_0x241143(0x3c2)],this[_0x241143(0x170)],this[_0x241143(0x3ec)]);break;case _0x29dacb['UNIVER_BOARD']:_0x16ea23=hn(this['_pendingMutations'],this[_0x241143(0x2f3)],this[_0x241143(0x3c2)],this['_revisionService'],this['_userManagerService']);break;case _0x29dacb[_0x241143(0x202)]:_0x16ea23=hn(this[_0x241143(0x150)],this['unitID'],this[_0x241143(0x3c2)],this[_0x241143(0x170)],this['_userManagerService']);break;default:throw Error(_0x241143(0x2bd)+this[_0x241143(0x186)]+_0x241143(0x316));}let {changeset:_0x3c4518,pendingMutations:_0x27de60}=_0x16ea23,_0x5858da=this[_0x241143(0x301)](_0x3c4518);_0x5858da[_0x241143(0x303)](_0x3c4518,_0x3c4518[_0x241143(0x446)][_0x241143(0x377)]+_0x27de60[_0x241143(0x377)]);let _0x599cbf=_0x27de60[_0x241143(0x377)]?this[_0x241143(0x41c)]['createInstance'](Y,this[_0x241143(0x2f3)],this['type'],_0x3c4518,_0x27de60,this['_handler'],_0x5858da):this[_0x241143(0x41c)][_0x241143(0x274)](J,this[_0x241143(0x2f3)],this[_0x241143(0x186)],_0x3c4518,this[_0x241143(0x193)],_0x5858da);_0x599cbf[_0x241143(0x1b8)](),this[_0x241143(0x193)][_0x241143(0x331)](this,_0x599cbf);},_0x50e77a);}[_0x3951cd(0x1c7)](){const _0x4ddb81=_0x3951cd;let _0xc118cd=this[_0x4ddb81(0x357)][_0x4ddb81(0x3f8)](R);return(_0xc118cd==null?void 0x0:_0xc118cd[_0x4ddb81(0x437)])??0x7d0;}[_0x3951cd(0x3b0)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3951cd(0x34f)](){const _0x4a9b49=_0x3951cd;this[_0x4a9b49(0x176)]!=null&&(clearTimeout(this[_0x4a9b49(0x176)]),this[_0x4a9b49(0x176)]=null);}[_0x3951cd(0x3b6)](){this['_clearScheduledTask']();}[_0x3951cd(0x46d)](_0x191fc0){const _0x41201d=_0x3951cd;return this['_clearScheduledTask'](),this['_injector'][_0x41201d(0x274)](X,this[_0x41201d(0x2f3)],this[_0x41201d(0x186)],null,this[_0x41201d(0x150)],this['_handler'],_0x191fc0);}};q=On=H([V(0x4,_0x2781ac(_0x4d605d)),V(0x5,_0x2781ac(_0x1c1bdc)),V(0x6,_0x2781ac(_0x352a5e)),V(0x7,_0x42f5a0),V(0x8,_0x140e4b),V(0x9,_0xc1d862),V(0xa,_0x457218),V(0xb,_0xa820d0),V(0xc,_0x5a28cb),V(0xd,_0x1a982e(U))],q);let J=kn=class extends G{constructor(_0x3c0427,_0x29a77f,_0x176bc1,_0x169e67,_0x38cc40,_0x577a85,_0x42031b,_0x1361ea,_0x142b25,_0x137e54,_0x267cc3,_0x5dcac2){const _0x3e81a7=_0x3951cd;super(_0x3c0427,_0x29a77f,_0x176bc1,[],_0x169e67,_0x1361ea,_0x267cc3,_0x42031b,_0x5dcac2),this[_0x3e81a7(0x41c)]=_0x577a85,this['_logService']=_0x142b25,this[_0x3e81a7(0x2fb)]=_0x137e54,z(this,'status',_0x3e81a7(0x3b5)),z(this,_0x3e81a7(0x162),void 0x0),this['_submitter']=_0x38cc40??this[_0x3e81a7(0x301)](_0x176bc1),this[_0x3e81a7(0x162)][_0x3e81a7(0x3d6)](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this[_0x3e81a7(0x1e6)]()})),_0x38cc40||this[_0x3e81a7(0x162)][_0x3e81a7(0x3aa)]();}[_0x3951cd(0x22a)](_0x5a5a05){const _0x21f09e=_0x3951cd;this['_detachSubmitter']();let _0x5af973=this['_injector'][_0x21f09e(0x274)](Y,this[_0x21f09e(0x2f3)],this[_0x21f09e(0x186)],this[_0x21f09e(0x325)],[_0x5a5a05],this[_0x21f09e(0x193)],this[_0x21f09e(0x162)]);return _0x5af973[_0x21f09e(0x1b8)](),_0x5af973;}[_0x3951cd(0x2cf)](_0x32da48){const _0x13312=_0x3951cd;return this[_0x13312(0x211)](_0x32da48,{'onMissing':()=>(this[_0x13312(0x2d4)](),this['_injector'][_0x13312(0x274)](Q,this['unitID'],this[_0x13312(0x186)],this[_0x13312(0x325)],[],null,[_0x32da48],this[_0x13312(0x193)],this[_0x13312(0x162)])),'onApply':()=>this[_0x13312(0x351)](_0x32da48),'onRemoteRevert':()=>this[_0x13312(0x46d)](this[_0x13312(0x400)](_0x32da48))});}['_transformAndApply'](_0x5ba194){const _0x59706a=_0x3951cd;try{let _0x2bcb42=this['_transformService'][_0x59706a(0x44c)]([_0x5ba194],[this['_awaitingChangeset']],!0x1);if(_0x10f8ec(_0x2bcb42)){let {c1Prime:_0x2b0fbe,c2Prime:_0x39fa39}=_0x2bcb42;this[_0x59706a(0x42d)](_0x2b0fbe[0x0]),_0x39fa39[0x0][_0x59706a(0x21f)]=this[_0x59706a(0x255)](),this[_0x59706a(0x2d4)]();let _0x2b3364=this['_injector'][_0x59706a(0x274)](kn,this[_0x59706a(0x2f3)],this[_0x59706a(0x186)],_0x39fa39[0x0],this[_0x59706a(0x193)],this[_0x59706a(0x162)]);return _0x2b3364['_updateLocalCache'](),_0x2b3364;}throw _0x2bcb42['error'];}catch(_0x4841b2){return this[_0x59706a(0x476)][_0x59706a(0x1a2)](_0x4841b2),this[_0x59706a(0x46d)](this[_0x59706a(0x33d)](_0x4841b2));}}[_0x3951cd(0x470)](_0x572d2a){const _0xa4ae8c=_0x3951cd;switch(this[_0xa4ae8c(0x315)](_0x572d2a)){case _0xa4ae8c(0x37d):return this['_logService'][_0xa4ae8c(0x30a)](_0xa4ae8c(0x27a),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x572d2a['revision']+_0xa4ae8c(0x1b3)+this[_0xa4ae8c(0x255)]()+'.'),this;case'ack_of_awaiting':return this['_submitter'][_0xa4ae8c(0x3b6)](),this['_toSynced']();case _0xa4ae8c(0x2e7):return this[_0xa4ae8c(0x162)][_0xa4ae8c(0x3b6)](),this[_0xa4ae8c(0x42c)](_0x572d2a[_0xa4ae8c(0x2d7)]),this[_0xa4ae8c(0x41c)][_0xa4ae8c(0x274)](Q,this[_0xa4ae8c(0x2f3)],this[_0xa4ae8c(0x186)],this[_0xa4ae8c(0x325)],[],_0x572d2a[_0xa4ae8c(0x2d7)],[],this[_0xa4ae8c(0x193)],void 0x0);case _0xa4ae8c(0x466):return this['_submitter'][_0xa4ae8c(0x3b6)](),this[_0xa4ae8c(0x320)](),this['_toSynced']();}}[_0x3951cd(0x2cb)](){const _0x481057=_0x3951cd;let _0x50b1d3=this['_injector'][_0x481057(0x274)](K,this[_0x481057(0x2f3)],this[_0x481057(0x186)],this['_handler']);return _0x50b1d3['_updateLocalCache'](),_0x50b1d3;}[_0x3951cd(0x426)](_0x4fa81d){const _0x5330d9=_0x3951cd;return this[_0x5330d9(0x46d)](this[_0x5330d9(0x449)](_0x4fa81d));}[_0x3951cd(0x3cc)](_0x4fa9fc){const _0xa874c8=_0x3951cd;var _0x3e8c23;return _0x4fa9fc[_0xa874c8(0x3ee)]===((_0x3e8c23=this[_0xa874c8(0x325)])==null?void 0x0:_0x3e8c23[_0xa874c8(0x3ee)])&&this[_0xa874c8(0x162)][_0xa874c8(0x174)](),this;}[_0x3951cd(0x159)](){const _0x298c2c=_0x3951cd;return this[_0x298c2c(0x162)][_0x298c2c(0x3b6)](),this[_0x298c2c(0x41c)][_0x298c2c(0x274)](Z,this[_0x298c2c(0x2f3)],this[_0x298c2c(0x186)],this['_awaitingChangeset'],[],this[_0x298c2c(0x193)]);}['toggleOnline'](){return this;}['resend'](_0x16b7aa=_0x3951cd(0x368)){const _0x1501f9=_0x3951cd;this[_0x1501f9(0x162)][_0x1501f9(0x303)](this[_0x1501f9(0x325)],this[_0x1501f9(0x1e6)](),_0x16b7aa);}[_0x3951cd(0x46d)](_0x5b2111){const _0x12fecd=_0x3951cd;return this[_0x12fecd(0x162)]['dispose'](),this[_0x12fecd(0x41c)]['createInstance'](X,this[_0x12fecd(0x2f3)],this['type'],this[_0x12fecd(0x325)],[],this[_0x12fecd(0x193)],_0x5b2111);}[_0x3951cd(0x3b6)](){const _0x2970d8=_0x3951cd;this[_0x2970d8(0x162)][_0x2970d8(0x3b6)]();}[_0x3951cd(0x2d4)](){const _0x4dbe10=_0x3951cd;this[_0x4dbe10(0x162)][_0x4dbe10(0x451)]();}};J=kn=H([V(0x5,_0x2781ac(_0x4d605d)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x140e4b),V(0x8,_0x42f5a0),V(0x9,_0x457218),V(0xa,_0x5a28cb),V(0xb,_0x1a982e(U))],J);let Y=An=class extends G{constructor(_0x325f3a,_0x2bf97d,_0x397342,_0x13e0ae,_0x558e93,_0x12f91c,_0x326145,_0x8ca76f,_0x854a21,_0x3e72c8,_0x416cf5,_0x338aaa,_0x4b62bb){const _0x3a8bff=_0x3951cd;super(_0x325f3a,_0x2bf97d,_0x397342,_0x13e0ae,_0x558e93,_0x854a21,_0x338aaa,_0x8ca76f,_0x4b62bb),this[_0x3a8bff(0x41c)]=_0x326145,this[_0x3a8bff(0x476)]=_0x3e72c8,this[_0x3a8bff(0x2fb)]=_0x416cf5,this[_0x3a8bff(0x2b4)]=_0x4b62bb,z(this,_0x3a8bff(0x3bf),'awaiting_with_pending'),z(this,_0x3a8bff(0x162),void 0x0),this['_submitter']=_0x12f91c??this[_0x3a8bff(0x301)](_0x397342),this[_0x3a8bff(0x162)][_0x3a8bff(0x3d6)](()=>({'changeset':this[_0x3a8bff(0x325)],'unsyncedMutationCount':this[_0x3a8bff(0x1e6)]()})),_0x12f91c||this[_0x3a8bff(0x162)][_0x3a8bff(0x3aa)]();}[_0x3951cd(0x22a)](_0x10fb38){const _0x22d8ae=_0x3951cd;return this[_0x22d8ae(0x150)]['push'](_0x10fb38),this[_0x22d8ae(0x1b8)](),this;}[_0x3951cd(0x2cf)](_0x51bf99){const _0x2bb908=_0x3951cd;return this[_0x2bb908(0x211)](_0x51bf99,{'onMissing':()=>(this[_0x2bb908(0x2d4)](),this[_0x2bb908(0x41c)][_0x2bb908(0x274)](Q,this[_0x2bb908(0x2f3)],this[_0x2bb908(0x186)],this[_0x2bb908(0x325)],this[_0x2bb908(0x150)],null,[_0x51bf99],this[_0x2bb908(0x193)],this[_0x2bb908(0x162)])),'onApply':()=>this['_transformAndApply'](_0x51bf99),'onRemoteRevert':()=>this[_0x2bb908(0x46d)](this[_0x2bb908(0x400)](_0x51bf99))});}[_0x3951cd(0x351)](_0x48f36b){const _0x1e6f9e=_0x3951cd;try{let _0x4a5755=this[_0x1e6f9e(0x2fb)][_0x1e6f9e(0x44c)]([_0x48f36b],[this['_awaitingChangeset']],!0x1);if(_0x10f8ec(_0x4a5755)){let {c1Prime:_0x48f1dc,c2Prime:_0xa6f9ee}=_0x4a5755,_0x48fc30=this[_0x1e6f9e(0x2fb)][_0x1e6f9e(0x2cc)](_0x48f1dc[0x0],this[_0x1e6f9e(0x150)]);if(_0x17508c(_0x48fc30)){let {c1Prime:_0x41d43e,m2Prime:_0x5e3d5d}=_0x48fc30;this['_executeRemoteChangeset'](_0x41d43e),_0xa6f9ee[0x0][_0x1e6f9e(0x21f)]=this[_0x1e6f9e(0x255)](),this[_0x1e6f9e(0x2d4)]();let _0x466b9b=this[_0x1e6f9e(0x41c)][_0x1e6f9e(0x274)](An,this[_0x1e6f9e(0x2f3)],this[_0x1e6f9e(0x186)],_0xa6f9ee[0x0],_0x5e3d5d,this['_handler'],this['_submitter']);return _0x466b9b[_0x1e6f9e(0x1b8)](),_0x466b9b;}throw _0x48fc30['error'];}throw _0x4a5755[_0x1e6f9e(0x1a2)];}catch(_0x269c0c){return this['_logService']['error'](_0x269c0c),this['_onConflict'](this[_0x1e6f9e(0x33d)](_0x269c0c));}}[_0x3951cd(0x470)](_0x49a9d2){const _0x3bac7d=_0x3951cd;switch(this['_classifyAck'](_0x49a9d2)){case'stale':return this[_0x3bac7d(0x476)]['debug'](_0x3bac7d(0x45f),_0x3bac7d(0x19b)+_0x49a9d2['revision']+_0x3bac7d(0x1b3)+this[_0x3bac7d(0x255)]()+'.'),this;case _0x3bac7d(0x2fd):return this[_0x3bac7d(0x162)]['dispose'](),this[_0x3bac7d(0x3d4)]();case _0x3bac7d(0x2e7):return this[_0x3bac7d(0x162)][_0x3bac7d(0x3b6)](),this['_requestMissingChangesets'](_0x49a9d2['revision']),this['_injector'][_0x3bac7d(0x274)](Q,this['unitID'],this[_0x3bac7d(0x186)],this[_0x3bac7d(0x325)],this[_0x3bac7d(0x150)],_0x49a9d2[_0x3bac7d(0x2d7)],[],this[_0x3bac7d(0x193)],void 0x0);case _0x3bac7d(0x466):return this[_0x3bac7d(0x162)]['dispose'](),this['_incrementRevisionNumber'](),this[_0x3bac7d(0x3d4)]();}}[_0x3951cd(0x3d4)](){const _0x503b9c=_0x3951cd;let _0x8a296d=this['_injector'][_0x503b9c(0x274)](q,this[_0x503b9c(0x2f3)],this[_0x503b9c(0x186)],this[_0x503b9c(0x150)],this[_0x503b9c(0x193)]);return _0x8a296d['_schedule'](),_0x8a296d[_0x503b9c(0x1b8)](),_0x8a296d;}['onRemoteRej'](_0x23ae63){const _0x26eb63=_0x3951cd;return this['_onConflict'](this[_0x26eb63(0x449)](_0x23ae63));}[_0x3951cd(0x3cc)](_0x108b1f){const _0x1fa205=_0x3951cd;var _0xfffd9f;return _0x108b1f['reqId']===((_0xfffd9f=this[_0x1fa205(0x325)])==null?void 0x0:_0xfffd9f[_0x1fa205(0x3ee)])&&this[_0x1fa205(0x162)][_0x1fa205(0x174)](),this;}['toggleOffline'](){const _0x39030c=_0x3951cd;return this['_submitter'][_0x39030c(0x3b6)](),this[_0x39030c(0x41c)]['createInstance'](Z,this[_0x39030c(0x2f3)],this[_0x39030c(0x186)],this[_0x39030c(0x325)],this[_0x39030c(0x150)],this[_0x39030c(0x193)]);}[_0x3951cd(0x430)](){return this;}[_0x3951cd(0x3b0)](_0xc8b65a=_0x3951cd(0x368)){const _0x365280=_0x3951cd;this[_0x365280(0x162)][_0x365280(0x303)](this[_0x365280(0x325)],this[_0x365280(0x1e6)](),_0xc8b65a);}[_0x3951cd(0x46d)](_0x341255){const _0x47dd85=_0x3951cd;return this[_0x47dd85(0x162)][_0x47dd85(0x3b6)](),this['_injector'][_0x47dd85(0x274)](X,this[_0x47dd85(0x2f3)],this[_0x47dd85(0x186)],this[_0x47dd85(0x325)],this[_0x47dd85(0x150)],this['_handler'],_0x341255);}[_0x3951cd(0x3b6)](){const _0xcb8c41=_0x3951cd;this[_0xcb8c41(0x162)][_0xcb8c41(0x3b6)]();}[_0x3951cd(0x2d4)](){const _0x3f309=_0x3951cd;this[_0x3f309(0x162)][_0x3f309(0x451)]();}};Y=An=H([V(0x6,_0x2781ac(_0x4d605d)),V(0x7,_0x2781ac(_0x1c1bdc)),V(0x8,_0x140e4b),V(0x9,_0x42f5a0),V(0xa,_0x457218),V(0xb,_0x5a28cb),V(0xc,_0x1a982e(U))],Y);let X=class extends G{constructor(_0x593302,_0x367e89,_0xca0f10,_0x5940da,_0x1b8fc2,_0x74351e,_0x55bd96,_0x526466,_0x104fbd,_0x20b74a,_0x578381,_0x35b72f,_0x3add49,_0x3fe80b){const _0x3d0a9a=_0x3951cd;var _0x541272;super(_0x593302,_0x367e89,_0xca0f10,_0x5940da,_0x1b8fc2,_0x526466,_0x104fbd,_0x20b74a,_0x3fe80b),this[_0x3d0a9a(0x36c)]=_0x74351e,this[_0x3d0a9a(0x229)]=_0x55bd96,this[_0x3d0a9a(0x3ec)]=_0x578381,this[_0x3d0a9a(0x476)]=_0x35b72f,this['_collaborationUIEventService']=_0x3add49,this[_0x3d0a9a(0x2b4)]=_0x3fe80b,z(this,_0x3d0a9a(0x3bf),_0x3d0a9a(0x179)),z(this,_0x3d0a9a(0x3eb),void 0x0);let _0x269fae=((_0x541272=this[_0x3d0a9a(0x3ec)][_0x3d0a9a(0x1d3)]())==null?void 0x0:_0x541272[_0x3d0a9a(0x3bb)])??'';this[_0x3d0a9a(0x3eb)]=_0xca0f10||_0x5940da['length']?{'unitID':_0x593302,'userId':_0x269fae||void 0x0,'type':_0x367e89,'rev':this[_0x3d0a9a(0x255)](),'awaitingChangeset':_0xca0f10,'mutations':_0x5940da}:null,this['_disableEditing'](),this[_0x3d0a9a(0x431)](),this[_0x3d0a9a(0x2e4)](_0x269fae)[_0x3d0a9a(0x220)](_0x5e2523=>this[_0x3d0a9a(0x476)][_0x3d0a9a(0x1a2)](_0x5e2523));}async[_0x3951cd(0x2e4)](_0x30942f){const _0x50909f=_0x3951cd;var _0xd68118,_0x2e7b80,_0x257492,_0x3a8366;await((_0xd68118=this['_localCacheService'])==null||(_0x2e7b80=_0xd68118['backupOfflineData'])==null?void 0x0:_0x2e7b80[_0x50909f(0x326)](_0xd68118,this[_0x50909f(0x2f3)],this['info'][_0x50909f(0x46c)],_0x30942f)[_0x50909f(0x220)](()=>void 0x0));let _0x22cee1=!0x0;try{var _0x2016c2;await((_0x2016c2=this['_localCacheService'])==null?void 0x0:_0x2016c2[_0x50909f(0x286)](this[_0x50909f(0x2f3)],_0x30942f));}catch{_0x22cee1=!0x1,this[_0x50909f(0x3c9)]['emitEvent']({'id':_0x50909f(0x256),'unitID':this[_0x50909f(0x2f3)],'userId':_0x30942f});}(_0x257492=(_0x3a8366=this[_0x50909f(0x193)])[_0x50909f(0x257)])==null||_0x257492[_0x50909f(0x326)](_0x3a8366,this[_0x50909f(0x36c)],this[_0x50909f(0x3eb)],_0x22cee1);}[_0x3951cd(0x22a)](){return this;}[_0x3951cd(0x2cf)](){return this;}[_0x3951cd(0x470)](){return this;}[_0x3951cd(0x426)](){return this;}['onRemoteRetry'](){return this;}[_0x3951cd(0x159)](){return this;}[_0x3951cd(0x430)](){return this;}[_0x3951cd(0x3b0)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3951cd(0x431)](){const _0x5f589b=_0x3951cd;this['_collaborationUIEventService'][_0x5f589b(0x254)]({'id':'CONFLICT_PROCESSING','unitID':this[_0x5f589b(0x2f3)]});}['_disableEditing'](){const _0x4e28ee=_0x3951cd;this[_0x4e28ee(0x229)][_0x4e28ee(0x243)](new _0x761135(this[_0x4e28ee(0x2f3)])['id'],!0x1);}};X=H([V(0x6,_0x2781ac(_0x58d573)),V(0x7,_0x140e4b),V(0x8,_0x5a28cb),V(0x9,_0x2781ac(_0x1c1bdc)),V(0xa,_0x2781ac(_0x352a5e)),V(0xb,_0x42f5a0),V(0xc,_0x2781ac(B)),V(0xd,_0x1a982e(U))],X);let Z=class extends G{constructor(_0x47e1eb,_0x27b0ef,_0x79b327,_0xf6da5c,_0x25f120,_0x327ce1,_0x1b7bdc,_0x2b3d26,_0x184d15,_0xfdb320,_0x323a4b){const _0x392e0b=_0x3951cd;super(_0x47e1eb,_0x27b0ef,_0x79b327,_0xf6da5c,_0x25f120,_0x2b3d26,_0x184d15,_0x1b7bdc,_0x323a4b),this[_0x392e0b(0x41c)]=_0x327ce1,this[_0x392e0b(0x476)]=_0xfdb320,z(this,_0x392e0b(0x3bf),_0x392e0b(0x2c9));}['appendMutation'](_0x39a344){const _0x4578c1=_0x3951cd;return this['_pendingMutations'][_0x4578c1(0x405)](_0x39a344),this[_0x4578c1(0x1b8)](),this;}[_0x3951cd(0x2cf)](_0x245711){const _0x18947b=_0x3951cd;return this[_0x18947b(0x476)][_0x18947b(0x30a)]('[OfflineState]',_0x18947b(0x45b)+_0x245711[_0x18947b(0x2d7)]+'.'),this;}[_0x3951cd(0x470)](_0x54e423){const _0x4aaa2e=_0x3951cd;return this['_logService'][_0x4aaa2e(0x30a)](_0x4aaa2e(0x3a7),_0x4aaa2e(0x474)+_0x54e423['revision']+'.'),this;}[_0x3951cd(0x426)](){const _0x43daaf=_0x3951cd;return this[_0x43daaf(0x476)][_0x43daaf(0x30a)](_0x43daaf(0x3a7),_0x43daaf(0x1a8)),this;}[_0x3951cd(0x3cc)](){return this;}[_0x3951cd(0x159)](){return this;}['toggleOnline'](){const _0x319b96=_0x3951cd;let {_injector:_0x33106c,_pendingMutations:_0x506258,_awaitingChangeset:_0x2bd280,unitID:_0x1a381e,_handler:_0x44eba3,type:_0x10676a}=this,_0x2c468a=Pn(_0x33106c,_0x1a381e,_0x10676a,_0x2bd280,_0x506258,_0x44eba3);return _0x2c468a instanceof q?_0x2c468a['_schedule']():(_0x2c468a instanceof Y||_0x2c468a instanceof J)&&_0x2c468a[_0x319b96(0x3b0)](),_0x2c468a;}[_0x3951cd(0x3b0)](){const _0x87aff1=_0x3951cd;throw Error(_0x87aff1(0x471));}};Z=H([V(0x5,_0x2781ac(_0x4d605d)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x140e4b),V(0x8,_0x5a28cb),V(0x9,_0x42f5a0),V(0xa,_0x1a982e(U))],Z);let Q=class extends G{constructor(_0x1f1dd7,_0x391cbd,_0x4f1211,_0x514842,_0x36744a,_0x3f8055,_0x1b7115,_0x3c2987,_0x4c4a1d,_0x53bd25,_0x3c8dfb,_0x35322e,_0x4a1c22,_0x528349,_0xb9925){const _0x43e76e=_0x3951cd;super(_0x1f1dd7,_0x391cbd,_0x4f1211,_0x514842,_0x1b7115,_0x35322e,_0x4a1c22,_0x53bd25,_0xb9925),this[_0x43e76e(0x30d)]=_0x36744a,this[_0x43e76e(0x267)]=_0x3f8055,this[_0x43e76e(0x162)]=_0x3c2987,this[_0x43e76e(0x41c)]=_0x4c4a1d,this[_0x43e76e(0x476)]=_0x3c8dfb,this[_0x43e76e(0x2fb)]=_0x528349,this[_0x43e76e(0x2b4)]=_0xb9925,z(this,'status',_0x43e76e(0x3a3));}[_0x3951cd(0x43f)](_0x117633){const _0xf6079a=_0x3951cd;try{if(this[_0xf6079a(0x20d)](_0x117633)[_0xf6079a(0x15f)])throw Error(_0xf6079a(0x2a3));if(this[_0xf6079a(0x20d)]([...this[_0xf6079a(0x267)]]['sort']((_0x1ffaa4,_0x2d5bf8)=>_0x1ffaa4[_0xf6079a(0x2d7)]-_0x2d5bf8['revision']))[_0xf6079a(0x15f)])return this[_0xf6079a(0x267)]=[],this['_updateLocalCache'](),this[_0xf6079a(0x193)][_0xf6079a(0x40e)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x1ef9d5=this['_awaitingChangeset'],_0x1aaf75=this['_pendingMutations'],_0x92680e;if(_0x1ef9d5&&_0x1aaf75['length']!==0x0)_0x92680e=this['_injector'][_0xf6079a(0x274)](Y,this[_0xf6079a(0x2f3)],this[_0xf6079a(0x186)],_0x1ef9d5,_0x1aaf75,this[_0xf6079a(0x193)],this[_0xf6079a(0x162)]);else{if(_0x1ef9d5&&_0x1aaf75[_0xf6079a(0x377)]===0x0)_0x1ef9d5[_0xf6079a(0x21f)]=this[_0xf6079a(0x255)](),_0x92680e=this['_injector'][_0xf6079a(0x274)](J,this[_0xf6079a(0x2f3)],this[_0xf6079a(0x186)],_0x1ef9d5,this[_0xf6079a(0x193)],this[_0xf6079a(0x162)]);else{if(_0x1aaf75[_0xf6079a(0x377)]!==0x0){let _0xa5e3a2=this[_0xf6079a(0x41c)][_0xf6079a(0x274)](q,this[_0xf6079a(0x2f3)],this[_0xf6079a(0x186)],_0x1aaf75,this[_0xf6079a(0x193)]);_0xa5e3a2['_schedule'](),_0x92680e=_0xa5e3a2;}else _0x92680e=this[_0xf6079a(0x41c)]['createInstance'](K,this[_0xf6079a(0x2f3)],this['type'],this[_0xf6079a(0x193)]);}}return _0x92680e[_0xf6079a(0x1b8)](),_0x92680e;}catch(_0x54cbb1){return _0x54cbb1 instanceof Mn?(this[_0xf6079a(0x476)][_0xf6079a(0x30a)](_0xf6079a(0x3c5),_0x54cbb1[_0xf6079a(0x468)]),this[_0xf6079a(0x46d)](_0x54cbb1[_0xf6079a(0x36c)])):(this['_logService'][_0xf6079a(0x1a2)](_0xf6079a(0x3c5),_0xf6079a(0x3b1),_0x54cbb1),this[_0xf6079a(0x46d)](this[_0xf6079a(0x33d)](_0x54cbb1)));}}[_0x3951cd(0x20d)](_0x34ca60){const _0x179116=_0x3951cd;this['_acknowledgeAwaitingIfReady']();for(let _0x153ab1=0x0;_0x153ab1<_0x34ca60[_0x179116(0x377)];_0x153ab1++){let _0x552db8=_0x34ca60[_0x153ab1];switch(this[_0x179116(0x425)](_0x552db8)){case _0x179116(0x2ca):{let _0x5b39b0=this[_0x179116(0x255)]();if(_0x552db8['revision']>_0x5b39b0+0x1)return{'missingChangesets':!0x0};_0x552db8['revision']<=_0x5b39b0?this[_0x179116(0x191)]():this['_acknowledgeAwaiting']();break;}case'remote_revert':throw new Mn(this[_0x179116(0x400)](_0x552db8));case _0x179116(0x262):break;case'missing':return{'missingChangesets':!0x0};case _0x179116(0x1b9):this[_0x179116(0x1db)](_0x552db8),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x3951cd(0x1db)](_0x432bfb){const _0x816ec4=_0x3951cd;let _0x5ed9bc=_0x432bfb,_0x121838=this['_awaitingChangeset'];if(_0x121838){let _0x8fedb=this[_0x816ec4(0x2fb)][_0x816ec4(0x44c)]([_0x432bfb],[_0x121838],!0x1);if(!_0x10f8ec(_0x8fedb))throw _0x8fedb[_0x816ec4(0x1a2)];_0x5ed9bc=_0x8fedb[_0x816ec4(0x2a0)][0x0],_0x121838=_0x8fedb[_0x816ec4(0x178)][0x0];}let _0x11842b=this['_pendingMutations'];if(_0x11842b[_0x816ec4(0x377)]){let _0x334b16=this[_0x816ec4(0x2fb)][_0x816ec4(0x2cc)](_0x5ed9bc,_0x11842b);if(!_0x17508c(_0x334b16))throw _0x334b16[_0x816ec4(0x1a2)];_0x5ed9bc=_0x334b16['c1Prime'],_0x11842b=_0x334b16['m2Prime'];}this[_0x816ec4(0x42d)](_0x5ed9bc),_0x121838&&(_0x121838[_0x816ec4(0x21f)]=this[_0x816ec4(0x255)]()),this[_0x816ec4(0x325)]=_0x121838,this[_0x816ec4(0x150)]=_0x11842b;}['_acknowledgeAwaitingIfReady'](){const _0x2e6fc5=_0x3951cd;if(!this[_0x2e6fc5(0x325)]||this['_acknowledgedAwaitingRevision']==null)return;let _0x54dbd4=this[_0x2e6fc5(0x255)]();if(this[_0x2e6fc5(0x30d)]<=_0x54dbd4)throw Error(_0x2e6fc5(0x1e1)+this[_0x2e6fc5(0x30d)]+'.');this[_0x2e6fc5(0x30d)]===_0x54dbd4+0x1&&this[_0x2e6fc5(0x29c)]();}[_0x3951cd(0x29c)](){const _0x441498=_0x3951cd;this[_0x441498(0x320)](),this[_0x441498(0x191)]();}[_0x3951cd(0x191)](){const _0x36750f=_0x3951cd;this[_0x36750f(0x325)]=null,this[_0x36750f(0x30d)]=null,this[_0x36750f(0x1d8)]();}[_0x3951cd(0x1d8)](){const _0x5907ae=_0x3951cd;var _0x437255;(_0x437255=this[_0x5907ae(0x162)])==null||_0x437255[_0x5907ae(0x3b6)](),this[_0x5907ae(0x162)]=void 0x0;}[_0x3951cd(0x3b6)](){const _0x3621b2=_0x3951cd;this[_0x3621b2(0x1d8)]();}[_0x3951cd(0x3b0)](){const _0xe70e6b=_0x3951cd;throw Error(_0xe70e6b(0x249));}['appendMutation'](_0x5a64aa){const _0x4dfabe=_0x3951cd;return this[_0x4dfabe(0x150)][_0x4dfabe(0x405)](_0x5a64aa),this[_0x4dfabe(0x1b8)](),this;}[_0x3951cd(0x2cf)](_0x1d723f){const _0x1516f9=_0x3951cd;return this[_0x1516f9(0x267)][_0x1516f9(0x405)](_0x1d723f),this;}[_0x3951cd(0x470)](_0x237abb){const _0x55460e=_0x3951cd;let _0x3683bc=this[_0x55460e(0x315)](_0x237abb);if(this[_0x55460e(0x325)]){switch(_0x3683bc){case _0x55460e(0x2fd):this[_0x55460e(0x191)]();break;case _0x55460e(0x37d):break;case _0x55460e(0x466):this[_0x55460e(0x29c)]();break;case'missing':this['_acknowledgedAwaitingRevision']=_0x237abb['revision'],this[_0x55460e(0x1d8)]();}return this;}if(_0x3683bc==='stale')return this;throw Error(_0x55460e(0x250));}['onRemoteRej'](_0x432b96){const _0x9566d=_0x3951cd;return this[_0x9566d(0x46d)](this[_0x9566d(0x449)](_0x432b96));}[_0x3951cd(0x3cc)](_0x4168b1){const _0x48852b=_0x3951cd;var _0x491f35;return this[_0x48852b(0x30d)]!=null||_0x4168b1[_0x48852b(0x3ee)]!==((_0x491f35=this[_0x48852b(0x325)])==null?void 0x0:_0x491f35['reqId'])||(this[_0x48852b(0x162)]??=this[_0x48852b(0x301)](this[_0x48852b(0x325)]),this[_0x48852b(0x162)]['requestRetry']()),this;}[_0x3951cd(0x159)](){const _0x5cb45b=_0x3951cd;return this[_0x5cb45b(0x1d8)](),this[_0x5cb45b(0x41c)][_0x5cb45b(0x274)](Z,this[_0x5cb45b(0x2f3)],this[_0x5cb45b(0x186)],this[_0x5cb45b(0x325)],this[_0x5cb45b(0x150)],this[_0x5cb45b(0x193)]);}[_0x3951cd(0x430)](){return this;}[_0x3951cd(0x46d)](_0x22f25f){const _0x5f2e04=_0x3951cd;return this['_disposeSubmitter'](),this[_0x5f2e04(0x41c)][_0x5f2e04(0x274)](X,this[_0x5f2e04(0x2f3)],this[_0x5f2e04(0x186)],this[_0x5f2e04(0x325)],this[_0x5f2e04(0x150)],this[_0x5f2e04(0x193)],_0x22f25f);}};Q=H([V(0x8,_0x2781ac(_0x4d605d)),V(0x9,_0x2781ac(_0x1c1bdc)),V(0xa,_0x42f5a0),V(0xb,_0x140e4b),V(0xc,_0x5a28cb),V(0xd,_0x457218),V(0xe,_0x1a982e(U))],Q);function Pn(_0x200c7f,_0x1dd330,_0x552c1d,_0x36bce5,_0x150785,_0x2cf859){const _0x12cdd4=_0x3951cd;return _0x36bce5&&_0x150785[_0x12cdd4(0x377)]?_0x200c7f[_0x12cdd4(0x274)](Y,_0x1dd330,_0x552c1d,_0x36bce5,_0x150785,_0x2cf859,void 0x0):_0x36bce5?_0x200c7f['createInstance'](J,_0x1dd330,_0x552c1d,_0x36bce5,_0x2cf859,void 0x0):_0x150785[_0x12cdd4(0x377)]?_0x200c7f['createInstance'](q,_0x1dd330,_0x552c1d,_0x150785,_0x2cf859):_0x200c7f[_0x12cdd4(0x274)](K,_0x1dd330,_0x552c1d,_0x2cf859);}let $=class extends _0x161c82{get[_0x3951cd(0x273)](){return this['_state'];}constructor(_0x5da781,_0x31a632,_0x1254b4,_0x357622,_0x3fb358,_0x58c0b5,_0x135af2,_0x346646,_0x2d93dd,_0x204991,_0x27925b,_0x42a223,_0x527ffb,_0xd64f44){const _0x23fb9b=_0x3951cd;super(),this[_0x23fb9b(0x2f3)]=_0x5da781,this[_0x23fb9b(0x2e2)]=_0x31a632,this[_0x23fb9b(0x15a)]=_0x1254b4,this[_0x23fb9b(0x41c)]=_0x357622,this['_compressMutationService']=_0x3fb358,this[_0x23fb9b(0x370)]=_0x58c0b5,this['_revisionService']=_0x135af2,this['_eventService']=_0x346646,this[_0x23fb9b(0x3c2)]=_0x2d93dd,this[_0x23fb9b(0x476)]=_0x204991,this['_commandService']=_0x27925b,this['_permissionService']=_0x42a223,this['_singleActiveUnitService']=_0x527ffb,this[_0x23fb9b(0x2da)]=_0xd64f44,z(this,_0x23fb9b(0x225),new _0x2a2d0e(null)),z(this,_0x23fb9b(0x2eb),this[_0x23fb9b(0x225)][_0x23fb9b(0x207)]()),z(this,_0x23fb9b(0x417),void 0x0),z(this,_0x23fb9b(0x19d),!0x1),z(this,_0x23fb9b(0x2fa),''),z(this,_0x23fb9b(0x3a1),0x0),z(this,_0x23fb9b(0x443),this[_0x23fb9b(0x2eb)][_0x23fb9b(0x261)](_0x558e2b(_0x416ecb=>_0x416ecb?_0x416ecb[_0x23fb9b(0x3bf)]:_0x23fb9b(0x2c9)),_0x27a7e1({'bufferSize':0x1,'refCount':!0x0}))),z(this,_0x23fb9b(0x2f7),new _0x1c980d()),z(this,_0x23fb9b(0x46f),this[_0x23fb9b(0x2f7)][_0x23fb9b(0x207)]()),z(this,_0x23fb9b(0x396),new _0x1c980d()),z(this,_0x23fb9b(0x21d),this[_0x23fb9b(0x396)][_0x23fb9b(0x207)]()),z(this,'_transitionLocked',!0x1),z(this,_0x23fb9b(0x45c),[]);}async['init'](){const _0x1cdb79=_0x3951cd;if(this[_0x1cdb79(0x273)])throw Error(_0x1cdb79(0x2c8));await this[_0x1cdb79(0x472)]();}[_0x3951cd(0x3d5)](){const _0x142b96=_0x3951cd;return this[_0x142b96(0x19d)]=!0x0,_0x5d9427(()=>{const _0x58afc3=_0x142b96;this[_0x58afc3(0x19d)]=!0x1,this[_0x58afc3(0x1de)]();});}[_0x3951cd(0x29b)](_0x1bdf3b){const _0x364fae=_0x3951cd;this[_0x364fae(0x386)](_0x1bdf3b);}[_0x3951cd(0x39e)](){const _0xd900d7=_0x3951cd;var _0xe87ab1;return((_0xe87ab1=this[_0xd900d7(0x417)])==null?void 0x0:_0xe87ab1[_0xd900d7(0x387)]())??!0x1;}['dispose'](){const _0x26a329=_0x3951cd;var _0x3072bc;super[_0x26a329(0x3b6)](),(_0x3072bc=this['_state'])==null||_0x3072bc[_0x26a329(0x3b6)](),this[_0x26a329(0x2f7)][_0x26a329(0x46b)](),this['_conflict$']['complete']();}['_updateState'](_0x18d40c){const _0x2b6b1e=_0x3951cd;this[_0x2b6b1e(0x417)]=_0x18d40c,this[_0x2b6b1e(0x225)][_0x2b6b1e(0x466)](_0x18d40c);}async[_0x3951cd(0x472)](){const _0x5f40b7=_0x3951cd;if(this[_0x5f40b7(0x268)](await this['_createInitialState']()),this['_singleActiveUnitService']){var _0x410e84;(_0x410e84=this[_0x5f40b7(0x21e)])==null||_0x410e84['editingUnit'](this[_0x5f40b7(0x2f3)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x5f40b7(0x3e0)](this[_0x5f40b7(0x2f3)])[_0x5f40b7(0x1fa)](_0x13163f=>{const _0x5ad776=_0x5f40b7;this[_0x5ad776(0x476)][_0x5ad776(0x30a)](_0x5ad776(0x2e3),_0x5ad776(0x271),_0x13163f),_0x13163f===0x1?(this[_0x5ad776(0x3e2)]['emitEvent']({'id':_0x5ad776(0x330)}),this['_permissionService'][_0x5ad776(0x243)](new _0x761135(this[_0x5ad776(0x2f3)])['id'],!0x1),this[_0x5ad776(0x229)]['setShowComponents'](!0x1)):(this['_permissionService']['updatePermissionPoint'](new _0x761135(this[_0x5ad776(0x2f3)])['id'],!0x0),this[_0x5ad776(0x229)][_0x5ad776(0x362)](!0x0));}));}let _0x2ee847=!0x1;return this[_0x5f40b7(0x2c2)](this[_0x5f40b7(0x2e2)][_0x5f40b7(0x372)][_0x5f40b7(0x1fa)](_0x35f86b=>{const _0x409c69=_0x5f40b7;_0x35f86b===0x3?this[_0x409c69(0x189)](_0x2ee847):_0x35f86b===0x2&&(_0x2ee847=!0x0,this[_0x409c69(0x44b)]());})),this[_0x5f40b7(0x2c2)](this['session'][_0x5f40b7(0x1cb)]['subscribe'](_0x2b3315=>{const _0xc229ce=_0x5f40b7;try{switch(_0x2b3315[_0xc229ce(0x14a)]){case _0x232d5b[_0xc229ce(0x464)]:this[_0xc229ce(0x151)](_0x3dcc73(_0x2b3315[_0xc229ce(0x2d0)]));break;case _0x232d5b[_0xc229ce(0x23e)]:this[_0xc229ce(0x2ef)](_0x2b3315[_0xc229ce(0x2d0)]);break;case _0x232d5b[_0xc229ce(0x40d)]:this[_0xc229ce(0x15d)]();break;case _0x232d5b[_0xc229ce(0x380)]:this[_0xc229ce(0x18d)](_0x2b3315['data']);break;case _0x232d5b['PSEUDO_FETCH_MISSING_RESULT']:this[_0xc229ce(0x3f6)](_0x2b3315['data'][_0xc229ce(0x1d2)][_0xc229ce(0x231)](_0x8d149b=>_0x3dcc73(_0x8d149b)));break;case _0x232d5b[_0xc229ce(0x2ae)]:this[_0xc229ce(0x15d)]({'isPermissionRej':!0x0});break;case _0x232d5b[_0xc229ce(0x3d0)]:}}catch(_0x15c0f5){throw console['error'](_0xc229ce(0x188),_0x15c0f5),_0x15c0f5;}})),this[_0x5f40b7(0x417)];}[_0x3951cd(0x427)](){const _0x36e410=_0x3951cd;this[_0x36e410(0x40c)]=!0x1;}[_0x3951cd(0x1d7)](){const _0x326e66=_0x3951cd;if(this[_0x326e66(0x40c)])throw Error(_0x326e66(0x1a3));this['_transitionLocked']=!0x0;}[_0x3951cd(0x270)](_0x595f52){const _0x44e4fd=_0x3951cd;this[_0x44e4fd(0x1d7)]();try{this[_0x44e4fd(0x268)](_0x595f52());}finally{this['_unlockTransition']();}}[_0x3951cd(0x386)](_0x2bd331){const _0x3b1f2e=_0x3951cd;this['_transit'](()=>this[_0x3b1f2e(0x417)][_0x3b1f2e(0x22a)](_0x2bd331));}['_onRemoteChangeset'](_0x4ce9fc){const _0xa4a65=_0x3951cd;this[_0xa4a65(0x19d)]?this[_0xa4a65(0x45c)][_0xa4a65(0x405)](_0x4ce9fc):this['_applyRemoteChangeset'](_0x4ce9fc);}['_exhaustRemoteChangesetQueue'](){const _0x24e72f=_0x3951cd;this[_0x24e72f(0x45c)][_0x24e72f(0x258)](_0x5ddae2=>this[_0x24e72f(0x3cf)](_0x5ddae2)),this[_0x24e72f(0x45c)]=[];}[_0x3951cd(0x3cf)](_0x12b98a){const _0x403f30=_0x3951cd;let _0xb36cc7=this['_compressMutationService'][_0x403f30(0x2b5)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x403f30(0x2b5)][_0x403f30(0x296)]()[_0x403f30(0x40b)])(_0x12b98a[_0x403f30(0x446)],null)||_0x12b98a[_0x403f30(0x446)],_0x2e9da6={..._0x12b98a,'mutations':_0xb36cc7};this[_0x403f30(0x270)](()=>this['_state'][_0x403f30(0x2cf)](_0x2e9da6));}[_0x3951cd(0x2ef)](_0x1f69b3){const _0x558322=_0x3951cd;this['_transit'](()=>this[_0x558322(0x417)][_0x558322(0x470)](_0x1f69b3));}[_0x3951cd(0x15d)](_0x172659){const _0x2ce2e3=_0x3951cd;this['_transit'](()=>this[_0x2ce2e3(0x417)][_0x2ce2e3(0x426)](_0x172659));}['_onRemoteRetry'](_0x36e2f4){const _0x5f78d=_0x3951cd;this[_0x5f78d(0x270)](()=>this[_0x5f78d(0x417)][_0x5f78d(0x3cc)](_0x36e2f4));}[_0x3951cd(0x3f6)](_0xd31da6){const _0x2ee7df=_0x3951cd;let _0x1ad556=this['_state'];if(!(_0x1ad556 instanceof Q))throw TypeError(_0x2ee7df(0x232));let _0x5c746d=_0xd31da6[_0x2ee7df(0x231)](_0xc136e6=>{const _0x1eb50d=_0x2ee7df;let _0x566a8e=this[_0x1eb50d(0x287)][_0x1eb50d(0x2b5)][_0x1eb50d(0x284)](this[_0x1eb50d(0x287)][_0x1eb50d(0x2b5)][_0x1eb50d(0x296)]()[_0x1eb50d(0x40b)])(_0xc136e6[_0x1eb50d(0x446)],null)||_0xc136e6[_0x1eb50d(0x446)];return{..._0xc136e6,'mutations':_0x566a8e};});this[_0x2ee7df(0x270)](()=>_0x1ad556['onMissedChangesetFetched'](_0x5c746d));}['_toggleOffline'](){const _0x50f904=_0x3951cd;this['_transit'](()=>this[_0x50f904(0x417)]['toggleOffline']());}[_0x3951cd(0x189)](_0x74c725=!0x1){const _0x56f601=_0x3951cd;this[_0x56f601(0x270)](()=>this['_state'][_0x56f601(0x430)]());let _0x9e1cdf=this[_0x56f601(0x417)];_0x74c725&&_0x9e1cdf instanceof K&&this[_0x56f601(0x270)](()=>_0x9e1cdf['fetchMiss']());}async[_0x3951cd(0x230)](){return new Promise(_0x3d9e83=>{const _0x3679f0=_0x3bda;this['session'][_0x3679f0(0x372)][_0x3679f0(0x261)](_0x528040(0x1))[_0x3679f0(0x1fa)](async _0x256706=>{const _0x4f7382=_0x3679f0;_0x3d9e83(await this[_0x4f7382(0x1b4)](_0x256706===0x3));});});}[_0x3951cd(0x3dc)](){const _0x383339=_0x3951cd;let _0x523bca=this[_0x383339(0x2f3)],_0xd7c75c=this[_0x383339(0x41c)][_0x383339(0x312)](_0xc1d862)[_0x383339(0x3f8)](R);return{'resendTimeouts':{'ackTimeout':_0xd7c75c==null?void 0x0:_0xd7c75c[_0x383339(0x32f)],'maxAckTimeout':_0xd7c75c==null?void 0x0:_0xd7c75c[_0x383339(0x1ca)]},'onStateChange':(_0x3e9b11,_0xf2a7da)=>{const _0x2ac2a9=_0x383339;if(_0x3e9b11!==this[_0x2ac2a9(0x417)])throw Error(_0x2ac2a9(0x32e)+_0x3e9b11['status']+_0x2ac2a9(0x334)+_0xf2a7da[_0x2ac2a9(0x3bf)]+'\x0aCurrent:\x20'+this['_state']['status']);this[_0x2ac2a9(0x268)](_0xf2a7da);},'onSendChangeset':(_0x298122,_0x375456)=>{const _0x50e673=_0x383339;_0x298122[_0x50e673(0x3fa)]||(_0x298122['sid']=this[_0x50e673(0x2fa)],_0x298122[_0x50e673(0x3ee)]=++this[_0x50e673(0x3a1)]);let _0x11d153={'eventID':_0x232d5b[_0x50e673(0x222)],'data':{'unitID':_0x298122[_0x50e673(0x2f3)],'unitType':this[_0x50e673(0x15a)],'changeset':_0x298122,'memberID':this[_0x50e673(0x2e2)][_0x50e673(0x1f9)]()}};return this[_0x50e673(0x2e2)][_0x50e673(0x2b3)](_0x11d153,this[_0x50e673(0x2f3)],_0x375456);},'onConflict':(_0x5f1f15,_0x15c5de,_0x236615)=>{const _0x4c2c1b=_0x383339;this[_0x4c2c1b(0x396)][_0x4c2c1b(0x1fb)]||this[_0x4c2c1b(0x396)][_0x4c2c1b(0x466)]({'unitID':_0x523bca,..._0x5f1f15,'localChanges':_0x15c5de,'cacheCleared':_0x236615});},'onChangesetResend':_0x515d91=>{const _0x383b05=_0x383339;this[_0x383b05(0x476)]['debug']('[CollaborationEntity]','resent\x20changeset\x20'+_0x515d91[_0x383b05(0x3ee)]+'\x20('+_0x515d91[_0x383b05(0x46c)]+',\x20attempt\x20'+_0x515d91['attempt']+')'),queueMicrotask(()=>{const _0x2666a2=_0x383b05;this[_0x2666a2(0x2f7)][_0x2666a2(0x1fb)]||this[_0x2666a2(0x2f7)]['next']({'unitID':_0x523bca,..._0x515d91});});},'onMissingChangesets':({from:_0x1c0ef3,to:_0x240cb5})=>{const _0x151305=_0x383339;this[_0x151305(0x476)][_0x151305(0x30a)](_0x151305(0x2e3),_0x151305(0x43a)+_0x1c0ef3+_0x151305(0x23c)+_0x240cb5);let _0x4d19d0={'eventID':_0x232d5b[_0x151305(0x339)],'data':{'unitID':_0x523bca,'unitType':this[_0x151305(0x15a)],'from':_0x1c0ef3,'to':_0x240cb5}};this['session'][_0x151305(0x2b3)](_0x4d19d0,this[_0x151305(0x2f3)]);}};}async[_0x3951cd(0x1b4)](_0x552026){const _0x4e200d=_0x3951cd;var _0x1e03bc;let _0x301020=await((_0x1e03bc=this['_localCacheService'])==null?void 0x0:_0x1e03bc[_0x4e200d(0x185)](this[_0x4e200d(0x2f3)])),_0x1be8e6=(_0x301020==null?void 0x0:_0x301020[_0x4e200d(0x446)])??[],_0x407c7e=(_0x301020==null?void 0x0:_0x301020[_0x4e200d(0x2b6)])??null,_0x4e34dd=!!(_0x407c7e!=null&&_0x407c7e[_0x4e200d(0x3fa)])&&!!(_0x407c7e!=null&&_0x407c7e['reqId']);this[_0x4e200d(0x2fa)]=_0x4e34dd?_0x407c7e[_0x4e200d(0x3fa)]:_0x2c83f6(),this[_0x4e200d(0x3a1)]=_0x4e34dd?_0x407c7e[_0x4e200d(0x3ee)]:0x0;let _0x1bae52=this[_0x4e200d(0x2f3)];try{this['_replayCachedMutations'](_0x407c7e,_0x1be8e6);}catch(_0x4c5625){this[_0x4e200d(0x476)][_0x4e200d(0x1a2)](_0x4c5625);}let _0x2a23f9=this[_0x4e200d(0x3dc)]();if(_0x552026){let _0xf11321=Pn(this[_0x4e200d(0x41c)],_0x1bae52,this['_type'],_0x407c7e,_0x1be8e6,_0x2a23f9);return _0xf11321 instanceof q?_0xf11321[_0x4e200d(0x20e)]():(_0xf11321 instanceof Y||_0xf11321 instanceof J)&&_0xf11321[_0x4e200d(0x3b0)](),_0xf11321;}return this[_0x4e200d(0x41c)][_0x4e200d(0x274)](Z,_0x1bae52,this[_0x4e200d(0x15a)],_0x407c7e,_0x1be8e6,_0x2a23f9);}[_0x3951cd(0x414)](_0x277a71,_0x457a65){const _0x474ad7=_0x3951cd;var _0x3d6620,_0x1c6a49;let _0x150cbc=this[_0x474ad7(0x287)][_0x474ad7(0x2b5)][_0x474ad7(0x284)](this[_0x474ad7(0x287)][_0x474ad7(0x2b5)][_0x474ad7(0x296)]()[_0x474ad7(0x40b)]);(_0x3d6620=_0x150cbc((_0x277a71==null?void 0x0:_0x277a71[_0x474ad7(0x446)])||[],null))==null||_0x3d6620[_0x474ad7(0x258)](_0x4e2769=>this[_0x474ad7(0x429)][_0x474ad7(0x349)](_0x4e2769['id'],_0x4e2769[_0x474ad7(0x1f3)])),(_0x1c6a49=_0x150cbc(_0x457a65||[],null))==null||_0x1c6a49[_0x474ad7(0x258)](_0x403264=>this['_commandService'][_0x474ad7(0x349)](_0x403264['id'],_0x403264[_0x474ad7(0x1f3)]));}};$=H([V(0x3,_0x2781ac(_0x4d605d)),V(0x4,_0x2781ac(_0x3bbb34)),V(0x5,_0x2781ac(_0x1b1a62)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x2781ac(B)),V(0x8,_0xa820d0),V(0x9,_0x42f5a0),V(0xa,_0x140e4b),V(0xb,_0x58d573),V(0xc,_0x1a982e(W)),V(0xd,_0x1a982e(U))],$);let Fn=class extends ${constructor(_0xdcd15,_0x1df9f6,_0x458fa3,_0x1a8517,_0x5e9074,_0x1c777d,_0x2f4891,_0x2f8e92,_0x4efeca,_0x59beb8,_0x29c785,_0x4e98b9,_0x5bf0c4,_0x54c541,_0xc293ba){const _0x58aed8=_0x3951cd;super(_0xdcd15,_0x458fa3,_0x1df9f6,_0x1a8517,_0x5e9074,_0x1c777d,_0x2f4891,_0x2f8e92,_0x4efeca,_0x59beb8,_0x29c785,_0x4e98b9,_0x54c541,_0xc293ba),this[_0x58aed8(0x2f3)]=_0xdcd15,this[_0x58aed8(0x186)]=_0x1df9f6,this[_0x58aed8(0x23b)]=_0x5bf0c4,z(this,_0x58aed8(0x190),null);}['addHandlerCallback'](_0x285c2e){this['_handlerCallback']=_0x285c2e;}[_0x3951cd(0x3b6)](){const _0xb54afd=_0x3951cd;this['_handlerCallback']=null,super[_0xb54afd(0x3b6)]();}[_0x3951cd(0x3dc)](){const _0x1181c4=_0x3951cd;let _0x509b19=super['_createHandler']();return _0x509b19[_0x1181c4(0x24b)]=_0x116fba=>{const _0x24da6d=_0x1181c4;var _0x3b378d,_0x2dfcc1;return(_0x3b378d=this[_0x24da6d(0x190)])==null||(_0x2dfcc1=_0x3b378d[_0x24da6d(0x24b)])==null?void 0x0:_0x2dfcc1[_0x24da6d(0x326)](_0x3b378d,_0x116fba);},_0x509b19['onTransformState']=_0x3fe4e8=>{const _0x541446=_0x1181c4;var _0x57c1a3,_0x5af308;return(_0x57c1a3=this[_0x541446(0x190)])==null||(_0x5af308=_0x57c1a3['onTransformState'])==null?void 0x0:_0x5af308[_0x541446(0x326)](_0x57c1a3,_0x3fe4e8);},_0x509b19[_0x1181c4(0x32a)]=_0x51f83e=>{const _0x31a3fb=_0x1181c4;var _0x12e70e,_0x4ccd85;return((_0x12e70e=this[_0x31a3fb(0x190)])==null||(_0x4ccd85=_0x12e70e[_0x31a3fb(0x32a)])==null?void 0x0:_0x4ccd85['call'](_0x12e70e,_0x51f83e))??null;},_0x509b19[_0x1181c4(0x44f)]=_0x5ceee9=>{const _0x242051=_0x1181c4;var _0x309c39,_0x3ab158;return(_0x309c39=this[_0x242051(0x190)])==null||(_0x3ab158=_0x309c39[_0x242051(0x44f)])==null?void 0x0:_0x3ab158[_0x242051(0x326)](_0x309c39,_0x5ceee9);},_0x509b19[_0x1181c4(0x2e9)]=_0x191b4d=>{const _0x3ced31=_0x1181c4;var _0xa5bcf9,_0x35411b;return(_0xa5bcf9=this['_handlerCallback'])==null||(_0x35411b=_0xa5bcf9[_0x3ced31(0x2e9)])==null?void 0x0:_0x35411b[_0x3ced31(0x326)](_0xa5bcf9,_0x191b4d);},_0x509b19[_0x1181c4(0x1e5)]=_0x459d55=>{const _0x9866ae=_0x1181c4;var _0x1fd54e,_0x9c381c;return((_0x1fd54e=this[_0x9866ae(0x190)])==null||(_0x9c381c=_0x1fd54e['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x9c381c[_0x9866ae(0x326)](_0x1fd54e,_0x459d55))??_0x459d55;},_0x509b19['onTransformRemoteChangesetByStateCache']=_0x190509=>{const _0x2298a0=_0x1181c4;var _0x17af7f,_0xeed601;return((_0x17af7f=this['_handlerCallback'])==null||(_0xeed601=_0x17af7f[_0x2298a0(0x418)])==null?void 0x0:_0xeed601[_0x2298a0(0x326)](_0x17af7f,_0x190509))??_0x190509;},_0x509b19;}async[_0x3951cd(0x472)](){const _0x50bc72=_0x3951cd;let _0x7d84d9=await super[_0x50bc72(0x472)]();return this[_0x50bc72(0x2c2)](this[_0x50bc72(0x23b)][_0x50bc72(0x35a)][_0x50bc72(0x1fa)](_0x3e66ca=>{const _0x447b3b=_0x50bc72;if(_0x3e66ca==null||_0x3e66ca['unitId']!==this['unitID'])return;let {commandId:_0x1b7f63,redoState:_0x53fff7,unitId:_0x46fea8}=_0x3e66ca,_0x22b720={'id':_0x1b7f63,'type':_0x5da130[_0x447b3b(0x2f1)],'params':{'unitId':_0x46fea8,'actions':_0x53fff7[_0x447b3b(0x2fc)],'textRanges':null}};this[_0x447b3b(0x386)](_0x22b720);})),this[_0x50bc72(0x2c2)](this[_0x50bc72(0x429)][_0x50bc72(0x168)]((_0x401975,_0x110d21)=>{const _0x44d9d7=_0x50bc72;if(_0x401975[_0x44d9d7(0x186)]!==_0x5da130[_0x44d9d7(0x2f1)]||_0x110d21!=null&&_0x110d21['fromCollab']||_0x110d21!=null&&_0x110d21['onlyLocal']||_0x401975['id']===_0x3f15d9['id'])return;let _0x50ccb1=_0x401975['params'];if((_0x50ccb1==null?void 0x0:_0x50ccb1[_0x44d9d7(0x398)])!==this[_0x44d9d7(0x2f3)])return;let _0x31b34a=_0x401975,_0x5fa96c=this['_compressMutationService'][_0x44d9d7(0x2b5)][_0x44d9d7(0x284)](this['_compressMutationService'][_0x44d9d7(0x2b5)][_0x44d9d7(0x296)]()[_0x44d9d7(0x1c6)])([_0x31b34a],this['_univerInstanceService'])||[_0x31b34a];this[_0x44d9d7(0x386)](_0x5fa96c[0x0]);})),_0x7d84d9;}};Fn=H([V(0x3,_0x2781ac(_0x4d605d)),V(0x4,_0x2781ac(_0x3bbb34)),V(0x5,_0x2781ac(_0x1b1a62)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x2781ac(B)),V(0x8,_0xa820d0),V(0x9,_0x42f5a0),V(0xa,_0x140e4b),V(0xb,_0x58d573),V(0xc,_0x2781ac(_0x3217cb)),V(0xd,_0x1a982e(W)),V(0xe,_0x1a982e(U))],Fn);let In=class extends ${constructor(_0x5ebd94,_0x5f386a,_0x492a55,_0x57b9f3,_0x476fbf,_0x2fb1f1,_0x5d7771,_0x8b684a,_0x26503d,_0x26b904,_0x210479,_0x4f355b,_0x49b372,_0x5ef53d){const _0x4ab4ef=_0x3951cd;super(_0x5ebd94,_0x492a55,_0x5f386a,_0x57b9f3,_0x476fbf,_0x2fb1f1,_0x5d7771,_0x8b684a,_0x26503d,_0x26b904,_0x210479,_0x4f355b,_0x49b372,_0x5ef53d),this[_0x4ab4ef(0x2f3)]=_0x5ebd94,this[_0x4ab4ef(0x186)]=_0x5f386a;}async[_0x3951cd(0x472)](){const _0xb00649=_0x3951cd;let _0xbdbca8=await super[_0xb00649(0x472)]();return this[_0xb00649(0x2c2)](this[_0xb00649(0x429)][_0xb00649(0x168)]((_0x18d439,_0x2c0c51)=>{const _0x51aba8=_0xb00649;if(_0x18d439[_0x51aba8(0x186)]!==_0x5da130[_0x51aba8(0x2f1)]||_0x2c0c51!=null&&_0x2c0c51[_0x51aba8(0x269)]||_0x2c0c51!=null&&_0x2c0c51['onlyLocal'])return;let _0x5b91c2=_0x18d439[_0x51aba8(0x1f3)];if((_0x5b91c2==null?void 0x0:_0x5b91c2[_0x51aba8(0x398)])!==this[_0x51aba8(0x2f3)])return;let _0x41c669=_0x18d439,_0x15e87f=this['_compressMutationService'][_0x51aba8(0x2b5)]['fetchThroughInterceptors'](this[_0x51aba8(0x287)][_0x51aba8(0x2b5)]['getInterceptPoints']()[_0x51aba8(0x1c6)])([_0x41c669],this[_0x51aba8(0x3c2)])||[_0x41c669];this[_0x51aba8(0x386)](_0x15e87f[0x0]);})),_0xbdbca8;}};In=H([V(0x3,_0x2781ac(_0x4d605d)),V(0x4,_0x2781ac(_0x3bbb34)),V(0x5,_0x2781ac(_0x1b1a62)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x2781ac(B)),V(0x8,_0xa820d0),V(0x9,_0x42f5a0),V(0xa,_0x140e4b),V(0xb,_0x58d573),V(0xc,_0x1a982e(W)),V(0xd,_0x1a982e(U))],In);let Ln=class extends ${constructor(_0x41f61c,_0x509bdb,_0x38e5f7,_0x3bb881,_0x193625,_0x141f93,_0x127366,_0x4e4df6,_0x392357,_0x236287,_0x1181c7,_0x3577cd,_0x3fbdc2,_0x339f2d,_0x26655e){const _0x15895f=_0x3951cd;super(_0x41f61c,_0x38e5f7,_0x509bdb,_0x3bb881,_0x193625,_0x141f93,_0x127366,_0x392357,_0x236287,_0x1181c7,_0x3577cd,_0x3fbdc2,_0x339f2d,_0x26655e),this[_0x15895f(0x2f3)]=_0x41f61c,this['type']=_0x509bdb,this[_0x15895f(0x2aa)]=_0x4e4df6;}[_0x3951cd(0x3dc)](){const _0x4190b7=_0x3951cd;let _0x1beb9d=super[_0x4190b7(0x3dc)]();return _0x1beb9d[_0x4190b7(0x44f)]=_0x438204=>this[_0x4190b7(0x2aa)][_0x4190b7(0x3b3)](_0x438204),_0x1beb9d;}async[_0x3951cd(0x472)](){const _0x2b6802=_0x3951cd;let _0x1c06d3=await super[_0x2b6802(0x472)]();return this[_0x2b6802(0x2c2)](this[_0x2b6802(0x429)][_0x2b6802(0x168)]((_0x111f48,_0x2026c4)=>{const _0x7f0cd2=_0x2b6802;if(_0x111f48[_0x7f0cd2(0x186)]!==_0x5da130[_0x7f0cd2(0x2f1)]||_0x2026c4!=null&&_0x2026c4[_0x7f0cd2(0x269)]||_0x2026c4!=null&&_0x2026c4['onlyLocal'])return;let _0x3f02ab=_0x111f48[_0x7f0cd2(0x1f3)];if((_0x3f02ab==null?void 0x0:_0x3f02ab[_0x7f0cd2(0x398)])!==this[_0x7f0cd2(0x2f3)])return;let _0x19682b=_0x111f48,_0x2894fe=this[_0x7f0cd2(0x287)][_0x7f0cd2(0x2b5)][_0x7f0cd2(0x284)](this[_0x7f0cd2(0x287)][_0x7f0cd2(0x2b5)][_0x7f0cd2(0x296)]()[_0x7f0cd2(0x1c6)])([_0x19682b],this[_0x7f0cd2(0x3c2)])||[_0x19682b];this['_onLocalMutation'](_0x2894fe[0x0]);})),_0x1c06d3;}};Ln=H([V(0x3,_0x2781ac(_0x4d605d)),V(0x4,_0x2781ac(_0x3bbb34)),V(0x5,_0x2781ac(_0x1b1a62)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x2781ac(ln)),V(0x8,_0x2781ac(B)),V(0x9,_0xa820d0),V(0xa,_0x42f5a0),V(0xb,_0x140e4b),V(0xc,_0x58d573),V(0xd,_0x1a982e(W)),V(0xe,_0x1a982e(U))],Ln);let Rn=class extends ${constructor(_0x42ab9e,_0x543c0f,_0x1da66a,_0x31f6fc,_0x48f0dd,_0x555ed0,_0x21ffc4,_0x4df724,_0xaebac5,_0x1adecf,_0x3e5ffd,_0x532dbe,_0x3bd499,_0x1b9116){const _0x2e0ae7=_0x3951cd;super(_0x42ab9e,_0x1da66a,_0x543c0f,_0x31f6fc,_0x48f0dd,_0x555ed0,_0x21ffc4,_0x4df724,_0xaebac5,_0x1adecf,_0x3e5ffd,_0x532dbe,_0x3bd499,_0x1b9116),this[_0x2e0ae7(0x2f3)]=_0x42ab9e,this['type']=_0x543c0f;}async[_0x3951cd(0x472)](){const _0x5b0866=_0x3951cd;let _0xf9ef86=await super[_0x5b0866(0x472)]();return this[_0x5b0866(0x2c2)](this['_commandService']['onMutationExecutedForCollab']((_0x41b5d9,_0x224711)=>{const _0x5822c6=_0x5b0866;if(_0x41b5d9['type']!==_0x5da130['MUTATION']||_0x224711!=null&&_0x224711['fromCollab']||_0x224711!=null&&_0x224711[_0x5822c6(0x389)])return;let _0x32cc1e=_0x41b5d9[_0x5822c6(0x1f3)];if((_0x32cc1e==null?void 0x0:_0x32cc1e[_0x5822c6(0x398)])!==this['unitID'])return;let _0x3d5d20=_0x41b5d9,_0x195cb5=this[_0x5822c6(0x287)][_0x5822c6(0x2b5)][_0x5822c6(0x284)](this[_0x5822c6(0x287)][_0x5822c6(0x2b5)][_0x5822c6(0x296)]()[_0x5822c6(0x1c6)])([_0x3d5d20],this[_0x5822c6(0x3c2)])||[_0x3d5d20];this[_0x5822c6(0x386)](_0x195cb5[0x0]);})),_0xf9ef86;}};Rn=H([V(0x3,_0x2781ac(_0x4d605d)),V(0x4,_0x2781ac(_0x3bbb34)),V(0x5,_0x2781ac(_0x1b1a62)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x2781ac(B)),V(0x8,_0xa820d0),V(0x9,_0x42f5a0),V(0xa,_0x140e4b),V(0xb,_0x58d573),V(0xc,_0x1a982e(W)),V(0xd,_0x1a982e(U))],Rn);let zn=class extends ${constructor(_0x1ecda2,_0x4f844c,_0x4ef630,_0x30f157,_0x52574e,_0x53aa2d,_0x565a44,_0x2fb00e,_0x16be39,_0x33c162,_0x176eab,_0x484a3b,_0x5e0257,_0x577d59){const _0x190212=_0x3951cd;super(_0x1ecda2,_0x4ef630,_0x4f844c,_0x30f157,_0x52574e,_0x53aa2d,_0x565a44,_0x2fb00e,_0x16be39,_0x33c162,_0x176eab,_0x484a3b,_0x5e0257,_0x577d59),this[_0x190212(0x2f3)]=_0x1ecda2,this[_0x190212(0x186)]=_0x4f844c;}async[_0x3951cd(0x472)](){const _0x31b350=_0x3951cd;let _0x111cd7=await super[_0x31b350(0x472)]();return this[_0x31b350(0x2c2)](this['_commandService'][_0x31b350(0x168)]((_0x4a27ab,_0x546862)=>{const _0x320a6d=_0x31b350;if(_0x4a27ab[_0x320a6d(0x186)]!==_0x5da130[_0x320a6d(0x2f1)]||_0x546862!=null&&_0x546862['fromCollab']||_0x546862!=null&&_0x546862[_0x320a6d(0x389)])return;let _0xc8a431=_0x4a27ab[_0x320a6d(0x1f3)];if((_0xc8a431==null?void 0x0:_0xc8a431[_0x320a6d(0x398)])!==this['unitID'])return;let _0x5c2d5e=_0x4a27ab,_0x3427d1=this[_0x320a6d(0x287)][_0x320a6d(0x2b5)][_0x320a6d(0x284)](this[_0x320a6d(0x287)][_0x320a6d(0x2b5)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5c2d5e],this[_0x320a6d(0x3c2)])||[_0x5c2d5e];this[_0x320a6d(0x386)](_0x3427d1[0x0]);})),_0x111cd7;}};zn=H([V(0x3,_0x2781ac(_0x4d605d)),V(0x4,_0x2781ac(_0x3bbb34)),V(0x5,_0x2781ac(_0x1b1a62)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x2781ac(B)),V(0x8,_0xa820d0),V(0x9,_0x42f5a0),V(0xa,_0x140e4b),V(0xb,_0x58d573),V(0xc,_0x1a982e(W)),V(0xd,_0x1a982e(U))],zn);let Bn=class extends ${constructor(_0x38e2e5,_0x4824df,_0xb19fd0,_0x3b2ecc,_0x482da7,_0x1afa44,_0x1c691b,_0x469804,_0xaa2ae9,_0x1ef534,_0x34676c,_0x20c6d3,_0x4977ba,_0xdc43b8){const _0x4033bd=_0x3951cd;super(_0x38e2e5,_0xb19fd0,_0x4824df,_0x3b2ecc,_0x482da7,_0x1afa44,_0x1c691b,_0x469804,_0xaa2ae9,_0x1ef534,_0x34676c,_0x20c6d3,_0x4977ba,_0xdc43b8),this[_0x4033bd(0x2f3)]=_0x38e2e5,this[_0x4033bd(0x186)]=_0x4824df;}async[_0x3951cd(0x472)](){const _0x51faff=_0x3951cd;let _0x22fe96=await super[_0x51faff(0x472)]();return this[_0x51faff(0x2c2)](this[_0x51faff(0x429)]['onMutationExecutedForCollab']((_0x50724c,_0x5d0fe4)=>{const _0x4fb24f=_0x51faff;if(_0x50724c[_0x4fb24f(0x186)]!==_0x5da130[_0x4fb24f(0x2f1)]||_0x5d0fe4!=null&&_0x5d0fe4[_0x4fb24f(0x269)]||_0x5d0fe4!=null&&_0x5d0fe4[_0x4fb24f(0x389)])return;let _0x1585fe=_0x50724c[_0x4fb24f(0x1f3)];if((_0x1585fe==null?void 0x0:_0x1585fe[_0x4fb24f(0x398)])!==this['unitID'])return;let _0x2806aa=_0x50724c,_0x360271=this['_compressMutationService']['interceptor'][_0x4fb24f(0x284)](this['_compressMutationService'][_0x4fb24f(0x2b5)][_0x4fb24f(0x296)]()[_0x4fb24f(0x1c6)])([_0x2806aa],this[_0x4fb24f(0x3c2)])||[_0x2806aa];this[_0x4fb24f(0x386)](_0x360271[0x0]);})),_0x22fe96;}};Bn=H([V(0x3,_0x2781ac(_0x4d605d)),V(0x4,_0x2781ac(_0x3bbb34)),V(0x5,_0x2781ac(_0x1b1a62)),V(0x6,_0x2781ac(_0x1c1bdc)),V(0x7,_0x2781ac(B)),V(0x8,_0xa820d0),V(0x9,_0x42f5a0),V(0xa,_0x140e4b),V(0xb,_0x58d573),V(0xc,_0x1a982e(W)),V(0xd,_0x1a982e(U))],Bn);const Vn=_0xdde0fc(_0x3951cd(0x34e));function Hn(_0x34f0f7){const _0x2d29ca=_0x3951cd;let _0x3bde73=_0x34f0f7['data'],_0xbe287d=JSON[_0x2d29ca(0x441)](_0x3bde73);switch(_0xbe287d['cmd']){case _0x5cf4e9[_0x2d29ca(0x3c0)]:case _0x5cf4e9[_0x2d29ca(0x314)]:{let _0x115f04=_0xbe287d['infoRsp'];return{..._0xbe287d,'data':_0x115f04,'cmd':_0xbe287d[_0x2d29ca(0x14e)]};}case _0x5cf4e9[_0x2d29ca(0x235)]:{let _0x1a6bd0=_0xbe287d['joinRsp'];return{..._0xbe287d,'data':_0x1a6bd0,'cmd':_0xbe287d[_0x2d29ca(0x14e)]};}case _0x5cf4e9['RECV']:{let _0x3add99=_0xbe287d[_0x2d29ca(0x1b0)];switch(_0x3add99[_0x2d29ca(0x14a)]){case _0x232d5b[_0x2d29ca(0x2ae)]:var _0x1a13fb;return{..._0xbe287d,'data':{..._0x3add99,'data':(_0x1a13fb=_0x3add99[_0x2d29ca(0x1ef)])==null?void 0x0:_0x1a13fb['cs']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x23e)]:var _0xc71920;return{..._0xbe287d,'data':{..._0x3add99,'data':(_0xc71920=_0x3add99[_0x2d29ca(0x2f4)])==null?void 0x0:_0xc71920['cs']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x464)]:var _0x114e5f;return{..._0xbe287d,'data':{..._0x3add99,'data':(_0x114e5f=_0x3add99[_0x2d29ca(0x462)])==null?void 0x0:_0x114e5f['cs']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x40d)]:var _0x4f6a0b;return{..._0xbe287d,'data':{..._0x3add99,'data':(_0x4f6a0b=_0x3add99[_0x2d29ca(0x281)])==null?void 0x0:_0x4f6a0b['cs']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x380)]:var _0x2ab99f;return{..._0xbe287d,'data':{..._0x3add99,'data':(_0x2ab99f=_0x3add99[_0x2d29ca(0x20b)])==null?void 0x0:_0x2ab99f['cs']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b['UPDATE_CURSOR']:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99[_0x2d29ca(0x205)]},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x36f)]:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99['joinEvent']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b['USERS_LEAVE']:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99[_0x2d29ca(0x1b6)]},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x228)]:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99[_0x2d29ca(0x163)]},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x149)]:case _0x232d5b['LIVESHARE_OPERATION']:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99['liveShareOperation']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b['LIVESHARE_TERMINATE']:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99['liveShareNewHost']},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x173)]:return{..._0xbe287d,'data':_0x3add99,'cmd':_0xbe287d['cmd']};case _0x232d5b[_0x2d29ca(0x2e0)]:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99[_0x2d29ca(0x2ff)]},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b['UPDATE_PERMISSION_OBJ']:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99[_0x2d29ca(0x394)]},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};case _0x232d5b[_0x2d29ca(0x3e8)]:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99['shouldCloseConn']},'cmd':_0xbe287d['cmd']};case _0x232d5b['UNISCRIPT_RUN']:return{..._0xbe287d,'data':{..._0x3add99,'data':_0x3add99[_0x2d29ca(0x406)]},'cmd':_0xbe287d[_0x2d29ca(0x14e)]};default:return _0xbe287d;}}default:return _0xbe287d;}}function Un(_0x31fb0b){const _0x24115c=_0x3951cd;switch(_0x31fb0b[_0x24115c(0x14e)]){case _0x5cf4e9[_0x24115c(0x3c0)]:case _0x5cf4e9[_0x24115c(0x314)]:return JSON['stringify']({'cmd':_0x31fb0b[_0x24115c(0x14e)],'routeKey':_0x31fb0b[_0x24115c(0x434)]});case _0x5cf4e9[_0x24115c(0x1f4)]:{let _0x3629f3;switch(_0x31fb0b[_0x24115c(0x2d0)][_0x24115c(0x14a)]){case _0x232d5b['UPDATE_CURSOR']:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x373)],'updateCursorEvent':_0x31fb0b[_0x24115c(0x2d0)][_0x24115c(0x2d0)]};break;case _0x232d5b[_0x24115c(0x20a)]:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x20a)],'leaveEvent':_0x31fb0b[_0x24115c(0x2d0)][_0x24115c(0x2d0)]};break;case _0x232d5b['USERS_ENTER']:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x36f)],'joinEvent':_0x31fb0b[_0x24115c(0x2d0)][_0x24115c(0x2d0)]};break;case _0x232d5b[_0x24115c(0x228)]:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x228)],'liveShareNewHost':_0x31fb0b['data'][_0x24115c(0x2d0)]};break;case _0x232d5b[_0x24115c(0x2f2)]:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x2f2)],'liveShareOperation':_0x31fb0b[_0x24115c(0x2d0)][_0x24115c(0x2d0)]};break;case _0x232d5b[_0x24115c(0x356)]:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x356)],'liveShareTerminate':_0x31fb0b[_0x24115c(0x2d0)]['data']};break;case _0x232d5b[_0x24115c(0x2ad)]:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x2ad)],'liveShareRequestHost':_0x31fb0b[_0x24115c(0x2d0)]['data']};break;case _0x232d5b[_0x24115c(0x149)]:_0x3629f3={'eventID':_0x232d5b[_0x24115c(0x149)]};break;default:_0x3629f3={'eventID':_0x31fb0b[_0x24115c(0x2d0)]['eventID']};}return JSON['stringify']({'cmd':_0x31fb0b[_0x24115c(0x14e)],'routeKey':_0x31fb0b[_0x24115c(0x434)],'collaMsg':_0x3629f3});}case _0x5cf4e9[_0x24115c(0x235)]:return JSON[_0x24115c(0x1c9)]({'cmd':_0x31fb0b['cmd'],'routeKey':_0x31fb0b[_0x24115c(0x434)],'joinReq':_0x31fb0b[_0x24115c(0x2d0)]});case _0x5cf4e9[_0x24115c(0x1f6)]:return JSON[_0x24115c(0x1c9)]({'cmd':_0x31fb0b[_0x24115c(0x14e)],'routeKey':_0x31fb0b[_0x24115c(0x434)],'leaveReq':_0x31fb0b[_0x24115c(0x2d0)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Wn=_0xdde0fc(_0x3951cd(0x237));function Gn(_0x4f0d61,_0x2c97d4,_0x5675d9){const _0x7e3464=_0x3951cd;return _0x4f0d61+'/'+_0x2c97d4+_0x7e3464(0x45a)+_0x5675d9+_0x7e3464(0x450);}let Kn=class extends _0x361893{constructor(_0x1d665e,_0x1eb9aa,_0x30ec25,_0x81554c,_0x2bbd75){const _0x17b3fd=_0x3951cd;super(),this[_0x17b3fd(0x41c)]=_0x1d665e,this[_0x17b3fd(0x1bd)]=_0x1eb9aa,this['_configService']=_0x30ec25,this[_0x17b3fd(0x476)]=_0x81554c,this[_0x17b3fd(0x248)]=_0x2bbd75;}[_0x3951cd(0x444)](_0xa036c5){const _0x311058=_0x3951cd;let _0x5ff7ed=this[_0x311058(0x41c)][_0x311058(0x312)](_0x45c4a7);if(!_0x5ff7ed)throw Error(_0x311058(0x407));let _0x5b5621=_0x5ff7ed[_0x311058(0x43d)](_0xa036c5);if(!_0x5b5621)throw Error(_0x311058(0x459));let _0x45fc29=new _0x4ad1af(),_0x5550d8=new _0x1c980d();_0x45fc29[_0x311058(0x177)](_0x5b5621[_0x311058(0x3df)][_0x311058(0x1fa)](_0x1388ff=>_0x5550d8[_0x311058(0x466)](_0x1388ff))),_0x45fc29[_0x311058(0x177)](_0x5d9427(()=>_0x5550d8['complete']()));let _0x45d30f=new _0x1c980d();_0x45fc29[_0x311058(0x177)](_0x5b5621[_0x311058(0x3f4)]['subscribe'](_0x5553e9=>_0x45d30f[_0x311058(0x466)](_0x5553e9))),_0x45fc29[_0x311058(0x177)](_0x5d9427(()=>_0x45d30f[_0x311058(0x46b)]()));let _0x48f287=new _0x1c980d();_0x45fc29[_0x311058(0x177)](_0x5b5621[_0x311058(0x1a4)][_0x311058(0x1fa)](_0xa78a73=>{const _0x3cefe1=_0x311058;let _0x533404=Hn(_0xa78a73);_0x48f287[_0x3cefe1(0x466)](_0x533404);})),_0x45fc29['add'](_0x5d9427(()=>_0x48f287['complete']()));let _0x18d49d,_0x162c51=()=>{const _0x2722ee=_0x311058;_0x45d30f[_0x2722ee(0x466)](new Event(_0x2722ee(0x311))),_0x5550d8[_0x2722ee(0x466)](new Event(_0x2722ee(0x311))),_0x18d49d[_0x2722ee(0x291)]();};return _0x18d49d={'memberID':'','close$':_0x5550d8['asObservable'](),'error$':_0x45d30f[_0x311058(0x207)](),'open$':_0x5b5621[_0x311058(0x1e2)],'message$':_0x48f287[_0x311058(0x207)](),'send':(_0x4a038d,_0x4a8306)=>{const _0x38141e=_0x311058;if(_0x4a038d[_0x38141e(0x14e)]===_0x5cf4e9[_0x38141e(0x1f4)]){if(_0x4a038d[_0x38141e(0x2d0)][_0x38141e(0x14a)]===_0x232d5b['SUBMIT_CHANGESET']){let _0x16f7a8=this[_0x38141e(0x3fc)](_0x18d49d,_0x4a038d[_0x38141e(0x2d0)],(_0x4a8306==null?void 0x0:_0x4a8306[_0x38141e(0x3fe)])??0x1d4c0);return _0x16f7a8[_0x38141e(0x220)](()=>void 0x0),_0x16f7a8;}if(_0x4a038d[_0x38141e(0x2d0)]['eventID']===_0x232d5b['FETCH_MISSING']){let _0x2fc0c3=_0x4a038d[_0x38141e(0x2d0)];this[_0x38141e(0x20c)](_0x2fc0c3)['then'](_0x493fb4=>{const _0x223aef=_0x38141e;_0x48f287[_0x223aef(0x466)]({'cmd':_0x5cf4e9[_0x223aef(0x45d)],'code':_0x57718a['OK'],'routeKey':_0x2fc0c3[_0x223aef(0x2d0)][_0x223aef(0x2f3)],'routeType':'','data':{'eventID':_0x232d5b[_0x223aef(0x23a)],'data':{'changesets':_0x493fb4}}});})[_0x38141e(0x220)](_0x2c85b1=>{const _0x52179c=_0x38141e;this[_0x52179c(0x476)][_0x52179c(0x1a2)](_0x2c85b1),_0x162c51();});return;}}_0x5b5621['send'](Un(_0x4a038d));},'close':()=>{const _0x2d8363=_0x311058;_0x5b5621[_0x2d8363(0x291)](),_0x45fc29['dispose']();}},_0x18d49d;}[_0x3951cd(0x3fc)](_0x24be9f,_0x593bb9,_0x10a272){const _0x206f91=_0x3951cd;let {unitType:_0x38c818,unitID:_0x231485,changeset:_0x3575aa}=_0x593bb9[_0x206f91(0x2d0)],_0x10d493={'unitID':_0x231485,'memberID':_0x24be9f[_0x206f91(0x36a)],'type':_0x38c818,'changeset':_0x3b24ed(_0x3575aa)},_0x252650=this[_0x206f91(0x357)][_0x206f91(0x3f8)](R),_0x284039=Gn((_0x252650==null?void 0x0:_0x252650[_0x206f91(0x295)])??_0x206f91(0x364),_0x38c818,_0x231485);return _0x3d76ac(this['_httpService'][_0x206f91(0x465)]('POST',_0x284039,{'body':_0x10d493})[_0x206f91(0x261)](_0x50c1ff(_0x4c8d86=>_0x4c8d86['type']===_0x427cd4[_0x206f91(0x384)]),_0x911955(_0x10a272)))['then'](()=>void 0x0,_0x3d0f0d=>{const _0x1e57c8=_0x206f91;throw this[_0x1e57c8(0x476)][_0x1e57c8(0x3c8)]('[CollaborationSocketService]',_0x1e57c8(0x1bf)+_0x3575aa[_0x1e57c8(0x3fa)]+':'+_0x3575aa[_0x1e57c8(0x3ee)]+_0x1e57c8(0x445)+qn(_0x3d0f0d)),_0x3d0f0d;});}async[_0x3951cd(0x20c)](_0x3bea09){const _0x3a6c41=_0x3951cd;let {unitID:_0x5876e2,from:_0x1f1fe5,to:_0x2f5a93,unitType:_0x359d18}=_0x3bea09['data'];return(await this['_snapshotServerService'][_0x3a6c41(0x410)]({'metadata':void 0x0},{'unitID':_0x5876e2,'type':_0x359d18,'from':_0x1f1fe5,'to':_0x2f5a93}))['changesets'][_0x3a6c41(0x231)](_0x47cf19=>((_0x47cf19[_0x3a6c41(0x446)]===null||_0x47cf19['mutations']===void 0x0)&&(_0x47cf19['mutations']=[]),_0x47cf19));}};Kn=H([V(0x0,_0x2781ac(_0x4d605d)),V(0x1,_0x2781ac(_0x474fac)),V(0x2,_0xc1d862),V(0x3,_0x42f5a0),V(0x4,_0x5d6715)],Kn);function qn(_0x995794){const _0x8dbaed=_0x3951cd;return _0x995794 instanceof _0x14321a?_0x8dbaed(0x3f9)+(_0x995794[_0x8dbaed(0x3bf)]??0x0):_0x995794 instanceof Error?_0x995794[_0x8dbaed(0x212)]:String(_0x995794);}const Jn=_0xdde0fc(_0x3951cd(0x3fd));function Yn(_0x44e187={}){const _0xe6d9f6=_0x3951cd;return _0x44e187['resolveUnit']?{'resolveUnit':_0x44e187[_0xe6d9f6(0x3a5)]}:{'resolveUnit':_0x1fce58=>({'target':{'unitId':_0x1fce58['unitId'],'unitType':_0x1fce58[_0xe6d9f6(0x1fd)]}})};}function Xn(_0x34e456,_0x537255,_0x43f0ac){const _0x150fae=_0x3951cd;let _0x47e724=_0x43f0ac[_0x150fae(0x329)][_0x150fae(0x2f9)];if(_0x47e724!=null&&_0x47e724[_0x150fae(0x17d)]()==='')throw Error(_0x150fae(0x2be));if(!_0x43f0ac[_0x150fae(0x329)][_0x150fae(0x398)])throw Error(_0x150fae(0x367));return{'localUnitId':_0x34e456,'unitType':_0x537255,'target':{'endpoint':_0x47e724,'unitId':_0x43f0ac[_0x150fae(0x329)][_0x150fae(0x398)],'unitType':_0x43f0ac['target'][_0x150fae(0x1fd)]??_0x537255},'changeset':_0x43f0ac[_0x150fae(0x2de)]};}let Zn=class extends _0x361893{constructor(_0x5d5a2a,_0x2caa14,_0x37276e,_0x1f634c,_0x15db27,_0x453670){const _0x36df13=_0x3951cd;super(),this[_0x36df13(0x41c)]=_0x5d5a2a,this[_0x36df13(0x476)]=_0x2caa14,this[_0x36df13(0x357)]=_0x37276e,this['_socketService']=_0x1f634c,this[_0x36df13(0x3c9)]=_0x15db27,this[_0x36df13(0x432)]=_0x453670,z(this,_0x36df13(0x210),new Map()),z(this,_0x36df13(0x310),new Map()),z(this,_0x36df13(0x38d),new Map()),z(this,_0x36df13(0x1c1),new Map()),z(this,_0x36df13(0x17e),void 0x0),z(this,_0x36df13(0x1ac),this[_0x36df13(0x1bb)](void 0x0)[_0x36df13(0x1ac)][_0x36df13(0x207)]()),z(this,_0x36df13(0x42e),new _0x2a2d0e(0x0)),z(this,'status$',this[_0x36df13(0x42e)][_0x36df13(0x207)]());}[_0x3951cd(0x397)](){const _0xbe961a=_0x3951cd;this[_0xbe961a(0x17e)]||(this[_0xbe961a(0x17e)]=this[_0xbe961a(0x41c)][_0xbe961a(0x312)](Vn,_0x155bfe[_0xbe961a(0x1e7)])??void 0x0,this[_0xbe961a(0x17e)]&&this[_0xbe961a(0x2c2)](this['_networkConditionService'][_0xbe961a(0x383)][_0xbe961a(0x1fa)](_0xd6394d=>{const _0x28a217=_0xbe961a;_0xd6394d&&this['reconnect'](),_0xd6394d||this[_0x28a217(0x1c1)]['forEach'](_0x218441=>this['_onOffline'](_0x218441));})));}['dispose'](){const _0x59361a=_0x3951cd;super[_0x59361a(0x3b6)](),this[_0x59361a(0x1c1)]['forEach'](_0x278ea1=>{const _0x445b0d=_0x59361a;var _0x773717,_0x19cdb6,_0x5e1e5b;(_0x773717=_0x278ea1[_0x445b0d(0x3ff)])==null||_0x773717[_0x445b0d(0x453)](),_0x278ea1['socketSubscription']=null,this[_0x445b0d(0x352)](_0x278ea1),this[_0x445b0d(0x1ea)](_0x278ea1),this[_0x445b0d(0x252)](_0x278ea1),this['_clearHeartbeatTimer'](_0x278ea1),(_0x19cdb6=_0x278ea1[_0x445b0d(0x1ac)][_0x445b0d(0x382)]())==null||_0x19cdb6[_0x445b0d(0x291)](),(_0x5e1e5b=_0x278ea1[_0x445b0d(0x3cb)])==null||_0x5e1e5b[_0x445b0d(0x291)](),_0x278ea1[_0x445b0d(0x1ac)][_0x445b0d(0x46b)]();}),this[_0x59361a(0x1c1)][_0x59361a(0x1b1)](),this['_sessions']['forEach'](_0x238e39=>_0x238e39[_0x59361a(0x3b6)]()),this[_0x59361a(0x210)][_0x59361a(0x1b1)](),this['_sessionChannels'][_0x59361a(0x1b1)](),this[_0x59361a(0x42e)][_0x59361a(0x46b)]();}async[_0x3951cd(0x317)](_0x599bfa,_0x3570c6){const _0x5bdfee=_0x3951cd;if(this['_listenToNetworkCondition'](),this[_0x5bdfee(0x210)][_0x5bdfee(0x2b1)](_0x599bfa))return this[_0x5bdfee(0x210)][_0x5bdfee(0x312)](_0x599bfa);let _0x32cd92=this[_0x5bdfee(0x310)][_0x5bdfee(0x312)](_0x599bfa);if(_0x32cd92)return _0x32cd92;let _0x259eec=this[_0x5bdfee(0x385)](_0x599bfa,_0x3570c6);this[_0x5bdfee(0x310)]['set'](_0x599bfa,_0x259eec);try{return await _0x259eec;}finally{this[_0x5bdfee(0x310)][_0x5bdfee(0x300)](_0x599bfa);}}async[_0x3951cd(0x385)](_0x5bd3a7,_0x79c347){const _0x207cf9=_0x3951cd;let _0x2cb4d1=await this['_resolveSessionIdentity'](_0x5bd3a7,_0x79c347),_0x14e58a=this[_0x207cf9(0x1bb)](_0x2cb4d1[_0x207cf9(0x329)][_0x207cf9(0x2f9)]);this[_0x207cf9(0x29f)](_0x14e58a);let _0x5c52e9=this[_0x207cf9(0x41c)]['createInstance'](on,_0x2cb4d1,_0x14e58a[_0x207cf9(0x1ac)][_0x207cf9(0x207)]());return this['_sessions'][_0x207cf9(0x1a5)](_0x5bd3a7,_0x5c52e9),this[_0x207cf9(0x38d)][_0x207cf9(0x1a5)](_0x5bd3a7,_0x14e58a[_0x207cf9(0x3da)]),_0x5c52e9;}[_0x3951cd(0x16a)](_0x2fca18){const _0x4bf010=_0x3951cd;let _0x12bd1b=this[_0x4bf010(0x210)]['get'](_0x2fca18),_0x56a661=this['_sessionChannels'][_0x4bf010(0x312)](_0x2fca18);if(_0x12bd1b&&(this[_0x4bf010(0x210)][_0x4bf010(0x300)](_0x2fca18),this[_0x4bf010(0x38d)][_0x4bf010(0x300)](_0x2fca18),_0x12bd1b['close']()),_0x56a661!==void 0x0&&!this[_0x4bf010(0x37c)](_0x56a661)){let _0x4627ab=this['_socketChannels']['get'](_0x56a661);_0x4627ab&&this[_0x4bf010(0x18f)](_0x4627ab);}}[_0x3951cd(0x368)](){const _0x5e2591=_0x3951cd;(this[_0x5e2591(0x1c1)][_0x5e2591(0x2cd)]?[...this[_0x5e2591(0x1c1)][_0x5e2591(0x3fb)]()]:[this[_0x5e2591(0x1bb)](void 0x0)])[_0x5e2591(0x258)](_0x3455d9=>{const _0x13acea=_0x5e2591;!this['_hasSessionsForEndpoint'](_0x3455d9['endpointKey'])||_0x3455d9[_0x13acea(0x16c)]||_0x3455d9[_0x13acea(0x3cb)]||_0x3455d9[_0x13acea(0x337)]||(_0x3455d9['retryCount']=0x0,this[_0x13acea(0x1ea)](_0x3455d9),this['_tryReconnect'](_0x3455d9));});}[_0x3951cd(0x1ea)](_0x4dfe72){const _0x1d067a=_0x3951cd;_0x4dfe72['retryConnectingTimer']!=null&&(clearTimeout(_0x4dfe72[_0x1d067a(0x2ee)]),_0x4dfe72[_0x1d067a(0x2ee)]=null);}[_0x3951cd(0x3bd)](_0xb140fb){const _0x21c86e=_0x3951cd;let _0x5d1932=this['_configService']['getConfig'](R),_0x41cf35=_0xb140fb[_0x21c86e(0x2f9)]??(_0x5d1932==null?void 0x0:_0x5d1932[_0x21c86e(0x2c4)])??_0x21c86e(0x340);return this[_0x21c86e(0x402)][_0x21c86e(0x43d)](_0x41cf35);}async[_0x3951cd(0x29f)](_0x1aeaf5){const _0x1c8cf9=_0x3951cd;var _0x49afc3;if(this['_disposed']||((_0x49afc3=this[_0x1c8cf9(0x17e)])==null?void 0x0:_0x49afc3[_0x1c8cf9(0x467)])===!0x1||_0x1aeaf5[_0x1c8cf9(0x16c)]||_0x1aeaf5[_0x1c8cf9(0x3cb)]||_0x1aeaf5[_0x1c8cf9(0x337)])return;let _0x4c0957={};_0x1aeaf5['connectionAttempt']=_0x4c0957;try{let _0x1b3bea=await this['_createSocket'](_0x1aeaf5);if(this[_0x1c8cf9(0x31a)]||_0x1aeaf5[_0x1c8cf9(0x337)]!==_0x4c0957){_0x1b3bea==null||_0x1b3bea[_0x1c8cf9(0x291)]();return;}if(_0x1b3bea){var _0x5b83e5;_0x1aeaf5['candidateSocket']=_0x1b3bea,_0x1aeaf5['handshakeTimer']=setTimeout(()=>{const _0x1ff537=_0x1c8cf9;!this[_0x1ff537(0x31a)]&&_0x1aeaf5['candidateSocket']===_0x1b3bea&&this[_0x1ff537(0x3d1)](_0x1aeaf5);},0x4e20);let _0x140a42=_0x1b3bea['send'];_0x1b3bea[_0x1c8cf9(0x2b3)]=(_0x512396,_0x1daf7b)=>(_0x512396[_0x1c8cf9(0x14e)]!==_0x5cf4e9[_0x1c8cf9(0x1f6)]&&!Qn(_0x512396)&&_0x1aeaf5['socketReady']&&_0x1aeaf5['socket$'][_0x1c8cf9(0x382)]()===_0x1b3bea&&this[_0x1c8cf9(0x469)](_0x1aeaf5),_0x1daf7b===void 0x0?_0x140a42[_0x1c8cf9(0x326)](_0x1b3bea,_0x512396):_0x140a42[_0x1c8cf9(0x326)](_0x1b3bea,_0x512396,_0x1daf7b)),(_0x5b83e5=_0x1aeaf5[_0x1c8cf9(0x3ff)])==null||_0x5b83e5[_0x1c8cf9(0x453)]();let _0x1fe477=new _0x52f784();_0x1aeaf5[_0x1c8cf9(0x3ff)]=_0x1fe477,_0x1fe477[_0x1c8cf9(0x177)](_0x1b3bea['message$'][_0x1c8cf9(0x1fa)](_0x138dd7=>this[_0x1c8cf9(0x227)](_0x1aeaf5,_0x1b3bea,_0x138dd7))),_0x1fe477[_0x1c8cf9(0x177)](_0x1b3bea[_0x1c8cf9(0x3f4)][_0x1c8cf9(0x261)](_0x393e2e(0x1))[_0x1c8cf9(0x1fa)](_0x46390b=>this[_0x1c8cf9(0x476)][_0x1c8cf9(0x1a2)](_0x1c8cf9(0x342),_0x46390b))),_0x1fe477[_0x1c8cf9(0x177)](_0x1b3bea['open$'][_0x1c8cf9(0x261)](_0x393e2e(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x1aeaf5,_0x1b3bea);})),_0x1fe477[_0x1c8cf9(0x177)](_0x1b3bea['close$'][_0x1c8cf9(0x261)](_0x393e2e(0x1))['subscribe'](_0x165e1a=>{const _0x34b21d=_0x1c8cf9;(_0x1aeaf5['candidateSocket']===_0x1b3bea||_0x1aeaf5[_0x34b21d(0x1ac)][_0x34b21d(0x382)]()===_0x1b3bea)&&(this[_0x34b21d(0x476)][_0x34b21d(0x30a)](_0x34b21d(0x3bc),_0x34b21d(0x365),_0x165e1a),this[_0x34b21d(0x3d1)](_0x1aeaf5));}));}}catch(_0x48ce71){if(_0x1aeaf5[_0x1c8cf9(0x337)]!==_0x4c0957)return;this[_0x1c8cf9(0x476)][_0x1c8cf9(0x1a2)](_0x48ce71),this['_onConnectionFailed'](_0x1aeaf5);}finally{_0x1aeaf5[_0x1c8cf9(0x337)]===_0x4c0957&&(_0x1aeaf5['connectionAttempt']=null);}}[_0x3951cd(0x22c)](_0x522b23,_0x374821){const _0x524241=_0x3951cd;this[_0x524241(0x31a)]||_0x522b23[_0x524241(0x3cb)]!==_0x374821||(this[_0x524241(0x476)][_0x524241(0x30a)](_0x524241(0x3bc),_0x524241(0x196)),_0x374821[_0x524241(0x2b3)]({'cmd':_0x5cf4e9[_0x524241(0x314)]}));}['_onOffline'](_0x13207d){const _0x1b75c1=_0x3951cd;var _0x27c2df;let _0x2aedfe=_0x13207d[_0x1b75c1(0x1ac)][_0x1b75c1(0x382)]()??_0x13207d[_0x1b75c1(0x3cb)];_0x13207d['connectionAttempt']=null,_0x13207d[_0x1b75c1(0x16c)]=!0x1,_0x13207d['candidateSocket']=null,(_0x27c2df=_0x13207d[_0x1b75c1(0x3ff)])==null||_0x27c2df[_0x1b75c1(0x453)](),_0x13207d['socketSubscription']=null,this[_0x1b75c1(0x42e)]['next'](0x2),_0x13207d[_0x1b75c1(0x1ac)]['next'](null),this['_clearRetryConnectingTimer'](_0x13207d),this[_0x1b75c1(0x352)](_0x13207d),this[_0x1b75c1(0x252)](_0x13207d),this[_0x1b75c1(0x306)](_0x13207d),_0x2aedfe==null||_0x2aedfe[_0x1b75c1(0x291)]();}[_0x3951cd(0x3d1)](_0x1a23c6){const _0x65801c=_0x3951cd;var _0x45b96e;this[_0x65801c(0x18f)](_0x1a23c6),!this[_0x65801c(0x31a)]&&((_0x45b96e=this['_networkConditionService'])==null?void 0x0:_0x45b96e['online'])!==!0x1&&this['_hasSessionsForEndpoint'](_0x1a23c6['endpointKey'])&&(_0x1a23c6[_0x65801c(0x34a)]<(this[_0x65801c(0x357)]['getConfig'](_0x65801c(0x31d))??0x3)?(this['_collaborationUIEventService'][_0x65801c(0x254)]({'id':_0x65801c(0x1fe)}),this[_0x65801c(0x246)](_0x1a23c6)):this[_0x65801c(0x3c9)][_0x65801c(0x254)]({'id':_0x65801c(0x363)}));}['_tryReconnect'](_0x2cbf02){const _0x2bc9ae=_0x3951cd;let _0xa51aa9=_0x2cbf02[_0x2bc9ae(0x34a)],_0x5c14f8=this[_0x2bc9ae(0x357)]['getConfig'](R),_0x15fc5e=_0xa51aa9===0x0?0x0:((_0x5c14f8==null?void 0x0:_0x5c14f8['retryConnectingInterval'])??0x4e20)*0x2**_0xa51aa9;_0x2cbf02[_0x2bc9ae(0x2ee)]=setTimeout(()=>{const _0x30ae34=_0x2bc9ae;clearTimeout(_0x2cbf02[_0x30ae34(0x2ee)]),_0x2cbf02[_0x30ae34(0x2ee)]=null,this[_0x30ae34(0x29f)](_0x2cbf02);},_0x15fc5e),_0x2cbf02[_0x2bc9ae(0x34a)]+=0x1;}async[_0x3951cd(0x328)](_0x44c012,_0x3d39a6){const _0x165b15=_0x3951cd;return Xn(_0x44c012,_0x3d39a6,await this[_0x165b15(0x432)]['resolveUnit']({'unitId':_0x44c012,'unitType':_0x3d39a6}));}['_onMessage'](_0x3d9203,_0x5b8405,_0x320f26){const _0x53382a=_0x3951cd;if(this['_disposed']||_0x3d9203[_0x53382a(0x3cb)]!==_0x5b8405&&_0x3d9203[_0x53382a(0x1ac)]['getValue']()!==_0x5b8405)return;let {cmd:_0x4f4837}=_0x320f26;if(_0x4f4837===_0x5cf4e9[_0x53382a(0x314)]&&!_0x3d9203[_0x53382a(0x16c)]){var _0x17940f;if((_0x320f26['code']??_0x57718a['OK'])!==_0x57718a['OK']||!((_0x17940f=_0x320f26[_0x53382a(0x2d0)])!=null&&_0x17940f['memberID'])){this[_0x53382a(0x3d1)](_0x3d9203);return;}this[_0x53382a(0x352)](_0x3d9203),_0x5b8405[_0x53382a(0x36a)]=_0x320f26[_0x53382a(0x2d0)][_0x53382a(0x36a)],_0x3d9203[_0x53382a(0x34a)]=0x0,_0x3d9203[_0x53382a(0x16c)]=!0x0,_0x3d9203[_0x53382a(0x3cb)]=null,_0x3d9203['socket$']['next'](_0x5b8405),this['_status$']['next'](0x3);}_0x4f4837===_0x5cf4e9['HEARTBEAT']&&this[_0x53382a(0x252)](_0x3d9203),this[_0x53382a(0x469)](_0x3d9203);}['_hasSessionsForEndpoint'](_0xbf1f4d){const _0x5d2cf7=_0x3951cd;return[...this[_0x5d2cf7(0x38d)][_0x5d2cf7(0x3fb)]()][_0x5d2cf7(0x307)](_0x401007=>_0x401007===_0xbf1f4d);}[_0x3951cd(0x1bb)](_0x9b23da){const _0x14a63a=_0x3951cd;let _0x44d084=_0x9b23da??'',_0x315325=this[_0x14a63a(0x1c1)][_0x14a63a(0x312)](_0x44d084);if(_0x315325)return _0x315325;let _0x5f15e4={'endpointKey':_0x44d084,'endpoint':_0x9b23da,'socket$':new _0x2a2d0e(void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x14a63a(0x1c1)][_0x14a63a(0x1a5)](_0x44d084,_0x5f15e4),_0x5f15e4;}[_0x3951cd(0x352)](_0x40009a){const _0x2b8508=_0x3951cd;_0x40009a[_0x2b8508(0x3a9)]!=null&&(clearTimeout(_0x40009a[_0x2b8508(0x3a9)]),_0x40009a[_0x2b8508(0x3a9)]=null);}[_0x3951cd(0x469)](_0xcbc308){const _0x4241dd=_0x3951cd;this[_0x4241dd(0x306)](_0xcbc308),_0xcbc308[_0x4241dd(0x16c)]&&(_0xcbc308[_0x4241dd(0x38c)]=setTimeout(()=>this[_0x4241dd(0x33f)](_0xcbc308),this['_configService'][_0x4241dd(0x3f8)](_0x4241dd(0x41d))??0x7530));}['_sendHeartbeat'](_0x277fda){const _0x1cf2dc=_0x3951cd;let _0x5a1a1e=_0x277fda['socket$'][_0x1cf2dc(0x382)]();_0x277fda[_0x1cf2dc(0x16c)]&&_0x5a1a1e&&(_0x5a1a1e[_0x1cf2dc(0x2b3)]({'cmd':_0x5cf4e9[_0x1cf2dc(0x3c0)]}),this[_0x1cf2dc(0x260)](_0x277fda));}[_0x3951cd(0x260)](_0x782642){const _0x43aa3b=_0x3951cd;_0x782642[_0x43aa3b(0x1b7)]=setTimeout(()=>this[_0x43aa3b(0x3d1)](_0x782642),this[_0x43aa3b(0x357)][_0x43aa3b(0x3f8)](_0x43aa3b(0x30f))??0x4e20);}[_0x3951cd(0x306)](_0x2aebab){const _0x5d1416=_0x3951cd;_0x2aebab[_0x5d1416(0x38c)]!=null&&(clearTimeout(_0x2aebab['sendHeartbeatTimer']),_0x2aebab['sendHeartbeatTimer']=null);}[_0x3951cd(0x252)](_0x4b47fa){const _0x271e4f=_0x3951cd;_0x4b47fa[_0x271e4f(0x1b7)]!=null&&(clearTimeout(_0x4b47fa[_0x271e4f(0x1b7)]),_0x4b47fa[_0x271e4f(0x1b7)]=null);}};Zn=H([V(0x0,_0x2781ac(_0x4d605d)),V(0x1,_0x42f5a0),V(0x2,_0xc1d862),V(0x3,Wn),V(0x4,_0x2781ac(B)),V(0x5,Jn)],Zn);function Qn(_0x3c09cf){const _0x5043cc=_0x3951cd;if(_0x3c09cf['cmd']!==_0x5cf4e9[_0x5043cc(0x1f4)])return!0x1;let _0x1daec8=_0x3c09cf[_0x5043cc(0x2d0)][_0x5043cc(0x14a)];return _0x1daec8===_0x232d5b[_0x5043cc(0x222)]||_0x1daec8===_0x232d5b['FETCH_MISSING'];}let $n=class extends _0x161c82{constructor(_0x448357,_0x44ef37,_0x385903,_0x13100e){const _0x170a2c=_0x3951cd;var _0x47ece8;super(),this['_injector']=_0x448357,this['_collabSessionService']=_0x44ef37,this[_0x170a2c(0x357)]=_0x385903,this[_0x170a2c(0x3c2)]=_0x13100e,z(this,_0x170a2c(0x3b8),new Map()),z(this,_0x170a2c(0x323),new _0x1c980d()),z(this,_0x170a2c(0x23f),this[_0x170a2c(0x323)]['asObservable']()),((_0x47ece8=this['_configService'][_0x170a2c(0x3f8)](_0x170a2c(0x34c)))==null?void 0x0:_0x47ece8[_0x170a2c(0x1ff)])!==!0x1&&this[_0x170a2c(0x472)]();}['dispose'](){const _0x483238=_0x3951cd;super[_0x483238(0x3b6)](),this[_0x483238(0x3b8)][_0x483238(0x258)](_0x2bb54a=>_0x2bb54a['dispose']()),this[_0x483238(0x3b8)][_0x483238(0x1b1)]();}[_0x3951cd(0x2d3)](_0x2d03ef){const _0x19f2b2=_0x3951cd;return this[_0x19f2b2(0x3b8)][_0x19f2b2(0x312)](_0x2d03ef)??null;}['getCollabEntities'](){const _0x1fb012=_0x3951cd;return Array['from'](this['_entities'][_0x1fb012(0x3fb)]());}['getCollabEntity$'](_0x3a4653){const _0x4a4590=_0x3951cd;let _0x5035c9=this[_0x4a4590(0x2d3)](_0x3a4653);return _0x5035c9?_0x1f8450(_0x5035c9):this[_0x4a4590(0x323)]['pipe'](_0x45d50e(_0x355a05=>_0x355a05[_0x4a4590(0x2f3)]===_0x3a4653));}[_0x3951cd(0x1a9)](_0x3dcb6a){return _0x3d76ac(this['getCollabEntity$'](_0x3dcb6a)['pipe'](_0x2c9947(()=>void 0x0)));}[_0x3951cd(0x39e)](_0x56e748){const _0x52f5b2=_0x3951cd;if(_0x56e748!==void 0x0){var _0x187911;return((_0x187911=this[_0x52f5b2(0x3b8)][_0x52f5b2(0x312)](_0x56e748))==null?void 0x0:_0x187911[_0x52f5b2(0x39e)]())??!0x1;}for(let _0x4fc1e9 of this[_0x52f5b2(0x3b8)][_0x52f5b2(0x3fb)]())if(_0x4fc1e9[_0x52f5b2(0x39e)]())return!0x0;return!0x1;}[_0x3951cd(0x472)](){const _0x16e871=_0x3951cd;this[_0x16e871(0x3c2)]['getTypeOfUnitAdded$'](_0x29dacb[_0x16e871(0x3b9)])[_0x16e871(0x261)](_0x212641(this[_0x16e871(0x279)]),_0x1097e2(0x10))[_0x16e871(0x1fa)](async _0x22c560=>{const _0x16cc95=_0x16e871;let _0x5a908e=_0x22c560[_0x16cc95(0x14b)]['getUnitId'](),_0x103dec=await this[_0x16cc95(0x324)](_0x5a908e,_0x29dacb[_0x16cc95(0x3b9)]);this[_0x16cc95(0x3b8)][_0x16cc95(0x1a5)](_0x5a908e,_0x103dec);}),this['_univerInstanceService'][_0x16e871(0x1d6)](_0x29dacb[_0x16e871(0x1da)])[_0x16e871(0x261)](_0x212641(this[_0x16e871(0x279)]),_0x1097e2(0x10))[_0x16e871(0x261)](_0x45d50e(_0x496659=>!_0x496659[_0x16e871(0x14b)][_0x16e871(0x1ab)]()[_0x16e871(0x30c)]('__')))['subscribe'](async _0x317e06=>{const _0x9acb18=_0x16e871;let _0x580afd=_0x317e06[_0x9acb18(0x14b)]['getUnitId'](),_0x257ab4=await this[_0x9acb18(0x324)](_0x580afd,_0x29dacb['UNIVER_DOC']);this[_0x9acb18(0x3b8)][_0x9acb18(0x1a5)](_0x580afd,_0x257ab4);}),this[_0x16e871(0x3c2)][_0x16e871(0x1d6)](_0x29dacb[_0x16e871(0x2c3)])[_0x16e871(0x261)](_0x212641(this[_0x16e871(0x279)]),_0x1097e2(0x10))[_0x16e871(0x1fa)](async _0x1e3624=>{const _0x538cda=_0x16e871;let _0x514d31=_0x1e3624[_0x538cda(0x14b)][_0x538cda(0x1ab)](),_0x36dbb6=await this[_0x538cda(0x324)](_0x514d31,_0x29dacb[_0x538cda(0x2c3)]);this[_0x538cda(0x3b8)]['set'](_0x514d31,_0x36dbb6);}),this[_0x16e871(0x3c2)]['getTypeOfUnitAdded$'](_0x29dacb[_0x16e871(0x285)])[_0x16e871(0x261)](_0x212641(this['dispose$']),_0x1097e2(0x10))[_0x16e871(0x1fa)](async _0x12f43f=>{const _0x8b9767=_0x16e871;let _0x237329=_0x12f43f['unit'][_0x8b9767(0x1ab)](),_0x3ee8dd=await this['_startCollaboration'](_0x237329,_0x29dacb[_0x8b9767(0x285)]);this[_0x8b9767(0x3b8)]['set'](_0x237329,_0x3ee8dd);}),this['_univerInstanceService'][_0x16e871(0x1d6)](_0x29dacb['UNIVER_BASE'])[_0x16e871(0x261)](_0x212641(this[_0x16e871(0x279)]),_0x1097e2(0x10))[_0x16e871(0x1fa)](async _0x5b6ee5=>{const _0x446b59=_0x16e871;let _0x35f179=_0x5b6ee5[_0x446b59(0x14b)][_0x446b59(0x1ab)](),_0x29d586=await this['_startCollaboration'](_0x35f179,_0x29dacb['UNIVER_BASE']);this[_0x446b59(0x3b8)][_0x446b59(0x1a5)](_0x35f179,_0x29d586);}),this[_0x16e871(0x3c2)][_0x16e871(0x1d6)](_0x29dacb[_0x16e871(0x321)])['pipe'](_0x212641(this['dispose$']),_0x1097e2(0x10))[_0x16e871(0x1fa)](async _0x180175=>{const _0x3708e1=_0x16e871;let _0x4c4ee5=_0x180175[_0x3708e1(0x14b)][_0x3708e1(0x1ab)](),_0x3da769=await this['_startCollaboration'](_0x4c4ee5,_0x29dacb['UNIVER_PDF']);this['_entities'][_0x3708e1(0x1a5)](_0x4c4ee5,_0x3da769);}),_0x2c2fbb(this[_0x16e871(0x3c2)][_0x16e871(0x14f)](_0x29dacb['UNIVER_SHEET']),this[_0x16e871(0x3c2)][_0x16e871(0x14f)](_0x29dacb[_0x16e871(0x1da)]),this[_0x16e871(0x3c2)]['getTypeOfUnitDisposed$'](_0x29dacb[_0x16e871(0x2c3)]),this[_0x16e871(0x3c2)][_0x16e871(0x14f)](_0x29dacb['UNIVER_BOARD']),this[_0x16e871(0x3c2)][_0x16e871(0x14f)](_0x29dacb['UNIVER_BASE']),this['_univerInstanceService'][_0x16e871(0x14f)](_0x29dacb[_0x16e871(0x321)]))[_0x16e871(0x261)](_0x212641(this['dispose$']))[_0x16e871(0x1fa)](_0x4ef8e0=>{const _0x45cbf3=_0x16e871;let _0x17488b=_0x4ef8e0[_0x45cbf3(0x1ab)](),_0x3ad602=this[_0x45cbf3(0x3b8)][_0x45cbf3(0x312)](_0x17488b);_0x3ad602&&(_0x3ad602[_0x45cbf3(0x3b6)](),this['_entities'][_0x45cbf3(0x300)](_0x17488b));});}async[_0x3951cd(0x324)](_0x52af07,_0x332572){const _0x522453=_0x3951cd;let _0x7136bf=await this[_0x522453(0x184)][_0x522453(0x317)](_0x52af07),_0x41bb79=this[_0x522453(0x41c)][_0x522453(0x274)](this[_0x522453(0x153)](_0x332572),_0x52af07,_0x332572,_0x7136bf);return await _0x41bb79[_0x522453(0x29a)](),this[_0x522453(0x323)][_0x522453(0x466)](_0x41bb79),_0x41bb79;}[_0x3951cd(0x153)](_0x49d927){const _0x120332=_0x3951cd;switch(_0x49d927){case _0x29dacb[_0x120332(0x1da)]:return Fn;case _0x29dacb[_0x120332(0x3b9)]:return Ln;case _0x29dacb[_0x120332(0x2c3)]:return Rn;case _0x29dacb[_0x120332(0x285)]:return zn;case _0x29dacb['UNIVER_BASE']:return In;case _0x29dacb[_0x120332(0x321)]:return Bn;default:throw Error(_0x120332(0x278)+_0x49d927);}}};$n=H([V(0x0,_0x2781ac(_0x4d605d)),V(0x1,_0x2781ac(Zn)),V(0x2,_0xc1d862),V(0x3,_0xa820d0)],$n);var er=_0x3951cd(0x1f0),tr=_0x3951cd(0x293);let nr=class extends _0x361893{constructor(_0x76bc4f,_0x1b1cea){const _0x28cb2d=_0x3951cd;super(),this[_0x28cb2d(0x3c2)]=_0x76bc4f,this['_configService']=_0x1b1cea,this[_0x28cb2d(0x472)]();}[_0x3951cd(0x472)](){const _0x1fbff4=_0x3951cd;this[_0x1fbff4(0x2c2)](this[_0x1fbff4(0x3c2)][_0x1fbff4(0x26c)][_0x1fbff4(0x1fa)](()=>{const _0x2cbeb0=_0x1fbff4;let _0x41c915=this[_0x2cbeb0(0x3c2)][_0x2cbeb0(0x376)](),_0xed2382=this[_0x2cbeb0(0x357)][_0x2cbeb0(0x3f8)](_0x2cbeb0(0x181))??_0x2cbeb0(0x28a);_0x41c915 instanceof _0x1d8aa3&&(_0xed2382=_0x41c915[_0x2cbeb0(0x212)]),document[_0x2cbeb0(0x1c0)]=_0xed2382;}));}};nr=H([V(0x0,_0xa820d0),V(0x1,_0xc1d862)],nr);const rr=_0xdde0fc(_0x3951cd(0x1f2));let ir=class{constructor(_0x4cb881,_0xf95403,_0x1f6c3c){const _0x1e9c7f=_0x3951cd;this['_httpService']=_0x4cb881,this[_0x1e9c7f(0x357)]=_0xf95403,this['_univerInstanceService']=_0x1f6c3c;}['getUploadOptions'](){const _0x10b21e=_0x3951cd;return this['_getConfig']()[_0x10b21e(0x454)]??{};}async[_0x3951cd(0x25b)](_0x41d229){const _0x53b62d=_0x3951cd;let _0x3838a1=this[_0x53b62d(0x344)]();if(ar(_0x41d229,_0x3838a1),_0x3838a1[_0x53b62d(0x42a)])return _0x3838a1[_0x53b62d(0x42a)](_0x41d229);let _0x2d5a8b=await this['_upload'](_0x41d229);return{'id':_0x2d5a8b,'name':_0x41d229[_0x53b62d(0x212)],'mimeType':_0x41d229[_0x53b62d(0x186)],'size':_0x41d229[_0x53b62d(0x2cd)],'sourceType':_0x21fc0d[_0x53b62d(0x2ea)],'source':_0x2d5a8b};}async['getAttachmentUrl'](_0x202b17,_0x2b3dae){const _0x66303a=_0x3951cd;if(_0x2b3dae!==_0x21fc0d['UUID'])return _0x202b17;let _0x309f94=(await this['_httpService'][_0x66303a(0x312)](this['_getSignURL']()[_0x66303a(0x463)](_0x66303a(0x3f3),_0x202b17)))[_0x66303a(0x435)];if(_0x309f94[_0x66303a(0x1a2)]&&_0x309f94[_0x66303a(0x1a2)][_0x66303a(0x366)]!==_0x378050['OK'])throw _0x309f94[_0x66303a(0x1a2)];if(!_0x309f94[_0x66303a(0x2bf)])throw Error(_0x66303a(0x169));return _0x201598(_0x309f94[_0x66303a(0x2bf)],this[_0x66303a(0x341)]());}async[_0x3951cd(0x423)](_0x2bff8f){const _0x1768cc=_0x3951cd;let _0x245406=this['_univerInstanceService'][_0x1768cc(0x376)](),_0x5df469=_0x245406==null?void 0x0:_0x245406[_0x1768cc(0x1ab)]();if(!_0x5df469)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x192a78=new FormData();_0x192a78[_0x1768cc(0x347)](_0x1768cc(0x37a),_0x2bff8f);let _0x2b22d1=this[_0x1768cc(0x3b7)]()+_0x1768cc(0x1a7)+_0x2bff8f[_0x1768cc(0x2cd)][_0x1768cc(0x3de)]()+_0x1768cc(0x2ce)+_0x37ef15[_0x1768cc(0x282)]+'&assign='+encodeURIComponent(_0x5df469),_0x5eee84=(await this[_0x1768cc(0x1bd)][_0x1768cc(0x424)](_0x2b22d1,{'body':_0x192a78}))[_0x1768cc(0x435)]['FileId'];if(typeof _0x5eee84!=_0x1768cc(0x3db)||!_0x5eee84)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x5eee84;}['_getUploadFileURL'](){const _0x59b01f=_0x3951cd;return this[_0x59b01f(0x392)]()[_0x59b01f(0x442)]??_0x59b01f(0x218);}[_0x3951cd(0x34b)](){const _0x3e4f84=_0x3951cd;return this[_0x3e4f84(0x392)]()[_0x3e4f84(0x2a4)]??_0x3e4f84(0x1cd);}[_0x3951cd(0x341)](){const _0x57e64c=_0x3951cd;let _0x56c1d6=this[_0x57e64c(0x392)]();return _0x56c1d6['downloadEndpointUrl']?_0x56c1d6[_0x57e64c(0x302)]:typeof location<'u'?location['origin']:_0x56c1d6['uploadFileServerUrl']??'';}[_0x3951cd(0x392)](){const _0x4503a6=_0x3951cd;return this['_configService']['getConfig'](_0x4503a6(0x34c))??{};}};ir=H([V(0x0,_0x2781ac(_0x474fac)),V(0x1,_0x2781ac(_0xc1d862)),V(0x2,_0x2781ac(_0xa820d0))],ir);function ar(_0x2ee3e8,_0x15e1bf){const _0x25c2e3=_0x3951cd;var _0x52d28a;if(_0x15e1bf[_0x25c2e3(0x298)]!=null&&_0x2ee3e8[_0x25c2e3(0x2cd)]>_0x15e1bf[_0x25c2e3(0x298)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x52d28a=_0x15e1bf[_0x25c2e3(0x2e5)])!=null&&_0x52d28a[_0x25c2e3(0x377)]&&!_0x15e1bf[_0x25c2e3(0x2e5)]['some'](_0x4c913b=>_0x2ee3e8[_0x25c2e3(0x186)]===_0x4c913b||_0x2ee3e8['name'][_0x25c2e3(0x18a)](_0x4c913b)||_0x4c913b[_0x25c2e3(0x18a)]('/*')&&_0x2ee3e8[_0x25c2e3(0x186)][_0x25c2e3(0x30c)](_0x4c913b[_0x25c2e3(0x3d9)](0x0,-0x1))))throw Error(_0x25c2e3(0x3c7));}let or=class{constructor(_0x41a09b,_0x419659,_0x5d53e3){const _0x43e2a3=_0x3951cd;this[_0x43e2a3(0x357)]=_0x41a09b,this[_0x43e2a3(0x1bd)]=_0x419659,this[_0x43e2a3(0x2c6)]=_0x5d53e3,this['init']();}['init'](){const _0x1576e6=_0x3951cd;this[_0x1576e6(0x1bd)][_0x1576e6(0x43e)]({'priority':0x1,'interceptor':(_0x362faa,_0x332b67)=>_0x332b67(_0x362faa)['pipe'](_0x55ade0(async _0x442874=>{const _0x406764=_0x1576e6;let _0x4226d4=_0x442874;if(_0x4226d4[_0x406764(0x3bf)]===0x191){if(typeof window>'u')throw Error(_0x406764(0x332));if(window[_0x406764(0x2c5)](this[_0x406764(0x2c6)]['t'](_0x406764(0x39b)))){let _0x3927b7=window['encodeURIComponent'](window[_0x406764(0x22f)]['href']);window[_0x406764(0x22f)][_0x406764(0x419)]=this[_0x406764(0x215)]()+_0x406764(0x475)+_0x3927b7;}}return _0x4226d4;}))});}[_0x3951cd(0x215)](){const _0x395794=_0x3951cd;let _0x3fa691=this[_0x395794(0x357)][_0x395794(0x3f8)](R);return(_0x3fa691==null?void 0x0:_0x3fa691[_0x395794(0x39c)])??_0x395794(0x30e);}};or=H([V(0x0,_0xc1d862),V(0x1,_0x2781ac(_0x474fac)),V(0x2,_0x2781ac(_0x1b1a62))],or);let sr=class extends _0x361893{constructor(_0x29b62b,_0x3d2e33){const _0x46415a=_0x3951cd;super(),this[_0x46415a(0x2c7)]=_0x29b62b,this[_0x46415a(0x357)]=_0x3d2e33,z(this,_0x46415a(0x16b),!0x1),this[_0x46415a(0x3ab)]();}['_initMergeInterceptor'](){const _0x1ae8b5=_0x3951cd;let _0x3fddba=this;this[_0x1ae8b5(0x2c2)](this[_0x1ae8b5(0x2c7)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x24d1e7({'isMatch'(_0x27790b){const _0x8f9a79=_0x1ae8b5;var _0xa12389;if(_0x27790b[_0x8f9a79(0x15c)]===_0x8f9a79(0x25a)&&(_0xa12389=_0x27790b[_0x8f9a79(0x343)])!=null&&_0xa12389[_0x8f9a79(0x435)]){let {objectID:_0x325dbe,objectType:_0x59a454}=_0x27790b['requestParams'][_0x8f9a79(0x435)]||{};if(!_0x325dbe||_0x59a454===void 0x0)return!0x1;let _0x28b30f=_0x3fddba[_0x8f9a79(0x2b7)]()+'/'+_0x59a454+_0x8f9a79(0x2d2)+encodeURIComponent(_0x325dbe)+_0x8f9a79(0x415);if(_0x27790b[_0x8f9a79(0x2bf)]===_0x28b30f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4e7f64){const _0x270953=_0x1ae8b5;var _0x29027f;return(_0x29027f=_0x4e7f64[_0x270953(0x343)])==null?void 0x0:_0x29027f['body'];},'mergeParamsToRequest'(_0x522eaf,_0x5d417e){const _0x4290d8=_0x1ae8b5;let _0x40f208=_0x3fddba[_0x4290d8(0x2b7)]()+'/-/object/-/batch_allowed',_0x348c71=_0x522eaf[_0x4290d8(0x3a2)]((_0x347407,_0x4f5878)=>{const _0x4edd87=_0x4290d8;let {unitID:_0x4fdf7f,objectID:_0x144d51,objectType:_0x1fd38d,actions:_0x5442f4}=_0x4f5878;return _0x347407[_0x4fdf7f]||(_0x347407[_0x4fdf7f]=Object[_0x4edd87(0x18c)](null)),_0x347407[_0x4fdf7f][_0x144d51]||(_0x347407[_0x4fdf7f][_0x144d51]={'objectID':_0x144d51,'objectType':_0x1fd38d,'actions':[]}),_0x347407[_0x4fdf7f][_0x144d51]['actions']['push'](..._0x5442f4),_0x347407;},Object['create'](null)),_0x1a8a48=[];for(let _0x13d788 in _0x348c71)for(let _0x2a00d1 in _0x348c71[_0x13d788]){let {actions:_0x441846,objectType:_0x1579ac}=_0x348c71[_0x13d788][_0x2a00d1],_0x27eac2=[...new Set(_0x441846)];_0x1a8a48[_0x4290d8(0x405)]({'unitID':_0x13d788,'objectID':_0x2a00d1,'objectType':_0x1579ac,'actions':_0x27eac2});}return new _0x113c92(_0x4290d8(0x25a),_0x40f208,{'headers':_0x5d417e[_0x4290d8(0x283)],'withCredentials':_0x5d417e[_0x4290d8(0x1c2)],'responseType':_0x5d417e['responseType'],'body':{'requests':_0x1a8a48}});}},{'distributeResult'(_0x216ae5,_0x142f47){const _0x5ed842=_0x1ae8b5;let {objectActions:_0x5ebecc}=_0x216ae5;return _0x142f47[_0x5ed842(0x231)](_0x1057c5=>{const _0x3b8d0f=_0x5ed842;let {unitID:_0x121194,objectID:_0xd3e568,actions:_0x4a7638}=_0x1057c5,_0x3de099=_0x5ebecc[_0x3b8d0f(0x33e)](_0x50f940=>_0x50f940['unitID']===_0x121194&&_0x50f940[_0x3b8d0f(0x148)]===_0xd3e568);return{'config':_0x1057c5,'result':{'actions':_0x4a7638[_0x3b8d0f(0x231)](_0x14fb76=>_0x3de099==null?void 0x0:_0x3de099['actions']['find'](_0x132400=>_0x132400['action']===_0x14fb76))[_0x3b8d0f(0x371)](_0x43d10d=>!!_0x43d10d),'error':_0x216ae5[_0x3b8d0f(0x1a2)]}};});}})}));}['_getAPIPrefixPath'](){const _0x5a6d52=_0x3951cd;let _0xf2517e=this[_0x5a6d52(0x357)]['getConfig'](R);return(_0xf2517e==null?void 0x0:_0xf2517e['authzUrl'])??_0x5a6d52(0x412);}async[_0x3951cd(0x18c)](_0xab5f94){const _0xe04502=_0x3951cd;let _0x35cc65=this[_0xe04502(0x2b7)]()+'/'+_0xab5f94[_0xe04502(0x3c4)]+'/object';return(await this[_0xe04502(0x2c7)][_0xe04502(0x424)](_0x35cc65,{'body':_0xab5f94}))[_0xe04502(0x435)]['objectID']||'';}async['list'](_0x47e098){const _0x42b6a9=_0x3951cd;let _0x3b0d1a=this[_0x42b6a9(0x2b7)]()+_0x42b6a9(0x1dd);return(await this[_0x42b6a9(0x2c7)][_0x42b6a9(0x424)](_0x3b0d1a,{'body':_0x47e098}))[_0x42b6a9(0x435)][_0x42b6a9(0x3c6)];}async[_0x3951cd(0x2b2)](_0x288dc9){const _0x38233d=_0x3951cd;var _0x5a890f;let _0x5bcc67=this[_0x38233d(0x2b7)]()+'/'+_0x288dc9[_0x38233d(0x3c4)]+_0x38233d(0x2d2)+encodeURIComponent(_0x288dc9['objectID']),_0x131d00=await this[_0x38233d(0x2c7)][_0x38233d(0x354)](_0x5bcc67,{'body':_0x288dc9});if((_0x131d00==null||(_0x5a890f=_0x131d00[_0x38233d(0x435)])==null||(_0x5a890f=_0x5a890f['error'])==null?void 0x0:_0x5a890f[_0x38233d(0x366)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x3951cd(0x436)](_0x4a84c9){const _0x78b9a=_0x3951cd;let _0x28d909=this[_0x78b9a(0x2b7)]()+'/'+_0x4a84c9['objectType']+_0x78b9a(0x2d2)+encodeURIComponent(_0x4a84c9[_0x78b9a(0x148)])+'/allowed';return(await this[_0x78b9a(0x2c7)][_0x78b9a(0x424)](_0x28d909,{'body':_0x4a84c9}))[_0x78b9a(0x435)][_0x78b9a(0x2fc)];}async[_0x3951cd(0x41b)](_0x3b61a6){const _0x42558f=_0x3951cd;let _0x453203=this[_0x42558f(0x2b7)]()+_0x42558f(0x192);return(await this[_0x42558f(0x2c7)][_0x42558f(0x424)](_0x453203,{'body':{'requests':_0x3b61a6}}))[_0x42558f(0x435)][_0x42558f(0x2a8)];}async[_0x3951cd(0x2b8)](_0x5a1b2e){const _0xdc25e8=_0x3951cd;let _0x1d9518=this[_0xdc25e8(0x2b7)]()+'/'+_0x5a1b2e['objectType']+_0xdc25e8(0x1ad),_0x42e97a=await this[_0xdc25e8(0x2c7)][_0xdc25e8(0x424)](_0x1d9518,{'body':_0x5a1b2e});return{'roles':_0x42e97a['body'][_0xdc25e8(0x201)],'actions':_0x42e97a[_0xdc25e8(0x435)][_0xdc25e8(0x2fc)]};}async[_0x3951cd(0x41a)](_0x4cd9b8){const _0x5b4dcf=_0x3951cd;let _0x59e915=this[_0x5b4dcf(0x2b7)]()+'/collaborator';await this[_0x5b4dcf(0x2c7)][_0x5b4dcf(0x300)](_0x59e915,{'params':{'collaboratorID':_0x4cd9b8['collaboratorID'],'objectID':_0x4cd9b8[_0x5b4dcf(0x148)],'unitID':_0x4cd9b8[_0x5b4dcf(0x2f3)]}});}async[_0x3951cd(0x374)](_0x47b5cc){const _0xb6aec2=_0x3951cd;let _0x2ab92f=this[_0xb6aec2(0x2b7)]()+_0xb6aec2(0x35c);await this[_0xb6aec2(0x2c7)]['patch'](_0x2ab92f,{'body':_0x47b5cc});}async[_0x3951cd(0x247)](_0x779450){const _0x46147d=_0x3951cd;let _0x2d76be=this[_0x46147d(0x2b7)]()+'/collaborator';await this['_HTTPService'][_0x46147d(0x424)](_0x2d76be,{'body':_0x779450});}async['listCollaborators'](_0x446753){const _0x230572=_0x3951cd;let _0x3d9825=this[_0x230572(0x2b7)]()+_0x230572(0x35c),_0x164fd0=await this[_0x230572(0x2c7)][_0x230572(0x312)](_0x3d9825,{'params':{'objectID':_0x446753[_0x230572(0x148)],'unitID':_0x446753[_0x230572(0x2f3)]}});return this[_0x230572(0x3c3)](_0x164fd0[_0x230572(0x435)][_0x230572(0x35b)]??!0x1),_0x164fd0[_0x230572(0x435)]['collaborators'];}async[_0x3951cd(0x1d4)](_0x388be4){const _0x5a4bf1=_0x3951cd;let _0xc1d2c9=this['_getAPIPrefixPath']()+_0x5a4bf1(0x35c);await this[_0x5a4bf1(0x2c7)][_0x5a4bf1(0x354)](_0xc1d2c9,{'body':_0x388be4});}[_0x3951cd(0x3c3)](_0x1773cd){const _0x3a9c5e=_0x3951cd;this[_0x3a9c5e(0x16b)]=_0x1773cd;}[_0x3951cd(0x17a)](){const _0x1a5082=_0x3951cd;return this[_0x1a5082(0x16b)];}};sr=H([V(0x0,_0x2781ac(_0x474fac)),V(0x1,_0x2781ac(_0xc1d862))],sr);function cr(_0xea3525){const _0x517bbe=_0x3951cd;let _0xc98d99=atob(_0xea3525),_0x100915=new Uint8Array(_0xc98d99[_0x517bbe(0x377)]);for(let _0x2d4aba=0x0;_0x2d4aba<_0xc98d99[_0x517bbe(0x377)];_0x2d4aba++)_0x100915[_0x2d4aba]=_0xc98d99[_0x517bbe(0x36b)](_0x2d4aba);return _0x100915;}function lr(_0x3b380a){const _0x237492=_0x3951cd;let _0x1a0df1='';for(let _0x54579d=0x0;_0x54579d<_0x3b380a[_0x237492(0x377)];_0x54579d++)_0x1a0df1+=String[_0x237492(0x2dc)](_0x3b380a[_0x54579d]);return btoa(_0x1a0df1);}function ur(_0x48172f,_0x41056d){const _0x5ce700=_0x3951cd;let _0x12784a=cr(_0x41056d),_0x2960da=_0x3cd5c7(0x10),_0x2d658b=_0x1e023e(_0x12784a,_0x2960da)[_0x5ce700(0x226)](_0x564f3a(_0x48172f));return lr(_0x20f6b6(_0x2960da,_0x2d658b));}function dr(){const _0x339fdf=_0x3951cd;let _0x4fb096=_0x159fe3()['__Key__'];if(typeof window<'u'&&window[_0x339fdf(0x22f)]!==void 0x0&&_0x4fb096){let _0xbd700f={'time':Math[_0x339fdf(0x239)](Date['now']()/0x3e8),'domain':location[_0x339fdf(0x358)]};return ur(JSON[_0x339fdf(0x1c9)](_0xbd700f),_0x4fb096);}}let fr=class{constructor(_0x183e25){const _0x256991=_0x3951cd;this[_0x256991(0x1bd)]=_0x183e25,this[_0x256991(0x32d)]();}[_0x3951cd(0x32d)](){const _0x634d37=_0x3951cd;this['_httpService'][_0x634d37(0x43e)]({'interceptor':(_0x5a13b3,_0x17bc38)=>{const _0x51710f=_0x634d37;let _0x39f67e=dr();return _0x39f67e&&_0x5a13b3[_0x51710f(0x283)]['set']('x-univer-host',_0x39f67e),_0x17bc38(_0x5a13b3);}});}};fr=H([V(0x0,_0x2781ac(_0x474fac))],fr);let pr=class extends _0x161c82{constructor(_0x30b892,_0x2c1a41,_0x1dac2c){const _0x22e59d=_0x3951cd;super(),this[_0x22e59d(0x476)]=_0x30b892,this['_snapshotService']=_0x2c1a41,this['_localCacheService']=_0x1dac2c,z(this,_0x22e59d(0x20f),new _0x2a2d0e(null)),z(this,'_unitLoaded$',new _0x1c980d()),z(this,_0x22e59d(0x32b),this[_0x22e59d(0x20f)][_0x22e59d(0x207)]()),z(this,_0x22e59d(0x272),this[_0x22e59d(0x458)][_0x22e59d(0x207)]());}[_0x3951cd(0x3b6)](){const _0x32f30c=_0x3951cd;super[_0x32f30c(0x3b6)](),this['_unitLoaded$'][_0x32f30c(0x46b)](),this[_0x32f30c(0x20f)]['complete']();}[_0x3951cd(0x3d3)](_0x5b615a,_0x5d0a04,_0x5bdf3,_0x36a6f0,_0x2a8727){return this['_loadUnit'](_0x5b615a,_0x5d0a04,_0x5bdf3,_0x36a6f0,_0x2a8727);}['loadUnit'](_0x546288,_0x58a6d5,_0xd4e690,_0x407869){const _0x4c3266=_0x3951cd;return this[_0x4c3266(0x236)](_0x546288,_0x58a6d5,void 0x0,_0xd4e690,_0x407869);}async[_0x3951cd(0x236)](_0x3e48d1,_0x4c9f1b,_0x277ac5,_0x214269,_0x55cfa2){const _0x18cc51=_0x3951cd;this['_unitInfo$']['next']({'unitId':_0x3e48d1,'type':_0x4c9f1b,'subUnitId':_0x214269});let _0x4abcf5=_0x277ac5;if(_0x4abcf5===void 0x0){var _0x4f47dd;let _0xd611d=await((_0x4f47dd=this['_localCacheService'])==null?void 0x0:_0x4f47dd[_0x18cc51(0x185)](_0x3e48d1));_0x4abcf5=_0xd611d&&(_0xd611d[_0x18cc51(0x2b6)]||_0xd611d[_0x18cc51(0x446)]['length']!==0x0)?_0xd611d['rev']:0x0,_0x4abcf5===0x0&&this[_0x18cc51(0x476)][_0x18cc51(0x30a)](_0x18cc51(0x145),_0x18cc51(0x165));}return this[_0x18cc51(0x3be)](_0x3e48d1,_0x4c9f1b,_0x4abcf5,_0x214269,_0x55cfa2);}async[_0x3951cd(0x3be)](_0x5b2b5f,_0xdbea5f,_0x7a45db,_0x5a41d1,_0xb73940){const _0x29fca2=_0x3951cd;let _0x3c0db7=null;switch(_0xdbea5f){case _0x29dacb['UNIVER_SHEET']:_0x3c0db7=await this['_snapshotService'][_0x29fca2(0x21c)](_0x5b2b5f,_0x7a45db,_0xb73940,{'initialSubUnitId':_0x5a41d1});break;case _0x29dacb[_0x29fca2(0x1da)]:_0x3c0db7=await this[_0x29fca2(0x3dd)][_0x29fca2(0x206)](_0x5b2b5f,_0x7a45db,_0xb73940);break;case _0x29dacb[_0x29fca2(0x2c3)]:_0x3c0db7=await this[_0x29fca2(0x3dd)][_0x29fca2(0x456)](_0x5b2b5f,_0x7a45db,_0xb73940);break;case _0x29dacb['UNIVER_BOARD']:_0x3c0db7=await this[_0x29fca2(0x3dd)][_0x29fca2(0x26b)](_0x5b2b5f,_0x7a45db,_0xb73940);break;case _0x29dacb[_0x29fca2(0x202)]:_0x3c0db7=await this['_snapshotService'][_0x29fca2(0x3af)](_0x5b2b5f,_0x7a45db,_0xb73940);break;case _0x29dacb[_0x29fca2(0x321)]:_0x3c0db7=await this[_0x29fca2(0x3dd)][_0x29fca2(0x33b)](_0x5b2b5f,_0x7a45db,_0xb73940);break;default:this['_logService'][_0x29fca2(0x1a2)](_0x29fca2(0x145),_0x29fca2(0x422));}return _0x3c0db7&&this[_0x29fca2(0x458)][_0x29fca2(0x466)](_0x3c0db7),_0x3c0db7;}};pr=H([V(0x0,_0x42f5a0),V(0x1,_0x2781ac(_0x479f0e)),V(0x2,_0x1a982e(U))],pr);let mr=class{constructor(_0x3b39af,_0x213883,_0x3e1dfb){const _0x329012=_0x3951cd;this[_0x329012(0x1bd)]=_0x3b39af,this['_configService']=_0x213883,this[_0x329012(0x3c2)]=_0x3e1dfb,z(this,_0x329012(0x38e),0x0),z(this,_0x329012(0x43b),new _0x1c980d()),z(this,'change$',this[_0x329012(0x43b)]),z(this,'_imageSourceCache',new Map());}[_0x3951cd(0x38b)](_0x12e6f3){const _0x35f89d=_0x3951cd;this[_0x35f89d(0x38e)]=_0x12e6f3,this[_0x35f89d(0x43b)][_0x35f89d(0x466)](_0x12e6f3);}[_0x3951cd(0x1af)](_0x464235,_0x104562){const _0x1d9493=_0x3951cd;if(_0x104562===_0x21fc0d[_0x1d9493(0x26d)]){let _0x3598bd=new Image();return _0x3598bd[_0x1d9493(0x24d)]=_0x464235,_0x3598bd;}return this[_0x1d9493(0x3a6)][_0x1d9493(0x312)](_0x464235);}[_0x3951cd(0x40a)](_0x4e0bd0,_0x42b8e3,_0x453515){const _0x1d0bb2=_0x3951cd;_0x42b8e3!==_0x21fc0d['BASE64']&&_0x453515!=null&&this[_0x1d0bb2(0x3a6)][_0x1d0bb2(0x1a5)](_0x4e0bd0,_0x453515);}async['getImage'](_0x53c68d){const _0x356b2d=_0x3951cd;try{let _0x426511=this[_0x356b2d(0x2b9)](this[_0x356b2d(0x34b)](),''+_0x53c68d),_0x299fc6=(await this[_0x356b2d(0x1bd)][_0x356b2d(0x312)](_0x426511))[_0x356b2d(0x435)];if(_0x299fc6[_0x356b2d(0x1a2)]&&_0x299fc6[_0x356b2d(0x1a2)][_0x356b2d(0x366)]===_0x378050['OK']){let _0xe29b68=_0x201598(_0x299fc6['url'],this[_0x356b2d(0x341)]());return Promise[_0x356b2d(0x35e)](_0xe29b68);}return Promise['reject'](_0x299fc6[_0x356b2d(0x1a2)]);}catch(_0x348a48){return Promise['reject'](_0x348a48);}}async[_0x3951cd(0x23d)](_0x9ccf10){const _0x49b1a1=_0x3951cd;let _0x404e35='';if(!_0x15871a[_0x49b1a1(0x452)](_0x9ccf10[_0x49b1a1(0x186)]))return this['_decreaseWaiting'](),Promise[_0x49b1a1(0x416)](Error(_0x20f770[_0x49b1a1(0x2e8)]));if(_0x9ccf10[_0x49b1a1(0x2cd)]>_0x504316())return this[_0x49b1a1(0x2a6)](),Promise[_0x49b1a1(0x416)](Error(_0x20f770[_0x49b1a1(0x3a8)]));try{let _0x2e368b=new FormData();_0x2e368b[_0x49b1a1(0x347)](_0x49b1a1(0x37a),_0x9ccf10);let _0x30e18f=this[_0x49b1a1(0x3c2)][_0x49b1a1(0x376)](),_0x2dc526=_0x30e18f==null?void 0x0:_0x30e18f[_0x49b1a1(0x1ab)]();if(!_0x2dc526)throw Error(_0x49b1a1(0x195));let _0x2ea409=this['_getUploadFileURL']()+_0x49b1a1(0x1a7)+_0x9ccf10[_0x49b1a1(0x2cd)]['toString']()+_0x49b1a1(0x2ce)+_0x37ef15['UnitEmbedded']+_0x49b1a1(0x3f7)+encodeURIComponent(_0x2dc526),_0x1275eb={'body':_0x2e368b},_0x13df22=(await this[_0x49b1a1(0x1bd)][_0x49b1a1(0x424)](_0x2ea409,_0x1275eb))['body'];if(typeof _0x13df22['FileId']!=_0x49b1a1(0x3db))return this[_0x49b1a1(0x2a6)](),Promise['reject'](Error(_0x20f770[_0x49b1a1(0x3f2)]));_0x404e35=_0x13df22['FileId'];}catch{return this[_0x49b1a1(0x2a6)](),Promise[_0x49b1a1(0x416)](Error(_0x20f770[_0x49b1a1(0x3f2)]));}return new Promise((_0x130a7d,_0x12acff)=>{const _0x366502=_0x49b1a1;let _0xf0e250=new FileReader();_0xf0e250[_0x366502(0x1d0)](_0x9ccf10),_0xf0e250[_0x366502(0x1f1)]=_0x135593=>{const _0x32ac45=_0x366502;var _0x10f5d3;let _0x107796=(_0x10f5d3=_0x135593[_0x32ac45(0x329)])==null?void 0x0:_0x10f5d3[_0x32ac45(0x16f)];_0x107796==null?(this[_0x32ac45(0x2a6)](),_0x12acff(Error(_0x20f770[_0x32ac45(0x3f2)]))):(_0x130a7d({'imageId':_0x27f3f5(0x6),'imageSourceType':_0x21fc0d['UUID'],'source':_0x404e35,'base64Cache':_0x107796,'status':_0x20f770[_0x32ac45(0x381)]}),this[_0x32ac45(0x2a6)]());};});}[_0x3951cd(0x3b7)](){const _0x3dfddc=_0x3951cd;let _0x48102a=this['_configService'][_0x3dfddc(0x3f8)](R);return(_0x48102a==null?void 0x0:_0x48102a[_0x3dfddc(0x442)])??_0x3dfddc(0x218);}[_0x3951cd(0x34b)](){const _0x1f5b3e=_0x3951cd;let _0x750e09=this[_0x1f5b3e(0x357)][_0x1f5b3e(0x3f8)](R);return(_0x750e09==null?void 0x0:_0x750e09['signUrlServerUrl'])??_0x1f5b3e(0x1cd);}[_0x3951cd(0x341)](){const _0x360ef2=_0x3951cd;let _0xd3d08a=this[_0x360ef2(0x357)][_0x360ef2(0x3f8)](R);return(_0xd3d08a==null?void 0x0:_0xd3d08a[_0x360ef2(0x302)])??location[_0x360ef2(0x27f)];}['_replaceFileID'](_0x5896e3,_0x539616){const _0x28000f=_0x3951cd;return _0x5896e3[_0x28000f(0x463)](_0x28000f(0x3f3),_0x539616);}['_decreaseWaiting'](){const _0x14cdc1=_0x3951cd;--this[_0x14cdc1(0x38e)],this['_change$'][_0x14cdc1(0x466)](this[_0x14cdc1(0x38e)]);}};mr=H([V(0x0,_0x2781ac(_0x474fac)),V(0x1,_0xc1d862),V(0x2,_0x2781ac(_0xa820d0))],mr);let hr=class{constructor(_0x259677,_0x3e0f48){const _0x3ed113=_0x3951cd;this[_0x3ed113(0x357)]=_0x259677,this[_0x3ed113(0x2c7)]=_0x3e0f48;}['_getAPIPrefixPath'](){const _0x4604ac=_0x3951cd;let _0x331477=this[_0x4604ac(0x357)][_0x4604ac(0x3f8)](R);return(_0x331477==null?void 0x0:_0x331477[_0x4604ac(0x322)])??_0x4604ac(0x412);}async[_0x3951cd(0x44d)](_0x58fef4){const _0x5002ee=_0x3951cd;let _0x48740d=this[_0x5002ee(0x2b7)]()+_0x5002ee(0x35c);return{'list':[{'title':_0x5002ee(0x292),'mentions':(await this[_0x5002ee(0x2c7)][_0x5002ee(0x312)](_0x48740d,{'params':{'objectID':_0x58fef4[_0x5002ee(0x398)],'unitID':_0x58fef4[_0x5002ee(0x398)]}}))['body']['collaborators']['map'](_0x2f2fe8=>({'objectId':_0x2f2fe8['id'],'name':_0x2f2fe8['subject'][_0x5002ee(0x212)],'metadata':{'icon':_0x2f2fe8['subject']['avatar']},'label':_0x2f2fe8['subject'][_0x5002ee(0x212)],'objectType':_0x2eef9d[_0x5002ee(0x265)]})),'metadata':{},'type':_0x2eef9d[_0x5002ee(0x265)]}]};}};hr=H([V(0x0,_0x2781ac(_0xc1d862)),V(0x1,_0x2781ac(_0x474fac))],hr);let gr=class extends _0x161c82{constructor(_0x265189,_0x19af96,_0x22ba4f,_0x4f8a49,_0x21bdf6,_0x14aec6){const _0x5a1154=_0x3951cd;super(),this[_0x5a1154(0x41c)]=_0x265189,this[_0x5a1154(0x3c2)]=_0x19af96,this[_0x5a1154(0x229)]=_0x22ba4f,this[_0x5a1154(0x144)]=_0x4f8a49,this[_0x5a1154(0x2ab)]=_0x21bdf6,this[_0x5a1154(0x3c9)]=_0x14aec6,z(this,_0x5a1154(0x350),new Set()),this[_0x5a1154(0x2c2)](()=>this[_0x5a1154(0x350)]['clear']()),this[_0x5a1154(0x2c2)](_r(this[_0x5a1154(0x3c2)])[_0x5a1154(0x1fa)](({unitId:_0x20f7cb})=>this[_0x5a1154(0x350)][_0x5a1154(0x300)](_0x20f7cb))),this[_0x5a1154(0x408)](),this[_0x5a1154(0x18e)](),[_0x29dacb[_0x5a1154(0x1da)],_0x29dacb[_0x5a1154(0x2c3)],_0x29dacb['UNIVER_BASE'],_0x29dacb[_0x5a1154(0x285)]][_0x5a1154(0x258)](_0x29b0fe=>{const _0xc0b6a6=_0x5a1154;this['disposeWithMe'](this[_0xc0b6a6(0x3c2)][_0xc0b6a6(0x14f)](_0x29b0fe)[_0xc0b6a6(0x1fa)](_0x16b5f9=>{const _0x556298=_0xc0b6a6;this[_0x556298(0x350)][_0x556298(0x177)](_0x16b5f9['getUnitId']()),this[_0x556298(0x41c)][_0x556298(0x312)](_0xd0c2e4)[_0x556298(0x33a)](_0x16b5f9[_0x556298(0x1ab)]());}));});}[_0x3951cd(0x18e)](){const _0xf0750d=_0x3951cd;let _0x50f03a=async(_0x2d5ee8,_0x309b62)=>{const _0x31342e=_0x3bda;let _0x3d28f0=await this[_0x31342e(0x2ab)]['requireSession'](_0x2d5ee8);this[_0x31342e(0x31a)]||this[_0x31342e(0x350)][_0x31342e(0x2b1)](_0x2d5ee8)||!this['_univerInstanceService'][_0x31342e(0x27e)](_0x2d5ee8)||_0x3d28f0[_0x31342e(0x1cb)][_0x31342e(0x261)](_0x45d50e(_0x58a0e6=>_0x58a0e6['eventID']===_0x232d5b[_0x31342e(0x3e8)]),_0x56395a(_0x2c2fbb(this[_0x31342e(0x279)],this[_0x31342e(0x3c2)][_0x31342e(0x3f1)]['pipe'](_0x45d50e(_0x27ef81=>_0x27ef81[_0x31342e(0x1ab)]()===_0x2d5ee8)))))['subscribe'](_0x5a57f7=>{const _0x3343ae=_0x31342e;let {reason:_0x28ca26}=_0x5a57f7[_0x3343ae(0x2d0)];this[_0x3343ae(0x3c9)][_0x3343ae(0x254)]({'id':_0x3343ae(0x146),'data':_0x28ca26}),this['_closedUnits']['add'](_0x2d5ee8),this[_0x3343ae(0x41c)]['get'](_0xd0c2e4)[_0x3343ae(0x33a)](_0x2d5ee8);let _0x1494d9=vr(_0x309b62);_0x1494d9!=null&&this[_0x3343ae(0x39f)](_0x2d5ee8,_0x1494d9,_0x13369c['Edit'],!0x1),this['_collaborationSessionService'][_0x3343ae(0x16a)](_0x2d5ee8);});};_r(this[_0xf0750d(0x3c2)])['pipe'](_0x45d50e(({unitId:_0x1924a2})=>!_0x3ed5ae(_0x1924a2)),_0x56395a(this[_0xf0750d(0x279)]))[_0xf0750d(0x1fa)](({type:_0x3d53d2,unitId:_0x48a225})=>{const _0x3b218e=_0xf0750d;_0x50f03a(_0x48a225,_0x3d53d2)[_0x3b218e(0x220)](_0x3780d4=>this['_injector']['get'](_0x42f5a0)[_0x3b218e(0x1a2)](_0x3780d4));});}[_0x3951cd(0x408)](){const _0x5e6568=_0x3951cd;let _0x4170ce=async(_0x211325,_0x1f76f9)=>{const _0xb0f56d=_0x3bda;let _0x59565=await this['_collaborationSessionService']['requireSession'](_0x211325);if(!(this['_disposed']||this[_0xb0f56d(0x350)]['has'](_0x211325)||!this[_0xb0f56d(0x3c2)]['getUnit'](_0x211325))){if(_0x1f76f9===_0x29dacb[_0xb0f56d(0x3b9)]){let _0x4b24ed=this[_0xb0f56d(0x41c)]['get'](_0x291ac6);await _0x4b24ed[_0xb0f56d(0x238)](_0x211325),_0x59565[_0xb0f56d(0x1cb)][_0xb0f56d(0x261)](_0x45d50e(_0x528f6e=>_0x528f6e[_0xb0f56d(0x14a)]===_0x232d5b[_0xb0f56d(0x234)]),_0x56395a(_0x2c2fbb(this[_0xb0f56d(0x279)],_0x59565[_0xb0f56d(0x1cb)]['pipe'](_0x45d50e(_0x199f28=>_0x199f28[_0xb0f56d(0x14a)]===_0x232d5b[_0xb0f56d(0x3e8)])),this[_0xb0f56d(0x3c2)][_0xb0f56d(0x3f1)][_0xb0f56d(0x261)](_0x45d50e(_0x3af894=>_0x3af894['getUnitId']()===_0x211325)))))[_0xb0f56d(0x1fa)](_0x42ab2a=>{const _0x3c3b8a=_0xb0f56d;let {objectId:_0x1ace09}=_0x42ab2a['data'];_0x1ace09===_0x211325?_0x4b24ed[_0x3c3b8a(0x238)](_0x211325):_0x4b24ed['refreshPermission'](_0x211325,_0x1ace09);});}else _0x59565[_0xb0f56d(0x1cb)]['pipe'](_0x45d50e(_0x45c14d=>_0x45c14d[_0xb0f56d(0x14a)]===_0x232d5b[_0xb0f56d(0x234)]),_0x56395a(_0x2c2fbb(this[_0xb0f56d(0x279)],_0x59565[_0xb0f56d(0x1cb)][_0xb0f56d(0x261)](_0x45d50e(_0x1a2d4c=>_0x1a2d4c[_0xb0f56d(0x14a)]===_0x232d5b[_0xb0f56d(0x3e8)])),this[_0xb0f56d(0x3c2)][_0xb0f56d(0x3f1)][_0xb0f56d(0x261)](_0x45d50e(_0x59f5ea=>_0x59f5ea[_0xb0f56d(0x1ab)]()===_0x211325)))))['subscribe'](()=>{const _0x6b64b2=_0xb0f56d;this[_0x6b64b2(0x335)](_0x211325,_0x1f76f9)[_0x6b64b2(0x220)](_0x4a356c=>this[_0x6b64b2(0x41c)][_0x6b64b2(0x312)](_0x42f5a0)[_0x6b64b2(0x1a2)](_0x4a356c));}),await this[_0xb0f56d(0x335)](_0x211325,_0x1f76f9);}};_r(this[_0x5e6568(0x3c2)])[_0x5e6568(0x261)](_0x45d50e(({unitId:_0x545a45})=>!_0x3ed5ae(_0x545a45)),_0x56395a(this[_0x5e6568(0x279)]))[_0x5e6568(0x1fa)](({type:_0x2f034b,unitId:_0x569f1d})=>{const _0x206f8a=_0x5e6568;_0x4170ce(_0x569f1d,_0x2f034b)[_0x206f8a(0x220)](_0x2125b7=>this['_injector']['get'](_0x42f5a0)[_0x206f8a(0x1a2)](_0x2125b7));});}async[_0x3951cd(0x335)](_0x2d37d3,_0x1cdd13){const _0x1e714b=_0x3951cd;let _0x3fec89=vr(_0x1cdd13);if(_0x3fec89==null)return;let _0x407ae9=this['_injector'][_0x1e714b(0x312)](_0xd0c2e4);if(_0x407ae9[_0x1e714b(0x25c)]({'unitId':_0x2d37d3,'objectId':_0x2d37d3,'objectType':_0x3fec89})){await _0x407ae9[_0x1e714b(0x2d5)](_0x2d37d3);return;}let _0x57b80a=this[_0x1e714b(0x2f8)](_0x2d37d3,_0x3fec89);if(!_0x57b80a[_0x1e714b(0x377)])return;let _0x51e536=await this[_0x1e714b(0x144)][_0x1e714b(0x436)]({'objectID':_0x2d37d3,'objectType':_0x3fec89,'unitID':_0x2d37d3,'actions':_0x57b80a[_0x1e714b(0x231)](({action:_0xc2257d})=>_0xc2257d)});this[_0x1e714b(0x31a)]||this[_0x1e714b(0x350)][_0x1e714b(0x2b1)](_0x2d37d3)||!this[_0x1e714b(0x3c2)][_0x1e714b(0x27e)](_0x2d37d3)||_0x51e536['forEach'](_0x196515=>{const _0x34eacf=_0x1e714b;let _0x45dc3a=_0x196515[_0x34eacf(0x39a)],_0xfc5cda=_0x196515[_0x34eacf(0x436)];_0x45dc3a!=null&&_0xfc5cda!=null&&_0x57b80a['filter'](_0x4ee766=>_0x4ee766['action']===_0x45dc3a)[_0x34eacf(0x258)](_0x4b5c31=>this[_0x34eacf(0x229)][_0x34eacf(0x243)](_0x4b5c31['id'],_0xfc5cda));});}[_0x3951cd(0x2f8)](_0x4c5be2,_0xac5c6c){const _0x2ebe7b=_0x3951cd;let _0x5b74ed=[];return this['_permissionService']['getAllPermissionPoint']()[_0x2ebe7b(0x258)]((_0x5f36ad,_0x1980bd)=>{const _0x44bce0=_0x2ebe7b;_0x5f36ad[_0x44bce0(0x1fa)](_0x4522c3=>{const _0x4cf574=_0x44bce0;_0x4522c3['type']===_0xac5c6c&&_0x4cf574(0x398)in _0x4522c3&&_0x4522c3['unitId']===_0x4c5be2&&(!(_0x4cf574(0x448)in _0x4522c3)||_0x4522c3[_0x4cf574(0x448)]===_0x4c5be2)&&_0x5b74ed[_0x4cf574(0x405)]({'id':_0x1980bd,'action':_0x4522c3[_0x4cf574(0x3e9)]});})[_0x44bce0(0x453)]();}),_0x5b74ed;}[_0x3951cd(0x39f)](_0x4df295,_0x4810ec,_0x4207db,_0x2e77c2){const _0x582e3f=_0x3951cd;this[_0x582e3f(0x229)][_0x582e3f(0x45e)]()[_0x582e3f(0x258)]((_0x2a2cd6,_0x1f05f2)=>{const _0x30be4e=_0x582e3f;let _0x249709=!0x1;_0x2a2cd6[_0x30be4e(0x1fa)](_0x243461=>{const _0x2e6293=_0x30be4e;_0x249709=_0x243461[_0x2e6293(0x186)]===_0x4810ec&&_0x243461[_0x2e6293(0x3e9)]===_0x4207db&&_0x2e6293(0x398)in _0x243461&&_0x243461[_0x2e6293(0x398)]===_0x4df295&&(!(_0x2e6293(0x448)in _0x243461)||_0x243461[_0x2e6293(0x448)]===_0x4df295);})['unsubscribe'](),_0x249709&&this['_permissionService']['updatePermissionPoint'](_0x1f05f2,_0x2e77c2);});}};gr=H([V(0x0,_0x2781ac(_0x4d605d)),V(0x1,_0xa820d0),V(0x2,_0x58d573),V(0x3,_0x435940),V(0x4,_0x2781ac(Zn)),V(0x5,_0x2781ac(B))],gr);function _r(_0x145af2){const _0x51b1ab=_0x3951cd;return _0x2c2fbb(...[_0x29dacb[_0x51b1ab(0x3b9)],_0x29dacb[_0x51b1ab(0x1da)],_0x29dacb[_0x51b1ab(0x2c3)],_0x29dacb[_0x51b1ab(0x285)],_0x29dacb[_0x51b1ab(0x202)]][_0x51b1ab(0x231)](_0x34f0fc=>_0x145af2['getTypeOfUnitAdded$'](_0x34f0fc)[_0x51b1ab(0x261)](_0x2c9947(_0x98ebba=>({'type':_0x34f0fc,'unitId':_0x98ebba[_0x51b1ab(0x14b)][_0x51b1ab(0x1ab)]()})))));}function vr(_0x249253){const _0x2cbc57=_0x3951cd;switch(_0x249253){case _0x29dacb[_0x2cbc57(0x3b9)]:return _0x572dda[_0x2cbc57(0x156)];case _0x29dacb['UNIVER_DOC']:return _0x572dda[_0x2cbc57(0x2bc)];case _0x29dacb[_0x2cbc57(0x2c3)]:return _0x572dda[_0x2cbc57(0x208)];case _0x29dacb[_0x2cbc57(0x285)]:return _0x572dda['Board'];case _0x29dacb[_0x2cbc57(0x202)]:return _0x572dda[_0x2cbc57(0x3b2)];default:return;}}let yr=class{constructor(_0x33bee6,_0x143305){const _0xb45e9=_0x3951cd;this[_0xb45e9(0x357)]=_0x33bee6,this[_0xb45e9(0x1bd)]=_0x143305;}async['getUnitOnRev'](_0x2cf3de,_0x1548fd){const _0xa0c3c1=_0x3951cd;var _0x51add0;let {unitID:_0x344e84,type:_0x1d09ce,revision:_0x37b0d2=0x0}=_0x1548fd,_0x24a7e0=this[_0xa0c3c1(0x2f0)]()+'/'+_0x1d09ce+_0xa0c3c1(0x45a)+_0x344e84+'/rev/'+_0x37b0d2,_0xd9e51a=(await this[_0xa0c3c1(0x1bd)][_0xa0c3c1(0x312)](_0x24a7e0))[_0xa0c3c1(0x435)],_0x5ada95=(_0x51add0=_0xd9e51a[_0xa0c3c1(0x375)])==null?void 0x0:_0x51add0['workbook'];if(_0x5ada95){let _0x341f06=_0x5ada95==null?void 0x0:_0x5ada95['originalMeta'];_0x5ada95['originalMeta']=_0x52fa7f[_0xa0c3c1(0x1cf)](_0x210ae1(_0x341f06)),Object['entries'](_0x5ada95[_0xa0c3c1(0x3ef)])[_0xa0c3c1(0x258)](([,_0x592ca2])=>{const _0x2afa43=_0xa0c3c1;let _0x3f6d02=_0x592ca2[_0x2afa43(0x1be)];_0x592ca2[_0x2afa43(0x1be)]=_0x52fa7f[_0x2afa43(0x1cf)](_0x210ae1(_0x3f6d02));});}return _0xd9e51a;}async[_0x3951cd(0x244)](_0x15b50f,_0x11ca34){const _0x5f3031=_0x3951cd;let {unitID:_0x3de733,type:_0x9ca5d4,blockID:_0x318fcf}=_0x11ca34,_0x5ea3d0=this[_0x5f3031(0x19f)]()+'/'+_0x9ca5d4+_0x5f3031(0x45a)+_0x3de733+_0x5f3031(0x1e4)+_0x318fcf;return(await this[_0x5f3031(0x1bd)][_0x5f3031(0x312)](_0x5ea3d0))[_0x5f3031(0x435)];}async[_0x3951cd(0x304)](_0x455fa6,_0x447db3){const _0x5db474=_0x3951cd;let {unitID:_0x2a9fcc,type:_0x20baa9,blockID:_0x6391ec}=_0x447db3,_0xf2dd99=this[_0x5db474(0x19f)]()+'/block/'+_0x20baa9+_0x5db474(0x45a)+_0x2a9fcc+_0x5db474(0x1e4)+_0x6391ec;return(await this[_0x5db474(0x1bd)][_0x5db474(0x312)](_0xf2dd99))[_0x5db474(0x435)];}async['fetchMissingChangesets'](_0x135c61,_0x2577c5){const _0x24103d=_0x3951cd;let {unitID:_0x1de815,type:_0x2574b5,from:_0xd7a31f,to:_0x183e2c}=_0x2577c5,_0x4d1438=this[_0x24103d(0x19f)]()+'/'+_0x2574b5+'/unit/'+_0x1de815+_0x24103d(0x26f)+_0xd7a31f+'&to='+_0x183e2c;return(await this['_httpService'][_0x24103d(0x312)](_0x4d1438))[_0x24103d(0x435)];}[_0x3951cd(0x2f0)](){const _0x3504d7=_0x3951cd;return this[_0x3504d7(0x357)][_0x3504d7(0x3f8)]('SNAPSHOT_URL_KEY')??this[_0x3504d7(0x19f)]();}['_getAPIPrefix'](){const _0x293884=_0x3951cd;let _0x56735c=this[_0x293884(0x357)][_0x293884(0x3f8)](R);return(_0x56735c==null?void 0x0:_0x56735c[_0x293884(0x1df)])??_0x293884(0x1ce);}async[_0x3951cd(0x336)](_0x468f95,_0x6d726b){const _0x346c47=_0x3951cd;let _0x3b7345=_0x346c47(0x3f5)+_0x6d726b[_0x346c47(0x186)]+_0x346c47(0x45a)+_0x6d726b[_0x346c47(0x2f3)]+_0x346c47(0x37f);return(await this[_0x346c47(0x1bd)][_0x346c47(0x312)](_0x3b7345,{'params':{'resourceId':JSON['stringify'](_0x6d726b['resourceIDs'])}}))[_0x346c47(0x435)];}[_0x3951cd(0x378)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3951cd(0x2c1)](){const _0x21f191=_0x3951cd;throw Error(_0x21f191(0x338));}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){const _0x5dbe26=_0x3951cd;throw Error(_0x5dbe26(0x338));}[_0x3951cd(0x1fc)](){const _0x331091=_0x3951cd;throw Error(_0x331091(0x338));}[_0x3951cd(0x395)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};yr=H([V(0x0,_0xc1d862),V(0x1,_0x2781ac(_0x474fac))],yr);let br=class extends _0x4e75b7{constructor(_0x2e9612,_0x142c83,_0x27f402,_0x4e7a2f,_0x136649,_0x463ce4){const _0x3873eb=_0x3951cd;super(_0x2e9612,_0x142c83,_0x27f402,_0x4e7a2f),this[_0x3873eb(0x2fb)]=_0x136649,this['_logService']=_0x463ce4;}[_0x3951cd(0x3ba)](_0x32466d,_0x1d7f6b){const _0x252fd8=_0x3951cd;let _0x352abb=this[_0x252fd8(0x253)](_0x32466d);if(_0x352abb)try{let _0x1ce62a=this[_0x252fd8(0x3ae)](_0x352abb,_0x1d7f6b);this['_substituteUndoStack'](_0x32466d,_0x1ce62a);}catch(_0x408ff1){this['_logService'][_0x252fd8(0x1a2)]('[CollaborationUndoRedoService]',_0x408ff1),this[_0x252fd8(0x204)](_0x32466d);}let _0x3f002d=this['_getRedoStack'](_0x32466d);if(_0x3f002d)try{let _0x144204=this[_0x252fd8(0x3ae)](_0x3f002d,_0x1d7f6b,!0x0);this['_substituteRedoStack'](_0x32466d,_0x144204);}catch(_0x2dd25e){this[_0x252fd8(0x476)][_0x252fd8(0x1a2)](_0x2dd25e),this['_clearRedo'](_0x32466d);}}[_0x3951cd(0x204)](_0x11d941){const _0x330738=_0x3951cd;let _0x111470=this[_0x330738(0x253)](_0x11d941);_0x111470&&(_0x111470[_0x330738(0x377)]=0x0,this['_updateStatus']());}[_0x3951cd(0x155)](_0x43f23d){const _0x56a473=_0x3951cd;let _0x585f95=this['_getRedoStack'](_0x43f23d);_0x585f95&&(_0x585f95[_0x56a473(0x377)]=0x0,this[_0x56a473(0x27d)]());}[_0x3951cd(0x33c)](_0x5f217d,_0x14b7a4){const _0x2cd8d0=_0x3951cd;this[_0x2cd8d0(0x28c)]['set'](_0x5f217d,_0x14b7a4),this[_0x2cd8d0(0x27d)]();}[_0x3951cd(0x391)](_0x763979,_0x341ace){const _0x5b9701=_0x3951cd;this[_0x5b9701(0x16d)]['set'](_0x763979,_0x341ace),this[_0x5b9701(0x27d)]();}['_transformStack'](_0x30a434,_0x1ad5f1,_0x3fe1e4=!0x1){const _0x510ec7=_0x3951cd;if(!_0x30a434['length'])return[];let _0x1cf561=[],_0x4431d2=_0x1ad5f1,_0x4557ff=_0x1ad5f1[_0x510ec7(0x186)]===_0x29dacb[_0x510ec7(0x1da)]?this[_0x510ec7(0x3c2)][_0x510ec7(0x27e)](_0x1ad5f1[_0x510ec7(0x2f3)],_0x29dacb[_0x510ec7(0x1da)]):null,_0x5b4899=_0x4557ff?{'id':_0x4557ff[_0x510ec7(0x1ab)](),'documentStyle':{},'tableSource':_0x6b190b[_0x510ec7(0x167)](_0x4557ff[_0x510ec7(0x42f)]()[_0x510ec7(0x28f)]??{})}:null;for(let _0x5b8128=_0x30a434[_0x510ec7(0x377)]-0x1;_0x5b8128>=0x0;_0x5b8128--){let {unitID:_0x4a9960,undoMutations:_0x177ac3,redoMutations:_0x6e1669}=_0x30a434[_0x5b8128],_0x3c51df=_0x3fe1e4?_0x6e1669:_0x177ac3,_0x18c182=this[_0x510ec7(0x355)](_0x4431d2,_0x3c51df);if(_0x4864dd(_0x18c182)){this[_0x510ec7(0x476)][_0x510ec7(0x1a2)]('[CollaborationUndoRedoService]',_0x510ec7(0x3c1),_0x18c182);break;}let _0x4b8ae6=_0x3fe1e4?_0x177ac3:_0x6e1669,_0x5715cf=this['_transformHistoryMutations'](_0x18c182[_0x510ec7(0x2a0)],_0x4b8ae6);if(_0x4864dd(_0x5715cf)){this[_0x510ec7(0x476)][_0x510ec7(0x1a2)]('[CollaborationUndoRedoService]',_0x510ec7(0x3c1),_0x5715cf);break;}let _0x52922e=_0x3fe1e4?_0x5715cf:_0x18c182,_0x1964db=_0x3fe1e4?_0x18c182:_0x5715cf;_0x4431d2=_0x18c182['c1Prime'],_0x5b4899&&=this[_0x510ec7(0x17b)](_0x5b4899,_0x18c182[_0x510ec7(0x360)],_0x5715cf[_0x510ec7(0x360)]),_0x1cf561['push']({'unitID':_0x4a9960,'undoMutations':_0x52922e['m2Prime'],'redoMutations':_0x1964db[_0x510ec7(0x360)]});}return _0x1cf561['reverse']();}['_transformHistoryMutations'](_0x40081d,_0x393fc3){const _0x2ed96c=_0x3951cd;if(_0x40081d[_0x2ed96c(0x186)]!==_0x29dacb['UNIVER_DOC']||_0x393fc3[_0x2ed96c(0x307)](_0x4dfcd9=>_0x4dfcd9['id']!==_0x3f15d9['id']))return this[_0x2ed96c(0x2fb)]['transformMutationsWithChangeset'](_0x40081d,_0x393fc3);let _0x4e3770=_0x6b190b[_0x2ed96c(0x167)](_0x393fc3),_0x17a05d=[];for(let _0x52b0f7 of _0x40081d[_0x2ed96c(0x446)]){let _0x117649={..._0x40081d,'mutations':[_0x52b0f7]},_0x91add1=[];for(let _0x5e42d3 of _0x4e3770){_0x117649=this[_0x2ed96c(0x182)](_0x117649,[_0x5e42d3]);let _0x133143=this[_0x2ed96c(0x2fb)][_0x2ed96c(0x2cc)](_0x117649,[_0x5e42d3]);if(_0x4864dd(_0x133143))return _0x133143;_0x117649=_0x133143[_0x2ed96c(0x2a0)],_0x91add1[_0x2ed96c(0x405)](..._0x133143['m2Prime']);}_0x4e3770=_0x91add1,_0x17a05d[_0x2ed96c(0x405)](..._0x117649[_0x2ed96c(0x446)]);}return{'m2Prime':_0x4e3770,'c1Prime':{..._0x40081d,'mutations':_0x17a05d}};}['_rebaseParagraphHistory'](_0x2615ac,_0x343c54){const _0x2f33f1=_0x3951cd;let _0x133880=new Map(),_0x2029c6=_0x6cb7ee[_0x2f33f1(0x186)][_0x2f33f1(0x216)](_0x343c54[0x0]['params'][_0x2f33f1(0x2fc)]);if(_0x2029c6[_0x2f33f1(0x29e)](null,_0x391d04=>{const _0x4d175a=_0x2f33f1;if(_0x391d04['et']!==_0x4d175a(0x25f))return;let _0x415497=JSON['stringify'](_0x2029c6['getPath']()),_0x210772=_0x133880[_0x4d175a(0x312)](_0x415497)??new Map(),_0x58598a=0x0;for(let _0x3381f4 of _0x391d04['e']){if(_0x3381f4['t']===_0x4a44bd['RETAIN']){var _0x4612f9;for(let _0x558bd0 of((_0x4612f9=_0x3381f4['body'])==null?void 0x0:_0x4612f9[_0x4d175a(0x1c8)])??[])_0x210772['set'](_0x58598a+_0x558bd0[_0x4d175a(0x1cc)],{'paragraph':_0x558bd0,'replace':_0x3381f4[_0x4d175a(0x14c)]===_0x1380a3[_0x4d175a(0x32c)]});}_0x3381f4['t']!==_0x4a44bd['INSERT']&&(_0x58598a+=_0x3381f4[_0x4d175a(0x1eb)]);}_0x210772[_0x4d175a(0x2cd)]>0x0&&_0x133880['set'](_0x415497,_0x210772);}),_0x133880['size']===0x0)return _0x2615ac;let _0x43214a=_0x6b190b[_0x2f33f1(0x167)](_0x2615ac);for(let _0x452c34 of _0x43214a['mutations']){if(_0x452c34['id']!==_0x3f15d9['id'])continue;let _0x1143da=_0x6cb7ee['type'][_0x2f33f1(0x216)](_0x452c34[_0x2f33f1(0x1f3)][_0x2f33f1(0x2fc)]);_0x1143da['traverse'](null,_0x2bae41=>{const _0x533a01=_0x2f33f1;if(_0x2bae41['et']!==_0x533a01(0x25f))return;let _0x5c637f=JSON[_0x533a01(0x1c9)](_0x1143da[_0x533a01(0x31e)]()),_0x47ea03=_0x133880[_0x533a01(0x312)](_0x5c637f);if(!(_0x47ea03!=null&&_0x47ea03['size']))return;let _0x55bebd=0x0;for(let _0x4f6f7a of _0x2bae41['e']){if(_0x4f6f7a['t']===_0x4a44bd['RETAIN']&&_0x4f6f7a['coverType']===_0x1380a3[_0x533a01(0x32c)]){var _0x4f1114;for(let _0x390f56 of((_0x4f1114=_0x4f6f7a[_0x533a01(0x435)])==null?void 0x0:_0x4f1114[_0x533a01(0x1c8)])??[]){var _0x50acb4;let _0x48374d=(_0x50acb4=_0x4f6f7a[_0x533a01(0x21b)])==null||(_0x50acb4=_0x50acb4[_0x533a01(0x1c8)])==null?void 0x0:_0x50acb4[_0x533a01(0x33e)](_0x301e41=>_0x301e41[_0x533a01(0x1cc)]===_0x390f56[_0x533a01(0x1cc)]),_0x26194f=_0x47ea03[_0x533a01(0x312)](_0x55bebd+_0x390f56['startIndex']);if(_0x48374d&&_0x26194f){this[_0x533a01(0x17f)](_0x390f56,_0x48374d,_0x26194f[_0x533a01(0x29d)],_0x26194f[_0x533a01(0x463)]);let _0x12d692=_0x26194f[_0x533a01(0x463)]?new Set([...Object[_0x533a01(0x26a)](_0x26194f[_0x533a01(0x29d)]),...Object['keys'](_0x390f56)]):Object['keys'](_0x26194f[_0x533a01(0x29d)]);for(let _0x5bbba9 of _0x12d692){if(_0x5bbba9===_0x533a01(0x1cc)||_0x5bbba9===_0x533a01(0x1f5))continue;let _0x5182f6=Reflect[_0x533a01(0x312)](_0x390f56,_0x5bbba9);_0x5182f6===void 0x0?Reflect[_0x533a01(0x19a)](_0x26194f[_0x533a01(0x29d)],_0x5bbba9):Reflect[_0x533a01(0x1a5)](_0x26194f[_0x533a01(0x29d)],_0x5bbba9,_0x6b190b[_0x533a01(0x167)](_0x5182f6));}}}}_0x4f6f7a['t']!==_0x4a44bd[_0x533a01(0x15b)]&&(_0x55bebd+=_0x4f6f7a[_0x533a01(0x1eb)]);}});}return _0x43214a;}[_0x3951cd(0x17f)](_0x3e5ff5,_0x3f700e,_0x48fe6a,_0x4b3f97){const _0x48587c=_0x3951cd;let _0x218273=new Set([...Object[_0x48587c(0x26a)](_0x3e5ff5),...Object['keys'](_0x3f700e),...Object[_0x48587c(0x26a)](_0x48fe6a)]);for(let _0x51f5aa of _0x218273){if(_0x51f5aa===_0x48587c(0x1cc)||_0x51f5aa===_0x48587c(0x1f5))continue;let _0x3bd571=Reflect['get'](_0x3e5ff5,_0x51f5aa),_0x4a9e2b=Reflect[_0x48587c(0x312)](_0x3f700e,_0x51f5aa),_0x5a5cc1=Reflect[_0x48587c(0x312)](_0x48fe6a,_0x51f5aa);if(_0x4b3f97||_0x5a5cc1!==void 0x0){if(_0x6b190b[_0x48587c(0x440)](_0x3bd571,_0x4a9e2b))_0x5a5cc1===void 0x0?(Reflect['deleteProperty'](_0x3e5ff5,_0x51f5aa),Reflect['deleteProperty'](_0x3f700e,_0x51f5aa)):(Reflect[_0x48587c(0x1a5)](_0x3e5ff5,_0x51f5aa,_0x6b190b['deepClone'](_0x5a5cc1)),Reflect[_0x48587c(0x1a5)](_0x3f700e,_0x51f5aa,_0x6b190b[_0x48587c(0x167)](_0x5a5cc1)));else{if(_0x6b190b['isObject'](_0x3bd571)&&(_0x6b190b['isObject'](_0x4a9e2b)||_0x4a9e2b===void 0x0)){let _0x54c80c=_0x4a9e2b??{};this['_rebaseUnchangedAttributes'](_0x3bd571,_0x54c80c,_0x6b190b[_0x48587c(0x34d)](_0x5a5cc1)?_0x5a5cc1:{},_0x4b3f97),(_0x4a9e2b!==void 0x0||Object['keys'](_0x54c80c)['length']>0x0)&&Reflect['set'](_0x3f700e,_0x51f5aa,_0x54c80c);}}}}}[_0x3951cd(0x17b)](_0x2328f9,_0x59382b,_0x35b897){const _0x35fad2=_0x3951cd;if(_0x59382b[_0x35fad2(0x377)]!==0x1||_0x35b897[_0x35fad2(0x377)]!==0x1||_0x59382b[0x0]['id']!==_0x3f15d9['id']||_0x35b897[0x0]['id']!==_0x3f15d9['id'])return _0x2328f9;let _0x2b646c=_0x59382b[0x0][_0x35fad2(0x1f3)],_0x4bd723=_0x35b897[0x0]['params'],_0x4a8b4a=this['_filterTableActions'](_0x2b646c[_0x35fad2(0x2fc)],!0x0);return _0x1a0d9c[_0x35fad2(0x38f)](_0x4a8b4a)?_0x2328f9:(_0x4bd723['actions']=_0x1a0d9c['compose'](this[_0x35fad2(0x154)](_0x4bd723['actions'],!0x1),_0x1a0d9c['invertWithDoc'](_0x4a8b4a,_0x2328f9)),_0x1a0d9c['apply'](_0x2328f9,_0x4a8b4a)??_0x2328f9);}[_0x3951cd(0x154)](_0x5e4929,_0x1cf242){const _0x35a161=_0x3951cd;let _0x54ae7d=_0x6cb7ee[_0x35a161(0x186)][_0x35a161(0x216)](_0x5e4929),_0x15bac2=_0x6cb7ee[_0x35a161(0x186)]['writeCursor']();return _0x54ae7d[_0x35a161(0x29e)](null,_0x4d3f2a=>{const _0x3f6282=_0x35a161;let _0xb70e60=_0x54ae7d[_0x3f6282(0x31e)]();if(_0xb70e60[0x0]===_0x3f6282(0x28f)===_0x1cf242){for(let _0x353315 of Object[_0x3f6282(0x26a)](_0x4d3f2a))_0x15bac2['writeAtPath'](_0xb70e60,_0x353315,_0x4d3f2a[_0x353315]);}}),_0x15bac2[_0x35a161(0x312)]();}};br=H([V(0x0,_0xa820d0),V(0x1,_0x140e4b),V(0x2,_0x288fbe),V(0x3,_0xc1d862),V(0x4,_0x457218),V(0x5,_0x42f5a0)],br);let xr=class extends _0x20974d{constructor(_0x3fcaf6=Tt,_0x2ba49a,_0x3c48d1,_0x35e94b){const _0x1e7075=_0x3951cd;super(),this['_config']=_0x3fcaf6,this[_0x1e7075(0x476)]=_0x2ba49a,this['_injector']=_0x3c48d1,this['_configService']=_0x35e94b;let {..._0x49dabb}=_0x42d960({},Tt,this[_0x1e7075(0x31c)]);if(!_0x49dabb[_0x1e7075(0x439)])throw Error(_0x1e7075(0x305));this[_0x1e7075(0x31c)]=_0x49dabb,this[_0x1e7075(0x357)][_0x1e7075(0x3cd)](R,_0x49dabb);}['onStarting'](){const _0x3e096b=_0x3951cd;this['_configService'][_0x3e096b(0x3cd)](_0x330918,this[_0x3e096b(0x31c)][_0x3e096b(0x3e4)]??[]),this[_0x3e096b(0x241)](),this[_0x3e096b(0x1dc)]();}[_0x3951cd(0x241)](){const _0x1f4c04=_0x3951cd;var _0x4b43a9,_0xb7092f;this[_0x1f4c04(0x41c)][_0x1f4c04(0x2b1)](_0x5a28cb)&&this[_0x1f4c04(0x476)][_0x1f4c04(0x1a2)](_0x1f4c04(0x333),_0x1f4c04(0x31b));let _0x8684b3=_0x1e3bbe([[_0x5a28cb,{'useClass':br}],[Jn,{'useValue':Yn()}],[Zn],[Kt],[ln],[or],[fr],[Gt],[gr],[B],[pr],[Wn,{'useClass':this[_0x1f4c04(0x31c)][_0x1f4c04(0x439)]}],[_0x5d6715,{'useClass':yr}],[_0x435940,{'useClass':sr}],[_0x5bdc02,{'useClass':mr}],[rr,{'useClass':ir}],[_0x3a35bd,{'useClass':hr}],[$n],[nr]],(_0x4b43a9=this[_0x1f4c04(0x31c)])==null?void 0x0:_0x4b43a9[_0x1f4c04(0x24f)]);if(!((_0xb7092f=this[_0x1f4c04(0x31c)])!=null&&_0xb7092f['enableSingleActiveInstanceLock'])){let _0x3d1db6=_0x8684b3[_0x1f4c04(0x1a0)](([_0x3088ff])=>_0x3088ff===W);_0x3d1db6!==-0x1&&_0x8684b3['splice'](_0x3d1db6,0x1);}_0x20083b(this[_0x1f4c04(0x41c)],_0x8684b3);}[_0x3951cd(0x1dc)](){const _0x2f94cf=_0x3951cd;var _0x222172,_0x2080f4;if(this['_injector']['get'](_0x474fac)[_0x2f94cf(0x43e)]({'priority':0x14,'interceptor':_0x2afa71({'maxParallel':0x6})}),!((_0x222172=this['_config'])!=null&&_0x222172['enableOfflineEditing'])){var _0x4deb71;(_0x4deb71=this[_0x2f94cf(0x41c)]['get'](U,_0x155bfe[_0x2f94cf(0x1e7)]))==null||_0x4deb71[_0x2f94cf(0x1ae)]();}(_0x2080f4=this['_config'])!=null&&_0x2080f4[_0x2f94cf(0x361)]&&_0x3fbcdd(this[_0x2f94cf(0x41c)],[[or]]),_0x3fbcdd(this['_injector'],[[fr],[$n],[gr]]);}};z(xr,_0x3951cd(0x319),_0x3951cd(0x263)),z(xr,_0x3951cd(0x393),er),z(xr,_0x3951cd(0x43c),tr),xr=H([_0x439e93(_0x683f9c,_0x523ba4,_0x4827bb),V(0x1,_0x42f5a0),V(0x2,_0x2781ac(_0x4d605d)),V(0x3,_0xc1d862)],xr);export{sr as AuthzIoHttpService,J as AwaitingState,Y as AwaitingWithPendingState,In as BaseCollaborationEntity,zn as BoardCollaborationEntity,R as COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY,Bt as ChangesetSubmitter,ir as CollaborationAttachmentIoService,$n as CollaborationController,$ as CollaborationEntity,mr as CollaborationImageIoService,on as CollaborationSession,Zn as CollaborationSessionService,Kn as CollaborationSocketService,Nn as CollaborationStatus,Wt as CollaborationUIEventId,B as CollaborationUIEventService,br as CollaborativeUndoRedoService,Gt as CommentService,X as ConflictState,Rt as DEFAULT_ACK_TIMEOUT,Et as DEFAULT_COLLAB_WEB_SOCKET_URL,Pt as DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT,Dt as DEFAULT_WS_SESSION_TICKET_URL,pr as DataLoaderService,Fn as DocCollaborationEntity,Q as FetchingMissState,Ot as HEARTBEAT_INTERVAL_KEY,kt as HEARTBEAT_TIMEOUT_KEY,rr as IAttachmentIoService,Jn as ICollaborationClientAdapterService,Wn as ICollaborationSocketService,U as ILocalCacheService,Vn as INetworkConditionService,W as ISingleActiveUnitService,Mt as LOCAL_CACHE_INTERVAL,jt as LOCAL_CACHE_INTERVAL_KEY,zt as MAX_ACK_TIMEOUT,Kt as MemberService,hr as MentionIoHttpService,Z as OfflineState,Bn as PdfCollaborationEntity,q as PendingState,Nt as REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY,At as RETRY_CONNECTING_MAX_COUNT_KEY,rn as SessionStatus,Ln as SheetCollaborationEntity,ln as SheetTransformSelectionsService,Rn as SlideCollaborationEntity,yr as SnapshotServerOverHTTPService,K as SyncedState,un as UnitStatus,xr as UniverCollaborationClientPlugin,Yn as createUniverCollaborationAdapter,Hn as deserializeToCombResponse,sn as getLocalCacheKey,Un as serializeCombRequest};