@univerjs-pro/collaboration-client 1.0.0-alpha.0 → 1.0.0-alpha.1

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 +13 -13
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x545128=_0x4024;(function(_0x2f0128,_0x332042){const _0x5cb4c8=_0x4024,_0x16ea4b=_0x2f0128();while(!![]){try{const _0x14442e=-parseInt(_0x5cb4c8(0x3f7))/0x1+-parseInt(_0x5cb4c8(0x3ed))/0x2*(parseInt(_0x5cb4c8(0x426))/0x3)+-parseInt(_0x5cb4c8(0x4c0))/0x4*(parseInt(_0x5cb4c8(0x22d))/0x5)+parseInt(_0x5cb4c8(0x26c))/0x6*(-parseInt(_0x5cb4c8(0x254))/0x7)+-parseInt(_0x5cb4c8(0x47e))/0x8+parseInt(_0x5cb4c8(0x343))/0x9+-parseInt(_0x5cb4c8(0x429))/0xa*(-parseInt(_0x5cb4c8(0x30f))/0xb);if(_0x14442e===_0x332042)break;else _0x16ea4b['push'](_0x16ea4b['shift']());}catch(_0x26dd51){_0x16ea4b['push'](_0x16ea4b['shift']());}}}(_0x3e56,0x44e54),Object[_0x545128(0x34a)](exports,Symbol[_0x545128(0x2d5)],{'value':_0x545128(0x3f8)}));let e=require('@univerjs-pro/bases'),t=require('@univerjs-pro/collaboration'),n=require('@univerjs/core'),r=require('@univerjs/docs'),i=require('@univerjs/sheets'),a=require('rxjs'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs/network'),d=require('@univerjs-pro/license'),f=require('@univerjs/drawing'),p=require('@noble/ciphers/aes.js'),m=require('@noble/ciphers/utils.js');const h='collaboration-client.config',ee={},te=_0x545128(0x2a7),ne=0x4e20;function re(_0x15ae4b){const _0x4ae8e2=_0x545128;return JSON[_0x4ae8e2(0x4a3)](_0x15ae4b)[_0x4ae8e2(0x38a)];}function g(_0x322195){'@babel/helpers - typeof';const _0x43355c=_0x545128;return g=typeof Symbol==_0x43355c(0x2d7)&&typeof Symbol[_0x43355c(0x38b)]==_0x43355c(0x3ef)?function(_0x5e8fd6){return typeof _0x5e8fd6;}:function(_0x3cc4d3){const _0x1c899c=_0x43355c;return _0x3cc4d3&&typeof Symbol=='function'&&_0x3cc4d3[_0x1c899c(0x290)]===Symbol&&_0x3cc4d3!==Symbol[_0x1c899c(0x392)]?'symbol':typeof _0x3cc4d3;},g(_0x322195);}function ie(_0x5a907c,_0xd7ada5){const _0x3c2a70=_0x545128;if(g(_0x5a907c)!='object'||!_0x5a907c)return _0x5a907c;var _0x292d60=_0x5a907c[Symbol['toPrimitive']];if(_0x292d60!==void 0x0){var _0x5b20d5=_0x292d60[_0x3c2a70(0x339)](_0x5a907c,_0xd7ada5||_0x3c2a70(0x24a));if(g(_0x5b20d5)!='object')return _0x5b20d5;throw TypeError(_0x3c2a70(0x341));}return(_0xd7ada5===_0x3c2a70(0x2f0)?String:Number)(_0x5a907c);}function ae(_0x3c3ecc){const _0x8c346f=_0x545128;var _0x5e2dd7=ie(_0x3c3ecc,_0x8c346f(0x2f0));return g(_0x5e2dd7)==_0x8c346f(0x3ef)?_0x5e2dd7:_0x5e2dd7+'';}function _(_0x4b77c9,_0x145379,_0x3984d1){const _0x2ad444=_0x545128;return(_0x145379=ae(_0x145379))in _0x4b77c9?Object[_0x2ad444(0x34a)](_0x4b77c9,_0x145379,{'value':_0x3984d1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b77c9[_0x145379]=_0x3984d1,_0x4b77c9;}let oe=function(_0x1b2364){const _0x3da6d5=_0x545128;return _0x1b2364[_0x3da6d5(0x201)]=_0x3da6d5(0x201),_0x1b2364[_0x3da6d5(0x35d)]='PERMISSION_DENIED',_0x1b2364[_0x3da6d5(0x2b0)]=_0x3da6d5(0x2b0),_0x1b2364[_0x3da6d5(0x337)]=_0x3da6d5(0x337),_0x1b2364['JOIN_ROOM_FAILED']='JOIN_ROOM_FAILED',_0x1b2364['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0x1b2364['SOCKET_FAILED']=_0x3da6d5(0x239),_0x1b2364['SUBMIT_CHANGESET_TIMEOUT']='SUBMIT_CHANGESET_TIMEOUT',_0x1b2364;}({});var v=class{constructor(){const _0x47efb2=_0x545128;_(this,_0x47efb2(0x3a8),new a[(_0x47efb2(0x335))]()),_(this,_0x47efb2(0x40e),this[_0x47efb2(0x3a8)][_0x47efb2(0x49e)]());}['emitEvent'](_0x19dd0f){const _0x587a3e=_0x545128;this['_event$'][_0x587a3e(0x2c2)](_0x19dd0f);}},se=class{constructor(){const _0x151c1f=_0x545128;_(this,_0x151c1f(0x494),new a[(_0x151c1f(0x335))]()),_(this,_0x151c1f(0x375),this[_0x151c1f(0x494)][_0x151c1f(0x49e)]());}[_0x545128(0x2aa)](_0x2c25a9){const _0x26da60=_0x545128;this['_commentUpdate$'][_0x26da60(0x2c2)](_0x2c25a9);}};function y(_0x97fac2,_0x16d628){return function(_0x5bdd63,_0x32f2be){_0x16d628(_0x5bdd63,_0x32f2be,_0x97fac2);};}function b(_0x61aad4,_0x4e375c,_0x1654d9,_0x45c425){const _0x49118d=_0x545128;var _0x493c3c=arguments[_0x49118d(0x38a)],_0xa09dac=_0x493c3c<0x3?_0x4e375c:_0x45c425===null?_0x45c425=Object[_0x49118d(0x40f)](_0x4e375c,_0x1654d9):_0x45c425,_0x397d64;if(typeof Reflect==_0x49118d(0x305)&&typeof Reflect[_0x49118d(0x2bb)]==_0x49118d(0x2d7))_0xa09dac=Reflect[_0x49118d(0x2bb)](_0x61aad4,_0x4e375c,_0x1654d9,_0x45c425);else{for(var _0x4054d4=_0x61aad4['length']-0x1;_0x4054d4>=0x0;_0x4054d4--)(_0x397d64=_0x61aad4[_0x4054d4])&&(_0xa09dac=(_0x493c3c<0x3?_0x397d64(_0xa09dac):_0x493c3c>0x3?_0x397d64(_0x4e375c,_0x1654d9,_0xa09dac):_0x397d64(_0x4e375c,_0x1654d9))||_0xa09dac);}return _0x493c3c>0x3&&_0xa09dac&&Object[_0x49118d(0x34a)](_0x4e375c,_0x1654d9,_0xa09dac),_0xa09dac;}let x=class extends n['Disposable']{constructor(_0xefc8f5,_0x7f43f5){const _0x80738b=_0x545128;super(),this[_0x80738b(0x1e7)]=_0xefc8f5,this[_0x80738b(0x445)]=_0x7f43f5,_(this,'_roomMembers',new Map()),_(this,_0x80738b(0x354),new a[(_0x80738b(0x335))]()),this['disposeWithMe']((0x0,a['merge'])(this[_0x80738b(0x1e7)][_0x80738b(0x22c)](n['UniverInstanceType'][_0x80738b(0x424)])['pipe']((0x0,c[_0x80738b(0x2d9)])(_0x528169=>_0x528169[_0x80738b(0x3bb)]())),this[_0x80738b(0x1e7)][_0x80738b(0x22c)](n['UniverInstanceType']['UNIVER_DOC'])[_0x80738b(0x259)]((0x0,c[_0x80738b(0x2d9)])(_0x798f42=>_0x798f42[_0x80738b(0x3bb)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](n[_0x80738b(0x251)][_0x80738b(0x291)])[_0x80738b(0x259)]((0x0,c[_0x80738b(0x2d9)])(_0x476ec5=>_0x476ec5['getUnitId']())))['subscribe'](_0x146dd5=>this[_0x80738b(0x48b)](_0x146dd5)));}[_0x545128(0x212)](_0x471dd8){const _0x142065=_0x545128;return this['_roomMembers'][_0x142065(0x44f)](_0x471dd8)?(0x0,a['of'])(this[_0x142065(0x307)][_0x142065(0x2f7)](_0x471dd8)):this[_0x142065(0x354)][_0x142065(0x259)]((0x0,c[_0x142065(0x2d9)])(_0x3c2a34=>{const _0x17b380=_0x142065;if(_0x3c2a34===_0x471dd8)return this[_0x17b380(0x307)][_0x17b380(0x2f7)](_0x3c2a34);}));}[_0x545128(0x4b2)](_0xb7756d){const _0x4453c1=_0x545128;this[_0x4453c1(0x445)][_0x4453c1(0x4b2)](_0xb7756d);}[_0x545128(0x40a)](){const _0x517272=_0x545128;return this[_0x517272(0x445)][_0x517272(0x40a)]();}[_0x545128(0x274)](_0x1ccfdb,_0x35277e){const _0x46a14e=_0x545128;let _0x5337ad=this['_roomMembers'][_0x46a14e(0x2f7)](_0x1ccfdb);_0x5337ad||(_0x5337ad=new ce(),this[_0x46a14e(0x307)][_0x46a14e(0x3f4)](_0x1ccfdb,_0x5337ad),this['_roomCreated$']['next'](_0x1ccfdb)),_0x5337ad['updateMember'](_0x35277e);}[_0x545128(0x2b8)](_0x7cadc1,_0x16afea){const _0x546fc4=_0x545128;let _0x4a59f0=this[_0x546fc4(0x307)]['get'](_0x7cadc1);_0x4a59f0&&_0x4a59f0[_0x546fc4(0x2b8)](_0x16afea);}[_0x545128(0x2c8)](_0x149b12){const _0x4ffdd8=_0x545128;return this['_roomMembers'][_0x4ffdd8(0x2f7)](_0x149b12);}[_0x545128(0x474)](_0x46e9a6,_0x109af8){const _0xa2d126=_0x545128;let _0x36a66e=this['_roomMembers'][_0xa2d126(0x2f7)](_0x46e9a6);if(_0x36a66e)return _0x36a66e[_0xa2d126(0x474)](_0x109af8);}['_removeRoom'](_0x2671f7){const _0x57c18=_0x545128;let _0x47ae47=this['_roomMembers'][_0x57c18(0x2f7)](_0x2671f7);_0x47ae47&&(_0x47ae47['dispose'](),this[_0x57c18(0x307)][_0x57c18(0x3b0)](_0x2671f7));}[_0x545128(0x25e)](){const _0x5c30c8=_0x545128;this[_0x5c30c8(0x307)][_0x5c30c8(0x295)](_0x5efbdf=>_0x5efbdf[_0x5c30c8(0x25e)]()),this[_0x5c30c8(0x307)][_0x5c30c8(0x47f)](),this[_0x5c30c8(0x354)]['complete']();}};x=b([y(0x0,n['IUniverInstanceService']),y(0x1,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x34c)]))],x);var ce=class extends n[_0x545128(0x3de)]{constructor(..._0x10292b){const _0x2b899e=_0x545128;super(..._0x10292b),_(this,_0x2b899e(0x26a),new Map()),_(this,'_members$',new a[(_0x2b899e(0x3b2))](this[_0x2b899e(0x26a)])),_(this,_0x2b899e(0x310),this[_0x2b899e(0x263)][_0x2b899e(0x49e)]());}[_0x545128(0x25e)](){const _0x56826e=_0x545128;this['_members']['clear'](),this['_members$'][_0x56826e(0x417)]();}[_0x545128(0x274)](_0x163c27){const _0x4d5536=_0x545128;this[_0x4d5536(0x26a)]['set'](_0x163c27[_0x4d5536(0x33c)],_0x163c27),this[_0x4d5536(0x4d6)]();}[_0x545128(0x2b8)](_0x47c6dd){const _0x46a591=_0x545128;this['_members'][_0x46a591(0x3b0)](_0x47c6dd),this[_0x46a591(0x4d6)]();}[_0x545128(0x474)](_0xd50edc){const _0x2e9dc6=_0x545128;return this[_0x2e9dc6(0x26a)][_0x2e9dc6(0x2f7)](_0xd50edc);}[_0x545128(0x273)](){const _0x645ef4=_0x545128;return Array['from'](this[_0x645ef4(0x26a)]['values']());}[_0x545128(0x4d6)](){const _0x4d8002=_0x545128;this[_0x4d8002(0x263)][_0x4d8002(0x2c2)](this[_0x4d8002(0x26a)]);}};let le=function(_0x1d881a){const _0x458bb8=_0x545128;return _0x1d881a[_0x1d881a[_0x458bb8(0x40d)]=0x0]=_0x458bb8(0x40d),_0x1d881a[_0x1d881a['JOINING']=0x1]='JOINING',_0x1d881a[_0x1d881a[_0x458bb8(0x412)]=0x2]=_0x458bb8(0x412),_0x1d881a[_0x1d881a['ONLINE']=0x3]=_0x458bb8(0x469),_0x1d881a;}({});const ue={[o['CmdRspCode'][_0x545128(0x4b4)]]:_0x545128(0x493),[o[_0x545128(0x475)][_0x545128(0x462)]]:_0x545128(0x3c6),[o[_0x545128(0x475)][_0x545128(0x44c)]]:_0x545128(0x3bf),[o[_0x545128(0x475)][_0x545128(0x2d8)]]:_0x545128(0x453),[o[_0x545128(0x475)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x545128(0x319)};let S=class extends n[_0x545128(0x315)]{get[_0x545128(0x28f)](){const _0x541ea8=_0x545128;return this[_0x541ea8(0x243)][_0x541ea8(0x248)]();}constructor(_0x4cf229,_0x3a83fc,_0x5ac4bb,_0x19ff9c,_0x58c1d6,_0xee51a2,_0x1f1fff,_0x5655d1){const _0x25b0da=_0x545128;super(),this[_0x25b0da(0x489)]=_0x4cf229,this[_0x25b0da(0x4a2)]=_0x5ac4bb,this['_configService']=_0x19ff9c,this[_0x25b0da(0x2d3)]=_0x58c1d6,this['_commentService']=_0xee51a2,this[_0x25b0da(0x48f)]=_0x1f1fff,this[_0x25b0da(0x358)]=_0x5655d1,_(this,_0x25b0da(0x243),new a[(_0x25b0da(0x3b2))](0x0)),_(this,_0x25b0da(0x4a1),this[_0x25b0da(0x243)][_0x25b0da(0x49e)]()),_(this,'_event$',new a[(_0x25b0da(0x335))]()),_(this,_0x25b0da(0x40e),this['_event$']['asObservable']()),_(this,'_socket',void 0x0),_(this,'_socketMessageSubscription',void 0x0),_(this,_0x25b0da(0x490),void 0x0),_(this,_0x25b0da(0x216),!0x1),_(this,_0x25b0da(0x249),null),this['_shouldReportTelemetry']=!!this[_0x25b0da(0x358)],_0x3a83fc['pipe']((0x0,a[_0x25b0da(0x386)])(this[_0x25b0da(0x245)]))[_0x25b0da(0x31b)](_0x818a5c=>{const _0x721b6d=_0x25b0da;if(_0x818a5c!==void 0x0){if(this[_0x721b6d(0x443)]=_0x818a5c,_0x818a5c)this[_0x721b6d(0x210)](_0x818a5c),this[_0x721b6d(0x2d6)]=_0x818a5c[_0x721b6d(0x2c9)]['subscribe'](_0x5b1cd8=>{const _0x45ec42=_0x721b6d;_0x5b1cd8['routeKey']===this[_0x45ec42(0x489)]&&this[_0x45ec42(0x481)](_0x5b1cd8);});else{var _0x448263;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x721b6d(0x243)][_0x721b6d(0x2c2)](0x2),(_0x448263=this['_socketMessageSubscription'])==null||_0x448263['unsubscribe'](),this['_socketMessageSubscription']=null;}}});}['getMemberID'](){const _0x1850de=_0x545128;var _0x591db5,_0x324212;return(_0x591db5=(_0x324212=this[_0x1850de(0x443)])==null?void 0x0:_0x324212[_0x1850de(0x33c)])==null?null:_0x591db5;}['dispose'](){const _0x460289=_0x545128;super[_0x460289(0x25e)](),this[_0x460289(0x2df)](),this[_0x460289(0x245)][_0x460289(0x2c2)](),this[_0x460289(0x245)][_0x460289(0x417)]();}['close'](){const _0x4bc34a=_0x545128;var _0x43fee4,_0x12954a;this['_throwTelemetryCollaborationNewChangeset'](),(_0x43fee4=this[_0x4bc34a(0x443)])==null||_0x43fee4[_0x4bc34a(0x1f7)]({'cmd':o[_0x4bc34a(0x2a2)][_0x4bc34a(0x1ee)],'data':{'roomID':this[_0x4bc34a(0x489)]}}),(_0x12954a=this[_0x4bc34a(0x443)])==null||_0x12954a['close'](),this[_0x4bc34a(0x3a8)][_0x4bc34a(0x417)](),this[_0x4bc34a(0x243)][_0x4bc34a(0x417)]();}[_0x545128(0x481)](_0x436bbc){const _0x4bd199=_0x545128;_0x436bbc[_0x4bd199(0x267)]===o['CombCmd']['JOIN']?this[_0x4bd199(0x400)](_0x436bbc):_0x436bbc['cmd']===o[_0x4bd199(0x2a2)][_0x4bd199(0x43f)]&&this['_onRecvEvent'](_0x436bbc);}[_0x545128(0x210)](_0xd2a4f){const _0x3c13c2=_0x545128;this[_0x3c13c2(0x243)][_0x3c13c2(0x2c2)](0x1),_0xd2a4f[_0x3c13c2(0x1f7)]({'cmd':o['CombCmd'][_0x3c13c2(0x413)],'routeKey':this[_0x3c13c2(0x489)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3c13c2(0x489)]}]}});}[_0x545128(0x400)](_0x21f7f0){const _0x578ee9=_0x545128;var _0x5223c7;if(_0x21f7f0['code']in ue){this[_0x578ee9(0x48f)][_0x578ee9(0x214)]({'id':_0x578ee9(0x235),'data':ue[_0x21f7f0['code']]}),this[_0x578ee9(0x243)][_0x578ee9(0x2c2)](0x2);return;}this[_0x578ee9(0x243)][_0x578ee9(0x2c2)](0x3);let _0x3a1993=(_0x5223c7=_0x21f7f0[_0x578ee9(0x4b8)][_0x578ee9(0x3d4)][this[_0x578ee9(0x489)]])==null?void 0x0:_0x5223c7[_0x578ee9(0x255)];_0x3a1993&&_0x3a1993['forEach'](_0x4ebbb8=>this[_0x578ee9(0x2d3)][_0x578ee9(0x274)](this[_0x578ee9(0x489)],_0x4ebbb8));}['_onRecvEvent'](_0x168ec2){const _0x55e424=_0x545128;try{let _0x228a88=_0x168ec2['data'];switch(_0x228a88[_0x55e424(0x43a)]){case t[_0x55e424(0x27d)]['USERS_ENTER']:this['_onUserJoin'](_0x228a88),this[_0x55e424(0x3a8)][_0x55e424(0x2c2)](_0x228a88);break;case t[_0x55e424(0x27d)]['USERS_LEAVE']:this[_0x55e424(0x439)](_0x228a88),this['_event$'][_0x55e424(0x2c2)](_0x228a88);break;case t[_0x55e424(0x27d)][_0x55e424(0x3ff)]:case t[_0x55e424(0x27d)][_0x55e424(0x25a)]:this[_0x55e424(0x3e5)](),this[_0x55e424(0x2b6)](),this[_0x55e424(0x3a8)][_0x55e424(0x2c2)](_0x228a88);break;case t[_0x55e424(0x27d)]['MSG_FOR_ERROR']:this[_0x55e424(0x4a2)][_0x55e424(0x42e)](_0x55e424(0x41e)+JSON[_0x55e424(0x4a3)](_0x228a88)),this[_0x55e424(0x3a8)][_0x55e424(0x2c2)](_0x228a88);break;case t[_0x55e424(0x27d)]['COMMENT_UPDATE']:this[_0x55e424(0x38e)][_0x55e424(0x2aa)](_0x228a88['data']),this[_0x55e424(0x3a8)][_0x55e424(0x2c2)](_0x228a88);break;default:this['_event$']['next'](_0x228a88);}}catch(_0x1b6eb6){this[_0x55e424(0x4a2)]['error'](_0x1b6eb6,_0x168ec2);}}[_0x545128(0x237)](_0x30ed75){const _0x22894f=_0x545128;this[_0x22894f(0x2d3)][_0x22894f(0x274)](this[_0x22894f(0x489)],_0x30ed75[_0x22894f(0x4b8)]);}['_onUserLeave'](_0x2381df){const _0x2977f9=_0x545128;this[_0x2977f9(0x2d3)][_0x2977f9(0x2b8)](this[_0x2977f9(0x489)],_0x2381df[_0x2977f9(0x4b8)]['memberID']);}async[_0x545128(0x1f7)](_0x56970a,_0x3ab5c9){const _0x3c0cb7=_0x545128;if(this[_0x3c0cb7(0x28f)]!==0x3||!this['_socket'])throw Error(_0x3c0cb7(0x1fe));try{_0x56970a[_0x3c0cb7(0x43a)]===t[_0x3c0cb7(0x27d)][_0x3c0cb7(0x3b8)]&&(this[_0x3c0cb7(0x407)](),this[_0x3c0cb7(0x223)](_0x56970a)),this[_0x3c0cb7(0x443)][_0x3c0cb7(0x1f7)]({'cmd':o[_0x3c0cb7(0x2a2)][_0x3c0cb7(0x31d)],'routeKey':_0x3ab5c9,'routeType':'','data':_0x56970a});}catch(_0x3b5dc8){this['_logService'][_0x3c0cb7(0x42e)](_0x3b5dc8);}}[_0x545128(0x407)](){const _0x39574f=_0x545128;var _0x38050f;this[_0x39574f(0x490)]=setTimeout(()=>{const _0x48e78d=_0x39574f;this[_0x48e78d(0x490)]=null,this[_0x48e78d(0x48f)]['emitEvent']({'id':_0x48e78d(0x472)});},(_0x38050f=this[_0x39574f(0x2e4)][_0x39574f(0x2c0)](_0x39574f(0x465)))==null?ne:_0x38050f);}[_0x545128(0x2b6)](){const _0x92fdfc=_0x545128;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x92fdfc(0x490)]=null);}[_0x545128(0x223)](_0x474855){const _0x3cd7de=_0x545128;if(!this[_0x3cd7de(0x216)])return;let {data:_0x127ccd}=_0x474855,{unitID:_0x5a02de,changeset:_0x4fe9ab}=_0x127ccd,{mutations:_0x3eccc5,type:_0x5a55b0}=_0x4fe9ab;this[_0x3cd7de(0x249)]={'unitId':_0x5a02de,'type':_0x5a55b0,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':re(_0x3eccc5)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x392bb3=_0x545128;if(this[_0x392bb3(0x216)]){if(!this[_0x392bb3(0x249)]){this[_0x392bb3(0x4a2)][_0x392bb3(0x42e)](_0x392bb3(0x33f),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo']['stopTime']=performance[_0x392bb3(0x3d6)](),this['_telemetryInfo'][_0x392bb3(0x238)]=this[_0x392bb3(0x249)][_0x392bb3(0x388)]-this[_0x392bb3(0x249)][_0x392bb3(0x20e)],this['_telemetryService'][_0x392bb3(0x39f)](_0x392bb3(0x464),this[_0x392bb3(0x249)]),this['_telemetryInfo']=null;}}[_0x545128(0x29a)](){const _0x595909=_0x545128;this[_0x595909(0x249)]=null;}};S=b([y(0x2,n[_0x545128(0x368)]),y(0x3,n['IConfigService']),y(0x4,(0x0,n[_0x545128(0x304)])(x)),y(0x5,(0x0,n['Inject'])(se)),y(0x6,(0x0,n[_0x545128(0x304)])(v)),y(0x7,(0x0,n[_0x545128(0x2da)])(s[_0x545128(0x1ea)]))],S);const C=(0x0,n[_0x545128(0x2c4)])(_0x545128(0x3ce));function de(_0x5b0a37){const _0x4cd74d=_0x545128;return _0x4cd74d(0x373)+_0x5b0a37;}function fe(_0x8f2404){const _0x4e502a=_0x545128;let {unitID:_0x56161b,mutations:_0x380976}=_0x8f2404;return{'unitId':_0x56161b,'subUnitId':_0x380976[_0x4e502a(0x38a)]>0x0?_0x380976[0x0]['params'][_0x4e502a(0x4ae)]:null};}let w=class{constructor(_0x3d5e26,_0x7c48c,_0x246550){const _0x3d4c43=_0x545128;this[_0x3d4c43(0x2f9)]=_0x3d5e26,this[_0x3d4c43(0x2ee)]=_0x7c48c,this[_0x3d4c43(0x3c8)]=_0x246550;}[_0x545128(0x25c)](_0x20f805){const _0x8a10e7=_0x545128;var _0x5cc387,_0x3eeac4;let _0x94f6a4=this[_0x8a10e7(0x2f9)][_0x8a10e7(0x2f7)](i[_0x8a10e7(0x35a)]),{unitId:_0x5071cd,subUnitId:_0x40dabf}=fe(_0x20f805),_0xb225cb=_0x94f6a4==null?void 0x0:_0x94f6a4['getWorkbookSelections'](_0x5071cd)[_0x8a10e7(0x33e)](),_0x3be61=(_0x5cc387=this[_0x8a10e7(0x3c8)][_0x8a10e7(0x200)](_0x5071cd))==null||(_0x5cc387=_0x5cc387[_0x8a10e7(0x36a)]())==null?void 0x0:_0x5cc387['getSheetId']();if(_0xb225cb[_0x8a10e7(0x38a)]===0x0||!_0x5071cd||!_0x40dabf)return;let _0x64d1d1=[{'id':i[_0x8a10e7(0x4da)]['id'],'params':{'unitId':_0x5071cd,'subUnitId':_0x3be61,'selections':n[_0x8a10e7(0x340)][_0x8a10e7(0x4cf)](_0xb225cb)}}],_0x427b5b=this['_transformService'][_0x8a10e7(0x23b)](_0x20f805,_0x64d1d1);if(!(0x0,t[_0x8a10e7(0x2b5)])(_0x427b5b))throw _0x427b5b[_0x8a10e7(0x42e)];let _0x3641df=(_0x3eeac4=_0x427b5b[_0x8a10e7(0x2e8)][0x0])==null||(_0x3eeac4=_0x3eeac4[_0x8a10e7(0x36d)])==null?void 0x0:_0x3eeac4[_0x8a10e7(0x2ed)];if(Array[_0x8a10e7(0x32e)](_0x3641df)&&_0x3641df[_0x8a10e7(0x38a)]){if(_0x3641df[_0x8a10e7(0x38a)]===_0x64d1d1[0x0][_0x8a10e7(0x36d)][_0x8a10e7(0x2ed)][_0x8a10e7(0x38a)]&&_0x3641df[_0x8a10e7(0x441)]((_0x23f1b5,_0x1cad6a)=>n[_0x8a10e7(0x4bf)][_0x8a10e7(0x4d7)](_0x23f1b5['range'],_0x64d1d1[0x0][_0x8a10e7(0x36d)][_0x8a10e7(0x2ed)][_0x1cad6a][_0x8a10e7(0x276)])))return;this[_0x8a10e7(0x2f9)][_0x8a10e7(0x2f7)](n[_0x8a10e7(0x419)])[_0x8a10e7(0x3e3)](i[_0x8a10e7(0x4da)]['id'],{'unitId':_0x5071cd,'subUnitId':_0x3be61,'selections':_0x3641df});}}};w=b([y(0x0,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x24d)])),y(0x1,t[_0x545128(0x35b)]),y(0x2,n[_0x545128(0x4c4)])],w);const T=(0x0,n[_0x545128(0x2c4)])('univer-pro.collaboration-client.single-active-unit-service');let pe=function(_0xf91317){const _0x26fb87=_0x545128;return _0xf91317[_0xf91317[_0x26fb87(0x446)]=0x0]=_0x26fb87(0x446),_0xf91317[_0xf91317[_0x26fb87(0x432)]=0x1]=_0x26fb87(0x432),_0xf91317;}({});function me(_0x4e0689){const _0x40f3f0=_0x545128;var _0x5448d5;return!!((_0x5448d5=_0x4e0689[_0x40f3f0(0x36d)])!=null&&_0x5448d5[_0x40f3f0(0x29c)]);}const he=new Set([i[_0x545128(0x3e2)]['id']]),ge=new Set([l[_0x545128(0x422)]['id'],l[_0x545128(0x4a8)]['id'],l[_0x545128(0x1f4)]['id'],l['RemoveSlidePageMutation']['id']]);function _e(_0x54fffc,_0x39fc0f=he){const _0x31c70a=_0x545128;let _0x40c9e3=[];for(let _0x34d741 of _0x54fffc){if(_0x39fc0f[_0x31c70a(0x44f)](_0x34d741['id'])){if(_0x40c9e3[_0x31c70a(0x38a)]>0x0)break;_0x40c9e3[_0x31c70a(0x3f5)](_0x34d741);break;}if(me(_0x34d741)){if(_0x40c9e3['length']>0x0)break;_0x40c9e3[_0x31c70a(0x3f5)](_0x34d741);break;}_0x40c9e3[_0x31c70a(0x3f5)](_0x34d741);}return _0x40c9e3;}function ve(_0x348594,_0x4eae4d,_0x5a523c,_0x351534,_0x330ced){const _0x5a42c0=_0x545128;var _0x44e286,_0xd4bbc,_0x8eef21,_0x334a3a;let _0x4a289f=_e(_0x348594),_0x36dfde=(_0x44e286=(_0xd4bbc=_0x330ced[_0x5a42c0(0x40a)]())==null?void 0x0:_0xd4bbc[_0x5a42c0(0x28c)])==null?_0x5a42c0(0x2d4):_0x44e286,_0x16fcf1=(_0x8eef21=(_0x334a3a=_0x330ced[_0x5a42c0(0x40a)]())==null?void 0x0:_0x334a3a[_0x5a42c0(0x33c)])==null?_0x5a42c0(0x2d4):_0x8eef21;return{'changeset':{'unitID':_0x4eae4d,'type':(0x0,t[_0x5a42c0(0x486)])(_0x5a523c[_0x5a42c0(0x206)](_0x4eae4d)),'baseRev':_0x351534['getCurrentRevOfUnit'](_0x4eae4d),'revision':0x0,'userID':_0x36dfde,'memberID':_0x16fcf1,'mutations':_0x4a289f},'pendingMutations':_0x348594[_0x5a42c0(0x2f6)](_0x4a289f[_0x5a42c0(0x38a)])};}const ye=ve;function be(_0x14d788,_0x2e1b20,_0x32a955,_0x5e9f78,_0x5d1b56){return ve(_0x14d788,_0x2e1b20,_0x32a955,_0x5e9f78,_0x5d1b56);}function xe(_0x5bcced,_0x59e985,_0x36210f,_0x376013,_0x2cf638){const _0xfe21ce=_0x545128;var _0x2a779d,_0x172b70,_0x2ac63d,_0x51f7cf;let _0x5ed99c=_e(_0x5bcced,ge),_0x1cdf52=(_0x2a779d=(_0x172b70=_0x2cf638[_0xfe21ce(0x40a)]())==null?void 0x0:_0x172b70[_0xfe21ce(0x28c)])==null?_0xfe21ce(0x2d4):_0x2a779d,_0x14292c=(_0x2ac63d=(_0x51f7cf=_0x2cf638[_0xfe21ce(0x40a)]())==null?void 0x0:_0x51f7cf['memberID'])==null?'unknown':_0x2ac63d;return{'changeset':{'unitID':_0x59e985,'type':(0x0,t[_0xfe21ce(0x486)])(_0x36210f[_0xfe21ce(0x206)](_0x59e985)),'baseRev':_0x376013[_0xfe21ce(0x4ab)](_0x59e985),'revision':0x0,'userID':_0x1cdf52,'memberID':_0x14292c,'mutations':_0x5ed99c},'pendingMutations':_0x5bcced[_0xfe21ce(0x2f6)](_0x5ed99c[_0xfe21ce(0x38a)])};}function Se(_0x22a945,_0x176c43,_0x5672b8,_0x300cb3,_0x5a5a87){const _0xa1ecd9=_0x545128;var _0x22bc8d,_0x2d043e,_0x3768b6,_0x73df5e;let _0x4bc5ef=_0x22a945[_0xa1ecd9(0x29b)]((_0x1e83b7,_0x2b7e64)=>{const _0x41ced2=_0xa1ecd9;let _0x526705=_0x1e83b7[_0x1e83b7['length']-0x1],{id:_0x1ddca3}=_0x526705==null?{}:_0x526705,{id:_0x5b5698,type:_0x4cd8a7}=_0x2b7e64,_0x5c33b4=_0x2b7e64[_0x41ced2(0x36d)];if(_0x1ddca3&&_0x1ddca3!==_0x5b5698)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x1ddca3+_0x41ced2(0x3a9)+_0x5b5698+'.');if(!_0x526705)return[{'id':_0x5b5698,'type':_0x4cd8a7,'params':{'unitId':_0x5c33b4[_0x41ced2(0x222)],'textRanges':_0x5c33b4[_0x41ced2(0x311)],'actions':_0x5c33b4[_0x41ced2(0x449)]}}];let _0x3725d5=_0x526705[_0x41ced2(0x36d)];return Ce(_0x3725d5[_0x41ced2(0x449)],_0x5c33b4[_0x41ced2(0x449)])?[..._0x1e83b7[_0x41ced2(0x2f6)](0x0,-0x1),{..._0x526705,'id':_0x5b5698,'type':_0x4cd8a7,'params':{'unitId':_0x5c33b4['unitId'],'textRanges':_0x5c33b4[_0x41ced2(0x311)],'actions':n[_0x41ced2(0x4cb)]['compose'](_0x3725d5['actions'],_0x5c33b4[_0x41ced2(0x449)])}}]:[..._0x1e83b7,{'id':_0x5b5698,'type':_0x4cd8a7,'params':{'unitId':_0x5c33b4['unitId'],'textRanges':_0x5c33b4[_0x41ced2(0x311)],'actions':_0x5c33b4[_0x41ced2(0x449)]}}];},[]),_0x1cae03=(_0x22bc8d=(_0x2d043e=_0x5a5a87[_0xa1ecd9(0x40a)]())==null?void 0x0:_0x2d043e['userID'])==null?'unknown':_0x22bc8d,_0x23397d=(_0x3768b6=(_0x73df5e=_0x5a5a87[_0xa1ecd9(0x40a)]())==null?void 0x0:_0x73df5e[_0xa1ecd9(0x33c)])==null?_0xa1ecd9(0x2d4):_0x3768b6;return{'changeset':{'unitID':_0x176c43,'type':(0x0,t['mapDocumentTypeToUniverInstanceType'])(_0x5672b8['getUnitType'](_0x176c43)),'baseRev':_0x300cb3[_0xa1ecd9(0x4ab)](_0x176c43),'revision':0x0,'userID':_0x1cae03,'memberID':_0x23397d,'mutations':_0x4bc5ef},'pendingMutations':_0x22a945['slice'](_0x22a945[_0xa1ecd9(0x38a)])};}function Ce(_0x37bbde,_0x48ac42){return we(_0x37bbde)&&we(_0x48ac42)&&!Te(_0x37bbde)&&!Te(_0x48ac42);}function we(_0x1a196f){const _0x43b03f=_0x545128;return Ee(_0x1a196f)['some'](_0x4e0a82=>De(_0x4e0a82)&&_0x4e0a82['et']===_0x43b03f(0x366));}function Te(_0x281866){const _0x471689=_0x545128;return Ee(_0x281866)[_0x471689(0x39b)](_0x102c2f=>Array[_0x471689(0x32e)](_0x102c2f)||typeof _0x102c2f==_0x471689(0x2f0)||typeof _0x102c2f==_0x471689(0x2e0));}function Ee(_0x457ffe){const _0x51f827=_0x545128;if(!Array[_0x51f827(0x32e)](_0x457ffe))return[];let _0x37f818=_0x457ffe['includes'](_0x51f827(0x3b3))?_0x457ffe:_0x457ffe[_0x51f827(0x467)](_0x4e0dd4=>Array[_0x51f827(0x32e)](_0x4e0dd4)&&_0x4e0dd4[_0x51f827(0x4ac)](_0x51f827(0x3b3)));if(!Array[_0x51f827(0x32e)](_0x37f818))return[];let _0x591f07=_0x37f818[_0x51f827(0x23a)](_0x51f827(0x3b3));return _0x591f07===-0x1?[]:_0x37f818[_0x51f827(0x2f6)](_0x591f07+0x1);}function De(_0x221840){const _0x3a8167=_0x545128;return typeof _0x221840==_0x3a8167(0x305)&&!!_0x221840&&!Array[_0x3a8167(0x32e)](_0x221840);}function Oe(_0x5c0e41,_0x56876a){const _0x4a44dd=_0x545128;let _0x391c91=new a[(_0x4a44dd(0x3d8))](0x1);return setTimeout(()=>_0x391c91[_0x4a44dd(0x2c2)](_0x56876a),_0x5c0e41),_0x391c91['asObservable']()[_0x4a44dd(0x259)]((0x0,a[_0x4a44dd(0x344)])(0x1));}var E,D,O;let ke=function(_0x4b559d){const _0x373340=_0x545128;return _0x4b559d['NOT_COLLAB']='not_collab',_0x4b559d['SYNCED']=_0x373340(0x41b),_0x4b559d[_0x373340(0x299)]='pending',_0x4b559d[_0x373340(0x394)]=_0x373340(0x1ed),_0x4b559d[_0x373340(0x451)]=_0x373340(0x37b),_0x4b559d['FETCH_MISS']=_0x373340(0x380),_0x4b559d[_0x373340(0x2b0)]=_0x373340(0x217),_0x4b559d[_0x373340(0x412)]='offline',_0x4b559d;}({});const Ae=0x4e20,je=0x2bf20;var k=class{constructor(_0xbcff15,_0x200485,_0x4c0960,_0x4a9905,_0x50d24b,_0x414eb1,_0x39ccd5,_0x199e8d,_0x1a5842){const _0x37de11=_0x545128;this[_0x37de11(0x2cd)]=_0xbcff15,this['type']=_0x200485,this['_handler']=_0x50d24b,this['_commandService']=_0x414eb1,this[_0x37de11(0x487)]=_0x39ccd5,this['_revisionService']=_0x199e8d,this[_0x37de11(0x3ea)]=_0x1a5842,_(this,_0x37de11(0x226),null),_(this,_0x37de11(0x264),[]),this['_awaitingChangeset']=_0x4c0960,this['_pendingMutations']=_0x4a9905;}[_0x545128(0x4cd)](_0x72aa7e){const _0x4dfd9d=_0x545128;let _0x181663=this[_0x4dfd9d(0x258)][_0x4dfd9d(0x4ab)](this[_0x4dfd9d(0x2cd)]);return _0x72aa7e[_0x4dfd9d(0x233)]>_0x181663+0x1?(this[_0x4dfd9d(0x499)][_0x4dfd9d(0x2fc)]({'from':_0x181663,'to':_0x72aa7e[_0x4dfd9d(0x233)]-0x1}),!0x0):!0x1;}[_0x545128(0x3da)](_0x342bdd){const _0x27a196=_0x545128;this[_0x27a196(0x487)][_0x27a196(0x2a9)](this[_0x27a196(0x2cd)],_0x342bdd);}[_0x545128(0x309)](_0x50e7db){const _0x29df43=_0x545128;var _0xfa10f2,_0x73f8df;(_0xfa10f2=(_0x73f8df=this['_handler'])[_0x29df43(0x4a4)])==null||_0xfa10f2['call'](_0x73f8df,_0x50e7db);}[_0x545128(0x46d)](_0x19e59e){const _0x3ad707=_0x545128;var _0x5b385e,_0x329258;return(_0x5b385e=(_0x329258=this[_0x3ad707(0x499)])[_0x3ad707(0x4ce)])==null?void 0x0:_0x5b385e[_0x3ad707(0x339)](_0x329258,_0x19e59e);}[_0x545128(0x492)](_0x2e3b51){const _0x5d0b13=_0x545128;var _0x11e703,_0x4fb706;return(_0x11e703=(_0x4fb706=this[_0x5d0b13(0x499)])[_0x5d0b13(0x227)])==null?void 0x0:_0x11e703[_0x5d0b13(0x339)](_0x4fb706,_0x2e3b51);}[_0x545128(0x37a)](_0x520d02){const _0x1f4c41=_0x545128;var _0x1ff86f,_0x18a1af,_0x3136d7;return(_0x1ff86f=(_0x18a1af=(_0x3136d7=this[_0x1f4c41(0x499)])[_0x1f4c41(0x369)])==null?void 0x0:_0x18a1af[_0x1f4c41(0x339)](_0x3136d7,_0x520d02))==null?_0x520d02:_0x1ff86f;}['_transformRemoteChangesetByStateCache'](_0x4fa5c9){const _0x45d1c4=_0x545128;var _0x32ad48,_0x5e43b5,_0x2114ca;return(_0x32ad48=(_0x5e43b5=(_0x2114ca=this[_0x45d1c4(0x499)])[_0x45d1c4(0x2c1)])==null?void 0x0:_0x5e43b5[_0x45d1c4(0x339)](_0x2114ca,_0x4fa5c9))==null?_0x4fa5c9:_0x32ad48;}[_0x545128(0x4ca)](_0x45ad63){const _0x542c0d=_0x545128;if(this[_0x542c0d(0x393)]===n['UniverInstanceType'][_0x542c0d(0x42a)]){let {unitID:_0x33b5e8,mutations:_0x212f95,memberID:_0x26b5ab}=_0x45ad63,_0x36ea1f=_0x212f95[_0x542c0d(0x38a)]>0x0?_0x212f95[0x0]['params']['textRanges']:[];if(Array['isArray'](_0x36ea1f)&&_0x36ea1f[_0x542c0d(0x38a)]>0x0){var _0x3e3486,_0x20c575;(_0x3e3486=(_0x20c575=this[_0x542c0d(0x499)])['onSyncEditingCollabCursor'])==null||_0x3e3486['call'](_0x20c575,{'unitID':_0x33b5e8,'memberID':_0x26b5ab,'textRanges':_0x36ea1f});}}}[_0x545128(0x218)](){const _0x53ce44=_0x545128;var _0x5860f8;(_0x5860f8=this[_0x53ce44(0x3ea)])==null||_0x5860f8[_0x53ce44(0x4c5)](this['unitID'],this[_0x53ce44(0x393)],this[_0x53ce44(0x226)],this[_0x53ce44(0x264)]);}[_0x545128(0x418)](){const _0x1688b4=_0x545128;return this[_0x1688b4(0x258)][_0x1688b4(0x4ab)](this[_0x1688b4(0x2cd)]);}['_incrementRevisionNumber'](){const _0x2a1bb6=_0x545128;this['_revisionService'][_0x2a1bb6(0x48a)](this[_0x2a1bb6(0x2cd)]);}[_0x545128(0x3ac)](_0x17bf00){const _0x5c5a85=_0x545128;let _0x42c919=this[_0x5c5a85(0x37a)](_0x17bf00);_0x42c919=this['_transformRemoteChangesetByStateCache'](_0x42c919);let _0x2277b0=(0x0,n[_0x5c5a85(0x21d)])(_0x42c919[_0x5c5a85(0x329)],this[_0x5c5a85(0x2a6)],{'fromCollab':!0x0});if(!_0x2277b0['result']){var _0x41b14e;throw _0x2277b0[_0x5c5a85(0x42e)]instanceof Error?_0x2277b0[_0x5c5a85(0x42e)]:Error((_0x41b14e=_0x2277b0[_0x5c5a85(0x42e)])==null?_0x5c5a85(0x262):_0x41b14e);}this[_0x5c5a85(0x46d)](_0x42c919),this[_0x5c5a85(0x492)](_0x42c919),this['_transformUndoredo'](_0x17bf00),this[_0x5c5a85(0x309)](_0x42c919),this['_syncEditingCollabCursor'](_0x42c919),this[_0x5c5a85(0x3aa)]();}};let A=class extends k{constructor(_0x3736ec,_0x4aab34,_0x397c03,_0x4a8850,_0x13e275,_0x40c3f6,_0x75a9e6,_0x4a9ddb,_0x56ca36,_0x5e9934){const _0x213671=_0x545128;super(_0x3736ec,_0x4aab34,null,[],_0x397c03,_0x75a9e6,_0x40c3f6,_0x4a8850,_0x5e9934),this[_0x213671(0x2f9)]=_0x13e275,this['_logService']=_0x4a9ddb,this[_0x213671(0x2ee)]=_0x56ca36,this[_0x213671(0x2e6)]=_0x5e9934,_(this,_0x213671(0x2f2),_0x213671(0x41b));}['appendMutation'](_0x102ccd){const _0x1662c6=_0x545128;let _0x5e2ddc=this['_injector'][_0x1662c6(0x2f8)](j,this[_0x1662c6(0x2cd)],this[_0x1662c6(0x393)],[_0x102ccd],this[_0x1662c6(0x499)]);return _0x5e2ddc[_0x1662c6(0x39a)](),_0x5e2ddc[_0x1662c6(0x218)](),_0x5e2ddc;}[_0x545128(0x4d9)](_0x2e870b){const _0x342e60=_0x545128;if(this[_0x342e60(0x4cd)](_0x2e870b))return this[_0x342e60(0x2f9)]['createInstance'](I,this[_0x342e60(0x2cd)],this['type'],null,[],null,[_0x2e870b],this[_0x342e60(0x499)]);try{let _0x16bf24=this['_transformService'][_0x342e60(0x23b)](_0x2e870b,[t[_0x342e60(0x4d8)]]);if((0x0,t['isTransformMutationsWithChangesetSuccess'])(_0x16bf24)){let {c1Prime:_0x33f2f9}=_0x16bf24;return this['_executeRemoteChangeset'](_0x33f2f9),this;}throw _0x16bf24[_0x342e60(0x42e)];}catch(_0x71a264){return this['_logService']['error'](_0x71a264),this[_0x342e60(0x30a)](!0x1);}}[_0x545128(0x30a)](_0x4ead36){const _0x936486=_0x545128;return this[_0x936486(0x2f9)][_0x936486(0x2f8)](P,this[_0x936486(0x2cd)],this[_0x936486(0x393)],null,[],this[_0x936486(0x499)],_0x4ead36);}[_0x545128(0x336)](_0x3ab6c3){const _0x365e88=_0x545128;if(_0x3ab6c3[_0x365e88(0x233)]<=this[_0x365e88(0x418)]())return this;throw Error(_0x365e88(0x450));}[_0x545128(0x3b6)](){const _0x4bdd32=_0x545128;throw Error(_0x4bdd32(0x20b));}[_0x545128(0x1e6)](){return this;}[_0x545128(0x22a)](){const _0x4e9533=_0x545128;return this[_0x4e9533(0x2f9)][_0x4e9533(0x2f8)](F,this[_0x4e9533(0x2cd)],this['type'],null,[],this[_0x4e9533(0x499)]);}['toggleOnline'](){return this;}[_0x545128(0x204)](){const _0x2c4619=_0x545128;throw Error(_0x2c4619(0x320));}['fetchMiss'](){const _0x3a3a6b=_0x545128;let _0x19cb02=this[_0x3a3a6b(0x258)][_0x3a3a6b(0x4ab)](this['unitID']);return this[_0x3a3a6b(0x499)][_0x3a3a6b(0x2fc)]({'from':_0x19cb02,'to':0x0}),this[_0x3a3a6b(0x2f9)][_0x3a3a6b(0x2f8)](I,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};A=b([y(0x3,(0x0,n['Inject'])(t[_0x545128(0x296)])),y(0x4,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x24d)])),y(0x5,n[_0x545128(0x328)]),y(0x6,n[_0x545128(0x419)]),y(0x7,n['ILogService']),y(0x8,t[_0x545128(0x35b)]),y(0x9,(0x0,n['Optional'])(C))],A);let j=E=class extends k{constructor(_0x95bf2b,_0x1746fb,_0x2014d7,_0x288330,_0x10991f,_0xc019f5,_0x466de2,_0x1dbc8b,_0x229ec2,_0x2a1e4d,_0x11d16a,_0xb7fc69,_0x5aa7da,_0x566a68){const _0x2756ee=_0x545128;super(_0x95bf2b,_0x1746fb,null,_0x2014d7,_0x288330,_0x229ec2,_0x5aa7da,_0xc019f5,_0x566a68),this[_0x2756ee(0x2f9)]=_0x10991f,this['_memberService']=_0x466de2,this[_0x2756ee(0x4a2)]=_0x1dbc8b,this[_0x2756ee(0x2e4)]=_0x2a1e4d,this['_transformService']=_0x11d16a,this[_0x2756ee(0x1e7)]=_0xb7fc69,_(this,'status','pending'),_(this,_0x2756ee(0x4bb),null),_(this,_0x2756ee(0x3ec),null);}[_0x545128(0x4d0)](_0x5675d4){const _0x38b5b5=_0x545128;return this[_0x38b5b5(0x264)][_0x38b5b5(0x3f5)](_0x5675d4),this[_0x38b5b5(0x218)](),this;}[_0x545128(0x4d9)](_0x46c8f3){const _0x2e8020=_0x545128;if(this[_0x2e8020(0x4cd)](_0x46c8f3))return this[_0x2e8020(0x42b)](),this[_0x2e8020(0x2f9)][_0x2e8020(0x2f8)](I,this['unitID'],this['type'],null,this[_0x2e8020(0x264)],null,[_0x46c8f3],this[_0x2e8020(0x499)]);try{let _0xa777c3=this[_0x2e8020(0x2ee)]['transformMutationsWithChangeset'](_0x46c8f3,this['_pendingMutations']);if((0x0,t[_0x2e8020(0x2b5)])(_0xa777c3)){let {c1Prime:_0x4adc4f,m2Prime:_0x512810}=_0xa777c3;this[_0x2e8020(0x3ac)](_0x4adc4f);let _0x4004cc=this[_0x2e8020(0x2f9)][_0x2e8020(0x2f8)](E,this[_0x2e8020(0x2cd)],this[_0x2e8020(0x393)],_0x512810,this[_0x2e8020(0x499)]);this[_0x2e8020(0x42b)]();let _0x5a33d4=new Date()[_0x2e8020(0x410)](),_0x5a3f7d=this['_scheduleCompleteTimestamp']?Math[_0x2e8020(0x334)](this['_scheduleCompleteTimestamp']-_0x5a33d4,0x0):this[_0x2e8020(0x395)]();return _0x4004cc[_0x2e8020(0x39a)](_0x5a3f7d),_0x4004cc;}throw _0xa777c3[_0x2e8020(0x42e)];}catch(_0x2c0dc9){return this[_0x2e8020(0x4a2)]['error'](_0x2c0dc9),this['_onConflict'](!0x1);}}[_0x545128(0x336)](_0x853077){const _0x57143b=_0x545128;if(_0x853077[_0x57143b(0x233)]<=this[_0x57143b(0x418)]())return this;throw Error(_0x57143b(0x2bc));}[_0x545128(0x3b6)](){const _0x367953=_0x545128;throw Error(_0x367953(0x3c7));}[_0x545128(0x1e6)](){return this;}[_0x545128(0x22a)](){const _0x4eac67=_0x545128;return this[_0x4eac67(0x42b)](),this['_injector'][_0x4eac67(0x2f8)](F,this['unitID'],this[_0x4eac67(0x393)],null,this[_0x4eac67(0x264)],this['_handler']);}[_0x545128(0x349)](){return this;}['_schedule'](_0x4b7ad2){const _0xe4feab=_0x545128;let _0x240375=_0x4b7ad2==null?this[_0xe4feab(0x395)]():_0x4b7ad2;this[_0xe4feab(0x4bb)]=new Date()[_0xe4feab(0x410)]()+_0x240375,this['_sendingTimer']=setTimeout(()=>{const _0x2adbbb=_0xe4feab;this[_0x2adbbb(0x42b)]();let _0x4853b6=null;switch(this[_0x2adbbb(0x393)]){case n[_0x2adbbb(0x251)][_0x2adbbb(0x424)]:_0x4853b6=ye(this[_0x2adbbb(0x264)],this[_0x2adbbb(0x2cd)],this[_0x2adbbb(0x1e7)],this[_0x2adbbb(0x258)],this[_0x2adbbb(0x2d3)]);break;case n[_0x2adbbb(0x251)]['UNIVER_DOC']:_0x4853b6=this[_0x2adbbb(0x264)][_0x2adbbb(0x441)](_0x5ae2d0=>_0x5ae2d0['id']===r[_0x2adbbb(0x46a)]['id'])?Se(this['_pendingMutations'],this[_0x2adbbb(0x2cd)],this['_univerInstanceService'],this[_0x2adbbb(0x258)],this['_memberService']):ye(this[_0x2adbbb(0x264)],this[_0x2adbbb(0x2cd)],this[_0x2adbbb(0x1e7)],this[_0x2adbbb(0x258)],this[_0x2adbbb(0x2d3)]);break;case n[_0x2adbbb(0x251)][_0x2adbbb(0x437)]:_0x4853b6=xe(this[_0x2adbbb(0x264)],this[_0x2adbbb(0x2cd)],this[_0x2adbbb(0x1e7)],this[_0x2adbbb(0x258)],this[_0x2adbbb(0x2d3)]);break;case n['UniverInstanceType'][_0x2adbbb(0x291)]:_0x4853b6=be(this[_0x2adbbb(0x264)],this['unitID'],this['_univerInstanceService'],this[_0x2adbbb(0x258)],this[_0x2adbbb(0x2d3)]);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2adbbb(0x393)]+_0x2adbbb(0x257));}let {changeset:_0x5c2156,pendingMutations:_0x40fa1e}=_0x4853b6;this[_0x2adbbb(0x499)][_0x2adbbb(0x1ef)](_0x5c2156);let _0x32eb87=_0x40fa1e[_0x2adbbb(0x38a)]?this[_0x2adbbb(0x2f9)][_0x2adbbb(0x2f8)](N,this[_0x2adbbb(0x2cd)],this[_0x2adbbb(0x393)],_0x5c2156,_0x40fa1e,this[_0x2adbbb(0x499)],void 0x0):this[_0x2adbbb(0x2f9)][_0x2adbbb(0x2f8)](M,this[_0x2adbbb(0x2cd)],this[_0x2adbbb(0x393)],_0x5c2156,this[_0x2adbbb(0x499)]);_0x32eb87[_0x2adbbb(0x218)](),this[_0x2adbbb(0x499)][_0x2adbbb(0x49a)](this,_0x32eb87);},_0x240375);}['_getSendChangesetTimeout'](){const _0x326dae=_0x545128;var _0x567dcb;let _0xc15efc=this[_0x326dae(0x2e4)]['getConfig'](h);return(_0x567dcb=_0xc15efc==null?void 0x0:_0xc15efc['sendChangesetTimeout'])==null?0x7d0:_0x567dcb;}[_0x545128(0x204)](){const _0x2b9699=_0x545128;throw Error(_0x2b9699(0x4ad));}[_0x545128(0x42b)](){const _0x3440a1=_0x545128;this[_0x3440a1(0x3ec)]!=null&&(clearTimeout(this[_0x3440a1(0x3ec)]),this[_0x3440a1(0x3ec)]=null);}['_onConflict'](_0x98ba){const _0x12bdd1=_0x545128;return this[_0x12bdd1(0x42b)](),this[_0x12bdd1(0x2f9)][_0x12bdd1(0x2f8)](P,this[_0x12bdd1(0x2cd)],this['type'],null,this[_0x12bdd1(0x264)],this[_0x12bdd1(0x499)],_0x98ba);}};j=E=b([y(0x4,(0x0,n['Inject'])(n['Injector'])),y(0x5,(0x0,n[_0x545128(0x304)])(t['RevisionService'])),y(0x6,(0x0,n[_0x545128(0x304)])(x)),y(0x7,n[_0x545128(0x368)]),y(0x8,n['ICommandService']),y(0x9,n[_0x545128(0x378)]),y(0xa,t[_0x545128(0x35b)]),y(0xb,n[_0x545128(0x4c4)]),y(0xc,n[_0x545128(0x328)]),y(0xd,(0x0,n[_0x545128(0x2da)])(C))],j);let M=D=class extends k{constructor(_0xc7688c,_0x22d53c,_0x45b7bb,_0x5ace7d,_0x410b56,_0x341198,_0x56444c,_0x159119,_0x1bfa76,_0x237da4,_0x3e651f){const _0x3b5873=_0x545128;super(_0xc7688c,_0x22d53c,_0x45b7bb,[],_0x5ace7d,_0x56444c,_0x237da4,_0x341198,_0x3e651f),this[_0x3b5873(0x2f9)]=_0x410b56,this['_logService']=_0x159119,this[_0x3b5873(0x2ee)]=_0x1bfa76,_(this,'status',_0x3b5873(0x1ed)),_(this,_0x3b5873(0x33d),0x0),_(this,'_maxTotalRetryTimeout',0x0),_(this,_0x3b5873(0x338),void 0x0),_(this,_0x3b5873(0x253),void 0x0);}['appendMutation'](_0x5b227f){const _0x46fd30=_0x545128;this[_0x46fd30(0x42b)]();let _0x431fc3=this['_injector'][_0x46fd30(0x2f8)](N,this['unitID'],this[_0x46fd30(0x393)],this[_0x46fd30(0x226)],[_0x5b227f],this[_0x46fd30(0x499)],this['_resendTimer']);return _0x431fc3[_0x46fd30(0x218)](),_0x431fc3;}[_0x545128(0x4d9)](_0x91985){const _0x5df465=_0x545128;if(this[_0x5df465(0x4cd)](_0x91985))return this[_0x5df465(0x42b)](),this[_0x5df465(0x2f9)][_0x5df465(0x2f8)](I,this[_0x5df465(0x2cd)],this[_0x5df465(0x393)],this['_awaitingChangeset'],[],null,[_0x91985],this[_0x5df465(0x499)]);try{let _0x2ccd83=this[_0x5df465(0x2ee)][_0x5df465(0x333)]([_0x91985],[this[_0x5df465(0x226)]],!0x1);if((0x0,t[_0x5df465(0x241)])(_0x2ccd83)){let {c1Prime:_0x464043,c2Prime:_0x5102c9}=_0x2ccd83;this[_0x5df465(0x3ac)](_0x464043[0x0]),_0x5102c9[0x0][_0x5df465(0x421)]=this[_0x5df465(0x418)](),this[_0x5df465(0x42b)]();let _0x2284b4=this[_0x5df465(0x2f9)][_0x5df465(0x2f8)](D,this[_0x5df465(0x2cd)],this[_0x5df465(0x393)],_0x5102c9[0x0],this[_0x5df465(0x499)]);return _0x2284b4[_0x5df465(0x218)](),_0x2284b4;}throw _0x2ccd83[_0x5df465(0x42e)];}catch(_0x4e0cd1){return this[_0x5df465(0x4a2)][_0x5df465(0x42e)](_0x4e0cd1),this[_0x5df465(0x30a)](!0x1);}}[_0x545128(0x336)](_0xb2c673){const _0x381142=_0x545128;this['_clearScheduledTask']();let _0xed7f5e=this[_0x381142(0x258)][_0x381142(0x4ab)](this['unitID']);if(_0xb2c673[_0x381142(0x233)]<=_0xed7f5e)return this;if(this[_0x381142(0x4cd)](_0xb2c673))return this[_0x381142(0x2f9)][_0x381142(0x2f8)](I,this[_0x381142(0x2cd)],this[_0x381142(0x393)],this[_0x381142(0x226)],[],_0xb2c673[_0x381142(0x233)],[],this[_0x381142(0x499)]);this[_0x381142(0x3aa)]();let _0xd5fc42=this[_0x381142(0x2f9)][_0x381142(0x2f8)](A,this['unitID'],this[_0x381142(0x393)],this[_0x381142(0x499)]);return _0xd5fc42['_updateLocalCache'](),_0xd5fc42;}[_0x545128(0x3b6)](_0x5f1efc){const _0x2e5dc2=_0x545128;return this['_onConflict'](!!(_0x5f1efc!=null&&_0x5f1efc[_0x2e5dc2(0x447)]));}['onRemoteRetry'](_0xe94aa3){const _0x1a8445=_0x545128;return this[_0x1a8445(0x352)]>je?this[_0x1a8445(0x22a)]():(this['_resendTimer']=Oe(this[_0x1a8445(0x33d)],{'timeout':this[_0x1a8445(0x33d)],'reqId':_0xe94aa3[_0x1a8445(0x43b)]}),this[_0x1a8445(0x253)]=this['_resendTimer']['subscribe'](({reqId:_0x3ae3af,timeout:_0x4aacaf})=>{this['_resendWithTimeout'](_0x3ae3af,_0x4aacaf);}),this);}[_0x545128(0x22a)](){const _0x529e4a=_0x545128;return this[_0x529e4a(0x42b)](),this[_0x529e4a(0x2f9)][_0x529e4a(0x2f8)](F,this[_0x529e4a(0x2cd)],this[_0x529e4a(0x393)],this['_awaitingChangeset'],[],this[_0x529e4a(0x499)]);}[_0x545128(0x349)](){return this;}[_0x545128(0x204)](){const _0x2a35fb=_0x545128;this[_0x2a35fb(0x499)]['onSendChangeset'](this[_0x2a35fb(0x226)]);}[_0x545128(0x30a)](_0x13d95e){const _0x2d5f1d=_0x545128;return this[_0x2d5f1d(0x42b)](),this['_injector'][_0x2d5f1d(0x2f8)](P,this[_0x2d5f1d(0x2cd)],this[_0x2d5f1d(0x393)],this[_0x2d5f1d(0x226)],[],this[_0x2d5f1d(0x499)],_0x13d95e);}[_0x545128(0x46e)](_0x311d0c,_0x4ffd84){const _0x13ff45=_0x545128;var _0x51137f;_0x311d0c===((_0x51137f=this[_0x13ff45(0x226)])==null?void 0x0:_0x51137f[_0x13ff45(0x43b)])&&(this[_0x13ff45(0x204)](),this[_0x13ff45(0x33d)]=_0x4ffd84===0x0?0x3e8:Math[_0x13ff45(0x448)](_0x4ffd84*0x2,Ae),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x545128(0x42b)](){const _0x4da01f=_0x545128;var _0x2c16b6;(_0x2c16b6=this[_0x4da01f(0x253)])==null||_0x2c16b6[_0x4da01f(0x385)](),this[_0x4da01f(0x33d)]=0x0,this[_0x4da01f(0x352)]=0x0;}};M=D=b([y(0x4,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x24d)])),y(0x5,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x296)])),y(0x6,n['ICommandService']),y(0x7,n['ILogService']),y(0x8,t['ITransformService']),y(0x9,n[_0x545128(0x328)]),y(0xa,(0x0,n[_0x545128(0x2da)])(C))],M);let N=O=class extends k{constructor(_0x4c315f,_0x34068b,_0x2b5b9c,_0x2b6d42,_0x8388f0,_0x39de61,_0x5ab91e,_0x10fd26,_0x24b518,_0x265d59,_0x5dc7bd,_0x483f0e,_0x6211df){const _0x571856=_0x545128;super(_0x4c315f,_0x34068b,_0x2b5b9c,_0x2b6d42,_0x8388f0,_0x24b518,_0x483f0e,_0x10fd26,_0x6211df),this['_injector']=_0x5ab91e,this[_0x571856(0x4a2)]=_0x265d59,this[_0x571856(0x2ee)]=_0x5dc7bd,this[_0x571856(0x2e6)]=_0x6211df,_(this,'status',_0x571856(0x37b)),_(this,_0x571856(0x33d),0x0),_(this,_0x571856(0x352),0x0),_(this,_0x571856(0x338),void 0x0),_(this,'_sender',void 0x0),_0x39de61&&(this[_0x571856(0x338)]=_0x39de61,this[_0x571856(0x253)]=this['_resendTimer'][_0x571856(0x31b)](({reqId:_0x5bb03d,timeout:_0x2f023e})=>{const _0x11c1e5=_0x571856;this[_0x11c1e5(0x46e)](_0x5bb03d,_0x2f023e);}));}[_0x545128(0x4d0)](_0x91135a){const _0x248b60=_0x545128;return this[_0x248b60(0x264)][_0x248b60(0x3f5)](_0x91135a),this;}[_0x545128(0x4d9)](_0x7a1947){const _0x3d72b4=_0x545128;if(this[_0x3d72b4(0x4cd)](_0x7a1947))return this[_0x3d72b4(0x42b)](),this['_injector']['createInstance'](I,this['unitID'],this[_0x3d72b4(0x393)],this[_0x3d72b4(0x226)],this[_0x3d72b4(0x264)],null,[_0x7a1947],this['_handler']);try{let _0x3b8f3e=this[_0x3d72b4(0x2ee)][_0x3d72b4(0x333)]([_0x7a1947],[this['_awaitingChangeset']],!0x1);if((0x0,t[_0x3d72b4(0x241)])(_0x3b8f3e)){let {c1Prime:_0x5bcf17,c2Prime:_0x2bbfbc}=_0x3b8f3e,_0x19d158=this[_0x3d72b4(0x2ee)][_0x3d72b4(0x23b)](_0x5bcf17[0x0],this[_0x3d72b4(0x264)]);if((0x0,t[_0x3d72b4(0x2b5)])(_0x19d158)){let {c1Prime:_0x2752c2,m2Prime:_0x14143d}=_0x19d158;return this[_0x3d72b4(0x3ac)](_0x2752c2),_0x2bbfbc[0x0]['baseRev']=this[_0x3d72b4(0x418)](),this['_clearScheduledTask'](),this[_0x3d72b4(0x2f9)][_0x3d72b4(0x2f8)](O,this[_0x3d72b4(0x2cd)],this[_0x3d72b4(0x393)],_0x2bbfbc[0x0],_0x14143d,this[_0x3d72b4(0x499)],void 0x0);}throw _0x19d158['error'];}throw _0x3b8f3e[_0x3d72b4(0x42e)];}catch(_0x13394f){return this['_logService'][_0x3d72b4(0x42e)](_0x13394f),this[_0x3d72b4(0x30a)](!0x1);}}[_0x545128(0x336)](_0x4f7e8f){const _0x198cf3=_0x545128;this[_0x198cf3(0x42b)]();let _0x1d525f=this[_0x198cf3(0x418)]();if(_0x4f7e8f[_0x198cf3(0x233)]<=_0x1d525f)return this;if(this[_0x198cf3(0x4cd)](_0x4f7e8f))return this[_0x198cf3(0x2f9)]['createInstance'](I,this[_0x198cf3(0x2cd)],this[_0x198cf3(0x393)],this[_0x198cf3(0x226)],this[_0x198cf3(0x264)],_0x4f7e8f[_0x198cf3(0x233)],[],this[_0x198cf3(0x499)]);this[_0x198cf3(0x3aa)]();let _0x57abff=this[_0x198cf3(0x2f9)][_0x198cf3(0x2f8)](j,this[_0x198cf3(0x2cd)],this[_0x198cf3(0x393)],this[_0x198cf3(0x264)],this[_0x198cf3(0x499)]);return _0x57abff['_schedule'](),_0x57abff[_0x198cf3(0x218)](),_0x57abff;}[_0x545128(0x3b6)](_0x36a284){const _0x53d4da=_0x545128;return this['_onConflict'](!!(_0x36a284!=null&&_0x36a284[_0x53d4da(0x447)]));}[_0x545128(0x1e6)](_0x45ebe6){const _0x54150c=_0x545128;return this[_0x54150c(0x352)]>je?this[_0x54150c(0x22a)]():(this[_0x54150c(0x338)]=Oe(this[_0x54150c(0x33d)],{'timeout':this[_0x54150c(0x33d)],'reqId':_0x45ebe6['reqId']}),this['_sender']=this[_0x54150c(0x338)][_0x54150c(0x31b)](({reqId:_0x53d775,timeout:_0x4c0da2})=>{const _0x5e3207=_0x54150c;this[_0x5e3207(0x46e)](_0x53d775,_0x4c0da2);}),this);}[_0x545128(0x22a)](){const _0x429680=_0x545128;return this['_clearScheduledTask'](),this['_injector'][_0x429680(0x2f8)](F,this[_0x429680(0x2cd)],this[_0x429680(0x393)],this[_0x429680(0x226)],this[_0x429680(0x264)],this['_handler']);}[_0x545128(0x349)](){return this;}['resend'](){const _0x3d3577=_0x545128;this[_0x3d3577(0x499)][_0x3d3577(0x1ef)](this[_0x3d3577(0x226)]);}[_0x545128(0x30a)](_0x2b350f){const _0x52a613=_0x545128;return this[_0x52a613(0x42b)](),this['_injector'][_0x52a613(0x2f8)](P,this['unitID'],this[_0x52a613(0x393)],null,this[_0x52a613(0x264)],this['_handler'],_0x2b350f);}[_0x545128(0x46e)](_0x54c9be,_0x535c03){const _0x2d710d=_0x545128;var _0x210bfd;_0x54c9be===((_0x210bfd=this['_awaitingChangeset'])==null?void 0x0:_0x210bfd[_0x2d710d(0x43b)])&&(this['resend'](),this['_resendTimeout']=_0x535c03===0x0?0x3e8:Math['min'](_0x535c03*0x2,Ae),this[_0x2d710d(0x352)]+=this['_resendTimeout']);}['_clearScheduledTask'](){const _0x50d8c4=_0x545128;var _0x3192a9;(_0x3192a9=this[_0x50d8c4(0x253)])==null||_0x3192a9[_0x50d8c4(0x385)](),this['_resendTimeout']=0x0,this[_0x50d8c4(0x352)]=0x0;}};N=O=b([y(0x6,(0x0,n['Inject'])(n[_0x545128(0x24d)])),y(0x7,(0x0,n['Inject'])(t[_0x545128(0x296)])),y(0x8,n[_0x545128(0x419)]),y(0x9,n[_0x545128(0x368)]),y(0xa,t[_0x545128(0x35b)]),y(0xb,n['IUndoRedoService']),y(0xc,(0x0,n['Optional'])(C))],N);let P=class extends k{constructor(_0x4bdedc,_0xb4f161,_0x263ac2,_0x3e757c,_0x469431,_0x2c35eb=!0x1,_0x5056ff,_0xeedbc7,_0x3a583a,_0x875bdc,_0x518aa0,_0xb562d1,_0x7706cb){const _0x43eecc=_0x545128;super(_0x4bdedc,_0xb4f161,_0x263ac2,_0x3e757c,_0x469431,_0xeedbc7,_0x3a583a,_0x875bdc,_0x7706cb),this[_0x43eecc(0x31f)]=_0x2c35eb,this[_0x43eecc(0x1f9)]=_0x5056ff,this[_0x43eecc(0x2d0)]=_0x518aa0,this['_collaborationUIEventService']=_0xb562d1,this['localCacheService']=_0x7706cb,_(this,_0x43eecc(0x2f2),'conflict'),this[_0x43eecc(0x24e)](),this[_0x43eecc(0x2a5)](),this[_0x43eecc(0x219)]();}[_0x545128(0x4d0)](){return this;}[_0x545128(0x4d9)](){return this;}['onRemoteAck'](){return this;}[_0x545128(0x3b6)](){return this;}[_0x545128(0x1e6)](){return this;}[_0x545128(0x22a)](){return this;}['toggleOnline'](){return this;}[_0x545128(0x204)](){const _0x45668a=_0x545128;throw Error(_0x45668a(0x1f8));}['_clearLocalCache'](){const _0x433b64=_0x545128;var _0xc01383,_0x3d8a0b,_0x1ab16f;(_0xc01383=this[_0x433b64(0x3ea)])==null||(_0x3d8a0b=_0xc01383[_0x433b64(0x350)])==null||(_0x3d8a0b=_0x3d8a0b[_0x433b64(0x339)](_0xc01383,this['unitID'],'conflict'))==null||_0x3d8a0b[_0x433b64(0x35e)](()=>void 0x0),(_0x1ab16f=this[_0x433b64(0x3ea)])==null||_0x1ab16f['updateOfflineData'](this[_0x433b64(0x2cd)],this[_0x433b64(0x393)],null,[]);}[_0x545128(0x24e)](){const _0x3ab476=_0x545128;this[_0x3ab476(0x31f)]?this[_0x3ab476(0x48f)]['emitEvent']({'id':_0x3ab476(0x35d)}):this[_0x3ab476(0x48f)][_0x3ab476(0x214)]({'id':_0x3ab476(0x2b0)});}[_0x545128(0x219)](){const _0x4df7f5=_0x545128;this[_0x4df7f5(0x1f9)][_0x4df7f5(0x21c)](new i['WorkbookEditablePermission'](this[_0x4df7f5(0x2cd)])['id'],!0x1);}};function _0x3e56(){const _0x573256=['_status$','FETCH_MISSING','interceptor','registerHTTPInterceptor','transformChangesets','max','Subject','onRemoteAck','CLOSE_ROOM','_resendTimer','call','_getSignURL','result','memberID','_resendTimeout','getCurrentSelections','[CollaborationSession]','Tools','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_getConfig','2682135obLArI','take','_type','_getRedoStack','Workbook','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','toggleOnline','defineProperty','collaborators','UserManagerService','parse','LocaleService','HEARTBEAT','backupOfflineData','MergeInterceptorFactory','_maxTotalRetryTimeout','saveSnapshot','_roomCreated$','PERMISSION_REJ','reverse','CompressMutationService','_telemetryService','NEW_CHANGESETS','SheetsSelectionsService','ITransformService','connection\x20error','PERMISSION_DENIED','catch','onLocalMutation','FetchingMissState','loginUrlKey','/block/','_sendHeartbeatTimer','subject','updatePermissionObjEvent','text-x','add','ILogService','onTransformRemoteChangesetByIMECache','getActiveSheet','parseChangesetToProtocol','RETRY_CONNECTING_MAX_COUNT_KEY','params','/-/object/-/batch_allowed','_singleActiveUnitService','readAsDataURL','LIVESHARE_OPERATION','getCollabEntity','unit-cache-','sid','commentUpdate$','requireSession','SyncedState','IConfigService','/rev/','_transformRemoteChangesetByIMECache','awaiting_with_pending','loadSlide','[DataLoaderService]','saveSheetBlock','_entities','fetch_missing','/universer-api/oidc/authpage','?url=','loadUnitOfRevision','getSheetBlock','unsubscribe','takeUntil','_getDownloadEndpointURL','stopTime','/universer-api/snapshot','length','iterator','listRoles','endsWith','_commentService','getCfgEnableObjInherit','_compressMutationService','AwaitingState','prototype','type','AWAITING','_getSendChangesetTimeout','_queuedRemoteChangesets','_clearHeartbeatTimer','LIVESHARE_TERMINATE','_entityInit$','_schedule','some','snapshotServerUrl','_decreaseWaiting','unitInfo$','capture','objectActions','AwaitingWithPendingState','COMPRESS_MUTATION_SEND','_handlerCallback','getUnitStatus$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','createSocket','FileSource','_event$','\x20-\x20','_incrementRevisionNumber','unitId\x20is\x20not\x20found','_executeRemoteChangeset','AttachmentSourceType','_undoStacks','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','delete','csRejEvent','BehaviorSubject','body','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','ERROR_IMAGE','onRemoteRej','setShowComponents','SUBMIT_CHANGESET','LOCAL_CACHE_INTERVAL_KEY','/object','getUnitId','uploadFileServerUrl','IPermissionService','_toggleOnline','session.room-not-exists','b64DecodeUnicode','_getLoginPath','_getUploadFileURL','_clearRetryConnectingTimer','_state','PendingState','session.room-full','[PendingState]:\x20received\x20rejection.','_instanceService','_getUndoStack','packageName','MSG_FOR_ERROR','_initUnitPermissionChange','HELLO','collaboration-client.local-cache-service','[FetchMissState]','docStateChange$','loadDoc','UnitStatus','_candidateSocket','roomInfos','_state$','now','PSEUDO_FETCH_MISSING_RESULT','ReplaySubject','loadSheet','_transformUndoredo','[OfflineState]:\x20received\x20rejection.','uniscriptRunEvent','file','Disposable','CommentService','univer-pro.collaboration-client-socket-service','_collaborationPaused','InsertSheetMutation','executeCommand','mergeOverrideWithDependencies','_stopTelemetryCollaborationNewChangeset','_doCreateSocket','entityInit$','src','x-univer-host','_localCacheService','_timeoutTimer','_sendingTimer','22JgdXIx','utf8ToBytes','symbol','getCollabEntity$','_initRequestHeader','RETRY_CONNECTING_MAX_COUNT','_onRemoteChangeset','set','push','SnapshotServerOverHTTPService','5597xXodso','Module','upload','LIVESHARE_FETCH_OPERATIONS','collaboratorID','_waitCount','post','downloadEndpointUrl','CHANGESET_ACK','_onJoinRoomEvent','_getAPIPrefix','onMissedChangesetFetched','/allowed','headers','toString','_collabSessionService','_scheduleCollaborationTimeoutTimer','_acknowledgedAwaitingRevision','objectType','getCurrentUser','confirm','liveShareNewHost','IDLE','event$','getOwnPropertyDescriptor','getTime','href','OFFLINE','JOIN','/object/','setConfig','state','complete','_getCurrentRevision','ICommandService','pauseCollaboration','synced','withCredentials','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','save\x20fail\x20reason\x20is\x20','_updateStatus','registerDependencies','baseRev','AddSlidePageMutation','_tryReconnect','UNIVER_SHEET','encrypt','135651XwmMin','_collaborationSessionService','/fetchmissing?from=','110kBDeOH','UNIVER_DOC','_clearScheduledTask','pluginName','requestParams','error','UniverCollaborationClientPlugin','append','&source=','OTHER_CLIENTS_EDITING','fromCollab','_sheetTransformSelectionsService','_listenToNetworkCondition','change$','UNIVER_SLIDE','deleteCollaborator','_onUserLeave','eventID','reqId','create','ERROR_EXCEED_SIZE','concatMap','RECV','/collaborator','every','/unit/','_socket','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_userManagerService','NO_OTHER_CLIENTS_EDITING','isPermissionRej','min','actions','ThresholdInterceptorFactory','enableAuthServer','JOIN_ROOM_NOT_EXISTS','disposeWithMe','/new_changes','has','[SyncedState]:\x20received\x20acknowledgement.','AWAITING_WITH_PENDING','_registerDependencies','session.room-permission-denied','loadUnit','getResourcesRequest','CollaborationEntity','update','Failed\x20to\x20update\x20permission\x20point','offline','session','toDisposable','error$','retryConnectingInterval','permissionRejEvent','location','name','_cfgEnableObjInherit','JOIN_ROOM_FULL','_transitionLocked','collaboration_new_changeset','HEARTBEAT_TIMEOUT','&to=','find','_upload','ONLINE','RichTextEditingMutation','/universer-api/authz','DEFAULT_COLLAB_WEB_SOCKET_URL','_transformIMECache','_resendWithTimeout','IMentionIOService','cfgEnableObjInherit','online$','SUBMIT_CHANGESET_TIMEOUT','transformStack\x20failed!','getMember','CmdRspCode','_transformAndApplyRemoteChangeset','url','originalMeta','getMemberID','getFocusedUnit','SheetCollaborationEntity','DocCollaborationEntity','_changesetReqId','2858136jRYUpO','clear','fetching\x20missing\x20changesets\x20from\x20','_onCombEvent','collabSubmitChangesetUrl','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getSnapshotAPIPath','/universer-api/file/{fileID}/sign-url','mapDocumentTypeToUniverInstanceType','_undoRedoService','socket\x20open.','_unitID','incrementRevOfUnit','_removeRoom','DEFAULT_FILE_NAME','_updateState','_substituteUndoStack','_collaborationUIEventService','_collaborationTimeoutTimer','uuidv4','_transformStateCache','session.join-failed','_commentUpdate$','getUnitOnRev','UNIVER_COLLABORATION_CLIENT_PLUGIN','socket$','CollaborationSession','_handler','onStateChange','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onlyLocal','[CollaborationSessionService]:\x20socket\x20error','asObservable','LIVESHARE_NEW_HOST','COMMENT_UPDATE','sessionStatus$','_logService','stringify','onTransformSelections','unit','HTTPService','_exhaustRemoteChangesetQueue','EnsureSlideMasterPageMutation','splice','COMPRESS_MUTATION_APPLY','getCurrentRevOfUnit','includes','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','subUnitId','&assign=','UnitEmbedded','c2Prime','setCurrentUser','editing\x20status\x20changed\x20to','FAIL','copyFileMeta','submit\x20changeset\x20error!','USERS_ENTER','data','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','addImageSourceCache','_scheduleCompleteTimestamp','USERS_LEAVE','WorkbookEditablePermission','refreshPermission','Rectangle','8QySQKI','replace','_onConnectionFailed','entries','IUniverInstanceService','updateOfflineData','cbc','_eventService','responseType','resolve','_syncEditingCollabCursor','JSONX','serializeCombRequest','_checkMissing','onTransformIME','deepClone','appendMutation','[CollaborationSessionService]','UniverLicensePlugin','{fileID}','objectID','_config','_emitMembers','equals','EmptyMutationInfo','onRemoteChangeset','SetSelectionsOperation','concatBytes','onRemoteRetry','_univerInstanceService','put','list','ITelemetryService','awaitingChangeset','URL','awaiting','LEAVE','onSendChangeset','POST','onMutationExecutedForCollab','MemberService','_socketReady','MoveSlidePageMutation','hostname','title','send','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_permissionService','/resources','debug','\x0aAfter:\x20','/universer-api/user/session-ticket','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_onFetchMissResult','getUnit','OTHER_CLIENT_EDITING','LIVESHARE_REQUEST_HOST','ISocketService','resend','[CollaborationEntity]','getUnitType','_init','_substituteRedoStack','state$','failed\x20to\x20apply\x20missed\x20changesets!','[SyncedState]:\x20received\x20rejection.','_httpService','CHANGESET_REJ','startTime','_redoStacks','_joinRoom','socket\x20close','waitForRoom$','_initCloseConn','emitEvent','newCsEvent','_shouldReportTelemetry','conflict','_updateLocalCache','_disableEditing','SOCKET_FAILED_RETRY','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','updatePermissionPoint','sequenceExecute','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','SNAPSHOT_URL_KEY','_tryEnsureSocket','unitId','_startTelemetryCollaborationNewChangeset','UNISCRIPT_RUN','_change$','_awaitingChangeset','onTransformState','Error\x20on\x20receiving\x20event','csAckEvent','toggleOffline','SessionStatus','getTypeOfUnitDisposed$','453780NmGVsY','_imageSourceCache','_submitChangeset','_rescheduleHeartbeat','_onRemoteRetry','/universer-api/uniscript','revision','_getAPIPrefixPath','JOIN_ROOM_FAILED','reject','_onUserJoin','duration','SOCKET_FAILED','indexOf','transformMutationsWithChangeset','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_unitLoaded$','ERROR_IMAGE_TYPE','_remoteChangesetQueue','addHandlerCallback','isTransformChangesetsSuccess','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_sessionStatus$','SheetPermissionInitController','dispose$','/universer-api/comb','enableCollaboration','getValue','_telemetryInfo','default','ErrorCode','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','Injector','_showConflictNotification','joinRsp','_applyRemoteChangeset','UniverInstanceType','_retryConnectingTimer','_sender','14QRfmMv','members','updateCursorEvent','\x20in\x20_schedule.','_revisionService','pipe','CHANGESET_SHOULD_RETRY','_waitForHeartbeatResponse','transformSelections','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','dispose','focused$','Univer','MentionIoHttpService','[CollaborationState]:\x20apply\x20error!','_members$','_pendingMutations','_acknowledgeAwaitingIfReady','_onMessage','cmd','encode','_acknowledgeAwaiting','_members','setCfgEnableObjInherit','708786VXaPZo','encodeURIComponent','getInterceptPoints','_clearRedo','saveChangeset','DisposableCollection','_lockTransition','getAllMembers','updateMember','_handleRemoteChangesets','range','resourceIDs','_changesetSessionId','floor','_initMergeInterceptor','IAttachmentIoService','PERSON','CollaborationEvent','patch','disableLocalCache','filter','_replaceFileID','_sessions','changesets','onSyncEditingCollabCursor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','fromCharCode','updateCollaborator','unitLoaded$','ImageSourceType','isTransformMutationsWithChangesetFailure','version','userID','IImageIoService','_socketService','sessionStatus','constructor','UNIVER_BASE','size','charCodeAt','CollaborationSocketService','forEach','RevisionService','UPDATE_CURSOR','textEncoder','PENDING','_throwTelemetryCollaborationNewChangeset','reduce','__splitChunk__','touchDependencies','leaveEvent','CollaborationUIEventService','UUID','method','CombCmd','HEARTBEAT_TIMEOUT_KEY','open$','_clearLocalCache','_commandService','ws://127.0.0.1:8000/universer-api/comb/connect','override','transformUndoRedo','onCommentUpdate','_clearUndo','ImageUploadStatusType','[CollaborationUndoRedoService]','objects','MUTATION','CONFLICT','CollaborativeUndoRedoService','_createInitialStateImpl','closeSession','base-ui.attachment-io.service','isTransformMutationsWithChangesetSuccess','_clearCollaborationTimeoutTimer','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','removeMember','init','batchAllowed','decorate','[PendingState]:\x20received\x20acknowledgement.','getImageSourceCache','getTypeOfUnitAdded$','_unitInfo$','getConfig','onTransformRemoteChangesetByStateCache','next','attachment','createIdentifier','_retryCount','_unlockTransition','CollaborationImageIoService','getRoom','message$','HEARTBEAT_INTERVAL','_transformStack','_socket$','unitID','CommandType','_fetchMissChangesets','_localeService','LocalUndoRedoService','createCollaborator','_memberService','unknown','toStringTag','_socketMessageSubscription','function','JOIN_ROOM_PERMISSION_DENIED','map','Optional','_isEchoedAwaitingChangeset','ILocalCacheService','_startCollaboration','HTTPRequest','close','number','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','sort','_initDependencies','_configService','allowed','localCacheService','routeKey','m2Prime','_replayCachedMutations','_clearTimeoutTimer','DependentOn','ISnapshotServerService','selections','_transformService','_createHandler','string','_docStateChangeManagerService','status','HEARTBEAT_INTERVAL_KEY','_onRemoteRejected','_onLocalMutation','slice','get','createInstance','_injector','collaboration-client.auth.needGotoLoginAlert','origin','onMissingChangesets','_snapshotService','_onOffline','_HTTPService','fetchThroughInterceptors','BASE64','ICollaborationSocketService','merge','Inject','object','onload','_roomMembers','_snapshotServerService','_transformSelections','_onConflict','_getCtorByUniverInstanceType','commentUpdateEvent','FileId','status$','1262206RpdBra','members$','textRanges','LOCAL_CACHE_INTERVAL','_networkConditionService','/universer-api/stream/file/upload','RxDisposable','CollaborationSessionService','_sendHeartbeat','generateRandomId','session.room-cnt-exceeds','signUrlServerUrl','subscribe','socketService','INGEST','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_isPermissionRej','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','loadOfflineData','collaboration-client.config','startsWith','ApplyBaseJson1Mutation','SHOULD_CLOSE_CONN','loadBase','isInternalEditorID','IUndoRedoService','mutations','_onRemoteACK','getImage','delay','c1Prime','isArray'];_0x3e56=function(){return _0x573256;};return _0x3e56();}P=b([y(0x6,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x3bd)])),y(0x7,n['ICommandService']),y(0x8,n[_0x545128(0x328)]),y(0x9,(0x0,n['Inject'])(t['RevisionService'])),y(0xa,(0x0,n['Inject'])(n[_0x545128(0x34e)])),y(0xb,(0x0,n[_0x545128(0x304)])(v)),y(0xc,(0x0,n[_0x545128(0x2da)])(C))],P);let F=class extends k{constructor(_0x356af9,_0x254d96,_0x397084,_0x27a32c,_0x101a59,_0x1c847d,_0x1f5bf1,_0x4c646f,_0x49bf7c,_0x3137f1){const _0x380020=_0x545128;super(_0x356af9,_0x254d96,_0x397084,_0x27a32c,_0x101a59,_0x4c646f,_0x49bf7c,_0x1f5bf1,_0x3137f1),this[_0x380020(0x2f9)]=_0x1c847d,_(this,_0x380020(0x2f2),'offline');}[_0x545128(0x4d0)](_0x3cb494){const _0x4bf32a=_0x545128;return this[_0x4bf32a(0x264)][_0x4bf32a(0x3f5)](_0x3cb494),this[_0x4bf32a(0x218)](),this;}[_0x545128(0x4d9)](_0x3e626b){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x545128(0x336)](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x545128(0x3b6)](){const _0x350e89=_0x545128;throw Error(_0x350e89(0x3db));}[_0x545128(0x1e6)](){return this;}['toggleOffline'](){return this;}[_0x545128(0x349)](){const _0x3f1b33=_0x545128;let {_injector:_0x283863,_pendingMutations:_0x4a9cf3,_awaitingChangeset:_0x32b425,unitID:_0x47e385,_handler:_0xfc1772,type:_0x5af505}=this,_0x305e2d=Me(_0x283863,_0x47e385,_0x5af505,_0x32b425,_0x4a9cf3,_0xfc1772);return _0x305e2d instanceof j?_0x305e2d[_0x3f1b33(0x39a)]():(_0x305e2d instanceof N||_0x305e2d instanceof M)&&_0x305e2d['resend'](),_0x305e2d;}[_0x545128(0x204)](){const _0x61b7f2=_0x545128;throw Error(_0x61b7f2(0x21e));}};F=b([y(0x5,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x24d)])),y(0x6,(0x0,n['Inject'])(t['RevisionService'])),y(0x7,n[_0x545128(0x419)]),y(0x8,n['IUndoRedoService']),y(0x9,(0x0,n[_0x545128(0x2da)])(C))],F);let I=class extends k{constructor(_0x514a5d,_0x4f0fae,_0x5bb809,_0x3b0acc,_0x102f98,_0x509e53,_0x218ef5,_0x1b2c34,_0x3be547,_0x509a7e,_0x108bb3,_0x294e59,_0x998082,_0x482682){const _0x1046f5=_0x545128;super(_0x514a5d,_0x4f0fae,_0x5bb809,_0x3b0acc,_0x218ef5,_0x108bb3,_0x294e59,_0x3be547,_0x482682),this[_0x1046f5(0x408)]=_0x102f98,this[_0x1046f5(0x396)]=_0x509e53,this['_injector']=_0x1b2c34,this['_logService']=_0x509a7e,this[_0x1046f5(0x2ee)]=_0x998082,this[_0x1046f5(0x2e6)]=_0x482682,_(this,'status','fetch_missing');}['onMissedChangesetFetched'](_0x20e458){const _0x4dfa1f=_0x545128;try{if(this[_0x4dfa1f(0x275)](_0x20e458)['missingChangesets'])throw Error(_0x4dfa1f(0x2e1));if(this[_0x4dfa1f(0x275)]([...this[_0x4dfa1f(0x396)]][_0x4dfa1f(0x2e2)]((_0x495643,_0x4ad766)=>_0x495643['revision']-_0x4ad766[_0x4dfa1f(0x233)]))['missingChangesets'])return this['_queuedRemoteChangesets']=[],this[_0x4dfa1f(0x218)](),this['_handler'][_0x4dfa1f(0x2fc)]({'from':this[_0x4dfa1f(0x418)](),'to':0x0}),this;let _0x5ac45c=this[_0x4dfa1f(0x226)],_0x2950d9=this['_pendingMutations'],_0x5b0c24;if(_0x5ac45c&&_0x2950d9[_0x4dfa1f(0x38a)]!==0x0)_0x5b0c24=this[_0x4dfa1f(0x2f9)][_0x4dfa1f(0x2f8)](N,this[_0x4dfa1f(0x2cd)],this[_0x4dfa1f(0x393)],_0x5ac45c,_0x2950d9,this[_0x4dfa1f(0x499)],void 0x0);else{if(_0x5ac45c&&_0x2950d9[_0x4dfa1f(0x38a)]===0x0)_0x5ac45c[_0x4dfa1f(0x421)]=this[_0x4dfa1f(0x418)](),_0x5b0c24=this[_0x4dfa1f(0x2f9)][_0x4dfa1f(0x2f8)](M,this[_0x4dfa1f(0x2cd)],this[_0x4dfa1f(0x393)],_0x5ac45c,this['_handler']);else{if(_0x2950d9[_0x4dfa1f(0x38a)]!==0x0){let _0x49d7c0=this['_injector'][_0x4dfa1f(0x2f8)](j,this[_0x4dfa1f(0x2cd)],this['type'],_0x2950d9,this[_0x4dfa1f(0x499)]);_0x49d7c0[_0x4dfa1f(0x39a)](),_0x5b0c24=_0x49d7c0;}else _0x5b0c24=this[_0x4dfa1f(0x2f9)]['createInstance'](A,this['unitID'],this[_0x4dfa1f(0x393)],this[_0x4dfa1f(0x499)]);}}return _0x5b0c24[_0x4dfa1f(0x218)](),_0x5b0c24;}catch(_0x382427){return this[_0x4dfa1f(0x4a2)][_0x4dfa1f(0x42e)](_0x4dfa1f(0x3cf),_0x4dfa1f(0x20a),_0x382427),this[_0x4dfa1f(0x2f9)][_0x4dfa1f(0x2f8)](P,this[_0x4dfa1f(0x2cd)],this[_0x4dfa1f(0x393)],this[_0x4dfa1f(0x226)],this[_0x4dfa1f(0x264)],this[_0x4dfa1f(0x499)],!0x1);}}[_0x545128(0x275)](_0x3463e6){const _0x1d20e3=_0x545128;this['_acknowledgeAwaitingIfReady']();for(let _0x8e0b9e=0x0;_0x8e0b9e<_0x3463e6[_0x1d20e3(0x38a)];_0x8e0b9e++){let _0x1fd75f=_0x3463e6[_0x8e0b9e],_0x222da3=this[_0x1d20e3(0x418)]();if(!(_0x1fd75f[_0x1d20e3(0x233)]<=_0x222da3)){if(_0x1fd75f['revision']>_0x222da3+0x1)return{'missingChangesets':!0x0};if(this[_0x1d20e3(0x2db)](_0x1fd75f)){this['_acknowledgeAwaiting']();continue;}this[_0x1d20e3(0x476)](_0x1fd75f),this[_0x1d20e3(0x265)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x1fb98c){const _0x6d3a1f=_0x545128;let _0x2c9e8b=_0x1fb98c,_0x4c0378=this[_0x6d3a1f(0x226)];if(_0x4c0378){let _0x3b66ce=this['_transformService'][_0x6d3a1f(0x333)]([_0x1fb98c],[_0x4c0378],!0x1);if(!(0x0,t['isTransformChangesetsSuccess'])(_0x3b66ce))throw _0x3b66ce[_0x6d3a1f(0x42e)];_0x2c9e8b=_0x3b66ce[_0x6d3a1f(0x32d)][0x0],_0x4c0378=_0x3b66ce[_0x6d3a1f(0x4b1)][0x0];}let _0x76e2d8=this[_0x6d3a1f(0x264)];if(_0x76e2d8[_0x6d3a1f(0x38a)]){let _0x511509=this[_0x6d3a1f(0x2ee)][_0x6d3a1f(0x23b)](_0x2c9e8b,_0x76e2d8);if(!(0x0,t['isTransformMutationsWithChangesetSuccess'])(_0x511509))throw _0x511509[_0x6d3a1f(0x42e)];_0x2c9e8b=_0x511509[_0x6d3a1f(0x32d)],_0x76e2d8=_0x511509[_0x6d3a1f(0x2e8)];}this[_0x6d3a1f(0x3ac)](_0x2c9e8b),_0x4c0378&&(_0x4c0378[_0x6d3a1f(0x421)]=this['_getCurrentRevision']()),this[_0x6d3a1f(0x226)]=_0x4c0378,this[_0x6d3a1f(0x264)]=_0x76e2d8;}[_0x545128(0x265)](){const _0x33ef54=_0x545128;if(!this['_awaitingChangeset']||this[_0x33ef54(0x408)]==null)return;let _0x199696=this[_0x33ef54(0x418)]();if(this[_0x33ef54(0x408)]<=_0x199696)throw Error(_0x33ef54(0x2b7)+this[_0x33ef54(0x408)]+'.');this[_0x33ef54(0x408)]===_0x199696+0x1&&this['_acknowledgeAwaiting']();}[_0x545128(0x269)](){const _0x32cf22=_0x545128;this[_0x32cf22(0x3aa)](),this[_0x32cf22(0x226)]=null,this[_0x32cf22(0x408)]=null;}[_0x545128(0x2db)](_0x4f0d0a){const _0x118ddc=_0x545128;let _0x2ce1d0=this[_0x118ddc(0x226)];return!_0x2ce1d0||!_0x2ce1d0['sid']||_0x2ce1d0['reqId']===null||_0x2ce1d0[_0x118ddc(0x43b)]===void 0x0?!0x1:_0x4f0d0a['unitID']===_0x2ce1d0[_0x118ddc(0x2cd)]&&_0x4f0d0a[_0x118ddc(0x374)]===_0x2ce1d0[_0x118ddc(0x374)]&&_0x4f0d0a[_0x118ddc(0x43b)]===_0x2ce1d0[_0x118ddc(0x43b)];}[_0x545128(0x204)](){const _0x3b8755=_0x545128;throw Error(_0x3b8755(0x348));}[_0x545128(0x4d0)](_0x24236e){const _0x45307b=_0x545128;return this[_0x45307b(0x264)]['push'](_0x24236e),this;}[_0x545128(0x4d9)](_0x131e37){const _0x21b50b=_0x545128;return this[_0x21b50b(0x396)]['push'](_0x131e37),this;}[_0x545128(0x336)](_0x2eeef5){const _0x4e9acf=_0x545128;if(this['_awaitingChangeset']){let _0x3c5c89=this[_0x4e9acf(0x418)]();return _0x2eeef5[_0x4e9acf(0x233)]<=_0x3c5c89||(_0x3c5c89+0x1===_0x2eeef5[_0x4e9acf(0x233)]?(this['_incrementRevisionNumber'](),this[_0x4e9acf(0x226)]=null,this[_0x4e9acf(0x408)]=null):this[_0x4e9acf(0x408)]=_0x2eeef5['revision']),this;}if(_0x2eeef5[_0x4e9acf(0x233)]<=this[_0x4e9acf(0x418)]())return this;throw Error(_0x4e9acf(0x3af));}[_0x545128(0x3b6)](_0x3d7887){const _0x5c89c7=_0x545128;return this['_onConflict'](!!(_0x3d7887!=null&&_0x3d7887[_0x5c89c7(0x447)]));}[_0x545128(0x1e6)](){return this;}['toggleOffline'](){const _0x3ac95c=_0x545128;return this[_0x3ac95c(0x2f9)][_0x3ac95c(0x2f8)](F,this[_0x3ac95c(0x2cd)],this[_0x3ac95c(0x393)],this[_0x3ac95c(0x226)],this[_0x3ac95c(0x264)],this[_0x3ac95c(0x499)]);}[_0x545128(0x349)](){return this;}[_0x545128(0x30a)](_0x581d25){const _0x39b0a4=_0x545128;return this[_0x39b0a4(0x2f9)]['createInstance'](P,this['unitID'],this[_0x39b0a4(0x393)],this[_0x39b0a4(0x226)],this[_0x39b0a4(0x264)],this[_0x39b0a4(0x499)],_0x581d25);}};I=b([y(0x7,(0x0,n['Inject'])(n[_0x545128(0x24d)])),y(0x8,(0x0,n['Inject'])(t[_0x545128(0x296)])),y(0x9,n['ILogService']),y(0xa,n[_0x545128(0x419)]),y(0xb,n['IUndoRedoService']),y(0xc,t[_0x545128(0x35b)]),y(0xd,(0x0,n['Optional'])(C))],I);function Me(_0x2536b0,_0x3e324e,_0x34017f,_0x4bcb64,_0x1d77cf,_0x57e77a){const _0x4d7ede=_0x545128;return _0x4bcb64&&_0x1d77cf['length']?_0x2536b0[_0x4d7ede(0x2f8)](N,_0x3e324e,_0x34017f,_0x4bcb64,_0x1d77cf,_0x57e77a,void 0x0):_0x4bcb64?_0x2536b0[_0x4d7ede(0x2f8)](M,_0x3e324e,_0x34017f,_0x4bcb64,_0x57e77a):_0x1d77cf['length']?_0x2536b0[_0x4d7ede(0x2f8)](j,_0x3e324e,_0x34017f,_0x1d77cf,_0x57e77a):_0x2536b0['createInstance'](A,_0x3e324e,_0x34017f,_0x57e77a);}let L=class extends n['RxDisposable']{get['state'](){const _0x1e0c70=_0x545128;return this[_0x1e0c70(0x3c4)];}constructor(_0x14e91b,_0x7806ba,_0x178b37,_0x29eb5b,_0x35f266,_0xb1838a,_0x16ef17,_0x2474c6,_0x3a13c2,_0x133b58,_0x3f6f01,_0xf151b9,_0x549d98,_0x3056ac){const _0x4c6240=_0x545128;super(),this[_0x4c6240(0x2cd)]=_0x14e91b,this[_0x4c6240(0x45a)]=_0x7806ba,this['_type']=_0x178b37,this[_0x4c6240(0x2f9)]=_0x29eb5b,this['_compressMutationService']=_0x35f266,this[_0x4c6240(0x2d0)]=_0xb1838a,this['_revisionService']=_0x16ef17,this[_0x4c6240(0x4c7)]=_0x2474c6,this[_0x4c6240(0x1e7)]=_0x3a13c2,this[_0x4c6240(0x4a2)]=_0x133b58,this[_0x4c6240(0x2a6)]=_0x3f6f01,this[_0x4c6240(0x1f9)]=_0xf151b9,this[_0x4c6240(0x36f)]=_0x549d98,this[_0x4c6240(0x3ea)]=_0x3056ac,_(this,'_state$',new a[(_0x4c6240(0x3b2))](null)),_(this,_0x4c6240(0x209),this[_0x4c6240(0x3d5)][_0x4c6240(0x49e)]()),_(this,'_state',void 0x0),_(this,_0x4c6240(0x3e1),!0x1),_(this,_0x4c6240(0x278),''),_(this,_0x4c6240(0x47d),0x0),_(this,_0x4c6240(0x30e),this['state$'][_0x4c6240(0x259)]((0x0,a['map'])(_0x5d5962=>_0x5d5962?_0x5d5962[_0x4c6240(0x2f2)]:_0x4c6240(0x459)),(0x0,a['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x4c6240(0x463),!0x1),_(this,_0x4c6240(0x23f),[]);}async[_0x545128(0x2b9)](){const _0x7fae02=_0x545128;if(this[_0x7fae02(0x416)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x7fae02(0x207)]();}[_0x545128(0x41a)](){const _0xa73cde=_0x545128;return this[_0xa73cde(0x3e1)]=!0x0,(0x0,n[_0xa73cde(0x45b)])(()=>{const _0x1932dd=_0xa73cde;this[_0x1932dd(0x3e1)]=!0x1,this[_0x1932dd(0x4a7)]();});}[_0x545128(0x35f)](_0x4e9f8c){const _0x357ee0=_0x545128;this[_0x357ee0(0x2f5)](_0x4e9f8c);}[_0x545128(0x48d)](_0x1381e3){const _0x475932=_0x545128;this['_state']=_0x1381e3,this[_0x475932(0x3d5)]['next'](_0x1381e3);}async[_0x545128(0x207)](){const _0x26d26e=_0x545128;if(this[_0x26d26e(0x48d)](await this['_createInitialState']()),this[_0x26d26e(0x36f)]){var _0x53ae80;(_0x53ae80=this[_0x26d26e(0x36f)])==null||_0x53ae80['editingUnit'](this[_0x26d26e(0x2cd)]),this[_0x26d26e(0x44d)](this[_0x26d26e(0x36f)][_0x26d26e(0x3a4)](this[_0x26d26e(0x2cd)])[_0x26d26e(0x31b)](_0x4a5e1b=>{const _0x2dea44=_0x26d26e;this['_logService']['debug'](_0x2dea44(0x205),_0x2dea44(0x4b3),_0x4a5e1b),_0x4a5e1b===0x1?(this['_eventService'][_0x2dea44(0x214)]({'id':_0x2dea44(0x201)}),this[_0x2dea44(0x1f9)][_0x2dea44(0x21c)](new i['WorkbookEditablePermission'](this[_0x2dea44(0x2cd)])['id'],!0x1),this['_permissionService'][_0x2dea44(0x3b7)](!0x1)):(this['_permissionService'][_0x2dea44(0x21c)](new i[(_0x2dea44(0x4bd))](this[_0x2dea44(0x2cd)])['id'],!0x0),this[_0x2dea44(0x1f9)]['setShowComponents'](!0x0));}));}let _0x17e2d9=!0x1;return this[_0x26d26e(0x44d)](this[_0x26d26e(0x45a)][_0x26d26e(0x4a1)]['subscribe'](_0x2a95a9=>{const _0x291630=_0x26d26e;_0x2a95a9===0x3?this[_0x291630(0x3be)](_0x17e2d9):_0x2a95a9===0x2&&(_0x17e2d9=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this[_0x26d26e(0x45a)][_0x26d26e(0x40e)][_0x26d26e(0x31b)](_0x1782b2=>{const _0x43098f=_0x26d26e;try{switch(_0x1782b2[_0x43098f(0x43a)]){case t[_0x43098f(0x27d)][_0x43098f(0x359)]:this[_0x43098f(0x3f3)]((0x0,t['parseProtocolChangeset'])(_0x1782b2[_0x43098f(0x4b8)]));break;case t[_0x43098f(0x27d)][_0x43098f(0x3ff)]:this[_0x43098f(0x32a)](_0x1782b2[_0x43098f(0x4b8)]);break;case t[_0x43098f(0x27d)][_0x43098f(0x20d)]:this[_0x43098f(0x2f4)]();break;case t['CollaborationEvent'][_0x43098f(0x25a)]:this[_0x43098f(0x231)](_0x1782b2[_0x43098f(0x4b8)]);break;case t[_0x43098f(0x27d)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x43098f(0x1ff)](_0x1782b2[_0x43098f(0x4b8)][_0x43098f(0x283)][_0x43098f(0x2d9)](_0x5d3996=>(0x0,t['parseProtocolChangeset'])(_0x5d3996)));break;case t[_0x43098f(0x27d)][_0x43098f(0x355)]:this[_0x43098f(0x2f4)]({'isPermissionRej':!0x0});break;case t[_0x43098f(0x27d)][_0x43098f(0x224)]:break;}}catch(_0x1065a2){throw console[_0x43098f(0x42e)](_0x43098f(0x228),_0x1065a2),_0x1065a2;}})),this[_0x26d26e(0x3c4)];}[_0x545128(0x2c6)](){const _0xfc50b5=_0x545128;this[_0xfc50b5(0x463)]=!0x1;}[_0x545128(0x272)](){const _0x35ce00=_0x545128;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x35ce00(0x463)]=!0x0;}[_0x545128(0x2f5)](_0x4fb940){const _0x2be9dd=_0x545128;this[_0x2be9dd(0x272)](),this[_0x2be9dd(0x48d)](this[_0x2be9dd(0x3c4)]['appendMutation'](_0x4fb940)),this['_unlockTransition']();}[_0x545128(0x3f3)](_0x7ba4d8){const _0x5eb63e=_0x545128;if(!(_0x7ba4d8['revision']<=this[_0x5eb63e(0x258)][_0x5eb63e(0x4ab)](this[_0x5eb63e(0x2cd)]))){if(this['_collaborationPaused']){this[_0x5eb63e(0x23f)][_0x5eb63e(0x3f5)](_0x7ba4d8);return;}this['_applyRemoteChangeset'](_0x7ba4d8);}}[_0x545128(0x4a7)](){const _0x4dfeca=_0x545128;this[_0x4dfeca(0x23f)][_0x4dfeca(0x295)](_0x3d0357=>this[_0x4dfeca(0x250)](_0x3d0357)),this[_0x4dfeca(0x23f)]=[];}[_0x545128(0x250)](_0x2434cc){const _0x56d0bc=_0x545128;let _0x55fad0=this['_compressMutationService'][_0x56d0bc(0x331)][_0x56d0bc(0x300)](this[_0x56d0bc(0x390)][_0x56d0bc(0x331)][_0x56d0bc(0x26e)]()['COMPRESS_MUTATION_APPLY'])(_0x2434cc['mutations'],null)||_0x2434cc[_0x56d0bc(0x329)],_0x366f9d={..._0x2434cc,'mutations':_0x55fad0};this['_lockTransition'](),this[_0x56d0bc(0x48d)](this[_0x56d0bc(0x3c4)]['onRemoteChangeset'](_0x366f9d)),this['_unlockTransition']();}[_0x545128(0x32a)](_0xc5f9d9){const _0x2b6a1f=_0x545128;this[_0x2b6a1f(0x272)](),this[_0x2b6a1f(0x48d)](this[_0x2b6a1f(0x3c4)]['onRemoteAck'](_0xc5f9d9)),this['_unlockTransition']();}[_0x545128(0x2f4)](_0x3e17c4){const _0x1b5287=_0x545128;this[_0x1b5287(0x272)](),this[_0x1b5287(0x48d)](this[_0x1b5287(0x3c4)]['onRemoteRej'](_0x3e17c4)),this[_0x1b5287(0x2c6)]();}['_onRemoteRetry'](_0x320716){const _0x468440=_0x545128;this[_0x468440(0x272)](),this[_0x468440(0x48d)](this[_0x468440(0x3c4)]['onRemoteRetry'](_0x320716)),this[_0x468440(0x2c6)]();}[_0x545128(0x1ff)](_0x15e207){const _0x3f8c5c=_0x545128;if(!(this['_state']instanceof I))throw TypeError(_0x3f8c5c(0x49b));let _0x35f1ff=_0x15e207['map'](_0x2a0ca3=>{const _0x32d67f=_0x3f8c5c;let _0x5c317a=this[_0x32d67f(0x390)][_0x32d67f(0x331)][_0x32d67f(0x300)](this[_0x32d67f(0x390)][_0x32d67f(0x331)][_0x32d67f(0x26e)]()[_0x32d67f(0x4aa)])(_0x2a0ca3['mutations'],null)||_0x2a0ca3[_0x32d67f(0x329)];return{..._0x2a0ca3,'mutations':_0x5c317a};});this['_lockTransition'](),this[_0x3f8c5c(0x48d)](this['_state'][_0x3f8c5c(0x402)](_0x35f1ff)),this[_0x3f8c5c(0x2c6)]();}['_toggleOffline'](){const _0x2c4b56=_0x545128;this[_0x2c4b56(0x272)](),this[_0x2c4b56(0x48d)](this[_0x2c4b56(0x3c4)]['toggleOffline']()),this['_unlockTransition']();}[_0x545128(0x3be)](_0x24116f=!0x1){const _0x1b5a36=_0x545128;this[_0x1b5a36(0x272)](),this[_0x1b5a36(0x48d)](this[_0x1b5a36(0x3c4)][_0x1b5a36(0x349)]()),this[_0x1b5a36(0x2c6)]();let _0x33f492=this['_state'];_0x24116f&&_0x33f492 instanceof A&&(this[_0x1b5a36(0x272)](),this[_0x1b5a36(0x48d)](_0x33f492['fetchMiss']()),this[_0x1b5a36(0x2c6)]());}async['_createInitialState'](){return new Promise(_0x3d83dd=>{const _0x220ab1=_0x4024;this[_0x220ab1(0x45a)][_0x220ab1(0x4a1)][_0x220ab1(0x259)]((0x0,a['take'])(0x1))[_0x220ab1(0x31b)](async _0x2997ae=>{const _0x1bb82f=_0x220ab1;_0x3d83dd(await this[_0x1bb82f(0x2b2)](_0x2997ae===0x3));});});}['_createHandler'](){let _0x17e1aa=this['unitID'];return{'onStateChange':(_0xd03d32,_0x5eaa01)=>{const _0x5a5b33=_0x4024;if(_0xd03d32!==this[_0x5a5b33(0x3c4)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0xd03d32[_0x5a5b33(0x2f2)]+_0x5a5b33(0x1fc)+_0x5eaa01[_0x5a5b33(0x2f2)]+'\x0aCurrent:\x20'+this['_state'][_0x5a5b33(0x2f2)]);this[_0x5a5b33(0x48d)](_0x5eaa01);},'onSendChangeset':_0x46dedc=>{const _0x169f2a=_0x4024;_0x46dedc[_0x169f2a(0x374)]||(_0x46dedc[_0x169f2a(0x374)]=this[_0x169f2a(0x278)],_0x46dedc[_0x169f2a(0x43b)]=++this['_changesetReqId']);let _0x3a8b55={'eventID':t[_0x169f2a(0x27d)][_0x169f2a(0x3b8)],'data':{'unitID':_0x46dedc[_0x169f2a(0x2cd)],'unitType':this[_0x169f2a(0x345)],'changeset':_0x46dedc,'memberID':this['session'][_0x169f2a(0x479)]()}};this[_0x169f2a(0x45a)][_0x169f2a(0x1f7)](_0x3a8b55,this[_0x169f2a(0x2cd)]);},'onMissingChangesets':({from:_0x218fdf,to:_0x3dafca})=>{const _0x39d791=_0x4024;this[_0x39d791(0x4a2)][_0x39d791(0x1fb)]('[CollaborationEntity]',_0x39d791(0x480)+_0x218fdf+'\x20to\x20'+_0x3dafca);let _0x435b14={'eventID':t[_0x39d791(0x27d)][_0x39d791(0x330)],'data':{'unitID':_0x17e1aa,'unitType':this[_0x39d791(0x345)],'from':_0x218fdf,'to':_0x3dafca}};this[_0x39d791(0x45a)][_0x39d791(0x1f7)](_0x435b14,this[_0x39d791(0x2cd)]);}};}async[_0x545128(0x2b2)](_0x3e1879){const _0x59a58c=_0x545128;var _0x36d16a,_0xf9d2a7,_0x355a85;let _0x3fca59=await((_0x36d16a=this['_localCacheService'])==null?void 0x0:_0x36d16a['loadOfflineData'](this[_0x59a58c(0x2cd)])),_0x32b4f6=(_0xf9d2a7=_0x3fca59==null?void 0x0:_0x3fca59[_0x59a58c(0x329)])==null?[]:_0xf9d2a7,_0x26a95d=(_0x355a85=_0x3fca59==null?void 0x0:_0x3fca59[_0x59a58c(0x1eb)])==null?null:_0x355a85,_0x18836b=!!(_0x26a95d!=null&&_0x26a95d[_0x59a58c(0x374)])&&!!(_0x26a95d!=null&&_0x26a95d[_0x59a58c(0x43b)]);this[_0x59a58c(0x278)]=_0x18836b?_0x26a95d[_0x59a58c(0x374)]:(0x0,t[_0x59a58c(0x491)])(),this[_0x59a58c(0x47d)]=_0x18836b?_0x26a95d[_0x59a58c(0x43b)]:0x0;let _0x125493=this[_0x59a58c(0x2cd)];try{this[_0x59a58c(0x2e9)](_0x26a95d,_0x32b4f6);}catch(_0x16b589){this[_0x59a58c(0x4a2)][_0x59a58c(0x42e)](_0x16b589);}let _0x59aa5b=this[_0x59a58c(0x2ef)]();if(_0x3e1879){let _0xbf520e=Me(this['_injector'],_0x125493,this['_type'],_0x26a95d,_0x32b4f6,_0x59aa5b);return _0xbf520e instanceof j?_0xbf520e[_0x59a58c(0x39a)]():(_0xbf520e instanceof N||_0xbf520e instanceof M)&&_0xbf520e[_0x59a58c(0x204)](),_0xbf520e;}return this[_0x59a58c(0x2f9)][_0x59a58c(0x2f8)](F,_0x125493,this[_0x59a58c(0x345)],_0x26a95d,_0x32b4f6,_0x59aa5b);}[_0x545128(0x2e9)](_0x139277,_0x122441){const _0x46174b=_0x545128;var _0x33a58d,_0x592e13;let _0x8991c3=this['_compressMutationService']['interceptor']['fetchThroughInterceptors'](this[_0x46174b(0x390)]['interceptor'][_0x46174b(0x26e)]()['COMPRESS_MUTATION_APPLY']);(_0x33a58d=_0x8991c3((_0x139277==null?void 0x0:_0x139277[_0x46174b(0x329)])||[],null))==null||_0x33a58d[_0x46174b(0x295)](_0x5b7b42=>this['_commandService'][_0x46174b(0x3e3)](_0x5b7b42['id'],_0x5b7b42[_0x46174b(0x36d)])),(_0x592e13=_0x8991c3(_0x122441||[],null))==null||_0x592e13[_0x46174b(0x295)](_0x789ff1=>this[_0x46174b(0x2a6)][_0x46174b(0x3e3)](_0x789ff1['id'],_0x789ff1[_0x46174b(0x36d)]));}};L=b([y(0x3,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x24d)])),y(0x4,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x357)])),y(0x5,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x34e)])),y(0x6,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x296)])),y(0x7,(0x0,n['Inject'])(v)),y(0x8,n[_0x545128(0x4c4)]),y(0x9,n[_0x545128(0x368)]),y(0xa,n[_0x545128(0x419)]),y(0xb,n['IPermissionService']),y(0xc,(0x0,n[_0x545128(0x2da)])(T)),y(0xd,(0x0,n[_0x545128(0x2da)])(C))],L);let R=class extends L{constructor(_0x124921,_0x5ee172,_0x4da44a,_0x42d0c1,_0x549404,_0x5d4c4b,_0x4d101f,_0x419deb,_0x4c7a50,_0x4dc2f5,_0x52d4b3,_0x4cd2bc,_0xe54b4d,_0x342443,_0x31a083){const _0x1ec106=_0x545128;super(_0x124921,_0x4da44a,_0x5ee172,_0x42d0c1,_0x549404,_0x5d4c4b,_0x4d101f,_0x419deb,_0x4c7a50,_0x4dc2f5,_0x52d4b3,_0x4cd2bc,_0x342443,_0x31a083),this[_0x1ec106(0x2cd)]=_0x124921,this['type']=_0x5ee172,this[_0x1ec106(0x2f1)]=_0xe54b4d,_(this,_0x1ec106(0x3a3),null);}[_0x545128(0x240)](_0x58295c){const _0x1fb879=_0x545128;this[_0x1fb879(0x3a3)]=_0x58295c;}[_0x545128(0x25e)](){const _0x2d7c2a=_0x545128;this[_0x2d7c2a(0x3a3)]=null,super[_0x2d7c2a(0x25e)]();}[_0x545128(0x2ef)](){const _0x32ecfa=_0x545128;let _0x500fb1=super[_0x32ecfa(0x2ef)]();return _0x500fb1['onTransformIME']=_0x6b7d12=>{const _0x104fc5=_0x32ecfa;var _0xed4e3,_0x33a14c;return(_0xed4e3=this[_0x104fc5(0x3a3)])==null||(_0x33a14c=_0xed4e3[_0x104fc5(0x4ce)])==null?void 0x0:_0x33a14c[_0x104fc5(0x339)](_0xed4e3,_0x6b7d12);},_0x500fb1['onTransformState']=_0x5816ca=>{const _0x4a9f55=_0x32ecfa;var _0x55d2da,_0x23f7bc;return(_0x55d2da=this['_handlerCallback'])==null||(_0x23f7bc=_0x55d2da[_0x4a9f55(0x227)])==null?void 0x0:_0x23f7bc[_0x4a9f55(0x339)](_0x55d2da,_0x5816ca);},_0x500fb1['onTransformSelections']=_0x361f36=>{const _0x533601=_0x32ecfa;var _0x2481ca,_0x5d8d07;return(_0x2481ca=this['_handlerCallback'])==null||(_0x5d8d07=_0x2481ca[_0x533601(0x4a4)])==null?void 0x0:_0x5d8d07['call'](_0x2481ca,_0x361f36);},_0x500fb1[_0x32ecfa(0x284)]=_0x7fdfc=>{const _0x1cbaed=_0x32ecfa;var _0x445dfd,_0x45db57;return(_0x445dfd=this['_handlerCallback'])==null||(_0x45db57=_0x445dfd[_0x1cbaed(0x284)])==null?void 0x0:_0x45db57[_0x1cbaed(0x339)](_0x445dfd,_0x7fdfc);},_0x500fb1[_0x32ecfa(0x369)]=_0xece79c=>{const _0x40971d=_0x32ecfa;var _0x43cd51,_0x34fe90,_0x109e17;return(_0x43cd51=(_0x34fe90=this[_0x40971d(0x3a3)])==null||(_0x109e17=_0x34fe90['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x109e17[_0x40971d(0x339)](_0x34fe90,_0xece79c))==null?_0xece79c:_0x43cd51;},_0x500fb1['onTransformRemoteChangesetByStateCache']=_0x3593a1=>{const _0x251821=_0x32ecfa;var _0x5dcddd,_0x385344,_0x517f8a;return(_0x5dcddd=(_0x385344=this['_handlerCallback'])==null||(_0x517f8a=_0x385344[_0x251821(0x2c1)])==null?void 0x0:_0x517f8a[_0x251821(0x339)](_0x385344,_0x3593a1))==null?_0x3593a1:_0x5dcddd;},_0x500fb1;}async[_0x545128(0x207)](){const _0x169bd5=_0x545128;if(this[_0x169bd5(0x2f1)]==null)throw Error('[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.');let _0x5ca425=await super[_0x169bd5(0x207)]();return this[_0x169bd5(0x44d)](this[_0x169bd5(0x2f1)][_0x169bd5(0x3d0)]['subscribe'](_0x3a4eef=>{const _0x694df=_0x169bd5;if(_0x3a4eef==null||_0x3a4eef[_0x694df(0x222)]!==this[_0x694df(0x2cd)])return;let {commandId:_0x700bba,redoState:_0x4ade97,unitId:_0x1221e2}=_0x3a4eef,_0x2105cb={'id':_0x700bba,'type':n[_0x694df(0x2ce)][_0x694df(0x2af)],'params':{'unitId':_0x1221e2,'actions':_0x4ade97[_0x694df(0x449)],'textRanges':null}};this['_onLocalMutation'](_0x2105cb);})),this['disposeWithMe'](this[_0x169bd5(0x2a6)]['onMutationExecutedForCollab']((_0x1abfc1,_0x3be3c9)=>{const _0xdf7080=_0x169bd5;if(_0x1abfc1['type']!==n['CommandType'][_0xdf7080(0x2af)]||_0x3be3c9!=null&&_0x3be3c9[_0xdf7080(0x433)]||_0x3be3c9!=null&&_0x3be3c9[_0xdf7080(0x49c)]||_0x1abfc1['id']===r['RichTextEditingMutation']['id'])return;let _0x4adf16=_0x1abfc1[_0xdf7080(0x36d)];if((_0x4adf16==null?void 0x0:_0x4adf16[_0xdf7080(0x222)])!==this[_0xdf7080(0x2cd)])return;let _0x5af3e0=_0x1abfc1,_0x53af24=this[_0xdf7080(0x390)]['interceptor'][_0xdf7080(0x300)](this[_0xdf7080(0x390)][_0xdf7080(0x331)]['getInterceptPoints']()[_0xdf7080(0x3a2)])([_0x5af3e0],this[_0xdf7080(0x1e7)])||[_0x5af3e0];this['_onLocalMutation'](_0x53af24[0x0]);})),_0x5ca425;}};function _0x4024(_0x395146,_0x218042){_0x395146=_0x395146-0x1e6;const _0x3e56b8=_0x3e56();let _0x402443=_0x3e56b8[_0x395146];return _0x402443;}R=b([y(0x3,(0x0,n['Inject'])(n[_0x545128(0x24d)])),y(0x4,(0x0,n['Inject'])(t[_0x545128(0x357)])),y(0x5,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x34e)])),y(0x6,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x296)])),y(0x7,(0x0,n[_0x545128(0x304)])(v)),y(0x8,n[_0x545128(0x4c4)]),y(0x9,n[_0x545128(0x368)]),y(0xa,n[_0x545128(0x419)]),y(0xb,n['IPermissionService']),y(0xc,(0x0,n[_0x545128(0x2da)])(r['DocStateChangeManagerService'])),y(0xd,(0x0,n['Optional'])(T)),y(0xe,(0x0,n['Optional'])(C))],R);let Ne=class extends L{constructor(_0x23874b,_0x1e16ae,_0x2b6dd1,_0x3a5514,_0x4ecb14,_0xf77df7,_0x3ab67a,_0x574a81,_0x20cd67,_0x1d1cda,_0x3601c6,_0x223b56,_0x529cb6,_0xcb4e94){const _0x54c78f=_0x545128;super(_0x23874b,_0x2b6dd1,_0x1e16ae,_0x3a5514,_0x4ecb14,_0xf77df7,_0x3ab67a,_0x574a81,_0x20cd67,_0x1d1cda,_0x3601c6,_0x223b56,_0x529cb6,_0xcb4e94),this[_0x54c78f(0x2cd)]=_0x23874b,this['type']=_0x1e16ae;}async[_0x545128(0x207)](){const _0x298173=_0x545128;let _0x5bc828=await super[_0x298173(0x207)]();return this[_0x298173(0x44d)](this[_0x298173(0x2a6)]['onMutationExecutedForCollab']((_0x1fce34,_0x3d2601)=>{const _0x208c07=_0x298173;if(_0x1fce34[_0x208c07(0x393)]!==n[_0x208c07(0x2ce)][_0x208c07(0x2af)]||_0x3d2601!=null&&_0x3d2601['fromCollab']||_0x3d2601!=null&&_0x3d2601['onlyLocal']||_0x1fce34['id']!==e[_0x208c07(0x324)]['id'])return;let _0x3fd16f=_0x1fce34['params'];if((_0x3fd16f==null?void 0x0:_0x3fd16f[_0x208c07(0x222)])!==this['unitID'])return;let _0x32503c=_0x1fce34,_0x32dc07=this['_compressMutationService']['interceptor'][_0x208c07(0x300)](this[_0x208c07(0x390)][_0x208c07(0x331)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x32503c],this[_0x208c07(0x1e7)])||[_0x32503c];this[_0x208c07(0x2f5)](_0x32dc07[0x0]);})),_0x5bc828;}};Ne=b([y(0x3,(0x0,n[_0x545128(0x304)])(n['Injector'])),y(0x4,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x357)])),y(0x5,(0x0,n['Inject'])(n[_0x545128(0x34e)])),y(0x6,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x296)])),y(0x7,(0x0,n[_0x545128(0x304)])(v)),y(0x8,n[_0x545128(0x4c4)]),y(0x9,n[_0x545128(0x368)]),y(0xa,n[_0x545128(0x419)]),y(0xb,n['IPermissionService']),y(0xc,(0x0,n[_0x545128(0x2da)])(T)),y(0xd,(0x0,n[_0x545128(0x2da)])(C))],Ne);let z=class extends L{constructor(_0x50e5e3,_0xc7108b,_0x546577,_0x4655fb,_0x586ede,_0x26ffa8,_0x1abdb2,_0x402c6a,_0x4f2b7d,_0x385884,_0x8293c1,_0x336eeb,_0x488e5c,_0x1c818c,_0x4cb997){const _0x3bae9e=_0x545128;super(_0x50e5e3,_0x546577,_0xc7108b,_0x4655fb,_0x586ede,_0x26ffa8,_0x1abdb2,_0x4f2b7d,_0x385884,_0x8293c1,_0x336eeb,_0x488e5c,_0x1c818c,_0x4cb997),this[_0x3bae9e(0x2cd)]=_0x50e5e3,this[_0x3bae9e(0x393)]=_0xc7108b,this['_sheetTransformSelectionsService']=_0x402c6a;}['_createHandler'](){const _0x5a90ff=_0x545128;let _0x4bdb42=super[_0x5a90ff(0x2ef)]();return _0x4bdb42['onTransformSelections']=_0x111906=>this[_0x5a90ff(0x434)]['transformSelections'](_0x111906),_0x4bdb42;}async[_0x545128(0x207)](){const _0x455889=_0x545128;let _0x430fa=await super[_0x455889(0x207)]();return this[_0x455889(0x44d)](this[_0x455889(0x2a6)][_0x455889(0x1f1)]((_0x5f376c,_0x4263d3)=>{const _0x1a742f=_0x455889;if(_0x5f376c[_0x1a742f(0x393)]!==n[_0x1a742f(0x2ce)][_0x1a742f(0x2af)]||_0x4263d3!=null&&_0x4263d3[_0x1a742f(0x433)]||_0x4263d3!=null&&_0x4263d3['onlyLocal'])return;let _0x4424c2=_0x5f376c[_0x1a742f(0x36d)];if((_0x4424c2==null?void 0x0:_0x4424c2['unitId'])!==this[_0x1a742f(0x2cd)])return;let _0x40cdad=_0x5f376c,_0x1fba98=this[_0x1a742f(0x390)][_0x1a742f(0x331)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x1a742f(0x331)][_0x1a742f(0x26e)]()[_0x1a742f(0x3a2)])([_0x40cdad],this[_0x1a742f(0x1e7)])||[_0x40cdad];this[_0x1a742f(0x2f5)](_0x1fba98[0x0]);})),_0x430fa;}};z=b([y(0x3,(0x0,n['Inject'])(n[_0x545128(0x24d)])),y(0x4,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x357)])),y(0x5,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x34e)])),y(0x6,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x296)])),y(0x7,(0x0,n[_0x545128(0x304)])(w)),y(0x8,(0x0,n[_0x545128(0x304)])(v)),y(0x9,n['IUniverInstanceService']),y(0xa,n['ILogService']),y(0xb,n['ICommandService']),y(0xc,n['IPermissionService']),y(0xd,(0x0,n['Optional'])(T)),y(0xe,(0x0,n[_0x545128(0x2da)])(C))],z);let B=class extends L{constructor(_0x2a7368,_0x3685a8,_0x5cbf65,_0x47f5fe,_0x55deaf,_0x2fc715,_0x260c3b,_0x146405,_0x448379,_0x5af26a,_0x2437e1,_0x5d1c7c,_0x49491a,_0x122e59){const _0x26678d=_0x545128;super(_0x2a7368,_0x5cbf65,_0x3685a8,_0x47f5fe,_0x55deaf,_0x2fc715,_0x260c3b,_0x146405,_0x448379,_0x5af26a,_0x2437e1,_0x5d1c7c,_0x49491a,_0x122e59),this[_0x26678d(0x2cd)]=_0x2a7368,this['type']=_0x3685a8;}async['_init'](){const _0x13e339=_0x545128;let _0x50be0f=await super['_init']();return this[_0x13e339(0x44d)](this[_0x13e339(0x2a6)][_0x13e339(0x1f1)]((_0x4f6348,_0x1d5be2)=>{const _0x554130=_0x13e339;if(_0x4f6348[_0x554130(0x393)]!==n[_0x554130(0x2ce)][_0x554130(0x2af)]||_0x1d5be2!=null&&_0x1d5be2[_0x554130(0x433)]||_0x1d5be2!=null&&_0x1d5be2[_0x554130(0x49c)])return;let _0x169e30=_0x4f6348[_0x554130(0x36d)];if((_0x169e30==null?void 0x0:_0x169e30[_0x554130(0x222)])!==this[_0x554130(0x2cd)])return;let _0x2bfec4=_0x4f6348,_0x458985=this[_0x554130(0x390)][_0x554130(0x331)][_0x554130(0x300)](this[_0x554130(0x390)][_0x554130(0x331)]['getInterceptPoints']()[_0x554130(0x3a2)])([_0x2bfec4],this[_0x554130(0x1e7)])||[_0x2bfec4];this[_0x554130(0x2f5)](_0x458985[0x0]);})),_0x50be0f;}};B=b([y(0x3,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x24d)])),y(0x4,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x357)])),y(0x5,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x34e)])),y(0x6,(0x0,n[_0x545128(0x304)])(t[_0x545128(0x296)])),y(0x7,(0x0,n[_0x545128(0x304)])(v)),y(0x8,n[_0x545128(0x4c4)]),y(0x9,n['ILogService']),y(0xa,n[_0x545128(0x419)]),y(0xb,n[_0x545128(0x3bd)]),y(0xc,(0x0,n[_0x545128(0x2da)])(T)),y(0xd,(0x0,n[_0x545128(0x2da)])(C))],B);const Pe=(0x0,n['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function Fe(_0x3370a5){const _0x2029e1=_0x545128;let _0xe46e97=_0x3370a5['data'],_0x1e2e51=JSON[_0x2029e1(0x34d)](_0xe46e97);switch(_0x1e2e51[_0x2029e1(0x267)]){case o[_0x2029e1(0x2a2)][_0x2029e1(0x34f)]:case o[_0x2029e1(0x2a2)][_0x2029e1(0x3cd)]:{let _0x1b9cc8=_0x1e2e51['infoRsp'];return{..._0x1e2e51,'data':_0x1b9cc8,'cmd':_0x1e2e51[_0x2029e1(0x267)]};}case o[_0x2029e1(0x2a2)][_0x2029e1(0x413)]:{let _0x52cdfe=_0x1e2e51[_0x2029e1(0x24f)];return{..._0x1e2e51,'data':_0x52cdfe,'cmd':_0x1e2e51[_0x2029e1(0x267)]};}case o['CombCmd']['RECV']:{let _0x18104a=_0x1e2e51['collaMsg'];switch(_0x18104a[_0x2029e1(0x43a)]){case t[_0x2029e1(0x27d)]['PERMISSION_REJ']:var _0x8c7fad;return{..._0x1e2e51,'data':{..._0x18104a,'data':(_0x8c7fad=_0x18104a[_0x2029e1(0x45e)])==null?void 0x0:_0x8c7fad['cs']},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x3ff)]:var _0x32ba13;return{..._0x1e2e51,'data':{..._0x18104a,'data':(_0x32ba13=_0x18104a[_0x2029e1(0x229)])==null?void 0x0:_0x32ba13['cs']},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x359)]:var _0x982e40;return{..._0x1e2e51,'data':{..._0x18104a,'data':(_0x982e40=_0x18104a[_0x2029e1(0x215)])==null?void 0x0:_0x982e40['cs']},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x20d)]:var _0x359df6;return{..._0x1e2e51,'data':{..._0x18104a,'data':(_0x359df6=_0x18104a[_0x2029e1(0x3b1)])==null?void 0x0:_0x359df6['cs']},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x25a)]:var _0x25bd50;return{..._0x1e2e51,'data':{..._0x18104a,'data':(_0x25bd50=_0x18104a['csShouldRetryEvent'])==null?void 0x0:_0x25bd50['cs']},'cmd':_0x1e2e51['cmd']};case t[_0x2029e1(0x27d)][_0x2029e1(0x297)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a[_0x2029e1(0x256)]},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t['CollaborationEvent'][_0x2029e1(0x4b7)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a['joinEvent']},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x4bc)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a[_0x2029e1(0x29e)]},'cmd':_0x1e2e51['cmd']};case t['CollaborationEvent'][_0x2029e1(0x49f)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a[_0x2029e1(0x40c)]},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x3fa)]:case t[_0x2029e1(0x27d)]['LIVESHARE_OPERATION']:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a['liveShareOperation']},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t['CollaborationEvent'][_0x2029e1(0x398)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a[_0x2029e1(0x40c)]},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x3cb)]:return{..._0x1e2e51,'data':_0x18104a,'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t['CollaborationEvent'][_0x2029e1(0x4a0)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a[_0x2029e1(0x30c)]},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)]['UPDATE_PERMISSION_OBJ']:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a[_0x2029e1(0x365)]},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t[_0x2029e1(0x27d)][_0x2029e1(0x325)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a['shouldCloseConn']},'cmd':_0x1e2e51[_0x2029e1(0x267)]};case t['CollaborationEvent'][_0x2029e1(0x224)]:return{..._0x1e2e51,'data':{..._0x18104a,'data':_0x18104a[_0x2029e1(0x3dc)]},'cmd':_0x1e2e51[_0x2029e1(0x267)]};default:return _0x1e2e51;}}default:return _0x1e2e51;}}function Ie(_0x1e656a){const _0x4eb2c1=_0x545128;switch(_0x1e656a['cmd']){case o['CombCmd'][_0x4eb2c1(0x34f)]:case o[_0x4eb2c1(0x2a2)][_0x4eb2c1(0x3cd)]:return JSON['stringify']({'cmd':_0x1e656a[_0x4eb2c1(0x267)],'routeKey':_0x1e656a[_0x4eb2c1(0x2e7)]});case o[_0x4eb2c1(0x2a2)][_0x4eb2c1(0x31d)]:{let _0x4b424c;switch(_0x1e656a[_0x4eb2c1(0x4b8)][_0x4eb2c1(0x43a)]){case t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x297)]:_0x4b424c={'eventID':t['CollaborationEvent'][_0x4eb2c1(0x297)],'updateCursorEvent':_0x1e656a[_0x4eb2c1(0x4b8)][_0x4eb2c1(0x4b8)]};break;case t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x4bc)]:_0x4b424c={'eventID':t[_0x4eb2c1(0x27d)]['USERS_LEAVE'],'leaveEvent':_0x1e656a[_0x4eb2c1(0x4b8)][_0x4eb2c1(0x4b8)]};break;case t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x4b7)]:_0x4b424c={'eventID':t['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x1e656a[_0x4eb2c1(0x4b8)][_0x4eb2c1(0x4b8)]};break;case t[_0x4eb2c1(0x27d)]['LIVESHARE_NEW_HOST']:_0x4b424c={'eventID':t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x49f)],'liveShareNewHost':_0x1e656a[_0x4eb2c1(0x4b8)][_0x4eb2c1(0x4b8)]};break;case t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x371)]:_0x4b424c={'eventID':t['CollaborationEvent'][_0x4eb2c1(0x371)],'liveShareOperation':_0x1e656a['data'][_0x4eb2c1(0x4b8)]};break;case t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x398)]:_0x4b424c={'eventID':t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x398)],'liveShareTerminate':_0x1e656a[_0x4eb2c1(0x4b8)][_0x4eb2c1(0x4b8)]};break;case t['CollaborationEvent'][_0x4eb2c1(0x202)]:_0x4b424c={'eventID':t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x202)],'liveShareRequestHost':_0x1e656a[_0x4eb2c1(0x4b8)]['data']};break;case t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x3fa)]:_0x4b424c={'eventID':t[_0x4eb2c1(0x27d)][_0x4eb2c1(0x3fa)]};break;default:_0x4b424c={'eventID':_0x1e656a[_0x4eb2c1(0x4b8)][_0x4eb2c1(0x43a)]};}return JSON[_0x4eb2c1(0x4a3)]({'cmd':_0x1e656a[_0x4eb2c1(0x267)],'routeKey':_0x1e656a['routeKey'],'collaMsg':_0x4b424c});}case o[_0x4eb2c1(0x2a2)][_0x4eb2c1(0x413)]:return JSON[_0x4eb2c1(0x4a3)]({'cmd':_0x1e656a[_0x4eb2c1(0x267)],'routeKey':_0x1e656a[_0x4eb2c1(0x2e7)],'joinReq':_0x1e656a[_0x4eb2c1(0x4b8)]});case o['CombCmd'][_0x4eb2c1(0x1ee)]:return JSON[_0x4eb2c1(0x4a3)]({'cmd':_0x1e656a[_0x4eb2c1(0x267)],'routeKey':_0x1e656a['routeKey'],'leaveReq':_0x1e656a[_0x4eb2c1(0x4b8)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Le=(0x0,n[_0x545128(0x2c4)])(_0x545128(0x3e0));function Re(_0x1d7551,_0x5e3831,_0x5b4af6){const _0x57195b=_0x545128;return _0x1d7551+'/'+_0x5e3831+_0x57195b(0x442)+_0x5b4af6+_0x57195b(0x44e);}let ze=class extends n[_0x545128(0x3de)]{constructor(_0x4db899,_0x4356d6,_0x18d963,_0x3012a4,_0x2072ec){const _0x4b9cf5=_0x545128;super(),this['_injector']=_0x4db899,this[_0x4b9cf5(0x20c)]=_0x4356d6,this['_configService']=_0x18d963,this['_logService']=_0x3012a4,this[_0x4b9cf5(0x308)]=_0x2072ec;}[_0x545128(0x3e6)](_0x204df9){const _0x1faf9c=_0x545128;let _0x528854=this[_0x1faf9c(0x2f9)][_0x1faf9c(0x2f7)](u[_0x1faf9c(0x203)]);if(!_0x528854)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x3e9620=_0x528854[_0x1faf9c(0x3a6)](_0x204df9);if(!_0x3e9620)throw Error(_0x1faf9c(0x3b4));let _0x2ec119=new n[(_0x1faf9c(0x271))](),_0x1e6cdd=new a[(_0x1faf9c(0x335))]();_0x2ec119[_0x1faf9c(0x367)](_0x3e9620['close$'][_0x1faf9c(0x31b)](_0x1fcbb2=>_0x1e6cdd['next'](_0x1fcbb2))),_0x2ec119[_0x1faf9c(0x367)]((0x0,n[_0x1faf9c(0x45b)])(()=>_0x1e6cdd[_0x1faf9c(0x417)]()));let _0x51b43b=new a[(_0x1faf9c(0x335))]();_0x2ec119[_0x1faf9c(0x367)](_0x3e9620[_0x1faf9c(0x45c)][_0x1faf9c(0x31b)](_0x5b1694=>_0x51b43b[_0x1faf9c(0x2c2)](_0x5b1694))),_0x2ec119['add']((0x0,n[_0x1faf9c(0x45b)])(()=>_0x51b43b[_0x1faf9c(0x417)]()));let _0x10e0a5=new a[(_0x1faf9c(0x335))]();_0x2ec119[_0x1faf9c(0x367)](_0x3e9620[_0x1faf9c(0x2c9)][_0x1faf9c(0x31b)](_0x37b890=>{const _0x196462=_0x1faf9c;let _0x1fd261=Fe(_0x37b890);_0x10e0a5[_0x196462(0x2c2)](_0x1fd261);})),_0x2ec119[_0x1faf9c(0x367)]((0x0,n[_0x1faf9c(0x45b)])(()=>_0x10e0a5[_0x1faf9c(0x417)]()));let _0x26a760,_0x558275=()=>{const _0x2201e8=_0x1faf9c;_0x51b43b[_0x2201e8(0x2c2)](new Event(_0x2201e8(0x35c))),_0x1e6cdd[_0x2201e8(0x2c2)](new Event(_0x2201e8(0x35c))),_0x26a760[_0x2201e8(0x2df)]();};return _0x26a760={'memberID':'','close$':_0x1e6cdd[_0x1faf9c(0x49e)](),'error$':_0x51b43b['asObservable'](),'open$':_0x3e9620[_0x1faf9c(0x2a4)],'message$':_0x10e0a5[_0x1faf9c(0x49e)](),'send':_0x8c5a61=>{const _0x2f0f40=_0x1faf9c;if(_0x8c5a61[_0x2f0f40(0x267)]===o[_0x2f0f40(0x2a2)]['INGEST']){if(_0x8c5a61['data']['eventID']===t['CollaborationEvent']['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x26a760,_0x8c5a61[_0x2f0f40(0x4b8)])[_0x2f0f40(0x35e)](_0x4139f4=>{const _0x3a172f=_0x2f0f40;this[_0x3a172f(0x4a2)][_0x3a172f(0x42e)](_0x4139f4),_0x558275();});return;}if(_0x8c5a61[_0x2f0f40(0x4b8)][_0x2f0f40(0x43a)]===t[_0x2f0f40(0x27d)][_0x2f0f40(0x330)]){let _0x466b31=_0x8c5a61[_0x2f0f40(0x4b8)];this[_0x2f0f40(0x2cf)](_0x466b31)['then'](_0x58678e=>{const _0x247135=_0x2f0f40;_0x10e0a5['next']({'cmd':o[_0x247135(0x2a2)]['RECV'],'code':o[_0x247135(0x475)]['OK'],'routeKey':_0x466b31[_0x247135(0x4b8)][_0x247135(0x2cd)],'routeType':'','data':{'eventID':t[_0x247135(0x27d)][_0x247135(0x3d7)],'data':{'changesets':_0x58678e}}});})['catch'](_0x32a48b=>{const _0x3ddd6d=_0x2f0f40;this[_0x3ddd6d(0x4a2)][_0x3ddd6d(0x42e)](_0x32a48b),_0x558275();});return;}}_0x3e9620[_0x2f0f40(0x1f7)](Ie(_0x8c5a61));},'close':()=>{const _0x445f5e=_0x1faf9c;_0x3e9620[_0x445f5e(0x2df)](),_0x2ec119['dispose']();}},_0x26a760;}async[_0x545128(0x22f)](_0xf5f893,_0x3de346){const _0x4044bc=_0x545128;var _0x2995a4;let {unitType:_0x22c833,unitID:_0x1b1f37,changeset:_0x1112c9}=_0x3de346[_0x4044bc(0x4b8)],_0x216e73={'unitID':_0x1b1f37,'memberID':_0xf5f893[_0x4044bc(0x33c)],'type':_0x22c833,'changeset':(0x0,t[_0x4044bc(0x36b)])(_0x1112c9)},_0x1e5f76=this[_0x4044bc(0x2e4)][_0x4044bc(0x2c0)](h),_0x4bec17=Re((_0x2995a4=_0x1e5f76==null?void 0x0:_0x1e5f76[_0x4044bc(0x482)])==null?_0x4044bc(0x246):_0x2995a4,_0x22c833,_0x1b1f37);try{await this[_0x4044bc(0x20c)]['post'](_0x4bec17,{'body':_0x216e73});}catch(_0xa5b99a){throw this['_logService'][_0x4044bc(0x42e)](_0x4044bc(0x33f),_0x4044bc(0x4b6)),_0xa5b99a;}}async[_0x545128(0x2cf)](_0x54bf7b){const _0x5a78f0=_0x545128;let {unitID:_0x6befc9,from:_0x74157d,to:_0x4394fc,unitType:_0x11057f}=_0x54bf7b[_0x5a78f0(0x4b8)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x6befc9,'type':_0x11057f,'from':_0x74157d,'to':_0x4394fc}))[_0x5a78f0(0x283)][_0x5a78f0(0x2d9)](_0x486b78=>((_0x486b78['mutations']===null||_0x486b78[_0x5a78f0(0x329)]===void 0x0)&&(_0x486b78['mutations']=[]),_0x486b78));}};ze=b([y(0x0,(0x0,n['Inject'])(n[_0x545128(0x24d)])),y(0x1,(0x0,n[_0x545128(0x304)])(u[_0x545128(0x4a6)])),y(0x2,n[_0x545128(0x378)]),y(0x3,n[_0x545128(0x368)]),y(0x4,t[_0x545128(0x2ec)])],ze);let V=class extends n['Disposable']{get[_0x545128(0x443)](){const _0x19aa91=_0x545128;return this[_0x19aa91(0x2cc)][_0x19aa91(0x248)]();}constructor(_0x1457e1,_0xdc6b1e,_0xf95dd4,_0x1eb4f9,_0x197aee,_0x2f342b){const _0x353ad2=_0x545128;super(),this['_injector']=_0x1457e1,this['_logService']=_0xdc6b1e,this['_configService']=_0xf95dd4,this[_0x353ad2(0x28e)]=_0x1eb4f9,this[_0x353ad2(0x48f)]=_0x197aee,this[_0x353ad2(0x313)]=_0x2f342b,_(this,_0x353ad2(0x2cc),new a[(_0x353ad2(0x3b2))](void 0x0)),_(this,_0x353ad2(0x497),this[_0x353ad2(0x2cc)]['asObservable']()),_(this,'_candidateSocket',null),_(this,_0x353ad2(0x282),new Map()),_(this,_0x353ad2(0x32f),new a[(_0x353ad2(0x3b2))](0x0)),_(this,_0x353ad2(0x30e),this[_0x353ad2(0x32f)][_0x353ad2(0x49e)]()),_(this,'_socketReady',!0x1),_(this,_0x353ad2(0x252),void 0x0),_(this,'_retryCount',0x0),_(this,_0x353ad2(0x2d6),null),_(this,_0x353ad2(0x363),void 0x0),_(this,_0x353ad2(0x3eb),void 0x0),this['_listenToNetworkCondition']();}[_0x545128(0x435)](){const _0x56010f=_0x545128;this[_0x56010f(0x313)]&&this[_0x56010f(0x44d)](this['_networkConditionService'][_0x56010f(0x471)][_0x56010f(0x31b)](_0x54ad27=>{const _0x2fbb92=_0x56010f;_0x54ad27&&!this[_0x2fbb92(0x443)]&&this['reconnect'](),_0x54ad27||this[_0x2fbb92(0x2fe)]();}));}[_0x545128(0x25e)](){const _0x2bf305=_0x545128;var _0x1c1f3e;super['dispose'](),(_0x1c1f3e=this[_0x2bf305(0x2d6)])==null||_0x1c1f3e[_0x2bf305(0x385)](),this[_0x2bf305(0x2d6)]=null,this[_0x2bf305(0x3c3)](),this['_clearTimeoutTimer'](),this[_0x2bf305(0x397)](),this['_sessions'][_0x2bf305(0x295)](_0x98ac93=>_0x98ac93[_0x2bf305(0x25e)]()),this[_0x2bf305(0x282)]['clear'](),this['_status$']['complete']();}async[_0x545128(0x376)](_0x1ecead){const _0x44a565=_0x545128;if(this['_sessions'][_0x44a565(0x44f)](_0x1ecead))return this[_0x44a565(0x282)][_0x44a565(0x2f7)](_0x1ecead);this[_0x44a565(0x221)]();let _0x1d475d=this[_0x44a565(0x2f9)][_0x44a565(0x2f8)](S,_0x1ecead,this[_0x44a565(0x2cc)][_0x44a565(0x49e)]());return this['_sessions'][_0x44a565(0x3f4)](_0x1ecead,_0x1d475d),_0x1d475d;}[_0x545128(0x2b3)](_0x4524fb){const _0x557af0=_0x545128;let _0x2eca73=this[_0x557af0(0x282)][_0x557af0(0x2f7)](_0x4524fb);if(_0x2eca73&&(this[_0x557af0(0x282)][_0x557af0(0x3b0)](_0x4524fb),_0x2eca73[_0x557af0(0x2df)]()),!this[_0x557af0(0x282)]['size']){var _0x5c66ed;(_0x5c66ed=this[_0x557af0(0x443)])==null||_0x5c66ed[_0x557af0(0x2df)]();}}['reconnect'](){this['_retryCount']=0x0,this['_clearRetryConnectingTimer'](),this['_tryReconnect']();}['_clearRetryConnectingTimer'](){const _0x5d7ab9=_0x545128;this[_0x5d7ab9(0x252)]!=null&&(clearTimeout(this[_0x5d7ab9(0x252)]),this[_0x5d7ab9(0x252)]=null);}async['_createSocket'](){const _0x277781=_0x545128;var _0x4ea57e;let _0x56de76=this[_0x277781(0x2e4)][_0x277781(0x2c0)](h),_0x251b07=(_0x4ea57e=_0x56de76==null?void 0x0:_0x56de76['collabWebSocketUrl'])==null?te:_0x4ea57e,_0xe98a43=await this[_0x277781(0x28e)]['createSocket'](_0x251b07);return this[_0x277781(0x3d3)]=_0xe98a43,_0xe98a43;}async[_0x545128(0x221)](){const _0x440f2f=_0x545128;try{var _0x1710ba,_0x33fb7c;let _0x583551=(_0x1710ba=(_0x33fb7c=this[_0x440f2f(0x443)])==null?this[_0x440f2f(0x3d3)]:_0x33fb7c)==null?await this['_createSocket']():_0x1710ba;if(_0x583551){var _0x240b99;let _0x122943=_0x583551[_0x440f2f(0x1f7)];_0x583551[_0x440f2f(0x1f7)]=_0x4eed67=>(_0x4eed67['cmd']!==o[_0x440f2f(0x2a2)]['LEAVE']&&this['_rescheduleHeartbeat'](),_0x122943['apply'](_0x583551,[_0x4eed67])),(_0x240b99=this[_0x440f2f(0x2d6)])==null||_0x240b99[_0x440f2f(0x385)](),this['_socketMessageSubscription']=null,this[_0x440f2f(0x2d6)]=_0x583551[_0x440f2f(0x2c9)][_0x440f2f(0x31b)](_0x84e923=>this[_0x440f2f(0x266)](_0x583551,_0x84e923)),_0x583551[_0x440f2f(0x45c)][_0x440f2f(0x259)]((0x0,c[_0x440f2f(0x344)])(0x1))[_0x440f2f(0x31b)](_0x388a04=>this[_0x440f2f(0x4a2)][_0x440f2f(0x42e)](_0x440f2f(0x49d),_0x388a04)),_0x583551[_0x440f2f(0x2a4)][_0x440f2f(0x259)]((0x0,c[_0x440f2f(0x344)])(0x1))[_0x440f2f(0x31b)](()=>{this['_onConnectionOpen'](_0x583551);}),_0x583551['close$'][_0x440f2f(0x259)]((0x0,c[_0x440f2f(0x344)])(0x1))[_0x440f2f(0x31b)](_0x1e696d=>{const _0x5c0e42=_0x440f2f;this['_logService'][_0x5c0e42(0x1fb)](_0x5c0e42(0x4d1),_0x5c0e42(0x211),_0x1e696d),this[_0x5c0e42(0x4c2)]();});}}catch(_0xedf243){this[_0x440f2f(0x4a2)]['error'](_0xedf243),this[_0x440f2f(0x4c2)]();}}['_onConnectionOpen'](_0x3a7b69){const _0x5b77d0=_0x545128;this[_0x5b77d0(0x4a2)][_0x5b77d0(0x1fb)](_0x5b77d0(0x4d1),_0x5b77d0(0x488)),_0x3a7b69['send']({'cmd':o[_0x5b77d0(0x2a2)][_0x5b77d0(0x3cd)]}),this[_0x5b77d0(0x230)]();}[_0x545128(0x2fe)](){const _0x4fd212=_0x545128;this[_0x4fd212(0x1f3)]=!0x1,this['_candidateSocket']=null,this[_0x4fd212(0x32f)][_0x4fd212(0x2c2)](0x2),this['_socket$'][_0x4fd212(0x2c2)](null),this[_0x4fd212(0x2ea)](),this[_0x4fd212(0x397)]();}['_onConnectionFailed'](){const _0x36ebcb=_0x545128;var _0x53308b;this[_0x36ebcb(0x2fe)](),this['_retryCount']<((_0x53308b=this[_0x36ebcb(0x2e4)][_0x36ebcb(0x2c0)](_0x36ebcb(0x3f2)))==null?0x3:_0x53308b)?(this[_0x36ebcb(0x48f)]['emitEvent']({'id':_0x36ebcb(0x21a)}),this[_0x36ebcb(0x423)]()):this[_0x36ebcb(0x48f)]['emitEvent']({'id':_0x36ebcb(0x239)});}['_tryReconnect'](){const _0x414fe3=_0x545128;var _0x436adf;let _0x3f54f4=this[_0x414fe3(0x2c5)],_0x36da55=this[_0x414fe3(0x2e4)][_0x414fe3(0x2c0)](h),_0x111d4e=_0x3f54f4===0x0?0x0:((_0x436adf=_0x36da55==null?void 0x0:_0x36da55[_0x414fe3(0x45d)])==null?0x4e20:_0x436adf)*0x2**_0x3f54f4;this[_0x414fe3(0x252)]=setTimeout(()=>{const _0x206689=_0x414fe3;clearTimeout(this['_retryConnectingTimer']),this[_0x206689(0x252)]=null,this[_0x206689(0x221)]();},_0x111d4e),this['_retryCount']+=0x1;}[_0x545128(0x266)](_0x56d4df,_0x53968d){const _0x5b0ca3=_0x545128;let {cmd:_0x289015}=_0x53968d;_0x289015===o['CombCmd']['HELLO']&&!this[_0x5b0ca3(0x1f3)]&&(_0x56d4df[_0x5b0ca3(0x33c)]=_0x53968d[_0x5b0ca3(0x4b8)]['memberID'],this[_0x5b0ca3(0x2cc)]['next'](_0x56d4df),this[_0x5b0ca3(0x32f)][_0x5b0ca3(0x2c2)](0x3),this[_0x5b0ca3(0x1f3)]=!0x0,this[_0x5b0ca3(0x3d3)]=null),_0x289015===o['CombCmd'][_0x5b0ca3(0x34f)]&&this[_0x5b0ca3(0x2ea)](),this[_0x5b0ca3(0x230)]();}[_0x545128(0x230)](){const _0x306177=_0x545128;var _0x12670f;this[_0x306177(0x397)](),this[_0x306177(0x363)]=setTimeout(()=>this[_0x306177(0x317)](),(_0x12670f=this[_0x306177(0x2e4)][_0x306177(0x2c0)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x12670f);}[_0x545128(0x317)](){const _0x46611e=_0x545128;this[_0x46611e(0x443)][_0x46611e(0x1f7)]({'cmd':o[_0x46611e(0x2a2)][_0x46611e(0x34f)]}),this[_0x46611e(0x25b)]();}[_0x545128(0x25b)](){const _0x4e943f=_0x545128;var _0x57fea8;this[_0x4e943f(0x3eb)]=setTimeout(()=>this[_0x4e943f(0x4c2)](),(_0x57fea8=this[_0x4e943f(0x2e4)]['getConfig'](_0x4e943f(0x465)))==null?ne:_0x57fea8);}[_0x545128(0x397)](){const _0x2fb613=_0x545128;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2fb613(0x363)]),this[_0x2fb613(0x363)]=null);}[_0x545128(0x2ea)](){const _0x4d9cd3=_0x545128;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x4d9cd3(0x3eb)]),this['_timeoutTimer']=null);}};V=b([y(0x0,(0x0,n['Inject'])(n[_0x545128(0x24d)])),y(0x1,n['ILogService']),y(0x2,n[_0x545128(0x378)]),y(0x3,Le),y(0x4,(0x0,n['Inject'])(v)),y(0x5,(0x0,n[_0x545128(0x2da)])(Pe))],V);let H=class extends n[_0x545128(0x315)]{constructor(_0x8d79b2,_0x3f8812,_0x544238,_0x373228){const _0x542a12=_0x545128;var _0x4ad310;super(),this[_0x542a12(0x2f9)]=_0x8d79b2,this[_0x542a12(0x406)]=_0x3f8812,this[_0x542a12(0x2e4)]=_0x544238,this[_0x542a12(0x1e7)]=_0x373228,_(this,'_entities',new Map()),_(this,_0x542a12(0x399),new a[(_0x542a12(0x335))]()),_(this,_0x542a12(0x3e7),this[_0x542a12(0x399)][_0x542a12(0x49e)]()),((_0x4ad310=this[_0x542a12(0x2e4)][_0x542a12(0x2c0)](_0x542a12(0x322)))==null?void 0x0:_0x4ad310[_0x542a12(0x247)])!==!0x1&&this['_init']();}['dispose'](){const _0xca231c=_0x545128;super[_0xca231c(0x25e)](),this[_0xca231c(0x37f)][_0xca231c(0x295)](_0x287a74=>_0x287a74[_0xca231c(0x25e)]()),this[_0xca231c(0x37f)][_0xca231c(0x47f)]();}[_0x545128(0x372)](_0x2b2b89){const _0x355446=_0x545128;var _0x5954c9;return(_0x5954c9=this[_0x355446(0x37f)][_0x355446(0x2f7)](_0x2b2b89))==null?null:_0x5954c9;}[_0x545128(0x3f0)](_0x29952f){const _0x2fcf7a=_0x545128;let _0x2d1e96=this[_0x2fcf7a(0x372)](_0x29952f);return _0x2d1e96?(0x0,a['of'])(_0x2d1e96):this[_0x2fcf7a(0x399)]['pipe']((0x0,c[_0x2fcf7a(0x280)])(_0x1fef56=>_0x1fef56[_0x2fcf7a(0x2cd)]===_0x29952f));}['readyForCollab'](_0x411ec8){const _0x28c649=_0x545128;return(0x0,a['firstValueFrom'])(this[_0x28c649(0x3f0)](_0x411ec8)[_0x28c649(0x259)]((0x0,c[_0x28c649(0x2d9)])(()=>void 0x0)));}[_0x545128(0x207)](){const _0x66c895=_0x545128;this[_0x66c895(0x1e7)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x66c895(0x424)])['pipe']((0x0,a[_0x66c895(0x386)])(this[_0x66c895(0x245)]),(0x0,c[_0x66c895(0x32c)])(0x10))[_0x66c895(0x31b)](async _0xc08f1f=>{const _0x15e7e6=_0x66c895;let _0xb8e524=_0xc08f1f[_0x15e7e6(0x4a5)][_0x15e7e6(0x3bb)](),_0x2a197b=await this[_0x15e7e6(0x2dd)](_0xb8e524,n[_0x15e7e6(0x251)][_0x15e7e6(0x424)]);this[_0x15e7e6(0x37f)][_0x15e7e6(0x3f4)](_0xb8e524,_0x2a197b);}),this[_0x66c895(0x1e7)][_0x66c895(0x2be)](n[_0x66c895(0x251)][_0x66c895(0x42a)])[_0x66c895(0x259)]((0x0,a[_0x66c895(0x386)])(this[_0x66c895(0x245)]),(0x0,c['delay'])(0x10))[_0x66c895(0x259)]((0x0,c[_0x66c895(0x280)])(_0x337e91=>!_0x337e91[_0x66c895(0x4a5)][_0x66c895(0x3bb)]()[_0x66c895(0x323)]('__')))[_0x66c895(0x31b)](async _0x1dc63c=>{const _0x59d727=_0x66c895;let _0x345d75=_0x1dc63c['unit'][_0x59d727(0x3bb)](),_0x7fd664=await this['_startCollaboration'](_0x345d75,n[_0x59d727(0x251)][_0x59d727(0x42a)]);this[_0x59d727(0x37f)][_0x59d727(0x3f4)](_0x345d75,_0x7fd664);}),this[_0x66c895(0x1e7)]['getTypeOfUnitAdded$'](n['UniverInstanceType'][_0x66c895(0x437)])[_0x66c895(0x259)]((0x0,a[_0x66c895(0x386)])(this[_0x66c895(0x245)]),(0x0,c[_0x66c895(0x32c)])(0x10))[_0x66c895(0x31b)](async _0x5a1af9=>{const _0x187b0f=_0x66c895;let _0x515ebd=_0x5a1af9['unit'][_0x187b0f(0x3bb)](),_0x59fdeb=await this['_startCollaboration'](_0x515ebd,n[_0x187b0f(0x251)][_0x187b0f(0x437)]);this[_0x187b0f(0x37f)][_0x187b0f(0x3f4)](_0x515ebd,_0x59fdeb);}),this[_0x66c895(0x1e7)][_0x66c895(0x2be)](n[_0x66c895(0x251)]['UNIVER_BASE'])[_0x66c895(0x259)]((0x0,a[_0x66c895(0x386)])(this[_0x66c895(0x245)]),(0x0,c[_0x66c895(0x32c)])(0x10))[_0x66c895(0x31b)](async _0x508f20=>{const _0x5cca67=_0x66c895;let _0x4e3c9e=_0x508f20[_0x5cca67(0x4a5)][_0x5cca67(0x3bb)](),_0x116172=await this[_0x5cca67(0x2dd)](_0x4e3c9e,n[_0x5cca67(0x251)][_0x5cca67(0x291)]);this[_0x5cca67(0x37f)]['set'](_0x4e3c9e,_0x116172);}),(0x0,a[_0x66c895(0x303)])(this[_0x66c895(0x1e7)][_0x66c895(0x22c)](n[_0x66c895(0x251)][_0x66c895(0x424)]),this[_0x66c895(0x1e7)]['getTypeOfUnitDisposed$'](n[_0x66c895(0x251)]['UNIVER_DOC']),this[_0x66c895(0x1e7)][_0x66c895(0x22c)](n['UniverInstanceType'][_0x66c895(0x437)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](n[_0x66c895(0x251)][_0x66c895(0x291)]))[_0x66c895(0x259)]((0x0,a[_0x66c895(0x386)])(this[_0x66c895(0x245)]))[_0x66c895(0x31b)](_0x470ea5=>{const _0x1d7bc3=_0x66c895;let _0x13e7e3=_0x470ea5['getUnitId'](),_0x356ae6=this[_0x1d7bc3(0x37f)][_0x1d7bc3(0x2f7)](_0x13e7e3);_0x356ae6&&(_0x356ae6['dispose'](),this[_0x1d7bc3(0x37f)][_0x1d7bc3(0x3b0)](_0x13e7e3));});}async[_0x545128(0x2dd)](_0x44b5e0,_0x169562){const _0x5d947e=_0x545128;let _0x383353=await this['_collabSessionService'][_0x5d947e(0x376)](_0x44b5e0),_0x15a325=this['_injector'][_0x5d947e(0x2f8)](this[_0x5d947e(0x30b)](_0x169562),_0x44b5e0,_0x169562,_0x383353);return await _0x15a325[_0x5d947e(0x2b9)](),this[_0x5d947e(0x399)][_0x5d947e(0x2c2)](_0x15a325),_0x15a325;}['_getCtorByUniverInstanceType'](_0x110413){const _0x1ef387=_0x545128;switch(_0x110413){case n[_0x1ef387(0x251)][_0x1ef387(0x42a)]:return R;case n[_0x1ef387(0x251)][_0x1ef387(0x424)]:return z;case n[_0x1ef387(0x251)]['UNIVER_SLIDE']:return B;case n['UniverInstanceType'][_0x1ef387(0x291)]:return Ne;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x110413);}}};H=b([y(0x0,(0x0,n['Inject'])(n[_0x545128(0x24d)])),y(0x1,(0x0,n[_0x545128(0x304)])(V)),y(0x2,n[_0x545128(0x378)]),y(0x3,n['IUniverInstanceService'])],H);var Be='@univerjs-pro/collaboration-client',Ve='1.0.0-alpha.0';let He=class extends n[_0x545128(0x3de)]{constructor(_0x203cc2,_0x5fb72e){const _0x267189=_0x545128;super(),this[_0x267189(0x1e7)]=_0x203cc2,this[_0x267189(0x2e4)]=_0x5fb72e,this[_0x267189(0x207)]();}[_0x545128(0x207)](){const _0x27b451=_0x545128;this['disposeWithMe'](this['_univerInstanceService'][_0x27b451(0x25f)]['subscribe'](()=>{const _0x32662a=_0x27b451;var _0x307480;let _0x5e1ee5=this[_0x32662a(0x1e7)][_0x32662a(0x47a)](),_0x22221a=(_0x307480=this[_0x32662a(0x2e4)]['getConfig'](_0x32662a(0x48c)))==null?_0x32662a(0x260):_0x307480;_0x5e1ee5 instanceof n[_0x32662a(0x347)]&&(_0x22221a=_0x5e1ee5[_0x32662a(0x460)]),document[_0x32662a(0x1f6)]=_0x22221a;}));}};He=b([y(0x0,n['IUniverInstanceService']),y(0x1,n[_0x545128(0x378)])],He);let Ue=function(_0x44eabd){const _0xddaaa5=_0x545128;return _0x44eabd[_0xddaaa5(0x1ec)]=_0xddaaa5(0x1ec),_0x44eabd[_0xddaaa5(0x2a0)]=_0xddaaa5(0x2a0),_0x44eabd[_0xddaaa5(0x301)]=_0xddaaa5(0x301),_0x44eabd;}({});const We=(0x0,n[_0x545128(0x2c4)])(_0x545128(0x2b4));let U=class{constructor(_0x2f330f,_0x496b9a,_0x43f378){const _0x393800=_0x545128;this[_0x393800(0x20c)]=_0x2f330f,this[_0x393800(0x2e4)]=_0x496b9a,this[_0x393800(0x1e7)]=_0x43f378;}['getUploadOptions'](){const _0x3dd3a3=_0x545128;var _0x5b3126;return(_0x5b3126=this[_0x3dd3a3(0x342)]()[_0x3dd3a3(0x2c3)])==null?{}:_0x5b3126;}async['saveAttachment'](_0x536f33){const _0x2cf5a5=_0x545128;let _0xb1a79b=this['getUploadOptions']();if(Ge(_0x536f33,_0xb1a79b),_0xb1a79b[_0x2cf5a5(0x3f9)])return _0xb1a79b['upload'](_0x536f33);let _0x107c40=await this[_0x2cf5a5(0x468)](_0x536f33);return{'id':_0x107c40,'name':_0x536f33[_0x2cf5a5(0x460)],'mimeType':_0x536f33[_0x2cf5a5(0x393)],'size':_0x536f33['size'],'sourceType':_0x2cf5a5(0x2a0),'source':_0x107c40};}async[_0x545128(0x468)](_0x53f451){const _0x449432=_0x545128;let _0xbced5b=this[_0x449432(0x1e7)]['getFocusedUnit'](),_0x225f68=_0xbced5b==null?void 0x0:_0xbced5b[_0x449432(0x3bb)]();if(!_0x225f68)throw Error(_0x449432(0x24c));let _0x39794e=new FormData();_0x39794e[_0x449432(0x430)](_0x449432(0x3dd),_0x53f451);let _0x1ef40e=this[_0x449432(0x3c2)]()+'?size='+_0x53f451[_0x449432(0x292)][_0x449432(0x405)]()+_0x449432(0x431)+o[_0x449432(0x3a7)][_0x449432(0x4b0)]+_0x449432(0x4af)+encodeURIComponent(_0x225f68),_0x40e46b=(await this[_0x449432(0x20c)][_0x449432(0x3fd)](_0x1ef40e,{'body':_0x39794e}))['body'][_0x449432(0x30d)];if(typeof _0x40e46b!=_0x449432(0x2f0)||!_0x40e46b)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x40e46b;}[_0x545128(0x3c2)](){const _0x1f52d7=_0x545128;var _0x31f603;return(_0x31f603=this[_0x1f52d7(0x342)]()[_0x1f52d7(0x3bc)])==null?'/universer-api/stream/file/upload':_0x31f603;}['_getConfig'](){const _0xc38ac8=_0x545128;var _0x19f892;return(_0x19f892=this[_0xc38ac8(0x2e4)][_0xc38ac8(0x2c0)](_0xc38ac8(0x322)))==null?{}:_0x19f892;}};U=b([y(0x0,(0x0,n[_0x545128(0x304)])(u[_0x545128(0x4a6)])),y(0x1,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x378)])),y(0x2,(0x0,n[_0x545128(0x304)])(n['IUniverInstanceService']))],U);function Ge(_0xc9380f,_0x4e3597){const _0x3810c6=_0x545128;var _0x201286;if(_0x4e3597['maxSize']!=null&&_0xc9380f[_0x3810c6(0x292)]>_0x4e3597['maxSize'])throw Error(_0x3810c6(0x41d));if((_0x201286=_0x4e3597['accept'])!=null&&_0x201286[_0x3810c6(0x38a)]&&!_0x4e3597['accept'][_0x3810c6(0x39b)](_0x1178a0=>_0xc9380f[_0x3810c6(0x393)]===_0x1178a0||_0xc9380f[_0x3810c6(0x460)][_0x3810c6(0x38d)](_0x1178a0)||_0x1178a0[_0x3810c6(0x38d)]('/*')&&_0xc9380f[_0x3810c6(0x393)][_0x3810c6(0x323)](_0x1178a0[_0x3810c6(0x2f6)](0x0,-0x1))))throw Error(_0x3810c6(0x21f));}let W=class{constructor(_0x168166,_0x3b3b5c,_0x420227){const _0x4a691a=_0x545128;this[_0x4a691a(0x2e4)]=_0x168166,this[_0x4a691a(0x20c)]=_0x3b3b5c,this['localeService']=_0x420227,this[_0x4a691a(0x2b9)]();}[_0x545128(0x2b9)](){const _0x574b73=_0x545128;this['_httpService'][_0x574b73(0x332)]({'priority':0x1,'interceptor':(_0x2bf6e9,_0x5a800d)=>_0x5a800d(_0x2bf6e9)[_0x574b73(0x259)]((0x0,a[_0x574b73(0x43e)])(async _0x1b31ed=>{const _0x368bb4=_0x574b73;let _0x562153=_0x1b31ed;if(_0x562153[_0x368bb4(0x2f2)]===0x191){if(typeof window>'u')throw Error(_0x368bb4(0x31e));if(window[_0x368bb4(0x40b)](this['localeService']['t'](_0x368bb4(0x2fa)))){let _0x31dee4=window[_0x368bb4(0x26d)](window[_0x368bb4(0x45f)][_0x368bb4(0x411)]);window[_0x368bb4(0x45f)][_0x368bb4(0x411)]=this[_0x368bb4(0x3c1)]()+_0x368bb4(0x382)+_0x31dee4;}}return _0x562153;}))});}[_0x545128(0x3c1)](){const _0x473933=_0x545128;var _0x32b5e2;let _0x4e380a=this[_0x473933(0x2e4)][_0x473933(0x2c0)](h);return(_0x32b5e2=_0x4e380a==null?void 0x0:_0x4e380a[_0x473933(0x361)])==null?_0x473933(0x381):_0x32b5e2;}};W=b([y(0x0,n['IConfigService']),y(0x1,(0x0,n['Inject'])(u[_0x545128(0x4a6)])),y(0x2,(0x0,n[_0x545128(0x304)])(n['LocaleService']))],W);let G=class extends n['Disposable']{constructor(_0x344e1b,_0x4c5a95){const _0x38cd38=_0x545128;super(),this['_HTTPService']=_0x344e1b,this[_0x38cd38(0x2e4)]=_0x4c5a95,_(this,'_cfgEnableObjInherit',!0x1),this[_0x38cd38(0x27a)]();}['_initMergeInterceptor'](){const _0x29d7a0=_0x545128;let _0x322b8e=this;this['disposeWithMe'](this[_0x29d7a0(0x2ff)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,u[_0x29d7a0(0x351)])({'isMatch'(_0x1006ed){const _0x1a900b=_0x29d7a0;var _0x2b5e93;if(_0x1006ed[_0x1a900b(0x2a1)]===_0x1a900b(0x1f0)&&(_0x2b5e93=_0x1006ed[_0x1a900b(0x42d)])!=null&&_0x2b5e93[_0x1a900b(0x3b3)]){let {objectID:_0x4b0a39,objectType:_0x31af68}=_0x1006ed[_0x1a900b(0x42d)][_0x1a900b(0x3b3)]||{};if(!_0x4b0a39||_0x31af68===void 0x0)return!0x1;let _0x14e506=_0x322b8e[_0x1a900b(0x234)]()+'/'+_0x31af68+_0x1a900b(0x414)+_0x4b0a39+_0x1a900b(0x403);if(_0x1006ed['url']===_0x14e506)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x535c64){const _0x3f8d02=_0x29d7a0;var _0x53c1ec;return(_0x53c1ec=_0x535c64[_0x3f8d02(0x42d)])==null?void 0x0:_0x53c1ec[_0x3f8d02(0x3b3)];},'mergeParamsToRequest'(_0x4c7b9c,_0x39e43a){const _0x34b01e=_0x29d7a0;let _0x13fa4a=_0x322b8e[_0x34b01e(0x234)]()+_0x34b01e(0x36e),_0x1be811=_0x4c7b9c[_0x34b01e(0x29b)]((_0x55dd83,_0x208f1b)=>{const _0x409ef4=_0x34b01e;let {unitID:_0xffcc9c,objectID:_0xc9d0cd,objectType:_0x6d94d6,actions:_0x950bc3}=_0x208f1b;return _0x55dd83[_0xffcc9c]||(_0x55dd83[_0xffcc9c]={}),_0x55dd83[_0xffcc9c][_0xc9d0cd]||(_0x55dd83[_0xffcc9c][_0xc9d0cd]={'objectID':_0xc9d0cd,'objectType':_0x6d94d6,'actions':[]}),_0x55dd83[_0xffcc9c][_0xc9d0cd][_0x409ef4(0x449)][_0x409ef4(0x3f5)](..._0x950bc3),_0x55dd83;},{}),_0x3c80f3=[];for(let _0x302bc2 in _0x1be811)for(let _0x3338f8 in _0x1be811[_0x302bc2]){let {actions:_0x41034d,objectType:_0x2b3872}=_0x1be811[_0x302bc2][_0x3338f8],_0x10a31f=[...new Set(_0x41034d)];_0x3c80f3[_0x34b01e(0x3f5)]({'unitID':_0x302bc2,'objectID':_0x3338f8,'objectType':_0x2b3872,'actions':_0x10a31f});}return new u[(_0x34b01e(0x2de))](_0x34b01e(0x1f0),_0x13fa4a,{'headers':_0x39e43a[_0x34b01e(0x404)],'withCredentials':_0x39e43a[_0x34b01e(0x41c)],'responseType':_0x39e43a[_0x34b01e(0x4c8)],'body':{'requests':_0x3c80f3}});}},{'distributeResult'(_0x3e0cdc,_0x35666b){const _0x57a4a5=_0x29d7a0;let {objectActions:_0xd2a358}=_0x3e0cdc;return _0x35666b[_0x57a4a5(0x2d9)](_0x4975fa=>{const _0x568640=_0x57a4a5;let {unitID:_0x22a082,objectID:_0x4fcb0d,actions:_0x47dad2}=_0x4975fa,_0x41e5aa=_0xd2a358['find'](_0x472a24=>_0x472a24[_0x568640(0x2cd)]===_0x22a082&&_0x472a24[_0x568640(0x4d4)]===_0x4fcb0d);return{'config':_0x4975fa,'result':{'actions':_0x47dad2['map'](_0x29b26b=>_0x41e5aa==null?void 0x0:_0x41e5aa[_0x568640(0x449)][_0x568640(0x467)](_0x86e18f=>_0x86e18f['action']===_0x29b26b))['filter'](_0xc5248b=>!!_0xc5248b),'error':_0x3e0cdc[_0x568640(0x42e)]}};});}})}));}[_0x545128(0x234)](){const _0x235459=_0x545128;var _0x5d0cc9;let _0x5f217c=this[_0x235459(0x2e4)][_0x235459(0x2c0)](h);return(_0x5d0cc9=_0x5f217c==null?void 0x0:_0x5f217c['authzUrl'])==null?_0x235459(0x46b):_0x5d0cc9;}async[_0x545128(0x43c)](_0x4ba7dc){const _0x34099d=_0x545128;let _0x16f43c=this[_0x34099d(0x234)]()+'/'+_0x4ba7dc[_0x34099d(0x409)]+_0x34099d(0x3ba);return(await this[_0x34099d(0x2ff)][_0x34099d(0x3fd)](_0x16f43c,{'body':_0x4ba7dc}))[_0x34099d(0x3b3)][_0x34099d(0x4d4)]||'';}async['list'](_0x48e6c9){const _0xd6ee06=_0x545128;let _0x26b124=this[_0xd6ee06(0x234)]()+'/-/object/list';return(await this[_0xd6ee06(0x2ff)]['post'](_0x26b124,{'body':_0x48e6c9}))['body'][_0xd6ee06(0x2ae)];}async[_0x545128(0x457)](_0x38b45c){const _0x5760a9=_0x545128;var _0x5bbfa5;let _0x40ced2=this[_0x5760a9(0x234)]()+'/'+_0x38b45c[_0x5760a9(0x409)]+'/object/'+_0x38b45c[_0x5760a9(0x4d4)],_0x33505a=await this['_HTTPService'][_0x5760a9(0x1e8)](_0x40ced2,{'body':_0x38b45c});if((_0x33505a==null||(_0x5bbfa5=_0x33505a['body'])==null||(_0x5bbfa5=_0x5bbfa5['error'])==null?void 0x0:_0x5bbfa5['code'])!==0x1)throw Error(_0x5760a9(0x458));}async[_0x545128(0x2e5)](_0x4919c3){const _0x3963bb=_0x545128;let _0x4cdd3f=this[_0x3963bb(0x234)]()+'/'+_0x4919c3[_0x3963bb(0x409)]+'/object/'+_0x4919c3[_0x3963bb(0x4d4)]+'/allowed';return(await this[_0x3963bb(0x2ff)]['post'](_0x4cdd3f,{'body':_0x4919c3}))[_0x3963bb(0x3b3)][_0x3963bb(0x449)];}async[_0x545128(0x2ba)](_0x598760){const _0x208965=_0x545128;let _0x506fa5=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x208965(0x2ff)][_0x208965(0x3fd)](_0x506fa5,{'body':{'requests':_0x598760}}))[_0x208965(0x3b3)][_0x208965(0x3a0)];}async[_0x545128(0x38c)](_0x3f4ded){const _0x54517b=_0x545128;let _0x5a7c11=this['_getAPIPrefixPath']()+'/'+_0x3f4ded[_0x54517b(0x409)]+'/role',_0x957bc=await this[_0x54517b(0x2ff)]['post'](_0x5a7c11,{'body':_0x3f4ded});return{'roles':_0x957bc[_0x54517b(0x3b3)]['roles'],'actions':_0x957bc[_0x54517b(0x3b3)][_0x54517b(0x449)]};}async[_0x545128(0x438)](_0x418244){const _0x1cfddd=_0x545128;let _0x262786=this[_0x1cfddd(0x234)]()+'/collaborator';await this[_0x1cfddd(0x2ff)][_0x1cfddd(0x3b0)](_0x262786,{'params':{'collaboratorID':_0x418244[_0x1cfddd(0x3fb)],'objectID':_0x418244[_0x1cfddd(0x4d4)],'unitID':_0x418244[_0x1cfddd(0x2cd)]}});}async[_0x545128(0x287)](_0x4617bb){const _0x106b27=_0x545128;let _0x344dbb=this[_0x106b27(0x234)]()+_0x106b27(0x440);await this[_0x106b27(0x2ff)][_0x106b27(0x27e)](_0x344dbb,{'body':_0x4617bb});}async[_0x545128(0x2d2)](_0x340a48){const _0x47f388=_0x545128;let _0x2bdf4c=this[_0x47f388(0x234)]()+_0x47f388(0x440);await this[_0x47f388(0x2ff)][_0x47f388(0x3fd)](_0x2bdf4c,{'body':_0x340a48});}async['listCollaborators'](_0x3e8732){const _0xe18f91=_0x545128;var _0xf10f60;let _0x1b0ea4=this[_0xe18f91(0x234)]()+_0xe18f91(0x440),_0x3129eb=await this[_0xe18f91(0x2ff)][_0xe18f91(0x2f7)](_0x1b0ea4,{'params':{'objectID':_0x3e8732[_0xe18f91(0x4d4)],'unitID':_0x3e8732[_0xe18f91(0x2cd)]}});return this[_0xe18f91(0x26b)]((_0xf10f60=_0x3129eb[_0xe18f91(0x3b3)][_0xe18f91(0x470)])==null?!0x1:_0xf10f60),_0x3129eb[_0xe18f91(0x3b3)][_0xe18f91(0x34b)];}async['putCollaborators'](_0x42351){const _0x413001=_0x545128;let _0x288216=this[_0x413001(0x234)]()+_0x413001(0x440);await this[_0x413001(0x2ff)][_0x413001(0x1e8)](_0x288216,{'body':_0x42351});}['setCfgEnableObjInherit'](_0x9cfec3){const _0x1fc7eb=_0x545128;this[_0x1fc7eb(0x461)]=_0x9cfec3;}[_0x545128(0x38f)](){const _0x449bf3=_0x545128;return this[_0x449bf3(0x461)];}};G=b([y(0x0,(0x0,n['Inject'])(u['HTTPService'])),y(0x1,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x378)]))],G);function Ke(_0x4679dc){const _0x8ed51d=_0x545128;let _0x266646=atob(_0x4679dc),_0x13cebe=new Uint8Array(_0x266646[_0x8ed51d(0x38a)]);for(let _0x2f1a62=0x0;_0x2f1a62<_0x266646[_0x8ed51d(0x38a)];_0x2f1a62++)_0x13cebe[_0x2f1a62]=_0x266646[_0x8ed51d(0x293)](_0x2f1a62);return _0x13cebe;}function qe(_0x281793){const _0x2b3e88=_0x545128;let _0x465c60='';for(let _0x524e66=0x0;_0x524e66<_0x281793[_0x2b3e88(0x38a)];_0x524e66++)_0x465c60+=String[_0x2b3e88(0x286)](_0x281793[_0x524e66]);return btoa(_0x465c60);}function Je(_0x453f90,_0x3e08f4){const _0x266f25=_0x545128;let _0x326a69=Ke(_0x3e08f4),_0x7baead=(0x0,m['randomBytes'])(0x10);return qe((0x0,m[_0x266f25(0x4db)])(_0x7baead,(0x0,p[_0x266f25(0x4c6)])(_0x326a69,_0x7baead)[_0x266f25(0x425)]((0x0,m[_0x266f25(0x3ee)])(_0x453f90))));}function Ye(){const _0x275f39=_0x545128;let _0x13b5f1=(0x0,d['getGlobalObject'])()['__Key__'];if(typeof window<'u'&&window['location']!==void 0x0&&_0x13b5f1){let _0x979dc3={'time':Math[_0x275f39(0x279)](Date['now']()/0x3e8),'domain':location[_0x275f39(0x1f5)]};return Je(JSON[_0x275f39(0x4a3)](_0x979dc3),_0x13b5f1);}}let K=class{constructor(_0x471d98){const _0x1c8a18=_0x545128;this['_httpService']=_0x471d98,this[_0x1c8a18(0x3f1)]();}[_0x545128(0x3f1)](){const _0x33aff0=_0x545128;this[_0x33aff0(0x20c)][_0x33aff0(0x332)]({'interceptor':(_0x10e9f2,_0x47a8ac)=>{const _0x36b1f3=_0x33aff0;let _0x4a2345=Ye();return _0x4a2345&&_0x10e9f2[_0x36b1f3(0x404)][_0x36b1f3(0x3f4)](_0x36b1f3(0x3e9),_0x4a2345),_0x47a8ac(_0x10e9f2);}});}};K=b([y(0x0,(0x0,n[_0x545128(0x304)])(u[_0x545128(0x4a6)]))],K);let q=class extends n['RxDisposable']{constructor(_0x168ef3,_0x36d0e3,_0xb78065){const _0x18f0fa=_0x545128;super(),this[_0x18f0fa(0x4a2)]=_0x168ef3,this[_0x18f0fa(0x2fd)]=_0x36d0e3,this[_0x18f0fa(0x3ea)]=_0xb78065,_(this,_0x18f0fa(0x2bf),new a[(_0x18f0fa(0x3b2))](null)),_(this,_0x18f0fa(0x23d),new a['Subject']()),_(this,_0x18f0fa(0x39e),this[_0x18f0fa(0x2bf)][_0x18f0fa(0x49e)]()),_(this,_0x18f0fa(0x288),this[_0x18f0fa(0x23d)][_0x18f0fa(0x49e)]());}[_0x545128(0x25e)](){const _0x26ecc9=_0x545128;super[_0x26ecc9(0x25e)](),this[_0x26ecc9(0x23d)]['complete'](),this[_0x26ecc9(0x2bf)][_0x26ecc9(0x417)]();}async[_0x545128(0x383)](_0x4c3315,_0x3f5a3e,_0x931ec2){const _0x378c08=_0x545128;this[_0x378c08(0x2bf)][_0x378c08(0x2c2)]({'unitId':_0x4c3315,'type':_0x3f5a3e});let _0x2d4484=null;switch(_0x3f5a3e){case n[_0x378c08(0x251)][_0x378c08(0x424)]:_0x2d4484=await this[_0x378c08(0x2fd)][_0x378c08(0x3d9)](_0x4c3315,_0x931ec2);break;case n[_0x378c08(0x251)]['UNIVER_DOC']:_0x2d4484=await this[_0x378c08(0x2fd)][_0x378c08(0x3d1)](_0x4c3315,_0x931ec2);break;case n[_0x378c08(0x251)][_0x378c08(0x437)]:_0x2d4484=await this['_snapshotService'][_0x378c08(0x37c)](_0x4c3315,_0x931ec2);break;case n[_0x378c08(0x251)][_0x378c08(0x291)]:_0x2d4484=await this['_snapshotService'][_0x378c08(0x326)](_0x4c3315,_0x931ec2);break;default:this['_logService'][_0x378c08(0x42e)]('[DataLoaderService]',_0x378c08(0x483));break;}return _0x2d4484&&this[_0x378c08(0x23d)][_0x378c08(0x2c2)](_0x2d4484),_0x2d4484;}async[_0x545128(0x454)](_0x2c0678,_0x565305,_0x3ddb5a){const _0x261a92=_0x545128;var _0x562d0d;this[_0x261a92(0x2bf)]['next']({'unitId':_0x2c0678,'type':_0x565305,'subUnitId':_0x3ddb5a});let _0x2fffa8=0x0,_0x1997b3=await((_0x562d0d=this[_0x261a92(0x3ea)])==null?void 0x0:_0x562d0d[_0x261a92(0x321)](_0x2c0678));return _0x1997b3&&(_0x1997b3['awaitingChangeset']||_0x1997b3[_0x261a92(0x329)]['length']!==0x0)&&(_0x2fffa8=_0x1997b3['rev']),_0x2fffa8===0x0&&this[_0x261a92(0x4a2)][_0x261a92(0x1fb)](_0x261a92(0x37d),_0x261a92(0x23c)),this[_0x261a92(0x383)](_0x2c0678,_0x565305,_0x2fffa8);}};q=b([y(0x0,n[_0x545128(0x368)]),y(0x1,(0x0,n[_0x545128(0x304)])(t['SnapshotService'])),y(0x2,(0x0,n[_0x545128(0x2da)])(C))],q);let J=class{constructor(_0x35822,_0xeac41f,_0x8a9006){const _0x2d83f2=_0x545128;this[_0x2d83f2(0x20c)]=_0x35822,this[_0x2d83f2(0x2e4)]=_0xeac41f,this[_0x2d83f2(0x1e7)]=_0x8a9006,_(this,'_waitCount',0x0),_(this,_0x2d83f2(0x225),new a[(_0x2d83f2(0x335))]()),_(this,_0x2d83f2(0x436),this[_0x2d83f2(0x225)]),_(this,_0x2d83f2(0x22e),new Map());}['setWaitCount'](_0x1dd592){const _0x160baa=_0x545128;this[_0x160baa(0x3fc)]=_0x1dd592,this[_0x160baa(0x225)][_0x160baa(0x2c2)](_0x1dd592);}[_0x545128(0x2bd)](_0x1c8c8c,_0x5a72c4){const _0x8c94a6=_0x545128;if(_0x5a72c4===f[_0x8c94a6(0x289)][_0x8c94a6(0x301)]){let _0x43f3cb=new Image();return _0x43f3cb[_0x8c94a6(0x3e8)]=_0x1c8c8c,_0x43f3cb;}return this['_imageSourceCache'][_0x8c94a6(0x2f7)](_0x1c8c8c);}[_0x545128(0x4ba)](_0xc6e33f,_0x4e66f6,_0x1da545){const _0x3a9a4e=_0x545128;_0x4e66f6===f[_0x3a9a4e(0x289)][_0x3a9a4e(0x301)]||_0x1da545==null||this[_0x3a9a4e(0x22e)]['set'](_0xc6e33f,_0x1da545);}async[_0x545128(0x32b)](_0x279eca){const _0x406806=_0x545128;try{let _0x177e26=this['_replaceFileID'](this[_0x406806(0x33a)](),''+_0x279eca),_0xee8ea7=(await this[_0x406806(0x20c)]['get'](_0x177e26))['body'];if(_0xee8ea7['error']&&_0xee8ea7[_0x406806(0x42e)]['code']===o[_0x406806(0x24b)]['OK']){let _0x13135a=(0x0,n['resolveWithBasePath'])(_0xee8ea7[_0x406806(0x477)],this[_0x406806(0x387)]());return Promise[_0x406806(0x4c9)](_0x13135a);}return Promise['reject'](_0xee8ea7[_0x406806(0x42e)]);}catch(_0x8bd15c){return Promise['reject'](_0x8bd15c);}}async['saveImage'](_0x587929){const _0x35d24f=_0x545128;let _0x310213='';if(!f['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x35d24f(0x4ac)](_0x587929['type']))return this[_0x35d24f(0x39d)](),Promise[_0x35d24f(0x236)](Error(f[_0x35d24f(0x2ac)][_0x35d24f(0x23e)]));if(_0x587929[_0x35d24f(0x292)]>(0x0,f['getDrawingImageAllowSize'])())return this[_0x35d24f(0x39d)](),Promise[_0x35d24f(0x236)](Error(f[_0x35d24f(0x2ac)][_0x35d24f(0x43d)]));try{let _0xe84820=new FormData();_0xe84820[_0x35d24f(0x430)]('file',_0x587929);let _0x5c98b1=this[_0x35d24f(0x1e7)]['getFocusedUnit'](),_0x3d0140=_0x5c98b1==null?void 0x0:_0x5c98b1[_0x35d24f(0x3bb)]();if(!_0x3d0140)throw Error(_0x35d24f(0x3ab));let _0x93e57=this[_0x35d24f(0x3c2)]()+'?size='+_0x587929[_0x35d24f(0x292)]['toString']()+_0x35d24f(0x431)+o['FileSource']['UnitEmbedded']+_0x35d24f(0x4af)+encodeURIComponent(_0x3d0140),_0x49651d={'body':_0xe84820},_0x205395=(await this[_0x35d24f(0x20c)]['post'](_0x93e57,_0x49651d))[_0x35d24f(0x3b3)];if(typeof _0x205395[_0x35d24f(0x30d)]!='string')return this[_0x35d24f(0x39d)](),Promise[_0x35d24f(0x236)](Error(f[_0x35d24f(0x2ac)][_0x35d24f(0x3b5)]));_0x310213=_0x205395[_0x35d24f(0x30d)];}catch{return this[_0x35d24f(0x39d)](),Promise['reject'](Error(f['ImageUploadStatusType'][_0x35d24f(0x3b5)]));}return new Promise((_0x422585,_0x41d54e)=>{const _0x339e78=_0x35d24f;let _0x50e9d7=new FileReader();_0x50e9d7[_0x339e78(0x370)](_0x587929),_0x50e9d7[_0x339e78(0x306)]=_0x5c2da0=>{const _0x406d6f=_0x339e78;var _0xfd4ce0;let _0x280e98=(_0xfd4ce0=_0x5c2da0['target'])==null?void 0x0:_0xfd4ce0[_0x406d6f(0x33b)];if(_0x280e98==null){this[_0x406d6f(0x39d)](),_0x41d54e(Error(f['ImageUploadStatusType'][_0x406d6f(0x3b5)]));return;}_0x422585({'imageId':(0x0,n[_0x406d6f(0x318)])(0x6),'imageSourceType':f[_0x406d6f(0x289)][_0x406d6f(0x2a0)],'source':_0x310213,'base64Cache':_0x280e98,'status':f[_0x406d6f(0x2ac)]['SUCCUSS']}),this[_0x406d6f(0x39d)]();};});}['_getUploadFileURL'](){const _0x5ea4f2=_0x545128;var _0x14689d;let _0xdcf789=this[_0x5ea4f2(0x2e4)][_0x5ea4f2(0x2c0)](h);return(_0x14689d=_0xdcf789==null?void 0x0:_0xdcf789[_0x5ea4f2(0x3bc)])==null?_0x5ea4f2(0x314):_0x14689d;}[_0x545128(0x33a)](){const _0x1ea4c5=_0x545128;var _0x159ca5;let _0x47b957=this[_0x1ea4c5(0x2e4)][_0x1ea4c5(0x2c0)](h);return(_0x159ca5=_0x47b957==null?void 0x0:_0x47b957[_0x1ea4c5(0x31a)])==null?_0x1ea4c5(0x485):_0x159ca5;}['_getDownloadEndpointURL'](){const _0x55ed16=_0x545128;var _0xad4ae1;let _0x43c02d=this[_0x55ed16(0x2e4)][_0x55ed16(0x2c0)](h);return(_0xad4ae1=_0x43c02d==null?void 0x0:_0x43c02d[_0x55ed16(0x3fe)])==null?location[_0x55ed16(0x2fb)]:_0xad4ae1;}[_0x545128(0x281)](_0x5204e2,_0x3e4115){const _0x119a0f=_0x545128;return _0x5204e2[_0x119a0f(0x4c1)](_0x119a0f(0x4d3),_0x3e4115);}[_0x545128(0x39d)](){const _0x440eab=_0x545128;--this[_0x440eab(0x3fc)],this['_change$'][_0x440eab(0x2c2)](this['_waitCount']);}};J=b([y(0x0,(0x0,n[_0x545128(0x304)])(u['HTTPService'])),y(0x1,n[_0x545128(0x378)]),y(0x2,(0x0,n['Inject'])(n[_0x545128(0x4c4)]))],J);let Y=class{constructor(_0x4a42a1,_0x14a8f5){const _0x5752a7=_0x545128;this[_0x5752a7(0x2e4)]=_0x4a42a1,this[_0x5752a7(0x2ff)]=_0x14a8f5;}['_getAPIPrefixPath'](){const _0x379a3e=_0x545128;var _0x447a84;let _0x2d8290=this[_0x379a3e(0x2e4)]['getConfig'](h);return(_0x447a84=_0x2d8290==null?void 0x0:_0x2d8290['authzUrl'])==null?_0x379a3e(0x46b):_0x447a84;}async[_0x545128(0x1e9)](_0x2d3d3c){const _0x5d58d8=_0x545128;let _0x30522d=this[_0x5d58d8(0x234)]()+_0x5d58d8(0x440);return{'list':[{'title':'People','mentions':(await this['_HTTPService']['get'](_0x30522d,{'params':{'objectID':_0x2d3d3c['unitId'],'unitID':_0x2d3d3c[_0x5d58d8(0x222)]}}))[_0x5d58d8(0x3b3)][_0x5d58d8(0x34b)][_0x5d58d8(0x2d9)](_0x588eb7=>({'objectId':_0x588eb7['id'],'name':_0x588eb7[_0x5d58d8(0x364)][_0x5d58d8(0x460)],'metadata':{'icon':_0x588eb7['subject']['avatar']},'label':_0x588eb7[_0x5d58d8(0x364)][_0x5d58d8(0x460)],'objectType':n['MentionType'][_0x5d58d8(0x27c)]})),'metadata':{},'type':n['MentionType'][_0x5d58d8(0x27c)]}]};}};Y=b([y(0x0,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x378)])),y(0x1,(0x0,n[_0x545128(0x304)])(u[_0x545128(0x4a6)]))],Y);let X=class extends n[_0x545128(0x315)]{constructor(_0x3a45a5,_0x48292b,_0x1ca375,_0x5dd47b,_0x5d6d03){const _0x43f3bb=_0x545128;super(),this[_0x43f3bb(0x2f9)]=_0x3a45a5,this[_0x43f3bb(0x1e7)]=_0x48292b,this[_0x43f3bb(0x1f9)]=_0x1ca375,this[_0x43f3bb(0x427)]=_0x5dd47b,this[_0x43f3bb(0x48f)]=_0x5d6d03,this[_0x43f3bb(0x3cc)](),this['_initCloseConn']();}[_0x545128(0x213)](){const _0x3127f0=_0x545128;let _0x173e45=async _0x5b179f=>{const _0x14f679=_0x4024;(await this[_0x14f679(0x427)][_0x14f679(0x376)](_0x5b179f))[_0x14f679(0x40e)]['pipe']((0x0,c['filter'])(_0x464e55=>_0x464e55[_0x14f679(0x43a)]===t[_0x14f679(0x27d)][_0x14f679(0x325)]),(0x0,c[_0x14f679(0x386)])(this[_0x14f679(0x245)]))['subscribe'](_0x1cb7b4=>{const _0x2b685a=_0x14f679;let {reason:_0x156186}=_0x1cb7b4[_0x2b685a(0x4b8)];this[_0x2b685a(0x48f)][_0x2b685a(0x214)]({'id':_0x2b685a(0x337),'data':_0x156186}),this[_0x2b685a(0x1f9)]['updatePermissionPoint'](new i[(_0x2b685a(0x4bd))](_0x5b179f)['id'],!0x1),this[_0x2b685a(0x427)]['closeSession'](_0x5b179f);});};(0x0,a['merge'])(this[_0x3127f0(0x1e7)][_0x3127f0(0x2be)](n['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x3127f0(0x2be)](n['UniverInstanceType']['UNIVER_DOC']),this[_0x3127f0(0x1e7)][_0x3127f0(0x2be)](n[_0x3127f0(0x251)][_0x3127f0(0x291)]))[_0x3127f0(0x259)]((0x0,c[_0x3127f0(0x2d9)])(_0x1f82f=>_0x1f82f[_0x3127f0(0x4a5)][_0x3127f0(0x3bb)]()),(0x0,c[_0x3127f0(0x280)])(_0x59ccaa=>!(0x0,n[_0x3127f0(0x327)])(_0x59ccaa)),(0x0,c[_0x3127f0(0x386)])(this['dispose$']))[_0x3127f0(0x31b)](_0x5128ef=>{_0x173e45(_0x5128ef);});}['_initUnitPermissionChange'](){const _0x41847f=_0x545128;let _0x519e0f=async _0x312ccd=>{const _0x5a252e=_0x4024;let _0x199733=await this['_collaborationSessionService']['requireSession'](_0x312ccd),_0x191b80=this[_0x5a252e(0x2f9)]['get'](i[_0x5a252e(0x244)]);_0x199733[_0x5a252e(0x40e)][_0x5a252e(0x259)]((0x0,c[_0x5a252e(0x280)])(_0x16f47e=>_0x16f47e[_0x5a252e(0x43a)]===t[_0x5a252e(0x27d)]['UPDATE_PERMISSION_OBJ']),(0x0,c['takeUntil'])(this[_0x5a252e(0x245)]))[_0x5a252e(0x31b)](_0xd102b8=>{const _0x1bec8a=_0x5a252e;let {objectId:_0x3e19ba}=_0xd102b8['data'];_0x3e19ba===_0x312ccd?_0x191b80['initWorkbookPermissionChange'](_0x312ccd):_0x191b80[_0x1bec8a(0x4be)](_0x312ccd,_0x3e19ba);});};(0x0,a['merge'])(this['_univerInstanceService'][_0x41847f(0x2be)](n['UniverInstanceType']['UNIVER_SHEET']))['pipe']((0x0,c[_0x41847f(0x2d9)])(_0x1b52d0=>_0x1b52d0[_0x41847f(0x4a5)][_0x41847f(0x3bb)]()),(0x0,c[_0x41847f(0x280)])(_0x916085=>!(0x0,n[_0x41847f(0x327)])(_0x916085)),(0x0,c['takeUntil'])(this[_0x41847f(0x245)]))[_0x41847f(0x31b)](_0x47650c=>{_0x519e0f(_0x47650c);});}};X=b([y(0x0,(0x0,n[_0x545128(0x304)])(n['Injector'])),y(0x1,n[_0x545128(0x4c4)]),y(0x2,n['IPermissionService']),y(0x3,(0x0,n[_0x545128(0x304)])(V)),y(0x4,(0x0,n[_0x545128(0x304)])(v))],X);let Z=class{constructor(_0x2b834b,_0xb1ec14){const _0x1a9d28=_0x545128;this[_0x1a9d28(0x2e4)]=_0x2b834b,this['_httpService']=_0xb1ec14;}async[_0x545128(0x495)](_0x132103,_0x1cfe53){const _0x426a0e=_0x545128;var _0xebf000;let {unitID:_0x2d6ed3,type:_0x405d13,revision:_0x4f8909=0x0}=_0x1cfe53,_0x17105b=this[_0x426a0e(0x484)]()+'/'+_0x405d13+_0x426a0e(0x442)+_0x2d6ed3+_0x426a0e(0x379)+_0x4f8909,_0x14738f=(await this[_0x426a0e(0x20c)][_0x426a0e(0x2f7)](_0x17105b))[_0x426a0e(0x3b3)],_0x3fd65d=(_0xebf000=_0x14738f['snapshot'])==null?void 0x0:_0xebf000['workbook'];if(_0x3fd65d){let _0x2085f2=_0x3fd65d==null?void 0x0:_0x3fd65d[_0x426a0e(0x478)];_0x3fd65d['originalMeta']=t[_0x426a0e(0x298)][_0x426a0e(0x268)]((0x0,t[_0x426a0e(0x3c0)])(_0x2085f2)),Object[_0x426a0e(0x4c3)](_0x3fd65d['sheets'])[_0x426a0e(0x295)](([,_0x418aed])=>{const _0x103ad7=_0x426a0e;let _0x71390d=_0x418aed[_0x103ad7(0x478)];_0x418aed['originalMeta']=t[_0x103ad7(0x298)][_0x103ad7(0x268)]((0x0,t[_0x103ad7(0x3c0)])(_0x71390d));});}return _0x14738f;}async[_0x545128(0x384)](_0x3d1598,_0x5e3d0c){const _0x138d26=_0x545128;let {unitID:_0x41455b,type:_0x5487f3,blockID:_0x349c5e}=_0x5e3d0c,_0x5101e9=this[_0x138d26(0x401)]()+'/'+_0x5487f3+_0x138d26(0x442)+_0x41455b+_0x138d26(0x362)+_0x349c5e;return(await this[_0x138d26(0x20c)][_0x138d26(0x2f7)](_0x5101e9))[_0x138d26(0x3b3)];}async['getDeserializedSheetBlock'](_0x448566,_0x5b39cd){const _0x1402d2=_0x545128;let {unitID:_0x53f085,type:_0x4d8e22,blockID:_0x542f31}=_0x5b39cd,_0x5c7520=this['_getAPIPrefix']()+_0x1402d2(0x362)+_0x4d8e22+'/unit/'+_0x53f085+_0x1402d2(0x362)+_0x542f31;return(await this[_0x1402d2(0x20c)]['get'](_0x5c7520))['body'];}async['fetchMissingChangesets'](_0x632084,_0x305c6c){const _0x4e8584=_0x545128;let {unitID:_0x29b666,type:_0x2911e9,from:_0x327523,to:_0x40785b}=_0x305c6c,_0x4b492a=this[_0x4e8584(0x401)]()+'/'+_0x2911e9+_0x4e8584(0x442)+_0x29b666+_0x4e8584(0x428)+_0x327523+_0x4e8584(0x466)+_0x40785b;return(await this['_httpService'][_0x4e8584(0x2f7)](_0x4b492a))[_0x4e8584(0x3b3)];}[_0x545128(0x484)](){const _0x142a69=_0x545128;var _0x5e71f9;return(_0x5e71f9=this[_0x142a69(0x2e4)]['getConfig'](_0x142a69(0x220)))==null?this['_getAPIPrefix']():_0x5e71f9;}[_0x545128(0x401)](){const _0x1a3323=_0x545128;var _0x2116b3;let _0x476eb0=this['_configService'][_0x1a3323(0x2c0)](h);return(_0x2116b3=_0x476eb0==null?void 0x0:_0x476eb0[_0x1a3323(0x39c)])==null?_0x1a3323(0x389):_0x2116b3;}async[_0x545128(0x455)](_0x2cf6c3,_0x5739c8){const _0xd2a0fd=_0x545128;let _0x596ebb='/universer-api/snapshot/'+_0x5739c8[_0xd2a0fd(0x393)]+'/unit/'+_0x5739c8[_0xd2a0fd(0x2cd)]+_0xd2a0fd(0x1fa);return(await this[_0xd2a0fd(0x20c)][_0xd2a0fd(0x2f7)](_0x596ebb,{'params':{'resourceId':JSON[_0xd2a0fd(0x4a3)](_0x5739c8[_0xd2a0fd(0x277)])}}))[_0xd2a0fd(0x3b3)];}[_0x545128(0x353)](){const _0x2fb7ff=_0x545128;throw Error(_0x2fb7ff(0x21b));}['updateSnapshot'](){const _0x5ca94f=_0x545128;throw Error(_0x5ca94f(0x21b));}[_0x545128(0x37e)](){const _0x23629c=_0x545128;throw Error(_0x23629c(0x21b));}[_0x545128(0x270)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x545128(0x4b5)](){const _0x3b3b2e=_0x545128;throw Error(_0x3b3b2e(0x21b));}['getLatestCsReqIdBySid'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Z=b([y(0x0,n['IConfigService']),y(0x1,(0x0,n[_0x545128(0x304)])(u[_0x545128(0x4a6)]))],Z);let Q=class extends n[_0x545128(0x2d1)]{constructor(_0x1d82ed,_0x226301,_0x188044,_0xd9acb8,_0x400142){const _0x480515=_0x545128;super(_0x1d82ed,_0x226301,_0x188044),this[_0x480515(0x2ee)]=_0xd9acb8,this[_0x480515(0x4a2)]=_0x400142;}[_0x545128(0x2a9)](_0x5d3dae,_0x250d69){const _0x291117=_0x545128;let _0x1f539a=this['_getUndoStack'](_0x5d3dae);if(_0x1f539a)try{let _0x3f4b87=this['_transformStack'](_0x1f539a,_0x250d69);this[_0x291117(0x48e)](_0x5d3dae,_0x3f4b87);}catch(_0x50c852){this[_0x291117(0x4a2)][_0x291117(0x42e)](_0x291117(0x2ad),_0x50c852),this[_0x291117(0x2ab)](_0x5d3dae);}let _0x1407f3=this[_0x291117(0x346)](_0x5d3dae);if(_0x1407f3)try{let _0x5b0f7a=this[_0x291117(0x2cb)](_0x1407f3,_0x250d69);this[_0x291117(0x208)](_0x5d3dae,_0x5b0f7a);}catch(_0x4f6f6e){this[_0x291117(0x4a2)][_0x291117(0x42e)](_0x4f6f6e),this[_0x291117(0x26f)](_0x5d3dae);}}[_0x545128(0x2ab)](_0x4a4c64){const _0x436331=_0x545128;let _0x85b73b=this[_0x436331(0x3c9)](_0x4a4c64);_0x85b73b&&(_0x85b73b['length']=0x0,this[_0x436331(0x41f)]());}[_0x545128(0x26f)](_0xf080f6){const _0xa0edf4=_0x545128;let _0x229534=this[_0xa0edf4(0x346)](_0xf080f6);_0x229534&&(_0x229534[_0xa0edf4(0x38a)]=0x0,this[_0xa0edf4(0x41f)]());}[_0x545128(0x48e)](_0x2ac3a6,_0x3262d3){const _0x47e71e=_0x545128;this[_0x47e71e(0x3ae)][_0x47e71e(0x3f4)](_0x2ac3a6,_0x3262d3),this['_updateStatus']();}[_0x545128(0x208)](_0x420b64,_0x5f4927){const _0x274c81=_0x545128;this[_0x274c81(0x20f)][_0x274c81(0x3f4)](_0x420b64,_0x5f4927),this[_0x274c81(0x41f)]();}['_transformStack'](_0x1e1ac0,_0x51b950){const _0x1da9b2=_0x545128;let _0xb36030=[],_0x917cf9=_0x51b950,_0x562185=_0x51b950;for(let _0x4a7f4a=_0x1e1ac0['length']-0x1;_0x4a7f4a>=0x0;_0x4a7f4a--){let {unitID:_0x2dd34e,undoMutations:_0x162ad5,redoMutations:_0x102e5e}=_0x1e1ac0[_0x4a7f4a],_0x5b2367=this[_0x1da9b2(0x2ee)]['transformMutationsWithChangeset'](_0x917cf9,_0x162ad5),_0x5a841e=this[_0x1da9b2(0x2ee)][_0x1da9b2(0x23b)](_0x562185,_0x102e5e);if((0x0,t[_0x1da9b2(0x28a)])(_0x5b2367)||(0x0,t['isTransformMutationsWithChangesetFailure'])(_0x5a841e)){this[_0x1da9b2(0x4a2)][_0x1da9b2(0x42e)]('[CollaborationUndoRedoService]',_0x1da9b2(0x473),_0x5b2367,_0x5a841e);break;}_0x917cf9=_0x5b2367[_0x1da9b2(0x32d)],_0x562185=_0x5a841e['c1Prime'],_0xb36030[_0x1da9b2(0x3f5)]({'unitID':_0x2dd34e,'undoMutations':_0x5b2367['m2Prime'],'redoMutations':_0x5a841e[_0x1da9b2(0x2e8)]});}return _0xb36030[_0x1da9b2(0x356)]();}};Q=b([y(0x0,n[_0x545128(0x4c4)]),y(0x1,n[_0x545128(0x419)]),y(0x2,n['IContextService']),y(0x3,t[_0x545128(0x35b)]),y(0x4,n[_0x545128(0x368)])],Q);let $=class extends n['Plugin']{constructor(_0x1a0c51={},_0x4c5494,_0x884b92,_0x18f645){const _0x51c55b=_0x545128;super(),this[_0x51c55b(0x4d5)]=_0x1a0c51,this[_0x51c55b(0x4a2)]=_0x4c5494,this[_0x51c55b(0x2f9)]=_0x884b92,this[_0x51c55b(0x2e4)]=_0x18f645;let {..._0x577ff5}=(0x0,n[_0x51c55b(0x303)])({},ee,_0x1a0c51);if(!_0x577ff5[_0x51c55b(0x31c)])throw Error(_0x51c55b(0x4b9));this[_0x51c55b(0x4d5)]=_0x577ff5,this[_0x51c55b(0x2e4)][_0x51c55b(0x415)](h,_0x577ff5);}['onStarting'](){const _0x4f5dc0=_0x545128;this[_0x4f5dc0(0x452)](),this['_initDependencies']();}[_0x545128(0x452)](){const _0xa8ead9=_0x545128;var _0x492940,_0x361243;this[_0xa8ead9(0x2f9)][_0xa8ead9(0x44f)](n['IUndoRedoService'])&&this[_0xa8ead9(0x4a2)]['error']('[UniverCollaborationClientPlugin]',_0xa8ead9(0x444));let _0xc50110=(0x0,n[_0xa8ead9(0x3e4)])([[n[_0xa8ead9(0x328)],{'useClass':Q}],[V],[x],[w],[W],[K],[se],[X],[v],[q],[Le,{'useClass':this[_0xa8ead9(0x4d5)]['socketService']}],[t[_0xa8ead9(0x2ec)],{'useClass':Z}],[n['IAuthzIoService'],{'useClass':G}],[f[_0xa8ead9(0x28d)],{'useClass':J}],[We,{'useClass':U}],[n[_0xa8ead9(0x46f)],{'useClass':Y}],[H],[He]],(_0x492940=this[_0xa8ead9(0x4d5)])==null?void 0x0:_0x492940[_0xa8ead9(0x2a8)]);if(!((_0x361243=this[_0xa8ead9(0x4d5)])!=null&&_0x361243['enableSingleActiveInstanceLock'])){let _0x2bff00=_0xc50110['findIndex'](([_0x4becdc])=>_0x4becdc===T);_0x2bff00!==-0x1&&_0xc50110[_0xa8ead9(0x4a9)](_0x2bff00,0x1);}(0x0,n[_0xa8ead9(0x420)])(this[_0xa8ead9(0x2f9)],_0xc50110);}[_0x545128(0x2e3)](){const _0x147f59=_0x545128;var _0x52975d,_0xa30e74;if(this['_injector'][_0x147f59(0x2f7)](u['HTTPService'])[_0x147f59(0x332)]({'priority':0x14,'interceptor':(0x0,u[_0x147f59(0x44a)])({'maxParallel':0x6})}),!((_0x52975d=this['_config'])!=null&&_0x52975d['enableOfflineEditing'])){var _0x4d86bb;(_0x4d86bb=this[_0x147f59(0x2f9)][_0x147f59(0x2f7)](C,n['Quantity']['OPTIONAL']))==null||_0x4d86bb[_0x147f59(0x27f)]();}(_0xa30e74=this['_config'])!=null&&_0xa30e74[_0x147f59(0x44b)]&&(0x0,n['touchDependencies'])(this[_0x147f59(0x2f9)],[[W]]),(0x0,n[_0x147f59(0x29d)])(this[_0x147f59(0x2f9)],[[K],[H],[X]]);}};_($,_0x545128(0x42c),_0x545128(0x496)),_($,_0x545128(0x3ca),Be),_($,_0x545128(0x28b),Ve),$=b([(0x0,n[_0x545128(0x2eb)])(d[_0x545128(0x4d2)],t['UniverCollaborationPlugin'],u['UniverNetworkPlugin']),y(0x1,n[_0x545128(0x368)]),y(0x2,(0x0,n[_0x545128(0x304)])(n[_0x545128(0x24d)])),y(0x3,n[_0x545128(0x378)])],$),exports[_0x545128(0x3ad)]=Ue,Object[_0x545128(0x34a)](exports,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x391),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x3a1),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x545128(0x285)]=h,Object['defineProperty'](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x545128(0x34a)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x456),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x2c7),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x498),{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x545128(0x316),{'enumerable':!0x0,'get':function(){return V;}}),Object['defineProperty'](exports,_0x545128(0x294),{'enumerable':!0x0,'get':function(){return ze;}}),exports['CollaborationStatus']=ke,exports['CollaborationUIEventId']=oe,exports[_0x545128(0x29f)]=v,Object['defineProperty'](exports,_0x545128(0x2b1),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x545128(0x3df)]=se,Object[_0x545128(0x34a)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x545128(0x46c)]=te,exports[_0x545128(0x25d)]=_0x545128(0x232),exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x545128(0x1fd),Object['defineProperty'](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,_0x545128(0x47c),{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x545128(0x360),{'enumerable':!0x0,'get':function(){return I;}}),exports[_0x545128(0x2f3)]=_0x545128(0x2ca),exports[_0x545128(0x2a3)]='HEARTBEAT_TIMEOUT',exports[_0x545128(0x27b)]=We,exports[_0x545128(0x302)]=Le,exports[_0x545128(0x2dc)]=C,exports['INetworkConditionService']=Pe,exports['ISingleActiveUnitService']=T,exports[_0x545128(0x312)]=0x3e8,exports[_0x545128(0x3b9)]=_0x545128(0x312),Object[_0x545128(0x34a)](exports,_0x545128(0x1f2),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x261),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x545128(0x34a)](exports,'OfflineState',{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x3c5),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x545128(0x242)]=_0x545128(0x3a5),exports[_0x545128(0x36c)]=_0x545128(0x3f2),exports[_0x545128(0x22b)]=le,Object[_0x545128(0x34a)](exports,_0x545128(0x47b),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x545128(0x34a)](exports,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x3f6),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x545128(0x34a)](exports,_0x545128(0x377),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x545128(0x3d2)]=pe,Object[_0x545128(0x34a)](exports,_0x545128(0x42f),{'enumerable':!0x0,'get':function(){return $;}}),exports['deserializeToCombResponse']=Fe,exports['getLocalCacheKey']=de,exports[_0x545128(0x4cc)]=Ie;
1
+ const _0x2b4704=_0x2cb1;(function(_0x479c32,_0x1ae562){const _0x30dbf9=_0x2cb1,_0x221c79=_0x479c32();while(!![]){try{const _0x517909=parseInt(_0x30dbf9(0x1cf))/0x1+parseInt(_0x30dbf9(0x355))/0x2+-parseInt(_0x30dbf9(0x254))/0x3+parseInt(_0x30dbf9(0xfe))/0x4*(parseInt(_0x30dbf9(0x272))/0x5)+parseInt(_0x30dbf9(0x353))/0x6*(-parseInt(_0x30dbf9(0x218))/0x7)+-parseInt(_0x30dbf9(0x1c0))/0x8+-parseInt(_0x30dbf9(0x1c4))/0x9*(-parseInt(_0x30dbf9(0x29d))/0xa);if(_0x517909===_0x1ae562)break;else _0x221c79['push'](_0x221c79['shift']());}catch(_0x56c7fa){_0x221c79['push'](_0x221c79['shift']());}}}(_0x637e,0x27694),Object['defineProperty'](exports,Symbol[_0x2b4704(0x34b)],{'value':_0x2b4704(0x379)}));let e=require('@univerjs-pro/bases'),t=require('@univerjs-pro/collaboration'),n=require('@univerjs/core'),r=require('@univerjs/docs'),i=require('@univerjs/sheets'),a=require('rxjs'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs/network'),d=require('@univerjs-pro/license'),f=require('@univerjs/drawing'),p=require('@noble/ciphers/aes.js'),m=require('@noble/ciphers/utils.js');const h=_0x2b4704(0x3a2),ee={},te=_0x2b4704(0x368),ne=0x4e20;function re(_0x1c1cc8){const _0x5468bf=_0x2b4704;return JSON['stringify'](_0x1c1cc8)[_0x5468bf(0x2f8)];}function g(_0x263d20){'@babel/helpers - typeof';const _0x517c0d=_0x2b4704;return g=typeof Symbol==_0x517c0d(0x331)&&typeof Symbol[_0x517c0d(0x29c)]==_0x517c0d(0x201)?function(_0x1d43de){return typeof _0x1d43de;}:function(_0x482fc1){const _0x7c93d1=_0x517c0d;return _0x482fc1&&typeof Symbol=='function'&&_0x482fc1[_0x7c93d1(0x3ca)]===Symbol&&_0x482fc1!==Symbol[_0x7c93d1(0x398)]?_0x7c93d1(0x201):typeof _0x482fc1;},g(_0x263d20);}function ie(_0x2a869d,_0x24e809){const _0x311bc0=_0x2b4704;if(g(_0x2a869d)!=_0x311bc0(0x1ed)||!_0x2a869d)return _0x2a869d;var _0x2ae8ca=_0x2a869d[Symbol['toPrimitive']];if(_0x2ae8ca!==void 0x0){var _0x49292f=_0x2ae8ca[_0x311bc0(0x2ec)](_0x2a869d,_0x24e809||_0x311bc0(0x2b7));if(g(_0x49292f)!=_0x311bc0(0x1ed))return _0x49292f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x24e809===_0x311bc0(0x2e4)?String:Number)(_0x2a869d);}function ae(_0x55b71a){const _0x404ef8=_0x2b4704;var _0x5bb40b=ie(_0x55b71a,_0x404ef8(0x2e4));return g(_0x5bb40b)==_0x404ef8(0x201)?_0x5bb40b:_0x5bb40b+'';}function _(_0x525046,_0x210102,_0x154cdf){const _0x462203=_0x2b4704;return(_0x210102=ae(_0x210102))in _0x525046?Object[_0x462203(0x1dd)](_0x525046,_0x210102,{'value':_0x154cdf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x525046[_0x210102]=_0x154cdf,_0x525046;}let oe=function(_0xea991){const _0x3e3371=_0x2b4704;return _0xea991[_0x3e3371(0x1ad)]=_0x3e3371(0x1ad),_0xea991[_0x3e3371(0x38b)]=_0x3e3371(0x38b),_0xea991[_0x3e3371(0x139)]=_0x3e3371(0x139),_0xea991[_0x3e3371(0x176)]=_0x3e3371(0x176),_0xea991[_0x3e3371(0x20d)]=_0x3e3371(0x20d),_0xea991[_0x3e3371(0x1e9)]=_0x3e3371(0x1e9),_0xea991[_0x3e3371(0x16b)]='SOCKET_FAILED',_0xea991[_0x3e3371(0x1fd)]=_0x3e3371(0x1fd),_0xea991;}({});var v=class{constructor(){const _0x4f588a=_0x2b4704;_(this,'_event$',new a[(_0x4f588a(0x119))]()),_(this,'event$',this['_event$']['asObservable']());}[_0x2b4704(0x2b4)](_0x1fce5d){const _0x5b5cf2=_0x2b4704;this[_0x5b5cf2(0x34e)][_0x5b5cf2(0x383)](_0x1fce5d);}},se=class{constructor(){const _0xb6b530=_0x2b4704;_(this,_0xb6b530(0x25f),new a['Subject']()),_(this,_0xb6b530(0x2ca),this[_0xb6b530(0x25f)][_0xb6b530(0x171)]());}[_0x2b4704(0xf6)](_0x5ca40f){const _0x2fbfdc=_0x2b4704;this[_0x2fbfdc(0x25f)][_0x2fbfdc(0x383)](_0x5ca40f);}};function y(_0x365fa1,_0x3286ba){return function(_0x4ab5fc,_0x1bc8ab){_0x3286ba(_0x4ab5fc,_0x1bc8ab,_0x365fa1);};}function b(_0x4270dd,_0x416128,_0xd25ae,_0x49c0e2){const _0x5bc42d=_0x2b4704;var _0x14308e=arguments[_0x5bc42d(0x2f8)],_0x33d712=_0x14308e<0x3?_0x416128:_0x49c0e2===null?_0x49c0e2=Object['getOwnPropertyDescriptor'](_0x416128,_0xd25ae):_0x49c0e2,_0x5972fb;if(typeof Reflect==_0x5bc42d(0x1ed)&&typeof Reflect[_0x5bc42d(0x25c)]==_0x5bc42d(0x331))_0x33d712=Reflect[_0x5bc42d(0x25c)](_0x4270dd,_0x416128,_0xd25ae,_0x49c0e2);else{for(var _0x4c7140=_0x4270dd[_0x5bc42d(0x2f8)]-0x1;_0x4c7140>=0x0;_0x4c7140--)(_0x5972fb=_0x4270dd[_0x4c7140])&&(_0x33d712=(_0x14308e<0x3?_0x5972fb(_0x33d712):_0x14308e>0x3?_0x5972fb(_0x416128,_0xd25ae,_0x33d712):_0x5972fb(_0x416128,_0xd25ae))||_0x33d712);}return _0x14308e>0x3&&_0x33d712&&Object[_0x5bc42d(0x1dd)](_0x416128,_0xd25ae,_0x33d712),_0x33d712;}let x=class extends n[_0x2b4704(0x274)]{constructor(_0x1664c6,_0x34e4cc){const _0x4556fd=_0x2b4704;super(),this[_0x4556fd(0x2fb)]=_0x1664c6,this[_0x4556fd(0x3ad)]=_0x34e4cc,_(this,_0x4556fd(0x16e),new Map()),_(this,_0x4556fd(0x285),new a[(_0x4556fd(0x119))]()),this[_0x4556fd(0x115)]((0x0,a['merge'])(this['_univerInstanceService'][_0x4556fd(0x1a6)](n[_0x4556fd(0x372)][_0x4556fd(0x375)])[_0x4556fd(0x200)]((0x0,c[_0x4556fd(0x2c1)])(_0x5b4376=>_0x5b4376['getUnitId']())),this[_0x4556fd(0x2fb)]['getTypeOfUnitDisposed$'](n[_0x4556fd(0x372)][_0x4556fd(0x299)])[_0x4556fd(0x200)]((0x0,c[_0x4556fd(0x2c1)])(_0x4fc479=>_0x4fc479[_0x4556fd(0x17c)]())),this[_0x4556fd(0x2fb)]['getTypeOfUnitDisposed$'](n[_0x4556fd(0x372)][_0x4556fd(0x288)])['pipe']((0x0,c[_0x4556fd(0x2c1)])(_0x307b8f=>_0x307b8f[_0x4556fd(0x17c)]())))[_0x4556fd(0x169)](_0x24eed4=>this['_removeRoom'](_0x24eed4)));}[_0x2b4704(0x1ee)](_0x5f257c){const _0x1cf0e2=_0x2b4704;return this[_0x1cf0e2(0x16e)][_0x1cf0e2(0x1ae)](_0x5f257c)?(0x0,a['of'])(this[_0x1cf0e2(0x16e)][_0x1cf0e2(0x287)](_0x5f257c)):this[_0x1cf0e2(0x285)][_0x1cf0e2(0x200)]((0x0,c[_0x1cf0e2(0x2c1)])(_0x43663a=>{const _0x4efcec=_0x1cf0e2;if(_0x43663a===_0x5f257c)return this[_0x4efcec(0x16e)][_0x4efcec(0x287)](_0x43663a);}));}['setCurrentUser'](_0x31a05c){const _0x466bdb=_0x2b4704;this[_0x466bdb(0x3ad)]['setCurrentUser'](_0x31a05c);}[_0x2b4704(0x39b)](){const _0x3ae217=_0x2b4704;return this[_0x3ae217(0x3ad)]['getCurrentUser']();}[_0x2b4704(0x295)](_0x1f34ec,_0x2c9e48){const _0x4b4cf4=_0x2b4704;let _0x2d760f=this['_roomMembers']['get'](_0x1f34ec);_0x2d760f||(_0x2d760f=new ce(),this[_0x4b4cf4(0x16e)][_0x4b4cf4(0x399)](_0x1f34ec,_0x2d760f),this['_roomCreated$']['next'](_0x1f34ec)),_0x2d760f['updateMember'](_0x2c9e48);}[_0x2b4704(0x396)](_0x2c7b72,_0x3edd58){const _0x564270=_0x2b4704;let _0x46efd5=this[_0x564270(0x16e)]['get'](_0x2c7b72);_0x46efd5&&_0x46efd5[_0x564270(0x396)](_0x3edd58);}[_0x2b4704(0x188)](_0x5e3df2){const _0xca133a=_0x2b4704;return this[_0xca133a(0x16e)]['get'](_0x5e3df2);}[_0x2b4704(0x2da)](_0x3f1729,_0x20b784){const _0x1a00d3=_0x2b4704;let _0x12a9db=this[_0x1a00d3(0x16e)][_0x1a00d3(0x287)](_0x3f1729);if(_0x12a9db)return _0x12a9db['getMember'](_0x20b784);}['_removeRoom'](_0x5b57b7){const _0xba99a=_0x2b4704;let _0x4c6169=this[_0xba99a(0x16e)][_0xba99a(0x287)](_0x5b57b7);_0x4c6169&&(_0x4c6169[_0xba99a(0x2cf)](),this[_0xba99a(0x16e)][_0xba99a(0x31e)](_0x5b57b7));}['dispose'](){const _0x478d8d=_0x2b4704;this[_0x478d8d(0x16e)][_0x478d8d(0x24e)](_0x477941=>_0x477941['dispose']()),this[_0x478d8d(0x16e)][_0x478d8d(0x2de)](),this[_0x478d8d(0x285)]['complete']();}};x=b([y(0x0,n['IUniverInstanceService']),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(n['UserManagerService']))],x);var ce=class extends n[_0x2b4704(0x274)]{constructor(..._0x2cd810){const _0x4ffd81=_0x2b4704;super(..._0x2cd810),_(this,_0x4ffd81(0x3a3),new Map()),_(this,'_members$',new a[(_0x4ffd81(0x367))](this[_0x4ffd81(0x3a3)])),_(this,'members$',this['_members$'][_0x4ffd81(0x171)]());}[_0x2b4704(0x2cf)](){const _0x40b64c=_0x2b4704;this[_0x40b64c(0x3a3)][_0x40b64c(0x2de)](),this[_0x40b64c(0x2c4)][_0x40b64c(0x391)]();}[_0x2b4704(0x295)](_0x3ad6e2){const _0x50107a=_0x2b4704;this['_members'][_0x50107a(0x399)](_0x3ad6e2['memberID'],_0x3ad6e2),this[_0x50107a(0x102)]();}[_0x2b4704(0x396)](_0xbb2626){const _0x1817d9=_0x2b4704;this[_0x1817d9(0x3a3)][_0x1817d9(0x31e)](_0xbb2626),this[_0x1817d9(0x102)]();}['getMember'](_0x35c75d){const _0x51e3a4=_0x2b4704;return this[_0x51e3a4(0x3a3)][_0x51e3a4(0x287)](_0x35c75d);}[_0x2b4704(0x27d)](){const _0x3bdc8d=_0x2b4704;return Array[_0x3bdc8d(0x268)](this['_members'][_0x3bdc8d(0x1a1)]());}[_0x2b4704(0x102)](){const _0x5ed039=_0x2b4704;this['_members$'][_0x5ed039(0x383)](this[_0x5ed039(0x3a3)]);}};let le=function(_0x25c5b8){const _0x443a46=_0x2b4704;return _0x25c5b8[_0x25c5b8[_0x443a46(0x316)]=0x0]=_0x443a46(0x316),_0x25c5b8[_0x25c5b8[_0x443a46(0x302)]=0x1]=_0x443a46(0x302),_0x25c5b8[_0x25c5b8['OFFLINE']=0x2]=_0x443a46(0x19b),_0x25c5b8[_0x25c5b8['ONLINE']=0x3]=_0x443a46(0x26c),_0x25c5b8;}({});const ue={[o[_0x2b4704(0x371)][_0x2b4704(0x32d)]]:_0x2b4704(0xf9),[o[_0x2b4704(0x371)][_0x2b4704(0x128)]]:_0x2b4704(0x322),[o[_0x2b4704(0x371)][_0x2b4704(0x114)]]:'session.room-not-exists',[o[_0x2b4704(0x371)][_0x2b4704(0x3d1)]]:_0x2b4704(0x160),[o[_0x2b4704(0x371)][_0x2b4704(0x125)]]:'session.room-cnt-exceeds'};let S=class extends n[_0x2b4704(0x2a0)]{get[_0x2b4704(0x2db)](){const _0x316bb0=_0x2b4704;return this['_sessionStatus$'][_0x316bb0(0x19f)]();}constructor(_0x3bbedb,_0xa43219,_0x2f16fc,_0x49b2a6,_0x330095,_0x5163d4,_0x3d5811,_0x31648c){const _0x4efc7a=_0x2b4704;super(),this['_unitID']=_0x3bbedb,this[_0x4efc7a(0x35b)]=_0x2f16fc,this[_0x4efc7a(0x1d8)]=_0x49b2a6,this[_0x4efc7a(0xf5)]=_0x330095,this[_0x4efc7a(0x2a9)]=_0x5163d4,this['_collaborationUIEventService']=_0x3d5811,this[_0x4efc7a(0x2be)]=_0x31648c,_(this,_0x4efc7a(0x12f),new a['BehaviorSubject'](0x0)),_(this,_0x4efc7a(0x3d5),this[_0x4efc7a(0x12f)][_0x4efc7a(0x171)]()),_(this,_0x4efc7a(0x34e),new a[(_0x4efc7a(0x119))]()),_(this,'event$',this[_0x4efc7a(0x34e)][_0x4efc7a(0x171)]()),_(this,'_socket',void 0x0),_(this,_0x4efc7a(0x167),void 0x0),_(this,'_collaborationTimeoutTimer',void 0x0),_(this,_0x4efc7a(0x1e5),!0x1),_(this,_0x4efc7a(0x283),null),this[_0x4efc7a(0x1e5)]=!!this['_telemetryService'],_0xa43219[_0x4efc7a(0x200)]((0x0,a[_0x4efc7a(0x395)])(this[_0x4efc7a(0x37e)]))['subscribe'](_0x24a83c=>{const _0x2f978b=_0x4efc7a;if(_0x24a83c!==void 0x0){if(this['_socket']=_0x24a83c,_0x24a83c)this[_0x2f978b(0x16c)](_0x24a83c),this[_0x2f978b(0x167)]=_0x24a83c[_0x2f978b(0x35a)]['subscribe'](_0x58150e=>{const _0xafa371=_0x2f978b;_0x58150e[_0xafa371(0x224)]===this[_0xafa371(0x1b4)]&&this[_0xafa371(0x38a)](_0x58150e);});else{var _0x106a9b;this[_0x2f978b(0x214)](),this[_0x2f978b(0x12f)][_0x2f978b(0x383)](0x2),(_0x106a9b=this[_0x2f978b(0x167)])==null||_0x106a9b['unsubscribe'](),this[_0x2f978b(0x167)]=null;}}});}[_0x2b4704(0x145)](){const _0x17858a=_0x2b4704;var _0x3502df,_0x5a5d17;return(_0x3502df=(_0x5a5d17=this['_socket'])==null?void 0x0:_0x5a5d17[_0x17858a(0x303)])==null?null:_0x3502df;}[_0x2b4704(0x2cf)](){const _0x19fe5b=_0x2b4704;super[_0x19fe5b(0x2cf)](),this[_0x19fe5b(0x26d)](),this[_0x19fe5b(0x37e)][_0x19fe5b(0x383)](),this[_0x19fe5b(0x37e)]['complete']();}['close'](){const _0x53b15f=_0x2b4704;var _0x32d2f7,_0x931b7e;this[_0x53b15f(0x214)](),(_0x32d2f7=this[_0x53b15f(0x280)])==null||_0x32d2f7[_0x53b15f(0x3d4)]({'cmd':o[_0x53b15f(0x329)][_0x53b15f(0x2af)],'data':{'roomID':this[_0x53b15f(0x1b4)]}}),(_0x931b7e=this[_0x53b15f(0x280)])==null||_0x931b7e[_0x53b15f(0x26d)](),this['_event$'][_0x53b15f(0x391)](),this[_0x53b15f(0x12f)]['complete']();}['_onCombEvent'](_0xfed117){const _0x45cdae=_0x2b4704;_0xfed117['cmd']===o[_0x45cdae(0x329)][_0x45cdae(0x318)]?this[_0x45cdae(0x28c)](_0xfed117):_0xfed117[_0x45cdae(0x28f)]===o['CombCmd'][_0x45cdae(0x30d)]&&this['_onRecvEvent'](_0xfed117);}[_0x2b4704(0x16c)](_0xc8ad6b){const _0x3eae2e=_0x2b4704;this[_0x3eae2e(0x12f)][_0x3eae2e(0x383)](0x1),_0xc8ad6b['send']({'cmd':o[_0x3eae2e(0x329)][_0x3eae2e(0x318)],'routeKey':this[_0x3eae2e(0x1b4)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3eae2e(0x1b4)]}]}});}[_0x2b4704(0x28c)](_0x2952ad){const _0x35ce00=_0x2b4704;var _0x12c7ec;if(_0x2952ad[_0x35ce00(0x1a4)]in ue){this[_0x35ce00(0x38e)][_0x35ce00(0x2b4)]({'id':'JOIN_ROOM_FAILED','data':ue[_0x2952ad[_0x35ce00(0x1a4)]]}),this['_sessionStatus$'][_0x35ce00(0x383)](0x2);return;}this[_0x35ce00(0x12f)][_0x35ce00(0x383)](0x3);let _0x21f9e6=(_0x12c7ec=_0x2952ad['data'][_0x35ce00(0x1f9)][this[_0x35ce00(0x1b4)]])==null?void 0x0:_0x12c7ec[_0x35ce00(0x3b4)];_0x21f9e6&&_0x21f9e6['forEach'](_0x51392e=>this['_memberService'][_0x35ce00(0x295)](this[_0x35ce00(0x1b4)],_0x51392e));}[_0x2b4704(0x2a2)](_0x434ca3){const _0x50c8c5=_0x2b4704;try{let _0x16db62=_0x434ca3[_0x50c8c5(0x27c)];switch(_0x16db62[_0x50c8c5(0x1da)]){case t[_0x50c8c5(0x30b)][_0x50c8c5(0x1a8)]:this[_0x50c8c5(0x32a)](_0x16db62),this[_0x50c8c5(0x34e)]['next'](_0x16db62);break;case t[_0x50c8c5(0x30b)][_0x50c8c5(0x35c)]:this['_onUserLeave'](_0x16db62),this[_0x50c8c5(0x34e)]['next'](_0x16db62);break;case t[_0x50c8c5(0x30b)][_0x50c8c5(0x221)]:case t[_0x50c8c5(0x30b)][_0x50c8c5(0x35d)]:this[_0x50c8c5(0x3c2)](),this[_0x50c8c5(0x14a)](),this[_0x50c8c5(0x34e)][_0x50c8c5(0x383)](_0x16db62);break;case t['CollaborationEvent'][_0x50c8c5(0x131)]:this['_logService'][_0x50c8c5(0x2b8)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x16db62)),this[_0x50c8c5(0x34e)]['next'](_0x16db62);break;case t['CollaborationEvent'][_0x50c8c5(0x257)]:this[_0x50c8c5(0x2a9)][_0x50c8c5(0xf6)](_0x16db62[_0x50c8c5(0x27c)]),this[_0x50c8c5(0x34e)][_0x50c8c5(0x383)](_0x16db62);break;default:this['_event$'][_0x50c8c5(0x383)](_0x16db62);}}catch(_0x426fee){this[_0x50c8c5(0x35b)]['error'](_0x426fee,_0x434ca3);}}[_0x2b4704(0x32a)](_0x6311b8){const _0xf6e164=_0x2b4704;this[_0xf6e164(0xf5)][_0xf6e164(0x295)](this[_0xf6e164(0x1b4)],_0x6311b8[_0xf6e164(0x27c)]);}[_0x2b4704(0x255)](_0x267255){const _0x2693d2=_0x2b4704;this[_0x2693d2(0xf5)]['removeMember'](this[_0x2693d2(0x1b4)],_0x267255[_0x2693d2(0x27c)]['memberID']);}async['send'](_0x4de12f,_0x2ae393){const _0x48b848=_0x2b4704;if(this[_0x48b848(0x2db)]!==0x3||!this[_0x48b848(0x280)])throw Error(_0x48b848(0x18b));try{_0x4de12f[_0x48b848(0x1da)]===t[_0x48b848(0x30b)][_0x48b848(0x30c)]&&(this[_0x48b848(0x26f)](),this[_0x48b848(0x2e5)](_0x4de12f)),this[_0x48b848(0x280)]['send']({'cmd':o[_0x48b848(0x329)][_0x48b848(0x2f6)],'routeKey':_0x2ae393,'routeType':'','data':_0x4de12f});}catch(_0x1b2c23){this[_0x48b848(0x35b)]['error'](_0x1b2c23);}}[_0x2b4704(0x26f)](){const _0x2c7e72=_0x2b4704;var _0x5bea09;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x3f9ccd=_0x2cb1;this['_collaborationTimeoutTimer']=null,this[_0x3f9ccd(0x38e)][_0x3f9ccd(0x2b4)]({'id':_0x3f9ccd(0x1fd)});},(_0x5bea09=this[_0x2c7e72(0x1d8)][_0x2c7e72(0x18e)](_0x2c7e72(0x204)))==null?ne:_0x5bea09);}[_0x2b4704(0x14a)](){const _0x2e3955=_0x2b4704;this[_0x2e3955(0x2e8)]&&(clearTimeout(this[_0x2e3955(0x2e8)]),this['_collaborationTimeoutTimer']=null);}[_0x2b4704(0x2e5)](_0x4e6b2b){const _0xef854b=_0x2b4704;if(!this[_0xef854b(0x1e5)])return;let {data:_0x21a613}=_0x4e6b2b,{unitID:_0x40e7a7,changeset:_0x5c25d4}=_0x21a613,{mutations:_0x5c1c36,type:_0x2df20a}=_0x5c25d4;this[_0xef854b(0x283)]={'unitId':_0x40e7a7,'type':_0x2df20a,'startTime':performance[_0xef854b(0x3b8)](),'stopTime':0x0,'duration':0x0,'size':re(_0x5c1c36)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x10723a=_0x2b4704;if(this['_shouldReportTelemetry']){if(!this[_0x10723a(0x283)]){this[_0x10723a(0x35b)][_0x10723a(0x2b8)](_0x10723a(0x3ab),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x10723a(0x283)][_0x10723a(0x16d)]=performance['now'](),this['_telemetryInfo'][_0x10723a(0x1b7)]=this[_0x10723a(0x283)][_0x10723a(0x16d)]-this[_0x10723a(0x283)][_0x10723a(0x350)],this[_0x10723a(0x2be)][_0x10723a(0x108)]('collaboration_new_changeset',this[_0x10723a(0x283)]),this[_0x10723a(0x283)]=null;}}[_0x2b4704(0x214)](){const _0x440c90=_0x2b4704;this[_0x440c90(0x283)]=null;}};S=b([y(0x2,n['ILogService']),y(0x3,n['IConfigService']),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(x)),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(se)),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x7,(0x0,n[_0x2b4704(0x1d7)])(s[_0x2b4704(0x235)]))],S);const C=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x24b));function de(_0x1f2e5b){const _0x401df4=_0x2b4704;return _0x401df4(0x135)+_0x1f2e5b;}function fe(_0x4ccd77){const _0x4923a6=_0x2b4704;let {unitID:_0x5de160,mutations:_0x5e3109}=_0x4ccd77;return{'unitId':_0x5de160,'subUnitId':_0x5e3109[_0x4923a6(0x2f8)]>0x0?_0x5e3109[0x0][_0x4923a6(0x3bf)]['subUnitId']:null};}let w=class{constructor(_0x2ea76a,_0x136913,_0x3f1831){const _0xa78678=_0x2b4704;this['_injector']=_0x2ea76a,this[_0xa78678(0x191)]=_0x136913,this[_0xa78678(0x2f4)]=_0x3f1831;}[_0x2b4704(0x33d)](_0x34cc4e){const _0x14185d=_0x2b4704;var _0x41e1ec,_0x32281c;let _0x4da88b=this['_injector']['get'](i[_0x14185d(0x2a6)]),{unitId:_0x56b6c8,subUnitId:_0x431643}=fe(_0x34cc4e),_0x3aca61=_0x4da88b==null?void 0x0:_0x4da88b[_0x14185d(0x2ce)](_0x56b6c8)[_0x14185d(0x3b3)](),_0x5a986a=(_0x41e1ec=this[_0x14185d(0x2f4)]['getUnit'](_0x56b6c8))==null||(_0x41e1ec=_0x41e1ec[_0x14185d(0x170)]())==null?void 0x0:_0x41e1ec[_0x14185d(0x217)]();if(_0x3aca61[_0x14185d(0x2f8)]===0x0||!_0x56b6c8||!_0x431643)return;let _0x46e6db=[{'id':i[_0x14185d(0x258)]['id'],'params':{'unitId':_0x56b6c8,'subUnitId':_0x5a986a,'selections':n[_0x14185d(0xf4)]['deepClone'](_0x3aca61)}}],_0x1dc792=this['_transformService'][_0x14185d(0x2c5)](_0x34cc4e,_0x46e6db);if(!(0x0,t[_0x14185d(0x3e0)])(_0x1dc792))throw _0x1dc792[_0x14185d(0x2b8)];let _0x53585e=(_0x32281c=_0x1dc792[_0x14185d(0x293)][0x0])==null||(_0x32281c=_0x32281c['params'])==null?void 0x0:_0x32281c['selections'];if(Array['isArray'](_0x53585e)&&_0x53585e['length']){if(_0x53585e['length']===_0x46e6db[0x0]['params'][_0x14185d(0x39d)][_0x14185d(0x2f8)]&&_0x53585e[_0x14185d(0x369)]((_0x80c64b,_0x3a5efd)=>n['Rectangle'][_0x14185d(0x3be)](_0x80c64b[_0x14185d(0x34c)],_0x46e6db[0x0][_0x14185d(0x3bf)][_0x14185d(0x39d)][_0x3a5efd]['range'])))return;this[_0x14185d(0x3de)]['get'](n[_0x14185d(0x378)])[_0x14185d(0x1f7)](i[_0x14185d(0x258)]['id'],{'unitId':_0x56b6c8,'subUnitId':_0x5a986a,'selections':_0x53585e});}}};w=b([y(0x0,(0x0,n['Inject'])(n[_0x2b4704(0x39f)])),y(0x1,t[_0x2b4704(0x109)]),y(0x2,n[_0x2b4704(0x3a9)])],w);const T=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x364));let pe=function(_0xc59a3){const _0x2a4811=_0x2b4704;return _0xc59a3[_0xc59a3['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x2a4811(0x374),_0xc59a3[_0xc59a3['OTHER_CLIENTS_EDITING']=0x1]=_0x2a4811(0x276),_0xc59a3;}({});function me(_0x2c89b2){const _0x218f6a=_0x2b4704;var _0x17b875;return!!((_0x17b875=_0x2c89b2[_0x218f6a(0x3bf)])!=null&&_0x17b875[_0x218f6a(0x236)]);}const he=new Set([i[_0x2b4704(0x154)]['id']]),ge=new Set([l[_0x2b4704(0x2ef)]['id'],l[_0x2b4704(0x2e6)]['id'],l[_0x2b4704(0x172)]['id'],l['RemoveSlidePageMutation']['id']]);function _e(_0x1554c9,_0x532489=he){const _0x48a187=_0x2b4704;let _0xd80c94=[];for(let _0x3065e5 of _0x1554c9){if(_0x532489[_0x48a187(0x1ae)](_0x3065e5['id'])){if(_0xd80c94[_0x48a187(0x2f8)]>0x0)break;_0xd80c94['push'](_0x3065e5);break;}if(me(_0x3065e5)){if(_0xd80c94[_0x48a187(0x2f8)]>0x0)break;_0xd80c94['push'](_0x3065e5);break;}_0xd80c94['push'](_0x3065e5);}return _0xd80c94;}function ve(_0x325c25,_0x452d38,_0x5d54d1,_0x4c1c37,_0x236c87){const _0x183d6f=_0x2b4704;var _0x250afd,_0x142e46,_0x46c213,_0x5b71f2;let _0x4431ab=_e(_0x325c25),_0x4967c0=(_0x250afd=(_0x142e46=_0x236c87['getCurrentUser']())==null?void 0x0:_0x142e46[_0x183d6f(0x17d)])==null?_0x183d6f(0x1a7):_0x250afd,_0x336b8b=(_0x46c213=(_0x5b71f2=_0x236c87[_0x183d6f(0x39b)]())==null?void 0x0:_0x5b71f2['memberID'])==null?_0x183d6f(0x1a7):_0x46c213;return{'changeset':{'unitID':_0x452d38,'type':(0x0,t['mapDocumentTypeToUniverInstanceType'])(_0x5d54d1['getUnitType'](_0x452d38)),'baseRev':_0x4c1c37[_0x183d6f(0x392)](_0x452d38),'revision':0x0,'userID':_0x4967c0,'memberID':_0x336b8b,'mutations':_0x4431ab},'pendingMutations':_0x325c25[_0x183d6f(0x17b)](_0x4431ab['length'])};}const ye=ve;function be(_0x284904,_0x5a67bd,_0x23093a,_0x3d6dcb,_0x1906a5){return ve(_0x284904,_0x5a67bd,_0x23093a,_0x3d6dcb,_0x1906a5);}function xe(_0xa73691,_0xc1a786,_0x5d0343,_0x22ba22,_0x5c66c9){const _0x2b3cbe=_0x2b4704;var _0x15d2dc,_0x36346e,_0xfa8852,_0x4ac93a;let _0x509859=_e(_0xa73691,ge),_0x2a1d83=(_0x15d2dc=(_0x36346e=_0x5c66c9[_0x2b3cbe(0x39b)]())==null?void 0x0:_0x36346e['userID'])==null?_0x2b3cbe(0x1a7):_0x15d2dc,_0xa44b0f=(_0xfa8852=(_0x4ac93a=_0x5c66c9[_0x2b3cbe(0x39b)]())==null?void 0x0:_0x4ac93a[_0x2b3cbe(0x303)])==null?_0x2b3cbe(0x1a7):_0xfa8852;return{'changeset':{'unitID':_0xc1a786,'type':(0x0,t[_0x2b3cbe(0x301)])(_0x5d0343[_0x2b3cbe(0x2f3)](_0xc1a786)),'baseRev':_0x22ba22[_0x2b3cbe(0x392)](_0xc1a786),'revision':0x0,'userID':_0x2a1d83,'memberID':_0xa44b0f,'mutations':_0x509859},'pendingMutations':_0xa73691[_0x2b3cbe(0x17b)](_0x509859[_0x2b3cbe(0x2f8)])};}function Se(_0x195131,_0x46de8b,_0x1d1e62,_0x578423,_0x4b117b){const _0x58074b=_0x2b4704;var _0x17f75d,_0x2cf81d,_0x3642a6,_0x517f08;let _0x4db231=_0x195131[_0x58074b(0x3af)]((_0x2c2fbf,_0xca82d8)=>{const _0x433528=_0x58074b;let _0x3cb466=_0x2c2fbf[_0x2c2fbf[_0x433528(0x2f8)]-0x1],{id:_0x35728d}=_0x3cb466==null?{}:_0x3cb466,{id:_0x53a58c,type:_0x3d0e07}=_0xca82d8,_0x21bd97=_0xca82d8[_0x433528(0x3bf)];if(_0x35728d&&_0x35728d!==_0x53a58c)throw Error(_0x433528(0x2f7)+_0x35728d+_0x433528(0x3cd)+_0x53a58c+'.');if(!_0x3cb466)return[{'id':_0x53a58c,'type':_0x3d0e07,'params':{'unitId':_0x21bd97['unitId'],'textRanges':_0x21bd97[_0x433528(0x386)],'actions':_0x21bd97[_0x433528(0x133)]}}];let _0x4c495b=_0x3cb466[_0x433528(0x3bf)];return Ce(_0x4c495b[_0x433528(0x133)],_0x21bd97[_0x433528(0x133)])?[..._0x2c2fbf[_0x433528(0x17b)](0x0,-0x1),{..._0x3cb466,'id':_0x53a58c,'type':_0x3d0e07,'params':{'unitId':_0x21bd97['unitId'],'textRanges':_0x21bd97[_0x433528(0x386)],'actions':n[_0x433528(0x239)][_0x433528(0x223)](_0x4c495b[_0x433528(0x133)],_0x21bd97['actions'])}}]:[..._0x2c2fbf,{'id':_0x53a58c,'type':_0x3d0e07,'params':{'unitId':_0x21bd97['unitId'],'textRanges':_0x21bd97[_0x433528(0x386)],'actions':_0x21bd97[_0x433528(0x133)]}}];},[]),_0x46966f=(_0x17f75d=(_0x2cf81d=_0x4b117b[_0x58074b(0x39b)]())==null?void 0x0:_0x2cf81d[_0x58074b(0x17d)])==null?_0x58074b(0x1a7):_0x17f75d,_0x3a4877=(_0x3642a6=(_0x517f08=_0x4b117b[_0x58074b(0x39b)]())==null?void 0x0:_0x517f08['memberID'])==null?_0x58074b(0x1a7):_0x3642a6;return{'changeset':{'unitID':_0x46de8b,'type':(0x0,t[_0x58074b(0x301)])(_0x1d1e62[_0x58074b(0x2f3)](_0x46de8b)),'baseRev':_0x578423[_0x58074b(0x392)](_0x46de8b),'revision':0x0,'userID':_0x46966f,'memberID':_0x3a4877,'mutations':_0x4db231},'pendingMutations':_0x195131[_0x58074b(0x17b)](_0x195131[_0x58074b(0x2f8)])};}function Ce(_0x76b0bd,_0x45c4cd){return we(_0x76b0bd)&&we(_0x45c4cd)&&!Te(_0x76b0bd)&&!Te(_0x45c4cd);}function we(_0x1e38ef){const _0x52d012=_0x2b4704;return Ee(_0x1e38ef)[_0x52d012(0x25a)](_0x1f1962=>De(_0x1f1962)&&_0x1f1962['et']===_0x52d012(0x1aa));}function Te(_0x5c5d2f){const _0x539ab0=_0x2b4704;return Ee(_0x5c5d2f)[_0x539ab0(0x25a)](_0x173307=>Array[_0x539ab0(0x344)](_0x173307)||typeof _0x173307==_0x539ab0(0x2e4)||typeof _0x173307==_0x539ab0(0x1b1));}function Ee(_0x1fdc6a){const _0x1f9a05=_0x2b4704;if(!Array[_0x1f9a05(0x344)](_0x1fdc6a))return[];let _0x314e89=_0x1fdc6a['includes'](_0x1f9a05(0x1df))?_0x1fdc6a:_0x1fdc6a['find'](_0x540c6b=>Array[_0x1f9a05(0x344)](_0x540c6b)&&_0x540c6b['includes'](_0x1f9a05(0x1df)));if(!Array[_0x1f9a05(0x344)](_0x314e89))return[];let _0x239166=_0x314e89[_0x1f9a05(0x190)]('body');return _0x239166===-0x1?[]:_0x314e89[_0x1f9a05(0x17b)](_0x239166+0x1);}function De(_0x2308ad){const _0x26fa6d=_0x2b4704;return typeof _0x2308ad==_0x26fa6d(0x1ed)&&!!_0x2308ad&&!Array[_0x26fa6d(0x344)](_0x2308ad);}function Oe(_0x5a0591,_0x42565e){const _0x36dfa2=_0x2b4704;let _0x32da4d=new a[(_0x36dfa2(0x1ec))](0x1);return setTimeout(()=>_0x32da4d[_0x36dfa2(0x383)](_0x42565e),_0x5a0591),_0x32da4d[_0x36dfa2(0x171)]()[_0x36dfa2(0x200)]((0x0,a[_0x36dfa2(0x346)])(0x1));}var E,D,O;let ke=function(_0x2f6315){const _0x45e8be=_0x2b4704;return _0x2f6315[_0x45e8be(0x124)]=_0x45e8be(0x118),_0x2f6315[_0x45e8be(0x261)]=_0x45e8be(0x35f),_0x2f6315[_0x45e8be(0x29e)]='pending',_0x2f6315['AWAITING']=_0x45e8be(0x3e1),_0x2f6315['AWAITING_WITH_PENDING']=_0x45e8be(0x263),_0x2f6315['FETCH_MISS']=_0x45e8be(0x192),_0x2f6315[_0x45e8be(0x139)]='conflict',_0x2f6315['OFFLINE']=_0x45e8be(0x11e),_0x2f6315;}({});const Ae=0x4e20,je=0x2bf20;var k=class{constructor(_0x4d1f5a,_0x56ca2c,_0x3b593b,_0x17c597,_0x5b3d22,_0x5519e9,_0x4ecfe3,_0x59389f,_0x973e0f){const _0x3efb66=_0x2b4704;this['unitID']=_0x4d1f5a,this[_0x3efb66(0x15c)]=_0x56ca2c,this['_handler']=_0x5b3d22,this[_0x3efb66(0x340)]=_0x5519e9,this[_0x3efb66(0x13f)]=_0x4ecfe3,this[_0x3efb66(0x36f)]=_0x59389f,this[_0x3efb66(0x10b)]=_0x973e0f,_(this,_0x3efb66(0x3a8),null),_(this,_0x3efb66(0x377),[]),this['_awaitingChangeset']=_0x3b593b,this['_pendingMutations']=_0x17c597;}[_0x2b4704(0x27b)](_0x283619){const _0x4a5ff6=_0x2b4704;let _0x3b7203=this[_0x4a5ff6(0x36f)][_0x4a5ff6(0x392)](this[_0x4a5ff6(0x37b)]);return _0x283619[_0x4a5ff6(0x197)]>_0x3b7203+0x1?(this['_handler'][_0x4a5ff6(0x1af)]({'from':_0x3b7203,'to':_0x283619[_0x4a5ff6(0x197)]-0x1}),!0x0):!0x1;}[_0x2b4704(0x36a)](_0x5895e2){const _0x1518e8=_0x2b4704;this[_0x1518e8(0x13f)]['transformUndoRedo'](this[_0x1518e8(0x37b)],_0x5895e2);}[_0x2b4704(0x103)](_0x297265){const _0x563369=_0x2b4704;var _0x3d959c,_0x55fdf8;(_0x3d959c=(_0x55fdf8=this['_handler'])[_0x563369(0x2eb)])==null||_0x3d959c['call'](_0x55fdf8,_0x297265);}['_transformIMECache'](_0x426146){const _0x56fd6d=_0x2b4704;var _0x1743dd,_0x34c90e;return(_0x1743dd=(_0x34c90e=this[_0x56fd6d(0x123)])[_0x56fd6d(0x31b)])==null?void 0x0:_0x1743dd['call'](_0x34c90e,_0x426146);}[_0x2b4704(0x2c0)](_0x1a8932){const _0x58293b=_0x2b4704;var _0x1f883c,_0x24da1e;return(_0x1f883c=(_0x24da1e=this[_0x58293b(0x123)])[_0x58293b(0x120)])==null?void 0x0:_0x1f883c[_0x58293b(0x2ec)](_0x24da1e,_0x1a8932);}['_transformRemoteChangesetByIMECache'](_0x4eaff2){const _0x251b58=_0x2b4704;var _0x438ee5,_0x4c7faf,_0x208c91;return(_0x438ee5=(_0x4c7faf=(_0x208c91=this[_0x251b58(0x123)])[_0x251b58(0x319)])==null?void 0x0:_0x4c7faf[_0x251b58(0x2ec)](_0x208c91,_0x4eaff2))==null?_0x4eaff2:_0x438ee5;}[_0x2b4704(0xf2)](_0x217da4){const _0x3decbd=_0x2b4704;var _0x2918c1,_0x25e52e,_0x4f5656;return(_0x2918c1=(_0x25e52e=(_0x4f5656=this[_0x3decbd(0x123)])[_0x3decbd(0x365)])==null?void 0x0:_0x25e52e[_0x3decbd(0x2ec)](_0x4f5656,_0x217da4))==null?_0x217da4:_0x2918c1;}['_syncEditingCollabCursor'](_0x3602ea){const _0x2a179a=_0x2b4704;if(this[_0x2a179a(0x15c)]===n[_0x2a179a(0x372)][_0x2a179a(0x299)]){let {unitID:_0x3bb5e7,mutations:_0x2756eb,memberID:_0x2e7ea4}=_0x3602ea,_0x30d09f=_0x2756eb['length']>0x0?_0x2756eb[0x0][_0x2a179a(0x3bf)][_0x2a179a(0x386)]:[];if(Array[_0x2a179a(0x344)](_0x30d09f)&&_0x30d09f['length']>0x0){var _0x2c3376,_0x134b2d;(_0x2c3376=(_0x134b2d=this[_0x2a179a(0x123)])[_0x2a179a(0x2c8)])==null||_0x2c3376[_0x2a179a(0x2ec)](_0x134b2d,{'unitID':_0x3bb5e7,'memberID':_0x2e7ea4,'textRanges':_0x30d09f});}}}[_0x2b4704(0x2a8)](){const _0x187ce8=_0x2b4704;var _0x50b34d;(_0x50b34d=this[_0x187ce8(0x10b)])==null||_0x50b34d[_0x187ce8(0x33a)](this[_0x187ce8(0x37b)],this[_0x187ce8(0x15c)],this[_0x187ce8(0x3a8)],this[_0x187ce8(0x377)]);}[_0x2b4704(0x1f1)](){const _0x5d4e47=_0x2b4704;return this[_0x5d4e47(0x36f)][_0x5d4e47(0x392)](this[_0x5d4e47(0x37b)]);}[_0x2b4704(0xfd)](){const _0x5c67f0=_0x2b4704;this[_0x5c67f0(0x36f)][_0x5c67f0(0x1c8)](this['unitID']);}[_0x2b4704(0x2d0)](_0x3cd79f){const _0x25e5e9=_0x2b4704;let _0x4b6378=this[_0x25e5e9(0x2b9)](_0x3cd79f);_0x4b6378=this[_0x25e5e9(0xf2)](_0x4b6378);let _0x79593e=(0x0,n['sequenceExecute'])(_0x4b6378['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x79593e['result']){var _0x389845;throw _0x79593e[_0x25e5e9(0x2b8)]instanceof Error?_0x79593e[_0x25e5e9(0x2b8)]:Error((_0x389845=_0x79593e[_0x25e5e9(0x2b8)])==null?_0x25e5e9(0x382):_0x389845);}this[_0x25e5e9(0x2f1)](_0x4b6378),this[_0x25e5e9(0x2c0)](_0x4b6378),this[_0x25e5e9(0x36a)](_0x3cd79f),this[_0x25e5e9(0x103)](_0x4b6378),this[_0x25e5e9(0x326)](_0x4b6378),this[_0x25e5e9(0xfd)]();}};let A=class extends k{constructor(_0x463156,_0xbf87b6,_0x479d13,_0x3430db,_0x42162d,_0x378413,_0x347f16,_0x81a28c,_0x42e66d,_0x2cb88f){const _0x3353fe=_0x2b4704;super(_0x463156,_0xbf87b6,null,[],_0x479d13,_0x347f16,_0x378413,_0x3430db,_0x2cb88f),this['_injector']=_0x42162d,this[_0x3353fe(0x35b)]=_0x81a28c,this[_0x3353fe(0x191)]=_0x42e66d,this[_0x3353fe(0x3c0)]=_0x2cb88f,_(this,_0x3353fe(0x1a5),_0x3353fe(0x35f));}[_0x2b4704(0x2cd)](_0x51c9ea){const _0x337f19=_0x2b4704;let _0x2bd58a=this[_0x337f19(0x3de)][_0x337f19(0x2b6)](j,this[_0x337f19(0x37b)],this[_0x337f19(0x15c)],[_0x51c9ea],this[_0x337f19(0x123)]);return _0x2bd58a[_0x337f19(0x16f)](),_0x2bd58a[_0x337f19(0x2a8)](),_0x2bd58a;}[_0x2b4704(0x3b7)](_0x44e1e0){const _0x448e7d=_0x2b4704;if(this[_0x448e7d(0x27b)](_0x44e1e0))return this['_injector'][_0x448e7d(0x2b6)](I,this[_0x448e7d(0x37b)],this['type'],null,[],null,[_0x44e1e0],this[_0x448e7d(0x123)]);try{let _0x4ced4d=this[_0x448e7d(0x191)][_0x448e7d(0x2c5)](_0x44e1e0,[t[_0x448e7d(0x184)]]);if((0x0,t[_0x448e7d(0x3e0)])(_0x4ced4d)){let {c1Prime:_0x5f0b6b}=_0x4ced4d;return this[_0x448e7d(0x2d0)](_0x5f0b6b),this;}throw _0x4ced4d[_0x448e7d(0x2b8)];}catch(_0x1fabb5){return this[_0x448e7d(0x35b)][_0x448e7d(0x2b8)](_0x1fabb5),this[_0x448e7d(0x34f)](!0x1);}}[_0x2b4704(0x34f)](_0x273aa6){const _0x5451cc=_0x2b4704;return this[_0x5451cc(0x3de)][_0x5451cc(0x2b6)](P,this[_0x5451cc(0x37b)],this[_0x5451cc(0x15c)],null,[],this[_0x5451cc(0x123)],_0x273aa6);}[_0x2b4704(0x26e)](_0x7feda2){const _0x5a1ea5=_0x2b4704;if(_0x7feda2[_0x5a1ea5(0x197)]<=this[_0x5a1ea5(0x1f1)]())return this;throw Error(_0x5a1ea5(0x2b3));}[_0x2b4704(0x311)](){const _0x39d9ef=_0x2b4704;throw Error(_0x39d9ef(0x232));}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){const _0x3fdf7f=_0x2b4704;return this[_0x3fdf7f(0x3de)]['createInstance'](F,this[_0x3fdf7f(0x37b)],this[_0x3fdf7f(0x15c)],null,[],this[_0x3fdf7f(0x123)]);}[_0x2b4704(0x36e)](){return this;}[_0x2b4704(0x21a)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x448468=_0x2b4704;let _0x490def=this[_0x448468(0x36f)]['getCurrentRevOfUnit'](this['unitID']);return this[_0x448468(0x123)][_0x448468(0x1af)]({'from':_0x490def,'to':0x0}),this[_0x448468(0x3de)][_0x448468(0x2b6)](I,this[_0x448468(0x37b)],this[_0x448468(0x15c)],null,[],null,[],this[_0x448468(0x123)]);}};A=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x5,n['IUndoRedoService']),y(0x6,n[_0x2b4704(0x378)]),y(0x7,n[_0x2b4704(0x2ac)]),y(0x8,t[_0x2b4704(0x109)]),y(0x9,(0x0,n[_0x2b4704(0x1d7)])(C))],A);function _0x2cb1(_0x31d4bd,_0x23bf87){_0x31d4bd=_0x31d4bd-0xf2;const _0x637e5f=_0x637e();let _0x2cb1f9=_0x637e5f[_0x31d4bd];return _0x2cb1f9;}let j=E=class extends k{constructor(_0x125ae1,_0x4ba1ab,_0x1cddbf,_0x2d1f79,_0xdcee09,_0x429d3f,_0x276f5d,_0x51f338,_0x176c9b,_0x340c1c,_0x5bed31,_0x391e3f,_0x1f71bf,_0x306f83){const _0x1a2701=_0x2b4704;super(_0x125ae1,_0x4ba1ab,null,_0x1cddbf,_0x2d1f79,_0x176c9b,_0x1f71bf,_0x429d3f,_0x306f83),this['_injector']=_0xdcee09,this[_0x1a2701(0xf5)]=_0x276f5d,this['_logService']=_0x51f338,this[_0x1a2701(0x1d8)]=_0x340c1c,this['_transformService']=_0x5bed31,this[_0x1a2701(0x2fb)]=_0x391e3f,_(this,_0x1a2701(0x1a5),_0x1a2701(0x19a)),_(this,_0x1a2701(0x23b),null),_(this,'_sendingTimer',null);}[_0x2b4704(0x2cd)](_0x53e8b5){const _0x5ee3b0=_0x2b4704;return this[_0x5ee3b0(0x377)][_0x5ee3b0(0x384)](_0x53e8b5),this[_0x5ee3b0(0x2a8)](),this;}[_0x2b4704(0x3b7)](_0x4771bc){const _0xb72624=_0x2b4704;if(this[_0xb72624(0x27b)](_0x4771bc))return this[_0xb72624(0x2c6)](),this[_0xb72624(0x3de)][_0xb72624(0x2b6)](I,this['unitID'],this[_0xb72624(0x15c)],null,this[_0xb72624(0x377)],null,[_0x4771bc],this[_0xb72624(0x123)]);try{let _0x2d6160=this['_transformService'][_0xb72624(0x2c5)](_0x4771bc,this[_0xb72624(0x377)]);if((0x0,t[_0xb72624(0x3e0)])(_0x2d6160)){let {c1Prime:_0x5cadd0,m2Prime:_0x3f5569}=_0x2d6160;this['_executeRemoteChangeset'](_0x5cadd0);let _0x483a41=this[_0xb72624(0x3de)][_0xb72624(0x2b6)](E,this[_0xb72624(0x37b)],this[_0xb72624(0x15c)],_0x3f5569,this[_0xb72624(0x123)]);this[_0xb72624(0x2c6)]();let _0x352987=new Date()[_0xb72624(0x1c3)](),_0x25b5f4=this[_0xb72624(0x23b)]?Math[_0xb72624(0x24a)](this[_0xb72624(0x23b)]-_0x352987,0x0):this[_0xb72624(0x332)]();return _0x483a41[_0xb72624(0x16f)](_0x25b5f4),_0x483a41;}throw _0x2d6160['error'];}catch(_0x51f171){return this['_logService'][_0xb72624(0x2b8)](_0x51f171),this[_0xb72624(0x34f)](!0x1);}}[_0x2b4704(0x26e)](_0xb131bd){const _0x11f0c1=_0x2b4704;if(_0xb131bd[_0x11f0c1(0x197)]<=this[_0x11f0c1(0x1f1)]())return this;throw Error(_0x11f0c1(0x2d3));}[_0x2b4704(0x311)](){const _0x395b16=_0x2b4704;throw Error(_0x395b16(0x323));}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){const _0x532c8c=_0x2b4704;return this[_0x532c8c(0x2c6)](),this[_0x532c8c(0x3de)]['createInstance'](F,this[_0x532c8c(0x37b)],this[_0x532c8c(0x15c)],null,this[_0x532c8c(0x377)],this[_0x532c8c(0x123)]);}[_0x2b4704(0x36e)](){return this;}[_0x2b4704(0x16f)](_0x5c0081){const _0x1d0129=_0x2b4704;let _0x3b84a8=_0x5c0081==null?this[_0x1d0129(0x332)]():_0x5c0081;this[_0x1d0129(0x23b)]=new Date()[_0x1d0129(0x1c3)]()+_0x3b84a8,this['_sendingTimer']=setTimeout(()=>{const _0x5e535e=_0x1d0129;this[_0x5e535e(0x2c6)]();let _0x61c208=null;switch(this['type']){case n[_0x5e535e(0x372)][_0x5e535e(0x375)]:_0x61c208=ye(this['_pendingMutations'],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this[_0x5e535e(0xf5)]);break;case n['UniverInstanceType'][_0x5e535e(0x299)]:_0x61c208=this[_0x5e535e(0x377)][_0x5e535e(0x369)](_0x1a9691=>_0x1a9691['id']===r['RichTextEditingMutation']['id'])?Se(this[_0x5e535e(0x377)],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this[_0x5e535e(0xf5)]):ye(this[_0x5e535e(0x377)],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this[_0x5e535e(0xf5)]);break;case n['UniverInstanceType'][_0x5e535e(0x397)]:_0x61c208=xe(this['_pendingMutations'],this['unitID'],this[_0x5e535e(0x2fb)],this[_0x5e535e(0x36f)],this['_memberService']);break;case n[_0x5e535e(0x372)][_0x5e535e(0x288)]:_0x61c208=be(this[_0x5e535e(0x377)],this[_0x5e535e(0x37b)],this[_0x5e535e(0x2fb)],this['_revisionService'],this[_0x5e535e(0xf5)]);break;default:throw Error(_0x5e535e(0x3bd)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x20ecf0,pendingMutations:_0x2878ba}=_0x61c208;this[_0x5e535e(0x123)][_0x5e535e(0xf3)](_0x20ecf0);let _0x1af471=_0x2878ba['length']?this[_0x5e535e(0x3de)]['createInstance'](N,this['unitID'],this[_0x5e535e(0x15c)],_0x20ecf0,_0x2878ba,this[_0x5e535e(0x123)],void 0x0):this[_0x5e535e(0x3de)]['createInstance'](M,this[_0x5e535e(0x37b)],this[_0x5e535e(0x15c)],_0x20ecf0,this[_0x5e535e(0x123)]);_0x1af471['_updateLocalCache'](),this['_handler'][_0x5e535e(0x39e)](this,_0x1af471);},_0x3b84a8);}['_getSendChangesetTimeout'](){const _0xedb19d=_0x2b4704;var _0x411db8;let _0xe8d207=this['_configService'][_0xedb19d(0x18e)](h);return(_0x411db8=_0xe8d207==null?void 0x0:_0xe8d207[_0xedb19d(0x116)])==null?0x7d0:_0x411db8;}[_0x2b4704(0x21a)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x4ee713=_0x2b4704;this[_0x4ee713(0x2ee)]!=null&&(clearTimeout(this[_0x4ee713(0x2ee)]),this['_sendingTimer']=null);}[_0x2b4704(0x34f)](_0x280c24){const _0x5ac98f=_0x2b4704;return this[_0x5ac98f(0x2c6)](),this['_injector']['createInstance'](P,this['unitID'],this[_0x5ac98f(0x15c)],null,this[_0x5ac98f(0x377)],this[_0x5ac98f(0x123)],_0x280c24);}};j=E=b([y(0x4,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(x)),y(0x7,n[_0x2b4704(0x2ac)]),y(0x8,n[_0x2b4704(0x378)]),y(0x9,n[_0x2b4704(0x309)]),y(0xa,t[_0x2b4704(0x109)]),y(0xb,n[_0x2b4704(0x3a9)]),y(0xc,n[_0x2b4704(0x100)]),y(0xd,(0x0,n['Optional'])(C))],j);let M=D=class extends k{constructor(_0x1a4052,_0x1d1636,_0x203477,_0x1cd595,_0x3c89f7,_0x2b33c5,_0x92cf36,_0xe1003d,_0x31088f,_0x508a5e,_0x129222){const _0x405b4f=_0x2b4704;super(_0x1a4052,_0x1d1636,_0x203477,[],_0x1cd595,_0x92cf36,_0x508a5e,_0x2b33c5,_0x129222),this['_injector']=_0x3c89f7,this[_0x405b4f(0x35b)]=_0xe1003d,this[_0x405b4f(0x191)]=_0x31088f,_(this,_0x405b4f(0x1a5),_0x405b4f(0x3e1)),_(this,_0x405b4f(0x253),0x0),_(this,_0x405b4f(0x330),0x0),_(this,_0x405b4f(0x327),void 0x0),_(this,_0x405b4f(0x290),void 0x0);}[_0x2b4704(0x2cd)](_0x5aa07b){const _0x23a53f=_0x2b4704;this[_0x23a53f(0x2c6)]();let _0xa58c52=this[_0x23a53f(0x3de)][_0x23a53f(0x2b6)](N,this['unitID'],this['type'],this[_0x23a53f(0x3a8)],[_0x5aa07b],this[_0x23a53f(0x123)],this['_resendTimer']);return _0xa58c52['_updateLocalCache'](),_0xa58c52;}[_0x2b4704(0x3b7)](_0x48b15e){const _0x2224d5=_0x2b4704;if(this['_checkMissing'](_0x48b15e))return this['_clearScheduledTask'](),this[_0x2224d5(0x3de)][_0x2224d5(0x2b6)](I,this['unitID'],this[_0x2224d5(0x15c)],this[_0x2224d5(0x3a8)],[],null,[_0x48b15e],this[_0x2224d5(0x123)]);try{let _0x41c237=this[_0x2224d5(0x191)][_0x2224d5(0x256)]([_0x48b15e],[this['_awaitingChangeset']],!0x1);if((0x0,t[_0x2224d5(0x17f)])(_0x41c237)){let {c1Prime:_0x5943c9,c2Prime:_0x4b342e}=_0x41c237;this[_0x2224d5(0x2d0)](_0x5943c9[0x0]),_0x4b342e[0x0][_0x2224d5(0x1f0)]=this['_getCurrentRevision'](),this[_0x2224d5(0x2c6)]();let _0x50cccf=this['_injector'][_0x2224d5(0x2b6)](D,this['unitID'],this[_0x2224d5(0x15c)],_0x4b342e[0x0],this[_0x2224d5(0x123)]);return _0x50cccf[_0x2224d5(0x2a8)](),_0x50cccf;}throw _0x41c237['error'];}catch(_0x40e859){return this[_0x2224d5(0x35b)][_0x2224d5(0x2b8)](_0x40e859),this[_0x2224d5(0x34f)](!0x1);}}['onRemoteAck'](_0x5d9911){const _0x17c69e=_0x2b4704;this[_0x17c69e(0x2c6)]();let _0x2fec99=this['_revisionService'][_0x17c69e(0x392)](this[_0x17c69e(0x37b)]);if(_0x5d9911['revision']<=_0x2fec99)return this;if(this['_checkMissing'](_0x5d9911))return this['_injector']['createInstance'](I,this['unitID'],this[_0x17c69e(0x15c)],this[_0x17c69e(0x3a8)],[],_0x5d9911[_0x17c69e(0x197)],[],this[_0x17c69e(0x123)]);this['_incrementRevisionNumber']();let _0x4feff8=this[_0x17c69e(0x3de)][_0x17c69e(0x2b6)](A,this[_0x17c69e(0x37b)],this[_0x17c69e(0x15c)],this[_0x17c69e(0x123)]);return _0x4feff8[_0x17c69e(0x2a8)](),_0x4feff8;}[_0x2b4704(0x311)](_0x5ef835){const _0x44bcf3=_0x2b4704;return this[_0x44bcf3(0x34f)](!!(_0x5ef835!=null&&_0x5ef835[_0x44bcf3(0x208)]));}['onRemoteRetry'](_0x288d9f){const _0x455c7e=_0x2b4704;return this['_maxTotalRetryTimeout']>je?this['toggleOffline']():(this[_0x455c7e(0x327)]=Oe(this[_0x455c7e(0x253)],{'timeout':this[_0x455c7e(0x253)],'reqId':_0x288d9f[_0x455c7e(0x105)]}),this[_0x455c7e(0x290)]=this['_resendTimer'][_0x455c7e(0x169)](({reqId:_0x33b97a,timeout:_0x1029c3})=>{const _0x51c389=_0x455c7e;this[_0x51c389(0x389)](_0x33b97a,_0x1029c3);}),this);}[_0x2b4704(0x282)](){const _0x1e93e5=_0x2b4704;return this[_0x1e93e5(0x2c6)](),this['_injector'][_0x1e93e5(0x2b6)](F,this[_0x1e93e5(0x37b)],this['type'],this['_awaitingChangeset'],[],this['_handler']);}[_0x2b4704(0x36e)](){return this;}[_0x2b4704(0x21a)](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}['_onConflict'](_0x14a77c){const _0x1d4d08=_0x2b4704;return this[_0x1d4d08(0x2c6)](),this[_0x1d4d08(0x3de)][_0x1d4d08(0x2b6)](P,this[_0x1d4d08(0x37b)],this[_0x1d4d08(0x15c)],this['_awaitingChangeset'],[],this[_0x1d4d08(0x123)],_0x14a77c);}[_0x2b4704(0x389)](_0x1ac4cf,_0x23e6c4){const _0x31ce72=_0x2b4704;var _0x4ad7ee;_0x1ac4cf===((_0x4ad7ee=this['_awaitingChangeset'])==null?void 0x0:_0x4ad7ee[_0x31ce72(0x105)])&&(this['resend'](),this[_0x31ce72(0x253)]=_0x23e6c4===0x0?0x3e8:Math['min'](_0x23e6c4*0x2,Ae),this[_0x31ce72(0x330)]+=this[_0x31ce72(0x253)]);}[_0x2b4704(0x2c6)](){const _0x2c9254=_0x2b4704;var _0x29f06c;(_0x29f06c=this[_0x2c9254(0x290)])==null||_0x29f06c[_0x2c9254(0x269)](),this[_0x2c9254(0x253)]=0x0,this[_0x2c9254(0x330)]=0x0;}};M=D=b([y(0x4,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x5,(0x0,n['Inject'])(t[_0x2b4704(0x136)])),y(0x6,n[_0x2b4704(0x378)]),y(0x7,n[_0x2b4704(0x2ac)]),y(0x8,t[_0x2b4704(0x109)]),y(0x9,n[_0x2b4704(0x100)]),y(0xa,(0x0,n['Optional'])(C))],M);let N=O=class extends k{constructor(_0x41f8ea,_0x1f409d,_0x49d3d3,_0x137e13,_0x593e08,_0x303743,_0x1db77e,_0x512a,_0x303b94,_0x4bf665,_0x317173,_0x5cac6,_0x37d0b4){const _0x37848a=_0x2b4704;super(_0x41f8ea,_0x1f409d,_0x49d3d3,_0x137e13,_0x593e08,_0x303b94,_0x5cac6,_0x512a,_0x37d0b4),this[_0x37848a(0x3de)]=_0x1db77e,this[_0x37848a(0x35b)]=_0x4bf665,this[_0x37848a(0x191)]=_0x317173,this[_0x37848a(0x3c0)]=_0x37d0b4,_(this,_0x37848a(0x1a5),_0x37848a(0x263)),_(this,'_resendTimeout',0x0),_(this,_0x37848a(0x330),0x0),_(this,_0x37848a(0x327),void 0x0),_(this,_0x37848a(0x290),void 0x0),_0x303743&&(this[_0x37848a(0x327)]=_0x303743,this[_0x37848a(0x290)]=this['_resendTimer'][_0x37848a(0x169)](({reqId:_0x51b6a6,timeout:_0x3a5fa6})=>{const _0x225dce=_0x37848a;this[_0x225dce(0x389)](_0x51b6a6,_0x3a5fa6);}));}['appendMutation'](_0x4cccca){const _0xcc584a=_0x2b4704;return this[_0xcc584a(0x377)]['push'](_0x4cccca),this;}[_0x2b4704(0x3b7)](_0x1b29e0){const _0x1204cd=_0x2b4704;if(this[_0x1204cd(0x27b)](_0x1b29e0))return this['_clearScheduledTask'](),this[_0x1204cd(0x3de)][_0x1204cd(0x2b6)](I,this[_0x1204cd(0x37b)],this[_0x1204cd(0x15c)],this[_0x1204cd(0x3a8)],this['_pendingMutations'],null,[_0x1b29e0],this['_handler']);try{let _0x1a4c06=this['_transformService'][_0x1204cd(0x256)]([_0x1b29e0],[this[_0x1204cd(0x3a8)]],!0x1);if((0x0,t[_0x1204cd(0x17f)])(_0x1a4c06)){let {c1Prime:_0x229e92,c2Prime:_0x137b32}=_0x1a4c06,_0x122e90=this[_0x1204cd(0x191)][_0x1204cd(0x2c5)](_0x229e92[0x0],this[_0x1204cd(0x377)]);if((0x0,t[_0x1204cd(0x3e0)])(_0x122e90)){let {c1Prime:_0x1287bf,m2Prime:_0x16cfcd}=_0x122e90;return this['_executeRemoteChangeset'](_0x1287bf),_0x137b32[0x0][_0x1204cd(0x1f0)]=this[_0x1204cd(0x1f1)](),this['_clearScheduledTask'](),this[_0x1204cd(0x3de)][_0x1204cd(0x2b6)](O,this[_0x1204cd(0x37b)],this[_0x1204cd(0x15c)],_0x137b32[0x0],_0x16cfcd,this['_handler'],void 0x0);}throw _0x122e90[_0x1204cd(0x2b8)];}throw _0x1a4c06[_0x1204cd(0x2b8)];}catch(_0x172597){return this[_0x1204cd(0x35b)][_0x1204cd(0x2b8)](_0x172597),this[_0x1204cd(0x34f)](!0x1);}}[_0x2b4704(0x26e)](_0x2b4216){const _0x2d894d=_0x2b4704;this['_clearScheduledTask']();let _0x4d3e83=this[_0x2d894d(0x1f1)]();if(_0x2b4216[_0x2d894d(0x197)]<=_0x4d3e83)return this;if(this[_0x2d894d(0x27b)](_0x2b4216))return this[_0x2d894d(0x3de)][_0x2d894d(0x2b6)](I,this['unitID'],this[_0x2d894d(0x15c)],this['_awaitingChangeset'],this['_pendingMutations'],_0x2b4216[_0x2d894d(0x197)],[],this[_0x2d894d(0x123)]);this['_incrementRevisionNumber']();let _0x4b9094=this[_0x2d894d(0x3de)][_0x2d894d(0x2b6)](j,this[_0x2d894d(0x37b)],this[_0x2d894d(0x15c)],this['_pendingMutations'],this['_handler']);return _0x4b9094[_0x2d894d(0x16f)](),_0x4b9094[_0x2d894d(0x2a8)](),_0x4b9094;}[_0x2b4704(0x311)](_0x5d8816){const _0x186928=_0x2b4704;return this['_onConflict'](!!(_0x5d8816!=null&&_0x5d8816[_0x186928(0x208)]));}[_0x2b4704(0x165)](_0x38135d){const _0x3b1a5d=_0x2b4704;return this[_0x3b1a5d(0x330)]>je?this[_0x3b1a5d(0x282)]():(this[_0x3b1a5d(0x327)]=Oe(this[_0x3b1a5d(0x253)],{'timeout':this[_0x3b1a5d(0x253)],'reqId':_0x38135d[_0x3b1a5d(0x105)]}),this[_0x3b1a5d(0x290)]=this[_0x3b1a5d(0x327)][_0x3b1a5d(0x169)](({reqId:_0x2ff8cc,timeout:_0x106d1f})=>{this['_resendWithTimeout'](_0x2ff8cc,_0x106d1f);}),this);}['toggleOffline'](){const _0x158bd8=_0x2b4704;return this[_0x158bd8(0x2c6)](),this['_injector'][_0x158bd8(0x2b6)](F,this[_0x158bd8(0x37b)],this[_0x158bd8(0x15c)],this['_awaitingChangeset'],this[_0x158bd8(0x377)],this[_0x158bd8(0x123)]);}['toggleOnline'](){return this;}[_0x2b4704(0x21a)](){const _0x48aaaf=_0x2b4704;this['_handler'][_0x48aaaf(0xf3)](this[_0x48aaaf(0x3a8)]);}[_0x2b4704(0x34f)](_0x3ce97){const _0x1f6cc8=_0x2b4704;return this['_clearScheduledTask'](),this[_0x1f6cc8(0x3de)]['createInstance'](P,this[_0x1f6cc8(0x37b)],this['type'],null,this[_0x1f6cc8(0x377)],this['_handler'],_0x3ce97);}[_0x2b4704(0x389)](_0x257696,_0x552c3e){const _0x53cc44=_0x2b4704;var _0x1f8b4b;_0x257696===((_0x1f8b4b=this[_0x53cc44(0x3a8)])==null?void 0x0:_0x1f8b4b[_0x53cc44(0x105)])&&(this[_0x53cc44(0x21a)](),this[_0x53cc44(0x253)]=_0x552c3e===0x0?0x3e8:Math[_0x53cc44(0x1fa)](_0x552c3e*0x2,Ae),this['_maxTotalRetryTimeout']+=this[_0x53cc44(0x253)]);}[_0x2b4704(0x2c6)](){const _0x33390c=_0x2b4704;var _0x4a64cf;(_0x4a64cf=this[_0x33390c(0x290)])==null||_0x4a64cf[_0x33390c(0x269)](),this['_resendTimeout']=0x0,this[_0x33390c(0x330)]=0x0;}};N=O=b([y(0x6,(0x0,n['Inject'])(n[_0x2b4704(0x39f)])),y(0x7,(0x0,n[_0x2b4704(0x1ce)])(t['RevisionService'])),y(0x8,n[_0x2b4704(0x378)]),y(0x9,n['ILogService']),y(0xa,t[_0x2b4704(0x109)]),y(0xb,n['IUndoRedoService']),y(0xc,(0x0,n['Optional'])(C))],N);let P=class extends k{constructor(_0xdec121,_0x4041cf,_0x5b2b1c,_0x334705,_0x4abd2a,_0x356856=!0x1,_0x4f3585,_0x15d475,_0x17d35e,_0x1627ab,_0x21d5bc,_0x2dec9b,_0x501a54){const _0x425cf6=_0x2b4704;super(_0xdec121,_0x4041cf,_0x5b2b1c,_0x334705,_0x4abd2a,_0x15d475,_0x17d35e,_0x1627ab,_0x501a54),this[_0x425cf6(0x210)]=_0x356856,this[_0x425cf6(0x2d9)]=_0x4f3585,this['_localeService']=_0x21d5bc,this['_collaborationUIEventService']=_0x2dec9b,this[_0x425cf6(0x3c0)]=_0x501a54,_(this,_0x425cf6(0x1a5),_0x425cf6(0x1b2)),this[_0x425cf6(0x220)](),this[_0x425cf6(0x248)](),this[_0x425cf6(0x3c6)]();}[_0x2b4704(0x2cd)](){return this;}[_0x2b4704(0x3b7)](){return this;}[_0x2b4704(0x26e)](){return this;}['onRemoteRej'](){return this;}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){return this;}[_0x2b4704(0x36e)](){return this;}['resend'](){const _0x241a8d=_0x2b4704;throw Error(_0x241a8d(0x2e9));}[_0x2b4704(0x248)](){const _0xcd69c8=_0x2b4704;var _0x9c03b0,_0x430b9f,_0x366d18;(_0x9c03b0=this[_0xcd69c8(0x10b)])==null||(_0x430b9f=_0x9c03b0[_0xcd69c8(0x21b)])==null||(_0x430b9f=_0x430b9f['call'](_0x9c03b0,this['unitID'],_0xcd69c8(0x1b2)))==null||_0x430b9f[_0xcd69c8(0x313)](()=>void 0x0),(_0x366d18=this[_0xcd69c8(0x10b)])==null||_0x366d18['updateOfflineData'](this[_0xcd69c8(0x37b)],this[_0xcd69c8(0x15c)],null,[]);}[_0x2b4704(0x220)](){const _0x710dc7=_0x2b4704;this[_0x710dc7(0x210)]?this[_0x710dc7(0x38e)][_0x710dc7(0x2b4)]({'id':_0x710dc7(0x38b)}):this[_0x710dc7(0x38e)][_0x710dc7(0x2b4)]({'id':_0x710dc7(0x139)});}[_0x2b4704(0x3c6)](){const _0xaabb3f=_0x2b4704;this['_permissionService']['updatePermissionPoint'](new i[(_0xaabb3f(0x117))](this[_0xaabb3f(0x37b)])['id'],!0x1);}};P=b([y(0x6,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x376)])),y(0x7,n['ICommandService']),y(0x8,n[_0x2b4704(0x100)]),y(0x9,(0x0,n['Inject'])(t[_0x2b4704(0x136)])),y(0xa,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x1a3)])),y(0xb,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0xc,(0x0,n['Optional'])(C))],P);let F=class extends k{constructor(_0x25ad66,_0x59281d,_0x4e9b33,_0x457fb5,_0x5ad776,_0x2e289c,_0xb0d4c1,_0x5dae20,_0x18d133,_0xcda069){const _0x5b4426=_0x2b4704;super(_0x25ad66,_0x59281d,_0x4e9b33,_0x457fb5,_0x5ad776,_0x5dae20,_0x18d133,_0xb0d4c1,_0xcda069),this[_0x5b4426(0x3de)]=_0x2e289c,_(this,_0x5b4426(0x1a5),_0x5b4426(0x11e));}['appendMutation'](_0x4976d7){const _0x862b79=_0x2b4704;return this[_0x862b79(0x377)][_0x862b79(0x384)](_0x4976d7),this[_0x862b79(0x2a8)](),this;}[_0x2b4704(0x3b7)](_0x4e5a3c){const _0xbf71d5=_0x2b4704;throw Error(_0xbf71d5(0x225));}[_0x2b4704(0x26e)](){const _0x4cd502=_0x2b4704;throw Error(_0x4cd502(0x34d));}['onRemoteRej'](){const _0x5d0dd3=_0x2b4704;throw Error(_0x5d0dd3(0x1fc));}['onRemoteRetry'](){return this;}[_0x2b4704(0x282)](){return this;}[_0x2b4704(0x36e)](){const _0x4bfa3f=_0x2b4704;let {_injector:_0x275e01,_pendingMutations:_0x51f078,_awaitingChangeset:_0x279605,unitID:_0x5169fe,_handler:_0x4fb017,type:_0x43352f}=this,_0x329b6a=Me(_0x275e01,_0x5169fe,_0x43352f,_0x279605,_0x51f078,_0x4fb017);return _0x329b6a instanceof j?_0x329b6a[_0x4bfa3f(0x16f)]():(_0x329b6a instanceof N||_0x329b6a instanceof M)&&_0x329b6a[_0x4bfa3f(0x21a)](),_0x329b6a;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};F=b([y(0x5,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,n['ICommandService']),y(0x8,n['IUndoRedoService']),y(0x9,(0x0,n[_0x2b4704(0x1d7)])(C))],F);let I=class extends k{constructor(_0x5be1fc,_0x5cb477,_0x45e0d6,_0x11554e,_0x815771,_0x1ab126,_0x105220,_0x1bfe09,_0x44f552,_0x3944d5,_0x42a32f,_0x427ab8,_0xba729e,_0xab54cd){const _0x316031=_0x2b4704;super(_0x5be1fc,_0x5cb477,_0x45e0d6,_0x11554e,_0x105220,_0x42a32f,_0x427ab8,_0x44f552,_0xab54cd),this[_0x316031(0x3ba)]=_0x815771,this[_0x316031(0x3d8)]=_0x1ab126,this[_0x316031(0x3de)]=_0x1bfe09,this[_0x316031(0x35b)]=_0x3944d5,this[_0x316031(0x191)]=_0xba729e,this[_0x316031(0x3c0)]=_0xab54cd,_(this,_0x316031(0x1a5),_0x316031(0x192));}['onMissedChangesetFetched'](_0x40ec65){const _0x1aef11=_0x2b4704;try{if(this[_0x1aef11(0x15a)](_0x40ec65)['missingChangesets'])throw Error(_0x1aef11(0x284));if(this[_0x1aef11(0x15a)]([...this[_0x1aef11(0x3d8)]]['sort']((_0x50b149,_0xfc6b20)=>_0x50b149[_0x1aef11(0x197)]-_0xfc6b20[_0x1aef11(0x197)]))['missingChangesets'])return this[_0x1aef11(0x3d8)]=[],this['_updateLocalCache'](),this[_0x1aef11(0x123)]['onMissingChangesets']({'from':this[_0x1aef11(0x1f1)](),'to':0x0}),this;let _0x2a7c7e=this[_0x1aef11(0x3a8)],_0x275784=this[_0x1aef11(0x377)],_0x3bca95;if(_0x2a7c7e&&_0x275784[_0x1aef11(0x2f8)]!==0x0)_0x3bca95=this['_injector'][_0x1aef11(0x2b6)](N,this[_0x1aef11(0x37b)],this[_0x1aef11(0x15c)],_0x2a7c7e,_0x275784,this['_handler'],void 0x0);else{if(_0x2a7c7e&&_0x275784[_0x1aef11(0x2f8)]===0x0)_0x2a7c7e[_0x1aef11(0x1f0)]=this['_getCurrentRevision'](),_0x3bca95=this[_0x1aef11(0x3de)]['createInstance'](M,this[_0x1aef11(0x37b)],this['type'],_0x2a7c7e,this['_handler']);else{if(_0x275784[_0x1aef11(0x2f8)]!==0x0){let _0x299286=this[_0x1aef11(0x3de)][_0x1aef11(0x2b6)](j,this[_0x1aef11(0x37b)],this[_0x1aef11(0x15c)],_0x275784,this[_0x1aef11(0x123)]);_0x299286[_0x1aef11(0x16f)](),_0x3bca95=_0x299286;}else _0x3bca95=this['_injector'][_0x1aef11(0x2b6)](A,this[_0x1aef11(0x37b)],this[_0x1aef11(0x15c)],this[_0x1aef11(0x123)]);}}return _0x3bca95[_0x1aef11(0x2a8)](),_0x3bca95;}catch(_0x6dabe3){return this['_logService'][_0x1aef11(0x2b8)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x6dabe3),this[_0x1aef11(0x3de)][_0x1aef11(0x2b6)](P,this[_0x1aef11(0x37b)],this['type'],this[_0x1aef11(0x3a8)],this['_pendingMutations'],this[_0x1aef11(0x123)],!0x1);}}[_0x2b4704(0x15a)](_0x245ebf){const _0x253896=_0x2b4704;this['_acknowledgeAwaitingIfReady']();for(let _0x3fd888=0x0;_0x3fd888<_0x245ebf[_0x253896(0x2f8)];_0x3fd888++){let _0x257a44=_0x245ebf[_0x3fd888],_0x4820d7=this[_0x253896(0x1f1)]();if(!(_0x257a44['revision']<=_0x4820d7)){if(_0x257a44[_0x253896(0x197)]>_0x4820d7+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x257a44)){this[_0x253896(0x29b)]();continue;}this[_0x253896(0x148)](_0x257a44),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x2b4704(0x148)](_0x12c0c3){const _0x2c5700=_0x2b4704;let _0x22a0c3=_0x12c0c3,_0x2bf1d0=this[_0x2c5700(0x3a8)];if(_0x2bf1d0){let _0x368970=this[_0x2c5700(0x191)][_0x2c5700(0x256)]([_0x12c0c3],[_0x2bf1d0],!0x1);if(!(0x0,t[_0x2c5700(0x17f)])(_0x368970))throw _0x368970[_0x2c5700(0x2b8)];_0x22a0c3=_0x368970[_0x2c5700(0x2c3)][0x0],_0x2bf1d0=_0x368970[_0x2c5700(0x286)][0x0];}let _0x1c7a95=this[_0x2c5700(0x377)];if(_0x1c7a95[_0x2c5700(0x2f8)]){let _0x1c871c=this['_transformService']['transformMutationsWithChangeset'](_0x22a0c3,_0x1c7a95);if(!(0x0,t['isTransformMutationsWithChangesetSuccess'])(_0x1c871c))throw _0x1c871c['error'];_0x22a0c3=_0x1c871c[_0x2c5700(0x2c3)],_0x1c7a95=_0x1c871c[_0x2c5700(0x293)];}this[_0x2c5700(0x2d0)](_0x22a0c3),_0x2bf1d0&&(_0x2bf1d0[_0x2c5700(0x1f0)]=this[_0x2c5700(0x1f1)]()),this['_awaitingChangeset']=_0x2bf1d0,this[_0x2c5700(0x377)]=_0x1c7a95;}[_0x2b4704(0x1b5)](){const _0x2d0f0a=_0x2b4704;if(!this[_0x2d0f0a(0x3a8)]||this[_0x2d0f0a(0x3ba)]==null)return;let _0x34e6f3=this[_0x2d0f0a(0x1f1)]();if(this[_0x2d0f0a(0x3ba)]<=_0x34e6f3)throw Error(_0x2d0f0a(0x308)+this[_0x2d0f0a(0x3ba)]+'.');this['_acknowledgedAwaitingRevision']===_0x34e6f3+0x1&&this[_0x2d0f0a(0x29b)]();}[_0x2b4704(0x29b)](){const _0x52cbe8=_0x2b4704;this[_0x52cbe8(0xfd)](),this[_0x52cbe8(0x3a8)]=null,this[_0x52cbe8(0x3ba)]=null;}[_0x2b4704(0x1e2)](_0x13e180){const _0x339d40=_0x2b4704;let _0x3f6dce=this[_0x339d40(0x3a8)];return!_0x3f6dce||!_0x3f6dce[_0x339d40(0x1a2)]||_0x3f6dce['reqId']===null||_0x3f6dce[_0x339d40(0x105)]===void 0x0?!0x1:_0x13e180[_0x339d40(0x37b)]===_0x3f6dce[_0x339d40(0x37b)]&&_0x13e180[_0x339d40(0x1a2)]===_0x3f6dce['sid']&&_0x13e180[_0x339d40(0x105)]===_0x3f6dce[_0x339d40(0x105)];}[_0x2b4704(0x21a)](){const _0x152240=_0x2b4704;throw Error(_0x152240(0x196));}[_0x2b4704(0x2cd)](_0x148648){const _0x4b915c=_0x2b4704;return this[_0x4b915c(0x377)][_0x4b915c(0x384)](_0x148648),this;}[_0x2b4704(0x3b7)](_0x53ee28){const _0xb6bd99=_0x2b4704;return this[_0xb6bd99(0x3d8)][_0xb6bd99(0x384)](_0x53ee28),this;}[_0x2b4704(0x26e)](_0x269747){const _0x44aa29=_0x2b4704;if(this[_0x44aa29(0x3a8)]){let _0x5c20ee=this['_getCurrentRevision']();return _0x269747[_0x44aa29(0x197)]<=_0x5c20ee||(_0x5c20ee+0x1===_0x269747['revision']?(this[_0x44aa29(0xfd)](),this[_0x44aa29(0x3a8)]=null,this[_0x44aa29(0x3ba)]=null):this[_0x44aa29(0x3ba)]=_0x269747[_0x44aa29(0x197)]),this;}if(_0x269747[_0x44aa29(0x197)]<=this[_0x44aa29(0x1f1)]())return this;throw Error(_0x44aa29(0x278));}['onRemoteRej'](_0x500a34){const _0x4a74ad=_0x2b4704;return this['_onConflict'](!!(_0x500a34!=null&&_0x500a34[_0x4a74ad(0x208)]));}[_0x2b4704(0x165)](){return this;}[_0x2b4704(0x282)](){const _0x3ba079=_0x2b4704;return this[_0x3ba079(0x3de)][_0x3ba079(0x2b6)](F,this['unitID'],this['type'],this[_0x3ba079(0x3a8)],this[_0x3ba079(0x377)],this[_0x3ba079(0x123)]);}[_0x2b4704(0x36e)](){return this;}['_onConflict'](_0x50a722){const _0x4165df=_0x2b4704;return this['_injector']['createInstance'](P,this[_0x4165df(0x37b)],this[_0x4165df(0x15c)],this[_0x4165df(0x3a8)],this['_pendingMutations'],this[_0x4165df(0x123)],_0x50a722);}};I=b([y(0x7,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x8,(0x0,n[_0x2b4704(0x1ce)])(t['RevisionService'])),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x100)]),y(0xc,t[_0x2b4704(0x109)]),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(C))],I);function Me(_0x10b769,_0x146041,_0x1f4f90,_0x8017fa,_0x397c82,_0x465506){const _0x184a99=_0x2b4704;return _0x8017fa&&_0x397c82[_0x184a99(0x2f8)]?_0x10b769[_0x184a99(0x2b6)](N,_0x146041,_0x1f4f90,_0x8017fa,_0x397c82,_0x465506,void 0x0):_0x8017fa?_0x10b769[_0x184a99(0x2b6)](M,_0x146041,_0x1f4f90,_0x8017fa,_0x465506):_0x397c82['length']?_0x10b769[_0x184a99(0x2b6)](j,_0x146041,_0x1f4f90,_0x397c82,_0x465506):_0x10b769[_0x184a99(0x2b6)](A,_0x146041,_0x1f4f90,_0x465506);}let L=class extends n['RxDisposable']{get[_0x2b4704(0x11d)](){const _0x1284c9=_0x2b4704;return this[_0x1284c9(0x273)];}constructor(_0x57c2fb,_0x13e470,_0x229cde,_0x249d0e,_0x1b7f58,_0x53a052,_0x23be17,_0x2bf871,_0x91f067,_0x6057ea,_0x47cec3,_0x45d1dc,_0x5908e3,_0x651a09){const _0xfdb06e=_0x2b4704;super(),this[_0xfdb06e(0x37b)]=_0x57c2fb,this[_0xfdb06e(0x3aa)]=_0x13e470,this[_0xfdb06e(0x343)]=_0x229cde,this[_0xfdb06e(0x3de)]=_0x249d0e,this[_0xfdb06e(0x25e)]=_0x1b7f58,this[_0xfdb06e(0x294)]=_0x53a052,this['_revisionService']=_0x23be17,this['_eventService']=_0x2bf871,this[_0xfdb06e(0x2fb)]=_0x91f067,this[_0xfdb06e(0x35b)]=_0x6057ea,this[_0xfdb06e(0x340)]=_0x47cec3,this[_0xfdb06e(0x2d9)]=_0x45d1dc,this[_0xfdb06e(0x2cc)]=_0x5908e3,this[_0xfdb06e(0x10b)]=_0x651a09,_(this,_0xfdb06e(0x238),new a[(_0xfdb06e(0x367))](null)),_(this,'state$',this[_0xfdb06e(0x238)]['asObservable']()),_(this,'_state',void 0x0),_(this,_0xfdb06e(0x1c1),!0x1),_(this,_0xfdb06e(0x265),''),_(this,_0xfdb06e(0x36c),0x0),_(this,_0xfdb06e(0x199),this[_0xfdb06e(0x194)]['pipe']((0x0,a[_0xfdb06e(0x2c1)])(_0x2956dd=>_0x2956dd?_0x2956dd[_0xfdb06e(0x1a5)]:_0xfdb06e(0x11e)),(0x0,a[_0xfdb06e(0x23a)])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0xfdb06e(0x2b0),!0x1),_(this,'_remoteChangesetQueue',[]);}async['init'](){const _0x1bec92=_0x2b4704;if(this[_0x1bec92(0x11d)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x1bec92(0x28a)]();}[_0x2b4704(0x13b)](){const _0x3aee61=_0x2b4704;return this[_0x3aee61(0x1c1)]=!0x0,(0x0,n[_0x3aee61(0x2bb)])(()=>{const _0x593326=_0x3aee61;this[_0x593326(0x1c1)]=!0x1,this[_0x593326(0x336)]();});}[_0x2b4704(0x12a)](_0x38646a){const _0x4e8eba=_0x2b4704;this[_0x4e8eba(0x237)](_0x38646a);}['_updateState'](_0x28e147){const _0xde0ff4=_0x2b4704;this[_0xde0ff4(0x273)]=_0x28e147,this['_state$'][_0xde0ff4(0x383)](_0x28e147);}async[_0x2b4704(0x28a)](){const _0x49c315=_0x2b4704;if(this[_0x49c315(0x16a)](await this[_0x49c315(0x251)]()),this[_0x49c315(0x2cc)]){var _0x51c859;(_0x51c859=this[_0x49c315(0x2cc)])==null||_0x51c859[_0x49c315(0x385)](this['unitID']),this[_0x49c315(0x115)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x49c315(0x37b)])[_0x49c315(0x169)](_0x556946=>{const _0x5a2420=_0x49c315;this[_0x5a2420(0x35b)][_0x5a2420(0x216)](_0x5a2420(0x2b1),_0x5a2420(0x23e),_0x556946),_0x556946===0x1?(this[_0x5a2420(0x3c9)][_0x5a2420(0x2b4)]({'id':_0x5a2420(0x1ad)}),this[_0x5a2420(0x2d9)][_0x5a2420(0x1be)](new i[(_0x5a2420(0x117))](this[_0x5a2420(0x37b)])['id'],!0x1),this[_0x5a2420(0x2d9)][_0x5a2420(0x10d)](!0x1)):(this[_0x5a2420(0x2d9)][_0x5a2420(0x1be)](new i[(_0x5a2420(0x117))](this[_0x5a2420(0x37b)])['id'],!0x0),this[_0x5a2420(0x2d9)][_0x5a2420(0x10d)](!0x0));}));}let _0x2930e8=!0x1;return this[_0x49c315(0x115)](this['session']['sessionStatus$'][_0x49c315(0x169)](_0xd8abad=>{const _0x5e0b35=_0x49c315;_0xd8abad===0x3?this[_0x5e0b35(0x325)](_0x2930e8):_0xd8abad===0x2&&(_0x2930e8=!0x0,this[_0x5e0b35(0x23f)]());})),this[_0x49c315(0x115)](this[_0x49c315(0x3aa)]['event$'][_0x49c315(0x169)](_0x172417=>{const _0x3e3606=_0x49c315;try{switch(_0x172417[_0x3e3606(0x1da)]){case t[_0x3e3606(0x30b)][_0x3e3606(0x2a5)]:this['_onRemoteChangeset']((0x0,t[_0x3e3606(0x3d2)])(_0x172417[_0x3e3606(0x27c)]));break;case t[_0x3e3606(0x30b)][_0x3e3606(0x221)]:this[_0x3e3606(0x1ef)](_0x172417['data']);break;case t[_0x3e3606(0x30b)][_0x3e3606(0x3a1)]:this[_0x3e3606(0x3d3)]();break;case t[_0x3e3606(0x30b)][_0x3e3606(0x35d)]:this[_0x3e3606(0x2fe)](_0x172417[_0x3e3606(0x27c)]);break;case t[_0x3e3606(0x30b)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x3e3606(0x297)](_0x172417[_0x3e3606(0x27c)][_0x3e3606(0x337)][_0x3e3606(0x2c1)](_0x425c1a=>(0x0,t[_0x3e3606(0x3d2)])(_0x425c1a)));break;case t[_0x3e3606(0x30b)][_0x3e3606(0x317)]:this[_0x3e3606(0x3d3)]({'isPermissionRej':!0x0});break;case t['CollaborationEvent']['UNISCRIPT_RUN']:break;}}catch(_0x48d137){throw console[_0x3e3606(0x2b8)](_0x3e3606(0x3db),_0x48d137),_0x48d137;}})),this[_0x49c315(0x273)];}[_0x2b4704(0x106)](){const _0x5e7eec=_0x2b4704;this[_0x5e7eec(0x2b0)]=!0x1;}[_0x2b4704(0x3b9)](){const _0x1642d4=_0x2b4704;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x1642d4(0x2b0)]=!0x0;}['_onLocalMutation'](_0x4ffbb2){const _0x13c0d1=_0x2b4704;this[_0x13c0d1(0x3b9)](),this[_0x13c0d1(0x16a)](this[_0x13c0d1(0x273)][_0x13c0d1(0x2cd)](_0x4ffbb2)),this[_0x13c0d1(0x106)]();}[_0x2b4704(0x2c7)](_0x224122){const _0x4da2d0=_0x2b4704;if(!(_0x224122[_0x4da2d0(0x197)]<=this[_0x4da2d0(0x36f)][_0x4da2d0(0x392)](this[_0x4da2d0(0x37b)]))){if(this['_collaborationPaused']){this[_0x4da2d0(0x2ad)][_0x4da2d0(0x384)](_0x224122);return;}this[_0x4da2d0(0x193)](_0x224122);}}[_0x2b4704(0x336)](){const _0x4881ed=_0x2b4704;this[_0x4881ed(0x2ad)][_0x4881ed(0x24e)](_0x219c98=>this[_0x4881ed(0x193)](_0x219c98)),this[_0x4881ed(0x2ad)]=[];}[_0x2b4704(0x193)](_0x20e979){const _0x56b12b=_0x2b4704;let _0x4abedb=this[_0x56b12b(0x25e)]['interceptor'][_0x56b12b(0x2dc)](this[_0x56b12b(0x25e)]['interceptor']['getInterceptPoints']()[_0x56b12b(0x206)])(_0x20e979['mutations'],null)||_0x20e979[_0x56b12b(0x296)],_0x3f51b0={..._0x20e979,'mutations':_0x4abedb};this['_lockTransition'](),this[_0x56b12b(0x16a)](this[_0x56b12b(0x273)][_0x56b12b(0x3b7)](_0x3f51b0)),this['_unlockTransition']();}['_onRemoteACK'](_0x5bb25f){const _0x545bd6=_0x2b4704;this[_0x545bd6(0x3b9)](),this[_0x545bd6(0x16a)](this[_0x545bd6(0x273)][_0x545bd6(0x26e)](_0x5bb25f)),this['_unlockTransition']();}[_0x2b4704(0x3d3)](_0x4caeb5){const _0x52f4f2=_0x2b4704;this['_lockTransition'](),this[_0x52f4f2(0x16a)](this[_0x52f4f2(0x273)][_0x52f4f2(0x311)](_0x4caeb5)),this[_0x52f4f2(0x106)]();}[_0x2b4704(0x2fe)](_0x5e92da){const _0x5dee40=_0x2b4704;this[_0x5dee40(0x3b9)](),this[_0x5dee40(0x16a)](this[_0x5dee40(0x273)][_0x5dee40(0x165)](_0x5e92da)),this[_0x5dee40(0x106)]();}['_onFetchMissResult'](_0x198fc3){const _0x2f8165=_0x2b4704;if(!(this[_0x2f8165(0x273)]instanceof I))throw TypeError(_0x2f8165(0x127));let _0x55b4e3=_0x198fc3['map'](_0xff50d=>{const _0xbbfed1=_0x2f8165;let _0x24f392=this[_0xbbfed1(0x25e)]['interceptor'][_0xbbfed1(0x2dc)](this[_0xbbfed1(0x25e)][_0xbbfed1(0x185)][_0xbbfed1(0xff)]()[_0xbbfed1(0x206)])(_0xff50d[_0xbbfed1(0x296)],null)||_0xff50d[_0xbbfed1(0x296)];return{..._0xff50d,'mutations':_0x24f392};});this[_0x2f8165(0x3b9)](),this['_updateState'](this['_state'][_0x2f8165(0x27a)](_0x55b4e3)),this[_0x2f8165(0x106)]();}[_0x2b4704(0x23f)](){const _0x40c716=_0x2b4704;this[_0x40c716(0x3b9)](),this[_0x40c716(0x16a)](this[_0x40c716(0x273)][_0x40c716(0x282)]()),this['_unlockTransition']();}['_toggleOnline'](_0x51bd0c=!0x1){const _0x254469=_0x2b4704;this[_0x254469(0x3b9)](),this['_updateState'](this['_state'][_0x254469(0x36e)]()),this[_0x254469(0x106)]();let _0x4ccb0f=this[_0x254469(0x273)];_0x51bd0c&&_0x4ccb0f instanceof A&&(this[_0x254469(0x3b9)](),this[_0x254469(0x16a)](_0x4ccb0f[_0x254469(0x18c)]()),this['_unlockTransition']());}async[_0x2b4704(0x251)](){return new Promise(_0x4ae719=>{const _0x158e07=_0x2cb1;this[_0x158e07(0x3aa)][_0x158e07(0x3d5)][_0x158e07(0x200)]((0x0,a[_0x158e07(0x346)])(0x1))[_0x158e07(0x169)](async _0x6aafbc=>{const _0x431f5c=_0x158e07;_0x4ae719(await this[_0x431f5c(0x1bd)](_0x6aafbc===0x3));});});}[_0x2b4704(0x2a7)](){const _0x451938=_0x2b4704;let _0x4e368f=this[_0x451938(0x37b)];return{'onStateChange':(_0x59e595,_0x386f52)=>{const _0x1e2d57=_0x451938;if(_0x59e595!==this[_0x1e2d57(0x273)])throw Error(_0x1e2d57(0x37c)+_0x59e595[_0x1e2d57(0x1a5)]+_0x1e2d57(0x1b8)+_0x386f52[_0x1e2d57(0x1a5)]+_0x1e2d57(0x19c)+this['_state'][_0x1e2d57(0x1a5)]);this['_updateState'](_0x386f52);},'onSendChangeset':_0x1be67f=>{const _0x5d498c=_0x451938;_0x1be67f[_0x5d498c(0x1a2)]||(_0x1be67f[_0x5d498c(0x1a2)]=this[_0x5d498c(0x265)],_0x1be67f['reqId']=++this[_0x5d498c(0x36c)]);let _0xefdfc2={'eventID':t[_0x5d498c(0x30b)][_0x5d498c(0x30c)],'data':{'unitID':_0x1be67f['unitID'],'unitType':this['_type'],'changeset':_0x1be67f,'memberID':this[_0x5d498c(0x3aa)][_0x5d498c(0x145)]()}};this[_0x5d498c(0x3aa)][_0x5d498c(0x3d4)](_0xefdfc2,this[_0x5d498c(0x37b)]);},'onMissingChangesets':({from:_0x10c4bc,to:_0x50d3d5})=>{const _0x2734fc=_0x451938;this[_0x2734fc(0x35b)][_0x2734fc(0x216)]('[CollaborationEntity]',_0x2734fc(0x22f)+_0x10c4bc+_0x2734fc(0x146)+_0x50d3d5);let _0x1821c2={'eventID':t[_0x2734fc(0x30b)][_0x2734fc(0x270)],'data':{'unitID':_0x4e368f,'unitType':this[_0x2734fc(0x343)],'from':_0x10c4bc,'to':_0x50d3d5}};this[_0x2734fc(0x3aa)][_0x2734fc(0x3d4)](_0x1821c2,this['unitID']);}};}async[_0x2b4704(0x1bd)](_0x8ca5c){const _0x45b71a=_0x2b4704;var _0x31f602,_0x193aaf,_0x21e7b0;let _0x1520ab=await((_0x31f602=this[_0x45b71a(0x10b)])==null?void 0x0:_0x31f602['loadOfflineData'](this['unitID'])),_0x4a7635=(_0x193aaf=_0x1520ab==null?void 0x0:_0x1520ab[_0x45b71a(0x296)])==null?[]:_0x193aaf,_0x402472=(_0x21e7b0=_0x1520ab==null?void 0x0:_0x1520ab[_0x45b71a(0x3b1)])==null?null:_0x21e7b0,_0x2acbd1=!!(_0x402472!=null&&_0x402472[_0x45b71a(0x1a2)])&&!!(_0x402472!=null&&_0x402472[_0x45b71a(0x105)]);this[_0x45b71a(0x265)]=_0x2acbd1?_0x402472[_0x45b71a(0x1a2)]:(0x0,t['uuidv4'])(),this[_0x45b71a(0x36c)]=_0x2acbd1?_0x402472[_0x45b71a(0x105)]:0x0;let _0x1c5168=this[_0x45b71a(0x37b)];try{this[_0x45b71a(0x229)](_0x402472,_0x4a7635);}catch(_0x2d6dc5){this[_0x45b71a(0x35b)][_0x45b71a(0x2b8)](_0x2d6dc5);}let _0x43f52b=this['_createHandler']();if(_0x8ca5c){let _0x3dde90=Me(this['_injector'],_0x1c5168,this[_0x45b71a(0x343)],_0x402472,_0x4a7635,_0x43f52b);return _0x3dde90 instanceof j?_0x3dde90['_schedule']():(_0x3dde90 instanceof N||_0x3dde90 instanceof M)&&_0x3dde90[_0x45b71a(0x21a)](),_0x3dde90;}return this['_injector'][_0x45b71a(0x2b6)](F,_0x1c5168,this['_type'],_0x402472,_0x4a7635,_0x43f52b);}['_replayCachedMutations'](_0x599763,_0x12a6d4){const _0x587c40=_0x2b4704;var _0x1cc434,_0x625850;let _0xb95ace=this['_compressMutationService'][_0x587c40(0x185)][_0x587c40(0x2dc)](this['_compressMutationService'][_0x587c40(0x185)][_0x587c40(0xff)]()[_0x587c40(0x206)]);(_0x1cc434=_0xb95ace((_0x599763==null?void 0x0:_0x599763[_0x587c40(0x296)])||[],null))==null||_0x1cc434[_0x587c40(0x24e)](_0x44ad70=>this[_0x587c40(0x340)][_0x587c40(0x1f7)](_0x44ad70['id'],_0x44ad70[_0x587c40(0x3bf)])),(_0x625850=_0xb95ace(_0x12a6d4||[],null))==null||_0x625850[_0x587c40(0x24e)](_0x30ab3d=>this['_commandService'][_0x587c40(0x1f7)](_0x30ab3d['id'],_0x30ab3d['params']));}};L=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n['Inject'])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n['Inject'])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n['ILogService']),y(0xa,n['ICommandService']),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n[_0x2b4704(0x1d7)])(T)),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(C))],L);let R=class extends L{constructor(_0x4269ac,_0x10c420,_0x181133,_0x5ef837,_0x533351,_0x12052f,_0x5e7d3b,_0x3f38ae,_0x962f2,_0x59bcdc,_0x2ed187,_0x161dda,_0x355685,_0x27b556,_0x1ac13){const _0x13b41d=_0x2b4704;super(_0x4269ac,_0x181133,_0x10c420,_0x5ef837,_0x533351,_0x12052f,_0x5e7d3b,_0x3f38ae,_0x962f2,_0x59bcdc,_0x2ed187,_0x161dda,_0x27b556,_0x1ac13),this[_0x13b41d(0x37b)]=_0x4269ac,this[_0x13b41d(0x15c)]=_0x10c420,this['_docStateChangeManagerService']=_0x355685,_(this,_0x13b41d(0x334),null);}['addHandlerCallback'](_0x20c308){const _0x25ec9d=_0x2b4704;this[_0x25ec9d(0x334)]=_0x20c308;}[_0x2b4704(0x2cf)](){const _0x50379f=_0x2b4704;this[_0x50379f(0x334)]=null,super[_0x50379f(0x2cf)]();}['_createHandler'](){const _0x443ee6=_0x2b4704;let _0x5096e3=super['_createHandler']();return _0x5096e3['onTransformIME']=_0x512e41=>{const _0x11491d=_0x2cb1;var _0x2381d6,_0x6be215;return(_0x2381d6=this['_handlerCallback'])==null||(_0x6be215=_0x2381d6['onTransformIME'])==null?void 0x0:_0x6be215[_0x11491d(0x2ec)](_0x2381d6,_0x512e41);},_0x5096e3[_0x443ee6(0x120)]=_0xc58a87=>{const _0x1cf34f=_0x443ee6;var _0x470578,_0x53d222;return(_0x470578=this[_0x1cf34f(0x334)])==null||(_0x53d222=_0x470578[_0x1cf34f(0x120)])==null?void 0x0:_0x53d222[_0x1cf34f(0x2ec)](_0x470578,_0xc58a87);},_0x5096e3['onTransformSelections']=_0x59aeda=>{const _0x155215=_0x443ee6;var _0x3654cf,_0x43a58d;return(_0x3654cf=this['_handlerCallback'])==null||(_0x43a58d=_0x3654cf[_0x155215(0x2eb)])==null?void 0x0:_0x43a58d[_0x155215(0x2ec)](_0x3654cf,_0x59aeda);},_0x5096e3[_0x443ee6(0x2c8)]=_0x281898=>{const _0x42332e=_0x443ee6;var _0x197afd,_0x48526e;return(_0x197afd=this[_0x42332e(0x334)])==null||(_0x48526e=_0x197afd[_0x42332e(0x2c8)])==null?void 0x0:_0x48526e[_0x42332e(0x2ec)](_0x197afd,_0x281898);},_0x5096e3[_0x443ee6(0x319)]=_0x54e2d3=>{const _0x23862d=_0x443ee6;var _0xa55fe0,_0x151e11,_0xd1b663;return(_0xa55fe0=(_0x151e11=this[_0x23862d(0x334)])==null||(_0xd1b663=_0x151e11[_0x23862d(0x319)])==null?void 0x0:_0xd1b663[_0x23862d(0x2ec)](_0x151e11,_0x54e2d3))==null?_0x54e2d3:_0xa55fe0;},_0x5096e3[_0x443ee6(0x365)]=_0x4f4b5e=>{const _0x22db23=_0x443ee6;var _0x5e5c75,_0x50bc1f,_0x39b273;return(_0x5e5c75=(_0x50bc1f=this[_0x22db23(0x334)])==null||(_0x39b273=_0x50bc1f[_0x22db23(0x365)])==null?void 0x0:_0x39b273[_0x22db23(0x2ec)](_0x50bc1f,_0x4f4b5e))==null?_0x4f4b5e:_0x5e5c75;},_0x5096e3;}async[_0x2b4704(0x28a)](){const _0x550613=_0x2b4704;if(this[_0x550613(0x277)]==null)throw Error('[DocCollaborationEntity]:\x20DocStateChangeManagerService\x20is\x20required.\x20Register\x20UniverDocsPlugin\x20before\x20collaboration.');let _0xf1d51f=await super[_0x550613(0x28a)]();return this[_0x550613(0x115)](this[_0x550613(0x277)]['docStateChange$']['subscribe'](_0x4337a3=>{const _0x55a6c2=_0x550613;if(_0x4337a3==null||_0x4337a3['unitId']!==this[_0x55a6c2(0x37b)])return;let {commandId:_0x274547,redoState:_0x550ced,unitId:_0xd55a7b}=_0x4337a3,_0x232828={'id':_0x274547,'type':n[_0x55a6c2(0x2e2)][_0x55a6c2(0x3d9)],'params':{'unitId':_0xd55a7b,'actions':_0x550ced['actions'],'textRanges':null}};this[_0x55a6c2(0x237)](_0x232828);})),this[_0x550613(0x115)](this[_0x550613(0x340)][_0x550613(0x10a)]((_0x5a9c7a,_0x147c09)=>{const _0x87d46f=_0x550613;if(_0x5a9c7a[_0x87d46f(0x15c)]!==n[_0x87d46f(0x2e2)]['MUTATION']||_0x147c09!=null&&_0x147c09['fromCollab']||_0x147c09!=null&&_0x147c09[_0x87d46f(0xfa)]||_0x5a9c7a['id']===r[_0x87d46f(0x292)]['id'])return;let _0x3b6768=_0x5a9c7a['params'];if((_0x3b6768==null?void 0x0:_0x3b6768[_0x87d46f(0x19e)])!==this[_0x87d46f(0x37b)])return;let _0x556346=_0x5a9c7a,_0x2254fa=this[_0x87d46f(0x25e)]['interceptor'][_0x87d46f(0x2dc)](this[_0x87d46f(0x25e)]['interceptor'][_0x87d46f(0xff)]()['COMPRESS_MUTATION_SEND'])([_0x556346],this['_univerInstanceService'])||[_0x556346];this[_0x87d46f(0x237)](_0x2254fa[0x0]);})),_0xf1d51f;}};R=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t['CompressMutationService'])),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n[_0x2b4704(0x1d7)])(r[_0x2b4704(0x3dc)])),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(T)),y(0xe,(0x0,n['Optional'])(C))],R);let Ne=class extends L{constructor(_0x5d5175,_0x542aac,_0x5360c9,_0x31826b,_0x28c62d,_0x544a31,_0x2f49b2,_0x14f36f,_0x46735b,_0x242734,_0x584bb5,_0x246e60,_0x48243a,_0x27fc51){const _0x416b8f=_0x2b4704;super(_0x5d5175,_0x5360c9,_0x542aac,_0x31826b,_0x28c62d,_0x544a31,_0x2f49b2,_0x14f36f,_0x46735b,_0x242734,_0x584bb5,_0x246e60,_0x48243a,_0x27fc51),this['unitID']=_0x5d5175,this[_0x416b8f(0x15c)]=_0x542aac;}async[_0x2b4704(0x28a)](){const _0x2730c1=_0x2b4704;let _0x551c8c=await super['_init']();return this['disposeWithMe'](this['_commandService'][_0x2730c1(0x10a)]((_0x329f03,_0x387633)=>{const _0x2709f8=_0x2730c1;if(_0x329f03[_0x2709f8(0x15c)]!==n['CommandType'][_0x2709f8(0x3d9)]||_0x387633!=null&&_0x387633[_0x2709f8(0x39c)]||_0x387633!=null&&_0x387633[_0x2709f8(0xfa)]||_0x329f03['id']!==e[_0x2709f8(0x1d4)]['id'])return;let _0xc72d6a=_0x329f03[_0x2709f8(0x3bf)];if((_0xc72d6a==null?void 0x0:_0xc72d6a[_0x2709f8(0x19e)])!==this[_0x2709f8(0x37b)])return;let _0x3d1a71=_0x329f03,_0x59f471=this['_compressMutationService']['interceptor'][_0x2709f8(0x2dc)](this['_compressMutationService'][_0x2709f8(0x185)][_0x2709f8(0xff)]()['COMPRESS_MUTATION_SEND'])([_0x3d1a71],this[_0x2709f8(0x2fb)])||[_0x3d1a71];this[_0x2709f8(0x237)](_0x59f471[0x0]);})),_0x551c8c;}};Ne=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n[_0x2b4704(0x1ce)])(n['LocaleService'])),y(0x6,(0x0,n['Inject'])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n['Optional'])(T)),y(0xd,(0x0,n[_0x2b4704(0x1d7)])(C))],Ne);let z=class extends L{constructor(_0x453762,_0x4b24b6,_0x1b5d8e,_0x575d7a,_0x10afb9,_0x5114f2,_0x1fbc7c,_0xe3c3c3,_0x3b986,_0x19da98,_0x4f7165,_0x387090,_0x12c311,_0x235a6c,_0x57423e){super(_0x453762,_0x1b5d8e,_0x4b24b6,_0x575d7a,_0x10afb9,_0x5114f2,_0x1fbc7c,_0x3b986,_0x19da98,_0x4f7165,_0x387090,_0x12c311,_0x235a6c,_0x57423e),this['unitID']=_0x453762,this['type']=_0x4b24b6,this['_sheetTransformSelectionsService']=_0xe3c3c3;}[_0x2b4704(0x2a7)](){const _0x20af2f=_0x2b4704;let _0x5b3b6f=super[_0x20af2f(0x2a7)]();return _0x5b3b6f[_0x20af2f(0x2eb)]=_0x5c1c0c=>this[_0x20af2f(0x14f)]['transformSelections'](_0x5c1c0c),_0x5b3b6f;}async[_0x2b4704(0x28a)](){const _0x1763bb=_0x2b4704;let _0x418426=await super[_0x1763bb(0x28a)]();return this[_0x1763bb(0x115)](this[_0x1763bb(0x340)][_0x1763bb(0x10a)]((_0x2227bd,_0x21da4c)=>{const _0x3eb3ee=_0x1763bb;if(_0x2227bd[_0x3eb3ee(0x15c)]!==n[_0x3eb3ee(0x2e2)]['MUTATION']||_0x21da4c!=null&&_0x21da4c[_0x3eb3ee(0x39c)]||_0x21da4c!=null&&_0x21da4c[_0x3eb3ee(0xfa)])return;let _0x369fd3=_0x2227bd[_0x3eb3ee(0x3bf)];if((_0x369fd3==null?void 0x0:_0x369fd3[_0x3eb3ee(0x19e)])!==this[_0x3eb3ee(0x37b)])return;let _0x1cad73=_0x2227bd,_0x5726fd=this[_0x3eb3ee(0x25e)][_0x3eb3ee(0x185)][_0x3eb3ee(0x2dc)](this[_0x3eb3ee(0x25e)][_0x3eb3ee(0x185)][_0x3eb3ee(0xff)]()[_0x3eb3ee(0x33c)])([_0x1cad73],this['_univerInstanceService'])||[_0x1cad73];this['_onLocalMutation'](_0x5726fd[0x0]);})),_0x418426;}};z=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n['Inject'])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x136)])),y(0x7,(0x0,n['Inject'])(w)),y(0x8,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x9,n[_0x2b4704(0x3a9)]),y(0xa,n['ILogService']),y(0xb,n[_0x2b4704(0x378)]),y(0xc,n[_0x2b4704(0x376)]),y(0xd,(0x0,n['Optional'])(T)),y(0xe,(0x0,n['Optional'])(C))],z);let B=class extends L{constructor(_0x4e7eba,_0x138e76,_0x594803,_0x537b19,_0x98b713,_0x5708a3,_0x161454,_0x344cce,_0x5507ee,_0x58e284,_0x51e406,_0x2e516b,_0x5191cc,_0x25d305){const _0x1cf3da=_0x2b4704;super(_0x4e7eba,_0x594803,_0x138e76,_0x537b19,_0x98b713,_0x5708a3,_0x161454,_0x344cce,_0x5507ee,_0x58e284,_0x51e406,_0x2e516b,_0x5191cc,_0x25d305),this[_0x1cf3da(0x37b)]=_0x4e7eba,this[_0x1cf3da(0x15c)]=_0x138e76;}async[_0x2b4704(0x28a)](){const _0x2da085=_0x2b4704;let _0x3f8a94=await super[_0x2da085(0x28a)]();return this[_0x2da085(0x115)](this[_0x2da085(0x340)][_0x2da085(0x10a)]((_0x340a02,_0x2bd93f)=>{const _0x19a40a=_0x2da085;if(_0x340a02[_0x19a40a(0x15c)]!==n[_0x19a40a(0x2e2)][_0x19a40a(0x3d9)]||_0x2bd93f!=null&&_0x2bd93f[_0x19a40a(0x39c)]||_0x2bd93f!=null&&_0x2bd93f[_0x19a40a(0xfa)])return;let _0x28ca25=_0x340a02[_0x19a40a(0x3bf)];if((_0x28ca25==null?void 0x0:_0x28ca25[_0x19a40a(0x19e)])!==this[_0x19a40a(0x37b)])return;let _0x51ea42=_0x340a02,_0x1ff9ab=this[_0x19a40a(0x25e)][_0x19a40a(0x185)][_0x19a40a(0x2dc)](this[_0x19a40a(0x25e)][_0x19a40a(0x185)][_0x19a40a(0xff)]()[_0x19a40a(0x33c)])([_0x51ea42],this['_univerInstanceService'])||[_0x51ea42];this[_0x19a40a(0x237)](_0x1ff9ab[0x0]);})),_0x3f8a94;}};B=b([y(0x3,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(t[_0x2b4704(0x132)])),y(0x5,(0x0,n['Inject'])(n[_0x2b4704(0x1a3)])),y(0x6,(0x0,n[_0x2b4704(0x1ce)])(t['RevisionService'])),y(0x7,(0x0,n['Inject'])(v)),y(0x8,n[_0x2b4704(0x3a9)]),y(0x9,n[_0x2b4704(0x2ac)]),y(0xa,n[_0x2b4704(0x378)]),y(0xb,n[_0x2b4704(0x376)]),y(0xc,(0x0,n[_0x2b4704(0x1d7)])(T)),y(0xd,(0x0,n['Optional'])(C))],B);const Pe=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x187));function Fe(_0x5f3116){const _0x47d116=_0x2b4704;let _0x25334f=_0x5f3116[_0x47d116(0x27c)],_0x95bb61=JSON['parse'](_0x25334f);switch(_0x95bb61[_0x47d116(0x28f)]){case o['CombCmd'][_0x47d116(0x2e3)]:case o[_0x47d116(0x329)][_0x47d116(0x3dd)]:{let _0x5d6723=_0x95bb61['infoRsp'];return{..._0x95bb61,'data':_0x5d6723,'cmd':_0x95bb61[_0x47d116(0x28f)]};}case o[_0x47d116(0x329)][_0x47d116(0x318)]:{let _0x1de6ef=_0x95bb61[_0x47d116(0x12e)];return{..._0x95bb61,'data':_0x1de6ef,'cmd':_0x95bb61['cmd']};}case o[_0x47d116(0x329)][_0x47d116(0x30d)]:{let _0x4bfe13=_0x95bb61[_0x47d116(0x186)];switch(_0x4bfe13[_0x47d116(0x1da)]){case t[_0x47d116(0x30b)]['PERMISSION_REJ']:var _0x587fe6;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x587fe6=_0x4bfe13['permissionRejEvent'])==null?void 0x0:_0x587fe6['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t['CollaborationEvent'][_0x47d116(0x221)]:var _0x20faf6;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x20faf6=_0x4bfe13['csAckEvent'])==null?void 0x0:_0x20faf6['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x2a5)]:var _0x526252;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x526252=_0x4bfe13[_0x47d116(0x2c2)])==null?void 0x0:_0x526252['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x3a1)]:var _0x47308f;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x47308f=_0x4bfe13[_0x47d116(0x2aa)])==null?void 0x0:_0x47308f['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x35d)]:var _0x1a27c8;return{..._0x95bb61,'data':{..._0x4bfe13,'data':(_0x1a27c8=_0x4bfe13[_0x47d116(0x1e3)])==null?void 0x0:_0x1a27c8['cs']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x205)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13['updateCursorEvent']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t['CollaborationEvent'][_0x47d116(0x1a8)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13['joinEvent']},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)]['USERS_LEAVE']:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x348)]},'cmd':_0x95bb61['cmd']};case t['CollaborationEvent'][_0x47d116(0x249)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x207)]},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x15b)]:case t[_0x47d116(0x30b)][_0x47d116(0x17a)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x3da)]},'cmd':_0x95bb61['cmd']};case t['CollaborationEvent'][_0x47d116(0x2e0)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x207)]},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x95bb61,'data':_0x4bfe13,'cmd':_0x95bb61['cmd']};case t[_0x47d116(0x30b)][_0x47d116(0x257)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x164)]},'cmd':_0x95bb61['cmd']};case t[_0x47d116(0x30b)][_0x47d116(0x2c9)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x20b)]},'cmd':_0x95bb61['cmd']};case t[_0x47d116(0x30b)][_0x47d116(0x28b)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13[_0x47d116(0x21c)]},'cmd':_0x95bb61[_0x47d116(0x28f)]};case t[_0x47d116(0x30b)][_0x47d116(0x3ae)]:return{..._0x95bb61,'data':{..._0x4bfe13,'data':_0x4bfe13['uniscriptRunEvent']},'cmd':_0x95bb61[_0x47d116(0x28f)]};default:return _0x95bb61;}}default:return _0x95bb61;}}function Ie(_0x16552e){const _0x25fe67=_0x2b4704;switch(_0x16552e[_0x25fe67(0x28f)]){case o[_0x25fe67(0x329)][_0x25fe67(0x2e3)]:case o[_0x25fe67(0x329)][_0x25fe67(0x3dd)]:return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e[_0x25fe67(0x28f)],'routeKey':_0x16552e[_0x25fe67(0x224)]});case o['CombCmd'][_0x25fe67(0x2f6)]:{let _0x2995a5;switch(_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x1da)]){case t['CollaborationEvent'][_0x25fe67(0x205)]:_0x2995a5={'eventID':t['CollaborationEvent'][_0x25fe67(0x205)],'updateCursorEvent':_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x27c)]};break;case t[_0x25fe67(0x30b)][_0x25fe67(0x35c)]:_0x2995a5={'eventID':t['CollaborationEvent'][_0x25fe67(0x35c)],'leaveEvent':_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x27c)]};break;case t[_0x25fe67(0x30b)][_0x25fe67(0x1a8)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x1a8)],'joinEvent':_0x16552e[_0x25fe67(0x27c)][_0x25fe67(0x27c)]};break;case t[_0x25fe67(0x30b)]['LIVESHARE_NEW_HOST']:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x249)],'liveShareNewHost':_0x16552e['data'][_0x25fe67(0x27c)]};break;case t['CollaborationEvent'][_0x25fe67(0x17a)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x17a)],'liveShareOperation':_0x16552e[_0x25fe67(0x27c)]['data']};break;case t[_0x25fe67(0x30b)][_0x25fe67(0x2e0)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x2e0)],'liveShareTerminate':_0x16552e['data']['data']};break;case t[_0x25fe67(0x30b)]['LIVESHARE_REQUEST_HOST']:_0x2995a5={'eventID':t['CollaborationEvent'][_0x25fe67(0x298)],'liveShareRequestHost':_0x16552e[_0x25fe67(0x27c)]['data']};break;case t['CollaborationEvent'][_0x25fe67(0x15b)]:_0x2995a5={'eventID':t[_0x25fe67(0x30b)][_0x25fe67(0x15b)]};break;default:_0x2995a5={'eventID':_0x16552e['data']['eventID']};}return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e['cmd'],'routeKey':_0x16552e[_0x25fe67(0x224)],'collaMsg':_0x2995a5});}case o[_0x25fe67(0x329)][_0x25fe67(0x318)]:return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e[_0x25fe67(0x28f)],'routeKey':_0x16552e[_0x25fe67(0x224)],'joinReq':_0x16552e[_0x25fe67(0x27c)]});case o[_0x25fe67(0x329)][_0x25fe67(0x2af)]:return JSON[_0x25fe67(0x22b)]({'cmd':_0x16552e[_0x25fe67(0x28f)],'routeKey':_0x16552e[_0x25fe67(0x224)],'leaveReq':_0x16552e[_0x25fe67(0x27c)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const Le=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x1f8));function Re(_0x16f56b,_0x2aa183,_0x3e8fb7){const _0x46cbb8=_0x2b4704;return _0x16f56b+'/'+_0x2aa183+_0x46cbb8(0x231)+_0x3e8fb7+_0x46cbb8(0x10f);}let ze=class extends n[_0x2b4704(0x274)]{constructor(_0x10d07c,_0x3c8872,_0x1b1a16,_0x54d145,_0x7dc0b){const _0x55d06d=_0x2b4704;super(),this[_0x55d06d(0x3de)]=_0x10d07c,this[_0x55d06d(0x3c7)]=_0x3c8872,this['_configService']=_0x1b1a16,this[_0x55d06d(0x35b)]=_0x54d145,this[_0x55d06d(0xfb)]=_0x7dc0b;}['_doCreateSocket'](_0x2a9b70){const _0x50dc96=_0x2b4704;let _0x49435a=this[_0x50dc96(0x3de)][_0x50dc96(0x287)](u[_0x50dc96(0x304)]);if(!_0x49435a)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x12cac0=_0x49435a[_0x50dc96(0x1b3)](_0x2a9b70);if(!_0x12cac0)throw Error(_0x50dc96(0x1d5));let _0xc7bf7e=new n[(_0x50dc96(0x1cc))](),_0x10da7c=new a[(_0x50dc96(0x119))]();_0xc7bf7e['add'](_0x12cac0[_0x50dc96(0x360)]['subscribe'](_0x5604d2=>_0x10da7c[_0x50dc96(0x383)](_0x5604d2))),_0xc7bf7e[_0x50dc96(0x20c)]((0x0,n[_0x50dc96(0x2bb)])(()=>_0x10da7c[_0x50dc96(0x391)]()));let _0x2b827e=new a[(_0x50dc96(0x119))]();_0xc7bf7e[_0x50dc96(0x20c)](_0x12cac0[_0x50dc96(0x363)][_0x50dc96(0x169)](_0x264191=>_0x2b827e[_0x50dc96(0x383)](_0x264191))),_0xc7bf7e[_0x50dc96(0x20c)]((0x0,n['toDisposable'])(()=>_0x2b827e['complete']()));let _0xae0447=new a['Subject']();_0xc7bf7e[_0x50dc96(0x20c)](_0x12cac0['message$'][_0x50dc96(0x169)](_0x30f87c=>{const _0x17dead=_0x50dc96;let _0x2d86d5=Fe(_0x30f87c);_0xae0447[_0x17dead(0x383)](_0x2d86d5);})),_0xc7bf7e[_0x50dc96(0x20c)]((0x0,n[_0x50dc96(0x2bb)])(()=>_0xae0447[_0x50dc96(0x391)]()));let _0x2be463,_0x121468=()=>{const _0x1a85fa=_0x50dc96;_0x2b827e[_0x1a85fa(0x383)](new Event(_0x1a85fa(0x2dd))),_0x10da7c[_0x1a85fa(0x383)](new Event(_0x1a85fa(0x2dd))),_0x2be463['close']();};return _0x2be463={'memberID':'','close$':_0x10da7c['asObservable'](),'error$':_0x2b827e[_0x50dc96(0x171)](),'open$':_0x12cac0[_0x50dc96(0x211)],'message$':_0xae0447[_0x50dc96(0x171)](),'send':_0x221cf2=>{const _0x48ff89=_0x50dc96;if(_0x221cf2[_0x48ff89(0x28f)]===o[_0x48ff89(0x329)]['INGEST']){if(_0x221cf2['data'][_0x48ff89(0x1da)]===t[_0x48ff89(0x30b)]['SUBMIT_CHANGESET']){this[_0x48ff89(0x1e8)](_0x2be463,_0x221cf2['data'])['catch'](_0x32fb42=>{const _0x319b7c=_0x48ff89;this[_0x319b7c(0x35b)][_0x319b7c(0x2b8)](_0x32fb42),_0x121468();});return;}if(_0x221cf2[_0x48ff89(0x27c)][_0x48ff89(0x1da)]===t[_0x48ff89(0x30b)][_0x48ff89(0x270)]){let _0x380ae9=_0x221cf2[_0x48ff89(0x27c)];this[_0x48ff89(0x180)](_0x380ae9)['then'](_0x4cff86=>{const _0x201a11=_0x48ff89;_0xae0447[_0x201a11(0x383)]({'cmd':o[_0x201a11(0x329)][_0x201a11(0x30d)],'code':o[_0x201a11(0x371)]['OK'],'routeKey':_0x380ae9['data'][_0x201a11(0x37b)],'routeType':'','data':{'eventID':t[_0x201a11(0x30b)][_0x201a11(0x156)],'data':{'changesets':_0x4cff86}}});})[_0x48ff89(0x313)](_0x1c95cb=>{const _0x1fdd69=_0x48ff89;this[_0x1fdd69(0x35b)][_0x1fdd69(0x2b8)](_0x1c95cb),_0x121468();});return;}}_0x12cac0[_0x48ff89(0x3d4)](Ie(_0x221cf2));},'close':()=>{const _0x380f6e=_0x50dc96;_0x12cac0['close'](),_0xc7bf7e[_0x380f6e(0x2cf)]();}},_0x2be463;}async[_0x2b4704(0x1e8)](_0x579a56,_0x55eb5a){const _0x1544df=_0x2b4704;var _0x58e1a0;let {unitType:_0x2d7e10,unitID:_0x523e8c,changeset:_0x2b7799}=_0x55eb5a[_0x1544df(0x27c)],_0x55a7dc={'unitID':_0x523e8c,'memberID':_0x579a56[_0x1544df(0x303)],'type':_0x2d7e10,'changeset':(0x0,t[_0x1544df(0x1c2)])(_0x2b7799)},_0x4486db=this['_configService'][_0x1544df(0x18e)](h),_0x3e1aac=Re((_0x58e1a0=_0x4486db==null?void 0x0:_0x4486db['collabSubmitChangesetUrl'])==null?_0x1544df(0x163):_0x58e1a0,_0x2d7e10,_0x523e8c);try{await this[_0x1544df(0x3c7)][_0x1544df(0x2e7)](_0x3e1aac,{'body':_0x55a7dc});}catch(_0xe98d61){throw this[_0x1544df(0x35b)][_0x1544df(0x2b8)](_0x1544df(0x3ab),_0x1544df(0x315)),_0xe98d61;}}async[_0x2b4704(0x180)](_0x5a6731){const _0x130a38=_0x2b4704;let {unitID:_0x15beb1,from:_0x1235e9,to:_0x450c32,unitType:_0x65f03c}=_0x5a6731['data'];return(await this[_0x130a38(0xfb)][_0x130a38(0x1c7)]({'metadata':void 0x0},{'unitID':_0x15beb1,'type':_0x65f03c,'from':_0x1235e9,'to':_0x450c32}))['changesets'][_0x130a38(0x2c1)](_0x4b5aad=>((_0x4b5aad[_0x130a38(0x296)]===null||_0x4b5aad[_0x130a38(0x296)]===void 0x0)&&(_0x4b5aad[_0x130a38(0x296)]=[]),_0x4b5aad));}};ze=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x2,n[_0x2b4704(0x309)]),y(0x3,n[_0x2b4704(0x2ac)]),y(0x4,t[_0x2b4704(0x38c)])],ze);let V=class extends n[_0x2b4704(0x274)]{get['_socket'](){const _0x34be94=_0x2b4704;return this['_socket$'][_0x34be94(0x19f)]();}constructor(_0x5beab8,_0x4f45f0,_0x1a374e,_0x2d68c5,_0x245514,_0x1373f5){const _0x1edc18=_0x2b4704;super(),this[_0x1edc18(0x3de)]=_0x5beab8,this['_logService']=_0x4f45f0,this[_0x1edc18(0x1d8)]=_0x1a374e,this[_0x1edc18(0x18a)]=_0x2d68c5,this[_0x1edc18(0x38e)]=_0x245514,this[_0x1edc18(0x2a3)]=_0x1373f5,_(this,_0x1edc18(0x338),new a['BehaviorSubject'](void 0x0)),_(this,'socket$',this[_0x1edc18(0x338)][_0x1edc18(0x171)]()),_(this,_0x1edc18(0x32e),null),_(this,_0x1edc18(0x2b2),new Map()),_(this,'_status$',new a['BehaviorSubject'](0x0)),_(this,_0x1edc18(0x199),this[_0x1edc18(0x24d)][_0x1edc18(0x171)]()),_(this,_0x1edc18(0x1f2),!0x1),_(this,_0x1edc18(0x203),void 0x0),_(this,_0x1edc18(0x198),0x0),_(this,_0x1edc18(0x167),null),_(this,_0x1edc18(0x143),void 0x0),_(this,_0x1edc18(0x3a5),void 0x0),this[_0x1edc18(0xf7)]();}[_0x2b4704(0xf7)](){const _0x550296=_0x2b4704;this[_0x550296(0x2a3)]&&this[_0x550296(0x115)](this[_0x550296(0x2a3)][_0x550296(0x2bc)][_0x550296(0x169)](_0x2aafd0=>{const _0x5c1039=_0x550296;_0x2aafd0&&!this[_0x5c1039(0x280)]&&this[_0x5c1039(0x1ab)](),_0x2aafd0||this[_0x5c1039(0x104)]();}));}[_0x2b4704(0x2cf)](){const _0x4cbf4a=_0x2b4704;var _0x2f2eed;super[_0x4cbf4a(0x2cf)](),(_0x2f2eed=this['_socketMessageSubscription'])==null||_0x2f2eed[_0x4cbf4a(0x269)](),this['_socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](),this[_0x4cbf4a(0x3a6)](),this[_0x4cbf4a(0x1d2)](),this[_0x4cbf4a(0x2b2)]['forEach'](_0x57fb1d=>_0x57fb1d['dispose']()),this[_0x4cbf4a(0x2b2)]['clear'](),this[_0x4cbf4a(0x24d)][_0x4cbf4a(0x391)]();}async['requireSession'](_0x20e9ef){const _0x57c228=_0x2b4704;if(this[_0x57c228(0x2b2)][_0x57c228(0x1ae)](_0x20e9ef))return this[_0x57c228(0x2b2)][_0x57c228(0x287)](_0x20e9ef);this[_0x57c228(0x157)]();let _0x2cfb0a=this[_0x57c228(0x3de)][_0x57c228(0x2b6)](S,_0x20e9ef,this[_0x57c228(0x338)]['asObservable']());return this[_0x57c228(0x2b2)][_0x57c228(0x399)](_0x20e9ef,_0x2cfb0a),_0x2cfb0a;}[_0x2b4704(0x361)](_0x19dfa0){const _0x548b7f=_0x2b4704;let _0x19f1f5=this[_0x548b7f(0x2b2)][_0x548b7f(0x287)](_0x19dfa0);if(_0x19f1f5&&(this[_0x548b7f(0x2b2)]['delete'](_0x19dfa0),_0x19f1f5['close']()),!this[_0x548b7f(0x2b2)][_0x548b7f(0x155)]){var _0x41c697;(_0x41c697=this[_0x548b7f(0x280)])==null||_0x41c697[_0x548b7f(0x26d)]();}}[_0x2b4704(0x1ab)](){const _0x5063db=_0x2b4704;this[_0x5063db(0x198)]=0x0,this[_0x5063db(0x266)](),this['_tryReconnect']();}[_0x2b4704(0x266)](){const _0x1bfedc=_0x2b4704;this[_0x1bfedc(0x203)]!=null&&(clearTimeout(this[_0x1bfedc(0x203)]),this[_0x1bfedc(0x203)]=null);}async[_0x2b4704(0x151)](){const _0x3a164b=_0x2b4704;var _0x118c5d;let _0x288d47=this['_configService'][_0x3a164b(0x18e)](h),_0x12694b=(_0x118c5d=_0x288d47==null?void 0x0:_0x288d47[_0x3a164b(0x359)])==null?te:_0x118c5d,_0x160a42=await this[_0x3a164b(0x18a)][_0x3a164b(0x1b3)](_0x12694b);return this[_0x3a164b(0x32e)]=_0x160a42,_0x160a42;}async[_0x2b4704(0x157)](){const _0x425602=_0x2b4704;try{var _0x1f57cd,_0x4e4377;let _0x3877=(_0x1f57cd=(_0x4e4377=this[_0x425602(0x280)])==null?this[_0x425602(0x32e)]:_0x4e4377)==null?await this[_0x425602(0x151)]():_0x1f57cd;if(_0x3877){var _0x413ccc;let _0x25f7f6=_0x3877['send'];_0x3877[_0x425602(0x3d4)]=_0x55c504=>(_0x55c504[_0x425602(0x28f)]!==o[_0x425602(0x329)]['LEAVE']&&this[_0x425602(0x351)](),_0x25f7f6[_0x425602(0x2d2)](_0x3877,[_0x55c504])),(_0x413ccc=this[_0x425602(0x167)])==null||_0x413ccc[_0x425602(0x269)](),this[_0x425602(0x167)]=null,this['_socketMessageSubscription']=_0x3877['message$'][_0x425602(0x169)](_0x491c3c=>this['_onMessage'](_0x3877,_0x491c3c)),_0x3877['error$'][_0x425602(0x200)]((0x0,c[_0x425602(0x346)])(0x1))[_0x425602(0x169)](_0x284be3=>this[_0x425602(0x35b)][_0x425602(0x2b8)](_0x425602(0x1d3),_0x284be3)),_0x3877[_0x425602(0x211)][_0x425602(0x200)]((0x0,c[_0x425602(0x346)])(0x1))[_0x425602(0x169)](()=>{const _0x29ab98=_0x425602;this[_0x29ab98(0x259)](_0x3877);}),_0x3877[_0x425602(0x360)][_0x425602(0x200)]((0x0,c['take'])(0x1))[_0x425602(0x169)](_0x5a2633=>{const _0x18f051=_0x425602;this[_0x18f051(0x35b)]['debug'](_0x18f051(0x312),_0x18f051(0x354),_0x5a2633),this[_0x18f051(0x175)]();});}}catch(_0x403812){this[_0x425602(0x35b)][_0x425602(0x2b8)](_0x403812),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x1f6409){const _0x4a98f1=_0x2b4704;this['_logService'][_0x4a98f1(0x216)]('[CollaborationSessionService]',_0x4a98f1(0x12b)),_0x1f6409[_0x4a98f1(0x3d4)]({'cmd':o[_0x4a98f1(0x329)][_0x4a98f1(0x3dd)]}),this[_0x4a98f1(0x351)]();}['_onOffline'](){const _0x50af58=_0x2b4704;this['_socketReady']=!0x1,this[_0x50af58(0x32e)]=null,this[_0x50af58(0x24d)]['next'](0x2),this['_socket$']['next'](null),this[_0x50af58(0x3a6)](),this['_clearHeartbeatTimer']();}[_0x2b4704(0x175)](){const _0x547a5d=_0x2b4704;var _0x20d780;this['_onOffline'](),this[_0x547a5d(0x198)]<((_0x20d780=this['_configService'][_0x547a5d(0x18e)](_0x547a5d(0x101)))==null?0x3:_0x20d780)?(this['_collaborationUIEventService'][_0x547a5d(0x2b4)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x547a5d(0x352)]()):this[_0x547a5d(0x38e)][_0x547a5d(0x2b4)]({'id':'SOCKET_FAILED'});}[_0x2b4704(0x352)](){const _0x5ac28d=_0x2b4704;var _0x1c80b9;let _0x2e002b=this[_0x5ac28d(0x198)],_0x3d426b=this['_configService'][_0x5ac28d(0x18e)](h),_0x28bc7b=_0x2e002b===0x0?0x0:((_0x1c80b9=_0x3d426b==null?void 0x0:_0x3d426b[_0x5ac28d(0x306)])==null?0x4e20:_0x1c80b9)*0x2**_0x2e002b;this['_retryConnectingTimer']=setTimeout(()=>{const _0x14100b=_0x5ac28d;clearTimeout(this[_0x14100b(0x203)]),this[_0x14100b(0x203)]=null,this['_tryEnsureSocket']();},_0x28bc7b),this[_0x5ac28d(0x198)]+=0x1;}[_0x2b4704(0x341)](_0x1d1e27,_0x379e48){const _0x598469=_0x2b4704;let {cmd:_0xf91e9a}=_0x379e48;_0xf91e9a===o[_0x598469(0x329)][_0x598469(0x3dd)]&&!this[_0x598469(0x1f2)]&&(_0x1d1e27[_0x598469(0x303)]=_0x379e48[_0x598469(0x27c)][_0x598469(0x303)],this[_0x598469(0x338)][_0x598469(0x383)](_0x1d1e27),this[_0x598469(0x24d)][_0x598469(0x383)](0x3),this[_0x598469(0x1f2)]=!0x0,this[_0x598469(0x32e)]=null),_0xf91e9a===o[_0x598469(0x329)][_0x598469(0x2e3)]&&this[_0x598469(0x3a6)](),this[_0x598469(0x351)]();}[_0x2b4704(0x351)](){const _0x4f078d=_0x2b4704;var _0x5013a0;this[_0x4f078d(0x1d2)](),this[_0x4f078d(0x143)]=setTimeout(()=>this[_0x4f078d(0x35e)](),(_0x5013a0=this[_0x4f078d(0x1d8)]['getConfig'](_0x4f078d(0x183)))==null?0x7530:_0x5013a0);}[_0x2b4704(0x35e)](){const _0x471fd7=_0x2b4704;this[_0x471fd7(0x280)]['send']({'cmd':o[_0x471fd7(0x329)][_0x471fd7(0x2e3)]}),this[_0x471fd7(0x19d)]();}[_0x2b4704(0x19d)](){const _0x169f1c=_0x2b4704;var _0xeeb5d5;this[_0x169f1c(0x3a5)]=setTimeout(()=>this[_0x169f1c(0x175)](),(_0xeeb5d5=this[_0x169f1c(0x1d8)][_0x169f1c(0x18e)](_0x169f1c(0x204)))==null?ne:_0xeeb5d5);}[_0x2b4704(0x1d2)](){const _0x309131=_0x2b4704;this[_0x309131(0x143)]!=null&&(clearTimeout(this[_0x309131(0x143)]),this[_0x309131(0x143)]=null);}[_0x2b4704(0x3a6)](){const _0x558a9a=_0x2b4704;this[_0x558a9a(0x3a5)]!=null&&(clearTimeout(this[_0x558a9a(0x3a5)]),this['_timeoutTimer']=null);}};V=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x1,n[_0x2b4704(0x2ac)]),y(0x2,n[_0x2b4704(0x309)]),y(0x3,Le),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(v)),y(0x5,(0x0,n[_0x2b4704(0x1d7)])(Pe))],V);let H=class extends n[_0x2b4704(0x2a0)]{constructor(_0x44571b,_0x3aa842,_0xb9f3dd,_0xfcc535){const _0x43b3f9=_0x2b4704;var _0x423ed0;super(),this['_injector']=_0x44571b,this['_collabSessionService']=_0x3aa842,this['_configService']=_0xb9f3dd,this[_0x43b3f9(0x2fb)]=_0xfcc535,_(this,_0x43b3f9(0x3c8),new Map()),_(this,_0x43b3f9(0x1f6),new a[(_0x43b3f9(0x119))]()),_(this,'entityInit$',this[_0x43b3f9(0x1f6)][_0x43b3f9(0x171)]()),((_0x423ed0=this[_0x43b3f9(0x1d8)]['getConfig'](_0x43b3f9(0x3a2)))==null?void 0x0:_0x423ed0[_0x43b3f9(0x20e)])!==!0x1&&this[_0x43b3f9(0x28a)]();}[_0x2b4704(0x2cf)](){const _0x44fe9c=_0x2b4704;super[_0x44fe9c(0x2cf)](),this[_0x44fe9c(0x3c8)][_0x44fe9c(0x24e)](_0x51ee36=>_0x51ee36[_0x44fe9c(0x2cf)]()),this[_0x44fe9c(0x3c8)][_0x44fe9c(0x2de)]();}['getCollabEntity'](_0x6bc090){const _0x241178=_0x2b4704;var _0x79d75b;return(_0x79d75b=this[_0x241178(0x3c8)]['get'](_0x6bc090))==null?null:_0x79d75b;}[_0x2b4704(0x2d8)](_0xa9f999){const _0x35f40e=_0x2b4704;let _0x51cb9e=this[_0x35f40e(0x27f)](_0xa9f999);return _0x51cb9e?(0x0,a['of'])(_0x51cb9e):this[_0x35f40e(0x1f6)][_0x35f40e(0x200)]((0x0,c[_0x35f40e(0x245)])(_0x1bfc12=>_0x1bfc12[_0x35f40e(0x37b)]===_0xa9f999));}[_0x2b4704(0x138)](_0xe59fc9){const _0x534f85=_0x2b4704;return(0x0,a['firstValueFrom'])(this['getCollabEntity$'](_0xe59fc9)[_0x534f85(0x200)]((0x0,c['map'])(()=>void 0x0)));}['_init'](){const _0x28372d=_0x2b4704;this[_0x28372d(0x2fb)][_0x28372d(0x3c5)](n[_0x28372d(0x372)][_0x28372d(0x375)])[_0x28372d(0x200)]((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]),(0x0,c['delay'])(0x10))[_0x28372d(0x169)](async _0x6b7449=>{const _0xaffd79=_0x28372d;let _0x419627=_0x6b7449[_0xaffd79(0x202)][_0xaffd79(0x17c)](),_0x230d94=await this[_0xaffd79(0x122)](_0x419627,n[_0xaffd79(0x372)][_0xaffd79(0x375)]);this[_0xaffd79(0x3c8)][_0xaffd79(0x399)](_0x419627,_0x230d94);}),this[_0x28372d(0x2fb)][_0x28372d(0x3c5)](n[_0x28372d(0x372)][_0x28372d(0x299)])['pipe']((0x0,a['takeUntil'])(this[_0x28372d(0x37e)]),(0x0,c['delay'])(0x10))[_0x28372d(0x200)]((0x0,c[_0x28372d(0x245)])(_0x10321a=>!_0x10321a[_0x28372d(0x202)][_0x28372d(0x17c)]()[_0x28372d(0x1b6)]('__')))['subscribe'](async _0x315d3a=>{const _0x199bc3=_0x28372d;let _0x323790=_0x315d3a[_0x199bc3(0x202)][_0x199bc3(0x17c)](),_0x2a2760=await this[_0x199bc3(0x122)](_0x323790,n[_0x199bc3(0x372)]['UNIVER_DOC']);this['_entities'][_0x199bc3(0x399)](_0x323790,_0x2a2760);}),this[_0x28372d(0x2fb)]['getTypeOfUnitAdded$'](n[_0x28372d(0x372)]['UNIVER_SLIDE'])['pipe']((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]),(0x0,c['delay'])(0x10))[_0x28372d(0x169)](async _0x3a415e=>{const _0x129fb1=_0x28372d;let _0x2cbbef=_0x3a415e['unit'][_0x129fb1(0x17c)](),_0x1a1a2a=await this[_0x129fb1(0x122)](_0x2cbbef,n[_0x129fb1(0x372)]['UNIVER_SLIDE']);this[_0x129fb1(0x3c8)][_0x129fb1(0x399)](_0x2cbbef,_0x1a1a2a);}),this[_0x28372d(0x2fb)]['getTypeOfUnitAdded$'](n[_0x28372d(0x372)][_0x28372d(0x288)])[_0x28372d(0x200)]((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]),(0x0,c[_0x28372d(0x3bb)])(0x10))[_0x28372d(0x169)](async _0x37f167=>{const _0x1f01d2=_0x28372d;let _0xe6e3b9=_0x37f167['unit'][_0x1f01d2(0x17c)](),_0x54f5a5=await this[_0x1f01d2(0x122)](_0xe6e3b9,n[_0x1f01d2(0x372)][_0x1f01d2(0x288)]);this[_0x1f01d2(0x3c8)][_0x1f01d2(0x399)](_0xe6e3b9,_0x54f5a5);}),(0x0,a[_0x28372d(0x112)])(this[_0x28372d(0x2fb)][_0x28372d(0x1a6)](n['UniverInstanceType'][_0x28372d(0x375)]),this[_0x28372d(0x2fb)][_0x28372d(0x1a6)](n['UniverInstanceType'][_0x28372d(0x299)]),this['_univerInstanceService'][_0x28372d(0x1a6)](n[_0x28372d(0x372)][_0x28372d(0x397)]),this[_0x28372d(0x2fb)]['getTypeOfUnitDisposed$'](n['UniverInstanceType'][_0x28372d(0x288)]))[_0x28372d(0x200)]((0x0,a[_0x28372d(0x395)])(this[_0x28372d(0x37e)]))[_0x28372d(0x169)](_0x3b509c=>{const _0xfc9acb=_0x28372d;let _0x16dca5=_0x3b509c[_0xfc9acb(0x17c)](),_0x180c93=this['_entities'][_0xfc9acb(0x287)](_0x16dca5);_0x180c93&&(_0x180c93[_0xfc9acb(0x2cf)](),this[_0xfc9acb(0x3c8)]['delete'](_0x16dca5));});}async[_0x2b4704(0x122)](_0x3ce537,_0x43bc87){const _0x3d12db=_0x2b4704;let _0x447bfa=await this[_0x3d12db(0x3e3)][_0x3d12db(0x358)](_0x3ce537),_0x23d1b9=this[_0x3d12db(0x3de)]['createInstance'](this[_0x3d12db(0x357)](_0x43bc87),_0x3ce537,_0x43bc87,_0x447bfa);return await _0x23d1b9[_0x3d12db(0x233)](),this['_entityInit$'][_0x3d12db(0x383)](_0x23d1b9),_0x23d1b9;}[_0x2b4704(0x357)](_0x44efcf){const _0x36602b=_0x2b4704;switch(_0x44efcf){case n[_0x36602b(0x372)]['UNIVER_DOC']:return R;case n[_0x36602b(0x372)][_0x36602b(0x375)]:return z;case n['UniverInstanceType'][_0x36602b(0x397)]:return B;case n[_0x36602b(0x372)][_0x36602b(0x288)]:return Ne;default:throw Error(_0x36602b(0x15e)+_0x44efcf);}}};H=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n['Injector'])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(V)),y(0x2,n[_0x2b4704(0x309)]),y(0x3,n[_0x2b4704(0x3a9)])],H);var Be=_0x2b4704(0x1ff),Ve=_0x2b4704(0x1f5);let He=class extends n[_0x2b4704(0x274)]{constructor(_0xebc0bb,_0x27a165){const _0x525559=_0x2b4704;super(),this[_0x525559(0x2fb)]=_0xebc0bb,this[_0x525559(0x1d8)]=_0x27a165,this[_0x525559(0x28a)]();}[_0x2b4704(0x28a)](){const _0x2c62fa=_0x2b4704;this['disposeWithMe'](this[_0x2c62fa(0x2fb)][_0x2c62fa(0x173)][_0x2c62fa(0x169)](()=>{const _0x3193e2=_0x2c62fa;var _0x45c110;let _0x27cbc7=this[_0x3193e2(0x2fb)][_0x3193e2(0x227)](),_0x35727e=(_0x45c110=this['_configService']['getConfig'](_0x3193e2(0x279)))==null?_0x3193e2(0x39a):_0x45c110;_0x27cbc7 instanceof n['Workbook']&&(_0x35727e=_0x27cbc7[_0x3193e2(0x111)]),document[_0x3193e2(0x1f3)]=_0x35727e;}));}};He=b([y(0x0,n['IUniverInstanceService']),y(0x1,n['IConfigService'])],He);let Ue=function(_0x4bda7d){const _0x3c37cf=_0x2b4704;return _0x4bda7d[_0x3c37cf(0x28d)]=_0x3c37cf(0x28d),_0x4bda7d['UUID']=_0x3c37cf(0x22e),_0x4bda7d['BASE64']=_0x3c37cf(0x31a),_0x4bda7d;}({});const We=(0x0,n[_0x2b4704(0x1d9)])(_0x2b4704(0x3bc));let U=class{constructor(_0xe1952,_0x289d97,_0x2635ed){const _0x5095e0=_0x2b4704;this[_0x5095e0(0x3c7)]=_0xe1952,this[_0x5095e0(0x1d8)]=_0x289d97,this[_0x5095e0(0x2fb)]=_0x2635ed;}['getUploadOptions'](){const _0x26c5f8=_0x2b4704;var _0x2cbbe4;return(_0x2cbbe4=this[_0x26c5f8(0x121)]()[_0x26c5f8(0x32c)])==null?{}:_0x2cbbe4;}async[_0x2b4704(0xf8)](_0x58537d){const _0x14ae93=_0x2b4704;let _0x689e42=this['getUploadOptions']();if(Ge(_0x58537d,_0x689e42),_0x689e42[_0x14ae93(0x2fa)])return _0x689e42[_0x14ae93(0x2fa)](_0x58537d);let _0x1de905=await this[_0x14ae93(0x13c)](_0x58537d);return{'id':_0x1de905,'name':_0x58537d[_0x14ae93(0x111)],'mimeType':_0x58537d[_0x14ae93(0x15c)],'size':_0x58537d[_0x14ae93(0x155)],'sourceType':_0x14ae93(0x22e),'source':_0x1de905};}async[_0x2b4704(0x13c)](_0x1492fe){const _0x124617=_0x2b4704;let _0x35cced=this['_univerInstanceService'][_0x124617(0x227)](),_0x4be091=_0x35cced==null?void 0x0:_0x35cced[_0x124617(0x17c)]();if(!_0x4be091)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x57dc0b=new FormData();_0x57dc0b['append']('file',_0x1492fe);let _0x2ebd3e=this[_0x124617(0x22a)]()+'?size='+_0x1492fe[_0x124617(0x155)][_0x124617(0x21f)]()+_0x124617(0x342)+o[_0x124617(0x260)][_0x124617(0x2d4)]+_0x124617(0x1ba)+encodeURIComponent(_0x4be091),_0x5cd9fb=(await this[_0x124617(0x3c7)][_0x124617(0x2e7)](_0x2ebd3e,{'body':_0x57dc0b}))[_0x124617(0x1df)][_0x124617(0x113)];if(typeof _0x5cd9fb!=_0x124617(0x2e4)||!_0x5cd9fb)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x5cd9fb;}[_0x2b4704(0x22a)](){const _0x972169=_0x2b4704;var _0x48e615;return(_0x48e615=this[_0x972169(0x121)]()[_0x972169(0x345)])==null?_0x972169(0x137):_0x48e615;}[_0x2b4704(0x121)](){const _0x45685f=_0x2b4704;var _0x3517e8;return(_0x3517e8=this[_0x45685f(0x1d8)][_0x45685f(0x18e)](_0x45685f(0x3a2)))==null?{}:_0x3517e8;}};U=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(n['IConfigService'])),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x3a9)]))],U);function Ge(_0x18581e,_0x5b6651){const _0x51ac56=_0x2b4704;var _0x470d18;if(_0x5b6651['maxSize']!=null&&_0x18581e[_0x51ac56(0x155)]>_0x5b6651[_0x51ac56(0x1c6)])throw Error(_0x51ac56(0x168));if((_0x470d18=_0x5b6651[_0x51ac56(0x1b9)])!=null&&_0x470d18[_0x51ac56(0x2f8)]&&!_0x5b6651[_0x51ac56(0x1b9)][_0x51ac56(0x25a)](_0x12739f=>_0x18581e[_0x51ac56(0x15c)]===_0x12739f||_0x18581e[_0x51ac56(0x111)][_0x51ac56(0x32b)](_0x12739f)||_0x12739f[_0x51ac56(0x32b)]('/*')&&_0x18581e['type']['startsWith'](_0x12739f['slice'](0x0,-0x1))))throw Error(_0x51ac56(0x1eb));}let W=class{constructor(_0xc88757,_0x328f1a,_0x315705){const _0x14dd71=_0x2b4704;this['_configService']=_0xc88757,this[_0x14dd71(0x3c7)]=_0x328f1a,this['localeService']=_0x315705,this['init']();}[_0x2b4704(0x233)](){const _0x15d3d3=_0x2b4704;this[_0x15d3d3(0x3c7)][_0x15d3d3(0x3e2)]({'priority':0x1,'interceptor':(_0x278274,_0x1795d2)=>_0x1795d2(_0x278274)[_0x15d3d3(0x200)]((0x0,a[_0x15d3d3(0x2ed)])(async _0x134cf2=>{const _0x3f8f6a=_0x15d3d3;let _0x15292e=_0x134cf2;if(_0x15292e['status']===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x3f8f6a(0x177)](this[_0x3f8f6a(0x1e1)]['t'](_0x3f8f6a(0x15d)))){let _0x52cf35=window['encodeURIComponent'](window[_0x3f8f6a(0x3d7)][_0x3f8f6a(0x182)]);window[_0x3f8f6a(0x3d7)][_0x3f8f6a(0x182)]=this[_0x3f8f6a(0x2bd)]()+_0x3f8f6a(0x166)+_0x52cf35;}}return _0x15292e;}))});}[_0x2b4704(0x2bd)](){const _0x6fd0c=_0x2b4704;var _0x4e09c7;let _0x48c08f=this[_0x6fd0c(0x1d8)][_0x6fd0c(0x18e)](h);return(_0x4e09c7=_0x48c08f==null?void 0x0:_0x48c08f[_0x6fd0c(0x307)])==null?_0x6fd0c(0x305):_0x4e09c7;}};W=b([y(0x0,n[_0x2b4704(0x309)]),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n['LocaleService']))],W);let G=class extends n[_0x2b4704(0x274)]{constructor(_0x38fe20,_0x1e9f89){const _0x38bbcb=_0x2b4704;super(),this['_HTTPService']=_0x38fe20,this[_0x38bbcb(0x1d8)]=_0x1e9f89,_(this,_0x38bbcb(0x320),!0x1),this['_initMergeInterceptor']();}[_0x2b4704(0x12d)](){const _0x643248=_0x2b4704;let _0x421227=this;this[_0x643248(0x115)](this[_0x643248(0x161)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,u['MergeInterceptorFactory'])({'isMatch'(_0x210723){const _0x5834cf=_0x643248;var _0x21e2e7;if(_0x210723[_0x5834cf(0x335)]==='POST'&&(_0x21e2e7=_0x210723[_0x5834cf(0x25b)])!=null&&_0x21e2e7[_0x5834cf(0x1df)]){let {objectID:_0x67a76e,objectType:_0x1ffd8e}=_0x210723[_0x5834cf(0x25b)]['body']||{};if(!_0x67a76e||_0x1ffd8e===void 0x0)return!0x1;let _0x286115=_0x421227[_0x5834cf(0x394)]()+'/'+_0x1ffd8e+_0x5834cf(0x387)+_0x67a76e+_0x5834cf(0x362);if(_0x210723['url']===_0x286115)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x44014f){var _0x230b05;return(_0x230b05=_0x44014f['requestParams'])==null?void 0x0:_0x230b05['body'];},'mergeParamsToRequest'(_0x5a8397,_0x41fdc0){const _0x519db6=_0x643248;let _0x3ce0a5=_0x421227[_0x519db6(0x394)]()+_0x519db6(0x2ff),_0x171ba0=_0x5a8397[_0x519db6(0x3af)]((_0xb498e4,_0x174845)=>{const _0x193757=_0x519db6;let {unitID:_0x43697c,objectID:_0x346f74,objectType:_0x395007,actions:_0x32467f}=_0x174845;return _0xb498e4[_0x43697c]||(_0xb498e4[_0x43697c]={}),_0xb498e4[_0x43697c][_0x346f74]||(_0xb498e4[_0x43697c][_0x346f74]={'objectID':_0x346f74,'objectType':_0x395007,'actions':[]}),_0xb498e4[_0x43697c][_0x346f74][_0x193757(0x133)][_0x193757(0x384)](..._0x32467f),_0xb498e4;},{}),_0x13cd81=[];for(let _0x5ea6d4 in _0x171ba0)for(let _0x1ef046 in _0x171ba0[_0x5ea6d4]){let {actions:_0x48a6fb,objectType:_0x51c7b5}=_0x171ba0[_0x5ea6d4][_0x1ef046],_0x20d801=[...new Set(_0x48a6fb)];_0x13cd81[_0x519db6(0x384)]({'unitID':_0x5ea6d4,'objectID':_0x1ef046,'objectType':_0x51c7b5,'actions':_0x20d801});}return new u[(_0x519db6(0x1c5))]('POST',_0x3ce0a5,{'headers':_0x41fdc0[_0x519db6(0x381)],'withCredentials':_0x41fdc0[_0x519db6(0x3a4)],'responseType':_0x41fdc0[_0x519db6(0x11f)],'body':{'requests':_0x13cd81}});}},{'distributeResult'(_0x4920a8,_0x77fe1c){const _0x1a1757=_0x643248;let {objectActions:_0x228c18}=_0x4920a8;return _0x77fe1c[_0x1a1757(0x2c1)](_0x34550c=>{const _0x126844=_0x1a1757;let {unitID:_0x9e0205,objectID:_0xa90695,actions:_0x4df1c3}=_0x34550c,_0x1621a6=_0x228c18[_0x126844(0x12c)](_0x4336dd=>_0x4336dd['unitID']===_0x9e0205&&_0x4336dd[_0x126844(0x349)]===_0xa90695);return{'config':_0x34550c,'result':{'actions':_0x4df1c3['map'](_0x3fe048=>_0x1621a6==null?void 0x0:_0x1621a6[_0x126844(0x133)][_0x126844(0x12c)](_0x2492f4=>_0x2492f4['action']===_0x3fe048))['filter'](_0x32bd5c=>!!_0x32bd5c),'error':_0x4920a8[_0x126844(0x2b8)]}};});}})}));}[_0x2b4704(0x394)](){const _0x3181c2=_0x2b4704;var _0x2873cd;let _0x5af826=this['_configService']['getConfig'](h);return(_0x2873cd=_0x5af826==null?void 0x0:_0x5af826[_0x3181c2(0x22d)])==null?'/universer-api/authz':_0x2873cd;}async[_0x2b4704(0x159)](_0x4da63d){const _0x27e27d=_0x2b4704;let _0x1d789c=this['_getAPIPrefixPath']()+'/'+_0x4da63d[_0x27e27d(0x388)]+'/object';return(await this[_0x27e27d(0x161)][_0x27e27d(0x2e7)](_0x1d789c,{'body':_0x4da63d}))['body'][_0x27e27d(0x349)]||'';}async[_0x2b4704(0x24f)](_0x558422){const _0x687d91=_0x2b4704;let _0x4dfdf2=this[_0x687d91(0x394)]()+_0x687d91(0x10c);return(await this[_0x687d91(0x161)][_0x687d91(0x2e7)](_0x4dfdf2,{'body':_0x558422}))[_0x687d91(0x1df)][_0x687d91(0x149)];}async['update'](_0x3d237b){const _0x2f3416=_0x2b4704;var _0x53bb9e;let _0x2cb3e3=this[_0x2f3416(0x394)]()+'/'+_0x3d237b[_0x2f3416(0x388)]+_0x2f3416(0x387)+_0x3d237b[_0x2f3416(0x349)],_0xf5b776=await this[_0x2f3416(0x161)][_0x2f3416(0x1fe)](_0x2cb3e3,{'body':_0x3d237b});if((_0xf5b776==null||(_0x53bb9e=_0xf5b776[_0x2f3416(0x1df)])==null||(_0x53bb9e=_0x53bb9e[_0x2f3416(0x2b8)])==null?void 0x0:_0x53bb9e[_0x2f3416(0x1a4)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x2b4704(0x2a4)](_0xe3104d){const _0x5433eb=_0x2b4704;let _0xc641e2=this[_0x5433eb(0x394)]()+'/'+_0xe3104d[_0x5433eb(0x388)]+_0x5433eb(0x387)+_0xe3104d[_0x5433eb(0x349)]+_0x5433eb(0x362);return(await this[_0x5433eb(0x161)]['post'](_0xc641e2,{'body':_0xe3104d}))[_0x5433eb(0x1df)][_0x5433eb(0x133)];}async['batchAllowed'](_0x3a7459){const _0x33ec93=_0x2b4704;let _0x4c66ed=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x33ec93(0x161)][_0x33ec93(0x2e7)](_0x4c66ed,{'body':{'requests':_0x3a7459}}))[_0x33ec93(0x1df)]['objectActions'];}async[_0x2b4704(0x23d)](_0x191910){const _0x17c26e=_0x2b4704;let _0xc92044=this[_0x17c26e(0x394)]()+'/'+_0x191910['objectType']+_0x17c26e(0x30a),_0x26cd6f=await this[_0x17c26e(0x161)][_0x17c26e(0x2e7)](_0xc92044,{'body':_0x191910});return{'roles':_0x26cd6f['body'][_0x17c26e(0x3b0)],'actions':_0x26cd6f[_0x17c26e(0x1df)][_0x17c26e(0x133)]};}async[_0x2b4704(0x110)](_0x21de61){const _0x3a3ec7=_0x2b4704;let _0x75aa68=this[_0x3a3ec7(0x394)]()+'/collaborator';await this[_0x3a3ec7(0x161)]['delete'](_0x75aa68,{'params':{'collaboratorID':_0x21de61[_0x3a3ec7(0x189)],'objectID':_0x21de61[_0x3a3ec7(0x349)],'unitID':_0x21de61[_0x3a3ec7(0x37b)]}});}async[_0x2b4704(0x31d)](_0x530641){const _0x4737a5=_0x2b4704;let _0x2c8e9d=this['_getAPIPrefixPath']()+_0x4737a5(0x2cb);await this[_0x4737a5(0x161)][_0x4737a5(0x356)](_0x2c8e9d,{'body':_0x530641});}async['createCollaborator'](_0xb14e9c){const _0x1eb2df=_0x2b4704;let _0x2c321f=this[_0x1eb2df(0x394)]()+_0x1eb2df(0x2cb);await this[_0x1eb2df(0x161)][_0x1eb2df(0x2e7)](_0x2c321f,{'body':_0xb14e9c});}async[_0x2b4704(0x2f9)](_0x5f1a0a){const _0x7295b6=_0x2b4704;var _0x444fb8;let _0x5af1ea=this['_getAPIPrefixPath']()+_0x7295b6(0x2cb),_0x26e4a7=await this[_0x7295b6(0x161)][_0x7295b6(0x287)](_0x5af1ea,{'params':{'objectID':_0x5f1a0a[_0x7295b6(0x349)],'unitID':_0x5f1a0a[_0x7295b6(0x37b)]}});return this['setCfgEnableObjInherit']((_0x444fb8=_0x26e4a7[_0x7295b6(0x1df)][_0x7295b6(0x13a)])==null?!0x1:_0x444fb8),_0x26e4a7[_0x7295b6(0x1df)][_0x7295b6(0x150)];}async['putCollaborators'](_0x1eb60b){const _0x12800a=_0x2b4704;let _0x5cab57=this[_0x12800a(0x394)]()+_0x12800a(0x2cb);await this[_0x12800a(0x161)]['put'](_0x5cab57,{'body':_0x1eb60b});}['setCfgEnableObjInherit'](_0x5c94fe){this['_cfgEnableObjInherit']=_0x5c94fe;}[_0x2b4704(0x264)](){const _0x49bddc=_0x2b4704;return this[_0x49bddc(0x320)];}};G=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x309)]))],G);function Ke(_0x58e8f6){const _0x15ea2b=_0x2b4704;let _0x23e18e=atob(_0x58e8f6),_0x55e4bd=new Uint8Array(_0x23e18e['length']);for(let _0x4ac1b5=0x0;_0x4ac1b5<_0x23e18e[_0x15ea2b(0x2f8)];_0x4ac1b5++)_0x55e4bd[_0x4ac1b5]=_0x23e18e['charCodeAt'](_0x4ac1b5);return _0x55e4bd;}function qe(_0x4daf2a){const _0x58a2f8=_0x2b4704;let _0x1564b3='';for(let _0x3969d2=0x0;_0x3969d2<_0x4daf2a[_0x58a2f8(0x2f8)];_0x3969d2++)_0x1564b3+=String['fromCharCode'](_0x4daf2a[_0x3969d2]);return btoa(_0x1564b3);}function Je(_0x1534f2,_0x229ad5){const _0x735bc=_0x2b4704;let _0x5d97e5=Ke(_0x229ad5),_0x5546c2=(0x0,m['randomBytes'])(0x10);return qe((0x0,m[_0x735bc(0x2d5)])(_0x5546c2,(0x0,p['cbc'])(_0x5d97e5,_0x5546c2)[_0x735bc(0x129)]((0x0,m[_0x735bc(0x30f)])(_0x1534f2))));}function Ye(){const _0x378d4b=_0x2b4704;let _0x4eb602=(0x0,d['getGlobalObject'])()[_0x378d4b(0x281)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x4eb602){let _0x2c01bd={'time':Math[_0x378d4b(0x1cb)](Date[_0x378d4b(0x3b8)]()/0x3e8),'domain':location['hostname']};return Je(JSON[_0x378d4b(0x22b)](_0x2c01bd),_0x4eb602);}}let K=class{constructor(_0x1ca844){const _0x9029e1=_0x2b4704;this[_0x9029e1(0x3c7)]=_0x1ca844,this['_initRequestHeader']();}[_0x2b4704(0x380)](){const _0x504f18=_0x2b4704;this[_0x504f18(0x3c7)][_0x504f18(0x3e2)]({'interceptor':(_0x3a22fd,_0xc6d970)=>{const _0x5a69cc=_0x504f18;let _0x4d9ede=Ye();return _0x4d9ede&&_0x3a22fd[_0x5a69cc(0x381)]['set'](_0x5a69cc(0x2ae),_0x4d9ede),_0xc6d970(_0x3a22fd);}});}};K=b([y(0x0,(0x0,n['Inject'])(u[_0x2b4704(0x28e)]))],K);let q=class extends n[_0x2b4704(0x2a0)]{constructor(_0x10736c,_0x4e6ba9,_0x29ddd3){const _0x35234e=_0x2b4704;super(),this[_0x35234e(0x35b)]=_0x10736c,this['_snapshotService']=_0x4e6ba9,this['_localCacheService']=_0x29ddd3,_(this,'_unitInfo$',new a['BehaviorSubject'](null)),_(this,_0x35234e(0x27e),new a['Subject']()),_(this,'unitInfo$',this[_0x35234e(0x321)][_0x35234e(0x171)]()),_(this,'unitLoaded$',this['_unitLoaded$'][_0x35234e(0x171)]());}[_0x2b4704(0x2cf)](){const _0x1ed874=_0x2b4704;super[_0x1ed874(0x2cf)](),this[_0x1ed874(0x27e)][_0x1ed874(0x391)](),this['_unitInfo$'][_0x1ed874(0x391)]();}async['loadUnitOfRevision'](_0x4126b1,_0x2f30d9,_0x1c679d){const _0x30b55e=_0x2b4704;this[_0x30b55e(0x321)][_0x30b55e(0x383)]({'unitId':_0x4126b1,'type':_0x2f30d9});let _0x2b955c=null;switch(_0x2f30d9){case n[_0x30b55e(0x372)][_0x30b55e(0x375)]:_0x2b955c=await this[_0x30b55e(0x244)][_0x30b55e(0x30e)](_0x4126b1,_0x1c679d);break;case n[_0x30b55e(0x372)][_0x30b55e(0x299)]:_0x2b955c=await this[_0x30b55e(0x244)]['loadDoc'](_0x4126b1,_0x1c679d);break;case n[_0x30b55e(0x372)]['UNIVER_SLIDE']:_0x2b955c=await this[_0x30b55e(0x244)][_0x30b55e(0x36d)](_0x4126b1,_0x1c679d);break;case n[_0x30b55e(0x372)][_0x30b55e(0x288)]:_0x2b955c=await this[_0x30b55e(0x244)][_0x30b55e(0x3cb)](_0x4126b1,_0x1c679d);break;default:this[_0x30b55e(0x35b)][_0x30b55e(0x2b8)](_0x30b55e(0x21e),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x2b955c&&this[_0x30b55e(0x27e)][_0x30b55e(0x383)](_0x2b955c),_0x2b955c;}async[_0x2b4704(0x38d)](_0x2d6dd5,_0x255efc,_0x5f543d){const _0x36922a=_0x2b4704;var _0x201a6c;this[_0x36922a(0x321)][_0x36922a(0x383)]({'unitId':_0x2d6dd5,'type':_0x255efc,'subUnitId':_0x5f543d});let _0x710645=0x0,_0x5be9e0=await((_0x201a6c=this[_0x36922a(0x10b)])==null?void 0x0:_0x201a6c[_0x36922a(0x1de)](_0x2d6dd5));return _0x5be9e0&&(_0x5be9e0['awaitingChangeset']||_0x5be9e0[_0x36922a(0x296)][_0x36922a(0x2f8)]!==0x0)&&(_0x710645=_0x5be9e0[_0x36922a(0x2fd)]),_0x710645===0x0&&this[_0x36922a(0x35b)][_0x36922a(0x216)](_0x36922a(0x21e),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x36922a(0x1ac)](_0x2d6dd5,_0x255efc,_0x710645);}};q=b([y(0x0,n[_0x2b4704(0x2ac)]),y(0x1,(0x0,n['Inject'])(t[_0x2b4704(0x18f)])),y(0x2,(0x0,n[_0x2b4704(0x1d7)])(C))],q);let J=class{constructor(_0x1266fc,_0x2d8a3c,_0x2665f6){const _0x650a1e=_0x2b4704;this[_0x650a1e(0x3c7)]=_0x1266fc,this['_configService']=_0x2d8a3c,this['_univerInstanceService']=_0x2665f6,_(this,_0x650a1e(0x178),0x0),_(this,_0x650a1e(0x3c1),new a[(_0x650a1e(0x119))]()),_(this,_0x650a1e(0x181),this['_change$']),_(this,_0x650a1e(0x1e6),new Map());}[_0x2b4704(0x230)](_0x268517){const _0x5a3fa9=_0x2b4704;this[_0x5a3fa9(0x178)]=_0x268517,this['_change$'][_0x5a3fa9(0x383)](_0x268517);}['getImageSourceCache'](_0x570f63,_0x246742){const _0x14d955=_0x2b4704;if(_0x246742===f[_0x14d955(0x2f5)][_0x14d955(0x31a)]){let _0x5c7305=new Image();return _0x5c7305['src']=_0x570f63,_0x5c7305;}return this[_0x14d955(0x1e6)][_0x14d955(0x287)](_0x570f63);}['addImageSourceCache'](_0xe2aaeb,_0x1b4c57,_0x3a1529){const _0x574d68=_0x2b4704;_0x1b4c57===f[_0x574d68(0x2f5)][_0x574d68(0x31a)]||_0x3a1529==null||this['_imageSourceCache'][_0x574d68(0x399)](_0xe2aaeb,_0x3a1529);}async[_0x2b4704(0x142)](_0x207af3){const _0x20f49d=_0x2b4704;try{let _0x3c2c14=this[_0x20f49d(0x250)](this[_0x20f49d(0x14e)](),''+_0x207af3),_0x52db8a=(await this[_0x20f49d(0x3c7)][_0x20f49d(0x287)](_0x3c2c14))[_0x20f49d(0x1df)];if(_0x52db8a['error']&&_0x52db8a['error'][_0x20f49d(0x1a4)]===o['ErrorCode']['OK']){let _0x566924=(0x0,n[_0x20f49d(0x1bf)])(_0x52db8a[_0x20f49d(0x213)],this[_0x20f49d(0x25d)]());return Promise[_0x20f49d(0x271)](_0x566924);}return Promise[_0x20f49d(0x26a)](_0x52db8a[_0x20f49d(0x2b8)]);}catch(_0x523690){return Promise['reject'](_0x523690);}}async[_0x2b4704(0x2d6)](_0x38a0c8){const _0x24a8c9=_0x2b4704;let _0x4aef7b='';if(!f[_0x24a8c9(0x153)]['includes'](_0x38a0c8[_0x24a8c9(0x15c)]))return this[_0x24a8c9(0x1ca)](),Promise[_0x24a8c9(0x26a)](Error(f[_0x24a8c9(0x1d6)]['ERROR_IMAGE_TYPE']));if(_0x38a0c8[_0x24a8c9(0x155)]>(0x0,f[_0x24a8c9(0x144)])())return this[_0x24a8c9(0x1ca)](),Promise[_0x24a8c9(0x26a)](Error(f[_0x24a8c9(0x1d6)][_0x24a8c9(0x3b2)]));try{let _0x1ed795=new FormData();_0x1ed795[_0x24a8c9(0x20a)]('file',_0x38a0c8);let _0x14cfda=this[_0x24a8c9(0x2fb)]['getFocusedUnit'](),_0x14fc22=_0x14cfda==null?void 0x0:_0x14cfda[_0x24a8c9(0x17c)]();if(!_0x14fc22)throw Error(_0x24a8c9(0x14b));let _0x5df5da=this[_0x24a8c9(0x22a)]()+_0x24a8c9(0x195)+_0x38a0c8['size'][_0x24a8c9(0x21f)]()+_0x24a8c9(0x342)+o['FileSource']['UnitEmbedded']+'&assign='+encodeURIComponent(_0x14fc22),_0x14ebfa={'body':_0x1ed795},_0xff176b=(await this[_0x24a8c9(0x3c7)][_0x24a8c9(0x2e7)](_0x5df5da,_0x14ebfa))[_0x24a8c9(0x1df)];if(typeof _0xff176b[_0x24a8c9(0x113)]!=_0x24a8c9(0x2e4))return this[_0x24a8c9(0x1ca)](),Promise['reject'](Error(f[_0x24a8c9(0x1d6)]['ERROR_IMAGE']));_0x4aef7b=_0xff176b[_0x24a8c9(0x113)];}catch{return this[_0x24a8c9(0x1ca)](),Promise[_0x24a8c9(0x26a)](Error(f[_0x24a8c9(0x1d6)][_0x24a8c9(0x1e7)]));}return new Promise((_0x55a244,_0x4c7944)=>{const _0x54596a=_0x24a8c9;let _0x501017=new FileReader();_0x501017['readAsDataURL'](_0x38a0c8),_0x501017[_0x54596a(0x126)]=_0x1bb7b2=>{const _0x54026d=_0x54596a;var _0x3b3e2d;let _0x29e05e=(_0x3b3e2d=_0x1bb7b2['target'])==null?void 0x0:_0x3b3e2d[_0x54026d(0x14c)];if(_0x29e05e==null){this[_0x54026d(0x1ca)](),_0x4c7944(Error(f[_0x54026d(0x1d6)][_0x54026d(0x1e7)]));return;}_0x55a244({'imageId':(0x0,n[_0x54026d(0x310)])(0x6),'imageSourceType':f[_0x54026d(0x2f5)][_0x54026d(0x22e)],'source':_0x4aef7b,'base64Cache':_0x29e05e,'status':f[_0x54026d(0x1d6)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x2b4704(0x22a)](){const _0x41e5cf=_0x2b4704;var _0x48e784;let _0x228882=this[_0x41e5cf(0x1d8)][_0x41e5cf(0x18e)](h);return(_0x48e784=_0x228882==null?void 0x0:_0x228882[_0x41e5cf(0x345)])==null?_0x41e5cf(0x137):_0x48e784;}['_getSignURL'](){const _0x2175a5=_0x2b4704;var _0x26c087;let _0x58853e=this[_0x2175a5(0x1d8)]['getConfig'](h);return(_0x26c087=_0x58853e==null?void 0x0:_0x58853e[_0x2175a5(0x2d7)])==null?_0x2175a5(0x29a):_0x26c087;}['_getDownloadEndpointURL'](){const _0x3e79ff=_0x2b4704;var _0x111ff0;let _0x2abc54=this[_0x3e79ff(0x1d8)][_0x3e79ff(0x18e)](h);return(_0x111ff0=_0x2abc54==null?void 0x0:_0x2abc54[_0x3e79ff(0x3a7)])==null?location['origin']:_0x111ff0;}[_0x2b4704(0x250)](_0x19deb3,_0x51bf76){const _0x4d28e3=_0x2b4704;return _0x19deb3[_0x4d28e3(0x34a)](_0x4d28e3(0x242),_0x51bf76);}[_0x2b4704(0x1ca)](){const _0x27585b=_0x2b4704;--this['_waitCount'],this[_0x27585b(0x3c1)][_0x27585b(0x383)](this[_0x27585b(0x178)]);}};J=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)])),y(0x1,n['IConfigService']),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n['IUniverInstanceService']))],J);let Y=class{constructor(_0x20488f,_0x449928){const _0x570e5d=_0x2b4704;this[_0x570e5d(0x1d8)]=_0x20488f,this[_0x570e5d(0x161)]=_0x449928;}[_0x2b4704(0x394)](){const _0x42ebaf=_0x2b4704;var _0x232973;let _0x3047fb=this['_configService'][_0x42ebaf(0x18e)](h);return(_0x232973=_0x3047fb==null?void 0x0:_0x3047fb[_0x42ebaf(0x22d)])==null?'/universer-api/authz':_0x232973;}async[_0x2b4704(0x24f)](_0x462c86){const _0x239a5c=_0x2b4704;let _0x5dc5f1=this[_0x239a5c(0x394)]()+_0x239a5c(0x2cb);return{'list':[{'title':_0x239a5c(0x179),'mentions':(await this[_0x239a5c(0x161)][_0x239a5c(0x287)](_0x5dc5f1,{'params':{'objectID':_0x462c86['unitId'],'unitID':_0x462c86[_0x239a5c(0x19e)]}}))[_0x239a5c(0x1df)]['collaborators'][_0x239a5c(0x2c1)](_0x5ab443=>({'objectId':_0x5ab443['id'],'name':_0x5ab443[_0x239a5c(0x3c4)][_0x239a5c(0x111)],'metadata':{'icon':_0x5ab443[_0x239a5c(0x3c4)]['avatar']},'label':_0x5ab443[_0x239a5c(0x3c4)][_0x239a5c(0x111)],'objectType':n[_0x239a5c(0x3e4)][_0x239a5c(0x328)]})),'metadata':{},'type':n[_0x239a5c(0x3e4)]['PERSON']}]};}};function _0x637e(){const _0x4a54d1=['_showConflictNotification','CHANGESET_ACK','version','compose','routeKey','[OfflineState]:\x20received\x20changeset.','/block/','getFocusedUnit','UnitStatus','_replayCachedMutations','_getUploadFileURL','stringify','AwaitingWithPendingState','authzUrl','UUID','fetching\x20missing\x20changesets\x20from\x20','setWaitCount','/unit/','[SyncedState]:\x20received\x20rejection.','init','OfflineState','ITelemetryService','__splitChunk__','_onLocalMutation','_state$','JSONX','shareReplay','_scheduleCompleteTimestamp','_config','listRoles','editing\x20status\x20changed\x20to','_toggleOffline','transformUndoRedo','DocCollaborationEntity','{fileID}','getResourcesRequest','_snapshotService','filter','originalMeta','deserializeToCombResponse','_clearLocalCache','LIVESHARE_NEW_HOST','max','collaboration-client.local-cache-service','&to=','_status$','forEach','list','_replaceFileID','_createInitialState','enableOfflineEditing','_resendTimeout','639663ObHVFe','_onUserLeave','transformChangesets','COMMENT_UPDATE','SetSelectionsOperation','_onConnectionOpen','some','requestParams','decorate','_getDownloadEndpointURL','_compressMutationService','_commentUpdate$','FileSource','SYNCED','UniverCollaborationClientPlugin','awaiting_with_pending','getCfgEnableObjInherit','_changesetSessionId','_clearRetryConnectingTimer','splice','from','unsubscribe','reject','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','ONLINE','close','onRemoteAck','_scheduleCollaborationTimeoutTimer','FETCH_MISSING','resolve','88810RrhSDk','_state','Disposable','RETRY_CONNECTING_MAX_COUNT_KEY','OTHER_CLIENTS_EDITING','_docStateChangeManagerService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','DEFAULT_FILE_NAME','onMissedChangesetFetched','_checkMissing','data','getAllMembers','_unitLoaded$','getCollabEntity','_socket','__Key__','toggleOffline','_telemetryInfo','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_roomCreated$','c2Prime','get','UNIVER_BASE','DEFAULT_WS_SESSION_TICKET_URL','_init','SHOULD_CLOSE_CONN','_onJoinRoomEvent','URL','HTTPService','cmd','_sender','ISingleActiveUnitService','RichTextEditingMutation','m2Prime','_localeService','updateMember','mutations','_onFetchMissResult','LIVESHARE_REQUEST_HOST','UNIVER_DOC','/universer-api/file/{fileID}/sign-url','_acknowledgeAwaiting','iterator','4268950PELLDH','PENDING','/resources','RxDisposable','[UniverCollaborationClientPlugin]','_onRecvEvent','_networkConditionService','allowed','NEW_CHANGESETS','SheetsSelectionsService','_createHandler','_updateLocalCache','_commentService','csRejEvent','CollaborationSessionService','ILogService','_remoteChangesetQueue','x-univer-host','LEAVE','_transitionLocked','[CollaborationEntity]','_sessions','[SyncedState]:\x20received\x20acknowledgement.','emitEvent','setConfig','createInstance','default','error','_transformRemoteChangesetByIMECache','workbook','toDisposable','online$','_getLoginPath','_telemetryService','SNAPSHOT_URL_KEY','_transformStateCache','map','newCsEvent','c1Prime','_members$','transformMutationsWithChangeset','_clearScheduledTask','_onRemoteChangeset','onSyncEditingCollabCursor','UPDATE_PERMISSION_OBJ','commentUpdate$','/collaborator','_singleActiveUnitService','appendMutation','getWorkbookSelections','dispose','_executeRemoteChangeset','CollaborationAttachmentIoService','apply','[PendingState]:\x20received\x20acknowledgement.','UnitEmbedded','concatBytes','saveImage','signUrlServerUrl','getCollabEntity$','_permissionService','getMember','sessionStatus','fetchThroughInterceptors','connection\x20error','clear','_collaborationSessionService','LIVESHARE_TERMINATE','enableAuthServer','CommandType','HEARTBEAT','string','_startTelemetryCollaborationNewChangeset','EnsureSlideMasterPageMutation','post','_collaborationTimeoutTimer','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','encode','onTransformSelections','call','concatMap','_sendingTimer','AddSlidePageMutation','IContextService','_transformIMECache','CollaborationUIEventService','getUnitType','_instanceService','ImageSourceType','INGEST','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','length','listCollaborators','upload','_univerInstanceService','getLocalCacheKey','rev','_onRemoteRetry','/-/object/-/batch_allowed','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','mapDocumentTypeToUniverInstanceType','JOINING','memberID','ISocketService','/universer-api/oidc/authpage','retryConnectingInterval','loginUrlKey','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','IConfigService','/role','CollaborationEvent','SUBMIT_CHANGESET','RECV','loadSheet','utf8ToBytes','generateRandomId','onRemoteRej','[CollaborationSessionService]','catch','/universer-api/uniscript','submit\x20changeset\x20error!','IDLE','PERMISSION_REJ','JOIN','onTransformRemoteChangesetByIMECache','BASE64','onTransformIME','enableSingleActiveInstanceLock','updateCollaborator','delete','pluginName','_cfgEnableObjInherit','_unitInfo$','session.room-full','[PendingState]:\x20received\x20rejection.','IMentionIOService','_toggleOnline','_syncEditingCollabCursor','_resendTimer','PERSON','CombCmd','_onUserJoin','endsWith','attachment','FAIL','_candidateSocket','saveSnapshot','_maxTotalRetryTimeout','function','_getSendChangesetTimeout','Quantity','_handlerCallback','method','_exhaustRemoteChangesetQueue','changesets','_socket$','HEARTBEAT_TIMEOUT_KEY','updateOfflineData','LocalUndoRedoService','COMPRESS_MUTATION_SEND','transformSelections','_initCloseConn','ILocalCacheService','_commandService','_onMessage','&source=','_type','isArray','uploadFileServerUrl','take','ICollaborationSocketService','leaveEvent','objectID','replace','toStringTag','range','[OfflineState]:\x20received\x20acknowledgement.','_event$','_onConflict','startTime','_rescheduleHeartbeat','_tryReconnect','270366CVTtWd','socket\x20close','356582jPZpOV','patch','_getCtorByUniverInstanceType','requireSession','collabWebSocketUrl','message$','_logService','USERS_LEAVE','CHANGESET_SHOULD_RETRY','_sendHeartbeat','synced','close$','closeSession','/allowed','error$','univer-pro.collaboration-client.single-active-unit-service','onTransformRemoteChangesetByStateCache','/fetchmissing?from=','BehaviorSubject','ws://127.0.0.1:8000/universer-api/comb/connect','every','_transformUndoredo','/rev/','_changesetReqId','loadSlide','toggleOnline','_revisionService','_getUndoStack','CmdRspCode','UniverInstanceType','_substituteRedoStack','NO_OTHER_CLIENTS_EDITING','UNIVER_SHEET','IPermissionService','_pendingMutations','ICommandService','Module','textEncoder','unitID','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','AuthzIoHttpService','dispose$','transformStack\x20failed!','_initRequestHeader','headers','[CollaborationState]:\x20apply\x20error!','next','push','editingUnit','textRanges','/object/','objectType','_resendWithTimeout','_onCombEvent','PERMISSION_DENIED','ISnapshotServerService','loadUnit','_collaborationUIEventService','CommentService','initWorkbookPermissionChange','complete','getCurrentRevOfUnit','_getRedoStack','_getAPIPrefixPath','takeUntil','removeMember','UNIVER_SLIDE','prototype','set','Univer','getCurrentUser','fromCollab','selections','onStateChange','Injector','registerDependencies','CHANGESET_REJ','collaboration-client.config','_members','withCredentials','_timeoutTimer','_clearTimeoutTimer','downloadEndpointUrl','_awaitingChangeset','IUniverInstanceService','session','[CollaborationSession]','event$','_userManagerService','UNISCRIPT_RUN','reduce','roles','awaitingChangeset','ERROR_EXCEED_SIZE','getCurrentSelections','members','_registerDependencies','UNIVER_COLLABORATION_CLIENT_PLUGIN','onRemoteChangeset','now','_lockTransition','_acknowledgedAwaitingRevision','delay','base-ui.attachment-io.service','[PendingState]:\x20unhandled\x20univer\x20type:\x20','equals','params','localCacheService','_change$','_stopTelemetryCollaborationNewChangeset','snapshot','subject','getTypeOfUnitAdded$','_disableEditing','_httpService','_entities','_eventService','constructor','loadBase','_transformStack','\x20-\x20','CollaborationSocketService','updateSnapshot','touchDependencies','JOIN_ROOM_PERMISSION_DENIED','parseProtocolChangeset','_onRemoteRejected','send','sessionStatus$','CollaborationController','location','_queuedRemoteChangesets','MUTATION','liveShareOperation','Error\x20on\x20receiving\x20event','DocStateChangeManagerService','HELLO','_injector','HEARTBEAT_INTERVAL_KEY','isTransformMutationsWithChangesetSuccess','awaiting','registerHTTPInterceptor','_collabSessionService','MentionType','_transformRemoteChangesetByStateCache','onSendChangeset','Tools','_memberService','onCommentUpdate','_listenToNetworkCondition','saveAttachment','session.join-failed','onlyLocal','_snapshotServerService','copyFileMeta','_incrementRevisionNumber','4dLVvNX','getInterceptPoints','IUndoRedoService','RETRY_CONNECTING_MAX_COUNT','_emitMembers','_transformSelections','_onOffline','reqId','_unlockTransition','_getAPIPrefix','capture','ITransformService','onMutationExecutedForCollab','_localCacheService','/-/object/list','setShowComponents','_updateStatus','/new_changes','deleteCollaborator','name','merge','FileId','JOIN_ROOM_NOT_EXISTS','disposeWithMe','sendChangesetTimeout','WorkbookEditablePermission','not_collab','Subject','ThresholdInterceptorFactory','SessionStatus','MentionIoHttpService','state','offline','responseType','onTransformState','_getConfig','_startCollaboration','_handler','NOT_COLLAB','GLOBAL_ROOMS_CNT_EXCEEDS','onload','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','JOIN_ROOM_FULL','encrypt','onLocalMutation','socket\x20open.','find','_initMergeInterceptor','joinRsp','_sessionStatus$','socketService','MSG_FOR_ERROR','CompressMutationService','actions','SyncedState','unit-cache-','RevisionService','/universer-api/stream/file/upload','readyForCollab','CONFLICT','cfgEnableObjInherit','pauseCollaboration','_upload','IImageIoService','/universer-api/user/session-ticket','_undoRedoService','CollaborationUIEventId','UniverNetworkPlugin','getImage','_sendHeartbeatTimer','getDrawingImageAllowSize','getMemberID','\x20to\x20','PendingState','_transformAndApplyRemoteChangeset','objects','_clearCollaborationTimeoutTimer','unitId\x20is\x20not\x20found','result','CollaborationEntity','_getSignURL','_sheetTransformSelectionsService','collaborators','_createSocket','findIndex','DRAWING_IMAGE_ALLOW_IMAGE_LIST','InsertSheetMutation','size','PSEUDO_FETCH_MISSING_RESULT','_tryEnsureSocket','INetworkConditionService','create','_handleRemoteChangesets','LIVESHARE_FETCH_OPERATIONS','type','collaboration-client.auth.needGotoLoginAlert','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','mergeOverrideWithDependencies','session.room-permission-denied','_HTTPService','AttachmentSourceType','/universer-api/comb','commentUpdateEvent','onRemoteRetry','?url=','_socketMessageSubscription','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','subscribe','_updateState','SOCKET_FAILED','_joinRoom','stopTime','_roomMembers','_schedule','getActiveSheet','asObservable','MoveSlidePageMutation','focused$','getSnapshotAPIPath','_onConnectionFailed','CLOSE_ROOM','confirm','_waitCount','People','LIVESHARE_OPERATION','slice','getUnitId','userID','saveSheetBlock','isTransformChangesetsSuccess','_fetchMissChangesets','change$','href','HEARTBEAT_INTERVAL','EmptyMutationInfo','interceptor','collaMsg','univer-pro.collaboration-client.network-condition.service','getRoom','collaboratorID','_socketService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','fetchMiss','CollaborationSession','getConfig','SnapshotService','indexOf','_transformService','fetch_missing','_applyRemoteChangeset','state$','?size=','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','revision','_retryCount','status$','pending','OFFLINE','\x0aCurrent:\x20','_waitForHeartbeatResponse','unitId','getValue','_substituteUndoStack','values','sid','LocaleService','code','status','getTypeOfUnitDisposed$','unknown','USERS_ENTER','override','text-x','reconnect','loadUnitOfRevision','OTHER_CLIENT_EDITING','has','onMissingChangesets','isInternalEditorID','number','conflict','createSocket','_unitID','_acknowledgeAwaitingIfReady','startsWith','duration','\x0aAfter:\x20','accept','&assign=','DependentOn','CollaborationImageIoService','_createInitialStateImpl','updatePermissionPoint','resolveWithBasePath','2378656swAOBi','_collaborationPaused','parseChangesetToProtocol','getTime','9CKArqC','HTTPRequest','maxSize','fetchMissingChangesets','incrementRevOfUnit','isTransformMutationsWithChangesetFailure','_decreaseWaiting','floor','DisposableCollection','onStarting','Inject','94094gZRmHP','_undoStacks','b64DecodeUnicode','_clearHeartbeatTimer','[CollaborationSessionService]:\x20socket\x20error','ApplyBaseJson1Mutation','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','ImageUploadStatusType','Optional','_configService','createIdentifier','eventID','_initUnitPermissionChange','[CollaborationUndoRedoService]','defineProperty','loadOfflineData','body','sheets','localeService','_isEchoedAwaitingChangeset','csShouldRetryEvent','getLatestCsReqIdBySid','_shouldReportTelemetry','_imageSourceCache','ERROR_IMAGE','_submitChangeset','SOCKET_FAILED_RETRY','_clearRedo','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','ReplaySubject','object','waitForRoom$','_onRemoteACK','baseRev','_getCurrentRevision','_socketReady','title','OPTIONAL','1.0.0-alpha.1','_entityInit$','executeCommand','univer-pro.collaboration-client-socket-service','roomInfos','min','LOCAL_CACHE_INTERVAL','[OfflineState]:\x20received\x20rejection.','SUBMIT_CHANGESET_TIMEOUT','put','@univerjs-pro/collaboration-client','pipe','symbol','unit','_retryConnectingTimer','HEARTBEAT_TIMEOUT','UPDATE_CURSOR','COMPRESS_MUTATION_APPLY','liveShareNewHost','isPermissionRej','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','append','updatePermissionObjEvent','add','JOIN_ROOM_FAILED','enableCollaboration','MemberService','_isPermissionRej','open$','UniverCollaborationPlugin','url','_throwTelemetryCollaborationNewChangeset','IAuthzIoService','debug','getSheetId','7iZtHbQ','_clearUndo','resend','backupOfflineData','shouldCloseConn','CollaborativeUndoRedoService','[DataLoaderService]','toString'];_0x637e=function(){return _0x4a54d1;};return _0x637e();}Y=b([y(0x0,(0x0,n['Inject'])(n['IConfigService'])),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u['HTTPService']))],Y);let X=class extends n['RxDisposable']{constructor(_0x564fcb,_0x58ec1e,_0x5aa675,_0x26e4ed,_0x12e1b5){const _0x8cdf20=_0x2b4704;super(),this['_injector']=_0x564fcb,this[_0x8cdf20(0x2fb)]=_0x58ec1e,this[_0x8cdf20(0x2d9)]=_0x5aa675,this[_0x8cdf20(0x2df)]=_0x26e4ed,this[_0x8cdf20(0x38e)]=_0x12e1b5,this[_0x8cdf20(0x1db)](),this[_0x8cdf20(0x33e)]();}['_initCloseConn'](){const _0xeb245f=_0x2b4704;let _0x30f94a=async _0x2dc2b1=>{const _0x3477d9=_0x2cb1;(await this['_collaborationSessionService'][_0x3477d9(0x358)](_0x2dc2b1))[_0x3477d9(0x3ac)]['pipe']((0x0,c[_0x3477d9(0x245)])(_0x50d68f=>_0x50d68f[_0x3477d9(0x1da)]===t[_0x3477d9(0x30b)][_0x3477d9(0x28b)]),(0x0,c[_0x3477d9(0x395)])(this[_0x3477d9(0x37e)]))[_0x3477d9(0x169)](_0x2b6fe8=>{const _0x40bf39=_0x3477d9;let {reason:_0x29a0e1}=_0x2b6fe8[_0x40bf39(0x27c)];this[_0x40bf39(0x38e)][_0x40bf39(0x2b4)]({'id':_0x40bf39(0x176),'data':_0x29a0e1}),this[_0x40bf39(0x2d9)][_0x40bf39(0x1be)](new i[(_0x40bf39(0x117))](_0x2dc2b1)['id'],!0x1),this['_collaborationSessionService'][_0x40bf39(0x361)](_0x2dc2b1);});};(0x0,a[_0xeb245f(0x112)])(this[_0xeb245f(0x2fb)][_0xeb245f(0x3c5)](n[_0xeb245f(0x372)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](n[_0xeb245f(0x372)][_0xeb245f(0x299)]),this[_0xeb245f(0x2fb)][_0xeb245f(0x3c5)](n['UniverInstanceType']['UNIVER_BASE']))['pipe']((0x0,c[_0xeb245f(0x2c1)])(_0x556f8f=>_0x556f8f[_0xeb245f(0x202)][_0xeb245f(0x17c)]()),(0x0,c[_0xeb245f(0x245)])(_0x4684cb=>!(0x0,n['isInternalEditorID'])(_0x4684cb)),(0x0,c[_0xeb245f(0x395)])(this[_0xeb245f(0x37e)]))[_0xeb245f(0x169)](_0xed4db3=>{_0x30f94a(_0xed4db3);});}['_initUnitPermissionChange'](){const _0x202c6f=_0x2b4704;let _0x31c862=async _0xbf7821=>{const _0x142c63=_0x2cb1;let _0x1ae8da=await this[_0x142c63(0x2df)]['requireSession'](_0xbf7821),_0x5ee916=this[_0x142c63(0x3de)]['get'](i['SheetPermissionInitController']);_0x1ae8da[_0x142c63(0x3ac)]['pipe']((0x0,c[_0x142c63(0x245)])(_0x5a20cf=>_0x5a20cf[_0x142c63(0x1da)]===t[_0x142c63(0x30b)][_0x142c63(0x2c9)]),(0x0,c[_0x142c63(0x395)])(this[_0x142c63(0x37e)]))[_0x142c63(0x169)](_0x2cafb4=>{const _0x1da312=_0x142c63;let {objectId:_0x143785}=_0x2cafb4[_0x1da312(0x27c)];_0x143785===_0xbf7821?_0x5ee916[_0x1da312(0x390)](_0xbf7821):_0x5ee916['refreshPermission'](_0xbf7821,_0x143785);});};(0x0,a[_0x202c6f(0x112)])(this[_0x202c6f(0x2fb)][_0x202c6f(0x3c5)](n[_0x202c6f(0x372)][_0x202c6f(0x375)]))[_0x202c6f(0x200)]((0x0,c[_0x202c6f(0x2c1)])(_0x2f5230=>_0x2f5230[_0x202c6f(0x202)][_0x202c6f(0x17c)]()),(0x0,c[_0x202c6f(0x245)])(_0x57456b=>!(0x0,n[_0x202c6f(0x1b0)])(_0x57456b)),(0x0,c[_0x202c6f(0x395)])(this[_0x202c6f(0x37e)]))[_0x202c6f(0x169)](_0x416423=>{_0x31c862(_0x416423);});}};X=b([y(0x0,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x1,n[_0x2b4704(0x3a9)]),y(0x2,n[_0x2b4704(0x376)]),y(0x3,(0x0,n['Inject'])(V)),y(0x4,(0x0,n[_0x2b4704(0x1ce)])(v))],X);let Z=class{constructor(_0x597a03,_0x1aaee5){const _0x82fd1c=_0x2b4704;this[_0x82fd1c(0x1d8)]=_0x597a03,this['_httpService']=_0x1aaee5;}async['getUnitOnRev'](_0x5639c4,_0x4bf5c7){const _0x3b4829=_0x2b4704;var _0x2507c7;let {unitID:_0x38fb77,type:_0x529e8b,revision:_0x37ce3d=0x0}=_0x4bf5c7,_0x401c7d=this[_0x3b4829(0x174)]()+'/'+_0x529e8b+_0x3b4829(0x231)+_0x38fb77+_0x3b4829(0x36b)+_0x37ce3d,_0x1a2682=(await this[_0x3b4829(0x3c7)][_0x3b4829(0x287)](_0x401c7d))['body'],_0x453387=(_0x2507c7=_0x1a2682[_0x3b4829(0x3c3)])==null?void 0x0:_0x2507c7[_0x3b4829(0x2ba)];if(_0x453387){let _0x433545=_0x453387==null?void 0x0:_0x453387[_0x3b4829(0x246)];_0x453387[_0x3b4829(0x246)]=t[_0x3b4829(0x37a)][_0x3b4829(0x2ea)]((0x0,t[_0x3b4829(0x1d1)])(_0x433545)),Object['entries'](_0x453387[_0x3b4829(0x1e0)])[_0x3b4829(0x24e)](([,_0x15a59d])=>{const _0x478d6d=_0x3b4829;let _0x41e524=_0x15a59d[_0x478d6d(0x246)];_0x15a59d[_0x478d6d(0x246)]=t[_0x478d6d(0x37a)][_0x478d6d(0x2ea)]((0x0,t[_0x478d6d(0x1d1)])(_0x41e524));});}return _0x1a2682;}async['getSheetBlock'](_0x5c5e75,_0x2173a2){const _0x5bce18=_0x2b4704;let {unitID:_0x140de9,type:_0x3cf6c2,blockID:_0x1a1b98}=_0x2173a2,_0x513634=this['_getAPIPrefix']()+'/'+_0x3cf6c2+'/unit/'+_0x140de9+'/block/'+_0x1a1b98;return(await this[_0x5bce18(0x3c7)][_0x5bce18(0x287)](_0x513634))['body'];}async['getDeserializedSheetBlock'](_0x229274,_0x28670c){const _0x15f871=_0x2b4704;let {unitID:_0x41f1f4,type:_0x2ce8e4,blockID:_0x55f37b}=_0x28670c,_0x81c4ab=this[_0x15f871(0x107)]()+_0x15f871(0x226)+_0x2ce8e4+_0x15f871(0x231)+_0x41f1f4+_0x15f871(0x226)+_0x55f37b;return(await this['_httpService'][_0x15f871(0x287)](_0x81c4ab))[_0x15f871(0x1df)];}async[_0x2b4704(0x1c7)](_0x16d9fe,_0x252b1d){const _0x5c074a=_0x2b4704;let {unitID:_0x4fc28e,type:_0xfe1c5f,from:_0x3c3031,to:_0x224082}=_0x252b1d,_0x3317df=this['_getAPIPrefix']()+'/'+_0xfe1c5f+_0x5c074a(0x231)+_0x4fc28e+_0x5c074a(0x366)+_0x3c3031+_0x5c074a(0x24c)+_0x224082;return(await this[_0x5c074a(0x3c7)]['get'](_0x3317df))[_0x5c074a(0x1df)];}['getSnapshotAPIPath'](){const _0x5e21f7=_0x2b4704;var _0x5315ef;return(_0x5315ef=this[_0x5e21f7(0x1d8)][_0x5e21f7(0x18e)](_0x5e21f7(0x2bf)))==null?this['_getAPIPrefix']():_0x5315ef;}[_0x2b4704(0x107)](){const _0x54537b=_0x2b4704;var _0x522ee1;let _0x3b9d16=this[_0x54537b(0x1d8)][_0x54537b(0x18e)](h);return(_0x522ee1=_0x3b9d16==null?void 0x0:_0x3b9d16['snapshotServerUrl'])==null?'/universer-api/snapshot':_0x522ee1;}async[_0x2b4704(0x243)](_0x52343f,_0x503e98){const _0x3e24c0=_0x2b4704;let _0x515255='/universer-api/snapshot/'+_0x503e98['type']+_0x3e24c0(0x231)+_0x503e98[_0x3e24c0(0x37b)]+_0x3e24c0(0x29f);return(await this[_0x3e24c0(0x3c7)][_0x3e24c0(0x287)](_0x515255,{'params':{'resourceId':JSON['stringify'](_0x503e98['resourceIDs'])}}))[_0x3e24c0(0x1df)];}[_0x2b4704(0x32f)](){const _0x34b71=_0x2b4704;throw Error(_0x34b71(0x209));}[_0x2b4704(0x3cf)](){const _0x33a63d=_0x2b4704;throw Error(_0x33a63d(0x209));}[_0x2b4704(0x17e)](){const _0x44abf3=_0x2b4704;throw Error(_0x44abf3(0x209));}['saveChangeset'](){const _0x4e1454=_0x2b4704;throw Error(_0x4e1454(0x209));}[_0x2b4704(0xfc)](){const _0x2781c2=_0x2b4704;throw Error(_0x2781c2(0x209));}[_0x2b4704(0x1e4)](){const _0x22447e=_0x2b4704;throw Error(_0x22447e(0x209));}};Z=b([y(0x0,n[_0x2b4704(0x309)]),y(0x1,(0x0,n[_0x2b4704(0x1ce)])(u[_0x2b4704(0x28e)]))],Z);let Q=class extends n[_0x2b4704(0x33b)]{constructor(_0x36ea1e,_0x45d89b,_0x2d1150,_0x8e1eaa,_0x9c8ea5){const _0x3fd510=_0x2b4704;super(_0x36ea1e,_0x45d89b,_0x2d1150),this[_0x3fd510(0x191)]=_0x8e1eaa,this[_0x3fd510(0x35b)]=_0x9c8ea5;}[_0x2b4704(0x240)](_0x3019ab,_0x485cf8){const _0x563aeb=_0x2b4704;let _0x4e6322=this[_0x563aeb(0x370)](_0x3019ab);if(_0x4e6322)try{let _0x5c225c=this[_0x563aeb(0x3cc)](_0x4e6322,_0x485cf8);this[_0x563aeb(0x1a0)](_0x3019ab,_0x5c225c);}catch(_0x536858){this['_logService'][_0x563aeb(0x2b8)](_0x563aeb(0x1dc),_0x536858),this[_0x563aeb(0x219)](_0x3019ab);}let _0x4deba0=this[_0x563aeb(0x393)](_0x3019ab);if(_0x4deba0)try{let _0x5eba99=this[_0x563aeb(0x3cc)](_0x4deba0,_0x485cf8);this[_0x563aeb(0x373)](_0x3019ab,_0x5eba99);}catch(_0x49c99a){this[_0x563aeb(0x35b)][_0x563aeb(0x2b8)](_0x49c99a),this[_0x563aeb(0x1ea)](_0x3019ab);}}[_0x2b4704(0x219)](_0xacce86){const _0x1e57cf=_0x2b4704;let _0x1f18b2=this[_0x1e57cf(0x370)](_0xacce86);_0x1f18b2&&(_0x1f18b2[_0x1e57cf(0x2f8)]=0x0,this['_updateStatus']());}[_0x2b4704(0x1ea)](_0xa9348d){const _0x4bde7c=_0x2b4704;let _0x251c5c=this[_0x4bde7c(0x393)](_0xa9348d);_0x251c5c&&(_0x251c5c[_0x4bde7c(0x2f8)]=0x0,this[_0x4bde7c(0x10e)]());}['_substituteUndoStack'](_0x37acab,_0x14be1d){const _0x3eef24=_0x2b4704;this[_0x3eef24(0x1d0)][_0x3eef24(0x399)](_0x37acab,_0x14be1d),this[_0x3eef24(0x10e)]();}[_0x2b4704(0x373)](_0x59a324,_0x46967c){const _0x48837b=_0x2b4704;this['_redoStacks']['set'](_0x59a324,_0x46967c),this[_0x48837b(0x10e)]();}['_transformStack'](_0x4e3bd1,_0x9edb3a){const _0x2e0088=_0x2b4704;let _0xeb8d5a=[],_0x15db8e=_0x9edb3a,_0x15686e=_0x9edb3a;for(let _0x506178=_0x4e3bd1[_0x2e0088(0x2f8)]-0x1;_0x506178>=0x0;_0x506178--){let {unitID:_0x202739,undoMutations:_0x563954,redoMutations:_0x25fe40}=_0x4e3bd1[_0x506178],_0x24c599=this[_0x2e0088(0x191)][_0x2e0088(0x2c5)](_0x15db8e,_0x563954),_0x1e9654=this[_0x2e0088(0x191)][_0x2e0088(0x2c5)](_0x15686e,_0x25fe40);if((0x0,t['isTransformMutationsWithChangesetFailure'])(_0x24c599)||(0x0,t[_0x2e0088(0x1c9)])(_0x1e9654)){this[_0x2e0088(0x35b)][_0x2e0088(0x2b8)](_0x2e0088(0x1dc),_0x2e0088(0x37f),_0x24c599,_0x1e9654);break;}_0x15db8e=_0x24c599[_0x2e0088(0x2c3)],_0x15686e=_0x1e9654['c1Prime'],_0xeb8d5a[_0x2e0088(0x384)]({'unitID':_0x202739,'undoMutations':_0x24c599[_0x2e0088(0x293)],'redoMutations':_0x1e9654['m2Prime']});}return _0xeb8d5a['reverse']();}};Q=b([y(0x0,n[_0x2b4704(0x3a9)]),y(0x1,n[_0x2b4704(0x378)]),y(0x2,n[_0x2b4704(0x2f0)]),y(0x3,t[_0x2b4704(0x109)]),y(0x4,n['ILogService'])],Q);let $=class extends n['Plugin']{constructor(_0x3d0761={},_0x1769b7,_0x52a96f,_0x138a8a){const _0x896b09=_0x2b4704;super(),this[_0x896b09(0x23c)]=_0x3d0761,this[_0x896b09(0x35b)]=_0x1769b7,this[_0x896b09(0x3de)]=_0x52a96f,this[_0x896b09(0x1d8)]=_0x138a8a;let {..._0x5d3107}=(0x0,n['merge'])({},ee,_0x3d0761);if(!_0x5d3107[_0x896b09(0x130)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this['_config']=_0x5d3107,this['_configService'][_0x896b09(0x2b5)](h,_0x5d3107);}[_0x2b4704(0x1cd)](){const _0x1a375c=_0x2b4704;this[_0x1a375c(0x3b5)](),this['_initDependencies']();}['_registerDependencies'](){const _0x4e4205=_0x2b4704;var _0x5d861e,_0x5e1b59;this[_0x4e4205(0x3de)][_0x4e4205(0x1ae)](n[_0x4e4205(0x100)])&&this[_0x4e4205(0x35b)][_0x4e4205(0x2b8)](_0x4e4205(0x2a1),_0x4e4205(0x26b));let _0x1061db=(0x0,n[_0x4e4205(0x15f)])([[n[_0x4e4205(0x100)],{'useClass':Q}],[V],[x],[w],[W],[K],[se],[X],[v],[q],[Le,{'useClass':this[_0x4e4205(0x23c)][_0x4e4205(0x130)]}],[t[_0x4e4205(0x38c)],{'useClass':Z}],[n[_0x4e4205(0x215)],{'useClass':G}],[f[_0x4e4205(0x13d)],{'useClass':J}],[We,{'useClass':U}],[n[_0x4e4205(0x324)],{'useClass':Y}],[H],[He]],(_0x5d861e=this[_0x4e4205(0x23c)])==null?void 0x0:_0x5d861e[_0x4e4205(0x1a9)]);if(!((_0x5e1b59=this[_0x4e4205(0x23c)])!=null&&_0x5e1b59[_0x4e4205(0x31c)])){let _0x4ebc8b=_0x1061db[_0x4e4205(0x152)](([_0x36d7d3])=>_0x36d7d3===T);_0x4ebc8b!==-0x1&&_0x1061db[_0x4e4205(0x267)](_0x4ebc8b,0x1);}(0x0,n[_0x4e4205(0x3a0)])(this[_0x4e4205(0x3de)],_0x1061db);}['_initDependencies'](){const _0x13671f=_0x2b4704;var _0x1e0b57,_0x38be31;if(this[_0x13671f(0x3de)][_0x13671f(0x287)](u[_0x13671f(0x28e)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,u[_0x13671f(0x11a)])({'maxParallel':0x6})}),!((_0x1e0b57=this['_config'])!=null&&_0x1e0b57[_0x13671f(0x252)])){var _0x5bbd2f;(_0x5bbd2f=this[_0x13671f(0x3de)][_0x13671f(0x287)](C,n[_0x13671f(0x333)][_0x13671f(0x1f4)]))==null||_0x5bbd2f['disableLocalCache']();}(_0x38be31=this[_0x13671f(0x23c)])!=null&&_0x38be31[_0x13671f(0x2e1)]&&(0x0,n[_0x13671f(0x3d0)])(this[_0x13671f(0x3de)],[[W]]),(0x0,n['touchDependencies'])(this['_injector'],[[K],[H],[X]]);}};_($,_0x2b4704(0x31f),_0x2b4704(0x3b6)),_($,'packageName',Be),_($,_0x2b4704(0x222),Ve),$=b([(0x0,n[_0x2b4704(0x1bb)])(d['UniverLicensePlugin'],t[_0x2b4704(0x212)],u[_0x2b4704(0x141)]),y(0x1,n['ILogService']),y(0x2,(0x0,n[_0x2b4704(0x1ce)])(n[_0x2b4704(0x39f)])),y(0x3,n[_0x2b4704(0x309)])],$),exports[_0x2b4704(0x162)]=Ue,Object['defineProperty'](exports,_0x2b4704(0x37d),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x2b4704(0x1dd)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x2b4704(0x22c),{'enumerable':!0x0,'get':function(){return N;}}),exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=h,Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x2d1),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x3d6),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x14d),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x1bc),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x18d),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x2ab),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x3ce),{'enumerable':!0x0,'get':function(){return ze;}}),exports['CollaborationStatus']=ke,exports[_0x2b4704(0x140)]=oe,exports[_0x2b4704(0x2f2)]=v,Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x21d),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x2b4704(0x38f)]=se,Object[_0x2b4704(0x1dd)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return P;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=te,exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x2b4704(0x314),exports[_0x2b4704(0x289)]=_0x2b4704(0x13e),Object[_0x2b4704(0x1dd)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x241),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x2b4704(0x1dd)](exports,'FetchingMissState',{'enumerable':!0x0,'get':function(){return I;}}),exports[_0x2b4704(0x3df)]='HEARTBEAT_INTERVAL',exports[_0x2b4704(0x339)]=_0x2b4704(0x204),exports['IAttachmentIoService']=We,exports[_0x2b4704(0x347)]=Le,exports[_0x2b4704(0x33f)]=C,exports[_0x2b4704(0x158)]=Pe,exports[_0x2b4704(0x291)]=T,exports[_0x2b4704(0x1fb)]=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x20f),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x11c),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x234),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x2b4704(0x147),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x2b4704(0x300)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x2b4704(0x275)]=_0x2b4704(0x101),exports[_0x2b4704(0x11b)]=le,Object['defineProperty'](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x2b4704(0x1dd)](exports,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x2b4704(0x1dd)](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x134),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x2b4704(0x228)]=pe,Object[_0x2b4704(0x1dd)](exports,_0x2b4704(0x262),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x2b4704(0x247)]=Fe,exports[_0x2b4704(0x2fc)]=de,exports['serializeCombRequest']=Ie;