@univerjs-pro/collaboration-client 0.24.0 → 0.25.0
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -0
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -0
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -0
- package/lib/cjs/locale/it-IT.js +1 -0
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -0
- package/lib/cjs/locale/pt-BR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -0
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -0
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -0
- package/lib/es/locale/it-IT.js +1 -0
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -0
- package/lib/es/locale/pt-BR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -0
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -0
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -0
- package/lib/locale/it-IT.js +1 -0
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -0
- package/lib/locale/pt-BR.js +1 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -0
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/ar-SA.d.ts +3 -0
- package/lib/types/locale/ca-ES.d.ts +1 -1
- package/lib/types/locale/de-DE.d.ts +3 -0
- package/lib/types/locale/en-US.d.ts +39 -37
- package/lib/types/locale/es-ES.d.ts +1 -1
- package/lib/types/locale/fr-FR.d.ts +1 -1
- package/lib/types/locale/id-ID.d.ts +3 -0
- package/lib/types/locale/it-IT.d.ts +3 -0
- package/lib/types/locale/pl-PL.d.ts +3 -0
- package/lib/types/locale/pt-BR.d.ts +3 -0
- package/lib/types/locale/ru-RU.d.ts +1 -1
- package/lib/types/locale/zh-HK.d.ts +3 -0
- package/lib/types/locale/zh-TW.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -0
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -0
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -0
- package/lib/umd/locale/it-IT.js +1 -0
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -0
- package/lib/umd/locale/pt-BR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x639d9b=_0x5037;(function(_0x18cc11,_0x412258){const _0x2b9b3f=_0x5037,_0x50d7f4=_0x18cc11();while(!![]){try{const _0x429ab7=-parseInt(_0x2b9b3f(0x367))/0x1+parseInt(_0x2b9b3f(0x299))/0x2+parseInt(_0x2b9b3f(0x39e))/0x3*(-parseInt(_0x2b9b3f(0x2e3))/0x4)+parseInt(_0x2b9b3f(0x315))/0x5+parseInt(_0x2b9b3f(0x1ae))/0x6*(parseInt(_0x2b9b3f(0x15c))/0x7)+parseInt(_0x2b9b3f(0x23b))/0x8*(parseInt(_0x2b9b3f(0x17b))/0x9)+-parseInt(_0x2b9b3f(0x3c9))/0xa*(parseInt(_0x2b9b3f(0x3b2))/0xb);if(_0x429ab7===_0x412258)break;else _0x50d7f4['push'](_0x50d7f4['shift']());}catch(_0x33f814){_0x50d7f4['push'](_0x50d7f4['shift']());}}}(_0x3751,0x8ebb6),Object[_0x639d9b(0x3ba)](exports,Symbol[_0x639d9b(0x366)],{'value':_0x639d9b(0x166)}));let e=require(`@univerjs-pro/collaboration`),t=require(`@univerjs/core`),n=require(`@univerjs/docs`),r=require(`@univerjs/sheets`),i=require(`rxjs`),a=require(`@univerjs/protocol`),o=require(`@univerjs/telemetry`),s=require(`rxjs/operators`),c=require(`@univerjs/network`),l=require(`@univerjs-pro/license`),u=require(`@univerjs/drawing`),d=require(`@noble/ciphers/aes.js`),f=require(`@noble/ciphers/utils.js`);const p=_0x639d9b(0x343),m=0x4e20;function ee(_0x3bad6b){const _0x152503=_0x639d9b;return JSON[_0x152503(0x139)](_0x3bad6b)['length'];}function h(_0x57f8a4){'@babel/helpers - typeof';const _0x4c5632=_0x639d9b;return h=typeof Symbol==_0x4c5632(0x223)&&typeof Symbol['iterator']==_0x4c5632(0x261)?function(_0x408125){return typeof _0x408125;}:function(_0x99586a){const _0x487d67=_0x4c5632;return _0x99586a&&typeof Symbol==_0x487d67(0x223)&&_0x99586a[_0x487d67(0x307)]===Symbol&&_0x99586a!==Symbol[_0x487d67(0x316)]?_0x487d67(0x261):typeof _0x99586a;},h(_0x57f8a4);}function te(_0x13c6b7,_0x4b9d4a){const _0xb6afff=_0x639d9b;if(h(_0x13c6b7)!=_0xb6afff(0x167)||!_0x13c6b7)return _0x13c6b7;var _0x3a1e24=_0x13c6b7[Symbol[_0xb6afff(0x199)]];if(_0x3a1e24!==void 0x0){var _0xf8e895=_0x3a1e24[_0xb6afff(0x16e)](_0x13c6b7,_0x4b9d4a||_0xb6afff(0x2b4));if(h(_0xf8e895)!='object')return _0xf8e895;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b9d4a===_0xb6afff(0x1d2)?String:Number)(_0x13c6b7);}function ne(_0x5220d6){const _0x5be97e=_0x639d9b;var _0x2d936e=te(_0x5220d6,_0x5be97e(0x1d2));return h(_0x2d936e)=='symbol'?_0x2d936e:_0x2d936e+'';}function g(_0x357ebc,_0xc5c25c,_0x28cca3){const _0x189778=_0x639d9b;return(_0xc5c25c=ne(_0xc5c25c))in _0x357ebc?Object[_0x189778(0x3ba)](_0x357ebc,_0xc5c25c,{'value':_0x28cca3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x357ebc[_0xc5c25c]=_0x28cca3,_0x357ebc;}let re=function(_0x4a1c5d){const _0x44f4ca=_0x639d9b;return _0x4a1c5d[_0x44f4ca(0x2f0)]=_0x44f4ca(0x2f0),_0x4a1c5d[_0x44f4ca(0x341)]=_0x44f4ca(0x341),_0x4a1c5d[_0x44f4ca(0x296)]=_0x44f4ca(0x296),_0x4a1c5d['CLOSE_ROOM']=_0x44f4ca(0x2dd),_0x4a1c5d['JOIN_ROOM_FAILED']=_0x44f4ca(0x1f3),_0x4a1c5d[_0x44f4ca(0x314)]=_0x44f4ca(0x314),_0x4a1c5d['SOCKET_FAILED']=_0x44f4ca(0x161),_0x4a1c5d[_0x44f4ca(0x3a7)]='SUBMIT_CHANGESET_TIMEOUT',_0x4a1c5d;}({});var _=class{constructor(){const _0xeecf09=_0x639d9b;g(this,_0xeecf09(0x3c1),new i[(_0xeecf09(0x352))]()),g(this,_0xeecf09(0x32e),this[_0xeecf09(0x3c1)][_0xeecf09(0x2a5)]());}[_0x639d9b(0x2f7)](_0x2afd09){const _0x469fc4=_0x639d9b;this[_0x469fc4(0x3c1)][_0x469fc4(0x268)](_0x2afd09);}},v=class{constructor(){const _0x3e2d87=_0x639d9b;g(this,_0x3e2d87(0x1f1),new i[(_0x3e2d87(0x352))]()),g(this,_0x3e2d87(0x266),this[_0x3e2d87(0x1f1)][_0x3e2d87(0x2a5)]());}[_0x639d9b(0x1ba)](_0x2ca164){const _0x217d8f=_0x639d9b;this[_0x217d8f(0x1f1)][_0x217d8f(0x268)](_0x2ca164);}};function y(_0x53127c,_0x5d4fa3){return function(_0x48d5c1,_0x54c095){_0x5d4fa3(_0x48d5c1,_0x54c095,_0x53127c);};}function b(_0x256726,_0x27b139,_0x24496c,_0x3eccd2){const _0x510469=_0x639d9b;var _0x4d2110=arguments[_0x510469(0x346)],_0x3f5c5a=_0x4d2110<0x3?_0x27b139:_0x3eccd2===null?_0x3eccd2=Object[_0x510469(0x32a)](_0x27b139,_0x24496c):_0x3eccd2,_0x31be37;if(typeof Reflect=='object'&&typeof Reflect[_0x510469(0x201)]==_0x510469(0x223))_0x3f5c5a=Reflect[_0x510469(0x201)](_0x256726,_0x27b139,_0x24496c,_0x3eccd2);else{for(var _0x222348=_0x256726[_0x510469(0x346)]-0x1;_0x222348>=0x0;_0x222348--)(_0x31be37=_0x256726[_0x222348])&&(_0x3f5c5a=(_0x4d2110<0x3?_0x31be37(_0x3f5c5a):_0x4d2110>0x3?_0x31be37(_0x27b139,_0x24496c,_0x3f5c5a):_0x31be37(_0x27b139,_0x24496c))||_0x3f5c5a);}return _0x4d2110>0x3&&_0x3f5c5a&&Object[_0x510469(0x3ba)](_0x27b139,_0x24496c,_0x3f5c5a),_0x3f5c5a;}let x=class extends t[_0x639d9b(0x2a6)]{constructor(_0x5173ef,_0x50c006){const _0x14437c=_0x639d9b;super(),this['_univerInstanceService']=_0x5173ef,this['_userManagerService']=_0x50c006,g(this,_0x14437c(0x1e7),new Map()),g(this,'_roomCreated$',new i[(_0x14437c(0x352))]()),this['disposeWithMe']((0x0,i[_0x14437c(0x229)])(this[_0x14437c(0x350)][_0x14437c(0x1f4)](t[_0x14437c(0x279)][_0x14437c(0x1f5)])[_0x14437c(0x355)]((0x0,s['map'])(_0xcf8e03=>_0xcf8e03[_0x14437c(0x264)]())),this[_0x14437c(0x350)][_0x14437c(0x1f4)](t[_0x14437c(0x279)]['UNIVER_DOC'])[_0x14437c(0x355)]((0x0,s[_0x14437c(0x39c)])(_0x56fd0a=>_0x56fd0a[_0x14437c(0x264)]())))[_0x14437c(0x196)](_0x1b0e27=>this[_0x14437c(0x227)](_0x1b0e27)));}['waitForRoom$'](_0x174693){const _0x5828e7=_0x639d9b;return this[_0x5828e7(0x1e7)][_0x5828e7(0x1dc)](_0x174693)?(0x0,i['of'])(this['_roomMembers']['get'](_0x174693)):this[_0x5828e7(0x108)][_0x5828e7(0x355)]((0x0,s['map'])(_0x15165b=>{const _0x452c14=_0x5828e7;if(_0x15165b===_0x174693)return this[_0x452c14(0x1e7)][_0x452c14(0x1a8)](_0x15165b);}));}[_0x639d9b(0x3af)](_0x1b6d3f){const _0x5eed51=_0x639d9b;this[_0x5eed51(0x207)][_0x5eed51(0x3af)](_0x1b6d3f);}[_0x639d9b(0x18a)](){const _0x59f66e=_0x639d9b;return this[_0x59f66e(0x207)][_0x59f66e(0x18a)]();}[_0x639d9b(0x12f)](_0x2ac098,_0x5113e5){const _0x5b3918=_0x639d9b;let _0x49924b=this[_0x5b3918(0x1e7)][_0x5b3918(0x1a8)](_0x2ac098);_0x49924b||(_0x49924b=new ie(),this[_0x5b3918(0x1e7)][_0x5b3918(0x29c)](_0x2ac098,_0x49924b),this[_0x5b3918(0x108)][_0x5b3918(0x268)](_0x2ac098)),_0x49924b[_0x5b3918(0x12f)](_0x5113e5);}[_0x639d9b(0x14d)](_0x34bb5d,_0x30ddb3){const _0x19ed25=_0x639d9b;let _0x3170c2=this[_0x19ed25(0x1e7)][_0x19ed25(0x1a8)](_0x34bb5d);_0x3170c2&&_0x3170c2[_0x19ed25(0x14d)](_0x30ddb3);}['getRoom'](_0x140bc7){const _0x12e8b8=_0x639d9b;return this[_0x12e8b8(0x1e7)][_0x12e8b8(0x1a8)](_0x140bc7);}[_0x639d9b(0x18d)](_0x61bb9a,_0x575ddc){const _0x560723=_0x639d9b;let _0x6af9ea=this[_0x560723(0x1e7)][_0x560723(0x1a8)](_0x61bb9a);if(_0x6af9ea)return _0x6af9ea[_0x560723(0x18d)](_0x575ddc);}[_0x639d9b(0x227)](_0x952237){const _0x3d47d4=_0x639d9b;let _0x118094=this['_roomMembers'][_0x3d47d4(0x1a8)](_0x952237);_0x118094&&(_0x118094[_0x3d47d4(0x36f)](),this[_0x3d47d4(0x1e7)]['delete'](_0x952237));}[_0x639d9b(0x36f)](){const _0x1b1eff=_0x639d9b;this[_0x1b1eff(0x1e7)]['forEach'](_0x5dc7a6=>_0x5dc7a6['dispose']()),this[_0x1b1eff(0x1e7)][_0x1b1eff(0x1df)](),this[_0x1b1eff(0x108)][_0x1b1eff(0x15f)]();}};x=b([y(0x0,t[_0x639d9b(0x21e)]),y(0x1,(0x0,t['Inject'])(t['UserManagerService']))],x);function _0x5037(_0x527a53,_0x2d855b){_0x527a53=_0x527a53-0x101;const _0x37513d=_0x3751();let _0x50376d=_0x37513d[_0x527a53];return _0x50376d;}var ie=class extends t[_0x639d9b(0x2a6)]{constructor(..._0x16ec3f){const _0x550245=_0x639d9b;super(..._0x16ec3f),g(this,_0x550245(0x172),new Map()),g(this,'_members$',new i[(_0x550245(0x2aa))](this[_0x550245(0x172)])),g(this,_0x550245(0x3be),this['_members$'][_0x550245(0x2a5)]());}[_0x639d9b(0x36f)](){const _0x5d7bae=_0x639d9b;this[_0x5d7bae(0x172)][_0x5d7bae(0x1df)](),this[_0x5d7bae(0x1ab)][_0x5d7bae(0x15f)]();}[_0x639d9b(0x12f)](_0x1b9b15){const _0x567a00=_0x639d9b;this['_members'][_0x567a00(0x29c)](_0x1b9b15[_0x567a00(0x2a7)],_0x1b9b15),this['_emitMembers']();}[_0x639d9b(0x14d)](_0x4b0556){const _0x57e6ea=_0x639d9b;this[_0x57e6ea(0x172)][_0x57e6ea(0x14b)](_0x4b0556),this[_0x57e6ea(0x2e2)]();}[_0x639d9b(0x18d)](_0x5a7cf5){const _0x37bafd=_0x639d9b;return this[_0x37bafd(0x172)][_0x37bafd(0x1a8)](_0x5a7cf5);}[_0x639d9b(0x157)](){const _0x25edd7=_0x639d9b;return Array['from'](this[_0x25edd7(0x172)][_0x25edd7(0x27c)]());}[_0x639d9b(0x2e2)](){const _0x13ae66=_0x639d9b;this[_0x13ae66(0x1ab)][_0x13ae66(0x268)](this[_0x13ae66(0x172)]);}};let ae=function(_0x55cb5f){const _0x1d94c0=_0x639d9b;return _0x55cb5f[_0x55cb5f[_0x1d94c0(0x215)]=0x0]=_0x1d94c0(0x215),_0x55cb5f[_0x55cb5f[_0x1d94c0(0x144)]=0x1]=_0x1d94c0(0x144),_0x55cb5f[_0x55cb5f[_0x1d94c0(0x392)]=0x2]=_0x1d94c0(0x392),_0x55cb5f[_0x55cb5f[_0x1d94c0(0x147)]=0x3]=_0x1d94c0(0x147),_0x55cb5f;}({});const oe={[a[_0x639d9b(0x200)]['FAIL']]:_0x639d9b(0x34d),[a[_0x639d9b(0x200)][_0x639d9b(0x1e9)]]:'session.room-full',[a['CmdRspCode'][_0x639d9b(0x381)]]:'session.room-not-exists',[a['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[a['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x639d9b(0x30d)};let S=class extends t[_0x639d9b(0x19b)]{get['sessionStatus'](){const _0xa3fd5e=_0x639d9b;return this['_sessionStatus$'][_0xa3fd5e(0x331)]();}constructor(_0x275d77,_0xb99aa8,_0x1c52f2,_0x4e6007,_0x218276,_0x59bebd,_0xdeb577,_0x5f48be){const _0x3177ee=_0x639d9b;super(),this['_unitID']=_0x275d77,this[_0x3177ee(0x353)]=_0x1c52f2,this[_0x3177ee(0x364)]=_0x4e6007,this[_0x3177ee(0x1c3)]=_0x218276,this[_0x3177ee(0x205)]=_0x59bebd,this[_0x3177ee(0x15e)]=_0xdeb577,this['_telemetryService']=_0x5f48be,g(this,'_sessionStatus$',new i['BehaviorSubject'](0x0)),g(this,_0x3177ee(0x103),this[_0x3177ee(0x285)]['asObservable']()),g(this,_0x3177ee(0x3c1),new i[(_0x3177ee(0x352))]()),g(this,_0x3177ee(0x32e),this[_0x3177ee(0x3c1)][_0x3177ee(0x2a5)]()),g(this,_0x3177ee(0x151),void 0x0),g(this,'_socketMessageSubscription',void 0x0),g(this,_0x3177ee(0x270),void 0x0),g(this,_0x3177ee(0x363),!0x1),g(this,'_telemetryInfo',null),this[_0x3177ee(0x363)]=!!this['_telemetryService'],_0xb99aa8[_0x3177ee(0x355)]((0x0,i[_0x3177ee(0x221)])(this['dispose$']))['subscribe'](_0x2edb98=>{const _0x5ddaf2=_0x3177ee;if(_0x2edb98!==void 0x0){if(this['_socket']=_0x2edb98,_0x2edb98)this[_0x5ddaf2(0x385)](_0x2edb98),this[_0x5ddaf2(0x120)]=_0x2edb98['message$'][_0x5ddaf2(0x196)](_0x2526c6=>{const _0x32fdb0=_0x5ddaf2;_0x2526c6['routeKey']===this[_0x32fdb0(0x168)]&&this[_0x32fdb0(0x395)](_0x2526c6);});else{var _0xfe5c0d;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5ddaf2(0x285)][_0x5ddaf2(0x268)](0x2),(_0xfe5c0d=this[_0x5ddaf2(0x120)])==null||_0xfe5c0d[_0x5ddaf2(0x1c2)](),this[_0x5ddaf2(0x120)]=null;}}});}[_0x639d9b(0x33e)](){const _0x379cd4=_0x639d9b;var _0x3a0899,_0x337243;return(_0x3a0899=(_0x337243=this[_0x379cd4(0x151)])==null?void 0x0:_0x337243['memberID'])==null?null:_0x3a0899;}[_0x639d9b(0x36f)](){const _0x35c8ea=_0x639d9b;super[_0x35c8ea(0x36f)](),this['close'](),this[_0x35c8ea(0x219)]['next'](),this[_0x35c8ea(0x219)][_0x35c8ea(0x15f)]();}[_0x639d9b(0x178)](){const _0x24d66d=_0x639d9b;var _0x26f88c,_0x11b3c4;this[_0x24d66d(0x38f)](),(_0x26f88c=this[_0x24d66d(0x151)])==null||_0x26f88c[_0x24d66d(0x284)]({'cmd':a['CombCmd'][_0x24d66d(0x23f)],'data':{'roomID':this['_unitID']}}),(_0x11b3c4=this[_0x24d66d(0x151)])==null||_0x11b3c4['close'](),this[_0x24d66d(0x3c1)][_0x24d66d(0x15f)](),this[_0x24d66d(0x285)]['complete']();}[_0x639d9b(0x395)](_0x443bdd){const _0x43e50d=_0x639d9b;_0x443bdd['cmd']===a['CombCmd']['JOIN']?this[_0x43e50d(0x1e3)](_0x443bdd):_0x443bdd[_0x43e50d(0x131)]===a[_0x43e50d(0x118)][_0x43e50d(0x150)]&&this[_0x43e50d(0x230)](_0x443bdd);}[_0x639d9b(0x385)](_0x31af14){const _0x313adc=_0x639d9b;this[_0x313adc(0x285)][_0x313adc(0x268)](0x1),_0x31af14[_0x313adc(0x284)]({'cmd':a['CombCmd'][_0x313adc(0x325)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x313adc(0x168)]}]}});}[_0x639d9b(0x1e3)](_0x2d3880){const _0x55c933=_0x639d9b;var _0x43d797;if(_0x2d3880[_0x55c933(0x319)]in oe){this[_0x55c933(0x15e)]['emitEvent']({'id':_0x55c933(0x1f3),'data':oe[_0x2d3880[_0x55c933(0x319)]]}),this[_0x55c933(0x285)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0xb04819=(_0x43d797=_0x2d3880[_0x55c933(0x398)]['roomInfos'][this[_0x55c933(0x168)]])==null?void 0x0:_0x43d797['members'];_0xb04819&&_0xb04819[_0x55c933(0x3c4)](_0x2c0ff6=>this[_0x55c933(0x1c3)]['updateMember'](this[_0x55c933(0x168)],_0x2c0ff6));}[_0x639d9b(0x230)](_0x37b0de){const _0x5dcd2c=_0x639d9b;try{let _0x223c3f=_0x37b0de['data'];switch(_0x223c3f[_0x5dcd2c(0x34c)]){case e[_0x5dcd2c(0x1b0)][_0x5dcd2c(0x228)]:this[_0x5dcd2c(0x24e)](_0x223c3f),this['_event$'][_0x5dcd2c(0x268)](_0x223c3f);break;case e['CollaborationEvent'][_0x5dcd2c(0x358)]:this[_0x5dcd2c(0x18c)](_0x223c3f),this[_0x5dcd2c(0x3c1)]['next'](_0x223c3f);break;case e[_0x5dcd2c(0x1b0)]['CHANGESET_ACK']:case e['CollaborationEvent'][_0x5dcd2c(0x260)]:this[_0x5dcd2c(0x2bf)](),this[_0x5dcd2c(0x1f7)](),this['_event$']['next'](_0x223c3f);break;case e[_0x5dcd2c(0x1b0)]['MSG_FOR_ERROR']:this[_0x5dcd2c(0x353)][_0x5dcd2c(0x36e)](_0x5dcd2c(0x216)+JSON[_0x5dcd2c(0x139)](_0x223c3f)),this[_0x5dcd2c(0x3c1)][_0x5dcd2c(0x268)](_0x223c3f);break;case e[_0x5dcd2c(0x1b0)][_0x5dcd2c(0x1a7)]:this[_0x5dcd2c(0x205)][_0x5dcd2c(0x1ba)](_0x223c3f['data']),this[_0x5dcd2c(0x3c1)][_0x5dcd2c(0x268)](_0x223c3f);break;default:this[_0x5dcd2c(0x3c1)]['next'](_0x223c3f);}}catch(_0x10c0d3){this[_0x5dcd2c(0x353)][_0x5dcd2c(0x36e)](_0x10c0d3,_0x37b0de);}}[_0x639d9b(0x24e)](_0x126529){const _0x59732a=_0x639d9b;this[_0x59732a(0x1c3)][_0x59732a(0x12f)](this[_0x59732a(0x168)],_0x126529[_0x59732a(0x398)]);}['_onUserLeave'](_0x2643d5){const _0x1dd400=_0x639d9b;this[_0x1dd400(0x1c3)][_0x1dd400(0x14d)](this[_0x1dd400(0x168)],_0x2643d5['data'][_0x1dd400(0x2a7)]);}async[_0x639d9b(0x284)](_0x5d77c8,_0x3d6dc7){const _0x2088e4=_0x639d9b;if(this['sessionStatus']!==0x3||!this[_0x2088e4(0x151)])throw Error(_0x2088e4(0x29e));try{_0x5d77c8[_0x2088e4(0x34c)]===e[_0x2088e4(0x1b0)][_0x2088e4(0x126)]&&(this[_0x2088e4(0x18f)](),this[_0x2088e4(0x1fd)](_0x5d77c8)),this['_socket']['send']({'cmd':a[_0x2088e4(0x118)][_0x2088e4(0x30c)],'routeKey':_0x3d6dc7,'routeType':'','data':_0x5d77c8});}catch(_0x21e444){this[_0x2088e4(0x353)][_0x2088e4(0x36e)](_0x21e444);}}[_0x639d9b(0x18f)](){const _0x552268=_0x639d9b;var _0x338480;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x281c1a=_0x5037;this[_0x281c1a(0x270)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0x281c1a(0x3a7)});},(_0x338480=this[_0x552268(0x364)]['getConfig'](_0x552268(0x111)))==null?m:_0x338480);}[_0x639d9b(0x1f7)](){const _0x4dfd69=_0x639d9b;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4dfd69(0x270)]),this[_0x4dfd69(0x270)]=null);}[_0x639d9b(0x1fd)](_0x15f21a){const _0x524b06=_0x639d9b;if(!this[_0x524b06(0x363)])return;let {data:_0x31e92e}=_0x15f21a,{unitID:_0xac5441,changeset:_0x4348da}=_0x31e92e,{mutations:_0x1feeae,type:_0x44138c}=_0x4348da;this[_0x524b06(0x1fa)]={'unitId':_0xac5441,'type':_0x44138c,'startTime':performance[_0x524b06(0x135)](),'stopTime':0x0,'duration':0x0,'size':ee(_0x1feeae)};}[_0x639d9b(0x2bf)](){const _0x34cedd=_0x639d9b;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x34cedd(0x353)][_0x34cedd(0x36e)](_0x34cedd(0x12b),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x34cedd(0x387)]=performance['now'](),this[_0x34cedd(0x1fa)]['duration']=this[_0x34cedd(0x1fa)][_0x34cedd(0x387)]-this[_0x34cedd(0x1fa)][_0x34cedd(0x194)],this['_telemetryService'][_0x34cedd(0x2be)](_0x34cedd(0x32b),this[_0x34cedd(0x1fa)]),this[_0x34cedd(0x1fa)]=null;}}[_0x639d9b(0x38f)](){this['_telemetryInfo']=null;}};S=b([y(0x2,t[_0x639d9b(0x1b7)]),y(0x3,t['IConfigService']),y(0x4,(0x0,t[_0x639d9b(0x11e)])(x)),y(0x5,(0x0,t['Inject'])(v)),y(0x6,(0x0,t['Inject'])(_)),y(0x7,(0x0,t[_0x639d9b(0x240)])(o['ITelemetryService']))],S);const C=(0x0,t[_0x639d9b(0x1a6)])('collaboration-client.local-cache-service');function se(_0x4994db){const _0x42b655=_0x639d9b;return _0x42b655(0x2cf)+_0x4994db;}function ce(_0x34c6bd){const _0x138b92=_0x639d9b;let {unitID:_0x1b37ea,mutations:_0x568b1d}=_0x34c6bd;return{'unitId':_0x1b37ea,'subUnitId':_0x568b1d[_0x138b92(0x346)]>0x0?_0x568b1d[0x0][_0x138b92(0x13b)][_0x138b92(0x195)]:null};}let w=class{constructor(_0x2580c2,_0x402457,_0x183a38){const _0x7f7a9a=_0x639d9b;this[_0x7f7a9a(0x22b)]=_0x2580c2,this['_transformService']=_0x402457,this['_instanceService']=_0x183a38;}['transformSelections'](_0x256c1a){const _0x12a2f8=_0x639d9b;var _0x310c4d,_0x3d8c4d;let _0x57b653=this['_injector'][_0x12a2f8(0x1a8)](r[_0x12a2f8(0x1ec)]),{unitId:_0x434936,subUnitId:_0x479bb3}=ce(_0x256c1a),_0x5e35c9=_0x57b653==null?void 0x0:_0x57b653['getWorkbookSelections'](_0x434936)[_0x12a2f8(0x30b)](),_0xc6f301=(_0x310c4d=this[_0x12a2f8(0x210)][_0x12a2f8(0x1fc)](_0x434936))==null||(_0x310c4d=_0x310c4d[_0x12a2f8(0x22d)]())==null?void 0x0:_0x310c4d[_0x12a2f8(0x1aa)]();if(_0x5e35c9[_0x12a2f8(0x346)]===0x0||!_0x434936||!_0x479bb3)return;let _0x10cd0e=[{'id':r[_0x12a2f8(0x28e)]['id'],'params':{'unitId':_0x434936,'subUnitId':_0xc6f301,'selections':t['Tools'][_0x12a2f8(0x35c)](_0x5e35c9)}}],_0x4a9f79=this[_0x12a2f8(0x297)][_0x12a2f8(0x2ce)](_0x256c1a,_0x10cd0e);if(!(0x0,e[_0x12a2f8(0x3d3)])(_0x4a9f79))throw _0x4a9f79['error'];let _0x39e329=(_0x3d8c4d=_0x4a9f79['m2Prime'][0x0])==null||(_0x3d8c4d=_0x3d8c4d[_0x12a2f8(0x13b)])==null?void 0x0:_0x3d8c4d[_0x12a2f8(0x335)];if(Array[_0x12a2f8(0x3a3)](_0x39e329)&&_0x39e329['length']){if(_0x39e329[_0x12a2f8(0x346)]===_0x10cd0e[0x0][_0x12a2f8(0x13b)]['selections'][_0x12a2f8(0x346)]&&_0x39e329['every']((_0x21c375,_0x234765)=>t[_0x12a2f8(0x1a9)][_0x12a2f8(0x3d9)](_0x21c375[_0x12a2f8(0x281)],_0x10cd0e[0x0][_0x12a2f8(0x13b)][_0x12a2f8(0x335)][_0x234765][_0x12a2f8(0x281)])))return;this[_0x12a2f8(0x22b)][_0x12a2f8(0x1a8)](t['ICommandService'])[_0x12a2f8(0x218)](r[_0x12a2f8(0x28e)]['id'],{'unitId':_0x434936,'subUnitId':_0xc6f301,'selections':_0x39e329});}}};w=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,e[_0x639d9b(0x1c4)]),y(0x2,t[_0x639d9b(0x21e)])],w);const T=(0x0,t[_0x639d9b(0x1a6)])('univer-pro.collaboration-client.single-active-unit-service');let le=function(_0x19688a){return _0x19688a[_0x19688a['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x19688a[_0x19688a['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x19688a;}({});const E=_0x639d9b(0x262);Symbol(E);const ue={};function de(_0x1ee8ce){const _0x1df5b7=_0x639d9b;var _0x5238e2;return!!((_0x5238e2=_0x1ee8ce[_0x1df5b7(0x13b)])!=null&&_0x5238e2['__splitChunk__']);}const fe=new Set([r[_0x639d9b(0x375)]['id']]);function pe(_0x5d1078,_0xa68cd5,_0x4c5806,_0x11c208,_0x125138){const _0x38c363=_0x639d9b;var _0x427389,_0x40bf1f,_0x439aa9,_0x5d0f16;let _0x395496=[];for(let _0x4d6cca of _0x5d1078){if(fe[_0x38c363(0x1dc)](_0x4d6cca['id'])){if(_0x395496[_0x38c363(0x346)]>0x0)break;_0x395496[_0x38c363(0x1a4)](_0x4d6cca);break;}if(de(_0x4d6cca)){if(_0x395496[_0x38c363(0x346)]>0x0)break;_0x395496[_0x38c363(0x1a4)](_0x4d6cca);break;}_0x395496[_0x38c363(0x1a4)](_0x4d6cca);}let _0x3044d4=(_0x427389=(_0x40bf1f=_0x125138[_0x38c363(0x18a)]())==null?void 0x0:_0x40bf1f[_0x38c363(0x356)])==null?'unknown':_0x427389,_0x13a468=(_0x439aa9=(_0x5d0f16=_0x125138[_0x38c363(0x18a)]())==null?void 0x0:_0x5d0f16[_0x38c363(0x2a7)])==null?'unknown':_0x439aa9;return{'changeset':{'unitID':_0xa68cd5,'type':(0x0,e[_0x38c363(0x3b5)])(_0x4c5806[_0x38c363(0x1e4)](_0xa68cd5)),'baseRev':_0x11c208[_0x38c363(0x2c0)](_0xa68cd5),'revision':0x0,'userID':_0x3044d4,'memberID':_0x13a468,'mutations':_0x395496},'pendingMutations':_0x5d1078[_0x38c363(0x323)](_0x395496[_0x38c363(0x346)])};}function me(_0x2e6ab3,_0x3a9b4d,_0x15e7bb,_0x426e22,_0x524d63){const _0x388147=_0x639d9b;var _0x5e59ab,_0x9c14fb,_0x1a810d,_0xf39043;let _0x56e0bb=[_0x2e6ab3[_0x388147(0x1ea)]((_0x23726f,_0x483b29)=>{const _0x2b1239=_0x388147;var _0x1aaeb1;let {id:_0xf7b583}=_0x23726f,{id:_0x5def84,type:_0x335773}=_0x483b29,_0x193dd9=(_0x1aaeb1=_0x23726f[_0x2b1239(0x13b)])==null?{'actions':null}:_0x1aaeb1,_0x415c16=_0x483b29[_0x2b1239(0x13b)];if(_0xf7b583&&_0xf7b583!==_0x5def84)throw Error(_0x2b1239(0x3da)+_0xf7b583+'\x20-\x20'+_0x5def84+'.');return{..._0x23726f,'id':_0x5def84,'type':_0x335773,'params':{'unitId':_0x415c16[_0x2b1239(0x3bc)],'textRanges':_0x415c16[_0x2b1239(0x1fb)],'actions':t[_0x2b1239(0x391)][_0x2b1239(0x1f9)](_0x193dd9[_0x2b1239(0x39a)],_0x415c16[_0x2b1239(0x39a)])}};},{})],_0x39a242=(_0x5e59ab=(_0x9c14fb=_0x524d63[_0x388147(0x18a)]())==null?void 0x0:_0x9c14fb[_0x388147(0x356)])==null?_0x388147(0x2eb):_0x5e59ab,_0xff33ac=(_0x1a810d=(_0xf39043=_0x524d63[_0x388147(0x18a)]())==null?void 0x0:_0xf39043[_0x388147(0x2a7)])==null?_0x388147(0x2eb):_0x1a810d;return{'changeset':{'unitID':_0x3a9b4d,'type':(0x0,e[_0x388147(0x3b5)])(_0x15e7bb[_0x388147(0x1e4)](_0x3a9b4d)),'baseRev':_0x426e22[_0x388147(0x2c0)](_0x3a9b4d),'revision':0x0,'userID':_0x39a242,'memberID':_0xff33ac,'mutations':_0x56e0bb},'pendingMutations':[]};}function he(_0x3c2389,_0x159bc4){const _0x2a69a4=_0x639d9b;let _0x188609=new i[(_0x2a69a4(0x101))](0x1);return setTimeout(()=>_0x188609[_0x2a69a4(0x268)](_0x159bc4),_0x3c2389),_0x188609[_0x2a69a4(0x2a5)]()['pipe']((0x0,i[_0x2a69a4(0x14e)])(0x1));}var D,O,ge;let _e=function(_0x5c2158){const _0x4d2e1d=_0x639d9b;return _0x5c2158[_0x4d2e1d(0x13c)]=_0x4d2e1d(0x2e7),_0x5c2158[_0x4d2e1d(0x2ee)]=_0x4d2e1d(0x1a3),_0x5c2158[_0x4d2e1d(0x136)]=_0x4d2e1d(0x179),_0x5c2158['AWAITING']=_0x4d2e1d(0x113),_0x5c2158[_0x4d2e1d(0x1cf)]=_0x4d2e1d(0x2dc),_0x5c2158[_0x4d2e1d(0x2c8)]='fetch_missing',_0x5c2158[_0x4d2e1d(0x296)]=_0x4d2e1d(0x242),_0x5c2158['OFFLINE']=_0x4d2e1d(0x2d6),_0x5c2158;}({});const ve=0x4e20,ye=0x2bf20;var k=class{constructor(_0x4d2996,_0x38ef88,_0x25b5c2,_0x5338d3,_0x54411b,_0xbaf120,_0x54a518,_0x29a6f5,_0xe8e85c){const _0x2f2eef=_0x639d9b;this[_0x2f2eef(0x211)]=_0x4d2996,this['type']=_0x38ef88,this[_0x2f2eef(0x25a)]=_0x54411b,this[_0x2f2eef(0x286)]=_0xbaf120,this[_0x2f2eef(0x32c)]=_0x54a518,this[_0x2f2eef(0x3cd)]=_0x29a6f5,this[_0x2f2eef(0x24c)]=_0xe8e85c,g(this,_0x2f2eef(0x359),null),g(this,_0x2f2eef(0x337),[]),this['_awaitingChangeset']=_0x25b5c2,this[_0x2f2eef(0x337)]=_0x5338d3;}['_checkMissing'](_0x29ad6f){const _0x1bad6b=_0x639d9b;let _0xd7cd62=this[_0x1bad6b(0x3cd)][_0x1bad6b(0x2c0)](this[_0x1bad6b(0x211)]);return _0x29ad6f[_0x1bad6b(0x3d2)]>_0xd7cd62+0x1?(this[_0x1bad6b(0x25a)][_0x1bad6b(0x37b)]({'from':_0xd7cd62,'to':_0x29ad6f[_0x1bad6b(0x3d2)]-0x1}),!0x0):!0x1;}[_0x639d9b(0x2f5)](_0x3b2b28){const _0x345903=_0x639d9b;this[_0x345903(0x32c)][_0x345903(0x2b8)](this[_0x345903(0x211)],_0x3b2b28);}['_transformSelections'](_0x51c6a2){const _0x5cdb0a=_0x639d9b;var _0x44b73d,_0x20def6;(_0x44b73d=(_0x20def6=this[_0x5cdb0a(0x25a)])[_0x5cdb0a(0x102)])==null||_0x44b73d[_0x5cdb0a(0x16e)](_0x20def6,_0x51c6a2);}[_0x639d9b(0x1bd)](_0x286c06){const _0x1288be=_0x639d9b;var _0x5961a6,_0x23b9bd;return(_0x5961a6=(_0x23b9bd=this[_0x1288be(0x25a)])[_0x1288be(0x25f)])==null?void 0x0:_0x5961a6[_0x1288be(0x16e)](_0x23b9bd,_0x286c06);}[_0x639d9b(0x377)](_0x57eb19){const _0x58fc20=_0x639d9b;var _0x269765,_0x266386;return(_0x269765=(_0x266386=this[_0x58fc20(0x25a)])[_0x58fc20(0x283)])==null?void 0x0:_0x269765[_0x58fc20(0x16e)](_0x266386,_0x57eb19);}['_transformRemoteChangesetByIMECache'](_0x494131){const _0xc4bc58=_0x639d9b;var _0x4bf2ef,_0x3c22ff,_0x24301a;return(_0x4bf2ef=(_0x3c22ff=(_0x24301a=this[_0xc4bc58(0x25a)])[_0xc4bc58(0x3db)])==null?void 0x0:_0x3c22ff[_0xc4bc58(0x16e)](_0x24301a,_0x494131))==null?_0x494131:_0x4bf2ef;}[_0x639d9b(0x2c3)](_0x1531a7){const _0x5b71d8=_0x639d9b;var _0xbaa93d,_0x3084a2,_0x12c0cf;return(_0xbaa93d=(_0x3084a2=(_0x12c0cf=this[_0x5b71d8(0x25a)])[_0x5b71d8(0x105)])==null?void 0x0:_0x3084a2['call'](_0x12c0cf,_0x1531a7))==null?_0x1531a7:_0xbaa93d;}[_0x639d9b(0x2ff)](_0x377f64){const _0x3b6d12=_0x639d9b;if(this[_0x3b6d12(0x291)]===t[_0x3b6d12(0x279)][_0x3b6d12(0x3c3)]){let {unitID:_0x5c0664,mutations:_0x1e7284,memberID:_0x62be1e}=_0x377f64,_0x73d79d=_0x1e7284[_0x3b6d12(0x346)]>0x0?_0x1e7284[0x0][_0x3b6d12(0x13b)][_0x3b6d12(0x1fb)]:[];if(Array['isArray'](_0x73d79d)&&_0x73d79d[_0x3b6d12(0x346)]>0x0){var _0x442719,_0x37e3bd;(_0x442719=(_0x37e3bd=this[_0x3b6d12(0x25a)])[_0x3b6d12(0x1c8)])==null||_0x442719[_0x3b6d12(0x16e)](_0x37e3bd,{'unitID':_0x5c0664,'memberID':_0x62be1e,'textRanges':_0x73d79d});}}}[_0x639d9b(0x308)](){const _0x3447bb=_0x639d9b;var _0x562a75;(_0x562a75=this['_localCacheService'])==null||_0x562a75[_0x3447bb(0x197)](this[_0x3447bb(0x211)],this['type'],this['_awaitingChangeset'],this[_0x3447bb(0x337)]);}[_0x639d9b(0x365)](){const _0x2a88a8=_0x639d9b;return this[_0x2a88a8(0x3cd)][_0x2a88a8(0x2c0)](this['unitID']);}[_0x639d9b(0x1be)](){const _0x3eeae7=_0x639d9b;this['_revisionService'][_0x3eeae7(0x256)](this[_0x3eeae7(0x211)]);}[_0x639d9b(0x360)](_0x526cea){const _0x5aa7e6=_0x639d9b;let _0x39d53a=this[_0x5aa7e6(0x21b)](_0x526cea);_0x39d53a=this[_0x5aa7e6(0x2c3)](_0x39d53a);let _0x2cc324=(0x0,t[_0x5aa7e6(0x173)])(_0x39d53a['mutations'],this[_0x5aa7e6(0x286)],{'fromCollab':!0x0});if(!_0x2cc324[_0x5aa7e6(0x241)]){var _0x8c3593;throw _0x2cc324[_0x5aa7e6(0x36e)]instanceof Error?_0x2cc324['error']:Error((_0x8c3593=_0x2cc324[_0x5aa7e6(0x36e)])==null?_0x5aa7e6(0x2bd):_0x8c3593);}this['_transformIMECache'](_0x39d53a),this[_0x5aa7e6(0x377)](_0x39d53a),this['_transformUndoredo'](_0x526cea),this[_0x5aa7e6(0x2f6)](_0x39d53a),this['_syncEditingCollabCursor'](_0x39d53a),this[_0x5aa7e6(0x1be)]();}};function _0x3751(){const _0x41b580=['[CollaborationState]:\x20apply\x20error!','capture','_stopTelemetryCollaborationNewChangeset','getCurrentRevOfUnit','isTransformChangesetsSuccess','objectActions','_transformRemoteChangesetByStateCache','[OfflineState]:\x20received\x20acknowledgement.','UniverLicensePlugin','UniverCollaborationPlugin','getTypeOfUnitAdded$','FETCH_MISS','COMPRESS_MUTATION_APPLY','[CollaborationSessionService]','originalMeta','csAckEvent','status$','transformMutationsWithChangeset','unit-cache-','unitInfo$','_resendTimeout','_toggleOffline','createInstance','saveChangeset','_HTTPService','offline','_sender','LocalUndoRedoService','requireSession','_remoteChangesetQueue','CollaborationEntity','awaiting_with_pending','CLOSE_ROOM','catch','_timeoutTimer','parseChangesetToProtocol','_onConnectionFailed','_emitMembers','212964AatjAe','_replaceFileID','LocaleService','permissionRejEvent','not_collab','/universer-api/file/{fileID}/sign-url','confirm','SyncedState','unknown','ICommandService','_sendingTimer','SYNCED','/universer-api/authz','OTHER_CLIENT_EDITING','_handleRemoteChangesets','IPermissionService','DocCollaborationEntity','IAuthzIoService','_transformUndoredo','_transformSelections','emitEvent','open$','init','_permissionService','/universer-api/user/session-ticket','/collaborator','getImage','/-/object/-/batch_allowed','_syncEditingCollabCursor','_getSendChangesetTimeout','saveSnapshot','_clearLocalCache','ERROR_EXCEED_SIZE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','create','refreshPermission','constructor','_updateLocalCache','WorkbookEditablePermission','ConflictState','getCurrentSelections','INGEST','session.room-cnt-exceeds','readAsDataURL','Injector','_rescheduleHeartbeat','resend','concatBytes','[PendingState]:\x20received\x20rejection.','SOCKET_FAILED_RETRY','396010asrBOy','prototype','LIVESHARE_OPERATION','FileId','code','origin','POST','_imageSourceCache','_change$','_initMergeInterceptor','_getUndoStack','_retryCount','&assign=','_onRemoteACK','slice','setShowComponents','JOIN','fetch_missing','socketService','/universer-api/snapshot/','parseProtocolChangeset','getOwnPropertyDescriptor','collaboration_new_changeset','_undoRedoService','/object/','event$','{fileID}','joinEvent','getValue','_getCtorByUniverInstanceType','SheetCollaborationEntity','_getAPIPrefixPath','selections','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_pendingMutations','setCfgEnableObjInherit','DEFAULT_COLLAB_WEB_SOCKET_URL','utf8ToBytes','csRejEvent','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','PendingState','getMemberID','list','_changesetSessionId','PERMISSION_DENIED','LIVESHARE_FETCH_OPERATIONS','ws://127.0.0.1:8000/universer-api/comb/connect','HTTPService','/new_changes','length','IContextService','getFocusedUnit','registerDependencies','_getAPIPrefix','interceptor','eventID','session.join-failed','IMentionIOService','/block/','_univerInstanceService','RevisionService','Subject','_logService','CollaborationSession','pipe','userID','downloadEndpointUrl','USERS_LEAVE','_awaitingChangeset','isPermissionRej','_singleActiveUnitService','deepClone','_scheduleCompleteTimestamp','LIVESHARE_REQUEST_HOST','_localeService','_executeRemoteChangeset','_clearRetryConnectingTimer','CompressMutationService','_shouldReportTelemetry','_configService','_getCurrentRevision','toStringTag','574927Lfwsbp','_clearHeartbeatTimer','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_exhaustRemoteChangesetQueue','PERMISSION_REJ','_socketService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','error','dispose','CommentService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getSheetBlock','ErrorCode','HEARTBEAT','InsertSheetMutation','PERSON','_transformStateCache','HEARTBEAT_INTERVAL','MentionType','getCollabEntity','onMissingChangesets','joinRsp','baseRev','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','RETRY_CONNECTING_MAX_COUNT_KEY','onMissedChangesetFetched','JOIN_ROOM_NOT_EXISTS','add','deleteCollaborator','_state$','_joinRoom','concatMap','stopTime','encrypt','state','_acknowledgeAwaiting','fetchMiss','unitId\x20is\x20not\x20found','0.24.0','requestParams','_throwTelemetryCollaborationNewChangeset','_getLoginPath','JSONX','OFFLINE','min','status','_onCombEvent','hostname','_substituteRedoStack','data','/universer-api/oidc/authpage','actions','collabWebSocketUrl','map','_acknowledgedAwaitingRevision','33IgWxrF','socket$','transformSelections','CommandType','_snapshotService','isArray','CollaborationController','createSocket','sort','SUBMIT_CHANGESET_TIMEOUT','&to=','_getSignURL','filter','override','delay','onlyLocal','_showConflictNotification','setCurrentUser','infoRsp','_changesetReqId','22YDGecR','_entityInit$','CollaborationUIEventService','mapDocumentTypeToUniverInstanceType','target','_snapshotServerService','roles','\x20to\x20','defineProperty','onRemoteChangeset','unitId','updatePermissionPoint','members$','CollaborationStatus','reqId','_event$','CollaborationUIEventId','UNIVER_DOC','forEach','FetchingMissState','_getUploadFileURL','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','workbook','638410SShMZk','authzUrl','_listenToNetworkCondition','&source=','_revisionService','avatar','editingUnit','enableCollaboration','saveImage','revision','isTransformMutationsWithChangesetSuccess','_resendWithTimeout','location','getInterceptPoints','_getDownloadEndpointURL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','equals','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onTransformRemoteChangesetByIMECache','isTransformMutationsWithChangesetFailure','updateCollaborator','_submitChangeset','ReplaySubject','onTransformSelections','sessionStatus$','unit','onTransformRemoteChangesetByStateCache','_clearUndo','FETCH_MISSING','_roomCreated$','fromCollab','_config','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','localeService','People','collaboratorID','socket\x20open.','generateRandomId','HEARTBEAT_TIMEOUT','_state','awaiting','getConfig','fetchThroughInterceptors','UPDATE_CURSOR','deserializeToCombResponse','CombCmd','post','routeKey','_init','changesets','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Inject','putCollaborators','_socketMessageSubscription','replace','DependentOn','ISocketService','DisposableCollection','_unitInfo$','SUBMIT_CHANGESET','_onConnectionOpen','_collabSessionService','ISnapshotServerService','getResourcesRequest','[CollaborationSession]','MergeInterceptorFactory','state$','AwaitingState','updateMember','univer-pro.collaboration-client.network-condition.service','cmd','_isEchoedAwaitingChangeset','_queuedRemoteChangesets','_onMessage','now','PENDING','onMutationExecutedForCollab','UniverNetworkPlugin','stringify','objects','params','NOT_COLLAB','onRemoteRej','socket\x20close','_status$','online$','_clearScheduledTask','SheetPermissionInitController','snapshotServerUrl','JOINING','headers','CHANGESET_REJ','ONLINE','retryConnectingInterval','focused$','connection\x20error','delete','_checkMissing','removeMember','take','UNISCRIPT_RUN','RECV','_socket','_tryEnsureSocket','then','encode','?size=','shareReplay','getAllMembers','message$','_handlerCallback','onSendChangeset','batchAllowed','2418927YezrUV','/universer-api/comb','_collaborationUIEventService','complete','_compressMutationService','SOCKET_FAILED','HELLO','_disableEditing','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','action','Module','object','_unitID','patch','toString','uniscriptRunEvent','leaveEvent','AwaitingWithPendingState','call','_createSocket','setWaitCount','_socket$','_members','sequenceExecute','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','registerHTTPInterceptor','AuthzIoHttpService','LOCAL_CACHE_INTERVAL','close','pending','randomBytes','4041VCVhFx','CollaborationSocketService','collabSubmitChangesetUrl','file','_updateState','b64DecodeUnicode','[FetchMissState]','@univerjs-pro/collaboration-client','ImageUploadStatusType','_toggleOnline','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','IUndoRedoService','[CollaborationSessionService]:\x20socket\x20error','append','SnapshotService','getCurrentUser','_onOffline','_onUserLeave','getMember','awaitingChangeset','_scheduleCollaborationTimeoutTimer','SheetTransformSelectionsService','addImageSourceCache','toDisposable','isInternalEditorID','startTime','subUnitId','subscribe','updateOfflineData','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','toPrimitive','method','RxDisposable','_onFetchMissResult','_candidateSocket','_transitionLocked','/object','_decreaseWaiting','liveShareNewHost','packageName','synced','push','/universer-api/uniscript','createIdentifier','COMMENT_UPDATE','get','Rectangle','getSheetId','_members$','HTTPRequest','error$','6BHcRde','debug','CollaborationEvent','/role','getSnapshotAPIPath','PSEUDO_FETCH_MISSING_RESULT','_substituteUndoStack','_httpService','UniverCollaborationClientPlugin','ILogService','_sessions','initWorkbookPermissionChange','onCommentUpdate','toggleOnline','_initRequestHeader','_transformIMECache','_incrementRevisionNumber','every','name','\x0aAfter:\x20','unsubscribe','_memberService','ITransformService','_sendHeartbeatTimer','_eventService','[CollaborationUndoRedoService]','onSyncEditingCollabCursor','_registerDependencies','getCollabEntity$','close$','_socketReady','onRemoteAck','NEW_CHANGESETS','AWAITING_WITH_PENDING','_waitForHeartbeatResponse','closeSession','string','shouldCloseConn','_startCollaboration','getUnitStatus$','OfflineState','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','missingChangesets','CHANGESET_ACK','DEFAULT_FILE_NAME','loginUrlKey','has','serializeCombRequest','reverse','clear','put','ISingleActiveUnitService','/-/object/list','_onJoinRoomEvent','getUnitType','[OfflineState]:\x20received\x20changeset.','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_roomMembers','_onLocalMutation','JOIN_ROOM_FULL','reduce','_isPermissionRej','SheetsSelectionsService','getDrawingImageAllowSize','_collaborationPaused','[CollaborationEntity]','_initCloseConn','_commentUpdate$','copyFileMeta','JOIN_ROOM_FAILED','getTypeOfUnitDisposed$','UNIVER_SHEET','__Key__','_clearCollaborationTimeoutTimer','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','compose','_telemetryInfo','textRanges','getUnit','_startTelemetryCollaborationNewChangeset','getImageSourceCache','onRemoteRetry','CmdRspCode','decorate','splice','href','?url=','_commentService','find','_userManagerService','_lockTransition','IConfigService','allowed','_acknowledgeAwaitingIfReady','FileSource','_networkConditionService','body','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_instanceService','unitID','UNIVER_COLLABORATION_CLIENT_PLUGIN','size','collaborators','IDLE','save\x20fail\x20reason\x20is\x20','loadUnit','executeCommand','dispose$','_onRemoteChangeset','_transformRemoteChangesetByIMECache','[DataLoaderService]','_maxTotalRetryTimeout','IUniverInstanceService','version','ImageSourceType','takeUntil','ILocalCacheService','function','listRoles','LIVESHARE_NEW_HOST','enableSingleActiveInstanceLock','_removeRoom','USERS_ENTER','merge','cbc','_injector','/allowed','getActiveSheet','mergeOverrideWithDependencies','_clearRedo','_onRecvEvent','toggleOffline','failed\x20to\x20apply\x20missed\x20changesets!','x-univer-host','withCredentials','subject','HEARTBEAT_TIMEOUT_KEY','responseType','_entities','_updateStatus','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','6760jnhInn','getTime','_collaborationSessionService','includes','LEAVE','Optional','result','conflict','getLatestCsReqIdBySid','transformChangesets','LIVESHARE_TERMINATE','COMPRESS_MUTATION_SEND','_replayCachedMutations','_createHandler','sid','m2Prime','_type','_localCacheService','ERROR_IMAGE','_onUserJoin','startsWith','localCacheService','/universer-api/stream/file/upload','_retryConnectingTimer','appendMutation','SHOULD_CLOSE_CONN','getLocalCacheKey','incrementRevOfUnit','_cfgEnableObjInherit','fetchMissingChangesets','reconnect','_handler','_clearTimeoutTimer','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','getUnitOnRev','session','onTransformIME','CHANGESET_SHOULD_RETRY','symbol','collaboration-client.config','onStarting','getUnitId','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','commentUpdate$','_transformAndApplyRemoteChangeset','next','auth.needGotoLoginAlert','loadSheet','MSG_FOR_ERROR','SnapshotServerOverHTTPService','editing\x20status\x20changed\x20to','url','_resendTimer','_collaborationTimeoutTimer','_initUnitPermissionChange','_getRedoStack','addHandlerCallback','_onRemoteRejected','_tryReconnect','disableLocalCache','pauseCollaboration','_unlockTransition','UniverInstanceType','floor','disposeWithMe','values','resolveWithBasePath','_schedule','MUTATION','ICollaborationSocketService','range','_waitCount','onTransformState','send','_sessionStatus$','_commandService','objectID','collaMsg','SessionStatus','[PendingState]:\x20unhandled\x20univer\x20type:\x20','MemberService','mutations','_initDependencies','SetSelectionsOperation','objectType','title','type','UUID','updateSnapshot','c1Prime','updateCursorEvent','CONFLICT','_transformService','univer-pro.collaboration-client-socket-service','2137444unMyNR','commentUpdateEvent','IImageIoService','set','SUCCUSS','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','submit\x20changeset\x20error!','_onConflict','[SyncedState]:\x20received\x20rejection.','reject','fetching\x20missing\x20changesets\x20from\x20','_transformStack','asObservable','Disposable','memberID','_doCreateSocket','_onRemoteRetry','BehaviorSubject','getDeserializedSheetBlock','_createInitialStateImpl','CollaborativeUndoRedoService','Quantity','enableOfflineEditing','UPDATE_PERMISSION_OBJ','newCsEvent','RETRY_CONNECTING_MAX_COUNT','enableAuthServer','default','Plugin','/unit/','loadOfflineData','transformUndoRedo','INetworkConditionService','change$','touchDependencies','_sheetTransformSelectionsService'];_0x3751=function(){return _0x41b580;};return _0x3751();}let A=class extends k{constructor(_0x22a79d,_0x32f5c3,_0x3efc82,_0x30a90c,_0x5a3f0b,_0x89a106,_0x285128,_0x38f8cd,_0x5eb520,_0x2033be){const _0x52d579=_0x639d9b;super(_0x22a79d,_0x32f5c3,null,[],_0x3efc82,_0x285128,_0x89a106,_0x30a90c,_0x2033be),this[_0x52d579(0x22b)]=_0x5a3f0b,this[_0x52d579(0x353)]=_0x38f8cd,this[_0x52d579(0x297)]=_0x5eb520,this[_0x52d579(0x250)]=_0x2033be,g(this,_0x52d579(0x394),_0x52d579(0x1a3));}['appendMutation'](_0x5bd1d2){const _0x54033d=_0x639d9b;let _0x2ca5bf=this[_0x54033d(0x22b)][_0x54033d(0x2d3)](j,this[_0x54033d(0x211)],this[_0x54033d(0x291)],[_0x5bd1d2],this[_0x54033d(0x25a)]);return _0x2ca5bf['_schedule'](),_0x2ca5bf[_0x54033d(0x308)](),_0x2ca5bf;}[_0x639d9b(0x3bb)](_0x366fac){const _0x13334a=_0x639d9b;if(this['_checkMissing'](_0x366fac))return this['_injector'][_0x13334a(0x2d3)](I,this[_0x13334a(0x211)],this[_0x13334a(0x291)],null,[],null,[_0x366fac],this['_handler']);try{let _0x2aac46=this[_0x13334a(0x297)][_0x13334a(0x2ce)](_0x366fac,[e['EmptyMutationInfo']]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x2aac46)){let {c1Prime:_0xe576e7}=_0x2aac46;return this[_0x13334a(0x360)](_0xe576e7),this;}throw _0x2aac46['error'];}catch(_0xd02b4d){return this[_0x13334a(0x353)][_0x13334a(0x36e)](_0xd02b4d),this[_0x13334a(0x2a0)](!0x1);}}['_onConflict'](_0x48fc35){const _0x2ecd36=_0x639d9b;return this[_0x2ecd36(0x22b)]['createInstance'](P,this[_0x2ecd36(0x211)],this[_0x2ecd36(0x291)],null,[],this[_0x2ecd36(0x25a)],_0x48fc35);}[_0x639d9b(0x1cd)](_0x3339a7){const _0x26d7e5=_0x639d9b;if(_0x3339a7['revision']<=this[_0x26d7e5(0x365)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x639d9b(0x13d)](){const _0x4b02e1=_0x639d9b;throw Error(_0x4b02e1(0x2a1));}['onRemoteRetry'](){return this;}[_0x639d9b(0x231)](){const _0x49d867=_0x639d9b;return this[_0x49d867(0x22b)][_0x49d867(0x2d3)](F,this['unitID'],this[_0x49d867(0x291)],null,[],this[_0x49d867(0x25a)]);}[_0x639d9b(0x1bb)](){return this;}[_0x639d9b(0x311)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x639d9b(0x38b)](){const _0x4d537a=_0x639d9b;let _0x210c31=this[_0x4d537a(0x3cd)][_0x4d537a(0x2c0)](this[_0x4d537a(0x211)]);return this[_0x4d537a(0x25a)][_0x4d537a(0x37b)]({'from':_0x210c31,'to':0x0}),this[_0x4d537a(0x22b)][_0x4d537a(0x2d3)](I,this[_0x4d537a(0x211)],this['type'],null,[],null,[],this[_0x4d537a(0x25a)]);}};A=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0x4,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x5,t[_0x639d9b(0x186)]),y(0x6,t[_0x639d9b(0x2ec)]),y(0x7,t[_0x639d9b(0x1b7)]),y(0x8,e['ITransformService']),y(0x9,(0x0,t[_0x639d9b(0x240)])(C))],A);let j=D=class extends k{constructor(_0x13e11f,_0x4f1faa,_0xe5fb65,_0x193a7e,_0x235dbd,_0x4a6b1f,_0x242f0e,_0x24085b,_0x3fdb6f,_0x12256a,_0x5b1aa6,_0x139779,_0x25b0be,_0x16e518){const _0x21b31b=_0x639d9b;super(_0x13e11f,_0x4f1faa,null,_0xe5fb65,_0x193a7e,_0x3fdb6f,_0x25b0be,_0x4a6b1f,_0x16e518),this['_injector']=_0x235dbd,this[_0x21b31b(0x1c3)]=_0x242f0e,this[_0x21b31b(0x353)]=_0x24085b,this[_0x21b31b(0x364)]=_0x12256a,this[_0x21b31b(0x297)]=_0x5b1aa6,this[_0x21b31b(0x350)]=_0x139779,g(this,'status',_0x21b31b(0x179)),g(this,_0x21b31b(0x35d),null),g(this,_0x21b31b(0x2ed),null);}['appendMutation'](_0x6c41e9){const _0x3ca1be=_0x639d9b;return this[_0x3ca1be(0x337)][_0x3ca1be(0x1a4)](_0x6c41e9),this[_0x3ca1be(0x308)](),this;}[_0x639d9b(0x3bb)](_0x337c5c){const _0x3875dc=_0x639d9b;if(this[_0x3875dc(0x14c)](_0x337c5c))return this[_0x3875dc(0x141)](),this[_0x3875dc(0x22b)][_0x3875dc(0x2d3)](I,this[_0x3875dc(0x211)],this[_0x3875dc(0x291)],null,this[_0x3875dc(0x337)],null,[_0x337c5c],this[_0x3875dc(0x25a)]);try{let _0xdb34f1=this[_0x3875dc(0x297)][_0x3875dc(0x2ce)](_0x337c5c,this['_pendingMutations']);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0xdb34f1)){let {c1Prime:_0x3f1641,m2Prime:_0x5254b8}=_0xdb34f1;this['_executeRemoteChangeset'](_0x3f1641);let _0x266c61=this[_0x3875dc(0x22b)]['createInstance'](D,this[_0x3875dc(0x211)],this[_0x3875dc(0x291)],_0x5254b8,this[_0x3875dc(0x25a)]);this['_clearScheduledTask']();let _0x405ed3=new Date()[_0x3875dc(0x23c)](),_0x7c62a5=this[_0x3875dc(0x35d)]?Math['max'](this[_0x3875dc(0x35d)]-_0x405ed3,0x0):this[_0x3875dc(0x300)]();return _0x266c61[_0x3875dc(0x27e)](_0x7c62a5),_0x266c61;}throw _0xdb34f1[_0x3875dc(0x36e)];}catch(_0xd877e8){return this['_logService'][_0x3875dc(0x36e)](_0xd877e8),this[_0x3875dc(0x2a0)](!0x1);}}['onRemoteAck'](_0x13c840){const _0x20adf3=_0x639d9b;if(_0x13c840[_0x20adf3(0x3d2)]<=this[_0x20adf3(0x365)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x639d9b(0x13d)](){const _0x530ed5=_0x639d9b;throw Error(_0x530ed5(0x313));}[_0x639d9b(0x1ff)](){return this;}[_0x639d9b(0x231)](){const _0x4ea5f0=_0x639d9b;return this[_0x4ea5f0(0x141)](),this[_0x4ea5f0(0x22b)]['createInstance'](F,this[_0x4ea5f0(0x211)],this[_0x4ea5f0(0x291)],null,this['_pendingMutations'],this[_0x4ea5f0(0x25a)]);}['toggleOnline'](){return this;}[_0x639d9b(0x27e)](_0x7b2286){const _0x82d3dd=_0x639d9b;let _0x19b6df=_0x7b2286==null?this[_0x82d3dd(0x300)]():_0x7b2286;this[_0x82d3dd(0x35d)]=new Date()[_0x82d3dd(0x23c)]()+_0x19b6df,this[_0x82d3dd(0x2ed)]=setTimeout(()=>{const _0x239d18=_0x82d3dd;this['_clearScheduledTask']();let _0x4bb6ab=null;switch(this['type']){case t[_0x239d18(0x279)][_0x239d18(0x1f5)]:_0x4bb6ab=pe(this[_0x239d18(0x337)],this[_0x239d18(0x211)],this[_0x239d18(0x350)],this['_revisionService'],this[_0x239d18(0x1c3)]);break;case t['UniverInstanceType'][_0x239d18(0x3c3)]:_0x4bb6ab=this[_0x239d18(0x337)][_0x239d18(0x1bf)](_0x250462=>_0x250462['id']===n['RichTextEditingMutation']['id'])?me(this[_0x239d18(0x337)],this['unitID'],this[_0x239d18(0x350)],this[_0x239d18(0x3cd)],this[_0x239d18(0x1c3)]):pe(this[_0x239d18(0x337)],this[_0x239d18(0x211)],this[_0x239d18(0x350)],this['_revisionService'],this[_0x239d18(0x1c3)]);break;default:throw Error(_0x239d18(0x28a)+this[_0x239d18(0x291)]+'\x20in\x20_schedule.');}let {changeset:_0x493dc5,pendingMutations:_0x43f70a}=_0x4bb6ab;this['_handler'][_0x239d18(0x15a)](_0x493dc5);let _0x2c470a=_0x43f70a['length']?this[_0x239d18(0x22b)][_0x239d18(0x2d3)](N,this[_0x239d18(0x211)],this[_0x239d18(0x291)],_0x493dc5,_0x43f70a,this[_0x239d18(0x25a)],void 0x0):this['_injector'][_0x239d18(0x2d3)](M,this[_0x239d18(0x211)],this[_0x239d18(0x291)],_0x493dc5,this['_handler']);_0x2c470a[_0x239d18(0x308)](),this[_0x239d18(0x25a)]['onStateChange'](this,_0x2c470a);},_0x19b6df);}[_0x639d9b(0x300)](){const _0x48cd4e=_0x639d9b;var _0x39a936;let _0xa6905b=this[_0x48cd4e(0x364)]['getConfig'](E);return(_0x39a936=_0xa6905b==null?void 0x0:_0xa6905b['sendChangesetTimeout'])==null?0x7d0:_0x39a936;}[_0x639d9b(0x311)](){const _0x2e3cc8=_0x639d9b;throw Error(_0x2e3cc8(0x33c));}[_0x639d9b(0x141)](){const _0x1f7154=_0x639d9b;this[_0x1f7154(0x2ed)]!=null&&(clearTimeout(this[_0x1f7154(0x2ed)]),this[_0x1f7154(0x2ed)]=null);}['_onConflict'](_0x63f4c6){const _0x35ff10=_0x639d9b;return this['_clearScheduledTask'](),this['_injector'][_0x35ff10(0x2d3)](P,this[_0x35ff10(0x211)],this['type'],null,this['_pendingMutations'],this[_0x35ff10(0x25a)],_0x63f4c6);}};j=D=b([y(0x4,(0x0,t['Inject'])(t[_0x639d9b(0x30f)])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(x)),y(0x7,t['ILogService']),y(0x8,t[_0x639d9b(0x2ec)]),y(0x9,t['IConfigService']),y(0xa,e[_0x639d9b(0x1c4)]),y(0xb,t['IUniverInstanceService']),y(0xc,t[_0x639d9b(0x186)]),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],j);let M=O=class extends k{constructor(_0x200427,_0x27a2dc,_0x250625,_0x25b2a8,_0x229f0a,_0x1ce3de,_0x37d4aa,_0x386f7b,_0x2921a1,_0x31d652,_0x432e4c){const _0x2b304c=_0x639d9b;super(_0x200427,_0x27a2dc,_0x250625,[],_0x25b2a8,_0x37d4aa,_0x31d652,_0x1ce3de,_0x432e4c),this[_0x2b304c(0x22b)]=_0x229f0a,this[_0x2b304c(0x353)]=_0x386f7b,this[_0x2b304c(0x297)]=_0x2921a1,g(this,'status','awaiting'),g(this,_0x2b304c(0x2d1),0x0),g(this,_0x2b304c(0x21d),0x0),g(this,_0x2b304c(0x26f),void 0x0),g(this,_0x2b304c(0x2d7),void 0x0);}[_0x639d9b(0x253)](_0x53b6ea){const _0x52204c=_0x639d9b;this['_clearScheduledTask']();let _0x147fc8=this['_injector'][_0x52204c(0x2d3)](N,this[_0x52204c(0x211)],this[_0x52204c(0x291)],this[_0x52204c(0x359)],[_0x53b6ea],this[_0x52204c(0x25a)],this[_0x52204c(0x26f)]);return _0x147fc8[_0x52204c(0x308)](),_0x147fc8;}[_0x639d9b(0x3bb)](_0x2496a8){const _0x473fb6=_0x639d9b;if(this[_0x473fb6(0x14c)](_0x2496a8))return this[_0x473fb6(0x141)](),this[_0x473fb6(0x22b)][_0x473fb6(0x2d3)](I,this[_0x473fb6(0x211)],this[_0x473fb6(0x291)],this[_0x473fb6(0x359)],[],null,[_0x2496a8],this['_handler']);try{let _0x473e9b=this[_0x473fb6(0x297)][_0x473fb6(0x244)]([_0x2496a8],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x473fb6(0x2c1)])(_0x473e9b)){let {c1Prime:_0xe582e5,c2Prime:_0x19473c}=_0x473e9b;this[_0x473fb6(0x360)](_0xe582e5[0x0]),_0x19473c[0x0][_0x473fb6(0x37d)]=this[_0x473fb6(0x365)](),this[_0x473fb6(0x141)]();let _0x40f235=this[_0x473fb6(0x22b)][_0x473fb6(0x2d3)](O,this[_0x473fb6(0x211)],this['type'],_0x19473c[0x0],this[_0x473fb6(0x25a)]);return _0x40f235[_0x473fb6(0x308)](),_0x40f235;}throw _0x473e9b[_0x473fb6(0x36e)];}catch(_0x12b405){return this[_0x473fb6(0x353)][_0x473fb6(0x36e)](_0x12b405),this[_0x473fb6(0x2a0)](!0x1);}}['onRemoteAck'](_0x6be7f4){const _0x311fb2=_0x639d9b;this[_0x311fb2(0x141)]();let _0x29fa9b=this[_0x311fb2(0x3cd)]['getCurrentRevOfUnit'](this[_0x311fb2(0x211)]);if(_0x6be7f4[_0x311fb2(0x3d2)]<=_0x29fa9b)return this;if(this['_checkMissing'](_0x6be7f4))return this[_0x311fb2(0x22b)][_0x311fb2(0x2d3)](I,this[_0x311fb2(0x211)],this['type'],this['_awaitingChangeset'],[],_0x6be7f4[_0x311fb2(0x3d2)],[],this[_0x311fb2(0x25a)]);this[_0x311fb2(0x1be)]();let _0x3e0d16=this['_injector'][_0x311fb2(0x2d3)](A,this['unitID'],this[_0x311fb2(0x291)],this[_0x311fb2(0x25a)]);return _0x3e0d16[_0x311fb2(0x308)](),_0x3e0d16;}[_0x639d9b(0x13d)](_0x27ef62){const _0x5a8f0b=_0x639d9b;return this[_0x5a8f0b(0x2a0)](!!(_0x27ef62!=null&&_0x27ef62[_0x5a8f0b(0x35a)]));}['onRemoteRetry'](_0x237e41){const _0x399ecd=_0x639d9b;return this[_0x399ecd(0x21d)]>ye?this[_0x399ecd(0x231)]():(this[_0x399ecd(0x26f)]=he(this[_0x399ecd(0x2d1)],{'timeout':this[_0x399ecd(0x2d1)],'reqId':_0x237e41[_0x399ecd(0x3c0)]}),this['_sender']=this['_resendTimer'][_0x399ecd(0x196)](({reqId:_0x56e94c,timeout:_0x57a973})=>{const _0x2075a0=_0x399ecd;this[_0x2075a0(0x3d4)](_0x56e94c,_0x57a973);}),this);}[_0x639d9b(0x231)](){const _0x58d264=_0x639d9b;return this[_0x58d264(0x141)](),this[_0x58d264(0x22b)][_0x58d264(0x2d3)](F,this['unitID'],this[_0x58d264(0x291)],this[_0x58d264(0x359)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x639d9b(0x311)](){const _0x18fc1c=_0x639d9b;this[_0x18fc1c(0x25a)]['onSendChangeset'](this[_0x18fc1c(0x359)]);}['_onConflict'](_0xf2f455){const _0x2e4946=_0x639d9b;return this[_0x2e4946(0x141)](),this[_0x2e4946(0x22b)][_0x2e4946(0x2d3)](P,this['unitID'],this[_0x2e4946(0x291)],this['_awaitingChangeset'],[],this[_0x2e4946(0x25a)],_0xf2f455);}[_0x639d9b(0x3d4)](_0x55c81e,_0x59dda5){const _0x205b1e=_0x639d9b;var _0x30b9f6;_0x55c81e===((_0x30b9f6=this[_0x205b1e(0x359)])==null?void 0x0:_0x30b9f6[_0x205b1e(0x3c0)])&&(this['resend'](),this[_0x205b1e(0x2d1)]=_0x59dda5===0x0?0x3e8:Math[_0x205b1e(0x393)](_0x59dda5*0x2,ve),this[_0x205b1e(0x21d)]+=this[_0x205b1e(0x2d1)]);}[_0x639d9b(0x141)](){const _0x3338f9=_0x639d9b;var _0x4fded2;(_0x4fded2=this[_0x3338f9(0x2d7)])==null||_0x4fded2[_0x3338f9(0x1c2)](),this[_0x3338f9(0x2d1)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};M=O=b([y(0x4,(0x0,t['Inject'])(t[_0x639d9b(0x30f)])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0x6,t[_0x639d9b(0x2ec)]),y(0x7,t['ILogService']),y(0x8,e['ITransformService']),y(0x9,t[_0x639d9b(0x186)]),y(0xa,(0x0,t['Optional'])(C))],M);let N=ge=class extends k{constructor(_0x495d86,_0x1d783e,_0x1c554b,_0x2dd1a6,_0x3ad988,_0x3c4cfa,_0x306637,_0x114c95,_0x31f0d8,_0x166a4a,_0x136fc5,_0x5eda55,_0x3f1e83){const _0x4b4e1e=_0x639d9b;super(_0x495d86,_0x1d783e,_0x1c554b,_0x2dd1a6,_0x3ad988,_0x31f0d8,_0x5eda55,_0x114c95,_0x3f1e83),this[_0x4b4e1e(0x22b)]=_0x306637,this['_logService']=_0x166a4a,this[_0x4b4e1e(0x297)]=_0x136fc5,this[_0x4b4e1e(0x250)]=_0x3f1e83,g(this,_0x4b4e1e(0x394),_0x4b4e1e(0x2dc)),g(this,_0x4b4e1e(0x2d1),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x4b4e1e(0x26f),void 0x0),g(this,_0x4b4e1e(0x2d7),void 0x0),_0x3c4cfa&&(this['_resendTimer']=_0x3c4cfa,this[_0x4b4e1e(0x2d7)]=this['_resendTimer']['subscribe'](({reqId:_0x304dec,timeout:_0x404a9e})=>{const _0x16be6d=_0x4b4e1e;this[_0x16be6d(0x3d4)](_0x304dec,_0x404a9e);}));}[_0x639d9b(0x253)](_0x522661){const _0x49f808=_0x639d9b;return this[_0x49f808(0x337)][_0x49f808(0x1a4)](_0x522661),this;}[_0x639d9b(0x3bb)](_0x2e7bbf){const _0x419c28=_0x639d9b;if(this['_checkMissing'](_0x2e7bbf))return this[_0x419c28(0x141)](),this[_0x419c28(0x22b)][_0x419c28(0x2d3)](I,this['unitID'],this[_0x419c28(0x291)],this[_0x419c28(0x359)],this[_0x419c28(0x337)],null,[_0x2e7bbf],this['_handler']);try{let _0x4ee86d=this[_0x419c28(0x297)][_0x419c28(0x244)]([_0x2e7bbf],[this[_0x419c28(0x359)]],!0x1);if((0x0,e[_0x419c28(0x2c1)])(_0x4ee86d)){let {c1Prime:_0xc05470,c2Prime:_0x54f435}=_0x4ee86d,_0x305742=this[_0x419c28(0x297)]['transformMutationsWithChangeset'](_0xc05470[0x0],this[_0x419c28(0x337)]);if((0x0,e[_0x419c28(0x3d3)])(_0x305742)){let {c1Prime:_0x1a162d,m2Prime:_0x3cd8c5}=_0x305742;return this[_0x419c28(0x360)](_0x1a162d),_0x54f435[0x0]['baseRev']=this[_0x419c28(0x365)](),this[_0x419c28(0x141)](),this['_injector'][_0x419c28(0x2d3)](ge,this[_0x419c28(0x211)],this[_0x419c28(0x291)],_0x54f435[0x0],_0x3cd8c5,this[_0x419c28(0x25a)],void 0x0);}throw _0x305742['error'];}throw _0x4ee86d['error'];}catch(_0x3c51ad){return this[_0x419c28(0x353)][_0x419c28(0x36e)](_0x3c51ad),this[_0x419c28(0x2a0)](!0x1);}}[_0x639d9b(0x1cd)](_0x560763){const _0x40de90=_0x639d9b;this[_0x40de90(0x141)]();let _0x2a01d1=this[_0x40de90(0x365)]();if(_0x560763['revision']<=_0x2a01d1)return this;if(this[_0x40de90(0x14c)](_0x560763))return this['_injector'][_0x40de90(0x2d3)](I,this[_0x40de90(0x211)],this[_0x40de90(0x291)],this['_awaitingChangeset'],this['_pendingMutations'],_0x560763['revision'],[],this[_0x40de90(0x25a)]);this[_0x40de90(0x1be)]();let _0x8509a6=this[_0x40de90(0x22b)]['createInstance'](j,this['unitID'],this[_0x40de90(0x291)],this[_0x40de90(0x337)],this[_0x40de90(0x25a)]);return _0x8509a6[_0x40de90(0x27e)](),_0x8509a6[_0x40de90(0x308)](),_0x8509a6;}[_0x639d9b(0x13d)](_0x3d429d){const _0xf1d41=_0x639d9b;return this['_onConflict'](!!(_0x3d429d!=null&&_0x3d429d[_0xf1d41(0x35a)]));}[_0x639d9b(0x1ff)](_0x5b499a){const _0x2c0e38=_0x639d9b;return this[_0x2c0e38(0x21d)]>ye?this[_0x2c0e38(0x231)]():(this[_0x2c0e38(0x26f)]=he(this[_0x2c0e38(0x2d1)],{'timeout':this[_0x2c0e38(0x2d1)],'reqId':_0x5b499a[_0x2c0e38(0x3c0)]}),this['_sender']=this[_0x2c0e38(0x26f)][_0x2c0e38(0x196)](({reqId:_0x27f39d,timeout:_0x8f5d56})=>{const _0x1425a9=_0x2c0e38;this[_0x1425a9(0x3d4)](_0x27f39d,_0x8f5d56);}),this);}[_0x639d9b(0x231)](){const _0x398f92=_0x639d9b;return this[_0x398f92(0x141)](),this[_0x398f92(0x22b)][_0x398f92(0x2d3)](F,this[_0x398f92(0x211)],this['type'],this[_0x398f92(0x359)],this['_pendingMutations'],this[_0x398f92(0x25a)]);}[_0x639d9b(0x1bb)](){return this;}[_0x639d9b(0x311)](){const _0x4de24b=_0x639d9b;this[_0x4de24b(0x25a)]['onSendChangeset'](this[_0x4de24b(0x359)]);}[_0x639d9b(0x2a0)](_0x447940){const _0x232698=_0x639d9b;return this[_0x232698(0x141)](),this[_0x232698(0x22b)]['createInstance'](P,this[_0x232698(0x211)],this[_0x232698(0x291)],null,this[_0x232698(0x337)],this[_0x232698(0x25a)],_0x447940);}['_resendWithTimeout'](_0x3d55bb,_0x51a0d1){const _0x5e4afb=_0x639d9b;var _0x4f2da5;_0x3d55bb===((_0x4f2da5=this['_awaitingChangeset'])==null?void 0x0:_0x4f2da5[_0x5e4afb(0x3c0)])&&(this[_0x5e4afb(0x311)](),this[_0x5e4afb(0x2d1)]=_0x51a0d1===0x0?0x3e8:Math[_0x5e4afb(0x393)](_0x51a0d1*0x2,ve),this[_0x5e4afb(0x21d)]+=this['_resendTimeout']);}[_0x639d9b(0x141)](){var _0x213f88;(_0x213f88=this['_sender'])==null||_0x213f88['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};N=ge=b([y(0x6,(0x0,t['Inject'])(t[_0x639d9b(0x30f)])),y(0x7,(0x0,t['Inject'])(e[_0x639d9b(0x351)])),y(0x8,t['ICommandService']),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,e[_0x639d9b(0x1c4)]),y(0xb,t['IUndoRedoService']),y(0xc,(0x0,t[_0x639d9b(0x240)])(C))],N);let P=class extends k{constructor(_0x829297,_0x47782d,_0x1d3aa4,_0x4c3fe6,_0x5d7262,_0x386968=!0x1,_0x3e3be1,_0x5ca9e6,_0x2d4c22,_0x3ee3eb,_0x20efce,_0x4819ef,_0x3092ca){const _0x5e2877=_0x639d9b;super(_0x829297,_0x47782d,_0x1d3aa4,_0x4c3fe6,_0x5d7262,_0x5ca9e6,_0x2d4c22,_0x3ee3eb,_0x3092ca),this[_0x5e2877(0x1eb)]=_0x386968,this[_0x5e2877(0x2fa)]=_0x3e3be1,this[_0x5e2877(0x35f)]=_0x20efce,this[_0x5e2877(0x15e)]=_0x4819ef,this[_0x5e2877(0x250)]=_0x3092ca,g(this,'status',_0x5e2877(0x242)),this['_showConflictNotification'](),this[_0x5e2877(0x302)](),this[_0x5e2877(0x163)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x639d9b(0x1cd)](){return this;}[_0x639d9b(0x13d)](){return this;}['onRemoteRetry'](){return this;}[_0x639d9b(0x231)](){return this;}[_0x639d9b(0x1bb)](){return this;}['resend'](){const _0x1a389f=_0x639d9b;throw Error(_0x1a389f(0x1f8));}[_0x639d9b(0x302)](){const _0x5850c0=_0x639d9b;var _0x5d0c2d;(_0x5d0c2d=this['_localCacheService'])==null||_0x5d0c2d[_0x5850c0(0x197)](this[_0x5850c0(0x211)],this[_0x5850c0(0x291)],null,[]);}[_0x639d9b(0x3ae)](){const _0x54ba7d=_0x639d9b;this[_0x54ba7d(0x1eb)]?this[_0x54ba7d(0x15e)][_0x54ba7d(0x2f7)]({'id':_0x54ba7d(0x341)}):this['_collaborationUIEventService'][_0x54ba7d(0x2f7)]({'id':_0x54ba7d(0x296)});}['_disableEditing'](){const _0x248000=_0x639d9b;this[_0x248000(0x2fa)][_0x248000(0x3bd)](new r[(_0x248000(0x309))](this[_0x248000(0x211)])['id'],!0x1);}};P=b([y(0x6,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x2f2)])),y(0x7,t[_0x639d9b(0x2ec)]),y(0x8,t[_0x639d9b(0x186)]),y(0x9,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0xa,(0x0,t['Inject'])(t[_0x639d9b(0x2e5)])),y(0xb,(0x0,t['Inject'])(_)),y(0xc,(0x0,t['Optional'])(C))],P);let F=class extends k{constructor(_0x50b1d7,_0x3f1925,_0x28ac17,_0x228cd7,_0x43f590,_0x197368,_0x17c003,_0x495db7,_0x14da45,_0x2a10db){const _0x20ec16=_0x639d9b;super(_0x50b1d7,_0x3f1925,_0x28ac17,_0x228cd7,_0x43f590,_0x495db7,_0x14da45,_0x17c003,_0x2a10db),this[_0x20ec16(0x22b)]=_0x197368,g(this,_0x20ec16(0x394),'offline');}[_0x639d9b(0x253)](_0x545c76){const _0x123713=_0x639d9b;return this[_0x123713(0x337)][_0x123713(0x1a4)](_0x545c76),this[_0x123713(0x308)](),this;}[_0x639d9b(0x3bb)](_0x1bdd95){const _0x3b265d=_0x639d9b;throw Error(_0x3b265d(0x1e5));}[_0x639d9b(0x1cd)](){const _0x5c6972=_0x639d9b;throw Error(_0x5c6972(0x2c4));}[_0x639d9b(0x13d)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x639d9b(0x1ff)](){return this;}[_0x639d9b(0x231)](){return this;}[_0x639d9b(0x1bb)](){const _0x144c9e=_0x639d9b;let {_injector:_0x2b7c7e,_pendingMutations:_0xaeaf2b,_awaitingChangeset:_0x3e3662,unitID:_0x5d9bd0,_handler:_0x5a23a4,type:_0x528b77}=this,_0x31f3f8=be(_0x2b7c7e,_0x5d9bd0,_0x528b77,_0x3e3662,_0xaeaf2b,_0x5a23a4);return _0x31f3f8 instanceof j?_0x31f3f8[_0x144c9e(0x27e)]():(_0x31f3f8 instanceof N||_0x31f3f8 instanceof M)&&_0x31f3f8['resend'](),_0x31f3f8;}[_0x639d9b(0x311)](){const _0x4eeb96=_0x639d9b;throw Error(_0x4eeb96(0x25c));}};F=b([y(0x5,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x7,t['ICommandService']),y(0x8,t[_0x639d9b(0x186)]),y(0x9,(0x0,t[_0x639d9b(0x240)])(C))],F);let I=class extends k{constructor(_0x47f438,_0x434768,_0x2c915a,_0x16b19c,_0x175239,_0x11ab3f,_0x4dc573,_0x574fce,_0x13a9c2,_0x525e53,_0x565513,_0x541f2f,_0xf8c75c,_0x5a3f89){const _0x56aaf6=_0x639d9b;super(_0x47f438,_0x434768,_0x2c915a,_0x16b19c,_0x4dc573,_0x565513,_0x541f2f,_0x13a9c2,_0x5a3f89),this['_acknowledgedAwaitingRevision']=_0x175239,this[_0x56aaf6(0x133)]=_0x11ab3f,this[_0x56aaf6(0x22b)]=_0x574fce,this[_0x56aaf6(0x353)]=_0x525e53,this['_transformService']=_0xf8c75c,this['localCacheService']=_0x5a3f89,g(this,'status',_0x56aaf6(0x326));}[_0x639d9b(0x380)](_0x3a0a2a){const _0x589e8e=_0x639d9b;try{if(this['_handleRemoteChangesets'](_0x3a0a2a)[_0x589e8e(0x1d8)])throw Error(_0x589e8e(0x1e6));if(this['_handleRemoteChangesets']([...this[_0x589e8e(0x133)]][_0x589e8e(0x3a6)]((_0x1591e2,_0x5bd010)=>_0x1591e2[_0x589e8e(0x3d2)]-_0x5bd010[_0x589e8e(0x3d2)]))[_0x589e8e(0x1d8)])return this[_0x589e8e(0x133)]=[],this[_0x589e8e(0x308)](),this[_0x589e8e(0x25a)]['onMissingChangesets']({'from':this[_0x589e8e(0x365)](),'to':0x0}),this;let _0x59e80a=this['_awaitingChangeset'],_0x36a036=this[_0x589e8e(0x337)],_0x251268;if(_0x59e80a&&_0x36a036['length']!==0x0)_0x251268=this[_0x589e8e(0x22b)]['createInstance'](N,this['unitID'],this[_0x589e8e(0x291)],_0x59e80a,_0x36a036,this[_0x589e8e(0x25a)],void 0x0);else{if(_0x59e80a&&_0x36a036[_0x589e8e(0x346)]===0x0)_0x59e80a[_0x589e8e(0x37d)]=this[_0x589e8e(0x365)](),_0x251268=this[_0x589e8e(0x22b)][_0x589e8e(0x2d3)](M,this['unitID'],this[_0x589e8e(0x291)],_0x59e80a,this[_0x589e8e(0x25a)]);else{if(_0x36a036[_0x589e8e(0x346)]!==0x0){let _0x3669a5=this['_injector'][_0x589e8e(0x2d3)](j,this['unitID'],this['type'],_0x36a036,this[_0x589e8e(0x25a)]);_0x3669a5['_schedule'](),_0x251268=_0x3669a5;}else _0x251268=this[_0x589e8e(0x22b)][_0x589e8e(0x2d3)](A,this[_0x589e8e(0x211)],this['type'],this[_0x589e8e(0x25a)]);}}return _0x251268[_0x589e8e(0x308)](),_0x251268;}catch(_0x5aed8d){return this[_0x589e8e(0x353)][_0x589e8e(0x36e)](_0x589e8e(0x181),_0x589e8e(0x232),_0x5aed8d),this['_injector']['createInstance'](P,this[_0x589e8e(0x211)],this[_0x589e8e(0x291)],this['_awaitingChangeset'],this[_0x589e8e(0x337)],this[_0x589e8e(0x25a)],!0x1);}}[_0x639d9b(0x2f1)](_0x48d571){const _0x223739=_0x639d9b;this[_0x223739(0x20b)]();for(let _0x17882c=0x0;_0x17882c<_0x48d571[_0x223739(0x346)];_0x17882c++){let _0x4956d3=_0x48d571[_0x17882c],_0x49fc25=this[_0x223739(0x365)]();if(!(_0x4956d3['revision']<=_0x49fc25)){if(_0x4956d3[_0x223739(0x3d2)]>_0x49fc25+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x4956d3)){this['_acknowledgeAwaiting']();continue;}this[_0x223739(0x267)](_0x4956d3),this[_0x223739(0x20b)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x4bcecf){const _0x161278=_0x639d9b;let _0x55c000=_0x4bcecf,_0x3690d5=this[_0x161278(0x359)];if(_0x3690d5){let _0x436d01=this[_0x161278(0x297)][_0x161278(0x244)]([_0x4bcecf],[_0x3690d5],!0x1);if(!(0x0,e[_0x161278(0x2c1)])(_0x436d01))throw _0x436d01['error'];_0x55c000=_0x436d01[_0x161278(0x294)][0x0],_0x3690d5=_0x436d01['c2Prime'][0x0];}let _0x3b9198=this[_0x161278(0x337)];if(_0x3b9198[_0x161278(0x346)]){let _0x112d36=this[_0x161278(0x297)]['transformMutationsWithChangeset'](_0x55c000,_0x3b9198);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x112d36))throw _0x112d36[_0x161278(0x36e)];_0x55c000=_0x112d36[_0x161278(0x294)],_0x3b9198=_0x112d36[_0x161278(0x24a)];}this[_0x161278(0x360)](_0x55c000),_0x3690d5&&(_0x3690d5[_0x161278(0x37d)]=this[_0x161278(0x365)]()),this[_0x161278(0x359)]=_0x3690d5,this[_0x161278(0x337)]=_0x3b9198;}[_0x639d9b(0x20b)](){const _0x5c5e1f=_0x639d9b;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x1b88b4=this[_0x5c5e1f(0x365)]();if(this['_acknowledgedAwaitingRevision']<=_0x1b88b4)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this[_0x5c5e1f(0x39d)]===_0x1b88b4+0x1&&this[_0x5c5e1f(0x38a)]();}[_0x639d9b(0x38a)](){const _0xdab8da=_0x639d9b;this[_0xdab8da(0x1be)](),this[_0xdab8da(0x359)]=null,this[_0xdab8da(0x39d)]=null;}[_0x639d9b(0x132)](_0x40ff5e){const _0x223497=_0x639d9b;let _0x384f2e=this[_0x223497(0x359)];return!_0x384f2e||!_0x384f2e[_0x223497(0x249)]||_0x384f2e['reqId']===null||_0x384f2e[_0x223497(0x3c0)]===void 0x0?!0x1:_0x40ff5e['unitID']===_0x384f2e[_0x223497(0x211)]&&_0x40ff5e[_0x223497(0x249)]===_0x384f2e[_0x223497(0x249)]&&_0x40ff5e[_0x223497(0x3c0)]===_0x384f2e[_0x223497(0x3c0)];}[_0x639d9b(0x311)](){const _0x25525f=_0x639d9b;throw Error(_0x25525f(0x174));}[_0x639d9b(0x253)](_0x24396a){const _0x8231e1=_0x639d9b;return this[_0x8231e1(0x337)][_0x8231e1(0x1a4)](_0x24396a),this;}[_0x639d9b(0x3bb)](_0x1421d2){const _0x1118f6=_0x639d9b;return this['_queuedRemoteChangesets'][_0x1118f6(0x1a4)](_0x1421d2),this;}[_0x639d9b(0x1cd)](_0x5698e0){const _0x5d4f82=_0x639d9b;if(this[_0x5d4f82(0x359)]){let _0x2c410e=this[_0x5d4f82(0x365)]();return _0x5698e0[_0x5d4f82(0x3d2)]<=_0x2c410e||(_0x2c410e+0x1===_0x5698e0[_0x5d4f82(0x3d2)]?(this[_0x5d4f82(0x1be)](),this['_awaitingChangeset']=null,this[_0x5d4f82(0x39d)]=null):this['_acknowledgedAwaitingRevision']=_0x5698e0[_0x5d4f82(0x3d2)]),this;}if(_0x5698e0[_0x5d4f82(0x3d2)]<=this['_getCurrentRevision']())return this;throw Error(_0x5d4f82(0x371));}[_0x639d9b(0x13d)](_0x3a8495){const _0x4d2351=_0x639d9b;return this[_0x4d2351(0x2a0)](!!(_0x3a8495!=null&&_0x3a8495[_0x4d2351(0x35a)]));}[_0x639d9b(0x1ff)](){return this;}[_0x639d9b(0x231)](){const _0x4e388a=_0x639d9b;return this[_0x4e388a(0x22b)]['createInstance'](F,this[_0x4e388a(0x211)],this['type'],this[_0x4e388a(0x359)],this[_0x4e388a(0x337)],this[_0x4e388a(0x25a)]);}[_0x639d9b(0x1bb)](){return this;}[_0x639d9b(0x2a0)](_0x3b9fdc){const _0x461a95=_0x639d9b;return this[_0x461a95(0x22b)][_0x461a95(0x2d3)](P,this[_0x461a95(0x211)],this[_0x461a95(0x291)],this[_0x461a95(0x359)],this[_0x461a95(0x337)],this['_handler'],_0x3b9fdc);}};I=b([y(0x7,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x8,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,t[_0x639d9b(0x2ec)]),y(0xb,t['IUndoRedoService']),y(0xc,e[_0x639d9b(0x1c4)]),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],I);function be(_0x19abbd,_0x1094c3,_0x4bfb6c,_0x34c089,_0x5bb941,_0x20d01c){const _0x5935d0=_0x639d9b;return _0x34c089&&_0x5bb941[_0x5935d0(0x346)]?_0x19abbd[_0x5935d0(0x2d3)](N,_0x1094c3,_0x4bfb6c,_0x34c089,_0x5bb941,_0x20d01c,void 0x0):_0x34c089?_0x19abbd[_0x5935d0(0x2d3)](M,_0x1094c3,_0x4bfb6c,_0x34c089,_0x20d01c):_0x5bb941[_0x5935d0(0x346)]?_0x19abbd[_0x5935d0(0x2d3)](j,_0x1094c3,_0x4bfb6c,_0x5bb941,_0x20d01c):_0x19abbd[_0x5935d0(0x2d3)](A,_0x1094c3,_0x4bfb6c,_0x20d01c);}let L=class extends t[_0x639d9b(0x19b)]{get[_0x639d9b(0x389)](){const _0x206bee=_0x639d9b;return this[_0x206bee(0x112)];}constructor(_0x29faa6,_0x425089,_0x4a8935,_0x51931c,_0x2c1f04,_0x10e65a,_0x14aa4b,_0x594fde,_0x1d12d9,_0x2db0da,_0x25cd8c,_0x34d1cb,_0x44f715,_0x69e84d){const _0x14f1fa=_0x639d9b;super(),this[_0x14f1fa(0x211)]=_0x29faa6,this[_0x14f1fa(0x25e)]=_0x425089,this[_0x14f1fa(0x24b)]=_0x4a8935,this[_0x14f1fa(0x22b)]=_0x51931c,this[_0x14f1fa(0x160)]=_0x2c1f04,this[_0x14f1fa(0x35f)]=_0x10e65a,this[_0x14f1fa(0x3cd)]=_0x14aa4b,this[_0x14f1fa(0x1c6)]=_0x594fde,this[_0x14f1fa(0x350)]=_0x1d12d9,this['_logService']=_0x2db0da,this[_0x14f1fa(0x286)]=_0x25cd8c,this['_permissionService']=_0x34d1cb,this[_0x14f1fa(0x35b)]=_0x44f715,this['_localCacheService']=_0x69e84d,g(this,_0x14f1fa(0x384),new i['BehaviorSubject'](null)),g(this,'state$',this[_0x14f1fa(0x384)][_0x14f1fa(0x2a5)]()),g(this,'_state',void 0x0),g(this,'_collaborationPaused',!0x1),g(this,_0x14f1fa(0x340),''),g(this,_0x14f1fa(0x3b1),0x0),g(this,_0x14f1fa(0x2cd),this[_0x14f1fa(0x12d)][_0x14f1fa(0x355)]((0x0,i[_0x14f1fa(0x39c)])(_0x3dd783=>_0x3dd783?_0x3dd783[_0x14f1fa(0x394)]:_0x14f1fa(0x2d6)),(0x0,i[_0x14f1fa(0x156)])(0x1))),g(this,_0x14f1fa(0x19e),!0x1),g(this,_0x14f1fa(0x2da),[]);}async[_0x639d9b(0x2f9)](){const _0xab892=_0x639d9b;if(this[_0xab892(0x389)])throw Error(_0xab892(0x10b));await this[_0xab892(0x11b)]();}[_0x639d9b(0x277)](){const _0x16e191=_0x639d9b;return this[_0x16e191(0x1ee)]=!0x0,(0x0,t[_0x16e191(0x192)])(()=>{const _0xc0c0ca=_0x16e191;this['_collaborationPaused']=!0x1,this[_0xc0c0ca(0x36a)]();});}['onLocalMutation'](_0x2ab80d){const _0xcb5f0c=_0x639d9b;this[_0xcb5f0c(0x1e8)](_0x2ab80d);}[_0x639d9b(0x17f)](_0x58f3dc){const _0x28f345=_0x639d9b;this[_0x28f345(0x112)]=_0x58f3dc,this[_0x28f345(0x384)][_0x28f345(0x268)](_0x58f3dc);}async['_init'](){const _0x204bfb=_0x639d9b;if(this[_0x204bfb(0x17f)](await this['_createInitialState']()),this[_0x204bfb(0x35b)]){var _0x461a07;(_0x461a07=this['_singleActiveUnitService'])==null||_0x461a07[_0x204bfb(0x3cf)](this['unitID']),this[_0x204bfb(0x27b)](this[_0x204bfb(0x35b)][_0x204bfb(0x1d5)](this[_0x204bfb(0x211)])[_0x204bfb(0x196)](_0xf96dd9=>{const _0x688d9e=_0x204bfb;this[_0x688d9e(0x353)][_0x688d9e(0x1af)](_0x688d9e(0x1ef),_0x688d9e(0x26d),_0xf96dd9),_0xf96dd9===0x1?(this[_0x688d9e(0x1c6)][_0x688d9e(0x2f7)]({'id':_0x688d9e(0x2f0)}),this['_permissionService']['updatePermissionPoint'](new r[(_0x688d9e(0x309))](this[_0x688d9e(0x211)])['id'],!0x1),this[_0x688d9e(0x2fa)][_0x688d9e(0x324)](!0x1)):(this['_permissionService'][_0x688d9e(0x3bd)](new r[(_0x688d9e(0x309))](this[_0x688d9e(0x211)])['id'],!0x0),this['_permissionService'][_0x688d9e(0x324)](!0x0));}));}let _0x266955=!0x1;return this[_0x204bfb(0x27b)](this[_0x204bfb(0x25e)][_0x204bfb(0x103)]['subscribe'](_0x3d9d12=>{const _0x55e247=_0x204bfb;_0x3d9d12===0x3?this[_0x55e247(0x184)](_0x266955):_0x3d9d12===0x2&&(_0x266955=!0x0,this[_0x55e247(0x2d2)]());})),this[_0x204bfb(0x27b)](this[_0x204bfb(0x25e)][_0x204bfb(0x32e)][_0x204bfb(0x196)](_0x386ca0=>{const _0x3f80d0=_0x204bfb;try{switch(_0x386ca0['eventID']){case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x1ce)]:this[_0x3f80d0(0x21a)]((0x0,e[_0x3f80d0(0x329)])(_0x386ca0[_0x3f80d0(0x398)]));break;case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x1d9)]:this[_0x3f80d0(0x322)](_0x386ca0[_0x3f80d0(0x398)]);break;case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x146)]:this[_0x3f80d0(0x274)]();break;case e['CollaborationEvent'][_0x3f80d0(0x260)]:this[_0x3f80d0(0x2a9)](_0x386ca0[_0x3f80d0(0x398)]);break;case e['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x3f80d0(0x19c)](_0x386ca0[_0x3f80d0(0x398)][_0x3f80d0(0x11c)][_0x3f80d0(0x39c)](_0x5c81f0=>(0x0,e[_0x3f80d0(0x329)])(_0x5c81f0)));break;case e[_0x3f80d0(0x1b0)]['PERMISSION_REJ']:this[_0x3f80d0(0x274)]({'isPermissionRej':!0x0});break;case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x14f)]:break;}}catch(_0x4de7db){throw console[_0x3f80d0(0x36e)]('Error\x20on\x20receiving\x20event',_0x4de7db),_0x4de7db;}})),this[_0x204bfb(0x112)];}['_unlockTransition'](){const _0x19c0b2=_0x639d9b;this[_0x19c0b2(0x19e)]=!0x1;}[_0x639d9b(0x208)](){const _0x422c80=_0x639d9b;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[_0x422c80(0x19e)]=!0x0;}[_0x639d9b(0x1e8)](_0x1ce118){const _0x3955d5=_0x639d9b;this[_0x3955d5(0x208)](),this[_0x3955d5(0x17f)](this['_state'][_0x3955d5(0x253)](_0x1ce118)),this[_0x3955d5(0x278)]();}[_0x639d9b(0x21a)](_0x3f6c15){const _0x4b4afc=_0x639d9b;if(!(_0x3f6c15['revision']<=this[_0x4b4afc(0x3cd)][_0x4b4afc(0x2c0)](this['unitID']))){if(this[_0x4b4afc(0x1ee)]){this[_0x4b4afc(0x2da)]['push'](_0x3f6c15);return;}this['_applyRemoteChangeset'](_0x3f6c15);}}[_0x639d9b(0x36a)](){const _0x455946=_0x639d9b;this[_0x455946(0x2da)][_0x455946(0x3c4)](_0x409272=>this['_applyRemoteChangeset'](_0x409272)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x444ad4){const _0x587b0f=_0x639d9b;let _0x51b1b8=this['_compressMutationService']['interceptor'][_0x587b0f(0x115)](this['_compressMutationService'][_0x587b0f(0x34b)][_0x587b0f(0x3d6)]()['COMPRESS_MUTATION_APPLY'])(_0x444ad4[_0x587b0f(0x28c)],null)||_0x444ad4[_0x587b0f(0x28c)],_0x202bf2={..._0x444ad4,'mutations':_0x51b1b8};this[_0x587b0f(0x208)](),this[_0x587b0f(0x17f)](this['_state'][_0x587b0f(0x3bb)](_0x202bf2)),this[_0x587b0f(0x278)]();}[_0x639d9b(0x322)](_0x9152a2){const _0x417aff=_0x639d9b;this[_0x417aff(0x208)](),this['_updateState'](this[_0x417aff(0x112)][_0x417aff(0x1cd)](_0x9152a2)),this[_0x417aff(0x278)]();}['_onRemoteRejected'](_0x3acbf6){const _0x218337=_0x639d9b;this[_0x218337(0x208)](),this[_0x218337(0x17f)](this[_0x218337(0x112)]['onRemoteRej'](_0x3acbf6)),this[_0x218337(0x278)]();}[_0x639d9b(0x2a9)](_0x488b1e){const _0x2caa28=_0x639d9b;this[_0x2caa28(0x208)](),this[_0x2caa28(0x17f)](this['_state'][_0x2caa28(0x1ff)](_0x488b1e)),this[_0x2caa28(0x278)]();}[_0x639d9b(0x19c)](_0x2e43b2){const _0x46ad78=_0x639d9b;if(!(this[_0x46ad78(0x112)]instanceof I))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x46002a=_0x2e43b2[_0x46ad78(0x39c)](_0x5ebccd=>{const _0x12e1bb=_0x46ad78;let _0x48a1df=this['_compressMutationService'][_0x12e1bb(0x34b)][_0x12e1bb(0x115)](this[_0x12e1bb(0x160)][_0x12e1bb(0x34b)][_0x12e1bb(0x3d6)]()[_0x12e1bb(0x2c9)])(_0x5ebccd[_0x12e1bb(0x28c)],null)||_0x5ebccd[_0x12e1bb(0x28c)];return{..._0x5ebccd,'mutations':_0x48a1df};});this[_0x46ad78(0x208)](),this['_updateState'](this[_0x46ad78(0x112)][_0x46ad78(0x380)](_0x46002a)),this['_unlockTransition']();}['_toggleOffline'](){const _0x69fd8b=_0x639d9b;this[_0x69fd8b(0x208)](),this[_0x69fd8b(0x17f)](this['_state'][_0x69fd8b(0x231)]()),this[_0x69fd8b(0x278)]();}[_0x639d9b(0x184)](_0x111f04=!0x1){const _0xae4a3e=_0x639d9b;this[_0xae4a3e(0x208)](),this[_0xae4a3e(0x17f)](this['_state']['toggleOnline']()),this[_0xae4a3e(0x278)]();let _0x36f189=this['_state'];_0x111f04&&_0x36f189 instanceof A&&(this[_0xae4a3e(0x208)](),this[_0xae4a3e(0x17f)](_0x36f189[_0xae4a3e(0x38b)]()),this[_0xae4a3e(0x278)]());}async['_createInitialState'](){return new Promise(_0x1924c7=>{const _0x3a38b8=_0x5037;this[_0x3a38b8(0x25e)]['sessionStatus$'][_0x3a38b8(0x355)]((0x0,i[_0x3a38b8(0x14e)])(0x1))['subscribe'](async _0x3e591a=>{_0x1924c7(await this['_createInitialStateImpl'](_0x3e591a===0x3));});});}[_0x639d9b(0x248)](){const _0x303a25=_0x639d9b;let _0x157b54=this[_0x303a25(0x211)];return{'onStateChange':(_0x122c7c,_0x347965)=>{const _0x3aaff1=_0x303a25;if(_0x122c7c!==this[_0x3aaff1(0x112)])throw Error(_0x3aaff1(0x3d8)+_0x122c7c['status']+_0x3aaff1(0x1c1)+_0x347965['status']+'\x0aCurrent:\x20'+this[_0x3aaff1(0x112)]['status']);this[_0x3aaff1(0x17f)](_0x347965);},'onSendChangeset':_0x10ecd9=>{const _0x54b573=_0x303a25;_0x10ecd9[_0x54b573(0x249)]||(_0x10ecd9[_0x54b573(0x249)]=this[_0x54b573(0x340)],_0x10ecd9[_0x54b573(0x3c0)]=++this['_changesetReqId']);let _0x4bbcf1={'eventID':e['CollaborationEvent'][_0x54b573(0x126)],'data':{'unitID':_0x10ecd9[_0x54b573(0x211)],'unitType':this[_0x54b573(0x24b)],'changeset':_0x10ecd9,'memberID':this[_0x54b573(0x25e)]['getMemberID']()}};this[_0x54b573(0x25e)][_0x54b573(0x284)](_0x4bbcf1,this['unitID']);},'onMissingChangesets':({from:_0x24477f,to:_0x14b966})=>{const _0x587a72=_0x303a25;this[_0x587a72(0x353)][_0x587a72(0x1af)](_0x587a72(0x1ef),_0x587a72(0x2a3)+_0x24477f+_0x587a72(0x3b9)+_0x14b966);let _0x2fba4b={'eventID':e[_0x587a72(0x1b0)]['FETCH_MISSING'],'data':{'unitID':_0x157b54,'unitType':this['_type'],'from':_0x24477f,'to':_0x14b966}};this[_0x587a72(0x25e)][_0x587a72(0x284)](_0x2fba4b,this[_0x587a72(0x211)]);}};}async[_0x639d9b(0x2ac)](_0x5b64f8){const _0x3ae80a=_0x639d9b;var _0xc2c702,_0x554a16,_0x46d99e;let _0x309b9b=await((_0xc2c702=this['_localCacheService'])==null?void 0x0:_0xc2c702[_0x3ae80a(0x2b7)](this[_0x3ae80a(0x211)])),_0x32ab19=(_0x554a16=_0x309b9b==null?void 0x0:_0x309b9b[_0x3ae80a(0x28c)])==null?[]:_0x554a16,_0x1f8dc3=(_0x46d99e=_0x309b9b==null?void 0x0:_0x309b9b[_0x3ae80a(0x18e)])==null?null:_0x46d99e,_0xa4bb18=!!(_0x1f8dc3!=null&&_0x1f8dc3[_0x3ae80a(0x249)])&&!!(_0x1f8dc3!=null&&_0x1f8dc3[_0x3ae80a(0x3c0)]);this[_0x3ae80a(0x340)]=_0xa4bb18?_0x1f8dc3[_0x3ae80a(0x249)]:(0x0,e['uuidv4'])(),this['_changesetReqId']=_0xa4bb18?_0x1f8dc3[_0x3ae80a(0x3c0)]:0x0;let _0x188d3e=this[_0x3ae80a(0x211)];try{this[_0x3ae80a(0x247)](_0x1f8dc3,_0x32ab19);}catch(_0x2ca3f8){this['_logService'][_0x3ae80a(0x36e)](_0x2ca3f8);}let _0x306c68=this[_0x3ae80a(0x248)]();if(_0x5b64f8){let _0x5dc3ed=be(this['_injector'],_0x188d3e,this['_type'],_0x1f8dc3,_0x32ab19,_0x306c68);return _0x5dc3ed instanceof j?_0x5dc3ed[_0x3ae80a(0x27e)]():(_0x5dc3ed instanceof N||_0x5dc3ed instanceof M)&&_0x5dc3ed[_0x3ae80a(0x311)](),_0x5dc3ed;}return this[_0x3ae80a(0x22b)][_0x3ae80a(0x2d3)](F,_0x188d3e,this['_type'],_0x1f8dc3,_0x32ab19,_0x306c68);}['_replayCachedMutations'](_0x1ed893,_0x1e0639){const _0x3f0c04=_0x639d9b;var _0x15cf9f,_0x9e24c1;let _0x3248e6=this[_0x3f0c04(0x160)][_0x3f0c04(0x34b)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x3f0c04(0x34b)][_0x3f0c04(0x3d6)]()[_0x3f0c04(0x2c9)]);(_0x15cf9f=_0x3248e6((_0x1ed893==null?void 0x0:_0x1ed893[_0x3f0c04(0x28c)])||[],null))==null||_0x15cf9f[_0x3f0c04(0x3c4)](_0x485caa=>this[_0x3f0c04(0x286)][_0x3f0c04(0x218)](_0x485caa['id'],_0x485caa[_0x3f0c04(0x13b)])),(_0x9e24c1=_0x3248e6(_0x1e0639||[],null))==null||_0x9e24c1[_0x3f0c04(0x3c4)](_0x474c19=>this[_0x3f0c04(0x286)][_0x3f0c04(0x218)](_0x474c19['id'],_0x474c19[_0x3f0c04(0x13b)]));}};L=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x4,(0x0,t['Inject'])(e[_0x639d9b(0x362)])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x2e5)])),y(0x6,(0x0,t['Inject'])(e['RevisionService'])),y(0x7,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x8,t[_0x639d9b(0x21e)]),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,t[_0x639d9b(0x2ec)]),y(0xb,t[_0x639d9b(0x2f2)]),y(0xc,(0x0,t[_0x639d9b(0x240)])(T)),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],L);let R=class extends L{constructor(_0x570f09,_0x3c30d9,_0x5b1b9d,_0x28a3f8,_0x51eaf5,_0x4c2758,_0x180f74,_0xba5ec9,_0x18c222,_0x395a1f,_0x3da716,_0x542f9c,_0x554ce7,_0x182bf3){const _0x5b0368=_0x639d9b;super(_0x570f09,_0x5b1b9d,_0x3c30d9,_0x28a3f8,_0x51eaf5,_0x4c2758,_0x180f74,_0xba5ec9,_0x18c222,_0x395a1f,_0x3da716,_0x542f9c,_0x554ce7,_0x182bf3),this['unitID']=_0x570f09,this[_0x5b0368(0x291)]=_0x3c30d9,g(this,_0x5b0368(0x159),null);}[_0x639d9b(0x273)](_0x1a7b33){const _0x4ae010=_0x639d9b;this[_0x4ae010(0x159)]=_0x1a7b33;}['dispose'](){const _0x43754c=_0x639d9b;this[_0x43754c(0x159)]=null,super[_0x43754c(0x36f)]();}[_0x639d9b(0x248)](){const _0x57330c=_0x639d9b;let _0x5a4916=super[_0x57330c(0x248)]();return _0x5a4916[_0x57330c(0x25f)]=_0x3b4203=>{const _0x99a627=_0x57330c;var _0x110f43,_0x2a65b9;return(_0x110f43=this[_0x99a627(0x159)])==null||(_0x2a65b9=_0x110f43[_0x99a627(0x25f)])==null?void 0x0:_0x2a65b9[_0x99a627(0x16e)](_0x110f43,_0x3b4203);},_0x5a4916[_0x57330c(0x283)]=_0x49b83a=>{const _0x1c742d=_0x57330c;var _0x48a071,_0x11fc6b;return(_0x48a071=this[_0x1c742d(0x159)])==null||(_0x11fc6b=_0x48a071[_0x1c742d(0x283)])==null?void 0x0:_0x11fc6b[_0x1c742d(0x16e)](_0x48a071,_0x49b83a);},_0x5a4916[_0x57330c(0x102)]=_0x2d9883=>{const _0x4b30b0=_0x57330c;var _0x3b1961,_0x3c19a7;return(_0x3b1961=this['_handlerCallback'])==null||(_0x3c19a7=_0x3b1961[_0x4b30b0(0x102)])==null?void 0x0:_0x3c19a7[_0x4b30b0(0x16e)](_0x3b1961,_0x2d9883);},_0x5a4916[_0x57330c(0x1c8)]=_0x4f7308=>{const _0x3c9281=_0x57330c;var _0x358f05,_0x38bd1e;return(_0x358f05=this[_0x3c9281(0x159)])==null||(_0x38bd1e=_0x358f05[_0x3c9281(0x1c8)])==null?void 0x0:_0x38bd1e[_0x3c9281(0x16e)](_0x358f05,_0x4f7308);},_0x5a4916['onTransformRemoteChangesetByIMECache']=_0x3f808c=>{const _0xc5dbb4=_0x57330c;var _0x3d5f0e,_0x45fd62,_0x125ea4;if(!((_0x3d5f0e=this[_0xc5dbb4(0x159)])!=null&&_0x3d5f0e['onTransformRemoteChangesetByIMECache']))throw Error(_0xc5dbb4(0x185));return(_0x45fd62=this[_0xc5dbb4(0x159)])==null||(_0x125ea4=_0x45fd62[_0xc5dbb4(0x3db)])==null?void 0x0:_0x125ea4[_0xc5dbb4(0x16e)](_0x45fd62,_0x3f808c);},_0x5a4916[_0x57330c(0x105)]=_0x43762c=>{const _0x581205=_0x57330c;var _0x4e0b68,_0x1b9a8a,_0x4e2217;if(!((_0x4e0b68=this['_handlerCallback'])!=null&&_0x4e0b68[_0x581205(0x105)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x1b9a8a=this[_0x581205(0x159)])==null||(_0x4e2217=_0x1b9a8a[_0x581205(0x105)])==null?void 0x0:_0x4e2217['call'](_0x1b9a8a,_0x43762c);},_0x5a4916;}async[_0x639d9b(0x11b)](){const _0x47ff25=_0x639d9b;let _0x2816fe=await super['_init']();return this['disposeWithMe'](this['_commandService'][_0x47ff25(0x137)]((_0x54ecc3,_0x203513)=>{const _0x427ca3=_0x47ff25;if(_0x54ecc3[_0x427ca3(0x291)]!==t[_0x427ca3(0x3a1)][_0x427ca3(0x27f)]||_0x203513!=null&&_0x203513[_0x427ca3(0x109)]||_0x203513!=null&&_0x203513[_0x427ca3(0x3ad)]||_0x54ecc3['id']===n['RichTextEditingMutation']['id'])return;let _0x22186a=_0x54ecc3[_0x427ca3(0x13b)];if((_0x22186a==null?void 0x0:_0x22186a[_0x427ca3(0x3bc)])!==this['unitID'])return;let _0x3493cb=_0x54ecc3,_0x22d482=this[_0x427ca3(0x160)][_0x427ca3(0x34b)][_0x427ca3(0x115)](this[_0x427ca3(0x160)][_0x427ca3(0x34b)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x3493cb],this[_0x427ca3(0x350)])||[_0x3493cb];this[_0x427ca3(0x1e8)](_0x22d482[0x0]);})),_0x2816fe;}};R=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x4,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x362)])),y(0x5,(0x0,t['Inject'])(t['LocaleService'])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x7,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x8,t[_0x639d9b(0x21e)]),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,t[_0x639d9b(0x2ec)]),y(0xb,t['IPermissionService']),y(0xc,(0x0,t[_0x639d9b(0x240)])(T)),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],R);let z=class extends L{constructor(_0x2cf58d,_0x35863d,_0xdd6237,_0x1dc197,_0x192183,_0x3dfa0c,_0x418777,_0x10a929,_0xddcc2f,_0x838496,_0x2d041b,_0x56c55e,_0xc8d064,_0x3d5b17,_0x2a64b2){const _0x2880b4=_0x639d9b;super(_0x2cf58d,_0xdd6237,_0x35863d,_0x1dc197,_0x192183,_0x3dfa0c,_0x418777,_0xddcc2f,_0x838496,_0x2d041b,_0x56c55e,_0xc8d064,_0x3d5b17,_0x2a64b2),this[_0x2880b4(0x211)]=_0x2cf58d,this[_0x2880b4(0x291)]=_0x35863d,this['_sheetTransformSelectionsService']=_0x10a929;}[_0x639d9b(0x248)](){const _0x1b59ab=_0x639d9b;let _0x216944=super[_0x1b59ab(0x248)]();return _0x216944['onTransformSelections']=_0x5accfc=>this[_0x1b59ab(0x2bc)][_0x1b59ab(0x3a0)](_0x5accfc),_0x216944;}async[_0x639d9b(0x11b)](){const _0x2bf967=_0x639d9b;let _0xc9e8ac=await super[_0x2bf967(0x11b)]();return this[_0x2bf967(0x27b)](this[_0x2bf967(0x286)]['onMutationExecutedForCollab']((_0x25e265,_0x4f0d13)=>{const _0x1671b0=_0x2bf967;if(_0x25e265['type']!==t[_0x1671b0(0x3a1)][_0x1671b0(0x27f)]||_0x4f0d13!=null&&_0x4f0d13[_0x1671b0(0x109)]||_0x4f0d13!=null&&_0x4f0d13[_0x1671b0(0x3ad)])return;let _0x11ba88=_0x25e265[_0x1671b0(0x13b)];if((_0x11ba88==null?void 0x0:_0x11ba88['unitId'])!==this[_0x1671b0(0x211)])return;let _0x5e2170=_0x25e265,_0x412939=this[_0x1671b0(0x160)][_0x1671b0(0x34b)][_0x1671b0(0x115)](this[_0x1671b0(0x160)][_0x1671b0(0x34b)]['getInterceptPoints']()[_0x1671b0(0x246)])([_0x5e2170],this[_0x1671b0(0x350)])||[_0x5e2170];this[_0x1671b0(0x1e8)](_0x412939[0x0]);})),_0xc9e8ac;}};z=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(t['LocaleService'])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x7,(0x0,t[_0x639d9b(0x11e)])(w)),y(0x8,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x9,t['IUniverInstanceService']),y(0xa,t[_0x639d9b(0x1b7)]),y(0xb,t[_0x639d9b(0x2ec)]),y(0xc,t['IPermissionService']),y(0xd,(0x0,t[_0x639d9b(0x240)])(T)),y(0xe,(0x0,t[_0x639d9b(0x240)])(C))],z);const xe=(0x0,t[_0x639d9b(0x1a6)])(_0x639d9b(0x130));function Se(_0x3a2649){const _0x49dc47=_0x639d9b;let _0x246099=_0x3a2649[_0x49dc47(0x398)],_0x3e2d29=JSON['parse'](_0x246099);switch(_0x3e2d29[_0x49dc47(0x131)]){case a[_0x49dc47(0x118)]['HEARTBEAT']:case a['CombCmd']['HELLO']:{let _0x4afc8a=_0x3e2d29[_0x49dc47(0x3b0)];return{..._0x3e2d29,'data':_0x4afc8a,'cmd':_0x3e2d29[_0x49dc47(0x131)]};}case a[_0x49dc47(0x118)][_0x49dc47(0x325)]:{let _0x40b51b=_0x3e2d29[_0x49dc47(0x37c)];return{..._0x3e2d29,'data':_0x40b51b,'cmd':_0x3e2d29['cmd']};}case a['CombCmd'][_0x49dc47(0x150)]:{let _0x31c037=_0x3e2d29[_0x49dc47(0x288)];switch(_0x31c037[_0x49dc47(0x34c)]){case e[_0x49dc47(0x1b0)][_0x49dc47(0x36b)]:var _0x1957ca;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0x1957ca=_0x31c037[_0x49dc47(0x2e6)])==null?void 0x0:_0x1957ca['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x1d9)]:var _0xda690e;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0xda690e=_0x31c037[_0x49dc47(0x2cc)])==null?void 0x0:_0xda690e['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x1ce)]:var _0x1af437;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0x1af437=_0x31c037[_0x49dc47(0x2b1)])==null?void 0x0:_0x1af437['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x146)]:var _0x2320a3;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0x2320a3=_0x31c037[_0x49dc47(0x33b)])==null?void 0x0:_0x2320a3['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x260)]:var _0xc20d24;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0xc20d24=_0x31c037['csShouldRetryEvent'])==null?void 0x0:_0xc20d24['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x116)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x295)]},'cmd':_0x3e2d29['cmd']};case e[_0x49dc47(0x1b0)][_0x49dc47(0x228)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x330)]},'cmd':_0x3e2d29['cmd']};case e[_0x49dc47(0x1b0)]['USERS_LEAVE']:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x16c)]},'cmd':_0x3e2d29['cmd']};case e['CollaborationEvent'][_0x49dc47(0x225)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x1a1)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)]['LIVESHARE_FETCH_OPERATIONS']:case e['CollaborationEvent'][_0x49dc47(0x317)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037['liveShareOperation']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e['CollaborationEvent'][_0x49dc47(0x245)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x1a1)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e['CollaborationEvent'][_0x49dc47(0x26b)]:return{..._0x3e2d29,'data':_0x31c037,'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e['CollaborationEvent'][_0x49dc47(0x1a7)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x29a)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x2b0)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037['updatePermissionObjEvent']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x254)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x1d3)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)]['UNISCRIPT_RUN']:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x16b)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};default:return _0x3e2d29;}}default:return _0x3e2d29;}}function Ce(_0xf9e975){const _0x553b99=_0x639d9b;switch(_0xf9e975['cmd']){case a[_0x553b99(0x118)][_0x553b99(0x374)]:case a['CombCmd']['HELLO']:return JSON['stringify']({'cmd':_0xf9e975[_0x553b99(0x131)],'routeKey':_0xf9e975['routeKey']});case a[_0x553b99(0x118)][_0x553b99(0x30c)]:{let _0x4c1466;switch(_0xf9e975['data'][_0x553b99(0x34c)]){case e[_0x553b99(0x1b0)][_0x553b99(0x116)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x116)],'updateCursorEvent':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e['CollaborationEvent'][_0x553b99(0x358)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)]['USERS_LEAVE'],'leaveEvent':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e['CollaborationEvent'][_0x553b99(0x228)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x228)],'joinEvent':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e[_0x553b99(0x1b0)][_0x553b99(0x225)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x225)],'liveShareNewHost':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e[_0x553b99(0x1b0)]['LIVESHARE_OPERATION']:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x317)],'liveShareOperation':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e[_0x553b99(0x1b0)][_0x553b99(0x245)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x245)],'liveShareTerminate':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x4c1466={'eventID':e['CollaborationEvent'][_0x553b99(0x35e)],'liveShareRequestHost':_0xf9e975['data']['data']};break;case e['CollaborationEvent'][_0x553b99(0x342)]:_0x4c1466={'eventID':e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x4c1466={'eventID':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x34c)]};}return JSON[_0x553b99(0x139)]({'cmd':_0xf9e975[_0x553b99(0x131)],'routeKey':_0xf9e975['routeKey'],'collaMsg':_0x4c1466});}case a[_0x553b99(0x118)][_0x553b99(0x325)]:return JSON['stringify']({'cmd':_0xf9e975[_0x553b99(0x131)],'routeKey':_0xf9e975[_0x553b99(0x11a)],'joinReq':_0xf9e975[_0x553b99(0x398)]});case a[_0x553b99(0x118)][_0x553b99(0x23f)]:return JSON['stringify']({'cmd':_0xf9e975['cmd'],'routeKey':_0xf9e975[_0x553b99(0x11a)],'leaveReq':_0xf9e975['data']});default:throw Error(_0x553b99(0x1d7));}}const B=(0x0,t['createIdentifier'])(_0x639d9b(0x298));function we(_0x4f9114,_0x348f87,_0x3385d0){const _0x58e928=_0x639d9b;return _0x4f9114+'/'+_0x348f87+_0x58e928(0x2b6)+_0x3385d0+_0x58e928(0x345);}let V=class extends t['Disposable']{constructor(_0x5c218f,_0x4c2cfc,_0x214ee1,_0x59e00d,_0x5e5ffe){const _0x1d88f9=_0x639d9b;super(),this[_0x1d88f9(0x22b)]=_0x5c218f,this[_0x1d88f9(0x1b5)]=_0x4c2cfc,this[_0x1d88f9(0x364)]=_0x214ee1,this[_0x1d88f9(0x353)]=_0x59e00d,this[_0x1d88f9(0x3b7)]=_0x5e5ffe;}[_0x639d9b(0x2a8)](_0x1964c7){const _0x265e7f=_0x639d9b;let _0x59f717=this[_0x265e7f(0x22b)][_0x265e7f(0x1a8)](c[_0x265e7f(0x123)]);if(!_0x59f717)throw Error(_0x265e7f(0x164));let _0x539b56=_0x59f717[_0x265e7f(0x3a5)](_0x1964c7);if(!_0x539b56)throw Error(_0x265e7f(0x3c7));let _0x38bea1=new t[(_0x265e7f(0x124))](),_0x2be8d1=new i[(_0x265e7f(0x352))]();_0x38bea1[_0x265e7f(0x382)](_0x539b56[_0x265e7f(0x1cb)][_0x265e7f(0x196)](_0x220d2c=>_0x2be8d1['next'](_0x220d2c))),_0x38bea1[_0x265e7f(0x382)]((0x0,t[_0x265e7f(0x192)])(()=>_0x2be8d1[_0x265e7f(0x15f)]()));let _0x211553=new i[(_0x265e7f(0x352))]();_0x38bea1['add'](_0x539b56[_0x265e7f(0x1ad)][_0x265e7f(0x196)](_0x3f2c5a=>_0x211553[_0x265e7f(0x268)](_0x3f2c5a))),_0x38bea1[_0x265e7f(0x382)]((0x0,t[_0x265e7f(0x192)])(()=>_0x211553[_0x265e7f(0x15f)]()));let _0x1c1268=new i[(_0x265e7f(0x352))]();_0x38bea1[_0x265e7f(0x382)](_0x539b56['message$'][_0x265e7f(0x196)](_0x16da8f=>{const _0x573379=_0x265e7f;let _0x551fc0=Se(_0x16da8f);_0x1c1268[_0x573379(0x268)](_0x551fc0);})),_0x38bea1[_0x265e7f(0x382)]((0x0,t[_0x265e7f(0x192)])(()=>_0x1c1268['complete']()));let _0x54f35b,_0xf9ad0e=()=>{const _0x327d8d=_0x265e7f;_0x211553['next'](new Event(_0x327d8d(0x14a))),_0x2be8d1[_0x327d8d(0x268)](new Event('connection\x20error')),_0x54f35b[_0x327d8d(0x178)]();};return _0x54f35b={'memberID':'','close$':_0x2be8d1[_0x265e7f(0x2a5)](),'error$':_0x211553[_0x265e7f(0x2a5)](),'open$':_0x539b56[_0x265e7f(0x2f8)],'message$':_0x1c1268[_0x265e7f(0x2a5)](),'send':_0x488d81=>{const _0x57a546=_0x265e7f;if(_0x488d81[_0x57a546(0x131)]===a[_0x57a546(0x118)][_0x57a546(0x30c)]){if(_0x488d81[_0x57a546(0x398)][_0x57a546(0x34c)]===e[_0x57a546(0x1b0)][_0x57a546(0x126)]){this[_0x57a546(0x3de)](_0x54f35b,_0x488d81[_0x57a546(0x398)])[_0x57a546(0x2de)](_0x95278b=>{const _0x3b1082=_0x57a546;this['_logService'][_0x3b1082(0x36e)](_0x95278b),_0xf9ad0e();});return;}if(_0x488d81[_0x57a546(0x398)][_0x57a546(0x34c)]===e[_0x57a546(0x1b0)][_0x57a546(0x107)]){let _0x2e3cef=_0x488d81['data'];this['_fetchMissChangesets'](_0x2e3cef)[_0x57a546(0x153)](_0x3c009a=>{const _0x1b3dee=_0x57a546;_0x1c1268[_0x1b3dee(0x268)]({'cmd':a[_0x1b3dee(0x118)][_0x1b3dee(0x150)],'code':a['CmdRspCode']['OK'],'routeKey':_0x2e3cef[_0x1b3dee(0x398)]['unitID'],'routeType':'','data':{'eventID':e[_0x1b3dee(0x1b0)][_0x1b3dee(0x1b3)],'data':{'changesets':_0x3c009a}}});})[_0x57a546(0x2de)](_0x51134d=>{const _0x5e4852=_0x57a546;this[_0x5e4852(0x353)][_0x5e4852(0x36e)](_0x51134d),_0xf9ad0e();});return;}}_0x539b56[_0x57a546(0x284)](Ce(_0x488d81));},'close':()=>{const _0x4168a5=_0x265e7f;_0x539b56[_0x4168a5(0x178)](),_0x38bea1[_0x4168a5(0x36f)]();}},_0x54f35b;}async[_0x639d9b(0x3de)](_0x28f0d1,_0x526089){const _0x33499d=_0x639d9b;var _0x10777e;let {unitType:_0x271a33,unitID:_0x120db8,changeset:_0x1e8dd6}=_0x526089[_0x33499d(0x398)],_0x18c795={'unitID':_0x120db8,'memberID':_0x28f0d1['memberID'],'type':_0x271a33,'changeset':(0x0,e[_0x33499d(0x2e0)])(_0x1e8dd6)},_0x211fc2=this[_0x33499d(0x364)]['getConfig'](E),_0x442428=we((_0x10777e=_0x211fc2==null?void 0x0:_0x211fc2[_0x33499d(0x17d)])==null?_0x33499d(0x15d):_0x10777e,_0x271a33,_0x120db8);try{await this[_0x33499d(0x1b5)][_0x33499d(0x119)](_0x442428,{'body':_0x18c795});}catch(_0x850088){throw this[_0x33499d(0x353)]['error'](_0x33499d(0x12b),_0x33499d(0x29f)),_0x850088;}}async['_fetchMissChangesets'](_0x547ede){const _0x2eb54d=_0x639d9b;let {unitID:_0xa205a9,from:_0x4254dc,to:_0x1a993b,unitType:_0x47429e}=_0x547ede[_0x2eb54d(0x398)];return(await this[_0x2eb54d(0x3b7)][_0x2eb54d(0x258)]({'metadata':void 0x0},{'unitID':_0xa205a9,'type':_0x47429e,'from':_0x4254dc,'to':_0x1a993b}))[_0x2eb54d(0x11c)][_0x2eb54d(0x39c)](_0x508a99=>((_0x508a99[_0x2eb54d(0x28c)]===null||_0x508a99[_0x2eb54d(0x28c)]===void 0x0)&&(_0x508a99['mutations']=[]),_0x508a99));}};V=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)])),y(0x2,t['IConfigService']),y(0x3,t[_0x639d9b(0x1b7)]),y(0x4,e[_0x639d9b(0x129)])],V);let H=class extends t[_0x639d9b(0x2a6)]{get[_0x639d9b(0x151)](){const _0x33d7d3=_0x639d9b;return this[_0x33d7d3(0x171)]['getValue']();}constructor(_0x24bbc6,_0x3d9d29,_0xeb9104,_0x1488bc,_0x12d923,_0x1e17b9){const _0x116e45=_0x639d9b;super(),this[_0x116e45(0x22b)]=_0x24bbc6,this[_0x116e45(0x353)]=_0x3d9d29,this['_configService']=_0xeb9104,this['_socketService']=_0x1488bc,this[_0x116e45(0x15e)]=_0x12d923,this[_0x116e45(0x20d)]=_0x1e17b9,g(this,_0x116e45(0x171),new i[(_0x116e45(0x2aa))](void 0x0)),g(this,_0x116e45(0x39f),this[_0x116e45(0x171)][_0x116e45(0x2a5)]()),g(this,'_candidateSocket',null),g(this,_0x116e45(0x1b8),new Map()),g(this,_0x116e45(0x13f),new i[(_0x116e45(0x2aa))](0x0)),g(this,_0x116e45(0x2cd),this[_0x116e45(0x13f)][_0x116e45(0x2a5)]()),g(this,'_socketReady',!0x1),g(this,_0x116e45(0x252),void 0x0),g(this,_0x116e45(0x320),0x0),g(this,'_socketMessageSubscription',null),g(this,_0x116e45(0x1c5),void 0x0),g(this,'_timeoutTimer',void 0x0),this[_0x116e45(0x3cb)]();}[_0x639d9b(0x3cb)](){const _0x367c9b=_0x639d9b;this['_networkConditionService']&&this[_0x367c9b(0x27b)](this[_0x367c9b(0x20d)][_0x367c9b(0x140)][_0x367c9b(0x196)](_0x2f8f53=>{const _0x4006b8=_0x367c9b;_0x2f8f53&&!this[_0x4006b8(0x151)]&&this['reconnect'](),_0x2f8f53||this['_onOffline']();}));}[_0x639d9b(0x36f)](){const _0x3cd10f=_0x639d9b;var _0x1a3f4e;super[_0x3cd10f(0x36f)](),(_0x1a3f4e=this[_0x3cd10f(0x120)])==null||_0x1a3f4e[_0x3cd10f(0x1c2)](),this['_socketMessageSubscription']=null,this[_0x3cd10f(0x361)](),this[_0x3cd10f(0x25b)](),this[_0x3cd10f(0x368)](),this[_0x3cd10f(0x1b8)]['forEach'](_0x103d23=>_0x103d23[_0x3cd10f(0x36f)]()),this[_0x3cd10f(0x1b8)][_0x3cd10f(0x1df)](),this[_0x3cd10f(0x13f)][_0x3cd10f(0x15f)]();}async['requireSession'](_0x3a0c16){const _0xff1502=_0x639d9b;if(this[_0xff1502(0x1b8)][_0xff1502(0x1dc)](_0x3a0c16))return this[_0xff1502(0x1b8)][_0xff1502(0x1a8)](_0x3a0c16);this[_0xff1502(0x152)]();let _0x5f67ac=this['_injector'][_0xff1502(0x2d3)](S,_0x3a0c16,this[_0xff1502(0x171)]['asObservable']());return this[_0xff1502(0x1b8)][_0xff1502(0x29c)](_0x3a0c16,_0x5f67ac),_0x5f67ac;}[_0x639d9b(0x1d1)](_0x5a11b0){const _0x26f94e=_0x639d9b;let _0x36682b=this[_0x26f94e(0x1b8)][_0x26f94e(0x1a8)](_0x5a11b0);if(_0x36682b&&(this['_sessions'][_0x26f94e(0x14b)](_0x5a11b0),_0x36682b[_0x26f94e(0x178)]()),!this[_0x26f94e(0x1b8)][_0x26f94e(0x213)]){var _0x163fa4;(_0x163fa4=this[_0x26f94e(0x151)])==null||_0x163fa4[_0x26f94e(0x178)]();}}[_0x639d9b(0x259)](){const _0x4596ca=_0x639d9b;this[_0x4596ca(0x320)]=0x0,this[_0x4596ca(0x361)](),this['_tryReconnect']();}[_0x639d9b(0x361)](){const _0x64c49=_0x639d9b;this[_0x64c49(0x252)]!=null&&(clearTimeout(this[_0x64c49(0x252)]),this[_0x64c49(0x252)]=null);}async[_0x639d9b(0x16f)](){const _0x339e7e=_0x639d9b;var _0x31f8c5;let _0x4e1ce5=this[_0x339e7e(0x364)][_0x339e7e(0x114)](E),_0x3180bb=(_0x31f8c5=_0x4e1ce5==null?void 0x0:_0x4e1ce5[_0x339e7e(0x39b)])==null?p:_0x31f8c5,_0x172847=await this[_0x339e7e(0x36c)]['createSocket'](_0x3180bb);return this['_candidateSocket']=_0x172847,_0x172847;}async[_0x639d9b(0x152)](){const _0x2a3068=_0x639d9b;try{var _0x4ab86a,_0x388d02;let _0x5eb283=(_0x4ab86a=(_0x388d02=this[_0x2a3068(0x151)])==null?this[_0x2a3068(0x19d)]:_0x388d02)==null?await this[_0x2a3068(0x16f)]():_0x4ab86a;if(_0x5eb283){var _0x12cdb5;let _0x3d1c83=_0x5eb283[_0x2a3068(0x284)];_0x5eb283[_0x2a3068(0x284)]=_0x1929d7=>(_0x1929d7[_0x2a3068(0x131)]!==a[_0x2a3068(0x118)]['LEAVE']&&this['_rescheduleHeartbeat'](),_0x3d1c83['apply'](_0x5eb283,[_0x1929d7])),(_0x12cdb5=this[_0x2a3068(0x120)])==null||_0x12cdb5[_0x2a3068(0x1c2)](),this[_0x2a3068(0x120)]=null,this[_0x2a3068(0x120)]=_0x5eb283[_0x2a3068(0x158)][_0x2a3068(0x196)](_0x5c869e=>this[_0x2a3068(0x134)](_0x5eb283,_0x5c869e)),_0x5eb283[_0x2a3068(0x1ad)][_0x2a3068(0x355)]((0x0,s[_0x2a3068(0x14e)])(0x1))[_0x2a3068(0x196)](_0x1bedfd=>this[_0x2a3068(0x353)][_0x2a3068(0x36e)](_0x2a3068(0x187),_0x1bedfd)),_0x5eb283['open$']['pipe']((0x0,s[_0x2a3068(0x14e)])(0x1))['subscribe'](()=>{const _0x39e2ea=_0x2a3068;this[_0x39e2ea(0x127)](_0x5eb283);}),_0x5eb283['close$'][_0x2a3068(0x355)]((0x0,s['take'])(0x1))['subscribe'](_0x17ea5b=>{const _0x23cf45=_0x2a3068;this[_0x23cf45(0x353)][_0x23cf45(0x1af)](_0x23cf45(0x2ca),_0x23cf45(0x13e),_0x17ea5b),this[_0x23cf45(0x2e1)]();});}}catch(_0xc72747){this[_0x2a3068(0x353)][_0x2a3068(0x36e)](_0xc72747),this[_0x2a3068(0x2e1)]();}}[_0x639d9b(0x127)](_0x192d6a){const _0x3d1801=_0x639d9b;this[_0x3d1801(0x353)][_0x3d1801(0x1af)](_0x3d1801(0x2ca),_0x3d1801(0x10f)),_0x192d6a[_0x3d1801(0x284)]({'cmd':a[_0x3d1801(0x118)][_0x3d1801(0x162)]}),this[_0x3d1801(0x310)]();}[_0x639d9b(0x18b)](){const _0x55de5d=_0x639d9b;this[_0x55de5d(0x1cc)]=!0x1,this['_candidateSocket']=null,this['_status$']['next'](0x2),this['_socket$'][_0x55de5d(0x268)](null),this['_clearTimeoutTimer'](),this[_0x55de5d(0x368)]();}[_0x639d9b(0x2e1)](){const _0x53190f=_0x639d9b;var _0x30ddbd;this[_0x53190f(0x18b)](),this['_retryCount']<((_0x30ddbd=this[_0x53190f(0x364)][_0x53190f(0x114)](_0x53190f(0x2b2)))==null?0x3:_0x30ddbd)?(this['_collaborationUIEventService']['emitEvent']({'id':_0x53190f(0x314)}),this[_0x53190f(0x275)]()):this[_0x53190f(0x15e)]['emitEvent']({'id':_0x53190f(0x161)});}[_0x639d9b(0x275)](){const _0x5eb3fc=_0x639d9b;var _0x109c25;let _0x16e2af=this[_0x5eb3fc(0x320)],_0xf8110a=this['_configService']['getConfig'](E),_0x57b1d6=_0x16e2af===0x0?0x0:((_0x109c25=_0xf8110a==null?void 0x0:_0xf8110a[_0x5eb3fc(0x148)])==null?0x4e20:_0x109c25)*0x2**_0x16e2af;this['_retryConnectingTimer']=setTimeout(()=>{const _0x1a7bd3=_0x5eb3fc;clearTimeout(this[_0x1a7bd3(0x252)]),this[_0x1a7bd3(0x252)]=null,this[_0x1a7bd3(0x152)]();},_0x57b1d6),this[_0x5eb3fc(0x320)]+=0x1;}[_0x639d9b(0x134)](_0x22c198,_0x4ffa87){const _0xac8494=_0x639d9b;let {cmd:_0x480130}=_0x4ffa87;_0x480130===a[_0xac8494(0x118)][_0xac8494(0x162)]&&!this[_0xac8494(0x1cc)]&&(_0x22c198[_0xac8494(0x2a7)]=_0x4ffa87[_0xac8494(0x398)][_0xac8494(0x2a7)],this['_socket$']['next'](_0x22c198),this[_0xac8494(0x13f)]['next'](0x3),this[_0xac8494(0x1cc)]=!0x0,this['_candidateSocket']=null),_0x480130===a[_0xac8494(0x118)][_0xac8494(0x374)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x639d9b(0x310)](){const _0x4af894=_0x639d9b;var _0x525eb2;this['_clearHeartbeatTimer'](),this[_0x4af894(0x1c5)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x525eb2=this['_configService']['getConfig'](_0x4af894(0x378)))==null?0x7530:_0x525eb2);}['_sendHeartbeat'](){const _0x507b71=_0x639d9b;this[_0x507b71(0x151)]['send']({'cmd':a[_0x507b71(0x118)][_0x507b71(0x374)]}),this[_0x507b71(0x1d0)]();}[_0x639d9b(0x1d0)](){const _0x3299a9=_0x639d9b;var _0x476a23;this[_0x3299a9(0x2df)]=setTimeout(()=>this[_0x3299a9(0x2e1)](),(_0x476a23=this[_0x3299a9(0x364)][_0x3299a9(0x114)]('HEARTBEAT_TIMEOUT'))==null?m:_0x476a23);}[_0x639d9b(0x368)](){const _0x42c5b6=_0x639d9b;this[_0x42c5b6(0x1c5)]!=null&&(clearTimeout(this[_0x42c5b6(0x1c5)]),this['_sendHeartbeatTimer']=null);}[_0x639d9b(0x25b)](){const _0xf62b35=_0x639d9b;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xf62b35(0x2df)]),this[_0xf62b35(0x2df)]=null);}};H=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,t[_0x639d9b(0x1b7)]),y(0x2,t[_0x639d9b(0x209)]),y(0x3,B),y(0x4,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x5,(0x0,t[_0x639d9b(0x240)])(xe))],H);let U=class extends t[_0x639d9b(0x19b)]{constructor(_0x4ddc55,_0x499bdf,_0x1dfc06,_0x111415){const _0x23d9c0=_0x639d9b;var _0x1da121;super(),this[_0x23d9c0(0x22b)]=_0x4ddc55,this[_0x23d9c0(0x128)]=_0x499bdf,this[_0x23d9c0(0x364)]=_0x1dfc06,this[_0x23d9c0(0x350)]=_0x111415,g(this,'_entities',new Map()),g(this,_0x23d9c0(0x3b3),new i[(_0x23d9c0(0x352))]()),g(this,'entityInit$',this[_0x23d9c0(0x3b3)]['asObservable']()),((_0x1da121=this[_0x23d9c0(0x364)][_0x23d9c0(0x114)]('collaboration-client.config'))==null?void 0x0:_0x1da121[_0x23d9c0(0x3d0)])!==!0x1&&this[_0x23d9c0(0x11b)]();}[_0x639d9b(0x36f)](){const _0x31a4c1=_0x639d9b;super['dispose'](),this[_0x31a4c1(0x238)][_0x31a4c1(0x3c4)](_0x19e729=>_0x19e729[_0x31a4c1(0x36f)]()),this[_0x31a4c1(0x238)][_0x31a4c1(0x1df)]();}[_0x639d9b(0x37a)](_0x1615e1){const _0x55a77b=_0x639d9b;var _0x3c1d4b;return(_0x3c1d4b=this[_0x55a77b(0x238)][_0x55a77b(0x1a8)](_0x1615e1))==null?null:_0x3c1d4b;}[_0x639d9b(0x1ca)](_0x393ea5){const _0x3ad74f=_0x639d9b;let _0x2c3a65=this[_0x3ad74f(0x37a)](_0x393ea5);return _0x2c3a65?(0x0,i['of'])(_0x2c3a65):this['_entityInit$'][_0x3ad74f(0x355)]((0x0,s[_0x3ad74f(0x3aa)])(_0x28848d=>_0x28848d[_0x3ad74f(0x211)]===_0x393ea5));}['readyForCollab'](_0x1102ea){const _0x350c23=_0x639d9b;return(0x0,i['firstValueFrom'])(this[_0x350c23(0x1ca)](_0x1102ea)[_0x350c23(0x355)]((0x0,s[_0x350c23(0x39c)])(()=>void 0x0)));}[_0x639d9b(0x11b)](){const _0x41dd02=_0x639d9b;this[_0x41dd02(0x350)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x41dd02(0x1f5)])['pipe']((0x0,i['takeUntil'])(this[_0x41dd02(0x219)]),(0x0,s[_0x41dd02(0x3ac)])(0x10))[_0x41dd02(0x196)](async _0x55fb33=>{const _0x23eaa8=_0x41dd02;let _0x26d27e=_0x55fb33['unit'][_0x23eaa8(0x264)](),_0x38a6a5=await this[_0x23eaa8(0x1d4)](_0x26d27e,t[_0x23eaa8(0x279)][_0x23eaa8(0x1f5)]);this['_entities'][_0x23eaa8(0x29c)](_0x26d27e,_0x38a6a5);}),this['_univerInstanceService'][_0x41dd02(0x2c7)](t[_0x41dd02(0x279)][_0x41dd02(0x3c3)])['pipe']((0x0,i[_0x41dd02(0x221)])(this[_0x41dd02(0x219)]),(0x0,s[_0x41dd02(0x3ac)])(0x10))['pipe']((0x0,s[_0x41dd02(0x3aa)])(_0x2531bc=>!_0x2531bc['unit'][_0x41dd02(0x264)]()[_0x41dd02(0x24f)]('__')))[_0x41dd02(0x196)](async _0x3fcc52=>{const _0x5de2fe=_0x41dd02;let _0x5beb50=_0x3fcc52[_0x5de2fe(0x104)]['getUnitId'](),_0x5b4907=await this[_0x5de2fe(0x1d4)](_0x5beb50,t[_0x5de2fe(0x279)][_0x5de2fe(0x3c3)]);this[_0x5de2fe(0x238)][_0x5de2fe(0x29c)](_0x5beb50,_0x5b4907);}),(0x0,i[_0x41dd02(0x229)])(this['_univerInstanceService'][_0x41dd02(0x1f4)](t[_0x41dd02(0x279)][_0x41dd02(0x1f5)]),this[_0x41dd02(0x350)]['getTypeOfUnitDisposed$'](t[_0x41dd02(0x279)]['UNIVER_DOC']))[_0x41dd02(0x355)]((0x0,i['takeUntil'])(this['dispose$']))[_0x41dd02(0x196)](_0x5feb10=>{const _0x309c88=_0x41dd02;let _0x26e9e8=_0x5feb10[_0x309c88(0x264)](),_0x25999e=this[_0x309c88(0x238)][_0x309c88(0x1a8)](_0x26e9e8);_0x25999e&&(_0x25999e[_0x309c88(0x36f)](),this[_0x309c88(0x238)][_0x309c88(0x14b)](_0x26e9e8));});}async['_startCollaboration'](_0x3ed97c,_0x31b5a0){const _0x1c5cde=_0x639d9b;let _0x423b3c=await this[_0x1c5cde(0x128)][_0x1c5cde(0x2d9)](_0x3ed97c),_0x2794f8=this['_injector'][_0x1c5cde(0x2d3)](this[_0x1c5cde(0x332)](_0x31b5a0),_0x3ed97c,_0x31b5a0,_0x423b3c);return await _0x2794f8[_0x1c5cde(0x2f9)](),this[_0x1c5cde(0x3b3)]['next'](_0x2794f8),_0x2794f8;}[_0x639d9b(0x332)](_0x134d9a){const _0x35d53b=_0x639d9b;switch(_0x134d9a){case t[_0x35d53b(0x279)][_0x35d53b(0x3c3)]:return R;case t[_0x35d53b(0x279)][_0x35d53b(0x1f5)]:return z;default:throw Error(_0x35d53b(0x37e)+_0x134d9a);}}};U=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(H)),y(0x2,t[_0x639d9b(0x209)]),y(0x3,t['IUniverInstanceService'])],U);var Te=_0x639d9b(0x182),Ee=_0x639d9b(0x38d);let De=class extends t[_0x639d9b(0x2a6)]{constructor(_0x5eaa5a,_0x370b73){const _0x558ef8=_0x639d9b;super(),this[_0x558ef8(0x350)]=_0x5eaa5a,this['_configService']=_0x370b73,this['_init']();}[_0x639d9b(0x11b)](){const _0x5bb974=_0x639d9b;this[_0x5bb974(0x27b)](this[_0x5bb974(0x350)][_0x5bb974(0x149)][_0x5bb974(0x196)](()=>{const _0x3b7e32=_0x5bb974;var _0x1fccff;let _0x165270=this['_univerInstanceService'][_0x3b7e32(0x348)](),_0x43153a=(_0x1fccff=this[_0x3b7e32(0x364)][_0x3b7e32(0x114)](_0x3b7e32(0x1da)))==null?'Univer':_0x1fccff;_0x165270 instanceof t['Workbook']&&(_0x43153a=_0x165270[_0x3b7e32(0x1c0)]),document[_0x3b7e32(0x290)]=_0x43153a;}));}};De=b([y(0x0,t[_0x639d9b(0x21e)]),y(0x1,t[_0x639d9b(0x209)])],De);let W=class{constructor(_0x3446f1,_0x4b8744,_0x27fba4){const _0x58aae0=_0x639d9b;this[_0x58aae0(0x364)]=_0x3446f1,this[_0x58aae0(0x1b5)]=_0x4b8744,this[_0x58aae0(0x10c)]=_0x27fba4,this[_0x58aae0(0x2f9)]();}[_0x639d9b(0x2f9)](){const _0x324718=_0x639d9b;this[_0x324718(0x1b5)][_0x324718(0x175)]({'priority':0x1,'interceptor':(_0x482075,_0x48762f)=>_0x48762f(_0x482075)[_0x324718(0x355)]((0x0,i[_0x324718(0x386)])(async _0x47a01b=>{const _0x385306=_0x324718;let _0x350cd4=_0x47a01b;if(_0x350cd4[_0x385306(0x394)]===0x191){if(typeof window>'u')throw Error(_0x385306(0x336));if(window[_0x385306(0x2e9)](this[_0x385306(0x10c)]['t'](_0x385306(0x269)))){let _0x30db80=window['encodeURIComponent'](window[_0x385306(0x3d5)][_0x385306(0x203)]);window[_0x385306(0x3d5)]['href']=this['_getLoginPath']()+_0x385306(0x204)+_0x30db80;}}return _0x350cd4;}))});}[_0x639d9b(0x390)](){const _0xd5f4b3=_0x639d9b;var _0x5e1a1d;let _0x2715bc=this[_0xd5f4b3(0x364)][_0xd5f4b3(0x114)](E);return(_0x5e1a1d=_0x2715bc==null?void 0x0:_0x2715bc[_0xd5f4b3(0x1db)])==null?_0xd5f4b3(0x399):_0x5e1a1d;}};W=b([y(0x0,t[_0x639d9b(0x209)]),y(0x1,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)])),y(0x2,(0x0,t[_0x639d9b(0x11e)])(t['LocaleService']))],W);let G=class extends t['Disposable']{constructor(_0x4e7686,_0x446ab5){const _0x3eab18=_0x639d9b;super(),this[_0x3eab18(0x2d5)]=_0x4e7686,this[_0x3eab18(0x364)]=_0x446ab5,g(this,_0x3eab18(0x257),!0x1),this[_0x3eab18(0x31e)]();}[_0x639d9b(0x31e)](){const _0x1b8c3c=_0x639d9b;let _0x263468=this;this[_0x1b8c3c(0x27b)](this[_0x1b8c3c(0x2d5)][_0x1b8c3c(0x175)]({'priority':0x3e7,'interceptor':(0x0,c[_0x1b8c3c(0x12c)])({'isMatch'(_0x49df65){const _0x50ad28=_0x1b8c3c;var _0x5345a0;if(_0x49df65[_0x50ad28(0x19a)]===_0x50ad28(0x31b)&&(_0x5345a0=_0x49df65['requestParams'])!=null&&_0x5345a0[_0x50ad28(0x20e)]){let {objectID:_0xf29b27,objectType:_0x373acc}=_0x49df65[_0x50ad28(0x38e)][_0x50ad28(0x20e)]||{};if(!_0xf29b27||_0x373acc===void 0x0)return!0x1;let _0xe37557=_0x263468['_getAPIPrefixPath']()+'/'+_0x373acc+_0x50ad28(0x32d)+_0xf29b27+'/allowed';if(_0x49df65[_0x50ad28(0x26e)]===_0xe37557)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4f0bb0){var _0x3710b7;return(_0x3710b7=_0x4f0bb0['requestParams'])==null?void 0x0:_0x3710b7['body'];},'mergeParamsToRequest'(_0xbf0bf7,_0x5959ad){const _0x4053af=_0x1b8c3c;let _0x1230c9=_0x263468['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x15df73=_0xbf0bf7['reduce']((_0x5b9c4d,_0x2beb4b)=>{const _0x508d82=_0x5037;let {unitID:_0x2b85a5,objectID:_0x12c688,objectType:_0x374c31,actions:_0x300d9a}=_0x2beb4b;return _0x5b9c4d[_0x2b85a5]||(_0x5b9c4d[_0x2b85a5]={}),_0x5b9c4d[_0x2b85a5][_0x12c688]||(_0x5b9c4d[_0x2b85a5][_0x12c688]={'objectID':_0x12c688,'objectType':_0x374c31,'actions':[]}),_0x5b9c4d[_0x2b85a5][_0x12c688][_0x508d82(0x39a)][_0x508d82(0x1a4)](..._0x300d9a),_0x5b9c4d;},{}),_0x1e3b93=[];for(let _0x529b4c in _0x15df73)for(let _0x439fd9 in _0x15df73[_0x529b4c]){let {actions:_0x2b0c4a,objectType:_0x334b8e}=_0x15df73[_0x529b4c][_0x439fd9],_0x1dc3b6=[...new Set(_0x2b0c4a)];_0x1e3b93['push']({'unitID':_0x529b4c,'objectID':_0x439fd9,'objectType':_0x334b8e,'actions':_0x1dc3b6});}return new c[(_0x4053af(0x1ac))](_0x4053af(0x31b),_0x1230c9,{'headers':_0x5959ad[_0x4053af(0x145)],'withCredentials':_0x5959ad[_0x4053af(0x234)],'responseType':_0x5959ad[_0x4053af(0x237)],'body':{'requests':_0x1e3b93}});}},{'distributeResult'(_0x3113fa,_0x3debd4){const _0x4f20aa=_0x1b8c3c;let {objectActions:_0x4a1285}=_0x3113fa;return _0x3debd4[_0x4f20aa(0x39c)](_0x20381e=>{const _0x5e7701=_0x4f20aa;let {unitID:_0x124110,objectID:_0x2a5b75,actions:_0x34783e}=_0x20381e,_0x38c462=_0x4a1285['find'](_0x1147f7=>_0x1147f7['unitID']===_0x124110&&_0x1147f7['objectID']===_0x2a5b75);return{'config':_0x20381e,'result':{'actions':_0x34783e['map'](_0x5d2950=>_0x38c462==null?void 0x0:_0x38c462['actions'][_0x5e7701(0x206)](_0x47f292=>_0x47f292[_0x5e7701(0x165)]===_0x5d2950))[_0x5e7701(0x3aa)](_0x556a88=>!!_0x556a88),'error':_0x3113fa[_0x5e7701(0x36e)]}};});}})}));}[_0x639d9b(0x334)](){const _0x2f7ab4=_0x639d9b;var _0x3f4b75;let _0x275f79=this['_configService'][_0x2f7ab4(0x114)](E);return(_0x3f4b75=_0x275f79==null?void 0x0:_0x275f79[_0x2f7ab4(0x3ca)])==null?_0x2f7ab4(0x2ef):_0x3f4b75;}async[_0x639d9b(0x305)](_0x143f8e){const _0x244c93=_0x639d9b;let _0x58d064=this['_getAPIPrefixPath']()+'/'+_0x143f8e[_0x244c93(0x28f)]+_0x244c93(0x19f);return(await this[_0x244c93(0x2d5)][_0x244c93(0x119)](_0x58d064,{'body':_0x143f8e}))[_0x244c93(0x20e)][_0x244c93(0x287)]||'';}async[_0x639d9b(0x33f)](_0x45dd59){const _0x220660=_0x639d9b;let _0x20bd4d=this[_0x220660(0x334)]()+_0x220660(0x1e2);return(await this[_0x220660(0x2d5)][_0x220660(0x119)](_0x20bd4d,{'body':_0x45dd59}))[_0x220660(0x20e)][_0x220660(0x13a)];}async['update'](_0x4883b2){const _0x18d018=_0x639d9b;var _0x277d80;let _0x5ad85c=this['_getAPIPrefixPath']()+'/'+_0x4883b2[_0x18d018(0x28f)]+_0x18d018(0x32d)+_0x4883b2['objectID'],_0x410e51=await this[_0x18d018(0x2d5)][_0x18d018(0x1e0)](_0x5ad85c,{'body':_0x4883b2});if((_0x410e51==null||(_0x277d80=_0x410e51['body'])==null||(_0x277d80=_0x277d80[_0x18d018(0x36e)])==null?void 0x0:_0x277d80[_0x18d018(0x319)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x639d9b(0x20a)](_0x3a2346){const _0x45ffc3=_0x639d9b;let _0x43850f=this[_0x45ffc3(0x334)]()+'/'+_0x3a2346['objectType']+_0x45ffc3(0x32d)+_0x3a2346[_0x45ffc3(0x287)]+_0x45ffc3(0x22c);return(await this[_0x45ffc3(0x2d5)][_0x45ffc3(0x119)](_0x43850f,{'body':_0x3a2346}))['body'][_0x45ffc3(0x39a)];}async[_0x639d9b(0x15b)](_0x32dee5){const _0x55f3ac=_0x639d9b;let _0x20ac66=this[_0x55f3ac(0x334)]()+_0x55f3ac(0x2fe);return(await this[_0x55f3ac(0x2d5)][_0x55f3ac(0x119)](_0x20ac66,{'body':{'requests':_0x32dee5}}))[_0x55f3ac(0x20e)][_0x55f3ac(0x2c2)];}async[_0x639d9b(0x224)](_0x41d73f){const _0x1b5d7a=_0x639d9b;let _0x608f7c=this['_getAPIPrefixPath']()+'/'+_0x41d73f['objectType']+_0x1b5d7a(0x1b1),_0x240698=await this[_0x1b5d7a(0x2d5)][_0x1b5d7a(0x119)](_0x608f7c,{'body':_0x41d73f});return{'roles':_0x240698['body'][_0x1b5d7a(0x3b8)],'actions':_0x240698[_0x1b5d7a(0x20e)]['actions']};}async[_0x639d9b(0x383)](_0x494aa3){const _0x363ae3=_0x639d9b;let _0x454a3f=this[_0x363ae3(0x334)]()+'/collaborator';await this[_0x363ae3(0x2d5)][_0x363ae3(0x14b)](_0x454a3f,{'params':{'collaboratorID':_0x494aa3[_0x363ae3(0x10e)],'objectID':_0x494aa3[_0x363ae3(0x287)],'unitID':_0x494aa3['unitID']}});}async[_0x639d9b(0x3dd)](_0x3ffdf8){const _0xd9e0be=_0x639d9b;let _0x35742d=this[_0xd9e0be(0x334)]()+_0xd9e0be(0x2fc);await this[_0xd9e0be(0x2d5)][_0xd9e0be(0x169)](_0x35742d,{'body':_0x3ffdf8});}async['createCollaborator'](_0x3a88fc){const _0xf95c1c=_0x639d9b;let _0x1d2846=this[_0xf95c1c(0x334)]()+_0xf95c1c(0x2fc);await this[_0xf95c1c(0x2d5)][_0xf95c1c(0x119)](_0x1d2846,{'body':_0x3a88fc});}async['listCollaborators'](_0x31f324){const _0x31c3df=_0x639d9b;var _0x50dcd0;let _0x5a0b29=this['_getAPIPrefixPath']()+_0x31c3df(0x2fc),_0x19eb12=await this[_0x31c3df(0x2d5)][_0x31c3df(0x1a8)](_0x5a0b29,{'params':{'objectID':_0x31f324[_0x31c3df(0x287)],'unitID':_0x31f324[_0x31c3df(0x211)]}});return this[_0x31c3df(0x338)]((_0x50dcd0=_0x19eb12[_0x31c3df(0x20e)]['cfgEnableObjInherit'])==null?!0x1:_0x50dcd0),_0x19eb12[_0x31c3df(0x20e)][_0x31c3df(0x214)];}async[_0x639d9b(0x11f)](_0x1b21ea){const _0xc34c67=_0x639d9b;let _0x4e0b1b=this[_0xc34c67(0x334)]()+_0xc34c67(0x2fc);await this[_0xc34c67(0x2d5)][_0xc34c67(0x1e0)](_0x4e0b1b,{'body':_0x1b21ea});}[_0x639d9b(0x338)](_0x562902){const _0x270259=_0x639d9b;this[_0x270259(0x257)]=_0x562902;}['getCfgEnableObjInherit'](){const _0x1eadc0=_0x639d9b;return this[_0x1eadc0(0x257)];}};G=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(t['IConfigService']))],G);function Oe(_0x3510b3){const _0x48bf5d=_0x639d9b;let _0x3706c8=atob(_0x3510b3),_0x5ecea5=new Uint8Array(_0x3706c8[_0x48bf5d(0x346)]);for(let _0x2f5b99=0x0;_0x2f5b99<_0x3706c8['length'];_0x2f5b99++)_0x5ecea5[_0x2f5b99]=_0x3706c8['charCodeAt'](_0x2f5b99);return _0x5ecea5;}function ke(_0x482fe4){let _0x3dcc69='';for(let _0x366a92=0x0;_0x366a92<_0x482fe4['length'];_0x366a92++)_0x3dcc69+=String['fromCharCode'](_0x482fe4[_0x366a92]);return btoa(_0x3dcc69);}function Ae(_0x32922c,_0x1da3f1){const _0x1b8e28=_0x639d9b;let _0x39354d=Oe(_0x1da3f1),_0x156984=(0x0,f[_0x1b8e28(0x17a)])(0x10);return ke((0x0,f[_0x1b8e28(0x312)])(_0x156984,(0x0,d[_0x1b8e28(0x22a)])(_0x39354d,_0x156984)[_0x1b8e28(0x388)]((0x0,f[_0x1b8e28(0x33a)])(_0x32922c))));}function je(){const _0x4b765f=_0x639d9b;let _0xdd4c68=(0x0,l['getGlobalObject'])()[_0x4b765f(0x1f6)];if(typeof window<'u'&&window[_0x4b765f(0x3d5)]!==void 0x0&&_0xdd4c68){let _0x43506c={'time':Math[_0x4b765f(0x27a)](Date[_0x4b765f(0x135)]()/0x3e8),'domain':location[_0x4b765f(0x396)]};return Ae(JSON[_0x4b765f(0x139)](_0x43506c),_0xdd4c68);}}let K=class{constructor(_0xaa9f62){const _0x11d80f=_0x639d9b;this['_httpService']=_0xaa9f62,this[_0x11d80f(0x1bc)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x43dfca,_0x23f2ee)=>{const _0x3991e1=_0x5037;let _0x2772e0=je();return _0x2772e0&&_0x43dfca[_0x3991e1(0x145)][_0x3991e1(0x29c)](_0x3991e1(0x233),_0x2772e0),_0x23f2ee(_0x43dfca);}});}};K=b([y(0x0,(0x0,t['Inject'])(c[_0x639d9b(0x344)]))],K);let q=class extends t[_0x639d9b(0x19b)]{constructor(_0x104713,_0x2601bb,_0xb93cdd){const _0x5a5978=_0x639d9b;super(),this[_0x5a5978(0x353)]=_0x104713,this['_snapshotService']=_0x2601bb,this[_0x5a5978(0x24c)]=_0xb93cdd,g(this,_0x5a5978(0x125),new i['BehaviorSubject'](null)),g(this,_0x5a5978(0x2d0),this[_0x5a5978(0x125)]['asObservable']());}async['loadUnitOfRevision'](_0x6a4c7b,_0x4d8621,_0x400157){const _0x56db26=_0x639d9b;this[_0x56db26(0x125)][_0x56db26(0x268)]({'unitId':_0x6a4c7b,'type':_0x4d8621});let _0x497de8=null;switch(_0x4d8621){case t[_0x56db26(0x279)][_0x56db26(0x1f5)]:_0x497de8=await this[_0x56db26(0x3a2)][_0x56db26(0x26a)](_0x6a4c7b,_0x400157);break;case t[_0x56db26(0x279)][_0x56db26(0x3c3)]:_0x497de8=await this[_0x56db26(0x3a2)]['loadDoc'](_0x6a4c7b,_0x400157);break;default:this['_logService'][_0x56db26(0x36e)](_0x56db26(0x21c),_0x56db26(0x11d));break;}return _0x497de8;}async[_0x639d9b(0x217)](_0x1a3169,_0x1b3bb4,_0x4405cd){const _0x53c0e4=_0x639d9b;var _0x32df7f;this['_unitInfo$'][_0x53c0e4(0x268)]({'unitId':_0x1a3169,'type':_0x1b3bb4,'subUnitId':_0x4405cd});let _0x13bf1f=0x0,_0x21fcf7=await((_0x32df7f=this[_0x53c0e4(0x24c)])==null?void 0x0:_0x32df7f['loadOfflineData'](_0x1a3169));return _0x21fcf7&&(_0x21fcf7[_0x53c0e4(0x18e)]||_0x21fcf7['mutations'][_0x53c0e4(0x346)]!==0x0)&&(_0x13bf1f=_0x21fcf7['rev']),_0x13bf1f===0x0&&this['_logService'][_0x53c0e4(0x1af)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['loadUnitOfRevision'](_0x1a3169,_0x1b3bb4,_0x13bf1f);}};q=b([y(0x0,t[_0x639d9b(0x1b7)]),y(0x1,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x189)])),y(0x2,(0x0,t['Optional'])(C))],q);let J=class{constructor(_0x2f2370,_0x2b91ba,_0x5c067e){const _0x51a989=_0x639d9b;this[_0x51a989(0x1b5)]=_0x2f2370,this['_configService']=_0x2b91ba,this[_0x51a989(0x350)]=_0x5c067e,g(this,_0x51a989(0x282),0x0),g(this,_0x51a989(0x31d),new i[(_0x51a989(0x352))]()),g(this,_0x51a989(0x2ba),this[_0x51a989(0x31d)]),g(this,_0x51a989(0x31c),new Map());}[_0x639d9b(0x170)](_0x36c586){const _0x52737f=_0x639d9b;this[_0x52737f(0x282)]=_0x36c586,this[_0x52737f(0x31d)]['next'](_0x36c586);}[_0x639d9b(0x1fe)](_0x1856e4,_0x407f23){const _0x3d4596=_0x639d9b;if(_0x407f23===u[_0x3d4596(0x220)]['BASE64']){let _0x4b6a9b=new Image();return _0x4b6a9b['src']=_0x1856e4,_0x4b6a9b;}return this['_imageSourceCache'][_0x3d4596(0x1a8)](_0x1856e4);}[_0x639d9b(0x191)](_0x352eb4,_0x31fb05,_0x5b1fe2){const _0x2e4b7b=_0x639d9b;_0x31fb05===u['ImageSourceType']['BASE64']||_0x5b1fe2==null||this[_0x2e4b7b(0x31c)][_0x2e4b7b(0x29c)](_0x352eb4,_0x5b1fe2);}async[_0x639d9b(0x2fd)](_0x39c40b){const _0x19aea0=_0x639d9b;try{let _0x778a4b=this[_0x19aea0(0x2e4)](this['_getSignURL'](),''+_0x39c40b),_0x36be85=(await this['_httpService'][_0x19aea0(0x1a8)](_0x778a4b))[_0x19aea0(0x20e)];if(_0x36be85[_0x19aea0(0x36e)]&&_0x36be85['error'][_0x19aea0(0x319)]===a[_0x19aea0(0x373)]['OK']){let _0x4da414=(0x0,t[_0x19aea0(0x27d)])(_0x36be85[_0x19aea0(0x26e)],this[_0x19aea0(0x3d7)]());return Promise['resolve'](_0x4da414);}return Promise[_0x19aea0(0x2a2)](_0x36be85[_0x19aea0(0x36e)]);}catch(_0xffeded){return Promise[_0x19aea0(0x2a2)](_0xffeded);}}async[_0x639d9b(0x3d1)](_0x4b8783){const _0x3ba95b=_0x639d9b;let _0x321dc8='';if(!u[_0x3ba95b(0x369)][_0x3ba95b(0x23e)](_0x4b8783[_0x3ba95b(0x291)]))return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)]['ERROR_IMAGE_TYPE']));if(_0x4b8783[_0x3ba95b(0x213)]>(0x0,u[_0x3ba95b(0x1ed)])())return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)][_0x3ba95b(0x303)]));try{let _0x27d8c1=new FormData();_0x27d8c1[_0x3ba95b(0x188)](_0x3ba95b(0x17e),_0x4b8783);let _0x188b0c=this[_0x3ba95b(0x350)][_0x3ba95b(0x348)](),_0xbe53a1=_0x188b0c==null?void 0x0:_0x188b0c[_0x3ba95b(0x264)]();if(!_0xbe53a1)throw Error(_0x3ba95b(0x38c));let _0x42aeea=this[_0x3ba95b(0x3c6)]()+_0x3ba95b(0x155)+_0x4b8783[_0x3ba95b(0x213)][_0x3ba95b(0x16a)]()+_0x3ba95b(0x3cc)+a[_0x3ba95b(0x20c)]['UnitEmbedded']+_0x3ba95b(0x321)+encodeURIComponent(_0xbe53a1),_0x2b8d5e={'body':_0x27d8c1},_0x56bf08=(await this['_httpService'][_0x3ba95b(0x119)](_0x42aeea,_0x2b8d5e))['body'];if(typeof _0x56bf08['FileId']!='string')return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)]['ERROR_IMAGE']));_0x321dc8=_0x56bf08[_0x3ba95b(0x318)];}catch{return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)]['ERROR_IMAGE']));}return new Promise((_0x5dcd09,_0x3ee31c)=>{const _0x5afe26=_0x3ba95b;let _0xa0f46b=new FileReader();_0xa0f46b[_0x5afe26(0x30e)](_0x4b8783),_0xa0f46b['onload']=_0x2cbd60=>{const _0x3dbf1f=_0x5afe26;var _0xa0f18b;let _0x361c82=(_0xa0f18b=_0x2cbd60[_0x3dbf1f(0x3b6)])==null?void 0x0:_0xa0f18b['result'];if(_0x361c82==null){this['_decreaseWaiting'](),_0x3ee31c(Error(u[_0x3dbf1f(0x183)][_0x3dbf1f(0x24d)]));return;}_0x5dcd09({'imageId':(0x0,t[_0x3dbf1f(0x110)])(0x6),'imageSourceType':u['ImageSourceType'][_0x3dbf1f(0x292)],'source':_0x321dc8,'base64Cache':_0x361c82,'status':u[_0x3dbf1f(0x183)][_0x3dbf1f(0x29d)]}),this[_0x3dbf1f(0x1a0)]();};});}[_0x639d9b(0x3c6)](){const _0x473a9d=_0x639d9b;var _0x4adc00;let _0x20113d=this['_configService'][_0x473a9d(0x114)](E);return(_0x4adc00=_0x20113d==null?void 0x0:_0x20113d['uploadFileServerUrl'])==null?_0x473a9d(0x251):_0x4adc00;}[_0x639d9b(0x3a9)](){const _0x16c5d1=_0x639d9b;var _0x16ed61;let _0x33d628=this[_0x16c5d1(0x364)][_0x16c5d1(0x114)](E);return(_0x16ed61=_0x33d628==null?void 0x0:_0x33d628['signUrlServerUrl'])==null?_0x16c5d1(0x2e8):_0x16ed61;}['_getDownloadEndpointURL'](){const _0x22e64b=_0x639d9b;var _0x5c186e;let _0x3cfd1b=this[_0x22e64b(0x364)][_0x22e64b(0x114)](E);return(_0x5c186e=_0x3cfd1b==null?void 0x0:_0x3cfd1b[_0x22e64b(0x357)])==null?location[_0x22e64b(0x31a)]:_0x5c186e;}['_replaceFileID'](_0xeaf126,_0x412935){const _0x46c420=_0x639d9b;return _0xeaf126[_0x46c420(0x121)](_0x46c420(0x32f),_0x412935);}[_0x639d9b(0x1a0)](){const _0x21ea48=_0x639d9b;--this[_0x21ea48(0x282)],this['_change$'][_0x21ea48(0x268)](this['_waitCount']);}};J=b([y(0x0,(0x0,t['Inject'])(c[_0x639d9b(0x344)])),y(0x1,t['IConfigService']),y(0x2,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x21e)]))],J);let Y=class{constructor(_0xd857e2,_0x2339bd){const _0x2008c5=_0x639d9b;this[_0x2008c5(0x364)]=_0xd857e2,this[_0x2008c5(0x2d5)]=_0x2339bd;}[_0x639d9b(0x334)](){const _0x52079d=_0x639d9b;var _0x4ccd7d;let _0x474e80=this[_0x52079d(0x364)]['getConfig'](E);return(_0x4ccd7d=_0x474e80==null?void 0x0:_0x474e80[_0x52079d(0x3ca)])==null?_0x52079d(0x2ef):_0x4ccd7d;}async[_0x639d9b(0x33f)](_0x35cc46){const _0x8d30a2=_0x639d9b;let _0x1af2f0=this[_0x8d30a2(0x334)]()+_0x8d30a2(0x2fc);return{'list':[{'title':_0x8d30a2(0x10d),'mentions':(await this['_HTTPService'][_0x8d30a2(0x1a8)](_0x1af2f0,{'params':{'objectID':_0x35cc46[_0x8d30a2(0x3bc)],'unitID':_0x35cc46[_0x8d30a2(0x3bc)]}}))[_0x8d30a2(0x20e)][_0x8d30a2(0x214)][_0x8d30a2(0x39c)](_0x206474=>({'objectId':_0x206474['id'],'name':_0x206474[_0x8d30a2(0x235)]['name'],'metadata':{'icon':_0x206474[_0x8d30a2(0x235)][_0x8d30a2(0x3ce)]},'label':_0x206474[_0x8d30a2(0x235)][_0x8d30a2(0x1c0)],'objectType':t[_0x8d30a2(0x379)][_0x8d30a2(0x376)]})),'metadata':{},'type':t[_0x8d30a2(0x379)][_0x8d30a2(0x376)]}]};}};Y=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x209)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)]))],Y);let X=class extends t[_0x639d9b(0x19b)]{constructor(_0x387882,_0x1af8ec,_0x332cee,_0x3ec89b,_0x405e5b){const _0x2f49b5=_0x639d9b;super(),this[_0x2f49b5(0x22b)]=_0x387882,this[_0x2f49b5(0x350)]=_0x1af8ec,this[_0x2f49b5(0x2fa)]=_0x332cee,this[_0x2f49b5(0x23d)]=_0x3ec89b,this['_collaborationUIEventService']=_0x405e5b,this[_0x2f49b5(0x271)](),this[_0x2f49b5(0x1f0)]();}[_0x639d9b(0x1f0)](){const _0x175beb=_0x639d9b;let _0x5b5bb6=async _0x3be5ef=>{const _0x20d033=_0x5037;(await this[_0x20d033(0x23d)][_0x20d033(0x2d9)](_0x3be5ef))[_0x20d033(0x32e)][_0x20d033(0x355)]((0x0,s['filter'])(_0x21e999=>_0x21e999['eventID']===e[_0x20d033(0x1b0)][_0x20d033(0x254)]),(0x0,s[_0x20d033(0x221)])(this[_0x20d033(0x219)]))[_0x20d033(0x196)](_0xb204a7=>{const _0x27cdca=_0x20d033;let {reason:_0x21c073}=_0xb204a7[_0x27cdca(0x398)];this[_0x27cdca(0x15e)][_0x27cdca(0x2f7)]({'id':'CLOSE_ROOM','data':_0x21c073}),this[_0x27cdca(0x2fa)]['updatePermissionPoint'](new r['WorkbookEditablePermission'](_0x3be5ef)['id'],!0x1),this[_0x27cdca(0x23d)][_0x27cdca(0x1d1)](_0x3be5ef);});};(0x0,i[_0x175beb(0x229)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x175beb(0x1f5)]),this[_0x175beb(0x350)][_0x175beb(0x2c7)](t[_0x175beb(0x279)]['UNIVER_DOC']))[_0x175beb(0x355)]((0x0,s['map'])(_0x79f0d4=>_0x79f0d4['unit']['getUnitId']()),(0x0,s[_0x175beb(0x3aa)])(_0x2ad3e1=>!(0x0,t['isInternalEditorID'])(_0x2ad3e1)),(0x0,s['takeUntil'])(this[_0x175beb(0x219)]))['subscribe'](_0x2601b9=>{_0x5b5bb6(_0x2601b9);});}[_0x639d9b(0x271)](){const _0x1c2232=_0x639d9b;let _0x5e1ea3=async _0x8763f9=>{const _0x3dd04a=_0x5037;let _0x303d73=await this[_0x3dd04a(0x23d)]['requireSession'](_0x8763f9),_0x19e9c3=this[_0x3dd04a(0x22b)]['get'](r[_0x3dd04a(0x142)]);_0x303d73[_0x3dd04a(0x32e)][_0x3dd04a(0x355)]((0x0,s['filter'])(_0x4238c0=>_0x4238c0['eventID']===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s[_0x3dd04a(0x221)])(this[_0x3dd04a(0x219)]))[_0x3dd04a(0x196)](_0x353f38=>{const _0x65f5a2=_0x3dd04a;let {objectId:_0xad2dc3}=_0x353f38['data'];_0xad2dc3===_0x8763f9?_0x19e9c3[_0x65f5a2(0x1b9)](_0x8763f9):_0x19e9c3[_0x65f5a2(0x306)](_0x8763f9,_0xad2dc3);});};(0x0,i[_0x1c2232(0x229)])(this[_0x1c2232(0x350)][_0x1c2232(0x2c7)](t['UniverInstanceType'][_0x1c2232(0x1f5)]))[_0x1c2232(0x355)]((0x0,s[_0x1c2232(0x39c)])(_0x408d6b=>_0x408d6b[_0x1c2232(0x104)]['getUnitId']()),(0x0,s['filter'])(_0x553171=>!(0x0,t[_0x1c2232(0x193)])(_0x553171)),(0x0,s[_0x1c2232(0x221)])(this[_0x1c2232(0x219)]))[_0x1c2232(0x196)](_0x2c0025=>{_0x5e1ea3(_0x2c0025);});}};X=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t['Injector'])),y(0x1,t['IUniverInstanceService']),y(0x2,t[_0x639d9b(0x2f2)]),y(0x3,(0x0,t[_0x639d9b(0x11e)])(H)),y(0x4,(0x0,t[_0x639d9b(0x11e)])(_))],X);let Z=class{constructor(_0x14d409,_0x23241f){const _0x14c7d6=_0x639d9b;this[_0x14c7d6(0x364)]=_0x14d409,this[_0x14c7d6(0x1b5)]=_0x23241f;}async[_0x639d9b(0x25d)](_0x1c0300,_0xcfe4f1){const _0xdd5c3f=_0x639d9b;var _0x464eaa;let {unitID:_0x36ca25,type:_0x5bc0c2,revision:_0x198332=0x0}=_0xcfe4f1,_0x90741f=this[_0xdd5c3f(0x1b2)]()+'/'+_0x5bc0c2+_0xdd5c3f(0x2b6)+_0x36ca25+'/rev/'+_0x198332,_0x413593=(await this[_0xdd5c3f(0x1b5)][_0xdd5c3f(0x1a8)](_0x90741f))[_0xdd5c3f(0x20e)],_0x40925b=(_0x464eaa=_0x413593['snapshot'])==null?void 0x0:_0x464eaa[_0xdd5c3f(0x3c8)];if(_0x40925b){let _0x4c3fa2=_0x40925b==null?void 0x0:_0x40925b[_0xdd5c3f(0x2cb)];_0x40925b['originalMeta']=e['textEncoder'][_0xdd5c3f(0x154)]((0x0,e['b64DecodeUnicode'])(_0x4c3fa2)),Object['entries'](_0x40925b['sheets'])[_0xdd5c3f(0x3c4)](([,_0x5d726f])=>{const _0x4c43c6=_0xdd5c3f;let _0x64461e=_0x5d726f['originalMeta'];_0x5d726f[_0x4c43c6(0x2cb)]=e['textEncoder'][_0x4c43c6(0x154)]((0x0,e[_0x4c43c6(0x180)])(_0x64461e));});}return _0x413593;}async[_0x639d9b(0x372)](_0x19aca1,_0x2b8ed5){const _0x3fcae9=_0x639d9b;let {unitID:_0x15ef6a,type:_0x150f57,blockID:_0x318d69}=_0x2b8ed5,_0x2d68a9=this[_0x3fcae9(0x34a)]()+'/'+_0x150f57+'/unit/'+_0x15ef6a+_0x3fcae9(0x34f)+_0x318d69;return(await this[_0x3fcae9(0x1b5)][_0x3fcae9(0x1a8)](_0x2d68a9))['body'];}async[_0x639d9b(0x2ab)](_0x43376c,_0x5e6505){const _0x251eb3=_0x639d9b;let {unitID:_0xc53744,type:_0x276dad,blockID:_0x2848f7}=_0x5e6505,_0x42b70c=this[_0x251eb3(0x34a)]()+_0x251eb3(0x34f)+_0x276dad+'/unit/'+_0xc53744+_0x251eb3(0x34f)+_0x2848f7;return(await this[_0x251eb3(0x1b5)][_0x251eb3(0x1a8)](_0x42b70c))['body'];}async[_0x639d9b(0x258)](_0x3cee26,_0x14a58a){const _0x5eaeac=_0x639d9b;let {unitID:_0x259be1,type:_0x3a53bd,from:_0x38824b,to:_0x166a34}=_0x14a58a,_0x31c3a8=this['_getAPIPrefix']()+'/'+_0x3a53bd+_0x5eaeac(0x2b6)+_0x259be1+'/fetchmissing?from='+_0x38824b+_0x5eaeac(0x3a8)+_0x166a34;return(await this['_httpService'][_0x5eaeac(0x1a8)](_0x31c3a8))[_0x5eaeac(0x20e)];}[_0x639d9b(0x1b2)](){const _0xe4feab=_0x639d9b;var _0x5f34c7;return(_0x5f34c7=this[_0xe4feab(0x364)][_0xe4feab(0x114)]('SNAPSHOT_URL_KEY'))==null?this[_0xe4feab(0x34a)]():_0x5f34c7;}['_getAPIPrefix'](){const _0x8b9d88=_0x639d9b;var _0x19c3fe;let _0x43c7ac=this[_0x8b9d88(0x364)][_0x8b9d88(0x114)](E);return(_0x19c3fe=_0x43c7ac==null?void 0x0:_0x43c7ac[_0x8b9d88(0x143)])==null?'/universer-api/snapshot':_0x19c3fe;}async[_0x639d9b(0x12a)](_0x435284,_0x383618){const _0x4e3565=_0x639d9b;let _0x5334d6=_0x4e3565(0x328)+_0x383618['type']+_0x4e3565(0x2b6)+_0x383618['unitID']+'/resources';return(await this[_0x4e3565(0x1b5)][_0x4e3565(0x1a8)](_0x5334d6,{'params':{'resourceId':JSON[_0x4e3565(0x139)](_0x383618['resourceIDs'])}}))[_0x4e3565(0x20e)];}[_0x639d9b(0x301)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x639d9b(0x293)](){const _0x1eca8e=_0x639d9b;throw Error(_0x1eca8e(0x304));}['saveSheetBlock'](){const _0xf8de7e=_0x639d9b;throw Error(_0xf8de7e(0x304));}[_0x639d9b(0x2d4)](){const _0x1181ef=_0x639d9b;throw Error(_0x1181ef(0x304));}[_0x639d9b(0x1f2)](){const _0x571362=_0x639d9b;throw Error(_0x571362(0x304));}[_0x639d9b(0x243)](){const _0x309658=_0x639d9b;throw Error(_0x309658(0x304));}};Z=b([y(0x0,t[_0x639d9b(0x209)]),y(0x1,(0x0,t['Inject'])(c[_0x639d9b(0x344)]))],Z);let Q=class extends t[_0x639d9b(0x2d8)]{constructor(_0x1b9a7f,_0x5e33de,_0x307ff0,_0x1e24a6,_0xe45b21){const _0x3953aa=_0x639d9b;super(_0x1b9a7f,_0x5e33de,_0x307ff0),this['_transformService']=_0x1e24a6,this[_0x3953aa(0x353)]=_0xe45b21;}[_0x639d9b(0x2b8)](_0x2e5a0d,_0x57d721){const _0xeaea70=_0x639d9b;let _0x4450b8=this[_0xeaea70(0x31f)](_0x2e5a0d);if(_0x4450b8)try{let _0x70830b=this[_0xeaea70(0x2a4)](_0x4450b8,_0x57d721);this[_0xeaea70(0x1b4)](_0x2e5a0d,_0x70830b);}catch(_0x2a0d19){this[_0xeaea70(0x353)][_0xeaea70(0x36e)](_0xeaea70(0x1c7),_0x2a0d19),this[_0xeaea70(0x106)](_0x2e5a0d);}let _0x25917a=this[_0xeaea70(0x272)](_0x2e5a0d);if(_0x25917a)try{let _0x4f5c3d=this[_0xeaea70(0x2a4)](_0x25917a,_0x57d721);this['_substituteRedoStack'](_0x2e5a0d,_0x4f5c3d);}catch(_0x48935a){this[_0xeaea70(0x353)][_0xeaea70(0x36e)](_0x48935a),this[_0xeaea70(0x22f)](_0x2e5a0d);}}[_0x639d9b(0x106)](_0x2f77f0){const _0x53a936=_0x639d9b;let _0x43cf1c=this[_0x53a936(0x31f)](_0x2f77f0);_0x43cf1c&&(_0x43cf1c['length']=0x0,this[_0x53a936(0x239)]());}[_0x639d9b(0x22f)](_0xb03da9){const _0x4412f6=_0x639d9b;let _0x3b48be=this[_0x4412f6(0x272)](_0xb03da9);_0x3b48be&&(_0x3b48be['length']=0x0,this['_updateStatus']());}[_0x639d9b(0x1b4)](_0x4b0f46,_0x3b6ac1){const _0x172210=_0x639d9b;this['_undoStacks'][_0x172210(0x29c)](_0x4b0f46,_0x3b6ac1),this[_0x172210(0x239)]();}[_0x639d9b(0x397)](_0x2b61ad,_0x53346b){const _0x4c59ce=_0x639d9b;this['_redoStacks'][_0x4c59ce(0x29c)](_0x2b61ad,_0x53346b),this[_0x4c59ce(0x239)]();}[_0x639d9b(0x2a4)](_0x44f1f7,_0x3081f0){const _0x550c1=_0x639d9b;let _0x34f794=[],_0x506596=_0x3081f0,_0x545b31=_0x3081f0;for(let _0x43055f=_0x44f1f7[_0x550c1(0x346)]-0x1;_0x43055f>=0x0;_0x43055f--){let {unitID:_0x2e8a9e,undoMutations:_0x107b23,redoMutations:_0x106ca2}=_0x44f1f7[_0x43055f],_0xd645c7=this['_transformService'][_0x550c1(0x2ce)](_0x506596,_0x107b23),_0x3cde92=this[_0x550c1(0x297)][_0x550c1(0x2ce)](_0x545b31,_0x106ca2);if((0x0,e[_0x550c1(0x3dc)])(_0xd645c7)||(0x0,e[_0x550c1(0x3dc)])(_0x3cde92)){this[_0x550c1(0x353)][_0x550c1(0x36e)](_0x550c1(0x1c7),'transformStack\x20failed!',_0xd645c7,_0x3cde92);break;}_0x506596=_0xd645c7[_0x550c1(0x294)],_0x545b31=_0x3cde92['c1Prime'],_0x34f794[_0x550c1(0x1a4)]({'unitID':_0x2e8a9e,'undoMutations':_0xd645c7[_0x550c1(0x24a)],'redoMutations':_0x3cde92[_0x550c1(0x24a)]});}return _0x34f794[_0x550c1(0x1de)]();}};Q=b([y(0x0,t['IUniverInstanceService']),y(0x1,t[_0x639d9b(0x2ec)]),y(0x2,t[_0x639d9b(0x347)]),y(0x3,e['ITransformService']),y(0x4,t['ILogService'])],Q);let $=class extends t[_0x639d9b(0x2b5)]{constructor(_0x28ac52={},_0x448ac7,_0x61d58d,_0x35d0bb){const _0x2630ee=_0x639d9b;super(),this[_0x2630ee(0x10a)]=_0x28ac52,this[_0x2630ee(0x353)]=_0x448ac7,this['_injector']=_0x61d58d,this[_0x2630ee(0x364)]=_0x35d0bb;let {..._0x360651}=(0x0,t[_0x2630ee(0x229)])({},ue,_0x28ac52);if(!_0x360651[_0x2630ee(0x327)])throw Error(_0x2630ee(0x265));this[_0x2630ee(0x10a)]=_0x360651,this[_0x2630ee(0x364)]['setConfig'](E,_0x360651);}[_0x639d9b(0x263)](){const _0x4f7e48=_0x639d9b;this['_registerDependencies'](),this[_0x4f7e48(0x28d)]();}[_0x639d9b(0x1c9)](){const _0x323073=_0x639d9b;var _0x4f1170,_0x2fca0d;this['_injector'][_0x323073(0x1dc)](t['IUndoRedoService'])&&this[_0x323073(0x353)][_0x323073(0x36e)]('[UniverCollaborationClientPlugin]',_0x323073(0x23a));let _0x17aec7=(0x0,t[_0x323073(0x22e)])([[t[_0x323073(0x186)],{'useClass':Q}],[H],[x],[w],[W],[K],[v],[X],[_],[q],[B,{'useClass':this[_0x323073(0x10a)][_0x323073(0x327)]}],[e[_0x323073(0x129)],{'useClass':Z}],[t[_0x323073(0x2f4)],{'useClass':G}],[u[_0x323073(0x29b)],{'useClass':J}],[t[_0x323073(0x34e)],{'useClass':Y}],[U],[De]],(_0x4f1170=this[_0x323073(0x10a)])==null?void 0x0:_0x4f1170[_0x323073(0x3ab)]);if(!((_0x2fca0d=this[_0x323073(0x10a)])!=null&&_0x2fca0d[_0x323073(0x226)])){let _0x2c08ec=_0x17aec7['findIndex'](([_0x32d517])=>_0x32d517===T);_0x2c08ec!==-0x1&&_0x17aec7[_0x323073(0x202)](_0x2c08ec,0x1);}(0x0,t[_0x323073(0x349)])(this[_0x323073(0x22b)],_0x17aec7);}[_0x639d9b(0x28d)](){const _0x3aa78d=_0x639d9b;var _0x3f46ab,_0x3fe9fd;if(this[_0x3aa78d(0x22b)][_0x3aa78d(0x1a8)](c[_0x3aa78d(0x344)])[_0x3aa78d(0x175)]({'priority':0x14,'interceptor':(0x0,c['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x3f46ab=this[_0x3aa78d(0x10a)])!=null&&_0x3f46ab[_0x3aa78d(0x2af)])){var _0x569038;(_0x569038=this[_0x3aa78d(0x22b)]['get'](C,t[_0x3aa78d(0x2ae)]['OPTIONAL']))==null||_0x569038[_0x3aa78d(0x276)]();}(_0x3fe9fd=this[_0x3aa78d(0x10a)])!=null&&_0x3fe9fd[_0x3aa78d(0x2b3)]&&(0x0,t[_0x3aa78d(0x2bb)])(this[_0x3aa78d(0x22b)],[[W]]),(0x0,t[_0x3aa78d(0x2bb)])(this['_injector'],[[K],[U],[X]]);}};g($,'pluginName',_0x639d9b(0x212)),g($,_0x639d9b(0x1a2),Te),g($,_0x639d9b(0x21f),Ee),$=b([(0x0,t[_0x639d9b(0x122)])(l[_0x639d9b(0x2c5)],e[_0x639d9b(0x2c6)],c[_0x639d9b(0x138)]),y(0x1,t[_0x639d9b(0x1b7)]),y(0x2,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x3,t['IConfigService'])],$),Object['defineProperty'](exports,_0x639d9b(0x176),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x12e),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x639d9b(0x16d),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x639d9b(0x36d)]=E,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x3a4),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x639d9b(0x2db),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x639d9b(0x3ba)](exports,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return J;}}),Object['defineProperty'](exports,_0x639d9b(0x354),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x639d9b(0x3ba)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x17c),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x639d9b(0x3bf)]=_e,exports[_0x639d9b(0x3c2)]=re,exports[_0x639d9b(0x3b4)]=_,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x2ad),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x639d9b(0x370)]=v,Object['defineProperty'](exports,_0x639d9b(0x30a),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x639d9b(0x339)]=p,exports[_0x639d9b(0x198)]=_0x639d9b(0x1a5),exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x639d9b(0x2fb),Object[_0x639d9b(0x3ba)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x2f3),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x3c5),{'enumerable':!0x0,'get':function(){return I;}}),exports['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',exports[_0x639d9b(0x236)]=_0x639d9b(0x111),exports[_0x639d9b(0x280)]=B,exports[_0x639d9b(0x222)]=C,exports[_0x639d9b(0x2b9)]=xe,exports[_0x639d9b(0x1e1)]=T,exports[_0x639d9b(0x177)]=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']=_0x639d9b(0x177),Object['defineProperty'](exports,_0x639d9b(0x28b),{'enumerable':!0x0,'get':function(){return x;}}),Object['defineProperty'](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x639d9b(0x1d6),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x33d),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x639d9b(0x20f)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x639d9b(0x37f)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x639d9b(0x289)]=ae,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x333),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,_0x639d9b(0x190),{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x26c),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x2ea),{'enumerable':!0x0,'get':function(){return A;}}),exports['UnitStatus']=le,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x1b6),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x639d9b(0x117)]=Se,exports[_0x639d9b(0x255)]=se,exports[_0x639d9b(0x1dd)]=Ce;
|
|
1
|
+
const _0x1de16c=_0x3896;(function(_0x11be8d,_0x49e442){const _0x1fad69=_0x3896,_0x51ca26=_0x11be8d();while(!![]){try{const _0x1a2d2b=parseInt(_0x1fad69(0x276))/0x1+-parseInt(_0x1fad69(0x1d6))/0x2+-parseInt(_0x1fad69(0x13b))/0x3*(-parseInt(_0x1fad69(0x345))/0x4)+parseInt(_0x1fad69(0x304))/0x5+parseInt(_0x1fad69(0x323))/0x6+-parseInt(_0x1fad69(0x3b3))/0x7*(-parseInt(_0x1fad69(0x290))/0x8)+parseInt(_0x1fad69(0x17e))/0x9*(-parseInt(_0x1fad69(0x319))/0xa);if(_0x1a2d2b===_0x49e442)break;else _0x51ca26['push'](_0x51ca26['shift']());}catch(_0x101902){_0x51ca26['push'](_0x51ca26['shift']());}}}(_0x4f3f,0x567d8),Object[_0x1de16c(0x310)](exports,Symbol[_0x1de16c(0x2b2)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs/core'),n=require('@univerjs/docs'),r=require('@univerjs/sheets'),i=require('rxjs'),a=require('@univerjs/protocol'),o=require('@univerjs/telemetry'),s=require('rxjs/operators'),c=require('@univerjs/network'),l=require('@univerjs-pro/license'),u=require('@univerjs/drawing'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js');const p='ws://127.0.0.1:8000/universer-api/comb/connect',m=0x4e20;function ee(_0x3581ae){const _0x197530=_0x1de16c;return JSON[_0x197530(0x2d8)](_0x3581ae)[_0x197530(0x3c7)];}function h(_0x198375){'@babel/helpers - typeof';const _0x39b50b=_0x1de16c;return h=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x39b50b(0x1b3)?function(_0x4ef208){return typeof _0x4ef208;}:function(_0x5a162b){const _0x5c935e=_0x39b50b;return _0x5a162b&&typeof Symbol==_0x5c935e(0x31e)&&_0x5a162b[_0x5c935e(0x340)]===Symbol&&_0x5a162b!==Symbol['prototype']?_0x5c935e(0x1b3):typeof _0x5a162b;},h(_0x198375);}function te(_0x381074,_0x465623){const _0x4ccc24=_0x1de16c;if(h(_0x381074)!=_0x4ccc24(0x29f)||!_0x381074)return _0x381074;var _0x59407b=_0x381074[Symbol[_0x4ccc24(0x228)]];if(_0x59407b!==void 0x0){var _0x50a718=_0x59407b[_0x4ccc24(0x21c)](_0x381074,_0x465623||_0x4ccc24(0x1aa));if(h(_0x50a718)!=_0x4ccc24(0x29f))return _0x50a718;throw TypeError(_0x4ccc24(0x24c));}return(_0x465623===_0x4ccc24(0x239)?String:Number)(_0x381074);}function ne(_0x4c9768){const _0x2c3804=_0x1de16c;var _0x1076ee=te(_0x4c9768,_0x2c3804(0x239));return h(_0x1076ee)==_0x2c3804(0x1b3)?_0x1076ee:_0x1076ee+'';}function g(_0x237c9a,_0x5f5901,_0xa78bc8){const _0x1a697a=_0x1de16c;return(_0x5f5901=ne(_0x5f5901))in _0x237c9a?Object[_0x1a697a(0x310)](_0x237c9a,_0x5f5901,{'value':_0xa78bc8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x237c9a[_0x5f5901]=_0xa78bc8,_0x237c9a;}let re=function(_0x464dda){const _0x15f4c3=_0x1de16c;return _0x464dda[_0x15f4c3(0x3c6)]='OTHER_CLIENT_EDITING',_0x464dda['PERMISSION_DENIED']=_0x15f4c3(0x147),_0x464dda[_0x15f4c3(0x171)]=_0x15f4c3(0x171),_0x464dda['CLOSE_ROOM']='CLOSE_ROOM',_0x464dda[_0x15f4c3(0x21a)]=_0x15f4c3(0x21a),_0x464dda[_0x15f4c3(0x29a)]=_0x15f4c3(0x29a),_0x464dda[_0x15f4c3(0x1fa)]=_0x15f4c3(0x1fa),_0x464dda['SUBMIT_CHANGESET_TIMEOUT']=_0x15f4c3(0x2b3),_0x464dda;}({});var _=class{constructor(){const _0x16b318=_0x1de16c;g(this,'_event$',new i[(_0x16b318(0x3c5))]()),g(this,'event$',this[_0x16b318(0x3e5)]['asObservable']());}[_0x1de16c(0x262)](_0x1f8946){const _0x4ff7a4=_0x1de16c;this[_0x4ff7a4(0x3e5)][_0x4ff7a4(0x286)](_0x1f8946);}},ie=class{constructor(){const _0x55cbf6=_0x1de16c;g(this,_0x55cbf6(0x230),new i[(_0x55cbf6(0x3c5))]()),g(this,_0x55cbf6(0x2ff),this[_0x55cbf6(0x230)][_0x55cbf6(0x1ea)]());}[_0x1de16c(0x26e)](_0x2e5e27){const _0x788472=_0x1de16c;this['_commentUpdate$'][_0x788472(0x286)](_0x2e5e27);}};function v(_0x1a136c,_0x356cac){return function(_0x29faac,_0x40d199){_0x356cac(_0x29faac,_0x40d199,_0x1a136c);};}function y(_0xcd9312,_0x560e9e,_0x3573d8,_0x5d62c7){const _0x593fdd=_0x1de16c;var _0xcde944=arguments['length'],_0x45c2d6=_0xcde944<0x3?_0x560e9e:_0x5d62c7===null?_0x5d62c7=Object[_0x593fdd(0x3aa)](_0x560e9e,_0x3573d8):_0x5d62c7,_0x2925e2;if(typeof Reflect=='object'&&typeof Reflect[_0x593fdd(0x22e)]=='function')_0x45c2d6=Reflect[_0x593fdd(0x22e)](_0xcd9312,_0x560e9e,_0x3573d8,_0x5d62c7);else{for(var _0x4f64f6=_0xcd9312[_0x593fdd(0x3c7)]-0x1;_0x4f64f6>=0x0;_0x4f64f6--)(_0x2925e2=_0xcd9312[_0x4f64f6])&&(_0x45c2d6=(_0xcde944<0x3?_0x2925e2(_0x45c2d6):_0xcde944>0x3?_0x2925e2(_0x560e9e,_0x3573d8,_0x45c2d6):_0x2925e2(_0x560e9e,_0x3573d8))||_0x45c2d6);}return _0xcde944>0x3&&_0x45c2d6&&Object[_0x593fdd(0x310)](_0x560e9e,_0x3573d8,_0x45c2d6),_0x45c2d6;}let b=class extends t[_0x1de16c(0x1d2)]{constructor(_0x17460f,_0x2bd7bd){const _0x11e222=_0x1de16c;super(),this[_0x11e222(0x2a7)]=_0x17460f,this[_0x11e222(0x2fe)]=_0x2bd7bd,g(this,_0x11e222(0x2ae),new Map()),g(this,_0x11e222(0x225),new i[(_0x11e222(0x3c5))]()),this[_0x11e222(0x3b8)]((0x0,i['merge'])(this[_0x11e222(0x2a7)][_0x11e222(0x232)](t[_0x11e222(0x20a)]['UNIVER_SHEET'])[_0x11e222(0x200)]((0x0,s[_0x11e222(0x2fc)])(_0x3dc7a9=>_0x3dc7a9['getUnitId']())),this['_univerInstanceService'][_0x11e222(0x232)](t['UniverInstanceType'][_0x11e222(0x198)])[_0x11e222(0x200)]((0x0,s[_0x11e222(0x2fc)])(_0x4cbb3d=>_0x4cbb3d[_0x11e222(0x270)]())))['subscribe'](_0x4eb96c=>this[_0x11e222(0x35c)](_0x4eb96c)));}[_0x1de16c(0x1f4)](_0x58e1ca){const _0x4e3476=_0x1de16c;return this[_0x4e3476(0x2ae)]['has'](_0x58e1ca)?(0x0,i['of'])(this['_roomMembers'][_0x4e3476(0x373)](_0x58e1ca)):this[_0x4e3476(0x225)][_0x4e3476(0x200)]((0x0,s[_0x4e3476(0x2fc)])(_0x4f5fb4=>{const _0x2702ec=_0x4e3476;if(_0x4f5fb4===_0x58e1ca)return this[_0x2702ec(0x2ae)][_0x2702ec(0x373)](_0x4f5fb4);}));}['setCurrentUser'](_0x1514c0){const _0x4063b1=_0x1de16c;this[_0x4063b1(0x2fe)][_0x4063b1(0x178)](_0x1514c0);}[_0x1de16c(0x325)](){return this['_userManagerService']['getCurrentUser']();}[_0x1de16c(0x3dc)](_0x475dfe,_0xc461ad){const _0x32b6df=_0x1de16c;let _0x55be3d=this[_0x32b6df(0x2ae)][_0x32b6df(0x373)](_0x475dfe);_0x55be3d||(_0x55be3d=new ae(),this[_0x32b6df(0x2ae)][_0x32b6df(0x248)](_0x475dfe,_0x55be3d),this[_0x32b6df(0x225)][_0x32b6df(0x286)](_0x475dfe)),_0x55be3d[_0x32b6df(0x3dc)](_0xc461ad);}['removeMember'](_0x4e0166,_0xad7d41){const _0x35f0d=_0x1de16c;let _0x51ca7b=this['_roomMembers'][_0x35f0d(0x373)](_0x4e0166);_0x51ca7b&&_0x51ca7b[_0x35f0d(0x3ad)](_0xad7d41);}[_0x1de16c(0x138)](_0x577c94){const _0x206598=_0x1de16c;return this[_0x206598(0x2ae)]['get'](_0x577c94);}[_0x1de16c(0x269)](_0x487d55,_0x297282){const _0x1b4129=_0x1de16c;let _0x3d75d7=this['_roomMembers'][_0x1b4129(0x373)](_0x487d55);if(_0x3d75d7)return _0x3d75d7['getMember'](_0x297282);}[_0x1de16c(0x35c)](_0x5ab907){const _0x493b31=_0x1de16c;let _0x10fa23=this[_0x493b31(0x2ae)][_0x493b31(0x373)](_0x5ab907);_0x10fa23&&(_0x10fa23[_0x493b31(0x317)](),this[_0x493b31(0x2ae)][_0x493b31(0x1d7)](_0x5ab907));}[_0x1de16c(0x317)](){const _0x244735=_0x1de16c;this['_roomMembers'][_0x244735(0x2f3)](_0x4f863a=>_0x4f863a[_0x244735(0x317)]()),this[_0x244735(0x2ae)][_0x244735(0x12f)](),this[_0x244735(0x225)][_0x244735(0x183)]();}};b=y([v(0x0,t[_0x1de16c(0x1ca)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x13e)]))],b);var ae=class extends t[_0x1de16c(0x1d2)]{constructor(..._0x20cb0c){const _0x5ee2cc=_0x1de16c;super(..._0x20cb0c),g(this,_0x5ee2cc(0x1df),new Map()),g(this,'_members$',new i[(_0x5ee2cc(0x19f))](this[_0x5ee2cc(0x1df)])),g(this,_0x5ee2cc(0x18c),this[_0x5ee2cc(0x2b0)]['asObservable']());}[_0x1de16c(0x317)](){const _0x4d6408=_0x1de16c;this['_members']['clear'](),this[_0x4d6408(0x2b0)][_0x4d6408(0x183)]();}[_0x1de16c(0x3dc)](_0x82943d){const _0x20aae2=_0x1de16c;this[_0x20aae2(0x1df)][_0x20aae2(0x248)](_0x82943d[_0x20aae2(0x33e)],_0x82943d),this['_emitMembers']();}[_0x1de16c(0x3ad)](_0x5a034a){this['_members']['delete'](_0x5a034a),this['_emitMembers']();}[_0x1de16c(0x269)](_0x5c4359){const _0xeeab6b=_0x1de16c;return this[_0xeeab6b(0x1df)][_0xeeab6b(0x373)](_0x5c4359);}[_0x1de16c(0x363)](){const _0x37d3ac=_0x1de16c;return Array[_0x37d3ac(0x2a6)](this['_members'][_0x37d3ac(0x3f9)]());}[_0x1de16c(0x162)](){const _0x5ef064=_0x1de16c;this[_0x5ef064(0x2b0)]['next'](this['_members']);}};let oe=function(_0x598088){const _0xb878c=_0x1de16c;return _0x598088[_0x598088[_0xb878c(0x1b8)]=0x0]=_0xb878c(0x1b8),_0x598088[_0x598088[_0xb878c(0x12b)]=0x1]=_0xb878c(0x12b),_0x598088[_0x598088[_0xb878c(0x2d7)]=0x2]='OFFLINE',_0x598088[_0x598088[_0xb878c(0x28c)]=0x3]=_0xb878c(0x28c),_0x598088;}({});const se={[a[_0x1de16c(0x343)]['FAIL']]:_0x1de16c(0x1ad),[a[_0x1de16c(0x343)][_0x1de16c(0x209)]]:_0x1de16c(0x293),[a[_0x1de16c(0x343)][_0x1de16c(0x27e)]]:'session.room-not-exists',[a[_0x1de16c(0x343)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x1de16c(0x3fb),[a['CmdRspCode'][_0x1de16c(0x314)]]:_0x1de16c(0x3ef)};let x=class extends t[_0x1de16c(0x1f0)]{get[_0x1de16c(0x36b)](){return this['_sessionStatus$']['getValue']();}constructor(_0x3e6122,_0x524c0f,_0x25d906,_0x2cf5d9,_0x2649e4,_0x59819d,_0x552129,_0x2f483b){const _0x41fc44=_0x1de16c;super(),this[_0x41fc44(0x1d3)]=_0x3e6122,this['_logService']=_0x25d906,this[_0x41fc44(0x2aa)]=_0x2cf5d9,this['_memberService']=_0x2649e4,this['_commentService']=_0x59819d,this['_collaborationUIEventService']=_0x552129,this[_0x41fc44(0x19b)]=_0x2f483b,g(this,_0x41fc44(0x2af),new i[(_0x41fc44(0x19f))](0x0)),g(this,'sessionStatus$',this[_0x41fc44(0x2af)][_0x41fc44(0x1ea)]()),g(this,_0x41fc44(0x3e5),new i[(_0x41fc44(0x3c5))]()),g(this,_0x41fc44(0x201),this[_0x41fc44(0x3e5)][_0x41fc44(0x1ea)]()),g(this,_0x41fc44(0x260),void 0x0),g(this,_0x41fc44(0x21b),void 0x0),g(this,_0x41fc44(0x278),void 0x0),g(this,_0x41fc44(0x1cb),!0x1),g(this,_0x41fc44(0x22b),null),this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x524c0f[_0x41fc44(0x200)]((0x0,i[_0x41fc44(0x3ba)])(this['dispose$']))[_0x41fc44(0x15c)](_0x52fce4=>{const _0x4020a7=_0x41fc44;if(_0x52fce4!==void 0x0){if(this[_0x4020a7(0x260)]=_0x52fce4,_0x52fce4)this['_joinRoom'](_0x52fce4),this[_0x4020a7(0x21b)]=_0x52fce4[_0x4020a7(0x252)][_0x4020a7(0x15c)](_0x5ae439=>{const _0x1e6c87=_0x4020a7;_0x5ae439[_0x1e6c87(0x3f8)]===this[_0x1e6c87(0x1d3)]&&this[_0x1e6c87(0x3fd)](_0x5ae439);});else{var _0x362cd0;this[_0x4020a7(0x161)](),this['_sessionStatus$']['next'](0x2),(_0x362cd0=this['_socketMessageSubscription'])==null||_0x362cd0['unsubscribe'](),this[_0x4020a7(0x21b)]=null;}}});}['getMemberID'](){const _0x11ea9a=_0x1de16c;var _0x3de1ca,_0xeaecc3;return(_0x3de1ca=(_0xeaecc3=this['_socket'])==null?void 0x0:_0xeaecc3[_0x11ea9a(0x33e)])==null?null:_0x3de1ca;}[_0x1de16c(0x317)](){const _0x105d6e=_0x1de16c;super[_0x105d6e(0x317)](),this['close'](),this['dispose$'][_0x105d6e(0x286)](),this['dispose$'][_0x105d6e(0x183)]();}[_0x1de16c(0x261)](){const _0x227b5a=_0x1de16c;var _0x2863c6,_0x202196;this[_0x227b5a(0x161)](),(_0x2863c6=this[_0x227b5a(0x260)])==null||_0x2863c6[_0x227b5a(0x2d5)]({'cmd':a['CombCmd'][_0x227b5a(0x2bd)],'data':{'roomID':this[_0x227b5a(0x1d3)]}}),(_0x202196=this[_0x227b5a(0x260)])==null||_0x202196[_0x227b5a(0x261)](),this['_event$'][_0x227b5a(0x183)](),this['_sessionStatus$']['complete']();}['_onCombEvent'](_0x294fb4){const _0x551700=_0x1de16c;_0x294fb4[_0x551700(0x2e6)]===a[_0x551700(0x3ae)]['JOIN']?this[_0x551700(0x134)](_0x294fb4):_0x294fb4['cmd']===a[_0x551700(0x3ae)]['RECV']&&this[_0x551700(0x39d)](_0x294fb4);}['_joinRoom'](_0x50fe6e){const _0x5af88b=_0x1de16c;this[_0x5af88b(0x2af)][_0x5af88b(0x286)](0x1),_0x50fe6e['send']({'cmd':a[_0x5af88b(0x3ae)][_0x5af88b(0x220)],'routeKey':this[_0x5af88b(0x1d3)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5af88b(0x1d3)]}]}});}['_onJoinRoomEvent'](_0xa98b47){const _0x5621c9=_0x1de16c;var _0x2731a7;if(_0xa98b47[_0x5621c9(0x308)]in se){this[_0x5621c9(0x3f4)][_0x5621c9(0x262)]({'id':'JOIN_ROOM_FAILED','data':se[_0xa98b47['code']]}),this[_0x5621c9(0x2af)][_0x5621c9(0x286)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x3f4ce6=(_0x2731a7=_0xa98b47[_0x5621c9(0x2d2)][_0x5621c9(0x1ac)][this[_0x5621c9(0x1d3)]])==null?void 0x0:_0x2731a7['members'];_0x3f4ce6&&_0x3f4ce6[_0x5621c9(0x2f3)](_0x53ce8c=>this[_0x5621c9(0x231)][_0x5621c9(0x3dc)](this[_0x5621c9(0x1d3)],_0x53ce8c));}[_0x1de16c(0x39d)](_0x570981){const _0x204baa=_0x1de16c;try{let _0x588df7=_0x570981[_0x204baa(0x2d2)];switch(_0x588df7['eventID']){case e[_0x204baa(0x255)]['USERS_ENTER']:this[_0x204baa(0x3df)](_0x588df7),this[_0x204baa(0x3e5)][_0x204baa(0x286)](_0x588df7);break;case e[_0x204baa(0x255)][_0x204baa(0x2dc)]:this['_onUserLeave'](_0x588df7),this[_0x204baa(0x3e5)][_0x204baa(0x286)](_0x588df7);break;case e[_0x204baa(0x255)]['CHANGESET_ACK']:case e['CollaborationEvent'][_0x204baa(0x18b)]:this[_0x204baa(0x1a3)](),this[_0x204baa(0x3d4)](),this[_0x204baa(0x3e5)][_0x204baa(0x286)](_0x588df7);break;case e[_0x204baa(0x255)][_0x204baa(0x3f2)]:this[_0x204baa(0x30d)][_0x204baa(0x1e3)](_0x204baa(0x150)+JSON[_0x204baa(0x2d8)](_0x588df7)),this['_event$']['next'](_0x588df7);break;case e['CollaborationEvent'][_0x204baa(0x1e7)]:this['_commentService']['onCommentUpdate'](_0x588df7['data']),this['_event$']['next'](_0x588df7);break;default:this['_event$']['next'](_0x588df7);}}catch(_0x3dd0cc){this['_logService'][_0x204baa(0x1e3)](_0x3dd0cc,_0x570981);}}['_onUserJoin'](_0x56d6cc){const _0x33136a=_0x1de16c;this[_0x33136a(0x231)][_0x33136a(0x3dc)](this[_0x33136a(0x1d3)],_0x56d6cc[_0x33136a(0x2d2)]);}['_onUserLeave'](_0x5c7828){const _0x16e60a=_0x1de16c;this[_0x16e60a(0x231)][_0x16e60a(0x3ad)](this[_0x16e60a(0x1d3)],_0x5c7828['data'][_0x16e60a(0x33e)]);}async[_0x1de16c(0x2d5)](_0x5734cb,_0x2a2ebd){const _0xa21978=_0x1de16c;if(this[_0xa21978(0x36b)]!==0x3||!this[_0xa21978(0x260)])throw Error(_0xa21978(0x27b));try{_0x5734cb[_0xa21978(0x26d)]===e[_0xa21978(0x255)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x5734cb)),this[_0xa21978(0x260)]['send']({'cmd':a[_0xa21978(0x3ae)][_0xa21978(0x212)],'routeKey':_0x2a2ebd,'routeType':'','data':_0x5734cb});}catch(_0x8b4417){this[_0xa21978(0x30d)][_0xa21978(0x1e3)](_0x8b4417);}}[_0x1de16c(0x22f)](){const _0x4226c4=_0x1de16c;var _0x131d83;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x51ed25=_0x3896;this['_collaborationTimeoutTimer']=null,this[_0x51ed25(0x3f4)][_0x51ed25(0x262)]({'id':_0x51ed25(0x2b3)});},(_0x131d83=this[_0x4226c4(0x2aa)]['getConfig']('HEARTBEAT_TIMEOUT'))==null?m:_0x131d83);}[_0x1de16c(0x3d4)](){const _0x32c64e=_0x1de16c;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x32c64e(0x278)]),this['_collaborationTimeoutTimer']=null);}[_0x1de16c(0x2a5)](_0x92635a){const _0x2cbc3c=_0x1de16c;if(!this[_0x2cbc3c(0x1cb)])return;let {data:_0x345954}=_0x92635a,{unitID:_0x2c6fc7,changeset:_0x275745}=_0x345954,{mutations:_0x2f670b,type:_0x226f3a}=_0x275745;this['_telemetryInfo']={'unitId':_0x2c6fc7,'type':_0x226f3a,'startTime':performance[_0x2cbc3c(0x322)](),'stopTime':0x0,'duration':0x0,'size':ee(_0x2f670b)};}[_0x1de16c(0x1a3)](){const _0x37139d=_0x1de16c;if(this[_0x37139d(0x1cb)]){if(!this[_0x37139d(0x22b)]){this[_0x37139d(0x30d)][_0x37139d(0x1e3)](_0x37139d(0x12e),_0x37139d(0x289));return;}this[_0x37139d(0x22b)][_0x37139d(0x1ab)]=performance[_0x37139d(0x322)](),this[_0x37139d(0x22b)]['duration']=this[_0x37139d(0x22b)][_0x37139d(0x1ab)]-this['_telemetryInfo'][_0x37139d(0x148)],this[_0x37139d(0x19b)]['capture']('collaboration_new_changeset',this[_0x37139d(0x22b)]),this[_0x37139d(0x22b)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};function _0x3896(_0x263bc3,_0x35d897){_0x263bc3=_0x263bc3-0x127;const _0x4f3fac=_0x4f3f();let _0x389663=_0x4f3fac[_0x263bc3];return _0x389663;}x=y([v(0x2,t[_0x1de16c(0x243)]),v(0x3,t[_0x1de16c(0x3cb)]),v(0x4,(0x0,t[_0x1de16c(0x20f)])(b)),v(0x5,(0x0,t[_0x1de16c(0x20f)])(ie)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x1de16c(0x37e)])(o[_0x1de16c(0x379)]))],x);const S=(0x0,t[_0x1de16c(0x26b)])(_0x1de16c(0x172));function ce(_0x284af6){return'unit-cache-'+_0x284af6;}function le(_0xeee939){const _0x1f377d=_0x1de16c;let {unitID:_0x4ebc25,mutations:_0x17ac59}=_0xeee939;return{'unitId':_0x4ebc25,'subUnitId':_0x17ac59[_0x1f377d(0x3c7)]>0x0?_0x17ac59[0x0]['params'][_0x1f377d(0x206)]:null};}let C=class{constructor(_0x274586,_0x39bf48,_0x3a3c15){const _0x399cf3=_0x1de16c;this[_0x399cf3(0x16d)]=_0x274586,this[_0x399cf3(0x226)]=_0x39bf48,this[_0x399cf3(0x330)]=_0x3a3c15;}[_0x1de16c(0x3ea)](_0x39a27e){const _0x13bad7=_0x1de16c;var _0xd5d5a0,_0x15c22c;let _0x6dc447=this['_injector'][_0x13bad7(0x373)](r[_0x13bad7(0x3cc)]),{unitId:_0x4e21ed,subUnitId:_0x4bc997}=le(_0x39a27e),_0x135ff0=_0x6dc447==null?void 0x0:_0x6dc447['getWorkbookSelections'](_0x4e21ed)['getCurrentSelections'](),_0x32adf0=(_0xd5d5a0=this[_0x13bad7(0x330)][_0x13bad7(0x309)](_0x4e21ed))==null||(_0xd5d5a0=_0xd5d5a0[_0x13bad7(0x388)]())==null?void 0x0:_0xd5d5a0['getSheetId']();if(_0x135ff0[_0x13bad7(0x3c7)]===0x0||!_0x4e21ed||!_0x4bc997)return;let _0xe94348=[{'id':r[_0x13bad7(0x17f)]['id'],'params':{'unitId':_0x4e21ed,'subUnitId':_0x32adf0,'selections':t[_0x13bad7(0x20e)][_0x13bad7(0x273)](_0x135ff0)}}],_0x58e226=this[_0x13bad7(0x226)][_0x13bad7(0x307)](_0x39a27e,_0xe94348);if(!(0x0,e[_0x13bad7(0x2f1)])(_0x58e226))throw _0x58e226['error'];let _0x1c54c8=(_0x15c22c=_0x58e226[_0x13bad7(0x249)][0x0])==null||(_0x15c22c=_0x15c22c[_0x13bad7(0x3ce)])==null?void 0x0:_0x15c22c[_0x13bad7(0x190)];if(Array['isArray'](_0x1c54c8)&&_0x1c54c8[_0x13bad7(0x3c7)]){if(_0x1c54c8[_0x13bad7(0x3c7)]===_0xe94348[0x0]['params'][_0x13bad7(0x190)][_0x13bad7(0x3c7)]&&_0x1c54c8[_0x13bad7(0x2ea)]((_0x3658b3,_0x2412e9)=>t['Rectangle'][_0x13bad7(0x3b0)](_0x3658b3['range'],_0xe94348[0x0][_0x13bad7(0x3ce)]['selections'][_0x2412e9][_0x13bad7(0x292)])))return;this[_0x13bad7(0x16d)][_0x13bad7(0x373)](t[_0x13bad7(0x2a8)])['executeCommand'](r[_0x13bad7(0x17f)]['id'],{'unitId':_0x4e21ed,'subUnitId':_0x32adf0,'selections':_0x1c54c8});}}};C=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x1,e[_0x1de16c(0x13c)]),v(0x2,t[_0x1de16c(0x1ca)])],C);const w=(0x0,t[_0x1de16c(0x26b)])(_0x1de16c(0x159));let ue=function(_0x384e3e){const _0x3e6140=_0x1de16c;return _0x384e3e[_0x384e3e['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x384e3e[_0x384e3e[_0x3e6140(0x3e3)]=0x1]=_0x3e6140(0x3e3),_0x384e3e;}({});const T=_0x1de16c(0x2dd),de={};function fe(_0x423e95){const _0x11e1ab=_0x1de16c;var _0x16b4f0;return!!((_0x16b4f0=_0x423e95[_0x11e1ab(0x3ce)])!=null&&_0x16b4f0[_0x11e1ab(0x3a0)]);}const pe=new Set([r[_0x1de16c(0x2c3)]['id']]);function me(_0xd84832,_0x126d11,_0x31281d,_0x542616,_0x3f896f){const _0x159fef=_0x1de16c;var _0x5ad98b,_0x4d9fe,_0x49e87d,_0x2d9b00;let _0x1e9d9c=[];for(let _0x20c977 of _0xd84832){if(pe[_0x159fef(0x1c7)](_0x20c977['id'])){if(_0x1e9d9c[_0x159fef(0x3c7)]>0x0)break;_0x1e9d9c[_0x159fef(0x186)](_0x20c977);break;}if(fe(_0x20c977)){if(_0x1e9d9c[_0x159fef(0x3c7)]>0x0)break;_0x1e9d9c[_0x159fef(0x186)](_0x20c977);break;}_0x1e9d9c['push'](_0x20c977);}let _0x2b38b3=(_0x5ad98b=(_0x4d9fe=_0x3f896f[_0x159fef(0x325)]())==null?void 0x0:_0x4d9fe[_0x159fef(0x237)])==null?_0x159fef(0x1a7):_0x5ad98b,_0x39fdd5=(_0x49e87d=(_0x2d9b00=_0x3f896f['getCurrentUser']())==null?void 0x0:_0x2d9b00[_0x159fef(0x33e)])==null?'unknown':_0x49e87d;return{'changeset':{'unitID':_0x126d11,'type':(0x0,e[_0x159fef(0x194)])(_0x31281d['getUnitType'](_0x126d11)),'baseRev':_0x542616[_0x159fef(0x295)](_0x126d11),'revision':0x0,'userID':_0x2b38b3,'memberID':_0x39fdd5,'mutations':_0x1e9d9c},'pendingMutations':_0xd84832[_0x159fef(0x381)](_0x1e9d9c['length'])};}function he(_0x31332c,_0x22a126,_0x202929,_0x3a6cf4,_0x17afc5){const _0x5862d6=_0x1de16c;var _0x570c47,_0x28e898,_0x36bd1c,_0x2b99e6;let _0x1e60cd=_0x31332c[_0x5862d6(0x3ee)]((_0x3b7a52,_0x5ed8fa)=>{const _0x2e8d4e=_0x5862d6;let _0x10c2dd=_0x3b7a52[_0x3b7a52[_0x2e8d4e(0x3c7)]-0x1],{id:_0x5d38c5}=_0x10c2dd==null?{}:_0x10c2dd,{id:_0x29f7ab,type:_0x1c4c07}=_0x5ed8fa,_0x5df15a=_0x5ed8fa['params'];if(_0x5d38c5&&_0x5d38c5!==_0x29f7ab)throw Error(_0x2e8d4e(0x321)+_0x5d38c5+_0x2e8d4e(0x189)+_0x29f7ab+'.');if(!_0x10c2dd)return[{'id':_0x29f7ab,'type':_0x1c4c07,'params':{'unitId':_0x5df15a[_0x2e8d4e(0x2c9)],'textRanges':_0x5df15a['textRanges'],'actions':_0x5df15a[_0x2e8d4e(0x17c)]}}];let _0x3717e1=_0x10c2dd['params'];return ge(_0x3717e1[_0x2e8d4e(0x17c)],_0x5df15a[_0x2e8d4e(0x17c)])?[..._0x3b7a52[_0x2e8d4e(0x381)](0x0,-0x1),{..._0x10c2dd,'id':_0x29f7ab,'type':_0x1c4c07,'params':{'unitId':_0x5df15a[_0x2e8d4e(0x2c9)],'textRanges':_0x5df15a[_0x2e8d4e(0x12d)],'actions':t[_0x2e8d4e(0x1bf)][_0x2e8d4e(0x2ab)](_0x3717e1[_0x2e8d4e(0x17c)],_0x5df15a[_0x2e8d4e(0x17c)])}}]:[..._0x3b7a52,{'id':_0x29f7ab,'type':_0x1c4c07,'params':{'unitId':_0x5df15a['unitId'],'textRanges':_0x5df15a[_0x2e8d4e(0x12d)],'actions':_0x5df15a['actions']}}];},[]),_0x261b12=(_0x570c47=(_0x28e898=_0x17afc5[_0x5862d6(0x325)]())==null?void 0x0:_0x28e898[_0x5862d6(0x237)])==null?_0x5862d6(0x1a7):_0x570c47,_0x569100=(_0x36bd1c=(_0x2b99e6=_0x17afc5[_0x5862d6(0x325)]())==null?void 0x0:_0x2b99e6[_0x5862d6(0x33e)])==null?_0x5862d6(0x1a7):_0x36bd1c;return{'changeset':{'unitID':_0x22a126,'type':(0x0,e[_0x5862d6(0x194)])(_0x202929[_0x5862d6(0x3c9)](_0x22a126)),'baseRev':_0x3a6cf4[_0x5862d6(0x295)](_0x22a126),'revision':0x0,'userID':_0x261b12,'memberID':_0x569100,'mutations':_0x1e60cd},'pendingMutations':_0x31332c[_0x5862d6(0x381)](_0x31332c[_0x5862d6(0x3c7)])};}function ge(_0x2583c3,_0x59307d){return!(_e(_0x2583c3)&&ve(_0x59307d)||ve(_0x2583c3)&&_e(_0x59307d));}function _e(_0x2cb178){const _0x51cfc4=_0x1de16c;return ye(_0x2cb178)[_0x51cfc4(0x3c2)](_0x3928ec=>be(_0x3928ec)&&_0x3928ec['et']===_0x51cfc4(0x1e2));}function ve(_0xfd6ede){const _0x1f82dd=_0x1de16c;return ye(_0xfd6ede)['some'](_0x453d8a=>Array['isArray'](_0x453d8a)||typeof _0x453d8a==_0x1f82dd(0x239)||typeof _0x453d8a==_0x1f82dd(0x272));}function ye(_0x213039){const _0x48d2fd=_0x1de16c;if(!Array[_0x48d2fd(0x3db)](_0x213039))return[];let _0x113c52=_0x213039[_0x48d2fd(0x39f)](_0x48d2fd(0x401))?_0x213039:_0x213039[_0x48d2fd(0x38b)](_0x892d6b=>Array[_0x48d2fd(0x3db)](_0x892d6b)&&_0x892d6b[_0x48d2fd(0x39f)]('body'));if(!Array['isArray'](_0x113c52))return[];let _0x12032b=_0x113c52[_0x48d2fd(0x21d)](_0x48d2fd(0x401));return _0x12032b===-0x1?[]:_0x113c52['slice'](_0x12032b+0x1);}function be(_0x5216f8){const _0x22fbd2=_0x1de16c;return typeof _0x5216f8=='object'&&!!_0x5216f8&&!Array[_0x22fbd2(0x3db)](_0x5216f8);}function xe(_0x37e729,_0x1170d2){const _0x36f75d=_0x1de16c;let _0x1ab6b0=new i[(_0x36f75d(0x1b7))](0x1);return setTimeout(()=>_0x1ab6b0[_0x36f75d(0x286)](_0x1170d2),_0x37e729),_0x1ab6b0[_0x36f75d(0x1ea)]()[_0x36f75d(0x200)]((0x0,i[_0x36f75d(0x2ed)])(0x1));}var E,D,O;let Se=function(_0x465441){const _0x5275fd=_0x1de16c;return _0x465441[_0x5275fd(0x257)]=_0x5275fd(0x3e0),_0x465441[_0x5275fd(0x2f8)]='synced',_0x465441[_0x5275fd(0x360)]='pending',_0x465441[_0x5275fd(0x29c)]=_0x5275fd(0x197),_0x465441[_0x5275fd(0x3e1)]=_0x5275fd(0x355),_0x465441['FETCH_MISS']=_0x5275fd(0x3f5),_0x465441[_0x5275fd(0x171)]=_0x5275fd(0x326),_0x465441[_0x5275fd(0x2d7)]=_0x5275fd(0x2fa),_0x465441;}({});const Ce=0x4e20,we=0x2bf20;var k=class{constructor(_0xd4940,_0x180084,_0x341e7c,_0x373261,_0x518d08,_0x4f330a,_0x1d477c,_0x567da8,_0xf57098){const _0x1bcdeb=_0x1de16c;this[_0x1bcdeb(0x378)]=_0xd4940,this[_0x1bcdeb(0x1a0)]=_0x180084,this['_handler']=_0x518d08,this['_commandService']=_0x4f330a,this[_0x1bcdeb(0x217)]=_0x1d477c,this[_0x1bcdeb(0x20b)]=_0x567da8,this[_0x1bcdeb(0x2e1)]=_0xf57098,g(this,'_awaitingChangeset',null),g(this,_0x1bcdeb(0x256),[]),this[_0x1bcdeb(0x1c3)]=_0x341e7c,this[_0x1bcdeb(0x256)]=_0x373261;}[_0x1de16c(0x402)](_0x592ae6){const _0x45fc79=_0x1de16c;let _0x27feb6=this[_0x45fc79(0x20b)][_0x45fc79(0x295)](this['unitID']);return _0x592ae6[_0x45fc79(0x3be)]>_0x27feb6+0x1?(this['_handler']['onMissingChangesets']({'from':_0x27feb6,'to':_0x592ae6[_0x45fc79(0x3be)]-0x1}),!0x0):!0x1;}[_0x1de16c(0x139)](_0x3754c0){const _0x2d1260=_0x1de16c;this[_0x2d1260(0x217)][_0x2d1260(0x2e9)](this[_0x2d1260(0x378)],_0x3754c0);}[_0x1de16c(0x2f4)](_0x1f6f86){const _0x149142=_0x1de16c;var _0x1afcb3,_0x50166f;(_0x1afcb3=(_0x50166f=this[_0x149142(0x36f)])[_0x149142(0x2cc)])==null||_0x1afcb3['call'](_0x50166f,_0x1f6f86);}['_transformIMECache'](_0x6f8484){const _0x4c3485=_0x1de16c;var _0x5f4c76,_0xedaabd;return(_0x5f4c76=(_0xedaabd=this[_0x4c3485(0x36f)])[_0x4c3485(0x364)])==null?void 0x0:_0x5f4c76[_0x4c3485(0x21c)](_0xedaabd,_0x6f8484);}[_0x1de16c(0x335)](_0x141c36){const _0x82c903=_0x1de16c;var _0x3538b5,_0x1173d6;return(_0x3538b5=(_0x1173d6=this[_0x82c903(0x36f)])[_0x82c903(0x32d)])==null?void 0x0:_0x3538b5[_0x82c903(0x21c)](_0x1173d6,_0x141c36);}[_0x1de16c(0x18a)](_0x7cb79f){const _0x4f8a8e=_0x1de16c;var _0x4e2263,_0x214732,_0x4f11c0;return(_0x4e2263=(_0x214732=(_0x4f11c0=this[_0x4f8a8e(0x36f)])[_0x4f8a8e(0x1d4)])==null?void 0x0:_0x214732[_0x4f8a8e(0x21c)](_0x4f11c0,_0x7cb79f))==null?_0x7cb79f:_0x4e2263;}[_0x1de16c(0x356)](_0x1b8d10){const _0x278ac8=_0x1de16c;var _0x1c93ca,_0x11cff4,_0x3d56c3;return(_0x1c93ca=(_0x11cff4=(_0x3d56c3=this[_0x278ac8(0x36f)])[_0x278ac8(0x3d8)])==null?void 0x0:_0x11cff4['call'](_0x3d56c3,_0x1b8d10))==null?_0x1b8d10:_0x1c93ca;}[_0x1de16c(0x140)](_0x5182fa){const _0x225c42=_0x1de16c;if(this[_0x225c42(0x1a0)]===t['UniverInstanceType'][_0x225c42(0x198)]){let {unitID:_0x13a47f,mutations:_0x414819,memberID:_0x19eed3}=_0x5182fa,_0x3c15ff=_0x414819['length']>0x0?_0x414819[0x0][_0x225c42(0x3ce)]['textRanges']:[];if(Array[_0x225c42(0x3db)](_0x3c15ff)&&_0x3c15ff[_0x225c42(0x3c7)]>0x0){var _0x429c2d,_0x20249b;(_0x429c2d=(_0x20249b=this[_0x225c42(0x36f)])['onSyncEditingCollabCursor'])==null||_0x429c2d[_0x225c42(0x21c)](_0x20249b,{'unitID':_0x13a47f,'memberID':_0x19eed3,'textRanges':_0x3c15ff});}}}[_0x1de16c(0x394)](){const _0x476c41=_0x1de16c;var _0x1a7334;(_0x1a7334=this[_0x476c41(0x2e1)])==null||_0x1a7334[_0x476c41(0x152)](this[_0x476c41(0x378)],this[_0x476c41(0x1a0)],this[_0x476c41(0x1c3)],this['_pendingMutations']);}[_0x1de16c(0x170)](){const _0x2f952d=_0x1de16c;return this['_revisionService'][_0x2f952d(0x295)](this[_0x2f952d(0x378)]);}[_0x1de16c(0x3a3)](){this['_revisionService']['incrementRevOfUnit'](this['unitID']);}[_0x1de16c(0x1f3)](_0x1acdf1){const _0x5bcc46=_0x1de16c;let _0x2204ca=this['_transformRemoteChangesetByIMECache'](_0x1acdf1);_0x2204ca=this[_0x5bcc46(0x356)](_0x2204ca);let _0x500c36=(0x0,t['sequenceExecute'])(_0x2204ca[_0x5bcc46(0x13f)],this[_0x5bcc46(0x3ab)],{'fromCollab':!0x0});if(!_0x500c36['result']){var _0x52567b;throw _0x500c36[_0x5bcc46(0x1e3)]instanceof Error?_0x500c36[_0x5bcc46(0x1e3)]:Error((_0x52567b=_0x500c36[_0x5bcc46(0x1e3)])==null?_0x5bcc46(0x131):_0x52567b);}this[_0x5bcc46(0x1d1)](_0x2204ca),this[_0x5bcc46(0x335)](_0x2204ca),this[_0x5bcc46(0x139)](_0x1acdf1),this[_0x5bcc46(0x2f4)](_0x2204ca),this['_syncEditingCollabCursor'](_0x2204ca),this[_0x5bcc46(0x3a3)]();}};let A=class extends k{constructor(_0x4d70a4,_0xea0274,_0x229c49,_0x1ea1af,_0x1280b3,_0x1309d0,_0x4255a5,_0x5cf209,_0xbe04c5,_0x41eef2){const _0x34ec9e=_0x1de16c;super(_0x4d70a4,_0xea0274,null,[],_0x229c49,_0x4255a5,_0x1309d0,_0x1ea1af,_0x41eef2),this['_injector']=_0x1280b3,this[_0x34ec9e(0x30d)]=_0x5cf209,this['_transformService']=_0xbe04c5,this[_0x34ec9e(0x30c)]=_0x41eef2,g(this,_0x34ec9e(0x218),_0x34ec9e(0x31c));}[_0x1de16c(0x21e)](_0x35769c){const _0xd8b379=_0x1de16c;let _0x2d1592=this[_0xd8b379(0x16d)][_0xd8b379(0x215)](j,this['unitID'],this[_0xd8b379(0x1a0)],[_0x35769c],this['_handler']);return _0x2d1592[_0xd8b379(0x35e)](),_0x2d1592[_0xd8b379(0x394)](),_0x2d1592;}['onRemoteChangeset'](_0x5f448f){const _0x2fe15b=_0x1de16c;if(this['_checkMissing'](_0x5f448f))return this[_0x2fe15b(0x16d)][_0x2fe15b(0x215)](I,this[_0x2fe15b(0x378)],this[_0x2fe15b(0x1a0)],null,[],null,[_0x5f448f],this['_handler']);try{let _0x3ece6e=this[_0x2fe15b(0x226)][_0x2fe15b(0x307)](_0x5f448f,[e[_0x2fe15b(0x247)]]);if((0x0,e[_0x2fe15b(0x2f1)])(_0x3ece6e)){let {c1Prime:_0x15cd3e}=_0x3ece6e;return this[_0x2fe15b(0x1f3)](_0x15cd3e),this;}throw _0x3ece6e['error'];}catch(_0x2db83e){return this['_logService'][_0x2fe15b(0x1e3)](_0x2db83e),this['_onConflict'](!0x1);}}['_onConflict'](_0x4bcb27){const _0x396337=_0x1de16c;return this[_0x396337(0x16d)][_0x396337(0x215)](P,this['unitID'],this[_0x396337(0x1a0)],null,[],this[_0x396337(0x36f)],_0x4bcb27);}[_0x1de16c(0x2ca)](_0x4c35fd){const _0x3308a6=_0x1de16c;if(_0x4c35fd[_0x3308a6(0x3be)]<=this[_0x3308a6(0x170)]())return this;throw Error(_0x3308a6(0x332));}['onRemoteRej'](){const _0x2efb93=_0x1de16c;throw Error(_0x2efb93(0x386));}[_0x1de16c(0x28f)](){return this;}['toggleOffline'](){const _0x4aeac5=_0x1de16c;return this[_0x4aeac5(0x16d)]['createInstance'](F,this['unitID'],this['type'],null,[],this[_0x4aeac5(0x36f)]);}[_0x1de16c(0x127)](){return this;}[_0x1de16c(0x1be)](){const _0x5a3c90=_0x1de16c;throw Error(_0x5a3c90(0x32c));}[_0x1de16c(0x14e)](){const _0x3bfc55=_0x1de16c;let _0x53dfe3=this[_0x3bfc55(0x20b)][_0x3bfc55(0x295)](this['unitID']);return this[_0x3bfc55(0x36f)][_0x3bfc55(0x3da)]({'from':_0x53dfe3,'to':0x0}),this[_0x3bfc55(0x16d)]['createInstance'](I,this[_0x3bfc55(0x378)],this[_0x3bfc55(0x1a0)],null,[],null,[],this[_0x3bfc55(0x36f)]);}};A=y([v(0x3,(0x0,t['Inject'])(e[_0x1de16c(0x2eb)])),v(0x4,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x1de16c(0x2a8)]),v(0x7,t[_0x1de16c(0x243)]),v(0x8,e[_0x1de16c(0x13c)]),v(0x9,(0x0,t[_0x1de16c(0x37e)])(S))],A);let j=E=class extends k{constructor(_0x4a5514,_0x1e7c4e,_0x4c1f03,_0x4edd4f,_0x112fc3,_0x3b5c92,_0x4432f1,_0x538ecf,_0x2ece2b,_0x1c746e,_0x3b6415,_0x496782,_0x55e9a2,_0x253813){const _0x234d39=_0x1de16c;super(_0x4a5514,_0x1e7c4e,null,_0x4c1f03,_0x4edd4f,_0x2ece2b,_0x55e9a2,_0x3b5c92,_0x253813),this['_injector']=_0x112fc3,this[_0x234d39(0x231)]=_0x4432f1,this[_0x234d39(0x30d)]=_0x538ecf,this[_0x234d39(0x2aa)]=_0x1c746e,this[_0x234d39(0x226)]=_0x3b6415,this['_univerInstanceService']=_0x496782,g(this,_0x234d39(0x218),_0x234d39(0x375)),g(this,_0x234d39(0x271),null),g(this,_0x234d39(0x366),null);}['appendMutation'](_0x15d359){const _0x9e4c45=_0x1de16c;return this[_0x9e4c45(0x256)][_0x9e4c45(0x186)](_0x15d359),this['_updateLocalCache'](),this;}[_0x1de16c(0x2e0)](_0x25145b){const _0x14b2b7=_0x1de16c;if(this[_0x14b2b7(0x402)](_0x25145b))return this[_0x14b2b7(0x338)](),this[_0x14b2b7(0x16d)][_0x14b2b7(0x215)](I,this[_0x14b2b7(0x378)],this['type'],null,this[_0x14b2b7(0x256)],null,[_0x25145b],this['_handler']);try{let _0x2b54fe=this[_0x14b2b7(0x226)][_0x14b2b7(0x307)](_0x25145b,this['_pendingMutations']);if((0x0,e[_0x14b2b7(0x2f1)])(_0x2b54fe)){let {c1Prime:_0x1ab778,m2Prime:_0x179d64}=_0x2b54fe;this[_0x14b2b7(0x1f3)](_0x1ab778);let _0x21aede=this['_injector'][_0x14b2b7(0x215)](E,this[_0x14b2b7(0x378)],this[_0x14b2b7(0x1a0)],_0x179d64,this[_0x14b2b7(0x36f)]);this[_0x14b2b7(0x338)]();let _0x4e2661=new Date()[_0x14b2b7(0x3f6)](),_0x7e7b18=this[_0x14b2b7(0x271)]?Math['max'](this['_scheduleCompleteTimestamp']-_0x4e2661,0x0):this[_0x14b2b7(0x3c4)]();return _0x21aede[_0x14b2b7(0x35e)](_0x7e7b18),_0x21aede;}throw _0x2b54fe[_0x14b2b7(0x1e3)];}catch(_0x254188){return this[_0x14b2b7(0x30d)][_0x14b2b7(0x1e3)](_0x254188),this[_0x14b2b7(0x369)](!0x1);}}['onRemoteAck'](_0x5069f8){const _0x9df6c8=_0x1de16c;if(_0x5069f8['revision']<=this[_0x9df6c8(0x170)]())return this;throw Error(_0x9df6c8(0x2f7));}[_0x1de16c(0x3a5)](){const _0x250c7a=_0x1de16c;throw Error(_0x250c7a(0x2e2));}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){const _0x5698fc=_0x1de16c;return this[_0x5698fc(0x338)](),this['_injector'][_0x5698fc(0x215)](F,this[_0x5698fc(0x378)],this[_0x5698fc(0x1a0)],null,this[_0x5698fc(0x256)],this['_handler']);}['toggleOnline'](){return this;}['_schedule'](_0x52b9bb){const _0x4bf15f=_0x1de16c;let _0x374b9d=_0x52b9bb==null?this[_0x4bf15f(0x3c4)]():_0x52b9bb;this[_0x4bf15f(0x271)]=new Date()['getTime']()+_0x374b9d,this[_0x4bf15f(0x366)]=setTimeout(()=>{const _0x329055=_0x4bf15f;this[_0x329055(0x338)]();let _0x1dc146=null;switch(this[_0x329055(0x1a0)]){case t[_0x329055(0x20a)]['UNIVER_SHEET']:_0x1dc146=me(this[_0x329055(0x256)],this[_0x329055(0x378)],this[_0x329055(0x2a7)],this[_0x329055(0x20b)],this[_0x329055(0x231)]);break;case t[_0x329055(0x20a)][_0x329055(0x198)]:_0x1dc146=this[_0x329055(0x256)][_0x329055(0x2ea)](_0x12b053=>_0x12b053['id']===n[_0x329055(0x142)]['id'])?he(this[_0x329055(0x256)],this[_0x329055(0x378)],this['_univerInstanceService'],this['_revisionService'],this[_0x329055(0x231)]):me(this['_pendingMutations'],this[_0x329055(0x378)],this['_univerInstanceService'],this[_0x329055(0x20b)],this[_0x329055(0x231)]);break;default:throw Error(_0x329055(0x39a)+this['type']+_0x329055(0x30a));}let {changeset:_0x1e3e7d,pendingMutations:_0x541163}=_0x1dc146;this[_0x329055(0x36f)]['onSendChangeset'](_0x1e3e7d);let _0x4dca21=_0x541163[_0x329055(0x3c7)]?this['_injector'][_0x329055(0x215)](N,this['unitID'],this[_0x329055(0x1a0)],_0x1e3e7d,_0x541163,this[_0x329055(0x36f)],void 0x0):this[_0x329055(0x16d)][_0x329055(0x215)](M,this[_0x329055(0x378)],this[_0x329055(0x1a0)],_0x1e3e7d,this[_0x329055(0x36f)]);_0x4dca21[_0x329055(0x394)](),this[_0x329055(0x36f)][_0x329055(0x135)](this,_0x4dca21);},_0x374b9d);}[_0x1de16c(0x3c4)](){const _0x394457=_0x1de16c;var _0x223151;let _0x3b9c22=this[_0x394457(0x2aa)][_0x394457(0x26a)](T);return(_0x223151=_0x3b9c22==null?void 0x0:_0x3b9c22['sendChangesetTimeout'])==null?0x7d0:_0x223151;}[_0x1de16c(0x1be)](){const _0x3236f5=_0x1de16c;throw Error(_0x3236f5(0x213));}['_clearScheduledTask'](){const _0x335eca=_0x1de16c;this[_0x335eca(0x366)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x335eca(0x366)]=null);}['_onConflict'](_0x1a331f){const _0x38c0f4=_0x1de16c;return this[_0x38c0f4(0x338)](),this[_0x38c0f4(0x16d)][_0x38c0f4(0x215)](P,this[_0x38c0f4(0x378)],this[_0x38c0f4(0x1a0)],null,this[_0x38c0f4(0x256)],this[_0x38c0f4(0x36f)],_0x1a331f);}};j=E=y([v(0x4,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x5,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x6,(0x0,t['Inject'])(b)),v(0x7,t[_0x1de16c(0x243)]),v(0x8,t['ICommandService']),v(0x9,t['IConfigService']),v(0xa,e[_0x1de16c(0x13c)]),v(0xb,t[_0x1de16c(0x1ca)]),v(0xc,t[_0x1de16c(0x374)]),v(0xd,(0x0,t['Optional'])(S))],j);let M=D=class extends k{constructor(_0x4072bc,_0x99185a,_0x3afdb0,_0x7bf4dc,_0x35c678,_0x5e4ef2,_0x42e823,_0x19a858,_0x5d9d39,_0x26dd95,_0x354101){const _0x4370ed=_0x1de16c;super(_0x4072bc,_0x99185a,_0x3afdb0,[],_0x7bf4dc,_0x42e823,_0x26dd95,_0x5e4ef2,_0x354101),this[_0x4370ed(0x16d)]=_0x35c678,this[_0x4370ed(0x30d)]=_0x19a858,this[_0x4370ed(0x226)]=_0x5d9d39,g(this,_0x4370ed(0x218),'awaiting'),g(this,_0x4370ed(0x1eb),0x0),g(this,_0x4370ed(0x39e),0x0),g(this,_0x4370ed(0x3a8),void 0x0),g(this,_0x4370ed(0x22a),void 0x0);}['appendMutation'](_0xd5f9a){const _0x42d9e8=_0x1de16c;this[_0x42d9e8(0x338)]();let _0x522233=this[_0x42d9e8(0x16d)][_0x42d9e8(0x215)](N,this[_0x42d9e8(0x378)],this[_0x42d9e8(0x1a0)],this[_0x42d9e8(0x1c3)],[_0xd5f9a],this[_0x42d9e8(0x36f)],this[_0x42d9e8(0x3a8)]);return _0x522233[_0x42d9e8(0x394)](),_0x522233;}[_0x1de16c(0x2e0)](_0x1861f6){const _0x385d21=_0x1de16c;if(this['_checkMissing'](_0x1861f6))return this[_0x385d21(0x338)](),this[_0x385d21(0x16d)][_0x385d21(0x215)](I,this[_0x385d21(0x378)],this[_0x385d21(0x1a0)],this[_0x385d21(0x1c3)],[],null,[_0x1861f6],this[_0x385d21(0x36f)]);try{let _0x39cdd2=this['_transformService'][_0x385d21(0x34d)]([_0x1861f6],[this[_0x385d21(0x1c3)]],!0x1);if((0x0,e[_0x385d21(0x20c)])(_0x39cdd2)){let {c1Prime:_0x131417,c2Prime:_0x2a584a}=_0x39cdd2;this['_executeRemoteChangeset'](_0x131417[0x0]),_0x2a584a[0x0][_0x385d21(0x336)]=this[_0x385d21(0x170)](),this[_0x385d21(0x338)]();let _0x7f60bf=this[_0x385d21(0x16d)]['createInstance'](D,this[_0x385d21(0x378)],this[_0x385d21(0x1a0)],_0x2a584a[0x0],this['_handler']);return _0x7f60bf[_0x385d21(0x394)](),_0x7f60bf;}throw _0x39cdd2[_0x385d21(0x1e3)];}catch(_0x4342ed){return this[_0x385d21(0x30d)]['error'](_0x4342ed),this[_0x385d21(0x369)](!0x1);}}[_0x1de16c(0x2ca)](_0x5234b8){const _0x5df9fa=_0x1de16c;this[_0x5df9fa(0x338)]();let _0x230a80=this[_0x5df9fa(0x20b)][_0x5df9fa(0x295)](this[_0x5df9fa(0x378)]);if(_0x5234b8[_0x5df9fa(0x3be)]<=_0x230a80)return this;if(this[_0x5df9fa(0x402)](_0x5234b8))return this[_0x5df9fa(0x16d)][_0x5df9fa(0x215)](I,this[_0x5df9fa(0x378)],this[_0x5df9fa(0x1a0)],this[_0x5df9fa(0x1c3)],[],_0x5234b8[_0x5df9fa(0x3be)],[],this[_0x5df9fa(0x36f)]);this[_0x5df9fa(0x3a3)]();let _0x17fb24=this[_0x5df9fa(0x16d)][_0x5df9fa(0x215)](A,this[_0x5df9fa(0x378)],this[_0x5df9fa(0x1a0)],this['_handler']);return _0x17fb24['_updateLocalCache'](),_0x17fb24;}[_0x1de16c(0x3a5)](_0xdc1b30){const _0x5de53d=_0x1de16c;return this['_onConflict'](!!(_0xdc1b30!=null&&_0xdc1b30[_0x5de53d(0x3e2)]));}[_0x1de16c(0x28f)](_0x50ec03){const _0x189e0a=_0x1de16c;return this['_maxTotalRetryTimeout']>we?this[_0x189e0a(0x315)]():(this[_0x189e0a(0x3a8)]=xe(this[_0x189e0a(0x1eb)],{'timeout':this[_0x189e0a(0x1eb)],'reqId':_0x50ec03[_0x189e0a(0x163)]}),this[_0x189e0a(0x22a)]=this[_0x189e0a(0x3a8)][_0x189e0a(0x15c)](({reqId:_0xf8516c,timeout:_0x175435})=>{this['_resendWithTimeout'](_0xf8516c,_0x175435);}),this);}[_0x1de16c(0x315)](){const _0x2c05df=_0x1de16c;return this[_0x2c05df(0x338)](),this[_0x2c05df(0x16d)]['createInstance'](F,this[_0x2c05df(0x378)],this[_0x2c05df(0x1a0)],this['_awaitingChangeset'],[],this[_0x2c05df(0x36f)]);}['toggleOnline'](){return this;}[_0x1de16c(0x1be)](){const _0x558022=_0x1de16c;this['_handler']['onSendChangeset'](this[_0x558022(0x1c3)]);}[_0x1de16c(0x369)](_0x65bf39){const _0x476678=_0x1de16c;return this[_0x476678(0x338)](),this[_0x476678(0x16d)][_0x476678(0x215)](P,this[_0x476678(0x378)],this[_0x476678(0x1a0)],this[_0x476678(0x1c3)],[],this[_0x476678(0x36f)],_0x65bf39);}[_0x1de16c(0x16c)](_0x2aa40a,_0x1a2370){const _0x1687ad=_0x1de16c;var _0x5181c6;_0x2aa40a===((_0x5181c6=this[_0x1687ad(0x1c3)])==null?void 0x0:_0x5181c6[_0x1687ad(0x163)])&&(this[_0x1687ad(0x1be)](),this[_0x1687ad(0x1eb)]=_0x1a2370===0x0?0x3e8:Math[_0x1687ad(0x34b)](_0x1a2370*0x2,Ce),this['_maxTotalRetryTimeout']+=this[_0x1687ad(0x1eb)]);}[_0x1de16c(0x338)](){const _0x1c0b6b=_0x1de16c;var _0x2abe7e;(_0x2abe7e=this[_0x1c0b6b(0x22a)])==null||_0x2abe7e[_0x1c0b6b(0x21f)](),this[_0x1c0b6b(0x1eb)]=0x0,this[_0x1c0b6b(0x39e)]=0x0;}};M=D=y([v(0x4,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x5,(0x0,t['Inject'])(e[_0x1de16c(0x2eb)])),v(0x6,t[_0x1de16c(0x2a8)]),v(0x7,t['ILogService']),v(0x8,e[_0x1de16c(0x13c)]),v(0x9,t[_0x1de16c(0x374)]),v(0xa,(0x0,t['Optional'])(S))],M);let N=O=class extends k{constructor(_0x332984,_0x3d556b,_0x994c7e,_0xa1621d,_0x596df2,_0x1fa8e6,_0x4bdf9c,_0x1fac70,_0x4ecbf6,_0x259592,_0x4e2247,_0x57b1c2,_0x332d03){const _0x204c1a=_0x1de16c;super(_0x332984,_0x3d556b,_0x994c7e,_0xa1621d,_0x596df2,_0x4ecbf6,_0x57b1c2,_0x1fac70,_0x332d03),this[_0x204c1a(0x16d)]=_0x4bdf9c,this[_0x204c1a(0x30d)]=_0x259592,this[_0x204c1a(0x226)]=_0x4e2247,this[_0x204c1a(0x30c)]=_0x332d03,g(this,_0x204c1a(0x218),_0x204c1a(0x355)),g(this,_0x204c1a(0x1eb),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x204c1a(0x3a8),void 0x0),g(this,'_sender',void 0x0),_0x1fa8e6&&(this[_0x204c1a(0x3a8)]=_0x1fa8e6,this['_sender']=this[_0x204c1a(0x3a8)][_0x204c1a(0x15c)](({reqId:_0x2d2ae4,timeout:_0x53c089})=>{const _0x47b334=_0x204c1a;this[_0x47b334(0x16c)](_0x2d2ae4,_0x53c089);}));}['appendMutation'](_0x299400){const _0x33031d=_0x1de16c;return this[_0x33031d(0x256)]['push'](_0x299400),this;}[_0x1de16c(0x2e0)](_0x1150fa){const _0x2f8d3c=_0x1de16c;if(this[_0x2f8d3c(0x402)](_0x1150fa))return this['_clearScheduledTask'](),this['_injector']['createInstance'](I,this[_0x2f8d3c(0x378)],this[_0x2f8d3c(0x1a0)],this[_0x2f8d3c(0x1c3)],this['_pendingMutations'],null,[_0x1150fa],this[_0x2f8d3c(0x36f)]);try{let _0x323c9d=this['_transformService']['transformChangesets']([_0x1150fa],[this[_0x2f8d3c(0x1c3)]],!0x1);if((0x0,e[_0x2f8d3c(0x20c)])(_0x323c9d)){let {c1Prime:_0x19dfcb,c2Prime:_0x3b595e}=_0x323c9d,_0x1ef9e7=this[_0x2f8d3c(0x226)][_0x2f8d3c(0x307)](_0x19dfcb[0x0],this[_0x2f8d3c(0x256)]);if((0x0,e[_0x2f8d3c(0x2f1)])(_0x1ef9e7)){let {c1Prime:_0x437c70,m2Prime:_0x35131d}=_0x1ef9e7;return this[_0x2f8d3c(0x1f3)](_0x437c70),_0x3b595e[0x0][_0x2f8d3c(0x336)]=this[_0x2f8d3c(0x170)](),this[_0x2f8d3c(0x338)](),this[_0x2f8d3c(0x16d)][_0x2f8d3c(0x215)](O,this[_0x2f8d3c(0x378)],this[_0x2f8d3c(0x1a0)],_0x3b595e[0x0],_0x35131d,this['_handler'],void 0x0);}throw _0x1ef9e7['error'];}throw _0x323c9d[_0x2f8d3c(0x1e3)];}catch(_0x7e89fd){return this[_0x2f8d3c(0x30d)]['error'](_0x7e89fd),this[_0x2f8d3c(0x369)](!0x1);}}['onRemoteAck'](_0x3ecc3d){const _0x120e45=_0x1de16c;this[_0x120e45(0x338)]();let _0x1cb73a=this[_0x120e45(0x170)]();if(_0x3ecc3d['revision']<=_0x1cb73a)return this;if(this[_0x120e45(0x402)](_0x3ecc3d))return this['_injector'][_0x120e45(0x215)](I,this[_0x120e45(0x378)],this[_0x120e45(0x1a0)],this[_0x120e45(0x1c3)],this[_0x120e45(0x256)],_0x3ecc3d[_0x120e45(0x3be)],[],this[_0x120e45(0x36f)]);this[_0x120e45(0x3a3)]();let _0x49fadd=this[_0x120e45(0x16d)]['createInstance'](j,this[_0x120e45(0x378)],this[_0x120e45(0x1a0)],this[_0x120e45(0x256)],this[_0x120e45(0x36f)]);return _0x49fadd[_0x120e45(0x35e)](),_0x49fadd[_0x120e45(0x394)](),_0x49fadd;}['onRemoteRej'](_0x140d9c){const _0x1d3119=_0x1de16c;return this[_0x1d3119(0x369)](!!(_0x140d9c!=null&&_0x140d9c[_0x1d3119(0x3e2)]));}[_0x1de16c(0x28f)](_0x4e1150){const _0x289916=_0x1de16c;return this[_0x289916(0x39e)]>we?this[_0x289916(0x315)]():(this[_0x289916(0x3a8)]=xe(this[_0x289916(0x1eb)],{'timeout':this[_0x289916(0x1eb)],'reqId':_0x4e1150[_0x289916(0x163)]}),this[_0x289916(0x22a)]=this[_0x289916(0x3a8)][_0x289916(0x15c)](({reqId:_0x2ac1a6,timeout:_0x5d6af8})=>{this['_resendWithTimeout'](_0x2ac1a6,_0x5d6af8);}),this);}[_0x1de16c(0x315)](){const _0x7dc3f0=_0x1de16c;return this[_0x7dc3f0(0x338)](),this[_0x7dc3f0(0x16d)][_0x7dc3f0(0x215)](F,this['unitID'],this[_0x7dc3f0(0x1a0)],this[_0x7dc3f0(0x1c3)],this['_pendingMutations'],this[_0x7dc3f0(0x36f)]);}[_0x1de16c(0x127)](){return this;}['resend'](){const _0x479daf=_0x1de16c;this['_handler'][_0x479daf(0x219)](this['_awaitingChangeset']);}[_0x1de16c(0x369)](_0x11f474){const _0x15ec88=_0x1de16c;return this[_0x15ec88(0x338)](),this[_0x15ec88(0x16d)]['createInstance'](P,this[_0x15ec88(0x378)],this[_0x15ec88(0x1a0)],null,this[_0x15ec88(0x256)],this[_0x15ec88(0x36f)],_0x11f474);}[_0x1de16c(0x16c)](_0xdf29b4,_0x8aedd8){const _0x5e36fa=_0x1de16c;var _0x38356a;_0xdf29b4===((_0x38356a=this[_0x5e36fa(0x1c3)])==null?void 0x0:_0x38356a[_0x5e36fa(0x163)])&&(this[_0x5e36fa(0x1be)](),this[_0x5e36fa(0x1eb)]=_0x8aedd8===0x0?0x3e8:Math['min'](_0x8aedd8*0x2,Ce),this[_0x5e36fa(0x39e)]+=this[_0x5e36fa(0x1eb)]);}[_0x1de16c(0x338)](){const _0x1194e9=_0x1de16c;var _0x43dd66;(_0x43dd66=this['_sender'])==null||_0x43dd66[_0x1194e9(0x21f)](),this[_0x1194e9(0x1eb)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};N=O=y([v(0x6,(0x0,t['Inject'])(t[_0x1de16c(0x25d)])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x8,t[_0x1de16c(0x2a8)]),v(0x9,t[_0x1de16c(0x243)]),v(0xa,e['ITransformService']),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x1de16c(0x37e)])(S))],N);let P=class extends k{constructor(_0x377909,_0x4e3d56,_0x4d0348,_0x317747,_0xc067ac,_0x12d490=!0x1,_0x5d90a2,_0x5ad27c,_0x47e6f3,_0x45425e,_0x4dd96f,_0x1a7ab3,_0x40b1ec){const _0x4c5d37=_0x1de16c;super(_0x377909,_0x4e3d56,_0x4d0348,_0x317747,_0xc067ac,_0x5ad27c,_0x47e6f3,_0x45425e,_0x40b1ec),this[_0x4c5d37(0x16f)]=_0x12d490,this[_0x4c5d37(0x2c5)]=_0x5d90a2,this[_0x4c5d37(0x3ff)]=_0x4dd96f,this['_collaborationUIEventService']=_0x1a7ab3,this[_0x4c5d37(0x30c)]=_0x40b1ec,g(this,_0x4c5d37(0x218),_0x4c5d37(0x326)),this[_0x4c5d37(0x1f6)](),this['_clearLocalCache'](),this[_0x4c5d37(0x407)]();}[_0x1de16c(0x21e)](){return this;}[_0x1de16c(0x2e0)](){return this;}[_0x1de16c(0x2ca)](){return this;}['onRemoteRej'](){return this;}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){return this;}[_0x1de16c(0x127)](){return this;}[_0x1de16c(0x1be)](){const _0x536b4f=_0x1de16c;throw Error(_0x536b4f(0x387));}[_0x1de16c(0x266)](){const _0x53d2d1=_0x1de16c;var _0x497395;(_0x497395=this[_0x53d2d1(0x2e1)])==null||_0x497395[_0x53d2d1(0x152)](this[_0x53d2d1(0x378)],this[_0x53d2d1(0x1a0)],null,[]);}[_0x1de16c(0x1f6)](){const _0x49d0e8=_0x1de16c;this[_0x49d0e8(0x16f)]?this[_0x49d0e8(0x3f4)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x49d0e8(0x3f4)][_0x49d0e8(0x262)]({'id':_0x49d0e8(0x171)});}[_0x1de16c(0x407)](){const _0x5b2ab3=_0x1de16c;this[_0x5b2ab3(0x2c5)]['updatePermissionPoint'](new r[(_0x5b2ab3(0x316))](this[_0x5b2ab3(0x378)])['id'],!0x1);}};P=y([v(0x6,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x3e7)])),v(0x7,t[_0x1de16c(0x2a8)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0xa,(0x0,t['Inject'])(t[_0x1de16c(0x297)])),v(0xb,(0x0,t[_0x1de16c(0x20f)])(_)),v(0xc,(0x0,t['Optional'])(S))],P);let F=class extends k{constructor(_0x3368b8,_0x13fced,_0x3c569e,_0xa75bf7,_0x2525f6,_0x351f61,_0x3a777e,_0x593c98,_0x83a10f,_0x1c4209){const _0x25d7ed=_0x1de16c;super(_0x3368b8,_0x13fced,_0x3c569e,_0xa75bf7,_0x2525f6,_0x593c98,_0x83a10f,_0x3a777e,_0x1c4209),this['_injector']=_0x351f61,g(this,_0x25d7ed(0x218),_0x25d7ed(0x2fa));}[_0x1de16c(0x21e)](_0x6743e1){const _0x3f6b20=_0x1de16c;return this[_0x3f6b20(0x256)][_0x3f6b20(0x186)](_0x6743e1),this[_0x3f6b20(0x394)](),this;}[_0x1de16c(0x2e0)](_0x25b1b9){const _0x121130=_0x1de16c;throw Error(_0x121130(0x34f));}['onRemoteAck'](){const _0x3bab05=_0x1de16c;throw Error(_0x3bab05(0x37a));}[_0x1de16c(0x3a5)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){return this;}[_0x1de16c(0x127)](){const _0x2e8a64=_0x1de16c;let {_injector:_0x4f563d,_pendingMutations:_0x56104f,_awaitingChangeset:_0x84e893,unitID:_0x56abd5,_handler:_0x157f88,type:_0x5596f8}=this,_0x17b3f5=Te(_0x4f563d,_0x56abd5,_0x5596f8,_0x84e893,_0x56104f,_0x157f88);return _0x17b3f5 instanceof j?_0x17b3f5[_0x2e8a64(0x35e)]():(_0x17b3f5 instanceof N||_0x17b3f5 instanceof M)&&_0x17b3f5[_0x2e8a64(0x1be)](),_0x17b3f5;}['resend'](){const _0x2a615c=_0x1de16c;throw Error(_0x2a615c(0x38f));}};F=y([v(0x5,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x6,(0x0,t[_0x1de16c(0x20f)])(e['RevisionService'])),v(0x7,t[_0x1de16c(0x2a8)]),v(0x8,t[_0x1de16c(0x374)]),v(0x9,(0x0,t[_0x1de16c(0x37e)])(S))],F);let I=class extends k{constructor(_0x294574,_0x94ab04,_0x41d18d,_0x125c28,_0x4c3fa4,_0x10d6fd,_0x54342b,_0x570435,_0x257ee7,_0xe06725,_0x1ec77b,_0x475f8a,_0x4e9580,_0x5a84de){const _0x585b37=_0x1de16c;super(_0x294574,_0x94ab04,_0x41d18d,_0x125c28,_0x54342b,_0x1ec77b,_0x475f8a,_0x257ee7,_0x5a84de),this[_0x585b37(0x385)]=_0x4c3fa4,this[_0x585b37(0x298)]=_0x10d6fd,this[_0x585b37(0x16d)]=_0x570435,this[_0x585b37(0x30d)]=_0xe06725,this[_0x585b37(0x226)]=_0x4e9580,this[_0x585b37(0x30c)]=_0x5a84de,g(this,'status',_0x585b37(0x3f5));}['onMissedChangesetFetched'](_0x44ecd0){const _0x3ac8ff=_0x1de16c;try{if(this['_handleRemoteChangesets'](_0x44ecd0)[_0x3ac8ff(0x3ec)])throw Error(_0x3ac8ff(0x283));if(this[_0x3ac8ff(0x18f)]([...this[_0x3ac8ff(0x298)]][_0x3ac8ff(0x24f)]((_0x3232a5,_0x542704)=>_0x3232a5[_0x3ac8ff(0x3be)]-_0x542704[_0x3ac8ff(0x3be)]))[_0x3ac8ff(0x3ec)])return this['_queuedRemoteChangesets']=[],this[_0x3ac8ff(0x394)](),this[_0x3ac8ff(0x36f)][_0x3ac8ff(0x3da)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x1646d3=this['_awaitingChangeset'],_0x8e2d25=this[_0x3ac8ff(0x256)],_0x21cb2e;if(_0x1646d3&&_0x8e2d25['length']!==0x0)_0x21cb2e=this[_0x3ac8ff(0x16d)][_0x3ac8ff(0x215)](N,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],_0x1646d3,_0x8e2d25,this[_0x3ac8ff(0x36f)],void 0x0);else{if(_0x1646d3&&_0x8e2d25[_0x3ac8ff(0x3c7)]===0x0)_0x1646d3[_0x3ac8ff(0x336)]=this['_getCurrentRevision'](),_0x21cb2e=this[_0x3ac8ff(0x16d)][_0x3ac8ff(0x215)](M,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],_0x1646d3,this[_0x3ac8ff(0x36f)]);else{if(_0x8e2d25['length']!==0x0){let _0x5583de=this[_0x3ac8ff(0x16d)]['createInstance'](j,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],_0x8e2d25,this[_0x3ac8ff(0x36f)]);_0x5583de[_0x3ac8ff(0x35e)](),_0x21cb2e=_0x5583de;}else _0x21cb2e=this[_0x3ac8ff(0x16d)]['createInstance'](A,this[_0x3ac8ff(0x378)],this['type'],this[_0x3ac8ff(0x36f)]);}}return _0x21cb2e[_0x3ac8ff(0x394)](),_0x21cb2e;}catch(_0x504fd3){return this[_0x3ac8ff(0x30d)][_0x3ac8ff(0x1e3)]('[FetchMissState]',_0x3ac8ff(0x2d9),_0x504fd3),this['_injector'][_0x3ac8ff(0x215)](P,this[_0x3ac8ff(0x378)],this[_0x3ac8ff(0x1a0)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3ac8ff(0x36f)],!0x1);}}[_0x1de16c(0x18f)](_0x5494a3){const _0x345e6c=_0x1de16c;this[_0x345e6c(0x1cc)]();for(let _0x41fe70=0x0;_0x41fe70<_0x5494a3[_0x345e6c(0x3c7)];_0x41fe70++){let _0x118d0f=_0x5494a3[_0x41fe70],_0x2572f7=this[_0x345e6c(0x170)]();if(!(_0x118d0f[_0x345e6c(0x3be)]<=_0x2572f7)){if(_0x118d0f['revision']>_0x2572f7+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x118d0f)){this[_0x345e6c(0x24a)]();continue;}this[_0x345e6c(0x346)](_0x118d0f),this[_0x345e6c(0x1cc)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x69eb26){const _0x16faef=_0x1de16c;let _0x4f14e7=_0x69eb26,_0x57ef82=this[_0x16faef(0x1c3)];if(_0x57ef82){let _0x216bb3=this['_transformService']['transformChangesets']([_0x69eb26],[_0x57ef82],!0x1);if(!(0x0,e[_0x16faef(0x20c)])(_0x216bb3))throw _0x216bb3['error'];_0x4f14e7=_0x216bb3['c1Prime'][0x0],_0x57ef82=_0x216bb3[_0x16faef(0x324)][0x0];}let _0x19473e=this[_0x16faef(0x256)];if(_0x19473e['length']){let _0x3f4312=this[_0x16faef(0x226)][_0x16faef(0x307)](_0x4f14e7,_0x19473e);if(!(0x0,e[_0x16faef(0x2f1)])(_0x3f4312))throw _0x3f4312[_0x16faef(0x1e3)];_0x4f14e7=_0x3f4312[_0x16faef(0x38e)],_0x19473e=_0x3f4312[_0x16faef(0x249)];}this[_0x16faef(0x1f3)](_0x4f14e7),_0x57ef82&&(_0x57ef82[_0x16faef(0x336)]=this['_getCurrentRevision']()),this[_0x16faef(0x1c3)]=_0x57ef82,this[_0x16faef(0x256)]=_0x19473e;}[_0x1de16c(0x1cc)](){const _0x3baec5=_0x1de16c;if(!this[_0x3baec5(0x1c3)]||this[_0x3baec5(0x385)]==null)return;let _0x3cde16=this[_0x3baec5(0x170)]();if(this[_0x3baec5(0x385)]<=_0x3cde16)throw Error(_0x3baec5(0x285)+this[_0x3baec5(0x385)]+'.');this[_0x3baec5(0x385)]===_0x3cde16+0x1&&this[_0x3baec5(0x24a)]();}[_0x1de16c(0x24a)](){const _0x507d98=_0x1de16c;this['_incrementRevisionNumber'](),this[_0x507d98(0x1c3)]=null,this[_0x507d98(0x385)]=null;}['_isEchoedAwaitingChangeset'](_0x570a61){const _0x18701f=_0x1de16c;let _0x279e1d=this[_0x18701f(0x1c3)];return!_0x279e1d||!_0x279e1d['sid']||_0x279e1d[_0x18701f(0x163)]===null||_0x279e1d[_0x18701f(0x163)]===void 0x0?!0x1:_0x570a61[_0x18701f(0x378)]===_0x279e1d[_0x18701f(0x378)]&&_0x570a61[_0x18701f(0x3d2)]===_0x279e1d['sid']&&_0x570a61[_0x18701f(0x163)]===_0x279e1d['reqId'];}[_0x1de16c(0x1be)](){const _0x24280c=_0x1de16c;throw Error(_0x24280c(0x348));}[_0x1de16c(0x21e)](_0x242a50){const _0x5ab464=_0x1de16c;return this[_0x5ab464(0x256)]['push'](_0x242a50),this;}[_0x1de16c(0x2e0)](_0x1e03c1){const _0x504c81=_0x1de16c;return this[_0x504c81(0x298)]['push'](_0x1e03c1),this;}['onRemoteAck'](_0x6c67af){const _0x3099b4=_0x1de16c;if(this[_0x3099b4(0x1c3)]){let _0x5f240e=this[_0x3099b4(0x170)]();return _0x6c67af[_0x3099b4(0x3be)]<=_0x5f240e||(_0x5f240e+0x1===_0x6c67af[_0x3099b4(0x3be)]?(this[_0x3099b4(0x3a3)](),this[_0x3099b4(0x1c3)]=null,this[_0x3099b4(0x385)]=null):this['_acknowledgedAwaitingRevision']=_0x6c67af[_0x3099b4(0x3be)]),this;}if(_0x6c67af['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x3099b4(0x36e));}[_0x1de16c(0x3a5)](_0x4e4f6a){const _0x134b17=_0x1de16c;return this['_onConflict'](!!(_0x4e4f6a!=null&&_0x4e4f6a[_0x134b17(0x3e2)]));}[_0x1de16c(0x28f)](){return this;}[_0x1de16c(0x315)](){const _0x176fd8=_0x1de16c;return this[_0x176fd8(0x16d)]['createInstance'](F,this[_0x176fd8(0x378)],this[_0x176fd8(0x1a0)],this[_0x176fd8(0x1c3)],this[_0x176fd8(0x256)],this[_0x176fd8(0x36f)]);}['toggleOnline'](){return this;}[_0x1de16c(0x369)](_0x104583){const _0x250aa4=_0x1de16c;return this[_0x250aa4(0x16d)][_0x250aa4(0x215)](P,this['unitID'],this[_0x250aa4(0x1a0)],this[_0x250aa4(0x1c3)],this[_0x250aa4(0x256)],this[_0x250aa4(0x36f)],_0x104583);}};I=y([v(0x7,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x8,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x9,t[_0x1de16c(0x243)]),v(0xa,t[_0x1de16c(0x2a8)]),v(0xb,t[_0x1de16c(0x374)]),v(0xc,e[_0x1de16c(0x13c)]),v(0xd,(0x0,t[_0x1de16c(0x37e)])(S))],I);function Te(_0x22175d,_0x2ddb0e,_0x4b49de,_0x4f6c1e,_0x213c9a,_0x4642bd){const _0x5e6026=_0x1de16c;return _0x4f6c1e&&_0x213c9a[_0x5e6026(0x3c7)]?_0x22175d[_0x5e6026(0x215)](N,_0x2ddb0e,_0x4b49de,_0x4f6c1e,_0x213c9a,_0x4642bd,void 0x0):_0x4f6c1e?_0x22175d[_0x5e6026(0x215)](M,_0x2ddb0e,_0x4b49de,_0x4f6c1e,_0x4642bd):_0x213c9a[_0x5e6026(0x3c7)]?_0x22175d[_0x5e6026(0x215)](j,_0x2ddb0e,_0x4b49de,_0x213c9a,_0x4642bd):_0x22175d[_0x5e6026(0x215)](A,_0x2ddb0e,_0x4b49de,_0x4642bd);}let L=class extends t['RxDisposable']{get['state'](){const _0x2638b5=_0x1de16c;return this[_0x2638b5(0x404)];}constructor(_0x4e040a,_0x130f9e,_0x4b03de,_0x385ffc,_0x1eeea3,_0x11b56e,_0x42d9e3,_0x35c6df,_0x2e876b,_0x2302c0,_0x33d700,_0x5219a9,_0x44c0f5,_0xf74dce){const _0x584baa=_0x1de16c;super(),this[_0x584baa(0x378)]=_0x4e040a,this[_0x584baa(0x380)]=_0x130f9e,this[_0x584baa(0x2ac)]=_0x4b03de,this[_0x584baa(0x16d)]=_0x385ffc,this[_0x584baa(0x1ba)]=_0x1eeea3,this[_0x584baa(0x3ff)]=_0x11b56e,this['_revisionService']=_0x42d9e3,this[_0x584baa(0x37d)]=_0x35c6df,this['_univerInstanceService']=_0x2e876b,this[_0x584baa(0x30d)]=_0x2302c0,this[_0x584baa(0x3ab)]=_0x33d700,this[_0x584baa(0x2c5)]=_0x5219a9,this[_0x584baa(0x238)]=_0x44c0f5,this[_0x584baa(0x2e1)]=_0xf74dce,g(this,_0x584baa(0x1cf),new i[(_0x584baa(0x19f))](null)),g(this,_0x584baa(0x2f6),this[_0x584baa(0x1cf)]['asObservable']()),g(this,_0x584baa(0x404),void 0x0),g(this,_0x584baa(0x38a),!0x1),g(this,_0x584baa(0x23e),''),g(this,_0x584baa(0x1f2),0x0),g(this,_0x584baa(0x1b6),this[_0x584baa(0x2f6)][_0x584baa(0x200)]((0x0,i[_0x584baa(0x2fc)])(_0x72fbda=>_0x72fbda?_0x72fbda[_0x584baa(0x218)]:_0x584baa(0x2fa)),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x584baa(0x33f),!0x1),g(this,_0x584baa(0x265),[]);}async[_0x1de16c(0x399)](){if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x1de16c(0x2ef)](){const _0x10454a=_0x1de16c;return this['_collaborationPaused']=!0x0,(0x0,t[_0x10454a(0x1db)])(()=>{const _0x272dda=_0x10454a;this[_0x272dda(0x38a)]=!0x1,this[_0x272dda(0x25b)]();});}[_0x1de16c(0x32e)](_0xce831b){const _0x3d1d0c=_0x1de16c;this[_0x3d1d0c(0x1fe)](_0xce831b);}['_updateState'](_0x382200){const _0x3d37f7=_0x1de16c;this[_0x3d37f7(0x404)]=_0x382200,this[_0x3d37f7(0x1cf)][_0x3d37f7(0x286)](_0x382200);}async[_0x1de16c(0x208)](){const _0x9a3175=_0x1de16c;if(this[_0x9a3175(0x3b7)](await this[_0x9a3175(0x263)]()),this[_0x9a3175(0x238)]){var _0x510519;(_0x510519=this[_0x9a3175(0x238)])==null||_0x510519[_0x9a3175(0x392)](this[_0x9a3175(0x378)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x9a3175(0x132)](this[_0x9a3175(0x378)])[_0x9a3175(0x15c)](_0x442e13=>{const _0x5fbe92=_0x9a3175;this[_0x5fbe92(0x30d)][_0x5fbe92(0x2f2)](_0x5fbe92(0x156),_0x5fbe92(0x33c),_0x442e13),_0x442e13===0x1?(this[_0x5fbe92(0x37d)][_0x5fbe92(0x262)]({'id':_0x5fbe92(0x3c6)}),this[_0x5fbe92(0x2c5)][_0x5fbe92(0x301)](new r['WorkbookEditablePermission'](this[_0x5fbe92(0x378)])['id'],!0x1),this[_0x5fbe92(0x2c5)]['setShowComponents'](!0x1)):(this[_0x5fbe92(0x2c5)]['updatePermissionPoint'](new r['WorkbookEditablePermission'](this['unitID'])['id'],!0x0),this[_0x5fbe92(0x2c5)]['setShowComponents'](!0x0));}));}let _0x56779e=!0x1;return this['disposeWithMe'](this[_0x9a3175(0x380)]['sessionStatus$'][_0x9a3175(0x15c)](_0x1f8cc0=>{const _0x28965b=_0x9a3175;_0x1f8cc0===0x3?this[_0x28965b(0x3dd)](_0x56779e):_0x1f8cc0===0x2&&(_0x56779e=!0x0,this[_0x28965b(0x30e)]());})),this[_0x9a3175(0x3b8)](this[_0x9a3175(0x380)][_0x9a3175(0x201)]['subscribe'](_0x7ad1a8=>{const _0x362456=_0x9a3175;try{switch(_0x7ad1a8['eventID']){case e[_0x362456(0x255)]['NEW_CHANGESETS']:this['_onRemoteChangeset']((0x0,e[_0x362456(0x320)])(_0x7ad1a8[_0x362456(0x2d2)]));break;case e[_0x362456(0x255)][_0x362456(0x3bf)]:this[_0x362456(0x2de)](_0x7ad1a8[_0x362456(0x2d2)]);break;case e[_0x362456(0x255)][_0x362456(0x357)]:this[_0x362456(0x2c1)]();break;case e[_0x362456(0x255)][_0x362456(0x18b)]:this['_onRemoteRetry'](_0x7ad1a8[_0x362456(0x2d2)]);break;case e[_0x362456(0x255)][_0x362456(0x2c8)]:this[_0x362456(0x19a)](_0x7ad1a8[_0x362456(0x2d2)]['changesets'][_0x362456(0x2fc)](_0x52c38e=>(0x0,e[_0x362456(0x320)])(_0x52c38e)));break;case e[_0x362456(0x255)]['PERMISSION_REJ']:this[_0x362456(0x2c1)]({'isPermissionRej':!0x0});break;case e[_0x362456(0x255)][_0x362456(0x26f)]:break;}}catch(_0x4e92ae){throw console['error'](_0x362456(0x409),_0x4e92ae),_0x4e92ae;}})),this['_state'];}[_0x1de16c(0x23f)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x3a7207=_0x1de16c;if(this[_0x3a7207(0x33f)])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[_0x3a7207(0x33f)]=!0x0;}[_0x1de16c(0x1fe)](_0x5f707){const _0x2bdd14=_0x1de16c;this[_0x2bdd14(0x1bb)](),this[_0x2bdd14(0x3b7)](this[_0x2bdd14(0x404)][_0x2bdd14(0x21e)](_0x5f707)),this[_0x2bdd14(0x23f)]();}[_0x1de16c(0x376)](_0x48fd39){const _0xb0e5bb=_0x1de16c;if(!(_0x48fd39['revision']<=this[_0xb0e5bb(0x20b)][_0xb0e5bb(0x295)](this[_0xb0e5bb(0x378)]))){if(this[_0xb0e5bb(0x38a)]){this['_remoteChangesetQueue'][_0xb0e5bb(0x186)](_0x48fd39);return;}this['_applyRemoteChangeset'](_0x48fd39);}}[_0x1de16c(0x25b)](){const _0x46f095=_0x1de16c;this[_0x46f095(0x265)]['forEach'](_0x3d03ab=>this[_0x46f095(0x2d1)](_0x3d03ab)),this[_0x46f095(0x265)]=[];}[_0x1de16c(0x2d1)](_0x3d817e){const _0x5b1ed5=_0x1de16c;let _0x76a0a6=this['_compressMutationService'][_0x5b1ed5(0x1c5)][_0x5b1ed5(0x14a)](this[_0x5b1ed5(0x1ba)][_0x5b1ed5(0x1c5)]['getInterceptPoints']()[_0x5b1ed5(0x128)])(_0x3d817e[_0x5b1ed5(0x13f)],null)||_0x3d817e['mutations'],_0x540241={..._0x3d817e,'mutations':_0x76a0a6};this['_lockTransition'](),this[_0x5b1ed5(0x3b7)](this[_0x5b1ed5(0x404)][_0x5b1ed5(0x2e0)](_0x540241)),this[_0x5b1ed5(0x23f)]();}[_0x1de16c(0x2de)](_0x1ef428){const _0x373de5=_0x1de16c;this[_0x373de5(0x1bb)](),this[_0x373de5(0x3b7)](this['_state']['onRemoteAck'](_0x1ef428)),this[_0x373de5(0x23f)]();}[_0x1de16c(0x2c1)](_0x5a2a16){const _0x4c8125=_0x1de16c;this[_0x4c8125(0x1bb)](),this[_0x4c8125(0x3b7)](this['_state'][_0x4c8125(0x3a5)](_0x5a2a16)),this[_0x4c8125(0x23f)]();}['_onRemoteRetry'](_0x4adb34){const _0x50adba=_0x1de16c;this['_lockTransition'](),this[_0x50adba(0x3b7)](this['_state'][_0x50adba(0x28f)](_0x4adb34)),this[_0x50adba(0x23f)]();}['_onFetchMissResult'](_0x36ed0d){const _0x540574=_0x1de16c;if(!(this[_0x540574(0x404)]instanceof I))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x13594c=_0x36ed0d[_0x540574(0x2fc)](_0x442626=>{const _0xef6a5=_0x540574;let _0x19fe62=this[_0xef6a5(0x1ba)][_0xef6a5(0x1c5)][_0xef6a5(0x14a)](this[_0xef6a5(0x1ba)]['interceptor'][_0xef6a5(0x368)]()[_0xef6a5(0x128)])(_0x442626['mutations'],null)||_0x442626[_0xef6a5(0x13f)];return{..._0x442626,'mutations':_0x19fe62};});this[_0x540574(0x1bb)](),this['_updateState'](this[_0x540574(0x404)][_0x540574(0x329)](_0x13594c)),this[_0x540574(0x23f)]();}['_toggleOffline'](){const _0x2af132=_0x1de16c;this[_0x2af132(0x1bb)](),this[_0x2af132(0x3b7)](this[_0x2af132(0x404)]['toggleOffline']()),this['_unlockTransition']();}[_0x1de16c(0x3dd)](_0x1e04e8=!0x1){const _0x5a60a1=_0x1de16c;this[_0x5a60a1(0x1bb)](),this[_0x5a60a1(0x3b7)](this[_0x5a60a1(0x404)][_0x5a60a1(0x127)]()),this[_0x5a60a1(0x23f)]();let _0x194db4=this[_0x5a60a1(0x404)];_0x1e04e8&&_0x194db4 instanceof A&&(this[_0x5a60a1(0x1bb)](),this['_updateState'](_0x194db4[_0x5a60a1(0x14e)]()),this[_0x5a60a1(0x23f)]());}async[_0x1de16c(0x263)](){return new Promise(_0x289a53=>{const _0x333776=_0x3896;this[_0x333776(0x380)]['sessionStatus$'][_0x333776(0x200)]((0x0,i[_0x333776(0x2ed)])(0x1))[_0x333776(0x15c)](async _0x49b754=>{const _0x43bf41=_0x333776;_0x289a53(await this[_0x43bf41(0x223)](_0x49b754===0x3));});});}['_createHandler'](){const _0x3cd7cf=_0x1de16c;let _0x51ab23=this[_0x3cd7cf(0x378)];return{'onStateChange':(_0x5d962c,_0x21cd31)=>{const _0x257ac3=_0x3cd7cf;if(_0x5d962c!==this[_0x257ac3(0x404)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x5d962c[_0x257ac3(0x218)]+_0x257ac3(0x137)+_0x21cd31[_0x257ac3(0x218)]+_0x257ac3(0x2bc)+this['_state'][_0x257ac3(0x218)]);this['_updateState'](_0x21cd31);},'onSendChangeset':_0xa8b839=>{const _0x1b157c=_0x3cd7cf;_0xa8b839[_0x1b157c(0x3d2)]||(_0xa8b839[_0x1b157c(0x3d2)]=this['_changesetSessionId'],_0xa8b839['reqId']=++this[_0x1b157c(0x1f2)]);let _0x255296={'eventID':e[_0x1b157c(0x255)][_0x1b157c(0x32b)],'data':{'unitID':_0xa8b839[_0x1b157c(0x378)],'unitType':this[_0x1b157c(0x2ac)],'changeset':_0xa8b839,'memberID':this[_0x1b157c(0x380)]['getMemberID']()}};this[_0x1b157c(0x380)][_0x1b157c(0x2d5)](_0x255296,this['unitID']);},'onMissingChangesets':({from:_0x1ae612,to:_0x4486a9})=>{const _0x580078=_0x3cd7cf;this[_0x580078(0x30d)]['debug'](_0x580078(0x156),_0x580078(0x3c1)+_0x1ae612+_0x580078(0x396)+_0x4486a9);let _0x57fad6={'eventID':e[_0x580078(0x255)]['FETCH_MISSING'],'data':{'unitID':_0x51ab23,'unitType':this[_0x580078(0x2ac)],'from':_0x1ae612,'to':_0x4486a9}};this[_0x580078(0x380)]['send'](_0x57fad6,this[_0x580078(0x378)]);}};}async['_createInitialStateImpl'](_0x129552){const _0x53eefe=_0x1de16c;var _0x59ad39,_0x15c913,_0x31e12a;let _0x361cd4=await((_0x59ad39=this[_0x53eefe(0x2e1)])==null?void 0x0:_0x59ad39['loadOfflineData'](this[_0x53eefe(0x378)])),_0x29e58=(_0x15c913=_0x361cd4==null?void 0x0:_0x361cd4['mutations'])==null?[]:_0x15c913,_0x3e21b9=(_0x31e12a=_0x361cd4==null?void 0x0:_0x361cd4[_0x53eefe(0x2f5)])==null?null:_0x31e12a,_0x5b73e2=!!(_0x3e21b9!=null&&_0x3e21b9[_0x53eefe(0x3d2)])&&!!(_0x3e21b9!=null&&_0x3e21b9['reqId']);this[_0x53eefe(0x23e)]=_0x5b73e2?_0x3e21b9[_0x53eefe(0x3d2)]:(0x0,e[_0x53eefe(0x333)])(),this[_0x53eefe(0x1f2)]=_0x5b73e2?_0x3e21b9['reqId']:0x0;let _0x15e7e3=this[_0x53eefe(0x378)];try{this[_0x53eefe(0x3bc)](_0x3e21b9,_0x29e58);}catch(_0x3c3f55){this[_0x53eefe(0x30d)]['error'](_0x3c3f55);}let _0xaede08=this[_0x53eefe(0x312)]();if(_0x129552){let _0x156061=Te(this[_0x53eefe(0x16d)],_0x15e7e3,this[_0x53eefe(0x2ac)],_0x3e21b9,_0x29e58,_0xaede08);return _0x156061 instanceof j?_0x156061[_0x53eefe(0x35e)]():(_0x156061 instanceof N||_0x156061 instanceof M)&&_0x156061[_0x53eefe(0x1be)](),_0x156061;}return this[_0x53eefe(0x16d)][_0x53eefe(0x215)](F,_0x15e7e3,this[_0x53eefe(0x2ac)],_0x3e21b9,_0x29e58,_0xaede08);}['_replayCachedMutations'](_0x41d9d9,_0x39d976){const _0x41c856=_0x1de16c;var _0x2fe3c3,_0x117df6;let _0x1e3b34=this[_0x41c856(0x1ba)][_0x41c856(0x1c5)]['fetchThroughInterceptors'](this[_0x41c856(0x1ba)][_0x41c856(0x1c5)][_0x41c856(0x368)]()[_0x41c856(0x128)]);(_0x2fe3c3=_0x1e3b34((_0x41d9d9==null?void 0x0:_0x41d9d9[_0x41c856(0x13f)])||[],null))==null||_0x2fe3c3['forEach'](_0x2f2ba2=>this['_commandService'][_0x41c856(0x300)](_0x2f2ba2['id'],_0x2f2ba2[_0x41c856(0x3ce)])),(_0x117df6=_0x1e3b34(_0x39d976||[],null))==null||_0x117df6[_0x41c856(0x2f3)](_0x300c3e=>this['_commandService'][_0x41c856(0x300)](_0x300c3e['id'],_0x300c3e[_0x41c856(0x3ce)]));}};L=y([v(0x3,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x4,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x160)])),v(0x5,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x297)])),v(0x6,(0x0,t['Inject'])(e[_0x1de16c(0x2eb)])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x8,t[_0x1de16c(0x1ca)]),v(0x9,t[_0x1de16c(0x243)]),v(0xa,t[_0x1de16c(0x2a8)]),v(0xb,t[_0x1de16c(0x3e7)]),v(0xc,(0x0,t[_0x1de16c(0x37e)])(w)),v(0xd,(0x0,t[_0x1de16c(0x37e)])(S))],L);let R=class extends L{constructor(_0x6a7698,_0x1e029,_0xcb3351,_0x3105ff,_0x4b0b36,_0x3f2f98,_0x1a908f,_0x3c1a0e,_0xb1c8b7,_0x36f4f4,_0x304784,_0x3b7e58,_0x33b4d1,_0x329c5f){const _0x37b5f6=_0x1de16c;super(_0x6a7698,_0xcb3351,_0x1e029,_0x3105ff,_0x4b0b36,_0x3f2f98,_0x1a908f,_0x3c1a0e,_0xb1c8b7,_0x36f4f4,_0x304784,_0x3b7e58,_0x33b4d1,_0x329c5f),this[_0x37b5f6(0x378)]=_0x6a7698,this[_0x37b5f6(0x1a0)]=_0x1e029,g(this,_0x37b5f6(0x1f9),null);}[_0x1de16c(0x181)](_0x1eef9e){const _0x29a11d=_0x1de16c;this[_0x29a11d(0x1f9)]=_0x1eef9e;}['dispose'](){const _0xebd947=_0x1de16c;this[_0xebd947(0x1f9)]=null,super['dispose']();}['_createHandler'](){const _0x37443d=_0x1de16c;let _0x3ebf0f=super[_0x37443d(0x312)]();return _0x3ebf0f['onTransformIME']=_0x12e020=>{const _0x3a1f9b=_0x37443d;var _0x54ce6f,_0x5363f5;return(_0x54ce6f=this['_handlerCallback'])==null||(_0x5363f5=_0x54ce6f[_0x3a1f9b(0x364)])==null?void 0x0:_0x5363f5[_0x3a1f9b(0x21c)](_0x54ce6f,_0x12e020);},_0x3ebf0f[_0x37443d(0x32d)]=_0x57996e=>{const _0x9cad59=_0x37443d;var _0x1a6bf9,_0x3c971f;return(_0x1a6bf9=this[_0x9cad59(0x1f9)])==null||(_0x3c971f=_0x1a6bf9[_0x9cad59(0x32d)])==null?void 0x0:_0x3c971f[_0x9cad59(0x21c)](_0x1a6bf9,_0x57996e);},_0x3ebf0f[_0x37443d(0x2cc)]=_0x1affe9=>{const _0x34409a=_0x37443d;var _0x5b8feb,_0x32cb23;return(_0x5b8feb=this[_0x34409a(0x1f9)])==null||(_0x32cb23=_0x5b8feb[_0x34409a(0x2cc)])==null?void 0x0:_0x32cb23[_0x34409a(0x21c)](_0x5b8feb,_0x1affe9);},_0x3ebf0f[_0x37443d(0x204)]=_0x14e1ca=>{const _0x3df518=_0x37443d;var _0xd95b2e,_0x3fcdbb;return(_0xd95b2e=this[_0x3df518(0x1f9)])==null||(_0x3fcdbb=_0xd95b2e['onSyncEditingCollabCursor'])==null?void 0x0:_0x3fcdbb[_0x3df518(0x21c)](_0xd95b2e,_0x14e1ca);},_0x3ebf0f[_0x37443d(0x1d4)]=_0x30694e=>{const _0x2729b8=_0x37443d;var _0x361719,_0x3b1f33,_0x31628c;if(!((_0x361719=this[_0x2729b8(0x1f9)])!=null&&_0x361719[_0x2729b8(0x1d4)]))throw Error(_0x2729b8(0x241));return(_0x3b1f33=this['_handlerCallback'])==null||(_0x31628c=_0x3b1f33[_0x2729b8(0x1d4)])==null?void 0x0:_0x31628c[_0x2729b8(0x21c)](_0x3b1f33,_0x30694e);},_0x3ebf0f['onTransformRemoteChangesetByStateCache']=_0x5ec831=>{const _0x16b77d=_0x37443d;var _0x596e8b,_0x26a2b4,_0x2d3865;if(!((_0x596e8b=this[_0x16b77d(0x1f9)])!=null&&_0x596e8b[_0x16b77d(0x3d8)]))throw Error(_0x16b77d(0x2fd));return(_0x26a2b4=this[_0x16b77d(0x1f9)])==null||(_0x2d3865=_0x26a2b4[_0x16b77d(0x3d8)])==null?void 0x0:_0x2d3865[_0x16b77d(0x21c)](_0x26a2b4,_0x5ec831);},_0x3ebf0f;}async[_0x1de16c(0x208)](){const _0x50a0af=_0x1de16c;let _0x3850cd=await super[_0x50a0af(0x208)]();return this[_0x50a0af(0x3b8)](this['_commandService'][_0x50a0af(0x313)]((_0x437e6f,_0x3bab39)=>{const _0xb01300=_0x50a0af;if(_0x437e6f['type']!==t[_0xb01300(0x267)][_0xb01300(0x37c)]||_0x3bab39!=null&&_0x3bab39[_0xb01300(0x299)]||_0x3bab39!=null&&_0x3bab39[_0xb01300(0x296)]||_0x437e6f['id']===n['RichTextEditingMutation']['id'])return;let _0x38a228=_0x437e6f[_0xb01300(0x3ce)];if((_0x38a228==null?void 0x0:_0x38a228[_0xb01300(0x2c9)])!==this['unitID'])return;let _0x587383=_0x437e6f,_0x69312d=this['_compressMutationService'][_0xb01300(0x1c5)][_0xb01300(0x14a)](this[_0xb01300(0x1ba)][_0xb01300(0x1c5)][_0xb01300(0x368)]()['COMPRESS_MUTATION_SEND'])([_0x587383],this[_0xb01300(0x2a7)])||[_0x587383];this[_0xb01300(0x1fe)](_0x69312d[0x0]);})),_0x3850cd;}};R=y([v(0x3,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x4,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x160)])),v(0x5,(0x0,t['Inject'])(t[_0x1de16c(0x297)])),v(0x6,(0x0,t[_0x1de16c(0x20f)])(e[_0x1de16c(0x2eb)])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x8,t[_0x1de16c(0x1ca)]),v(0x9,t[_0x1de16c(0x243)]),v(0xa,t[_0x1de16c(0x2a8)]),v(0xb,t[_0x1de16c(0x3e7)]),v(0xc,(0x0,t['Optional'])(w)),v(0xd,(0x0,t[_0x1de16c(0x37e)])(S))],R);let z=class extends L{constructor(_0x2e7a91,_0x1b4f5d,_0x19bf01,_0x486c3d,_0x58d054,_0x20f3a0,_0x1fb48c,_0x4439a5,_0x37e1e8,_0x353ddb,_0x59b6b0,_0x3c8d82,_0x4c0158,_0x5bcb09,_0x35adba){const _0xf0dbe=_0x1de16c;super(_0x2e7a91,_0x19bf01,_0x1b4f5d,_0x486c3d,_0x58d054,_0x20f3a0,_0x1fb48c,_0x37e1e8,_0x353ddb,_0x59b6b0,_0x3c8d82,_0x4c0158,_0x5bcb09,_0x35adba),this['unitID']=_0x2e7a91,this[_0xf0dbe(0x1a0)]=_0x1b4f5d,this[_0xf0dbe(0x221)]=_0x4439a5;}['_createHandler'](){const _0x472d6e=_0x1de16c;let _0x33026d=super[_0x472d6e(0x312)]();return _0x33026d[_0x472d6e(0x2cc)]=_0x10d9f2=>this[_0x472d6e(0x221)][_0x472d6e(0x3ea)](_0x10d9f2),_0x33026d;}async[_0x1de16c(0x208)](){const _0x15e563=_0x1de16c;let _0x27225d=await super[_0x15e563(0x208)]();return this['disposeWithMe'](this[_0x15e563(0x3ab)][_0x15e563(0x313)]((_0x3cbd84,_0x21f3f1)=>{const _0x18356f=_0x15e563;if(_0x3cbd84['type']!==t[_0x18356f(0x267)][_0x18356f(0x37c)]||_0x21f3f1!=null&&_0x21f3f1['fromCollab']||_0x21f3f1!=null&&_0x21f3f1[_0x18356f(0x296)])return;let _0x536928=_0x3cbd84[_0x18356f(0x3ce)];if((_0x536928==null?void 0x0:_0x536928[_0x18356f(0x2c9)])!==this[_0x18356f(0x378)])return;let _0x47451f=_0x3cbd84,_0x2e513d=this[_0x18356f(0x1ba)][_0x18356f(0x1c5)][_0x18356f(0x14a)](this[_0x18356f(0x1ba)][_0x18356f(0x1c5)][_0x18356f(0x368)]()['COMPRESS_MUTATION_SEND'])([_0x47451f],this['_univerInstanceService'])||[_0x47451f];this[_0x18356f(0x1fe)](_0x2e513d[0x0]);})),_0x27225d;}};z=y([v(0x3,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x4,(0x0,t['Inject'])(e[_0x1de16c(0x160)])),v(0x5,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x297)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t[_0x1de16c(0x20f)])(C)),v(0x8,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x9,t[_0x1de16c(0x1ca)]),v(0xa,t[_0x1de16c(0x243)]),v(0xb,t[_0x1de16c(0x2a8)]),v(0xc,t[_0x1de16c(0x3e7)]),v(0xd,(0x0,t[_0x1de16c(0x37e)])(w)),v(0xe,(0x0,t['Optional'])(S))],z);const Ee=(0x0,t[_0x1de16c(0x26b)])(_0x1de16c(0x30b));function De(_0x3ae757){const _0x4b89ce=_0x1de16c;let _0x1ff9e5=_0x3ae757[_0x4b89ce(0x2d2)],_0x1e1c6c=JSON[_0x4b89ce(0x28b)](_0x1ff9e5);switch(_0x1e1c6c['cmd']){case a['CombCmd']['HEARTBEAT']:case a['CombCmd'][_0x4b89ce(0x354)]:{let _0x153540=_0x1e1c6c[_0x4b89ce(0x1dd)];return{..._0x1e1c6c,'data':_0x153540,'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};}case a[_0x4b89ce(0x3ae)][_0x4b89ce(0x220)]:{let _0x57f7d0=_0x1e1c6c[_0x4b89ce(0x2f9)];return{..._0x1e1c6c,'data':_0x57f7d0,'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};}case a[_0x4b89ce(0x3ae)][_0x4b89ce(0x3f7)]:{let _0x38be0e=_0x1e1c6c[_0x4b89ce(0x25f)];switch(_0x38be0e['eventID']){case e[_0x4b89ce(0x255)][_0x4b89ce(0x195)]:var _0x95cf62;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x95cf62=_0x38be0e['permissionRejEvent'])==null?void 0x0:_0x95cf62['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x3bf)]:var _0x5fd1a4;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x5fd1a4=_0x38be0e[_0x4b89ce(0x193)])==null?void 0x0:_0x5fd1a4['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['NEW_CHANGESETS']:var _0x573266;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x573266=_0x38be0e[_0x4b89ce(0x251)])==null?void 0x0:_0x573266['cs']},'cmd':_0x1e1c6c['cmd']};case e[_0x4b89ce(0x255)]['CHANGESET_REJ']:var _0x3a3e9c;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x3a3e9c=_0x38be0e[_0x4b89ce(0x2df)])==null?void 0x0:_0x3a3e9c['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x18b)]:var _0x56297c;return{..._0x1e1c6c,'data':{..._0x38be0e,'data':(_0x56297c=_0x38be0e[_0x4b89ce(0x244)])==null?void 0x0:_0x56297c['cs']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['UPDATE_CURSOR']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x37b)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['USERS_ENTER']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x141)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x2dc)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x165)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)]['LIVESHARE_NEW_HOST']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e['liveShareNewHost']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x264)]:case e[_0x4b89ce(0x255)]['LIVESHARE_OPERATION']:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x1e5)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x3cd)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e['liveShareNewHost']},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e['CollaborationEvent'][_0x4b89ce(0x3f2)]:return{..._0x1e1c6c,'data':_0x38be0e,'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e['CollaborationEvent'][_0x4b89ce(0x1e7)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x34a)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e['CollaborationEvent'][_0x4b89ce(0x344)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x268)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x3fe)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x2e3)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};case e[_0x4b89ce(0x255)][_0x4b89ce(0x26f)]:return{..._0x1e1c6c,'data':{..._0x38be0e,'data':_0x38be0e[_0x4b89ce(0x287)]},'cmd':_0x1e1c6c[_0x4b89ce(0x2e6)]};default:return _0x1e1c6c;}}default:return _0x1e1c6c;}}function Oe(_0x2f64ee){const _0x15ee8a=_0x1de16c;switch(_0x2f64ee[_0x15ee8a(0x2e6)]){case a[_0x15ee8a(0x3ae)][_0x15ee8a(0x3d0)]:case a[_0x15ee8a(0x3ae)][_0x15ee8a(0x354)]:return JSON[_0x15ee8a(0x2d8)]({'cmd':_0x2f64ee['cmd'],'routeKey':_0x2f64ee[_0x15ee8a(0x3f8)]});case a[_0x15ee8a(0x3ae)][_0x15ee8a(0x212)]:{let _0x1732d0;switch(_0x2f64ee['data'][_0x15ee8a(0x26d)]){case e[_0x15ee8a(0x255)][_0x15ee8a(0x3b1)]:_0x1732d0={'eventID':e['CollaborationEvent'][_0x15ee8a(0x3b1)],'updateCursorEvent':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x2dc)]:_0x1732d0={'eventID':e[_0x15ee8a(0x255)]['USERS_LEAVE'],'leaveEvent':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x318)]:_0x1732d0={'eventID':e['CollaborationEvent'][_0x15ee8a(0x318)],'joinEvent':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x3b9)]:_0x1732d0={'eventID':e['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x20d)]:_0x1732d0={'eventID':e[_0x15ee8a(0x255)][_0x15ee8a(0x20d)],'liveShareOperation':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)]['LIVESHARE_TERMINATE']:_0x1732d0={'eventID':e[_0x15ee8a(0x255)][_0x15ee8a(0x3cd)],'liveShareTerminate':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x1bd)]:_0x1732d0={'eventID':e['CollaborationEvent'][_0x15ee8a(0x1bd)],'liveShareRequestHost':_0x2f64ee[_0x15ee8a(0x2d2)][_0x15ee8a(0x2d2)]};break;case e[_0x15ee8a(0x255)][_0x15ee8a(0x264)]:_0x1732d0={'eventID':e[_0x15ee8a(0x255)]['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x1732d0={'eventID':_0x2f64ee['data'][_0x15ee8a(0x26d)]};}return JSON[_0x15ee8a(0x2d8)]({'cmd':_0x2f64ee[_0x15ee8a(0x2e6)],'routeKey':_0x2f64ee[_0x15ee8a(0x3f8)],'collaMsg':_0x1732d0});}case a['CombCmd']['JOIN']:return JSON[_0x15ee8a(0x2d8)]({'cmd':_0x2f64ee[_0x15ee8a(0x2e6)],'routeKey':_0x2f64ee['routeKey'],'joinReq':_0x2f64ee['data']});case a[_0x15ee8a(0x3ae)]['LEAVE']:return JSON['stringify']({'cmd':_0x2f64ee['cmd'],'routeKey':_0x2f64ee['routeKey'],'leaveReq':_0x2f64ee[_0x15ee8a(0x2d2)]});default:throw Error(_0x15ee8a(0x191));}}const B=(0x0,t['createIdentifier'])(_0x1de16c(0x3ca));function ke(_0x2fd6b3,_0x47e019,_0x11a8eb){const _0x485d2b=_0x1de16c;return _0x2fd6b3+'/'+_0x47e019+_0x485d2b(0x192)+_0x11a8eb+_0x485d2b(0x1f1);}let V=class extends t['Disposable']{constructor(_0x5c980f,_0x1f8556,_0x1561fc,_0x3b2fa2,_0x57b143){const _0x16867d=_0x1de16c;super(),this[_0x16867d(0x16d)]=_0x5c980f,this[_0x16867d(0x367)]=_0x1f8556,this[_0x16867d(0x2aa)]=_0x1561fc,this[_0x16867d(0x30d)]=_0x3b2fa2,this[_0x16867d(0x229)]=_0x57b143;}[_0x1de16c(0x205)](_0x19c4ab){const _0x5dc969=_0x1de16c;let _0x46c011=this[_0x5dc969(0x16d)][_0x5dc969(0x373)](c['ISocketService']);if(!_0x46c011)throw Error(_0x5dc969(0x1c8));let _0x4b1387=_0x46c011[_0x5dc969(0x1a1)](_0x19c4ab);if(!_0x4b1387)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x341001=new t[(_0x5dc969(0x157))](),_0x214276=new i['Subject']();_0x341001[_0x5dc969(0x27f)](_0x4b1387[_0x5dc969(0x26c)][_0x5dc969(0x15c)](_0x47999f=>_0x214276[_0x5dc969(0x286)](_0x47999f))),_0x341001[_0x5dc969(0x27f)]((0x0,t[_0x5dc969(0x1db)])(()=>_0x214276[_0x5dc969(0x183)]()));let _0xb38224=new i[(_0x5dc969(0x3c5))]();_0x341001[_0x5dc969(0x27f)](_0x4b1387['error$'][_0x5dc969(0x15c)](_0x240fe1=>_0xb38224[_0x5dc969(0x286)](_0x240fe1))),_0x341001[_0x5dc969(0x27f)]((0x0,t['toDisposable'])(()=>_0xb38224[_0x5dc969(0x183)]()));let _0x1295b4=new i[(_0x5dc969(0x3c5))]();_0x341001[_0x5dc969(0x27f)](_0x4b1387['message$'][_0x5dc969(0x15c)](_0x392365=>{const _0x33c86e=_0x5dc969;let _0x357e8e=De(_0x392365);_0x1295b4[_0x33c86e(0x286)](_0x357e8e);})),_0x341001[_0x5dc969(0x27f)]((0x0,t[_0x5dc969(0x1db)])(()=>_0x1295b4[_0x5dc969(0x183)]()));let _0x2531fa,_0x12d7bf=()=>{const _0x220560=_0x5dc969;_0xb38224[_0x220560(0x286)](new Event(_0x220560(0x23d))),_0x214276[_0x220560(0x286)](new Event(_0x220560(0x23d))),_0x2531fa[_0x220560(0x261)]();};return _0x2531fa={'memberID':'','close$':_0x214276[_0x5dc969(0x1ea)](),'error$':_0xb38224[_0x5dc969(0x1ea)](),'open$':_0x4b1387[_0x5dc969(0x327)],'message$':_0x1295b4[_0x5dc969(0x1ea)](),'send':_0x4e8561=>{const _0x5f1563=_0x5dc969;if(_0x4e8561[_0x5f1563(0x2e6)]===a[_0x5f1563(0x3ae)]['INGEST']){if(_0x4e8561[_0x5f1563(0x2d2)][_0x5f1563(0x26d)]===e[_0x5f1563(0x255)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x2531fa,_0x4e8561[_0x5f1563(0x2d2)])[_0x5f1563(0x158)](_0x33fafd=>{const _0x27bcc0=_0x5f1563;this[_0x27bcc0(0x30d)][_0x27bcc0(0x1e3)](_0x33fafd),_0x12d7bf();});return;}if(_0x4e8561[_0x5f1563(0x2d2)][_0x5f1563(0x26d)]===e[_0x5f1563(0x255)][_0x5f1563(0x24b)]){let _0x945b39=_0x4e8561[_0x5f1563(0x2d2)];this[_0x5f1563(0x224)](_0x945b39)[_0x5f1563(0x129)](_0x3d77fc=>{const _0x3b8a0b=_0x5f1563;_0x1295b4[_0x3b8a0b(0x286)]({'cmd':a[_0x3b8a0b(0x3ae)]['RECV'],'code':a['CmdRspCode']['OK'],'routeKey':_0x945b39['data'][_0x3b8a0b(0x378)],'routeType':'','data':{'eventID':e[_0x3b8a0b(0x255)][_0x3b8a0b(0x2c8)],'data':{'changesets':_0x3d77fc}}});})[_0x5f1563(0x158)](_0x5dad21=>{const _0x24e1c9=_0x5f1563;this[_0x24e1c9(0x30d)][_0x24e1c9(0x1e3)](_0x5dad21),_0x12d7bf();});return;}}_0x4b1387[_0x5f1563(0x2d5)](Oe(_0x4e8561));},'close':()=>{const _0x31ae67=_0x5dc969;_0x4b1387[_0x31ae67(0x261)](),_0x341001[_0x31ae67(0x317)]();}},_0x2531fa;}async[_0x1de16c(0x33a)](_0x53d791,_0x4a0fb0){const _0x2942a8=_0x1de16c;var _0x1531c8;let {unitType:_0x3667a4,unitID:_0xd45dac,changeset:_0x5bdb74}=_0x4a0fb0[_0x2942a8(0x2d2)],_0x402c25={'unitID':_0xd45dac,'memberID':_0x53d791[_0x2942a8(0x33e)],'type':_0x3667a4,'changeset':(0x0,e[_0x2942a8(0x339)])(_0x5bdb74)},_0x45fdb8=this[_0x2942a8(0x2aa)][_0x2942a8(0x26a)](T),_0x37f199=ke((_0x1531c8=_0x45fdb8==null?void 0x0:_0x45fdb8[_0x2942a8(0x24e)])==null?'/universer-api/comb':_0x1531c8,_0x3667a4,_0xd45dac);try{await this[_0x2942a8(0x367)][_0x2942a8(0x154)](_0x37f199,{'body':_0x402c25});}catch(_0x66aa70){throw this['_logService']['error'](_0x2942a8(0x12e),'submit\x20changeset\x20error!'),_0x66aa70;}}async[_0x1de16c(0x224)](_0x1a6cd8){const _0x41c314=_0x1de16c;let {unitID:_0x329e9b,from:_0x3d9606,to:_0x3258b5,unitType:_0x2910bb}=_0x1a6cd8['data'];return(await this[_0x41c314(0x229)][_0x41c314(0x1b9)]({'metadata':void 0x0},{'unitID':_0x329e9b,'type':_0x2910bb,'from':_0x3d9606,'to':_0x3258b5}))['changesets']['map'](_0x3f7a55=>((_0x3f7a55[_0x41c314(0x13f)]===null||_0x3f7a55[_0x41c314(0x13f)]===void 0x0)&&(_0x3f7a55['mutations']=[]),_0x3f7a55));}};V=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x1,(0x0,t['Inject'])(c[_0x1de16c(0x14d)])),v(0x2,t[_0x1de16c(0x3cb)]),v(0x3,t[_0x1de16c(0x243)]),v(0x4,e[_0x1de16c(0x35a)])],V);let H=class extends t[_0x1de16c(0x1d2)]{get['_socket'](){return this['_socket$']['getValue']();}constructor(_0x1430b0,_0x103065,_0x43b11b,_0x419d0c,_0x18353e,_0x3a9d7e){const _0xc258cc=_0x1de16c;super(),this[_0xc258cc(0x16d)]=_0x1430b0,this[_0xc258cc(0x30d)]=_0x103065,this['_configService']=_0x43b11b,this[_0xc258cc(0x17a)]=_0x419d0c,this[_0xc258cc(0x3f4)]=_0x18353e,this[_0xc258cc(0x164)]=_0x3a9d7e,g(this,_0xc258cc(0x246),new i['BehaviorSubject'](void 0x0)),g(this,_0xc258cc(0x25e),this[_0xc258cc(0x246)]['asObservable']()),g(this,_0xc258cc(0x390),null),g(this,'_sessions',new Map()),g(this,_0xc258cc(0x1a2),new i[(_0xc258cc(0x19f))](0x0)),g(this,_0xc258cc(0x1b6),this[_0xc258cc(0x1a2)][_0xc258cc(0x1ea)]()),g(this,'_socketReady',!0x1),g(this,_0xc258cc(0x38d),void 0x0),g(this,_0xc258cc(0x12a),0x0),g(this,_0xc258cc(0x21b),null),g(this,'_sendHeartbeatTimer',void 0x0),g(this,_0xc258cc(0x328),void 0x0),this[_0xc258cc(0x3c0)]();}[_0x1de16c(0x3c0)](){const _0x3934f8=_0x1de16c;this[_0x3934f8(0x164)]&&this[_0x3934f8(0x3b8)](this['_networkConditionService'][_0x3934f8(0x3d5)][_0x3934f8(0x15c)](_0x254dff=>{const _0xe00e6e=_0x3934f8;_0x254dff&&!this[_0xe00e6e(0x260)]&&this['reconnect'](),_0x254dff||this[_0xe00e6e(0x29d)]();}));}['dispose'](){const _0x1173fa=_0x1de16c;var _0x1f55db;super[_0x1173fa(0x317)](),(_0x1f55db=this['_socketMessageSubscription'])==null||_0x1f55db[_0x1173fa(0x21f)](),this['_socketMessageSubscription']=null,this['_clearRetryConnectingTimer'](),this[_0x1173fa(0x361)](),this[_0x1173fa(0x2bf)](),this[_0x1173fa(0x2b9)][_0x1173fa(0x2f3)](_0x385d36=>_0x385d36[_0x1173fa(0x317)]()),this[_0x1173fa(0x2b9)]['clear'](),this['_status$']['complete']();}async['requireSession'](_0x58b369){const _0x5e1722=_0x1de16c;if(this[_0x5e1722(0x2b9)][_0x5e1722(0x1c7)](_0x58b369))return this[_0x5e1722(0x2b9)]['get'](_0x58b369);this[_0x5e1722(0x1e9)]();let _0x1ef680=this[_0x5e1722(0x16d)][_0x5e1722(0x215)](x,_0x58b369,this[_0x5e1722(0x246)]['asObservable']());return this[_0x5e1722(0x2b9)][_0x5e1722(0x248)](_0x58b369,_0x1ef680),_0x1ef680;}['closeSession'](_0x35b74b){const _0x283f53=_0x1de16c;let _0x27f914=this['_sessions']['get'](_0x35b74b);if(_0x27f914&&(this['_sessions'][_0x283f53(0x1d7)](_0x35b74b),_0x27f914[_0x283f53(0x261)]()),!this[_0x283f53(0x2b9)][_0x283f53(0x372)]){var _0x17875e;(_0x17875e=this[_0x283f53(0x260)])==null||_0x17875e[_0x283f53(0x261)]();}}['reconnect'](){const _0x415738=_0x1de16c;this[_0x415738(0x12a)]=0x0,this[_0x415738(0x203)](),this[_0x415738(0x2cf)]();}[_0x1de16c(0x203)](){const _0xd01b64=_0x1de16c;this[_0xd01b64(0x38d)]!=null&&(clearTimeout(this[_0xd01b64(0x38d)]),this['_retryConnectingTimer']=null);}async[_0x1de16c(0x199)](){const _0x1a019d=_0x1de16c;var _0x46a296;let _0x511446=this[_0x1a019d(0x2aa)]['getConfig'](T),_0xa3caa1=(_0x46a296=_0x511446==null?void 0x0:_0x511446['collabWebSocketUrl'])==null?p:_0x46a296,_0x33aedf=await this[_0x1a019d(0x17a)][_0x1a019d(0x1a1)](_0xa3caa1);return this[_0x1a019d(0x390)]=_0x33aedf,_0x33aedf;}async[_0x1de16c(0x1e9)](){const _0x57e28b=_0x1de16c;try{var _0xda6eea,_0x889418;let _0x4e829f=(_0xda6eea=(_0x889418=this[_0x57e28b(0x260)])==null?this[_0x57e28b(0x390)]:_0x889418)==null?await this[_0x57e28b(0x199)]():_0xda6eea;if(_0x4e829f){var _0x33a407;let _0x6bc1dd=_0x4e829f[_0x57e28b(0x2d5)];_0x4e829f['send']=_0x431fae=>(_0x431fae[_0x57e28b(0x2e6)]!==a[_0x57e28b(0x3ae)]['LEAVE']&&this['_rescheduleHeartbeat'](),_0x6bc1dd[_0x57e28b(0x245)](_0x4e829f,[_0x431fae])),(_0x33a407=this[_0x57e28b(0x21b)])==null||_0x33a407['unsubscribe'](),this[_0x57e28b(0x21b)]=null,this[_0x57e28b(0x21b)]=_0x4e829f[_0x57e28b(0x252)][_0x57e28b(0x15c)](_0x14adb0=>this[_0x57e28b(0x32f)](_0x4e829f,_0x14adb0)),_0x4e829f['error$'][_0x57e28b(0x200)]((0x0,s[_0x57e28b(0x2ed)])(0x1))[_0x57e28b(0x15c)](_0x4a1220=>this['_logService'][_0x57e28b(0x1e3)](_0x57e28b(0x393),_0x4a1220)),_0x4e829f['open$'][_0x57e28b(0x200)]((0x0,s['take'])(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x4e829f);}),_0x4e829f[_0x57e28b(0x26c)][_0x57e28b(0x200)]((0x0,s[_0x57e28b(0x2ed)])(0x1))['subscribe'](_0xe4bdaa=>{const _0x111648=_0x57e28b;this[_0x111648(0x30d)][_0x111648(0x2f2)](_0x111648(0x1c6),_0x111648(0x2cd),_0xe4bdaa),this['_onConnectionFailed']();});}}catch(_0x17e9e9){this[_0x57e28b(0x30d)]['error'](_0x17e9e9),this[_0x57e28b(0x250)]();}}['_onConnectionOpen'](_0x92d643){const _0x409b59=_0x1de16c;this[_0x409b59(0x30d)][_0x409b59(0x2f2)](_0x409b59(0x1c6),_0x409b59(0x1a5)),_0x92d643[_0x409b59(0x2d5)]({'cmd':a[_0x409b59(0x3ae)][_0x409b59(0x354)]}),this[_0x409b59(0x38c)]();}[_0x1de16c(0x29d)](){const _0x14251c=_0x1de16c;this[_0x14251c(0x384)]=!0x1,this[_0x14251c(0x390)]=null,this[_0x14251c(0x1a2)][_0x14251c(0x286)](0x2),this[_0x14251c(0x246)][_0x14251c(0x286)](null),this[_0x14251c(0x361)](),this[_0x14251c(0x2bf)]();}['_onConnectionFailed'](){const _0x3649a6=_0x1de16c;var _0x3dfa8b;this[_0x3649a6(0x29d)](),this['_retryCount']<((_0x3dfa8b=this[_0x3649a6(0x2aa)][_0x3649a6(0x26a)](_0x3649a6(0x358)))==null?0x3:_0x3dfa8b)?(this[_0x3649a6(0x3f4)][_0x3649a6(0x262)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect']()):this[_0x3649a6(0x3f4)][_0x3649a6(0x262)]({'id':_0x3649a6(0x1fa)});}[_0x1de16c(0x2cf)](){const _0x57da91=_0x1de16c;var _0x40251d;let _0x325cbe=this[_0x57da91(0x12a)],_0x1088cd=this[_0x57da91(0x2aa)]['getConfig'](T),_0xcde651=_0x325cbe===0x0?0x0:((_0x40251d=_0x1088cd==null?void 0x0:_0x1088cd[_0x57da91(0x1fd)])==null?0x4e20:_0x40251d)*0x2**_0x325cbe;this[_0x57da91(0x38d)]=setTimeout(()=>{const _0x26433f=_0x57da91;clearTimeout(this['_retryConnectingTimer']),this[_0x26433f(0x38d)]=null,this['_tryEnsureSocket']();},_0xcde651),this[_0x57da91(0x12a)]+=0x1;}[_0x1de16c(0x32f)](_0x367408,_0x2f6ba6){const _0x1ccda8=_0x1de16c;let {cmd:_0x3cf819}=_0x2f6ba6;_0x3cf819===a[_0x1ccda8(0x3ae)][_0x1ccda8(0x354)]&&!this[_0x1ccda8(0x384)]&&(_0x367408[_0x1ccda8(0x33e)]=_0x2f6ba6[_0x1ccda8(0x2d2)][_0x1ccda8(0x33e)],this[_0x1ccda8(0x246)]['next'](_0x367408),this['_status$']['next'](0x3),this[_0x1ccda8(0x384)]=!0x0,this[_0x1ccda8(0x390)]=null),_0x3cf819===a[_0x1ccda8(0x3ae)][_0x1ccda8(0x3d0)]&&this[_0x1ccda8(0x361)](),this[_0x1ccda8(0x38c)]();}[_0x1de16c(0x38c)](){const _0x4417b9=_0x1de16c;var _0x36176c;this[_0x4417b9(0x2bf)](),this[_0x4417b9(0x1ec)]=setTimeout(()=>this[_0x4417b9(0x1ee)](),(_0x36176c=this[_0x4417b9(0x2aa)][_0x4417b9(0x26a)](_0x4417b9(0x143)))==null?0x7530:_0x36176c);}[_0x1de16c(0x1ee)](){const _0x5a1cfd=_0x1de16c;this['_socket'][_0x5a1cfd(0x2d5)]({'cmd':a[_0x5a1cfd(0x3ae)][_0x5a1cfd(0x3d0)]}),this[_0x5a1cfd(0x28d)]();}[_0x1de16c(0x28d)](){const _0xf497ef=_0x1de16c;var _0x9f5212;this[_0xf497ef(0x328)]=setTimeout(()=>this[_0xf497ef(0x250)](),(_0x9f5212=this[_0xf497ef(0x2aa)][_0xf497ef(0x26a)]('HEARTBEAT_TIMEOUT'))==null?m:_0x9f5212);}['_clearHeartbeatTimer'](){const _0x354d30=_0x1de16c;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x354d30(0x1ec)]),this['_sendHeartbeatTimer']=null);}[_0x1de16c(0x361)](){const _0x171f9b=_0x1de16c;this[_0x171f9b(0x328)]!=null&&(clearTimeout(this[_0x171f9b(0x328)]),this[_0x171f9b(0x328)]=null);}};H=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x1,t['ILogService']),v(0x2,t[_0x1de16c(0x3cb)]),v(0x3,B),v(0x4,(0x0,t[_0x1de16c(0x20f)])(_)),v(0x5,(0x0,t['Optional'])(Ee))],H);let U=class extends t[_0x1de16c(0x1f0)]{constructor(_0x29cfc0,_0x542124,_0x52280e,_0x2440c6){const _0x34d5b2=_0x1de16c;var _0x192a07;super(),this['_injector']=_0x29cfc0,this[_0x34d5b2(0x32a)]=_0x542124,this[_0x34d5b2(0x2aa)]=_0x52280e,this[_0x34d5b2(0x2a7)]=_0x2440c6,g(this,'_entities',new Map()),g(this,_0x34d5b2(0x352),new i[(_0x34d5b2(0x3c5))]()),g(this,'entityInit$',this[_0x34d5b2(0x352)][_0x34d5b2(0x1ea)]()),((_0x192a07=this['_configService'][_0x34d5b2(0x26a)](_0x34d5b2(0x2dd)))==null?void 0x0:_0x192a07[_0x34d5b2(0x1dc)])!==!0x1&&this[_0x34d5b2(0x208)]();}[_0x1de16c(0x317)](){const _0x2115d4=_0x1de16c;super[_0x2115d4(0x317)](),this[_0x2115d4(0x27a)]['forEach'](_0x473863=>_0x473863[_0x2115d4(0x317)]()),this[_0x2115d4(0x27a)][_0x2115d4(0x12f)]();}[_0x1de16c(0x306)](_0x3e039c){const _0x33bcfb=_0x1de16c;var _0x3babad;return(_0x3babad=this[_0x33bcfb(0x27a)][_0x33bcfb(0x373)](_0x3e039c))==null?null:_0x3babad;}[_0x1de16c(0x3a6)](_0x1d6baf){const _0x2ba52c=_0x1de16c;let _0x37dd0c=this[_0x2ba52c(0x306)](_0x1d6baf);return _0x37dd0c?(0x0,i['of'])(_0x37dd0c):this[_0x2ba52c(0x352)][_0x2ba52c(0x200)]((0x0,s[_0x2ba52c(0x15e)])(_0x1cf695=>_0x1cf695[_0x2ba52c(0x378)]===_0x1d6baf));}[_0x1de16c(0x2c7)](_0x2acae2){const _0x19febe=_0x1de16c;return(0x0,i['firstValueFrom'])(this[_0x19febe(0x3a6)](_0x2acae2)[_0x19febe(0x200)]((0x0,s['map'])(()=>void 0x0)));}[_0x1de16c(0x208)](){const _0x50f0ca=_0x1de16c;this[_0x50f0ca(0x2a7)][_0x50f0ca(0x13d)](t[_0x50f0ca(0x20a)][_0x50f0ca(0x2b5)])[_0x50f0ca(0x200)]((0x0,i[_0x50f0ca(0x3ba)])(this[_0x50f0ca(0x155)]),(0x0,s[_0x50f0ca(0x187)])(0x10))[_0x50f0ca(0x15c)](async _0x436725=>{const _0x560a8d=_0x50f0ca;let _0x498a79=_0x436725[_0x560a8d(0x341)]['getUnitId'](),_0x30cebe=await this[_0x560a8d(0x1c0)](_0x498a79,t[_0x560a8d(0x20a)]['UNIVER_SHEET']);this['_entities'][_0x560a8d(0x248)](_0x498a79,_0x30cebe);}),this[_0x50f0ca(0x2a7)][_0x50f0ca(0x13d)](t[_0x50f0ca(0x20a)][_0x50f0ca(0x198)])[_0x50f0ca(0x200)]((0x0,i[_0x50f0ca(0x3ba)])(this[_0x50f0ca(0x155)]),(0x0,s[_0x50f0ca(0x187)])(0x10))['pipe']((0x0,s['filter'])(_0x4d8b91=>!_0x4d8b91[_0x50f0ca(0x341)][_0x50f0ca(0x270)]()[_0x50f0ca(0x169)]('__')))[_0x50f0ca(0x15c)](async _0x7ca4a1=>{const _0x1737d6=_0x50f0ca;let _0x5f4ee5=_0x7ca4a1['unit'][_0x1737d6(0x270)](),_0x21f441=await this[_0x1737d6(0x1c0)](_0x5f4ee5,t[_0x1737d6(0x20a)]['UNIVER_DOC']);this['_entities']['set'](_0x5f4ee5,_0x21f441);}),(0x0,i[_0x50f0ca(0x391)])(this[_0x50f0ca(0x2a7)][_0x50f0ca(0x232)](t[_0x50f0ca(0x20a)][_0x50f0ca(0x2b5)]),this[_0x50f0ca(0x2a7)][_0x50f0ca(0x232)](t['UniverInstanceType'][_0x50f0ca(0x198)]))['pipe']((0x0,i['takeUntil'])(this[_0x50f0ca(0x155)]))[_0x50f0ca(0x15c)](_0x5aab70=>{const _0x329b54=_0x50f0ca;let _0x53eee1=_0x5aab70[_0x329b54(0x270)](),_0x679c85=this[_0x329b54(0x27a)]['get'](_0x53eee1);_0x679c85&&(_0x679c85[_0x329b54(0x317)](),this[_0x329b54(0x27a)][_0x329b54(0x1d7)](_0x53eee1));});}async[_0x1de16c(0x1c0)](_0x5a96d8,_0x1c8823){const _0x58f5d5=_0x1de16c;let _0x46ce31=await this['_collabSessionService']['requireSession'](_0x5a96d8),_0x2a72c1=this[_0x58f5d5(0x16d)][_0x58f5d5(0x215)](this[_0x58f5d5(0x1a8)](_0x1c8823),_0x5a96d8,_0x1c8823,_0x46ce31);return await _0x2a72c1[_0x58f5d5(0x399)](),this[_0x58f5d5(0x352)][_0x58f5d5(0x286)](_0x2a72c1),_0x2a72c1;}[_0x1de16c(0x1a8)](_0x2f7e3e){const _0x29d5f8=_0x1de16c;switch(_0x2f7e3e){case t[_0x29d5f8(0x20a)][_0x29d5f8(0x198)]:return R;case t[_0x29d5f8(0x20a)][_0x29d5f8(0x2b5)]:return z;default:throw Error(_0x29d5f8(0x2be)+_0x2f7e3e);}}};U=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t['Injector'])),v(0x1,(0x0,t[_0x1de16c(0x20f)])(H)),v(0x2,t['IConfigService']),v(0x3,t[_0x1de16c(0x1ca)])],U);var Ae=_0x1de16c(0x182),je=_0x1de16c(0x1ef);function _0x4f3f(){const _0x4b9d72=['HELLO','awaiting_with_pending','_transformRemoteChangesetByStateCache','CHANGESET_REJ','RETRY_CONNECTING_MAX_COUNT','unitId\x20is\x20not\x20found','ISnapshotServerService','[CollaborationUndoRedoService]','_removeRoom','LOCAL_CACHE_INTERVAL','_schedule','subject','PENDING','_clearTimeoutTimer','resourceIDs','getAllMembers','onTransformIME','fromCharCode','_sendingTimer','_httpService','getInterceptPoints','_onConflict','loginUrlKey','sessionStatus','method','headers','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_handler','url','DependentOn','size','get','IUndoRedoService','pending','_onRemoteChangeset','refreshPermission','unitID','ITelemetryService','[OfflineState]:\x20received\x20acknowledgement.','updateCursorEvent','MUTATION','_eventService','Optional','registerDependencies','session','slice','CollaborationImageIoService','deleteCollaborator','_socketReady','_acknowledgedAwaitingRevision','[SyncedState]:\x20received\x20rejection.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getActiveSheet','_clearUndo','_collaborationPaused','find','_rescheduleHeartbeat','_retryConnectingTimer','c1Prime','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_candidateSocket','merge','editingUnit','[CollaborationSessionService]:\x20socket\x20error','_updateLocalCache','onload','\x20to\x20','SheetTransformSelectionsService','POST','init','[PendingState]:\x20unhandled\x20univer\x20type:\x20','OPTIONAL','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_onRecvEvent','_maxTotalRetryTimeout','includes','__splitChunk__','reject','collaborators','_incrementRevisionNumber','rev','onRemoteRej','getCollabEntity$','/-/object/-/batch_allowed','_resendTimer','putCollaborators','getOwnPropertyDescriptor','_commandService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','removeMember','CombCmd','/universer-api/user/session-ticket','equals','UPDATE_CURSOR','_cfgEnableObjInherit','1771609QmGPdS','put','loadUnitOfRevision','BASE64','_updateState','disposeWithMe','LIVESHARE_NEW_HOST','takeUntil','MentionType','_replayCachedMutations','IContextService','revision','CHANGESET_ACK','_listenToNetworkCondition','fetching\x20missing\x20changesets\x20from\x20','some','_decreaseWaiting','_getSendChangesetTimeout','Subject','OTHER_CLIENT_EDITING','length','Failed\x20to\x20update\x20permission\x20point','getUnitType','univer-pro.collaboration-client-socket-service','IConfigService','SheetsSelectionsService','LIVESHARE_TERMINATE','params','setCfgEnableObjInherit','HEARTBEAT','src','sid','origin','_clearCollaborationTimeoutTimer','online$','CollaborationUIEventId','encrypt','onTransformRemoteChangesetByStateCache','getResourcesRequest','onMissingChangesets','isArray','updateMember','_toggleOnline','getFocusedUnit','_onUserJoin','not_collab','AWAITING_WITH_PENDING','isPermissionRej','OTHER_CLIENTS_EDITING','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_event$','requireSession','IPermissionService','_transformStack','randomBytes','transformSelections','href','missingChangesets','getImageSourceCache','reduce','session.room-cnt-exceeds','requestParams','/allowed','MSG_FOR_ERROR','{fileID}','_collaborationUIEventService','fetch_missing','getTime','RECV','routeKey','values','objectActions','session.room-permission-denied','findIndex','_onCombEvent','SHOULD_CLOSE_CONN','_localeService','registerHTTPInterceptor','body','_checkMissing','enableAuthServer','_state','_config','DataLoaderService','_disableEditing','Workbook','Error\x20on\x20receiving\x20event','toggleOnline','COMPRESS_MUTATION_APPLY','then','_retryCount','JOINING','entries','textRanges','[CollaborationSession]','clear','_getSignURL','[CollaborationState]:\x20apply\x20error!','getUnitStatus$','confirm','_onJoinRoomEvent','onStateChange','saveSheetBlock','\x0aAfter:\x20','getRoom','_transformUndoredo','sheets','253569uQAsQw','ITransformService','getTypeOfUnitAdded$','UserManagerService','mutations','_syncEditingCollabCursor','joinEvent','RichTextEditingMutation','HEARTBEAT_INTERVAL','CollaborationEntity','snapshotServerUrl','action','PERMISSION_DENIED','startTime','[UniverCollaborationClientPlugin]','fetchThroughInterceptors','readAsDataURL','getCfgEnableObjInherit','HTTPService','fetchMiss','localeService','save\x20fail\x20reason\x20is\x20','createCollaborator','updateOfflineData','concatBytes','post','dispose$','[CollaborationEntity]','DisposableCollection','catch','univer-pro.collaboration-client.single-active-unit-service','_initDependencies','IMentionIOService','subscribe','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','filter','?size=','CompressMutationService','_throwTelemetryCollaborationNewChangeset','_emitMembers','reqId','_networkConditionService','leaveEvent','SNAPSHOT_URL_KEY','_getUploadFileURL','_waitCount','startsWith','CollaborationStatus','MemberService','_resendWithTimeout','_injector','objectID','_isPermissionRej','_getCurrentRevision','CONFLICT','collaboration-client.local-cache-service','CollaborationUIEventService','floor','cfgEnableObjInherit','x-univer-host','FileId','setCurrentUser','_substituteUndoStack','_socketService','CollaborationSocketService','actions','getSheetBlock','909leoHUh','SetSelectionsOperation','OfflineState','addHandlerCallback','@univerjs-pro/collaboration-client','complete','closeSession','setWaitCount','push','delay','roles','\x20-\x20','_transformRemoteChangesetByIMECache','CHANGESET_SHOULD_RETRY','members$','SheetPermissionInitController','ICollaborationSocketService','_handleRemoteChangesets','selections','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','/unit/','csAckEvent','mapDocumentTypeToUniverInstanceType','PERMISSION_REJ','DEFAULT_COLLAB_WEB_SOCKET_URL','awaiting','UNIVER_DOC','_createSocket','_onFetchMissResult','_telemetryService','saveSnapshot','allowed','name','BehaviorSubject','type','createSocket','_status$','_stopTelemetryCollaborationNewChangeset','_replaceFileID','socket\x20open.','objectType','unknown','_getCtorByUniverInstanceType','textEncoder','default','stopTime','roomInfos','session.join-failed','/rev/','collaboratorID','CollaborativeUndoRedoService','override','initWorkbookPermissionChange','symbol','SheetCollaborationEntity','loadDoc','status$','ReplaySubject','IDLE','fetchMissingChangesets','_compressMutationService','_lockTransition','objects','LIVESHARE_REQUEST_HOST','resend','JSONX','_startCollaboration','charCodeAt','PendingState','_awaitingChangeset','collaboration-client.auth.needGotoLoginAlert','interceptor','[CollaborationSessionService]','has','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','ERROR_IMAGE','IUniverInstanceService','_shouldReportTelemetry','_acknowledgeAwaitingIfReady','AwaitingState','authzUrl','_state$','/universer-api/uniscript','_transformIMECache','Disposable','_unitID','onTransformRemoteChangesetByIMECache','/universer-api/authz','622422DpevWa','delete','focused$','__Key__','hostname','toDisposable','enableCollaboration','infoRsp','IImageIoService','_members','UniverLicensePlugin','uploadFileServerUrl','text-x','error','_imageSourceCache','liveShareOperation','b64DecodeUnicode','COMMENT_UPDATE','workbook','_tryEnsureSocket','asObservable','_resendTimeout','_sendHeartbeatTimer','/resources','_sendHeartbeat','0.25.0','RxDisposable','/new_changes','_changesetReqId','_executeRemoteChangeset','waitForRoom$','packageName','_showConflictNotification','/object/','AwaitingWithPendingState','_handlerCallback','SOCKET_FAILED','&assign=','CollaborationSessionService','retryConnectingInterval','_onLocalMutation','UUID','pipe','event$','downloadEndpointUrl','_clearRetryConnectingTimer','onSyncEditingCollabCursor','_doCreateSocket','subUnitId','getLatestCsReqIdBySid','_init','JOIN_ROOM_FULL','UniverInstanceType','_revisionService','isTransformChangesetsSuccess','LIVESHARE_OPERATION','Tools','Inject','utf8ToBytes','deserializeToCombResponse','INGEST','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getAPIPrefixPath','createInstance','listRoles','_undoRedoService','status','onSendChangeset','JOIN_ROOM_FAILED','_socketMessageSubscription','call','indexOf','appendMutation','unsubscribe','JOIN','_sheetTransformSelectionsService','_updateStatus','_createInitialStateImpl','_fetchMissChangesets','_roomCreated$','_transformService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','toPrimitive','_snapshotServerService','_sender','_telemetryInfo','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','file','decorate','_scheduleCollaborationTimeoutTimer','_commentUpdate$','_memberService','getTypeOfUnitDisposed$','/block/','list','SessionStatus','_getRedoStack','userID','_singleActiveUnitService','string','_getLoginPath','version','Quantity','connection\x20error','_changesetSessionId','_unlockTransition','ErrorCode','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','updateSnapshot','ILogService','csShouldRetryEvent','apply','_socket$','EmptyMutationInfo','set','m2Prime','_acknowledgeAwaiting','FETCH_MISSING','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DEFAULT_FILE_NAME','collabSubmitChangesetUrl','sort','_onConnectionFailed','newCsEvent','message$','RETRY_CONNECTING_MAX_COUNT_KEY','HTTPRequest','CollaborationEvent','_pendingMutations','NOT_COLLAB','_snapshotService','/collaborator','_change$','_exhaustRemoteChangesetQueue','change$','Injector','socket$','collaMsg','_socket','close','emitEvent','_createInitialState','LIVESHARE_FETCH_OPERATIONS','_remoteChangesetQueue','_clearLocalCache','CommandType','updatePermissionObjEvent','getMember','getConfig','createIdentifier','close$','eventID','onCommentUpdate','UNISCRIPT_RUN','getUnitId','_scheduleCompleteTimestamp','number','deepClone','result','SyncedState','154260fVphOW','loadUnit','_collaborationTimeoutTimer','CommentService','_entities','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','CollaborationSession','/universer-api/file/{fileID}/sign-url','JOIN_ROOM_NOT_EXISTS','add','isTransformMutationsWithChangesetFailure','batchAllowed','/fetchmissing?from=','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','splice','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','next','uniscriptRunEvent','mergeOverrideWithDependencies','telemetry\x20info\x20is\x20not\x20initialized','copyFileMeta','parse','ONLINE','_waitForHeartbeatResponse','getGlobalObject','onRemoteRetry','16caxoBy','FileSource','range','session.room-full','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','getCurrentRevOfUnit','onlyLocal','LocaleService','_queuedRemoteChangesets','fromCollab','SOCKET_FAILED_RETRY','saveChangeset','AWAITING','_onOffline','PERSON','object','loadOfflineData','_unitInfo$','HEARTBEAT_TIMEOUT_KEY','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_initCloseConn','_startTelemetryCollaborationNewChangeset','from','_univerInstanceService','ICommandService','_getUndoStack','_configService','compose','_type','DEFAULT_WS_SESSION_TICKET_URL','_roomMembers','_sessionStatus$','_members$','_registerDependencies','toStringTag','SUBMIT_CHANGESET_TIMEOUT','IAuthzIoService','UNIVER_SHEET','responseType','/universer-api/snapshot','withCredentials','_sessions','&source=','replace','\x0aCurrent:\x20','LEAVE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_clearHeartbeatTimer','HEARTBEAT_TIMEOUT','_onRemoteRejected','getSnapshotAPIPath','InsertSheetMutation','getUnitOnRev','_permissionService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','readyForCollab','PSEUDO_FETCH_MISSING_RESULT','unitId','onRemoteAck','_clearRedo','onTransformSelections','socket\x20close','update','_tryReconnect','_substituteRedoStack','_applyRemoteChangeset','data','_HTTPService','isInternalEditorID','send','LOCAL_CACHE_INTERVAL_KEY','OFFLINE','stringify','failed\x20to\x20apply\x20missed\x20changesets!','transformStack\x20failed!','updateCollaborator','USERS_LEAVE','collaboration-client.config','_onRemoteACK','csRejEvent','onRemoteChangeset','_localCacheService','[PendingState]:\x20received\x20rejection.','shouldCloseConn','/-/object/list','getDrawingImageAllowSize','cmd','signUrlServerUrl','ThresholdInterceptorFactory','transformUndoRedo','every','RevisionService','CollaborationController','take','ERROR_IMAGE_TYPE','pauseCollaboration','originalMeta','isTransformMutationsWithChangesetSuccess','debug','forEach','_transformSelections','awaitingChangeset','state$','[PendingState]:\x20received\x20acknowledgement.','SYNCED','joinRsp','offline','_initMergeInterceptor','map','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','_userManagerService','commentUpdate$','executeCommand','updatePermissionPoint','UniverCollaborationPlugin','_getDownloadEndpointURL','1883465WrQpjU','_initRequestHeader','getCollabEntity','transformMutationsWithChangeset','code','getUnit','\x20in\x20_schedule.','univer-pro.collaboration-client.network-condition.service','localCacheService','_logService','_toggleOffline','reverse','defineProperty','location','_createHandler','onMutationExecutedForCollab','GLOBAL_ROOMS_CNT_EXCEEDS','toggleOffline','WorkbookEditablePermission','dispose','USERS_ENTER','97010NZDoVt','ImageSourceType','ImageUploadStatusType','synced','generateRandomId','function','/object','parseProtocolChangeset','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','now','2634618azNqNo','c2Prime','getCurrentUser','conflict','open$','_timeoutTimer','onMissedChangesetFetched','_collabSessionService','SUBMIT_CHANGESET','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformState','onLocalMutation','_onMessage','_instanceService','_getAPIPrefix','[SyncedState]:\x20received\x20acknowledgement.','uuidv4','onStarting','_transformStateCache','baseRev','getDeserializedSheetBlock','_clearScheduledTask','parseChangesetToProtocol','_submitChangeset','encode','editing\x20status\x20changed\x20to','patch','memberID','_transitionLocked','constructor','unit','loadSheet','CmdRspCode','UPDATE_PERMISSION_OBJ','8DDvQVn','_transformAndApplyRemoteChangeset','pluginName','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','CLOSE_ROOM','commentUpdateEvent','min','UnitEmbedded','transformChangesets','touchDependencies','[OfflineState]:\x20received\x20changeset.','_collaborationSessionService','FetchingMissState','_entityInit$','avatar'];_0x4f3f=function(){return _0x4b9d72;};return _0x4f3f();}let Me=class extends t['Disposable']{constructor(_0x418a3f,_0x521d99){const _0x21d749=_0x1de16c;super(),this['_univerInstanceService']=_0x418a3f,this[_0x21d749(0x2aa)]=_0x521d99,this['_init']();}['_init'](){const _0x1769cf=_0x1de16c;this['disposeWithMe'](this[_0x1769cf(0x2a7)][_0x1769cf(0x1d8)][_0x1769cf(0x15c)](()=>{const _0x21a152=_0x1769cf;var _0x5046a6;let _0xc4ddaa=this[_0x21a152(0x2a7)][_0x21a152(0x3de)](),_0x562907=(_0x5046a6=this['_configService']['getConfig'](_0x21a152(0x24d)))==null?'Univer':_0x5046a6;_0xc4ddaa instanceof t[_0x21a152(0x408)]&&(_0x562907=_0xc4ddaa[_0x21a152(0x19e)]),document['title']=_0x562907;}));}};Me=y([v(0x0,t[_0x1de16c(0x1ca)]),v(0x1,t[_0x1de16c(0x3cb)])],Me);let W=class{constructor(_0x4aa04e,_0x490be0,_0x2d30f3){const _0x41ec05=_0x1de16c;this['_configService']=_0x4aa04e,this['_httpService']=_0x490be0,this[_0x41ec05(0x14f)]=_0x2d30f3,this['init']();}[_0x1de16c(0x399)](){const _0x2515e4=_0x1de16c;this[_0x2515e4(0x367)][_0x2515e4(0x400)]({'priority':0x1,'interceptor':(_0x29264e,_0x147ba5)=>_0x147ba5(_0x29264e)[_0x2515e4(0x200)]((0x0,i['concatMap'])(async _0x3cb0ca=>{const _0x159740=_0x2515e4;let _0x3cc282=_0x3cb0ca;if(_0x3cc282['status']===0x191){if(typeof window>'u')throw Error(_0x159740(0x294));if(window[_0x159740(0x133)](this['localeService']['t'](_0x159740(0x1c4)))){let _0x2935f9=window['encodeURIComponent'](window[_0x159740(0x311)]['href']);window['location'][_0x159740(0x3eb)]=this[_0x159740(0x23a)]()+'?url='+_0x2935f9;}}return _0x3cc282;}))});}['_getLoginPath'](){const _0x5910f4=_0x1de16c;var _0x240c00;let _0x37f238=this[_0x5910f4(0x2aa)][_0x5910f4(0x26a)](T);return(_0x240c00=_0x37f238==null?void 0x0:_0x37f238[_0x5910f4(0x36a)])==null?'/universer-api/oidc/authpage':_0x240c00;}};W=y([v(0x0,t[_0x1de16c(0x3cb)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)])),v(0x2,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x297)]))],W);let G=class extends t[_0x1de16c(0x1d2)]{constructor(_0x3e5caa,_0x452ad5){const _0x40c0b2=_0x1de16c;super(),this[_0x40c0b2(0x2d3)]=_0x3e5caa,this[_0x40c0b2(0x2aa)]=_0x452ad5,g(this,_0x40c0b2(0x3b2),!0x1),this[_0x40c0b2(0x2fb)]();}[_0x1de16c(0x2fb)](){const _0x30c0d1=_0x1de16c;let _0x4b60aa=this;this[_0x30c0d1(0x3b8)](this[_0x30c0d1(0x2d3)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,c['MergeInterceptorFactory'])({'isMatch'(_0x19e05b){const _0x32f7b4=_0x30c0d1;var _0xb6adc4;if(_0x19e05b[_0x32f7b4(0x36c)]===_0x32f7b4(0x398)&&(_0xb6adc4=_0x19e05b['requestParams'])!=null&&_0xb6adc4[_0x32f7b4(0x401)]){let {objectID:_0x17405c,objectType:_0x2c1ae1}=_0x19e05b[_0x32f7b4(0x3f0)]['body']||{};if(!_0x17405c||_0x2c1ae1===void 0x0)return!0x1;let _0x203c3b=_0x4b60aa[_0x32f7b4(0x214)]()+'/'+_0x2c1ae1+_0x32f7b4(0x1f7)+_0x17405c+_0x32f7b4(0x3f1);if(_0x19e05b['url']===_0x203c3b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2fdd2f){const _0x2ee978=_0x30c0d1;var _0x3900d7;return(_0x3900d7=_0x2fdd2f[_0x2ee978(0x3f0)])==null?void 0x0:_0x3900d7[_0x2ee978(0x401)];},'mergeParamsToRequest'(_0x1e90bb,_0x2c483e){const _0xf8bc70=_0x30c0d1;let _0x36a6c7=_0x4b60aa[_0xf8bc70(0x214)]()+_0xf8bc70(0x3a7),_0x3af6e6=_0x1e90bb[_0xf8bc70(0x3ee)]((_0x2ea1f7,_0x399214)=>{const _0x16a34f=_0xf8bc70;let {unitID:_0x4a5d80,objectID:_0x33f2d0,objectType:_0x5084fe,actions:_0x13dd93}=_0x399214;return _0x2ea1f7[_0x4a5d80]||(_0x2ea1f7[_0x4a5d80]={}),_0x2ea1f7[_0x4a5d80][_0x33f2d0]||(_0x2ea1f7[_0x4a5d80][_0x33f2d0]={'objectID':_0x33f2d0,'objectType':_0x5084fe,'actions':[]}),_0x2ea1f7[_0x4a5d80][_0x33f2d0][_0x16a34f(0x17c)]['push'](..._0x13dd93),_0x2ea1f7;},{}),_0x7ce58d=[];for(let _0x2dbe26 in _0x3af6e6)for(let _0x1a8dc5 in _0x3af6e6[_0x2dbe26]){let {actions:_0x4d28d8,objectType:_0x1b8cf6}=_0x3af6e6[_0x2dbe26][_0x1a8dc5],_0x345a5f=[...new Set(_0x4d28d8)];_0x7ce58d[_0xf8bc70(0x186)]({'unitID':_0x2dbe26,'objectID':_0x1a8dc5,'objectType':_0x1b8cf6,'actions':_0x345a5f});}return new c[(_0xf8bc70(0x254))](_0xf8bc70(0x398),_0x36a6c7,{'headers':_0x2c483e[_0xf8bc70(0x36d)],'withCredentials':_0x2c483e[_0xf8bc70(0x2b8)],'responseType':_0x2c483e[_0xf8bc70(0x2b6)],'body':{'requests':_0x7ce58d}});}},{'distributeResult'(_0x332b06,_0x1b6a91){const _0x2cb50c=_0x30c0d1;let {objectActions:_0x402f9e}=_0x332b06;return _0x1b6a91[_0x2cb50c(0x2fc)](_0x26873e=>{const _0x229d24=_0x2cb50c;let {unitID:_0x3d5f69,objectID:_0x4ab380,actions:_0x174b06}=_0x26873e,_0x449753=_0x402f9e['find'](_0x1a666c=>_0x1a666c[_0x229d24(0x378)]===_0x3d5f69&&_0x1a666c[_0x229d24(0x16e)]===_0x4ab380);return{'config':_0x26873e,'result':{'actions':_0x174b06[_0x229d24(0x2fc)](_0x12f409=>_0x449753==null?void 0x0:_0x449753[_0x229d24(0x17c)][_0x229d24(0x38b)](_0x29ed1d=>_0x29ed1d[_0x229d24(0x146)]===_0x12f409))['filter'](_0x2720f8=>!!_0x2720f8),'error':_0x332b06[_0x229d24(0x1e3)]}};});}})}));}[_0x1de16c(0x214)](){const _0x3c74df=_0x1de16c;var _0x5f536d;let _0x3d107c=this[_0x3c74df(0x2aa)][_0x3c74df(0x26a)](T);return(_0x5f536d=_0x3d107c==null?void 0x0:_0x3d107c['authzUrl'])==null?'/universer-api/authz':_0x5f536d;}async['create'](_0xdf7ce4){const _0x74f464=_0x1de16c;let _0x27d3ed=this[_0x74f464(0x214)]()+'/'+_0xdf7ce4[_0x74f464(0x1a6)]+_0x74f464(0x31f);return(await this[_0x74f464(0x2d3)][_0x74f464(0x154)](_0x27d3ed,{'body':_0xdf7ce4}))[_0x74f464(0x401)]['objectID']||'';}async[_0x1de16c(0x234)](_0x3a54c8){const _0x3a13f3=_0x1de16c;let _0x26a9e4=this[_0x3a13f3(0x214)]()+_0x3a13f3(0x2e4);return(await this[_0x3a13f3(0x2d3)]['post'](_0x26a9e4,{'body':_0x3a54c8}))[_0x3a13f3(0x401)][_0x3a13f3(0x1bc)];}async[_0x1de16c(0x2ce)](_0x179a69){const _0x55deef=_0x1de16c;var _0x1bb44e;let _0x47e612=this[_0x55deef(0x214)]()+'/'+_0x179a69[_0x55deef(0x1a6)]+'/object/'+_0x179a69[_0x55deef(0x16e)],_0xa09177=await this[_0x55deef(0x2d3)][_0x55deef(0x3b4)](_0x47e612,{'body':_0x179a69});if((_0xa09177==null||(_0x1bb44e=_0xa09177[_0x55deef(0x401)])==null||(_0x1bb44e=_0x1bb44e[_0x55deef(0x1e3)])==null?void 0x0:_0x1bb44e[_0x55deef(0x308)])!==0x1)throw Error(_0x55deef(0x3c8));}async[_0x1de16c(0x19d)](_0x2f1311){const _0x2e5f39=_0x1de16c;let _0x53db53=this[_0x2e5f39(0x214)]()+'/'+_0x2f1311[_0x2e5f39(0x1a6)]+_0x2e5f39(0x1f7)+_0x2f1311['objectID']+_0x2e5f39(0x3f1);return(await this[_0x2e5f39(0x2d3)][_0x2e5f39(0x154)](_0x53db53,{'body':_0x2f1311}))[_0x2e5f39(0x401)]['actions'];}async[_0x1de16c(0x281)](_0x43afb1){const _0x332a14=_0x1de16c;let _0x49bb90=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x332a14(0x2d3)][_0x332a14(0x154)](_0x49bb90,{'body':{'requests':_0x43afb1}}))[_0x332a14(0x401)][_0x332a14(0x3fa)];}async[_0x1de16c(0x216)](_0x3e9d30){const _0x5f2f2b=_0x1de16c;let _0x3009d3=this[_0x5f2f2b(0x214)]()+'/'+_0x3e9d30[_0x5f2f2b(0x1a6)]+'/role',_0x3a3d6a=await this[_0x5f2f2b(0x2d3)]['post'](_0x3009d3,{'body':_0x3e9d30});return{'roles':_0x3a3d6a['body'][_0x5f2f2b(0x188)],'actions':_0x3a3d6a[_0x5f2f2b(0x401)][_0x5f2f2b(0x17c)]};}async[_0x1de16c(0x383)](_0xa22e83){const _0x3e6f25=_0x1de16c;let _0x44ce2e=this[_0x3e6f25(0x214)]()+'/collaborator';await this[_0x3e6f25(0x2d3)]['delete'](_0x44ce2e,{'params':{'collaboratorID':_0xa22e83[_0x3e6f25(0x1af)],'objectID':_0xa22e83['objectID'],'unitID':_0xa22e83[_0x3e6f25(0x378)]}});}async[_0x1de16c(0x2db)](_0x1ab065){const _0x4c53a8=_0x1de16c;let _0x526478=this[_0x4c53a8(0x214)]()+_0x4c53a8(0x259);await this[_0x4c53a8(0x2d3)][_0x4c53a8(0x33d)](_0x526478,{'body':_0x1ab065});}async[_0x1de16c(0x151)](_0x26e2fe){const _0x381efd=_0x1de16c;let _0x2ae48d=this[_0x381efd(0x214)]()+_0x381efd(0x259);await this[_0x381efd(0x2d3)][_0x381efd(0x154)](_0x2ae48d,{'body':_0x26e2fe});}async['listCollaborators'](_0x15012c){const _0x4272fb=_0x1de16c;var _0x210afa;let _0x4c3c03=this[_0x4272fb(0x214)]()+'/collaborator',_0x2d787b=await this[_0x4272fb(0x2d3)][_0x4272fb(0x373)](_0x4c3c03,{'params':{'objectID':_0x15012c[_0x4272fb(0x16e)],'unitID':_0x15012c[_0x4272fb(0x378)]}});return this[_0x4272fb(0x3cf)]((_0x210afa=_0x2d787b[_0x4272fb(0x401)][_0x4272fb(0x175)])==null?!0x1:_0x210afa),_0x2d787b[_0x4272fb(0x401)][_0x4272fb(0x3a2)];}async[_0x1de16c(0x3a9)](_0x318af9){const _0x5998a9=_0x1de16c;let _0x4627a6=this[_0x5998a9(0x214)]()+_0x5998a9(0x259);await this[_0x5998a9(0x2d3)][_0x5998a9(0x3b4)](_0x4627a6,{'body':_0x318af9});}[_0x1de16c(0x3cf)](_0x2410a9){this['_cfgEnableObjInherit']=_0x2410a9;}[_0x1de16c(0x14c)](){const _0xdb5a2a=_0x1de16c;return this[_0xdb5a2a(0x3b2)];}};G=y([v(0x0,(0x0,t['Inject'])(c[_0x1de16c(0x14d)])),v(0x1,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x3cb)]))],G);function Ne(_0x53ef06){const _0x2d66ba=_0x1de16c;let _0x4acf96=atob(_0x53ef06),_0x323e92=new Uint8Array(_0x4acf96[_0x2d66ba(0x3c7)]);for(let _0x10af90=0x0;_0x10af90<_0x4acf96['length'];_0x10af90++)_0x323e92[_0x10af90]=_0x4acf96[_0x2d66ba(0x1c1)](_0x10af90);return _0x323e92;}function Pe(_0x1ec8ad){const _0x4df657=_0x1de16c;let _0x174868='';for(let _0x1e83bc=0x0;_0x1e83bc<_0x1ec8ad[_0x4df657(0x3c7)];_0x1e83bc++)_0x174868+=String[_0x4df657(0x365)](_0x1ec8ad[_0x1e83bc]);return btoa(_0x174868);}function Fe(_0x455f2d,_0x3aae9e){const _0x1470ca=_0x1de16c;let _0x573f68=Ne(_0x3aae9e),_0x8a4ec0=(0x0,f[_0x1470ca(0x3e9)])(0x10);return Pe((0x0,f[_0x1470ca(0x153)])(_0x8a4ec0,(0x0,d['cbc'])(_0x573f68,_0x8a4ec0)[_0x1470ca(0x3d7)]((0x0,f[_0x1470ca(0x210)])(_0x455f2d))));}function Ie(){const _0x2b33d2=_0x1de16c;let _0x1868a3=(0x0,l[_0x2b33d2(0x28e)])()[_0x2b33d2(0x1d9)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x1868a3){let _0x1b35fb={'time':Math[_0x2b33d2(0x174)](Date['now']()/0x3e8),'domain':location[_0x2b33d2(0x1da)]};return Fe(JSON[_0x2b33d2(0x2d8)](_0x1b35fb),_0x1868a3);}}let K=class{constructor(_0x15f5c3){const _0x2588c7=_0x1de16c;this[_0x2588c7(0x367)]=_0x15f5c3,this['_initRequestHeader']();}[_0x1de16c(0x305)](){const _0x26719a=_0x1de16c;this['_httpService'][_0x26719a(0x400)]({'interceptor':(_0x1dfd5b,_0x3c5f4a)=>{const _0xd3ce52=_0x26719a;let _0x44de7d=Ie();return _0x44de7d&&_0x1dfd5b[_0xd3ce52(0x36d)][_0xd3ce52(0x248)](_0xd3ce52(0x176),_0x44de7d),_0x3c5f4a(_0x1dfd5b);}});}};K=y([v(0x0,(0x0,t['Inject'])(c['HTTPService']))],K);let q=class extends t['RxDisposable']{constructor(_0x4447e8,_0x39b3b5,_0x2f7f5f){const _0x2b24f1=_0x1de16c;super(),this[_0x2b24f1(0x30d)]=_0x4447e8,this[_0x2b24f1(0x258)]=_0x39b3b5,this[_0x2b24f1(0x2e1)]=_0x2f7f5f,g(this,_0x2b24f1(0x2a1),new i[(_0x2b24f1(0x19f))](null)),g(this,'unitInfo$',this['_unitInfo$'][_0x2b24f1(0x1ea)]());}async[_0x1de16c(0x3b5)](_0x4e57d5,_0x1bda22,_0x34476f){const _0xc8995c=_0x1de16c;this[_0xc8995c(0x2a1)][_0xc8995c(0x286)]({'unitId':_0x4e57d5,'type':_0x1bda22});let _0x5a1afb=null;switch(_0x1bda22){case t[_0xc8995c(0x20a)][_0xc8995c(0x2b5)]:_0x5a1afb=await this[_0xc8995c(0x258)][_0xc8995c(0x342)](_0x4e57d5,_0x34476f);break;case t[_0xc8995c(0x20a)][_0xc8995c(0x198)]:_0x5a1afb=await this['_snapshotService'][_0xc8995c(0x1b5)](_0x4e57d5,_0x34476f);break;default:this['_logService'][_0xc8995c(0x1e3)]('[DataLoaderService]',_0xc8995c(0x39c));break;}return _0x5a1afb;}async[_0x1de16c(0x277)](_0x1bdc57,_0x2938e9,_0x2a5398){const _0xb75861=_0x1de16c;var _0x1563cb;this[_0xb75861(0x2a1)][_0xb75861(0x286)]({'unitId':_0x1bdc57,'type':_0x2938e9,'subUnitId':_0x2a5398});let _0x17806e=0x0,_0x21b87d=await((_0x1563cb=this[_0xb75861(0x2e1)])==null?void 0x0:_0x1563cb[_0xb75861(0x2a0)](_0x1bdc57));return _0x21b87d&&(_0x21b87d[_0xb75861(0x2f5)]||_0x21b87d[_0xb75861(0x13f)][_0xb75861(0x3c7)]!==0x0)&&(_0x17806e=_0x21b87d[_0xb75861(0x3a4)]),_0x17806e===0x0&&this['_logService'][_0xb75861(0x2f2)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xb75861(0x3b5)](_0x1bdc57,_0x2938e9,_0x17806e);}};q=y([v(0x0,t[_0x1de16c(0x243)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(e['SnapshotService'])),v(0x2,(0x0,t[_0x1de16c(0x37e)])(S))],q);let J=class{constructor(_0x3c1489,_0x554d65,_0x555304){const _0x27644f=_0x1de16c;this['_httpService']=_0x3c1489,this[_0x27644f(0x2aa)]=_0x554d65,this[_0x27644f(0x2a7)]=_0x555304,g(this,_0x27644f(0x168),0x0),g(this,'_change$',new i[(_0x27644f(0x3c5))]()),g(this,_0x27644f(0x25c),this['_change$']),g(this,_0x27644f(0x1e4),new Map());}[_0x1de16c(0x185)](_0xff52a7){const _0x58ee2e=_0x1de16c;this[_0x58ee2e(0x168)]=_0xff52a7,this['_change$'][_0x58ee2e(0x286)](_0xff52a7);}[_0x1de16c(0x3ed)](_0x799307,_0x5ced72){const _0x2cb3f6=_0x1de16c;if(_0x5ced72===u['ImageSourceType'][_0x2cb3f6(0x3b6)]){let _0x4fefb1=new Image();return _0x4fefb1[_0x2cb3f6(0x3d1)]=_0x799307,_0x4fefb1;}return this[_0x2cb3f6(0x1e4)][_0x2cb3f6(0x373)](_0x799307);}['addImageSourceCache'](_0x127188,_0x5b2321,_0x573736){const _0x14f90f=_0x1de16c;_0x5b2321===u[_0x14f90f(0x31a)][_0x14f90f(0x3b6)]||_0x573736==null||this[_0x14f90f(0x1e4)][_0x14f90f(0x248)](_0x127188,_0x573736);}async['getImage'](_0x4ed21a){const _0x1b2392=_0x1de16c;try{let _0x4e3313=this[_0x1b2392(0x1a4)](this[_0x1b2392(0x130)](),''+_0x4ed21a),_0x33d28e=(await this['_httpService']['get'](_0x4e3313))[_0x1b2392(0x401)];if(_0x33d28e[_0x1b2392(0x1e3)]&&_0x33d28e[_0x1b2392(0x1e3)][_0x1b2392(0x308)]===a[_0x1b2392(0x240)]['OK']){let _0x389915=(0x0,t['resolveWithBasePath'])(_0x33d28e[_0x1b2392(0x370)],this[_0x1b2392(0x303)]());return Promise['resolve'](_0x389915);}return Promise['reject'](_0x33d28e[_0x1b2392(0x1e3)]);}catch(_0x1d44de){return Promise[_0x1b2392(0x3a1)](_0x1d44de);}}async['saveImage'](_0x13c6c6){const _0x4fd577=_0x1de16c;let _0x33b77b='';if(!u[_0x4fd577(0x3e4)][_0x4fd577(0x39f)](_0x13c6c6[_0x4fd577(0x1a0)]))return this[_0x4fd577(0x3c3)](),Promise[_0x4fd577(0x3a1)](Error(u['ImageUploadStatusType'][_0x4fd577(0x2ee)]));if(_0x13c6c6[_0x4fd577(0x372)]>(0x0,u[_0x4fd577(0x2e5)])())return this[_0x4fd577(0x3c3)](),Promise[_0x4fd577(0x3a1)](Error(u[_0x4fd577(0x31b)]['ERROR_EXCEED_SIZE']));try{let _0x53e7a7=new FormData();_0x53e7a7['append'](_0x4fd577(0x22d),_0x13c6c6);let _0x4270e1=this[_0x4fd577(0x2a7)]['getFocusedUnit'](),_0x34842b=_0x4270e1==null?void 0x0:_0x4270e1[_0x4fd577(0x270)]();if(!_0x34842b)throw Error(_0x4fd577(0x359));let _0x5936b8=this[_0x4fd577(0x167)]()+_0x4fd577(0x15f)+_0x13c6c6[_0x4fd577(0x372)]['toString']()+_0x4fd577(0x2ba)+a[_0x4fd577(0x291)][_0x4fd577(0x34c)]+_0x4fd577(0x1fb)+encodeURIComponent(_0x34842b),_0x302ec8={'body':_0x53e7a7},_0x5b0548=(await this[_0x4fd577(0x367)][_0x4fd577(0x154)](_0x5936b8,_0x302ec8))[_0x4fd577(0x401)];if(typeof _0x5b0548[_0x4fd577(0x177)]!=_0x4fd577(0x239))return this['_decreaseWaiting'](),Promise[_0x4fd577(0x3a1)](Error(u[_0x4fd577(0x31b)][_0x4fd577(0x1c9)]));_0x33b77b=_0x5b0548[_0x4fd577(0x177)];}catch{return this[_0x4fd577(0x3c3)](),Promise[_0x4fd577(0x3a1)](Error(u[_0x4fd577(0x31b)][_0x4fd577(0x1c9)]));}return new Promise((_0x41d04f,_0x33b520)=>{const _0x222396=_0x4fd577;let _0x5827a3=new FileReader();_0x5827a3[_0x222396(0x14b)](_0x13c6c6),_0x5827a3[_0x222396(0x395)]=_0x4ef3a0=>{const _0x25fe3b=_0x222396;var _0x3965a8;let _0x3b71d3=(_0x3965a8=_0x4ef3a0['target'])==null?void 0x0:_0x3965a8[_0x25fe3b(0x274)];if(_0x3b71d3==null){this[_0x25fe3b(0x3c3)](),_0x33b520(Error(u['ImageUploadStatusType']['ERROR_IMAGE']));return;}_0x41d04f({'imageId':(0x0,t[_0x25fe3b(0x31d)])(0x6),'imageSourceType':u[_0x25fe3b(0x31a)][_0x25fe3b(0x1ff)],'source':_0x33b77b,'base64Cache':_0x3b71d3,'status':u[_0x25fe3b(0x31b)]['SUCCUSS']}),this[_0x25fe3b(0x3c3)]();};});}[_0x1de16c(0x167)](){const _0x25f9b8=_0x1de16c;var _0x39d888;let _0x12b1bc=this['_configService'][_0x25f9b8(0x26a)](T);return(_0x39d888=_0x12b1bc==null?void 0x0:_0x12b1bc[_0x25f9b8(0x1e1)])==null?'/universer-api/stream/file/upload':_0x39d888;}[_0x1de16c(0x130)](){const _0x30feec=_0x1de16c;var _0xb84d8e;let _0x33b975=this['_configService'][_0x30feec(0x26a)](T);return(_0xb84d8e=_0x33b975==null?void 0x0:_0x33b975[_0x30feec(0x2e7)])==null?_0x30feec(0x27d):_0xb84d8e;}[_0x1de16c(0x303)](){const _0x14e616=_0x1de16c;var _0x44e041;let _0x547722=this['_configService'][_0x14e616(0x26a)](T);return(_0x44e041=_0x547722==null?void 0x0:_0x547722[_0x14e616(0x202)])==null?location[_0x14e616(0x3d3)]:_0x44e041;}[_0x1de16c(0x1a4)](_0x396db8,_0x55fafc){const _0x47522d=_0x1de16c;return _0x396db8[_0x47522d(0x2bb)](_0x47522d(0x3f3),_0x55fafc);}[_0x1de16c(0x3c3)](){const _0x1623bd=_0x1de16c;--this['_waitCount'],this[_0x1623bd(0x25a)][_0x1623bd(0x286)](this[_0x1623bd(0x168)]);}};J=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)])),v(0x1,t[_0x1de16c(0x3cb)]),v(0x2,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x1ca)]))],J);let Y=class{constructor(_0x5558ad,_0x3488ce){const _0x7f943f=_0x1de16c;this[_0x7f943f(0x2aa)]=_0x5558ad,this[_0x7f943f(0x2d3)]=_0x3488ce;}[_0x1de16c(0x214)](){const _0x1dbdaf=_0x1de16c;var _0x5d17a2;let _0x555631=this[_0x1dbdaf(0x2aa)][_0x1dbdaf(0x26a)](T);return(_0x5d17a2=_0x555631==null?void 0x0:_0x555631[_0x1dbdaf(0x1ce)])==null?_0x1dbdaf(0x1d5):_0x5d17a2;}async[_0x1de16c(0x234)](_0x3778d9){const _0x401c94=_0x1de16c;let _0x3698f8=this[_0x401c94(0x214)]()+_0x401c94(0x259);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x401c94(0x373)](_0x3698f8,{'params':{'objectID':_0x3778d9[_0x401c94(0x2c9)],'unitID':_0x3778d9['unitId']}}))[_0x401c94(0x401)][_0x401c94(0x3a2)][_0x401c94(0x2fc)](_0x29d44d=>({'objectId':_0x29d44d['id'],'name':_0x29d44d['subject'][_0x401c94(0x19e)],'metadata':{'icon':_0x29d44d[_0x401c94(0x35f)][_0x401c94(0x353)]},'label':_0x29d44d[_0x401c94(0x35f)][_0x401c94(0x19e)],'objectType':t['MentionType'][_0x401c94(0x29e)]})),'metadata':{},'type':t[_0x401c94(0x3bb)][_0x401c94(0x29e)]}]};}};Y=y([v(0x0,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x3cb)])),v(0x1,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)]))],Y);let X=class extends t['RxDisposable']{constructor(_0x290b75,_0x9c5691,_0x5a6769,_0x56d680,_0x357b2d){const _0x1af5fe=_0x1de16c;super(),this[_0x1af5fe(0x16d)]=_0x290b75,this[_0x1af5fe(0x2a7)]=_0x9c5691,this['_permissionService']=_0x5a6769,this[_0x1af5fe(0x350)]=_0x56d680,this[_0x1af5fe(0x3f4)]=_0x357b2d,this['_initUnitPermissionChange'](),this[_0x1af5fe(0x2a4)]();}[_0x1de16c(0x2a4)](){const _0x42eaf9=_0x1de16c;let _0x2fb33d=async _0x2ea2cc=>{const _0x55d5f6=_0x3896;(await this[_0x55d5f6(0x350)][_0x55d5f6(0x3e6)](_0x2ea2cc))[_0x55d5f6(0x201)][_0x55d5f6(0x200)]((0x0,s['filter'])(_0x2ffecb=>_0x2ffecb[_0x55d5f6(0x26d)]===e[_0x55d5f6(0x255)][_0x55d5f6(0x3fe)]),(0x0,s[_0x55d5f6(0x3ba)])(this[_0x55d5f6(0x155)]))[_0x55d5f6(0x15c)](_0x55119a=>{const _0x4c4380=_0x55d5f6;let {reason:_0x273415}=_0x55119a[_0x4c4380(0x2d2)];this['_collaborationUIEventService'][_0x4c4380(0x262)]({'id':_0x4c4380(0x349),'data':_0x273415}),this[_0x4c4380(0x2c5)][_0x4c4380(0x301)](new r[(_0x4c4380(0x316))](_0x2ea2cc)['id'],!0x1),this[_0x4c4380(0x350)][_0x4c4380(0x184)](_0x2ea2cc);});};(0x0,i[_0x42eaf9(0x391)])(this['_univerInstanceService'][_0x42eaf9(0x13d)](t[_0x42eaf9(0x20a)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x42eaf9(0x13d)](t[_0x42eaf9(0x20a)][_0x42eaf9(0x198)]))[_0x42eaf9(0x200)]((0x0,s[_0x42eaf9(0x2fc)])(_0x7630f9=>_0x7630f9[_0x42eaf9(0x341)][_0x42eaf9(0x270)]()),(0x0,s[_0x42eaf9(0x15e)])(_0x3467c8=>!(0x0,t[_0x42eaf9(0x2d4)])(_0x3467c8)),(0x0,s['takeUntil'])(this[_0x42eaf9(0x155)]))[_0x42eaf9(0x15c)](_0x2df618=>{_0x2fb33d(_0x2df618);});}['_initUnitPermissionChange'](){const _0x1280af=_0x1de16c;let _0x160efa=async _0x56b370=>{const _0x82923=_0x3896;let _0x5277cb=await this[_0x82923(0x350)][_0x82923(0x3e6)](_0x56b370),_0x417eab=this[_0x82923(0x16d)][_0x82923(0x373)](r[_0x82923(0x18d)]);_0x5277cb['event$'][_0x82923(0x200)]((0x0,s[_0x82923(0x15e)])(_0x557124=>_0x557124[_0x82923(0x26d)]===e[_0x82923(0x255)][_0x82923(0x344)]),(0x0,s[_0x82923(0x3ba)])(this[_0x82923(0x155)]))['subscribe'](_0x2a45e2=>{const _0x37070a=_0x82923;let {objectId:_0x19872e}=_0x2a45e2[_0x37070a(0x2d2)];_0x19872e===_0x56b370?_0x417eab[_0x37070a(0x1b2)](_0x56b370):_0x417eab[_0x37070a(0x377)](_0x56b370,_0x19872e);});};(0x0,i[_0x1280af(0x391)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType']['UNIVER_SHEET']))[_0x1280af(0x200)]((0x0,s[_0x1280af(0x2fc)])(_0x30a179=>_0x30a179[_0x1280af(0x341)]['getUnitId']()),(0x0,s[_0x1280af(0x15e)])(_0x46f2c4=>!(0x0,t[_0x1280af(0x2d4)])(_0x46f2c4)),(0x0,s[_0x1280af(0x3ba)])(this['dispose$']))[_0x1280af(0x15c)](_0x29327b=>{_0x160efa(_0x29327b);});}};X=y([v(0x0,(0x0,t['Inject'])(t[_0x1de16c(0x25d)])),v(0x1,t[_0x1de16c(0x1ca)]),v(0x2,t[_0x1de16c(0x3e7)]),v(0x3,(0x0,t['Inject'])(H)),v(0x4,(0x0,t[_0x1de16c(0x20f)])(_))],X);let Z=class{constructor(_0x29f3ef,_0x37c022){const _0x49af95=_0x1de16c;this['_configService']=_0x29f3ef,this[_0x49af95(0x367)]=_0x37c022;}async[_0x1de16c(0x2c4)](_0x38e878,_0x2c8f38){const _0x2a7b81=_0x1de16c;var _0x512277;let {unitID:_0xb3335f,type:_0x1a2e1c,revision:_0x5da00d=0x0}=_0x2c8f38,_0x3bf189=this[_0x2a7b81(0x2c2)]()+'/'+_0x1a2e1c+_0x2a7b81(0x192)+_0xb3335f+_0x2a7b81(0x1ae)+_0x5da00d,_0x438a95=(await this['_httpService']['get'](_0x3bf189))[_0x2a7b81(0x401)],_0x1f1357=(_0x512277=_0x438a95['snapshot'])==null?void 0x0:_0x512277[_0x2a7b81(0x1e8)];if(_0x1f1357){let _0x4790f9=_0x1f1357==null?void 0x0:_0x1f1357[_0x2a7b81(0x2f0)];_0x1f1357[_0x2a7b81(0x2f0)]=e[_0x2a7b81(0x1a9)][_0x2a7b81(0x33b)]((0x0,e[_0x2a7b81(0x1e6)])(_0x4790f9)),Object[_0x2a7b81(0x12c)](_0x1f1357[_0x2a7b81(0x13a)])[_0x2a7b81(0x2f3)](([,_0x3f3be2])=>{const _0x246bc6=_0x2a7b81;let _0x23f490=_0x3f3be2[_0x246bc6(0x2f0)];_0x3f3be2[_0x246bc6(0x2f0)]=e[_0x246bc6(0x1a9)]['encode']((0x0,e['b64DecodeUnicode'])(_0x23f490));});}return _0x438a95;}async[_0x1de16c(0x17d)](_0x29c1cd,_0x524b18){const _0x1ad95d=_0x1de16c;let {unitID:_0x5a82c6,type:_0x5cab7b,blockID:_0x471dcd}=_0x524b18,_0x1ecb98=this[_0x1ad95d(0x331)]()+'/'+_0x5cab7b+'/unit/'+_0x5a82c6+'/block/'+_0x471dcd;return(await this['_httpService'][_0x1ad95d(0x373)](_0x1ecb98))[_0x1ad95d(0x401)];}async[_0x1de16c(0x337)](_0x4b3528,_0x4e7156){const _0x2c2238=_0x1de16c;let {unitID:_0x2d9b7f,type:_0x386e3e,blockID:_0x471b85}=_0x4e7156,_0x484c46=this[_0x2c2238(0x331)]()+_0x2c2238(0x233)+_0x386e3e+_0x2c2238(0x192)+_0x2d9b7f+'/block/'+_0x471b85;return(await this[_0x2c2238(0x367)][_0x2c2238(0x373)](_0x484c46))[_0x2c2238(0x401)];}async[_0x1de16c(0x1b9)](_0x31ed54,_0x244fe4){const _0x32bc8f=_0x1de16c;let {unitID:_0x5e7636,type:_0x47ec18,from:_0x4376f1,to:_0x57ada5}=_0x244fe4,_0x3f4607=this[_0x32bc8f(0x331)]()+'/'+_0x47ec18+'/unit/'+_0x5e7636+_0x32bc8f(0x282)+_0x4376f1+'&to='+_0x57ada5;return(await this['_httpService'][_0x32bc8f(0x373)](_0x3f4607))['body'];}[_0x1de16c(0x2c2)](){const _0x2991a7=_0x1de16c;var _0x309140;return(_0x309140=this[_0x2991a7(0x2aa)][_0x2991a7(0x26a)](_0x2991a7(0x166)))==null?this[_0x2991a7(0x331)]():_0x309140;}[_0x1de16c(0x331)](){const _0x5a4be8=_0x1de16c;var _0xe2cd2;let _0x6c95a8=this['_configService'][_0x5a4be8(0x26a)](T);return(_0xe2cd2=_0x6c95a8==null?void 0x0:_0x6c95a8[_0x5a4be8(0x145)])==null?_0x5a4be8(0x2b7):_0xe2cd2;}async[_0x1de16c(0x3d9)](_0x219be6,_0x53cfc8){const _0x28fdb9=_0x1de16c;let _0x447ab3='/universer-api/snapshot/'+_0x53cfc8[_0x28fdb9(0x1a0)]+_0x28fdb9(0x192)+_0x53cfc8[_0x28fdb9(0x378)]+_0x28fdb9(0x1ed);return(await this[_0x28fdb9(0x367)][_0x28fdb9(0x373)](_0x447ab3,{'params':{'resourceId':JSON[_0x28fdb9(0x2d8)](_0x53cfc8[_0x28fdb9(0x362)])}}))[_0x28fdb9(0x401)];}[_0x1de16c(0x19c)](){const _0x649aa6=_0x1de16c;throw Error(_0x649aa6(0x22c));}[_0x1de16c(0x242)](){const _0x507c64=_0x1de16c;throw Error(_0x507c64(0x22c));}[_0x1de16c(0x136)](){const _0x29c764=_0x1de16c;throw Error(_0x29c764(0x22c));}[_0x1de16c(0x29b)](){const _0x46094d=_0x1de16c;throw Error(_0x46094d(0x22c));}[_0x1de16c(0x28a)](){const _0x2d5ea1=_0x1de16c;throw Error(_0x2d5ea1(0x22c));}[_0x1de16c(0x207)](){const _0x23b0fd=_0x1de16c;throw Error(_0x23b0fd(0x22c));}};Z=y([v(0x0,t[_0x1de16c(0x3cb)]),v(0x1,(0x0,t[_0x1de16c(0x20f)])(c[_0x1de16c(0x14d)]))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x1c1f8b,_0x45085e,_0x1f8ef8,_0x2d9161,_0x305b5c){const _0x2377f0=_0x1de16c;super(_0x1c1f8b,_0x45085e,_0x1f8ef8),this['_transformService']=_0x2d9161,this[_0x2377f0(0x30d)]=_0x305b5c;}['transformUndoRedo'](_0x2c21e6,_0x2732b5){const _0x3b326c=_0x1de16c;let _0x89aa77=this[_0x3b326c(0x2a9)](_0x2c21e6);if(_0x89aa77)try{let _0x51a58b=this[_0x3b326c(0x3e8)](_0x89aa77,_0x2732b5);this[_0x3b326c(0x179)](_0x2c21e6,_0x51a58b);}catch(_0x330c0c){this[_0x3b326c(0x30d)]['error'](_0x3b326c(0x35b),_0x330c0c),this[_0x3b326c(0x389)](_0x2c21e6);}let _0x429ad0=this['_getRedoStack'](_0x2c21e6);if(_0x429ad0)try{let _0x16c1c9=this[_0x3b326c(0x3e8)](_0x429ad0,_0x2732b5);this[_0x3b326c(0x2d0)](_0x2c21e6,_0x16c1c9);}catch(_0x5994b8){this['_logService'][_0x3b326c(0x1e3)](_0x5994b8),this[_0x3b326c(0x2cb)](_0x2c21e6);}}[_0x1de16c(0x389)](_0x3a2f78){const _0x152f21=_0x1de16c;let _0x20edaa=this[_0x152f21(0x2a9)](_0x3a2f78);_0x20edaa&&(_0x20edaa['length']=0x0,this['_updateStatus']());}[_0x1de16c(0x2cb)](_0x5011d2){const _0x406c75=_0x1de16c;let _0x442ee2=this[_0x406c75(0x236)](_0x5011d2);_0x442ee2&&(_0x442ee2['length']=0x0,this[_0x406c75(0x222)]());}['_substituteUndoStack'](_0x568944,_0x28d381){const _0x444eea=_0x1de16c;this['_undoStacks'][_0x444eea(0x248)](_0x568944,_0x28d381),this['_updateStatus']();}['_substituteRedoStack'](_0x21bc79,_0x7c58ad){const _0xe15f9d=_0x1de16c;this['_redoStacks'][_0xe15f9d(0x248)](_0x21bc79,_0x7c58ad),this[_0xe15f9d(0x222)]();}['_transformStack'](_0xba5873,_0x17a590){const _0x4354e2=_0x1de16c;let _0x19cfc0=[],_0x2d2327=_0x17a590,_0xe93503=_0x17a590;for(let _0x2ba8cb=_0xba5873[_0x4354e2(0x3c7)]-0x1;_0x2ba8cb>=0x0;_0x2ba8cb--){let {unitID:_0x10faa8,undoMutations:_0x4fb8c7,redoMutations:_0x215636}=_0xba5873[_0x2ba8cb],_0x54cf07=this[_0x4354e2(0x226)]['transformMutationsWithChangeset'](_0x2d2327,_0x4fb8c7),_0x46780d=this[_0x4354e2(0x226)][_0x4354e2(0x307)](_0xe93503,_0x215636);if((0x0,e[_0x4354e2(0x280)])(_0x54cf07)||(0x0,e[_0x4354e2(0x280)])(_0x46780d)){this[_0x4354e2(0x30d)]['error'](_0x4354e2(0x35b),_0x4354e2(0x2da),_0x54cf07,_0x46780d);break;}_0x2d2327=_0x54cf07[_0x4354e2(0x38e)],_0xe93503=_0x46780d[_0x4354e2(0x38e)],_0x19cfc0[_0x4354e2(0x186)]({'unitID':_0x10faa8,'undoMutations':_0x54cf07['m2Prime'],'redoMutations':_0x46780d[_0x4354e2(0x249)]});}return _0x19cfc0[_0x4354e2(0x30f)]();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t[_0x1de16c(0x2a8)]),v(0x2,t[_0x1de16c(0x3bd)]),v(0x3,e[_0x1de16c(0x13c)]),v(0x4,t[_0x1de16c(0x243)])],Q);let $=class extends t['Plugin']{constructor(_0x3d804d={},_0x5920d9,_0x245574,_0x263dfa){const _0x2327f1=_0x1de16c;super(),this[_0x2327f1(0x405)]=_0x3d804d,this[_0x2327f1(0x30d)]=_0x5920d9,this[_0x2327f1(0x16d)]=_0x245574,this['_configService']=_0x263dfa;let {..._0x1d95eb}=(0x0,t[_0x2327f1(0x391)])({},de,_0x3d804d);if(!_0x1d95eb['socketService'])throw Error(_0x2327f1(0x2a3));this[_0x2327f1(0x405)]=_0x1d95eb,this[_0x2327f1(0x2aa)]['setConfig'](T,_0x1d95eb);}[_0x1de16c(0x334)](){const _0x3eb148=_0x1de16c;this[_0x3eb148(0x2b1)](),this[_0x3eb148(0x15a)]();}[_0x1de16c(0x2b1)](){const _0x1b7024=_0x1de16c;var _0x1bc7a2,_0x1d219e;this[_0x1b7024(0x16d)][_0x1b7024(0x1c7)](t[_0x1b7024(0x374)])&&this['_logService'][_0x1b7024(0x1e3)](_0x1b7024(0x149),_0x1b7024(0x2c6));let _0x3e5a3c=(0x0,t[_0x1b7024(0x288)])([[t[_0x1b7024(0x374)],{'useClass':Q}],[H],[b],[C],[W],[K],[ie],[X],[_],[q],[B,{'useClass':this[_0x1b7024(0x405)]['socketService']}],[e['ISnapshotServerService'],{'useClass':Z}],[t[_0x1b7024(0x2b4)],{'useClass':G}],[u[_0x1b7024(0x1de)],{'useClass':J}],[t[_0x1b7024(0x15b)],{'useClass':Y}],[U],[Me]],(_0x1bc7a2=this[_0x1b7024(0x405)])==null?void 0x0:_0x1bc7a2[_0x1b7024(0x1b1)]);if(!((_0x1d219e=this[_0x1b7024(0x405)])!=null&&_0x1d219e['enableSingleActiveInstanceLock'])){let _0x1630ef=_0x3e5a3c[_0x1b7024(0x3fc)](([_0x11c30b])=>_0x11c30b===w);_0x1630ef!==-0x1&&_0x3e5a3c[_0x1b7024(0x284)](_0x1630ef,0x1);}(0x0,t[_0x1b7024(0x37f)])(this[_0x1b7024(0x16d)],_0x3e5a3c);}[_0x1de16c(0x15a)](){const _0x417d7e=_0x1de16c;var _0x17e78e,_0x373a91;if(this[_0x417d7e(0x16d)][_0x417d7e(0x373)](c['HTTPService'])[_0x417d7e(0x400)]({'priority':0x14,'interceptor':(0x0,c[_0x417d7e(0x2e8)])({'maxParallel':0x6})}),!((_0x17e78e=this[_0x417d7e(0x405)])!=null&&_0x17e78e['enableOfflineEditing'])){var _0x24ad6e;(_0x24ad6e=this[_0x417d7e(0x16d)][_0x417d7e(0x373)](S,t[_0x417d7e(0x23c)][_0x417d7e(0x39b)]))==null||_0x24ad6e['disableLocalCache']();}(_0x373a91=this[_0x417d7e(0x405)])!=null&&_0x373a91[_0x417d7e(0x403)]&&(0x0,t[_0x417d7e(0x34e)])(this[_0x417d7e(0x16d)],[[W]]),(0x0,t['touchDependencies'])(this[_0x417d7e(0x16d)],[[K],[U],[X]]);}};g($,_0x1de16c(0x347),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),g($,_0x1de16c(0x1f5),Ae),g($,_0x1de16c(0x23b),je),$=y([(0x0,t[_0x1de16c(0x371)])(l[_0x1de16c(0x1e0)],e[_0x1de16c(0x302)],c['UniverNetworkPlugin']),v(0x1,t[_0x1de16c(0x243)]),v(0x2,(0x0,t[_0x1de16c(0x20f)])(t[_0x1de16c(0x25d)])),v(0x3,t['IConfigService'])],$),Object[_0x1de16c(0x310)](exports,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x1cd),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x1de16c(0x1f8),{'enumerable':!0x0,'get':function(){return N;}}),exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=T,Object[_0x1de16c(0x310)](exports,_0x1de16c(0x2ec),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x144),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x382),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x27c),{'enumerable':!0x0,'get':function(){return x;}}),Object['defineProperty'](exports,_0x1de16c(0x1fc),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x1de16c(0x17b),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x1de16c(0x16a)]=Se,exports[_0x1de16c(0x3d6)]=re,exports[_0x1de16c(0x173)]=_,Object[_0x1de16c(0x310)](exports,_0x1de16c(0x1b0),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x1de16c(0x279)]=ie,Object[_0x1de16c(0x310)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x1de16c(0x196)]=p,exports[_0x1de16c(0x3ac)]=_0x1de16c(0x1d0),exports[_0x1de16c(0x2ad)]=_0x1de16c(0x3af),Object['defineProperty'](exports,_0x1de16c(0x406),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x1de16c(0x310)](exports,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x351),{'enumerable':!0x0,'get':function(){return I;}}),exports['HEARTBEAT_INTERVAL_KEY']=_0x1de16c(0x143),exports[_0x1de16c(0x2a2)]=_0x1de16c(0x2c0),exports[_0x1de16c(0x18e)]=B,exports['ILocalCacheService']=S,exports['INetworkConditionService']=Ee,exports['ISingleActiveUnitService']=w,exports[_0x1de16c(0x35d)]=0x3e8,exports[_0x1de16c(0x2d6)]=_0x1de16c(0x35d),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x16b),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x1de16c(0x310)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x180),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x1de16c(0x1c2),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x1de16c(0x15d)]=_0x1de16c(0x227),exports[_0x1de16c(0x253)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x1de16c(0x235)]=oe,Object['defineProperty'](exports,_0x1de16c(0x1b4),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x1de16c(0x310)](exports,_0x1de16c(0x397),{'enumerable':!0x0,'get':function(){return C;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x1de16c(0x275),{'enumerable':!0x0,'get':function(){return A;}}),exports['UnitStatus']=ue,Object['defineProperty'](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x1de16c(0x211)]=De,exports['getLocalCacheKey']=ce,exports['serializeCombRequest']=Oe;
|