@univerjs-pro/collaboration-client 1.0.2 → 1.0.4

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 +15 -15
@@ -1 +1 @@
1
- const _0x18748f=_0x3ee8;(function(_0x35882b,_0x2e537d){const _0x2eae8d=_0x3ee8,_0x4e8bb1=_0x35882b();while(!![]){try{const _0x5926c6=parseInt(_0x2eae8d(0x143))/0x1+-parseInt(_0x2eae8d(0x151))/0x2+parseInt(_0x2eae8d(0x148))/0x3*(-parseInt(_0x2eae8d(0x146))/0x4)+parseInt(_0x2eae8d(0x155))/0x5*(-parseInt(_0x2eae8d(0x142))/0x6)+-parseInt(_0x2eae8d(0x14d))/0x7*(parseInt(_0x2eae8d(0x15b))/0x8)+-parseInt(_0x2eae8d(0x157))/0x9+parseInt(_0x2eae8d(0x14b))/0xa;if(_0x5926c6===_0x2e537d)break;else _0x4e8bb1['push'](_0x4e8bb1['shift']());}catch(_0x239a19){_0x4e8bb1['push'](_0x4e8bb1['shift']());}}}(_0x4608,0x965e0));function _0x4608(){const _0x1d8d67=['連線失敗,請檢查您的網路。','3ljkTzL','已離線,編輯將儲存在本機','正在擷取伺服器資料...','29980900lpWGkI','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','140315WZhOab','連線失敗,將在稍後重試連線。','伺服器未回應協作請求,您的編輯將儲存在本機。','沒有協作權限,您的編輯將暫存於本機。','739186eVRhth','加入協作失敗,您的編輯將暫存於本機。','同步中...','編輯衝突','70fkMFfp','點擊重新連線','9028971OceDnN','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','此文件協作人數已達上限,您的編輯將暫存於本機。','認證錯誤','8cqLnok','本機檔案','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','231198jtXvAn','150966IDhOuT','已同步','由於協作房間已關閉,編輯權限已被收回。','2403332BctIEN'];_0x4608=function(){return _0x1d8d67;};return _0x4608();}function _0x3ee8(_0xc14fe6,_0x863232){_0xc14fe6=_0xc14fe6-0x140;const _0x460844=_0x4608();let _0x3ee8cf=_0x460844[_0xc14fe6];return _0x3ee8cf;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x18748f(0x156)}},'collabStatus':{'fetchMiss':_0x18748f(0x14a),'conflict':_0x18748f(0x154),'notCollab':_0x18748f(0x15c),'synced':_0x18748f(0x144),'syncing':_0x18748f(0x153),'offline':_0x18748f(0x149)},'session':{'connection-failed':_0x18748f(0x147),'will-retry':_0x18748f(0x14e),'room-full':_0x18748f(0x159),'join-failed':_0x18748f(0x140),'room-not-exists':_0x18748f(0x152),'room-permission-denied':_0x18748f(0x150),'room-cnt-exceeds':'協作文件數量超過限制,您的編輯將暫存於本機。','collaboration-timeout':_0x18748f(0x14f)},'conflict':{'title':'協作衝突','content':'您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。'},'permission':{'title':_0x18748f(0x15a),'content':_0x18748f(0x141)},'collaboration':{'single-unit':{'warning':_0x18748f(0x14c)},'closeRoom':_0x18748f(0x145)},'auth':{'needGotoLoginAlert':_0x18748f(0x158)}}};export{e as default};
1
+ const _0x37fcc9=_0x4610;(function(_0x44af7a,_0x8572ab){const _0x3e5a60=_0x4610,_0x222e55=_0x44af7a();while(!![]){try{const _0x22a1a6=-parseInt(_0x3e5a60(0x129))/0x1+-parseInt(_0x3e5a60(0x13c))/0x2*(parseInt(_0x3e5a60(0x126))/0x3)+-parseInt(_0x3e5a60(0x132))/0x4+-parseInt(_0x3e5a60(0x134))/0x5+parseInt(_0x3e5a60(0x12f))/0x6+parseInt(_0x3e5a60(0x139))/0x7+parseInt(_0x3e5a60(0x12d))/0x8;if(_0x22a1a6===_0x8572ab)break;else _0x222e55['push'](_0x222e55['shift']());}catch(_0x4909f0){_0x222e55['push'](_0x222e55['shift']());}}}(_0x14cc,0x4b904));function _0x4610(_0x2a33e1,_0x6cad9d){_0x2a33e1=_0x2a33e1-0x123;const _0x14cc7d=_0x14cc();let _0x46101e=_0x14cc7d[_0x2a33e1];return _0x46101e;}const e={'collaboration-client':{'collabClient':{'tooltip':{'reconnect':_0x37fcc9(0x131)}},'collabStatus':{'fetchMiss':_0x37fcc9(0x125),'conflict':'編輯衝突','notCollab':_0x37fcc9(0x124),'synced':_0x37fcc9(0x12c),'syncing':'同步中...','offline':_0x37fcc9(0x138)},'session':{'connection-failed':_0x37fcc9(0x127),'will-retry':_0x37fcc9(0x13a),'room-full':_0x37fcc9(0x133),'join-failed':_0x37fcc9(0x13b),'room-not-exists':_0x37fcc9(0x136),'room-permission-denied':_0x37fcc9(0x13e),'room-cnt-exceeds':_0x37fcc9(0x137),'collaboration-timeout':_0x37fcc9(0x12a)},'conflict':{'title':_0x37fcc9(0x135),'content':_0x37fcc9(0x130)},'permission':{'title':_0x37fcc9(0x123),'content':_0x37fcc9(0x12e)},'collaboration':{'single-unit':{'warning':_0x37fcc9(0x128)},'closeRoom':_0x37fcc9(0x12b)},'auth':{'needGotoLoginAlert':_0x37fcc9(0x13d)}}};function _0x14cc(){const _0x202c67=['伺服器未回應協作請求,您的編輯將儲存在本機。','由於協作房間已關閉,編輯權限已被收回。','已同步','8715752OamleO','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','1909326QWPBlk','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','點擊重新連線','172604ttIJgD','此文件協作人數已達上限,您的編輯將暫存於本機。','1549065CQAUEW','協作衝突','加入協作失敗,您的編輯將暫存於本機。','協作文件數量超過限制,您的編輯將暫存於本機。','已離線,編輯將儲存在本機','172984mLcwlO','連線失敗,將在稍後重試連線。','加入協作失敗,請稍後重試,您的編輯將暫存於本機。','324776liMHtv','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','沒有協作權限,您的編輯將暫存於本機。','認證錯誤','本機檔案','正在擷取伺服器資料...','6YFwjHv','連線失敗,請檢查您的網路。','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','445154qlIgGp'];_0x14cc=function(){return _0x202c67;};return _0x14cc();}export{e as default};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2c13(_0xf6b7e,_0x3148b5){_0xf6b7e=_0xf6b7e-0xec;const _0x4970ae=_0x4970();let _0x2c13b3=_0x4970ae[_0xf6b7e];return _0x2c13b3;}(function(_0x313c1c,_0x54a603){const _0x562dfc=_0x2c13,_0x3987b3=_0x313c1c();while(!![]){try{const _0x511f0b=parseInt(_0x562dfc(0x112))/0x1*(parseInt(_0x562dfc(0x13d))/0x2)+-parseInt(_0x562dfc(0x12a))/0x3+-parseInt(_0x562dfc(0xfb))/0x4*(parseInt(_0x562dfc(0x10b))/0x5)+-parseInt(_0x562dfc(0x126))/0x6+-parseInt(_0x562dfc(0x146))/0x7+-parseInt(_0x562dfc(0xf8))/0x8+parseInt(_0x562dfc(0x10e))/0x9;if(_0x511f0b===_0x54a603)break;else _0x3987b3['push'](_0x3987b3['shift']());}catch(_0x20553b){_0x3987b3['push'](_0x3987b3['shift']());}}}(_0x4970,0xa717d),function(_0x3be33f,_0x1970f3){const _0x495f82=_0x2c13;typeof exports==_0x495f82(0x13b)&&typeof module<'u'?_0x1970f3(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x495f82(0x124)&&define['amd']?define([_0x495f82(0x116),_0x495f82(0xef),_0x495f82(0x127),_0x495f82(0x118),_0x495f82(0xee),'rxjs'],_0x1970f3):(_0x3be33f=typeof globalThis<'u'?globalThis:_0x3be33f||self,_0x1970f3(_0x3be33f['UniverProCollaborationClientFacade']={},_0x3be33f['UniverProCollaborationClient'],_0x3be33f[_0x495f82(0x139)],_0x3be33f[_0x495f82(0x100)],_0x3be33f[_0x495f82(0x119)],_0x3be33f[_0x495f82(0x11e)]));}(this,function(_0x2aa6e2,_0x369473,_0x30e191,_0x1908eb,_0x30e20f,_0x1ae8fb){const _0x2d0b6b=_0x2c13;Object['defineProperty'](_0x2aa6e2,Symbol[_0x2d0b6b(0x107)],{'value':_0x2d0b6b(0x111)});var _0xe1bcfe=class extends _0x30e191[_0x2d0b6b(0x129)]{get[_0x2d0b6b(0x102)](){return _0x369473['CollaborationStatus'];}};_0x30e191[_0x2d0b6b(0x129)][_0x2d0b6b(0xf7)](_0xe1bcfe);var _0x18eea7=class extends _0x30e191['FEventName']{get[_0x2d0b6b(0x106)](){return'CollaborationStatusChanged';}};_0x30e191['FEventName']['extend'](_0x18eea7);function _0x602e99(_0x204d70,_0x1213b4){return function(_0x5b32a9,_0x5f3013){_0x1213b4(_0x5b32a9,_0x5f3013,_0x204d70);};}function _0x3b5d22(_0x368d63,_0x184f0e,_0x4e67a4,_0x1bd94d){const _0x3d0d96=_0x2d0b6b;var _0x5cf733=arguments[_0x3d0d96(0x14d)],_0x5c8bb1=_0x5cf733<0x3?_0x184f0e:_0x1bd94d===null?_0x1bd94d=Object[_0x3d0d96(0x11c)](_0x184f0e,_0x4e67a4):_0x1bd94d,_0x3a4656;if(typeof Reflect==_0x3d0d96(0x13b)&&typeof Reflect[_0x3d0d96(0x141)]==_0x3d0d96(0x124))_0x5c8bb1=Reflect['decorate'](_0x368d63,_0x184f0e,_0x4e67a4,_0x1bd94d);else{for(var _0x6c2923=_0x368d63[_0x3d0d96(0x14d)]-0x1;_0x6c2923>=0x0;_0x6c2923--)(_0x3a4656=_0x368d63[_0x6c2923])&&(_0x5c8bb1=(_0x5cf733<0x3?_0x3a4656(_0x5c8bb1):_0x5cf733>0x3?_0x3a4656(_0x184f0e,_0x4e67a4,_0x5c8bb1):_0x3a4656(_0x184f0e,_0x4e67a4))||_0x5c8bb1);}return _0x5cf733>0x3&&_0x5c8bb1&&Object[_0x3d0d96(0xec)](_0x184f0e,_0x4e67a4,_0x5c8bb1),_0x5c8bb1;}let _0x546303=class extends _0x30e191[_0x2d0b6b(0x13f)]{constructor(_0x3d46a7,_0x4e1bbb,_0x1c7911,_0x28957f,_0x3203da){const _0x5e61f7=_0x2d0b6b;super(),this[_0x5e61f7(0x12d)]=_0x3d46a7,this[_0x5e61f7(0x131)]=_0x4e1bbb,this[_0x5e61f7(0x130)]=_0x1c7911,this['_snapshotService']=_0x28957f,this[_0x5e61f7(0x13e)]=_0x3203da;}async['loadSheetAsync'](_0x49cd8b,_0xf3e5b7){const _0x5d1e81=_0x2d0b6b;return await this[_0x5d1e81(0x136)]['loadSheet'](_0x49cd8b,0x0,_0xf3e5b7)?(await this[_0x5d1e81(0x13e)]['readyForCollab'](_0x49cd8b),this[_0x5d1e81(0x12d)][_0x5d1e81(0x14b)](_0x49cd8b)):null;}async[_0x2d0b6b(0x10d)](_0x2e1daf,_0x3d2270){const _0x45a7b2=_0x2d0b6b;return await this[_0x45a7b2(0x136)]['loadDoc'](_0x2e1daf,0x0,_0x3d2270)?(await this['_collaborationController'][_0x45a7b2(0xed)](_0x2e1daf),this[_0x45a7b2(0x12d)][_0x45a7b2(0xff)](_0x2e1daf)):null;}async[_0x2d0b6b(0x132)](_0xdc7c70,_0x57dbf2){const _0x2c68bb=_0x2d0b6b;return await this[_0x2c68bb(0x136)][_0x2c68bb(0x114)](_0xdc7c70,0x0,_0x57dbf2)?(await this['_collaborationController']['readyForCollab'](_0xdc7c70),this[_0x2c68bb(0x12d)]['getBase'](_0xdc7c70)):null;}async[_0x2d0b6b(0x135)](_0x3d6d29,_0x2bd150){const _0x9f7144=_0x2d0b6b;return await this[_0x9f7144(0x136)][_0x9f7144(0x145)](_0x3d6d29,0x0,_0x2bd150)?(await this[_0x9f7144(0x13e)][_0x9f7144(0xed)](_0x3d6d29),this[_0x9f7144(0x12d)]['getPresentation'](_0x3d6d29)):null;}async[_0x2d0b6b(0x143)](_0x50fc1f,_0x873c64){const _0x264093=_0x2d0b6b;return await this[_0x264093(0x136)][_0x264093(0x134)](_0x50fc1f,0x0,_0x873c64)?(await this['_collaborationController']['readyForCollab'](_0x50fc1f),this[_0x264093(0x12d)][_0x264093(0x12f)](_0x50fc1f)):null;}async['loadPdfAsync'](_0x4aa54a,_0x489548){const _0x459e40=_0x2d0b6b;return await this[_0x459e40(0x136)][_0x459e40(0x10c)](_0x4aa54a,0x0,_0x489548)?(await this[_0x459e40(0x13e)][_0x459e40(0xed)](_0x4aa54a),this[_0x459e40(0x12d)][_0x459e40(0x149)](_0x4aa54a)):null;}[_0x2d0b6b(0x12e)](_0x1949a4,_0x17197d){const _0x3f38ef=_0x2d0b6b;let _0x1fa8fc=this[_0x3f38ef(0x131)][_0x3f38ef(0x123)](_0x369473[_0x3f38ef(0x147)])[_0x3f38ef(0x142)](_0x1949a4)[_0x3f38ef(0x110)]((0x0,_0x1ae8fb[_0x3f38ef(0xf1)])(_0xdd0b5a=>_0xdd0b5a[_0x3f38ef(0xf0)]))[_0x3f38ef(0xf5)](_0x41a2aa=>_0x17197d(Array[_0x3f38ef(0x120)](_0x41a2aa[_0x3f38ef(0x109)]())));return(0x0,_0x1908eb['toDisposable'])(_0x1fa8fc);}['getCollaborationStatus'](_0x3c9acc){const _0x44bf00=_0x2d0b6b;let _0x43b202=this['_resolveUnitId'](_0x3c9acc);if(!_0x43b202)return _0x369473['CollaborationStatus'][_0x44bf00(0xfd)];let _0xb5eaa2=this['_collaborationController'][_0x44bf00(0xf9)](_0x43b202);return(_0xb5eaa2==null?void 0x0:_0xb5eaa2['state']['status'])??_0x369473[_0x44bf00(0x102)][_0x44bf00(0xfd)];}[_0x2d0b6b(0x108)](_0x198b70,_0x5203e8={}){const _0x1aa279=_0x2d0b6b;let _0x5cdba8=this[_0x1aa279(0x137)](_0x198b70);if(!_0x5cdba8)return Promise[_0x1aa279(0xfe)](Error(_0x1aa279(0xf4)));let _0x33dfcc=this[_0x1aa279(0x13e)]['getCollabEntity'](_0x5cdba8);if(!_0x33dfcc)return Promise[_0x1aa279(0xfe)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x5cdba8+_0x1aa279(0x11a)));let _0x1fa5fc=_0x33dfcc[_0x1aa279(0x11b)]['status'];if(_0x1fa5fc===_0x369473[_0x1aa279(0x102)][_0x1aa279(0x117)])return Promise[_0x1aa279(0x140)]();let _0x2d6df9=_0xe7e1d(_0x5cdba8,_0x1fa5fc);if(_0x2d6df9)return Promise[_0x1aa279(0xfe)](_0x2d6df9);let _0x3b2ae9=_0x5203e8[_0x1aa279(0x14a)]??0x7530;return new Promise((_0x4264b5,_0x137073)=>{const _0x468654=_0x1aa279;let _0x412666=!0x1,_0x385177=null,_0x549f35=setTimeout(()=>{const _0x3e85c0=_0x2c13;_0x412666=!0x0,_0x385177==null||_0x385177[_0x3e85c0(0x122)](),_0x137073(Error(_0x3e85c0(0x10f)+_0x5cdba8+'\x22\x20after\x20'+_0x3b2ae9+_0x3e85c0(0x12b)));},_0x3b2ae9),_0x2c8c23=()=>{const _0x65d654=_0x2c13;_0x412666=!0x0,clearTimeout(_0x549f35),_0x385177==null||_0x385177[_0x65d654(0x122)]();};_0x385177=_0x33dfcc[_0x468654(0x13a)][_0x468654(0xf5)](_0x403c57=>{const _0x92994a=_0x468654;if(_0x412666)return;if(_0x403c57===_0x369473[_0x92994a(0x102)][_0x92994a(0x117)]){_0x2c8c23(),_0x4264b5();return;}let _0x47a6d5=_0xe7e1d(_0x5cdba8,_0x403c57);_0x47a6d5&&(_0x2c8c23(),_0x137073(_0x47a6d5));});});}[_0x2d0b6b(0x137)](_0x5cee69){const _0x5290d3=_0x2d0b6b;var _0x33f021;return _0x5cee69||((_0x33f021=this['_univerInstanceService'][_0x5290d3(0xf6)]())==null?void 0x0:_0x33f021[_0x5290d3(0x103)]());}};_0x546303=_0x3b5d22([_0x602e99(0x1,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x1908eb[_0x2d0b6b(0x101)])),_0x602e99(0x2,_0x1908eb[_0x2d0b6b(0x104)]),_0x602e99(0x3,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x30e20f[_0x2d0b6b(0x14c)])),_0x602e99(0x4,(0x0,_0x1908eb[_0x2d0b6b(0x148)])(_0x369473[_0x2d0b6b(0x125)]))],_0x546303);function _0xe7e1d(_0x8cf6aa,_0x275f9a){const _0xd91597=_0x2d0b6b;return _0x275f9a===_0x369473['CollaborationStatus']['CONFLICT']||_0x275f9a===_0x369473['CollaborationStatus'][_0xd91597(0xfd)]?Error('[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22'+_0x8cf6aa+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x275f9a+'.'):null;}var _0x5ef736=class extends _0x30e191[_0x2d0b6b(0x11f)]{[_0x2d0b6b(0x11d)](_0x154938){const _0x28709e=_0x2d0b6b;let _0x5d0671=_0x154938[_0x28709e(0x123)](_0x369473['CollaborationController']);this['disposeWithMe'](this[_0x28709e(0xf3)](this[_0x28709e(0x113)][_0x28709e(0x106)],()=>{const _0x3fd46d=_0x28709e;let _0xecda40=new _0x1908eb[(_0x3fd46d(0x12c))](),_0x3a54a5=_0x5d0671[_0x3fd46d(0x144)]['subscribe'](_0x1c1e74=>{const _0x5d4bf0=_0x3fd46d;let _0x50936b=_0x1c1e74[_0x5d4bf0(0x13a)][_0x5d4bf0(0xf5)](_0x121375=>{const _0x1db955=_0x5d4bf0;let _0x5d2894={'unitId':_0x1c1e74['unitID'],'status':_0x121375};this[_0x1db955(0x133)](this[_0x1db955(0x113)]['CollaborationStatusChanged'],_0x5d2894);});_0xecda40[_0x5d4bf0(0x13c)]((0x0,_0x1908eb[_0x5d4bf0(0x128)])(_0x50936b));});return _0xecda40[_0x3fd46d(0x13c)]((0x0,_0x1908eb[_0x3fd46d(0x128)])(_0x3a54a5)),_0xecda40;}));}[_0x2d0b6b(0xfa)](){const _0x1cd9ab=_0x2d0b6b;return this[_0x1cd9ab(0x131)]['createInstance'](_0x546303,{'getWorkbook':_0xe7504e=>this[_0x1cd9ab(0x14b)](_0xe7504e),'getDocument':_0x3d0cbd=>this['getDocument'](_0x3d0cbd),'getPresentation':_0x1677a3=>this[_0x1cd9ab(0x105)](_0x1677a3),'getBase':_0x4dcaa1=>this['getBase'](_0x4dcaa1),'getBoard':_0x536def=>this['getBoard'](_0x536def),'getPdf':_0xd9011f=>this['getPdf'](_0xd9011f)});}[_0x2d0b6b(0xf2)](_0x40e401,_0xce5eb4,_0x435d6e){const _0x428fc9=_0x2d0b6b;return this[_0x428fc9(0x131)][_0x428fc9(0x123)](_0x369473[_0x428fc9(0xfc)])[_0x428fc9(0x115)](_0x40e401,_0xce5eb4,_0x435d6e);}[_0x2d0b6b(0x10a)](_0x23feaa,_0x368779,_0x59b179){const _0x50cf6f=_0x2d0b6b;return this[_0x50cf6f(0x131)][_0x50cf6f(0x123)](_0x369473[_0x50cf6f(0xfc)])[_0x50cf6f(0x121)](_0x23feaa,_0x368779,_0x59b179);}};_0x30e191[_0x2d0b6b(0x11f)][_0x2d0b6b(0xf7)](_0x5ef736),Object[_0x2d0b6b(0xec)](_0x2aa6e2,_0x2d0b6b(0x138),{'enumerable':!0x0,'get':function(){return _0x546303;}});}));function _0x4970(){const _0x5c24b7=['getBoard','_univerInstanceService','_injector','loadBaseAsync','fireEvent','loadBoard','loadSlideAsync','_snapshotService','_resolveUnitId','FCollaboration','UniverCoreFacade','status$','object','add','140YYHikN','_collaborationController','FBase','resolve','decorate','waitForRoom$','loadBoardAsync','entityInit$','loadSlide','5450046YpNTHp','MemberService','Inject','getPdf','timeout','getWorkbook','SnapshotService','length','defineProperty','readyForCollab','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','members$','switchMap','loadServerUnit','registerEventHandler','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','subscribe','getFocusedUnit','extend','1457104TXcpRl','getCollabEntity','getCollaboration','456876BFGNJs','DataLoaderService','NOT_COLLAB','reject','getDocument','UniverCore','Injector','CollaborationStatus','getUnitId','IUniverInstanceService','getPresentation','CollaborationStatusChanged','toStringTag','flush','values','loadServerUnitOfRevision','35QECbsn','loadPdf','loadDocAsync','16895934KWQYOF','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','pipe','Module','18637EnJSzo','Event','loadBase','loadUnit','exports','SYNCED','@univerjs/core','UniverProCollaboration','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','state','getOwnPropertyDescriptor','_initialize','rxjs','FUniver','from','loadUnitOfRevision','unsubscribe','get','function','CollaborationController','2684802nntMzf','@univerjs/core/facade','toDisposable','FEnum','869361uUeuIN','ms.','DisposableCollection','_handler','subscribeCollaborators'];_0x4970=function(){return _0x5c24b7;};return _0x4970();}
1
+ (function(_0x4e80fc,_0x1b7b1f){const _0x43c43f=_0x1419,_0x450b27=_0x4e80fc();while(!![]){try{const _0x465c4e=-parseInt(_0x43c43f(0x1b7))/0x1*(-parseInt(_0x43c43f(0x1a0))/0x2)+parseInt(_0x43c43f(0x19b))/0x3*(-parseInt(_0x43c43f(0x1cc))/0x4)+parseInt(_0x43c43f(0x19c))/0x5*(-parseInt(_0x43c43f(0x1ba))/0x6)+parseInt(_0x43c43f(0x1aa))/0x7*(-parseInt(_0x43c43f(0x1a4))/0x8)+-parseInt(_0x43c43f(0x1f7))/0x9*(-parseInt(_0x43c43f(0x19d))/0xa)+-parseInt(_0x43c43f(0x1fa))/0xb*(parseInt(_0x43c43f(0x1f0))/0xc)+parseInt(_0x43c43f(0x1e8))/0xd;if(_0x465c4e===_0x1b7b1f)break;else _0x450b27['push'](_0x450b27['shift']());}catch(_0x27517c){_0x450b27['push'](_0x450b27['shift']());}}}(_0x4eec,0x29f44),function(_0x1a7dd0,_0x1c1280){const _0x1c0fca=_0x1419;typeof exports=='object'&&typeof module<'u'?_0x1c1280(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x1c0fca(0x1ed)&&define['amd']?define([_0x1c0fca(0x1cb),_0x1c0fca(0x1a2),'@univerjs/core/facade','@univerjs/core',_0x1c0fca(0x1f4),_0x1c0fca(0x1c3)],_0x1c1280):(_0x1a7dd0=typeof globalThis<'u'?globalThis:_0x1a7dd0||self,_0x1c1280(_0x1a7dd0[_0x1c0fca(0x1af)]={},_0x1a7dd0[_0x1c0fca(0x1b8)],_0x1a7dd0[_0x1c0fca(0x1d4)],_0x1a7dd0['UniverCore'],_0x1a7dd0['UniverProCollaboration'],_0x1a7dd0[_0x1c0fca(0x1c3)]));}(this,function(_0x3d29b0,_0x116e2b,_0x575807,_0x3584e7,_0x272123,_0x149dce){const _0x3e3892=_0x1419;Object[_0x3e3892(0x1bb)](_0x3d29b0,Symbol[_0x3e3892(0x1f8)],{'value':_0x3e3892(0x1f1)});var _0x9c26f0=class extends _0x575807[_0x3e3892(0x1dc)]{get[_0x3e3892(0x1bc)](){const _0x195271=_0x3e3892;return _0x116e2b[_0x195271(0x1bc)];}};_0x575807['FEnum'][_0x3e3892(0x1c5)](_0x9c26f0);var _0x588efa=class extends _0x575807['FEventName']{get['CollaborationStatusChanged'](){const _0x4e6e3d=_0x3e3892;return _0x4e6e3d(0x1e5);}};_0x575807[_0x3e3892(0x19e)]['extend'](_0x588efa);function _0x4e33b1(_0x4da079,_0x3f390e){return function(_0x5a056f,_0x24b931){_0x3f390e(_0x5a056f,_0x24b931,_0x4da079);};}function _0x4246bc(_0x3f1e0b,_0x53ca09,_0x198e8f,_0x1a92f3){const _0x267330=_0x3e3892;var _0x184eba=arguments[_0x267330(0x1ec)],_0x5405d4=_0x184eba<0x3?_0x53ca09:_0x1a92f3===null?_0x1a92f3=Object[_0x267330(0x1c4)](_0x53ca09,_0x198e8f):_0x1a92f3,_0x25539d;if(typeof Reflect=='object'&&typeof Reflect[_0x267330(0x1ae)]==_0x267330(0x1ed))_0x5405d4=Reflect[_0x267330(0x1ae)](_0x3f1e0b,_0x53ca09,_0x198e8f,_0x1a92f3);else{for(var _0x13f7c1=_0x3f1e0b['length']-0x1;_0x13f7c1>=0x0;_0x13f7c1--)(_0x25539d=_0x3f1e0b[_0x13f7c1])&&(_0x5405d4=(_0x184eba<0x3?_0x25539d(_0x5405d4):_0x184eba>0x3?_0x25539d(_0x53ca09,_0x198e8f,_0x5405d4):_0x25539d(_0x53ca09,_0x198e8f))||_0x5405d4);}return _0x184eba>0x3&&_0x5405d4&&Object[_0x267330(0x1bb)](_0x53ca09,_0x198e8f,_0x5405d4),_0x5405d4;}let _0x27b724=class extends _0x575807['FBase']{constructor(_0x3f18fd,_0x53ad63,_0x1be216,_0xf87e78,_0x2e43fa){const _0xe36972=_0x3e3892;super(),this[_0xe36972(0x1da)]=_0x3f18fd,this['_injector']=_0x53ad63,this[_0xe36972(0x1a8)]=_0x1be216,this[_0xe36972(0x1b6)]=_0xf87e78,this[_0xe36972(0x1d1)]=_0x2e43fa;}async[_0x3e3892(0x1c2)](_0x6651ba,_0xb5fc2b){const _0x2ebbfb=_0x3e3892;return await this[_0x2ebbfb(0x1b6)][_0x2ebbfb(0x1d2)](_0x6651ba,0x0,_0xb5fc2b)?(await this[_0x2ebbfb(0x1d1)][_0x2ebbfb(0x1b2)](_0x6651ba),this[_0x2ebbfb(0x1da)][_0x2ebbfb(0x1a5)](_0x6651ba)):null;}async['loadDocAsync'](_0x56f975,_0x2b4eaa){const _0x22afa1=_0x3e3892;return await this['_snapshotService']['loadDoc'](_0x56f975,0x0,_0x2b4eaa)?(await this[_0x22afa1(0x1d1)][_0x22afa1(0x1b2)](_0x56f975),this[_0x22afa1(0x1da)]['getDocument'](_0x56f975)):null;}async['loadBaseAsync'](_0x9fa446,_0x24980d){const _0x279011=_0x3e3892;return await this[_0x279011(0x1b6)][_0x279011(0x1c6)](_0x9fa446,0x0,_0x24980d)?(await this[_0x279011(0x1d1)]['readyForCollab'](_0x9fa446),this['_handler']['getBase'](_0x9fa446)):null;}async[_0x3e3892(0x1e4)](_0x216a23,_0x28b6a8){const _0x1db230=_0x3e3892;return await this[_0x1db230(0x1b6)][_0x1db230(0x1b3)](_0x216a23,0x0,_0x28b6a8)?(await this[_0x1db230(0x1d1)][_0x1db230(0x1b2)](_0x216a23),this[_0x1db230(0x1da)][_0x1db230(0x1e7)](_0x216a23)):null;}async['loadBoardAsync'](_0x517cb6,_0x258034){const _0x1c7fee=_0x3e3892;return await this[_0x1c7fee(0x1b6)]['loadBoard'](_0x517cb6,0x0,_0x258034)?(await this[_0x1c7fee(0x1d1)]['readyForCollab'](_0x517cb6),this[_0x1c7fee(0x1da)]['getBoard'](_0x517cb6)):null;}async[_0x3e3892(0x1d8)](_0x501482,_0x149f2d){const _0x44376b=_0x3e3892;return await this[_0x44376b(0x1b6)][_0x44376b(0x1bd)](_0x501482,0x0,_0x149f2d)?(await this['_collaborationController'][_0x44376b(0x1b2)](_0x501482),this[_0x44376b(0x1da)][_0x44376b(0x1a9)](_0x501482)):null;}[_0x3e3892(0x1b1)](_0x2d84c8,_0x32936c){const _0x363935=_0x3e3892;let _0x57537f=this['_injector']['get'](_0x116e2b['MemberService'])[_0x363935(0x1b4)](_0x2d84c8)[_0x363935(0x1df)]((0x0,_0x149dce[_0x363935(0x1c1)])(_0x5ee84f=>_0x5ee84f[_0x363935(0x1a1)]))[_0x363935(0x1bf)](_0x2f58ad=>_0x32936c(Array['from'](_0x2f58ad[_0x363935(0x1fc)]())));return(0x0,_0x3584e7[_0x363935(0x1ca)])(_0x57537f);}[_0x3e3892(0x1e0)](_0x314b95){const _0x599885=_0x3e3892;let _0x141848=this[_0x599885(0x1ef)](_0x314b95);if(!_0x141848)return _0x116e2b[_0x599885(0x1bc)]['NOT_COLLAB'];let _0x1691e2=this[_0x599885(0x1d1)][_0x599885(0x1e3)](_0x141848);return(_0x1691e2==null?void 0x0:_0x1691e2[_0x599885(0x1d9)][_0x599885(0x19f)])??_0x116e2b['CollaborationStatus'][_0x599885(0x1b0)];}['flush'](_0x148a81,_0x140621={}){const _0x19e428=_0x3e3892;let _0x194981=this['_resolveUnitId'](_0x148a81);if(!_0x194981)return Promise[_0x19e428(0x1ce)](Error(_0x19e428(0x1fb)));let _0x539173=this[_0x19e428(0x1d1)]['getCollabEntity'](_0x194981);if(!_0x539173)return Promise[_0x19e428(0x1ce)](Error(_0x19e428(0x1f6)+_0x194981+_0x19e428(0x1dd)));let _0x73fff4=_0x539173[_0x19e428(0x1d9)]['status'];if(_0x73fff4===_0x116e2b[_0x19e428(0x1bc)]['SYNCED'])return Promise[_0x19e428(0x1ea)]();let _0x521360=_0x3eb8ed(_0x194981,_0x73fff4);if(_0x521360)return Promise[_0x19e428(0x1ce)](_0x521360);let _0x3eff41=_0x140621['timeout']??0x7530;return new Promise((_0x345ba3,_0x117ef4)=>{const _0x50e6fb=_0x19e428;let _0x43b999=!0x1,_0x17c2c9=null,_0x5bd5a8=setTimeout(()=>{const _0x603c3d=_0x1419;_0x43b999=!0x0,_0x17c2c9==null||_0x17c2c9[_0x603c3d(0x1e9)](),_0x117ef4(Error(_0x603c3d(0x1c7)+_0x194981+_0x603c3d(0x1e1)+_0x3eff41+_0x603c3d(0x1a6)));},_0x3eff41),_0x565b9b=()=>{const _0x114e6f=_0x1419;_0x43b999=!0x0,clearTimeout(_0x5bd5a8),_0x17c2c9==null||_0x17c2c9[_0x114e6f(0x1e9)]();};_0x17c2c9=_0x539173['status$'][_0x50e6fb(0x1bf)](_0x3d8a32=>{const _0x4e6b2d=_0x50e6fb;if(_0x43b999)return;if(_0x3d8a32===_0x116e2b['CollaborationStatus'][_0x4e6b2d(0x1e2)]){_0x565b9b(),_0x345ba3();return;}let _0x5e9aae=_0x3eb8ed(_0x194981,_0x3d8a32);_0x5e9aae&&(_0x565b9b(),_0x117ef4(_0x5e9aae));});});}[_0x3e3892(0x1ef)](_0x96fc0c){const _0x584653=_0x3e3892;var _0x205a60;return _0x96fc0c||((_0x205a60=this['_univerInstanceService'][_0x584653(0x1c0)]())==null?void 0x0:_0x205a60['getUnitId']());}};_0x27b724=_0x4246bc([_0x4e33b1(0x1,(0x0,_0x3584e7[_0x3e3892(0x1e6)])(_0x3584e7[_0x3e3892(0x1ee)])),_0x4e33b1(0x2,_0x3584e7[_0x3e3892(0x1c9)]),_0x4e33b1(0x3,(0x0,_0x3584e7[_0x3e3892(0x1e6)])(_0x272123['SnapshotService'])),_0x4e33b1(0x4,(0x0,_0x3584e7[_0x3e3892(0x1e6)])(_0x116e2b[_0x3e3892(0x1d5)]))],_0x27b724);function _0x3eb8ed(_0x1ed197,_0x1e3014){const _0x1f1409=_0x3e3892;return _0x1e3014===_0x116e2b['CollaborationStatus'][_0x1f1409(0x1ad)]||_0x1e3014===_0x116e2b['CollaborationStatus'][_0x1f1409(0x1b0)]?Error(_0x1f1409(0x1b5)+_0x1ed197+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x1e3014+'.'):null;}var _0x234dd3=class extends _0x575807[_0x3e3892(0x1d0)]{[_0x3e3892(0x1d3)](_0x23cb11){const _0x3939b9=_0x3e3892;let _0x5cca81=_0x23cb11[_0x3939b9(0x1cd)](_0x116e2b[_0x3939b9(0x1d5)]);this[_0x3939b9(0x1d6)](this[_0x3939b9(0x1c8)](this[_0x3939b9(0x1a3)][_0x3939b9(0x1e5)],()=>{const _0x4f084d=_0x3939b9;let _0x36c070=new _0x3584e7['DisposableCollection'](),_0x144aa6=_0x5cca81[_0x4f084d(0x1b9)][_0x4f084d(0x1bf)](_0x451ff5=>{const _0x35a6b5=_0x4f084d;let _0x4427b9=_0x451ff5[_0x35a6b5(0x1de)]['subscribe'](_0x579df4=>{const _0x169f7a=_0x35a6b5;let _0x278fb1={'unitId':_0x451ff5[_0x169f7a(0x1cf)],'status':_0x579df4};this['fireEvent'](this[_0x169f7a(0x1a3)][_0x169f7a(0x1e5)],_0x278fb1);});_0x36c070[_0x35a6b5(0x1eb)]((0x0,_0x3584e7['toDisposable'])(_0x4427b9));});return _0x36c070[_0x4f084d(0x1eb)]((0x0,_0x3584e7[_0x4f084d(0x1ca)])(_0x144aa6)),_0x36c070;}));}[_0x3e3892(0x1f5)](){const _0x3154bd=_0x3e3892;return this[_0x3154bd(0x1a7)][_0x3154bd(0x1f3)](_0x27b724,{'getWorkbook':_0xc8181e=>this['getWorkbook'](_0xc8181e),'getDocument':_0x57d9f7=>this[_0x3154bd(0x1ac)](_0x57d9f7),'getPresentation':_0x472739=>this[_0x3154bd(0x1e7)](_0x472739),'getBase':_0x18668d=>this[_0x3154bd(0x1f2)](_0x18668d),'getBoard':_0x46537=>this[_0x3154bd(0x1db)](_0x46537),'getPdf':_0x2f1be6=>this[_0x3154bd(0x1a9)](_0x2f1be6)});}[_0x3e3892(0x1f9)](_0x31f6d4,_0x457ad9,_0x2a3a3a){const _0x4f5c67=_0x3e3892;return this['_injector']['get'](_0x116e2b[_0x4f5c67(0x1ab)])[_0x4f5c67(0x1fd)](_0x31f6d4,_0x457ad9,_0x2a3a3a);}[_0x3e3892(0x1be)](_0x26653d,_0x4d2050,_0x3b6c7c){const _0x4d3559=_0x3e3892;return this[_0x4d3559(0x1a7)][_0x4d3559(0x1cd)](_0x116e2b[_0x4d3559(0x1ab)])['loadUnitOfRevision'](_0x26653d,_0x4d2050,_0x3b6c7c);}};_0x575807[_0x3e3892(0x1d0)][_0x3e3892(0x1c5)](_0x234dd3),Object['defineProperty'](_0x3d29b0,_0x3e3892(0x1d7),{'enumerable':!0x0,'get':function(){return _0x27b724;}});}));function _0x1419(_0x48810a,_0x4192bc){_0x48810a=_0x48810a-0x19b;const _0x4eec19=_0x4eec();let _0x1419cd=_0x4eec19[_0x48810a];return _0x1419cd;}function _0x4eec(){const _0x478ae7=['1636665jVHpfW','10HPRniX','FEventName','status','250WCikJb','members$','@univerjs-pro/collaboration-client','Event','874312GnpSeG','getWorkbook','ms.','_injector','_univerInstanceService','getPdf','21BpGIvc','DataLoaderService','getDocument','CONFLICT','decorate','UniverProCollaborationClientFacade','NOT_COLLAB','subscribeCollaborators','readyForCollab','loadSlide','waitForRoom$','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','_snapshotService','560bomgPw','UniverProCollaborationClient','entityInit$','6CmgSTq','defineProperty','CollaborationStatus','loadPdf','loadServerUnitOfRevision','subscribe','getFocusedUnit','switchMap','loadSheetAsync','rxjs','getOwnPropertyDescriptor','extend','loadBase','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','registerEventHandler','IUniverInstanceService','toDisposable','exports','18476SqUkQi','get','reject','unitID','FUniver','_collaborationController','loadSheet','_initialize','UniverCoreFacade','CollaborationController','disposeWithMe','FCollaboration','loadPdfAsync','state','_handler','getBoard','FEnum','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','status$','pipe','getCollaborationStatus','\x22\x20after\x20','SYNCED','getCollabEntity','loadSlideAsync','CollaborationStatusChanged','Inject','getPresentation','12132367PrhwvN','unsubscribe','resolve','add','length','function','Injector','_resolveUnitId','76044BNLFKZ','Module','getBase','createInstance','@univerjs-pro/collaboration','getCollaboration','[FCollaboration]:\x20Unit\x20\x22','1263951zmmMTy','toStringTag','loadServerUnit','253CZHpgZ','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','values','loadUnit','111tsAAZn'];_0x4eec=function(){return _0x478ae7;};return _0x4eec();}