@univerjs-pro/collaboration-client 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +16 -16
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x2f007a=_0x43a2;function _0x57cb(){const _0x2419c5=['[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadBoard','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','values','status$','extend','CONFLICT','waitForRoom$','_resolveUnitId','reject','loadPdfAsync','length','decorate','SYNCED','subscribeCollaborators','loadBoardAsync','554055SVohns','pipe','loadUnitOfRevision','unitID','NOT_COLLAB','fireEvent','entityInit$','object','resolve','get','createInstance','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Event','state','114587dLMBvp','getDocument','getCollaborationStatus','141921wzTWrW','getBase','unsubscribe','_snapshotService','getOwnPropertyDescriptor','getWorkbook','subscribe','members$','function','_univerInstanceService','loadDocAsync','loadSheet','readyForCollab','loadSheetAsync','flush','_collaborationController','1505UKQxkw','CollaborationStatusChanged','loadSlideAsync','add','_handler','CollaborationStatus','936IgAJom','getPdf','getFocusedUnit','ms.','getPresentation','loadDoc','loadPdf','status','defineProperty','loadUnit','442476YbUeLI','120544PeFbkt','_injector','loadSlide','loadServerUnit','16304yNqSED'];_0x57cb=function(){return _0x2419c5;};return _0x57cb();}(function(_0xbb49f2,_0x24b7dc){const _0x3a3fda=_0x43a2,_0x4c5df8=_0xbb49f2();while(!![]){try{const _0x373b99=-parseInt(_0x3a3fda(0xb5))/0x1+parseInt(_0x3a3fda(0x96))/0x2+-parseInt(_0x3a3fda(0xb8))/0x3+parseInt(_0x3a3fda(0x91))/0x4+parseInt(_0x3a3fda(0xa7))/0x5+parseInt(_0x3a3fda(0x87))/0x6*(parseInt(_0x3a3fda(0x81))/0x7)+parseInt(_0x3a3fda(0x92))/0x8;if(_0x373b99===_0x24b7dc)break;else _0x4c5df8['push'](_0x4c5df8['shift']());}catch(_0xb7d928){_0x4c5df8['push'](_0x4c5df8['shift']());}}}(_0x57cb,0x1c648));import{CollaborationController as _0x31e156,CollaborationStatus as _0x7de9db,DataLoaderService as _0x2975e8,MemberService as _0x1d9f21}from'@univerjs-pro/collaboration-client';import{FBase as _0x4ce142,FEnum as _0x245e79,FEventName as _0x584ad6,FUniver as _0x42d5d6}from'@univerjs/core/facade';import{DisposableCollection as _0x455eb1,IUniverInstanceService as _0x39a890,Inject as _0x2be3f7,Injector as _0x5363ad,toDisposable as _0x103e1b}from'@univerjs/core';import{SnapshotService as _0x56072d}from'@univerjs-pro/collaboration';import{switchMap as _0x438025}from'rxjs';var h=class extends _0x245e79{get[_0x2f007a(0x86)](){return _0x7de9db;}};_0x245e79['extend'](h);var g=class extends _0x584ad6{get['CollaborationStatusChanged'](){const _0x229433=_0x2f007a;return _0x229433(0x82);}};_0x584ad6[_0x2f007a(0x9c)](g);function _(_0x34a4be,_0x437587){return function(_0x4d8413,_0x2dc153){_0x437587(_0x4d8413,_0x2dc153,_0x34a4be);};}function v(_0x7f67c5,_0x35984c,_0x4e099f,_0x3269c7){const _0x5b50b4=_0x2f007a;var _0x36a8f1=arguments[_0x5b50b4(0xa2)],_0x3410bd=_0x36a8f1<0x3?_0x35984c:_0x3269c7===null?_0x3269c7=Object[_0x5b50b4(0xbc)](_0x35984c,_0x4e099f):_0x3269c7,_0x576525;if(typeof Reflect==_0x5b50b4(0xae)&&typeof Reflect[_0x5b50b4(0xa3)]==_0x5b50b4(0x79))_0x3410bd=Reflect['decorate'](_0x7f67c5,_0x35984c,_0x4e099f,_0x3269c7);else{for(var _0x4ae292=_0x7f67c5[_0x5b50b4(0xa2)]-0x1;_0x4ae292>=0x0;_0x4ae292--)(_0x576525=_0x7f67c5[_0x4ae292])&&(_0x3410bd=(_0x36a8f1<0x3?_0x576525(_0x3410bd):_0x36a8f1>0x3?_0x576525(_0x35984c,_0x4e099f,_0x3410bd):_0x576525(_0x35984c,_0x4e099f))||_0x3410bd);}return _0x36a8f1>0x3&&_0x3410bd&&Object[_0x5b50b4(0x8f)](_0x35984c,_0x4e099f,_0x3410bd),_0x3410bd;}let y=class extends _0x4ce142{constructor(_0x21e298,_0x5c66f9,_0x2e0e48,_0x19877d,_0x4512f7){const _0x1945cb=_0x2f007a;super(),this[_0x1945cb(0x85)]=_0x21e298,this['_injector']=_0x5c66f9,this['_univerInstanceService']=_0x2e0e48,this['_snapshotService']=_0x19877d,this[_0x1945cb(0x80)]=_0x4512f7;}async[_0x2f007a(0x7e)](_0xaf7b73,_0x2ac168){const _0xe8321b=_0x2f007a;return await this[_0xe8321b(0xbb)][_0xe8321b(0x7c)](_0xaf7b73,0x0,_0x2ac168)?(await this[_0xe8321b(0x80)][_0xe8321b(0x7d)](_0xaf7b73),this[_0xe8321b(0x85)]['getWorkbook'](_0xaf7b73)):null;}async[_0x2f007a(0x7b)](_0x14a5f1,_0x46789f){const _0x32f9a3=_0x2f007a;return await this['_snapshotService'][_0x32f9a3(0x8c)](_0x14a5f1,0x0,_0x46789f)?(await this[_0x32f9a3(0x80)][_0x32f9a3(0x7d)](_0x14a5f1),this[_0x32f9a3(0x85)][_0x32f9a3(0xb6)](_0x14a5f1)):null;}async['loadBaseAsync'](_0x2999ed,_0x5bef27){const _0x164f28=_0x2f007a;return await this[_0x164f28(0xbb)]['loadBase'](_0x2999ed,0x0,_0x5bef27)?(await this[_0x164f28(0x80)][_0x164f28(0x7d)](_0x2999ed),this[_0x164f28(0x85)][_0x164f28(0xb9)](_0x2999ed)):null;}async[_0x2f007a(0x83)](_0x45ed8e,_0x1fc99d){const _0x227d4c=_0x2f007a;return await this[_0x227d4c(0xbb)][_0x227d4c(0x94)](_0x45ed8e,0x0,_0x1fc99d)?(await this[_0x227d4c(0x80)][_0x227d4c(0x7d)](_0x45ed8e),this[_0x227d4c(0x85)][_0x227d4c(0x8b)](_0x45ed8e)):null;}async[_0x2f007a(0xa6)](_0x451306,_0x45a319){const _0x1edf99=_0x2f007a;return await this[_0x1edf99(0xbb)][_0x1edf99(0x98)](_0x451306,0x0,_0x45a319)?(await this['_collaborationController'][_0x1edf99(0x7d)](_0x451306),this[_0x1edf99(0x85)]['getBoard'](_0x451306)):null;}async[_0x2f007a(0xa1)](_0x1e2fce,_0x1f82dd){const _0x319881=_0x2f007a;return await this[_0x319881(0xbb)][_0x319881(0x8d)](_0x1e2fce,0x0,_0x1f82dd)?(await this[_0x319881(0x80)][_0x319881(0x7d)](_0x1e2fce),this[_0x319881(0x85)][_0x319881(0x88)](_0x1e2fce)):null;}[_0x2f007a(0xa5)](_0x3ccbde,_0x3bf93a){const _0x2b2fb7=_0x2f007a;return _0x103e1b(this['_injector']['get'](_0x1d9f21)[_0x2b2fb7(0x9e)](_0x3ccbde)[_0x2b2fb7(0xa8)](_0x438025(_0x12ff07=>_0x12ff07[_0x2b2fb7(0x78)]))[_0x2b2fb7(0x77)](_0x5c0f53=>_0x3bf93a(Array['from'](_0x5c0f53[_0x2b2fb7(0x9a)]()))));}[_0x2f007a(0xb7)](_0x1bb3e0){const _0x574d45=_0x2f007a;let _0x2e8d0d=this[_0x574d45(0x9f)](_0x1bb3e0);if(!_0x2e8d0d)return _0x7de9db[_0x574d45(0xab)];let _0x44c3fe=this[_0x574d45(0x80)]['getCollabEntity'](_0x2e8d0d);return(_0x44c3fe==null?void 0x0:_0x44c3fe[_0x574d45(0xb4)][_0x574d45(0x8e)])??_0x7de9db[_0x574d45(0xab)];}[_0x2f007a(0x7f)](_0x39098d,_0x65954e={}){const _0x43caaa=_0x2f007a;let _0x55dc75=this[_0x43caaa(0x9f)](_0x39098d);if(!_0x55dc75)return Promise[_0x43caaa(0xa0)](Error(_0x43caaa(0x99)));let _0x4046c9=this[_0x43caaa(0x80)]['getCollabEntity'](_0x55dc75);if(!_0x4046c9)return Promise[_0x43caaa(0xa0)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x55dc75+_0x43caaa(0xb2)));let _0x3f223f=_0x4046c9[_0x43caaa(0xb4)]['status'];if(_0x3f223f===_0x7de9db[_0x43caaa(0xa4)])return Promise[_0x43caaa(0xaf)]();let _0x77c245=b(_0x55dc75,_0x3f223f);if(_0x77c245)return Promise[_0x43caaa(0xa0)](_0x77c245);let _0x4f6b33=_0x65954e['timeout']??0x7530;return new Promise((_0x348c42,_0x116bac)=>{const _0x27b77c=_0x43caaa;let _0x38fd70=!0x1,_0x5c7d30=null,_0x3389b1=setTimeout(()=>{const _0x228b4b=_0x43a2;_0x38fd70=!0x0,_0x5c7d30==null||_0x5c7d30['unsubscribe'](),_0x116bac(Error(_0x228b4b(0x97)+_0x55dc75+'\x22\x20after\x20'+_0x4f6b33+_0x228b4b(0x8a)));},_0x4f6b33),_0x5a7c37=()=>{const _0x100082=_0x43a2;_0x38fd70=!0x0,clearTimeout(_0x3389b1),_0x5c7d30==null||_0x5c7d30[_0x100082(0xba)]();};_0x5c7d30=_0x4046c9[_0x27b77c(0x9b)]['subscribe'](_0x115474=>{if(_0x38fd70)return;if(_0x115474===_0x7de9db['SYNCED']){_0x5a7c37(),_0x348c42();return;}let _0x1705ac=b(_0x55dc75,_0x115474);_0x1705ac&&(_0x5a7c37(),_0x116bac(_0x1705ac));});});}[_0x2f007a(0x9f)](_0x2da627){const _0x57eebb=_0x2f007a;var _0x344fb3;return _0x2da627||((_0x344fb3=this[_0x57eebb(0x7a)][_0x57eebb(0x89)]())==null?void 0x0:_0x344fb3['getUnitId']());}};y=v([_(0x1,_0x2be3f7(_0x5363ad)),_(0x2,_0x39a890),_(0x3,_0x2be3f7(_0x56072d)),_(0x4,_0x2be3f7(_0x31e156))],y);function b(_0x5a4df5,_0x14e4db){const _0x55c0ab=_0x2f007a;return _0x14e4db===_0x7de9db[_0x55c0ab(0x9d)]||_0x14e4db===_0x7de9db['NOT_COLLAB']?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x5a4df5+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x14e4db+'.'):null;}var x=class extends _0x42d5d6{['_initialize'](_0x59201d){const _0x1368f1=_0x2f007a;let _0x52daa7=_0x59201d['get'](_0x31e156);this['disposeWithMe'](this['registerEventHandler'](this[_0x1368f1(0xb3)][_0x1368f1(0x82)],()=>{const _0x3f2387=_0x1368f1;let _0x3b21c6=new _0x455eb1(),_0x452b66=_0x52daa7[_0x3f2387(0xad)]['subscribe'](_0x1a8851=>{const _0x48948a=_0x3f2387;let _0x207ea1=_0x1a8851['status$'][_0x48948a(0x77)](_0x27c4e1=>{const _0x22e1c2=_0x48948a;let _0x38b6cf={'unitId':_0x1a8851[_0x22e1c2(0xaa)],'status':_0x27c4e1};this[_0x22e1c2(0xac)](this['Event']['CollaborationStatusChanged'],_0x38b6cf);});_0x3b21c6[_0x48948a(0x84)](_0x103e1b(_0x207ea1));});return _0x3b21c6[_0x3f2387(0x84)](_0x103e1b(_0x452b66)),_0x3b21c6;}));}['getCollaboration'](){const _0x4960d0=_0x2f007a;return this[_0x4960d0(0x93)][_0x4960d0(0xb1)](y,{'getWorkbook':_0x4dba61=>this[_0x4960d0(0xbd)](_0x4dba61),'getDocument':_0x2e8376=>this[_0x4960d0(0xb6)](_0x2e8376),'getPresentation':_0x1f9e3a=>this[_0x4960d0(0x8b)](_0x1f9e3a),'getBase':_0x157e68=>this[_0x4960d0(0xb9)](_0x157e68),'getBoard':_0x5049e4=>this['getBoard'](_0x5049e4),'getPdf':_0x59a79e=>this[_0x4960d0(0x88)](_0x59a79e)});}[_0x2f007a(0x95)](_0x372db4,_0xe57b53,_0x4983ed){const _0x5c48a0=_0x2f007a;return this[_0x5c48a0(0x93)][_0x5c48a0(0xb0)](_0x2975e8)[_0x5c48a0(0x90)](_0x372db4,_0xe57b53,_0x4983ed);}['loadServerUnitOfRevision'](_0x3cadff,_0x419c2d,_0x576c4f){const _0x24b762=_0x2f007a;return this[_0x24b762(0x93)][_0x24b762(0xb0)](_0x2975e8)[_0x24b762(0xa9)](_0x3cadff,_0x419c2d,_0x576c4f);}};_0x42d5d6[_0x2f007a(0x9c)](x);function _0x43a2(_0x5e8cfc,_0x5d0fd0){_0x5e8cfc=_0x5e8cfc-0x77;const _0x57cb4a=_0x57cb();let _0x43a21d=_0x57cb4a[_0x5e8cfc];return _0x43a21d;}export{y as FCollaboration};
1
+ const _0xe42515=_0x182e;function _0x182e(_0x31394a,_0x3dfbf3){_0x31394a=_0x31394a-0x165;const _0xa46442=_0xa464();let _0x182ece=_0xa46442[_0x31394a];return _0x182ece;}(function(_0x34e379,_0x5e0108){const _0x145a38=_0x182e,_0x310258=_0x34e379();while(!![]){try{const _0x5c7cbd=-parseInt(_0x145a38(0x19a))/0x1+-parseInt(_0x145a38(0x187))/0x2+-parseInt(_0x145a38(0x16f))/0x3*(parseInt(_0x145a38(0x18b))/0x4)+parseInt(_0x145a38(0x18a))/0x5+-parseInt(_0x145a38(0x188))/0x6+-parseInt(_0x145a38(0x166))/0x7*(parseInt(_0x145a38(0x16a))/0x8)+-parseInt(_0x145a38(0x171))/0x9*(-parseInt(_0x145a38(0x17d))/0xa);if(_0x5c7cbd===_0x5e0108)break;else _0x310258['push'](_0x310258['shift']());}catch(_0x59c6b7){_0x310258['push'](_0x310258['shift']());}}}(_0xa464,0xdcfbd));import{CollaborationController as _0x46c8d6,CollaborationStatus as _0x35b6c3,DataLoaderService as _0x1d2475,MemberService as _0x560350}from'@univerjs-pro/collaboration-client';import{FBase as _0x254a03,FEnum as _0x49cf55,FEventName as _0x4ba359,FUniver as _0x6fa0ed}from'@univerjs/core/facade';import{DisposableCollection as _0x1a000d,IUniverInstanceService as _0x22c343,Inject as _0x23fc2c,Injector as _0x456951,toDisposable as _0x3a2692}from'@univerjs/core';import{SnapshotService as _0x4fdd53}from'@univerjs-pro/collaboration';import{switchMap as _0x140223}from'rxjs';var h=class extends _0x49cf55{get['CollaborationStatus'](){return _0x35b6c3;}};_0x49cf55[_0xe42515(0x167)](h);var g=class extends _0x4ba359{get['CollaborationStatusChanged'](){const _0x364510=_0xe42515;return _0x364510(0x186);}};_0x4ba359[_0xe42515(0x167)](g);function _(_0x5e161f,_0x128c1b){return function(_0x2f43eb,_0x4917ed){_0x128c1b(_0x2f43eb,_0x4917ed,_0x5e161f);};}function v(_0x2c35b5,_0x11845c,_0x2af50b,_0x5efa99){const _0x4b42ca=_0xe42515;var _0x487225=arguments[_0x4b42ca(0x178)],_0x128c7b=_0x487225<0x3?_0x11845c:_0x5efa99===null?_0x5efa99=Object[_0x4b42ca(0x16c)](_0x11845c,_0x2af50b):_0x5efa99,_0x42dee2;if(typeof Reflect==_0x4b42ca(0x17a)&&typeof Reflect['decorate']=='function')_0x128c7b=Reflect[_0x4b42ca(0x19f)](_0x2c35b5,_0x11845c,_0x2af50b,_0x5efa99);else{for(var _0x4688b5=_0x2c35b5[_0x4b42ca(0x178)]-0x1;_0x4688b5>=0x0;_0x4688b5--)(_0x42dee2=_0x2c35b5[_0x4688b5])&&(_0x128c7b=(_0x487225<0x3?_0x42dee2(_0x128c7b):_0x487225>0x3?_0x42dee2(_0x11845c,_0x2af50b,_0x128c7b):_0x42dee2(_0x11845c,_0x2af50b))||_0x128c7b);}return _0x487225>0x3&&_0x128c7b&&Object[_0x4b42ca(0x17e)](_0x11845c,_0x2af50b,_0x128c7b),_0x128c7b;}let y=class extends _0x254a03{constructor(_0x5bf740,_0x51839b,_0x425041,_0x3c800d,_0x5bbeec){const _0x3fb82f=_0xe42515;super(),this[_0x3fb82f(0x19d)]=_0x5bf740,this[_0x3fb82f(0x196)]=_0x51839b,this[_0x3fb82f(0x195)]=_0x425041,this[_0x3fb82f(0x168)]=_0x3c800d,this['_collaborationController']=_0x5bbeec;}async[_0xe42515(0x18d)](_0x80a708,_0x2514b7){const _0x289891=_0xe42515;return await this[_0x289891(0x168)][_0x289891(0x172)](_0x80a708,0x0,_0x2514b7)?(await this[_0x289891(0x199)]['readyForCollab'](_0x80a708),this[_0x289891(0x19d)][_0x289891(0x176)](_0x80a708)):null;}async['loadDocAsync'](_0x1e877d,_0x2cba3f){const _0x3368e9=_0xe42515;return await this[_0x3368e9(0x168)][_0x3368e9(0x181)](_0x1e877d,0x0,_0x2cba3f)?(await this[_0x3368e9(0x199)]['readyForCollab'](_0x1e877d),this[_0x3368e9(0x19d)][_0x3368e9(0x183)](_0x1e877d)):null;}async['loadBaseAsync'](_0x293e34,_0x478b6e){const _0x239996=_0xe42515;return await this['_snapshotService']['loadBase'](_0x293e34,0x0,_0x478b6e)?(await this[_0x239996(0x199)][_0x239996(0x16e)](_0x293e34),this['_handler']['getBase'](_0x293e34)):null;}async['loadSlideAsync'](_0x3599f6,_0x57d96f){const _0x3e50e1=_0xe42515;return await this[_0x3e50e1(0x168)]['loadSlide'](_0x3599f6,0x0,_0x57d96f)?(await this[_0x3e50e1(0x199)][_0x3e50e1(0x16e)](_0x3599f6),this[_0x3e50e1(0x19d)][_0x3e50e1(0x16b)](_0x3599f6)):null;}async[_0xe42515(0x184)](_0x5f2220,_0x432615){const _0x3ddab8=_0xe42515;return await this[_0x3ddab8(0x168)][_0x3ddab8(0x1a3)](_0x5f2220,0x0,_0x432615)?(await this[_0x3ddab8(0x199)][_0x3ddab8(0x16e)](_0x5f2220),this[_0x3ddab8(0x19d)][_0x3ddab8(0x19c)](_0x5f2220)):null;}async['loadPdfAsync'](_0x3eeae2,_0x2ef38c){const _0x373ce3=_0xe42515;return await this[_0x373ce3(0x168)]['loadPdf'](_0x3eeae2,0x0,_0x2ef38c)?(await this[_0x373ce3(0x199)][_0x373ce3(0x16e)](_0x3eeae2),this[_0x373ce3(0x19d)][_0x373ce3(0x19b)](_0x3eeae2)):null;}[_0xe42515(0x174)](_0x19c580,_0x4fbd24){const _0x2ddbc9=_0xe42515;return _0x3a2692(this['_injector'][_0x2ddbc9(0x189)](_0x560350)['waitForRoom$'](_0x19c580)[_0x2ddbc9(0x1a5)](_0x140223(_0x2e5aa9=>_0x2e5aa9[_0x2ddbc9(0x16d)]))[_0x2ddbc9(0x17f)](_0x5dec43=>_0x4fbd24(Array[_0x2ddbc9(0x19e)](_0x5dec43[_0x2ddbc9(0x169)]()))));}[_0xe42515(0x170)](_0x3c4070){const _0x1ab7f1=_0xe42515;let _0x414419=this[_0x1ab7f1(0x18c)](_0x3c4070);if(!_0x414419)return _0x35b6c3[_0x1ab7f1(0x192)];let _0x193f88=this[_0x1ab7f1(0x199)][_0x1ab7f1(0x1a4)](_0x414419);return(_0x193f88==null?void 0x0:_0x193f88['state']['status'])??_0x35b6c3[_0x1ab7f1(0x192)];}[_0xe42515(0x165)](_0x503118,_0x52ddca={}){const _0x1743f2=_0xe42515;let _0x41c3bc=this[_0x1743f2(0x18c)](_0x503118);if(!_0x41c3bc)return Promise['reject'](Error(_0x1743f2(0x1a2)));let _0xaa00d7=this[_0x1743f2(0x199)][_0x1743f2(0x1a4)](_0x41c3bc);if(!_0xaa00d7)return Promise[_0x1743f2(0x198)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x41c3bc+_0x1743f2(0x1a7)));let _0x231cbe=_0xaa00d7[_0x1743f2(0x179)]['status'];if(_0x231cbe===_0x35b6c3[_0x1743f2(0x193)])return Promise['resolve']();let _0x36db38=b(_0x41c3bc,_0x231cbe);if(_0x36db38)return Promise[_0x1743f2(0x198)](_0x36db38);let _0x452796=_0x52ddca[_0x1743f2(0x190)]??0x7530;return new Promise((_0x179304,_0x442d81)=>{const _0x2b0884=_0x1743f2;let _0x149d8b=!0x1,_0xa71309=null,_0x5def12=setTimeout(()=>{const _0x2ad6a4=_0x182e;_0x149d8b=!0x0,_0xa71309==null||_0xa71309[_0x2ad6a4(0x191)](),_0x442d81(Error(_0x2ad6a4(0x180)+_0x41c3bc+_0x2ad6a4(0x197)+_0x452796+_0x2ad6a4(0x185)));},_0x452796),_0xe8ba55=()=>{const _0x130590=_0x182e;_0x149d8b=!0x0,clearTimeout(_0x5def12),_0xa71309==null||_0xa71309[_0x130590(0x191)]();};_0xa71309=_0xaa00d7[_0x2b0884(0x1a9)][_0x2b0884(0x17f)](_0x3ed7c7=>{const _0x1d2d17=_0x2b0884;if(_0x149d8b)return;if(_0x3ed7c7===_0x35b6c3[_0x1d2d17(0x193)]){_0xe8ba55(),_0x179304();return;}let _0x1bc338=b(_0x41c3bc,_0x3ed7c7);_0x1bc338&&(_0xe8ba55(),_0x442d81(_0x1bc338));});});}[_0xe42515(0x18c)](_0x248ed3){const _0x331614=_0xe42515;var _0x45309d;return _0x248ed3||((_0x45309d=this['_univerInstanceService'][_0x331614(0x17b)]())==null?void 0x0:_0x45309d[_0x331614(0x173)]());}};function _0xa464(){const _0x1eea44=['[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','loadDoc','add','getDocument','loadBoardAsync','ms.','CollaborationStatusChanged','2638494QrnvGX','1480518WeKlEG','get','1245545BmPHLl','156QABlZi','_resolveUnitId','loadSheetAsync','CONFLICT','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','timeout','unsubscribe','NOT_COLLAB','SYNCED','loadServerUnit','_univerInstanceService','_injector','\x22\x20after\x20','reject','_collaborationController','1240105yoSYuL','getPdf','getBoard','_handler','from','decorate','loadServerUnitOfRevision','getBase','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','loadBoard','getCollabEntity','pipe','_initialize','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','disposeWithMe','status$','flush','21msKtYD','extend','_snapshotService','values','3664672PRqRyE','getPresentation','getOwnPropertyDescriptor','members$','readyForCollab','72363VKUVdi','getCollaborationStatus','9zmYVDc','loadSheet','getUnitId','subscribeCollaborators','getCollaboration','getWorkbook','registerEventHandler','length','state','object','getFocusedUnit','\x22\x20while\x20collaboration\x20status\x20is\x20','57771160LawrlU','defineProperty','subscribe'];_0xa464=function(){return _0x1eea44;};return _0xa464();}y=v([_(0x1,_0x23fc2c(_0x456951)),_(0x2,_0x22c343),_(0x3,_0x23fc2c(_0x4fdd53)),_(0x4,_0x23fc2c(_0x46c8d6))],y);function b(_0x589f82,_0xb1f647){const _0x2cb36c=_0xe42515;return _0xb1f647===_0x35b6c3[_0x2cb36c(0x18e)]||_0xb1f647===_0x35b6c3[_0x2cb36c(0x192)]?Error(_0x2cb36c(0x18f)+_0x589f82+_0x2cb36c(0x17c)+_0xb1f647+'.'):null;}var x=class extends _0x6fa0ed{[_0xe42515(0x1a6)](_0x214d17){const _0x43d337=_0xe42515;let _0x2d112d=_0x214d17[_0x43d337(0x189)](_0x46c8d6);this[_0x43d337(0x1a8)](this[_0x43d337(0x177)](this['Event'][_0x43d337(0x186)],()=>{const _0x3d97da=_0x43d337;let _0x49a7e=new _0x1a000d(),_0x352a14=_0x2d112d['entityInit$'][_0x3d97da(0x17f)](_0x13f0a8=>{const _0x40d3b8=_0x3d97da;let _0x1e0351=_0x13f0a8[_0x40d3b8(0x1a9)][_0x40d3b8(0x17f)](_0x1b959f=>{const _0x3007e0=_0x40d3b8;let _0x19b5d7={'unitId':_0x13f0a8['unitID'],'status':_0x1b959f};this['fireEvent'](this['Event'][_0x3007e0(0x186)],_0x19b5d7);});_0x49a7e[_0x40d3b8(0x182)](_0x3a2692(_0x1e0351));});return _0x49a7e[_0x3d97da(0x182)](_0x3a2692(_0x352a14)),_0x49a7e;}));}[_0xe42515(0x175)](){const _0x20d246=_0xe42515;return this[_0x20d246(0x196)]['createInstance'](y,{'getWorkbook':_0x835c14=>this[_0x20d246(0x176)](_0x835c14),'getDocument':_0x50c594=>this[_0x20d246(0x183)](_0x50c594),'getPresentation':_0x39de91=>this[_0x20d246(0x16b)](_0x39de91),'getBase':_0x7e46c8=>this[_0x20d246(0x1a1)](_0x7e46c8),'getBoard':_0x24300f=>this[_0x20d246(0x19c)](_0x24300f),'getPdf':_0x340fcc=>this[_0x20d246(0x19b)](_0x340fcc)});}[_0xe42515(0x194)](_0x3c3431,_0x1d8f10,_0x4597c7){const _0x15e467=_0xe42515;return this[_0x15e467(0x196)][_0x15e467(0x189)](_0x1d2475)['loadUnit'](_0x3c3431,_0x1d8f10,_0x4597c7);}[_0xe42515(0x1a0)](_0x81e883,_0x3b49b9,_0x4a92f2){const _0x4cb7c3=_0xe42515;return this[_0x4cb7c3(0x196)]['get'](_0x1d2475)['loadUnitOfRevision'](_0x81e883,_0x3b49b9,_0x4a92f2);}};_0x6fa0ed['extend'](x);export{y as FCollaboration};