@univerjs-pro/collaboration-client 0.4.2-nightly.202410291606 → 0.4.2-nightly.202410310419

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 DELETED
@@ -1 +0,0 @@
1
- 'use strict';const _0x37a374=_0x513c;(function(_0x4497b9,_0x53eb29){const _0x134f70=_0x513c,_0x36a86f=_0x4497b9();while(!![]){try{const _0x5524a6=parseInt(_0x134f70(0x40e))/0x1+-parseInt(_0x134f70(0x513))/0x2+parseInt(_0x134f70(0x4c4))/0x3*(-parseInt(_0x134f70(0x30a))/0x4)+-parseInt(_0x134f70(0x5a2))/0x5*(parseInt(_0x134f70(0x594))/0x6)+parseInt(_0x134f70(0x3e5))/0x7*(parseInt(_0x134f70(0x1d5))/0x8)+parseInt(_0x134f70(0x395))/0x9*(parseInt(_0x134f70(0x31e))/0xa)+parseInt(_0x134f70(0x40b))/0xb;if(_0x5524a6===_0x53eb29)break;else _0x36a86f['push'](_0x36a86f['shift']());}catch(_0x59b6db){_0x36a86f['push'](_0x36a86f['shift']());}}}(_0xad98,0x507d8));var Mn=Object['defineProperty'],An=(_0x4e6085,_0x26c063,_0x1f37a6)=>_0x26c063 in _0x4e6085?Mn(_0x4e6085,_0x26c063,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f37a6}):_0x4e6085[_0x26c063]=_0x1f37a6,I=(_0x791700,_0x1accd9,_0x27c854)=>An(_0x791700,typeof _0x1accd9!=_0x37a374(0x4a6)?_0x1accd9+'':_0x1accd9,_0x27c854);Object[_0x37a374(0x55e)](exports,Symbol[_0x37a374(0x614)],{'value':_0x37a374(0x471)});const a=require(_0x37a374(0x5d2)),A=require(_0x37a374(0x63e)),V=require('rxjs/operators'),Se=require('@univerjs/design'),te=require(_0x37a374(0x4d5)),Q=require(_0x37a374(0x51a)),p=require(_0x37a374(0x493)),Nn=require(_0x37a374(0x3d4)),Z=require(_0x37a374(0x51e)),k=require(_0x37a374(0x4de)),K=require(_0x37a374(0x4c3)),Re=require(_0x37a374(0x601)),ie=require('@univerjs/drawing'),wt=require('@univerjs/engine-formula'),Te=require(_0x37a374(0x1f5)),z=require(_0x37a374(0x5c0)),Ln=require(_0x37a374(0x24c)),Jt='SNAPSHOT_SERVER_URL_KEY',xn=_0x37a374(0x1d8),Zt=_0x37a374(0x2a3),$n='SEND_CHANGESET_TIMEOUT',jn=0x7d0,Qt=_0x37a374(0x41a),Hn=_0x37a374(0x64f),en=_0x37a374(0x64c),Bn=0x7530,It=_0x37a374(0x4c9),tn=0x4e20,kn=0x4e20,nn=_0x37a374(0x200),Wn=0x3,sn='LOCAL_CACHE_INTERVAL',Fn=0x3e8,rn=_0x37a374(0x57d),Vn='/universer-api/comb',on=_0x37a374(0x20f),Gn=_0x37a374(0x45c);var an=(_0x2f511e=>(_0x2f511e[_0x2f511e['UNDEFINED']=0x0]=_0x37a374(0x55b),_0x2f511e[_0x2f511e['OK']=0x1]='OK',_0x2f511e[_0x2f511e[_0x37a374(0x575)]=0x2]=_0x37a374(0x575),_0x2f511e[_0x2f511e[_0x37a374(0x303)]=0x3]=_0x37a374(0x303),_0x2f511e[_0x2f511e[_0x37a374(0x2ca)]=0x4]='NOT_FOUND',_0x2f511e[_0x2f511e[_0x37a374(0x59a)]=0x5]=_0x37a374(0x59a),_0x2f511e[_0x2f511e[_0x37a374(0x66d)]=0x6]=_0x37a374(0x66d),_0x2f511e[_0x2f511e[_0x37a374(0x20c)]=0x7]=_0x37a374(0x20c),_0x2f511e[_0x2f511e[_0x37a374(0x326)]=0x8]=_0x37a374(0x326),_0x2f511e[_0x2f511e[_0x37a374(0x3d6)]=0x9]=_0x37a374(0x3d6),_0x2f511e[_0x2f511e['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x37a374(0x3c7),_0x2f511e[_0x2f511e[_0x37a374(0x3fb)]=0x1771]=_0x37a374(0x3fb),_0x2f511e[_0x2f511e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x37a374(0x679),_0x2f511e[_0x2f511e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x37a374(0x564),_0x2f511e[_0x2f511e['APPLY_REJECT']=0x1b59]=_0x37a374(0x474),_0x2f511e[_0x2f511e[_0x37a374(0x4e7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2f511e[_0x2f511e[_0x37a374(0x58e)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x2f511e[_0x2f511e[_0x37a374(0x41e)]=0x1b5c]=_0x37a374(0x41e),_0x2f511e[_0x2f511e[_0x37a374(0x60f)]=0x1b5d]=_0x37a374(0x60f),_0x2f511e[_0x2f511e[_0x37a374(0x659)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x2f511e[_0x2f511e[_0x37a374(0x446)]=0x2329]=_0x37a374(0x446),_0x2f511e[_0x2f511e[_0x37a374(0x512)]=0x232a]=_0x37a374(0x512),_0x2f511e[_0x2f511e[_0x37a374(0x488)]=0x232b]=_0x37a374(0x488),_0x2f511e[_0x2f511e[_0x37a374(0x4f4)]=0x232c]=_0x37a374(0x4f4),_0x2f511e[_0x2f511e[_0x37a374(0x543)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2f511e[_0x2f511e[_0x37a374(0x61d)]=0x2711]=_0x37a374(0x61d),_0x2f511e[_0x2f511e[_0x37a374(0x2a4)]=0x2712]=_0x37a374(0x2a4),_0x2f511e[_0x2f511e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x37a374(0x2d2),_0x2f511e[_0x2f511e[_0x37a374(0x516)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x2f511e[_0x2f511e[_0x37a374(0x1d3)]=-0x1]='UNRECOGNIZED',_0x2f511e))(an||{}),se=(_0x4e3218=>(_0x4e3218[_0x4e3218[_0x37a374(0x4be)]=0x0]='UNIVER_UNKNOWN',_0x4e3218[_0x4e3218['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x4e3218[_0x4e3218[_0x37a374(0x362)]=0x2]=_0x37a374(0x362),_0x4e3218[_0x4e3218[_0x37a374(0x2ec)]=0x3]=_0x37a374(0x2ec),_0x4e3218[_0x4e3218[_0x37a374(0x582)]=0x4]='UNIVER_PROJECT',_0x4e3218[_0x4e3218['UNRECOGNIZED']=-0x1]=_0x37a374(0x1d3),_0x4e3218))(se||{}),G=(_0x6ed77b=>(_0x6ed77b[_0x6ed77b[_0x37a374(0x462)]=0x0]=_0x37a374(0x462),_0x6ed77b[_0x6ed77b[_0x37a374(0x297)]=0x1]=_0x37a374(0x297),_0x6ed77b[_0x6ed77b[_0x37a374(0x1cb)]=0x2]=_0x37a374(0x1cb),_0x6ed77b[_0x6ed77b[_0x37a374(0x64b)]=0x3]=_0x37a374(0x64b),_0x6ed77b[_0x6ed77b['INGEST']=0x4]='INGEST',_0x6ed77b[_0x6ed77b[_0x37a374(0x415)]=0x5]=_0x37a374(0x415),_0x6ed77b[_0x6ed77b['RECV']=0x6]=_0x37a374(0x2b6),_0x6ed77b[_0x6ed77b[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x6ed77b))(G||{}),Ct=(_0x2a551a=>(_0x2a551a[_0x2a551a['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x2a551a[_0x2a551a['OK']=0x1]='OK',_0x2a551a[_0x2a551a['FAIL']=0x2]=_0x37a374(0x400),_0x2a551a[_0x2a551a[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x2a551a))(Ct||{}),cn=(_0x162ca8=>(_0x162ca8[_0x162ca8['Undefined']=0x0]=_0x37a374(0x617),_0x162ca8[_0x162ca8[_0x37a374(0x26e)]=0x1]=_0x37a374(0x26e),_0x162ca8[_0x162ca8[_0x37a374(0x1f6)]=0x2]='HttpExport',_0x162ca8[_0x162ca8['UnitEmbedded']=0x3]='UnitEmbedded',_0x162ca8[_0x162ca8['UnitSnapshot']=0x4]=_0x37a374(0x393),_0x162ca8[_0x162ca8[_0x37a374(0x1d3)]=-0x1]=_0x37a374(0x1d3),_0x162ca8))(cn||{});const ne=_0x37a374(0x3b3),Yn={};function ln(_0x3810ac){const _0x150e35=_0x37a374;var _0x36df5f,_0x4ef96f,_0x4af83a,_0x5c5db7,_0x27275b;const _0x3794d1=_0x3810ac['data'],_0x4081b8=JSON[_0x150e35(0x558)](_0x3794d1);switch(_0x4081b8[_0x150e35(0x3eb)]){case G[_0x150e35(0x415)]:case G[_0x150e35(0x297)]:{const _0x38a470=_0x4081b8[_0x150e35(0x3fc)];return{..._0x4081b8,'data':_0x38a470,'cmd':_0x4081b8[_0x150e35(0x3eb)]};}case G[_0x150e35(0x1cb)]:{const _0x56ab24=_0x4081b8[_0x150e35(0x497)];return{..._0x4081b8,'data':_0x56ab24,'cmd':_0x4081b8[_0x150e35(0x3eb)]};}case G[_0x150e35(0x2b6)]:{const _0xd80beb=_0x4081b8['collaMsg'];switch(_0xd80beb[_0x150e35(0x1d7)]){case p['CollaborationEvent'][_0x150e35(0x3f8)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x36df5f=_0xd80beb[_0x150e35(0x367)])==null?void 0x0:_0x36df5f['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x23b)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x4ef96f=_0xd80beb[_0x150e35(0x43e)])==null?void 0x0:_0x4ef96f['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)]['NEW_CHANGESETS']:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x4af83a=_0xd80beb['newCsEvent'])==null?void 0x0:_0x4af83a['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)]['CHANGESET_REJ']:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x5c5db7=_0xd80beb['csRejEvent'])==null?void 0x0:_0x5c5db7['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x24f)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':(_0x27275b=_0xd80beb[_0x150e35(0x571)])==null?void 0x0:_0x27275b['cs']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x2f6)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['updateCursorEvent']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x4e9)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x3cc)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x5de)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['leaveEvent']},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x4e4)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb['liveShareNewHost']},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x2d3)]:case p[_0x150e35(0x521)]['LIVESHARE_OPERATION']:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x25c)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x61c)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x4a2)]},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x2f0)]:return{..._0x4081b8,'data':_0xd80beb,'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p['CollaborationEvent'][_0x150e35(0x487)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x351)]},'cmd':_0x4081b8['cmd']};case p[_0x150e35(0x521)][_0x150e35(0x4ed)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x5eb)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};case p[_0x150e35(0x521)][_0x150e35(0x544)]:return{..._0x4081b8,'data':{..._0xd80beb,'data':_0xd80beb[_0x150e35(0x2df)]},'cmd':_0x4081b8[_0x150e35(0x3eb)]};default:return _0x4081b8;}}default:return _0x4081b8;}}function hn(_0x20269d){const _0x55398a=_0x37a374;switch(_0x20269d['cmd']){case G[_0x55398a(0x415)]:case G[_0x55398a(0x297)]:return JSON['stringify']({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d[_0x55398a(0x55a)]});case G['INGEST']:{let _0x31ab34;switch(_0x20269d['data']['eventID']){case p[_0x55398a(0x521)][_0x55398a(0x2f6)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x2f6)],'updateCursorEvent':_0x20269d['data']['data']};break;}case p[_0x55398a(0x521)][_0x55398a(0x5de)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x5de)],'leaveEvent':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x4e9)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x4e9)],'joinEvent':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x4e4)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x4e4)],'liveShareNewHost':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x416)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x416)],'liveShareOperation':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p['CollaborationEvent']['LIVESHARE_TERMINATE']:{_0x31ab34={'eventID':p[_0x55398a(0x521)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x20269d[_0x55398a(0x470)][_0x55398a(0x470)]};break;}case p[_0x55398a(0x521)][_0x55398a(0x3aa)]:{_0x31ab34={'eventID':p[_0x55398a(0x521)][_0x55398a(0x3aa)],'liveShareRequestHost':_0x20269d[_0x55398a(0x470)]['data']};break;}case p[_0x55398a(0x521)]['LIVESHARE_FETCH_OPERATIONS']:{_0x31ab34={'eventID':p[_0x55398a(0x521)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x31ab34={'eventID':_0x20269d[_0x55398a(0x470)][_0x55398a(0x1d7)]};}return JSON['stringify']({'cmd':_0x20269d['cmd'],'routeKey':_0x20269d[_0x55398a(0x55a)],'collaMsg':_0x31ab34});}case G[_0x55398a(0x1cb)]:return JSON[_0x55398a(0x3df)]({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d['routeKey'],'joinReq':_0x20269d[_0x55398a(0x470)]});case G[_0x55398a(0x64b)]:return JSON[_0x55398a(0x3df)]({'cmd':_0x20269d[_0x55398a(0x3eb)],'routeKey':_0x20269d[_0x55398a(0x55a)],'leaveReq':_0x20269d[_0x55398a(0x470)]});default:throw new Error(_0x55398a(0x4ce));}}var Kn=Object[_0x37a374(0x55e)],qn=Object[_0x37a374(0x4a5)],zn=(_0x2a0d8b,_0x2b98d0,_0x3ea425,_0x17e747)=>{const _0x4b2ace=_0x37a374;for(var _0x5e5aef=_0x17e747>0x1?void 0x0:_0x17e747?qn(_0x2b98d0,_0x3ea425):_0x2b98d0,_0x143148=_0x2a0d8b[_0x4b2ace(0x330)]-0x1,_0x52ba84;_0x143148>=0x0;_0x143148--)(_0x52ba84=_0x2a0d8b[_0x143148])&&(_0x5e5aef=(_0x17e747?_0x52ba84(_0x2b98d0,_0x3ea425,_0x5e5aef):_0x52ba84(_0x5e5aef))||_0x5e5aef);return _0x17e747&&_0x5e5aef&&Kn(_0x2b98d0,_0x3ea425,_0x5e5aef),_0x5e5aef;},De=(_0x2f9dbf,_0x25c204)=>(_0x50d3b6,_0x25e4b1)=>_0x25c204(_0x50d3b6,_0x25e4b1,_0x2f9dbf);const Et=a[_0x37a374(0x3e0)](_0x37a374(0x27c));function Xn(_0x1a0211,_0x11d1d5,_0xdd68d0){const _0x17f7f4=_0x37a374;return _0x1a0211+'/'+_0x11d1d5+_0x17f7f4(0x625)+_0xdd68d0+_0x17f7f4(0x4a4);}exports['CollaborationSocketService']=class extends a[_0x37a374(0x65c)]{constructor(_0x26f201,_0xb14f75,_0x2ca1e4,_0x3d7cb7,_0x525ce8){const _0x23b9ce=_0x37a374;super(),this[_0x23b9ce(0x526)]=_0x26f201,this[_0x23b9ce(0x4e1)]=_0xb14f75,this[_0x23b9ce(0x3e7)]=_0x2ca1e4,this[_0x23b9ce(0x58a)]=_0x3d7cb7,this[_0x23b9ce(0x1c8)]=_0x525ce8;}[_0x37a374(0x256)](_0xb7349){const _0x402a45=_0x37a374,_0x30b83d=this['_ws'][_0x402a45(0x256)](_0xb7349);if(!_0x30b83d)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x226851=new a[(_0x402a45(0x2f8))](),_0x53ceb5=new A[(_0x402a45(0x383))]();_0x226851['add'](_0x30b83d[_0x402a45(0x486)]['subscribe'](_0x171355=>_0x53ceb5[_0x402a45(0x24e)](_0x171355))),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x53ceb5[_0x402a45(0x1c0)]()));const _0x1a78ce=new A['Subject']();_0x226851['add'](_0x30b83d['error$'][_0x402a45(0x274)](_0x57d8e8=>_0x1a78ce['next'](_0x57d8e8))),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x1a78ce['complete']()));const _0x463869=new A[(_0x402a45(0x383))]();_0x226851[_0x402a45(0x63d)](_0x30b83d[_0x402a45(0x5a1)]['subscribe'](_0xe90b2d=>{const _0x5e8d58=ln(_0xe90b2d);_0x463869['next'](_0x5e8d58);})),_0x226851[_0x402a45(0x63d)](a[_0x402a45(0x219)](()=>_0x463869[_0x402a45(0x1c0)]()));let _0x2a3509;const _0x5dda44=()=>{const _0x46eefb=_0x402a45;_0x1a78ce[_0x46eefb(0x24e)](new Event(_0x46eefb(0x248))),_0x53ceb5['next'](new CloseEvent(_0x46eefb(0x248))),_0x2a3509[_0x46eefb(0x46c)]();};return _0x2a3509={'memberID':'','close$':_0x53ceb5[_0x402a45(0x483)](),'error$':_0x1a78ce[_0x402a45(0x483)](),'open$':_0x30b83d[_0x402a45(0x547)],'message$':_0x463869[_0x402a45(0x483)](),'send':_0x2cf1c8=>{const _0x21ac6d=_0x402a45;if(_0x2cf1c8[_0x21ac6d(0x3eb)]===G[_0x21ac6d(0x480)]){if(_0x2cf1c8[_0x21ac6d(0x470)][_0x21ac6d(0x1d7)]===p[_0x21ac6d(0x521)][_0x21ac6d(0x380)]){this['_submitChangeset'](_0x2a3509,_0x2cf1c8[_0x21ac6d(0x470)])[_0x21ac6d(0x4bd)](_0x46f259=>{const _0xfaee=_0x21ac6d;this[_0xfaee(0x58a)][_0xfaee(0x237)](_0x46f259),_0x5dda44();});return;}if(_0x2cf1c8['data'][_0x21ac6d(0x1d7)]===p[_0x21ac6d(0x521)][_0x21ac6d(0x3e8)]){const _0x3190d0=_0x2cf1c8[_0x21ac6d(0x470)];this['_fetchMissChangesets'](_0x3190d0)['then'](_0x86535a=>{const _0x554994=_0x21ac6d;_0x463869[_0x554994(0x24e)]({'cmd':G[_0x554994(0x2b6)],'code':Ct['OK'],'routeKey':_0x3190d0[_0x554994(0x470)][_0x554994(0x505)],'routeType':'','data':{'eventID':p[_0x554994(0x521)][_0x554994(0x4af)],'data':{'changesets':_0x86535a}}});})['catch'](_0x208eff=>{const _0x55c5ad=_0x21ac6d;this[_0x55c5ad(0x58a)]['error'](_0x208eff),_0x5dda44();});return;}}_0x30b83d[_0x21ac6d(0x554)](hn(_0x2cf1c8));},'close':()=>{const _0x3e1d69=_0x402a45;_0x30b83d['close'](),_0x226851[_0x3e1d69(0x37c)]();}},_0x2a3509;}async[_0x37a374(0x1d1)](_0x318798,_0x3d2a95){const _0x59b08d=_0x37a374;var _0x5268ec,_0x1b25a4;const {unitType:_0x387356,unitID:_0x33bb5d,changeset:_0x5d2fad}=_0x3d2a95[_0x59b08d(0x470)],_0x2d3a17={'unitID':_0x33bb5d,'memberID':_0x318798[_0x59b08d(0x280)],'type':_0x387356,'changeset':p['parseChangesetToProtocol'](_0x5d2fad)},_0x1b578f=this['_configService']['getConfig'](rn),_0x1835e8=this['_configService'][_0x59b08d(0x37d)](ne),_0x51af98=Xn((_0x1b25a4=(_0x5268ec=_0x1835e8==null?void 0x0:_0x1835e8['collabSubmitChangesetUrl'])!=null?_0x5268ec:_0x1b578f)!=null?_0x1b25a4:Vn,_0x387356,_0x33bb5d);try{await this[_0x59b08d(0x526)]['post'](_0x51af98,{'body':_0x2d3a17});}catch(_0x5c48d0){throw this[_0x59b08d(0x58a)][_0x59b08d(0x237)]('[CollaborationSession]',_0x59b08d(0x52e)),_0x5c48d0;}}async[_0x37a374(0x652)](_0x4a6c30){const _0x4d0026=_0x37a374,{unitID:_0x14dbc6,from:_0x1ae4a4,to:_0x22b6ab,unitType:_0x44fe84}=_0x4a6c30[_0x4d0026(0x470)];return(await this[_0x4d0026(0x1c8)][_0x4d0026(0x525)]({'metadata':void 0x0},{'unitID':_0x14dbc6,'type':_0x44fe84,'from':_0x1ae4a4,'to':_0x22b6ab}))[_0x4d0026(0x48c)];}},exports['CollaborationSocketService']=zn([De(0x0,a[_0x37a374(0x629)](Q['HTTPService'])),De(0x1,a[_0x37a374(0x629)](Q[_0x37a374(0x319)])),De(0x2,a[_0x37a374(0x30b)]),De(0x3,a[_0x37a374(0x217)]),De(0x4,p[_0x37a374(0x5cb)])],exports[_0x37a374(0x23f)]);const Jn=_0x37a374(0x2a7);function Zn(_0x32c6b5){const _0x308fcf=_0x37a374;return JSON[_0x308fcf(0x3df)](_0x32c6b5)[_0x308fcf(0x330)];}class bt{constructor(){const _0x2842b6=_0x37a374;I(this,_0x2842b6(0x41f),new A[(_0x2842b6(0x383))]()),I(this,'commentUpdate$',this[_0x2842b6(0x41f)]['asObservable']());}[_0x37a374(0x600)](_0xe37265){const _0x2e44dd=_0x37a374;this['_commentUpdate$'][_0x2e44dd(0x24e)](_0xe37265);}}var Qn=Object['defineProperty'],ei=Object[_0x37a374(0x4a5)],ti=(_0x41390d,_0x26921a,_0x20784a,_0x539860)=>{const _0x187cae=_0x37a374;for(var _0x2eeedb=_0x539860>0x1?void 0x0:_0x539860?ei(_0x26921a,_0x20784a):_0x26921a,_0x231322=_0x41390d[_0x187cae(0x330)]-0x1,_0xbb5df3;_0x231322>=0x0;_0x231322--)(_0xbb5df3=_0x41390d[_0x231322])&&(_0x2eeedb=(_0x539860?_0xbb5df3(_0x26921a,_0x20784a,_0x2eeedb):_0xbb5df3(_0x2eeedb))||_0x2eeedb);return _0x539860&&_0x2eeedb&&Qn(_0x26921a,_0x20784a,_0x2eeedb),_0x2eeedb;},Pt=(_0x415f66,_0x259763)=>(_0x1b0388,_0x16bc9b)=>_0x259763(_0x1b0388,_0x16bc9b,_0x415f66);exports[_0x37a374(0x33d)]=class extends a['Disposable']{constructor(_0x4e5964,_0x7bf9ac){const _0x39278e=_0x37a374;super(),I(this,_0x39278e(0x633),new Map()),(this[_0x39278e(0x1d4)]=_0x4e5964,this[_0x39278e(0x48d)]=_0x7bf9ac,this[_0x39278e(0x4d6)](a[_0x39278e(0x219)](A['merge'](this[_0x39278e(0x1d4)][_0x39278e(0x44a)](a[_0x39278e(0x22d)][_0x39278e(0x362)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x29b7f4=>_0x29b7f4['getUnitId']())),this[_0x39278e(0x1d4)]['getTypeOfUnitDisposed$'](a[_0x39278e(0x22d)][_0x39278e(0x619)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x12d7fe=>_0x12d7fe[_0x39278e(0x615)]())),this[_0x39278e(0x1d4)][_0x39278e(0x44a)](a[_0x39278e(0x22d)][_0x39278e(0x2ec)])[_0x39278e(0x4d7)](V[_0x39278e(0x323)](_0x7d6ecf=>_0x7d6ecf[_0x39278e(0x615)]())))['subscribe'](_0x22147a=>this[_0x39278e(0x241)](_0x22147a)))));}[_0x37a374(0x4aa)](_0x2ca4b6){const _0x584379=_0x37a374;this[_0x584379(0x48d)][_0x584379(0x4aa)](_0x2ca4b6);}[_0x37a374(0x1eb)](){const _0x1ddb63=_0x37a374;return this[_0x1ddb63(0x48d)][_0x1ddb63(0x1eb)]();}['updateMember'](_0x511bc1,_0x2349cc){const _0x40e40d=_0x37a374;let _0x44d5c3=this[_0x40e40d(0x633)][_0x40e40d(0x5bf)](_0x511bc1);_0x44d5c3||(_0x44d5c3=new ni(),this[_0x40e40d(0x633)][_0x40e40d(0x5d1)](_0x511bc1,_0x44d5c3)),_0x44d5c3['updateMember'](_0x2349cc);}[_0x37a374(0x595)](_0x11c31b,_0x4c660a){const _0x195aa2=_0x37a374,_0x4d384b=this[_0x195aa2(0x633)][_0x195aa2(0x5bf)](_0x11c31b);_0x4d384b&&_0x4d384b[_0x195aa2(0x595)](_0x4c660a);}[_0x37a374(0x1c4)](_0x3ed2bc){const _0x572d9e=_0x37a374;return this['_roomMembers'][_0x572d9e(0x5bf)](_0x3ed2bc);}[_0x37a374(0x2f4)](_0x307f88,_0x333947){const _0x295c7a=_0x37a374,_0x4eabd7=this[_0x295c7a(0x633)][_0x295c7a(0x5bf)](_0x307f88);if(_0x4eabd7)return _0x4eabd7[_0x295c7a(0x2f4)](_0x333947);}[_0x37a374(0x241)](_0x114d5f){const _0x5aa892=_0x37a374,_0x5c326b=this[_0x5aa892(0x633)][_0x5aa892(0x5bf)](_0x114d5f);_0x5c326b&&(_0x5c326b[_0x5aa892(0x37c)](),this[_0x5aa892(0x633)][_0x5aa892(0x412)](_0x114d5f));}[_0x37a374(0x37c)](){const _0x4b4e8d=_0x37a374;this['_roomMembers'][_0x4b4e8d(0x278)](_0x25a091=>_0x25a091[_0x4b4e8d(0x37c)]()),this[_0x4b4e8d(0x633)][_0x4b4e8d(0x65a)]();}},exports[_0x37a374(0x33d)]=ti([Pt(0x0,a[_0x37a374(0x662)]),Pt(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x403)]))],exports[_0x37a374(0x33d)]);function _0xad98(){const _0x167986=['randomUUID','_startDocCollabCursor','dispose$','INTERNAL_ERROR','_shouldReportTelemetry','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','RichTextEditingMutation','mutations','telemetry\x20info\x20is\x20not\x20initialized','_schedule','EXCHANGE_SIGN_URL_SERVER_URL_KEY','COLLAB_SUBMIT_CHANGESET_URL','hasher','_onRemoteRetry','handleInsertRangeMoveDown','_saveTaskMap','UNIVER_PROJECT','ILocalStorageService','image/jpeg','permission.title','[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.','roomMembers$','useDependency','words','_logService','status','_handleJoinEvent','finalize','APPLY_REVISION_CONFILICT','_injector','onTransformState','_colorAssignService','_syncEditingCollabCursor','collab-text-anchor-','3798672UWbuPq','removeMember','Malformed\x20UTF-8\x20data','DependentOn','POST','UniverIcon','UNAUTHENTICATED','Tools','random','none','_getRedoStack','max','SheetCollabCursorShape','message$','5vSCAUQ','_telemetryInfo','arc','SheetPermissionInitController','getUniverSheetInstance','charCodeAt','docStateChange$','getCurrentUnitForType','handleMoveRange','_cachedData','runRefRangeMutations','top','_startTelemetryCollaborationNewChangeset','_socketService','selections','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getSendChangesetTimeout','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','registerComponent','_awaitingChangeset','objects','AWAITING','target','show','saveImage','SheetSkeletonManagerService','InsertColCommandId','_timeoutTimer','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','get','react','salt','_substituteUndoStack','_localStorageService','_colorIndex','batchAllowed','_selfUnitIDs','$super','NodePositionConvertToCursor','_collabSessionService','init','ISnapshotServerService','event$','_messageService','getCollabEntity$','MoveRangeCommandId','repeat','set','@univerjs/core','_toggleOnline','getRangePointData','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_imageSourceCache','_change$','/object','_initStatusComponent','format','1em','flatMap','createDecryptor','USERS_LEAVE','onPointerMove$','switchMap','CompressMutationService','CollaborationSessionService','_id','_collaborationPaused','_handleLeaveEvent','combineLatest','ImageSourceType','/block/','collaboration.closeRoom','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','updatePermissionObjEvent','_doFinalize','textRanges','roles','_stopTelemetryCollaborationNewChangeset','toggleOffline','_onMessage','resourceIDs','objectID','getUndoRedoMutationParamsCache','readInt32LE','_memberService','_transformSelections','_onCursorUpdate','row','_map','children','includes','BlockCipher','/allowed','_handleHover','onCommentUpdate','@univerjs/docs','encode','onSendChangeset','StreamCipher','_getUploadFileURL','_scheduleCollaborationTimeoutTimer','fromEventSubject','_labelPosition','ranges','_onCombEvent','update','/universer-api/snapshot/','_transformStack','LocalUndoRedoService','APPLY_DUPLICATED','transform','collaboration-session-retry','_transformUndoRedoStack','_clearLocalCache','toStringTag','getUnitId','Vector2','Undefined','font','UNIVER_DOC','DataLoaderController','getAllMembers','LIVESHARE_TERMINATE','YUUMI_UNABLE_LOAD_URL','jiqing500','ACTIVE_UNIT_EVENT_CHANNEL','state','Decryptor','_createHandler','activeSheet$','_HTTPService','/unit/','getSheetObject','defs','focused$','Inject','isTransformMutationsWithChangesetFailure','onTransformChange$','/universer-api/stream/file/upload','interceptor','keySize','updateCollaborator','take','getSkeleton','currentSkeleton$','_roomMembers','_draw','_docSkeleton','PENDING','ceil','_sendHeartbeatTimer','_drawRectRange','baseRev','_anchorDot','reset','add','rxjs','objectType','floor','_transformRemoteChangesetByIMECache','_clearRedo','debug','isInternalEditorID','saveOfflineData','getUnitType','blockSize','onStarting','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','onlyLocal','LEAVE','HEARTBEAT_INTERVAL','RECT','Base64','ws://127.0.0.1:8000/universer-api/comb/connect','RemoveColCommandId','x-univer-host','_fetchMissChangesets','_roomMembers$','size','contains','conflict','_transformHistoryAndStateStack','hasOwnProperty','CONNECTOR_DATA_TOO_LARGE','clear','AUTHZ_URL_KEY','Disposable','on-line-single','drawWith','_throwTelemetryCollaborationNewChangeset','UUID','put','IUniverInstanceService','reqId','_entityInit$','_revisionService','transformChangesets','CommandType','_cursors','_online','IBeforeCloseService','_updateLocalCursor','_minBufferSize','ALREADY_EXISTS','/rev/','triggerDblclick','_docTransformIMECacheService','getTime','AWAITING_WITH_PENDING','Optional','InsertRowCommandId','unit-cache-','method','ColorKit','clone','SNAPSHOT_HAS_BEEN_REMOVED','labelPosition','_registerRenderDependencies','keys','session.room-full','measureText','addObjects','\x0aCurrent:\x20','complete','idSuffix','EmptyMutation','charAt','getRoom','image/bmp','action','key','_snapshotServerService','_localeService','save\x20fail\x20reason\x20is\x20','JOIN','getUnitOnRev','HEADER_MENU','DocCollaborationEntity','updateMember','unshift','_submitChangeset','type','UNRECOGNIZED','_univerInstanceService','1252144UWcvtu','onTransformRemoteChangesetByIMECache','eventID','/universer-api/snapshot','&assign=','online','getActiveRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','buffer','[FetchMissState]','_nRounds','onlineStatus','_transformUndoredo','beginPath','debounceTime','tag','propertyIsEnumerable','result','appendMutation','collab-rect-range-','ONLINE','_removeClearOtherTimer','getCurrentUser','from','getRenderById','&source=','onRemoteRetry','fetch_missing','HEARTBEAT_INTERVAL_KEY','code','deserializeToCombResponse','debounce','@univerjs/sheets-ui','HttpExport','not_collab','_urlService','moveTo','call','awaitingChangeset','DocSelectionManagerService','_localCacheService','_changesetSessionId','loginUrlKey','RETRY_CONNECTING_MAX_COUNT','storage','_iv','equals','?url=','setWaitCount','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','COMPRESS_MUTATION_APPLY','_sender','_event$','processBlock','fromCollab','INVALID_ARGUMENT','_httpService','reduce','LOGIN_URL_KEY','_unitStatus','_collaborationTimeoutTimer','COLLAB_WEB_SOCKET_URL_KEY','registerDependencies','ITransformService','_transformPreviousActiveRange','univer-online-status-title','ILogService','univer-online-status-icon','toDisposable','sendChangesetTimeout','_nDataBytes','name','RegularPolygon','setShapeProps','constructor','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','saveSheetBlock','setConfig','/universer-api/file/{fileID}/sign-url','_onRecvEvent','splice','unit','_docSyncEditingCollabCursorService','awaiting_with_pending','fromCharCode','saveChangeset','getCollabEntity','fillRule','UniverInstanceType','onRemoteRej','HMAC','ciphertext','round','transformStateCache','_lastPointer','_updateState','localeService','sid','error','status$','_unitID','indexOf','CHANGESET_ACK','off-line-single_clip0_910_343','_keyPriorReset','then','CollaborationSocketService','refreshPermission','_removeRoom','min','_onConnectionFailed','has','_transformIMECache','SessionStatus','getDocRanges','connection\x20error','_parse','extend','_cursor','@univerjs/rpc','DocSkeletonManagerService','next','CHANGESET_SHOULD_RETRY','NodePositionConvertToRectRange','undoState','_document','_onUserLeave','_getAPIPrefixPath','_checkMissing','createSocket','push','_getDownloadEndpointURL','getRelativeToViewportCoord','getActiveSheet','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','liveShareOperation','throttleTime','colorChannel1','origin','_transformStateCache','getSheetId','fillText','BufferedBlockAlgorithm','forwardRef','_onOffline','parseProtocolChangeset','all','conflict.title','setUndoRedoMutationParamsCache','_refreshCollabCursors','EffectRefRangId','authzUrl','UniverCollaborationClientPlugin','HttpImport','/resources','transformIMECache','enc','_onRefRangeChange','crypto','subscribe','_getSnapshotAPIPrefix','_eventUnsubscribe','_waitCount','forEach','_initMergeInterceptor','LocalCacheService','/-/object/list','univer-pro.collaboration-client-socket-service','takeUntil','_executeRemoteChangeset','textEncoder','memberID','ERROR_EXCEED_SIZE','resend','substr','construct','_incrementRevisionNumber','mapDocumentTypeToUniverType','getSheetBySheetId','stopTime','randomBytes','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','ImageIoService','_socketReady','merge','_acknowledgedAwaitingChangeset','CollaborationStatus','roomMembers','subunit','collabCursorState$','listRoles','fromEvent','_heartbeatTimer','incrementRevOfUnit','HELLO','_append','_isPermissionRej','session.will-retry','current','_candidateSocket','addObject','mapTo','urlChange$','_getScale','withCredentials','replace','SNAPSHOT_URL_KEY','YUUMI_URL_COL_OUT_OF_RANGE','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','InsertSheetMutation','collaboration_new_changeset','_xformMode','JSONX','_handleHeartbeatEvent','transformByState','fillStyle','default','pluginName','_onConflict','HmacMD5','_backgroundColor','handleDeleteRangeMoveLeft','_cipher','removeParam','/object/','RECV','backgroundColor','useCallback','SYNCED','_drawTextRange','session','_initCloseConn','purple300','UniverCollaborationPlugin','[SyncedState]:\x20received\x20rejection.','resize','_disabled','handleIRemoveCol','sheetId','_socket$','CipherParams','verdancy600','deepClone','endRow','_data','NOT_FOUND','HTTPRequest','_onRemoteChangeset','_range','svg','getFocusedUnit','clamp','_DEC_XFORM_MODE','YUUMI_RATE_OVER_LIMIT','LIVESHARE_FETCH_OPERATIONS','sheets','startColumn','_getSignURL','\x20in\x20_schedule.','ImageUploadStatusType','handleInsertRangeMoveRight','Unknown\x20user','bottom','fill','SEND_CHANGESET_TIMEOUT_KEY','searchParams','shouldCloseConn','SerializableCipher','getRandomValues','getColor','black','patch','slice','ThresholdInterceptorFactory','getCollabCursors$','_initEventListeners','syncEditingCollabCursor','failed\x20to\x20apply\x20missed\x20changesets!','save','UNIVER_SLIDE','sequenceExecute','univer-pro.collaboration-client.single-active-unit-service','\x20to\x20','MSG_FOR_ERROR','enableOfflineEditing','_singleActiveUnitService','_updateURLWithCurrentState','getMember','Error','UPDATE_CURSOR','RxDisposable','DisposableCollection','getWorkbookSelections','setAlpha','collabWebSocketUrl','_sessions','_refRangeService','_transitionLocked','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','height','M0\x200H16V16H0z','post','PERMISSION_DENIED','_sessionStatus$','_clearOtherTimers','className','_listenToOfflineEvent','number','auth.needGotoLoginAlert','20FXJbal','IConfigService','ICommandService','getMergeData','setShowComponents','range','href','defIds','COMPRESS_MUTATION_SEND','[OfflineState]:\x20received\x20rejection.','socket\x20open.','concat','[PendingState]:\x20unhandled\x20univer\x20type:\x20','MUTATION','TEXT','WebSocketService','_notificationService','sheetID','originalMeta','sessionStatus','9680RAAhMz','disposeUnit','OFFLINE','INotificationService','_tryReconnect','map','_docTransformStateCacheService','__creator','TOO_MANY_REQUESTS','encryptBlock','_getSheetObject','onTransformIME','state$','isActive','_members','_scene','getUnhiddenWorksheets','__esModule','length','_removeCollabCursors','_shapes','onRemoteAck','FETCH_MISS','unsubscribe','createElement','transformMutation','isArray','path','pushState','{fileID}','iterations','MemberService','collab-client.tooltip.reconnect','WordArray','isTransformMutationsWithChangesetSuccess','useRef','Hasher','WebURLService','getCurrentSelections','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_sheetTransformSelectionsService','ERROR_IMAGE_TYPE','/fetchmissing?from=','_scheduleClearOtherTimer','JOINING','handleInsertCol','location','_substituteRedoStack','offline','HTTPService','_lockTransition','commentUpdateEvent','SheetCollaborationEntity','values','fetchMiss','Plugin','headers','OTHER_CLIENTS_EDITING','isTransformMutationFailure','enableLocalCache','unknown','_onRemoteACK','_getCurrentRevision','MergeInterceptorFactory','_hasher','initWorkbookPermissionChange','body','AuthzIoHttpService','UNIVER_SHEET','WorkbookEditablePermission','snapshot','redoState','_joinRoom','permissionRejEvent','file','SHA1','icon','decrypt','Hex','unitId','DocStateChangeManagerService','_state$','COLORS','execute','_initDependencies','Univer','addImageSourceCache','MD5','bind','\x0aAfter:\x20','_onConnectionOpen','engine','serializeCombRequest','_send','dispose','getConfig','_assignedColors','visibilitychange','SUBMIT_CHANGESET','_mode','Rectangle','Subject','_drawAnchor','_queuedRemoteChangesets','_updateSubUnitFromURLParams','getStateCache','_resendTimeout','error$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','compute','m1Prime','transformUndoRedo','toLowerCase','image/jpg','_saveCache','_hovered','_invKeySchedule','UnitSnapshot','_collabCursorState$','900MvgmGx','[DataLoaderController]','collabStatus.fetchMiss','assign','hostname','DOC_RANGE_TYPE','encodeURIComponent','getVpScrollXYInfoByPosToVp','params','cursorInfo','0\x200\x2016\x2016','_syncEditingCollabCursorService','doc.mutation.rich-text-editing','CollaborationSession','_waitForHeartbeatResponse','_collaborationSessionService','list','getResourcesRequest','kdf','_loadSheet','_process','LIVESHARE_REQUEST_HOST','_socketMessageSubscription','FileId','OpenSSL','shareReplay','connectInjector','_handleEvent','onMissedChangesetFetched','m2Prime','collaboration-client.config','_compressMutationService','startsWith','actions','_anchor','loadOfflineData','_retryConnectingTimer','_replaceFileID','getAncestorScale','exhaustSavingTask','_applyRemoteChangeset','readAsDataURL','IMessageService','generateRandomId','ivSize','getCurrent','_init','_getAnchorBounding','setStateCache','c1Prime','CHANGESET_REVISION_CONFILICT','transformSelections','reverse','getInterceptPoints','hide','joinEvent','IUndoRedoService','handleInsertRow','roomInfos','_resendTimer','width','getImage','setTimeout','@univerjs/telemetry','collab-text-range-','COMPLETION_FINISHED','collabStatus.notCollab','onCommandExecuted','BASE64','algo','SetDocZoomRatioOperation','reconnect','Base','string','stringify','createIdentifier','RETRY_CONNECTING_MAX_COUNT_KEY','duration','title','onStateChange','14KctPhW','rev','_configService','FETCH_MISSING','pad','whenReady','cmd','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','getItem','IUIPartsService','_updateCollabCursors','_collabCursorController','disableLocalCache','_remoteChangesetQueue','DocIMEInputManagerService','formatter','subscribeEvent','selection','SheetsSelectionsService','PERMISSION_REJ','_changesetReqId','[CollaborationSession]','SNAPSHOT_INVALID_SNAPSHOT','infoRsp','Shape','blue400','IRemoteInstanceService','FAIL','_initUnitPermissionChange','_docSkeletonManagerService','UserManagerService','isPermissionRej','_pendingMutations','_toggleOffline','_cursorShapes','_updateLocalCache','_updateStatus','Rect','2064007XkaxOW','Error\x20on\x20receiving\x20event','getCoordByCell','559948WvFHrx','addEventListener','_sheetSkeletonManagerService','fetching\x20missing\x20changesets\x20from\x20','delete','#fff','[CollaborationUndoRedoService]','HEARTBEAT','LIVESHARE_OPERATION','registerHTTPInterceptor','replaceState','_onUserJoin','COLLAB_WEB_SOCKET_URL','VIEW_MAIN','encrypt','_beforeCloseService','APPLY_PERMISSION_DENIED','_commentUpdate$','prototype','_clearUndo','color','useObservable','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_initCommandExecutedListener','cursorInfo$','_renderManagerService','DeleteRangeMoveUpCommandId','_getMergeRange','_startCollaboration','byteLength','_setupSubUnitSync','_sendHeartbeat','_onRemoteRejected','onTransformSelections','Tooltip','onlineStatusIcon','mixIn','resolve','filter','_createInitialState','_initStatusListener','find','delay','currentTheme$','SNAPSHOT_SERVER_URL_KEY','concatMap','CONFLICT','signUrlServerUrl','csAckEvent','loadSheet','_showConflictNotification','BehaviorSubject','getTypeOfUnitAdded$','setItem','sessionStatus$','RevisionService','LICENSE_MAX_UNITS_EXCEEDED','exports','_scheduleTimestamp','onRemoteChangeset','getTypeOfUnitDisposed$','LOCAL_CACHE_INTERVAL_KEY','FromArray','mode','onSyncEditingCollabCursor','isEditing','trim','skeleton','closeSession','padding','onTransformRemoteChangesetByStateCache','_createSocket','lib','SnapshotServerOverHTTPService','_textBubble','IPermissionService','ERROR_IMAGE','_getAPIPrefix','/universer-api/oidc/authpage','makeDirty','ICollaborationSocketService','transformMutationsWithChangeset','/collaborator','getUnit','UNKNOWN_CMD','_disableEditing','createEncryptor','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','CHANGESET_REJ','#FFF','getUnitStatus$','decryptBlock','SetTextSelectionsOperation','_hash','close','byteOffset','userID','IImageIoService','data','Module','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_startSheetCollabCursor','APPLY_REJECT','url','override','history','_permissionService','univer-online-status','_loadDoc','assignAColorForMemberID','_color','0\x200\x2017\x2016','_listenToOnlineEvent','attrs','INGEST','UNIVER_COLLABORATION_CLIENT_PLUGIN','Workbook','asObservable','collabStatus.syncing','getMemberID','close$','COMMENT_UPDATE','LICENSE_IMPORT_SIZE_EXCEEDED','awaiting','object','_commentService','changesets','_userManagerService','getParam','_commandService','text','clipPath','abs','@univerjs-pro/collaboration','_clearHeartbeatTimer','_onLocalMutation','registerRefRange','joinRsp','newValue','_docTransformSelectionsService','_prevBlock','_tryEnsureSocket','freeze','enableSingleActiveInstanceLock','updateOfflineData','IContextService','_ensureSubject','_initRequestHeader','liveShareNewHost','NOT_COLLAB','/new_changes','getOwnPropertyDescriptor','symbol','...','toggleOnline','_clearTimeoutTimer','setCurrentUser','_socket','ReplaySubject','HmacSHA1','apply','PSEUDO_FETCH_MISSING_RESULT','_createHmacHelper','_name','handleIRemoveRow','DesktopCollaborationStatusDisplayController','_getLoginPath','_uiPartsService','getCurrentRevOfUnit','Injector','objectActions','[UniverCollaborationClientPlugin]','_createHelper','createInstance','collabStatus.conflict','catch','UNIVER_UNKNOWN','pending','MessageType','displayName','_cursorInfo$','@univerjs/engine-render','34929lwaBJu','Encryptor','CollaborationEntity','url(#$1','EvpKDF','HEARTBEAT_TIMEOUT','_hideTimer','_retryCount','putCollaborators','msCrypto','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_setupBeforeClosingHandler','_hover','Utf8','toString','updatePermissionPoint','hovered','@univerjs/ui','disposeWithMe','pipe','translate(.97)','_getSaveTimeout','_onJoinRoomEvent','setInterval','clearTimeout','_onCursorDelete','@univerjs/sheets','onPointerLeave$','now','_ws','loadDoc','evenodd','LIVESHARE_NEW_HOST','_key','create','APPLY_NON_SEQUENTIAL_REVISION','_status$','USERS_ENTER','isTransformChangesetsSuccess','_ENC_XFORM_MODE','lineTo','UPDATE_PERMISSION_OBJ','OnLineSingle','_scheduleSaving','allowed','toRgbString','UniverNetworkPlugin','session.collaboration-timeout','LICENSE_EXPORT_SIZE_EXCEEDED','touchDependencies','_handler','url(#off-line-single_clip0_910_343)','setParam','_rescheduleHeartbeat','red300','transformStack\x20failed!','div','_config','DeleteRangeMoveLeftCommandId','_getCtorByUniverType','editingUnit','requireSession','OffLineSingle','fetchThroughInterceptors','collaborators','unitID','_telemetryService','BuiltInUIPart','/universer-api/authz','_docStateChangeManagerService','downloadEndpointUrl','saveSnapshot','responseType','executeCommand','serializeRangeWithSheet','_scheduleHeartbeat','every','CollaborationController','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','272812WmwiuB','getSheetBlock','_undoStacks','YUUMI_SUBSCRIPTION_NOT_FOUND','_sendingTimer','_clearScheduledTask','endColumn','@univerjs/network','univerjs-icon\x20univerjs-icon-','_getUndoStack','AES','@univerjs/docs-ui','_doReset','_initResize','CollaborationEvent','_session','BlockCipherMode','_state','fetchMissingChangesets','_http','retryConnectingInterval','Could\x20not\x20dynamically\x20require\x20\x22','_entities','_snapshotService','with','_type','pauseCollaboration','submit\x20changeset\x20error!','LocaleService','entries','SetSelectionsOperation','unitId\x20is\x20not\x20found','substring','c2Prime','_render','_themeService','_doCryptBlock','SetWorksheetActivateCommand','Pkcs7','[PendingState]:\x20received\x20rejection.','IDLE','[CollaborationEntity]','transformRemoteChangeset','NoPadding','InsertRangeMoveRightCommandId','requestParams','_transformService','_iKey','LICENSE_DISTRO_REJECTED','SHOULD_CLOSE_CONN','reject','revision','open$','registerRenderModule','sin','IAuthzIoService','restore','sigBytes','Warning','_undoRedoService','_clearCollaborationTimeoutTimer','_keySchedule','TEXT_RANGE_LAYER_INDEX','_decreaseWaiting','cfg','send','popstate','function','_resendWithTimeout','parse','ThemeService','routeKey','UNDEFINED','?size=','onMissingChangesets','defineProperty','IRenderManagerService','_registerDependencies','subUnitId','_instanceService','_transformRemoteChangesetByStateCache','ENSURE_SNAPSHOT_EXECUTION','getValue','Cipher','_unitOnClients','onMouseMove','_unlockTransition','xlink:href','_context','_createInitialStateImpl','findNodePositionByCharIndex','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','collaboratorID','json','csShouldRetryEvent'];_0xad98=function(){return _0x167986;};return _0xad98();}function _0x513c(_0x3b90a3,_0x2a7010){const _0xad9819=_0xad98();return _0x513c=function(_0x513c0e,_0x53b00f){_0x513c0e=_0x513c0e-0x1c0;let _0x338fd2=_0xad9819[_0x513c0e];return _0x338fd2;},_0x513c(_0x3b90a3,_0x2a7010);}class ni extends a[_0x37a374(0x65c)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x37a374(0x37c)](){const _0x2993df=_0x37a374;this['_members'][_0x2993df(0x65a)]();}[_0x37a374(0x1cf)](_0x20d419){const _0x3780c2=_0x37a374;this['_members'][_0x3780c2(0x5d1)](_0x20d419[_0x3780c2(0x280)],_0x20d419);}[_0x37a374(0x595)](_0x2ad61d){const _0x394e7e=_0x37a374;this[_0x394e7e(0x32c)]['delete'](_0x2ad61d);}[_0x37a374(0x2f4)](_0x2b56eb){const _0x249fc9=_0x37a374;return this[_0x249fc9(0x32c)][_0x249fc9(0x5bf)](_0x2b56eb);}[_0x37a374(0x61b)](){const _0x5a099e=_0x37a374;return Array['from'](this[_0x5a099e(0x32c)][_0x5a099e(0x353)]());}}var ii=Object[_0x37a374(0x55e)],si=Object[_0x37a374(0x4a5)],ri=(_0x4e2641,_0x2510e2,_0x17ac4f,_0x33fdff)=>{const _0x4b1b5a=_0x37a374;for(var _0x28134c=_0x33fdff>0x1?void 0x0:_0x33fdff?si(_0x2510e2,_0x17ac4f):_0x2510e2,_0x4872ee=_0x4e2641[_0x4b1b5a(0x330)]-0x1,_0x25700e;_0x4872ee>=0x0;_0x4872ee--)(_0x25700e=_0x4e2641[_0x4872ee])&&(_0x28134c=(_0x33fdff?_0x25700e(_0x2510e2,_0x17ac4f,_0x28134c):_0x25700e(_0x28134c))||_0x28134c);return _0x33fdff&&_0x28134c&&ii(_0x2510e2,_0x17ac4f,_0x28134c),_0x28134c;},de=(_0x3ee6a2,_0x71b381)=>(_0x213af1,_0x2c90f4)=>_0x71b381(_0x213af1,_0x2c90f4,_0x3ee6a2),re=(_0xb039fd=>(_0xb039fd[_0xb039fd[_0x37a374(0x53b)]=0x0]=_0x37a374(0x53b),_0xb039fd[_0xb039fd[_0x37a374(0x34a)]=0x1]='JOINING',_0xb039fd[_0xb039fd[_0x37a374(0x320)]=0x2]=_0x37a374(0x320),_0xb039fd[_0xb039fd['ONLINE']=0x3]=_0x37a374(0x1e9),_0xb039fd))(re||{});exports[_0x37a374(0x3a2)]=class extends a['RxDisposable']{constructor(_0x2e553b,_0x1be38a,_0x1155bd,_0x5d771d,_0x57bb3d,_0x3ebd73,_0x2833bd,_0x58db81,_0x424afe,_0x257afe){const _0x4a7cb7=_0x37a374;super(),I(this,_0x4a7cb7(0x304),new A[(_0x4a7cb7(0x441))](0x0)),I(this,_0x4a7cb7(0x444),this[_0x4a7cb7(0x304)][_0x4a7cb7(0x483)]()),I(this,_0x4a7cb7(0x209),new A[(_0x4a7cb7(0x383))]()),I(this,_0x4a7cb7(0x5cc),this[_0x4a7cb7(0x209)][_0x4a7cb7(0x483)]()),I(this,_0x4a7cb7(0x4ab)),I(this,_0x4a7cb7(0x3ab)),I(this,_0x4a7cb7(0x211)),I(this,'_shouldReportTelemetry',!0x1),I(this,'_telemetryInfo',null),(this['_unitID']=_0x2e553b,this[_0x4a7cb7(0x58a)]=_0x1155bd,this[_0x4a7cb7(0x41d)]=_0x5d771d,this[_0x4a7cb7(0x5cd)]=_0x57bb3d,this[_0x4a7cb7(0x3e7)]=_0x3ebd73,this[_0x4a7cb7(0x1c9)]=_0x2833bd,this[_0x4a7cb7(0x5f6)]=_0x58db81,this[_0x4a7cb7(0x48b)]=_0x424afe,this[_0x4a7cb7(0x506)]=_0x257afe,this[_0x4a7cb7(0x576)]=!!this[_0x4a7cb7(0x506)],_0x1be38a[_0x4a7cb7(0x4d7)](A[_0x4a7cb7(0x27d)](this['dispose$']))['subscribe'](_0xec4020=>{const _0x4d3563=_0x4a7cb7;var _0x5d41a2;typeof _0xec4020>'u'||(this['_socket']=_0xec4020,_0xec4020?(this[_0x4d3563(0x366)](_0xec4020),this[_0x4d3563(0x3ab)]=_0xec4020['message$'][_0x4d3563(0x274)](_0xcec7bd=>{const _0x3ef83e=_0x4d3563;_0xcec7bd['routeKey']===this[_0x3ef83e(0x239)]&&this[_0x3ef83e(0x60a)](_0xcec7bd);})):(this[_0x4d3563(0x65f)](),this[_0x4d3563(0x304)][_0x4d3563(0x24e)](0x2),(_0x5d41a2=this['_socketMessageSubscription'])==null||_0x5d41a2[_0x4d3563(0x335)](),this[_0x4d3563(0x3ab)]=null));}),this[_0x4a7cb7(0x4d6)](this[_0x4a7cb7(0x41d)]['registerOnClose'](()=>{const _0x2de8c0=_0x4a7cb7;var _0x480bf8;(_0x480bf8=this[_0x2de8c0(0x4ab)])==null||_0x480bf8[_0x2de8c0(0x554)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x2de8c0(0x239)]}});})));}get[_0x37a374(0x31d)](){const _0x20b081=_0x37a374;return this[_0x20b081(0x304)][_0x20b081(0x565)]();}[_0x37a374(0x485)](){const _0x5d88d5=_0x37a374;var _0x2c62a6,_0x5ac8c4;return(_0x5ac8c4=(_0x2c62a6=this[_0x5d88d5(0x4ab)])==null?void 0x0:_0x2c62a6[_0x5d88d5(0x280)])!=null?_0x5ac8c4:null;}[_0x37a374(0x37c)](){const _0x5714a1=_0x37a374;super[_0x5714a1(0x37c)](),this['dispose$'][_0x5714a1(0x24e)](),this[_0x5714a1(0x574)][_0x5714a1(0x1c0)]();}[_0x37a374(0x46c)](){const _0x51a7a3=_0x37a374;var _0x10ca7b,_0x334f25;this[_0x51a7a3(0x65f)](),(_0x10ca7b=this[_0x51a7a3(0x4ab)])==null||_0x10ca7b['send']({'cmd':G[_0x51a7a3(0x64b)],'data':{'roomID':this[_0x51a7a3(0x239)]}}),(_0x334f25=this['_socket'])==null||_0x334f25['close'](),this['_event$'][_0x51a7a3(0x1c0)](),this[_0x51a7a3(0x304)]['complete'](),this[_0x51a7a3(0x37c)]();}['_onCombEvent'](_0x2c63da){const _0x19a01f=_0x37a374;_0x2c63da['cmd']===G[_0x19a01f(0x1cb)]?this['_onJoinRoomEvent'](_0x2c63da):_0x2c63da[_0x19a01f(0x3eb)]===G[_0x19a01f(0x2b6)]&&this['_onRecvEvent'](_0x2c63da);}[_0x37a374(0x366)](_0x5cf2ad){const _0x125f93=_0x37a374;this[_0x125f93(0x304)][_0x125f93(0x24e)](0x1),_0x5cf2ad[_0x125f93(0x554)]({'cmd':G['JOIN'],'routeKey':this[_0x125f93(0x239)],'routeType':'','data':{'rooms':[{'roomID':this[_0x125f93(0x239)]}]}});}[_0x37a374(0x4da)](_0x275325){const _0x58f316=_0x37a374;var _0x4ba537;if(_0x275325[_0x58f316(0x1f2)]===Ct[_0x58f316(0x400)]){this[_0x58f316(0x5cd)][_0x58f316(0x5b9)]({'type':Se[_0x58f316(0x4c0)][_0x58f316(0x54d)],'content':this[_0x58f316(0x1c9)]['t'](_0x58f316(0x67d))}),this['_sessionStatus$'][_0x58f316(0x24e)](0x2);return;}this[_0x58f316(0x304)][_0x58f316(0x24e)](0x3);const _0x19f136=(_0x4ba537=_0x275325[_0x58f316(0x470)][_0x58f316(0x3cf)][this[_0x58f316(0x239)]])==null?void 0x0:_0x4ba537['members'];_0x19f136&&_0x19f136['forEach'](_0x22f6fd=>this[_0x58f316(0x5f6)][_0x58f316(0x1cf)](this[_0x58f316(0x239)],_0x22f6fd));}[_0x37a374(0x224)](_0x58471b){const _0x33d0a6=_0x37a374;try{const _0x39ed9f=_0x58471b['data'];switch(_0x39ed9f[_0x33d0a6(0x1d7)]){case p['CollaborationEvent'][_0x33d0a6(0x4e9)]:this[_0x33d0a6(0x419)](_0x39ed9f),this[_0x33d0a6(0x209)]['next'](_0x39ed9f);break;case p[_0x33d0a6(0x521)][_0x33d0a6(0x5de)]:this[_0x33d0a6(0x253)](_0x39ed9f),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)]['CHANGESET_ACK']:case p['CollaborationEvent'][_0x33d0a6(0x24f)]:this[_0x33d0a6(0x5ef)](),this[_0x33d0a6(0x54f)](),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)][_0x33d0a6(0x2f0)]:this[_0x33d0a6(0x58a)]['error'](_0x33d0a6(0x1ca)+JSON[_0x33d0a6(0x3df)](_0x39ed9f)),this[_0x33d0a6(0x209)][_0x33d0a6(0x24e)](_0x39ed9f);break;case p[_0x33d0a6(0x521)]['COMMENT_UPDATE']:this['_commentService'][_0x33d0a6(0x600)](_0x39ed9f[_0x33d0a6(0x470)]),this['_event$'][_0x33d0a6(0x24e)](_0x39ed9f);break;default:this['_event$'][_0x33d0a6(0x24e)](_0x39ed9f);}}catch(_0xedbcd){this[_0x33d0a6(0x58a)][_0x33d0a6(0x237)](_0xedbcd,_0x58471b);}}[_0x37a374(0x419)](_0x49fc37){const _0x27aaa0=_0x37a374;this['_memberService'][_0x27aaa0(0x1cf)](this['_unitID'],_0x49fc37[_0x27aaa0(0x470)]);}[_0x37a374(0x253)](_0x431600){const _0x367df9=_0x37a374;this['_memberService']['removeMember'](this[_0x367df9(0x239)],_0x431600[_0x367df9(0x470)][_0x367df9(0x280)]);}async[_0x37a374(0x554)](_0x2a3e0d,_0x1d9338){const _0x51e0e3=_0x37a374;if(this[_0x51e0e3(0x31d)]!==0x3||!this[_0x51e0e3(0x4ab)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x2a3e0d[_0x51e0e3(0x1d7)]===p['CollaborationEvent'][_0x51e0e3(0x380)]&&(this[_0x51e0e3(0x606)](),this['_startTelemetryCollaborationNewChangeset'](_0x2a3e0d)),this[_0x51e0e3(0x4ab)][_0x51e0e3(0x554)]({'cmd':G['INGEST'],'routeKey':_0x1d9338,'routeType':'','data':_0x2a3e0d});}catch(_0x540a45){this[_0x51e0e3(0x58a)][_0x51e0e3(0x237)](_0x540a45);}}[_0x37a374(0x606)](){const _0x82cba7=_0x37a374;var _0x73143;this[_0x82cba7(0x211)]=window[_0x82cba7(0x3d3)](()=>{const _0x32ecb4=_0x82cba7;this[_0x32ecb4(0x211)]=null,this['_messageService'][_0x32ecb4(0x5b9)]({'type':Se[_0x32ecb4(0x4c0)][_0x32ecb4(0x2f5)],'content':this[_0x32ecb4(0x1c9)]['t'](_0x32ecb4(0x4f3))});},(_0x73143=this[_0x82cba7(0x3e7)][_0x82cba7(0x37d)](It))!=null?_0x73143:tn);}['_clearCollaborationTimeoutTimer'](){const _0x1c9aa0=_0x37a374;this[_0x1c9aa0(0x211)]&&(clearTimeout(this[_0x1c9aa0(0x211)]),this[_0x1c9aa0(0x211)]=null);}[_0x37a374(0x5ae)](_0x335eaa){const _0x4decd4=_0x37a374;if(!this[_0x4decd4(0x576)])return;const {data:_0x1fc1fc}=_0x335eaa,{unitID:_0x399a2a,changeset:_0x34a7d8}=_0x1fc1fc,{mutations:_0x57d798,type:_0x28a9b3}=_0x34a7d8;this['_telemetryInfo']={'unitId':_0x399a2a,'type':_0x28a9b3,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Zn(_0x57d798)};}[_0x37a374(0x5ef)](){const _0x24f776=_0x37a374;if(this['_shouldReportTelemetry']){if(!this[_0x24f776(0x5a3)]){this[_0x24f776(0x58a)][_0x24f776(0x237)](_0x24f776(0x3fa),_0x24f776(0x57a));return;}this[_0x24f776(0x5a3)][_0x24f776(0x288)]=performance['now'](),this[_0x24f776(0x5a3)][_0x24f776(0x3e2)]=this['_telemetryInfo']['stopTime']-this[_0x24f776(0x5a3)]['startTime'],this[_0x24f776(0x506)]['capture'](Jn,this[_0x24f776(0x5a3)]),this[_0x24f776(0x5a3)]=null;}}[_0x37a374(0x65f)](){this['_telemetryInfo']=null;}},exports[_0x37a374(0x3a2)]=ri([de(0x2,a['ILogService']),de(0x3,te[_0x37a374(0x66a)]),de(0x4,te[_0x37a374(0x3bf)]),de(0x5,a[_0x37a374(0x30b)]),de(0x6,a['Inject'](a[_0x37a374(0x52f)])),de(0x7,a['Inject'](exports[_0x37a374(0x33d)])),de(0x8,a['Inject'](bt)),de(0x9,a[_0x37a374(0x673)](Nn['ITelemetryService']))],exports['CollaborationSession']);var oi=Object['defineProperty'],ai=Object['getOwnPropertyDescriptor'],ci=(_0x15652d,_0x23ea9c,_0x401577,_0x162551)=>{const _0x497c42=_0x37a374;for(var _0x82a5cd=_0x162551>0x1?void 0x0:_0x162551?ai(_0x23ea9c,_0x401577):_0x23ea9c,_0x44a842=_0x15652d[_0x497c42(0x330)]-0x1,_0x25eb30;_0x44a842>=0x0;_0x44a842--)(_0x25eb30=_0x15652d[_0x44a842])&&(_0x82a5cd=(_0x162551?_0x25eb30(_0x23ea9c,_0x401577,_0x82a5cd):_0x25eb30(_0x82a5cd))||_0x82a5cd);return _0x162551&&_0x82a5cd&&oi(_0x23ea9c,_0x401577,_0x82a5cd),_0x82a5cd;},Ce=(_0x43edd6,_0x9e1f5e)=>(_0x480e22,_0x27e52f)=>_0x9e1f5e(_0x480e22,_0x27e52f,_0x43edd6);exports[_0x37a374(0x5e2)]=class extends a[_0x37a374(0x65c)]{constructor(_0x4f6501,_0x19feac,_0x86d56f,_0x17bb66,_0x21f1d4,_0x3f81f7){const _0x159ee4=_0x37a374;super(),I(this,_0x159ee4(0x2c4),new A[(_0x159ee4(0x441))](void 0x0)),I(this,'socket$',this[_0x159ee4(0x2c4)]['asObservable']()),I(this,'_candidateSocket',null),I(this,_0x159ee4(0x2fc),new Map()),I(this,_0x159ee4(0x4e8),new A['BehaviorSubject'](re[_0x159ee4(0x53b)])),I(this,_0x159ee4(0x238),this[_0x159ee4(0x4e8)][_0x159ee4(0x483)]()),I(this,_0x159ee4(0x28c),!0x1),I(this,_0x159ee4(0x3b9)),I(this,_0x159ee4(0x4cb),0x0),I(this,'_sendHeartbeatTimer'),I(this,_0x159ee4(0x5bd)),(this['_injector']=_0x4f6501,this[_0x159ee4(0x1c9)]=_0x19feac,this[_0x159ee4(0x5cd)]=_0x86d56f,this['_logService']=_0x17bb66,this[_0x159ee4(0x3e7)]=_0x21f1d4,this[_0x159ee4(0x5af)]=_0x3f81f7,this[_0x159ee4(0x2e8)]());}get['_socket'](){const _0x4f80d7=_0x37a374;return this['_socket$'][_0x4f80d7(0x565)]();}[_0x37a374(0x2e8)](){const _0x1e4cca=_0x37a374;this[_0x1e4cca(0x307)](),this[_0x1e4cca(0x47e)]();}[_0x37a374(0x37c)](){const _0x45472d=_0x37a374;super[_0x45472d(0x37c)](),this['_sessions'][_0x45472d(0x278)](_0x147004=>_0x147004['dispose']()),this['_sessions'][_0x45472d(0x65a)](),this['_status$']['complete']();}async[_0x37a374(0x501)](_0xeda783){const _0x58ee1f=_0x37a374;if(this[_0x58ee1f(0x2fc)][_0x58ee1f(0x244)](_0xeda783))return this['_sessions'][_0x58ee1f(0x5bf)](_0xeda783);this[_0x58ee1f(0x49b)]();const _0x116256=this[_0x58ee1f(0x58f)]['createInstance'](exports[_0x58ee1f(0x3a2)],_0xeda783,this[_0x58ee1f(0x2c4)][_0x58ee1f(0x483)]());return this[_0x58ee1f(0x2fc)][_0x58ee1f(0x5d1)](_0xeda783,_0x116256),_0x116256;}[_0x37a374(0x452)](_0x24d232){const _0x3c4c61=_0x37a374;var _0x7225b1;const _0x2f2a46=this[_0x3c4c61(0x2fc)]['get'](_0x24d232);_0x2f2a46&&(this[_0x3c4c61(0x2fc)][_0x3c4c61(0x412)](_0x24d232),_0x2f2a46[_0x3c4c61(0x46c)]()),this[_0x3c4c61(0x2fc)][_0x3c4c61(0x654)]||(_0x7225b1=this[_0x3c4c61(0x4ab)])==null||_0x7225b1[_0x3c4c61(0x46c)]();}[_0x37a374(0x3dc)](){const _0x55f531=_0x37a374;this[_0x55f531(0x4cb)]=0x0,this[_0x55f531(0x3b9)]!=null&&(clearTimeout(this[_0x55f531(0x3b9)]),this[_0x55f531(0x3b9)]=null),this[_0x55f531(0x322)]();}[_0x37a374(0x455)](){const _0x11d34a=_0x37a374;var _0x52e163,_0x3649e9;const _0x5054bd=this[_0x11d34a(0x3e7)]['getConfig'](Qt),_0x23ffe2=this[_0x11d34a(0x3e7)][_0x11d34a(0x37d)](ne),_0x340f4f=(_0x3649e9=(_0x52e163=_0x23ffe2==null?void 0x0:_0x23ffe2[_0x11d34a(0x2fb)])!=null?_0x52e163:_0x5054bd)!=null?_0x3649e9:Hn,_0x4cc750=this['_socketService'][_0x11d34a(0x256)](_0x340f4f);return this[_0x11d34a(0x29c)]=_0x4cc750,_0x4cc750;}[_0x37a374(0x49b)](){const _0xf8efc5=_0x37a374;var _0xb2883,_0x15c60c;try{const _0x553dcc=(_0x15c60c=(_0xb2883=this[_0xf8efc5(0x4ab)])!=null?_0xb2883:this['_candidateSocket'])!=null?_0x15c60c:this[_0xf8efc5(0x455)]();if(_0x553dcc){const _0x3b9a0f=_0x553dcc[_0xf8efc5(0x554)];_0x553dcc[_0xf8efc5(0x554)]=_0x501b01=>(this[_0xf8efc5(0x4f9)](),_0x3b9a0f[_0xf8efc5(0x4ae)](_0x553dcc,[_0x501b01])),_0x553dcc[_0xf8efc5(0x5a1)][_0xf8efc5(0x274)](_0xa34c6=>this[_0xf8efc5(0x5f1)](_0x553dcc,_0xa34c6)),_0x553dcc[_0xf8efc5(0x389)][_0xf8efc5(0x4d7)](V[_0xf8efc5(0x630)](0x1))[_0xf8efc5(0x274)](_0x4aed25=>this['_logService'][_0xf8efc5(0x237)]('[CollaborationSessionService]:\x20socket\x20error',_0x4aed25)),_0x553dcc[_0xf8efc5(0x547)]['pipe'](V[_0xf8efc5(0x630)](0x1))['subscribe'](()=>{const _0x440f24=_0xf8efc5;this[_0x440f24(0x378)](_0x553dcc);}),_0x553dcc['close$'][_0xf8efc5(0x4d7)](V[_0xf8efc5(0x630)](0x1))['subscribe'](_0x1953e7=>{const _0x395737=_0xf8efc5;this[_0x395737(0x58a)]['debug']('[CollaborationSessionService]','socket\x20close',_0x1953e7),this[_0x395737(0x243)]();});}}catch(_0x59e68a){this[_0xf8efc5(0x58a)][_0xf8efc5(0x237)](_0x59e68a),this[_0xf8efc5(0x243)]();}}[_0x37a374(0x378)](_0x5f4638){const _0x31bfb6=_0x37a374;this['_logService']['debug']('[CollaborationSessionService]',_0x31bfb6(0x314)),_0x5f4638[_0x31bfb6(0x554)]({'cmd':G['HELLO']}),this[_0x31bfb6(0x4f9)]();}[_0x37a374(0x307)](){const _0x12b8c0=_0x37a374;window[_0x12b8c0(0x40f)](_0x12b8c0(0x34e),()=>this[_0x12b8c0(0x265)]());}[_0x37a374(0x265)](){const _0x38f863=_0x37a374;this[_0x38f863(0x28c)]=!0x1,this[_0x38f863(0x29c)]=null,this['_status$'][_0x38f863(0x24e)](re['OFFLINE']),this[_0x38f863(0x2c4)][_0x38f863(0x24e)](null),this[_0x38f863(0x4a9)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ec612=_0x37a374;var _0x168ae4;this[_0x5ec612(0x265)](),this[_0x5ec612(0x4cb)]<((_0x168ae4=this[_0x5ec612(0x3e7)][_0x5ec612(0x37d)](nn))!=null?_0x168ae4:Wn)?(this['_messageService']['show']({'key':_0x5ec612(0x611),'type':Se[_0x5ec612(0x4c0)][_0x5ec612(0x54d)],'content':this[_0x5ec612(0x1c9)]['t'](_0x5ec612(0x29a))}),this[_0x5ec612(0x322)]()):this[_0x5ec612(0x5cd)][_0x5ec612(0x5b9)]({'key':_0x5ec612(0x611),'type':Se[_0x5ec612(0x4c0)][_0x5ec612(0x2f5)],'content':this[_0x5ec612(0x1c9)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x4d67fd=_0x37a374,_0x2938da=()=>{const _0x25dfd7=_0x513c;this[_0x25dfd7(0x4ab)]||this[_0x25dfd7(0x3dc)]();},_0x33da05=()=>{const _0x4132d0=_0x513c;this[_0x4132d0(0x4ab)]||document['visibilityState']==='hidden'||this[_0x4132d0(0x3dc)]();};window['addEventListener'](_0x4d67fd(0x1da),_0x2938da),document[_0x4d67fd(0x40f)](_0x4d67fd(0x37f),_0x33da05);}[_0x37a374(0x322)](){const _0x233955=_0x37a374;var _0x1b0140;const _0x3f32b7=this[_0x233955(0x4cb)],_0xb7f14d=this[_0x233955(0x3e7)][_0x233955(0x37d)](ne),_0x43321f=_0x3f32b7===0x0?0x0:((_0x1b0140=_0xb7f14d==null?void 0x0:_0xb7f14d[_0x233955(0x527)])!=null?_0x1b0140:kn)*0x2**_0x3f32b7;this[_0x233955(0x3b9)]=window[_0x233955(0x3d3)](()=>{const _0x2e2e6a=_0x233955;clearTimeout(this[_0x2e2e6a(0x3b9)]),this['_retryConnectingTimer']=null,this[_0x2e2e6a(0x49b)]();},_0x43321f),this[_0x233955(0x4cb)]+=0x1;}['_onMessage'](_0xb08956,_0x4f40e3){const _0x240bbe=_0x37a374,{cmd:_0x1a8ccf}=_0x4f40e3;_0x1a8ccf===G[_0x240bbe(0x297)]&&!this[_0x240bbe(0x28c)]&&(_0xb08956['memberID']=_0x4f40e3['data'][_0x240bbe(0x280)],this[_0x240bbe(0x2c4)]['next'](_0xb08956),this[_0x240bbe(0x4e8)][_0x240bbe(0x24e)](re[_0x240bbe(0x1e9)]),this['_socketReady']=!0x0,this[_0x240bbe(0x29c)]=null),_0x1a8ccf===G[_0x240bbe(0x415)]&&this[_0x240bbe(0x4a9)](),this[_0x240bbe(0x4f9)]();}[_0x37a374(0x4f9)](){const _0x4ead2f=_0x37a374;var _0x326db4;this[_0x4ead2f(0x494)](),this[_0x4ead2f(0x638)]=window[_0x4ead2f(0x3d3)](()=>this[_0x4ead2f(0x42d)](),(_0x326db4=this['_configService']['getConfig'](en))!=null?_0x326db4:Bn);}[_0x37a374(0x42d)](){const _0x3cca83=_0x37a374;this[_0x3cca83(0x4ab)][_0x3cca83(0x554)]({'cmd':G[_0x3cca83(0x415)]}),this[_0x3cca83(0x3a3)]();}[_0x37a374(0x3a3)](){const _0x4fca73=_0x37a374;var _0x5c2a27;this[_0x4fca73(0x5bd)]=window[_0x4fca73(0x3d3)](()=>this['_onConnectionFailed'](),(_0x5c2a27=this['_configService']['getConfig'](It))!=null?_0x5c2a27:tn);}[_0x37a374(0x494)](){const _0x38bf8d=_0x37a374;this[_0x38bf8d(0x638)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x37a374(0x4a9)](){const _0x2bf1d3=_0x37a374;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2bf1d3(0x5bd)]),this[_0x2bf1d3(0x5bd)]=null);}},exports['CollaborationSessionService']=ci([Ce(0x0,a['Inject'](a['Injector'])),Ce(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),Ce(0x2,te[_0x37a374(0x3bf)]),Ce(0x3,a[_0x37a374(0x217)]),Ce(0x4,a['IConfigService']),Ce(0x5,Et)],exports['CollaborationSessionService']);var Y=[];for(var Xe=0x0;Xe<0x100;++Xe)Y[_0x37a374(0x257)]((Xe+0x100)[_0x37a374(0x4d2)](0x10)[_0x37a374(0x2e5)](0x1));function li(_0x3344cd,_0x1401a3=0x0){const _0x299f4a=_0x37a374;return(Y[_0x3344cd[_0x1401a3+0x0]]+Y[_0x3344cd[_0x1401a3+0x1]]+Y[_0x3344cd[_0x1401a3+0x2]]+Y[_0x3344cd[_0x1401a3+0x3]]+'-'+Y[_0x3344cd[_0x1401a3+0x4]]+Y[_0x3344cd[_0x1401a3+0x5]]+'-'+Y[_0x3344cd[_0x1401a3+0x6]]+Y[_0x3344cd[_0x1401a3+0x7]]+'-'+Y[_0x3344cd[_0x1401a3+0x8]]+Y[_0x3344cd[_0x1401a3+0x9]]+'-'+Y[_0x3344cd[_0x1401a3+0xa]]+Y[_0x3344cd[_0x1401a3+0xb]]+Y[_0x3344cd[_0x1401a3+0xc]]+Y[_0x3344cd[_0x1401a3+0xd]]+Y[_0x3344cd[_0x1401a3+0xe]]+Y[_0x3344cd[_0x1401a3+0xf]])[_0x299f4a(0x38e)]();}var xe,hi=new Uint8Array(0x10);function _i(){const _0x712fab=_0x37a374;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x712fab(0x2e1)]&&crypto[_0x712fab(0x2e1)][_0x712fab(0x376)](crypto),!xe))throw new Error(_0x712fab(0x5b3));return xe(hi);}var ui=typeof crypto<'u'&&crypto[_0x37a374(0x572)]&&crypto[_0x37a374(0x572)][_0x37a374(0x376)](crypto);const Ut={'randomUUID':ui};function di(_0x5384b5,_0x460bbb,_0x5f0d9d){const _0x445fba=_0x37a374;if(Ut[_0x445fba(0x572)]&&!_0x460bbb&&!_0x5384b5)return Ut[_0x445fba(0x572)]();_0x5384b5=_0x5384b5||{};var _0x5df318=_0x5384b5['random']||(_0x5384b5['rng']||_i)();return _0x5df318[0x6]=_0x5df318[0x6]&0xf|0x40,_0x5df318[0x8]=_0x5df318[0x8]&0x3f|0x80,li(_0x5df318);}var fi=Object[_0x37a374(0x55e)],vi=Object[_0x37a374(0x4a5)],mi=(_0x2fd6fc,_0x1f707f,_0x3eacea,_0x4ad7c2)=>{const _0x41cdbd=_0x37a374;for(var _0x1e8298=_0x4ad7c2>0x1?void 0x0:_0x4ad7c2?vi(_0x1f707f,_0x3eacea):_0x1f707f,_0x60e415=_0x2fd6fc[_0x41cdbd(0x330)]-0x1,_0x1a4c72;_0x60e415>=0x0;_0x60e415--)(_0x1a4c72=_0x2fd6fc[_0x60e415])&&(_0x1e8298=(_0x4ad7c2?_0x1a4c72(_0x1f707f,_0x3eacea,_0x1e8298):_0x1a4c72(_0x1e8298))||_0x1e8298);return _0x4ad7c2&&_0x1e8298&&fi(_0x1f707f,_0x3eacea,_0x1e8298),_0x1e8298;},Je=(_0x2c6cca,_0xde1d3e)=>(_0x13a742,_0x22638b)=>_0xde1d3e(_0x13a742,_0x22638b,_0x2c6cca);let Be=class{constructor(_0x3a6686,_0x220d15,_0xae9115){const _0x2cb9e3=_0x37a374;this['_injector']=_0x3a6686,this[_0x2cb9e3(0x541)]=_0x220d15,this[_0x2cb9e3(0x427)]=_0xae9115;}[_0x37a374(0x270)](_0x4f1b5d){const _0x200745=_0x37a374;this[_0x200745(0x612)](_0x4f1b5d),this[_0x200745(0x215)](_0x4f1b5d);}[_0x37a374(0x53d)](_0x56029a){const _0x559207=_0x37a374,{unitID:_0x5c8c44}=_0x56029a,_0x317e5b=this[_0x559207(0x427)][_0x559207(0x1ed)](_0x5c8c44)[_0x559207(0x52b)](Z[_0x559207(0x3f3)]),{redoCache:_0x57414e}=_0x317e5b[_0x559207(0x5f4)]();if(_0x57414e[_0x559207(0x330)]===0x0)return _0x56029a;let _0x470a7e=a[_0x559207(0x59b)][_0x559207(0x2c7)](_0x56029a[_0x559207(0x579)][0x0]);for(let _0x28c9f9=0x0;_0x28c9f9<_0x57414e[_0x559207(0x330)];_0x28c9f9++){const _0x2536e8={'id':_0x559207(0x3a1),'params':{..._0x57414e[_0x28c9f9]}},_0x3b446a=this['_transformService'][_0x559207(0x337)](_0x470a7e,_0x2536e8,!0x1);if(p['isTransformMutationFailure'](_0x3b446a))throw _0x3b446a[_0x559207(0x237)];_0x470a7e=_0x3b446a[_0x559207(0x38c)];}return{...a[_0x559207(0x59b)]['deepClone'](_0x56029a),'mutations':[_0x470a7e]};}[_0x37a374(0x612)](_0x3673ef){const _0x13ea24=_0x37a374,{unitID:_0x11891a}=_0x3673ef,_0x5a413e=this[_0x13ea24(0x427)][_0x13ea24(0x1ed)](_0x11891a)[_0x13ea24(0x52b)](Z[_0x13ea24(0x3f3)]),{undoCache:_0xe2f0a3,redoCache:_0x32c145}=_0x5a413e[_0x13ea24(0x5f4)]();if(_0xe2f0a3[_0x13ea24(0x330)]===0x0||_0x32c145[_0x13ea24(0x330)]===0x0)return;const _0xe15485=[],_0x115ddf=[];let _0x518710=a[_0x13ea24(0x59b)][_0x13ea24(0x2c7)](_0x3673ef[_0x13ea24(0x579)][0x0]),_0x519863=a['Tools']['deepClone'](_0x3673ef[_0x13ea24(0x579)][0x0]);for(let _0x241193=_0xe2f0a3[_0x13ea24(0x330)]-0x1;_0x241193>=0x0;_0x241193--){const _0xdf22f1={'id':_0x13ea24(0x3a1),'params':{..._0xe2f0a3[_0x241193]}},_0x147250={'id':_0x13ea24(0x3a1),'params':{..._0x32c145[_0x241193]}},_0x13a7ba=this[_0x13ea24(0x541)][_0x13ea24(0x337)](_0x518710,_0xdf22f1,!0x1),_0x2d65f9=this[_0x13ea24(0x541)]['transformMutation'](_0x519863,_0x147250,!0x1);if(p[_0x13ea24(0x358)](_0x13a7ba))throw _0x13a7ba['error'];if(p['isTransformMutationFailure'](_0x2d65f9))throw _0x2d65f9[_0x13ea24(0x237)];_0xe15485['unshift'](_0x13a7ba[_0x13ea24(0x3b2)]['params']),_0x115ddf[_0x13ea24(0x1d0)](_0x2d65f9['m2Prime'][_0x13ea24(0x39d)]),_0x518710=_0x13a7ba['m1Prime'],_0x519863=_0x2d65f9[_0x13ea24(0x38c)];}_0x5a413e[_0x13ea24(0x269)]({'undoCache':_0xe15485,'redoCache':_0x115ddf});}['_transformPreviousActiveRange'](_0x2684e3){const _0x43d059=_0x37a374,{unitID:_0x22dba0}=_0x2684e3,_0x1cc48f=this['_renderManagerService'][_0x43d059(0x1ed)](_0x22dba0)['with'](Z[_0x43d059(0x3f3)]),_0x2b23e9=_0x1cc48f[_0x43d059(0x1db)]();if(_0x2b23e9==null)return;const _0x228b7e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2684e3[_0x43d059(0x505)],'actions':null,'textRanges':[_0x2b23e9]}}],_0x3bc778=this[_0x43d059(0x541)][_0x43d059(0x45f)](_0x2684e3,_0x228b7e);if(!p[_0x43d059(0x340)](_0x3bc778))throw _0x3bc778['error'];const _0x4ed166=_0x3bc778['m2Prime'][0x0][_0x43d059(0x39d)][_0x43d059(0x5ed)];Array[_0x43d059(0x338)](_0x4ed166)&&_0x4ed166[_0x43d059(0x330)]&&_0x1cc48f['setActiveRange'](_0x4ed166[0x0]);}};Be=mi([Je(0x0,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),Je(0x1,p[_0x37a374(0x214)]),Je(0x2,K[_0x37a374(0x55f)])],Be);var pi=Object[_0x37a374(0x55e)],Si=Object['getOwnPropertyDescriptor'],gi=(_0x4eb8fb,_0x3cb8f6,_0x14d747,_0x97eea1)=>{for(var _0x165f91=_0x97eea1>0x1?void 0x0:_0x97eea1?Si(_0x3cb8f6,_0x14d747):_0x3cb8f6,_0x2ac6f5=_0x4eb8fb['length']-0x1,_0x372e46;_0x2ac6f5>=0x0;_0x2ac6f5--)(_0x372e46=_0x4eb8fb[_0x2ac6f5])&&(_0x165f91=(_0x97eea1?_0x372e46(_0x3cb8f6,_0x14d747,_0x165f91):_0x372e46(_0x165f91))||_0x165f91);return _0x97eea1&&_0x165f91&&pi(_0x3cb8f6,_0x14d747,_0x165f91),_0x165f91;},we=(_0x7bb3a,_0x402801)=>(_0x3a764a,_0x1eade3)=>_0x402801(_0x3a764a,_0x1eade3,_0x7bb3a);exports[_0x37a374(0x27a)]=class extends a[_0x37a374(0x65c)]{constructor(_0x565ba9,_0x2013b2,_0x363001,_0x30ff50,_0x23e0d6){const _0x4a7e3e=_0x37a374;super(),I(this,_0x4a7e3e(0x5ab),new Map()),I(this,_0x4a7e3e(0x581),new Map()),I(this,_0x4a7e3e(0x2c1),!0x1),(this['_configService']=_0x565ba9,this[_0x4a7e3e(0x5c3)]=_0x2013b2,this[_0x4a7e3e(0x41d)]=_0x363001,this['_localeService']=_0x30ff50,this['_revisionService']=_0x23e0d6,this['_setupBeforeClosingHandler']());}[_0x37a374(0x3f1)](){const _0x58fc71=_0x37a374;this[_0x58fc71(0x2c1)]=!0x0;}[_0x37a374(0x359)](){const _0x4c08dd=_0x37a374;this[_0x4c08dd(0x2c1)]=!0x1;}[_0x37a374(0x37c)](){const _0x4cd6a7=_0x37a374;this[_0x4cd6a7(0x3bc)]()[_0x4cd6a7(0x23e)](()=>super[_0x4cd6a7(0x37c)]());}async['loadOfflineData'](_0x13cf06){const _0x4cb120=_0x37a374;return this[_0x4cb120(0x2c1)]?null:this['_localStorageService'][_0x4cb120(0x3ed)](Mt(_0x13cf06));}async[_0x37a374(0x645)](_0x2d5dff,_0x111f55){const _0x966bc4=_0x37a374;return!!this[_0x966bc4(0x5c3)]['setItem'](_0x2d5dff,_0x111f55);}[_0x37a374(0x49e)](_0x40708a,_0x10a8b0,_0x552e43,_0x2a85dd){const _0x510880=_0x37a374,_0x48d8b6=this[_0x510880(0x665)][_0x510880(0x4b6)](_0x40708a);this[_0x510880(0x5ab)][_0x510880(0x5d1)](_0x40708a,{'unitID':_0x40708a,'type':_0x10a8b0,'awaitingChangeset':_0x552e43,'mutations':_0x2a85dd,'rev':_0x48d8b6}),this[_0x510880(0x581)][_0x510880(0x244)](_0x40708a)||this[_0x510880(0x4ef)](_0x40708a);}[_0x37a374(0x4ef)](_0x365f73){const _0x18e39a=_0x37a374,_0x35cf6d=this[_0x18e39a(0x4d9)]();_0x35cf6d===0x0?this['_saveCache'](_0x365f73):this[_0x18e39a(0x581)]['set'](_0x365f73,setTimeout(()=>this[_0x18e39a(0x390)](_0x365f73),_0x35cf6d));}[_0x37a374(0x4d9)](){const _0x1f2b63=_0x37a374;var _0x189feb;return(_0x189feb=this[_0x1f2b63(0x3e7)][_0x1f2b63(0x37d)](sn))!=null?_0x189feb:Fn;}[_0x37a374(0x390)](_0x511383){const _0x19e3f3=_0x37a374,_0x3c8cee=this[_0x19e3f3(0x581)][_0x19e3f3(0x5bf)](_0x511383);return _0x3c8cee!==void 0x0&&window['clearTimeout'](_0x3c8cee),this['_localStorageService'][_0x19e3f3(0x443)](Mt(_0x511383),this[_0x19e3f3(0x5ab)]['get'](_0x511383))['then'](()=>this[_0x19e3f3(0x581)][_0x19e3f3(0x412)](_0x511383));}async['exhaustSavingTask'](){const _0x3270f9=_0x37a374,_0x4ba229=[];this[_0x3270f9(0x581)][_0x3270f9(0x278)]((_0x4899d3,_0x17eb34)=>{const _0x5de756=_0x3270f9;window[_0x5de756(0x4dc)](_0x4899d3),_0x4ba229['push'](this['_saveCache'](_0x17eb34)[_0x5de756(0x23e)](()=>{const _0x495436=_0x5de756;this[_0x495436(0x581)][_0x495436(0x412)](_0x17eb34);}));}),await Promise[_0x3270f9(0x267)](_0x4ba229);}[_0x37a374(0x4cf)](){const _0x59fc42=_0x37a374;this[_0x59fc42(0x4d6)](this['_beforeCloseService']['registerBeforeClose'](()=>{if(this['_saveTaskMap']['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x37a374(0x27a)]=gi([we(0x0,a[_0x37a374(0x30b)]),we(0x1,a[_0x37a374(0x583)]),we(0x2,te[_0x37a374(0x66a)]),we(0x3,a[_0x37a374(0x629)](a['LocaleService'])),we(0x4,a[_0x37a374(0x629)](p[_0x37a374(0x445)]))],exports[_0x37a374(0x27a)]);function Mt(_0x386b77){const _0x471c92=_0x37a374;return _0x471c92(0x675)+_0x386b77;}var Ii=Object[_0x37a374(0x55e)],Ci=Object[_0x37a374(0x4a5)],Ei=(_0x495753,_0x314aa4,_0xe4b7e5,_0x4117b4)=>{for(var _0x4110b5=_0x4117b4>0x1?void 0x0:_0x4117b4?Ci(_0x314aa4,_0xe4b7e5):_0x314aa4,_0xd91b0=_0x495753['length']-0x1,_0x128eb1;_0xd91b0>=0x0;_0xd91b0--)(_0x128eb1=_0x495753[_0xd91b0])&&(_0x4110b5=(_0x4117b4?_0x128eb1(_0x314aa4,_0xe4b7e5,_0x4110b5):_0x128eb1(_0x4110b5))||_0x4110b5);return _0x4117b4&&_0x4110b5&&Ii(_0x314aa4,_0xe4b7e5,_0x4110b5),_0x4110b5;},Ze=(_0x239e88,_0x2d4572)=>(_0x41b25a,_0x222230)=>_0x2d4572(_0x41b25a,_0x222230,_0x239e88);function bi(_0x57f58a){const _0x1c0077=_0x37a374,{unitID:_0x239932,mutations:_0x137d5d}=_0x57f58a;return{'unitId':_0x239932,'subUnitId':_0x137d5d[0x0][_0x1c0077(0x39d)][_0x1c0077(0x561)]};}let ke=class{constructor(_0x2b8cb7,_0x57e09b,_0x20f0b3){const _0x4caf6d=_0x37a374;this[_0x4caf6d(0x58f)]=_0x2b8cb7,this['_transformService']=_0x57e09b,this[_0x4caf6d(0x562)]=_0x20f0b3;}[_0x37a374(0x3c8)](_0x1a8d01){const _0x12dc65=_0x37a374;var _0xad8663,_0x52baf8,_0x295a2e,_0x93beb3;const _0x2a847b=this[_0x12dc65(0x58f)][_0x12dc65(0x5bf)](k[_0x12dc65(0x3f7)]),{unitId:_0xecfb79,subUnitId:_0x1360bd}=bi(_0x1a8d01),_0xb86f93=_0x2a847b[_0x12dc65(0x2f9)](_0xecfb79)[_0x12dc65(0x344)](),_0x2f18eb=(_0x52baf8=(_0xad8663=this[_0x12dc65(0x562)][_0x12dc65(0x461)](_0xecfb79))==null?void 0x0:_0xad8663[_0x12dc65(0x25a)]())==null?void 0x0:_0x52baf8[_0x12dc65(0x261)]();if(_0xb86f93['length']===0x0||!_0xecfb79||!_0x1360bd)return;const _0x40b9be=[{'id':k[_0x12dc65(0x531)]['id'],'params':{'unitId':_0xecfb79,'subUnitId':_0x2f18eb,'selections':a[_0x12dc65(0x59b)]['deepClone'](_0xb86f93)}}],_0x3a08d6=this[_0x12dc65(0x541)]['transformMutationsWithChangeset'](_0x1a8d01,_0x40b9be);if(!p[_0x12dc65(0x340)](_0x3a08d6))throw _0x3a08d6[_0x12dc65(0x237)];const _0x7b04d=(_0x93beb3=(_0x295a2e=_0x3a08d6[_0x12dc65(0x3b2)][0x0])==null?void 0x0:_0x295a2e['params'])==null?void 0x0:_0x93beb3[_0x12dc65(0x5b0)];if(Array[_0x12dc65(0x338)](_0x7b04d)&&_0x7b04d['length']){if(_0x7b04d['length']===_0x40b9be[0x0][_0x12dc65(0x39d)][_0x12dc65(0x5b0)][_0x12dc65(0x330)]&&_0x7b04d[_0x12dc65(0x510)]((_0x405fb6,_0x537501)=>a[_0x12dc65(0x382)][_0x12dc65(0x203)](_0x405fb6[_0x12dc65(0x30f)],_0x40b9be[0x0][_0x12dc65(0x39d)][_0x12dc65(0x5b0)][_0x537501]['range'])))return;this['_injector']['get'](a[_0x12dc65(0x30c)])[_0x12dc65(0x50d)](k[_0x12dc65(0x531)]['id'],{'unitId':_0xecfb79,'subUnitId':_0x2f18eb,'selections':_0x7b04d});}}};ke=Ei([Ze(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Ze(0x1,p[_0x37a374(0x214)]),Ze(0x2,a['IUniverInstanceService'])],ke);const qe=a[_0x37a374(0x3e0)](_0x37a374(0x2ee));var _n=(_0x39b54e=>(_0x39b54e[_0x39b54e['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x39b54e[_0x39b54e['OTHER_CLIENTS_EDITING']=0x1]=_0x37a374(0x357),_0x39b54e))(_n||{});const At=0x7530,Nt=_0x37a374(0x61f);class Ti extends a['Disposable']{constructor(){const _0x5a7a15=_0x37a374;super(),I(this,_0x5a7a15(0x5e3),a['Tools'][_0x5a7a15(0x3c0)]()),I(this,_0x5a7a15(0x5c6),new Set()),I(this,'_unitOnClients',new Map()),I(this,'_heartbeatTimer',null),I(this,_0x5a7a15(0x305),new Map()),I(this,_0x5a7a15(0x210),new Map()),this['_init']();}[_0x37a374(0x37c)](){const _0x12afb1=_0x37a374;super[_0x12afb1(0x37c)](),this[_0x12afb1(0x305)]['forEach']((_0x39326c,_0x5d26e7)=>this[_0x12afb1(0x1ea)](_0x5d26e7)),this[_0x12afb1(0x295)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x37a374(0x468)](_0x7a6a4d){const _0x3f0a07=_0x37a374;return this[_0x3f0a07(0x4a0)](_0x7a6a4d)[_0x3f0a07(0x4d7)](A['distinctUntilChanged']());}['editingUnit'](_0x333cc7){const _0x39384f=_0x37a374;this[_0x39384f(0x5c6)][_0x39384f(0x654)]===0x0&&this[_0x39384f(0x50f)](),this[_0x39384f(0x5c6)][_0x39384f(0x63d)](_0x333cc7),this[_0x39384f(0x37b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x333cc7],'isForwarded':!0x1});}[_0x37a374(0x31f)](_0xa3de73){const _0x3811e=_0x37a374;this['_selfUnitIDs'][_0x3811e(0x412)](_0xa3de73),this['_selfUnitIDs']['size']===0x0&&this[_0x3811e(0x295)]&&window['clearInterval'](this['_heartbeatTimer']);}['_init'](){const _0x3aab2e=_0x37a374;this[_0x3aab2e(0x4d6)](a['toDisposable'](A[_0x3aab2e(0x294)](window,_0x3aab2e(0x201))['subscribe'](_0x110d4f=>{const _0x5db1e2=_0x3aab2e;if(_0x110d4f[_0x5db1e2(0x1c7)]!==Nt||!_0x110d4f[_0x5db1e2(0x498)])return;const _0x312e37=JSON['parse'](_0x110d4f[_0x5db1e2(0x498)]);this[_0x5db1e2(0x3b0)](_0x312e37);}))),window[_0x3aab2e(0x40f)]('unload',()=>this[_0x3aab2e(0x37b)]({'type':0x1,'memberID':this[_0x3aab2e(0x5e3)],'unitIDs':Array[_0x3aab2e(0x1ec)](this[_0x3aab2e(0x5c6)])}));}[_0x37a374(0x3b0)](_0x34214a){const _0x53623b=_0x37a374;switch(_0x34214a[_0x53623b(0x1d2)]){case 0x0:this[_0x53623b(0x58c)](_0x34214a);break;case 0x1:this[_0x53623b(0x5e5)](_0x34214a);break;case 0x2:this[_0x53623b(0x2aa)](_0x34214a);break;}}[_0x37a374(0x58c)](_0x24c9e2){const _0x55116b=_0x37a374,{unitIDs:_0x4eb33e,memberID:_0x464ac0,isForwarded:_0x4b8f09}=_0x24c9e2;_0x4eb33e[_0x55116b(0x278)](_0x5912da=>{const _0x22428b=_0x55116b;if(!_0x4b8f09&&this[_0x22428b(0x567)][_0x22428b(0x244)](_0x5912da)&&this[_0x22428b(0x4a0)](_0x5912da)[_0x22428b(0x24e)](0x1),!this[_0x22428b(0x567)][_0x22428b(0x244)](_0x5912da)||!this[_0x22428b(0x567)][_0x22428b(0x5bf)](_0x5912da)[_0x22428b(0x244)](_0x464ac0)){const _0x2d3273=this[_0x22428b(0x567)][_0x22428b(0x5bf)](_0x5912da)||new Set();_0x2d3273[_0x22428b(0x63d)](_0x464ac0),this[_0x22428b(0x567)]['set'](_0x5912da,_0x2d3273),this['_scheduleClearOtherTimer'](_0x464ac0);}}),_0x4b8f09||this[_0x55116b(0x37b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x37a374(0x349)](_0x27eddc){const _0xcd9ebb=_0x37a374;this[_0xcd9ebb(0x1ea)](_0x27eddc);const _0x4629c9=window[_0xcd9ebb(0x3d3)](()=>{const _0x402015=_0xcd9ebb;this[_0x402015(0x567)]['forEach'](_0x4d5f3c=>{const _0x3fed0e=_0x402015;_0x4d5f3c[_0x3fed0e(0x412)](_0x27eddc);});},At*0x2);this[_0xcd9ebb(0x305)][_0xcd9ebb(0x5d1)](_0x27eddc,_0x4629c9);}[_0x37a374(0x1ea)](_0x97eb7f){const _0x2aafef=_0x37a374;if(this[_0x2aafef(0x305)][_0x2aafef(0x244)](_0x97eb7f)){const _0x589049=this[_0x2aafef(0x305)][_0x2aafef(0x5bf)](_0x97eb7f);_0x589049&&window[_0x2aafef(0x4dc)](_0x589049),this['_clearOtherTimers'][_0x2aafef(0x5d1)](_0x97eb7f,null);}}['_handleLeaveEvent'](_0x2a04bc){const _0x3be46d=_0x37a374,{memberID:_0x56d3ba,unitIDs:_0x5d8d78}=_0x2a04bc;_0x5d8d78[_0x3be46d(0x278)](_0x419d87=>{const _0x4c1986=_0x3be46d;var _0x3d24c8;const _0x3095cb=this[_0x4c1986(0x567)][_0x4c1986(0x5bf)](_0x419d87);_0x3095cb&&(_0x3095cb[_0x4c1986(0x412)](_0x56d3ba),(_0x3d24c8=this[_0x4c1986(0x4a0)](_0x419d87))==null||_0x3d24c8['next'](_0x3095cb[_0x4c1986(0x654)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x56d3ba);}[_0x37a374(0x2aa)](_0x5f0ebe){const _0x17f383=_0x37a374;this[_0x17f383(0x349)](_0x5f0ebe[_0x17f383(0x280)]);}[_0x37a374(0x37b)](_0x47f74e){const _0x484a56=_0x37a374;localStorage[_0x484a56(0x443)](Nt,JSON[_0x484a56(0x3df)](_0x47f74e));}[_0x37a374(0x50f)](){const _0x4382a7=_0x37a374;this[_0x4382a7(0x295)]=window[_0x4382a7(0x4db)](()=>{const _0x548125=_0x4382a7;this[_0x548125(0x37b)]({'type':0x2,'memberID':this['_id']});},At);}['_ensureSubject'](_0x477925){const _0x5bc2cf=_0x37a374;return this[_0x5bc2cf(0x210)][_0x5bc2cf(0x244)](_0x477925)||this[_0x5bc2cf(0x210)][_0x5bc2cf(0x5d1)](_0x477925,new A[(_0x5bc2cf(0x441))](0x0)),this[_0x5bc2cf(0x210)][_0x5bc2cf(0x5bf)](_0x477925);}}var Ri=Object['defineProperty'],yi=Object[_0x37a374(0x4a5)],Oi=(_0x25d9f0,_0x5b992d,_0x29bbb0,_0x6f85d1)=>{const _0x110765=_0x37a374;for(var _0x4be0da=_0x6f85d1>0x1?void 0x0:_0x6f85d1?yi(_0x5b992d,_0x29bbb0):_0x5b992d,_0x9287e=_0x25d9f0[_0x110765(0x330)]-0x1,_0x3f584a;_0x9287e>=0x0;_0x9287e--)(_0x3f584a=_0x25d9f0[_0x9287e])&&(_0x4be0da=(_0x6f85d1?_0x3f584a(_0x5b992d,_0x29bbb0,_0x4be0da):_0x3f584a(_0x4be0da))||_0x4be0da);return _0x6f85d1&&_0x4be0da&&Ri(_0x5b992d,_0x29bbb0,_0x4be0da),_0x4be0da;},Qe=(_0x378dd2,_0x4ce35d)=>(_0x55f007,_0x496da9)=>_0x4ce35d(_0x55f007,_0x496da9,_0x378dd2);let We=class{constructor(_0x18a592,_0x5a33b6,_0x48200b){const _0x2cd03a=_0x37a374;this[_0x2cd03a(0x58f)]=_0x18a592,this[_0x2cd03a(0x541)]=_0x5a33b6,this['_docStateChangeManagerService']=_0x48200b;}[_0x37a374(0x232)](_0x586528){this['_transformHistoryAndStateStack'](_0x586528);}[_0x37a374(0x53d)](_0x41b4d6){const _0x6d017b=_0x37a374,{unitID:_0x242fce}=_0x41b4d6,{collaboration:_0x4a447e}=this[_0x6d017b(0x509)][_0x6d017b(0x387)](_0x242fce);if(_0x4a447e[_0x6d017b(0x330)]===0x0)return _0x41b4d6;let _0x12cc01=a[_0x6d017b(0x59b)][_0x6d017b(0x2c7)](_0x41b4d6[_0x6d017b(0x579)][0x0]);for(let _0x5ab3ad=0x0;_0x5ab3ad<_0x4a447e['length'];_0x5ab3ad++){const _0x59750e={'id':_0x6d017b(0x3a1),'params':{'unitId':_0x4a447e[_0x5ab3ad][_0x6d017b(0x36d)],..._0x4a447e[_0x5ab3ad]['redoState']}},_0x1748b2=this['_transformService']['transformMutation'](_0x12cc01,_0x59750e,!0x1);if(p[_0x6d017b(0x358)](_0x1748b2))throw _0x1748b2[_0x6d017b(0x237)];_0x12cc01=_0x1748b2[_0x6d017b(0x38c)];}return{...a[_0x6d017b(0x59b)][_0x6d017b(0x2c7)](_0x41b4d6),'mutations':[_0x12cc01]};}[_0x37a374(0x657)](_0x26927c){const _0x403f40=_0x37a374,{unitID:_0x4c2827}=_0x26927c,{history:_0x1a7ba6,collaboration:_0x122be7}=this[_0x403f40(0x509)][_0x403f40(0x387)](_0x4c2827);if(_0x1a7ba6[_0x403f40(0x330)]===0x0&&_0x122be7[_0x403f40(0x330)]===0x0)return;const _0x6b0665=[],_0x4d9f2f=[];let _0x25c362=a[_0x403f40(0x59b)]['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]),_0x5f547d=a['Tools']['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]);for(let _0x50e786=_0x1a7ba6[_0x403f40(0x330)]-0x1;_0x50e786>=0x0;_0x50e786--){const _0x24ec8e={'id':_0x403f40(0x3a1),'params':{'unitId':_0x1a7ba6[_0x50e786][_0x403f40(0x36d)],..._0x1a7ba6[_0x50e786][_0x403f40(0x251)]}},_0x2ca5c4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1a7ba6[_0x50e786][_0x403f40(0x36d)],..._0x1a7ba6[_0x50e786][_0x403f40(0x365)]}},_0x3ccc07=this[_0x403f40(0x541)]['transformMutation'](_0x25c362,_0x24ec8e,!0x1),_0x1778c3=this[_0x403f40(0x541)][_0x403f40(0x337)](_0x5f547d,_0x2ca5c4,!0x1);if(p[_0x403f40(0x358)](_0x3ccc07))throw _0x3ccc07[_0x403f40(0x237)];if(p[_0x403f40(0x358)](_0x1778c3))throw _0x1778c3[_0x403f40(0x237)];_0x6b0665[_0x403f40(0x1d0)]({..._0x1a7ba6[_0x50e786],'undoState':_0x3ccc07[_0x403f40(0x3b2)]['params'],'redoState':_0x1778c3[_0x403f40(0x3b2)][_0x403f40(0x39d)]}),_0x25c362=_0x3ccc07[_0x403f40(0x38c)],_0x5f547d=_0x1778c3[_0x403f40(0x38c)];}_0x25c362=a[_0x403f40(0x59b)]['deepClone'](_0x26927c[_0x403f40(0x579)][0x0]),_0x5f547d=a[_0x403f40(0x59b)][_0x403f40(0x2c7)](_0x26927c[_0x403f40(0x579)][0x0]);for(let _0x41cda3=_0x122be7['length']-0x1;_0x41cda3>=0x0;_0x41cda3--){const _0x338ab5={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x122be7[_0x41cda3]['unitId'],..._0x122be7[_0x41cda3][_0x403f40(0x251)]}},_0x8b3785={'id':_0x403f40(0x3a1),'params':{'unitId':_0x122be7[_0x41cda3][_0x403f40(0x36d)],..._0x122be7[_0x41cda3][_0x403f40(0x365)]}},_0x4bb76e=this['_transformService'][_0x403f40(0x337)](_0x25c362,_0x338ab5,!0x1),_0x452ea1=this[_0x403f40(0x541)]['transformMutation'](_0x5f547d,_0x8b3785,!0x1);if(p[_0x403f40(0x358)](_0x4bb76e))throw _0x4bb76e[_0x403f40(0x237)];if(p[_0x403f40(0x358)](_0x452ea1))throw _0x452ea1['error'];_0x4d9f2f[_0x403f40(0x1d0)]({..._0x122be7[_0x41cda3],'undoState':_0x4bb76e[_0x403f40(0x3b2)]['params'],'redoState':_0x452ea1[_0x403f40(0x3b2)][_0x403f40(0x39d)]}),_0x25c362=_0x4bb76e[_0x403f40(0x38c)],_0x5f547d=_0x452ea1[_0x403f40(0x38c)];}this[_0x403f40(0x509)][_0x403f40(0x3c5)](_0x4c2827,{'history':_0x6b0665,'collaboration':_0x4d9f2f});}};We=Oi([Qe(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Qe(0x1,p[_0x37a374(0x214)]),Qe(0x2,a[_0x37a374(0x629)](Z[_0x37a374(0x36e)]))],We);function un(_0x17d0cf){const _0x3b51d8=_0x37a374;let _0x5080d6='';for(const _0x2f533f of _0x17d0cf){const {startOffset:_0x1c75ee,endOffset:_0x4c4850,isActive:_0x18b7c2,rangeType:_0x4f4fdc,segmentId:_0x27be97,segmentPage:_0x10176a}=_0x2f533f;_0x5080d6[_0x3b51d8(0x330)]&&(_0x5080d6+=','),_0x5080d6+=_0x1c75ee+':'+_0x4c4850+':'+(_0x18b7c2?'1':'0')+':'+_0x4f4fdc+':'+_0x27be97+':'+_0x10176a;}return _0x5080d6;}function Di(_0x3caefd){const _0x256641=_0x37a374,_0xcaec1=_0x3caefd['split'](','),_0x5cc37b=[];for(const _0x17ebc4 of _0xcaec1){const [_0x4c1dd0,_0x371d4e,_0x2226f9,_0x599517,_0x852f7f,_0x2ca5e3]=_0x17ebc4['split'](':');_0x5cc37b[_0x256641(0x257)]({'startOffset':Number(_0x4c1dd0),'endOffset':Number(_0x371d4e),'collapsed':_0x4c1dd0===_0x371d4e,'isActive':_0x2226f9==='1','rangeType':_0x599517===a[_0x256641(0x39a)][_0x256641(0x318)]?a['DOC_RANGE_TYPE'][_0x256641(0x318)]:a['DOC_RANGE_TYPE'][_0x256641(0x64d)],'segmentId':typeof _0x852f7f==_0x256641(0x3de)?String(_0x852f7f):'','segmentPage':Number(_0x2ca5e3!=null?_0x2ca5e3:-0x1)});}return _0x5cc37b['some'](_0x44aa17=>_0x44aa17[_0x256641(0x32b)])||(_0x5cc37b[0x0][_0x256641(0x32b)]=!0x0),_0x5cc37b;}class Tt extends a[_0x37a374(0x2f7)]{constructor(){const _0xde9d12=_0x37a374;super(...arguments),I(this,_0xde9d12(0x394),new A[(_0xde9d12(0x441))](null)),I(this,_0xde9d12(0x292),this[_0xde9d12(0x394)][_0xde9d12(0x483)]());}[_0x37a374(0x2e9)](_0x2a751b){const _0xa19d5=_0x37a374,{unitID:_0x568ae5,memberID:_0x4e44f8,textRanges:_0x2ed820}=_0x2a751b,_0x5a094c=un(_0x2ed820);if(_0x5a094c==='')return;const _0x20684b={'unitID':_0x568ae5,'memberID':_0x4e44f8,'selection':_0x5a094c};this[_0xa19d5(0x394)]['next'](_0x20684b);}}var wi=Object[_0x37a374(0x55e)],Pi=Object[_0x37a374(0x4a5)],Ui=(_0x44ada5,_0x3e626d,_0x54e5da,_0x41e945)=>{const _0x401b67=_0x37a374;for(var _0x604454=_0x41e945>0x1?void 0x0:_0x41e945?Pi(_0x3e626d,_0x54e5da):_0x3e626d,_0x1af719=_0x44ada5[_0x401b67(0x330)]-0x1,_0x4a9480;_0x1af719>=0x0;_0x1af719--)(_0x4a9480=_0x44ada5[_0x1af719])&&(_0x604454=(_0x41e945?_0x4a9480(_0x3e626d,_0x54e5da,_0x604454):_0x4a9480(_0x604454))||_0x604454);return _0x41e945&&_0x604454&&wi(_0x3e626d,_0x54e5da,_0x604454),_0x604454;},Lt=(_0x24664e,_0x558589)=>(_0x2dd949,_0x3f73a6)=>_0x558589(_0x2dd949,_0x3f73a6,_0x24664e);let Fe=class{constructor(_0x1d361d,_0x320698){const _0x2ada61=_0x37a374;this[_0x2ada61(0x58f)]=_0x1d361d,this[_0x2ada61(0x541)]=_0x320698;}['transformSelections'](_0x3e8652){const _0x27b383=_0x37a374;var _0x4ab6b2;const _0x46767=this[_0x27b383(0x58f)][_0x27b383(0x5bf)](Re[_0x27b383(0x1fc)]),_0x131890=(_0x4ab6b2=_0x46767[_0x27b383(0x247)]())!=null?_0x4ab6b2:[];if(_0x131890[_0x27b383(0x330)]===0x0)return;const _0x52732f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e8652[_0x27b383(0x505)],'actions':null,'textRanges':_0x131890}}],_0x331f09=this[_0x27b383(0x541)][_0x27b383(0x45f)](_0x3e8652,_0x52732f);if(!p[_0x27b383(0x340)](_0x331f09))throw _0x331f09[_0x27b383(0x237)];const _0x4491e2=_0x331f09[_0x27b383(0x3b2)][0x0]['params'][_0x27b383(0x5ed)];Array[_0x27b383(0x338)](_0x4491e2)&&_0x4491e2['length']&&_0x46767['replaceTextRanges'](_0x4491e2,!0x1);}};Fe=Ui([Lt(0x0,a['Inject'](a[_0x37a374(0x4b7)])),Lt(0x1,p[_0x37a374(0x214)])],Fe);const Mi=new Set([k[_0x37a374(0x2a6)]['id']]);function xt(_0x4c71d9,_0x4a8d76,_0x4214c7,_0x1e8746,_0x1969f6){const _0x59fbdc=_0x37a374;var _0x8ba5ff,_0x5c4710,_0x11c4bb,_0x3d57c7;const _0x55371e=[];for(const _0x5df4de of _0x4c71d9)if(Mi['has'](_0x5df4de['id'])){if(_0x55371e['length']>0x0)break;_0x55371e[_0x59fbdc(0x257)](_0x5df4de);break;}else _0x55371e[_0x59fbdc(0x257)](_0x5df4de);const _0x3e3f32=(_0x5c4710=(_0x8ba5ff=_0x1969f6[_0x59fbdc(0x1eb)]())==null?void 0x0:_0x8ba5ff[_0x59fbdc(0x46e)])!=null?_0x5c4710:_0x59fbdc(0x35a),_0x3ecbbf=(_0x3d57c7=(_0x11c4bb=_0x1969f6[_0x59fbdc(0x1eb)]())==null?void 0x0:_0x11c4bb[_0x59fbdc(0x280)])!=null?_0x3d57c7:_0x59fbdc(0x35a);return{'changeset':{'unitID':_0x4a8d76,'type':p[_0x59fbdc(0x286)](_0x4214c7['getUnitType'](_0x4a8d76)),'baseRev':_0x1e8746[_0x59fbdc(0x4b6)](_0x4a8d76),'revision':0x0,'userID':_0x3e3f32,'memberID':_0x3ecbbf,'mutations':_0x55371e},'pendingMutations':_0x4c71d9[_0x59fbdc(0x2e5)](_0x55371e[_0x59fbdc(0x330)])};}function Ai(_0x355d6f,_0x2ca9b6,_0x581114,_0x4b116b,_0xd96efb){const _0x41b8c8=_0x37a374;var _0x3288af,_0x18c4af,_0x346f55,_0x59d617;const _0x46e276=[_0x355d6f[_0x41b8c8(0x20e)]((_0x4fcbe1,_0x3ce534)=>{const _0x25f207=_0x41b8c8;var _0x37bc55;const {id:_0x122bae}=_0x4fcbe1,{id:_0xbb3049,type:_0xac429}=_0x3ce534,_0x625a2c=(_0x37bc55=_0x4fcbe1[_0x25f207(0x39d)])!=null?_0x37bc55:{'actions':null},_0x319e04=_0x3ce534[_0x25f207(0x39d)];if(_0x122bae&&_0x122bae!==_0xbb3049)throw new Error(_0x25f207(0x5ea)+_0x122bae+'\x20-\x20'+_0xbb3049+'.');return{..._0x4fcbe1,'id':_0xbb3049,'type':_0xac429,'params':{'unitId':_0x319e04[_0x25f207(0x36d)],'textRanges':_0x319e04['textRanges'],'actions':a[_0x25f207(0x2a9)]['compose'](_0x625a2c[_0x25f207(0x3b6)],_0x319e04[_0x25f207(0x3b6)])}};},{})],_0x49abae=(_0x18c4af=(_0x3288af=_0xd96efb[_0x41b8c8(0x1eb)]())==null?void 0x0:_0x3288af[_0x41b8c8(0x46e)])!=null?_0x18c4af:'unknown',_0x4cabc6=(_0x59d617=(_0x346f55=_0xd96efb[_0x41b8c8(0x1eb)]())==null?void 0x0:_0x346f55['memberID'])!=null?_0x59d617:_0x41b8c8(0x35a);return{'changeset':{'unitID':_0x2ca9b6,'type':p[_0x41b8c8(0x286)](_0x581114[_0x41b8c8(0x646)](_0x2ca9b6)),'baseRev':_0x4b116b[_0x41b8c8(0x4b6)](_0x2ca9b6),'revision':0x0,'userID':_0x49abae,'memberID':_0x4cabc6,'mutations':_0x46e276},'pendingMutations':[]};}function dn(_0x46f38e,_0x49a41b){const _0x9555a9=_0x37a374,_0x4e2ed1=new A[(_0x9555a9(0x4ac))](0x1);return setTimeout(()=>_0x4e2ed1[_0x9555a9(0x24e)](_0x49a41b),_0x46f38e),_0x4e2ed1[_0x9555a9(0x483)]()[_0x9555a9(0x4d7)](A[_0x9555a9(0x630)](0x1));}const Ni={'id':k[_0x37a374(0x1c2)]['id'],'type':a['CommandType']['MUTATION'],'params':{}};var Li=Object[_0x37a374(0x55e)],xi=Object[_0x37a374(0x4a5)],ge=(_0x34c8fc,_0x5e0a74,_0x47d0ca,_0x21ad8a)=>{const _0x59c990=_0x37a374;for(var _0x3063d0=_0x21ad8a>0x1?void 0x0:_0x21ad8a?xi(_0x5e0a74,_0x47d0ca):_0x5e0a74,_0x35cc80=_0x34c8fc[_0x59c990(0x330)]-0x1,_0x488194;_0x35cc80>=0x0;_0x35cc80--)(_0x488194=_0x34c8fc[_0x35cc80])&&(_0x3063d0=(_0x21ad8a?_0x488194(_0x5e0a74,_0x47d0ca,_0x3063d0):_0x488194(_0x3063d0))||_0x3063d0);return _0x21ad8a&&_0x3063d0&&Li(_0x5e0a74,_0x47d0ca,_0x3063d0),_0x3063d0;},N=(_0x71e9b,_0x4d8a8c)=>(_0x331cfc,_0x583c05)=>_0x4d8a8c(_0x331cfc,_0x583c05,_0x71e9b),q=(_0x1a1c6b=>(_0x1a1c6b[_0x37a374(0x4a3)]=_0x37a374(0x1f7),_0x1a1c6b[_0x37a374(0x2b9)]='synced',_0x1a1c6b[_0x37a374(0x636)]=_0x37a374(0x4bf),_0x1a1c6b[_0x37a374(0x5b7)]=_0x37a374(0x489),_0x1a1c6b[_0x37a374(0x672)]=_0x37a374(0x228),_0x1a1c6b[_0x37a374(0x334)]=_0x37a374(0x1f0),_0x1a1c6b[_0x37a374(0x43c)]=_0x37a374(0x656),_0x1a1c6b[_0x37a374(0x320)]=_0x37a374(0x34e),_0x1a1c6b))(q||{});const fn=0xea60;class Ie{constructor(_0x22466a,_0x482f5a,_0x309807,_0x371071,_0x2140c3,_0x3cdcc4,_0x45d47f,_0x4e2aa7,_0x346b4a){const _0x5a0e43=_0x37a374;I(this,_0x5a0e43(0x5b5),null),I(this,_0x5a0e43(0x405),[]),(this['unitID']=_0x22466a,this[_0x5a0e43(0x1d2)]=_0x482f5a,this['_handler']=_0x2140c3,this[_0x5a0e43(0x48f)]=_0x3cdcc4,this[_0x5a0e43(0x54e)]=_0x45d47f,this[_0x5a0e43(0x665)]=_0x4e2aa7,this[_0x5a0e43(0x1fd)]=_0x346b4a,this[_0x5a0e43(0x5b5)]=_0x309807,this['_pendingMutations']=_0x371071);}[_0x37a374(0x255)](_0x3b8d5c){const _0x5a9d64=_0x37a374,_0x21cbee=this[_0x5a9d64(0x665)][_0x5a9d64(0x4b6)](this[_0x5a9d64(0x505)]);return _0x3b8d5c[_0x5a9d64(0x546)]>_0x21cbee+0x1?(this[_0x5a9d64(0x4f6)][_0x5a9d64(0x55d)]({'from':_0x21cbee,'to':_0x3b8d5c[_0x5a9d64(0x546)]-0x1}),!0x0):!0x1;}[_0x37a374(0x1e1)](_0x26231d){const _0x3d179e=_0x37a374;this[_0x3d179e(0x54e)][_0x3d179e(0x38d)](this['unitID'],_0x26231d);}[_0x37a374(0x5f7)](_0xb089c){const _0x593e02=_0x37a374;var _0x5994b5,_0x27c3f5;(_0x27c3f5=(_0x5994b5=this[_0x593e02(0x4f6)])[_0x593e02(0x42f)])==null||_0x27c3f5[_0x593e02(0x1fa)](_0x5994b5,_0xb089c);}['_transformIMECache'](_0x4ef4c6){const _0x3248b6=_0x37a374;var _0x368627,_0x4c1cf7;return(_0x4c1cf7=(_0x368627=this['_handler'])[_0x3248b6(0x329)])==null?void 0x0:_0x4c1cf7[_0x3248b6(0x1fa)](_0x368627,_0x4ef4c6);}[_0x37a374(0x260)](_0x5e3a4f){const _0x54b47b=_0x37a374;var _0x4b9f92,_0x3e686a;return(_0x3e686a=(_0x4b9f92=this[_0x54b47b(0x4f6)])[_0x54b47b(0x590)])==null?void 0x0:_0x3e686a[_0x54b47b(0x1fa)](_0x4b9f92,_0x5e3a4f);}[_0x37a374(0x641)](_0x1656c5){const _0x1b8f2d=_0x37a374;var _0x3dddd2,_0x2b0a54,_0x197753;return(_0x197753=(_0x2b0a54=(_0x3dddd2=this[_0x1b8f2d(0x4f6)])[_0x1b8f2d(0x1d6)])==null?void 0x0:_0x2b0a54[_0x1b8f2d(0x1fa)](_0x3dddd2,_0x1656c5))!=null?_0x197753:_0x1656c5;}['_transformRemoteChangesetByStateCache'](_0x154ed8){const _0x36c9f4=_0x37a374;var _0x842657,_0x53ffd0,_0x446c2c;return(_0x446c2c=(_0x53ffd0=(_0x842657=this['_handler'])[_0x36c9f4(0x454)])==null?void 0x0:_0x53ffd0[_0x36c9f4(0x1fa)](_0x842657,_0x154ed8))!=null?_0x446c2c:_0x154ed8;}[_0x37a374(0x592)](_0x456f42){const _0x16c565=_0x37a374;var _0x39c821,_0x3347ff;if(this[_0x16c565(0x1d2)]===se[_0x16c565(0x619)]){const {unitID:_0x1fa559,mutations:_0x2a0a02,memberID:_0x4c2991}=_0x456f42,_0x14f865=_0x2a0a02[0x0][_0x16c565(0x39d)][_0x16c565(0x5ed)];Array['isArray'](_0x14f865)&&_0x14f865[_0x16c565(0x330)]>0x0&&((_0x3347ff=(_0x39c821=this[_0x16c565(0x4f6)])[_0x16c565(0x44e)])==null||_0x3347ff[_0x16c565(0x1fa)](_0x39c821,{'unitID':_0x1fa559,'memberID':_0x4c2991,'textRanges':_0x14f865}));}}['_updateLocalCache'](){const _0x131b4c=_0x37a374;this[_0x131b4c(0x1fd)][_0x131b4c(0x49e)](this['unitID'],this[_0x131b4c(0x1d2)],this[_0x131b4c(0x5b5)],this[_0x131b4c(0x405)]);}[_0x37a374(0x35c)](){const _0x3c5ce0=_0x37a374;return this['_revisionService'][_0x3c5ce0(0x4b6)](this['unitID']);}['_incrementRevisionNumber'](){const _0x4fceee=_0x37a374;this[_0x4fceee(0x665)][_0x4fceee(0x296)](this[_0x4fceee(0x505)]);}[_0x37a374(0x27e)](_0x12c87b){const _0x23c36b=_0x37a374;var _0x1b4bcb;let _0x2dc1d5=this[_0x23c36b(0x641)](_0x12c87b);_0x2dc1d5=this[_0x23c36b(0x563)](_0x2dc1d5);const _0x22d9ba=a[_0x23c36b(0x2ed)](_0x2dc1d5[_0x23c36b(0x579)],this[_0x23c36b(0x48f)],{'fromCollab':!0x0});if(!_0x22d9ba[_0x23c36b(0x1e6)])throw _0x22d9ba[_0x23c36b(0x237)]instanceof Error?_0x22d9ba[_0x23c36b(0x237)]:new Error((_0x1b4bcb=_0x22d9ba[_0x23c36b(0x237)])!=null?_0x1b4bcb:'[CollaborationState]:\x20apply\x20error!');this[_0x23c36b(0x245)](_0x2dc1d5),this['_transformStateCache'](_0x2dc1d5),this['_transformUndoredo'](_0x12c87b),this[_0x23c36b(0x5f7)](_0x2dc1d5),this[_0x23c36b(0x592)](_0x2dc1d5),this['_incrementRevisionNumber']();}}let ye=class extends Ie{constructor(_0x18c08c,_0x45cb70,_0xdb64d0,_0xb0aaef,_0x58a277,_0x1037be,_0x37d17d,_0x2e2f60,_0x1e2a38,_0x26c0bd){const _0x7855ac=_0x37a374;super(_0x18c08c,_0x45cb70,null,[],_0xdb64d0,_0x2e2f60,_0x37d17d,_0xb0aaef,_0x58a277),I(this,_0x7855ac(0x58b),'synced'),(this['_injector']=_0x1037be,this[_0x7855ac(0x58a)]=_0x1e2a38,this[_0x7855ac(0x541)]=_0x26c0bd);}[_0x37a374(0x1e7)](_0x1791a9){const _0x5cb7da=_0x37a374,_0xe4002b=this[_0x5cb7da(0x58f)][_0x5cb7da(0x4bb)](ce,this['unitID'],this['type'],[_0x1791a9],this['_handler']);return _0xe4002b[_0x5cb7da(0x57b)](),_0xe4002b['_updateLocalCache'](),_0xe4002b;}['onRemoteChangeset'](_0xe6a800){const _0x353678=_0x37a374;if(this['_checkMissing'](_0xe6a800))return this[_0x353678(0x58f)][_0x353678(0x4bb)](oe,this[_0x353678(0x505)],this[_0x353678(0x1d2)],null,[],null,[_0xe6a800],this['_handler']);try{const _0x964bb4=this['_transformService']['transformMutationsWithChangeset'](_0xe6a800,[Ni]);if(p['isTransformMutationsWithChangesetSuccess'](_0x964bb4)){const {c1Prime:_0x38f93b}=_0x964bb4;return this['_executeRemoteChangeset'](_0x38f93b),this;}throw _0x964bb4['error'];}catch(_0x21e739){return this[_0x353678(0x58a)]['error'](_0x21e739),this[_0x353678(0x2af)](!0x1);}}[_0x37a374(0x2af)](_0x5e501b){const _0x36f9eb=_0x37a374;return this[_0x36f9eb(0x58f)][_0x36f9eb(0x4bb)](ve,this[_0x36f9eb(0x505)],this[_0x36f9eb(0x1d2)],null,[],this[_0x36f9eb(0x4f6)],_0x5e501b);}[_0x37a374(0x333)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0xc54858=_0x37a374;throw new Error(_0xc54858(0x2bf));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){const _0x1ea386=_0x37a374;return this[_0x1ea386(0x58f)][_0x1ea386(0x4bb)](me,this[_0x1ea386(0x505)],this[_0x1ea386(0x1d2)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x37a374(0x282)](){const _0x4f32ab=_0x37a374;throw new Error(_0x4f32ab(0x2ff));}[_0x37a374(0x354)](){const _0x31a353=_0x37a374,_0x50f391=this['_revisionService'][_0x31a353(0x4b6)](this[_0x31a353(0x505)]);return this['_handler'][_0x31a353(0x55d)]({'from':_0x50f391,'to':0x0}),this['_injector'][_0x31a353(0x4bb)](oe,this[_0x31a353(0x505)],this['type'],null,[],null,[],this[_0x31a353(0x4f6)]);}};ye=ge([N(0x3,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x5,a['Inject'](a[_0x37a374(0x4b7)])),N(0x6,a[_0x37a374(0x3cd)]),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x217)]),N(0x9,p[_0x37a374(0x214)])],ye);let ce=class extends Ie{constructor(_0x2d66dd,_0x35a20b,_0x3d4df,_0x49fde1,_0x157466,_0x8e8b97,_0x40f5c4,_0x43e7d4,_0x3fcdc7,_0x2e38c8,_0x59f29f,_0x10dcf5,_0x50ae61,_0x2c3333){const _0x4612e3=_0x37a374;super(_0x2d66dd,_0x35a20b,null,_0x3d4df,_0x49fde1,_0x2e38c8,_0x2c3333,_0x8e8b97,_0x40f5c4),I(this,_0x4612e3(0x58b),'pending'),I(this,'_scheduleTimestamp',null),I(this,_0x4612e3(0x517),null),(this[_0x4612e3(0x58f)]=_0x157466,this['_memberService']=_0x43e7d4,this[_0x4612e3(0x58a)]=_0x3fcdc7,this['_configService']=_0x59f29f,this[_0x4612e3(0x541)]=_0x10dcf5,this['_univerInstanceService']=_0x50ae61);}['appendMutation'](_0x12a175){const _0x2a032e=_0x37a374;return this[_0x2a032e(0x405)][_0x2a032e(0x257)](_0x12a175),this[_0x2a032e(0x408)](),this;}['onRemoteChangeset'](_0x9de953){const _0x1677ab=_0x37a374;if(this['_checkMissing'](_0x9de953))return this[_0x1677ab(0x518)](),this['_injector']['createInstance'](oe,this[_0x1677ab(0x505)],this[_0x1677ab(0x1d2)],null,this[_0x1677ab(0x405)],null,[_0x9de953],this[_0x1677ab(0x4f6)]);try{const _0xc4d889=this[_0x1677ab(0x541)]['transformMutationsWithChangeset'](_0x9de953,this['_pendingMutations']);if(p[_0x1677ab(0x340)](_0xc4d889)){const {c1Prime:_0x19f785,m2Prime:_0x5abd67}=_0xc4d889;this[_0x1677ab(0x27e)](_0x19f785);const _0x147466=this[_0x1677ab(0x58f)][_0x1677ab(0x4bb)](ce,this[_0x1677ab(0x505)],this['type'],_0x5abd67,this[_0x1677ab(0x4f6)]);return this[_0x1677ab(0x518)](),_0x147466['_schedule'](this['_scheduleTimestamp']?Math[_0x1677ab(0x59f)](0x0,new Date()[_0x1677ab(0x671)]()-this['_scheduleTimestamp']):this[_0x1677ab(0x5b2)]()),_0x147466;}throw _0xc4d889[_0x1677ab(0x237)];}catch(_0x673aea){return this[_0x1677ab(0x58a)]['error'](_0x673aea),this[_0x1677ab(0x2af)](!0x1);}}[_0x37a374(0x333)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0x39c7c1=_0x37a374;throw new Error(_0x39c7c1(0x53a));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){const _0x1dd7d9=_0x37a374;return this[_0x1dd7d9(0x518)](),this[_0x1dd7d9(0x58f)][_0x1dd7d9(0x4bb)](me,this['unitID'],this['type'],null,this[_0x1dd7d9(0x405)],this[_0x1dd7d9(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}['_schedule'](_0x3911c7){const _0x374a40=_0x37a374,_0x414823=_0x3911c7!=null?_0x3911c7:this[_0x374a40(0x5b2)]();this[_0x374a40(0x448)]=new Date()[_0x374a40(0x671)](),this[_0x374a40(0x517)]=window[_0x374a40(0x3d3)](()=>{const _0x1ac570=_0x374a40;this[_0x1ac570(0x518)]();let _0x268f89=null;switch(this['type']){case se[_0x1ac570(0x362)]:{_0x268f89=xt(this[_0x1ac570(0x405)],this[_0x1ac570(0x505)],this[_0x1ac570(0x1d4)],this[_0x1ac570(0x665)],this[_0x1ac570(0x5f6)]);break;}case se[_0x1ac570(0x619)]:{this[_0x1ac570(0x405)][_0x1ac570(0x510)](_0x797048=>_0x797048['id']===Re[_0x1ac570(0x578)]['id'])?_0x268f89=Ai(this[_0x1ac570(0x405)],this['unitID'],this[_0x1ac570(0x1d4)],this[_0x1ac570(0x665)],this[_0x1ac570(0x5f6)]):_0x268f89=xt(this[_0x1ac570(0x405)],this['unitID'],this['_univerInstanceService'],this[_0x1ac570(0x665)],this['_memberService']);break;}default:throw new Error(_0x1ac570(0x316)+this[_0x1ac570(0x1d2)]+_0x1ac570(0x2d7));}const {changeset:_0x18b8ee,pendingMutations:_0x44eab9}=_0x268f89;this['_handler'][_0x1ac570(0x603)](_0x18b8ee);const _0x4d8519=_0x44eab9[_0x1ac570(0x330)]?this['_injector']['createInstance'](le,this[_0x1ac570(0x505)],this[_0x1ac570(0x1d2)],_0x18b8ee,_0x44eab9,this[_0x1ac570(0x4f6)],void 0x0):this[_0x1ac570(0x58f)]['createInstance'](fe,this[_0x1ac570(0x505)],this[_0x1ac570(0x1d2)],_0x18b8ee,this['_handler']);_0x4d8519['_updateLocalCache'](),this[_0x1ac570(0x4f6)][_0x1ac570(0x3e4)](this,_0x4d8519);},_0x414823);}[_0x37a374(0x5b2)](){const _0x166f47=_0x37a374;var _0x5af257;const _0x506584=this[_0x166f47(0x3e7)][_0x166f47(0x37d)](ne);return(_0x5af257=_0x506584==null?void 0x0:_0x506584[_0x166f47(0x21a)])!=null?_0x5af257:jn;}[_0x37a374(0x282)](){const _0x284869=_0x37a374;throw new Error(_0x284869(0x5b1));}[_0x37a374(0x518)](){const _0x5b9b0c=_0x37a374;this[_0x5b9b0c(0x517)]!=null&&(clearTimeout(this[_0x5b9b0c(0x517)]),this[_0x5b9b0c(0x517)]=null);}[_0x37a374(0x2af)](_0x281c0c){const _0x190e84=_0x37a374;return this['_clearScheduledTask'](),this[_0x190e84(0x58f)][_0x190e84(0x4bb)](ve,this[_0x190e84(0x505)],this[_0x190e84(0x1d2)],null,this['_pendingMutations'],this[_0x190e84(0x4f6)],_0x281c0c);}};ce=ge([N(0x4,a[_0x37a374(0x629)](a['Injector'])),N(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x6,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x7,a[_0x37a374(0x629)](exports[_0x37a374(0x33d)])),N(0x8,a[_0x37a374(0x217)]),N(0x9,a[_0x37a374(0x30c)]),N(0xa,a[_0x37a374(0x30b)]),N(0xb,p[_0x37a374(0x214)]),N(0xc,a[_0x37a374(0x662)]),N(0xd,a['IUndoRedoService'])],ce);let fe=class extends Ie{constructor(_0x599c25,_0x5e1316,_0x223e94,_0x171e9e,_0x1bfae,_0x3c4045,_0x828463,_0x1a319b,_0x1308d2,_0x10c416,_0x564882){const _0x382321=_0x37a374;super(_0x599c25,_0x5e1316,_0x223e94,[],_0x171e9e,_0x1a319b,_0x564882,_0x3c4045,_0x828463),I(this,_0x382321(0x58b),_0x382321(0x489)),I(this,_0x382321(0x388),0x0),I(this,_0x382321(0x3d0)),I(this,'_sender'),(this[_0x382321(0x58f)]=_0x1bfae,this[_0x382321(0x58a)]=_0x1308d2,this[_0x382321(0x541)]=_0x10c416);}['appendMutation'](_0x4d6e85){const _0x266279=_0x37a374;this[_0x266279(0x518)]();const _0x35d39a=this[_0x266279(0x58f)]['createInstance'](le,this[_0x266279(0x505)],this[_0x266279(0x1d2)],this['_awaitingChangeset'],[_0x4d6e85],this['_handler'],this[_0x266279(0x3d0)]);return _0x35d39a[_0x266279(0x408)](),_0x35d39a;}[_0x37a374(0x449)](_0x14eab7){const _0x1c8d50=_0x37a374;if(this['_checkMissing'](_0x14eab7))return this[_0x1c8d50(0x518)](),this[_0x1c8d50(0x58f)][_0x1c8d50(0x4bb)](oe,this[_0x1c8d50(0x505)],this[_0x1c8d50(0x1d2)],this['_awaitingChangeset'],[],null,[_0x14eab7],this[_0x1c8d50(0x4f6)]);try{const _0x234357=this[_0x1c8d50(0x541)][_0x1c8d50(0x666)]([_0x14eab7],[this[_0x1c8d50(0x5b5)]],!0x1);if(p[_0x1c8d50(0x4ea)](_0x234357)){const {c1Prime:_0x250c66,c2Prime:_0x5a205b}=_0x234357;this[_0x1c8d50(0x27e)](_0x250c66[0x0]),_0x5a205b[0x0][_0x1c8d50(0x63a)]=this[_0x1c8d50(0x35c)](),this[_0x1c8d50(0x518)]();const _0x4d285b=this['_injector'][_0x1c8d50(0x4bb)](fe,this[_0x1c8d50(0x505)],this['type'],_0x5a205b[0x0],this['_handler']);return _0x4d285b[_0x1c8d50(0x408)](),_0x4d285b;}return this[_0x1c8d50(0x2af)](!0x1);}catch(_0x1b7a24){return this[_0x1c8d50(0x58a)][_0x1c8d50(0x237)](_0x1b7a24),this[_0x1c8d50(0x2af)](!0x1);}}[_0x37a374(0x333)](_0x107480){const _0x2c8966=_0x37a374;this[_0x2c8966(0x518)]();const _0xf48354=this[_0x2c8966(0x665)][_0x2c8966(0x4b6)](this['unitID']);if(_0x107480['revision']<_0xf48354-0x1)return this;if(this[_0x2c8966(0x255)](_0x107480))return this[_0x2c8966(0x58f)][_0x2c8966(0x4bb)](oe,this[_0x2c8966(0x505)],this[_0x2c8966(0x1d2)],null,[],this[_0x2c8966(0x5b5)],[],this[_0x2c8966(0x4f6)]);this[_0x2c8966(0x285)]();const _0x3f84fd=this[_0x2c8966(0x58f)][_0x2c8966(0x4bb)](ye,this['unitID'],this[_0x2c8966(0x1d2)],this[_0x2c8966(0x4f6)]);return _0x3f84fd['_updateLocalCache'](),_0x3f84fd;}[_0x37a374(0x22e)](_0x10edd4){const _0xf94502=_0x37a374;return this[_0xf94502(0x2af)](!!(_0x10edd4!=null&&_0x10edd4[_0xf94502(0x404)]));}[_0x37a374(0x1ef)](_0x4a6b69){const _0x3afcb2=_0x37a374;return this[_0x3afcb2(0x388)]>fn?this[_0x3afcb2(0x5f0)]():(this[_0x3afcb2(0x3d0)]=dn(this['_resendTimeout'],{'timeout':this[_0x3afcb2(0x388)],'reqId':_0x4a6b69[_0x3afcb2(0x663)]}),this['_sender']=this[_0x3afcb2(0x3d0)][_0x3afcb2(0x274)](({reqId:_0x17390a,timeout:_0x29566b})=>{const _0x55925e=_0x3afcb2;this[_0x55925e(0x557)](_0x17390a,_0x29566b);}),this);}[_0x37a374(0x5f0)](){const _0x57c2e1=_0x37a374;return this[_0x57c2e1(0x518)](),this['_injector'][_0x57c2e1(0x4bb)](me,this[_0x57c2e1(0x505)],this[_0x57c2e1(0x1d2)],this[_0x57c2e1(0x5b5)],[],this[_0x57c2e1(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x24b537=_0x37a374;this[_0x24b537(0x4f6)][_0x24b537(0x603)](this['_awaitingChangeset']);}[_0x37a374(0x2af)](_0x375a34){const _0x2d990c=_0x37a374;return this[_0x2d990c(0x518)](),this[_0x2d990c(0x58f)][_0x2d990c(0x4bb)](ve,this[_0x2d990c(0x505)],this['type'],this[_0x2d990c(0x5b5)],[],this[_0x2d990c(0x4f6)],_0x375a34);}[_0x37a374(0x557)](_0x4ce353,_0x531028){const _0x579aa5=_0x37a374;var _0x443e4d;_0x4ce353===((_0x443e4d=this[_0x579aa5(0x5b5)])==null?void 0x0:_0x443e4d[_0x579aa5(0x663)])&&(this[_0x579aa5(0x282)](),this[_0x579aa5(0x388)]=_0x531028===0x0?0x3e8:_0x531028*0x2);}['_clearScheduledTask'](){const _0x2df7aa=_0x37a374;var _0x5623aa;(_0x5623aa=this[_0x2df7aa(0x208)])==null||_0x5623aa['unsubscribe'](),this[_0x2df7aa(0x388)]=0x0;}};fe=ge([N(0x4,a['Inject'](a[_0x37a374(0x4b7)])),N(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x6,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x217)]),N(0x9,p['ITransformService']),N(0xa,a[_0x37a374(0x3cd)])],fe);let le=class extends Ie{constructor(_0x1768d1,_0xc51e47,_0x472b7f,_0x12232f,_0x4cf125,_0x4ff2f9,_0x5dd173,_0x9cf8b6,_0x3e957e,_0xe5cbca,_0x59997d,_0x3edda9,_0x3192dd){const _0x196a63=_0x37a374;super(_0x1768d1,_0xc51e47,_0x472b7f,_0x12232f,_0x4cf125,_0xe5cbca,_0x3192dd,_0x9cf8b6,_0x3e957e),I(this,_0x196a63(0x58b),'awaiting_with_pending'),I(this,_0x196a63(0x388),0x0),I(this,_0x196a63(0x3d0)),I(this,_0x196a63(0x208)),(this[_0x196a63(0x58f)]=_0x5dd173,this[_0x196a63(0x58a)]=_0x59997d,this['_transformService']=_0x3edda9,_0x4ff2f9&&(this[_0x196a63(0x3d0)]=_0x4ff2f9,this[_0x196a63(0x208)]=this['_resendTimer'][_0x196a63(0x274)](({reqId:_0x4a2f61,timeout:_0x4bb375})=>{const _0x317f97=_0x196a63;this[_0x317f97(0x557)](_0x4a2f61,_0x4bb375);})));}[_0x37a374(0x1e7)](_0x374fa0){return this['_pendingMutations']['push'](_0x374fa0),this;}['onRemoteChangeset'](_0x15abec){const _0x358e3e=_0x37a374;if(this[_0x358e3e(0x255)](_0x15abec))return this[_0x358e3e(0x518)](),this[_0x358e3e(0x58f)][_0x358e3e(0x4bb)](oe,this['unitID'],this[_0x358e3e(0x1d2)],this[_0x358e3e(0x5b5)],this[_0x358e3e(0x405)],null,[_0x15abec],this[_0x358e3e(0x4f6)]);try{const _0x2ac631=this['_transformService']['transformChangesets']([_0x15abec],[this['_awaitingChangeset']],!0x1);if(p['isTransformChangesetsSuccess'](_0x2ac631)){const {c1Prime:_0x3f961a,c2Prime:_0x1f5e68}=_0x2ac631,_0x300a0f=this['_transformService'][_0x358e3e(0x45f)](_0x3f961a[0x0],this[_0x358e3e(0x405)]);if(p[_0x358e3e(0x340)](_0x300a0f)){const {c1Prime:_0x4d99c9,m2Prime:_0x182c51}=_0x300a0f;return this[_0x358e3e(0x27e)](_0x4d99c9),_0x1f5e68[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask'](),this[_0x358e3e(0x58f)]['createInstance'](le,this['unitID'],this[_0x358e3e(0x1d2)],_0x1f5e68[0x0],_0x182c51,this[_0x358e3e(0x4f6)],void 0x0);}throw _0x300a0f['error'];}throw _0x2ac631[_0x358e3e(0x237)];}catch(_0xd69032){return this[_0x358e3e(0x58a)]['error'](_0xd69032),this[_0x358e3e(0x2af)](!0x1);}}[_0x37a374(0x333)](_0x4e9f37){const _0x40f9c4=_0x37a374;if(this[_0x40f9c4(0x518)](),this[_0x40f9c4(0x255)](_0x4e9f37))return this[_0x40f9c4(0x58f)]['createInstance'](oe,this['unitID'],this[_0x40f9c4(0x1d2)],null,this[_0x40f9c4(0x405)],this['_awaitingChangeset'],[],this[_0x40f9c4(0x4f6)]);this[_0x40f9c4(0x285)]();const _0x37ace6=this[_0x40f9c4(0x58f)]['createInstance'](ce,this[_0x40f9c4(0x505)],this[_0x40f9c4(0x1d2)],this[_0x40f9c4(0x405)],this[_0x40f9c4(0x4f6)]);return _0x37ace6[_0x40f9c4(0x57b)](),_0x37ace6['_updateLocalCache'](),_0x37ace6;}['onRemoteRej'](_0x4cbc72){const _0x458fc5=_0x37a374;return this['_onConflict'](!!(_0x4cbc72!=null&&_0x4cbc72[_0x458fc5(0x404)]));}[_0x37a374(0x1ef)](_0x54e6c8){const _0x10425c=_0x37a374;return this['_resendTimeout']>fn?this[_0x10425c(0x5f0)]():(this[_0x10425c(0x3d0)]=dn(this[_0x10425c(0x388)],{'timeout':this[_0x10425c(0x388)],'reqId':_0x54e6c8[_0x10425c(0x663)]}),this['_sender']=this[_0x10425c(0x3d0)][_0x10425c(0x274)](({reqId:_0x22a615,timeout:_0x5edc49})=>{const _0x21e89c=_0x10425c;this[_0x21e89c(0x557)](_0x22a615,_0x5edc49);}),this);}['toggleOffline'](){const _0x4e3af7=_0x37a374;return this[_0x4e3af7(0x518)](),this[_0x4e3af7(0x58f)][_0x4e3af7(0x4bb)](me,this[_0x4e3af7(0x505)],this[_0x4e3af7(0x1d2)],this[_0x4e3af7(0x5b5)],this[_0x4e3af7(0x405)],this[_0x4e3af7(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x1ee3cd=_0x37a374;this['_handler'][_0x1ee3cd(0x603)](this['_awaitingChangeset']);}['_onConflict'](_0x545f5b){const _0x3e627c=_0x37a374;return this[_0x3e627c(0x518)](),this[_0x3e627c(0x58f)]['createInstance'](ve,this['unitID'],this[_0x3e627c(0x1d2)],null,this['_pendingMutations'],this['_handler'],_0x545f5b);}[_0x37a374(0x557)](_0x561532,_0x2428ef){const _0x306bd3=_0x37a374;var _0x149079;_0x561532===((_0x149079=this['_awaitingChangeset'])==null?void 0x0:_0x149079['reqId'])&&(this['resend'](),this[_0x306bd3(0x388)]=_0x2428ef===0x0?0x3e8:_0x2428ef*0x2);}[_0x37a374(0x518)](){var _0x5d4da3;(_0x5d4da3=this['_sender'])==null||_0x5d4da3['unsubscribe'](),this['_resendTimeout']=0x0;}};le=ge([N(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x7,a[_0x37a374(0x629)](p['RevisionService'])),N(0x8,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x9,a[_0x37a374(0x30c)]),N(0xa,a[_0x37a374(0x217)]),N(0xb,p[_0x37a374(0x214)]),N(0xc,a['IUndoRedoService'])],le);let ve=class extends Ie{constructor(_0x12bf99,_0x45c257,_0x55a50c,_0x578b4b,_0x47480c,_0x4897f6=!0x1,_0x265ab2,_0xd2b26a,_0xfc2b6,_0x4e1713,_0x1aa4c8,_0x1e48df,_0x1b290c){const _0x639081=_0x37a374;super(_0x12bf99,_0x45c257,_0x55a50c,_0x578b4b,_0x47480c,_0xd2b26a,_0xfc2b6,_0x1aa4c8,_0x4e1713),I(this,_0x639081(0x58b),'conflict'),(this[_0x639081(0x299)]=_0x4897f6,this[_0x639081(0x478)]=_0x265ab2,this[_0x639081(0x1c9)]=_0x1e48df,this[_0x639081(0x31a)]=_0x1b290c,this[_0x639081(0x440)](),this[_0x639081(0x613)](),this[_0x639081(0x463)]());}[_0x37a374(0x1e7)](){return this;}[_0x37a374(0x449)](){return this;}[_0x37a374(0x333)](){return this;}[_0x37a374(0x22e)](){return this;}[_0x37a374(0x1ef)](){return this;}['toggleOffline'](){return this;}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x282)](){const _0x1494a4=_0x37a374;throw new Error(_0x1494a4(0x424));}[_0x37a374(0x613)](){const _0x5a00a1=_0x37a374;this[_0x5a00a1(0x1fd)]['updateOfflineData'](this[_0x5a00a1(0x505)],this[_0x5a00a1(0x1d2)],null,[]);}[_0x37a374(0x440)](){const _0x455ddf=_0x37a374;this['_isPermissionRej']?this[_0x455ddf(0x31a)][_0x455ddf(0x5b9)]({'title':this[_0x455ddf(0x1c9)]['t'](_0x455ddf(0x585)),'content':this[_0x455ddf(0x1c9)]['t']('permission.content'),'type':_0x455ddf(0x237),'duration':0x0}):this[_0x455ddf(0x31a)][_0x455ddf(0x5b9)]({'title':this[_0x455ddf(0x1c9)]['t'](_0x455ddf(0x268)),'content':this[_0x455ddf(0x1c9)]['t']('conflict.content'),'type':'error','duration':0x0});}[_0x37a374(0x463)](){const _0x21a1ee=_0x37a374;this[_0x21a1ee(0x478)][_0x21a1ee(0x4d3)](new k[(_0x21a1ee(0x363))](this[_0x21a1ee(0x505)])['id'],!0x1);}};ve=ge([N(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x459)])),N(0x7,a[_0x37a374(0x30c)]),N(0x8,a[_0x37a374(0x3cd)]),N(0x9,a['Inject'](exports[_0x37a374(0x27a)])),N(0xa,a['Inject'](p[_0x37a374(0x445)])),N(0xb,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),N(0xc,te[_0x37a374(0x321)])],ve);let me=class extends Ie{constructor(_0x1df9fa,_0x37aa80,_0xf3daa6,_0xb005aa,_0x3e5951,_0x4001d6,_0x536762,_0x298850,_0x493c59,_0x570cde){const _0x38c067=_0x37a374;super(_0x1df9fa,_0x37aa80,_0xf3daa6,_0xb005aa,_0x3e5951,_0x493c59,_0x570cde,_0x536762,_0x298850),I(this,_0x38c067(0x58b),_0x38c067(0x34e)),this[_0x38c067(0x58f)]=_0x4001d6;}[_0x37a374(0x1e7)](_0x125d40){const _0x39ce55=_0x37a374;return this[_0x39ce55(0x405)][_0x39ce55(0x257)](_0x125d40),this[_0x39ce55(0x408)](),this;}[_0x37a374(0x449)](_0x58dccf){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x37a374(0x22e)](){const _0x4f4a54=_0x37a374;throw new Error(_0x4f4a54(0x313));}[_0x37a374(0x1ef)](){return this;}[_0x37a374(0x5f0)](){return this;}['toggleOnline'](){const _0x16323f=_0x37a374,{_injector:_0x18bde6,_pendingMutations:_0x77ea4e,_awaitingChangeset:_0x21e51b,unitID:_0x2d514a,_handler:_0x261ec2,type:_0x45306e}=this,_0x19d48b=vn(_0x18bde6,_0x2d514a,_0x45306e,_0x21e51b,_0x77ea4e,_0x261ec2);return _0x19d48b instanceof ce?_0x19d48b[_0x16323f(0x57b)]():(_0x19d48b instanceof le||_0x19d48b instanceof fe)&&_0x19d48b[_0x16323f(0x282)](),_0x19d48b;}[_0x37a374(0x282)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};me=ge([N(0x5,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x6,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x7,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0x8,a[_0x37a374(0x30c)]),N(0x9,a[_0x37a374(0x3cd)])],me);let oe=class extends Ie{constructor(_0x1b88f6,_0xbef233,_0xa699a5,_0x3cc48f,_0x598cb4,_0x132bf4,_0x635c12,_0x9c77c9,_0x49a523,_0x297f1a,_0x556fae,_0x286232,_0x3e6243,_0x476df7){const _0xe4dc37=_0x37a374;super(_0x1b88f6,_0xbef233,_0xa699a5,_0x3cc48f,_0x635c12,_0x286232,_0x3e6243,_0x49a523,_0x297f1a),I(this,_0xe4dc37(0x58b),_0xe4dc37(0x1f0)),(this['_acknowledgedAwaitingChangeset']=_0x598cb4,this[_0xe4dc37(0x385)]=_0x132bf4,this[_0xe4dc37(0x58f)]=_0x9c77c9,this[_0xe4dc37(0x58a)]=_0x556fae,this[_0xe4dc37(0x541)]=_0x476df7);}[_0x37a374(0x3b1)](_0x548ec){const _0x51b432=_0x37a374;try{const _0x1b1b2b=[..._0x548ec,...this['_queuedRemoteChangesets']],_0x31469d=[this[_0x51b432(0x5b5)]||this[_0x51b432(0x28e)]][_0x51b432(0x434)](_0x3ed658=>!!_0x3ed658);let _0x4c6638,_0x3318f3;if(_0x31469d[_0x51b432(0x330)]){const _0x35c259=this[_0x51b432(0x541)][_0x51b432(0x666)](_0x1b1b2b,_0x31469d,!0x1);if(!p[_0x51b432(0x4ea)](_0x35c259))throw _0x35c259[_0x51b432(0x237)];_0x4c6638=_0x35c259[_0x51b432(0x3c6)],_0x3318f3=_0x35c259[_0x51b432(0x534)];}else _0x4c6638=_0x1b1b2b,_0x3318f3=[];let _0x1514af=this[_0x51b432(0x405)];_0x4c6638['forEach'](_0x27a59f=>{const _0x48af2f=_0x51b432;let _0x21fc7f;if(_0x1514af[_0x48af2f(0x330)]){const _0xf3c73d=this[_0x48af2f(0x541)]['transformMutationsWithChangeset'](_0x27a59f,_0x1514af);if(!p[_0x48af2f(0x340)](_0xf3c73d))throw _0xf3c73d[_0x48af2f(0x237)];_0x21fc7f=_0xf3c73d['c1Prime'],_0x1514af=_0xf3c73d[_0x48af2f(0x3b2)];}else _0x21fc7f=_0x27a59f;this[_0x48af2f(0x27e)](_0x21fc7f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x51b432(0x285)](),this[_0x51b432(0x5b5)]&&_0x3318f3[_0x51b432(0x330)]&&(_0x3318f3[0x0]['baseRev']=this[_0x51b432(0x35c)]());let _0x5cbe05;if(this[_0x51b432(0x5b5)]&&_0x1514af[_0x51b432(0x330)]!==0x0)_0x5cbe05=this[_0x51b432(0x58f)][_0x51b432(0x4bb)](le,this['unitID'],this[_0x51b432(0x1d2)],_0x3318f3[0x0],_0x1514af,this[_0x51b432(0x4f6)],void 0x0);else{if(this[_0x51b432(0x5b5)]&&_0x1514af['length']===0x0)_0x3318f3[0x0][_0x51b432(0x63a)]=this[_0x51b432(0x35c)](),_0x5cbe05=this['_injector'][_0x51b432(0x4bb)](fe,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],_0x3318f3[0x0],this[_0x51b432(0x4f6)]);else{if(_0x1514af[_0x51b432(0x330)]!==0x0){const _0x504ef6=this[_0x51b432(0x58f)][_0x51b432(0x4bb)](ce,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],_0x1514af,this[_0x51b432(0x4f6)]);_0x504ef6[_0x51b432(0x57b)](),_0x5cbe05=_0x504ef6;}else _0x5cbe05=this[_0x51b432(0x58f)]['createInstance'](ye,this[_0x51b432(0x505)],this[_0x51b432(0x1d2)],this[_0x51b432(0x4f6)]);}}return _0x5cbe05[_0x51b432(0x408)](),_0x5cbe05;}catch(_0x3828dd){return this[_0x51b432(0x58a)]['error'](_0x51b432(0x1de),_0x51b432(0x2ea),_0x3828dd),this[_0x51b432(0x58f)][_0x51b432(0x4bb)](ve,this['unitID'],this['type'],this[_0x51b432(0x5b5)],this[_0x51b432(0x405)],this[_0x51b432(0x4f6)],!0x1);}}[_0x37a374(0x282)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x37a374(0x1e7)](_0x1f3c11){const _0x43c4f4=_0x37a374;return this[_0x43c4f4(0x405)][_0x43c4f4(0x257)](_0x1f3c11),this;}['onRemoteChangeset'](_0x2a7ac4){const _0x27cb42=_0x37a374;return this[_0x27cb42(0x385)][_0x27cb42(0x257)](_0x2a7ac4),this;}['onRemoteAck'](_0x1cd52a){const _0x29a57a=_0x37a374;if(this[_0x29a57a(0x5b5)])return this[_0x29a57a(0x28e)]=this[_0x29a57a(0x5b5)],this[_0x29a57a(0x5b5)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x37a374(0x22e)](_0x39e1af){const _0x1ae7a7=_0x37a374;return this[_0x1ae7a7(0x2af)](!!(_0x39e1af!=null&&_0x39e1af[_0x1ae7a7(0x404)]));}['onRemoteRetry'](){return this;}[_0x37a374(0x5f0)](){const _0x5bbbe6=_0x37a374;return this['_injector'][_0x5bbbe6(0x4bb)](me,this[_0x5bbbe6(0x505)],this[_0x5bbbe6(0x1d2)],this[_0x5bbbe6(0x5b5)],this['_pendingMutations'],this[_0x5bbbe6(0x4f6)]);}[_0x37a374(0x4a8)](){return this;}[_0x37a374(0x2af)](_0x49ce94){const _0x522d18=_0x37a374;return this[_0x522d18(0x58f)]['createInstance'](ve,this[_0x522d18(0x505)],this['type'],this[_0x522d18(0x5b5)],this[_0x522d18(0x405)],this[_0x522d18(0x4f6)],_0x49ce94);}};oe=ge([N(0x7,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),N(0x8,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),N(0x9,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),N(0xa,a['ILogService']),N(0xb,a[_0x37a374(0x30c)]),N(0xc,a['IUndoRedoService']),N(0xd,p['ITransformService'])],oe);function vn(_0x2b7a83,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x9d3e2e,_0x16e3b5){const _0xb21768=_0x37a374;return _0x2cd1fc&&_0x9d3e2e[_0xb21768(0x330)]?_0x2b7a83[_0xb21768(0x4bb)](le,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x9d3e2e,_0x16e3b5,void 0x0):_0x2cd1fc?_0x2b7a83[_0xb21768(0x4bb)](fe,_0x4eab64,_0x512bdb,_0x2cd1fc,_0x16e3b5):_0x9d3e2e[_0xb21768(0x330)]?_0x2b7a83[_0xb21768(0x4bb)](ce,_0x4eab64,_0x512bdb,_0x9d3e2e,_0x16e3b5):_0x2b7a83[_0xb21768(0x4bb)](ye,_0x4eab64,_0x512bdb,_0x16e3b5);}var $i=Object[_0x37a374(0x55e)],ji=Object[_0x37a374(0x4a5)],Rt=(_0x3e1fa2,_0x402542,_0x18b4c0,_0x2d4b9b)=>{const _0x4b38c2=_0x37a374;for(var _0x4255d0=_0x2d4b9b>0x1?void 0x0:_0x2d4b9b?ji(_0x402542,_0x18b4c0):_0x402542,_0x115d3c=_0x3e1fa2[_0x4b38c2(0x330)]-0x1,_0x53066f;_0x115d3c>=0x0;_0x115d3c--)(_0x53066f=_0x3e1fa2[_0x115d3c])&&(_0x4255d0=(_0x2d4b9b?_0x53066f(_0x402542,_0x18b4c0,_0x4255d0):_0x53066f(_0x4255d0))||_0x4255d0);return _0x2d4b9b&&_0x4255d0&&$i(_0x402542,_0x18b4c0,_0x4255d0),_0x4255d0;},H=(_0x1e635b,_0x4f7371)=>(_0x2354cd,_0x41ff79)=>_0x4f7371(_0x2354cd,_0x41ff79,_0x1e635b);exports[_0x37a374(0x4c6)]=class extends a[_0x37a374(0x2f7)]{constructor(_0x149ca4,_0x342399,_0x39c667,_0x5a1524,_0x4bf99d,_0x13fe40,_0x78469f,_0x1bf878,_0x553c46,_0x598335,_0x461d18,_0x4fd497,_0x488747){const _0x40e85b=_0x37a374;super(),I(this,_0x40e85b(0x36f),new A[(_0x40e85b(0x441))](null)),I(this,'state$',this[_0x40e85b(0x36f)][_0x40e85b(0x483)]()),I(this,_0x40e85b(0x524)),I(this,_0x40e85b(0x5e4),!0x1),I(this,'_changesetSessionId',''),I(this,_0x40e85b(0x3f9),0x0),I(this,_0x40e85b(0x238),this[_0x40e85b(0x32a)][_0x40e85b(0x4d7)](A[_0x40e85b(0x323)](_0x27fbe7=>_0x27fbe7?_0x27fbe7[_0x40e85b(0x58b)]:q[_0x40e85b(0x320)]),A[_0x40e85b(0x3ae)](0x1))),I(this,_0x40e85b(0x2fe),!0x1),I(this,_0x40e85b(0x3f2),[]),(this[_0x40e85b(0x505)]=_0x149ca4,this[_0x40e85b(0x2bb)]=_0x342399,this[_0x40e85b(0x52c)]=_0x39c667,this[_0x40e85b(0x58f)]=_0x5a1524,this[_0x40e85b(0x1fd)]=_0x4bf99d,this['_compressMutationService']=_0x13fe40,this[_0x40e85b(0x1c9)]=_0x78469f,this[_0x40e85b(0x665)]=_0x1bf878,this['_logService']=_0x553c46,this[_0x40e85b(0x48f)]=_0x598335,this[_0x40e85b(0x5cd)]=_0x461d18,this[_0x40e85b(0x478)]=_0x4fd497,this[_0x40e85b(0x2f2)]=_0x488747);}get[_0x37a374(0x620)](){const _0x321c5f=_0x37a374;return this[_0x321c5f(0x524)];}async[_0x37a374(0x5ca)](){const _0x34271a=_0x37a374;if(this[_0x34271a(0x620)])throw new Error(_0x34271a(0x3ec));await this[_0x34271a(0x3c3)]();}[_0x37a374(0x52d)](){const _0x15ae7a=_0x37a374;return this[_0x15ae7a(0x5e4)]=!0x0,a[_0x15ae7a(0x219)](()=>{const _0xc1759c=_0x15ae7a;this[_0xc1759c(0x5e4)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x37a374(0x234)](_0x259ca3){const _0x478d99=_0x37a374;this[_0x478d99(0x524)]=_0x259ca3,this[_0x478d99(0x36f)][_0x478d99(0x24e)](_0x259ca3);}async[_0x37a374(0x3c3)](){const _0x482c6f=_0x37a374;var _0x331a8f;this[_0x482c6f(0x234)](await this[_0x482c6f(0x435)]()),this[_0x482c6f(0x2f2)]&&((_0x331a8f=this[_0x482c6f(0x2f2)])==null||_0x331a8f[_0x482c6f(0x500)](this[_0x482c6f(0x505)]),this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2f2)][_0x482c6f(0x468)](this[_0x482c6f(0x505)])['subscribe'](_0x54471f=>{const _0x400e69=_0x482c6f;this[_0x400e69(0x58a)]['debug'](_0x400e69(0x53c),'editing\x20status\x20changed\x20to',_0x54471f),_0x54471f===_n[_0x400e69(0x357)]?(this['_messageService'][_0x400e69(0x5b9)]({'content':this[_0x400e69(0x1c9)]['t']('collaboration.single-unit.warning'),'type':Se[_0x400e69(0x4c0)][_0x400e69(0x54d)]}),this[_0x400e69(0x478)][_0x400e69(0x4d3)](new k[(_0x400e69(0x363))](this[_0x400e69(0x505)])['id'],!0x1),this[_0x400e69(0x478)][_0x400e69(0x30e)](!0x1)):(this[_0x400e69(0x478)][_0x400e69(0x4d3)](new k[(_0x400e69(0x363))](this[_0x400e69(0x505)])['id'],!0x0),this[_0x400e69(0x478)]['setShowComponents'](!0x0));})));let _0xa1aa9e=!0x1;return this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2bb)][_0x482c6f(0x444)]['subscribe'](_0x59ae9c=>{const _0x2c0158=_0x482c6f;_0x59ae9c===re[_0x2c0158(0x1e9)]?this[_0x2c0158(0x5d3)](_0xa1aa9e):_0x59ae9c===re[_0x2c0158(0x320)]&&(_0xa1aa9e=!0x0,this['_toggleOffline']());})),this[_0x482c6f(0x4d6)](this[_0x482c6f(0x2bb)][_0x482c6f(0x5cc)][_0x482c6f(0x274)](_0x226ade=>{const _0x37a6ff=_0x482c6f;try{switch(_0x226ade[_0x37a6ff(0x1d7)]){case p[_0x37a6ff(0x521)]['NEW_CHANGESETS']:{this[_0x37a6ff(0x2cc)](p[_0x37a6ff(0x266)](_0x226ade['data']));break;}case p['CollaborationEvent']['CHANGESET_ACK']:{this[_0x37a6ff(0x35b)](_0x226ade[_0x37a6ff(0x470)]);break;}case p[_0x37a6ff(0x521)][_0x37a6ff(0x466)]:{this[_0x37a6ff(0x42e)]();break;}case p['CollaborationEvent'][_0x37a6ff(0x24f)]:{this[_0x37a6ff(0x57f)](_0x226ade[_0x37a6ff(0x470)]);break;}case p['CollaborationEvent'][_0x37a6ff(0x4af)]:{this['_onFetchMissResult'](_0x226ade[_0x37a6ff(0x470)]['changesets'][_0x37a6ff(0x323)](_0x1bc890=>p[_0x37a6ff(0x266)](_0x1bc890)));break;}case p['CollaborationEvent']['PERMISSION_REJ']:this[_0x37a6ff(0x42e)]({'isPermissionRej':!0x0});}}catch(_0x2405c7){throw console[_0x37a6ff(0x237)](_0x37a6ff(0x40c),_0x2405c7),_0x2405c7;}})),this[_0x482c6f(0x524)];}[_0x37a374(0x569)](){const _0x59c7c8=_0x37a374;this[_0x59c7c8(0x2fe)]=!0x1;}[_0x37a374(0x350)](){const _0x123532=_0x37a374;if(this[_0x123532(0x2fe)])throw new Error(_0x123532(0x586));this[_0x123532(0x2fe)]=!0x0;}[_0x37a374(0x495)](_0x76eb32){const _0x2783c8=_0x37a374;this[_0x2783c8(0x350)](),this[_0x2783c8(0x234)](this[_0x2783c8(0x524)][_0x2783c8(0x1e7)](_0x76eb32)),this['_unlockTransition']();}[_0x37a374(0x2cc)](_0x3a6f88){const _0x1754b8=_0x37a374;if(!(_0x3a6f88[_0x1754b8(0x546)]<=this[_0x1754b8(0x665)][_0x1754b8(0x4b6)](this['unitID']))){if(this[_0x1754b8(0x5e4)]){this['_remoteChangesetQueue'][_0x1754b8(0x257)](_0x3a6f88);return;}this[_0x1754b8(0x3bd)](_0x3a6f88);}}['_exhaustRemoteChangesetQueue'](){const _0x3c4624=_0x37a374;this[_0x3c4624(0x3f2)][_0x3c4624(0x278)](_0x323068=>this[_0x3c4624(0x3bd)](_0x323068)),this[_0x3c4624(0x3f2)]=[];}['_applyRemoteChangeset'](_0x1e0168){const _0x46b928=_0x37a374,_0xef8e10=this[_0x46b928(0x3b4)]['interceptor'][_0x46b928(0x503)](this[_0x46b928(0x3b4)][_0x46b928(0x62d)][_0x46b928(0x3ca)]()[_0x46b928(0x207)])(_0x1e0168[_0x46b928(0x579)],null)||_0x1e0168['mutations'],_0x13f058={..._0x1e0168,'mutations':_0xef8e10};this[_0x46b928(0x350)](),this[_0x46b928(0x234)](this[_0x46b928(0x524)][_0x46b928(0x449)](_0x13f058)),this[_0x46b928(0x569)]();}[_0x37a374(0x35b)](_0x438f64){const _0x5b2f41=_0x37a374;this[_0x5b2f41(0x350)](),this[_0x5b2f41(0x234)](this[_0x5b2f41(0x524)][_0x5b2f41(0x333)](_0x438f64)),this['_unlockTransition']();}[_0x37a374(0x42e)](_0x29092a){const _0x30afc1=_0x37a374;this[_0x30afc1(0x350)](),this[_0x30afc1(0x234)](this['_state']['onRemoteRej'](_0x29092a)),this[_0x30afc1(0x569)]();}[_0x37a374(0x57f)](_0x62b3cb){const _0x2b38b3=_0x37a374;this[_0x2b38b3(0x350)](),this[_0x2b38b3(0x234)](this['_state'][_0x2b38b3(0x1ef)](_0x62b3cb)),this[_0x2b38b3(0x569)]();}['_onFetchMissResult'](_0x51134e){const _0x1dbc33=_0x37a374;if(!(this['_state']instanceof oe))throw new TypeError(_0x1dbc33(0x577));const _0x103670=_0x51134e['map'](_0xfbcc0=>{const _0x1fee43=_0x1dbc33,_0x5a4c0e=this[_0x1fee43(0x3b4)]['interceptor'][_0x1fee43(0x503)](this[_0x1fee43(0x3b4)][_0x1fee43(0x62d)][_0x1fee43(0x3ca)]()['COMPRESS_MUTATION_APPLY'])(_0xfbcc0['mutations'],null)||_0xfbcc0['mutations'];return{..._0xfbcc0,'mutations':_0x5a4c0e};});this['_lockTransition'](),this[_0x1dbc33(0x234)](this[_0x1dbc33(0x524)][_0x1dbc33(0x3b1)](_0x103670)),this[_0x1dbc33(0x569)]();}[_0x37a374(0x406)](){const _0x3c9288=_0x37a374;this[_0x3c9288(0x350)](),this[_0x3c9288(0x234)](this[_0x3c9288(0x524)][_0x3c9288(0x5f0)]()),this[_0x3c9288(0x569)]();}[_0x37a374(0x5d3)](_0x17d4dc=!0x1){const _0x177524=_0x37a374;this[_0x177524(0x350)](),this[_0x177524(0x234)](this[_0x177524(0x524)][_0x177524(0x4a8)]()),this[_0x177524(0x569)]();const _0x3d3323=this[_0x177524(0x524)];_0x17d4dc&&_0x3d3323 instanceof ye&&(this['_lockTransition'](),this[_0x177524(0x234)](_0x3d3323[_0x177524(0x354)]()),this[_0x177524(0x569)]());}async['_createInitialState'](){return new Promise(_0x4f16b9=>{const _0x379dce=_0x513c;this[_0x379dce(0x2bb)]['sessionStatus$'][_0x379dce(0x4d7)](A[_0x379dce(0x630)](0x1))[_0x379dce(0x274)](async _0x2e5c82=>{const _0x255a13=_0x379dce;_0x4f16b9(await this[_0x255a13(0x56c)](_0x2e5c82===re[_0x255a13(0x1e9)]));});});}[_0x37a374(0x622)](){const _0x42f781=_0x37a374,_0x5f4681=this[_0x42f781(0x505)];return{'onStateChange':(_0x4370af,_0x567143)=>{const _0x308cec=_0x42f781;if(_0x4370af!==this[_0x308cec(0x524)])throw new Error(_0x308cec(0x38a)+_0x4370af[_0x308cec(0x58b)]+_0x308cec(0x377)+_0x567143[_0x308cec(0x58b)]+_0x308cec(0x680)+this[_0x308cec(0x524)][_0x308cec(0x58b)]);this[_0x308cec(0x234)](_0x567143);},'onSendChangeset':_0x57555b=>{const _0x59e1e8=_0x42f781;_0x57555b['sid']||(_0x57555b[_0x59e1e8(0x236)]=this[_0x59e1e8(0x1fe)],_0x57555b[_0x59e1e8(0x663)]=++this['_changesetReqId']);const _0xe8c83f={'eventID':p[_0x59e1e8(0x521)][_0x59e1e8(0x380)],'data':{'unitID':_0x57555b['unitID'],'unitType':this[_0x59e1e8(0x52c)],'changeset':_0x57555b,'memberID':this['session'][_0x59e1e8(0x485)]()}};this[_0x59e1e8(0x2bb)][_0x59e1e8(0x554)](_0xe8c83f,this[_0x59e1e8(0x505)]);},'onMissingChangesets':({from:_0x17d737,to:_0x4552e7})=>{const _0x2352a9=_0x42f781;this[_0x2352a9(0x58a)][_0x2352a9(0x643)](_0x2352a9(0x53c),_0x2352a9(0x411)+_0x17d737+_0x2352a9(0x2ef)+_0x4552e7);const _0x4e292c={'eventID':p['CollaborationEvent'][_0x2352a9(0x3e8)],'data':{'unitID':_0x5f4681,'unitType':this[_0x2352a9(0x52c)],'from':_0x17d737,'to':_0x4552e7}};this[_0x2352a9(0x2bb)][_0x2352a9(0x554)](_0x4e292c,this[_0x2352a9(0x505)]);}};}async[_0x37a374(0x56c)](_0x3dabd7){const _0x25d6d7=_0x37a374;var _0x18ad64,_0x56b429;const _0xee46ea=await this[_0x25d6d7(0x1fd)][_0x25d6d7(0x3b8)](this[_0x25d6d7(0x505)]),_0x4ef77d=(_0x18ad64=_0xee46ea==null?void 0x0:_0xee46ea[_0x25d6d7(0x579)])!=null?_0x18ad64:[],_0x4cc3b8=(_0x56b429=_0xee46ea==null?void 0x0:_0xee46ea[_0x25d6d7(0x1fb)])!=null?_0x56b429:null,_0x5b2dee=!!(_0x4cc3b8!=null&&_0x4cc3b8[_0x25d6d7(0x236)])&&!!(_0x4cc3b8!=null&&_0x4cc3b8[_0x25d6d7(0x663)]);this[_0x25d6d7(0x1fe)]=_0x5b2dee?_0x4cc3b8['sid']:di(),this[_0x25d6d7(0x3f9)]=_0x5b2dee?_0x4cc3b8[_0x25d6d7(0x663)]:0x0;const _0x728219=this[_0x25d6d7(0x505)];try{this['_replayCachedMutations'](_0x4cc3b8,_0x4ef77d);}catch(_0x666ab0){this[_0x25d6d7(0x58a)][_0x25d6d7(0x237)](_0x666ab0);}const _0x2a3d17=this[_0x25d6d7(0x622)]();if(_0x3dabd7){const _0x21542d=vn(this[_0x25d6d7(0x58f)],_0x728219,this[_0x25d6d7(0x52c)],_0x4cc3b8,_0x4ef77d,_0x2a3d17);return _0x21542d instanceof ce?_0x21542d[_0x25d6d7(0x57b)]():(_0x21542d instanceof le||_0x21542d instanceof fe)&&_0x21542d[_0x25d6d7(0x282)](),_0x21542d;}return this[_0x25d6d7(0x58f)][_0x25d6d7(0x4bb)](me,_0x728219,this[_0x25d6d7(0x52c)],_0x4cc3b8,_0x4ef77d,_0x2a3d17);}['_replayCachedMutations'](_0xd24bf6,_0x1826f1){const _0x203725=_0x37a374;var _0x4ce6dc,_0x10f8bd;const _0x17dd7a=this['_compressMutationService'][_0x203725(0x62d)]['fetchThroughInterceptors'](this[_0x203725(0x3b4)][_0x203725(0x62d)][_0x203725(0x3ca)]()['COMPRESS_MUTATION_APPLY']);(_0x4ce6dc=_0x17dd7a((_0xd24bf6==null?void 0x0:_0xd24bf6[_0x203725(0x579)])||[],null))==null||_0x4ce6dc[_0x203725(0x278)](_0x26ef07=>this[_0x203725(0x48f)][_0x203725(0x50d)](_0x26ef07['id'],_0x26ef07[_0x203725(0x39d)])),(_0x10f8bd=_0x17dd7a(_0x1826f1||[],null))==null||_0x10f8bd[_0x203725(0x278)](_0x2e1902=>this[_0x203725(0x48f)][_0x203725(0x50d)](_0x2e1902['id'],_0x2e1902['params']));}},exports[_0x37a374(0x4c6)]=Rt([H(0x3,a[_0x37a374(0x629)](a['Injector'])),H(0x4,a['Inject'](exports['LocalCacheService'])),H(0x5,a[_0x37a374(0x629)](p['CompressMutationService'])),H(0x6,a[_0x37a374(0x629)](a[_0x37a374(0x52f)])),H(0x7,a[_0x37a374(0x629)](p[_0x37a374(0x445)])),H(0x8,a[_0x37a374(0x217)]),H(0x9,a['ICommandService']),H(0xa,te['IMessageService']),H(0xb,a[_0x37a374(0x459)]),H(0xc,a[_0x37a374(0x673)](qe))],exports[_0x37a374(0x4c6)]),exports[_0x37a374(0x1ce)]=class extends exports[_0x37a374(0x4c6)]{constructor(_0x1afd70,_0x4b5373,_0x2ac808,_0x2c41a2,_0x2d19ad,_0x504885,_0x2b16b2,_0x2a1ba4,_0x55c422,_0x457a7c,_0x2c4850,_0x323768,_0x44fee2,_0x5cfbc5,_0x529df4,_0x168507,_0x3d912a,_0x1b0bbd){const _0x3002b8=_0x37a374;super(_0x1afd70,_0x2ac808,_0x4b5373,_0x2c41a2,_0x2d19ad,_0x504885,_0x2b16b2,_0x2a1ba4,_0x5cfbc5,_0x529df4,_0x168507,_0x3d912a,_0x1b0bbd),this[_0x3002b8(0x505)]=_0x1afd70,this[_0x3002b8(0x1d2)]=_0x4b5373,this[_0x3002b8(0x509)]=_0x55c422,this[_0x3002b8(0x670)]=_0x457a7c,this[_0x3002b8(0x324)]=_0x2c4850,this['_docTransformSelectionsService']=_0x323768,this[_0x3002b8(0x227)]=_0x44fee2;}[_0x37a374(0x622)](){const _0x1a709b=_0x37a374,_0x184e56=super[_0x1a709b(0x622)]();return _0x184e56['onTransformIME']=_0x110090=>this[_0x1a709b(0x670)][_0x1a709b(0x270)](_0x110090),_0x184e56[_0x1a709b(0x590)]=_0x19685b=>this[_0x1a709b(0x324)][_0x1a709b(0x232)](_0x19685b),_0x184e56['onTransformSelections']=_0x1c30ec=>this[_0x1a709b(0x499)][_0x1a709b(0x3c8)](_0x1c30ec),_0x184e56['onSyncEditingCollabCursor']=_0x6b6982=>this[_0x1a709b(0x227)][_0x1a709b(0x2e9)](_0x6b6982),_0x184e56[_0x1a709b(0x1d6)]=_0x13fcce=>this[_0x1a709b(0x670)][_0x1a709b(0x53d)](_0x13fcce),_0x184e56[_0x1a709b(0x454)]=_0x344946=>this['_docTransformStateCacheService'][_0x1a709b(0x53d)](_0x344946),_0x184e56;}async['_init'](){const _0xaafae1=_0x37a374,_0x88f08e=await super['_init']();return this[_0xaafae1(0x509)][_0xaafae1(0x5a8)][_0xaafae1(0x4d7)](A[_0xaafae1(0x27d)](this[_0xaafae1(0x574)]))['subscribe'](_0x75121f=>{const _0x531651=_0xaafae1;if(_0x75121f==null)return;const {unitId:_0x1340fc,redoState:_0x4a6a61,commandId:_0x193384}=_0x75121f;if(_0x1340fc!==this[_0x531651(0x505)])return;const _0xe0586f={'id':_0x193384,'type':a[_0x531651(0x667)][_0x531651(0x317)],'params':{'unitId':_0x1340fc,'actions':_0x4a6a61[_0x531651(0x3b6)],'textRanges':null}};this[_0x531651(0x495)](_0xe0586f);}),_0x88f08e;}},exports[_0x37a374(0x1ce)]=Rt([H(0x3,a['Inject'](a['Injector'])),H(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),H(0x5,a[_0x37a374(0x629)](p[_0x37a374(0x5e1)])),H(0x6,a['Inject'](a[_0x37a374(0x52f)])),H(0x7,a[_0x37a374(0x629)](p['RevisionService'])),H(0x8,a[_0x37a374(0x629)](Z[_0x37a374(0x36e)])),H(0x9,a['Inject'](Be)),H(0xa,a[_0x37a374(0x629)](We)),H(0xb,a['Inject'](Fe)),H(0xc,a[_0x37a374(0x629)](Tt)),H(0xd,a['ILogService']),H(0xe,a[_0x37a374(0x30c)]),H(0xf,te[_0x37a374(0x3bf)]),H(0x10,a['IPermissionService']),H(0x11,a[_0x37a374(0x673)](qe))],exports[_0x37a374(0x1ce)]),exports[_0x37a374(0x352)]=class extends exports[_0x37a374(0x4c6)]{constructor(_0x2d9a04,_0xe22a2a,_0x4c9bcc,_0x36747e,_0x4535ac,_0x1d4b3b,_0x26c617,_0x6b7c71,_0x1dc266,_0x3422ee,_0x1cc597,_0x22938b,_0x3dd47b,_0xd62b2f){const _0x47bc95=_0x37a374;super(_0x2d9a04,_0x4c9bcc,_0xe22a2a,_0x36747e,_0x4535ac,_0x1d4b3b,_0x26c617,_0x6b7c71,_0x3422ee,_0x1cc597,_0x22938b,_0x3dd47b,_0xd62b2f),this[_0x47bc95(0x505)]=_0x2d9a04,this[_0x47bc95(0x1d2)]=_0xe22a2a,this[_0x47bc95(0x346)]=_0x1dc266;}['_createHandler'](){const _0x4c3715=_0x37a374,_0x193b67=super[_0x4c3715(0x622)]();return _0x193b67[_0x4c3715(0x42f)]=_0x21736d=>this['_sheetTransformSelectionsService'][_0x4c3715(0x3c8)](_0x21736d),_0x193b67;}async[_0x37a374(0x3c3)](){const _0x1344fe=_0x37a374,_0x4bada7=await super[_0x1344fe(0x3c3)]();return this[_0x1344fe(0x4d6)](this[_0x1344fe(0x48f)]['onCommandExecuted']((_0x1a5ef8,_0x2d99c3)=>{const _0x206970=_0x1344fe;if(_0x1a5ef8[_0x206970(0x1d2)]!==a[_0x206970(0x667)][_0x206970(0x317)]||_0x2d99c3!=null&&_0x2d99c3[_0x206970(0x20b)]||_0x2d99c3!=null&&_0x2d99c3[_0x206970(0x64a)])return;const _0x59a49c=_0x1a5ef8[_0x206970(0x39d)];if((_0x59a49c==null?void 0x0:_0x59a49c[_0x206970(0x36d)])!==this[_0x206970(0x505)])return;const _0x3b720d=_0x1a5ef8,_0x1bf9c0=this['_compressMutationService'][_0x206970(0x62d)][_0x206970(0x503)](this['_compressMutationService'][_0x206970(0x62d)][_0x206970(0x3ca)]()[_0x206970(0x312)])([_0x3b720d],null)||[_0x3b720d];this[_0x206970(0x495)](_0x1bf9c0[0x0]);})),_0x4bada7;}},exports['SheetCollaborationEntity']=Rt([H(0x3,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),H(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),H(0x5,a[_0x37a374(0x629)](p['CompressMutationService'])),H(0x6,a[_0x37a374(0x629)](a['LocaleService'])),H(0x7,a[_0x37a374(0x629)](p['RevisionService'])),H(0x8,a['Inject'](ke)),H(0x9,a[_0x37a374(0x217)]),H(0xa,a['ICommandService']),H(0xb,te[_0x37a374(0x3bf)]),H(0xc,a[_0x37a374(0x459)]),H(0xd,a[_0x37a374(0x673)](qe))],exports['SheetCollaborationEntity']);var Hi=Object[_0x37a374(0x55e)],Bi=Object[_0x37a374(0x4a5)],ki=(_0x3a236f,_0x485a5b,_0x3c7801,_0x189a10)=>{const _0x3bdad7=_0x37a374;for(var _0x165fe5=_0x189a10>0x1?void 0x0:_0x189a10?Bi(_0x485a5b,_0x3c7801):_0x485a5b,_0x5eb7a8=_0x3a236f[_0x3bdad7(0x330)]-0x1,_0x6f0a67;_0x5eb7a8>=0x0;_0x5eb7a8--)(_0x6f0a67=_0x3a236f[_0x5eb7a8])&&(_0x165fe5=(_0x189a10?_0x6f0a67(_0x485a5b,_0x3c7801,_0x165fe5):_0x6f0a67(_0x165fe5))||_0x165fe5);return _0x189a10&&_0x165fe5&&Hi(_0x485a5b,_0x3c7801,_0x165fe5),_0x165fe5;},et=(_0x2581c8,_0x57b1ee)=>(_0x21f5af,_0x1fa01c)=>_0x57b1ee(_0x21f5af,_0x1fa01c,_0x2581c8);exports[_0x37a374(0x511)]=class extends a[_0x37a374(0x2f7)]{constructor(_0x394f8,_0x331e04,_0x2cedb3){const _0xc434d7=_0x37a374;super(),I(this,_0xc434d7(0x529),new Map()),I(this,_0xc434d7(0x664),new A[(_0xc434d7(0x383))]()),(this[_0xc434d7(0x58f)]=_0x394f8,this[_0xc434d7(0x5c9)]=_0x331e04,this[_0xc434d7(0x1d4)]=_0x2cedb3,this[_0xc434d7(0x3c3)]());}[_0x37a374(0x37c)](){const _0xacc96c=_0x37a374;super['dispose'](),this[_0xacc96c(0x529)][_0xacc96c(0x278)](_0x4dd68b=>_0x4dd68b[_0xacc96c(0x37c)]()),this[_0xacc96c(0x529)][_0xacc96c(0x65a)]();}[_0x37a374(0x22b)](_0x229424){const _0x39f3d3=_0x37a374;var _0x1df92e;return(_0x1df92e=this[_0x39f3d3(0x529)][_0x39f3d3(0x5bf)](_0x229424))!=null?_0x1df92e:null;}[_0x37a374(0x5ce)](_0x23f443){const _0x555204=_0x37a374,_0x443bc5=this[_0x555204(0x22b)](_0x23f443);return _0x443bc5?A['of'](_0x443bc5):this[_0x555204(0x664)][_0x555204(0x4d7)](V[_0x555204(0x434)](_0x3af32e=>_0x3af32e[_0x555204(0x505)]===_0x23f443));}[_0x37a374(0x3c3)](){const _0x4858d2=_0x37a374;this[_0x4858d2(0x1d4)][_0x4858d2(0x442)](a[_0x4858d2(0x22d)]['UNIVER_SHEET'])[_0x4858d2(0x4d7)](A['takeUntil'](this[_0x4858d2(0x574)]),V[_0x4858d2(0x438)](0x10))[_0x4858d2(0x274)](async _0x18e388=>{const _0x3bdb76=_0x4858d2,_0x5863e3=_0x18e388[_0x3bdb76(0x615)](),_0x2deeab=await this[_0x3bdb76(0x42a)](_0x5863e3,se[_0x3bdb76(0x362)]);this['_entities'][_0x3bdb76(0x5d1)](_0x5863e3,_0x2deeab);}),this[_0x4858d2(0x1d4)][_0x4858d2(0x442)](a['UniverInstanceType'][_0x4858d2(0x619)])[_0x4858d2(0x4d7)](A[_0x4858d2(0x27d)](this[_0x4858d2(0x574)]),V[_0x4858d2(0x438)](0x10))[_0x4858d2(0x4d7)](V[_0x4858d2(0x434)](_0x4ec177=>!_0x4ec177[_0x4858d2(0x615)]()[_0x4858d2(0x3b5)]('__')))[_0x4858d2(0x274)](async _0x19e33f=>{const _0x5c72e0=_0x4858d2,_0xf7d879=_0x19e33f['getUnitId'](),_0x3f83e5=await this[_0x5c72e0(0x42a)](_0xf7d879,se['UNIVER_DOC']);this[_0x5c72e0(0x529)][_0x5c72e0(0x5d1)](_0xf7d879,_0x3f83e5);}),A['merge'](this[_0x4858d2(0x1d4)][_0x4858d2(0x44a)](a[_0x4858d2(0x22d)][_0x4858d2(0x362)]),this[_0x4858d2(0x1d4)][_0x4858d2(0x44a)](a[_0x4858d2(0x22d)][_0x4858d2(0x619)]))['pipe'](A[_0x4858d2(0x27d)](this['dispose$']))[_0x4858d2(0x274)](_0x412578=>{const _0x425359=_0x4858d2,_0x56801f=_0x412578[_0x425359(0x615)](),_0x5f44a8=this[_0x425359(0x529)]['get'](_0x56801f);_0x5f44a8&&(_0x5f44a8[_0x425359(0x37c)](),this[_0x425359(0x529)][_0x425359(0x412)](_0x56801f));});}async[_0x37a374(0x42a)](_0x538e96,_0x349850){const _0x380280=_0x37a374,_0x5c9d16=await this[_0x380280(0x5c9)][_0x380280(0x501)](_0x538e96),_0x207228=this[_0x380280(0x58f)][_0x380280(0x4bb)](this[_0x380280(0x4ff)](_0x349850),_0x538e96,_0x349850,_0x5c9d16);return await _0x207228[_0x380280(0x5ca)](),this['_entityInit$']['next'](_0x207228),_0x207228;}['_getCtorByUniverType'](_0x40f54b){const _0x434a9d=_0x37a374;switch(_0x40f54b){case se[_0x434a9d(0x619)]:return exports[_0x434a9d(0x1ce)];case se['UNIVER_SHEET']:return exports[_0x434a9d(0x352)];default:throw new Error(_0x434a9d(0x5d5)+_0x40f54b);}}},exports[_0x37a374(0x511)]=ki([et(0x0,a['Inject'](a['Injector'])),et(0x1,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)])),et(0x2,a['IUniverInstanceService'])],exports[_0x37a374(0x511)]);const $t=[_0x37a374(0x2bd),_0x37a374(0x61e),_0x37a374(0x2c6),_0x37a374(0x4fa),_0x37a374(0x3fe),'gold400'];class yt extends a[_0x37a374(0x65c)]{constructor(){const _0x246b7c=_0x37a374;super(...arguments),I(this,_0x246b7c(0x37e),new Map()),I(this,'_colorIndex',0x0);}[_0x37a374(0x47b)](_0x40bd60){const _0x5b9abb=_0x37a374;if(this['_assignedColors'][_0x5b9abb(0x244)](_0x40bd60))return this[_0x5b9abb(0x37e)][_0x5b9abb(0x5bf)](_0x40bd60);const _0x5ea33f=$t[this[_0x5b9abb(0x5c4)]];return this[_0x5b9abb(0x5c4)]=(this[_0x5b9abb(0x5c4)]+0x1)%$t['length'],this[_0x5b9abb(0x37e)]['set'](_0x40bd60,_0x5ea33f),_0x5ea33f;}}var Wi=Object['defineProperty'],Fi=Object[_0x37a374(0x4a5)],Vi=(_0x1a78cb,_0x22c9ce,_0x4b7f35,_0x175071)=>{const _0x35d278=_0x37a374;for(var _0x32378f=_0x175071>0x1?void 0x0:_0x175071?Fi(_0x22c9ce,_0x4b7f35):_0x22c9ce,_0xf0bc=_0x1a78cb[_0x35d278(0x330)]-0x1,_0x37c9c7;_0xf0bc>=0x0;_0xf0bc--)(_0x37c9c7=_0x1a78cb[_0xf0bc])&&(_0x32378f=(_0x175071?_0x37c9c7(_0x22c9ce,_0x4b7f35,_0x32378f):_0x37c9c7(_0x32378f))||_0x32378f);return _0x175071&&_0x32378f&&Wi(_0x22c9ce,_0x4b7f35,_0x32378f),_0x32378f;},pe=(_0x1b7fca,_0xb9299a)=>(_0x36e75b,_0x1d5ff5)=>_0xb9299a(_0x36e75b,_0x1d5ff5,_0x1b7fca);const Gi=0x12c,Yi=0x64;let vt=class extends a[_0x37a374(0x2f7)]{constructor(_0x316666,_0x6f9d8,_0x416f22,_0x58775a,_0x3dd76e,_0x231a5b,_0x331154,_0x1ab3f0,_0x409821){const _0x29ae2a=_0x37a374;super(),I(this,_0x29ae2a(0x669),!0x1),I(this,_0x29ae2a(0x3c3),!0x1),I(this,_0x29ae2a(0x4c2),new A[(_0x29ae2a(0x441))](new Map())),I(this,'cursorInfo$',this[_0x29ae2a(0x4c2)][_0x29ae2a(0x483)]()),I(this,_0x29ae2a(0x653),new A[(_0x29ae2a(0x441))]([])),I(this,_0x29ae2a(0x587),this[_0x29ae2a(0x653)][_0x29ae2a(0x4d7)](A[_0x29ae2a(0x1e3)](Gi))),I(this,'_updateLocalCursor',a[_0x29ae2a(0x1f4)](_0x300d7d=>{const _0x2719ba=_0x29ae2a,_0x32ecbb={'eventID':p[_0x2719ba(0x521)][_0x2719ba(0x2f6)],'data':{'unitID':this[_0x2719ba(0x505)],'memberID':this['_session'][_0x2719ba(0x485)](),'selection':un(_0x300d7d)}};this['_session'][_0x2719ba(0x554)](_0x32ecbb,this['unitID']);},Yi)),(this[_0x29ae2a(0x505)]=_0x316666,this['_session']=_0x6f9d8,this['_injector']=_0x416f22,this[_0x29ae2a(0x591)]=_0x58775a,this[_0x29ae2a(0x5f6)]=_0x3dd76e,this[_0x29ae2a(0x3a0)]=_0x231a5b,this[_0x29ae2a(0x541)]=_0x331154,this['_univerInstanceService']=_0x1ab3f0,this[_0x29ae2a(0x48f)]=_0x409821);}get['cursorInfo'](){const _0x57c9c0=_0x37a374;return this[_0x57c9c0(0x4c2)]['getValue']();}get['roomMembers'](){const _0x47e707=_0x37a374;return this[_0x47e707(0x653)]['getValue']();}[_0x37a374(0x37c)](){const _0x7bc6e4=_0x37a374;super[_0x7bc6e4(0x37c)](),this[_0x7bc6e4(0x4c2)][_0x7bc6e4(0x24e)](new Map()),this[_0x7bc6e4(0x4c2)]['complete'](),this[_0x7bc6e4(0x653)][_0x7bc6e4(0x24e)]([]),this[_0x7bc6e4(0x653)][_0x7bc6e4(0x1c0)]();}[_0x37a374(0x5ca)](){const _0x15075b=_0x37a374;this['_init']||(this[_0x15075b(0x3c3)]=!0x0,this['_session']['sessionStatus$']['pipe'](A[_0x15075b(0x27d)](this['dispose$']))[_0x15075b(0x274)](_0x41dcb1=>{const _0x8d29f4=_0x15075b;_0x41dcb1===re[_0x8d29f4(0x1e9)]?this['_toggleOnline']():this[_0x8d29f4(0x406)]();}),this['_session'][_0x15075b(0x5cc)][_0x15075b(0x4d7)](A[_0x15075b(0x27d)](this['dispose$']))[_0x15075b(0x274)](_0x512c89=>{const _0x149ab9=_0x15075b,_0x55043e=_0x512c89[_0x149ab9(0x1d7)];_0x55043e===p[_0x149ab9(0x521)][_0x149ab9(0x2f6)]&&this[_0x149ab9(0x5f8)](_0x512c89),_0x55043e===p[_0x149ab9(0x521)][_0x149ab9(0x5de)]&&this[_0x149ab9(0x4dd)](_0x512c89);}),this[_0x15075b(0x4d6)](this[_0x15075b(0x48f)][_0x15075b(0x3d8)](_0x357aff=>{const _0x6c23f5=_0x15075b,_0x19aea3=_0x357aff[_0x6c23f5(0x39d)];_0x19aea3!=null&&this[_0x6c23f5(0x669)]&&_0x357aff['id']===Re[_0x6c23f5(0x46a)]['id']&&_0x19aea3['unitId']===this[_0x6c23f5(0x505)]&&_0x19aea3[_0x6c23f5(0x44f)]===!0x1&&_0x19aea3[_0x6c23f5(0x609)][_0x6c23f5(0x330)]>0x0&&this[_0x6c23f5(0x66b)](_0x19aea3[_0x6c23f5(0x609)]);})),this[_0x15075b(0x3a0)][_0x15075b(0x292)][_0x15075b(0x4d7)](A[_0x15075b(0x27d)](this[_0x15075b(0x574)]))[_0x15075b(0x274)](_0xd821a8=>{const _0x5dec48=_0x15075b;if((_0xd821a8==null?void 0x0:_0xd821a8['unitID'])!==this['unitID'])return;const _0x24375e={'eventID':p['CollaborationEvent']['UPDATE_CURSOR'],'data':_0xd821a8};this[_0x5dec48(0x5f8)](_0x24375e);}),this['disposeWithMe'](this[_0x15075b(0x48f)][_0x15075b(0x3d8)](_0x529f14=>{const _0x461274=_0x15075b;if(_0x529f14[_0x461274(0x39d)]==null)return;const _0x35b7c4=_0x529f14[_0x461274(0x39d)];if(_0x529f14['id']!==Re[_0x461274(0x578)]['id']||_0x35b7c4[_0x461274(0x36d)]!==this[_0x461274(0x505)])return;const _0x1ba061={'id':_0x461274(0x3a1),'params':_0x35b7c4},_0x273bee=this[_0x461274(0x39e)];for(const [_0x473f6d,_0x140ded]of _0x273bee){const _0xa1ba68={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x461274(0x505)],'actions':null,'textRanges':_0x140ded['ranges']}},_0x2de5e1=this[_0x461274(0x541)][_0x461274(0x337)](_0x1ba061,_0xa1ba68,!0x1);if(p[_0x461274(0x358)](_0x2de5e1))throw _0x2de5e1[_0x461274(0x237)];_0x273bee[_0x461274(0x5d1)](_0x473f6d,{..._0x140ded,'ranges':_0x2de5e1[_0x461274(0x3b2)][_0x461274(0x39d)][_0x461274(0x5ed)]});}queueMicrotask(()=>{const _0x3465a1=_0x461274;this[_0x3465a1(0x4c2)][_0x3465a1(0x24e)](_0x273bee);});})));}[_0x37a374(0x5f8)](_0x1cef96){const _0x5d9766=_0x37a374;var _0x414069,_0x2c3933;const {memberID:_0x1c2e88,selection:_0x29fb95}=_0x1cef96['data'],_0x3b18a8=Di(_0x29fb95),_0x57b63c=(_0x2c3933=(_0x414069=this[_0x5d9766(0x5f6)][_0x5d9766(0x2f4)](this[_0x5d9766(0x505)],_0x1c2e88))==null?void 0x0:_0x414069[_0x5d9766(0x21c)])!=null?_0x2c3933:_0x5d9766(0x2da),_0x3f0676={'color':this[_0x5d9766(0x591)][_0x5d9766(0x47b)](_0x1c2e88),'name':_0x57b63c,'ranges':_0x3b18a8},_0x4749d4=this[_0x5d9766(0x39e)];_0x4749d4['set'](_0x1c2e88,_0x3f0676),this[_0x5d9766(0x4c2)][_0x5d9766(0x24e)](_0x4749d4);}[_0x37a374(0x4dd)](_0x51764b){const _0x2a3196=_0x37a374,{memberID:_0x26ff9d}=_0x51764b[_0x2a3196(0x470)],_0x1c9308=this['cursorInfo'];_0x1c9308[_0x2a3196(0x412)](_0x26ff9d),this[_0x2a3196(0x4c2)][_0x2a3196(0x24e)](_0x1c9308);}['_toggleOnline'](){const _0x115957=_0x37a374;var _0x9e80e2;if(this['_online']=!0x0,((_0x9e80e2=this[_0x115957(0x1d4)][_0x115957(0x2cf)]())==null?void 0x0:_0x9e80e2[_0x115957(0x615)]())!==this['unitID'])return;const _0x52185a=this['_injector'][_0x115957(0x5bf)](Re[_0x115957(0x1fc)])[_0x115957(0x247)]();Array[_0x115957(0x338)](_0x52185a)&&_0x52185a['length']>0x0&&this[_0x115957(0x66b)](_0x52185a);}[_0x37a374(0x406)](){const _0x255a8b=_0x37a374;this[_0x255a8b(0x669)]=!0x1;}};vt=Vi([pe(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),pe(0x3,a[_0x37a374(0x629)](yt)),pe(0x4,a[_0x37a374(0x629)](exports[_0x37a374(0x33d)])),pe(0x5,a['Inject'](Tt)),pe(0x6,p[_0x37a374(0x214)]),pe(0x7,a[_0x37a374(0x662)]),pe(0x8,a['ICommandService'])],vt);var Ki=Object[_0x37a374(0x55e)],qi=Object[_0x37a374(0x4a5)],zi=(_0x50ca80,_0x586fe6,_0xd02a9c,_0x550dbd)=>{for(var _0x26ebd9=_0x550dbd>0x1?void 0x0:_0x550dbd?qi(_0x586fe6,_0xd02a9c):_0x586fe6,_0x5d4e71=_0x50ca80['length']-0x1,_0x298379;_0x5d4e71>=0x0;_0x5d4e71--)(_0x298379=_0x50ca80[_0x5d4e71])&&(_0x26ebd9=(_0x550dbd?_0x298379(_0x586fe6,_0xd02a9c,_0x26ebd9):_0x298379(_0x26ebd9))||_0x26ebd9);return _0x550dbd&&_0x26ebd9&&Ki(_0x586fe6,_0xd02a9c,_0x26ebd9),_0x26ebd9;},Ee=(_0x5e5ada,_0x2dcbe7)=>(_0x591901,_0x1b5c39)=>_0x2dcbe7(_0x591901,_0x1b5c39,_0x5e5ada);const Xi=0x12c,Ji=0x64,Zi=()=>{let _0x2e4d38=[],_0x58ed1e=!0x1;return _0x18e70c=>{const _0x395ce0=_0x513c;_0x2e4d38[_0x395ce0(0x257)](_0x18e70c),_0x58ed1e||(_0x58ed1e=!0x0,setTimeout(()=>{const _0x3cd62f=_0x395ce0;_0x2e4d38[_0x3cd62f(0x278)](_0x3a3110=>_0x3a3110()),_0x2e4d38=[],_0x58ed1e=!0x1;}));};};let mt=class extends a[_0x37a374(0x2f7)]{constructor(_0xf05a92,_0x717ad2,_0x50f8d4,_0xe5fe03,_0x5727ac,_0x317408,_0x20af47,_0x7fd335){const _0x1128aa=_0x37a374;super(),I(this,_0x1128aa(0x669),!0x1),I(this,'_init',!0x1),I(this,_0x1128aa(0x4c2),new A['BehaviorSubject'](new Map())),I(this,_0x1128aa(0x426),this['_cursorInfo$'][_0x1128aa(0x483)]()),I(this,_0x1128aa(0x653),new A['BehaviorSubject']([])),I(this,_0x1128aa(0x587),this[_0x1128aa(0x653)][_0x1128aa(0x4d7)](A[_0x1128aa(0x1e3)](Xi))),I(this,_0x1128aa(0x66b),a[_0x1128aa(0x1f4)]((_0x3911a5,_0x14dff1)=>{const _0x128532=_0x1128aa,_0x57926e={'eventID':p[_0x128532(0x521)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x128532(0x522)][_0x128532(0x485)](),'selection':wt[_0x128532(0x50e)](_0x3911a5,_0x14dff1['range'])}};this[_0x128532(0x522)][_0x128532(0x554)](_0x57926e,this[_0x128532(0x505)]);},Ji)),(this[_0x1128aa(0x505)]=_0xf05a92,this[_0x1128aa(0x522)]=_0x717ad2,this[_0x1128aa(0x58f)]=_0x50f8d4,this[_0x1128aa(0x591)]=_0xe5fe03,this[_0x1128aa(0x5f6)]=_0x5727ac,this['_univerInstanceService']=_0x317408,this[_0x1128aa(0x48f)]=_0x20af47,this[_0x1128aa(0x2fd)]=_0x7fd335);}get[_0x37a374(0x39e)](){const _0xf4f35a=_0x37a374;return this[_0xf4f35a(0x4c2)][_0xf4f35a(0x565)]();}get[_0x37a374(0x290)](){const _0x2c4492=_0x37a374;return this[_0x2c4492(0x653)][_0x2c4492(0x565)]();}[_0x37a374(0x37c)](){const _0x5762aa=_0x37a374;super[_0x5762aa(0x37c)](),this[_0x5762aa(0x4c2)]['next'](new Map()),this[_0x5762aa(0x4c2)][_0x5762aa(0x1c0)](),this[_0x5762aa(0x653)][_0x5762aa(0x24e)]([]),this[_0x5762aa(0x653)][_0x5762aa(0x1c0)]();}[_0x37a374(0x5ca)](){const _0x2ea213=_0x37a374;this[_0x2ea213(0x3c3)]||(this[_0x2ea213(0x3c3)]=!0x0,this['_session'][_0x2ea213(0x444)][_0x2ea213(0x4d7)](A[_0x2ea213(0x27d)](this['dispose$']))[_0x2ea213(0x274)](_0x2c419e=>{const _0x26fb7=_0x2ea213;_0x2c419e===re[_0x26fb7(0x1e9)]?this[_0x26fb7(0x5d3)]():this['_toggleOffline']();}),this['_session'][_0x2ea213(0x5cc)]['pipe'](A[_0x2ea213(0x27d)](this[_0x2ea213(0x574)]))[_0x2ea213(0x274)](_0x1607a5=>{const _0x4ac490=_0x2ea213,_0x562549=_0x1607a5['eventID'];_0x562549===p[_0x4ac490(0x521)][_0x4ac490(0x2f6)]&&this[_0x4ac490(0x5f8)](_0x1607a5),_0x562549===p[_0x4ac490(0x521)][_0x4ac490(0x5de)]&&this['_onCursorDelete'](_0x1607a5);}),this[_0x2ea213(0x272)](),this['disposeWithMe'](this['_commandService'][_0x2ea213(0x3d8)](_0x415c2b=>{const _0x221456=_0x2ea213;if(this[_0x221456(0x669)]&&_0x415c2b['id']===k[_0x221456(0x531)]['id']&&_0x415c2b[_0x221456(0x39d)]['unitId']===this[_0x221456(0x505)]){const _0x2c1a1f=_0x415c2b[_0x221456(0x39d)];this[_0x221456(0x66b)](_0x2c1a1f[_0x221456(0x561)],_0x2c1a1f[_0x221456(0x5b0)][0x0]);}})));}[_0x37a374(0x5f8)](_0x5c36cb){const _0x1427fe=_0x37a374;var _0x1ae20d,_0x4cdb70;const {memberID:_0x4e0e73,selection:_0x32ce68}=_0x5c36cb['data'],{sheetName:_0x3f6faa,range:_0x262971}=wt['deserializeRangeWithSheet'](_0x32ce68),_0x5cc600={'name':(_0x4cdb70=(_0x1ae20d=this[_0x1427fe(0x5f6)]['getMember'](this[_0x1427fe(0x505)],_0x4e0e73))==null?void 0x0:_0x1ae20d[_0x1427fe(0x21c)])!=null?_0x4cdb70:_0x1427fe(0x2da),'range':this[_0x1427fe(0x429)](_0x3f6faa,_0x262971),'sheetID':_0x3f6faa,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x4e0e73),'selection':_0x32ce68},_0x57efff=this[_0x1427fe(0x39e)];_0x57efff[_0x1427fe(0x5d1)](_0x4e0e73,_0x5cc600),this['_cursorInfo$'][_0x1427fe(0x24e)](_0x57efff);}[_0x37a374(0x4dd)](_0x105959){const _0x53ff7e=_0x37a374,{memberID:_0x4b8785}=_0x105959[_0x53ff7e(0x470)],_0x5964a8=this[_0x53ff7e(0x39e)];_0x5964a8[_0x53ff7e(0x412)](_0x4b8785),this[_0x53ff7e(0x4c2)][_0x53ff7e(0x24e)](_0x5964a8);}[_0x37a374(0x429)](_0x492690,_0x23691d){const _0x1c29e9=_0x37a374;var _0x2598f6,_0x45bd00;const _0x457716=(_0x45bd00=(_0x2598f6=this[_0x1c29e9(0x1d4)][_0x1c29e9(0x5a6)](this[_0x1c29e9(0x505)]))==null?void 0x0:_0x2598f6[_0x1c29e9(0x287)](_0x492690))==null?void 0x0:_0x45bd00[_0x1c29e9(0x30d)]();return(_0x457716==null?void 0x0:_0x457716['find'](_0x4c7691=>a[_0x1c29e9(0x382)][_0x1c29e9(0x655)](_0x4c7691,_0x23691d)))||_0x23691d;}['_onRefRangeChange'](){const _0x4bee7d=_0x37a374,_0x1898d2=new a['DisposableCollection'](),_0x3b13cd=Zi(),_0x5475e3=()=>{const _0x17b1de=_0x513c;_0x1898d2['dispose']();const _0x3e7b5c=(_0x4ab588,_0x1bd919,_0x98d3a2,_0x38bf31)=>{const _0xfa106e=_0x513c;let _0x292200=[];switch(_0x4ab588['id']){case k[_0xfa106e(0x26b)][_0xfa106e(0x4fe)]:{_0x292200=k[_0xfa106e(0x2b2)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x428)]:{_0x292200=k['handleDeleteRangeMoveUp'](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x5bc)]:{_0x292200=k[_0xfa106e(0x34b)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)]['InsertRangeMoveDownCommandId']:{_0x292200=k[_0xfa106e(0x580)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x53f)]:{_0x292200=k[_0xfa106e(0x2d9)](_0x4ab588,_0x38bf31);break;}case k['EffectRefRangId'][_0xfa106e(0x674)]:{_0x292200=k[_0xfa106e(0x3ce)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x5cf)]:{_0x292200=k[_0xfa106e(0x5aa)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)][_0xfa106e(0x650)]:{_0x292200=k[_0xfa106e(0x2c2)](_0x4ab588,_0x38bf31);break;}case k[_0xfa106e(0x26b)]['RemoveRowCommandId']:{_0x292200=k[_0xfa106e(0x4b2)](_0x4ab588,_0x38bf31);break;}}const _0x808844=k[_0xfa106e(0x5ac)](_0x292200,_0x38bf31),_0x45caa9=this[_0xfa106e(0x39e)][_0xfa106e(0x5bf)](_0x1bd919);if(_0x45caa9&&_0x808844){const _0x45153a={..._0x45caa9,'range':_0x808844};this[_0xfa106e(0x39e)][_0xfa106e(0x5d1)](_0x1bd919,_0x45153a),_0x3b13cd(()=>{const _0x651282=_0xfa106e,_0xefd84d=this[_0x651282(0x2fd)][_0x651282(0x496)](_0x808844,_0x4802ca=>(_0xefd84d[_0x651282(0x37c)](),_0x3e7b5c(_0x4802ca,_0x1bd919,_0x98d3a2,_0x808844)));_0x1898d2['add'](_0xefd84d);});}return{'redos':[],'undos':[]};};this[_0x17b1de(0x39e)]['forEach']((_0x12be22,_0x43a7d2)=>{const _0x5de0d3=_0x17b1de,{range:_0x4258a4,sheetID:_0x4183c3}=_0x12be22,_0x410418=this[_0x5de0d3(0x2fd)][_0x5de0d3(0x496)](_0x4258a4,_0x951175=>(_0x410418[_0x5de0d3(0x37c)](),_0x3e7b5c(_0x951175,_0x43a7d2,_0x4183c3,_0x4258a4)));_0x1898d2[_0x5de0d3(0x63d)](_0x410418);});};this[_0x4bee7d(0x4d6)](a[_0x4bee7d(0x219)](this[_0x4bee7d(0x4c2)][_0x4bee7d(0x274)](()=>{_0x5475e3();})));}[_0x37a374(0x5d3)](){const _0x3dca84=_0x37a374;var _0x1eb578,_0x5afd45;if(this[_0x3dca84(0x669)]=!0x0,((_0x1eb578=this[_0x3dca84(0x1d4)][_0x3dca84(0x2cf)]())==null?void 0x0:_0x1eb578['getUnitId']())!==this[_0x3dca84(0x505)])return;const _0x3bfd1a=(_0x5afd45=this[_0x3dca84(0x58f)][_0x3dca84(0x5bf)](k[_0x3dca84(0x3f7)])[_0x3dca84(0x344)]())==null?void 0x0:_0x5afd45[0x0],_0x14effa=this[_0x3dca84(0x1d4)][_0x3dca84(0x5a9)](a['UniverInstanceType'][_0x3dca84(0x362)])[_0x3dca84(0x25a)]();_0x3bfd1a&&_0x14effa&&this[_0x3dca84(0x66b)](_0x14effa['getSheetId'](),_0x3bfd1a);}[_0x37a374(0x406)](){const _0x49af3e=_0x37a374;this[_0x49af3e(0x669)]=!0x1;}};mt=zi([Ee(0x2,a[_0x37a374(0x629)](a['Injector'])),Ee(0x3,a[_0x37a374(0x629)](yt)),Ee(0x4,a['Inject'](exports[_0x37a374(0x33d)])),Ee(0x5,a[_0x37a374(0x662)]),Ee(0x6,a['ICommandService']),Ee(0x7,a[_0x37a374(0x629)](k['RefRangeService']))],mt);var Qi=Object['defineProperty'],es=Object[_0x37a374(0x4a5)],ts=(_0x3498d0,_0x4693ff,_0x4ac269,_0x4b7fef)=>{const _0x4f832e=_0x37a374;for(var _0x5b63f2=_0x4b7fef>0x1?void 0x0:_0x4b7fef?es(_0x4693ff,_0x4ac269):_0x4693ff,_0x15b997=_0x3498d0[_0x4f832e(0x330)]-0x1,_0x46192d;_0x15b997>=0x0;_0x15b997--)(_0x46192d=_0x3498d0[_0x15b997])&&(_0x5b63f2=(_0x4b7fef?_0x46192d(_0x4693ff,_0x4ac269,_0x5b63f2):_0x46192d(_0x5b63f2))||_0x5b63f2);return _0x4b7fef&&_0x5b63f2&&Qi(_0x4693ff,_0x4ac269,_0x5b63f2),_0x5b63f2;},tt=(_0x440c56,_0x10ec2e)=>(_0x37e435,_0x500c4c)=>_0x10ec2e(_0x37e435,_0x500c4c,_0x440c56);let Oe=class extends a[_0x37a374(0x2f7)]{constructor(_0x22b974,_0x28465f,_0x40e68f){const _0x10ef65=_0x37a374;super(),I(this,_0x10ef65(0x529),new Map()),I(this,'_entityInit$',new A[(_0x10ef65(0x383))]()),(this[_0x10ef65(0x1d4)]=_0x22b974,this[_0x10ef65(0x58f)]=_0x28465f,this[_0x10ef65(0x5c9)]=_0x40e68f,this['_init']());}[_0x37a374(0x37c)](){const _0x584f46=_0x37a374;super['dispose'](),this[_0x584f46(0x664)]['complete'](),this[_0x584f46(0x529)][_0x584f46(0x278)](_0x35dfff=>_0x35dfff['dispose']());}[_0x37a374(0x2e7)](_0xeac2e8){const _0x133274=_0x37a374;return this['_entities'][_0x133274(0x244)](_0xeac2e8)?this[_0x133274(0x529)]['get'](_0xeac2e8)[_0x133274(0x426)]:this[_0x133274(0x664)][_0x133274(0x4d7)](A[_0x133274(0x434)](_0x4bed0f=>_0x4bed0f[_0x133274(0x505)]===_0xeac2e8),A['switchMap'](_0x486d03=>_0x486d03[_0x133274(0x426)]));}[_0x37a374(0x3c3)](){const _0x1120d1=_0x37a374;this[_0x1120d1(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1120d1(0x22d)][_0x1120d1(0x362)])[_0x1120d1(0x4d7)](A[_0x1120d1(0x27d)](this[_0x1120d1(0x574)]))['subscribe'](async _0x46909c=>{const _0x2d434b=_0x1120d1,_0x1747e5=_0x46909c[_0x2d434b(0x615)](),_0x479db9=await this[_0x2d434b(0x473)](_0x1747e5);this[_0x2d434b(0x664)][_0x2d434b(0x24e)](_0x479db9),this['_entities'][_0x2d434b(0x5d1)](_0x1747e5,_0x479db9);}),this[_0x1120d1(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1120d1(0x22d)][_0x1120d1(0x619)])[_0x1120d1(0x4d7)](A['takeUntil'](this[_0x1120d1(0x574)]))[_0x1120d1(0x4d7)](A[_0x1120d1(0x434)](_0x1832e5=>!_0x1832e5[_0x1120d1(0x615)]()[_0x1120d1(0x3b5)]('__')))[_0x1120d1(0x274)](async _0x52813f=>{const _0x46bc44=_0x1120d1,_0x5b43e3=_0x52813f['getUnitId'](),_0x5a25bb=await this[_0x46bc44(0x573)](_0x5b43e3);this['_entityInit$']['next'](_0x5a25bb),this[_0x46bc44(0x529)][_0x46bc44(0x5d1)](_0x5b43e3,_0x5a25bb);}),A[_0x1120d1(0x28d)](this[_0x1120d1(0x1d4)]['getTypeOfUnitDisposed$'](a[_0x1120d1(0x22d)]['UNIVER_DOC']),this[_0x1120d1(0x1d4)][_0x1120d1(0x44a)](a[_0x1120d1(0x22d)][_0x1120d1(0x362)]))['pipe'](A[_0x1120d1(0x27d)](this[_0x1120d1(0x574)]))[_0x1120d1(0x274)](_0x29ffb8=>{const _0x33a738=_0x1120d1,_0x4f1330=_0x29ffb8['getUnitId'](),_0x257b7e=this[_0x33a738(0x529)][_0x33a738(0x5bf)](_0x4f1330);_0x257b7e&&(_0x257b7e[_0x33a738(0x37c)](),this[_0x33a738(0x529)][_0x33a738(0x412)](_0x4f1330));});}async['_startSheetCollabCursor'](_0x362d3c){const _0x29a6d2=_0x37a374,_0x294f37=await this[_0x29a6d2(0x5c9)][_0x29a6d2(0x501)](_0x362d3c),_0x1110be=this[_0x29a6d2(0x58f)][_0x29a6d2(0x4bb)](mt,_0x362d3c,_0x294f37);return _0x1110be[_0x29a6d2(0x5ca)](),_0x1110be;}async[_0x37a374(0x573)](_0x25ca9f){const _0x29b42c=_0x37a374,_0x243944=await this[_0x29b42c(0x5c9)][_0x29b42c(0x501)](_0x25ca9f),_0x2fd737=this[_0x29b42c(0x58f)][_0x29b42c(0x4bb)](vt,_0x25ca9f,_0x243944);return _0x2fd737[_0x29b42c(0x5ca)](),_0x2fd737;}};Oe=ts([tt(0x0,a[_0x37a374(0x662)]),tt(0x1,a[_0x37a374(0x629)](a['Injector'])),tt(0x2,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)]))],Oe);const Ne=0x14,jt=0xc8,nt=0x4,ns=0x5;function is(_0x2c06da,_0x10f3c3){const _0x569ba9=_0x37a374;let {radius:_0x5a5372,width:_0xf9ca36,height:_0x1ee8bc}=_0x10f3c3;_0x5a5372=_0x5a5372!=null?_0x5a5372:0x0,_0xf9ca36=_0xf9ca36!=null?_0xf9ca36:0x1e,_0x1ee8bc=_0x1ee8bc!=null?_0x1ee8bc:0x1e;let _0x3bf48f=0x0,_0x591ca6=0x0,_0x17e0df=0x0;_0x3bf48f=_0x591ca6=_0x17e0df=Math[_0x569ba9(0x242)](_0x5a5372,_0xf9ca36/0x2,_0x1ee8bc/0x2),_0x2c06da[_0x569ba9(0x1e2)](),_0x2c06da[_0x569ba9(0x1f9)](_0x3bf48f,0x0),_0x2c06da[_0x569ba9(0x4ec)](_0xf9ca36-_0x591ca6,0x0),_0x2c06da[_0x569ba9(0x5a4)](_0xf9ca36-_0x591ca6,_0x591ca6,_0x591ca6,Math['PI']*0x3/0x2,0x0,!0x1),_0x2c06da[_0x569ba9(0x4ec)](_0xf9ca36,_0x1ee8bc-_0x17e0df),_0x2c06da[_0x569ba9(0x5a4)](_0xf9ca36-_0x17e0df,_0x1ee8bc-_0x17e0df,_0x17e0df,0x0,Math['PI']/0x2,!0x1),_0x2c06da[_0x569ba9(0x4ec)](0x0,_0x1ee8bc),_0x2c06da['lineTo'](0x0,_0x3bf48f),_0x2c06da[_0x569ba9(0x5a4)](_0x3bf48f,_0x3bf48f,_0x3bf48f,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2c06da['closePath'](),_0x10f3c3[_0x569ba9(0x2dc)]&&(_0x2c06da['save'](),_0x2c06da[_0x569ba9(0x2ac)]=_0x10f3c3[_0x569ba9(0x2dc)],_0x10f3c3[_0x569ba9(0x22c)]===_0x569ba9(0x4e3)?_0x2c06da[_0x569ba9(0x2dc)](_0x569ba9(0x4e3)):_0x2c06da[_0x569ba9(0x2dc)](),_0x2c06da[_0x569ba9(0x54b)]());}class ze extends K['Shape']{constructor(_0x266460,_0x4c9b5b){const _0x43521a=_0x37a374;super(_0x266460,_0x4c9b5b),I(this,_0x43521a(0x422)),I(this,_0x43521a(0x490)),(this[_0x43521a(0x422)]=_0x4c9b5b==null?void 0x0:_0x4c9b5b[_0x43521a(0x422)],this[_0x43521a(0x490)]=_0x4c9b5b==null?void 0x0:_0x4c9b5b['text']);}static[_0x37a374(0x65e)](_0x2b994c,_0x5e5c63){const _0x4694a8=_0x37a374,{text:_0x11ceab,color:_0x5290c3}=_0x5e5c63;_0x2b994c[_0x4694a8(0x2eb)](),_0x2b994c[_0x4694a8(0x618)]=_0x4694a8(0x1dc);const _0x4f3d33=_0x2b994c[_0x4694a8(0x67e)](_0x11ceab)[_0x4694a8(0x3d1)],_0x2993fd=Math[_0x4694a8(0x242)](_0x4f3d33+0x2*nt,jt);is(_0x2b994c,{'height':Ne,'radius':0x4,'width':_0x2993fd,'fill':_0x5290c3,'evented':!0x1}),_0x2b994c[_0x4694a8(0x2ac)]=_0x4694a8(0x467);const _0x29f60f=nt,_0x431450=Ne-ns,_0x9766f7=jt-0x2*nt;if(_0x4f3d33>_0x9766f7){let _0x1d3feb='',_0xde1519=0x0;for(const _0x23c4b2 of _0x11ceab){const _0x434b06=_0x2b994c['measureText'](_0x23c4b2)[_0x4694a8(0x3d1)];if(_0xde1519+_0x434b06<=_0x9766f7-_0x2b994c[_0x4694a8(0x67e)](_0x4694a8(0x4a7))[_0x4694a8(0x3d1)])_0x1d3feb+=_0x23c4b2,_0xde1519+=_0x434b06;else{_0x1d3feb+=_0x4694a8(0x4a7);break;}}_0x2b994c[_0x4694a8(0x262)](_0x1d3feb,_0x29f60f,_0x431450);}else _0x2b994c[_0x4694a8(0x262)](_0x11ceab,_0x29f60f,_0x431450);_0x2b994c['restore']();}[_0x37a374(0x634)](_0x42c4ab){const _0x4bd1db=_0x37a374;ze[_0x4bd1db(0x65e)](_0x42c4ab,this);}}const it=_0x37a374(0x593),ss=_0x37a374(0x3d5),rs=_0x37a374(0x1e8),Pe=0x6,os=1.5,st=0x4,as=1.5,cs='rgba(255,\x20255,\x20255,\x200.01)';class Ht{constructor(_0x14b0f6,_0x370c3d,_0x4a74bc,_0x1c0a8f){const _0x37fdec=_0x37a374;I(this,'_shapes',[]),I(this,'_anchor',null),I(this,_0x37fdec(0x458),null),I(this,_0x37fdec(0x63b),null),I(this,_0x37fdec(0x4ca),null),I(this,_0x37fdec(0x276),null),(this[_0x37fdec(0x24b)]=_0x14b0f6,this[_0x37fdec(0x32d)]=_0x370c3d,this[_0x37fdec(0x635)]=_0x4a74bc,this[_0x37fdec(0x252)]=_0x1c0a8f,this['_render']());}set[_0x37a374(0x4d0)](_0x2e2a70){const _0x7170b=_0x37a374;_0x2e2a70?(this[_0x7170b(0x63b)]&&this[_0x7170b(0x63b)][_0x7170b(0x3cb)](),this['_textBubble']&&this[_0x7170b(0x458)][_0x7170b(0x5b9)]()):(this['_anchorDot']&&this[_0x7170b(0x63b)]['show'](),this[_0x7170b(0x458)]&&this[_0x7170b(0x458)][_0x7170b(0x3cb)]());}['dispose'](){const _0x5af080=_0x37a374;for(const _0x27cf65 of this[_0x5af080(0x332)])_0x27cf65[_0x5af080(0x37c)]();this[_0x5af080(0x458)]&&this[_0x5af080(0x458)][_0x5af080(0x37c)](),this['_anchorDot']&&this['_anchorDot'][_0x5af080(0x37c)](),this['_anchor']&&this[_0x5af080(0x3b7)][_0x5af080(0x37c)](),this[_0x5af080(0x276)]&&this[_0x5af080(0x276)]();}[_0x37a374(0x535)](){const _0x51a0df=_0x37a374;var _0x40b1d6;const {_docSkeleton:_0x5fb258,_document:_0x34553c}=this,{color:_0x43a0e5,name:_0x572bf9,ranges:_0x2bef78}=this['_cursor'],_0x1821e3=_0x34553c['getOffsetConfig'](),{docsLeft:_0x46413e,docsTop:_0x676b57}=_0x1821e3,_0x186cf3=new Z[(_0x51a0df(0x5c8))](_0x1821e3,_0x5fb258);for(const {startOffset:_0x1cf479,endOffset:_0xad1533,rangeType:_0x4a8bdd,segmentId:_0x36a6b8,segmentPage:_0x2a08ca,collapsed:_0x179be9,isActive:_0x3800c1}of _0x2bef78){const _0x1fc79a=_0x5fb258[_0x51a0df(0x56d)](_0x1cf479,!0x0,_0x36a6b8,_0x2a08ca);let _0x457ca8=_0x5fb258[_0x51a0df(0x56d)](_0xad1533,!0x0,_0x36a6b8,_0x2a08ca);if(_0x457ca8==null&&(_0x457ca8=_0x5fb258[_0x51a0df(0x56d)](_0xad1533-0x1,!0x1,_0x36a6b8,_0x2a08ca)),_0x3800c1){const {contentBoxPointGroup:_0x459c2c}=_0x186cf3[_0x51a0df(0x5d4)](_0x457ca8,_0x457ca8);if(_0x459c2c[_0x51a0df(0x330)]===0x0)continue;this[_0x51a0df(0x384)](_0x43a0e5,_0x459c2c,_0x46413e,_0x676b57,_0x572bf9),this['_eventUnsubscribe']=this[_0x51a0df(0x5ff)]();}if(!_0x179be9&&_0x1fc79a&&_0x457ca8){if(_0x4a8bdd===a[_0x51a0df(0x39a)][_0x51a0df(0x64d)]){const _0x257fa2=new Z[(_0x51a0df(0x250))](_0x1821e3,_0x5fb258),{pointGroup:_0x5656fa}=(_0x40b1d6=_0x257fa2[_0x51a0df(0x5d4)](_0x1fc79a,_0x457ca8))!=null?_0x40b1d6:{};if(_0x5656fa==null||_0x5656fa[_0x51a0df(0x330)]===0x0)continue;this[_0x51a0df(0x639)](_0x43a0e5,_0x5656fa,_0x46413e,_0x676b57);}else{const {borderBoxPointGroup:_0x9c5f77}=_0x186cf3[_0x51a0df(0x5d4)](_0x1fc79a,_0x457ca8);if(_0x9c5f77['length']===0x0)continue;this['_drawTextRange'](_0x43a0e5,_0x9c5f77,_0x46413e,_0x676b57);}}}}[_0x37a374(0x384)](_0x2a3174,_0xf6a2c5,_0x35ccfb,_0x126f40,_0x5bad9f){const _0x2a3603=_0x37a374,_0x316ff0=this['_getAnchorBounding'](_0xf6a2c5),{left:_0x2fa327,top:_0x408696,height:_0xae1ddf}=_0x316ff0,_0x5f314c=this['_getScale'](),_0x4c60e5=as/_0x5f314c,_0x152997=new K[(_0x2a3603(0x40a))](it+a[_0x2a3603(0x59b)]['generateRandomId'](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40,'height':_0xae1ddf,'width':os,'fill':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'strokeWidth':_0x4c60e5,'stroke':cs,'evented':!0x0});this[_0x2a3603(0x3b7)]=_0x152997,this[_0x2a3603(0x32d)]['addObject'](_0x152997,Z[_0x2a3603(0x551)]);const _0x2dd613=new K[(_0x2a3603(0x40a))](it+a[_0x2a3603(0x59b)][_0x2a3603(0x3c0)](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40-st/0x2,'height':st,'width':st,'fill':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'strokeWidth':0x0,'stroke':_0x2a3174||K[_0x2a3603(0x2e2)](a[_0x2a3603(0x370)][_0x2a3603(0x2e3)],0x0),'evented':!0x1});this[_0x2a3603(0x63b)]=_0x2dd613,this[_0x2a3603(0x32d)][_0x2a3603(0x29d)](_0x2dd613,Z[_0x2a3603(0x551)]);const _0x5c9152=new ze(it+a[_0x2a3603(0x59b)][_0x2a3603(0x3c0)](Pe),{'left':_0x2fa327+_0x35ccfb-_0x4c60e5,'top':_0x408696+_0x126f40-Ne,'text':_0x5bad9f,'color':_0x2a3174});this[_0x2a3603(0x458)]=_0x5c9152,this['_scene']['addObject'](_0x5c9152,Z[_0x2a3603(0x551)]),this[_0x2a3603(0x4d0)]=!0x1;}[_0x37a374(0x5ff)](){const _0x18d68b=_0x37a374,_0x13ef7e=this['_anchor']['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x62cb72=this[_0x18d68b(0x3b7)][_0x18d68b(0x4df)][_0x18d68b(0x3f5)](()=>{const _0x4ebda7=_0x18d68b;this[_0x4ebda7(0x4ca)]&&clearTimeout(this[_0x4ebda7(0x4ca)]),this[_0x4ebda7(0x4ca)]=setTimeout(()=>{const _0xd12097=_0x4ebda7;this[_0xd12097(0x4d0)]=!0x1;},0x7d0);});return()=>{const _0x50b8a0=_0x18d68b;_0x13ef7e['unsubscribe'](),_0x62cb72[_0x50b8a0(0x335)]();};}[_0x37a374(0x2ba)](_0x5a632e,_0x5577b3,_0x1606e9,_0x5f374c){const _0x5edb59=_0x37a374,_0x26d3e8=new a['ColorKit'](_0x5a632e)[_0x5edb59(0x2fa)](0.2)[_0x5edb59(0x4f1)](),_0x3b6576=new K['RegularPolygon'](ss+a[_0x5edb59(0x59b)][_0x5edb59(0x3c0)](Pe),{'pointsGroup':_0x5577b3,'fill':_0x26d3e8||K['getColor'](a[_0x5edb59(0x370)][_0x5edb59(0x2e3)],0.2),'left':_0x1606e9,'top':_0x5f374c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5edb59(0x332)][_0x5edb59(0x257)](_0x3b6576),this[_0x5edb59(0x32d)][_0x5edb59(0x29d)](_0x3b6576,Z[_0x5edb59(0x551)]);}[_0x37a374(0x639)](_0x50a0f5,_0x5557c1,_0x3da3cd,_0x39a0d4){const _0x298133=_0x37a374,_0x46d012=new a[(_0x298133(0x677))](_0x50a0f5)[_0x298133(0x2fa)](0.2)[_0x298133(0x4f1)](),_0x272480=new K[(_0x298133(0x21d))](rs+a[_0x298133(0x59b)][_0x298133(0x3c0)](Pe),{'pointsGroup':_0x5557c1,'fill':_0x46d012||K[_0x298133(0x2e2)](a['COLORS']['black'],0.2),'left':_0x3da3cd,'top':_0x39a0d4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x298133(0x332)][_0x298133(0x257)](_0x272480),this[_0x298133(0x32d)]['addObject'](_0x272480,Z[_0x298133(0x551)]);}[_0x37a374(0x3c4)](_0x25f796){const _0x5ac1a2=_0x25f796[0x0],_0x49ab04=_0x5ac1a2[0x0],_0x15078d=_0x5ac1a2[0x2],{x:_0x4de69c,y:_0x2f27e4}=_0x49ab04,{x:_0x4c60c9,y:_0x16c956}=_0x15078d;return{'left':_0x4de69c,'top':_0x2f27e4,'width':_0x4c60c9-_0x4de69c,'height':_0x16c956-_0x2f27e4};}[_0x37a374(0x2a0)](){const _0x480f8f=_0x37a374,{scaleX:_0x352e3e,scaleY:_0x899f49}=this[_0x480f8f(0x32d)][_0x480f8f(0x3bb)]();return Math[_0x480f8f(0x59f)](_0x352e3e,_0x899f49);}}var ls=Object['defineProperty'],hs=Object[_0x37a374(0x4a5)],_s=(_0x5e96db,_0x571e4e,_0x5dc340,_0x1fe5d8)=>{const _0x348d64=_0x37a374;for(var _0xe7c1f4=_0x1fe5d8>0x1?void 0x0:_0x1fe5d8?hs(_0x571e4e,_0x5dc340):_0x571e4e,_0x4ae3be=_0x5e96db[_0x348d64(0x330)]-0x1,_0x5c0dd6;_0x4ae3be>=0x0;_0x4ae3be--)(_0x5c0dd6=_0x5e96db[_0x4ae3be])&&(_0xe7c1f4=(_0x1fe5d8?_0x5c0dd6(_0x571e4e,_0x5dc340,_0xe7c1f4):_0x5c0dd6(_0xe7c1f4))||_0xe7c1f4);return _0x1fe5d8&&_0xe7c1f4&&ls(_0x571e4e,_0x5dc340,_0xe7c1f4),_0xe7c1f4;},$e=(_0x297f90,_0x2b283d)=>(_0x55f1e3,_0x64666e)=>_0x2b283d(_0x55f1e3,_0x64666e,_0x297f90);let pt=class extends a[_0x37a374(0x2f7)]{constructor(_0x591292,_0x41102d,_0x139005,_0x19991f,_0x2b04f1){const _0x39b337=_0x37a374;super(),I(this,_0x39b337(0x407),[]),I(this,_0x39b337(0x668),[]),(this[_0x39b337(0x56b)]=_0x591292,this['_docSkeletonManagerService']=_0x41102d,this[_0x39b337(0x3f0)]=_0x139005,this['_commandService']=_0x19991f,this['_themeService']=_0x2b04f1,this[_0x39b337(0x3c3)]());}[_0x37a374(0x3c3)](){const _0x43b122=_0x37a374,_0x7dadf6=this[_0x43b122(0x56b)][_0x43b122(0x36d)],_0x447784=this[_0x43b122(0x402)];this[_0x43b122(0x4d6)](A[_0x43b122(0x5e6)]([this['_collabCursorController'][_0x43b122(0x2e7)](_0x7dadf6),this[_0x43b122(0x536)][_0x43b122(0x439)]])[_0x43b122(0x4d7)](V[_0x43b122(0x323)](([_0x3ac278,_0x2cd950])=>({'skeleton':_0x447784[_0x43b122(0x631)](),'cursors':[..._0x3ac278[_0x43b122(0x353)]()][_0x43b122(0x5dc)](_0x49937d=>({..._0x49937d,'color':_0x2cd950[_0x49937d[_0x43b122(0x422)]]}))})))['subscribe'](_0x5e02ae=>{const _0x55e71f=_0x43b122;if(this[_0x55e71f(0x331)](),_0x5e02ae){const {skeleton:_0x3a1143,cursors:_0x372a1a}=_0x5e02ae;this[_0x55e71f(0x3ef)](_0x3a1143,_0x372a1a);}})),this[_0x43b122(0x520)](),this[_0x43b122(0x425)]();}[_0x37a374(0x3ef)](_0x2851ac,_0x556807){const _0x5cde59=_0x37a374,{scene:_0x43f91e,mainComponent:_0x1fbf94}=this[_0x5cde59(0x56b)],_0x4d3f68=_0x556807[_0x5cde59(0x323)](_0x190b5a=>new Ht(_0x190b5a,_0x43f91e,_0x2851ac,_0x1fbf94));this[_0x5cde59(0x407)]=_0x4d3f68,this[_0x5cde59(0x668)]=_0x556807;}['_refreshCollabCursors'](){const _0x1da2ab=_0x37a374;this['_removeCollabCursors']();const {scene:_0x156734,mainComponent:_0x4e966f}=this[_0x1da2ab(0x56b)],_0x2c8039=this[_0x1da2ab(0x402)][_0x1da2ab(0x631)](),_0x300030=this[_0x1da2ab(0x668)][_0x1da2ab(0x323)](_0x52b5de=>new Ht(_0x52b5de,_0x156734,_0x2c8039,_0x4e966f));this['_cursorShapes']=_0x300030;}[_0x37a374(0x331)](){const _0x2e873b=_0x37a374;this['_cursorShapes'][_0x2e873b(0x278)](_0x786233=>_0x786233[_0x2e873b(0x37c)]()),this[_0x2e873b(0x407)]=[];}[_0x37a374(0x425)](){const _0x4c4f7c=_0x37a374,_0x22b648=[Z[_0x4c4f7c(0x3db)]['id']];this[_0x4c4f7c(0x4d6)](this['_commandService'][_0x4c4f7c(0x3d8)](_0x3beda7=>{const _0x108d6d=_0x4c4f7c;_0x22b648[_0x108d6d(0x5fc)](_0x3beda7['id'])&&_0x3beda7[_0x108d6d(0x39d)][_0x108d6d(0x36d)]===this[_0x108d6d(0x56b)][_0x108d6d(0x36d)]&&this[_0x108d6d(0x26a)]();}));}[_0x37a374(0x520)](){const _0x2d7097=_0x37a374;this[_0x2d7097(0x4d6)](a[_0x2d7097(0x607)](this[_0x2d7097(0x56b)][_0x2d7097(0x379)][_0x2d7097(0x62b)])['pipe'](V[_0x2d7097(0x434)](_0x501811=>_0x501811[_0x2d7097(0x1d2)]===K[_0x2d7097(0x472)][_0x2d7097(0x2c0)]),V[_0x2d7097(0x25d)](0x10))[_0x2d7097(0x274)](()=>{this['_refreshCollabCursors']();}));}};pt=_s([$e(0x1,a[_0x37a374(0x629)](Re[_0x37a374(0x24d)])),$e(0x2,a['Inject'](Oe)),$e(0x3,a[_0x37a374(0x30c)]),$e(0x4,a[_0x37a374(0x629)](a[_0x37a374(0x559)]))],pt);const us=0x1,ds=1.5;class mn extends K[_0x37a374(0x3fd)]{constructor(_0x378058,_0x47781a){const _0x5205eb=_0x37a374;super(_0x378058,_0x47781a),I(this,'_color'),I(this,_0x5205eb(0x391),!0x1),I(this,_0x5205eb(0x2cd)),I(this,_0x5205eb(0x4b1),''),I(this,_0x5205eb(0x608),'top'),I(this,_0x5205eb(0x2b1)),(_0x47781a&&this[_0x5205eb(0x21e)](_0x47781a),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5205eb(0x21e)]({'hovered':!0x0})),this[_0x5205eb(0x4df)]['subscribeEvent'](()=>this[_0x5205eb(0x21e)]({'hovered':!0x1})));}[_0x37a374(0x21e)](_0x5924cd){const _0x4b9b7f=_0x37a374;var _0x2be879,_0x49d2ba,_0x121b89,_0x48b9d9,_0x408763,_0x3acb97;this[_0x4b9b7f(0x47c)]=(_0x2be879=_0x5924cd[_0x4b9b7f(0x422)])!=null?_0x2be879:this[_0x4b9b7f(0x47c)],this['_hovered']=(_0x49d2ba=_0x5924cd[_0x4b9b7f(0x4d4)])!=null?_0x49d2ba:this[_0x4b9b7f(0x391)],this[_0x4b9b7f(0x2cd)]=(_0x121b89=_0x5924cd[_0x4b9b7f(0x30f)])!=null?_0x121b89:this[_0x4b9b7f(0x2cd)],this[_0x4b9b7f(0x4b1)]=(_0x48b9d9=_0x5924cd['name'])!=null?_0x48b9d9:this[_0x4b9b7f(0x4b1)],this[_0x4b9b7f(0x608)]=(_0x408763=_0x5924cd[_0x4b9b7f(0x67a)])!=null?_0x408763:this['_labelPosition'],this[_0x4b9b7f(0x2b1)]=(_0x3acb97=_0x5924cd[_0x4b9b7f(0x2b7)])!=null?_0x3acb97:this[_0x4b9b7f(0x2b1)],this[_0x4b9b7f(0x2ab)]({'width':_0x5924cd[_0x4b9b7f(0x3d1)],'height':_0x5924cd[_0x4b9b7f(0x300)]});}[_0x37a374(0x568)](_0x10d058){const _0x3ecaf7=_0x37a374,{row:_0x3e0a77,column:_0xb650b6}=_0x10d058;if(_0x3e0a77>=this[_0x3ecaf7(0x2cd)]['startRow']&&_0x3e0a77<=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x2c8)]&&_0xb650b6>=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x2d5)]&&_0xb650b6<=this[_0x3ecaf7(0x2cd)][_0x3ecaf7(0x519)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3ecaf7(0x21e)]({'hovered':!0x1});}[_0x37a374(0x66f)](_0x1e822f){return!0x1;}[_0x37a374(0x634)](_0x58cd0b){const _0x14bbca=_0x37a374;K[_0x14bbca(0x40a)][_0x14bbca(0x65e)](_0x58cd0b,{'width':this[_0x14bbca(0x3d1)],'height':this['height'],'strokeWidth':ds,'stroke':this[_0x14bbca(0x47c)],'evented':!0x1,'fill':this[_0x14bbca(0x2b1)]}),this[_0x14bbca(0x391)]&&(_0x58cd0b['save'](),_0x58cd0b[_0x14bbca(0x610)](0x1,0x0,0x0,0x1,this[_0x14bbca(0x3d1)],this[_0x14bbca(0x608)]==='bottom'?0x0:-Ne),ze['drawWith'](_0x58cd0b,{'text':this['_name'],'color':this[_0x14bbca(0x47c)]}),_0x58cd0b[_0x14bbca(0x54b)]());}}var fs=Object[_0x37a374(0x55e)],vs=Object[_0x37a374(0x4a5)],ms=(_0x4debae,_0x4ff8b5,_0x38a47c,_0x14e4de)=>{const _0x46e2ba=_0x37a374;for(var _0x363490=_0x14e4de>0x1?void 0x0:_0x14e4de?vs(_0x4ff8b5,_0x38a47c):_0x4ff8b5,_0x4f169a=_0x4debae[_0x46e2ba(0x330)]-0x1,_0x3be6c5;_0x4f169a>=0x0;_0x4f169a--)(_0x3be6c5=_0x4debae[_0x4f169a])&&(_0x363490=(_0x14e4de?_0x3be6c5(_0x4ff8b5,_0x38a47c,_0x363490):_0x3be6c5(_0x363490))||_0x363490);return _0x14e4de&&_0x363490&&fs(_0x4ff8b5,_0x38a47c,_0x363490),_0x363490;},rt=(_0x26cbb7,_0x3fa4c8)=>(_0x226674,_0x4a706d)=>_0x3fa4c8(_0x226674,_0x4a706d,_0x26cbb7);const ps=0x1389;let St=class extends a['RxDisposable']{constructor(_0x4cdc30,_0xe25cc2,_0x3f7747,_0x20bbff){const _0x289e0d=_0x37a374;super(),I(this,_0x289e0d(0x668),new Set()),I(this,_0x289e0d(0x233),null),(this[_0x289e0d(0x56b)]=_0x4cdc30,this[_0x289e0d(0x410)]=_0xe25cc2,this[_0x289e0d(0x3f0)]=_0x3f7747,this[_0x289e0d(0x536)]=_0x20bbff,this[_0x289e0d(0x3c3)]());}['_init'](){const _0xac9e6e=_0x37a374;this[_0xac9e6e(0x410)][_0xac9e6e(0x632)]['pipe'](V['takeUntil'](this['dispose$']),V[_0xac9e6e(0x5e0)](_0xd38546=>{const _0x4e7057=_0xac9e6e;if(_0xd38546){const _0x109102=_0xd38546[_0x4e7057(0x2c3)];return A[_0x4e7057(0x5e6)](this['_collabCursorController'][_0x4e7057(0x2e7)](this[_0x4e7057(0x56b)]['unitId']),this['_themeService']['currentTheme$'])[_0x4e7057(0x4d7)](V[_0x4e7057(0x323)](([_0x568c67,_0x9778bf])=>{const _0x3b5c1d=new Map();return _0x568c67['forEach']((_0x10ee44,_0xf00758)=>{const _0x5ca5b8=_0x513c;if(_0x10ee44[_0x5ca5b8(0x31b)]===_0x109102){const _0x5707a9={..._0x10ee44};_0x5707a9[_0x5ca5b8(0x422)]=_0x9778bf[_0x10ee44[_0x5ca5b8(0x422)]],_0x3b5c1d[_0x5ca5b8(0x5d1)](_0xf00758,_0x5707a9);}}),{'skeleton':_0xd38546,'cursors':_0x3b5c1d};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0xac9e6e(0x274)](({skeleton:_0x346e91,cursors:_0x1fe62b})=>{const _0x217f14=_0xac9e6e;this[_0x217f14(0x331)](),_0x346e91&&this[_0x217f14(0x3ef)](_0x346e91,_0x1fe62b);}),this['_sheetSkeletonManagerService'][_0xac9e6e(0x632)][_0xac9e6e(0x274)](_0x170dd6=>{const _0x49decf=_0xac9e6e;if(_0x170dd6==null)return;const {skeleton:_0x5a0875}=_0x170dd6,{scene:_0x20866f}=this[_0x49decf(0x56b)];_0x20866f[_0x49decf(0x5df)]['subscribeEvent'](a[_0x49decf(0x1f4)](_0x2f3f2f=>{const _0x10d902=_0x49decf;var _0x5ef647,_0x42c6b1;const {offsetX:_0x1d1e2e,offsetY:_0x296505}=_0x2f3f2f,{x:_0x269374,y:_0x209631}=_0x20866f[_0x10d902(0x259)](K[_0x10d902(0x616)]['FromArray']([_0x1d1e2e,_0x296505])),{scaleX:_0x198af7,scaleY:_0x1f2817}=_0x20866f[_0x10d902(0x3bb)](),_0x23be3a=_0x20866f['getViewport'](Te['VIEWPORT_KEY'][_0x10d902(0x41b)]),_0x3cb1ea=_0x20866f[_0x10d902(0x39c)](K[_0x10d902(0x616)][_0x10d902(0x44c)]([_0x269374,_0x209631]),_0x23be3a),_0x300ef9=_0x5a0875['getCellPositionByOffset'](_0x1d1e2e,_0x296505,_0x198af7,_0x1f2817,_0x3cb1ea);((_0x5ef647=this[_0x10d902(0x233)])==null?void 0x0:_0x5ef647['column'])===_0x300ef9['column']&&((_0x42c6b1=this['_lastPointer'])==null?void 0x0:_0x42c6b1[_0x10d902(0x5f9)])===_0x300ef9[_0x10d902(0x5f9)]||this['_cursors'][_0x10d902(0x278)](_0x241cc9=>{const _0x374383=_0x10d902;_0x241cc9[_0x374383(0x568)](_0x300ef9);});},0x64));});}[_0x37a374(0x3ef)](_0x564aa7,_0x10f188){const _0x21f976=_0x37a374;var _0x3d9612;const _0x1c924a=(_0x3d9612=this[_0x21f976(0x410)][_0x21f976(0x3c2)]())==null?void 0x0:_0x3d9612[_0x21f976(0x451)];if(!_0x1c924a)return;const _0x529869=this[_0x21f976(0x328)]();if(!_0x529869)return;this[_0x21f976(0x668)]['forEach'](_0x55cb60=>{const _0x297915=_0x21f976;_0x55cb60[_0x297915(0x45d)]();});const {scene:_0x3af192}=_0x529869,_0x3fb361=Ss(Array[_0x21f976(0x1ec)](_0x10f188[_0x21f976(0x353)]()))[_0x21f976(0x323)](_0x459c44=>{const _0x23c5b2=_0x21f976,{color:_0x4edd6e,range:_0x11f599,name:_0x5d1675,selection:_0x41f6fd,sheetID:_0x3ea873}=_0x459c44,{startColumn:_0x3287a8,startRow:_0x3256db,endColumn:_0x34f739,endRow:_0x4f1e48}=_0x11f599,_0x5dcd32=Te[_0x23c5b2(0x40d)](_0x3256db,_0x3287a8,_0x3af192,_0x1c924a),_0x3bbf10=Te[_0x23c5b2(0x40d)](_0x4f1e48,_0x34f739,_0x3af192,_0x1c924a),{columnHeaderHeightAndMarginTop:_0x4b29a0}=_0x1c924a,{startX:_0x52b9d5,startY:_0x2765ce}=_0x5dcd32,{endX:_0x20f401,endY:_0x187d32}=_0x3bbf10,_0x322c83=_0x20f401-_0x52b9d5,_0x3c1496=_0x187d32-_0x2765ce,_0x23730d={'labelPosition':_0x2765ce-_0x4b29a0>=Ne?_0x23c5b2(0x5ad):_0x23c5b2(0x2db),'sheetID':_0x3ea873,'range':_0x11f599,'color':_0x4edd6e,'name':_0x5d1675,'selection':_0x41f6fd,'left':_0x52b9d5,'top':_0x2765ce,'width':_0x322c83,'height':_0x3c1496,'evented':!0x1,'zIndex':ps};return new mn(_0x5d1675,_0x23730d);});_0x3af192[_0x21f976(0x67f)](_0x3fb361,us),this[_0x21f976(0x668)]=new Set(_0x3fb361);}[_0x37a374(0x331)](){const _0x3c2c26=_0x37a374;var _0x4ccdd2;(_0x4ccdd2=this['_cursors'])==null||_0x4ccdd2[_0x3c2c26(0x278)](_0x2594cf=>_0x2594cf['dispose']());}[_0x37a374(0x328)](){const _0x5425cb=_0x37a374;return Te[_0x5425cb(0x626)](this[_0x5425cb(0x56b)][_0x5425cb(0x226)],this['_context']);}};St=ms([rt(0x1,a['Inject'](Te[_0x37a374(0x5bb)])),rt(0x2,a[_0x37a374(0x629)](Oe)),rt(0x3,a[_0x37a374(0x629)](a[_0x37a374(0x559)]))],St);function Ss(_0x57f6cb){const _0x544de8=_0x37a374,_0x2f68de=new Map();return _0x57f6cb[_0x544de8(0x278)](_0x3aa953=>{const _0x17a5b4=_0x544de8;if(_0x2f68de[_0x17a5b4(0x244)](_0x3aa953[_0x17a5b4(0x3f6)])){const _0x317cb3=_0x2f68de[_0x17a5b4(0x5bf)](_0x3aa953[_0x17a5b4(0x3f6)]);_0x317cb3['name']+=',\x20'+_0x3aa953[_0x17a5b4(0x21c)];}else _0x2f68de[_0x17a5b4(0x5d1)](_0x3aa953['selection'],_0x3aa953);}),Array['from'](_0x2f68de[_0x544de8(0x353)]());}var ee=function(){const _0x192ea4=_0x37a374;return ee=Object[_0x192ea4(0x398)]||function(_0x5c2fe6){const _0x263f81=_0x192ea4;for(var _0x20dba6,_0x3654ca=0x1,_0x1e1ba1=arguments[_0x263f81(0x330)];_0x3654ca<_0x1e1ba1;_0x3654ca++){_0x20dba6=arguments[_0x3654ca];for(var _0x5a7534 in _0x20dba6)Object[_0x263f81(0x420)][_0x263f81(0x658)]['call'](_0x20dba6,_0x5a7534)&&(_0x5c2fe6[_0x5a7534]=_0x20dba6[_0x5a7534]);}return _0x5c2fe6;},ee[_0x192ea4(0x4ae)](this,arguments);},gs=function(_0x5244ee,_0x11bc04){const _0x3ba793=_0x37a374;var _0x3c220c={};for(var _0x621d50 in _0x5244ee)Object['prototype']['hasOwnProperty'][_0x3ba793(0x1fa)](_0x5244ee,_0x621d50)&&_0x11bc04[_0x3ba793(0x23a)](_0x621d50)<0x0&&(_0x3c220c[_0x621d50]=_0x5244ee[_0x621d50]);if(_0x5244ee!=null&&typeof Object['getOwnPropertySymbols']==_0x3ba793(0x556)){for(var _0x1acaf3=0x0,_0x621d50=Object['getOwnPropertySymbols'](_0x5244ee);_0x1acaf3<_0x621d50['length'];_0x1acaf3++)_0x11bc04[_0x3ba793(0x23a)](_0x621d50[_0x1acaf3])<0x0&&Object[_0x3ba793(0x420)][_0x3ba793(0x1e5)][_0x3ba793(0x1fa)](_0x5244ee,_0x621d50[_0x1acaf3])&&(_0x3c220c[_0x621d50[_0x1acaf3]]=_0x5244ee[_0x621d50[_0x1acaf3]]);}return _0x3c220c;},Ot=z['forwardRef'](function(_0x3ce58f,_0x19aad6){const _0x1c4ffb=_0x37a374;var _0x5cd7ae=_0x3ce58f[_0x1c4ffb(0x36a)],_0x2b5ed0=_0x3ce58f['id'],_0x38d704=_0x3ce58f[_0x1c4ffb(0x306)],_0x546be9=_0x3ce58f[_0x1c4ffb(0x24a)],_0x117ac5=gs(_0x3ce58f,[_0x1c4ffb(0x36a),'id',_0x1c4ffb(0x306),_0x1c4ffb(0x24a)]),_0x39924a=_0x1c4ffb(0x51b)[_0x1c4ffb(0x315)](_0x2b5ed0,'\x20')['concat'](_0x38d704||'')[_0x1c4ffb(0x450)](),_0x45bfbe=z[_0x1c4ffb(0x341)]('_'[_0x1c4ffb(0x315)](Es()));return pn(_0x5cd7ae,''[_0x1c4ffb(0x315)](_0x2b5ed0),{'defIds':_0x5cd7ae[_0x1c4ffb(0x311)],'idSuffix':_0x45bfbe[_0x1c4ffb(0x29b)]},ee({'ref':_0x19aad6,'className':_0x39924a},_0x117ac5),_0x546be9);});function pn(_0x46d1b0,_0x1b4871,_0x1a7461,_0x452fb2,_0x597639){const _0x1af853=_0x37a374;return z[_0x1af853(0x336)](_0x46d1b0[_0x1af853(0x1e4)],ee(ee({'key':_0x1b4871},Is(_0x46d1b0,_0x1a7461,_0x597639)),_0x452fb2),(Cs(_0x46d1b0,_0x1a7461)[_0x1af853(0x5fb)]||[])[_0x1af853(0x323)](function(_0xcb7793,_0x5ed244){const _0x2bf684=_0x1af853;return pn(_0xcb7793,''[_0x2bf684(0x315)](_0x1b4871,'-')[_0x2bf684(0x315)](_0x46d1b0['tag'],'-')['concat'](_0x5ed244),_0x1a7461,void 0x0,_0x597639);}));}function Is(_0xb75d6,_0x62320,_0x3b2fb4){const _0x4459b1=_0x37a374;var _0x22ffb1=ee({},_0xb75d6[_0x4459b1(0x47f)]);_0x3b2fb4!=null&&_0x3b2fb4[_0x4459b1(0x25e)]&&_0x22ffb1[_0x4459b1(0x2dc)]===_0x4459b1(0x25e)&&(_0x22ffb1[_0x4459b1(0x2dc)]=_0x3b2fb4[_0x4459b1(0x25e)]);var _0xbf28eb=_0x62320['defIds'];return!_0xbf28eb||_0xbf28eb['length']===0x0||(_0xb75d6[_0x4459b1(0x1e4)]==='use'&&_0x22ffb1[_0x4459b1(0x56a)]&&(_0x22ffb1[_0x4459b1(0x56a)]=_0x22ffb1[_0x4459b1(0x56a)]+_0x62320[_0x4459b1(0x1c1)]),Object[_0x4459b1(0x530)](_0x22ffb1)[_0x4459b1(0x278)](function(_0x39a685){const _0x1f294c=_0x4459b1;var _0x4d3be1=_0x39a685[0x0],_0x34f00d=_0x39a685[0x1];typeof _0x34f00d=='string'&&(_0x22ffb1[_0x4d3be1]=_0x34f00d[_0x1f294c(0x2a2)](/url\(#(.*)\)/,_0x1f294c(0x4c7)['concat'](_0x62320['idSuffix'],')')));})),_0x22ffb1;}function Cs(_0x5d3847,_0x3eee06){const _0x266cab=_0x37a374;var _0x24b803,_0x54f8e3=_0x3eee06[_0x266cab(0x311)];return!_0x54f8e3||_0x54f8e3['length']===0x0?_0x5d3847:_0x5d3847[_0x266cab(0x1e4)]==='defs'&&(!((_0x24b803=_0x5d3847[_0x266cab(0x5fb)])===null||_0x24b803===void 0x0)&&_0x24b803['length'])?ee(ee({},_0x5d3847),{'children':_0x5d3847['children'][_0x266cab(0x323)](function(_0xda6e31){const _0x5a1e8a=_0x266cab;return typeof _0xda6e31[_0x5a1e8a(0x47f)]['id']==_0x5a1e8a(0x3de)&&_0x54f8e3&&_0x54f8e3[_0x5a1e8a(0x23a)](_0xda6e31[_0x5a1e8a(0x47f)]['id'])>-0x1?ee(ee({},_0xda6e31),{'attrs':ee(ee({},_0xda6e31[_0x5a1e8a(0x47f)]),{'id':_0xda6e31[_0x5a1e8a(0x47f)]['id']+_0x3eee06['idSuffix']})}):_0xda6e31;})}):_0x5d3847;}function Es(){const _0x5ddd59=_0x37a374;return Math[_0x5ddd59(0x59c)]()[_0x5ddd59(0x4d2)](0x24)[_0x5ddd59(0x533)](0x2,0x8);}Ot[_0x37a374(0x4c1)]=_0x37a374(0x599);var bs={'tag':_0x37a374(0x2ce),'attrs':{'fill':_0x37a374(0x59d),'viewBox':_0x37a374(0x39f),'width':_0x37a374(0x5db),'height':_0x37a374(0x5db)},'children':[{'tag':'g','attrs':{'clipPath':_0x37a374(0x4f7)},'children':[{'tag':_0x37a374(0x339),'attrs':{'stroke':'currentColor','d':_0x37a374(0x220),'strokeLinecap':_0x37a374(0x231),'strokeLinejoin':_0x37a374(0x231),'strokeWidth':1.2}}]},{'tag':_0x37a374(0x627),'attrs':{},'children':[{'tag':_0x37a374(0x491),'attrs':{'id':_0x37a374(0x23c)},'children':[{'tag':_0x37a374(0x339),'attrs':{'fill':_0x37a374(0x413),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Sn=z[_0x37a374(0x264)](function(_0x3b0fea,_0x470dce){const _0x20946e=_0x37a374;return z['createElement'](Ot,Object[_0x20946e(0x398)]({},_0x3b0fea,{'id':'off-line-single','ref':_0x470dce,'icon':bs}));});Sn[_0x37a374(0x4c1)]=_0x37a374(0x502);var Ts={'tag':'svg','attrs':{'fill':_0x37a374(0x59d),'viewBox':_0x37a374(0x47d),'width':_0x37a374(0x5db),'height':_0x37a374(0x5db)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x37a374(0x339),'attrs':{'stroke':'currentColor','d':_0x37a374(0x465),'strokeLinecap':_0x37a374(0x231),'strokeLinejoin':_0x37a374(0x231),'strokeWidth':1.2}}]},{'tag':_0x37a374(0x627),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x37a374(0x339),'attrs':{'fill':_0x37a374(0x413),'d':_0x37a374(0x301),'transform':_0x37a374(0x4d8)}}]}]}],'defIds':['on-line-single_clip0_910_349']},gn=z[_0x37a374(0x264)](function(_0x20a39b,_0x5ea8a1){const _0x5b0d84=_0x37a374;return z[_0x5b0d84(0x336)](Ot,Object[_0x5b0d84(0x398)]({},_0x20a39b,{'id':_0x5b0d84(0x65d),'ref':_0x5ea8a1,'icon':Ts}));});gn[_0x37a374(0x4c1)]=_0x37a374(0x4ee);function In(_0x4a4a39){const _0x1fb5b9=_0x37a374;var _0x4728c4,_0xc4da25,_0x314f66='';if(typeof _0x4a4a39==_0x1fb5b9(0x3de)||typeof _0x4a4a39==_0x1fb5b9(0x308))_0x314f66+=_0x4a4a39;else{if(typeof _0x4a4a39==_0x1fb5b9(0x48a)){if(Array[_0x1fb5b9(0x338)](_0x4a4a39)){var _0x4e8907=_0x4a4a39['length'];for(_0x4728c4=0x0;_0x4728c4<_0x4e8907;_0x4728c4++)_0x4a4a39[_0x4728c4]&&(_0xc4da25=In(_0x4a4a39[_0x4728c4]))&&(_0x314f66&&(_0x314f66+='\x20'),_0x314f66+=_0xc4da25);}else{for(_0xc4da25 in _0x4a4a39)_0x4a4a39[_0xc4da25]&&(_0x314f66&&(_0x314f66+='\x20'),_0x314f66+=_0xc4da25);}}}return _0x314f66;}function Rs(){const _0x1ad24c=_0x37a374;for(var _0x215da8,_0x4212f1,_0x5cb8d3=0x0,_0x547b89='',_0x409f8b=arguments[_0x1ad24c(0x330)];_0x5cb8d3<_0x409f8b;_0x5cb8d3++)(_0x215da8=arguments[_0x5cb8d3])&&(_0x4212f1=In(_0x215da8))&&(_0x547b89&&(_0x547b89+='\x20'),_0x547b89+=_0x4212f1);return _0x547b89;}const ys=_0x37a374(0x218),Os=_0x37a374(0x216),Ds=_0x37a374(0x479),ws='univer-online',Ps='univer-offline',Ue={'onlineStatusIcon':ys,'onlineStatusTitle':Os,'onlineStatus':Ds,'online':ws,'offline':Ps};function Us(_0x4364a4){const _0x3fe4a3=_0x37a374;switch(_0x4364a4){case q[_0x3fe4a3(0x320)]:return'collabStatus.offline';case q[_0x3fe4a3(0x43c)]:return _0x3fe4a3(0x4bc);case q[_0x3fe4a3(0x334)]:return _0x3fe4a3(0x397);case q['NOT_COLLAB']:return _0x3fe4a3(0x3d7);case q[_0x3fe4a3(0x5b7)]:case q[_0x3fe4a3(0x672)]:return _0x3fe4a3(0x484);case q[_0x3fe4a3(0x2b9)]:case q['PENDING']:return'collabStatus.synced';}}function Cn(_0x426678){const _0x442d6d=_0x37a374,{status$:_0x36af28}=_0x426678,_0x6482ff=te[_0x442d6d(0x423)](_0x36af28,q[_0x442d6d(0x4a3)]),_0xebdf1c=a['useDependency'](a[_0x442d6d(0x52f)]),_0x5e3131=a[_0x442d6d(0x588)](exports[_0x442d6d(0x5e2)]),_0x58d37e=_0x6482ff!==q[_0x442d6d(0x320)],_0x509bb5=_0xebdf1c['t'](Us(_0x6482ff)),_0x4e89aa=Rs(Ue[_0x442d6d(0x1e0)],{[Ue['online']]:_0x58d37e,[Ue[_0x442d6d(0x34e)]]:!_0x58d37e}),_0xdc628=_0x58d37e?z[_0x442d6d(0x336)](gn,null):z[_0x442d6d(0x336)](Sn,null),_0x4c5584=z[_0x442d6d(0x2b8)](()=>{const _0x47ab90=_0x442d6d;_0x58d37e||_0x5e3131[_0x47ab90(0x3dc)]();},[_0x58d37e,_0x5e3131]);function _0x19aaed(){const _0x37a5b7=_0x442d6d;return z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':_0x4e89aa,'onClick':_0x4c5584},z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':Ue[_0x37a5b7(0x431)]},_0xdc628),z[_0x37a5b7(0x336)](_0x37a5b7(0x4fc),{'className':Ue['onlineStatusTitle']},_0x509bb5));}return _0x58d37e?_0x19aaed():z[_0x442d6d(0x336)](Se[_0x442d6d(0x430)],{'title':_0xebdf1c['t'](_0x442d6d(0x33e))},_0x19aaed());}var Ms=Object[_0x37a374(0x55e)],As=Object[_0x37a374(0x4a5)],Ns=(_0x3b33aa,_0x5670fd,_0x36cb25,_0x5b9c3c)=>{const _0x3798fb=_0x37a374;for(var _0x5e1bef=_0x5b9c3c>0x1?void 0x0:_0x5b9c3c?As(_0x5670fd,_0x36cb25):_0x5670fd,_0x34981b=_0x3b33aa[_0x3798fb(0x330)]-0x1,_0x41478e;_0x34981b>=0x0;_0x34981b--)(_0x41478e=_0x3b33aa[_0x34981b])&&(_0x5e1bef=(_0x5b9c3c?_0x41478e(_0x5670fd,_0x36cb25,_0x5e1bef):_0x41478e(_0x5e1bef))||_0x5e1bef);return _0x5b9c3c&&_0x5e1bef&&Ms(_0x5670fd,_0x36cb25,_0x5e1bef),_0x5e1bef;},je=(_0x1b53ee,_0x46c599)=>(_0x3de44a,_0x209ae8)=>_0x46c599(_0x3de44a,_0x209ae8,_0x1b53ee);exports[_0x37a374(0x4b3)]=class extends a[_0x37a374(0x65c)]{constructor(_0x153a70,_0x47f253,_0x470f23,_0x502cad){const _0x240668=_0x37a374;super(),I(this,_0x240668(0x4e8),new A[(_0x240668(0x441))](q[_0x240668(0x4a3)])),(this[_0x240668(0x1d4)]=_0x153a70,this[_0x240668(0x4b5)]=_0x47f253,this[_0x240668(0x58f)]=_0x470f23,this['_collaborationController']=_0x502cad,this[_0x240668(0x5d9)](),this[_0x240668(0x436)]());}['_initStatusListener'](){const _0x428416=_0x37a374;this[_0x428416(0x4d6)](this['_univerInstanceService'][_0x428416(0x628)][_0x428416(0x4d7)](A[_0x428416(0x5e0)](()=>{const _0x1d46cf=_0x428416,_0x244743=this['_univerInstanceService'][_0x1d46cf(0x2cf)]();return _0x244743?this['_collaborationController'][_0x1d46cf(0x5ce)](_0x244743[_0x1d46cf(0x615)]()):A['of'](null);}),A[_0x428416(0x5e0)](_0x4f40b1=>_0x4f40b1?_0x4f40b1[_0x428416(0x238)]:A['of'](q[_0x428416(0x4a3)])))['subscribe'](_0x1bf077=>{const _0x30d010=_0x428416;this[_0x30d010(0x4e8)][_0x30d010(0x24e)](_0x1bf077);}));}[_0x37a374(0x5d9)](){const _0x8a6acf=_0x37a374;this[_0x8a6acf(0x4d6)](this[_0x8a6acf(0x4b5)][_0x8a6acf(0x5b4)](te[_0x8a6acf(0x507)][_0x8a6acf(0x1cd)],()=>a[_0x8a6acf(0x3af)](Ls({'status$':this[_0x8a6acf(0x4e8)][_0x8a6acf(0x483)]()}),this['_injector'])));}},exports[_0x37a374(0x4b3)]=Ns([je(0x0,a['IUniverInstanceService']),je(0x1,te[_0x37a374(0x3ee)]),je(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),je(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x511)]))],exports[_0x37a374(0x4b3)]);function Ls(_0x486255){const {status$:_0x5552ea}=_0x486255;return function(){const _0x547e4c=_0x513c;return z[_0x547e4c(0x336)](Cn,{'status$':_0x5552ea});};}const Dt=a[_0x37a374(0x3e0)]('uni.network.url-service');var xs=Object[_0x37a374(0x55e)],$s=Object['getOwnPropertyDescriptor'],js=(_0x147d3c,_0x2be9f7,_0x3c10c0,_0x4d0b4a)=>{const _0x1f044b=_0x37a374;for(var _0x5508a7=_0x4d0b4a>0x1?void 0x0:_0x4d0b4a?$s(_0x2be9f7,_0x3c10c0):_0x2be9f7,_0x429dbf=_0x147d3c[_0x1f044b(0x330)]-0x1,_0x4c907e;_0x429dbf>=0x0;_0x429dbf--)(_0x4c907e=_0x147d3c[_0x429dbf])&&(_0x5508a7=(_0x4d0b4a?_0x4c907e(_0x2be9f7,_0x3c10c0,_0x5508a7):_0x4c907e(_0x5508a7))||_0x5508a7);return _0x4d0b4a&&_0x5508a7&&xs(_0x2be9f7,_0x3c10c0,_0x5508a7),_0x5508a7;},be=(_0x34c208,_0x1c0d44)=>(_0xb39d0b,_0x43e089)=>_0x1c0d44(_0xb39d0b,_0x43e089,_0x34c208);exports[_0x37a374(0x61a)]=class extends a['RxDisposable']{constructor(_0x251547,_0x47fa10,_0x51761a,_0xe3fd06,_0x1fe511,_0x2fa04f){const _0x52e0ac=_0x37a374;super(),this[_0x52e0ac(0x1f8)]=_0x251547,this[_0x52e0ac(0x58a)]=_0x47fa10,this[_0x52e0ac(0x48f)]=_0x51761a,this[_0x52e0ac(0x1fd)]=_0xe3fd06,this[_0x52e0ac(0x52a)]=_0x1fe511,_0x2fa04f?_0x2fa04f==null||_0x2fa04f[_0x52e0ac(0x3ea)]()[_0x52e0ac(0x23e)](()=>this['_init']()):(this[_0x52e0ac(0x58a)][_0x52e0ac(0x643)](_0x52e0ac(0x396),_0x52e0ac(0x28a)),this[_0x52e0ac(0x3c3)]());}async[_0x37a374(0x3c3)](){const _0x2c18d=_0x37a374,_0x44d758=this[_0x2c18d(0x1f8)][_0x2c18d(0x48e)](_0x2c18d(0x226)),_0x42f4f4=this[_0x2c18d(0x1f8)]['getParam']('type');if(!_0x44d758||!_0x42f4f4){this[_0x2c18d(0x58a)][_0x2c18d(0x643)]('[DataLoaderController]',_0x2c18d(0x345));return;}switch(Number(_0x42f4f4)){case se['UNIVER_SHEET']:{const _0x19d31d=await this[_0x2c18d(0x3a8)](_0x44d758);this[_0x2c18d(0x42c)](_0x19d31d);break;}case se[_0x2c18d(0x619)]:{await this[_0x2c18d(0x47a)](_0x44d758);break;}default:{this[_0x2c18d(0x58a)][_0x2c18d(0x237)](_0x2c18d(0x396),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x37a374(0x42c)](_0xadc861){const _0x2de6e5=_0x37a374;await this[_0x2de6e5(0x386)](_0xadc861),_0xadc861[_0x2de6e5(0x623)][_0x2de6e5(0x4d7)](A[_0x2de6e5(0x27d)](this['dispose$']))['subscribe'](_0x69c026=>{const _0x5db54a=_0x2de6e5;_0x69c026&&this[_0x5db54a(0x2f3)](_0x69c026);}),this['_urlService'][_0x2de6e5(0x29f)][_0x2de6e5(0x4d7)](A[_0x2de6e5(0x27d)](this['dispose$']))[_0x2de6e5(0x274)](()=>this[_0x2de6e5(0x386)](_0xadc861));}[_0x37a374(0x2f3)](_0x527da0,_0x2497b6=!0x1){const _0x3d0da0=_0x37a374,_0x3bdbef=this['_urlService']['getParam'](_0x3d0da0(0x291));_0x527da0['getSheetId']()!==_0x3bdbef&&this[_0x3d0da0(0x1f8)][_0x3d0da0(0x4f8)](_0x3d0da0(0x291),_0x527da0[_0x3d0da0(0x261)](),_0x2497b6);}async['_updateSubUnitFromURLParams'](_0x74a850){const _0x1ddc83=_0x37a374;var _0x4dc521;const _0x1cd507=this['_urlService'][_0x1ddc83(0x48e)](_0x1ddc83(0x291));if(!_0x1cd507||!_0x74a850[_0x1ddc83(0x287)](_0x1cd507)){const _0x7e7db3=_0x74a850[_0x1ddc83(0x32e)]()[0x0],_0x4eb621=_0x74a850[_0x1ddc83(0x287)](_0x7e7db3);if(!_0x4eb621)return;this[_0x1ddc83(0x2f3)](_0x4eb621,!0x0),await this[_0x1ddc83(0x48f)][_0x1ddc83(0x50d)](k[_0x1ddc83(0x538)]['id'],{'unitId':_0x74a850[_0x1ddc83(0x615)](),'subUnitId':_0x7e7db3});return;}((_0x4dc521=_0x74a850[_0x1ddc83(0x25a)]())==null?void 0x0:_0x4dc521[_0x1ddc83(0x261)]())!==_0x1cd507&&await this[_0x1ddc83(0x48f)][_0x1ddc83(0x50d)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x74a850[_0x1ddc83(0x615)](),'subUnitId':_0x1cd507});}async['_loadSheet'](_0x210eb7){const _0x27ba49=_0x37a374;let _0x274114=0x0;const _0x34ed8f=await this[_0x27ba49(0x1fd)][_0x27ba49(0x3b8)](_0x210eb7);return _0x34ed8f&&(_0x34ed8f['awaitingChangeset']||_0x34ed8f[_0x27ba49(0x579)][_0x27ba49(0x330)]!==0x0)&&(_0x274114=_0x34ed8f[_0x27ba49(0x3e6)]),_0x274114===0x0&&this['_logService'][_0x27ba49(0x643)](_0x27ba49(0x396),_0x27ba49(0x206)),this[_0x27ba49(0x52a)][_0x27ba49(0x43f)](_0x210eb7,_0x274114);}async['_loadDoc'](_0x411f1d){const _0x44524c=_0x37a374;let _0xbfd16a=0x0;const _0x793c90=await this['_localCacheService']['loadOfflineData'](_0x411f1d);return _0x793c90&&(_0x793c90[_0x44524c(0x1fb)]||_0x793c90[_0x44524c(0x579)][_0x44524c(0x330)]!==0x0)&&(_0xbfd16a=_0x793c90[_0x44524c(0x3e6)]),_0xbfd16a===0x0&&this[_0x44524c(0x58a)][_0x44524c(0x643)](_0x44524c(0x396),_0x44524c(0x206)),this[_0x44524c(0x52a)][_0x44524c(0x4e2)](_0x411f1d,_0xbfd16a);}},exports[_0x37a374(0x61a)]=js([be(0x0,Dt),be(0x1,a[_0x37a374(0x217)]),be(0x2,a['ICommandService']),be(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x27a)])),be(0x4,a[_0x37a374(0x629)](p['SnapshotService'])),be(0x5,a[_0x37a374(0x673)](Ln[_0x37a374(0x3ff)]))],exports[_0x37a374(0x61a)]);var Hs=Object[_0x37a374(0x55e)],Bs=Object[_0x37a374(0x4a5)],ks=(_0x1accca,_0x5da12c,_0x18eca1,_0x145bd4)=>{for(var _0x525fb0=_0x145bd4>0x1?void 0x0:_0x145bd4?Bs(_0x5da12c,_0x18eca1):_0x5da12c,_0x274cee=_0x1accca['length']-0x1,_0xd81cb6;_0x274cee>=0x0;_0x274cee--)(_0xd81cb6=_0x1accca[_0x274cee])&&(_0x525fb0=(_0x145bd4?_0xd81cb6(_0x5da12c,_0x18eca1,_0x525fb0):_0xd81cb6(_0x525fb0))||_0x525fb0);return _0x145bd4&&_0x525fb0&&Hs(_0x5da12c,_0x18eca1,_0x525fb0),_0x525fb0;},Bt=(_0x2fba47,_0x3fb072)=>(_0x54073f,_0x50c9fa)=>_0x3fb072(_0x54073f,_0x50c9fa,_0x2fba47);const Ws='DEFAULT_FILE_NAME',Fs=_0x37a374(0x373);let Ve=class extends a[_0x37a374(0x65c)]{constructor(_0x357cc8,_0x1842b7){const _0x34da00=_0x37a374;super(),this[_0x34da00(0x1d4)]=_0x357cc8,this['_configService']=_0x1842b7,this['_init']();}[_0x37a374(0x3c3)](){const _0x36d9fc=_0x37a374;this['disposeWithMe'](this[_0x36d9fc(0x1d4)][_0x36d9fc(0x628)]['subscribe'](()=>{const _0x22aa01=_0x36d9fc;var _0xcd8d0c;const _0x1512a5=this[_0x22aa01(0x1d4)][_0x22aa01(0x2cf)]();let _0x15280d=(_0xcd8d0c=this[_0x22aa01(0x3e7)]['getConfig'](Ws))!=null?_0xcd8d0c:Fs;_0x1512a5 instanceof a[_0x22aa01(0x482)]&&(_0x15280d=_0x1512a5[_0x22aa01(0x21c)]),document[_0x22aa01(0x3e3)]=_0x15280d;}));}};Ve=ks([Bt(0x0,a[_0x37a374(0x662)]),Bt(0x1,a[_0x37a374(0x30b)])],Ve);var Vs=Object[_0x37a374(0x55e)],Gs=Object[_0x37a374(0x4a5)],Ys=(_0x22d10f,_0x432764,_0x82f7e0,_0x44a743)=>{const _0x579d91=_0x37a374;for(var _0xc626e4=_0x44a743>0x1?void 0x0:_0x44a743?Gs(_0x432764,_0x82f7e0):_0x432764,_0x200b73=_0x22d10f[_0x579d91(0x330)]-0x1,_0x9ee4b3;_0x200b73>=0x0;_0x200b73--)(_0x9ee4b3=_0x22d10f[_0x200b73])&&(_0xc626e4=(_0x44a743?_0x9ee4b3(_0x432764,_0x82f7e0,_0xc626e4):_0x9ee4b3(_0xc626e4))||_0xc626e4);return _0x44a743&&_0xc626e4&&Vs(_0x432764,_0x82f7e0,_0xc626e4),_0xc626e4;},ot=(_0x31b1e6,_0xb1c742)=>(_0x4b0518,_0x15263d)=>_0xb1c742(_0x4b0518,_0x15263d,_0x31b1e6);let Ge=class{constructor(_0x2e1510,_0x1c4fb5,_0x475146){const _0x54ce3d=_0x37a374;this[_0x54ce3d(0x3e7)]=_0x2e1510,this[_0x54ce3d(0x20d)]=_0x1c4fb5,this[_0x54ce3d(0x235)]=_0x475146,this[_0x54ce3d(0x5ca)]();}[_0x37a374(0x5ca)](){const _0x241103=_0x37a374;this[_0x241103(0x20d)][_0x241103(0x417)]({'priority':0x1,'interceptor':(_0x1e1b9b,_0x2ba2ef)=>_0x2ba2ef(_0x1e1b9b)['pipe'](A[_0x241103(0x43b)](async _0x2477f2=>{const _0x18369a=_0x241103,_0x405ccb=_0x2477f2;if(_0x405ccb[_0x18369a(0x58b)]===0x191&&window['confirm'](this['localeService']['t'](_0x18369a(0x309)))){const _0x198e44=window[_0x18369a(0x39b)](window['location'][_0x18369a(0x310)]);window[_0x18369a(0x34c)][_0x18369a(0x310)]=this['_getLoginPath']()+_0x18369a(0x204)+_0x198e44;}return _0x405ccb;}))});}[_0x37a374(0x4b4)](){const _0x561e4b=_0x37a374;var _0x2dfa36,_0x3e2bf1;const _0x1dff6c=this[_0x561e4b(0x3e7)][_0x561e4b(0x37d)](on),_0x2a6634=this[_0x561e4b(0x3e7)][_0x561e4b(0x37d)](ne);return(_0x3e2bf1=(_0x2dfa36=_0x2a6634==null?void 0x0:_0x2a6634[_0x561e4b(0x1ff)])!=null?_0x2dfa36:_0x1dff6c)!=null?_0x3e2bf1:Gn;}};Ge=Ys([ot(0x0,a[_0x37a374(0x30b)]),ot(0x1,a['Inject'](Q[_0x37a374(0x34f)])),ot(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x52f)]))],Ge);var Ks=Object[_0x37a374(0x55e)],qs=Object[_0x37a374(0x4a5)],zs=(_0x2cc481,_0x27f6da,_0x26b0fc,_0x430447)=>{const _0x285ec8=_0x37a374;for(var _0x25fa56=_0x430447>0x1?void 0x0:_0x430447?qs(_0x27f6da,_0x26b0fc):_0x27f6da,_0x437745=_0x2cc481[_0x285ec8(0x330)]-0x1,_0x31239b;_0x437745>=0x0;_0x437745--)(_0x31239b=_0x2cc481[_0x437745])&&(_0x25fa56=(_0x430447?_0x31239b(_0x27f6da,_0x26b0fc,_0x25fa56):_0x31239b(_0x25fa56))||_0x25fa56);return _0x430447&&_0x25fa56&&Ks(_0x27f6da,_0x26b0fc,_0x25fa56),_0x25fa56;},kt=(_0x24e380,_0x8541af)=>(_0x4d476d,_0x15560a)=>_0x8541af(_0x4d476d,_0x15560a,_0x24e380);const En='AUTHZ_URL_KEY',Xs=_0x37a374(0x508);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x3c021e,_0x41e4d7){const _0x67dd2c=_0x37a374;super(),this[_0x67dd2c(0x624)]=_0x3c021e,this[_0x67dd2c(0x3e7)]=_0x41e4d7,this[_0x67dd2c(0x279)]();}[_0x37a374(0x279)](){const _0x94d9a5=_0x37a374,_0x577b24=this;this[_0x94d9a5(0x4d6)](this[_0x94d9a5(0x624)][_0x94d9a5(0x417)]({'priority':0x3e7,'interceptor':Q[_0x94d9a5(0x35d)]({'isMatch'(_0x3b7ba4){const _0x3943a9=_0x94d9a5;var _0x568ba9;if(_0x3b7ba4[_0x3943a9(0x676)]===_0x3943a9(0x598)&&((_0x568ba9=_0x3b7ba4[_0x3943a9(0x540)])!=null&&_0x568ba9[_0x3943a9(0x360)])){const {objectID:_0x4e9c37,objectType:_0xbd3209}=_0x3b7ba4['requestParams'][_0x3943a9(0x360)]||{};if(!_0x4e9c37||_0xbd3209===void 0x0)return!0x1;const _0x1ba6d1=_0x577b24[_0x3943a9(0x254)]()+'/'+_0xbd3209+'/object/'+_0x4e9c37+_0x3943a9(0x5fe);if(_0x3b7ba4[_0x3943a9(0x475)]===_0x1ba6d1)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xc2a9d8){const _0x1aa505=_0x94d9a5;var _0x299081;return(_0x299081=_0xc2a9d8[_0x1aa505(0x540)])==null?void 0x0:_0x299081['body'];},'mergeParamsToRequest'(_0x3dc781,_0xdc0d05){const _0x20d7a6=_0x94d9a5,_0x5fae01=_0x577b24['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0xef19f3=_0x3dc781[_0x20d7a6(0x20e)]((_0x2781be,_0x18f268)=>{const _0x16850e=_0x20d7a6,{unitID:_0x2f0563,objectID:_0x470b27,objectType:_0x505045,actions:_0x5c3a51}=_0x18f268;return _0x2781be[_0x2f0563]||(_0x2781be[_0x2f0563]={}),_0x2781be[_0x2f0563][_0x470b27]||(_0x2781be[_0x2f0563][_0x470b27]={'objectID':_0x470b27,'objectType':_0x505045,'actions':[]}),_0x2781be[_0x2f0563][_0x470b27][_0x16850e(0x3b6)]['push'](..._0x5c3a51),_0x2781be;},{}),_0x143b33=[];for(const _0xc2795e in _0xef19f3)for(const _0x7845a1 in _0xef19f3[_0xc2795e]){const {actions:_0xc98f46,objectType:_0x19ed29}=_0xef19f3[_0xc2795e][_0x7845a1],_0x24708b=[...new Set(_0xc98f46)];_0x143b33[_0x20d7a6(0x257)]({'unitID':_0xc2795e,'objectID':_0x7845a1,'objectType':_0x19ed29,'actions':_0x24708b});}return new Q[(_0x20d7a6(0x2cb))](_0x20d7a6(0x598),_0x5fae01,{'headers':_0xdc0d05[_0x20d7a6(0x356)],'withCredentials':_0xdc0d05[_0x20d7a6(0x2a1)],'responseType':_0xdc0d05[_0x20d7a6(0x50c)],'body':{'requests':_0x143b33}});}},{'distributeResult'(_0x37b50b,_0x2ada7e){const _0x15bc11=_0x94d9a5,{objectActions:_0x4a5a93}=_0x37b50b;return _0x2ada7e[_0x15bc11(0x323)](_0x2b45d3=>{const _0x37ff2e=_0x15bc11,{unitID:_0x3cece1,objectID:_0x489464,actions:_0x1db6a4}=_0x2b45d3,_0x1a30bb=_0x4a5a93[_0x37ff2e(0x437)](_0x22329a=>_0x22329a[_0x37ff2e(0x505)]===_0x3cece1&&_0x22329a[_0x37ff2e(0x5f3)]===_0x489464),_0x53b480=_0x1db6a4[_0x37ff2e(0x323)](_0x427683=>_0x1a30bb==null?void 0x0:_0x1a30bb['actions']['find'](_0x64eca1=>_0x64eca1[_0x37ff2e(0x1c6)]===_0x427683))[_0x37ff2e(0x434)](_0x2d50a7=>!!_0x2d50a7);return{'config':_0x2b45d3,'result':{'actions':_0x53b480,'error':_0x37b50b[_0x37ff2e(0x237)]}};});}})}));}[_0x37a374(0x254)](){const _0x4129dc=_0x37a374;var _0xf2394d,_0x309d98;const _0x3fea2c=this['_configService'][_0x4129dc(0x37d)](En),_0x347c5f=this[_0x4129dc(0x3e7)][_0x4129dc(0x37d)](ne);return(_0x309d98=(_0xf2394d=_0x347c5f==null?void 0x0:_0x347c5f[_0x4129dc(0x26c)])!=null?_0xf2394d:_0x3fea2c)!=null?_0x309d98:Xs;}async['create'](_0x43d404){const _0x3103a4=_0x37a374,_0x36ce18=this['_getAPIPrefixPath']()+'/'+_0x43d404[_0x3103a4(0x63f)]+_0x3103a4(0x5d8);return(await this[_0x3103a4(0x624)]['post'](_0x36ce18,{'body':_0x43d404}))[_0x3103a4(0x360)][_0x3103a4(0x5f3)]||'';}async[_0x37a374(0x3a5)](_0x587058){const _0x33e902=_0x37a374,_0x360f3b=this[_0x33e902(0x254)]()+_0x33e902(0x27b);return(await this[_0x33e902(0x624)][_0x33e902(0x302)](_0x360f3b,{'body':_0x587058}))['body'][_0x33e902(0x5b6)];}async[_0x37a374(0x60b)](_0x461a2e){const _0x30803b=_0x37a374,_0x50133b=this[_0x30803b(0x254)]()+'/'+_0x461a2e[_0x30803b(0x63f)]+_0x30803b(0x2b5)+_0x461a2e[_0x30803b(0x5f3)];await this[_0x30803b(0x624)][_0x30803b(0x661)](_0x50133b,{'body':_0x461a2e});}async[_0x37a374(0x4f0)](_0x2e05da){const _0x2c10e2=_0x37a374,_0x613fb2=this[_0x2c10e2(0x254)]()+'/'+_0x2e05da[_0x2c10e2(0x63f)]+'/object/'+_0x2e05da['objectID']+_0x2c10e2(0x5fe);return(await this['_HTTPService'][_0x2c10e2(0x302)](_0x613fb2,{'body':_0x2e05da}))[_0x2c10e2(0x360)]['actions'];}async[_0x37a374(0x5c5)](_0x41eb31){const _0x2303f1=_0x37a374,_0x3c4c10=this[_0x2303f1(0x254)]()+'/-/object/-/batch_allowed';return(await this[_0x2303f1(0x624)]['post'](_0x3c4c10,{'body':{'requests':_0x41eb31}}))[_0x2303f1(0x360)][_0x2303f1(0x4b8)];}async[_0x37a374(0x293)](_0x7a6e0a){const _0x149de4=_0x37a374,_0x4f89cd=this[_0x149de4(0x254)]()+'/'+_0x7a6e0a[_0x149de4(0x63f)]+'/role',_0x357311=await this[_0x149de4(0x624)]['post'](_0x4f89cd,{'body':_0x7a6e0a});return{'roles':_0x357311[_0x149de4(0x360)][_0x149de4(0x5ee)],'actions':_0x357311[_0x149de4(0x360)][_0x149de4(0x3b6)]};}async['deleteCollaborator'](_0x24b7af){const _0x23c3bf=_0x37a374,_0x3230bf=this[_0x23c3bf(0x254)]()+_0x23c3bf(0x460);await this[_0x23c3bf(0x624)][_0x23c3bf(0x412)](_0x3230bf,{'params':{'collaboratorID':_0x24b7af[_0x23c3bf(0x56f)],'objectID':_0x24b7af[_0x23c3bf(0x5f3)],'unitID':_0x24b7af[_0x23c3bf(0x505)]}});}async[_0x37a374(0x62f)](_0x3d5c6c){const _0x2a2ed8=_0x37a374,_0x1c2e57=this[_0x2a2ed8(0x254)]()+'/collaborator';await this['_HTTPService'][_0x2a2ed8(0x2e4)](_0x1c2e57,{'body':_0x3d5c6c});}async['createCollaborator'](_0x2c7cc7){const _0x42612a=_0x37a374,_0x430323=this[_0x42612a(0x254)]()+_0x42612a(0x460);await this[_0x42612a(0x624)][_0x42612a(0x302)](_0x430323,{'body':_0x2c7cc7});}async['listCollaborators'](_0x1f599b){const _0x2ff8f1=_0x37a374,_0x8f4a6a=this[_0x2ff8f1(0x254)]()+_0x2ff8f1(0x460);return(await this[_0x2ff8f1(0x624)][_0x2ff8f1(0x5bf)](_0x8f4a6a,{'params':{'objectID':_0x1f599b[_0x2ff8f1(0x5f3)],'unitID':_0x1f599b['unitID']}}))['body'][_0x2ff8f1(0x504)];}async[_0x37a374(0x4cc)](_0x5d0630){const _0x566065=_0x37a374,_0x5e7b8a=this[_0x566065(0x254)]()+_0x566065(0x460);await this[_0x566065(0x624)][_0x566065(0x661)](_0x5e7b8a,{'body':_0x5d0630});}},exports[_0x37a374(0x361)]=zs([kt(0x0,a['Inject'](Q[_0x37a374(0x34f)])),kt(0x1,a[_0x37a374(0x629)](a[_0x37a374(0x30b)]))],exports[_0x37a374(0x361)]);var J=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function Le(_0x20eaea){const _0x4a534b=_0x37a374;return _0x20eaea&&_0x20eaea['__esModule']&&Object[_0x4a534b(0x420)]['hasOwnProperty'][_0x4a534b(0x1fa)](_0x20eaea,_0x4a534b(0x2ad))?_0x20eaea[_0x4a534b(0x2ad)]:_0x20eaea;}function Js(_0x1f065f){const _0x5165da=_0x37a374;if(_0x1f065f[_0x5165da(0x32f)])return _0x1f065f;var _0x20929f=_0x1f065f[_0x5165da(0x2ad)];if(typeof _0x20929f==_0x5165da(0x556)){var _0x52d138=function _0x2e92eb(){const _0x46626a=_0x5165da;return this instanceof _0x2e92eb?Reflect[_0x46626a(0x284)](_0x20929f,arguments,this[_0x46626a(0x21f)]):_0x20929f[_0x46626a(0x4ae)](this,arguments);};_0x52d138['prototype']=_0x20929f['prototype'];}else _0x52d138={};return Object['defineProperty'](_0x52d138,_0x5165da(0x32f),{'value':!0x0}),Object[_0x5165da(0x67c)](_0x1f065f)[_0x5165da(0x278)](function(_0x321813){const _0x1e68de=_0x5165da;var _0x293708=Object[_0x1e68de(0x4a5)](_0x1f065f,_0x321813);Object[_0x1e68de(0x55e)](_0x52d138,_0x321813,_0x293708[_0x1e68de(0x5bf)]?_0x293708:{'enumerable':!0x0,'get':function(){return _0x1f065f[_0x321813];}});}),_0x52d138;}var bn={'exports':{}};function Zs(_0x33c247){const _0x5800ea=_0x37a374;throw new Error(_0x5800ea(0x528)+_0x33c247+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var at={'exports':{}};const Qs={},er=Object[_0x37a374(0x49c)](Object[_0x37a374(0x55e)]({'__proto__':null,'default':Qs},Symbol[_0x37a374(0x614)],{'value':_0x37a374(0x471)})),tr=Js(er);var Wt;function ae(){const _0x9fed1a=_0x37a374;return Wt||(Wt=0x1,function(_0x1b4381,_0x41e2a8){(function(_0x45495b,_0x1be8ce){const _0xe5d36d=_0x513c;_0x1b4381[_0xe5d36d(0x447)]=_0x1be8ce();}(J,function(){var _0x4d6617=_0x4d6617||function(_0x8ca837,_0x3b2d1b){const _0x2dc9c6=_0x513c;var _0x23bf47;if(typeof window<'u'&&window['crypto']&&(_0x23bf47=window[_0x2dc9c6(0x273)]),typeof self<'u'&&self[_0x2dc9c6(0x273)]&&(_0x23bf47=self[_0x2dc9c6(0x273)]),typeof globalThis<'u'&&globalThis[_0x2dc9c6(0x273)]&&(_0x23bf47=globalThis[_0x2dc9c6(0x273)]),!_0x23bf47&&typeof window<'u'&&window['msCrypto']&&(_0x23bf47=window[_0x2dc9c6(0x4cd)]),!_0x23bf47&&typeof J<'u'&&J[_0x2dc9c6(0x273)]&&(_0x23bf47=J[_0x2dc9c6(0x273)]),!_0x23bf47&&typeof Zs==_0x2dc9c6(0x556))try{_0x23bf47=tr;}catch{}var _0x1d53dc=function(){const _0x48bb85=_0x2dc9c6;if(_0x23bf47){if(typeof _0x23bf47[_0x48bb85(0x2e1)]==_0x48bb85(0x556))try{return _0x23bf47[_0x48bb85(0x2e1)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x23bf47[_0x48bb85(0x289)]==_0x48bb85(0x556))try{return _0x23bf47[_0x48bb85(0x289)](0x4)[_0x48bb85(0x5f5)]();}catch{}}throw new Error(_0x48bb85(0x5be));},_0x1b3646=Object[_0x2dc9c6(0x4e6)]||(function(){function _0x4ad094(){}return function(_0x28921e){const _0x15eda9=_0x513c;var _0x3a9e09;return _0x4ad094[_0x15eda9(0x420)]=_0x28921e,_0x3a9e09=new _0x4ad094(),_0x4ad094[_0x15eda9(0x420)]=null,_0x3a9e09;};}()),_0xb77eec={},_0x397402=_0xb77eec[_0x2dc9c6(0x456)]={},_0x495658=_0x397402[_0x2dc9c6(0x3dd)]=(function(){return{'extend':function(_0xfc0f6b){const _0x5aad44=_0x513c;var _0x2a74d5=_0x1b3646(this);return _0xfc0f6b&&_0x2a74d5[_0x5aad44(0x432)](_0xfc0f6b),(!_0x2a74d5['hasOwnProperty'](_0x5aad44(0x5ca))||this[_0x5aad44(0x5ca)]===_0x2a74d5[_0x5aad44(0x5ca)])&&(_0x2a74d5[_0x5aad44(0x5ca)]=function(){const _0x2925d0=_0x5aad44;_0x2a74d5[_0x2925d0(0x5c7)][_0x2925d0(0x5ca)][_0x2925d0(0x4ae)](this,arguments);}),_0x2a74d5[_0x5aad44(0x5ca)][_0x5aad44(0x420)]=_0x2a74d5,_0x2a74d5[_0x5aad44(0x5c7)]=this,_0x2a74d5;},'create':function(){const _0x29df5a=_0x513c;var _0x49d63f=this[_0x29df5a(0x24a)]();return _0x49d63f[_0x29df5a(0x5ca)]['apply'](_0x49d63f,arguments),_0x49d63f;},'init':function(){},'mixIn':function(_0x59c74e){const _0x4bc4e9=_0x513c;for(var _0x422fa9 in _0x59c74e)_0x59c74e[_0x4bc4e9(0x658)](_0x422fa9)&&(this[_0x422fa9]=_0x59c74e[_0x422fa9]);_0x59c74e[_0x4bc4e9(0x658)]('toString')&&(this['toString']=_0x59c74e[_0x4bc4e9(0x4d2)]);},'clone':function(){const _0x19b454=_0x513c;return this[_0x19b454(0x5ca)]['prototype'][_0x19b454(0x24a)](this);}};}()),_0x2efda0=_0x397402[_0x2dc9c6(0x33f)]=_0x495658[_0x2dc9c6(0x24a)]({'init':function(_0x29c454,_0x43a14e){const _0x252cad=_0x2dc9c6;_0x29c454=this['words']=_0x29c454||[],_0x43a14e!=_0x3b2d1b?this[_0x252cad(0x54c)]=_0x43a14e:this[_0x252cad(0x54c)]=_0x29c454[_0x252cad(0x330)]*0x4;},'toString':function(_0x370c44){const _0x42b47b=_0x2dc9c6;return(_0x370c44||_0xbf5f52)[_0x42b47b(0x3df)](this);},'concat':function(_0x8266b){const _0x3d867e=_0x2dc9c6;var _0x43ece2=this[_0x3d867e(0x589)],_0x3c9e47=_0x8266b['words'],_0xdf4721=this[_0x3d867e(0x54c)],_0x27b640=_0x8266b[_0x3d867e(0x54c)];if(this[_0x3d867e(0x2d0)](),_0xdf4721%0x4)for(var _0x125862=0x0;_0x125862<_0x27b640;_0x125862++){var _0x4590f5=_0x3c9e47[_0x125862>>>0x2]>>>0x18-_0x125862%0x4*0x8&0xff;_0x43ece2[_0xdf4721+_0x125862>>>0x2]|=_0x4590f5<<0x18-(_0xdf4721+_0x125862)%0x4*0x8;}else{for(var _0x57b1e7=0x0;_0x57b1e7<_0x27b640;_0x57b1e7+=0x4)_0x43ece2[_0xdf4721+_0x57b1e7>>>0x2]=_0x3c9e47[_0x57b1e7>>>0x2];}return this[_0x3d867e(0x54c)]+=_0x27b640,this;},'clamp':function(){const _0x44af37=_0x2dc9c6;var _0x595440=this[_0x44af37(0x589)],_0x4b8dbb=this[_0x44af37(0x54c)];_0x595440[_0x4b8dbb>>>0x2]&=0xffffffff<<0x20-_0x4b8dbb%0x4*0x8,_0x595440[_0x44af37(0x330)]=_0x8ca837['ceil'](_0x4b8dbb/0x4);},'clone':function(){const _0x44eace=_0x2dc9c6;var _0x328de1=_0x495658[_0x44eace(0x678)][_0x44eace(0x1fa)](this);return _0x328de1[_0x44eace(0x589)]=this[_0x44eace(0x589)]['slice'](0x0),_0x328de1;},'random':function(_0x503d35){const _0x4342d8=_0x2dc9c6;for(var _0x189d47=[],_0xb099f3=0x0;_0xb099f3<_0x503d35;_0xb099f3+=0x4)_0x189d47[_0x4342d8(0x257)](_0x1d53dc());return new _0x2efda0[(_0x4342d8(0x5ca))](_0x189d47,_0x503d35);}}),_0x9502b9=_0xb77eec[_0x2dc9c6(0x271)]={},_0xbf5f52=_0x9502b9[_0x2dc9c6(0x36c)]={'stringify':function(_0x35ae2f){const _0xa7523d=_0x2dc9c6;for(var _0x43f432=_0x35ae2f[_0xa7523d(0x589)],_0x265320=_0x35ae2f[_0xa7523d(0x54c)],_0x41208a=[],_0x462c22=0x0;_0x462c22<_0x265320;_0x462c22++){var _0x30b61a=_0x43f432[_0x462c22>>>0x2]>>>0x18-_0x462c22%0x4*0x8&0xff;_0x41208a[_0xa7523d(0x257)]((_0x30b61a>>>0x4)['toString'](0x10)),_0x41208a[_0xa7523d(0x257)]((_0x30b61a&0xf)[_0xa7523d(0x4d2)](0x10));}return _0x41208a['join']('');},'parse':function(_0x5123b4){const _0x3e7bb6=_0x2dc9c6;for(var _0x59f039=_0x5123b4[_0x3e7bb6(0x330)],_0xe05b51=[],_0x2e51f1=0x0;_0x2e51f1<_0x59f039;_0x2e51f1+=0x2)_0xe05b51[_0x2e51f1>>>0x3]|=parseInt(_0x5123b4[_0x3e7bb6(0x283)](_0x2e51f1,0x2),0x10)<<0x18-_0x2e51f1%0x8*0x4;return new _0x2efda0['init'](_0xe05b51,_0x59f039/0x2);}},_0xf1d393=_0x9502b9['Latin1']={'stringify':function(_0x53c48c){const _0x296432=_0x2dc9c6;for(var _0xecabd8=_0x53c48c[_0x296432(0x589)],_0x450238=_0x53c48c['sigBytes'],_0x82d073=[],_0x1ad456=0x0;_0x1ad456<_0x450238;_0x1ad456++){var _0x160cbf=_0xecabd8[_0x1ad456>>>0x2]>>>0x18-_0x1ad456%0x4*0x8&0xff;_0x82d073[_0x296432(0x257)](String['fromCharCode'](_0x160cbf));}return _0x82d073['join']('');},'parse':function(_0x3b3f39){const _0x13a2c9=_0x2dc9c6;for(var _0x4a8a4e=_0x3b3f39[_0x13a2c9(0x330)],_0x346819=[],_0x2d592e=0x0;_0x2d592e<_0x4a8a4e;_0x2d592e++)_0x346819[_0x2d592e>>>0x2]|=(_0x3b3f39[_0x13a2c9(0x5a7)](_0x2d592e)&0xff)<<0x18-_0x2d592e%0x4*0x8;return new _0x2efda0[(_0x13a2c9(0x5ca))](_0x346819,_0x4a8a4e);}},_0x5a6ae1=_0x9502b9[_0x2dc9c6(0x4d1)]={'stringify':function(_0x474eb2){const _0x4d9d92=_0x2dc9c6;try{return decodeURIComponent(escape(_0xf1d393[_0x4d9d92(0x3df)](_0x474eb2)));}catch{throw new Error(_0x4d9d92(0x596));}},'parse':function(_0x1e4dcc){const _0x5aa571=_0x2dc9c6;return _0xf1d393[_0x5aa571(0x558)](unescape(encodeURIComponent(_0x1e4dcc)));}},_0x457f95=_0x397402[_0x2dc9c6(0x263)]=_0x495658[_0x2dc9c6(0x24a)]({'reset':function(){const _0x5e7075=_0x2dc9c6;this['_data']=new _0x2efda0[(_0x5e7075(0x5ca))](),this[_0x5e7075(0x21b)]=0x0;},'_append':function(_0x30393c){const _0x1390b6=_0x2dc9c6;typeof _0x30393c==_0x1390b6(0x3de)&&(_0x30393c=_0x5a6ae1[_0x1390b6(0x558)](_0x30393c)),this[_0x1390b6(0x2c9)]['concat'](_0x30393c),this[_0x1390b6(0x21b)]+=_0x30393c[_0x1390b6(0x54c)];},'_process':function(_0x1cbc19){const _0x1486ff=_0x2dc9c6;var _0x5c903f,_0x26369d=this['_data'],_0x270b53=_0x26369d[_0x1486ff(0x589)],_0x33c238=_0x26369d[_0x1486ff(0x54c)],_0x552a6e=this['blockSize'],_0x122130=_0x552a6e*0x4,_0x590892=_0x33c238/_0x122130;_0x1cbc19?_0x590892=_0x8ca837[_0x1486ff(0x637)](_0x590892):_0x590892=_0x8ca837['max']((_0x590892|0x0)-this[_0x1486ff(0x66c)],0x0);var _0x4f3907=_0x590892*_0x552a6e,_0x471188=_0x8ca837[_0x1486ff(0x242)](_0x4f3907*0x4,_0x33c238);if(_0x4f3907){for(var _0x4ec467=0x0;_0x4ec467<_0x4f3907;_0x4ec467+=_0x552a6e)this['_doProcessBlock'](_0x270b53,_0x4ec467);_0x5c903f=_0x270b53[_0x1486ff(0x225)](0x0,_0x4f3907),_0x26369d[_0x1486ff(0x54c)]-=_0x471188;}return new _0x2efda0[(_0x1486ff(0x5ca))](_0x5c903f,_0x471188);},'clone':function(){const _0x424dbf=_0x2dc9c6;var _0x2268f8=_0x495658[_0x424dbf(0x678)][_0x424dbf(0x1fa)](this);return _0x2268f8[_0x424dbf(0x2c9)]=this[_0x424dbf(0x2c9)][_0x424dbf(0x678)](),_0x2268f8;},'_minBufferSize':0x0});_0x397402[_0x2dc9c6(0x342)]=_0x457f95['extend']({'cfg':_0x495658[_0x2dc9c6(0x24a)](),'init':function(_0x3dd976){const _0x4edc40=_0x2dc9c6;this['cfg']=this[_0x4edc40(0x553)][_0x4edc40(0x24a)](_0x3dd976),this[_0x4edc40(0x63c)]();},'reset':function(){const _0x3080d8=_0x2dc9c6;_0x457f95[_0x3080d8(0x63c)][_0x3080d8(0x1fa)](this),this[_0x3080d8(0x51f)]();},'update':function(_0x171bda){return this['_append'](_0x171bda),this['_process'](),this;},'finalize':function(_0x20eefd){const _0x5ee344=_0x2dc9c6;_0x20eefd&&this[_0x5ee344(0x298)](_0x20eefd);var _0x13a9ef=this['_doFinalize']();return _0x13a9ef;},'blockSize':0x10,'_createHelper':function(_0x134c6e){return function(_0x564357,_0x5725dd){const _0x259bc4=_0x513c;return new _0x134c6e[(_0x259bc4(0x5ca))](_0x5725dd)[_0x259bc4(0x58d)](_0x564357);};},'_createHmacHelper':function(_0x5d3b14){return function(_0x1ee13e,_0x3c5ada){const _0x58e52b=_0x513c;return new _0x2f22d0[(_0x58e52b(0x22f))][(_0x58e52b(0x5ca))](_0x5d3b14,_0x3c5ada)[_0x58e52b(0x58d)](_0x1ee13e);};}});var _0x2f22d0=_0xb77eec['algo']={};return _0xb77eec;}(Math);return _0x4d6617;}));}(at)),at[_0x9fed1a(0x447)];}var ct={'exports':{}},Ft;function Tn(){const _0x17bcf0=_0x37a374;return Ft||(Ft=0x1,function(_0xb5c0af,_0x2b5d5c){(function(_0x190aa7,_0x525ed3){const _0x5de757=_0x513c;_0xb5c0af[_0x5de757(0x447)]=_0x525ed3(ae());}(J,function(_0x2fe981){return(function(){const _0x2198f3=_0x513c;var _0x20c239=_0x2fe981,_0x10bc3d=_0x20c239[_0x2198f3(0x456)],_0x1a36b8=_0x10bc3d[_0x2198f3(0x33f)],_0x3275e7=_0x20c239[_0x2198f3(0x271)];_0x3275e7[_0x2198f3(0x64e)]={'stringify':function(_0x3f01de){const _0x5c0b6b=_0x2198f3;var _0x2c2db0=_0x3f01de[_0x5c0b6b(0x589)],_0x5a2906=_0x3f01de[_0x5c0b6b(0x54c)],_0x511aaf=this[_0x5c0b6b(0x5fa)];_0x3f01de['clamp']();for(var _0x433356=[],_0x2ba51e=0x0;_0x2ba51e<_0x5a2906;_0x2ba51e+=0x3)for(var _0xc5e64=_0x2c2db0[_0x2ba51e>>>0x2]>>>0x18-_0x2ba51e%0x4*0x8&0xff,_0x1f12a0=_0x2c2db0[_0x2ba51e+0x1>>>0x2]>>>0x18-(_0x2ba51e+0x1)%0x4*0x8&0xff,_0x2df912=_0x2c2db0[_0x2ba51e+0x2>>>0x2]>>>0x18-(_0x2ba51e+0x2)%0x4*0x8&0xff,_0x48e43b=_0xc5e64<<0x10|_0x1f12a0<<0x8|_0x2df912,_0x38e818=0x0;_0x38e818<0x4&&_0x2ba51e+_0x38e818*0.75<_0x5a2906;_0x38e818++)_0x433356['push'](_0x511aaf['charAt'](_0x48e43b>>>0x6*(0x3-_0x38e818)&0x3f));var _0x32478b=_0x511aaf[_0x5c0b6b(0x1c3)](0x40);if(_0x32478b){for(;_0x433356[_0x5c0b6b(0x330)]%0x4;)_0x433356[_0x5c0b6b(0x257)](_0x32478b);}return _0x433356['join']('');},'parse':function(_0x4209d9){const _0x5557a1=_0x2198f3;var _0x3d4983=_0x4209d9[_0x5557a1(0x330)],_0x2fbf90=this[_0x5557a1(0x5fa)],_0x389b82=this['_reverseMap'];if(!_0x389b82){_0x389b82=this['_reverseMap']=[];for(var _0x2365a9=0x0;_0x2365a9<_0x2fbf90[_0x5557a1(0x330)];_0x2365a9++)_0x389b82[_0x2fbf90[_0x5557a1(0x5a7)](_0x2365a9)]=_0x2365a9;}var _0x119db6=_0x2fbf90[_0x5557a1(0x1c3)](0x40);if(_0x119db6){var _0x5aac99=_0x4209d9[_0x5557a1(0x23a)](_0x119db6);_0x5aac99!==-0x1&&(_0x3d4983=_0x5aac99);}return _0x4a4f2b(_0x4209d9,_0x3d4983,_0x389b82);},'_map':_0x2198f3(0x56e)};function _0x4a4f2b(_0x1a69d9,_0x1ed6f6,_0x327f60){const _0x5f228f=_0x2198f3;for(var _0x257bd3=[],_0x49a22c=0x0,_0x4b6d2f=0x0;_0x4b6d2f<_0x1ed6f6;_0x4b6d2f++)if(_0x4b6d2f%0x4){var _0x2020f0=_0x327f60[_0x1a69d9[_0x5f228f(0x5a7)](_0x4b6d2f-0x1)]<<_0x4b6d2f%0x4*0x2,_0x1ccf47=_0x327f60[_0x1a69d9[_0x5f228f(0x5a7)](_0x4b6d2f)]>>>0x6-_0x4b6d2f%0x4*0x2,_0x195116=_0x2020f0|_0x1ccf47;_0x257bd3[_0x49a22c>>>0x2]|=_0x195116<<0x18-_0x49a22c%0x4*0x8,_0x49a22c++;}return _0x1a36b8[_0x5f228f(0x4e6)](_0x257bd3,_0x49a22c);}}()),_0x2fe981['enc']['Base64'];}));}(ct)),ct[_0x17bcf0(0x447)];}var lt={'exports':{}},Vt;function nr(){const _0x3b0250=_0x37a374;return Vt||(Vt=0x1,function(_0x22c689,_0x17fb0a){(function(_0xb3ce88,_0x1f87e0){const _0x4471d0=_0x513c;_0x22c689[_0x4471d0(0x447)]=_0x1f87e0(ae());}(J,function(_0x1119b3){const _0x1485fc=_0x513c;return function(_0x2d9965){const _0x1de7ee=_0x513c;var _0x1f023f=_0x1119b3,_0x4dc8be=_0x1f023f[_0x1de7ee(0x456)],_0x29f211=_0x4dc8be[_0x1de7ee(0x33f)],_0x2f3c38=_0x4dc8be[_0x1de7ee(0x342)],_0x3d1151=_0x1f023f[_0x1de7ee(0x3da)],_0x3f0c52=[];(function(){const _0x30fb05=_0x1de7ee;for(var _0x34db91=0x0;_0x34db91<0x40;_0x34db91++)_0x3f0c52[_0x34db91]=_0x2d9965[_0x30fb05(0x492)](_0x2d9965[_0x30fb05(0x549)](_0x34db91+0x1))*0x100000000|0x0;}());var _0x3d2b6d=_0x3d1151[_0x1de7ee(0x375)]=_0x2f3c38[_0x1de7ee(0x24a)]({'_doReset':function(){const _0x48eeaa=_0x1de7ee;this[_0x48eeaa(0x46b)]=new _0x29f211['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x38c1e6,_0x27c9b3){const _0x27146b=_0x1de7ee;for(var _0x3efa7c=0x0;_0x3efa7c<0x10;_0x3efa7c++){var _0x35fe20=_0x27c9b3+_0x3efa7c,_0x5546dc=_0x38c1e6[_0x35fe20];_0x38c1e6[_0x35fe20]=(_0x5546dc<<0x8|_0x5546dc>>>0x18)&0xff00ff|(_0x5546dc<<0x18|_0x5546dc>>>0x8)&0xff00ff00;}var _0x59d8b9=this[_0x27146b(0x46b)]['words'],_0xa1130a=_0x38c1e6[_0x27c9b3+0x0],_0x47de8b=_0x38c1e6[_0x27c9b3+0x1],_0x40797f=_0x38c1e6[_0x27c9b3+0x2],_0x4b76ae=_0x38c1e6[_0x27c9b3+0x3],_0x50fccd=_0x38c1e6[_0x27c9b3+0x4],_0x28714b=_0x38c1e6[_0x27c9b3+0x5],_0x210097=_0x38c1e6[_0x27c9b3+0x6],_0x15ce68=_0x38c1e6[_0x27c9b3+0x7],_0x143b1f=_0x38c1e6[_0x27c9b3+0x8],_0x38c9a1=_0x38c1e6[_0x27c9b3+0x9],_0x32a5ee=_0x38c1e6[_0x27c9b3+0xa],_0x298cda=_0x38c1e6[_0x27c9b3+0xb],_0x55017c=_0x38c1e6[_0x27c9b3+0xc],_0x3bab9a=_0x38c1e6[_0x27c9b3+0xd],_0x272105=_0x38c1e6[_0x27c9b3+0xe],_0x318c63=_0x38c1e6[_0x27c9b3+0xf],_0x56ccde=_0x59d8b9[0x0],_0x416aec=_0x59d8b9[0x1],_0x330ad2=_0x59d8b9[0x2],_0x431f59=_0x59d8b9[0x3];_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0xa1130a,0x7,_0x3f0c52[0x0]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x47de8b,0xc,_0x3f0c52[0x1]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x40797f,0x11,_0x3f0c52[0x2]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x4b76ae,0x16,_0x3f0c52[0x3]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x50fccd,0x7,_0x3f0c52[0x4]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x28714b,0xc,_0x3f0c52[0x5]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x210097,0x11,_0x3f0c52[0x6]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x15ce68,0x16,_0x3f0c52[0x7]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x143b1f,0x7,_0x3f0c52[0x8]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x38c9a1,0xc,_0x3f0c52[0x9]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x32a5ee,0x11,_0x3f0c52[0xa]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x298cda,0x16,_0x3f0c52[0xb]),_0x56ccde=_0x431968(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x55017c,0x7,_0x3f0c52[0xc]),_0x431f59=_0x431968(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x3bab9a,0xc,_0x3f0c52[0xd]),_0x330ad2=_0x431968(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x272105,0x11,_0x3f0c52[0xe]),_0x416aec=_0x431968(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x318c63,0x16,_0x3f0c52[0xf]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x47de8b,0x5,_0x3f0c52[0x10]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x210097,0x9,_0x3f0c52[0x11]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x298cda,0xe,_0x3f0c52[0x12]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0xa1130a,0x14,_0x3f0c52[0x13]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x28714b,0x5,_0x3f0c52[0x14]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x32a5ee,0x9,_0x3f0c52[0x15]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x318c63,0xe,_0x3f0c52[0x16]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x50fccd,0x14,_0x3f0c52[0x17]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x38c9a1,0x5,_0x3f0c52[0x18]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x272105,0x9,_0x3f0c52[0x19]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x4b76ae,0xe,_0x3f0c52[0x1a]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x143b1f,0x14,_0x3f0c52[0x1b]),_0x56ccde=_0x130fa5(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x3bab9a,0x5,_0x3f0c52[0x1c]),_0x431f59=_0x130fa5(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x40797f,0x9,_0x3f0c52[0x1d]),_0x330ad2=_0x130fa5(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x15ce68,0xe,_0x3f0c52[0x1e]),_0x416aec=_0x130fa5(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x55017c,0x14,_0x3f0c52[0x1f]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x28714b,0x4,_0x3f0c52[0x20]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x143b1f,0xb,_0x3f0c52[0x21]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x298cda,0x10,_0x3f0c52[0x22]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x272105,0x17,_0x3f0c52[0x23]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x47de8b,0x4,_0x3f0c52[0x24]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x50fccd,0xb,_0x3f0c52[0x25]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x15ce68,0x10,_0x3f0c52[0x26]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x32a5ee,0x17,_0x3f0c52[0x27]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x3bab9a,0x4,_0x3f0c52[0x28]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0xa1130a,0xb,_0x3f0c52[0x29]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x4b76ae,0x10,_0x3f0c52[0x2a]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x210097,0x17,_0x3f0c52[0x2b]),_0x56ccde=_0x870908(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x38c9a1,0x4,_0x3f0c52[0x2c]),_0x431f59=_0x870908(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x55017c,0xb,_0x3f0c52[0x2d]),_0x330ad2=_0x870908(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x318c63,0x10,_0x3f0c52[0x2e]),_0x416aec=_0x870908(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x40797f,0x17,_0x3f0c52[0x2f]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0xa1130a,0x6,_0x3f0c52[0x30]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x15ce68,0xa,_0x3f0c52[0x31]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x272105,0xf,_0x3f0c52[0x32]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x28714b,0x15,_0x3f0c52[0x33]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x55017c,0x6,_0x3f0c52[0x34]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x4b76ae,0xa,_0x3f0c52[0x35]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x32a5ee,0xf,_0x3f0c52[0x36]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x47de8b,0x15,_0x3f0c52[0x37]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x143b1f,0x6,_0x3f0c52[0x38]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x318c63,0xa,_0x3f0c52[0x39]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x210097,0xf,_0x3f0c52[0x3a]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x3bab9a,0x15,_0x3f0c52[0x3b]),_0x56ccde=_0x534fb0(_0x56ccde,_0x416aec,_0x330ad2,_0x431f59,_0x50fccd,0x6,_0x3f0c52[0x3c]),_0x431f59=_0x534fb0(_0x431f59,_0x56ccde,_0x416aec,_0x330ad2,_0x298cda,0xa,_0x3f0c52[0x3d]),_0x330ad2=_0x534fb0(_0x330ad2,_0x431f59,_0x56ccde,_0x416aec,_0x40797f,0xf,_0x3f0c52[0x3e]),_0x416aec=_0x534fb0(_0x416aec,_0x330ad2,_0x431f59,_0x56ccde,_0x38c9a1,0x15,_0x3f0c52[0x3f]),_0x59d8b9[0x0]=_0x59d8b9[0x0]+_0x56ccde|0x0,_0x59d8b9[0x1]=_0x59d8b9[0x1]+_0x416aec|0x0,_0x59d8b9[0x2]=_0x59d8b9[0x2]+_0x330ad2|0x0,_0x59d8b9[0x3]=_0x59d8b9[0x3]+_0x431f59|0x0;},'_doFinalize':function(){const _0x340dba=_0x1de7ee;var _0x562c47=this[_0x340dba(0x2c9)],_0x1af9ab=_0x562c47[_0x340dba(0x589)],_0xbb34f=this[_0x340dba(0x21b)]*0x8,_0x549457=_0x562c47['sigBytes']*0x8;_0x1af9ab[_0x549457>>>0x5]|=0x80<<0x18-_0x549457%0x20;var _0x28be13=_0x2d9965[_0x340dba(0x640)](_0xbb34f/0x100000000),_0x1d04f0=_0xbb34f;_0x1af9ab[(_0x549457+0x40>>>0x9<<0x4)+0xf]=(_0x28be13<<0x8|_0x28be13>>>0x18)&0xff00ff|(_0x28be13<<0x18|_0x28be13>>>0x8)&0xff00ff00,_0x1af9ab[(_0x549457+0x40>>>0x9<<0x4)+0xe]=(_0x1d04f0<<0x8|_0x1d04f0>>>0x18)&0xff00ff|(_0x1d04f0<<0x18|_0x1d04f0>>>0x8)&0xff00ff00,_0x562c47[_0x340dba(0x54c)]=(_0x1af9ab[_0x340dba(0x330)]+0x1)*0x4,this[_0x340dba(0x3a9)]();for(var _0x35324c=this[_0x340dba(0x46b)],_0x5338d4=_0x35324c[_0x340dba(0x589)],_0x20a2f9=0x0;_0x20a2f9<0x4;_0x20a2f9++){var _0x588332=_0x5338d4[_0x20a2f9];_0x5338d4[_0x20a2f9]=(_0x588332<<0x8|_0x588332>>>0x18)&0xff00ff|(_0x588332<<0x18|_0x588332>>>0x8)&0xff00ff00;}return _0x35324c;},'clone':function(){const _0x1764a9=_0x1de7ee;var _0x32eeeb=_0x2f3c38['clone']['call'](this);return _0x32eeeb[_0x1764a9(0x46b)]=this['_hash']['clone'](),_0x32eeeb;}});function _0x431968(_0x54c7fc,_0x132da7,_0xc54da1,_0x146138,_0x34d41c,_0x2ae676,_0x406fcd){var _0x38133c=_0x54c7fc+(_0x132da7&_0xc54da1|~_0x132da7&_0x146138)+_0x34d41c+_0x406fcd;return(_0x38133c<<_0x2ae676|_0x38133c>>>0x20-_0x2ae676)+_0x132da7;}function _0x130fa5(_0x11e304,_0x19e318,_0x45e600,_0x5ad336,_0xa415a8,_0x3ed9c2,_0x8dbc25){var _0x1ddad0=_0x11e304+(_0x19e318&_0x5ad336|_0x45e600&~_0x5ad336)+_0xa415a8+_0x8dbc25;return(_0x1ddad0<<_0x3ed9c2|_0x1ddad0>>>0x20-_0x3ed9c2)+_0x19e318;}function _0x870908(_0xdcba55,_0x7cd290,_0x5bff34,_0x1cbd55,_0x1a2904,_0x37b127,_0x183483){var _0x159cfb=_0xdcba55+(_0x7cd290^_0x5bff34^_0x1cbd55)+_0x1a2904+_0x183483;return(_0x159cfb<<_0x37b127|_0x159cfb>>>0x20-_0x37b127)+_0x7cd290;}function _0x534fb0(_0x5853c0,_0x3b6cc9,_0x86a714,_0x5beecf,_0x2e40d0,_0x15cdd7,_0x2d25ba){var _0x1ff6ec=_0x5853c0+(_0x86a714^(_0x3b6cc9|~_0x5beecf))+_0x2e40d0+_0x2d25ba;return(_0x1ff6ec<<_0x15cdd7|_0x1ff6ec>>>0x20-_0x15cdd7)+_0x3b6cc9;}_0x1f023f[_0x1de7ee(0x375)]=_0x2f3c38[_0x1de7ee(0x4ba)](_0x3d2b6d),_0x1f023f[_0x1de7ee(0x2b0)]=_0x2f3c38[_0x1de7ee(0x4b0)](_0x3d2b6d);}(Math),_0x1119b3[_0x1485fc(0x375)];}));}(lt)),lt[_0x3b0250(0x447)];}var ht={'exports':{}},_t={'exports':{}},Gt;function ir(){const _0x5110bf=_0x37a374;return Gt||(Gt=0x1,function(_0x4b0e2f,_0x264dea){(function(_0x36c5d1,_0x1ab3e4){const _0x3bdd47=_0x513c;_0x4b0e2f[_0x3bdd47(0x447)]=_0x1ab3e4(ae());}(J,function(_0x20c748){const _0x3abd4a=_0x513c;return(function(){const _0x285157=_0x513c;var _0x436547=_0x20c748,_0x5199fc=_0x436547[_0x285157(0x456)],_0x571bfd=_0x5199fc[_0x285157(0x33f)],_0x5340f9=_0x5199fc[_0x285157(0x342)],_0x3a51b0=_0x436547[_0x285157(0x3da)],_0x2ae387=[],_0x342e76=_0x3a51b0[_0x285157(0x369)]=_0x5340f9[_0x285157(0x24a)]({'_doReset':function(){const _0x3696ca=_0x285157;this[_0x3696ca(0x46b)]=new _0x571bfd[(_0x3696ca(0x5ca))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x18498f,_0x39f8e9){const _0x5b6c22=_0x285157;for(var _0x191f23=this[_0x5b6c22(0x46b)][_0x5b6c22(0x589)],_0x35722a=_0x191f23[0x0],_0x1b5576=_0x191f23[0x1],_0x5ddba1=_0x191f23[0x2],_0x429bcd=_0x191f23[0x3],_0x59c561=_0x191f23[0x4],_0x44ad=0x0;_0x44ad<0x50;_0x44ad++){if(_0x44ad<0x10)_0x2ae387[_0x44ad]=_0x18498f[_0x39f8e9+_0x44ad]|0x0;else{var _0x250b53=_0x2ae387[_0x44ad-0x3]^_0x2ae387[_0x44ad-0x8]^_0x2ae387[_0x44ad-0xe]^_0x2ae387[_0x44ad-0x10];_0x2ae387[_0x44ad]=_0x250b53<<0x1|_0x250b53>>>0x1f;}var _0xa69803=(_0x35722a<<0x5|_0x35722a>>>0x1b)+_0x59c561+_0x2ae387[_0x44ad];_0x44ad<0x14?_0xa69803+=(_0x1b5576&_0x5ddba1|~_0x1b5576&_0x429bcd)+0x5a827999:_0x44ad<0x28?_0xa69803+=(_0x1b5576^_0x5ddba1^_0x429bcd)+0x6ed9eba1:_0x44ad<0x3c?_0xa69803+=(_0x1b5576&_0x5ddba1|_0x1b5576&_0x429bcd|_0x5ddba1&_0x429bcd)-0x70e44324:_0xa69803+=(_0x1b5576^_0x5ddba1^_0x429bcd)-0x359d3e2a,_0x59c561=_0x429bcd,_0x429bcd=_0x5ddba1,_0x5ddba1=_0x1b5576<<0x1e|_0x1b5576>>>0x2,_0x1b5576=_0x35722a,_0x35722a=_0xa69803;}_0x191f23[0x0]=_0x191f23[0x0]+_0x35722a|0x0,_0x191f23[0x1]=_0x191f23[0x1]+_0x1b5576|0x0,_0x191f23[0x2]=_0x191f23[0x2]+_0x5ddba1|0x0,_0x191f23[0x3]=_0x191f23[0x3]+_0x429bcd|0x0,_0x191f23[0x4]=_0x191f23[0x4]+_0x59c561|0x0;},'_doFinalize':function(){const _0xa8eda=_0x285157;var _0x31e1bd=this[_0xa8eda(0x2c9)],_0x2beeec=_0x31e1bd['words'],_0x4833cf=this[_0xa8eda(0x21b)]*0x8,_0xda4d1=_0x31e1bd[_0xa8eda(0x54c)]*0x8;return _0x2beeec[_0xda4d1>>>0x5]|=0x80<<0x18-_0xda4d1%0x20,_0x2beeec[(_0xda4d1+0x40>>>0x9<<0x4)+0xe]=Math[_0xa8eda(0x640)](_0x4833cf/0x100000000),_0x2beeec[(_0xda4d1+0x40>>>0x9<<0x4)+0xf]=_0x4833cf,_0x31e1bd['sigBytes']=_0x2beeec[_0xa8eda(0x330)]*0x4,this[_0xa8eda(0x3a9)](),this[_0xa8eda(0x46b)];},'clone':function(){const _0x29c81c=_0x285157;var _0x3e8bd4=_0x5340f9['clone'][_0x29c81c(0x1fa)](this);return _0x3e8bd4['_hash']=this[_0x29c81c(0x46b)][_0x29c81c(0x678)](),_0x3e8bd4;}});_0x436547[_0x285157(0x369)]=_0x5340f9[_0x285157(0x4ba)](_0x342e76),_0x436547[_0x285157(0x4ad)]=_0x5340f9[_0x285157(0x4b0)](_0x342e76);}()),_0x20c748[_0x3abd4a(0x369)];}));}(_t)),_t[_0x5110bf(0x447)];}var ut={'exports':{}},Yt;function sr(){const _0x5b9acc=_0x37a374;return Yt||(Yt=0x1,function(_0xc84671,_0x41f96e){(function(_0x49eebd,_0x12d62c){const _0x581b7f=_0x513c;_0xc84671[_0x581b7f(0x447)]=_0x12d62c(ae());}(J,function(_0x16f736){(function(){const _0x355c9a=_0x513c;var _0xb3b438=_0x16f736,_0x1bd92f=_0xb3b438[_0x355c9a(0x456)],_0x176922=_0x1bd92f[_0x355c9a(0x3dd)],_0x55169c=_0xb3b438[_0x355c9a(0x271)],_0xb12f7=_0x55169c[_0x355c9a(0x4d1)],_0x55ef4b=_0xb3b438[_0x355c9a(0x3da)];_0x55ef4b[_0x355c9a(0x22f)]=_0x176922['extend']({'init':function(_0x35547d,_0x3447a3){const _0x36f8db=_0x355c9a;_0x35547d=this['_hasher']=new _0x35547d[(_0x36f8db(0x5ca))](),typeof _0x3447a3=='string'&&(_0x3447a3=_0xb12f7['parse'](_0x3447a3));var _0x147fc3=_0x35547d['blockSize'],_0x5bd966=_0x147fc3*0x4;_0x3447a3[_0x36f8db(0x54c)]>_0x5bd966&&(_0x3447a3=_0x35547d['finalize'](_0x3447a3)),_0x3447a3[_0x36f8db(0x2d0)]();for(var _0x1a02ca=this['_oKey']=_0x3447a3['clone'](),_0x7479cc=this[_0x36f8db(0x542)]=_0x3447a3[_0x36f8db(0x678)](),_0x333095=_0x1a02ca['words'],_0x4d9dc4=_0x7479cc['words'],_0x58edad=0x0;_0x58edad<_0x147fc3;_0x58edad++)_0x333095[_0x58edad]^=0x5c5c5c5c,_0x4d9dc4[_0x58edad]^=0x36363636;_0x1a02ca['sigBytes']=_0x7479cc[_0x36f8db(0x54c)]=_0x5bd966,this[_0x36f8db(0x63c)]();},'reset':function(){const _0x237dae=_0x355c9a;var _0x708199=this[_0x237dae(0x35e)];_0x708199['reset'](),_0x708199[_0x237dae(0x60b)](this[_0x237dae(0x542)]);},'update':function(_0xfe9d32){const _0xf816de=_0x355c9a;return this[_0xf816de(0x35e)][_0xf816de(0x60b)](_0xfe9d32),this;},'finalize':function(_0x37b385){const _0x56bd79=_0x355c9a;var _0x47258f=this['_hasher'],_0x316bbd=_0x47258f[_0x56bd79(0x58d)](_0x37b385);_0x47258f[_0x56bd79(0x63c)]();var _0x1a119d=_0x47258f[_0x56bd79(0x58d)](this['_oKey'][_0x56bd79(0x678)]()[_0x56bd79(0x315)](_0x316bbd));return _0x1a119d;}});}());}));}(ut)),ut[_0x5b9acc(0x447)];}var Kt;function Rn(){const _0x49a6c1=_0x37a374;return Kt||(Kt=0x1,function(_0x243a35,_0xd3c859){(function(_0x3d07d6,_0x361d26,_0x1d7499){const _0x117352=_0x513c;_0x243a35[_0x117352(0x447)]=_0x361d26(ae(),ir(),sr());}(J,function(_0x252b0d){const _0xe6b0c9=_0x513c;return(function(){const _0x23807b=_0x513c;var _0x2407ac=_0x252b0d,_0x2f644d=_0x2407ac[_0x23807b(0x456)],_0x43fc83=_0x2f644d['Base'],_0x5b2e06=_0x2f644d[_0x23807b(0x33f)],_0x4174dc=_0x2407ac['algo'],_0x178fc2=_0x4174dc[_0x23807b(0x375)],_0x2d2798=_0x4174dc[_0x23807b(0x4c8)]=_0x43fc83[_0x23807b(0x24a)]({'cfg':_0x43fc83[_0x23807b(0x24a)]({'keySize':0x80/0x20,'hasher':_0x178fc2,'iterations':0x1}),'init':function(_0x396579){const _0x30157c=_0x23807b;this[_0x30157c(0x553)]=this[_0x30157c(0x553)][_0x30157c(0x24a)](_0x396579);},'compute':function(_0x32aef5,_0x5da290){const _0x504072=_0x23807b;for(var _0x55ee84,_0x4ce7ac=this[_0x504072(0x553)],_0x4c06b=_0x4ce7ac[_0x504072(0x57e)]['create'](),_0x3c781d=_0x5b2e06[_0x504072(0x4e6)](),_0xd504ef=_0x3c781d['words'],_0x2b8049=_0x4ce7ac['keySize'],_0x286914=_0x4ce7ac[_0x504072(0x33c)];_0xd504ef['length']<_0x2b8049;){_0x55ee84&&_0x4c06b[_0x504072(0x60b)](_0x55ee84),_0x55ee84=_0x4c06b[_0x504072(0x60b)](_0x32aef5)[_0x504072(0x58d)](_0x5da290),_0x4c06b[_0x504072(0x63c)]();for(var _0x4cc907=0x1;_0x4cc907<_0x286914;_0x4cc907++)_0x55ee84=_0x4c06b[_0x504072(0x58d)](_0x55ee84),_0x4c06b[_0x504072(0x63c)]();_0x3c781d[_0x504072(0x315)](_0x55ee84);}return _0x3c781d[_0x504072(0x54c)]=_0x2b8049*0x4,_0x3c781d;}});_0x2407ac['EvpKDF']=function(_0x322828,_0x258b7c,_0x3abd89){const _0x52d795=_0x23807b;return _0x2d2798[_0x52d795(0x4e6)](_0x3abd89)[_0x52d795(0x38b)](_0x322828,_0x258b7c);};}()),_0x252b0d[_0xe6b0c9(0x4c8)];}));}(ht)),ht[_0x49a6c1(0x447)];}var dt={'exports':{}},qt;function yn(){const _0x518294=_0x37a374;return qt||(qt=0x1,function(_0x4e0def,_0x30de47){(function(_0x2b3795,_0x3cbd10,_0x37d033){_0x4e0def['exports']=_0x3cbd10(ae(),Rn());}(J,function(_0x4c4de2){const _0x43e8cc=_0x513c;_0x4c4de2['lib'][_0x43e8cc(0x566)]||function(_0x281a46){const _0x4bbf35=_0x43e8cc;var _0xcda6e6=_0x4c4de2,_0x385970=_0xcda6e6[_0x4bbf35(0x456)],_0x14f469=_0x385970[_0x4bbf35(0x3dd)],_0x1d7172=_0x385970[_0x4bbf35(0x33f)],_0x5c8a5c=_0x385970[_0x4bbf35(0x263)],_0x5606a4=_0xcda6e6['enc'];_0x5606a4[_0x4bbf35(0x4d1)];var _0x42e1f5=_0x5606a4[_0x4bbf35(0x64e)],_0x3fa37f=_0xcda6e6['algo'],_0x407876=_0x3fa37f[_0x4bbf35(0x4c8)],_0xb28773=_0x385970['Cipher']=_0x5c8a5c[_0x4bbf35(0x24a)]({'cfg':_0x14f469[_0x4bbf35(0x24a)](),'createEncryptor':function(_0x3379fe,_0x166a3c){const _0x4b1aea=_0x4bbf35;return this['create'](this[_0x4b1aea(0x4eb)],_0x3379fe,_0x166a3c);},'createDecryptor':function(_0x30c175,_0x66f689){const _0x319a78=_0x4bbf35;return this[_0x319a78(0x4e6)](this[_0x319a78(0x2d1)],_0x30c175,_0x66f689);},'init':function(_0x215f21,_0x332ef3,_0x3ba59a){const _0x2f946d=_0x4bbf35;this[_0x2f946d(0x553)]=this[_0x2f946d(0x553)][_0x2f946d(0x24a)](_0x3ba59a),this['_xformMode']=_0x215f21,this[_0x2f946d(0x4e5)]=_0x332ef3,this[_0x2f946d(0x63c)]();},'reset':function(){const _0x309c8d=_0x4bbf35;_0x5c8a5c[_0x309c8d(0x63c)][_0x309c8d(0x1fa)](this),this[_0x309c8d(0x51f)]();},'process':function(_0x300838){const _0x949b1e=_0x4bbf35;return this[_0x949b1e(0x298)](_0x300838),this[_0x949b1e(0x3a9)]();},'finalize':function(_0x160400){const _0x229b6c=_0x4bbf35;_0x160400&&this[_0x229b6c(0x298)](_0x160400);var _0x4dbc43=this[_0x229b6c(0x5ec)]();return _0x4dbc43;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x62af2a(_0x38f461){const _0x43f16c=_0x513c;return typeof _0x38f461==_0x43f16c(0x3de)?_0x424a6d:_0x614707;}return function(_0x68fd20){return{'encrypt':function(_0x376e99,_0x4b1168,_0x3e1a89){const _0x2c2d55=_0x513c;return _0x62af2a(_0x4b1168)[_0x2c2d55(0x41c)](_0x68fd20,_0x376e99,_0x4b1168,_0x3e1a89);},'decrypt':function(_0x38f707,_0xf2297b,_0x5dba09){const _0x564ca7=_0x513c;return _0x62af2a(_0xf2297b)[_0x564ca7(0x36b)](_0x68fd20,_0x38f707,_0xf2297b,_0x5dba09);}};};}())});_0x385970[_0x4bbf35(0x604)]=_0xb28773[_0x4bbf35(0x24a)]({'_doFinalize':function(){var _0x58e98a=this['_process'](!0x0);return _0x58e98a;},'blockSize':0x1});var _0x32b848=_0xcda6e6[_0x4bbf35(0x44d)]={},_0x19bd25=_0x385970[_0x4bbf35(0x523)]=_0x14f469['extend']({'createEncryptor':function(_0x27943d,_0x23cb39){const _0x3072f4=_0x4bbf35;return this[_0x3072f4(0x4c5)][_0x3072f4(0x4e6)](_0x27943d,_0x23cb39);},'createDecryptor':function(_0x5c04a0,_0x424a65){const _0x3fe266=_0x4bbf35;return this[_0x3fe266(0x621)][_0x3fe266(0x4e6)](_0x5c04a0,_0x424a65);},'init':function(_0x13dfc9,_0x2ae9fc){const _0x298495=_0x4bbf35;this[_0x298495(0x2b3)]=_0x13dfc9,this['_iv']=_0x2ae9fc;}}),_0x201c84=_0x32b848['CBC']=(function(){const _0x1abc03=_0x4bbf35;var _0xab853c=_0x19bd25['extend']();_0xab853c[_0x1abc03(0x4c5)]=_0xab853c[_0x1abc03(0x24a)]({'processBlock':function(_0x3e284b,_0x195ba2){const _0x2a3525=_0x1abc03;var _0x3800b1=this[_0x2a3525(0x2b3)],_0x4c53d3=_0x3800b1[_0x2a3525(0x647)];_0x1d1c3d[_0x2a3525(0x1fa)](this,_0x3e284b,_0x195ba2,_0x4c53d3),_0x3800b1[_0x2a3525(0x327)](_0x3e284b,_0x195ba2),this[_0x2a3525(0x49a)]=_0x3e284b[_0x2a3525(0x2e5)](_0x195ba2,_0x195ba2+_0x4c53d3);}}),_0xab853c[_0x1abc03(0x621)]=_0xab853c['extend']({'processBlock':function(_0x43cee7,_0x22e25e){const _0x36ec7a=_0x1abc03;var _0x2ed396=this['_cipher'],_0x31443f=_0x2ed396[_0x36ec7a(0x647)],_0x23eb25=_0x43cee7[_0x36ec7a(0x2e5)](_0x22e25e,_0x22e25e+_0x31443f);_0x2ed396[_0x36ec7a(0x469)](_0x43cee7,_0x22e25e),_0x1d1c3d[_0x36ec7a(0x1fa)](this,_0x43cee7,_0x22e25e,_0x31443f),this[_0x36ec7a(0x49a)]=_0x23eb25;}});function _0x1d1c3d(_0x3a7f44,_0x15eb0b,_0x1be958){const _0x409d18=_0x1abc03;var _0x4316f5,_0x209ae2=this[_0x409d18(0x202)];_0x209ae2?(_0x4316f5=_0x209ae2,this['_iv']=_0x281a46):_0x4316f5=this[_0x409d18(0x49a)];for(var _0x267563=0x0;_0x267563<_0x1be958;_0x267563++)_0x3a7f44[_0x15eb0b+_0x267563]^=_0x4316f5[_0x267563];}return _0xab853c;}()),_0x18d0ac=_0xcda6e6[_0x4bbf35(0x3e9)]={},_0x460e3e=_0x18d0ac[_0x4bbf35(0x539)]={'pad':function(_0x54d799,_0x5488c7){const _0x3f7632=_0x4bbf35;for(var _0x73ed3b=_0x5488c7*0x4,_0x33fc1c=_0x73ed3b-_0x54d799[_0x3f7632(0x54c)]%_0x73ed3b,_0x464d98=_0x33fc1c<<0x18|_0x33fc1c<<0x10|_0x33fc1c<<0x8|_0x33fc1c,_0x2ddcdb=[],_0x1f1b9f=0x0;_0x1f1b9f<_0x33fc1c;_0x1f1b9f+=0x4)_0x2ddcdb[_0x3f7632(0x257)](_0x464d98);var _0x28a97b=_0x1d7172[_0x3f7632(0x4e6)](_0x2ddcdb,_0x33fc1c);_0x54d799[_0x3f7632(0x315)](_0x28a97b);},'unpad':function(_0xe367ff){const _0x518f88=_0x4bbf35;var _0x26f1f6=_0xe367ff[_0x518f88(0x589)][_0xe367ff['sigBytes']-0x1>>>0x2]&0xff;_0xe367ff[_0x518f88(0x54c)]-=_0x26f1f6;}};_0x385970[_0x4bbf35(0x5fd)]=_0xb28773[_0x4bbf35(0x24a)]({'cfg':_0xb28773[_0x4bbf35(0x553)][_0x4bbf35(0x24a)]({'mode':_0x201c84,'padding':_0x460e3e}),'reset':function(){const _0x218149=_0x4bbf35;var _0x14f5db;_0xb28773[_0x218149(0x63c)]['call'](this);var _0x5baa2e=this[_0x218149(0x553)],_0xe32baf=_0x5baa2e['iv'],_0x730f34=_0x5baa2e['mode'];this[_0x218149(0x2a8)]==this[_0x218149(0x4eb)]?_0x14f5db=_0x730f34[_0x218149(0x464)]:(_0x14f5db=_0x730f34[_0x218149(0x5dd)],this[_0x218149(0x66c)]=0x1),this[_0x218149(0x381)]&&this[_0x218149(0x381)]['__creator']==_0x14f5db?this[_0x218149(0x381)][_0x218149(0x5ca)](this,_0xe32baf&&_0xe32baf['words']):(this[_0x218149(0x381)]=_0x14f5db[_0x218149(0x1fa)](_0x730f34,this,_0xe32baf&&_0xe32baf[_0x218149(0x589)]),this[_0x218149(0x381)][_0x218149(0x325)]=_0x14f5db);},'_doProcessBlock':function(_0x3322a3,_0xcf480c){const _0x480051=_0x4bbf35;this[_0x480051(0x381)][_0x480051(0x20a)](_0x3322a3,_0xcf480c);},'_doFinalize':function(){const _0x55c63a=_0x4bbf35;var _0x41277d,_0x50753d=this['cfg'][_0x55c63a(0x453)];return this[_0x55c63a(0x2a8)]==this[_0x55c63a(0x4eb)]?(_0x50753d['pad'](this[_0x55c63a(0x2c9)],this[_0x55c63a(0x647)]),_0x41277d=this[_0x55c63a(0x3a9)](!0x0)):(_0x41277d=this[_0x55c63a(0x3a9)](!0x0),_0x50753d['unpad'](_0x41277d)),_0x41277d;},'blockSize':0x80/0x20});var _0x98fe61=_0x385970[_0x4bbf35(0x2c5)]=_0x14f469[_0x4bbf35(0x24a)]({'init':function(_0x5de0f3){this['mixIn'](_0x5de0f3);},'toString':function(_0x480fd1){const _0x5e69fb=_0x4bbf35;return(_0x480fd1||this[_0x5e69fb(0x3f4)])['stringify'](this);}}),_0x5d6716=_0xcda6e6[_0x4bbf35(0x5da)]={},_0x96c0a4=_0x5d6716[_0x4bbf35(0x3ad)]={'stringify':function(_0x39b561){const _0x5e2231=_0x4bbf35;var _0x2fa68e,_0x2ca2ba=_0x39b561['ciphertext'],_0x1933d4=_0x39b561['salt'];return _0x1933d4?_0x2fa68e=_0x1d7172[_0x5e2231(0x4e6)]([0x53616c74,0x65645f5f])[_0x5e2231(0x315)](_0x1933d4)['concat'](_0x2ca2ba):_0x2fa68e=_0x2ca2ba,_0x2fa68e[_0x5e2231(0x4d2)](_0x42e1f5);},'parse':function(_0x596217){const _0x2ad023=_0x4bbf35;var _0x3464ff,_0x394089=_0x42e1f5['parse'](_0x596217),_0x535110=_0x394089['words'];return _0x535110[0x0]==0x53616c74&&_0x535110[0x1]==0x65645f5f&&(_0x3464ff=_0x1d7172[_0x2ad023(0x4e6)](_0x535110[_0x2ad023(0x2e5)](0x2,0x4)),_0x535110['splice'](0x0,0x4),_0x394089[_0x2ad023(0x54c)]-=0x10),_0x98fe61[_0x2ad023(0x4e6)]({'ciphertext':_0x394089,'salt':_0x3464ff});}},_0x614707=_0x385970[_0x4bbf35(0x2e0)]=_0x14f469[_0x4bbf35(0x24a)]({'cfg':_0x14f469[_0x4bbf35(0x24a)]({'format':_0x96c0a4}),'encrypt':function(_0x58ad62,_0x38ab02,_0x69457c,_0x4ad734){const _0x15b7d2=_0x4bbf35;_0x4ad734=this[_0x15b7d2(0x553)]['extend'](_0x4ad734);var _0x4486b8=_0x58ad62[_0x15b7d2(0x464)](_0x69457c,_0x4ad734),_0x39f0c8=_0x4486b8[_0x15b7d2(0x58d)](_0x38ab02),_0x3ea35f=_0x4486b8[_0x15b7d2(0x553)];return _0x98fe61[_0x15b7d2(0x4e6)]({'ciphertext':_0x39f0c8,'key':_0x69457c,'iv':_0x3ea35f['iv'],'algorithm':_0x58ad62,'mode':_0x3ea35f[_0x15b7d2(0x44d)],'padding':_0x3ea35f[_0x15b7d2(0x453)],'blockSize':_0x58ad62[_0x15b7d2(0x647)],'formatter':_0x4ad734[_0x15b7d2(0x5da)]});},'decrypt':function(_0x2458aa,_0x55ef58,_0x1b33dc,_0x20eb24){const _0x42028e=_0x4bbf35;_0x20eb24=this[_0x42028e(0x553)]['extend'](_0x20eb24),_0x55ef58=this[_0x42028e(0x249)](_0x55ef58,_0x20eb24[_0x42028e(0x5da)]);var _0x2a5345=_0x2458aa['createDecryptor'](_0x1b33dc,_0x20eb24)[_0x42028e(0x58d)](_0x55ef58[_0x42028e(0x230)]);return _0x2a5345;},'_parse':function(_0x493869,_0x583f54){const _0x6a5c21=_0x4bbf35;return typeof _0x493869==_0x6a5c21(0x3de)?_0x583f54['parse'](_0x493869,this):_0x493869;}}),_0x45b14d=_0xcda6e6[_0x4bbf35(0x3a7)]={},_0x2b1790=_0x45b14d[_0x4bbf35(0x3ad)]={'execute':function(_0x49ff8a,_0x5493d4,_0x25d474,_0x1f7d8d,_0x11bde6){const _0x4dd7a0=_0x4bbf35;if(_0x1f7d8d||(_0x1f7d8d=_0x1d7172[_0x4dd7a0(0x59c)](0x40/0x8)),_0x11bde6)var _0x56dc2c=_0x407876['create']({'keySize':_0x5493d4+_0x25d474,'hasher':_0x11bde6})[_0x4dd7a0(0x38b)](_0x49ff8a,_0x1f7d8d);else var _0x56dc2c=_0x407876['create']({'keySize':_0x5493d4+_0x25d474})[_0x4dd7a0(0x38b)](_0x49ff8a,_0x1f7d8d);var _0x423ea5=_0x1d7172['create'](_0x56dc2c[_0x4dd7a0(0x589)]['slice'](_0x5493d4),_0x25d474*0x4);return _0x56dc2c['sigBytes']=_0x5493d4*0x4,_0x98fe61[_0x4dd7a0(0x4e6)]({'key':_0x56dc2c,'iv':_0x423ea5,'salt':_0x1f7d8d});}},_0x424a6d=_0x385970['PasswordBasedCipher']=_0x614707['extend']({'cfg':_0x614707['cfg']['extend']({'kdf':_0x2b1790}),'encrypt':function(_0x1f6c9f,_0x4db4fd,_0x537626,_0x2160ed){const _0x388f23=_0x4bbf35;_0x2160ed=this[_0x388f23(0x553)][_0x388f23(0x24a)](_0x2160ed);var _0x2833f4=_0x2160ed[_0x388f23(0x3a7)][_0x388f23(0x371)](_0x537626,_0x1f6c9f['keySize'],_0x1f6c9f[_0x388f23(0x3c1)],_0x2160ed[_0x388f23(0x5c1)],_0x2160ed[_0x388f23(0x57e)]);_0x2160ed['iv']=_0x2833f4['iv'];var _0x4e0dc6=_0x614707[_0x388f23(0x41c)][_0x388f23(0x1fa)](this,_0x1f6c9f,_0x4db4fd,_0x2833f4[_0x388f23(0x1c7)],_0x2160ed);return _0x4e0dc6[_0x388f23(0x432)](_0x2833f4),_0x4e0dc6;},'decrypt':function(_0x36f72c,_0x34cdbc,_0x5e4e1e,_0x58037d){const _0x27df40=_0x4bbf35;_0x58037d=this[_0x27df40(0x553)]['extend'](_0x58037d),_0x34cdbc=this[_0x27df40(0x249)](_0x34cdbc,_0x58037d[_0x27df40(0x5da)]);var _0x4f399e=_0x58037d[_0x27df40(0x3a7)][_0x27df40(0x371)](_0x5e4e1e,_0x36f72c[_0x27df40(0x62e)],_0x36f72c[_0x27df40(0x3c1)],_0x34cdbc[_0x27df40(0x5c1)],_0x58037d[_0x27df40(0x57e)]);_0x58037d['iv']=_0x4f399e['iv'];var _0xd17018=_0x614707[_0x27df40(0x36b)][_0x27df40(0x1fa)](this,_0x36f72c,_0x34cdbc,_0x4f399e[_0x27df40(0x1c7)],_0x58037d);return _0xd17018;}});}();}));}(dt)),dt[_0x518294(0x447)];}(function(_0x5e8dcf,_0x4f1a6a){(function(_0x4df26,_0x57ac67,_0x43f6cb){const _0xdc0097=_0x513c;_0x5e8dcf[_0xdc0097(0x447)]=_0x57ac67(ae(),Tn(),nr(),Rn(),yn());}(J,function(_0x1b019c){const _0x2243b1=_0x513c;return(function(){const _0x1e56fd=_0x513c;var _0x2d3f84=_0x1b019c,_0x382bea=_0x2d3f84[_0x1e56fd(0x456)],_0x181f3f=_0x382bea[_0x1e56fd(0x5fd)],_0x45ef4d=_0x2d3f84['algo'],_0x343e1b=[],_0x2855b9=[],_0x22edda=[],_0xdb93e3=[],_0x353d92=[],_0x1cbe2c=[],_0x34ca70=[],_0xcf8218=[],_0x33bb07=[],_0x144ba2=[];(function(){for(var _0x1ef8c8=[],_0x2e9515=0x0;_0x2e9515<0x100;_0x2e9515++)_0x2e9515<0x80?_0x1ef8c8[_0x2e9515]=_0x2e9515<<0x1:_0x1ef8c8[_0x2e9515]=_0x2e9515<<0x1^0x11b;for(var _0x59c59d=0x0,_0x78c12=0x0,_0x2e9515=0x0;_0x2e9515<0x100;_0x2e9515++){var _0x3537ca=_0x78c12^_0x78c12<<0x1^_0x78c12<<0x2^_0x78c12<<0x3^_0x78c12<<0x4;_0x3537ca=_0x3537ca>>>0x8^_0x3537ca&0xff^0x63,_0x343e1b[_0x59c59d]=_0x3537ca,_0x2855b9[_0x3537ca]=_0x59c59d;var _0x312fb3=_0x1ef8c8[_0x59c59d],_0x280116=_0x1ef8c8[_0x312fb3],_0xd7c692=_0x1ef8c8[_0x280116],_0x4bcc18=_0x1ef8c8[_0x3537ca]*0x101^_0x3537ca*0x1010100;_0x22edda[_0x59c59d]=_0x4bcc18<<0x18|_0x4bcc18>>>0x8,_0xdb93e3[_0x59c59d]=_0x4bcc18<<0x10|_0x4bcc18>>>0x10,_0x353d92[_0x59c59d]=_0x4bcc18<<0x8|_0x4bcc18>>>0x18,_0x1cbe2c[_0x59c59d]=_0x4bcc18;var _0x4bcc18=_0xd7c692*0x1010101^_0x280116*0x10001^_0x312fb3*0x101^_0x59c59d*0x1010100;_0x34ca70[_0x3537ca]=_0x4bcc18<<0x18|_0x4bcc18>>>0x8,_0xcf8218[_0x3537ca]=_0x4bcc18<<0x10|_0x4bcc18>>>0x10,_0x33bb07[_0x3537ca]=_0x4bcc18<<0x8|_0x4bcc18>>>0x18,_0x144ba2[_0x3537ca]=_0x4bcc18,_0x59c59d?(_0x59c59d=_0x312fb3^_0x1ef8c8[_0x1ef8c8[_0x1ef8c8[_0xd7c692^_0x312fb3]]],_0x78c12^=_0x1ef8c8[_0x1ef8c8[_0x78c12]]):_0x59c59d=_0x78c12=0x1;}}());var _0x293a6d=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x14355e=_0x45ef4d['AES']=_0x181f3f[_0x1e56fd(0x24a)]({'_doReset':function(){const _0x22a2bb=_0x1e56fd;var _0x3c78b1;if(!(this[_0x22a2bb(0x1df)]&&this[_0x22a2bb(0x23d)]===this['_key'])){for(var _0x11886a=this[_0x22a2bb(0x23d)]=this[_0x22a2bb(0x4e5)],_0x1c9b77=_0x11886a[_0x22a2bb(0x589)],_0x594372=_0x11886a[_0x22a2bb(0x54c)]/0x4,_0x4d9c7e=this[_0x22a2bb(0x1df)]=_0x594372+0x6,_0x2125ae=(_0x4d9c7e+0x1)*0x4,_0x595fea=this[_0x22a2bb(0x550)]=[],_0xa72aaf=0x0;_0xa72aaf<_0x2125ae;_0xa72aaf++)_0xa72aaf<_0x594372?_0x595fea[_0xa72aaf]=_0x1c9b77[_0xa72aaf]:(_0x3c78b1=_0x595fea[_0xa72aaf-0x1],_0xa72aaf%_0x594372?_0x594372>0x6&&_0xa72aaf%_0x594372==0x4&&(_0x3c78b1=_0x343e1b[_0x3c78b1>>>0x18]<<0x18|_0x343e1b[_0x3c78b1>>>0x10&0xff]<<0x10|_0x343e1b[_0x3c78b1>>>0x8&0xff]<<0x8|_0x343e1b[_0x3c78b1&0xff]):(_0x3c78b1=_0x3c78b1<<0x8|_0x3c78b1>>>0x18,_0x3c78b1=_0x343e1b[_0x3c78b1>>>0x18]<<0x18|_0x343e1b[_0x3c78b1>>>0x10&0xff]<<0x10|_0x343e1b[_0x3c78b1>>>0x8&0xff]<<0x8|_0x343e1b[_0x3c78b1&0xff],_0x3c78b1^=_0x293a6d[_0xa72aaf/_0x594372|0x0]<<0x18),_0x595fea[_0xa72aaf]=_0x595fea[_0xa72aaf-_0x594372]^_0x3c78b1);for(var _0x80bc06=this[_0x22a2bb(0x392)]=[],_0x3af0f1=0x0;_0x3af0f1<_0x2125ae;_0x3af0f1++){var _0xa72aaf=_0x2125ae-_0x3af0f1;if(_0x3af0f1%0x4)var _0x3c78b1=_0x595fea[_0xa72aaf];else var _0x3c78b1=_0x595fea[_0xa72aaf-0x4];_0x3af0f1<0x4||_0xa72aaf<=0x4?_0x80bc06[_0x3af0f1]=_0x3c78b1:_0x80bc06[_0x3af0f1]=_0x34ca70[_0x343e1b[_0x3c78b1>>>0x18]]^_0xcf8218[_0x343e1b[_0x3c78b1>>>0x10&0xff]]^_0x33bb07[_0x343e1b[_0x3c78b1>>>0x8&0xff]]^_0x144ba2[_0x343e1b[_0x3c78b1&0xff]];}}},'encryptBlock':function(_0x44bcff,_0x3c6e1b){const _0x64a12b=_0x1e56fd;this[_0x64a12b(0x537)](_0x44bcff,_0x3c6e1b,this[_0x64a12b(0x550)],_0x22edda,_0xdb93e3,_0x353d92,_0x1cbe2c,_0x343e1b);},'decryptBlock':function(_0x2ba66b,_0x5652a0){var _0x369fbb=_0x2ba66b[_0x5652a0+0x1];_0x2ba66b[_0x5652a0+0x1]=_0x2ba66b[_0x5652a0+0x3],_0x2ba66b[_0x5652a0+0x3]=_0x369fbb,this['_doCryptBlock'](_0x2ba66b,_0x5652a0,this['_invKeySchedule'],_0x34ca70,_0xcf8218,_0x33bb07,_0x144ba2,_0x2855b9);var _0x369fbb=_0x2ba66b[_0x5652a0+0x1];_0x2ba66b[_0x5652a0+0x1]=_0x2ba66b[_0x5652a0+0x3],_0x2ba66b[_0x5652a0+0x3]=_0x369fbb;},'_doCryptBlock':function(_0x140e68,_0x4ed875,_0x44c4eb,_0x5a654b,_0x93a599,_0x523fe2,_0x2dda4d,_0x29f89e){const _0x588b45=_0x1e56fd;for(var _0x2f31a9=this[_0x588b45(0x1df)],_0x29b5ad=_0x140e68[_0x4ed875]^_0x44c4eb[0x0],_0x1d1fb6=_0x140e68[_0x4ed875+0x1]^_0x44c4eb[0x1],_0x534286=_0x140e68[_0x4ed875+0x2]^_0x44c4eb[0x2],_0x3a280f=_0x140e68[_0x4ed875+0x3]^_0x44c4eb[0x3],_0x5970ce=0x4,_0x2ebe01=0x1;_0x2ebe01<_0x2f31a9;_0x2ebe01++){var _0x2b0add=_0x5a654b[_0x29b5ad>>>0x18]^_0x93a599[_0x1d1fb6>>>0x10&0xff]^_0x523fe2[_0x534286>>>0x8&0xff]^_0x2dda4d[_0x3a280f&0xff]^_0x44c4eb[_0x5970ce++],_0x593890=_0x5a654b[_0x1d1fb6>>>0x18]^_0x93a599[_0x534286>>>0x10&0xff]^_0x523fe2[_0x3a280f>>>0x8&0xff]^_0x2dda4d[_0x29b5ad&0xff]^_0x44c4eb[_0x5970ce++],_0x4a908c=_0x5a654b[_0x534286>>>0x18]^_0x93a599[_0x3a280f>>>0x10&0xff]^_0x523fe2[_0x29b5ad>>>0x8&0xff]^_0x2dda4d[_0x1d1fb6&0xff]^_0x44c4eb[_0x5970ce++],_0x28dcd7=_0x5a654b[_0x3a280f>>>0x18]^_0x93a599[_0x29b5ad>>>0x10&0xff]^_0x523fe2[_0x1d1fb6>>>0x8&0xff]^_0x2dda4d[_0x534286&0xff]^_0x44c4eb[_0x5970ce++];_0x29b5ad=_0x2b0add,_0x1d1fb6=_0x593890,_0x534286=_0x4a908c,_0x3a280f=_0x28dcd7;}var _0x2b0add=(_0x29f89e[_0x29b5ad>>>0x18]<<0x18|_0x29f89e[_0x1d1fb6>>>0x10&0xff]<<0x10|_0x29f89e[_0x534286>>>0x8&0xff]<<0x8|_0x29f89e[_0x3a280f&0xff])^_0x44c4eb[_0x5970ce++],_0x593890=(_0x29f89e[_0x1d1fb6>>>0x18]<<0x18|_0x29f89e[_0x534286>>>0x10&0xff]<<0x10|_0x29f89e[_0x3a280f>>>0x8&0xff]<<0x8|_0x29f89e[_0x29b5ad&0xff])^_0x44c4eb[_0x5970ce++],_0x4a908c=(_0x29f89e[_0x534286>>>0x18]<<0x18|_0x29f89e[_0x3a280f>>>0x10&0xff]<<0x10|_0x29f89e[_0x29b5ad>>>0x8&0xff]<<0x8|_0x29f89e[_0x1d1fb6&0xff])^_0x44c4eb[_0x5970ce++],_0x28dcd7=(_0x29f89e[_0x3a280f>>>0x18]<<0x18|_0x29f89e[_0x29b5ad>>>0x10&0xff]<<0x10|_0x29f89e[_0x1d1fb6>>>0x8&0xff]<<0x8|_0x29f89e[_0x534286&0xff])^_0x44c4eb[_0x5970ce++];_0x140e68[_0x4ed875]=_0x2b0add,_0x140e68[_0x4ed875+0x1]=_0x593890,_0x140e68[_0x4ed875+0x2]=_0x4a908c,_0x140e68[_0x4ed875+0x3]=_0x28dcd7;},'keySize':0x100/0x20});_0x2d3f84[_0x1e56fd(0x51d)]=_0x181f3f[_0x1e56fd(0x4ba)](_0x14355e);}()),_0x1b019c[_0x2243b1(0x51d)];}));}(bn));var rr=bn['exports'];const or=Le(rr);var ar=Tn();const zt=Le(ar);var On={'exports':{}};(function(_0x133c37,_0x20b450){(function(_0x3a0929,_0x3616a7){const _0x446b26=_0x513c;_0x133c37[_0x446b26(0x447)]=_0x3616a7(ae());}(J,function(_0x4355e8){const _0x4797fe=_0x513c;return _0x4355e8[_0x4797fe(0x271)][_0x4797fe(0x4d1)];}));}(On));var cr=On['exports'];const lr=Le(cr);var Dn={'exports':{}};(function(_0xc9e09c,_0x54a076){(function(_0x3699f1,_0x3dadd3){const _0x3098e7=_0x513c;_0xc9e09c[_0x3098e7(0x447)]=_0x3dadd3(ae());}(J,function(_0x151ff2){return(function(){const _0x265db9=_0x513c;if(typeof ArrayBuffer==_0x265db9(0x556)){var _0x4641bb=_0x151ff2,_0x3fd827=_0x4641bb['lib'],_0x38aa42=_0x3fd827[_0x265db9(0x33f)],_0xf65f4a=_0x38aa42[_0x265db9(0x5ca)],_0x2c3ace=_0x38aa42[_0x265db9(0x5ca)]=function(_0x12e215){const _0x36aa06=_0x265db9;if(_0x12e215 instanceof ArrayBuffer&&(_0x12e215=new Uint8Array(_0x12e215)),(_0x12e215 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x12e215 instanceof Uint8ClampedArray||_0x12e215 instanceof Int16Array||_0x12e215 instanceof Uint16Array||_0x12e215 instanceof Int32Array||_0x12e215 instanceof Uint32Array||_0x12e215 instanceof Float32Array||_0x12e215 instanceof Float64Array)&&(_0x12e215=new Uint8Array(_0x12e215[_0x36aa06(0x1dd)],_0x12e215[_0x36aa06(0x46d)],_0x12e215['byteLength'])),_0x12e215 instanceof Uint8Array){for(var _0x4533c1=_0x12e215[_0x36aa06(0x42b)],_0x49b4a7=[],_0x212adb=0x0;_0x212adb<_0x4533c1;_0x212adb++)_0x49b4a7[_0x212adb>>>0x2]|=_0x12e215[_0x212adb]<<0x18-_0x212adb%0x4*0x8;_0xf65f4a['call'](this,_0x49b4a7,_0x4533c1);}else _0xf65f4a[_0x36aa06(0x4ae)](this,arguments);};_0x2c3ace[_0x265db9(0x420)]=_0x38aa42;}}()),_0x151ff2['lib']['WordArray'];}));}(Dn));var hr=Dn[_0x37a374(0x447)];const _r=Le(hr);var wn={'exports':{}};(function(_0x324d6c,_0x72f30d){(function(_0x2171b6,_0x4f024f,_0x440545){const _0x319876=_0x513c;_0x324d6c[_0x319876(0x447)]=_0x4f024f(ae(),yn());}(J,function(_0x4ff61e){const _0x107bc1=_0x513c;return _0x4ff61e[_0x107bc1(0x3e9)][_0x107bc1(0x53e)]={'pad':function(){},'unpad':function(){}},_0x4ff61e[_0x107bc1(0x3e9)]['NoPadding'];}));}(wn));var ur=wn[_0x37a374(0x447)];const dr=Le(ur);function fr(_0x4aa2c4,_0x53c430){const _0x372800=_0x37a374,_0x197b81=_0x53c430-_0x4aa2c4[_0x372800(0x330)]%_0x53c430,_0x371ffb=String[_0x372800(0x229)](_0x197b81)[_0x372800(0x5d0)](_0x197b81);return _0x4aa2c4+_0x371ffb;}function vr(_0x1a1796,_0x23ea7c){const _0x358456=_0x37a374,_0x372d43=_r[_0x358456(0x59c)](0x10),_0x26b9f5=fr(_0x1a1796,0x10),_0x3c77e7=or[_0x358456(0x41c)](lr[_0x358456(0x558)](_0x26b9f5),zt['parse'](_0x23ea7c),{'iv':_0x372d43,'padding':dr});return _0x372d43['concat'](_0x3c77e7[_0x358456(0x230)])[_0x358456(0x4d2)](zt);}function mr(){const _0x3f6781=_0x37a374,_0x4dd1a6=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x4dd1a6){const _0x32212a={'time':Math[_0x3f6781(0x640)](Date[_0x3f6781(0x4e0)]()/0x3e8),'domain':location[_0x3f6781(0x399)]};return vr(JSON[_0x3f6781(0x3df)](_0x32212a),_0x4dd1a6);}}var pr=Object[_0x37a374(0x55e)],Sr=Object[_0x37a374(0x4a5)],gr=(_0x336fa0,_0x5dda00,_0x5b06db,_0x24dd6c)=>{const _0x46a4fe=_0x37a374;for(var _0x2e69b2=_0x24dd6c>0x1?void 0x0:_0x24dd6c?Sr(_0x5dda00,_0x5b06db):_0x5dda00,_0xa7361e=_0x336fa0[_0x46a4fe(0x330)]-0x1,_0x57900;_0xa7361e>=0x0;_0xa7361e--)(_0x57900=_0x336fa0[_0xa7361e])&&(_0x2e69b2=(_0x24dd6c?_0x57900(_0x5dda00,_0x5b06db,_0x2e69b2):_0x57900(_0x2e69b2))||_0x2e69b2);return _0x24dd6c&&_0x2e69b2&&pr(_0x5dda00,_0x5b06db,_0x2e69b2),_0x2e69b2;},Ir=(_0x5f0260,_0xd00138)=>(_0x143a82,_0x46a287)=>_0xd00138(_0x143a82,_0x46a287,_0x5f0260);let Ye=class{constructor(_0x4e7a29){const _0x996e01=_0x37a374;this['_httpService']=_0x4e7a29,this[_0x996e01(0x4a1)]();}[_0x37a374(0x4a1)](){const _0x3f1149=_0x37a374;this[_0x3f1149(0x20d)][_0x3f1149(0x417)]({'interceptor':(_0x46303d,_0x533b19)=>{const _0x4a6cbe=_0x3f1149,_0x3e5732=_0x46303d[_0x4a6cbe(0x356)],_0x4ec362=mr();return _0x4ec362&&_0x3e5732[_0x4a6cbe(0x5d1)](_0x4a6cbe(0x651),_0x4ec362),_0x533b19(_0x46303d);}});}};Ye=gr([Ir(0x0,a[_0x37a374(0x629)](Q[_0x37a374(0x34f)]))],Ye);var Cr=Object[_0x37a374(0x55e)],Er=Object[_0x37a374(0x4a5)],br=(_0x29cbe3,_0x27b21f,_0x186ee8,_0x2d9e8a)=>{const _0x3170a3=_0x37a374;for(var _0x3e4731=_0x2d9e8a>0x1?void 0x0:_0x2d9e8a?Er(_0x27b21f,_0x186ee8):_0x27b21f,_0x33ef50=_0x29cbe3[_0x3170a3(0x330)]-0x1,_0x2d21d2;_0x33ef50>=0x0;_0x33ef50--)(_0x2d21d2=_0x29cbe3[_0x33ef50])&&(_0x3e4731=(_0x2d9e8a?_0x2d21d2(_0x27b21f,_0x186ee8,_0x3e4731):_0x2d21d2(_0x3e4731))||_0x3e4731);return _0x2d9e8a&&_0x3e4731&&Cr(_0x27b21f,_0x186ee8,_0x3e4731),_0x3e4731;},ft=(_0x349cc3,_0x351002)=>(_0x4fcedb,_0x1747b1)=>_0x351002(_0x4fcedb,_0x1747b1,_0x349cc3);const Tr=['image/png',_0x37a374(0x584),_0x37a374(0x38f),'image/gif',_0x37a374(0x1c5)],Rr=0x5*0x400*0x400,yr=_0x37a374(0x649),Or=_0x37a374(0x62c),Dr=_0x37a374(0x57c),wr=_0x37a374(0x223);exports[_0x37a374(0x28b)]=class{constructor(_0x32babb,_0x45169a,_0x6efc4){const _0x46e661=_0x37a374;I(this,_0x46e661(0x277),0x0),I(this,_0x46e661(0x5d7),new A[(_0x46e661(0x383))]()),I(this,'change$',this['_change$']),I(this,_0x46e661(0x5d6),new Map()),(this[_0x46e661(0x20d)]=_0x32babb,this[_0x46e661(0x3e7)]=_0x45169a,this[_0x46e661(0x1d4)]=_0x6efc4);}[_0x37a374(0x205)](_0x597c14){const _0x237137=_0x37a374;this[_0x237137(0x277)]=_0x597c14,this['_change$'][_0x237137(0x24e)](_0x597c14);}['getImageSourceCache'](_0x253fb8,_0x444849){const _0xda9c71=_0x37a374;if(_0x444849===ie[_0xda9c71(0x5e7)][_0xda9c71(0x3d9)]){const _0x386448=new Image();return _0x386448['src']=_0x253fb8,_0x386448;}return this[_0xda9c71(0x5d6)]['get'](_0x253fb8);}[_0x37a374(0x374)](_0x2ebec6,_0x59ea44,_0x301408){const _0x2edb63=_0x37a374;_0x59ea44===ie[_0x2edb63(0x5e7)]['BASE64']||_0x301408==null||this[_0x2edb63(0x5d6)]['set'](_0x2ebec6,_0x301408);}async[_0x37a374(0x3d2)](_0x1e90a7){const _0x36588a=_0x37a374;try{const _0x4c1557=this[_0x36588a(0x3ba)](this[_0x36588a(0x2d6)](),''+_0x1e90a7),_0x4ff127=(await this[_0x36588a(0x20d)]['get'](_0x4c1557))[_0x36588a(0x360)];if(_0x4ff127[_0x36588a(0x237)]&&_0x4ff127[_0x36588a(0x237)]['code']===an['OK']){const _0x30aea6=new URL(_0x4ff127[_0x36588a(0x475)],this[_0x36588a(0x258)]())[_0x36588a(0x4d2)]();return Promise[_0x36588a(0x433)](_0x30aea6);}return Promise[_0x36588a(0x545)](_0x4ff127[_0x36588a(0x237)]);}catch(_0xc2cc05){return Promise['reject'](_0xc2cc05);}}async[_0x37a374(0x5ba)](_0x3d8565){const _0x48c2f3=_0x37a374;let _0x2a7e33='';if(!Tr[_0x48c2f3(0x5fc)](_0x3d8565[_0x48c2f3(0x1d2)]))return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie['ImageUploadStatusType'][_0x48c2f3(0x347)]));if(_0x3d8565[_0x48c2f3(0x654)]>Rr)return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x281)]));try{const _0x27cf34=new FormData();_0x27cf34['append'](_0x48c2f3(0x368),_0x3d8565);const _0x3439b6=this[_0x48c2f3(0x1d4)]['getFocusedUnit'](),_0x3e4d16=_0x3439b6==null?void 0x0:_0x3439b6[_0x48c2f3(0x615)]();if(!_0x3e4d16)throw new Error(_0x48c2f3(0x532));const _0x2088fb=this[_0x48c2f3(0x605)]()+_0x48c2f3(0x55c)+_0x3d8565[_0x48c2f3(0x654)][_0x48c2f3(0x4d2)]()+_0x48c2f3(0x1ee)+cn['UnitEmbedded']+_0x48c2f3(0x1d9)+encodeURIComponent(_0x3e4d16),_0x2cc6c3=await(await fetch(_0x2088fb,{'method':_0x48c2f3(0x598),'body':_0x27cf34}))[_0x48c2f3(0x570)]();if(typeof _0x2cc6c3['FileId']!='string')return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x45a)]));_0x2a7e33=_0x2cc6c3[_0x48c2f3(0x3ac)];}catch{return this[_0x48c2f3(0x552)](),Promise[_0x48c2f3(0x545)](new Error(ie[_0x48c2f3(0x2d8)][_0x48c2f3(0x45a)]));}return new Promise((_0x5b09b0,_0x13a39d)=>{const _0x17b693=_0x48c2f3,_0x258b4a=new FileReader();_0x258b4a[_0x17b693(0x3be)](_0x3d8565),_0x258b4a['onload']=_0x285fb7=>{const _0x3e9b98=_0x17b693;var _0x2ab768;const _0x3d67d6=(_0x2ab768=_0x285fb7[_0x3e9b98(0x5b8)])==null?void 0x0:_0x2ab768['result'];if(_0x3d67d6==null){this[_0x3e9b98(0x552)](),_0x13a39d(new Error(ie[_0x3e9b98(0x2d8)][_0x3e9b98(0x45a)]));return;}const _0x3bbf34=a[_0x3e9b98(0x59b)][_0x3e9b98(0x3c0)](0x6);_0x5b09b0({'imageId':_0x3bbf34,'imageSourceType':ie[_0x3e9b98(0x5e7)][_0x3e9b98(0x660)],'source':_0x2a7e33,'base64Cache':_0x3d67d6,'status':ie[_0x3e9b98(0x2d8)]['SUCCUSS']}),this[_0x3e9b98(0x552)]();};});}['_getUploadFileURL'](){const _0x3d7cd5=_0x37a374;var _0x176f8e,_0x4f278f;const _0x4a37db=this[_0x3d7cd5(0x3e7)][_0x3d7cd5(0x37d)](yr),_0x5d69dd=this['_configService']['getConfig'](ne);return(_0x4f278f=(_0x176f8e=_0x5d69dd==null?void 0x0:_0x5d69dd['uploadFileServerUrl'])!=null?_0x176f8e:_0x4a37db)!=null?_0x4f278f:Or;}[_0x37a374(0x2d6)](){const _0x477d58=_0x37a374;var _0x4d3b59,_0x22beb4;const _0x2163b3=this['_configService'][_0x477d58(0x37d)](Dr),_0x319133=this[_0x477d58(0x3e7)][_0x477d58(0x37d)](ne);return(_0x22beb4=(_0x4d3b59=_0x319133==null?void 0x0:_0x319133[_0x477d58(0x43d)])!=null?_0x4d3b59:_0x2163b3)!=null?_0x22beb4:wr;}['_getDownloadEndpointURL'](){const _0x3c8f97=_0x37a374;var _0xb97d4e;const _0x1a9116=this[_0x3c8f97(0x3e7)][_0x3c8f97(0x37d)](ne);return(_0xb97d4e=_0x1a9116==null?void 0x0:_0x1a9116[_0x3c8f97(0x50a)])!=null?_0xb97d4e:location[_0x3c8f97(0x25f)];}[_0x37a374(0x3ba)](_0x37242b,_0x417e7c){const _0x3dca94=_0x37a374;return _0x37242b[_0x3dca94(0x2a2)](_0x3dca94(0x33b),_0x417e7c);}[_0x37a374(0x552)](){const _0x32af3d=_0x37a374;this[_0x32af3d(0x277)]-=0x1,this[_0x32af3d(0x5d7)][_0x32af3d(0x24e)](this[_0x32af3d(0x277)]);}},exports[_0x37a374(0x28b)]=br([ft(0x0,a[_0x37a374(0x629)](Q[_0x37a374(0x34f)])),ft(0x1,a[_0x37a374(0x30b)]),ft(0x2,a[_0x37a374(0x629)](a[_0x37a374(0x662)]))],exports['ImageIoService']);var Pr=Object[_0x37a374(0x55e)],Ur=Object[_0x37a374(0x4a5)],Mr=(_0x43b431,_0x3a8b72,_0xd19f90,_0x1bcee7)=>{const _0x451097=_0x37a374;for(var _0x4e00ed=_0x1bcee7>0x1?void 0x0:_0x1bcee7?Ur(_0x3a8b72,_0xd19f90):_0x3a8b72,_0x386f67=_0x43b431[_0x451097(0x330)]-0x1,_0x3a3a1f;_0x386f67>=0x0;_0x386f67--)(_0x3a3a1f=_0x43b431[_0x386f67])&&(_0x4e00ed=(_0x1bcee7?_0x3a3a1f(_0x3a8b72,_0xd19f90,_0x4e00ed):_0x3a3a1f(_0x4e00ed))||_0x4e00ed);return _0x1bcee7&&_0x4e00ed&&Pr(_0x3a8b72,_0xd19f90,_0x4e00ed),_0x4e00ed;},Me=(_0x562085,_0x534db6)=>(_0x97a944,_0x44687b)=>_0x534db6(_0x97a944,_0x44687b,_0x562085);let Ke=class extends a['RxDisposable']{constructor(_0x54fa41,_0x383007,_0x3bf69b,_0x36f724,_0x24a344){const _0x5ca272=_0x37a374;super(),this[_0x5ca272(0x58f)]=_0x54fa41,this[_0x5ca272(0x1d4)]=_0x383007,this[_0x5ca272(0x478)]=_0x3bf69b,this[_0x5ca272(0x3a4)]=_0x36f724,this['_localeService']=_0x24a344,this[_0x5ca272(0x401)](),this['_initCloseConn']();}[_0x37a374(0x2bc)](){const _0x1ab7e5=_0x37a374,_0x451ec3=async _0x47e9c2=>{const _0x242481=_0x513c;(await this[_0x242481(0x3a4)][_0x242481(0x501)](_0x47e9c2))[_0x242481(0x5cc)]['pipe'](V['filter'](_0x49eb03=>_0x49eb03['eventID']===p[_0x242481(0x521)][_0x242481(0x544)]),V['takeUntil'](this[_0x242481(0x574)]))[_0x242481(0x274)](_0x5eac09=>{const _0x1d035c=_0x242481,_0x4b1fea=_0x5eac09,{reason:_0x202b5a}=_0x4b1fea[_0x1d035c(0x470)];this[_0x1d035c(0x58f)][_0x1d035c(0x5bf)](te[_0x1d035c(0x3bf)])[_0x1d035c(0x5b9)]({'type':Se[_0x1d035c(0x4c0)][_0x1d035c(0x2f5)],'content':this[_0x1d035c(0x1c9)]['t'](_0x1d035c(0x5e9))+'('+_0x202b5a+')'}),this['_permissionService']['updatePermissionPoint'](new k[(_0x1d035c(0x363))](_0x47e9c2)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x47e9c2);});};A['merge'](this[_0x1ab7e5(0x1d4)]['getTypeOfUnitAdded$'](a[_0x1ab7e5(0x22d)][_0x1ab7e5(0x362)]),this[_0x1ab7e5(0x1d4)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x1ab7e5(0x619)]))['pipe'](V[_0x1ab7e5(0x323)](_0x94fd25=>_0x94fd25[_0x1ab7e5(0x615)]()),V[_0x1ab7e5(0x434)](_0x3974b5=>!a['isInternalEditorID'](_0x3974b5)),V[_0x1ab7e5(0x27d)](this[_0x1ab7e5(0x574)]))[_0x1ab7e5(0x274)](_0x53f2c2=>{_0x451ec3(_0x53f2c2);});}[_0x37a374(0x401)](){const _0x4e72d7=_0x37a374,_0x31c5c6=async _0x2b797a=>{const _0x4cfa41=_0x513c;(await this['_collaborationSessionService'][_0x4cfa41(0x501)](_0x2b797a))[_0x4cfa41(0x5cc)][_0x4cfa41(0x4d7)](V[_0x4cfa41(0x434)](_0x26bafe=>_0x26bafe['eventID']===p['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),V[_0x4cfa41(0x27d)](this[_0x4cfa41(0x574)]))[_0x4cfa41(0x274)](_0x2ad06f=>{const _0x28806e=_0x4cfa41,_0x23e5cb=_0x2ad06f,{objectId:_0x221ddc}=_0x23e5cb['data'],_0x9805ba=this[_0x28806e(0x58f)][_0x28806e(0x5bf)](Te[_0x28806e(0x5a5)]);_0x221ddc===_0x2b797a?_0x9805ba[_0x28806e(0x35f)](_0x2b797a):_0x9805ba[_0x28806e(0x240)](_0x2b797a,_0x221ddc);});};A['merge'](this[_0x4e72d7(0x1d4)][_0x4e72d7(0x442)](a['UniverInstanceType'][_0x4e72d7(0x362)]),this[_0x4e72d7(0x1d4)][_0x4e72d7(0x442)](a['UniverInstanceType'][_0x4e72d7(0x619)]))['pipe'](V[_0x4e72d7(0x323)](_0x405146=>_0x405146[_0x4e72d7(0x615)]()),V[_0x4e72d7(0x434)](_0x59ce86=>!a[_0x4e72d7(0x644)](_0x59ce86)),V[_0x4e72d7(0x27d)](this[_0x4e72d7(0x574)]))[_0x4e72d7(0x274)](_0x3f220a=>{_0x31c5c6(_0x3f220a);});}};Ke=Mr([Me(0x0,a[_0x37a374(0x629)](a[_0x37a374(0x4b7)])),Me(0x1,a[_0x37a374(0x662)]),Me(0x2,a[_0x37a374(0x459)]),Me(0x3,a[_0x37a374(0x629)](exports[_0x37a374(0x5e2)])),Me(0x4,a['Inject'](a[_0x37a374(0x52f)]))],Ke);var Ar=Object[_0x37a374(0x55e)],Nr=Object[_0x37a374(0x4a5)],Lr=(_0x278b2b,_0x467237,_0x22d144,_0x44c57c)=>{const _0x1925c4=_0x37a374;for(var _0x5db813=_0x44c57c>0x1?void 0x0:_0x44c57c?Nr(_0x467237,_0x22d144):_0x467237,_0x51c001=_0x278b2b[_0x1925c4(0x330)]-0x1,_0x2d8b0f;_0x51c001>=0x0;_0x51c001--)(_0x2d8b0f=_0x278b2b[_0x51c001])&&(_0x5db813=(_0x44c57c?_0x2d8b0f(_0x467237,_0x22d144,_0x5db813):_0x2d8b0f(_0x5db813))||_0x5db813);return _0x44c57c&&_0x5db813&&Ar(_0x467237,_0x22d144,_0x5db813),_0x5db813;},Xt=(_0x29fe37,_0x5e4a29)=>(_0x294808,_0xf23233)=>_0x5e4a29(_0x294808,_0xf23233,_0x29fe37);exports['SnapshotServerOverHTTPService']=class{constructor(_0x4e6270,_0x148d8a){const _0x1e2e99=_0x37a374;this[_0x1e2e99(0x3e7)]=_0x4e6270,this[_0x1e2e99(0x20d)]=_0x148d8a;}async[_0x37a374(0x1cc)](_0x3bbf32,_0x88f0e7){const _0x3d37d0=_0x37a374;var _0x20f2e6;const {unitID:_0x43f2d8,type:_0x42cd78,revision:_0x34e26e=0x0}=_0x88f0e7,_0x519d55=this[_0x3d37d0(0x275)]()+'/'+_0x42cd78+_0x3d37d0(0x625)+_0x43f2d8+_0x3d37d0(0x66e)+_0x34e26e,_0x3482b9=(await this[_0x3d37d0(0x20d)][_0x3d37d0(0x5bf)](_0x519d55))[_0x3d37d0(0x360)],_0x1c81dd=(_0x20f2e6=_0x3482b9[_0x3d37d0(0x364)])==null?void 0x0:_0x20f2e6['workbook'];if(_0x1c81dd){const _0x2492aa=_0x1c81dd==null?void 0x0:_0x1c81dd[_0x3d37d0(0x31c)],_0x3596b7=p['textEncoder']['encode'](p['b64DecodeUnicode'](_0x2492aa));_0x1c81dd['originalMeta']=_0x3596b7,Object[_0x3d37d0(0x530)](_0x1c81dd[_0x3d37d0(0x2d4)])[_0x3d37d0(0x278)](([,_0x108987])=>{const _0x4beb6f=_0x3d37d0,_0x591961=_0x108987[_0x4beb6f(0x31c)],_0x2e6843=p[_0x4beb6f(0x27f)][_0x4beb6f(0x602)](p['b64DecodeUnicode'](_0x591961));_0x108987[_0x4beb6f(0x31c)]=_0x2e6843;});}return _0x3482b9;}async[_0x37a374(0x514)](_0x17885d,_0x454e65){const _0xaf736=_0x37a374,{unitID:_0x58ef3a,type:_0x1468ff,blockID:_0x727885}=_0x454e65,_0x1a71b0=this['_getAPIPrefix']()+'/'+_0x1468ff+_0xaf736(0x625)+_0x58ef3a+_0xaf736(0x5e8)+_0x727885;return(await this['_httpService'][_0xaf736(0x5bf)](_0x1a71b0))[_0xaf736(0x360)];}async['getDeserializedSheetBlock'](_0x547711,_0x403152){const _0x4a3a9a=_0x37a374,{unitID:_0x24097b,type:_0x261dcd,blockID:_0x1d65ea}=_0x403152,_0x4d6356=this[_0x4a3a9a(0x45b)]()+_0x4a3a9a(0x5e8)+_0x261dcd+'/unit/'+_0x24097b+'/block/'+_0x1d65ea;return(await this['_httpService'][_0x4a3a9a(0x5bf)](_0x4d6356))[_0x4a3a9a(0x360)];}async[_0x37a374(0x525)](_0x2414ac,_0x4f52f0){const _0x93a896=_0x37a374,{unitID:_0x57e018,type:_0x106909,from:_0x3edfbf,to:_0x5b9cef}=_0x4f52f0,_0x18a58d=this['_getAPIPrefix']()+'/'+_0x106909+_0x93a896(0x625)+_0x57e018+_0x93a896(0x348)+_0x3edfbf+'&to='+_0x5b9cef;return(await this[_0x93a896(0x20d)][_0x93a896(0x5bf)](_0x18a58d))[_0x93a896(0x360)];}['_getSnapshotAPIPrefix'](){const _0x2c7bb2=_0x37a374;var _0x2ebd13;return(_0x2ebd13=this[_0x2c7bb2(0x3e7)][_0x2c7bb2(0x37d)](Zt))!=null?_0x2ebd13:this[_0x2c7bb2(0x45b)]();}[_0x37a374(0x45b)](){const _0x240564=_0x37a374;var _0x2008cc,_0x2d80fa;const _0x31b06b=this[_0x240564(0x3e7)]['getConfig'](Jt),_0x4b0ae5=this[_0x240564(0x3e7)][_0x240564(0x37d)](ne);return(_0x2d80fa=(_0x2008cc=_0x4b0ae5==null?void 0x0:_0x4b0ae5['snapshotServerUrl'])!=null?_0x2008cc:_0x31b06b)!=null?_0x2d80fa:xn;}async[_0x37a374(0x3a6)](_0x5cee71,_0x540c81){const _0x47c091=_0x37a374,_0x3cfad5=_0x47c091(0x60c)+_0x540c81[_0x47c091(0x1d2)]+'/unit/'+_0x540c81[_0x47c091(0x505)]+_0x47c091(0x26f);return(await this[_0x47c091(0x20d)]['get'](_0x3cfad5,{'params':{'resourceId':JSON[_0x47c091(0x3df)](_0x540c81[_0x47c091(0x5f2)])}}))[_0x47c091(0x360)];}[_0x37a374(0x50b)](){const _0x3dd64b=_0x37a374;throw new Error(_0x3dd64b(0x25b));}[_0x37a374(0x221)](){const _0x125485=_0x37a374;throw new Error(_0x125485(0x25b));}[_0x37a374(0x22a)](){const _0x2869e1=_0x37a374;throw new Error(_0x2869e1(0x25b));}['copyFileMeta'](){const _0x4b1b4e=_0x37a374;throw new Error(_0x4b1b4e(0x25b));}['getLatestCsReqIdBySid'](){const _0x1a3ace=_0x37a374;throw new Error(_0x1a3ace(0x25b));}},exports[_0x37a374(0x457)]=Lr([Xt(0x0,a[_0x37a374(0x30b)]),Xt(0x1,a[_0x37a374(0x629)](Q['HTTPService']))],exports[_0x37a374(0x457)]);var xr=Object['defineProperty'],$r=Object['getOwnPropertyDescriptor'],jr=(_0xe1d711,_0x57f185,_0x429805,_0x48e749)=>{const _0x5348eb=_0x37a374;for(var _0x4be63e=_0x48e749>0x1?void 0x0:_0x48e749?$r(_0x57f185,_0x429805):_0x57f185,_0x3e4dcd=_0xe1d711[_0x5348eb(0x330)]-0x1,_0x1d9412;_0x3e4dcd>=0x0;_0x3e4dcd--)(_0x1d9412=_0xe1d711[_0x3e4dcd])&&(_0x4be63e=(_0x48e749?_0x1d9412(_0x57f185,_0x429805,_0x4be63e):_0x1d9412(_0x4be63e))||_0x4be63e);return _0x48e749&&_0x4be63e&&xr(_0x57f185,_0x429805,_0x4be63e),_0x4be63e;},Ae=(_0x299364,_0x341ad5)=>(_0x541f89,_0xd3b6fe)=>_0x341ad5(_0x541f89,_0xd3b6fe,_0x299364);let gt=class extends a[_0x37a374(0x60e)]{constructor(_0x39237b,_0x22fd65,_0x2764a6,_0x2c11de,_0x409b35){const _0xe87c66=_0x37a374;super(_0x39237b,_0x22fd65,_0x2764a6),this[_0xe87c66(0x541)]=_0x2c11de,this[_0xe87c66(0x58a)]=_0x409b35;}['transformUndoRedo'](_0x2a4675,_0x524de0){const _0x4be4b3=_0x37a374,_0x1214f6=this[_0x4be4b3(0x51c)](_0x2a4675);if(_0x1214f6)try{const _0x20411c=this[_0x4be4b3(0x60d)](_0x1214f6,_0x524de0);this['_substituteUndoStack'](_0x2a4675,_0x20411c);}catch(_0x4ac8d0){this[_0x4be4b3(0x58a)][_0x4be4b3(0x237)](_0x4be4b3(0x414),_0x4ac8d0),this['_clearUndo'](_0x2a4675);}const _0x198015=this[_0x4be4b3(0x59e)](_0x2a4675);if(_0x198015)try{const _0x50a4cf=this[_0x4be4b3(0x60d)](_0x198015,_0x524de0);this[_0x4be4b3(0x34d)](_0x2a4675,_0x50a4cf);}catch(_0x1020f0){this[_0x4be4b3(0x58a)]['error'](_0x1020f0),this[_0x4be4b3(0x642)](_0x2a4675);}}[_0x37a374(0x421)](_0x349047){const _0x78edc0=this['_getUndoStack'](_0x349047);_0x78edc0&&(_0x78edc0['length']=0x0,this['_updateStatus']());}[_0x37a374(0x642)](_0x2bed4e){const _0x4ef62d=_0x37a374,_0x308932=this[_0x4ef62d(0x59e)](_0x2bed4e);_0x308932&&(_0x308932[_0x4ef62d(0x330)]=0x0,this[_0x4ef62d(0x409)]());}[_0x37a374(0x5c2)](_0x222f18,_0x5ea173){const _0xe2cb37=_0x37a374;this[_0xe2cb37(0x515)]['set'](_0x222f18,_0x5ea173),this['_updateStatus']();}[_0x37a374(0x34d)](_0x10c50a,_0x107a2d){const _0x353393=_0x37a374;this['_redoStacks'][_0x353393(0x5d1)](_0x10c50a,_0x107a2d),this['_updateStatus']();}[_0x37a374(0x60d)](_0x55f051,_0x1def11){const _0xe736d4=_0x37a374,_0x376388=[];let _0xb3e360=_0x1def11,_0x4160e8=_0x1def11;for(let _0x4245ed=_0x55f051['length']-0x1;_0x4245ed>=0x0;_0x4245ed--){const {unitID:_0x5b3f0b,undoMutations:_0x162741,redoMutations:_0x1626c7}=_0x55f051[_0x4245ed],_0x545277=this[_0xe736d4(0x541)][_0xe736d4(0x45f)](_0xb3e360,_0x162741),_0x574263=this['_transformService'][_0xe736d4(0x45f)](_0x4160e8,_0x1626c7);if(p[_0xe736d4(0x62a)](_0x545277)||p[_0xe736d4(0x62a)](_0x574263)){this[_0xe736d4(0x58a)][_0xe736d4(0x237)]('[CollaborationUndoRedoService]',_0xe736d4(0x4fb),_0x545277,_0x574263);break;}_0xb3e360=_0x545277['c1Prime'],_0x4160e8=_0x574263[_0xe736d4(0x3c6)],_0x376388['push']({'unitID':_0x5b3f0b,'undoMutations':_0x545277[_0xe736d4(0x3b2)],'redoMutations':_0x574263[_0xe736d4(0x3b2)]});}return _0x376388[_0xe736d4(0x3c9)]();}};gt=jr([Ae(0x0,a[_0x37a374(0x662)]),Ae(0x1,a[_0x37a374(0x30c)]),Ae(0x2,a[_0x37a374(0x49f)]),Ae(0x3,p['ITransformService']),Ae(0x4,a[_0x37a374(0x217)])],gt);class Pn extends a[_0x37a374(0x2f7)]{constructor(){const _0x581b9e=_0x37a374;super(),I(this,_0x581b9e(0x29f)),this['urlChange$']=A[_0x581b9e(0x294)](window,_0x581b9e(0x555))['pipe'](A[_0x581b9e(0x27d)](this[_0x581b9e(0x574)]),A[_0x581b9e(0x3ae)](0x1),A[_0x581b9e(0x29e)](void 0x0));}[_0x37a374(0x4f8)](_0x8cb13b,_0x56a292,_0x49f34b=!0x1){const _0x4e3e99=_0x37a374,_0x305d57=new URL(window['location'][_0x4e3e99(0x310)]);_0x305d57[_0x4e3e99(0x2de)]['set'](_0x8cb13b,_0x56a292),_0x49f34b?window[_0x4e3e99(0x477)]['replaceState']('','',_0x305d57[_0x4e3e99(0x4d2)]()):window['history'][_0x4e3e99(0x33a)]('','',_0x305d57[_0x4e3e99(0x4d2)]());}[_0x37a374(0x2b4)](_0x51b370,_0x2be40a=!0x1){const _0x2d7ade=_0x37a374,_0x52e4d5=new URL(window[_0x2d7ade(0x34c)][_0x2d7ade(0x310)]);_0x52e4d5[_0x2d7ade(0x2de)][_0x2d7ade(0x412)](_0x51b370),_0x2be40a?window['history'][_0x2d7ade(0x418)]('','',_0x52e4d5[_0x2d7ade(0x4d2)]()):window[_0x2d7ade(0x477)][_0x2d7ade(0x33a)]('','',_0x52e4d5['toString']());}['getParam'](_0x30a8ab){const _0x550697=_0x37a374;var _0x5d1916;return(_0x5d1916=new URL(window[_0x550697(0x34c)][_0x550697(0x310)])[_0x550697(0x2de)][_0x550697(0x5bf)](_0x30a8ab))!=null?_0x5d1916:void 0x0;}}var Un=Object[_0x37a374(0x55e)],Hr=Object['getOwnPropertyDescriptor'],Br=(_0x5e3d6c,_0x553f16,_0x1255c2)=>_0x553f16 in _0x5e3d6c?Un(_0x5e3d6c,_0x553f16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1255c2}):_0x5e3d6c[_0x553f16]=_0x1255c2,kr=(_0x5b701a,_0x42e6a1,_0x226e05,_0x14b86a)=>{const _0x3e51d6=_0x37a374;for(var _0x4c26ca=_0x14b86a>0x1?void 0x0:_0x14b86a?Hr(_0x42e6a1,_0x226e05):_0x42e6a1,_0x17d86d=_0x5b701a[_0x3e51d6(0x330)]-0x1,_0x54668a;_0x17d86d>=0x0;_0x17d86d--)(_0x54668a=_0x5b701a[_0x17d86d])&&(_0x4c26ca=(_0x14b86a?_0x54668a(_0x42e6a1,_0x226e05,_0x4c26ca):_0x54668a(_0x4c26ca))||_0x4c26ca);return _0x14b86a&&_0x4c26ca&&Un(_0x42e6a1,_0x226e05,_0x4c26ca),_0x4c26ca;},He=(_0x1b55e2,_0x5ba626)=>(_0x15e293,_0x1ced3f)=>_0x5ba626(_0x15e293,_0x1ced3f,_0x1b55e2),Wr=(_0x43e4da,_0x2faef5,_0x58d68)=>Br(_0x43e4da,_0x2faef5+'',_0x58d68);const Fr=_0x37a374(0x481);exports[_0x37a374(0x26d)]=class extends a[_0x37a374(0x355)]{constructor(_0x5476ee=Yn,_0x33ff00,_0x211c30,_0x3c59d6,_0x46a85d){const _0x20ee11=_0x37a374;super(),this[_0x20ee11(0x4fd)]=_0x5476ee,this[_0x20ee11(0x58a)]=_0x33ff00,this['_renderManagerService']=_0x211c30,this['_injector']=_0x3c59d6,this[_0x20ee11(0x3e7)]=_0x46a85d;const {..._0x145cbb}=this[_0x20ee11(0x4fd)];this['_configService'][_0x20ee11(0x222)](ne,_0x145cbb);}[_0x37a374(0x648)](){const _0x4ca223=_0x37a374;this[_0x4ca223(0x560)](),this[_0x4ca223(0x372)]();}['onReady'](){const _0x48e4ca=_0x37a374;a[_0x48e4ca(0x4f5)](this['_injector'],[[Ve]]);}['onRendered'](){const _0x52d942=_0x37a374;this[_0x52d942(0x67b)]();}[_0x37a374(0x560)](){const _0x21b365=_0x37a374;var _0x22cb5d,_0x360706,_0x5aa8f5,_0x242436;this[_0x21b365(0x58f)]['has'](a[_0x21b365(0x3cd)])&&this[_0x21b365(0x58a)]['error'](_0x21b365(0x4b9),_0x21b365(0x2a5));const _0x46dd41=[[a['IUndoRedoService'],{'useClass':gt}],[exports[_0x21b365(0x5e2)]],[yt],[Dt,{'useClass':Pn}],[exports[_0x21b365(0x33d)]],[exports['LocalCacheService']],[Q[_0x21b365(0x319)]],[ke],[Fe],[Be],[We],[Tt],[Ge],[Ye],[bt],[Ke],[Et,{'useClass':(_0x360706=(_0x22cb5d=this['_config'])==null?void 0x0:_0x22cb5d['socketService'])!=null?_0x360706:exports[_0x21b365(0x23f)]}],[p[_0x21b365(0x5cb)],{'useClass':exports[_0x21b365(0x457)]}],[a[_0x21b365(0x54a)],{'useClass':exports[_0x21b365(0x361)]}],[ie[_0x21b365(0x46f)],{'useClass':exports['ImageIoService']}],[exports[_0x21b365(0x511)]],[exports[_0x21b365(0x61a)]],[exports[_0x21b365(0x4b3)]],[Ve],[Oe]];(_0x5aa8f5=this[_0x21b365(0x4fd)])!=null&&_0x5aa8f5[_0x21b365(0x49d)]&&_0x46dd41[_0x21b365(0x257)]([qe,{'useClass':Ti}]),a[_0x21b365(0x213)](this['_injector'],a['mergeOverrideWithDependencies'](_0x46dd41,(_0x242436=this['_config'])==null?void 0x0:_0x242436[_0x21b365(0x476)]));}['_registerRenderDependencies'](){const _0x888b71=_0x37a374;this[_0x888b71(0x4d6)](this[_0x888b71(0x427)][_0x888b71(0x548)](a[_0x888b71(0x22d)][_0x888b71(0x619)],[pt])),this[_0x888b71(0x4d6)](this[_0x888b71(0x427)][_0x888b71(0x548)](a[_0x888b71(0x22d)][_0x888b71(0x362)],[St]));}['_initDependencies'](){const _0x454b1d=_0x37a374;var _0x13a7fa,_0x2b0be4;this[_0x454b1d(0x58f)]['get'](Q[_0x454b1d(0x34f)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':Q[_0x454b1d(0x2e6)]({'maxParallel':0x6})}),(_0x13a7fa=this[_0x454b1d(0x4fd)])!=null&&_0x13a7fa[_0x454b1d(0x2f1)]||this['_injector'][_0x454b1d(0x5bf)](exports['LocalCacheService'])[_0x454b1d(0x3f1)](),(_0x2b0be4=this[_0x454b1d(0x4fd)])!=null&&_0x2b0be4['enableAuthServer']&&a['touchDependencies'](this['_injector'],[[Ge]]),a[_0x454b1d(0x4f5)](this[_0x454b1d(0x58f)],[[Ye],[Oe],[exports[_0x454b1d(0x61a)]],[exports[_0x454b1d(0x511)]],[exports[_0x454b1d(0x4b3)]],[Ke]]);}},Wr(exports['UniverCollaborationClientPlugin'],_0x37a374(0x2ae),Fr),exports[_0x37a374(0x26d)]=kr([a[_0x37a374(0x597)](p[_0x37a374(0x2be)],Q[_0x37a374(0x4f2)]),He(0x1,a['ILogService']),He(0x2,K[_0x37a374(0x55f)]),He(0x3,a[_0x37a374(0x629)](a['Injector'])),He(0x4,a[_0x37a374(0x30b)])],exports[_0x37a374(0x26d)]),exports[_0x37a374(0x65b)]=En,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=rn,exports[_0x37a374(0x212)]=Qt,exports[_0x37a374(0x28f)]=q,exports['CollaborationStatusDisplay']=Cn,exports['CommentService']=bt,exports[_0x37a374(0x1f1)]=en,exports['HEARTBEAT_TIMEOUT_KEY']=It,exports[_0x37a374(0x45e)]=Et,exports['IURLService']=Dt,exports[_0x37a374(0x44b)]=sn,exports[_0x37a374(0x20f)]=on,exports[_0x37a374(0x3e1)]=nn,exports[_0x37a374(0x2dd)]=$n,exports[_0x37a374(0x43a)]=Jt,exports[_0x37a374(0x2a3)]=Zt,exports[_0x37a374(0x246)]=re,exports[_0x37a374(0x5a0)]=mn,exports[_0x37a374(0x343)]=Pn,exports[_0x37a374(0x1f3)]=ln,exports[_0x37a374(0x37a)]=hn;