@univerjs-pro/collaboration-client 0.1.13 → 0.1.16

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1e47ba=_0x55a2;(function(_0x18e67f,_0x3e9248){const _0x1ee9ff=_0x55a2,_0x11d6ab=_0x18e67f();while(!![]){try{const _0x161524=parseInt(_0x1ee9ff(0x28a))/0x1+parseInt(_0x1ee9ff(0x35f))/0x2+-parseInt(_0x1ee9ff(0x147))/0x3+-parseInt(_0x1ee9ff(0x442))/0x4*(-parseInt(_0x1ee9ff(0x12d))/0x5)+parseInt(_0x1ee9ff(0x16b))/0x6+parseInt(_0x1ee9ff(0x47c))/0x7+-parseInt(_0x1ee9ff(0x267))/0x8*(parseInt(_0x1ee9ff(0x29e))/0x9);if(_0x161524===_0x3e9248)break;else _0x11d6ab['push'](_0x11d6ab['shift']());}catch(_0x20d5e0){_0x11d6ab['push'](_0x11d6ab['shift']());}}}(_0x32f0,0x89eaa));var wt=Object[_0x1e47ba(0x428)],Ut=(_0x2641ea,_0x552391,_0x22a720)=>_0x552391 in _0x2641ea?wt(_0x2641ea,_0x552391,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x22a720}):_0x2641ea[_0x552391]=_0x22a720,d=(_0x36b062,_0x5041da,_0x1e1dc8)=>(Ut(_0x36b062,typeof _0x5041da!=_0x1e47ba(0x18a)?_0x5041da+'':_0x5041da,_0x1e1dc8),_0x1e1dc8);Object[_0x1e47ba(0x428)](exports,Symbol['toStringTag'],{'value':_0x1e47ba(0x1e3)});const a=require(_0x1e47ba(0x2f5)),E=require('@univerjs/sheets'),ce=require(_0x1e47ba(0x28f)),U=require(_0x1e47ba(0x17d)),u=require(_0x1e47ba(0x3cb)),h=require(_0x1e47ba(0x2d7)),v=require('rxjs'),T=require(_0x1e47ba(0x2eb)),w=require(_0x1e47ba(0x1fe)),M=require(_0x1e47ba(0x3ef)),P=require(_0x1e47ba(0x45b)),Ke=require(_0x1e47ba(0x168)),He=require(_0x1e47ba(0x236)),R=require(_0x1e47ba(0x26f)),ae=require(_0x1e47ba(0x156)),at=require('@wendellhu/redi/react-bindings'),L=require('react'),Pt=require(_0x1e47ba(0x438)),kt=require(_0x1e47ba(0x218));var ct=(_0x5748a0=>(_0x5748a0[_0x5748a0[_0x1e47ba(0x2ea)]=0x0]=_0x1e47ba(0x2ea),_0x5748a0[_0x5748a0['OK']=0x1]='OK',_0x5748a0[_0x5748a0[_0x1e47ba(0x1c6)]=0x2]=_0x1e47ba(0x1c6),_0x5748a0[_0x5748a0['PERMISSION_DENIED']=0x3]=_0x1e47ba(0x351),_0x5748a0[_0x5748a0[_0x1e47ba(0x295)]=0x4]=_0x1e47ba(0x295),_0x5748a0[_0x5748a0['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x5748a0[_0x5748a0[_0x1e47ba(0x1ca)]=0x6]='ALREADY_EXISTS',_0x5748a0[_0x5748a0[_0x1e47ba(0x3fc)]=0x7]=_0x1e47ba(0x3fc),_0x5748a0[_0x5748a0[_0x1e47ba(0x3d5)]=0x8]=_0x1e47ba(0x3d5),_0x5748a0[_0x5748a0[_0x1e47ba(0x3b7)]=0x1389]=_0x1e47ba(0x3b7),_0x5748a0[_0x5748a0[_0x1e47ba(0x314)]=0x1771]=_0x1e47ba(0x314),_0x5748a0[_0x5748a0[_0x1e47ba(0x201)]=0x1b59]=_0x1e47ba(0x201),_0x5748a0[_0x5748a0['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x1e47ba(0x323),_0x5748a0[_0x5748a0[_0x1e47ba(0x2e3)]=0x1b5b]=_0x1e47ba(0x2e3),_0x5748a0[_0x5748a0[_0x1e47ba(0x3d4)]=0x1b5c]=_0x1e47ba(0x3d4),_0x5748a0[_0x5748a0[_0x1e47ba(0x278)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x5748a0[_0x5748a0[_0x1e47ba(0x2b7)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x5748a0[_0x5748a0['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x1e47ba(0x3e0),_0x5748a0[_0x5748a0[_0x1e47ba(0x42a)]=0x232b]=_0x1e47ba(0x42a),_0x5748a0[_0x5748a0[_0x1e47ba(0x379)]=0x232c]=_0x1e47ba(0x379),_0x5748a0[_0x5748a0['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1e47ba(0x2b0),_0x5748a0[_0x5748a0[_0x1e47ba(0x217)]=-0x1]=_0x1e47ba(0x217),_0x5748a0))(ct||{}),k=(_0x48285a=>(_0x48285a[_0x48285a[_0x1e47ba(0x2f3)]=0x0]='UNIVER_UNKNOWN',_0x48285a[_0x48285a[_0x1e47ba(0x48c)]=0x1]=_0x1e47ba(0x48c),_0x48285a[_0x48285a[_0x1e47ba(0x342)]=0x2]=_0x1e47ba(0x342),_0x48285a[_0x48285a[_0x1e47ba(0x19d)]=0x3]='UNIVER_SLIDE',_0x48285a[_0x48285a[_0x1e47ba(0x217)]=-0x1]=_0x1e47ba(0x217),_0x48285a))(k||{}),b=(_0x56ec28=>(_0x56ec28[_0x56ec28[_0x1e47ba(0x2be)]=0x0]=_0x1e47ba(0x2be),_0x56ec28[_0x56ec28['HELLO']=0x1]=_0x1e47ba(0x3a0),_0x56ec28[_0x56ec28[_0x1e47ba(0x368)]=0x2]=_0x1e47ba(0x368),_0x56ec28[_0x56ec28[_0x1e47ba(0x226)]=0x3]=_0x1e47ba(0x226),_0x56ec28[_0x56ec28[_0x1e47ba(0x12b)]=0x4]=_0x1e47ba(0x12b),_0x56ec28[_0x56ec28[_0x1e47ba(0x44d)]=0x5]='HEARTBEAT',_0x56ec28[_0x56ec28[_0x1e47ba(0x24e)]=0x6]=_0x1e47ba(0x24e),_0x56ec28[_0x56ec28['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x56ec28))(b||{}),xe=(_0x3d7990=>(_0x3d7990[_0x3d7990['UNKNOWN_CODE']=0x0]=_0x1e47ba(0x431),_0x3d7990[_0x3d7990['OK']=0x1]='OK',_0x3d7990[_0x3d7990[_0x1e47ba(0x244)]=0x2]=_0x1e47ba(0x244),_0x3d7990[_0x3d7990['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3d7990))(xe||{}),jt=(_0x49b995,_0x47f8bb,_0x47f43f,_0x2dd794)=>{const _0x4f7b1b=_0x1e47ba;for(var _0x25f1d6=_0x47f8bb,_0x2a1cf1=_0x49b995[_0x4f7b1b(0x3fb)]-0x1,_0x1e1ba6;_0x2a1cf1>=0x0;_0x2a1cf1--)(_0x1e1ba6=_0x49b995[_0x2a1cf1])&&(_0x25f1d6=_0x1e1ba6(_0x25f1d6)||_0x25f1d6);return _0x25f1d6;},$t=(_0x1eed42,_0x5e4903)=>(_0x3c145d,_0x3b7969)=>_0x5e4903(_0x3c145d,_0x3b7969,_0x1eed42);let G=class extends a[_0x1e47ba(0x152)]{constructor(_0x72d278){const _0x5a26c9=_0x1e47ba;super(),d(this,_0x5a26c9(0xfe),new Map()),d(this,_0x5a26c9(0x2ae),null),(this[_0x5a26c9(0x464)]=_0x72d278,this['disposeWithMe'](a[_0x5a26c9(0x251)](v[_0x5a26c9(0x19a)](this[_0x5a26c9(0x464)]['getTypeOfUnitDisposed$'](a[_0x5a26c9(0x12f)][_0x5a26c9(0x342)])['pipe'](T[_0x5a26c9(0x290)](_0x55c194=>_0x55c194[_0x5a26c9(0x231)]())),this[_0x5a26c9(0x464)][_0x5a26c9(0x27d)](a[_0x5a26c9(0x12f)]['UNIVER_DOC'])[_0x5a26c9(0x1cb)](T[_0x5a26c9(0x290)](_0x19aa5b=>_0x19aa5b[_0x5a26c9(0x231)]())),this[_0x5a26c9(0x464)][_0x5a26c9(0x27d)](a[_0x5a26c9(0x12f)][_0x5a26c9(0x19d)])['pipe'](T[_0x5a26c9(0x290)](_0x232719=>_0x232719[_0x5a26c9(0x231)]())))[_0x5a26c9(0x319)](_0x47959c=>this[_0x5a26c9(0x2c2)](_0x47959c)))));}[_0x1e47ba(0xf2)](_0x19bbc3){const _0x2d3125=_0x1e47ba;this[_0x2d3125(0x2ae)]=_0x19bbc3;}['getCurrentUser'](){return this['_currentUser'];}['updateMember'](_0x34cbb4,_0x4ef5e3){const _0x5f3a90=_0x1e47ba;let _0x164ecd=this[_0x5f3a90(0xfe)][_0x5f3a90(0x367)](_0x34cbb4);_0x164ecd||(_0x164ecd=new Ht(),this[_0x5f3a90(0xfe)][_0x5f3a90(0x204)](_0x34cbb4,_0x164ecd)),_0x164ecd[_0x5f3a90(0x3c6)](_0x4ef5e3);}[_0x1e47ba(0x1ea)](_0x292faa,_0x20033b){const _0x5bba08=_0x1e47ba,_0x3902ce=this['_roomMembers'][_0x5bba08(0x367)](_0x292faa);_0x3902ce&&_0x3902ce[_0x5bba08(0x1ea)](_0x20033b);}['getRoom'](_0x525e6c){const _0x4a7688=_0x1e47ba;return this[_0x4a7688(0xfe)][_0x4a7688(0x367)](_0x525e6c);}[_0x1e47ba(0x3d3)](_0x253f1d,_0x3499c2){const _0x59ac98=_0x1e47ba,_0x211088=this[_0x59ac98(0xfe)][_0x59ac98(0x367)](_0x253f1d);if(_0x211088)return _0x211088[_0x59ac98(0x3d3)](_0x3499c2);}[_0x1e47ba(0x2c2)](_0x182451){const _0x32eebf=_0x1e47ba,_0x11a44b=this[_0x32eebf(0xfe)][_0x32eebf(0x367)](_0x182451);_0x11a44b&&(_0x11a44b[_0x32eebf(0x36c)](),this[_0x32eebf(0xfe)]['delete'](_0x182451));}['dispose'](){const _0x2a0280=_0x1e47ba;this[_0x2a0280(0xfe)][_0x2a0280(0x1e6)](_0x3f3e12=>_0x3f3e12['dispose']()),this[_0x2a0280(0xfe)][_0x2a0280(0x465)]();}};G=jt([$t(0x0,a[_0x1e47ba(0x118)])],G);class Ht extends a[_0x1e47ba(0x152)]{constructor(){const _0x3d54f1=_0x1e47ba;super(...arguments),d(this,_0x3d54f1(0x29c),new Map());}[_0x1e47ba(0x36c)](){const _0x55b28e=_0x1e47ba;this[_0x55b28e(0x29c)]['clear']();}[_0x1e47ba(0x3c6)](_0x4b8ee7){const _0x3d414c=_0x1e47ba;this[_0x3d414c(0x29c)][_0x3d414c(0x204)](_0x4b8ee7[_0x3d414c(0x48d)],_0x4b8ee7);}[_0x1e47ba(0x1ea)](_0x5d6fc0){this['_members']['delete'](_0x5d6fc0);}[_0x1e47ba(0x3d3)](_0xaafd8e){const _0x4f54bb=_0x1e47ba;return this[_0x4f54bb(0x29c)][_0x4f54bb(0x367)](_0xaafd8e);}}function lt(_0x14177d){const _0x26581f=_0x1e47ba;var _0x25bb20,_0x19c820,_0x5bbc11,_0x5c4f16;const _0x367890=_0x14177d[_0x26581f(0x1b7)],_0x5d2cc0=JSON[_0x26581f(0x337)](_0x367890);switch(_0x5d2cc0[_0x26581f(0x39d)]){case b[_0x26581f(0x44d)]:case b[_0x26581f(0x3a0)]:{const _0x4ac599=_0x5d2cc0[_0x26581f(0x1dd)];return{..._0x5d2cc0,'data':_0x4ac599,'cmd':_0x5d2cc0[_0x26581f(0x39d)]};}case b[_0x26581f(0x368)]:{const _0x4b35e9=_0x5d2cc0[_0x26581f(0x2cc)];return{..._0x5d2cc0,'data':_0x4b35e9,'cmd':_0x5d2cc0['cmd']};}case b[_0x26581f(0x24e)]:{const _0x2f2f14=_0x5d2cc0[_0x26581f(0x270)];switch(_0x2f2f14[_0x26581f(0x2a0)]){case u['CollaborationEvent'][_0x26581f(0x3f1)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x25bb20=_0x2f2f14[_0x26581f(0x1db)])==null?void 0x0:_0x25bb20['cs']},'cmd':_0x5d2cc0['cmd']};case u['CollaborationEvent'][_0x26581f(0x11f)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x19c820=_0x2f2f14[_0x26581f(0x260)])==null?void 0x0:_0x19c820['cs']},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x45f)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x5bbc11=_0x2f2f14[_0x26581f(0x26b)])==null?void 0x0:_0x5bbc11['cs']},'cmd':_0x5d2cc0['cmd']};case u[_0x26581f(0x27c)][_0x26581f(0x466)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':(_0x5c4f16=_0x2f2f14[_0x26581f(0x21e)])==null?void 0x0:_0x5c4f16['cs']},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x1c4)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x394)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)]['USERS_ENTER']:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x44a)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x1af)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x245)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x157)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x3a9)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u['CollaborationEvent'][_0x26581f(0x221)]:case u[_0x26581f(0x27c)]['LIVESHARE_OPERATION']:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x3c1)]},'cmd':_0x5d2cc0[_0x26581f(0x39d)]};case u[_0x26581f(0x27c)][_0x26581f(0x469)]:return{..._0x5d2cc0,'data':{..._0x2f2f14,'data':_0x2f2f14[_0x26581f(0x3a9)]},'cmd':_0x5d2cc0['cmd']};case u[_0x26581f(0x27c)]['MSG_FOR_ERROR']:return{..._0x5d2cc0,'data':_0x2f2f14,'cmd':_0x5d2cc0[_0x26581f(0x39d)]};default:return _0x5d2cc0;}}default:return _0x5d2cc0;}}function ht(_0x1eb2c1){const _0x169be9=_0x1e47ba;switch(_0x1eb2c1['cmd']){case b[_0x169be9(0x44d)]:case b['HELLO']:return JSON[_0x169be9(0x3f6)]({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1['routeKey']});case b[_0x169be9(0x12b)]:{let _0x168010;switch(_0x1eb2c1[_0x169be9(0x1b7)]['eventID']){case u[_0x169be9(0x27c)][_0x169be9(0x1c4)]:{_0x168010={'eventID':u[_0x169be9(0x27c)][_0x169be9(0x1c4)],'updateCursorEvent':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)][_0x169be9(0x1af)]:{_0x168010={'eventID':u[_0x169be9(0x27c)]['USERS_LEAVE'],'leaveEvent':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)][_0x169be9(0x3e9)]:{_0x168010={'eventID':u[_0x169be9(0x27c)][_0x169be9(0x3e9)],'joinEvent':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)][_0x169be9(0x157)]:{_0x168010={'eventID':u[_0x169be9(0x27c)][_0x169be9(0x157)],'liveShareNewHost':_0x1eb2c1['data'][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)]['LIVESHARE_OPERATION']:{_0x168010={'eventID':u[_0x169be9(0x27c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1eb2c1[_0x169be9(0x1b7)]['data']};break;}case u[_0x169be9(0x27c)][_0x169be9(0x469)]:{_0x168010={'eventID':u['CollaborationEvent'][_0x169be9(0x469)],'liveShareTerminate':_0x1eb2c1[_0x169be9(0x1b7)]['data']};break;}case u[_0x169be9(0x27c)][_0x169be9(0x172)]:{_0x168010={'eventID':u['CollaborationEvent'][_0x169be9(0x172)],'liveShareRequestHost':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x1b7)]};break;}case u[_0x169be9(0x27c)]['LIVESHARE_FETCH_OPERATIONS']:{_0x168010={'eventID':u['CollaborationEvent'][_0x169be9(0x221)]};break;}default:_0x168010={'eventID':_0x1eb2c1[_0x169be9(0x1b7)][_0x169be9(0x2a0)]};}return JSON['stringify']({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1[_0x169be9(0x402)],'collaMsg':_0x168010});}case b[_0x169be9(0x368)]:return JSON[_0x169be9(0x3f6)]({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1[_0x169be9(0x402)],'joinReq':_0x1eb2c1[_0x169be9(0x1b7)]});case b[_0x169be9(0x226)]:return JSON[_0x169be9(0x3f6)]({'cmd':_0x1eb2c1[_0x169be9(0x39d)],'routeKey':_0x1eb2c1['routeKey'],'leaveReq':_0x1eb2c1[_0x169be9(0x1b7)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var xt=(_0x3c1f62,_0xe91434,_0x4ca699,_0x41d304)=>{const _0x29baf6=_0x1e47ba;for(var _0x3b26e6=_0xe91434,_0x6940a9=_0x3c1f62[_0x29baf6(0x3fb)]-0x1,_0x3f03ab;_0x6940a9>=0x0;_0x6940a9--)(_0x3f03ab=_0x3c1f62[_0x6940a9])&&(_0x3b26e6=_0x3f03ab(_0x3b26e6)||_0x3b26e6);return _0x3b26e6;},te=(_0x22686c,_0x11cef9)=>(_0x4043e5,_0x541856)=>_0x11cef9(_0x4043e5,_0x541856,_0x22686c);const Be=h[_0x1e47ba(0x227)]('univer-pro.collaboration-client-socket-service'),_t='COLLAB_SUBMIT_CHANGESET_URL',Bt=_0x1e47ba(0x1ba);function Ft(_0x4b209c,_0x266526,_0x35dd91){const _0x547e0f=_0x1e47ba;return _0x4b209c+'/'+_0x266526+_0x547e0f(0x2fa)+_0x35dd91+_0x547e0f(0x335);}exports[_0x1e47ba(0x10d)]=class{constructor(_0x5b6990,_0x1dcd0e,_0x4a1b20,_0x521c85,_0x5f0090){const _0x184dd3=_0x1e47ba;this[_0x184dd3(0x1e9)]=_0x5b6990,this[_0x184dd3(0x2d9)]=_0x1dcd0e,this[_0x184dd3(0xfd)]=_0x4a1b20,this[_0x184dd3(0x18f)]=_0x521c85,this[_0x184dd3(0x223)]=_0x5f0090;}[_0x1e47ba(0x16a)](_0x5826f7){const _0x108990=_0x1e47ba,_0x56bd68=this[_0x108990(0x2d9)][_0x108990(0x16a)](_0x5826f7);if(!_0x56bd68)throw new Error(_0x108990(0x1a3));const _0x4804ac=new a[(_0x108990(0x3a1))](),_0x154bd0=new v['Subject']();_0x4804ac[_0x108990(0x477)](a[_0x108990(0x251)](_0x56bd68[_0x108990(0x123)][_0x108990(0x319)](_0x32dbb0=>_0x154bd0[_0x108990(0x424)](_0x32dbb0)))),_0x4804ac['add'](a[_0x108990(0x251)](()=>_0x154bd0[_0x108990(0x3d6)]()));const _0x57723e=new v[(_0x108990(0x184))]();_0x4804ac[_0x108990(0x477)](a[_0x108990(0x251)](_0x56bd68[_0x108990(0x1ad)][_0x108990(0x319)](_0x2f1b42=>_0x57723e[_0x108990(0x424)](_0x2f1b42)))),_0x4804ac[_0x108990(0x477)](a['toDisposable'](()=>_0x57723e[_0x108990(0x3d6)]()));const _0x4005ce=new v[(_0x108990(0x184))]();_0x4804ac['add'](a['toDisposable'](_0x56bd68[_0x108990(0x34f)]['subscribe'](_0x3a12c2=>{const _0x1f6248=_0x108990,_0xb4a480=lt(_0x3a12c2);_0x4005ce[_0x1f6248(0x424)](_0xb4a480);}))),_0x4804ac[_0x108990(0x477)](a[_0x108990(0x251)](()=>_0x4005ce[_0x108990(0x3d6)]()));const _0xdc9da9=()=>{const _0xc66427=_0x108990;_0x57723e[_0xc66427(0x424)](new Event(_0xc66427(0x31a))),_0x154bd0['next'](new CloseEvent(_0xc66427(0x31a))),_0x2c8151[_0xc66427(0x489)]();},_0x2c8151={'memberID':'','close$':_0x154bd0['asObservable'](),'error$':_0x57723e['asObservable'](),'open$':_0x56bd68[_0x108990(0x37e)],'message$':_0x4005ce[_0x108990(0x2ad)](),'send':_0x48187e=>{const _0x558649=_0x108990;if(_0x48187e[_0x558649(0x39d)]===b['INGEST']){if(_0x48187e['data'][_0x558649(0x2a0)]===u['CollaborationEvent'][_0x558649(0x3d8)]){this['_submitChangeset'](_0x2c8151,_0x48187e[_0x558649(0x1b7)])[_0x558649(0x41d)](_0x422548=>{const _0x12d22c=_0x558649;this[_0x12d22c(0x18f)][_0x12d22c(0x343)](_0x422548),_0xdc9da9();});return;}if(_0x48187e[_0x558649(0x1b7)][_0x558649(0x2a0)]===u[_0x558649(0x27c)]['FETCH_MISSING']){const _0x55e70e=_0x48187e[_0x558649(0x1b7)];this['_fetchMissChangesets'](_0x55e70e)[_0x558649(0x3c2)](_0x28defd=>{const _0x3752bb=_0x558649;_0x4005ce['next']({'cmd':b[_0x3752bb(0x24e)],'code':xe['OK'],'routeKey':_0x55e70e[_0x3752bb(0x1b7)][_0x3752bb(0x2d2)],'routeType':'','data':{'eventID':u[_0x3752bb(0x27c)][_0x3752bb(0x28e)],'data':{'changesets':_0x28defd}}});})['catch'](_0x28778b=>{const _0x4bba67=_0x558649;this[_0x4bba67(0x18f)][_0x4bba67(0x343)](_0x28778b),_0xdc9da9();});return;}}_0x56bd68['send'](ht(_0x48187e));},'close':()=>{const _0x4ff970=_0x108990;_0x56bd68[_0x4ff970(0x489)](),_0x4804ac['dispose']();}};return _0x2c8151;}async[_0x1e47ba(0x2bb)](_0x1dcfca,_0x4496ad){const _0x27b407=_0x1e47ba;var _0x24ec55;const {unitType:_0x13bf0a,unitID:_0x2d523d,changeset:_0x5c9a41}=_0x4496ad[_0x27b407(0x1b7)],_0x258a26={'unitID':_0x2d523d,'memberID':_0x1dcfca[_0x27b407(0x48d)],'type':_0x13bf0a,'changeset':u[_0x27b407(0x265)](_0x5c9a41)},_0x527fdc=Ft((_0x24ec55=this[_0x27b407(0xfd)][_0x27b407(0x159)](_t))!=null?_0x24ec55:Bt,_0x13bf0a,_0x2d523d);try{await this['_http']['post'](_0x527fdc,{'body':_0x258a26});}catch(_0x587fa2){throw this['_logService'][_0x27b407(0x343)](_0x27b407(0x190),_0x27b407(0x134)),_0x587fa2;}}async['_fetchMissChangesets'](_0x1cf09b){const _0x1cd232=_0x1e47ba,{unitID:_0xcb70f4,from:_0x4b8be9,to:_0x4cc18a,unitType:_0x1dd9f6}=_0x1cf09b[_0x1cd232(0x1b7)];return(await this[_0x1cd232(0x223)][_0x1cd232(0x171)]({'metadata':void 0x0},{'unitID':_0xcb70f4,'type':_0x1dd9f6,'from':_0x4b8be9,'to':_0x4cc18a}))[_0x1cd232(0x2fe)];}},exports[_0x1e47ba(0x10d)]=xt([te(0x0,h[_0x1e47ba(0x443)](M['HTTPService'])),te(0x1,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x372)])),te(0x2,a['IConfigService']),te(0x3,a[_0x1e47ba(0x467)]),te(0x4,a[_0x1e47ba(0x112)])],exports['CollaborationSocketService']);var ut=(_0x5d9be0,_0x363da2,_0xdb5985,_0x25e5cb)=>{const _0xbc25f1=_0x1e47ba;for(var _0x3ac497=_0x363da2,_0x51c76c=_0x5d9be0[_0xbc25f1(0x3fb)]-0x1,_0x125079;_0x51c76c>=0x0;_0x51c76c--)(_0x125079=_0x5d9be0[_0x51c76c])&&(_0x3ac497=_0x125079(_0x3ac497)||_0x3ac497);return _0x3ac497;},N=(_0x226617,_0xc05664)=>(_0x325a89,_0x2d9156)=>_0xc05664(_0x325a89,_0x2d9156,_0x226617),W=(_0x591225=>(_0x591225[_0x591225[_0x1e47ba(0x23f)]=0x0]=_0x1e47ba(0x23f),_0x591225[_0x591225['JOINING']=0x1]='JOINING',_0x591225[_0x591225['OFFLINE']=0x2]=_0x1e47ba(0x3e8),_0x591225[_0x591225[_0x1e47ba(0x256)]=0x3]='ONLINE',_0x591225))(W||{});const dt='COLLAB_WEB_SOCKET_URL',Vt='ws://127.0.0.1:8000/universer-api/comb/connect',St=_0x1e47ba(0x17b),Wt=0x7530,Fe=_0x1e47ba(0x391),gt=0x2710,Gt=_0x1e47ba(0x2a1),Yt=0x4e20,Kt=_0x1e47ba(0x2b9),Xt=0x3;exports[_0x1e47ba(0x43d)]=class extends a[_0x1e47ba(0x45e)]{constructor(_0x49d600,_0x103d05,_0x581967,_0x1338ac,_0x3e49b8,_0x537657,_0x1e3fda,_0x1ec0c5){const _0x2179c2=_0x1e47ba;super(),d(this,_0x2179c2(0x327),new v[(_0x2179c2(0x432))](0x0)),d(this,_0x2179c2(0x219),this['_sessionStatus$'][_0x2179c2(0x2ad)]()),d(this,_0x2179c2(0x292),new v['Subject']()),d(this,_0x2179c2(0x288),this[_0x2179c2(0x292)][_0x2179c2(0x2ad)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),(this['_unitID']=_0x49d600,this[_0x2179c2(0x18f)]=_0x581967,this[_0x2179c2(0x2db)]=_0x1338ac,this[_0x2179c2(0x1bd)]=_0x3e49b8,this['_configService']=_0x537657,this[_0x2179c2(0x121)]=_0x1e3fda,this['_memberService']=_0x1ec0c5,_0x103d05[_0x2179c2(0x1cb)](T['takeUntil'](this['dispose$']))[_0x2179c2(0x319)](_0x4961c7=>{const _0x354b61=_0x2179c2;var _0x1d1a86;typeof _0x4961c7>'u'||(this[_0x354b61(0x276)]=_0x4961c7,_0x4961c7?(this[_0x354b61(0x169)](_0x4961c7),this['_socketMessageSubscription']=this[_0x354b61(0x276)][_0x354b61(0x34f)][_0x354b61(0x319)](_0x1558c4=>{const _0x3aa001=_0x354b61;_0x1558c4[_0x3aa001(0x402)]===this[_0x3aa001(0x268)]&&this[_0x3aa001(0x3b1)](_0x1558c4);})):(this[_0x354b61(0x327)][_0x354b61(0x424)](0x2),(_0x1d1a86=this[_0x354b61(0x238)])==null||_0x1d1a86[_0x354b61(0x3db)](),this['_socketMessageSubscription']=null));}),this[_0x2179c2(0x2e4)](this[_0x2179c2(0x2db)][_0x2179c2(0x3b5)](()=>{const _0x294dd7=_0x2179c2;var _0x18ad7c;(_0x18ad7c=this[_0x294dd7(0x276)])==null||_0x18ad7c[_0x294dd7(0x29a)]({'cmd':b[_0x294dd7(0x226)],'data':{'roomID':this[_0x294dd7(0x268)]}});})));}get[_0x1e47ba(0x435)](){const _0x2f29e5=_0x1e47ba;return this['_sessionStatus$'][_0x2f29e5(0x192)]();}[_0x1e47ba(0x331)](){const _0x53ef32=_0x1e47ba;var _0x167055,_0x29c0eb;return(_0x29c0eb=(_0x167055=this[_0x53ef32(0x276)])==null?void 0x0:_0x167055[_0x53ef32(0x48d)])!=null?_0x29c0eb:null;}['dispose'](){const _0x16e942=_0x1e47ba;super['dispose'](),this['dispose$'][_0x16e942(0x424)](),this[_0x16e942(0x2b1)][_0x16e942(0x3d6)]();}['_onCombEvent'](_0x460244){const _0x43f8c2=_0x1e47ba;_0x460244[_0x43f8c2(0x39d)]===b[_0x43f8c2(0x368)]?this[_0x43f8c2(0x1b0)](_0x460244):_0x460244[_0x43f8c2(0x39d)]===b['RECV']&&this['_onRecvEvent'](_0x460244);}[_0x1e47ba(0x169)](_0x2429b1){const _0x5e2b64=_0x1e47ba;this[_0x5e2b64(0x327)][_0x5e2b64(0x424)](0x1),_0x2429b1[_0x5e2b64(0x29a)]({'cmd':b[_0x5e2b64(0x368)],'routeKey':this[_0x5e2b64(0x268)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5e2b64(0x268)]}]}});}[_0x1e47ba(0x1b0)](_0x53a655){const _0x29eb46=_0x1e47ba;var _0x81dbf9;if(_0x53a655['code']===xe[_0x29eb46(0x244)]){this[_0x29eb46(0x1bd)][_0x29eb46(0x2e7)]({'type':ce[_0x29eb46(0x1b6)][_0x29eb46(0x1da)],'content':this[_0x29eb46(0x121)]['t'](_0x29eb46(0x418))}),this['_sessionStatus$']['next'](0x2);return;}this[_0x29eb46(0x327)]['next'](0x3);const _0xea33c6=(_0x81dbf9=_0x53a655['data']['roomInfos'][this[_0x29eb46(0x268)]])==null?void 0x0:_0x81dbf9[_0x29eb46(0x1d9)];_0xea33c6&&_0xea33c6[_0x29eb46(0x1e6)](_0x3a050a=>this['_memberService']['updateMember'](this[_0x29eb46(0x268)],_0x3a050a));}['_onRecvEvent'](_0x130792){const _0x114456=_0x1e47ba;try{const _0xee68af=_0x130792[_0x114456(0x1b7)];switch(_0xee68af[_0x114456(0x2a0)]){case u[_0x114456(0x27c)]['USERS_ENTER']:this['_onUserJoin'](_0xee68af),this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);break;case u[_0x114456(0x27c)][_0x114456(0x1af)]:this[_0x114456(0x1a4)](_0xee68af),this['_event$'][_0x114456(0x424)](_0xee68af);break;case u['CollaborationEvent']['CHANGESET_ACK']:this[_0x114456(0xf3)](),this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);break;case u['CollaborationEvent'][_0x114456(0x397)]:this[_0x114456(0x18f)][_0x114456(0x343)](_0x114456(0x312)+JSON[_0x114456(0x3f6)](_0xee68af)),this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);break;default:this[_0x114456(0x292)][_0x114456(0x424)](_0xee68af);}}catch(_0x5ac1ed){this[_0x114456(0x18f)][_0x114456(0x343)](_0x5ac1ed,_0x130792);}}[_0x1e47ba(0x271)](_0x2ab21d){const _0x3ffcad=_0x1e47ba;this[_0x3ffcad(0x29b)][_0x3ffcad(0x3c6)](this[_0x3ffcad(0x268)],_0x2ab21d[_0x3ffcad(0x1b7)]);}['_onUserLeave'](_0x175044){const _0x1c3dd0=_0x1e47ba;this[_0x1c3dd0(0x29b)]['removeMember'](this['_unitID'],_0x175044[_0x1c3dd0(0x1b7)][_0x1c3dd0(0x48d)]);}async[_0x1e47ba(0x29a)](_0x4f1e34,_0x3cee5a){const _0x4d30db=_0x1e47ba;if(this['sessionStatus']!==0x3||!this[_0x4d30db(0x276)])throw new Error(_0x4d30db(0x243));try{_0x4f1e34[_0x4d30db(0x2a0)]===u[_0x4d30db(0x27c)]['NEW_CHANGESETS']&&this['_scheduleCollaborationTimeoutTimer'](),this[_0x4d30db(0x276)][_0x4d30db(0x29a)]({'cmd':b[_0x4d30db(0x12b)],'routeKey':_0x3cee5a,'routeType':'','data':_0x4f1e34});}catch(_0x233e09){this['_logService']['error'](_0x233e09);}}['_scheduleCollaborationTimeoutTimer'](){const _0x16dd5f=_0x1e47ba;var _0x1da00c;this['_collaborationTimeoutTimer']=window[_0x16dd5f(0x393)](()=>{const _0x16803a=_0x16dd5f;this[_0x16803a(0x3e7)]=null,this['_messageService'][_0x16803a(0x2e7)]({'type':ce[_0x16803a(0x1b6)][_0x16803a(0x35a)],'content':this['_localeService']['t'](_0x16803a(0x144))});},(_0x1da00c=this[_0x16dd5f(0xfd)][_0x16dd5f(0x159)](Fe))!=null?_0x1da00c:gt);}['_clearCollaborationTimeoutTimer'](){const _0x532647=_0x1e47ba;this[_0x532647(0x3e7)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x532647(0x3e7)]=null);}},exports['CollaborationSession']=ut([N(0x2,a[_0x1e47ba(0x467)]),N(0x3,U[_0x1e47ba(0x2aa)]),N(0x4,U[_0x1e47ba(0x34b)]),N(0x5,a[_0x1e47ba(0x306)]),N(0x6,h['Inject'](a[_0x1e47ba(0x37f)])),N(0x7,h['Inject'](G))],exports[_0x1e47ba(0x43d)]),exports[_0x1e47ba(0x17a)]=class extends a[_0x1e47ba(0x152)]{constructor(_0x24957c,_0x2c36c5,_0x3c8b49,_0x23e253,_0x17d68a,_0x4cdd91){const _0x4fbc50=_0x1e47ba;super(),d(this,_0x4fbc50(0x1f0),new v[(_0x4fbc50(0x432))](void 0x0)),d(this,'_sessions',new Map()),d(this,_0x4fbc50(0x170),new v[(_0x4fbc50(0x432))](0x0)),d(this,_0x4fbc50(0x1f4),this[_0x4fbc50(0x170)][_0x4fbc50(0x2ad)]()),d(this,_0x4fbc50(0x1d3),!0x1),d(this,_0x4fbc50(0x395)),d(this,'_timeoutTimer'),d(this,_0x4fbc50(0x182)),d(this,'_retryCount',0x0),(this[_0x4fbc50(0x376)]=_0x24957c,this['_localeService']=_0x2c36c5,this[_0x4fbc50(0x1bd)]=_0x3c8b49,this[_0x4fbc50(0x18f)]=_0x23e253,this['_configService']=_0x17d68a,this['_socketService']=_0x4cdd91);}get[_0x1e47ba(0x276)](){const _0xa8c6c3=_0x1e47ba;return this[_0xa8c6c3(0x1f0)][_0xa8c6c3(0x192)]();}[_0x1e47ba(0x36c)](){const _0x1581de=_0x1e47ba;super[_0x1581de(0x36c)](),this[_0x1581de(0x31e)][_0x1581de(0x1e6)](_0x343349=>_0x343349['dispose']()),this[_0x1581de(0x31e)][_0x1581de(0x465)](),this['_status$'][_0x1581de(0x3d6)]();}async[_0x1e47ba(0x3fe)](_0x35455a){const _0x2a4a06=_0x1e47ba;if(this[_0x2a4a06(0x31e)]['has'](_0x35455a))return this['_sessions']['get'](_0x35455a);this[_0x2a4a06(0x2f6)]();const _0x4626b7=this[_0x2a4a06(0x376)][_0x2a4a06(0x14f)](exports['CollaborationSession'],_0x35455a,this[_0x2a4a06(0x1f0)]['asObservable']());return this[_0x2a4a06(0x31e)]['set'](_0x35455a,_0x4626b7),_0x4626b7;}[_0x1e47ba(0x35b)](){const _0x821231=_0x1e47ba;var _0x22a16d;const _0x3ceae7=(_0x22a16d=this[_0x821231(0xfd)][_0x821231(0x159)](dt))!=null?_0x22a16d:Vt;return this[_0x821231(0x2ba)]['createSocket'](_0x3ceae7);}[_0x1e47ba(0x2f6)](){const _0x32a9a0=_0x1e47ba;try{const _0x1ab7a5=this[_0x32a9a0(0x35b)]();if(_0x1ab7a5){const _0x2cb04c=_0x1ab7a5[_0x32a9a0(0x29a)];_0x1ab7a5[_0x32a9a0(0x29a)]=_0x72ec46=>(this[_0x32a9a0(0x46a)](),_0x2cb04c['apply'](_0x1ab7a5,[_0x72ec46])),_0x1ab7a5[_0x32a9a0(0x34f)][_0x32a9a0(0x319)](_0x478c33=>this[_0x32a9a0(0x401)](_0x1ab7a5,_0x478c33)),_0x1ab7a5['error$'][_0x32a9a0(0x1cb)](T[_0x32a9a0(0x3e2)](0x1))['subscribe'](_0x37d097=>this[_0x32a9a0(0x18f)][_0x32a9a0(0x343)](_0x32a9a0(0x38f),_0x37d097)),_0x1ab7a5[_0x32a9a0(0x37e)][_0x32a9a0(0x1cb)](T[_0x32a9a0(0x3e2)](0x1))[_0x32a9a0(0x319)](()=>{this['_onConnectionOpen'](_0x1ab7a5);}),_0x1ab7a5[_0x32a9a0(0x123)][_0x32a9a0(0x1cb)](T[_0x32a9a0(0x3e2)](0x1))[_0x32a9a0(0x319)](_0x6e2990=>{const _0x29e12a=_0x32a9a0;this[_0x29e12a(0x18f)]['debug'](_0x29e12a(0x2a9),_0x29e12a(0x3f5),_0x6e2990),this['_onConnectionFailed']();});}}catch(_0x2dc038){this['_logService'][_0x32a9a0(0x343)](_0x2dc038),this[_0x32a9a0(0x305)]();}}[_0x1e47ba(0x103)](_0x27143e){const _0x3b5cf8=_0x1e47ba;this['_logService'][_0x3b5cf8(0x199)](_0x3b5cf8(0x2a9),_0x3b5cf8(0x297)),_0x27143e[_0x3b5cf8(0x29a)]({'cmd':b[_0x3b5cf8(0x3a0)]}),this[_0x3b5cf8(0x46a)]();}[_0x1e47ba(0x305)](){const _0x5122bc=_0x1e47ba;var _0x3e3cb0;this[_0x5122bc(0x170)][_0x5122bc(0x424)](0x2),this['_socket$'][_0x5122bc(0x424)](null),this[_0x5122bc(0x47e)](),this['_clearHeartbeatTimer'](),this[_0x5122bc(0x1d3)]=!0x1,this[_0x5122bc(0x2e8)]<((_0x3e3cb0=this[_0x5122bc(0xfd)]['getConfig'](Kt))!=null?_0x3e3cb0:Xt)?(this[_0x5122bc(0x26e)](this[_0x5122bc(0x2e8)]),this[_0x5122bc(0x2e8)]+=0x1):this[_0x5122bc(0x1bd)][_0x5122bc(0x2e7)]({'type':ce['MessageType'][_0x5122bc(0x35a)],'content':this[_0x5122bc(0x121)]['t'](_0x5122bc(0x31d))});}[_0x1e47ba(0x26e)](_0x449e67){const _0x482351=_0x1e47ba;var _0x205107;const _0x58d99b=((_0x205107=this[_0x482351(0xfd)][_0x482351(0x159)](Gt))!=null?_0x205107:Yt)*0x2**_0x449e67;this[_0x482351(0x1bd)][_0x482351(0x2e7)]({'type':ce['MessageType'][_0x482351(0x1da)],'content':this[_0x482351(0x121)]['t'](_0x482351(0x259))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x18d5fd=_0x482351;this[_0x18d5fd(0x2f6)](),clearTimeout(this[_0x18d5fd(0x182)]),this['_retryConnectingTimer']=null;},_0x58d99b);}[_0x1e47ba(0x46a)](){const _0x125b1e=_0x1e47ba;var _0x27d1f3;this[_0x125b1e(0x350)](),this[_0x125b1e(0x395)]=setTimeout(()=>this[_0x125b1e(0x2f9)](),(_0x27d1f3=this[_0x125b1e(0xfd)][_0x125b1e(0x159)](St))!=null?_0x27d1f3:Wt);}[_0x1e47ba(0x2f9)](){const _0xf435a4=_0x1e47ba;this[_0xf435a4(0x276)]['send']({'cmd':b['HEARTBEAT']}),this[_0xf435a4(0x40d)]();}[_0x1e47ba(0x40d)](){const _0x4df42c=_0x1e47ba;var _0x209b83;this[_0x4df42c(0x392)]=setTimeout(()=>this[_0x4df42c(0x305)](),(_0x209b83=this[_0x4df42c(0xfd)][_0x4df42c(0x159)](Fe))!=null?_0x209b83:gt);}['_onMessage'](_0x3d3388,_0x5dca7f){const _0x520e72=_0x1e47ba,{cmd:_0x18f886}=_0x5dca7f;_0x18f886===b[_0x520e72(0x3a0)]&&!this[_0x520e72(0x1d3)]&&(_0x3d3388[_0x520e72(0x48d)]=_0x5dca7f[_0x520e72(0x1b7)][_0x520e72(0x48d)],this[_0x520e72(0x1f0)][_0x520e72(0x424)](_0x3d3388),this[_0x520e72(0x170)][_0x520e72(0x424)](0x3),this[_0x520e72(0x1d3)]=!0x0),_0x18f886===b[_0x520e72(0x44d)]&&this['_clearTimeoutTimer'](),this[_0x520e72(0x46a)]();}[_0x1e47ba(0x350)](){const _0x2da032=_0x1e47ba;this[_0x2da032(0x395)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x1e47ba(0x47e)](){const _0x177de6=_0x1e47ba;this[_0x177de6(0x392)]!=null&&(clearTimeout(this[_0x177de6(0x392)]),this[_0x177de6(0x392)]=null);}},exports['CollaborationSessionService']=ut([N(0x0,h[_0x1e47ba(0x443)](h['Injector'])),N(0x1,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)])),N(0x2,U['IMessageService']),N(0x3,a['ILogService']),N(0x4,a[_0x1e47ba(0x306)]),N(0x5,Be)],exports[_0x1e47ba(0x17a)]);function _0x32f0(){const _0x1485d=['storage','_clearOtherTimers','_handler','state','syncEditingCollabCursor','_singleActiveUnitService','_waitForHeartbeatResponse','registerBeforeClose','state$','location','getTypeOfUnitAdded$','collabCursorState$','searchParams','useDependency','none','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_docTransformSelectionsService','session.room-full','popstate','isActive','collaboration.single-unit.warning','_collabCursorState$','catch','BuiltInUIPart','transformMutationsWithChangeset','localeService','getImage','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','HEADER_MENU','next','whenReady','FETCH_MISS','url(#on-line-single_clip0_910_349)','defineProperty','colorChannel1','LICENSE_IMPORT_SIZE_EXCEEDED','transform','CollaborationStatusDisplay','getViewport','_state','Starting','setAlpha','UNKNOWN_CODE','BehaviorSubject','_onLocalMutation','_assignedColors','sessionStatus','_collabCursorController','_replayCachedMutations','clsx','_onRefRangeChange','ThemeService','XHRHTTPImplementation','getRangePointData','CollaborationSession','getCurrent','executeCommand','children','push','29328GIDbSf','Inject','assignAColorForMemberID','ILocalStorageService','onSyncEditingCollabCursor','fillStyle','reject','encodeURIComponent','joinEvent','addObjects','univer-pro.collaboration-client.single-active-unit-service','HEARTBEAT','ICommandService','_getMergeRange','CollaborationController','beginPath','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','addImageSourceCache','transformRemoteChangeset','bottom','ERROR_IMAGE_TYPE','enableAuthServer','saveSnapshot','src','rev','@univerjs/drawing','_setupBeforeClosingHandler','history','RxDisposable','NEW_CHANGESETS','focused$','userID','textRanges','registerHTTPInterceptor','_univerInstanceService','clear','CHANGESET_REJ','ILogService','_permissionService','LIVESHARE_TERMINATE','_rescheduleHeartbeatEvent','labelPosition','_config','init','_docSyncEditingCollabCursorService','Workbook','_localStorageService','clearTimeout','batchAllowed','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_pendingMutations','1em','onPointerEnterObserver','add','awaitingChangeset','find','from','_handleEvent','2432591nsINSS','univer-online','_clearTimeoutTimer','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_init','\x20-\x20','_unitOnClients','_hover','debounceTime','_transformStack','clipPath','url','Injector','close','_clearScheduledTask','onSendChangeset','UNIVER_DOC','memberID','sequenceExecute','SnapshotService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isTransformMutationsWithChangesetFailure','saveOfflineData','actions','_labelPosition','M0\x200H16V16H0z','_updateURLWithCurrentState','/universer-api/stream/file/upload','revision','xlink:href','onRemoteAck','onlineStatusTitle','getCollabEntity','BASE64','_saveCache','_ensureSubject','DocStateChangeManagerService','setItem','setCurrentUser','_clearCollaborationTimeoutTimer','baseRev','findNodePositionByCharIndex','PENDING','/resources','delete','selections','image/png','title','getSelections','_configService','_roomMembers','split','AUTHZ_URL_KEY','Unknown\x20user','_anchor','_onConnectionOpen','Univer','pushState','roomMembers','registerRefRange','listRoles','_isPermissionRej','InsertSheetMutation','_color','SEND_CHANGESET_TIMEOUT','CollaborationSocketService','closePath','getInterceptPoints','RemoveColCommandId','propertyIsEnumerable','ISnapshotServerService','useRef','create','/object/','put','Shape','IUniverInstanceService','_name','_collaborationController','IUIPartsService','image/jpeg','ERROR_IMAGE','collaborationUniverTypes','CHANGESET_ACK','setParam','_localeService','loadOfflineData','close$','IURLService','[CollaborationUndoRedoService]','change$','collaborators','onRemoteChangeset','font','_localCacheService','INGEST','_toggleOffline','555xsRudJ','url(#off-line-single_clip0_910_343)','UniverInstanceType','WebURLService','_cursors','serializeTextRange','?size=','submit\x20changeset\x20error!','onMissingChangesets','ImageSourceType','verdancy600','_getUploadFileURL','m1Prime','COLORS','handleInsertCol','_scheduleTimestamp','awaiting','_incrementRevisionNumber','getColor','assign','/allowed','indexOf','FromArray','session.collaboration-timeout','[OfflineState]:\x20received\x20acknowledgement.','TextSelectionManagerService','3340785tbSxEF','_replaceFileID','getImageSourceCache','_lastPointer','_handleHover','interceptor','replaceState','COMPRESS_MUTATION_APPLY','createInstance','conflict','_getCtorByUniverType','Disposable','_initStatusComponent','collabStatus.offline','_exhaustSavingTask','@univerjs/sheets-ui','LIVESHARE_NEW_HOST','_checkMissing','getConfig','red300','univer-online-status-title','_toggleOnline','isArray','resourceIDs','EffectRefRangId','deserializeToCombResponse','isPermissionRej','FileId','_createHandler','_executeRemoteChangeset','isTransformMutationFailure','[OfflineState]:\x20received\x20changeset.','_acknowledgedAwaitingChangeset','@univerjs/engine-formula','_joinRoom','createSocket','5256744IsszJY','collaboratorID','result','Vector2','_id','_status$','fetchMissingChangesets','LIVESHARE_REQUEST_HOST','reduce','has','_renderManagerService','onPointerMoveObserver','_colorIndex','SNAPSHOT_SERVER_URL_KEY','fetchThroughInterceptors','CollaborationSessionService','HEARTBEAT_INTERVAL','getUniverSheetInstance','@univerjs/ui','online','toggleOnline','parseProtocolChangeset','auth.needGotoLoginAlert','_retryConnectingTimer','params','Subject','socketService','transformByState','Ready','LOGIN_URL_KEY','image/bmp','symbol','attrs','setWaitCount','#fff','fetch_missing','_logService','[CollaborationSession]','hasOwnProperty','getValue','_revisionService','univerjs-icon\x20univerjs-icon-','defIds','_updateState','getFocusedUnit','call','debug','merge','_docSkeleton','slice','UNIVER_SLIDE','IHTTPImplementation','unit-cache-','_saveTaskMap','IRenderManagerService','_handleJoinEvent','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_onUserLeave','updateCollaborator','append','flatMap','_initStatusListener','defs','onTransformRemoteChangesetByIMECache','onlineStatus','_getAPIPrefixPath','error$','[PendingState]:\x20unhandled\x20univer\x20type:\x20','USERS_LEAVE','_onJoinRoomEvent','[FetchMissState]','_colorAssignService','translate(.97)','text','allowed','MessageType','data','fillRule','url(#$1','/universer-api/comb','concat','_startDocCollabCursor','_messageService','getSheetBySheetId','univer-online-status','AuthzIoHttpService','_syncEditingCollabCursorService','CompressMutationService','ITransformService','UPDATE_CURSOR','update','INTERNAL_ERROR','min','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','image/jpg','ALREADY_EXISTS','pipe','_transformUndoredo','_substituteRedoStack','[DataLoaderController]','newValue','pending','_clearUndo','_showConflictNotification','_socketReady','div','color','_getSheetObject','onStateChange','_scene','members','Warning','permissionRejEvent','SessionStatus','infoRsp','replace','_getSignURL','getDocObject','saveChangeset','_themeService','Module','docStateChange$','/-/object/list','forEach','_transformSelections','fillText','_http','removeMember','_refRangeService','collabStatus.conflict','readAsDataURL','collab-text-anchor-','_type','_socket$','handleDeleteRangeMoveUp','_scheduleSaving','getCollabEntity$','status$','registerComponent','combineLatest','RegularPolygon','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_unlockTransition','objectID','serializeCombRequest','SetTextSelectionsOperation','_getDocObject','@univerjs/docs','_getRedoStack','CommandType','APPLY_REJECT','_cursor','getCurrentUser','set','getCoordByCell','_compressMutationService','trim','getActiveSheet','_onCursorUpdate','_httpService','list','urlChange$','compose','INotificationService','_updateSubUnitFromURLParams','cursorInfo$','currentSkeleton$','_heartbeatTimer','_selfUnitIDs','DeleteRangeMoveLeftCommandId','range','_range','UNRECOGNIZED','@univerjs/rpc','sessionStatus$','_online','_getLoginPath','permission.title','target','csRejEvent','InsertRangeMoveDownCommandId','getCellPositionByOffset','LIVESHARE_FETCH_OPERATIONS','resend','_snapshotServerService','_hovered','_substituteUndoStack','LEAVE','createIdentifier','_transitionLocked','_scheduleClearOtherTimer','top','className','onload','Rectangle','transformMutation','setActiveRange','black','getUnitId','ColorKit','m2Prime','ACTIVE_UNIT_EVENT_CHANNEL','_docTransformIMECacheService','lodash/debounce','_remoteChangesetQueue','_socketMessageSubscription','LifecycleStages','HEARTBEAT_INTERVAL_KEY','SEND_CHANGESET_TIMEOUT_KEY','_imageSourceCache','column','LocalCacheService','IDLE','_updateLocalCache','0\x200\x2017\x2016','_onConflict','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','FAIL','leaveEvent','updatePermissionPoint','_transformRemoteChangesetByIMECache','getRenderById','getRelativeCoord','getUnitType','save','[OfflineState]:\x20received\x20rejection.','measureText','RECV','Rect','_clearRedo','toDisposable','_roomMembers$','[SyncedState]:\x20received\x20acknowledgement.','disposeUnit','getCollabCursors$','ONLINE','onTransformSelections','DeleteRangeMoveUpCommandId','session.will-retry','extend','href','mapDocumentTypeToUniverType','_getScale','addObject','_state$','csAckEvent','_undoRedoService','appendMutation','deleteCollaborator','prototype','parseChangesetToProtocol','clearInterval','108248BYDQHE','_unitID','ImageUploadStatusType','doc.mutation.rich-text-editing','newCsEvent','handleInsertRangeMoveDown','toRgbString','_scheduleReconnection','@univerjs/engine-render','collaMsg','_onUserJoin','_entities','c1Prime','_uiPartsService','NOT_COLLAB','_socket','_getAnchorBounding','CONNECTOR_DATA_TOO_LARGE','forwardRef','_getSaveTimeout','IImageIoService','CollaborationEvent','getTypeOfUnitDisposed$','_scheduleHeartbeat','Plugin','OnLifecycle','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','collabStatus.notCollab','currentColor','MoveRangeCommandId','_onRemoteACK','substring','c2Prime','event$','_sheetTransformSelectionsService','85891MsQDTQ','handleIRemoveCol','0\x200\x2016\x2016','collabStatus.syncing','PSEUDO_FETCH_MISSING_RESULT','@univerjs/design','map','transformUndoRedo','_event$','InsertColCommandId','_decreaseWaiting','NOT_FOUND','[CollaborationState]:\x20apply\x20error!','socket\x20open.','onStarting','getAncestorScale','send','_memberService','_members','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','882ltjSVy','WorkbookEditablePermission','eventID','RETRY_CONNECTING_INTERVAL','ERROR_EXCEED_SIZE','_shapes','...','cursorInfo','ranges','fromCollab','snapshot','[CollaborationSessionService]','IBeforeCloseService','_render','_removeClearOtherTimer','asObservable','_currentUser','_sheetSkeletonManagerService','LICENSE_DISTRO_REJECTED','dispose$','type','unitId','OTHER_CLIENTS_EDITING','RevisionService','session','LICENSE_MAX_UNITS_EXCEEDED','_loadSheet','RETRY_CONNECTING_MAX_COUNT','_socketService','_submitChangeset','row','switchMap','UNKNOWN_CMD','onMouseMove','createCollaborator','_notificationService','_removeRoom','getUndoRedoMutationParamsCache','rgba(255,\x20255,\x20255,\x200.01)','DesktopCollaborationStatusDisplayController','disableLocalCache','IRemoteInstanceService','use','\x20in\x20_schedule.','OnLineSingle','incrementRevForDocument','joinRsp','originalMeta','_onCursorDelete','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','univer-online-status-icon','uni.network.url-service','unitID','icon','enableOfflineEditing','includes','fetching\x20missing\x20changesets\x20from\x20','@wendellhu/redi','onPointerLeaveObserver','_ws','_exhaustRemoteChangesetQueue','_beforeCloseService','_applyRemoteChangeset','_setupSubUnitSync','onRemoteRej','_initModules','getOwnPropertySymbols','editing\x20status\x20changed\x20to','_updateCollabCursors','APPLY_REVISION_CONFILICT','disposeWithMe','objects','Steady','show','_retryCount','CONFLICT','UNDEFINED','rxjs/operators','InsertRowCommandId','apply','body','MUTATION','getUnitOnRev','runRefRangeMutations','_startSheetCollabCursor','UNIVER_UNKNOWN','TEXT_RANGE_LAYER_INDEX','@univerjs/core','_tryEnsureSocket','_session','_removeCollabCursors','_sendHeartbeat','/unit/','_getSendChangesetTimeout','round','arc','changesets','/universer-api/snapshot','_drawRange','_collaborationPaused','random','_cachedData','skeleton','_onConnectionFailed','IConfigService','_change$','takeUntil','pauseCollaboration','collabStatus.fetchMiss','isEditing','AWAITING','_onRemoteRejected','drawWith','_onRemoteChangeset','jiqing500','LOCAL_CACHE_INTERVAL_KEY','save\x20fail\x20reason\x20is\x20','_HTTPService','SNAPSHOT_INVALID_SNAPSHOT','sheets','name','activeSheet$','[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.','subscribe','connection\x20error','filter','_getUndoStack','session.connection-failed','_sessions','collabStatus.synced','IPermissionService','_anchorDot','CollaborationClientPlugin','APPLY_NON_SEQUENTIAL_REVISION','LOCAL_CACHE_INTERVAL','transformStack\x20failed!','OffLineSingle','_sessionStatus$','max','collab-text-range-','transformChangesets','/collaborator','_disabled','/universer-api/oidc/authpage','?url=','sheetId','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getMemberID','Tools','_awaitingChangeset','subunit','/new_changes','_drawAnchor','parse','CollaborationStatus','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','post','key','unit','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','deserializeRangeWithSheet','svg','displayName','failed\x20to\x20apply\x20missed\x20changesets!','UNIVER_SHEET','error','connectInjector','_queuedRemoteChangesets','serializeRangeWithSheet','FETCH_MISSING','triggerDblclick','SheetSkeletonManagerService','toString','IMessageService','POST','path','concatMap','message$','_clearHeartbeatTimer','PERMISSION_DENIED','/block/','_getCurrentRevision','getParam','restore','_schedule','values','width','all','Error','_createSocket','_transformService','transformSelections','IAuthzIoService','1762318HkUphP','ICollaborationSocketService','_textBubble','_handleLeaveEvent','currentTheme$','function','setShapeProps','enableLocalCache','get','JOIN','HTTPService','startsWith','getSheetId','dispose','onCommandExecuted','_lockTransition','SetWorksheetActivateCommand','tag','IMEInputManagerService','WebSocketService','objectActions','getCurrentRevForDocument','idSuffix','_injector','getScrollXYByRelativeCoords','deepClone','LICENSE_EXPORT_SIZE_EXCEEDED','fromEvent','/-/object/-/batch_allowed','handleDeleteRangeMoveLeft','_updateStatus','open$','LocaleService','selection','_disableEditing','getOffsetConfig','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','DEFAULT_FILE_NAME','IUndoRedoService','transformIMECache','_urlService','encode','SUCCUSS','json','collaboration-client.offline-data-not-saved','/role','onlineStatusIcon','_handleHeartbeatEvent','[CollaborationSessionService]:\x20socket\x20error','permission.content','HEARTBEAT_TIMEOUT','_timeoutTimer','setTimeout','updateCursorEvent','_sendHeartbeatTimer','_clearLocalCache','MSG_FOR_ERROR','_document','objectType','_createInitialState','unshift','gold400','cmd','_startCollaboration','_entityInit$','HELLO','DisposableCollection','getResourcesRequest','_syncEditingCollabCursor','hovered','shareReplay','JSONX','entries','_cursorInfo$','liveShareNewHost','remove','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NodePositionConvertToCursor','status','AWAITING_WITH_PENDING','offline','SelectionManagerService','_onCombEvent','_docStateChangeManagerService','addEventListener','loadDoc','registerOnClose','awaiting_with_pending','CHANGESET_REVISION_CONFILICT','size','evenodd','string','LocalUndoRedoService','_eventUnsubscribe','delay','getUnitStatus$','/universer-api/snapshot/','Optional','liveShareOperation','then','getTime','_send','unknown','updateMember','editingUnit','DataLoaderController','IContextService','roomMembers$','@univerjs-pro/collaboration','toggleOffline','_commandService','_waitCount','Error\x20on\x20receiving\x20event','isTransformMutationsWithChangesetSuccess','&to=','createElement','getMember','APPLY_PERMISSION_DENIED','TOO_MANY_REQUESTS','complete','DocSkeletonManagerService','SUBMIT_CHANGESET','SetSelectionsOperation','SYNCED','unsubscribe','_sendingTimer','distinctUntilChanged','off-line-single_clip0_910_343','mutations','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','b64DecodeUnicode','take','handleInsertRow','textEncoder','useObservable','_updateLocalCursor','_collaborationTimeoutTimer','OFFLINE','USERS_ENTER','generateRandomId','_draw','unload','invoke','\x0aAfter:\x20','@univerjs/network','_onFetchMissResult','PERMISSION_REJ','_snapshotService','_transformUndoRedoStack','getActiveRange','socket\x20close','stringify','COLLAB_WEB_SOCKET_URL_KEY','_transformPreviousActiveRange','on-line-single_clip0_910_349','_unitStatus','length','INVALID_ARGUMENT','_hideTimer','requireSession','startRow','fill','_onMessage','routeKey','lineTo','setUndoRedoMutationParamsCache','_collabSessionService','[PendingState]:\x20received\x20rejection.'];_0x32f0=function(){return _0x1485d;};return _0x32f0();}var qt=(_0xb7d5c0,_0x7ba6ad,_0x363832,_0x4d03c4)=>{for(var _0x3ad7c8=_0x7ba6ad,_0x2016e1=_0xb7d5c0['length']-0x1,_0x4a8764;_0x2016e1>=0x0;_0x2016e1--)(_0x4a8764=_0xb7d5c0[_0x2016e1])&&(_0x3ad7c8=_0x4a8764(_0x3ad7c8)||_0x3ad7c8);return _0x3ad7c8;},se=(_0xa105bc,_0x3b42c2)=>(_0x410194,_0x2284fc)=>_0x3b42c2(_0x410194,_0x2284fc,_0xa105bc);const vt=_0x1e47ba(0x324),Jt=0x3e8;exports['LocalCacheService']=class extends a[_0x1e47ba(0x152)]{constructor(_0x24940f,_0x362e81,_0x191087,_0xa18b87,_0x24ce8a){const _0x7916bd=_0x1e47ba;super(),d(this,_0x7916bd(0x303),new Map()),d(this,_0x7916bd(0x1a0),new Map()),d(this,_0x7916bd(0x32c),!0x1),(this[_0x7916bd(0xfd)]=_0x24940f,this[_0x7916bd(0x470)]=_0x362e81,this['_beforeCloseService']=_0x191087,this[_0x7916bd(0x121)]=_0xa18b87,this['_revisionService']=_0x24ce8a,this[_0x7916bd(0x45c)]());}[_0x1e47ba(0x2c6)](){const _0x42737b=_0x1e47ba;this[_0x42737b(0x32c)]=!0x0;}[_0x1e47ba(0x366)](){const _0xe0714d=_0x1e47ba;this[_0xe0714d(0x32c)]=!0x1;}['dispose'](){const _0x4e6904=_0x1e47ba;this[_0x4e6904(0x155)]()['then'](()=>super[_0x4e6904(0x36c)]());}async[_0x1e47ba(0x122)](_0x1f4c78){const _0x996abc=_0x1e47ba;return this['_disabled']?null:this[_0x996abc(0x470)]['getItem'](Xe(_0x1f4c78));}async[_0x1e47ba(0xe2)](_0x376ce8,_0xab245c){const _0x34abb6=_0x1e47ba;return!!this[_0x34abb6(0x470)]['setItem'](_0x376ce8,_0xab245c);}['updateOfflineData'](_0xdb46c0,_0x317ea5,_0x416c99,_0x9105d7){const _0x2370a1=_0x1e47ba,_0x137fc8=this['_revisionService'][_0x2370a1(0x374)](_0xdb46c0);this[_0x2370a1(0x303)][_0x2370a1(0x204)](_0xdb46c0,{'unitID':_0xdb46c0,'type':_0x317ea5,'awaitingChangeset':_0x416c99,'mutations':_0x9105d7,'rev':_0x137fc8}),this[_0x2370a1(0x1a0)]['has'](_0xdb46c0)||this[_0x2370a1(0x1f2)](_0xdb46c0);}[_0x1e47ba(0x1f2)](_0x4d5349){const _0x34b733=_0x1e47ba,_0x3a5f1c=this[_0x34b733(0x27a)]();_0x3a5f1c===0x0?this['_saveCache'](_0x4d5349):this['_saveTaskMap'][_0x34b733(0x204)](_0x4d5349,setTimeout(()=>this[_0x34b733(0xee)](_0x4d5349),_0x3a5f1c));}[_0x1e47ba(0x27a)](){const _0x567f72=_0x1e47ba;var _0x5a39d3;return(_0x5a39d3=this[_0x567f72(0xfd)][_0x567f72(0x159)](vt))!=null?_0x5a39d3:Jt;}[_0x1e47ba(0xee)](_0x38d32f){const _0x632332=_0x1e47ba,_0xe84cf5=this[_0x632332(0x1a0)][_0x632332(0x367)](_0x38d32f);return _0xe84cf5!==void 0x0&&window[_0x632332(0x471)](_0xe84cf5),this['_localStorageService'][_0x632332(0xf1)](Xe(_0x38d32f),this[_0x632332(0x303)][_0x632332(0x367)](_0x38d32f))['then'](()=>this['_saveTaskMap'][_0x632332(0xf8)](_0x38d32f));}async[_0x1e47ba(0x155)](){const _0x5aea45=_0x1e47ba,_0x2aea29=[];this[_0x5aea45(0x1a0)]['forEach']((_0x1c1d29,_0x2fe198)=>{const _0x197b83=_0x5aea45;window[_0x197b83(0x471)](_0x1c1d29),_0x2aea29[_0x197b83(0x441)](this[_0x197b83(0xee)](_0x2fe198)[_0x197b83(0x3c2)](()=>{this['_saveTaskMap']['delete'](_0x2fe198);}));}),await Promise[_0x5aea45(0x359)](_0x2aea29);}[_0x1e47ba(0x45c)](){const _0x474dbd=_0x1e47ba;this[_0x474dbd(0x2e4)](this[_0x474dbd(0x2db)][_0x474dbd(0x40e)](()=>{const _0x1159ec=_0x474dbd;if(this['_saveTaskMap'][_0x1159ec(0x3b8)])return this[_0x1159ec(0x121)]['t'](_0x1159ec(0x38b));}));}},exports['LocalCacheService']=qt([se(0x0,a[_0x1e47ba(0x306)]),se(0x1,a[_0x1e47ba(0x445)]),se(0x2,U[_0x1e47ba(0x2aa)]),se(0x3,h[_0x1e47ba(0x443)](a['LocaleService'])),se(0x4,h[_0x1e47ba(0x443)](u['RevisionService']))],exports['LocalCacheService']);function Xe(_0x44169d){const _0x2d6ef0=_0x1e47ba;return _0x2d6ef0(0x19f)+_0x44169d;}const Ee=h['createIdentifier'](_0x1e47ba(0x44c));var mt=(_0x5032d6=>(_0x5032d6[_0x5032d6['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x5032d6[_0x5032d6[_0x1e47ba(0x2b4)]=0x1]=_0x1e47ba(0x2b4),_0x5032d6))(mt||{});const qe=0x7530,Je=_0x1e47ba(0x234);class zt extends a['Disposable']{constructor(){const _0x28d628=_0x1e47ba;super(),d(this,_0x28d628(0x16f),a[_0x28d628(0x332)][_0x28d628(0x3ea)]()),d(this,_0x28d628(0x213),new Set()),d(this,_0x28d628(0x482),new Map()),d(this,_0x28d628(0x212),null),d(this,_0x28d628(0x408),new Map()),d(this,_0x28d628(0x3fa),new Map()),this[_0x28d628(0x480)]();}[_0x1e47ba(0x36c)](){const _0x14b220=_0x1e47ba;super[_0x14b220(0x36c)](),this[_0x14b220(0x408)]['forEach']((_0x2d8702,_0xaed48e)=>this[_0x14b220(0x2ac)](_0xaed48e)),this[_0x14b220(0x212)]&&window[_0x14b220(0x266)](this[_0x14b220(0x212)]);}['getUnitStatus$'](_0x4dcdf7){const _0x315781=_0x1e47ba;return this[_0x315781(0xef)](_0x4dcdf7)['pipe'](v[_0x315781(0x3dd)]());}['editingUnit'](_0x38914c){const _0x3d216b=_0x1e47ba;this['_selfUnitIDs'][_0x3d216b(0x3b8)]===0x0&&this[_0x3d216b(0x27e)](),this[_0x3d216b(0x213)][_0x3d216b(0x477)](_0x38914c),this[_0x3d216b(0x3c4)]({'type':0x0,'memberID':this['_id'],'unitID':_0x38914c});}[_0x1e47ba(0x254)](_0x1beb7e){const _0x1a8eb9=_0x1e47ba;this[_0x1a8eb9(0x213)][_0x1a8eb9(0xf8)](_0x1beb7e),this[_0x1a8eb9(0x213)][_0x1a8eb9(0x3b8)]===0x0&&this[_0x1a8eb9(0x212)]&&window[_0x1a8eb9(0x266)](this[_0x1a8eb9(0x212)]);}[_0x1e47ba(0x480)](){const _0x1ae9d3=_0x1e47ba;this[_0x1ae9d3(0x2e4)](a[_0x1ae9d3(0x251)](v[_0x1ae9d3(0x37a)](window,_0x1ae9d3(0x407))['subscribe'](_0x2685b4=>{const _0x16a131=_0x1ae9d3;if(_0x2685b4[_0x16a131(0x33b)]!==Je||!_0x2685b4[_0x16a131(0x1cf)])return;const _0x43d4eb=JSON[_0x16a131(0x337)](_0x2685b4['newValue']);this[_0x16a131(0x47b)](_0x43d4eb);}))),window[_0x1ae9d3(0x3b3)](_0x1ae9d3(0x3ec),()=>this[_0x1ae9d3(0x3c4)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1ae9d3(0x213)])}));}[_0x1e47ba(0x47b)](_0x5d729a){const _0x5beb61=_0x1e47ba;switch(_0x5d729a['type']){case 0x0:this[_0x5beb61(0x1a2)](_0x5d729a);break;case 0x1:this[_0x5beb61(0x362)](_0x5d729a);break;case 0x2:this[_0x5beb61(0x38e)](_0x5d729a);break;}}[_0x1e47ba(0x1a2)](_0x573d9c){const _0x3125c9=_0x1e47ba,{unitID:_0x1d376c,memberID:_0xf95d91}=_0x573d9c;if(!this['_unitOnClients'][_0x3125c9(0x174)](_0x1d376c)||!this[_0x3125c9(0x482)][_0x3125c9(0x367)](_0x1d376c)[_0x3125c9(0x174)](_0xf95d91)){const _0x3e1d4f=this['_unitOnClients']['get'](_0x1d376c)||new Set();_0x3e1d4f[_0x3125c9(0x477)](_0xf95d91),this[_0x3125c9(0x482)]['set'](_0x1d376c,_0x3e1d4f),this[_0x3125c9(0x229)](_0xf95d91),this[_0x3125c9(0x3c4)]({'type':0x0,'memberID':this['_id'],'unitID':_0x1d376c});}else this[_0x3125c9(0xef)](_0x1d376c)['next'](0x1);}[_0x1e47ba(0x229)](_0x459052){const _0x1883c2=_0x1e47ba;this['_removeClearOtherTimer'](_0x459052);const _0x41c4ed=window[_0x1883c2(0x393)](()=>{const _0x26046e=_0x1883c2;this[_0x26046e(0x482)][_0x26046e(0x1e6)](_0x3e484c=>{_0x3e484c['delete'](_0x459052);});},qe*0x2);this[_0x1883c2(0x408)]['set'](_0x459052,_0x41c4ed);}[_0x1e47ba(0x2ac)](_0x8c08c8){const _0x4213f6=_0x1e47ba;if(this[_0x4213f6(0x408)][_0x4213f6(0x174)](_0x8c08c8)){const _0x139a15=this[_0x4213f6(0x408)]['get'](_0x8c08c8);_0x139a15&&window[_0x4213f6(0x471)](_0x139a15),this[_0x4213f6(0x408)][_0x4213f6(0x204)](_0x8c08c8,null);}}[_0x1e47ba(0x362)](_0x59c475){const _0x191d15=_0x1e47ba,{memberID:_0x275215,unitIDs:_0x2f19fb}=_0x59c475;_0x2f19fb[_0x191d15(0x1e6)](_0x1c2f3e=>{const _0xe4157d=_0x191d15;var _0x1dad4b;const _0x1dbac3=this['_unitOnClients'][_0xe4157d(0x367)](_0x1c2f3e);_0x1dbac3&&(_0x1dbac3[_0xe4157d(0xf8)](_0x275215),(_0x1dad4b=this[_0xe4157d(0xef)](_0x1c2f3e))==null||_0x1dad4b[_0xe4157d(0x424)](_0x1dbac3[_0xe4157d(0x3b8)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x275215);}['_handleHeartbeatEvent'](_0x374aed){const _0x263fc3=_0x1e47ba;this['_scheduleClearOtherTimer'](_0x374aed[_0x263fc3(0x48d)]);}[_0x1e47ba(0x3c4)](_0x221f40){const _0x2ce5d8=_0x1e47ba;localStorage[_0x2ce5d8(0xf1)](Je,JSON[_0x2ce5d8(0x3f6)](_0x221f40));}[_0x1e47ba(0x27e)](){const _0x34faf7=_0x1e47ba;this[_0x34faf7(0x212)]=window['setInterval'](()=>{const _0x4c4288=_0x34faf7;this['_send']({'type':0x2,'memberID':this[_0x4c4288(0x16f)]});},qe);}['_ensureSubject'](_0x356384){const _0x3d1147=_0x1e47ba;return this[_0x3d1147(0x3fa)][_0x3d1147(0x174)](_0x356384)||this[_0x3d1147(0x3fa)]['set'](_0x356384,new v['BehaviorSubject'](0x0)),this[_0x3d1147(0x3fa)][_0x3d1147(0x367)](_0x356384);}}var Zt=(_0x13eda7,_0x486955,_0x103b67,_0x18c615)=>{for(var _0x3a8884=_0x486955,_0x11da8f=_0x13eda7['length']-0x1,_0x21ee55;_0x11da8f>=0x0;_0x11da8f--)(_0x21ee55=_0x13eda7[_0x11da8f])&&(_0x3a8884=_0x21ee55(_0x3a8884)||_0x3a8884);return _0x3a8884;},ze=(_0x36d181,_0x2f2100)=>(_0x384d2e,_0x1b16f5)=>_0x2f2100(_0x384d2e,_0x1b16f5,_0x36d181);let ve=class{constructor(_0x38c144,_0x254461){const _0x488040=_0x1e47ba;this[_0x488040(0x376)]=_0x38c144,this[_0x488040(0x35c)]=_0x254461;}[_0x1e47ba(0x386)](_0x3631f4){const _0x2944a6=_0x1e47ba;this[_0x2944a6(0x3f3)](_0x3631f4),this[_0x2944a6(0x3f8)](_0x3631f4);}[_0x1e47ba(0x454)](_0x1e1005){const _0x437922=_0x1e47ba,_0x4b4dfc=this['_injector'][_0x437922(0x367)](w[_0x437922(0x371)]),{redoCache:_0x8e785c}=_0x4b4dfc[_0x437922(0x2c3)]();if(_0x8e785c[_0x437922(0x3fb)]===0x0)return _0x1e1005;let _0x22ffab=a[_0x437922(0x332)][_0x437922(0x378)](_0x1e1005[_0x437922(0x3df)][0x0]);for(let _0x590050=0x0;_0x590050<_0x8e785c[_0x437922(0x3fb)];_0x590050++){const _0x2309d5={'id':'doc.mutation.rich-text-editing','params':{..._0x8e785c[_0x590050]}},_0x529603=this[_0x437922(0x35c)][_0x437922(0x22e)](_0x22ffab,_0x2309d5,!0x1);if(u[_0x437922(0x165)](_0x529603))throw _0x529603[_0x437922(0x343)];_0x22ffab=_0x529603['m1Prime'];}return{...a['Tools'][_0x437922(0x378)](_0x1e1005),'mutations':[_0x22ffab]};}['_transformUndoRedoStack'](_0x16d516){const _0x43557c=_0x1e47ba,_0xc7634f=this[_0x43557c(0x376)]['get'](w[_0x43557c(0x371)]),{undoCache:_0x3f5838,redoCache:_0x452758}=_0xc7634f[_0x43557c(0x2c3)]();if(_0x3f5838[_0x43557c(0x3fb)]===0x0||_0x452758[_0x43557c(0x3fb)]===0x0)return;const _0x14953d=[],_0x351c6d=[];let _0x56c9c8=a[_0x43557c(0x332)]['deepClone'](_0x16d516['mutations'][0x0]),_0x1aa4c3=a[_0x43557c(0x332)][_0x43557c(0x378)](_0x16d516[_0x43557c(0x3df)][0x0]);for(let _0x48b3dd=_0x3f5838[_0x43557c(0x3fb)]-0x1;_0x48b3dd>=0x0;_0x48b3dd--){const _0x212a5f={'id':_0x43557c(0x26a),'params':{..._0x3f5838[_0x48b3dd]}},_0x5e9d8d={'id':_0x43557c(0x26a),'params':{..._0x452758[_0x48b3dd]}},_0x2000e6=this[_0x43557c(0x35c)]['transformMutation'](_0x56c9c8,_0x212a5f,!0x1),_0x1847f4=this[_0x43557c(0x35c)][_0x43557c(0x22e)](_0x1aa4c3,_0x5e9d8d,!0x1);if(u[_0x43557c(0x165)](_0x2000e6))throw _0x2000e6[_0x43557c(0x343)];if(u[_0x43557c(0x165)](_0x1847f4))throw _0x1847f4[_0x43557c(0x343)];_0x14953d[_0x43557c(0x39b)](_0x2000e6[_0x43557c(0x233)][_0x43557c(0x183)]),_0x351c6d[_0x43557c(0x39b)](_0x1847f4['m2Prime'][_0x43557c(0x183)]),_0x56c9c8=_0x2000e6[_0x43557c(0x139)],_0x1aa4c3=_0x1847f4[_0x43557c(0x139)];}_0xc7634f[_0x43557c(0x404)]({'undoCache':_0x14953d,'redoCache':_0x351c6d});}[_0x1e47ba(0x3f8)](_0x26f520){const _0x5e0898=_0x1e47ba,_0x3da8da=this[_0x5e0898(0x376)][_0x5e0898(0x367)](w[_0x5e0898(0x371)]),_0x1eaae2=_0x3da8da[_0x5e0898(0x3f4)]();if(_0x1eaae2==null)return;const _0x1488a7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x26f520[_0x5e0898(0x2d2)],'actions':null,'textRanges':[_0x1eaae2]}}],_0x1c2292=this[_0x5e0898(0x35c)][_0x5e0898(0x41f)](_0x26f520,_0x1488a7);if(!u[_0x5e0898(0x3d0)](_0x1c2292))throw _0x1c2292[_0x5e0898(0x343)];const _0x285400=_0x1c2292[_0x5e0898(0x233)][0x0][_0x5e0898(0x183)][_0x5e0898(0x462)];Array[_0x5e0898(0x15d)](_0x285400)&&_0x285400[_0x5e0898(0x3fb)]&&_0x3da8da[_0x5e0898(0x22f)](_0x285400[0x0]);}};ve=Zt([ze(0x0,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),ze(0x1,u[_0x1e47ba(0x1c3)])],ve);var Qt=(_0x5c01f9,_0x653bb5,_0xd20c22,_0x35686b)=>{for(var _0x4309fa=_0x653bb5,_0x20f524=_0x5c01f9['length']-0x1,_0x3462d6;_0x20f524>=0x0;_0x20f524--)(_0x3462d6=_0x5c01f9[_0x20f524])&&(_0x4309fa=_0x3462d6(_0x4309fa)||_0x4309fa);return _0x4309fa;},Ze=(_0x2c3e75,_0xd9f4ce)=>(_0x54e372,_0x46d246)=>_0xd9f4ce(_0x54e372,_0x46d246,_0x2c3e75);let me=class{constructor(_0x74999e,_0x2db295){const _0x574004=_0x1e47ba;this[_0x574004(0x376)]=_0x74999e,this['_transformService']=_0x2db295;}[_0x1e47ba(0x35d)](_0x1a991d){const _0x5a1a76=_0x1e47ba;var _0xfa5009;const _0x3b46dc=this[_0x5a1a76(0x376)][_0x5a1a76(0x367)](w[_0x5a1a76(0x146)]),_0x3b0f5d=(_0xfa5009=_0x3b46dc['getSelections']())!=null?_0xfa5009:[],_0x6ae10c=_0x3b0f5d==null?void 0x0:_0x3b0f5d[_0x5a1a76(0x290)](w[_0x5a1a76(0x132)]);if(_0x6ae10c[_0x5a1a76(0x3fb)]===0x0)return;const _0x5abea1=[{'id':_0x5a1a76(0x26a),'params':{'unitId':_0x1a991d[_0x5a1a76(0x2d2)],'actions':null,'textRanges':_0x6ae10c}}],_0xfca21f=this['_transformService'][_0x5a1a76(0x41f)](_0x1a991d,_0x5abea1);if(!u[_0x5a1a76(0x3d0)](_0xfca21f))throw _0xfca21f[_0x5a1a76(0x343)];const _0x55c7ce=_0xfca21f[_0x5a1a76(0x233)][0x0][_0x5a1a76(0x183)][_0x5a1a76(0x462)];Array[_0x5a1a76(0x15d)](_0x55c7ce)&&_0x55c7ce[_0x5a1a76(0x3fb)]&&_0x3b46dc['replaceTextRanges'](_0x55c7ce,!0x1);}};me=Qt([Ze(0x0,h[_0x1e47ba(0x443)](h['Injector'])),Ze(0x1,u[_0x1e47ba(0x1c3)])],me);function ft(_0x2c3014){let _0x4d57df='';for(const _0x425893 of _0x2c3014){const {startOffset:_0x4b9422,endOffset:_0x169574,isActive:_0x2508ee}=_0x425893;_0x4d57df['length']&&(_0x4d57df+=','),_0x4d57df+=_0x4b9422+':'+_0x169574+':'+(_0x2508ee?'1':'0');}return _0x4d57df;}function es(_0x431bb6){const _0x10568c=_0x1e47ba,_0xb1b998=_0x431bb6[_0x10568c(0xff)](','),_0x360b98=[];for(const _0x92df38 of _0xb1b998){const [_0x10ffaa,_0x46ba6c,_0x2e7896]=_0x92df38[_0x10568c(0xff)](':');_0x360b98['push']({'startOffset':Number(_0x10ffaa),'endOffset':Number(_0x46ba6c),'collapsed':_0x10ffaa===_0x46ba6c,'isActive':_0x2e7896==='1'});}return _0x360b98['some'](_0x36314d=>_0x36314d['isActive'])||(_0x360b98[0x0][_0x10568c(0x41a)]=!0x0),_0x360b98;}class Ve extends a[_0x1e47ba(0x45e)]{constructor(){const _0x75b0a7=_0x1e47ba;super(...arguments),d(this,_0x75b0a7(0x41c),new v['BehaviorSubject'](null)),d(this,_0x75b0a7(0x412),this[_0x75b0a7(0x41c)][_0x75b0a7(0x2ad)]());}[_0x1e47ba(0x40b)](_0x24689f){const _0x59ee2d=_0x1e47ba,{unitID:_0x5e725e,memberID:_0x270034,textRanges:_0x49193b}=_0x24689f,_0x2d70dc=ft(_0x49193b),_0x4ed50d={'unitID':_0x5e725e,'memberID':_0x270034,'selection':_0x2d70dc};this['_collabCursorState$'][_0x59ee2d(0x424)](_0x4ed50d);}}var ts=(_0x332274,_0x31f2e5,_0x15d298,_0x3e6c74)=>{const _0x44a98c=_0x1e47ba;for(var _0xeed362=_0x31f2e5,_0x120451=_0x332274[_0x44a98c(0x3fb)]-0x1,_0x23d3b7;_0x120451>=0x0;_0x120451--)(_0x23d3b7=_0x332274[_0x120451])&&(_0xeed362=_0x23d3b7(_0xeed362)||_0xeed362);return _0xeed362;},Qe=(_0x2305f4,_0x279afb)=>(_0x3e0610,_0x2758f4)=>_0x279afb(_0x3e0610,_0x2758f4,_0x2305f4);let fe=class{constructor(_0x58e26e,_0x5298c2){const _0x192727=_0x1e47ba;this[_0x192727(0x376)]=_0x58e26e,this['_transformService']=_0x5298c2;}['transformSelections'](_0x3bdcd9){const _0x2daa35=_0x1e47ba;var _0x423828,_0x5e270c,_0x271bc7,_0x32a385;const _0x241038=this[_0x2daa35(0x376)]['get'](E[_0x2daa35(0x3b0)]),{pluginName:_0x17a326,unitId:_0x515c69,sheetId:_0x444813}=_0x241038[_0x2daa35(0x43e)]()||{},_0x507ea1=(_0x423828=_0x241038['getSelections']())!=null?_0x423828:[];if(_0x507ea1[_0x2daa35(0x3fb)]===0x0||!_0x17a326||!_0x515c69||!_0x444813)return;const _0x4bb07d=[{'id':E['SetSelectionsOperation']['id'],'params':{'unitId':_0x515c69,'subUnitId':_0x444813,'pluginName':_0x17a326,'selections':a[_0x2daa35(0x332)][_0x2daa35(0x378)](_0x507ea1)}}],_0x206ed0=this[_0x2daa35(0x35c)][_0x2daa35(0x41f)](_0x3bdcd9,_0x4bb07d);if(!u[_0x2daa35(0x3d0)](_0x206ed0))throw _0x206ed0['error'];const _0xfdbdc0=(_0x32a385=(_0x271bc7=(_0x5e270c=_0x206ed0[_0x2daa35(0x233)][0x0])==null?void 0x0:_0x5e270c['params'])==null?void 0x0:_0x271bc7[_0x2daa35(0xf9)])!=null?_0x32a385:_0x507ea1;Array[_0x2daa35(0x15d)](_0xfdbdc0)&&_0xfdbdc0[_0x2daa35(0x3fb)]&&this[_0x2daa35(0x376)][_0x2daa35(0x367)](a['ICommandService'])[_0x2daa35(0x43f)](E['SetSelectionsOperation']['id'],{'unitId':_0x515c69,'subUnitId':_0x444813,'pluginName':_0x17a326,'selections':_0xfdbdc0});}};fe=ts([Qe(0x0,h['Inject'](h[_0x1e47ba(0x488)])),Qe(0x1,u['ITransformService'])],fe);const ss=new Set([E[_0x1e47ba(0x10a)]['id']]);function is(_0x154f51,_0x268a3b,_0x396948,_0x2399cf,_0x2ee8ee){const _0x9fdfd5=_0x1e47ba;var _0x3a1477,_0x1a36e8,_0xbd115e,_0x3e8d84;const _0x178a82=[];for(const _0x5f524d of _0x154f51)if(ss[_0x9fdfd5(0x174)](_0x5f524d['id'])){if(_0x178a82[_0x9fdfd5(0x3fb)]>0x0)break;_0x178a82[_0x9fdfd5(0x441)](_0x5f524d);break;}else _0x178a82[_0x9fdfd5(0x441)](_0x5f524d);const _0x2952db=(_0x1a36e8=(_0x3a1477=_0x2ee8ee['getCurrentUser']())==null?void 0x0:_0x3a1477['userID'])!=null?_0x1a36e8:'unknown',_0x3d8738=(_0x3e8d84=(_0xbd115e=_0x2ee8ee[_0x9fdfd5(0x203)]())==null?void 0x0:_0xbd115e['memberID'])!=null?_0x3e8d84:_0x9fdfd5(0x3c5);return{'changeset':{'unitID':_0x268a3b,'type':u['mapDocumentTypeToUniverType'](_0x396948[_0x9fdfd5(0x24a)](_0x268a3b)),'baseRev':_0x2399cf['getCurrentRevForDocument'](_0x268a3b),'revision':0x0,'userID':_0x2952db,'memberID':_0x3d8738,'mutations':_0x178a82},'pendingMutations':_0x154f51[_0x9fdfd5(0x19c)](_0x178a82[_0x9fdfd5(0x3fb)])};}function ns(_0x12392f,_0x4d1661,_0x4116e9,_0x32bb36,_0x164363){const _0xc04a0=_0x1e47ba;var _0x422779,_0x481875,_0x130994,_0x461e5a;const _0x95bc1e=[_0x12392f[_0xc04a0(0x173)]((_0x2c825a,_0x210d17)=>{const _0x458bd2=_0xc04a0;var _0x3d3f9f;const {id:_0x5033db}=_0x2c825a,{id:_0x276890,type:_0x2749f2}=_0x210d17,_0x5781cc=(_0x3d3f9f=_0x2c825a['params'])!=null?_0x3d3f9f:{'actions':null},_0x48cd5a=_0x210d17['params'];if(_0x5033db&&_0x5033db!==_0x276890)throw new Error(_0x458bd2(0x3ab)+_0x5033db+_0x458bd2(0x481)+_0x276890+'.');return{..._0x2c825a,'id':_0x276890,'type':_0x2749f2,'params':{'unitId':_0x48cd5a[_0x458bd2(0x2b3)],'textRanges':_0x48cd5a[_0x458bd2(0x462)],'actions':a[_0x458bd2(0x3a6)][_0x458bd2(0x20d)](_0x5781cc['actions'],_0x48cd5a[_0x458bd2(0xe3)])}};},{})],_0x3a5e2c=(_0x481875=(_0x422779=_0x164363['getCurrentUser']())==null?void 0x0:_0x422779[_0xc04a0(0x461)])!=null?_0x481875:_0xc04a0(0x3c5),_0x11eb66=(_0x461e5a=(_0x130994=_0x164363[_0xc04a0(0x203)]())==null?void 0x0:_0x130994['memberID'])!=null?_0x461e5a:_0xc04a0(0x3c5);return{'changeset':{'unitID':_0x4d1661,'type':u[_0xc04a0(0x25c)](_0x4116e9[_0xc04a0(0x24a)](_0x4d1661)),'baseRev':_0x32bb36[_0xc04a0(0x374)](_0x4d1661),'revision':0x0,'userID':_0x3a5e2c,'memberID':_0x11eb66,'mutations':_0x95bc1e},'pendingMutations':[]};}var K=(_0x3ed691,_0x314022,_0x4f24d6,_0x4dc3c2)=>{const _0x4d5393=_0x1e47ba;for(var _0xa1f616=_0x314022,_0x2f8f19=_0x3ed691[_0x4d5393(0x3fb)]-0x1,_0x505824;_0x2f8f19>=0x0;_0x2f8f19--)(_0x505824=_0x3ed691[_0x2f8f19])&&(_0xa1f616=_0x505824(_0xa1f616)||_0xa1f616);return _0xa1f616;},m=(_0x57a010,_0x167175)=>(_0x44c635,_0x3ef949)=>_0x167175(_0x44c635,_0x3ef949,_0x57a010);const It=_0x1e47ba(0x10c),rs=0x7d0;var y=(_0x43f69e=>(_0x43f69e[_0x1e47ba(0x275)]='not_collab',_0x43f69e['SYNCED']='synced',_0x43f69e['PENDING']=_0x1e47ba(0x1d0),_0x43f69e['AWAITING']='awaiting',_0x43f69e[_0x1e47ba(0x3ae)]='awaiting_with_pending',_0x43f69e[_0x1e47ba(0x426)]=_0x1e47ba(0x18e),_0x43f69e[_0x1e47ba(0x2e9)]=_0x1e47ba(0x150),_0x43f69e[_0x1e47ba(0x3e8)]=_0x1e47ba(0x3af),_0x43f69e))(y||{});class X{constructor(_0x4d6b62,_0x1ed934,_0x5d0fed,_0x5bb1b8,_0x3b87b7,_0xcf49d5,_0x122f3d,_0x265a70,_0x328759){const _0x3d4364=_0x1e47ba;d(this,'_awaitingChangeset',null),d(this,_0x3d4364(0x474),[]),(this[_0x3d4364(0x2d2)]=_0x4d6b62,this['type']=_0x1ed934,this[_0x3d4364(0x409)]=_0x3b87b7,this[_0x3d4364(0x3cd)]=_0xcf49d5,this[_0x3d4364(0x261)]=_0x122f3d,this[_0x3d4364(0x193)]=_0x265a70,this[_0x3d4364(0x12a)]=_0x328759,this[_0x3d4364(0x333)]=_0x5d0fed,this[_0x3d4364(0x474)]=_0x5bb1b8);}[_0x1e47ba(0x158)](_0x144063){const _0x20a259=_0x1e47ba,_0x5d7fb3=this['_revisionService']['getCurrentRevForDocument'](this['unitID']);return _0x144063[_0x20a259(0xe8)]>_0x5d7fb3+0x1?(this[_0x20a259(0x409)][_0x20a259(0x135)]({'from':_0x5d7fb3,'to':_0x144063[_0x20a259(0xe8)]-0x1}),!0x0):!0x1;}[_0x1e47ba(0x1cc)](_0xf54c56){const _0x4c3382=_0x1e47ba;this[_0x4c3382(0x261)][_0x4c3382(0x291)](this[_0x4c3382(0x2d2)],_0xf54c56);}[_0x1e47ba(0x1e7)](_0x22f68c){const _0x2aa797=_0x1e47ba;var _0x434a60,_0xcd1e07;(_0xcd1e07=(_0x434a60=this[_0x2aa797(0x409)])['onTransformSelections'])==null||_0xcd1e07[_0x2aa797(0x198)](_0x434a60,_0x22f68c);}['_transformIMECache'](_0x47445f){const _0x27c068=_0x1e47ba;var _0x32c204,_0x299216;return(_0x299216=(_0x32c204=this[_0x27c068(0x409)])['onTransformIME'])==null?void 0x0:_0x299216[_0x27c068(0x198)](_0x32c204,_0x47445f);}['_transformRemoteChangesetByIMECache'](_0x3f3e04){const _0x5b9c16=_0x1e47ba;var _0x7863a5,_0x1af069,_0x5250b8;return(_0x5250b8=(_0x1af069=(_0x7863a5=this[_0x5b9c16(0x409)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1af069[_0x5b9c16(0x198)](_0x7863a5,_0x3f3e04))!=null?_0x5250b8:_0x3f3e04;}['_syncEditingCollabCursor'](_0x1ed291){const _0x5b2b5c=_0x1e47ba;var _0x4e2bca,_0x284f88;if(this[_0x5b2b5c(0x2b2)]===k['UNIVER_DOC']){const {unitID:_0x3dbdc4,mutations:_0x46ddba,memberID:_0x2f49f0}=_0x1ed291,_0x1da422=_0x46ddba[0x0][_0x5b2b5c(0x183)][_0x5b2b5c(0x462)];Array[_0x5b2b5c(0x15d)](_0x1da422)&&_0x1da422[_0x5b2b5c(0x3fb)]>0x0&&((_0x284f88=(_0x4e2bca=this['_handler'])[_0x5b2b5c(0x446)])==null||_0x284f88[_0x5b2b5c(0x198)](_0x4e2bca,{'unitID':_0x3dbdc4,'memberID':_0x2f49f0,'textRanges':_0x1da422}));}}[_0x1e47ba(0x240)](){const _0x1422d7=_0x1e47ba;this[_0x1422d7(0x12a)]['updateOfflineData'](this[_0x1422d7(0x2d2)],this[_0x1422d7(0x2b2)],this[_0x1422d7(0x333)],this[_0x1422d7(0x474)]);}['_getCurrentRevision'](){const _0x34542e=_0x1e47ba;return this[_0x34542e(0x193)]['getCurrentRevForDocument'](this[_0x34542e(0x2d2)]);}['_incrementRevisionNumber'](){const _0x2c6b3b=_0x1e47ba;this[_0x2c6b3b(0x193)][_0x2c6b3b(0x2cb)](this[_0x2c6b3b(0x2d2)]);}[_0x1e47ba(0x164)](_0x33f6da){const _0x5cbf0e=_0x1e47ba;var _0x5c6bb4;const _0x134cae=this[_0x5cbf0e(0x247)](_0x33f6da),_0x330f8f=a[_0x5cbf0e(0xde)](_0x134cae[_0x5cbf0e(0x3df)],this[_0x5cbf0e(0x3cd)],{'fromCollab':!0x0});if(!_0x330f8f[_0x5cbf0e(0x16d)])throw _0x330f8f[_0x5cbf0e(0x343)]instanceof Error?_0x330f8f[_0x5cbf0e(0x343)]:new Error((_0x5c6bb4=_0x330f8f['error'])!=null?_0x5c6bb4:_0x5cbf0e(0x296));this['_transformIMECache'](_0x134cae),this[_0x5cbf0e(0x1cc)](_0x33f6da),this[_0x5cbf0e(0x1e7)](_0x134cae),this[_0x5cbf0e(0x3a3)](_0x134cae),this[_0x5cbf0e(0x13e)]();}}let le=class extends X{constructor(_0x2211e5,_0x42b376,_0x557636,_0x3ef5f6,_0x4e6330,_0x1f090b,_0x4cbe88,_0x20cb03,_0x4a49e2){const _0x1f9a96=_0x1e47ba;super(_0x2211e5,_0x42b376,null,[],_0x557636,_0x20cb03,_0x4cbe88,_0x3ef5f6,_0x4e6330),d(this,_0x1f9a96(0x3ad),'synced'),(this[_0x1f9a96(0x376)]=_0x1f090b,this[_0x1f9a96(0x18f)]=_0x4a49e2);}[_0x1e47ba(0x262)](_0x26dd77){const _0x4bc70a=_0x1e47ba,_0x3fbc1e=this[_0x4bc70a(0x376)][_0x4bc70a(0x14f)](j,this['unitID'],this[_0x4bc70a(0x2b2)],[_0x26dd77],this[_0x4bc70a(0x409)]);return _0x3fbc1e[_0x4bc70a(0x356)](),_0x3fbc1e[_0x4bc70a(0x240)](),_0x3fbc1e;}[_0x1e47ba(0x128)](_0x5c7afd){const _0x33a787=_0x1e47ba;if(this[_0x33a787(0x158)](_0x5c7afd))return this[_0x33a787(0x376)][_0x33a787(0x14f)](H,this[_0x33a787(0x2d2)],this['type'],null,[],null,[_0x5c7afd],this['_handler']);try{return this[_0x33a787(0x164)](_0x5c7afd),this;}catch(_0xd42dba){return this[_0x33a787(0x18f)][_0x33a787(0x343)](_0x33a787(0x29d),_0xd42dba),this;}}[_0x1e47ba(0xea)](){const _0x564a04=_0x1e47ba;throw new Error(_0x564a04(0x253));}[_0x1e47ba(0x2de)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x2a36a0=_0x1e47ba;return this[_0x2a36a0(0x376)][_0x2a36a0(0x14f)](F,this['unitID'],this['type'],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x1e47ba(0x222)](){const _0x32985b=_0x1e47ba;throw new Error(_0x32985b(0x1f8));}};le=K([m(0x3,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x4,h['Inject'](exports[_0x1e47ba(0x23e)])),m(0x5,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),m(0x6,a[_0x1e47ba(0x385)]),m(0x7,a[_0x1e47ba(0x44e)]),m(0x8,a[_0x1e47ba(0x467)])],le);let j=class extends X{constructor(_0x18cdd5,_0x4da1fa,_0x28005f,_0x3b4e8d,_0x58455c,_0xe290a0,_0x4b454e,_0x58080d,_0xb560b4,_0x1c8317,_0x108670,_0x53e92b,_0x1add84,_0x52b34d){const _0xa1da23=_0x1e47ba;super(_0x18cdd5,_0x4da1fa,null,_0x28005f,_0x3b4e8d,_0x1c8317,_0x52b34d,_0xe290a0,_0x4b454e),d(this,_0xa1da23(0x3ad),_0xa1da23(0x1d0)),d(this,_0xa1da23(0x13c),null),d(this,_0xa1da23(0x3dc),null),(this[_0xa1da23(0x376)]=_0x58455c,this[_0xa1da23(0x29b)]=_0x58080d,this[_0xa1da23(0x18f)]=_0xb560b4,this[_0xa1da23(0xfd)]=_0x108670,this[_0xa1da23(0x35c)]=_0x53e92b,this[_0xa1da23(0x464)]=_0x1add84);}[_0x1e47ba(0x262)](_0x55376b){const _0x13f3a7=_0x1e47ba;return this[_0x13f3a7(0x474)]['push'](_0x55376b),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x14bae1){const _0x135fbe=_0x1e47ba;if(this[_0x135fbe(0x158)](_0x14bae1))return this[_0x135fbe(0x48a)](),this[_0x135fbe(0x376)][_0x135fbe(0x14f)](H,this[_0x135fbe(0x2d2)],this[_0x135fbe(0x2b2)],null,this[_0x135fbe(0x474)],null,[_0x14bae1],this[_0x135fbe(0x409)]);try{const _0x13728c=this[_0x135fbe(0x35c)][_0x135fbe(0x41f)](_0x14bae1,this[_0x135fbe(0x474)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x13728c)){const {c1Prime:_0x105e8d,m2Prime:_0x11572c}=_0x13728c;this[_0x135fbe(0x164)](_0x105e8d);const _0x65984b=this[_0x135fbe(0x376)][_0x135fbe(0x14f)](j,this[_0x135fbe(0x2d2)],this['type'],_0x11572c,this[_0x135fbe(0x409)]);return this[_0x135fbe(0x48a)](),_0x65984b['_schedule'](this[_0x135fbe(0x13c)]?Math[_0x135fbe(0x328)](0x0,new Date()[_0x135fbe(0x3c3)]()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x65984b;}throw _0x13728c['error'];}catch(_0x2ced19){return this[_0x135fbe(0x18f)][_0x135fbe(0x343)](_0x2ced19),this['_onConflict'](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x1e47ba(0x2de)](){const _0x40979a=_0x1e47ba;throw new Error(_0x40979a(0x406));}[_0x1e47ba(0x3cc)](){const _0x5342f4=_0x1e47ba;return this['_clearScheduledTask'](),this[_0x5342f4(0x376)][_0x5342f4(0x14f)](F,this[_0x5342f4(0x2d2)],this[_0x5342f4(0x2b2)],null,this[_0x5342f4(0x474)],this[_0x5342f4(0x409)]);}[_0x1e47ba(0x17f)](){return this;}[_0x1e47ba(0x356)](_0x266367){const _0x26f776=_0x1e47ba;_0x266367=_0x266367!=null?_0x266367:this['_getSendChangesetTimeout'](),this[_0x26f776(0x13c)]=new Date()[_0x26f776(0x3c3)](),this[_0x26f776(0x3dc)]=setTimeout(()=>{const _0x21fe21=_0x26f776;this[_0x21fe21(0x48a)]();let _0x4d8327=null;switch(this[_0x21fe21(0x2b2)]){case k[_0x21fe21(0x342)]:{_0x4d8327=is(this[_0x21fe21(0x474)],this[_0x21fe21(0x2d2)],this[_0x21fe21(0x464)],this[_0x21fe21(0x193)],this[_0x21fe21(0x29b)]);break;}case k[_0x21fe21(0x48c)]:{_0x4d8327=ns(this['_pendingMutations'],this[_0x21fe21(0x2d2)],this[_0x21fe21(0x464)],this[_0x21fe21(0x193)],this[_0x21fe21(0x29b)]);break;}default:throw new Error(_0x21fe21(0x1ae)+this[_0x21fe21(0x2b2)]+_0x21fe21(0x2c9));}const {changeset:_0xb32065,pendingMutations:_0x300bcb}=_0x4d8327;this[_0x21fe21(0x409)][_0x21fe21(0x48b)](_0xb32065);const _0x888042=_0x300bcb['length']?this['_injector']['createInstance']($,this['unitID'],this[_0x21fe21(0x2b2)],_0xb32065,_0x300bcb,this[_0x21fe21(0x409)]):this[_0x21fe21(0x376)][_0x21fe21(0x14f)](B,this[_0x21fe21(0x2d2)],this[_0x21fe21(0x2b2)],_0xb32065,this['_handler']);_0x888042['_updateLocalCache'](),this['_handler'][_0x21fe21(0x1d7)](this,_0x888042);},_0x266367);}[_0x1e47ba(0x2fb)](){const _0x3a0f88=_0x1e47ba;var _0x450622;return(_0x450622=this[_0x3a0f88(0xfd)][_0x3a0f88(0x159)](It))!=null?_0x450622:rs;}[_0x1e47ba(0x222)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1e47ba(0x48a)](){const _0x4d5545=_0x1e47ba;this[_0x4d5545(0x3dc)]!=null&&(clearTimeout(this[_0x4d5545(0x3dc)]),this[_0x4d5545(0x3dc)]=null);}[_0x1e47ba(0x242)](_0x2c5100){const _0x4592c5=_0x1e47ba;return this[_0x4592c5(0x48a)](),this[_0x4592c5(0x376)]['createInstance'](Y,this['unitID'],this['type'],null,this[_0x4592c5(0x474)],this[_0x4592c5(0x409)],_0x2c5100);}};j=K([m(0x4,h[_0x1e47ba(0x443)](h['Injector'])),m(0x5,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x6,h['Inject'](exports[_0x1e47ba(0x23e)])),m(0x7,h[_0x1e47ba(0x443)](G)),m(0x8,a[_0x1e47ba(0x467)]),m(0x9,a[_0x1e47ba(0x44e)]),m(0xa,a[_0x1e47ba(0x306)]),m(0xb,u[_0x1e47ba(0x1c3)]),m(0xc,a[_0x1e47ba(0x118)]),m(0xd,a[_0x1e47ba(0x385)])],j);let B=class extends X{constructor(_0x3eb101,_0x16ad24,_0x177346,_0x3f9aa8,_0x8d6d9e,_0x23ce9a,_0x5372f9,_0x421042,_0x33c0b3,_0x3920a0,_0x2d3101){const _0x208a98=_0x1e47ba;super(_0x3eb101,_0x16ad24,_0x177346,[],_0x3f9aa8,_0x421042,_0x2d3101,_0x23ce9a,_0x5372f9),d(this,_0x208a98(0x3ad),_0x208a98(0x13d)),(this[_0x208a98(0x376)]=_0x8d6d9e,this[_0x208a98(0x18f)]=_0x33c0b3,this[_0x208a98(0x35c)]=_0x3920a0);}[_0x1e47ba(0x262)](_0x491016){const _0x28b181=_0x1e47ba,_0x19cd63=this['_injector'][_0x28b181(0x14f)]($,this[_0x28b181(0x2d2)],this['type'],this[_0x28b181(0x333)],[_0x491016],this[_0x28b181(0x409)]);return _0x19cd63[_0x28b181(0x240)](),_0x19cd63;}[_0x1e47ba(0x128)](_0x5679f8){const _0x2b3f2f=_0x1e47ba;if(this[_0x2b3f2f(0x158)](_0x5679f8))return this[_0x2b3f2f(0x376)][_0x2b3f2f(0x14f)](H,this[_0x2b3f2f(0x2d2)],this['type'],this[_0x2b3f2f(0x333)],[],null,[_0x5679f8],this[_0x2b3f2f(0x409)]);try{const _0x16bff4=this[_0x2b3f2f(0x35c)][_0x2b3f2f(0x32a)]([_0x5679f8],[this[_0x2b3f2f(0x333)]],!0x1);if(u['isTransformChangesetsSuccess'](_0x16bff4)){const {c1Prime:_0x31a725,c2Prime:_0x51af20}=_0x16bff4;this['_executeRemoteChangeset'](_0x31a725[0x0]),_0x51af20[0x0][_0x2b3f2f(0xf4)]=this[_0x2b3f2f(0x353)]();const _0x54ea40=this[_0x2b3f2f(0x376)]['createInstance'](B,this[_0x2b3f2f(0x2d2)],this[_0x2b3f2f(0x2b2)],_0x51af20[0x0],this[_0x2b3f2f(0x409)]);return _0x54ea40[_0x2b3f2f(0x240)](),_0x54ea40;}return this[_0x2b3f2f(0x242)](!0x1);}catch(_0x1665f9){return this['_logService']['error'](_0x1665f9),this[_0x2b3f2f(0x242)](!0x1);}}[_0x1e47ba(0xea)](_0x37156a){const _0x1c8238=_0x1e47ba,_0x4ba2fd=this[_0x1c8238(0x193)][_0x1c8238(0x374)](this[_0x1c8238(0x2d2)]);if(_0x37156a['revision']<_0x4ba2fd-0x1)return this;if(this[_0x1c8238(0x158)](_0x37156a))return this[_0x1c8238(0x376)][_0x1c8238(0x14f)](H,this[_0x1c8238(0x2d2)],this[_0x1c8238(0x2b2)],null,[],this[_0x1c8238(0x333)],[],this[_0x1c8238(0x409)]);this[_0x1c8238(0x13e)]();const _0x4db01d=this[_0x1c8238(0x376)][_0x1c8238(0x14f)](le,this[_0x1c8238(0x2d2)],this['type'],this[_0x1c8238(0x409)]);return _0x4db01d[_0x1c8238(0x240)](),_0x4db01d;}[_0x1e47ba(0x2de)](_0x3707fb){const _0x158770=_0x1e47ba;return this['_onConflict'](!!(_0x3707fb!=null&&_0x3707fb[_0x158770(0x161)]));}[_0x1e47ba(0x3cc)](){const _0x414b46=_0x1e47ba;return this[_0x414b46(0x376)][_0x414b46(0x14f)](F,this[_0x414b46(0x2d2)],this[_0x414b46(0x2b2)],this[_0x414b46(0x333)],[],this[_0x414b46(0x409)]);}[_0x1e47ba(0x17f)](){return this;}[_0x1e47ba(0x222)](){const _0xeb20b9=_0x1e47ba;this[_0xeb20b9(0x409)][_0xeb20b9(0x48b)](this[_0xeb20b9(0x333)]);}[_0x1e47ba(0x242)](_0x532164){const _0x2de454=_0x1e47ba;return this['_injector']['createInstance'](Y,this[_0x2de454(0x2d2)],this[_0x2de454(0x2b2)],this[_0x2de454(0x333)],[],this[_0x2de454(0x409)],_0x532164);}};B=K([m(0x4,h[_0x1e47ba(0x443)](h['Injector'])),m(0x5,h['Inject'](u[_0x1e47ba(0x2b5)])),m(0x6,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0x7,a['ICommandService']),m(0x8,a[_0x1e47ba(0x467)]),m(0x9,u[_0x1e47ba(0x1c3)]),m(0xa,a[_0x1e47ba(0x385)])],B);let $=class extends X{constructor(_0x50f0fc,_0x35464e,_0x44adc6,_0x241a6b,_0x1b241e,_0x405cd2,_0x2067c9,_0x3cde56,_0x5ac5ac,_0x435595,_0x218dbd,_0x5b4db1){const _0xbc20a8=_0x1e47ba;super(_0x50f0fc,_0x35464e,_0x44adc6,_0x241a6b,_0x1b241e,_0x5ac5ac,_0x5b4db1,_0x2067c9,_0x3cde56),d(this,_0xbc20a8(0x3ad),_0xbc20a8(0x3b6)),(this[_0xbc20a8(0x376)]=_0x405cd2,this['_logService']=_0x435595,this['_transformService']=_0x218dbd);}['appendMutation'](_0x36666f){const _0x38d595=_0x1e47ba;return this['_pendingMutations'][_0x38d595(0x441)](_0x36666f),this;}[_0x1e47ba(0x128)](_0x55923d){const _0x1ba8dd=_0x1e47ba;if(this[_0x1ba8dd(0x158)](_0x55923d))return this[_0x1ba8dd(0x376)][_0x1ba8dd(0x14f)](H,this[_0x1ba8dd(0x2d2)],this['type'],this[_0x1ba8dd(0x333)],this['_pendingMutations'],null,[_0x55923d],this['_handler']);try{const _0x5e05f9=this[_0x1ba8dd(0x35c)][_0x1ba8dd(0x32a)]([_0x55923d],[this[_0x1ba8dd(0x333)]],!0x1);if(u['isTransformChangesetsSuccess'](_0x5e05f9)){const {c1Prime:_0x43036f,c2Prime:_0x41af83}=_0x5e05f9,_0x477675=this[_0x1ba8dd(0x35c)][_0x1ba8dd(0x41f)](_0x43036f[0x0],this[_0x1ba8dd(0x474)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x477675)){const {c1Prime:_0x46935c,m2Prime:_0x38391e}=_0x477675;return this['_executeRemoteChangeset'](_0x46935c),_0x41af83[0x0][_0x1ba8dd(0xf4)]=this[_0x1ba8dd(0x353)](),this[_0x1ba8dd(0x376)][_0x1ba8dd(0x14f)]($,this['unitID'],this['type'],_0x41af83[0x0],_0x38391e,this['_handler']);}throw _0x477675[_0x1ba8dd(0x343)];}throw _0x5e05f9[_0x1ba8dd(0x343)];}catch(_0x22e0a0){return this[_0x1ba8dd(0x18f)][_0x1ba8dd(0x343)](_0x22e0a0),this[_0x1ba8dd(0x242)](!0x1);}}['onRemoteAck'](_0x55462e){const _0x1e0c4c=_0x1e47ba;if(this[_0x1e0c4c(0x158)](_0x55462e))return this['_injector'][_0x1e0c4c(0x14f)](H,this['unitID'],this[_0x1e0c4c(0x2b2)],null,this[_0x1e0c4c(0x474)],this[_0x1e0c4c(0x333)],[],this[_0x1e0c4c(0x409)]);this['_incrementRevisionNumber']();const _0x394785=this[_0x1e0c4c(0x376)][_0x1e0c4c(0x14f)](j,this[_0x1e0c4c(0x2d2)],this[_0x1e0c4c(0x2b2)],this[_0x1e0c4c(0x474)],this[_0x1e0c4c(0x409)]);return _0x394785[_0x1e0c4c(0x356)](),_0x394785['_updateLocalCache'](),_0x394785;}[_0x1e47ba(0x2de)](_0x5e725b){const _0x2b748f=_0x1e47ba;return this[_0x2b748f(0x242)](!!(_0x5e725b!=null&&_0x5e725b[_0x2b748f(0x161)]));}[_0x1e47ba(0x3cc)](){const _0x805e52=_0x1e47ba;return this['_injector'][_0x805e52(0x14f)](F,this[_0x805e52(0x2d2)],this[_0x805e52(0x2b2)],this[_0x805e52(0x333)],this[_0x805e52(0x474)],this['_handler']);}['toggleOnline'](){return this;}[_0x1e47ba(0x222)](){const _0x4b802e=_0x1e47ba;this[_0x4b802e(0x409)][_0x4b802e(0x48b)](this['_awaitingChangeset']);}[_0x1e47ba(0x242)](_0x3abdc3){const _0x1f3334=_0x1e47ba;return this[_0x1f3334(0x376)][_0x1f3334(0x14f)](Y,this['unitID'],this[_0x1f3334(0x2b2)],null,this['_pendingMutations'],this['_handler'],_0x3abdc3);}};$=K([m(0x5,h['Inject'](h['Injector'])),m(0x6,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x7,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0x8,a['ICommandService']),m(0x9,a[_0x1e47ba(0x467)]),m(0xa,u['ITransformService']),m(0xb,a['IUndoRedoService'])],$);let Y=class extends X{constructor(_0x5dd58c,_0xcb51bf,_0x3a0305,_0x2b325d,_0x594849,_0x50e995=!0x1,_0x4621d9,_0x31a55b,_0x40c5b9,_0x4780c3,_0x54aba0,_0x5c130c,_0x207d97){const _0x16f47a=_0x1e47ba;super(_0x5dd58c,_0xcb51bf,_0x3a0305,_0x2b325d,_0x594849,_0x31a55b,_0x40c5b9,_0x54aba0,_0x4780c3),d(this,_0x16f47a(0x3ad),_0x16f47a(0x150)),(this[_0x16f47a(0x109)]=_0x50e995,this[_0x16f47a(0x468)]=_0x4621d9,this[_0x16f47a(0x121)]=_0x5c130c,this[_0x16f47a(0x2c1)]=_0x207d97,this[_0x16f47a(0x1d2)](),this[_0x16f47a(0x396)](),this['_disableEditing']());}[_0x1e47ba(0x262)](){return this;}[_0x1e47ba(0x128)](){return this;}['onRemoteAck'](){return this;}[_0x1e47ba(0x2de)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x1e47ba(0x222)](){const _0x574290=_0x1e47ba;throw new Error(_0x574290(0x422));}[_0x1e47ba(0x396)](){const _0x3e1d17=_0x1e47ba;this[_0x3e1d17(0x12a)]['updateOfflineData'](this['unitID'],this[_0x3e1d17(0x2b2)],null,[]);}[_0x1e47ba(0x1d2)](){const _0x4ce9e5=_0x1e47ba;this[_0x4ce9e5(0x109)]?this[_0x4ce9e5(0x2c1)][_0x4ce9e5(0x2e7)]({'title':this[_0x4ce9e5(0x121)]['t'](_0x4ce9e5(0x21c)),'content':this['_localeService']['t'](_0x4ce9e5(0x390)),'type':_0x4ce9e5(0x343),'duration':0x0}):this[_0x4ce9e5(0x2c1)][_0x4ce9e5(0x2e7)]({'title':this[_0x4ce9e5(0x121)]['t']('conflict.title'),'content':this[_0x4ce9e5(0x121)]['t']('conflict.content'),'type':_0x4ce9e5(0x343),'duration':0x0});}[_0x1e47ba(0x381)](){const _0x12831b=_0x1e47ba;this['_permissionService']['updatePermissionPoint'](new E[(_0x12831b(0x29f))](this[_0x12831b(0x2d2)])['id'],!0x1);}};Y=K([m(0x6,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x320)])),m(0x7,a[_0x1e47ba(0x44e)]),m(0x8,a['IUndoRedoService']),m(0x9,h['Inject'](exports[_0x1e47ba(0x23e)])),m(0xa,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0xb,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)])),m(0xc,U[_0x1e47ba(0x20e)])],Y);let F=class extends X{constructor(_0x18a72b,_0x918673,_0x5ad261,_0x5e9832,_0x5aa080,_0x3443fa,_0x3f76ff,_0x4d3f08,_0x28c2fa,_0x26dea2){const _0x387c6f=_0x1e47ba;super(_0x18a72b,_0x918673,_0x5ad261,_0x5e9832,_0x5aa080,_0x28c2fa,_0x26dea2,_0x3f76ff,_0x4d3f08),d(this,'status',_0x387c6f(0x3af)),this[_0x387c6f(0x376)]=_0x3443fa;}['appendMutation'](_0x137373){const _0x2b2c4c=_0x1e47ba;return this[_0x2b2c4c(0x474)]['push'](_0x137373),this[_0x2b2c4c(0x240)](),this;}[_0x1e47ba(0x128)](_0x1e046d){const _0x1e617c=_0x1e47ba;throw new Error(_0x1e617c(0x166));}[_0x1e47ba(0xea)](){const _0x1711b3=_0x1e47ba;throw new Error(_0x1711b3(0x145));}[_0x1e47ba(0x2de)](){const _0xef7467=_0x1e47ba;throw new Error(_0xef7467(0x24c));}['toggleOffline'](){return this;}[_0x1e47ba(0x17f)](){const _0x445762=_0x1e47ba,{_injector:_0x556b04,_pendingMutations:_0x46e4ba,_awaitingChangeset:_0x5e32fc,unitID:_0x172be6,_handler:_0x418263,type:_0x24ade9}=this,_0x55ae1e=pt(_0x556b04,_0x172be6,_0x24ade9,_0x5e32fc,_0x46e4ba,_0x418263);return _0x55ae1e instanceof j?_0x55ae1e['_schedule']():(_0x55ae1e instanceof $||_0x55ae1e instanceof B)&&_0x55ae1e[_0x445762(0x222)](),_0x55ae1e;}['resend'](){const _0xf23c6e=_0x1e47ba;throw new Error(_0xf23c6e(0x452));}};F=K([m(0x5,h[_0x1e47ba(0x443)](h['Injector'])),m(0x6,h['Inject'](u['RevisionService'])),m(0x7,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0x8,a[_0x1e47ba(0x44e)]),m(0x9,a[_0x1e47ba(0x385)])],F);let H=class extends X{constructor(_0x333f37,_0x35176c,_0x3ef973,_0x5095a8,_0x2485b1,_0x506f6c,_0x28dde0,_0x3a007f,_0x592f7a,_0x4a5f10,_0x15fd96,_0x2c005c,_0x25ab5f,_0x305c2e){const _0x2a5772=_0x1e47ba;super(_0x333f37,_0x35176c,_0x3ef973,_0x5095a8,_0x28dde0,_0x2c005c,_0x25ab5f,_0x592f7a,_0x4a5f10),d(this,'status',_0x2a5772(0x18e)),(this[_0x2a5772(0x167)]=_0x2485b1,this[_0x2a5772(0x345)]=_0x506f6c,this[_0x2a5772(0x376)]=_0x3a007f,this[_0x2a5772(0x18f)]=_0x15fd96,this[_0x2a5772(0x35c)]=_0x305c2e);}['onMissedChangesetFetched'](_0x3808df){const _0x570125=_0x1e47ba;try{const _0x276a75=[..._0x3808df,...this[_0x570125(0x345)]],_0x57db88=[this[_0x570125(0x333)]||this[_0x570125(0x167)]][_0x570125(0x31b)](_0x154b35=>!!_0x154b35);let _0x19407a,_0x2a4f84;if(_0x57db88[_0x570125(0x3fb)]){const _0x2ab982=this['_transformService']['transformChangesets'](_0x276a75,_0x57db88,!0x1);if(!u['isTransformChangesetsSuccess'](_0x2ab982))throw _0x2ab982['error'];_0x19407a=_0x2ab982[_0x570125(0x273)],_0x2a4f84=_0x2ab982[_0x570125(0x287)];}else _0x19407a=_0x276a75,_0x2a4f84=[];let _0x86631e=this[_0x570125(0x474)];_0x19407a[_0x570125(0x1e6)](_0x2fb57a=>{const _0x4a2135=_0x570125;let _0x28b58a;if(_0x86631e[_0x4a2135(0x3fb)]){const _0x193c9d=this[_0x4a2135(0x35c)][_0x4a2135(0x41f)](_0x2fb57a,_0x86631e);if(!u[_0x4a2135(0x3d0)](_0x193c9d))throw _0x193c9d[_0x4a2135(0x343)];_0x28b58a=_0x193c9d[_0x4a2135(0x273)],_0x86631e=_0x193c9d[_0x4a2135(0x233)];}else _0x28b58a=_0x2fb57a;this[_0x4a2135(0x164)](_0x28b58a);}),this[_0x570125(0x167)]&&this[_0x570125(0x13e)](),this[_0x570125(0x333)]&&_0x2a4f84[_0x570125(0x3fb)]&&(_0x2a4f84[0x0][_0x570125(0xf4)]=this[_0x570125(0x353)]());let _0x138644;if(this[_0x570125(0x333)]&&_0x86631e[_0x570125(0x3fb)]!==0x0)_0x138644=this['_injector']['createInstance']($,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],_0x2a4f84[0x0],_0x86631e,this[_0x570125(0x409)]);else{if(this['_awaitingChangeset']&&_0x86631e[_0x570125(0x3fb)]===0x0)_0x2a4f84[0x0][_0x570125(0xf4)]=this[_0x570125(0x353)](),_0x138644=this['_injector'][_0x570125(0x14f)](B,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],_0x2a4f84[0x0],this[_0x570125(0x409)]);else{if(_0x86631e['length']!==0x0){const _0x1df3eb=this[_0x570125(0x376)][_0x570125(0x14f)](j,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],_0x86631e,this[_0x570125(0x409)]);_0x1df3eb[_0x570125(0x356)](),_0x138644=_0x1df3eb;}else _0x138644=this[_0x570125(0x376)][_0x570125(0x14f)](le,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],this[_0x570125(0x409)]);}}return _0x138644[_0x570125(0x240)](),_0x138644;}catch(_0x114f4a){return this[_0x570125(0x18f)][_0x570125(0x343)](_0x570125(0x1b1),_0x570125(0x341),_0x114f4a),this[_0x570125(0x376)]['createInstance'](Y,this[_0x570125(0x2d2)],this[_0x570125(0x2b2)],this[_0x570125(0x333)],this[_0x570125(0x474)],this[_0x570125(0x409)],!0x1);}}['resend'](){const _0x79731e=_0x1e47ba;throw new Error(_0x79731e(0x416));}[_0x1e47ba(0x262)](_0xeb8ac){const _0x2ff1ec=_0x1e47ba;return this[_0x2ff1ec(0x474)]['push'](_0xeb8ac),this;}[_0x1e47ba(0x128)](_0xd0ef06){const _0x1d01f8=_0x1e47ba;return this[_0x1d01f8(0x345)]['push'](_0xd0ef06),this;}['onRemoteAck'](_0x461b){const _0x3c467e=_0x1e47ba;if(this[_0x3c467e(0x333)])return this[_0x3c467e(0x167)]=this[_0x3c467e(0x333)],this['_awaitingChangeset']=null,this;throw new Error(_0x3c467e(0x330));}[_0x1e47ba(0x2de)](_0x5383cf){const _0x4984f5=_0x1e47ba;return this[_0x4984f5(0x242)](!!(_0x5383cf!=null&&_0x5383cf[_0x4984f5(0x161)]));}['toggleOffline'](){const _0x494fa0=_0x1e47ba;return this[_0x494fa0(0x376)][_0x494fa0(0x14f)](F,this[_0x494fa0(0x2d2)],this[_0x494fa0(0x2b2)],this[_0x494fa0(0x333)],this[_0x494fa0(0x474)],this['_handler']);}[_0x1e47ba(0x17f)](){return this;}[_0x1e47ba(0x242)](_0x1747cb){const _0x5f567a=_0x1e47ba;return this['_injector'][_0x5f567a(0x14f)](Y,this[_0x5f567a(0x2d2)],this[_0x5f567a(0x2b2)],this[_0x5f567a(0x333)],this['_pendingMutations'],this[_0x5f567a(0x409)],_0x1747cb);}};H=K([m(0x7,h[_0x1e47ba(0x443)](h['Injector'])),m(0x8,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),m(0x9,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),m(0xa,a[_0x1e47ba(0x467)]),m(0xb,a['ICommandService']),m(0xc,a['IUndoRedoService']),m(0xd,u[_0x1e47ba(0x1c3)])],H);function pt(_0x466929,_0x24f097,_0x5de2e5,_0x59e3cc,_0x3050c5,_0x96a8c9){const _0x232231=_0x1e47ba;return _0x59e3cc&&_0x3050c5[_0x232231(0x3fb)]?_0x466929[_0x232231(0x14f)]($,_0x24f097,_0x5de2e5,_0x59e3cc,_0x3050c5,_0x96a8c9):_0x59e3cc?_0x466929[_0x232231(0x14f)](B,_0x24f097,_0x5de2e5,_0x59e3cc,_0x96a8c9):_0x3050c5[_0x232231(0x3fb)]?_0x466929['createInstance'](j,_0x24f097,_0x5de2e5,_0x3050c5,_0x96a8c9):_0x466929[_0x232231(0x14f)](le,_0x24f097,_0x5de2e5,_0x96a8c9);}var Ce=(_0x50d623,_0x19eb53,_0x253bea,_0xd26ab8)=>{for(var _0xc61b95=_0x19eb53,_0x2fb707=_0x50d623['length']-0x1,_0x32a7cb;_0x2fb707>=0x0;_0x2fb707--)(_0x32a7cb=_0x50d623[_0x2fb707])&&(_0xc61b95=_0x32a7cb(_0xc61b95)||_0xc61b95);return _0xc61b95;},I=(_0x4dc33e,_0x4fc35a)=>(_0x327368,_0x5b2e83)=>_0x4fc35a(_0x327368,_0x5b2e83,_0x4dc33e);exports['CollaborationController']=class extends a[_0x1e47ba(0x45e)]{constructor(_0x3e9fe9,_0x45eaa0,_0x1436f9){const _0x4d14db=_0x1e47ba;super(),d(this,_0x4d14db(0x272),new Map()),d(this,_0x4d14db(0x39f),new v[(_0x4d14db(0x184))]()),(this[_0x4d14db(0x376)]=_0x3e9fe9,this[_0x4d14db(0x405)]=_0x45eaa0,this[_0x4d14db(0x464)]=_0x1436f9,this[_0x4d14db(0x480)]());}['dispose'](){const _0x44e889=_0x1e47ba;super['dispose'](),this[_0x44e889(0x272)][_0x44e889(0x1e6)](_0x42caf3=>_0x42caf3['dispose']()),this[_0x44e889(0x272)]['clear']();}['getCollabEntity'](_0x2b2411){var _0x20be69;return(_0x20be69=this['_entities']['get'](_0x2b2411))!=null?_0x20be69:null;}[_0x1e47ba(0x1f3)](_0x3f8e4f){const _0x2fff11=_0x1e47ba,_0x3df6b5=this[_0x2fff11(0xec)](_0x3f8e4f);return _0x3df6b5?v['of'](_0x3df6b5):this[_0x2fff11(0x39f)][_0x2fff11(0x1cb)](T[_0x2fff11(0x31b)](_0x27bff3=>_0x27bff3[_0x2fff11(0x2d2)]===_0x3f8e4f));}[_0x1e47ba(0x480)](){const _0x24e064=_0x1e47ba;this[_0x24e064(0x464)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](v['takeUntil'](this[_0x24e064(0x2b1)]),T['delay'](0x10))['subscribe'](async _0x22ae11=>{const _0x4d92dc=_0x24e064,_0x155913=_0x22ae11[_0x4d92dc(0x231)](),_0x555480=await this[_0x4d92dc(0x39e)](_0x155913,k['UNIVER_SHEET']);this[_0x4d92dc(0x272)][_0x4d92dc(0x204)](_0x155913,_0x555480);}),this[_0x24e064(0x464)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x24e064(0x48c)])[_0x24e064(0x1cb)](v[_0x24e064(0x308)](this[_0x24e064(0x2b1)]),T[_0x24e064(0x3bd)](0x10))[_0x24e064(0x1cb)](T[_0x24e064(0x31b)](_0x3cd571=>!_0x3cd571[_0x24e064(0x231)]()['startsWith']('__')))[_0x24e064(0x319)](async _0x29c877=>{const _0x36c7fc=_0x24e064,_0x54b5d8=_0x29c877['getUnitId'](),_0x21dd07=await this[_0x36c7fc(0x39e)](_0x54b5d8,k[_0x36c7fc(0x48c)]);this['_entities']['set'](_0x54b5d8,_0x21dd07);}),v[_0x24e064(0x19a)](this[_0x24e064(0x464)][_0x24e064(0x27d)](a[_0x24e064(0x12f)][_0x24e064(0x342)]),this[_0x24e064(0x464)][_0x24e064(0x27d)](a['UniverInstanceType'][_0x24e064(0x48c)]))[_0x24e064(0x1cb)](v[_0x24e064(0x308)](this[_0x24e064(0x2b1)]))['subscribe'](_0x5008ef=>{const _0x594aca=_0x24e064,_0x47eb91=_0x5008ef[_0x594aca(0x231)](),_0x5425bb=this[_0x594aca(0x272)]['get'](_0x47eb91);_0x5425bb&&(_0x5425bb[_0x594aca(0x36c)](),this[_0x594aca(0x272)][_0x594aca(0xf8)](_0x47eb91));});}async[_0x1e47ba(0x39e)](_0x490867,_0x5c958c){const _0x1a64d0=_0x1e47ba,_0x3e9196=await this[_0x1a64d0(0x405)][_0x1a64d0(0x3fe)](_0x490867),_0x382353=this[_0x1a64d0(0x376)][_0x1a64d0(0x14f)](this[_0x1a64d0(0x151)](_0x5c958c),_0x490867,_0x5c958c,_0x3e9196);return await _0x382353[_0x1a64d0(0x46d)](),this['_entityInit$'][_0x1a64d0(0x424)](_0x382353),_0x382353;}[_0x1e47ba(0x151)](_0x30481c){const _0x14c62f=_0x1e47ba;switch(_0x30481c){case k[_0x14c62f(0x48c)]:return Ae;case k[_0x14c62f(0x342)]:return we;default:throw new Error(_0x14c62f(0x383)+_0x30481c);}}},exports[_0x1e47ba(0x450)]=Ce([a[_0x1e47ba(0x280)](a[_0x1e47ba(0x239)][_0x1e47ba(0x42f)],exports[_0x1e47ba(0x450)]),I(0x0,h[_0x1e47ba(0x443)](h['Injector'])),I(0x1,h['Inject'](exports[_0x1e47ba(0x17a)])),I(0x2,a[_0x1e47ba(0x118)])],exports[_0x1e47ba(0x450)]);let Ie=class extends a['RxDisposable']{constructor(_0x8327c8,_0x13b64a,_0x4a2b23,_0x40005a,_0x534eab,_0x352c4c,_0x132559,_0x722f36,_0x205b4e,_0x4a7c02,_0x17194c,_0x2569d2,_0x28459a){const _0x26d269=_0x1e47ba;super(),d(this,'_state$',new v['BehaviorSubject'](null)),d(this,_0x26d269(0x40f),this[_0x26d269(0x25f)][_0x26d269(0x2ad)]()),d(this,'_state'),d(this,'_collaborationPaused',!0x1),d(this,'status$',this[_0x26d269(0x40f)][_0x26d269(0x1cb)](T['map'](_0x31de48=>_0x31de48?_0x31de48['status']:y['OFFLINE']),T[_0x26d269(0x3a5)](0x1))),d(this,_0x26d269(0x228),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x26d269(0x2d2)]=_0x8327c8,this[_0x26d269(0x1ef)]=_0x13b64a,this[_0x26d269(0x2f7)]=_0x4a2b23,this['_injector']=_0x40005a,this[_0x26d269(0x12a)]=_0x534eab,this[_0x26d269(0x206)]=_0x352c4c,this['_localeService']=_0x132559,this[_0x26d269(0x193)]=_0x722f36,this[_0x26d269(0x18f)]=_0x205b4e,this[_0x26d269(0x3cd)]=_0x4a7c02,this['_messageService']=_0x17194c,this[_0x26d269(0x468)]=_0x2569d2,this['_singleActiveUnitService']=_0x28459a);}get[_0x1e47ba(0x40a)](){const _0x5d1f10=_0x1e47ba;return this[_0x5d1f10(0x42e)];}async[_0x1e47ba(0x46d)](){const _0x4806b5=_0x1e47ba;if(this[_0x4806b5(0x40a)])throw new Error(_0x4806b5(0x33d));await this[_0x4806b5(0x480)]();}[_0x1e47ba(0x309)](){return this['_collaborationPaused']=!0x0,a['toDisposable'](()=>{const _0x1ec511=_0x55a2;this[_0x1ec511(0x301)]=!0x1,this[_0x1ec511(0x2da)]();});}[_0x1e47ba(0x196)](_0x1fab05){const _0x2fdd62=_0x1e47ba;this['_state']=_0x1fab05,this[_0x2fdd62(0x25f)][_0x2fdd62(0x424)](_0x1fab05);}async[_0x1e47ba(0x480)](){const _0x4ba58d=_0x1e47ba;var _0x443669;return this[_0x4ba58d(0x196)](await this[_0x4ba58d(0x39a)]()),this[_0x4ba58d(0x40c)]&&((_0x443669=this[_0x4ba58d(0x40c)])==null||_0x443669[_0x4ba58d(0x3c7)](this[_0x4ba58d(0x2d2)]),this[_0x4ba58d(0x2e4)](a['toDisposable'](this[_0x4ba58d(0x40c)][_0x4ba58d(0x3be)](this[_0x4ba58d(0x2d2)])[_0x4ba58d(0x319)](_0x44c806=>{const _0xa49b89=_0x4ba58d;this[_0xa49b89(0x18f)][_0xa49b89(0x199)]('[CollaborationEntity]',_0xa49b89(0x2e1),_0x44c806),_0x44c806===mt['OTHER_CLIENTS_EDITING']?(this['_messageService'][_0xa49b89(0x2e7)]({'content':this[_0xa49b89(0x121)]['t'](_0xa49b89(0x41b)),'type':ce[_0xa49b89(0x1b6)][_0xa49b89(0x1da)]}),this[_0xa49b89(0x468)][_0xa49b89(0x246)](new E['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0xa49b89(0x468)][_0xa49b89(0x246)](new E[(_0xa49b89(0x29f))](this[_0xa49b89(0x2d2)])['id'],!0x0);})))),this[_0x4ba58d(0x2e4)](a[_0x4ba58d(0x251)](this[_0x4ba58d(0x2f7)][_0x4ba58d(0x219)][_0x4ba58d(0x319)](_0x131e79=>{const _0x48d830=_0x4ba58d;_0x131e79===W[_0x48d830(0x256)]?this[_0x48d830(0x15c)]():_0x131e79===W['OFFLINE']&&this[_0x48d830(0x12c)]();}))),this[_0x4ba58d(0x2e4)](a[_0x4ba58d(0x251)](this['_session'][_0x4ba58d(0x288)][_0x4ba58d(0x319)](_0x2a170c=>{const _0x4d0fd7=_0x4ba58d;try{switch(_0x2a170c[_0x4d0fd7(0x2a0)]){case u['CollaborationEvent'][_0x4d0fd7(0x45f)]:{this[_0x4d0fd7(0x30f)](u['parseProtocolChangeset'](_0x2a170c[_0x4d0fd7(0x1b7)]));break;}case u[_0x4d0fd7(0x27c)][_0x4d0fd7(0x11f)]:{this[_0x4d0fd7(0x285)](_0x2a170c['data']);break;}case u['CollaborationEvent'][_0x4d0fd7(0x466)]:{this[_0x4d0fd7(0x30d)]();break;}case u[_0x4d0fd7(0x27c)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x2a170c['data'][_0x4d0fd7(0x2fe)][_0x4d0fd7(0x290)](_0x3abe7f=>u[_0x4d0fd7(0x180)](_0x3abe7f)));break;}case u[_0x4d0fd7(0x27c)][_0x4d0fd7(0x3f1)]:this[_0x4d0fd7(0x30d)]({'isPermissionRej':!0x0});}}catch(_0x1ccdf0){throw console['error'](_0x4d0fd7(0x3cf),_0x1ccdf0),_0x1ccdf0;}}))),this['_state'];}[_0x1e47ba(0x1f9)](){const _0x44262d=_0x1e47ba;this[_0x44262d(0x228)]=!0x1;}[_0x1e47ba(0x36e)](){const _0x48b846=_0x1e47ba;if(this[_0x48b846(0x228)])throw new Error(_0x48b846(0x318));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x28d285){const _0x436b33=_0x1e47ba;this[_0x436b33(0x36e)](),this[_0x436b33(0x196)](this[_0x436b33(0x42e)]['appendMutation'](_0x28d285)),this['_unlockTransition']();}['_onRemoteChangeset'](_0x268915){const _0x5a6df7=_0x1e47ba;if(!(_0x268915[_0x5a6df7(0xe8)]<=this[_0x5a6df7(0x193)][_0x5a6df7(0x374)](this['unitID']))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x268915);return;}this[_0x5a6df7(0x2dc)](_0x268915);}}[_0x1e47ba(0x2da)](){const _0x36550a=_0x1e47ba;this['_remoteChangesetQueue']['forEach'](_0x31c70c=>this[_0x36550a(0x2dc)](_0x31c70c)),this[_0x36550a(0x237)]=[];}[_0x1e47ba(0x2dc)](_0x1a9cb4){const _0x2354db=_0x1e47ba,_0x48ca46=this[_0x2354db(0x206)][_0x2354db(0x14c)][_0x2354db(0x179)](this[_0x2354db(0x206)][_0x2354db(0x14c)][_0x2354db(0x10f)]()[_0x2354db(0x14e)])(_0x1a9cb4[_0x2354db(0x3df)],null)||_0x1a9cb4['mutations'],_0x5992fe={..._0x1a9cb4,'mutations':_0x48ca46};this[_0x2354db(0x36e)](),this[_0x2354db(0x196)](this[_0x2354db(0x42e)][_0x2354db(0x128)](_0x5992fe)),this[_0x2354db(0x1f9)]();}['_onRemoteACK'](_0x4d9001){const _0x519728=_0x1e47ba;this[_0x519728(0x36e)](),this['_updateState'](this['_state']['onRemoteAck'](_0x4d9001)),this[_0x519728(0x1f9)]();}[_0x1e47ba(0x30d)](_0x45a150){const _0x290c81=_0x1e47ba;this['_lockTransition'](),this['_updateState'](this[_0x290c81(0x42e)][_0x290c81(0x2de)](_0x45a150)),this['_unlockTransition']();}[_0x1e47ba(0x3f0)](_0x2ab24a){const _0x1b2f49=_0x1e47ba;if(!(this[_0x1b2f49(0x42e)]instanceof H))throw new TypeError(_0x1b2f49(0x47f));const _0x56998d=_0x2ab24a['map'](_0x7ee5fa=>{const _0x2e8501=_0x1b2f49,_0x2163ef=this[_0x2e8501(0x206)][_0x2e8501(0x14c)][_0x2e8501(0x179)](this[_0x2e8501(0x206)][_0x2e8501(0x14c)][_0x2e8501(0x10f)]()[_0x2e8501(0x14e)])(_0x7ee5fa[_0x2e8501(0x3df)],null)||_0x7ee5fa[_0x2e8501(0x3df)];return{..._0x7ee5fa,'mutations':_0x2163ef};});this[_0x1b2f49(0x36e)](),this[_0x1b2f49(0x196)](this[_0x1b2f49(0x42e)]['onMissedChangesetFetched'](_0x56998d)),this[_0x1b2f49(0x1f9)]();}[_0x1e47ba(0x12c)](){const _0xb17bba=_0x1e47ba;this[_0xb17bba(0x36e)](),this[_0xb17bba(0x196)](this[_0xb17bba(0x42e)][_0xb17bba(0x3cc)]()),this[_0xb17bba(0x1f9)]();}[_0x1e47ba(0x15c)](){const _0x2cfb6e=_0x1e47ba;this[_0x2cfb6e(0x36e)](),this['_updateState'](this[_0x2cfb6e(0x42e)][_0x2cfb6e(0x17f)]()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x43993e=>{const _0x129375=_0x55a2;this[_0x129375(0x2f7)][_0x129375(0x219)][_0x129375(0x1cb)](T[_0x129375(0x3e2)](0x1))[_0x129375(0x319)](async _0x12acb0=>{const _0x311dca=_0x129375;_0x43993e(await this['_createInitialStateImpl'](_0x12acb0===W[_0x311dca(0x256)]));});});}[_0x1e47ba(0x163)](){const _0x5baeb7=_0x1e47ba,_0x2cc756=this[_0x5baeb7(0x2d2)];return{'onStateChange':(_0x5496d3,_0x2116e0)=>{const _0xee2ec5=_0x5baeb7;if(_0x5496d3!==this[_0xee2ec5(0x42e)])throw new Error(_0xee2ec5(0x2cf)+_0x5496d3[_0xee2ec5(0x3ad)]+_0xee2ec5(0x3ee)+_0x2116e0['status']+'\x0aCurrent:\x20'+this['_state']['status']);this[_0xee2ec5(0x196)](_0x2116e0);},'onSendChangeset':_0x23843a=>{const _0x7a4ceb=_0x5baeb7,_0x181b39={'eventID':u['CollaborationEvent'][_0x7a4ceb(0x3d8)],'data':{'unitID':_0x23843a[_0x7a4ceb(0x2d2)],'unitType':this[_0x7a4ceb(0x1ef)],'changeset':_0x23843a,'memberID':this[_0x7a4ceb(0x2f7)][_0x7a4ceb(0x331)]()}};this['_session']['send'](_0x181b39,this[_0x7a4ceb(0x2d2)]);},'onMissingChangesets':({from:_0x18959b,to:_0x21dfce})=>{const _0xc37af7=_0x5baeb7;this[_0xc37af7(0x18f)][_0xc37af7(0x199)]('[CollaborationEntity]',_0xc37af7(0x2d6)+_0x18959b+'\x20to\x20'+_0x21dfce);const _0x334652={'eventID':u[_0xc37af7(0x27c)][_0xc37af7(0x347)],'data':{'unitID':_0x2cc756,'unitType':this[_0xc37af7(0x1ef)],'from':_0x18959b,'to':_0x21dfce}};this[_0xc37af7(0x2f7)][_0xc37af7(0x29a)](_0x334652,this[_0xc37af7(0x2d2)]);}};}async['_createInitialStateImpl'](_0x29f88e){const _0x1a00a3=_0x1e47ba;var _0x32eca4,_0x1e828c;const _0x2c2212=await this[_0x1a00a3(0x12a)][_0x1a00a3(0x122)](this[_0x1a00a3(0x2d2)]),_0x42f011=(_0x32eca4=_0x2c2212==null?void 0x0:_0x2c2212[_0x1a00a3(0x3df)])!=null?_0x32eca4:[],_0x3c4f09=(_0x1e828c=_0x2c2212==null?void 0x0:_0x2c2212[_0x1a00a3(0x478)])!=null?_0x1e828c:null,_0x4e558e=this[_0x1a00a3(0x2d2)];try{this[_0x1a00a3(0x437)](_0x3c4f09,_0x42f011);}catch(_0x3b0ce6){this[_0x1a00a3(0x18f)][_0x1a00a3(0x343)](_0x3b0ce6);}const _0x280fae=this['_createHandler']();if(_0x29f88e){const _0x1ecc7e=pt(this[_0x1a00a3(0x376)],_0x4e558e,this[_0x1a00a3(0x1ef)],_0x3c4f09,_0x42f011,_0x280fae);return _0x1ecc7e instanceof j?_0x1ecc7e[_0x1a00a3(0x356)]():(_0x1ecc7e instanceof $||_0x1ecc7e instanceof B)&&_0x1ecc7e[_0x1a00a3(0x222)](),_0x1ecc7e;}return this[_0x1a00a3(0x376)]['createInstance'](F,_0x4e558e,this[_0x1a00a3(0x1ef)],_0x3c4f09,_0x42f011,_0x280fae);}[_0x1e47ba(0x437)](_0x456ec2,_0x991bba){const _0x407b09=_0x1e47ba;var _0x2ea47d,_0x167dd6;const _0x118370=this['_compressMutationService'][_0x407b09(0x14c)]['fetchThroughInterceptors'](this[_0x407b09(0x206)][_0x407b09(0x14c)][_0x407b09(0x10f)]()[_0x407b09(0x14e)]);(_0x2ea47d=_0x118370((_0x456ec2==null?void 0x0:_0x456ec2[_0x407b09(0x3df)])||[],null))==null||_0x2ea47d[_0x407b09(0x1e6)](_0x1eedc6=>this['_commandService']['executeCommand'](_0x1eedc6['id'],_0x1eedc6[_0x407b09(0x183)])),(_0x167dd6=_0x118370(_0x991bba||[],null))==null||_0x167dd6['forEach'](_0x2bb7a9=>this['_commandService']['executeCommand'](_0x2bb7a9['id'],_0x2bb7a9[_0x407b09(0x183)]));}};Ie=Ce([I(0x3,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),I(0x4,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),I(0x5,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x1c2)])),I(0x6,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)])),I(0x7,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),I(0x8,a[_0x1e47ba(0x467)]),I(0x9,a[_0x1e47ba(0x44e)]),I(0xa,U['IMessageService']),I(0xb,a[_0x1e47ba(0x320)]),I(0xc,h[_0x1e47ba(0x3c0)](Ee))],Ie);let Ae=class extends Ie{constructor(_0x429310,_0x23f020,_0x2ec31c,_0x19fbfc,_0x3aefc3,_0x34c929,_0x5052f8,_0x59d240,_0x200a04,_0x104095,_0x5e2b03,_0x3ef0d0,_0x33707b,_0x158f43,_0x47ffed,_0x7c19af,_0x2d0c0a){const _0x222994=_0x1e47ba;super(_0x429310,_0x23f020,_0x2ec31c,_0x19fbfc,_0x3aefc3,_0x34c929,_0x5052f8,_0x59d240,_0x33707b,_0x158f43,_0x47ffed,_0x7c19af,_0x2d0c0a),this[_0x222994(0x2d2)]=_0x429310,this[_0x222994(0x2b2)]=_0x23f020,this[_0x222994(0x2b6)]=_0x2ec31c,this[_0x222994(0x3b2)]=_0x200a04,this[_0x222994(0x235)]=_0x104095,this[_0x222994(0x417)]=_0x5e2b03,this[_0x222994(0x46e)]=_0x3ef0d0;}[_0x1e47ba(0x163)](){const _0x29c59e=_0x1e47ba,_0x5daee2=super[_0x29c59e(0x163)]();return _0x5daee2['onTransformIME']=_0x541ee0=>this[_0x29c59e(0x235)][_0x29c59e(0x386)](_0x541ee0),_0x5daee2[_0x29c59e(0x257)]=_0xbc6b10=>this[_0x29c59e(0x417)][_0x29c59e(0x35d)](_0xbc6b10),_0x5daee2[_0x29c59e(0x446)]=_0x28c955=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x28c955),_0x5daee2[_0x29c59e(0x1aa)]=_0x581131=>this[_0x29c59e(0x235)]['transformRemoteChangeset'](_0x581131),_0x5daee2;}async[_0x1e47ba(0x480)](){const _0x4a4a13=_0x1e47ba,_0x4f3218=await super['_init']();return this[_0x4a4a13(0x3b2)][_0x4a4a13(0x1e4)]['pipe'](v[_0x4a4a13(0x308)](this[_0x4a4a13(0x2b1)]))[_0x4a4a13(0x319)](_0x212c0d=>{const _0x5cd10=_0x4a4a13;if(_0x212c0d==null)return;const {unitId:_0x1747e5,redoState:_0x48f8bb,commandId:_0x3181ea}=_0x212c0d;if(_0x1747e5!==this['unitID'])return;const _0x10d129={'id':_0x3181ea,'type':a[_0x5cd10(0x200)][_0x5cd10(0x2ef)],'params':{'unitId':_0x1747e5,'actions':_0x48f8bb[_0x5cd10(0xe3)],'textRanges':null}};this[_0x5cd10(0x433)](_0x10d129);}),_0x4f3218;}};Ae=Ce([I(0x3,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),I(0x4,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),I(0x5,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x1c2)])),I(0x6,h['Inject'](a[_0x1e47ba(0x37f)])),I(0x7,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),I(0x8,h[_0x1e47ba(0x443)](w[_0x1e47ba(0xf0)])),I(0x9,h[_0x1e47ba(0x443)](ve)),I(0xa,h[_0x1e47ba(0x443)](me)),I(0xb,h[_0x1e47ba(0x443)](Ve)),I(0xc,a[_0x1e47ba(0x467)]),I(0xd,a[_0x1e47ba(0x44e)]),I(0xe,U[_0x1e47ba(0x34b)]),I(0xf,a[_0x1e47ba(0x320)]),I(0x10,h[_0x1e47ba(0x3c0)](Ee))],Ae);let we=class extends Ie{constructor(_0x35cd7c,_0xd64e25,_0x5010a8,_0x372460,_0x57d3e2,_0x431d70,_0x4cf08b,_0x3487c2,_0x5a2a77,_0x5b33bc,_0x38ca63,_0x3a4ec3,_0x98e482,_0x5bd89a){const _0x33b16d=_0x1e47ba;super(_0x35cd7c,_0xd64e25,_0x5010a8,_0x372460,_0x57d3e2,_0x431d70,_0x4cf08b,_0x3487c2,_0x5b33bc,_0x38ca63,_0x3a4ec3,_0x98e482,_0x5bd89a),this[_0x33b16d(0x2d2)]=_0x35cd7c,this[_0x33b16d(0x2b2)]=_0xd64e25,this[_0x33b16d(0x2b6)]=_0x5010a8,this[_0x33b16d(0x289)]=_0x5a2a77;}[_0x1e47ba(0x163)](){const _0x12b01c=_0x1e47ba,_0x4bd8eb=super[_0x12b01c(0x163)]();return _0x4bd8eb[_0x12b01c(0x257)]=_0x153118=>this[_0x12b01c(0x289)][_0x12b01c(0x35d)](_0x153118),_0x4bd8eb;}async[_0x1e47ba(0x480)](){const _0x2d8f4c=_0x1e47ba,_0x2f0f75=await super[_0x2d8f4c(0x480)]();return this[_0x2d8f4c(0x2e4)](this['_commandService'][_0x2d8f4c(0x36d)]((_0x5e9199,_0x210ab3)=>{const _0x23c3af=_0x2d8f4c;if(_0x5e9199[_0x23c3af(0x2b2)]!==a[_0x23c3af(0x200)]['MUTATION']||_0x210ab3!=null&&_0x210ab3[_0x23c3af(0x2a7)]||_0x210ab3!=null&&_0x210ab3['onlyLocal'])return;const _0x351666=_0x5e9199[_0x23c3af(0x183)];if((_0x351666==null?void 0x0:_0x351666['unitId'])!==this[_0x23c3af(0x2d2)])return;const _0x17940e=_0x5e9199,_0x52fa5c=this[_0x23c3af(0x206)]['interceptor'][_0x23c3af(0x179)](this[_0x23c3af(0x206)][_0x23c3af(0x14c)][_0x23c3af(0x10f)]()['COMPRESS_MUTATION_SEND'])([_0x17940e],null)||[_0x17940e];this[_0x23c3af(0x433)](_0x52fa5c[0x0]);})),_0x2f0f75;}};we=Ce([I(0x3,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),I(0x4,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x23e)])),I(0x5,h[_0x1e47ba(0x443)](u['CompressMutationService'])),I(0x6,h[_0x1e47ba(0x443)](a['LocaleService'])),I(0x7,h[_0x1e47ba(0x443)](u[_0x1e47ba(0x2b5)])),I(0x8,h[_0x1e47ba(0x443)](fe)),I(0x9,a[_0x1e47ba(0x467)]),I(0xa,a[_0x1e47ba(0x44e)]),I(0xb,U[_0x1e47ba(0x34b)]),I(0xc,a['IPermissionService']),I(0xd,h['Optional'](Ee))],we);const et=['purple300',_0x1e47ba(0x310),_0x1e47ba(0x137),_0x1e47ba(0x15a),'blue400',_0x1e47ba(0x39c)];class We extends a[_0x1e47ba(0x152)]{constructor(){const _0x515c88=_0x1e47ba;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x515c88(0x177),0x0);}['assignAColorForMemberID'](_0x61c2a1){const _0x3cb441=_0x1e47ba;if(this[_0x3cb441(0x434)][_0x3cb441(0x174)](_0x61c2a1))return this[_0x3cb441(0x434)][_0x3cb441(0x367)](_0x61c2a1);const _0xb2eb90=et[this[_0x3cb441(0x177)]];return this['_colorIndex']=(this[_0x3cb441(0x177)]+0x1)%et[_0x3cb441(0x3fb)],this['_assignedColors'][_0x3cb441(0x204)](_0x61c2a1,_0xb2eb90),_0xb2eb90;}}var os=(_0x391830,_0x51edc8,_0x5c8e68,_0x44b988)=>{const _0x5d9db2=_0x1e47ba;for(var _0xa504a4=_0x51edc8,_0x21ac54=_0x391830[_0x5d9db2(0x3fb)]-0x1,_0x152917;_0x21ac54>=0x0;_0x21ac54--)(_0x152917=_0x391830[_0x21ac54])&&(_0xa504a4=_0x152917(_0xa504a4)||_0xa504a4);return _0xa504a4;},q=(_0x6edf8f,_0x1981cb)=>(_0x3e4c5a,_0x2ebbea)=>_0x1981cb(_0x3e4c5a,_0x2ebbea,_0x6edf8f);const as=0x12c,cs=0x64,ls=()=>{let _0x4443f8=[],_0x32f257=!0x1;return _0x593f68=>{const _0x3050c0=_0x55a2;_0x4443f8[_0x3050c0(0x441)](_0x593f68),_0x32f257||(_0x32f257=!0x0,setTimeout(()=>{_0x4443f8['forEach'](_0x265396=>_0x265396()),_0x4443f8=[],_0x32f257=!0x1;}));};};let Ue=class extends a[_0x1e47ba(0x45e)]{constructor(_0x644fe7,_0x4cd997,_0x58cad9,_0x1b6b95,_0x3a9603,_0x64f40f,_0xf31c81,_0x1f6985){const _0x3c4a51=_0x1e47ba;super(),d(this,_0x3c4a51(0x21a),!0x1),d(this,_0x3c4a51(0x480),!0x1),d(this,'_cursorInfo$',new v[(_0x3c4a51(0x432))](new Map())),d(this,'cursorInfo$',this[_0x3c4a51(0x3a8)][_0x3c4a51(0x2ad)]()),d(this,_0x3c4a51(0x252),new v[(_0x3c4a51(0x432))]([])),d(this,_0x3c4a51(0x3ca),this['_roomMembers$'][_0x3c4a51(0x1cb)](v[_0x3c4a51(0x484)](as))),d(this,_0x3c4a51(0x3e6),He((_0x524a46,_0x414cb0)=>{const _0x2c0c24=_0x3c4a51,_0x28652e={'eventID':u['CollaborationEvent'][_0x2c0c24(0x1c4)],'data':{'unitID':this[_0x2c0c24(0x2d2)],'memberID':this['_session']['getMemberID'](),'selection':Ke[_0x2c0c24(0x346)](_0x524a46,_0x414cb0[_0x2c0c24(0x215)])}};this['_session'][_0x2c0c24(0x29a)](_0x28652e,this[_0x2c0c24(0x2d2)]);},cs)),(this['unitID']=_0x644fe7,this['_session']=_0x4cd997,this[_0x3c4a51(0x376)]=_0x58cad9,this[_0x3c4a51(0x1b2)]=_0x1b6b95,this[_0x3c4a51(0x29b)]=_0x3a9603,this[_0x3c4a51(0x464)]=_0x64f40f,this[_0x3c4a51(0x3cd)]=_0xf31c81,this[_0x3c4a51(0x1eb)]=_0x1f6985);}get['cursorInfo'](){const _0x1608bf=_0x1e47ba;return this[_0x1608bf(0x3a8)][_0x1608bf(0x192)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x307d79=_0x1e47ba;super[_0x307d79(0x36c)](),this[_0x307d79(0x3a8)][_0x307d79(0x424)](new Map()),this[_0x307d79(0x3a8)]['complete'](),this['_roomMembers$'][_0x307d79(0x424)]([]),this[_0x307d79(0x252)][_0x307d79(0x3d6)]();}[_0x1e47ba(0x46d)](){const _0x498bbf=_0x1e47ba;this[_0x498bbf(0x480)]||(this[_0x498bbf(0x480)]=!0x0,this[_0x498bbf(0x2f7)][_0x498bbf(0x219)]['pipe'](v['takeUntil'](this['dispose$']))[_0x498bbf(0x319)](_0x352352=>{_0x352352===W['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x498bbf(0x2f7)][_0x498bbf(0x288)]['pipe'](v[_0x498bbf(0x308)](this['dispose$']))['subscribe'](_0x54b96d=>{const _0x31745a=_0x498bbf,_0x44847e=_0x54b96d[_0x31745a(0x2a0)];_0x44847e===u['CollaborationEvent'][_0x31745a(0x1c4)]&&this[_0x31745a(0x209)](_0x54b96d),_0x44847e===u['CollaborationEvent'][_0x31745a(0x1af)]&&this[_0x31745a(0x2ce)](_0x54b96d);}),this[_0x498bbf(0x439)](),this[_0x498bbf(0x2e4)](this[_0x498bbf(0x3cd)]['onCommandExecuted'](_0x16462c=>{const _0xe39f58=_0x498bbf;if(this[_0xe39f58(0x21a)]&&_0x16462c['id']===E[_0xe39f58(0x3d9)]['id']&&_0x16462c['params'][_0xe39f58(0x2b3)]===this[_0xe39f58(0x2d2)]){const _0x502f59=_0x16462c[_0xe39f58(0x183)];this[_0xe39f58(0x3e6)](_0x502f59['subUnitId'],_0x502f59[_0xe39f58(0xf9)][0x0]);}})));}[_0x1e47ba(0x209)](_0x40e865){const _0x48193b=_0x1e47ba;var _0x51a7e8,_0x34c064;const {memberID:_0x3c45d4,selection:_0x534bc2}=_0x40e865[_0x48193b(0x1b7)],{sheetName:_0x49a89f,range:_0x167367}=Ke[_0x48193b(0x33e)](_0x534bc2),_0x432495={'name':(_0x34c064=(_0x51a7e8=this['_memberService'][_0x48193b(0x3d3)](this[_0x48193b(0x2d2)],_0x3c45d4))==null?void 0x0:_0x51a7e8[_0x48193b(0x316)])!=null?_0x34c064:'Unknown\x20user','range':this['_getMergeRange'](_0x49a89f,_0x167367),'sheetID':_0x49a89f,'color':this[_0x48193b(0x1b2)][_0x48193b(0x444)](_0x3c45d4),'selection':_0x534bc2},_0x3f7c04=this[_0x48193b(0x2a5)];_0x3f7c04[_0x48193b(0x204)](_0x3c45d4,_0x432495),this[_0x48193b(0x3a8)][_0x48193b(0x424)](_0x3f7c04);}[_0x1e47ba(0x2ce)](_0x4b794f){const _0x4d5b0d=_0x1e47ba,{memberID:_0x7680df}=_0x4b794f[_0x4d5b0d(0x1b7)],_0x57aad2=this[_0x4d5b0d(0x2a5)];_0x57aad2[_0x4d5b0d(0xf8)](_0x7680df),this[_0x4d5b0d(0x3a8)][_0x4d5b0d(0x424)](_0x57aad2);}[_0x1e47ba(0x44f)](_0x5c5ba0,_0x1bc258){const _0x27a2cc=_0x1e47ba;var _0x143e80,_0x10e6a1;const _0x2bba22=(_0x10e6a1=(_0x143e80=this[_0x27a2cc(0x464)][_0x27a2cc(0x17c)](this['unitID']))==null?void 0x0:_0x143e80[_0x27a2cc(0x1be)](_0x5c5ba0))==null?void 0x0:_0x10e6a1['getMergeData']();return(_0x2bba22==null?void 0x0:_0x2bba22[_0x27a2cc(0x479)](_0x3866cc=>a[_0x27a2cc(0x22d)]['contains'](_0x3866cc,_0x1bc258)))||_0x1bc258;}['_onRefRangeChange'](){const _0x80e7e9=_0x1e47ba,_0x29a04f=new a[(_0x80e7e9(0x3a1))](),_0x5c8467=ls(),_0x1fca73=()=>{const _0x3f7348=_0x80e7e9;_0x29a04f[_0x3f7348(0x36c)]();const _0x452225=(_0x1aadf4,_0x4f39fe,_0x59c0d1,_0x176bea)=>{const _0x211198=_0x3f7348;let _0x2edaea=[];switch(_0x1aadf4['id']){case E[_0x211198(0x15f)][_0x211198(0x214)]:{_0x2edaea=E[_0x211198(0x37c)](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x258)]:{_0x2edaea=E[_0x211198(0x1f1)](_0x1aadf4,_0x176bea);break;}case E['EffectRefRangId'][_0x211198(0x293)]:{_0x2edaea=E[_0x211198(0x13b)](_0x1aadf4,_0x176bea);break;}case E['EffectRefRangId'][_0x211198(0x21f)]:{_0x2edaea=E[_0x211198(0x26c)](_0x1aadf4,_0x176bea);break;}case E['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2edaea=E['handleInsertRangeMoveRight'](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x2ec)]:{_0x2edaea=E[_0x211198(0x3e3)](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x284)]:{_0x2edaea=E['handleMoveRange'](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)][_0x211198(0x110)]:{_0x2edaea=E[_0x211198(0x28b)](_0x1aadf4,_0x176bea);break;}case E[_0x211198(0x15f)]['RemoveRowCommandId']:{_0x2edaea=E['handleIRemoveRow'](_0x1aadf4,_0x176bea);break;}}const _0x1aee59=E[_0x211198(0x2f1)](_0x2edaea,_0x176bea),_0x32f947=this[_0x211198(0x2a5)][_0x211198(0x367)](_0x4f39fe);if(_0x32f947&&_0x1aee59){const _0x356532={..._0x32f947,'range':_0x1aee59};this[_0x211198(0x2a5)][_0x211198(0x204)](_0x4f39fe,_0x356532),_0x5c8467(()=>{const _0x5c3910=_0x211198,_0x219bed=this['_refRangeService'][_0x5c3910(0x107)](_0x1aee59,_0x37d066=>(_0x219bed[_0x5c3910(0x36c)](),_0x452225(_0x37d066,_0x4f39fe,_0x59c0d1,_0x1aee59)));_0x29a04f[_0x5c3910(0x477)](_0x219bed);});}return{'redos':[],'undos':[]};};this[_0x3f7348(0x2a5)]['forEach']((_0x44d302,_0x464849)=>{const _0x1f0636=_0x3f7348,{range:_0x19b4fd,sheetID:_0x5bc773}=_0x44d302,_0x4f898a=this[_0x1f0636(0x1eb)]['registerRefRange'](_0x19b4fd,_0x36d70d=>(_0x4f898a[_0x1f0636(0x36c)](),_0x452225(_0x36d70d,_0x464849,_0x5bc773,_0x19b4fd)));_0x29a04f['add'](_0x4f898a);});};this[_0x80e7e9(0x2e4)](a[_0x80e7e9(0x251)](this[_0x80e7e9(0x3a8)][_0x80e7e9(0x319)](()=>{_0x1fca73();})));}['_toggleOnline'](){const _0xabfcba=_0x1e47ba;var _0x161e4b,_0x5aac6f;if(this[_0xabfcba(0x21a)]=!0x0,((_0x161e4b=this[_0xabfcba(0x464)][_0xabfcba(0x197)]())==null?void 0x0:_0x161e4b['getUnitId']())!==this[_0xabfcba(0x2d2)])return;const _0x4a778a=(_0x5aac6f=this['_injector'][_0xabfcba(0x367)](E['SelectionManagerService'])[_0xabfcba(0xfc)]())==null?void 0x0:_0x5aac6f[0x0];_0x4a778a&&this[_0xabfcba(0x3e6)](this[_0xabfcba(0x464)]['getCurrentUnitForType'](a[_0xabfcba(0x12f)]['UNIVER_SHEET'])[_0xabfcba(0x208)]()['getSheetId'](),_0x4a778a);}[_0x1e47ba(0x12c)](){const _0x1ea4e0=_0x1e47ba;this[_0x1ea4e0(0x21a)]=!0x1;}};Ue=os([q(0x2,h[_0x1e47ba(0x443)](h['Injector'])),q(0x3,h['Inject'](We)),q(0x4,h[_0x1e47ba(0x443)](G)),q(0x5,a[_0x1e47ba(0x118)]),q(0x6,a[_0x1e47ba(0x44e)]),q(0x7,h[_0x1e47ba(0x443)](E['RefRangeService']))],Ue);var hs=(_0x56e027,_0x2c9576,_0x1d7dab,_0x565730)=>{for(var _0x84f5bb=_0x2c9576,_0x176e74=_0x56e027['length']-0x1,_0x4e3e5c;_0x176e74>=0x0;_0x176e74--)(_0x4e3e5c=_0x56e027[_0x176e74])&&(_0x84f5bb=_0x4e3e5c(_0x84f5bb)||_0x84f5bb);return _0x84f5bb;},V=(_0x23deac,_0x4693c8)=>(_0x229b70,_0x119495)=>_0x4693c8(_0x229b70,_0x119495,_0x23deac);const _s=0x12c,us=0x64;let Pe=class extends a[_0x1e47ba(0x45e)]{constructor(_0x265106,_0x3f9d86,_0x13d5f7,_0x599409,_0x58edd8,_0x10cbc2,_0x3bbe61,_0xf5ae2d,_0x4ead64){const _0x2d22b7=_0x1e47ba;super(),d(this,_0x2d22b7(0x21a),!0x1),d(this,_0x2d22b7(0x480),!0x1),d(this,_0x2d22b7(0x3a8),new v[(_0x2d22b7(0x432))](new Map())),d(this,'cursorInfo$',this[_0x2d22b7(0x3a8)]['asObservable']()),d(this,_0x2d22b7(0x252),new v[(_0x2d22b7(0x432))]([])),d(this,_0x2d22b7(0x3ca),this['_roomMembers$'][_0x2d22b7(0x1cb)](v['debounceTime'](_s))),d(this,_0x2d22b7(0x3e6),He(_0x4ed716=>{const _0x167cf8=_0x2d22b7,_0x42f95e={'eventID':u[_0x167cf8(0x27c)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x167cf8(0x2d2)],'memberID':this[_0x167cf8(0x2f7)][_0x167cf8(0x331)](),'selection':ft(_0x4ed716)}};this[_0x167cf8(0x2f7)][_0x167cf8(0x29a)](_0x42f95e,this['unitID']);},us)),(this[_0x2d22b7(0x2d2)]=_0x265106,this['_session']=_0x3f9d86,this[_0x2d22b7(0x376)]=_0x13d5f7,this['_colorAssignService']=_0x599409,this[_0x2d22b7(0x29b)]=_0x58edd8,this[_0x2d22b7(0x1c1)]=_0x10cbc2,this['_transformService']=_0x3bbe61,this[_0x2d22b7(0x464)]=_0xf5ae2d,this[_0x2d22b7(0x3cd)]=_0x4ead64);}get[_0x1e47ba(0x2a5)](){const _0x40e512=_0x1e47ba;return this[_0x40e512(0x3a8)][_0x40e512(0x192)]();}get[_0x1e47ba(0x106)](){const _0x2ea27c=_0x1e47ba;return this['_roomMembers$'][_0x2ea27c(0x192)]();}[_0x1e47ba(0x36c)](){const _0x457e6f=_0x1e47ba;super[_0x457e6f(0x36c)](),this[_0x457e6f(0x3a8)][_0x457e6f(0x424)](new Map()),this[_0x457e6f(0x3a8)]['complete'](),this['_roomMembers$']['next']([]),this[_0x457e6f(0x252)][_0x457e6f(0x3d6)]();}[_0x1e47ba(0x46d)](){const _0x561b49=_0x1e47ba;this[_0x561b49(0x480)]||(this[_0x561b49(0x480)]=!0x0,this[_0x561b49(0x2f7)][_0x561b49(0x219)][_0x561b49(0x1cb)](v[_0x561b49(0x308)](this['dispose$']))['subscribe'](_0x63ed4d=>{const _0x3c2ad2=_0x561b49;_0x63ed4d===W[_0x3c2ad2(0x256)]?this['_toggleOnline']():this[_0x3c2ad2(0x12c)]();}),this[_0x561b49(0x2f7)]['event$'][_0x561b49(0x1cb)](v['takeUntil'](this[_0x561b49(0x2b1)]))['subscribe'](_0x3f4725=>{const _0x26a318=_0x561b49,_0x22952c=_0x3f4725[_0x26a318(0x2a0)];_0x22952c===u[_0x26a318(0x27c)][_0x26a318(0x1c4)]&&this[_0x26a318(0x209)](_0x3f4725),_0x22952c===u[_0x26a318(0x27c)]['USERS_LEAVE']&&this[_0x26a318(0x2ce)](_0x3f4725);}),this[_0x561b49(0x2e4)](this[_0x561b49(0x3cd)][_0x561b49(0x36d)](_0x5748c2=>{const _0x4a2a63=_0x561b49,_0x565f62=_0x5748c2[_0x4a2a63(0x183)];_0x565f62!=null&&this[_0x4a2a63(0x21a)]&&_0x5748c2['id']===w[_0x4a2a63(0x1fc)]['id']&&_0x565f62[_0x4a2a63(0x2b3)]===this[_0x4a2a63(0x2d2)]&&_0x565f62[_0x4a2a63(0x30b)]===!0x1&&this['_updateLocalCursor'](_0x565f62[_0x4a2a63(0x2a6)]);})),this['_syncEditingCollabCursorService']['collabCursorState$']['pipe'](v[_0x561b49(0x308)](this[_0x561b49(0x2b1)]))['subscribe'](_0x108b90=>{const _0xb24f3b=_0x561b49;if((_0x108b90==null?void 0x0:_0x108b90['unitID'])!==this[_0xb24f3b(0x2d2)])return;const _0x3ad51f={'eventID':u[_0xb24f3b(0x27c)][_0xb24f3b(0x1c4)],'data':_0x108b90};this[_0xb24f3b(0x209)](_0x3ad51f);}),this[_0x561b49(0x2e4)](this[_0x561b49(0x3cd)][_0x561b49(0x36d)](_0x1bae3a=>{const _0x276b78=_0x561b49;if(_0x1bae3a['params']==null)return;const _0x2cf4ca=_0x1bae3a['params'];if(_0x1bae3a['id']!==w['RichTextEditingMutation']['id']||_0x2cf4ca['unitId']!==this[_0x276b78(0x2d2)])return;const _0x2f7e2f={'id':_0x276b78(0x26a),'params':_0x2cf4ca},_0x23e4c9=this[_0x276b78(0x2a5)];for(const [_0x1e83f1,_0x3f9169]of _0x23e4c9){const _0x3d0ae7={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x276b78(0x2d2)],'actions':null,'textRanges':_0x3f9169['ranges']}},_0x3d812c=this['_transformService']['transformMutation'](_0x2f7e2f,_0x3d0ae7,!0x1);if(u['isTransformMutationFailure'](_0x3d812c))throw _0x3d812c['error'];_0x23e4c9[_0x276b78(0x204)](_0x1e83f1,{..._0x3f9169,'ranges':_0x3d812c['m2Prime'][_0x276b78(0x183)][_0x276b78(0x462)]});}queueMicrotask(()=>{const _0x25b470=_0x276b78;this[_0x25b470(0x3a8)][_0x25b470(0x424)](_0x23e4c9);});})));}[_0x1e47ba(0x209)](_0x531241){const _0x5b876b=_0x1e47ba;var _0x18124b,_0x4205e8;const {memberID:_0x1dddeb,selection:_0x40ab58}=_0x531241['data'],_0x3aa3e9=es(_0x40ab58),_0x338635=(_0x4205e8=(_0x18124b=this[_0x5b876b(0x29b)]['getMember'](this[_0x5b876b(0x2d2)],_0x1dddeb))==null?void 0x0:_0x18124b[_0x5b876b(0x316)])!=null?_0x4205e8:_0x5b876b(0x101),_0x5845e2={'color':this['_colorAssignService'][_0x5b876b(0x444)](_0x1dddeb),'name':_0x338635,'ranges':_0x3aa3e9},_0x3bb03e=this[_0x5b876b(0x2a5)];_0x3bb03e[_0x5b876b(0x204)](_0x1dddeb,_0x5845e2),this[_0x5b876b(0x3a8)][_0x5b876b(0x424)](_0x3bb03e);}[_0x1e47ba(0x2ce)](_0x124d4d){const _0x594b97=_0x1e47ba,{memberID:_0x363428}=_0x124d4d[_0x594b97(0x1b7)],_0x5ea91c=this[_0x594b97(0x2a5)];_0x5ea91c[_0x594b97(0xf8)](_0x363428),this[_0x594b97(0x3a8)][_0x594b97(0x424)](_0x5ea91c);}[_0x1e47ba(0x15c)](){const _0x1f89b3=_0x1e47ba;var _0x475232;if(this['_online']=!0x0,((_0x475232=this[_0x1f89b3(0x464)][_0x1f89b3(0x197)]())==null?void 0x0:_0x475232[_0x1f89b3(0x231)]())!==this[_0x1f89b3(0x2d2)])return;const _0x5afce8=this[_0x1f89b3(0x376)][_0x1f89b3(0x367)](w[_0x1f89b3(0x146)])[_0x1f89b3(0xfc)](),_0x5cbeb0=_0x5afce8==null?void 0x0:_0x5afce8[_0x1f89b3(0x290)](w['serializeTextRange']);Array['isArray'](_0x5cbeb0)&&_0x5cbeb0['length']>0x0&&this[_0x1f89b3(0x3e6)](_0x5cbeb0);}[_0x1e47ba(0x12c)](){this['_online']=!0x1;}};Pe=hs([V(0x2,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),V(0x3,h[_0x1e47ba(0x443)](We)),V(0x4,h[_0x1e47ba(0x443)](G)),V(0x5,h[_0x1e47ba(0x443)](Ve)),V(0x6,u[_0x1e47ba(0x1c3)]),V(0x7,a[_0x1e47ba(0x118)]),V(0x8,a[_0x1e47ba(0x44e)])],Pe);var ds=(_0x4e5778,_0x51d8fd,_0x21a92f,_0x402968)=>{const _0x3fc9b0=_0x1e47ba;for(var _0x1ca265=_0x51d8fd,_0x5a8554=_0x4e5778[_0x3fc9b0(0x3fb)]-0x1,_0x3db594;_0x5a8554>=0x0;_0x5a8554--)(_0x3db594=_0x4e5778[_0x5a8554])&&(_0x1ca265=_0x3db594(_0x1ca265)||_0x1ca265);return _0x1ca265;},De=(_0xba476d,_0x4acd5e)=>(_0x2ad9ae,_0x2ce68b)=>_0x4acd5e(_0x2ad9ae,_0x2ce68b,_0xba476d);let z=class extends a[_0x1e47ba(0x45e)]{constructor(_0x4b7ca8,_0x260c8d,_0x15cff5){const _0x2c8e9f=_0x1e47ba;super(),d(this,'_entities',new Map()),d(this,_0x2c8e9f(0x39f),new v[(_0x2c8e9f(0x184))]()),(this[_0x2c8e9f(0x464)]=_0x4b7ca8,this[_0x2c8e9f(0x376)]=_0x260c8d,this['_collabSessionService']=_0x15cff5,this[_0x2c8e9f(0x480)]());}[_0x1e47ba(0x36c)](){const _0x439bd5=_0x1e47ba;super[_0x439bd5(0x36c)](),this[_0x439bd5(0x39f)][_0x439bd5(0x3d6)](),this[_0x439bd5(0x272)]['forEach'](_0xf25bfc=>_0xf25bfc[_0x439bd5(0x36c)]());}['getCollabCursors$'](_0x5b1404){const _0x4f8b6a=_0x1e47ba;return this[_0x4f8b6a(0x272)]['has'](_0x5b1404)?this['_entities'][_0x4f8b6a(0x367)](_0x5b1404)[_0x4f8b6a(0x210)]:this['_entityInit$'][_0x4f8b6a(0x1cb)](v[_0x4f8b6a(0x31b)](_0x5c310c=>_0x5c310c['unitID']===_0x5b1404),v['switchMap'](_0x2c3aea=>_0x2c3aea[_0x4f8b6a(0x210)]));}[_0x1e47ba(0x480)](){const _0x5c78f5=_0x1e47ba;this[_0x5c78f5(0x464)][_0x5c78f5(0x411)](a[_0x5c78f5(0x12f)][_0x5c78f5(0x342)])[_0x5c78f5(0x1cb)](v[_0x5c78f5(0x308)](this['dispose$']))[_0x5c78f5(0x319)](async _0x4c155b=>{const _0x173d94=_0x5c78f5,_0x131a38=_0x4c155b[_0x173d94(0x231)](),_0x36f932=await this[_0x173d94(0x2f2)](_0x131a38);this[_0x173d94(0x39f)]['next'](_0x36f932),this['_entities']['set'](_0x131a38,_0x36f932);}),this[_0x5c78f5(0x464)][_0x5c78f5(0x411)](a[_0x5c78f5(0x12f)][_0x5c78f5(0x48c)])[_0x5c78f5(0x1cb)](v[_0x5c78f5(0x308)](this[_0x5c78f5(0x2b1)]))[_0x5c78f5(0x1cb)](v[_0x5c78f5(0x31b)](_0x1d389e=>!_0x1d389e[_0x5c78f5(0x231)]()[_0x5c78f5(0x36a)]('__')))[_0x5c78f5(0x319)](async _0x28e212=>{const _0x355f1f=_0x5c78f5,_0x36b2b6=_0x28e212[_0x355f1f(0x231)](),_0x4fa925=await this[_0x355f1f(0x1bc)](_0x36b2b6);this[_0x355f1f(0x39f)]['next'](_0x4fa925),this[_0x355f1f(0x272)][_0x355f1f(0x204)](_0x36b2b6,_0x4fa925);}),v['merge'](this[_0x5c78f5(0x464)]['getTypeOfUnitDisposed$'](a[_0x5c78f5(0x12f)][_0x5c78f5(0x48c)]),this['_univerInstanceService'][_0x5c78f5(0x27d)](a[_0x5c78f5(0x12f)]['UNIVER_SHEET']))['pipe'](v['takeUntil'](this[_0x5c78f5(0x2b1)]))[_0x5c78f5(0x319)](_0x16f537=>{const _0x558609=_0x5c78f5,_0x1c92ef=_0x16f537[_0x558609(0x231)](),_0x1776f0=this[_0x558609(0x272)][_0x558609(0x367)](_0x1c92ef);_0x1776f0&&(_0x1776f0['dispose'](),this[_0x558609(0x272)][_0x558609(0xf8)](_0x1c92ef));});}async['_startSheetCollabCursor'](_0x84598d){const _0x5dc1ac=_0x1e47ba,_0x47d87e=await this['_collabSessionService'][_0x5dc1ac(0x3fe)](_0x84598d),_0xdfacf8=this[_0x5dc1ac(0x376)][_0x5dc1ac(0x14f)](Ue,_0x84598d,_0x47d87e);return _0xdfacf8[_0x5dc1ac(0x46d)](),_0xdfacf8;}async['_startDocCollabCursor'](_0x365088){const _0x3a029a=_0x1e47ba,_0x33f7ff=await this['_collabSessionService'][_0x3a029a(0x3fe)](_0x365088),_0x5cb04d=this[_0x3a029a(0x376)][_0x3a029a(0x14f)](Pe,_0x365088,_0x33f7ff);return _0x5cb04d[_0x3a029a(0x46d)](),_0x5cb04d;}};z=ds([a[_0x1e47ba(0x280)](a[_0x1e47ba(0x239)][_0x1e47ba(0x42f)],z),De(0x0,a[_0x1e47ba(0x118)]),De(0x1,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),De(0x2,h[_0x1e47ba(0x443)](exports['CollaborationSessionService']))],z);const he=0x14,tt=0xc8,Oe=0x4,Ss=0x5;function gs(_0x217802,_0x14e6a1){const _0x1465e6=_0x1e47ba;let {radius:_0x1e1450,width:_0x489637,height:_0x2685f8}=_0x14e6a1;_0x1e1450=_0x1e1450!=null?_0x1e1450:0x0,_0x489637=_0x489637!=null?_0x489637:0x1e,_0x2685f8=_0x2685f8!=null?_0x2685f8:0x1e;let _0xd1c85d=0x0,_0x11dd03=0x0,_0x1d7db6=0x0;_0xd1c85d=_0x11dd03=_0x1d7db6=Math[_0x1465e6(0x1c7)](_0x1e1450,_0x489637/0x2,_0x2685f8/0x2),_0x217802[_0x1465e6(0x451)](),_0x217802['moveTo'](_0xd1c85d,0x0),_0x217802[_0x1465e6(0x403)](_0x489637-_0x11dd03,0x0),_0x217802[_0x1465e6(0x2fd)](_0x489637-_0x11dd03,_0x11dd03,_0x11dd03,Math['PI']*0x3/0x2,0x0,!0x1),_0x217802[_0x1465e6(0x403)](_0x489637,_0x2685f8-_0x1d7db6),_0x217802[_0x1465e6(0x2fd)](_0x489637-_0x1d7db6,_0x2685f8-_0x1d7db6,_0x1d7db6,0x0,Math['PI']/0x2,!0x1),_0x217802['lineTo'](0x0,_0x2685f8),_0x217802[_0x1465e6(0x403)](0x0,_0xd1c85d),_0x217802['arc'](_0xd1c85d,_0xd1c85d,_0xd1c85d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x217802[_0x1465e6(0x10e)](),_0x14e6a1[_0x1465e6(0x400)]&&(_0x217802['save'](),_0x217802[_0x1465e6(0x447)]=_0x14e6a1[_0x1465e6(0x400)],_0x14e6a1[_0x1465e6(0x1b8)]===_0x1465e6(0x3b9)?_0x217802[_0x1465e6(0x400)](_0x1465e6(0x3b9)):_0x217802[_0x1465e6(0x400)](),_0x217802[_0x1465e6(0x355)]());}class be extends R[_0x1e47ba(0x117)]{constructor(_0x55dec7,_0x1cf472){const _0x47910c=_0x1e47ba;super(_0x55dec7,_0x1cf472),d(this,'color'),d(this,_0x47910c(0x1b4)),(this[_0x47910c(0x1d5)]=_0x1cf472==null?void 0x0:_0x1cf472[_0x47910c(0x1d5)],this['text']=_0x1cf472==null?void 0x0:_0x1cf472['text']);}static[_0x1e47ba(0x30e)](_0x5e2612,_0x2e4c44){const _0x242e4d=_0x1e47ba,{text:_0x2c7f91,color:_0x52f39d}=_0x2e4c44;_0x5e2612[_0x242e4d(0x24b)](),_0x5e2612[_0x242e4d(0x129)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x264cf3=_0x5e2612['measureText'](_0x2c7f91)[_0x242e4d(0x358)],_0x23959e=Math['min'](_0x264cf3+0x2*Oe,tt);gs(_0x5e2612,{'height':he,'radius':0x4,'width':_0x23959e,'fill':_0x52f39d,'evented':!0x1}),_0x5e2612[_0x242e4d(0x447)]='#FFF';const _0x4e6a76=Oe,_0x48aa35=he-Ss,_0x307975=tt-0x2*Oe;if(_0x264cf3>_0x307975){let _0x12d941='',_0x167ad7=0x0;for(const _0x422efe of _0x2c7f91){const _0x2935cb=_0x5e2612['measureText'](_0x422efe)[_0x242e4d(0x358)];if(_0x167ad7+_0x2935cb<=_0x307975-_0x5e2612[_0x242e4d(0x24d)](_0x242e4d(0x2a4))[_0x242e4d(0x358)])_0x12d941+=_0x422efe,_0x167ad7+=_0x2935cb;else{_0x12d941+=_0x242e4d(0x2a4);break;}}_0x5e2612['fillText'](_0x12d941,_0x4e6a76,_0x48aa35);}else _0x5e2612[_0x242e4d(0x1e8)](_0x2c7f91,_0x4e6a76,_0x48aa35);_0x5e2612[_0x242e4d(0x355)]();}[_0x1e47ba(0x3eb)](_0x7ccd18){be['drawWith'](_0x7ccd18,this);}}const vs=0x1,ms=1.5;class fs extends R[_0x1e47ba(0x117)]{constructor(_0x578c18,_0x540aed){const _0x30766b=_0x1e47ba;super(_0x578c18,_0x540aed),d(this,_0x30766b(0x10b)),d(this,_0x30766b(0x224),!0x1),d(this,_0x30766b(0x216)),d(this,'_name',''),d(this,_0x30766b(0xe4),_0x30766b(0x22a)),(_0x540aed&&this[_0x30766b(0x365)](_0x540aed),this['onPointerEnterObserver']['add'](()=>this[_0x30766b(0x365)]({'hovered':!0x0})),this['onPointerLeaveObserver']['add'](()=>this[_0x30766b(0x365)]({'hovered':!0x1})));}[_0x1e47ba(0x365)](_0x41d95a){const _0x32cae6=_0x1e47ba;var _0x24f8be,_0x36bb80,_0x5c33b5,_0x5b98c2,_0x21ac45;this[_0x32cae6(0x10b)]=(_0x24f8be=_0x41d95a[_0x32cae6(0x1d5)])!=null?_0x24f8be:this['_color'],this[_0x32cae6(0x224)]=(_0x36bb80=_0x41d95a[_0x32cae6(0x3a4)])!=null?_0x36bb80:this[_0x32cae6(0x224)],this[_0x32cae6(0x216)]=(_0x5c33b5=_0x41d95a[_0x32cae6(0x215)])!=null?_0x5c33b5:this[_0x32cae6(0x216)],this['_name']=(_0x5b98c2=_0x41d95a['name'])!=null?_0x5b98c2:this[_0x32cae6(0x119)],this[_0x32cae6(0xe4)]=(_0x21ac45=_0x41d95a[_0x32cae6(0x46b)])!=null?_0x21ac45:this[_0x32cae6(0xe4)],this[_0x32cae6(0x186)]({'width':_0x41d95a[_0x32cae6(0x358)],'height':_0x41d95a['height']});}['onMouseMove'](_0x421b11){const _0x232a60=_0x1e47ba,{row:_0x5d223a,column:_0x4dcf40}=_0x421b11;if(_0x5d223a>=this['_range'][_0x232a60(0x3ff)]&&_0x5d223a<=this[_0x232a60(0x216)]['endRow']&&_0x4dcf40>=this['_range']['startColumn']&&_0x4dcf40<=this['_range']['endColumn']){this[_0x232a60(0x365)]({'hovered':!0x0});return;}this[_0x232a60(0x365)]({'hovered':!0x1});}[_0x1e47ba(0x348)](_0x397247){return!0x1;}[_0x1e47ba(0x3eb)](_0x49401b){const _0x155849=_0x1e47ba;R['Rect'][_0x155849(0x30e)](_0x49401b,{'width':this[_0x155849(0x358)],'height':this['height'],'strokeWidth':ms,'stroke':this[_0x155849(0x10b)],'evented':!0x1}),this[_0x155849(0x224)]&&(_0x49401b[_0x155849(0x24b)](),_0x49401b[_0x155849(0x42b)](0x1,0x0,0x0,0x1,this[_0x155849(0x358)],this[_0x155849(0xe4)]===_0x155849(0x455)?0x0:-he),be['drawWith'](_0x49401b,{'text':this[_0x155849(0x119)],'color':this[_0x155849(0x10b)]}),_0x49401b[_0x155849(0x355)]());}}var Is=(_0x46fb48,_0x5e28e5,_0x556367,_0x18ed18)=>{for(var _0x56465a=_0x5e28e5,_0x5de9ae=_0x46fb48['length']-0x1,_0x29e9a3;_0x5de9ae>=0x0;_0x5de9ae--)(_0x29e9a3=_0x46fb48[_0x5de9ae])&&(_0x56465a=_0x29e9a3(_0x56465a)||_0x56465a);return _0x56465a;},ie=(_0x2da07f,_0xcd2493)=>(_0x3126f3,_0x527c26)=>_0xcd2493(_0x3126f3,_0x527c26,_0x2da07f);let de=class extends a[_0x1e47ba(0x45e)]{constructor(_0x431acb,_0x537106,_0x29b896,_0x140524,_0x529e60){const _0xa4b7d4=_0x1e47ba;super(),d(this,'_cursors',new Set()),d(this,_0xa4b7d4(0x14a),null),(this['_collabCursorController']=_0x431acb,this[_0xa4b7d4(0x464)]=_0x537106,this[_0xa4b7d4(0x175)]=_0x29b896,this[_0xa4b7d4(0x2af)]=_0x140524,this['_themeService']=_0x529e60,this[_0xa4b7d4(0x480)]());}['_init'](){const _0x18ee4b=_0x1e47ba;this[_0x18ee4b(0x2af)][_0x18ee4b(0x211)][_0x18ee4b(0x1cb)](T[_0x18ee4b(0x308)](this[_0x18ee4b(0x2b1)]),T[_0x18ee4b(0x2bd)](_0x1a4841=>{const _0x462ec4=_0x18ee4b;if(_0x1a4841){const _0x4f175f=_0x1a4841[_0x462ec4(0x32f)];return v[_0x462ec4(0x1f6)](this['_collabCursorController'][_0x462ec4(0x255)](_0x1a4841[_0x462ec4(0x2b3)]),this['_themeService'][_0x462ec4(0x363)])[_0x462ec4(0x1cb)](T[_0x462ec4(0x290)](([_0x5c02e8,_0x49e7bb])=>{const _0x24809b=_0x462ec4,_0x31d643=new Map();return _0x5c02e8[_0x24809b(0x1e6)]((_0x209534,_0x53eb02)=>{const _0x248ee1=_0x24809b;if(_0x209534['sheetID']===_0x4f175f){const _0x457150={..._0x209534};_0x457150['color']=_0x49e7bb[_0x209534[_0x248ee1(0x1d5)]],_0x31d643[_0x248ee1(0x204)](_0x53eb02,_0x457150);}}),{'skeleton':_0x1a4841,'cursors':_0x31d643};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x18ee4b(0x319)](({skeleton:_0x49840b,cursors:_0x228910})=>{const _0x282eda=_0x18ee4b;this[_0x282eda(0x2f8)](),_0x49840b&&this[_0x282eda(0x2e2)](_0x49840b,_0x228910);}),this[_0x18ee4b(0x2af)]['currentSkeleton$'][_0x18ee4b(0x319)](_0x1db939=>{const _0x55a9a3=_0x18ee4b;if(_0x1db939==null)return;const {unitId:_0x59e159,skeleton:_0x2adfbd}=_0x1db939,_0x47fdec=this['_renderManagerService'][_0x55a9a3(0x248)](_0x59e159);if(_0x47fdec==null)return;const {scene:_0x4ed3eb}=_0x47fdec;_0x4ed3eb[_0x55a9a3(0x176)][_0x55a9a3(0x477)](He(_0x194cc0=>{const _0x554f24=_0x55a9a3;var _0x562c07,_0x177a3f;const {offsetX:_0x3a9d68,offsetY:_0x22b740}=_0x194cc0,{x:_0x46d087,y:_0x570ecf}=_0x4ed3eb[_0x554f24(0x249)](R[_0x554f24(0x16e)][_0x554f24(0x143)]([_0x3a9d68,_0x22b740])),{scaleX:_0x4172be,scaleY:_0x96a803}=_0x4ed3eb[_0x554f24(0x299)](),_0x55b55f=_0x4ed3eb[_0x554f24(0x42d)](ae['VIEWPORT_KEY']['VIEW_MAIN']),_0x45a293=_0x4ed3eb[_0x554f24(0x377)](R['Vector2'][_0x554f24(0x143)]([_0x46d087,_0x570ecf]),_0x55b55f),_0x58b2b5=_0x2adfbd[_0x554f24(0x220)](_0x3a9d68,_0x22b740,_0x4172be,_0x96a803,_0x45a293);((_0x562c07=this[_0x554f24(0x14a)])==null?void 0x0:_0x562c07[_0x554f24(0x23d)])===_0x58b2b5[_0x554f24(0x23d)]&&((_0x177a3f=this[_0x554f24(0x14a)])==null?void 0x0:_0x177a3f['row'])===_0x58b2b5[_0x554f24(0x2bc)]||this[_0x554f24(0x131)][_0x554f24(0x1e6)](_0x57a1a6=>{const _0x18fdae=_0x554f24;_0x57a1a6[_0x18fdae(0x2bf)](_0x58b2b5);});},0x64));});}[_0x1e47ba(0x2e2)](_0x27238e,_0x4ab37b){const _0x323024=_0x1e47ba;var _0x20a9c0;const _0x4d0458=(_0x20a9c0=this['_sheetSkeletonManagerService'][_0x323024(0x43e)]())==null?void 0x0:_0x20a9c0['skeleton'];if(!_0x4d0458)return;const _0xfe2a89=this[_0x323024(0x1d6)]();if(!_0xfe2a89)return;this['_cursors'][_0x323024(0x1e6)](_0x26d937=>{_0x26d937['makeDirty']();});const {scene:_0x5b2b08}=_0xfe2a89,_0x4f9b15=ps(Array[_0x323024(0x47a)](_0x4ab37b[_0x323024(0x357)]()))[_0x323024(0x290)](_0x32d475=>{const _0x2962ac=_0x323024,{color:_0x4a5139,range:_0x44c715,name:_0x216fe4,selection:_0x3716f1,sheetID:_0x5e34d8}=_0x32d475,{startColumn:_0x5258d2,startRow:_0x4a086d,endColumn:_0x364556,endRow:_0x9fe66}=_0x44c715,_0x144d2a=ae[_0x2962ac(0x205)](_0x4a086d,_0x5258d2,_0x5b2b08,_0x4d0458),_0x174b43=ae[_0x2962ac(0x205)](_0x9fe66,_0x364556,_0x5b2b08,_0x4d0458),{columnHeaderHeightAndMarginTop:_0x180f71}=_0x4d0458,{startX:_0x4211f5,startY:_0x53b00d}=_0x144d2a,{endX:_0xfd0fdc,endY:_0x507924}=_0x174b43,_0x1909c7=_0xfd0fdc-_0x4211f5,_0x248d52=_0x507924-_0x53b00d,_0x423b5a={'labelPosition':_0x53b00d-_0x180f71>=he?_0x2962ac(0x22a):_0x2962ac(0x455),'sheetID':_0x5e34d8,'range':_0x44c715,'color':_0x4a5139,'name':_0x216fe4,'selection':_0x3716f1,'left':_0x4211f5,'top':_0x53b00d,'width':_0x1909c7,'height':_0x248d52,'evented':!0x1};return new fs(_0x216fe4,_0x423b5a);});_0x5b2b08[_0x323024(0x44b)](_0x4f9b15,vs),this[_0x323024(0x131)]=new Set(_0x4f9b15);}[_0x1e47ba(0x2f8)](){const _0x5f15c0=_0x1e47ba;var _0x4cb8f5;(_0x4cb8f5=this['_cursors'])==null||_0x4cb8f5[_0x5f15c0(0x1e6)](_0x2193b3=>_0x2193b3[_0x5f15c0(0x36c)]());}[_0x1e47ba(0x1d6)](){const _0xa37479=_0x1e47ba;return ae['getSheetObject'](this[_0xa37479(0x464)],this['_renderManagerService']);}};de=Is([a[_0x1e47ba(0x280)](a[_0x1e47ba(0x239)]['Steady'],de),ie(0x0,h[_0x1e47ba(0x443)](z)),ie(0x1,a[_0x1e47ba(0x118)]),ie(0x2,R[_0x1e47ba(0x1a1)]),ie(0x3,h[_0x1e47ba(0x443)](ae[_0x1e47ba(0x349)])),ie(0x4,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x43a)]))],de);function ps(_0x3683a7){const _0x10c0fa=_0x1e47ba,_0x487cd1=new Map();return _0x3683a7[_0x10c0fa(0x1e6)](_0x3c59b9=>{const _0x29d63f=_0x10c0fa;if(_0x487cd1[_0x29d63f(0x174)](_0x3c59b9[_0x29d63f(0x380)])){const _0x4da5dc=_0x487cd1[_0x29d63f(0x367)](_0x3c59b9[_0x29d63f(0x380)]);_0x4da5dc[_0x29d63f(0x316)]+=',\x20'+_0x3c59b9['name'];}else _0x487cd1['set'](_0x3c59b9[_0x29d63f(0x380)],_0x3c59b9);}),Array[_0x10c0fa(0x47a)](_0x487cd1[_0x10c0fa(0x357)]());}var A=function(){const _0x39354e=_0x1e47ba;return A=Object[_0x39354e(0x140)]||function(_0x33c4a1){const _0x322cc1=_0x39354e;for(var _0xa28966,_0x38988a=0x1,_0x3d1d86=arguments[_0x322cc1(0x3fb)];_0x38988a<_0x3d1d86;_0x38988a++){_0xa28966=arguments[_0x38988a];for(var _0x3c5738 in _0xa28966)Object[_0x322cc1(0x264)][_0x322cc1(0x191)][_0x322cc1(0x198)](_0xa28966,_0x3c5738)&&(_0x33c4a1[_0x3c5738]=_0xa28966[_0x3c5738]);}return _0x33c4a1;},A[_0x39354e(0x2ed)](this,arguments);},Es=function(_0x34a071,_0xc73870){const _0x31865f=_0x1e47ba;var _0x1bc436={};for(var _0x513ba1 in _0x34a071)Object['prototype'][_0x31865f(0x191)]['call'](_0x34a071,_0x513ba1)&&_0xc73870[_0x31865f(0x142)](_0x513ba1)<0x0&&(_0x1bc436[_0x513ba1]=_0x34a071[_0x513ba1]);if(_0x34a071!=null&&typeof Object[_0x31865f(0x2e0)]==_0x31865f(0x364)){for(var _0x3b697c=0x0,_0x513ba1=Object[_0x31865f(0x2e0)](_0x34a071);_0x3b697c<_0x513ba1[_0x31865f(0x3fb)];_0x3b697c++)_0xc73870[_0x31865f(0x142)](_0x513ba1[_0x3b697c])<0x0&&Object['prototype'][_0x31865f(0x111)][_0x31865f(0x198)](_0x34a071,_0x513ba1[_0x3b697c])&&(_0x1bc436[_0x513ba1[_0x3b697c]]=_0x34a071[_0x513ba1[_0x3b697c]]);}return _0x1bc436;},Ge=L[_0x1e47ba(0x279)](function(_0x33d2df,_0x5dcce3){const _0x349417=_0x1e47ba;var _0x5021c2=_0x33d2df['icon'],_0x248e1f=_0x33d2df['id'],_0x4cdce7=_0x33d2df[_0x349417(0x22b)],_0x4a4657=_0x33d2df[_0x349417(0x25a)],_0x50ae83=Es(_0x33d2df,[_0x349417(0x2d3),'id',_0x349417(0x22b),_0x349417(0x25a)]),_0x1dbf33=_0x349417(0x194)[_0x349417(0x1bb)](_0x248e1f,'\x20')['concat'](_0x4cdce7||'')[_0x349417(0x207)](),_0xfe9d2=L[_0x349417(0x113)]('_'[_0x349417(0x1bb)](Ts()));return Et(_0x5021c2,''['concat'](_0x248e1f),{'defIds':_0x5021c2[_0x349417(0x195)],'idSuffix':_0xfe9d2['current']},A({'ref':_0x5dcce3,'className':_0x1dbf33},_0x50ae83),_0x4a4657);});function Et(_0x29c983,_0x4cacce,_0x329b72,_0x17a537,_0x524867){const _0x3ec1bb=_0x1e47ba;return L[_0x3ec1bb(0x3d2)](_0x29c983[_0x3ec1bb(0x370)],A(A({'key':_0x4cacce},Cs(_0x29c983,_0x329b72,_0x524867)),_0x17a537),(bs(_0x29c983,_0x329b72)[_0x3ec1bb(0x440)]||[])['map'](function(_0x54c194,_0x2498f6){const _0x2cda9a=_0x3ec1bb;return Et(_0x54c194,''[_0x2cda9a(0x1bb)](_0x4cacce,'-')['concat'](_0x29c983['tag'],'-')[_0x2cda9a(0x1bb)](_0x2498f6),_0x329b72,void 0x0,_0x524867);}));}function Cs(_0x1ca092,_0x2a99a8,_0x524462){const _0x1abc51=_0x1e47ba;var _0x4b90fc=A({},_0x1ca092[_0x1abc51(0x18b)]);_0x524462!=null&&_0x524462[_0x1abc51(0x429)]&&_0x4b90fc[_0x1abc51(0x400)]==='colorChannel1'&&(_0x4b90fc[_0x1abc51(0x400)]=_0x524462[_0x1abc51(0x429)]);var _0xb95a38=_0x2a99a8[_0x1abc51(0x195)];return!_0xb95a38||_0xb95a38['length']===0x0||(_0x1ca092[_0x1abc51(0x370)]===_0x1abc51(0x2c8)&&_0x4b90fc[_0x1abc51(0xe9)]&&(_0x4b90fc[_0x1abc51(0xe9)]=_0x4b90fc['xlink:href']+_0x2a99a8[_0x1abc51(0x375)]),Object[_0x1abc51(0x3a7)](_0x4b90fc)[_0x1abc51(0x1e6)](function(_0x358515){const _0xbe75e0=_0x1abc51;var _0x59cc95=_0x358515[0x0],_0x4d217d=_0x358515[0x1];typeof _0x4d217d==_0xbe75e0(0x3ba)&&(_0x4b90fc[_0x59cc95]=_0x4d217d[_0xbe75e0(0x1de)](/url\(#(.*)\)/,_0xbe75e0(0x1b9)[_0xbe75e0(0x1bb)](_0x2a99a8[_0xbe75e0(0x375)],')')));})),_0x4b90fc;}function bs(_0x27e8dc,_0x57c9e5){const _0x47a520=_0x1e47ba;var _0x5aeb5e,_0x1c0710=_0x57c9e5['defIds'];return!_0x1c0710||_0x1c0710['length']===0x0?_0x27e8dc:_0x27e8dc['tag']===_0x47a520(0x1a9)&&(!((_0x5aeb5e=_0x27e8dc[_0x47a520(0x440)])===null||_0x5aeb5e===void 0x0)&&_0x5aeb5e[_0x47a520(0x3fb)])?A(A({},_0x27e8dc),{'children':_0x27e8dc[_0x47a520(0x440)][_0x47a520(0x290)](function(_0x1006af){const _0x4eb2a0=_0x47a520;return typeof _0x1006af['attrs']['id']==_0x4eb2a0(0x3ba)&&_0x1c0710&&_0x1c0710['indexOf'](_0x1006af[_0x4eb2a0(0x18b)]['id'])>-0x1?A(A({},_0x1006af),{'attrs':A(A({},_0x1006af[_0x4eb2a0(0x18b)]),{'id':_0x1006af['attrs']['id']+_0x57c9e5[_0x4eb2a0(0x375)]})}):_0x1006af;})}):_0x27e8dc;}function Ts(){const _0x3305b2=_0x1e47ba;return Math[_0x3305b2(0x302)]()[_0x3305b2(0x34a)](0x24)[_0x3305b2(0x286)](0x2,0x8);}Ge[_0x1e47ba(0x340)]='UniverIcon';var Rs={'tag':_0x1e47ba(0x33f),'attrs':{'fill':'none','viewBox':_0x1e47ba(0x28c),'width':_0x1e47ba(0x475),'height':_0x1e47ba(0x475)},'children':[{'tag':'g','attrs':{'clipPath':_0x1e47ba(0x12e)},'children':[{'tag':_0x1e47ba(0x34d),'attrs':{'stroke':'currentColor','d':_0x1e47ba(0x339),'strokeLinecap':_0x1e47ba(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1e47ba(0x1a9),'attrs':{},'children':[{'tag':_0x1e47ba(0x486),'attrs':{'id':_0x1e47ba(0x3de)},'children':[{'tag':'path','attrs':{'fill':_0x1e47ba(0x18d),'d':_0x1e47ba(0xe5)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Ct=L[_0x1e47ba(0x279)](function(_0x13d68a,_0x136b3d){const _0x4982f0=_0x1e47ba;return L['createElement'](Ge,Object[_0x4982f0(0x140)]({},_0x13d68a,{'id':'off-line-single','ref':_0x136b3d,'icon':Rs}));});Ct['displayName']=_0x1e47ba(0x326);var Ds={'tag':_0x1e47ba(0x33f),'attrs':{'fill':_0x1e47ba(0x415),'viewBox':_0x1e47ba(0x241),'width':_0x1e47ba(0x475),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x1e47ba(0x427)},'children':[{'tag':_0x1e47ba(0x34d),'attrs':{'stroke':_0x1e47ba(0x283),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x1e47ba(0x2fc),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x1e47ba(0x486),'attrs':{'id':_0x1e47ba(0x3f9)},'children':[{'tag':_0x1e47ba(0x34d),'attrs':{'fill':_0x1e47ba(0x18d),'d':_0x1e47ba(0xe5),'transform':_0x1e47ba(0x1b3)}}]}]}],'defIds':['on-line-single_clip0_910_349']},bt=L[_0x1e47ba(0x279)](function(_0x265d22,_0x295de1){const _0x29180f=_0x1e47ba;return L[_0x29180f(0x3d2)](Ge,Object[_0x29180f(0x140)]({},_0x265d22,{'id':'on-line-single','ref':_0x295de1,'icon':Ds}));});bt['displayName']=_0x1e47ba(0x2ca);const Os=_0x1e47ba(0x2d0),ys=_0x1e47ba(0x15b),Ls=_0x1e47ba(0x1bf),Ms=_0x1e47ba(0x47d),Ns='univer-offline',ne={'onlineStatusIcon':Os,'onlineStatusTitle':ys,'onlineStatus':Ls,'online':Ms,'offline':Ns};function As(_0x2f2a14){const _0x21ddfa=_0x1e47ba;switch(_0x2f2a14){case y['OFFLINE']:return _0x21ddfa(0x154);case y[_0x21ddfa(0x2e9)]:return _0x21ddfa(0x1ec);case y[_0x21ddfa(0x426)]:return _0x21ddfa(0x30a);case y['NOT_COLLAB']:return _0x21ddfa(0x282);case y[_0x21ddfa(0xf6)]:case y[_0x21ddfa(0x30c)]:case y[_0x21ddfa(0x3ae)]:return _0x21ddfa(0x28d);case y[_0x21ddfa(0x3da)]:return _0x21ddfa(0x31f);}}function _0x55a2(_0x26ca15,_0xa0abb3){const _0x32f044=_0x32f0();return _0x55a2=function(_0x55a27d,_0x34a8a5){_0x55a27d=_0x55a27d-0xde;let _0x4ff963=_0x32f044[_0x55a27d];return _0x4ff963;},_0x55a2(_0x26ca15,_0xa0abb3);}function Tt(_0x64ec0e){const _0x31f626=_0x1e47ba,{status$:_0x491069}=_0x64ec0e,_0x17f0e1=U[_0x31f626(0x3e5)](_0x491069,y[_0x31f626(0x275)]),_0x4ea77f=at[_0x31f626(0x414)](a['LocaleService']),_0x588451=_0x17f0e1!==y[_0x31f626(0x3e8)],_0x55c769=_0x4ea77f['t'](As(_0x17f0e1)),_0x39390a=Pt(ne[_0x31f626(0x1ab)],{[ne[_0x31f626(0x17e)]]:_0x588451,[ne['offline']]:!_0x588451}),_0x21e104=_0x588451?L[_0x31f626(0x3d2)](bt,null):L['createElement'](Ct,null);return L[_0x31f626(0x3d2)](_0x31f626(0x1d4),{'className':_0x39390a},L[_0x31f626(0x3d2)](_0x31f626(0x1d4),{'className':ne[_0x31f626(0x38d)]},_0x21e104),L[_0x31f626(0x3d2)](_0x31f626(0x1d4),{'className':ne[_0x31f626(0xeb)]},_0x55c769));}var ws=(_0x7cad4e,_0x14becc,_0x167a49,_0x2ad978)=>{const _0x33dad7=_0x1e47ba;for(var _0x119126=_0x14becc,_0x4e12f8=_0x7cad4e[_0x33dad7(0x3fb)]-0x1,_0x538846;_0x4e12f8>=0x0;_0x4e12f8--)(_0x538846=_0x7cad4e[_0x4e12f8])&&(_0x119126=_0x538846(_0x119126)||_0x119126);return _0x119126;},_e=(_0x10eede,_0x5ec138)=>(_0x32eb2e,_0x5227fb)=>_0x5ec138(_0x32eb2e,_0x5227fb,_0x10eede);exports[_0x1e47ba(0x2c5)]=class extends a[_0x1e47ba(0x152)]{constructor(_0x193809,_0x40977e,_0x1887e1,_0x1a6d13){const _0x10aec6=_0x1e47ba;super(),d(this,'_status$',new v[(_0x10aec6(0x432))](y[_0x10aec6(0x275)])),(this['_univerInstanceService']=_0x193809,this[_0x10aec6(0x274)]=_0x40977e,this['_injector']=_0x1887e1,this[_0x10aec6(0x11a)]=_0x1a6d13,this[_0x10aec6(0x153)](),this[_0x10aec6(0x1a8)]());}[_0x1e47ba(0x153)](){const _0x2562df=_0x1e47ba;this[_0x2562df(0x2e4)](this[_0x2562df(0x274)][_0x2562df(0x1f5)](U[_0x2562df(0x41e)][_0x2562df(0x423)],()=>at[_0x2562df(0x344)](Us({'status$':this[_0x2562df(0x170)]['asObservable']()}),this[_0x2562df(0x376)])));}[_0x1e47ba(0x1a8)](){const _0x6825cc=_0x1e47ba;this[_0x6825cc(0x2e4)](a[_0x6825cc(0x251)](this['_univerInstanceService'][_0x6825cc(0x460)][_0x6825cc(0x1cb)](v[_0x6825cc(0x2bd)](()=>{const _0x3acf7f=_0x6825cc,_0x4fdcae=this['_univerInstanceService'][_0x3acf7f(0x197)]();return _0x4fdcae?this[_0x3acf7f(0x11a)][_0x3acf7f(0x1f3)](_0x4fdcae[_0x3acf7f(0x231)]()):v['of'](null);}),v[_0x6825cc(0x2bd)](_0x43aec3=>_0x43aec3?_0x43aec3[_0x6825cc(0x1f4)]:v['of'](y['NOT_COLLAB'])))[_0x6825cc(0x319)](_0x58b7f6=>{const _0x5b5a78=_0x6825cc;this[_0x5b5a78(0x170)]['next'](_0x58b7f6);})));}},exports[_0x1e47ba(0x2c5)]=ws([a[_0x1e47ba(0x280)](a['LifecycleStages']['Starting'],exports[_0x1e47ba(0x2c5)]),_e(0x0,a[_0x1e47ba(0x118)]),_e(0x1,U[_0x1e47ba(0x11b)]),_e(0x2,h['Inject'](h[_0x1e47ba(0x488)])),_e(0x3,h[_0x1e47ba(0x443)](exports[_0x1e47ba(0x450)]))],exports[_0x1e47ba(0x2c5)]);function Us(_0x295e55){const {status$:_0x15250a}=_0x295e55;return function(){return L['createElement'](Tt,{'status$':_0x15250a});};}const Ye=h[_0x1e47ba(0x227)](_0x1e47ba(0x2d1));var Ps=(_0x5a885e,_0x11f7cf,_0x3d2b68,_0x1f739f)=>{const _0x45c3ae=_0x1e47ba;for(var _0x541ff5=_0x11f7cf,_0x5cc3ac=_0x5a885e[_0x45c3ae(0x3fb)]-0x1,_0x373f9a;_0x5cc3ac>=0x0;_0x5cc3ac--)(_0x373f9a=_0x5a885e[_0x5cc3ac])&&(_0x541ff5=_0x373f9a(_0x541ff5)||_0x541ff5);return _0x541ff5;},J=(_0x1ca45e,_0x28a34e)=>(_0x5b8fc8,_0x152a85)=>_0x28a34e(_0x5b8fc8,_0x152a85,_0x1ca45e);exports[_0x1e47ba(0x3c8)]=class extends a[_0x1e47ba(0x45e)]{constructor(_0x83e10e,_0x1c4e50,_0x329916,_0x384848,_0x1b5ecb,_0x13b89d){const _0x270b3d=_0x1e47ba;super(),this[_0x270b3d(0x387)]=_0x83e10e,this[_0x270b3d(0x18f)]=_0x1c4e50,this[_0x270b3d(0x3cd)]=_0x329916,this[_0x270b3d(0x12a)]=_0x384848,this[_0x270b3d(0x3f2)]=_0x1b5ecb,_0x13b89d?_0x13b89d==null||_0x13b89d[_0x270b3d(0x425)]()['then'](()=>this[_0x270b3d(0x480)]()):(this[_0x270b3d(0x18f)][_0x270b3d(0x199)]('[DataLoaderController]',_0x270b3d(0xe0)),this[_0x270b3d(0x480)]());}async['_init'](){const _0x5a42bb=_0x1e47ba,_0x416105=this[_0x5a42bb(0x387)][_0x5a42bb(0x354)](_0x5a42bb(0x33c)),_0x109f45=this[_0x5a42bb(0x387)]['getParam']('type');if(!_0x416105||!_0x109f45){this['_logService'][_0x5a42bb(0x199)](_0x5a42bb(0x1ce),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x109f45)){case k[_0x5a42bb(0x342)]:{const _0x9be6db=await this[_0x5a42bb(0x2b8)](_0x416105);this[_0x5a42bb(0x2dd)](_0x9be6db);break;}case k[_0x5a42bb(0x48c)]:{await this['_loadDoc'](_0x416105);break;}default:{this[_0x5a42bb(0x18f)]['error'](_0x5a42bb(0x1ce),_0x5a42bb(0x473));break;}}}async[_0x1e47ba(0x2dd)](_0x30afe8){const _0x53cf3b=_0x1e47ba;await this[_0x53cf3b(0x20f)](_0x30afe8),_0x30afe8[_0x53cf3b(0x317)][_0x53cf3b(0x1cb)](v[_0x53cf3b(0x308)](this[_0x53cf3b(0x2b1)]))[_0x53cf3b(0x319)](_0x3e01d2=>{const _0xf32d26=_0x53cf3b;_0x3e01d2&&this[_0xf32d26(0xe6)](_0x3e01d2);}),this[_0x53cf3b(0x387)][_0x53cf3b(0x20c)][_0x53cf3b(0x1cb)](v['takeUntil'](this[_0x53cf3b(0x2b1)]))['subscribe'](()=>this[_0x53cf3b(0x20f)](_0x30afe8));}['_updateURLWithCurrentState'](_0x47fae7,_0x784b07=!0x1){const _0x47a0a4=_0x1e47ba,_0x38e1a4=this[_0x47a0a4(0x387)][_0x47a0a4(0x354)]('subunit');_0x47fae7[_0x47a0a4(0x36b)]()!==_0x38e1a4&&this['_urlService'][_0x47a0a4(0x120)](_0x47a0a4(0x334),_0x47fae7['getSheetId'](),_0x784b07);}async[_0x1e47ba(0x20f)](_0x2e026a){const _0x2fe063=_0x1e47ba,_0x5418ad=this[_0x2fe063(0x387)][_0x2fe063(0x354)]('subunit');if(!_0x5418ad||!_0x2e026a[_0x2fe063(0x1be)](_0x5418ad)){this[_0x2fe063(0xe6)](_0x2e026a[_0x2fe063(0x208)](),!0x0);return;}_0x2e026a['getActiveSheet']()['getSheetId']()!==_0x5418ad&&await this[_0x2fe063(0x3cd)][_0x2fe063(0x43f)](E[_0x2fe063(0x36f)]['id'],{'unitId':_0x2e026a[_0x2fe063(0x231)](),'subUnitId':_0x5418ad});}async[_0x1e47ba(0x2b8)](_0x5b84f5){const _0x2e2db8=_0x1e47ba;let _0x44cf00=0x0;const _0x4c01fb=await this[_0x2e2db8(0x12a)][_0x2e2db8(0x122)](_0x5b84f5);return _0x4c01fb&&(_0x4c01fb[_0x2e2db8(0x478)]||_0x4c01fb[_0x2e2db8(0x3df)][_0x2e2db8(0x3fb)]!==0x0)&&(_0x44cf00=_0x4c01fb[_0x2e2db8(0x45a)]),_0x44cf00===0x0&&this[_0x2e2db8(0x18f)][_0x2e2db8(0x199)](_0x2e2db8(0x1ce),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x2e2db8(0x3f2)]['loadSheet'](_0x5b84f5,_0x44cf00);}async['_loadDoc'](_0x2e4cc7){const _0x4a3583=_0x1e47ba;let _0x193802=0x0;const _0x5483d9=await this[_0x4a3583(0x12a)]['loadOfflineData'](_0x2e4cc7);return _0x5483d9&&(_0x5483d9[_0x4a3583(0x478)]||_0x5483d9[_0x4a3583(0x3df)][_0x4a3583(0x3fb)]!==0x0)&&(_0x193802=_0x5483d9['rev']),_0x193802===0x0&&this['_logService'][_0x4a3583(0x199)](_0x4a3583(0x1ce),_0x4a3583(0x1c8)),this[_0x4a3583(0x3f2)][_0x4a3583(0x3b4)](_0x2e4cc7,_0x193802);}},exports[_0x1e47ba(0x3c8)]=Ps([a['OnLifecycle'](a['LifecycleStages'][_0x1e47ba(0x42f)],exports[_0x1e47ba(0x3c8)]),J(0x0,Ye),J(0x1,a[_0x1e47ba(0x467)]),J(0x2,a[_0x1e47ba(0x44e)]),J(0x3,h[_0x1e47ba(0x443)](exports['LocalCacheService'])),J(0x4,h[_0x1e47ba(0x443)](u[_0x1e47ba(0xdf)])),J(0x5,h[_0x1e47ba(0x3c0)](kt[_0x1e47ba(0x2c7)]))],exports['DataLoaderController']);var ks=(_0x50e4e6,_0x385bb1,_0x236ae1,_0x4bfacb)=>{const _0x2f92d2=_0x1e47ba;for(var _0x25074a=_0x385bb1,_0x61faff=_0x50e4e6[_0x2f92d2(0x3fb)]-0x1,_0xf51634;_0x61faff>=0x0;_0x61faff--)(_0xf51634=_0x50e4e6[_0x61faff])&&(_0x25074a=_0xf51634(_0x25074a)||_0x25074a);return _0x25074a;},st=(_0x574ebc,_0x4946ef)=>(_0x763b2e,_0x460057)=>_0x4946ef(_0x763b2e,_0x460057,_0x574ebc);const js=_0x1e47ba(0x384),$s=_0x1e47ba(0x104);let Se=class extends a[_0x1e47ba(0x152)]{constructor(_0x4d120f,_0x4f0e52){const _0x265343=_0x1e47ba;super(),this[_0x265343(0x464)]=_0x4d120f,this[_0x265343(0xfd)]=_0x4f0e52,this[_0x265343(0x480)]();}['_init'](){const _0x2daf19=_0x1e47ba;this['disposeWithMe'](a[_0x2daf19(0x251)](this[_0x2daf19(0x464)]['focused$']['subscribe'](()=>{const _0x34af09=_0x2daf19;var _0x77c06a;const _0x401a8e=this[_0x34af09(0x464)][_0x34af09(0x197)]();let _0x2dce31=(_0x77c06a=this[_0x34af09(0xfd)]['getConfig'](js))!=null?_0x77c06a:$s;_0x401a8e instanceof a[_0x34af09(0x46f)]&&(_0x2dce31=_0x401a8e[_0x34af09(0x316)]),document[_0x34af09(0xfb)]=_0x2dce31;})));}};Se=ks([a['OnLifecycle'](a[_0x1e47ba(0x239)][_0x1e47ba(0x187)],Se),st(0x0,a[_0x1e47ba(0x118)]),st(0x1,a['IConfigService'])],Se);var Hs=(_0x367809,_0x5a3c31,_0x35deed,_0xb2ce29)=>{const _0x5cb96f=_0x1e47ba;for(var _0x2e8363=_0x5a3c31,_0x4516fe=_0x367809[_0x5cb96f(0x3fb)]-0x1,_0x4e3639;_0x4516fe>=0x0;_0x4516fe--)(_0x4e3639=_0x367809[_0x4516fe])&&(_0x2e8363=_0x4e3639(_0x2e8363)||_0x2e8363);return _0x2e8363;},it=(_0x1ce82b,_0x23f39b)=>(_0x3bee0d,_0x397e2b)=>_0x23f39b(_0x3bee0d,_0x397e2b,_0x1ce82b);const Rt=_0x1e47ba(0x178),xs=_0x1e47ba(0x2ff);let ke=class{constructor(_0x54220b,_0x4a9266){const _0x28a3cf=_0x1e47ba;this[_0x28a3cf(0xfd)]=_0x54220b,this['_httpService']=_0x4a9266;}async[_0x1e47ba(0x2f0)](_0x3f459c,_0x42b7d5){const _0x190715=_0x1e47ba;var _0x542e4e;const {unitID:_0x5f1db7,type:_0x34041d,revision:_0x232606=0x0}=_0x42b7d5,_0x17fef6=this['_getAPIPrefixPath']()+'/'+_0x34041d+_0x190715(0x2fa)+_0x5f1db7+'/rev/'+(_0x232606===0x1?0x0:_0x232606),_0x50f30d=(await this[_0x190715(0x20a)][_0x190715(0x367)](_0x17fef6))[_0x190715(0x2ee)],_0x269188=(_0x542e4e=_0x50f30d[_0x190715(0x2a8)])==null?void 0x0:_0x542e4e['workbook'];if(_0x269188){const _0x282f3b=_0x269188==null?void 0x0:_0x269188[_0x190715(0x2cd)],_0x5e8fa3=a[_0x190715(0x3e4)]['encode'](a[_0x190715(0x3e1)](_0x282f3b));_0x269188[_0x190715(0x2cd)]=_0x5e8fa3,Object[_0x190715(0x3a7)](_0x269188[_0x190715(0x315)])[_0x190715(0x1e6)](([,_0x2bbdf7])=>{const _0x548271=_0x190715,_0x4d06da=_0x2bbdf7[_0x548271(0x2cd)],_0x818486=a[_0x548271(0x3e4)][_0x548271(0x388)](a[_0x548271(0x3e1)](_0x4d06da));_0x2bbdf7[_0x548271(0x2cd)]=_0x818486;});}return _0x50f30d;}async['getSheetBlock'](_0x2a7df8,_0x19f124){const _0x5e4d67=_0x1e47ba,{unitID:_0x168e19,type:_0x45d5b5,blockID:_0x3ea497}=_0x19f124,_0x6d14da=this[_0x5e4d67(0x1ac)]()+'/'+_0x45d5b5+_0x5e4d67(0x2fa)+_0x168e19+_0x5e4d67(0x352)+_0x3ea497;return(await this['_httpService'][_0x5e4d67(0x367)](_0x6d14da))[_0x5e4d67(0x2ee)];}async[_0x1e47ba(0x171)](_0x12262b,_0x3d70db){const _0x26d6ca=_0x1e47ba,{unitID:_0x3b0a17,type:_0x5f3211,from:_0x12ce78,to:_0x505887}=_0x3d70db,_0x2e2988=this[_0x26d6ca(0x1ac)]()+'/'+_0x5f3211+'/unit/'+_0x3b0a17+'/fetchmissing?from='+_0x12ce78+_0x26d6ca(0x3d1)+_0x505887;return(await this[_0x26d6ca(0x20a)]['get'](_0x2e2988))['body'];}[_0x1e47ba(0x1ac)](){const _0x12f58c=_0x1e47ba;var _0x437413;return(_0x437413=this[_0x12f58c(0xfd)][_0x12f58c(0x159)](Rt))!=null?_0x437413:xs;}async[_0x1e47ba(0x3a2)](_0x1bca7e,_0x2165d3){const _0x3ad211=_0x1e47ba,_0x5b98b4=_0x3ad211(0x3bf)+_0x2165d3['type']+_0x3ad211(0x2fa)+_0x2165d3[_0x3ad211(0x2d2)]+_0x3ad211(0xf7);return(await this[_0x3ad211(0x20a)][_0x3ad211(0x367)](_0x5b98b4,{'params':{'resourceId':JSON[_0x3ad211(0x3f6)](_0x2165d3[_0x3ad211(0x15e)])}}))['body'];}[_0x1e47ba(0x458)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x23da0f=_0x1e47ba;throw new Error(_0x23da0f(0x281));}[_0x1e47ba(0x1e1)](){const _0x4376ac=_0x1e47ba;throw new Error(_0x4376ac(0x281));}};ke=Hs([it(0x0,a[_0x1e47ba(0x306)]),it(0x1,h[_0x1e47ba(0x443)](M['HTTPService']))],ke);var Bs=(_0x596248,_0x5450b6,_0x53ebe9,_0x4ca0ac)=>{for(var _0x40a95e=_0x5450b6,_0x162a37=_0x596248['length']-0x1,_0x3142bc;_0x162a37>=0x0;_0x162a37--)(_0x3142bc=_0x596248[_0x162a37])&&(_0x40a95e=_0x3142bc(_0x40a95e)||_0x40a95e);return _0x40a95e;},re=(_0x369d46,_0x461d7b)=>(_0x357dd6,_0x25d7e8)=>_0x461d7b(_0x357dd6,_0x25d7e8,_0x369d46);let je=class extends a[_0x1e47ba(0x3bb)]{constructor(_0x347f50,_0x3b9300,_0x28516b,_0x4e1355,_0x4f8881){const _0x9d5f62=_0x1e47ba;super(_0x347f50,_0x3b9300,_0x28516b),this[_0x9d5f62(0x35c)]=_0x4e1355,this['_logService']=_0x4f8881;}[_0x1e47ba(0x291)](_0x4fd308,_0x56ed51){const _0x253ccd=_0x1e47ba,_0x4dc11f=this['_getUndoStack'](_0x4fd308);if(_0x4dc11f)try{const _0x1d68a2=this['_transformStack'](_0x4dc11f,_0x56ed51);this['_substituteUndoStack'](_0x4fd308,_0x1d68a2);}catch(_0x5ee97e){this[_0x253ccd(0x18f)][_0x253ccd(0x343)](_0x253ccd(0x125),_0x5ee97e),this[_0x253ccd(0x1d1)](_0x4fd308);}const _0x82301f=this[_0x253ccd(0x1ff)](_0x4fd308);if(_0x82301f)try{const _0x18c1c2=this[_0x253ccd(0x485)](_0x82301f,_0x56ed51);this['_substituteRedoStack'](_0x4fd308,_0x18c1c2);}catch(_0x5d2545){this[_0x253ccd(0x18f)][_0x253ccd(0x343)](_0x5d2545),this['_clearRedo'](_0x4fd308);}}[_0x1e47ba(0x1d1)](_0x19306f){const _0x3bc890=_0x1e47ba,_0x5b5416=this[_0x3bc890(0x31c)](_0x19306f);_0x5b5416&&(_0x5b5416['length']=0x0,this['_updateStatus']());}[_0x1e47ba(0x250)](_0x481a6d){const _0x1a6a6a=_0x1e47ba,_0x13a6c8=this[_0x1a6a6a(0x1ff)](_0x481a6d);_0x13a6c8&&(_0x13a6c8[_0x1a6a6a(0x3fb)]=0x0,this[_0x1a6a6a(0x37d)]());}[_0x1e47ba(0x225)](_0x1f3b26,_0x411e5d){const _0x561050=_0x1e47ba;this['_undoStacks'][_0x561050(0x204)](_0x1f3b26,_0x411e5d),this[_0x561050(0x37d)]();}[_0x1e47ba(0x1cd)](_0x13a2ad,_0x5d74d2){const _0x39d5eb=_0x1e47ba;this['_redoStacks'][_0x39d5eb(0x204)](_0x13a2ad,_0x5d74d2),this[_0x39d5eb(0x37d)]();}[_0x1e47ba(0x485)](_0x1a48fd,_0x13fce5){const _0x1ff305=_0x1e47ba,_0xc60188=[];let _0x1659f7=_0x13fce5,_0xe9c4f1=_0x13fce5;for(let _0x277e9d=_0x1a48fd['length']-0x1;_0x277e9d>=0x0;_0x277e9d--){const {unitID:_0x631d4e,undoMutations:_0x591d92,redoMutations:_0x3d442c}=_0x1a48fd[_0x277e9d],_0x3e6349=this['_transformService']['transformMutationsWithChangeset'](_0x1659f7,_0x591d92),_0x886bb2=this[_0x1ff305(0x35c)]['transformMutationsWithChangeset'](_0xe9c4f1,_0x3d442c);if(u[_0x1ff305(0xe1)](_0x3e6349)||u['isTransformMutationsWithChangesetFailure'](_0x886bb2)){this['_logService'][_0x1ff305(0x343)](_0x1ff305(0x125),_0x1ff305(0x325),_0x3e6349,_0x886bb2);break;}_0x1659f7=_0x3e6349['c1Prime'],_0xe9c4f1=_0x886bb2[_0x1ff305(0x273)],_0xc60188[_0x1ff305(0x441)]({'unitID':_0x631d4e,'undoMutations':_0x3e6349[_0x1ff305(0x233)],'redoMutations':_0x886bb2[_0x1ff305(0x233)]});}return _0xc60188['reverse']();}};je=Bs([re(0x0,a[_0x1e47ba(0x118)]),re(0x1,a[_0x1e47ba(0x44e)]),re(0x2,a[_0x1e47ba(0x3c9)]),re(0x3,u['ITransformService']),re(0x4,a[_0x1e47ba(0x467)])],je);class Dt extends a[_0x1e47ba(0x45e)]{constructor(){const _0x26233b=_0x1e47ba;super(),d(this,_0x26233b(0x20c)),this[_0x26233b(0x20c)]=v['fromEvent'](window,_0x26233b(0x419))[_0x26233b(0x1cb)](v[_0x26233b(0x308)](this['dispose$']),v['shareReplay'](0x1),v['mapTo'](void 0x0));}[_0x1e47ba(0x120)](_0x348fdd,_0x20289e,_0x1fe03b=!0x1){const _0x5155a3=_0x1e47ba,_0x1f0175=new URL(window['location'][_0x5155a3(0x25b)]);_0x1f0175[_0x5155a3(0x413)]['set'](_0x348fdd,_0x20289e),_0x1fe03b?window[_0x5155a3(0x45d)][_0x5155a3(0x14d)]('','',_0x1f0175[_0x5155a3(0x34a)]()):window[_0x5155a3(0x45d)][_0x5155a3(0x105)]('','',_0x1f0175['toString']());}['removeParam'](_0x315786,_0x2de59b=!0x1){const _0x168811=_0x1e47ba,_0x5687c9=new URL(window['location'][_0x168811(0x25b)]);_0x5687c9[_0x168811(0x413)]['delete'](_0x315786),_0x2de59b?window[_0x168811(0x45d)][_0x168811(0x14d)]('','',_0x5687c9[_0x168811(0x34a)]()):window[_0x168811(0x45d)][_0x168811(0x105)]('','',_0x5687c9[_0x168811(0x34a)]());}[_0x1e47ba(0x354)](_0x801368){const _0x42aecc=_0x1e47ba;var _0x1e78ee;return(_0x1e78ee=new URL(window[_0x42aecc(0x410)]['href'])[_0x42aecc(0x413)][_0x42aecc(0x367)](_0x801368))!=null?_0x1e78ee:void 0x0;}}const ye=_0x1e47ba(0x1ee),Fs=_0x1e47ba(0x329),ue=0x6,Vs=1.5,Le=0x4,Ws=1.5,Gs=_0x1e47ba(0x2c4);class Ys{constructor(_0xb6d48,_0x1bb737,_0x755804,_0x4acd3a){const _0x352d6f=_0x1e47ba;d(this,'_shapes',[]),d(this,_0x352d6f(0x102),null),d(this,_0x352d6f(0x361),null),d(this,'_anchorDot',null),d(this,'_hideTimer',null),d(this,'_eventUnsubscribe',null),(this[_0x352d6f(0x202)]=_0xb6d48,this[_0x352d6f(0x1d8)]=_0x1bb737,this[_0x352d6f(0x19b)]=_0x755804,this[_0x352d6f(0x398)]=_0x4acd3a,this[_0x352d6f(0x2ab)]());}set['_hover'](_0x53eb62){const _0x459981=_0x1e47ba;_0x53eb62?(this[_0x459981(0x321)]&&this[_0x459981(0x321)]['hide'](),this[_0x459981(0x361)]&&this[_0x459981(0x361)][_0x459981(0x2e7)]()):(this[_0x459981(0x321)]&&this['_anchorDot'][_0x459981(0x2e7)](),this['_textBubble']&&this['_textBubble']['hide']());}[_0x1e47ba(0x36c)](){const _0x5ad56c=_0x1e47ba;for(const _0x3a4f40 of this['_shapes'])_0x3a4f40[_0x5ad56c(0x36c)]();this[_0x5ad56c(0x361)]&&this['_textBubble'][_0x5ad56c(0x36c)](),this['_anchorDot']&&this['_anchorDot'][_0x5ad56c(0x36c)](),this[_0x5ad56c(0x102)]&&this['_anchor'][_0x5ad56c(0x36c)](),this[_0x5ad56c(0x3bc)]&&this[_0x5ad56c(0x3bc)]();}[_0x1e47ba(0x2ab)](){const _0x57519b=_0x1e47ba,{_docSkeleton:_0x5f23b9,_document:_0x44a865}=this,{color:_0x1cd91b,name:_0x5cf940,ranges:_0x5d36b0}=this['_cursor'],_0x11d299=_0x44a865[_0x57519b(0x382)](),{docsLeft:_0x44ed74,docsTop:_0x4f8b2f}=_0x11d299,_0x2729c0=new R[(_0x57519b(0x3ac))](_0x11d299,_0x5f23b9);for(const {startOffset:_0x25b973,endOffset:_0x3b76c6,collapsed:_0x37d634,isActive:_0x3b5c92}of _0x5d36b0){const _0x1a3ffb=_0x5f23b9[_0x57519b(0xf5)](_0x25b973),_0x5ee4b7=_0x5f23b9['findNodePositionByCharIndex'](_0x3b76c6);if(_0x3b5c92){const {contentBoxPointGroup:_0xf9e53e}=_0x2729c0[_0x57519b(0x43c)](_0x5ee4b7,_0x5ee4b7);if(_0xf9e53e[_0x57519b(0x3fb)]===0x0)continue;this[_0x57519b(0x336)](_0x1cd91b,_0xf9e53e,_0x44ed74,_0x4f8b2f,_0x5cf940),this[_0x57519b(0x3bc)]=this[_0x57519b(0x14b)]();}if(!_0x37d634){const {contentBoxPointGroup:_0x2154a9}=_0x2729c0[_0x57519b(0x43c)](_0x1a3ffb,_0x5ee4b7);if(_0x2154a9[_0x57519b(0x3fb)]===0x0)continue;this[_0x57519b(0x300)](_0x1cd91b,_0x2154a9,_0x44ed74,_0x4f8b2f);}}}[_0x1e47ba(0x336)](_0x13134d,_0x24fc52,_0x1a6467,_0x22a1b5,_0x5edc0b){const _0xffa986=_0x1e47ba,_0x47deb0=this[_0xffa986(0x277)](_0x24fc52),{left:_0x44a93e,top:_0x478347,height:_0x3d6e16}=_0x47deb0,_0x44319d=this['_getScale'](),_0x42e08c=Ws/_0x44319d,_0x2b8b89=new R[(_0xffa986(0x24f))](ye+a[_0xffa986(0x332)]['generateRandomId'](ue),{'left':_0x44a93e+_0x1a6467-_0x42e08c,'top':_0x478347+_0x22a1b5,'height':_0x3d6e16,'width':Vs,'fill':_0x13134d||R[_0xffa986(0x13f)](a[_0xffa986(0x13a)][_0xffa986(0x230)],0x0),'strokeWidth':_0x42e08c,'stroke':Gs,'evented':!0x0});this[_0xffa986(0x102)]=_0x2b8b89,this[_0xffa986(0x1d8)][_0xffa986(0x25e)](_0x2b8b89,R['TEXT_RANGE_LAYER_INDEX']);const _0x2112f0=new R[(_0xffa986(0x24f))](ye+a[_0xffa986(0x332)][_0xffa986(0x3ea)](ue),{'left':_0x44a93e+_0x1a6467-_0x42e08c,'top':_0x478347+_0x22a1b5-Le/0x2,'height':Le,'width':Le,'fill':_0x13134d||R['getColor'](a[_0xffa986(0x13a)][_0xffa986(0x230)],0x0),'strokeWidth':0x0,'stroke':_0x13134d||R[_0xffa986(0x13f)](a[_0xffa986(0x13a)][_0xffa986(0x230)],0x0),'evented':!0x1});this['_anchorDot']=_0x2112f0,this[_0xffa986(0x1d8)][_0xffa986(0x25e)](_0x2112f0,R['TEXT_RANGE_LAYER_INDEX']);const _0x5100f4=new be(ye+a['Tools']['generateRandomId'](ue),{'left':_0x44a93e+_0x1a6467-_0x42e08c,'top':_0x478347+_0x22a1b5-he,'text':_0x5edc0b,'color':_0x13134d});this[_0xffa986(0x361)]=_0x5100f4,this['_scene']['addObject'](_0x5100f4,R[_0xffa986(0x2f4)]),this[_0xffa986(0x483)]=!0x1;}[_0x1e47ba(0x14b)](){const _0x175267=_0x1e47ba,_0x42954d=this[_0x175267(0x102)][_0x175267(0x476)][_0x175267(0x477)](()=>{const _0x24fdcb=_0x175267;this[_0x24fdcb(0x483)]=!0x0;}),_0x3af9b0=this[_0x175267(0x102)][_0x175267(0x2d8)]['add'](()=>{const _0x4bea64=_0x175267;this[_0x4bea64(0x3fd)]&&clearTimeout(this['_hideTimer']),this[_0x4bea64(0x3fd)]=setTimeout(()=>{const _0x869cc9=_0x4bea64;this[_0x869cc9(0x483)]=!0x1;},0x7d0);});return()=>{const _0x268991=_0x175267;var _0x4c8aa8,_0xb387a4;(_0x4c8aa8=this['_anchor'])==null||_0x4c8aa8[_0x268991(0x476)]['remove'](_0x42954d),(_0xb387a4=this[_0x268991(0x102)])==null||_0xb387a4[_0x268991(0x2d8)][_0x268991(0x3aa)](_0x3af9b0);};}[_0x1e47ba(0x300)](_0x1c0e31,_0x1c77a5,_0x3baee7,_0xdfaf2c){const _0x63e1d=_0x1e47ba,_0x5f0d93=new a[(_0x63e1d(0x232))](_0x1c0e31)[_0x63e1d(0x430)](0.2)[_0x63e1d(0x26d)](),_0x496107=new R[(_0x63e1d(0x1f7))](Fs+a[_0x63e1d(0x332)][_0x63e1d(0x3ea)](ue),{'pointsGroup':_0x1c77a5,'fill':_0x5f0d93||R[_0x63e1d(0x13f)](a[_0x63e1d(0x13a)]['black'],0.2),'left':_0x3baee7,'top':_0xdfaf2c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x63e1d(0x2a3)][_0x63e1d(0x441)](_0x496107),this[_0x63e1d(0x1d8)]['addObject'](_0x496107,R['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0xd6e053){const _0x5d4c80=_0xd6e053[0x0],_0x4647bf=_0x5d4c80[0x0],_0x19bd84=_0x5d4c80[0x2],{x:_0x20059d,y:_0x1fac1d}=_0x4647bf,{x:_0x3255a0,y:_0x53329a}=_0x19bd84;return{'left':_0x20059d,'top':_0x1fac1d,'width':_0x3255a0-_0x20059d,'height':_0x53329a-_0x1fac1d};}[_0x1e47ba(0x25d)](){const _0x52fb16=_0x1e47ba,{scaleX:_0x56e84c,scaleY:_0x4c5bc0}=this[_0x52fb16(0x1d8)]['getAncestorScale']();return Math[_0x52fb16(0x328)](_0x56e84c,_0x4c5bc0);}}var Ks=(_0x5f4555,_0x3536ae,_0x3e650f,_0x55080c)=>{const _0xdf6007=_0x1e47ba;for(var _0x15b7d6=_0x3536ae,_0x3472cb=_0x5f4555[_0xdf6007(0x3fb)]-0x1,_0x2a6f9a;_0x3472cb>=0x0;_0x3472cb--)(_0x2a6f9a=_0x5f4555[_0x3472cb])&&(_0x15b7d6=_0x2a6f9a(_0x15b7d6)||_0x15b7d6);return _0x15b7d6;},oe=(_0x4f4b15,_0x29cdf8)=>(_0x2a79c7,_0x1ad4ba)=>_0x29cdf8(_0x2a79c7,_0x1ad4ba,_0x4f4b15);let ge=class extends a['RxDisposable']{constructor(_0x50411b,_0x18f870,_0x5c9afb,_0x1a079c,_0x1d3d45){const _0x2456a7=_0x1e47ba;super(),d(this,_0x2456a7(0x131),[]),(this[_0x2456a7(0x436)]=_0x50411b,this['_univerInstanceService']=_0x18f870,this['_renderManagerService']=_0x5c9afb,this['_docSkeletonManagerService']=_0x1a079c,this[_0x2456a7(0x1e2)]=_0x1d3d45,this[_0x2456a7(0x480)]());}[_0x1e47ba(0x480)](){const _0x22d7dc=_0x1e47ba;this['_docSkeletonManagerService'][_0x22d7dc(0x211)]['pipe'](T[_0x22d7dc(0x308)](this[_0x22d7dc(0x2b1)]),T[_0x22d7dc(0x2bd)](_0x361008=>{const _0x19881f=_0x22d7dc;if(_0x361008){const {unitId:_0x4c9148}=_0x361008;return v[_0x19881f(0x1f6)](this[_0x19881f(0x436)][_0x19881f(0x255)](_0x4c9148),this[_0x19881f(0x1e2)]['currentTheme$'])[_0x19881f(0x1cb)](T[_0x19881f(0x290)](([_0x5de71e,_0x502bb6])=>({'skeleton':_0x361008,'cursors':[..._0x5de71e[_0x19881f(0x357)]()][_0x19881f(0x1a7)](_0x238798=>({..._0x238798,'color':_0x502bb6[_0x238798['color']]}))})));}return v['of']({'skeleton':null,'cursors':[]});}))[_0x22d7dc(0x319)](({skeleton:_0x9ea5b6,cursors:_0x1321d7})=>{const _0x23f5ff=_0x22d7dc;this['_removeCollabCursors'](),_0x9ea5b6&&this[_0x23f5ff(0x2e2)](_0x9ea5b6[_0x23f5ff(0x304)],_0x1321d7);});}[_0x1e47ba(0x2e2)](_0x5cc663,_0x40f362){const _0x593324=_0x1e47ba,_0x27c9e5=this[_0x593324(0x1fd)]();if(_0x27c9e5==null)return;const {scene:_0x3bfe04,document:_0xaf5cb3}=_0x27c9e5,_0x28f008=_0x40f362['map'](_0x507ca2=>new Ys(_0x507ca2,_0x3bfe04,_0x5cc663,_0xaf5cb3));this[_0x593324(0x131)]=_0x28f008;}['_removeCollabCursors'](){const _0x47e17f=_0x1e47ba;this[_0x47e17f(0x131)][_0x47e17f(0x1e6)](_0x130d6b=>_0x130d6b[_0x47e17f(0x36c)]()),this[_0x47e17f(0x131)]=[];}[_0x1e47ba(0x1fd)](){const _0x13c145=_0x1e47ba;return w[_0x13c145(0x1e0)](this[_0x13c145(0x464)],this[_0x13c145(0x175)]);}};ge=Ks([a[_0x1e47ba(0x280)](a['LifecycleStages'][_0x1e47ba(0x2e6)],ge),oe(0x0,h[_0x1e47ba(0x443)](z)),oe(0x1,a[_0x1e47ba(0x118)]),oe(0x2,R[_0x1e47ba(0x1a1)]),oe(0x3,h[_0x1e47ba(0x443)](w[_0x1e47ba(0x3d7)])),oe(0x4,h['Inject'](a[_0x1e47ba(0x43a)]))],ge);var Xs=(_0x3b724e,_0x1d77c9,_0x3bc9d1,_0x53a507)=>{const _0xec321a=_0x1e47ba;for(var _0x45884d=_0x1d77c9,_0x3b1f78=_0x3b724e[_0xec321a(0x3fb)]-0x1,_0x1a80c0;_0x3b1f78>=0x0;_0x3b1f78--)(_0x1a80c0=_0x3b724e[_0x3b1f78])&&(_0x45884d=_0x1a80c0(_0x45884d)||_0x45884d);return _0x45884d;},Me=(_0x2a8924,_0x56e27b)=>(_0x637622,_0x1e4a99)=>_0x56e27b(_0x637622,_0x1e4a99,_0x2a8924);const Ot=_0x1e47ba(0x188),qs=_0x1e47ba(0x32d);let pe=class{constructor(_0x8efe4b,_0x44cbc2,_0x3d460c){const _0x1af6bf=_0x1e47ba;this['_configService']=_0x8efe4b,this[_0x1af6bf(0x20a)]=_0x44cbc2,this[_0x1af6bf(0x420)]=_0x3d460c,this[_0x1af6bf(0x46d)]();}[_0x1e47ba(0x46d)](){const _0xe45e40=_0x1e47ba;this[_0xe45e40(0x20a)][_0xe45e40(0x463)]({'priority':0x1,'interceptor':(_0x1cf6f8,_0x4f52f1)=>_0x4f52f1(_0x1cf6f8)[_0xe45e40(0x1cb)](v[_0xe45e40(0x34e)](async _0x15507a=>{const _0x388efa=_0xe45e40;if(_0x15507a['status']===0x191&&window['confirm'](this['localeService']['t'](_0x388efa(0x181)))){const _0x4442a0=window[_0x388efa(0x449)](window[_0x388efa(0x410)][_0x388efa(0x25b)]);window[_0x388efa(0x410)][_0x388efa(0x25b)]=this[_0x388efa(0x21b)]()+_0x388efa(0x32e)+_0x4442a0;}return _0x15507a;}))});}['_getLoginPath'](){var _0x35bbd6;return(_0x35bbd6=this['_configService']['getConfig'](Ot))!=null?_0x35bbd6:qs;}};pe=Xs([Me(0x0,a['IConfigService']),Me(0x1,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x369)])),Me(0x2,h[_0x1e47ba(0x443)](a[_0x1e47ba(0x37f)]))],pe);var Js=(_0xeb64e6,_0x38246f,_0x181889,_0x335326)=>{const _0x2d2d8e=_0x1e47ba;for(var _0x3c7b90=_0x38246f,_0x1b0273=_0xeb64e6[_0x2d2d8e(0x3fb)]-0x1,_0x550122;_0x1b0273>=0x0;_0x1b0273--)(_0x550122=_0xeb64e6[_0x1b0273])&&(_0x3c7b90=_0x550122(_0x3c7b90)||_0x3c7b90);return _0x3c7b90;},nt=(_0x31c82e,_0x5e3f1f)=>(_0x42d254,_0x16a533)=>_0x5e3f1f(_0x42d254,_0x16a533,_0x31c82e);const zs=_0x1e47ba(0x100),Zs='/universer-api/authz';exports[_0x1e47ba(0x1c0)]=class{constructor(_0xd6668d,_0x7b7418){const _0x468644=_0x1e47ba;this[_0x468644(0x313)]=_0xd6668d,this['_configService']=_0x7b7418;}['_getAPIPrefixPath'](){const _0x20fdeb=_0x1e47ba;var _0x5766c8;return(_0x5766c8=this[_0x20fdeb(0xfd)][_0x20fdeb(0x159)](zs))!=null?_0x5766c8:Zs;}async[_0x1e47ba(0x114)](_0x59c136){const _0x47df35=_0x1e47ba,_0xc0b260=this[_0x47df35(0x1ac)]()+'/'+_0x59c136[_0x47df35(0x399)]+'/object';return(await this[_0x47df35(0x313)][_0x47df35(0x33a)](_0xc0b260,{'body':_0x59c136}))[_0x47df35(0x2ee)][_0x47df35(0x1fa)]||'';}async[_0x1e47ba(0x20b)](_0x4b7ec4){const _0x4df317=_0x1e47ba,_0x14bcc3=this[_0x4df317(0x1ac)]()+_0x4df317(0x1e5);return(await this[_0x4df317(0x313)]['post'](_0x14bcc3,{'body':_0x4b7ec4}))[_0x4df317(0x2ee)][_0x4df317(0x2e5)];}async[_0x1e47ba(0x1c5)](_0xfbbab0){const _0xcdf69d=_0x1e47ba,_0x5c23f6=this[_0xcdf69d(0x1ac)]()+'/'+_0xfbbab0[_0xcdf69d(0x399)]+_0xcdf69d(0x115)+_0xfbbab0[_0xcdf69d(0x1fa)];await this[_0xcdf69d(0x313)][_0xcdf69d(0x116)](_0x5c23f6,{'body':_0xfbbab0});}async[_0x1e47ba(0x1b5)](_0x4f44a3){const _0x36b35d=_0x1e47ba,_0x448382=this[_0x36b35d(0x1ac)]()+'/'+_0x4f44a3[_0x36b35d(0x399)]+_0x36b35d(0x115)+_0x4f44a3[_0x36b35d(0x1fa)]+_0x36b35d(0x141);return(await this['_HTTPService'][_0x36b35d(0x33a)](_0x448382,{'body':_0x4f44a3}))[_0x36b35d(0x2ee)]['actions'];}async[_0x1e47ba(0x472)](_0x80fe28){const _0x48b35a=_0x1e47ba,_0x27cbe9=this[_0x48b35a(0x1ac)]()+_0x48b35a(0x37b);return(await this['_HTTPService'][_0x48b35a(0x33a)](_0x27cbe9,{'body':{'requests':_0x80fe28}}))[_0x48b35a(0x2ee)][_0x48b35a(0x373)];}async[_0x1e47ba(0x108)](_0x10da5e){const _0x5c21ed=_0x1e47ba,_0x5b8fb3=this['_getAPIPrefixPath']()+'/'+_0x10da5e[_0x5c21ed(0x399)]+_0x5c21ed(0x38c),_0x595e5f=(await this[_0x5c21ed(0x313)]['post'](_0x5b8fb3,{'body':_0x10da5e}))[_0x5c21ed(0x2ee)];return{'roles':_0x595e5f['roles'],'actions':_0x595e5f[_0x5c21ed(0xe3)]};}async[_0x1e47ba(0x263)](_0xc9dce7){const _0x39062e=_0x1e47ba,_0x1b2b74=this[_0x39062e(0x1ac)]()+_0x39062e(0x32b);await this['_HTTPService'][_0x39062e(0xf8)](_0x1b2b74,{'params':{'collaboratorID':_0xc9dce7[_0x39062e(0x16c)],'objectID':_0xc9dce7[_0x39062e(0x1fa)],'unitID':_0xc9dce7[_0x39062e(0x2d2)]}});}async[_0x1e47ba(0x1a5)](_0x37b0dc){const _0x5cc764=_0x1e47ba,_0x70fd70=this[_0x5cc764(0x1ac)]()+_0x5cc764(0x32b);await this[_0x5cc764(0x313)]['patch'](_0x70fd70,{'body':_0x37b0dc});}async[_0x1e47ba(0x2c0)](_0x405260){const _0x10f491=_0x1e47ba,_0x20d1b6=this[_0x10f491(0x1ac)]()+_0x10f491(0x32b);await this['_HTTPService'][_0x10f491(0x33a)](_0x20d1b6,{'body':_0x405260});}async['listCollaborators'](_0x126bde){const _0x4b4e63=_0x1e47ba,_0x442baa=this['_getAPIPrefixPath']()+_0x4b4e63(0x32b);return(await this[_0x4b4e63(0x313)][_0x4b4e63(0x367)](_0x442baa,{'params':{'objectID':_0x126bde['objectID'],'unitID':_0x126bde[_0x4b4e63(0x2d2)]}}))['body'][_0x4b4e63(0x127)];}async['putCollaborators'](_0x274770){const _0x446334=_0x1e47ba,_0x3bb261=this[_0x446334(0x1ac)]()+_0x446334(0x32b);await this['_HTTPService'][_0x446334(0x116)](_0x3bb261,{'body':_0x274770});}},exports['AuthzIoHttpService']=Js([nt(0x0,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x369)])),nt(0x1,h[_0x1e47ba(0x443)](a['IConfigService']))],exports[_0x1e47ba(0x1c0)]);var Qs=(_0x1e4ea5,_0x2481f2,_0x5b4085,_0x5bbc69)=>{const _0xb435ce=_0x1e47ba;for(var _0x53f225=_0x2481f2,_0x239061=_0x1e4ea5[_0xb435ce(0x3fb)]-0x1,_0x58e769;_0x239061>=0x0;_0x239061--)(_0x58e769=_0x1e4ea5[_0x239061])&&(_0x53f225=_0x58e769(_0x53f225)||_0x53f225);return _0x53f225;},rt=(_0x5a5f84,_0x49acc4)=>(_0x2cbfaa,_0xb2f3f0)=>_0x49acc4(_0x2cbfaa,_0xb2f3f0,_0x5a5f84);const ei=[_0x1e47ba(0xfa),_0x1e47ba(0x11c),_0x1e47ba(0x1c9),'image/gif',_0x1e47ba(0x189)],ti=0x5*0x400*0x400,si='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ii=_0x1e47ba(0xe7),ni='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ri='/universer-api/file/{fileID}/sign-url';let $e=class{constructor(_0x22f117,_0x163412){const _0x44c431=_0x1e47ba;d(this,_0x44c431(0x3ce),0x0),d(this,_0x44c431(0x307),new v['Subject']()),d(this,_0x44c431(0x126),this['_change$']),d(this,_0x44c431(0x23c),new Map()),(this['_httpService']=_0x22f117,this['_configService']=_0x163412);}[_0x1e47ba(0x18c)](_0x2e8780){const _0x1ab84d=_0x1e47ba;this[_0x1ab84d(0x3ce)]=_0x2e8780,this[_0x1ab84d(0x307)]['next'](_0x2e8780);}[_0x1e47ba(0x149)](_0x35ef26,_0x2eeec7){const _0x4ee001=_0x1e47ba;if(_0x2eeec7===P[_0x4ee001(0x136)][_0x4ee001(0xed)]){const _0x3c2137=new Image();return _0x3c2137[_0x4ee001(0x459)]=_0x35ef26,_0x3c2137;}return this[_0x4ee001(0x23c)][_0x4ee001(0x367)](_0x35ef26);}[_0x1e47ba(0x453)](_0x37e611,_0x580724,_0x55d974){const _0x12e1a8=_0x1e47ba;_0x580724===P['ImageSourceType'][_0x12e1a8(0xed)]||_0x55d974==null||this[_0x12e1a8(0x23c)][_0x12e1a8(0x204)](_0x37e611,_0x55d974);}async[_0x1e47ba(0x421)](_0x4ee23d){const _0xe5a385=_0x1e47ba;try{const _0x55ac78=this[_0xe5a385(0x148)](this[_0xe5a385(0x1df)](),''+_0x4ee23d),_0x317fca=(await this[_0xe5a385(0x20a)][_0xe5a385(0x367)](_0x55ac78))['body'];return _0x317fca[_0xe5a385(0x343)]&&_0x317fca[_0xe5a385(0x343)]['code']===ct['OK']?Promise['resolve'](_0x317fca[_0xe5a385(0x487)]):Promise[_0xe5a385(0x448)](_0x317fca[_0xe5a385(0x343)]);}catch(_0x12aa0a){return Promise[_0xe5a385(0x448)](_0x12aa0a);}}async['saveImage'](_0x19c849){const _0x48ecb1=_0x1e47ba;let _0x48d601='';if(!ei[_0x48ecb1(0x2d5)](_0x19c849[_0x48ecb1(0x2b2)]))return this[_0x48ecb1(0x294)](),Promise[_0x48ecb1(0x448)](new Error(P['ImageUploadStatusType'][_0x48ecb1(0x456)]));if(_0x19c849[_0x48ecb1(0x3b8)]>ti)return this[_0x48ecb1(0x294)](),Promise['reject'](new Error(P['ImageUploadStatusType'][_0x48ecb1(0x2a2)]));try{const _0x55da3c=new FormData();_0x55da3c[_0x48ecb1(0x1a6)]('file',_0x19c849);const _0x3ab81a=this[_0x48ecb1(0x138)]()+_0x48ecb1(0x133)+_0x19c849[_0x48ecb1(0x3b8)]['toString'](),_0x22e2cf=await(await fetch(_0x3ab81a,{'method':_0x48ecb1(0x34c),'body':_0x55da3c}))[_0x48ecb1(0x38a)]();if(typeof _0x22e2cf['FileId']!=_0x48ecb1(0x3ba))return this[_0x48ecb1(0x294)](),Promise[_0x48ecb1(0x448)](new Error(P[_0x48ecb1(0x269)]['ERROR_IMAGE']));_0x48d601=_0x22e2cf[_0x48ecb1(0x162)];}catch{return this[_0x48ecb1(0x294)](),Promise[_0x48ecb1(0x448)](new Error(P[_0x48ecb1(0x269)][_0x48ecb1(0x11d)]));}return new Promise((_0x500785,_0x22e5eb)=>{const _0x4287e0=_0x48ecb1,_0x2a849f=new FileReader();_0x2a849f[_0x4287e0(0x1ed)](_0x19c849),_0x2a849f[_0x4287e0(0x22c)]=_0x7c85ac=>{const _0x343559=_0x4287e0;var _0x4ea83f;const _0x19792f=(_0x4ea83f=_0x7c85ac[_0x343559(0x21d)])==null?void 0x0:_0x4ea83f['result'];if(_0x19792f==null){this['_decreaseWaiting'](),_0x22e5eb(new Error(P[_0x343559(0x269)]['ERROR_IMAGE']));return;}const _0x532da0=a['Tools'][_0x343559(0x3ea)](0x6);_0x500785({'imageId':_0x532da0,'imageSourceType':P['ImageSourceType']['UUID'],'source':_0x48d601,'base64Cache':_0x19792f,'status':P['ImageUploadStatusType'][_0x343559(0x389)]}),this[_0x343559(0x294)]();};});}['_getUploadFileURL'](){const _0x6dc9c9=_0x1e47ba;var _0x796448;return(_0x796448=this[_0x6dc9c9(0xfd)][_0x6dc9c9(0x159)](si))!=null?_0x796448:ii;}['_getSignURL'](){const _0x462d6b=_0x1e47ba;var _0x5c4f02;return(_0x5c4f02=this[_0x462d6b(0xfd)][_0x462d6b(0x159)](ni))!=null?_0x5c4f02:ri;}['_replaceFileID'](_0x3a96c5,_0x2ddef6){const _0x128b21=_0x1e47ba;return _0x3a96c5[_0x128b21(0x1de)]('{fileID}',_0x2ddef6);}[_0x1e47ba(0x294)](){const _0x4ba29e=_0x1e47ba;this[_0x4ba29e(0x3ce)]-=0x1,this['_change$'][_0x4ba29e(0x424)](this['_waitCount']);}};$e=Qs([rt(0x0,h[_0x1e47ba(0x443)](M[_0x1e47ba(0x369)])),rt(0x1,a[_0x1e47ba(0x306)])],$e);var oi=(_0x21fb60,_0xc7da7d,_0x1a5e82,_0x183956)=>{const _0x48e7ff=_0x1e47ba;for(var _0x4e82b9=_0xc7da7d,_0x4cc28d=_0x21fb60[_0x48e7ff(0x3fb)]-0x1,_0x48bfc9;_0x4cc28d>=0x0;_0x4cc28d--)(_0x48bfc9=_0x21fb60[_0x4cc28d])&&(_0x4e82b9=_0x48bfc9(_0x4e82b9)||_0x4e82b9);return _0x4e82b9;},ot=(_0x57e0c9,_0x562e7f)=>(_0x38e211,_0x2eb37e)=>_0x562e7f(_0x38e211,_0x2eb37e,_0x57e0c9);const ai='collaboration-client';var Ne;exports[_0x1e47ba(0x322)]=(Ne=class extends a[_0x1e47ba(0x27f)]{constructor(_0x5a9acc,_0x420986,_0x5d4015){const _0x5905ec=_0x1e47ba;super(),this[_0x5905ec(0x46c)]=_0x5a9acc,this[_0x5905ec(0x376)]=_0x420986,this['_localeService']=_0x5d4015;}[_0x1e47ba(0x298)](_0x4dbb07){const _0x405a3a=_0x1e47ba;var _0x47a9d4,_0x194afb,_0x130136,_0x27f281,_0x4a6f0e;_0x4dbb07[_0x405a3a(0x1de)]([a[_0x405a3a(0x385)],{'useClass':je}]);let _0x2f8fad=[[exports['CollaborationSessionService']],[We],[M[_0x405a3a(0x369)]],[Ye,{'useClass':Dt}],[G],[exports[_0x405a3a(0x23e)]],[M[_0x405a3a(0x372)]],[fe],[me],[ve],[Ve],[pe],[Be,{'useClass':(_0x194afb=(_0x47a9d4=this[_0x405a3a(0x46c)])==null?void 0x0:_0x47a9d4[_0x405a3a(0x185)])!=null?_0x194afb:exports[_0x405a3a(0x10d)]}],[M[_0x405a3a(0x19e)],{'useClass':M[_0x405a3a(0x43b)]}],[a[_0x405a3a(0x112)],{'useClass':ke}],[a[_0x405a3a(0x35e)],{'useClass':exports['AuthzIoHttpService']}],[P[_0x405a3a(0x27b)],{'useClass':$e}],[exports['CollaborationController']],[exports[_0x405a3a(0x3c8)]],[exports['DesktopCollaborationStatusDisplayController']],[Se],[z]];(_0x130136=this[_0x405a3a(0x46c)])!=null&&_0x130136['enableSingleActiveInstanceLock']&&_0x2f8fad[_0x405a3a(0x441)]([Ee,{'useClass':zt}]),((_0x27f281=this[_0x405a3a(0x46c)])==null?void 0x0:_0x27f281[_0x405a3a(0x11e)])==null||this[_0x405a3a(0x46c)]['collaborationUniverTypes'][_0x405a3a(0x2d5)](a['UniverInstanceType'][_0x405a3a(0x342)])?_0x2f8fad[_0x405a3a(0x441)]([de]):this[_0x405a3a(0x46c)][_0x405a3a(0x11e)][_0x405a3a(0x2d5)](a[_0x405a3a(0x12f)][_0x405a3a(0x48c)])&&_0x2f8fad['push']([ge]),_0x2f8fad=a['mergeOverrideWithDependencies'](_0x2f8fad,(_0x4a6f0e=this[_0x405a3a(0x46c)])==null?void 0x0:_0x4a6f0e['override']),_0x2f8fad['forEach'](_0x13f290=>_0x4dbb07[_0x405a3a(0x477)](_0x13f290)),_0x4dbb07[_0x405a3a(0x367)](M[_0x405a3a(0x369)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x4dbb07[_0x405a3a(0x3ed)](M['ThresholdInterceptorFactory'],{'maxParallel':0x6})}),this[_0x405a3a(0x2df)]();}[_0x1e47ba(0x2df)](){const _0x3cb2ee=_0x1e47ba;var _0x150d37,_0x18c8a7;(_0x150d37=this[_0x3cb2ee(0x46c)])!=null&&_0x150d37[_0x3cb2ee(0x2d4)]||this[_0x3cb2ee(0x376)]['get'](exports['LocalCacheService'])['disableLocalCache'](),(_0x18c8a7=this[_0x3cb2ee(0x46c)])!=null&&_0x18c8a7[_0x3cb2ee(0x457)]&&this[_0x3cb2ee(0x376)][_0x3cb2ee(0x367)](pe);}},d(Ne,'pluginName',ai),Ne),exports[_0x1e47ba(0x322)]=oi([ot(0x1,h[_0x1e47ba(0x443)](h[_0x1e47ba(0x488)])),ot(0x2,h['Inject'](a[_0x1e47ba(0x37f)]))],exports[_0x1e47ba(0x322)]),exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_t,exports[_0x1e47ba(0x3f7)]=dt,exports[_0x1e47ba(0x338)]=y,exports[_0x1e47ba(0x42c)]=Tt,exports[_0x1e47ba(0x23a)]=St,exports['HEARTBEAT_TIMEOUT_KEY']=Fe,exports[_0x1e47ba(0x360)]=Be,exports[_0x1e47ba(0x124)]=Ye,exports[_0x1e47ba(0x311)]=vt,exports[_0x1e47ba(0x188)]=Ot,exports[_0x1e47ba(0x23b)]=It,exports[_0x1e47ba(0x178)]=Rt,exports[_0x1e47ba(0x1dc)]=W,exports[_0x1e47ba(0x130)]=Dt,exports[_0x1e47ba(0x160)]=lt,exports[_0x1e47ba(0x1fb)]=ht;
1
+ 'use strict';const _0x53b42f=_0xe052;(function(_0x4a885b,_0x11f14b){const _0x236a0c=_0xe052,_0x3d3719=_0x4a885b();while(!![]){try{const _0x12a5e2=-parseInt(_0x236a0c(0x3d9))/0x1+-parseInt(_0x236a0c(0x1df))/0x2+-parseInt(_0x236a0c(0x40e))/0x3*(-parseInt(_0x236a0c(0x488))/0x4)+-parseInt(_0x236a0c(0x3a0))/0x5*(parseInt(_0x236a0c(0x43f))/0x6)+-parseInt(_0x236a0c(0x2e1))/0x7+parseInt(_0x236a0c(0x31b))/0x8*(-parseInt(_0x236a0c(0x401))/0x9)+parseInt(_0x236a0c(0x2ea))/0xa*(parseInt(_0x236a0c(0x27f))/0xb);if(_0x12a5e2===_0x11f14b)break;else _0x3d3719['push'](_0x3d3719['shift']());}catch(_0x3d86eb){_0x3d3719['push'](_0x3d3719['shift']());}}}(_0x3fcd,0xe9117));var jt=Object[_0x53b42f(0x38a)],$t=(_0x1319dc,_0xba3a36,_0x1350f5)=>_0xba3a36 in _0x1319dc?jt(_0x1319dc,_0xba3a36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1350f5}):_0x1319dc[_0xba3a36]=_0x1350f5,d=(_0x1f7e5b,_0x8e78f6,_0xeefd7)=>$t(_0x1f7e5b,typeof _0x8e78f6!=_0x53b42f(0x205)?_0x8e78f6+'':_0x8e78f6,_0xeefd7);Object['defineProperty'](exports,Symbol[_0x53b42f(0x325)],{'value':'Module'});const a=require(_0x53b42f(0x1dc)),E=require(_0x53b42f(0x23b)),oe=require('@univerjs/design'),N=require(_0x53b42f(0x2fd)),u=require('@univerjs-pro/collaboration'),h=require(_0x53b42f(0x225)),g=require('rxjs'),T=require('rxjs/operators'),M=require(_0x53b42f(0x302)),P=require(_0x53b42f(0x4cb)),A=require('@univerjs/drawing'),Ye=require(_0x53b42f(0x466)),He=require('lodash/debounce'),R=require(_0x53b42f(0x256)),ee=require('@univerjs/sheets-ui'),at=require(_0x53b42f(0x3e3)),L=require('react'),Ht=require('clsx'),xt=require('@univerjs/rpc'),ct='SNAPSHOT_SERVER_URL_KEY',kt=_0x53b42f(0x2ca),lt=_0x53b42f(0x44c),ht='SEND_CHANGESET_TIMEOUT',Bt=0x7d0,_t=_0x53b42f(0x4dd),Ft=_0x53b42f(0x312),ut=_0x53b42f(0x467),Vt=0x7530,xe=_0x53b42f(0x1f1),dt=0x2710,Wt='RETRY_CONNECTING_INTERVAL',Gt=0x4e20,Yt=_0x53b42f(0x1ef),Kt=0x3,St='LOCAL_CACHE_INTERVAL',Xt=0x3e8,vt=_0x53b42f(0x316),qt=_0x53b42f(0x2c4),gt=_0x53b42f(0x465),zt=_0x53b42f(0x244);var ft=(_0x2594fe=>(_0x2594fe[_0x2594fe[_0x53b42f(0x2fb)]=0x0]=_0x53b42f(0x2fb),_0x2594fe[_0x2594fe['OK']=0x1]='OK',_0x2594fe[_0x2594fe['INTERNAL_ERROR']=0x2]=_0x53b42f(0x3b2),_0x2594fe[_0x2594fe[_0x53b42f(0x257)]=0x3]=_0x53b42f(0x257),_0x2594fe[_0x2594fe[_0x53b42f(0x3d5)]=0x4]=_0x53b42f(0x3d5),_0x2594fe[_0x2594fe[_0x53b42f(0x167)]=0x5]=_0x53b42f(0x167),_0x2594fe[_0x2594fe['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2594fe[_0x2594fe[_0x53b42f(0x408)]=0x7]=_0x53b42f(0x408),_0x2594fe[_0x2594fe[_0x53b42f(0x367)]=0x8]='TOO_MANY_REQUESTS',_0x2594fe[_0x2594fe[_0x53b42f(0x218)]=0x9]=_0x53b42f(0x218),_0x2594fe[_0x2594fe[_0x53b42f(0x40f)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x42d)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x2594fe[_0x2594fe[_0x53b42f(0x3da)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x2594fe[_0x2594fe[_0x53b42f(0x2b0)]=0x1b59]='APPLY_REJECT',_0x2594fe[_0x2594fe[_0x53b42f(0x46e)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2594fe[_0x2594fe[_0x53b42f(0x229)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2594fe[_0x2594fe[_0x53b42f(0x2db)]=0x1b5c]=_0x53b42f(0x2db),_0x2594fe[_0x2594fe[_0x53b42f(0x40d)]=0x1f41]=_0x53b42f(0x40d),_0x2594fe[_0x2594fe[_0x53b42f(0x180)]=0x2329]=_0x53b42f(0x180),_0x2594fe[_0x2594fe[_0x53b42f(0x22d)]=0x232a]=_0x53b42f(0x22d),_0x2594fe[_0x2594fe[_0x53b42f(0x43c)]=0x232b]=_0x53b42f(0x43c),_0x2594fe[_0x2594fe[_0x53b42f(0x277)]=0x232c]=_0x53b42f(0x277),_0x2594fe[_0x2594fe[_0x53b42f(0x3df)]=0x232d]=_0x53b42f(0x3df),_0x2594fe[_0x2594fe[_0x53b42f(0x40c)]=0x2711]=_0x53b42f(0x40c),_0x2594fe[_0x2594fe[_0x53b42f(0x291)]=0x2712]=_0x53b42f(0x291),_0x2594fe[_0x2594fe[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x2594fe))(ft||{}),j=(_0x515b1e=>(_0x515b1e[_0x515b1e[_0x53b42f(0x41a)]=0x0]=_0x53b42f(0x41a),_0x515b1e[_0x515b1e[_0x53b42f(0x220)]=0x1]=_0x53b42f(0x220),_0x515b1e[_0x515b1e[_0x53b42f(0x164)]=0x2]=_0x53b42f(0x164),_0x515b1e[_0x515b1e[_0x53b42f(0x26a)]=0x3]=_0x53b42f(0x26a),_0x515b1e[_0x515b1e['UNRECOGNIZED']=-0x1]=_0x53b42f(0x406),_0x515b1e))(j||{}),b=(_0x5cad4d=>(_0x5cad4d[_0x5cad4d[_0x53b42f(0x445)]=0x0]=_0x53b42f(0x445),_0x5cad4d[_0x5cad4d['HELLO']=0x1]='HELLO',_0x5cad4d[_0x5cad4d[_0x53b42f(0x442)]=0x2]=_0x53b42f(0x442),_0x5cad4d[_0x5cad4d['LEAVE']=0x3]=_0x53b42f(0x4e4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x292)]=0x4]='INGEST',_0x5cad4d[_0x5cad4d[_0x53b42f(0x33f)]=0x5]=_0x53b42f(0x33f),_0x5cad4d[_0x5cad4d[_0x53b42f(0x4c4)]=0x6]=_0x53b42f(0x4c4),_0x5cad4d[_0x5cad4d[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x5cad4d))(b||{}),ke=(_0x371321=>(_0x371321[_0x371321['UNKNOWN_CODE']=0x0]=_0x53b42f(0x294),_0x371321[_0x371321['OK']=0x1]='OK',_0x371321[_0x371321[_0x53b42f(0x202)]=0x2]='FAIL',_0x371321[_0x371321[_0x53b42f(0x406)]=-0x1]=_0x53b42f(0x406),_0x371321))(ke||{}),Jt=Object['defineProperty'],Zt=Object[_0x53b42f(0x2a8)],Qt=(_0x5f01c8,_0x35267b,_0x178ddb,_0x135042)=>{for(var _0x2422d1=_0x135042>0x1?void 0x0:_0x135042?Zt(_0x35267b,_0x178ddb):_0x35267b,_0x3196ca=_0x5f01c8['length']-0x1,_0x10d192;_0x3196ca>=0x0;_0x3196ca--)(_0x10d192=_0x5f01c8[_0x3196ca])&&(_0x2422d1=(_0x135042?_0x10d192(_0x35267b,_0x178ddb,_0x2422d1):_0x10d192(_0x2422d1))||_0x2422d1);return _0x135042&&_0x2422d1&&Jt(_0x35267b,_0x178ddb,_0x2422d1),_0x2422d1;},Ke=(_0x4fe674,_0x23e6fd)=>(_0x5e4c6d,_0x4ed765)=>_0x23e6fd(_0x5e4c6d,_0x4ed765,_0x4fe674);let G=class extends a[_0x53b42f(0x18e)]{constructor(_0x8a4e95,_0x15096e){const _0x4266a5=_0x53b42f;super(),d(this,_0x4266a5(0x272),new Map()),(this[_0x4266a5(0x49a)]=_0x8a4e95,this[_0x4266a5(0x3d7)]=_0x15096e,this[_0x4266a5(0x1e9)](a[_0x4266a5(0x1bb)](g[_0x4266a5(0x221)](this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x164)])['pipe'](T[_0x4266a5(0x1af)](_0x27f9fb=>_0x27f9fb[_0x4266a5(0x1f9)]())),this[_0x4266a5(0x49a)]['getTypeOfUnitDisposed$'](a[_0x4266a5(0x142)][_0x4266a5(0x220)])[_0x4266a5(0x454)](T['map'](_0x3344f1=>_0x3344f1['getUnitId']())),this[_0x4266a5(0x49a)][_0x4266a5(0x160)](a[_0x4266a5(0x142)][_0x4266a5(0x26a)])['pipe'](T[_0x4266a5(0x1af)](_0x5f2c5d=>_0x5f2c5d[_0x4266a5(0x1f9)]())))['subscribe'](_0x2f0f91=>this[_0x4266a5(0x2f2)](_0x2f0f91)))));}['setCurrentUser'](_0x212415){const _0x32cd33=_0x53b42f;this[_0x32cd33(0x3d7)][_0x32cd33(0x273)](_0x212415);}['getCurrentUser'](){const _0x295326=_0x53b42f;return this[_0x295326(0x3d7)][_0x295326(0x341)]();}[_0x53b42f(0x4ad)](_0xf0f929,_0x5dff7e){const _0x3b5401=_0x53b42f;let _0x486fc5=this[_0x3b5401(0x272)][_0x3b5401(0x3d4)](_0xf0f929);_0x486fc5||(_0x486fc5=new es(),this[_0x3b5401(0x272)][_0x3b5401(0x2e0)](_0xf0f929,_0x486fc5)),_0x486fc5[_0x3b5401(0x4ad)](_0x5dff7e);}[_0x53b42f(0x3bf)](_0x2f36df,_0x445df6){const _0x1ac2b2=_0x53b42f,_0x3507ab=this['_roomMembers'][_0x1ac2b2(0x3d4)](_0x2f36df);_0x3507ab&&_0x3507ab['removeMember'](_0x445df6);}[_0x53b42f(0x440)](_0x560b23){const _0x1ac643=_0x53b42f;return this[_0x1ac643(0x272)][_0x1ac643(0x3d4)](_0x560b23);}['getMember'](_0x5562ab,_0x4d2266){const _0x939393=_0x53b42f,_0x4abf5c=this[_0x939393(0x272)][_0x939393(0x3d4)](_0x5562ab);if(_0x4abf5c)return _0x4abf5c[_0x939393(0x4b5)](_0x4d2266);}[_0x53b42f(0x2f2)](_0x447eab){const _0x2ffba7=_0x53b42f,_0x30b25f=this[_0x2ffba7(0x272)][_0x2ffba7(0x3d4)](_0x447eab);_0x30b25f&&(_0x30b25f[_0x2ffba7(0x4df)](),this[_0x2ffba7(0x272)][_0x2ffba7(0x35b)](_0x447eab));}[_0x53b42f(0x4df)](){const _0x8ceeee=_0x53b42f;this[_0x8ceeee(0x272)]['forEach'](_0x25b729=>_0x25b729[_0x8ceeee(0x4df)]()),this[_0x8ceeee(0x272)]['clear']();}};G=Qt([Ke(0x0,a[_0x53b42f(0x390)]),Ke(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x2a0)]))],G);class es extends a[_0x53b42f(0x18e)]{constructor(){const _0x19e656=_0x53b42f;super(...arguments),d(this,_0x19e656(0x237),new Map());}[_0x53b42f(0x4df)](){const _0x194bed=_0x53b42f;this[_0x194bed(0x237)][_0x194bed(0x4de)]();}[_0x53b42f(0x4ad)](_0x5fa5d5){const _0xdf3657=_0x53b42f;this[_0xdf3657(0x237)]['set'](_0x5fa5d5[_0xdf3657(0x328)],_0x5fa5d5);}['removeMember'](_0x2406d7){const _0xdbe1d2=_0x53b42f;this[_0xdbe1d2(0x237)]['delete'](_0x2406d7);}[_0x53b42f(0x4b5)](_0xdeb4b){const _0x2fdef1=_0x53b42f;return this[_0x2fdef1(0x237)][_0x2fdef1(0x3d4)](_0xdeb4b);}}function mt(_0xffffa){const _0x265587=_0x53b42f;var _0x5501c6,_0x2fc012,_0x12c7d8,_0x4a8043;const _0x4fdafa=_0xffffa[_0x265587(0x169)],_0xbbbe93=JSON[_0x265587(0x4b2)](_0x4fdafa);switch(_0xbbbe93['cmd']){case b[_0x265587(0x33f)]:case b['HELLO']:{const _0x5f1534=_0xbbbe93[_0x265587(0x35d)];return{..._0xbbbe93,'data':_0x5f1534,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b[_0x265587(0x442)]:{const _0x7e11d1=_0xbbbe93[_0x265587(0x1ed)];return{..._0xbbbe93,'data':_0x7e11d1,'cmd':_0xbbbe93[_0x265587(0x242)]};}case b['RECV']:{const _0x1fb352=_0xbbbe93[_0x265587(0x307)];switch(_0x1fb352['eventID']){case u['CollaborationEvent'][_0x265587(0x4ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x5501c6=_0x1fb352[_0x265587(0x4d1)])==null?void 0x0:_0x5501c6['cs']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['CHANGESET_ACK']:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x2fc012=_0x1fb352[_0x265587(0x385)])==null?void 0x0:_0x2fc012['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x463)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x12c7d8=_0x1fb352[_0x265587(0x327)])==null?void 0x0:_0x12c7d8['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x2d1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':(_0x4a8043=_0x1fb352[_0x265587(0x32f)])==null?void 0x0:_0x4a8043['cs']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x4e1)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['updateCursorEvent']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent'][_0x265587(0x3cb)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x3e9)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x177)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['leaveEvent']},'cmd':_0xbbbe93['cmd']};case u['CollaborationEvent'][_0x265587(0x450)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareNewHost']},'cmd':_0xbbbe93['cmd']};case u[_0x265587(0x3fe)]['LIVESHARE_FETCH_OPERATIONS']:case u[_0x265587(0x3fe)][_0x265587(0x329)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352['liveShareOperation']},'cmd':_0xbbbe93[_0x265587(0x242)]};case u[_0x265587(0x3fe)][_0x265587(0x1ce)]:return{..._0xbbbe93,'data':{..._0x1fb352,'data':_0x1fb352[_0x265587(0x285)]},'cmd':_0xbbbe93[_0x265587(0x242)]};case u['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0xbbbe93,'data':_0x1fb352,'cmd':_0xbbbe93[_0x265587(0x242)]};default:return _0xbbbe93;}}default:return _0xbbbe93;}}function It(_0x12f1c6){const _0x301769=_0x53b42f;switch(_0x12f1c6['cmd']){case b[_0x301769(0x33f)]:case b['HELLO']:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)]});case b[_0x301769(0x292)]:{let _0x3aa62f;switch(_0x12f1c6[_0x301769(0x169)][_0x301769(0x428)]){case u['CollaborationEvent'][_0x301769(0x4e1)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x4e1)],'updateCursorEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x177)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x177)],'leaveEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)]['USERS_ENTER']:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x3cb)],'joinEvent':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x450)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x450)],'liveShareNewHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u['CollaborationEvent'][_0x301769(0x329)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x329)],'liveShareOperation':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x1ce)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x12f1c6['data'][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x27b)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x27b)],'liveShareRequestHost':_0x12f1c6[_0x301769(0x169)][_0x301769(0x169)]};break;}case u[_0x301769(0x3fe)][_0x301769(0x499)]:{_0x3aa62f={'eventID':u[_0x301769(0x3fe)][_0x301769(0x499)]};break;}default:_0x3aa62f={'eventID':_0x12f1c6['data'][_0x301769(0x428)]};}return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'collaMsg':_0x3aa62f});}case b[_0x301769(0x442)]:return JSON[_0x301769(0x339)]({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6[_0x301769(0x31e)],'joinReq':_0x12f1c6[_0x301769(0x169)]});case b['LEAVE']:return JSON['stringify']({'cmd':_0x12f1c6[_0x301769(0x242)],'routeKey':_0x12f1c6['routeKey'],'leaveReq':_0x12f1c6['data']});default:throw new Error(_0x301769(0x4e0));}}var ts=Object[_0x53b42f(0x38a)],ss=Object[_0x53b42f(0x2a8)],is=(_0x35e54c,_0x5d9009,_0x3702d7,_0x23840f)=>{const _0x115fc1=_0x53b42f;for(var _0x24ecb1=_0x23840f>0x1?void 0x0:_0x23840f?ss(_0x5d9009,_0x3702d7):_0x5d9009,_0x11eed9=_0x35e54c[_0x115fc1(0x419)]-0x1,_0x5226b3;_0x11eed9>=0x0;_0x11eed9--)(_0x5226b3=_0x35e54c[_0x11eed9])&&(_0x24ecb1=(_0x23840f?_0x5226b3(_0x5d9009,_0x3702d7,_0x24ecb1):_0x5226b3(_0x24ecb1))||_0x24ecb1);return _0x23840f&&_0x24ecb1&&ts(_0x5d9009,_0x3702d7,_0x24ecb1),_0x24ecb1;},te=(_0x18a0a0,_0x32ff1e)=>(_0x2632a8,_0x4aeedc)=>_0x32ff1e(_0x2632a8,_0x4aeedc,_0x18a0a0);const Be=h['createIdentifier'](_0x53b42f(0x3f9));function ns(_0x2f74f1,_0x1b4a14,_0x29db64){const _0x3dd3e6=_0x53b42f;return _0x2f74f1+'/'+_0x1b4a14+_0x3dd3e6(0x254)+_0x29db64+_0x3dd3e6(0x208);}exports[_0x53b42f(0x236)]=class{constructor(_0x2825e5,_0x215126,_0x21fee6,_0x55b26a,_0x12a2fe){const _0x261a61=_0x53b42f;this[_0x261a61(0x280)]=_0x2825e5,this[_0x261a61(0x3f2)]=_0x215126,this[_0x261a61(0x2a6)]=_0x21fee6,this[_0x261a61(0x42f)]=_0x55b26a,this[_0x261a61(0x3e0)]=_0x12a2fe;}[_0x53b42f(0x39f)](_0x58e1d4){const _0x43d24d=_0x53b42f,_0x489313=this[_0x43d24d(0x3f2)][_0x43d24d(0x39f)](_0x58e1d4);if(!_0x489313)throw new Error(_0x43d24d(0x1d4));const _0x330e71=new a[(_0x43d24d(0x4a8))](),_0x2b4ab1=new g[(_0x43d24d(0x298))]();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x24c)][_0x43d24d(0x492)](_0xa11b65=>_0x2b4ab1['next'](_0xa11b65)))),_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](()=>_0x2b4ab1[_0x43d24d(0x146)]()));const _0x23d5c9=new g[(_0x43d24d(0x298))]();_0x330e71['add'](a['toDisposable'](_0x489313[_0x43d24d(0x3ed)][_0x43d24d(0x492)](_0x350584=>_0x23d5c9[_0x43d24d(0x414)](_0x350584)))),_0x330e71['add'](a[_0x43d24d(0x1bb)](()=>_0x23d5c9[_0x43d24d(0x146)]()));const _0xd40ff9=new g['Subject']();_0x330e71[_0x43d24d(0x1e5)](a[_0x43d24d(0x1bb)](_0x489313[_0x43d24d(0x42e)][_0x43d24d(0x492)](_0x107d7a=>{const _0x40ae9a=_0x43d24d,_0xb39a1d=mt(_0x107d7a);_0xd40ff9[_0x40ae9a(0x414)](_0xb39a1d);}))),_0x330e71[_0x43d24d(0x1e5)](a['toDisposable'](()=>_0xd40ff9[_0x43d24d(0x146)]()));const _0x3ff207=()=>{const _0x67b5a3=_0x43d24d;_0x23d5c9[_0x67b5a3(0x414)](new Event(_0x67b5a3(0x13e))),_0x2b4ab1['next'](new CloseEvent(_0x67b5a3(0x13e))),_0x149c53[_0x67b5a3(0x2ab)]();},_0x149c53={'memberID':'','close$':_0x2b4ab1['asObservable'](),'error$':_0x23d5c9['asObservable'](),'open$':_0x489313[_0x43d24d(0x13f)],'message$':_0xd40ff9[_0x43d24d(0x1d6)](),'send':_0xa45afc=>{const _0x7701af=_0x43d24d;if(_0xa45afc['cmd']===b[_0x7701af(0x292)]){if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u['CollaborationEvent'][_0x7701af(0x315)]){this[_0x7701af(0x269)](_0x149c53,_0xa45afc['data'])[_0x7701af(0x18d)](_0x103ccb=>{const _0x26ecf7=_0x7701af;this[_0x26ecf7(0x42f)][_0x26ecf7(0x150)](_0x103ccb),_0x3ff207();});return;}if(_0xa45afc[_0x7701af(0x169)][_0x7701af(0x428)]===u[_0x7701af(0x3fe)][_0x7701af(0x2c9)]){const _0x27ed59=_0xa45afc['data'];this[_0x7701af(0x281)](_0x27ed59)[_0x7701af(0x3ab)](_0x52caaa=>{const _0x547df1=_0x7701af;_0xd40ff9[_0x547df1(0x414)]({'cmd':b['RECV'],'code':ke['OK'],'routeKey':_0x27ed59['data'][_0x547df1(0x348)],'routeType':'','data':{'eventID':u[_0x547df1(0x3fe)][_0x547df1(0x2ee)],'data':{'changesets':_0x52caaa}}});})[_0x7701af(0x18d)](_0x48fc3a=>{this['_logService']['error'](_0x48fc3a),_0x3ff207();});return;}}_0x489313[_0x7701af(0x279)](It(_0xa45afc));},'close':()=>{const _0x418716=_0x43d24d;_0x489313['close'](),_0x330e71[_0x418716(0x4df)]();}};return _0x149c53;}async[_0x53b42f(0x269)](_0x34b632,_0x4891e2){const _0x54510f=_0x53b42f;var _0x569b46;const {unitType:_0xcb2cbb,unitID:_0x4768dd,changeset:_0x184f90}=_0x4891e2['data'],_0x2ded46={'unitID':_0x4768dd,'memberID':_0x34b632[_0x54510f(0x328)],'type':_0xcb2cbb,'changeset':u[_0x54510f(0x308)](_0x184f90)},_0x3f6bdd=ns((_0x569b46=this[_0x54510f(0x2a6)][_0x54510f(0x1d8)](vt))!=null?_0x569b46:qt,_0xcb2cbb,_0x4768dd);try{await this[_0x54510f(0x280)]['post'](_0x3f6bdd,{'body':_0x2ded46});}catch(_0x2ac425){throw this[_0x54510f(0x42f)][_0x54510f(0x150)](_0x54510f(0x29b),_0x54510f(0x275)),_0x2ac425;}}async[_0x53b42f(0x281)](_0x32e552){const _0x97773c=_0x53b42f,{unitID:_0x3ba00f,from:_0x5ad2e4,to:_0x465023,unitType:_0x3208b8}=_0x32e552[_0x97773c(0x169)];return(await this[_0x97773c(0x3e0)][_0x97773c(0x25e)]({'metadata':void 0x0},{'unitID':_0x3ba00f,'type':_0x3208b8,'from':_0x5ad2e4,'to':_0x465023}))[_0x97773c(0x3d8)];}},exports[_0x53b42f(0x236)]=is([te(0x0,h['Inject'](P[_0x53b42f(0x452)])),te(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x1c0)])),te(0x2,a['IConfigService']),te(0x3,a[_0x53b42f(0x4c8)]),te(0x4,a[_0x53b42f(0x174)])],exports[_0x53b42f(0x236)]);var rs=Object[_0x53b42f(0x38a)],os=Object[_0x53b42f(0x2a8)],pt=(_0x16b98d,_0x24b8f0,_0x5d2a79,_0x4322d4)=>{const _0x32082d=_0x53b42f;for(var _0x124a06=_0x4322d4>0x1?void 0x0:_0x4322d4?os(_0x24b8f0,_0x5d2a79):_0x24b8f0,_0x1f5b39=_0x16b98d[_0x32082d(0x419)]-0x1,_0x14de47;_0x1f5b39>=0x0;_0x1f5b39--)(_0x14de47=_0x16b98d[_0x1f5b39])&&(_0x124a06=(_0x4322d4?_0x14de47(_0x24b8f0,_0x5d2a79,_0x124a06):_0x14de47(_0x124a06))||_0x124a06);return _0x4322d4&&_0x124a06&&rs(_0x24b8f0,_0x5d2a79,_0x124a06),_0x124a06;},U=(_0x38ce21,_0x507022)=>(_0xe48096,_0x4b2ee5)=>_0x507022(_0xe48096,_0x4b2ee5,_0x38ce21),W=(_0x4e8c97=>(_0x4e8c97[_0x4e8c97[_0x53b42f(0x49f)]=0x0]=_0x53b42f(0x49f),_0x4e8c97[_0x4e8c97[_0x53b42f(0x2cc)]=0x1]=_0x53b42f(0x2cc),_0x4e8c97[_0x4e8c97[_0x53b42f(0x1b4)]=0x2]=_0x53b42f(0x1b4),_0x4e8c97[_0x4e8c97[_0x53b42f(0x4c3)]=0x3]=_0x53b42f(0x4c3),_0x4e8c97))(W||{});exports['CollaborationSession']=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4c26ec,_0x420a62,_0x516747,_0x5c5c0c,_0x2468ed,_0x38c96e,_0xb94b2f,_0x35a6b9){const _0x324ceb=_0x53b42f;super(),d(this,'_sessionStatus$',new g[(_0x324ceb(0x28a))](0x0)),d(this,_0x324ceb(0x222),this[_0x324ceb(0x4bc)][_0x324ceb(0x1d6)]()),d(this,'_event$',new g[(_0x324ceb(0x298))]()),d(this,_0x324ceb(0x255),this[_0x324ceb(0x3b0)]['asObservable']()),d(this,'_socket'),d(this,_0x324ceb(0x1d5)),d(this,_0x324ceb(0x3b3)),(this[_0x324ceb(0x39d)]=_0x4c26ec,this['_logService']=_0x516747,this['_beforeCloseService']=_0x5c5c0c,this[_0x324ceb(0x23f)]=_0x2468ed,this['_configService']=_0x38c96e,this[_0x324ceb(0x2bd)]=_0xb94b2f,this[_0x324ceb(0x4ae)]=_0x35a6b9,_0x420a62[_0x324ceb(0x454)](T[_0x324ceb(0x436)](this[_0x324ceb(0x35f)]))['subscribe'](_0x6aa2ef=>{const _0x590c52=_0x324ceb;var _0x4233f7;typeof _0x6aa2ef>'u'||(this[_0x590c52(0x187)]=_0x6aa2ef,_0x6aa2ef?(this[_0x590c52(0x20e)](_0x6aa2ef),this[_0x590c52(0x1d5)]=this['_socket'][_0x590c52(0x42e)][_0x590c52(0x492)](_0x14f877=>{const _0x224cd4=_0x590c52;_0x14f877[_0x224cd4(0x31e)]===this[_0x224cd4(0x39d)]&&this['_onCombEvent'](_0x14f877);})):(this[_0x590c52(0x4bc)]['next'](0x2),(_0x4233f7=this[_0x590c52(0x1d5)])==null||_0x4233f7['unsubscribe'](),this[_0x590c52(0x1d5)]=null));}),this[_0x324ceb(0x1e9)](this[_0x324ceb(0x26f)][_0x324ceb(0x30e)](()=>{const _0x214367=_0x324ceb;var _0xc3cc20;(_0xc3cc20=this[_0x214367(0x187)])==null||_0xc3cc20[_0x214367(0x279)]({'cmd':b[_0x214367(0x4e4)],'data':{'roomID':this[_0x214367(0x39d)]}});})));}get['sessionStatus'](){const _0x57f242=_0x53b42f;return this[_0x57f242(0x4bc)][_0x57f242(0x47e)]();}['getMemberID'](){const _0x134189=_0x53b42f;var _0x4a92b5,_0x27d8b4;return(_0x27d8b4=(_0x4a92b5=this[_0x134189(0x187)])==null?void 0x0:_0x4a92b5['memberID'])!=null?_0x27d8b4:null;}[_0x53b42f(0x4df)](){const _0x39e611=_0x53b42f;super[_0x39e611(0x4df)](),this[_0x39e611(0x35f)]['next'](),this[_0x39e611(0x35f)][_0x39e611(0x146)]();}[_0x53b42f(0x31c)](_0x2af6f6){const _0x2d253b=_0x53b42f;_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x442)]?this[_0x2d253b(0x4d0)](_0x2af6f6):_0x2af6f6[_0x2d253b(0x242)]===b[_0x2d253b(0x4c4)]&&this[_0x2d253b(0x30b)](_0x2af6f6);}[_0x53b42f(0x20e)](_0x23e432){const _0x588659=_0x53b42f;this[_0x588659(0x4bc)][_0x588659(0x414)](0x1),_0x23e432['send']({'cmd':b[_0x588659(0x442)],'routeKey':this[_0x588659(0x39d)],'routeType':'','data':{'rooms':[{'roomID':this[_0x588659(0x39d)]}]}});}[_0x53b42f(0x4d0)](_0x59c460){const _0xf908b0=_0x53b42f;var _0x913316;if(_0x59c460[_0xf908b0(0x486)]===ke['FAIL']){this[_0xf908b0(0x23f)][_0xf908b0(0x138)]({'type':oe[_0xf908b0(0x3c9)][_0xf908b0(0x376)],'content':this[_0xf908b0(0x2bd)]['t']('session.room-full')}),this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x2);return;}this[_0xf908b0(0x4bc)][_0xf908b0(0x414)](0x3);const _0x24be44=(_0x913316=_0x59c460[_0xf908b0(0x169)][_0xf908b0(0x268)][this[_0xf908b0(0x39d)]])==null?void 0x0:_0x913316['members'];_0x24be44&&_0x24be44[_0xf908b0(0x421)](_0x2d89cd=>this['_memberService'][_0xf908b0(0x4ad)](this[_0xf908b0(0x39d)],_0x2d89cd));}[_0x53b42f(0x30b)](_0x2ae5ea){const _0x42e6d8=_0x53b42f;try{const _0x650119=_0x2ae5ea[_0x42e6d8(0x169)];switch(_0x650119[_0x42e6d8(0x428)]){case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x3cb)]:this[_0x42e6d8(0x154)](_0x650119),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x177)]:this[_0x42e6d8(0x173)](_0x650119),this['_event$'][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x45a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;case u[_0x42e6d8(0x3fe)][_0x42e6d8(0x190)]:this['_logService'][_0x42e6d8(0x150)](_0x42e6d8(0x4cd)+JSON[_0x42e6d8(0x339)](_0x650119)),this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);break;default:this[_0x42e6d8(0x3b0)][_0x42e6d8(0x414)](_0x650119);}}catch(_0x60c2ff){this[_0x42e6d8(0x42f)][_0x42e6d8(0x150)](_0x60c2ff,_0x2ae5ea);}}['_onUserJoin'](_0x3ebc9f){const _0x3a91a7=_0x53b42f;this[_0x3a91a7(0x4ae)]['updateMember'](this[_0x3a91a7(0x39d)],_0x3ebc9f[_0x3a91a7(0x169)]);}[_0x53b42f(0x173)](_0x471a4c){const _0x3d7e20=_0x53b42f;this[_0x3d7e20(0x4ae)]['removeMember'](this[_0x3d7e20(0x39d)],_0x471a4c['data'][_0x3d7e20(0x328)]);}async[_0x53b42f(0x279)](_0x37a3f3,_0x49689d){const _0xce3d39=_0x53b42f;if(this[_0xce3d39(0x201)]!==0x3||!this['_socket'])throw new Error(_0xce3d39(0x1a6));try{_0x37a3f3[_0xce3d39(0x428)]===u['CollaborationEvent'][_0xce3d39(0x463)]&&this[_0xce3d39(0x290)](),this[_0xce3d39(0x187)]['send']({'cmd':b[_0xce3d39(0x292)],'routeKey':_0x49689d,'routeType':'','data':_0x37a3f3});}catch(_0x351f53){this[_0xce3d39(0x42f)][_0xce3d39(0x150)](_0x351f53);}}[_0x53b42f(0x290)](){const _0x54c7eb=_0x53b42f;var _0x1f3b82;this['_collaborationTimeoutTimer']=window[_0x54c7eb(0x373)](()=>{const _0x31c295=_0x54c7eb;this[_0x31c295(0x3b3)]=null,this['_messageService']['show']({'type':oe[_0x31c295(0x3c9)][_0x31c295(0x23a)],'content':this[_0x31c295(0x2bd)]['t'](_0x31c295(0x342))});},(_0x1f3b82=this[_0x54c7eb(0x2a6)][_0x54c7eb(0x1d8)](xe))!=null?_0x1f3b82:dt);}[_0x53b42f(0x3d1)](){const _0x210069=_0x53b42f;this[_0x210069(0x3b3)]&&(clearTimeout(this[_0x210069(0x3b3)]),this[_0x210069(0x3b3)]=null);}},exports[_0x53b42f(0x4b9)]=pt([U(0x2,a[_0x53b42f(0x4c8)]),U(0x3,N[_0x53b42f(0x34d)]),U(0x4,N[_0x53b42f(0x288)]),U(0x5,a[_0x53b42f(0x4a2)]),U(0x6,h['Inject'](a['LocaleService'])),U(0x7,h[_0x53b42f(0x295)](G))],exports[_0x53b42f(0x4b9)]),exports['CollaborationSessionService']=class extends a[_0x53b42f(0x18e)]{constructor(_0x4eaa85,_0x345e4d,_0x5aee16,_0x3860c6,_0x67cf99,_0x1b598b){const _0x40f657=_0x53b42f;super(),d(this,_0x40f657(0x42b),new g[(_0x40f657(0x28a))](void 0x0)),d(this,_0x40f657(0x1aa),new Map()),d(this,_0x40f657(0x41b),new g[(_0x40f657(0x28a))](0x0)),d(this,_0x40f657(0x183),this['_status$'][_0x40f657(0x1d6)]()),d(this,_0x40f657(0x2bf),!0x1),d(this,_0x40f657(0x241)),d(this,'_timeoutTimer'),d(this,_0x40f657(0x1f2)),d(this,'_retryCount',0x0),(this['_injector']=_0x4eaa85,this[_0x40f657(0x2bd)]=_0x345e4d,this['_messageService']=_0x5aee16,this['_logService']=_0x3860c6,this[_0x40f657(0x2a6)]=_0x67cf99,this[_0x40f657(0x1db)]=_0x1b598b);}get[_0x53b42f(0x187)](){const _0x4338bb=_0x53b42f;return this['_socket$'][_0x4338bb(0x47e)]();}[_0x53b42f(0x4df)](){const _0x37715f=_0x53b42f;super[_0x37715f(0x4df)](),this[_0x37715f(0x1aa)][_0x37715f(0x421)](_0x30fdad=>_0x30fdad[_0x37715f(0x4df)]()),this[_0x37715f(0x1aa)]['clear'](),this[_0x37715f(0x41b)][_0x37715f(0x146)]();}async['requireSession'](_0x1c1ef6){const _0x159203=_0x53b42f;if(this['_sessions'][_0x159203(0x378)](_0x1c1ef6))return this['_sessions'][_0x159203(0x3d4)](_0x1c1ef6);this['_tryEnsureSocket']();const _0x37ed7a=this[_0x159203(0x45d)]['createInstance'](exports[_0x159203(0x4b9)],_0x1c1ef6,this[_0x159203(0x42b)]['asObservable']());return this[_0x159203(0x1aa)]['set'](_0x1c1ef6,_0x37ed7a),_0x37ed7a;}[_0x53b42f(0x1ad)](){const _0x26316e=_0x53b42f;var _0x4174a3;const _0x524ede=(_0x4174a3=this[_0x26316e(0x2a6)]['getConfig'](_t))!=null?_0x4174a3:Ft;return this[_0x26316e(0x1db)][_0x26316e(0x39f)](_0x524ede);}[_0x53b42f(0x2df)](){const _0x56f251=_0x53b42f;try{const _0xae709b=this[_0x56f251(0x1ad)]();if(_0xae709b){const _0xd8b9a=_0xae709b['send'];_0xae709b['send']=_0x14d170=>(this[_0x56f251(0x29f)](),_0xd8b9a['apply'](_0xae709b,[_0x14d170])),_0xae709b['message$']['subscribe'](_0x48aa80=>this['_onMessage'](_0xae709b,_0x48aa80)),_0xae709b[_0x56f251(0x3ed)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x3946c8=>this['_logService'][_0x56f251(0x150)](_0x56f251(0x4da),_0x3946c8)),_0xae709b['open$']['pipe'](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](()=>{const _0x32f0ab=_0x56f251;this[_0x32f0ab(0x29a)](_0xae709b);}),_0xae709b[_0x56f251(0x24c)][_0x56f251(0x454)](T[_0x56f251(0x460)](0x1))[_0x56f251(0x492)](_0x2c5281=>{const _0x495f3a=_0x56f251;this['_logService'][_0x495f3a(0x240)]('[CollaborationSessionService]',_0x495f3a(0x45b),_0x2c5281),this[_0x495f3a(0x19c)]();});}}catch(_0x11ecfb){this['_logService']['error'](_0x11ecfb),this[_0x56f251(0x19c)]();}}['_onConnectionOpen'](_0x111f14){const _0x3e28c6=_0x53b42f;this[_0x3e28c6(0x42f)][_0x3e28c6(0x240)](_0x3e28c6(0x422),_0x3e28c6(0x267)),_0x111f14['send']({'cmd':b[_0x3e28c6(0x3e6)]}),this[_0x3e28c6(0x29f)]();}['_onConnectionFailed'](){const _0x243a63=_0x53b42f;var _0xbc81c7;this['_status$'][_0x243a63(0x414)](0x2),this[_0x243a63(0x42b)][_0x243a63(0x414)](null),this[_0x243a63(0x2a2)](),this[_0x243a63(0x2be)](),this['_socketReady']=!0x1,this[_0x243a63(0x196)]<((_0xbc81c7=this[_0x243a63(0x2a6)][_0x243a63(0x1d8)](Yt))!=null?_0xbc81c7:Kt)?(this[_0x243a63(0x2f7)](this[_0x243a63(0x196)]),this[_0x243a63(0x196)]+=0x1):this[_0x243a63(0x23f)][_0x243a63(0x138)]({'type':oe['MessageType'][_0x243a63(0x23a)],'content':this[_0x243a63(0x2bd)]['t'](_0x243a63(0x21f))});}[_0x53b42f(0x2f7)](_0x1e9a1f){const _0x221ef2=_0x53b42f;var _0x1bc02f;const _0x4d03ce=((_0x1bc02f=this[_0x221ef2(0x2a6)][_0x221ef2(0x1d8)](Wt))!=null?_0x1bc02f:Gt)*0x2**_0x1e9a1f;this['_messageService']['show']({'type':oe['MessageType'][_0x221ef2(0x376)],'content':this[_0x221ef2(0x2bd)]['t'](_0x221ef2(0x304))}),this[_0x221ef2(0x1f2)]=setTimeout(()=>{const _0x55ec59=_0x221ef2;this[_0x55ec59(0x2df)](),clearTimeout(this[_0x55ec59(0x1f2)]),this[_0x55ec59(0x1f2)]=null;},_0x4d03ce);}[_0x53b42f(0x29f)](){const _0x309368=_0x53b42f;var _0x387ffb;this[_0x309368(0x2be)](),this[_0x309368(0x241)]=setTimeout(()=>this[_0x309368(0x172)](),(_0x387ffb=this[_0x309368(0x2a6)]['getConfig'](ut))!=null?_0x387ffb:Vt);}[_0x53b42f(0x172)](){const _0x89c9d8=_0x53b42f;this[_0x89c9d8(0x187)]['send']({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}[_0x53b42f(0x479)](){const _0x15f63d=_0x53b42f;var _0x5dc0be;this[_0x15f63d(0x1cc)]=setTimeout(()=>this[_0x15f63d(0x19c)](),(_0x5dc0be=this[_0x15f63d(0x2a6)]['getConfig'](xe))!=null?_0x5dc0be:dt);}[_0x53b42f(0x409)](_0x3029cb,_0x495dc4){const _0x26c3ed=_0x53b42f,{cmd:_0xd249be}=_0x495dc4;_0xd249be===b['HELLO']&&!this[_0x26c3ed(0x2bf)]&&(_0x3029cb[_0x26c3ed(0x328)]=_0x495dc4[_0x26c3ed(0x169)][_0x26c3ed(0x328)],this[_0x26c3ed(0x42b)][_0x26c3ed(0x414)](_0x3029cb),this[_0x26c3ed(0x41b)][_0x26c3ed(0x414)](0x3),this['_socketReady']=!0x0),_0xd249be===b[_0x26c3ed(0x33f)]&&this[_0x26c3ed(0x2a2)](),this[_0x26c3ed(0x29f)]();}[_0x53b42f(0x2be)](){const _0x20988d=_0x53b42f;this[_0x20988d(0x241)]!=null&&(clearTimeout(this[_0x20988d(0x241)]),this[_0x20988d(0x241)]=null);}[_0x53b42f(0x2a2)](){const _0x2ae5bb=_0x53b42f;this[_0x2ae5bb(0x1cc)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x2ae5bb(0x1cc)]=null);}},exports[_0x53b42f(0x14a)]=pt([U(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),U(0x1,h[_0x53b42f(0x295)](a['LocaleService'])),U(0x2,N[_0x53b42f(0x288)]),U(0x3,a['ILogService']),U(0x4,a[_0x53b42f(0x4a2)]),U(0x5,Be)],exports['CollaborationSessionService']);var as=Object[_0x53b42f(0x38a)],cs=Object[_0x53b42f(0x2a8)],ls=(_0x575b20,_0x488042,_0x442f28,_0x19d784)=>{const _0x3ec1f4=_0x53b42f;for(var _0x404fa5=_0x19d784>0x1?void 0x0:_0x19d784?cs(_0x488042,_0x442f28):_0x488042,_0x437f06=_0x575b20[_0x3ec1f4(0x419)]-0x1,_0x539356;_0x437f06>=0x0;_0x437f06--)(_0x539356=_0x575b20[_0x437f06])&&(_0x404fa5=(_0x19d784?_0x539356(_0x488042,_0x442f28,_0x404fa5):_0x539356(_0x404fa5))||_0x404fa5);return _0x19d784&&_0x404fa5&&as(_0x488042,_0x442f28,_0x404fa5),_0x404fa5;},se=(_0x1b44da,_0x205f11)=>(_0x38f552,_0x5013ae)=>_0x205f11(_0x38f552,_0x5013ae,_0x1b44da);exports[_0x53b42f(0x4b3)]=class extends a[_0x53b42f(0x18e)]{constructor(_0x503b9,_0x132aba,_0x3e43cc,_0x3b592a,_0x4b5970){const _0x2278ac=_0x53b42f;super(),d(this,_0x2278ac(0x305),new Map()),d(this,_0x2278ac(0x3ef),new Map()),d(this,_0x2278ac(0x2e4),!0x1),(this[_0x2278ac(0x2a6)]=_0x503b9,this['_localStorageService']=_0x132aba,this[_0x2278ac(0x26f)]=_0x3e43cc,this['_localeService']=_0x3b592a,this[_0x2278ac(0x311)]=_0x4b5970,this['_setupBeforeClosingHandler']());}[_0x53b42f(0x3be)](){const _0x2a9cea=_0x53b42f;this[_0x2a9cea(0x2e4)]=!0x0;}[_0x53b42f(0x3bc)](){const _0x551b6d=_0x53b42f;this[_0x551b6d(0x2e4)]=!0x1;}['dispose'](){const _0x37cd8a=_0x53b42f;this['_exhaustSavingTask']()[_0x37cd8a(0x3ab)](()=>super['dispose']());}async['loadOfflineData'](_0x33a6f9){const _0x5ae105=_0x53b42f;return this[_0x5ae105(0x2e4)]?null:this['_localStorageService'][_0x5ae105(0x49e)](Xe(_0x33a6f9));}async[_0x53b42f(0x345)](_0x561d58,_0x3e86fe){const _0x24fbaa=_0x53b42f;return!!this[_0x24fbaa(0x15b)][_0x24fbaa(0x441)](_0x561d58,_0x3e86fe);}[_0x53b42f(0x319)](_0x3fa2da,_0x44d9d1,_0x4b0843,_0x21b8b3){const _0x2c7b74=_0x53b42f,_0xc90134=this[_0x2c7b74(0x311)][_0x2c7b74(0x2af)](_0x3fa2da);this['_cachedData']['set'](_0x3fa2da,{'unitID':_0x3fa2da,'type':_0x44d9d1,'awaitingChangeset':_0x4b0843,'mutations':_0x21b8b3,'rev':_0xc90134}),this[_0x2c7b74(0x3ef)][_0x2c7b74(0x378)](_0x3fa2da)||this[_0x2c7b74(0x22c)](_0x3fa2da);}['_scheduleSaving'](_0x5c4c65){const _0x3ea760=_0x53b42f,_0x496d1e=this[_0x3ea760(0x2d7)]();_0x496d1e===0x0?this[_0x3ea760(0x27e)](_0x5c4c65):this[_0x3ea760(0x3ef)][_0x3ea760(0x2e0)](_0x5c4c65,setTimeout(()=>this[_0x3ea760(0x27e)](_0x5c4c65),_0x496d1e));}[_0x53b42f(0x2d7)](){const _0x3fa9ed=_0x53b42f;var _0x4a4c25;return(_0x4a4c25=this[_0x3fa9ed(0x2a6)][_0x3fa9ed(0x1d8)](St))!=null?_0x4a4c25:Xt;}['_saveCache'](_0x2f70de){const _0x322c45=_0x53b42f,_0x349ad3=this[_0x322c45(0x3ef)][_0x322c45(0x3d4)](_0x2f70de);return _0x349ad3!==void 0x0&&window[_0x322c45(0x4c0)](_0x349ad3),this[_0x322c45(0x15b)][_0x322c45(0x441)](Xe(_0x2f70de),this[_0x322c45(0x305)][_0x322c45(0x3d4)](_0x2f70de))[_0x322c45(0x3ab)](()=>this[_0x322c45(0x3ef)]['delete'](_0x2f70de));}async['_exhaustSavingTask'](){const _0x1dc040=_0x53b42f,_0x23f10e=[];this[_0x1dc040(0x3ef)]['forEach']((_0x201814,_0x2566cc)=>{const _0x2a9168=_0x1dc040;window[_0x2a9168(0x4c0)](_0x201814),_0x23f10e[_0x2a9168(0x1d7)](this[_0x2a9168(0x27e)](_0x2566cc)[_0x2a9168(0x3ab)](()=>{const _0x4bd562=_0x2a9168;this[_0x4bd562(0x3ef)][_0x4bd562(0x35b)](_0x2566cc);}));}),await Promise['all'](_0x23f10e);}[_0x53b42f(0x3e5)](){const _0x9159f6=_0x53b42f;this[_0x9159f6(0x1e9)](this[_0x9159f6(0x26f)][_0x9159f6(0x36b)](()=>{const _0xab856c=_0x9159f6;if(this['_saveTaskMap'][_0xab856c(0x22a)])return this['_localeService']['t'](_0xab856c(0x36c));}));}},exports['LocalCacheService']=ls([se(0x0,a['IConfigService']),se(0x1,a[_0x53b42f(0x2d8)]),se(0x2,N[_0x53b42f(0x34d)]),se(0x3,h['Inject'](a[_0x53b42f(0x1ba)])),se(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)]))],exports[_0x53b42f(0x4b3)]);function Xe(_0x34beaf){return'unit-cache-'+_0x34beaf;}const pe=h[_0x53b42f(0x195)](_0x53b42f(0x352));var Et=(_0x15c32c=>(_0x15c32c[_0x15c32c[_0x53b42f(0x2eb)]=0x0]=_0x53b42f(0x2eb),_0x15c32c[_0x15c32c[_0x53b42f(0x34a)]=0x1]=_0x53b42f(0x34a),_0x15c32c))(Et||{});const qe=0x7530,ze=_0x53b42f(0x284);class hs extends a[_0x53b42f(0x18e)]{constructor(){const _0x585a7b=_0x53b42f;super(),d(this,_0x585a7b(0x313),a[_0x585a7b(0x3a8)][_0x585a7b(0x1f7)]()),d(this,_0x585a7b(0x431),new Set()),d(this,_0x585a7b(0x4d5),new Map()),d(this,_0x585a7b(0x1fc),null),d(this,_0x585a7b(0x387),new Map()),d(this,_0x585a7b(0x47d),new Map()),this[_0x585a7b(0x243)]();}[_0x53b42f(0x4df)](){const _0x234639=_0x53b42f;super[_0x234639(0x4df)](),this[_0x234639(0x387)][_0x234639(0x421)]((_0x43ff4b,_0x2db898)=>this[_0x234639(0x480)](_0x2db898)),this['_heartbeatTimer']&&window[_0x234639(0x4be)](this['_heartbeatTimer']);}[_0x53b42f(0x37c)](_0x3c573a){const _0x54af6b=_0x53b42f;return this[_0x54af6b(0x451)](_0x3c573a)[_0x54af6b(0x454)](g[_0x54af6b(0x4dc)]());}['editingUnit'](_0x3b2339){const _0x281bce=_0x53b42f;this[_0x281bce(0x431)][_0x281bce(0x22a)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x281bce(0x1e5)](_0x3b2339),this[_0x281bce(0x1f8)]({'type':0x0,'memberID':this[_0x281bce(0x313)],'unitIDs':[_0x3b2339],'isForwarded':!0x1});}[_0x53b42f(0x33c)](_0x595e67){const _0x447920=_0x53b42f;this['_selfUnitIDs'][_0x447920(0x35b)](_0x595e67),this['_selfUnitIDs'][_0x447920(0x22a)]===0x0&&this[_0x447920(0x1fc)]&&window[_0x447920(0x4be)](this[_0x447920(0x1fc)]);}['_init'](){const _0x4fdb16=_0x53b42f;this['disposeWithMe'](a[_0x4fdb16(0x1bb)](g[_0x4fdb16(0x474)](window,_0x4fdb16(0x2a4))[_0x4fdb16(0x492)](_0x49ad76=>{const _0x4d00a4=_0x4fdb16;if(_0x49ad76[_0x4d00a4(0x4bd)]!==ze||!_0x49ad76[_0x4d00a4(0x163)])return;const _0x34a3df=JSON[_0x4d00a4(0x4b2)](_0x49ad76[_0x4d00a4(0x163)]);this[_0x4d00a4(0x3db)](_0x34a3df);}))),window[_0x4fdb16(0x158)](_0x4fdb16(0x2e6),()=>this[_0x4fdb16(0x1f8)]({'type':0x1,'memberID':this[_0x4fdb16(0x313)],'unitIDs':Array['from'](this[_0x4fdb16(0x431)])}));}[_0x53b42f(0x3db)](_0x2a3264){const _0x5bc7ed=_0x53b42f;switch(_0x2a3264[_0x5bc7ed(0x20c)]){case 0x0:this['_handleJoinEvent'](_0x2a3264);break;case 0x1:this[_0x5bc7ed(0x2f9)](_0x2a3264);break;case 0x2:this[_0x5bc7ed(0x191)](_0x2a3264);break;}}['_handleJoinEvent'](_0x3d660b){const _0x348965=_0x53b42f,{unitIDs:_0x412fe5,memberID:_0x1fac15,isForwarded:_0x4a713b}=_0x3d660b;_0x412fe5[_0x348965(0x421)](_0x41742b=>{const _0x3567bb=_0x348965;if(!_0x4a713b&&this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)&&this[_0x3567bb(0x451)](_0x41742b)[_0x3567bb(0x414)](0x1),!this[_0x3567bb(0x4d5)][_0x3567bb(0x378)](_0x41742b)||!this[_0x3567bb(0x4d5)][_0x3567bb(0x3d4)](_0x41742b)[_0x3567bb(0x378)](_0x1fac15)){const _0x4b9eb2=this['_unitOnClients']['get'](_0x41742b)||new Set();_0x4b9eb2[_0x3567bb(0x1e5)](_0x1fac15),this[_0x3567bb(0x4d5)][_0x3567bb(0x2e0)](_0x41742b,_0x4b9eb2),this[_0x3567bb(0x1cf)](_0x1fac15);}}),_0x4a713b||this[_0x348965(0x1f8)]({'type':0x0,'memberID':this[_0x348965(0x313)],'unitIDs':[...this[_0x348965(0x431)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x4825d9){const _0x4fa61d=_0x53b42f;this[_0x4fa61d(0x480)](_0x4825d9);const _0xd4c7ee=window[_0x4fa61d(0x373)](()=>{const _0x32cfe9=_0x4fa61d;this['_unitOnClients'][_0x32cfe9(0x421)](_0x45ec9d=>{const _0x349afe=_0x32cfe9;_0x45ec9d[_0x349afe(0x35b)](_0x4825d9);});},qe*0x2);this[_0x4fa61d(0x387)]['set'](_0x4825d9,_0xd4c7ee);}['_removeClearOtherTimer'](_0x4e8123){const _0x4b4807=_0x53b42f;if(this[_0x4b4807(0x387)][_0x4b4807(0x378)](_0x4e8123)){const _0x13100b=this['_clearOtherTimers']['get'](_0x4e8123);_0x13100b&&window[_0x4b4807(0x4c0)](_0x13100b),this[_0x4b4807(0x387)][_0x4b4807(0x2e0)](_0x4e8123,null);}}['_handleLeaveEvent'](_0x433abd){const _0x32cbba=_0x53b42f,{memberID:_0x36b353,unitIDs:_0x45dbf9}=_0x433abd;_0x45dbf9[_0x32cbba(0x421)](_0x3bae8a=>{const _0x274b91=_0x32cbba;var _0x1936f0;const _0xb0c4a6=this[_0x274b91(0x4d5)]['get'](_0x3bae8a);_0xb0c4a6&&(_0xb0c4a6[_0x274b91(0x35b)](_0x36b353),(_0x1936f0=this[_0x274b91(0x451)](_0x3bae8a))==null||_0x1936f0[_0x274b91(0x414)](_0xb0c4a6['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x36b353);}['_handleHeartbeatEvent'](_0x21216d){const _0xfff94c=_0x53b42f;this[_0xfff94c(0x1cf)](_0x21216d['memberID']);}[_0x53b42f(0x1f8)](_0x2da05f){const _0xc4494d=_0x53b42f;localStorage[_0xc4494d(0x441)](ze,JSON[_0xc4494d(0x339)](_0x2da05f));}[_0x53b42f(0x2b4)](){const _0x14c59f=_0x53b42f;this[_0x14c59f(0x1fc)]=window[_0x14c59f(0x143)](()=>{const _0x20ec31=_0x14c59f;this[_0x20ec31(0x1f8)]({'type':0x2,'memberID':this[_0x20ec31(0x313)]});},qe);}[_0x53b42f(0x451)](_0x40f349){const _0x5393ed=_0x53b42f;return this[_0x5393ed(0x47d)]['has'](_0x40f349)||this['_unitStatus']['set'](_0x40f349,new g[(_0x5393ed(0x28a))](0x0)),this[_0x5393ed(0x47d)]['get'](_0x40f349);}}var _s=Object[_0x53b42f(0x38a)],us=Object[_0x53b42f(0x2a8)],ds=(_0x1f025d,_0x444462,_0x4c03e6,_0xf3b913)=>{const _0x4c90bd=_0x53b42f;for(var _0x3823ea=_0xf3b913>0x1?void 0x0:_0xf3b913?us(_0x444462,_0x4c03e6):_0x444462,_0x2bccea=_0x1f025d[_0x4c90bd(0x419)]-0x1,_0x4b6eab;_0x2bccea>=0x0;_0x2bccea--)(_0x4b6eab=_0x1f025d[_0x2bccea])&&(_0x3823ea=(_0xf3b913?_0x4b6eab(_0x444462,_0x4c03e6,_0x3823ea):_0x4b6eab(_0x3823ea))||_0x3823ea);return _0xf3b913&&_0x3823ea&&_s(_0x444462,_0x4c03e6,_0x3823ea),_0x3823ea;},Je=(_0x5a9006,_0x535fa6)=>(_0x2028c9,_0xdf2bec)=>_0x535fa6(_0x2028c9,_0xdf2bec,_0x5a9006);let ve=class{constructor(_0x209a44,_0x37b7e3){const _0x1fbbb9=_0x53b42f;this[_0x1fbbb9(0x45d)]=_0x209a44,this[_0x1fbbb9(0x2f1)]=_0x37b7e3;}[_0x53b42f(0x3ec)](_0x832f5e){const _0x5d8e9a=_0x53b42f;this[_0x5d8e9a(0x2b1)](_0x832f5e),this[_0x5d8e9a(0x1fa)](_0x832f5e);}[_0x53b42f(0x168)](_0x270f03){const _0xdc3ba6=_0x53b42f,_0x478781=this[_0xdc3ba6(0x45d)][_0xdc3ba6(0x3d4)](M[_0xdc3ba6(0x3fb)]),{redoCache:_0x10052f}=_0x478781[_0xdc3ba6(0x2a1)]();if(_0x10052f[_0xdc3ba6(0x419)]===0x0)return _0x270f03;let _0x19d9f8=a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03['mutations'][0x0]);for(let _0x23d4bf=0x0;_0x23d4bf<_0x10052f['length'];_0x23d4bf++){const _0x32afa4={'id':_0xdc3ba6(0x1a1),'params':{..._0x10052f[_0x23d4bf]}},_0x5ce73c=this[_0xdc3ba6(0x2f1)][_0xdc3ba6(0x412)](_0x19d9f8,_0x32afa4,!0x1);if(u[_0xdc3ba6(0x231)](_0x5ce73c))throw _0x5ce73c[_0xdc3ba6(0x150)];_0x19d9f8=_0x5ce73c[_0xdc3ba6(0x24f)];}return{...a[_0xdc3ba6(0x3a8)][_0xdc3ba6(0x2dc)](_0x270f03),'mutations':[_0x19d9f8]};}['_transformUndoRedoStack'](_0x7689cb){const _0x4d35b2=_0x53b42f,_0x288ca5=this[_0x4d35b2(0x45d)][_0x4d35b2(0x3d4)](M[_0x4d35b2(0x3fb)]),{undoCache:_0xa76a11,redoCache:_0x312624}=_0x288ca5[_0x4d35b2(0x2a1)]();if(_0xa76a11[_0x4d35b2(0x419)]===0x0||_0x312624['length']===0x0)return;const _0x3b8d9f=[],_0x2543d3=[];let _0x3a4b87=a['Tools'][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]),_0x6ec935=a[_0x4d35b2(0x3a8)][_0x4d35b2(0x2dc)](_0x7689cb['mutations'][0x0]);for(let _0x4361cc=_0xa76a11[_0x4d35b2(0x419)]-0x1;_0x4361cc>=0x0;_0x4361cc--){const _0x109fc9={'id':_0x4d35b2(0x1a1),'params':{..._0xa76a11[_0x4361cc]}},_0x2324db={'id':_0x4d35b2(0x1a1),'params':{..._0x312624[_0x4361cc]}},_0x365503=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x3a4b87,_0x109fc9,!0x1),_0xa1278=this[_0x4d35b2(0x2f1)][_0x4d35b2(0x412)](_0x6ec935,_0x2324db,!0x1);if(u[_0x4d35b2(0x231)](_0x365503))throw _0x365503[_0x4d35b2(0x150)];if(u[_0x4d35b2(0x231)](_0xa1278))throw _0xa1278['error'];_0x3b8d9f[_0x4d35b2(0x3ca)](_0x365503[_0x4d35b2(0x2c7)]['params']),_0x2543d3[_0x4d35b2(0x3ca)](_0xa1278[_0x4d35b2(0x2c7)][_0x4d35b2(0x17b)]),_0x3a4b87=_0x365503['m1Prime'],_0x6ec935=_0xa1278[_0x4d35b2(0x24f)];}_0x288ca5[_0x4d35b2(0x293)]({'undoCache':_0x3b8d9f,'redoCache':_0x2543d3});}[_0x53b42f(0x1fa)](_0x2ac7a5){const _0x41722a=_0x53b42f,_0x6b46df=this[_0x41722a(0x45d)]['get'](M['IMEInputManagerService']),_0x1f2156=_0x6b46df['getActiveRange']();if(_0x1f2156==null)return;const _0x3f2b15=[{'id':_0x41722a(0x1a1),'params':{'unitId':_0x2ac7a5[_0x41722a(0x348)],'actions':null,'textRanges':[_0x1f2156]}}],_0x74530f=this[_0x41722a(0x2f1)][_0x41722a(0x33b)](_0x2ac7a5,_0x3f2b15);if(!u[_0x41722a(0x40a)](_0x74530f))throw _0x74530f['error'];const _0x45749c=_0x74530f['m2Prime'][0x0]['params'][_0x41722a(0x461)];Array[_0x41722a(0x4af)](_0x45749c)&&_0x45749c[_0x41722a(0x419)]&&_0x6b46df['setActiveRange'](_0x45749c[0x0]);}};function _0x3fcd(){const _0x6a7245=['_docSyncEditingCollabCursorService','Optional','forEach','[CollaborationSessionService]','toString','removeParam','SheetSkeletonManagerService','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[OfflineState]:\x20received\x20acknowledgement.','eventID','?url=','JSONX','_socket$','SetWorksheetActivateCommand','SNAPSHOT_INVALID_SNAPSHOT','message$','_logService','SEND_CHANGESET_TIMEOUT_KEY','_selfUnitIDs','handleIRemoveRow','init','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOffline','takeUntil','onRemoteChangeset','transformSelections','[FetchMissState]','fillStyle','onlyLocal','LICENSE_IMPORT_SIZE_EXCEEDED','url(#off-line-single_clip0_910_343)','onCommandExecuted','858810rRjLbv','getRoom','setItem','JOIN','_colorIndex','saveImage','UNKNOWN_CMD','_clearScheduledTask','off-line-single_clip0_910_343','SelectionManagerService','_initStatusListener','\x20-\x20','blue400','SNAPSHOT_URL_KEY','_entityInit$','string','_collabSessionService','LIVESHARE_NEW_HOST','_ensureSubject','HTTPService','serializeTextRange','pipe','_startSheetCollabCursor','deleteCollaborator','className','_acknowledgedAwaitingChangeset','handleDeleteRangeMoveUp','CHANGESET_ACK','socket\x20close','_lockTransition','_injector','interceptor','/universer-api/snapshot/','take','textRanges','name','NEW_CHANGESETS','_transformSelections','LOGIN_URL_KEY','@univerjs/engine-formula','HEARTBEAT_INTERVAL','popstate','loadDoc','AUTHZ_URL_KEY','_transformStack','contains','hovered','APPLY_NON_SEQUENTIAL_REVISION','_sheetSkeletonManagerService','onStarting','Rectangle','extend','bottom','fromEvent','getSheetBySheetId','IURLService','createInstance','range','_waitForHeartbeatResponse','result','_docTransformIMECacheService','_startCollaboration','_unitStatus','getValue','_drawAnchor','_removeClearOtherTimer','_config','editingUnit','getRelativeCoord','_imageSourceCache','BASE64','code','_uiPartsService','584petbQw','_onRemoteRejected','_themeService','ImageUploadStatusType','IUIPartsService','_cursor','_textBubble','state$','path','_collabCursorController','subscribe','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','on-line-single_clip0_910_349','collabCursorState$','_syncEditingCollabCursorService','resend','_getUndoStack','LIVESHARE_FETCH_OPERATIONS','_univerInstanceService','onlineStatusTitle','evenodd','remove','getItem','IDLE','flatMap','IUndoRedoService','IConfigService','patch','xlink:href','IRenderManagerService','_loadSheet','confirm','DisposableCollection','onSendChangeset','_checkMissing','getOwnPropertySymbols','gold400','updateMember','_memberService','isArray','pending','image/jpg','parse','LocalCacheService','listCollaborators','getMember','getTypeOfUnitAdded$','_onCursorUpdate','#fff','CollaborationSession','onMissingChangesets','Vector2','_sessionStatus$','key','clearInterval','_docSkeleton','clearTimeout','editing\x20status\x20changed\x20to','InsertColCommandId','ONLINE','RECV','Univer','RevisionService','DEFAULT_FILE_NAME','ILogService','RemoveColCommandId','_getLoginPath','@univerjs/network','body','save\x20fail\x20reason\x20is\x20','PERMISSION_REJ','_remoteChangesetQueue','_onJoinRoomEvent','permissionRejEvent','resolve','VIEW_MAIN','shareReplay','_unitOnClients','transformUndoRedo','values','ERROR_IMAGE_TYPE','getCollabCursors$','[CollaborationSessionService]:\x20socket\x20error','AWAITING','distinctUntilChanged','COLLAB_WEB_SOCKET_URL','clear','dispose','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','UPDATE_CURSOR','fillRule','startColumn','LEAVE','_online','_hover','c1Prime','href','parseProtocolChangeset','prototype','updateCollaborator','1em','show','collaboration.single-unit.warning','[CollaborationState]:\x20apply\x20error!','OnLifecycle','encodeURIComponent','awaiting','connection\x20error','open$','session','_updateState','UniverInstanceType','setInterval','_transitionLocked','row','complete','handleIRemoveCol','height','_clearRedo','CollaborationSessionService','getColor','DependentOn','CollaborationStatusDisplay','_disableEditing','_document','error','getDocObject','_httpService','replace','_onUserJoin','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','Starting','addEventListener','skeleton','concatMap','_localStorageService','_schedule','transformByState','UniverCollaborationClientPlugin','c2Prime','getTypeOfUnitDisposed$','fetch_missing','[SyncedState]:\x20received\x20acknowledgement.','newValue','UNIVER_SHEET','combineLatest','enableAuthServer','UNAUTHENTICATED','transformRemoteChangeset','data','RefRangeService','_assignedColors','handleInsertRow','_draw','_handler','_clearLocalCache','_onLocalMutation','getCurrentUnitForType','_sendHeartbeat','_onUserLeave','ISnapshotServerService','fillText','addImageSourceCache','USERS_LEAVE','switchMap','_refRangeService','some','params','_getAnchorBounding','_createHandler','registerComponent','Unknown\x20user','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationUndoRedoService]','_updateStatus','status$','Rect','hasOwnProperty','url(#on-line-single_clip0_910_349)','_socket','_commandService','collabStatus.conflict','json','DeleteRangeMoveUpCommandId','deserializeToCombResponse','catch','Disposable','getCoordByCell','MSG_FOR_ERROR','_handleHeartbeatEvent','round','collaborators','pushState','createIdentifier','_retryCount','IRemoteInstanceService','_renderManagerService','cursorInfo$','awaiting_with_pending','fromCollab','_onConnectionFailed','on-line-single','startsWith','_onConflict','endRow','doc.mutation.rich-text-editing','_collaborationController','closePath','NOT_COLLAB','offline','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_substituteUndoStack','_colorAssignService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessions','defs','Injector','_createSocket','_getUploadFileURL','map','_onRefRangeChange','getMemberID','_substituteRedoStack','file','OFFLINE','/object/','baseRev','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','univerjs-icon\x20univerjs-icon-','getSheetId','LocaleService','toDisposable','_labelPosition','getUnitOnRev','Ready','reject','WebSocketService','create','focused$','defIds','_initModules','ICommandService','saveSheetBlock','collabStatus.synced','originalMeta','collab-text-range-','awaitingChangeset','getCollabEntity','_timeoutTimer','onTransformSelections','LIVESHARE_TERMINATE','_scheduleClearOtherTimer','_getCtorByUniverType','_hovered','_onRemoteChangeset','MUTATION','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_socketMessageSubscription','asObservable','push','getConfig','toggleOffline','_lastPointer','_socketService','@univerjs/core','TEXT_RANGE_LAYER_INDEX','TextSelectionManagerService','1444044RqPlVv','_toggleOnline','override','Shape','\x20to\x20','NodePositionConvertToCursor','add','getAncestorScale','_urlService','ThemeService','disposeWithMe','_unitId','EXCHANGE_SIGN_URL_SERVER_URL_KEY','split','joinRsp','executeCommand','RETRY_CONNECTING_MAX_COUNT','roomMembers$','HEARTBEAT_TIMEOUT','_retryConnectingTimer','encode','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onlineStatus','/role','generateRandomId','_send','getUnitId','_transformPreviousActiveRange','lineTo','_heartbeatTimer','text','resourceIDs','_getAPIPrefixPath','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','sessionStatus','FAIL','_change$','attrs','symbol','onPointerEnterObserver','/-/object/list','/new_changes','_pendingMutations','delay','history','type','failed\x20to\x20apply\x20missed\x20changesets!','_joinRoom','red300','_cursorInfo$','_hideTimer','_createInitialStateImpl','_onCursorDelete','_permissionService','_clearUndo','POST','_applyRemoteChangeset','COMPLETION_FINISHED','ERROR_EXCEED_SIZE','unitId','mutations','socketService','_getCurrentRevision','_sheetTransformSelectionsService','session.connection-failed','UNIVER_DOC','merge','sessionStatus$','location','purple300','@wendellhu/redi','IAuthzIoService','putCollaborators','debounceTime','APPLY_REVISION_CONFILICT','size','onMouseMove','_scheduleSaving','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_roomMembers$','_scene','DesktopCollaborationStatusDisplayController','isTransformMutationFailure','MoveRangeCommandId','transformChangesets','allowed','0\x200\x2016\x2016','CollaborationSocketService','_members','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_getSheetObject','Error','@univerjs/sheets','icon','with','_exhaustRemoteChangesetQueue','_messageService','debug','_sendHeartbeatTimer','cmd','_init','/universer-api/oidc/authpage','includes','_handleHover','WorkbookEditablePermission','COMPRESS_MUTATION_APPLY','ensureActiveSheet','COLLAB_WEB_SOCKET_URL_KEY','collabStatus.offline','close$','_showConflictNotification','_getSendChangesetTimeout','m1Prime','FileId','auth.needGotoLoginAlert','selections','enableOfflineEditing','/unit/','event$','@univerjs/engine-render','PERMISSION_DENIED','isActive','unit','ITransformService','tag','getImageSourceCache','displayName','fetchMissingChangesets','b64DecodeUnicode','_getAPIPrefix','ICollaborationSocketService','online','SetSelectionsOperation','clipPath','DataLoaderController','state','socket\x20open.','roomInfos','_submitChangeset','UNIVER_SLIDE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','subunit','_anchorDot','_updateURLWithCurrentState','_beforeCloseService','width','getTime','_roomMembers','setCurrentUser','[OfflineState]:\x20received\x20changeset.','submit\x20changeset\x20error!','title','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','send','_color','LIVESHARE_REQUEST_HOST','random','selection','_saveCache','31086209xTUkgH','_http','_fetchMissChangesets','DeleteRangeMoveLeftCommandId','trim','ACTIVE_UNIT_EVENT_CHANNEL','liveShareNewHost','put','InsertRangeMoveRightCommandId','IMessageService','mapDocumentTypeToUniverType','BehaviorSubject','onRemoteAck','_getSnapshotAPIPrefix','Error\x20on\x20receiving\x20event','_drawRange','_executeRemoteChangeset','_scheduleCollaborationTimeoutTimer','YUUMI_URL_COL_OUT_OF_RANGE','INGEST','setUndoRedoMutationParamsCache','UNKNOWN_CODE','Inject','createCollaborator','getSheetObject','Subject','_decreaseWaiting','_onConnectionOpen','[CollaborationSession]','_getScale','ranges','getCurrent','_rescheduleHeartbeatEvent','UserManagerService','getUndoRedoMutationParamsCache','_clearTimeoutTimer','entries','storage','EffectRefRangId','_configService','status','getOwnPropertyDescriptor','assign','_undoRedoService','close','HEARTBEAT_TIMEOUT_KEY','_eventUnsubscribe','_docStateChangeManagerService','getCurrentRevForDocument','APPLY_REJECT','_transformUndoRedoStack','CompressMutationService','append','_scheduleHeartbeat','replaceState','handleDeleteRangeMoveLeft','div','CommandType','_name','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_notificationService','roles','_localeService','_clearHeartbeatTimer','_socketReady','_startDocCollabCursor','actions','updatePermissionPoint','getMergeData','/universer-api/comb','from','sequenceExecute','m2Prime','[PendingState]:\x20received\x20acknowledgement.','FETCH_MISSING','/universer-api/snapshot','syncEditingCollabCursor','JOINING','substring','serializeRangeWithSheet','restore','useObservable','CHANGESET_REJ','handleInsertRangeMoveDown','/allowed','objectType','_compressMutationService','onload','_getSaveTimeout','ILocalStorageService','UUID','BuiltInUIPart','APPLY_PERMISSION_DENIED','deepClone','InsertSheetMutation','_getMergeRange','_tryEnsureSocket','set','4794727yiSNnS','LifecycleStages','COLORS','_disabled','drawWith','unload','createElement','_scheduleTimestamp','/resources','10FyWKuL','NO_OTHER_CLIENTS_EDITING','LocalUndoRedoService','appendMutation','PSEUDO_FETCH_MISSING_RESULT','urlChange$','filter','_transformService','_removeRoom','_anchor','color','getViewport','SetTextSelectionsOperation','_scheduleReconnection','InsertRowCommandId','_handleLeaveEvent','_type','UNDEFINED','registerRefRange','@univerjs/ui','pluginName','whenReady','change$','CollaborationController','@univerjs/docs','indexOf','session.will-retry','_cachedData','revision','collaMsg','parseChangesetToProtocol','objectID','DocStateChangeManagerService','_onRecvEvent','post','_waitCount','registerOnClose','RichTextEditingMutation','[DataLoaderController]','_revisionService','ws://127.0.0.1:8000/universer-api/comb/connect','_id','_onFetchMissResult','SUBMIT_CHANGESET','COLLAB_SUBMIT_CHANGESET_URL','concat','_docSkeletonManagerService','updateOfflineData','_isPermissionRej','90216QWPhRo','_onCombEvent','setAlpha','routeKey','onTransformRemoteChangesetByIMECache','HEADER_MENU','ERROR_IMAGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','univer-online','userID','toStringTag','currentSkeleton$','newCsEvent','memberID','LIVESHARE_OPERATION','HEARTBEAT_INTERVAL_KEY','svg','currentColor','SYNCED','_awaitingChangeset','csRejEvent','toRgbString','_updateLocalCache','setWaitCount','getRangePointData','forwardRef','/fetchmissing?from=','ImageSourceType','_syncEditingCollabCursor','onlineStatusIcon','stringify','PENDING','transformMutationsWithChangeset','disposeUnit','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_localCacheService','HEARTBEAT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getCurrentUser','session.collaboration-timeout','idSuffix','handleInsertCol','saveOfflineData','_singleActiveUnitService','fill','unitID','COMPRESS_MUTATION_SEND','OTHER_CLIENTS_EDITING','_getRedoStack','[SyncedState]:\x20received\x20rejection.','IBeforeCloseService','roomMembers','localeService','searchParams','docStateChange$','univer-pro.collaboration-client.single-active-unit-service','Steady','endColumn','fetchThroughInterceptors','CONFLICT','/-/object/-/batch_allowed','getParam','getUniverSheetInstance','arc','delete','reverse','infoRsp','replaceTextRanges','dispose$','batchAllowed','makeDirty','AuthzIoHttpService','readAsDataURL','setParam','UniverCollaborationPlugin','labelPosition','TOO_MANY_REQUESTS','isEditing','getSelections','_queuedRemoteChangesets','registerBeforeClose','collaboration-client.offline-data-not-saved','_getDocObject','_transformIMECache','INotificationService','mergeOverrideWithDependencies','/block/','_entities','setTimeout','isTransformChangesetsSuccess','M0\x200H16V16H0z','Warning','handleMoveRange','has','_state','subUnitId','cursorInfo','getUnitStatus$','UNIVER_COLLABORATION_CLIENT_PLUGIN','IPermissionService','sheetId','_removeCollabCursors','none','/collaborator','deserializeRangeWithSheet','_docTransformSelectionsService','csAckEvent','requireSession','_clearOtherTimers','_render','_transformUndoredo','defineProperty','black','Workbook','WebURLService','permission.content','objects','IUniverInstanceService','toggleOnline','_loadDoc','setShapeProps','measureText','isPermissionRej','image/bmp','getCollabEntity$','_updateCollabCursors','InsertRangeMoveDownCommandId','not_collab','ColorKit','collabStatus.syncing','_unitID','getImage','createSocket','15etyqai','incrementRevForDocument','collaborationUniverTypes','_range','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','RxDisposable','_cursors','unknown','Tools','IHTTPImplementation','_collaborationPaused','then','?size=','image/png','url(#$1','univer-online-status-title','_event$','_onRemoteACK','INTERNAL_ERROR','_collaborationTimeoutTimer','UniverIcon','onPointerLeaveObserver','currentTheme$','_unlockTransition','SnapshotService','getInterceptPoints','enableSingleActiveInstanceLock','_state$','enableLocalCache','[UniverCollaborationClientPlugin]','disableLocalCache','removeMember','ThresholdInterceptorFactory','findNodePositionByCharIndex','_setupSubUnitSync','RegularPolygon','FromArray','getRenderById','colorChannel1','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_incrementRevisionNumber','MessageType','unshift','USERS_ENTER','_sendingTimer','OffLineSingle','registerHTTPInterceptor','_snapshotService','_updateLocalCursor','_clearCollaborationTimeoutTimer','saveChangeset','_replaceFileID','get','NOT_FOUND','min','_userManagerService','changesets','521295JTaTAF','SNAPSHOT_HAS_BEEN_REMOVED','_handleEvent','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_initStatusComponent','onRemoteRej','LICENSE_DISTRO_REJECTED','_snapshotServerService','#FFF','conflict','@wendellhu/redi/react-bindings','addObject','_setupBeforeClosingHandler','HELLO','\x20in\x20_schedule.','_session','joinEvent','loadOfflineData','synced','transformIMECache','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.','_saveTaskMap','univer-offline','getOffsetConfig','_ws','DocSkeletonManagerService','call','top','/universer-api/authz','onMissedChangesetFetched','listRoles','univer-pro.collaboration-client-socket-service','getResourcesRequest','IMEInputManagerService','conflict.content','\x0aAfter:\x20','CollaborationEvent','FETCH_MISS','_HTTPService','567fxzGlv','_getSignURL','current','transform','[OfflineState]:\x20received\x20rejection.','UNRECOGNIZED','useRef','INVALID_ARGUMENT','_onMessage','isTransformMutationsWithChangesetSuccess','use','YUUMI_UNABLE_LOAD_URL','CONNECTOR_DATA_TOO_LARGE','24591vQlwvx','CHANGESET_REVISION_CONFILICT','assignAColorForMemberID','rev','transformMutation','_redoStacks','next','_updateSubUnitFromURLParams','children','onSyncEditingCollabCursor','[PendingState]:\x20unhandled\x20univer\x20type:\x20','length','UNIVER_UNKNOWN','_status$','...','_shapes','getFocusedUnit'];_0x3fcd=function(){return _0x6a7245;};return _0x3fcd();}ve=ds([Je(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Je(0x1,u[_0x53b42f(0x25a)])],ve);var Ss=Object[_0x53b42f(0x38a)],vs=Object['getOwnPropertyDescriptor'],gs=(_0x523822,_0x2bf1da,_0x360861,_0x3e9b77)=>{const _0x326dcf=_0x53b42f;for(var _0x356d6f=_0x3e9b77>0x1?void 0x0:_0x3e9b77?vs(_0x2bf1da,_0x360861):_0x2bf1da,_0x1bea3a=_0x523822[_0x326dcf(0x419)]-0x1,_0x4f1a9c;_0x1bea3a>=0x0;_0x1bea3a--)(_0x4f1a9c=_0x523822[_0x1bea3a])&&(_0x356d6f=(_0x3e9b77?_0x4f1a9c(_0x2bf1da,_0x360861,_0x356d6f):_0x4f1a9c(_0x356d6f))||_0x356d6f);return _0x3e9b77&&_0x356d6f&&Ss(_0x2bf1da,_0x360861,_0x356d6f),_0x356d6f;},Ze=(_0x3fcdbd,_0x882490)=>(_0x5e73d9,_0x3fd4fa)=>_0x882490(_0x5e73d9,_0x3fd4fa,_0x3fcdbd);let ge=class{constructor(_0x445023,_0x32289c){const _0x23e425=_0x53b42f;this['_injector']=_0x445023,this[_0x23e425(0x2f1)]=_0x32289c;}[_0x53b42f(0x438)](_0x542c12){const _0x55c6aa=_0x53b42f;var _0x444159;const _0x33b767=this[_0x55c6aa(0x45d)][_0x55c6aa(0x3d4)](M[_0x55c6aa(0x1de)]),_0x4bedc0=(_0x444159=_0x33b767['getSelections']())!=null?_0x444159:[],_0x37c97c=_0x4bedc0==null?void 0x0:_0x4bedc0['map'](M[_0x55c6aa(0x453)]);if(_0x37c97c[_0x55c6aa(0x419)]===0x0)return;const _0xfcba4b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x542c12['unitID'],'actions':null,'textRanges':_0x37c97c}}],_0x4f4217=this['_transformService'][_0x55c6aa(0x33b)](_0x542c12,_0xfcba4b);if(!u[_0x55c6aa(0x40a)](_0x4f4217))throw _0x4f4217[_0x55c6aa(0x150)];const _0x5ce101=_0x4f4217[_0x55c6aa(0x2c7)][0x0][_0x55c6aa(0x17b)][_0x55c6aa(0x461)];Array[_0x55c6aa(0x4af)](_0x5ce101)&&_0x5ce101['length']&&_0x33b767[_0x55c6aa(0x35e)](_0x5ce101,!0x1);}};ge=gs([Ze(0x0,h['Inject'](h[_0x53b42f(0x1ac)])),Ze(0x1,u[_0x53b42f(0x25a)])],ge);function Ct(_0x54461e){const _0x4baa48=_0x53b42f;let _0x3c16ae='';for(const _0xdd0ea5 of _0x54461e){const {startOffset:_0x2e0c6f,endOffset:_0x20aff8,isActive:_0x49e981}=_0xdd0ea5;_0x3c16ae[_0x4baa48(0x419)]&&(_0x3c16ae+=','),_0x3c16ae+=_0x2e0c6f+':'+_0x20aff8+':'+(_0x49e981?'1':'0');}return _0x3c16ae;}function fs(_0x264340){const _0x46eb40=_0x53b42f,_0x5bb6a5=_0x264340[_0x46eb40(0x1ec)](','),_0x5839df=[];for(const _0x435927 of _0x5bb6a5){const [_0x3e4853,_0x11e4a9,_0x42c988]=_0x435927[_0x46eb40(0x1ec)](':');_0x5839df['push']({'startOffset':Number(_0x3e4853),'endOffset':Number(_0x11e4a9),'collapsed':_0x3e4853===_0x11e4a9,'isActive':_0x42c988==='1'});}return _0x5839df[_0x46eb40(0x17a)](_0x550b72=>_0x550b72[_0x46eb40(0x258)])||(_0x5839df[0x0][_0x46eb40(0x258)]=!0x0),_0x5839df;}class Fe extends a[_0x53b42f(0x3a5)]{constructor(){const _0x48c98b=_0x53b42f;super(...arguments),d(this,'_collabCursorState$',new g[(_0x48c98b(0x28a))](null)),d(this,_0x48c98b(0x495),this[_0x48c98b(0x278)]['asObservable']());}[_0x53b42f(0x2cb)](_0x250672){const _0xedc93f=_0x53b42f,{unitID:_0xab8646,memberID:_0x1c32ef,textRanges:_0x1dbd1d}=_0x250672,_0x1d49e1=Ct(_0x1dbd1d),_0x188747={'unitID':_0xab8646,'memberID':_0x1c32ef,'selection':_0x1d49e1};this[_0xedc93f(0x278)][_0xedc93f(0x414)](_0x188747);}}var ms=Object['defineProperty'],Is=Object[_0x53b42f(0x2a8)],ps=(_0x3ab337,_0x2ba9fd,_0x46ec3f,_0x3b77e4)=>{const _0x6bed23=_0x53b42f;for(var _0x3bc1da=_0x3b77e4>0x1?void 0x0:_0x3b77e4?Is(_0x2ba9fd,_0x46ec3f):_0x2ba9fd,_0x5f4c2b=_0x3ab337[_0x6bed23(0x419)]-0x1,_0x2ee611;_0x5f4c2b>=0x0;_0x5f4c2b--)(_0x2ee611=_0x3ab337[_0x5f4c2b])&&(_0x3bc1da=(_0x3b77e4?_0x2ee611(_0x2ba9fd,_0x46ec3f,_0x3bc1da):_0x2ee611(_0x3bc1da))||_0x3bc1da);return _0x3b77e4&&_0x3bc1da&&ms(_0x2ba9fd,_0x46ec3f,_0x3bc1da),_0x3bc1da;},Qe=(_0x5debe8,_0xf0f884)=>(_0x561c07,_0x4dc907)=>_0xf0f884(_0x561c07,_0x4dc907,_0x5debe8);let fe=class{constructor(_0x123cea,_0x4daf07){this['_injector']=_0x123cea,this['_transformService']=_0x4daf07;}[_0x53b42f(0x438)](_0x12788b){const _0x163f60=_0x53b42f;var _0xfd02fb,_0x327b98,_0x31cff9,_0x33e0df;const _0x370196=this[_0x163f60(0x45d)][_0x163f60(0x3d4)](E[_0x163f60(0x448)]),{pluginName:_0x4e3ac1,unitId:_0x4cd636,sheetId:_0x1450be}=_0x370196[_0x163f60(0x29e)]()||{},_0x357d5e=(_0xfd02fb=_0x370196[_0x163f60(0x369)]())!=null?_0xfd02fb:[];if(_0x357d5e[_0x163f60(0x419)]===0x0||!_0x4e3ac1||!_0x4cd636||!_0x1450be)return;const _0x3e022d=[{'id':E[_0x163f60(0x263)]['id'],'params':{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':a[_0x163f60(0x3a8)][_0x163f60(0x2dc)](_0x357d5e)}}],_0x2ce003=this[_0x163f60(0x2f1)][_0x163f60(0x33b)](_0x12788b,_0x3e022d);if(!u[_0x163f60(0x40a)](_0x2ce003))throw _0x2ce003['error'];const _0x4cb893=(_0x33e0df=(_0x31cff9=(_0x327b98=_0x2ce003[_0x163f60(0x2c7)][0x0])==null?void 0x0:_0x327b98['params'])==null?void 0x0:_0x31cff9[_0x163f60(0x252)])!=null?_0x33e0df:_0x357d5e;Array[_0x163f60(0x4af)](_0x4cb893)&&_0x4cb893[_0x163f60(0x419)]&&this['_injector'][_0x163f60(0x3d4)](a[_0x163f60(0x1c5)])[_0x163f60(0x1ee)](E['SetSelectionsOperation']['id'],{'unitId':_0x4cd636,'subUnitId':_0x1450be,'pluginName':_0x4e3ac1,'selections':_0x4cb893});}};fe=ps([Qe(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Qe(0x1,u['ITransformService'])],fe);const Es=new Set([E[_0x53b42f(0x2dd)]['id']]);function Cs(_0x502356,_0x5f5128,_0x230671,_0x58a82c,_0x2f11c5){const _0x1d1114=_0x53b42f;var _0x1c6444,_0x2f0124,_0xcb04b8,_0x138087;const _0x43b751=[];for(const _0x564805 of _0x502356)if(Es['has'](_0x564805['id'])){if(_0x43b751[_0x1d1114(0x419)]>0x0)break;_0x43b751[_0x1d1114(0x1d7)](_0x564805);break;}else _0x43b751[_0x1d1114(0x1d7)](_0x564805);const _0x330b23=(_0x2f0124=(_0x1c6444=_0x2f11c5['getCurrentUser']())==null?void 0x0:_0x1c6444['userID'])!=null?_0x2f0124:_0x1d1114(0x3a7),_0x21b2ca=(_0x138087=(_0xcb04b8=_0x2f11c5[_0x1d1114(0x341)]())==null?void 0x0:_0xcb04b8[_0x1d1114(0x328)])!=null?_0x138087:_0x1d1114(0x3a7);return{'changeset':{'unitID':_0x5f5128,'type':u[_0x1d1114(0x289)](_0x230671['getUnitType'](_0x5f5128)),'baseRev':_0x58a82c[_0x1d1114(0x2af)](_0x5f5128),'revision':0x0,'userID':_0x330b23,'memberID':_0x21b2ca,'mutations':_0x43b751},'pendingMutations':_0x502356['slice'](_0x43b751['length'])};}function bs(_0x393bd9,_0x12f8f3,_0x5e2c90,_0x3051ed,_0x47d05a){const _0x97b1dd=_0x53b42f;var _0x5c26f3,_0x10a747,_0x23c089,_0x2445f1;const _0x35b2b6=[_0x393bd9['reduce']((_0x451d86,_0x2b7ef3)=>{const _0x3ff3a1=_0xe052;var _0x188d22;const {id:_0x49cc4d}=_0x451d86,{id:_0x4d63aa,type:_0x48cd9c}=_0x2b7ef3,_0x2ed3f6=(_0x188d22=_0x451d86['params'])!=null?_0x188d22:{'actions':null},_0x470a6a=_0x2b7ef3[_0x3ff3a1(0x17b)];if(_0x49cc4d&&_0x49cc4d!==_0x4d63aa)throw new Error(_0x3ff3a1(0x3dc)+_0x49cc4d+_0x3ff3a1(0x44a)+_0x4d63aa+'.');return{..._0x451d86,'id':_0x4d63aa,'type':_0x48cd9c,'params':{'unitId':_0x470a6a[_0x3ff3a1(0x21a)],'textRanges':_0x470a6a[_0x3ff3a1(0x461)],'actions':a[_0x3ff3a1(0x42a)]['compose'](_0x2ed3f6[_0x3ff3a1(0x2c1)],_0x470a6a['actions'])}};},{})],_0x343bdf=(_0x10a747=(_0x5c26f3=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x5c26f3[_0x97b1dd(0x324)])!=null?_0x10a747:_0x97b1dd(0x3a7),_0xd98b74=(_0x2445f1=(_0x23c089=_0x47d05a[_0x97b1dd(0x341)]())==null?void 0x0:_0x23c089[_0x97b1dd(0x328)])!=null?_0x2445f1:_0x97b1dd(0x3a7);return{'changeset':{'unitID':_0x12f8f3,'type':u[_0x97b1dd(0x289)](_0x5e2c90['getUnitType'](_0x12f8f3)),'baseRev':_0x3051ed[_0x97b1dd(0x2af)](_0x12f8f3),'revision':0x0,'userID':_0x343bdf,'memberID':_0xd98b74,'mutations':_0x35b2b6},'pendingMutations':[]};}var Ts=Object[_0x53b42f(0x38a)],Rs=Object[_0x53b42f(0x2a8)],K=(_0x528795,_0x18e0c0,_0x3299f2,_0x290ccf)=>{const _0x1fc56a=_0x53b42f;for(var _0x2c4a26=_0x290ccf>0x1?void 0x0:_0x290ccf?Rs(_0x18e0c0,_0x3299f2):_0x18e0c0,_0x312116=_0x528795[_0x1fc56a(0x419)]-0x1,_0x4c494d;_0x312116>=0x0;_0x312116--)(_0x4c494d=_0x528795[_0x312116])&&(_0x2c4a26=(_0x290ccf?_0x4c494d(_0x18e0c0,_0x3299f2,_0x2c4a26):_0x4c494d(_0x2c4a26))||_0x2c4a26);return _0x290ccf&&_0x2c4a26&&Ts(_0x18e0c0,_0x3299f2,_0x2c4a26),_0x2c4a26;},f=(_0x10d30e,_0x1e2802)=>(_0x42b771,_0x11a0d2)=>_0x1e2802(_0x42b771,_0x11a0d2,_0x10d30e),w=(_0xe8caec=>(_0xe8caec[_0x53b42f(0x1a4)]=_0x53b42f(0x39a),_0xe8caec['SYNCED']=_0x53b42f(0x3eb),_0xe8caec[_0x53b42f(0x33a)]=_0x53b42f(0x4b0),_0xe8caec[_0x53b42f(0x4db)]=_0x53b42f(0x13d),_0xe8caec['AWAITING_WITH_PENDING']='awaiting_with_pending',_0xe8caec[_0x53b42f(0x3ff)]=_0x53b42f(0x161),_0xe8caec[_0x53b42f(0x356)]=_0x53b42f(0x3e2),_0xe8caec['OFFLINE']=_0x53b42f(0x1a5),_0xe8caec))(w||{});class X{constructor(_0x524ad8,_0x1c25ad,_0x5ca59a,_0x34df4a,_0x4ba316,_0x1dd843,_0x1144d7,_0x31e7df,_0x36e5f0){const _0x2a1971=_0x53b42f;d(this,_0x2a1971(0x32e),null),d(this,_0x2a1971(0x209),[]),(this[_0x2a1971(0x348)]=_0x524ad8,this[_0x2a1971(0x20c)]=_0x1c25ad,this['_handler']=_0x4ba316,this['_commandService']=_0x1dd843,this['_undoRedoService']=_0x1144d7,this[_0x2a1971(0x311)]=_0x31e7df,this[_0x2a1971(0x33e)]=_0x36e5f0,this['_awaitingChangeset']=_0x5ca59a,this[_0x2a1971(0x209)]=_0x34df4a);}['_checkMissing'](_0x187cf3){const _0x1a7fc7=_0x53b42f,_0x4995c8=this[_0x1a7fc7(0x311)][_0x1a7fc7(0x2af)](this[_0x1a7fc7(0x348)]);return _0x187cf3[_0x1a7fc7(0x306)]>_0x4995c8+0x1?(this[_0x1a7fc7(0x16e)][_0x1a7fc7(0x4ba)]({'from':_0x4995c8,'to':_0x187cf3[_0x1a7fc7(0x306)]-0x1}),!0x0):!0x1;}[_0x53b42f(0x389)](_0x11cef1){const _0x5510a7=_0x53b42f;this[_0x5510a7(0x2aa)]['transformUndoRedo'](this[_0x5510a7(0x348)],_0x11cef1);}[_0x53b42f(0x464)](_0x48b65b){const _0x3c168b=_0x53b42f;var _0x16f92d,_0x3fe3aa;(_0x3fe3aa=(_0x16f92d=this[_0x3c168b(0x16e)])[_0x3c168b(0x1cd)])==null||_0x3fe3aa['call'](_0x16f92d,_0x48b65b);}['_transformIMECache'](_0x3e3a29){const _0x2f94c7=_0x53b42f;var _0x5cc576,_0x4dd0a0;return(_0x4dd0a0=(_0x5cc576=this['_handler'])[_0x2f94c7(0x156)])==null?void 0x0:_0x4dd0a0[_0x2f94c7(0x3f4)](_0x5cc576,_0x3e3a29);}['_transformRemoteChangesetByIMECache'](_0x27a3ff){const _0x15cd8e=_0x53b42f;var _0x32f776,_0x421de8,_0x1f63f7;return(_0x1f63f7=(_0x421de8=(_0x32f776=this[_0x15cd8e(0x16e)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x421de8[_0x15cd8e(0x3f4)](_0x32f776,_0x27a3ff))!=null?_0x1f63f7:_0x27a3ff;}['_syncEditingCollabCursor'](_0x54ddfd){const _0x4adbce=_0x53b42f;var _0x211f8f,_0x1f9550;if(this['type']===j[_0x4adbce(0x220)]){const {unitID:_0x5b8851,mutations:_0x45f150,memberID:_0x340d70}=_0x54ddfd,_0xdcbece=_0x45f150[0x0][_0x4adbce(0x17b)][_0x4adbce(0x461)];Array['isArray'](_0xdcbece)&&_0xdcbece[_0x4adbce(0x419)]>0x0&&((_0x1f9550=(_0x211f8f=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x1f9550[_0x4adbce(0x3f4)](_0x211f8f,{'unitID':_0x5b8851,'memberID':_0x340d70,'textRanges':_0xdcbece}));}}[_0x53b42f(0x331)](){const _0x43a9ce=_0x53b42f;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x43a9ce(0x20c)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x53b42f(0x21d)](){const _0x450251=_0x53b42f;return this['_revisionService']['getCurrentRevForDocument'](this[_0x450251(0x348)]);}['_incrementRevisionNumber'](){const _0x3abb1b=_0x53b42f;this[_0x3abb1b(0x311)][_0x3abb1b(0x3a1)](this[_0x3abb1b(0x348)]);}[_0x53b42f(0x28f)](_0x5e6932){const _0x25a2bb=_0x53b42f;var _0x1d4e94;const _0x2dc490=this['_transformRemoteChangesetByIMECache'](_0x5e6932),_0x4d1ec4=a[_0x25a2bb(0x2c6)](_0x2dc490[_0x25a2bb(0x21b)],this[_0x25a2bb(0x188)],{'fromCollab':!0x0});if(!_0x4d1ec4[_0x25a2bb(0x47a)])throw _0x4d1ec4[_0x25a2bb(0x150)]instanceof Error?_0x4d1ec4[_0x25a2bb(0x150)]:new Error((_0x1d4e94=_0x4d1ec4[_0x25a2bb(0x150)])!=null?_0x1d4e94:_0x25a2bb(0x13a));this[_0x25a2bb(0x36e)](_0x2dc490),this[_0x25a2bb(0x389)](_0x5e6932),this['_transformSelections'](_0x2dc490),this[_0x25a2bb(0x337)](_0x2dc490),this[_0x25a2bb(0x3c8)]();}}let ae=class extends X{constructor(_0x1fd683,_0x2a470e,_0x558353,_0x3349fa,_0x2cbc90,_0xe4e464,_0xd4e5f1,_0x127678,_0x2c12c1){const _0x156893=_0x53b42f;super(_0x1fd683,_0x2a470e,null,[],_0x558353,_0x127678,_0xd4e5f1,_0x3349fa,_0x2cbc90),d(this,_0x156893(0x2a7),_0x156893(0x3eb)),(this['_injector']=_0xe4e464,this['_logService']=_0x2c12c1);}['appendMutation'](_0x302040){const _0x4eb304=_0x53b42f,_0x140ad6=this['_injector'][_0x4eb304(0x477)]($,this[_0x4eb304(0x348)],this[_0x4eb304(0x20c)],[_0x302040],this[_0x4eb304(0x16e)]);return _0x140ad6[_0x4eb304(0x15c)](),_0x140ad6[_0x4eb304(0x331)](),_0x140ad6;}[_0x53b42f(0x437)](_0x53e2f4){const _0x4662e5=_0x53b42f;if(this['_checkMissing'](_0x53e2f4))return this[_0x4662e5(0x45d)][_0x4662e5(0x477)](x,this[_0x4662e5(0x348)],this[_0x4662e5(0x20c)],null,[],null,[_0x53e2f4],this['_handler']);try{return this[_0x4662e5(0x28f)](_0x53e2f4),this;}catch(_0x5e0b78){return this['_logService'][_0x4662e5(0x150)](_0x4662e5(0x3c7),_0x5e0b78),this;}}[_0x53b42f(0x28b)](){const _0x10e4e3=_0x53b42f;throw new Error(_0x10e4e3(0x162));}['onRemoteRej'](){const _0x1dea72=_0x53b42f;throw new Error(_0x1dea72(0x34c));}['toggleOffline'](){const _0x289b84=_0x53b42f;return this[_0x289b84(0x45d)][_0x289b84(0x477)](B,this[_0x289b84(0x348)],this[_0x289b84(0x20c)],null,[],this[_0x289b84(0x16e)]);}['toggleOnline'](){return this;}[_0x53b42f(0x497)](){const _0x312324=_0x53b42f;throw new Error(_0x312324(0x155));}};ae=K([f(0x3,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,a[_0x53b42f(0x4a1)]),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4c8)])],ae);let $=class extends X{constructor(_0x379ef5,_0x1d3372,_0x367dce,_0x386293,_0x18aa94,_0x4ecc78,_0x31f8d4,_0x44b566,_0x356b76,_0x300f30,_0x2df54f,_0x195f19,_0x1059a7,_0x248b06){const _0x3ce29a=_0x53b42f;super(_0x379ef5,_0x1d3372,null,_0x367dce,_0x386293,_0x300f30,_0x248b06,_0x4ecc78,_0x31f8d4),d(this,_0x3ce29a(0x2a7),_0x3ce29a(0x4b0)),d(this,_0x3ce29a(0x2e8),null),d(this,_0x3ce29a(0x3cc),null),(this[_0x3ce29a(0x45d)]=_0x18aa94,this[_0x3ce29a(0x4ae)]=_0x44b566,this['_logService']=_0x356b76,this[_0x3ce29a(0x2a6)]=_0x2df54f,this[_0x3ce29a(0x2f1)]=_0x195f19,this[_0x3ce29a(0x49a)]=_0x1059a7);}[_0x53b42f(0x2ed)](_0x597df3){const _0x561c79=_0x53b42f;return this['_pendingMutations'][_0x561c79(0x1d7)](_0x597df3),this[_0x561c79(0x331)](),this;}[_0x53b42f(0x437)](_0xfc8e04){const _0x419394=_0x53b42f;if(this[_0x419394(0x4aa)](_0xfc8e04))return this[_0x419394(0x446)](),this['_injector'][_0x419394(0x477)](x,this[_0x419394(0x348)],this[_0x419394(0x20c)],null,this[_0x419394(0x209)],null,[_0xfc8e04],this['_handler']);try{const _0x309cdd=this[_0x419394(0x2f1)][_0x419394(0x33b)](_0xfc8e04,this[_0x419394(0x209)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x309cdd)){const {c1Prime:_0x29ca1b,m2Prime:_0x489db4}=_0x309cdd;this['_executeRemoteChangeset'](_0x29ca1b);const _0x524538=this['_injector'][_0x419394(0x477)]($,this[_0x419394(0x348)],this[_0x419394(0x20c)],_0x489db4,this[_0x419394(0x16e)]);return this[_0x419394(0x446)](),_0x524538[_0x419394(0x15c)](this[_0x419394(0x2e8)]?Math['max'](0x0,new Date()[_0x419394(0x271)]()-this['_scheduleTimestamp']):this[_0x419394(0x24e)]()),_0x524538;}throw _0x309cdd['error'];}catch(_0x3573e6){return this['_logService'][_0x419394(0x150)](_0x3573e6),this[_0x419394(0x19f)](!0x1);}}[_0x53b42f(0x28b)](){const _0x48e932=_0x53b42f;throw new Error(_0x48e932(0x2c8));}[_0x53b42f(0x3de)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x53b42f(0x1d9)](){const _0x55db67=_0x53b42f;return this[_0x55db67(0x446)](),this['_injector']['createInstance'](B,this[_0x55db67(0x348)],this[_0x55db67(0x20c)],null,this['_pendingMutations'],this['_handler']);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x15c)](_0x5bfdf8){const _0x315ead=_0x53b42f;_0x5bfdf8=_0x5bfdf8!=null?_0x5bfdf8:this[_0x315ead(0x24e)](),this[_0x315ead(0x2e8)]=new Date()[_0x315ead(0x271)](),this[_0x315ead(0x3cc)]=setTimeout(()=>{const _0x1ac6c2=_0x315ead;this[_0x1ac6c2(0x446)]();let _0x362e5d=null;switch(this[_0x1ac6c2(0x20c)]){case j[_0x1ac6c2(0x164)]:{_0x362e5d=Cs(this[_0x1ac6c2(0x209)],this[_0x1ac6c2(0x348)],this['_univerInstanceService'],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}case j['UNIVER_DOC']:{_0x362e5d=bs(this['_pendingMutations'],this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x49a)],this[_0x1ac6c2(0x311)],this[_0x1ac6c2(0x4ae)]);break;}default:throw new Error(_0x1ac6c2(0x418)+this[_0x1ac6c2(0x20c)]+_0x1ac6c2(0x3e7));}const {changeset:_0xf86de3,pendingMutations:_0x28ebea}=_0x362e5d;this[_0x1ac6c2(0x16e)][_0x1ac6c2(0x4a9)](_0xf86de3);const _0x4179ef=_0x28ebea[_0x1ac6c2(0x419)]?this[_0x1ac6c2(0x45d)][_0x1ac6c2(0x477)](H,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,_0x28ebea,this['_handler']):this[_0x1ac6c2(0x45d)]['createInstance'](k,this[_0x1ac6c2(0x348)],this[_0x1ac6c2(0x20c)],_0xf86de3,this[_0x1ac6c2(0x16e)]);_0x4179ef['_updateLocalCache'](),this[_0x1ac6c2(0x16e)]['onStateChange'](this,_0x4179ef);},_0x5bfdf8);}[_0x53b42f(0x24e)](){const _0x23cfbf=_0x53b42f;var _0x4792de;return(_0x4792de=this[_0x23cfbf(0x2a6)][_0x23cfbf(0x1d8)](ht))!=null?_0x4792de:Bt;}[_0x53b42f(0x497)](){const _0x27882c=_0x53b42f;throw new Error(_0x27882c(0x200));}['_clearScheduledTask'](){const _0x36cbb4=_0x53b42f;this[_0x36cbb4(0x3cc)]!=null&&(clearTimeout(this[_0x36cbb4(0x3cc)]),this[_0x36cbb4(0x3cc)]=null);}['_onConflict'](_0x179301){const _0x926f5e=_0x53b42f;return this[_0x926f5e(0x446)](),this[_0x926f5e(0x45d)]['createInstance'](Y,this[_0x926f5e(0x348)],this['type'],null,this[_0x926f5e(0x209)],this[_0x926f5e(0x16e)],_0x179301);}};$=K([f(0x4,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h['Inject'](exports[_0x53b42f(0x4b3)])),f(0x7,h['Inject'](G)),f(0x8,a['ILogService']),f(0x9,a[_0x53b42f(0x1c5)]),f(0xa,a[_0x53b42f(0x4a2)]),f(0xb,u['ITransformService']),f(0xc,a['IUniverInstanceService']),f(0xd,a[_0x53b42f(0x4a1)])],$);let k=class extends X{constructor(_0x24e315,_0x56b974,_0x1f4623,_0x1f74cb,_0x3d8fda,_0x3a076e,_0x130b3f,_0x367b76,_0x2d1284,_0x4fa49d,_0x25da9b){const _0x8dabb0=_0x53b42f;super(_0x24e315,_0x56b974,_0x1f4623,[],_0x1f74cb,_0x367b76,_0x25da9b,_0x3a076e,_0x130b3f),d(this,_0x8dabb0(0x2a7),_0x8dabb0(0x13d)),(this['_injector']=_0x3d8fda,this['_logService']=_0x2d1284,this['_transformService']=_0x4fa49d);}['appendMutation'](_0x84b4fa){const _0xe07a3a=_0x53b42f,_0x427b55=this[_0xe07a3a(0x45d)][_0xe07a3a(0x477)](H,this['unitID'],this[_0xe07a3a(0x20c)],this['_awaitingChangeset'],[_0x84b4fa],this[_0xe07a3a(0x16e)]);return _0x427b55[_0xe07a3a(0x331)](),_0x427b55;}[_0x53b42f(0x437)](_0x2a7869){const _0x244e4f=_0x53b42f;if(this['_checkMissing'](_0x2a7869))return this[_0x244e4f(0x45d)][_0x244e4f(0x477)](x,this[_0x244e4f(0x348)],this[_0x244e4f(0x20c)],this[_0x244e4f(0x32e)],[],null,[_0x2a7869],this[_0x244e4f(0x16e)]);try{const _0x1a5d3d=this[_0x244e4f(0x2f1)][_0x244e4f(0x233)]([_0x2a7869],[this['_awaitingChangeset']],!0x1);if(u['isTransformChangesetsSuccess'](_0x1a5d3d)){const {c1Prime:_0x9b8da4,c2Prime:_0x1df567}=_0x1a5d3d;this[_0x244e4f(0x28f)](_0x9b8da4[0x0]),_0x1df567[0x0][_0x244e4f(0x1b6)]=this['_getCurrentRevision']();const _0x468869=this[_0x244e4f(0x45d)][_0x244e4f(0x477)](k,this['unitID'],this['type'],_0x1df567[0x0],this[_0x244e4f(0x16e)]);return _0x468869[_0x244e4f(0x331)](),_0x468869;}return this[_0x244e4f(0x19f)](!0x1);}catch(_0x159c0e){return this['_logService'][_0x244e4f(0x150)](_0x159c0e),this['_onConflict'](!0x1);}}[_0x53b42f(0x28b)](_0x471d2a){const _0xe378c7=_0x53b42f,_0x220e41=this[_0xe378c7(0x311)]['getCurrentRevForDocument'](this['unitID']);if(_0x471d2a[_0xe378c7(0x306)]<_0x220e41-0x1)return this;if(this[_0xe378c7(0x4aa)](_0x471d2a))return this[_0xe378c7(0x45d)][_0xe378c7(0x477)](x,this['unitID'],this[_0xe378c7(0x20c)],null,[],this[_0xe378c7(0x32e)],[],this[_0xe378c7(0x16e)]);this[_0xe378c7(0x3c8)]();const _0x43564f=this[_0xe378c7(0x45d)][_0xe378c7(0x477)](ae,this['unitID'],this['type'],this['_handler']);return _0x43564f[_0xe378c7(0x331)](),_0x43564f;}[_0x53b42f(0x3de)](_0x58e325){const _0x23fcdd=_0x53b42f;return this[_0x23fcdd(0x19f)](!!(_0x58e325!=null&&_0x58e325[_0x23fcdd(0x395)]));}[_0x53b42f(0x1d9)](){const _0x4381a7=_0x53b42f;return this[_0x4381a7(0x45d)][_0x4381a7(0x477)](B,this[_0x4381a7(0x348)],this[_0x4381a7(0x20c)],this['_awaitingChangeset'],[],this[_0x4381a7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x54413b=_0x53b42f;this[_0x54413b(0x16e)][_0x54413b(0x4a9)](this[_0x54413b(0x32e)]);}['_onConflict'](_0x1a5b70){const _0x11d6a4=_0x53b42f;return this[_0x11d6a4(0x45d)][_0x11d6a4(0x477)](Y,this[_0x11d6a4(0x348)],this[_0x11d6a4(0x20c)],this[_0x11d6a4(0x32e)],[],this['_handler'],_0x1a5b70);}};k=K([f(0x4,h[_0x53b42f(0x295)](h['Injector'])),f(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x6,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a['ILogService']),f(0x9,u[_0x53b42f(0x25a)]),f(0xa,a[_0x53b42f(0x4a1)])],k);let H=class extends X{constructor(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x1b3851,_0x5ac0f2,_0x53e890,_0x34ec27,_0xf69445,_0x594f49,_0x24c4cc){const _0x325c10=_0x53b42f;super(_0x506b6e,_0x358c81,_0x3541a5,_0x557706,_0x54c1fe,_0x34ec27,_0x24c4cc,_0x5ac0f2,_0x53e890),d(this,_0x325c10(0x2a7),_0x325c10(0x19a)),(this[_0x325c10(0x45d)]=_0x1b3851,this[_0x325c10(0x42f)]=_0xf69445,this[_0x325c10(0x2f1)]=_0x594f49);}['appendMutation'](_0x50f44a){const _0x20f255=_0x53b42f;return this[_0x20f255(0x209)][_0x20f255(0x1d7)](_0x50f44a),this;}[_0x53b42f(0x437)](_0x386f67){const _0x450ffc=_0x53b42f;if(this['_checkMissing'](_0x386f67))return this['_injector'][_0x450ffc(0x477)](x,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],this[_0x450ffc(0x32e)],this[_0x450ffc(0x209)],null,[_0x386f67],this[_0x450ffc(0x16e)]);try{const _0x1ae8e4=this[_0x450ffc(0x2f1)]['transformChangesets']([_0x386f67],[this['_awaitingChangeset']],!0x1);if(u[_0x450ffc(0x374)](_0x1ae8e4)){const {c1Prime:_0x46c3e6,c2Prime:_0x3d5646}=_0x1ae8e4,_0x1b69f0=this['_transformService']['transformMutationsWithChangeset'](_0x46c3e6[0x0],this['_pendingMutations']);if(u[_0x450ffc(0x40a)](_0x1b69f0)){const {c1Prime:_0x2b9a2b,m2Prime:_0x59cd04}=_0x1b69f0;return this['_executeRemoteChangeset'](_0x2b9a2b),_0x3d5646[0x0][_0x450ffc(0x1b6)]=this[_0x450ffc(0x21d)](),this[_0x450ffc(0x45d)][_0x450ffc(0x477)](H,this[_0x450ffc(0x348)],this[_0x450ffc(0x20c)],_0x3d5646[0x0],_0x59cd04,this[_0x450ffc(0x16e)]);}throw _0x1b69f0[_0x450ffc(0x150)];}throw _0x1ae8e4[_0x450ffc(0x150)];}catch(_0x41ac6e){return this['_logService'][_0x450ffc(0x150)](_0x41ac6e),this[_0x450ffc(0x19f)](!0x1);}}['onRemoteAck'](_0x310b5c){const _0x304578=_0x53b42f;if(this[_0x304578(0x4aa)](_0x310b5c))return this[_0x304578(0x45d)]['createInstance'](x,this[_0x304578(0x348)],this[_0x304578(0x20c)],null,this[_0x304578(0x209)],this[_0x304578(0x32e)],[],this[_0x304578(0x16e)]);this[_0x304578(0x3c8)]();const _0x5eff15=this[_0x304578(0x45d)][_0x304578(0x477)]($,this[_0x304578(0x348)],this[_0x304578(0x20c)],this[_0x304578(0x209)],this['_handler']);return _0x5eff15[_0x304578(0x15c)](),_0x5eff15[_0x304578(0x331)](),_0x5eff15;}[_0x53b42f(0x3de)](_0x45a1cb){const _0x57fa6b=_0x53b42f;return this[_0x57fa6b(0x19f)](!!(_0x45a1cb!=null&&_0x45a1cb['isPermissionRej']));}[_0x53b42f(0x1d9)](){const _0x19cdf7=_0x53b42f;return this[_0x19cdf7(0x45d)]['createInstance'](B,this[_0x19cdf7(0x348)],this[_0x19cdf7(0x20c)],this[_0x19cdf7(0x32e)],this[_0x19cdf7(0x209)],this[_0x19cdf7(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){const _0x13ddb9=_0x53b42f;this[_0x13ddb9(0x16e)][_0x13ddb9(0x4a9)](this[_0x13ddb9(0x32e)]);}[_0x53b42f(0x19f)](_0x1755d9){const _0xe38c14=_0x53b42f;return this[_0xe38c14(0x45d)][_0xe38c14(0x477)](Y,this[_0xe38c14(0x348)],this[_0xe38c14(0x20c)],null,this[_0xe38c14(0x209)],this[_0xe38c14(0x16e)],_0x1755d9);}};H=K([f(0x5,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x6,h['Inject'](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a[_0x53b42f(0x4c8)]),f(0xa,u['ITransformService']),f(0xb,a[_0x53b42f(0x4a1)])],H);let Y=class extends X{constructor(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x18704d=!0x1,_0x53377d,_0x39edde,_0x26e0d8,_0x44dc50,_0x25f7cb,_0x394d46,_0x548a22){const _0x17d25c=_0x53b42f;super(_0x549ed2,_0x5e696a,_0x25308e,_0x128156,_0x4a09b3,_0x39edde,_0x26e0d8,_0x25f7cb,_0x44dc50),d(this,_0x17d25c(0x2a7),_0x17d25c(0x3e2)),(this[_0x17d25c(0x31a)]=_0x18704d,this[_0x17d25c(0x214)]=_0x53377d,this[_0x17d25c(0x2bd)]=_0x394d46,this[_0x17d25c(0x2bb)]=_0x548a22,this[_0x17d25c(0x24d)](),this['_clearLocalCache'](),this[_0x17d25c(0x14e)]());}[_0x53b42f(0x2ed)](){return this;}[_0x53b42f(0x437)](){return this;}[_0x53b42f(0x28b)](){return this;}[_0x53b42f(0x3de)](){return this;}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x497)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x53b42f(0x16f)](){const _0x9f25f6=_0x53b42f;this[_0x9f25f6(0x33e)][_0x9f25f6(0x319)](this['unitID'],this[_0x9f25f6(0x20c)],null,[]);}[_0x53b42f(0x24d)](){const _0x52c199=_0x53b42f;this[_0x52c199(0x31a)]?this['_notificationService'][_0x52c199(0x138)]({'title':this[_0x52c199(0x2bd)]['t']('permission.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x38e)),'type':_0x52c199(0x150),'duration':0x0}):this['_notificationService'][_0x52c199(0x138)]({'title':this['_localeService']['t']('conflict.title'),'content':this[_0x52c199(0x2bd)]['t'](_0x52c199(0x3fc)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x39e5e4=_0x53b42f;this['_permissionService'][_0x39e5e4(0x2c2)](new E['WorkbookEditablePermission'](this[_0x39e5e4(0x348)])['id'],!0x1);}};Y=K([f(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x37e)])),f(0x7,a[_0x53b42f(0x1c5)]),f(0x8,a[_0x53b42f(0x4a1)]),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0xb,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),f(0xc,N[_0x53b42f(0x36f)])],Y);let B=class extends X{constructor(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x566cdc,_0x353d8e,_0x274487,_0x108abd,_0x14b896){const _0x50360f=_0x53b42f;super(_0x3ae6da,_0x261139,_0x489e26,_0x21feff,_0x28f62b,_0x108abd,_0x14b896,_0x353d8e,_0x274487),d(this,'status',_0x50360f(0x1a5)),this[_0x50360f(0x45d)]=_0x566cdc;}[_0x53b42f(0x2ed)](_0x5dfe46){const _0x2b5618=_0x53b42f;return this[_0x2b5618(0x209)][_0x2b5618(0x1d7)](_0x5dfe46),this[_0x2b5618(0x331)](),this;}['onRemoteChangeset'](_0x3ab07a){const _0x36b7f9=_0x53b42f;throw new Error(_0x36b7f9(0x274));}['onRemoteAck'](){const _0x54b3cb=_0x53b42f;throw new Error(_0x54b3cb(0x427));}[_0x53b42f(0x3de)](){const _0xe875ff=_0x53b42f;throw new Error(_0xe875ff(0x405));}[_0x53b42f(0x1d9)](){return this;}[_0x53b42f(0x391)](){const _0x53a12b=_0x53b42f,{_injector:_0x4f455c,_pendingMutations:_0x6e3971,_awaitingChangeset:_0xaf74d6,unitID:_0x5c5b47,_handler:_0x194f78,type:_0x549adf}=this,_0x27edff=bt(_0x4f455c,_0x5c5b47,_0x549adf,_0xaf74d6,_0x6e3971,_0x194f78);return _0x27edff instanceof $?_0x27edff[_0x53a12b(0x15c)]():(_0x27edff instanceof H||_0x27edff instanceof k)&&_0x27edff['resend'](),_0x27edff;}['resend'](){const _0x1ba837=_0x53b42f;throw new Error(_0x1ba837(0x33d));}};B=K([f(0x5,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),f(0x6,h[_0x53b42f(0x295)](u['RevisionService'])),f(0x7,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0x8,a[_0x53b42f(0x1c5)]),f(0x9,a['IUndoRedoService'])],B);let x=class extends X{constructor(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x85e21,_0x3801ad,_0x1bb670,_0x5d8127,_0x18c9a3,_0xb2aaba,_0x24e03a,_0x11c02f,_0xffab4f,_0x589641){const _0x15bd38=_0x53b42f;super(_0x5dc55b,_0x35850d,_0x430a51,_0x5c6234,_0x1bb670,_0x11c02f,_0xffab4f,_0x18c9a3,_0xb2aaba),d(this,_0x15bd38(0x2a7),'fetch_missing'),(this[_0x15bd38(0x458)]=_0x85e21,this['_queuedRemoteChangesets']=_0x3801ad,this[_0x15bd38(0x45d)]=_0x5d8127,this[_0x15bd38(0x42f)]=_0x24e03a,this[_0x15bd38(0x2f1)]=_0x589641);}[_0x53b42f(0x3f7)](_0x257f06){const _0x60850=_0x53b42f;try{const _0x5afdfc=[..._0x257f06,...this[_0x60850(0x36a)]],_0x139383=[this[_0x60850(0x32e)]||this[_0x60850(0x458)]]['filter'](_0x6a5945=>!!_0x6a5945);let _0x52bb38,_0x61941d;if(_0x139383[_0x60850(0x419)]){const _0xe9651f=this['_transformService'][_0x60850(0x233)](_0x5afdfc,_0x139383,!0x1);if(!u[_0x60850(0x374)](_0xe9651f))throw _0xe9651f[_0x60850(0x150)];_0x52bb38=_0xe9651f['c1Prime'],_0x61941d=_0xe9651f[_0x60850(0x15f)];}else _0x52bb38=_0x5afdfc,_0x61941d=[];let _0x31c17f=this[_0x60850(0x209)];_0x52bb38[_0x60850(0x421)](_0x4622d5=>{const _0x2580b7=_0x60850;let _0x47f15f;if(_0x31c17f[_0x2580b7(0x419)]){const _0x25df3c=this[_0x2580b7(0x2f1)][_0x2580b7(0x33b)](_0x4622d5,_0x31c17f);if(!u[_0x2580b7(0x40a)](_0x25df3c))throw _0x25df3c['error'];_0x47f15f=_0x25df3c[_0x2580b7(0x132)],_0x31c17f=_0x25df3c['m2Prime'];}else _0x47f15f=_0x4622d5;this[_0x2580b7(0x28f)](_0x47f15f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x60850(0x3c8)](),this[_0x60850(0x32e)]&&_0x61941d[_0x60850(0x419)]&&(_0x61941d[0x0]['baseRev']=this[_0x60850(0x21d)]());let _0x221b76;if(this['_awaitingChangeset']&&_0x31c17f[_0x60850(0x419)]!==0x0)_0x221b76=this['_injector'][_0x60850(0x477)](H,this[_0x60850(0x348)],this[_0x60850(0x20c)],_0x61941d[0x0],_0x31c17f,this['_handler']);else{if(this[_0x60850(0x32e)]&&_0x31c17f['length']===0x0)_0x61941d[0x0][_0x60850(0x1b6)]=this[_0x60850(0x21d)](),_0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](k,this[_0x60850(0x348)],this['type'],_0x61941d[0x0],this['_handler']);else{if(_0x31c17f[_0x60850(0x419)]!==0x0){const _0x4cde74=this[_0x60850(0x45d)][_0x60850(0x477)]($,this['unitID'],this['type'],_0x31c17f,this[_0x60850(0x16e)]);_0x4cde74[_0x60850(0x15c)](),_0x221b76=_0x4cde74;}else _0x221b76=this[_0x60850(0x45d)][_0x60850(0x477)](ae,this[_0x60850(0x348)],this['type'],this[_0x60850(0x16e)]);}}return _0x221b76[_0x60850(0x331)](),_0x221b76;}catch(_0x30708d){return this[_0x60850(0x42f)][_0x60850(0x150)](_0x60850(0x439),_0x60850(0x20d),_0x30708d),this[_0x60850(0x45d)][_0x60850(0x477)](Y,this[_0x60850(0x348)],this[_0x60850(0x20c)],this[_0x60850(0x32e)],this[_0x60850(0x209)],this['_handler'],!0x1);}}[_0x53b42f(0x497)](){const _0x243b69=_0x53b42f;throw new Error(_0x243b69(0x1a9));}[_0x53b42f(0x2ed)](_0x1e03c6){const _0x498dc5=_0x53b42f;return this[_0x498dc5(0x209)][_0x498dc5(0x1d7)](_0x1e03c6),this;}[_0x53b42f(0x437)](_0x2f867b){const _0x2c7a41=_0x53b42f;return this['_queuedRemoteChangesets'][_0x2c7a41(0x1d7)](_0x2f867b),this;}[_0x53b42f(0x28b)](_0x19225f){const _0x51273e=_0x53b42f;if(this[_0x51273e(0x32e)])return this[_0x51273e(0x458)]=this[_0x51273e(0x32e)],this[_0x51273e(0x32e)]=null,this;throw new Error(_0x51273e(0x493));}[_0x53b42f(0x3de)](_0x172024){const _0x57aae8=_0x53b42f;return this[_0x57aae8(0x19f)](!!(_0x172024!=null&&_0x172024[_0x57aae8(0x395)]));}[_0x53b42f(0x1d9)](){const _0x187cde=_0x53b42f;return this[_0x187cde(0x45d)][_0x187cde(0x477)](B,this[_0x187cde(0x348)],this[_0x187cde(0x20c)],this[_0x187cde(0x32e)],this['_pendingMutations'],this[_0x187cde(0x16e)]);}[_0x53b42f(0x391)](){return this;}[_0x53b42f(0x19f)](_0x135d4f){const _0x155fa6=_0x53b42f;return this[_0x155fa6(0x45d)][_0x155fa6(0x477)](Y,this[_0x155fa6(0x348)],this[_0x155fa6(0x20c)],this[_0x155fa6(0x32e)],this[_0x155fa6(0x209)],this[_0x155fa6(0x16e)],_0x135d4f);}};x=K([f(0x7,h['Inject'](h[_0x53b42f(0x1ac)])),f(0x8,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),f(0x9,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),f(0xa,a[_0x53b42f(0x4c8)]),f(0xb,a[_0x53b42f(0x1c5)]),f(0xc,a['IUndoRedoService']),f(0xd,u['ITransformService'])],x);function bt(_0x2bbd74,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6){const _0x4396d2=_0x53b42f;return _0x5ee26a&&_0x242142[_0x4396d2(0x419)]?_0x2bbd74['createInstance'](H,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x242142,_0x3185d6):_0x5ee26a?_0x2bbd74['createInstance'](k,_0x1ff0c6,_0x6a0732,_0x5ee26a,_0x3185d6):_0x242142[_0x4396d2(0x419)]?_0x2bbd74[_0x4396d2(0x477)]($,_0x1ff0c6,_0x6a0732,_0x242142,_0x3185d6):_0x2bbd74[_0x4396d2(0x477)](ae,_0x1ff0c6,_0x6a0732,_0x3185d6);}var Os=Object['defineProperty'],Ds=Object['getOwnPropertyDescriptor'],Ee=(_0x17a36b,_0x98889e,_0x388dbb,_0x280c12)=>{const _0x36ad25=_0x53b42f;for(var _0x498e79=_0x280c12>0x1?void 0x0:_0x280c12?Ds(_0x98889e,_0x388dbb):_0x98889e,_0x46fe99=_0x17a36b[_0x36ad25(0x419)]-0x1,_0x3a6922;_0x46fe99>=0x0;_0x46fe99--)(_0x3a6922=_0x17a36b[_0x46fe99])&&(_0x498e79=(_0x280c12?_0x3a6922(_0x98889e,_0x388dbb,_0x498e79):_0x3a6922(_0x498e79))||_0x498e79);return _0x280c12&&_0x498e79&&Os(_0x98889e,_0x388dbb,_0x498e79),_0x498e79;},I=(_0x35fb10,_0x108bba)=>(_0x1447ab,_0x56b8bd)=>_0x108bba(_0x1447ab,_0x56b8bd,_0x35fb10);exports[_0x53b42f(0x301)]=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3c628f,_0x2fc539,_0x32a2e7){const _0x5ca534=_0x53b42f;super(),d(this,_0x5ca534(0x372),new Map()),d(this,'_entityInit$',new g['Subject']()),(this['_injector']=_0x3c628f,this[_0x5ca534(0x44f)]=_0x2fc539,this[_0x5ca534(0x49a)]=_0x32a2e7,this['_init']());}[_0x53b42f(0x4df)](){const _0x3c6a05=_0x53b42f;super[_0x3c6a05(0x4df)](),this[_0x3c6a05(0x372)][_0x3c6a05(0x421)](_0x2b2d2e=>_0x2b2d2e[_0x3c6a05(0x4df)]()),this['_entities'][_0x3c6a05(0x4de)]();}[_0x53b42f(0x1cb)](_0x114565){const _0x246466=_0x53b42f;var _0x35e70b;return(_0x35e70b=this['_entities'][_0x246466(0x3d4)](_0x114565))!=null?_0x35e70b:null;}[_0x53b42f(0x397)](_0x27150a){const _0x49e314=_0x53b42f,_0x43dbf5=this['getCollabEntity'](_0x27150a);return _0x43dbf5?g['of'](_0x43dbf5):this[_0x49e314(0x44d)]['pipe'](T[_0x49e314(0x2f0)](_0x49d478=>_0x49d478['unitID']===_0x27150a));}[_0x53b42f(0x243)](){const _0x8b8849=_0x53b42f;this[_0x8b8849(0x49a)][_0x8b8849(0x4b6)](a['UniverInstanceType'][_0x8b8849(0x164)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T['delay'](0x10))[_0x8b8849(0x492)](async _0x530004=>{const _0x23559e=_0x8b8849,_0xfda19d=_0x530004[_0x23559e(0x1f9)](),_0x5ba5e0=await this[_0x23559e(0x47c)](_0xfda19d,j['UNIVER_SHEET']);this[_0x23559e(0x372)]['set'](_0xfda19d,_0x5ba5e0);}),this[_0x8b8849(0x49a)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x8b8849(0x220)])[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]),T[_0x8b8849(0x20a)](0x10))['pipe'](T[_0x8b8849(0x2f0)](_0x5bb6de=>!_0x5bb6de[_0x8b8849(0x1f9)]()[_0x8b8849(0x19e)]('__')))[_0x8b8849(0x492)](async _0x330d97=>{const _0x2d4560=_0x8b8849,_0x318e15=_0x330d97[_0x2d4560(0x1f9)](),_0x1caeb8=await this[_0x2d4560(0x47c)](_0x318e15,j[_0x2d4560(0x220)]);this[_0x2d4560(0x372)][_0x2d4560(0x2e0)](_0x318e15,_0x1caeb8);}),g[_0x8b8849(0x221)](this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x164)]),this[_0x8b8849(0x49a)][_0x8b8849(0x160)](a[_0x8b8849(0x142)][_0x8b8849(0x220)]))[_0x8b8849(0x454)](g[_0x8b8849(0x436)](this[_0x8b8849(0x35f)]))[_0x8b8849(0x492)](_0x3d80ad=>{const _0x369f7b=_0x8b8849,_0x24fc12=_0x3d80ad['getUnitId'](),_0x23e387=this[_0x369f7b(0x372)][_0x369f7b(0x3d4)](_0x24fc12);_0x23e387&&(_0x23e387[_0x369f7b(0x4df)](),this[_0x369f7b(0x372)][_0x369f7b(0x35b)](_0x24fc12));});}async[_0x53b42f(0x47c)](_0x59c064,_0x1136ff){const _0x308638=_0x53b42f,_0x8de595=await this['_collabSessionService'][_0x308638(0x386)](_0x59c064),_0x8f926f=this[_0x308638(0x45d)][_0x308638(0x477)](this[_0x308638(0x1d0)](_0x1136ff),_0x59c064,_0x1136ff,_0x8de595);return await _0x8f926f[_0x308638(0x433)](),this[_0x308638(0x44d)]['next'](_0x8f926f),_0x8f926f;}[_0x53b42f(0x1d0)](_0x329ba8){const _0x68a1a7=_0x53b42f;switch(_0x329ba8){case j[_0x68a1a7(0x220)]:return Ue;case j['UNIVER_SHEET']:return ye;default:throw new Error(_0x68a1a7(0x1f4)+_0x329ba8);}}},exports[_0x53b42f(0x301)]=Ee([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x301)]),I(0x0,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x1,h['Inject'](exports[_0x53b42f(0x14a)])),I(0x2,a[_0x53b42f(0x390)])],exports[_0x53b42f(0x301)]);let me=class extends a[_0x53b42f(0x3a5)]{constructor(_0xc89388,_0x574aab,_0x4cd9a8,_0x3268b8,_0x7f74c0,_0xf40171,_0x2cf67f,_0xa83f96,_0x5d76b3,_0x293bad,_0x50eac3,_0x5b87bb,_0x50f5e9){const _0x2f0702=_0x53b42f;super(),d(this,'_state$',new g[(_0x2f0702(0x28a))](null)),d(this,_0x2f0702(0x48f),this[_0x2f0702(0x3bb)]['asObservable']()),d(this,_0x2f0702(0x379)),d(this,_0x2f0702(0x3aa),!0x1),d(this,_0x2f0702(0x183),this[_0x2f0702(0x48f)][_0x2f0702(0x454)](T['map'](_0x3a4c87=>_0x3a4c87?_0x3a4c87['status']:w[_0x2f0702(0x1b4)]),T['shareReplay'](0x1))),d(this,'_transitionLocked',!0x1),d(this,_0x2f0702(0x4cf),[]),(this[_0x2f0702(0x348)]=_0xc89388,this['_type']=_0x574aab,this[_0x2f0702(0x3e8)]=_0x4cd9a8,this[_0x2f0702(0x45d)]=_0x3268b8,this[_0x2f0702(0x33e)]=_0x7f74c0,this['_compressMutationService']=_0xf40171,this[_0x2f0702(0x2bd)]=_0x2cf67f,this['_revisionService']=_0xa83f96,this[_0x2f0702(0x42f)]=_0x5d76b3,this[_0x2f0702(0x188)]=_0x293bad,this[_0x2f0702(0x23f)]=_0x50eac3,this[_0x2f0702(0x214)]=_0x5b87bb,this['_singleActiveUnitService']=_0x50f5e9);}get[_0x53b42f(0x266)](){const _0x240381=_0x53b42f;return this[_0x240381(0x379)];}async[_0x53b42f(0x433)](){const _0x4285e4=_0x53b42f;if(this[_0x4285e4(0x266)])throw new Error(_0x4285e4(0x340));await this[_0x4285e4(0x243)]();}['pauseCollaboration'](){const _0x319d1c=_0x53b42f;return this[_0x319d1c(0x3aa)]=!0x0,a[_0x319d1c(0x1bb)](()=>{const _0x254400=_0x319d1c;this[_0x254400(0x3aa)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x37a214){const _0x327180=_0x53b42f;this[_0x327180(0x379)]=_0x37a214,this[_0x327180(0x3bb)][_0x327180(0x414)](_0x37a214);}async['_init'](){const _0x44f72d=_0x53b42f;var _0x3e2cf2;return this[_0x44f72d(0x141)](await this['_createInitialState']()),this[_0x44f72d(0x346)]&&((_0x3e2cf2=this[_0x44f72d(0x346)])==null||_0x3e2cf2[_0x44f72d(0x482)](this[_0x44f72d(0x348)]),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x44f72d(0x348)])[_0x44f72d(0x492)](_0x2ea3b9=>{const _0x408e0e=_0x44f72d;this[_0x408e0e(0x42f)][_0x408e0e(0x240)]('[CollaborationEntity]',_0x408e0e(0x4c1),_0x2ea3b9),_0x2ea3b9===Et[_0x408e0e(0x34a)]?(this[_0x408e0e(0x23f)][_0x408e0e(0x138)]({'content':this[_0x408e0e(0x2bd)]['t'](_0x408e0e(0x139)),'type':oe[_0x408e0e(0x3c9)][_0x408e0e(0x376)]}),this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E[(_0x408e0e(0x247))](this[_0x408e0e(0x348)])['id'],!0x1)):this[_0x408e0e(0x214)][_0x408e0e(0x2c2)](new E['WorkbookEditablePermission'](this[_0x408e0e(0x348)])['id'],!0x0);})))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this['_session'][_0x44f72d(0x222)][_0x44f72d(0x492)](_0x35438d=>{const _0x3924b9=_0x44f72d;_0x35438d===W[_0x3924b9(0x4c3)]?this[_0x3924b9(0x1e0)]():_0x35438d===W[_0x3924b9(0x1b4)]&&this[_0x3924b9(0x435)]();}))),this[_0x44f72d(0x1e9)](a[_0x44f72d(0x1bb)](this[_0x44f72d(0x3e8)][_0x44f72d(0x255)][_0x44f72d(0x492)](_0x3bf767=>{const _0x3a7121=_0x44f72d;try{switch(_0x3bf767[_0x3a7121(0x428)]){case u[_0x3a7121(0x3fe)][_0x3a7121(0x463)]:{this[_0x3a7121(0x1d2)](u[_0x3a7121(0x134)](_0x3bf767[_0x3a7121(0x169)]));break;}case u[_0x3a7121(0x3fe)][_0x3a7121(0x45a)]:{this[_0x3a7121(0x3b1)](_0x3bf767[_0x3a7121(0x169)]);break;}case u[_0x3a7121(0x3fe)]['CHANGESET_REJ']:{this[_0x3a7121(0x489)]();break;}case u['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x3a7121(0x314)](_0x3bf767[_0x3a7121(0x169)][_0x3a7121(0x3d8)][_0x3a7121(0x1af)](_0x50e9f6=>u[_0x3a7121(0x134)](_0x50e9f6)));break;}case u['CollaborationEvent']['PERMISSION_REJ']:this[_0x3a7121(0x489)]({'isPermissionRej':!0x0});}}catch(_0x17beba){throw console[_0x3a7121(0x150)](_0x3a7121(0x28d),_0x17beba),_0x17beba;}}))),this[_0x44f72d(0x379)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x53b42f(0x45c)](){const _0x5803f6=_0x53b42f;if(this[_0x5803f6(0x144)])throw new Error(_0x5803f6(0x3ee));this[_0x5803f6(0x144)]=!0x0;}['_onLocalMutation'](_0xc2f1df){const _0x5d0537=_0x53b42f;this[_0x5d0537(0x45c)](),this['_updateState'](this['_state'][_0x5d0537(0x2ed)](_0xc2f1df)),this[_0x5d0537(0x3b7)]();}[_0x53b42f(0x1d2)](_0x44ba8d){const _0x1aaaac=_0x53b42f;if(!(_0x44ba8d[_0x1aaaac(0x306)]<=this[_0x1aaaac(0x311)][_0x1aaaac(0x2af)](this[_0x1aaaac(0x348)]))){if(this[_0x1aaaac(0x3aa)]){this[_0x1aaaac(0x4cf)][_0x1aaaac(0x1d7)](_0x44ba8d);return;}this[_0x1aaaac(0x217)](_0x44ba8d);}}[_0x53b42f(0x23e)](){const _0x3b9d06=_0x53b42f;this['_remoteChangesetQueue'][_0x3b9d06(0x421)](_0x44e988=>this[_0x3b9d06(0x217)](_0x44e988)),this[_0x3b9d06(0x4cf)]=[];}[_0x53b42f(0x217)](_0x1be7a8){const _0x126faa=_0x53b42f,_0x46b3ec=this['_compressMutationService'][_0x126faa(0x45e)][_0x126faa(0x355)](this[_0x126faa(0x2d5)][_0x126faa(0x45e)][_0x126faa(0x3b9)]()[_0x126faa(0x248)])(_0x1be7a8[_0x126faa(0x21b)],null)||_0x1be7a8['mutations'],_0x37d790={..._0x1be7a8,'mutations':_0x46b3ec};this['_lockTransition'](),this['_updateState'](this['_state'][_0x126faa(0x437)](_0x37d790)),this['_unlockTransition']();}['_onRemoteACK'](_0xf5f13c){const _0x5fdd64=_0x53b42f;this[_0x5fdd64(0x45c)](),this[_0x5fdd64(0x141)](this[_0x5fdd64(0x379)]['onRemoteAck'](_0xf5f13c)),this['_unlockTransition']();}['_onRemoteRejected'](_0x5135b5){const _0x551ec9=_0x53b42f;this['_lockTransition'](),this[_0x551ec9(0x141)](this['_state'][_0x551ec9(0x3de)](_0x5135b5)),this[_0x551ec9(0x3b7)]();}['_onFetchMissResult'](_0x1e757b){const _0x2d912e=_0x53b42f;if(!(this[_0x2d912e(0x379)]instanceof x))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x208178=_0x1e757b[_0x2d912e(0x1af)](_0x10266e=>{const _0x4c888d=_0x2d912e,_0x48710f=this[_0x4c888d(0x2d5)]['interceptor']['fetchThroughInterceptors'](this[_0x4c888d(0x2d5)][_0x4c888d(0x45e)][_0x4c888d(0x3b9)]()[_0x4c888d(0x248)])(_0x10266e['mutations'],null)||_0x10266e[_0x4c888d(0x21b)];return{..._0x10266e,'mutations':_0x48710f};});this[_0x2d912e(0x45c)](),this['_updateState'](this[_0x2d912e(0x379)]['onMissedChangesetFetched'](_0x208178)),this['_unlockTransition']();}[_0x53b42f(0x435)](){const _0x237269=_0x53b42f;this[_0x237269(0x45c)](),this[_0x237269(0x141)](this[_0x237269(0x379)][_0x237269(0x1d9)]()),this['_unlockTransition']();}[_0x53b42f(0x1e0)](){const _0x1d6327=_0x53b42f;this[_0x1d6327(0x45c)](),this[_0x1d6327(0x141)](this[_0x1d6327(0x379)]['toggleOnline']()),this['_unlockTransition']();}async['_createInitialState'](){return new Promise(_0x3d5f57=>{const _0xf129cf=_0xe052;this['_session']['sessionStatus$'][_0xf129cf(0x454)](T['take'](0x1))[_0xf129cf(0x492)](async _0x342e49=>{_0x3d5f57(await this['_createInitialStateImpl'](_0x342e49===W['ONLINE']));});});}['_createHandler'](){const _0x9ea427=_0x53b42f,_0x31722e=this[_0x9ea427(0x348)];return{'onStateChange':(_0x198bcf,_0x259feb)=>{const _0x4337e7=_0x9ea427;if(_0x198bcf!==this[_0x4337e7(0x379)])throw new Error(_0x4337e7(0x2ba)+_0x198bcf['status']+_0x4337e7(0x3fd)+_0x259feb[_0x4337e7(0x2a7)]+'\x0aCurrent:\x20'+this[_0x4337e7(0x379)][_0x4337e7(0x2a7)]);this['_updateState'](_0x259feb);},'onSendChangeset':_0x382907=>{const _0x407f92=_0x9ea427,_0xd4ffab={'eventID':u['CollaborationEvent'][_0x407f92(0x315)],'data':{'unitID':_0x382907['unitID'],'unitType':this[_0x407f92(0x2fa)],'changeset':_0x382907,'memberID':this[_0x407f92(0x3e8)][_0x407f92(0x1b1)]()}};this[_0x407f92(0x3e8)][_0x407f92(0x279)](_0xd4ffab,this['unitID']);},'onMissingChangesets':({from:_0xd7f2e6,to:_0x541a6d})=>{const _0x45a022=_0x9ea427;this[_0x45a022(0x42f)]['debug']('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0xd7f2e6+_0x45a022(0x1e3)+_0x541a6d);const _0x4fe19f={'eventID':u[_0x45a022(0x3fe)][_0x45a022(0x2c9)],'data':{'unitID':_0x31722e,'unitType':this['_type'],'from':_0xd7f2e6,'to':_0x541a6d}};this[_0x45a022(0x3e8)][_0x45a022(0x279)](_0x4fe19f,this['unitID']);}};}async[_0x53b42f(0x212)](_0x22df77){const _0x35b7f7=_0x53b42f;var _0x292f3b,_0xa9eb41;const _0x4a72cb=await this[_0x35b7f7(0x33e)][_0x35b7f7(0x3ea)](this[_0x35b7f7(0x348)]),_0x3a6422=(_0x292f3b=_0x4a72cb==null?void 0x0:_0x4a72cb[_0x35b7f7(0x21b)])!=null?_0x292f3b:[],_0x397dfe=(_0xa9eb41=_0x4a72cb==null?void 0x0:_0x4a72cb['awaitingChangeset'])!=null?_0xa9eb41:null,_0x53a027=this['unitID'];try{this['_replayCachedMutations'](_0x397dfe,_0x3a6422);}catch(_0x3c62f2){this['_logService'][_0x35b7f7(0x150)](_0x3c62f2);}const _0x297c5f=this['_createHandler']();if(_0x22df77){const _0x10f22e=bt(this[_0x35b7f7(0x45d)],_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);return _0x10f22e instanceof $?_0x10f22e[_0x35b7f7(0x15c)]():(_0x10f22e instanceof H||_0x10f22e instanceof k)&&_0x10f22e[_0x35b7f7(0x497)](),_0x10f22e;}return this[_0x35b7f7(0x45d)][_0x35b7f7(0x477)](B,_0x53a027,this[_0x35b7f7(0x2fa)],_0x397dfe,_0x3a6422,_0x297c5f);}['_replayCachedMutations'](_0x30a387,_0x13add7){const _0x3f3339=_0x53b42f;var _0x553a7e,_0x5535ef;const _0x2603dc=this[_0x3f3339(0x2d5)][_0x3f3339(0x45e)][_0x3f3339(0x355)](this['_compressMutationService'][_0x3f3339(0x45e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x553a7e=_0x2603dc((_0x30a387==null?void 0x0:_0x30a387[_0x3f3339(0x21b)])||[],null))==null||_0x553a7e[_0x3f3339(0x421)](_0x51d8de=>this['_commandService'][_0x3f3339(0x1ee)](_0x51d8de['id'],_0x51d8de['params'])),(_0x5535ef=_0x2603dc(_0x13add7||[],null))==null||_0x5535ef[_0x3f3339(0x421)](_0x472e47=>this[_0x3f3339(0x188)][_0x3f3339(0x1ee)](_0x472e47['id'],_0x472e47[_0x3f3339(0x17b)]));}};me=Ee([I(0x3,h[_0x53b42f(0x295)](h['Injector'])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u['RevisionService'])),I(0x8,a[_0x53b42f(0x4c8)]),I(0x9,a['ICommandService']),I(0xa,N[_0x53b42f(0x288)]),I(0xb,a[_0x53b42f(0x37e)]),I(0xc,h[_0x53b42f(0x420)](pe))],me);let Ue=class extends me{constructor(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x543a69,_0x51bf8a,_0x3dba87,_0x3c4c95,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583){const _0x53d4b4=_0x53b42f;super(_0x1c9596,_0x5c741f,_0x1d06c9,_0x9261f9,_0x137d91,_0x1fa4dd,_0x38dbb3,_0x12f52a,_0x7c18d7,_0x4b71ad,_0x15c8f3,_0x5cbe71,_0x2ed583),this[_0x53d4b4(0x348)]=_0x1c9596,this[_0x53d4b4(0x20c)]=_0x5c741f,this[_0x53d4b4(0x140)]=_0x1d06c9,this[_0x53d4b4(0x2ae)]=_0x543a69,this[_0x53d4b4(0x47b)]=_0x51bf8a,this[_0x53d4b4(0x384)]=_0x3dba87,this[_0x53d4b4(0x41f)]=_0x3c4c95;}[_0x53b42f(0x17d)](){const _0x31bfbb=_0x53b42f,_0x81de06=super[_0x31bfbb(0x17d)]();return _0x81de06['onTransformIME']=_0x12dca2=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x3ec)](_0x12dca2),_0x81de06[_0x31bfbb(0x1cd)]=_0x133f09=>this[_0x31bfbb(0x384)][_0x31bfbb(0x438)](_0x133f09),_0x81de06[_0x31bfbb(0x417)]=_0x49771c=>this[_0x31bfbb(0x41f)][_0x31bfbb(0x2cb)](_0x49771c),_0x81de06[_0x31bfbb(0x31f)]=_0x379143=>this[_0x31bfbb(0x47b)][_0x31bfbb(0x168)](_0x379143),_0x81de06;}async[_0x53b42f(0x243)](){const _0x550cf1=_0x53b42f,_0x42114a=await super['_init']();return this[_0x550cf1(0x2ae)][_0x550cf1(0x351)]['pipe'](g[_0x550cf1(0x436)](this['dispose$']))[_0x550cf1(0x492)](_0x1b4b30=>{const _0x579482=_0x550cf1;if(_0x1b4b30==null)return;const {unitId:_0x1f20cd,redoState:_0x3667c3,commandId:_0x498c1b}=_0x1b4b30;if(_0x1f20cd!==this[_0x579482(0x348)])return;const _0xf55923={'id':_0x498c1b,'type':a['CommandType'][_0x579482(0x1d3)],'params':{'unitId':_0x1f20cd,'actions':_0x3667c3[_0x579482(0x2c1)],'textRanges':null}};this[_0x579482(0x170)](_0xf55923);}),_0x42114a;}};Ue=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h['Inject'](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u[_0x53b42f(0x2b2)])),I(0x6,h[_0x53b42f(0x295)](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](M[_0x53b42f(0x30a)])),I(0x9,h[_0x53b42f(0x295)](ve)),I(0xa,h['Inject'](ge)),I(0xb,h[_0x53b42f(0x295)](Fe)),I(0xc,a[_0x53b42f(0x4c8)]),I(0xd,a[_0x53b42f(0x1c5)]),I(0xe,N[_0x53b42f(0x288)]),I(0xf,a['IPermissionService']),I(0x10,h[_0x53b42f(0x420)](pe))],Ue);let ye=class extends me{constructor(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0x5bee76,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0){const _0x205814=_0x53b42f;super(_0x45f799,_0x3bdacc,_0x446359,_0x10eedc,_0x2bdcb1,_0xe0a6c2,_0x33bc32,_0xb17beb,_0xcb1c90,_0x56d450,_0x1d3694,_0x262bd8,_0x4360e0),this[_0x205814(0x348)]=_0x45f799,this['type']=_0x3bdacc,this['session']=_0x446359,this[_0x205814(0x21e)]=_0x5bee76;}['_createHandler'](){const _0x7d4342=_0x53b42f,_0x2a4e99=super['_createHandler']();return _0x2a4e99['onTransformSelections']=_0xc550af=>this[_0x7d4342(0x21e)][_0x7d4342(0x438)](_0xc550af),_0x2a4e99;}async[_0x53b42f(0x243)](){const _0x39a605=_0x53b42f,_0x277a2b=await super['_init']();return this[_0x39a605(0x1e9)](this[_0x39a605(0x188)]['onCommandExecuted']((_0x5955da,_0xdb43ec)=>{const _0x4d1370=_0x39a605;if(_0x5955da[_0x4d1370(0x20c)]!==a[_0x4d1370(0x2b8)][_0x4d1370(0x1d3)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x19b)]||_0xdb43ec!=null&&_0xdb43ec[_0x4d1370(0x43b)])return;const _0x4b196a=_0x5955da[_0x4d1370(0x17b)];if((_0x4b196a==null?void 0x0:_0x4b196a[_0x4d1370(0x21a)])!==this[_0x4d1370(0x348)])return;const _0x5a7a7a=_0x5955da,_0x352fb0=this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)]['fetchThroughInterceptors'](this[_0x4d1370(0x2d5)][_0x4d1370(0x45e)][_0x4d1370(0x3b9)]()[_0x4d1370(0x349)])([_0x5a7a7a],null)||[_0x5a7a7a];this[_0x4d1370(0x170)](_0x352fb0[0x0]);})),_0x277a2b;}};ye=Ee([I(0x3,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),I(0x4,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),I(0x5,h[_0x53b42f(0x295)](u['CompressMutationService'])),I(0x6,h['Inject'](a[_0x53b42f(0x1ba)])),I(0x7,h[_0x53b42f(0x295)](u[_0x53b42f(0x4c6)])),I(0x8,h[_0x53b42f(0x295)](fe)),I(0x9,a['ILogService']),I(0xa,a[_0x53b42f(0x1c5)]),I(0xb,N[_0x53b42f(0x288)]),I(0xc,a[_0x53b42f(0x37e)]),I(0xd,h[_0x53b42f(0x420)](pe))],ye);const et=[_0x53b42f(0x224),'jiqing500','verdancy600',_0x53b42f(0x20f),_0x53b42f(0x44b),_0x53b42f(0x4ac)];class Ve extends a[_0x53b42f(0x18e)]{constructor(){const _0x2bda24=_0x53b42f;super(...arguments),d(this,_0x2bda24(0x16b),new Map()),d(this,'_colorIndex',0x0);}['assignAColorForMemberID'](_0xddd9ab){const _0x1e21da=_0x53b42f;if(this[_0x1e21da(0x16b)][_0x1e21da(0x378)](_0xddd9ab))return this['_assignedColors'][_0x1e21da(0x3d4)](_0xddd9ab);const _0x2f056a=et[this['_colorIndex']];return this[_0x1e21da(0x443)]=(this[_0x1e21da(0x443)]+0x1)%et[_0x1e21da(0x419)],this['_assignedColors'][_0x1e21da(0x2e0)](_0xddd9ab,_0x2f056a),_0x2f056a;}}var ws=Object[_0x53b42f(0x38a)],Ls=Object[_0x53b42f(0x2a8)],Ps=(_0x366b2a,_0x4ea6bd,_0x4124a5,_0x3fe4d1)=>{const _0x4be10b=_0x53b42f;for(var _0x5b648b=_0x3fe4d1>0x1?void 0x0:_0x3fe4d1?Ls(_0x4ea6bd,_0x4124a5):_0x4ea6bd,_0x396d48=_0x366b2a[_0x4be10b(0x419)]-0x1,_0xa368b4;_0x396d48>=0x0;_0x396d48--)(_0xa368b4=_0x366b2a[_0x396d48])&&(_0x5b648b=(_0x3fe4d1?_0xa368b4(_0x4ea6bd,_0x4124a5,_0x5b648b):_0xa368b4(_0x5b648b))||_0x5b648b);return _0x3fe4d1&&_0x5b648b&&ws(_0x4ea6bd,_0x4124a5,_0x5b648b),_0x5b648b;},q=(_0x32ad99,_0x38ef02)=>(_0x211579,_0x1dd727)=>_0x38ef02(_0x211579,_0x1dd727,_0x32ad99);function _0xe052(_0x99e822,_0x2a01ec){const _0x3fcd71=_0x3fcd();return _0xe052=function(_0xe052ad,_0x7319f3){_0xe052ad=_0xe052ad-0x131;let _0x5befef=_0x3fcd71[_0xe052ad];return _0x5befef;},_0xe052(_0x99e822,_0x2a01ec);}const Us=0x12c,ys=0x64,Ms=()=>{let _0x1fa06b=[],_0x2ff4ba=!0x1;return _0x1afa47=>{_0x1fa06b['push'](_0x1afa47),_0x2ff4ba||(_0x2ff4ba=!0x0,setTimeout(()=>{_0x1fa06b['forEach'](_0x15a0f4=>_0x15a0f4()),_0x1fa06b=[],_0x2ff4ba=!0x1;}));};};let Me=class extends a[_0x53b42f(0x3a5)]{constructor(_0x2510e6,_0x5730aa,_0x207a14,_0x2ef029,_0xa2ca54,_0x1af9cd,_0x1aff88,_0x278355){const _0x39eca4=_0x53b42f;super(),d(this,_0x39eca4(0x4e5),!0x1),d(this,_0x39eca4(0x243),!0x1),d(this,_0x39eca4(0x210),new g[(_0x39eca4(0x28a))](new Map())),d(this,_0x39eca4(0x199),this[_0x39eca4(0x210)][_0x39eca4(0x1d6)]()),d(this,_0x39eca4(0x22e),new g[(_0x39eca4(0x28a))]([])),d(this,_0x39eca4(0x1f0),this[_0x39eca4(0x22e)][_0x39eca4(0x454)](g[_0x39eca4(0x228)](Us))),d(this,'_updateLocalCursor',He((_0x258fbe,_0x1153c7)=>{const _0x4f3255=_0x39eca4,_0x2facae={'eventID':u[_0x4f3255(0x3fe)][_0x4f3255(0x4e1)],'data':{'unitID':this[_0x4f3255(0x348)],'memberID':this[_0x4f3255(0x3e8)][_0x4f3255(0x1b1)](),'selection':Ye[_0x4f3255(0x2ce)](_0x258fbe,_0x1153c7[_0x4f3255(0x478)])}};this[_0x4f3255(0x3e8)][_0x4f3255(0x279)](_0x2facae,this[_0x4f3255(0x348)]);},ys)),(this[_0x39eca4(0x348)]=_0x2510e6,this['_session']=_0x5730aa,this['_injector']=_0x207a14,this['_colorAssignService']=_0x2ef029,this['_memberService']=_0xa2ca54,this[_0x39eca4(0x49a)]=_0x1af9cd,this[_0x39eca4(0x188)]=_0x1aff88,this[_0x39eca4(0x179)]=_0x278355);}get[_0x53b42f(0x37b)](){const _0x9d66a4=_0x53b42f;return this[_0x9d66a4(0x210)][_0x9d66a4(0x47e)]();}get[_0x53b42f(0x34e)](){const _0x119a60=_0x53b42f;return this[_0x119a60(0x22e)][_0x119a60(0x47e)]();}[_0x53b42f(0x4df)](){const _0x2b3395=_0x53b42f;super[_0x2b3395(0x4df)](),this[_0x2b3395(0x210)]['next'](new Map()),this[_0x2b3395(0x210)][_0x2b3395(0x146)](),this[_0x2b3395(0x22e)][_0x2b3395(0x414)]([]),this['_roomMembers$']['complete']();}[_0x53b42f(0x433)](){const _0x1d7f32=_0x53b42f;this[_0x1d7f32(0x243)]||(this[_0x1d7f32(0x243)]=!0x0,this[_0x1d7f32(0x3e8)]['sessionStatus$'][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))['subscribe'](_0x1180bc=>{const _0x24fe50=_0x1d7f32;_0x1180bc===W[_0x24fe50(0x4c3)]?this[_0x24fe50(0x1e0)]():this[_0x24fe50(0x435)]();}),this['_session'][_0x1d7f32(0x255)][_0x1d7f32(0x454)](g[_0x1d7f32(0x436)](this[_0x1d7f32(0x35f)]))[_0x1d7f32(0x492)](_0x3eaf5c=>{const _0x2cc510=_0x1d7f32,_0x2d834c=_0x3eaf5c[_0x2cc510(0x428)];_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x4e1)]&&this[_0x2cc510(0x4b7)](_0x3eaf5c),_0x2d834c===u[_0x2cc510(0x3fe)][_0x2cc510(0x177)]&&this[_0x2cc510(0x213)](_0x3eaf5c);}),this[_0x1d7f32(0x1b0)](),this[_0x1d7f32(0x1e9)](this[_0x1d7f32(0x188)][_0x1d7f32(0x43e)](_0x3356ce=>{const _0x2c4235=_0x1d7f32;if(this[_0x2c4235(0x4e5)]&&_0x3356ce['id']===E[_0x2c4235(0x263)]['id']&&_0x3356ce['params']['unitId']===this[_0x2c4235(0x348)]){const _0x141e0c=_0x3356ce['params'];this['_updateLocalCursor'](_0x141e0c[_0x2c4235(0x37a)],_0x141e0c[_0x2c4235(0x252)][0x0]);}})));}[_0x53b42f(0x4b7)](_0x272c8b){const _0x16d2a7=_0x53b42f;var _0x2441ef,_0x5c689a;const {memberID:_0x1a0b5e,selection:_0x5b23d6}=_0x272c8b[_0x16d2a7(0x169)],{sheetName:_0x2df720,range:_0x155d1f}=Ye[_0x16d2a7(0x383)](_0x5b23d6),_0x3194ec={'name':(_0x5c689a=(_0x2441ef=this[_0x16d2a7(0x4ae)][_0x16d2a7(0x4b5)](this['unitID'],_0x1a0b5e))==null?void 0x0:_0x2441ef[_0x16d2a7(0x462)])!=null?_0x5c689a:_0x16d2a7(0x17f),'range':this[_0x16d2a7(0x2de)](_0x2df720,_0x155d1f),'sheetID':_0x2df720,'color':this[_0x16d2a7(0x1a8)]['assignAColorForMemberID'](_0x1a0b5e),'selection':_0x5b23d6},_0x47bd81=this[_0x16d2a7(0x37b)];_0x47bd81['set'](_0x1a0b5e,_0x3194ec),this['_cursorInfo$'][_0x16d2a7(0x414)](_0x47bd81);}['_onCursorDelete'](_0x24a2a1){const _0x1b4bf6=_0x53b42f,{memberID:_0x148b93}=_0x24a2a1[_0x1b4bf6(0x169)],_0x523150=this[_0x1b4bf6(0x37b)];_0x523150[_0x1b4bf6(0x35b)](_0x148b93),this[_0x1b4bf6(0x210)]['next'](_0x523150);}[_0x53b42f(0x2de)](_0x4fa6cb,_0x898b21){const _0x30653f=_0x53b42f;var _0x31d2e1,_0x29fa90;const _0x193861=(_0x29fa90=(_0x31d2e1=this[_0x30653f(0x49a)][_0x30653f(0x359)](this[_0x30653f(0x348)]))==null?void 0x0:_0x31d2e1[_0x30653f(0x475)](_0x4fa6cb))==null?void 0x0:_0x29fa90[_0x30653f(0x2c3)]();return(_0x193861==null?void 0x0:_0x193861['find'](_0x38fdb2=>a[_0x30653f(0x471)][_0x30653f(0x46c)](_0x38fdb2,_0x898b21)))||_0x898b21;}[_0x53b42f(0x1b0)](){const _0x88344d=_0x53b42f,_0x1a2397=new a[(_0x88344d(0x4a8))](),_0x28af22=Ms(),_0x51071a=()=>{const _0x1c1e94=_0x88344d;_0x1a2397[_0x1c1e94(0x4df)]();const _0x44bcb3=(_0xf9b00e,_0x47f5ac,_0xd0ae07,_0x3ff46a)=>{const _0x25c346=_0x1c1e94;let _0x551f77=[];switch(_0xf9b00e['id']){case E[_0x25c346(0x2a5)][_0x25c346(0x282)]:{_0x551f77=E[_0x25c346(0x2b6)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x18b)]:{_0x551f77=E[_0x25c346(0x459)](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x4c2)]:{_0x551f77=E[_0x25c346(0x344)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x399)]:{_0x551f77=E[_0x25c346(0x2d2)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x287)]:{_0x551f77=E['handleInsertRangeMoveRight'](_0xf9b00e,_0x3ff46a);break;}case E['EffectRefRangId'][_0x25c346(0x2f8)]:{_0x551f77=E[_0x25c346(0x16c)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x232)]:{_0x551f77=E[_0x25c346(0x377)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)][_0x25c346(0x4c9)]:{_0x551f77=E[_0x25c346(0x147)](_0xf9b00e,_0x3ff46a);break;}case E[_0x25c346(0x2a5)]['RemoveRowCommandId']:{_0x551f77=E[_0x25c346(0x432)](_0xf9b00e,_0x3ff46a);break;}}const _0x5b7999=E['runRefRangeMutations'](_0x551f77,_0x3ff46a),_0x18ba8e=this[_0x25c346(0x37b)][_0x25c346(0x3d4)](_0x47f5ac);if(_0x18ba8e&&_0x5b7999){const _0x356af6={..._0x18ba8e,'range':_0x5b7999};this[_0x25c346(0x37b)][_0x25c346(0x2e0)](_0x47f5ac,_0x356af6),_0x28af22(()=>{const _0x28d0ad=_0x25c346,_0x12a5d8=this[_0x28d0ad(0x179)]['registerRefRange'](_0x5b7999,_0xd3a816=>(_0x12a5d8['dispose'](),_0x44bcb3(_0xd3a816,_0x47f5ac,_0xd0ae07,_0x5b7999)));_0x1a2397[_0x28d0ad(0x1e5)](_0x12a5d8);});}return{'redos':[],'undos':[]};};this[_0x1c1e94(0x37b)][_0x1c1e94(0x421)]((_0x2190ec,_0x77411c)=>{const _0x34045b=_0x1c1e94,{range:_0x1b5942,sheetID:_0x4a609f}=_0x2190ec,_0x54153=this[_0x34045b(0x179)][_0x34045b(0x2fc)](_0x1b5942,_0x176d22=>(_0x54153[_0x34045b(0x4df)](),_0x44bcb3(_0x176d22,_0x77411c,_0x4a609f,_0x1b5942)));_0x1a2397[_0x34045b(0x1e5)](_0x54153);});};this[_0x88344d(0x1e9)](a[_0x88344d(0x1bb)](this['_cursorInfo$'][_0x88344d(0x492)](()=>{_0x51071a();})));}[_0x53b42f(0x1e0)](){const _0x1e5bd1=_0x53b42f;var _0x476aee,_0x422403;if(this[_0x1e5bd1(0x4e5)]=!0x0,((_0x476aee=this['_univerInstanceService'][_0x1e5bd1(0x41e)]())==null?void 0x0:_0x476aee[_0x1e5bd1(0x1f9)]())!==this['unitID'])return;const _0x1fa637=(_0x422403=this[_0x1e5bd1(0x45d)]['get'](E[_0x1e5bd1(0x448)])[_0x1e5bd1(0x369)]())==null?void 0x0:_0x422403[0x0],_0x462fa6=this[_0x1e5bd1(0x49a)][_0x1e5bd1(0x171)](a[_0x1e5bd1(0x142)][_0x1e5bd1(0x164)])['getActiveSheet']();_0x1fa637&&_0x462fa6&&this['_updateLocalCursor'](_0x462fa6['getSheetId'](),_0x1fa637);}[_0x53b42f(0x435)](){const _0x3f9623=_0x53b42f;this[_0x3f9623(0x4e5)]=!0x1;}};Me=Ps([q(0x2,h[_0x53b42f(0x295)](h['Injector'])),q(0x3,h[_0x53b42f(0x295)](Ve)),q(0x4,h['Inject'](G)),q(0x5,a[_0x53b42f(0x390)]),q(0x6,a[_0x53b42f(0x1c5)]),q(0x7,h[_0x53b42f(0x295)](E[_0x53b42f(0x16a)]))],Me);var Ns=Object[_0x53b42f(0x38a)],As=Object[_0x53b42f(0x2a8)],js=(_0x361f6c,_0x328796,_0x3cd9b8,_0x4150eb)=>{const _0x1bfa5f=_0x53b42f;for(var _0x4f1179=_0x4150eb>0x1?void 0x0:_0x4150eb?As(_0x328796,_0x3cd9b8):_0x328796,_0xcb57ae=_0x361f6c[_0x1bfa5f(0x419)]-0x1,_0x2595e6;_0xcb57ae>=0x0;_0xcb57ae--)(_0x2595e6=_0x361f6c[_0xcb57ae])&&(_0x4f1179=(_0x4150eb?_0x2595e6(_0x328796,_0x3cd9b8,_0x4f1179):_0x2595e6(_0x4f1179))||_0x4f1179);return _0x4150eb&&_0x4f1179&&Ns(_0x328796,_0x3cd9b8,_0x4f1179),_0x4f1179;},V=(_0x29d5bb,_0x13b3d6)=>(_0x58c7e6,_0x34565a)=>_0x13b3d6(_0x58c7e6,_0x34565a,_0x29d5bb);const $s=0x12c,Hs=0x64;let Ne=class extends a[_0x53b42f(0x3a5)]{constructor(_0x13dbb9,_0x3790ff,_0x4f0694,_0x2b8760,_0x186c42,_0xd7f7ea,_0x220261,_0x3b9c60,_0x44847a){const _0xa6d173=_0x53b42f;super(),d(this,_0xa6d173(0x4e5),!0x1),d(this,_0xa6d173(0x243),!0x1),d(this,_0xa6d173(0x210),new g[(_0xa6d173(0x28a))](new Map())),d(this,'cursorInfo$',this[_0xa6d173(0x210)][_0xa6d173(0x1d6)]()),d(this,_0xa6d173(0x22e),new g[(_0xa6d173(0x28a))]([])),d(this,_0xa6d173(0x1f0),this[_0xa6d173(0x22e)][_0xa6d173(0x454)](g[_0xa6d173(0x228)]($s))),d(this,_0xa6d173(0x3d0),He(_0x318bbb=>{const _0x5b7d4c=_0xa6d173,_0x172b84={'eventID':u[_0x5b7d4c(0x3fe)][_0x5b7d4c(0x4e1)],'data':{'unitID':this[_0x5b7d4c(0x348)],'memberID':this['_session'][_0x5b7d4c(0x1b1)](),'selection':Ct(_0x318bbb)}};this['_session'][_0x5b7d4c(0x279)](_0x172b84,this[_0x5b7d4c(0x348)]);},Hs)),(this['unitID']=_0x13dbb9,this['_session']=_0x3790ff,this[_0xa6d173(0x45d)]=_0x4f0694,this['_colorAssignService']=_0x2b8760,this['_memberService']=_0x186c42,this['_syncEditingCollabCursorService']=_0xd7f7ea,this[_0xa6d173(0x2f1)]=_0x220261,this[_0xa6d173(0x49a)]=_0x3b9c60,this[_0xa6d173(0x188)]=_0x44847a);}get[_0x53b42f(0x37b)](){const _0x195b73=_0x53b42f;return this[_0x195b73(0x210)][_0x195b73(0x47e)]();}get['roomMembers'](){const _0x41f8d6=_0x53b42f;return this[_0x41f8d6(0x22e)][_0x41f8d6(0x47e)]();}['dispose'](){const _0x2b37f1=_0x53b42f;super[_0x2b37f1(0x4df)](),this['_cursorInfo$'][_0x2b37f1(0x414)](new Map()),this[_0x2b37f1(0x210)][_0x2b37f1(0x146)](),this['_roomMembers$'][_0x2b37f1(0x414)]([]),this[_0x2b37f1(0x22e)][_0x2b37f1(0x146)]();}[_0x53b42f(0x433)](){const _0x35fc6e=_0x53b42f;this[_0x35fc6e(0x243)]||(this[_0x35fc6e(0x243)]=!0x0,this[_0x35fc6e(0x3e8)]['sessionStatus$']['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x1dfb80=>{const _0x42313b=_0x35fc6e;_0x1dfb80===W['ONLINE']?this[_0x42313b(0x1e0)]():this[_0x42313b(0x435)]();}),this[_0x35fc6e(0x3e8)][_0x35fc6e(0x255)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))['subscribe'](_0x460765=>{const _0x4ce3e9=_0x35fc6e,_0x311399=_0x460765[_0x4ce3e9(0x428)];_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x4e1)]&&this[_0x4ce3e9(0x4b7)](_0x460765),_0x311399===u[_0x4ce3e9(0x3fe)][_0x4ce3e9(0x177)]&&this[_0x4ce3e9(0x213)](_0x460765);}),this[_0x35fc6e(0x1e9)](this['_commandService'][_0x35fc6e(0x43e)](_0x424113=>{const _0x184f97=_0x35fc6e,_0x413e97=_0x424113[_0x184f97(0x17b)];_0x413e97!=null&&this['_online']&&_0x424113['id']===M[_0x184f97(0x2f6)]['id']&&_0x413e97[_0x184f97(0x21a)]===this[_0x184f97(0x348)]&&_0x413e97[_0x184f97(0x368)]===!0x1&&this['_updateLocalCursor'](_0x413e97[_0x184f97(0x29d)]);})),this[_0x35fc6e(0x496)][_0x35fc6e(0x495)]['pipe'](g[_0x35fc6e(0x436)](this[_0x35fc6e(0x35f)]))[_0x35fc6e(0x492)](_0x43ba6d=>{const _0x3fceea=_0x35fc6e;if((_0x43ba6d==null?void 0x0:_0x43ba6d[_0x3fceea(0x348)])!==this[_0x3fceea(0x348)])return;const _0x504a78={'eventID':u[_0x3fceea(0x3fe)][_0x3fceea(0x4e1)],'data':_0x43ba6d};this['_onCursorUpdate'](_0x504a78);}),this[_0x35fc6e(0x1e9)](this[_0x35fc6e(0x188)][_0x35fc6e(0x43e)](_0x3d5029=>{const _0x3e67ad=_0x35fc6e;if(_0x3d5029[_0x3e67ad(0x17b)]==null)return;const _0x36488a=_0x3d5029['params'];if(_0x3d5029['id']!==M[_0x3e67ad(0x30f)]['id']||_0x36488a['unitId']!==this[_0x3e67ad(0x348)])return;const _0x40b55d={'id':'doc.mutation.rich-text-editing','params':_0x36488a},_0x2ecf70=this[_0x3e67ad(0x37b)];for(const [_0x35ad7b,_0x35d1a9]of _0x2ecf70){const _0xf50551={'id':_0x3e67ad(0x1a1),'params':{'unitId':this[_0x3e67ad(0x348)],'actions':null,'textRanges':_0x35d1a9[_0x3e67ad(0x29d)]}},_0x2705b0=this[_0x3e67ad(0x2f1)][_0x3e67ad(0x412)](_0x40b55d,_0xf50551,!0x1);if(u[_0x3e67ad(0x231)](_0x2705b0))throw _0x2705b0['error'];_0x2ecf70[_0x3e67ad(0x2e0)](_0x35ad7b,{..._0x35d1a9,'ranges':_0x2705b0[_0x3e67ad(0x2c7)][_0x3e67ad(0x17b)][_0x3e67ad(0x461)]});}queueMicrotask(()=>{const _0x1cdcf5=_0x3e67ad;this[_0x1cdcf5(0x210)][_0x1cdcf5(0x414)](_0x2ecf70);});})));}[_0x53b42f(0x4b7)](_0x429c70){const _0x1fa056=_0x53b42f;var _0x4c8f31,_0x358530;const {memberID:_0x1e22d7,selection:_0x3d8893}=_0x429c70['data'],_0x14672f=fs(_0x3d8893),_0x5c3e57=(_0x358530=(_0x4c8f31=this[_0x1fa056(0x4ae)][_0x1fa056(0x4b5)](this[_0x1fa056(0x348)],_0x1e22d7))==null?void 0x0:_0x4c8f31[_0x1fa056(0x462)])!=null?_0x358530:'Unknown\x20user',_0x348fb9={'color':this['_colorAssignService'][_0x1fa056(0x410)](_0x1e22d7),'name':_0x5c3e57,'ranges':_0x14672f},_0x29759b=this[_0x1fa056(0x37b)];_0x29759b[_0x1fa056(0x2e0)](_0x1e22d7,_0x348fb9),this[_0x1fa056(0x210)]['next'](_0x29759b);}[_0x53b42f(0x213)](_0x2bb035){const _0x506aec=_0x53b42f,{memberID:_0x3b26e5}=_0x2bb035[_0x506aec(0x169)],_0x5b971f=this[_0x506aec(0x37b)];_0x5b971f[_0x506aec(0x35b)](_0x3b26e5),this[_0x506aec(0x210)]['next'](_0x5b971f);}[_0x53b42f(0x1e0)](){const _0x3a9467=_0x53b42f;var _0x38280f;if(this[_0x3a9467(0x4e5)]=!0x0,((_0x38280f=this[_0x3a9467(0x49a)]['getFocusedUnit']())==null?void 0x0:_0x38280f['getUnitId']())!==this[_0x3a9467(0x348)])return;const _0xd91035=this[_0x3a9467(0x45d)][_0x3a9467(0x3d4)](M[_0x3a9467(0x1de)])[_0x3a9467(0x369)](),_0xc21f15=_0xd91035==null?void 0x0:_0xd91035['map'](M[_0x3a9467(0x453)]);Array[_0x3a9467(0x4af)](_0xc21f15)&&_0xc21f15[_0x3a9467(0x419)]>0x0&&this[_0x3a9467(0x3d0)](_0xc21f15);}[_0x53b42f(0x435)](){const _0x27a77d=_0x53b42f;this[_0x27a77d(0x4e5)]=!0x1;}};Ne=js([V(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),V(0x3,h['Inject'](Ve)),V(0x4,h['Inject'](G)),V(0x5,h[_0x53b42f(0x295)](Fe)),V(0x6,u[_0x53b42f(0x25a)]),V(0x7,a[_0x53b42f(0x390)]),V(0x8,a[_0x53b42f(0x1c5)])],Ne);var xs=Object[_0x53b42f(0x38a)],ks=Object[_0x53b42f(0x2a8)],Bs=(_0x3fff50,_0x38b43b,_0x2d6049,_0x41771a)=>{const _0x4e5781=_0x53b42f;for(var _0x3346af=_0x41771a>0x1?void 0x0:_0x41771a?ks(_0x38b43b,_0x2d6049):_0x38b43b,_0x1cfaf1=_0x3fff50[_0x4e5781(0x419)]-0x1,_0x44e95e;_0x1cfaf1>=0x0;_0x1cfaf1--)(_0x44e95e=_0x3fff50[_0x1cfaf1])&&(_0x3346af=(_0x41771a?_0x44e95e(_0x38b43b,_0x2d6049,_0x3346af):_0x44e95e(_0x3346af))||_0x3346af);return _0x41771a&&_0x3346af&&xs(_0x38b43b,_0x2d6049,_0x3346af),_0x3346af;},Oe=(_0x43d041,_0x5c8043)=>(_0x4a7c65,_0x186e94)=>_0x5c8043(_0x4a7c65,_0x186e94,_0x43d041);let J=class extends a[_0x53b42f(0x3a5)]{constructor(_0x3ff22c,_0x413195,_0x2299c8){const _0x5fc640=_0x53b42f;super(),d(this,'_entities',new Map()),d(this,_0x5fc640(0x44d),new g[(_0x5fc640(0x298))]()),(this[_0x5fc640(0x49a)]=_0x3ff22c,this['_injector']=_0x413195,this[_0x5fc640(0x44f)]=_0x2299c8,this[_0x5fc640(0x243)]());}[_0x53b42f(0x4df)](){const _0x4eed34=_0x53b42f;super[_0x4eed34(0x4df)](),this[_0x4eed34(0x44d)][_0x4eed34(0x146)](),this['_entities'][_0x4eed34(0x421)](_0x3f1532=>_0x3f1532[_0x4eed34(0x4df)]());}[_0x53b42f(0x4d9)](_0x5e82a9){const _0x209fb3=_0x53b42f;return this['_entities']['has'](_0x5e82a9)?this['_entities']['get'](_0x5e82a9)[_0x209fb3(0x199)]:this['_entityInit$'][_0x209fb3(0x454)](g['filter'](_0x3aecf8=>_0x3aecf8[_0x209fb3(0x348)]===_0x5e82a9),g[_0x209fb3(0x178)](_0x7606e0=>_0x7606e0[_0x209fb3(0x199)]));}[_0x53b42f(0x243)](){const _0x5644c8=_0x53b42f;this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a[_0x5644c8(0x142)]['UNIVER_SHEET'])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](async _0x43b221=>{const _0x3ffd01=_0x5644c8,_0xd13fea=_0x43b221[_0x3ffd01(0x1f9)](),_0x14a7be=await this[_0x3ffd01(0x455)](_0xd13fea);this['_entityInit$'][_0x3ffd01(0x414)](_0x14a7be),this[_0x3ffd01(0x372)][_0x3ffd01(0x2e0)](_0xd13fea,_0x14a7be);}),this[_0x5644c8(0x49a)][_0x5644c8(0x4b6)](a['UniverInstanceType'][_0x5644c8(0x220)])[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))[_0x5644c8(0x454)](g[_0x5644c8(0x2f0)](_0x359267=>!_0x359267[_0x5644c8(0x1f9)]()[_0x5644c8(0x19e)]('__')))[_0x5644c8(0x492)](async _0x2d26bd=>{const _0xd245c1=_0x5644c8,_0x10de9b=_0x2d26bd['getUnitId'](),_0x254599=await this[_0xd245c1(0x2c0)](_0x10de9b);this[_0xd245c1(0x44d)]['next'](_0x254599),this[_0xd245c1(0x372)]['set'](_0x10de9b,_0x254599);}),g[_0x5644c8(0x221)](this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a[_0x5644c8(0x142)][_0x5644c8(0x220)]),this[_0x5644c8(0x49a)][_0x5644c8(0x160)](a['UniverInstanceType'][_0x5644c8(0x164)]))[_0x5644c8(0x454)](g[_0x5644c8(0x436)](this[_0x5644c8(0x35f)]))['subscribe'](_0x4e7649=>{const _0x169f25=_0x5644c8,_0x5ed61f=_0x4e7649[_0x169f25(0x1f9)](),_0x3f1864=this[_0x169f25(0x372)][_0x169f25(0x3d4)](_0x5ed61f);_0x3f1864&&(_0x3f1864[_0x169f25(0x4df)](),this[_0x169f25(0x372)][_0x169f25(0x35b)](_0x5ed61f));});}async['_startSheetCollabCursor'](_0x13f508){const _0x3eb0b3=_0x53b42f,_0x533739=await this['_collabSessionService'][_0x3eb0b3(0x386)](_0x13f508),_0x1e0d7c=this[_0x3eb0b3(0x45d)][_0x3eb0b3(0x477)](Me,_0x13f508,_0x533739);return _0x1e0d7c[_0x3eb0b3(0x433)](),_0x1e0d7c;}async[_0x53b42f(0x2c0)](_0x5afe23){const _0x1b9a8b=_0x53b42f,_0xb850bc=await this[_0x1b9a8b(0x44f)]['requireSession'](_0x5afe23),_0xe4c2cc=this[_0x1b9a8b(0x45d)][_0x1b9a8b(0x477)](Ne,_0x5afe23,_0xb850bc);return _0xe4c2cc[_0x1b9a8b(0x433)](),_0xe4c2cc;}};J=Bs([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],J),Oe(0x0,a[_0x53b42f(0x390)]),Oe(0x1,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),Oe(0x2,h[_0x53b42f(0x295)](exports[_0x53b42f(0x14a)]))],J);const ce=0x14,tt=0xc8,De=0x4,Fs=0x5;function Vs(_0x46a14a,_0x3839d7){const _0x265611=_0x53b42f;let {radius:_0x231f12,width:_0x572795,height:_0x3b7a39}=_0x3839d7;_0x231f12=_0x231f12!=null?_0x231f12:0x0,_0x572795=_0x572795!=null?_0x572795:0x1e,_0x3b7a39=_0x3b7a39!=null?_0x3b7a39:0x1e;let _0x221b10=0x0,_0x3a0c05=0x0,_0x4f5225=0x0;_0x221b10=_0x3a0c05=_0x4f5225=Math['min'](_0x231f12,_0x572795/0x2,_0x3b7a39/0x2),_0x46a14a['beginPath'](),_0x46a14a['moveTo'](_0x221b10,0x0),_0x46a14a['lineTo'](_0x572795-_0x3a0c05,0x0),_0x46a14a['arc'](_0x572795-_0x3a0c05,_0x3a0c05,_0x3a0c05,Math['PI']*0x3/0x2,0x0,!0x1),_0x46a14a['lineTo'](_0x572795,_0x3b7a39-_0x4f5225),_0x46a14a[_0x265611(0x35a)](_0x572795-_0x4f5225,_0x3b7a39-_0x4f5225,_0x4f5225,0x0,Math['PI']/0x2,!0x1),_0x46a14a[_0x265611(0x1fb)](0x0,_0x3b7a39),_0x46a14a[_0x265611(0x1fb)](0x0,_0x221b10),_0x46a14a[_0x265611(0x35a)](_0x221b10,_0x221b10,_0x221b10,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x46a14a[_0x265611(0x1a3)](),_0x3839d7[_0x265611(0x347)]&&(_0x46a14a['save'](),_0x46a14a['fillStyle']=_0x3839d7['fill'],_0x3839d7[_0x265611(0x4e2)]===_0x265611(0x49c)?_0x46a14a[_0x265611(0x347)](_0x265611(0x49c)):_0x46a14a[_0x265611(0x347)](),_0x46a14a[_0x265611(0x2cf)]());}class Ce extends R[_0x53b42f(0x1e2)]{constructor(_0x593c10,_0x529977){const _0x2d215d=_0x53b42f;super(_0x593c10,_0x529977),d(this,_0x2d215d(0x2f4)),d(this,_0x2d215d(0x1fd)),(this[_0x2d215d(0x2f4)]=_0x529977==null?void 0x0:_0x529977['color'],this[_0x2d215d(0x1fd)]=_0x529977==null?void 0x0:_0x529977['text']);}static[_0x53b42f(0x2e5)](_0x950eb6,_0x35a959){const _0x232ac4=_0x53b42f,{text:_0x1fc990,color:_0x29c153}=_0x35a959;_0x950eb6['save'](),_0x950eb6['font']=_0x232ac4(0x26b);const _0x183a52=_0x950eb6[_0x232ac4(0x394)](_0x1fc990)[_0x232ac4(0x270)],_0x345898=Math[_0x232ac4(0x3d6)](_0x183a52+0x2*De,tt);Vs(_0x950eb6,{'height':ce,'radius':0x4,'width':_0x345898,'fill':_0x29c153,'evented':!0x1}),_0x950eb6[_0x232ac4(0x43a)]=_0x232ac4(0x3e1);const _0x1f763f=De,_0x1c3626=ce-Fs,_0x4ec894=tt-0x2*De;if(_0x183a52>_0x4ec894){let _0x51fa75='',_0x1a30b2=0x0;for(const _0x363ba7 of _0x1fc990){const _0x265d09=_0x950eb6['measureText'](_0x363ba7)[_0x232ac4(0x270)];if(_0x1a30b2+_0x265d09<=_0x4ec894-_0x950eb6['measureText'](_0x232ac4(0x41c))[_0x232ac4(0x270)])_0x51fa75+=_0x363ba7,_0x1a30b2+=_0x265d09;else{_0x51fa75+=_0x232ac4(0x41c);break;}}_0x950eb6[_0x232ac4(0x175)](_0x51fa75,_0x1f763f,_0x1c3626);}else _0x950eb6[_0x232ac4(0x175)](_0x1fc990,_0x1f763f,_0x1c3626);_0x950eb6[_0x232ac4(0x2cf)]();}[_0x53b42f(0x16d)](_0x1e102c){Ce['drawWith'](_0x1e102c,this);}}const Ws=0x1,Gs=1.5;class Ys extends R[_0x53b42f(0x1e2)]{constructor(_0x37d48f,_0x11a8c1){const _0x1616ce=_0x53b42f;super(_0x37d48f,_0x11a8c1),d(this,_0x1616ce(0x27a)),d(this,_0x1616ce(0x1d1),!0x1),d(this,'_range'),d(this,_0x1616ce(0x2b9),''),d(this,_0x1616ce(0x1bc),_0x1616ce(0x3f5)),(_0x11a8c1&&this['setShapeProps'](_0x11a8c1),this[_0x1616ce(0x206)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x0})),this[_0x1616ce(0x3b5)][_0x1616ce(0x1e5)](()=>this[_0x1616ce(0x393)]({'hovered':!0x1})));}[_0x53b42f(0x393)](_0x245249){const _0x551d8e=_0x53b42f;var _0xbf02c9,_0x2613b9,_0x11f465,_0x5951ed,_0x113eca;this[_0x551d8e(0x27a)]=(_0xbf02c9=_0x245249[_0x551d8e(0x2f4)])!=null?_0xbf02c9:this[_0x551d8e(0x27a)],this[_0x551d8e(0x1d1)]=(_0x2613b9=_0x245249[_0x551d8e(0x46d)])!=null?_0x2613b9:this[_0x551d8e(0x1d1)],this[_0x551d8e(0x3a3)]=(_0x11f465=_0x245249['range'])!=null?_0x11f465:this[_0x551d8e(0x3a3)],this['_name']=(_0x5951ed=_0x245249[_0x551d8e(0x462)])!=null?_0x5951ed:this[_0x551d8e(0x2b9)],this[_0x551d8e(0x1bc)]=(_0x113eca=_0x245249[_0x551d8e(0x366)])!=null?_0x113eca:this['_labelPosition'],this[_0x551d8e(0x15d)]({'width':_0x245249[_0x551d8e(0x270)],'height':_0x245249[_0x551d8e(0x148)]});}['onMouseMove'](_0x4fd0f6){const _0x58e526=_0x53b42f,{row:_0x37857d,column:_0x52776c}=_0x4fd0f6;if(_0x37857d>=this[_0x58e526(0x3a3)]['startRow']&&_0x37857d<=this[_0x58e526(0x3a3)][_0x58e526(0x1a0)]&&_0x52776c>=this[_0x58e526(0x3a3)][_0x58e526(0x4e3)]&&_0x52776c<=this[_0x58e526(0x3a3)][_0x58e526(0x354)]){this[_0x58e526(0x393)]({'hovered':!0x0});return;}this[_0x58e526(0x393)]({'hovered':!0x1});}['triggerDblclick'](_0x2d8cf2){return!0x1;}[_0x53b42f(0x16d)](_0x1682c2){const _0x123143=_0x53b42f;R[_0x123143(0x184)][_0x123143(0x2e5)](_0x1682c2,{'width':this[_0x123143(0x270)],'height':this[_0x123143(0x148)],'strokeWidth':Gs,'stroke':this['_color'],'evented':!0x1}),this[_0x123143(0x1d1)]&&(_0x1682c2['save'](),_0x1682c2[_0x123143(0x404)](0x1,0x0,0x0,0x1,this[_0x123143(0x270)],this['_labelPosition']===_0x123143(0x473)?0x0:-ce),Ce[_0x123143(0x2e5)](_0x1682c2,{'text':this[_0x123143(0x2b9)],'color':this['_color']}),_0x1682c2[_0x123143(0x2cf)]());}}var Ks=Object[_0x53b42f(0x38a)],Xs=Object[_0x53b42f(0x2a8)],qs=(_0x29b75c,_0x5b685f,_0xaa602b,_0x402353)=>{const _0x4d2173=_0x53b42f;for(var _0x14acad=_0x402353>0x1?void 0x0:_0x402353?Xs(_0x5b685f,_0xaa602b):_0x5b685f,_0x1d834a=_0x29b75c[_0x4d2173(0x419)]-0x1,_0x3f121f;_0x1d834a>=0x0;_0x1d834a--)(_0x3f121f=_0x29b75c[_0x1d834a])&&(_0x14acad=(_0x402353?_0x3f121f(_0x5b685f,_0xaa602b,_0x14acad):_0x3f121f(_0x14acad))||_0x14acad);return _0x402353&&_0x14acad&&Ks(_0x5b685f,_0xaa602b,_0x14acad),_0x14acad;},le=(_0x38104d,_0x4e6261)=>(_0x4c8c26,_0x2e7449)=>_0x4e6261(_0x4c8c26,_0x2e7449,_0x38104d);const zs=0x1389;let ue=class extends a[_0x53b42f(0x3a5)]{constructor(_0x21893e,_0x50c9a4,_0x2304f4,_0x213b0c){const _0x238d2c=_0x53b42f;super(),d(this,_0x238d2c(0x3a6),new Set()),d(this,'_lastPointer',null),(this[_0x238d2c(0x491)]=_0x21893e,this[_0x238d2c(0x49a)]=_0x50c9a4,this[_0x238d2c(0x198)]=_0x2304f4,this[_0x238d2c(0x48a)]=_0x213b0c,this['_init']());}get[_0x53b42f(0x46f)](){const _0x47bab9=_0x53b42f;return this[_0x47bab9(0x198)][_0x47bab9(0x3c5)](this['_univerInstanceService'][_0x47bab9(0x171)](a['UniverInstanceType'][_0x47bab9(0x164)])['getUnitId']())[_0x47bab9(0x23d)](ee[_0x47bab9(0x425)]);}get['_unitId'](){const _0x42d389=_0x53b42f;return this['_univerInstanceService']['getCurrentUnitForType'](a[_0x42d389(0x142)][_0x42d389(0x164)])[_0x42d389(0x1f9)]();}['_init'](){const _0x5f1029=_0x53b42f;this[_0x5f1029(0x46f)][_0x5f1029(0x326)][_0x5f1029(0x454)](T['takeUntil'](this[_0x5f1029(0x35f)]),T[_0x5f1029(0x178)](_0x1ab439=>{const _0x49cf32=_0x5f1029;if(_0x1ab439){const _0xf27e6=_0x1ab439[_0x49cf32(0x37f)];return g[_0x49cf32(0x165)](this[_0x49cf32(0x491)][_0x49cf32(0x4d9)](this['_unitId']),this[_0x49cf32(0x48a)][_0x49cf32(0x3b6)])[_0x49cf32(0x454)](T[_0x49cf32(0x1af)](([_0x55c411,_0x4bd4e8])=>{const _0x2d24fb=new Map();return _0x55c411['forEach']((_0x2c52e1,_0x491f66)=>{const _0x50ba11=_0xe052;if(_0x2c52e1['sheetID']===_0xf27e6){const _0x5e6374={..._0x2c52e1};_0x5e6374[_0x50ba11(0x2f4)]=_0x4bd4e8[_0x2c52e1[_0x50ba11(0x2f4)]],_0x2d24fb[_0x50ba11(0x2e0)](_0x491f66,_0x5e6374);}}),{'skeleton':_0x1ab439,'cursors':_0x2d24fb};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x5f1029(0x492)](({skeleton:_0x4a35c6,cursors:_0x58f3f2})=>{const _0x1e0f56=_0x5f1029;this['_removeCollabCursors'](),_0x4a35c6&&this[_0x1e0f56(0x398)](_0x4a35c6,_0x58f3f2);}),this[_0x5f1029(0x46f)][_0x5f1029(0x326)]['subscribe'](_0x53d16e=>{const _0x1628a4=_0x5f1029;if(_0x53d16e==null)return;const {skeleton:_0x6e0d80}=_0x53d16e,_0x8aa9b8=this[_0x1628a4(0x198)][_0x1628a4(0x3c5)](this[_0x1628a4(0x1ea)]),{scene:_0xcabd36}=_0x8aa9b8;_0xcabd36['onPointerMoveObserver'][_0x1628a4(0x1e5)](He(_0xf6491=>{const _0x5b2f1a=_0x1628a4;var _0x1055e2,_0x3d5906;const {offsetX:_0x1bb417,offsetY:_0x59793e}=_0xf6491,{x:_0x16497b,y:_0x5a3cc7}=_0xcabd36[_0x5b2f1a(0x483)](R[_0x5b2f1a(0x4bb)]['FromArray']([_0x1bb417,_0x59793e])),{scaleX:_0x50d44c,scaleY:_0x29f600}=_0xcabd36[_0x5b2f1a(0x1e6)](),_0x439467=_0xcabd36[_0x5b2f1a(0x2f5)](ee['VIEWPORT_KEY'][_0x5b2f1a(0x4d3)]),_0x1e6c46=_0xcabd36['getScrollXYByRelativeCoords'](R[_0x5b2f1a(0x4bb)][_0x5b2f1a(0x3c4)]([_0x16497b,_0x5a3cc7]),_0x439467),_0xcf5404=_0x6e0d80['getCellPositionByOffset'](_0x1bb417,_0x59793e,_0x50d44c,_0x29f600,_0x1e6c46);((_0x1055e2=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x1055e2['column'])===_0xcf5404['column']&&((_0x3d5906=this[_0x5b2f1a(0x1da)])==null?void 0x0:_0x3d5906['row'])===_0xcf5404[_0x5b2f1a(0x145)]||this['_cursors'][_0x5b2f1a(0x421)](_0x5ea2e9=>{const _0x3a01cd=_0x5b2f1a;_0x5ea2e9[_0x3a01cd(0x22b)](_0xcf5404);});},0x64));});}[_0x53b42f(0x398)](_0x2e1cfe,_0xe0a945){const _0x36e516=_0x53b42f;var _0x40f768;const _0x4cdef1=(_0x40f768=this[_0x36e516(0x46f)]['getCurrent']())==null?void 0x0:_0x40f768[_0x36e516(0x159)];if(!_0x4cdef1)return;const _0x30dc43=this[_0x36e516(0x239)]();if(!_0x30dc43)return;this[_0x36e516(0x3a6)][_0x36e516(0x421)](_0x2a931a=>{const _0x54d90f=_0x36e516;_0x2a931a[_0x54d90f(0x361)]();});const {scene:_0x5460d7}=_0x30dc43,_0x38b998=Js(Array[_0x36e516(0x2c5)](_0xe0a945[_0x36e516(0x4d7)]()))[_0x36e516(0x1af)](_0x294a9f=>{const _0x9f26bc=_0x36e516,{color:_0x1784ed,range:_0x5c4420,name:_0x7e6bee,selection:_0x16007d,sheetID:_0x26f74a}=_0x294a9f,{startColumn:_0x30f066,startRow:_0x57629a,endColumn:_0x132ea7,endRow:_0x3faf2b}=_0x5c4420,_0x176fda=ee[_0x9f26bc(0x18f)](_0x57629a,_0x30f066,_0x5460d7,_0x4cdef1),_0x27c817=ee[_0x9f26bc(0x18f)](_0x3faf2b,_0x132ea7,_0x5460d7,_0x4cdef1),{columnHeaderHeightAndMarginTop:_0xbe28e2}=_0x4cdef1,{startX:_0x1efcaf,startY:_0x415d37}=_0x176fda,{endX:_0x3c159b,endY:_0x2282e2}=_0x27c817,_0xf406d0=_0x3c159b-_0x1efcaf,_0x436225=_0x2282e2-_0x415d37,_0x4d9851={'labelPosition':_0x415d37-_0xbe28e2>=ce?'top':_0x9f26bc(0x473),'sheetID':_0x26f74a,'range':_0x5c4420,'color':_0x1784ed,'name':_0x7e6bee,'selection':_0x16007d,'left':_0x1efcaf,'top':_0x415d37,'width':_0xf406d0,'height':_0x436225,'evented':!0x1,'zIndex':zs};return new Ys(_0x7e6bee,_0x4d9851);});_0x5460d7['addObjects'](_0x38b998,Ws),this[_0x36e516(0x3a6)]=new Set(_0x38b998);}[_0x53b42f(0x380)](){const _0x5be823=_0x53b42f;var _0x2e0874;(_0x2e0874=this['_cursors'])==null||_0x2e0874['forEach'](_0x4a85f0=>_0x4a85f0[_0x5be823(0x4df)]());}[_0x53b42f(0x239)](){const _0x32b756=_0x53b42f;return ee[_0x32b756(0x297)](this[_0x32b756(0x49a)],this[_0x32b756(0x198)]);}};ue=qs([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x353)],ue),le(0x0,h['Inject'](J)),le(0x1,a[_0x53b42f(0x390)]),le(0x2,R[_0x53b42f(0x4a5)]),le(0x3,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],ue);function Js(_0x1d6a69){const _0x383f1f=_0x53b42f,_0x3883e3=new Map();return _0x1d6a69[_0x383f1f(0x421)](_0x163cbb=>{const _0x2fdb14=_0x383f1f;if(_0x3883e3[_0x2fdb14(0x378)](_0x163cbb['selection'])){const _0xf6c95e=_0x3883e3['get'](_0x163cbb[_0x2fdb14(0x27d)]);_0xf6c95e['name']+=',\x20'+_0x163cbb[_0x2fdb14(0x462)];}else _0x3883e3[_0x2fdb14(0x2e0)](_0x163cbb['selection'],_0x163cbb);}),Array[_0x383f1f(0x2c5)](_0x3883e3['values']());}var y=function(){const _0x380813=_0x53b42f;return y=Object[_0x380813(0x2a9)]||function(_0x1b1f7e){const _0x30a885=_0x380813;for(var _0x49504a,_0x759790=0x1,_0x35a5fa=arguments[_0x30a885(0x419)];_0x759790<_0x35a5fa;_0x759790++){_0x49504a=arguments[_0x759790];for(var _0x220f6b in _0x49504a)Object['prototype']['hasOwnProperty'][_0x30a885(0x3f4)](_0x49504a,_0x220f6b)&&(_0x1b1f7e[_0x220f6b]=_0x49504a[_0x220f6b]);}return _0x1b1f7e;},y['apply'](this,arguments);},Zs=function(_0x5ce90c,_0x1cc590){const _0xc6c34e=_0x53b42f;var _0x36d50b={};for(var _0x411d1a in _0x5ce90c)Object[_0xc6c34e(0x135)][_0xc6c34e(0x185)][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a)&&_0x1cc590[_0xc6c34e(0x303)](_0x411d1a)<0x0&&(_0x36d50b[_0x411d1a]=_0x5ce90c[_0x411d1a]);if(_0x5ce90c!=null&&typeof Object[_0xc6c34e(0x4ab)]=='function'){for(var _0x1893f6=0x0,_0x411d1a=Object[_0xc6c34e(0x4ab)](_0x5ce90c);_0x1893f6<_0x411d1a[_0xc6c34e(0x419)];_0x1893f6++)_0x1cc590['indexOf'](_0x411d1a[_0x1893f6])<0x0&&Object[_0xc6c34e(0x135)]['propertyIsEnumerable'][_0xc6c34e(0x3f4)](_0x5ce90c,_0x411d1a[_0x1893f6])&&(_0x36d50b[_0x411d1a[_0x1893f6]]=_0x5ce90c[_0x411d1a[_0x1893f6]]);}return _0x36d50b;},We=L['forwardRef'](function(_0x1c27b1,_0x3b9d17){const _0x2ce2b5=_0x53b42f;var _0x24af22=_0x1c27b1[_0x2ce2b5(0x23c)],_0x45400b=_0x1c27b1['id'],_0x42e6c0=_0x1c27b1['className'],_0x47d4c1=_0x1c27b1[_0x2ce2b5(0x472)],_0x515a02=Zs(_0x1c27b1,[_0x2ce2b5(0x23c),'id',_0x2ce2b5(0x457),_0x2ce2b5(0x472)]),_0x4106b3=_0x2ce2b5(0x1b8)['concat'](_0x45400b,'\x20')[_0x2ce2b5(0x317)](_0x42e6c0||'')[_0x2ce2b5(0x283)](),_0x107328=L[_0x2ce2b5(0x407)]('_'[_0x2ce2b5(0x317)](ti()));return Tt(_0x24af22,''['concat'](_0x45400b),{'defIds':_0x24af22['defIds'],'idSuffix':_0x107328[_0x2ce2b5(0x403)]},y({'ref':_0x3b9d17,'className':_0x4106b3},_0x515a02),_0x47d4c1);});function Tt(_0x3970bd,_0x472a11,_0x1a197b,_0x1583f9,_0x3c02c0){const _0x1e3582=_0x53b42f;return L['createElement'](_0x3970bd['tag'],y(y({'key':_0x472a11},Qs(_0x3970bd,_0x1a197b,_0x3c02c0)),_0x1583f9),(ei(_0x3970bd,_0x1a197b)[_0x1e3582(0x416)]||[])[_0x1e3582(0x1af)](function(_0x1c8b01,_0x1c6e45){const _0x4de65c=_0x1e3582;return Tt(_0x1c8b01,''['concat'](_0x472a11,'-')[_0x4de65c(0x317)](_0x3970bd[_0x4de65c(0x25b)],'-')[_0x4de65c(0x317)](_0x1c6e45),_0x1a197b,void 0x0,_0x3c02c0);}));}function Qs(_0x1b928d,_0x37f701,_0x37cd35){const _0x5d7b60=_0x53b42f;var _0x552c77=y({},_0x1b928d[_0x5d7b60(0x204)]);_0x37cd35!=null&&_0x37cd35[_0x5d7b60(0x3c6)]&&_0x552c77[_0x5d7b60(0x347)]===_0x5d7b60(0x3c6)&&(_0x552c77[_0x5d7b60(0x347)]=_0x37cd35[_0x5d7b60(0x3c6)]);var _0x3d860b=_0x37f701[_0x5d7b60(0x1c3)];return!_0x3d860b||_0x3d860b[_0x5d7b60(0x419)]===0x0||(_0x1b928d[_0x5d7b60(0x25b)]===_0x5d7b60(0x40b)&&_0x552c77[_0x5d7b60(0x4a4)]&&(_0x552c77[_0x5d7b60(0x4a4)]=_0x552c77[_0x5d7b60(0x4a4)]+_0x37f701[_0x5d7b60(0x343)]),Object['entries'](_0x552c77)['forEach'](function(_0x127800){const _0x2271d3=_0x5d7b60;var _0x504460=_0x127800[0x0],_0x16e39d=_0x127800[0x1];typeof _0x16e39d=='string'&&(_0x552c77[_0x504460]=_0x16e39d[_0x2271d3(0x153)](/url\(#(.*)\)/,_0x2271d3(0x3ae)[_0x2271d3(0x317)](_0x37f701[_0x2271d3(0x343)],')')));})),_0x552c77;}function ei(_0x30d538,_0x4e4c2c){const _0x5b3b0f=_0x53b42f;var _0x40713f,_0x6756bb=_0x4e4c2c[_0x5b3b0f(0x1c3)];return!_0x6756bb||_0x6756bb[_0x5b3b0f(0x419)]===0x0?_0x30d538:_0x30d538[_0x5b3b0f(0x25b)]===_0x5b3b0f(0x1ab)&&(!((_0x40713f=_0x30d538[_0x5b3b0f(0x416)])===null||_0x40713f===void 0x0)&&_0x40713f['length'])?y(y({},_0x30d538),{'children':_0x30d538[_0x5b3b0f(0x416)][_0x5b3b0f(0x1af)](function(_0x24bbc0){const _0x2251f9=_0x5b3b0f;return typeof _0x24bbc0[_0x2251f9(0x204)]['id']==_0x2251f9(0x44e)&&_0x6756bb&&_0x6756bb[_0x2251f9(0x303)](_0x24bbc0['attrs']['id'])>-0x1?y(y({},_0x24bbc0),{'attrs':y(y({},_0x24bbc0[_0x2251f9(0x204)]),{'id':_0x24bbc0[_0x2251f9(0x204)]['id']+_0x4e4c2c[_0x2251f9(0x343)]})}):_0x24bbc0;})}):_0x30d538;}function ti(){const _0x27577a=_0x53b42f;return Math[_0x27577a(0x27c)]()[_0x27577a(0x423)](0x24)[_0x27577a(0x2cd)](0x2,0x8);}We[_0x53b42f(0x25d)]=_0x53b42f(0x3b4);var si={'tag':'svg','attrs':{'fill':_0x53b42f(0x381),'viewBox':_0x53b42f(0x235),'width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x43d)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x238),'strokeLinecap':_0x53b42f(0x192),'strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':_0x53b42f(0x1ab),'attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x447)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':_0x53b42f(0x375)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Rt=L['forwardRef'](function(_0xbe4ead,_0x45c64c){const _0x1451ed=_0x53b42f;return L['createElement'](We,Object[_0x1451ed(0x2a9)]({},_0xbe4ead,{'id':'off-line-single','ref':_0x45c64c,'icon':si}));});Rt[_0x53b42f(0x25d)]=_0x53b42f(0x3cd);var ii={'tag':_0x53b42f(0x32b),'attrs':{'fill':_0x53b42f(0x381),'viewBox':'0\x200\x2017\x2016','width':_0x53b42f(0x137),'height':_0x53b42f(0x137)},'children':[{'tag':'g','attrs':{'clipPath':_0x53b42f(0x186)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'stroke':_0x53b42f(0x32c),'d':_0x53b42f(0x1b7),'strokeLinecap':'round','strokeLinejoin':_0x53b42f(0x192),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x53b42f(0x264),'attrs':{'id':_0x53b42f(0x494)},'children':[{'tag':_0x53b42f(0x490),'attrs':{'fill':_0x53b42f(0x4b8),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x53b42f(0x494)]},Ot=L[_0x53b42f(0x334)](function(_0x2eeac2,_0x45dc5c){const _0xe9176e=_0x53b42f;return L[_0xe9176e(0x2e7)](We,Object[_0xe9176e(0x2a9)]({},_0x2eeac2,{'id':_0xe9176e(0x19d),'ref':_0x45dc5c,'icon':ii}));});Ot[_0x53b42f(0x25d)]='OnLineSingle';const ni='univer-online-status-icon',ri=_0x53b42f(0x3af),oi='univer-online-status',ai=_0x53b42f(0x323),ci=_0x53b42f(0x3f0),ie={'onlineStatusIcon':ni,'onlineStatusTitle':ri,'onlineStatus':oi,'online':ai,'offline':ci};function li(_0xaa946d){const _0x419617=_0x53b42f;switch(_0xaa946d){case w[_0x419617(0x1b4)]:return _0x419617(0x24b);case w[_0x419617(0x356)]:return _0x419617(0x189);case w['FETCH_MISS']:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return'collabStatus.notCollab';case w[_0x419617(0x33a)]:case w[_0x419617(0x4db)]:case w['AWAITING_WITH_PENDING']:return _0x419617(0x39c);case w[_0x419617(0x32d)]:return _0x419617(0x1c7);}}function Dt(_0x145fca){const _0x51bb32=_0x53b42f,{status$:_0x2cb16d}=_0x145fca,_0xbc0d36=N[_0x51bb32(0x2d0)](_0x2cb16d,w[_0x51bb32(0x1a4)]),_0x22f8a9=at['useDependency'](a['LocaleService']),_0x4753ea=_0xbc0d36!==w[_0x51bb32(0x1b4)],_0x479cf0=_0x22f8a9['t'](li(_0xbc0d36)),_0x4bb8b7=Ht(ie[_0x51bb32(0x1f5)],{[ie[_0x51bb32(0x262)]]:_0x4753ea,[ie[_0x51bb32(0x1a5)]]:!_0x4753ea}),_0x45be07=_0x4753ea?L[_0x51bb32(0x2e7)](Ot,null):L[_0x51bb32(0x2e7)](Rt,null);return L[_0x51bb32(0x2e7)](_0x51bb32(0x2b7),{'className':_0x4bb8b7},L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x338)]},_0x45be07),L['createElement'](_0x51bb32(0x2b7),{'className':ie[_0x51bb32(0x49b)]},_0x479cf0));}var hi=Object[_0x53b42f(0x38a)],_i=Object[_0x53b42f(0x2a8)],ui=(_0x28a3ed,_0x4ac7ca,_0x238d3f,_0x38baea)=>{const _0x560af4=_0x53b42f;for(var _0x457e92=_0x38baea>0x1?void 0x0:_0x38baea?_i(_0x4ac7ca,_0x238d3f):_0x4ac7ca,_0x39cc5d=_0x28a3ed[_0x560af4(0x419)]-0x1,_0x14ffbf;_0x39cc5d>=0x0;_0x39cc5d--)(_0x14ffbf=_0x28a3ed[_0x39cc5d])&&(_0x457e92=(_0x38baea?_0x14ffbf(_0x4ac7ca,_0x238d3f,_0x457e92):_0x14ffbf(_0x457e92))||_0x457e92);return _0x38baea&&_0x457e92&&hi(_0x4ac7ca,_0x238d3f,_0x457e92),_0x457e92;},he=(_0x4e734b,_0x1fe480)=>(_0x2d1b46,_0x6508d5)=>_0x1fe480(_0x2d1b46,_0x6508d5,_0x4e734b);exports[_0x53b42f(0x230)]=class extends a['Disposable']{constructor(_0x489ff8,_0x3ca318,_0x4df3dc,_0xdf94f){const _0x47170b=_0x53b42f;super(),d(this,_0x47170b(0x41b),new g[(_0x47170b(0x28a))](w[_0x47170b(0x1a4)])),(this[_0x47170b(0x49a)]=_0x489ff8,this[_0x47170b(0x487)]=_0x3ca318,this[_0x47170b(0x45d)]=_0x4df3dc,this[_0x47170b(0x1a2)]=_0xdf94f,this[_0x47170b(0x3dd)](),this[_0x47170b(0x449)]());}[_0x53b42f(0x3dd)](){const _0x45d1d6=_0x53b42f;this['disposeWithMe'](this[_0x45d1d6(0x487)][_0x45d1d6(0x17e)](N[_0x45d1d6(0x2da)][_0x45d1d6(0x320)],()=>at['connectInjector'](di({'status$':this[_0x45d1d6(0x41b)][_0x45d1d6(0x1d6)]()}),this[_0x45d1d6(0x45d)])));}[_0x53b42f(0x449)](){const _0x57e870=_0x53b42f;this[_0x57e870(0x1e9)](a[_0x57e870(0x1bb)](this[_0x57e870(0x49a)][_0x57e870(0x1c2)][_0x57e870(0x454)](g[_0x57e870(0x178)](()=>{const _0x52b2e3=_0x57e870,_0x5d3b53=this[_0x52b2e3(0x49a)][_0x52b2e3(0x41e)]();return _0x5d3b53?this[_0x52b2e3(0x1a2)][_0x52b2e3(0x397)](_0x5d3b53[_0x52b2e3(0x1f9)]()):g['of'](null);}),g['switchMap'](_0x13d145=>_0x13d145?_0x13d145[_0x57e870(0x183)]:g['of'](w[_0x57e870(0x1a4)])))[_0x57e870(0x492)](_0x4c50a7=>{const _0xc2f31f=_0x57e870;this[_0xc2f31f(0x41b)][_0xc2f31f(0x414)](_0x4c50a7);})));}},exports[_0x53b42f(0x230)]=ui([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)][_0x53b42f(0x157)],exports[_0x53b42f(0x230)]),he(0x0,a[_0x53b42f(0x390)]),he(0x1,N[_0x53b42f(0x48c)]),he(0x2,h[_0x53b42f(0x295)](h[_0x53b42f(0x1ac)])),he(0x3,h['Inject'](exports[_0x53b42f(0x301)]))],exports[_0x53b42f(0x230)]);function di(_0x4713a6){const {status$:_0x29ad8c}=_0x4713a6;return function(){const _0x2c3b42=_0xe052;return L[_0x2c3b42(0x2e7)](Dt,{'status$':_0x29ad8c});};}const Ge=h[_0x53b42f(0x195)]('uni.network.url-service');var Si=Object[_0x53b42f(0x38a)],vi=Object['getOwnPropertyDescriptor'],gi=(_0x1deb36,_0x22d677,_0x474311,_0x29af28)=>{for(var _0x106fa9=_0x29af28>0x1?void 0x0:_0x29af28?vi(_0x22d677,_0x474311):_0x22d677,_0xd7b5fd=_0x1deb36['length']-0x1,_0x522114;_0xd7b5fd>=0x0;_0xd7b5fd--)(_0x522114=_0x1deb36[_0xd7b5fd])&&(_0x106fa9=(_0x29af28?_0x522114(_0x22d677,_0x474311,_0x106fa9):_0x522114(_0x106fa9))||_0x106fa9);return _0x29af28&&_0x106fa9&&Si(_0x22d677,_0x474311,_0x106fa9),_0x106fa9;},z=(_0x125698,_0x599f7c)=>(_0x48aeae,_0x29a301)=>_0x599f7c(_0x48aeae,_0x29a301,_0x125698);exports[_0x53b42f(0x265)]=class extends a['RxDisposable']{constructor(_0x587e2c,_0x1e74f8,_0x37e147,_0x4fc447,_0xe39c7a,_0x5e7746){const _0x2d20db=_0x53b42f;super(),this[_0x2d20db(0x1e7)]=_0x587e2c,this[_0x2d20db(0x42f)]=_0x1e74f8,this[_0x2d20db(0x188)]=_0x37e147,this['_localCacheService']=_0x4fc447,this['_snapshotService']=_0xe39c7a,_0x5e7746?_0x5e7746==null||_0x5e7746[_0x2d20db(0x2ff)]()[_0x2d20db(0x3ab)](()=>this['_init']()):(this[_0x2d20db(0x42f)]['debug'](_0x2d20db(0x310),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x2d20db(0x243)]());}async[_0x53b42f(0x243)](){const _0x3b3bf2=_0x53b42f,_0x81570d=this[_0x3b3bf2(0x1e7)][_0x3b3bf2(0x358)](_0x3b3bf2(0x259)),_0x463100=this[_0x3b3bf2(0x1e7)]['getParam'](_0x3b3bf2(0x20c));if(!_0x81570d||!_0x463100){this[_0x3b3bf2(0x42f)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x463100)){case j[_0x3b3bf2(0x164)]:{const _0x118609=await this[_0x3b3bf2(0x4a6)](_0x81570d);this[_0x3b3bf2(0x3c2)](_0x118609);break;}case j[_0x3b3bf2(0x220)]:{await this['_loadDoc'](_0x81570d);break;}default:{this[_0x3b3bf2(0x42f)][_0x3b3bf2(0x150)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x53b42f(0x3c2)](_0x2fa6b4){const _0x2beb03=_0x53b42f;await this['_updateSubUnitFromURLParams'](_0x2fa6b4),_0x2fa6b4['activeSheet$']['pipe'](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](_0x58072f=>{const _0x1ebbbc=_0x2beb03;_0x58072f&&this[_0x1ebbbc(0x26e)](_0x58072f);}),this[_0x2beb03(0x1e7)]['urlChange$'][_0x2beb03(0x454)](g[_0x2beb03(0x436)](this['dispose$']))[_0x2beb03(0x492)](()=>this[_0x2beb03(0x415)](_0x2fa6b4));}[_0x53b42f(0x26e)](_0xbf12d,_0x41116d=!0x1){const _0x58acd1=_0x53b42f,_0x5b0d96=this[_0x58acd1(0x1e7)]['getParam'](_0x58acd1(0x26c));_0xbf12d['getSheetId']()!==_0x5b0d96&&this[_0x58acd1(0x1e7)][_0x58acd1(0x364)](_0x58acd1(0x26c),_0xbf12d['getSheetId'](),_0x41116d);}async[_0x53b42f(0x415)](_0xbc7345){const _0x267cb0=_0x53b42f;var _0x2ef8e0;const _0x2554bb=this['_urlService'][_0x267cb0(0x358)](_0x267cb0(0x26c));if(!_0x2554bb||!_0xbc7345[_0x267cb0(0x475)](_0x2554bb)){this['_updateURLWithCurrentState'](_0xbc7345[_0x267cb0(0x249)](),!0x0);return;}((_0x2ef8e0=_0xbc7345['getActiveSheet']())==null?void 0x0:_0x2ef8e0[_0x267cb0(0x1b9)]())!==_0x2554bb&&await this[_0x267cb0(0x188)][_0x267cb0(0x1ee)](E[_0x267cb0(0x42c)]['id'],{'unitId':_0xbc7345['getUnitId'](),'subUnitId':_0x2554bb});}async[_0x53b42f(0x4a6)](_0x3742d4){const _0x2d0a7c=_0x53b42f;let _0xab8d2b=0x0;const _0x364180=await this[_0x2d0a7c(0x33e)][_0x2d0a7c(0x3ea)](_0x3742d4);return _0x364180&&(_0x364180[_0x2d0a7c(0x1ca)]||_0x364180['mutations']['length']!==0x0)&&(_0xab8d2b=_0x364180[_0x2d0a7c(0x411)]),_0xab8d2b===0x0&&this[_0x2d0a7c(0x42f)][_0x2d0a7c(0x240)](_0x2d0a7c(0x310),_0x2d0a7c(0x434)),this[_0x2d0a7c(0x3cf)]['loadSheet'](_0x3742d4,_0xab8d2b);}async[_0x53b42f(0x392)](_0x1ed36f){const _0x30099c=_0x53b42f;let _0x194dc5=0x0;const _0x23c49d=await this[_0x30099c(0x33e)]['loadOfflineData'](_0x1ed36f);return _0x23c49d&&(_0x23c49d[_0x30099c(0x1ca)]||_0x23c49d[_0x30099c(0x21b)]['length']!==0x0)&&(_0x194dc5=_0x23c49d['rev']),_0x194dc5===0x0&&this[_0x30099c(0x42f)]['debug'](_0x30099c(0x310),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x30099c(0x3cf)][_0x30099c(0x469)](_0x1ed36f,_0x194dc5);}},exports['DataLoaderController']=gi([a[_0x53b42f(0x13b)](a[_0x53b42f(0x2e2)]['Starting'],exports[_0x53b42f(0x265)]),z(0x0,Ge),z(0x1,a[_0x53b42f(0x4c8)]),z(0x2,a[_0x53b42f(0x1c5)]),z(0x3,h[_0x53b42f(0x295)](exports[_0x53b42f(0x4b3)])),z(0x4,h[_0x53b42f(0x295)](u[_0x53b42f(0x3b8)])),z(0x5,h[_0x53b42f(0x420)](xt[_0x53b42f(0x197)]))],exports[_0x53b42f(0x265)]);var fi=Object[_0x53b42f(0x38a)],mi=Object[_0x53b42f(0x2a8)],Ii=(_0x388630,_0xe80370,_0x2cf1a1,_0x5f1bfa)=>{const _0x407cb2=_0x53b42f;for(var _0x371b32=_0x5f1bfa>0x1?void 0x0:_0x5f1bfa?mi(_0xe80370,_0x2cf1a1):_0xe80370,_0x4525df=_0x388630[_0x407cb2(0x419)]-0x1,_0x18b30e;_0x4525df>=0x0;_0x4525df--)(_0x18b30e=_0x388630[_0x4525df])&&(_0x371b32=(_0x5f1bfa?_0x18b30e(_0xe80370,_0x2cf1a1,_0x371b32):_0x18b30e(_0x371b32))||_0x371b32);return _0x5f1bfa&&_0x371b32&&fi(_0xe80370,_0x2cf1a1,_0x371b32),_0x371b32;},st=(_0x4b3704,_0x540ffa)=>(_0x437071,_0x50c99f)=>_0x540ffa(_0x437071,_0x50c99f,_0x4b3704);const pi=_0x53b42f(0x4c7),Ei=_0x53b42f(0x4c5);let de=class extends a['Disposable']{constructor(_0x4ef975,_0x32d44e){const _0x4ecad0=_0x53b42f;super(),this[_0x4ecad0(0x49a)]=_0x4ef975,this[_0x4ecad0(0x2a6)]=_0x32d44e,this[_0x4ecad0(0x243)]();}[_0x53b42f(0x243)](){const _0x3af2f1=_0x53b42f;this[_0x3af2f1(0x1e9)](a[_0x3af2f1(0x1bb)](this[_0x3af2f1(0x49a)][_0x3af2f1(0x1c2)][_0x3af2f1(0x492)](()=>{const _0x4407ad=_0x3af2f1;var _0x3162c7;const _0x25c175=this['_univerInstanceService'][_0x4407ad(0x41e)]();let _0x395cb2=(_0x3162c7=this[_0x4407ad(0x2a6)][_0x4407ad(0x1d8)](pi))!=null?_0x3162c7:Ei;_0x25c175 instanceof a[_0x4407ad(0x38c)]&&(_0x395cb2=_0x25c175[_0x4407ad(0x462)]),document[_0x4407ad(0x276)]=_0x395cb2;})));}};de=Ii([a['OnLifecycle'](a[_0x53b42f(0x2e2)][_0x53b42f(0x1be)],de),st(0x0,a[_0x53b42f(0x390)]),st(0x1,a[_0x53b42f(0x4a2)])],de);var Ci=Object[_0x53b42f(0x38a)],bi=Object[_0x53b42f(0x2a8)],Ti=(_0x50ed97,_0x177420,_0x369d8e,_0x46c274)=>{for(var _0x1cd843=_0x46c274>0x1?void 0x0:_0x46c274?bi(_0x177420,_0x369d8e):_0x177420,_0x23b1a6=_0x50ed97['length']-0x1,_0x263a70;_0x23b1a6>=0x0;_0x23b1a6--)(_0x263a70=_0x50ed97[_0x23b1a6])&&(_0x1cd843=(_0x46c274?_0x263a70(_0x177420,_0x369d8e,_0x1cd843):_0x263a70(_0x1cd843))||_0x1cd843);return _0x46c274&&_0x1cd843&&Ci(_0x177420,_0x369d8e,_0x1cd843),_0x1cd843;},it=(_0x20338e,_0x165c84)=>(_0x5e2cc0,_0xb8ce71)=>_0x165c84(_0x5e2cc0,_0xb8ce71,_0x20338e);let Ae=class{constructor(_0x5dd6a0,_0x1dbcc0){const _0x24c823=_0x53b42f;this['_configService']=_0x5dd6a0,this[_0x24c823(0x152)]=_0x1dbcc0;}async[_0x53b42f(0x1bd)](_0x745595,_0x123dfc){const _0x16d18d=_0x53b42f;var _0x42bd5f;const {unitID:_0x357bac,type:_0x3a229d,revision:_0x2c4b62=0x0}=_0x123dfc,_0x3b55ff=this[_0x16d18d(0x28c)]()+'/'+_0x3a229d+_0x16d18d(0x254)+_0x357bac+'/rev/'+(_0x2c4b62===0x1?0x0:_0x2c4b62),_0x2e4088=(await this[_0x16d18d(0x152)][_0x16d18d(0x3d4)](_0x3b55ff))['body'],_0x1c1e01=(_0x42bd5f=_0x2e4088['snapshot'])==null?void 0x0:_0x42bd5f['workbook'];if(_0x1c1e01){const _0x309967=_0x1c1e01==null?void 0x0:_0x1c1e01[_0x16d18d(0x1c8)],_0xf9078d=a['textEncoder'][_0x16d18d(0x1f3)](a[_0x16d18d(0x25f)](_0x309967));_0x1c1e01['originalMeta']=_0xf9078d,Object[_0x16d18d(0x2a3)](_0x1c1e01['sheets'])[_0x16d18d(0x421)](([,_0x61eae2])=>{const _0x4bffb9=_0x16d18d,_0x216b9b=_0x61eae2[_0x4bffb9(0x1c8)],_0x3646fe=a['textEncoder']['encode'](a[_0x4bffb9(0x25f)](_0x216b9b));_0x61eae2[_0x4bffb9(0x1c8)]=_0x3646fe;});}return _0x2e4088;}async['getSheetBlock'](_0x219d65,_0x56ade0){const _0x2c5b24=_0x53b42f,{unitID:_0x20c053,type:_0x5e3b8f,blockID:_0x2a3c62}=_0x56ade0,_0x312c0c=this[_0x2c5b24(0x260)]()+'/'+_0x5e3b8f+'/unit/'+_0x20c053+_0x2c5b24(0x371)+_0x2a3c62;return(await this[_0x2c5b24(0x152)][_0x2c5b24(0x3d4)](_0x312c0c))[_0x2c5b24(0x4cc)];}async[_0x53b42f(0x25e)](_0x1108b1,_0x3e38d5){const _0x5cdd9a=_0x53b42f,{unitID:_0xe95d56,type:_0x45af4f,from:_0x56b4a0,to:_0x3af6c1}=_0x3e38d5,_0x4c742d=this[_0x5cdd9a(0x260)]()+'/'+_0x45af4f+'/unit/'+_0xe95d56+_0x5cdd9a(0x335)+_0x56b4a0+'&to='+_0x3af6c1;return(await this['_httpService']['get'](_0x4c742d))[_0x5cdd9a(0x4cc)];}[_0x53b42f(0x28c)](){const _0x3b3a92=_0x53b42f;var _0x1acaea;return(_0x1acaea=this[_0x3b3a92(0x2a6)][_0x3b3a92(0x1d8)](lt))!=null?_0x1acaea:this['_getAPIPrefix']();}[_0x53b42f(0x260)](){const _0x39775d=_0x53b42f;var _0x3a04b6;return(_0x3a04b6=this[_0x39775d(0x2a6)][_0x39775d(0x1d8)](ct))!=null?_0x3a04b6:kt;}async[_0x53b42f(0x3fa)](_0x301bca,_0x3e23bb){const _0x3f9514=_0x53b42f,_0x45e1d1=_0x3f9514(0x45f)+_0x3e23bb['type']+'/unit/'+_0x3e23bb[_0x3f9514(0x348)]+_0x3f9514(0x2e9);return(await this[_0x3f9514(0x152)][_0x3f9514(0x3d4)](_0x45e1d1,{'params':{'resourceId':JSON[_0x3f9514(0x339)](_0x3e23bb[_0x3f9514(0x1fe)])}}))[_0x3f9514(0x4cc)];}['saveSnapshot'](){const _0x7c87a0=_0x53b42f;throw new Error(_0x7c87a0(0x322));}[_0x53b42f(0x1c6)](){const _0xd211d=_0x53b42f;throw new Error(_0xd211d(0x322));}[_0x53b42f(0x3d2)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Ae=Ti([it(0x0,a[_0x53b42f(0x4a2)]),it(0x1,h[_0x53b42f(0x295)](P[_0x53b42f(0x452)]))],Ae);var Ri=Object[_0x53b42f(0x38a)],Oi=Object[_0x53b42f(0x2a8)],Di=(_0x3f7870,_0x529c0e,_0x3a1985,_0x132cf8)=>{const _0x14f8ee=_0x53b42f;for(var _0x27ae7f=_0x132cf8>0x1?void 0x0:_0x132cf8?Oi(_0x529c0e,_0x3a1985):_0x529c0e,_0x36e6f5=_0x3f7870[_0x14f8ee(0x419)]-0x1,_0x373f8c;_0x36e6f5>=0x0;_0x36e6f5--)(_0x373f8c=_0x3f7870[_0x36e6f5])&&(_0x27ae7f=(_0x132cf8?_0x373f8c(_0x529c0e,_0x3a1985,_0x27ae7f):_0x373f8c(_0x27ae7f))||_0x27ae7f);return _0x132cf8&&_0x27ae7f&&Ri(_0x529c0e,_0x3a1985,_0x27ae7f),_0x27ae7f;},ne=(_0x2ae2bd,_0x1ad325)=>(_0x1ef006,_0x12578d)=>_0x1ad325(_0x1ef006,_0x12578d,_0x2ae2bd);let je=class extends a[_0x53b42f(0x2ec)]{constructor(_0x4324e3,_0x2e0513,_0x3f47fd,_0x44ddda,_0x383225){const _0x526298=_0x53b42f;super(_0x4324e3,_0x2e0513,_0x3f47fd),this[_0x526298(0x2f1)]=_0x44ddda,this[_0x526298(0x42f)]=_0x383225;}[_0x53b42f(0x4d6)](_0x39deeb,_0x537616){const _0x11b7e1=_0x53b42f,_0x3e9db5=this['_getUndoStack'](_0x39deeb);if(_0x3e9db5)try{const _0x22436a=this[_0x11b7e1(0x46b)](_0x3e9db5,_0x537616);this['_substituteUndoStack'](_0x39deeb,_0x22436a);}catch(_0x1be636){this[_0x11b7e1(0x42f)][_0x11b7e1(0x150)](_0x11b7e1(0x181),_0x1be636),this[_0x11b7e1(0x215)](_0x39deeb);}const _0x310291=this['_getRedoStack'](_0x39deeb);if(_0x310291)try{const _0x221a6c=this[_0x11b7e1(0x46b)](_0x310291,_0x537616);this['_substituteRedoStack'](_0x39deeb,_0x221a6c);}catch(_0x1a3bfd){this['_logService'][_0x11b7e1(0x150)](_0x1a3bfd),this[_0x11b7e1(0x149)](_0x39deeb);}}[_0x53b42f(0x215)](_0x2a2d15){const _0x2accda=_0x53b42f,_0x1238d3=this[_0x2accda(0x498)](_0x2a2d15);_0x1238d3&&(_0x1238d3['length']=0x0,this['_updateStatus']());}[_0x53b42f(0x149)](_0x1229bc){const _0x39f5f6=_0x53b42f,_0x37b21c=this[_0x39f5f6(0x34b)](_0x1229bc);_0x37b21c&&(_0x37b21c[_0x39f5f6(0x419)]=0x0,this['_updateStatus']());}[_0x53b42f(0x1a7)](_0x5c883a,_0x5de486){const _0xb2266=_0x53b42f;this['_undoStacks'][_0xb2266(0x2e0)](_0x5c883a,_0x5de486),this[_0xb2266(0x182)]();}[_0x53b42f(0x1b2)](_0x5ce64a,_0x422adf){const _0x3d56f8=_0x53b42f;this[_0x3d56f8(0x413)]['set'](_0x5ce64a,_0x422adf),this[_0x3d56f8(0x182)]();}['_transformStack'](_0x5c2061,_0x46f1e9){const _0x354fdb=_0x53b42f,_0x1fbfc7=[];let _0x1c4695=_0x46f1e9,_0x2f52d8=_0x46f1e9;for(let _0x3df48b=_0x5c2061[_0x354fdb(0x419)]-0x1;_0x3df48b>=0x0;_0x3df48b--){const {unitID:_0x1e74bc,undoMutations:_0x27028f,redoMutations:_0x156ef7}=_0x5c2061[_0x3df48b],_0x2f4fa3=this[_0x354fdb(0x2f1)][_0x354fdb(0x33b)](_0x1c4695,_0x27028f),_0x25af32=this[_0x354fdb(0x2f1)]['transformMutationsWithChangeset'](_0x2f52d8,_0x156ef7);if(u['isTransformMutationsWithChangesetFailure'](_0x2f4fa3)||u['isTransformMutationsWithChangesetFailure'](_0x25af32)){this[_0x354fdb(0x42f)][_0x354fdb(0x150)](_0x354fdb(0x181),'transformStack\x20failed!',_0x2f4fa3,_0x25af32);break;}_0x1c4695=_0x2f4fa3[_0x354fdb(0x132)],_0x2f52d8=_0x25af32[_0x354fdb(0x132)],_0x1fbfc7[_0x354fdb(0x1d7)]({'unitID':_0x1e74bc,'undoMutations':_0x2f4fa3[_0x354fdb(0x2c7)],'redoMutations':_0x25af32[_0x354fdb(0x2c7)]});}return _0x1fbfc7[_0x354fdb(0x35c)]();}};je=Di([ne(0x0,a[_0x53b42f(0x390)]),ne(0x1,a[_0x53b42f(0x1c5)]),ne(0x2,a['IContextService']),ne(0x3,u['ITransformService']),ne(0x4,a[_0x53b42f(0x4c8)])],je);class wt extends a[_0x53b42f(0x3a5)]{constructor(){const _0x1b4d5f=_0x53b42f;super(),d(this,_0x1b4d5f(0x2ef)),this['urlChange$']=g['fromEvent'](window,_0x1b4d5f(0x468))[_0x1b4d5f(0x454)](g[_0x1b4d5f(0x436)](this[_0x1b4d5f(0x35f)]),g[_0x1b4d5f(0x4d4)](0x1),g['mapTo'](void 0x0));}[_0x53b42f(0x364)](_0x2817f3,_0x486195,_0x46ebac=!0x1){const _0x10601b=_0x53b42f,_0x1ce138=new URL(window[_0x10601b(0x223)]['href']);_0x1ce138[_0x10601b(0x350)][_0x10601b(0x2e0)](_0x2817f3,_0x486195),_0x46ebac?window['history']['replaceState']('','',_0x1ce138[_0x10601b(0x423)]()):window[_0x10601b(0x20b)][_0x10601b(0x194)]('','',_0x1ce138[_0x10601b(0x423)]());}[_0x53b42f(0x424)](_0xe3dbf4,_0x27587a=!0x1){const _0x51926d=_0x53b42f,_0x27b561=new URL(window[_0x51926d(0x223)][_0x51926d(0x133)]);_0x27b561['searchParams'][_0x51926d(0x35b)](_0xe3dbf4),_0x27587a?window[_0x51926d(0x20b)][_0x51926d(0x2b5)]('','',_0x27b561[_0x51926d(0x423)]()):window[_0x51926d(0x20b)]['pushState']('','',_0x27b561[_0x51926d(0x423)]());}[_0x53b42f(0x358)](_0x255294){const _0x58e3f0=_0x53b42f;var _0x1d7a66;return(_0x1d7a66=new URL(window['location'][_0x58e3f0(0x133)])[_0x58e3f0(0x350)][_0x58e3f0(0x3d4)](_0x255294))!=null?_0x1d7a66:void 0x0;}}const we='collab-text-anchor-',wi=_0x53b42f(0x1c9),_e=0x6,Li=1.5,Le=0x4,Pi=1.5,Ui='rgba(255,\x20255,\x20255,\x200.01)';class yi{constructor(_0x7ff9cc,_0x2a2f20,_0x2165be,_0x518036){const _0x289522=_0x53b42f;d(this,_0x289522(0x41d),[]),d(this,_0x289522(0x2f3),null),d(this,'_textBubble',null),d(this,'_anchorDot',null),d(this,_0x289522(0x211),null),d(this,'_eventUnsubscribe',null),(this[_0x289522(0x48d)]=_0x7ff9cc,this['_scene']=_0x2a2f20,this[_0x289522(0x4bf)]=_0x2165be,this[_0x289522(0x14f)]=_0x518036,this[_0x289522(0x388)]());}set[_0x53b42f(0x131)](_0x4f164d){const _0x56026f=_0x53b42f;_0x4f164d?(this[_0x56026f(0x26d)]&&this['_anchorDot']['hide'](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['show']()):(this[_0x56026f(0x26d)]&&this['_anchorDot'][_0x56026f(0x138)](),this[_0x56026f(0x48e)]&&this[_0x56026f(0x48e)]['hide']());}[_0x53b42f(0x4df)](){const _0x10563c=_0x53b42f;for(const _0x55e2a9 of this['_shapes'])_0x55e2a9[_0x10563c(0x4df)]();this[_0x10563c(0x48e)]&&this[_0x10563c(0x48e)][_0x10563c(0x4df)](),this[_0x10563c(0x26d)]&&this[_0x10563c(0x26d)][_0x10563c(0x4df)](),this[_0x10563c(0x2f3)]&&this['_anchor'][_0x10563c(0x4df)](),this[_0x10563c(0x2ad)]&&this[_0x10563c(0x2ad)]();}[_0x53b42f(0x388)](){const _0x177379=_0x53b42f,{_docSkeleton:_0x3ae482,_document:_0x6b75b7}=this,{color:_0x1f8ded,name:_0x22e44c,ranges:_0x1a6054}=this[_0x177379(0x48d)],_0x271f22=_0x6b75b7[_0x177379(0x3f1)](),{docsLeft:_0x4f8e24,docsTop:_0x127b8f}=_0x271f22,_0x3cd0ed=new R[(_0x177379(0x1e4))](_0x271f22,_0x3ae482);for(const {startOffset:_0x4cb43f,endOffset:_0x735e1b,collapsed:_0x1c1c24,isActive:_0x56187e}of _0x1a6054){const _0x35cb50=_0x3ae482[_0x177379(0x3c1)](_0x4cb43f),_0x2d5ca8=_0x3ae482[_0x177379(0x3c1)](_0x735e1b);if(_0x56187e){const {contentBoxPointGroup:_0x45b5c6}=_0x3cd0ed[_0x177379(0x333)](_0x2d5ca8,_0x2d5ca8);if(_0x45b5c6[_0x177379(0x419)]===0x0)continue;this['_drawAnchor'](_0x1f8ded,_0x45b5c6,_0x4f8e24,_0x127b8f,_0x22e44c),this[_0x177379(0x2ad)]=this[_0x177379(0x246)]();}if(!_0x1c1c24){const {contentBoxPointGroup:_0x9aedd5}=_0x3cd0ed[_0x177379(0x333)](_0x35cb50,_0x2d5ca8);if(_0x9aedd5[_0x177379(0x419)]===0x0)continue;this[_0x177379(0x28e)](_0x1f8ded,_0x9aedd5,_0x4f8e24,_0x127b8f);}}}[_0x53b42f(0x47f)](_0x29e384,_0x56ed1d,_0x185e9e,_0x1ff77b,_0x33fa35){const _0xd7c1f2=_0x53b42f,_0x5801ca=this['_getAnchorBounding'](_0x56ed1d),{left:_0x1b44c6,top:_0x1020e5,height:_0x1f8a73}=_0x5801ca,_0x3a1386=this[_0xd7c1f2(0x29c)](),_0x4872bc=Pi/_0x3a1386,_0x110b01=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)]['generateRandomId'](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b,'height':_0x1f8a73,'width':Li,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':_0x4872bc,'stroke':Ui,'evented':!0x0});this[_0xd7c1f2(0x2f3)]=_0x110b01,this['_scene'][_0xd7c1f2(0x3e4)](_0x110b01,R[_0xd7c1f2(0x1dd)]);const _0x540212=new R[(_0xd7c1f2(0x184))](we+a[_0xd7c1f2(0x3a8)][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-Le/0x2,'height':Le,'width':Le,'fill':_0x29e384||R[_0xd7c1f2(0x14b)](a[_0xd7c1f2(0x2e3)][_0xd7c1f2(0x38b)],0x0),'strokeWidth':0x0,'stroke':_0x29e384||R['getColor'](a['COLORS'][_0xd7c1f2(0x38b)],0x0),'evented':!0x1});this[_0xd7c1f2(0x26d)]=_0x540212,this[_0xd7c1f2(0x22f)]['addObject'](_0x540212,R[_0xd7c1f2(0x1dd)]);const _0x5a301a=new Ce(we+a['Tools'][_0xd7c1f2(0x1f7)](_e),{'left':_0x1b44c6+_0x185e9e-_0x4872bc,'top':_0x1020e5+_0x1ff77b-ce,'text':_0x33fa35,'color':_0x29e384});this[_0xd7c1f2(0x48e)]=_0x5a301a,this[_0xd7c1f2(0x22f)][_0xd7c1f2(0x3e4)](_0x5a301a,R[_0xd7c1f2(0x1dd)]),this[_0xd7c1f2(0x131)]=!0x1;}['_handleHover'](){const _0x32b744=_0x53b42f,_0x4b95a1=this['_anchor'][_0x32b744(0x206)][_0x32b744(0x1e5)](()=>{this['_hover']=!0x0;}),_0x4fa9f7=this['_anchor'][_0x32b744(0x3b5)][_0x32b744(0x1e5)](()=>{const _0x48447f=_0x32b744;this[_0x48447f(0x211)]&&clearTimeout(this[_0x48447f(0x211)]),this[_0x48447f(0x211)]=setTimeout(()=>{const _0x34d0ef=_0x48447f;this[_0x34d0ef(0x131)]=!0x1;},0x7d0);});return()=>{const _0x39debc=_0x32b744;var _0x53e803,_0x209275;(_0x53e803=this[_0x39debc(0x2f3)])==null||_0x53e803[_0x39debc(0x206)][_0x39debc(0x49d)](_0x4b95a1),(_0x209275=this[_0x39debc(0x2f3)])==null||_0x209275['onPointerLeaveObserver'][_0x39debc(0x49d)](_0x4fa9f7);};}[_0x53b42f(0x28e)](_0x206ce6,_0x56b60b,_0x53ca35,_0x2a92ec){const _0x2fa714=_0x53b42f,_0x5ed647=new a[(_0x2fa714(0x39b))](_0x206ce6)[_0x2fa714(0x31d)](0.2)[_0x2fa714(0x330)](),_0x1f04bd=new R[(_0x2fa714(0x3c3))](wi+a['Tools'][_0x2fa714(0x1f7)](_e),{'pointsGroup':_0x56b60b,'fill':_0x5ed647||R['getColor'](a[_0x2fa714(0x2e3)][_0x2fa714(0x38b)],0.2),'left':_0x53ca35,'top':_0x2a92ec,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2fa714(0x41d)][_0x2fa714(0x1d7)](_0x1f04bd),this[_0x2fa714(0x22f)][_0x2fa714(0x3e4)](_0x1f04bd,R[_0x2fa714(0x1dd)]);}[_0x53b42f(0x17c)](_0x834347){const _0x5b0c0e=_0x834347[0x0],_0x50562d=_0x5b0c0e[0x0],_0x446760=_0x5b0c0e[0x2],{x:_0x293172,y:_0x327bab}=_0x50562d,{x:_0x26a5fb,y:_0x18bc27}=_0x446760;return{'left':_0x293172,'top':_0x327bab,'width':_0x26a5fb-_0x293172,'height':_0x18bc27-_0x327bab};}['_getScale'](){const {scaleX:_0x655d9,scaleY:_0xc5d0c8}=this['_scene']['getAncestorScale']();return Math['max'](_0x655d9,_0xc5d0c8);}}var Mi=Object[_0x53b42f(0x38a)],Ni=Object[_0x53b42f(0x2a8)],Ai=(_0x524988,_0x449bff,_0x51712b,_0x14f769)=>{const _0x1d50ec=_0x53b42f;for(var _0x6a5deb=_0x14f769>0x1?void 0x0:_0x14f769?Ni(_0x449bff,_0x51712b):_0x449bff,_0x16e242=_0x524988[_0x1d50ec(0x419)]-0x1,_0xed1be1;_0x16e242>=0x0;_0x16e242--)(_0xed1be1=_0x524988[_0x16e242])&&(_0x6a5deb=(_0x14f769?_0xed1be1(_0x449bff,_0x51712b,_0x6a5deb):_0xed1be1(_0x6a5deb))||_0x6a5deb);return _0x14f769&&_0x6a5deb&&Mi(_0x449bff,_0x51712b,_0x6a5deb),_0x6a5deb;},re=(_0x41d96f,_0x9c925d)=>(_0x5b6480,_0x2ef75f)=>_0x9c925d(_0x5b6480,_0x2ef75f,_0x41d96f);let Se=class extends a[_0x53b42f(0x3a5)]{constructor(_0x4d858c,_0x1b244d,_0x1f4ceb,_0x42d1c0,_0x464ca5){const _0x5e7aec=_0x53b42f;super(),d(this,_0x5e7aec(0x3a6),[]),(this[_0x5e7aec(0x491)]=_0x4d858c,this['_univerInstanceService']=_0x1b244d,this[_0x5e7aec(0x198)]=_0x1f4ceb,this[_0x5e7aec(0x318)]=_0x42d1c0,this[_0x5e7aec(0x48a)]=_0x464ca5,this[_0x5e7aec(0x243)]());}[_0x53b42f(0x243)](){const _0x30503c=_0x53b42f;this[_0x30503c(0x318)][_0x30503c(0x326)]['pipe'](T['takeUntil'](this[_0x30503c(0x35f)]),T['switchMap'](_0x3fd307=>{const _0x266e8b=_0x30503c;if(_0x3fd307){const {unitId:_0x16cba6}=_0x3fd307;return g[_0x266e8b(0x165)](this[_0x266e8b(0x491)][_0x266e8b(0x4d9)](_0x16cba6),this[_0x266e8b(0x48a)][_0x266e8b(0x3b6)])[_0x266e8b(0x454)](T[_0x266e8b(0x1af)](([_0x51e2de,_0x4fc914])=>({'skeleton':_0x3fd307,'cursors':[..._0x51e2de[_0x266e8b(0x4d7)]()][_0x266e8b(0x4a0)](_0x15c2e2=>({..._0x15c2e2,'color':_0x4fc914[_0x15c2e2[_0x266e8b(0x2f4)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))[_0x30503c(0x492)](({skeleton:_0x2f7ec9,cursors:_0x3664b3})=>{const _0x4af0bb=_0x30503c;this[_0x4af0bb(0x380)](),_0x2f7ec9&&this['_updateCollabCursors'](_0x2f7ec9[_0x4af0bb(0x159)],_0x3664b3);});}['_updateCollabCursors'](_0x5e2031,_0x90dd6b){const _0x2c28c7=_0x53b42f,_0x49f10b=this[_0x2c28c7(0x36d)]();if(_0x49f10b==null)return;const {scene:_0x8e3dba,document:_0x4c4595}=_0x49f10b,_0x2d39dd=_0x90dd6b[_0x2c28c7(0x1af)](_0x2cbeb7=>new yi(_0x2cbeb7,_0x8e3dba,_0x5e2031,_0x4c4595));this[_0x2c28c7(0x3a6)]=_0x2d39dd;}[_0x53b42f(0x380)](){const _0x458aef=_0x53b42f;this[_0x458aef(0x3a6)][_0x458aef(0x421)](_0x2b4f6a=>_0x2b4f6a[_0x458aef(0x4df)]()),this['_cursors']=[];}[_0x53b42f(0x36d)](){const _0x36ef01=_0x53b42f;return M[_0x36ef01(0x151)](this[_0x36ef01(0x49a)],this[_0x36ef01(0x198)]);}};Se=Ai([a['OnLifecycle'](a[_0x53b42f(0x2e2)]['Steady'],Se),re(0x0,h[_0x53b42f(0x295)](J)),re(0x1,a[_0x53b42f(0x390)]),re(0x2,R['IRenderManagerService']),re(0x3,h[_0x53b42f(0x295)](M[_0x53b42f(0x3f3)])),re(0x4,h[_0x53b42f(0x295)](a[_0x53b42f(0x1e8)]))],Se);var ji=Object[_0x53b42f(0x38a)],$i=Object[_0x53b42f(0x2a8)],Hi=(_0x5f5144,_0x3f4589,_0x26ee4f,_0x2b4662)=>{const _0x38d6ba=_0x53b42f;for(var _0x45435c=_0x2b4662>0x1?void 0x0:_0x2b4662?$i(_0x3f4589,_0x26ee4f):_0x3f4589,_0x8d726a=_0x5f5144[_0x38d6ba(0x419)]-0x1,_0x19785b;_0x8d726a>=0x0;_0x8d726a--)(_0x19785b=_0x5f5144[_0x8d726a])&&(_0x45435c=(_0x2b4662?_0x19785b(_0x3f4589,_0x26ee4f,_0x45435c):_0x19785b(_0x45435c))||_0x45435c);return _0x2b4662&&_0x45435c&&ji(_0x3f4589,_0x26ee4f,_0x45435c),_0x45435c;},Pe=(_0x124949,_0x156cd5)=>(_0x5da489,_0x2f9696)=>_0x156cd5(_0x5da489,_0x2f9696,_0x124949);let Ie=class{constructor(_0x2f53f2,_0x2f38af,_0x2ea6d5){const _0x533c6d=_0x53b42f;this[_0x533c6d(0x2a6)]=_0x2f53f2,this[_0x533c6d(0x152)]=_0x2f38af,this[_0x533c6d(0x34f)]=_0x2ea6d5,this[_0x533c6d(0x433)]();}[_0x53b42f(0x433)](){const _0x2b1985=_0x53b42f;this[_0x2b1985(0x152)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3a21b7,_0x5275e9)=>_0x5275e9(_0x3a21b7)['pipe'](g[_0x2b1985(0x15a)](async _0x2bef6c=>{const _0x50eab2=_0x2b1985,_0x47e7ae=_0x2bef6c;if(_0x47e7ae[_0x50eab2(0x2a7)]===0x191&&window[_0x50eab2(0x4a7)](this[_0x50eab2(0x34f)]['t'](_0x50eab2(0x251)))){const _0xb0ebc4=window[_0x50eab2(0x13c)](window[_0x50eab2(0x223)][_0x50eab2(0x133)]);window[_0x50eab2(0x223)][_0x50eab2(0x133)]=this[_0x50eab2(0x4ca)]()+_0x50eab2(0x429)+_0xb0ebc4;}return _0x47e7ae;}))});}['_getLoginPath'](){const _0x4be8bf=_0x53b42f;var _0x4fb305;return(_0x4fb305=this[_0x4be8bf(0x2a6)][_0x4be8bf(0x1d8)](gt))!=null?_0x4fb305:zt;}};Ie=Hi([Pe(0x0,a[_0x53b42f(0x4a2)]),Pe(0x1,h[_0x53b42f(0x295)](P['HTTPService'])),Pe(0x2,h[_0x53b42f(0x295)](a['LocaleService']))],Ie);var xi=Object[_0x53b42f(0x38a)],ki=Object['getOwnPropertyDescriptor'],Bi=(_0x4bb00d,_0x4dc1ee,_0x484f5a,_0x30950b)=>{const _0x339a29=_0x53b42f;for(var _0x37085f=_0x30950b>0x1?void 0x0:_0x30950b?ki(_0x4dc1ee,_0x484f5a):_0x4dc1ee,_0x57f849=_0x4bb00d[_0x339a29(0x419)]-0x1,_0x480324;_0x57f849>=0x0;_0x57f849--)(_0x480324=_0x4bb00d[_0x57f849])&&(_0x37085f=(_0x30950b?_0x480324(_0x4dc1ee,_0x484f5a,_0x37085f):_0x480324(_0x37085f))||_0x37085f);return _0x30950b&&_0x37085f&&xi(_0x4dc1ee,_0x484f5a,_0x37085f),_0x37085f;},nt=(_0x44abb4,_0x5c947e)=>(_0x12a511,_0x3bebd1)=>_0x5c947e(_0x12a511,_0x3bebd1,_0x44abb4);const Lt='AUTHZ_URL_KEY',Fi=_0x53b42f(0x3f6);exports[_0x53b42f(0x362)]=class{constructor(_0x44c60b,_0x5ea682){const _0x10bfb8=_0x53b42f;this[_0x10bfb8(0x400)]=_0x44c60b,this[_0x10bfb8(0x2a6)]=_0x5ea682;}[_0x53b42f(0x1ff)](){const _0x1e7e73=_0x53b42f;var _0x1e6c1c;return(_0x1e6c1c=this[_0x1e7e73(0x2a6)][_0x1e7e73(0x1d8)](Lt))!=null?_0x1e6c1c:Fi;}async[_0x53b42f(0x1c1)](_0x2f0240){const _0x2ac3ca=_0x53b42f,_0x155100=this[_0x2ac3ca(0x1ff)]()+'/'+_0x2f0240[_0x2ac3ca(0x2d4)]+'/object';return(await this[_0x2ac3ca(0x400)][_0x2ac3ca(0x30c)](_0x155100,{'body':_0x2f0240}))['body'][_0x2ac3ca(0x309)]||'';}async['list'](_0x3b7180){const _0x332ee4=_0x53b42f,_0x2d31dd=this[_0x332ee4(0x1ff)]()+_0x332ee4(0x207);return(await this['_HTTPService'][_0x332ee4(0x30c)](_0x2d31dd,{'body':_0x3b7180}))['body'][_0x332ee4(0x38f)];}async['update'](_0x5e0c16){const _0x27b3d3=_0x53b42f,_0x21ca0d=this[_0x27b3d3(0x1ff)]()+'/'+_0x5e0c16[_0x27b3d3(0x2d4)]+_0x27b3d3(0x1b5)+_0x5e0c16[_0x27b3d3(0x309)];await this[_0x27b3d3(0x400)][_0x27b3d3(0x286)](_0x21ca0d,{'body':_0x5e0c16});}async[_0x53b42f(0x234)](_0x576a37){const _0x23108f=_0x53b42f,_0x300b2f=this[_0x23108f(0x1ff)]()+'/'+_0x576a37[_0x23108f(0x2d4)]+_0x23108f(0x1b5)+_0x576a37[_0x23108f(0x309)]+_0x23108f(0x2d3);return(await this[_0x23108f(0x400)][_0x23108f(0x30c)](_0x300b2f,{'body':_0x576a37}))[_0x23108f(0x4cc)]['actions'];}async[_0x53b42f(0x360)](_0x258574){const _0x5e2bf5=_0x53b42f,_0x3f598c=this[_0x5e2bf5(0x1ff)]()+_0x5e2bf5(0x357);return(await this[_0x5e2bf5(0x400)]['post'](_0x3f598c,{'body':{'requests':_0x258574}}))['body']['objectActions'];}async[_0x53b42f(0x3f8)](_0x43e0cf){const _0x556958=_0x53b42f,_0x20c563=this[_0x556958(0x1ff)]()+'/'+_0x43e0cf['objectType']+_0x556958(0x1f6),_0x423096=await this['_HTTPService'][_0x556958(0x30c)](_0x20c563,{'body':_0x43e0cf});return{'roles':_0x423096[_0x556958(0x4cc)][_0x556958(0x2bc)],'actions':_0x423096[_0x556958(0x4cc)][_0x556958(0x2c1)]};}async[_0x53b42f(0x456)](_0x12a81e){const _0x58da4e=_0x53b42f,_0x3100ca=this[_0x58da4e(0x1ff)]()+_0x58da4e(0x382);await this['_HTTPService']['delete'](_0x3100ca,{'params':{'collaboratorID':_0x12a81e['collaboratorID'],'objectID':_0x12a81e[_0x58da4e(0x309)],'unitID':_0x12a81e[_0x58da4e(0x348)]}});}async[_0x53b42f(0x136)](_0x352583){const _0x1ea35b=_0x53b42f,_0x575b47=this[_0x1ea35b(0x1ff)]()+_0x1ea35b(0x382);await this[_0x1ea35b(0x400)][_0x1ea35b(0x4a3)](_0x575b47,{'body':_0x352583});}async[_0x53b42f(0x296)](_0x100e59){const _0x35eaf5=_0x53b42f,_0x1db08f=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x35eaf5(0x400)][_0x35eaf5(0x30c)](_0x1db08f,{'body':_0x100e59});}async[_0x53b42f(0x4b4)](_0x388e95){const _0x871435=_0x53b42f,_0x57e935=this[_0x871435(0x1ff)]()+'/collaborator';return(await this[_0x871435(0x400)][_0x871435(0x3d4)](_0x57e935,{'params':{'objectID':_0x388e95[_0x871435(0x309)],'unitID':_0x388e95[_0x871435(0x348)]}}))['body'][_0x871435(0x193)];}async[_0x53b42f(0x227)](_0x345fec){const _0x22acc7=_0x53b42f,_0x2ced63=this[_0x22acc7(0x1ff)]()+_0x22acc7(0x382);await this['_HTTPService'][_0x22acc7(0x286)](_0x2ced63,{'body':_0x345fec});}},exports[_0x53b42f(0x362)]=Bi([nt(0x0,h[_0x53b42f(0x295)](P['HTTPService'])),nt(0x1,h[_0x53b42f(0x295)](a[_0x53b42f(0x4a2)]))],exports[_0x53b42f(0x362)]);var Vi=Object['defineProperty'],Wi=Object['getOwnPropertyDescriptor'],Gi=(_0x4574fe,_0x4b5218,_0xe4878,_0x43c45c)=>{const _0x2f5b88=_0x53b42f;for(var _0x15ae7e=_0x43c45c>0x1?void 0x0:_0x43c45c?Wi(_0x4b5218,_0xe4878):_0x4b5218,_0x912ab5=_0x4574fe[_0x2f5b88(0x419)]-0x1,_0x22ec58;_0x912ab5>=0x0;_0x912ab5--)(_0x22ec58=_0x4574fe[_0x912ab5])&&(_0x15ae7e=(_0x43c45c?_0x22ec58(_0x4b5218,_0xe4878,_0x15ae7e):_0x22ec58(_0x15ae7e))||_0x15ae7e);return _0x43c45c&&_0x15ae7e&&Vi(_0x4b5218,_0xe4878,_0x15ae7e),_0x15ae7e;},rt=(_0x38f0a3,_0x5b8a39)=>(_0x1b008d,_0x2badb4)=>_0x5b8a39(_0x1b008d,_0x2badb4,_0x38f0a3);const Yi=[_0x53b42f(0x3ad),'image/jpeg',_0x53b42f(0x4b1),'image/gif',_0x53b42f(0x396)],Ki=0x5*0x400*0x400,Xi=_0x53b42f(0x426),qi='/universer-api/stream/file/upload',zi=_0x53b42f(0x1eb),Ji='/universer-api/file/{fileID}/sign-url';let $e=class{constructor(_0x5456e9,_0x276fb0){const _0x20207e=_0x53b42f;d(this,_0x20207e(0x30d),0x0),d(this,'_change$',new g[(_0x20207e(0x298))]()),d(this,_0x20207e(0x300),this[_0x20207e(0x203)]),d(this,_0x20207e(0x484),new Map()),(this['_httpService']=_0x5456e9,this['_configService']=_0x276fb0);}[_0x53b42f(0x332)](_0x3cad8d){const _0x4e5cc8=_0x53b42f;this[_0x4e5cc8(0x30d)]=_0x3cad8d,this['_change$'][_0x4e5cc8(0x414)](_0x3cad8d);}[_0x53b42f(0x25c)](_0x5eb06f,_0x42e398){const _0x56bac9=_0x53b42f;if(_0x42e398===A[_0x56bac9(0x336)][_0x56bac9(0x485)]){const _0x5334ec=new Image();return _0x5334ec['src']=_0x5eb06f,_0x5334ec;}return this['_imageSourceCache'][_0x56bac9(0x3d4)](_0x5eb06f);}[_0x53b42f(0x176)](_0x47995f,_0x204a0d,_0x5bc6b1){const _0x1b61ea=_0x53b42f;_0x204a0d===A[_0x1b61ea(0x336)][_0x1b61ea(0x485)]||_0x5bc6b1==null||this[_0x1b61ea(0x484)][_0x1b61ea(0x2e0)](_0x47995f,_0x5bc6b1);}async[_0x53b42f(0x39e)](_0x5329d9){const _0xcac383=_0x53b42f;try{const _0x418842=this['_replaceFileID'](this[_0xcac383(0x402)](),''+_0x5329d9),_0x30aaf0=(await this[_0xcac383(0x152)][_0xcac383(0x3d4)](_0x418842))[_0xcac383(0x4cc)];return _0x30aaf0[_0xcac383(0x150)]&&_0x30aaf0[_0xcac383(0x150)]['code']===ft['OK']?Promise[_0xcac383(0x4d2)](_0x30aaf0['url']):Promise[_0xcac383(0x1bf)](_0x30aaf0['error']);}catch(_0x1d6510){return Promise[_0xcac383(0x1bf)](_0x1d6510);}}async[_0x53b42f(0x444)](_0x53ccf2){const _0x57f71c=_0x53b42f;let _0x785b2f='';if(!Yi[_0x57f71c(0x245)](_0x53ccf2['type']))return this['_decreaseWaiting'](),Promise[_0x57f71c(0x1bf)](new Error(A['ImageUploadStatusType'][_0x57f71c(0x4d8)]));if(_0x53ccf2[_0x57f71c(0x22a)]>Ki)return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x219)]));try{const _0x38b7e4=new FormData();_0x38b7e4[_0x57f71c(0x2b3)](_0x57f71c(0x1b3),_0x53ccf2);const _0x2d5c69=this[_0x57f71c(0x1ae)]()+_0x57f71c(0x3ac)+_0x53ccf2['size'][_0x57f71c(0x423)](),_0x393225=await(await fetch(_0x2d5c69,{'method':_0x57f71c(0x216),'body':_0x38b7e4}))[_0x57f71c(0x18a)]();if(typeof _0x393225[_0x57f71c(0x250)]!='string')return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)]['ERROR_IMAGE']));_0x785b2f=_0x393225[_0x57f71c(0x250)];}catch{return this[_0x57f71c(0x299)](),Promise[_0x57f71c(0x1bf)](new Error(A[_0x57f71c(0x48b)][_0x57f71c(0x321)]));}return new Promise((_0x289b0c,_0x25fceb)=>{const _0x4bc48c=_0x57f71c,_0x4374b1=new FileReader();_0x4374b1[_0x4bc48c(0x363)](_0x53ccf2),_0x4374b1[_0x4bc48c(0x2d6)]=_0x14c12c=>{const _0x287f92=_0x4bc48c;var _0x5bd074;const _0x3e907c=(_0x5bd074=_0x14c12c['target'])==null?void 0x0:_0x5bd074[_0x287f92(0x47a)];if(_0x3e907c==null){this[_0x287f92(0x299)](),_0x25fceb(new Error(A[_0x287f92(0x48b)][_0x287f92(0x321)]));return;}const _0x52f36f=a[_0x287f92(0x3a8)][_0x287f92(0x1f7)](0x6);_0x289b0c({'imageId':_0x52f36f,'imageSourceType':A[_0x287f92(0x336)][_0x287f92(0x2d9)],'source':_0x785b2f,'base64Cache':_0x3e907c,'status':A[_0x287f92(0x48b)]['SUCCUSS']}),this[_0x287f92(0x299)]();};});}[_0x53b42f(0x1ae)](){const _0x2f4f39=_0x53b42f;var _0x574443;return(_0x574443=this['_configService'][_0x2f4f39(0x1d8)](Xi))!=null?_0x574443:qi;}['_getSignURL'](){const _0x42841c=_0x53b42f;var _0x86096b;return(_0x86096b=this[_0x42841c(0x2a6)]['getConfig'](zi))!=null?_0x86096b:Ji;}[_0x53b42f(0x3d3)](_0x304ac1,_0x3d6591){const _0x448c09=_0x53b42f;return _0x304ac1[_0x448c09(0x153)]('{fileID}',_0x3d6591);}[_0x53b42f(0x299)](){const _0x383a9a=_0x53b42f;this[_0x383a9a(0x30d)]-=0x1,this['_change$'][_0x383a9a(0x414)](this[_0x383a9a(0x30d)]);}};$e=Gi([rt(0x0,h['Inject'](P[_0x53b42f(0x452)])),rt(0x1,a['IConfigService'])],$e);var Pt=Object[_0x53b42f(0x38a)],Zi=Object[_0x53b42f(0x2a8)],Qi=(_0x2df94c,_0xbcda71,_0x570200)=>_0xbcda71 in _0x2df94c?Pt(_0x2df94c,_0xbcda71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x570200}):_0x2df94c[_0xbcda71]=_0x570200,en=(_0x1d77d4,_0x87cfd8,_0x529906,_0x5051fa)=>{for(var _0x28451f=_0x5051fa>0x1?void 0x0:_0x5051fa?Zi(_0x87cfd8,_0x529906):_0x87cfd8,_0x99e65b=_0x1d77d4['length']-0x1,_0x14518a;_0x99e65b>=0x0;_0x99e65b--)(_0x14518a=_0x1d77d4[_0x99e65b])&&(_0x28451f=(_0x5051fa?_0x14518a(_0x87cfd8,_0x529906,_0x28451f):_0x14518a(_0x28451f))||_0x28451f);return _0x5051fa&&_0x28451f&&Pt(_0x87cfd8,_0x529906,_0x28451f),_0x28451f;},ot=(_0x58d1a6,_0xb09d95)=>(_0x89e34,_0x45f6fd)=>_0xb09d95(_0x89e34,_0x45f6fd,_0x58d1a6),tn=(_0x453ef0,_0x2c3841,_0x23b17f)=>Qi(_0x453ef0,_0x2c3841+'',_0x23b17f);const sn=_0x53b42f(0x37d);exports[_0x53b42f(0x15e)]=class extends a['Plugin']{constructor(_0x1d6878,_0x24f969,_0x4eb417){const _0x137c33=_0x53b42f;super(),this[_0x137c33(0x481)]=_0x1d6878,this[_0x137c33(0x42f)]=_0x24f969,this[_0x137c33(0x45d)]=_0x4eb417;}[_0x53b42f(0x470)](_0xa32c4b){const _0x1da3ad=_0x53b42f;var _0x26f4c7,_0x24e516,_0x11fc1a,_0x45d55e,_0x374786;_0xa32c4b[_0x1da3ad(0x378)](a[_0x1da3ad(0x4a1)])&&this[_0x1da3ad(0x42f)]['error'](_0x1da3ad(0x3bd),_0x1da3ad(0x3a4));let _0x439a21=[[a[_0x1da3ad(0x4a1)],{'useClass':je}],[exports[_0x1da3ad(0x14a)]],[Ve],[P[_0x1da3ad(0x452)]],[Ge,{'useClass':wt}],[G],[exports[_0x1da3ad(0x4b3)]],[P['WebSocketService']],[fe],[ge],[ve],[Fe],[Ie],[Be,{'useClass':(_0x24e516=(_0x26f4c7=this[_0x1da3ad(0x481)])==null?void 0x0:_0x26f4c7[_0x1da3ad(0x21c)])!=null?_0x24e516:exports[_0x1da3ad(0x236)]}],[P[_0x1da3ad(0x3a9)],{'useClass':P['XHRHTTPImplementation']}],[a[_0x1da3ad(0x174)],{'useClass':Ae}],[a[_0x1da3ad(0x226)],{'useClass':exports[_0x1da3ad(0x362)]}],[A['IImageIoService'],{'useClass':$e}],[exports[_0x1da3ad(0x301)]],[exports[_0x1da3ad(0x265)]],[exports['DesktopCollaborationStatusDisplayController']],[de],[J]];(_0x11fc1a=this['_config'])!=null&&_0x11fc1a[_0x1da3ad(0x3ba)]&&_0x439a21['push']([pe,{'useClass':hs}]),((_0x45d55e=this[_0x1da3ad(0x481)])==null?void 0x0:_0x45d55e[_0x1da3ad(0x3a2)])==null||this['_config']['collaborationUniverTypes'][_0x1da3ad(0x245)](a[_0x1da3ad(0x142)]['UNIVER_SHEET'])?_0x439a21['push']([ue]):this[_0x1da3ad(0x481)][_0x1da3ad(0x3a2)]['includes'](a['UniverInstanceType']['UNIVER_DOC'])&&_0x439a21['push']([Se]),_0x439a21=a[_0x1da3ad(0x370)](_0x439a21,(_0x374786=this[_0x1da3ad(0x481)])==null?void 0x0:_0x374786[_0x1da3ad(0x1e1)]),_0x439a21[_0x1da3ad(0x421)](_0x5de78b=>_0xa32c4b[_0x1da3ad(0x1e5)](_0x5de78b)),_0xa32c4b[_0x1da3ad(0x3d4)](P[_0x1da3ad(0x452)])[_0x1da3ad(0x3ce)]({'priority':0x14,'interceptor':P[_0x1da3ad(0x3c0)]({'maxParallel':0x6})}),this[_0x1da3ad(0x1c4)]();}[_0x53b42f(0x1c4)](){const _0x4e69ab=_0x53b42f;var _0x1e96ae,_0x4d5579;(_0x1e96ae=this[_0x4e69ab(0x481)])!=null&&_0x1e96ae[_0x4e69ab(0x253)]||this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](exports[_0x4e69ab(0x4b3)])[_0x4e69ab(0x3be)](),(_0x4d5579=this[_0x4e69ab(0x481)])!=null&&_0x4d5579[_0x4e69ab(0x166)]&&this[_0x4e69ab(0x45d)][_0x4e69ab(0x3d4)](Ie);}},tn(exports[_0x53b42f(0x15e)],_0x53b42f(0x2fe),sn),exports[_0x53b42f(0x15e)]=en([a[_0x53b42f(0x14c)](u[_0x53b42f(0x365)]),ot(0x1,a[_0x53b42f(0x4c8)]),ot(0x2,h[_0x53b42f(0x295)](h['Injector']))],exports[_0x53b42f(0x15e)]),exports[_0x53b42f(0x46a)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=vt,exports[_0x53b42f(0x24a)]=_t,exports['CollaborationStatus']=w,exports[_0x53b42f(0x14d)]=Dt,exports[_0x53b42f(0x32a)]=ut,exports[_0x53b42f(0x2ac)]=xe,exports[_0x53b42f(0x261)]=Be,exports[_0x53b42f(0x476)]=Ge,exports['LOCAL_CACHE_INTERVAL_KEY']=St,exports[_0x53b42f(0x465)]=gt,exports[_0x53b42f(0x430)]=ht,exports['SNAPSHOT_SERVER_URL_KEY']=ct,exports[_0x53b42f(0x44c)]=lt,exports['SessionStatus']=W,exports[_0x53b42f(0x38d)]=wt,exports[_0x53b42f(0x18c)]=mt,exports['serializeCombRequest']=It;