@univerjs-pro/collaboration-client 1.0.0-alpha.6 → 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/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5c44(_0x57cc66,_0x1186f2){_0x57cc66=_0x57cc66-0x76;const _0x519d3f=_0x519d();let _0x5c4444=_0x519d3f[_0x57cc66];return _0x5c4444;}const _0x4935c3=_0x5c44;(function(_0x197175,_0x36ce50){const _0x5a9500=_0x5c44,_0x10eaf2=_0x197175();while(!![]){try{const _0x449e78=parseInt(_0x5a9500(0xce))/0x1*(-parseInt(_0x5a9500(0x90))/0x2)+-parseInt(_0x5a9500(0xcd))/0x3*(parseInt(_0x5a9500(0x8c))/0x4)+parseInt(_0x5a9500(0xb3))/0x5*(-parseInt(_0x5a9500(0x84))/0x6)+parseInt(_0x5a9500(0x81))/0x7*(-parseInt(_0x5a9500(0xb1))/0x8)+-parseInt(_0x5a9500(0xae))/0x9*(-parseInt(_0x5a9500(0x7f))/0xa)+parseInt(_0x5a9500(0xc1))/0xb*(-parseInt(_0x5a9500(0xc5))/0xc)+parseInt(_0x5a9500(0x98))/0xd;if(_0x449e78===_0x36ce50)break;else _0x10eaf2['push'](_0x10eaf2['shift']());}catch(_0x173e56){_0x10eaf2['push'](_0x10eaf2['shift']());}}}(_0x519d,0x3e798),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4935c3(0xb8)}));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[_0x4935c3(0x8b)]{get[_0x4935c3(0xa7)](){const _0x55dd6f=_0x4935c3;return e[_0x55dd6f(0xa7)];}};t[_0x4935c3(0x8b)][_0x4935c3(0xa5)](a);var o=class extends t[_0x4935c3(0xaf)]{get[_0x4935c3(0x92)](){return'CollaborationStatusChanged';}};t[_0x4935c3(0xaf)]['extend'](o);function s(_0x413354,_0x1a5ded){return function(_0x26831,_0x52938f){_0x1a5ded(_0x26831,_0x52938f,_0x413354);};}function c(_0x55bdd7,_0x5088bf,_0x10e996,_0x245560){const _0x336d09=_0x4935c3;var _0x4a7824=arguments[_0x336d09(0xac)],_0x6ff8e2=_0x4a7824<0x3?_0x5088bf:_0x245560===null?_0x245560=Object['getOwnPropertyDescriptor'](_0x5088bf,_0x10e996):_0x245560,_0x13d5ea;if(typeof Reflect==_0x336d09(0xcb)&&typeof Reflect[_0x336d09(0x78)]==_0x336d09(0x95))_0x6ff8e2=Reflect[_0x336d09(0x78)](_0x55bdd7,_0x5088bf,_0x10e996,_0x245560);else{for(var _0x8eca1c=_0x55bdd7['length']-0x1;_0x8eca1c>=0x0;_0x8eca1c--)(_0x13d5ea=_0x55bdd7[_0x8eca1c])&&(_0x6ff8e2=(_0x4a7824<0x3?_0x13d5ea(_0x6ff8e2):_0x4a7824>0x3?_0x13d5ea(_0x5088bf,_0x10e996,_0x6ff8e2):_0x13d5ea(_0x5088bf,_0x10e996))||_0x6ff8e2);}return _0x4a7824>0x3&&_0x6ff8e2&&Object[_0x336d09(0xbf)](_0x5088bf,_0x10e996,_0x6ff8e2),_0x6ff8e2;}function _0x519d(){const _0x28b62f=['_snapshotService','FCollaboration','loadBase','DisposableCollection','switchMap','status','FEnum','76IvZody','loadDocAsync','subscribe','loadBoardAsync','237526MxuLWX','values','CollaborationStatusChanged','_resolveUnitId','resolve','function','loadBaseAsync','loadServerUnit','16271008hIwbnx','FUniver','getFocusedUnit','CONFLICT','flush','getUnitId','waitForRoom$','getDocument','_handler','_initialize','state','\x22\x20while\x20collaboration\x20status\x20is\x20','NOT_COLLAB','extend','createInstance','CollaborationStatus','getBoard','_univerInstanceService','Injector','getBase','length','loadSheet','27Aovqum','FEventName','pipe','8mDpgzf','unsubscribe','235YfybQf','add','_collaborationController','CollaborationController','get','Module','members$','loadSlide','_injector','loadServerUnitOfRevision','Event','SYNCED','defineProperty','readyForCollab','1568424kGnaFd','disposeWithMe','DataLoaderService','from','12IZKMyG','registerEventHandler','loadUnitOfRevision','getCollaboration','MemberService','[FCollaboration]:\x20Unit\x20\x22','object','toDisposable','67137EXZThC','4tPVnsb','FBase','fireEvent','decorate','subscribeCollaborators','SnapshotService','reject','unitID','Inject','getWorkbook','656630cSMspY','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','95662RPCRCc','status$','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','17388immUKM'];_0x519d=function(){return _0x28b62f;};return _0x519d();}let l=class extends t[_0x4935c3(0x76)]{constructor(_0x313a17,_0x590483,_0x29db41,_0x1ddacf,_0xd5c692){const _0x46a060=_0x4935c3;super(),this[_0x46a060(0xa0)]=_0x313a17,this[_0x46a060(0xbb)]=_0x590483,this[_0x46a060(0xa9)]=_0x29db41,this['_snapshotService']=_0x1ddacf,this['_collaborationController']=_0xd5c692;}async['loadSheetAsync'](_0x471a4a,_0x4902ce){const _0x57a9c3=_0x4935c3;return await this['_snapshotService'][_0x57a9c3(0xad)](_0x471a4a,0x0,_0x4902ce)?(await this['_collaborationController'][_0x57a9c3(0xc0)](_0x471a4a),this[_0x57a9c3(0xa0)][_0x57a9c3(0x7e)](_0x471a4a)):null;}async[_0x4935c3(0x8d)](_0x33600e,_0x53f029){const _0x1b8a7f=_0x4935c3;return await this[_0x1b8a7f(0x85)]['loadDoc'](_0x33600e,0x0,_0x53f029)?(await this['_collaborationController'][_0x1b8a7f(0xc0)](_0x33600e),this['_handler'][_0x1b8a7f(0x9f)](_0x33600e)):null;}async[_0x4935c3(0x96)](_0x26b9f9,_0x55665d){const _0x321afb=_0x4935c3;return await this['_snapshotService'][_0x321afb(0x87)](_0x26b9f9,0x0,_0x55665d)?(await this[_0x321afb(0xb5)]['readyForCollab'](_0x26b9f9),this[_0x321afb(0xa0)]['getBase'](_0x26b9f9)):null;}async['loadSlideAsync'](_0x45bb9d,_0x50e7f6){const _0x32eb2a=_0x4935c3;return await this[_0x32eb2a(0x85)][_0x32eb2a(0xba)](_0x45bb9d,0x0,_0x50e7f6)?(await this[_0x32eb2a(0xb5)][_0x32eb2a(0xc0)](_0x45bb9d),this[_0x32eb2a(0xa0)]['getPresentation'](_0x45bb9d)):null;}async[_0x4935c3(0x8f)](_0x189d61,_0x46fc62){const _0xe3f9e7=_0x4935c3;return await this['_snapshotService']['loadBoard'](_0x189d61,0x0,_0x46fc62)?(await this[_0xe3f9e7(0xb5)][_0xe3f9e7(0xc0)](_0x189d61),this['_handler']['getBoard'](_0x189d61)):null;}[_0x4935c3(0x79)](_0x3b4981,_0x1517fd){const _0x11aa84=_0x4935c3;return(0x0,n[_0x11aa84(0xcc)])(this[_0x11aa84(0xbb)][_0x11aa84(0xb7)](e[_0x11aa84(0xc9)])[_0x11aa84(0x9e)](_0x3b4981)[_0x11aa84(0xb0)]((0x0,i[_0x11aa84(0x89)])(_0x5f1a2e=>_0x5f1a2e[_0x11aa84(0xb9)]))[_0x11aa84(0x8e)](_0x8a0f4e=>_0x1517fd(Array[_0x11aa84(0xc4)](_0x8a0f4e[_0x11aa84(0x91)]()))));}['getCollaborationStatus'](_0x2338a6){const _0x33c067=_0x4935c3;var _0x1eee21;let _0x2ce1a0=this['_resolveUnitId'](_0x2338a6);if(!_0x2ce1a0)return e[_0x33c067(0xa7)]['NOT_COLLAB'];let _0x584698=this[_0x33c067(0xb5)]['getCollabEntity'](_0x2ce1a0);return(_0x1eee21=_0x584698==null?void 0x0:_0x584698[_0x33c067(0xa2)][_0x33c067(0x8a)])==null?e[_0x33c067(0xa7)][_0x33c067(0xa4)]:_0x1eee21;}[_0x4935c3(0x9c)](_0x16f16e,_0x3d5507={}){const _0x4245d1=_0x4935c3;var _0x35d6d9;let _0x40bd27=this[_0x4245d1(0x93)](_0x16f16e);if(!_0x40bd27)return Promise['reject'](Error(_0x4245d1(0x83)));let _0x5f39d9=this['_collaborationController']['getCollabEntity'](_0x40bd27);if(!_0x5f39d9)return Promise[_0x4245d1(0x7b)](Error(_0x4245d1(0xca)+_0x40bd27+_0x4245d1(0x80)));let _0x32c9d8=_0x5f39d9[_0x4245d1(0xa2)][_0x4245d1(0x8a)];if(_0x32c9d8===e[_0x4245d1(0xa7)][_0x4245d1(0xbe)])return Promise[_0x4245d1(0x94)]();let _0xa7235b=u(_0x40bd27,_0x32c9d8);if(_0xa7235b)return Promise[_0x4245d1(0x7b)](_0xa7235b);let _0xe1ab16=(_0x35d6d9=_0x3d5507['timeout'])==null?0x7530:_0x35d6d9;return new Promise((_0x3c49a2,_0x6f85fb)=>{const _0x16f509=_0x4245d1;let _0x27a6b9=!0x1,_0x3c19b6=null,_0x3fb3d6=setTimeout(()=>{_0x27a6b9=!0x0,_0x3c19b6==null||_0x3c19b6['unsubscribe'](),_0x6f85fb(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x40bd27+'\x22\x20after\x20'+_0xe1ab16+'ms.'));},_0xe1ab16),_0x24e1f1=()=>{const _0x4616ca=_0x5c44;_0x27a6b9=!0x0,clearTimeout(_0x3fb3d6),_0x3c19b6==null||_0x3c19b6[_0x4616ca(0xb2)]();};_0x3c19b6=_0x5f39d9[_0x16f509(0x82)][_0x16f509(0x8e)](_0x499370=>{const _0x5e391c=_0x16f509;if(_0x27a6b9)return;if(_0x499370===e[_0x5e391c(0xa7)]['SYNCED']){_0x24e1f1(),_0x3c49a2();return;}let _0x54698c=u(_0x40bd27,_0x499370);_0x54698c&&(_0x24e1f1(),_0x6f85fb(_0x54698c));});});}['_resolveUnitId'](_0x6aba06){const _0x3575bf=_0x4935c3;var _0x526911;return _0x6aba06||((_0x526911=this[_0x3575bf(0xa9)][_0x3575bf(0x9a)]())==null?void 0x0:_0x526911[_0x3575bf(0x9d)]());}};l=c([s(0x1,(0x0,n[_0x4935c3(0x7d)])(n[_0x4935c3(0xaa)])),s(0x2,n['IUniverInstanceService']),s(0x3,(0x0,n[_0x4935c3(0x7d)])(r[_0x4935c3(0x7a)])),s(0x4,(0x0,n[_0x4935c3(0x7d)])(e['CollaborationController']))],l);function u(_0x21cd0d,_0x17acb5){const _0x23dc9b=_0x4935c3;return _0x17acb5===e[_0x23dc9b(0xa7)][_0x23dc9b(0x9b)]||_0x17acb5===e['CollaborationStatus'][_0x23dc9b(0xa4)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x21cd0d+_0x23dc9b(0xa3)+_0x17acb5+'.'):null;}var d=class extends t[_0x4935c3(0x99)]{[_0x4935c3(0xa1)](_0xd65a88){const _0x2c1e5c=_0x4935c3;let _0x3cfd9d=_0xd65a88[_0x2c1e5c(0xb7)](e[_0x2c1e5c(0xb6)]);this[_0x2c1e5c(0xc2)](this[_0x2c1e5c(0xc6)](this['Event'][_0x2c1e5c(0x92)],()=>{const _0x5e7558=_0x2c1e5c;let _0x25aa30=new n[(_0x5e7558(0x88))](),_0x486863=_0x3cfd9d['entityInit$'][_0x5e7558(0x8e)](_0x2397ab=>{const _0x4105f6=_0x5e7558;let _0x52ca64=_0x2397ab[_0x4105f6(0x82)][_0x4105f6(0x8e)](_0x4bd3cf=>{const _0x335fc7=_0x4105f6;let _0x30d975={'unitId':_0x2397ab[_0x335fc7(0x7c)],'status':_0x4bd3cf};this[_0x335fc7(0x77)](this[_0x335fc7(0xbd)]['CollaborationStatusChanged'],_0x30d975);});_0x25aa30['add']((0x0,n[_0x4105f6(0xcc)])(_0x52ca64));});return _0x25aa30[_0x5e7558(0xb4)]((0x0,n[_0x5e7558(0xcc)])(_0x486863)),_0x25aa30;}));}[_0x4935c3(0xc8)](){const _0x169ac2=_0x4935c3;return this[_0x169ac2(0xbb)][_0x169ac2(0xa6)](l,{'getWorkbook':_0x471a39=>this[_0x169ac2(0x7e)](_0x471a39),'getDocument':_0x3a5d28=>this[_0x169ac2(0x9f)](_0x3a5d28),'getPresentation':_0x551a6c=>this['getPresentation'](_0x551a6c),'getBase':_0x4c8f3b=>this[_0x169ac2(0xab)](_0x4c8f3b),'getBoard':_0x2a8fff=>this[_0x169ac2(0xa8)](_0x2a8fff)});}[_0x4935c3(0x97)](_0x1c3b41,_0x18253d,_0x2c2a6c){const _0x1c2ac8=_0x4935c3;return this[_0x1c2ac8(0xbb)][_0x1c2ac8(0xb7)](e[_0x1c2ac8(0xc3)])['loadUnit'](_0x1c3b41,_0x18253d,_0x2c2a6c);}[_0x4935c3(0xbc)](_0x564468,_0x4deecd,_0x22b8fd){const _0x4ac734=_0x4935c3;return this['_injector'][_0x4ac734(0xb7)](e[_0x4ac734(0xc3)])[_0x4ac734(0xc7)](_0x564468,_0x4deecd,_0x22b8fd);}};t[_0x4935c3(0x99)]['extend'](d),Object[_0x4935c3(0xbf)](exports,_0x4935c3(0x86),{'enumerable':!0x0,'get':function(){return l;}});
1
+ const _0x1f91c8=_0xd973;(function(_0x15d3b9,_0x4b5ed3){const _0x3d26d4=_0xd973,_0x2f5f4f=_0x15d3b9();while(!![]){try{const _0x443270=-parseInt(_0x3d26d4(0x123))/0x1+-parseInt(_0x3d26d4(0x148))/0x2*(parseInt(_0x3d26d4(0x13b))/0x3)+-parseInt(_0x3d26d4(0x112))/0x4*(parseInt(_0x3d26d4(0x114))/0x5)+parseInt(_0x3d26d4(0x138))/0x6+-parseInt(_0x3d26d4(0x11c))/0x7+parseInt(_0x3d26d4(0x157))/0x8+parseInt(_0x3d26d4(0x13a))/0x9;if(_0x443270===_0x4b5ed3)break;else _0x2f5f4f['push'](_0x2f5f4f['shift']());}catch(_0x5d9d99){_0x2f5f4f['push'](_0x2f5f4f['shift']());}}}(_0x1397,0x7b86f),Object['defineProperty'](exports,Symbol[_0x1f91c8(0x12a)],{'value':_0x1f91c8(0x160)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');function _0x1397(){const _0x4a8f7a=['unitID','SYNCED','_collaborationController','_univerInstanceService','getCollaboration','getCollabEntity','FEventName','2XUhLwI','[FCollaboration]:\x20Unit\x20\x22','registerEventHandler','loadUnitOfRevision','object','resolve','DataLoaderService','FBase','loadBase','loadServerUnit','_snapshotService','FUniver','NOT_COLLAB','from','getWorkbook','4843768BGerAG','Inject','getCollaborationStatus','_resolveUnitId','members$','flush','decorate','length','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','Module','SnapshotService','getFocusedUnit','defineProperty','get','getUnitId','loadSheetAsync','pipe','Event','loadBaseAsync','getBase','toDisposable','getDocument','entityInit$','628ENBBTg','extend','21745byXbUk','fireEvent','loadSlide','CollaborationStatus','DisposableCollection','MemberService','loadSlideAsync','timeout','948367NZVLUp','IUniverInstanceService','\x22\x20after\x20','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','disposeWithMe','loadBoardAsync','getBoard','913963mDIhoJ','loadDoc','loadServerUnitOfRevision','reject','loadSheet','unsubscribe','_injector','toStringTag','CollaborationStatusChanged','FCollaboration','subscribe','switchMap','CONFLICT','loadBoard','getOwnPropertyDescriptor','Injector','createInstance','state','ms.','getPresentation','subscribeCollaborators','2249394erERpi','readyForCollab','15472899ngYIdJ','1384131McbTLz','_handler','waitForRoom$','status$','loadDocAsync','add'];_0x1397=function(){return _0x4a8f7a;};return _0x1397();}var a=class extends t['FEnum']{get[_0x1f91c8(0x117)](){const _0x1d1b3e=_0x1f91c8;return e[_0x1d1b3e(0x117)];}};t['FEnum'][_0x1f91c8(0x113)](a);var o=class extends t['FEventName']{get[_0x1f91c8(0x12b)](){const _0x37682d=_0x1f91c8;return _0x37682d(0x12b);}};t[_0x1f91c8(0x147)]['extend'](o);function s(_0xaa4f41,_0x35f9be){return function(_0x126010,_0xbac4b6){_0x35f9be(_0x126010,_0xbac4b6,_0xaa4f41);};}function c(_0x988141,_0xd937d7,_0xb88bfa,_0x55b5a4){const _0x1d0899=_0x1f91c8;var _0x2c4bd4=arguments['length'],_0x3814cc=_0x2c4bd4<0x3?_0xd937d7:_0x55b5a4===null?_0x55b5a4=Object[_0x1d0899(0x131)](_0xd937d7,_0xb88bfa):_0x55b5a4,_0x37a6ba;if(typeof Reflect==_0x1d0899(0x14c)&&typeof Reflect[_0x1d0899(0x15d)]=='function')_0x3814cc=Reflect[_0x1d0899(0x15d)](_0x988141,_0xd937d7,_0xb88bfa,_0x55b5a4);else{for(var _0x3bfd66=_0x988141[_0x1d0899(0x15e)]-0x1;_0x3bfd66>=0x0;_0x3bfd66--)(_0x37a6ba=_0x988141[_0x3bfd66])&&(_0x3814cc=(_0x2c4bd4<0x3?_0x37a6ba(_0x3814cc):_0x2c4bd4>0x3?_0x37a6ba(_0xd937d7,_0xb88bfa,_0x3814cc):_0x37a6ba(_0xd937d7,_0xb88bfa))||_0x3814cc);}return _0x2c4bd4>0x3&&_0x3814cc&&Object[_0x1d0899(0x163)](_0xd937d7,_0xb88bfa,_0x3814cc),_0x3814cc;}let l=class extends t[_0x1f91c8(0x14f)]{constructor(_0x24e6b3,_0x10ab3e,_0x4aec58,_0x1aa048,_0x37a96a){const _0x18af66=_0x1f91c8;super(),this[_0x18af66(0x13c)]=_0x24e6b3,this[_0x18af66(0x129)]=_0x10ab3e,this['_univerInstanceService']=_0x4aec58,this[_0x18af66(0x152)]=_0x1aa048,this['_collaborationController']=_0x37a96a;}async[_0x1f91c8(0x166)](_0x52e3ab,_0x5c98c0){const _0x208519=_0x1f91c8;return await this[_0x208519(0x152)][_0x208519(0x127)](_0x52e3ab,0x0,_0x5c98c0)?(await this[_0x208519(0x143)][_0x208519(0x139)](_0x52e3ab),this[_0x208519(0x13c)]['getWorkbook'](_0x52e3ab)):null;}async[_0x1f91c8(0x13f)](_0x1794a2,_0x526b42){const _0x5e4fd1=_0x1f91c8;return await this[_0x5e4fd1(0x152)][_0x5e4fd1(0x124)](_0x1794a2,0x0,_0x526b42)?(await this[_0x5e4fd1(0x143)][_0x5e4fd1(0x139)](_0x1794a2),this['_handler'][_0x5e4fd1(0x110)](_0x1794a2)):null;}async[_0x1f91c8(0x169)](_0x1276e5,_0x1e1a26){const _0x2aeeda=_0x1f91c8;return await this[_0x2aeeda(0x152)][_0x2aeeda(0x150)](_0x1276e5,0x0,_0x1e1a26)?(await this[_0x2aeeda(0x143)][_0x2aeeda(0x139)](_0x1276e5),this[_0x2aeeda(0x13c)][_0x2aeeda(0x16a)](_0x1276e5)):null;}async[_0x1f91c8(0x11a)](_0x2b0722,_0x43a0dd){const _0x18ca55=_0x1f91c8;return await this[_0x18ca55(0x152)][_0x18ca55(0x116)](_0x2b0722,0x0,_0x43a0dd)?(await this[_0x18ca55(0x143)][_0x18ca55(0x139)](_0x2b0722),this[_0x18ca55(0x13c)]['getPresentation'](_0x2b0722)):null;}async[_0x1f91c8(0x121)](_0x2f5dcc,_0x19cd0d){const _0x33b000=_0x1f91c8;return await this['_snapshotService'][_0x33b000(0x130)](_0x2f5dcc,0x0,_0x19cd0d)?(await this[_0x33b000(0x143)][_0x33b000(0x139)](_0x2f5dcc),this[_0x33b000(0x13c)][_0x33b000(0x122)](_0x2f5dcc)):null;}[_0x1f91c8(0x137)](_0x79326,_0x25e879){const _0xff3b44=_0x1f91c8;return(0x0,n[_0xff3b44(0x16b)])(this[_0xff3b44(0x129)]['get'](e[_0xff3b44(0x119)])[_0xff3b44(0x13d)](_0x79326)[_0xff3b44(0x167)]((0x0,i[_0xff3b44(0x12e)])(_0x40b1a8=>_0x40b1a8[_0xff3b44(0x15b)]))['subscribe'](_0x3166c0=>_0x25e879(Array[_0xff3b44(0x155)](_0x3166c0['values']()))));}[_0x1f91c8(0x159)](_0xd42514){const _0x399162=_0x1f91c8;var _0x56d29b;let _0x398c0b=this[_0x399162(0x15a)](_0xd42514);if(!_0x398c0b)return e[_0x399162(0x117)][_0x399162(0x154)];let _0xfb0774=this['_collaborationController'][_0x399162(0x146)](_0x398c0b);return(_0x56d29b=_0xfb0774==null?void 0x0:_0xfb0774[_0x399162(0x134)]['status'])==null?e['CollaborationStatus'][_0x399162(0x154)]:_0x56d29b;}[_0x1f91c8(0x15c)](_0x58659f,_0x2d16cc={}){const _0x5e23e7=_0x1f91c8;var _0x4c5e77;let _0xb1e560=this[_0x5e23e7(0x15a)](_0x58659f);if(!_0xb1e560)return Promise[_0x5e23e7(0x126)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0x22104a=this[_0x5e23e7(0x143)]['getCollabEntity'](_0xb1e560);if(!_0x22104a)return Promise[_0x5e23e7(0x126)](Error(_0x5e23e7(0x149)+_0xb1e560+_0x5e23e7(0x15f)));let _0xba5918=_0x22104a[_0x5e23e7(0x134)]['status'];if(_0xba5918===e[_0x5e23e7(0x117)][_0x5e23e7(0x142)])return Promise[_0x5e23e7(0x14d)]();let _0x1c2b4c=u(_0xb1e560,_0xba5918);if(_0x1c2b4c)return Promise[_0x5e23e7(0x126)](_0x1c2b4c);let _0x7c36c0=(_0x4c5e77=_0x2d16cc[_0x5e23e7(0x11b)])==null?0x7530:_0x4c5e77;return new Promise((_0x3c0f79,_0x167bf9)=>{const _0x23ebdd=_0x5e23e7;let _0x18e9b2=!0x1,_0x1e8da5=null,_0x40062c=setTimeout(()=>{const _0x21056d=_0xd973;_0x18e9b2=!0x0,_0x1e8da5==null||_0x1e8da5[_0x21056d(0x128)](),_0x167bf9(Error(_0x21056d(0x11f)+_0xb1e560+_0x21056d(0x11e)+_0x7c36c0+_0x21056d(0x135)));},_0x7c36c0),_0x28e8c5=()=>{const _0x3c8094=_0xd973;_0x18e9b2=!0x0,clearTimeout(_0x40062c),_0x1e8da5==null||_0x1e8da5[_0x3c8094(0x128)]();};_0x1e8da5=_0x22104a[_0x23ebdd(0x13e)][_0x23ebdd(0x12d)](_0x3cbde8=>{const _0x60a24c=_0x23ebdd;if(_0x18e9b2)return;if(_0x3cbde8===e['CollaborationStatus'][_0x60a24c(0x142)]){_0x28e8c5(),_0x3c0f79();return;}let _0x2c86bd=u(_0xb1e560,_0x3cbde8);_0x2c86bd&&(_0x28e8c5(),_0x167bf9(_0x2c86bd));});});}[_0x1f91c8(0x15a)](_0x4f89f2){const _0x2d32d5=_0x1f91c8;var _0x2412b5;return _0x4f89f2||((_0x2412b5=this[_0x2d32d5(0x144)][_0x2d32d5(0x162)]())==null?void 0x0:_0x2412b5[_0x2d32d5(0x165)]());}};l=c([s(0x1,(0x0,n[_0x1f91c8(0x158)])(n[_0x1f91c8(0x132)])),s(0x2,n[_0x1f91c8(0x11d)]),s(0x3,(0x0,n[_0x1f91c8(0x158)])(r[_0x1f91c8(0x161)])),s(0x4,(0x0,n[_0x1f91c8(0x158)])(e['CollaborationController']))],l);function u(_0xc6430c,_0x324f7d){const _0xdfa0ca=_0x1f91c8;return _0x324f7d===e[_0xdfa0ca(0x117)][_0xdfa0ca(0x12f)]||_0x324f7d===e[_0xdfa0ca(0x117)][_0xdfa0ca(0x154)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0xc6430c+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x324f7d+'.'):null;}function _0xd973(_0xc496f9,_0x613cd1){_0xc496f9=_0xc496f9-0x110;const _0x139762=_0x1397();let _0xd973bd=_0x139762[_0xc496f9];return _0xd973bd;}var d=class extends t[_0x1f91c8(0x153)]{['_initialize'](_0x86a87){const _0x3ccc17=_0x1f91c8;let _0x232c59=_0x86a87['get'](e['CollaborationController']);this[_0x3ccc17(0x120)](this[_0x3ccc17(0x14a)](this[_0x3ccc17(0x168)][_0x3ccc17(0x12b)],()=>{const _0x26cffe=_0x3ccc17;let _0x4ed051=new n[(_0x26cffe(0x118))](),_0x4148bf=_0x232c59[_0x26cffe(0x111)]['subscribe'](_0x248245=>{const _0x1e526c=_0x26cffe;let _0x15e1cb=_0x248245[_0x1e526c(0x13e)][_0x1e526c(0x12d)](_0x193000=>{const _0x5b9d2c=_0x1e526c;let _0xc883b2={'unitId':_0x248245[_0x5b9d2c(0x141)],'status':_0x193000};this[_0x5b9d2c(0x115)](this[_0x5b9d2c(0x168)]['CollaborationStatusChanged'],_0xc883b2);});_0x4ed051[_0x1e526c(0x140)]((0x0,n['toDisposable'])(_0x15e1cb));});return _0x4ed051[_0x26cffe(0x140)]((0x0,n[_0x26cffe(0x16b)])(_0x4148bf)),_0x4ed051;}));}[_0x1f91c8(0x145)](){const _0x51844e=_0x1f91c8;return this['_injector'][_0x51844e(0x133)](l,{'getWorkbook':_0x30a037=>this[_0x51844e(0x156)](_0x30a037),'getDocument':_0xd9d7b9=>this[_0x51844e(0x110)](_0xd9d7b9),'getPresentation':_0x452581=>this[_0x51844e(0x136)](_0x452581),'getBase':_0x145490=>this[_0x51844e(0x16a)](_0x145490),'getBoard':_0x2237df=>this[_0x51844e(0x122)](_0x2237df)});}[_0x1f91c8(0x151)](_0x15cb31,_0x11483e,_0x382aad){const _0x4b1a62=_0x1f91c8;return this[_0x4b1a62(0x129)][_0x4b1a62(0x164)](e[_0x4b1a62(0x14e)])['loadUnit'](_0x15cb31,_0x11483e,_0x382aad);}[_0x1f91c8(0x125)](_0xdad68,_0x3f0319,_0x44e770){const _0x18d55c=_0x1f91c8;return this['_injector'][_0x18d55c(0x164)](e[_0x18d55c(0x14e)])[_0x18d55c(0x14b)](_0xdad68,_0x3f0319,_0x44e770);}};t[_0x1f91c8(0x153)]['extend'](d),Object[_0x1f91c8(0x163)](exports,_0x1f91c8(0x12c),{'enumerable':!0x0,'get':function(){return l;}});