@univerjs-pro/collaboration-client 1.0.0-alpha.3 → 1.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) 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 +2 -2
  65. package/lib/types/services/data-loader/data-loader.service.d.ts +1 -1
  66. package/lib/umd/facade.js +1 -1
  67. package/lib/umd/index.js +1 -1
  68. package/lib/umd/locale/ar-SA.js +1 -1
  69. package/lib/umd/locale/ca-ES.js +1 -1
  70. package/lib/umd/locale/de-DE.js +1 -1
  71. package/lib/umd/locale/en-US.js +1 -1
  72. package/lib/umd/locale/es-ES.js +1 -1
  73. package/lib/umd/locale/fa-IR.js +1 -1
  74. package/lib/umd/locale/fr-FR.js +1 -1
  75. package/lib/umd/locale/id-ID.js +1 -1
  76. package/lib/umd/locale/it-IT.js +1 -1
  77. package/lib/umd/locale/ja-JP.js +1 -1
  78. package/lib/umd/locale/ko-KR.js +1 -1
  79. package/lib/umd/locale/pl-PL.js +1 -1
  80. package/lib/umd/locale/pt-BR.js +1 -1
  81. package/lib/umd/locale/ru-RU.js +1 -1
  82. package/lib/umd/locale/sk-SK.js +1 -1
  83. package/lib/umd/locale/vi-VN.js +1 -1
  84. package/lib/umd/locale/zh-CN.js +1 -1
  85. package/lib/umd/locale/zh-HK.js +1 -1
  86. package/lib/umd/locale/zh-TW.js +1 -1
  87. package/package.json +14 -14
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x22dc6c=_0x2db4;(function(_0x30c651,_0xc77416){const _0x31d1dc=_0x2db4,_0x4e6800=_0x30c651();while(!![]){try{const _0x459813=parseInt(_0x31d1dc(0x13d))/0x1*(parseInt(_0x31d1dc(0x133))/0x2)+-parseInt(_0x31d1dc(0x140))/0x3+parseInt(_0x31d1dc(0x13a))/0x4*(parseInt(_0x31d1dc(0x11d))/0x5)+-parseInt(_0x31d1dc(0x13e))/0x6+-parseInt(_0x31d1dc(0x151))/0x7*(parseInt(_0x31d1dc(0x11b))/0x8)+-parseInt(_0x31d1dc(0x12c))/0x9+parseInt(_0x31d1dc(0x15c))/0xa*(parseInt(_0x31d1dc(0x157))/0xb);if(_0x459813===_0xc77416)break;else _0x4e6800['push'](_0x4e6800['shift']());}catch(_0x4c9e1c){_0x4e6800['push'](_0x4e6800['shift']());}}}(_0x3038,0xc8ac8),Object['defineProperty'](exports,Symbol[_0x22dc6c(0x14d)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t[_0x22dc6c(0x131)]{get[_0x22dc6c(0x160)](){const _0x597418=_0x22dc6c;return e[_0x597418(0x160)];}};t['FEnum']['extend'](a);var o=class extends t[_0x22dc6c(0x155)]{get[_0x22dc6c(0x152)](){const _0x12450a=_0x22dc6c;return _0x12450a(0x152);}};t[_0x22dc6c(0x155)]['extend'](o);function s(_0xa301c8,_0x36d7f4){return function(_0x3e3e32,_0x1a0947){_0x36d7f4(_0x3e3e32,_0x1a0947,_0xa301c8);};}function c(_0x5a0776,_0x18a2ff,_0x56cbed,_0x2f7f5c){const _0x4999bc=_0x22dc6c;var _0x2afd80=arguments[_0x4999bc(0x15f)],_0x3d5ab3=_0x2afd80<0x3?_0x18a2ff:_0x2f7f5c===null?_0x2f7f5c=Object[_0x4999bc(0x15b)](_0x18a2ff,_0x56cbed):_0x2f7f5c,_0x239ac4;if(typeof Reflect=='object'&&typeof Reflect[_0x4999bc(0x164)]==_0x4999bc(0x132))_0x3d5ab3=Reflect[_0x4999bc(0x164)](_0x5a0776,_0x18a2ff,_0x56cbed,_0x2f7f5c);else{for(var _0x4b8595=_0x5a0776[_0x4999bc(0x15f)]-0x1;_0x4b8595>=0x0;_0x4b8595--)(_0x239ac4=_0x5a0776[_0x4b8595])&&(_0x3d5ab3=(_0x2afd80<0x3?_0x239ac4(_0x3d5ab3):_0x2afd80>0x3?_0x239ac4(_0x18a2ff,_0x56cbed,_0x3d5ab3):_0x239ac4(_0x18a2ff,_0x56cbed))||_0x3d5ab3);}return _0x2afd80>0x3&&_0x3d5ab3&&Object[_0x4999bc(0x11c)](_0x18a2ff,_0x56cbed,_0x3d5ab3),_0x3d5ab3;}let l=class extends t[_0x22dc6c(0x122)]{constructor(_0x100bef,_0x1a472a,_0xfae6b0,_0x34fc05,_0x10953){const _0x58716a=_0x22dc6c;super(),this[_0x58716a(0x148)]=_0x100bef,this[_0x58716a(0x167)]=_0x1a472a,this[_0x58716a(0x13b)]=_0xfae6b0,this['_snapshotService']=_0x34fc05,this[_0x58716a(0x120)]=_0x10953;}async[_0x22dc6c(0x14e)](_0x50b05b,_0x395c94){const _0x122546=_0x22dc6c;return await this[_0x122546(0x166)][_0x122546(0x12d)](_0x50b05b,0x0,_0x395c94)?(await this[_0x122546(0x120)][_0x122546(0x127)](_0x50b05b),this[_0x122546(0x148)]['getWorkbook'](_0x50b05b)):null;}async[_0x22dc6c(0x12f)](_0x2cc289,_0x13d52a){const _0x34c794=_0x22dc6c;return await this[_0x34c794(0x166)][_0x34c794(0x121)](_0x2cc289,0x0,_0x13d52a)?(await this['_collaborationController'][_0x34c794(0x127)](_0x2cc289),this[_0x34c794(0x148)][_0x34c794(0x135)](_0x2cc289)):null;}async[_0x22dc6c(0x119)](_0x29c019,_0x3ed054){const _0x6531cc=_0x22dc6c;return await this[_0x6531cc(0x166)][_0x6531cc(0x158)](_0x29c019,0x0,_0x3ed054)?(await this[_0x6531cc(0x120)][_0x6531cc(0x127)](_0x29c019),this[_0x6531cc(0x148)][_0x6531cc(0x14b)](_0x29c019)):null;}async[_0x22dc6c(0x15d)](_0x944fda,_0x43dac3){const _0x3c4e01=_0x22dc6c;return await this[_0x3c4e01(0x166)][_0x3c4e01(0x130)](_0x944fda,0x0,_0x43dac3)?(await this['_collaborationController'][_0x3c4e01(0x127)](_0x944fda),this[_0x3c4e01(0x148)][_0x3c4e01(0x14c)](_0x944fda)):null;}async['loadBoardAsync'](_0x72e7d3,_0x406dbf){const _0x3cdd69=_0x22dc6c;return await this[_0x3cdd69(0x166)][_0x3cdd69(0x168)](_0x72e7d3,0x0,_0x406dbf)?(await this[_0x3cdd69(0x120)][_0x3cdd69(0x127)](_0x72e7d3),this[_0x3cdd69(0x148)]['getBoard'](_0x72e7d3)):null;}['subscribeCollaborators'](_0x1efb1a,_0x14409e){const _0x3622e4=_0x22dc6c;return(0x0,n['toDisposable'])(this[_0x3622e4(0x167)][_0x3622e4(0x113)](e[_0x3622e4(0x116)])[_0x3622e4(0x143)](_0x1efb1a)['pipe']((0x0,i[_0x3622e4(0x149)])(_0x151333=>_0x151333[_0x3622e4(0x146)]))['subscribe'](_0x28078f=>_0x14409e(Array[_0x3622e4(0x126)](_0x28078f[_0x3622e4(0x145)]()))));}[_0x22dc6c(0x159)](_0x285e26){const _0x14f8ad=_0x22dc6c;var _0x48bdd7;let _0x1116d5=this['_resolveUnitId'](_0x285e26);if(!_0x1116d5)return e[_0x14f8ad(0x160)]['NOT_COLLAB'];let _0x3c38e0=this[_0x14f8ad(0x120)][_0x14f8ad(0x125)](_0x1116d5);return(_0x48bdd7=_0x3c38e0==null?void 0x0:_0x3c38e0['state'][_0x14f8ad(0x139)])==null?e[_0x14f8ad(0x160)][_0x14f8ad(0x15a)]:_0x48bdd7;}[_0x22dc6c(0x14f)](_0x3e19d6,_0x3f496f={}){const _0x4fbead=_0x22dc6c;var _0x42725a;let _0x5a8bad=this['_resolveUnitId'](_0x3e19d6);if(!_0x5a8bad)return Promise['reject'](Error(_0x4fbead(0x11f)));let _0xba7d03=this[_0x4fbead(0x120)]['getCollabEntity'](_0x5a8bad);if(!_0xba7d03)return Promise['reject'](Error(_0x4fbead(0x162)+_0x5a8bad+_0x4fbead(0x15e)));let _0x5f048a=_0xba7d03[_0x4fbead(0x156)][_0x4fbead(0x139)];if(_0x5f048a===e['CollaborationStatus'][_0x4fbead(0x154)])return Promise[_0x4fbead(0x114)]();let _0x16b83b=u(_0x5a8bad,_0x5f048a);if(_0x16b83b)return Promise[_0x4fbead(0x115)](_0x16b83b);let _0x320864=(_0x42725a=_0x3f496f[_0x4fbead(0x118)])==null?0x7530:_0x42725a;return new Promise((_0x50447f,_0x5a5dbd)=>{const _0x275dd6=_0x4fbead;let _0x34c6a5=!0x1,_0x2d088b=null,_0x7c7e63=setTimeout(()=>{const _0x1e58e7=_0x2db4;_0x34c6a5=!0x0,_0x2d088b==null||_0x2d088b['unsubscribe'](),_0x5a5dbd(Error(_0x1e58e7(0x128)+_0x5a8bad+'\x22\x20after\x20'+_0x320864+'ms.'));},_0x320864),_0x5c87a6=()=>{const _0x1e3589=_0x2db4;_0x34c6a5=!0x0,clearTimeout(_0x7c7e63),_0x2d088b==null||_0x2d088b[_0x1e3589(0x153)]();};_0x2d088b=_0xba7d03[_0x275dd6(0x144)][_0x275dd6(0x134)](_0x67ffa4=>{const _0x5a02d9=_0x275dd6;if(_0x34c6a5)return;if(_0x67ffa4===e[_0x5a02d9(0x160)][_0x5a02d9(0x154)]){_0x5c87a6(),_0x50447f();return;}let _0x253855=u(_0x5a8bad,_0x67ffa4);_0x253855&&(_0x5c87a6(),_0x5a5dbd(_0x253855));});});}[_0x22dc6c(0x150)](_0x451e4d){const _0xe526eb=_0x22dc6c;var _0x454001;return _0x451e4d||((_0x454001=this[_0xe526eb(0x13b)]['getFocusedUnit']())==null?void 0x0:_0x454001['getUnitId']());}};l=c([s(0x1,(0x0,n[_0x22dc6c(0x142)])(n[_0x22dc6c(0x12a)])),s(0x2,n['IUniverInstanceService']),s(0x3,(0x0,n[_0x22dc6c(0x142)])(r[_0x22dc6c(0x141)])),s(0x4,(0x0,n['Inject'])(e['CollaborationController']))],l);function u(_0x316cae,_0x22430c){const _0x1135a4=_0x22dc6c;return _0x22430c===e[_0x1135a4(0x160)][_0x1135a4(0x136)]||_0x22430c===e[_0x1135a4(0x160)]['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x316cae+_0x1135a4(0x147)+_0x22430c+'.'):null;}var d=class extends t[_0x22dc6c(0x13f)]{[_0x22dc6c(0x138)](_0x1aa9cd){const _0xbdc720=_0x22dc6c;let _0x11f294=_0x1aa9cd['get'](e['CollaborationController']);this['disposeWithMe'](this[_0xbdc720(0x12e)](this[_0xbdc720(0x161)][_0xbdc720(0x152)],()=>{const _0x40e726=_0xbdc720;let _0xa0f2b=new n['DisposableCollection'](),_0x46b966=_0x11f294['entityInit$']['subscribe'](_0x126c15=>{const _0x5d50a2=_0x2db4;let _0xf0f2bd=_0x126c15['status$'][_0x5d50a2(0x134)](_0x2c52e8=>{const _0x403e5e=_0x5d50a2;let _0x4b5c24={'unitId':_0x126c15['unitID'],'status':_0x2c52e8};this[_0x403e5e(0x12b)](this[_0x403e5e(0x161)][_0x403e5e(0x152)],_0x4b5c24);});_0xa0f2b[_0x5d50a2(0x137)]((0x0,n[_0x5d50a2(0x123)])(_0xf0f2bd));});return _0xa0f2b[_0x40e726(0x137)]((0x0,n[_0x40e726(0x123)])(_0x46b966)),_0xa0f2b;}));}[_0x22dc6c(0x14a)](){const _0x228264=_0x22dc6c;return this[_0x228264(0x167)][_0x228264(0x11a)](l,{'getWorkbook':_0x509e02=>this[_0x228264(0x13c)](_0x509e02),'getDocument':_0x3d75fa=>this['getDocument'](_0x3d75fa),'getPresentation':_0x4b2a69=>this[_0x228264(0x14c)](_0x4b2a69),'getBase':_0x4d8a85=>this[_0x228264(0x14b)](_0x4d8a85),'getBoard':_0x171711=>this[_0x228264(0x129)](_0x171711)});}[_0x22dc6c(0x124)](_0x2c23a1,_0x437d48,_0x1e1000){const _0x38ec88=_0x22dc6c;return this[_0x38ec88(0x167)]['get'](e['DataLoaderService'])[_0x38ec88(0x11e)](_0x2c23a1,_0x437d48,_0x1e1000);}[_0x22dc6c(0x117)](_0x43b121,_0xcd47a,_0x4824e2){const _0x110d8a=_0x22dc6c;return this['_injector']['get'](e['DataLoaderService'])[_0x110d8a(0x163)](_0x43b121,_0xcd47a,_0x4824e2);}};function _0x2db4(_0x3a170a,_0x3eb85a){_0x3a170a=_0x3a170a-0x113;const _0x30382b=_0x3038();let _0x2db429=_0x30382b[_0x3a170a];return _0x2db429;}function _0x3038(){const _0x30d440=['registerEventHandler','loadDocAsync','loadSlide','FEnum','function','146OQPkRM','subscribe','getDocument','CONFLICT','add','_initialize','status','4nyDmYX','_univerInstanceService','getWorkbook','12794Mygora','867216tklkDc','FUniver','2621829EUIBLt','SnapshotService','Inject','waitForRoom$','status$','values','members$','\x22\x20while\x20collaboration\x20status\x20is\x20','_handler','switchMap','getCollaboration','getBase','getPresentation','toStringTag','loadSheetAsync','flush','_resolveUnitId','35DdPQCo','CollaborationStatusChanged','unsubscribe','SYNCED','FEventName','state','116611KujoYc','loadBase','getCollaborationStatus','NOT_COLLAB','getOwnPropertyDescriptor','2140tKOFZF','loadSlideAsync','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','length','CollaborationStatus','Event','[FCollaboration]:\x20Unit\x20\x22','loadUnitOfRevision','decorate','extend','_snapshotService','_injector','loadBoard','get','resolve','reject','MemberService','loadServerUnitOfRevision','timeout','loadBaseAsync','createInstance','255624GPrHJy','defineProperty','179995hTezjG','loadUnit','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','_collaborationController','loadDoc','FBase','toDisposable','loadServerUnit','getCollabEntity','from','readyForCollab','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','getBoard','Injector','fireEvent','11145339DwGWwd','loadSheet'];_0x3038=function(){return _0x30d440;};return _0x3038();}t[_0x22dc6c(0x13f)][_0x22dc6c(0x165)](d),Object[_0x22dc6c(0x11c)](exports,'FCollaboration',{'enumerable':!0x0,'get':function(){return l;}});
1
+ const _0x2c4c6e=_0xd71c;function _0xd71c(_0x59e055,_0x50e0d8){_0x59e055=_0x59e055-0x73;const _0x1f90f5=_0x1f90();let _0xd71caf=_0x1f90f5[_0x59e055];return _0xd71caf;}(function(_0x345b5,_0x5e052b){const _0x3e383d=_0xd71c,_0x4e5c20=_0x345b5();while(!![]){try{const _0x3c13bc=-parseInt(_0x3e383d(0xbd))/0x1+parseInt(_0x3e383d(0x7a))/0x2+parseInt(_0x3e383d(0x97))/0x3+-parseInt(_0x3e383d(0xc4))/0x4+parseInt(_0x3e383d(0x8d))/0x5+-parseInt(_0x3e383d(0x9d))/0x6+-parseInt(_0x3e383d(0x96))/0x7;if(_0x3c13bc===_0x5e052b)break;else _0x4e5c20['push'](_0x4e5c20['shift']());}catch(_0x448f18){_0x4e5c20['push'](_0x4e5c20['shift']());}}}(_0x1f90,0x270f7),Object[_0x2c4c6e(0xa7)](exports,Symbol[_0x2c4c6e(0x9f)],{'value':_0x2c4c6e(0x7f)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t[_0x2c4c6e(0xa2)]{get['CollaborationStatus'](){const _0x28c5b9=_0x2c4c6e;return e[_0x28c5b9(0xc5)];}};t[_0x2c4c6e(0xa2)][_0x2c4c6e(0x86)](a);var o=class extends t['FEventName']{get[_0x2c4c6e(0xad)](){const _0x5bb509=_0x2c4c6e;return _0x5bb509(0xad);}};t[_0x2c4c6e(0x91)][_0x2c4c6e(0x86)](o);function _0x1f90(){const _0x2f1da8=['getPresentation','Injector','waitForRoom$','extend','fireEvent','FBase','decorate','SnapshotService','subscribeCollaborators','NOT_COLLAB','1315975xFdMtB','ms.','_univerInstanceService','state','FEventName','_injector','registerEventHandler','CollaborationController','getWorkbook','822332tAaEfo','482127lZoRsa','timeout','loadSheet','getFocusedUnit','toDisposable','createInstance','912894Dgsdpv','disposeWithMe','toStringTag','getCollaborationStatus','status$','FEnum','switchMap','SYNCED','add','loadUnitOfRevision','defineProperty','getCollabEntity','_collaborationController','loadServerUnit','getBase','subscribe','CollaborationStatusChanged','unsubscribe','function','getOwnPropertyDescriptor','loadServerUnitOfRevision','reject','loadUnit','\x22\x20while\x20collaboration\x20status\x20is\x20','FCollaboration','object','status','values','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','members$','loadSlide','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','131168GBJtqk','_resolveUnitId','flush','_handler','from','getDocument','FUniver','200448smpPVC','CollaborationStatus','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','readyForCollab','Event','entityInit$','DataLoaderService','get','getBoard','DisposableCollection','loadDocAsync','IUniverInstanceService','373984bnlWWc','Inject','_snapshotService','getUnitId','_initialize','Module','MemberService','loadSheetAsync','[FCollaboration]:\x20Unit\x20\x22'];_0x1f90=function(){return _0x2f1da8;};return _0x1f90();}function s(_0x1bac03,_0x198108){return function(_0x295d69,_0x57cb69){_0x198108(_0x295d69,_0x57cb69,_0x1bac03);};}function c(_0x211812,_0x4587ef,_0x120603,_0x1605c3){const _0x123cfa=_0x2c4c6e;var _0x2fdda=arguments['length'],_0x5ed79d=_0x2fdda<0x3?_0x4587ef:_0x1605c3===null?_0x1605c3=Object[_0x123cfa(0xb0)](_0x4587ef,_0x120603):_0x1605c3,_0x204a6e;if(typeof Reflect==_0x123cfa(0xb6)&&typeof Reflect[_0x123cfa(0x89)]==_0x123cfa(0xaf))_0x5ed79d=Reflect[_0x123cfa(0x89)](_0x211812,_0x4587ef,_0x120603,_0x1605c3);else{for(var _0x2eedb8=_0x211812['length']-0x1;_0x2eedb8>=0x0;_0x2eedb8--)(_0x204a6e=_0x211812[_0x2eedb8])&&(_0x5ed79d=(_0x2fdda<0x3?_0x204a6e(_0x5ed79d):_0x2fdda>0x3?_0x204a6e(_0x4587ef,_0x120603,_0x5ed79d):_0x204a6e(_0x4587ef,_0x120603))||_0x5ed79d);}return _0x2fdda>0x3&&_0x5ed79d&&Object[_0x123cfa(0xa7)](_0x4587ef,_0x120603,_0x5ed79d),_0x5ed79d;}let l=class extends t[_0x2c4c6e(0x88)]{constructor(_0x19c294,_0x4333a1,_0x2b3c2f,_0x14b246,_0x2e6a84){const _0x15164e=_0x2c4c6e;super(),this[_0x15164e(0xc0)]=_0x19c294,this[_0x15164e(0x92)]=_0x4333a1,this[_0x15164e(0x8f)]=_0x2b3c2f,this[_0x15164e(0x7c)]=_0x14b246,this[_0x15164e(0xa9)]=_0x2e6a84;}async[_0x2c4c6e(0x81)](_0x4f2648,_0x2f7c9c){const _0x3ed9c7=_0x2c4c6e;return await this[_0x3ed9c7(0x7c)][_0x3ed9c7(0x99)](_0x4f2648,0x0,_0x2f7c9c)?(await this['_collaborationController']['readyForCollab'](_0x4f2648),this[_0x3ed9c7(0xc0)]['getWorkbook'](_0x4f2648)):null;}async[_0x2c4c6e(0x78)](_0x18ec3f,_0x2e756d){const _0x5c0ba7=_0x2c4c6e;return await this['_snapshotService']['loadDoc'](_0x18ec3f,0x0,_0x2e756d)?(await this[_0x5c0ba7(0xa9)][_0x5c0ba7(0xc7)](_0x18ec3f),this[_0x5c0ba7(0xc0)][_0x5c0ba7(0xc2)](_0x18ec3f)):null;}async['loadBaseAsync'](_0x244313,_0x42b8d2){const _0x13527e=_0x2c4c6e;return await this[_0x13527e(0x7c)]['loadBase'](_0x244313,0x0,_0x42b8d2)?(await this[_0x13527e(0xa9)][_0x13527e(0xc7)](_0x244313),this[_0x13527e(0xc0)][_0x13527e(0xab)](_0x244313)):null;}async['loadSlideAsync'](_0x30eab5,_0x3d6630){const _0x55acd9=_0x2c4c6e;return await this[_0x55acd9(0x7c)][_0x55acd9(0xbb)](_0x30eab5,0x0,_0x3d6630)?(await this[_0x55acd9(0xa9)][_0x55acd9(0xc7)](_0x30eab5),this['_handler'][_0x55acd9(0x83)](_0x30eab5)):null;}async['loadBoardAsync'](_0xdcd048,_0x9ce8a0){const _0x27e5f1=_0x2c4c6e;return await this[_0x27e5f1(0x7c)]['loadBoard'](_0xdcd048,0x0,_0x9ce8a0)?(await this[_0x27e5f1(0xa9)][_0x27e5f1(0xc7)](_0xdcd048),this[_0x27e5f1(0xc0)]['getBoard'](_0xdcd048)):null;}[_0x2c4c6e(0x8b)](_0x318ce2,_0x366fca){const _0x372afd=_0x2c4c6e;return(0x0,n[_0x372afd(0x9b)])(this['_injector'][_0x372afd(0x75)](e[_0x372afd(0x80)])[_0x372afd(0x85)](_0x318ce2)['pipe']((0x0,i[_0x372afd(0xa3)])(_0x42f94b=>_0x42f94b[_0x372afd(0xba)]))[_0x372afd(0xac)](_0x9f7d9f=>_0x366fca(Array[_0x372afd(0xc1)](_0x9f7d9f[_0x372afd(0xb8)]()))));}[_0x2c4c6e(0xa0)](_0x34cff0){const _0x4201fb=_0x2c4c6e;var _0x596ebe;let _0x17a6ee=this[_0x4201fb(0xbe)](_0x34cff0);if(!_0x17a6ee)return e[_0x4201fb(0xc5)][_0x4201fb(0x8c)];let _0x16d2d5=this[_0x4201fb(0xa9)][_0x4201fb(0xa8)](_0x17a6ee);return(_0x596ebe=_0x16d2d5==null?void 0x0:_0x16d2d5[_0x4201fb(0x90)][_0x4201fb(0xb7)])==null?e[_0x4201fb(0xc5)][_0x4201fb(0x8c)]:_0x596ebe;}[_0x2c4c6e(0xbf)](_0x4deae1,_0xdb1268={}){const _0x153c4c=_0x2c4c6e;var _0x25932f;let _0x4b91df=this['_resolveUnitId'](_0x4deae1);if(!_0x4b91df)return Promise[_0x153c4c(0xb2)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x5932a6=this[_0x153c4c(0xa9)][_0x153c4c(0xa8)](_0x4b91df);if(!_0x5932a6)return Promise[_0x153c4c(0xb2)](Error(_0x153c4c(0x82)+_0x4b91df+_0x153c4c(0xc6)));let _0x183c4e=_0x5932a6[_0x153c4c(0x90)][_0x153c4c(0xb7)];if(_0x183c4e===e[_0x153c4c(0xc5)][_0x153c4c(0xa4)])return Promise['resolve']();let _0x3e51a4=u(_0x4b91df,_0x183c4e);if(_0x3e51a4)return Promise['reject'](_0x3e51a4);let _0x554d72=(_0x25932f=_0xdb1268[_0x153c4c(0x98)])==null?0x7530:_0x25932f;return new Promise((_0x2b3a51,_0x5cb832)=>{const _0x1bb1c3=_0x153c4c;let _0x462eca=!0x1,_0x163b65=null,_0x58160f=setTimeout(()=>{const _0x13b921=_0xd71c;_0x462eca=!0x0,_0x163b65==null||_0x163b65[_0x13b921(0xae)](),_0x5cb832(Error(_0x13b921(0xb9)+_0x4b91df+'\x22\x20after\x20'+_0x554d72+_0x13b921(0x8e)));},_0x554d72),_0x35571d=()=>{const _0x140aaa=_0xd71c;_0x462eca=!0x0,clearTimeout(_0x58160f),_0x163b65==null||_0x163b65[_0x140aaa(0xae)]();};_0x163b65=_0x5932a6[_0x1bb1c3(0xa1)]['subscribe'](_0x216b40=>{const _0x3b71b0=_0x1bb1c3;if(_0x462eca)return;if(_0x216b40===e[_0x3b71b0(0xc5)][_0x3b71b0(0xa4)]){_0x35571d(),_0x2b3a51();return;}let _0x2ade15=u(_0x4b91df,_0x216b40);_0x2ade15&&(_0x35571d(),_0x5cb832(_0x2ade15));});});}[_0x2c4c6e(0xbe)](_0x256802){const _0x5acc84=_0x2c4c6e;var _0x49ef30;return _0x256802||((_0x49ef30=this['_univerInstanceService'][_0x5acc84(0x9a)]())==null?void 0x0:_0x49ef30[_0x5acc84(0x7d)]());}};l=c([s(0x1,(0x0,n[_0x2c4c6e(0x7b)])(n[_0x2c4c6e(0x84)])),s(0x2,n[_0x2c4c6e(0x79)]),s(0x3,(0x0,n[_0x2c4c6e(0x7b)])(r[_0x2c4c6e(0x8a)])),s(0x4,(0x0,n[_0x2c4c6e(0x7b)])(e[_0x2c4c6e(0x94)]))],l);function u(_0x143bc9,_0x160368){const _0x7ce04e=_0x2c4c6e;return _0x160368===e['CollaborationStatus']['CONFLICT']||_0x160368===e[_0x7ce04e(0xc5)]['NOT_COLLAB']?Error(_0x7ce04e(0xbc)+_0x143bc9+_0x7ce04e(0xb4)+_0x160368+'.'):null;}var d=class extends t['FUniver']{[_0x2c4c6e(0x7e)](_0x506f4c){const _0x15ae17=_0x2c4c6e;let _0x4d56b4=_0x506f4c[_0x15ae17(0x75)](e[_0x15ae17(0x94)]);this[_0x15ae17(0x9e)](this[_0x15ae17(0x93)](this[_0x15ae17(0xc8)]['CollaborationStatusChanged'],()=>{const _0x5f1b96=_0x15ae17;let _0x1f19bd=new n[(_0x5f1b96(0x77))](),_0x475742=_0x4d56b4[_0x5f1b96(0x73)]['subscribe'](_0x4d0f58=>{const _0x6bb550=_0x5f1b96;let _0x3ccb1f=_0x4d0f58[_0x6bb550(0xa1)][_0x6bb550(0xac)](_0x46fe5d=>{const _0x33eef4=_0x6bb550;let _0x201565={'unitId':_0x4d0f58['unitID'],'status':_0x46fe5d};this[_0x33eef4(0x87)](this[_0x33eef4(0xc8)][_0x33eef4(0xad)],_0x201565);});_0x1f19bd[_0x6bb550(0xa5)]((0x0,n['toDisposable'])(_0x3ccb1f));});return _0x1f19bd[_0x5f1b96(0xa5)]((0x0,n[_0x5f1b96(0x9b)])(_0x475742)),_0x1f19bd;}));}['getCollaboration'](){const _0x15f727=_0x2c4c6e;return this[_0x15f727(0x92)][_0x15f727(0x9c)](l,{'getWorkbook':_0x2b1772=>this[_0x15f727(0x95)](_0x2b1772),'getDocument':_0x4af5dc=>this[_0x15f727(0xc2)](_0x4af5dc),'getPresentation':_0x29d497=>this['getPresentation'](_0x29d497),'getBase':_0x18a864=>this[_0x15f727(0xab)](_0x18a864),'getBoard':_0x1e1317=>this[_0x15f727(0x76)](_0x1e1317)});}[_0x2c4c6e(0xaa)](_0x41fff8,_0x511aac,_0x3737f4){const _0x330844=_0x2c4c6e;return this[_0x330844(0x92)][_0x330844(0x75)](e[_0x330844(0x74)])[_0x330844(0xb3)](_0x41fff8,_0x511aac,_0x3737f4);}[_0x2c4c6e(0xb1)](_0x59d4a5,_0x5e305e,_0x3fdd43){const _0x390e05=_0x2c4c6e;return this[_0x390e05(0x92)]['get'](e[_0x390e05(0x74)])[_0x390e05(0xa6)](_0x59d4a5,_0x5e305e,_0x3fdd43);}};t[_0x2c4c6e(0xc3)]['extend'](d),Object[_0x2c4c6e(0xa7)](exports,_0x2c4c6e(0xb5),{'enumerable':!0x0,'get':function(){return l;}});