@univerjs-pro/collaboration-client 1.0.0-alpha.7 → 1.0.0-alpha.8

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 (92) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +6 -0
  65. package/lib/types/controllers/collaboration/collaboration-state.d.ts +3 -4
  66. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +8 -5
  67. package/lib/types/index.d.ts +2 -3
  68. package/lib/types/services/attachment-remote/attachment-io.service.d.ts +9 -4
  69. package/lib/types/services/attachment-remote/types.d.ts +2 -19
  70. package/lib/types/services/member/member.service.d.ts +2 -15
  71. package/lib/umd/facade.js +1 -1
  72. package/lib/umd/index.js +1 -1
  73. package/lib/umd/locale/ar-SA.js +1 -1
  74. package/lib/umd/locale/ca-ES.js +1 -1
  75. package/lib/umd/locale/de-DE.js +1 -1
  76. package/lib/umd/locale/en-US.js +1 -1
  77. package/lib/umd/locale/es-ES.js +1 -1
  78. package/lib/umd/locale/fa-IR.js +1 -1
  79. package/lib/umd/locale/fr-FR.js +1 -1
  80. package/lib/umd/locale/id-ID.js +1 -1
  81. package/lib/umd/locale/it-IT.js +1 -1
  82. package/lib/umd/locale/ja-JP.js +1 -1
  83. package/lib/umd/locale/ko-KR.js +1 -1
  84. package/lib/umd/locale/pl-PL.js +1 -1
  85. package/lib/umd/locale/pt-BR.js +1 -1
  86. package/lib/umd/locale/ru-RU.js +1 -1
  87. package/lib/umd/locale/sk-SK.js +1 -1
  88. package/lib/umd/locale/vi-VN.js +1 -1
  89. package/lib/umd/locale/zh-CN.js +1 -1
  90. package/lib/umd/locale/zh-HK.js +1 -1
  91. package/lib/umd/locale/zh-TW.js +1 -1
  92. package/package.json +15 -14
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4c0aa4=_0x290d;(function(_0x50a2c5,_0x5a60e1){const _0x218a80=_0x290d,_0x2b97ab=_0x50a2c5();while(!![]){try{const _0x31600b=parseInt(_0x218a80(0x1c7))/0x1*(parseInt(_0x218a80(0x251))/0x2)+-parseInt(_0x218a80(0x413))/0x3+-parseInt(_0x218a80(0x22a))/0x4+parseInt(_0x218a80(0x241))/0x5*(parseInt(_0x218a80(0x2bb))/0x6)+parseInt(_0x218a80(0x36a))/0x7*(parseInt(_0x218a80(0x30f))/0x8)+-parseInt(_0x218a80(0x2ff))/0x9+parseInt(_0x218a80(0x3ae))/0xa*(parseInt(_0x218a80(0x2c2))/0xb);if(_0x31600b===_0x5a60e1)break;else _0x2b97ab['push'](_0x2b97ab['shift']());}catch(_0x4f5045){_0x2b97ab['push'](_0x2b97ab['shift']());}}}(_0x18d9,0x3196e),Object[_0x4c0aa4(0x3cd)](exports,Symbol[_0x4c0aa4(0x473)],{'value':_0x4c0aa4(0x448)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x4c0aa4(0x1a9),ee={},te='ws://127.0.0.1:8000/universer-api/comb/connect',ne=0x4e20;function re(_0x496e8d){const _0x261951=_0x4c0aa4;return JSON['stringify'](_0x496e8d)[_0x261951(0x1c9)];}function h(_0x42c845){'@babel/helpers - typeof';const _0x4a810e=_0x4c0aa4;return h=typeof Symbol==_0x4a810e(0x2f2)&&typeof Symbol[_0x4a810e(0x377)]==_0x4a810e(0x34e)?function(_0x45d33e){return typeof _0x45d33e;}:function(_0x9d3865){const _0xc31e35=_0x4a810e;return _0x9d3865&&typeof Symbol==_0xc31e35(0x2f2)&&_0x9d3865['constructor']===Symbol&&_0x9d3865!==Symbol['prototype']?_0xc31e35(0x34e):typeof _0x9d3865;},h(_0x42c845);}function ie(_0x321abf,_0x2674f5){const _0x50b566=_0x4c0aa4;if(h(_0x321abf)!=_0x50b566(0x2b2)||!_0x321abf)return _0x321abf;var _0x2109c2=_0x321abf[Symbol['toPrimitive']];if(_0x2109c2!==void 0x0){var _0xdb40a=_0x2109c2[_0x50b566(0x475)](_0x321abf,_0x2674f5||_0x50b566(0x1c6));if(h(_0xdb40a)!=_0x50b566(0x2b2))return _0xdb40a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2674f5===_0x50b566(0x478)?String:Number)(_0x321abf);}function ae(_0x44c59b){const _0x5901f4=_0x4c0aa4;var _0x5a7dc7=ie(_0x44c59b,'string');return h(_0x5a7dc7)==_0x5901f4(0x34e)?_0x5a7dc7:_0x5a7dc7+'';}function g(_0x138fd4,_0x38410c,_0x38490d){const _0x12d926=_0x4c0aa4;return(_0x38410c=ae(_0x38410c))in _0x138fd4?Object[_0x12d926(0x3cd)](_0x138fd4,_0x38410c,{'value':_0x38490d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x138fd4[_0x38410c]=_0x38490d,_0x138fd4;}let oe=function(_0x4a02bb){const _0xf88653=_0x4c0aa4;return _0x4a02bb[_0xf88653(0x1e8)]=_0xf88653(0x1e8),_0x4a02bb[_0xf88653(0x43b)]=_0xf88653(0x43b),_0x4a02bb[_0xf88653(0x198)]='CONFLICT',_0x4a02bb[_0xf88653(0x4a1)]=_0xf88653(0x4a1),_0x4a02bb[_0xf88653(0x2ac)]=_0xf88653(0x2ac),_0x4a02bb['SOCKET_FAILED_RETRY']=_0xf88653(0x291),_0x4a02bb[_0xf88653(0x44f)]=_0xf88653(0x44f),_0x4a02bb['SUBMIT_CHANGESET_TIMEOUT']=_0xf88653(0x344),_0x4a02bb;}({});var _=class{constructor(){const _0x231d37=_0x4c0aa4;g(this,_0x231d37(0x1e9),new i[(_0x231d37(0x378))]()),g(this,_0x231d37(0x32b),this[_0x231d37(0x1e9)][_0x231d37(0x421)]());}[_0x4c0aa4(0x40a)](_0x58282f){this['_event$']['next'](_0x58282f);}},se=class{constructor(){const _0x3ee95f=_0x4c0aa4;g(this,'_commentUpdate$',new i['Subject']()),g(this,_0x3ee95f(0x1ed),this[_0x3ee95f(0x3a9)][_0x3ee95f(0x421)]());}[_0x4c0aa4(0x3bc)](_0x41767d){const _0x3dd5ea=_0x4c0aa4;this[_0x3dd5ea(0x3a9)][_0x3dd5ea(0x201)](_0x41767d);}};function v(_0x24bd5d,_0x5dbf11){return function(_0x578522,_0x121c63){_0x5dbf11(_0x578522,_0x121c63,_0x24bd5d);};}function y(_0x35e481,_0x21918a,_0x52087c,_0x2372be){const _0x1274c8=_0x4c0aa4;var _0x3a028a=arguments['length'],_0x33e686=_0x3a028a<0x3?_0x21918a:_0x2372be===null?_0x2372be=Object[_0x1274c8(0x2cf)](_0x21918a,_0x52087c):_0x2372be,_0x279b99;if(typeof Reflect==_0x1274c8(0x2b2)&&typeof Reflect[_0x1274c8(0x187)]=='function')_0x33e686=Reflect['decorate'](_0x35e481,_0x21918a,_0x52087c,_0x2372be);else{for(var _0x52e9a0=_0x35e481['length']-0x1;_0x52e9a0>=0x0;_0x52e9a0--)(_0x279b99=_0x35e481[_0x52e9a0])&&(_0x33e686=(_0x3a028a<0x3?_0x279b99(_0x33e686):_0x3a028a>0x3?_0x279b99(_0x21918a,_0x52087c,_0x33e686):_0x279b99(_0x21918a,_0x52087c))||_0x33e686);}return _0x3a028a>0x3&&_0x33e686&&Object[_0x1274c8(0x3cd)](_0x21918a,_0x52087c,_0x33e686),_0x33e686;}let b=class extends t['Disposable']{constructor(_0xf96e25,_0x11d0e2){const _0x1debc6=_0x4c0aa4;super(),this[_0x1debc6(0x294)]=_0xf96e25,this['_userManagerService']=_0x11d0e2,g(this,_0x1debc6(0x382),new Map()),g(this,'_roomCreated$',new i[(_0x1debc6(0x378))]()),this['disposeWithMe']((0x0,i[_0x1debc6(0x21f)])(this['_univerInstanceService'][_0x1debc6(0x499)](t[_0x1debc6(0x425)][_0x1debc6(0x286)])[_0x1debc6(0x331)]((0x0,s[_0x1debc6(0x1c8)])(_0x16581a=>_0x16581a[_0x1debc6(0x1ef)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x1debc6(0x425)]['UNIVER_DOC'])[_0x1debc6(0x331)]((0x0,s['map'])(_0x197eaa=>_0x197eaa[_0x1debc6(0x1ef)]())),this[_0x1debc6(0x294)][_0x1debc6(0x499)](t['UniverInstanceType'][_0x1debc6(0x244)])[_0x1debc6(0x331)]((0x0,s[_0x1debc6(0x1c8)])(_0x3fcfad=>_0x3fcfad[_0x1debc6(0x1ef)]())),this[_0x1debc6(0x294)][_0x1debc6(0x499)](t['UniverInstanceType'][_0x1debc6(0x2d5)])[_0x1debc6(0x331)]((0x0,s['map'])(_0x1832fc=>_0x1832fc[_0x1debc6(0x1ef)]())))[_0x1debc6(0x3a4)](_0x2cd6e8=>this[_0x1debc6(0x367)](_0x2cd6e8)));}[_0x4c0aa4(0x2fe)](_0x26304a){const _0x1e567a=_0x4c0aa4;return this[_0x1e567a(0x382)][_0x1e567a(0x447)](_0x26304a)?(0x0,i['of'])(this[_0x1e567a(0x382)][_0x1e567a(0x3a5)](_0x26304a)):this['_roomCreated$'][_0x1e567a(0x331)]((0x0,s[_0x1e567a(0x1c8)])(_0x56ce77=>{const _0x45f50d=_0x1e567a;if(_0x56ce77===_0x26304a)return this[_0x45f50d(0x382)][_0x45f50d(0x3a5)](_0x56ce77);}));}[_0x4c0aa4(0x487)](_0x4026d4){const _0xd755b=_0x4c0aa4;this[_0xd755b(0x239)][_0xd755b(0x487)](_0x4026d4);}[_0x4c0aa4(0x243)](){const _0x5bf1e8=_0x4c0aa4;return this[_0x5bf1e8(0x239)][_0x5bf1e8(0x243)]();}[_0x4c0aa4(0x18c)](_0x5596f0,_0x4f6bcc){const _0x17964d=_0x4c0aa4;let _0x46ab2e=this[_0x17964d(0x382)]['get'](_0x5596f0);_0x46ab2e||(_0x46ab2e=new ce(),this[_0x17964d(0x382)][_0x17964d(0x3d4)](_0x5596f0,_0x46ab2e),this[_0x17964d(0x482)]['next'](_0x5596f0)),_0x46ab2e[_0x17964d(0x18c)](_0x4f6bcc);}['removeMember'](_0x35eebb,_0x2b785a){const _0x7b3f12=_0x4c0aa4;let _0x168516=this['_roomMembers'][_0x7b3f12(0x3a5)](_0x35eebb);_0x168516&&_0x168516[_0x7b3f12(0x41f)](_0x2b785a);}[_0x4c0aa4(0x3b6)](_0x1f7884){const _0x8e2c05=_0x4c0aa4;return this[_0x8e2c05(0x382)]['get'](_0x1f7884);}[_0x4c0aa4(0x4ac)](_0x1d30ea,_0x4c9d4f){const _0x3be309=_0x4c0aa4;let _0x493b48=this[_0x3be309(0x382)]['get'](_0x1d30ea);if(_0x493b48)return _0x493b48[_0x3be309(0x4ac)](_0x4c9d4f);}['_removeRoom'](_0x47b094){const _0x4b2a8d=_0x4c0aa4;let _0x43c579=this[_0x4b2a8d(0x382)]['get'](_0x47b094);_0x43c579&&(_0x43c579[_0x4b2a8d(0x28d)](),this[_0x4b2a8d(0x382)][_0x4b2a8d(0x24b)](_0x47b094));}[_0x4c0aa4(0x28d)](){const _0x1e2384=_0x4c0aa4;this[_0x1e2384(0x382)]['forEach'](_0x1b2a9e=>_0x1b2a9e[_0x1e2384(0x28d)]()),this[_0x1e2384(0x382)][_0x1e2384(0x26a)](),this[_0x1e2384(0x482)][_0x1e2384(0x470)]();}};b=y([v(0x0,t[_0x4c0aa4(0x31d)]),v(0x1,(0x0,t['Inject'])(t[_0x4c0aa4(0x1c4)]))],b);var ce=class extends t[_0x4c0aa4(0x23f)]{constructor(..._0x139f79){const _0x4368d0=_0x4c0aa4;super(..._0x139f79),g(this,'_members',new Map()),g(this,'_members$',new i[(_0x4368d0(0x20e))](this[_0x4368d0(0x1d0)])),g(this,_0x4368d0(0x431),this['_members$'][_0x4368d0(0x421)]());}['dispose'](){const _0x3943a5=_0x4c0aa4;this[_0x3943a5(0x1d0)][_0x3943a5(0x26a)](),this[_0x3943a5(0x438)][_0x3943a5(0x470)]();}[_0x4c0aa4(0x18c)](_0x4477fe){const _0x5eb60c=_0x4c0aa4;this[_0x5eb60c(0x1d0)]['set'](_0x4477fe['memberID'],_0x4477fe),this['_emitMembers']();}[_0x4c0aa4(0x41f)](_0x25f065){const _0x28a5b3=_0x4c0aa4;this[_0x28a5b3(0x1d0)][_0x28a5b3(0x24b)](_0x25f065),this[_0x28a5b3(0x45b)]();}[_0x4c0aa4(0x4ac)](_0x1b4350){const _0x39a9fc=_0x4c0aa4;return this[_0x39a9fc(0x1d0)][_0x39a9fc(0x3a5)](_0x1b4350);}[_0x4c0aa4(0x4a3)](){const _0x55aa70=_0x4c0aa4;return Array['from'](this[_0x55aa70(0x1d0)][_0x55aa70(0x2e2)]());}['_emitMembers'](){const _0x15e861=_0x4c0aa4;this[_0x15e861(0x438)][_0x15e861(0x201)](this[_0x15e861(0x1d0)]);}};function le(_0x5070e8,_0x24f18d){const _0x4686bf=_0x4c0aa4;if(de(_0x5070e8))return _0x24f18d;if(_0x24f18d['eventID']===e['CollaborationEvent'][_0x4686bf(0x2bf)]){var _0x192c93;let _0x23cb57=ge(_0x5070e8),_0x2f81d2=_0x24f18d;return{..._0x2f81d2,'data':{..._0x2f81d2['data'],'unitID':_0x5070e8[_0x4686bf(0x1cb)][_0x4686bf(0x211)],'unitType':(_0x192c93=_0x5070e8['target'][_0x4686bf(0x430)])==null?_0x2f81d2[_0x4686bf(0x233)]['unitType']:_0x192c93,'changeset':_0x23cb57['toRemote'](_0x2f81d2[_0x4686bf(0x233)][_0x4686bf(0x350)],_e(_0x5070e8))}};}if(_0x24f18d['eventID']===e['CollaborationEvent'][_0x4686bf(0x485)]){var _0x9763bc;let _0x1734bf=_0x24f18d;return{..._0x1734bf,'data':{..._0x1734bf[_0x4686bf(0x233)],'unitID':_0x5070e8[_0x4686bf(0x1cb)][_0x4686bf(0x211)],'unitType':(_0x9763bc=_0x5070e8['target'][_0x4686bf(0x430)])==null?_0x1734bf['data'][_0x4686bf(0x430)]:_0x9763bc}};}return _0x24f18d;}function ue(_0x28ce2f,_0x4f847d){const _0x5dd897=_0x4c0aa4;if(de(_0x28ce2f))return[_0x4f847d];switch(_0x4f847d[_0x5dd897(0x23b)]){case e[_0x5dd897(0x439)][_0x5dd897(0x3e5)]:return[fe(_0x28ce2f,_0x4f847d)];case e[_0x5dd897(0x439)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x28ce2f,_0x4f847d)];case e[_0x5dd897(0x439)][_0x5dd897(0x219)]:return[pe(_0x28ce2f,_0x4f847d)];default:return[_0x4f847d];}}function de(_0x336e7a){const _0x38cdc=_0x4c0aa4;return _0x336e7a[_0x38cdc(0x1cb)][_0x38cdc(0x1dc)]==null&&_0x336e7a[_0x38cdc(0x1cb)][_0x38cdc(0x211)]===_0x336e7a[_0x38cdc(0x255)]&&!_0x336e7a[_0x38cdc(0x350)];}function fe(_0x3e2a38,_0x41bbb1){const _0x146641=_0x4c0aa4;return{..._0x41bbb1,'data':(0x0,e[_0x146641(0x3c8)])(he(_0x3e2a38,(0x0,e[_0x146641(0x4ab)])(_0x41bbb1[_0x146641(0x233)])))};}function pe(_0x3cb8b0,_0x29b9ee){return{..._0x29b9ee,'data':he(_0x3cb8b0,_0x29b9ee['data'])};}function me(_0x279bf5,_0x1a8ffa){const _0x20c130=_0x4c0aa4;let _0x68470b=_0x1a8ffa['data'];return{..._0x1a8ffa,'data':{..._0x68470b,'changesets':_0x68470b[_0x20c130(0x1dd)]['map'](_0x484d3a=>(0x0,e[_0x20c130(0x3c8)])(he(_0x279bf5,(0x0,e[_0x20c130(0x4ab)])(_0x484d3a))))}};}function he(_0x324cf8,_0x909aa7){const _0x43f7b2=_0x4c0aa4;return ge(_0x324cf8)[_0x43f7b2(0x232)](_0x909aa7,_e(_0x324cf8));}function ge(_0xc706aa){const _0x403b0e=_0x4c0aa4;if(!_0xc706aa[_0x403b0e(0x350)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0xc706aa[_0x403b0e(0x350)];}function _e(_0x2e3d35){const _0x1caf39=_0x4c0aa4;return{'localUnitId':_0x2e3d35[_0x1caf39(0x255)],'unitType':_0x2e3d35['unitType'],'target':_0x2e3d35[_0x1caf39(0x1cb)]};}let ve=function(_0x55c5dd){const _0x4c8e17=_0x4c0aa4;return _0x55c5dd[_0x55c5dd['IDLE']=0x0]='IDLE',_0x55c5dd[_0x55c5dd[_0x4c8e17(0x26e)]=0x1]=_0x4c8e17(0x26e),_0x55c5dd[_0x55c5dd[_0x4c8e17(0x2de)]=0x2]=_0x4c8e17(0x2de),_0x55c5dd[_0x55c5dd[_0x4c8e17(0x3ea)]=0x3]=_0x4c8e17(0x3ea),_0x55c5dd;}({});const ye={[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x2bc)]]:_0x4c0aa4(0x2d8),[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x27e)]]:'session.room-full',[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x30c)]]:'session.room-not-exists',[a[_0x4c0aa4(0x3f3)][_0x4c0aa4(0x29f)]]:'session.room-permission-denied',[a[_0x4c0aa4(0x3f3)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x4c0aa4(0x35a)};let x=class extends t['RxDisposable']{get[_0x4c0aa4(0x21e)](){const _0x2eacf8=_0x4c0aa4;return this[_0x2eacf8(0x357)]['getValue']();}constructor(_0x4931c8,_0x347964,_0x4d0a89,_0x4c22c1,_0x32ce0e,_0x1bb37a,_0x38cb9f,_0x1a66a7){const _0x538553=_0x4c0aa4;super(),this[_0x538553(0x320)]=_0x4931c8,this[_0x538553(0x387)]=_0x4d0a89,this[_0x538553(0x2a2)]=_0x4c22c1,this[_0x538553(0x203)]=_0x32ce0e,this[_0x538553(0x472)]=_0x1bb37a,this[_0x538553(0x34a)]=_0x38cb9f,this[_0x538553(0x2ea)]=_0x1a66a7,g(this,_0x538553(0x357),new i['BehaviorSubject'](0x0)),g(this,_0x538553(0x457),this[_0x538553(0x357)][_0x538553(0x421)]()),g(this,_0x538553(0x1e9),new i[(_0x538553(0x378))]()),g(this,'event$',this[_0x538553(0x1e9)][_0x538553(0x421)]()),g(this,_0x538553(0x347),void 0x0),g(this,_0x538553(0x48a),void 0x0),g(this,_0x538553(0x2ce),void 0x0),g(this,_0x538553(0x2ba),!0x1),g(this,_0x538553(0x321),null),this[_0x538553(0x2ba)]=!!this[_0x538553(0x2ea)],_0x347964[_0x538553(0x331)]((0x0,i[_0x538553(0x429)])(this[_0x538553(0x428)]))[_0x538553(0x3a4)](_0x543080=>{const _0x2d9461=_0x538553;if(_0x543080!==void 0x0){if(this[_0x2d9461(0x347)]=_0x543080,_0x543080)this['_joinRoom'](_0x543080),this[_0x2d9461(0x48a)]=_0x543080[_0x2d9461(0x1ae)][_0x2d9461(0x3a4)](_0x34b719=>{const _0x63c50b=_0x2d9461;_0x34b719['routeKey']===this[_0x63c50b(0x320)][_0x63c50b(0x1cb)]['unitId']&&this['_onCombEvent'](_0x34b719);});else{var _0x4014fc;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x2d9461(0x357)][_0x2d9461(0x201)](0x2),(_0x4014fc=this[_0x2d9461(0x48a)])==null||_0x4014fc[_0x2d9461(0x2dc)](),this['_socketMessageSubscription']=null;}}});}[_0x4c0aa4(0x323)](){const _0x43f56f=_0x4c0aa4;var _0x14d734,_0x370882;return(_0x14d734=(_0x370882=this[_0x43f56f(0x347)])==null?void 0x0:_0x370882['memberID'])==null?null:_0x14d734;}[_0x4c0aa4(0x28d)](){const _0x2e494d=_0x4c0aa4;super[_0x2e494d(0x28d)](),this['close'](),this['dispose$'][_0x2e494d(0x201)](),this[_0x2e494d(0x428)][_0x2e494d(0x470)]();}['close'](){const _0x326dd6=_0x4c0aa4;var _0x276783;this[_0x326dd6(0x25a)](),(_0x276783=this[_0x326dd6(0x347)])==null||_0x276783[_0x326dd6(0x29c)]({'cmd':a[_0x326dd6(0x2db)][_0x326dd6(0x1da)],'data':{'roomID':this[_0x326dd6(0x320)][_0x326dd6(0x1cb)]['unitId']}}),this['_event$'][_0x326dd6(0x470)](),this['_sessionStatus$'][_0x326dd6(0x470)]();}[_0x4c0aa4(0x34d)](_0x5b9b6d){const _0x3fc0a3=_0x4c0aa4;_0x5b9b6d[_0x3fc0a3(0x1ac)]===a[_0x3fc0a3(0x2db)][_0x3fc0a3(0x383)]?this['_onJoinRoomEvent'](_0x5b9b6d):_0x5b9b6d[_0x3fc0a3(0x1ac)]===a[_0x3fc0a3(0x2db)][_0x3fc0a3(0x45f)]&&this[_0x3fc0a3(0x2cb)](_0x5b9b6d);}[_0x4c0aa4(0x1fc)](_0x8322fb){const _0x3858c8=_0x4c0aa4;this[_0x3858c8(0x357)][_0x3858c8(0x201)](0x1),_0x8322fb[_0x3858c8(0x29c)]({'cmd':a['CombCmd'][_0x3858c8(0x383)],'routeKey':this[_0x3858c8(0x320)][_0x3858c8(0x1cb)][_0x3858c8(0x211)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3858c8(0x320)]['target'][_0x3858c8(0x211)]}]}});}[_0x4c0aa4(0x40e)](_0x332342){const _0x4c4b44=_0x4c0aa4;var _0x311716;if(_0x332342[_0x4c4b44(0x403)]in ye){this['_collaborationUIEventService'][_0x4c4b44(0x40a)]({'id':_0x4c4b44(0x2ac),'data':ye[_0x332342[_0x4c4b44(0x403)]]}),this['_sessionStatus$'][_0x4c4b44(0x201)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x13a81c=(_0x311716=_0x332342[_0x4c4b44(0x233)][_0x4c4b44(0x3f7)][this[_0x4c4b44(0x320)][_0x4c4b44(0x1cb)]['unitId']])==null?void 0x0:_0x311716['members'];_0x13a81c&&_0x13a81c[_0x4c4b44(0x1a5)](_0x200fdc=>this['_memberService'][_0x4c4b44(0x18c)](this['_identity'][_0x4c4b44(0x255)],_0x200fdc));}[_0x4c0aa4(0x2cb)](_0x2026e9){const _0x3b9375=_0x4c0aa4;try{let _0x3d4b37=ue(this[_0x3b9375(0x320)],_0x2026e9[_0x3b9375(0x233)]);for(let _0x13dd5b of _0x3d4b37)switch(_0x13dd5b[_0x3b9375(0x23b)]){case e[_0x3b9375(0x439)][_0x3b9375(0x3f1)]:this[_0x3b9375(0x1c3)](_0x13dd5b),this[_0x3b9375(0x1e9)]['next'](_0x13dd5b);break;case e[_0x3b9375(0x439)]['USERS_LEAVE']:this[_0x3b9375(0x249)](_0x13dd5b),this[_0x3b9375(0x1e9)][_0x3b9375(0x201)](_0x13dd5b);break;case e[_0x3b9375(0x439)][_0x3b9375(0x343)]:case e['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:this[_0x3b9375(0x44c)](),this[_0x3b9375(0x358)](),this[_0x3b9375(0x1e9)][_0x3b9375(0x201)](_0x13dd5b);break;case e[_0x3b9375(0x439)]['MSG_FOR_ERROR']:this['_logService'][_0x3b9375(0x338)](_0x3b9375(0x443)+JSON[_0x3b9375(0x4a7)](_0x13dd5b)),this[_0x3b9375(0x1e9)]['next'](_0x13dd5b);break;case e[_0x3b9375(0x439)]['COMMENT_UPDATE']:this[_0x3b9375(0x472)]['onCommentUpdate'](_0x13dd5b[_0x3b9375(0x233)]),this[_0x3b9375(0x1e9)][_0x3b9375(0x201)](_0x13dd5b);break;default:this[_0x3b9375(0x1e9)]['next'](_0x13dd5b);}}catch(_0x2a4434){this[_0x3b9375(0x387)]['error'](_0x2a4434,_0x2026e9);}}[_0x4c0aa4(0x1c3)](_0x516393){const _0x1a1fb2=_0x4c0aa4;this[_0x1a1fb2(0x203)][_0x1a1fb2(0x18c)](this[_0x1a1fb2(0x320)][_0x1a1fb2(0x255)],_0x516393[_0x1a1fb2(0x233)]);}[_0x4c0aa4(0x249)](_0x24ba69){const _0x18b2c6=_0x4c0aa4;this[_0x18b2c6(0x203)][_0x18b2c6(0x41f)](this[_0x18b2c6(0x320)][_0x18b2c6(0x255)],_0x24ba69[_0x18b2c6(0x233)][_0x18b2c6(0x3fc)]);}async[_0x4c0aa4(0x29c)](_0x14f991,_0x8b7816){const _0x1f531a=_0x4c0aa4;if(this['sessionStatus']!==0x3||!this[_0x1f531a(0x347)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x1a62cc=le(this[_0x1f531a(0x320)],_0x14f991);_0x1a62cc[_0x1f531a(0x23b)]===e[_0x1f531a(0x439)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x1f531a(0x1a8)](_0x1a62cc)),this['_socket'][_0x1f531a(0x29c)]({'cmd':a[_0x1f531a(0x2db)]['INGEST'],'routeKey':this['_identity'][_0x1f531a(0x1cb)][_0x1f531a(0x211)],'routeType':'','data':_0x1a62cc});}catch(_0x16e8b7){this[_0x1f531a(0x387)]['error'](_0x16e8b7);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4c3d7b=_0x4c0aa4;var _0x33358d;this[_0x4c3d7b(0x2ce)]=setTimeout(()=>{const _0x4f09fa=_0x4c3d7b;this[_0x4f09fa(0x2ce)]=null,this[_0x4f09fa(0x34a)][_0x4f09fa(0x40a)]({'id':_0x4f09fa(0x344)});},(_0x33358d=this['_configService'][_0x4c3d7b(0x2ee)](_0x4c3d7b(0x22b)))==null?ne:_0x33358d);}['_clearCollaborationTimeoutTimer'](){const _0x561342=_0x4c0aa4;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x561342(0x2ce)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x201657){const _0xa932d9=_0x4c0aa4;if(!this[_0xa932d9(0x2ba)])return;let {data:_0x4750d8}=_0x201657,{unitID:_0x3358bd,changeset:_0x1e687d}=_0x4750d8,{mutations:_0xb917a5,type:_0x4e89c8}=_0x1e687d;this[_0xa932d9(0x321)]={'unitId':_0x3358bd,'type':_0x4e89c8,'startTime':performance[_0xa932d9(0x471)](),'stopTime':0x0,'duration':0x0,'size':re(_0xb917a5)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x409e63=_0x4c0aa4;if(this[_0x409e63(0x2ba)]){if(!this[_0x409e63(0x321)]){this['_logService']['error'](_0x409e63(0x28a),_0x409e63(0x48e));return;}this[_0x409e63(0x321)][_0x409e63(0x3f8)]=performance[_0x409e63(0x471)](),this[_0x409e63(0x321)][_0x409e63(0x37a)]=this[_0x409e63(0x321)][_0x409e63(0x3f8)]-this[_0x409e63(0x321)]['startTime'],this[_0x409e63(0x2ea)][_0x409e63(0x444)](_0x409e63(0x3a2),this[_0x409e63(0x321)]),this[_0x409e63(0x321)]=null;}}[_0x4c0aa4(0x25a)](){const _0x109928=_0x4c0aa4;this[_0x109928(0x321)]=null;}};x=y([v(0x2,t[_0x4c0aa4(0x2f9)]),v(0x3,t[_0x4c0aa4(0x4a5)]),v(0x4,(0x0,t['Inject'])(b)),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(se)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x4c0aa4(0x37d)])(o[_0x4c0aa4(0x20d)]))],x);const S=(0x0,t[_0x4c0aa4(0x35d)])(_0x4c0aa4(0x3e4));function be(_0x12277a){return'unit-cache-'+_0x12277a;}function xe(_0x1091e4){const _0x5bdd41=_0x4c0aa4;let {unitID:_0x1ab4c3,mutations:_0x2656e2}=_0x1091e4;return{'unitId':_0x1ab4c3,'subUnitId':_0x2656e2[_0x5bdd41(0x1c9)]>0x0?_0x2656e2[0x0]['params']['subUnitId']:null};}let C=class{constructor(_0xb61352,_0xdc248d,_0x325e4e){const _0x1e12f3=_0x4c0aa4;this['_injector']=_0xb61352,this[_0x1e12f3(0x2f4)]=_0xdc248d,this[_0x1e12f3(0x3de)]=_0x325e4e;}[_0x4c0aa4(0x270)](_0x287368){const _0x57ad10=_0x4c0aa4;var _0x5c8a00,_0x52b589;let _0x5d913e=this[_0x57ad10(0x1fd)][_0x57ad10(0x3a5)](r['SheetsSelectionsService']),{unitId:_0x11a41f,subUnitId:_0xca1688}=xe(_0x287368),_0x46d9a7=_0x5d913e==null?void 0x0:_0x5d913e[_0x57ad10(0x3d5)](_0x11a41f)[_0x57ad10(0x36d)](),_0x4dd6d9=(_0x5c8a00=this[_0x57ad10(0x3de)][_0x57ad10(0x495)](_0x11a41f))==null||(_0x5c8a00=_0x5c8a00[_0x57ad10(0x21b)]())==null?void 0x0:_0x5c8a00[_0x57ad10(0x2c6)]();if(_0x46d9a7[_0x57ad10(0x1c9)]===0x0||!_0x11a41f||!_0xca1688)return;let _0x26ff90=[{'id':r[_0x57ad10(0x47d)]['id'],'params':{'unitId':_0x11a41f,'subUnitId':_0x4dd6d9,'selections':t[_0x57ad10(0x290)][_0x57ad10(0x311)](_0x46d9a7)}}],_0x34c162=this[_0x57ad10(0x2f4)]['transformMutationsWithChangeset'](_0x287368,_0x26ff90);if(!(0x0,e[_0x57ad10(0x309)])(_0x34c162))throw _0x34c162[_0x57ad10(0x338)];let _0x5a6ea8=(_0x52b589=_0x34c162[_0x57ad10(0x465)][0x0])==null||(_0x52b589=_0x52b589['params'])==null?void 0x0:_0x52b589[_0x57ad10(0x215)];if(Array['isArray'](_0x5a6ea8)&&_0x5a6ea8[_0x57ad10(0x1c9)]){if(_0x5a6ea8[_0x57ad10(0x1c9)]===_0x26ff90[0x0][_0x57ad10(0x31e)][_0x57ad10(0x215)][_0x57ad10(0x1c9)]&&_0x5a6ea8[_0x57ad10(0x31a)]((_0x4a2477,_0x1e7acb)=>t[_0x57ad10(0x26c)][_0x57ad10(0x490)](_0x4a2477[_0x57ad10(0x2a8)],_0x26ff90[0x0][_0x57ad10(0x31e)][_0x57ad10(0x215)][_0x1e7acb][_0x57ad10(0x2a8)])))return;this[_0x57ad10(0x1fd)][_0x57ad10(0x3a5)](t[_0x57ad10(0x416)])['executeCommand'](r[_0x57ad10(0x47d)]['id'],{'unitId':_0x11a41f,'subUnitId':_0x4dd6d9,'selections':_0x5a6ea8});}}};function _0x290d(_0x38f27e,_0x43c926){_0x38f27e=_0x38f27e-0x185;const _0x18d9a2=_0x18d9();let _0x290d4f=_0x18d9a2[_0x38f27e];return _0x290d4f;}C=y([v(0x0,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x1,e[_0x4c0aa4(0x34f)]),v(0x2,t['IUniverInstanceService'])],C);const w=(0x0,t[_0x4c0aa4(0x35d)])(_0x4c0aa4(0x400));let Se=function(_0x4318d5){const _0x4ed839=_0x4c0aa4;return _0x4318d5[_0x4318d5[_0x4ed839(0x468)]=0x0]=_0x4ed839(0x468),_0x4318d5[_0x4318d5[_0x4ed839(0x3d3)]=0x1]='OTHER_CLIENTS_EDITING',_0x4318d5;}({});function Ce(_0x1ef153){const _0x32bc22=_0x4c0aa4;var _0x23d9f5;return!!((_0x23d9f5=_0x1ef153[_0x32bc22(0x31e)])!=null&&_0x23d9f5[_0x32bc22(0x228)]);}const we=new Set([r[_0x4c0aa4(0x497)]['id']]),Te=new Set([c['AddSlidePageMutation']['id'],c['EnsureSlideMasterPageMutation']['id'],c['MoveSlidePageMutation']['id'],c[_0x4c0aa4(0x481)]['id']]);function Ee(_0x1e7f86,_0x4eadee=we){const _0x8a4ed3=_0x4c0aa4;let _0x3d5c4c=[];for(let _0x3b82fb of _0x1e7f86){if(_0x4eadee[_0x8a4ed3(0x447)](_0x3b82fb['id'])){if(_0x3d5c4c[_0x8a4ed3(0x1c9)]>0x0)break;_0x3d5c4c[_0x8a4ed3(0x1e4)](_0x3b82fb);break;}if(Ce(_0x3b82fb)){if(_0x3d5c4c[_0x8a4ed3(0x1c9)]>0x0)break;_0x3d5c4c['push'](_0x3b82fb);break;}_0x3d5c4c[_0x8a4ed3(0x1e4)](_0x3b82fb);}return _0x3d5c4c;}function T(_0x24b2c1,_0x35d85c,_0x4177b0,_0x4fd8e8,_0x1b6d5e){const _0x5460c8=_0x4c0aa4;var _0x31ddeb,_0x16c2bb,_0x495a06,_0x50b459;let _0x2e24f2=Ee(_0x24b2c1),_0x218416=(_0x31ddeb=(_0x16c2bb=_0x1b6d5e['getCurrentUser']())==null?void 0x0:_0x16c2bb[_0x5460c8(0x43e)])==null?_0x5460c8(0x269):_0x31ddeb,_0x222ba6=(_0x495a06=(_0x50b459=_0x1b6d5e[_0x5460c8(0x243)]())==null?void 0x0:_0x50b459['memberID'])==null?'unknown':_0x495a06;return{'changeset':{'unitID':_0x35d85c,'type':(0x0,e[_0x5460c8(0x3b7)])(_0x4177b0['getUnitType'](_0x35d85c)),'baseRev':_0x4fd8e8['getCurrentRevOfUnit'](_0x35d85c),'revision':0x0,'userID':_0x218416,'memberID':_0x222ba6,'mutations':_0x2e24f2},'pendingMutations':_0x24b2c1[_0x5460c8(0x44d)](_0x2e24f2['length'])};}function De(_0x3c90fb,_0x520fcb,_0x57c4bc,_0x41636d,_0x176653){const _0x20c5ea=_0x4c0aa4;var _0x242797,_0x506888,_0x3ae028,_0x349281;let _0x5bce61=Ee(_0x3c90fb,Te),_0x1338e8=(_0x242797=(_0x506888=_0x176653[_0x20c5ea(0x243)]())==null?void 0x0:_0x506888[_0x20c5ea(0x43e)])==null?'unknown':_0x242797,_0x366633=(_0x3ae028=(_0x349281=_0x176653[_0x20c5ea(0x243)]())==null?void 0x0:_0x349281[_0x20c5ea(0x3fc)])==null?_0x20c5ea(0x269):_0x3ae028;return{'changeset':{'unitID':_0x520fcb,'type':(0x0,e[_0x20c5ea(0x3b7)])(_0x57c4bc['getUnitType'](_0x520fcb)),'baseRev':_0x41636d[_0x20c5ea(0x25c)](_0x520fcb),'revision':0x0,'userID':_0x1338e8,'memberID':_0x366633,'mutations':_0x5bce61},'pendingMutations':_0x3c90fb[_0x20c5ea(0x44d)](_0x5bce61[_0x20c5ea(0x1c9)])};}function Oe(_0x2f5159,_0x79eefb,_0x12cc15,_0x1345e5,_0x52425b){const _0x3ae686=_0x4c0aa4;var _0x2c8250,_0x484b16,_0x247994,_0x196bb6;let _0x51720c=_0x2f5159[_0x3ae686(0x464)]((_0xb92f75,_0x114100)=>{const _0x77410a=_0x3ae686;let _0x1afcdf=_0xb92f75[_0xb92f75[_0x77410a(0x1c9)]-0x1],{id:_0x55b4a8}=_0x1afcdf==null?{}:_0x1afcdf,{id:_0x214462,type:_0x4a3234}=_0x114100,_0x1421c7=_0x114100[_0x77410a(0x31e)];if(_0x55b4a8&&_0x55b4a8!==_0x214462)throw Error(_0x77410a(0x334)+_0x55b4a8+_0x77410a(0x384)+_0x214462+'.');if(!_0x1afcdf)return[{'id':_0x214462,'type':_0x4a3234,'params':{'unitId':_0x1421c7[_0x77410a(0x211)],'textRanges':_0x1421c7[_0x77410a(0x345)],'actions':_0x1421c7['actions']}}];let _0x59f924=_0x1afcdf['params'];return ke(_0x59f924,_0x1421c7)?[..._0xb92f75[_0x77410a(0x44d)](0x0,-0x1),{..._0x1afcdf,'id':_0x214462,'type':_0x4a3234,'params':{'unitId':_0x1421c7[_0x77410a(0x211)],'textRanges':_0x1421c7['textRanges'],'actions':t[_0x77410a(0x361)]['compose'](_0x59f924[_0x77410a(0x28c)],_0x1421c7[_0x77410a(0x28c)])}}]:[..._0xb92f75,{'id':_0x214462,'type':_0x4a3234,'params':{'unitId':_0x1421c7[_0x77410a(0x211)],'textRanges':_0x1421c7[_0x77410a(0x345)],'actions':_0x1421c7[_0x77410a(0x28c)]}}];},[]),_0x1c1d0a=(_0x2c8250=(_0x484b16=_0x52425b[_0x3ae686(0x243)]())==null?void 0x0:_0x484b16[_0x3ae686(0x43e)])==null?'unknown':_0x2c8250,_0x31841d=(_0x247994=(_0x196bb6=_0x52425b[_0x3ae686(0x243)]())==null?void 0x0:_0x196bb6['memberID'])==null?_0x3ae686(0x269):_0x247994;return{'changeset':{'unitID':_0x79eefb,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x12cc15[_0x3ae686(0x2d9)](_0x79eefb)),'baseRev':_0x1345e5[_0x3ae686(0x25c)](_0x79eefb),'revision':0x0,'userID':_0x1c1d0a,'memberID':_0x31841d,'mutations':_0x51720c},'pendingMutations':_0x2f5159[_0x3ae686(0x44d)](_0x2f5159['length'])};}function ke(_0x1099da,_0x3e0b91){const _0x77d2cb=_0x4c0aa4;return!Ae(_0x1099da)&&!Ae(_0x3e0b91)&&je(_0x1099da[_0x77d2cb(0x28c)],_0x3e0b91[_0x77d2cb(0x28c)]);}function Ae(_0x1c5463){const _0x53288d=_0x4c0aa4;return _0x1c5463[_0x53288d(0x1ff)]!==void 0x0;}function je(_0x879565,_0x387692){return Me(_0x879565)&&Me(_0x387692)&&!Pe(_0x879565)&&!Pe(_0x387692)&&!Ne(_0x879565)&&!Ne(_0x387692);}function Me(_0x2c0049){const _0xeac86b=_0x4c0aa4;return Fe(_0x2c0049)[_0xeac86b(0x45d)](_0x4cdb53=>E(_0x4cdb53)&&_0x4cdb53['et']===_0xeac86b(0x2e8));}function Ne(_0x3b4a4d){const _0x280c76=_0x4c0aa4;return Fe(_0x3b4a4d)[_0x280c76(0x45d)](_0x32917f=>Array[_0x280c76(0x2a0)](_0x32917f)||typeof _0x32917f==_0x280c76(0x478)||typeof _0x32917f==_0x280c76(0x29b));}function Pe(_0x3b2bff){const _0x27ceb4=_0x4c0aa4;return Fe(_0x3b2bff)[_0x27ceb4(0x45d)](_0x16e3a8=>!E(_0x16e3a8)||_0x16e3a8['et']!==_0x27ceb4(0x2e8)||!Array[_0x27ceb4(0x2a0)](_0x16e3a8['e'])?!0x1:_0x16e3a8['e']['some'](_0x2b179b=>!E(_0x2b179b)||!E(_0x2b179b[_0x27ceb4(0x1be)])?!0x1:Object[_0x27ceb4(0x32a)]['hasOwnProperty'][_0x27ceb4(0x475)](_0x2b179b[_0x27ceb4(0x1be)],_0x27ceb4(0x3e3))||Object[_0x27ceb4(0x32a)][_0x27ceb4(0x256)][_0x27ceb4(0x475)](_0x2b179b[_0x27ceb4(0x1be)],_0x27ceb4(0x37f))||Object['prototype'][_0x27ceb4(0x256)]['call'](_0x2b179b[_0x27ceb4(0x1be)],_0x27ceb4(0x26d))));}function Fe(_0x41fd33){const _0x4e9481=_0x4c0aa4;if(!Array[_0x4e9481(0x2a0)](_0x41fd33))return[];let _0x2ad244=_0x41fd33[_0x4e9481(0x1a7)](_0x4e9481(0x1be))?_0x41fd33:_0x41fd33[_0x4e9481(0x19b)](_0x191274=>Array[_0x4e9481(0x2a0)](_0x191274)&&_0x191274['includes']('body'));if(!Array[_0x4e9481(0x2a0)](_0x2ad244))return[];let _0x1d6f16=_0x2ad244[_0x4e9481(0x3c5)]('body');return _0x1d6f16===-0x1?[]:_0x2ad244[_0x4e9481(0x44d)](_0x1d6f16+0x1);}function E(_0x5e42f2){const _0x5467e0=_0x4c0aa4;return typeof _0x5e42f2=='object'&&!!_0x5e42f2&&!Array[_0x5467e0(0x2a0)](_0x5e42f2);}function Ie(_0x1917a1,_0x3b4cf8){const _0xac35ce=_0x4c0aa4;let _0x2e34fe=new i[(_0xac35ce(0x2d2))](0x1);return setTimeout(()=>_0x2e34fe[_0xac35ce(0x201)](_0x3b4cf8),_0x1917a1),_0x2e34fe[_0xac35ce(0x421)]()[_0xac35ce(0x331)]((0x0,i[_0xac35ce(0x1d8)])(0x1));}var Le,Re,ze;let Be=function(_0x18a040){const _0x78fa29=_0x4c0aa4;return _0x18a040[_0x78fa29(0x327)]=_0x78fa29(0x35b),_0x18a040['SYNCED']=_0x78fa29(0x234),_0x18a040['PENDING']=_0x78fa29(0x1ce),_0x18a040['AWAITING']='awaiting',_0x18a040[_0x78fa29(0x3c2)]=_0x78fa29(0x369),_0x18a040[_0x78fa29(0x46a)]=_0x78fa29(0x3b8),_0x18a040['CONFLICT']=_0x78fa29(0x193),_0x18a040['OFFLINE']=_0x78fa29(0x1d4),_0x18a040;}({});function _0x18d9(){const _0x164740=['transformChangesets','mergeOverrideWithDependencies','isTransformMutationsWithChangesetFailure','_initMergeInterceptor','href','/universer-api/authz','fetchMissingChangesets','add','open$','_imageSourceCache','fromCollab','uuidv4','_onOffline','_clearTimeoutTimer','liveShareNewHost','/universer-api/uniscript','UPDATE_CURSOR','_isPermissionRej','_compressMutationService','_waitForHeartbeatResponse','_getCurrentRevision','min','collaboration_new_changeset','/universer-api/stream/file/upload','subscribe','get','[CollaborationUndoRedoService]','updatePermissionObjEvent','_onRemoteRetry','_commentUpdate$','snapshot','batchAllowed','confirm','COMPRESS_MUTATION_SEND','30BnnIlS','_handlerCallback','onSendChangeset','revision','requestParams','_updateLocalCache','_status$','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getRoom','mapDocumentTypeToUniverInstanceType','fetch_missing','ICollaborationClientAdapterService','CollaborationStatus','onTransformState','onCommentUpdate','onMutationExecutedForCollab','error$','_handler','enableOfflineEditing','socketMessageSubscription','AWAITING_WITH_PENDING','_getDownloadEndpointURL','DocStateChangeManagerService','indexOf','catch','SessionStatus','parseChangesetToProtocol','RETRY_CONNECTING_MAX_COUNT','FileId','AuthzIoHttpService','_onFetchMissResult','defineProperty','_clearLocalCache','getUnitStatus$','_collaborationSessionService','_transformUndoredo','onSyncEditingCollabCursor','OTHER_CLIENTS_EDITING','set','getWorkbookSelections','originalMeta','_getUploadFileURL','/-/object/-/batch_allowed','_clearHeartbeatTimer','_transformRemoteChangesetByStateCache','@univerjs-pro/collaboration-client','INetworkConditionService','_transformStateCache','_instanceService','OfflineState','awaitingChangeset','snapshotServerUrl','_pendingSessions','tables','collaboration-client.local-cache-service','NEW_CHANGESETS','toggleOnline','splice','c1Prime','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','ONLINE','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','FileSource','_getRedoStack','_permissionService','result','MentionType','USERS_ENTER','liveShareOperation','CmdRspCode','LIVESHARE_NEW_HOST','rev','HEARTBEAT_INTERVAL','roomInfos','stopTime','_httpService','DisposableCollection','LOCAL_CACHE_INTERVAL_KEY','memberID','docStateChange$','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','online$','univer-pro.collaboration-client.single-active-unit-service','_substituteUndoStack','/object','code','_getUndoStack','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_handleRemoteChangesets','_replaceFileID','createUniverCollaborationAdapter','maxSize','emitEvent','disableLocalCache','getSnapshotAPIPath','_snapshotServerService','_onJoinRoomEvent','onlyLocal','_createSession','_incrementRevisionNumber','_getConfig','767220NbRFUk','readAsDataURL','getCfgEnableObjInherit','ICommandService','_toggleOnline','textEncoder','_undoRedoService','/new_changes','_localeService','UUID','candidateSocket','/universer-api/snapshot','removeMember','_adapter','asObservable','URL','loadBoard','_listenToNetworkCondition','UniverInstanceType','unitID','UniverCollaborationPlugin','dispose$','takeUntil','[UniverCollaborationClientPlugin]','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','src','interceptor','resolve','_singleActiveUnitService','unitType','members$','sort','_unitLoaded$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','roles','_updateStatus','origin','_members$','CollaborationEvent','PendingState','PERMISSION_DENIED','/universer-api/user/session-ticket','CHANGESET_REJ','userID','_acknowledgedAwaitingRevision','_commandService','subject','_initUnitPermissionChange','save\x20fail\x20reason\x20is\x20','capture','editingUnit','[FetchMissState]','has','Module','objectType','_createInitialStateImpl','_disableEditing','_stopTelemetryCollaborationNewChangeset','slice','_clearScheduledTask','SOCKET_FAILED','_getSendChangesetTimeout','_showConflictNotification','SNAPSHOT_URL_KEY','headers','collaborators','append','put','sessionStatus$','session','deserializeToCombResponse','attachment','_emitMembers','1.0.0-alpha.7','some','state','RECV','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','startsWith','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_substituteRedoStack','reduce','m2Prime','b64DecodeUnicode','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','NO_OTHER_CLIENTS_EDITING','avatar','FETCH_MISS','_tryReconnect','BoardCollaborationEntity','saveImage','[OfflineState]:\x20received\x20rejection.','SheetPermissionInitController','complete','now','_commentService','toStringTag','_initDependencies','call','HELLO','\x20in\x20_schedule.','string','_getAPIPrefix','ERROR_IMAGE','_applyRemoteChangeset','isTransformChangesetsSuccess','SetSelectionsOperation','createInstance','putCollaborators','CollaborationSessionService','RemoveSlidePageMutation','_roomCreated$','failed\x20to\x20apply\x20missed\x20changesets!','onStarting','FETCH_MISSING','sendChangesetTimeout','setCurrentUser','_initRequestHeader','reconnect','_socketMessageSubscription','saveChangeset','LIVESHARE_OPERATION','enableCollaboration','telemetry\x20info\x20is\x20not\x20initialized','INGEST','equals','list','CommandType','CollaborationSession','_sender','getUnit','socket\x20open.','InsertSheetMutation','Univer','getTypeOfUnitDisposed$','reverse','override','listRoles','_maxTotalRetryTimeout','endpointKey','_waitCount','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','CLOSE_ROOM','Plugin','getAllMembers','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','IConfigService','updatePermissionPoint','stringify','PERSON','mutations','_getSignURL','parseProtocolChangeset','getMember','_change$','/universer-api/file/{fileID}/sign-url','decorate','unitInfo$','ConflictState','objectActions','getFocusedUnit','updateMember','onRemoteRetry','workbook','UniverCollaborationClientPlugin','PERMISSION_REJ','onRemoteAck','method','conflict','registerDependencies','infoRsp','loadUnitOfRevision','_onRemoteRejected','CONFLICT','_onConflict','filter','find','_resendWithTimeout','_transformAndApplyRemoteChangeset','_resolveSessionIdentity','isInternalEditorID','UPDATE_PERMISSION_OBJ','DocCollaborationEntity','HEARTBEAT_TIMEOUT_KEY','sid','_networkConditionService','forEach','POST','includes','_startTelemetryCollaborationNewChangeset','collaboration-client.config','getResourcesRequest','?size=','cmd','listCollaborators','message$','addHandlerCallback','[SyncedState]:\x20received\x20rejection.','[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.','refreshPermission','onTransformSelections','onTransformRemoteChangesetByStateCache','authzUrl','reject','IAttachmentIoService','_sessions','_sendingTimer','_changesetReqId','getTypeOfUnitAdded$','&source=','getValue','body','_rescheduleHeartbeat','_schedule','DEFAULT_FILE_NAME','uniscriptRunEvent','_onUserJoin','UserManagerService','LOCAL_CACHE_INTERVAL','default','1bqkbgE','map','length','connection\x20error','target','collaboratorID','getUnitOnRev','pending','UNISCRIPT_RUN','_members','DataLoaderService','Workbook','_checkMissing','offline','getCollabEntity$','UNIVER_DOC','commentUpdateEvent','take','isPermissionRej','LEAVE','fetchMiss','endpoint','changesets','_fetchMissChangesets','_executeRemoteChangeset','close$','MentionIoHttpService','_sendHeartbeat','USERS_LEAVE','push','IPermissionService','_clearUndo','_unitInfo$','OTHER_CLIENT_EDITING','_event$','addImageSourceCache','_onLocalMutation','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','commentUpdate$','pauseCollaboration','getUnitId','DEFAULT_WS_SESSION_TICKET_URL','_init','url','getInterceptPoints','encrypt','COMMENT_UPDATE','_HTTPService','_eventService','_submitChangeset','resend','CollaborationImageIoService','enableSingleActiveInstanceLock','_joinRoom','_injector','CollaborationAttachmentIoService','isCompositionEnd','charCodeAt','next','_redoStacks','_memberService','_snapshotService','HEARTBEAT','_entityInit$','_onConnectionFailed','toString','size','unitLoaded$','getImage','setShowComponents','ITelemetryService','BehaviorSubject','_onRemoteACK','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','unitId','onTransformRemoteChangesetByIMECache','UNIVER_COLLABORATION_CLIENT_PLUGIN','transformStack\x20failed!','selections','_config','uploadFileServerUrl','newCsEvent','CHANGESET_SHOULD_RETRY','utf8ToBytes','getActiveSheet','RETRY_CONNECTING_MAX_COUNT_KEY','getCollabEntity','sessionStatus','merge','COMPRESS_MUTATION_APPLY','/collaborator','registerHTTPInterceptor','_registerDependencies','_revisionService','onMissedChangesetFetched','_collaborationPaused','UniverNetworkPlugin','__splitChunk__','getDeserializedSheetBlock','1212920GAAkQn','HEARTBEAT_TIMEOUT','IContextService','_transformIMECache','[CollaborationEntity]','_resendTimer','objectID','sendHeartbeatTimer','toLocal','data','synced','_type','allowed','routeKey','appendMutation','_userManagerService','_getCtorByUniverInstanceType','eventID','executeCommand','[PendingState]:\x20received\x20rejection.','BASE64','Disposable','_sessionChannels','192295SjSUaR','updateOfflineData','getCurrentUser','UNIVER_BOARD','objects','_hasSessionsForEndpoint','toggleOffline','_undoStacks','_onUserLeave','file','delete','readyForCollab','SHOULD_CLOSE_CONN','onLocalMutation','cbc','univer-pro.collaboration-client-socket-service','116394grXnZK','RevisionService','_createInitialState','onMissingChangesets','localUnitId','hasOwnProperty','CollaborativeUndoRedoService','_resendTimeout','socket$','_throwTelemetryCollaborationNewChangeset','/-/object/list','getCurrentRevOfUnit','ImageSourceType','UnitEmbedded','cfgEnableObjInherit','loginUrlKey','collabSubmitChangesetUrl','SlideCollaborationEntity','timeoutTimer','permissionRejEvent','_changesetSessionId','/allowed','IUndoRedoService','state$','unknown','clear','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','Rectangle','blockRanges','JOINING','randomBytes','transformSelections','change$','_transformStack','location','localCacheService','getLatestCsReqIdBySid','/universer-api/snapshot/','localeService','csRejEvent','_socketService','encode','[CollaborationState]:\x20apply\x20error!','type','collaMsg','JOIN_ROOM_FULL','[DataLoaderService]','SheetCollaborationEntity','_onRemoteChangeset','MergeInterceptorFactory','transformUndoRedo','_queuedRemoteChangesets','loadSlide','UNIVER_SHEET','apply','retryConnectingTimer','Failed\x20to\x20update\x20permission\x20point','[CollaborationSession]','LocaleService','actions','dispose','then','saveSheetBlock','Tools','SOCKET_FAILED_RETRY','ERROR_IMAGE_TYPE','entityInit$','_univerInstanceService','/role','patch','unit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','\x0aAfter:\x20','_tryEnsureSocket','number','send','resourceIDs','AwaitingState','JOIN_ROOM_PERMISSION_DENIED','isArray','DEFAULT_COLLAB_WEB_SOCKET_URL','_configService','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','missingChangesets','[CollaborationSessionService]','_lockTransition','touchDependencies','range','&to=','EmptyMutationInfo','getDrawingImageAllowSize','JOIN_ROOM_FAILED','fetchThroughInterceptors','csAckEvent','title','_createSocket','_transformRemoteChangesetByIMECache','object','Quantity','ERROR_EXCEED_SIZE','sheets','_onConnectionOpen','_awaitingChangeset','_entities','ImageUploadStatusType','_shouldReportTelemetry','12KNXyxB','FAIL','collabWebSocketUrl','reqId','SUBMIT_CHANGESET','Injector','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','2831488tNdtRO','toDisposable','_localCacheService','getUploadOptions','getSheetId','HEARTBEAT_INTERVAL_KEY','_exhaustRemoteChangesetQueue','fetching\x20missing\x20changesets\x20from\x20','_transformSelections','_onRecvEvent','MemberService','delay','_collaborationTimeoutTimer','getOwnPropertyDescriptor','FetchingMissState','[PendingState]:\x20received\x20acknowledgement.','ReplaySubject','People','debug','UNIVER_BASE','copyFileMeta','joinEvent','session.join-failed','getUnitType','?url=','CombCmd','unsubscribe','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','OFFLINE','HTTPRequest','setCfgEnableObjInherit','getSheetBlock','values','post','transformMutationsWithChangeset','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','SheetTransformSelectionsService','_isEchoedAwaitingChangeset','text-x','create','_telemetryService','getGlobalObject','resolveUnit','leaveEvent','getConfig','_doCreateSocket','saveAttachment','_syncEditingCollabCursor','function','_scheduleCompleteTimestamp','_transformService','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_state$','endsWith','_startCollaboration','ILogService','WorkbookEditablePermission','CollaborationEntity','_docStateChangeManagerService','loadUnit','waitForRoom$','1698570MzZYJx','IAuthzIoService','getImageSourceCache','_onMessage','ThresholdInterceptorFactory','status','LocalUndoRedoService','onTransformIME','updateCursorEvent','focused$','isTransformMutationsWithChangesetSuccess','_cfgEnableObjInherit','/block/','JOIN_ROOM_NOT_EXISTS','init','__Key__','8OTZGsX','_transitionLocked','deepClone','_acknowledgeAwaitingIfReady','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','baseRev','upload','/unit/','[SyncedState]:\x20received\x20acknowledgement.','onload','SyncedState','every','serializeCombRequest','RxDisposable','IUniverInstanceService','params','ISnapshotServerService','_identity','_telemetryInfo','_toggleOffline','getMemberID','onRemoteChangeset','close','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','NOT_COLLAB','IMentionIOService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','prototype','event$','version','floor','SnapshotServerOverHTTPService','sequenceExecute','IImageIoService','pipe','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','createSocket','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','setWaitCount','MUTATION','error','CommentService','getTime','update','_createHandler','CompressMutationService','_state','ICollaborationSocketService','enableAuthServer','_acknowledgeAwaiting','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_ACK','SUBMIT_CHANGESET_TIMEOUT','textRanges','LIVESHARE_REQUEST_HOST','_socket','UNIVER_SLIDE','MSG_FOR_ERROR','_collaborationUIEventService','Error\x20on\x20receiving\x20event','_pendingMutations','_onCombEvent','symbol','ITransformService','changeset','Inject','incrementRevOfUnit','&assign=','updateCollaborator','AttachmentSourceType','loadSheet','_sessionStatus$','_clearCollaborationTimeoutTimer','generateRandomId','session.room-cnt-exceeds','not_collab','[CollaborationSessionService]:\x20socket\x20error','createIdentifier','_socketChannels','_unlockTransition','getLocalCacheKey','JSONX','_clearRetryConnectingTimer','LIVESHARE_FETCH_OPERATIONS','name','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_decreaseWaiting','_removeRoom','retryCount','awaiting_with_pending','304353fgnfrz','awaiting','CollaborationUIEventService','getCurrentSelections','_initCloseConn','/resources','_updateState','_upload','accept','[OfflineState]:\x20received\x20changeset.','socket\x20close','RichTextEditingMutation','onRemoteRej','iterator','Subject','BaseCollaborationEntity','duration','socketService','loadOfflineData','Optional','_getSocketChannel','columnGroups','_getAPIPrefixPath','updateSnapshot','_roomMembers','JOIN','\x20-\x20','/object/','concatBytes','_logService','_remoteChangesetQueue','HTTPService','_clearRedo','disposeWithMe'];_0x18d9=function(){return _0x164740;};return _0x18d9();}const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0x2c6c22,_0x1c32da,_0x596161,_0x2dc160,_0x2422df,_0x7a59a8,_0x25b60e,_0xfef3ab,_0x218682){const _0x18d454=_0x4c0aa4;this[_0x18d454(0x426)]=_0x2c6c22,this[_0x18d454(0x27c)]=_0x1c32da,this[_0x18d454(0x3bf)]=_0x2422df,this[_0x18d454(0x440)]=_0x7a59a8,this[_0x18d454(0x419)]=_0x25b60e,this[_0x18d454(0x224)]=_0xfef3ab,this['_localCacheService']=_0x218682,g(this,_0x18d454(0x2b7),null),g(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x596161,this[_0x18d454(0x34c)]=_0x2dc160;}[_0x4c0aa4(0x1d3)](_0xdafb54){const _0xe6cdd5=_0x4c0aa4;let _0x304392=this['_revisionService'][_0xe6cdd5(0x25c)](this[_0xe6cdd5(0x426)]);return _0xdafb54[_0xe6cdd5(0x3b1)]>_0x304392+0x1?(this[_0xe6cdd5(0x3bf)][_0xe6cdd5(0x254)]({'from':_0x304392,'to':_0xdafb54[_0xe6cdd5(0x3b1)]-0x1}),!0x0):!0x1;}[_0x4c0aa4(0x3d1)](_0x412acd){const _0xa30a87=_0x4c0aa4;this[_0xa30a87(0x419)][_0xa30a87(0x283)](this[_0xa30a87(0x426)],_0x412acd);}[_0x4c0aa4(0x2ca)](_0x3bbf1b){const _0x4f5444=_0x4c0aa4;var _0x27fb1b,_0x2bef28;(_0x27fb1b=(_0x2bef28=this[_0x4f5444(0x3bf)])['onTransformSelections'])==null||_0x27fb1b[_0x4f5444(0x475)](_0x2bef28,_0x3bbf1b);}[_0x4c0aa4(0x22d)](_0x2b4998){const _0x247019=_0x4c0aa4;var _0x5b945b,_0x186472;return(_0x5b945b=(_0x186472=this[_0x247019(0x3bf)])[_0x247019(0x306)])==null?void 0x0:_0x5b945b[_0x247019(0x475)](_0x186472,_0x2b4998);}['_transformStateCache'](_0x333e2a){const _0x11b482=_0x4c0aa4;var _0x43b7d9,_0x4c7780;return(_0x43b7d9=(_0x4c7780=this['_handler'])['onTransformState'])==null?void 0x0:_0x43b7d9[_0x11b482(0x475)](_0x4c7780,_0x333e2a);}[_0x4c0aa4(0x2b1)](_0x58553a){const _0x208d9b=_0x4c0aa4;var _0x1c1e14,_0x15a38e,_0x316122;return(_0x1c1e14=(_0x15a38e=(_0x316122=this[_0x208d9b(0x3bf)])[_0x208d9b(0x212)])==null?void 0x0:_0x15a38e[_0x208d9b(0x475)](_0x316122,_0x58553a))==null?_0x58553a:_0x1c1e14;}[_0x4c0aa4(0x3da)](_0x21e82c){const _0x288406=_0x4c0aa4;var _0x461b59,_0x1cb2e6,_0x25cbbc;return(_0x461b59=(_0x1cb2e6=(_0x25cbbc=this['_handler'])[_0x288406(0x1b4)])==null?void 0x0:_0x1cb2e6[_0x288406(0x475)](_0x25cbbc,_0x21e82c))==null?_0x21e82c:_0x461b59;}['_syncEditingCollabCursor'](_0x2e5b94){const _0xd1983e=_0x4c0aa4;if(this[_0xd1983e(0x27c)]===t[_0xd1983e(0x425)][_0xd1983e(0x1d6)]){let {unitID:_0x5554d0,mutations:_0x6e19f,memberID:_0x26f675}=_0x2e5b94,_0x193447=_0x6e19f[_0xd1983e(0x1c9)]>0x0?_0x6e19f[0x0][_0xd1983e(0x31e)]['textRanges']:[];if(Array[_0xd1983e(0x2a0)](_0x193447)&&_0x193447[_0xd1983e(0x1c9)]>0x0){var _0x290d45,_0x49f7ba;(_0x290d45=(_0x49f7ba=this[_0xd1983e(0x3bf)])['onSyncEditingCollabCursor'])==null||_0x290d45[_0xd1983e(0x475)](_0x49f7ba,{'unitID':_0x5554d0,'memberID':_0x26f675,'textRanges':_0x193447});}}}[_0x4c0aa4(0x3b3)](){const _0x2bd35d=_0x4c0aa4;var _0x4d6330;(_0x4d6330=this[_0x2bd35d(0x2c4)])==null||_0x4d6330[_0x2bd35d(0x242)](this[_0x2bd35d(0x426)],this['type'],this[_0x2bd35d(0x2b7)],this[_0x2bd35d(0x34c)]);}[_0x4c0aa4(0x3a0)](){const _0x4d0423=_0x4c0aa4;return this[_0x4d0423(0x224)][_0x4d0423(0x25c)](this[_0x4d0423(0x426)]);}[_0x4c0aa4(0x411)](){const _0x14f12=_0x4c0aa4;this['_revisionService'][_0x14f12(0x352)](this['unitID']);}[_0x4c0aa4(0x1df)](_0x51f314){const _0xfba515=_0x4c0aa4;let _0xc67c4d=this[_0xfba515(0x2b1)](_0x51f314);_0xc67c4d=this[_0xfba515(0x3da)](_0xc67c4d);let _0x38bc36=(0x0,t[_0xfba515(0x32f)])(_0xc67c4d[_0xfba515(0x4a9)],this[_0xfba515(0x440)],{'fromCollab':!0x0});if(!_0x38bc36['result']){var _0x29dcd5;throw _0x38bc36[_0xfba515(0x338)]instanceof Error?_0x38bc36[_0xfba515(0x338)]:Error((_0x29dcd5=_0x38bc36['error'])==null?_0xfba515(0x27b):_0x29dcd5);}this[_0xfba515(0x22d)](_0xc67c4d),this[_0xfba515(0x3dd)](_0xc67c4d),this[_0xfba515(0x3d1)](_0x51f314),this[_0xfba515(0x2ca)](_0xc67c4d),this[_0xfba515(0x2f1)](_0xc67c4d),this[_0xfba515(0x411)]();}};let O=class extends D{constructor(_0x3598a7,_0x19ad9c,_0x16a802,_0x3ace4a,_0x2d4601,_0x283ef4,_0x85e736,_0x4f6157,_0x45cd80,_0x2e5f16){const _0x729015=_0x4c0aa4;super(_0x3598a7,_0x19ad9c,null,[],_0x16a802,_0x85e736,_0x283ef4,_0x3ace4a,_0x2e5f16),this[_0x729015(0x1fd)]=_0x2d4601,this[_0x729015(0x387)]=_0x4f6157,this[_0x729015(0x2f4)]=_0x45cd80,this[_0x729015(0x274)]=_0x2e5f16,g(this,_0x729015(0x304),_0x729015(0x234));}[_0x4c0aa4(0x238)](_0x29ca3e){const _0x3a4c78=_0x4c0aa4;let _0x24ef4b=this[_0x3a4c78(0x1fd)][_0x3a4c78(0x47e)](k,this[_0x3a4c78(0x426)],this[_0x3a4c78(0x27c)],[_0x29ca3e],this[_0x3a4c78(0x3bf)]);return _0x24ef4b[_0x3a4c78(0x1c0)](),_0x24ef4b[_0x3a4c78(0x3b3)](),_0x24ef4b;}['onRemoteChangeset'](_0x368bbb){const _0x13792f=_0x4c0aa4;if(this['_checkMissing'](_0x368bbb))return this[_0x13792f(0x1fd)][_0x13792f(0x47e)](P,this[_0x13792f(0x426)],this['type'],null,[],null,[_0x368bbb],this[_0x13792f(0x3bf)]);try{let _0x4ea4ea=this[_0x13792f(0x2f4)]['transformMutationsWithChangeset'](_0x368bbb,[e[_0x13792f(0x2aa)]]);if((0x0,e[_0x13792f(0x309)])(_0x4ea4ea)){let {c1Prime:_0x4b3a91}=_0x4ea4ea;return this['_executeRemoteChangeset'](_0x4b3a91),this;}throw _0x4ea4ea[_0x13792f(0x338)];}catch(_0xf859a3){return this[_0x13792f(0x387)]['error'](_0xf859a3),this[_0x13792f(0x199)](!0x1);}}['_onConflict'](_0x500951){const _0x17a83e=_0x4c0aa4;return this[_0x17a83e(0x1fd)]['createInstance'](M,this[_0x17a83e(0x426)],this['type'],null,[],this['_handler'],_0x500951);}[_0x4c0aa4(0x191)](_0xb5192b){const _0x376dc0=_0x4c0aa4;if(_0xb5192b[_0x376dc0(0x3b1)]<=this[_0x376dc0(0x3a0)]())return this;throw Error(_0x376dc0(0x317));}['onRemoteRej'](){const _0xe9f978=_0x4c0aa4;throw Error(_0xe9f978(0x1b0));}[_0x4c0aa4(0x18d)](){return this;}['toggleOffline'](){const _0xffbc12=_0x4c0aa4;return this[_0xffbc12(0x1fd)][_0xffbc12(0x47e)](N,this[_0xffbc12(0x426)],this[_0xffbc12(0x27c)],null,[],this[_0xffbc12(0x3bf)]);}['toggleOnline'](){return this;}[_0x4c0aa4(0x1f9)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c0aa4(0x1db)](){const _0x2d96ae=_0x4c0aa4;let _0x42ae27=this['_revisionService'][_0x2d96ae(0x25c)](this[_0x2d96ae(0x426)]);return this['_handler']['onMissingChangesets']({'from':_0x42ae27,'to':0x0}),this[_0x2d96ae(0x1fd)][_0x2d96ae(0x47e)](P,this['unitID'],this['type'],null,[],null,[],this[_0x2d96ae(0x3bf)]);}};O=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x5,t[_0x4c0aa4(0x267)]),v(0x6,t['ICommandService']),v(0x7,t[_0x4c0aa4(0x2f9)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t[_0x4c0aa4(0x37d)])(S))],O);let k=Le=class extends D{constructor(_0x5cf610,_0x178feb,_0x23dccc,_0x41273a,_0x4f739c,_0xdd3844,_0x281dea,_0x59bc13,_0x2cec6b,_0x3e264c,_0x12a59a,_0x185c3a,_0x4dbf18,_0x3511b9){const _0x462fa2=_0x4c0aa4;super(_0x5cf610,_0x178feb,null,_0x23dccc,_0x41273a,_0x2cec6b,_0x4dbf18,_0xdd3844,_0x3511b9),this[_0x462fa2(0x1fd)]=_0x4f739c,this[_0x462fa2(0x203)]=_0x281dea,this[_0x462fa2(0x387)]=_0x59bc13,this[_0x462fa2(0x2a2)]=_0x3e264c,this[_0x462fa2(0x2f4)]=_0x12a59a,this[_0x462fa2(0x294)]=_0x185c3a,g(this,_0x462fa2(0x304),'pending'),g(this,_0x462fa2(0x2f3),null),g(this,_0x462fa2(0x1b9),null);}['appendMutation'](_0x2f389a){const _0x26465e=_0x4c0aa4;return this['_pendingMutations'][_0x26465e(0x1e4)](_0x2f389a),this[_0x26465e(0x3b3)](),this;}[_0x4c0aa4(0x324)](_0x348806){const _0x3d7c36=_0x4c0aa4;if(this[_0x3d7c36(0x1d3)](_0x348806))return this[_0x3d7c36(0x44e)](),this['_injector'][_0x3d7c36(0x47e)](P,this[_0x3d7c36(0x426)],this[_0x3d7c36(0x27c)],null,this[_0x3d7c36(0x34c)],null,[_0x348806],this['_handler']);try{let _0x3bd980=this[_0x3d7c36(0x2f4)][_0x3d7c36(0x2e4)](_0x348806,this[_0x3d7c36(0x34c)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x3bd980)){let {c1Prime:_0x4c437e,m2Prime:_0x41e220}=_0x3bd980;this[_0x3d7c36(0x1df)](_0x4c437e);let _0x3bc5e9=this[_0x3d7c36(0x1fd)][_0x3d7c36(0x47e)](Le,this[_0x3d7c36(0x426)],this[_0x3d7c36(0x27c)],_0x41e220,this[_0x3d7c36(0x3bf)]);this['_clearScheduledTask']();let _0x47984b=new Date()['getTime'](),_0x4b748c=this[_0x3d7c36(0x2f3)]?Math['max'](this[_0x3d7c36(0x2f3)]-_0x47984b,0x0):this[_0x3d7c36(0x450)]();return _0x3bc5e9[_0x3d7c36(0x1c0)](_0x4b748c),_0x3bc5e9;}throw _0x3bd980[_0x3d7c36(0x338)];}catch(_0x5cbc1c){return this[_0x3d7c36(0x387)][_0x3d7c36(0x338)](_0x5cbc1c),this[_0x3d7c36(0x199)](!0x1);}}[_0x4c0aa4(0x191)](_0x7432ea){const _0x539c0b=_0x4c0aa4;if(_0x7432ea[_0x539c0b(0x3b1)]<=this[_0x539c0b(0x3a0)]())return this;throw Error(_0x539c0b(0x2d1));}[_0x4c0aa4(0x376)](){const _0x138064=_0x4c0aa4;throw Error(_0x138064(0x23d));}[_0x4c0aa4(0x18d)](){return this;}[_0x4c0aa4(0x247)](){const _0x2e3b1a=_0x4c0aa4;return this[_0x2e3b1a(0x44e)](),this[_0x2e3b1a(0x1fd)]['createInstance'](N,this[_0x2e3b1a(0x426)],this[_0x2e3b1a(0x27c)],null,this[_0x2e3b1a(0x34c)],this[_0x2e3b1a(0x3bf)]);}[_0x4c0aa4(0x3e6)](){return this;}[_0x4c0aa4(0x1c0)](_0x436c85){const _0x19b615=_0x4c0aa4;let _0x5ca8f4=_0x436c85==null?this[_0x19b615(0x450)]():_0x436c85;this[_0x19b615(0x2f3)]=new Date()[_0x19b615(0x33a)]()+_0x5ca8f4,this[_0x19b615(0x1b9)]=setTimeout(()=>{const _0x1a6aa9=_0x19b615;this[_0x1a6aa9(0x44e)]();let _0x3b0bfb=null;switch(this['type']){case t[_0x1a6aa9(0x425)][_0x1a6aa9(0x286)]:_0x3b0bfb=T(this[_0x1a6aa9(0x34c)],this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x294)],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;case t[_0x1a6aa9(0x425)][_0x1a6aa9(0x1d6)]:_0x3b0bfb=this[_0x1a6aa9(0x34c)][_0x1a6aa9(0x31a)](_0x1e0bd9=>_0x1e0bd9['id']===n[_0x1a6aa9(0x375)]['id'])?Oe(this[_0x1a6aa9(0x34c)],this[_0x1a6aa9(0x426)],this['_univerInstanceService'],this[_0x1a6aa9(0x224)],this['_memberService']):T(this[_0x1a6aa9(0x34c)],this['unitID'],this[_0x1a6aa9(0x294)],this[_0x1a6aa9(0x224)],this['_memberService']);break;case t[_0x1a6aa9(0x425)]['UNIVER_SLIDE']:_0x3b0bfb=De(this['_pendingMutations'],this[_0x1a6aa9(0x426)],this['_univerInstanceService'],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;case t[_0x1a6aa9(0x425)]['UNIVER_BOARD']:_0x3b0bfb=T(this[_0x1a6aa9(0x34c)],this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x294)],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x3b0bfb=T(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x1a6aa9(0x224)],this[_0x1a6aa9(0x203)]);break;default:throw Error(_0x1a6aa9(0x434)+this[_0x1a6aa9(0x27c)]+_0x1a6aa9(0x477));}let {changeset:_0x3e8485,pendingMutations:_0x1ae08d}=_0x3b0bfb;this['_handler']['onSendChangeset'](_0x3e8485);let _0x5153c7=_0x1ae08d[_0x1a6aa9(0x1c9)]?this[_0x1a6aa9(0x1fd)][_0x1a6aa9(0x47e)](j,this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x27c)],_0x3e8485,_0x1ae08d,this[_0x1a6aa9(0x3bf)],void 0x0):this[_0x1a6aa9(0x1fd)][_0x1a6aa9(0x47e)](A,this[_0x1a6aa9(0x426)],this[_0x1a6aa9(0x27c)],_0x3e8485,this[_0x1a6aa9(0x3bf)]);_0x5153c7['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x5153c7);},_0x5ca8f4);}[_0x4c0aa4(0x450)](){const _0x1497d6=_0x4c0aa4;var _0x2fe662;let _0x56ab27=this['_configService']['getConfig'](m);return(_0x2fe662=_0x56ab27==null?void 0x0:_0x56ab27[_0x1497d6(0x486)])==null?0x7d0:_0x2fe662;}['resend'](){const _0x14c4f1=_0x4c0aa4;throw Error(_0x14c4f1(0x460));}[_0x4c0aa4(0x44e)](){const _0xf66e9d=_0x4c0aa4;this[_0xf66e9d(0x1b9)]!=null&&(clearTimeout(this[_0xf66e9d(0x1b9)]),this['_sendingTimer']=null);}[_0x4c0aa4(0x199)](_0x50f249){const _0x4d3ef8=_0x4c0aa4;return this[_0x4d3ef8(0x44e)](),this[_0x4d3ef8(0x1fd)][_0x4d3ef8(0x47e)](M,this['unitID'],this[_0x4d3ef8(0x27c)],null,this[_0x4d3ef8(0x34c)],this[_0x4d3ef8(0x3bf)],_0x50f249);}};k=Le=y([v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,(0x0,t['Inject'])(e['RevisionService'])),v(0x6,(0x0,t['Inject'])(b)),v(0x7,t[_0x4c0aa4(0x2f9)]),v(0x8,t['ICommandService']),v(0x9,t['IConfigService']),v(0xa,e[_0x4c0aa4(0x34f)]),v(0xb,t[_0x4c0aa4(0x31d)]),v(0xc,t[_0x4c0aa4(0x267)]),v(0xd,(0x0,t['Optional'])(S))],k);let A=Re=class extends D{constructor(_0x24b4fc,_0x116806,_0x33f935,_0x3ed065,_0x3cc5d0,_0x5479e8,_0x32ac6b,_0x1c96b2,_0x56ed84,_0x299cfb,_0x5eb268){const _0x4296e6=_0x4c0aa4;super(_0x24b4fc,_0x116806,_0x33f935,[],_0x3ed065,_0x32ac6b,_0x299cfb,_0x5479e8,_0x5eb268),this['_injector']=_0x3cc5d0,this['_logService']=_0x1c96b2,this[_0x4296e6(0x2f4)]=_0x56ed84,g(this,_0x4296e6(0x304),_0x4296e6(0x36b)),g(this,'_resendTimeout',0x0),g(this,_0x4296e6(0x49d),0x0),g(this,_0x4296e6(0x22f),void 0x0),g(this,'_sender',void 0x0);}[_0x4c0aa4(0x238)](_0x5572e5){const _0x1fbd19=_0x4c0aa4;this[_0x1fbd19(0x44e)]();let _0x596dd8=this['_injector'][_0x1fbd19(0x47e)](j,this[_0x1fbd19(0x426)],this[_0x1fbd19(0x27c)],this[_0x1fbd19(0x2b7)],[_0x5572e5],this[_0x1fbd19(0x3bf)],this[_0x1fbd19(0x22f)]);return _0x596dd8[_0x1fbd19(0x3b3)](),_0x596dd8;}[_0x4c0aa4(0x324)](_0x1ede38){const _0x20e1c7=_0x4c0aa4;if(this[_0x20e1c7(0x1d3)](_0x1ede38))return this['_clearScheduledTask'](),this[_0x20e1c7(0x1fd)]['createInstance'](P,this[_0x20e1c7(0x426)],this[_0x20e1c7(0x27c)],this[_0x20e1c7(0x2b7)],[],null,[_0x1ede38],this[_0x20e1c7(0x3bf)]);try{let _0x3d71ee=this['_transformService'][_0x20e1c7(0x38c)]([_0x1ede38],[this[_0x20e1c7(0x2b7)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x3d71ee)){let {c1Prime:_0x31cdf0,c2Prime:_0x33d5ba}=_0x3d71ee;this[_0x20e1c7(0x1df)](_0x31cdf0[0x0]),_0x33d5ba[0x0][_0x20e1c7(0x314)]=this[_0x20e1c7(0x3a0)](),this[_0x20e1c7(0x44e)]();let _0x5bf093=this[_0x20e1c7(0x1fd)][_0x20e1c7(0x47e)](Re,this[_0x20e1c7(0x426)],this[_0x20e1c7(0x27c)],_0x33d5ba[0x0],this[_0x20e1c7(0x3bf)]);return _0x5bf093['_updateLocalCache'](),_0x5bf093;}throw _0x3d71ee[_0x20e1c7(0x338)];}catch(_0x1be810){return this['_logService'][_0x20e1c7(0x338)](_0x1be810),this['_onConflict'](!0x1);}}[_0x4c0aa4(0x191)](_0x5727c8){const _0x18beab=_0x4c0aa4;this['_clearScheduledTask']();let _0x52cc5c=this[_0x18beab(0x224)][_0x18beab(0x25c)](this[_0x18beab(0x426)]);if(_0x5727c8[_0x18beab(0x3b1)]<=_0x52cc5c)return this;if(this[_0x18beab(0x1d3)](_0x5727c8))return this[_0x18beab(0x1fd)][_0x18beab(0x47e)](P,this['unitID'],this[_0x18beab(0x27c)],this['_awaitingChangeset'],[],_0x5727c8[_0x18beab(0x3b1)],[],this[_0x18beab(0x3bf)]);this[_0x18beab(0x411)]();let _0x2c7073=this[_0x18beab(0x1fd)][_0x18beab(0x47e)](O,this[_0x18beab(0x426)],this[_0x18beab(0x27c)],this[_0x18beab(0x3bf)]);return _0x2c7073[_0x18beab(0x3b3)](),_0x2c7073;}[_0x4c0aa4(0x376)](_0x449ab9){const _0x401ce3=_0x4c0aa4;return this['_onConflict'](!!(_0x449ab9!=null&&_0x449ab9[_0x401ce3(0x1d9)]));}[_0x4c0aa4(0x18d)](_0x8150a9){const _0x22fdd6=_0x4c0aa4;return this[_0x22fdd6(0x49d)]>He?this[_0x22fdd6(0x247)]():(this[_0x22fdd6(0x22f)]=Ie(this[_0x22fdd6(0x258)],{'timeout':this[_0x22fdd6(0x258)],'reqId':_0x8150a9[_0x22fdd6(0x2be)]}),this[_0x22fdd6(0x494)]=this[_0x22fdd6(0x22f)][_0x22fdd6(0x3a4)](({reqId:_0x343fee,timeout:_0x5df7ff})=>{this['_resendWithTimeout'](_0x343fee,_0x5df7ff);}),this);}['toggleOffline'](){const _0x14b7cd=_0x4c0aa4;return this[_0x14b7cd(0x44e)](),this[_0x14b7cd(0x1fd)]['createInstance'](N,this['unitID'],this['type'],this[_0x14b7cd(0x2b7)],[],this[_0x14b7cd(0x3bf)]);}[_0x4c0aa4(0x3e6)](){return this;}[_0x4c0aa4(0x1f9)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x44f895){const _0x14181d=_0x4c0aa4;return this[_0x14181d(0x44e)](),this['_injector'][_0x14181d(0x47e)](M,this[_0x14181d(0x426)],this[_0x14181d(0x27c)],this[_0x14181d(0x2b7)],[],this[_0x14181d(0x3bf)],_0x44f895);}['_resendWithTimeout'](_0x2717d2,_0x1ef3de){const _0x1be225=_0x4c0aa4;var _0x3808eb;_0x2717d2===((_0x3808eb=this[_0x1be225(0x2b7)])==null?void 0x0:_0x3808eb[_0x1be225(0x2be)])&&(this[_0x1be225(0x1f9)](),this[_0x1be225(0x258)]=_0x1ef3de===0x0?0x3e8:Math[_0x1be225(0x3a1)](_0x1ef3de*0x2,Ve),this[_0x1be225(0x49d)]+=this[_0x1be225(0x258)]);}[_0x4c0aa4(0x44e)](){const _0xa76104=_0x4c0aa4;var _0x54c276;(_0x54c276=this['_sender'])==null||_0x54c276[_0xa76104(0x2dc)](),this['_resendTimeout']=0x0,this[_0xa76104(0x49d)]=0x0;}};A=Re=y([v(0x4,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x6,t[_0x4c0aa4(0x416)]),v(0x7,t[_0x4c0aa4(0x2f9)]),v(0x8,e['ITransformService']),v(0x9,t[_0x4c0aa4(0x267)]),v(0xa,(0x0,t[_0x4c0aa4(0x37d)])(S))],A);let j=ze=class extends D{constructor(_0x1afddc,_0x130525,_0x1dfe93,_0xe2aaa1,_0x3c3726,_0x3ea453,_0xe6f4bb,_0x438299,_0x48b583,_0x5f1e71,_0xb82bde,_0x4472ee,_0x447092){const _0x104d67=_0x4c0aa4;super(_0x1afddc,_0x130525,_0x1dfe93,_0xe2aaa1,_0x3c3726,_0x48b583,_0x4472ee,_0x438299,_0x447092),this[_0x104d67(0x1fd)]=_0xe6f4bb,this[_0x104d67(0x387)]=_0x5f1e71,this[_0x104d67(0x2f4)]=_0xb82bde,this['localCacheService']=_0x447092,g(this,_0x104d67(0x304),_0x104d67(0x369)),g(this,_0x104d67(0x258),0x0),g(this,_0x104d67(0x49d),0x0),g(this,_0x104d67(0x22f),void 0x0),g(this,_0x104d67(0x494),void 0x0),_0x3ea453&&(this['_resendTimer']=_0x3ea453,this[_0x104d67(0x494)]=this[_0x104d67(0x22f)][_0x104d67(0x3a4)](({reqId:_0x2a8ffe,timeout:_0x5de0de})=>{this['_resendWithTimeout'](_0x2a8ffe,_0x5de0de);}));}['appendMutation'](_0x1860b7){const _0x1b0823=_0x4c0aa4;return this[_0x1b0823(0x34c)][_0x1b0823(0x1e4)](_0x1860b7),this;}[_0x4c0aa4(0x324)](_0x269d22){const _0xc79ad5=_0x4c0aa4;if(this[_0xc79ad5(0x1d3)](_0x269d22))return this['_clearScheduledTask'](),this['_injector'][_0xc79ad5(0x47e)](P,this[_0xc79ad5(0x426)],this[_0xc79ad5(0x27c)],this[_0xc79ad5(0x2b7)],this['_pendingMutations'],null,[_0x269d22],this[_0xc79ad5(0x3bf)]);try{let _0x1aec53=this['_transformService'][_0xc79ad5(0x38c)]([_0x269d22],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0xc79ad5(0x47c)])(_0x1aec53)){let {c1Prime:_0x456926,c2Prime:_0x1ea695}=_0x1aec53,_0xba23a=this[_0xc79ad5(0x2f4)][_0xc79ad5(0x2e4)](_0x456926[0x0],this['_pendingMutations']);if((0x0,e[_0xc79ad5(0x309)])(_0xba23a)){let {c1Prime:_0x36a95d,m2Prime:_0x4dc151}=_0xba23a;return this['_executeRemoteChangeset'](_0x36a95d),_0x1ea695[0x0][_0xc79ad5(0x314)]=this[_0xc79ad5(0x3a0)](),this[_0xc79ad5(0x44e)](),this['_injector'][_0xc79ad5(0x47e)](ze,this[_0xc79ad5(0x426)],this[_0xc79ad5(0x27c)],_0x1ea695[0x0],_0x4dc151,this[_0xc79ad5(0x3bf)],void 0x0);}throw _0xba23a[_0xc79ad5(0x338)];}throw _0x1aec53[_0xc79ad5(0x338)];}catch(_0x51cb92){return this['_logService'][_0xc79ad5(0x338)](_0x51cb92),this[_0xc79ad5(0x199)](!0x1);}}[_0x4c0aa4(0x191)](_0x290bf2){const _0x3ec26d=_0x4c0aa4;this['_clearScheduledTask']();let _0x239e24=this['_getCurrentRevision']();if(_0x290bf2['revision']<=_0x239e24)return this;if(this[_0x3ec26d(0x1d3)](_0x290bf2))return this[_0x3ec26d(0x1fd)]['createInstance'](P,this[_0x3ec26d(0x426)],this[_0x3ec26d(0x27c)],this[_0x3ec26d(0x2b7)],this[_0x3ec26d(0x34c)],_0x290bf2[_0x3ec26d(0x3b1)],[],this[_0x3ec26d(0x3bf)]);this['_incrementRevisionNumber']();let _0xbfdb62=this[_0x3ec26d(0x1fd)][_0x3ec26d(0x47e)](k,this[_0x3ec26d(0x426)],this[_0x3ec26d(0x27c)],this[_0x3ec26d(0x34c)],this[_0x3ec26d(0x3bf)]);return _0xbfdb62['_schedule'](),_0xbfdb62[_0x3ec26d(0x3b3)](),_0xbfdb62;}[_0x4c0aa4(0x376)](_0x1536bc){const _0x3fe5ab=_0x4c0aa4;return this[_0x3fe5ab(0x199)](!!(_0x1536bc!=null&&_0x1536bc[_0x3fe5ab(0x1d9)]));}['onRemoteRetry'](_0x1887a1){const _0x2e4555=_0x4c0aa4;return this[_0x2e4555(0x49d)]>He?this['toggleOffline']():(this[_0x2e4555(0x22f)]=Ie(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x1887a1[_0x2e4555(0x2be)]}),this[_0x2e4555(0x494)]=this[_0x2e4555(0x22f)][_0x2e4555(0x3a4)](({reqId:_0x491bd3,timeout:_0x553427})=>{const _0x513221=_0x2e4555;this[_0x513221(0x19c)](_0x491bd3,_0x553427);}),this);}[_0x4c0aa4(0x247)](){const _0x3d391a=_0x4c0aa4;return this['_clearScheduledTask'](),this[_0x3d391a(0x1fd)][_0x3d391a(0x47e)](N,this['unitID'],this[_0x3d391a(0x27c)],this[_0x3d391a(0x2b7)],this[_0x3d391a(0x34c)],this[_0x3d391a(0x3bf)]);}['toggleOnline'](){return this;}['resend'](){const _0x2dba72=_0x4c0aa4;this['_handler'][_0x2dba72(0x3b0)](this[_0x2dba72(0x2b7)]);}[_0x4c0aa4(0x199)](_0x4be5a5){const _0x1feaf3=_0x4c0aa4;return this['_clearScheduledTask'](),this['_injector'][_0x1feaf3(0x47e)](M,this[_0x1feaf3(0x426)],this[_0x1feaf3(0x27c)],null,this[_0x1feaf3(0x34c)],this[_0x1feaf3(0x3bf)],_0x4be5a5);}[_0x4c0aa4(0x19c)](_0x47aa63,_0x93f810){const _0xf18242=_0x4c0aa4;var _0x591947;_0x47aa63===((_0x591947=this[_0xf18242(0x2b7)])==null?void 0x0:_0x591947[_0xf18242(0x2be)])&&(this['resend'](),this['_resendTimeout']=_0x93f810===0x0?0x3e8:Math['min'](_0x93f810*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0xf18242(0x258)]);}['_clearScheduledTask'](){const _0x1b7722=_0x4c0aa4;var _0x2256c0;(_0x2256c0=this[_0x1b7722(0x494)])==null||_0x2256c0[_0x1b7722(0x2dc)](),this[_0x1b7722(0x258)]=0x0,this[_0x1b7722(0x49d)]=0x0;}};j=ze=y([v(0x6,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(e['RevisionService'])),v(0x8,t['ICommandService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,e[_0x4c0aa4(0x34f)]),v(0xb,t[_0x4c0aa4(0x267)]),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(S))],j);let M=class extends D{constructor(_0x269d02,_0x174e86,_0x25f45d,_0x39f25c,_0x43f51b,_0x3b525c=!0x1,_0x739695,_0x176d52,_0x6f513,_0x5134f1,_0x394a49,_0x1901d7,_0x2d5e3f){const _0x176365=_0x4c0aa4;super(_0x269d02,_0x174e86,_0x25f45d,_0x39f25c,_0x43f51b,_0x176d52,_0x6f513,_0x5134f1,_0x2d5e3f),this[_0x176365(0x39d)]=_0x3b525c,this[_0x176365(0x3ee)]=_0x739695,this[_0x176365(0x41b)]=_0x394a49,this[_0x176365(0x34a)]=_0x1901d7,this[_0x176365(0x274)]=_0x2d5e3f,g(this,_0x176365(0x304),_0x176365(0x193)),this['_showConflictNotification'](),this[_0x176365(0x3ce)](),this[_0x176365(0x44b)]();}[_0x4c0aa4(0x238)](){return this;}[_0x4c0aa4(0x324)](){return this;}[_0x4c0aa4(0x191)](){return this;}[_0x4c0aa4(0x376)](){return this;}[_0x4c0aa4(0x18d)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x4c0aa4(0x1f9)](){const _0x4346d4=_0x4c0aa4;throw Error(_0x4346d4(0x313));}[_0x4c0aa4(0x3ce)](){const _0x4d581f=_0x4c0aa4;var _0x4f62aa,_0x2aefa4,_0x3e4b79;(_0x4f62aa=this[_0x4d581f(0x2c4)])==null||(_0x2aefa4=_0x4f62aa['backupOfflineData'])==null||(_0x2aefa4=_0x2aefa4[_0x4d581f(0x475)](_0x4f62aa,this[_0x4d581f(0x426)],_0x4d581f(0x193)))==null||_0x2aefa4[_0x4d581f(0x3c6)](()=>void 0x0),(_0x3e4b79=this[_0x4d581f(0x2c4)])==null||_0x3e4b79[_0x4d581f(0x242)](this[_0x4d581f(0x426)],this['type'],null,[]);}[_0x4c0aa4(0x451)](){const _0x40dfdc=_0x4c0aa4;this[_0x40dfdc(0x39d)]?this['_collaborationUIEventService']['emitEvent']({'id':_0x40dfdc(0x43b)}):this[_0x40dfdc(0x34a)][_0x40dfdc(0x40a)]({'id':'CONFLICT'});}[_0x4c0aa4(0x44b)](){const _0x4db72d=_0x4c0aa4;this[_0x4db72d(0x3ee)][_0x4db72d(0x4a6)](new r[(_0x4db72d(0x2fa))](this[_0x4db72d(0x426)])['id'],!0x1);}};M=y([v(0x6,(0x0,t['Inject'])(t[_0x4c0aa4(0x1e5)])),v(0x7,t[_0x4c0aa4(0x416)]),v(0x8,t[_0x4c0aa4(0x267)]),v(0x9,(0x0,t['Inject'])(e[_0x4c0aa4(0x252)])),v(0xa,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0xb,(0x0,t['Inject'])(_)),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(S))],M);let N=class extends D{constructor(_0x49234a,_0x2a439b,_0x205c7c,_0x44e125,_0x2f1937,_0x3a5068,_0x199930,_0x4b6634,_0x7542f4,_0x57978f){const _0x1604b6=_0x4c0aa4;super(_0x49234a,_0x2a439b,_0x205c7c,_0x44e125,_0x2f1937,_0x4b6634,_0x7542f4,_0x199930,_0x57978f),this[_0x1604b6(0x1fd)]=_0x3a5068,g(this,'status',_0x1604b6(0x1d4));}[_0x4c0aa4(0x238)](_0x47721e){const _0x40d6db=_0x4c0aa4;return this[_0x40d6db(0x34c)][_0x40d6db(0x1e4)](_0x47721e),this['_updateLocalCache'](),this;}[_0x4c0aa4(0x324)](_0xc2822){const _0x3b9c0c=_0x4c0aa4;throw Error(_0x3b9c0c(0x373));}[_0x4c0aa4(0x191)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x4c0aa4(0x376)](){const _0x356357=_0x4c0aa4;throw Error(_0x356357(0x46e));}[_0x4c0aa4(0x18d)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){const _0x3dd551=_0x4c0aa4;let {_injector:_0x3cfaf3,_pendingMutations:_0x22dd3d,_awaitingChangeset:_0x468097,unitID:_0x2cbf32,_handler:_0x111f4f,type:_0x862e6c}=this,_0x19f263=Ue(_0x3cfaf3,_0x2cbf32,_0x862e6c,_0x468097,_0x22dd3d,_0x111f4f);return _0x19f263 instanceof k?_0x19f263['_schedule']():(_0x19f263 instanceof j||_0x19f263 instanceof A)&&_0x19f263[_0x3dd551(0x1f9)](),_0x19f263;}[_0x4c0aa4(0x1f9)](){const _0x351159=_0x4c0aa4;throw Error(_0x351159(0x2dd));}};N=y([v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e['RevisionService'])),v(0x7,t[_0x4c0aa4(0x416)]),v(0x8,t[_0x4c0aa4(0x267)]),v(0x9,(0x0,t['Optional'])(S))],N);let P=class extends D{constructor(_0x336ae0,_0x1543ad,_0x1de7ab,_0x4f1682,_0x205790,_0xa2406a,_0x32e70f,_0x2866cf,_0x9fd74b,_0x2ffe16,_0x4c272f,_0x3b70bd,_0x31a182,_0x3e323b){const _0xfa104=_0x4c0aa4;super(_0x336ae0,_0x1543ad,_0x1de7ab,_0x4f1682,_0x32e70f,_0x4c272f,_0x3b70bd,_0x9fd74b,_0x3e323b),this['_acknowledgedAwaitingRevision']=_0x205790,this['_queuedRemoteChangesets']=_0xa2406a,this[_0xfa104(0x1fd)]=_0x2866cf,this[_0xfa104(0x387)]=_0x2ffe16,this['_transformService']=_0x31a182,this[_0xfa104(0x274)]=_0x3e323b,g(this,_0xfa104(0x304),_0xfa104(0x3b8));}[_0x4c0aa4(0x225)](_0x177172){const _0x270c68=_0x4c0aa4;try{if(this[_0x270c68(0x406)](_0x177172)[_0x270c68(0x2a4)])throw Error(_0x270c68(0x4a4));if(this[_0x270c68(0x406)]([...this['_queuedRemoteChangesets']][_0x270c68(0x432)]((_0x1c1911,_0x172a93)=>_0x1c1911[_0x270c68(0x3b1)]-_0x172a93[_0x270c68(0x3b1)]))['missingChangesets'])return this[_0x270c68(0x284)]=[],this[_0x270c68(0x3b3)](),this[_0x270c68(0x3bf)][_0x270c68(0x254)]({'from':this[_0x270c68(0x3a0)](),'to':0x0}),this;let _0x1d9517=this[_0x270c68(0x2b7)],_0x317a3c=this[_0x270c68(0x34c)],_0x1622cf;if(_0x1d9517&&_0x317a3c[_0x270c68(0x1c9)]!==0x0)_0x1622cf=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](j,this['unitID'],this['type'],_0x1d9517,_0x317a3c,this[_0x270c68(0x3bf)],void 0x0);else{if(_0x1d9517&&_0x317a3c[_0x270c68(0x1c9)]===0x0)_0x1d9517[_0x270c68(0x314)]=this[_0x270c68(0x3a0)](),_0x1622cf=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](A,this['unitID'],this['type'],_0x1d9517,this['_handler']);else{if(_0x317a3c[_0x270c68(0x1c9)]!==0x0){let _0x5ed6aa=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](k,this[_0x270c68(0x426)],this[_0x270c68(0x27c)],_0x317a3c,this['_handler']);_0x5ed6aa[_0x270c68(0x1c0)](),_0x1622cf=_0x5ed6aa;}else _0x1622cf=this[_0x270c68(0x1fd)][_0x270c68(0x47e)](O,this[_0x270c68(0x426)],this['type'],this[_0x270c68(0x3bf)]);}}return _0x1622cf[_0x270c68(0x3b3)](),_0x1622cf;}catch(_0x5d264e){return this['_logService']['error'](_0x270c68(0x446),_0x270c68(0x483),_0x5d264e),this[_0x270c68(0x1fd)]['createInstance'](M,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x270c68(0x34c)],this[_0x270c68(0x3bf)],!0x1);}}[_0x4c0aa4(0x406)](_0x136805){const _0x43d28f=_0x4c0aa4;this[_0x43d28f(0x312)]();for(let _0xebb72f=0x0;_0xebb72f<_0x136805['length'];_0xebb72f++){let _0x3aaa1b=_0x136805[_0xebb72f],_0x483294=this[_0x43d28f(0x3a0)]();if(!(_0x3aaa1b['revision']<=_0x483294)){if(_0x3aaa1b['revision']>_0x483294+0x1)return{'missingChangesets':!0x0};if(this[_0x43d28f(0x2e7)](_0x3aaa1b)){this[_0x43d28f(0x341)]();continue;}this[_0x43d28f(0x19d)](_0x3aaa1b),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x4c0aa4(0x19d)](_0x2c4aaa){const _0x41a0d5=_0x4c0aa4;let _0xb5d169=_0x2c4aaa,_0x3dd466=this[_0x41a0d5(0x2b7)];if(_0x3dd466){let _0x1ed3c3=this[_0x41a0d5(0x2f4)][_0x41a0d5(0x38c)]([_0x2c4aaa],[_0x3dd466],!0x1);if(!(0x0,e[_0x41a0d5(0x47c)])(_0x1ed3c3))throw _0x1ed3c3[_0x41a0d5(0x338)];_0xb5d169=_0x1ed3c3[_0x41a0d5(0x3e8)][0x0],_0x3dd466=_0x1ed3c3['c2Prime'][0x0];}let _0x3b6dd5=this[_0x41a0d5(0x34c)];if(_0x3b6dd5[_0x41a0d5(0x1c9)]){let _0x5eea4c=this[_0x41a0d5(0x2f4)][_0x41a0d5(0x2e4)](_0xb5d169,_0x3b6dd5);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5eea4c))throw _0x5eea4c[_0x41a0d5(0x338)];_0xb5d169=_0x5eea4c[_0x41a0d5(0x3e8)],_0x3b6dd5=_0x5eea4c[_0x41a0d5(0x465)];}this['_executeRemoteChangeset'](_0xb5d169),_0x3dd466&&(_0x3dd466[_0x41a0d5(0x314)]=this[_0x41a0d5(0x3a0)]()),this[_0x41a0d5(0x2b7)]=_0x3dd466,this[_0x41a0d5(0x34c)]=_0x3b6dd5;}['_acknowledgeAwaitingIfReady'](){const _0xa66f76=_0x4c0aa4;if(!this[_0xa66f76(0x2b7)]||this[_0xa66f76(0x43f)]==null)return;let _0x3251e4=this[_0xa66f76(0x3a0)]();if(this['_acknowledgedAwaitingRevision']<=_0x3251e4)throw Error(_0xa66f76(0x2a3)+this[_0xa66f76(0x43f)]+'.');this[_0xa66f76(0x43f)]===_0x3251e4+0x1&&this['_acknowledgeAwaiting']();}[_0x4c0aa4(0x341)](){const _0x29e018=_0x4c0aa4;this[_0x29e018(0x411)](),this[_0x29e018(0x2b7)]=null,this[_0x29e018(0x43f)]=null;}[_0x4c0aa4(0x2e7)](_0x5e25cd){const _0x290d32=_0x4c0aa4;let _0x2a13a9=this[_0x290d32(0x2b7)];return!_0x2a13a9||!_0x2a13a9[_0x290d32(0x1a3)]||_0x2a13a9[_0x290d32(0x2be)]===null||_0x2a13a9[_0x290d32(0x2be)]===void 0x0?!0x1:_0x5e25cd['unitID']===_0x2a13a9[_0x290d32(0x426)]&&_0x5e25cd[_0x290d32(0x1a3)]===_0x2a13a9['sid']&&_0x5e25cd[_0x290d32(0x2be)]===_0x2a13a9['reqId'];}[_0x4c0aa4(0x1f9)](){const _0x5c3f74=_0x4c0aa4;throw Error(_0x5c3f74(0x405));}['appendMutation'](_0x428478){const _0x595f0a=_0x4c0aa4;return this[_0x595f0a(0x34c)][_0x595f0a(0x1e4)](_0x428478),this;}[_0x4c0aa4(0x324)](_0x1150ea){const _0x28e5d5=_0x4c0aa4;return this['_queuedRemoteChangesets'][_0x28e5d5(0x1e4)](_0x1150ea),this;}['onRemoteAck'](_0xaabc7b){const _0x102605=_0x4c0aa4;if(this['_awaitingChangeset']){let _0x12e464=this[_0x102605(0x3a0)]();return _0xaabc7b[_0x102605(0x3b1)]<=_0x12e464||(_0x12e464+0x1===_0xaabc7b[_0x102605(0x3b1)]?(this[_0x102605(0x411)](),this[_0x102605(0x2b7)]=null,this['_acknowledgedAwaitingRevision']=null):this['_acknowledgedAwaitingRevision']=_0xaabc7b[_0x102605(0x3b1)]),this;}if(_0xaabc7b[_0x102605(0x3b1)]<=this[_0x102605(0x3a0)]())return this;throw Error(_0x102605(0x329));}[_0x4c0aa4(0x376)](_0x195b9c){const _0x1d0836=_0x4c0aa4;return this[_0x1d0836(0x199)](!!(_0x195b9c!=null&&_0x195b9c[_0x1d0836(0x1d9)]));}[_0x4c0aa4(0x18d)](){return this;}[_0x4c0aa4(0x247)](){const _0x376236=_0x4c0aa4;return this[_0x376236(0x1fd)]['createInstance'](N,this['unitID'],this[_0x376236(0x27c)],this[_0x376236(0x2b7)],this['_pendingMutations'],this[_0x376236(0x3bf)]);}[_0x4c0aa4(0x3e6)](){return this;}[_0x4c0aa4(0x199)](_0x1aeab9){const _0x27b142=_0x4c0aa4;return this[_0x27b142(0x1fd)]['createInstance'](M,this[_0x27b142(0x426)],this['type'],this[_0x27b142(0x2b7)],this[_0x27b142(0x34c)],this[_0x27b142(0x3bf)],_0x1aeab9);}};P=y([v(0x7,(0x0,t['Inject'])(t[_0x4c0aa4(0x2c0)])),v(0x8,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t[_0x4c0aa4(0x267)]),v(0xc,e[_0x4c0aa4(0x34f)]),v(0xd,(0x0,t['Optional'])(S))],P);function Ue(_0x16d283,_0x45db96,_0x5be5cb,_0x43718a,_0x20fd9c,_0x54e7ad){const _0x5d1fa6=_0x4c0aa4;return _0x43718a&&_0x20fd9c[_0x5d1fa6(0x1c9)]?_0x16d283[_0x5d1fa6(0x47e)](j,_0x45db96,_0x5be5cb,_0x43718a,_0x20fd9c,_0x54e7ad,void 0x0):_0x43718a?_0x16d283['createInstance'](A,_0x45db96,_0x5be5cb,_0x43718a,_0x54e7ad):_0x20fd9c[_0x5d1fa6(0x1c9)]?_0x16d283[_0x5d1fa6(0x47e)](k,_0x45db96,_0x5be5cb,_0x20fd9c,_0x54e7ad):_0x16d283[_0x5d1fa6(0x47e)](O,_0x45db96,_0x5be5cb,_0x54e7ad);}let F=class extends t[_0x4c0aa4(0x31c)]{get[_0x4c0aa4(0x45e)](){const _0x579c02=_0x4c0aa4;return this[_0x579c02(0x33e)];}constructor(_0x2ad3f5,_0x2c9cca,_0x4bb796,_0x184609,_0x3defcd,_0x49de52,_0x4670cb,_0x8dd30f,_0x55a251,_0x325ef6,_0x4b77cb,_0x5b2f63,_0x5eb270,_0x4a7c56){const _0x19bce2=_0x4c0aa4;super(),this[_0x19bce2(0x426)]=_0x2ad3f5,this[_0x19bce2(0x458)]=_0x2c9cca,this['_type']=_0x4bb796,this[_0x19bce2(0x1fd)]=_0x184609,this['_compressMutationService']=_0x3defcd,this['_localeService']=_0x49de52,this[_0x19bce2(0x224)]=_0x4670cb,this[_0x19bce2(0x1f7)]=_0x8dd30f,this[_0x19bce2(0x294)]=_0x55a251,this['_logService']=_0x325ef6,this[_0x19bce2(0x440)]=_0x4b77cb,this[_0x19bce2(0x3ee)]=_0x5b2f63,this[_0x19bce2(0x42f)]=_0x5eb270,this[_0x19bce2(0x2c4)]=_0x4a7c56,g(this,_0x19bce2(0x2f6),new i['BehaviorSubject'](null)),g(this,'state$',this['_state$']['asObservable']()),g(this,_0x19bce2(0x33e),void 0x0),g(this,_0x19bce2(0x226),!0x1),g(this,'_changesetSessionId',''),g(this,'_changesetReqId',0x0),g(this,'status$',this[_0x19bce2(0x268)][_0x19bce2(0x331)]((0x0,i[_0x19bce2(0x1c8)])(_0x12f819=>_0x12f819?_0x12f819[_0x19bce2(0x304)]:_0x19bce2(0x1d4)),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x19bce2(0x310),!0x1),g(this,_0x19bce2(0x388),[]);}async[_0x4c0aa4(0x30d)](){const _0xf9ee9b=_0x4c0aa4;if(this[_0xf9ee9b(0x45e)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0xf9ee9b(0x1f1)]();}[_0x4c0aa4(0x1ee)](){const _0x1dc56e=_0x4c0aa4;return this['_collaborationPaused']=!0x0,(0x0,t[_0x1dc56e(0x2c3)])(()=>{const _0x19fec9=_0x1dc56e;this[_0x19fec9(0x226)]=!0x1,this[_0x19fec9(0x2c8)]();});}[_0x4c0aa4(0x24e)](_0x1187af){const _0xe219e8=_0x4c0aa4;this[_0xe219e8(0x1eb)](_0x1187af);}[_0x4c0aa4(0x370)](_0x5b5b7b){const _0x408eef=_0x4c0aa4;this['_state']=_0x5b5b7b,this[_0x408eef(0x2f6)][_0x408eef(0x201)](_0x5b5b7b);}async[_0x4c0aa4(0x1f1)](){const _0x554f8a=_0x4c0aa4;if(this[_0x554f8a(0x370)](await this[_0x554f8a(0x253)]()),this[_0x554f8a(0x42f)]){var _0x4167f3;(_0x4167f3=this[_0x554f8a(0x42f)])==null||_0x4167f3[_0x554f8a(0x445)](this[_0x554f8a(0x426)]),this[_0x554f8a(0x38b)](this[_0x554f8a(0x42f)][_0x554f8a(0x3cf)](this['unitID'])[_0x554f8a(0x3a4)](_0x312134=>{const _0x357f33=_0x554f8a;this[_0x357f33(0x387)][_0x357f33(0x2d4)](_0x357f33(0x22e),'editing\x20status\x20changed\x20to',_0x312134),_0x312134===0x1?(this[_0x357f33(0x1f7)]['emitEvent']({'id':_0x357f33(0x1e8)}),this['_permissionService'][_0x357f33(0x4a6)](new r[(_0x357f33(0x2fa))](this['unitID'])['id'],!0x1),this[_0x357f33(0x3ee)]['setShowComponents'](!0x1)):(this[_0x357f33(0x3ee)][_0x357f33(0x4a6)](new r[(_0x357f33(0x2fa))](this[_0x357f33(0x426)])['id'],!0x0),this[_0x357f33(0x3ee)][_0x357f33(0x20c)](!0x0));}));}let _0x226098=!0x1;return this[_0x554f8a(0x38b)](this[_0x554f8a(0x458)]['sessionStatus$'][_0x554f8a(0x3a4)](_0x3f2caa=>{const _0x422a96=_0x554f8a;_0x3f2caa===0x3?this[_0x422a96(0x417)](_0x226098):_0x3f2caa===0x2&&(_0x226098=!0x0,this['_toggleOffline']());})),this[_0x554f8a(0x38b)](this['session'][_0x554f8a(0x32b)][_0x554f8a(0x3a4)](_0x4a1400=>{const _0x195148=_0x554f8a;try{switch(_0x4a1400[_0x195148(0x23b)]){case e[_0x195148(0x439)][_0x195148(0x3e5)]:this[_0x195148(0x281)]((0x0,e[_0x195148(0x4ab)])(_0x4a1400[_0x195148(0x233)]));break;case e[_0x195148(0x439)][_0x195148(0x343)]:this[_0x195148(0x20f)](_0x4a1400[_0x195148(0x233)]);break;case e['CollaborationEvent'][_0x195148(0x43d)]:this[_0x195148(0x197)]();break;case e[_0x195148(0x439)][_0x195148(0x219)]:this[_0x195148(0x3a8)](_0x4a1400[_0x195148(0x233)]);break;case e[_0x195148(0x439)][_0x195148(0x342)]:this[_0x195148(0x3cc)](_0x4a1400[_0x195148(0x233)][_0x195148(0x1dd)][_0x195148(0x1c8)](_0x19aef5=>(0x0,e[_0x195148(0x4ab)])(_0x19aef5)));break;case e[_0x195148(0x439)][_0x195148(0x190)]:this[_0x195148(0x197)]({'isPermissionRej':!0x0});break;case e[_0x195148(0x439)][_0x195148(0x1cf)]:break;}}catch(_0x37e7ee){throw console['error'](_0x195148(0x34b),_0x37e7ee),_0x37e7ee;}})),this['_state'];}[_0x4c0aa4(0x35f)](){const _0x46a89f=_0x4c0aa4;this[_0x46a89f(0x310)]=!0x1;}['_lockTransition'](){const _0x54dd0d=_0x4c0aa4;if(this[_0x54dd0d(0x310)])throw Error(_0x54dd0d(0x1b1));this[_0x54dd0d(0x310)]=!0x0;}[_0x4c0aa4(0x1eb)](_0x2b2856){const _0x2ce145=_0x4c0aa4;this['_lockTransition'](),this[_0x2ce145(0x370)](this[_0x2ce145(0x33e)][_0x2ce145(0x238)](_0x2b2856)),this[_0x2ce145(0x35f)]();}[_0x4c0aa4(0x281)](_0x322f44){const _0x125c88=_0x4c0aa4;if(!(_0x322f44[_0x125c88(0x3b1)]<=this[_0x125c88(0x224)][_0x125c88(0x25c)](this[_0x125c88(0x426)]))){if(this[_0x125c88(0x226)]){this['_remoteChangesetQueue'][_0x125c88(0x1e4)](_0x322f44);return;}this['_applyRemoteChangeset'](_0x322f44);}}[_0x4c0aa4(0x2c8)](){const _0x3bd0c5=_0x4c0aa4;this[_0x3bd0c5(0x388)][_0x3bd0c5(0x1a5)](_0x1ff5bf=>this[_0x3bd0c5(0x47b)](_0x1ff5bf)),this[_0x3bd0c5(0x388)]=[];}[_0x4c0aa4(0x47b)](_0xb77da4){const _0x4dd870=_0x4c0aa4;let _0x437515=this['_compressMutationService'][_0x4dd870(0x42d)][_0x4dd870(0x2ad)](this[_0x4dd870(0x39e)]['interceptor'][_0x4dd870(0x1f3)]()[_0x4dd870(0x220)])(_0xb77da4['mutations'],null)||_0xb77da4['mutations'],_0xe74ec2={..._0xb77da4,'mutations':_0x437515};this[_0x4dd870(0x2a6)](),this[_0x4dd870(0x370)](this[_0x4dd870(0x33e)]['onRemoteChangeset'](_0xe74ec2)),this[_0x4dd870(0x35f)]();}[_0x4c0aa4(0x20f)](_0x5d8ff4){const _0x4e7496=_0x4c0aa4;this[_0x4e7496(0x2a6)](),this['_updateState'](this[_0x4e7496(0x33e)][_0x4e7496(0x191)](_0x5d8ff4)),this[_0x4e7496(0x35f)]();}[_0x4c0aa4(0x197)](_0x450e18){const _0x576695=_0x4c0aa4;this['_lockTransition'](),this[_0x576695(0x370)](this[_0x576695(0x33e)][_0x576695(0x376)](_0x450e18)),this[_0x576695(0x35f)]();}['_onRemoteRetry'](_0x15c448){const _0x2c0860=_0x4c0aa4;this[_0x2c0860(0x2a6)](),this[_0x2c0860(0x370)](this['_state'][_0x2c0860(0x18d)](_0x15c448)),this[_0x2c0860(0x35f)]();}[_0x4c0aa4(0x3cc)](_0x4a91e2){const _0xfb3440=_0x4c0aa4;if(!(this[_0xfb3440(0x33e)]instanceof P))throw TypeError(_0xfb3440(0x4a0));let _0x56b1a5=_0x4a91e2[_0xfb3440(0x1c8)](_0x3c13c7=>{const _0x1274fd=_0xfb3440;let _0x28edc7=this[_0x1274fd(0x39e)][_0x1274fd(0x42d)][_0x1274fd(0x2ad)](this[_0x1274fd(0x39e)][_0x1274fd(0x42d)][_0x1274fd(0x1f3)]()[_0x1274fd(0x220)])(_0x3c13c7[_0x1274fd(0x4a9)],null)||_0x3c13c7[_0x1274fd(0x4a9)];return{..._0x3c13c7,'mutations':_0x28edc7};});this[_0xfb3440(0x2a6)](),this[_0xfb3440(0x370)](this['_state'][_0xfb3440(0x225)](_0x56b1a5)),this[_0xfb3440(0x35f)]();}[_0x4c0aa4(0x322)](){const _0x1ddbf7=_0x4c0aa4;this[_0x1ddbf7(0x2a6)](),this[_0x1ddbf7(0x370)](this[_0x1ddbf7(0x33e)][_0x1ddbf7(0x247)]()),this[_0x1ddbf7(0x35f)]();}[_0x4c0aa4(0x417)](_0x2a17e6=!0x1){const _0x4604a2=_0x4c0aa4;this[_0x4604a2(0x2a6)](),this[_0x4604a2(0x370)](this[_0x4604a2(0x33e)][_0x4604a2(0x3e6)]()),this['_unlockTransition']();let _0x732000=this[_0x4604a2(0x33e)];_0x2a17e6&&_0x732000 instanceof O&&(this['_lockTransition'](),this['_updateState'](_0x732000[_0x4604a2(0x1db)]()),this['_unlockTransition']());}async[_0x4c0aa4(0x253)](){return new Promise(_0x1c1653=>{const _0x4ba59b=_0x290d;this[_0x4ba59b(0x458)][_0x4ba59b(0x457)][_0x4ba59b(0x331)]((0x0,i[_0x4ba59b(0x1d8)])(0x1))[_0x4ba59b(0x3a4)](async _0x13f0a4=>{const _0x23b584=_0x4ba59b;_0x1c1653(await this[_0x23b584(0x44a)](_0x13f0a4===0x3));});});}[_0x4c0aa4(0x33c)](){const _0x22a8a4=_0x4c0aa4;let _0x468e6f=this[_0x22a8a4(0x426)];return{'onStateChange':(_0x262d10,_0x4faffe)=>{const _0x386b7c=_0x22a8a4;if(_0x262d10!==this[_0x386b7c(0x33e)])throw Error(_0x386b7c(0x335)+_0x262d10[_0x386b7c(0x304)]+_0x386b7c(0x299)+_0x4faffe[_0x386b7c(0x304)]+'\x0aCurrent:\x20'+this[_0x386b7c(0x33e)][_0x386b7c(0x304)]);this['_updateState'](_0x4faffe);},'onSendChangeset':_0x12d4d0=>{const _0x2ab4eb=_0x22a8a4;_0x12d4d0[_0x2ab4eb(0x1a3)]||(_0x12d4d0[_0x2ab4eb(0x1a3)]=this['_changesetSessionId'],_0x12d4d0['reqId']=++this[_0x2ab4eb(0x1ba)]);let _0x2878b1={'eventID':e[_0x2ab4eb(0x439)][_0x2ab4eb(0x2bf)],'data':{'unitID':_0x12d4d0[_0x2ab4eb(0x426)],'unitType':this['_type'],'changeset':_0x12d4d0,'memberID':this['session'][_0x2ab4eb(0x323)]()}};this['session'][_0x2ab4eb(0x29c)](_0x2878b1,this[_0x2ab4eb(0x426)]);},'onMissingChangesets':({from:_0xb84ce1,to:_0x30f854})=>{const _0x55f7e1=_0x22a8a4;this[_0x55f7e1(0x387)][_0x55f7e1(0x2d4)](_0x55f7e1(0x22e),_0x55f7e1(0x2c9)+_0xb84ce1+'\x20to\x20'+_0x30f854);let _0x10fa16={'eventID':e['CollaborationEvent'][_0x55f7e1(0x485)],'data':{'unitID':_0x468e6f,'unitType':this[_0x55f7e1(0x235)],'from':_0xb84ce1,'to':_0x30f854}};this[_0x55f7e1(0x458)]['send'](_0x10fa16,this['unitID']);}};}async[_0x4c0aa4(0x44a)](_0x297190){const _0x2b54cb=_0x4c0aa4;var _0x4075e2,_0x333a69,_0x3d7f14;let _0x1024f8=await((_0x4075e2=this[_0x2b54cb(0x2c4)])==null?void 0x0:_0x4075e2[_0x2b54cb(0x37c)](this[_0x2b54cb(0x426)])),_0x3ea009=(_0x333a69=_0x1024f8==null?void 0x0:_0x1024f8[_0x2b54cb(0x4a9)])==null?[]:_0x333a69,_0x265876=(_0x3d7f14=_0x1024f8==null?void 0x0:_0x1024f8[_0x2b54cb(0x3e0)])==null?null:_0x3d7f14,_0x41a179=!!(_0x265876!=null&&_0x265876[_0x2b54cb(0x1a3)])&&!!(_0x265876!=null&&_0x265876['reqId']);this[_0x2b54cb(0x265)]=_0x41a179?_0x265876[_0x2b54cb(0x1a3)]:(0x0,e[_0x2b54cb(0x397)])(),this[_0x2b54cb(0x1ba)]=_0x41a179?_0x265876[_0x2b54cb(0x2be)]:0x0;let _0x346b5c=this[_0x2b54cb(0x426)];try{this['_replayCachedMutations'](_0x265876,_0x3ea009);}catch(_0x1c6112){this['_logService'][_0x2b54cb(0x338)](_0x1c6112);}let _0xe6888b=this[_0x2b54cb(0x33c)]();if(_0x297190){let _0x2673f4=Ue(this['_injector'],_0x346b5c,this[_0x2b54cb(0x235)],_0x265876,_0x3ea009,_0xe6888b);return _0x2673f4 instanceof k?_0x2673f4[_0x2b54cb(0x1c0)]():(_0x2673f4 instanceof j||_0x2673f4 instanceof A)&&_0x2673f4[_0x2b54cb(0x1f9)](),_0x2673f4;}return this[_0x2b54cb(0x1fd)][_0x2b54cb(0x47e)](N,_0x346b5c,this[_0x2b54cb(0x235)],_0x265876,_0x3ea009,_0xe6888b);}['_replayCachedMutations'](_0x4333f9,_0x2297a1){const _0x11ff13=_0x4c0aa4;var _0x1c86bf,_0x3d7f31;let _0x397d36=this[_0x11ff13(0x39e)]['interceptor'][_0x11ff13(0x2ad)](this[_0x11ff13(0x39e)]['interceptor'][_0x11ff13(0x1f3)]()[_0x11ff13(0x220)]);(_0x1c86bf=_0x397d36((_0x4333f9==null?void 0x0:_0x4333f9[_0x11ff13(0x4a9)])||[],null))==null||_0x1c86bf[_0x11ff13(0x1a5)](_0x371e16=>this[_0x11ff13(0x440)][_0x11ff13(0x23c)](_0x371e16['id'],_0x371e16[_0x11ff13(0x31e)])),(_0x3d7f31=_0x397d36(_0x2297a1||[],null))==null||_0x3d7f31[_0x11ff13(0x1a5)](_0x14dc42=>this[_0x11ff13(0x440)][_0x11ff13(0x23c)](_0x14dc42['id'],_0x14dc42[_0x11ff13(0x31e)]));}};F=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t['Inject'])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t['Inject'])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t[_0x4c0aa4(0x1e5)]),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(S))],F);let I=class extends F{constructor(_0x314cc5,_0x22a8d9,_0x2fe924,_0x189334,_0x23a022,_0x2c25be,_0x538829,_0x539a01,_0x459bc1,_0xd28159,_0x5b7300,_0xfbd7ba,_0x5bb5d1,_0x5be432,_0x3f40e0){const _0x172bef=_0x4c0aa4;super(_0x314cc5,_0x2fe924,_0x22a8d9,_0x189334,_0x23a022,_0x2c25be,_0x538829,_0x539a01,_0x459bc1,_0xd28159,_0x5b7300,_0xfbd7ba,_0x5be432,_0x3f40e0),this[_0x172bef(0x426)]=_0x314cc5,this[_0x172bef(0x27c)]=_0x22a8d9,this['_docStateChangeManagerService']=_0x5bb5d1,g(this,_0x172bef(0x3af),null);}[_0x4c0aa4(0x1af)](_0x14d44c){const _0x2c6e6c=_0x4c0aa4;this[_0x2c6e6c(0x3af)]=_0x14d44c;}[_0x4c0aa4(0x28d)](){const _0x394c02=_0x4c0aa4;this[_0x394c02(0x3af)]=null,super['dispose']();}['_createHandler'](){const _0x52ea61=_0x4c0aa4;let _0x569995=super['_createHandler']();return _0x569995['onTransformIME']=_0x3d306c=>{const _0x2dfe92=_0x290d;var _0x3b461e,_0x45a05e;return(_0x3b461e=this['_handlerCallback'])==null||(_0x45a05e=_0x3b461e[_0x2dfe92(0x306)])==null?void 0x0:_0x45a05e[_0x2dfe92(0x475)](_0x3b461e,_0x3d306c);},_0x569995[_0x52ea61(0x3bb)]=_0x5883db=>{const _0x4c113a=_0x52ea61;var _0x4b6d92,_0x38f8c9;return(_0x4b6d92=this['_handlerCallback'])==null||(_0x38f8c9=_0x4b6d92[_0x4c113a(0x3bb)])==null?void 0x0:_0x38f8c9[_0x4c113a(0x475)](_0x4b6d92,_0x5883db);},_0x569995[_0x52ea61(0x1b3)]=_0x4fb172=>{const _0xbd4024=_0x52ea61;var _0x51aebb,_0x5f022c;return(_0x51aebb=this[_0xbd4024(0x3af)])==null||(_0x5f022c=_0x51aebb['onTransformSelections'])==null?void 0x0:_0x5f022c[_0xbd4024(0x475)](_0x51aebb,_0x4fb172);},_0x569995[_0x52ea61(0x3d2)]=_0x2e3d74=>{const _0x3436f6=_0x52ea61;var _0x2c07d3,_0x188606;return(_0x2c07d3=this['_handlerCallback'])==null||(_0x188606=_0x2c07d3[_0x3436f6(0x3d2)])==null?void 0x0:_0x188606['call'](_0x2c07d3,_0x2e3d74);},_0x569995['onTransformRemoteChangesetByIMECache']=_0x4ddded=>{const _0x1dafee=_0x52ea61;var _0x565f82,_0x3ef62c,_0xfcf7bc;return(_0x565f82=(_0x3ef62c=this['_handlerCallback'])==null||(_0xfcf7bc=_0x3ef62c['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0xfcf7bc[_0x1dafee(0x475)](_0x3ef62c,_0x4ddded))==null?_0x4ddded:_0x565f82;},_0x569995[_0x52ea61(0x1b4)]=_0x1b25be=>{const _0x473eef=_0x52ea61;var _0xac7e3f,_0x423702,_0x5f17f2;return(_0xac7e3f=(_0x423702=this['_handlerCallback'])==null||(_0x5f17f2=_0x423702[_0x473eef(0x1b4)])==null?void 0x0:_0x5f17f2[_0x473eef(0x475)](_0x423702,_0x1b25be))==null?_0x1b25be:_0xac7e3f;},_0x569995;}async['_init'](){const _0x5b6ef8=_0x4c0aa4;let _0x61a445=await super[_0x5b6ef8(0x1f1)]();return this[_0x5b6ef8(0x38b)](this[_0x5b6ef8(0x2fc)][_0x5b6ef8(0x3fd)][_0x5b6ef8(0x3a4)](_0x4acfcc=>{const _0x158e46=_0x5b6ef8;if(_0x4acfcc==null||_0x4acfcc['unitId']!==this[_0x158e46(0x426)])return;let {commandId:_0x239bb2,redoState:_0x18560d,unitId:_0x4451cb}=_0x4acfcc,_0x311ffe={'id':_0x239bb2,'type':t['CommandType'][_0x158e46(0x337)],'params':{'unitId':_0x4451cb,'actions':_0x18560d['actions'],'textRanges':null}};this['_onLocalMutation'](_0x311ffe);})),this['disposeWithMe'](this['_commandService']['onMutationExecutedForCollab']((_0x15cc16,_0x499ee6)=>{const _0x300892=_0x5b6ef8;if(_0x15cc16[_0x300892(0x27c)]!==t[_0x300892(0x492)][_0x300892(0x337)]||_0x499ee6!=null&&_0x499ee6['fromCollab']||_0x499ee6!=null&&_0x499ee6[_0x300892(0x40f)]||_0x15cc16['id']===n[_0x300892(0x375)]['id'])return;let _0x4d063d=_0x15cc16[_0x300892(0x31e)];if((_0x4d063d==null?void 0x0:_0x4d063d[_0x300892(0x211)])!==this['unitID'])return;let _0x1fd540=_0x15cc16,_0x2df754=this[_0x300892(0x39e)][_0x300892(0x42d)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x300892(0x42d)][_0x300892(0x1f3)]()[_0x300892(0x3ad)])([_0x1fd540],this[_0x300892(0x294)])||[_0x1fd540];this[_0x300892(0x1eb)](_0x2df754[0x0]);})),_0x61a445;}};I=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x4c0aa4(0x351)])(n[_0x4c0aa4(0x3c4)])),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xe,(0x0,t[_0x4c0aa4(0x37d)])(S))],I);let L=class extends F{constructor(_0x22061d,_0xbdf5b,_0x42dd6a,_0x1bdcc1,_0x12329f,_0x537b36,_0x454915,_0x20ec3d,_0x2e2d12,_0x226e28,_0x4cc136,_0x1c3e75,_0x13e4bc,_0x562738){const _0x5b1f33=_0x4c0aa4;super(_0x22061d,_0x42dd6a,_0xbdf5b,_0x1bdcc1,_0x12329f,_0x537b36,_0x454915,_0x20ec3d,_0x2e2d12,_0x226e28,_0x4cc136,_0x1c3e75,_0x13e4bc,_0x562738),this[_0x5b1f33(0x426)]=_0x22061d,this[_0x5b1f33(0x27c)]=_0xbdf5b;}async[_0x4c0aa4(0x1f1)](){const _0x22d1b8=_0x4c0aa4;let _0x7c8db6=await super[_0x22d1b8(0x1f1)]();return this[_0x22d1b8(0x38b)](this[_0x22d1b8(0x440)][_0x22d1b8(0x3bd)]((_0x1a99a5,_0x4839d3)=>{const _0x1635df=_0x22d1b8;if(_0x1a99a5[_0x1635df(0x27c)]!==t[_0x1635df(0x492)][_0x1635df(0x337)]||_0x4839d3!=null&&_0x4839d3[_0x1635df(0x396)]||_0x4839d3!=null&&_0x4839d3['onlyLocal'])return;let _0x3c1ae9=_0x1a99a5[_0x1635df(0x31e)];if((_0x3c1ae9==null?void 0x0:_0x3c1ae9['unitId'])!==this['unitID'])return;let _0x189a26=_0x1a99a5,_0x390c6b=this[_0x1635df(0x39e)][_0x1635df(0x42d)][_0x1635df(0x2ad)](this['_compressMutationService'][_0x1635df(0x42d)]['getInterceptPoints']()[_0x1635df(0x3ad)])([_0x189a26],this[_0x1635df(0x294)])||[_0x189a26];this[_0x1635df(0x1eb)](_0x390c6b[0x0]);})),_0x7c8db6;}};L=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t[_0x4c0aa4(0x31d)]),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(S))],L);let R=class extends F{constructor(_0x5e4678,_0x217c5b,_0x196468,_0x3d3123,_0x57ee22,_0x39469d,_0xabd2d2,_0x5cebad,_0x2698e5,_0x2f5ce6,_0x420b99,_0x24a693,_0x45b886,_0x5094ed,_0x4016f5){const _0x167e8b=_0x4c0aa4;super(_0x5e4678,_0x196468,_0x217c5b,_0x3d3123,_0x57ee22,_0x39469d,_0xabd2d2,_0x2698e5,_0x2f5ce6,_0x420b99,_0x24a693,_0x45b886,_0x5094ed,_0x4016f5),this['unitID']=_0x5e4678,this[_0x167e8b(0x27c)]=_0x217c5b,this['_sheetTransformSelectionsService']=_0x5cebad;}[_0x4c0aa4(0x33c)](){const _0x571e4f=_0x4c0aa4;let _0x13b567=super[_0x571e4f(0x33c)]();return _0x13b567[_0x571e4f(0x1b3)]=_0xccec68=>this['_sheetTransformSelectionsService'][_0x571e4f(0x270)](_0xccec68),_0x13b567;}async[_0x4c0aa4(0x1f1)](){const _0x19cfed=_0x4c0aa4;let _0x2f2c4a=await super['_init']();return this['disposeWithMe'](this[_0x19cfed(0x440)][_0x19cfed(0x3bd)]((_0xd957d7,_0x20f340)=>{const _0x3e7636=_0x19cfed;if(_0xd957d7['type']!==t['CommandType']['MUTATION']||_0x20f340!=null&&_0x20f340['fromCollab']||_0x20f340!=null&&_0x20f340['onlyLocal'])return;let _0x1c4037=_0xd957d7[_0x3e7636(0x31e)];if((_0x1c4037==null?void 0x0:_0x1c4037['unitId'])!==this[_0x3e7636(0x426)])return;let _0x5337f2=_0xd957d7,_0x518d83=this['_compressMutationService'][_0x3e7636(0x42d)][_0x3e7636(0x2ad)](this[_0x3e7636(0x39e)][_0x3e7636(0x42d)]['getInterceptPoints']()[_0x3e7636(0x3ad)])([_0x5337f2],this[_0x3e7636(0x294)])||[_0x5337f2];this[_0x3e7636(0x1eb)](_0x518d83[0x0]);})),_0x2f2c4a;}};R=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t['Inject'])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e['RevisionService'])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(C)),v(0x8,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x9,t[_0x4c0aa4(0x31d)]),v(0xa,t[_0x4c0aa4(0x2f9)]),v(0xb,t[_0x4c0aa4(0x416)]),v(0xc,t[_0x4c0aa4(0x1e5)]),v(0xd,(0x0,t['Optional'])(w)),v(0xe,(0x0,t['Optional'])(S))],R);let z=class extends F{constructor(_0xeffdaa,_0x2ebb14,_0x34afa5,_0x51b123,_0x4bec17,_0xce1a4f,_0x17dcf8,_0x50e63e,_0x5dbcca,_0x428027,_0xd09f27,_0x4f0f20,_0x4b3933,_0xad27c9){const _0x3cd863=_0x4c0aa4;super(_0xeffdaa,_0x34afa5,_0x2ebb14,_0x51b123,_0x4bec17,_0xce1a4f,_0x17dcf8,_0x50e63e,_0x5dbcca,_0x428027,_0xd09f27,_0x4f0f20,_0x4b3933,_0xad27c9),this[_0x3cd863(0x426)]=_0xeffdaa,this['type']=_0x2ebb14;}async[_0x4c0aa4(0x1f1)](){const _0x2c8d3f=_0x4c0aa4;let _0x1a0b98=await super[_0x2c8d3f(0x1f1)]();return this[_0x2c8d3f(0x38b)](this[_0x2c8d3f(0x440)]['onMutationExecutedForCollab']((_0x183873,_0x38fdd8)=>{const _0x151de6=_0x2c8d3f;if(_0x183873[_0x151de6(0x27c)]!==t[_0x151de6(0x492)]['MUTATION']||_0x38fdd8!=null&&_0x38fdd8[_0x151de6(0x396)]||_0x38fdd8!=null&&_0x38fdd8[_0x151de6(0x40f)])return;let _0x446e90=_0x183873[_0x151de6(0x31e)];if((_0x446e90==null?void 0x0:_0x446e90[_0x151de6(0x211)])!==this[_0x151de6(0x426)])return;let _0x25cdb8=_0x183873,_0x5f2f8a=this[_0x151de6(0x39e)][_0x151de6(0x42d)][_0x151de6(0x2ad)](this['_compressMutationService'][_0x151de6(0x42d)][_0x151de6(0x1f3)]()[_0x151de6(0x3ad)])([_0x25cdb8],this[_0x151de6(0x294)])||[_0x25cdb8];this['_onLocalMutation'](_0x5f2f8a[0x0]);})),_0x1a0b98;}};z=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t[_0x4c0aa4(0x351)])(_)),v(0x8,t[_0x4c0aa4(0x31d)]),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t[_0x4c0aa4(0x416)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t['Optional'])(S))],z);let B=class extends F{constructor(_0x2b80e8,_0x311b5f,_0x51e7f7,_0x44b32b,_0x20eb97,_0x5bab7c,_0x3071bb,_0x24a08a,_0xa71c51,_0x5c7aca,_0x346520,_0x275585,_0x28e129,_0x2ae222){const _0x25b56c=_0x4c0aa4;super(_0x2b80e8,_0x51e7f7,_0x311b5f,_0x44b32b,_0x20eb97,_0x5bab7c,_0x3071bb,_0x24a08a,_0xa71c51,_0x5c7aca,_0x346520,_0x275585,_0x28e129,_0x2ae222),this[_0x25b56c(0x426)]=_0x2b80e8,this[_0x25b56c(0x27c)]=_0x311b5f;}async[_0x4c0aa4(0x1f1)](){const _0x48c03e=_0x4c0aa4;let _0x572af3=await super[_0x48c03e(0x1f1)]();return this['disposeWithMe'](this[_0x48c03e(0x440)][_0x48c03e(0x3bd)]((_0x3812e1,_0x439621)=>{const _0x13042c=_0x48c03e;if(_0x3812e1[_0x13042c(0x27c)]!==t['CommandType'][_0x13042c(0x337)]||_0x439621!=null&&_0x439621[_0x13042c(0x396)]||_0x439621!=null&&_0x439621[_0x13042c(0x40f)])return;let _0x3a907d=_0x3812e1['params'];if((_0x3a907d==null?void 0x0:_0x3a907d[_0x13042c(0x211)])!==this[_0x13042c(0x426)])return;let _0x7244d1=_0x3812e1,_0x56ddfa=this[_0x13042c(0x39e)][_0x13042c(0x42d)][_0x13042c(0x2ad)](this[_0x13042c(0x39e)][_0x13042c(0x42d)][_0x13042c(0x1f3)]()[_0x13042c(0x3ad)])([_0x7244d1],this['_univerInstanceService'])||[_0x7244d1];this[_0x13042c(0x1eb)](_0x56ddfa[0x0]);})),_0x572af3;}};B=y([v(0x3,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x4,(0x0,t['Inject'])(e[_0x4c0aa4(0x33d)])),v(0x5,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)])),v(0x6,(0x0,t[_0x4c0aa4(0x351)])(e[_0x4c0aa4(0x252)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x4c0aa4(0x2f9)]),v(0xa,t['ICommandService']),v(0xb,t[_0x4c0aa4(0x1e5)]),v(0xc,(0x0,t[_0x4c0aa4(0x37d)])(w)),v(0xd,(0x0,t[_0x4c0aa4(0x37d)])(S))],B);const We=(0x0,t['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function Ge(_0x438d98){const _0x2f06c2=_0x4c0aa4;let _0x543646=_0x438d98[_0x2f06c2(0x233)],_0x1c1de2=JSON['parse'](_0x543646);switch(_0x1c1de2['cmd']){case a[_0x2f06c2(0x2db)][_0x2f06c2(0x205)]:case a['CombCmd']['HELLO']:{let _0x18501b=_0x1c1de2[_0x2f06c2(0x195)];return{..._0x1c1de2,'data':_0x18501b,'cmd':_0x1c1de2['cmd']};}case a[_0x2f06c2(0x2db)][_0x2f06c2(0x383)]:{let _0x164f8a=_0x1c1de2['joinRsp'];return{..._0x1c1de2,'data':_0x164f8a,'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};}case a[_0x2f06c2(0x2db)]['RECV']:{let _0x4f3a18=_0x1c1de2[_0x2f06c2(0x27d)];switch(_0x4f3a18[_0x2f06c2(0x23b)]){case e[_0x2f06c2(0x439)][_0x2f06c2(0x190)]:var _0x3dde2a;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x3dde2a=_0x4f3a18[_0x2f06c2(0x264)])==null?void 0x0:_0x3dde2a['cs']},'cmd':_0x1c1de2['cmd']};case e['CollaborationEvent'][_0x2f06c2(0x343)]:var _0x61296b;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x61296b=_0x4f3a18[_0x2f06c2(0x2ae)])==null?void 0x0:_0x61296b['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)]['NEW_CHANGESETS']:var _0x13c9dc;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x13c9dc=_0x4f3a18[_0x2f06c2(0x218)])==null?void 0x0:_0x13c9dc['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x43d)]:var _0x2d4509;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x2d4509=_0x4f3a18[_0x2f06c2(0x278)])==null?void 0x0:_0x2d4509['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x219)]:var _0x12d692;return{..._0x1c1de2,'data':{..._0x4f3a18,'data':(_0x12d692=_0x4f3a18['csShouldRetryEvent'])==null?void 0x0:_0x12d692['cs']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent'][_0x2f06c2(0x39c)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x307)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent'][_0x2f06c2(0x3f1)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x2d7)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent']['USERS_LEAVE']:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x2ed)]},'cmd':_0x1c1de2['cmd']};case e['CollaborationEvent'][_0x2f06c2(0x3f4)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x39a)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e['CollaborationEvent'][_0x2f06c2(0x363)]:case e[_0x2f06c2(0x439)][_0x2f06c2(0x48c)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x3f2)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)]['LIVESHARE_TERMINATE']:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18['liveShareNewHost']},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x349)]:return{..._0x1c1de2,'data':_0x4f3a18,'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x1f5)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x1d7)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};case e[_0x2f06c2(0x439)][_0x2f06c2(0x1a0)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x3a7)]},'cmd':_0x1c1de2['cmd']};case e['CollaborationEvent'][_0x2f06c2(0x24d)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18['shouldCloseConn']},'cmd':_0x1c1de2['cmd']};case e[_0x2f06c2(0x439)][_0x2f06c2(0x1cf)]:return{..._0x1c1de2,'data':{..._0x4f3a18,'data':_0x4f3a18[_0x2f06c2(0x1c2)]},'cmd':_0x1c1de2[_0x2f06c2(0x1ac)]};default:return _0x1c1de2;}}default:return _0x1c1de2;}}function Ke(_0x5b3243){const _0x1b105e=_0x4c0aa4;switch(_0x5b3243[_0x1b105e(0x1ac)]){case a[_0x1b105e(0x2db)]['HEARTBEAT']:case a[_0x1b105e(0x2db)][_0x1b105e(0x476)]:return JSON[_0x1b105e(0x4a7)]({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243['routeKey']});case a[_0x1b105e(0x2db)][_0x1b105e(0x48f)]:{let _0x35bc5a;switch(_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x23b)]){case e[_0x1b105e(0x439)]['UPDATE_CURSOR']:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x39c)],'updateCursorEvent':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x1e3)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x1e3)],'leaveEvent':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x3f1)]:_0x35bc5a={'eventID':e['CollaborationEvent'][_0x1b105e(0x3f1)],'joinEvent':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x3f4)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x3f4)],'liveShareNewHost':_0x5b3243[_0x1b105e(0x233)]['data']};break;case e['CollaborationEvent']['LIVESHARE_OPERATION']:_0x35bc5a={'eventID':e['CollaborationEvent'][_0x1b105e(0x48c)],'liveShareOperation':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)]['LIVESHARE_TERMINATE']:_0x35bc5a={'eventID':e['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x346)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)][_0x1b105e(0x346)],'liveShareRequestHost':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x233)]};break;case e[_0x1b105e(0x439)][_0x1b105e(0x363)]:_0x35bc5a={'eventID':e[_0x1b105e(0x439)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x35bc5a={'eventID':_0x5b3243[_0x1b105e(0x233)][_0x1b105e(0x23b)]};}return JSON[_0x1b105e(0x4a7)]({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243['routeKey'],'collaMsg':_0x35bc5a});}case a[_0x1b105e(0x2db)][_0x1b105e(0x383)]:return JSON[_0x1b105e(0x4a7)]({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243[_0x1b105e(0x237)],'joinReq':_0x5b3243['data']});case a[_0x1b105e(0x2db)][_0x1b105e(0x1da)]:return JSON['stringify']({'cmd':_0x5b3243[_0x1b105e(0x1ac)],'routeKey':_0x5b3243[_0x1b105e(0x237)],'leaveReq':_0x5b3243['data']});default:throw Error(_0x1b105e(0x42b));}}const qe=(0x0,t[_0x4c0aa4(0x35d)])(_0x4c0aa4(0x250));function Je(_0x29e478,_0x10885d,_0x2e4eac){const _0x259f73=_0x4c0aa4;return _0x29e478+'/'+_0x10885d+_0x259f73(0x316)+_0x2e4eac+_0x259f73(0x41a);}let Ye=class extends t[_0x4c0aa4(0x23f)]{constructor(_0x20152b,_0xf1fbb7,_0x21ed66,_0x55e117,_0x1e59ce){const _0x249c9d=_0x4c0aa4;super(),this[_0x249c9d(0x1fd)]=_0x20152b,this[_0x249c9d(0x3f9)]=_0xf1fbb7,this['_configService']=_0x21ed66,this[_0x249c9d(0x387)]=_0x55e117,this[_0x249c9d(0x40d)]=_0x1e59ce;}[_0x4c0aa4(0x2ef)](_0x365b28){const _0x46eaf8=_0x4c0aa4;let _0x17bf18=this[_0x46eaf8(0x1fd)][_0x46eaf8(0x3a5)](l['ISocketService']);if(!_0x17bf18)throw Error(_0x46eaf8(0x3fe));let _0x366a3d=_0x17bf18[_0x46eaf8(0x333)](_0x365b28);if(!_0x366a3d)throw Error(_0x46eaf8(0x462));let _0x173f75=new t[(_0x46eaf8(0x3fa))](),_0x493844=new i[(_0x46eaf8(0x378))]();_0x173f75[_0x46eaf8(0x393)](_0x366a3d[_0x46eaf8(0x1e0)]['subscribe'](_0x3ce92f=>_0x493844[_0x46eaf8(0x201)](_0x3ce92f))),_0x173f75[_0x46eaf8(0x393)]((0x0,t[_0x46eaf8(0x2c3)])(()=>_0x493844['complete']()));let _0x2a5673=new i['Subject']();_0x173f75[_0x46eaf8(0x393)](_0x366a3d[_0x46eaf8(0x3be)][_0x46eaf8(0x3a4)](_0xe0a74c=>_0x2a5673[_0x46eaf8(0x201)](_0xe0a74c))),_0x173f75[_0x46eaf8(0x393)]((0x0,t[_0x46eaf8(0x2c3)])(()=>_0x2a5673['complete']()));let _0x174b1a=new i[(_0x46eaf8(0x378))]();_0x173f75['add'](_0x366a3d[_0x46eaf8(0x1ae)][_0x46eaf8(0x3a4)](_0x4f61bc=>{const _0x22c206=_0x46eaf8;let _0x1d9ea3=Ge(_0x4f61bc);_0x174b1a[_0x22c206(0x201)](_0x1d9ea3);})),_0x173f75[_0x46eaf8(0x393)]((0x0,t[_0x46eaf8(0x2c3)])(()=>_0x174b1a[_0x46eaf8(0x470)]()));let _0x3b4ea7,_0x5ae491=()=>{const _0x5a047e=_0x46eaf8;_0x2a5673[_0x5a047e(0x201)](new Event(_0x5a047e(0x1ca))),_0x493844[_0x5a047e(0x201)](new Event(_0x5a047e(0x1ca))),_0x3b4ea7[_0x5a047e(0x325)]();};return _0x3b4ea7={'memberID':'','close$':_0x493844[_0x46eaf8(0x421)](),'error$':_0x2a5673[_0x46eaf8(0x421)](),'open$':_0x366a3d[_0x46eaf8(0x394)],'message$':_0x174b1a[_0x46eaf8(0x421)](),'send':_0x3095bc=>{const _0x4cff23=_0x46eaf8;if(_0x3095bc[_0x4cff23(0x1ac)]===a['CombCmd'][_0x4cff23(0x48f)]){if(_0x3095bc[_0x4cff23(0x233)]['eventID']===e[_0x4cff23(0x439)][_0x4cff23(0x2bf)]){this[_0x4cff23(0x1f8)](_0x3b4ea7,_0x3095bc[_0x4cff23(0x233)])[_0x4cff23(0x3c6)](_0x11a75b=>{this['_logService']['error'](_0x11a75b),_0x5ae491();});return;}if(_0x3095bc[_0x4cff23(0x233)]['eventID']===e[_0x4cff23(0x439)][_0x4cff23(0x485)]){let _0x3cfa6c=_0x3095bc[_0x4cff23(0x233)];this[_0x4cff23(0x1de)](_0x3cfa6c)[_0x4cff23(0x28e)](_0x35e4a3=>{const _0x3cbd9c=_0x4cff23;_0x174b1a['next']({'cmd':a[_0x3cbd9c(0x2db)][_0x3cbd9c(0x45f)],'code':a[_0x3cbd9c(0x3f3)]['OK'],'routeKey':_0x3cfa6c[_0x3cbd9c(0x233)][_0x3cbd9c(0x426)],'routeType':'','data':{'eventID':e[_0x3cbd9c(0x439)][_0x3cbd9c(0x342)],'data':{'changesets':_0x35e4a3}}});})[_0x4cff23(0x3c6)](_0x3c23f1=>{const _0x2e292d=_0x4cff23;this[_0x2e292d(0x387)][_0x2e292d(0x338)](_0x3c23f1),_0x5ae491();});return;}}_0x366a3d[_0x4cff23(0x29c)](Ke(_0x3095bc));},'close':()=>{_0x366a3d['close'](),_0x173f75['dispose']();}},_0x3b4ea7;}async['_submitChangeset'](_0x5d3f30,_0x3ba6dd){const _0xa0582=_0x4c0aa4;var _0x4163ca;let {unitType:_0x4c7795,unitID:_0xa092e2,changeset:_0x1f6825}=_0x3ba6dd[_0xa0582(0x233)],_0x4745e8={'unitID':_0xa092e2,'memberID':_0x5d3f30[_0xa0582(0x3fc)],'type':_0x4c7795,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x1f6825)},_0x3eac73=this[_0xa0582(0x2a2)]['getConfig'](m),_0x20edf1=Je((_0x4163ca=_0x3eac73==null?void 0x0:_0x3eac73[_0xa0582(0x261)])==null?'/universer-api/comb':_0x4163ca,_0x4c7795,_0xa092e2);try{await this[_0xa0582(0x3f9)][_0xa0582(0x2e3)](_0x20edf1,{'body':_0x4745e8});}catch(_0x31407c){throw this[_0xa0582(0x387)]['error']('[CollaborationSession]','submit\x20changeset\x20error!'),_0x31407c;}}async['_fetchMissChangesets'](_0x2ed29c){const _0x44d139=_0x4c0aa4;let {unitID:_0x31f123,from:_0x117498,to:_0x48a157,unitType:_0x53611e}=_0x2ed29c[_0x44d139(0x233)];return(await this[_0x44d139(0x40d)][_0x44d139(0x392)]({'metadata':void 0x0},{'unitID':_0x31f123,'type':_0x53611e,'from':_0x117498,'to':_0x48a157}))['changesets'][_0x44d139(0x1c8)](_0xbfe6a=>((_0xbfe6a['mutations']===null||_0xbfe6a[_0x44d139(0x4a9)]===void 0x0)&&(_0xbfe6a['mutations']=[]),_0xbfe6a));}};Ye=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l['HTTPService'])),v(0x2,t[_0x4c0aa4(0x4a5)]),v(0x3,t[_0x4c0aa4(0x2f9)]),v(0x4,e[_0x4c0aa4(0x31f)])],Ye);const Xe=(0x0,t['createIdentifier'])('univer-pro.collaboration-client-adapter-service');function Ze(_0x1f2cbc={}){const _0x335799=_0x4c0aa4;return _0x1f2cbc[_0x335799(0x2ec)]?{'resolveUnit':_0x1f2cbc[_0x335799(0x2ec)]}:{'resolveUnit':_0x43cee4=>({'target':{'unitId':_0x43cee4[_0x335799(0x211)],'unitType':_0x43cee4['unitType']}})};}function Qe(_0x438b9b,_0x1fc997,_0x2a1059){const _0x952de8=_0x4c0aa4;var _0x44c4a7;let _0x3f5ddd=_0x2a1059['target'][_0x952de8(0x1dc)];if(_0x3f5ddd!=null&&_0x3f5ddd['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x2a1059[_0x952de8(0x1cb)]['unitId'])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x438b9b,'unitType':_0x1fc997,'target':{'endpoint':_0x3f5ddd,'unitId':_0x2a1059[_0x952de8(0x1cb)][_0x952de8(0x211)],'unitType':(_0x44c4a7=_0x2a1059[_0x952de8(0x1cb)]['unitType'])==null?_0x1fc997:_0x44c4a7},'changeset':_0x2a1059[_0x952de8(0x350)]};}let V=class extends t['Disposable']{constructor(_0x1c65fd,_0x3fe59c,_0x355603,_0x35fefe,_0x84f322,_0x5c1232,_0x36ddbd){const _0x56b7dc=_0x4c0aa4;super(),this['_injector']=_0x1c65fd,this['_logService']=_0x3fe59c,this[_0x56b7dc(0x2a2)]=_0x355603,this[_0x56b7dc(0x279)]=_0x35fefe,this[_0x56b7dc(0x34a)]=_0x84f322,this['_adapter']=_0x5c1232,this[_0x56b7dc(0x1a4)]=_0x36ddbd,g(this,_0x56b7dc(0x1b8),new Map()),g(this,_0x56b7dc(0x3e2),new Map()),g(this,_0x56b7dc(0x240),new Map()),g(this,_0x56b7dc(0x35e),new Map()),g(this,'socket$',this['_getSocketChannel'](void 0x0)[_0x56b7dc(0x259)][_0x56b7dc(0x421)]()),g(this,_0x56b7dc(0x3b4),new i[(_0x56b7dc(0x20e))](0x0)),g(this,'status$',this[_0x56b7dc(0x3b4)][_0x56b7dc(0x421)]()),this['_listenToNetworkCondition']();}[_0x4c0aa4(0x424)](){const _0x1ecb52=_0x4c0aa4;this[_0x1ecb52(0x1a4)]&&this[_0x1ecb52(0x38b)](this[_0x1ecb52(0x1a4)][_0x1ecb52(0x3ff)][_0x1ecb52(0x3a4)](_0x4b55df=>{const _0x57dda4=_0x1ecb52;_0x4b55df&&this[_0x57dda4(0x489)](),_0x4b55df||this['_socketChannels']['forEach'](_0x25eebe=>this['_onOffline'](_0x25eebe));}));}['dispose'](){const _0x2f267a=_0x4c0aa4;super[_0x2f267a(0x28d)](),this[_0x2f267a(0x35e)][_0x2f267a(0x1a5)](_0x510d11=>{const _0x1a7ef6=_0x2f267a;var _0x1c6eeb,_0x3d041a;(_0x1c6eeb=_0x510d11[_0x1a7ef6(0x3c1)])==null||_0x1c6eeb[_0x1a7ef6(0x2dc)](),_0x510d11[_0x1a7ef6(0x3c1)]=null,this[_0x1a7ef6(0x362)](_0x510d11),this[_0x1a7ef6(0x399)](_0x510d11),this[_0x1a7ef6(0x3d9)](_0x510d11),(_0x3d041a=_0x510d11[_0x1a7ef6(0x259)][_0x1a7ef6(0x1bd)]())==null||_0x3d041a[_0x1a7ef6(0x325)](),_0x510d11[_0x1a7ef6(0x259)][_0x1a7ef6(0x470)]();}),this[_0x2f267a(0x35e)][_0x2f267a(0x26a)](),this[_0x2f267a(0x1b8)][_0x2f267a(0x1a5)](_0x550afa=>_0x550afa['dispose']()),this['_sessions'][_0x2f267a(0x26a)](),this[_0x2f267a(0x240)][_0x2f267a(0x26a)](),this[_0x2f267a(0x3b4)][_0x2f267a(0x470)]();}async['requireSession'](_0x2ac6be,_0x4786c3){const _0x56084f=_0x4c0aa4;if(this[_0x56084f(0x1b8)][_0x56084f(0x447)](_0x2ac6be))return this['_sessions'][_0x56084f(0x3a5)](_0x2ac6be);let _0x118f30=this[_0x56084f(0x3e2)][_0x56084f(0x3a5)](_0x2ac6be);if(_0x118f30)return _0x118f30;let _0x2ea331=this[_0x56084f(0x410)](_0x2ac6be,_0x4786c3);this[_0x56084f(0x3e2)]['set'](_0x2ac6be,_0x2ea331);try{return await _0x2ea331;}finally{this[_0x56084f(0x3e2)][_0x56084f(0x24b)](_0x2ac6be);}}async[_0x4c0aa4(0x410)](_0x278394,_0x62fc57){const _0x5f33ba=_0x4c0aa4;let _0x4009fb=await this[_0x5f33ba(0x19e)](_0x278394,_0x62fc57),_0x1814af=this[_0x5f33ba(0x37e)](_0x4009fb[_0x5f33ba(0x1cb)][_0x5f33ba(0x1dc)]);this[_0x5f33ba(0x29a)](_0x1814af);let _0x4478b0=this[_0x5f33ba(0x1fd)]['createInstance'](x,_0x4009fb,_0x1814af[_0x5f33ba(0x259)]['asObservable']());return this[_0x5f33ba(0x1b8)][_0x5f33ba(0x3d4)](_0x278394,_0x4478b0),this[_0x5f33ba(0x240)][_0x5f33ba(0x3d4)](_0x278394,_0x1814af[_0x5f33ba(0x49e)]),_0x4478b0;}['closeSession'](_0x370653){const _0x8004ac=_0x4c0aa4;let _0x590fed=this['_sessions']['get'](_0x370653),_0x528749=this['_sessionChannels'][_0x8004ac(0x3a5)](_0x370653);if(_0x590fed&&(this[_0x8004ac(0x1b8)][_0x8004ac(0x24b)](_0x370653),this[_0x8004ac(0x240)][_0x8004ac(0x24b)](_0x370653),_0x590fed['close']()),_0x528749&&!this[_0x8004ac(0x246)](_0x528749)){var _0x29ad4b;let _0x25cfd4=this[_0x8004ac(0x35e)]['get'](_0x528749);_0x25cfd4==null||(_0x29ad4b=_0x25cfd4[_0x8004ac(0x259)][_0x8004ac(0x1bd)]())==null||_0x29ad4b[_0x8004ac(0x325)]();}}[_0x4c0aa4(0x489)](){const _0x161cff=_0x4c0aa4;(this[_0x161cff(0x35e)][_0x161cff(0x209)]?[...this[_0x161cff(0x35e)][_0x161cff(0x2e2)]()]:[this[_0x161cff(0x37e)](void 0x0)])[_0x161cff(0x1a5)](_0x2bcd24=>{const _0x11d8e7=_0x161cff;_0x2bcd24[_0x11d8e7(0x368)]=0x0,this[_0x11d8e7(0x362)](_0x2bcd24),this[_0x11d8e7(0x46b)](_0x2bcd24);});}[_0x4c0aa4(0x362)](_0x30f119){const _0x548cae=_0x4c0aa4;_0x30f119[_0x548cae(0x288)]!=null&&(clearTimeout(_0x30f119['retryConnectingTimer']),_0x30f119[_0x548cae(0x288)]=null);}async[_0x4c0aa4(0x2b0)](_0x2a5062){const _0xf4ac64=_0x4c0aa4;var _0x108e46,_0x210869;let _0x103551=this[_0xf4ac64(0x2a2)][_0xf4ac64(0x2ee)](m),_0x42232c=(_0x108e46=(_0x210869=_0x2a5062[_0xf4ac64(0x1dc)])==null?_0x103551==null?void 0x0:_0x103551[_0xf4ac64(0x2bd)]:_0x210869)==null?te:_0x108e46,_0x31599f=await this[_0xf4ac64(0x279)][_0xf4ac64(0x333)](_0x42232c);return _0x2a5062[_0xf4ac64(0x41d)]=_0x31599f,_0x31599f;}async[_0x4c0aa4(0x29a)](_0x3b0f69){const _0x4fdaf9=_0x4c0aa4;try{var _0x29cf16,_0x365df0;let _0x1e78e1=(_0x29cf16=(_0x365df0=_0x3b0f69[_0x4fdaf9(0x259)][_0x4fdaf9(0x1bd)]())==null?_0x3b0f69[_0x4fdaf9(0x41d)]:_0x365df0)==null?await this['_createSocket'](_0x3b0f69):_0x29cf16;if(_0x1e78e1){var _0x20aaf0;let _0x951776=_0x1e78e1[_0x4fdaf9(0x29c)];_0x1e78e1[_0x4fdaf9(0x29c)]=_0x457c20=>(_0x457c20[_0x4fdaf9(0x1ac)]!==a['CombCmd'][_0x4fdaf9(0x1da)]&&this['_rescheduleHeartbeat'](_0x3b0f69),_0x951776[_0x4fdaf9(0x287)](_0x1e78e1,[_0x457c20])),(_0x20aaf0=_0x3b0f69['socketMessageSubscription'])==null||_0x20aaf0[_0x4fdaf9(0x2dc)](),_0x3b0f69[_0x4fdaf9(0x3c1)]=null,_0x3b0f69[_0x4fdaf9(0x3c1)]=_0x1e78e1[_0x4fdaf9(0x1ae)][_0x4fdaf9(0x3a4)](_0x146258=>this[_0x4fdaf9(0x302)](_0x3b0f69,_0x1e78e1,_0x146258)),_0x1e78e1['error$'][_0x4fdaf9(0x331)]((0x0,s[_0x4fdaf9(0x1d8)])(0x1))[_0x4fdaf9(0x3a4)](_0x16b782=>this[_0x4fdaf9(0x387)][_0x4fdaf9(0x338)](_0x4fdaf9(0x35c),_0x16b782)),_0x1e78e1[_0x4fdaf9(0x394)][_0x4fdaf9(0x331)]((0x0,s[_0x4fdaf9(0x1d8)])(0x1))[_0x4fdaf9(0x3a4)](()=>{this['_onConnectionOpen'](_0x3b0f69,_0x1e78e1);}),_0x1e78e1[_0x4fdaf9(0x1e0)]['pipe']((0x0,s[_0x4fdaf9(0x1d8)])(0x1))['subscribe'](_0x5d3df7=>{const _0x320e7a=_0x4fdaf9;this[_0x320e7a(0x387)][_0x320e7a(0x2d4)](_0x320e7a(0x2a5),_0x320e7a(0x374),_0x5d3df7),this['_onConnectionFailed'](_0x3b0f69);});}}catch(_0x17e127){this[_0x4fdaf9(0x387)]['error'](_0x17e127),this[_0x4fdaf9(0x207)](_0x3b0f69);}}[_0x4c0aa4(0x2b6)](_0x1fb5ce,_0x586f9c){const _0x42d935=_0x4c0aa4;this[_0x42d935(0x387)]['debug'](_0x42d935(0x2a5),_0x42d935(0x496)),_0x586f9c[_0x42d935(0x29c)]({'cmd':a[_0x42d935(0x2db)][_0x42d935(0x476)]}),this[_0x42d935(0x1bf)](_0x1fb5ce);}[_0x4c0aa4(0x398)](_0x1e936f){const _0x771317=_0x4c0aa4;_0x1e936f['socketReady']=!0x1,_0x1e936f[_0x771317(0x41d)]=null,this[_0x771317(0x3b4)]['next'](0x2),_0x1e936f[_0x771317(0x259)][_0x771317(0x201)](null),this['_clearTimeoutTimer'](_0x1e936f),this[_0x771317(0x3d9)](_0x1e936f);}['_onConnectionFailed'](_0x590e34){const _0x2dfc87=_0x4c0aa4;var _0x3b32dd;this[_0x2dfc87(0x398)](_0x590e34),this[_0x2dfc87(0x246)](_0x590e34[_0x2dfc87(0x49e)])&&(_0x590e34[_0x2dfc87(0x368)]<((_0x3b32dd=this[_0x2dfc87(0x2a2)][_0x2dfc87(0x2ee)](_0x2dfc87(0x3c9)))==null?0x3:_0x3b32dd)?(this[_0x2dfc87(0x34a)][_0x2dfc87(0x40a)]({'id':_0x2dfc87(0x291)}),this['_tryReconnect'](_0x590e34)):this[_0x2dfc87(0x34a)][_0x2dfc87(0x40a)]({'id':_0x2dfc87(0x44f)}));}[_0x4c0aa4(0x46b)](_0x20bede){const _0x5337ea=_0x4c0aa4;var _0x5a5c28;let _0x5c6d99=_0x20bede[_0x5337ea(0x368)],_0xf1e769=this[_0x5337ea(0x2a2)][_0x5337ea(0x2ee)](m),_0x185ca2=_0x5c6d99===0x0?0x0:((_0x5a5c28=_0xf1e769==null?void 0x0:_0xf1e769['retryConnectingInterval'])==null?0x4e20:_0x5a5c28)*0x2**_0x5c6d99;_0x20bede[_0x5337ea(0x288)]=setTimeout(()=>{const _0x36e15d=_0x5337ea;clearTimeout(_0x20bede[_0x36e15d(0x288)]),_0x20bede['retryConnectingTimer']=null,this[_0x36e15d(0x29a)](_0x20bede);},_0x185ca2),_0x20bede[_0x5337ea(0x368)]+=0x1;}async[_0x4c0aa4(0x19e)](_0x34cecd,_0x1ff9cd){const _0x136817=_0x4c0aa4;return Qe(_0x34cecd,_0x1ff9cd,await this[_0x136817(0x420)][_0x136817(0x2ec)]({'unitId':_0x34cecd,'unitType':_0x1ff9cd}));}[_0x4c0aa4(0x302)](_0x14fdf5,_0x59e9d4,_0x1b41db){const _0x3cea01=_0x4c0aa4;let {cmd:_0x501dce}=_0x1b41db;_0x501dce===a[_0x3cea01(0x2db)]['HELLO']&&!_0x14fdf5['socketReady']&&(_0x59e9d4[_0x3cea01(0x3fc)]=_0x1b41db[_0x3cea01(0x233)][_0x3cea01(0x3fc)],_0x14fdf5[_0x3cea01(0x259)][_0x3cea01(0x201)](_0x59e9d4),this[_0x3cea01(0x3b4)][_0x3cea01(0x201)](0x3),_0x14fdf5['socketReady']=!0x0,_0x14fdf5[_0x3cea01(0x41d)]=null),_0x501dce===a[_0x3cea01(0x2db)][_0x3cea01(0x205)]&&this[_0x3cea01(0x399)](_0x14fdf5),this[_0x3cea01(0x1bf)](_0x14fdf5);}[_0x4c0aa4(0x246)](_0x53e6cb){const _0x59be7e=_0x4c0aa4;return[...this[_0x59be7e(0x240)]['values']()][_0x59be7e(0x45d)](_0x439bfe=>_0x439bfe===_0x53e6cb);}[_0x4c0aa4(0x37e)](_0x38af5c){const _0x675e5b=_0x4c0aa4;let _0x584876=_0x38af5c==null?'':_0x38af5c,_0x35f4aa=this['_socketChannels'][_0x675e5b(0x3a5)](_0x584876);if(_0x35f4aa)return _0x35f4aa;let _0x468bd6={'endpointKey':_0x584876,'endpoint':_0x38af5c,'socket$':new i[(_0x675e5b(0x20e))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x675e5b(0x35e)][_0x675e5b(0x3d4)](_0x584876,_0x468bd6),_0x468bd6;}[_0x4c0aa4(0x1bf)](_0x1f5fe9){const _0x35eb24=_0x4c0aa4;var _0x1efefa;this[_0x35eb24(0x3d9)](_0x1f5fe9),_0x1f5fe9[_0x35eb24(0x231)]=setTimeout(()=>this[_0x35eb24(0x1e2)](_0x1f5fe9),(_0x1efefa=this[_0x35eb24(0x2a2)]['getConfig'](_0x35eb24(0x3f6)))==null?0x7530:_0x1efefa);}['_sendHeartbeat'](_0x2ae2d2){const _0x46084b=_0x4c0aa4;_0x2ae2d2[_0x46084b(0x259)][_0x46084b(0x1bd)]()['send']({'cmd':a[_0x46084b(0x2db)]['HEARTBEAT']}),this[_0x46084b(0x39f)](_0x2ae2d2);}[_0x4c0aa4(0x39f)](_0x2d8ce4){const _0x4fa3cd=_0x4c0aa4;var _0x5adf97;_0x2d8ce4[_0x4fa3cd(0x263)]=setTimeout(()=>this['_onConnectionFailed'](_0x2d8ce4),(_0x5adf97=this[_0x4fa3cd(0x2a2)]['getConfig']('HEARTBEAT_TIMEOUT'))==null?ne:_0x5adf97);}[_0x4c0aa4(0x3d9)](_0x4ab120){const _0x2ef718=_0x4c0aa4;_0x4ab120['sendHeartbeatTimer']!=null&&(clearTimeout(_0x4ab120[_0x2ef718(0x231)]),_0x4ab120['sendHeartbeatTimer']=null);}[_0x4c0aa4(0x399)](_0x233406){const _0x864fa4=_0x4c0aa4;_0x233406[_0x864fa4(0x263)]!=null&&(clearTimeout(_0x233406[_0x864fa4(0x263)]),_0x233406[_0x864fa4(0x263)]=null);}};V=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,t[_0x4c0aa4(0x2f9)]),v(0x2,t[_0x4c0aa4(0x4a5)]),v(0x3,qe),v(0x4,(0x0,t['Inject'])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x4c0aa4(0x37d)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x2ab3cc,_0x40e81f,_0x46f107,_0x2a9b7f){const _0x29d0f5=_0x4c0aa4;var _0x46b4ae;super(),this[_0x29d0f5(0x1fd)]=_0x2ab3cc,this['_collabSessionService']=_0x40e81f,this['_configService']=_0x46f107,this[_0x29d0f5(0x294)]=_0x2a9b7f,g(this,_0x29d0f5(0x2b8),new Map()),g(this,'_entityInit$',new i[(_0x29d0f5(0x378))]()),g(this,_0x29d0f5(0x293),this[_0x29d0f5(0x206)][_0x29d0f5(0x421)]()),((_0x46b4ae=this[_0x29d0f5(0x2a2)][_0x29d0f5(0x2ee)](_0x29d0f5(0x1a9)))==null?void 0x0:_0x46b4ae[_0x29d0f5(0x48d)])!==!0x1&&this[_0x29d0f5(0x1f1)]();}[_0x4c0aa4(0x28d)](){const _0x59840c=_0x4c0aa4;super['dispose'](),this['_entities'][_0x59840c(0x1a5)](_0x3e1366=>_0x3e1366[_0x59840c(0x28d)]()),this[_0x59840c(0x2b8)][_0x59840c(0x26a)]();}[_0x4c0aa4(0x21d)](_0x503a86){const _0x28e1f7=_0x4c0aa4;var _0x28f129;return(_0x28f129=this[_0x28e1f7(0x2b8)][_0x28e1f7(0x3a5)](_0x503a86))==null?null:_0x28f129;}[_0x4c0aa4(0x1d5)](_0x107a2f){const _0xb5cbc5=_0x4c0aa4;let _0x487e9f=this[_0xb5cbc5(0x21d)](_0x107a2f);return _0x487e9f?(0x0,i['of'])(_0x487e9f):this[_0xb5cbc5(0x206)][_0xb5cbc5(0x331)]((0x0,s[_0xb5cbc5(0x19a)])(_0x3c7524=>_0x3c7524[_0xb5cbc5(0x426)]===_0x107a2f));}[_0x4c0aa4(0x24c)](_0x2c7c5a){const _0x51fa2f=_0x4c0aa4;return(0x0,i['firstValueFrom'])(this['getCollabEntity$'](_0x2c7c5a)[_0x51fa2f(0x331)]((0x0,s[_0x51fa2f(0x1c8)])(()=>void 0x0)));}[_0x4c0aa4(0x1f1)](){const _0x5dcb17=_0x4c0aa4;this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t['UniverInstanceType'][_0x5dcb17(0x286)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s['delay'])(0x10))[_0x5dcb17(0x3a4)](async _0x5d9cdc=>{const _0x35965b=_0x5dcb17;let _0x37dfc5=_0x5d9cdc['unit'][_0x35965b(0x1ef)](),_0x149c50=await this['_startCollaboration'](_0x37dfc5,t['UniverInstanceType'][_0x35965b(0x286)]);this[_0x35965b(0x2b8)]['set'](_0x37dfc5,_0x149c50);}),this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t[_0x5dcb17(0x425)][_0x5dcb17(0x1d6)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x331)]((0x0,s[_0x5dcb17(0x19a)])(_0x3176b4=>!_0x3176b4[_0x5dcb17(0x297)][_0x5dcb17(0x1ef)]()[_0x5dcb17(0x461)]('__')))[_0x5dcb17(0x3a4)](async _0xf5961a=>{const _0x22ed07=_0x5dcb17;let _0x3d81b0=_0xf5961a[_0x22ed07(0x297)][_0x22ed07(0x1ef)](),_0x20ea63=await this[_0x22ed07(0x2f8)](_0x3d81b0,t[_0x22ed07(0x425)][_0x22ed07(0x1d6)]);this[_0x22ed07(0x2b8)]['set'](_0x3d81b0,_0x20ea63);}),this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t['UniverInstanceType'][_0x5dcb17(0x348)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x3a4)](async _0x8583f9=>{const _0x504792=_0x5dcb17;let _0x59829=_0x8583f9[_0x504792(0x297)][_0x504792(0x1ef)](),_0x1f1a18=await this[_0x504792(0x2f8)](_0x59829,t[_0x504792(0x425)]['UNIVER_SLIDE']);this['_entities']['set'](_0x59829,_0x1f1a18);}),this[_0x5dcb17(0x294)]['getTypeOfUnitAdded$'](t[_0x5dcb17(0x425)][_0x5dcb17(0x244)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x3a4)](async _0x27087d=>{const _0x4ba923=_0x5dcb17;let _0x4c9bb5=_0x27087d['unit'][_0x4ba923(0x1ef)](),_0x126b06=await this['_startCollaboration'](_0x4c9bb5,t[_0x4ba923(0x425)][_0x4ba923(0x244)]);this[_0x4ba923(0x2b8)][_0x4ba923(0x3d4)](_0x4c9bb5,_0x126b06);}),this[_0x5dcb17(0x294)][_0x5dcb17(0x1bb)](t[_0x5dcb17(0x425)][_0x5dcb17(0x2d5)])[_0x5dcb17(0x331)]((0x0,i[_0x5dcb17(0x429)])(this[_0x5dcb17(0x428)]),(0x0,s[_0x5dcb17(0x2cd)])(0x10))[_0x5dcb17(0x3a4)](async _0x2620d5=>{const _0x43e1bb=_0x5dcb17;let _0x16c50c=_0x2620d5[_0x43e1bb(0x297)][_0x43e1bb(0x1ef)](),_0x3cdcdf=await this[_0x43e1bb(0x2f8)](_0x16c50c,t[_0x43e1bb(0x425)][_0x43e1bb(0x2d5)]);this[_0x43e1bb(0x2b8)][_0x43e1bb(0x3d4)](_0x16c50c,_0x3cdcdf);}),(0x0,i['merge'])(this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t[_0x5dcb17(0x425)][_0x5dcb17(0x286)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t[_0x5dcb17(0x425)]['UNIVER_DOC']),this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t['UniverInstanceType'][_0x5dcb17(0x348)]),this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t[_0x5dcb17(0x425)][_0x5dcb17(0x244)]),this[_0x5dcb17(0x294)][_0x5dcb17(0x499)](t[_0x5dcb17(0x425)][_0x5dcb17(0x2d5)]))['pipe']((0x0,i['takeUntil'])(this[_0x5dcb17(0x428)]))[_0x5dcb17(0x3a4)](_0x186e86=>{const _0x262099=_0x5dcb17;let _0x364266=_0x186e86[_0x262099(0x1ef)](),_0x4f9114=this[_0x262099(0x2b8)][_0x262099(0x3a5)](_0x364266);_0x4f9114&&(_0x4f9114[_0x262099(0x28d)](),this[_0x262099(0x2b8)][_0x262099(0x24b)](_0x364266));});}async['_startCollaboration'](_0x126a84,_0x425703){const _0x46d76c=_0x4c0aa4;let _0x5c0b1b=await this['_collabSessionService']['requireSession'](_0x126a84),_0xd16dba=this['_injector'][_0x46d76c(0x47e)](this[_0x46d76c(0x23a)](_0x425703),_0x126a84,_0x425703,_0x5c0b1b);return await _0xd16dba[_0x46d76c(0x30d)](),this[_0x46d76c(0x206)][_0x46d76c(0x201)](_0xd16dba),_0xd16dba;}['_getCtorByUniverInstanceType'](_0x35e3c0){const _0x19f3c0=_0x4c0aa4;switch(_0x35e3c0){case t[_0x19f3c0(0x425)][_0x19f3c0(0x1d6)]:return I;case t[_0x19f3c0(0x425)][_0x19f3c0(0x286)]:return R;case t[_0x19f3c0(0x425)][_0x19f3c0(0x348)]:return z;case t['UniverInstanceType'][_0x19f3c0(0x244)]:return B;case t[_0x19f3c0(0x425)][_0x19f3c0(0x2d5)]:return L;default:throw Error(_0x19f3c0(0x26b)+_0x35e3c0);}}};H=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t[_0x4c0aa4(0x4a5)]),v(0x3,t[_0x4c0aa4(0x31d)])],H);var $e=_0x4c0aa4(0x3db),et=_0x4c0aa4(0x45c);let tt=class extends t['Disposable']{constructor(_0x3d8137,_0xdd81f6){const _0x13bab5=_0x4c0aa4;super(),this['_univerInstanceService']=_0x3d8137,this['_configService']=_0xdd81f6,this[_0x13bab5(0x1f1)]();}[_0x4c0aa4(0x1f1)](){const _0x585218=_0x4c0aa4;this[_0x585218(0x38b)](this[_0x585218(0x294)][_0x585218(0x308)][_0x585218(0x3a4)](()=>{const _0x2b4592=_0x585218;var _0x30e7fa;let _0x431328=this[_0x2b4592(0x294)][_0x2b4592(0x18b)](),_0x49cee7=(_0x30e7fa=this['_configService'][_0x2b4592(0x2ee)](_0x2b4592(0x1c1)))==null?_0x2b4592(0x498):_0x30e7fa;_0x431328 instanceof t[_0x2b4592(0x1d2)]&&(_0x49cee7=_0x431328[_0x2b4592(0x364)]),document[_0x2b4592(0x2af)]=_0x49cee7;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x4c0aa4(0x4a5)])],tt);let nt=function(_0x20dfb9){const _0x496ec1=_0x4c0aa4;return _0x20dfb9['URL']=_0x496ec1(0x422),_0x20dfb9[_0x496ec1(0x41c)]=_0x496ec1(0x41c),_0x20dfb9[_0x496ec1(0x23e)]=_0x496ec1(0x23e),_0x20dfb9;}({});const rt=(0x0,t['createIdentifier'])('base-ui.attachment-io.service');let U=class{constructor(_0x55516d,_0x18d9e8,_0x11de2a){const _0x27e218=_0x4c0aa4;this['_httpService']=_0x55516d,this['_configService']=_0x18d9e8,this[_0x27e218(0x294)]=_0x11de2a;}[_0x4c0aa4(0x2c5)](){const _0x45222c=_0x4c0aa4;var _0x2f2d80;return(_0x2f2d80=this[_0x45222c(0x412)]()[_0x45222c(0x45a)])==null?{}:_0x2f2d80;}async[_0x4c0aa4(0x2f0)](_0x47934c){const _0x4f4103=_0x4c0aa4;let _0x585a75=this[_0x4f4103(0x2c5)]();if(it(_0x47934c,_0x585a75),_0x585a75[_0x4f4103(0x315)])return _0x585a75[_0x4f4103(0x315)](_0x47934c);let _0x1df784=await this[_0x4f4103(0x371)](_0x47934c);return{'id':_0x1df784,'name':_0x47934c[_0x4f4103(0x364)],'mimeType':_0x47934c[_0x4f4103(0x27c)],'size':_0x47934c['size'],'sourceType':_0x4f4103(0x41c),'source':_0x1df784};}async[_0x4c0aa4(0x371)](_0x4fb014){const _0x135487=_0x4c0aa4;let _0x25a256=this['_univerInstanceService'][_0x135487(0x18b)](),_0x1cb680=_0x25a256==null?void 0x0:_0x25a256[_0x135487(0x1ef)]();if(!_0x1cb680)throw Error(_0x135487(0x3b5));let _0x557dd4=new FormData();_0x557dd4[_0x135487(0x455)]('file',_0x4fb014);let _0x336c10=this[_0x135487(0x3d7)]()+_0x135487(0x1ab)+_0x4fb014[_0x135487(0x209)][_0x135487(0x208)]()+_0x135487(0x1bc)+a[_0x135487(0x3ec)][_0x135487(0x25e)]+_0x135487(0x353)+encodeURIComponent(_0x1cb680),_0x3675f9=(await this[_0x135487(0x3f9)][_0x135487(0x2e3)](_0x336c10,{'body':_0x557dd4}))[_0x135487(0x1be)][_0x135487(0x3ca)];if(typeof _0x3675f9!=_0x135487(0x478)||!_0x3675f9)throw Error(_0x135487(0x298));return _0x3675f9;}[_0x4c0aa4(0x3d7)](){const _0x19c9bc=_0x4c0aa4;var _0x45474c;return(_0x45474c=this[_0x19c9bc(0x412)]()[_0x19c9bc(0x217)])==null?_0x19c9bc(0x3a3):_0x45474c;}[_0x4c0aa4(0x412)](){const _0x3316f9=_0x4c0aa4;var _0x2d4348;return(_0x2d4348=this[_0x3316f9(0x2a2)][_0x3316f9(0x2ee)](_0x3316f9(0x1a9)))==null?{}:_0x2d4348;}};U=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x4a5)])),v(0x2,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x31d)]))],U);function it(_0xb0ffa2,_0x476e57){const _0x3b86f2=_0x4c0aa4;var _0x2f6992;if(_0x476e57[_0x3b86f2(0x409)]!=null&&_0xb0ffa2[_0x3b86f2(0x209)]>_0x476e57[_0x3b86f2(0x409)])throw Error(_0x3b86f2(0x2f5));if((_0x2f6992=_0x476e57[_0x3b86f2(0x372)])!=null&&_0x2f6992[_0x3b86f2(0x1c9)]&&!_0x476e57[_0x3b86f2(0x372)][_0x3b86f2(0x45d)](_0xc05308=>_0xb0ffa2[_0x3b86f2(0x27c)]===_0xc05308||_0xb0ffa2[_0x3b86f2(0x364)]['endsWith'](_0xc05308)||_0xc05308[_0x3b86f2(0x2f7)]('/*')&&_0xb0ffa2[_0x3b86f2(0x27c)][_0x3b86f2(0x461)](_0xc05308['slice'](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x29100a,_0x205b84,_0x463793){const _0xbeb26d=_0x4c0aa4;this[_0xbeb26d(0x2a2)]=_0x29100a,this[_0xbeb26d(0x3f9)]=_0x205b84,this[_0xbeb26d(0x277)]=_0x463793,this[_0xbeb26d(0x30d)]();}['init'](){const _0x5b8aa1=_0x4c0aa4;this[_0x5b8aa1(0x3f9)][_0x5b8aa1(0x222)]({'priority':0x1,'interceptor':(_0xa56c3b,_0x573f25)=>_0x573f25(_0xa56c3b)[_0x5b8aa1(0x331)]((0x0,i['concatMap'])(async _0x46e8f1=>{const _0x2a492d=_0x5b8aa1;let _0x2c1ad1=_0x46e8f1;if(_0x2c1ad1[_0x2a492d(0x304)]===0x191){if(typeof window>'u')throw Error(_0x2a492d(0x3eb));if(window[_0x2a492d(0x3ac)](this['localeService']['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x8bd98e=window['encodeURIComponent'](window['location'][_0x2a492d(0x390)]);window['location'][_0x2a492d(0x390)]=this['_getLoginPath']()+_0x2a492d(0x2da)+_0x8bd98e;}}return _0x2c1ad1;}))});}['_getLoginPath'](){const _0x9b251f=_0x4c0aa4;var _0x3aafcd;let _0x290848=this[_0x9b251f(0x2a2)][_0x9b251f(0x2ee)](m);return(_0x3aafcd=_0x290848==null?void 0x0:_0x290848[_0x9b251f(0x260)])==null?'/universer-api/oidc/authpage':_0x3aafcd;}};W=y([v(0x0,t[_0x4c0aa4(0x4a5)]),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)])),v(0x2,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x28b)]))],W);let G=class extends t[_0x4c0aa4(0x23f)]{constructor(_0x2501e7,_0x701ac7){const _0x133713=_0x4c0aa4;super(),this[_0x133713(0x1f6)]=_0x2501e7,this[_0x133713(0x2a2)]=_0x701ac7,g(this,_0x133713(0x30a),!0x1),this[_0x133713(0x38f)]();}[_0x4c0aa4(0x38f)](){const _0x452ff9=_0x4c0aa4;let _0x9dce92=this;this[_0x452ff9(0x38b)](this[_0x452ff9(0x1f6)][_0x452ff9(0x222)]({'priority':0x3e7,'interceptor':(0x0,l[_0x452ff9(0x282)])({'isMatch'(_0xf1c8e8){const _0x241b22=_0x452ff9;var _0x162fbc;if(_0xf1c8e8[_0x241b22(0x192)]===_0x241b22(0x1a6)&&(_0x162fbc=_0xf1c8e8[_0x241b22(0x3b2)])!=null&&_0x162fbc[_0x241b22(0x1be)]){let {objectID:_0x2353e7,objectType:_0x1b4667}=_0xf1c8e8[_0x241b22(0x3b2)][_0x241b22(0x1be)]||{};if(!_0x2353e7||_0x1b4667===void 0x0)return!0x1;let _0x30598a=_0x9dce92[_0x241b22(0x380)]()+'/'+_0x1b4667+_0x241b22(0x385)+_0x2353e7+_0x241b22(0x266);if(_0xf1c8e8[_0x241b22(0x1f2)]===_0x30598a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x130a7d){const _0x23e619=_0x452ff9;var _0x2423cc;return(_0x2423cc=_0x130a7d[_0x23e619(0x3b2)])==null?void 0x0:_0x2423cc[_0x23e619(0x1be)];},'mergeParamsToRequest'(_0x5f296b,_0x571afc){const _0x2ed478=_0x452ff9;let _0x1bbcac=_0x9dce92[_0x2ed478(0x380)]()+_0x2ed478(0x3d8),_0x5833da=_0x5f296b['reduce']((_0x161398,_0x3e91d4)=>{const _0x269b1a=_0x2ed478;let {unitID:_0x392601,objectID:_0x133f53,objectType:_0x701b47,actions:_0x191993}=_0x3e91d4;return _0x161398[_0x392601]||(_0x161398[_0x392601]={}),_0x161398[_0x392601][_0x133f53]||(_0x161398[_0x392601][_0x133f53]={'objectID':_0x133f53,'objectType':_0x701b47,'actions':[]}),_0x161398[_0x392601][_0x133f53][_0x269b1a(0x28c)][_0x269b1a(0x1e4)](..._0x191993),_0x161398;},{}),_0x6ec10=[];for(let _0xa7a04c in _0x5833da)for(let _0x353d04 in _0x5833da[_0xa7a04c]){let {actions:_0x51b4a6,objectType:_0x37a440}=_0x5833da[_0xa7a04c][_0x353d04],_0x3151df=[...new Set(_0x51b4a6)];_0x6ec10[_0x2ed478(0x1e4)]({'unitID':_0xa7a04c,'objectID':_0x353d04,'objectType':_0x37a440,'actions':_0x3151df});}return new l[(_0x2ed478(0x2df))](_0x2ed478(0x1a6),_0x1bbcac,{'headers':_0x571afc[_0x2ed478(0x453)],'withCredentials':_0x571afc['withCredentials'],'responseType':_0x571afc['responseType'],'body':{'requests':_0x6ec10}});}},{'distributeResult'(_0x4c9cb4,_0x276040){let {objectActions:_0x53673d}=_0x4c9cb4;return _0x276040['map'](_0x32f492=>{const _0x5f0ce7=_0x290d;let {unitID:_0x1446db,objectID:_0xdf6c84,actions:_0xe66171}=_0x32f492,_0x6e1437=_0x53673d[_0x5f0ce7(0x19b)](_0x502027=>_0x502027[_0x5f0ce7(0x426)]===_0x1446db&&_0x502027[_0x5f0ce7(0x230)]===_0xdf6c84);return{'config':_0x32f492,'result':{'actions':_0xe66171[_0x5f0ce7(0x1c8)](_0x5a212b=>_0x6e1437==null?void 0x0:_0x6e1437['actions'][_0x5f0ce7(0x19b)](_0x3b22bc=>_0x3b22bc['action']===_0x5a212b))[_0x5f0ce7(0x19a)](_0xfddb2f=>!!_0xfddb2f),'error':_0x4c9cb4[_0x5f0ce7(0x338)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4a26ab=_0x4c0aa4;var _0x499f02;let _0x45b220=this[_0x4a26ab(0x2a2)][_0x4a26ab(0x2ee)](m);return(_0x499f02=_0x45b220==null?void 0x0:_0x45b220[_0x4a26ab(0x1b5)])==null?_0x4a26ab(0x391):_0x499f02;}async[_0x4c0aa4(0x2e9)](_0x4ca93b){const _0x46bb92=_0x4c0aa4;let _0x39b28e=this[_0x46bb92(0x380)]()+'/'+_0x4ca93b[_0x46bb92(0x449)]+_0x46bb92(0x402);return(await this['_HTTPService'][_0x46bb92(0x2e3)](_0x39b28e,{'body':_0x4ca93b}))[_0x46bb92(0x1be)][_0x46bb92(0x230)]||'';}async[_0x4c0aa4(0x491)](_0x5d952a){const _0x20fab3=_0x4c0aa4;let _0x1af8a9=this[_0x20fab3(0x380)]()+_0x20fab3(0x25b);return(await this[_0x20fab3(0x1f6)][_0x20fab3(0x2e3)](_0x1af8a9,{'body':_0x5d952a}))[_0x20fab3(0x1be)][_0x20fab3(0x245)];}async[_0x4c0aa4(0x33b)](_0x41a3eb){const _0x9e3459=_0x4c0aa4;var _0x3de28f;let _0x3e142f=this[_0x9e3459(0x380)]()+'/'+_0x41a3eb[_0x9e3459(0x449)]+_0x9e3459(0x385)+_0x41a3eb[_0x9e3459(0x230)],_0x4850ef=await this[_0x9e3459(0x1f6)][_0x9e3459(0x456)](_0x3e142f,{'body':_0x41a3eb});if((_0x4850ef==null||(_0x3de28f=_0x4850ef['body'])==null||(_0x3de28f=_0x3de28f[_0x9e3459(0x338)])==null?void 0x0:_0x3de28f[_0x9e3459(0x403)])!==0x1)throw Error(_0x9e3459(0x289));}async[_0x4c0aa4(0x236)](_0x31181f){const _0x2ab8f2=_0x4c0aa4;let _0x749ec7=this[_0x2ab8f2(0x380)]()+'/'+_0x31181f[_0x2ab8f2(0x449)]+'/object/'+_0x31181f['objectID']+'/allowed';return(await this['_HTTPService'][_0x2ab8f2(0x2e3)](_0x749ec7,{'body':_0x31181f}))[_0x2ab8f2(0x1be)][_0x2ab8f2(0x28c)];}async[_0x4c0aa4(0x3ab)](_0x51464a){const _0xb24b49=_0x4c0aa4;let _0x5a45de=this[_0xb24b49(0x380)]()+_0xb24b49(0x3d8);return(await this[_0xb24b49(0x1f6)]['post'](_0x5a45de,{'body':{'requests':_0x51464a}}))[_0xb24b49(0x1be)][_0xb24b49(0x18a)];}async[_0x4c0aa4(0x49c)](_0x439e65){const _0x191b72=_0x4c0aa4;let _0x49a7d6=this[_0x191b72(0x380)]()+'/'+_0x439e65[_0x191b72(0x449)]+_0x191b72(0x295),_0x22652d=await this[_0x191b72(0x1f6)][_0x191b72(0x2e3)](_0x49a7d6,{'body':_0x439e65});return{'roles':_0x22652d[_0x191b72(0x1be)][_0x191b72(0x435)],'actions':_0x22652d[_0x191b72(0x1be)][_0x191b72(0x28c)]};}async['deleteCollaborator'](_0x2a384f){const _0xc8bcf=_0x4c0aa4;let _0x373bbc=this[_0xc8bcf(0x380)]()+_0xc8bcf(0x221);await this[_0xc8bcf(0x1f6)][_0xc8bcf(0x24b)](_0x373bbc,{'params':{'collaboratorID':_0x2a384f[_0xc8bcf(0x1cc)],'objectID':_0x2a384f[_0xc8bcf(0x230)],'unitID':_0x2a384f['unitID']}});}async[_0x4c0aa4(0x354)](_0x2b4616){const _0x26089f=_0x4c0aa4;let _0x528ea7=this[_0x26089f(0x380)]()+_0x26089f(0x221);await this[_0x26089f(0x1f6)][_0x26089f(0x296)](_0x528ea7,{'body':_0x2b4616});}async['createCollaborator'](_0xe53299){const _0x3c7a27=_0x4c0aa4;let _0x4c95dc=this[_0x3c7a27(0x380)]()+_0x3c7a27(0x221);await this[_0x3c7a27(0x1f6)][_0x3c7a27(0x2e3)](_0x4c95dc,{'body':_0xe53299});}async[_0x4c0aa4(0x1ad)](_0x7144f9){const _0x1beded=_0x4c0aa4;var _0x253437;let _0x43404c=this[_0x1beded(0x380)]()+'/collaborator',_0x4f22a1=await this[_0x1beded(0x1f6)][_0x1beded(0x3a5)](_0x43404c,{'params':{'objectID':_0x7144f9['objectID'],'unitID':_0x7144f9[_0x1beded(0x426)]}});return this[_0x1beded(0x2e0)]((_0x253437=_0x4f22a1[_0x1beded(0x1be)][_0x1beded(0x25f)])==null?!0x1:_0x253437),_0x4f22a1[_0x1beded(0x1be)][_0x1beded(0x454)];}async[_0x4c0aa4(0x47f)](_0x10dcc0){const _0x46258d=_0x4c0aa4;let _0x2b92c1=this[_0x46258d(0x380)]()+_0x46258d(0x221);await this['_HTTPService'][_0x46258d(0x456)](_0x2b92c1,{'body':_0x10dcc0});}[_0x4c0aa4(0x2e0)](_0x3857a0){const _0x41a651=_0x4c0aa4;this[_0x41a651(0x30a)]=_0x3857a0;}[_0x4c0aa4(0x415)](){const _0x9144e2=_0x4c0aa4;return this[_0x9144e2(0x30a)];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x4c0aa4(0x389)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x4a5)]))],G);function at(_0x475c4b){const _0x19f3dd=_0x4c0aa4;let _0x3a203b=atob(_0x475c4b),_0x3a1123=new Uint8Array(_0x3a203b[_0x19f3dd(0x1c9)]);for(let _0x41c803=0x0;_0x41c803<_0x3a203b[_0x19f3dd(0x1c9)];_0x41c803++)_0x3a1123[_0x41c803]=_0x3a203b[_0x19f3dd(0x200)](_0x41c803);return _0x3a1123;}function ot(_0x11df16){const _0x537f41=_0x4c0aa4;let _0x559256='';for(let _0x467894=0x0;_0x467894<_0x11df16[_0x537f41(0x1c9)];_0x467894++)_0x559256+=String['fromCharCode'](_0x11df16[_0x467894]);return btoa(_0x559256);}function st(_0x1026e6,_0xf5198a){const _0x161cdc=_0x4c0aa4;let _0x1991a8=at(_0xf5198a),_0x5b47c9=(0x0,f[_0x161cdc(0x26f)])(0x10);return ot((0x0,f[_0x161cdc(0x386)])(_0x5b47c9,(0x0,d[_0x161cdc(0x24f)])(_0x1991a8,_0x5b47c9)[_0x161cdc(0x1f4)]((0x0,f[_0x161cdc(0x21a)])(_0x1026e6))));}function ct(){const _0x3c48b1=_0x4c0aa4;let _0x506559=(0x0,u[_0x3c48b1(0x2eb)])()[_0x3c48b1(0x30e)];if(typeof window<'u'&&window[_0x3c48b1(0x273)]!==void 0x0&&_0x506559){let _0x1732ec={'time':Math[_0x3c48b1(0x32d)](Date[_0x3c48b1(0x471)]()/0x3e8),'domain':location['hostname']};return st(JSON['stringify'](_0x1732ec),_0x506559);}}let K=class{constructor(_0x566bf8){const _0x472042=_0x4c0aa4;this['_httpService']=_0x566bf8,this[_0x472042(0x488)]();}[_0x4c0aa4(0x488)](){const _0x6acd0d=_0x4c0aa4;this[_0x6acd0d(0x3f9)][_0x6acd0d(0x222)]({'interceptor':(_0x3a7fc2,_0x2bb42e)=>{const _0x17d27b=_0x6acd0d;let _0x1543ed=ct();return _0x1543ed&&_0x3a7fc2[_0x17d27b(0x453)][_0x17d27b(0x3d4)]('x-univer-host',_0x1543ed),_0x2bb42e(_0x3a7fc2);}});}};K=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)]))],K);let q=class extends t[_0x4c0aa4(0x31c)]{constructor(_0xca4642,_0x255af7,_0x5aafd3){const _0x221670=_0x4c0aa4;super(),this[_0x221670(0x387)]=_0xca4642,this[_0x221670(0x204)]=_0x255af7,this[_0x221670(0x2c4)]=_0x5aafd3,g(this,_0x221670(0x1e7),new i['BehaviorSubject'](null)),g(this,_0x221670(0x433),new i[(_0x221670(0x378))]()),g(this,_0x221670(0x188),this[_0x221670(0x1e7)][_0x221670(0x421)]()),g(this,_0x221670(0x20a),this[_0x221670(0x433)][_0x221670(0x421)]());}[_0x4c0aa4(0x28d)](){const _0x4e3118=_0x4c0aa4;super[_0x4e3118(0x28d)](),this['_unitLoaded$'][_0x4e3118(0x470)](),this[_0x4e3118(0x1e7)][_0x4e3118(0x470)]();}async['loadUnitOfRevision'](_0x27daea,_0x5d97bb,_0x54a7af,_0x339e48){const _0x169c08=_0x4c0aa4;this[_0x169c08(0x1e7)]['next']({'unitId':_0x27daea,'type':_0x5d97bb,'subUnitId':_0x339e48});let _0x5266bd=null;switch(_0x5d97bb){case t[_0x169c08(0x425)][_0x169c08(0x286)]:_0x5266bd=await this[_0x169c08(0x204)][_0x169c08(0x356)](_0x27daea,_0x54a7af,void 0x0,{'initialSubUnitId':_0x339e48});break;case t[_0x169c08(0x425)][_0x169c08(0x1d6)]:_0x5266bd=await this[_0x169c08(0x204)]['loadDoc'](_0x27daea,_0x54a7af);break;case t[_0x169c08(0x425)][_0x169c08(0x348)]:_0x5266bd=await this['_snapshotService'][_0x169c08(0x285)](_0x27daea,_0x54a7af);break;case t[_0x169c08(0x425)][_0x169c08(0x244)]:_0x5266bd=await this[_0x169c08(0x204)][_0x169c08(0x423)](_0x27daea,_0x54a7af);break;case t[_0x169c08(0x425)]['UNIVER_BASE']:_0x5266bd=await this[_0x169c08(0x204)]['loadBase'](_0x27daea,_0x54a7af);break;default:this[_0x169c08(0x387)]['error'](_0x169c08(0x27f),_0x169c08(0x467));break;}return _0x5266bd&&this['_unitLoaded$'][_0x169c08(0x201)](_0x5266bd),_0x5266bd;}async[_0x4c0aa4(0x2fd)](_0x2aa47f,_0x4190ba,_0x34355e){const _0x4f966c=_0x4c0aa4;var _0x120f20;this[_0x4f966c(0x1e7)][_0x4f966c(0x201)]({'unitId':_0x2aa47f,'type':_0x4190ba,'subUnitId':_0x34355e});let _0xa6c7e9=0x0,_0x16d9ba=await((_0x120f20=this[_0x4f966c(0x2c4)])==null?void 0x0:_0x120f20[_0x4f966c(0x37c)](_0x2aa47f));return _0x16d9ba&&(_0x16d9ba[_0x4f966c(0x3e0)]||_0x16d9ba[_0x4f966c(0x4a9)][_0x4f966c(0x1c9)]!==0x0)&&(_0xa6c7e9=_0x16d9ba[_0x4f966c(0x3f5)]),_0xa6c7e9===0x0&&this[_0x4f966c(0x387)][_0x4f966c(0x2d4)](_0x4f966c(0x27f),_0x4f966c(0x365)),this[_0x4f966c(0x196)](_0x2aa47f,_0x4190ba,_0xa6c7e9,_0x34355e);}};q=y([v(0x0,t['ILogService']),v(0x1,(0x0,t['Inject'])(e['SnapshotService'])),v(0x2,(0x0,t['Optional'])(S))],q);let J=class{constructor(_0x341a1e,_0x4fc1fa,_0x173bbf){const _0x5e3875=_0x4c0aa4;this[_0x5e3875(0x3f9)]=_0x341a1e,this[_0x5e3875(0x2a2)]=_0x4fc1fa,this['_univerInstanceService']=_0x173bbf,g(this,_0x5e3875(0x49f),0x0),g(this,_0x5e3875(0x185),new i['Subject']()),g(this,_0x5e3875(0x271),this['_change$']),g(this,_0x5e3875(0x395),new Map());}[_0x4c0aa4(0x336)](_0x39ef3d){const _0x15943d=_0x4c0aa4;this[_0x15943d(0x49f)]=_0x39ef3d,this[_0x15943d(0x185)]['next'](_0x39ef3d);}[_0x4c0aa4(0x301)](_0x58df98,_0xde5517){const _0x4c94ae=_0x4c0aa4;if(_0xde5517===t[_0x4c94ae(0x25d)]['BASE64']){let _0x45384a=new Image();return _0x45384a[_0x4c94ae(0x42c)]=_0x58df98,_0x45384a;}return this['_imageSourceCache']['get'](_0x58df98);}[_0x4c0aa4(0x1ea)](_0x2d8ac5,_0x351bc2,_0x2012e1){const _0x52017f=_0x4c0aa4;_0x351bc2===t[_0x52017f(0x25d)]['BASE64']||_0x2012e1==null||this[_0x52017f(0x395)][_0x52017f(0x3d4)](_0x2d8ac5,_0x2012e1);}async[_0x4c0aa4(0x20b)](_0x2da02){const _0x53208f=_0x4c0aa4;try{let _0x374cb7=this[_0x53208f(0x407)](this[_0x53208f(0x4aa)](),''+_0x2da02),_0x1fef81=(await this[_0x53208f(0x3f9)]['get'](_0x374cb7))[_0x53208f(0x1be)];if(_0x1fef81['error']&&_0x1fef81[_0x53208f(0x338)][_0x53208f(0x403)]===a['ErrorCode']['OK']){let _0x150865=(0x0,t['resolveWithBasePath'])(_0x1fef81['url'],this[_0x53208f(0x3c3)]());return Promise[_0x53208f(0x42e)](_0x150865);}return Promise[_0x53208f(0x1b6)](_0x1fef81['error']);}catch(_0x3b609b){return Promise['reject'](_0x3b609b);}}async[_0x4c0aa4(0x46d)](_0x32574b){const _0x3fc7cc=_0x4c0aa4;let _0x5018fe='';if(!p['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x3fc7cc(0x1a7)](_0x32574b['type']))return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t[_0x3fc7cc(0x2b9)][_0x3fc7cc(0x292)]));if(_0x32574b[_0x3fc7cc(0x209)]>(0x0,p[_0x3fc7cc(0x2ab)])())return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t[_0x3fc7cc(0x2b9)][_0x3fc7cc(0x2b4)]));try{let _0x1e9be8=new FormData();_0x1e9be8[_0x3fc7cc(0x455)](_0x3fc7cc(0x24a),_0x32574b);let _0x24c8fd=this['_univerInstanceService'][_0x3fc7cc(0x18b)](),_0x52ec1b=_0x24c8fd==null?void 0x0:_0x24c8fd[_0x3fc7cc(0x1ef)]();if(!_0x52ec1b)throw Error('unitId\x20is\x20not\x20found');let _0x4f684f=this[_0x3fc7cc(0x3d7)]()+_0x3fc7cc(0x1ab)+_0x32574b[_0x3fc7cc(0x209)][_0x3fc7cc(0x208)]()+_0x3fc7cc(0x1bc)+a[_0x3fc7cc(0x3ec)][_0x3fc7cc(0x25e)]+'&assign='+encodeURIComponent(_0x52ec1b),_0x5e3ee2={'body':_0x1e9be8},_0x103f4d=(await this[_0x3fc7cc(0x3f9)][_0x3fc7cc(0x2e3)](_0x4f684f,_0x5e3ee2))[_0x3fc7cc(0x1be)];if(typeof _0x103f4d[_0x3fc7cc(0x3ca)]!='string')return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t[_0x3fc7cc(0x2b9)]['ERROR_IMAGE']));_0x5018fe=_0x103f4d['FileId'];}catch{return this[_0x3fc7cc(0x366)](),Promise[_0x3fc7cc(0x1b6)](Error(t['ImageUploadStatusType'][_0x3fc7cc(0x47a)]));}return new Promise((_0x25fff2,_0x539051)=>{const _0x33daf5=_0x3fc7cc;let _0x36c2b6=new FileReader();_0x36c2b6[_0x33daf5(0x414)](_0x32574b),_0x36c2b6[_0x33daf5(0x318)]=_0x34a7b1=>{const _0x3cd3eb=_0x33daf5;var _0x40e5c0;let _0x3d87ad=(_0x40e5c0=_0x34a7b1['target'])==null?void 0x0:_0x40e5c0[_0x3cd3eb(0x3ef)];if(_0x3d87ad==null){this[_0x3cd3eb(0x366)](),_0x539051(Error(t[_0x3cd3eb(0x2b9)][_0x3cd3eb(0x47a)]));return;}_0x25fff2({'imageId':(0x0,t[_0x3cd3eb(0x359)])(0x6),'imageSourceType':t[_0x3cd3eb(0x25d)]['UUID'],'source':_0x5018fe,'base64Cache':_0x3d87ad,'status':t[_0x3cd3eb(0x2b9)]['SUCCUSS']}),this[_0x3cd3eb(0x366)]();};});}[_0x4c0aa4(0x3d7)](){const _0x121844=_0x4c0aa4;var _0x4c5736;let _0x1e7c08=this['_configService'][_0x121844(0x2ee)](m);return(_0x4c5736=_0x1e7c08==null?void 0x0:_0x1e7c08[_0x121844(0x217)])==null?_0x121844(0x3a3):_0x4c5736;}[_0x4c0aa4(0x4aa)](){const _0x2c5e13=_0x4c0aa4;var _0x12daad;let _0x2e83dd=this[_0x2c5e13(0x2a2)][_0x2c5e13(0x2ee)](m);return(_0x12daad=_0x2e83dd==null?void 0x0:_0x2e83dd['signUrlServerUrl'])==null?_0x2c5e13(0x186):_0x12daad;}[_0x4c0aa4(0x3c3)](){const _0x2aecc0=_0x4c0aa4;var _0xcbfea1;let _0x135122=this[_0x2aecc0(0x2a2)][_0x2aecc0(0x2ee)](m);return(_0xcbfea1=_0x135122==null?void 0x0:_0x135122['downloadEndpointUrl'])==null?location[_0x2aecc0(0x437)]:_0xcbfea1;}[_0x4c0aa4(0x407)](_0xdc53b5,_0x310de3){return _0xdc53b5['replace']('{fileID}',_0x310de3);}[_0x4c0aa4(0x366)](){const _0x1a5272=_0x4c0aa4;--this['_waitCount'],this[_0x1a5272(0x185)]['next'](this[_0x1a5272(0x49f)]);}};J=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)])),v(0x1,t['IConfigService']),v(0x2,(0x0,t['Inject'])(t[_0x4c0aa4(0x31d)]))],J);let Y=class{constructor(_0x209ed5,_0x25619d){const _0x1a213d=_0x4c0aa4;this[_0x1a213d(0x2a2)]=_0x209ed5,this[_0x1a213d(0x1f6)]=_0x25619d;}[_0x4c0aa4(0x380)](){const _0x43fda8=_0x4c0aa4;var _0x564735;let _0x13f313=this['_configService'][_0x43fda8(0x2ee)](m);return(_0x564735=_0x13f313==null?void 0x0:_0x13f313[_0x43fda8(0x1b5)])==null?_0x43fda8(0x391):_0x564735;}async[_0x4c0aa4(0x491)](_0x5a20cd){const _0x1d7ca5=_0x4c0aa4;let _0x18878d=this['_getAPIPrefixPath']()+_0x1d7ca5(0x221);return{'list':[{'title':_0x1d7ca5(0x2d3),'mentions':(await this['_HTTPService'][_0x1d7ca5(0x3a5)](_0x18878d,{'params':{'objectID':_0x5a20cd[_0x1d7ca5(0x211)],'unitID':_0x5a20cd[_0x1d7ca5(0x211)]}}))[_0x1d7ca5(0x1be)][_0x1d7ca5(0x454)][_0x1d7ca5(0x1c8)](_0x11bc71=>({'objectId':_0x11bc71['id'],'name':_0x11bc71[_0x1d7ca5(0x441)][_0x1d7ca5(0x364)],'metadata':{'icon':_0x11bc71[_0x1d7ca5(0x441)][_0x1d7ca5(0x469)]},'label':_0x11bc71[_0x1d7ca5(0x441)]['name'],'objectType':t[_0x1d7ca5(0x3f0)][_0x1d7ca5(0x4a8)]})),'metadata':{},'type':t[_0x1d7ca5(0x3f0)][_0x1d7ca5(0x4a8)]}]};}};Y=y([v(0x0,(0x0,t['Inject'])(t[_0x4c0aa4(0x4a5)])),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)]))],Y);let X=class extends t['RxDisposable']{constructor(_0x421dbf,_0x457d85,_0x5233d4,_0x1e6d9f,_0x75b78d){const _0x14a1dc=_0x4c0aa4;super(),this['_injector']=_0x421dbf,this['_univerInstanceService']=_0x457d85,this[_0x14a1dc(0x3ee)]=_0x5233d4,this[_0x14a1dc(0x3d0)]=_0x1e6d9f,this[_0x14a1dc(0x34a)]=_0x75b78d,this[_0x14a1dc(0x442)](),this[_0x14a1dc(0x36e)]();}['_initCloseConn'](){const _0x139636=_0x4c0aa4;let _0x56196a=async _0x36ee95=>{const _0x33a7b7=_0x290d;(await this[_0x33a7b7(0x3d0)]['requireSession'](_0x36ee95))[_0x33a7b7(0x32b)][_0x33a7b7(0x331)]((0x0,s[_0x33a7b7(0x19a)])(_0x3c9050=>_0x3c9050[_0x33a7b7(0x23b)]===e[_0x33a7b7(0x439)][_0x33a7b7(0x24d)]),(0x0,s['takeUntil'])(this[_0x33a7b7(0x428)]))[_0x33a7b7(0x3a4)](_0x3efb9b=>{const _0x455557=_0x33a7b7;let {reason:_0xc3bd07}=_0x3efb9b[_0x455557(0x233)];this[_0x455557(0x34a)][_0x455557(0x40a)]({'id':_0x455557(0x4a1),'data':_0xc3bd07}),this[_0x455557(0x3ee)]['updatePermissionPoint'](new r[(_0x455557(0x2fa))](_0x36ee95)['id'],!0x1),this[_0x455557(0x3d0)]['closeSession'](_0x36ee95);});};(0x0,i[_0x139636(0x21f)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x139636(0x425)][_0x139636(0x286)]),this[_0x139636(0x294)][_0x139636(0x1bb)](t[_0x139636(0x425)][_0x139636(0x1d6)]),this['_univerInstanceService'][_0x139636(0x1bb)](t['UniverInstanceType'][_0x139636(0x244)]),this['_univerInstanceService'][_0x139636(0x1bb)](t['UniverInstanceType'][_0x139636(0x2d5)]))[_0x139636(0x331)]((0x0,s[_0x139636(0x1c8)])(_0x556ef3=>_0x556ef3[_0x139636(0x297)][_0x139636(0x1ef)]()),(0x0,s[_0x139636(0x19a)])(_0x512621=>!(0x0,t[_0x139636(0x19f)])(_0x512621)),(0x0,s['takeUntil'])(this[_0x139636(0x428)]))[_0x139636(0x3a4)](_0x379000=>{_0x56196a(_0x379000);});}['_initUnitPermissionChange'](){const _0x24b4b9=_0x4c0aa4;let _0x3eb899=async _0x4ea2a8=>{const _0x1c96fe=_0x290d;let _0x3264e0=await this['_collaborationSessionService']['requireSession'](_0x4ea2a8),_0x24bfdc=this[_0x1c96fe(0x1fd)][_0x1c96fe(0x3a5)](r[_0x1c96fe(0x46f)]);_0x3264e0[_0x1c96fe(0x32b)][_0x1c96fe(0x331)]((0x0,s[_0x1c96fe(0x19a)])(_0x876921=>_0x876921[_0x1c96fe(0x23b)]===e[_0x1c96fe(0x439)]['UPDATE_PERMISSION_OBJ']),(0x0,s[_0x1c96fe(0x429)])(this[_0x1c96fe(0x428)]))[_0x1c96fe(0x3a4)](_0x328958=>{const _0x234dc8=_0x1c96fe;let {objectId:_0x16b2fa}=_0x328958[_0x234dc8(0x233)];_0x16b2fa===_0x4ea2a8?_0x24bfdc['initWorkbookPermissionChange'](_0x4ea2a8):_0x24bfdc[_0x234dc8(0x1b2)](_0x4ea2a8,_0x16b2fa);});};(0x0,i['merge'])(this['_univerInstanceService'][_0x24b4b9(0x1bb)](t[_0x24b4b9(0x425)][_0x24b4b9(0x286)]))[_0x24b4b9(0x331)]((0x0,s[_0x24b4b9(0x1c8)])(_0x5e8abc=>_0x5e8abc[_0x24b4b9(0x297)][_0x24b4b9(0x1ef)]()),(0x0,s['filter'])(_0x10ace0=>!(0x0,t['isInternalEditorID'])(_0x10ace0)),(0x0,s[_0x24b4b9(0x429)])(this[_0x24b4b9(0x428)]))[_0x24b4b9(0x3a4)](_0xd13f68=>{_0x3eb899(_0xd13f68);});}};X=y([v(0x0,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x4c0aa4(0x1e5)]),v(0x3,(0x0,t[_0x4c0aa4(0x351)])(V)),v(0x4,(0x0,t['Inject'])(_))],X);let Z=class{constructor(_0x2cddb8,_0x142da1){const _0x3aa352=_0x4c0aa4;this[_0x3aa352(0x2a2)]=_0x2cddb8,this['_httpService']=_0x142da1;}async[_0x4c0aa4(0x1cd)](_0x439c45,_0x3c81c4){const _0x2e01d4=_0x4c0aa4;var _0x8a78bd;let {unitID:_0x2ad417,type:_0x5b1258,revision:_0x390229=0x0}=_0x3c81c4,_0x215f87=this[_0x2e01d4(0x40c)]()+'/'+_0x5b1258+_0x2e01d4(0x316)+_0x2ad417+'/rev/'+_0x390229,_0x475fa4=(await this[_0x2e01d4(0x3f9)][_0x2e01d4(0x3a5)](_0x215f87))[_0x2e01d4(0x1be)],_0x5ede0=(_0x8a78bd=_0x475fa4[_0x2e01d4(0x3aa)])==null?void 0x0:_0x8a78bd[_0x2e01d4(0x18e)];if(_0x5ede0){let _0x438689=_0x5ede0==null?void 0x0:_0x5ede0[_0x2e01d4(0x3d6)];_0x5ede0[_0x2e01d4(0x3d6)]=e[_0x2e01d4(0x418)][_0x2e01d4(0x27a)]((0x0,e['b64DecodeUnicode'])(_0x438689)),Object['entries'](_0x5ede0[_0x2e01d4(0x2b5)])['forEach'](([,_0xa3e482])=>{const _0x1114f7=_0x2e01d4;let _0x3dd769=_0xa3e482[_0x1114f7(0x3d6)];_0xa3e482['originalMeta']=e[_0x1114f7(0x418)][_0x1114f7(0x27a)]((0x0,e[_0x1114f7(0x466)])(_0x3dd769));});}return _0x475fa4;}async[_0x4c0aa4(0x2e1)](_0x340ad2,_0x95ae7a){const _0x4964bb=_0x4c0aa4;let {unitID:_0x54b7b3,type:_0x16afaa,blockID:_0x37ceb7}=_0x95ae7a,_0x289f23=this[_0x4964bb(0x479)]()+'/'+_0x16afaa+_0x4964bb(0x316)+_0x54b7b3+_0x4964bb(0x30b)+_0x37ceb7;return(await this['_httpService'][_0x4964bb(0x3a5)](_0x289f23))[_0x4964bb(0x1be)];}async[_0x4c0aa4(0x229)](_0x58b8d2,_0x2b32ca){const _0x1f074f=_0x4c0aa4;let {unitID:_0x53a72c,type:_0x599849,blockID:_0x404acd}=_0x2b32ca,_0x1daf3f=this[_0x1f074f(0x479)]()+_0x1f074f(0x30b)+_0x599849+_0x1f074f(0x316)+_0x53a72c+_0x1f074f(0x30b)+_0x404acd;return(await this['_httpService'][_0x1f074f(0x3a5)](_0x1daf3f))[_0x1f074f(0x1be)];}async['fetchMissingChangesets'](_0x582fd1,_0x2c3dbc){const _0x36f449=_0x4c0aa4;let {unitID:_0x50de90,type:_0x42f87c,from:_0x3776b2,to:_0x58b9db}=_0x2c3dbc,_0x31d4db=this[_0x36f449(0x479)]()+'/'+_0x42f87c+_0x36f449(0x316)+_0x50de90+'/fetchmissing?from='+_0x3776b2+_0x36f449(0x2a9)+_0x58b9db;return(await this[_0x36f449(0x3f9)]['get'](_0x31d4db))[_0x36f449(0x1be)];}[_0x4c0aa4(0x40c)](){const _0x3fd750=_0x4c0aa4;var _0x52f6f0;return(_0x52f6f0=this[_0x3fd750(0x2a2)][_0x3fd750(0x2ee)](_0x3fd750(0x452)))==null?this['_getAPIPrefix']():_0x52f6f0;}['_getAPIPrefix'](){const _0x20f07e=_0x4c0aa4;var _0x563b83;let _0x90efa4=this[_0x20f07e(0x2a2)]['getConfig'](m);return(_0x563b83=_0x90efa4==null?void 0x0:_0x90efa4[_0x20f07e(0x3e1)])==null?_0x20f07e(0x41e):_0x563b83;}async[_0x4c0aa4(0x1aa)](_0xf8d418,_0x82573e){const _0x36603e=_0x4c0aa4;let _0x128904=_0x36603e(0x276)+_0x82573e[_0x36603e(0x27c)]+_0x36603e(0x316)+_0x82573e[_0x36603e(0x426)]+_0x36603e(0x36f);return(await this[_0x36603e(0x3f9)]['get'](_0x128904,{'params':{'resourceId':JSON[_0x36603e(0x4a7)](_0x82573e[_0x36603e(0x29d)])}}))[_0x36603e(0x1be)];}['saveSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c0aa4(0x381)](){const _0x51011=_0x4c0aa4;throw Error(_0x51011(0x210));}[_0x4c0aa4(0x28f)](){const _0x2a6949=_0x4c0aa4;throw Error(_0x2a6949(0x210));}[_0x4c0aa4(0x48b)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4c0aa4(0x2d6)](){const _0x225ca5=_0x4c0aa4;throw Error(_0x225ca5(0x210));}[_0x4c0aa4(0x275)](){const _0x4f30c4=_0x4c0aa4;throw Error(_0x4f30c4(0x210));}};Z=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x4c0aa4(0x351)])(l[_0x4c0aa4(0x389)]))],Z);let Q=class extends t[_0x4c0aa4(0x305)]{constructor(_0xb15760,_0x297c5d,_0x2ffe9a,_0x18c495,_0x229890){const _0x118943=_0x4c0aa4;super(_0xb15760,_0x297c5d,_0x2ffe9a),this[_0x118943(0x2f4)]=_0x18c495,this[_0x118943(0x387)]=_0x229890;}[_0x4c0aa4(0x283)](_0x2649eb,_0x16025a){const _0x1cf826=_0x4c0aa4;let _0x17dff1=this[_0x1cf826(0x404)](_0x2649eb);if(_0x17dff1)try{let _0x3b632e=this[_0x1cf826(0x272)](_0x17dff1,_0x16025a);this[_0x1cf826(0x401)](_0x2649eb,_0x3b632e);}catch(_0x496f13){this[_0x1cf826(0x387)][_0x1cf826(0x338)]('[CollaborationUndoRedoService]',_0x496f13),this[_0x1cf826(0x1e6)](_0x2649eb);}let _0x3c6a2b=this[_0x1cf826(0x3ed)](_0x2649eb);if(_0x3c6a2b)try{let _0x323968=this[_0x1cf826(0x272)](_0x3c6a2b,_0x16025a);this[_0x1cf826(0x463)](_0x2649eb,_0x323968);}catch(_0x2ffe7f){this[_0x1cf826(0x387)][_0x1cf826(0x338)](_0x2ffe7f),this[_0x1cf826(0x38a)](_0x2649eb);}}[_0x4c0aa4(0x1e6)](_0x588888){const _0x5c7d8b=_0x4c0aa4;let _0x30a749=this[_0x5c7d8b(0x404)](_0x588888);_0x30a749&&(_0x30a749[_0x5c7d8b(0x1c9)]=0x0,this[_0x5c7d8b(0x436)]());}[_0x4c0aa4(0x38a)](_0x4a9f45){const _0x46ab75=_0x4c0aa4;let _0xa139e=this[_0x46ab75(0x3ed)](_0x4a9f45);_0xa139e&&(_0xa139e['length']=0x0,this['_updateStatus']());}[_0x4c0aa4(0x401)](_0x3309ae,_0xc45e89){const _0x2f0567=_0x4c0aa4;this[_0x2f0567(0x248)][_0x2f0567(0x3d4)](_0x3309ae,_0xc45e89),this['_updateStatus']();}[_0x4c0aa4(0x463)](_0x2c3201,_0x1bb47c){const _0x33e7d2=_0x4c0aa4;this[_0x33e7d2(0x202)][_0x33e7d2(0x3d4)](_0x2c3201,_0x1bb47c),this[_0x33e7d2(0x436)]();}[_0x4c0aa4(0x272)](_0x117ed6,_0x499d23){const _0xb4817=_0x4c0aa4;let _0x9775e2=[],_0x9b1ec9=_0x499d23,_0x417598=_0x499d23;for(let _0x17aa5b=_0x117ed6[_0xb4817(0x1c9)]-0x1;_0x17aa5b>=0x0;_0x17aa5b--){let {unitID:_0x3f0ef0,undoMutations:_0x30e00b,redoMutations:_0x2df912}=_0x117ed6[_0x17aa5b],_0x4d4d10=this[_0xb4817(0x2f4)][_0xb4817(0x2e4)](_0x9b1ec9,_0x30e00b),_0x434ddf=this[_0xb4817(0x2f4)][_0xb4817(0x2e4)](_0x417598,_0x2df912);if((0x0,e[_0xb4817(0x38e)])(_0x4d4d10)||(0x0,e[_0xb4817(0x38e)])(_0x434ddf)){this[_0xb4817(0x387)][_0xb4817(0x338)](_0xb4817(0x3a6),_0xb4817(0x214),_0x4d4d10,_0x434ddf);break;}_0x9b1ec9=_0x4d4d10[_0xb4817(0x3e8)],_0x417598=_0x434ddf[_0xb4817(0x3e8)],_0x9775e2[_0xb4817(0x1e4)]({'unitID':_0x3f0ef0,'undoMutations':_0x4d4d10[_0xb4817(0x465)],'redoMutations':_0x434ddf[_0xb4817(0x465)]});}return _0x9775e2[_0xb4817(0x49a)]();}};Q=y([v(0x0,t[_0x4c0aa4(0x31d)]),v(0x1,t['ICommandService']),v(0x2,t[_0x4c0aa4(0x22c)]),v(0x3,e['ITransformService']),v(0x4,t[_0x4c0aa4(0x2f9)])],Q);let $=class extends t[_0x4c0aa4(0x4a2)]{constructor(_0x4a7ae5=ee,_0x5da5e9,_0x32ec9c,_0x4a399b){const _0x5af21d=_0x4c0aa4;super(),this[_0x5af21d(0x216)]=_0x4a7ae5,this[_0x5af21d(0x387)]=_0x5da5e9,this[_0x5af21d(0x1fd)]=_0x32ec9c,this[_0x5af21d(0x2a2)]=_0x4a399b;let {..._0x5f3cfd}=(0x0,t[_0x5af21d(0x21f)])({},ee,this[_0x5af21d(0x216)]);if(!_0x5f3cfd[_0x5af21d(0x37b)])throw Error(_0x5af21d(0x332));this['_config']=_0x5f3cfd,this[_0x5af21d(0x2a2)]['setConfig'](m,_0x5f3cfd);}[_0x4c0aa4(0x484)](){const _0x446e05=_0x4c0aa4;this[_0x446e05(0x223)](),this['_initDependencies']();}[_0x4c0aa4(0x223)](){const _0x4b60be=_0x4c0aa4;var _0x2f4bcb,_0x3f9b31;this['_injector'][_0x4b60be(0x447)](t['IUndoRedoService'])&&this[_0x4b60be(0x387)][_0x4b60be(0x338)](_0x4b60be(0x42a),_0x4b60be(0x1ec));let _0x533b8f=(0x0,t[_0x4b60be(0x38d)])([[t[_0x4b60be(0x267)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this['_config'][_0x4b60be(0x37b)]}],[e[_0x4b60be(0x31f)],{'useClass':Z}],[t[_0x4b60be(0x300)],{'useClass':G}],[t[_0x4b60be(0x330)],{'useClass':J}],[rt,{'useClass':U}],[t[_0x4b60be(0x328)],{'useClass':Y}],[H],[tt]],(_0x2f4bcb=this[_0x4b60be(0x216)])==null?void 0x0:_0x2f4bcb[_0x4b60be(0x49b)]);if(!((_0x3f9b31=this[_0x4b60be(0x216)])!=null&&_0x3f9b31[_0x4b60be(0x1fb)])){let _0x3f0ffc=_0x533b8f['findIndex'](([_0x3c916d])=>_0x3c916d===w);_0x3f0ffc!==-0x1&&_0x533b8f[_0x4b60be(0x3e7)](_0x3f0ffc,0x1);}(0x0,t[_0x4b60be(0x194)])(this[_0x4b60be(0x1fd)],_0x533b8f);}[_0x4c0aa4(0x474)](){const _0x487d10=_0x4c0aa4;var _0xe0b7f7,_0x2040b2;if(this[_0x487d10(0x1fd)][_0x487d10(0x3a5)](l[_0x487d10(0x389)])[_0x487d10(0x222)]({'priority':0x14,'interceptor':(0x0,l[_0x487d10(0x303)])({'maxParallel':0x6})}),!((_0xe0b7f7=this['_config'])!=null&&_0xe0b7f7[_0x487d10(0x3c0)])){var _0x1e34a8;(_0x1e34a8=this[_0x487d10(0x1fd)][_0x487d10(0x3a5)](S,t[_0x487d10(0x2b3)]['OPTIONAL']))==null||_0x1e34a8[_0x487d10(0x40b)]();}(_0x2040b2=this['_config'])!=null&&_0x2040b2[_0x487d10(0x340)]&&(0x0,t[_0x487d10(0x2a7)])(this[_0x487d10(0x1fd)],[[W]]),(0x0,t[_0x487d10(0x2a7)])(this[_0x487d10(0x1fd)],[[K],[H],[X]]);}};g($,'pluginName',_0x4c0aa4(0x213)),g($,'packageName',$e),g($,_0x4c0aa4(0x32c),et),$=y([(0x0,t['DependentOn'])(u['UniverLicensePlugin'],e[_0x4c0aa4(0x427)],l[_0x4c0aa4(0x227)]),v(0x1,t[_0x4c0aa4(0x2f9)]),v(0x2,(0x0,t[_0x4c0aa4(0x351)])(t[_0x4c0aa4(0x2c0)])),v(0x3,t[_0x4c0aa4(0x4a5)])],$),exports[_0x4c0aa4(0x355)]=nt,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x3cb),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x29e),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x4c0aa4(0x3cd)](exports,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,_0x4c0aa4(0x379),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x46c),{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x4c0aa4(0x2e5)]=m,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1fe),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x4c0aa4(0x2fb),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1fa),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x493),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x480),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x4c0aa4(0x3ba)]=Be,exports['CollaborationUIEventId']=oe,exports[_0x4c0aa4(0x36c)]=_,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x257),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x4c0aa4(0x339)]=se,Object['defineProperty'](exports,_0x4c0aa4(0x189),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x4c0aa4(0x2a1)]=te,exports[_0x4c0aa4(0x326)]=_0x4c0aa4(0x39b),exports[_0x4c0aa4(0x1f0)]=_0x4c0aa4(0x43c),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1d1),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x1a1),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x4c0aa4(0x2d0),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x4c0aa4(0x2c7)]=_0x4c0aa4(0x3f6),exports[_0x4c0aa4(0x1a2)]=_0x4c0aa4(0x22b),exports[_0x4c0aa4(0x1b7)]=rt,exports[_0x4c0aa4(0x3b9)]=Xe,exports[_0x4c0aa4(0x33f)]=qe,exports['ILocalCacheService']=S,exports[_0x4c0aa4(0x3dc)]=We,exports['ISingleActiveUnitService']=w,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x4c0aa4(0x3fb)]=_0x4c0aa4(0x1c5),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x2cc),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x4c0aa4(0x1e1),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x3df),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x43a),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x4c0aa4(0x3e9)]=_0x4c0aa4(0x2c1),exports[_0x4c0aa4(0x21c)]=_0x4c0aa4(0x3c9),exports[_0x4c0aa4(0x3c7)]=ve,Object['defineProperty'](exports,_0x4c0aa4(0x280),{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x4c0aa4(0x2e6),{'enumerable':!0x0,'get':function(){return C;}}),Object['defineProperty'](exports,_0x4c0aa4(0x262),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x32e),{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x4c0aa4(0x319),{'enumerable':!0x0,'get':function(){return O;}}),exports['UnitStatus']=Se,Object[_0x4c0aa4(0x3cd)](exports,_0x4c0aa4(0x18f),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4c0aa4(0x408)]=Ze,exports[_0x4c0aa4(0x459)]=Ge,exports[_0x4c0aa4(0x360)]=be,exports[_0x4c0aa4(0x31b)]=Ke;
1
+ const _0x33c78d=_0x1643;(function(_0x142a93,_0x262fbb){const _0x4aa8ff=_0x1643,_0x1013dc=_0x142a93();while(!![]){try{const _0x53f273=parseInt(_0x4aa8ff(0x12b))/0x1+-parseInt(_0x4aa8ff(0x1a5))/0x2+parseInt(_0x4aa8ff(0x3e3))/0x3*(parseInt(_0x4aa8ff(0x1cd))/0x4)+parseInt(_0x4aa8ff(0x411))/0x5+parseInt(_0x4aa8ff(0x1de))/0x6*(parseInt(_0x4aa8ff(0x2c3))/0x7)+parseInt(_0x4aa8ff(0x16b))/0x8+-parseInt(_0x4aa8ff(0x2f8))/0x9*(parseInt(_0x4aa8ff(0x304))/0xa);if(_0x53f273===_0x262fbb)break;else _0x1013dc['push'](_0x1013dc['shift']());}catch(_0x194427){_0x1013dc['push'](_0x1013dc['shift']());}}}(_0xff81,0x2741d),Object[_0x33c78d(0x36d)](exports,Symbol['toStringTag'],{'value':_0x33c78d(0x2f7)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x33c78d(0x3d3),ee={},te=_0x33c78d(0x14e),ne=0x4e20;function re(_0x57679c){const _0x4d7147=_0x33c78d;return JSON[_0x4d7147(0x200)](_0x57679c)[_0x4d7147(0x3e4)];}function h(_0x3a6cfd){'@babel/helpers - typeof';const _0x53de19=_0x33c78d;return h=typeof Symbol==_0x53de19(0x201)&&typeof Symbol[_0x53de19(0x2f2)]==_0x53de19(0x3c0)?function(_0x57e1c4){return typeof _0x57e1c4;}:function(_0x2fff7f){const _0x204b60=_0x53de19;return _0x2fff7f&&typeof Symbol=='function'&&_0x2fff7f[_0x204b60(0x3de)]===Symbol&&_0x2fff7f!==Symbol['prototype']?_0x204b60(0x3c0):typeof _0x2fff7f;},h(_0x3a6cfd);}function ie(_0x4808ca,_0x3bdb8b){const _0x4b58c4=_0x33c78d;if(h(_0x4808ca)!=_0x4b58c4(0x3f0)||!_0x4808ca)return _0x4808ca;var _0x3eb8d3=_0x4808ca[Symbol[_0x4b58c4(0x141)]];if(_0x3eb8d3!==void 0x0){var _0x5de81d=_0x3eb8d3[_0x4b58c4(0x184)](_0x4808ca,_0x3bdb8b||_0x4b58c4(0x124));if(h(_0x5de81d)!=_0x4b58c4(0x3f0))return _0x5de81d;throw TypeError(_0x4b58c4(0x1c3));}return(_0x3bdb8b===_0x4b58c4(0x32f)?String:Number)(_0x4808ca);}function ae(_0x390ebb){const _0x169e9b=_0x33c78d;var _0x3177c8=ie(_0x390ebb,_0x169e9b(0x32f));return h(_0x3177c8)==_0x169e9b(0x3c0)?_0x3177c8:_0x3177c8+'';}function g(_0x19a51e,_0x3f88b3,_0x4c843d){const _0x4b321d=_0x33c78d;return(_0x3f88b3=ae(_0x3f88b3))in _0x19a51e?Object[_0x4b321d(0x36d)](_0x19a51e,_0x3f88b3,{'value':_0x4c843d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x19a51e[_0x3f88b3]=_0x4c843d,_0x19a51e;}let oe=function(_0xdc7a14){const _0x44b492=_0x33c78d;return _0xdc7a14[_0x44b492(0x159)]=_0x44b492(0x159),_0xdc7a14[_0x44b492(0x385)]=_0x44b492(0x385),_0xdc7a14[_0x44b492(0x320)]=_0x44b492(0x320),_0xdc7a14[_0x44b492(0x20c)]=_0x44b492(0x20c),_0xdc7a14[_0x44b492(0x26d)]=_0x44b492(0x26d),_0xdc7a14['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0xdc7a14['SOCKET_FAILED']=_0x44b492(0x2e3),_0xdc7a14[_0x44b492(0x369)]=_0x44b492(0x369),_0xdc7a14;}({});var _=class{constructor(){const _0x4b4b19=_0x33c78d;g(this,_0x4b4b19(0x3b9),new i[(_0x4b4b19(0x2ca))]()),g(this,'event$',this[_0x4b4b19(0x3b9)][_0x4b4b19(0x22d)]());}[_0x33c78d(0x26f)](_0x324d29){const _0x1acdba=_0x33c78d;this[_0x1acdba(0x3b9)]['next'](_0x324d29);}},se=class{constructor(){const _0x2d6622=_0x33c78d;g(this,'_commentUpdate$',new i['Subject']()),g(this,'commentUpdate$',this[_0x2d6622(0x123)]['asObservable']());}[_0x33c78d(0x281)](_0x201dc1){const _0x225211=_0x33c78d;this['_commentUpdate$'][_0x225211(0x2bd)](_0x201dc1);}};function v(_0x4f894f,_0x3cff4c){return function(_0x522605,_0x46bb57){_0x3cff4c(_0x522605,_0x46bb57,_0x4f894f);};}function y(_0x262383,_0x270888,_0x51d11e,_0x46b634){const _0x37e1d5=_0x33c78d;var _0x164b35=arguments[_0x37e1d5(0x3e4)],_0x4a1033=_0x164b35<0x3?_0x270888:_0x46b634===null?_0x46b634=Object[_0x37e1d5(0x273)](_0x270888,_0x51d11e):_0x46b634,_0x5ef2c7;if(typeof Reflect==_0x37e1d5(0x3f0)&&typeof Reflect['decorate']=='function')_0x4a1033=Reflect['decorate'](_0x262383,_0x270888,_0x51d11e,_0x46b634);else{for(var _0x4e0cbb=_0x262383[_0x37e1d5(0x3e4)]-0x1;_0x4e0cbb>=0x0;_0x4e0cbb--)(_0x5ef2c7=_0x262383[_0x4e0cbb])&&(_0x4a1033=(_0x164b35<0x3?_0x5ef2c7(_0x4a1033):_0x164b35>0x3?_0x5ef2c7(_0x270888,_0x51d11e,_0x4a1033):_0x5ef2c7(_0x270888,_0x51d11e))||_0x4a1033);}return _0x164b35>0x3&&_0x4a1033&&Object[_0x37e1d5(0x36d)](_0x270888,_0x51d11e,_0x4a1033),_0x4a1033;}let b=class extends t['Disposable']{constructor(_0xf70076){const _0x396380=_0x33c78d;super(),this[_0x396380(0x1eb)]=_0xf70076,g(this,_0x396380(0x20f),new Map()),g(this,'_roomCreated$',new i[(_0x396380(0x2ca))]()),this[_0x396380(0x193)]((0x0,i[_0x396380(0x161)])(this[_0x396380(0x1eb)]['getTypeOfUnitDisposed$'](t[_0x396380(0x3ad)][_0x396380(0x303)])[_0x396380(0x253)]((0x0,s[_0x396380(0x2c2)])(_0xf554fe=>_0xf554fe[_0x396380(0x428)]())),this[_0x396380(0x1eb)][_0x396380(0x367)](t[_0x396380(0x3ad)][_0x396380(0x137)])[_0x396380(0x253)]((0x0,s[_0x396380(0x2c2)])(_0xb5bc7e=>_0xb5bc7e[_0x396380(0x428)]())),this[_0x396380(0x1eb)]['getTypeOfUnitDisposed$'](t[_0x396380(0x3ad)][_0x396380(0x34d)])[_0x396380(0x253)]((0x0,s['map'])(_0x566395=>_0x566395[_0x396380(0x428)]())),this[_0x396380(0x1eb)][_0x396380(0x367)](t[_0x396380(0x3ad)][_0x396380(0x262)])[_0x396380(0x253)]((0x0,s[_0x396380(0x2c2)])(_0x57effd=>_0x57effd[_0x396380(0x428)]())))[_0x396380(0x279)](_0x4a95bd=>this['_removeRoom'](_0x4a95bd)));}[_0x33c78d(0x356)](_0x5cd263){const _0x2aa87f=_0x33c78d;return this[_0x2aa87f(0x20f)]['has'](_0x5cd263)?(0x0,i['of'])(this[_0x2aa87f(0x20f)][_0x2aa87f(0x1d6)](_0x5cd263)):this[_0x2aa87f(0x268)]['pipe']((0x0,s[_0x2aa87f(0x2c2)])(_0x2f58f1=>{const _0x3dfdb8=_0x2aa87f;if(_0x2f58f1===_0x5cd263)return this[_0x3dfdb8(0x20f)]['get'](_0x2f58f1);}));}[_0x33c78d(0x1a3)](_0x58aba4,_0x22e80e){const _0x5ee92a=_0x33c78d;let _0x3aca3c=this[_0x5ee92a(0x20f)][_0x5ee92a(0x1d6)](_0x58aba4);_0x3aca3c||(_0x3aca3c=new ce(),this[_0x5ee92a(0x20f)]['set'](_0x58aba4,_0x3aca3c),this[_0x5ee92a(0x268)]['next'](_0x58aba4)),_0x3aca3c[_0x5ee92a(0x1a3)](_0x22e80e);}[_0x33c78d(0x21a)](_0x56aefa,_0x466934){const _0x40a50c=_0x33c78d;let _0x54441e=this['_roomMembers'][_0x40a50c(0x1d6)](_0x56aefa);_0x54441e&&_0x54441e['removeMember'](_0x466934);}['getRoom'](_0x349290){const _0x596a3a=_0x33c78d;return this[_0x596a3a(0x20f)][_0x596a3a(0x1d6)](_0x349290);}[_0x33c78d(0x147)](_0x34abe5,_0x4a8e62){const _0x234794=_0x33c78d;let _0x3ff3d9=this['_roomMembers'][_0x234794(0x1d6)](_0x34abe5);if(_0x3ff3d9)return _0x3ff3d9[_0x234794(0x147)](_0x4a8e62);}[_0x33c78d(0x1ef)](_0x76f816){const _0x3f79e1=_0x33c78d;let _0x40fc50=this[_0x3f79e1(0x20f)][_0x3f79e1(0x1d6)](_0x76f816);_0x40fc50&&(_0x40fc50[_0x3f79e1(0x438)](),this[_0x3f79e1(0x20f)][_0x3f79e1(0x2c7)](_0x76f816));}[_0x33c78d(0x438)](){const _0x48ea59=_0x33c78d;this[_0x48ea59(0x20f)][_0x48ea59(0x3f3)](_0x5719ee=>_0x5719ee['dispose']()),this[_0x48ea59(0x20f)][_0x48ea59(0x236)](),this['_roomCreated$'][_0x48ea59(0x218)]();}};b=y([v(0x0,t['IUniverInstanceService'])],b);var ce=class extends t['Disposable']{constructor(..._0x220c4b){const _0x542639=_0x33c78d;super(..._0x220c4b),g(this,_0x542639(0x381),new Map()),g(this,_0x542639(0x22f),new i[(_0x542639(0x264))](this[_0x542639(0x381)])),g(this,'members$',this['_members$'][_0x542639(0x22d)]());}[_0x33c78d(0x438)](){const _0x2e4566=_0x33c78d;this['_members'][_0x2e4566(0x236)](),this['_members$'][_0x2e4566(0x218)]();}[_0x33c78d(0x1a3)](_0x3ac6fd){const _0x1b1db1=_0x33c78d;this[_0x1b1db1(0x381)]['set'](_0x3ac6fd[_0x1b1db1(0x40c)],_0x3ac6fd),this[_0x1b1db1(0x3bb)]();}[_0x33c78d(0x21a)](_0x5929a7){const _0x5cf6b3=_0x33c78d;this[_0x5cf6b3(0x381)][_0x5cf6b3(0x2c7)](_0x5929a7),this[_0x5cf6b3(0x3bb)]();}['getMember'](_0x1d52db){const _0x589122=_0x33c78d;return this[_0x589122(0x381)][_0x589122(0x1d6)](_0x1d52db);}['getAllMembers'](){const _0xd9b5ce=_0x33c78d;return Array['from'](this[_0xd9b5ce(0x381)][_0xd9b5ce(0x341)]());}[_0x33c78d(0x3bb)](){const _0x3ac751=_0x33c78d;this[_0x3ac751(0x22f)][_0x3ac751(0x2bd)](this[_0x3ac751(0x381)]);}};function le(_0x4855f0,_0x5bc542){const _0x1dc2d6=_0x33c78d;if(de(_0x4855f0))return _0x5bc542;if(_0x5bc542[_0x1dc2d6(0x399)]===e[_0x1dc2d6(0x2e1)][_0x1dc2d6(0x3a1)]){var _0x1377d1;let _0x3a8b8a=ge(_0x4855f0),_0x99cf86=_0x5bc542;return{..._0x99cf86,'data':{..._0x99cf86[_0x1dc2d6(0x1a1)],'unitID':_0x4855f0[_0x1dc2d6(0x2a3)][_0x1dc2d6(0x3fd)],'unitType':(_0x1377d1=_0x4855f0[_0x1dc2d6(0x2a3)]['unitType'])==null?_0x99cf86[_0x1dc2d6(0x1a1)]['unitType']:_0x1377d1,'changeset':_0x3a8b8a[_0x1dc2d6(0x291)](_0x99cf86['data']['changeset'],_e(_0x4855f0))}};}if(_0x5bc542['eventID']===e[_0x1dc2d6(0x2e1)][_0x1dc2d6(0x26b)]){var _0x88026d;let _0x53ca53=_0x5bc542;return{..._0x53ca53,'data':{..._0x53ca53[_0x1dc2d6(0x1a1)],'unitID':_0x4855f0[_0x1dc2d6(0x2a3)]['unitId'],'unitType':(_0x88026d=_0x4855f0[_0x1dc2d6(0x2a3)][_0x1dc2d6(0x2b2)])==null?_0x53ca53[_0x1dc2d6(0x1a1)][_0x1dc2d6(0x2b2)]:_0x88026d}};}return _0x5bc542;}function ue(_0x32ea12,_0x3823d5){const _0x4f4276=_0x33c78d;if(de(_0x32ea12))return[_0x3823d5];switch(_0x3823d5['eventID']){case e[_0x4f4276(0x2e1)][_0x4f4276(0x28d)]:return[fe(_0x32ea12,_0x3823d5)];case e[_0x4f4276(0x2e1)][_0x4f4276(0x1ed)]:return[me(_0x32ea12,_0x3823d5)];case e[_0x4f4276(0x2e1)][_0x4f4276(0x319)]:return[pe(_0x32ea12,_0x3823d5)];default:return[_0x3823d5];}}function de(_0x2af590){const _0x3215ff=_0x33c78d;return _0x2af590[_0x3215ff(0x2a3)]['endpoint']==null&&_0x2af590[_0x3215ff(0x2a3)][_0x3215ff(0x3fd)]===_0x2af590[_0x3215ff(0x29d)]&&!_0x2af590[_0x3215ff(0x42f)];}function fe(_0x58019e,_0x111fa2){const _0x3c3c66=_0x33c78d;return{..._0x111fa2,'data':(0x0,e[_0x3c3c66(0x338)])(he(_0x58019e,(0x0,e[_0x3c3c66(0x1a4)])(_0x111fa2['data'])))};}function pe(_0x183b76,_0x367c62){const _0x266be7=_0x33c78d;return{..._0x367c62,'data':he(_0x183b76,_0x367c62[_0x266be7(0x1a1)])};}function me(_0x21fcee,_0x354fa5){const _0x2148e7=_0x33c78d;let _0x337136=_0x354fa5[_0x2148e7(0x1a1)];return{..._0x354fa5,'data':{..._0x337136,'changesets':_0x337136['changesets'][_0x2148e7(0x2c2)](_0x598d96=>(0x0,e[_0x2148e7(0x338)])(he(_0x21fcee,(0x0,e[_0x2148e7(0x1a4)])(_0x598d96))))}};}function he(_0x5ca21d,_0x4355b0){const _0x56a25f=_0x33c78d;return ge(_0x5ca21d)[_0x56a25f(0x1c5)](_0x4355b0,_e(_0x5ca21d));}function ge(_0x4319cd){const _0x2ce4f8=_0x33c78d;if(!_0x4319cd[_0x2ce4f8(0x42f)])throw Error(_0x2ce4f8(0x294));return _0x4319cd[_0x2ce4f8(0x42f)];}function _e(_0x3b5227){const _0x2e96a3=_0x33c78d;return{'localUnitId':_0x3b5227[_0x2e96a3(0x29d)],'unitType':_0x3b5227[_0x2e96a3(0x2b2)],'target':_0x3b5227['target']};}let ve=function(_0x59588f){const _0x183b82=_0x33c78d;return _0x59588f[_0x59588f[_0x183b82(0x37b)]=0x0]=_0x183b82(0x37b),_0x59588f[_0x59588f[_0x183b82(0x1a7)]=0x1]=_0x183b82(0x1a7),_0x59588f[_0x59588f[_0x183b82(0x3a8)]=0x2]=_0x183b82(0x3a8),_0x59588f[_0x59588f[_0x183b82(0x360)]=0x3]='ONLINE',_0x59588f;}({});const ye={[a[_0x33c78d(0x2c4)][_0x33c78d(0x368)]]:_0x33c78d(0x425),[a['CmdRspCode']['JOIN_ROOM_FULL']]:_0x33c78d(0x17b),[a[_0x33c78d(0x2c4)][_0x33c78d(0x36b)]]:_0x33c78d(0x154),[a['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:_0x33c78d(0x39f),[a[_0x33c78d(0x2c4)][_0x33c78d(0x389)]]:_0x33c78d(0x21f)};let x=class extends t[_0x33c78d(0x1cf)]{get[_0x33c78d(0x327)](){const _0x5b6f64=_0x33c78d;return this[_0x5b6f64(0x2f9)][_0x5b6f64(0x384)]();}constructor(_0x14c65e,_0x473a0f,_0x54f5f0,_0x178924,_0x1be7b3,_0x300cea,_0x2ea3b7,_0x4a39b0){const _0x154d3e=_0x33c78d;super(),this[_0x154d3e(0x255)]=_0x14c65e,this[_0x154d3e(0x1fe)]=_0x54f5f0,this[_0x154d3e(0x3d0)]=_0x178924,this['_memberService']=_0x1be7b3,this[_0x154d3e(0x152)]=_0x300cea,this[_0x154d3e(0x223)]=_0x2ea3b7,this[_0x154d3e(0x206)]=_0x4a39b0,g(this,_0x154d3e(0x2f9),new i['BehaviorSubject'](0x0)),g(this,_0x154d3e(0x3a7),this['_sessionStatus$'][_0x154d3e(0x22d)]()),g(this,_0x154d3e(0x3b9),new i[(_0x154d3e(0x2ca))]()),g(this,_0x154d3e(0x32d),this[_0x154d3e(0x3b9)][_0x154d3e(0x22d)]()),g(this,_0x154d3e(0x292),void 0x0),g(this,_0x154d3e(0x232),void 0x0),g(this,_0x154d3e(0x25b),void 0x0),g(this,_0x154d3e(0x1e8),!0x1),g(this,_0x154d3e(0x2fa),null),this[_0x154d3e(0x1e8)]=!!this[_0x154d3e(0x206)],_0x473a0f['pipe']((0x0,i['takeUntil'])(this[_0x154d3e(0x12c)]))['subscribe'](_0x193860=>{const _0xfd94ed=_0x154d3e;if(_0x193860!==void 0x0){if(this[_0xfd94ed(0x292)]=_0x193860,_0x193860)this[_0xfd94ed(0x2e8)](_0x193860),this[_0xfd94ed(0x232)]=_0x193860['message$'][_0xfd94ed(0x279)](_0x4dae05=>{const _0x5ddeb5=_0xfd94ed;_0x4dae05[_0x5ddeb5(0x165)]===this[_0x5ddeb5(0x255)]['target'][_0x5ddeb5(0x3fd)]&&this['_onCombEvent'](_0x4dae05);});else{var _0xde8a88;this[_0xfd94ed(0x198)](),this[_0xfd94ed(0x2f9)][_0xfd94ed(0x2bd)](0x2),(_0xde8a88=this[_0xfd94ed(0x232)])==null||_0xde8a88[_0xfd94ed(0x3ce)](),this[_0xfd94ed(0x232)]=null;}}});}[_0x33c78d(0x1ba)](){const _0x388149=_0x33c78d;var _0x5aba54,_0x286b9c;return(_0x5aba54=(_0x286b9c=this[_0x388149(0x292)])==null?void 0x0:_0x286b9c[_0x388149(0x40c)])==null?null:_0x5aba54;}['dispose'](){const _0xded019=_0x33c78d;super['dispose'](),this['close'](),this[_0xded019(0x12c)]['next'](),this[_0xded019(0x12c)][_0xded019(0x218)]();}[_0x33c78d(0x408)](){const _0x4917b8=_0x33c78d;var _0x4688bb;this['_throwTelemetryCollaborationNewChangeset'](),(_0x4688bb=this[_0x4917b8(0x292)])==null||_0x4688bb[_0x4917b8(0x189)]({'cmd':a['CombCmd'][_0x4917b8(0x382)],'data':{'roomID':this[_0x4917b8(0x255)]['target'][_0x4917b8(0x3fd)]}}),this[_0x4917b8(0x3b9)][_0x4917b8(0x218)](),this[_0x4917b8(0x2f9)]['complete']();}['_onCombEvent'](_0x1bebd0){const _0x195bdd=_0x33c78d;_0x1bebd0['cmd']===a[_0x195bdd(0x243)][_0x195bdd(0x1c6)]?this[_0x195bdd(0x1b8)](_0x1bebd0):_0x1bebd0['cmd']===a[_0x195bdd(0x243)][_0x195bdd(0x19b)]&&this[_0x195bdd(0x16d)](_0x1bebd0);}['_joinRoom'](_0x1bb0fe){const _0x27abf2=_0x33c78d;this[_0x27abf2(0x2f9)][_0x27abf2(0x2bd)](0x1),_0x1bb0fe[_0x27abf2(0x189)]({'cmd':a['CombCmd']['JOIN'],'routeKey':this['_identity'][_0x27abf2(0x2a3)][_0x27abf2(0x3fd)],'routeType':'','data':{'rooms':[{'roomID':this['_identity']['target'][_0x27abf2(0x3fd)]}]}});}[_0x33c78d(0x1b8)](_0x106855){const _0x1e8d13=_0x33c78d;var _0x1d1f37;if(_0x106855[_0x1e8d13(0x340)]in ye){this[_0x1e8d13(0x223)][_0x1e8d13(0x26f)]({'id':_0x1e8d13(0x26d),'data':ye[_0x106855[_0x1e8d13(0x340)]]}),this['_sessionStatus$'][_0x1e8d13(0x2bd)](0x2);return;}this[_0x1e8d13(0x2f9)]['next'](0x3);let _0x5b50a0=(_0x1d1f37=_0x106855[_0x1e8d13(0x1a1)][_0x1e8d13(0x229)][this['_identity'][_0x1e8d13(0x2a3)]['unitId']])==null?void 0x0:_0x1d1f37['members'];_0x5b50a0&&_0x5b50a0['forEach'](_0x5d7ece=>this['_memberService']['updateMember'](this['_identity'][_0x1e8d13(0x29d)],_0x5d7ece));}[_0x33c78d(0x16d)](_0x267ef5){const _0x320fcd=_0x33c78d;try{let _0x5dde00=ue(this[_0x320fcd(0x255)],_0x267ef5[_0x320fcd(0x1a1)]);for(let _0x19b4d2 of _0x5dde00)switch(_0x19b4d2[_0x320fcd(0x399)]){case e[_0x320fcd(0x2e1)]['USERS_ENTER']:this[_0x320fcd(0x202)](_0x19b4d2),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;case e['CollaborationEvent']['USERS_LEAVE']:this[_0x320fcd(0x125)](_0x19b4d2),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;case e['CollaborationEvent']['CHANGESET_ACK']:case e[_0x320fcd(0x2e1)]['CHANGESET_SHOULD_RETRY']:this[_0x320fcd(0x2a6)](),this[_0x320fcd(0x1b7)](),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;case e[_0x320fcd(0x2e1)][_0x320fcd(0x18a)]:this[_0x320fcd(0x1fe)][_0x320fcd(0x39c)](_0x320fcd(0x3e9)+JSON['stringify'](_0x19b4d2)),this[_0x320fcd(0x3b9)]['next'](_0x19b4d2);break;case e[_0x320fcd(0x2e1)]['COMMENT_UPDATE']:this['_commentService'][_0x320fcd(0x281)](_0x19b4d2['data']),this[_0x320fcd(0x3b9)][_0x320fcd(0x2bd)](_0x19b4d2);break;default:this[_0x320fcd(0x3b9)]['next'](_0x19b4d2);}}catch(_0x281521){this[_0x320fcd(0x1fe)]['error'](_0x281521,_0x267ef5);}}[_0x33c78d(0x202)](_0x6c4153){const _0x208a9f=_0x33c78d;this[_0x208a9f(0x173)][_0x208a9f(0x1a3)](this[_0x208a9f(0x255)]['localUnitId'],_0x6c4153[_0x208a9f(0x1a1)]);}['_onUserLeave'](_0x2c8fae){const _0x2827f3=_0x33c78d;this[_0x2827f3(0x173)]['removeMember'](this[_0x2827f3(0x255)]['localUnitId'],_0x2c8fae['data'][_0x2827f3(0x40c)]);}async['send'](_0x42634a,_0x21331f){const _0x362682=_0x33c78d;if(this[_0x362682(0x327)]!==0x3||!this[_0x362682(0x292)])throw Error(_0x362682(0x2bf));try{let _0x200803=le(this[_0x362682(0x255)],_0x42634a);_0x200803[_0x362682(0x399)]===e[_0x362682(0x2e1)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x362682(0x228)](_0x200803)),this[_0x362682(0x292)][_0x362682(0x189)]({'cmd':a[_0x362682(0x243)]['INGEST'],'routeKey':this[_0x362682(0x255)][_0x362682(0x2a3)][_0x362682(0x3fd)],'routeType':'','data':_0x200803});}catch(_0x317059){this[_0x362682(0x1fe)][_0x362682(0x39c)](_0x317059);}}[_0x33c78d(0x405)](){const _0x3ac821=_0x33c78d;var _0x115f35;this[_0x3ac821(0x25b)]=setTimeout(()=>{const _0x2a532d=_0x3ac821;this[_0x2a532d(0x25b)]=null,this['_collaborationUIEventService'][_0x2a532d(0x26f)]({'id':_0x2a532d(0x369)});},(_0x115f35=this[_0x3ac821(0x3d0)]['getConfig'](_0x3ac821(0x2f0)))==null?ne:_0x115f35);}[_0x33c78d(0x1b7)](){const _0x43ae34=_0x33c78d;this[_0x43ae34(0x25b)]&&(clearTimeout(this[_0x43ae34(0x25b)]),this[_0x43ae34(0x25b)]=null);}[_0x33c78d(0x228)](_0x135971){const _0x501344=_0x33c78d;if(!this[_0x501344(0x1e8)])return;let {data:_0x2ee8e8}=_0x135971,{unitID:_0x1706c9,changeset:_0xb112a0}=_0x2ee8e8,{mutations:_0x1bcd94,type:_0x9301e3}=_0xb112a0;this['_telemetryInfo']={'unitId':_0x1706c9,'type':_0x9301e3,'startTime':performance[_0x501344(0x3da)](),'stopTime':0x0,'duration':0x0,'size':re(_0x1bcd94)};}[_0x33c78d(0x2a6)](){const _0x3a8bd9=_0x33c78d;if(this[_0x3a8bd9(0x1e8)]){if(!this['_telemetryInfo']){this[_0x3a8bd9(0x1fe)]['error'](_0x3a8bd9(0x427),_0x3a8bd9(0x169));return;}this[_0x3a8bd9(0x2fa)][_0x3a8bd9(0x191)]=performance[_0x3a8bd9(0x3da)](),this[_0x3a8bd9(0x2fa)][_0x3a8bd9(0x31f)]=this[_0x3a8bd9(0x2fa)]['stopTime']-this[_0x3a8bd9(0x2fa)][_0x3a8bd9(0x167)],this[_0x3a8bd9(0x206)][_0x3a8bd9(0x1cc)](_0x3a8bd9(0x392),this[_0x3a8bd9(0x2fa)]),this[_0x3a8bd9(0x2fa)]=null;}}[_0x33c78d(0x198)](){this['_telemetryInfo']=null;}};x=y([v(0x2,t['ILogService']),v(0x3,t[_0x33c78d(0x2d4)]),v(0x4,(0x0,t[_0x33c78d(0x403)])(b)),v(0x5,(0x0,t['Inject'])(se)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x33c78d(0x2cd)])(o[_0x33c78d(0x378)]))],x);function _0x1643(_0x5cc8cd,_0x3bf6c7){_0x5cc8cd=_0x5cc8cd-0x11f;const _0xff819d=_0xff81();let _0x164361=_0xff819d[_0x5cc8cd];return _0x164361;}const S=(0x0,t[_0x33c78d(0x431)])(_0x33c78d(0x298));function be(_0x403e83){const _0x50c02b=_0x33c78d;return _0x50c02b(0x316)+_0x403e83;}function xe(_0x184ab5){const _0xa2fae4=_0x33c78d;let {unitID:_0x321da8,mutations:_0x2e22fb}=_0x184ab5;return{'unitId':_0x321da8,'subUnitId':_0x2e22fb[_0xa2fae4(0x3e4)]>0x0?_0x2e22fb[0x0][_0xa2fae4(0x326)][_0xa2fae4(0x419)]:null};}let C=class{constructor(_0x37ed15,_0x10e3e5,_0x13dab3){const _0x107d2f=_0x33c78d;this[_0x107d2f(0x25e)]=_0x37ed15,this['_transformService']=_0x10e3e5,this['_instanceService']=_0x13dab3;}['transformSelections'](_0x54745f){const _0x3cb318=_0x33c78d;var _0x886369,_0x58bccb;let _0x2b02d7=this['_injector'][_0x3cb318(0x1d6)](r[_0x3cb318(0x386)]),{unitId:_0x2e1293,subUnitId:_0x436b41}=xe(_0x54745f),_0x3091ac=_0x2b02d7==null?void 0x0:_0x2b02d7['getWorkbookSelections'](_0x2e1293)[_0x3cb318(0x2fb)](),_0x2155f9=(_0x886369=this[_0x3cb318(0x1b1)][_0x3cb318(0x1a0)](_0x2e1293))==null||(_0x886369=_0x886369['getActiveSheet']())==null?void 0x0:_0x886369[_0x3cb318(0x380)]();if(_0x3091ac[_0x3cb318(0x3e4)]===0x0||!_0x2e1293||!_0x436b41)return;let _0x44f8e2=[{'id':r[_0x3cb318(0x324)]['id'],'params':{'unitId':_0x2e1293,'subUnitId':_0x2155f9,'selections':t[_0x3cb318(0x2a4)][_0x3cb318(0x1ad)](_0x3091ac)}}],_0x4b6e10=this[_0x3cb318(0x2b3)][_0x3cb318(0x2e4)](_0x54745f,_0x44f8e2);if(!(0x0,e[_0x3cb318(0x2d9)])(_0x4b6e10))throw _0x4b6e10[_0x3cb318(0x39c)];let _0xbd01fd=(_0x58bccb=_0x4b6e10[_0x3cb318(0x19c)][0x0])==null||(_0x58bccb=_0x58bccb[_0x3cb318(0x326)])==null?void 0x0:_0x58bccb[_0x3cb318(0x3e5)];if(Array[_0x3cb318(0x351)](_0xbd01fd)&&_0xbd01fd['length']){if(_0xbd01fd[_0x3cb318(0x3e4)]===_0x44f8e2[0x0][_0x3cb318(0x326)][_0x3cb318(0x3e5)][_0x3cb318(0x3e4)]&&_0xbd01fd[_0x3cb318(0x295)]((_0x3e69f9,_0x1c2fa1)=>t[_0x3cb318(0x397)][_0x3cb318(0x3bf)](_0x3e69f9[_0x3cb318(0x370)],_0x44f8e2[0x0][_0x3cb318(0x326)][_0x3cb318(0x3e5)][_0x1c2fa1][_0x3cb318(0x370)])))return;this[_0x3cb318(0x25e)][_0x3cb318(0x1d6)](t[_0x3cb318(0x1fb)])[_0x3cb318(0x38a)](r[_0x3cb318(0x324)]['id'],{'unitId':_0x2e1293,'subUnitId':_0x2155f9,'selections':_0xbd01fd});}}};C=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,e['ITransformService']),v(0x2,t[_0x33c78d(0x142)])],C);const w=(0x0,t['createIdentifier'])(_0x33c78d(0x3f9));let Se=function(_0x578b18){const _0x3587c7=_0x33c78d;return _0x578b18[_0x578b18[_0x3587c7(0x16a)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x578b18[_0x578b18[_0x3587c7(0x3dd)]=0x1]='OTHER_CLIENTS_EDITING',_0x578b18;}({});function Ce(_0x2976b9){const _0x31d688=_0x33c78d;var _0x19e1ba;return!!((_0x19e1ba=_0x2976b9['params'])!=null&&_0x19e1ba[_0x31d688(0x28c)]);}const we=new Set([r[_0x33c78d(0x241)]['id']]),Te=new Set([c['AddSlidePageMutation']['id'],c['EnsureSlideMasterPageMutation']['id'],c[_0x33c78d(0x436)]['id'],c[_0x33c78d(0x2ba)]['id']]);function Ee(_0x463794,_0x4d07d8=we){const _0x2e7bf5=_0x33c78d;let _0xaeac8a=[];for(let _0x3b8fc5 of _0x463794){if(_0x4d07d8[_0x2e7bf5(0x40e)](_0x3b8fc5['id'])){if(_0xaeac8a['length']>0x0)break;_0xaeac8a[_0x2e7bf5(0x33a)](_0x3b8fc5);break;}if(Ce(_0x3b8fc5)){if(_0xaeac8a[_0x2e7bf5(0x3e4)]>0x0)break;_0xaeac8a['push'](_0x3b8fc5);break;}_0xaeac8a['push'](_0x3b8fc5);}return _0xaeac8a;}function T(_0x3dd57d,_0x1198b4,_0x6301bf,_0x27464a,_0x4fe3f9){const _0x5ad5e6=_0x33c78d;var _0x3f7782,_0xe4e354;let _0x50c072=Ee(_0x3dd57d),_0x6e2b28=_0x4fe3f9[_0x5ad5e6(0x2be)](),_0x5c7443=(_0x3f7782=_0x6e2b28==null?void 0x0:_0x6e2b28[_0x5ad5e6(0x174)])==null?_0x5ad5e6(0x310):_0x3f7782,_0x517268=(_0xe4e354=_0x6e2b28==null?void 0x0:_0x6e2b28[_0x5ad5e6(0x40c)])==null?_0x5ad5e6(0x310):_0xe4e354;return{'changeset':{'unitID':_0x1198b4,'type':(0x0,e[_0x5ad5e6(0x390)])(_0x6301bf['getUnitType'](_0x1198b4)),'baseRev':_0x27464a[_0x5ad5e6(0x1c2)](_0x1198b4),'revision':0x0,'userID':_0x5c7443,'memberID':_0x517268,'mutations':_0x50c072},'pendingMutations':_0x3dd57d['slice'](_0x50c072['length'])};}const De=T;function Oe(_0x465dae,_0x50e44d,_0x30e21e,_0x3d37ce,_0x11ad83){const _0x2eb81a=_0x33c78d;var _0x3f1a2d,_0x3ea4a3;let _0x508498=Ee(_0x465dae,Te),_0xd5f3d3=_0x11ad83[_0x2eb81a(0x2be)](),_0x33f3db=(_0x3f1a2d=_0xd5f3d3==null?void 0x0:_0xd5f3d3['userID'])==null?_0x2eb81a(0x310):_0x3f1a2d,_0x3b086e=(_0x3ea4a3=_0xd5f3d3==null?void 0x0:_0xd5f3d3['memberID'])==null?_0x2eb81a(0x310):_0x3ea4a3;return{'changeset':{'unitID':_0x50e44d,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x30e21e[_0x2eb81a(0x18c)](_0x50e44d)),'baseRev':_0x3d37ce['getCurrentRevOfUnit'](_0x50e44d),'revision':0x0,'userID':_0x33f3db,'memberID':_0x3b086e,'mutations':_0x508498},'pendingMutations':_0x465dae['slice'](_0x508498[_0x2eb81a(0x3e4)])};}function ke(_0x3f7c1f,_0x5e31f1,_0x521f51,_0x5895df,_0x171951){const _0x4f8049=_0x33c78d;var _0x175466,_0x420648;let _0x328235=_0x3f7c1f[_0x4f8049(0x395)]((_0x36fbaa,_0x5999b0)=>{const _0x5824d0=_0x4f8049;let _0x3c6975=_0x36fbaa[_0x36fbaa[_0x5824d0(0x3e4)]-0x1],{id:_0x3928ae}=_0x3c6975==null?{}:_0x3c6975,{id:_0x30b6a7,type:_0x8172ef}=_0x5999b0,_0x3569ce=_0x5999b0['params'];if(_0x3928ae&&_0x3928ae!==_0x30b6a7)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3928ae+'\x20-\x20'+_0x30b6a7+'.');if(!_0x3c6975)return[{'id':_0x30b6a7,'type':_0x8172ef,'params':{'unitId':_0x3569ce[_0x5824d0(0x3fd)],'textRanges':_0x3569ce['textRanges'],'actions':_0x3569ce['actions']}}];let _0x5375c7=_0x3c6975[_0x5824d0(0x326)];return Ae(_0x5375c7,_0x3569ce)?[..._0x36fbaa[_0x5824d0(0x37a)](0x0,-0x1),{..._0x3c6975,'id':_0x30b6a7,'type':_0x8172ef,'params':{'unitId':_0x3569ce[_0x5824d0(0x3fd)],'textRanges':_0x3569ce[_0x5824d0(0x2ad)],'actions':t[_0x5824d0(0x31e)][_0x5824d0(0x3d9)](_0x5375c7[_0x5824d0(0x24a)],_0x3569ce[_0x5824d0(0x24a)])}}]:[..._0x36fbaa,{'id':_0x30b6a7,'type':_0x8172ef,'params':{'unitId':_0x3569ce[_0x5824d0(0x3fd)],'textRanges':_0x3569ce[_0x5824d0(0x2ad)],'actions':_0x3569ce[_0x5824d0(0x24a)]}}];},[]),_0x4443d5=_0x171951[_0x4f8049(0x2be)](),_0x427f63=(_0x175466=_0x4443d5==null?void 0x0:_0x4443d5[_0x4f8049(0x174)])==null?_0x4f8049(0x310):_0x175466,_0x30791a=(_0x420648=_0x4443d5==null?void 0x0:_0x4443d5['memberID'])==null?_0x4f8049(0x310):_0x420648;return{'changeset':{'unitID':_0x5e31f1,'type':(0x0,e[_0x4f8049(0x390)])(_0x521f51[_0x4f8049(0x18c)](_0x5e31f1)),'baseRev':_0x5895df[_0x4f8049(0x1c2)](_0x5e31f1),'revision':0x0,'userID':_0x427f63,'memberID':_0x30791a,'mutations':_0x328235},'pendingMutations':_0x3f7c1f['slice'](_0x3f7c1f[_0x4f8049(0x3e4)])};}function Ae(_0xd2f293,_0x2c376d){const _0x322ec5=_0x33c78d;return!je(_0xd2f293)&&!je(_0x2c376d)&&Me(_0xd2f293[_0x322ec5(0x24a)],_0x2c376d[_0x322ec5(0x24a)]);}function je(_0x114b96){const _0x5033d4=_0x33c78d;return _0x114b96[_0x5033d4(0x343)]!==void 0x0;}function Me(_0x534551,_0x450ea1){return Ne(_0x534551)&&Ne(_0x450ea1)&&!Fe(_0x534551)&&!Fe(_0x450ea1)&&!Pe(_0x534551)&&!Pe(_0x450ea1);}function Ne(_0x5e2ba6){const _0x81c4cd=_0x33c78d;return Ie(_0x5e2ba6)['some'](_0x3b5525=>E(_0x3b5525)&&_0x3b5525['et']===_0x81c4cd(0x1c0));}function Pe(_0x4dd4b4){const _0x3f0cbb=_0x33c78d;return Ie(_0x4dd4b4)[_0x3f0cbb(0x418)](_0x3bea0e=>Array['isArray'](_0x3bea0e)||typeof _0x3bea0e==_0x3f0cbb(0x32f)||typeof _0x3bea0e==_0x3f0cbb(0x287));}function Fe(_0x31cb49){const _0x4c1068=_0x33c78d;return Ie(_0x31cb49)[_0x4c1068(0x418)](_0x6af916=>!E(_0x6af916)||_0x6af916['et']!=='text-x'||!Array[_0x4c1068(0x351)](_0x6af916['e'])?!0x1:_0x6af916['e'][_0x4c1068(0x418)](_0x46bb98=>!E(_0x46bb98)||!E(_0x46bb98[_0x4c1068(0x216)])?!0x1:Object[_0x4c1068(0x1f2)][_0x4c1068(0x128)]['call'](_0x46bb98['body'],_0x4c1068(0x25a))||Object[_0x4c1068(0x1f2)][_0x4c1068(0x128)][_0x4c1068(0x184)](_0x46bb98[_0x4c1068(0x216)],'columnGroups')||Object[_0x4c1068(0x1f2)][_0x4c1068(0x128)][_0x4c1068(0x184)](_0x46bb98[_0x4c1068(0x216)],_0x4c1068(0x290))));}function Ie(_0x25da4c){const _0x2a0074=_0x33c78d;if(!Array[_0x2a0074(0x351)](_0x25da4c))return[];let _0x271cb1=_0x25da4c[_0x2a0074(0x271)]('body')?_0x25da4c:_0x25da4c[_0x2a0074(0x2aa)](_0x435ca0=>Array['isArray'](_0x435ca0)&&_0x435ca0['includes']('body'));if(!Array[_0x2a0074(0x351)](_0x271cb1))return[];let _0x3d8d71=_0x271cb1['indexOf'](_0x2a0074(0x216));return _0x3d8d71===-0x1?[]:_0x271cb1[_0x2a0074(0x37a)](_0x3d8d71+0x1);}function E(_0x5a87fc){const _0x13d8ca=_0x33c78d;return typeof _0x5a87fc=='object'&&!!_0x5a87fc&&!Array[_0x13d8ca(0x351)](_0x5a87fc);}function Le(_0x388dcb,_0x53a9a4){const _0x23a6e7=_0x33c78d;let _0x627252=new i[(_0x23a6e7(0x1ca))](0x1);return setTimeout(()=>_0x627252[_0x23a6e7(0x2bd)](_0x53a9a4),_0x388dcb),_0x627252[_0x23a6e7(0x22d)]()[_0x23a6e7(0x253)]((0x0,i[_0x23a6e7(0x39a)])(0x1));}var Re,ze,Be;let Ve=function(_0x125783){const _0x408e96=_0x33c78d;return _0x125783[_0x408e96(0x42a)]=_0x408e96(0x14a),_0x125783[_0x408e96(0x2ab)]=_0x408e96(0x27d),_0x125783[_0x408e96(0x22e)]=_0x408e96(0x33d),_0x125783[_0x408e96(0x231)]=_0x408e96(0x1f8),_0x125783[_0x408e96(0x3df)]=_0x408e96(0x17f),_0x125783[_0x408e96(0x3f6)]='fetch_missing',_0x125783[_0x408e96(0x320)]=_0x408e96(0x181),_0x125783['OFFLINE']='offline',_0x125783;}({});const He=0x4e20,Ue=0x2bf20;var D=class{constructor(_0x1426bd,_0x50e2b9,_0x32f8c9,_0x3cdfc9,_0x858b22,_0x5e887c,_0x31f43b,_0x362881,_0x30e2a4){const _0x48e752=_0x33c78d;this[_0x48e752(0x131)]=_0x1426bd,this[_0x48e752(0x402)]=_0x50e2b9,this[_0x48e752(0x138)]=_0x858b22,this[_0x48e752(0x3c1)]=_0x5e887c,this[_0x48e752(0x133)]=_0x31f43b,this['_revisionService']=_0x362881,this[_0x48e752(0x1bf)]=_0x30e2a4,g(this,_0x48e752(0x2bc),null),g(this,_0x48e752(0x3b4),[]),this[_0x48e752(0x2bc)]=_0x32f8c9,this[_0x48e752(0x3b4)]=_0x3cdfc9;}['_checkMissing'](_0x2d2e87){const _0x511eaa=_0x33c78d;let _0x2b0799=this[_0x511eaa(0x357)][_0x511eaa(0x1c2)](this[_0x511eaa(0x131)]);return _0x2d2e87[_0x511eaa(0x35b)]>_0x2b0799+0x1?(this[_0x511eaa(0x138)][_0x511eaa(0x2e0)]({'from':_0x2b0799,'to':_0x2d2e87['revision']-0x1}),!0x0):!0x1;}[_0x33c78d(0x18b)](_0x42c87c){const _0x13ae6b=_0x33c78d;this[_0x13ae6b(0x133)][_0x13ae6b(0x401)](this['unitID'],_0x42c87c);}[_0x33c78d(0x2c5)](_0x43c25a){const _0x573322=_0x33c78d;var _0x14607e,_0x1535ea;(_0x14607e=(_0x1535ea=this[_0x573322(0x138)])['onTransformSelections'])==null||_0x14607e[_0x573322(0x184)](_0x1535ea,_0x43c25a);}[_0x33c78d(0x239)](_0x5b702b){const _0x31b937=_0x33c78d;var _0x3ec2c2,_0x2020bb;return(_0x3ec2c2=(_0x2020bb=this[_0x31b937(0x138)])[_0x31b937(0x43e)])==null?void 0x0:_0x3ec2c2[_0x31b937(0x184)](_0x2020bb,_0x5b702b);}[_0x33c78d(0x2c8)](_0x34dd53){const _0x4ac40b=_0x33c78d;var _0x3b087b,_0x162222;return(_0x3b087b=(_0x162222=this[_0x4ac40b(0x138)])[_0x4ac40b(0x168)])==null?void 0x0:_0x3b087b[_0x4ac40b(0x184)](_0x162222,_0x34dd53);}['_transformRemoteChangesetByIMECache'](_0x39bcfe){const _0x1cd2ed=_0x33c78d;var _0x36e25f,_0x159520,_0x4d6098;return(_0x36e25f=(_0x159520=(_0x4d6098=this[_0x1cd2ed(0x138)])[_0x1cd2ed(0x272)])==null?void 0x0:_0x159520[_0x1cd2ed(0x184)](_0x4d6098,_0x39bcfe))==null?_0x39bcfe:_0x36e25f;}[_0x33c78d(0x23a)](_0x512a53){const _0x54530e=_0x33c78d;var _0x7c5b72,_0x2077f1,_0x177789;return(_0x7c5b72=(_0x2077f1=(_0x177789=this[_0x54530e(0x138)])[_0x54530e(0x1c1)])==null?void 0x0:_0x2077f1[_0x54530e(0x184)](_0x177789,_0x512a53))==null?_0x512a53:_0x7c5b72;}[_0x33c78d(0x3a0)](_0x3f606a){const _0x28b364=_0x33c78d;if(this[_0x28b364(0x402)]===t[_0x28b364(0x3ad)][_0x28b364(0x137)]){let {unitID:_0x3ded39,mutations:_0x34f18a,memberID:_0xb27d39}=_0x3f606a,_0x19df65=_0x34f18a['length']>0x0?_0x34f18a[0x0][_0x28b364(0x326)]['textRanges']:[];if(Array[_0x28b364(0x351)](_0x19df65)&&_0x19df65[_0x28b364(0x3e4)]>0x0){var _0x35db06,_0x40d92b;(_0x35db06=(_0x40d92b=this[_0x28b364(0x138)])['onSyncEditingCollabCursor'])==null||_0x35db06[_0x28b364(0x184)](_0x40d92b,{'unitID':_0x3ded39,'memberID':_0xb27d39,'textRanges':_0x19df65});}}}[_0x33c78d(0x261)](){const _0x23eff6=_0x33c78d;var _0x5165f8;(_0x5165f8=this[_0x23eff6(0x1bf)])==null||_0x5165f8[_0x23eff6(0x284)](this[_0x23eff6(0x131)],this[_0x23eff6(0x402)],this[_0x23eff6(0x2bc)],this[_0x23eff6(0x3b4)]);}[_0x33c78d(0x1bc)](){const _0x306c91=_0x33c78d;return this[_0x306c91(0x357)]['getCurrentRevOfUnit'](this[_0x306c91(0x131)]);}[_0x33c78d(0x242)](){const _0xb5ca0e=_0x33c78d;this[_0xb5ca0e(0x357)][_0xb5ca0e(0x2df)](this[_0xb5ca0e(0x131)]);}[_0x33c78d(0x22c)](_0x338a48){const _0xa09189=_0x33c78d;let _0x56acab=this['_transformRemoteChangesetByIMECache'](_0x338a48);_0x56acab=this[_0xa09189(0x23a)](_0x56acab);let _0x48f84b=(0x0,t[_0xa09189(0x263)])(_0x56acab['mutations'],this[_0xa09189(0x3c1)],{'fromCollab':!0x0});if(!_0x48f84b['result']){var _0x1afc15;throw _0x48f84b[_0xa09189(0x39c)]instanceof Error?_0x48f84b['error']:Error((_0x1afc15=_0x48f84b['error'])==null?_0xa09189(0x251):_0x1afc15);}this[_0xa09189(0x239)](_0x56acab),this['_transformStateCache'](_0x56acab),this['_transformUndoredo'](_0x338a48),this[_0xa09189(0x2c5)](_0x56acab),this[_0xa09189(0x3a0)](_0x56acab),this[_0xa09189(0x242)]();}};let O=class extends D{constructor(_0x238860,_0x1ea968,_0x49ffdd,_0x291527,_0x39409d,_0x484f5d,_0x43f945,_0x565002,_0x1be509,_0x319bf7){const _0x27f322=_0x33c78d;super(_0x238860,_0x1ea968,null,[],_0x49ffdd,_0x43f945,_0x484f5d,_0x291527,_0x319bf7),this['_injector']=_0x39409d,this[_0x27f322(0x1fe)]=_0x565002,this['_transformService']=_0x1be509,this[_0x27f322(0x398)]=_0x319bf7,g(this,_0x27f322(0x29e),_0x27f322(0x27d));}[_0x33c78d(0x156)](_0x5de3cb){const _0x5cafc0=_0x33c78d;let _0x3b20ec=this[_0x5cafc0(0x25e)][_0x5cafc0(0x139)](k,this['unitID'],this[_0x5cafc0(0x402)],[_0x5de3cb],this['_handler']);return _0x3b20ec['_schedule'](),_0x3b20ec[_0x5cafc0(0x261)](),_0x3b20ec;}['onRemoteChangeset'](_0x3416eb){const _0x608447=_0x33c78d;if(this[_0x608447(0x266)](_0x3416eb))return this[_0x608447(0x25e)][_0x608447(0x139)](P,this[_0x608447(0x131)],this[_0x608447(0x402)],null,[],null,[_0x3416eb],this[_0x608447(0x138)]);try{let _0x5235f5=this[_0x608447(0x2b3)]['transformMutationsWithChangeset'](_0x3416eb,[e['EmptyMutationInfo']]);if((0x0,e[_0x608447(0x2d9)])(_0x5235f5)){let {c1Prime:_0x3fac38}=_0x5235f5;return this[_0x608447(0x22c)](_0x3fac38),this;}throw _0x5235f5['error'];}catch(_0x50a22b){return this['_logService'][_0x608447(0x39c)](_0x50a22b),this[_0x608447(0x339)](!0x1);}}[_0x33c78d(0x339)](_0x1f801d){const _0x29d867=_0x33c78d;return this[_0x29d867(0x25e)][_0x29d867(0x139)](M,this[_0x29d867(0x131)],this[_0x29d867(0x402)],null,[],this[_0x29d867(0x138)],_0x1f801d);}[_0x33c78d(0x23c)](_0x15ce85){const _0x507561=_0x33c78d;if(_0x15ce85['revision']<=this[_0x507561(0x1bc)]())return this;throw Error(_0x507561(0x30f));}['onRemoteRej'](){const _0x4e3e8d=_0x33c78d;throw Error(_0x4e3e8d(0x203));}['onRemoteRetry'](){return this;}[_0x33c78d(0x230)](){const _0x3acc58=_0x33c78d;return this[_0x3acc58(0x25e)]['createInstance'](N,this[_0x3acc58(0x131)],this[_0x3acc58(0x402)],null,[],this[_0x3acc58(0x138)]);}[_0x33c78d(0x2bb)](){return this;}[_0x33c78d(0x1b9)](){const _0x842d16=_0x33c78d;throw Error(_0x842d16(0x1fc));}[_0x33c78d(0x301)](){const _0x2c986f=_0x33c78d;let _0x346785=this[_0x2c986f(0x357)][_0x2c986f(0x1c2)](this[_0x2c986f(0x131)]);return this['_handler'][_0x2c986f(0x2e0)]({'from':_0x346785,'to':0x0}),this['_injector']['createInstance'](P,this[_0x2c986f(0x131)],this[_0x2c986f(0x402)],null,[],null,[],this['_handler']);}};O=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x4,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x5,t[_0x33c78d(0x3a5)]),v(0x6,t['ICommandService']),v(0x7,t[_0x33c78d(0x3ed)]),v(0x8,e[_0x33c78d(0x2e9)]),v(0x9,(0x0,t[_0x33c78d(0x2cd)])(S))],O);let k=Re=class extends D{constructor(_0x491e29,_0x5556ab,_0x35ca95,_0x39712e,_0x6c8de0,_0x3eca65,_0x349e6a,_0x17c0e0,_0x30cc35,_0x5c0015,_0xdb5360,_0x587cb7,_0x4e8fad,_0xb28e07){const _0x249d70=_0x33c78d;super(_0x491e29,_0x5556ab,null,_0x35ca95,_0x39712e,_0x30cc35,_0x4e8fad,_0x3eca65,_0xb28e07),this[_0x249d70(0x25e)]=_0x6c8de0,this[_0x249d70(0x337)]=_0x349e6a,this[_0x249d70(0x1fe)]=_0x17c0e0,this[_0x249d70(0x3d0)]=_0x5c0015,this[_0x249d70(0x2b3)]=_0xdb5360,this[_0x249d70(0x1eb)]=_0x587cb7,g(this,_0x249d70(0x29e),_0x249d70(0x33d)),g(this,_0x249d70(0x36c),null),g(this,_0x249d70(0x1f3),null);}[_0x33c78d(0x156)](_0x4c2fb2){const _0x588d34=_0x33c78d;return this['_pendingMutations'][_0x588d34(0x33a)](_0x4c2fb2),this['_updateLocalCache'](),this;}[_0x33c78d(0x3cc)](_0x24c449){const _0x414cfd=_0x33c78d;if(this[_0x414cfd(0x266)](_0x24c449))return this[_0x414cfd(0x179)](),this[_0x414cfd(0x25e)][_0x414cfd(0x139)](P,this['unitID'],this[_0x414cfd(0x402)],null,this[_0x414cfd(0x3b4)],null,[_0x24c449],this[_0x414cfd(0x138)]);try{let _0x59f10d=this['_transformService'][_0x414cfd(0x2e4)](_0x24c449,this[_0x414cfd(0x3b4)]);if((0x0,e[_0x414cfd(0x2d9)])(_0x59f10d)){let {c1Prime:_0x53ff3e,m2Prime:_0x1643d2}=_0x59f10d;this[_0x414cfd(0x22c)](_0x53ff3e);let _0x5d272d=this['_injector'][_0x414cfd(0x139)](Re,this[_0x414cfd(0x131)],this['type'],_0x1643d2,this['_handler']);this[_0x414cfd(0x179)]();let _0x5e5a10=new Date()[_0x414cfd(0x17a)](),_0x41c039=this['_scheduleCompleteTimestamp']?Math[_0x414cfd(0x2b9)](this['_scheduleCompleteTimestamp']-_0x5e5a10,0x0):this[_0x414cfd(0x318)]();return _0x5d272d[_0x414cfd(0x413)](_0x41c039),_0x5d272d;}throw _0x59f10d[_0x414cfd(0x39c)];}catch(_0x3dc29d){return this[_0x414cfd(0x1fe)][_0x414cfd(0x39c)](_0x3dc29d),this[_0x414cfd(0x339)](!0x1);}}[_0x33c78d(0x23c)](_0x53bcca){const _0x1ea8ff=_0x33c78d;if(_0x53bcca[_0x1ea8ff(0x35b)]<=this[_0x1ea8ff(0x1bc)]())return this;throw Error(_0x1ea8ff(0x1ec));}['onRemoteRej'](){const _0x4146d4=_0x33c78d;throw Error(_0x4146d4(0x166));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x3d5710=_0x33c78d;return this[_0x3d5710(0x179)](),this[_0x3d5710(0x25e)][_0x3d5710(0x139)](N,this[_0x3d5710(0x131)],this[_0x3d5710(0x402)],null,this[_0x3d5710(0x3b4)],this[_0x3d5710(0x138)]);}[_0x33c78d(0x2bb)](){return this;}[_0x33c78d(0x413)](_0x941b87){const _0xbc5ea8=_0x33c78d;let _0x3cd787=_0x941b87==null?this[_0xbc5ea8(0x318)]():_0x941b87;this['_scheduleCompleteTimestamp']=new Date()[_0xbc5ea8(0x17a)]()+_0x3cd787,this['_sendingTimer']=setTimeout(()=>{const _0x4404c5=_0xbc5ea8;this[_0x4404c5(0x179)]();let _0x4d0eb3=null;switch(this['type']){case t[_0x4404c5(0x3ad)][_0x4404c5(0x303)]:_0x4d0eb3=T(this['_pendingMutations'],this[_0x4404c5(0x131)],this[_0x4404c5(0x1eb)],this['_revisionService'],this[_0x4404c5(0x337)]);break;case t['UniverInstanceType'][_0x4404c5(0x137)]:_0x4d0eb3=this[_0x4404c5(0x3b4)]['every'](_0x4f5dbc=>_0x4f5dbc['id']===n['RichTextEditingMutation']['id'])?ke(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this[_0x4404c5(0x1eb)],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]):T(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this['_univerInstanceService'],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;case t[_0x4404c5(0x3ad)][_0x4404c5(0x3a3)]:_0x4d0eb3=Oe(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this['_univerInstanceService'],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;case t[_0x4404c5(0x3ad)][_0x4404c5(0x26c)]:_0x4d0eb3=De(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this[_0x4404c5(0x1eb)],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;case t['UniverInstanceType']['UNIVER_BOARD']:_0x4d0eb3=T(this[_0x4404c5(0x3b4)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x4404c5(0x337)]);break;case t[_0x4404c5(0x3ad)][_0x4404c5(0x262)]:_0x4d0eb3=T(this[_0x4404c5(0x3b4)],this[_0x4404c5(0x131)],this['_univerInstanceService'],this[_0x4404c5(0x357)],this[_0x4404c5(0x337)]);break;default:throw Error(_0x4404c5(0x312)+this[_0x4404c5(0x402)]+_0x4404c5(0x1ab));}let {changeset:_0x529a9b,pendingMutations:_0x43405f}=_0x4d0eb3;this[_0x4404c5(0x138)][_0x4404c5(0x2ee)](_0x529a9b);let _0x5c0c44=_0x43405f[_0x4404c5(0x3e4)]?this[_0x4404c5(0x25e)][_0x4404c5(0x139)](j,this[_0x4404c5(0x131)],this[_0x4404c5(0x402)],_0x529a9b,_0x43405f,this[_0x4404c5(0x138)],void 0x0):this['_injector'][_0x4404c5(0x139)](A,this[_0x4404c5(0x131)],this['type'],_0x529a9b,this[_0x4404c5(0x138)]);_0x5c0c44['_updateLocalCache'](),this[_0x4404c5(0x138)][_0x4404c5(0x151)](this,_0x5c0c44);},_0x3cd787);}[_0x33c78d(0x318)](){const _0x290741=_0x33c78d;var _0x6980f5;let _0x492abc=this[_0x290741(0x3d0)][_0x290741(0x307)](m);return(_0x6980f5=_0x492abc==null?void 0x0:_0x492abc[_0x290741(0x3d7)])==null?0x7d0:_0x6980f5;}[_0x33c78d(0x1b9)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x33c78d(0x179)](){const _0x1b0aa9=_0x33c78d;this[_0x1b0aa9(0x1f3)]!=null&&(clearTimeout(this[_0x1b0aa9(0x1f3)]),this[_0x1b0aa9(0x1f3)]=null);}[_0x33c78d(0x339)](_0x2b8f28){const _0x5ac006=_0x33c78d;return this[_0x5ac006(0x179)](),this['_injector']['createInstance'](M,this['unitID'],this[_0x5ac006(0x402)],null,this['_pendingMutations'],this[_0x5ac006(0x138)],_0x2b8f28);}};k=Re=y([v(0x4,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(e['RevisionService'])),v(0x6,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x315)])),v(0x7,t[_0x33c78d(0x3ed)]),v(0x8,t[_0x33c78d(0x1fb)]),v(0x9,t[_0x33c78d(0x2d4)]),v(0xa,e[_0x33c78d(0x2e9)]),v(0xb,t['IUniverInstanceService']),v(0xc,t[_0x33c78d(0x3a5)]),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],k);function _0xff81(){const _0x23cfba=['OFFLINE','candidateSocket','initWorkbookPermissionChange','reconnect','_createInitialState','UniverInstanceType','refreshPermission','_upload','_getUploadFileURL','update','_snapshotServerService','_getDownloadEndpointURL','_pendingMutations','editing\x20status\x20changed\x20to','retryConnectingTimer','[DataLoaderService]','_onRemoteRetry','_event$','reqId','_emitMembers','sheets','socket$','post','equals','symbol','_commandService','loadUnitOfRevision','IImageIoService','getAttachmentUrl','putCollaborators','action','LOCAL_CACHE_INTERVAL','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','_clearLocalCache','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_eventService','onRemoteChangeset','DisposableCollection','unsubscribe','_onLocalMutation','_configService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_getSocketChannel','collaboration-client.config','newCsEvent','DependentOn','UPDATE_PERMISSION_OBJ','sendChangesetTimeout','@univerjs-pro/collaboration-client','compose','now','ThresholdInterceptorFactory','resolveUnit','OTHER_CLIENTS_EDITING','constructor','AWAITING_WITH_PENDING','&source=','[CollaborationUndoRedoService]','_unlockTransition','2517hqTvVh','length','selections','updatePermissionPoint','transformChangesets','resolve','save\x20fail\x20reason\x20is\x20','isTransformMutationsWithChangesetFailure','saveSnapshot','joinRsp','ILogService','[OfflineState]:\x20received\x20rejection.','getFocusedUnit','object','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_updateStatus','forEach','_toggleOnline','INGEST','FETCH_MISS','Workbook','PendingState','univer-pro.collaboration-client.single-active-unit-service','copyFileMeta','_localeService','univer-pro.collaboration-client-adapter-service','unitId','BASE64','CompressMutationService','fetching\x20missing\x20changesets\x20from\x20','transformUndoRedo','type','Inject','getImage','_scheduleCollaborationTimeoutTimer','registerDependencies','UUID','close','_getConfig','editingUnit','HEARTBEAT','memberID','getCfgEnableObjInherit','has','headers','_sheetTransformSelectionsService','57030AIUrdR','ImageSourceType','_schedule','avatar','ErrorCode','BaseCollaborationEntity','_getSignURL','some','subUnitId','snapshot','endpoint','/object/','_clearTimeoutTimer','_onOffline','_createSocket','closeSession','UniverCollaborationClientPlugin','fetch_missing','c1Prime','liveShareNewHost','session.join-failed','/-/object/-/batch_allowed','[CollaborationSession]','getUnitId','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','NOT_COLLAB','collabSubmitChangesetUrl','MentionType','CommandType','CollaborationUIEventService','changeset','IMentionIOService','createIdentifier','ISnapshotServerService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','/universer-api/snapshot/','_collaborationSessionService','MoveSlidePageMutation','replace','dispose','DocStateChangeManagerService','_clearRedo','pluginName','HEARTBEAT_INTERVAL','_tryReconnect','onTransformIME','PERMISSION_REJ','BoardCollaborationEntity','UniverNetworkPlugin','MUTATION','CollaborationController','univer-pro.collaboration-client.network-condition.service','_commentUpdate$','default','_onUserLeave','uniscriptRunEvent','_lockTransition','hasOwnProperty','_transformAndApplyRemoteChangeset','_resendWithTimeout','196186DMqstS','dispose$','&to=','socketMessageSubscription','confirm','_state$','unitID','_fetchMissChangesets','_undoRedoService','version','HTTPService','createSocket','UNIVER_DOC','_handler','createInstance','UniverCollaborationPlugin','ISingleActiveUnitService','url','getUnitStatus$','downloadEndpointUrl','HELLO','getInterceptPoints','toPrimitive','IUniverInstanceService','filter','FileId','SnapshotService','/fetchmissing?from=','getMember','subject','_handlerCallback','not_collab','MentionIoHttpService','ERROR_EXCEED_SIZE','originalMeta','ws://127.0.0.1:8000/universer-api/comb/connect','accept','/rev/','onStateChange','_commentService','submit\x20changeset\x20error!','session.room-not-exists','CollaborationSessionService','appendMutation','x-univer-host','{fileID}','OTHER_CLIENT_EDITING','_transformStack','socketService','[OfflineState]:\x20received\x20changeset.','readAsDataURL','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','COMMENT_UPDATE','_change$','merge','updateCollaborator','src','UNIVER_COLLABORATION_CLIENT_PLUGIN','routeKey','[PendingState]:\x20received\x20rejection.','startTime','onTransformState','telemetry\x20info\x20is\x20not\x20initialized','NO_OTHER_CLIENTS_EDITING','969712sGSzCK','SHOULD_CLOSE_CONN','_onRecvEvent','IContextService','RichTextEditingMutation','OPTIONAL','_unitInfo$','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_memberService','userID','getSnapshotAPIPath','RevisionService','ILocalCacheService','isPermissionRej','_clearScheduledTask','getTime','session.room-full','USERS_ENTER','batchAllowed','Disposable','awaiting_with_pending','_sendHeartbeat','conflict','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','DEFAULT_COLLAB_WEB_SOCKET_URL','call','uploadFileServerUrl','UnitStatus','UPDATE_CURSOR','COMPRESS_MUTATION_APPLY','send','MSG_FOR_ERROR','_transformUndoredo','getUnitType','state','textEncoder','IPermissionService','_collaborationPaused','stopTime','_config','disposeWithMe','1.0.0-alpha.8','_changesetSessionId','getDeserializedSheetBlock','FileSource','_throwTelemetryCollaborationNewChangeset','unitLoaded$','/universer-api/user/session-ticket','RECV','m2Prime','SheetTransformSelectionsService','/resources','_acknowledgedAwaitingRevision','getUnit','data','fetchMissingChangesets','updateMember','parseProtocolChangeset','54288nFIgFs','_initRequestHeader','JOINING','mergeOverrideWithDependencies','addImageSourceCache','_clearUndo','\x20in\x20_schedule.','CHANGESET_REJ','deepClone','firstValueFrom','_remoteChangesetQueue','min','_instanceService','_HTTPService','DocCollaborationEntity','hostname','status$','isInternalEditorID','_clearCollaborationTimeoutTimer','_onJoinRoomEvent','resend','getMemberID','[OfflineState]:\x20received\x20acknowledgement.','_getCurrentRevision','_decreaseWaiting','loadOfflineData','_localCacheService','text-x','onTransformRemoteChangesetByStateCache','getCurrentRevOfUnit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onFetchMissResult','toLocal','JOIN','ISocketService','_socketChannels','updateCursorEvent','ReplaySubject','_sessions','capture','212dZljBz','UnitEmbedded','RxDisposable','getUploadOptions','collaborators','onMissedChangesetFetched','FetchingMissState','init','sendHeartbeatTimer','get','b64DecodeUnicode','_docStateChangeManagerService','fromCharCode','requireSession','transformSelections','_tryEnsureSocket','roles','444036vMvOmB','size','COLLABORATION_ENDPOINT_INVALID','retryConnectingInterval','online$','_submitChangeset','/collaborator','signUrlServerUrl','toString','_clearRetryConnectingTimer','_shouldReportTelemetry','file','COMPRESS_MUTATION_SEND','_univerInstanceService','[PendingState]:\x20received\x20acknowledgement.','PSEUDO_FETCH_MISSING_RESULT','fromCollab','_removeRoom','_resendTimer','uuidv4','prototype','_sendingTimer','_unitLoaded$','maxSize','UNISCRIPT_RUN','leaveEvent','awaiting','debug','_maxTotalRetryTimeout','ICommandService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','AwaitingWithPendingState','_logService','_compressMutationService','stringify','function','_onUserJoin','[SyncedState]:\x20received\x20rejection.','endpointKey','listCollaborators','_telemetryService','_resolveSessionIdentity','trim','_updateState','HEARTBEAT_TIMEOUT_KEY','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CLOSE_ROOM','_httpService','transformStack\x20failed!','_roomMembers','_entities','entityInit$','LIVESHARE_REQUEST_HOST','list','SnapshotServerOverHTTPService','allowed','body','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','complete','onTransformSelections','removeMember','_getCtorByUniverInstanceType','_collabSessionService','parse','CollaborationSocketService','session.room-cnt-exceeds','ERROR_IMAGE_TYPE','reject','_isEchoedAwaitingChangeset','_collaborationUIEventService','_sender','loadBoard','onMutationExecutedForCollab','csShouldRetryEvent','_startTelemetryCollaborationNewChangeset','roomInfos','/universer-api/stream/file/upload','changesets','_executeRemoteChangeset','asObservable','PENDING','_members$','toggleOffline','AWAITING','_socketMessageSubscription','getImageSourceCache','/universer-api/authz','workbook','clear','cbc','getLocalCacheKey','_transformIMECache','_transformRemoteChangesetByStateCache','_networkConditionService','onRemoteAck','_substituteRedoStack','open$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','set','InsertSheetMutation','_incrementRevisionNumber','CombCmd','_onRemoteRejected','getSheetBlock','Injector','close$','_transitionLocked','name','actions','RETRY_CONNECTING_MAX_COUNT','collaboration-client.auth.needGotoLoginAlert','_socketService','getTypeOfUnitAdded$','ImageUploadStatusType','toDisposable','[CollaborationState]:\x20apply\x20error!','session','pipe','_getRedoStack','_identity','ConflictState','univer-pro.collaboration-client-socket-service','serializeCombRequest','_createHandler','tables','_collaborationTimeoutTimer','put','IAuthzIoService','_injector','error$','patch','_updateLocalCache','UNIVER_BASE','sequenceExecute','BehaviorSubject','CollaborationEntity','_checkMissing','missingChangesets','_roomCreated$','_showConflictNotification','change$','FETCH_MISSING','UNIVER_PDF','JOIN_ROOM_FAILED','enableCollaboration','emitEvent','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','includes','onTransformRemoteChangesetByIMECache','getOwnPropertyDescriptor','cmd','upload','_permissionService','LIVESHARE_FETCH_OPERATIONS','/universer-api/comb','subscribe','CommentService','PERSON','awaitingChangeset','synced','loginUrlKey','isTransformChangesetsSuccess','mutations','onCommentUpdate','docStateChange$','result','updateOfflineData','SyncedState','_redoStacks','number','_onConnectionOpen','getLatestCsReqIdBySid','_state','saveChangeset','__splitChunk__','NEW_CHANGESETS','_init','_type','blockRanges','toRemote','_socket','SNAPSHOT_URL_KEY','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','every','createCollaborator','_createInitialStateImpl','collaboration-client.local-cache-service','People','MemberService','unit','_doCreateSocket','localUnitId','status','_queuedRemoteChangesets','_toggleOffline','_replayCachedMutations','IAttachmentIoService','target','Tools','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_stopTelemetryCollaborationNewChangeset','CollaborationUIEventId','csAckEvent','location','find','SYNCED','listRoles','textRanges','collaMsg','_getUndoStack','ERROR_IMAGE','ICollaborationClientAdapterService','unitType','_transformService','_getAPIPrefixPath','readyForCollab','append','cfgEnableObjInherit','_applyRemoteChangeset','max','RemoveSlidePageMutation','toggleOnline','_awaitingChangeset','next','getCurrentUser','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','HEARTBEAT_INTERVAL_KEY','/object','map','14drHnWd','CmdRspCode','_transformSelections','WorkbookEditablePermission','delete','_transformStateCache','_onMessage','Subject','_entityInit$','_singleActiveUnitService','Optional','AwaitingState','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_sessionChannels','endsWith','base-ui.attachment-io.service','setShowComponents','IConfigService','/allowed','DataLoaderService','INetworkConditionService','deleteCollaborator','isTransformMutationsWithChangesetSuccess','pauseCollaboration','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_onRemoteChangeset','LOCAL_CACHE_INTERVAL_KEY','entries','incrementRevOfUnit','onMissingChangesets','CollaborationEvent','USERS_LEAVE','SOCKET_FAILED','transformMutationsWithChangeset','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','registerHTTPInterceptor','_joinRoom','ITransformService','objectType','responseType','SlideCollaborationEntity','getResourcesRequest','onSendChangeset','_disableEditing','HEARTBEAT_TIMEOUT','timeoutTimer','iterator','shouldCloseConn','message$','localeService','ICollaborationSocketService','Module','136368MosATV','_sessionStatus$','_telemetryInfo','getCurrentSelections','_getLoginPath','_handleRemoteChangesets','onSyncEditingCollabCursor','add','authzUrl','fetchMiss','loadSlide','UNIVER_SHEET','220qeWNIr','_substituteUndoStack','_exhaustRemoteChangesetQueue','getConfig','findIndex','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','_snapshotService','?size=','LIVESHARE_NEW_HOST','_status$','enableSingleActiveInstanceLock','[SyncedState]:\x20received\x20acknowledgement.','unknown','onLocalMutation','[PendingState]:\x20unhandled\x20univer\x20type:\x20','splice','getGlobalObject','UserManagerService','unit-cache-','_listenToNetworkCondition','_getSendChangesetTimeout','CHANGESET_SHOULD_RETRY','snapshotServerUrl','POST','SUCCUSS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','JSONX','duration','CONFLICT','title','setCfgEnableObjInherit','_getAPIPrefix','SetSelectionsOperation','[CollaborationEntity]','params','sessionStatus','fetchThroughInterceptors','CollaborationImageIoService','getCollabEntity','socket\x20open.','_hasSessionsForEndpoint','event$','_startCollaboration','string','catch','DEFAULT_WS_SESSION_TICKET_URL','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','concatBytes','unitId\x20is\x20not\x20found','_onConnectionFailed','onStarting','_userManagerService','parseChangesetToProtocol','_onConflict','push','_waitCount','SOCKET_FAILED_RETRY','pending','/universer-api/oidc/authpage','CollaborationStatus','code','values','connection\x20error','isCompositionEnd','loadDoc','_createSession','LocalUndoRedoService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','collabWebSocketUrl','LIVESHARE_OPERATION','focused$','getCollabEntity$','requestParams','UNIVER_BOARD','Error\x20on\x20receiving\x20event','delay','objects','isArray','touchDependencies','takeUntil','onlyLocal','socketReady','waitForRoom$','_revisionService','SessionStatus','_acknowledgeAwaiting','Plugin','revision','LocaleService','_adapter','collaboratorID','?url=','ONLINE','method','interceptor','resolveWithBasePath','origin','baseRev','retryCount','getTypeOfUnitDisposed$','FAIL','SUBMIT_CHANGESET_TIMEOUT','encode','JOIN_ROOM_NOT_EXISTS','_scheduleCompleteTimestamp','defineProperty','_initUnitPermissionChange','utf8ToBytes','range','permissionRejEvent','sid','/role','onRemoteRetry','href','&assign=','LIVESHARE_TERMINATE','ITelemetryService','/unit/','slice','IDLE','startsWith','_pendingSessions','override','socket\x20close','getSheetId','_members','LEAVE','objectID','getValue','PERMISSION_DENIED','SheetsSelectionsService','_isPermissionRej','getDrawingImageAllowSize','GLOBAL_ROOMS_CNT_EXCEEDS','executeCommand','OfflineState','_resendTimeout','onRemoteRej','loadUnit','offline','mapDocumentTypeToUniverInstanceType','_initMergeInterceptor','collaboration_new_changeset','_clearHeartbeatTimer','updatePermissionObjEvent','reduce','AuthzIoHttpService','Rectangle','localCacheService','eventID','take','create','error','/block/','_cfgEnableObjInherit','session.room-permission-denied','_syncEditingCollabCursor','SUBMIT_CHANGESET','PdfCollaborationEntity','UNIVER_SLIDE','_rescheduleHeartbeat','IUndoRedoService','enableOfflineEditing','sessionStatus$'];_0xff81=function(){return _0x23cfba;};return _0xff81();}let A=ze=class extends D{constructor(_0x19a206,_0x3f0db2,_0x161567,_0x5d1020,_0x3f5e43,_0x2c0235,_0x11b199,_0x3e3b91,_0x3df886,_0x338a1f,_0x5b2fd6){const _0xcb85ac=_0x33c78d;super(_0x19a206,_0x3f0db2,_0x161567,[],_0x5d1020,_0x11b199,_0x338a1f,_0x2c0235,_0x5b2fd6),this[_0xcb85ac(0x25e)]=_0x3f5e43,this[_0xcb85ac(0x1fe)]=_0x3e3b91,this[_0xcb85ac(0x2b3)]=_0x3df886,g(this,_0xcb85ac(0x29e),'awaiting'),g(this,_0xcb85ac(0x38c),0x0),g(this,_0xcb85ac(0x1fa),0x0),g(this,_0xcb85ac(0x1f0),void 0x0),g(this,_0xcb85ac(0x224),void 0x0);}['appendMutation'](_0x286ab9){const _0x48f1da=_0x33c78d;this[_0x48f1da(0x179)]();let _0x4ccd28=this[_0x48f1da(0x25e)][_0x48f1da(0x139)](j,this[_0x48f1da(0x131)],this[_0x48f1da(0x402)],this[_0x48f1da(0x2bc)],[_0x286ab9],this['_handler'],this[_0x48f1da(0x1f0)]);return _0x4ccd28['_updateLocalCache'](),_0x4ccd28;}[_0x33c78d(0x3cc)](_0x362847){const _0x2da54b=_0x33c78d;if(this[_0x2da54b(0x266)](_0x362847))return this['_clearScheduledTask'](),this[_0x2da54b(0x25e)][_0x2da54b(0x139)](P,this[_0x2da54b(0x131)],this[_0x2da54b(0x402)],this['_awaitingChangeset'],[],null,[_0x362847],this[_0x2da54b(0x138)]);try{let _0x498624=this[_0x2da54b(0x2b3)][_0x2da54b(0x3e7)]([_0x362847],[this[_0x2da54b(0x2bc)]],!0x1);if((0x0,e[_0x2da54b(0x27f)])(_0x498624)){let {c1Prime:_0x49ee78,c2Prime:_0xfd2f1b}=_0x498624;this[_0x2da54b(0x22c)](_0x49ee78[0x0]),_0xfd2f1b[0x0][_0x2da54b(0x365)]=this['_getCurrentRevision'](),this[_0x2da54b(0x179)]();let _0x266d8a=this[_0x2da54b(0x25e)]['createInstance'](ze,this[_0x2da54b(0x131)],this[_0x2da54b(0x402)],_0xfd2f1b[0x0],this[_0x2da54b(0x138)]);return _0x266d8a[_0x2da54b(0x261)](),_0x266d8a;}throw _0x498624[_0x2da54b(0x39c)];}catch(_0x5dda6f){return this[_0x2da54b(0x1fe)]['error'](_0x5dda6f),this[_0x2da54b(0x339)](!0x1);}}[_0x33c78d(0x23c)](_0x3544b0){const _0x2f18e9=_0x33c78d;this[_0x2f18e9(0x179)]();let _0x49a809=this['_revisionService'][_0x2f18e9(0x1c2)](this[_0x2f18e9(0x131)]);if(_0x3544b0[_0x2f18e9(0x35b)]<=_0x49a809)return this;if(this['_checkMissing'](_0x3544b0))return this[_0x2f18e9(0x25e)][_0x2f18e9(0x139)](P,this[_0x2f18e9(0x131)],this['type'],this[_0x2f18e9(0x2bc)],[],_0x3544b0[_0x2f18e9(0x35b)],[],this[_0x2f18e9(0x138)]);this['_incrementRevisionNumber']();let _0x19cc0e=this[_0x2f18e9(0x25e)]['createInstance'](O,this[_0x2f18e9(0x131)],this[_0x2f18e9(0x402)],this[_0x2f18e9(0x138)]);return _0x19cc0e[_0x2f18e9(0x261)](),_0x19cc0e;}[_0x33c78d(0x38d)](_0x5a0cd0){const _0xc7a65=_0x33c78d;return this[_0xc7a65(0x339)](!!(_0x5a0cd0!=null&&_0x5a0cd0[_0xc7a65(0x178)]));}[_0x33c78d(0x374)](_0x230b2a){const _0x132b33=_0x33c78d;return this[_0x132b33(0x1fa)]>Ue?this[_0x132b33(0x230)]():(this[_0x132b33(0x1f0)]=Le(this[_0x132b33(0x38c)],{'timeout':this['_resendTimeout'],'reqId':_0x230b2a['reqId']}),this['_sender']=this[_0x132b33(0x1f0)][_0x132b33(0x279)](({reqId:_0x2d70e9,timeout:_0x4791ab})=>{const _0x1e6626=_0x132b33;this[_0x1e6626(0x12a)](_0x2d70e9,_0x4791ab);}),this);}[_0x33c78d(0x230)](){const _0x2c810c=_0x33c78d;return this[_0x2c810c(0x179)](),this[_0x2c810c(0x25e)]['createInstance'](N,this[_0x2c810c(0x131)],this['type'],this[_0x2c810c(0x2bc)],[],this[_0x2c810c(0x138)]);}[_0x33c78d(0x2bb)](){return this;}[_0x33c78d(0x1b9)](){const _0xd79d96=_0x33c78d;this['_handler'][_0xd79d96(0x2ee)](this['_awaitingChangeset']);}[_0x33c78d(0x339)](_0x4567b0){const _0x262255=_0x33c78d;return this['_clearScheduledTask'](),this[_0x262255(0x25e)][_0x262255(0x139)](M,this[_0x262255(0x131)],this[_0x262255(0x402)],this[_0x262255(0x2bc)],[],this['_handler'],_0x4567b0);}[_0x33c78d(0x12a)](_0x3d847e,_0x3044e8){const _0x15ff3b=_0x33c78d;var _0x4c1b11;_0x3d847e===((_0x4c1b11=this[_0x15ff3b(0x2bc)])==null?void 0x0:_0x4c1b11[_0x15ff3b(0x3ba)])&&(this[_0x15ff3b(0x1b9)](),this[_0x15ff3b(0x38c)]=_0x3044e8===0x0?0x3e8:Math[_0x15ff3b(0x1b0)](_0x3044e8*0x2,He),this['_maxTotalRetryTimeout']+=this[_0x15ff3b(0x38c)]);}['_clearScheduledTask'](){const _0x2e3044=_0x33c78d;var _0x84cc4b;(_0x84cc4b=this[_0x2e3044(0x224)])==null||_0x84cc4b['unsubscribe'](),this[_0x2e3044(0x38c)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};A=ze=y([v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x6,t['ICommandService']),v(0x7,t['ILogService']),v(0x8,e['ITransformService']),v(0x9,t[_0x33c78d(0x3a5)]),v(0xa,(0x0,t[_0x33c78d(0x2cd)])(S))],A);let j=Be=class extends D{constructor(_0x22239b,_0x4fea81,_0x3ee86d,_0xe64b06,_0x12af7d,_0x1e5e61,_0x309202,_0xe21578,_0x1994f7,_0x47acaa,_0x18cf60,_0x56e3d0,_0x51a2a7){const _0x1ec4ff=_0x33c78d;super(_0x22239b,_0x4fea81,_0x3ee86d,_0xe64b06,_0x12af7d,_0x1994f7,_0x56e3d0,_0xe21578,_0x51a2a7),this[_0x1ec4ff(0x25e)]=_0x309202,this['_logService']=_0x47acaa,this[_0x1ec4ff(0x2b3)]=_0x18cf60,this['localCacheService']=_0x51a2a7,g(this,_0x1ec4ff(0x29e),'awaiting_with_pending'),g(this,_0x1ec4ff(0x38c),0x0),g(this,_0x1ec4ff(0x1fa),0x0),g(this,_0x1ec4ff(0x1f0),void 0x0),g(this,_0x1ec4ff(0x224),void 0x0),_0x1e5e61&&(this[_0x1ec4ff(0x1f0)]=_0x1e5e61,this['_sender']=this[_0x1ec4ff(0x1f0)]['subscribe'](({reqId:_0x4e0995,timeout:_0x12ade9})=>{const _0x1694e4=_0x1ec4ff;this[_0x1694e4(0x12a)](_0x4e0995,_0x12ade9);}));}[_0x33c78d(0x156)](_0x58f909){const _0x4e649a=_0x33c78d;return this['_pendingMutations'][_0x4e649a(0x33a)](_0x58f909),this;}['onRemoteChangeset'](_0x219208){const _0x12d404=_0x33c78d;if(this[_0x12d404(0x266)](_0x219208))return this[_0x12d404(0x179)](),this[_0x12d404(0x25e)][_0x12d404(0x139)](P,this[_0x12d404(0x131)],this[_0x12d404(0x402)],this[_0x12d404(0x2bc)],this[_0x12d404(0x3b4)],null,[_0x219208],this[_0x12d404(0x138)]);try{let _0x196f9c=this[_0x12d404(0x2b3)]['transformChangesets']([_0x219208],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x12d404(0x27f)])(_0x196f9c)){let {c1Prime:_0x242dfc,c2Prime:_0x5b7ae8}=_0x196f9c,_0xf579fc=this['_transformService'][_0x12d404(0x2e4)](_0x242dfc[0x0],this[_0x12d404(0x3b4)]);if((0x0,e[_0x12d404(0x2d9)])(_0xf579fc)){let {c1Prime:_0x5ec425,m2Prime:_0x410727}=_0xf579fc;return this[_0x12d404(0x22c)](_0x5ec425),_0x5b7ae8[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x12d404(0x25e)]['createInstance'](Be,this['unitID'],this[_0x12d404(0x402)],_0x5b7ae8[0x0],_0x410727,this[_0x12d404(0x138)],void 0x0);}throw _0xf579fc[_0x12d404(0x39c)];}throw _0x196f9c[_0x12d404(0x39c)];}catch(_0x3c5aff){return this['_logService'][_0x12d404(0x39c)](_0x3c5aff),this[_0x12d404(0x339)](!0x1);}}[_0x33c78d(0x23c)](_0x277c0d){const _0x917986=_0x33c78d;this['_clearScheduledTask']();let _0x29298d=this[_0x917986(0x1bc)]();if(_0x277c0d['revision']<=_0x29298d)return this;if(this[_0x917986(0x266)](_0x277c0d))return this[_0x917986(0x25e)]['createInstance'](P,this[_0x917986(0x131)],this[_0x917986(0x402)],this[_0x917986(0x2bc)],this[_0x917986(0x3b4)],_0x277c0d[_0x917986(0x35b)],[],this['_handler']);this[_0x917986(0x242)]();let _0x297e68=this['_injector'][_0x917986(0x139)](k,this['unitID'],this[_0x917986(0x402)],this[_0x917986(0x3b4)],this['_handler']);return _0x297e68[_0x917986(0x413)](),_0x297e68['_updateLocalCache'](),_0x297e68;}[_0x33c78d(0x38d)](_0x24b323){const _0xa07f6e=_0x33c78d;return this[_0xa07f6e(0x339)](!!(_0x24b323!=null&&_0x24b323[_0xa07f6e(0x178)]));}['onRemoteRetry'](_0x441d32){const _0x462d7d=_0x33c78d;return this['_maxTotalRetryTimeout']>Ue?this[_0x462d7d(0x230)]():(this[_0x462d7d(0x1f0)]=Le(this[_0x462d7d(0x38c)],{'timeout':this[_0x462d7d(0x38c)],'reqId':_0x441d32[_0x462d7d(0x3ba)]}),this[_0x462d7d(0x224)]=this[_0x462d7d(0x1f0)]['subscribe'](({reqId:_0x50696e,timeout:_0x3e7271})=>{const _0x3c6e35=_0x462d7d;this[_0x3c6e35(0x12a)](_0x50696e,_0x3e7271);}),this);}[_0x33c78d(0x230)](){const _0x5151cf=_0x33c78d;return this[_0x5151cf(0x179)](),this['_injector'][_0x5151cf(0x139)](N,this[_0x5151cf(0x131)],this[_0x5151cf(0x402)],this[_0x5151cf(0x2bc)],this[_0x5151cf(0x3b4)],this[_0x5151cf(0x138)]);}['toggleOnline'](){return this;}[_0x33c78d(0x1b9)](){const _0x4f0e02=_0x33c78d;this[_0x4f0e02(0x138)][_0x4f0e02(0x2ee)](this[_0x4f0e02(0x2bc)]);}[_0x33c78d(0x339)](_0x17ee85){const _0x98a011=_0x33c78d;return this[_0x98a011(0x179)](),this[_0x98a011(0x25e)][_0x98a011(0x139)](M,this[_0x98a011(0x131)],this['type'],null,this[_0x98a011(0x3b4)],this[_0x98a011(0x138)],_0x17ee85);}['_resendWithTimeout'](_0x22f2ea,_0x627200){const _0x214513=_0x33c78d;var _0x257a79;_0x22f2ea===((_0x257a79=this[_0x214513(0x2bc)])==null?void 0x0:_0x257a79[_0x214513(0x3ba)])&&(this[_0x214513(0x1b9)](),this[_0x214513(0x38c)]=_0x627200===0x0?0x3e8:Math[_0x214513(0x1b0)](_0x627200*0x2,He),this[_0x214513(0x1fa)]+=this[_0x214513(0x38c)]);}['_clearScheduledTask'](){const _0x44d1ac=_0x33c78d;var _0x4538fa;(_0x4538fa=this[_0x44d1ac(0x224)])==null||_0x4538fa['unsubscribe'](),this[_0x44d1ac(0x38c)]=0x0,this[_0x44d1ac(0x1fa)]=0x0;}};j=Be=y([v(0x6,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(e['RevisionService'])),v(0x8,t[_0x33c78d(0x1fb)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,e[_0x33c78d(0x2e9)]),v(0xb,t[_0x33c78d(0x3a5)]),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(S))],j);let M=class extends D{constructor(_0x1c9d18,_0x1d6129,_0x161c92,_0x2bcf61,_0x450741,_0x4bb89a=!0x1,_0x50ee3b,_0x4b436b,_0x5b567d,_0xeaaba7,_0x3c5a84,_0x19c28f,_0x5f1e47){const _0x24a2e3=_0x33c78d;super(_0x1c9d18,_0x1d6129,_0x161c92,_0x2bcf61,_0x450741,_0x4b436b,_0x5b567d,_0xeaaba7,_0x5f1e47),this['_isPermissionRej']=_0x4bb89a,this[_0x24a2e3(0x276)]=_0x50ee3b,this[_0x24a2e3(0x3fb)]=_0x3c5a84,this['_collaborationUIEventService']=_0x19c28f,this[_0x24a2e3(0x398)]=_0x5f1e47,g(this,_0x24a2e3(0x29e),_0x24a2e3(0x181)),this[_0x24a2e3(0x269)](),this[_0x24a2e3(0x3c9)](),this[_0x24a2e3(0x2ef)]();}[_0x33c78d(0x156)](){return this;}[_0x33c78d(0x3cc)](){return this;}[_0x33c78d(0x23c)](){return this;}[_0x33c78d(0x38d)](){return this;}[_0x33c78d(0x374)](){return this;}[_0x33c78d(0x230)](){return this;}['toggleOnline'](){return this;}[_0x33c78d(0x1b9)](){const _0x3a172d=_0x33c78d;throw Error(_0x3a172d(0x429));}[_0x33c78d(0x3c9)](){const _0x54ebc8=_0x33c78d;var _0x4a92a1,_0x3239f4,_0x59d3e6;(_0x4a92a1=this[_0x54ebc8(0x1bf)])==null||(_0x3239f4=_0x4a92a1['backupOfflineData'])==null||(_0x3239f4=_0x3239f4[_0x54ebc8(0x184)](_0x4a92a1,this[_0x54ebc8(0x131)],_0x54ebc8(0x181)))==null||_0x3239f4[_0x54ebc8(0x330)](()=>void 0x0),(_0x59d3e6=this['_localCacheService'])==null||_0x59d3e6[_0x54ebc8(0x284)](this['unitID'],this[_0x54ebc8(0x402)],null,[]);}[_0x33c78d(0x269)](){const _0x4d0840=_0x33c78d;this[_0x4d0840(0x387)]?this[_0x4d0840(0x223)][_0x4d0840(0x26f)]({'id':'PERMISSION_DENIED'}):this['_collaborationUIEventService'][_0x4d0840(0x26f)]({'id':_0x4d0840(0x320)});}[_0x33c78d(0x2ef)](){const _0x58598d=_0x33c78d;this['_permissionService'][_0x58598d(0x3e6)](new r[(_0x58598d(0x2c6))](this[_0x58598d(0x131)])['id'],!0x1);}};M=y([v(0x6,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x18f)])),v(0x7,t[_0x33c78d(0x1fb)]),v(0x8,t[_0x33c78d(0x3a5)]),v(0x9,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0xa,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x35c)])),v(0xb,(0x0,t['Inject'])(_)),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(S))],M);let N=class extends D{constructor(_0x47e10e,_0x444583,_0x5ee48d,_0x264afa,_0xa2c68c,_0x50c7de,_0x32c247,_0x45b417,_0x3c645d,_0x417eae){const _0x59e8d5=_0x33c78d;super(_0x47e10e,_0x444583,_0x5ee48d,_0x264afa,_0xa2c68c,_0x45b417,_0x3c645d,_0x32c247,_0x417eae),this[_0x59e8d5(0x25e)]=_0x50c7de,g(this,'status',_0x59e8d5(0x38f));}[_0x33c78d(0x156)](_0x45ca9d){const _0x21f95d=_0x33c78d;return this[_0x21f95d(0x3b4)]['push'](_0x45ca9d),this[_0x21f95d(0x261)](),this;}['onRemoteChangeset'](_0x31742d){const _0x55a292=_0x33c78d;throw Error(_0x55a292(0x15c));}[_0x33c78d(0x23c)](){const _0x4fd6a0=_0x33c78d;throw Error(_0x4fd6a0(0x1bb));}[_0x33c78d(0x38d)](){const _0x48c4e8=_0x33c78d;throw Error(_0x48c4e8(0x3ee));}[_0x33c78d(0x374)](){return this;}['toggleOffline'](){return this;}[_0x33c78d(0x2bb)](){const _0x5e44dc=_0x33c78d;let {_injector:_0x1883dc,_pendingMutations:_0x529f25,_awaitingChangeset:_0x3416c0,unitID:_0x464bb2,_handler:_0x5aaf60,type:_0x278864}=this,_0x823e10=We(_0x1883dc,_0x464bb2,_0x278864,_0x3416c0,_0x529f25,_0x5aaf60);return _0x823e10 instanceof k?_0x823e10[_0x5e44dc(0x413)]():(_0x823e10 instanceof j||_0x823e10 instanceof A)&&_0x823e10[_0x5e44dc(0x1b9)](),_0x823e10;}[_0x33c78d(0x1b9)](){const _0x4ef1d2=_0x33c78d;throw Error(_0x4ef1d2(0x172));}};N=y([v(0x5,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,t['ICommandService']),v(0x8,t[_0x33c78d(0x3a5)]),v(0x9,(0x0,t['Optional'])(S))],N);let P=class extends D{constructor(_0xc4d8c3,_0x2a66f9,_0x436c58,_0x3cc394,_0x536a4c,_0x1ecd81,_0x1d7586,_0x560916,_0x59eeea,_0x4d3dcc,_0x537153,_0x2936b9,_0x5d2872,_0x434b74){const _0x1728b7=_0x33c78d;super(_0xc4d8c3,_0x2a66f9,_0x436c58,_0x3cc394,_0x1d7586,_0x537153,_0x2936b9,_0x59eeea,_0x434b74),this['_acknowledgedAwaitingRevision']=_0x536a4c,this['_queuedRemoteChangesets']=_0x1ecd81,this[_0x1728b7(0x25e)]=_0x560916,this[_0x1728b7(0x1fe)]=_0x4d3dcc,this[_0x1728b7(0x2b3)]=_0x5d2872,this[_0x1728b7(0x398)]=_0x434b74,g(this,'status',_0x1728b7(0x422));}[_0x33c78d(0x1d2)](_0x513737){const _0x4a211e=_0x33c78d;try{if(this[_0x4a211e(0x2fd)](_0x513737)['missingChangesets'])throw Error(_0x4a211e(0x270));if(this['_handleRemoteChangesets']([...this[_0x4a211e(0x29f)]]['sort']((_0x3c144d,_0x32628e)=>_0x3c144d[_0x4a211e(0x35b)]-_0x32628e['revision']))[_0x4a211e(0x267)])return this[_0x4a211e(0x29f)]=[],this[_0x4a211e(0x261)](),this['_handler'][_0x4a211e(0x2e0)]({'from':this[_0x4a211e(0x1bc)](),'to':0x0}),this;let _0x481b2b=this['_awaitingChangeset'],_0x2a6b68=this[_0x4a211e(0x3b4)],_0x5642c2;if(_0x481b2b&&_0x2a6b68[_0x4a211e(0x3e4)]!==0x0)_0x5642c2=this[_0x4a211e(0x25e)]['createInstance'](j,this['unitID'],this[_0x4a211e(0x402)],_0x481b2b,_0x2a6b68,this[_0x4a211e(0x138)],void 0x0);else{if(_0x481b2b&&_0x2a6b68[_0x4a211e(0x3e4)]===0x0)_0x481b2b[_0x4a211e(0x365)]=this[_0x4a211e(0x1bc)](),_0x5642c2=this['_injector']['createInstance'](A,this[_0x4a211e(0x131)],this[_0x4a211e(0x402)],_0x481b2b,this['_handler']);else{if(_0x2a6b68[_0x4a211e(0x3e4)]!==0x0){let _0x114816=this[_0x4a211e(0x25e)][_0x4a211e(0x139)](k,this[_0x4a211e(0x131)],this[_0x4a211e(0x402)],_0x2a6b68,this[_0x4a211e(0x138)]);_0x114816[_0x4a211e(0x413)](),_0x5642c2=_0x114816;}else _0x5642c2=this[_0x4a211e(0x25e)][_0x4a211e(0x139)](O,this['unitID'],this[_0x4a211e(0x402)],this['_handler']);}}return _0x5642c2['_updateLocalCache'](),_0x5642c2;}catch(_0x38560c){return this[_0x4a211e(0x1fe)][_0x4a211e(0x39c)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x38560c),this[_0x4a211e(0x25e)][_0x4a211e(0x139)](M,this['unitID'],this[_0x4a211e(0x402)],this[_0x4a211e(0x2bc)],this[_0x4a211e(0x3b4)],this[_0x4a211e(0x138)],!0x1);}}[_0x33c78d(0x2fd)](_0x15a787){const _0x56cb4b=_0x33c78d;this['_acknowledgeAwaitingIfReady']();for(let _0x1c0108=0x0;_0x1c0108<_0x15a787[_0x56cb4b(0x3e4)];_0x1c0108++){let _0x2d9b83=_0x15a787[_0x1c0108],_0x57f637=this[_0x56cb4b(0x1bc)]();if(!(_0x2d9b83[_0x56cb4b(0x35b)]<=_0x57f637)){if(_0x2d9b83[_0x56cb4b(0x35b)]>_0x57f637+0x1)return{'missingChangesets':!0x0};if(this[_0x56cb4b(0x222)](_0x2d9b83)){this[_0x56cb4b(0x359)]();continue;}this[_0x56cb4b(0x129)](_0x2d9b83),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x33c78d(0x129)](_0x2c7651){const _0x3cab1d=_0x33c78d;let _0x31b4ad=_0x2c7651,_0x9f0a6d=this[_0x3cab1d(0x2bc)];if(_0x9f0a6d){let _0x5e3cd6=this[_0x3cab1d(0x2b3)]['transformChangesets']([_0x2c7651],[_0x9f0a6d],!0x1);if(!(0x0,e[_0x3cab1d(0x27f)])(_0x5e3cd6))throw _0x5e3cd6['error'];_0x31b4ad=_0x5e3cd6[_0x3cab1d(0x423)][0x0],_0x9f0a6d=_0x5e3cd6['c2Prime'][0x0];}let _0x12599c=this['_pendingMutations'];if(_0x12599c[_0x3cab1d(0x3e4)]){let _0x177bca=this[_0x3cab1d(0x2b3)][_0x3cab1d(0x2e4)](_0x31b4ad,_0x12599c);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x177bca))throw _0x177bca[_0x3cab1d(0x39c)];_0x31b4ad=_0x177bca[_0x3cab1d(0x423)],_0x12599c=_0x177bca[_0x3cab1d(0x19c)];}this[_0x3cab1d(0x22c)](_0x31b4ad),_0x9f0a6d&&(_0x9f0a6d[_0x3cab1d(0x365)]=this[_0x3cab1d(0x1bc)]()),this[_0x3cab1d(0x2bc)]=_0x9f0a6d,this[_0x3cab1d(0x3b4)]=_0x12599c;}['_acknowledgeAwaitingIfReady'](){const _0x2732f7=_0x33c78d;if(!this[_0x2732f7(0x2bc)]||this[_0x2732f7(0x19f)]==null)return;let _0x221869=this[_0x2732f7(0x1bc)]();if(this[_0x2732f7(0x19f)]<=_0x221869)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this[_0x2732f7(0x19f)]===_0x221869+0x1&&this['_acknowledgeAwaiting']();}[_0x33c78d(0x359)](){const _0x6683ee=_0x33c78d;this[_0x6683ee(0x242)](),this[_0x6683ee(0x2bc)]=null,this[_0x6683ee(0x19f)]=null;}[_0x33c78d(0x222)](_0x20e456){const _0x59cd14=_0x33c78d;let _0x366dd4=this[_0x59cd14(0x2bc)];return!_0x366dd4||!_0x366dd4[_0x59cd14(0x372)]||_0x366dd4[_0x59cd14(0x3ba)]===null||_0x366dd4[_0x59cd14(0x3ba)]===void 0x0?!0x1:_0x20e456[_0x59cd14(0x131)]===_0x366dd4['unitID']&&_0x20e456[_0x59cd14(0x372)]===_0x366dd4[_0x59cd14(0x372)]&&_0x20e456['reqId']===_0x366dd4['reqId'];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x33c78d(0x156)](_0x42f5f7){const _0x3dedf6=_0x33c78d;return this[_0x3dedf6(0x3b4)]['push'](_0x42f5f7),this;}['onRemoteChangeset'](_0x265e8a){const _0x4c6e30=_0x33c78d;return this[_0x4c6e30(0x29f)][_0x4c6e30(0x33a)](_0x265e8a),this;}[_0x33c78d(0x23c)](_0x5c63e5){const _0x7abaaf=_0x33c78d;if(this[_0x7abaaf(0x2bc)]){let _0x3754e2=this[_0x7abaaf(0x1bc)]();return _0x5c63e5[_0x7abaaf(0x35b)]<=_0x3754e2||(_0x3754e2+0x1===_0x5c63e5[_0x7abaaf(0x35b)]?(this[_0x7abaaf(0x242)](),this[_0x7abaaf(0x2bc)]=null,this[_0x7abaaf(0x19f)]=null):this[_0x7abaaf(0x19f)]=_0x5c63e5[_0x7abaaf(0x35b)]),this;}if(_0x5c63e5[_0x7abaaf(0x35b)]<=this[_0x7abaaf(0x1bc)]())return this;throw Error(_0x7abaaf(0x2cf));}[_0x33c78d(0x38d)](_0x359b55){const _0x3ae7f3=_0x33c78d;return this[_0x3ae7f3(0x339)](!!(_0x359b55!=null&&_0x359b55[_0x3ae7f3(0x178)]));}[_0x33c78d(0x374)](){return this;}[_0x33c78d(0x230)](){const _0x442ca4=_0x33c78d;return this[_0x442ca4(0x25e)][_0x442ca4(0x139)](N,this[_0x442ca4(0x131)],this[_0x442ca4(0x402)],this[_0x442ca4(0x2bc)],this[_0x442ca4(0x3b4)],this[_0x442ca4(0x138)]);}['toggleOnline'](){return this;}['_onConflict'](_0x277253){const _0x44cfc6=_0x33c78d;return this[_0x44cfc6(0x25e)][_0x44cfc6(0x139)](M,this['unitID'],this[_0x44cfc6(0x402)],this[_0x44cfc6(0x2bc)],this[_0x44cfc6(0x3b4)],this[_0x44cfc6(0x138)],_0x277253);}};P=y([v(0x7,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x8,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x9,t['ILogService']),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t[_0x33c78d(0x3a5)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],P);function We(_0x1aa792,_0x31564e,_0x10d85b,_0x451bd7,_0xc3c77c,_0x115eb3){const _0x53f54b=_0x33c78d;return _0x451bd7&&_0xc3c77c[_0x53f54b(0x3e4)]?_0x1aa792[_0x53f54b(0x139)](j,_0x31564e,_0x10d85b,_0x451bd7,_0xc3c77c,_0x115eb3,void 0x0):_0x451bd7?_0x1aa792[_0x53f54b(0x139)](A,_0x31564e,_0x10d85b,_0x451bd7,_0x115eb3):_0xc3c77c['length']?_0x1aa792[_0x53f54b(0x139)](k,_0x31564e,_0x10d85b,_0xc3c77c,_0x115eb3):_0x1aa792[_0x53f54b(0x139)](O,_0x31564e,_0x10d85b,_0x115eb3);}let F=class extends t[_0x33c78d(0x1cf)]{get[_0x33c78d(0x18d)](){const _0x3b8371=_0x33c78d;return this[_0x3b8371(0x28a)];}constructor(_0x99de0f,_0x325c7a,_0x1919f3,_0x180f1e,_0x5de7b9,_0x2b5b07,_0x55932b,_0x5ac412,_0x2c5d1a,_0x3277c2,_0x29e736,_0x23fb52,_0x323ee7,_0x5624f7){const _0x303a81=_0x33c78d;super(),this['unitID']=_0x99de0f,this['session']=_0x325c7a,this['_type']=_0x1919f3,this[_0x303a81(0x25e)]=_0x180f1e,this[_0x303a81(0x1ff)]=_0x5de7b9,this[_0x303a81(0x3fb)]=_0x2b5b07,this[_0x303a81(0x357)]=_0x55932b,this[_0x303a81(0x3cb)]=_0x5ac412,this[_0x303a81(0x1eb)]=_0x2c5d1a,this['_logService']=_0x3277c2,this[_0x303a81(0x3c1)]=_0x29e736,this[_0x303a81(0x276)]=_0x23fb52,this[_0x303a81(0x2cc)]=_0x323ee7,this['_localCacheService']=_0x5624f7,g(this,_0x303a81(0x130),new i[(_0x303a81(0x264))](null)),g(this,'state$',this[_0x303a81(0x130)][_0x303a81(0x22d)]()),g(this,_0x303a81(0x28a),void 0x0),g(this,_0x303a81(0x190),!0x1),g(this,_0x303a81(0x195),''),g(this,'_changesetReqId',0x0),g(this,_0x303a81(0x1b5),this['state$'][_0x303a81(0x253)]((0x0,i['map'])(_0x51bfcf=>_0x51bfcf?_0x51bfcf[_0x303a81(0x29e)]:'offline'),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x303a81(0x248),!0x1),g(this,_0x303a81(0x1af),[]);}async[_0x33c78d(0x1d4)](){const _0x548ef2=_0x33c78d;if(this[_0x548ef2(0x18d)])throw Error(_0x548ef2(0x23f));await this[_0x548ef2(0x28e)]();}[_0x33c78d(0x2da)](){const _0x45e56e=_0x33c78d;return this[_0x45e56e(0x190)]=!0x0,(0x0,t[_0x45e56e(0x250)])(()=>{const _0x5b09ad=_0x45e56e;this['_collaborationPaused']=!0x1,this[_0x5b09ad(0x306)]();});}[_0x33c78d(0x311)](_0x408fd2){this['_onLocalMutation'](_0x408fd2);}[_0x33c78d(0x209)](_0x47775e){const _0x1d440c=_0x33c78d;this['_state']=_0x47775e,this[_0x1d440c(0x130)][_0x1d440c(0x2bd)](_0x47775e);}async[_0x33c78d(0x28e)](){const _0x4a612a=_0x33c78d;if(this[_0x4a612a(0x209)](await this[_0x4a612a(0x3ac)]()),this['_singleActiveUnitService']){var _0x4c94bb;(_0x4c94bb=this[_0x4a612a(0x2cc)])==null||_0x4c94bb[_0x4a612a(0x40a)](this[_0x4a612a(0x131)]),this[_0x4a612a(0x193)](this[_0x4a612a(0x2cc)][_0x4a612a(0x13d)](this['unitID'])[_0x4a612a(0x279)](_0x368766=>{const _0x13e658=_0x4a612a;this[_0x13e658(0x1fe)][_0x13e658(0x1f9)]('[CollaborationEntity]',_0x13e658(0x3b5),_0x368766),_0x368766===0x1?(this[_0x13e658(0x3cb)][_0x13e658(0x26f)]({'id':_0x13e658(0x159)}),this['_permissionService']['updatePermissionPoint'](new r[(_0x13e658(0x2c6))](this[_0x13e658(0x131)])['id'],!0x1),this[_0x13e658(0x276)][_0x13e658(0x2d3)](!0x1)):(this['_permissionService'][_0x13e658(0x3e6)](new r[(_0x13e658(0x2c6))](this[_0x13e658(0x131)])['id'],!0x0),this[_0x13e658(0x276)][_0x13e658(0x2d3)](!0x0));}));}let _0x45202d=!0x1;return this[_0x4a612a(0x193)](this[_0x4a612a(0x252)]['sessionStatus$']['subscribe'](_0x2d6d81=>{const _0x2734d1=_0x4a612a;_0x2d6d81===0x3?this[_0x2734d1(0x3f4)](_0x45202d):_0x2d6d81===0x2&&(_0x45202d=!0x0,this[_0x2734d1(0x2a0)]());})),this[_0x4a612a(0x193)](this[_0x4a612a(0x252)][_0x4a612a(0x32d)]['subscribe'](_0x194e69=>{const _0x1645b5=_0x4a612a;try{switch(_0x194e69[_0x1645b5(0x399)]){case e[_0x1645b5(0x2e1)][_0x1645b5(0x28d)]:this[_0x1645b5(0x2dc)]((0x0,e[_0x1645b5(0x1a4)])(_0x194e69[_0x1645b5(0x1a1)]));break;case e[_0x1645b5(0x2e1)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x194e69['data']);break;case e['CollaborationEvent'][_0x1645b5(0x1ac)]:this[_0x1645b5(0x244)]();break;case e['CollaborationEvent'][_0x1645b5(0x319)]:this[_0x1645b5(0x3b8)](_0x194e69[_0x1645b5(0x1a1)]);break;case e['CollaborationEvent'][_0x1645b5(0x1ed)]:this[_0x1645b5(0x1c4)](_0x194e69[_0x1645b5(0x1a1)][_0x1645b5(0x22b)][_0x1645b5(0x2c2)](_0x5d3eb5=>(0x0,e['parseProtocolChangeset'])(_0x5d3eb5)));break;case e[_0x1645b5(0x2e1)][_0x1645b5(0x43f)]:this[_0x1645b5(0x244)]({'isPermissionRej':!0x0});break;case e[_0x1645b5(0x2e1)][_0x1645b5(0x1f6)]:break;}}catch(_0x5805a8){throw console['error'](_0x1645b5(0x34e),_0x5805a8),_0x5805a8;}})),this[_0x4a612a(0x28a)];}[_0x33c78d(0x3e2)](){const _0x57d474=_0x33c78d;this[_0x57d474(0x248)]=!0x1;}[_0x33c78d(0x127)](){if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x482186){const _0x3f0cd6=_0x33c78d;this['_lockTransition'](),this['_updateState'](this[_0x3f0cd6(0x28a)][_0x3f0cd6(0x156)](_0x482186)),this[_0x3f0cd6(0x3e2)]();}[_0x33c78d(0x2dc)](_0x450c0c){const _0x375e15=_0x33c78d;if(!(_0x450c0c[_0x375e15(0x35b)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x375e15(0x131)]))){if(this[_0x375e15(0x190)]){this[_0x375e15(0x1af)][_0x375e15(0x33a)](_0x450c0c);return;}this[_0x375e15(0x2b8)](_0x450c0c);}}[_0x33c78d(0x306)](){const _0x2c54d6=_0x33c78d;this[_0x2c54d6(0x1af)][_0x2c54d6(0x3f3)](_0x942a60=>this[_0x2c54d6(0x2b8)](_0x942a60)),this[_0x2c54d6(0x1af)]=[];}['_applyRemoteChangeset'](_0x25b8cb){const _0x1bee63=_0x33c78d;let _0x3fe656=this[_0x1bee63(0x1ff)][_0x1bee63(0x362)][_0x1bee63(0x328)](this[_0x1bee63(0x1ff)][_0x1bee63(0x362)][_0x1bee63(0x140)]()[_0x1bee63(0x188)])(_0x25b8cb[_0x1bee63(0x280)],null)||_0x25b8cb[_0x1bee63(0x280)],_0x10da35={..._0x25b8cb,'mutations':_0x3fe656};this['_lockTransition'](),this[_0x1bee63(0x209)](this[_0x1bee63(0x28a)][_0x1bee63(0x3cc)](_0x10da35)),this[_0x1bee63(0x3e2)]();}['_onRemoteACK'](_0x530488){const _0x580527=_0x33c78d;this['_lockTransition'](),this[_0x580527(0x209)](this['_state'][_0x580527(0x23c)](_0x530488)),this[_0x580527(0x3e2)]();}[_0x33c78d(0x244)](_0x5968c4){const _0x39ae0f=_0x33c78d;this[_0x39ae0f(0x127)](),this['_updateState'](this[_0x39ae0f(0x28a)][_0x39ae0f(0x38d)](_0x5968c4)),this['_unlockTransition']();}[_0x33c78d(0x3b8)](_0x499b81){const _0x39420d=_0x33c78d;this[_0x39420d(0x127)](),this[_0x39420d(0x209)](this[_0x39420d(0x28a)][_0x39420d(0x374)](_0x499b81)),this[_0x39420d(0x3e2)]();}[_0x33c78d(0x1c4)](_0x2e8368){const _0xe49e58=_0x33c78d;if(!(this['_state']instanceof P))throw TypeError(_0xe49e58(0x347));let _0x141938=_0x2e8368['map'](_0x101cce=>{const _0x5c257a=_0xe49e58;let _0x465a6c=this[_0x5c257a(0x1ff)]['interceptor'][_0x5c257a(0x328)](this['_compressMutationService'][_0x5c257a(0x362)]['getInterceptPoints']()[_0x5c257a(0x188)])(_0x101cce[_0x5c257a(0x280)],null)||_0x101cce[_0x5c257a(0x280)];return{..._0x101cce,'mutations':_0x465a6c};});this[_0xe49e58(0x127)](),this[_0xe49e58(0x209)](this[_0xe49e58(0x28a)][_0xe49e58(0x1d2)](_0x141938)),this[_0xe49e58(0x3e2)]();}['_toggleOffline'](){const _0x11eca2=_0x33c78d;this[_0x11eca2(0x127)](),this[_0x11eca2(0x209)](this['_state']['toggleOffline']()),this[_0x11eca2(0x3e2)]();}[_0x33c78d(0x3f4)](_0x56e9dd=!0x1){const _0x468a33=_0x33c78d;this[_0x468a33(0x127)](),this[_0x468a33(0x209)](this['_state'][_0x468a33(0x2bb)]()),this['_unlockTransition']();let _0x293651=this[_0x468a33(0x28a)];_0x56e9dd&&_0x293651 instanceof O&&(this['_lockTransition'](),this[_0x468a33(0x209)](_0x293651[_0x468a33(0x301)]()),this[_0x468a33(0x3e2)]());}async[_0x33c78d(0x3ac)](){return new Promise(_0x575621=>{const _0x5880d3=_0x1643;this[_0x5880d3(0x252)][_0x5880d3(0x3a7)][_0x5880d3(0x253)]((0x0,i[_0x5880d3(0x39a)])(0x1))['subscribe'](async _0x10a12b=>{const _0x421f75=_0x5880d3;_0x575621(await this[_0x421f75(0x297)](_0x10a12b===0x3));});});}[_0x33c78d(0x259)](){const _0x153ecd=_0x33c78d;let _0x28dd82=this[_0x153ecd(0x131)];return{'onStateChange':(_0x4ddef4,_0x4d5d24)=>{const _0x26e3ba=_0x153ecd;if(_0x4ddef4!==this['_state'])throw Error(_0x26e3ba(0x2a5)+_0x4ddef4[_0x26e3ba(0x29e)]+'\x0aAfter:\x20'+_0x4d5d24[_0x26e3ba(0x29e)]+'\x0aCurrent:\x20'+this[_0x26e3ba(0x28a)][_0x26e3ba(0x29e)]);this['_updateState'](_0x4d5d24);},'onSendChangeset':_0x4efe94=>{const _0x1f645a=_0x153ecd;_0x4efe94[_0x1f645a(0x372)]||(_0x4efe94['sid']=this[_0x1f645a(0x195)],_0x4efe94[_0x1f645a(0x3ba)]=++this['_changesetReqId']);let _0x2aaf38={'eventID':e[_0x1f645a(0x2e1)][_0x1f645a(0x3a1)],'data':{'unitID':_0x4efe94[_0x1f645a(0x131)],'unitType':this[_0x1f645a(0x28f)],'changeset':_0x4efe94,'memberID':this['session'][_0x1f645a(0x1ba)]()}};this['session'][_0x1f645a(0x189)](_0x2aaf38,this[_0x1f645a(0x131)]);},'onMissingChangesets':({from:_0x41c722,to:_0x38f8ee})=>{const _0x2a8e7e=_0x153ecd;this[_0x2a8e7e(0x1fe)][_0x2a8e7e(0x1f9)](_0x2a8e7e(0x325),_0x2a8e7e(0x400)+_0x41c722+'\x20to\x20'+_0x38f8ee);let _0x1878db={'eventID':e[_0x2a8e7e(0x2e1)]['FETCH_MISSING'],'data':{'unitID':_0x28dd82,'unitType':this[_0x2a8e7e(0x28f)],'from':_0x41c722,'to':_0x38f8ee}};this['session'][_0x2a8e7e(0x189)](_0x1878db,this[_0x2a8e7e(0x131)]);}};}async['_createInitialStateImpl'](_0x18c552){const _0x5e5b4f=_0x33c78d;var _0x5df9d7,_0x1426f1,_0x2fcaa6;let _0x3210a4=await((_0x5df9d7=this[_0x5e5b4f(0x1bf)])==null?void 0x0:_0x5df9d7[_0x5e5b4f(0x1be)](this['unitID'])),_0x4c91db=(_0x1426f1=_0x3210a4==null?void 0x0:_0x3210a4[_0x5e5b4f(0x280)])==null?[]:_0x1426f1,_0x1af10d=(_0x2fcaa6=_0x3210a4==null?void 0x0:_0x3210a4[_0x5e5b4f(0x27c)])==null?null:_0x2fcaa6,_0x530fa6=!!(_0x1af10d!=null&&_0x1af10d[_0x5e5b4f(0x372)])&&!!(_0x1af10d!=null&&_0x1af10d['reqId']);this[_0x5e5b4f(0x195)]=_0x530fa6?_0x1af10d[_0x5e5b4f(0x372)]:(0x0,e[_0x5e5b4f(0x1f1)])(),this['_changesetReqId']=_0x530fa6?_0x1af10d['reqId']:0x0;let _0x31cd90=this['unitID'];try{this[_0x5e5b4f(0x2a1)](_0x1af10d,_0x4c91db);}catch(_0x52d5ab){this['_logService'][_0x5e5b4f(0x39c)](_0x52d5ab);}let _0x443d11=this[_0x5e5b4f(0x259)]();if(_0x18c552){let _0x4b02e6=We(this[_0x5e5b4f(0x25e)],_0x31cd90,this['_type'],_0x1af10d,_0x4c91db,_0x443d11);return _0x4b02e6 instanceof k?_0x4b02e6[_0x5e5b4f(0x413)]():(_0x4b02e6 instanceof j||_0x4b02e6 instanceof A)&&_0x4b02e6[_0x5e5b4f(0x1b9)](),_0x4b02e6;}return this[_0x5e5b4f(0x25e)]['createInstance'](N,_0x31cd90,this[_0x5e5b4f(0x28f)],_0x1af10d,_0x4c91db,_0x443d11);}[_0x33c78d(0x2a1)](_0x33bba3,_0x58ff43){const _0x3887fb=_0x33c78d;var _0x24b7af,_0x553a20;let _0xc37b20=this[_0x3887fb(0x1ff)][_0x3887fb(0x362)][_0x3887fb(0x328)](this[_0x3887fb(0x1ff)][_0x3887fb(0x362)][_0x3887fb(0x140)]()[_0x3887fb(0x188)]);(_0x24b7af=_0xc37b20((_0x33bba3==null?void 0x0:_0x33bba3[_0x3887fb(0x280)])||[],null))==null||_0x24b7af[_0x3887fb(0x3f3)](_0x582694=>this[_0x3887fb(0x3c1)][_0x3887fb(0x38a)](_0x582694['id'],_0x582694[_0x3887fb(0x326)])),(_0x553a20=_0xc37b20(_0x58ff43||[],null))==null||_0x553a20[_0x3887fb(0x3f3)](_0x25febe=>this['_commandService'][_0x3887fb(0x38a)](_0x25febe['id'],_0x25febe[_0x3887fb(0x326)]));}};F=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t['LocaleService'])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t['Optional'])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],F);let I=class extends F{constructor(_0x3bf1e1,_0x59751c,_0x222591,_0x588af6,_0x2a8415,_0x298dab,_0x1b1d28,_0x3231c9,_0x2e215b,_0x510159,_0x294134,_0xe4d9dd,_0x48b4f1,_0x5c8236,_0x94a799){const _0x431c73=_0x33c78d;super(_0x3bf1e1,_0x222591,_0x59751c,_0x588af6,_0x2a8415,_0x298dab,_0x1b1d28,_0x3231c9,_0x2e215b,_0x510159,_0x294134,_0xe4d9dd,_0x5c8236,_0x94a799),this['unitID']=_0x3bf1e1,this[_0x431c73(0x402)]=_0x59751c,this[_0x431c73(0x1d8)]=_0x48b4f1,g(this,_0x431c73(0x149),null);}['addHandlerCallback'](_0x35cb24){const _0x1a889a=_0x33c78d;this[_0x1a889a(0x149)]=_0x35cb24;}[_0x33c78d(0x438)](){const _0x281785=_0x33c78d;this['_handlerCallback']=null,super[_0x281785(0x438)]();}['_createHandler'](){const _0x5a717b=_0x33c78d;let _0x48fab1=super['_createHandler']();return _0x48fab1[_0x5a717b(0x43e)]=_0x50412e=>{const _0x5100ab=_0x5a717b;var _0x3c2f25,_0x5566bb;return(_0x3c2f25=this[_0x5100ab(0x149)])==null||(_0x5566bb=_0x3c2f25[_0x5100ab(0x43e)])==null?void 0x0:_0x5566bb[_0x5100ab(0x184)](_0x3c2f25,_0x50412e);},_0x48fab1[_0x5a717b(0x168)]=_0x33f28d=>{const _0x148ce9=_0x5a717b;var _0x4e9f93,_0x1eb7c5;return(_0x4e9f93=this['_handlerCallback'])==null||(_0x1eb7c5=_0x4e9f93[_0x148ce9(0x168)])==null?void 0x0:_0x1eb7c5[_0x148ce9(0x184)](_0x4e9f93,_0x33f28d);},_0x48fab1[_0x5a717b(0x219)]=_0x28ce36=>{const _0x5a3d62=_0x5a717b;var _0x3957b6,_0xe9bcc;return(_0x3957b6=this[_0x5a3d62(0x149)])==null||(_0xe9bcc=_0x3957b6['onTransformSelections'])==null?void 0x0:_0xe9bcc[_0x5a3d62(0x184)](_0x3957b6,_0x28ce36);},_0x48fab1[_0x5a717b(0x2fe)]=_0x521f90=>{const _0x95d0c6=_0x5a717b;var _0x305665,_0x29bb54;return(_0x305665=this[_0x95d0c6(0x149)])==null||(_0x29bb54=_0x305665[_0x95d0c6(0x2fe)])==null?void 0x0:_0x29bb54[_0x95d0c6(0x184)](_0x305665,_0x521f90);},_0x48fab1[_0x5a717b(0x272)]=_0x25f173=>{const _0x2e96bf=_0x5a717b;var _0x236f86,_0x5a8b40,_0x5b77d9;return(_0x236f86=(_0x5a8b40=this[_0x2e96bf(0x149)])==null||(_0x5b77d9=_0x5a8b40['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5b77d9[_0x2e96bf(0x184)](_0x5a8b40,_0x25f173))==null?_0x25f173:_0x236f86;},_0x48fab1[_0x5a717b(0x1c1)]=_0x48a590=>{const _0x20810d=_0x5a717b;var _0x57a34c,_0x1553a2,_0x5c3d3b;return(_0x57a34c=(_0x1553a2=this[_0x20810d(0x149)])==null||(_0x5c3d3b=_0x1553a2['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5c3d3b[_0x20810d(0x184)](_0x1553a2,_0x48a590))==null?_0x48a590:_0x57a34c;},_0x48fab1;}async[_0x33c78d(0x28e)](){const _0x5997dd=_0x33c78d;let _0x276070=await super[_0x5997dd(0x28e)]();return this[_0x5997dd(0x193)](this[_0x5997dd(0x1d8)][_0x5997dd(0x282)][_0x5997dd(0x279)](_0x235904=>{const _0x58b482=_0x5997dd;if(_0x235904==null||_0x235904[_0x58b482(0x3fd)]!==this['unitID'])return;let {commandId:_0x5f5d72,redoState:_0x51b2a5,unitId:_0x31c1c0}=_0x235904,_0x58c471={'id':_0x5f5d72,'type':t['CommandType'][_0x58b482(0x120)],'params':{'unitId':_0x31c1c0,'actions':_0x51b2a5[_0x58b482(0x24a)],'textRanges':null}};this[_0x58b482(0x3cf)](_0x58c471);})),this[_0x5997dd(0x193)](this[_0x5997dd(0x3c1)][_0x5997dd(0x226)]((_0x4251a1,_0x10afa1)=>{const _0x16dd85=_0x5997dd;if(_0x4251a1[_0x16dd85(0x402)]!==t[_0x16dd85(0x42d)][_0x16dd85(0x120)]||_0x10afa1!=null&&_0x10afa1[_0x16dd85(0x1ee)]||_0x10afa1!=null&&_0x10afa1[_0x16dd85(0x354)]||_0x4251a1['id']===n[_0x16dd85(0x16f)]['id'])return;let _0x4682f4=_0x4251a1[_0x16dd85(0x326)];if((_0x4682f4==null?void 0x0:_0x4682f4['unitId'])!==this[_0x16dd85(0x131)])return;let _0x51a9e7=_0x4251a1,_0x4ec543=this['_compressMutationService'][_0x16dd85(0x362)][_0x16dd85(0x328)](this[_0x16dd85(0x1ff)][_0x16dd85(0x362)][_0x16dd85(0x140)]()[_0x16dd85(0x1ea)])([_0x51a9e7],this[_0x16dd85(0x1eb)])||[_0x51a9e7];this[_0x16dd85(0x3cf)](_0x4ec543[0x0]);})),_0x276070;}};I=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t['LocaleService'])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t['ILogService']),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t[_0x33c78d(0x403)])(n[_0x33c78d(0x439)])),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xe,(0x0,t[_0x33c78d(0x2cd)])(S))],I);let Ge=class extends F{constructor(_0x1d46ec,_0x2b7443,_0x7cb9c9,_0xec568e,_0x388b1c,_0xf5c6c8,_0xcd23c2,_0x37b543,_0x4ca15e,_0x292687,_0xec9847,_0x3fc8b7,_0x52d1df,_0x321614){const _0x3f32b1=_0x33c78d;super(_0x1d46ec,_0x7cb9c9,_0x2b7443,_0xec568e,_0x388b1c,_0xf5c6c8,_0xcd23c2,_0x37b543,_0x4ca15e,_0x292687,_0xec9847,_0x3fc8b7,_0x52d1df,_0x321614),this[_0x3f32b1(0x131)]=_0x1d46ec,this['type']=_0x2b7443;}async[_0x33c78d(0x28e)](){const _0x5e2f3a=_0x33c78d;let _0x46d936=await super[_0x5e2f3a(0x28e)]();return this[_0x5e2f3a(0x193)](this[_0x5e2f3a(0x3c1)][_0x5e2f3a(0x226)]((_0xee01b4,_0x24bd0d)=>{const _0xe86a43=_0x5e2f3a;if(_0xee01b4[_0xe86a43(0x402)]!==t[_0xe86a43(0x42d)]['MUTATION']||_0x24bd0d!=null&&_0x24bd0d[_0xe86a43(0x1ee)]||_0x24bd0d!=null&&_0x24bd0d[_0xe86a43(0x354)])return;let _0x50b2e4=_0xee01b4[_0xe86a43(0x326)];if((_0x50b2e4==null?void 0x0:_0x50b2e4[_0xe86a43(0x3fd)])!==this[_0xe86a43(0x131)])return;let _0x486b75=_0xee01b4,_0x5f123d=this[_0xe86a43(0x1ff)][_0xe86a43(0x362)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0xe86a43(0x140)]()['COMPRESS_MUTATION_SEND'])([_0x486b75],this['_univerInstanceService'])||[_0x486b75];this[_0xe86a43(0x3cf)](_0x5f123d[0x0]);})),_0x46d936;}};Ge=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],Ge);let L=class extends F{constructor(_0x3441b0,_0x3125d3,_0x17ceaf,_0x5335c9,_0x3a72d9,_0x3906e3,_0x19bd72,_0x241da4,_0x56fd36,_0x581361,_0x28e000,_0x59a404,_0xc552,_0x5a772d,_0xb370b4){const _0x671eaa=_0x33c78d;super(_0x3441b0,_0x17ceaf,_0x3125d3,_0x5335c9,_0x3a72d9,_0x3906e3,_0x19bd72,_0x56fd36,_0x581361,_0x28e000,_0x59a404,_0xc552,_0x5a772d,_0xb370b4),this[_0x671eaa(0x131)]=_0x3441b0,this['type']=_0x3125d3,this[_0x671eaa(0x410)]=_0x241da4;}['_createHandler'](){const _0x431946=_0x33c78d;let _0xec397b=super[_0x431946(0x259)]();return _0xec397b[_0x431946(0x219)]=_0xa071e9=>this[_0x431946(0x410)][_0x431946(0x1db)](_0xa071e9),_0xec397b;}async[_0x33c78d(0x28e)](){const _0x598eb0=_0x33c78d;let _0x2bcea2=await super['_init']();return this[_0x598eb0(0x193)](this[_0x598eb0(0x3c1)]['onMutationExecutedForCollab']((_0x497c8e,_0x9afc9)=>{const _0x1506fd=_0x598eb0;if(_0x497c8e[_0x1506fd(0x402)]!==t[_0x1506fd(0x42d)][_0x1506fd(0x120)]||_0x9afc9!=null&&_0x9afc9[_0x1506fd(0x1ee)]||_0x9afc9!=null&&_0x9afc9[_0x1506fd(0x354)])return;let _0x565a40=_0x497c8e[_0x1506fd(0x326)];if((_0x565a40==null?void 0x0:_0x565a40['unitId'])!==this[_0x1506fd(0x131)])return;let _0x2f7766=_0x497c8e,_0x39c30d=this[_0x1506fd(0x1ff)][_0x1506fd(0x362)][_0x1506fd(0x328)](this['_compressMutationService'][_0x1506fd(0x362)][_0x1506fd(0x140)]()[_0x1506fd(0x1ea)])([_0x2f7766],this[_0x1506fd(0x1eb)])||[_0x2f7766];this[_0x1506fd(0x3cf)](_0x39c30d[0x0]);})),_0x2bcea2;}};L=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x4,(0x0,t['Inject'])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x35c)])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(C)),v(0x8,(0x0,t[_0x33c78d(0x403)])(_)),v(0x9,t[_0x33c78d(0x142)]),v(0xa,t[_0x33c78d(0x3ed)]),v(0xb,t[_0x33c78d(0x1fb)]),v(0xc,t[_0x33c78d(0x18f)]),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xe,(0x0,t[_0x33c78d(0x2cd)])(S))],L);let R=class extends F{constructor(_0x37d8fa,_0x57073a,_0x1271e9,_0x330d9c,_0x3594c5,_0x4966fb,_0x405f70,_0x1b0cef,_0x38d273,_0x9d56e1,_0x21f6c1,_0x1c044c,_0x340dd2,_0x356434){const _0x551235=_0x33c78d;super(_0x37d8fa,_0x1271e9,_0x57073a,_0x330d9c,_0x3594c5,_0x4966fb,_0x405f70,_0x1b0cef,_0x38d273,_0x9d56e1,_0x21f6c1,_0x1c044c,_0x340dd2,_0x356434),this[_0x551235(0x131)]=_0x37d8fa,this['type']=_0x57073a;}async[_0x33c78d(0x28e)](){const _0x2c39ca=_0x33c78d;let _0x3beb97=await super[_0x2c39ca(0x28e)]();return this[_0x2c39ca(0x193)](this['_commandService'][_0x2c39ca(0x226)]((_0x2f950d,_0x55f310)=>{const _0x593081=_0x2c39ca;if(_0x2f950d[_0x593081(0x402)]!==t[_0x593081(0x42d)]['MUTATION']||_0x55f310!=null&&_0x55f310[_0x593081(0x1ee)]||_0x55f310!=null&&_0x55f310['onlyLocal'])return;let _0xd1221a=_0x2f950d[_0x593081(0x326)];if((_0xd1221a==null?void 0x0:_0xd1221a['unitId'])!==this[_0x593081(0x131)])return;let _0x503f78=_0x2f950d,_0x52f520=this[_0x593081(0x1ff)][_0x593081(0x362)][_0x593081(0x328)](this[_0x593081(0x1ff)]['interceptor']['getInterceptPoints']()[_0x593081(0x1ea)])([_0x503f78],this[_0x593081(0x1eb)])||[_0x503f78];this[_0x593081(0x3cf)](_0x52f520[0x0]);})),_0x3beb97;}};R=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x33c78d(0x35c)])),v(0x6,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t['ICommandService']),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],R);let z=class extends F{constructor(_0x2281c9,_0x280124,_0x17cecf,_0x3a0933,_0x56fd2c,_0xe5c339,_0x4a43cc,_0xbc70ed,_0xd2843,_0x4940aa,_0x3d9840,_0x23623b,_0x4ab3fb,_0xeb03d4){super(_0x2281c9,_0x17cecf,_0x280124,_0x3a0933,_0x56fd2c,_0xe5c339,_0x4a43cc,_0xbc70ed,_0xd2843,_0x4940aa,_0x3d9840,_0x23623b,_0x4ab3fb,_0xeb03d4),this['unitID']=_0x2281c9,this['type']=_0x280124;}async[_0x33c78d(0x28e)](){const _0x351204=_0x33c78d;let _0x182224=await super['_init']();return this[_0x351204(0x193)](this[_0x351204(0x3c1)][_0x351204(0x226)]((_0xce7f81,_0x1cd0f5)=>{const _0x5916d9=_0x351204;if(_0xce7f81[_0x5916d9(0x402)]!==t[_0x5916d9(0x42d)]['MUTATION']||_0x1cd0f5!=null&&_0x1cd0f5[_0x5916d9(0x1ee)]||_0x1cd0f5!=null&&_0x1cd0f5[_0x5916d9(0x354)])return;let _0x5ef5a6=_0xce7f81[_0x5916d9(0x326)];if((_0x5ef5a6==null?void 0x0:_0x5ef5a6[_0x5916d9(0x3fd)])!==this[_0x5916d9(0x131)])return;let _0x581515=_0xce7f81,_0x428ffc=this['_compressMutationService'][_0x5916d9(0x362)][_0x5916d9(0x328)](this['_compressMutationService'][_0x5916d9(0x362)][_0x5916d9(0x140)]()[_0x5916d9(0x1ea)])([_0x581515],this[_0x5916d9(0x1eb)])||[_0x581515];this['_onLocalMutation'](_0x428ffc[0x0]);})),_0x182224;}};z=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t['Injector'])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x35c)])),v(0x6,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t[_0x33c78d(0x142)]),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t['ICommandService']),v(0xb,t[_0x33c78d(0x18f)]),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],z);let B=class extends F{constructor(_0x4f6ee8,_0x3e1d98,_0x292b70,_0x3fb188,_0x4798c2,_0x1f1481,_0x61c68b,_0x390f31,_0x5d3c8c,_0x164285,_0x517c9b,_0xb0ca94,_0x223cf5,_0x12d471){const _0xdb5d34=_0x33c78d;super(_0x4f6ee8,_0x292b70,_0x3e1d98,_0x3fb188,_0x4798c2,_0x1f1481,_0x61c68b,_0x390f31,_0x5d3c8c,_0x164285,_0x517c9b,_0xb0ca94,_0x223cf5,_0x12d471),this[_0xdb5d34(0x131)]=_0x4f6ee8,this[_0xdb5d34(0x402)]=_0x3e1d98;}async[_0x33c78d(0x28e)](){const _0x291bfd=_0x33c78d;let _0x46531c=await super[_0x291bfd(0x28e)]();return this['disposeWithMe'](this[_0x291bfd(0x3c1)][_0x291bfd(0x226)]((_0x5cad14,_0x164f27)=>{const _0x10b360=_0x291bfd;if(_0x5cad14[_0x10b360(0x402)]!==t[_0x10b360(0x42d)][_0x10b360(0x120)]||_0x164f27!=null&&_0x164f27[_0x10b360(0x1ee)]||_0x164f27!=null&&_0x164f27[_0x10b360(0x354)])return;let _0x3092b2=_0x5cad14['params'];if((_0x3092b2==null?void 0x0:_0x3092b2[_0x10b360(0x3fd)])!==this[_0x10b360(0x131)])return;let _0x3f2b55=_0x5cad14,_0x4accab=this[_0x10b360(0x1ff)][_0x10b360(0x362)][_0x10b360(0x328)](this['_compressMutationService']['interceptor'][_0x10b360(0x140)]()['COMPRESS_MUTATION_SEND'])([_0x3f2b55],this[_0x10b360(0x1eb)])||[_0x3f2b55];this[_0x10b360(0x3cf)](_0x4accab[0x0]);})),_0x46531c;}};B=y([v(0x3,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x4,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x3ff)])),v(0x5,(0x0,t[_0x33c78d(0x403)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x33c78d(0x176)])),v(0x7,(0x0,t[_0x33c78d(0x403)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x33c78d(0x3ed)]),v(0xa,t[_0x33c78d(0x1fb)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x33c78d(0x2cd)])(w)),v(0xd,(0x0,t[_0x33c78d(0x2cd)])(S))],B);const Ke=(0x0,t['createIdentifier'])(_0x33c78d(0x122));function qe(_0x216bdd){const _0x37df87=_0x33c78d;let _0x5b9c09=_0x216bdd['data'],_0x271234=JSON[_0x37df87(0x21d)](_0x5b9c09);switch(_0x271234[_0x37df87(0x274)]){case a[_0x37df87(0x243)]['HEARTBEAT']:case a[_0x37df87(0x243)][_0x37df87(0x13f)]:{let _0x41dd3d=_0x271234['infoRsp'];return{..._0x271234,'data':_0x41dd3d,'cmd':_0x271234[_0x37df87(0x274)]};}case a['CombCmd']['JOIN']:{let _0x2a4d93=_0x271234[_0x37df87(0x3ec)];return{..._0x271234,'data':_0x2a4d93,'cmd':_0x271234[_0x37df87(0x274)]};}case a[_0x37df87(0x243)][_0x37df87(0x19b)]:{let _0x232f72=_0x271234[_0x37df87(0x2ae)];switch(_0x232f72[_0x37df87(0x399)]){case e['CollaborationEvent'][_0x37df87(0x43f)]:var _0x3ac838;return{..._0x271234,'data':{..._0x232f72,'data':(_0x3ac838=_0x232f72[_0x37df87(0x371)])==null?void 0x0:_0x3ac838['cs']},'cmd':_0x271234['cmd']};case e['CollaborationEvent']['CHANGESET_ACK']:var _0x2f94c2;return{..._0x271234,'data':{..._0x232f72,'data':(_0x2f94c2=_0x232f72[_0x37df87(0x2a8)])==null?void 0x0:_0x2f94c2['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x28d)]:var _0x5cb018;return{..._0x271234,'data':{..._0x232f72,'data':(_0x5cb018=_0x232f72[_0x37df87(0x3d4)])==null?void 0x0:_0x5cb018['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)]['CHANGESET_REJ']:var _0x1cd1e7;return{..._0x271234,'data':{..._0x232f72,'data':(_0x1cd1e7=_0x232f72['csRejEvent'])==null?void 0x0:_0x1cd1e7['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e['CollaborationEvent'][_0x37df87(0x319)]:var _0x314cf8;return{..._0x271234,'data':{..._0x232f72,'data':(_0x314cf8=_0x232f72[_0x37df87(0x227)])==null?void 0x0:_0x314cf8['cs']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x187)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x1c9)]},'cmd':_0x271234[_0x37df87(0x274)]};case e['CollaborationEvent'][_0x37df87(0x17c)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['joinEvent']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)]['USERS_LEAVE']:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x1f7)]},'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x30c)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['liveShareNewHost']},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x277)]:case e[_0x37df87(0x2e1)][_0x37df87(0x349)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['liveShareOperation']},'cmd':_0x271234[_0x37df87(0x274)]};case e['CollaborationEvent'][_0x37df87(0x377)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x424)]},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x18a)]:return{..._0x271234,'data':_0x232f72,'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x15f)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72['commentUpdateEvent']},'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x3d6)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x394)]},'cmd':_0x271234[_0x37df87(0x274)]};case e[_0x37df87(0x2e1)][_0x37df87(0x16c)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x2f3)]},'cmd':_0x271234['cmd']};case e[_0x37df87(0x2e1)][_0x37df87(0x1f6)]:return{..._0x271234,'data':{..._0x232f72,'data':_0x232f72[_0x37df87(0x126)]},'cmd':_0x271234[_0x37df87(0x274)]};default:return _0x271234;}}default:return _0x271234;}}function Je(_0x3e288b){const _0x3ececf=_0x33c78d;switch(_0x3e288b[_0x3ececf(0x274)]){case a[_0x3ececf(0x243)][_0x3ececf(0x40b)]:case a[_0x3ececf(0x243)][_0x3ececf(0x13f)]:return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b['cmd'],'routeKey':_0x3e288b[_0x3ececf(0x165)]});case a['CombCmd']['INGEST']:{let _0x405225;switch(_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x399)]){case e[_0x3ececf(0x2e1)][_0x3ececf(0x187)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x187)],'updateCursorEvent':_0x3e288b[_0x3ececf(0x1a1)]['data']};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x2e2)]:_0x405225={'eventID':e['CollaborationEvent'][_0x3ececf(0x2e2)],'leaveEvent':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x17c)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)]['USERS_ENTER'],'joinEvent':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x30c)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x30c)],'liveShareNewHost':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)]['LIVESHARE_OPERATION']:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x349)],'liveShareOperation':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e['CollaborationEvent'][_0x3ececf(0x377)]:_0x405225={'eventID':e['CollaborationEvent'][_0x3ececf(0x377)],'liveShareTerminate':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x212)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)][_0x3ececf(0x212)],'liveShareRequestHost':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x1a1)]};break;case e[_0x3ececf(0x2e1)][_0x3ececf(0x277)]:_0x405225={'eventID':e[_0x3ececf(0x2e1)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x405225={'eventID':_0x3e288b[_0x3ececf(0x1a1)][_0x3ececf(0x399)]};}return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b[_0x3ececf(0x274)],'routeKey':_0x3e288b[_0x3ececf(0x165)],'collaMsg':_0x405225});}case a[_0x3ececf(0x243)][_0x3ececf(0x1c6)]:return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b[_0x3ececf(0x274)],'routeKey':_0x3e288b[_0x3ececf(0x165)],'joinReq':_0x3e288b[_0x3ececf(0x1a1)]});case a['CombCmd'][_0x3ececf(0x382)]:return JSON[_0x3ececf(0x200)]({'cmd':_0x3e288b[_0x3ececf(0x274)],'routeKey':_0x3e288b[_0x3ececf(0x165)],'leaveReq':_0x3e288b['data']});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Ye=(0x0,t['createIdentifier'])(_0x33c78d(0x257));function Xe(_0x54a661,_0x3e185d,_0xd97045){const _0x18d6d6=_0x33c78d;return _0x54a661+'/'+_0x3e185d+_0x18d6d6(0x379)+_0xd97045+'/new_changes';}let Ze=class extends t[_0x33c78d(0x17e)]{constructor(_0x3a7570,_0x4a8c4c,_0x36a181,_0x1547db,_0xf8a211){const _0x98d338=_0x33c78d;super(),this['_injector']=_0x3a7570,this[_0x98d338(0x20d)]=_0x4a8c4c,this[_0x98d338(0x3d0)]=_0x36a181,this[_0x98d338(0x1fe)]=_0x1547db,this[_0x98d338(0x3b2)]=_0xf8a211;}[_0x33c78d(0x29c)](_0x53fb69){const _0x33c4c1=_0x33c78d;let _0x4c11d6=this['_injector'][_0x33c4c1(0x1d6)](l[_0x33c4c1(0x1c7)]);if(!_0x4c11d6)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x47ed52=_0x4c11d6['createSocket'](_0x53fb69);if(!_0x47ed52)throw Error(_0x33c4c1(0x3ca));let _0x51f858=new t[(_0x33c4c1(0x3cd))](),_0x1ba832=new i[(_0x33c4c1(0x2ca))]();_0x51f858[_0x33c4c1(0x2ff)](_0x47ed52[_0x33c4c1(0x247)]['subscribe'](_0x5e8a0c=>_0x1ba832[_0x33c4c1(0x2bd)](_0x5e8a0c))),_0x51f858[_0x33c4c1(0x2ff)]((0x0,t[_0x33c4c1(0x250)])(()=>_0x1ba832['complete']()));let _0x204892=new i['Subject']();_0x51f858[_0x33c4c1(0x2ff)](_0x47ed52[_0x33c4c1(0x25f)][_0x33c4c1(0x279)](_0x5001ec=>_0x204892[_0x33c4c1(0x2bd)](_0x5001ec))),_0x51f858[_0x33c4c1(0x2ff)]((0x0,t[_0x33c4c1(0x250)])(()=>_0x204892['complete']()));let _0x56c33e=new i[(_0x33c4c1(0x2ca))]();_0x51f858[_0x33c4c1(0x2ff)](_0x47ed52['message$'][_0x33c4c1(0x279)](_0x432781=>{let _0x2bcf8f=qe(_0x432781);_0x56c33e['next'](_0x2bcf8f);})),_0x51f858[_0x33c4c1(0x2ff)]((0x0,t[_0x33c4c1(0x250)])(()=>_0x56c33e[_0x33c4c1(0x218)]()));let _0x184d92,_0x1b47d5=()=>{const _0x35dd29=_0x33c4c1;_0x204892[_0x35dd29(0x2bd)](new Event(_0x35dd29(0x342))),_0x1ba832[_0x35dd29(0x2bd)](new Event('connection\x20error')),_0x184d92['close']();};return _0x184d92={'memberID':'','close$':_0x1ba832[_0x33c4c1(0x22d)](),'error$':_0x204892[_0x33c4c1(0x22d)](),'open$':_0x47ed52[_0x33c4c1(0x23e)],'message$':_0x56c33e[_0x33c4c1(0x22d)](),'send':_0x393a44=>{const _0x5e9a6f=_0x33c4c1;if(_0x393a44['cmd']===a['CombCmd'][_0x5e9a6f(0x3f5)]){if(_0x393a44['data'][_0x5e9a6f(0x399)]===e[_0x5e9a6f(0x2e1)][_0x5e9a6f(0x3a1)]){this[_0x5e9a6f(0x1e3)](_0x184d92,_0x393a44['data'])[_0x5e9a6f(0x330)](_0x370306=>{const _0x27c698=_0x5e9a6f;this[_0x27c698(0x1fe)][_0x27c698(0x39c)](_0x370306),_0x1b47d5();});return;}if(_0x393a44[_0x5e9a6f(0x1a1)]['eventID']===e[_0x5e9a6f(0x2e1)][_0x5e9a6f(0x26b)]){let _0x2a37ac=_0x393a44[_0x5e9a6f(0x1a1)];this[_0x5e9a6f(0x132)](_0x2a37ac)['then'](_0x14de15=>{const _0x40afd9=_0x5e9a6f;_0x56c33e[_0x40afd9(0x2bd)]({'cmd':a[_0x40afd9(0x243)][_0x40afd9(0x19b)],'code':a[_0x40afd9(0x2c4)]['OK'],'routeKey':_0x2a37ac[_0x40afd9(0x1a1)][_0x40afd9(0x131)],'routeType':'','data':{'eventID':e[_0x40afd9(0x2e1)][_0x40afd9(0x1ed)],'data':{'changesets':_0x14de15}}});})[_0x5e9a6f(0x330)](_0x4d087d=>{const _0x1cf531=_0x5e9a6f;this[_0x1cf531(0x1fe)][_0x1cf531(0x39c)](_0x4d087d),_0x1b47d5();});return;}}_0x47ed52[_0x5e9a6f(0x189)](Je(_0x393a44));},'close':()=>{const _0xea4c6e=_0x33c4c1;_0x47ed52['close'](),_0x51f858[_0xea4c6e(0x438)]();}},_0x184d92;}async['_submitChangeset'](_0x468514,_0x53a2b7){const _0x316bbf=_0x33c78d;var _0x6b1444;let {unitType:_0x41afc8,unitID:_0x302dbf,changeset:_0x10c9b1}=_0x53a2b7[_0x316bbf(0x1a1)],_0x3667e1={'unitID':_0x302dbf,'memberID':_0x468514[_0x316bbf(0x40c)],'type':_0x41afc8,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x10c9b1)},_0x289074=this['_configService'][_0x316bbf(0x307)](m),_0x5bf5b1=Xe((_0x6b1444=_0x289074==null?void 0x0:_0x289074[_0x316bbf(0x42b)])==null?_0x316bbf(0x278):_0x6b1444,_0x41afc8,_0x302dbf);try{await this[_0x316bbf(0x20d)][_0x316bbf(0x3be)](_0x5bf5b1,{'body':_0x3667e1});}catch(_0x53aad6){throw this[_0x316bbf(0x1fe)][_0x316bbf(0x39c)](_0x316bbf(0x427),_0x316bbf(0x153)),_0x53aad6;}}async['_fetchMissChangesets'](_0x105b78){const _0x3529df=_0x33c78d;let {unitID:_0x28b7bc,from:_0x39792a,to:_0xb63b08,unitType:_0x2745ea}=_0x105b78['data'];return(await this[_0x3529df(0x3b2)][_0x3529df(0x1a2)]({'metadata':void 0x0},{'unitID':_0x28b7bc,'type':_0x2745ea,'from':_0x39792a,'to':_0xb63b08}))[_0x3529df(0x22b)]['map'](_0x5b7bcf=>((_0x5b7bcf[_0x3529df(0x280)]===null||_0x5b7bcf[_0x3529df(0x280)]===void 0x0)&&(_0x5b7bcf['mutations']=[]),_0x5b7bcf));}};Ze=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(l['HTTPService'])),v(0x2,t[_0x33c78d(0x2d4)]),v(0x3,t[_0x33c78d(0x3ed)]),v(0x4,e[_0x33c78d(0x432)])],Ze);const Qe=(0x0,t[_0x33c78d(0x431)])(_0x33c78d(0x3fc));function $e(_0xb8f8a3={}){const _0x13b99c=_0x33c78d;return _0xb8f8a3[_0x13b99c(0x3dc)]?{'resolveUnit':_0xb8f8a3[_0x13b99c(0x3dc)]}:{'resolveUnit':_0x217293=>({'target':{'unitId':_0x217293['unitId'],'unitType':_0x217293[_0x13b99c(0x2b2)]}})};}function et(_0x2ae7fc,_0x30a200,_0x3c083b){const _0x505fd6=_0x33c78d;var _0x3b1cdb;let _0x769a82=_0x3c083b[_0x505fd6(0x2a3)][_0x505fd6(0x41b)];if(_0x769a82!=null&&_0x769a82[_0x505fd6(0x208)]()==='')throw Error(_0x505fd6(0x1e0));if(!_0x3c083b[_0x505fd6(0x2a3)][_0x505fd6(0x3fd)])throw Error(_0x505fd6(0x309));return{'localUnitId':_0x2ae7fc,'unitType':_0x30a200,'target':{'endpoint':_0x769a82,'unitId':_0x3c083b[_0x505fd6(0x2a3)][_0x505fd6(0x3fd)],'unitType':(_0x3b1cdb=_0x3c083b[_0x505fd6(0x2a3)]['unitType'])==null?_0x30a200:_0x3b1cdb},'changeset':_0x3c083b[_0x505fd6(0x42f)]};}let V=class extends t[_0x33c78d(0x17e)]{constructor(_0x3f4f60,_0x36241b,_0x435257,_0x5e6f8e,_0x5786ca,_0x2abb85,_0x47b5de){const _0x367ac0=_0x33c78d;super(),this['_injector']=_0x3f4f60,this[_0x367ac0(0x1fe)]=_0x36241b,this[_0x367ac0(0x3d0)]=_0x435257,this[_0x367ac0(0x24d)]=_0x5e6f8e,this[_0x367ac0(0x223)]=_0x5786ca,this['_adapter']=_0x2abb85,this[_0x367ac0(0x23b)]=_0x47b5de,g(this,_0x367ac0(0x1cb),new Map()),g(this,_0x367ac0(0x37d),new Map()),g(this,_0x367ac0(0x2d0),new Map()),g(this,'_socketChannels',new Map()),g(this,_0x367ac0(0x3bd),this[_0x367ac0(0x3d2)](void 0x0)[_0x367ac0(0x3bd)][_0x367ac0(0x22d)]()),g(this,_0x367ac0(0x30d),new i[(_0x367ac0(0x264))](0x0)),g(this,'status$',this[_0x367ac0(0x30d)][_0x367ac0(0x22d)]()),this[_0x367ac0(0x317)]();}[_0x33c78d(0x317)](){const _0x2751e0=_0x33c78d;this[_0x2751e0(0x23b)]&&this[_0x2751e0(0x193)](this[_0x2751e0(0x23b)][_0x2751e0(0x1e2)][_0x2751e0(0x279)](_0x51a55a=>{const _0x39304a=_0x2751e0;_0x51a55a&&this['reconnect'](),_0x51a55a||this[_0x39304a(0x1c8)][_0x39304a(0x3f3)](_0x5e737f=>this['_onOffline'](_0x5e737f));}));}['dispose'](){const _0x305c8d=_0x33c78d;super['dispose'](),this['_socketChannels']['forEach'](_0x1e7d72=>{const _0x22a6d2=_0x1643;var _0x772564,_0x3518a4;(_0x772564=_0x1e7d72[_0x22a6d2(0x12e)])==null||_0x772564[_0x22a6d2(0x3ce)](),_0x1e7d72['socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](_0x1e7d72),this[_0x22a6d2(0x41d)](_0x1e7d72),this[_0x22a6d2(0x393)](_0x1e7d72),(_0x3518a4=_0x1e7d72[_0x22a6d2(0x3bd)][_0x22a6d2(0x384)]())==null||_0x3518a4[_0x22a6d2(0x408)](),_0x1e7d72[_0x22a6d2(0x3bd)][_0x22a6d2(0x218)]();}),this[_0x305c8d(0x1c8)][_0x305c8d(0x236)](),this[_0x305c8d(0x1cb)]['forEach'](_0x205ab3=>_0x205ab3[_0x305c8d(0x438)]()),this[_0x305c8d(0x1cb)][_0x305c8d(0x236)](),this[_0x305c8d(0x2d0)]['clear'](),this['_status$']['complete']();}async[_0x33c78d(0x1da)](_0x2e17cc,_0x35331b){const _0x415f2b=_0x33c78d;if(this['_sessions'][_0x415f2b(0x40e)](_0x2e17cc))return this[_0x415f2b(0x1cb)]['get'](_0x2e17cc);let _0x269803=this[_0x415f2b(0x37d)][_0x415f2b(0x1d6)](_0x2e17cc);if(_0x269803)return _0x269803;let _0x397cd1=this[_0x415f2b(0x345)](_0x2e17cc,_0x35331b);this[_0x415f2b(0x37d)][_0x415f2b(0x240)](_0x2e17cc,_0x397cd1);try{return await _0x397cd1;}finally{this['_pendingSessions'][_0x415f2b(0x2c7)](_0x2e17cc);}}async[_0x33c78d(0x345)](_0x465712,_0x45390f){const _0x5bef51=_0x33c78d;let _0x43571f=await this[_0x5bef51(0x207)](_0x465712,_0x45390f),_0x18d79b=this[_0x5bef51(0x3d2)](_0x43571f['target'][_0x5bef51(0x41b)]);this[_0x5bef51(0x1dc)](_0x18d79b);let _0x1a0043=this[_0x5bef51(0x25e)]['createInstance'](x,_0x43571f,_0x18d79b[_0x5bef51(0x3bd)]['asObservable']());return this['_sessions'][_0x5bef51(0x240)](_0x465712,_0x1a0043),this[_0x5bef51(0x2d0)]['set'](_0x465712,_0x18d79b['endpointKey']),_0x1a0043;}[_0x33c78d(0x420)](_0x304a33){const _0x48af84=_0x33c78d;let _0x2647ca=this[_0x48af84(0x1cb)][_0x48af84(0x1d6)](_0x304a33),_0x29e285=this[_0x48af84(0x2d0)]['get'](_0x304a33);if(_0x2647ca&&(this[_0x48af84(0x1cb)][_0x48af84(0x2c7)](_0x304a33),this['_sessionChannels'][_0x48af84(0x2c7)](_0x304a33),_0x2647ca['close']()),_0x29e285&&!this[_0x48af84(0x32c)](_0x29e285)){var _0x3e3556;let _0x1a75d8=this[_0x48af84(0x1c8)][_0x48af84(0x1d6)](_0x29e285);_0x1a75d8==null||(_0x3e3556=_0x1a75d8[_0x48af84(0x3bd)][_0x48af84(0x384)]())==null||_0x3e3556[_0x48af84(0x408)]();}}[_0x33c78d(0x3ab)](){const _0x5f4b0f=_0x33c78d;(this['_socketChannels']['size']?[...this[_0x5f4b0f(0x1c8)]['values']()]:[this[_0x5f4b0f(0x3d2)](void 0x0)])[_0x5f4b0f(0x3f3)](_0x5712c=>{const _0x2eafd7=_0x5f4b0f;_0x5712c['retryCount']=0x0,this[_0x2eafd7(0x1e7)](_0x5712c),this['_tryReconnect'](_0x5712c);});}['_clearRetryConnectingTimer'](_0x570e0e){const _0x43af4b=_0x33c78d;_0x570e0e[_0x43af4b(0x3b6)]!=null&&(clearTimeout(_0x570e0e['retryConnectingTimer']),_0x570e0e[_0x43af4b(0x3b6)]=null);}async[_0x33c78d(0x41f)](_0x4262d3){const _0x15c744=_0x33c78d;var _0x49e679,_0x5b8cbd;let _0x1dafc6=this['_configService'][_0x15c744(0x307)](m),_0x55dc19=(_0x49e679=(_0x5b8cbd=_0x4262d3[_0x15c744(0x41b)])==null?_0x1dafc6==null?void 0x0:_0x1dafc6[_0x15c744(0x348)]:_0x5b8cbd)==null?te:_0x49e679,_0x2f1243=await this['_socketService'][_0x15c744(0x136)](_0x55dc19);return _0x4262d3[_0x15c744(0x3a9)]=_0x2f1243,_0x2f1243;}async[_0x33c78d(0x1dc)](_0x524a9f){const _0x551e2f=_0x33c78d;try{var _0x2c5a4a,_0x11f65f;let _0x62f970=(_0x2c5a4a=(_0x11f65f=_0x524a9f['socket$'][_0x551e2f(0x384)]())==null?_0x524a9f[_0x551e2f(0x3a9)]:_0x11f65f)==null?await this[_0x551e2f(0x41f)](_0x524a9f):_0x2c5a4a;if(_0x62f970){var _0x39ea81;let _0x1825c9=_0x62f970[_0x551e2f(0x189)];_0x62f970[_0x551e2f(0x189)]=_0x265d02=>(_0x265d02[_0x551e2f(0x274)]!==a[_0x551e2f(0x243)]['LEAVE']&&this[_0x551e2f(0x3a4)](_0x524a9f),_0x1825c9['apply'](_0x62f970,[_0x265d02])),(_0x39ea81=_0x524a9f[_0x551e2f(0x12e)])==null||_0x39ea81['unsubscribe'](),_0x524a9f['socketMessageSubscription']=null,_0x524a9f[_0x551e2f(0x12e)]=_0x62f970[_0x551e2f(0x2f4)]['subscribe'](_0x2c5ec1=>this['_onMessage'](_0x524a9f,_0x62f970,_0x2c5ec1)),_0x62f970[_0x551e2f(0x25f)]['pipe']((0x0,s[_0x551e2f(0x39a)])(0x1))[_0x551e2f(0x279)](_0x4095bd=>this['_logService'][_0x551e2f(0x39c)]('[CollaborationSessionService]:\x20socket\x20error',_0x4095bd)),_0x62f970[_0x551e2f(0x23e)]['pipe']((0x0,s['take'])(0x1))[_0x551e2f(0x279)](()=>{const _0x307ea5=_0x551e2f;this[_0x307ea5(0x288)](_0x524a9f,_0x62f970);}),_0x62f970[_0x551e2f(0x247)][_0x551e2f(0x253)]((0x0,s[_0x551e2f(0x39a)])(0x1))[_0x551e2f(0x279)](_0x2c25ae=>{const _0x50f0ee=_0x551e2f;this['_logService'][_0x50f0ee(0x1f9)]('[CollaborationSessionService]',_0x50f0ee(0x37f),_0x2c25ae),this['_onConnectionFailed'](_0x524a9f);});}}catch(_0x5a76ef){this[_0x551e2f(0x1fe)][_0x551e2f(0x39c)](_0x5a76ef),this[_0x551e2f(0x335)](_0x524a9f);}}[_0x33c78d(0x288)](_0x27a8e4,_0x146d50){const _0x150cc8=_0x33c78d;this['_logService']['debug']('[CollaborationSessionService]',_0x150cc8(0x32b)),_0x146d50['send']({'cmd':a['CombCmd']['HELLO']}),this[_0x150cc8(0x3a4)](_0x27a8e4);}['_onOffline'](_0x4d70cd){const _0x4d2aa6=_0x33c78d;_0x4d70cd[_0x4d2aa6(0x355)]=!0x1,_0x4d70cd[_0x4d2aa6(0x3a9)]=null,this['_status$'][_0x4d2aa6(0x2bd)](0x2),_0x4d70cd[_0x4d2aa6(0x3bd)][_0x4d2aa6(0x2bd)](null),this[_0x4d2aa6(0x41d)](_0x4d70cd),this[_0x4d2aa6(0x393)](_0x4d70cd);}[_0x33c78d(0x335)](_0x2c11a1){const _0x15b8a8=_0x33c78d;var _0x1190d2;this[_0x15b8a8(0x41e)](_0x2c11a1),this[_0x15b8a8(0x32c)](_0x2c11a1[_0x15b8a8(0x204)])&&(_0x2c11a1['retryCount']<((_0x1190d2=this[_0x15b8a8(0x3d0)][_0x15b8a8(0x307)](_0x15b8a8(0x24b)))==null?0x3:_0x1190d2)?(this['_collaborationUIEventService'][_0x15b8a8(0x26f)]({'id':_0x15b8a8(0x33c)}),this[_0x15b8a8(0x43d)](_0x2c11a1)):this[_0x15b8a8(0x223)]['emitEvent']({'id':_0x15b8a8(0x2e3)}));}[_0x33c78d(0x43d)](_0x262ae8){const _0x5c9750=_0x33c78d;var _0x1b3d67;let _0x2d6384=_0x262ae8[_0x5c9750(0x366)],_0x2d74e5=this['_configService'][_0x5c9750(0x307)](m),_0x1ba1bd=_0x2d6384===0x0?0x0:((_0x1b3d67=_0x2d74e5==null?void 0x0:_0x2d74e5[_0x5c9750(0x1e1)])==null?0x4e20:_0x1b3d67)*0x2**_0x2d6384;_0x262ae8[_0x5c9750(0x3b6)]=setTimeout(()=>{const _0x42ab7b=_0x5c9750;clearTimeout(_0x262ae8['retryConnectingTimer']),_0x262ae8[_0x42ab7b(0x3b6)]=null,this[_0x42ab7b(0x1dc)](_0x262ae8);},_0x1ba1bd),_0x262ae8[_0x5c9750(0x366)]+=0x1;}async[_0x33c78d(0x207)](_0xdc9b57,_0x2421f8){const _0x311927=_0x33c78d;return et(_0xdc9b57,_0x2421f8,await this[_0x311927(0x35d)]['resolveUnit']({'unitId':_0xdc9b57,'unitType':_0x2421f8}));}[_0x33c78d(0x2c9)](_0x516b69,_0x932d1,_0x101b7a){const _0x19b2d3=_0x33c78d;let {cmd:_0x2341ab}=_0x101b7a;_0x2341ab===a['CombCmd'][_0x19b2d3(0x13f)]&&!_0x516b69[_0x19b2d3(0x355)]&&(_0x932d1[_0x19b2d3(0x40c)]=_0x101b7a[_0x19b2d3(0x1a1)][_0x19b2d3(0x40c)],_0x516b69[_0x19b2d3(0x3bd)]['next'](_0x932d1),this[_0x19b2d3(0x30d)][_0x19b2d3(0x2bd)](0x3),_0x516b69['socketReady']=!0x0,_0x516b69[_0x19b2d3(0x3a9)]=null),_0x2341ab===a[_0x19b2d3(0x243)]['HEARTBEAT']&&this[_0x19b2d3(0x41d)](_0x516b69),this[_0x19b2d3(0x3a4)](_0x516b69);}[_0x33c78d(0x32c)](_0x18dc62){const _0x21ace6=_0x33c78d;return[...this[_0x21ace6(0x2d0)][_0x21ace6(0x341)]()][_0x21ace6(0x418)](_0x1353c0=>_0x1353c0===_0x18dc62);}[_0x33c78d(0x3d2)](_0x30f9b7){const _0x12d078=_0x33c78d;let _0xb6e28d=_0x30f9b7==null?'':_0x30f9b7,_0xbfe279=this[_0x12d078(0x1c8)]['get'](_0xb6e28d);if(_0xbfe279)return _0xbfe279;let _0x3cb026={'endpointKey':_0xb6e28d,'endpoint':_0x30f9b7,'socket$':new i[(_0x12d078(0x264))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels']['set'](_0xb6e28d,_0x3cb026),_0x3cb026;}[_0x33c78d(0x3a4)](_0x3531c5){const _0x4d0924=_0x33c78d;var _0x4831a4;this[_0x4d0924(0x393)](_0x3531c5),_0x3531c5['sendHeartbeatTimer']=setTimeout(()=>this[_0x4d0924(0x180)](_0x3531c5),(_0x4831a4=this[_0x4d0924(0x3d0)]['getConfig'](_0x4d0924(0x43c)))==null?0x7530:_0x4831a4);}[_0x33c78d(0x180)](_0x26dfd5){const _0x36cbd0=_0x33c78d;_0x26dfd5[_0x36cbd0(0x3bd)]['getValue']()[_0x36cbd0(0x189)]({'cmd':a[_0x36cbd0(0x243)][_0x36cbd0(0x40b)]}),this['_waitForHeartbeatResponse'](_0x26dfd5);}['_waitForHeartbeatResponse'](_0x19eb13){const _0x5a6413=_0x33c78d;var _0x2604f1;_0x19eb13['timeoutTimer']=setTimeout(()=>this[_0x5a6413(0x335)](_0x19eb13),(_0x2604f1=this[_0x5a6413(0x3d0)][_0x5a6413(0x307)](_0x5a6413(0x2f0)))==null?ne:_0x2604f1);}[_0x33c78d(0x393)](_0xaeb912){const _0x366080=_0x33c78d;_0xaeb912[_0x366080(0x1d5)]!=null&&(clearTimeout(_0xaeb912[_0x366080(0x1d5)]),_0xaeb912[_0x366080(0x1d5)]=null);}[_0x33c78d(0x41d)](_0x27845f){const _0x4bd53c=_0x33c78d;_0x27845f['timeoutTimer']!=null&&(clearTimeout(_0x27845f[_0x4bd53c(0x2f1)]),_0x27845f[_0x4bd53c(0x2f1)]=null);}};V=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,t[_0x33c78d(0x3ed)]),v(0x2,t['IConfigService']),v(0x3,Ye),v(0x4,(0x0,t[_0x33c78d(0x403)])(_)),v(0x5,Qe),v(0x6,(0x0,t[_0x33c78d(0x2cd)])(Ke))],V);let H=class extends t['RxDisposable']{constructor(_0x373ab9,_0xb85e5c,_0x3d5c1d,_0x2d702b){const _0x4ed073=_0x33c78d;var _0x4279c9;super(),this['_injector']=_0x373ab9,this[_0x4ed073(0x21c)]=_0xb85e5c,this[_0x4ed073(0x3d0)]=_0x3d5c1d,this['_univerInstanceService']=_0x2d702b,g(this,_0x4ed073(0x210),new Map()),g(this,_0x4ed073(0x2cb),new i[(_0x4ed073(0x2ca))]()),g(this,_0x4ed073(0x211),this['_entityInit$'][_0x4ed073(0x22d)]()),((_0x4279c9=this[_0x4ed073(0x3d0)][_0x4ed073(0x307)]('collaboration-client.config'))==null?void 0x0:_0x4279c9[_0x4ed073(0x26e)])!==!0x1&&this[_0x4ed073(0x28e)]();}[_0x33c78d(0x438)](){const _0x2eebdc=_0x33c78d;super['dispose'](),this[_0x2eebdc(0x210)]['forEach'](_0x46c838=>_0x46c838['dispose']()),this[_0x2eebdc(0x210)][_0x2eebdc(0x236)]();}[_0x33c78d(0x32a)](_0x31a090){const _0x17a64f=_0x33c78d;var _0x57f62;return(_0x57f62=this[_0x17a64f(0x210)][_0x17a64f(0x1d6)](_0x31a090))==null?null:_0x57f62;}[_0x33c78d(0x34b)](_0x1238bd){const _0x98e7c3=_0x33c78d;let _0x4b8689=this[_0x98e7c3(0x32a)](_0x1238bd);return _0x4b8689?(0x0,i['of'])(_0x4b8689):this['_entityInit$'][_0x98e7c3(0x253)]((0x0,s[_0x98e7c3(0x143)])(_0x3ef8d8=>_0x3ef8d8[_0x98e7c3(0x131)]===_0x1238bd));}[_0x33c78d(0x2b5)](_0x4fddea){const _0x12dad7=_0x33c78d;return(0x0,i[_0x12dad7(0x1ae)])(this[_0x12dad7(0x34b)](_0x4fddea)[_0x12dad7(0x253)]((0x0,s[_0x12dad7(0x2c2)])(()=>void 0x0)));}[_0x33c78d(0x28e)](){const _0x5dd7c1=_0x33c78d;this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x24e)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x303)])['pipe']((0x0,i[_0x5dd7c1(0x353)])(this[_0x5dd7c1(0x12c)]),(0x0,s[_0x5dd7c1(0x34f)])(0x10))[_0x5dd7c1(0x279)](async _0x466f11=>{const _0xd629ec=_0x5dd7c1;let _0x433d25=_0x466f11[_0xd629ec(0x29b)][_0xd629ec(0x428)](),_0x25c815=await this[_0xd629ec(0x32e)](_0x433d25,t['UniverInstanceType']['UNIVER_SHEET']);this[_0xd629ec(0x210)][_0xd629ec(0x240)](_0x433d25,_0x25c815);}),this[_0x5dd7c1(0x1eb)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x5dd7c1(0x137)])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x253)]((0x0,s[_0x5dd7c1(0x143)])(_0x1928ba=>!_0x1928ba[_0x5dd7c1(0x29b)]['getUnitId']()[_0x5dd7c1(0x37c)]('__')))['subscribe'](async _0xd05140=>{const _0x1e9dab=_0x5dd7c1;let _0x5a1e15=_0xd05140[_0x1e9dab(0x29b)][_0x1e9dab(0x428)](),_0x213bc7=await this[_0x1e9dab(0x32e)](_0x5a1e15,t[_0x1e9dab(0x3ad)][_0x1e9dab(0x137)]);this[_0x1e9dab(0x210)][_0x1e9dab(0x240)](_0x5a1e15,_0x213bc7);}),this['_univerInstanceService'][_0x5dd7c1(0x24e)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x3a3)])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x3c6486=>{const _0xb6a6d=_0x5dd7c1;let _0x28cfd5=_0x3c6486[_0xb6a6d(0x29b)]['getUnitId'](),_0x5ab15f=await this[_0xb6a6d(0x32e)](_0x28cfd5,t[_0xb6a6d(0x3ad)]['UNIVER_SLIDE']);this[_0xb6a6d(0x210)][_0xb6a6d(0x240)](_0x28cfd5,_0x5ab15f);}),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x24e)](t['UniverInstanceType'][_0x5dd7c1(0x34d)])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this[_0x5dd7c1(0x12c)]),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x256971=>{const _0x5513e8=_0x5dd7c1;let _0x1789c7=_0x256971['unit'][_0x5513e8(0x428)](),_0x50239c=await this[_0x5513e8(0x32e)](_0x1789c7,t[_0x5513e8(0x3ad)][_0x5513e8(0x34d)]);this[_0x5513e8(0x210)][_0x5513e8(0x240)](_0x1789c7,_0x50239c);}),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x24e)](t[_0x5dd7c1(0x3ad)]['UNIVER_BASE'])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this[_0x5dd7c1(0x12c)]),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x3029a0=>{const _0x5d53cb=_0x5dd7c1;let _0x3f5af5=_0x3029a0[_0x5d53cb(0x29b)]['getUnitId'](),_0x1eb4b8=await this[_0x5d53cb(0x32e)](_0x3f5af5,t['UniverInstanceType'][_0x5d53cb(0x262)]);this[_0x5d53cb(0x210)][_0x5d53cb(0x240)](_0x3f5af5,_0x1eb4b8);}),this[_0x5dd7c1(0x1eb)]['getTypeOfUnitAdded$'](t[_0x5dd7c1(0x3ad)]['UNIVER_PDF'])[_0x5dd7c1(0x253)]((0x0,i[_0x5dd7c1(0x353)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x5dd7c1(0x279)](async _0x186f8f=>{const _0x525b55=_0x5dd7c1;let _0x4bc3e3=_0x186f8f[_0x525b55(0x29b)][_0x525b55(0x428)](),_0x37a23e=await this[_0x525b55(0x32e)](_0x4bc3e3,t[_0x525b55(0x3ad)][_0x525b55(0x26c)]);this[_0x525b55(0x210)]['set'](_0x4bc3e3,_0x37a23e);}),(0x0,i[_0x5dd7c1(0x161)])(this[_0x5dd7c1(0x1eb)]['getTypeOfUnitDisposed$'](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x303)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x137)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x3a3)]),this['_univerInstanceService'][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x34d)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t['UniverInstanceType'][_0x5dd7c1(0x262)]),this[_0x5dd7c1(0x1eb)][_0x5dd7c1(0x367)](t[_0x5dd7c1(0x3ad)][_0x5dd7c1(0x26c)]))[_0x5dd7c1(0x253)]((0x0,i['takeUntil'])(this[_0x5dd7c1(0x12c)]))['subscribe'](_0x7fb092=>{const _0x49b7e7=_0x5dd7c1;let _0x181112=_0x7fb092[_0x49b7e7(0x428)](),_0x1162ad=this[_0x49b7e7(0x210)][_0x49b7e7(0x1d6)](_0x181112);_0x1162ad&&(_0x1162ad[_0x49b7e7(0x438)](),this[_0x49b7e7(0x210)][_0x49b7e7(0x2c7)](_0x181112));});}async[_0x33c78d(0x32e)](_0x4b9f97,_0x5c410f){const _0x1ae079=_0x33c78d;let _0x40ac58=await this[_0x1ae079(0x21c)][_0x1ae079(0x1da)](_0x4b9f97),_0x456ffd=this[_0x1ae079(0x25e)][_0x1ae079(0x139)](this[_0x1ae079(0x21b)](_0x5c410f),_0x4b9f97,_0x5c410f,_0x40ac58);return await _0x456ffd['init'](),this[_0x1ae079(0x2cb)][_0x1ae079(0x2bd)](_0x456ffd),_0x456ffd;}[_0x33c78d(0x21b)](_0x30201d){const _0xb09802=_0x33c78d;switch(_0x30201d){case t[_0xb09802(0x3ad)]['UNIVER_DOC']:return I;case t['UniverInstanceType']['UNIVER_SHEET']:return L;case t[_0xb09802(0x3ad)]['UNIVER_SLIDE']:return R;case t[_0xb09802(0x3ad)]['UNIVER_BOARD']:return z;case t['UniverInstanceType'][_0xb09802(0x262)]:return Ge;case t[_0xb09802(0x3ad)][_0xb09802(0x26c)]:return B;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x30201d);}}};H=y([v(0x0,(0x0,t['Inject'])(t[_0x33c78d(0x246)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(V)),v(0x2,t[_0x33c78d(0x2d4)]),v(0x3,t[_0x33c78d(0x142)])],H);var tt=_0x33c78d(0x3d8),nt=_0x33c78d(0x194);let rt=class extends t[_0x33c78d(0x17e)]{constructor(_0x8edbdd,_0x353632){super(),this['_univerInstanceService']=_0x8edbdd,this['_configService']=_0x353632,this['_init']();}[_0x33c78d(0x28e)](){const _0x111fa0=_0x33c78d;this[_0x111fa0(0x193)](this[_0x111fa0(0x1eb)][_0x111fa0(0x34a)]['subscribe'](()=>{const _0x247f34=_0x111fa0;var _0x51f07b;let _0xa21778=this[_0x247f34(0x1eb)][_0x247f34(0x3ef)](),_0x5891b2=(_0x51f07b=this[_0x247f34(0x3d0)][_0x247f34(0x307)]('DEFAULT_FILE_NAME'))==null?'Univer':_0x51f07b;_0xa21778 instanceof t[_0x247f34(0x3f7)]&&(_0x5891b2=_0xa21778[_0x247f34(0x249)]),document[_0x247f34(0x321)]=_0x5891b2;}));}};rt=y([v(0x0,t[_0x33c78d(0x142)]),v(0x1,t[_0x33c78d(0x2d4)])],rt);const it=(0x0,t['createIdentifier'])(_0x33c78d(0x2d2));let U=class{constructor(_0x3626f4,_0x1c6aef,_0x53045b){const _0x40e139=_0x33c78d;this[_0x40e139(0x20d)]=_0x3626f4,this[_0x40e139(0x3d0)]=_0x1c6aef,this['_univerInstanceService']=_0x53045b;}[_0x33c78d(0x1d0)](){var _0x2045d1;return(_0x2045d1=this['_getConfig']()['attachment'])==null?{}:_0x2045d1;}async['saveAttachment'](_0x24f004){const _0x18c362=_0x33c78d;let _0x37d14d=this[_0x18c362(0x1d0)]();if(at(_0x24f004,_0x37d14d),_0x37d14d[_0x18c362(0x275)])return _0x37d14d[_0x18c362(0x275)](_0x24f004);let _0x186a31=await this[_0x18c362(0x3af)](_0x24f004);return{'id':_0x186a31,'name':_0x24f004['name'],'mimeType':_0x24f004[_0x18c362(0x402)],'size':_0x24f004[_0x18c362(0x1df)],'sourceType':t[_0x18c362(0x412)]['UUID'],'source':_0x186a31};}async[_0x33c78d(0x3c4)](_0x4ff050,_0xf7385a){const _0x20ae5f=_0x33c78d;if(_0xf7385a!==t['ImageSourceType'][_0x20ae5f(0x407)])return _0x4ff050;let _0x5f3b69=(await this['_httpService'][_0x20ae5f(0x1d6)](this['_getSignURL']()[_0x20ae5f(0x437)](_0x20ae5f(0x158),_0x4ff050)))[_0x20ae5f(0x216)];if(_0x5f3b69[_0x20ae5f(0x39c)]&&_0x5f3b69[_0x20ae5f(0x39c)][_0x20ae5f(0x340)]!==a[_0x20ae5f(0x415)]['OK'])throw _0x5f3b69[_0x20ae5f(0x39c)];if(!_0x5f3b69[_0x20ae5f(0x13c)])throw Error(_0x20ae5f(0x217));return(0x0,t[_0x20ae5f(0x363)])(_0x5f3b69[_0x20ae5f(0x13c)],this[_0x20ae5f(0x3b3)]());}async[_0x33c78d(0x3af)](_0x5ac2e9){const _0x5022a7=_0x33c78d;let _0x1c1b8e=this[_0x5022a7(0x1eb)][_0x5022a7(0x3ef)](),_0x19f512=_0x1c1b8e==null?void 0x0:_0x1c1b8e[_0x5022a7(0x428)]();if(!_0x19f512)throw Error(_0x5022a7(0x332));let _0x25f548=new FormData();_0x25f548[_0x5022a7(0x2b6)](_0x5022a7(0x1e9),_0x5ac2e9);let _0x5a9037=this[_0x5022a7(0x3b0)]()+_0x5022a7(0x30b)+_0x5ac2e9[_0x5022a7(0x1df)]['toString']()+_0x5022a7(0x3e0)+a[_0x5022a7(0x197)][_0x5022a7(0x1ce)]+_0x5022a7(0x376)+encodeURIComponent(_0x19f512),_0x3db97b=(await this[_0x5022a7(0x20d)][_0x5022a7(0x3be)](_0x5a9037,{'body':_0x25f548}))[_0x5022a7(0x216)][_0x5022a7(0x144)];if(typeof _0x3db97b!=_0x5022a7(0x32f)||!_0x3db97b)throw Error(_0x5022a7(0x433));return _0x3db97b;}[_0x33c78d(0x3b0)](){const _0x329e71=_0x33c78d;var _0x289260;return(_0x289260=this[_0x329e71(0x409)]()['uploadFileServerUrl'])==null?_0x329e71(0x22a):_0x289260;}[_0x33c78d(0x417)](){const _0x148f93=_0x33c78d;var _0x9dcf31;return(_0x9dcf31=this[_0x148f93(0x409)]()[_0x148f93(0x1e5)])==null?'/universer-api/file/{fileID}/sign-url':_0x9dcf31;}[_0x33c78d(0x3b3)](){const _0x5780f4=_0x33c78d;var _0x168463;let _0x71f3e3=this[_0x5780f4(0x409)]();return _0x71f3e3['downloadEndpointUrl']?_0x71f3e3[_0x5780f4(0x13e)]:typeof location<'u'?location['origin']:(_0x168463=_0x71f3e3[_0x5780f4(0x185)])==null?'':_0x168463;}[_0x33c78d(0x409)](){const _0x475059=_0x33c78d;var _0x267e73;return(_0x267e73=this[_0x475059(0x3d0)][_0x475059(0x307)]('collaboration-client.config'))==null?{}:_0x267e73;}};U=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x2d4)])),v(0x2,(0x0,t[_0x33c78d(0x403)])(t['IUniverInstanceService']))],U);function at(_0x526c2b,_0x2b7561){const _0x3e18fe=_0x33c78d;var _0xe3e623;if(_0x2b7561[_0x3e18fe(0x1f5)]!=null&&_0x526c2b[_0x3e18fe(0x1df)]>_0x2b7561[_0x3e18fe(0x1f5)])throw Error(_0x3e18fe(0x15e));if((_0xe3e623=_0x2b7561['accept'])!=null&&_0xe3e623[_0x3e18fe(0x3e4)]&&!_0x2b7561[_0x3e18fe(0x14f)][_0x3e18fe(0x418)](_0x5f50b9=>_0x526c2b[_0x3e18fe(0x402)]===_0x5f50b9||_0x526c2b[_0x3e18fe(0x249)][_0x3e18fe(0x2d1)](_0x5f50b9)||_0x5f50b9[_0x3e18fe(0x2d1)]('/*')&&_0x526c2b[_0x3e18fe(0x402)][_0x3e18fe(0x37c)](_0x5f50b9[_0x3e18fe(0x37a)](0x0,-0x1))))throw Error(_0x3e18fe(0x3c8));}let W=class{constructor(_0x861e32,_0x45355f,_0x17aa40){const _0x145159=_0x33c78d;this[_0x145159(0x3d0)]=_0x861e32,this[_0x145159(0x20d)]=_0x45355f,this[_0x145159(0x2f5)]=_0x17aa40,this[_0x145159(0x1d4)]();}['init'](){const _0x4a03b5=_0x33c78d;this[_0x4a03b5(0x20d)][_0x4a03b5(0x2e7)]({'priority':0x1,'interceptor':(_0x473da6,_0x3046ff)=>_0x3046ff(_0x473da6)[_0x4a03b5(0x253)]((0x0,i['concatMap'])(async _0xf4e474=>{const _0x3b6b42=_0x4a03b5;let _0x498516=_0xf4e474;if(_0x498516[_0x3b6b42(0x29e)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x3b6b42(0x12f)](this[_0x3b6b42(0x2f5)]['t'](_0x3b6b42(0x24c)))){let _0x4e4ad6=window['encodeURIComponent'](window['location'][_0x3b6b42(0x375)]);window[_0x3b6b42(0x2a9)][_0x3b6b42(0x375)]=this[_0x3b6b42(0x2fc)]()+_0x3b6b42(0x35f)+_0x4e4ad6;}}return _0x498516;}))});}['_getLoginPath'](){const _0x21e425=_0x33c78d;var _0x578ee1;let _0x404b5f=this[_0x21e425(0x3d0)][_0x21e425(0x307)](m);return(_0x578ee1=_0x404b5f==null?void 0x0:_0x404b5f[_0x21e425(0x27e)])==null?_0x21e425(0x33e):_0x578ee1;}};W=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)])),v(0x2,(0x0,t[_0x33c78d(0x403)])(t['LocaleService']))],W);let G=class extends t[_0x33c78d(0x17e)]{constructor(_0x3c7bb8,_0x4aa82e){const _0x48ca41=_0x33c78d;super(),this[_0x48ca41(0x1b2)]=_0x3c7bb8,this[_0x48ca41(0x3d0)]=_0x4aa82e,g(this,'_cfgEnableObjInherit',!0x1),this[_0x48ca41(0x391)]();}[_0x33c78d(0x391)](){const _0xdd83dd=_0x33c78d;let _0x474899=this;this[_0xdd83dd(0x193)](this[_0xdd83dd(0x1b2)][_0xdd83dd(0x2e7)]({'priority':0x3e7,'interceptor':(0x0,l['MergeInterceptorFactory'])({'isMatch'(_0x4a4d58){const _0x2553d4=_0xdd83dd;var _0x4944ca;if(_0x4a4d58[_0x2553d4(0x361)]===_0x2553d4(0x31b)&&(_0x4944ca=_0x4a4d58[_0x2553d4(0x34c)])!=null&&_0x4944ca[_0x2553d4(0x216)]){let {objectID:_0x341a88,objectType:_0x36f068}=_0x4a4d58['requestParams'][_0x2553d4(0x216)]||{};if(!_0x341a88||_0x36f068===void 0x0)return!0x1;let _0x25f328=_0x474899['_getAPIPrefixPath']()+'/'+_0x36f068+'/object/'+_0x341a88+_0x2553d4(0x2d5);if(_0x4a4d58[_0x2553d4(0x13c)]===_0x25f328)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x354121){const _0x3bab8d=_0xdd83dd;var _0x40eaea;return(_0x40eaea=_0x354121[_0x3bab8d(0x34c)])==null?void 0x0:_0x40eaea[_0x3bab8d(0x216)];},'mergeParamsToRequest'(_0x175db8,_0x3ceb1e){const _0x20907d=_0xdd83dd;let _0x3be721=_0x474899[_0x20907d(0x2b4)]()+_0x20907d(0x426),_0x29d58a=_0x175db8['reduce']((_0xc7b3f9,_0x56bc28)=>{const _0x18e27d=_0x20907d;let {unitID:_0x479908,objectID:_0x3b6693,objectType:_0x4a8e44,actions:_0xe58f61}=_0x56bc28;return _0xc7b3f9[_0x479908]||(_0xc7b3f9[_0x479908]={}),_0xc7b3f9[_0x479908][_0x3b6693]||(_0xc7b3f9[_0x479908][_0x3b6693]={'objectID':_0x3b6693,'objectType':_0x4a8e44,'actions':[]}),_0xc7b3f9[_0x479908][_0x3b6693]['actions'][_0x18e27d(0x33a)](..._0xe58f61),_0xc7b3f9;},{}),_0x203faa=[];for(let _0x1da33d in _0x29d58a)for(let _0x10e66a in _0x29d58a[_0x1da33d]){let {actions:_0x16af1f,objectType:_0x2849b2}=_0x29d58a[_0x1da33d][_0x10e66a],_0x253776=[...new Set(_0x16af1f)];_0x203faa['push']({'unitID':_0x1da33d,'objectID':_0x10e66a,'objectType':_0x2849b2,'actions':_0x253776});}return new l['HTTPRequest']('POST',_0x3be721,{'headers':_0x3ceb1e[_0x20907d(0x40f)],'withCredentials':_0x3ceb1e['withCredentials'],'responseType':_0x3ceb1e[_0x20907d(0x2eb)],'body':{'requests':_0x203faa}});}},{'distributeResult'(_0x20a6eb,_0x3c187e){const _0x13c885=_0xdd83dd;let {objectActions:_0x432105}=_0x20a6eb;return _0x3c187e[_0x13c885(0x2c2)](_0x436559=>{const _0x38d647=_0x13c885;let {unitID:_0x26bb48,objectID:_0x5b91ab,actions:_0x6e8e93}=_0x436559,_0xe1ed64=_0x432105[_0x38d647(0x2aa)](_0x2e44c0=>_0x2e44c0[_0x38d647(0x131)]===_0x26bb48&&_0x2e44c0[_0x38d647(0x383)]===_0x5b91ab);return{'config':_0x436559,'result':{'actions':_0x6e8e93[_0x38d647(0x2c2)](_0x3a650c=>_0xe1ed64==null?void 0x0:_0xe1ed64[_0x38d647(0x24a)][_0x38d647(0x2aa)](_0x94d6ef=>_0x94d6ef[_0x38d647(0x3c6)]===_0x3a650c))[_0x38d647(0x143)](_0x43734e=>!!_0x43734e),'error':_0x20a6eb[_0x38d647(0x39c)]}};});}})}));}[_0x33c78d(0x2b4)](){const _0x474b19=_0x33c78d;var _0xee0175;let _0x257cdf=this[_0x474b19(0x3d0)][_0x474b19(0x307)](m);return(_0xee0175=_0x257cdf==null?void 0x0:_0x257cdf[_0x474b19(0x300)])==null?'/universer-api/authz':_0xee0175;}async[_0x33c78d(0x39b)](_0x128f11){const _0x5004d7=_0x33c78d;let _0xb53d04=this[_0x5004d7(0x2b4)]()+'/'+_0x128f11[_0x5004d7(0x2ea)]+_0x5004d7(0x2c1);return(await this[_0x5004d7(0x1b2)]['post'](_0xb53d04,{'body':_0x128f11}))[_0x5004d7(0x216)][_0x5004d7(0x383)]||'';}async['list'](_0x344abe){const _0x49ef6f=_0x33c78d;let _0x2c1cb3=this[_0x49ef6f(0x2b4)]()+'/-/object/list';return(await this[_0x49ef6f(0x1b2)][_0x49ef6f(0x3be)](_0x2c1cb3,{'body':_0x344abe}))['body'][_0x49ef6f(0x350)];}async[_0x33c78d(0x3b1)](_0x488b16){const _0xb13561=_0x33c78d;var _0x1d8984;let _0xd361f2=this[_0xb13561(0x2b4)]()+'/'+_0x488b16[_0xb13561(0x2ea)]+'/object/'+_0x488b16['objectID'],_0x11f494=await this[_0xb13561(0x1b2)]['put'](_0xd361f2,{'body':_0x488b16});if((_0x11f494==null||(_0x1d8984=_0x11f494[_0xb13561(0x216)])==null||(_0x1d8984=_0x1d8984[_0xb13561(0x39c)])==null?void 0x0:_0x1d8984[_0xb13561(0x340)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x33c78d(0x215)](_0x23ba27){const _0x39e8bf=_0x33c78d;let _0x1ae243=this[_0x39e8bf(0x2b4)]()+'/'+_0x23ba27[_0x39e8bf(0x2ea)]+_0x39e8bf(0x41c)+_0x23ba27[_0x39e8bf(0x383)]+_0x39e8bf(0x2d5);return(await this[_0x39e8bf(0x1b2)][_0x39e8bf(0x3be)](_0x1ae243,{'body':_0x23ba27}))[_0x39e8bf(0x216)][_0x39e8bf(0x24a)];}async[_0x33c78d(0x17d)](_0xf09096){const _0x3f696b=_0x33c78d;let _0x3d4b8a=this[_0x3f696b(0x2b4)]()+_0x3f696b(0x426);return(await this[_0x3f696b(0x1b2)][_0x3f696b(0x3be)](_0x3d4b8a,{'body':{'requests':_0xf09096}}))[_0x3f696b(0x216)]['objectActions'];}async[_0x33c78d(0x2ac)](_0x3fb6a5){const _0x3b997f=_0x33c78d;let _0x1eb5ff=this[_0x3b997f(0x2b4)]()+'/'+_0x3fb6a5['objectType']+_0x3b997f(0x373),_0x295456=await this[_0x3b997f(0x1b2)][_0x3b997f(0x3be)](_0x1eb5ff,{'body':_0x3fb6a5});return{'roles':_0x295456[_0x3b997f(0x216)][_0x3b997f(0x1dd)],'actions':_0x295456['body'][_0x3b997f(0x24a)]};}async[_0x33c78d(0x2d8)](_0x4d60d8){const _0x42e1ad=_0x33c78d;let _0x9b947e=this['_getAPIPrefixPath']()+_0x42e1ad(0x1e4);await this[_0x42e1ad(0x1b2)][_0x42e1ad(0x2c7)](_0x9b947e,{'params':{'collaboratorID':_0x4d60d8[_0x42e1ad(0x35e)],'objectID':_0x4d60d8[_0x42e1ad(0x383)],'unitID':_0x4d60d8[_0x42e1ad(0x131)]}});}async[_0x33c78d(0x162)](_0x13a128){const _0x274223=_0x33c78d;let _0x32b82c=this['_getAPIPrefixPath']()+_0x274223(0x1e4);await this[_0x274223(0x1b2)][_0x274223(0x260)](_0x32b82c,{'body':_0x13a128});}async[_0x33c78d(0x296)](_0x1dba0a){const _0x28c5bd=_0x33c78d;let _0x4d3c68=this[_0x28c5bd(0x2b4)]()+_0x28c5bd(0x1e4);await this['_HTTPService'][_0x28c5bd(0x3be)](_0x4d3c68,{'body':_0x1dba0a});}async[_0x33c78d(0x205)](_0x333039){const _0x3d0b9d=_0x33c78d;var _0x296085;let _0x3aac6d=this[_0x3d0b9d(0x2b4)]()+_0x3d0b9d(0x1e4),_0xc26025=await this[_0x3d0b9d(0x1b2)][_0x3d0b9d(0x1d6)](_0x3aac6d,{'params':{'objectID':_0x333039[_0x3d0b9d(0x383)],'unitID':_0x333039['unitID']}});return this['setCfgEnableObjInherit']((_0x296085=_0xc26025[_0x3d0b9d(0x216)][_0x3d0b9d(0x2b7)])!=null&&_0x296085),_0xc26025[_0x3d0b9d(0x216)][_0x3d0b9d(0x1d1)];}async[_0x33c78d(0x3c5)](_0x5940ad){const _0x538d09=_0x33c78d;let _0x92098=this[_0x538d09(0x2b4)]()+'/collaborator';await this[_0x538d09(0x1b2)][_0x538d09(0x25c)](_0x92098,{'body':_0x5940ad});}[_0x33c78d(0x322)](_0x3b6fc5){this['_cfgEnableObjInherit']=_0x3b6fc5;}[_0x33c78d(0x40d)](){const _0x3940f8=_0x33c78d;return this[_0x3940f8(0x39e)];}};G=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l['HTTPService'])),v(0x1,(0x0,t['Inject'])(t['IConfigService']))],G);function ot(_0x222a1d){const _0x195e24=_0x33c78d;let _0x55b6f8=atob(_0x222a1d),_0x511270=new Uint8Array(_0x55b6f8[_0x195e24(0x3e4)]);for(let _0x17bd19=0x0;_0x17bd19<_0x55b6f8[_0x195e24(0x3e4)];_0x17bd19++)_0x511270[_0x17bd19]=_0x55b6f8['charCodeAt'](_0x17bd19);return _0x511270;}function st(_0x49c35d){const _0x43a750=_0x33c78d;let _0x260934='';for(let _0x2661bf=0x0;_0x2661bf<_0x49c35d[_0x43a750(0x3e4)];_0x2661bf++)_0x260934+=String[_0x43a750(0x1d9)](_0x49c35d[_0x2661bf]);return btoa(_0x260934);}function ct(_0x6ca817,_0x321470){const _0x4f224f=_0x33c78d;let _0x2744c4=ot(_0x321470),_0x285aaf=(0x0,f['randomBytes'])(0x10);return st((0x0,f[_0x4f224f(0x333)])(_0x285aaf,(0x0,d[_0x4f224f(0x237)])(_0x2744c4,_0x285aaf)['encrypt']((0x0,f[_0x4f224f(0x36f)])(_0x6ca817))));}function lt(){const _0x1731ac=_0x33c78d;let _0x31526c=(0x0,u[_0x1731ac(0x314)])()['__Key__'];if(typeof window<'u'&&window[_0x1731ac(0x2a9)]!==void 0x0&&_0x31526c){let _0x23ed3c={'time':Math['floor'](Date[_0x1731ac(0x3da)]()/0x3e8),'domain':location[_0x1731ac(0x1b4)]};return ct(JSON[_0x1731ac(0x200)](_0x23ed3c),_0x31526c);}}let K=class{constructor(_0x3134d2){const _0x52b38e=_0x33c78d;this[_0x52b38e(0x20d)]=_0x3134d2,this['_initRequestHeader']();}[_0x33c78d(0x1a6)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x4b5822,_0x18005d)=>{const _0x4add00=_0x1643;let _0x109fe5=lt();return _0x109fe5&&_0x4b5822['headers'][_0x4add00(0x240)](_0x4add00(0x157),_0x109fe5),_0x18005d(_0x4b5822);}});}};K=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l['HTTPService']))],K);let q=class extends t[_0x33c78d(0x1cf)]{constructor(_0x579e5a,_0x954cc2,_0x416606){const _0x306fb4=_0x33c78d;super(),this[_0x306fb4(0x1fe)]=_0x579e5a,this[_0x306fb4(0x30a)]=_0x954cc2,this[_0x306fb4(0x1bf)]=_0x416606,g(this,_0x306fb4(0x171),new i[(_0x306fb4(0x264))](null)),g(this,'_unitLoaded$',new i[(_0x306fb4(0x2ca))]()),g(this,'unitInfo$',this[_0x306fb4(0x171)]['asObservable']()),g(this,_0x306fb4(0x199),this[_0x306fb4(0x1f4)][_0x306fb4(0x22d)]());}[_0x33c78d(0x438)](){const _0x3a1e9d=_0x33c78d;super[_0x3a1e9d(0x438)](),this['_unitLoaded$'][_0x3a1e9d(0x218)](),this['_unitInfo$'][_0x3a1e9d(0x218)]();}async[_0x33c78d(0x3c2)](_0x4627a5,_0x232c2c,_0x3ee1f0,_0x3cdbf6){const _0x1e7a8c=_0x33c78d;this[_0x1e7a8c(0x171)][_0x1e7a8c(0x2bd)]({'unitId':_0x4627a5,'type':_0x232c2c,'subUnitId':_0x3cdbf6});let _0xfbe322=null;switch(_0x232c2c){case t['UniverInstanceType'][_0x1e7a8c(0x303)]:_0xfbe322=await this[_0x1e7a8c(0x30a)]['loadSheet'](_0x4627a5,_0x3ee1f0,void 0x0,{'initialSubUnitId':_0x3cdbf6});break;case t['UniverInstanceType'][_0x1e7a8c(0x137)]:_0xfbe322=await this[_0x1e7a8c(0x30a)][_0x1e7a8c(0x344)](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)][_0x1e7a8c(0x3a3)]:_0xfbe322=await this['_snapshotService'][_0x1e7a8c(0x302)](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)][_0x1e7a8c(0x34d)]:_0xfbe322=await this['_snapshotService'][_0x1e7a8c(0x225)](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)]['UNIVER_BASE']:_0xfbe322=await this[_0x1e7a8c(0x30a)]['loadBase'](_0x4627a5,_0x3ee1f0);break;case t[_0x1e7a8c(0x3ad)][_0x1e7a8c(0x26c)]:_0xfbe322=await this[_0x1e7a8c(0x30a)]['loadPdf'](_0x4627a5,_0x3ee1f0);break;default:this['_logService'][_0x1e7a8c(0x39c)](_0x1e7a8c(0x3b7),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0xfbe322&&this['_unitLoaded$'][_0x1e7a8c(0x2bd)](_0xfbe322),_0xfbe322;}async[_0x33c78d(0x38e)](_0x5d731f,_0x4d7e91,_0x4a6d27){const _0x42325e=_0x33c78d;var _0x5b19fd;this[_0x42325e(0x171)]['next']({'unitId':_0x5d731f,'type':_0x4d7e91,'subUnitId':_0x4a6d27});let _0x13d328=0x0,_0x16c4b3=await((_0x5b19fd=this[_0x42325e(0x1bf)])==null?void 0x0:_0x5b19fd[_0x42325e(0x1be)](_0x5d731f));return _0x16c4b3&&(_0x16c4b3[_0x42325e(0x27c)]||_0x16c4b3[_0x42325e(0x280)][_0x42325e(0x3e4)]!==0x0)&&(_0x13d328=_0x16c4b3['rev']),_0x13d328===0x0&&this[_0x42325e(0x1fe)][_0x42325e(0x1f9)](_0x42325e(0x3b7),_0x42325e(0x182)),this[_0x42325e(0x3c2)](_0x5d731f,_0x4d7e91,_0x13d328,_0x4a6d27);}};q=y([v(0x0,t['ILogService']),v(0x1,(0x0,t[_0x33c78d(0x403)])(e[_0x33c78d(0x145)])),v(0x2,(0x0,t[_0x33c78d(0x2cd)])(S))],q);let J=class{constructor(_0x571127,_0x1555e3,_0x3928b5){const _0x8b9ea=_0x33c78d;this[_0x8b9ea(0x20d)]=_0x571127,this['_configService']=_0x1555e3,this[_0x8b9ea(0x1eb)]=_0x3928b5,g(this,_0x8b9ea(0x33b),0x0),g(this,_0x8b9ea(0x160),new i[(_0x8b9ea(0x2ca))]()),g(this,_0x8b9ea(0x26a),this[_0x8b9ea(0x160)]),g(this,'_imageSourceCache',new Map());}['setWaitCount'](_0x2701fe){const _0x3e8dc2=_0x33c78d;this[_0x3e8dc2(0x33b)]=_0x2701fe,this[_0x3e8dc2(0x160)][_0x3e8dc2(0x2bd)](_0x2701fe);}[_0x33c78d(0x233)](_0x256ce7,_0x3d21de){const _0x52920c=_0x33c78d;if(_0x3d21de===t[_0x52920c(0x412)]['BASE64']){let _0x392cc0=new Image();return _0x392cc0[_0x52920c(0x163)]=_0x256ce7,_0x392cc0;}return this['_imageSourceCache']['get'](_0x256ce7);}[_0x33c78d(0x1a9)](_0x45e68d,_0x1fadf7,_0x3570e7){const _0x4b6cb5=_0x33c78d;_0x1fadf7!==t[_0x4b6cb5(0x412)][_0x4b6cb5(0x3fe)]&&_0x3570e7!=null&&this['_imageSourceCache']['set'](_0x45e68d,_0x3570e7);}async[_0x33c78d(0x404)](_0xff54f6){const _0x282a68=_0x33c78d;try{let _0x165d33=this['_replaceFileID'](this[_0x282a68(0x417)](),''+_0xff54f6),_0x54ff0b=(await this[_0x282a68(0x20d)]['get'](_0x165d33))[_0x282a68(0x216)];if(_0x54ff0b[_0x282a68(0x39c)]&&_0x54ff0b['error']['code']===a[_0x282a68(0x415)]['OK']){let _0x42d3c0=(0x0,t[_0x282a68(0x363)])(_0x54ff0b[_0x282a68(0x13c)],this['_getDownloadEndpointURL']());return Promise[_0x282a68(0x3e8)](_0x42d3c0);}return Promise[_0x282a68(0x221)](_0x54ff0b['error']);}catch(_0x17c1ec){return Promise[_0x282a68(0x221)](_0x17c1ec);}}async['saveImage'](_0xe4331b){const _0x2a8c24=_0x33c78d;let _0x367884='';if(!p[_0x2a8c24(0x3d1)][_0x2a8c24(0x271)](_0xe4331b[_0x2a8c24(0x402)]))return this['_decreaseWaiting'](),Promise[_0x2a8c24(0x221)](Error(t[_0x2a8c24(0x24f)][_0x2a8c24(0x220)]));if(_0xe4331b['size']>(0x0,p[_0x2a8c24(0x388)])())return this[_0x2a8c24(0x1bd)](),Promise['reject'](Error(t['ImageUploadStatusType'][_0x2a8c24(0x14c)]));try{let _0x2ebfc9=new FormData();_0x2ebfc9['append'](_0x2a8c24(0x1e9),_0xe4331b);let _0x567333=this[_0x2a8c24(0x1eb)][_0x2a8c24(0x3ef)](),_0x584b83=_0x567333==null?void 0x0:_0x567333[_0x2a8c24(0x428)]();if(!_0x584b83)throw Error(_0x2a8c24(0x334));let _0x359fa0=this['_getUploadFileURL']()+'?size='+_0xe4331b[_0x2a8c24(0x1df)][_0x2a8c24(0x1e6)]()+_0x2a8c24(0x3e0)+a[_0x2a8c24(0x197)][_0x2a8c24(0x1ce)]+_0x2a8c24(0x376)+encodeURIComponent(_0x584b83),_0x45c9d4={'body':_0x2ebfc9},_0x537f38=(await this[_0x2a8c24(0x20d)][_0x2a8c24(0x3be)](_0x359fa0,_0x45c9d4))[_0x2a8c24(0x216)];if(typeof _0x537f38[_0x2a8c24(0x144)]!=_0x2a8c24(0x32f))return this[_0x2a8c24(0x1bd)](),Promise['reject'](Error(t[_0x2a8c24(0x24f)][_0x2a8c24(0x2b0)]));_0x367884=_0x537f38[_0x2a8c24(0x144)];}catch{return this['_decreaseWaiting'](),Promise[_0x2a8c24(0x221)](Error(t[_0x2a8c24(0x24f)][_0x2a8c24(0x2b0)]));}return new Promise((_0x236e88,_0xf35457)=>{const _0x15d005=_0x2a8c24;let _0x2bd0f1=new FileReader();_0x2bd0f1[_0x15d005(0x15d)](_0xe4331b),_0x2bd0f1['onload']=_0x333dac=>{const _0x57b06c=_0x15d005;var _0x392791;let _0x15c5e8=(_0x392791=_0x333dac[_0x57b06c(0x2a3)])==null?void 0x0:_0x392791[_0x57b06c(0x283)];if(_0x15c5e8==null){this[_0x57b06c(0x1bd)](),_0xf35457(Error(t[_0x57b06c(0x24f)][_0x57b06c(0x2b0)]));return;}_0x236e88({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t['ImageSourceType'][_0x57b06c(0x407)],'source':_0x367884,'base64Cache':_0x15c5e8,'status':t['ImageUploadStatusType'][_0x57b06c(0x31c)]}),this[_0x57b06c(0x1bd)]();};});}[_0x33c78d(0x3b0)](){const _0x11a395=_0x33c78d;var _0xf087c6;let _0x654fea=this[_0x11a395(0x3d0)][_0x11a395(0x307)](m);return(_0xf087c6=_0x654fea==null?void 0x0:_0x654fea[_0x11a395(0x185)])==null?'/universer-api/stream/file/upload':_0xf087c6;}[_0x33c78d(0x417)](){const _0x567385=_0x33c78d;var _0x11b9dd;let _0x1d2413=this[_0x567385(0x3d0)][_0x567385(0x307)](m);return(_0x11b9dd=_0x1d2413==null?void 0x0:_0x1d2413['signUrlServerUrl'])==null?'/universer-api/file/{fileID}/sign-url':_0x11b9dd;}[_0x33c78d(0x3b3)](){const _0x51547f=_0x33c78d;var _0xf31f4f;let _0xe10826=this['_configService'][_0x51547f(0x307)](m);return(_0xf31f4f=_0xe10826==null?void 0x0:_0xe10826['downloadEndpointUrl'])==null?location[_0x51547f(0x364)]:_0xf31f4f;}['_replaceFileID'](_0x3f487c,_0x4334a1){const _0x22fa2d=_0x33c78d;return _0x3f487c[_0x22fa2d(0x437)](_0x22fa2d(0x158),_0x4334a1);}[_0x33c78d(0x1bd)](){const _0xd0723f=_0x33c78d;--this['_waitCount'],this['_change$'][_0xd0723f(0x2bd)](this[_0xd0723f(0x33b)]);}};J=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)])),v(0x1,t[_0x33c78d(0x2d4)]),v(0x2,(0x0,t['Inject'])(t[_0x33c78d(0x142)]))],J);let Y=class{constructor(_0x4e81d6,_0x4dee2e){const _0x2e4891=_0x33c78d;this[_0x2e4891(0x3d0)]=_0x4e81d6,this['_HTTPService']=_0x4dee2e;}[_0x33c78d(0x2b4)](){const _0x56ec34=_0x33c78d;var _0x3ada06;let _0x5a29bd=this[_0x56ec34(0x3d0)]['getConfig'](m);return(_0x3ada06=_0x5a29bd==null?void 0x0:_0x5a29bd['authzUrl'])==null?_0x56ec34(0x234):_0x3ada06;}async[_0x33c78d(0x213)](_0x2a25f6){const _0x24fd2f=_0x33c78d;let _0x5755ff=this[_0x24fd2f(0x2b4)]()+_0x24fd2f(0x1e4);return{'list':[{'title':_0x24fd2f(0x299),'mentions':(await this['_HTTPService']['get'](_0x5755ff,{'params':{'objectID':_0x2a25f6[_0x24fd2f(0x3fd)],'unitID':_0x2a25f6[_0x24fd2f(0x3fd)]}}))[_0x24fd2f(0x216)][_0x24fd2f(0x1d1)][_0x24fd2f(0x2c2)](_0x241e89=>({'objectId':_0x241e89['id'],'name':_0x241e89['subject'][_0x24fd2f(0x249)],'metadata':{'icon':_0x241e89[_0x24fd2f(0x148)][_0x24fd2f(0x414)]},'label':_0x241e89[_0x24fd2f(0x148)]['name'],'objectType':t[_0x24fd2f(0x42c)]['PERSON']})),'metadata':{},'type':t[_0x24fd2f(0x42c)][_0x24fd2f(0x27b)]}]};}};Y=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x2d4)])),v(0x1,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)]))],Y);let X=class extends t[_0x33c78d(0x1cf)]{constructor(_0x31b0c6,_0x2db68b,_0x24a4c,_0x13adbb,_0x1cd9f4){const _0x49320b=_0x33c78d;super(),this[_0x49320b(0x25e)]=_0x31b0c6,this[_0x49320b(0x1eb)]=_0x2db68b,this[_0x49320b(0x276)]=_0x24a4c,this[_0x49320b(0x435)]=_0x13adbb,this[_0x49320b(0x223)]=_0x1cd9f4,this[_0x49320b(0x36e)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x17843b=_0x33c78d;let _0x4a8f20=async _0x1745fa=>{const _0x915a5d=_0x1643;(await this[_0x915a5d(0x435)][_0x915a5d(0x1da)](_0x1745fa))[_0x915a5d(0x32d)][_0x915a5d(0x253)]((0x0,s[_0x915a5d(0x143)])(_0x349675=>_0x349675[_0x915a5d(0x399)]===e['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,s['takeUntil'])(this[_0x915a5d(0x12c)]))[_0x915a5d(0x279)](_0x37d794=>{const _0x1563cb=_0x915a5d;let {reason:_0x39a8e3}=_0x37d794[_0x1563cb(0x1a1)];this[_0x1563cb(0x223)][_0x1563cb(0x26f)]({'id':'CLOSE_ROOM','data':_0x39a8e3}),this['_permissionService']['updatePermissionPoint'](new r['WorkbookEditablePermission'](_0x1745fa)['id'],!0x1),this[_0x1563cb(0x435)][_0x1563cb(0x420)](_0x1745fa);});};(0x0,i['merge'])(this[_0x17843b(0x1eb)][_0x17843b(0x24e)](t['UniverInstanceType']['UNIVER_SHEET']),this[_0x17843b(0x1eb)]['getTypeOfUnitAdded$'](t[_0x17843b(0x3ad)][_0x17843b(0x137)]),this[_0x17843b(0x1eb)]['getTypeOfUnitAdded$'](t[_0x17843b(0x3ad)][_0x17843b(0x34d)]),this['_univerInstanceService'][_0x17843b(0x24e)](t[_0x17843b(0x3ad)][_0x17843b(0x262)]))[_0x17843b(0x253)]((0x0,s[_0x17843b(0x2c2)])(_0x5c2226=>_0x5c2226[_0x17843b(0x29b)][_0x17843b(0x428)]()),(0x0,s['filter'])(_0x1fd397=>!(0x0,t[_0x17843b(0x1b6)])(_0x1fd397)),(0x0,s['takeUntil'])(this[_0x17843b(0x12c)]))[_0x17843b(0x279)](_0x18613f=>{_0x4a8f20(_0x18613f);});}[_0x33c78d(0x36e)](){const _0x409858=_0x33c78d;let _0x459fb3=async _0x5f2130=>{const _0x417d0f=_0x1643;let _0x282a85=await this[_0x417d0f(0x435)]['requireSession'](_0x5f2130),_0x188b89=this['_injector'][_0x417d0f(0x1d6)](r['SheetPermissionInitController']);_0x282a85['event$'][_0x417d0f(0x253)]((0x0,s['filter'])(_0x5e7218=>_0x5e7218[_0x417d0f(0x399)]===e[_0x417d0f(0x2e1)][_0x417d0f(0x3d6)]),(0x0,s[_0x417d0f(0x353)])(this[_0x417d0f(0x12c)]))['subscribe'](_0x3e5d7e=>{const _0x21ab49=_0x417d0f;let {objectId:_0x4c3938}=_0x3e5d7e[_0x21ab49(0x1a1)];_0x4c3938===_0x5f2130?_0x188b89[_0x21ab49(0x3aa)](_0x5f2130):_0x188b89[_0x21ab49(0x3ae)](_0x5f2130,_0x4c3938);});};(0x0,i[_0x409858(0x161)])(this['_univerInstanceService'][_0x409858(0x24e)](t[_0x409858(0x3ad)][_0x409858(0x303)]))['pipe']((0x0,s[_0x409858(0x2c2)])(_0x193e85=>_0x193e85[_0x409858(0x29b)][_0x409858(0x428)]()),(0x0,s[_0x409858(0x143)])(_0x3f8ebc=>!(0x0,t['isInternalEditorID'])(_0x3f8ebc)),(0x0,s['takeUntil'])(this[_0x409858(0x12c)]))[_0x409858(0x279)](_0x52ebd5=>{_0x459fb3(_0x52ebd5);});}};X=y([v(0x0,(0x0,t[_0x33c78d(0x403)])(t[_0x33c78d(0x246)])),v(0x1,t[_0x33c78d(0x142)]),v(0x2,t[_0x33c78d(0x18f)]),v(0x3,(0x0,t[_0x33c78d(0x403)])(V)),v(0x4,(0x0,t[_0x33c78d(0x403)])(_))],X);let Z=class{constructor(_0x4ccc1d,_0x3d71fa){const _0x5d35e9=_0x33c78d;this[_0x5d35e9(0x3d0)]=_0x4ccc1d,this['_httpService']=_0x3d71fa;}async['getUnitOnRev'](_0x5d8ed0,_0x31138b){const _0x2afb80=_0x33c78d;var _0x465750;let {unitID:_0xa08bf3,type:_0x43ea58,revision:_0x5de963=0x0}=_0x31138b,_0xb878ed=this['getSnapshotAPIPath']()+'/'+_0x43ea58+_0x2afb80(0x379)+_0xa08bf3+_0x2afb80(0x150)+_0x5de963,_0x37df09=(await this[_0x2afb80(0x20d)]['get'](_0xb878ed))[_0x2afb80(0x216)],_0x2123bc=(_0x465750=_0x37df09[_0x2afb80(0x41a)])==null?void 0x0:_0x465750[_0x2afb80(0x235)];if(_0x2123bc){let _0x1fd023=_0x2123bc==null?void 0x0:_0x2123bc[_0x2afb80(0x14d)];_0x2123bc[_0x2afb80(0x14d)]=e[_0x2afb80(0x18e)][_0x2afb80(0x36a)]((0x0,e[_0x2afb80(0x1d7)])(_0x1fd023)),Object[_0x2afb80(0x2de)](_0x2123bc[_0x2afb80(0x3bc)])['forEach'](([,_0x2b2143])=>{const _0x2788a0=_0x2afb80;let _0x288183=_0x2b2143[_0x2788a0(0x14d)];_0x2b2143[_0x2788a0(0x14d)]=e[_0x2788a0(0x18e)][_0x2788a0(0x36a)]((0x0,e['b64DecodeUnicode'])(_0x288183));});}return _0x37df09;}async[_0x33c78d(0x245)](_0x2600c2,_0x5c4ee5){const _0x7ea398=_0x33c78d;let {unitID:_0x5f54cd,type:_0x2e155e,blockID:_0x3a78bd}=_0x5c4ee5,_0x206a0b=this[_0x7ea398(0x323)]()+'/'+_0x2e155e+_0x7ea398(0x379)+_0x5f54cd+_0x7ea398(0x39d)+_0x3a78bd;return(await this[_0x7ea398(0x20d)][_0x7ea398(0x1d6)](_0x206a0b))[_0x7ea398(0x216)];}async[_0x33c78d(0x196)](_0x2d6322,_0x446b80){const _0x296a4c=_0x33c78d;let {unitID:_0x554cc8,type:_0x27053f,blockID:_0x5eb3e0}=_0x446b80,_0x341875=this[_0x296a4c(0x323)]()+'/block/'+_0x27053f+_0x296a4c(0x379)+_0x554cc8+_0x296a4c(0x39d)+_0x5eb3e0;return(await this[_0x296a4c(0x20d)]['get'](_0x341875))[_0x296a4c(0x216)];}async[_0x33c78d(0x1a2)](_0x273400,_0x382d94){const _0x1ccae8=_0x33c78d;let {unitID:_0x15a9d9,type:_0x3c8227,from:_0x2235b2,to:_0x7e93c9}=_0x382d94,_0x36700a=this[_0x1ccae8(0x323)]()+'/'+_0x3c8227+_0x1ccae8(0x379)+_0x15a9d9+_0x1ccae8(0x146)+_0x2235b2+_0x1ccae8(0x12d)+_0x7e93c9;return(await this[_0x1ccae8(0x20d)][_0x1ccae8(0x1d6)](_0x36700a))[_0x1ccae8(0x216)];}[_0x33c78d(0x175)](){const _0x3c2c08=_0x33c78d;var _0x2a107e;return(_0x2a107e=this[_0x3c2c08(0x3d0)][_0x3c2c08(0x307)](_0x3c2c08(0x293)))==null?this['_getAPIPrefix']():_0x2a107e;}[_0x33c78d(0x323)](){const _0x20ce48=_0x33c78d;var _0x4d3af2;let _0x1a5221=this[_0x20ce48(0x3d0)][_0x20ce48(0x307)](m);return(_0x4d3af2=_0x1a5221==null?void 0x0:_0x1a5221[_0x20ce48(0x31a)])==null?'/universer-api/snapshot':_0x4d3af2;}async[_0x33c78d(0x2ed)](_0x105bf6,_0x35cf70){const _0x536490=_0x33c78d;let _0x2e8feb=_0x536490(0x434)+_0x35cf70[_0x536490(0x402)]+'/unit/'+_0x35cf70['unitID']+_0x536490(0x19e);return(await this[_0x536490(0x20d)][_0x536490(0x1d6)](_0x2e8feb,{'params':{'resourceId':JSON['stringify'](_0x35cf70['resourceIDs'])}}))[_0x536490(0x216)];}[_0x33c78d(0x3eb)](){const _0x7582ef=_0x33c78d;throw Error(_0x7582ef(0x3f1));}['updateSnapshot'](){const _0x1b22e1=_0x33c78d;throw Error(_0x1b22e1(0x3f1));}['saveSheetBlock'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x33c78d(0x28b)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x33c78d(0x3fa)](){const _0x26209a=_0x33c78d;throw Error(_0x26209a(0x3f1));}[_0x33c78d(0x289)](){const _0x17e49a=_0x33c78d;throw Error(_0x17e49a(0x3f1));}};Z=y([v(0x0,t['IConfigService']),v(0x1,(0x0,t[_0x33c78d(0x403)])(l[_0x33c78d(0x135)]))],Z);let Q=class extends t[_0x33c78d(0x346)]{constructor(_0x23242f,_0xff35f5,_0x4f93b7,_0x11a776,_0x43209b){const _0x143db5=_0x33c78d;super(_0x23242f,_0xff35f5,_0x4f93b7),this[_0x143db5(0x2b3)]=_0x11a776,this[_0x143db5(0x1fe)]=_0x43209b;}[_0x33c78d(0x401)](_0x56da84,_0x4683a9){const _0x3b14a2=_0x33c78d;let _0x69cf0e=this[_0x3b14a2(0x2af)](_0x56da84);if(_0x69cf0e)try{let _0x4f2406=this['_transformStack'](_0x69cf0e,_0x4683a9);this[_0x3b14a2(0x305)](_0x56da84,_0x4f2406);}catch(_0x4a3936){this['_logService'][_0x3b14a2(0x39c)](_0x3b14a2(0x3e1),_0x4a3936),this['_clearUndo'](_0x56da84);}let _0x545cb5=this['_getRedoStack'](_0x56da84);if(_0x545cb5)try{let _0x2ef589=this[_0x3b14a2(0x15a)](_0x545cb5,_0x4683a9);this[_0x3b14a2(0x23d)](_0x56da84,_0x2ef589);}catch(_0x42c376){this[_0x3b14a2(0x1fe)]['error'](_0x42c376),this[_0x3b14a2(0x43a)](_0x56da84);}}[_0x33c78d(0x1aa)](_0x37c6da){const _0x1dc7f9=_0x33c78d;let _0x3b9332=this[_0x1dc7f9(0x2af)](_0x37c6da);_0x3b9332&&(_0x3b9332[_0x1dc7f9(0x3e4)]=0x0,this[_0x1dc7f9(0x3f2)]());}['_clearRedo'](_0x23a70a){const _0x31465c=_0x33c78d;let _0x2e9d66=this[_0x31465c(0x254)](_0x23a70a);_0x2e9d66&&(_0x2e9d66[_0x31465c(0x3e4)]=0x0,this['_updateStatus']());}[_0x33c78d(0x305)](_0x2d4774,_0x366285){const _0x56dc6f=_0x33c78d;this['_undoStacks'][_0x56dc6f(0x240)](_0x2d4774,_0x366285),this[_0x56dc6f(0x3f2)]();}[_0x33c78d(0x23d)](_0x40fbbf,_0x5cb3cb){const _0x5881b2=_0x33c78d;this[_0x5881b2(0x286)]['set'](_0x40fbbf,_0x5cb3cb),this[_0x5881b2(0x3f2)]();}[_0x33c78d(0x15a)](_0x53d369,_0x242417){const _0x1721e4=_0x33c78d;let _0x5b8dd2=[],_0x5a2c49=_0x242417,_0x53ce1f=_0x242417;for(let _0x59deb1=_0x53d369[_0x1721e4(0x3e4)]-0x1;_0x59deb1>=0x0;_0x59deb1--){let {unitID:_0x4e58df,undoMutations:_0x24e414,redoMutations:_0x3fe947}=_0x53d369[_0x59deb1],_0x3c8574=this[_0x1721e4(0x2b3)][_0x1721e4(0x2e4)](_0x5a2c49,_0x24e414),_0x385a38=this[_0x1721e4(0x2b3)][_0x1721e4(0x2e4)](_0x53ce1f,_0x3fe947);if((0x0,e[_0x1721e4(0x3ea)])(_0x3c8574)||(0x0,e['isTransformMutationsWithChangesetFailure'])(_0x385a38)){this['_logService'][_0x1721e4(0x39c)](_0x1721e4(0x3e1),_0x1721e4(0x20e),_0x3c8574,_0x385a38);break;}_0x5a2c49=_0x3c8574[_0x1721e4(0x423)],_0x53ce1f=_0x385a38[_0x1721e4(0x423)],_0x5b8dd2[_0x1721e4(0x33a)]({'unitID':_0x4e58df,'undoMutations':_0x3c8574[_0x1721e4(0x19c)],'redoMutations':_0x385a38['m2Prime']});}return _0x5b8dd2['reverse']();}};Q=y([v(0x0,t[_0x33c78d(0x142)]),v(0x1,t[_0x33c78d(0x1fb)]),v(0x2,t[_0x33c78d(0x16e)]),v(0x3,e[_0x33c78d(0x2e9)]),v(0x4,t['ILogService'])],Q);let $=class extends t[_0x33c78d(0x35a)]{constructor(_0x38b6fe=ee,_0xcfcd2e,_0x5db348,_0x2f04aa){const _0x31e9c6=_0x33c78d;super(),this[_0x31e9c6(0x192)]=_0x38b6fe,this[_0x31e9c6(0x1fe)]=_0xcfcd2e,this[_0x31e9c6(0x25e)]=_0x5db348,this[_0x31e9c6(0x3d0)]=_0x2f04aa;let {..._0x1a4a87}=(0x0,t[_0x31e9c6(0x161)])({},ee,this[_0x31e9c6(0x192)]);if(!_0x1a4a87['socketService'])throw Error(_0x31e9c6(0x2e5));this['_config']=_0x1a4a87,this[_0x31e9c6(0x3d0)]['setConfig'](m,_0x1a4a87);}[_0x33c78d(0x336)](){this['_registerDependencies'](),this['_initDependencies']();}['_registerDependencies'](){const _0x3660de=_0x33c78d;var _0x5d0bd5,_0x584723;this[_0x3660de(0x25e)][_0x3660de(0x40e)](t[_0x3660de(0x3a5)])&&this['_logService']['error']('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x63a541=(0x0,t[_0x3660de(0x1a8)])([[t[_0x3660de(0x3a5)],{'useClass':Q}],[Qe,{'useValue':$e()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[Ye,{'useClass':this[_0x3660de(0x192)][_0x3660de(0x15b)]}],[e[_0x3660de(0x432)],{'useClass':Z}],[t[_0x3660de(0x25d)],{'useClass':G}],[t[_0x3660de(0x3c3)],{'useClass':J}],[it,{'useClass':U}],[t[_0x3660de(0x430)],{'useClass':Y}],[H],[rt]],(_0x5d0bd5=this[_0x3660de(0x192)])==null?void 0x0:_0x5d0bd5[_0x3660de(0x37e)]);if(!((_0x584723=this['_config'])!=null&&_0x584723[_0x3660de(0x30e)])){let _0x448ddf=_0x63a541[_0x3660de(0x308)](([_0x4bd5b8])=>_0x4bd5b8===w);_0x448ddf!==-0x1&&_0x63a541[_0x3660de(0x313)](_0x448ddf,0x1);}(0x0,t[_0x3660de(0x406)])(this[_0x3660de(0x25e)],_0x63a541);}['_initDependencies'](){const _0x216337=_0x33c78d;var _0x14c63d,_0x1fdac1;if(this[_0x216337(0x25e)][_0x216337(0x1d6)](l[_0x216337(0x135)])[_0x216337(0x2e7)]({'priority':0x14,'interceptor':(0x0,l[_0x216337(0x3db)])({'maxParallel':0x6})}),!((_0x14c63d=this['_config'])!=null&&_0x14c63d[_0x216337(0x3a6)])){var _0x22f82a;(_0x22f82a=this['_injector'][_0x216337(0x1d6)](S,t['Quantity'][_0x216337(0x170)]))==null||_0x22f82a['disableLocalCache']();}(_0x1fdac1=this[_0x216337(0x192)])!=null&&_0x1fdac1['enableAuthServer']&&(0x0,t[_0x216337(0x352)])(this[_0x216337(0x25e)],[[W]]),(0x0,t[_0x216337(0x352)])(this[_0x216337(0x25e)],[[K],[H],[X]]);}};g($,_0x33c78d(0x43b),_0x33c78d(0x164)),g($,'packageName',tt),g($,_0x33c78d(0x134),nt),$=y([(0x0,t[_0x33c78d(0x3d5)])(u['UniverLicensePlugin'],l[_0x33c78d(0x11f)],e[_0x33c78d(0x13a)]),v(0x1,t[_0x33c78d(0x3ed)]),v(0x2,(0x0,t['Inject'])(t['Injector'])),v(0x3,t[_0x33c78d(0x2d4)])],$),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x396),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x2ce),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x1fd),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x416),{'enumerable':!0x0,'get':function(){return Ge;}}),Object['defineProperty'](exports,_0x33c78d(0x440),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x33c78d(0x2e6)]=m,Object[_0x33c78d(0x36d)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x33c78d(0x121),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x265),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x329),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x33c78d(0x36d)](exports,'CollaborationSession',{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x155),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,_0x33c78d(0x21e),{'enumerable':!0x0,'get':function(){return Ze;}}),exports[_0x33c78d(0x33f)]=Ve,exports[_0x33c78d(0x2a7)]=oe,exports[_0x33c78d(0x42e)]=_,Object[_0x33c78d(0x36d)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x33c78d(0x27a)]=se,Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x256),{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x33c78d(0x183)]=te,exports[_0x33c78d(0x31d)]='/universer-api/uniscript',exports[_0x33c78d(0x331)]=_0x33c78d(0x19a),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x2d6),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x1b3),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x1d3),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x33c78d(0x2c0)]=_0x33c78d(0x43c),exports[_0x33c78d(0x20a)]=_0x33c78d(0x2f0),exports[_0x33c78d(0x2a2)]=it,exports[_0x33c78d(0x2b1)]=Qe,exports[_0x33c78d(0x2f6)]=Ye,exports[_0x33c78d(0x177)]=S,exports[_0x33c78d(0x2d7)]=Ke,exports[_0x33c78d(0x13b)]=w,exports[_0x33c78d(0x3c7)]=0x3e8,exports[_0x33c78d(0x2dd)]=_0x33c78d(0x3c7),Object['defineProperty'](exports,_0x33c78d(0x29a),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x14b),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x38b),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x3a2),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x3f8),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x33c78d(0x20b)]=_0x33c78d(0x2db),exports['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x33c78d(0x24b),exports[_0x33c78d(0x358)]=ve,Object['defineProperty'](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x19d),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x2ec),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x214),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x285),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x33c78d(0x186)]=Se,Object[_0x33c78d(0x36d)](exports,_0x33c78d(0x421),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=$e,exports['deserializeToCombResponse']=qe,exports[_0x33c78d(0x238)]=be,exports[_0x33c78d(0x258)]=Je;