@univerjs-pro/collaboration-client 0.2.1 → 0.2.3
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/locale/en-US.json +2 -1
- package/lib/locale/ru-RU.json +2 -1
- package/lib/locale/vi-VN.json +33 -0
- package/lib/locale/zh-CN.json +2 -1
- package/lib/locale/zh-TW.json +33 -0
- package/lib/types/locale/vi-VN.d.ts +4 -0
- package/lib/types/locale/zh-CN.d.ts +1 -0
- package/lib/types/locale/zh-TW.d.ts +4 -0
- package/lib/types/services/permission/permission.service.d.ts +14 -0
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +4 -0
- package/lib/umd/index.js +1 -1
- package/package.json +27 -27
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x18d643=_0x1f13;(function(_0x2b45b9,_0x423af7){const _0x3bcf38=_0x1f13,_0x545c93=_0x2b45b9();while(!![]){try{const _0x394ddf=parseInt(_0x3bcf38(0x389))/0x1+-parseInt(_0x3bcf38(0x471))/0x2+-parseInt(_0x3bcf38(0x4a6))/0x3+parseInt(_0x3bcf38(0x286))/0x4+parseInt(_0x3bcf38(0x384))/0x5+-parseInt(_0x3bcf38(0x472))/0x6*(-parseInt(_0x3bcf38(0x319))/0x7)+-parseInt(_0x3bcf38(0x388))/0x8;if(_0x394ddf===_0x423af7)break;else _0x545c93['push'](_0x545c93['shift']());}catch(_0x349ab9){_0x545c93['push'](_0x545c93['shift']());}}}(_0x7f1e,0x5e2f3));var $t=Object[_0x18d643(0x44c)],Ht=(_0x15befd,_0x34f495,_0x5d7390)=>_0x34f495 in _0x15befd?$t(_0x15befd,_0x34f495,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d7390}):_0x15befd[_0x34f495]=_0x5d7390,d=(_0x14a314,_0x3021bf,_0x8d329c)=>Ht(_0x14a314,typeof _0x3021bf!=_0x18d643(0x4c3)?_0x3021bf+'':_0x3021bf,_0x8d329c);Object[_0x18d643(0x44c)](exports,Symbol[_0x18d643(0x2d0)],{'value':_0x18d643(0x3dd)});const a=require('@univerjs/core'),E=require(_0x18d643(0x239)),oe=require(_0x18d643(0x496)),N=require('@univerjs/ui'),u=require('@univerjs-pro/collaboration'),h=require(_0x18d643(0x3aa)),g=require(_0x18d643(0x15b)),T=require(_0x18d643(0x154)),y=require(_0x18d643(0x1d3)),P=require(_0x18d643(0x24d)),A=require(_0x18d643(0x1a5)),Ke=require(_0x18d643(0x1c9)),He=require(_0x18d643(0x12d)),R=require(_0x18d643(0x325)),ee=require(_0x18d643(0x300)),ct=require(_0x18d643(0x3c6)),L=require(_0x18d643(0x333)),xt=require('clsx'),kt=require(_0x18d643(0x193)),lt='SNAPSHOT_SERVER_URL_KEY',Bt=_0x18d643(0x265),ht=_0x18d643(0x215),_t=_0x18d643(0x2f1),Ft=0x7d0,ut=_0x18d643(0x209),Vt=_0x18d643(0x3b6),dt=_0x18d643(0x2af),Wt=0x7530,xe=_0x18d643(0x16b),St=0x2710,Gt=_0x18d643(0x42c),Yt=0x4e20,Kt=_0x18d643(0x272),Xt=0x3,vt=_0x18d643(0x1ee),qt=0x3e8,gt='COLLAB_SUBMIT_CHANGESET_URL',zt=_0x18d643(0x14c),ft='LOGIN_URL_KEY',Jt=_0x18d643(0x19b);var mt=(_0x1bcf1a=>(_0x1bcf1a[_0x1bcf1a['UNDEFINED']=0x0]=_0x18d643(0x29f),_0x1bcf1a[_0x1bcf1a['OK']=0x1]='OK',_0x1bcf1a[_0x1bcf1a[_0x18d643(0x14e)]=0x2]='INTERNAL_ERROR',_0x1bcf1a[_0x1bcf1a[_0x18d643(0x394)]=0x3]='PERMISSION_DENIED',_0x1bcf1a[_0x1bcf1a['NOT_FOUND']=0x4]=_0x18d643(0x307),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x40b)]=0x5]=_0x18d643(0x40b),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x23a)]=0x6]=_0x18d643(0x23a),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x3c0)]=0x7]=_0x18d643(0x3c0),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x377)]=0x8]=_0x18d643(0x377),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x16d)]=0x9]=_0x18d643(0x16d),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x254)]=0x1389]=_0x18d643(0x254),_0x1bcf1a[_0x1bcf1a['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x18d643(0x1e4),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x1d2)]=0x1772]=_0x18d643(0x1d2),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x1ad)]=0x1b59]=_0x18d643(0x1ad),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x461)]=0x1b5a]=_0x18d643(0x461),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x4bf)]=0x1b5b]=_0x18d643(0x4bf),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x497)]=0x1b5c]=_0x18d643(0x497),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x4cb)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1bcf1a[_0x1bcf1a[_0x18d643(0x1a3)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1bcf1a[_0x1bcf1a['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x18d643(0x48d),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x204)]=0x232b]=_0x18d643(0x204),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x244)]=0x232c]=_0x18d643(0x244),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x25d)]=0x232d]=_0x18d643(0x25d),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x4d4)]=0x2711]=_0x18d643(0x4d4),_0x1bcf1a[_0x1bcf1a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x18d643(0x305),_0x1bcf1a[_0x1bcf1a[_0x18d643(0x3f6)]=-0x1]=_0x18d643(0x3f6),_0x1bcf1a))(mt||{}),j=(_0xd48f2=>(_0xd48f2[_0xd48f2[_0x18d643(0x395)]=0x0]=_0x18d643(0x395),_0xd48f2[_0xd48f2['UNIVER_DOC']=0x1]='UNIVER_DOC',_0xd48f2[_0xd48f2[_0x18d643(0x314)]=0x2]='UNIVER_SHEET',_0xd48f2[_0xd48f2[_0x18d643(0x1b9)]=0x3]=_0x18d643(0x1b9),_0xd48f2[_0xd48f2[_0x18d643(0x3f6)]=-0x1]=_0x18d643(0x3f6),_0xd48f2))(j||{}),b=(_0x9873c9=>(_0x9873c9[_0x9873c9['UNKNOWN_CMD']=0x0]=_0x18d643(0x21c),_0x9873c9[_0x9873c9['HELLO']=0x1]=_0x18d643(0x2e5),_0x9873c9[_0x9873c9[_0x18d643(0x22c)]=0x2]=_0x18d643(0x22c),_0x9873c9[_0x9873c9[_0x18d643(0x139)]=0x3]=_0x18d643(0x139),_0x9873c9[_0x9873c9[_0x18d643(0x3ec)]=0x4]=_0x18d643(0x3ec),_0x9873c9[_0x9873c9['HEARTBEAT']=0x5]=_0x18d643(0x266),_0x9873c9[_0x9873c9['RECV']=0x6]='RECV',_0x9873c9[_0x9873c9['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x9873c9))(b||{}),ke=(_0x35110b=>(_0x35110b[_0x35110b[_0x18d643(0x1e9)]=0x0]=_0x18d643(0x1e9),_0x35110b[_0x35110b['OK']=0x1]='OK',_0x35110b[_0x35110b[_0x18d643(0x33f)]=0x2]=_0x18d643(0x33f),_0x35110b[_0x35110b[_0x18d643(0x3f6)]=-0x1]=_0x18d643(0x3f6),_0x35110b))(ke||{}),Zt=Object[_0x18d643(0x44c)],Qt=Object[_0x18d643(0x334)],es=(_0x25a11b,_0x3469c0,_0x39a0d1,_0x10b223)=>{for(var _0x4441ab=_0x10b223>0x1?void 0x0:_0x10b223?Qt(_0x3469c0,_0x39a0d1):_0x3469c0,_0x2c9980=_0x25a11b['length']-0x1,_0x702c64;_0x2c9980>=0x0;_0x2c9980--)(_0x702c64=_0x25a11b[_0x2c9980])&&(_0x4441ab=(_0x10b223?_0x702c64(_0x3469c0,_0x39a0d1,_0x4441ab):_0x702c64(_0x4441ab))||_0x4441ab);return _0x10b223&&_0x4441ab&&Zt(_0x3469c0,_0x39a0d1,_0x4441ab),_0x4441ab;},Xe=(_0x36858e,_0x260061)=>(_0x30f6ba,_0x5380e6)=>_0x260061(_0x30f6ba,_0x5380e6,_0x36858e);let G=class extends a[_0x18d643(0x480)]{constructor(_0x3b28b3,_0x1d77be){const _0x3caccf=_0x18d643;super(),d(this,_0x3caccf(0x1bd),new Map()),(this[_0x3caccf(0x437)]=_0x3b28b3,this[_0x3caccf(0x1fc)]=_0x1d77be,this[_0x3caccf(0x352)](a[_0x3caccf(0x345)](g[_0x3caccf(0x225)](this[_0x3caccf(0x437)]['getTypeOfUnitDisposed$'](a[_0x3caccf(0x17c)][_0x3caccf(0x314)])['pipe'](T['map'](_0x574176=>_0x574176[_0x3caccf(0x3fd)]())),this[_0x3caccf(0x437)][_0x3caccf(0x31a)](a[_0x3caccf(0x17c)][_0x3caccf(0x336)])['pipe'](T[_0x3caccf(0x3a3)](_0x5a595f=>_0x5a595f['getUnitId']())),this[_0x3caccf(0x437)][_0x3caccf(0x31a)](a['UniverInstanceType'][_0x3caccf(0x1b9)])['pipe'](T['map'](_0x38483c=>_0x38483c[_0x3caccf(0x3fd)]())))[_0x3caccf(0x18b)](_0x2c8898=>this[_0x3caccf(0x3c8)](_0x2c8898)))));}[_0x18d643(0x465)](_0x47a21e){const _0x2d3e41=_0x18d643;this[_0x2d3e41(0x1fc)][_0x2d3e41(0x465)](_0x47a21e);}['getCurrentUser'](){const _0x460402=_0x18d643;return this[_0x460402(0x1fc)][_0x460402(0x2f2)]();}[_0x18d643(0x2fa)](_0x5b35f9,_0x277c72){const _0xd4314f=_0x18d643;let _0x3bb0da=this[_0xd4314f(0x1bd)]['get'](_0x5b35f9);_0x3bb0da||(_0x3bb0da=new ts(),this['_roomMembers'][_0xd4314f(0x3db)](_0x5b35f9,_0x3bb0da)),_0x3bb0da[_0xd4314f(0x2fa)](_0x277c72);}[_0x18d643(0x3d4)](_0x4b6130,_0x1b38f7){const _0x158765=_0x18d643,_0x212a7d=this[_0x158765(0x1bd)]['get'](_0x4b6130);_0x212a7d&&_0x212a7d[_0x158765(0x3d4)](_0x1b38f7);}[_0x18d643(0x4ba)](_0x1309b1){return this['_roomMembers']['get'](_0x1309b1);}[_0x18d643(0x477)](_0x15d305,_0xcec98c){const _0xef468c=_0x18d643,_0x76a90=this[_0xef468c(0x1bd)]['get'](_0x15d305);if(_0x76a90)return _0x76a90['getMember'](_0xcec98c);}[_0x18d643(0x3c8)](_0x4bbcf3){const _0x5d4d07=_0x18d643,_0x3b1996=this[_0x5d4d07(0x1bd)][_0x5d4d07(0x1bc)](_0x4bbcf3);_0x3b1996&&(_0x3b1996[_0x5d4d07(0x318)](),this['_roomMembers']['delete'](_0x4bbcf3));}['dispose'](){const _0x316605=_0x18d643;this['_roomMembers'][_0x316605(0x2eb)](_0x33f26e=>_0x33f26e[_0x316605(0x318)]()),this['_roomMembers'][_0x316605(0x3be)]();}};G=es([Xe(0x0,a[_0x18d643(0x3d1)]),Xe(0x1,h['Inject'](a[_0x18d643(0x157)]))],G);class ts extends a[_0x18d643(0x480)]{constructor(){const _0x9cf93b=_0x18d643;super(...arguments),d(this,_0x9cf93b(0x355),new Map());}['dispose'](){const _0x11b745=_0x18d643;this['_members'][_0x11b745(0x3be)]();}[_0x18d643(0x2fa)](_0x193c09){const _0x4d0f8c=_0x18d643;this[_0x4d0f8c(0x355)]['set'](_0x193c09[_0x4d0f8c(0x4ae)],_0x193c09);}[_0x18d643(0x3d4)](_0x357938){const _0x47793b=_0x18d643;this[_0x47793b(0x355)][_0x47793b(0x35c)](_0x357938);}['getMember'](_0x43a714){return this['_members']['get'](_0x43a714);}}function It(_0x16b6e6){const _0x55b629=_0x18d643;var _0x3d6205,_0xba1f8,_0x1d3dd6,_0x37cc3a;const _0x14f387=_0x16b6e6[_0x55b629(0x39f)],_0x197115=JSON['parse'](_0x14f387);switch(_0x197115[_0x55b629(0x37c)]){case b[_0x55b629(0x266)]:case b[_0x55b629(0x2e5)]:{const _0x43c7af=_0x197115[_0x55b629(0x41e)];return{..._0x197115,'data':_0x43c7af,'cmd':_0x197115[_0x55b629(0x37c)]};}case b['JOIN']:{const _0x2cdc75=_0x197115[_0x55b629(0x450)];return{..._0x197115,'data':_0x2cdc75,'cmd':_0x197115[_0x55b629(0x37c)]};}case b[_0x55b629(0x44f)]:{const _0x893b0b=_0x197115[_0x55b629(0x275)];switch(_0x893b0b[_0x55b629(0x2de)]){case u[_0x55b629(0x198)][_0x55b629(0x475)]:return{..._0x197115,'data':{..._0x893b0b,'data':(_0x3d6205=_0x893b0b[_0x55b629(0x383)])==null?void 0x0:_0x3d6205['cs']},'cmd':_0x197115[_0x55b629(0x37c)]};case u[_0x55b629(0x198)][_0x55b629(0x24a)]:return{..._0x197115,'data':{..._0x893b0b,'data':(_0xba1f8=_0x893b0b[_0x55b629(0x3b0)])==null?void 0x0:_0xba1f8['cs']},'cmd':_0x197115[_0x55b629(0x37c)]};case u[_0x55b629(0x198)][_0x55b629(0x131)]:return{..._0x197115,'data':{..._0x893b0b,'data':(_0x1d3dd6=_0x893b0b['newCsEvent'])==null?void 0x0:_0x1d3dd6['cs']},'cmd':_0x197115['cmd']};case u[_0x55b629(0x198)][_0x55b629(0x495)]:return{..._0x197115,'data':{..._0x893b0b,'data':(_0x37cc3a=_0x893b0b[_0x55b629(0x2f8)])==null?void 0x0:_0x37cc3a['cs']},'cmd':_0x197115[_0x55b629(0x37c)]};case u[_0x55b629(0x198)][_0x55b629(0x2b7)]:return{..._0x197115,'data':{..._0x893b0b,'data':_0x893b0b[_0x55b629(0x4d2)]},'cmd':_0x197115['cmd']};case u['CollaborationEvent'][_0x55b629(0x46a)]:return{..._0x197115,'data':{..._0x893b0b,'data':_0x893b0b[_0x55b629(0x3e7)]},'cmd':_0x197115[_0x55b629(0x37c)]};case u['CollaborationEvent']['USERS_LEAVE']:return{..._0x197115,'data':{..._0x893b0b,'data':_0x893b0b['leaveEvent']},'cmd':_0x197115[_0x55b629(0x37c)]};case u[_0x55b629(0x198)][_0x55b629(0x4b3)]:return{..._0x197115,'data':{..._0x893b0b,'data':_0x893b0b[_0x55b629(0x3a5)]},'cmd':_0x197115[_0x55b629(0x37c)]};case u[_0x55b629(0x198)][_0x55b629(0x4d3)]:case u[_0x55b629(0x198)][_0x55b629(0x27c)]:return{..._0x197115,'data':{..._0x893b0b,'data':_0x893b0b[_0x55b629(0x282)]},'cmd':_0x197115[_0x55b629(0x37c)]};case u[_0x55b629(0x198)]['LIVESHARE_TERMINATE']:return{..._0x197115,'data':{..._0x893b0b,'data':_0x893b0b['liveShareNewHost']},'cmd':_0x197115[_0x55b629(0x37c)]};case u['CollaborationEvent'][_0x55b629(0x421)]:return{..._0x197115,'data':_0x893b0b,'cmd':_0x197115['cmd']};case u[_0x55b629(0x198)][_0x55b629(0x398)]:return{..._0x197115,'data':{..._0x893b0b,'data':_0x893b0b['commentUpdateEvent']},'cmd':_0x197115['cmd']};default:return _0x197115;}}default:return _0x197115;}}function pt(_0x3883f2){const _0x352297=_0x18d643;switch(_0x3883f2[_0x352297(0x37c)]){case b['HEARTBEAT']:case b[_0x352297(0x2e5)]:return JSON[_0x352297(0x3d8)]({'cmd':_0x3883f2[_0x352297(0x37c)],'routeKey':_0x3883f2[_0x352297(0x3ff)]});case b['INGEST']:{let _0x841f2d;switch(_0x3883f2['data'][_0x352297(0x2de)]){case u['CollaborationEvent'][_0x352297(0x2b7)]:{_0x841f2d={'eventID':u['CollaborationEvent'][_0x352297(0x2b7)],'updateCursorEvent':_0x3883f2[_0x352297(0x39f)][_0x352297(0x39f)]};break;}case u[_0x352297(0x198)][_0x352297(0x223)]:{_0x841f2d={'eventID':u[_0x352297(0x198)][_0x352297(0x223)],'leaveEvent':_0x3883f2['data']['data']};break;}case u[_0x352297(0x198)][_0x352297(0x46a)]:{_0x841f2d={'eventID':u['CollaborationEvent'][_0x352297(0x46a)],'joinEvent':_0x3883f2[_0x352297(0x39f)][_0x352297(0x39f)]};break;}case u[_0x352297(0x198)]['LIVESHARE_NEW_HOST']:{_0x841f2d={'eventID':u[_0x352297(0x198)][_0x352297(0x4b3)],'liveShareNewHost':_0x3883f2[_0x352297(0x39f)]['data']};break;}case u[_0x352297(0x198)][_0x352297(0x27c)]:{_0x841f2d={'eventID':u[_0x352297(0x198)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3883f2[_0x352297(0x39f)][_0x352297(0x39f)]};break;}case u[_0x352297(0x198)][_0x352297(0x29b)]:{_0x841f2d={'eventID':u[_0x352297(0x198)][_0x352297(0x29b)],'liveShareTerminate':_0x3883f2[_0x352297(0x39f)][_0x352297(0x39f)]};break;}case u[_0x352297(0x198)][_0x352297(0x38f)]:{_0x841f2d={'eventID':u[_0x352297(0x198)][_0x352297(0x38f)],'liveShareRequestHost':_0x3883f2['data'][_0x352297(0x39f)]};break;}case u[_0x352297(0x198)]['LIVESHARE_FETCH_OPERATIONS']:{_0x841f2d={'eventID':u[_0x352297(0x198)][_0x352297(0x4d3)]};break;}default:_0x841f2d={'eventID':_0x3883f2[_0x352297(0x39f)][_0x352297(0x2de)]};}return JSON[_0x352297(0x3d8)]({'cmd':_0x3883f2['cmd'],'routeKey':_0x3883f2['routeKey'],'collaMsg':_0x841f2d});}case b[_0x352297(0x22c)]:return JSON[_0x352297(0x3d8)]({'cmd':_0x3883f2[_0x352297(0x37c)],'routeKey':_0x3883f2[_0x352297(0x3ff)],'joinReq':_0x3883f2[_0x352297(0x39f)]});case b[_0x352297(0x139)]:return JSON[_0x352297(0x3d8)]({'cmd':_0x3883f2[_0x352297(0x37c)],'routeKey':_0x3883f2[_0x352297(0x3ff)],'leaveReq':_0x3883f2[_0x352297(0x39f)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ss=Object['defineProperty'],is=Object[_0x18d643(0x334)],ns=(_0x2e0fce,_0x30a011,_0x258c8c,_0x2f4a3b)=>{for(var _0x5af96f=_0x2f4a3b>0x1?void 0x0:_0x2f4a3b?is(_0x30a011,_0x258c8c):_0x30a011,_0x161448=_0x2e0fce['length']-0x1,_0x22969b;_0x161448>=0x0;_0x161448--)(_0x22969b=_0x2e0fce[_0x161448])&&(_0x5af96f=(_0x2f4a3b?_0x22969b(_0x30a011,_0x258c8c,_0x5af96f):_0x22969b(_0x5af96f))||_0x5af96f);return _0x2f4a3b&&_0x5af96f&&ss(_0x30a011,_0x258c8c,_0x5af96f),_0x5af96f;},te=(_0xe15a1d,_0xadc254)=>(_0x598c01,_0x1a92a)=>_0xadc254(_0x598c01,_0x1a92a,_0xe15a1d);const Be=h[_0x18d643(0x1d0)](_0x18d643(0x434));function rs(_0x5ccc46,_0x20383f,_0x49ac6b){const _0xa7289=_0x18d643;return _0x5ccc46+'/'+_0x20383f+'/unit/'+_0x49ac6b+_0xa7289(0x36a);}exports[_0x18d643(0x4cf)]=class{constructor(_0x124d0c,_0x471bf2,_0x4978c7,_0x4f7682,_0x4f4389){const _0x53395d=_0x18d643;this[_0x53395d(0x1c8)]=_0x124d0c,this['_ws']=_0x471bf2,this[_0x53395d(0x2b5)]=_0x4978c7,this[_0x53395d(0x132)]=_0x4f7682,this['_snapshotServerService']=_0x4f4389;}[_0x18d643(0x2dd)](_0x530e51){const _0x37c7b6=_0x18d643,_0x2373d6=this[_0x37c7b6(0x294)][_0x37c7b6(0x2dd)](_0x530e51);if(!_0x2373d6)throw new Error(_0x37c7b6(0x1b5));const _0x347b7e=new a[(_0x37c7b6(0x28f))](),_0x1974d7=new g[(_0x37c7b6(0x158))]();_0x347b7e['add'](a['toDisposable'](_0x2373d6['close$'][_0x37c7b6(0x18b)](_0x112128=>_0x1974d7[_0x37c7b6(0x33b)](_0x112128)))),_0x347b7e[_0x37c7b6(0x1f2)](a['toDisposable'](()=>_0x1974d7[_0x37c7b6(0x150)]()));const _0x484ebf=new g[(_0x37c7b6(0x158))]();_0x347b7e[_0x37c7b6(0x1f2)](a['toDisposable'](_0x2373d6[_0x37c7b6(0x29c)][_0x37c7b6(0x18b)](_0x50b45d=>_0x484ebf[_0x37c7b6(0x33b)](_0x50b45d)))),_0x347b7e['add'](a[_0x37c7b6(0x345)](()=>_0x484ebf['complete']()));const _0x2ad080=new g[(_0x37c7b6(0x158))]();_0x347b7e[_0x37c7b6(0x1f2)](a[_0x37c7b6(0x345)](_0x2373d6[_0x37c7b6(0x1ab)]['subscribe'](_0x3f9360=>{const _0x11e06b=_0x37c7b6,_0x5affe9=It(_0x3f9360);_0x2ad080[_0x11e06b(0x33b)](_0x5affe9);}))),_0x347b7e[_0x37c7b6(0x1f2)](a['toDisposable'](()=>_0x2ad080[_0x37c7b6(0x150)]()));const _0x4bc874=()=>{const _0x4eccc2=_0x37c7b6;_0x484ebf[_0x4eccc2(0x33b)](new Event(_0x4eccc2(0x19a))),_0x1974d7['next'](new CloseEvent(_0x4eccc2(0x19a))),_0x4b824b[_0x4eccc2(0x466)]();},_0x4b824b={'memberID':'','close$':_0x1974d7['asObservable'](),'error$':_0x484ebf[_0x37c7b6(0x221)](),'open$':_0x2373d6[_0x37c7b6(0x41f)],'message$':_0x2ad080['asObservable'](),'send':_0x29c35d=>{const _0x2c5b1b=_0x37c7b6;if(_0x29c35d[_0x2c5b1b(0x37c)]===b[_0x2c5b1b(0x3ec)]){if(_0x29c35d[_0x2c5b1b(0x39f)]['eventID']===u['CollaborationEvent'][_0x2c5b1b(0x4aa)]){this['_submitChangeset'](_0x4b824b,_0x29c35d['data'])[_0x2c5b1b(0x159)](_0x1f69c1=>{const _0x2c454c=_0x2c5b1b;this[_0x2c454c(0x132)][_0x2c454c(0x11e)](_0x1f69c1),_0x4bc874();});return;}if(_0x29c35d[_0x2c5b1b(0x39f)][_0x2c5b1b(0x2de)]===u[_0x2c5b1b(0x198)][_0x2c5b1b(0x148)]){const _0x587366=_0x29c35d[_0x2c5b1b(0x39f)];this[_0x2c5b1b(0x19e)](_0x587366)[_0x2c5b1b(0x270)](_0x22e029=>{const _0x5c9f44=_0x2c5b1b;_0x2ad080[_0x5c9f44(0x33b)]({'cmd':b[_0x5c9f44(0x44f)],'code':ke['OK'],'routeKey':_0x587366['data'][_0x5c9f44(0x432)],'routeType':'','data':{'eventID':u[_0x5c9f44(0x198)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x22e029}}});})[_0x2c5b1b(0x159)](_0x178fa0=>{const _0x474eaf=_0x2c5b1b;this[_0x474eaf(0x132)][_0x474eaf(0x11e)](_0x178fa0),_0x4bc874();});return;}}_0x2373d6[_0x2c5b1b(0x1ca)](pt(_0x29c35d));},'close':()=>{const _0x42651f=_0x37c7b6;_0x2373d6[_0x42651f(0x466)](),_0x347b7e[_0x42651f(0x318)]();}};return _0x4b824b;}async[_0x18d643(0x4be)](_0x30931b,_0x2df852){const _0x2d755b=_0x18d643;var _0x3c07b8;const {unitType:_0x5cfd3f,unitID:_0x4caa1a,changeset:_0x542939}=_0x2df852[_0x2d755b(0x39f)],_0x439d21={'unitID':_0x4caa1a,'memberID':_0x30931b[_0x2d755b(0x4ae)],'type':_0x5cfd3f,'changeset':u[_0x2d755b(0x3c5)](_0x542939)},_0x36ef4a=rs((_0x3c07b8=this[_0x2d755b(0x2b5)][_0x2d755b(0x46d)](gt))!=null?_0x3c07b8:zt,_0x5cfd3f,_0x4caa1a);try{await this[_0x2d755b(0x1c8)][_0x2d755b(0x312)](_0x36ef4a,{'body':_0x439d21});}catch(_0x36053f){throw this[_0x2d755b(0x132)][_0x2d755b(0x11e)](_0x2d755b(0x12a),_0x2d755b(0x418)),_0x36053f;}}async[_0x18d643(0x19e)](_0xcb060c){const _0x23bfa3=_0x18d643,{unitID:_0x4ebb1c,from:_0x287e4d,to:_0x785308,unitType:_0x446812}=_0xcb060c['data'];return(await this[_0x23bfa3(0x25f)][_0x23bfa3(0x253)]({'metadata':void 0x0},{'unitID':_0x4ebb1c,'type':_0x446812,'from':_0x287e4d,'to':_0x785308}))['changesets'];}},exports[_0x18d643(0x4cf)]=ns([te(0x0,h[_0x18d643(0x2ef)](P[_0x18d643(0x424)])),te(0x1,h[_0x18d643(0x2ef)](P['WebSocketService'])),te(0x2,a[_0x18d643(0x14b)]),te(0x3,a[_0x18d643(0x31e)]),te(0x4,a[_0x18d643(0x28c)])],exports[_0x18d643(0x4cf)]);class Fe{constructor(){const _0x4acb65=_0x18d643;d(this,'_commentUpdate$',new g[(_0x4acb65(0x158))]()),d(this,'commentUpdate$',this[_0x4acb65(0x248)][_0x4acb65(0x221)]());}[_0x18d643(0x46b)](_0x450ba6){const _0x119add=_0x18d643;this[_0x119add(0x248)]['next'](_0x450ba6);}}var os=Object[_0x18d643(0x44c)],as=Object[_0x18d643(0x334)],Et=(_0x244a37,_0x442ac0,_0xf047b,_0x22c969)=>{const _0x3ea95c=_0x18d643;for(var _0x12e214=_0x22c969>0x1?void 0x0:_0x22c969?as(_0x442ac0,_0xf047b):_0x442ac0,_0x3f938e=_0x244a37[_0x3ea95c(0x42b)]-0x1,_0x10052d;_0x3f938e>=0x0;_0x3f938e--)(_0x10052d=_0x244a37[_0x3f938e])&&(_0x12e214=(_0x22c969?_0x10052d(_0x442ac0,_0xf047b,_0x12e214):_0x10052d(_0x12e214))||_0x12e214);return _0x22c969&&_0x12e214&&os(_0x442ac0,_0xf047b,_0x12e214),_0x12e214;},w=(_0x341a4a,_0x22fa62)=>(_0x189f8c,_0xd38c0)=>_0x22fa62(_0x189f8c,_0xd38c0,_0x341a4a),W=(_0x79ad20=>(_0x79ad20[_0x79ad20['IDLE']=0x0]=_0x18d643(0x4ca),_0x79ad20[_0x79ad20['JOINING']=0x1]=_0x18d643(0x344),_0x79ad20[_0x79ad20[_0x18d643(0x242)]=0x2]=_0x18d643(0x242),_0x79ad20[_0x79ad20[_0x18d643(0x2f7)]=0x3]=_0x18d643(0x2f7),_0x79ad20))(W||{});exports['CollaborationSession']=class extends a[_0x18d643(0x451)]{constructor(_0x5e800e,_0x2d45a4,_0x5293e7,_0x1bf618,_0x545321,_0x5ebd67,_0x36f9c4,_0x2f2c96,_0x2bca20){const _0x5e22d4=_0x18d643;super(),d(this,_0x5e22d4(0x229),new g[(_0x5e22d4(0x3c9))](0x0)),d(this,_0x5e22d4(0x205),this[_0x5e22d4(0x229)][_0x5e22d4(0x221)]()),d(this,_0x5e22d4(0x402),new g[(_0x5e22d4(0x158))]()),d(this,'event$',this[_0x5e22d4(0x402)]['asObservable']()),d(this,'_socket'),d(this,_0x5e22d4(0x44a)),d(this,'_collaborationTimeoutTimer'),(this[_0x5e22d4(0x409)]=_0x5e800e,this[_0x5e22d4(0x132)]=_0x5293e7,this[_0x5e22d4(0x25a)]=_0x1bf618,this[_0x5e22d4(0x1b8)]=_0x545321,this['_configService']=_0x5ebd67,this[_0x5e22d4(0x288)]=_0x36f9c4,this['_memberService']=_0x2f2c96,this[_0x5e22d4(0x338)]=_0x2bca20,_0x2d45a4[_0x5e22d4(0x2a5)](T[_0x5e22d4(0x23e)](this[_0x5e22d4(0x237)]))['subscribe'](_0x1cfc53=>{const _0x291d0a=_0x5e22d4;var _0x27b288;typeof _0x1cfc53>'u'||(this[_0x291d0a(0x20c)]=_0x1cfc53,_0x1cfc53?(this[_0x291d0a(0x34c)](_0x1cfc53),this[_0x291d0a(0x44a)]=this[_0x291d0a(0x20c)]['message$'][_0x291d0a(0x18b)](_0x45b8a8=>{const _0xce1f1c=_0x291d0a;_0x45b8a8[_0xce1f1c(0x3ff)]===this[_0xce1f1c(0x409)]&&this[_0xce1f1c(0x452)](_0x45b8a8);})):(this[_0x291d0a(0x229)][_0x291d0a(0x33b)](0x2),(_0x27b288=this['_socketMessageSubscription'])==null||_0x27b288['unsubscribe'](),this[_0x291d0a(0x44a)]=null));}),this[_0x5e22d4(0x352)](this[_0x5e22d4(0x25a)]['registerOnClose'](()=>{const _0x1a64c6=_0x5e22d4;var _0x4f0c41;(_0x4f0c41=this[_0x1a64c6(0x20c)])==null||_0x4f0c41[_0x1a64c6(0x1ca)]({'cmd':b[_0x1a64c6(0x139)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){return this['_sessionStatus$']['getValue']();}[_0x18d643(0x2f5)](){const _0x122b69=_0x18d643;var _0x3ad296,_0x414edf;return(_0x414edf=(_0x3ad296=this['_socket'])==null?void 0x0:_0x3ad296[_0x122b69(0x4ae)])!=null?_0x414edf:null;}[_0x18d643(0x318)](){const _0x22c4c1=_0x18d643;super[_0x22c4c1(0x318)](),this[_0x22c4c1(0x237)]['next'](),this[_0x22c4c1(0x237)][_0x22c4c1(0x150)]();}[_0x18d643(0x452)](_0x25e925){const _0x2374c0=_0x18d643;_0x25e925[_0x2374c0(0x37c)]===b['JOIN']?this['_onJoinRoomEvent'](_0x25e925):_0x25e925['cmd']===b[_0x2374c0(0x44f)]&&this[_0x2374c0(0x274)](_0x25e925);}['_joinRoom'](_0x3e820f){const _0x254b25=_0x18d643;this[_0x254b25(0x229)][_0x254b25(0x33b)](0x1),_0x3e820f[_0x254b25(0x1ca)]({'cmd':b['JOIN'],'routeKey':this[_0x254b25(0x409)],'routeType':'','data':{'rooms':[{'roomID':this[_0x254b25(0x409)]}]}});}['_onJoinRoomEvent'](_0x43ce75){const _0x2b932b=_0x18d643;var _0x50e688;if(_0x43ce75[_0x2b932b(0x436)]===ke[_0x2b932b(0x33f)]){this[_0x2b932b(0x1b8)][_0x2b932b(0x2f6)]({'type':oe['MessageType']['Warning'],'content':this[_0x2b932b(0x288)]['t'](_0x2b932b(0x375))}),this[_0x2b932b(0x229)][_0x2b932b(0x33b)](0x2);return;}this[_0x2b932b(0x229)][_0x2b932b(0x33b)](0x3);const _0x466567=(_0x50e688=_0x43ce75[_0x2b932b(0x39f)][_0x2b932b(0x47d)][this['_unitID']])==null?void 0x0:_0x50e688[_0x2b932b(0x201)];_0x466567&&_0x466567['forEach'](_0x23e377=>this['_memberService'][_0x2b932b(0x2fa)](this[_0x2b932b(0x409)],_0x23e377));}[_0x18d643(0x274)](_0x5cd0e4){const _0x6c5244=_0x18d643;try{const _0x68e165=_0x5cd0e4['data'];switch(_0x68e165[_0x6c5244(0x2de)]){case u[_0x6c5244(0x198)][_0x6c5244(0x46a)]:this[_0x6c5244(0x38e)](_0x68e165),this[_0x6c5244(0x402)]['next'](_0x68e165);break;case u[_0x6c5244(0x198)]['USERS_LEAVE']:this['_onUserLeave'](_0x68e165),this[_0x6c5244(0x402)][_0x6c5244(0x33b)](_0x68e165);break;case u[_0x6c5244(0x198)][_0x6c5244(0x24a)]:this['_clearCollaborationTimeoutTimer'](),this[_0x6c5244(0x402)][_0x6c5244(0x33b)](_0x68e165);break;case u[_0x6c5244(0x198)][_0x6c5244(0x421)]:this[_0x6c5244(0x132)][_0x6c5244(0x11e)](_0x6c5244(0x12e)+JSON['stringify'](_0x68e165)),this[_0x6c5244(0x402)][_0x6c5244(0x33b)](_0x68e165);break;case u[_0x6c5244(0x198)][_0x6c5244(0x398)]:this['_commentService'][_0x6c5244(0x46b)](_0x68e165[_0x6c5244(0x39f)]),this[_0x6c5244(0x402)][_0x6c5244(0x33b)](_0x68e165);break;default:this['_event$'][_0x6c5244(0x33b)](_0x68e165);}}catch(_0x1fee3b){this[_0x6c5244(0x132)]['error'](_0x1fee3b,_0x5cd0e4);}}['_onUserJoin'](_0x406ba7){const _0x852841=_0x18d643;this['_memberService'][_0x852841(0x2fa)](this[_0x852841(0x409)],_0x406ba7[_0x852841(0x39f)]);}[_0x18d643(0x2d5)](_0x379c04){const _0x3f27c9=_0x18d643;this[_0x3f27c9(0x214)]['removeMember'](this[_0x3f27c9(0x409)],_0x379c04[_0x3f27c9(0x39f)]['memberID']);}async[_0x18d643(0x1ca)](_0x2eea3c,_0x6d545){const _0x3254c8=_0x18d643;if(this[_0x3254c8(0x31c)]!==0x3||!this[_0x3254c8(0x20c)])throw new Error(_0x3254c8(0x348));try{_0x2eea3c[_0x3254c8(0x2de)]===u['CollaborationEvent'][_0x3254c8(0x131)]&&this[_0x3254c8(0x1f7)](),this[_0x3254c8(0x20c)][_0x3254c8(0x1ca)]({'cmd':b[_0x3254c8(0x3ec)],'routeKey':_0x6d545,'routeType':'','data':_0x2eea3c});}catch(_0x1df8ac){this['_logService']['error'](_0x1df8ac);}}[_0x18d643(0x1f7)](){const _0x4a0d25=_0x18d643;var _0x560ae9;this[_0x4a0d25(0x2bd)]=window[_0x4a0d25(0x42a)](()=>{const _0x2e369d=_0x4a0d25;this[_0x2e369d(0x2bd)]=null,this[_0x2e369d(0x1b8)]['show']({'type':oe[_0x2e369d(0x442)][_0x2e369d(0x1eb)],'content':this['_localeService']['t'](_0x2e369d(0x268))});},(_0x560ae9=this[_0x4a0d25(0x2b5)][_0x4a0d25(0x46d)](xe))!=null?_0x560ae9:St);}['_clearCollaborationTimeoutTimer'](){const _0x38f1e2=_0x18d643;this[_0x38f1e2(0x2bd)]&&(clearTimeout(this[_0x38f1e2(0x2bd)]),this[_0x38f1e2(0x2bd)]=null);}},exports[_0x18d643(0x2be)]=Et([w(0x2,a['ILogService']),w(0x3,N[_0x18d643(0x43b)]),w(0x4,N[_0x18d643(0x39d)]),w(0x5,a[_0x18d643(0x14b)]),w(0x6,h[_0x18d643(0x2ef)](a[_0x18d643(0x30c)])),w(0x7,h[_0x18d643(0x2ef)](G)),w(0x8,h['Inject'](Fe))],exports[_0x18d643(0x2be)]),exports[_0x18d643(0x457)]=class extends a[_0x18d643(0x480)]{constructor(_0x12ffe5,_0x5cc107,_0x3b701c,_0x1e02c8,_0x209cd4,_0x135029){const _0x366550=_0x18d643;super(),d(this,'_socket$',new g[(_0x366550(0x3c9))](void 0x0)),d(this,_0x366550(0x1e7),new Map()),d(this,'_status$',new g[(_0x366550(0x3c9))](0x0)),d(this,_0x366550(0x371),this[_0x366550(0x365)][_0x366550(0x221)]()),d(this,_0x366550(0x3ba),!0x1),d(this,_0x366550(0x255)),d(this,_0x366550(0x22e)),d(this,_0x366550(0x284)),d(this,_0x366550(0x492),0x0),(this[_0x366550(0x42e)]=_0x12ffe5,this[_0x366550(0x288)]=_0x5cc107,this[_0x366550(0x1b8)]=_0x3b701c,this[_0x366550(0x132)]=_0x1e02c8,this[_0x366550(0x2b5)]=_0x209cd4,this[_0x366550(0x14a)]=_0x135029);}get[_0x18d643(0x20c)](){const _0x108e8d=_0x18d643;return this[_0x108e8d(0x232)][_0x108e8d(0x4ab)]();}['dispose'](){const _0x4e1174=_0x18d643;super['dispose'](),this[_0x4e1174(0x1e7)][_0x4e1174(0x2eb)](_0x59df25=>_0x59df25[_0x4e1174(0x318)]()),this['_sessions'][_0x4e1174(0x3be)](),this[_0x4e1174(0x365)][_0x4e1174(0x150)]();}async[_0x18d643(0x2c5)](_0x5bfe38){const _0x56a6fc=_0x18d643;if(this[_0x56a6fc(0x1e7)][_0x56a6fc(0x184)](_0x5bfe38))return this['_sessions'][_0x56a6fc(0x1bc)](_0x5bfe38);this[_0x56a6fc(0x167)]();const _0x332917=this[_0x56a6fc(0x42e)]['createInstance'](exports[_0x56a6fc(0x2be)],_0x5bfe38,this['_socket$'][_0x56a6fc(0x221)]());return this[_0x56a6fc(0x1e7)][_0x56a6fc(0x3db)](_0x5bfe38,_0x332917),_0x332917;}['_createSocket'](){const _0x2bb640=_0x18d643;var _0x15b193;const _0x539364=(_0x15b193=this[_0x2bb640(0x2b5)][_0x2bb640(0x46d)](ut))!=null?_0x15b193:Vt;return this[_0x2bb640(0x14a)][_0x2bb640(0x2dd)](_0x539364);}['_tryEnsureSocket'](){const _0x5aa9e4=_0x18d643;try{const _0x3bcab0=this[_0x5aa9e4(0x1fb)]();if(_0x3bcab0){const _0x2b8d80=_0x3bcab0['send'];_0x3bcab0[_0x5aa9e4(0x1ca)]=_0x394078=>(this[_0x5aa9e4(0x31d)](),_0x2b8d80[_0x5aa9e4(0x13d)](_0x3bcab0,[_0x394078])),_0x3bcab0[_0x5aa9e4(0x1ab)][_0x5aa9e4(0x18b)](_0x2664a3=>this[_0x5aa9e4(0x1ba)](_0x3bcab0,_0x2664a3)),_0x3bcab0[_0x5aa9e4(0x29c)]['pipe'](T[_0x5aa9e4(0x16f)](0x1))['subscribe'](_0xa9ea83=>this['_logService'][_0x5aa9e4(0x11e)]('[CollaborationSessionService]:\x20socket\x20error',_0xa9ea83)),_0x3bcab0[_0x5aa9e4(0x41f)][_0x5aa9e4(0x2a5)](T[_0x5aa9e4(0x16f)](0x1))['subscribe'](()=>{const _0x5ee162=_0x5aa9e4;this[_0x5ee162(0x3ee)](_0x3bcab0);}),_0x3bcab0['close$'][_0x5aa9e4(0x2a5)](T[_0x5aa9e4(0x16f)](0x1))[_0x5aa9e4(0x18b)](_0x4897c6=>{const _0x418013=_0x5aa9e4;this[_0x418013(0x132)][_0x418013(0x280)](_0x418013(0x431),_0x418013(0x1cc),_0x4897c6),this[_0x418013(0x128)]();});}}catch(_0x68b8ab){this['_logService'][_0x5aa9e4(0x11e)](_0x68b8ab),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x4b9d3c){const _0x34c5cc=_0x18d643;this[_0x34c5cc(0x132)][_0x34c5cc(0x280)](_0x34c5cc(0x431),_0x34c5cc(0x121)),_0x4b9d3c[_0x34c5cc(0x1ca)]({'cmd':b[_0x34c5cc(0x2e5)]}),this['_rescheduleHeartbeatEvent']();}['_onConnectionFailed'](){const _0x261c1f=_0x18d643;var _0x4ed52c;this[_0x261c1f(0x365)][_0x261c1f(0x33b)](0x2),this[_0x261c1f(0x232)][_0x261c1f(0x33b)](null),this[_0x261c1f(0x34e)](),this[_0x261c1f(0x2a7)](),this[_0x261c1f(0x3ba)]=!0x1,this['_retryCount']<((_0x4ed52c=this[_0x261c1f(0x2b5)][_0x261c1f(0x46d)](Kt))!=null?_0x4ed52c:Xt)?(this[_0x261c1f(0x130)](this[_0x261c1f(0x492)]),this['_retryCount']+=0x1):this[_0x261c1f(0x1b8)][_0x261c1f(0x2f6)]({'type':oe['MessageType']['Error'],'content':this[_0x261c1f(0x288)]['t']('session.connection-failed')});}[_0x18d643(0x130)](_0x2df933){const _0x2a2570=_0x18d643;var _0x2a7787;const _0x3ce2e5=((_0x2a7787=this[_0x2a2570(0x2b5)]['getConfig'](Gt))!=null?_0x2a7787:Yt)*0x2**_0x2df933;this[_0x2a2570(0x1b8)][_0x2a2570(0x2f6)]({'type':oe[_0x2a2570(0x442)][_0x2a2570(0x3fc)],'content':this['_localeService']['t']('session.will-retry')}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x4abe93=_0x2a2570;this[_0x4abe93(0x167)](),clearTimeout(this[_0x4abe93(0x284)]),this[_0x4abe93(0x284)]=null;},_0x3ce2e5);}[_0x18d643(0x31d)](){const _0x68f8ed=_0x18d643;var _0x364960;this[_0x68f8ed(0x2a7)](),this[_0x68f8ed(0x255)]=setTimeout(()=>this[_0x68f8ed(0x308)](),(_0x364960=this[_0x68f8ed(0x2b5)][_0x68f8ed(0x46d)](dt))!=null?_0x364960:Wt);}[_0x18d643(0x308)](){const _0x38638d=_0x18d643;this[_0x38638d(0x20c)][_0x38638d(0x1ca)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x70d332=_0x18d643;var _0x44b666;this['_timeoutTimer']=setTimeout(()=>this[_0x70d332(0x128)](),(_0x44b666=this[_0x70d332(0x2b5)]['getConfig'](xe))!=null?_0x44b666:St);}[_0x18d643(0x1ba)](_0x4fd252,_0xf141fc){const _0x4bc2b7=_0x18d643,{cmd:_0x8e9b89}=_0xf141fc;_0x8e9b89===b[_0x4bc2b7(0x2e5)]&&!this[_0x4bc2b7(0x3ba)]&&(_0x4fd252[_0x4bc2b7(0x4ae)]=_0xf141fc['data'][_0x4bc2b7(0x4ae)],this[_0x4bc2b7(0x232)][_0x4bc2b7(0x33b)](_0x4fd252),this[_0x4bc2b7(0x365)]['next'](0x3),this[_0x4bc2b7(0x3ba)]=!0x0),_0x8e9b89===b[_0x4bc2b7(0x266)]&&this[_0x4bc2b7(0x34e)](),this['_rescheduleHeartbeatEvent']();}[_0x18d643(0x2a7)](){const _0x435890=_0x18d643;this[_0x435890(0x255)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x18d643(0x34e)](){const _0x1800ef=_0x18d643;this[_0x1800ef(0x22e)]!=null&&(clearTimeout(this[_0x1800ef(0x22e)]),this[_0x1800ef(0x22e)]=null);}},exports[_0x18d643(0x457)]=Et([w(0x0,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),w(0x1,h[_0x18d643(0x2ef)](a['LocaleService'])),w(0x2,N[_0x18d643(0x39d)]),w(0x3,a[_0x18d643(0x31e)]),w(0x4,a['IConfigService']),w(0x5,Be)],exports['CollaborationSessionService']);var cs=Object[_0x18d643(0x44c)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x236b38,_0x2831bf,_0x503443,_0x16396c)=>{const _0x197fe2=_0x18d643;for(var _0x465d67=_0x16396c>0x1?void 0x0:_0x16396c?ls(_0x2831bf,_0x503443):_0x2831bf,_0x4006a9=_0x236b38[_0x197fe2(0x42b)]-0x1,_0x55997b;_0x4006a9>=0x0;_0x4006a9--)(_0x55997b=_0x236b38[_0x4006a9])&&(_0x465d67=(_0x16396c?_0x55997b(_0x2831bf,_0x503443,_0x465d67):_0x55997b(_0x465d67))||_0x465d67);return _0x16396c&&_0x465d67&&cs(_0x2831bf,_0x503443,_0x465d67),_0x465d67;},se=(_0x2af0a5,_0x3f81c8)=>(_0x104f4b,_0x412ca2)=>_0x3f81c8(_0x104f4b,_0x412ca2,_0x2af0a5);exports['LocalCacheService']=class extends a[_0x18d643(0x480)]{constructor(_0x4e10ac,_0x2734fe,_0x4ed5be,_0x2fffd8,_0x206f2b){const _0x110ca3=_0x18d643;super(),d(this,_0x110ca3(0x45b),new Map()),d(this,_0x110ca3(0x2c0),new Map()),d(this,_0x110ca3(0x397),!0x1),(this[_0x110ca3(0x2b5)]=_0x4e10ac,this[_0x110ca3(0x20a)]=_0x2734fe,this[_0x110ca3(0x25a)]=_0x4ed5be,this[_0x110ca3(0x288)]=_0x2fffd8,this[_0x110ca3(0x425)]=_0x206f2b,this[_0x110ca3(0x230)]());}['disableLocalCache'](){const _0x5cbd19=_0x18d643;this[_0x5cbd19(0x397)]=!0x0;}['enableLocalCache'](){const _0x550fb9=_0x18d643;this[_0x550fb9(0x397)]=!0x1;}[_0x18d643(0x318)](){const _0x38783e=_0x18d643;this[_0x38783e(0x1c4)]()[_0x38783e(0x270)](()=>super[_0x38783e(0x318)]());}async[_0x18d643(0x155)](_0xe5d300){const _0x53ef50=_0x18d643;return this[_0x53ef50(0x397)]?null:this[_0x53ef50(0x20a)][_0x53ef50(0x182)](qe(_0xe5d300));}async[_0x18d643(0x4c0)](_0x4d17cb,_0x25fdb9){const _0x137120=_0x18d643;return!!this[_0x137120(0x20a)][_0x137120(0x140)](_0x4d17cb,_0x25fdb9);}['updateOfflineData'](_0x3dba60,_0x444b23,_0xe87cb,_0x4d42d5){const _0x23ad70=_0x18d643,_0x39fe2d=this['_revisionService'][_0x23ad70(0x1c2)](_0x3dba60);this[_0x23ad70(0x45b)][_0x23ad70(0x3db)](_0x3dba60,{'unitID':_0x3dba60,'type':_0x444b23,'awaitingChangeset':_0xe87cb,'mutations':_0x4d42d5,'rev':_0x39fe2d}),this['_saveTaskMap'][_0x23ad70(0x184)](_0x3dba60)||this[_0x23ad70(0x476)](_0x3dba60);}[_0x18d643(0x476)](_0x4520bd){const _0x12abdc=_0x18d643,_0x21df5c=this[_0x12abdc(0x12c)]();_0x21df5c===0x0?this[_0x12abdc(0x21f)](_0x4520bd):this[_0x12abdc(0x2c0)][_0x12abdc(0x3db)](_0x4520bd,setTimeout(()=>this[_0x12abdc(0x21f)](_0x4520bd),_0x21df5c));}[_0x18d643(0x12c)](){const _0x2c056=_0x18d643;var _0x37a755;return(_0x37a755=this[_0x2c056(0x2b5)]['getConfig'](vt))!=null?_0x37a755:qt;}[_0x18d643(0x21f)](_0x486d68){const _0x78745d=_0x18d643,_0x3ca6e0=this[_0x78745d(0x2c0)][_0x78745d(0x1bc)](_0x486d68);return _0x3ca6e0!==void 0x0&&window[_0x78745d(0x438)](_0x3ca6e0),this[_0x78745d(0x20a)]['setItem'](qe(_0x486d68),this[_0x78745d(0x45b)]['get'](_0x486d68))['then'](()=>this['_saveTaskMap']['delete'](_0x486d68));}async[_0x18d643(0x1c4)](){const _0x1c2411=_0x18d643,_0x186a8b=[];this[_0x1c2411(0x2c0)][_0x1c2411(0x2eb)]((_0xc2749e,_0x44ad6d)=>{const _0x482892=_0x1c2411;window[_0x482892(0x438)](_0xc2749e),_0x186a8b[_0x482892(0x28b)](this['_saveCache'](_0x44ad6d)[_0x482892(0x270)](()=>{const _0xebcef8=_0x482892;this[_0xebcef8(0x2c0)][_0xebcef8(0x35c)](_0x44ad6d);}));}),await Promise[_0x1c2411(0x217)](_0x186a8b);}[_0x18d643(0x230)](){const _0x92d997=_0x18d643;this[_0x92d997(0x352)](this[_0x92d997(0x25a)][_0x92d997(0x1bf)](()=>{const _0x131637=_0x92d997;if(this[_0x131637(0x2c0)][_0x131637(0x481)])return this[_0x131637(0x288)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x18d643(0x3e2)]=hs([se(0x0,a[_0x18d643(0x14b)]),se(0x1,a[_0x18d643(0x235)]),se(0x2,N[_0x18d643(0x43b)]),se(0x3,h[_0x18d643(0x2ef)](a['LocaleService'])),se(0x4,h[_0x18d643(0x2ef)](u[_0x18d643(0x498)]))],exports[_0x18d643(0x3e2)]);function qe(_0x109f83){return'unit-cache-'+_0x109f83;}const pe=h['createIdentifier'](_0x18d643(0x252));var Ct=(_0x159515=>(_0x159515[_0x159515['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x18d643(0x311),_0x159515[_0x159515['OTHER_CLIENTS_EDITING']=0x1]=_0x18d643(0x33c),_0x159515))(Ct||{});const ze=0x7530,Je=_0x18d643(0x13b);class _s extends a[_0x18d643(0x480)]{constructor(){const _0x32bba2=_0x18d643;super(),d(this,_0x32bba2(0x447),a[_0x32bba2(0x2e7)][_0x32bba2(0x172)]()),d(this,_0x32bba2(0x2dc),new Set()),d(this,_0x32bba2(0x2e1),new Map()),d(this,'_heartbeatTimer',null),d(this,_0x32bba2(0x1e5),new Map()),d(this,_0x32bba2(0x34f),new Map()),this[_0x32bba2(0x1c3)]();}[_0x18d643(0x318)](){const _0x3479d4=_0x18d643;super[_0x3479d4(0x318)](),this[_0x3479d4(0x1e5)][_0x3479d4(0x2eb)]((_0x145317,_0x9842a5)=>this[_0x3479d4(0x1a7)](_0x9842a5)),this[_0x3479d4(0x47c)]&&window[_0x3479d4(0x419)](this[_0x3479d4(0x47c)]);}['getUnitStatus$'](_0x3bb226){return this['_ensureSubject'](_0x3bb226)['pipe'](g['distinctUntilChanged']());}[_0x18d643(0x3bd)](_0x39ff5f){const _0x120651=_0x18d643;this[_0x120651(0x2dc)][_0x120651(0x481)]===0x0&&this[_0x120651(0x422)](),this['_selfUnitIDs'][_0x120651(0x1f2)](_0x39ff5f),this[_0x120651(0x3f3)]({'type':0x0,'memberID':this[_0x120651(0x447)],'unitIDs':[_0x39ff5f],'isForwarded':!0x1});}[_0x18d643(0x49d)](_0x17e4e5){const _0x1a2383=_0x18d643;this[_0x1a2383(0x2dc)][_0x1a2383(0x35c)](_0x17e4e5),this[_0x1a2383(0x2dc)]['size']===0x0&&this[_0x1a2383(0x47c)]&&window[_0x1a2383(0x419)](this[_0x1a2383(0x47c)]);}[_0x18d643(0x1c3)](){const _0x1d775c=_0x18d643;this[_0x1d775c(0x352)](a[_0x1d775c(0x345)](g[_0x1d775c(0x487)](window,'storage')[_0x1d775c(0x18b)](_0x1471ac=>{const _0x407265=_0x1d775c;if(_0x1471ac[_0x407265(0x135)]!==Je||!_0x1471ac[_0x407265(0x138)])return;const _0x198ea6=JSON['parse'](_0x1471ac[_0x407265(0x138)]);this['_handleEvent'](_0x198ea6);}))),window[_0x1d775c(0x4ac)]('unload',()=>this[_0x1d775c(0x3f3)]({'type':0x1,'memberID':this[_0x1d775c(0x447)],'unitIDs':Array['from'](this[_0x1d775c(0x2dc)])}));}[_0x18d643(0x3ca)](_0x37b2e7){const _0x4744a0=_0x18d643;switch(_0x37b2e7[_0x4744a0(0x3a7)]){case 0x0:this[_0x4744a0(0x1b0)](_0x37b2e7);break;case 0x1:this[_0x4744a0(0x369)](_0x37b2e7);break;case 0x2:this['_handleHeartbeatEvent'](_0x37b2e7);break;}}[_0x18d643(0x1b0)](_0x18d8d5){const _0x137394=_0x18d643,{unitIDs:_0x2b1918,memberID:_0x581aa5,isForwarded:_0x5afdeb}=_0x18d8d5;_0x2b1918[_0x137394(0x2eb)](_0x1b53e0=>{const _0x31d895=_0x137394;if(!_0x5afdeb&&this[_0x31d895(0x2e1)][_0x31d895(0x184)](_0x1b53e0)&&this[_0x31d895(0x17f)](_0x1b53e0)['next'](0x1),!this[_0x31d895(0x2e1)][_0x31d895(0x184)](_0x1b53e0)||!this[_0x31d895(0x2e1)][_0x31d895(0x1bc)](_0x1b53e0)['has'](_0x581aa5)){const _0x2c7ec0=this['_unitOnClients']['get'](_0x1b53e0)||new Set();_0x2c7ec0[_0x31d895(0x1f2)](_0x581aa5),this[_0x31d895(0x2e1)][_0x31d895(0x3db)](_0x1b53e0,_0x2c7ec0),this[_0x31d895(0x1ae)](_0x581aa5);}}),_0x5afdeb||this[_0x137394(0x3f3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x28245b){const _0x217239=_0x18d643;this[_0x217239(0x1a7)](_0x28245b);const _0x1d221b=window[_0x217239(0x42a)](()=>{const _0x5c7cd7=_0x217239;this['_unitOnClients'][_0x5c7cd7(0x2eb)](_0x357f98=>{const _0x4a4262=_0x5c7cd7;_0x357f98[_0x4a4262(0x35c)](_0x28245b);});},ze*0x2);this[_0x217239(0x1e5)][_0x217239(0x3db)](_0x28245b,_0x1d221b);}[_0x18d643(0x1a7)](_0x58f464){const _0x3a8eec=_0x18d643;if(this['_clearOtherTimers']['has'](_0x58f464)){const _0xffb316=this[_0x3a8eec(0x1e5)][_0x3a8eec(0x1bc)](_0x58f464);_0xffb316&&window['clearTimeout'](_0xffb316),this['_clearOtherTimers'][_0x3a8eec(0x3db)](_0x58f464,null);}}['_handleLeaveEvent'](_0x27c919){const _0x171d34=_0x18d643,{memberID:_0x144aae,unitIDs:_0x300118}=_0x27c919;_0x300118[_0x171d34(0x2eb)](_0x334e23=>{const _0x205697=_0x171d34;var _0x55a300;const _0x6ee2aa=this[_0x205697(0x2e1)][_0x205697(0x1bc)](_0x334e23);_0x6ee2aa&&(_0x6ee2aa[_0x205697(0x35c)](_0x144aae),(_0x55a300=this[_0x205697(0x17f)](_0x334e23))==null||_0x55a300[_0x205697(0x33b)](_0x6ee2aa['size']===0x0?0x0:0x1));}),this[_0x171d34(0x1a7)](_0x144aae);}[_0x18d643(0x4a9)](_0x1f861a){this['_scheduleClearOtherTimer'](_0x1f861a['memberID']);}['_send'](_0x58ca33){const _0x3a00f8=_0x18d643;localStorage[_0x3a00f8(0x140)](Je,JSON['stringify'](_0x58ca33));}['_scheduleHeartbeat'](){const _0x5f45bb=_0x18d643;this[_0x5f45bb(0x47c)]=window[_0x5f45bb(0x4bb)](()=>{const _0x5269e3=_0x5f45bb;this['_send']({'type':0x2,'memberID':this[_0x5269e3(0x447)]});},ze);}['_ensureSubject'](_0x61d4fa){const _0x569923=_0x18d643;return this[_0x569923(0x34f)][_0x569923(0x184)](_0x61d4fa)||this[_0x569923(0x34f)][_0x569923(0x3db)](_0x61d4fa,new g[(_0x569923(0x3c9))](0x0)),this[_0x569923(0x34f)][_0x569923(0x1bc)](_0x61d4fa);}}var us=Object[_0x18d643(0x44c)],ds=Object[_0x18d643(0x334)],Ss=(_0x40f70d,_0x3a8fc9,_0x2aa94a,_0x48469d)=>{const _0x5585ea=_0x18d643;for(var _0x3f90e8=_0x48469d>0x1?void 0x0:_0x48469d?ds(_0x3a8fc9,_0x2aa94a):_0x3a8fc9,_0x2f73a=_0x40f70d[_0x5585ea(0x42b)]-0x1,_0x5ea972;_0x2f73a>=0x0;_0x2f73a--)(_0x5ea972=_0x40f70d[_0x2f73a])&&(_0x3f90e8=(_0x48469d?_0x5ea972(_0x3a8fc9,_0x2aa94a,_0x3f90e8):_0x5ea972(_0x3f90e8))||_0x3f90e8);return _0x48469d&&_0x3f90e8&&us(_0x3a8fc9,_0x2aa94a,_0x3f90e8),_0x3f90e8;},Ze=(_0x381cfb,_0xef5987)=>(_0x337e7d,_0xdfd31e)=>_0xef5987(_0x337e7d,_0xdfd31e,_0x381cfb);let ve=class{constructor(_0x997d5c,_0x316277){const _0x3ed11b=_0x18d643;this['_injector']=_0x997d5c,this[_0x3ed11b(0x39b)]=_0x316277;}['transformIMECache'](_0x3dd3c5){const _0x4db4bf=_0x18d643;this[_0x4db4bf(0x2c1)](_0x3dd3c5),this[_0x4db4bf(0x426)](_0x3dd3c5);}[_0x18d643(0x3b7)](_0x5837e8){const _0x2a1487=_0x18d643,_0x23e3a6=this[_0x2a1487(0x42e)]['get'](y[_0x2a1487(0x177)]),{redoCache:_0x4fe461}=_0x23e3a6['getUndoRedoMutationParamsCache']();if(_0x4fe461['length']===0x0)return _0x5837e8;let _0x4a160c=a['Tools'][_0x2a1487(0x18f)](_0x5837e8[_0x2a1487(0x3ce)][0x0]);for(let _0x10e8c4=0x0;_0x10e8c4<_0x4fe461[_0x2a1487(0x42b)];_0x10e8c4++){const _0x443a4a={'id':_0x2a1487(0x2e4),'params':{..._0x4fe461[_0x10e8c4]}},_0x38ca36=this[_0x2a1487(0x39b)]['transformMutation'](_0x4a160c,_0x443a4a,!0x1);if(u[_0x2a1487(0x1a9)](_0x38ca36))throw _0x38ca36[_0x2a1487(0x11e)];_0x4a160c=_0x38ca36[_0x2a1487(0x125)];}return{...a[_0x2a1487(0x2e7)][_0x2a1487(0x18f)](_0x5837e8),'mutations':[_0x4a160c]};}[_0x18d643(0x2c1)](_0x2b3064){const _0x18071b=_0x18d643,_0x466c85=this['_injector'][_0x18071b(0x1bc)](y[_0x18071b(0x177)]),{undoCache:_0x100c9c,redoCache:_0x2056fa}=_0x466c85[_0x18071b(0x429)]();if(_0x100c9c[_0x18071b(0x42b)]===0x0||_0x2056fa[_0x18071b(0x42b)]===0x0)return;const _0x12f264=[],_0xc65925=[];let _0x51d7e8=a[_0x18071b(0x2e7)]['deepClone'](_0x2b3064[_0x18071b(0x3ce)][0x0]),_0x559ca1=a['Tools']['deepClone'](_0x2b3064[_0x18071b(0x3ce)][0x0]);for(let _0x5756e2=_0x100c9c[_0x18071b(0x42b)]-0x1;_0x5756e2>=0x0;_0x5756e2--){const _0x412c72={'id':_0x18071b(0x2e4),'params':{..._0x100c9c[_0x5756e2]}},_0x461b05={'id':_0x18071b(0x2e4),'params':{..._0x2056fa[_0x5756e2]}},_0x35a01e=this[_0x18071b(0x39b)]['transformMutation'](_0x51d7e8,_0x412c72,!0x1),_0x746e5e=this['_transformService']['transformMutation'](_0x559ca1,_0x461b05,!0x1);if(u[_0x18071b(0x1a9)](_0x35a01e))throw _0x35a01e[_0x18071b(0x11e)];if(u[_0x18071b(0x1a9)](_0x746e5e))throw _0x746e5e['error'];_0x12f264['unshift'](_0x35a01e[_0x18071b(0x302)][_0x18071b(0x2ae)]),_0xc65925[_0x18071b(0x36f)](_0x746e5e[_0x18071b(0x302)][_0x18071b(0x2ae)]),_0x51d7e8=_0x35a01e[_0x18071b(0x125)],_0x559ca1=_0x746e5e[_0x18071b(0x125)];}_0x466c85[_0x18071b(0x4b8)]({'undoCache':_0x12f264,'redoCache':_0xc65925});}[_0x18d643(0x426)](_0x564b49){const _0x5440a4=_0x18d643,_0x26bec5=this[_0x5440a4(0x42e)][_0x5440a4(0x1bc)](y['IMEInputManagerService']),_0x30968a=_0x26bec5[_0x5440a4(0x3ae)]();if(_0x30968a==null)return;const _0x308987=[{'id':_0x5440a4(0x2e4),'params':{'unitId':_0x564b49['unitID'],'actions':null,'textRanges':[_0x30968a]}}],_0xe3265a=this[_0x5440a4(0x39b)][_0x5440a4(0x33d)](_0x564b49,_0x308987);if(!u[_0x5440a4(0x4c2)](_0xe3265a))throw _0xe3265a[_0x5440a4(0x11e)];const _0x5b6100=_0xe3265a['m2Prime'][0x0]['params'][_0x5440a4(0x47a)];Array[_0x5440a4(0x370)](_0x5b6100)&&_0x5b6100[_0x5440a4(0x42b)]&&_0x26bec5[_0x5440a4(0x49a)](_0x5b6100[0x0]);}};ve=Ss([Ze(0x0,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),Ze(0x1,u[_0x18d643(0x366)])],ve);var vs=Object[_0x18d643(0x44c)],gs=Object['getOwnPropertyDescriptor'],fs=(_0x2519d6,_0x297cfb,_0xeabd4f,_0x1b74e1)=>{const _0xd75b66=_0x18d643;for(var _0x1fbfc8=_0x1b74e1>0x1?void 0x0:_0x1b74e1?gs(_0x297cfb,_0xeabd4f):_0x297cfb,_0x399ba7=_0x2519d6[_0xd75b66(0x42b)]-0x1,_0x573d91;_0x399ba7>=0x0;_0x399ba7--)(_0x573d91=_0x2519d6[_0x399ba7])&&(_0x1fbfc8=(_0x1b74e1?_0x573d91(_0x297cfb,_0xeabd4f,_0x1fbfc8):_0x573d91(_0x1fbfc8))||_0x1fbfc8);return _0x1b74e1&&_0x1fbfc8&&vs(_0x297cfb,_0xeabd4f,_0x1fbfc8),_0x1fbfc8;},Qe=(_0x5e1163,_0x56db73)=>(_0x1328d8,_0x398680)=>_0x56db73(_0x1328d8,_0x398680,_0x5e1163);let ge=class{constructor(_0x36beff,_0x37d299){const _0x4db6c7=_0x18d643;this[_0x4db6c7(0x42e)]=_0x36beff,this[_0x4db6c7(0x39b)]=_0x37d299;}[_0x18d643(0x4b5)](_0x2d47a7){const _0x4e6800=_0x18d643;var _0x545c59;const _0x445f24=this[_0x4e6800(0x42e)]['get'](y[_0x4e6800(0x367)]),_0x3d62a3=(_0x545c59=_0x445f24['getSelections']())!=null?_0x545c59:[],_0x38261a=_0x3d62a3==null?void 0x0:_0x3d62a3[_0x4e6800(0x3a3)](y[_0x4e6800(0x25c)]);if(_0x38261a[_0x4e6800(0x42b)]===0x0)return;const _0x43bd38=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d47a7['unitID'],'actions':null,'textRanges':_0x38261a}}],_0x4229c8=this[_0x4e6800(0x39b)][_0x4e6800(0x33d)](_0x2d47a7,_0x43bd38);if(!u[_0x4e6800(0x4c2)](_0x4229c8))throw _0x4229c8[_0x4e6800(0x11e)];const _0x2c0791=_0x4229c8[_0x4e6800(0x302)][0x0][_0x4e6800(0x2ae)][_0x4e6800(0x47a)];Array[_0x4e6800(0x370)](_0x2c0791)&&_0x2c0791[_0x4e6800(0x42b)]&&_0x445f24[_0x4e6800(0x238)](_0x2c0791,!0x1);}};ge=fs([Qe(0x0,h[_0x18d643(0x2ef)](h['Injector'])),Qe(0x1,u[_0x18d643(0x366)])],ge);function bt(_0x166063){let _0x453a3d='';for(const _0x4a7d0d of _0x166063){const {startOffset:_0x14d35e,endOffset:_0x402ead,isActive:_0x54b18a}=_0x4a7d0d;_0x453a3d['length']&&(_0x453a3d+=','),_0x453a3d+=_0x14d35e+':'+_0x402ead+':'+(_0x54b18a?'1':'0');}return _0x453a3d;}function ms(_0x48ca9c){const _0x51c481=_0x18d643,_0x2d4962=_0x48ca9c[_0x51c481(0x256)](','),_0x149c3f=[];for(const _0x59da2f of _0x2d4962){const [_0x59825d,_0x42c9c4,_0x34d3e9]=_0x59da2f[_0x51c481(0x256)](':');_0x149c3f['push']({'startOffset':Number(_0x59825d),'endOffset':Number(_0x42c9c4),'collapsed':_0x59825d===_0x42c9c4,'isActive':_0x34d3e9==='1'});}return _0x149c3f[_0x51c481(0x423)](_0x5a6941=>_0x5a6941[_0x51c481(0x17b)])||(_0x149c3f[0x0][_0x51c481(0x17b)]=!0x0),_0x149c3f;}class Ve extends a['RxDisposable']{constructor(){const _0x370529=_0x18d643;super(...arguments),d(this,'_collabCursorState$',new g[(_0x370529(0x3c9))](null)),d(this,_0x370529(0x3ac),this['_collabCursorState$'][_0x370529(0x221)]());}['syncEditingCollabCursor'](_0x5de650){const _0x5e6a21=_0x18d643,{unitID:_0x4e4797,memberID:_0x2b7557,textRanges:_0x1562e4}=_0x5de650,_0x385892=bt(_0x1562e4),_0x28ce5c={'unitID':_0x4e4797,'memberID':_0x2b7557,'selection':_0x385892};this[_0x5e6a21(0x349)][_0x5e6a21(0x33b)](_0x28ce5c);}}var Is=Object[_0x18d643(0x44c)],ps=Object['getOwnPropertyDescriptor'],Es=(_0x415e1e,_0x45b0af,_0x3ab887,_0x553c81)=>{const _0x5a6c2e=_0x18d643;for(var _0x4b3eba=_0x553c81>0x1?void 0x0:_0x553c81?ps(_0x45b0af,_0x3ab887):_0x45b0af,_0x351aa9=_0x415e1e[_0x5a6c2e(0x42b)]-0x1,_0xf94e98;_0x351aa9>=0x0;_0x351aa9--)(_0xf94e98=_0x415e1e[_0x351aa9])&&(_0x4b3eba=(_0x553c81?_0xf94e98(_0x45b0af,_0x3ab887,_0x4b3eba):_0xf94e98(_0x4b3eba))||_0x4b3eba);return _0x553c81&&_0x4b3eba&&Is(_0x45b0af,_0x3ab887,_0x4b3eba),_0x4b3eba;},et=(_0x307b07,_0x158ed7)=>(_0x260092,_0x4cdfe7)=>_0x158ed7(_0x260092,_0x4cdfe7,_0x307b07);let fe=class{constructor(_0xc0407c,_0x955305){const _0x1279cf=_0x18d643;this[_0x1279cf(0x42e)]=_0xc0407c,this[_0x1279cf(0x39b)]=_0x955305;}[_0x18d643(0x4b5)](_0x5d6821){const _0x3bf0eb=_0x18d643;var _0x1a36a7,_0x493611,_0x403bca,_0x457d81;const _0x234c41=this['_injector'][_0x3bf0eb(0x1bc)](E[_0x3bf0eb(0x415)]),{pluginName:_0x2c3068,unitId:_0x20f768,sheetId:_0x12fc0e}=_0x234c41[_0x3bf0eb(0x357)]()||{},_0x357b57=(_0x1a36a7=_0x234c41[_0x3bf0eb(0x153)]())!=null?_0x1a36a7:[];if(_0x357b57[_0x3bf0eb(0x42b)]===0x0||!_0x2c3068||!_0x20f768||!_0x12fc0e)return;const _0x5367c8=[{'id':E['SetSelectionsOperation']['id'],'params':{'unitId':_0x20f768,'subUnitId':_0x12fc0e,'pluginName':_0x2c3068,'selections':a[_0x3bf0eb(0x2e7)][_0x3bf0eb(0x18f)](_0x357b57)}}],_0x7650f7=this[_0x3bf0eb(0x39b)][_0x3bf0eb(0x33d)](_0x5d6821,_0x5367c8);if(!u[_0x3bf0eb(0x4c2)](_0x7650f7))throw _0x7650f7['error'];const _0xa6ce42=(_0x457d81=(_0x403bca=(_0x493611=_0x7650f7[_0x3bf0eb(0x302)][0x0])==null?void 0x0:_0x493611[_0x3bf0eb(0x2ae)])==null?void 0x0:_0x403bca[_0x3bf0eb(0x482)])!=null?_0x457d81:_0x357b57;Array['isArray'](_0xa6ce42)&&_0xa6ce42[_0x3bf0eb(0x42b)]&&this['_injector'][_0x3bf0eb(0x1bc)](a[_0x3bf0eb(0x218)])[_0x3bf0eb(0x224)](E[_0x3bf0eb(0x26a)]['id'],{'unitId':_0x20f768,'subUnitId':_0x12fc0e,'pluginName':_0x2c3068,'selections':_0xa6ce42});}};fe=Es([et(0x0,h['Inject'](h['Injector'])),et(0x1,u[_0x18d643(0x366)])],fe);const Cs=new Set([E[_0x18d643(0x3e8)]['id']]);function bs(_0x293e88,_0x17b40a,_0x5e7241,_0x2caa1a,_0x1ae6d0){const _0x125442=_0x18d643;var _0x2abc99,_0xd8236f,_0x598879,_0x430980;const _0x3c94b8=[];for(const _0xf3cdc7 of _0x293e88)if(Cs['has'](_0xf3cdc7['id'])){if(_0x3c94b8[_0x125442(0x42b)]>0x0)break;_0x3c94b8[_0x125442(0x28b)](_0xf3cdc7);break;}else _0x3c94b8[_0x125442(0x28b)](_0xf3cdc7);const _0xa61aca=(_0xd8236f=(_0x2abc99=_0x1ae6d0[_0x125442(0x2f2)]())==null?void 0x0:_0x2abc99[_0x125442(0x29e)])!=null?_0xd8236f:_0x125442(0x351),_0x296826=(_0x430980=(_0x598879=_0x1ae6d0[_0x125442(0x2f2)]())==null?void 0x0:_0x598879[_0x125442(0x4ae)])!=null?_0x430980:_0x125442(0x351);return{'changeset':{'unitID':_0x17b40a,'type':u[_0x125442(0x324)](_0x5e7241[_0x125442(0x273)](_0x17b40a)),'baseRev':_0x2caa1a['getCurrentRevForDocument'](_0x17b40a),'revision':0x0,'userID':_0xa61aca,'memberID':_0x296826,'mutations':_0x3c94b8},'pendingMutations':_0x293e88[_0x125442(0x30f)](_0x3c94b8[_0x125442(0x42b)])};}function Ts(_0x36d696,_0x4be6f1,_0xe2823a,_0x4dae75,_0x52020b){const _0x500220=_0x18d643;var _0x6e0990,_0x9688b6,_0x51989a,_0x3314e5;const _0x4de9a9=[_0x36d696[_0x500220(0x260)]((_0x136298,_0x24edf1)=>{const _0xff6db5=_0x500220;var _0x3a015b;const {id:_0x153c43}=_0x136298,{id:_0x564f07,type:_0x3d4fc9}=_0x24edf1,_0x8d4bb1=(_0x3a015b=_0x136298[_0xff6db5(0x2ae)])!=null?_0x3a015b:{'actions':null},_0xa13c=_0x24edf1[_0xff6db5(0x2ae)];if(_0x153c43&&_0x153c43!==_0x564f07)throw new Error(_0xff6db5(0x216)+_0x153c43+'\x20-\x20'+_0x564f07+'.');return{..._0x136298,'id':_0x564f07,'type':_0x3d4fc9,'params':{'unitId':_0xa13c[_0xff6db5(0x183)],'textRanges':_0xa13c[_0xff6db5(0x47a)],'actions':a[_0xff6db5(0x1a1)][_0xff6db5(0x22b)](_0x8d4bb1[_0xff6db5(0x3c3)],_0xa13c[_0xff6db5(0x3c3)])}};},{})],_0x2cefe8=(_0x9688b6=(_0x6e0990=_0x52020b[_0x500220(0x2f2)]())==null?void 0x0:_0x6e0990[_0x500220(0x29e)])!=null?_0x9688b6:_0x500220(0x351),_0x1070ae=(_0x3314e5=(_0x51989a=_0x52020b[_0x500220(0x2f2)]())==null?void 0x0:_0x51989a[_0x500220(0x4ae)])!=null?_0x3314e5:_0x500220(0x351);return{'changeset':{'unitID':_0x4be6f1,'type':u['mapDocumentTypeToUniverType'](_0xe2823a[_0x500220(0x273)](_0x4be6f1)),'baseRev':_0x4dae75[_0x500220(0x1c2)](_0x4be6f1),'revision':0x0,'userID':_0x2cefe8,'memberID':_0x1070ae,'mutations':_0x4de9a9},'pendingMutations':[]};}var Rs=Object['defineProperty'],Os=Object[_0x18d643(0x334)],K=(_0x416c82,_0x396e2f,_0x4c91af,_0x1bb3aa)=>{const _0x6ec25f=_0x18d643;for(var _0x2a2237=_0x1bb3aa>0x1?void 0x0:_0x1bb3aa?Os(_0x396e2f,_0x4c91af):_0x396e2f,_0x496c64=_0x416c82[_0x6ec25f(0x42b)]-0x1,_0x126834;_0x496c64>=0x0;_0x496c64--)(_0x126834=_0x416c82[_0x496c64])&&(_0x2a2237=(_0x1bb3aa?_0x126834(_0x396e2f,_0x4c91af,_0x2a2237):_0x126834(_0x2a2237))||_0x2a2237);return _0x1bb3aa&&_0x2a2237&&Rs(_0x396e2f,_0x4c91af,_0x2a2237),_0x2a2237;},f=(_0x4d45ff,_0x320615)=>(_0x40d4be,_0x5584f8)=>_0x320615(_0x40d4be,_0x5584f8,_0x4d45ff),U=(_0x557308=>(_0x557308[_0x18d643(0x405)]=_0x18d643(0x411),_0x557308[_0x18d643(0x263)]='synced',_0x557308[_0x18d643(0x12b)]='pending',_0x557308['AWAITING']='awaiting',_0x557308[_0x18d643(0x1c7)]='awaiting_with_pending',_0x557308['FETCH_MISS']=_0x18d643(0x162),_0x557308[_0x18d643(0x2fc)]=_0x18d643(0x2b4),_0x557308[_0x18d643(0x242)]=_0x18d643(0x2ad),_0x557308))(U||{});class X{constructor(_0xa0822b,_0x42577c,_0x2a3138,_0x584885,_0x49538b,_0x3bfc82,_0x542317,_0x23fa4c,_0x3f932d){const _0x1a0c00=_0x18d643;d(this,_0x1a0c00(0x38d),null),d(this,_0x1a0c00(0x12f),[]),(this[_0x1a0c00(0x432)]=_0xa0822b,this[_0x1a0c00(0x3a7)]=_0x42577c,this[_0x1a0c00(0x267)]=_0x49538b,this['_commandService']=_0x3bfc82,this['_undoRedoService']=_0x542317,this[_0x1a0c00(0x425)]=_0x23fa4c,this[_0x1a0c00(0x245)]=_0x3f932d,this[_0x1a0c00(0x38d)]=_0x2a3138,this[_0x1a0c00(0x12f)]=_0x584885);}[_0x18d643(0x354)](_0x57ce15){const _0x40959c=_0x18d643,_0x4d0abb=this[_0x40959c(0x425)]['getCurrentRevForDocument'](this[_0x40959c(0x432)]);return _0x57ce15[_0x40959c(0x1ed)]>_0x4d0abb+0x1?(this[_0x40959c(0x267)]['onMissingChangesets']({'from':_0x4d0abb,'to':_0x57ce15[_0x40959c(0x1ed)]-0x1}),!0x0):!0x1;}[_0x18d643(0x2d9)](_0x3a5e2f){const _0x80ccb5=_0x18d643;this[_0x80ccb5(0x321)][_0x80ccb5(0x3a0)](this[_0x80ccb5(0x432)],_0x3a5e2f);}[_0x18d643(0x41a)](_0x150346){const _0x7e1d0b=_0x18d643;var _0x11270f,_0x335b23;(_0x335b23=(_0x11270f=this[_0x7e1d0b(0x267)])['onTransformSelections'])==null||_0x335b23[_0x7e1d0b(0x32e)](_0x11270f,_0x150346);}['_transformIMECache'](_0x562ac6){const _0x28759a=_0x18d643;var _0x48f33c,_0x52c62b;return(_0x52c62b=(_0x48f33c=this[_0x28759a(0x267)])['onTransformIME'])==null?void 0x0:_0x52c62b['call'](_0x48f33c,_0x562ac6);}[_0x18d643(0x3b2)](_0x516541){const _0x5503a1=_0x18d643;var _0xa94389,_0x52c25a,_0x51a686;return(_0x51a686=(_0x52c25a=(_0xa94389=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x52c25a[_0x5503a1(0x32e)](_0xa94389,_0x516541))!=null?_0x51a686:_0x516541;}['_syncEditingCollabCursor'](_0x17e577){const _0x386cd3=_0x18d643;var _0x5dbc07,_0x57b9ab;if(this[_0x386cd3(0x3a7)]===j[_0x386cd3(0x336)]){const {unitID:_0x2a1e4d,mutations:_0x4e4f55,memberID:_0x4be5b6}=_0x17e577,_0x4f3011=_0x4e4f55[0x0][_0x386cd3(0x2ae)][_0x386cd3(0x47a)];Array[_0x386cd3(0x370)](_0x4f3011)&&_0x4f3011['length']>0x0&&((_0x57b9ab=(_0x5dbc07=this['_handler'])[_0x386cd3(0x2bc)])==null||_0x57b9ab[_0x386cd3(0x32e)](_0x5dbc07,{'unitID':_0x2a1e4d,'memberID':_0x4be5b6,'textRanges':_0x4f3011}));}}[_0x18d643(0x117)](){const _0x2a2581=_0x18d643;this[_0x2a2581(0x245)][_0x2a2581(0x2bb)](this[_0x2a2581(0x432)],this[_0x2a2581(0x3a7)],this[_0x2a2581(0x38d)],this[_0x2a2581(0x12f)]);}[_0x18d643(0x15c)](){const _0x1201f1=_0x18d643;return this[_0x1201f1(0x425)]['getCurrentRevForDocument'](this[_0x1201f1(0x432)]);}['_incrementRevisionNumber'](){const _0x339d94=_0x18d643;this[_0x339d94(0x425)]['incrementRevForDocument'](this[_0x339d94(0x432)]);}['_executeRemoteChangeset'](_0x6efe5){const _0x4fd24c=_0x18d643;var _0xeb40e4;const _0x4ceefc=this['_transformRemoteChangesetByIMECache'](_0x6efe5),_0x13aafb=a[_0x4fd24c(0x19c)](_0x4ceefc['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x13aafb[_0x4fd24c(0x306)])throw _0x13aafb[_0x4fd24c(0x11e)]instanceof Error?_0x13aafb[_0x4fd24c(0x11e)]:new Error((_0xeb40e4=_0x13aafb[_0x4fd24c(0x11e)])!=null?_0xeb40e4:_0x4fd24c(0x1a6));this[_0x4fd24c(0x3e0)](_0x4ceefc),this[_0x4fd24c(0x2d9)](_0x6efe5),this[_0x4fd24c(0x41a)](_0x4ceefc),this[_0x4fd24c(0x173)](_0x4ceefc),this[_0x4fd24c(0x478)]();}}let ae=class extends X{constructor(_0x91142,_0x4d89f5,_0x287bac,_0x46a9a3,_0x530f5d,_0x2b88c8,_0x250213,_0x28a5f2,_0x31a78d){const _0x1394ce=_0x18d643;super(_0x91142,_0x4d89f5,null,[],_0x287bac,_0x28a5f2,_0x250213,_0x46a9a3,_0x530f5d),d(this,'status','synced'),(this[_0x1394ce(0x42e)]=_0x2b88c8,this[_0x1394ce(0x132)]=_0x31a78d);}[_0x18d643(0x14d)](_0x5e6681){const _0x26e1cc=_0x18d643,_0x61063d=this[_0x26e1cc(0x42e)][_0x26e1cc(0x40f)]($,this[_0x26e1cc(0x432)],this[_0x26e1cc(0x3a7)],[_0x5e6681],this[_0x26e1cc(0x267)]);return _0x61063d[_0x26e1cc(0x3fe)](),_0x61063d['_updateLocalCache'](),_0x61063d;}[_0x18d643(0x250)](_0x498d3b){const _0x48822b=_0x18d643;if(this[_0x48822b(0x354)](_0x498d3b))return this[_0x48822b(0x42e)][_0x48822b(0x40f)](x,this['unitID'],this[_0x48822b(0x3a7)],null,[],null,[_0x498d3b],this[_0x48822b(0x267)]);try{return this[_0x48822b(0x23f)](_0x498d3b),this;}catch(_0x3bf825){return this[_0x48822b(0x132)]['error'](_0x48822b(0x381),_0x3bf825),this;}}[_0x18d643(0x479)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0xb8fbc3=_0x18d643;throw new Error(_0xb8fbc3(0x3b8));}[_0x18d643(0x285)](){const _0xc6b431=_0x18d643;return this[_0xc6b431(0x42e)]['createInstance'](B,this[_0xc6b431(0x432)],this[_0xc6b431(0x3a7)],null,[],this[_0xc6b431(0x267)]);}[_0x18d643(0x407)](){return this;}[_0x18d643(0x4a8)](){const _0x4b25f1=_0x18d643;throw new Error(_0x4b25f1(0x3f8));}};ae=K([f(0x3,h[_0x18d643(0x2ef)](u[_0x18d643(0x498)])),f(0x4,h[_0x18d643(0x2ef)](exports[_0x18d643(0x3e2)])),f(0x5,h[_0x18d643(0x2ef)](h['Injector'])),f(0x6,a[_0x18d643(0x4b7)]),f(0x7,a[_0x18d643(0x218)]),f(0x8,a[_0x18d643(0x31e)])],ae);let $=class extends X{constructor(_0x319bfb,_0x49c74a,_0x4f7a77,_0x11e9ec,_0xb06f65,_0x51c722,_0x492046,_0x288d60,_0x154dcb,_0x1ec72e,_0x21009e,_0x32b837,_0xa2a029,_0x587356){const _0x4425c3=_0x18d643;super(_0x319bfb,_0x49c74a,null,_0x4f7a77,_0x11e9ec,_0x1ec72e,_0x587356,_0x51c722,_0x492046),d(this,_0x4425c3(0x3a4),_0x4425c3(0x27d)),d(this,_0x4425c3(0x3c1),null),d(this,_0x4425c3(0x433),null),(this[_0x4425c3(0x42e)]=_0xb06f65,this['_memberService']=_0x288d60,this[_0x4425c3(0x132)]=_0x154dcb,this[_0x4425c3(0x2b5)]=_0x21009e,this[_0x4425c3(0x39b)]=_0x32b837,this[_0x4425c3(0x437)]=_0xa2a029);}[_0x18d643(0x14d)](_0x21561f){const _0x466e2a=_0x18d643;return this['_pendingMutations'][_0x466e2a(0x28b)](_0x21561f),this[_0x466e2a(0x117)](),this;}[_0x18d643(0x250)](_0xb42c9b){const _0x371995=_0x18d643;if(this['_checkMissing'](_0xb42c9b))return this[_0x371995(0x439)](),this['_injector'][_0x371995(0x40f)](x,this[_0x371995(0x432)],this[_0x371995(0x3a7)],null,this['_pendingMutations'],null,[_0xb42c9b],this[_0x371995(0x267)]);try{const _0x50acce=this['_transformService']['transformMutationsWithChangeset'](_0xb42c9b,this[_0x371995(0x12f)]);if(u[_0x371995(0x4c2)](_0x50acce)){const {c1Prime:_0x50bfb0,m2Prime:_0xc576bc}=_0x50acce;this[_0x371995(0x23f)](_0x50bfb0);const _0x2a4dfe=this['_injector'][_0x371995(0x40f)]($,this[_0x371995(0x432)],this[_0x371995(0x3a7)],_0xc576bc,this[_0x371995(0x267)]);return this[_0x371995(0x439)](),_0x2a4dfe[_0x371995(0x3fe)](this['_scheduleTimestamp']?Math[_0x371995(0x30a)](0x0,new Date()[_0x371995(0x28a)]()-this[_0x371995(0x3c1)]):this['_getSendChangesetTimeout']()),_0x2a4dfe;}throw _0x50acce[_0x371995(0x11e)];}catch(_0x4daec9){return this['_logService']['error'](_0x4daec9),this[_0x371995(0x2ca)](!0x1);}}['onRemoteAck'](){const _0x11ebd6=_0x18d643;throw new Error(_0x11ebd6(0x1c1));}[_0x18d643(0x374)](){const _0x2e84ae=_0x18d643;throw new Error(_0x2e84ae(0x38c));}[_0x18d643(0x285)](){const _0x11adbe=_0x18d643;return this[_0x11adbe(0x439)](),this[_0x11adbe(0x42e)]['createInstance'](B,this[_0x11adbe(0x432)],this[_0x11adbe(0x3a7)],null,this['_pendingMutations'],this[_0x11adbe(0x267)]);}['toggleOnline'](){return this;}[_0x18d643(0x3fe)](_0xaf32c){const _0x425ae7=_0x18d643;_0xaf32c=_0xaf32c!=null?_0xaf32c:this[_0x425ae7(0x2c9)](),this[_0x425ae7(0x3c1)]=new Date()['getTime'](),this[_0x425ae7(0x433)]=setTimeout(()=>{const _0x2e2877=_0x425ae7;this[_0x2e2877(0x439)]();let _0x4c594e=null;switch(this[_0x2e2877(0x3a7)]){case j['UNIVER_SHEET']:{_0x4c594e=bs(this[_0x2e2877(0x12f)],this[_0x2e2877(0x432)],this[_0x2e2877(0x437)],this[_0x2e2877(0x425)],this[_0x2e2877(0x214)]);break;}case j[_0x2e2877(0x336)]:{_0x4c594e=Ts(this[_0x2e2877(0x12f)],this[_0x2e2877(0x432)],this[_0x2e2877(0x437)],this['_revisionService'],this[_0x2e2877(0x214)]);break;}default:throw new Error(_0x2e2877(0x20e)+this['type']+_0x2e2877(0x4ad));}const {changeset:_0x104576,pendingMutations:_0x25e9dd}=_0x4c594e;this['_handler'][_0x2e2877(0x16e)](_0x104576);const _0x87e6ab=_0x25e9dd['length']?this[_0x2e2877(0x42e)]['createInstance'](H,this[_0x2e2877(0x432)],this['type'],_0x104576,_0x25e9dd,this[_0x2e2877(0x267)]):this[_0x2e2877(0x42e)]['createInstance'](k,this['unitID'],this[_0x2e2877(0x3a7)],_0x104576,this[_0x2e2877(0x267)]);_0x87e6ab[_0x2e2877(0x117)](),this[_0x2e2877(0x267)]['onStateChange'](this,_0x87e6ab);},_0xaf32c);}[_0x18d643(0x2c9)](){const _0x303a56=_0x18d643;var _0x4237c4;return(_0x4237c4=this[_0x303a56(0x2b5)][_0x303a56(0x46d)](_t))!=null?_0x4237c4:Ft;}[_0x18d643(0x4a8)](){const _0xa6cefd=_0x18d643;throw new Error(_0xa6cefd(0x4b0));}['_clearScheduledTask'](){const _0x4947fc=_0x18d643;this[_0x4947fc(0x433)]!=null&&(clearTimeout(this[_0x4947fc(0x433)]),this[_0x4947fc(0x433)]=null);}['_onConflict'](_0x568ad8){const _0x20fcec=_0x18d643;return this['_clearScheduledTask'](),this[_0x20fcec(0x42e)]['createInstance'](Y,this[_0x20fcec(0x432)],this[_0x20fcec(0x3a7)],null,this[_0x20fcec(0x12f)],this[_0x20fcec(0x267)],_0x568ad8);}};$=K([f(0x4,h['Inject'](h[_0x18d643(0x463)])),f(0x5,h[_0x18d643(0x2ef)](u[_0x18d643(0x498)])),f(0x6,h[_0x18d643(0x2ef)](exports['LocalCacheService'])),f(0x7,h[_0x18d643(0x2ef)](G)),f(0x8,a['ILogService']),f(0x9,a[_0x18d643(0x218)]),f(0xa,a[_0x18d643(0x14b)]),f(0xb,u[_0x18d643(0x366)]),f(0xc,a['IUniverInstanceService']),f(0xd,a['IUndoRedoService'])],$);let k=class extends X{constructor(_0x4d9a7d,_0x2f28c1,_0x5f0863,_0x29c5e2,_0x5c132a,_0x220b0c,_0x29b3d4,_0x2f5b9f,_0x1b3664,_0xeabb40,_0x5958da){const _0x558d7a=_0x18d643;super(_0x4d9a7d,_0x2f28c1,_0x5f0863,[],_0x29c5e2,_0x2f5b9f,_0x5958da,_0x220b0c,_0x29b3d4),d(this,'status',_0x558d7a(0x313)),(this[_0x558d7a(0x42e)]=_0x5c132a,this[_0x558d7a(0x132)]=_0x1b3664,this[_0x558d7a(0x39b)]=_0xeabb40);}[_0x18d643(0x14d)](_0x338b1e){const _0x18aa8e=_0x18d643,_0x4b2f2c=this[_0x18aa8e(0x42e)][_0x18aa8e(0x40f)](H,this[_0x18aa8e(0x432)],this['type'],this[_0x18aa8e(0x38d)],[_0x338b1e],this[_0x18aa8e(0x267)]);return _0x4b2f2c[_0x18aa8e(0x117)](),_0x4b2f2c;}[_0x18d643(0x250)](_0x55a8cc){const _0x45e32b=_0x18d643;if(this[_0x45e32b(0x354)](_0x55a8cc))return this[_0x45e32b(0x42e)][_0x45e32b(0x40f)](x,this[_0x45e32b(0x432)],this[_0x45e32b(0x3a7)],this[_0x45e32b(0x38d)],[],null,[_0x55a8cc],this['_handler']);try{const _0xb7a42d=this[_0x45e32b(0x39b)][_0x45e32b(0x385)]([_0x55a8cc],[this[_0x45e32b(0x38d)]],!0x1);if(u[_0x45e32b(0x342)](_0xb7a42d)){const {c1Prime:_0x419691,c2Prime:_0x20a79a}=_0xb7a42d;this['_executeRemoteChangeset'](_0x419691[0x0]),_0x20a79a[0x0]['baseRev']=this[_0x45e32b(0x15c)]();const _0x36e229=this[_0x45e32b(0x42e)][_0x45e32b(0x40f)](k,this[_0x45e32b(0x432)],this['type'],_0x20a79a[0x0],this[_0x45e32b(0x267)]);return _0x36e229[_0x45e32b(0x117)](),_0x36e229;}return this[_0x45e32b(0x2ca)](!0x1);}catch(_0x10a30d){return this['_logService'][_0x45e32b(0x11e)](_0x10a30d),this['_onConflict'](!0x1);}}[_0x18d643(0x479)](_0x2cf66f){const _0x2add31=_0x18d643,_0x5a624a=this[_0x2add31(0x425)][_0x2add31(0x1c2)](this[_0x2add31(0x432)]);if(_0x2cf66f[_0x2add31(0x1ed)]<_0x5a624a-0x1)return this;if(this[_0x2add31(0x354)](_0x2cf66f))return this[_0x2add31(0x42e)][_0x2add31(0x40f)](x,this[_0x2add31(0x432)],this[_0x2add31(0x3a7)],null,[],this['_awaitingChangeset'],[],this[_0x2add31(0x267)]);this[_0x2add31(0x478)]();const _0x26cae1=this[_0x2add31(0x42e)][_0x2add31(0x40f)](ae,this[_0x2add31(0x432)],this[_0x2add31(0x3a7)],this[_0x2add31(0x267)]);return _0x26cae1['_updateLocalCache'](),_0x26cae1;}[_0x18d643(0x374)](_0x38b0e6){const _0x3f0f1d=_0x18d643;return this[_0x3f0f1d(0x2ca)](!!(_0x38b0e6!=null&&_0x38b0e6[_0x3f0f1d(0x1f5)]));}['toggleOffline'](){const _0xa8a02=_0x18d643;return this[_0xa8a02(0x42e)][_0xa8a02(0x40f)](B,this['unitID'],this[_0xa8a02(0x3a7)],this['_awaitingChangeset'],[],this[_0xa8a02(0x267)]);}[_0x18d643(0x407)](){return this;}[_0x18d643(0x4a8)](){const _0x30870b=_0x18d643;this[_0x30870b(0x267)][_0x30870b(0x16e)](this[_0x30870b(0x38d)]);}[_0x18d643(0x2ca)](_0x51f067){const _0xe9de4b=_0x18d643;return this[_0xe9de4b(0x42e)][_0xe9de4b(0x40f)](Y,this[_0xe9de4b(0x432)],this['type'],this[_0xe9de4b(0x38d)],[],this['_handler'],_0x51f067);}};k=K([f(0x4,h['Inject'](h[_0x18d643(0x463)])),f(0x5,h[_0x18d643(0x2ef)](u[_0x18d643(0x498)])),f(0x6,h[_0x18d643(0x2ef)](exports['LocalCacheService'])),f(0x7,a['ICommandService']),f(0x8,a[_0x18d643(0x31e)]),f(0x9,u[_0x18d643(0x366)]),f(0xa,a[_0x18d643(0x4b7)])],k);let H=class extends X{constructor(_0x3df34b,_0x40beb1,_0x4a390d,_0x2f71d2,_0x3ef9d0,_0xec13bd,_0x30a631,_0x33e5bd,_0x2cf397,_0x16ae47,_0x4e602e,_0x895681){const _0x440ae5=_0x18d643;super(_0x3df34b,_0x40beb1,_0x4a390d,_0x2f71d2,_0x3ef9d0,_0x2cf397,_0x895681,_0x30a631,_0x33e5bd),d(this,_0x440ae5(0x3a4),'awaiting_with_pending'),(this[_0x440ae5(0x42e)]=_0xec13bd,this[_0x440ae5(0x132)]=_0x16ae47,this[_0x440ae5(0x39b)]=_0x4e602e);}[_0x18d643(0x14d)](_0x49823f){const _0x44f223=_0x18d643;return this[_0x44f223(0x12f)]['push'](_0x49823f),this;}['onRemoteChangeset'](_0x2228c3){const _0x40ece6=_0x18d643;if(this[_0x40ece6(0x354)](_0x2228c3))return this[_0x40ece6(0x42e)]['createInstance'](x,this[_0x40ece6(0x432)],this['type'],this['_awaitingChangeset'],this[_0x40ece6(0x12f)],null,[_0x2228c3],this['_handler']);try{const _0x4dd3be=this[_0x40ece6(0x39b)][_0x40ece6(0x385)]([_0x2228c3],[this[_0x40ece6(0x38d)]],!0x1);if(u[_0x40ece6(0x342)](_0x4dd3be)){const {c1Prime:_0x30d7d6,c2Prime:_0x3caf67}=_0x4dd3be,_0x721d8c=this[_0x40ece6(0x39b)][_0x40ece6(0x33d)](_0x30d7d6[0x0],this[_0x40ece6(0x12f)]);if(u[_0x40ece6(0x4c2)](_0x721d8c)){const {c1Prime:_0x260685,m2Prime:_0x15e746}=_0x721d8c;return this[_0x40ece6(0x23f)](_0x260685),_0x3caf67[0x0][_0x40ece6(0x32a)]=this[_0x40ece6(0x15c)](),this[_0x40ece6(0x42e)][_0x40ece6(0x40f)](H,this[_0x40ece6(0x432)],this[_0x40ece6(0x3a7)],_0x3caf67[0x0],_0x15e746,this[_0x40ece6(0x267)]);}throw _0x721d8c['error'];}throw _0x4dd3be[_0x40ece6(0x11e)];}catch(_0x31e6e6){return this[_0x40ece6(0x132)][_0x40ece6(0x11e)](_0x31e6e6),this[_0x40ece6(0x2ca)](!0x1);}}[_0x18d643(0x479)](_0x35266f){const _0x1da4e2=_0x18d643;if(this[_0x1da4e2(0x354)](_0x35266f))return this[_0x1da4e2(0x42e)]['createInstance'](x,this[_0x1da4e2(0x432)],this['type'],null,this[_0x1da4e2(0x12f)],this[_0x1da4e2(0x38d)],[],this[_0x1da4e2(0x267)]);this[_0x1da4e2(0x478)]();const _0x4e2553=this['_injector'][_0x1da4e2(0x40f)]($,this[_0x1da4e2(0x432)],this[_0x1da4e2(0x3a7)],this['_pendingMutations'],this[_0x1da4e2(0x267)]);return _0x4e2553[_0x1da4e2(0x3fe)](),_0x4e2553[_0x1da4e2(0x117)](),_0x4e2553;}['onRemoteRej'](_0x54f1af){const _0x116bed=_0x18d643;return this[_0x116bed(0x2ca)](!!(_0x54f1af!=null&&_0x54f1af['isPermissionRej']));}[_0x18d643(0x285)](){const _0x47976f=_0x18d643;return this['_injector'][_0x47976f(0x40f)](B,this['unitID'],this['type'],this[_0x47976f(0x38d)],this[_0x47976f(0x12f)],this[_0x47976f(0x267)]);}[_0x18d643(0x407)](){return this;}[_0x18d643(0x4a8)](){const _0x140126=_0x18d643;this['_handler'][_0x140126(0x16e)](this['_awaitingChangeset']);}[_0x18d643(0x2ca)](_0x1f1ddf){const _0x316005=_0x18d643;return this[_0x316005(0x42e)]['createInstance'](Y,this['unitID'],this[_0x316005(0x3a7)],null,this[_0x316005(0x12f)],this['_handler'],_0x1f1ddf);}};H=K([f(0x5,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),f(0x6,h[_0x18d643(0x2ef)](u[_0x18d643(0x498)])),f(0x7,h[_0x18d643(0x2ef)](exports[_0x18d643(0x3e2)])),f(0x8,a['ICommandService']),f(0x9,a[_0x18d643(0x31e)]),f(0xa,u[_0x18d643(0x366)]),f(0xb,a[_0x18d643(0x4b7)])],H);let Y=class extends X{constructor(_0x29abac,_0x284c2c,_0x320f70,_0x525d8f,_0x574e6a,_0x27947d=!0x1,_0x52901e,_0x2065e4,_0x24e42b,_0x42e474,_0x535cb2,_0x372091,_0x43b11a){const _0x499bb1=_0x18d643;super(_0x29abac,_0x284c2c,_0x320f70,_0x525d8f,_0x574e6a,_0x2065e4,_0x24e42b,_0x535cb2,_0x42e474),d(this,_0x499bb1(0x3a4),_0x499bb1(0x2b4)),(this['_isPermissionRej']=_0x27947d,this['_permissionService']=_0x52901e,this[_0x499bb1(0x288)]=_0x372091,this[_0x499bb1(0x2b2)]=_0x43b11a,this[_0x499bb1(0x4a5)](),this[_0x499bb1(0x404)](),this[_0x499bb1(0x20d)]());}[_0x18d643(0x14d)](){return this;}['onRemoteChangeset'](){return this;}[_0x18d643(0x479)](){return this;}[_0x18d643(0x374)](){return this;}[_0x18d643(0x285)](){return this;}[_0x18d643(0x407)](){return this;}[_0x18d643(0x4a8)](){const _0x8c2106=_0x18d643;throw new Error(_0x8c2106(0x2bf));}[_0x18d643(0x404)](){const _0x59bf72=_0x18d643;this[_0x59bf72(0x245)][_0x59bf72(0x2bb)](this[_0x59bf72(0x432)],this[_0x59bf72(0x3a7)],null,[]);}[_0x18d643(0x4a5)](){const _0x11dcb3=_0x18d643;this[_0x11dcb3(0x3a1)]?this[_0x11dcb3(0x2b2)]['show']({'title':this[_0x11dcb3(0x288)]['t'](_0x11dcb3(0x3a6)),'content':this[_0x11dcb3(0x288)]['t']('permission.content'),'type':_0x11dcb3(0x11e),'duration':0x0}):this['_notificationService'][_0x11dcb3(0x2f6)]({'title':this[_0x11dcb3(0x288)]['t'](_0x11dcb3(0x115)),'content':this[_0x11dcb3(0x288)]['t'](_0x11dcb3(0x459)),'type':_0x11dcb3(0x11e),'duration':0x0});}[_0x18d643(0x20d)](){const _0x3e46a4=_0x18d643;this[_0x3e46a4(0x45c)][_0x3e46a4(0x2ab)](new E[(_0x3e46a4(0x1af))](this[_0x3e46a4(0x432)])['id'],!0x1);}};Y=K([f(0x6,h[_0x18d643(0x2ef)](a[_0x18d643(0x1ec)])),f(0x7,a['ICommandService']),f(0x8,a[_0x18d643(0x4b7)]),f(0x9,h[_0x18d643(0x2ef)](exports[_0x18d643(0x3e2)])),f(0xa,h[_0x18d643(0x2ef)](u[_0x18d643(0x498)])),f(0xb,h[_0x18d643(0x2ef)](a[_0x18d643(0x30c)])),f(0xc,N[_0x18d643(0x4a2)])],Y);let B=class extends X{constructor(_0x5d2974,_0x45cf77,_0x5642ba,_0x14be97,_0x102335,_0xb537f7,_0x23e061,_0x1f8b97,_0x55d83f,_0xfa5a50){const _0x18be0c=_0x18d643;super(_0x5d2974,_0x45cf77,_0x5642ba,_0x14be97,_0x102335,_0x55d83f,_0xfa5a50,_0x23e061,_0x1f8b97),d(this,_0x18be0c(0x3a4),_0x18be0c(0x2ad)),this[_0x18be0c(0x42e)]=_0xb537f7;}['appendMutation'](_0x3db4a4){const _0x25f8db=_0x18d643;return this[_0x25f8db(0x12f)][_0x25f8db(0x28b)](_0x3db4a4),this[_0x25f8db(0x117)](),this;}[_0x18d643(0x250)](_0x5238d1){const _0x18dad1=_0x18d643;throw new Error(_0x18dad1(0x28d));}[_0x18d643(0x479)](){const _0x41880e=_0x18d643;throw new Error(_0x41880e(0x3de));}[_0x18d643(0x374)](){const _0x377bfc=_0x18d643;throw new Error(_0x377bfc(0x467));}['toggleOffline'](){return this;}[_0x18d643(0x407)](){const _0x3a6564=_0x18d643,{_injector:_0x3d9761,_pendingMutations:_0x382064,_awaitingChangeset:_0x555ee8,unitID:_0x36bda2,_handler:_0x2336a4,type:_0x224d8d}=this,_0x3d36ba=Tt(_0x3d9761,_0x36bda2,_0x224d8d,_0x555ee8,_0x382064,_0x2336a4);return _0x3d36ba instanceof $?_0x3d36ba[_0x3a6564(0x3fe)]():(_0x3d36ba instanceof H||_0x3d36ba instanceof k)&&_0x3d36ba[_0x3a6564(0x4a8)](),_0x3d36ba;}['resend'](){const _0x25ae31=_0x18d643;throw new Error(_0x25ae31(0x454));}};function _0x7f1e(){const _0x545c70=['univer-online-status','[PendingState]:\x20received\x20rejection.','_awaitingChangeset','_onUserJoin','LIVESHARE_REQUEST_HOST','pushState','transformByState','ThemeService','collaboratorID','PERMISSION_DENIED','UNIVER_UNKNOWN','/allowed','_disabled','COMMENT_UPDATE','/resources','serializeCombRequest','_transformService','InsertRangeMoveDownCommandId','IMessageService','_onRefRangeChange','data','transformUndoRedo','_isPermissionRej','getImage','map','status','liveShareNewHost','permission.title','type','SetTextSelectionsOperation','univer-online-status-icon','@wendellhu/redi','_document','collabCursorState$','replaceState','getActiveRange','debounceTime','csAckEvent','Plugin','_transformRemoteChangesetByIMECache','labelPosition','_compressMutationService','setAlpha','ws://127.0.0.1:8000/universer-api/comb/connect','transformRemoteChangeset','[SyncedState]:\x20received\x20rejection.','SNAPSHOT_SERVER_URL_KEY','_socketReady','objectID','path','editingUnit','clear','createCollaborator','INVALID_ARGUMENT','_scheduleTimestamp','getCollabCursors$','actions','_anchor','parseChangesetToProtocol','@wendellhu/redi/react-bindings','_textBubble','_removeRoom','BehaviorSubject','_handleEvent','icon','COMPRESS_MUTATION_APPLY','_removeCollabCursors','mutations','_cursors','handleInsertRangeMoveRight','IUniverInstanceService','snapshot','_getAnchorBounding','removeMember','_unitId','_commandService','\x0aAfter:\x20','stringify','isEditing','_anchorDot','set','CollaborationStatusDisplay','Module','[OfflineState]:\x20received\x20acknowledgement.','extend','_transformIMECache','_redoStacks','LocalCacheService','registerRefRange','makeDirty','_toggleOnline','getActiveSheet','joinEvent','InsertSheetMutation','_docSyncEditingCollabCursorService','substring','getSheetBlock','INGEST','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_onConnectionOpen','endRow','Unknown\x20user','SheetSkeletonManagerService','_updateSubUnitFromURLParams','_send','handleDeleteRangeMoveLeft','cursorInfo','UNRECOGNIZED','append','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_decreaseWaiting','find','_drawRange','Warning','getUnitId','_schedule','routeKey','saveSheetBlock','_exhaustRemoteChangesetQueue','_event$','listCollaborators','_clearLocalCache','NOT_COLLAB','_getUploadFileURL','toggleOnline','ColorKit','_unitID','Vector2','UNAUTHENTICATED','#FFF','getCollabEntity','onlyLocal','createInstance','_createInitialState','not_collab','_eventUnsubscribe','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onPointerLeave$','SelectionManagerService','_imageSourceCache','_onCursorDelete','submit\x20changeset\x20error!','clearInterval','_transformSelections','Error\x20on\x20receiving\x20event','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','c1Prime','infoRsp','open$','string','MSG_FOR_ERROR','_scheduleHeartbeat','some','HTTPService','_revisionService','_transformPreviousActiveRange','currentTheme$','ImageSourceType','getUndoRedoMutationParamsCache','setTimeout','length','RETRY_CONNECTING_INTERVAL','className','_injector','_sheetTransformSelectionsService','[CollaborationUndoRedoService]','[CollaborationSessionService]','unitID','_sendingTimer','univer-pro.collaboration-client-socket-service','COLORS','code','_univerInstanceService','clearTimeout','_clearScheduledTask','_docTransformIMECacheService','IBeforeCloseService','propertyIsEnumerable','round','COLLAB_WEB_SOCKET_URL_KEY','updateCollaborator','session','AWAITING','MessageType','switchMap','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','collabStatus.fetchMiss','combineLatest','_id','filter','onTransformIME','_socketMessageSubscription','handleIRemoveRow','defineProperty','Steady','handleInsertRow','RECV','joinRsp','RxDisposable','_onCombEvent','c2Prime','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','LifecycleStages','...','CollaborationSessionService','_sheetSkeletonManagerService','conflict.content','LocalUndoRedoService','_cachedData','_permissionService','url','failed\x20to\x20apply\x20missed\x20changesets!','_draw','getColor','APPLY_NON_SEQUENTIAL_REVISION','Optional','Injector','getOwnPropertySymbols','setCurrentUser','close','[OfflineState]:\x20received\x20rejection.','deserializeToCombResponse','&to=','USERS_ENTER','onCommentUpdate','setWaitCount','getConfig','_getUndoStack','_state$','univerjs-icon\x20univerjs-icon-','87482tFAzCN','912dhrCuz','createElement','getMergeData','PERMISSION_REJ','_scheduleSaving','getMember','_incrementRevisionNumber','onRemoteAck','textRanges','name','_heartbeatTimer','roomInfos','_range','?size=','Disposable','size','selections','_docSkeleton','_onRemoteChangeset','fill','_colorIndex','fromEvent','override','history','_shapes','endColumn','RegularPolygon','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','image/jpg','_cursor','ImageUploadStatusType','_queuedRemoteChangesets','_retryCount','urlChange$','_startSheetCollabCursor','CHANGESET_REJ','@univerjs/design','APPLY_PERMISSION_DENIED','RevisionService','Rectangle','setActiveRange','handleDeleteRangeMoveUp','change$','disposeUnit','image/png','docStateChange$','getOffsetConfig','includes','INotificationService','lineTo','[DataLoaderController]','_showConflictNotification','139254ZrywQS','changesets','resend','_handleHeartbeatEvent','SUBMIT_CHANGESET','getValue','addEventListener','\x20in\x20_schedule.','memberID','encode','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onlineStatusIcon','objects','LIVESHARE_NEW_HOST','_drawAnchor','transformSelections','measureText','IUndoRedoService','setUndoRedoMutationParamsCache','_acknowledgedAwaitingChangeset','getRoom','setInterval','/object/','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_submitChangeset','APPLY_REVISION_CONFILICT','saveOfflineData','/fetchmissing?from=','isTransformMutationsWithChangesetSuccess','symbol','_unlockTransition','init','/-/object/list','shareReplay','SEND_CHANGESET_TIMEOUT_KEY','subUnitId','IDLE','CONNECTOR_DATA_TOO_LARGE','[UniverCollaborationClientPlugin]','enableOfflineEditing','_name','CollaborationSocketService','selection','_getAPIPrefix','updateCursorEvent','LIVESHARE_FETCH_OPERATIONS','YUUMI_UNABLE_LOAD_URL','_urlService','_roomMembers$','conflict.title','_onRemoteACK','_updateLocalCache','function','searchParams','random','subunit','_colorAssignService','handleInsertRangeMoveDown','error','clipPath','hovered','socket\x20open.','text','isTransformMutationsWithChangesetFailure','sheetID','m1Prime','enableAuthServer','[CollaborationEntity]','_onConnectionFailed','row','[CollaborationSession]','PENDING','_getSaveTimeout','lodash/debounce','save\x20fail\x20reason\x20is\x20','_pendingMutations','_scheduleReconnection','NEW_CHANGESETS','_logService','ThresholdInterceptorFactory','encodeURIComponent','key','_clearUndo','indexOf','newValue','LEAVE','url(#on-line-single_clip0_910_349)','ACTIVE_UNIT_EVENT_CHANNEL','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','apply','DEFAULT_FILE_NAME','resolve','setItem','CompressMutationService','RemoveColCommandId','image/jpeg','sheets','setShapeProps','SnapshotService','addObject','FETCH_MISSING','subscribeEvent','_socketService','IConfigService','/universer-api/comb','appendMutation','INTERNAL_ERROR','state','complete','sheetId','_onCursorUpdate','getSelections','rxjs/operators','loadOfflineData','0\x200\x2017\x2016','UserManagerService','Subject','catch','_entityInit$','rxjs','_getCurrentRevision','mergeOverrideWithDependencies','_renderManagerService','objectActions','COMPRESS_MUTATION_SEND','_docStateChangeManagerService','fetch_missing','RichTextEditingMutation','getCurrentUnitForType','allowed','_substituteRedoStack','_tryEnsureSocket','ERROR_IMAGE','save','OffLineSingle','HEARTBEAT_TIMEOUT','getResourcesRequest','COMPLETION_FINISHED','onSendChangeset','take','getSheetId','font','generateRandomId','_syncEditingCollabCursor','1em','VIEWPORT_KEY','_updateStatus','IMEInputManagerService','IRenderManagerService','list','black','isActive','UniverInstanceType','_singleActiveUnitService','_updateLocalCursor','_ensureSubject','b64DecodeUnicode','FileId','getItem','unitId','has','tag','ranges','_getSnapshotAPIPrefix','_createInitialStateImpl','_labelPosition','saveChangeset','subscribe','/collaborator','/rev/','0\x200\x2016\x2016','deepClone','_initStatusListener','top','roomMembers','@univerjs/rpc','_uiPartsService','closePath','getViewport','_themeService','CollaborationEvent','_getCtorByUniverType','connection\x20error','/universer-api/oidc/authpage','sequenceExecute','awaitingChangeset','_fetchMissChangesets','collabStatus.offline','onCommandExecuted','JSONX','RemoveRowCommandId','LICENSE_MAX_UNITS_EXCEEDED','collab-text-anchor-','@univerjs/drawing','[CollaborationState]:\x20apply\x20error!','_removeClearOtherTimer','toString','isTransformMutationFailure','_initStatusComponent','message$','CollaborationController','APPLY_REJECT','_scheduleClearOtherTimer','WorkbookEditablePermission','_handleJoinEvent','DocStateChangeManagerService','_transitionLocked','_session','_hideTimer','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','Rect','assignAColorForMemberID','_messageService','UNIVER_SLIDE','_onMessage','disableLocalCache','get','_roomMembers','collaborationUniverTypes','registerBeforeClose','idSuffix','[PendingState]:\x20received\x20acknowledgement.','getCurrentRevForDocument','_init','_exhaustSavingTask','popstate','_getSignURL','AWAITING_WITH_PENDING','_http','@univerjs/engine-formula','send','_waitCount','socket\x20close','transformMutation','socketService','replace','createIdentifier','startsWith','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/docs','interceptor','width','RefRangeService','getRangePointData','\x0aCurrent:\x20','currentSkeleton$','_onRemoteRejected','/block/','serializeRangeWithSheet','fillText','defIds','COLLAB_SUBMIT_CHANGESET_URL_KEY','on-line-single_clip0_910_349','getUniverSheetInstance','univer-online-status-title','url(#$1','SNAPSHOT_INVALID_SNAPSHOT','_clearOtherTimers','_syncEditingCollabCursorService','_sessions','AuthzIoHttpService','UNKNOWN_CODE','drawWith','Error','IPermissionService','revision','LOCAL_CACHE_INTERVAL','_replayCachedMutations','findNodePositionByCharIndex','IImageIoService','add','jiqing500','addObjects','isPermissionRej','UNIVER_COLLABORATION_CLIENT_PLUGIN','_scheduleCollaborationTimeoutTimer','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','title','_entities','_createSocket','_userManagerService','collabStatus.syncing','min','none','/universer-api/authz','members','_lockTransition','workbook','LICENSE_IMPORT_SIZE_EXCEEDED','sessionStatus$','/universer-api/file/{fileID}/sign-url','red300','getUnitOnRev','COLLAB_WEB_SOCKET_URL','_localStorageService','textEncoder','_socket','_disableEditing','[PendingState]:\x20unhandled\x20univer\x20type:\x20','use','forwardRef','listRoles','href','_docSkeletonManagerService','_memberService','SNAPSHOT_URL_KEY','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','all','ICommandService','PSEUDO_FETCH_MISSING_RESULT','_getRedoStack','onStarting','UNKNOWN_CMD','UUID','getDocObject','_saveCache','IContextService','asObservable','/unit/','USERS_LEAVE','executeCommand','merge','getCoordByCell','batchAllowed','fetchThroughInterceptors','_sessionStatus$','off-line-single_clip0_910_343','compose','JOIN','OnLineSingle','_timeoutTimer','objectType','_setupBeforeClosingHandler','file','_socket$','NodePositionConvertToCursor','removeParam','ILocalStorageService','getTypeOfUnitAdded$','dispose$','replaceTextRanges','@univerjs/sheets','ALREADY_EXISTS','_hover','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_updateURLWithCurrentState','takeUntil','_executeRemoteChangeset','_remoteChangesetQueue','collabStatus.synced','OFFLINE','/-/object/-/batch_allowed','LICENSE_EXPORT_SIZE_EXCEEDED','_localCacheService','TEXT_RANGE_LAYER_INDEX','WebURLService','_commentUpdate$','\x20to\x20','CHANGESET_ACK','SessionStatus','M0\x200H16V16H0z','@univerjs/network','_replaceFileID','_collaborationPaused','onRemoteChangeset','event$','univer-pro.collaboration-client.single-active-unit-service','fetchMissingChangesets','CHANGESET_REVISION_CONFILICT','_sendHeartbeatTimer','split','_HTTPService','_getDocObject','DependentOn','_beforeCloseService','on-line-single','serializeTextRange','LICENSE_DISTRO_REJECTED','src','_snapshotServerService','reduce','_getLoginPath','DesktopCollaborationStatusDisplayController','SYNCED','setParam','/universer-api/snapshot','HEARTBEAT','_handler','session.collaboration-timeout','DeleteRangeMoveLeftCommandId','SetSelectionsOperation','whenReady','reject','editing\x20status\x20changed\x20to','getParam','with','then','contains','RETRY_CONNECTING_MAX_COUNT','getUnitType','_onRecvEvent','collaMsg','IUIPartsService','roles','focused$','evenodd','_change$','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','LIVESHARE_OPERATION','pending','_loadSheet','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','debug','url(#off-line-single_clip0_910_343)','liveShareOperation','/universer-api/stream/file/upload','_retryConnectingTimer','toggleOffline','2319704BrtgLn','_online','_localeService','_getMergeRange','getTime','push','ISnapshotServerService','[OfflineState]:\x20received\x20changeset.','_hovered','DisposableCollection','activeSheet$','restore','_loadDoc','onPointerMove$','_ws','InsertRangeMoveRightCommandId','patch','Univer','_collabCursorController','UniverCollaborationClientPlugin','InsertColCommandId','LIVESHARE_TERMINATE','error$','loadDoc','userID','UNDEFINED','onlineStatusTitle','pluginName','_startDocCollabCursor','AUTHZ_URL_KEY','runRefRangeMutations','pipe','_scene','_clearHeartbeatTimer','onPointerEnter$','state$','unsubscribe','updatePermissionPoint','/role','offline','params','HEARTBEAT_INTERVAL','readAsDataURL','Ready','_notificationService','fillStyle','conflict','_configService','_clearRedo','UPDATE_CURSOR','location','_state','color','updateOfflineData','onSyncEditingCollabCursor','_collaborationTimeoutTimer','CollaborationSession','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_saveTaskMap','_transformUndoRedoStack','HEARTBEAT_TIMEOUT_KEY','attrs','getCellPositionByOffset','requireSession','UniverCollaborationPlugin','div','collab-text-range-','_getSendChangesetTimeout','_onConflict','HEARTBEAT_INTERVAL_KEY','_onLocalMutation','onTransformRemoteChangesetByIMECache','handleInsertCol','_updateState','toStringTag','svg','_render','parseProtocolChangeset','off-line-single','_onUserLeave','_assignedColors','_httpService','transformIMECache','_transformUndoredo','image/bmp','values','_selfUnitIDs','createSocket','eventID','_substituteUndoStack','useDependency','_unitOnClients','_snapshotService','EffectRefRangId','doc.mutation.rich-text-editing','HELLO','_cursorInfo$','Tools','_type','_docTransformSelectionsService','gold400','forEach','_refRangeService','collaborators','assign','Inject','confirm','SEND_CHANGESET_TIMEOUT','getCurrentUser','_onFetchMissResult','reverse','getMemberID','show','ONLINE','csRejEvent','getScrollXYByRelativeCoords','updateMember','from','CONFLICT','addImageSourceCache','flatMap','loadSheet','@univerjs/sheets-ui','xlink:href','m2Prime','MoveRangeCommandId','/object','YUUMI_URL_COL_OUT_OF_RANGE','result','NOT_FOUND','_sendHeartbeat','update','max','startRow','LocaleService','getDataModel','_config','slice','getUnhiddenWorksheets','NO_OTHER_CLIENTS_EDITING','post','awaiting','UNIVER_SHEET','{fileID}','MUTATION','_initModules','dispose','287EMSgfL','getTypeOfUnitDisposed$','getViewModel','sessionStatus','_rescheduleHeartbeatEvent','ILogService','collabStatus.notCollab','deleteCollaborator','_undoRedoService','getCollabEntity$','trim','mapDocumentTypeToUniverType','@univerjs/engine-render','height','getImageSourceCache','defs','displayName','baseRev','#fff','/universer-api/snapshot/','_handleHover','call','DataLoaderController','_getSheetObject','fromCollab','entries','react','getOwnPropertyDescriptor','_collabSessionService','UNIVER_DOC','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_commentService','LOCAL_CACHE_INTERVAL_KEY','_transformStack','next','OTHER_CLIENTS_EDITING','transformMutationsWithChangeset','range','FAIL','cursorInfo$','body','isTransformChangesetsSuccess','EXCHANGE_SIGN_URL_SERVER_URL_KEY','JOINING','toDisposable','BASE64','onMouseMove','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_collabCursorState$','LOGIN_URL_KEY','bottom','_joinRoom','onMissedChangesetFetched','_clearTimeoutTimer','_unitStatus','localeService','unknown','disposeWithMe','IAuthzIoService','_checkMissing','_members','_createHandler','getCurrent','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','colorChannel1','getSheetBySheetId','getAncestorScale','delete','registerHTTPInterceptor','OnLifecycle','online','children','FromArray','IHTTPImplementation','_startCollaboration','_lastPointer','_status$','ITransformService','TextSelectionManagerService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_handleLeaveEvent','/new_changes','univer-online','originalMeta','getFocusedUnit','DeleteRangeMoveUpCommandId','unshift','isArray','status$','CommandType','HEADER_MENU','onRemoteRej','session.room-full','getRenderById','TOO_MANY_REQUESTS','deserializeRangeWithSheet','_updateCollabCursors','concat','_toggleOffline','cmd','Starting','_collaborationController','_getAPIPrefixPath','roomMembers$','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','_color','permissionRejEvent','602355RkAYYR','transformChangesets','delay','getRelativeCoord','6656392FhTQGe','601358KACYZf','onTransformSelections'];_0x7f1e=function(){return _0x545c70;};return _0x7f1e();}B=K([f(0x5,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),f(0x6,h['Inject'](u[_0x18d643(0x498)])),f(0x7,h[_0x18d643(0x2ef)](exports['LocalCacheService'])),f(0x8,a['ICommandService']),f(0x9,a[_0x18d643(0x4b7)])],B);let x=class extends X{constructor(_0x228e0c,_0x1374ae,_0xdfe5db,_0x2946fe,_0x5be500,_0x502aa4,_0x3e1a8d,_0x1017d1,_0x209f6b,_0x58189d,_0x5f522a,_0x806e13,_0x5de711,_0x3414d9){const _0x50c073=_0x18d643;super(_0x228e0c,_0x1374ae,_0xdfe5db,_0x2946fe,_0x3e1a8d,_0x806e13,_0x5de711,_0x209f6b,_0x58189d),d(this,_0x50c073(0x3a4),_0x50c073(0x162)),(this['_acknowledgedAwaitingChangeset']=_0x5be500,this[_0x50c073(0x491)]=_0x502aa4,this[_0x50c073(0x42e)]=_0x1017d1,this[_0x50c073(0x132)]=_0x5f522a,this[_0x50c073(0x39b)]=_0x3414d9);}[_0x18d643(0x34d)](_0xb0b30d){const _0x3ceadf=_0x18d643;try{const _0x169a7e=[..._0xb0b30d,...this[_0x3ceadf(0x491)]],_0x4654ca=[this[_0x3ceadf(0x38d)]||this['_acknowledgedAwaitingChangeset']][_0x3ceadf(0x448)](_0x25fb3b=>!!_0x25fb3b);let _0xdd68d0,_0xd86eaa;if(_0x4654ca[_0x3ceadf(0x42b)]){const _0x5b586c=this['_transformService']['transformChangesets'](_0x169a7e,_0x4654ca,!0x1);if(!u[_0x3ceadf(0x342)](_0x5b586c))throw _0x5b586c[_0x3ceadf(0x11e)];_0xdd68d0=_0x5b586c[_0x3ceadf(0x41d)],_0xd86eaa=_0x5b586c[_0x3ceadf(0x453)];}else _0xdd68d0=_0x169a7e,_0xd86eaa=[];let _0x394667=this[_0x3ceadf(0x12f)];_0xdd68d0[_0x3ceadf(0x2eb)](_0x188e12=>{const _0x334896=_0x3ceadf;let _0x2daf6d;if(_0x394667[_0x334896(0x42b)]){const _0x1d9728=this['_transformService']['transformMutationsWithChangeset'](_0x188e12,_0x394667);if(!u['isTransformMutationsWithChangesetSuccess'](_0x1d9728))throw _0x1d9728[_0x334896(0x11e)];_0x2daf6d=_0x1d9728['c1Prime'],_0x394667=_0x1d9728['m2Prime'];}else _0x2daf6d=_0x188e12;this[_0x334896(0x23f)](_0x2daf6d);}),this[_0x3ceadf(0x4b9)]&&this[_0x3ceadf(0x478)](),this['_awaitingChangeset']&&_0xd86eaa['length']&&(_0xd86eaa[0x0][_0x3ceadf(0x32a)]=this[_0x3ceadf(0x15c)]());let _0x4d674f;if(this[_0x3ceadf(0x38d)]&&_0x394667[_0x3ceadf(0x42b)]!==0x0)_0x4d674f=this[_0x3ceadf(0x42e)][_0x3ceadf(0x40f)](H,this[_0x3ceadf(0x432)],this[_0x3ceadf(0x3a7)],_0xd86eaa[0x0],_0x394667,this[_0x3ceadf(0x267)]);else{if(this[_0x3ceadf(0x38d)]&&_0x394667[_0x3ceadf(0x42b)]===0x0)_0xd86eaa[0x0][_0x3ceadf(0x32a)]=this[_0x3ceadf(0x15c)](),_0x4d674f=this[_0x3ceadf(0x42e)][_0x3ceadf(0x40f)](k,this[_0x3ceadf(0x432)],this[_0x3ceadf(0x3a7)],_0xd86eaa[0x0],this[_0x3ceadf(0x267)]);else{if(_0x394667[_0x3ceadf(0x42b)]!==0x0){const _0x8a748=this[_0x3ceadf(0x42e)]['createInstance']($,this[_0x3ceadf(0x432)],this[_0x3ceadf(0x3a7)],_0x394667,this[_0x3ceadf(0x267)]);_0x8a748[_0x3ceadf(0x3fe)](),_0x4d674f=_0x8a748;}else _0x4d674f=this[_0x3ceadf(0x42e)][_0x3ceadf(0x40f)](ae,this[_0x3ceadf(0x432)],this[_0x3ceadf(0x3a7)],this[_0x3ceadf(0x267)]);}}return _0x4d674f[_0x3ceadf(0x117)](),_0x4d674f;}catch(_0x178555){return this[_0x3ceadf(0x132)][_0x3ceadf(0x11e)]('[FetchMissState]',_0x3ceadf(0x45e),_0x178555),this[_0x3ceadf(0x42e)]['createInstance'](Y,this[_0x3ceadf(0x432)],this['type'],this[_0x3ceadf(0x38d)],this[_0x3ceadf(0x12f)],this[_0x3ceadf(0x267)],!0x1);}}[_0x18d643(0x4a8)](){const _0x5d2457=_0x18d643;throw new Error(_0x5d2457(0x1f8));}[_0x18d643(0x14d)](_0x1ba5be){const _0x4a38c3=_0x18d643;return this[_0x4a38c3(0x12f)][_0x4a38c3(0x28b)](_0x1ba5be),this;}[_0x18d643(0x250)](_0x345fa3){const _0x27caaa=_0x18d643;return this['_queuedRemoteChangesets'][_0x27caaa(0x28b)](_0x345fa3),this;}[_0x18d643(0x479)](_0x3d9eb7){const _0x409427=_0x18d643;if(this[_0x409427(0x38d)])return this[_0x409427(0x4b9)]=this[_0x409427(0x38d)],this[_0x409427(0x38d)]=null,this;throw new Error(_0x409427(0x41c));}['onRemoteRej'](_0x2feee0){const _0x1144ed=_0x18d643;return this[_0x1144ed(0x2ca)](!!(_0x2feee0!=null&&_0x2feee0[_0x1144ed(0x1f5)]));}[_0x18d643(0x285)](){const _0x5cbbd0=_0x18d643;return this['_injector']['createInstance'](B,this['unitID'],this[_0x5cbbd0(0x3a7)],this[_0x5cbbd0(0x38d)],this['_pendingMutations'],this[_0x5cbbd0(0x267)]);}[_0x18d643(0x407)](){return this;}[_0x18d643(0x2ca)](_0x24bb48){const _0x4316c5=_0x18d643;return this['_injector']['createInstance'](Y,this['unitID'],this[_0x4316c5(0x3a7)],this['_awaitingChangeset'],this[_0x4316c5(0x12f)],this[_0x4316c5(0x267)],_0x24bb48);}};x=K([f(0x7,h[_0x18d643(0x2ef)](h['Injector'])),f(0x8,h[_0x18d643(0x2ef)](u['RevisionService'])),f(0x9,h[_0x18d643(0x2ef)](exports['LocalCacheService'])),f(0xa,a[_0x18d643(0x31e)]),f(0xb,a[_0x18d643(0x218)]),f(0xc,a['IUndoRedoService']),f(0xd,u[_0x18d643(0x366)])],x);function Tt(_0x178f5b,_0x5682a2,_0x2b5b4e,_0x17a7c3,_0x345b54,_0x4cda7c){const _0x2a41a5=_0x18d643;return _0x17a7c3&&_0x345b54['length']?_0x178f5b['createInstance'](H,_0x5682a2,_0x2b5b4e,_0x17a7c3,_0x345b54,_0x4cda7c):_0x17a7c3?_0x178f5b['createInstance'](k,_0x5682a2,_0x2b5b4e,_0x17a7c3,_0x4cda7c):_0x345b54[_0x2a41a5(0x42b)]?_0x178f5b[_0x2a41a5(0x40f)]($,_0x5682a2,_0x2b5b4e,_0x345b54,_0x4cda7c):_0x178f5b[_0x2a41a5(0x40f)](ae,_0x5682a2,_0x2b5b4e,_0x4cda7c);}var Ds=Object[_0x18d643(0x44c)],Us=Object[_0x18d643(0x334)],Ee=(_0x1a4656,_0x1a121b,_0x14821e,_0x389a5b)=>{const _0x399cc5=_0x18d643;for(var _0x4a1227=_0x389a5b>0x1?void 0x0:_0x389a5b?Us(_0x1a121b,_0x14821e):_0x1a121b,_0x5a4a1c=_0x1a4656[_0x399cc5(0x42b)]-0x1,_0x5e8777;_0x5a4a1c>=0x0;_0x5a4a1c--)(_0x5e8777=_0x1a4656[_0x5a4a1c])&&(_0x4a1227=(_0x389a5b?_0x5e8777(_0x1a121b,_0x14821e,_0x4a1227):_0x5e8777(_0x4a1227))||_0x4a1227);return _0x389a5b&&_0x4a1227&&Ds(_0x1a121b,_0x14821e,_0x4a1227),_0x4a1227;},p=(_0x4b8b63,_0x111916)=>(_0x55d0e0,_0x475365)=>_0x111916(_0x55d0e0,_0x475365,_0x4b8b63);exports[_0x18d643(0x1ac)]=class extends a[_0x18d643(0x451)]{constructor(_0x2a7fc3,_0x454ad8,_0x10ced7){const _0x147c0b=_0x18d643;super(),d(this,_0x147c0b(0x1fa),new Map()),d(this,_0x147c0b(0x15a),new g[(_0x147c0b(0x158))]()),(this[_0x147c0b(0x42e)]=_0x2a7fc3,this[_0x147c0b(0x335)]=_0x454ad8,this[_0x147c0b(0x437)]=_0x10ced7,this[_0x147c0b(0x1c3)]());}[_0x18d643(0x318)](){const _0x489f52=_0x18d643;super[_0x489f52(0x318)](),this[_0x489f52(0x1fa)][_0x489f52(0x2eb)](_0x5ad165=>_0x5ad165['dispose']()),this[_0x489f52(0x1fa)][_0x489f52(0x3be)]();}[_0x18d643(0x40d)](_0x1c9b3a){const _0x3363cd=_0x18d643;var _0x17f7ff;return(_0x17f7ff=this['_entities'][_0x3363cd(0x1bc)](_0x1c9b3a))!=null?_0x17f7ff:null;}[_0x18d643(0x322)](_0xf6d833){const _0x34d22c=_0x18d643,_0x23ef91=this[_0x34d22c(0x40d)](_0xf6d833);return _0x23ef91?g['of'](_0x23ef91):this['_entityInit$']['pipe'](T[_0x34d22c(0x448)](_0x4532af=>_0x4532af[_0x34d22c(0x432)]===_0xf6d833));}[_0x18d643(0x1c3)](){const _0x29ff22=_0x18d643;this[_0x29ff22(0x437)][_0x29ff22(0x236)](a[_0x29ff22(0x17c)][_0x29ff22(0x314)])[_0x29ff22(0x2a5)](g[_0x29ff22(0x23e)](this['dispose$']),T[_0x29ff22(0x386)](0x10))[_0x29ff22(0x18b)](async _0x516a6a=>{const _0x12f29a=_0x29ff22,_0x45bee9=_0x516a6a[_0x12f29a(0x3fd)](),_0x1ed0b9=await this[_0x12f29a(0x363)](_0x45bee9,j[_0x12f29a(0x314)]);this[_0x12f29a(0x1fa)]['set'](_0x45bee9,_0x1ed0b9);}),this['_univerInstanceService'][_0x29ff22(0x236)](a['UniverInstanceType']['UNIVER_DOC'])[_0x29ff22(0x2a5)](g['takeUntil'](this['dispose$']),T[_0x29ff22(0x386)](0x10))['pipe'](T['filter'](_0x257cbe=>!_0x257cbe[_0x29ff22(0x3fd)]()[_0x29ff22(0x1d1)]('__')))[_0x29ff22(0x18b)](async _0x3e5103=>{const _0x43bd30=_0x29ff22,_0x4b231d=_0x3e5103['getUnitId'](),_0x3ef1dc=await this['_startCollaboration'](_0x4b231d,j[_0x43bd30(0x336)]);this[_0x43bd30(0x1fa)][_0x43bd30(0x3db)](_0x4b231d,_0x3ef1dc);}),g['merge'](this[_0x29ff22(0x437)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x29ff22(0x314)]),this[_0x29ff22(0x437)][_0x29ff22(0x31a)](a['UniverInstanceType'][_0x29ff22(0x336)]))[_0x29ff22(0x2a5)](g[_0x29ff22(0x23e)](this[_0x29ff22(0x237)]))['subscribe'](_0x486f79=>{const _0x29c727=_0x29ff22,_0x3f779d=_0x486f79[_0x29c727(0x3fd)](),_0x1517bc=this[_0x29c727(0x1fa)][_0x29c727(0x1bc)](_0x3f779d);_0x1517bc&&(_0x1517bc['dispose'](),this[_0x29c727(0x1fa)][_0x29c727(0x35c)](_0x3f779d));});}async[_0x18d643(0x363)](_0xb32518,_0x5a1f3e){const _0x32abe8=_0x18d643,_0x2d41e0=await this[_0x32abe8(0x335)][_0x32abe8(0x2c5)](_0xb32518),_0x47a6f4=this[_0x32abe8(0x42e)][_0x32abe8(0x40f)](this[_0x32abe8(0x199)](_0x5a1f3e),_0xb32518,_0x5a1f3e,_0x2d41e0);return await _0x47a6f4[_0x32abe8(0x4c5)](),this[_0x32abe8(0x15a)][_0x32abe8(0x33b)](_0x47a6f4),_0x47a6f4;}['_getCtorByUniverType'](_0x2e2f8c){const _0x31e618=_0x18d643;switch(_0x2e2f8c){case j[_0x31e618(0x336)]:return Pe;case j[_0x31e618(0x314)]:return Me;default:throw new Error(_0x31e618(0x3ed)+_0x2e2f8c);}}},exports[_0x18d643(0x1ac)]=Ee([a['OnLifecycle'](a['LifecycleStages']['Starting'],exports[_0x18d643(0x1ac)]),p(0x0,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),p(0x1,h[_0x18d643(0x2ef)](exports[_0x18d643(0x457)])),p(0x2,a['IUniverInstanceService'])],exports[_0x18d643(0x1ac)]);let me=class extends a['RxDisposable']{constructor(_0x57ae73,_0x2e6fc9,_0x1c126e,_0x3964e1,_0x314f03,_0x2e8436,_0x1538fb,_0x4f8a90,_0x281e20,_0x58ae01,_0x9a2277,_0x5e9a86,_0x3e5d03){const _0x3ef0a6=_0x18d643;super(),d(this,_0x3ef0a6(0x46f),new g['BehaviorSubject'](null)),d(this,_0x3ef0a6(0x2a9),this[_0x3ef0a6(0x46f)][_0x3ef0a6(0x221)]()),d(this,'_state'),d(this,_0x3ef0a6(0x24f),!0x1),d(this,'status$',this[_0x3ef0a6(0x2a9)][_0x3ef0a6(0x2a5)](T[_0x3ef0a6(0x3a3)](_0x383f1f=>_0x383f1f?_0x383f1f['status']:U[_0x3ef0a6(0x242)]),T[_0x3ef0a6(0x4c7)](0x1))),d(this,_0x3ef0a6(0x1b2),!0x1),d(this,_0x3ef0a6(0x240),[]),(this[_0x3ef0a6(0x432)]=_0x57ae73,this['_type']=_0x2e6fc9,this[_0x3ef0a6(0x1b3)]=_0x1c126e,this[_0x3ef0a6(0x42e)]=_0x3964e1,this[_0x3ef0a6(0x245)]=_0x314f03,this[_0x3ef0a6(0x3b4)]=_0x2e8436,this[_0x3ef0a6(0x288)]=_0x1538fb,this[_0x3ef0a6(0x425)]=_0x4f8a90,this['_logService']=_0x281e20,this['_commandService']=_0x58ae01,this[_0x3ef0a6(0x1b8)]=_0x9a2277,this[_0x3ef0a6(0x45c)]=_0x5e9a86,this['_singleActiveUnitService']=_0x3e5d03);}get[_0x18d643(0x14f)](){const _0x1f82ef=_0x18d643;return this[_0x1f82ef(0x2b9)];}async[_0x18d643(0x4c5)](){const _0x48f3c9=_0x18d643;if(this[_0x48f3c9(0x14f)])throw new Error(_0x48f3c9(0x23c));await this[_0x48f3c9(0x1c3)]();}['pauseCollaboration'](){const _0x4fe8e0=_0x18d643;return this[_0x4fe8e0(0x24f)]=!0x0,a[_0x4fe8e0(0x345)](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x48acfa){const _0x376c5f=_0x18d643;this[_0x376c5f(0x2b9)]=_0x48acfa,this['_state$'][_0x376c5f(0x33b)](_0x48acfa);}async[_0x18d643(0x1c3)](){const _0x971baf=_0x18d643;var _0x38ddc9;return this[_0x971baf(0x2cf)](await this[_0x971baf(0x410)]()),this[_0x971baf(0x17d)]&&((_0x38ddc9=this[_0x971baf(0x17d)])==null||_0x38ddc9[_0x971baf(0x3bd)](this[_0x971baf(0x432)]),this[_0x971baf(0x352)](a['toDisposable'](this[_0x971baf(0x17d)]['getUnitStatus$'](this[_0x971baf(0x432)])[_0x971baf(0x18b)](_0x499d2a=>{const _0x4342d2=_0x971baf;this['_logService']['debug'](_0x4342d2(0x127),_0x4342d2(0x26d),_0x499d2a),_0x499d2a===Ct['OTHER_CLIENTS_EDITING']?(this['_messageService']['show']({'content':this[_0x4342d2(0x288)]['t']('collaboration.single-unit.warning'),'type':oe['MessageType'][_0x4342d2(0x3fc)]}),this[_0x4342d2(0x45c)][_0x4342d2(0x2ab)](new E[(_0x4342d2(0x1af))](this[_0x4342d2(0x432)])['id'],!0x1)):this[_0x4342d2(0x45c)][_0x4342d2(0x2ab)](new E[(_0x4342d2(0x1af))](this[_0x4342d2(0x432)])['id'],!0x0);})))),this[_0x971baf(0x352)](a[_0x971baf(0x345)](this[_0x971baf(0x1b3)][_0x971baf(0x205)][_0x971baf(0x18b)](_0x38447e=>{const _0x31a824=_0x971baf;_0x38447e===W['ONLINE']?this[_0x31a824(0x3e5)]():_0x38447e===W[_0x31a824(0x242)]&&this[_0x31a824(0x37b)]();}))),this[_0x971baf(0x352)](a['toDisposable'](this[_0x971baf(0x1b3)][_0x971baf(0x251)]['subscribe'](_0x310f33=>{const _0x52c7c3=_0x971baf;try{switch(_0x310f33[_0x52c7c3(0x2de)]){case u['CollaborationEvent'][_0x52c7c3(0x131)]:{this['_onRemoteChangeset'](u[_0x52c7c3(0x2d3)](_0x310f33['data']));break;}case u[_0x52c7c3(0x198)]['CHANGESET_ACK']:{this[_0x52c7c3(0x116)](_0x310f33['data']);break;}case u[_0x52c7c3(0x198)][_0x52c7c3(0x495)]:{this[_0x52c7c3(0x1da)]();break;}case u[_0x52c7c3(0x198)][_0x52c7c3(0x219)]:{this['_onFetchMissResult'](_0x310f33[_0x52c7c3(0x39f)][_0x52c7c3(0x4a7)]['map'](_0x2d46d0=>u[_0x52c7c3(0x2d3)](_0x2d46d0)));break;}case u['CollaborationEvent'][_0x52c7c3(0x475)]:this[_0x52c7c3(0x1da)]({'isPermissionRej':!0x0});}}catch(_0x4f529e){throw console[_0x52c7c3(0x11e)](_0x52c7c3(0x41b),_0x4f529e),_0x4f529e;}}))),this[_0x971baf(0x2b9)];}[_0x18d643(0x4c4)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x5baccf=_0x18d643;if(this[_0x5baccf(0x1b2)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x5baccf(0x1b2)]=!0x0;}['_onLocalMutation'](_0x514743){const _0xdbd67e=_0x18d643;this['_lockTransition'](),this[_0xdbd67e(0x2cf)](this[_0xdbd67e(0x2b9)]['appendMutation'](_0x514743)),this[_0xdbd67e(0x4c4)]();}[_0x18d643(0x484)](_0x52b9e6){const _0x4ac638=_0x18d643;if(!(_0x52b9e6[_0x4ac638(0x1ed)]<=this[_0x4ac638(0x425)][_0x4ac638(0x1c2)](this[_0x4ac638(0x432)]))){if(this[_0x4ac638(0x24f)]){this[_0x4ac638(0x240)]['push'](_0x52b9e6);return;}this['_applyRemoteChangeset'](_0x52b9e6);}}[_0x18d643(0x401)](){const _0xd8e481=_0x18d643;this[_0xd8e481(0x240)][_0xd8e481(0x2eb)](_0x495552=>this['_applyRemoteChangeset'](_0x495552)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x34f2b8){const _0x1a55a6=_0x18d643,_0x746978=this[_0x1a55a6(0x3b4)][_0x1a55a6(0x1d4)][_0x1a55a6(0x228)](this[_0x1a55a6(0x3b4)][_0x1a55a6(0x1d4)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x34f2b8[_0x1a55a6(0x3ce)],null)||_0x34f2b8[_0x1a55a6(0x3ce)],_0x52efb4={..._0x34f2b8,'mutations':_0x746978};this[_0x1a55a6(0x202)](),this[_0x1a55a6(0x2cf)](this['_state']['onRemoteChangeset'](_0x52efb4)),this[_0x1a55a6(0x4c4)]();}[_0x18d643(0x116)](_0x49d591){const _0x5130a1=_0x18d643;this[_0x5130a1(0x202)](),this[_0x5130a1(0x2cf)](this['_state']['onRemoteAck'](_0x49d591)),this[_0x5130a1(0x4c4)]();}[_0x18d643(0x1da)](_0x22891a){const _0x49cc8c=_0x18d643;this['_lockTransition'](),this[_0x49cc8c(0x2cf)](this['_state'][_0x49cc8c(0x374)](_0x22891a)),this['_unlockTransition']();}[_0x18d643(0x2f3)](_0x612a1c){const _0x545b9f=_0x18d643;if(!(this[_0x545b9f(0x2b9)]instanceof x))throw new TypeError(_0x545b9f(0x27b));const _0x22c05d=_0x612a1c[_0x545b9f(0x3a3)](_0x23b115=>{const _0x3705af=_0x545b9f,_0x4bc743=this[_0x3705af(0x3b4)]['interceptor'][_0x3705af(0x228)](this[_0x3705af(0x3b4)][_0x3705af(0x1d4)]['getInterceptPoints']()[_0x3705af(0x3cc)])(_0x23b115[_0x3705af(0x3ce)],null)||_0x23b115[_0x3705af(0x3ce)];return{..._0x23b115,'mutations':_0x4bc743};});this[_0x545b9f(0x202)](),this[_0x545b9f(0x2cf)](this['_state'][_0x545b9f(0x34d)](_0x22c05d)),this['_unlockTransition']();}[_0x18d643(0x37b)](){const _0x5ac16c=_0x18d643;this[_0x5ac16c(0x202)](),this[_0x5ac16c(0x2cf)](this['_state']['toggleOffline']()),this[_0x5ac16c(0x4c4)]();}[_0x18d643(0x3e5)](){const _0x266fbc=_0x18d643;this[_0x266fbc(0x202)](),this[_0x266fbc(0x2cf)](this[_0x266fbc(0x2b9)][_0x266fbc(0x407)]()),this[_0x266fbc(0x4c4)]();}async[_0x18d643(0x410)](){return new Promise(_0x3d304f=>{const _0x53aa7e=_0x1f13;this[_0x53aa7e(0x1b3)][_0x53aa7e(0x205)][_0x53aa7e(0x2a5)](T[_0x53aa7e(0x16f)](0x1))[_0x53aa7e(0x18b)](async _0x5c14cb=>{const _0xc85504=_0x53aa7e;_0x3d304f(await this[_0xc85504(0x188)](_0x5c14cb===W[_0xc85504(0x2f7)]));});});}[_0x18d643(0x356)](){const _0x31c270=_0x18d643,_0x43f81e=this[_0x31c270(0x432)];return{'onStateChange':(_0x5e7784,_0x38a359)=>{const _0x49d88d=_0x31c270;if(_0x5e7784!==this[_0x49d88d(0x2b9)])throw new Error(_0x49d88d(0x413)+_0x5e7784[_0x49d88d(0x3a4)]+_0x49d88d(0x3d7)+_0x38a359[_0x49d88d(0x3a4)]+_0x49d88d(0x1d8)+this[_0x49d88d(0x2b9)]['status']);this[_0x49d88d(0x2cf)](_0x38a359);},'onSendChangeset':_0x4a7a6d=>{const _0x57bae=_0x31c270,_0x1061f2={'eventID':u[_0x57bae(0x198)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x4a7a6d[_0x57bae(0x432)],'unitType':this['_type'],'changeset':_0x4a7a6d,'memberID':this[_0x57bae(0x1b3)]['getMemberID']()}};this['_session'][_0x57bae(0x1ca)](_0x1061f2,this[_0x57bae(0x432)]);},'onMissingChangesets':({from:_0x11bc41,to:_0x235de9})=>{const _0x4bfb2f=_0x31c270;this[_0x4bfb2f(0x132)][_0x4bfb2f(0x280)](_0x4bfb2f(0x127),'fetching\x20missing\x20changesets\x20from\x20'+_0x11bc41+_0x4bfb2f(0x249)+_0x235de9);const _0x3d09d0={'eventID':u[_0x4bfb2f(0x198)]['FETCH_MISSING'],'data':{'unitID':_0x43f81e,'unitType':this[_0x4bfb2f(0x2e8)],'from':_0x11bc41,'to':_0x235de9}};this[_0x4bfb2f(0x1b3)][_0x4bfb2f(0x1ca)](_0x3d09d0,this['unitID']);}};}async[_0x18d643(0x188)](_0x383f44){const _0x174c27=_0x18d643;var _0x207f5c,_0x29cfd8;const _0x5bf14f=await this['_localCacheService'][_0x174c27(0x155)](this[_0x174c27(0x432)]),_0xbde547=(_0x207f5c=_0x5bf14f==null?void 0x0:_0x5bf14f['mutations'])!=null?_0x207f5c:[],_0x4e30f5=(_0x29cfd8=_0x5bf14f==null?void 0x0:_0x5bf14f['awaitingChangeset'])!=null?_0x29cfd8:null,_0x2d1de3=this[_0x174c27(0x432)];try{this[_0x174c27(0x1ef)](_0x4e30f5,_0xbde547);}catch(_0xd65a4d){this['_logService'][_0x174c27(0x11e)](_0xd65a4d);}const _0x37a4eb=this[_0x174c27(0x356)]();if(_0x383f44){const _0x527e19=Tt(this[_0x174c27(0x42e)],_0x2d1de3,this[_0x174c27(0x2e8)],_0x4e30f5,_0xbde547,_0x37a4eb);return _0x527e19 instanceof $?_0x527e19[_0x174c27(0x3fe)]():(_0x527e19 instanceof H||_0x527e19 instanceof k)&&_0x527e19['resend'](),_0x527e19;}return this[_0x174c27(0x42e)]['createInstance'](B,_0x2d1de3,this[_0x174c27(0x2e8)],_0x4e30f5,_0xbde547,_0x37a4eb);}['_replayCachedMutations'](_0x5f945f,_0x5f2e3b){const _0x1c4d39=_0x18d643;var _0x4ecefe,_0x5792b7;const _0x2f1cea=this[_0x1c4d39(0x3b4)]['interceptor'][_0x1c4d39(0x228)](this[_0x1c4d39(0x3b4)][_0x1c4d39(0x1d4)]['getInterceptPoints']()[_0x1c4d39(0x3cc)]);(_0x4ecefe=_0x2f1cea((_0x5f945f==null?void 0x0:_0x5f945f[_0x1c4d39(0x3ce)])||[],null))==null||_0x4ecefe[_0x1c4d39(0x2eb)](_0xe1aaf2=>this[_0x1c4d39(0x3d6)][_0x1c4d39(0x224)](_0xe1aaf2['id'],_0xe1aaf2[_0x1c4d39(0x2ae)])),(_0x5792b7=_0x2f1cea(_0x5f2e3b||[],null))==null||_0x5792b7[_0x1c4d39(0x2eb)](_0x4b0e0d=>this['_commandService']['executeCommand'](_0x4b0e0d['id'],_0x4b0e0d[_0x1c4d39(0x2ae)]));}};me=Ee([p(0x3,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),p(0x4,h['Inject'](exports[_0x18d643(0x3e2)])),p(0x5,h['Inject'](u['CompressMutationService'])),p(0x6,h['Inject'](a[_0x18d643(0x30c)])),p(0x7,h['Inject'](u[_0x18d643(0x498)])),p(0x8,a[_0x18d643(0x31e)]),p(0x9,a['ICommandService']),p(0xa,N[_0x18d643(0x39d)]),p(0xb,a['IPermissionService']),p(0xc,h[_0x18d643(0x462)](pe))],me);let Pe=class extends me{constructor(_0x5e48df,_0x284acb,_0x5e7608,_0x1d59ee,_0x19926d,_0x919edd,_0xdb1e5c,_0x5420a4,_0x5be79e,_0x45af8,_0x78eca8,_0xc4ac0a,_0x1d1bb0,_0xbaf0f8,_0x12db3a,_0x5e35b3,_0x441cd5){const _0x3d060e=_0x18d643;super(_0x5e48df,_0x284acb,_0x5e7608,_0x1d59ee,_0x19926d,_0x919edd,_0xdb1e5c,_0x5420a4,_0x1d1bb0,_0xbaf0f8,_0x12db3a,_0x5e35b3,_0x441cd5),this['unitID']=_0x5e48df,this[_0x3d060e(0x3a7)]=_0x284acb,this[_0x3d060e(0x440)]=_0x5e7608,this[_0x3d060e(0x161)]=_0x5be79e,this[_0x3d060e(0x43a)]=_0x45af8,this[_0x3d060e(0x2e9)]=_0x78eca8,this[_0x3d060e(0x3e9)]=_0xc4ac0a;}[_0x18d643(0x356)](){const _0x26e9c6=_0x18d643,_0x12c6a0=super[_0x26e9c6(0x356)]();return _0x12c6a0[_0x26e9c6(0x449)]=_0x5e24eb=>this[_0x26e9c6(0x43a)][_0x26e9c6(0x2d8)](_0x5e24eb),_0x12c6a0[_0x26e9c6(0x38a)]=_0x3109f4=>this['_docTransformSelectionsService'][_0x26e9c6(0x4b5)](_0x3109f4),_0x12c6a0[_0x26e9c6(0x2bc)]=_0x40d499=>this[_0x26e9c6(0x3e9)]['syncEditingCollabCursor'](_0x40d499),_0x12c6a0[_0x26e9c6(0x2cd)]=_0x365e59=>this['_docTransformIMECacheService'][_0x26e9c6(0x3b7)](_0x365e59),_0x12c6a0;}async[_0x18d643(0x1c3)](){const _0x15c12e=_0x18d643,_0x4340f5=await super[_0x15c12e(0x1c3)]();return this[_0x15c12e(0x161)][_0x15c12e(0x49f)][_0x15c12e(0x2a5)](g[_0x15c12e(0x23e)](this[_0x15c12e(0x237)]))['subscribe'](_0x23c11b=>{const _0x2af55e=_0x15c12e;if(_0x23c11b==null)return;const {unitId:_0xacaac0,redoState:_0x597a3f,commandId:_0x220dc5}=_0x23c11b;if(_0xacaac0!==this[_0x2af55e(0x432)])return;const _0x3f5089={'id':_0x220dc5,'type':a[_0x2af55e(0x372)]['MUTATION'],'params':{'unitId':_0xacaac0,'actions':_0x597a3f[_0x2af55e(0x3c3)],'textRanges':null}};this[_0x2af55e(0x2cc)](_0x3f5089);}),_0x4340f5;}};Pe=Ee([p(0x3,h['Inject'](h['Injector'])),p(0x4,h[_0x18d643(0x2ef)](exports[_0x18d643(0x3e2)])),p(0x5,h[_0x18d643(0x2ef)](u[_0x18d643(0x141)])),p(0x6,h[_0x18d643(0x2ef)](a[_0x18d643(0x30c)])),p(0x7,h[_0x18d643(0x2ef)](u[_0x18d643(0x498)])),p(0x8,h['Inject'](y[_0x18d643(0x1b1)])),p(0x9,h[_0x18d643(0x2ef)](ve)),p(0xa,h['Inject'](ge)),p(0xb,h[_0x18d643(0x2ef)](Ve)),p(0xc,a[_0x18d643(0x31e)]),p(0xd,a[_0x18d643(0x218)]),p(0xe,N[_0x18d643(0x39d)]),p(0xf,a['IPermissionService']),p(0x10,h['Optional'](pe))],Pe);let Me=class extends me{constructor(_0x8c657c,_0x5ae755,_0x526cf3,_0xec2c35,_0x1f9f33,_0x22bb3b,_0xd57f02,_0x48122f,_0xb6b3ec,_0x44a6fd,_0x39a7af,_0x28d198,_0x2e3f2a,_0x337f37){const _0x304c4f=_0x18d643;super(_0x8c657c,_0x5ae755,_0x526cf3,_0xec2c35,_0x1f9f33,_0x22bb3b,_0xd57f02,_0x48122f,_0x44a6fd,_0x39a7af,_0x28d198,_0x2e3f2a,_0x337f37),this[_0x304c4f(0x432)]=_0x8c657c,this['type']=_0x5ae755,this[_0x304c4f(0x440)]=_0x526cf3,this[_0x304c4f(0x42f)]=_0xb6b3ec;}[_0x18d643(0x356)](){const _0x435e82=_0x18d643,_0x32f1cf=super[_0x435e82(0x356)]();return _0x32f1cf[_0x435e82(0x38a)]=_0x148a2d=>this['_sheetTransformSelectionsService'][_0x435e82(0x4b5)](_0x148a2d),_0x32f1cf;}async[_0x18d643(0x1c3)](){const _0x4a0f37=_0x18d643,_0x177a08=await super[_0x4a0f37(0x1c3)]();return this[_0x4a0f37(0x352)](this['_commandService'][_0x4a0f37(0x1a0)]((_0x2c01ce,_0x538eff)=>{const _0x3e3d93=_0x4a0f37;if(_0x2c01ce[_0x3e3d93(0x3a7)]!==a[_0x3e3d93(0x372)][_0x3e3d93(0x316)]||_0x538eff!=null&&_0x538eff[_0x3e3d93(0x331)]||_0x538eff!=null&&_0x538eff[_0x3e3d93(0x40e)])return;const _0x16630b=_0x2c01ce[_0x3e3d93(0x2ae)];if((_0x16630b==null?void 0x0:_0x16630b[_0x3e3d93(0x183)])!==this[_0x3e3d93(0x432)])return;const _0x446a50=_0x2c01ce,_0x180504=this[_0x3e3d93(0x3b4)][_0x3e3d93(0x1d4)]['fetchThroughInterceptors'](this[_0x3e3d93(0x3b4)][_0x3e3d93(0x1d4)]['getInterceptPoints']()[_0x3e3d93(0x160)])([_0x446a50],null)||[_0x446a50];this[_0x3e3d93(0x2cc)](_0x180504[0x0]);})),_0x177a08;}};Me=Ee([p(0x3,h['Inject'](h['Injector'])),p(0x4,h[_0x18d643(0x2ef)](exports[_0x18d643(0x3e2)])),p(0x5,h[_0x18d643(0x2ef)](u[_0x18d643(0x141)])),p(0x6,h[_0x18d643(0x2ef)](a[_0x18d643(0x30c)])),p(0x7,h['Inject'](u[_0x18d643(0x498)])),p(0x8,h['Inject'](fe)),p(0x9,a[_0x18d643(0x31e)]),p(0xa,a[_0x18d643(0x218)]),p(0xb,N[_0x18d643(0x39d)]),p(0xc,a['IPermissionService']),p(0xd,h[_0x18d643(0x462)](pe))],Me);const tt=['purple300',_0x18d643(0x1f3),'verdancy600',_0x18d643(0x207),'blue400',_0x18d643(0x2ea)];class We extends a[_0x18d643(0x480)]{constructor(){const _0x3f46dc=_0x18d643;super(...arguments),d(this,_0x3f46dc(0x2d6),new Map()),d(this,_0x3f46dc(0x486),0x0);}[_0x18d643(0x1b7)](_0x2545c5){const _0x33bd17=_0x18d643;if(this[_0x33bd17(0x2d6)][_0x33bd17(0x184)](_0x2545c5))return this[_0x33bd17(0x2d6)][_0x33bd17(0x1bc)](_0x2545c5);const _0x1f0f55=tt[this[_0x33bd17(0x486)]];return this[_0x33bd17(0x486)]=(this[_0x33bd17(0x486)]+0x1)%tt[_0x33bd17(0x42b)],this[_0x33bd17(0x2d6)]['set'](_0x2545c5,_0x1f0f55),_0x1f0f55;}}var ws=Object[_0x18d643(0x44c)],Ls=Object[_0x18d643(0x334)],Ps=(_0x3cf791,_0x1ab7dc,_0x283fae,_0x45e469)=>{for(var _0x52f6bd=_0x45e469>0x1?void 0x0:_0x45e469?Ls(_0x1ab7dc,_0x283fae):_0x1ab7dc,_0x354661=_0x3cf791['length']-0x1,_0x43e658;_0x354661>=0x0;_0x354661--)(_0x43e658=_0x3cf791[_0x354661])&&(_0x52f6bd=(_0x45e469?_0x43e658(_0x1ab7dc,_0x283fae,_0x52f6bd):_0x43e658(_0x52f6bd))||_0x52f6bd);return _0x45e469&&_0x52f6bd&&ws(_0x1ab7dc,_0x283fae,_0x52f6bd),_0x52f6bd;},q=(_0x295f4f,_0x113390)=>(_0xafef2c,_0x47637c)=>_0x113390(_0xafef2c,_0x47637c,_0x295f4f);const Ms=0x12c,ys=0x64,Ns=()=>{let _0x14a974=[],_0x4b28da=!0x1;return _0x255db1=>{const _0x292d57=_0x1f13;_0x14a974[_0x292d57(0x28b)](_0x255db1),_0x4b28da||(_0x4b28da=!0x0,setTimeout(()=>{const _0x25daa=_0x292d57;_0x14a974[_0x25daa(0x2eb)](_0x3cf640=>_0x3cf640()),_0x14a974=[],_0x4b28da=!0x1;}));};};let ye=class extends a[_0x18d643(0x451)]{constructor(_0x17e332,_0x2de7a3,_0x1bbe65,_0x1382c2,_0x2a3f66,_0x1d650a,_0x4664d9,_0x228c1c){const _0x597fb9=_0x18d643;super(),d(this,_0x597fb9(0x287),!0x1),d(this,'_init',!0x1),d(this,'_cursorInfo$',new g[(_0x597fb9(0x3c9))](new Map())),d(this,'cursorInfo$',this['_cursorInfo$'][_0x597fb9(0x221)]()),d(this,_0x597fb9(0x4d6),new g[(_0x597fb9(0x3c9))]([])),d(this,_0x597fb9(0x380),this[_0x597fb9(0x4d6)][_0x597fb9(0x2a5)](g['debounceTime'](Ms))),d(this,'_updateLocalCursor',He((_0x26f16a,_0x20a471)=>{const _0x4884b0=_0x597fb9,_0x455da0={'eventID':u[_0x4884b0(0x198)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4884b0(0x432)],'memberID':this['_session'][_0x4884b0(0x2f5)](),'selection':Ke[_0x4884b0(0x1dc)](_0x26f16a,_0x20a471[_0x4884b0(0x33e)])}};this['_session'][_0x4884b0(0x1ca)](_0x455da0,this[_0x4884b0(0x432)]);},ys)),(this[_0x597fb9(0x432)]=_0x17e332,this[_0x597fb9(0x1b3)]=_0x2de7a3,this[_0x597fb9(0x42e)]=_0x1bbe65,this['_colorAssignService']=_0x1382c2,this['_memberService']=_0x2a3f66,this[_0x597fb9(0x437)]=_0x1d650a,this[_0x597fb9(0x3d6)]=_0x4664d9,this['_refRangeService']=_0x228c1c);}get['cursorInfo'](){const _0x8d0791=_0x18d643;return this[_0x8d0791(0x2e6)]['getValue']();}get[_0x18d643(0x192)](){const _0x4bb9f5=_0x18d643;return this['_roomMembers$'][_0x4bb9f5(0x4ab)]();}[_0x18d643(0x318)](){const _0x3828bb=_0x18d643;super[_0x3828bb(0x318)](),this[_0x3828bb(0x2e6)][_0x3828bb(0x33b)](new Map()),this[_0x3828bb(0x2e6)]['complete'](),this[_0x3828bb(0x4d6)][_0x3828bb(0x33b)]([]),this[_0x3828bb(0x4d6)][_0x3828bb(0x150)]();}[_0x18d643(0x4c5)](){const _0x3d148b=_0x18d643;this[_0x3d148b(0x1c3)]||(this[_0x3d148b(0x1c3)]=!0x0,this[_0x3d148b(0x1b3)][_0x3d148b(0x205)]['pipe'](g[_0x3d148b(0x23e)](this[_0x3d148b(0x237)]))[_0x3d148b(0x18b)](_0x50c90a=>{const _0x1c411f=_0x3d148b;_0x50c90a===W[_0x1c411f(0x2f7)]?this[_0x1c411f(0x3e5)]():this[_0x1c411f(0x37b)]();}),this[_0x3d148b(0x1b3)][_0x3d148b(0x251)][_0x3d148b(0x2a5)](g['takeUntil'](this[_0x3d148b(0x237)]))[_0x3d148b(0x18b)](_0x366ecf=>{const _0x5ba5bc=_0x3d148b,_0x23b4f9=_0x366ecf[_0x5ba5bc(0x2de)];_0x23b4f9===u['CollaborationEvent'][_0x5ba5bc(0x2b7)]&&this[_0x5ba5bc(0x152)](_0x366ecf),_0x23b4f9===u[_0x5ba5bc(0x198)]['USERS_LEAVE']&&this[_0x5ba5bc(0x417)](_0x366ecf);}),this[_0x3d148b(0x39e)](),this[_0x3d148b(0x352)](this['_commandService']['onCommandExecuted'](_0x245651=>{const _0xa68f31=_0x3d148b;if(this[_0xa68f31(0x287)]&&_0x245651['id']===E[_0xa68f31(0x26a)]['id']&&_0x245651[_0xa68f31(0x2ae)][_0xa68f31(0x183)]===this[_0xa68f31(0x432)]){const _0x17a436=_0x245651[_0xa68f31(0x2ae)];this['_updateLocalCursor'](_0x17a436[_0xa68f31(0x4c9)],_0x17a436[_0xa68f31(0x482)][0x0]);}})));}[_0x18d643(0x152)](_0x55b747){const _0x2b654e=_0x18d643;var _0x32ba3b,_0x44dc26;const {memberID:_0x32cd36,selection:_0x5ca677}=_0x55b747[_0x2b654e(0x39f)],{sheetName:_0x27ee63,range:_0x5988dc}=Ke[_0x2b654e(0x378)](_0x5ca677),_0x10604f={'name':(_0x44dc26=(_0x32ba3b=this['_memberService'][_0x2b654e(0x477)](this[_0x2b654e(0x432)],_0x32cd36))==null?void 0x0:_0x32ba3b[_0x2b654e(0x47b)])!=null?_0x44dc26:_0x2b654e(0x3f0),'range':this[_0x2b654e(0x289)](_0x27ee63,_0x5988dc),'sheetID':_0x27ee63,'color':this['_colorAssignService'][_0x2b654e(0x1b7)](_0x32cd36),'selection':_0x5ca677},_0x320452=this['cursorInfo'];_0x320452['set'](_0x32cd36,_0x10604f),this[_0x2b654e(0x2e6)][_0x2b654e(0x33b)](_0x320452);}[_0x18d643(0x417)](_0xeedba1){const _0x1066cf=_0x18d643,{memberID:_0x10da27}=_0xeedba1[_0x1066cf(0x39f)],_0x45574a=this[_0x1066cf(0x3f5)];_0x45574a[_0x1066cf(0x35c)](_0x10da27),this[_0x1066cf(0x2e6)]['next'](_0x45574a);}[_0x18d643(0x289)](_0x5bdd22,_0x41b2b9){const _0x100c98=_0x18d643;var _0x31612c,_0x5bcec9;const _0x37271b=(_0x5bcec9=(_0x31612c=this[_0x100c98(0x437)][_0x100c98(0x1e1)](this[_0x100c98(0x432)]))==null?void 0x0:_0x31612c['getSheetBySheetId'](_0x5bdd22))==null?void 0x0:_0x5bcec9[_0x100c98(0x474)]();return(_0x37271b==null?void 0x0:_0x37271b[_0x100c98(0x3fa)](_0x441170=>a[_0x100c98(0x499)][_0x100c98(0x271)](_0x441170,_0x41b2b9)))||_0x41b2b9;}[_0x18d643(0x39e)](){const _0x531026=_0x18d643,_0x1c2797=new a[(_0x531026(0x28f))](),_0x107149=Ns(),_0x2b7dd4=()=>{const _0x1a3911=_0x531026;_0x1c2797['dispose']();const _0x20d3ac=(_0x2510ed,_0x139441,_0xeab2a7,_0x55ccbd)=>{const _0x16d3fa=_0x1f13;let _0x575c5a=[];switch(_0x2510ed['id']){case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x269)]:{_0x575c5a=E[_0x16d3fa(0x3f4)](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x36e)]:{_0x575c5a=E[_0x16d3fa(0x49b)](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x29a)]:{_0x575c5a=E[_0x16d3fa(0x2ce)](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x39c)]:{_0x575c5a=E[_0x16d3fa(0x11d)](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x295)]:{_0x575c5a=E[_0x16d3fa(0x3d0)](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)]['InsertRowCommandId']:{_0x575c5a=E[_0x16d3fa(0x44e)](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x303)]:{_0x575c5a=E['handleMoveRange'](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x142)]:{_0x575c5a=E['handleIRemoveCol'](_0x2510ed,_0x55ccbd);break;}case E[_0x16d3fa(0x2e3)][_0x16d3fa(0x1a2)]:{_0x575c5a=E[_0x16d3fa(0x44b)](_0x2510ed,_0x55ccbd);break;}}const _0x28850f=E[_0x16d3fa(0x2a4)](_0x575c5a,_0x55ccbd),_0x28367d=this[_0x16d3fa(0x3f5)][_0x16d3fa(0x1bc)](_0x139441);if(_0x28367d&&_0x28850f){const _0x1373aa={..._0x28367d,'range':_0x28850f};this[_0x16d3fa(0x3f5)][_0x16d3fa(0x3db)](_0x139441,_0x1373aa),_0x107149(()=>{const _0x46fe84=_0x16d3fa,_0x163a3d=this['_refRangeService'][_0x46fe84(0x3e3)](_0x28850f,_0x461dd7=>(_0x163a3d[_0x46fe84(0x318)](),_0x20d3ac(_0x461dd7,_0x139441,_0xeab2a7,_0x28850f)));_0x1c2797[_0x46fe84(0x1f2)](_0x163a3d);});}return{'redos':[],'undos':[]};};this[_0x1a3911(0x3f5)][_0x1a3911(0x2eb)]((_0x18c633,_0x58145a)=>{const _0x29840d=_0x1a3911,{range:_0x2dda7a,sheetID:_0x3cacc9}=_0x18c633,_0x1ef2ec=this[_0x29840d(0x2ec)][_0x29840d(0x3e3)](_0x2dda7a,_0x508bb6=>(_0x1ef2ec[_0x29840d(0x318)](),_0x20d3ac(_0x508bb6,_0x58145a,_0x3cacc9,_0x2dda7a)));_0x1c2797['add'](_0x1ef2ec);});};this[_0x531026(0x352)](a[_0x531026(0x345)](this[_0x531026(0x2e6)][_0x531026(0x18b)](()=>{_0x2b7dd4();})));}['_toggleOnline'](){const _0x13ed06=_0x18d643;var _0x33d0e8,_0x3e0195;if(this[_0x13ed06(0x287)]=!0x0,((_0x33d0e8=this[_0x13ed06(0x437)][_0x13ed06(0x36d)]())==null?void 0x0:_0x33d0e8[_0x13ed06(0x3fd)]())!==this[_0x13ed06(0x432)])return;const _0x51563c=(_0x3e0195=this['_injector']['get'](E[_0x13ed06(0x415)])[_0x13ed06(0x153)]())==null?void 0x0:_0x3e0195[0x0],_0x161085=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x13ed06(0x17c)]['UNIVER_SHEET'])[_0x13ed06(0x3e6)]();_0x51563c&&_0x161085&&this[_0x13ed06(0x17e)](_0x161085['getSheetId'](),_0x51563c);}[_0x18d643(0x37b)](){const _0x1a4607=_0x18d643;this[_0x1a4607(0x287)]=!0x1;}};ye=Ps([q(0x2,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),q(0x3,h[_0x18d643(0x2ef)](We)),q(0x4,h[_0x18d643(0x2ef)](G)),q(0x5,a[_0x18d643(0x3d1)]),q(0x6,a['ICommandService']),q(0x7,h['Inject'](E[_0x18d643(0x1d6)]))],ye);var As=Object['defineProperty'],js=Object[_0x18d643(0x334)],$s=(_0x2d1c71,_0x27464a,_0x8065ae,_0x1892b7)=>{const _0x59594c=_0x18d643;for(var _0x5c7022=_0x1892b7>0x1?void 0x0:_0x1892b7?js(_0x27464a,_0x8065ae):_0x27464a,_0x479ee6=_0x2d1c71[_0x59594c(0x42b)]-0x1,_0x40ad41;_0x479ee6>=0x0;_0x479ee6--)(_0x40ad41=_0x2d1c71[_0x479ee6])&&(_0x5c7022=(_0x1892b7?_0x40ad41(_0x27464a,_0x8065ae,_0x5c7022):_0x40ad41(_0x5c7022))||_0x5c7022);return _0x1892b7&&_0x5c7022&&As(_0x27464a,_0x8065ae,_0x5c7022),_0x5c7022;},V=(_0x4a1ae0,_0x3be606)=>(_0xea429a,_0x4aadef)=>_0x3be606(_0xea429a,_0x4aadef,_0x4a1ae0);const Hs=0x12c,xs=0x64;let Ne=class extends a[_0x18d643(0x451)]{constructor(_0x3f862f,_0x16ef44,_0x584124,_0x3c684d,_0x213982,_0xb8a573,_0x5c6747,_0x3b3734,_0x1c241a){const _0x44eaef=_0x18d643;super(),d(this,_0x44eaef(0x287),!0x1),d(this,_0x44eaef(0x1c3),!0x1),d(this,_0x44eaef(0x2e6),new g[(_0x44eaef(0x3c9))](new Map())),d(this,_0x44eaef(0x340),this['_cursorInfo$'][_0x44eaef(0x221)]()),d(this,'_roomMembers$',new g[(_0x44eaef(0x3c9))]([])),d(this,_0x44eaef(0x380),this[_0x44eaef(0x4d6)][_0x44eaef(0x2a5)](g[_0x44eaef(0x3af)](Hs))),d(this,_0x44eaef(0x17e),He(_0x5b6aab=>{const _0xab4543=_0x44eaef,_0x5a620a={'eventID':u[_0xab4543(0x198)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xab4543(0x432)],'memberID':this[_0xab4543(0x1b3)]['getMemberID'](),'selection':bt(_0x5b6aab)}};this[_0xab4543(0x1b3)][_0xab4543(0x1ca)](_0x5a620a,this['unitID']);},xs)),(this[_0x44eaef(0x432)]=_0x3f862f,this[_0x44eaef(0x1b3)]=_0x16ef44,this[_0x44eaef(0x42e)]=_0x584124,this[_0x44eaef(0x11c)]=_0x3c684d,this[_0x44eaef(0x214)]=_0x213982,this['_syncEditingCollabCursorService']=_0xb8a573,this[_0x44eaef(0x39b)]=_0x5c6747,this[_0x44eaef(0x437)]=_0x3b3734,this[_0x44eaef(0x3d6)]=_0x1c241a);}get[_0x18d643(0x3f5)](){const _0x2c12d8=_0x18d643;return this[_0x2c12d8(0x2e6)][_0x2c12d8(0x4ab)]();}get[_0x18d643(0x192)](){const _0x3deea9=_0x18d643;return this[_0x3deea9(0x4d6)][_0x3deea9(0x4ab)]();}['dispose'](){const _0x3b861f=_0x18d643;super['dispose'](),this[_0x3b861f(0x2e6)][_0x3b861f(0x33b)](new Map()),this[_0x3b861f(0x2e6)]['complete'](),this[_0x3b861f(0x4d6)][_0x3b861f(0x33b)]([]),this[_0x3b861f(0x4d6)][_0x3b861f(0x150)]();}[_0x18d643(0x4c5)](){const _0x102fd3=_0x18d643;this[_0x102fd3(0x1c3)]||(this['_init']=!0x0,this[_0x102fd3(0x1b3)][_0x102fd3(0x205)][_0x102fd3(0x2a5)](g['takeUntil'](this[_0x102fd3(0x237)]))[_0x102fd3(0x18b)](_0x26c344=>{const _0x43f94e=_0x102fd3;_0x26c344===W[_0x43f94e(0x2f7)]?this[_0x43f94e(0x3e5)]():this[_0x43f94e(0x37b)]();}),this['_session'][_0x102fd3(0x251)][_0x102fd3(0x2a5)](g[_0x102fd3(0x23e)](this[_0x102fd3(0x237)]))['subscribe'](_0x6285bc=>{const _0x298a44=_0x102fd3,_0x52e3cc=_0x6285bc[_0x298a44(0x2de)];_0x52e3cc===u[_0x298a44(0x198)]['UPDATE_CURSOR']&&this[_0x298a44(0x152)](_0x6285bc),_0x52e3cc===u[_0x298a44(0x198)][_0x298a44(0x223)]&&this[_0x298a44(0x417)](_0x6285bc);}),this['disposeWithMe'](this[_0x102fd3(0x3d6)][_0x102fd3(0x1a0)](_0x20bea7=>{const _0x5943ca=_0x102fd3,_0x57cbf0=_0x20bea7[_0x5943ca(0x2ae)];_0x57cbf0!=null&&this[_0x5943ca(0x287)]&&_0x20bea7['id']===y[_0x5943ca(0x3a8)]['id']&&_0x57cbf0[_0x5943ca(0x183)]===this[_0x5943ca(0x432)]&&_0x57cbf0[_0x5943ca(0x3d9)]===!0x1&&this[_0x5943ca(0x17e)](_0x57cbf0[_0x5943ca(0x186)]);})),this[_0x102fd3(0x1e6)][_0x102fd3(0x3ac)][_0x102fd3(0x2a5)](g[_0x102fd3(0x23e)](this[_0x102fd3(0x237)]))['subscribe'](_0xc3a92d=>{const _0x2d1f92=_0x102fd3;if((_0xc3a92d==null?void 0x0:_0xc3a92d[_0x2d1f92(0x432)])!==this[_0x2d1f92(0x432)])return;const _0x4aed3b={'eventID':u[_0x2d1f92(0x198)]['UPDATE_CURSOR'],'data':_0xc3a92d};this['_onCursorUpdate'](_0x4aed3b);}),this[_0x102fd3(0x352)](this[_0x102fd3(0x3d6)][_0x102fd3(0x1a0)](_0x55a69f=>{const _0x43f784=_0x102fd3;if(_0x55a69f[_0x43f784(0x2ae)]==null)return;const _0x3a2a11=_0x55a69f[_0x43f784(0x2ae)];if(_0x55a69f['id']!==y[_0x43f784(0x163)]['id']||_0x3a2a11[_0x43f784(0x183)]!==this[_0x43f784(0x432)])return;const _0x5102b0={'id':_0x43f784(0x2e4),'params':_0x3a2a11},_0x4692e6=this['cursorInfo'];for(const [_0x1dc1aa,_0x29ad8d]of _0x4692e6){const _0x5f387b={'id':_0x43f784(0x2e4),'params':{'unitId':this[_0x43f784(0x432)],'actions':null,'textRanges':_0x29ad8d[_0x43f784(0x186)]}},_0x3d2ab7=this['_transformService'][_0x43f784(0x1cd)](_0x5102b0,_0x5f387b,!0x1);if(u[_0x43f784(0x1a9)](_0x3d2ab7))throw _0x3d2ab7['error'];_0x4692e6[_0x43f784(0x3db)](_0x1dc1aa,{..._0x29ad8d,'ranges':_0x3d2ab7[_0x43f784(0x302)]['params'][_0x43f784(0x47a)]});}queueMicrotask(()=>{const _0x598955=_0x43f784;this[_0x598955(0x2e6)]['next'](_0x4692e6);});})));}[_0x18d643(0x152)](_0x5a920f){const _0x1d2b16=_0x18d643;var _0x956b2a,_0x46e65e;const {memberID:_0x197b66,selection:_0x464498}=_0x5a920f[_0x1d2b16(0x39f)],_0x1dcb3c=ms(_0x464498),_0x49c736=(_0x46e65e=(_0x956b2a=this[_0x1d2b16(0x214)][_0x1d2b16(0x477)](this[_0x1d2b16(0x432)],_0x197b66))==null?void 0x0:_0x956b2a[_0x1d2b16(0x47b)])!=null?_0x46e65e:_0x1d2b16(0x3f0),_0x2f8540={'color':this[_0x1d2b16(0x11c)]['assignAColorForMemberID'](_0x197b66),'name':_0x49c736,'ranges':_0x1dcb3c},_0x3a3352=this['cursorInfo'];_0x3a3352['set'](_0x197b66,_0x2f8540),this[_0x1d2b16(0x2e6)][_0x1d2b16(0x33b)](_0x3a3352);}[_0x18d643(0x417)](_0x368bf0){const _0x416974=_0x18d643,{memberID:_0x1409a7}=_0x368bf0[_0x416974(0x39f)],_0x64e689=this[_0x416974(0x3f5)];_0x64e689[_0x416974(0x35c)](_0x1409a7),this[_0x416974(0x2e6)][_0x416974(0x33b)](_0x64e689);}[_0x18d643(0x3e5)](){const _0xc22703=_0x18d643;var _0x17a756;if(this[_0xc22703(0x287)]=!0x0,((_0x17a756=this[_0xc22703(0x437)][_0xc22703(0x36d)]())==null?void 0x0:_0x17a756['getUnitId']())!==this[_0xc22703(0x432)])return;const _0x588b9e=this[_0xc22703(0x42e)][_0xc22703(0x1bc)](y['TextSelectionManagerService'])['getSelections'](),_0x52473d=_0x588b9e==null?void 0x0:_0x588b9e[_0xc22703(0x3a3)](y['serializeTextRange']);Array[_0xc22703(0x370)](_0x52473d)&&_0x52473d['length']>0x0&&this[_0xc22703(0x17e)](_0x52473d);}[_0x18d643(0x37b)](){const _0x57d9a0=_0x18d643;this[_0x57d9a0(0x287)]=!0x1;}};Ne=$s([V(0x2,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),V(0x3,h[_0x18d643(0x2ef)](We)),V(0x4,h['Inject'](G)),V(0x5,h['Inject'](Ve)),V(0x6,u[_0x18d643(0x366)]),V(0x7,a[_0x18d643(0x3d1)]),V(0x8,a[_0x18d643(0x218)])],Ne);var ks=Object['defineProperty'],Bs=Object[_0x18d643(0x334)],Fs=(_0x7dc8aa,_0x5e33ba,_0x5ede13,_0x11dfc7)=>{const _0x38f0f4=_0x18d643;for(var _0x4a2b15=_0x11dfc7>0x1?void 0x0:_0x11dfc7?Bs(_0x5e33ba,_0x5ede13):_0x5e33ba,_0x34d531=_0x7dc8aa[_0x38f0f4(0x42b)]-0x1,_0x3252ad;_0x34d531>=0x0;_0x34d531--)(_0x3252ad=_0x7dc8aa[_0x34d531])&&(_0x4a2b15=(_0x11dfc7?_0x3252ad(_0x5e33ba,_0x5ede13,_0x4a2b15):_0x3252ad(_0x4a2b15))||_0x4a2b15);return _0x11dfc7&&_0x4a2b15&&ks(_0x5e33ba,_0x5ede13,_0x4a2b15),_0x4a2b15;},Oe=(_0x5bb1d5,_0x304cef)=>(_0xd7d2cf,_0xefbf88)=>_0x304cef(_0xd7d2cf,_0xefbf88,_0x5bb1d5);let J=class extends a[_0x18d643(0x451)]{constructor(_0x5337e9,_0x219e12,_0x39a8f9){const _0x435c88=_0x18d643;super(),d(this,'_entities',new Map()),d(this,_0x435c88(0x15a),new g['Subject']()),(this[_0x435c88(0x437)]=_0x5337e9,this['_injector']=_0x219e12,this[_0x435c88(0x335)]=_0x39a8f9,this[_0x435c88(0x1c3)]());}[_0x18d643(0x318)](){const _0x20894d=_0x18d643;super['dispose'](),this['_entityInit$'][_0x20894d(0x150)](),this[_0x20894d(0x1fa)]['forEach'](_0x4fa74b=>_0x4fa74b[_0x20894d(0x318)]());}[_0x18d643(0x3c2)](_0x5d0c77){const _0x50cb6e=_0x18d643;return this[_0x50cb6e(0x1fa)][_0x50cb6e(0x184)](_0x5d0c77)?this['_entities'][_0x50cb6e(0x1bc)](_0x5d0c77)['cursorInfo$']:this[_0x50cb6e(0x15a)][_0x50cb6e(0x2a5)](g[_0x50cb6e(0x448)](_0x314d05=>_0x314d05[_0x50cb6e(0x432)]===_0x5d0c77),g[_0x50cb6e(0x443)](_0x420817=>_0x420817[_0x50cb6e(0x340)]));}[_0x18d643(0x1c3)](){const _0x43738b=_0x18d643;this[_0x43738b(0x437)]['getTypeOfUnitAdded$'](a[_0x43738b(0x17c)][_0x43738b(0x314)])['pipe'](g['takeUntil'](this[_0x43738b(0x237)]))['subscribe'](async _0x280bc5=>{const _0x27ce0c=_0x43738b,_0xb66c49=_0x280bc5['getUnitId'](),_0x46ced7=await this[_0x27ce0c(0x494)](_0xb66c49);this[_0x27ce0c(0x15a)][_0x27ce0c(0x33b)](_0x46ced7),this[_0x27ce0c(0x1fa)][_0x27ce0c(0x3db)](_0xb66c49,_0x46ced7);}),this[_0x43738b(0x437)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x43738b(0x336)])[_0x43738b(0x2a5)](g[_0x43738b(0x23e)](this[_0x43738b(0x237)]))[_0x43738b(0x2a5)](g[_0x43738b(0x448)](_0x2f5b30=>!_0x2f5b30['getUnitId']()[_0x43738b(0x1d1)]('__')))['subscribe'](async _0x3b4e99=>{const _0x3b4f7b=_0x43738b,_0x4ed70f=_0x3b4e99['getUnitId'](),_0x179373=await this[_0x3b4f7b(0x2a2)](_0x4ed70f);this[_0x3b4f7b(0x15a)][_0x3b4f7b(0x33b)](_0x179373),this[_0x3b4f7b(0x1fa)]['set'](_0x4ed70f,_0x179373);}),g['merge'](this[_0x43738b(0x437)][_0x43738b(0x31a)](a[_0x43738b(0x17c)][_0x43738b(0x336)]),this[_0x43738b(0x437)]['getTypeOfUnitDisposed$'](a[_0x43738b(0x17c)]['UNIVER_SHEET']))['pipe'](g['takeUntil'](this[_0x43738b(0x237)]))['subscribe'](_0x1cfecf=>{const _0x599957=_0x43738b,_0x4573b6=_0x1cfecf['getUnitId'](),_0xe14928=this[_0x599957(0x1fa)][_0x599957(0x1bc)](_0x4573b6);_0xe14928&&(_0xe14928['dispose'](),this['_entities']['delete'](_0x4573b6));});}async['_startSheetCollabCursor'](_0x543219){const _0x163bf1=_0x18d643,_0x4960c7=await this[_0x163bf1(0x335)][_0x163bf1(0x2c5)](_0x543219),_0x167e35=this[_0x163bf1(0x42e)][_0x163bf1(0x40f)](ye,_0x543219,_0x4960c7);return _0x167e35[_0x163bf1(0x4c5)](),_0x167e35;}async[_0x18d643(0x2a2)](_0x4800c4){const _0x3bf6dc=_0x18d643,_0xf19c7f=await this[_0x3bf6dc(0x335)][_0x3bf6dc(0x2c5)](_0x4800c4),_0x436821=this[_0x3bf6dc(0x42e)][_0x3bf6dc(0x40f)](Ne,_0x4800c4,_0xf19c7f);return _0x436821[_0x3bf6dc(0x4c5)](),_0x436821;}};J=Fs([a[_0x18d643(0x35e)](a['LifecycleStages']['Starting'],J),Oe(0x0,a['IUniverInstanceService']),Oe(0x1,h[_0x18d643(0x2ef)](h[_0x18d643(0x463)])),Oe(0x2,h[_0x18d643(0x2ef)](exports['CollaborationSessionService']))],J);const ce=0x14,st=0xc8,De=0x4,Vs=0x5;function Ws(_0x48d191,_0x230d29){const _0x1f0276=_0x18d643;let {radius:_0x169753,width:_0x5c2bd4,height:_0x31ad50}=_0x230d29;_0x169753=_0x169753!=null?_0x169753:0x0,_0x5c2bd4=_0x5c2bd4!=null?_0x5c2bd4:0x1e,_0x31ad50=_0x31ad50!=null?_0x31ad50:0x1e;let _0x6136ba=0x0,_0x3bbd93=0x0,_0x5812fb=0x0;_0x6136ba=_0x3bbd93=_0x5812fb=Math[_0x1f0276(0x1fe)](_0x169753,_0x5c2bd4/0x2,_0x31ad50/0x2),_0x48d191['beginPath'](),_0x48d191['moveTo'](_0x6136ba,0x0),_0x48d191[_0x1f0276(0x4a3)](_0x5c2bd4-_0x3bbd93,0x0),_0x48d191['arc'](_0x5c2bd4-_0x3bbd93,_0x3bbd93,_0x3bbd93,Math['PI']*0x3/0x2,0x0,!0x1),_0x48d191[_0x1f0276(0x4a3)](_0x5c2bd4,_0x31ad50-_0x5812fb),_0x48d191['arc'](_0x5c2bd4-_0x5812fb,_0x31ad50-_0x5812fb,_0x5812fb,0x0,Math['PI']/0x2,!0x1),_0x48d191[_0x1f0276(0x4a3)](0x0,_0x31ad50),_0x48d191['lineTo'](0x0,_0x6136ba),_0x48d191['arc'](_0x6136ba,_0x6136ba,_0x6136ba,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48d191[_0x1f0276(0x195)](),_0x230d29[_0x1f0276(0x485)]&&(_0x48d191[_0x1f0276(0x169)](),_0x48d191[_0x1f0276(0x2b3)]=_0x230d29[_0x1f0276(0x485)],_0x230d29['fillRule']===_0x1f0276(0x279)?_0x48d191[_0x1f0276(0x485)]('evenodd'):_0x48d191[_0x1f0276(0x485)](),_0x48d191[_0x1f0276(0x291)]());}class Ce extends R['Shape']{constructor(_0x4d270d,_0x2e68ad){const _0xcda80c=_0x18d643;super(_0x4d270d,_0x2e68ad),d(this,_0xcda80c(0x2ba)),d(this,_0xcda80c(0x122)),(this['color']=_0x2e68ad==null?void 0x0:_0x2e68ad[_0xcda80c(0x2ba)],this[_0xcda80c(0x122)]=_0x2e68ad==null?void 0x0:_0x2e68ad[_0xcda80c(0x122)]);}static['drawWith'](_0x474049,_0x2f2688){const _0x305da8=_0x18d643,{text:_0x3bddf4,color:_0x20bfe3}=_0x2f2688;_0x474049[_0x305da8(0x169)](),_0x474049[_0x305da8(0x171)]=_0x305da8(0x368);const _0x43f660=_0x474049[_0x305da8(0x4b6)](_0x3bddf4)[_0x305da8(0x1d5)],_0x24e207=Math[_0x305da8(0x1fe)](_0x43f660+0x2*De,st);Ws(_0x474049,{'height':ce,'radius':0x4,'width':_0x24e207,'fill':_0x20bfe3,'evented':!0x1}),_0x474049[_0x305da8(0x2b3)]=_0x305da8(0x40c);const _0x7ffcfe=De,_0x51a2e8=ce-Vs,_0x118b0c=st-0x2*De;if(_0x43f660>_0x118b0c){let _0x52eacf='',_0x728f2a=0x0;for(const _0x3105b5 of _0x3bddf4){const _0x152f4e=_0x474049['measureText'](_0x3105b5)[_0x305da8(0x1d5)];if(_0x728f2a+_0x152f4e<=_0x118b0c-_0x474049[_0x305da8(0x4b6)](_0x305da8(0x456))[_0x305da8(0x1d5)])_0x52eacf+=_0x3105b5,_0x728f2a+=_0x152f4e;else{_0x52eacf+=_0x305da8(0x456);break;}}_0x474049[_0x305da8(0x1dd)](_0x52eacf,_0x7ffcfe,_0x51a2e8);}else _0x474049[_0x305da8(0x1dd)](_0x3bddf4,_0x7ffcfe,_0x51a2e8);_0x474049[_0x305da8(0x291)]();}[_0x18d643(0x45f)](_0x13196f){const _0x4a18cd=_0x18d643;Ce[_0x4a18cd(0x1ea)](_0x13196f,this);}}const Gs=0x1,Ys=1.5;class Ks extends R['Shape']{constructor(_0x49ab62,_0x2aba0a){const _0x409ca1=_0x18d643;super(_0x49ab62,_0x2aba0a),d(this,_0x409ca1(0x382)),d(this,_0x409ca1(0x28e),!0x1),d(this,_0x409ca1(0x47e)),d(this,_0x409ca1(0x4ce),''),d(this,_0x409ca1(0x189),'top'),(_0x2aba0a&&this[_0x409ca1(0x145)](_0x2aba0a),this[_0x409ca1(0x2a8)][_0x409ca1(0x149)](()=>this[_0x409ca1(0x145)]({'hovered':!0x0})),this[_0x409ca1(0x414)][_0x409ca1(0x149)](()=>this[_0x409ca1(0x145)]({'hovered':!0x1})));}[_0x18d643(0x145)](_0x2f4036){const _0x3562fd=_0x18d643;var _0x25000b,_0x2fcced,_0x50bbb5,_0x1f94c1,_0x3ad21b;this[_0x3562fd(0x382)]=(_0x25000b=_0x2f4036[_0x3562fd(0x2ba)])!=null?_0x25000b:this[_0x3562fd(0x382)],this[_0x3562fd(0x28e)]=(_0x2fcced=_0x2f4036[_0x3562fd(0x120)])!=null?_0x2fcced:this[_0x3562fd(0x28e)],this[_0x3562fd(0x47e)]=(_0x50bbb5=_0x2f4036[_0x3562fd(0x33e)])!=null?_0x50bbb5:this['_range'],this[_0x3562fd(0x4ce)]=(_0x1f94c1=_0x2f4036[_0x3562fd(0x47b)])!=null?_0x1f94c1:this[_0x3562fd(0x4ce)],this[_0x3562fd(0x189)]=(_0x3ad21b=_0x2f4036[_0x3562fd(0x3b3)])!=null?_0x3ad21b:this[_0x3562fd(0x189)],this[_0x3562fd(0x391)]({'width':_0x2f4036[_0x3562fd(0x1d5)],'height':_0x2f4036[_0x3562fd(0x326)]});}[_0x18d643(0x347)](_0x2e9614){const _0x4acbfa=_0x18d643,{row:_0x3957b6,column:_0x2bd0b6}=_0x2e9614;if(_0x3957b6>=this[_0x4acbfa(0x47e)][_0x4acbfa(0x30b)]&&_0x3957b6<=this[_0x4acbfa(0x47e)][_0x4acbfa(0x3ef)]&&_0x2bd0b6>=this[_0x4acbfa(0x47e)]['startColumn']&&_0x2bd0b6<=this[_0x4acbfa(0x47e)][_0x4acbfa(0x48b)]){this[_0x4acbfa(0x145)]({'hovered':!0x0});return;}this[_0x4acbfa(0x145)]({'hovered':!0x1});}['triggerDblclick'](_0x2a1172){return!0x1;}[_0x18d643(0x45f)](_0x216368){const _0xfa0cc2=_0x18d643;R[_0xfa0cc2(0x1b6)][_0xfa0cc2(0x1ea)](_0x216368,{'width':this['width'],'height':this['height'],'strokeWidth':Ys,'stroke':this[_0xfa0cc2(0x382)],'evented':!0x1}),this['_hovered']&&(_0x216368['save'](),_0x216368['transform'](0x1,0x0,0x0,0x1,this[_0xfa0cc2(0x1d5)],this[_0xfa0cc2(0x189)]===_0xfa0cc2(0x34b)?0x0:-ce),Ce['drawWith'](_0x216368,{'text':this[_0xfa0cc2(0x4ce)],'color':this[_0xfa0cc2(0x382)]}),_0x216368['restore']());}}var Xs=Object['defineProperty'],qs=Object[_0x18d643(0x334)],zs=(_0x5464d3,_0x5b0f20,_0x4eb01a,_0x3e2e6b)=>{for(var _0x44cf34=_0x3e2e6b>0x1?void 0x0:_0x3e2e6b?qs(_0x5b0f20,_0x4eb01a):_0x5b0f20,_0x999529=_0x5464d3['length']-0x1,_0x4f6dc6;_0x999529>=0x0;_0x999529--)(_0x4f6dc6=_0x5464d3[_0x999529])&&(_0x44cf34=(_0x3e2e6b?_0x4f6dc6(_0x5b0f20,_0x4eb01a,_0x44cf34):_0x4f6dc6(_0x44cf34))||_0x44cf34);return _0x3e2e6b&&_0x44cf34&&Xs(_0x5b0f20,_0x4eb01a,_0x44cf34),_0x44cf34;},le=(_0x1afcd5,_0xb23aec)=>(_0x4c19e3,_0x2e0fed)=>_0xb23aec(_0x4c19e3,_0x2e0fed,_0x1afcd5);const Js=0x1389;let ue=class extends a[_0x18d643(0x451)]{constructor(_0x114fad,_0x3d0f35,_0x2e45e0,_0x2b13f3){const _0x489566=_0x18d643;super(),d(this,'_cursors',new Set()),d(this,_0x489566(0x364),null),(this[_0x489566(0x298)]=_0x114fad,this[_0x489566(0x437)]=_0x3d0f35,this[_0x489566(0x15e)]=_0x2e45e0,this[_0x489566(0x197)]=_0x2b13f3,this[_0x489566(0x1c3)]());}get[_0x18d643(0x458)](){const _0x4e71e3=_0x18d643;return this[_0x4e71e3(0x15e)][_0x4e71e3(0x376)](this[_0x4e71e3(0x437)]['getCurrentUnitForType'](a['UniverInstanceType'][_0x4e71e3(0x314)])['getUnitId']())[_0x4e71e3(0x26f)](ee[_0x4e71e3(0x3f1)]);}get[_0x18d643(0x3d5)](){const _0xcee8d9=_0x18d643;return this[_0xcee8d9(0x437)][_0xcee8d9(0x164)](a[_0xcee8d9(0x17c)]['UNIVER_SHEET'])[_0xcee8d9(0x3fd)]();}['_init'](){const _0x4a8b13=_0x18d643;this[_0x4a8b13(0x458)]['currentSkeleton$'][_0x4a8b13(0x2a5)](T[_0x4a8b13(0x23e)](this[_0x4a8b13(0x237)]),T[_0x4a8b13(0x443)](_0x30294c=>{const _0x189bc9=_0x4a8b13;if(_0x30294c){const _0xcdff08=_0x30294c[_0x189bc9(0x151)];return g[_0x189bc9(0x446)](this[_0x189bc9(0x298)][_0x189bc9(0x3c2)](this[_0x189bc9(0x3d5)]),this[_0x189bc9(0x197)][_0x189bc9(0x427)])[_0x189bc9(0x2a5)](T['map'](([_0x35dc2d,_0x35ecd2])=>{const _0x1e9493=_0x189bc9,_0x594237=new Map();return _0x35dc2d[_0x1e9493(0x2eb)]((_0x208c4b,_0x41eab6)=>{const _0x566f9f=_0x1e9493;if(_0x208c4b[_0x566f9f(0x124)]===_0xcdff08){const _0x2d9f85={..._0x208c4b};_0x2d9f85[_0x566f9f(0x2ba)]=_0x35ecd2[_0x208c4b[_0x566f9f(0x2ba)]],_0x594237['set'](_0x41eab6,_0x2d9f85);}}),{'skeleton':_0x30294c,'cursors':_0x594237};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x4a8b13(0x18b)](({skeleton:_0x1954df,cursors:_0x31a636})=>{const _0x4dfaa7=_0x4a8b13;this[_0x4dfaa7(0x3cd)](),_0x1954df&&this['_updateCollabCursors'](_0x1954df,_0x31a636);}),this[_0x4a8b13(0x458)]['currentSkeleton$']['subscribe'](_0x381c0d=>{const _0x336416=_0x4a8b13;if(_0x381c0d==null)return;const {skeleton:_0x539546}=_0x381c0d,_0x169311=this[_0x336416(0x15e)][_0x336416(0x376)](this[_0x336416(0x3d5)]),{scene:_0x3cf1fa}=_0x169311;_0x3cf1fa[_0x336416(0x293)][_0x336416(0x149)](He(_0x20bdd6=>{const _0x9365e9=_0x336416;var _0x39798b,_0xe68a14;const {offsetX:_0x3c4759,offsetY:_0x3199ab}=_0x20bdd6,{x:_0x2bf804,y:_0x5f44c0}=_0x3cf1fa[_0x9365e9(0x387)](R[_0x9365e9(0x40a)][_0x9365e9(0x361)]([_0x3c4759,_0x3199ab])),{scaleX:_0x3c86e2,scaleY:_0x484605}=_0x3cf1fa['getAncestorScale'](),_0x7e448=_0x3cf1fa[_0x9365e9(0x196)](ee[_0x9365e9(0x175)]['VIEW_MAIN']),_0x203507=_0x3cf1fa[_0x9365e9(0x2f9)](R['Vector2']['FromArray']([_0x2bf804,_0x5f44c0]),_0x7e448),_0x5aa8a1=_0x539546[_0x9365e9(0x2c4)](_0x3c4759,_0x3199ab,_0x3c86e2,_0x484605,_0x203507);((_0x39798b=this[_0x9365e9(0x364)])==null?void 0x0:_0x39798b['column'])===_0x5aa8a1['column']&&((_0xe68a14=this['_lastPointer'])==null?void 0x0:_0xe68a14[_0x9365e9(0x129)])===_0x5aa8a1[_0x9365e9(0x129)]||this[_0x9365e9(0x3cf)]['forEach'](_0x42cc57=>{const _0x3aa431=_0x9365e9;_0x42cc57[_0x3aa431(0x347)](_0x5aa8a1);});},0x64));});}[_0x18d643(0x379)](_0x278c47,_0x4f4b7d){const _0x38f9be=_0x18d643;var _0x8be913;const _0x42e1c5=(_0x8be913=this[_0x38f9be(0x458)][_0x38f9be(0x357)]())==null?void 0x0:_0x8be913['skeleton'];if(!_0x42e1c5)return;const _0x1e0e4e=this[_0x38f9be(0x330)]();if(!_0x1e0e4e)return;this[_0x38f9be(0x3cf)]['forEach'](_0x25ce9c=>{const _0x5492cd=_0x38f9be;_0x25ce9c[_0x5492cd(0x3e4)]();});const {scene:_0x2a050e}=_0x1e0e4e,_0x140c98=Zs(Array[_0x38f9be(0x2fb)](_0x4f4b7d['values']()))['map'](_0x4eeab4=>{const _0x46c287=_0x38f9be,{color:_0x465793,range:_0x4bfd25,name:_0x477140,selection:_0xa7edcd,sheetID:_0x336e25}=_0x4eeab4,{startColumn:_0x57e900,startRow:_0x7fff3f,endColumn:_0x5d7cec,endRow:_0x52d52c}=_0x4bfd25,_0xb46f88=ee['getCoordByCell'](_0x7fff3f,_0x57e900,_0x2a050e,_0x42e1c5),_0x88c5bc=ee[_0x46c287(0x226)](_0x52d52c,_0x5d7cec,_0x2a050e,_0x42e1c5),{columnHeaderHeightAndMarginTop:_0x5a10b8}=_0x42e1c5,{startX:_0x5e8e6f,startY:_0x25a282}=_0xb46f88,{endX:_0x5bbaba,endY:_0x2ec26d}=_0x88c5bc,_0x179799=_0x5bbaba-_0x5e8e6f,_0x1b79df=_0x2ec26d-_0x25a282,_0x30198f={'labelPosition':_0x25a282-_0x5a10b8>=ce?_0x46c287(0x191):'bottom','sheetID':_0x336e25,'range':_0x4bfd25,'color':_0x465793,'name':_0x477140,'selection':_0xa7edcd,'left':_0x5e8e6f,'top':_0x25a282,'width':_0x179799,'height':_0x1b79df,'evented':!0x1,'zIndex':Js};return new Ks(_0x477140,_0x30198f);});_0x2a050e[_0x38f9be(0x1f4)](_0x140c98,Gs),this[_0x38f9be(0x3cf)]=new Set(_0x140c98);}['_removeCollabCursors'](){const _0xb7d783=_0x18d643;var _0x401078;(_0x401078=this[_0xb7d783(0x3cf)])==null||_0x401078[_0xb7d783(0x2eb)](_0x5e615f=>_0x5e615f[_0xb7d783(0x318)]());}[_0x18d643(0x330)](){const _0x499df7=_0x18d643;return ee['getSheetObject'](this[_0x499df7(0x437)],this['_renderManagerService']);}};ue=zs([a['OnLifecycle'](a[_0x18d643(0x455)][_0x18d643(0x44d)],ue),le(0x0,h[_0x18d643(0x2ef)](J)),le(0x1,a[_0x18d643(0x3d1)]),le(0x2,R[_0x18d643(0x178)]),le(0x3,h[_0x18d643(0x2ef)](a['ThemeService']))],ue);function Zs(_0x566deb){const _0x508eaa=_0x18d643,_0x245640=new Map();return _0x566deb['forEach'](_0x25c288=>{const _0x30fd8b=_0x1f13;if(_0x245640[_0x30fd8b(0x184)](_0x25c288[_0x30fd8b(0x4d0)])){const _0x4c12e4=_0x245640['get'](_0x25c288[_0x30fd8b(0x4d0)]);_0x4c12e4[_0x30fd8b(0x47b)]+=',\x20'+_0x25c288['name'];}else _0x245640[_0x30fd8b(0x3db)](_0x25c288[_0x30fd8b(0x4d0)],_0x25c288);}),Array[_0x508eaa(0x2fb)](_0x245640[_0x508eaa(0x2db)]());}var M=function(){const _0x2380d9=_0x18d643;return M=Object[_0x2380d9(0x2ee)]||function(_0x5ea33c){const _0x39db46=_0x2380d9;for(var _0x4fd0dd,_0xe4001d=0x1,_0x78644d=arguments[_0x39db46(0x42b)];_0xe4001d<_0x78644d;_0xe4001d++){_0x4fd0dd=arguments[_0xe4001d];for(var _0x1f998 in _0x4fd0dd)Object['prototype']['hasOwnProperty']['call'](_0x4fd0dd,_0x1f998)&&(_0x5ea33c[_0x1f998]=_0x4fd0dd[_0x1f998]);}return _0x5ea33c;},M[_0x2380d9(0x13d)](this,arguments);},Qs=function(_0x4ec44f,_0x397e85){const _0x1f6ba6=_0x18d643;var _0x55c1b5={};for(var _0xef45df in _0x4ec44f)Object['prototype']['hasOwnProperty'][_0x1f6ba6(0x32e)](_0x4ec44f,_0xef45df)&&_0x397e85[_0x1f6ba6(0x137)](_0xef45df)<0x0&&(_0x55c1b5[_0xef45df]=_0x4ec44f[_0xef45df]);if(_0x4ec44f!=null&&typeof Object[_0x1f6ba6(0x464)]==_0x1f6ba6(0x118)){for(var _0x4f2704=0x0,_0xef45df=Object[_0x1f6ba6(0x464)](_0x4ec44f);_0x4f2704<_0xef45df['length'];_0x4f2704++)_0x397e85[_0x1f6ba6(0x137)](_0xef45df[_0x4f2704])<0x0&&Object['prototype'][_0x1f6ba6(0x43c)]['call'](_0x4ec44f,_0xef45df[_0x4f2704])&&(_0x55c1b5[_0xef45df[_0x4f2704]]=_0x4ec44f[_0xef45df[_0x4f2704]]);}return _0x55c1b5;},Ge=L['forwardRef'](function(_0x4b318e,_0x49bf9c){const _0x482963=_0x18d643;var _0x23206f=_0x4b318e[_0x482963(0x3cb)],_0xfeb1f=_0x4b318e['id'],_0x2df614=_0x4b318e[_0x482963(0x42d)],_0x11d6ca=_0x4b318e[_0x482963(0x3df)],_0x502d2e=Qs(_0x4b318e,[_0x482963(0x3cb),'id',_0x482963(0x42d),_0x482963(0x3df)]),_0x26f526=_0x482963(0x470)[_0x482963(0x37a)](_0xfeb1f,'\x20')[_0x482963(0x37a)](_0x2df614||'')[_0x482963(0x323)](),_0x292d2e=L['useRef']('_'[_0x482963(0x37a)](si()));return Rt(_0x23206f,''['concat'](_0xfeb1f),{'defIds':_0x23206f[_0x482963(0x1de)],'idSuffix':_0x292d2e['current']},M({'ref':_0x49bf9c,'className':_0x26f526},_0x502d2e),_0x11d6ca);});function Rt(_0x180356,_0x15ecde,_0x5cc647,_0x3b18e7,_0x16d8b7){const _0x2013ed=_0x18d643;return L[_0x2013ed(0x473)](_0x180356[_0x2013ed(0x185)],M(M({'key':_0x15ecde},ei(_0x180356,_0x5cc647,_0x16d8b7)),_0x3b18e7),(ti(_0x180356,_0x5cc647)[_0x2013ed(0x360)]||[])[_0x2013ed(0x3a3)](function(_0xbb86c4,_0x8f422d){const _0x2a3833=_0x2013ed;return Rt(_0xbb86c4,''[_0x2a3833(0x37a)](_0x15ecde,'-')[_0x2a3833(0x37a)](_0x180356[_0x2a3833(0x185)],'-')[_0x2a3833(0x37a)](_0x8f422d),_0x5cc647,void 0x0,_0x16d8b7);}));}function ei(_0x593e35,_0x1e7a4c,_0xae4096){const _0x1ed22c=_0x18d643;var _0x5c9918=M({},_0x593e35['attrs']);_0xae4096!=null&&_0xae4096[_0x1ed22c(0x359)]&&_0x5c9918['fill']===_0x1ed22c(0x359)&&(_0x5c9918[_0x1ed22c(0x485)]=_0xae4096[_0x1ed22c(0x359)]);var _0x565631=_0x1e7a4c[_0x1ed22c(0x1de)];return!_0x565631||_0x565631[_0x1ed22c(0x42b)]===0x0||(_0x593e35[_0x1ed22c(0x185)]===_0x1ed22c(0x20f)&&_0x5c9918['xlink:href']&&(_0x5c9918['xlink:href']=_0x5c9918[_0x1ed22c(0x301)]+_0x1e7a4c[_0x1ed22c(0x1c0)]),Object[_0x1ed22c(0x332)](_0x5c9918)['forEach'](function(_0x5a680d){const _0x2ec5f6=_0x1ed22c;var _0x3a3666=_0x5a680d[0x0],_0x26a255=_0x5a680d[0x1];typeof _0x26a255=='string'&&(_0x5c9918[_0x3a3666]=_0x26a255[_0x2ec5f6(0x1cf)](/url\(#(.*)\)/,_0x2ec5f6(0x1e3)['concat'](_0x1e7a4c[_0x2ec5f6(0x1c0)],')')));})),_0x5c9918;}function ti(_0x1cb99a,_0xc3de9a){const _0x413c76=_0x18d643;var _0x132877,_0x13286c=_0xc3de9a['defIds'];return!_0x13286c||_0x13286c[_0x413c76(0x42b)]===0x0?_0x1cb99a:_0x1cb99a[_0x413c76(0x185)]===_0x413c76(0x328)&&(!((_0x132877=_0x1cb99a['children'])===null||_0x132877===void 0x0)&&_0x132877[_0x413c76(0x42b)])?M(M({},_0x1cb99a),{'children':_0x1cb99a[_0x413c76(0x360)][_0x413c76(0x3a3)](function(_0x1e0940){const _0x2eb172=_0x413c76;return typeof _0x1e0940['attrs']['id']==_0x2eb172(0x420)&&_0x13286c&&_0x13286c[_0x2eb172(0x137)](_0x1e0940['attrs']['id'])>-0x1?M(M({},_0x1e0940),{'attrs':M(M({},_0x1e0940['attrs']),{'id':_0x1e0940[_0x2eb172(0x2c3)]['id']+_0xc3de9a['idSuffix']})}):_0x1e0940;})}):_0x1cb99a;}function si(){const _0x4b3b2d=_0x18d643;return Math[_0x4b3b2d(0x11a)]()[_0x4b3b2d(0x1a8)](0x24)[_0x4b3b2d(0x3ea)](0x2,0x8);}Ge['displayName']='UniverIcon';var ii={'tag':_0x18d643(0x2d1),'attrs':{'fill':_0x18d643(0x1ff),'viewBox':_0x18d643(0x18e),'width':_0x18d643(0x174),'height':_0x18d643(0x174)},'children':[{'tag':'g','attrs':{'clipPath':_0x18d643(0x281)},'children':[{'tag':_0x18d643(0x3bc),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':'round','strokeLinejoin':_0x18d643(0x43d),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x18d643(0x11f),'attrs':{'id':_0x18d643(0x22a)},'children':[{'tag':_0x18d643(0x3bc),'attrs':{'fill':_0x18d643(0x32b),'d':_0x18d643(0x24c)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Ot=L[_0x18d643(0x210)](function(_0x48a156,_0x473c0c){const _0x5c69a9=_0x18d643;return L['createElement'](Ge,Object['assign']({},_0x48a156,{'id':_0x5c69a9(0x2d4),'ref':_0x473c0c,'icon':ii}));});Ot[_0x18d643(0x329)]=_0x18d643(0x16a);var ni={'tag':'svg','attrs':{'fill':_0x18d643(0x1ff),'viewBox':_0x18d643(0x156),'width':_0x18d643(0x174),'height':_0x18d643(0x174)},'children':[{'tag':'g','attrs':{'clipPath':_0x18d643(0x13a)},'children':[{'tag':_0x18d643(0x3bc),'attrs':{'stroke':'currentColor','d':_0x18d643(0x444),'strokeLinecap':'round','strokeLinejoin':_0x18d643(0x43d),'strokeWidth':1.2}}]},{'tag':_0x18d643(0x328),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x18d643(0x1e0)},'children':[{'tag':'path','attrs':{'fill':_0x18d643(0x32b),'d':_0x18d643(0x24c),'transform':'translate(.97)'}}]}]}],'defIds':[_0x18d643(0x1e0)]},Dt=L[_0x18d643(0x210)](function(_0x3b488b,_0x13e7d8){const _0x265731=_0x18d643;return L[_0x265731(0x473)](Ge,Object[_0x265731(0x2ee)]({},_0x3b488b,{'id':_0x265731(0x25b),'ref':_0x13e7d8,'icon':ni}));});Dt[_0x18d643(0x329)]=_0x18d643(0x22d);const ri=_0x18d643(0x3a9),oi=_0x18d643(0x1e2),ai=_0x18d643(0x38b),ci=_0x18d643(0x36b),li='univer-offline',ie={'onlineStatusIcon':ri,'onlineStatusTitle':oi,'onlineStatus':ai,'online':ci,'offline':li};function hi(_0x148d87){const _0x1f2003=_0x18d643;switch(_0x148d87){case U[_0x1f2003(0x242)]:return _0x1f2003(0x19f);case U[_0x1f2003(0x2fc)]:return'collabStatus.conflict';case U['FETCH_MISS']:return _0x1f2003(0x445);case U['NOT_COLLAB']:return _0x1f2003(0x31f);case U['PENDING']:case U[_0x1f2003(0x441)]:case U[_0x1f2003(0x1c7)]:return _0x1f2003(0x1fd);case U[_0x1f2003(0x263)]:return _0x1f2003(0x241);}}function Ut(_0x4aecb9){const _0x4ab43b=_0x18d643,{status$:_0x3e769c}=_0x4aecb9,_0xdc774f=N['useObservable'](_0x3e769c,U[_0x4ab43b(0x405)]),_0x142f60=ct[_0x4ab43b(0x2e0)](a[_0x4ab43b(0x30c)]),_0x3be894=_0xdc774f!==U[_0x4ab43b(0x242)],_0x21dcaa=_0x142f60['t'](hi(_0xdc774f)),_0x23a880=xt(ie['onlineStatus'],{[ie[_0x4ab43b(0x35f)]]:_0x3be894,[ie['offline']]:!_0x3be894}),_0x7fc9b0=_0x3be894?L['createElement'](Dt,null):L[_0x4ab43b(0x473)](Ot,null);return L[_0x4ab43b(0x473)](_0x4ab43b(0x2c7),{'className':_0x23a880},L[_0x4ab43b(0x473)](_0x4ab43b(0x2c7),{'className':ie[_0x4ab43b(0x4b1)]},_0x7fc9b0),L[_0x4ab43b(0x473)](_0x4ab43b(0x2c7),{'className':ie[_0x4ab43b(0x2a0)]},_0x21dcaa));}var _i=Object[_0x18d643(0x44c)],ui=Object[_0x18d643(0x334)],di=(_0x4d0270,_0x29ad9c,_0x96447e,_0x110179)=>{const _0x2e2502=_0x18d643;for(var _0x4abaff=_0x110179>0x1?void 0x0:_0x110179?ui(_0x29ad9c,_0x96447e):_0x29ad9c,_0x5ee776=_0x4d0270[_0x2e2502(0x42b)]-0x1,_0x2f6868;_0x5ee776>=0x0;_0x5ee776--)(_0x2f6868=_0x4d0270[_0x5ee776])&&(_0x4abaff=(_0x110179?_0x2f6868(_0x29ad9c,_0x96447e,_0x4abaff):_0x2f6868(_0x4abaff))||_0x4abaff);return _0x110179&&_0x4abaff&&_i(_0x29ad9c,_0x96447e,_0x4abaff),_0x4abaff;},he=(_0x2df02b,_0xd288b)=>(_0x4a0ca4,_0x4122c7)=>_0xd288b(_0x4a0ca4,_0x4122c7,_0x2df02b);exports[_0x18d643(0x262)]=class extends a[_0x18d643(0x480)]{constructor(_0x2e2ec4,_0x4e8be6,_0x46f70c,_0x25a2dc){const _0x135b1c=_0x18d643;super(),d(this,_0x135b1c(0x365),new g[(_0x135b1c(0x3c9))](U['NOT_COLLAB'])),(this['_univerInstanceService']=_0x2e2ec4,this[_0x135b1c(0x194)]=_0x4e8be6,this['_injector']=_0x46f70c,this[_0x135b1c(0x37e)]=_0x25a2dc,this['_initStatusComponent'](),this[_0x135b1c(0x190)]());}[_0x18d643(0x1aa)](){const _0x4d7265=_0x18d643;this[_0x4d7265(0x352)](this[_0x4d7265(0x194)]['registerComponent'](N['BuiltInUIPart'][_0x4d7265(0x373)],()=>ct['connectInjector'](Si({'status$':this['_status$'][_0x4d7265(0x221)]()}),this[_0x4d7265(0x42e)])));}[_0x18d643(0x190)](){const _0x2b2750=_0x18d643;this[_0x2b2750(0x352)](a[_0x2b2750(0x345)](this[_0x2b2750(0x437)][_0x2b2750(0x278)][_0x2b2750(0x2a5)](g[_0x2b2750(0x443)](()=>{const _0x4bec68=_0x2b2750,_0x355177=this[_0x4bec68(0x437)][_0x4bec68(0x36d)]();return _0x355177?this[_0x4bec68(0x37e)][_0x4bec68(0x322)](_0x355177[_0x4bec68(0x3fd)]()):g['of'](null);}),g['switchMap'](_0x2f50cd=>_0x2f50cd?_0x2f50cd[_0x2b2750(0x371)]:g['of'](U[_0x2b2750(0x405)])))[_0x2b2750(0x18b)](_0x5f97d=>{const _0x3af3e0=_0x2b2750;this[_0x3af3e0(0x365)]['next'](_0x5f97d);})));}},exports[_0x18d643(0x262)]=di([a[_0x18d643(0x35e)](a[_0x18d643(0x455)][_0x18d643(0x37d)],exports[_0x18d643(0x262)]),he(0x0,a[_0x18d643(0x3d1)]),he(0x1,N[_0x18d643(0x276)]),he(0x2,h[_0x18d643(0x2ef)](h['Injector'])),he(0x3,h[_0x18d643(0x2ef)](exports[_0x18d643(0x1ac)]))],exports[_0x18d643(0x262)]);function _0x1f13(_0x14a44b,_0x5dfafe){const _0x7f1edd=_0x7f1e();return _0x1f13=function(_0x1f13fe,_0x5300db){_0x1f13fe=_0x1f13fe-0x115;let _0x5b627c=_0x7f1edd[_0x1f13fe];return _0x5b627c;},_0x1f13(_0x14a44b,_0x5dfafe);}function Si(_0x1318ff){const {status$:_0x10947c}=_0x1318ff;return function(){const _0x21b547=_0x1f13;return L[_0x21b547(0x473)](Ut,{'status$':_0x10947c});};}const Ye=h[_0x18d643(0x1d0)]('uni.network.url-service');var vi=Object['defineProperty'],gi=Object[_0x18d643(0x334)],fi=(_0x2a5476,_0x47dd25,_0x1858aa,_0x4ab76c)=>{const _0xce4375=_0x18d643;for(var _0x327496=_0x4ab76c>0x1?void 0x0:_0x4ab76c?gi(_0x47dd25,_0x1858aa):_0x47dd25,_0x2d6231=_0x2a5476[_0xce4375(0x42b)]-0x1,_0x144bcd;_0x2d6231>=0x0;_0x2d6231--)(_0x144bcd=_0x2a5476[_0x2d6231])&&(_0x327496=(_0x4ab76c?_0x144bcd(_0x47dd25,_0x1858aa,_0x327496):_0x144bcd(_0x327496))||_0x327496);return _0x4ab76c&&_0x327496&&vi(_0x47dd25,_0x1858aa,_0x327496),_0x327496;},z=(_0x3d3c32,_0x4b215a)=>(_0xe98068,_0x42e88e)=>_0x4b215a(_0xe98068,_0x42e88e,_0x3d3c32);exports[_0x18d643(0x32f)]=class extends a['RxDisposable']{constructor(_0x126f8d,_0xe2ec6c,_0x532619,_0x2ab904,_0x3d25b0,_0x3639d9){const _0x3f09b6=_0x18d643;super(),this[_0x3f09b6(0x4d5)]=_0x126f8d,this[_0x3f09b6(0x132)]=_0xe2ec6c,this['_commandService']=_0x532619,this[_0x3f09b6(0x245)]=_0x2ab904,this[_0x3f09b6(0x2e2)]=_0x3d25b0,_0x3639d9?_0x3639d9==null||_0x3639d9[_0x3f09b6(0x26b)]()[_0x3f09b6(0x270)](()=>this[_0x3f09b6(0x1c3)]()):(this[_0x3f09b6(0x132)][_0x3f09b6(0x280)](_0x3f09b6(0x4a4),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x3f09b6(0x1c3)]());}async['_init'](){const _0x17eafe=_0x18d643,_0x442c37=this['_urlService'][_0x17eafe(0x26e)]('unit'),_0xdec5b=this[_0x17eafe(0x4d5)][_0x17eafe(0x26e)](_0x17eafe(0x3a7));if(!_0x442c37||!_0xdec5b){this[_0x17eafe(0x132)][_0x17eafe(0x280)]('[DataLoaderController]',_0x17eafe(0x337));return;}switch(Number(_0xdec5b)){case j['UNIVER_SHEET']:{const _0x286057=await this['_loadSheet'](_0x442c37);this['_setupSubUnitSync'](_0x286057);break;}case j[_0x17eafe(0x336)]:{await this[_0x17eafe(0x292)](_0x442c37);break;}default:{this[_0x17eafe(0x132)][_0x17eafe(0x11e)](_0x17eafe(0x4a4),_0x17eafe(0x13c));break;}}}async['_setupSubUnitSync'](_0xda4471){const _0x5bfa33=_0x18d643;await this['_updateSubUnitFromURLParams'](_0xda4471),_0xda4471[_0x5bfa33(0x290)][_0x5bfa33(0x2a5)](g['takeUntil'](this[_0x5bfa33(0x237)]))[_0x5bfa33(0x18b)](_0x3cf9cd=>{_0x3cf9cd&&this['_updateURLWithCurrentState'](_0x3cf9cd);}),this[_0x5bfa33(0x4d5)][_0x5bfa33(0x493)][_0x5bfa33(0x2a5)](g[_0x5bfa33(0x23e)](this['dispose$']))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0xda4471));}[_0x18d643(0x23d)](_0x2a9e0c,_0x219f46=!0x1){const _0x330a48=_0x18d643,_0x2fd8b8=this[_0x330a48(0x4d5)]['getParam']('subunit');_0x2a9e0c[_0x330a48(0x170)]()!==_0x2fd8b8&&this[_0x330a48(0x4d5)][_0x330a48(0x264)](_0x330a48(0x11b),_0x2a9e0c['getSheetId'](),_0x219f46);}async[_0x18d643(0x3f2)](_0x417f69){const _0x35739a=_0x18d643;var _0x425ced;const _0x262222=this[_0x35739a(0x4d5)][_0x35739a(0x26e)](_0x35739a(0x11b));if(!_0x262222||!_0x417f69[_0x35739a(0x35a)](_0x262222)){const _0x177947=_0x417f69[_0x35739a(0x310)]()[0x0],_0x4d256c=_0x417f69[_0x35739a(0x35a)](_0x177947);if(!_0x4d256c)return;this['_updateURLWithCurrentState'](_0x4d256c,!0x0),await this[_0x35739a(0x3d6)][_0x35739a(0x224)](E['SetWorksheetActivateCommand']['id'],{'unitId':_0x417f69[_0x35739a(0x3fd)](),'subUnitId':_0x177947});return;}((_0x425ced=_0x417f69[_0x35739a(0x3e6)]())==null?void 0x0:_0x425ced['getSheetId']())!==_0x262222&&await this['_commandService']['executeCommand'](E['SetWorksheetActivateCommand']['id'],{'unitId':_0x417f69[_0x35739a(0x3fd)](),'subUnitId':_0x262222});}async[_0x18d643(0x27e)](_0x153e19){const _0x4ae321=_0x18d643;let _0x26a508=0x0;const _0xba9827=await this[_0x4ae321(0x245)][_0x4ae321(0x155)](_0x153e19);return _0xba9827&&(_0xba9827[_0x4ae321(0x19d)]||_0xba9827['mutations']['length']!==0x0)&&(_0x26a508=_0xba9827['rev']),_0x26a508===0x0&&this[_0x4ae321(0x132)][_0x4ae321(0x280)](_0x4ae321(0x4a4),_0x4ae321(0x4bd)),this[_0x4ae321(0x2e2)][_0x4ae321(0x2ff)](_0x153e19,_0x26a508);}async[_0x18d643(0x292)](_0xaf37a6){const _0x4f8436=_0x18d643;let _0x3f9fc2=0x0;const _0x18045d=await this['_localCacheService'][_0x4f8436(0x155)](_0xaf37a6);return _0x18045d&&(_0x18045d[_0x4f8436(0x19d)]||_0x18045d[_0x4f8436(0x3ce)][_0x4f8436(0x42b)]!==0x0)&&(_0x3f9fc2=_0x18045d['rev']),_0x3f9fc2===0x0&&this[_0x4f8436(0x132)][_0x4f8436(0x280)](_0x4f8436(0x4a4),_0x4f8436(0x4bd)),this['_snapshotService'][_0x4f8436(0x29d)](_0xaf37a6,_0x3f9fc2);}},exports[_0x18d643(0x32f)]=fi([a[_0x18d643(0x35e)](a[_0x18d643(0x455)][_0x18d643(0x37d)],exports[_0x18d643(0x32f)]),z(0x0,Ye),z(0x1,a['ILogService']),z(0x2,a[_0x18d643(0x218)]),z(0x3,h[_0x18d643(0x2ef)](exports[_0x18d643(0x3e2)])),z(0x4,h[_0x18d643(0x2ef)](u[_0x18d643(0x146)])),z(0x5,h['Optional'](kt['IRemoteInstanceService']))],exports['DataLoaderController']);var mi=Object[_0x18d643(0x44c)],Ii=Object['getOwnPropertyDescriptor'],pi=(_0x469eaa,_0x3e9c40,_0x2baa9a,_0xb2ac3a)=>{const _0x1e0a9c=_0x18d643;for(var _0x25eb2f=_0xb2ac3a>0x1?void 0x0:_0xb2ac3a?Ii(_0x3e9c40,_0x2baa9a):_0x3e9c40,_0x38a208=_0x469eaa[_0x1e0a9c(0x42b)]-0x1,_0x47db4e;_0x38a208>=0x0;_0x38a208--)(_0x47db4e=_0x469eaa[_0x38a208])&&(_0x25eb2f=(_0xb2ac3a?_0x47db4e(_0x3e9c40,_0x2baa9a,_0x25eb2f):_0x47db4e(_0x25eb2f))||_0x25eb2f);return _0xb2ac3a&&_0x25eb2f&&mi(_0x3e9c40,_0x2baa9a,_0x25eb2f),_0x25eb2f;},it=(_0x2ee60b,_0x1da10c)=>(_0x253acc,_0x23bfef)=>_0x1da10c(_0x253acc,_0x23bfef,_0x2ee60b);const Ei=_0x18d643(0x13e),Ci=_0x18d643(0x297);let de=class extends a[_0x18d643(0x480)]{constructor(_0xc75b15,_0xa9a1cb){const _0x1e50b3=_0x18d643;super(),this['_univerInstanceService']=_0xc75b15,this['_configService']=_0xa9a1cb,this[_0x1e50b3(0x1c3)]();}[_0x18d643(0x1c3)](){const _0x2443a9=_0x18d643;this[_0x2443a9(0x352)](a[_0x2443a9(0x345)](this[_0x2443a9(0x437)]['focused$']['subscribe'](()=>{const _0x3e589d=_0x2443a9;var _0xee0339;const _0x3620cb=this[_0x3e589d(0x437)][_0x3e589d(0x36d)]();let _0x385856=(_0xee0339=this[_0x3e589d(0x2b5)][_0x3e589d(0x46d)](Ei))!=null?_0xee0339:Ci;_0x3620cb instanceof a['Workbook']&&(_0x385856=_0x3620cb['name']),document[_0x3e589d(0x1f9)]=_0x385856;})));}};de=pi([a[_0x18d643(0x35e)](a[_0x18d643(0x455)][_0x18d643(0x2b1)],de),it(0x0,a[_0x18d643(0x3d1)]),it(0x1,a[_0x18d643(0x14b)])],de);var bi=Object[_0x18d643(0x44c)],Ti=Object[_0x18d643(0x334)],Ri=(_0x3389db,_0x550d35,_0x1c2e54,_0x466a48)=>{const _0x5d7622=_0x18d643;for(var _0x52d205=_0x466a48>0x1?void 0x0:_0x466a48?Ti(_0x550d35,_0x1c2e54):_0x550d35,_0xe2dcc9=_0x3389db[_0x5d7622(0x42b)]-0x1,_0x32e9ed;_0xe2dcc9>=0x0;_0xe2dcc9--)(_0x32e9ed=_0x3389db[_0xe2dcc9])&&(_0x52d205=(_0x466a48?_0x32e9ed(_0x550d35,_0x1c2e54,_0x52d205):_0x32e9ed(_0x52d205))||_0x52d205);return _0x466a48&&_0x52d205&&bi(_0x550d35,_0x1c2e54,_0x52d205),_0x52d205;},nt=(_0x13519d,_0x1e6579)=>(_0x49864a,_0x545348)=>_0x1e6579(_0x49864a,_0x545348,_0x13519d);let Ae=class{constructor(_0x3c968a,_0x4b6717){const _0x1547e0=_0x18d643;this[_0x1547e0(0x2b5)]=_0x3c968a,this[_0x1547e0(0x2d7)]=_0x4b6717;}async[_0x18d643(0x208)](_0x10bb1e,_0x36a854){const _0x4841a8=_0x18d643;var _0x4dbf3e;const {unitID:_0x359071,type:_0x1691f4,revision:_0xdb991d=0x0}=_0x36a854,_0x58ed27=this[_0x4841a8(0x187)]()+'/'+_0x1691f4+_0x4841a8(0x222)+_0x359071+_0x4841a8(0x18d)+(_0xdb991d===0x1?0x0:_0xdb991d),_0x5b0c62=(await this[_0x4841a8(0x2d7)][_0x4841a8(0x1bc)](_0x58ed27))[_0x4841a8(0x341)],_0x45b52b=(_0x4dbf3e=_0x5b0c62[_0x4841a8(0x3d2)])==null?void 0x0:_0x4dbf3e[_0x4841a8(0x203)];if(_0x45b52b){const _0x240338=_0x45b52b==null?void 0x0:_0x45b52b['originalMeta'],_0x569311=a['textEncoder']['encode'](a[_0x4841a8(0x180)](_0x240338));_0x45b52b[_0x4841a8(0x36c)]=_0x569311,Object['entries'](_0x45b52b[_0x4841a8(0x144)])['forEach'](([,_0x27e3fc])=>{const _0x13c92a=_0x4841a8,_0x41608a=_0x27e3fc[_0x13c92a(0x36c)],_0x23d467=a[_0x13c92a(0x20b)][_0x13c92a(0x4af)](a[_0x13c92a(0x180)](_0x41608a));_0x27e3fc[_0x13c92a(0x36c)]=_0x23d467;});}return _0x5b0c62;}async[_0x18d643(0x3eb)](_0x8b972d,_0x4c4350){const _0x165101=_0x18d643,{unitID:_0x4f2728,type:_0x1ade3d,blockID:_0x494059}=_0x4c4350,_0xf0bf92=this[_0x165101(0x4d1)]()+'/'+_0x1ade3d+_0x165101(0x222)+_0x4f2728+_0x165101(0x1db)+_0x494059;return(await this[_0x165101(0x2d7)][_0x165101(0x1bc)](_0xf0bf92))[_0x165101(0x341)];}async['fetchMissingChangesets'](_0x7ed734,_0x2cdda1){const _0x392869=_0x18d643,{unitID:_0x625fc,type:_0x30db59,from:_0x11fa5a,to:_0xe5611a}=_0x2cdda1,_0x1032c5=this['_getAPIPrefix']()+'/'+_0x30db59+_0x392869(0x222)+_0x625fc+_0x392869(0x4c1)+_0x11fa5a+_0x392869(0x469)+_0xe5611a;return(await this[_0x392869(0x2d7)]['get'](_0x1032c5))[_0x392869(0x341)];}['_getSnapshotAPIPrefix'](){const _0x1f97a9=_0x18d643;var _0x16397e;return(_0x16397e=this['_configService'][_0x1f97a9(0x46d)](ht))!=null?_0x16397e:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x36ae49=_0x18d643;var _0x2a3ca0;return(_0x2a3ca0=this[_0x36ae49(0x2b5)][_0x36ae49(0x46d)](lt))!=null?_0x2a3ca0:Bt;}async[_0x18d643(0x16c)](_0x566750,_0x2b939){const _0x104fd1=_0x18d643,_0x26a8b5=_0x104fd1(0x32c)+_0x2b939[_0x104fd1(0x3a7)]+_0x104fd1(0x222)+_0x2b939['unitID']+_0x104fd1(0x399);return(await this[_0x104fd1(0x2d7)][_0x104fd1(0x1bc)](_0x26a8b5,{'params':{'resourceId':JSON[_0x104fd1(0x3d8)](_0x2b939['resourceIDs'])}}))[_0x104fd1(0x341)];}['saveSnapshot'](){const _0x5e6788=_0x18d643;throw new Error(_0x5e6788(0x27f));}[_0x18d643(0x400)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x18d643(0x18a)](){const _0x14ad31=_0x18d643;throw new Error(_0x14ad31(0x27f));}};Ae=Ri([nt(0x0,a[_0x18d643(0x14b)]),nt(0x1,h[_0x18d643(0x2ef)](P[_0x18d643(0x424)]))],Ae);var Oi=Object[_0x18d643(0x44c)],Di=Object[_0x18d643(0x334)],Ui=(_0x3e3da1,_0x37ae8c,_0x5d6815,_0x34300e)=>{for(var _0x714e3d=_0x34300e>0x1?void 0x0:_0x34300e?Di(_0x37ae8c,_0x5d6815):_0x37ae8c,_0xa16469=_0x3e3da1['length']-0x1,_0x4860cf;_0xa16469>=0x0;_0xa16469--)(_0x4860cf=_0x3e3da1[_0xa16469])&&(_0x714e3d=(_0x34300e?_0x4860cf(_0x37ae8c,_0x5d6815,_0x714e3d):_0x4860cf(_0x714e3d))||_0x714e3d);return _0x34300e&&_0x714e3d&&Oi(_0x37ae8c,_0x5d6815,_0x714e3d),_0x714e3d;},ne=(_0x3424a3,_0x17c2cc)=>(_0x3ddde9,_0x49df75)=>_0x17c2cc(_0x3ddde9,_0x49df75,_0x3424a3);let je=class extends a[_0x18d643(0x45a)]{constructor(_0x2b276b,_0xb0ea1a,_0x54cdd0,_0x30344c,_0x3aa0bd){const _0x56172f=_0x18d643;super(_0x2b276b,_0xb0ea1a,_0x54cdd0),this['_transformService']=_0x30344c,this[_0x56172f(0x132)]=_0x3aa0bd;}[_0x18d643(0x3a0)](_0x10951b,_0x122add){const _0x1119a9=_0x18d643,_0x1232be=this['_getUndoStack'](_0x10951b);if(_0x1232be)try{const _0x7ef125=this['_transformStack'](_0x1232be,_0x122add);this['_substituteUndoStack'](_0x10951b,_0x7ef125);}catch(_0x5de1e4){this['_logService'][_0x1119a9(0x11e)](_0x1119a9(0x430),_0x5de1e4),this['_clearUndo'](_0x10951b);}const _0x1a2ca8=this[_0x1119a9(0x21a)](_0x10951b);if(_0x1a2ca8)try{const _0x427de2=this[_0x1119a9(0x33a)](_0x1a2ca8,_0x122add);this[_0x1119a9(0x166)](_0x10951b,_0x427de2);}catch(_0x39daaa){this['_logService'][_0x1119a9(0x11e)](_0x39daaa),this[_0x1119a9(0x2b6)](_0x10951b);}}[_0x18d643(0x136)](_0x10dbdb){const _0x471a89=_0x18d643,_0x494e98=this[_0x471a89(0x46e)](_0x10dbdb);_0x494e98&&(_0x494e98['length']=0x0,this['_updateStatus']());}['_clearRedo'](_0x2bd566){const _0x5aefac=_0x18d643,_0x18d567=this[_0x5aefac(0x21a)](_0x2bd566);_0x18d567&&(_0x18d567[_0x5aefac(0x42b)]=0x0,this[_0x5aefac(0x176)]());}[_0x18d643(0x2df)](_0x24375a,_0x3460b7){const _0x4bfb24=_0x18d643;this['_undoStacks'][_0x4bfb24(0x3db)](_0x24375a,_0x3460b7),this['_updateStatus']();}['_substituteRedoStack'](_0x5b260c,_0xa1e7a0){const _0x301453=_0x18d643;this[_0x301453(0x3e1)][_0x301453(0x3db)](_0x5b260c,_0xa1e7a0),this['_updateStatus']();}[_0x18d643(0x33a)](_0x31c455,_0x1bc751){const _0x4b950a=_0x18d643,_0x3e313d=[];let _0x4978a7=_0x1bc751,_0x34a295=_0x1bc751;for(let _0x216611=_0x31c455[_0x4b950a(0x42b)]-0x1;_0x216611>=0x0;_0x216611--){const {unitID:_0x1f6e24,undoMutations:_0x25f17c,redoMutations:_0x4998c5}=_0x31c455[_0x216611],_0x3f6d5a=this[_0x4b950a(0x39b)][_0x4b950a(0x33d)](_0x4978a7,_0x25f17c),_0x165dc6=this[_0x4b950a(0x39b)][_0x4b950a(0x33d)](_0x34a295,_0x4998c5);if(u['isTransformMutationsWithChangesetFailure'](_0x3f6d5a)||u[_0x4b950a(0x123)](_0x165dc6)){this['_logService']['error'](_0x4b950a(0x430),'transformStack\x20failed!',_0x3f6d5a,_0x165dc6);break;}_0x4978a7=_0x3f6d5a[_0x4b950a(0x41d)],_0x34a295=_0x165dc6[_0x4b950a(0x41d)],_0x3e313d[_0x4b950a(0x28b)]({'unitID':_0x1f6e24,'undoMutations':_0x3f6d5a['m2Prime'],'redoMutations':_0x165dc6[_0x4b950a(0x302)]});}return _0x3e313d[_0x4b950a(0x2f4)]();}};je=Ui([ne(0x0,a[_0x18d643(0x3d1)]),ne(0x1,a[_0x18d643(0x218)]),ne(0x2,a[_0x18d643(0x220)]),ne(0x3,u['ITransformService']),ne(0x4,a[_0x18d643(0x31e)])],je);class wt extends a[_0x18d643(0x451)]{constructor(){const _0x5514cc=_0x18d643;super(),d(this,_0x5514cc(0x493)),this[_0x5514cc(0x493)]=g[_0x5514cc(0x487)](window,_0x5514cc(0x1c5))[_0x5514cc(0x2a5)](g[_0x5514cc(0x23e)](this[_0x5514cc(0x237)]),g[_0x5514cc(0x4c7)](0x1),g['mapTo'](void 0x0));}[_0x18d643(0x264)](_0x53d731,_0x32e4f3,_0x126f26=!0x1){const _0x188b79=_0x18d643,_0x39f7d7=new URL(window[_0x188b79(0x2b8)][_0x188b79(0x212)]);_0x39f7d7[_0x188b79(0x119)]['set'](_0x53d731,_0x32e4f3),_0x126f26?window[_0x188b79(0x489)][_0x188b79(0x3ad)]('','',_0x39f7d7[_0x188b79(0x1a8)]()):window[_0x188b79(0x489)][_0x188b79(0x390)]('','',_0x39f7d7['toString']());}[_0x18d643(0x234)](_0x4972d5,_0x12c89f=!0x1){const _0x4d1125=_0x18d643,_0x550850=new URL(window['location']['href']);_0x550850[_0x4d1125(0x119)][_0x4d1125(0x35c)](_0x4972d5),_0x12c89f?window[_0x4d1125(0x489)][_0x4d1125(0x3ad)]('','',_0x550850[_0x4d1125(0x1a8)]()):window['history']['pushState']('','',_0x550850['toString']());}[_0x18d643(0x26e)](_0x1092cf){const _0x598add=_0x18d643;var _0x2198ce;return(_0x2198ce=new URL(window[_0x598add(0x2b8)][_0x598add(0x212)])['searchParams'][_0x598add(0x1bc)](_0x1092cf))!=null?_0x2198ce:void 0x0;}}const Ue=_0x18d643(0x1a4),wi=_0x18d643(0x2c8),_e=0x6,Li=1.5,we=0x4,Pi=1.5,Mi='rgba(255,\x20255,\x20255,\x200.01)';class yi{constructor(_0x4546ee,_0xf71dc3,_0x5025d6,_0x48b350){const _0x3c4d0f=_0x18d643;d(this,'_shapes',[]),d(this,'_anchor',null),d(this,'_textBubble',null),d(this,_0x3c4d0f(0x3da),null),d(this,_0x3c4d0f(0x1b4),null),d(this,_0x3c4d0f(0x412),null),(this[_0x3c4d0f(0x48f)]=_0x4546ee,this[_0x3c4d0f(0x2a6)]=_0xf71dc3,this[_0x3c4d0f(0x483)]=_0x5025d6,this[_0x3c4d0f(0x3ab)]=_0x48b350,this[_0x3c4d0f(0x2d2)]());}set[_0x18d643(0x23b)](_0x5d4190){const _0x3a1d9e=_0x18d643;_0x5d4190?(this[_0x3a1d9e(0x3da)]&&this['_anchorDot']['hide'](),this[_0x3a1d9e(0x3c7)]&&this[_0x3a1d9e(0x3c7)][_0x3a1d9e(0x2f6)]()):(this['_anchorDot']&&this[_0x3a1d9e(0x3da)][_0x3a1d9e(0x2f6)](),this[_0x3a1d9e(0x3c7)]&&this['_textBubble']['hide']());}[_0x18d643(0x318)](){const _0xfe6461=_0x18d643;for(const _0x511769 of this[_0xfe6461(0x48a)])_0x511769[_0xfe6461(0x318)]();this[_0xfe6461(0x3c7)]&&this[_0xfe6461(0x3c7)][_0xfe6461(0x318)](),this[_0xfe6461(0x3da)]&&this[_0xfe6461(0x3da)][_0xfe6461(0x318)](),this[_0xfe6461(0x3c4)]&&this[_0xfe6461(0x3c4)]['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x18d643(0x2d2)](){const _0xceaebc=_0x18d643,{_docSkeleton:_0x3bbdd1,_document:_0x257439}=this,{color:_0x5e9403,name:_0x206a93,ranges:_0x104dd3}=this[_0xceaebc(0x48f)],_0x25f381=_0x257439[_0xceaebc(0x4a0)](),{docsLeft:_0x4426a3,docsTop:_0x2e0cf1}=_0x25f381,_0x25dbe2=new R[(_0xceaebc(0x233))](_0x25f381,_0x3bbdd1);for(const {startOffset:_0x16f29d,endOffset:_0x37905c,collapsed:_0x4b71d8,isActive:_0x4b3895}of _0x104dd3){const _0x1b0d96=_0x3bbdd1['findNodePositionByCharIndex'](_0x16f29d),_0xb57b60=_0x3bbdd1[_0xceaebc(0x1f0)](_0x37905c);if(_0x4b3895){const {contentBoxPointGroup:_0x9d1b6b}=_0x25dbe2[_0xceaebc(0x1d7)](_0xb57b60,_0xb57b60);if(_0x9d1b6b[_0xceaebc(0x42b)]===0x0)continue;this[_0xceaebc(0x4b4)](_0x5e9403,_0x9d1b6b,_0x4426a3,_0x2e0cf1,_0x206a93),this[_0xceaebc(0x412)]=this[_0xceaebc(0x32d)]();}if(!_0x4b71d8){const {contentBoxPointGroup:_0x1de26f}=_0x25dbe2['getRangePointData'](_0x1b0d96,_0xb57b60);if(_0x1de26f[_0xceaebc(0x42b)]===0x0)continue;this['_drawRange'](_0x5e9403,_0x1de26f,_0x4426a3,_0x2e0cf1);}}}['_drawAnchor'](_0x3c3e9e,_0x3c6c3f,_0x3b0261,_0x28a850,_0x231e2f){const _0x18d3ff=_0x18d643,_0x16a2e2=this[_0x18d3ff(0x3d3)](_0x3c6c3f),{left:_0x241bb7,top:_0x250b23,height:_0x3ab4a3}=_0x16a2e2,_0x4ecda4=this['_getScale'](),_0x1e9d2e=Pi/_0x4ecda4,_0x56b186=new R[(_0x18d3ff(0x1b6))](Ue+a[_0x18d3ff(0x2e7)][_0x18d3ff(0x172)](_e),{'left':_0x241bb7+_0x3b0261-_0x1e9d2e,'top':_0x250b23+_0x28a850,'height':_0x3ab4a3,'width':Li,'fill':_0x3c3e9e||R[_0x18d3ff(0x460)](a[_0x18d3ff(0x435)][_0x18d3ff(0x17a)],0x0),'strokeWidth':_0x1e9d2e,'stroke':Mi,'evented':!0x0});this['_anchor']=_0x56b186,this['_scene'][_0x18d3ff(0x147)](_0x56b186,R[_0x18d3ff(0x246)]);const _0x2df64e=new R[(_0x18d3ff(0x1b6))](Ue+a[_0x18d3ff(0x2e7)][_0x18d3ff(0x172)](_e),{'left':_0x241bb7+_0x3b0261-_0x1e9d2e,'top':_0x250b23+_0x28a850-we/0x2,'height':we,'width':we,'fill':_0x3c3e9e||R['getColor'](a[_0x18d3ff(0x435)][_0x18d3ff(0x17a)],0x0),'strokeWidth':0x0,'stroke':_0x3c3e9e||R[_0x18d3ff(0x460)](a['COLORS'][_0x18d3ff(0x17a)],0x0),'evented':!0x1});this[_0x18d3ff(0x3da)]=_0x2df64e,this['_scene']['addObject'](_0x2df64e,R['TEXT_RANGE_LAYER_INDEX']);const _0x350f02=new Ce(Ue+a[_0x18d3ff(0x2e7)]['generateRandomId'](_e),{'left':_0x241bb7+_0x3b0261-_0x1e9d2e,'top':_0x250b23+_0x28a850-ce,'text':_0x231e2f,'color':_0x3c3e9e});this['_textBubble']=_0x350f02,this[_0x18d3ff(0x2a6)][_0x18d3ff(0x147)](_0x350f02,R['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x158c85=_0x18d643,_0x29dac1=this[_0x158c85(0x3c4)][_0x158c85(0x2a8)]['subscribeEvent'](()=>{const _0x1b3e82=_0x158c85;this[_0x1b3e82(0x23b)]=!0x0;}),_0x55f7b4=this[_0x158c85(0x3c4)][_0x158c85(0x414)]['subscribeEvent'](()=>{const _0x232741=_0x158c85;this[_0x232741(0x1b4)]&&clearTimeout(this[_0x232741(0x1b4)]),this[_0x232741(0x1b4)]=setTimeout(()=>{const _0x4b4649=_0x232741;this[_0x4b4649(0x23b)]=!0x1;},0x7d0);});return()=>{const _0x12d537=_0x158c85;_0x29dac1[_0x12d537(0x2aa)](),_0x55f7b4[_0x12d537(0x2aa)]();};}[_0x18d643(0x3fb)](_0x580df7,_0x420e7,_0x1689df,_0x4f4298){const _0x27ce4b=_0x18d643,_0x30b9f3=new a[(_0x27ce4b(0x408))](_0x580df7)[_0x27ce4b(0x3b5)](0.2)['toRgbString'](),_0xf6ceee=new R[(_0x27ce4b(0x48c))](wi+a[_0x27ce4b(0x2e7)][_0x27ce4b(0x172)](_e),{'pointsGroup':_0x420e7,'fill':_0x30b9f3||R[_0x27ce4b(0x460)](a['COLORS']['black'],0.2),'left':_0x1689df,'top':_0x4f4298,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27ce4b(0x48a)][_0x27ce4b(0x28b)](_0xf6ceee),this['_scene']['addObject'](_0xf6ceee,R[_0x27ce4b(0x246)]);}['_getAnchorBounding'](_0xfe694){const _0x2f45f3=_0xfe694[0x0],_0x313af0=_0x2f45f3[0x0],_0x1a8432=_0x2f45f3[0x2],{x:_0x4d3e04,y:_0x53e6fa}=_0x313af0,{x:_0x59be4c,y:_0x236457}=_0x1a8432;return{'left':_0x4d3e04,'top':_0x53e6fa,'width':_0x59be4c-_0x4d3e04,'height':_0x236457-_0x53e6fa};}['_getScale'](){const _0x40d2ea=_0x18d643,{scaleX:_0x4ed369,scaleY:_0x4a885f}=this[_0x40d2ea(0x2a6)][_0x40d2ea(0x35b)]();return Math[_0x40d2ea(0x30a)](_0x4ed369,_0x4a885f);}}var Ni=Object[_0x18d643(0x44c)],Ai=Object[_0x18d643(0x334)],ji=(_0x95c075,_0x1899a1,_0x10ebde,_0x37bdba)=>{for(var _0x5df38e=_0x37bdba>0x1?void 0x0:_0x37bdba?Ai(_0x1899a1,_0x10ebde):_0x1899a1,_0xcbf46d=_0x95c075['length']-0x1,_0x33dd85;_0xcbf46d>=0x0;_0xcbf46d--)(_0x33dd85=_0x95c075[_0xcbf46d])&&(_0x5df38e=(_0x37bdba?_0x33dd85(_0x1899a1,_0x10ebde,_0x5df38e):_0x33dd85(_0x5df38e))||_0x5df38e);return _0x37bdba&&_0x5df38e&&Ni(_0x1899a1,_0x10ebde,_0x5df38e),_0x5df38e;},re=(_0x59ca27,_0x34ade0)=>(_0x1022ba,_0x5cc9a8)=>_0x34ade0(_0x1022ba,_0x5cc9a8,_0x59ca27);let Se=class extends a[_0x18d643(0x451)]{constructor(_0xa1e9d0,_0x5b54ac,_0x473a9c,_0x3311ef,_0x1a65f3){const _0x4f76b3=_0x18d643;super(),d(this,_0x4f76b3(0x3cf),[]),(this['_collabCursorController']=_0xa1e9d0,this[_0x4f76b3(0x437)]=_0x5b54ac,this[_0x4f76b3(0x15e)]=_0x473a9c,this[_0x4f76b3(0x213)]=_0x3311ef,this['_themeService']=_0x1a65f3,this[_0x4f76b3(0x1c3)]());}[_0x18d643(0x1c3)](){const _0x215e98=_0x18d643;this[_0x215e98(0x213)][_0x215e98(0x1d9)]['pipe'](T['takeUntil'](this[_0x215e98(0x237)]),T[_0x215e98(0x443)](_0x102ba6=>{const _0x43b548=_0x215e98;if(_0x102ba6){const _0x25a6be=_0x102ba6[_0x43b548(0x31b)]()[_0x43b548(0x30d)]()[_0x43b548(0x3fd)]();return g[_0x43b548(0x446)](this[_0x43b548(0x298)]['getCollabCursors$'](_0x25a6be),this[_0x43b548(0x197)][_0x43b548(0x427)])[_0x43b548(0x2a5)](T[_0x43b548(0x3a3)](([_0x141f28,_0xa62ce3])=>({'skeleton':_0x102ba6,'cursors':[..._0x141f28[_0x43b548(0x2db)]()][_0x43b548(0x2fe)](_0x4d7abf=>({..._0x4d7abf,'color':_0xa62ce3[_0x4d7abf[_0x43b548(0x2ba)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x31d799,cursors:_0xce7f5a})=>{const _0x45a5b2=_0x215e98;this['_removeCollabCursors'](),_0x31d799&&this[_0x45a5b2(0x379)](_0x31d799,_0xce7f5a);});}[_0x18d643(0x379)](_0x52ac47,_0xa08d83){const _0x4f61a8=_0x18d643,_0x347cc6=this[_0x4f61a8(0x258)]();if(_0x347cc6==null)return;const {scene:_0x447e0a,document:_0x43eef2}=_0x347cc6,_0x3645a9=_0xa08d83[_0x4f61a8(0x3a3)](_0x376c99=>new yi(_0x376c99,_0x447e0a,_0x52ac47,_0x43eef2));this[_0x4f61a8(0x3cf)]=_0x3645a9;}[_0x18d643(0x3cd)](){const _0x3bc23b=_0x18d643;this[_0x3bc23b(0x3cf)][_0x3bc23b(0x2eb)](_0x159b25=>_0x159b25['dispose']()),this['_cursors']=[];}[_0x18d643(0x258)](){const _0x39019d=_0x18d643;return y[_0x39019d(0x21e)](this['_univerInstanceService'],this[_0x39019d(0x15e)]);}};Se=ji([a['OnLifecycle'](a[_0x18d643(0x455)][_0x18d643(0x44d)],Se),re(0x0,h[_0x18d643(0x2ef)](J)),re(0x1,a[_0x18d643(0x3d1)]),re(0x2,R[_0x18d643(0x178)]),re(0x3,h[_0x18d643(0x2ef)](y['DocSkeletonManagerService'])),re(0x4,h['Inject'](a[_0x18d643(0x392)]))],Se);var $i=Object[_0x18d643(0x44c)],Hi=Object[_0x18d643(0x334)],xi=(_0x21f1d9,_0x3eb4cf,_0x2056d9,_0x369930)=>{for(var _0x1d159a=_0x369930>0x1?void 0x0:_0x369930?Hi(_0x3eb4cf,_0x2056d9):_0x3eb4cf,_0x24d0f1=_0x21f1d9['length']-0x1,_0x36a114;_0x24d0f1>=0x0;_0x24d0f1--)(_0x36a114=_0x21f1d9[_0x24d0f1])&&(_0x1d159a=(_0x369930?_0x36a114(_0x3eb4cf,_0x2056d9,_0x1d159a):_0x36a114(_0x1d159a))||_0x1d159a);return _0x369930&&_0x1d159a&&$i(_0x3eb4cf,_0x2056d9,_0x1d159a),_0x1d159a;},Le=(_0x37e6c9,_0x3eae35)=>(_0x1f6775,_0x2aac07)=>_0x3eae35(_0x1f6775,_0x2aac07,_0x37e6c9);let Ie=class{constructor(_0x368bc8,_0x1b180f,_0x4afdde){const _0x205a36=_0x18d643;this[_0x205a36(0x2b5)]=_0x368bc8,this[_0x205a36(0x2d7)]=_0x1b180f,this[_0x205a36(0x350)]=_0x4afdde,this[_0x205a36(0x4c5)]();}[_0x18d643(0x4c5)](){const _0xe4cea7=_0x18d643;this[_0xe4cea7(0x2d7)][_0xe4cea7(0x35d)]({'priority':0x1,'interceptor':(_0x2474fa,_0x2755a0)=>_0x2755a0(_0x2474fa)[_0xe4cea7(0x2a5)](g['concatMap'](async _0x49a978=>{const _0x50e29d=_0xe4cea7,_0x1d6884=_0x49a978;if(_0x1d6884['status']===0x191&&window[_0x50e29d(0x2f0)](this[_0x50e29d(0x350)]['t']('auth.needGotoLoginAlert'))){const _0x3cfe8a=window[_0x50e29d(0x134)](window[_0x50e29d(0x2b8)][_0x50e29d(0x212)]);window[_0x50e29d(0x2b8)][_0x50e29d(0x212)]=this[_0x50e29d(0x261)]()+'?url='+_0x3cfe8a;}return _0x1d6884;}))});}[_0x18d643(0x261)](){const _0x2107ac=_0x18d643;var _0x3543d0;return(_0x3543d0=this[_0x2107ac(0x2b5)][_0x2107ac(0x46d)](ft))!=null?_0x3543d0:Jt;}};Ie=xi([Le(0x0,a[_0x18d643(0x14b)]),Le(0x1,h[_0x18d643(0x2ef)](P['HTTPService'])),Le(0x2,h[_0x18d643(0x2ef)](a[_0x18d643(0x30c)]))],Ie);var ki=Object[_0x18d643(0x44c)],Bi=Object[_0x18d643(0x334)],Fi=(_0x5c957,_0x597cf0,_0x357b9e,_0x2bf711)=>{const _0x448f8a=_0x18d643;for(var _0x2f9f9a=_0x2bf711>0x1?void 0x0:_0x2bf711?Bi(_0x597cf0,_0x357b9e):_0x597cf0,_0x51f108=_0x5c957[_0x448f8a(0x42b)]-0x1,_0x3b12be;_0x51f108>=0x0;_0x51f108--)(_0x3b12be=_0x5c957[_0x51f108])&&(_0x2f9f9a=(_0x2bf711?_0x3b12be(_0x597cf0,_0x357b9e,_0x2f9f9a):_0x3b12be(_0x2f9f9a))||_0x2f9f9a);return _0x2bf711&&_0x2f9f9a&&ki(_0x597cf0,_0x357b9e,_0x2f9f9a),_0x2f9f9a;},rt=(_0x2b5d57,_0x11703e)=>(_0x5e874b,_0x3f7ccc)=>_0x11703e(_0x5e874b,_0x3f7ccc,_0x2b5d57);const Lt=_0x18d643(0x2a3),Vi=_0x18d643(0x200);exports[_0x18d643(0x1e8)]=class{constructor(_0xa769e7,_0x266274){const _0x11bd74=_0x18d643;this[_0x11bd74(0x257)]=_0xa769e7,this[_0x11bd74(0x2b5)]=_0x266274;}[_0x18d643(0x37f)](){const _0x371c51=_0x18d643;var _0x19f8e4;return(_0x19f8e4=this[_0x371c51(0x2b5)][_0x371c51(0x46d)](Lt))!=null?_0x19f8e4:Vi;}async['create'](_0x341dc0){const _0x15d911=_0x18d643,_0x1e532b=this[_0x15d911(0x37f)]()+'/'+_0x341dc0['objectType']+_0x15d911(0x304);return(await this['_HTTPService']['post'](_0x1e532b,{'body':_0x341dc0}))[_0x15d911(0x341)]['objectID']||'';}async[_0x18d643(0x179)](_0x5f561d){const _0x18ec93=_0x18d643,_0x45e40d=this['_getAPIPrefixPath']()+_0x18ec93(0x4c6);return(await this[_0x18ec93(0x257)][_0x18ec93(0x312)](_0x45e40d,{'body':_0x5f561d}))[_0x18ec93(0x341)][_0x18ec93(0x4b2)];}async[_0x18d643(0x309)](_0x4031f2){const _0x61c79=_0x18d643,_0x390981=this['_getAPIPrefixPath']()+'/'+_0x4031f2['objectType']+_0x61c79(0x4bc)+_0x4031f2[_0x61c79(0x3bb)];await this[_0x61c79(0x257)]['put'](_0x390981,{'body':_0x4031f2});}async[_0x18d643(0x165)](_0x43c4d5){const _0x2068a4=_0x18d643,_0x2cee49=this[_0x2068a4(0x37f)]()+'/'+_0x43c4d5[_0x2068a4(0x22f)]+_0x2068a4(0x4bc)+_0x43c4d5[_0x2068a4(0x3bb)]+_0x2068a4(0x396);return(await this['_HTTPService'][_0x2068a4(0x312)](_0x2cee49,{'body':_0x43c4d5}))['body'][_0x2068a4(0x3c3)];}async[_0x18d643(0x227)](_0x37d176){const _0x29c8df=_0x18d643,_0x53b67d=this['_getAPIPrefixPath']()+_0x29c8df(0x243);return(await this[_0x29c8df(0x257)]['post'](_0x53b67d,{'body':{'requests':_0x37d176}}))[_0x29c8df(0x341)][_0x29c8df(0x15f)];}async[_0x18d643(0x211)](_0x1d1338){const _0x5301d2=_0x18d643,_0x2739c7=this[_0x5301d2(0x37f)]()+'/'+_0x1d1338['objectType']+_0x5301d2(0x2ac),_0x5c1457=await this['_HTTPService'][_0x5301d2(0x312)](_0x2739c7,{'body':_0x1d1338});return{'roles':_0x5c1457['body'][_0x5301d2(0x277)],'actions':_0x5c1457[_0x5301d2(0x341)][_0x5301d2(0x3c3)]};}async[_0x18d643(0x320)](_0x2cc31c){const _0x10f0ef=_0x18d643,_0x25109b=this[_0x10f0ef(0x37f)]()+_0x10f0ef(0x18c);await this['_HTTPService'][_0x10f0ef(0x35c)](_0x25109b,{'params':{'collaboratorID':_0x2cc31c[_0x10f0ef(0x393)],'objectID':_0x2cc31c[_0x10f0ef(0x3bb)],'unitID':_0x2cc31c[_0x10f0ef(0x432)]}});}async[_0x18d643(0x43f)](_0x5dac77){const _0x2a853b=_0x18d643,_0x3badcd=this[_0x2a853b(0x37f)]()+_0x2a853b(0x18c);await this[_0x2a853b(0x257)][_0x2a853b(0x296)](_0x3badcd,{'body':_0x5dac77});}async[_0x18d643(0x3bf)](_0x264f4d){const _0x2f7edf=_0x18d643,_0x107d55=this[_0x2f7edf(0x37f)]()+_0x2f7edf(0x18c);await this['_HTTPService'][_0x2f7edf(0x312)](_0x107d55,{'body':_0x264f4d});}async[_0x18d643(0x403)](_0x2311ce){const _0x51db7f=_0x18d643,_0x5c2c4b=this[_0x51db7f(0x37f)]()+_0x51db7f(0x18c);return(await this[_0x51db7f(0x257)][_0x51db7f(0x1bc)](_0x5c2c4b,{'params':{'objectID':_0x2311ce[_0x51db7f(0x3bb)],'unitID':_0x2311ce[_0x51db7f(0x432)]}}))[_0x51db7f(0x341)][_0x51db7f(0x2ed)];}async['putCollaborators'](_0x396817){const _0x10c8ff=_0x18d643,_0xe12f0d=this[_0x10c8ff(0x37f)]()+_0x10c8ff(0x18c);await this[_0x10c8ff(0x257)]['put'](_0xe12f0d,{'body':_0x396817});}},exports[_0x18d643(0x1e8)]=Fi([rt(0x0,h['Inject'](P[_0x18d643(0x424)])),rt(0x1,h['Inject'](a['IConfigService']))],exports[_0x18d643(0x1e8)]);var Wi=Object[_0x18d643(0x44c)],Gi=Object[_0x18d643(0x334)],Yi=(_0x1e1ce5,_0x56bfc7,_0x1b1f64,_0xd580b1)=>{for(var _0x4dc3c8=_0xd580b1>0x1?void 0x0:_0xd580b1?Gi(_0x56bfc7,_0x1b1f64):_0x56bfc7,_0xd12b60=_0x1e1ce5['length']-0x1,_0x3e0a80;_0xd12b60>=0x0;_0xd12b60--)(_0x3e0a80=_0x1e1ce5[_0xd12b60])&&(_0x4dc3c8=(_0xd580b1?_0x3e0a80(_0x56bfc7,_0x1b1f64,_0x4dc3c8):_0x3e0a80(_0x4dc3c8))||_0x4dc3c8);return _0xd580b1&&_0x4dc3c8&&Wi(_0x56bfc7,_0x1b1f64,_0x4dc3c8),_0x4dc3c8;},ot=(_0x33e56b,_0x206288)=>(_0x40a33a,_0x269a5d)=>_0x206288(_0x40a33a,_0x269a5d,_0x33e56b);const Ki=[_0x18d643(0x49e),_0x18d643(0x143),_0x18d643(0x48e),'image/gif',_0x18d643(0x2da)],Xi=0x5*0x400*0x400,qi=_0x18d643(0x358),zi=_0x18d643(0x283),Ji=_0x18d643(0x343),Zi=_0x18d643(0x206);let $e=class{constructor(_0xdb726e,_0x186b71){const _0x1bbd39=_0x18d643;d(this,'_waitCount',0x0),d(this,_0x1bbd39(0x27a),new g['Subject']()),d(this,_0x1bbd39(0x49c),this[_0x1bbd39(0x27a)]),d(this,'_imageSourceCache',new Map()),(this['_httpService']=_0xdb726e,this['_configService']=_0x186b71);}[_0x18d643(0x46c)](_0x1e1b0d){this['_waitCount']=_0x1e1b0d,this['_change$']['next'](_0x1e1b0d);}[_0x18d643(0x327)](_0x5a90d8,_0x1a3210){const _0x24cdfd=_0x18d643;if(_0x1a3210===A[_0x24cdfd(0x428)][_0x24cdfd(0x346)]){const _0x1f9f2c=new Image();return _0x1f9f2c[_0x24cdfd(0x25e)]=_0x5a90d8,_0x1f9f2c;}return this[_0x24cdfd(0x416)][_0x24cdfd(0x1bc)](_0x5a90d8);}[_0x18d643(0x2fd)](_0x284c39,_0x3fb691,_0x1e6a78){const _0x1845f7=_0x18d643;_0x3fb691===A[_0x1845f7(0x428)][_0x1845f7(0x346)]||_0x1e6a78==null||this[_0x1845f7(0x416)][_0x1845f7(0x3db)](_0x284c39,_0x1e6a78);}async[_0x18d643(0x3a2)](_0x30c915){const _0x5dce1d=_0x18d643;try{const _0x242448=this[_0x5dce1d(0x24e)](this[_0x5dce1d(0x1c6)](),''+_0x30c915),_0x590270=(await this['_httpService'][_0x5dce1d(0x1bc)](_0x242448))[_0x5dce1d(0x341)];return _0x590270['error']&&_0x590270[_0x5dce1d(0x11e)]['code']===mt['OK']?Promise[_0x5dce1d(0x13f)](_0x590270[_0x5dce1d(0x45d)]):Promise[_0x5dce1d(0x26c)](_0x590270['error']);}catch(_0x5cefa0){return Promise['reject'](_0x5cefa0);}}async['saveImage'](_0x345a4c){const _0x136070=_0x18d643;let _0x31d50f='';if(!Ki[_0x136070(0x4a1)](_0x345a4c[_0x136070(0x3a7)]))return this[_0x136070(0x3f9)](),Promise[_0x136070(0x26c)](new Error(A[_0x136070(0x490)]['ERROR_IMAGE_TYPE']));if(_0x345a4c['size']>Xi)return this[_0x136070(0x3f9)](),Promise['reject'](new Error(A['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{const _0x39df89=new FormData();_0x39df89[_0x136070(0x3f7)](_0x136070(0x231),_0x345a4c);const _0xf58c45=this[_0x136070(0x406)]()+_0x136070(0x47f)+_0x345a4c['size'][_0x136070(0x1a8)](),_0x3c8f70=await(await fetch(_0xf58c45,{'method':'POST','body':_0x39df89}))['json']();if(typeof _0x3c8f70[_0x136070(0x181)]!='string')return this['_decreaseWaiting'](),Promise[_0x136070(0x26c)](new Error(A[_0x136070(0x490)][_0x136070(0x168)]));_0x31d50f=_0x3c8f70[_0x136070(0x181)];}catch{return this[_0x136070(0x3f9)](),Promise[_0x136070(0x26c)](new Error(A[_0x136070(0x490)][_0x136070(0x168)]));}return new Promise((_0x1e0b93,_0xbca01c)=>{const _0x4592f9=_0x136070,_0x36e5a5=new FileReader();_0x36e5a5[_0x4592f9(0x2b0)](_0x345a4c),_0x36e5a5['onload']=_0x2a5649=>{const _0x49c9a1=_0x4592f9;var _0x35ef23;const _0x5cbd88=(_0x35ef23=_0x2a5649['target'])==null?void 0x0:_0x35ef23[_0x49c9a1(0x306)];if(_0x5cbd88==null){this['_decreaseWaiting'](),_0xbca01c(new Error(A['ImageUploadStatusType']['ERROR_IMAGE']));return;}const _0x3183c7=a[_0x49c9a1(0x2e7)][_0x49c9a1(0x172)](0x6);_0x1e0b93({'imageId':_0x3183c7,'imageSourceType':A[_0x49c9a1(0x428)][_0x49c9a1(0x21d)],'source':_0x31d50f,'base64Cache':_0x5cbd88,'status':A[_0x49c9a1(0x490)]['SUCCUSS']}),this[_0x49c9a1(0x3f9)]();};});}['_getUploadFileURL'](){const _0x5d7918=_0x18d643;var _0x3b309d;return(_0x3b309d=this['_configService'][_0x5d7918(0x46d)](qi))!=null?_0x3b309d:zi;}[_0x18d643(0x1c6)](){var _0xbc649c;return(_0xbc649c=this['_configService']['getConfig'](Ji))!=null?_0xbc649c:Zi;}[_0x18d643(0x24e)](_0x23099e,_0x5c223b){const _0x2c8a21=_0x18d643;return _0x23099e[_0x2c8a21(0x1cf)](_0x2c8a21(0x315),_0x5c223b);}['_decreaseWaiting'](){const _0x6d0927=_0x18d643;this[_0x6d0927(0x1cb)]-=0x1,this[_0x6d0927(0x27a)][_0x6d0927(0x33b)](this[_0x6d0927(0x1cb)]);}};$e=Yi([ot(0x0,h[_0x18d643(0x2ef)](P[_0x18d643(0x424)])),ot(0x1,a['IConfigService'])],$e);var Pt=Object[_0x18d643(0x44c)],Qi=Object[_0x18d643(0x334)],en=(_0x2aed38,_0x13d83f,_0x1506f9)=>_0x13d83f in _0x2aed38?Pt(_0x2aed38,_0x13d83f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1506f9}):_0x2aed38[_0x13d83f]=_0x1506f9,tn=(_0x4f6d15,_0x36ccf6,_0x225bc7,_0x93804)=>{const _0x41ad75=_0x18d643;for(var _0xd76c96=_0x93804>0x1?void 0x0:_0x93804?Qi(_0x36ccf6,_0x225bc7):_0x36ccf6,_0x4ba370=_0x4f6d15[_0x41ad75(0x42b)]-0x1,_0x14c3fd;_0x4ba370>=0x0;_0x4ba370--)(_0x14c3fd=_0x4f6d15[_0x4ba370])&&(_0xd76c96=(_0x93804?_0x14c3fd(_0x36ccf6,_0x225bc7,_0xd76c96):_0x14c3fd(_0xd76c96))||_0xd76c96);return _0x93804&&_0xd76c96&&Pt(_0x36ccf6,_0x225bc7,_0xd76c96),_0xd76c96;},at=(_0x3deb30,_0x139b04)=>(_0x1a7545,_0x4ee6fc)=>_0x139b04(_0x1a7545,_0x4ee6fc,_0x3deb30),sn=(_0x1f575a,_0x28a1c7,_0x1e4ae1)=>en(_0x1f575a,_0x28a1c7+'',_0x1e4ae1);const nn=_0x18d643(0x1f6);exports[_0x18d643(0x299)]=class extends a[_0x18d643(0x3b1)]{constructor(_0x1764b6,_0x125d09,_0x2bba69){const _0x455898=_0x18d643;super(),this[_0x455898(0x30e)]=_0x1764b6,this['_logService']=_0x125d09,this[_0x455898(0x42e)]=_0x2bba69;}[_0x18d643(0x21b)](_0x74da68){const _0x4bed23=_0x18d643;var _0x1e689a,_0x1a50c7,_0x2ea2d6,_0x13d0d2,_0x13a295;_0x74da68['has'](a[_0x4bed23(0x4b7)])&&this[_0x4bed23(0x132)][_0x4bed23(0x11e)](_0x4bed23(0x4cc),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x37b085=[[a[_0x4bed23(0x4b7)],{'useClass':je}],[exports[_0x4bed23(0x457)]],[We],[P[_0x4bed23(0x424)]],[Ye,{'useClass':wt}],[G],[exports['LocalCacheService']],[P['WebSocketService']],[fe],[ge],[ve],[Ve],[Ie],[Fe],[Be,{'useClass':(_0x1a50c7=(_0x1e689a=this[_0x4bed23(0x30e)])==null?void 0x0:_0x1e689a[_0x4bed23(0x1ce)])!=null?_0x1a50c7:exports[_0x4bed23(0x4cf)]}],[P[_0x4bed23(0x362)],{'useClass':P['XHRHTTPImplementation']}],[a['ISnapshotServerService'],{'useClass':Ae}],[a[_0x4bed23(0x353)],{'useClass':exports['AuthzIoHttpService']}],[A[_0x4bed23(0x1f1)],{'useClass':$e}],[exports['CollaborationController']],[exports[_0x4bed23(0x32f)]],[exports['DesktopCollaborationStatusDisplayController']],[de],[J]];(_0x2ea2d6=this[_0x4bed23(0x30e)])!=null&&_0x2ea2d6['enableSingleActiveInstanceLock']&&_0x37b085[_0x4bed23(0x28b)]([pe,{'useClass':_s}]),((_0x13d0d2=this[_0x4bed23(0x30e)])==null?void 0x0:_0x13d0d2[_0x4bed23(0x1be)])==null||this[_0x4bed23(0x30e)][_0x4bed23(0x1be)][_0x4bed23(0x4a1)](a[_0x4bed23(0x17c)]['UNIVER_SHEET'])?_0x37b085['push']([ue]):this['_config'][_0x4bed23(0x1be)][_0x4bed23(0x4a1)](a[_0x4bed23(0x17c)][_0x4bed23(0x336)])&&_0x37b085[_0x4bed23(0x28b)]([Se]),_0x37b085=a[_0x4bed23(0x15d)](_0x37b085,(_0x13a295=this[_0x4bed23(0x30e)])==null?void 0x0:_0x13a295[_0x4bed23(0x488)]),_0x37b085[_0x4bed23(0x2eb)](_0x100410=>_0x74da68[_0x4bed23(0x1f2)](_0x100410)),_0x74da68[_0x4bed23(0x1bc)](P[_0x4bed23(0x424)])[_0x4bed23(0x35d)]({'priority':0x14,'interceptor':P[_0x4bed23(0x133)]({'maxParallel':0x6})}),this[_0x4bed23(0x317)]();}[_0x18d643(0x317)](){const _0xf3869e=_0x18d643;var _0x23a3c7,_0x468e0b;(_0x23a3c7=this[_0xf3869e(0x30e)])!=null&&_0x23a3c7[_0xf3869e(0x4cd)]||this[_0xf3869e(0x42e)]['get'](exports[_0xf3869e(0x3e2)])[_0xf3869e(0x1bb)](),(_0x468e0b=this[_0xf3869e(0x30e)])!=null&&_0x468e0b[_0xf3869e(0x126)]&&this[_0xf3869e(0x42e)][_0xf3869e(0x1bc)](Ie);}},sn(exports[_0x18d643(0x299)],_0x18d643(0x2a1),nn),exports[_0x18d643(0x299)]=tn([a[_0x18d643(0x259)](u[_0x18d643(0x2c6)]),at(0x1,a[_0x18d643(0x31e)]),at(0x2,h['Inject'](h[_0x18d643(0x463)]))],exports[_0x18d643(0x299)]),exports['AUTHZ_URL_KEY']=Lt,exports[_0x18d643(0x1df)]=gt,exports[_0x18d643(0x43e)]=ut,exports['CollaborationStatus']=U,exports[_0x18d643(0x3dc)]=Ut,exports['CommentService']=Fe,exports[_0x18d643(0x2cb)]=dt,exports[_0x18d643(0x2c2)]=xe,exports['ICollaborationSocketService']=Be,exports['IURLService']=Ye,exports[_0x18d643(0x339)]=vt,exports[_0x18d643(0x34a)]=ft,exports[_0x18d643(0x4c8)]=_t,exports[_0x18d643(0x3b9)]=lt,exports[_0x18d643(0x215)]=ht,exports[_0x18d643(0x24b)]=W,exports[_0x18d643(0x247)]=wt,exports[_0x18d643(0x468)]=It,exports[_0x18d643(0x39a)]=pt;
|
1
|
+
'use strict';const _0x364156=_0x17ba;(function(_0x3dd218,_0x28d8fa){const _0x7a8709=_0x17ba,_0x2795f2=_0x3dd218();while(!![]){try{const _0x3e98d4=-parseInt(_0x7a8709(0x426))/0x1+-parseInt(_0x7a8709(0x1d0))/0x2*(-parseInt(_0x7a8709(0x4dd))/0x3)+parseInt(_0x7a8709(0x3e4))/0x4+parseInt(_0x7a8709(0x355))/0x5*(-parseInt(_0x7a8709(0x1ca))/0x6)+parseInt(_0x7a8709(0x4e7))/0x7+parseInt(_0x7a8709(0x3fb))/0x8*(parseInt(_0x7a8709(0x573))/0x9)+-parseInt(_0x7a8709(0x4ad))/0xa;if(_0x3e98d4===_0x28d8fa)break;else _0x2795f2['push'](_0x2795f2['shift']());}catch(_0x4ad49c){_0x2795f2['push'](_0x2795f2['shift']());}}}(_0x5d0e,0x36176));var xt=Object['defineProperty'],kt=(_0x11a233,_0x239ca4,_0x57e3cf)=>_0x239ca4 in _0x11a233?xt(_0x11a233,_0x239ca4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57e3cf}):_0x11a233[_0x239ca4]=_0x57e3cf,d=(_0x59fb74,_0x3715cf,_0x2a13b2)=>kt(_0x59fb74,typeof _0x3715cf!='symbol'?_0x3715cf+'':_0x3715cf,_0x2a13b2);Object[_0x364156(0x53c)](exports,Symbol[_0x364156(0x353)],{'value':_0x364156(0x2e5)});const a=require('@univerjs/core'),E=require(_0x364156(0x333)),Q=require('@univerjs/design'),M=require(_0x364156(0x3bb)),u=require(_0x364156(0x37f)),h=require('@wendellhu/redi'),g=require(_0x364156(0x47b)),C=require(_0x364156(0x3de)),N=require('@univerjs/docs'),y=require(_0x364156(0x437)),A=require(_0x364156(0x32e)),qe=require(_0x364156(0x45b)),ke=require('lodash/debounce'),R=require(_0x364156(0x56a)),z=require(_0x364156(0x223)),ht=require(_0x364156(0x1ed)),w=require(_0x364156(0x404)),Bt=require(_0x364156(0x586)),Ft=require(_0x364156(0x588)),_t='SNAPSHOT_SERVER_URL_KEY',Vt=_0x364156(0x1d9),ut=_0x364156(0x4ec),dt=_0x364156(0x4eb),Wt=0x7d0,St=_0x364156(0x273),Gt=_0x364156(0x52c),vt='HEARTBEAT_INTERVAL',Yt=0x7530,Be=_0x364156(0x4f4),gt=0x2710,Kt=_0x364156(0x496),Xt=0x4e20,qt=_0x364156(0x217),Jt=0x3,ft=_0x364156(0x584),zt=0x3e8,mt='COLLAB_SUBMIT_CHANGESET_URL',Zt='/universer-api/comb',It='LOGIN_URL_KEY',Qt=_0x364156(0x27e);var pt=(_0x2eb91d=>(_0x2eb91d[_0x2eb91d[_0x364156(0x556)]=0x0]=_0x364156(0x556),_0x2eb91d[_0x2eb91d['OK']=0x1]='OK',_0x2eb91d[_0x2eb91d[_0x364156(0x242)]=0x2]='INTERNAL_ERROR',_0x2eb91d[_0x2eb91d[_0x364156(0x527)]=0x3]=_0x364156(0x527),_0x2eb91d[_0x2eb91d['NOT_FOUND']=0x4]=_0x364156(0x2bf),_0x2eb91d[_0x2eb91d[_0x364156(0x1f8)]=0x5]='UNAUTHENTICATED',_0x2eb91d[_0x2eb91d[_0x364156(0x2da)]=0x6]=_0x364156(0x2da),_0x2eb91d[_0x2eb91d[_0x364156(0x43e)]=0x7]=_0x364156(0x43e),_0x2eb91d[_0x2eb91d['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x2eb91d[_0x2eb91d[_0x364156(0x3a5)]=0x9]='COMPLETION_FINISHED',_0x2eb91d[_0x2eb91d['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x364156(0x551),_0x2eb91d[_0x2eb91d[_0x364156(0x29f)]=0x1771]=_0x364156(0x29f),_0x2eb91d[_0x2eb91d['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x364156(0x35a),_0x2eb91d[_0x2eb91d[_0x364156(0x474)]=0x1b59]=_0x364156(0x474),_0x2eb91d[_0x2eb91d[_0x364156(0x416)]=0x1b5a]=_0x364156(0x416),_0x2eb91d[_0x2eb91d[_0x364156(0x376)]=0x1b5b]=_0x364156(0x376),_0x2eb91d[_0x2eb91d[_0x364156(0x235)]=0x1b5c]=_0x364156(0x235),_0x2eb91d[_0x2eb91d[_0x364156(0x248)]=0x1f41]=_0x364156(0x248),_0x2eb91d[_0x2eb91d['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x364156(0x2de),_0x2eb91d[_0x2eb91d[_0x364156(0x37a)]=0x232a]=_0x364156(0x37a),_0x2eb91d[_0x2eb91d[_0x364156(0x2e9)]=0x232b]=_0x364156(0x2e9),_0x2eb91d[_0x2eb91d['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x364156(0x504),_0x2eb91d[_0x2eb91d[_0x364156(0x50d)]=0x232d]=_0x364156(0x50d),_0x2eb91d[_0x2eb91d[_0x364156(0x4ab)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x2eb91d[_0x2eb91d[_0x364156(0x572)]=0x2712]=_0x364156(0x572),_0x2eb91d[_0x2eb91d[_0x364156(0x519)]=-0x1]=_0x364156(0x519),_0x2eb91d))(pt||{}),$=(_0x1da7a1=>(_0x1da7a1[_0x1da7a1[_0x364156(0x462)]=0x0]='UNIVER_UNKNOWN',_0x1da7a1[_0x1da7a1['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x1da7a1[_0x1da7a1[_0x364156(0x350)]=0x2]=_0x364156(0x350),_0x1da7a1[_0x1da7a1[_0x364156(0x47f)]=0x3]=_0x364156(0x47f),_0x1da7a1[_0x1da7a1['UNRECOGNIZED']=-0x1]=_0x364156(0x519),_0x1da7a1))($||{}),T=(_0xf7f543=>(_0xf7f543[_0xf7f543[_0x364156(0x46b)]=0x0]=_0x364156(0x46b),_0xf7f543[_0xf7f543[_0x364156(0x1f1)]=0x1]='HELLO',_0xf7f543[_0xf7f543['JOIN']=0x2]=_0x364156(0x335),_0xf7f543[_0xf7f543[_0x364156(0x227)]=0x3]=_0x364156(0x227),_0xf7f543[_0xf7f543[_0x364156(0x471)]=0x4]=_0x364156(0x471),_0xf7f543[_0xf7f543['HEARTBEAT']=0x5]=_0x364156(0x22d),_0xf7f543[_0xf7f543[_0x364156(0x35d)]=0x6]='RECV',_0xf7f543[_0xf7f543['UNRECOGNIZED']=-0x1]=_0x364156(0x519),_0xf7f543))(T||{}),Fe=(_0x5e37e7=>(_0x5e37e7[_0x5e37e7[_0x364156(0x23f)]=0x0]=_0x364156(0x23f),_0x5e37e7[_0x5e37e7['OK']=0x1]='OK',_0x5e37e7[_0x5e37e7['FAIL']=0x2]=_0x364156(0x3c8),_0x5e37e7[_0x5e37e7[_0x364156(0x519)]=-0x1]=_0x364156(0x519),_0x5e37e7))(Fe||{}),es=Object[_0x364156(0x53c)],ts=Object[_0x364156(0x55c)],ss=(_0x150ef6,_0x439805,_0x45fc74,_0x20047c)=>{const _0x10911d=_0x364156;for(var _0x22ed9f=_0x20047c>0x1?void 0x0:_0x20047c?ts(_0x439805,_0x45fc74):_0x439805,_0x28649d=_0x150ef6[_0x10911d(0x37d)]-0x1,_0x5b208a;_0x28649d>=0x0;_0x28649d--)(_0x5b208a=_0x150ef6[_0x28649d])&&(_0x22ed9f=(_0x20047c?_0x5b208a(_0x439805,_0x45fc74,_0x22ed9f):_0x5b208a(_0x22ed9f))||_0x22ed9f);return _0x20047c&&_0x22ed9f&&es(_0x439805,_0x45fc74,_0x22ed9f),_0x22ed9f;},Je=(_0x37a81b,_0x1e71ef)=>(_0x2a790b,_0x191d35)=>_0x1e71ef(_0x2a790b,_0x191d35,_0x37a81b);let G=class extends a[_0x364156(0x262)]{constructor(_0x4e69d8,_0x2364c1){const _0x5aaa3c=_0x364156;super(),d(this,_0x5aaa3c(0x22a),new Map()),(this[_0x5aaa3c(0x53b)]=_0x4e69d8,this[_0x5aaa3c(0x34e)]=_0x2364c1,this[_0x5aaa3c(0x1e6)](a[_0x5aaa3c(0x4a1)](g[_0x5aaa3c(0x3ba)](this[_0x5aaa3c(0x53b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x5aaa3c(0x350)])[_0x5aaa3c(0x1f5)](C[_0x5aaa3c(0x27d)](_0x4fee8e=>_0x4fee8e[_0x5aaa3c(0x38b)]())),this[_0x5aaa3c(0x53b)][_0x5aaa3c(0x2d4)](a[_0x5aaa3c(0x38c)][_0x5aaa3c(0x287)])['pipe'](C['map'](_0x5366ef=>_0x5366ef[_0x5aaa3c(0x38b)]())),this[_0x5aaa3c(0x53b)][_0x5aaa3c(0x2d4)](a['UniverInstanceType']['UNIVER_SLIDE'])['pipe'](C['map'](_0x124abb=>_0x124abb[_0x5aaa3c(0x38b)]())))[_0x5aaa3c(0x4f5)](_0x2d04ac=>this[_0x5aaa3c(0x2fd)](_0x2d04ac)))));}[_0x364156(0x57f)](_0x47ddfb){const _0x464b01=_0x364156;this[_0x464b01(0x34e)]['setCurrentUser'](_0x47ddfb);}[_0x364156(0x236)](){const _0x18cdab=_0x364156;return this[_0x18cdab(0x34e)][_0x18cdab(0x236)]();}[_0x364156(0x2c6)](_0x4e47d3,_0x234c1a){const _0x19e0c8=_0x364156;let _0x483a1e=this['_roomMembers'][_0x19e0c8(0x3f4)](_0x4e47d3);_0x483a1e||(_0x483a1e=new is(),this[_0x19e0c8(0x22a)]['set'](_0x4e47d3,_0x483a1e)),_0x483a1e['updateMember'](_0x234c1a);}[_0x364156(0x3a0)](_0x4893cd,_0x199950){const _0x5bc13f=_0x364156,_0x1e8d00=this[_0x5bc13f(0x22a)][_0x5bc13f(0x3f4)](_0x4893cd);_0x1e8d00&&_0x1e8d00[_0x5bc13f(0x3a0)](_0x199950);}['getRoom'](_0x5b62a7){const _0x33d012=_0x364156;return this[_0x33d012(0x22a)][_0x33d012(0x3f4)](_0x5b62a7);}[_0x364156(0x2b3)](_0x248652,_0x1577b9){const _0x5e62ba=_0x364156,_0xa9b0e2=this[_0x5e62ba(0x22a)]['get'](_0x248652);if(_0xa9b0e2)return _0xa9b0e2[_0x5e62ba(0x2b3)](_0x1577b9);}[_0x364156(0x2fd)](_0xe55eeb){const _0x59b5a9=_0x364156,_0x2da8ef=this[_0x59b5a9(0x22a)][_0x59b5a9(0x3f4)](_0xe55eeb);_0x2da8ef&&(_0x2da8ef['dispose'](),this[_0x59b5a9(0x22a)][_0x59b5a9(0x4b0)](_0xe55eeb));}[_0x364156(0x266)](){const _0x33a323=_0x364156;this['_roomMembers'][_0x33a323(0x2b1)](_0x37465c=>_0x37465c[_0x33a323(0x266)]()),this['_roomMembers'][_0x33a323(0x23d)]();}};G=ss([Je(0x0,a[_0x364156(0x58c)]),Je(0x1,h[_0x364156(0x24e)](a[_0x364156(0x2f3)]))],G);class is extends a[_0x364156(0x262)]{constructor(){super(...arguments),d(this,'_members',new Map());}['dispose'](){const _0x4877fb=_0x364156;this['_members'][_0x4877fb(0x23d)]();}[_0x364156(0x2c6)](_0x3149cd){const _0x52ba1f=_0x364156;this[_0x52ba1f(0x4bf)][_0x52ba1f(0x490)](_0x3149cd[_0x52ba1f(0x4a0)],_0x3149cd);}[_0x364156(0x3a0)](_0x24c814){const _0x1a02f9=_0x364156;this[_0x1a02f9(0x4bf)][_0x1a02f9(0x4b0)](_0x24c814);}['getMember'](_0x243b5d){const _0x4b61d5=_0x364156;return this[_0x4b61d5(0x4bf)][_0x4b61d5(0x3f4)](_0x243b5d);}}function Et(_0x26a622){const _0x353c38=_0x364156;var _0x39ed05,_0x52fff8,_0x10b613,_0x4da6c4;const _0x36791b=_0x26a622[_0x353c38(0x45d)],_0x6bed88=JSON[_0x353c38(0x42a)](_0x36791b);switch(_0x6bed88[_0x353c38(0x28b)]){case T[_0x353c38(0x22d)]:case T['HELLO']:{const _0x17b315=_0x6bed88[_0x353c38(0x3b4)];return{..._0x6bed88,'data':_0x17b315,'cmd':_0x6bed88['cmd']};}case T[_0x353c38(0x335)]:{const _0x5bc7b6=_0x6bed88[_0x353c38(0x373)];return{..._0x6bed88,'data':_0x5bc7b6,'cmd':_0x6bed88[_0x353c38(0x28b)]};}case T['RECV']:{const _0x4c5369=_0x6bed88['collaMsg'];switch(_0x4c5369['eventID']){case u[_0x353c38(0x3ac)][_0x353c38(0x224)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x39ed05=_0x4c5369[_0x353c38(0x303)])==null?void 0x0:_0x39ed05['cs']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x3aa)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x52fff8=_0x4c5369[_0x353c38(0x282)])==null?void 0x0:_0x52fff8['cs']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x410)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x10b613=_0x4c5369['newCsEvent'])==null?void 0x0:_0x10b613['cs']},'cmd':_0x6bed88['cmd']};case u[_0x353c38(0x3ac)][_0x353c38(0x4da)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':(_0x4da6c4=_0x4c5369[_0x353c38(0x529)])==null?void 0x0:_0x4da6c4['cs']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x2c3)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x49a)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)]['USERS_ENTER']:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x2e8)]},'cmd':_0x6bed88['cmd']};case u[_0x353c38(0x3ac)][_0x353c38(0x41f)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369['leaveEvent']},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x286)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x23a)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x513)]:case u[_0x353c38(0x3ac)][_0x353c38(0x578)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x43f)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)]['LIVESHARE_TERMINATE']:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x23a)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x253)]:return{..._0x6bed88,'data':_0x4c5369,'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x33d)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x1da)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u[_0x353c38(0x3ac)][_0x353c38(0x274)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x589)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};case u['CollaborationEvent'][_0x353c38(0x2fa)]:return{..._0x6bed88,'data':{..._0x4c5369,'data':_0x4c5369[_0x353c38(0x3cd)]},'cmd':_0x6bed88[_0x353c38(0x28b)]};default:return _0x6bed88;}}default:return _0x6bed88;}}function Ct(_0x2b2346){const _0x1f2411=_0x364156;switch(_0x2b2346['cmd']){case T[_0x1f2411(0x22d)]:case T[_0x1f2411(0x1f1)]:return JSON[_0x1f2411(0x2b6)]({'cmd':_0x2b2346['cmd'],'routeKey':_0x2b2346['routeKey']});case T[_0x1f2411(0x471)]:{let _0xdec75;switch(_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x321)]){case u['CollaborationEvent']['UPDATE_CURSOR']:{_0xdec75={'eventID':u['CollaborationEvent']['UPDATE_CURSOR'],'updateCursorEvent':_0x2b2346['data']['data']};break;}case u['CollaborationEvent'][_0x1f2411(0x41f)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x41f)],'leaveEvent':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)]['USERS_ENTER']:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x562)],'joinEvent':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)]['LIVESHARE_NEW_HOST']:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x286)],'liveShareNewHost':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u['CollaborationEvent'][_0x1f2411(0x578)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x578)],'liveShareOperation':_0x2b2346[_0x1f2411(0x45d)]['data']};break;}case u[_0x1f2411(0x3ac)][_0x1f2411(0x2d2)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x2d2)],'liveShareTerminate':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)][_0x1f2411(0x386)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)][_0x1f2411(0x386)],'liveShareRequestHost':_0x2b2346[_0x1f2411(0x45d)][_0x1f2411(0x45d)]};break;}case u[_0x1f2411(0x3ac)][_0x1f2411(0x513)]:{_0xdec75={'eventID':u[_0x1f2411(0x3ac)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0xdec75={'eventID':_0x2b2346[_0x1f2411(0x45d)]['eventID']};}return JSON['stringify']({'cmd':_0x2b2346[_0x1f2411(0x28b)],'routeKey':_0x2b2346[_0x1f2411(0x4f6)],'collaMsg':_0xdec75});}case T[_0x1f2411(0x335)]:return JSON[_0x1f2411(0x2b6)]({'cmd':_0x2b2346[_0x1f2411(0x28b)],'routeKey':_0x2b2346[_0x1f2411(0x4f6)],'joinReq':_0x2b2346['data']});case T[_0x1f2411(0x227)]:return JSON[_0x1f2411(0x2b6)]({'cmd':_0x2b2346[_0x1f2411(0x28b)],'routeKey':_0x2b2346[_0x1f2411(0x4f6)],'leaveReq':_0x2b2346[_0x1f2411(0x45d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var ns=Object[_0x364156(0x53c)],rs=Object[_0x364156(0x55c)],os=(_0x2d6d5e,_0x4a2e85,_0x1934eb,_0x5752d5)=>{for(var _0x55b561=_0x5752d5>0x1?void 0x0:_0x5752d5?rs(_0x4a2e85,_0x1934eb):_0x4a2e85,_0x4be7f6=_0x2d6d5e['length']-0x1,_0x1f4d53;_0x4be7f6>=0x0;_0x4be7f6--)(_0x1f4d53=_0x2d6d5e[_0x4be7f6])&&(_0x55b561=(_0x5752d5?_0x1f4d53(_0x4a2e85,_0x1934eb,_0x55b561):_0x1f4d53(_0x55b561))||_0x55b561);return _0x5752d5&&_0x55b561&&ns(_0x4a2e85,_0x1934eb,_0x55b561),_0x55b561;},se=(_0x234cfe,_0x4456dc)=>(_0x46ffd6,_0x2e3747)=>_0x4456dc(_0x46ffd6,_0x2e3747,_0x234cfe);const Ve=h[_0x364156(0x493)](_0x364156(0x4f7));function as(_0x187ede,_0x3f2554,_0x3849d8){const _0x121498=_0x364156;return _0x187ede+'/'+_0x3f2554+_0x121498(0x35f)+_0x3849d8+'/new_changes';}exports[_0x364156(0x33a)]=class{constructor(_0x591b53,_0x1f5c75,_0xacaba2,_0x1175d5,_0x3290ef){const _0x12f4ec=_0x364156;this['_http']=_0x591b53,this[_0x12f4ec(0x2e4)]=_0x1f5c75,this['_configService']=_0xacaba2,this[_0x12f4ec(0x3f3)]=_0x1175d5,this[_0x12f4ec(0x336)]=_0x3290ef;}[_0x364156(0x4d5)](_0x19ada4){const _0x569f6f=_0x364156,_0x160604=this['_ws'][_0x569f6f(0x4d5)](_0x19ada4);if(!_0x160604)throw new Error(_0x569f6f(0x389));const _0x4d08b5=new a[(_0x569f6f(0x4b8))](),_0x2b3eca=new g[(_0x569f6f(0x2c1))]();_0x4d08b5['add'](a[_0x569f6f(0x4a1)](_0x160604[_0x569f6f(0x322)][_0x569f6f(0x4f5)](_0x3188cb=>_0x2b3eca[_0x569f6f(0x1d2)](_0x3188cb)))),_0x4d08b5['add'](a[_0x569f6f(0x4a1)](()=>_0x2b3eca[_0x569f6f(0x28c)]()));const _0x506465=new g[(_0x569f6f(0x2c1))]();_0x4d08b5[_0x569f6f(0x2e0)](a[_0x569f6f(0x4a1)](_0x160604['error$'][_0x569f6f(0x4f5)](_0x1dfc0a=>_0x506465[_0x569f6f(0x1d2)](_0x1dfc0a)))),_0x4d08b5[_0x569f6f(0x2e0)](a[_0x569f6f(0x4a1)](()=>_0x506465[_0x569f6f(0x28c)]()));const _0x31be64=new g[(_0x569f6f(0x2c1))]();_0x4d08b5['add'](a[_0x569f6f(0x4a1)](_0x160604[_0x569f6f(0x254)][_0x569f6f(0x4f5)](_0x2cc4c2=>{const _0x27cef3=_0x569f6f,_0x1faa3c=Et(_0x2cc4c2);_0x31be64[_0x27cef3(0x1d2)](_0x1faa3c);}))),_0x4d08b5[_0x569f6f(0x2e0)](a[_0x569f6f(0x4a1)](()=>_0x31be64[_0x569f6f(0x28c)]()));const _0x4f8ed7=()=>{const _0x4f7259=_0x569f6f;_0x506465['next'](new Event(_0x4f7259(0x406))),_0x2b3eca[_0x4f7259(0x1d2)](new CloseEvent(_0x4f7259(0x406))),_0x56815b[_0x4f7259(0x494)]();},_0x56815b={'memberID':'','close$':_0x2b3eca[_0x569f6f(0x485)](),'error$':_0x506465['asObservable'](),'open$':_0x160604[_0x569f6f(0x3ee)],'message$':_0x31be64[_0x569f6f(0x485)](),'send':_0x4cd89a=>{const _0x309a80=_0x569f6f;if(_0x4cd89a[_0x309a80(0x28b)]===T[_0x309a80(0x471)]){if(_0x4cd89a[_0x309a80(0x45d)][_0x309a80(0x321)]===u['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x309a80(0x48b)](_0x56815b,_0x4cd89a[_0x309a80(0x45d)])['catch'](_0x20d8bd=>{const _0x2701ae=_0x309a80;this[_0x2701ae(0x3f3)][_0x2701ae(0x381)](_0x20d8bd),_0x4f8ed7();});return;}if(_0x4cd89a[_0x309a80(0x45d)][_0x309a80(0x321)]===u[_0x309a80(0x3ac)][_0x309a80(0x1d6)]){const _0x5b2b62=_0x4cd89a[_0x309a80(0x45d)];this[_0x309a80(0x464)](_0x5b2b62)[_0x309a80(0x541)](_0x2229db=>{const _0x52b68c=_0x309a80;_0x31be64[_0x52b68c(0x1d2)]({'cmd':T[_0x52b68c(0x35d)],'code':Fe['OK'],'routeKey':_0x5b2b62[_0x52b68c(0x45d)][_0x52b68c(0x1e9)],'routeType':'','data':{'eventID':u[_0x52b68c(0x3ac)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2229db}}});})['catch'](_0x326de1=>{const _0xfe03f0=_0x309a80;this[_0xfe03f0(0x3f3)]['error'](_0x326de1),_0x4f8ed7();});return;}}_0x160604[_0x309a80(0x3c4)](Ct(_0x4cd89a));},'close':()=>{const _0x245193=_0x569f6f;_0x160604[_0x245193(0x494)](),_0x4d08b5[_0x245193(0x266)]();}};return _0x56815b;}async[_0x364156(0x48b)](_0xfced0e,_0x1c84eb){const _0x1dffc6=_0x364156;var _0x1ce9fa;const {unitType:_0x3207c2,unitID:_0x644fec,changeset:_0xb98bd3}=_0x1c84eb['data'],_0x4cc174={'unitID':_0x644fec,'memberID':_0xfced0e[_0x1dffc6(0x4a0)],'type':_0x3207c2,'changeset':u[_0x1dffc6(0x327)](_0xb98bd3)},_0x46092f=as((_0x1ce9fa=this[_0x1dffc6(0x53e)][_0x1dffc6(0x58b)](mt))!=null?_0x1ce9fa:Zt,_0x3207c2,_0x644fec);try{await this[_0x1dffc6(0x525)][_0x1dffc6(0x3e1)](_0x46092f,{'body':_0x4cc174});}catch(_0x516918){throw this[_0x1dffc6(0x3f3)]['error']('[CollaborationSession]',_0x1dffc6(0x295)),_0x516918;}}async[_0x364156(0x464)](_0x298f12){const _0x2da2a3=_0x364156,{unitID:_0x206188,from:_0xae4d5d,to:_0x11fed2,unitType:_0x50951c}=_0x298f12['data'];return(await this['_snapshotServerService'][_0x2da2a3(0x299)]({'metadata':void 0x0},{'unitID':_0x206188,'type':_0x50951c,'from':_0xae4d5d,'to':_0x11fed2}))[_0x2da2a3(0x3dc)];}},exports[_0x364156(0x33a)]=os([se(0x0,h[_0x364156(0x24e)](y['HTTPService'])),se(0x1,h['Inject'](y[_0x364156(0x385)])),se(0x2,a[_0x364156(0x36a)]),se(0x3,a[_0x364156(0x476)]),se(0x4,a[_0x364156(0x324)])],exports[_0x364156(0x33a)]);class We{constructor(){const _0xad28ba=_0x364156;d(this,_0xad28ba(0x1d8),new g['Subject']()),d(this,_0xad28ba(0x265),this[_0xad28ba(0x1d8)][_0xad28ba(0x485)]());}[_0x364156(0x427)](_0x17692d){const _0x5a27b6=_0x364156;this[_0x5a27b6(0x1d8)][_0x5a27b6(0x1d2)](_0x17692d);}}var cs=Object['defineProperty'],ls=Object['getOwnPropertyDescriptor'],bt=(_0x415ff6,_0x31cee8,_0x2a4830,_0xef2ab8)=>{const _0x3159a5=_0x364156;for(var _0x1b699d=_0xef2ab8>0x1?void 0x0:_0xef2ab8?ls(_0x31cee8,_0x2a4830):_0x31cee8,_0x547eda=_0x415ff6[_0x3159a5(0x37d)]-0x1,_0x532665;_0x547eda>=0x0;_0x547eda--)(_0x532665=_0x415ff6[_0x547eda])&&(_0x1b699d=(_0xef2ab8?_0x532665(_0x31cee8,_0x2a4830,_0x1b699d):_0x532665(_0x1b699d))||_0x1b699d);return _0xef2ab8&&_0x1b699d&&cs(_0x31cee8,_0x2a4830,_0x1b699d),_0x1b699d;},P=(_0x4bb769,_0x22a0d6)=>(_0x240ed0,_0xb39b35)=>_0x22a0d6(_0x240ed0,_0xb39b35,_0x4bb769),W=(_0x142db3=>(_0x142db3[_0x142db3[_0x364156(0x2e6)]=0x0]=_0x364156(0x2e6),_0x142db3[_0x142db3[_0x364156(0x312)]=0x1]='JOINING',_0x142db3[_0x142db3[_0x364156(0x209)]=0x2]=_0x364156(0x209),_0x142db3[_0x142db3['ONLINE']=0x3]=_0x364156(0x42c),_0x142db3))(W||{});exports['CollaborationSession']=class extends a[_0x364156(0x306)]{constructor(_0x55165c,_0x39cbdf,_0x510b76,_0x449d39,_0x23ae24,_0x5a905b,_0x1e5eb6,_0x3723ab,_0x539ea3){const _0x14b5a2=_0x364156;super(),d(this,'_sessionStatus$',new g['BehaviorSubject'](0x0)),d(this,_0x14b5a2(0x582),this[_0x14b5a2(0x4e5)]['asObservable']()),d(this,_0x14b5a2(0x495),new g[(_0x14b5a2(0x2c1))]()),d(this,_0x14b5a2(0x56b),this[_0x14b5a2(0x495)]['asObservable']()),d(this,_0x14b5a2(0x36c)),d(this,_0x14b5a2(0x31c)),d(this,'_collaborationTimeoutTimer'),(this[_0x14b5a2(0x30f)]=_0x55165c,this[_0x14b5a2(0x3f3)]=_0x510b76,this[_0x14b5a2(0x4df)]=_0x449d39,this[_0x14b5a2(0x4f8)]=_0x23ae24,this['_configService']=_0x5a905b,this['_localeService']=_0x1e5eb6,this[_0x14b5a2(0x302)]=_0x3723ab,this['_commentService']=_0x539ea3,_0x39cbdf[_0x14b5a2(0x1f5)](C[_0x14b5a2(0x52b)](this[_0x14b5a2(0x55d)]))[_0x14b5a2(0x4f5)](_0x40923e=>{const _0x312a97=_0x14b5a2;var _0x5d3cac;typeof _0x40923e>'u'||(this[_0x312a97(0x36c)]=_0x40923e,_0x40923e?(this['_joinRoom'](_0x40923e),this[_0x312a97(0x31c)]=this['_socket'][_0x312a97(0x254)][_0x312a97(0x4f5)](_0x1b09c9=>{const _0x360804=_0x312a97;_0x1b09c9['routeKey']===this[_0x360804(0x30f)]&&this[_0x360804(0x4f1)](_0x1b09c9);})):(this[_0x312a97(0x4e5)][_0x312a97(0x1d2)](0x2),(_0x5d3cac=this[_0x312a97(0x31c)])==null||_0x5d3cac['unsubscribe'](),this[_0x312a97(0x31c)]=null));}),this[_0x14b5a2(0x1e6)](this[_0x14b5a2(0x4df)]['registerOnClose'](()=>{const _0x2d984c=_0x14b5a2;var _0x3bdcbc;(_0x3bdcbc=this[_0x2d984c(0x36c)])==null||_0x3bdcbc['send']({'cmd':T[_0x2d984c(0x227)],'data':{'roomID':this[_0x2d984c(0x30f)]}});})));}get['sessionStatus'](){const _0x46aafe=_0x364156;return this[_0x46aafe(0x4e5)]['getValue']();}[_0x364156(0x354)](){const _0xcd3fa3=_0x364156;var _0x3a11de,_0x51b8c4;return(_0x51b8c4=(_0x3a11de=this[_0xcd3fa3(0x36c)])==null?void 0x0:_0x3a11de[_0xcd3fa3(0x4a0)])!=null?_0x51b8c4:null;}[_0x364156(0x266)](){const _0x4f64c5=_0x364156;super[_0x4f64c5(0x266)](),this[_0x4f64c5(0x55d)][_0x4f64c5(0x1d2)](),this['dispose$'][_0x4f64c5(0x28c)]();}[_0x364156(0x4f1)](_0x10c426){const _0xb7f70f=_0x364156;_0x10c426[_0xb7f70f(0x28b)]===T['JOIN']?this[_0xb7f70f(0x444)](_0x10c426):_0x10c426[_0xb7f70f(0x28b)]===T[_0xb7f70f(0x35d)]&&this[_0xb7f70f(0x46a)](_0x10c426);}[_0x364156(0x26d)](_0x348d1c){const _0x33ab8f=_0x364156;this[_0x33ab8f(0x4e5)]['next'](0x1),_0x348d1c[_0x33ab8f(0x3c4)]({'cmd':T[_0x33ab8f(0x335)],'routeKey':this[_0x33ab8f(0x30f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x33ab8f(0x30f)]}]}});}[_0x364156(0x444)](_0x28f7a2){const _0x103737=_0x364156;var _0x3ac5ec;if(_0x28f7a2[_0x103737(0x35e)]===Fe[_0x103737(0x3c8)]){this[_0x103737(0x4f8)]['show']({'type':Q['MessageType']['Warning'],'content':this[_0x103737(0x251)]['t'](_0x103737(0x1eb))}),this[_0x103737(0x4e5)][_0x103737(0x1d2)](0x2);return;}this[_0x103737(0x4e5)][_0x103737(0x1d2)](0x3);const _0x8465cc=(_0x3ac5ec=_0x28f7a2[_0x103737(0x45d)][_0x103737(0x58d)][this[_0x103737(0x30f)]])==null?void 0x0:_0x3ac5ec[_0x103737(0x45e)];_0x8465cc&&_0x8465cc[_0x103737(0x2b1)](_0x579125=>this[_0x103737(0x302)][_0x103737(0x2c6)](this[_0x103737(0x30f)],_0x579125));}[_0x364156(0x46a)](_0x1b0aac){const _0x40dce7=_0x364156;try{const _0x1c5e7c=_0x1b0aac[_0x40dce7(0x45d)];switch(_0x1c5e7c['eventID']){case u[_0x40dce7(0x3ac)]['USERS_ENTER']:this[_0x40dce7(0x2cb)](_0x1c5e7c),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u[_0x40dce7(0x3ac)][_0x40dce7(0x41f)]:this[_0x40dce7(0x29b)](_0x1c5e7c),this['_event$'][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u['CollaborationEvent'][_0x40dce7(0x3aa)]:this[_0x40dce7(0x252)](),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u[_0x40dce7(0x3ac)]['MSG_FOR_ERROR']:this['_logService'][_0x40dce7(0x381)](_0x40dce7(0x2cc)+JSON[_0x40dce7(0x2b6)](_0x1c5e7c)),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;case u[_0x40dce7(0x3ac)][_0x40dce7(0x33d)]:this['_commentService']['onCommentUpdate'](_0x1c5e7c[_0x40dce7(0x45d)]),this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);break;default:this[_0x40dce7(0x495)][_0x40dce7(0x1d2)](_0x1c5e7c);}}catch(_0x5a9599){this[_0x40dce7(0x3f3)][_0x40dce7(0x381)](_0x5a9599,_0x1b0aac);}}['_onUserJoin'](_0x655797){const _0x3cd5f4=_0x364156;this[_0x3cd5f4(0x302)]['updateMember'](this['_unitID'],_0x655797[_0x3cd5f4(0x45d)]);}['_onUserLeave'](_0x7f327d){const _0x549548=_0x364156;this[_0x549548(0x302)][_0x549548(0x3a0)](this['_unitID'],_0x7f327d[_0x549548(0x45d)][_0x549548(0x4a0)]);}async['send'](_0x171dba,_0x334904){const _0x3f9da9=_0x364156;if(this[_0x3f9da9(0x4c1)]!==0x3||!this['_socket'])throw new Error(_0x3f9da9(0x3a2));try{_0x171dba[_0x3f9da9(0x321)]===u[_0x3f9da9(0x3ac)]['NEW_CHANGESETS']&&this[_0x3f9da9(0x510)](),this[_0x3f9da9(0x36c)]['send']({'cmd':T[_0x3f9da9(0x471)],'routeKey':_0x334904,'routeType':'','data':_0x171dba});}catch(_0x125ead){this['_logService'][_0x3f9da9(0x381)](_0x125ead);}}[_0x364156(0x510)](){const _0x1b645e=_0x364156;var _0x388c70;this[_0x1b645e(0x368)]=window[_0x1b645e(0x2f0)](()=>{const _0x47bfeb=_0x1b645e;this[_0x47bfeb(0x368)]=null,this[_0x47bfeb(0x4f8)][_0x47bfeb(0x3f0)]({'type':Q[_0x47bfeb(0x23c)][_0x47bfeb(0x20d)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x388c70=this[_0x1b645e(0x53e)]['getConfig'](Be))!=null?_0x388c70:gt);}['_clearCollaborationTimeoutTimer'](){const _0x27b391=_0x364156;this[_0x27b391(0x368)]&&(clearTimeout(this[_0x27b391(0x368)]),this[_0x27b391(0x368)]=null);}},exports['CollaborationSession']=bt([P(0x2,a[_0x364156(0x476)]),P(0x3,M[_0x364156(0x344)]),P(0x4,M[_0x364156(0x247)]),P(0x5,a[_0x364156(0x36a)]),P(0x6,h['Inject'](a[_0x364156(0x1fb)])),P(0x7,h[_0x364156(0x24e)](G)),P(0x8,h[_0x364156(0x24e)](We))],exports[_0x364156(0x425)]),exports['CollaborationSessionService']=class extends a['Disposable']{constructor(_0x145d14,_0x1a6bac,_0x55701b,_0xf50146,_0x3ac9e2,_0x579900){const _0x41543e=_0x364156;super(),d(this,_0x41543e(0x459),new g[(_0x41543e(0x2dc))](void 0x0)),d(this,_0x41543e(0x543),new Map()),d(this,_0x41543e(0x502),new g[(_0x41543e(0x2dc))](0x0)),d(this,'status$',this['_status$']['asObservable']()),d(this,_0x41543e(0x20e),!0x1),d(this,'_sendHeartbeatTimer'),d(this,_0x41543e(0x4bc)),d(this,_0x41543e(0x320)),d(this,_0x41543e(0x483),0x0),(this['_injector']=_0x145d14,this['_localeService']=_0x1a6bac,this['_messageService']=_0x55701b,this['_logService']=_0xf50146,this[_0x41543e(0x53e)]=_0x3ac9e2,this[_0x41543e(0x3fc)]=_0x579900);}get['_socket'](){const _0x455ac8=_0x364156;return this['_socket$'][_0x455ac8(0x1de)]();}['dispose'](){const _0x12e8ae=_0x364156;super['dispose'](),this['_sessions'][_0x12e8ae(0x2b1)](_0x1de4b0=>_0x1de4b0[_0x12e8ae(0x266)]()),this['_sessions'][_0x12e8ae(0x23d)](),this['_status$'][_0x12e8ae(0x28c)]();}async[_0x364156(0x33c)](_0x579f11){const _0x96be39=_0x364156;if(this[_0x96be39(0x543)][_0x96be39(0x2bc)](_0x579f11))return this[_0x96be39(0x543)][_0x96be39(0x3f4)](_0x579f11);this[_0x96be39(0x1ef)]();const _0x229d6b=this[_0x96be39(0x34f)][_0x96be39(0x1c6)](exports[_0x96be39(0x425)],_0x579f11,this['_socket$'][_0x96be39(0x485)]());return this[_0x96be39(0x543)][_0x96be39(0x490)](_0x579f11,_0x229d6b),_0x229d6b;}[_0x364156(0x4af)](){const _0x20aa20=_0x364156;var _0x3f6c7c;const _0x2ba389=(_0x3f6c7c=this[_0x20aa20(0x53e)][_0x20aa20(0x58b)](St))!=null?_0x3f6c7c:Gt;return this['_socketService'][_0x20aa20(0x4d5)](_0x2ba389);}[_0x364156(0x1ef)](){const _0x372420=_0x364156;try{const _0x306224=this['_createSocket']();if(_0x306224){const _0x3f4856=_0x306224[_0x372420(0x3c4)];_0x306224[_0x372420(0x3c4)]=_0x406044=>(this[_0x372420(0x40a)](),_0x3f4856['apply'](_0x306224,[_0x406044])),_0x306224[_0x372420(0x254)][_0x372420(0x4f5)](_0x5d390f=>this[_0x372420(0x587)](_0x306224,_0x5d390f)),_0x306224[_0x372420(0x32d)]['pipe'](C[_0x372420(0x1c5)](0x1))[_0x372420(0x4f5)](_0x42b8b5=>this[_0x372420(0x3f3)][_0x372420(0x381)]('[CollaborationSessionService]:\x20socket\x20error',_0x42b8b5)),_0x306224[_0x372420(0x3ee)][_0x372420(0x1f5)](C[_0x372420(0x1c5)](0x1))[_0x372420(0x4f5)](()=>{this['_onConnectionOpen'](_0x306224);}),_0x306224[_0x372420(0x322)][_0x372420(0x1f5)](C[_0x372420(0x1c5)](0x1))[_0x372420(0x4f5)](_0xac8a40=>{const _0x1fff1e=_0x372420;this['_logService']['debug']('[CollaborationSessionService]',_0x1fff1e(0x488),_0xac8a40),this['_onConnectionFailed']();});}}catch(_0x8cdb90){this['_logService']['error'](_0x8cdb90),this[_0x372420(0x210)]();}}['_onConnectionOpen'](_0x4a6cfb){const _0x138918=_0x364156;this[_0x138918(0x3f3)][_0x138918(0x3b3)]('[CollaborationSessionService]',_0x138918(0x20c)),_0x4a6cfb['send']({'cmd':T[_0x138918(0x1f1)]}),this[_0x138918(0x40a)]();}[_0x364156(0x210)](){const _0x5bd2af=_0x364156;var _0x274a2a;this[_0x5bd2af(0x502)][_0x5bd2af(0x1d2)](0x2),this[_0x5bd2af(0x459)]['next'](null),this[_0x5bd2af(0x1e3)](),this[_0x5bd2af(0x57e)](),this[_0x5bd2af(0x20e)]=!0x1,this[_0x5bd2af(0x483)]<((_0x274a2a=this['_configService'][_0x5bd2af(0x58b)](qt))!=null?_0x274a2a:Jt)?(this['_scheduleReconnection'](this[_0x5bd2af(0x483)]),this[_0x5bd2af(0x483)]+=0x1):this[_0x5bd2af(0x4f8)][_0x5bd2af(0x3f0)]({'type':Q[_0x5bd2af(0x23c)][_0x5bd2af(0x20d)],'content':this[_0x5bd2af(0x251)]['t'](_0x5bd2af(0x526))});}[_0x364156(0x3ed)](_0x2f5df6){const _0x43a0d4=_0x364156;var _0x5a44e8;const _0x2e04cb=((_0x5a44e8=this[_0x43a0d4(0x53e)][_0x43a0d4(0x58b)](Kt))!=null?_0x5a44e8:Xt)*0x2**_0x2f5df6;this[_0x43a0d4(0x4f8)][_0x43a0d4(0x3f0)]({'type':Q['MessageType'][_0x43a0d4(0x3c2)],'content':this[_0x43a0d4(0x251)]['t'](_0x43a0d4(0x26e))}),this[_0x43a0d4(0x320)]=setTimeout(()=>{const _0x42cd8e=_0x43a0d4;this[_0x42cd8e(0x1ef)](),clearTimeout(this['_retryConnectingTimer']),this[_0x42cd8e(0x320)]=null;},_0x2e04cb);}[_0x364156(0x40a)](){const _0xae00b8=_0x364156;var _0xf4067a;this[_0xae00b8(0x57e)](),this[_0xae00b8(0x27a)]=setTimeout(()=>this['_sendHeartbeat'](),(_0xf4067a=this[_0xae00b8(0x53e)]['getConfig'](vt))!=null?_0xf4067a:Yt);}[_0x364156(0x276)](){const _0x4bbe1a=_0x364156;this[_0x4bbe1a(0x36c)][_0x4bbe1a(0x3c4)]({'cmd':T[_0x4bbe1a(0x22d)]}),this[_0x4bbe1a(0x2dd)]();}[_0x364156(0x2dd)](){const _0x4ab684=_0x364156;var _0x19975d;this['_timeoutTimer']=setTimeout(()=>this[_0x4ab684(0x210)](),(_0x19975d=this[_0x4ab684(0x53e)][_0x4ab684(0x58b)](Be))!=null?_0x19975d:gt);}['_onMessage'](_0x8d9f69,_0x174d52){const _0x3954f3=_0x364156,{cmd:_0x321ee9}=_0x174d52;_0x321ee9===T[_0x3954f3(0x1f1)]&&!this[_0x3954f3(0x20e)]&&(_0x8d9f69[_0x3954f3(0x4a0)]=_0x174d52[_0x3954f3(0x45d)][_0x3954f3(0x4a0)],this[_0x3954f3(0x459)][_0x3954f3(0x1d2)](_0x8d9f69),this[_0x3954f3(0x502)][_0x3954f3(0x1d2)](0x3),this[_0x3954f3(0x20e)]=!0x0),_0x321ee9===T[_0x3954f3(0x22d)]&&this[_0x3954f3(0x1e3)](),this[_0x3954f3(0x40a)]();}[_0x364156(0x57e)](){const _0x29c009=_0x364156;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x29c009(0x27a)]),this[_0x29c009(0x27a)]=null);}[_0x364156(0x1e3)](){const _0x57ede7=_0x364156;this[_0x57ede7(0x4bc)]!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}},exports[_0x364156(0x378)]=bt([P(0x0,h['Inject'](h[_0x364156(0x443)])),P(0x1,h['Inject'](a[_0x364156(0x1fb)])),P(0x2,M[_0x364156(0x247)]),P(0x3,a[_0x364156(0x476)]),P(0x4,a['IConfigService']),P(0x5,Ve)],exports[_0x364156(0x378)]);var hs=Object[_0x364156(0x53c)],_s=Object[_0x364156(0x55c)],us=(_0x4bf23b,_0x6860aa,_0x1e6e0b,_0x80d739)=>{const _0x165737=_0x364156;for(var _0xec68f5=_0x80d739>0x1?void 0x0:_0x80d739?_s(_0x6860aa,_0x1e6e0b):_0x6860aa,_0xb3a885=_0x4bf23b[_0x165737(0x37d)]-0x1,_0x4c312e;_0xb3a885>=0x0;_0xb3a885--)(_0x4c312e=_0x4bf23b[_0xb3a885])&&(_0xec68f5=(_0x80d739?_0x4c312e(_0x6860aa,_0x1e6e0b,_0xec68f5):_0x4c312e(_0xec68f5))||_0xec68f5);return _0x80d739&&_0xec68f5&&hs(_0x6860aa,_0x1e6e0b,_0xec68f5),_0xec68f5;},ie=(_0x18cf89,_0x441c1f)=>(_0xe02468,_0x2a666a)=>_0x441c1f(_0xe02468,_0x2a666a,_0x18cf89);exports['LocalCacheService']=class extends a[_0x364156(0x262)]{constructor(_0x337cb8,_0x25af69,_0x176af4,_0x3e6f8e,_0x330d6a){const _0xb526fa=_0x364156;super(),d(this,'_cachedData',new Map()),d(this,_0xb526fa(0x54e),new Map()),d(this,_0xb526fa(0x250),!0x1),(this['_configService']=_0x337cb8,this[_0xb526fa(0x201)]=_0x25af69,this[_0xb526fa(0x4df)]=_0x176af4,this['_localeService']=_0x3e6f8e,this['_revisionService']=_0x330d6a,this[_0xb526fa(0x211)]());}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x364156(0x1e0)](){const _0x2b87c8=_0x364156;this[_0x2b87c8(0x250)]=!0x1;}[_0x364156(0x266)](){const _0x4e9764=_0x364156;this[_0x4e9764(0x3f7)]()[_0x4e9764(0x541)](()=>super[_0x4e9764(0x266)]());}async['loadOfflineData'](_0x297603){const _0x1be138=_0x364156;return this[_0x1be138(0x250)]?null:this[_0x1be138(0x201)][_0x1be138(0x4e4)](ze(_0x297603));}async[_0x364156(0x3f1)](_0x1f72fb,_0x59fc8d){const _0xb4212e=_0x364156;return!!this[_0xb4212e(0x201)][_0xb4212e(0x564)](_0x1f72fb,_0x59fc8d);}[_0x364156(0x2a3)](_0x4eaab8,_0x415ddd,_0x49d697,_0x5b5786){const _0x73bd1b=_0x364156,_0x2e5e4f=this['_revisionService'][_0x73bd1b(0x514)](_0x4eaab8);this[_0x73bd1b(0x2ec)][_0x73bd1b(0x490)](_0x4eaab8,{'unitID':_0x4eaab8,'type':_0x415ddd,'awaitingChangeset':_0x49d697,'mutations':_0x5b5786,'rev':_0x2e5e4f}),this['_saveTaskMap'][_0x73bd1b(0x2bc)](_0x4eaab8)||this['_scheduleSaving'](_0x4eaab8);}[_0x364156(0x228)](_0x22b1f8){const _0x41cf16=_0x364156,_0x1caa23=this[_0x41cf16(0x411)]();_0x1caa23===0x0?this[_0x41cf16(0x3f9)](_0x22b1f8):this[_0x41cf16(0x54e)][_0x41cf16(0x490)](_0x22b1f8,setTimeout(()=>this['_saveCache'](_0x22b1f8),_0x1caa23));}[_0x364156(0x411)](){const _0x5efafa=_0x364156;var _0x251daa;return(_0x251daa=this[_0x5efafa(0x53e)][_0x5efafa(0x58b)](ft))!=null?_0x251daa:zt;}[_0x364156(0x3f9)](_0x383dbc){const _0x426f0c=_0x364156,_0x4a835e=this[_0x426f0c(0x54e)][_0x426f0c(0x3f4)](_0x383dbc);return _0x4a835e!==void 0x0&&window[_0x426f0c(0x3d7)](_0x4a835e),this['_localStorageService']['setItem'](ze(_0x383dbc),this[_0x426f0c(0x2ec)][_0x426f0c(0x3f4)](_0x383dbc))[_0x426f0c(0x541)](()=>this[_0x426f0c(0x54e)]['delete'](_0x383dbc));}async[_0x364156(0x3f7)](){const _0x309f30=_0x364156,_0x13c290=[];this[_0x309f30(0x54e)][_0x309f30(0x2b1)]((_0xf404e3,_0x3b928b)=>{const _0x345d13=_0x309f30;window[_0x345d13(0x3d7)](_0xf404e3),_0x13c290['push'](this[_0x345d13(0x3f9)](_0x3b928b)[_0x345d13(0x541)](()=>{const _0x5bfe21=_0x345d13;this[_0x5bfe21(0x54e)][_0x5bfe21(0x4b0)](_0x3b928b);}));}),await Promise[_0x309f30(0x409)](_0x13c290);}['_setupBeforeClosingHandler'](){const _0x1deba9=_0x364156;this[_0x1deba9(0x1e6)](this['_beforeCloseService'][_0x1deba9(0x4be)](()=>{const _0x48bab0=_0x1deba9;if(this['_saveTaskMap']['size'])return this[_0x48bab0(0x251)]['t'](_0x48bab0(0x4c7));}));}},exports[_0x364156(0x403)]=us([ie(0x0,a[_0x364156(0x36a)]),ie(0x1,a[_0x364156(0x2f5)]),ie(0x2,M['IBeforeCloseService']),ie(0x3,h['Inject'](a['LocaleService'])),ie(0x4,h[_0x364156(0x24e)](u[_0x364156(0x549)]))],exports[_0x364156(0x403)]);function ze(_0xb19835){const _0x518dce=_0x364156;return _0x518dce(0x54a)+_0xb19835;}const Ce=h[_0x364156(0x493)](_0x364156(0x51b));var Tt=(_0x27bd17=>(_0x27bd17[_0x27bd17['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x364156(0x41a),_0x27bd17[_0x27bd17[_0x364156(0x579)]=0x1]=_0x364156(0x579),_0x27bd17))(Tt||{});const Ze=0x7530,Qe='ACTIVE_UNIT_EVENT_CHANNEL';class ds extends a['Disposable']{constructor(){const _0x29a498=_0x364156;super(),d(this,_0x29a498(0x2d5),a['Tools'][_0x29a498(0x57d)]()),d(this,_0x29a498(0x4c8),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x29a498(0x418),null),d(this,_0x29a498(0x278),new Map()),d(this,_0x29a498(0x2ae),new Map()),this[_0x29a498(0x477)]();}['dispose'](){const _0x291a26=_0x364156;super[_0x291a26(0x266)](),this[_0x291a26(0x278)][_0x291a26(0x2b1)]((_0x4b988d,_0x32586c)=>this['_removeClearOtherTimer'](_0x32586c)),this[_0x291a26(0x418)]&&window['clearInterval'](this[_0x291a26(0x418)]);}['getUnitStatus$'](_0x1a505b){const _0x506920=_0x364156;return this[_0x506920(0x44d)](_0x1a505b)[_0x506920(0x1f5)](g[_0x506920(0x2df)]());}[_0x364156(0x1f7)](_0x16f010){const _0x1a02b0=_0x364156;this[_0x1a02b0(0x4c8)][_0x1a02b0(0x2a1)]===0x0&&this['_scheduleHeartbeat'](),this[_0x1a02b0(0x4c8)][_0x1a02b0(0x2e0)](_0x16f010),this['_send']({'type':0x0,'memberID':this[_0x1a02b0(0x2d5)],'unitIDs':[_0x16f010],'isForwarded':!0x1});}[_0x364156(0x4bd)](_0x35ccec){const _0x4132de=_0x364156;this['_selfUnitIDs'][_0x4132de(0x4b0)](_0x35ccec),this[_0x4132de(0x4c8)][_0x4132de(0x2a1)]===0x0&&this[_0x4132de(0x418)]&&window[_0x4132de(0x36b)](this[_0x4132de(0x418)]);}['_init'](){const _0x14c232=_0x364156;this[_0x14c232(0x1e6)](a['toDisposable'](g[_0x14c232(0x29e)](window,'storage')[_0x14c232(0x4f5)](_0x2cded0=>{const _0x511b36=_0x14c232;if(_0x2cded0[_0x511b36(0x28e)]!==Qe||!_0x2cded0[_0x511b36(0x3b9)])return;const _0x21d4c0=JSON[_0x511b36(0x42a)](_0x2cded0[_0x511b36(0x3b9)]);this[_0x511b36(0x300)](_0x21d4c0);}))),window['addEventListener'](_0x14c232(0x3cb),()=>this[_0x14c232(0x279)]({'type':0x1,'memberID':this[_0x14c232(0x2d5)],'unitIDs':Array[_0x14c232(0x259)](this[_0x14c232(0x4c8)])}));}[_0x364156(0x300)](_0x308932){const _0x1b394a=_0x364156;switch(_0x308932['type']){case 0x0:this[_0x1b394a(0x24c)](_0x308932);break;case 0x1:this[_0x1b394a(0x557)](_0x308932);break;case 0x2:this['_handleHeartbeatEvent'](_0x308932);break;}}[_0x364156(0x24c)](_0x540326){const _0x2731da=_0x364156,{unitIDs:_0x616516,memberID:_0x489fd0,isForwarded:_0x557331}=_0x540326;_0x616516[_0x2731da(0x2b1)](_0x1bc2f0=>{const _0x1f79b6=_0x2731da;if(!_0x557331&&this[_0x1f79b6(0x4ed)][_0x1f79b6(0x2bc)](_0x1bc2f0)&&this['_ensureSubject'](_0x1bc2f0)['next'](0x1),!this[_0x1f79b6(0x4ed)][_0x1f79b6(0x2bc)](_0x1bc2f0)||!this[_0x1f79b6(0x4ed)][_0x1f79b6(0x3f4)](_0x1bc2f0)[_0x1f79b6(0x2bc)](_0x489fd0)){const _0x40844a=this['_unitOnClients'][_0x1f79b6(0x3f4)](_0x1bc2f0)||new Set();_0x40844a[_0x1f79b6(0x2e0)](_0x489fd0),this[_0x1f79b6(0x4ed)]['set'](_0x1bc2f0,_0x40844a),this['_scheduleClearOtherTimer'](_0x489fd0);}}),_0x557331||this[_0x2731da(0x279)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2731da(0x4c8)]],'isForwarded':!0x0});}[_0x364156(0x538)](_0x546cf5){const _0x3aed25=_0x364156;this['_removeClearOtherTimer'](_0x546cf5);const _0x310401=window['setTimeout'](()=>{const _0xc82add=_0x17ba;this[_0xc82add(0x4ed)][_0xc82add(0x2b1)](_0x18abb9=>{const _0x37eb5b=_0xc82add;_0x18abb9[_0x37eb5b(0x4b0)](_0x546cf5);});},Ze*0x2);this[_0x3aed25(0x278)]['set'](_0x546cf5,_0x310401);}[_0x364156(0x226)](_0x459de2){const _0x77a382=_0x364156;if(this[_0x77a382(0x278)][_0x77a382(0x2bc)](_0x459de2)){const _0x4a6651=this[_0x77a382(0x278)]['get'](_0x459de2);_0x4a6651&&window[_0x77a382(0x3d7)](_0x4a6651),this[_0x77a382(0x278)]['set'](_0x459de2,null);}}['_handleLeaveEvent'](_0x213034){const _0x253d9d=_0x364156,{memberID:_0x4485a1,unitIDs:_0xce56c7}=_0x213034;_0xce56c7[_0x253d9d(0x2b1)](_0x51074a=>{const _0x35b63a=_0x253d9d;var _0x545275;const _0x2e8740=this[_0x35b63a(0x4ed)][_0x35b63a(0x3f4)](_0x51074a);_0x2e8740&&(_0x2e8740[_0x35b63a(0x4b0)](_0x4485a1),(_0x545275=this[_0x35b63a(0x44d)](_0x51074a))==null||_0x545275[_0x35b63a(0x1d2)](_0x2e8740['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4485a1);}[_0x364156(0x2b2)](_0x20e319){const _0x20be3d=_0x364156;this[_0x20be3d(0x538)](_0x20e319[_0x20be3d(0x4a0)]);}['_send'](_0x5de2b0){const _0x53fc07=_0x364156;localStorage[_0x53fc07(0x564)](Qe,JSON[_0x53fc07(0x2b6)](_0x5de2b0));}[_0x364156(0x460)](){const _0x3d5e52=_0x364156;this[_0x3d5e52(0x418)]=window['setInterval'](()=>{const _0x2607de=_0x3d5e52;this[_0x2607de(0x279)]({'type':0x2,'memberID':this[_0x2607de(0x2d5)]});},Ze);}['_ensureSubject'](_0x4eb086){const _0x162b2c=_0x364156;return this['_unitStatus']['has'](_0x4eb086)||this[_0x162b2c(0x2ae)][_0x162b2c(0x490)](_0x4eb086,new g['BehaviorSubject'](0x0)),this[_0x162b2c(0x2ae)][_0x162b2c(0x3f4)](_0x4eb086);}}var Ss=Object[_0x364156(0x53c)],vs=Object[_0x364156(0x55c)],gs=(_0x3f2f8b,_0x53a1dd,_0x2039fc,_0x397113)=>{const _0x3e75b8=_0x364156;for(var _0x415089=_0x397113>0x1?void 0x0:_0x397113?vs(_0x53a1dd,_0x2039fc):_0x53a1dd,_0x30d650=_0x3f2f8b[_0x3e75b8(0x37d)]-0x1,_0x5ea6a4;_0x30d650>=0x0;_0x30d650--)(_0x5ea6a4=_0x3f2f8b[_0x30d650])&&(_0x415089=(_0x397113?_0x5ea6a4(_0x53a1dd,_0x2039fc,_0x415089):_0x5ea6a4(_0x415089))||_0x415089);return _0x397113&&_0x415089&&Ss(_0x53a1dd,_0x2039fc,_0x415089),_0x415089;},et=(_0x4f1e44,_0x410575)=>(_0x2b907c,_0x2c487e)=>_0x410575(_0x2b907c,_0x2c487e,_0x4f1e44);let fe=class{constructor(_0x20eabf,_0xf806f9){const _0x572c24=_0x364156;this[_0x572c24(0x34f)]=_0x20eabf,this['_transformService']=_0xf806f9;}[_0x364156(0x3cc)](_0x4a3a40){const _0x1f0a7a=_0x364156;this[_0x1f0a7a(0x269)](_0x4a3a40),this[_0x1f0a7a(0x4d9)](_0x4a3a40);}[_0x364156(0x405)](_0x507002){const _0x506d48=_0x364156,_0x5c4140=this['_injector'][_0x506d48(0x3f4)](N[_0x506d48(0x580)]),{redoCache:_0x305940}=_0x5c4140[_0x506d48(0x1e2)]();if(_0x305940[_0x506d48(0x37d)]===0x0)return _0x507002;let _0x38c068=a['Tools']['deepClone'](_0x507002[_0x506d48(0x480)][0x0]);for(let _0x435248=0x0;_0x435248<_0x305940['length'];_0x435248++){const _0x3f3bf3={'id':'doc.mutation.rich-text-editing','params':{..._0x305940[_0x435248]}},_0x56b21b=this['_transformService'][_0x506d48(0x43d)](_0x38c068,_0x3f3bf3,!0x1);if(u['isTransformMutationFailure'](_0x56b21b))throw _0x56b21b['error'];_0x38c068=_0x56b21b['m1Prime'];}return{...a[_0x506d48(0x2f6)][_0x506d48(0x3c3)](_0x507002),'mutations':[_0x38c068]};}[_0x364156(0x269)](_0x5bf056){const _0x1607dd=_0x364156,_0x5cd63c=this[_0x1607dd(0x34f)][_0x1607dd(0x3f4)](N[_0x1607dd(0x580)]),{undoCache:_0x550c4f,redoCache:_0x49f7c7}=_0x5cd63c[_0x1607dd(0x1e2)]();if(_0x550c4f[_0x1607dd(0x37d)]===0x0||_0x49f7c7[_0x1607dd(0x37d)]===0x0)return;const _0x448f62=[],_0x24a8a=[];let _0x301d76=a[_0x1607dd(0x2f6)][_0x1607dd(0x3c3)](_0x5bf056[_0x1607dd(0x480)][0x0]),_0x5a82a6=a[_0x1607dd(0x2f6)]['deepClone'](_0x5bf056[_0x1607dd(0x480)][0x0]);for(let _0x15177=_0x550c4f[_0x1607dd(0x37d)]-0x1;_0x15177>=0x0;_0x15177--){const _0x4ea820={'id':_0x1607dd(0x4ef),'params':{..._0x550c4f[_0x15177]}},_0x27a056={'id':_0x1607dd(0x4ef),'params':{..._0x49f7c7[_0x15177]}},_0x3a8e5d=this['_transformService']['transformMutation'](_0x301d76,_0x4ea820,!0x1),_0x50e33f=this['_transformService'][_0x1607dd(0x43d)](_0x5a82a6,_0x27a056,!0x1);if(u['isTransformMutationFailure'](_0x3a8e5d))throw _0x3a8e5d['error'];if(u[_0x1607dd(0x345)](_0x50e33f))throw _0x50e33f[_0x1607dd(0x381)];_0x448f62[_0x1607dd(0x329)](_0x3a8e5d[_0x1607dd(0x304)][_0x1607dd(0x2a0)]),_0x24a8a[_0x1607dd(0x329)](_0x50e33f[_0x1607dd(0x304)][_0x1607dd(0x2a0)]),_0x301d76=_0x3a8e5d[_0x1607dd(0x41b)],_0x5a82a6=_0x50e33f[_0x1607dd(0x41b)];}_0x5cd63c[_0x1607dd(0x470)]({'undoCache':_0x448f62,'redoCache':_0x24a8a});}[_0x364156(0x4d9)](_0xbcd2f5){const _0x301c46=_0x364156,_0x1b1241=this[_0x301c46(0x34f)][_0x301c46(0x3f4)](N[_0x301c46(0x580)]),_0x8a3594=_0x1b1241[_0x301c46(0x206)]();if(_0x8a3594==null)return;const _0x2f0e13=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xbcd2f5[_0x301c46(0x1e9)],'actions':null,'textRanges':[_0x8a3594]}}],_0x45dbde=this['_transformService'][_0x301c46(0x3c0)](_0xbcd2f5,_0x2f0e13);if(!u[_0x301c46(0x468)](_0x45dbde))throw _0x45dbde[_0x301c46(0x381)];const _0x5bc8bb=_0x45dbde[_0x301c46(0x304)][0x0]['params']['textRanges'];Array['isArray'](_0x5bc8bb)&&_0x5bc8bb[_0x301c46(0x37d)]&&_0x1b1241['setActiveRange'](_0x5bc8bb[0x0]);}};fe=gs([et(0x0,h['Inject'](h[_0x364156(0x443)])),et(0x1,u[_0x364156(0x3d0)])],fe);var fs=Object[_0x364156(0x53c)],ms=Object['getOwnPropertyDescriptor'],Is=(_0x7a8e5a,_0x2369d5,_0x41703a,_0x476b09)=>{for(var _0x5033fc=_0x476b09>0x1?void 0x0:_0x476b09?ms(_0x2369d5,_0x41703a):_0x2369d5,_0xaed405=_0x7a8e5a['length']-0x1,_0x16d8e6;_0xaed405>=0x0;_0xaed405--)(_0x16d8e6=_0x7a8e5a[_0xaed405])&&(_0x5033fc=(_0x476b09?_0x16d8e6(_0x2369d5,_0x41703a,_0x5033fc):_0x16d8e6(_0x5033fc))||_0x5033fc);return _0x476b09&&_0x5033fc&&fs(_0x2369d5,_0x41703a,_0x5033fc),_0x5033fc;},tt=(_0x4ebbc9,_0x4e7f44)=>(_0x26ac2a,_0x3ead9f)=>_0x4e7f44(_0x26ac2a,_0x3ead9f,_0x4ebbc9);let me=class{constructor(_0x5dc206,_0x5e99dc){const _0x19ef85=_0x364156;this[_0x19ef85(0x34f)]=_0x5dc206,this[_0x19ef85(0x456)]=_0x5e99dc;}[_0x364156(0x3fe)](_0x1151cb){const _0x254a9d=_0x364156;var _0x385809;const _0xc8152f=this[_0x254a9d(0x34f)][_0x254a9d(0x3f4)](N['TextSelectionManagerService']),_0x36e219=(_0x385809=_0xc8152f[_0x254a9d(0x25c)]())!=null?_0x385809:[],_0x58c51c=_0x36e219==null?void 0x0:_0x36e219['map'](N['serializeTextRange']);if(_0x58c51c[_0x254a9d(0x37d)]===0x0)return;const _0x2d392d=[{'id':_0x254a9d(0x4ef),'params':{'unitId':_0x1151cb[_0x254a9d(0x1e9)],'actions':null,'textRanges':_0x58c51c}}],_0x325a3e=this[_0x254a9d(0x456)]['transformMutationsWithChangeset'](_0x1151cb,_0x2d392d);if(!u['isTransformMutationsWithChangesetSuccess'](_0x325a3e))throw _0x325a3e[_0x254a9d(0x381)];const _0x32ec4c=_0x325a3e[_0x254a9d(0x304)][0x0][_0x254a9d(0x2a0)][_0x254a9d(0x2eb)];Array[_0x254a9d(0x4d8)](_0x32ec4c)&&_0x32ec4c[_0x254a9d(0x37d)]&&_0xc8152f['replaceTextRanges'](_0x32ec4c,!0x1);}};me=Is([tt(0x0,h[_0x364156(0x24e)](h[_0x364156(0x443)])),tt(0x1,u[_0x364156(0x3d0)])],me);function Rt(_0x2b447){const _0x54cf9d=_0x364156;let _0x1feabe='';for(const _0x15621c of _0x2b447){const {startOffset:_0x45c342,endOffset:_0x92fb62,isActive:_0x59e29d}=_0x15621c;_0x1feabe[_0x54cf9d(0x37d)]&&(_0x1feabe+=','),_0x1feabe+=_0x45c342+':'+_0x92fb62+':'+(_0x59e29d?'1':'0');}return _0x1feabe;}function ps(_0x46d975){const _0x3800c3=_0x364156,_0x28cde6=_0x46d975[_0x3800c3(0x2bb)](','),_0x5d698e=[];for(const _0x4baeb5 of _0x28cde6){const [_0x32dc15,_0x2af31c,_0x4bc7be]=_0x4baeb5[_0x3800c3(0x2bb)](':');_0x5d698e[_0x3800c3(0x528)]({'startOffset':Number(_0x32dc15),'endOffset':Number(_0x2af31c),'collapsed':_0x32dc15===_0x2af31c,'isActive':_0x4bc7be==='1'});}return _0x5d698e[_0x3800c3(0x363)](_0x58c8ff=>_0x58c8ff['isActive'])||(_0x5d698e[0x0][_0x3800c3(0x38a)]=!0x0),_0x5d698e;}class Ge extends a[_0x364156(0x306)]{constructor(){const _0x43ec06=_0x364156;super(...arguments),d(this,_0x43ec06(0x277),new g['BehaviorSubject'](null)),d(this,_0x43ec06(0x455),this['_collabCursorState$'][_0x43ec06(0x485)]());}[_0x364156(0x2f1)](_0x4cd350){const _0x16cabd=_0x364156,{unitID:_0x4fc678,memberID:_0x47eb18,textRanges:_0x12b090}=_0x4cd350,_0x4186bf=Rt(_0x12b090),_0x771751={'unitID':_0x4fc678,'memberID':_0x47eb18,'selection':_0x4186bf};this[_0x16cabd(0x277)][_0x16cabd(0x1d2)](_0x771751);}}var Es=Object[_0x364156(0x53c)],Cs=Object[_0x364156(0x55c)],bs=(_0x4e261e,_0x20ad90,_0x8cda8b,_0x2b0e3f)=>{const _0x421b38=_0x364156;for(var _0x590d5a=_0x2b0e3f>0x1?void 0x0:_0x2b0e3f?Cs(_0x20ad90,_0x8cda8b):_0x20ad90,_0x29a962=_0x4e261e[_0x421b38(0x37d)]-0x1,_0x25dc05;_0x29a962>=0x0;_0x29a962--)(_0x25dc05=_0x4e261e[_0x29a962])&&(_0x590d5a=(_0x2b0e3f?_0x25dc05(_0x20ad90,_0x8cda8b,_0x590d5a):_0x25dc05(_0x590d5a))||_0x590d5a);return _0x2b0e3f&&_0x590d5a&&Es(_0x20ad90,_0x8cda8b,_0x590d5a),_0x590d5a;},st=(_0x16c98e,_0x275282)=>(_0x528119,_0x662cd9)=>_0x275282(_0x528119,_0x662cd9,_0x16c98e);function Ts(_0x86c080){const _0x404abb=_0x364156,{unitID:_0xe16bc9,mutations:_0x5f30c2}=_0x86c080;return{'unitId':_0xe16bc9,'subUnitId':_0x5f30c2[0x0]['params'][_0x404abb(0x4de)]};}let Ie=class{constructor(_0x37a092,_0x16f369){const _0x4f8e77=_0x364156;this[_0x4f8e77(0x34f)]=_0x37a092,this[_0x4f8e77(0x456)]=_0x16f369;}[_0x364156(0x3fe)](_0x445c0b){const _0xe1aa56=_0x364156;var _0x29157,_0x1a6f71,_0xd48f9c;const _0x2d22b2=this[_0xe1aa56(0x34f)][_0xe1aa56(0x3f4)](E[_0xe1aa56(0x3b2)]),{unitId:_0x525aa1,subUnitId:_0x6c5325}=Ts(_0x445c0b),_0x530f33=_0x2d22b2[_0xe1aa56(0x337)](_0x525aa1)['getCurrentSelections']();if(_0x530f33[_0xe1aa56(0x37d)]===0x0||!_0x525aa1||!_0x6c5325)return;const _0x54142d=[{'id':E[_0xe1aa56(0x231)]['id'],'params':{'unitId':_0x525aa1,'subUnitId':_0x6c5325,'selections':a[_0xe1aa56(0x2f6)]['deepClone'](_0x530f33)}}],_0x210b5a=this['_transformService'][_0xe1aa56(0x3c0)](_0x445c0b,_0x54142d);if(!u[_0xe1aa56(0x468)](_0x210b5a))throw _0x210b5a['error'];const _0x1980f4=(_0xd48f9c=(_0x1a6f71=(_0x29157=_0x210b5a['m2Prime'][0x0])==null?void 0x0:_0x29157[_0xe1aa56(0x2a0)])==null?void 0x0:_0x1a6f71['selections'])!=null?_0xd48f9c:_0x530f33;Array[_0xe1aa56(0x4d8)](_0x1980f4)&&_0x1980f4['length']&&this['_injector'][_0xe1aa56(0x3f4)](a[_0xe1aa56(0x542)])[_0xe1aa56(0x291)](E[_0xe1aa56(0x231)]['id'],{'unitId':_0x525aa1,'subUnitId':_0x6c5325,'selections':_0x1980f4});}};Ie=bs([st(0x0,h[_0x364156(0x24e)](h[_0x364156(0x443)])),st(0x1,u[_0x364156(0x3d0)])],Ie);function _0x17ba(_0x59a3ce,_0x377370){const _0x5d0e91=_0x5d0e();return _0x17ba=function(_0x17ba44,_0x586e15){_0x17ba44=_0x17ba44-0x1c4;let _0x37e4e5=_0x5d0e91[_0x17ba44];return _0x37e4e5;},_0x17ba(_0x59a3ce,_0x377370);}const Rs=new Set([E[_0x364156(0x2cf)]['id']]);function Os(_0x203f7f,_0x234aff,_0xf49605,_0x29bf68,_0x285632){const _0x24e819=_0x364156;var _0x3df133,_0x4762ad,_0x17394d,_0x2af014;const _0x161132=[];for(const _0x27edad of _0x203f7f)if(Rs[_0x24e819(0x2bc)](_0x27edad['id'])){if(_0x161132['length']>0x0)break;_0x161132['push'](_0x27edad);break;}else _0x161132[_0x24e819(0x528)](_0x27edad);const _0x260698=(_0x4762ad=(_0x3df133=_0x285632[_0x24e819(0x236)]())==null?void 0x0:_0x3df133['userID'])!=null?_0x4762ad:_0x24e819(0x54c),_0xaa4006=(_0x2af014=(_0x17394d=_0x285632[_0x24e819(0x236)]())==null?void 0x0:_0x17394d['memberID'])!=null?_0x2af014:'unknown';return{'changeset':{'unitID':_0x234aff,'type':u[_0x24e819(0x2ca)](_0xf49605[_0x24e819(0x563)](_0x234aff)),'baseRev':_0x29bf68[_0x24e819(0x514)](_0x234aff),'revision':0x0,'userID':_0x260698,'memberID':_0xaa4006,'mutations':_0x161132},'pendingMutations':_0x203f7f[_0x24e819(0x48f)](_0x161132[_0x24e819(0x37d)])};}function Ds(_0xa17a59,_0x52ca2f,_0x5e4eb8,_0x5e371d,_0x36b7a0){const _0x432f6c=_0x364156;var _0x46e89d,_0x477907,_0x456279,_0x5c2f68;const _0x3f2712=[_0xa17a59[_0x432f6c(0x257)]((_0x3b2c44,_0x5240fd)=>{const _0x5c6523=_0x432f6c;var _0x30c17d;const {id:_0x3d0548}=_0x3b2c44,{id:_0x3d5d99,type:_0x3db128}=_0x5240fd,_0x51e9e5=(_0x30c17d=_0x3b2c44[_0x5c6523(0x2a0)])!=null?_0x30c17d:{'actions':null},_0x2167d2=_0x5240fd[_0x5c6523(0x2a0)];if(_0x3d0548&&_0x3d0548!==_0x3d5d99)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3d0548+_0x5c6523(0x4ba)+_0x3d5d99+'.');return{..._0x3b2c44,'id':_0x3d5d99,'type':_0x3db128,'params':{'unitId':_0x2167d2[_0x5c6523(0x4c9)],'textRanges':_0x2167d2[_0x5c6523(0x2eb)],'actions':a['JSONX'][_0x5c6523(0x2a6)](_0x51e9e5[_0x5c6523(0x256)],_0x2167d2[_0x5c6523(0x256)])}};},{})],_0x97b039=(_0x477907=(_0x46e89d=_0x36b7a0[_0x432f6c(0x236)]())==null?void 0x0:_0x46e89d['userID'])!=null?_0x477907:_0x432f6c(0x54c),_0x2809df=(_0x5c2f68=(_0x456279=_0x36b7a0[_0x432f6c(0x236)]())==null?void 0x0:_0x456279[_0x432f6c(0x4a0)])!=null?_0x5c2f68:_0x432f6c(0x54c);return{'changeset':{'unitID':_0x52ca2f,'type':u[_0x432f6c(0x2ca)](_0x5e4eb8['getUnitType'](_0x52ca2f)),'baseRev':_0x5e371d[_0x432f6c(0x514)](_0x52ca2f),'revision':0x0,'userID':_0x97b039,'memberID':_0x2809df,'mutations':_0x3f2712},'pendingMutations':[]};}var Us=Object[_0x364156(0x53c)],Ps=Object['getOwnPropertyDescriptor'],K=(_0x2b32c0,_0x57af63,_0x3e01b8,_0x3bebfc)=>{const _0x44e953=_0x364156;for(var _0x49c715=_0x3bebfc>0x1?void 0x0:_0x3bebfc?Ps(_0x57af63,_0x3e01b8):_0x57af63,_0x9f395f=_0x2b32c0[_0x44e953(0x37d)]-0x1,_0x113c4b;_0x9f395f>=0x0;_0x9f395f--)(_0x113c4b=_0x2b32c0[_0x9f395f])&&(_0x49c715=(_0x3bebfc?_0x113c4b(_0x57af63,_0x3e01b8,_0x49c715):_0x113c4b(_0x49c715))||_0x49c715);return _0x3bebfc&&_0x49c715&&Us(_0x57af63,_0x3e01b8,_0x49c715),_0x49c715;},f=(_0x387cc0,_0x3b3954)=>(_0x36ad75,_0x4ef799)=>_0x3b3954(_0x36ad75,_0x4ef799,_0x387cc0),U=(_0x4fd7c9=>(_0x4fd7c9[_0x364156(0x2d6)]=_0x364156(0x3a8),_0x4fd7c9[_0x364156(0x311)]='synced',_0x4fd7c9[_0x364156(0x26f)]=_0x364156(0x245),_0x4fd7c9[_0x364156(0x272)]=_0x364156(0x3c9),_0x4fd7c9[_0x364156(0x547)]=_0x364156(0x2c2),_0x4fd7c9['FETCH_MISS']=_0x364156(0x4e6),_0x4fd7c9[_0x364156(0x49d)]=_0x364156(0x398),_0x4fd7c9['OFFLINE']=_0x364156(0x241),_0x4fd7c9))(U||{});class X{constructor(_0x4da707,_0x3578fb,_0x402146,_0x14ff61,_0x399178,_0x43acf6,_0x375795,_0x3b113d,_0x43359f){const _0x4342ac=_0x364156;d(this,_0x4342ac(0x1d3),null),d(this,_0x4342ac(0x47e),[]),(this[_0x4342ac(0x1e9)]=_0x4da707,this[_0x4342ac(0x451)]=_0x3578fb,this[_0x4342ac(0x50a)]=_0x399178,this[_0x4342ac(0x1e1)]=_0x43acf6,this[_0x4342ac(0x505)]=_0x375795,this[_0x4342ac(0x53a)]=_0x3b113d,this[_0x4342ac(0x520)]=_0x43359f,this[_0x4342ac(0x1d3)]=_0x402146,this['_pendingMutations']=_0x14ff61);}[_0x364156(0x221)](_0x424aac){const _0x31cd7f=_0x364156,_0x4b6d6f=this['_revisionService'][_0x31cd7f(0x514)](this[_0x31cd7f(0x1e9)]);return _0x424aac[_0x31cd7f(0x522)]>_0x4b6d6f+0x1?(this[_0x31cd7f(0x50a)][_0x31cd7f(0x1d1)]({'from':_0x4b6d6f,'to':_0x424aac[_0x31cd7f(0x522)]-0x1}),!0x0):!0x1;}[_0x364156(0x205)](_0x240941){const _0x2b0047=_0x364156;this[_0x2b0047(0x505)][_0x2b0047(0x21a)](this[_0x2b0047(0x1e9)],_0x240941);}[_0x364156(0x423)](_0x471669){const _0x5db48e=_0x364156;var _0x33e8fc,_0x19f608;(_0x19f608=(_0x33e8fc=this[_0x5db48e(0x50a)])[_0x5db48e(0x2ab)])==null||_0x19f608[_0x5db48e(0x275)](_0x33e8fc,_0x471669);}[_0x364156(0x3d8)](_0x2d7589){const _0x3b42f9=_0x364156;var _0x2cb15e,_0x5b25b;return(_0x5b25b=(_0x2cb15e=this['_handler'])[_0x3b42f9(0x446)])==null?void 0x0:_0x5b25b[_0x3b42f9(0x275)](_0x2cb15e,_0x2d7589);}['_transformRemoteChangesetByIMECache'](_0x4164e5){const _0x539975=_0x364156;var _0x26eff3,_0x3b7ce1,_0x7d2a69;return(_0x7d2a69=(_0x3b7ce1=(_0x26eff3=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3b7ce1[_0x539975(0x275)](_0x26eff3,_0x4164e5))!=null?_0x7d2a69:_0x4164e5;}['_syncEditingCollabCursor'](_0x1b94fa){const _0x11edeb=_0x364156;var _0x45ced1,_0x53a607;if(this[_0x11edeb(0x451)]===$[_0x11edeb(0x287)]){const {unitID:_0x203b11,mutations:_0x4fcad7,memberID:_0x323d65}=_0x1b94fa,_0x5d5fa0=_0x4fcad7[0x0][_0x11edeb(0x2a0)]['textRanges'];Array[_0x11edeb(0x4d8)](_0x5d5fa0)&&_0x5d5fa0[_0x11edeb(0x37d)]>0x0&&((_0x53a607=(_0x45ced1=this[_0x11edeb(0x50a)])[_0x11edeb(0x2d1)])==null||_0x53a607[_0x11edeb(0x275)](_0x45ced1,{'unitID':_0x203b11,'memberID':_0x323d65,'textRanges':_0x5d5fa0}));}}['_updateLocalCache'](){const _0x4e1234=_0x364156;this['_localCacheService'][_0x4e1234(0x2a3)](this['unitID'],this[_0x4e1234(0x451)],this['_awaitingChangeset'],this[_0x4e1234(0x47e)]);}[_0x364156(0x469)](){const _0x1e9608=_0x364156;return this[_0x1e9608(0x53a)][_0x1e9608(0x514)](this[_0x1e9608(0x1e9)]);}[_0x364156(0x1dc)](){const _0x36b777=_0x364156;this[_0x36b777(0x53a)][_0x36b777(0x1f3)](this['unitID']);}[_0x364156(0x2e7)](_0x39a5d0){const _0x48e2e3=_0x364156;var _0x4dfc6b;const _0x88b9b2=this[_0x48e2e3(0x318)](_0x39a5d0),_0x4fb253=a[_0x48e2e3(0x4c5)](_0x88b9b2[_0x48e2e3(0x480)],this[_0x48e2e3(0x1e1)],{'fromCollab':!0x0});if(!_0x4fb253['result'])throw _0x4fb253[_0x48e2e3(0x381)]instanceof Error?_0x4fb253[_0x48e2e3(0x381)]:new Error((_0x4dfc6b=_0x4fb253[_0x48e2e3(0x381)])!=null?_0x4dfc6b:_0x48e2e3(0x2ee));this[_0x48e2e3(0x3d8)](_0x88b9b2),this[_0x48e2e3(0x205)](_0x39a5d0),this[_0x48e2e3(0x423)](_0x88b9b2),this[_0x48e2e3(0x4e1)](_0x88b9b2),this['_incrementRevisionNumber']();}}let ce=class extends X{constructor(_0x49e999,_0x483724,_0x5825c5,_0x4723c3,_0x20d6cf,_0x1182ef,_0x259d1c,_0x3814d1,_0xf2b96e){const _0x998c65=_0x364156;super(_0x49e999,_0x483724,null,[],_0x5825c5,_0x3814d1,_0x259d1c,_0x4723c3,_0x20d6cf),d(this,_0x998c65(0x1d4),_0x998c65(0x417)),(this['_injector']=_0x1182ef,this[_0x998c65(0x3f3)]=_0xf2b96e);}[_0x364156(0x319)](_0x1b9a40){const _0xbd51e6=_0x364156,_0x4aa477=this[_0xbd51e6(0x34f)]['createInstance'](j,this[_0xbd51e6(0x1e9)],this[_0xbd51e6(0x451)],[_0x1b9a40],this[_0xbd51e6(0x50a)]);return _0x4aa477['_schedule'](),_0x4aa477['_updateLocalCache'](),_0x4aa477;}['onRemoteChangeset'](_0x577021){const _0x329742=_0x364156;if(this[_0x329742(0x221)](_0x577021))return this[_0x329742(0x34f)]['createInstance'](x,this[_0x329742(0x1e9)],this['type'],null,[],null,[_0x577021],this[_0x329742(0x50a)]);try{return this[_0x329742(0x2e7)](_0x577021),this;}catch(_0x1e70de){return this['_logService']['error'](_0x329742(0x3d2),_0x1e70de),this;}}[_0x364156(0x2fc)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x364156(0x51f)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x364156(0x484)](){const _0xd7aee9=_0x364156;return this['_injector']['createInstance'](B,this['unitID'],this[_0xd7aee9(0x451)],null,[],this['_handler']);}[_0x364156(0x2a5)](){return this;}['resend'](){const _0x50ce10=_0x364156;throw new Error(_0x50ce10(0x408));}};ce=K([f(0x3,h[_0x364156(0x24e)](u[_0x364156(0x549)])),f(0x4,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),f(0x5,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x6,a[_0x364156(0x3ab)]),f(0x7,a['ICommandService']),f(0x8,a[_0x364156(0x476)])],ce);let j=class extends X{constructor(_0x885126,_0x3cb894,_0x33559c,_0x7c8dd3,_0x20d534,_0x1e5246,_0x17a1d9,_0x38a583,_0xaa6a5,_0x9a5ea2,_0x1e19a5,_0x419d63,_0x9fb8c,_0x3f9182){const _0x2560ef=_0x364156;super(_0x885126,_0x3cb894,null,_0x33559c,_0x7c8dd3,_0x9a5ea2,_0x3f9182,_0x1e5246,_0x17a1d9),d(this,'status',_0x2560ef(0x245)),d(this,_0x2560ef(0x317),null),d(this,_0x2560ef(0x568),null),(this[_0x2560ef(0x34f)]=_0x20d534,this[_0x2560ef(0x302)]=_0x38a583,this[_0x2560ef(0x3f3)]=_0xaa6a5,this['_configService']=_0x1e19a5,this['_transformService']=_0x419d63,this[_0x2560ef(0x53b)]=_0x9fb8c);}[_0x364156(0x319)](_0x353150){const _0x3e6862=_0x364156;return this[_0x3e6862(0x47e)][_0x3e6862(0x528)](_0x353150),this[_0x3e6862(0x3e6)](),this;}[_0x364156(0x220)](_0x38e518){const _0x3b34eb=_0x364156;if(this['_checkMissing'](_0x38e518))return this[_0x3b34eb(0x4ce)](),this[_0x3b34eb(0x34f)][_0x3b34eb(0x1c6)](x,this['unitID'],this['type'],null,this['_pendingMutations'],null,[_0x38e518],this[_0x3b34eb(0x50a)]);try{const _0x382b92=this[_0x3b34eb(0x456)]['transformMutationsWithChangeset'](_0x38e518,this[_0x3b34eb(0x47e)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x382b92)){const {c1Prime:_0x9cf630,m2Prime:_0x27d0bc}=_0x382b92;this['_executeRemoteChangeset'](_0x9cf630);const _0x32338d=this[_0x3b34eb(0x34f)]['createInstance'](j,this['unitID'],this[_0x3b34eb(0x451)],_0x27d0bc,this[_0x3b34eb(0x50a)]);return this[_0x3b34eb(0x4ce)](),_0x32338d[_0x3b34eb(0x436)](this[_0x3b34eb(0x317)]?Math[_0x3b34eb(0x361)](0x0,new Date()[_0x3b34eb(0x1f0)]()-this[_0x3b34eb(0x317)]):this['_getSendChangesetTimeout']()),_0x32338d;}throw _0x382b92[_0x3b34eb(0x381)];}catch(_0x5dcf89){return this[_0x3b34eb(0x3f3)][_0x3b34eb(0x381)](_0x5dcf89),this['_onConflict'](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x364156(0x51f)](){const _0xf5a90c=_0x364156;throw new Error(_0xf5a90c(0x328));}[_0x364156(0x484)](){const _0x2cac8e=_0x364156;return this[_0x2cac8e(0x4ce)](),this[_0x2cac8e(0x34f)][_0x2cac8e(0x1c6)](B,this['unitID'],this[_0x2cac8e(0x451)],null,this[_0x2cac8e(0x47e)],this[_0x2cac8e(0x50a)]);}[_0x364156(0x2a5)](){return this;}['_schedule'](_0x35d2f0){const _0xf731db=_0x364156;_0x35d2f0=_0x35d2f0!=null?_0x35d2f0:this['_getSendChangesetTimeout'](),this['_scheduleTimestamp']=new Date()['getTime'](),this[_0xf731db(0x568)]=setTimeout(()=>{const _0x74ac5e=_0xf731db;this['_clearScheduledTask']();let _0x2daf62=null;switch(this[_0x74ac5e(0x451)]){case $[_0x74ac5e(0x350)]:{_0x2daf62=Os(this[_0x74ac5e(0x47e)],this[_0x74ac5e(0x1e9)],this[_0x74ac5e(0x53b)],this[_0x74ac5e(0x53a)],this[_0x74ac5e(0x302)]);break;}case $[_0x74ac5e(0x287)]:{_0x2daf62=Ds(this[_0x74ac5e(0x47e)],this[_0x74ac5e(0x1e9)],this[_0x74ac5e(0x53b)],this[_0x74ac5e(0x53a)],this[_0x74ac5e(0x302)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x74ac5e(0x451)]+'\x20in\x20_schedule.');}const {changeset:_0x300520,pendingMutations:_0x4dba98}=_0x2daf62;this['_handler'][_0x74ac5e(0x26a)](_0x300520);const _0x57c662=_0x4dba98['length']?this[_0x74ac5e(0x34f)][_0x74ac5e(0x1c6)](H,this[_0x74ac5e(0x1e9)],this['type'],_0x300520,_0x4dba98,this[_0x74ac5e(0x50a)]):this[_0x74ac5e(0x34f)][_0x74ac5e(0x1c6)](k,this[_0x74ac5e(0x1e9)],this[_0x74ac5e(0x451)],_0x300520,this['_handler']);_0x57c662[_0x74ac5e(0x3e6)](),this[_0x74ac5e(0x50a)][_0x74ac5e(0x1fd)](this,_0x57c662);},_0x35d2f0);}[_0x364156(0x383)](){const _0x3671b2=_0x364156;var _0x43acda;return(_0x43acda=this[_0x3671b2(0x53e)][_0x3671b2(0x58b)](dt))!=null?_0x43acda:Wt;}['resend'](){const _0x5a19ca=_0x364156;throw new Error(_0x5a19ca(0x57b));}[_0x364156(0x4ce)](){const _0x1bdb1c=_0x364156;this[_0x1bdb1c(0x568)]!=null&&(clearTimeout(this[_0x1bdb1c(0x568)]),this['_sendingTimer']=null);}['_onConflict'](_0x23160c){const _0x3f9e60=_0x364156;return this[_0x3f9e60(0x4ce)](),this[_0x3f9e60(0x34f)][_0x3f9e60(0x1c6)](Y,this[_0x3f9e60(0x1e9)],this['type'],null,this[_0x3f9e60(0x47e)],this[_0x3f9e60(0x50a)],_0x23160c);}};j=K([f(0x4,h[_0x364156(0x24e)](h['Injector'])),f(0x5,h[_0x364156(0x24e)](u[_0x364156(0x549)])),f(0x6,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),f(0x7,h[_0x364156(0x24e)](G)),f(0x8,a['ILogService']),f(0x9,a[_0x364156(0x542)]),f(0xa,a[_0x364156(0x36a)]),f(0xb,u[_0x364156(0x3d0)]),f(0xc,a[_0x364156(0x58c)]),f(0xd,a[_0x364156(0x3ab)])],j);let k=class extends X{constructor(_0x1f10cb,_0x2a32fd,_0x1e0187,_0x1f1242,_0x1172a8,_0x98887f,_0x2ae24e,_0x2148c6,_0x7eb216,_0x57bb6e,_0x129659){const _0x3fe8f1=_0x364156;super(_0x1f10cb,_0x2a32fd,_0x1e0187,[],_0x1f1242,_0x2148c6,_0x129659,_0x98887f,_0x2ae24e),d(this,_0x3fe8f1(0x1d4),'awaiting'),(this[_0x3fe8f1(0x34f)]=_0x1172a8,this[_0x3fe8f1(0x3f3)]=_0x7eb216,this[_0x3fe8f1(0x456)]=_0x57bb6e);}[_0x364156(0x319)](_0xface23){const _0x130399=_0x364156,_0x413e62=this[_0x130399(0x34f)][_0x130399(0x1c6)](H,this[_0x130399(0x1e9)],this[_0x130399(0x451)],this[_0x130399(0x1d3)],[_0xface23],this['_handler']);return _0x413e62[_0x130399(0x3e6)](),_0x413e62;}[_0x364156(0x220)](_0x37abed){const _0x145783=_0x364156;if(this[_0x145783(0x221)](_0x37abed))return this[_0x145783(0x34f)][_0x145783(0x1c6)](x,this['unitID'],this[_0x145783(0x451)],this[_0x145783(0x1d3)],[],null,[_0x37abed],this[_0x145783(0x50a)]);try{const _0x153d21=this[_0x145783(0x456)][_0x145783(0x25a)]([_0x37abed],[this[_0x145783(0x1d3)]],!0x1);if(u['isTransformChangesetsSuccess'](_0x153d21)){const {c1Prime:_0x4b85b6,c2Prime:_0x4c0a08}=_0x153d21;this['_executeRemoteChangeset'](_0x4b85b6[0x0]),_0x4c0a08[0x0][_0x145783(0x447)]=this[_0x145783(0x469)]();const _0x28ee68=this[_0x145783(0x34f)][_0x145783(0x1c6)](k,this['unitID'],this[_0x145783(0x451)],_0x4c0a08[0x0],this[_0x145783(0x50a)]);return _0x28ee68['_updateLocalCache'](),_0x28ee68;}return this[_0x145783(0x46f)](!0x1);}catch(_0x3fa3b0){return this['_logService'][_0x145783(0x381)](_0x3fa3b0),this[_0x145783(0x46f)](!0x1);}}['onRemoteAck'](_0x34fa5b){const _0x4909f2=_0x364156,_0x241aaa=this[_0x4909f2(0x53a)]['getCurrentRevForDocument'](this[_0x4909f2(0x1e9)]);if(_0x34fa5b['revision']<_0x241aaa-0x1)return this;if(this[_0x4909f2(0x221)](_0x34fa5b))return this[_0x4909f2(0x34f)]['createInstance'](x,this['unitID'],this[_0x4909f2(0x451)],null,[],this[_0x4909f2(0x1d3)],[],this[_0x4909f2(0x50a)]);this[_0x4909f2(0x1dc)]();const _0x37a2bb=this[_0x4909f2(0x34f)]['createInstance'](ce,this[_0x4909f2(0x1e9)],this[_0x4909f2(0x451)],this['_handler']);return _0x37a2bb['_updateLocalCache'](),_0x37a2bb;}['onRemoteRej'](_0x12d711){const _0xad915d=_0x364156;return this[_0xad915d(0x46f)](!!(_0x12d711!=null&&_0x12d711['isPermissionRej']));}[_0x364156(0x484)](){const _0x55c6bc=_0x364156;return this['_injector']['createInstance'](B,this[_0x55c6bc(0x1e9)],this['type'],this[_0x55c6bc(0x1d3)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x364156(0x1fa)](){const _0x4843fa=_0x364156;this[_0x4843fa(0x50a)]['onSendChangeset'](this[_0x4843fa(0x1d3)]);}[_0x364156(0x46f)](_0x2baa37){const _0xf37b9c=_0x364156;return this['_injector'][_0xf37b9c(0x1c6)](Y,this[_0xf37b9c(0x1e9)],this['type'],this[_0xf37b9c(0x1d3)],[],this['_handler'],_0x2baa37);}};k=K([f(0x4,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x5,h[_0x364156(0x24e)](u[_0x364156(0x549)])),f(0x6,h['Inject'](exports['LocalCacheService'])),f(0x7,a[_0x364156(0x542)]),f(0x8,a[_0x364156(0x476)]),f(0x9,u[_0x364156(0x3d0)]),f(0xa,a[_0x364156(0x3ab)])],k);let H=class extends X{constructor(_0x9e836d,_0x1bd637,_0x8011ee,_0x29de9b,_0x4eb24d,_0x20cbb2,_0x357ee8,_0x51aa0f,_0x1a06ef,_0x97f0e9,_0x49f2c2,_0x281220){const _0x23b224=_0x364156;super(_0x9e836d,_0x1bd637,_0x8011ee,_0x29de9b,_0x4eb24d,_0x1a06ef,_0x281220,_0x357ee8,_0x51aa0f),d(this,_0x23b224(0x1d4),_0x23b224(0x2c2)),(this[_0x23b224(0x34f)]=_0x20cbb2,this[_0x23b224(0x3f3)]=_0x97f0e9,this[_0x23b224(0x456)]=_0x49f2c2);}[_0x364156(0x319)](_0x227440){const _0x5c2cf0=_0x364156;return this['_pendingMutations'][_0x5c2cf0(0x528)](_0x227440),this;}[_0x364156(0x220)](_0x38d5bb){const _0x3b1255=_0x364156;if(this[_0x3b1255(0x221)](_0x38d5bb))return this[_0x3b1255(0x34f)][_0x3b1255(0x1c6)](x,this[_0x3b1255(0x1e9)],this[_0x3b1255(0x451)],this[_0x3b1255(0x1d3)],this[_0x3b1255(0x47e)],null,[_0x38d5bb],this[_0x3b1255(0x50a)]);try{const _0x229d28=this[_0x3b1255(0x456)]['transformChangesets']([_0x38d5bb],[this['_awaitingChangeset']],!0x1);if(u['isTransformChangesetsSuccess'](_0x229d28)){const {c1Prime:_0xbb33cf,c2Prime:_0x167ed8}=_0x229d28,_0x3e11e4=this['_transformService'][_0x3b1255(0x3c0)](_0xbb33cf[0x0],this[_0x3b1255(0x47e)]);if(u['isTransformMutationsWithChangesetSuccess'](_0x3e11e4)){const {c1Prime:_0x401452,m2Prime:_0x1a5ec0}=_0x3e11e4;return this[_0x3b1255(0x2e7)](_0x401452),_0x167ed8[0x0][_0x3b1255(0x447)]=this[_0x3b1255(0x469)](),this[_0x3b1255(0x34f)][_0x3b1255(0x1c6)](H,this['unitID'],this[_0x3b1255(0x451)],_0x167ed8[0x0],_0x1a5ec0,this['_handler']);}throw _0x3e11e4[_0x3b1255(0x381)];}throw _0x229d28[_0x3b1255(0x381)];}catch(_0x409f07){return this['_logService'][_0x3b1255(0x381)](_0x409f07),this[_0x3b1255(0x46f)](!0x1);}}[_0x364156(0x2fc)](_0xaa6fc0){const _0xc649ad=_0x364156;if(this['_checkMissing'](_0xaa6fc0))return this[_0xc649ad(0x34f)][_0xc649ad(0x1c6)](x,this['unitID'],this['type'],null,this[_0xc649ad(0x47e)],this[_0xc649ad(0x1d3)],[],this[_0xc649ad(0x50a)]);this['_incrementRevisionNumber']();const _0x4ed8b5=this[_0xc649ad(0x34f)]['createInstance'](j,this['unitID'],this[_0xc649ad(0x451)],this[_0xc649ad(0x47e)],this['_handler']);return _0x4ed8b5[_0xc649ad(0x436)](),_0x4ed8b5['_updateLocalCache'](),_0x4ed8b5;}[_0x364156(0x51f)](_0x222bda){const _0x21ac3b=_0x364156;return this['_onConflict'](!!(_0x222bda!=null&&_0x222bda[_0x21ac3b(0x3db)]));}['toggleOffline'](){const _0x467582=_0x364156;return this[_0x467582(0x34f)][_0x467582(0x1c6)](B,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x467582(0x47e)],this[_0x467582(0x50a)]);}[_0x364156(0x2a5)](){return this;}[_0x364156(0x1fa)](){const _0x279b45=_0x364156;this[_0x279b45(0x50a)][_0x279b45(0x26a)](this['_awaitingChangeset']);}[_0x364156(0x46f)](_0x48140e){const _0x3501cc=_0x364156;return this['_injector']['createInstance'](Y,this['unitID'],this[_0x3501cc(0x451)],null,this[_0x3501cc(0x47e)],this[_0x3501cc(0x50a)],_0x48140e);}};H=K([f(0x5,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x6,h['Inject'](u['RevisionService'])),f(0x7,h[_0x364156(0x24e)](exports['LocalCacheService'])),f(0x8,a[_0x364156(0x542)]),f(0x9,a[_0x364156(0x476)]),f(0xa,u[_0x364156(0x3d0)]),f(0xb,a[_0x364156(0x3ab)])],H);let Y=class extends X{constructor(_0x5a0904,_0x48334a,_0x12d846,_0x27aebf,_0x5518b9,_0x57ff5c=!0x1,_0x546caf,_0x2d53ff,_0x3307a0,_0x1f2b78,_0x55713c,_0x1f472d,_0x4cef72){const _0x5609fa=_0x364156;super(_0x5a0904,_0x48334a,_0x12d846,_0x27aebf,_0x5518b9,_0x2d53ff,_0x3307a0,_0x55713c,_0x1f2b78),d(this,_0x5609fa(0x1d4),_0x5609fa(0x398)),(this[_0x5609fa(0x37c)]=_0x57ff5c,this[_0x5609fa(0x1e5)]=_0x546caf,this[_0x5609fa(0x251)]=_0x1f472d,this['_notificationService']=_0x4cef72,this[_0x5609fa(0x2d9)](),this[_0x5609fa(0x2f8)](),this[_0x5609fa(0x458)]());}[_0x364156(0x319)](){return this;}[_0x364156(0x220)](){return this;}[_0x364156(0x2fc)](){return this;}[_0x364156(0x51f)](){return this;}[_0x364156(0x484)](){return this;}[_0x364156(0x2a5)](){return this;}[_0x364156(0x1fa)](){const _0x3bb83=_0x364156;throw new Error(_0x3bb83(0x501));}[_0x364156(0x2f8)](){const _0x4dda7f=_0x364156;this[_0x4dda7f(0x520)]['updateOfflineData'](this[_0x4dda7f(0x1e9)],this[_0x4dda7f(0x451)],null,[]);}['_showConflictNotification'](){const _0x42d023=_0x364156;this[_0x42d023(0x37c)]?this['_notificationService'][_0x42d023(0x3f0)]({'title':this[_0x42d023(0x251)]['t']('permission.title'),'content':this[_0x42d023(0x251)]['t']('permission.content'),'type':_0x42d023(0x381),'duration':0x0}):this[_0x42d023(0x4fb)][_0x42d023(0x3f0)]({'title':this[_0x42d023(0x251)]['t']('conflict.title'),'content':this[_0x42d023(0x251)]['t'](_0x42d023(0x4c3)),'type':_0x42d023(0x381),'duration':0x0});}[_0x364156(0x458)](){const _0x4226ef=_0x364156;this['_permissionService']['updatePermissionPoint'](new E['WorkbookEditablePermission'](this[_0x4226ef(0x1e9)])['id'],!0x1);}};Y=K([f(0x6,h[_0x364156(0x24e)](a[_0x364156(0x3f8)])),f(0x7,a[_0x364156(0x542)]),f(0x8,a[_0x364156(0x3ab)]),f(0x9,h[_0x364156(0x24e)](exports['LocalCacheService'])),f(0xa,h['Inject'](u[_0x364156(0x549)])),f(0xb,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),f(0xc,M[_0x364156(0x264)])],Y);let B=class extends X{constructor(_0x1cc7df,_0xcecc4e,_0x406b72,_0xb8461a,_0x194d82,_0x2834ba,_0x14818a,_0x4b2a77,_0x2b5323,_0x1185c2){const _0x522042=_0x364156;super(_0x1cc7df,_0xcecc4e,_0x406b72,_0xb8461a,_0x194d82,_0x2b5323,_0x1185c2,_0x14818a,_0x4b2a77),d(this,'status',_0x522042(0x241)),this['_injector']=_0x2834ba;}[_0x364156(0x319)](_0x3f48b6){const _0x1df83b=_0x364156;return this[_0x1df83b(0x47e)][_0x1df83b(0x528)](_0x3f48b6),this[_0x1df83b(0x3e6)](),this;}[_0x364156(0x220)](_0x3d56ed){const _0x6f30e3=_0x364156;throw new Error(_0x6f30e3(0x448));}['onRemoteAck'](){const _0xa7231d=_0x364156;throw new Error(_0xa7231d(0x30d));}[_0x364156(0x51f)](){const _0x5748dd=_0x364156;throw new Error(_0x5748dd(0x2d3));}['toggleOffline'](){return this;}['toggleOnline'](){const _0x288b7e=_0x364156,{_injector:_0x18bd92,_pendingMutations:_0xed6a10,_awaitingChangeset:_0x2f64f3,unitID:_0x236b24,_handler:_0x123093,type:_0x584c72}=this,_0x46647c=Ot(_0x18bd92,_0x236b24,_0x584c72,_0x2f64f3,_0xed6a10,_0x123093);return _0x46647c instanceof j?_0x46647c['_schedule']():(_0x46647c instanceof H||_0x46647c instanceof k)&&_0x46647c[_0x288b7e(0x1fa)](),_0x46647c;}[_0x364156(0x1fa)](){const _0x298705=_0x364156;throw new Error(_0x298705(0x4cb));}};B=K([f(0x5,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x6,h[_0x364156(0x24e)](u['RevisionService'])),f(0x7,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),f(0x8,a[_0x364156(0x542)]),f(0x9,a[_0x364156(0x3ab)])],B);let x=class extends X{constructor(_0x1decbf,_0x3d5566,_0x57a680,_0x514ebc,_0x4985b7,_0x2d97ee,_0x481ea6,_0x38e614,_0x14d149,_0x4119f5,_0x4cef22,_0x409051,_0x441f1b,_0x20f2b5){const _0x210c0a=_0x364156;super(_0x1decbf,_0x3d5566,_0x57a680,_0x514ebc,_0x481ea6,_0x409051,_0x441f1b,_0x14d149,_0x4119f5),d(this,_0x210c0a(0x1d4),'fetch_missing'),(this[_0x210c0a(0x4ea)]=_0x4985b7,this[_0x210c0a(0x203)]=_0x2d97ee,this[_0x210c0a(0x34f)]=_0x38e614,this[_0x210c0a(0x3f3)]=_0x4cef22,this[_0x210c0a(0x456)]=_0x20f2b5);}[_0x364156(0x466)](_0xb92b94){const _0xca831=_0x364156;try{const _0x2be4a0=[..._0xb92b94,...this['_queuedRemoteChangesets']],_0x342682=[this[_0xca831(0x1d3)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x192a9c=>!!_0x192a9c);let _0x549428,_0x2b9f32;if(_0x342682[_0xca831(0x37d)]){const _0x38a4e6=this[_0xca831(0x456)][_0xca831(0x25a)](_0x2be4a0,_0x342682,!0x1);if(!u[_0xca831(0x46d)](_0x38a4e6))throw _0x38a4e6[_0xca831(0x381)];_0x549428=_0x38a4e6[_0xca831(0x481)],_0x2b9f32=_0x38a4e6[_0xca831(0x44c)];}else _0x549428=_0x2be4a0,_0x2b9f32=[];let _0x3b3507=this[_0xca831(0x47e)];_0x549428['forEach'](_0x36f785=>{const _0x21eff0=_0xca831;let _0x434779;if(_0x3b3507[_0x21eff0(0x37d)]){const _0x811767=this[_0x21eff0(0x456)]['transformMutationsWithChangeset'](_0x36f785,_0x3b3507);if(!u[_0x21eff0(0x468)](_0x811767))throw _0x811767[_0x21eff0(0x381)];_0x434779=_0x811767[_0x21eff0(0x481)],_0x3b3507=_0x811767['m2Prime'];}else _0x434779=_0x36f785;this[_0x21eff0(0x2e7)](_0x434779);}),this[_0xca831(0x4ea)]&&this[_0xca831(0x1dc)](),this['_awaitingChangeset']&&_0x2b9f32[_0xca831(0x37d)]&&(_0x2b9f32[0x0][_0xca831(0x447)]=this['_getCurrentRevision']());let _0x4fa79e;if(this[_0xca831(0x1d3)]&&_0x3b3507[_0xca831(0x37d)]!==0x0)_0x4fa79e=this[_0xca831(0x34f)][_0xca831(0x1c6)](H,this[_0xca831(0x1e9)],this[_0xca831(0x451)],_0x2b9f32[0x0],_0x3b3507,this[_0xca831(0x50a)]);else{if(this[_0xca831(0x1d3)]&&_0x3b3507[_0xca831(0x37d)]===0x0)_0x2b9f32[0x0][_0xca831(0x447)]=this[_0xca831(0x469)](),_0x4fa79e=this[_0xca831(0x34f)]['createInstance'](k,this[_0xca831(0x1e9)],this[_0xca831(0x451)],_0x2b9f32[0x0],this[_0xca831(0x50a)]);else{if(_0x3b3507[_0xca831(0x37d)]!==0x0){const _0x121f2d=this[_0xca831(0x34f)][_0xca831(0x1c6)](j,this[_0xca831(0x1e9)],this[_0xca831(0x451)],_0x3b3507,this[_0xca831(0x50a)]);_0x121f2d['_schedule'](),_0x4fa79e=_0x121f2d;}else _0x4fa79e=this[_0xca831(0x34f)][_0xca831(0x1c6)](ce,this[_0xca831(0x1e9)],this[_0xca831(0x451)],this[_0xca831(0x50a)]);}}return _0x4fa79e[_0xca831(0x3e6)](),_0x4fa79e;}catch(_0xc2eeed){return this[_0xca831(0x3f3)][_0xca831(0x381)](_0xca831(0x384),'failed\x20to\x20apply\x20missed\x20changesets!',_0xc2eeed),this['_injector']['createInstance'](Y,this[_0xca831(0x1e9)],this['type'],this['_awaitingChangeset'],this[_0xca831(0x47e)],this[_0xca831(0x50a)],!0x1);}}['resend'](){const _0x397304=_0x364156;throw new Error(_0x397304(0x55a));}['appendMutation'](_0x3348e2){const _0x41e34a=_0x364156;return this[_0x41e34a(0x47e)][_0x41e34a(0x528)](_0x3348e2),this;}[_0x364156(0x220)](_0x724b64){const _0x29ac15=_0x364156;return this[_0x29ac15(0x203)][_0x29ac15(0x528)](_0x724b64),this;}[_0x364156(0x2fc)](_0x1127cb){const _0x34b791=_0x364156;if(this[_0x34b791(0x1d3)])return this[_0x34b791(0x4ea)]=this[_0x34b791(0x1d3)],this[_0x34b791(0x1d3)]=null,this;throw new Error(_0x34b791(0x234));}[_0x364156(0x51f)](_0x32f273){const _0xaa9818=_0x364156;return this[_0xaa9818(0x46f)](!!(_0x32f273!=null&&_0x32f273['isPermissionRej']));}[_0x364156(0x484)](){const _0x5df259=_0x364156;return this[_0x5df259(0x34f)][_0x5df259(0x1c6)](B,this['unitID'],this[_0x5df259(0x451)],this[_0x5df259(0x1d3)],this[_0x5df259(0x47e)],this[_0x5df259(0x50a)]);}[_0x364156(0x2a5)](){return this;}[_0x364156(0x46f)](_0x1ffd0e){const _0x519161=_0x364156;return this[_0x519161(0x34f)][_0x519161(0x1c6)](Y,this[_0x519161(0x1e9)],this[_0x519161(0x451)],this[_0x519161(0x1d3)],this[_0x519161(0x47e)],this[_0x519161(0x50a)],_0x1ffd0e);}};x=K([f(0x7,h[_0x364156(0x24e)](h[_0x364156(0x443)])),f(0x8,h['Inject'](u[_0x364156(0x549)])),f(0x9,h[_0x364156(0x24e)](exports['LocalCacheService'])),f(0xa,a[_0x364156(0x476)]),f(0xb,a[_0x364156(0x542)]),f(0xc,a[_0x364156(0x3ab)]),f(0xd,u[_0x364156(0x3d0)])],x);function Ot(_0x4ec6c0,_0x18f8cc,_0x4edad3,_0x4745bf,_0x15f89c,_0x579fba){const _0x419ec2=_0x364156;return _0x4745bf&&_0x15f89c['length']?_0x4ec6c0[_0x419ec2(0x1c6)](H,_0x18f8cc,_0x4edad3,_0x4745bf,_0x15f89c,_0x579fba):_0x4745bf?_0x4ec6c0['createInstance'](k,_0x18f8cc,_0x4edad3,_0x4745bf,_0x579fba):_0x15f89c['length']?_0x4ec6c0[_0x419ec2(0x1c6)](j,_0x18f8cc,_0x4edad3,_0x15f89c,_0x579fba):_0x4ec6c0['createInstance'](ce,_0x18f8cc,_0x4edad3,_0x579fba);}var ws=Object[_0x364156(0x53c)],ys=Object[_0x364156(0x55c)],be=(_0x1d0ba9,_0x576130,_0x14af1c,_0x1255b7)=>{for(var _0xcc25c8=_0x1255b7>0x1?void 0x0:_0x1255b7?ys(_0x576130,_0x14af1c):_0x576130,_0x3b62d3=_0x1d0ba9['length']-0x1,_0x5e5855;_0x3b62d3>=0x0;_0x3b62d3--)(_0x5e5855=_0x1d0ba9[_0x3b62d3])&&(_0xcc25c8=(_0x1255b7?_0x5e5855(_0x576130,_0x14af1c,_0xcc25c8):_0x5e5855(_0xcc25c8))||_0xcc25c8);return _0x1255b7&&_0xcc25c8&&ws(_0x576130,_0x14af1c,_0xcc25c8),_0xcc25c8;},p=(_0x507e81,_0x2b1404)=>(_0x4c4d84,_0x476a3f)=>_0x2b1404(_0x4c4d84,_0x476a3f,_0x507e81);exports[_0x364156(0x3d9)]=class extends a[_0x364156(0x306)]{constructor(_0x23805c,_0xeb5ac1,_0x37f875){const _0x46f6ad=_0x364156;super(),d(this,'_entities',new Map()),d(this,_0x46f6ad(0x388),new g[(_0x46f6ad(0x2c1))]()),(this[_0x46f6ad(0x34f)]=_0x23805c,this[_0x46f6ad(0x569)]=_0xeb5ac1,this['_univerInstanceService']=_0x37f875,this[_0x46f6ad(0x477)]());}[_0x364156(0x266)](){const _0x3a3e46=_0x364156;super[_0x3a3e46(0x266)](),this['_entities'][_0x3a3e46(0x2b1)](_0x108a61=>_0x108a61['dispose']()),this['_entities'][_0x3a3e46(0x23d)]();}[_0x364156(0x482)](_0x144afd){const _0x77506c=_0x364156;var _0x759274;return(_0x759274=this['_entities'][_0x77506c(0x3f4)](_0x144afd))!=null?_0x759274:null;}[_0x364156(0x21d)](_0x36424d){const _0x249be6=_0x364156,_0x2c7eb9=this[_0x249be6(0x482)](_0x36424d);return _0x2c7eb9?g['of'](_0x2c7eb9):this[_0x249be6(0x388)]['pipe'](C[_0x249be6(0x218)](_0x456f6c=>_0x456f6c['unitID']===_0x36424d));}[_0x364156(0x477)](){const _0x18b718=_0x364156;this['_univerInstanceService'][_0x18b718(0x4e3)](a[_0x18b718(0x38c)][_0x18b718(0x350)])[_0x18b718(0x1f5)](g['takeUntil'](this[_0x18b718(0x55d)]),C[_0x18b718(0x518)](0x10))['subscribe'](async _0x15194f=>{const _0xd918bd=_0x18b718,_0x25d598=_0x15194f[_0xd918bd(0x38b)](),_0x50e17c=await this[_0xd918bd(0x434)](_0x25d598,$['UNIVER_SHEET']);this[_0xd918bd(0x552)]['set'](_0x25d598,_0x50e17c);}),this[_0x18b718(0x53b)][_0x18b718(0x4e3)](a[_0x18b718(0x38c)][_0x18b718(0x287)])['pipe'](g['takeUntil'](this[_0x18b718(0x55d)]),C['delay'](0x10))['pipe'](C['filter'](_0x3a032a=>!_0x3a032a[_0x18b718(0x38b)]()[_0x18b718(0x508)]('__')))[_0x18b718(0x4f5)](async _0x3fbf9f=>{const _0x47d880=_0x18b718,_0x1f7556=_0x3fbf9f[_0x47d880(0x38b)](),_0x3c2f15=await this[_0x47d880(0x434)](_0x1f7556,$[_0x47d880(0x287)]);this[_0x47d880(0x552)][_0x47d880(0x490)](_0x1f7556,_0x3c2f15);}),g[_0x18b718(0x3ba)](this[_0x18b718(0x53b)][_0x18b718(0x2d4)](a[_0x18b718(0x38c)][_0x18b718(0x350)]),this[_0x18b718(0x53b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x18b718(0x287)]))[_0x18b718(0x1f5)](g['takeUntil'](this[_0x18b718(0x55d)]))[_0x18b718(0x4f5)](_0x504e1e=>{const _0x5621b2=_0x18b718,_0x1b1fad=_0x504e1e['getUnitId'](),_0x531fa1=this['_entities'][_0x5621b2(0x3f4)](_0x1b1fad);_0x531fa1&&(_0x531fa1[_0x5621b2(0x266)](),this[_0x5621b2(0x552)][_0x5621b2(0x4b0)](_0x1b1fad));});}async[_0x364156(0x434)](_0x22c4f6,_0x397e0d){const _0x4a2e5d=_0x364156,_0x20e4a8=await this[_0x4a2e5d(0x569)]['requireSession'](_0x22c4f6),_0x221f31=this['_injector'][_0x4a2e5d(0x1c6)](this['_getCtorByUniverType'](_0x397e0d),_0x22c4f6,_0x397e0d,_0x20e4a8);return await _0x221f31['init'](),this[_0x4a2e5d(0x388)]['next'](_0x221f31),_0x221f31;}[_0x364156(0x1c9)](_0x385c06){const _0x58a26b=_0x364156;switch(_0x385c06){case $[_0x58a26b(0x287)]:return Ne;case $[_0x58a26b(0x350)]:return Me;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x385c06);}}},exports['CollaborationController']=be([a[_0x364156(0x4a4)](a[_0x364156(0x20a)][_0x364156(0x29c)],exports[_0x364156(0x3d9)]),p(0x0,h['Inject'](h['Injector'])),p(0x1,h['Inject'](exports[_0x364156(0x378)])),p(0x2,a[_0x364156(0x58c)])],exports[_0x364156(0x3d9)]);let pe=class extends a[_0x364156(0x306)]{constructor(_0x7f3329,_0x30b663,_0x3b5ca7,_0x15e558,_0x3d7a2a,_0x28e69f,_0x5da36f,_0x415498,_0x5745e2,_0x194f4a,_0x21c2f4,_0x4490ba,_0xccc99d){const _0x3c9bec=_0x364156;super(),d(this,_0x3c9bec(0x3be),new g['BehaviorSubject'](null)),d(this,'state$',this[_0x3c9bec(0x3be)][_0x3c9bec(0x485)]()),d(this,'_state'),d(this,_0x3c9bec(0x581),!0x1),d(this,_0x3c9bec(0x48a),this[_0x3c9bec(0x362)]['pipe'](C['map'](_0xd45418=>_0xd45418?_0xd45418[_0x3c9bec(0x1d4)]:U[_0x3c9bec(0x209)]),C['shareReplay'](0x1))),d(this,_0x3c9bec(0x3b7),!0x1),d(this,'_remoteChangesetQueue',[]),(this[_0x3c9bec(0x1e9)]=_0x7f3329,this[_0x3c9bec(0x377)]=_0x30b663,this[_0x3c9bec(0x393)]=_0x3b5ca7,this[_0x3c9bec(0x34f)]=_0x15e558,this['_localCacheService']=_0x3d7a2a,this[_0x3c9bec(0x31a)]=_0x28e69f,this[_0x3c9bec(0x251)]=_0x5da36f,this[_0x3c9bec(0x53a)]=_0x415498,this[_0x3c9bec(0x3f3)]=_0x5745e2,this[_0x3c9bec(0x1e1)]=_0x194f4a,this[_0x3c9bec(0x4f8)]=_0x21c2f4,this['_permissionService']=_0x4490ba,this[_0x3c9bec(0x379)]=_0xccc99d);}get[_0x364156(0x305)](){const _0xbafaf=_0x364156;return this[_0xbafaf(0x47a)];}async[_0x364156(0x2a8)](){const _0x238838=_0x364156;if(this[_0x238838(0x305)])throw new Error(_0x238838(0x323));await this[_0x238838(0x477)]();}[_0x364156(0x560)](){const _0x3d689a=_0x364156;return this[_0x3d689a(0x581)]=!0x0,a[_0x3d689a(0x4a1)](()=>{const _0x2ec1eb=_0x3d689a;this[_0x2ec1eb(0x581)]=!0x1,this[_0x2ec1eb(0x497)]();});}[_0x364156(0x4f3)](_0x1ec06c){this['_state']=_0x1ec06c,this['_state$']['next'](_0x1ec06c);}async[_0x364156(0x477)](){const _0x38d6d2=_0x364156;var _0x1fc4a4;return this[_0x38d6d2(0x4f3)](await this[_0x38d6d2(0x3c5)]()),this[_0x38d6d2(0x379)]&&((_0x1fc4a4=this['_singleActiveUnitService'])==null||_0x1fc4a4[_0x38d6d2(0x1f7)](this['unitID']),this[_0x38d6d2(0x1e6)](a['toDisposable'](this[_0x38d6d2(0x379)][_0x38d6d2(0x280)](this[_0x38d6d2(0x1e9)])[_0x38d6d2(0x4f5)](_0x4730f8=>{const _0x18e326=_0x38d6d2;this[_0x18e326(0x3f3)][_0x18e326(0x3b3)](_0x18e326(0x43c),_0x18e326(0x4fa),_0x4730f8),_0x4730f8===Tt[_0x18e326(0x579)]?(this[_0x18e326(0x4f8)][_0x18e326(0x3f0)]({'content':this[_0x18e326(0x251)]['t'](_0x18e326(0x2b9)),'type':Q['MessageType'][_0x18e326(0x3c2)]}),this[_0x18e326(0x1e5)][_0x18e326(0x208)](new E[(_0x18e326(0x32f))](this[_0x18e326(0x1e9)])['id'],!0x1)):this[_0x18e326(0x1e5)][_0x18e326(0x208)](new E[(_0x18e326(0x32f))](this[_0x18e326(0x1e9)])['id'],!0x0);})))),this[_0x38d6d2(0x1e6)](a[_0x38d6d2(0x4a1)](this[_0x38d6d2(0x393)][_0x38d6d2(0x582)][_0x38d6d2(0x4f5)](_0x952f9a=>{const _0x58ff4a=_0x38d6d2;_0x952f9a===W[_0x58ff4a(0x42c)]?this[_0x58ff4a(0x352)]():_0x952f9a===W[_0x58ff4a(0x209)]&&this[_0x58ff4a(0x48d)]();}))),this['disposeWithMe'](a[_0x38d6d2(0x4a1)](this['_session'][_0x38d6d2(0x56b)]['subscribe'](_0x215685=>{const _0x138611=_0x38d6d2;try{switch(_0x215685['eventID']){case u[_0x138611(0x3ac)][_0x138611(0x410)]:{this[_0x138611(0x54d)](u[_0x138611(0x46e)](_0x215685[_0x138611(0x45d)]));break;}case u[_0x138611(0x3ac)][_0x138611(0x3aa)]:{this[_0x138611(0x4b1)](_0x215685[_0x138611(0x45d)]);break;}case u[_0x138611(0x3ac)][_0x138611(0x4da)]:{this[_0x138611(0x4d4)]();break;}case u[_0x138611(0x3ac)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x138611(0x438)](_0x215685['data'][_0x138611(0x3dc)][_0x138611(0x27d)](_0x451d92=>u[_0x138611(0x46e)](_0x451d92)));break;}case u[_0x138611(0x3ac)][_0x138611(0x224)]:this[_0x138611(0x4d4)]({'isPermissionRej':!0x0});}}catch(_0x19daed){throw console['error'](_0x138611(0x1dd),_0x19daed),_0x19daed;}}))),this[_0x38d6d2(0x47a)];}[_0x364156(0x3b0)](){const _0x45fe5f=_0x364156;this[_0x45fe5f(0x3b7)]=!0x1;}['_lockTransition'](){const _0xf4c5ba=_0x364156;if(this[_0xf4c5ba(0x3b7)])throw new Error(_0xf4c5ba(0x372));this[_0xf4c5ba(0x3b7)]=!0x0;}['_onLocalMutation'](_0x508d7b){const _0x48af5a=_0x364156;this[_0x48af5a(0x2be)](),this['_updateState'](this[_0x48af5a(0x47a)][_0x48af5a(0x319)](_0x508d7b)),this['_unlockTransition']();}[_0x364156(0x54d)](_0x2555ef){const _0x3b72e9=_0x364156;if(!(_0x2555ef[_0x3b72e9(0x522)]<=this[_0x3b72e9(0x53a)][_0x3b72e9(0x514)](this[_0x3b72e9(0x1e9)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x3b72e9(0x528)](_0x2555ef);return;}this[_0x3b72e9(0x4e0)](_0x2555ef);}}[_0x364156(0x497)](){const _0x1b18a0=_0x364156;this[_0x1b18a0(0x25e)][_0x1b18a0(0x2b1)](_0x4b456e=>this['_applyRemoteChangeset'](_0x4b456e)),this[_0x1b18a0(0x25e)]=[];}[_0x364156(0x4e0)](_0x2d371e){const _0xb03c8d=_0x364156,_0x18e5b8=this['_compressMutationService']['interceptor'][_0xb03c8d(0x45f)](this['_compressMutationService'][_0xb03c8d(0x375)][_0xb03c8d(0x454)]()[_0xb03c8d(0x4a8)])(_0x2d371e[_0xb03c8d(0x480)],null)||_0x2d371e[_0xb03c8d(0x480)],_0x440a01={..._0x2d371e,'mutations':_0x18e5b8};this[_0xb03c8d(0x2be)](),this[_0xb03c8d(0x4f3)](this[_0xb03c8d(0x47a)][_0xb03c8d(0x220)](_0x440a01)),this[_0xb03c8d(0x3b0)]();}['_onRemoteACK'](_0xbafa68){const _0x5eb5c7=_0x364156;this[_0x5eb5c7(0x2be)](),this[_0x5eb5c7(0x4f3)](this['_state']['onRemoteAck'](_0xbafa68)),this['_unlockTransition']();}[_0x364156(0x4d4)](_0x206dad){const _0x1e882f=_0x364156;this['_lockTransition'](),this[_0x1e882f(0x4f3)](this[_0x1e882f(0x47a)][_0x1e882f(0x51f)](_0x206dad)),this['_unlockTransition']();}[_0x364156(0x438)](_0xcbd7d0){const _0x3fdf73=_0x364156;if(!(this[_0x3fdf73(0x47a)]instanceof x))throw new TypeError(_0x3fdf73(0x53f));const _0xc7d349=_0xcbd7d0[_0x3fdf73(0x27d)](_0x528a47=>{const _0x37babf=_0x3fdf73,_0xc139e8=this[_0x37babf(0x31a)]['interceptor'][_0x37babf(0x45f)](this['_compressMutationService']['interceptor'][_0x37babf(0x454)]()['COMPRESS_MUTATION_APPLY'])(_0x528a47[_0x37babf(0x480)],null)||_0x528a47[_0x37babf(0x480)];return{..._0x528a47,'mutations':_0xc139e8};});this['_lockTransition'](),this[_0x3fdf73(0x4f3)](this[_0x3fdf73(0x47a)][_0x3fdf73(0x466)](_0xc7d349)),this[_0x3fdf73(0x3b0)]();}[_0x364156(0x48d)](){const _0x3bd238=_0x364156;this[_0x3bd238(0x2be)](),this['_updateState'](this[_0x3bd238(0x47a)]['toggleOffline']()),this[_0x3bd238(0x3b0)]();}[_0x364156(0x352)](){const _0x3fefbe=_0x364156;this[_0x3fefbe(0x2be)](),this['_updateState'](this['_state']['toggleOnline']()),this[_0x3fefbe(0x3b0)]();}async[_0x364156(0x3c5)](){return new Promise(_0x159730=>{const _0x38494b=_0x17ba;this[_0x38494b(0x393)]['sessionStatus$'][_0x38494b(0x1f5)](C[_0x38494b(0x1c5)](0x1))[_0x38494b(0x4f5)](async _0x286c7c=>{const _0x4e7cf7=_0x38494b;_0x159730(await this['_createInitialStateImpl'](_0x286c7c===W[_0x4e7cf7(0x42c)]));});});}[_0x364156(0x583)](){const _0x493a4b=this['unitID'];return{'onStateChange':(_0x36aceb,_0x1aea9f)=>{const _0xda8514=_0x17ba;if(_0x36aceb!==this[_0xda8514(0x47a)])throw new Error(_0xda8514(0x2aa)+_0x36aceb[_0xda8514(0x1d4)]+_0xda8514(0x4a5)+_0x1aea9f[_0xda8514(0x1d4)]+_0xda8514(0x1ee)+this['_state'][_0xda8514(0x1d4)]);this[_0xda8514(0x4f3)](_0x1aea9f);},'onSendChangeset':_0x3dd97d=>{const _0x19ab4f=_0x17ba,_0x40ce2e={'eventID':u[_0x19ab4f(0x3ac)][_0x19ab4f(0x492)],'data':{'unitID':_0x3dd97d['unitID'],'unitType':this[_0x19ab4f(0x377)],'changeset':_0x3dd97d,'memberID':this['_session'][_0x19ab4f(0x354)]()}};this['_session'][_0x19ab4f(0x3c4)](_0x40ce2e,this[_0x19ab4f(0x1e9)]);},'onMissingChangesets':({from:_0x4beddc,to:_0x4d32ba})=>{const _0x22f624=_0x17ba;this[_0x22f624(0x3f3)][_0x22f624(0x3b3)](_0x22f624(0x43c),_0x22f624(0x2c5)+_0x4beddc+'\x20to\x20'+_0x4d32ba);const _0x5d5aca={'eventID':u[_0x22f624(0x3ac)]['FETCH_MISSING'],'data':{'unitID':_0x493a4b,'unitType':this[_0x22f624(0x377)],'from':_0x4beddc,'to':_0x4d32ba}};this[_0x22f624(0x393)][_0x22f624(0x3c4)](_0x5d5aca,this[_0x22f624(0x1e9)]);}};}async[_0x364156(0x56d)](_0x21083f){const _0x2b7d11=_0x364156;var _0x230f6b,_0x282039;const _0x1df035=await this['_localCacheService']['loadOfflineData'](this['unitID']),_0x3b6933=(_0x230f6b=_0x1df035==null?void 0x0:_0x1df035['mutations'])!=null?_0x230f6b:[],_0x1b5e6d=(_0x282039=_0x1df035==null?void 0x0:_0x1df035[_0x2b7d11(0x364)])!=null?_0x282039:null,_0x5d2a68=this[_0x2b7d11(0x1e9)];try{this[_0x2b7d11(0x535)](_0x1b5e6d,_0x3b6933);}catch(_0x4e8b3f){this['_logService'][_0x2b7d11(0x381)](_0x4e8b3f);}const _0x224f94=this['_createHandler']();if(_0x21083f){const _0x181f82=Ot(this[_0x2b7d11(0x34f)],_0x5d2a68,this['_type'],_0x1b5e6d,_0x3b6933,_0x224f94);return _0x181f82 instanceof j?_0x181f82['_schedule']():(_0x181f82 instanceof H||_0x181f82 instanceof k)&&_0x181f82[_0x2b7d11(0x1fa)](),_0x181f82;}return this[_0x2b7d11(0x34f)][_0x2b7d11(0x1c6)](B,_0x5d2a68,this[_0x2b7d11(0x377)],_0x1b5e6d,_0x3b6933,_0x224f94);}['_replayCachedMutations'](_0x5f4ade,_0x3f1ea3){const _0x43288a=_0x364156;var _0x444ce9,_0x55774c;const _0x7ec208=this[_0x43288a(0x31a)]['interceptor'][_0x43288a(0x45f)](this['_compressMutationService']['interceptor'][_0x43288a(0x454)]()['COMPRESS_MUTATION_APPLY']);(_0x444ce9=_0x7ec208((_0x5f4ade==null?void 0x0:_0x5f4ade[_0x43288a(0x480)])||[],null))==null||_0x444ce9[_0x43288a(0x2b1)](_0x4d345b=>this['_commandService'][_0x43288a(0x291)](_0x4d345b['id'],_0x4d345b[_0x43288a(0x2a0)])),(_0x55774c=_0x7ec208(_0x3f1ea3||[],null))==null||_0x55774c[_0x43288a(0x2b1)](_0x2766de=>this['_commandService'][_0x43288a(0x291)](_0x2766de['id'],_0x2766de[_0x43288a(0x2a0)]));}};pe=be([p(0x3,h[_0x364156(0x24e)](h[_0x364156(0x443)])),p(0x4,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),p(0x5,h['Inject'](u[_0x364156(0x4d6)])),p(0x6,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),p(0x7,h[_0x364156(0x24e)](u[_0x364156(0x549)])),p(0x8,a[_0x364156(0x476)]),p(0x9,a[_0x364156(0x542)]),p(0xa,M['IMessageService']),p(0xb,a[_0x364156(0x3f8)]),p(0xc,h['Optional'](Ce))],pe);let Ne=class extends pe{constructor(_0x422d30,_0x4ad575,_0x42dc3f,_0x32413e,_0x37c610,_0x2b82ac,_0x3d4f78,_0x59453b,_0x204f9c,_0x471068,_0x12bcc9,_0x5e27d7,_0x47e979,_0x8df4dc,_0xa47fce,_0xd6af20,_0x14cc49){const _0x4c690e=_0x364156;super(_0x422d30,_0x4ad575,_0x42dc3f,_0x32413e,_0x37c610,_0x2b82ac,_0x3d4f78,_0x59453b,_0x47e979,_0x8df4dc,_0xa47fce,_0xd6af20,_0x14cc49),this[_0x4c690e(0x1e9)]=_0x422d30,this[_0x4c690e(0x451)]=_0x4ad575,this[_0x4c690e(0x233)]=_0x42dc3f,this[_0x4c690e(0x487)]=_0x204f9c,this[_0x4c690e(0x400)]=_0x471068,this[_0x4c690e(0x316)]=_0x12bcc9,this[_0x4c690e(0x486)]=_0x5e27d7;}[_0x364156(0x583)](){const _0x305d84=_0x364156,_0x685593=super['_createHandler']();return _0x685593['onTransformIME']=_0x253caa=>this['_docTransformIMECacheService'][_0x305d84(0x3cc)](_0x253caa),_0x685593[_0x305d84(0x2ab)]=_0x557bfc=>this['_docTransformSelectionsService'][_0x305d84(0x3fe)](_0x557bfc),_0x685593[_0x305d84(0x2d1)]=_0x2a5677=>this[_0x305d84(0x486)][_0x305d84(0x2f1)](_0x2a5677),_0x685593[_0x305d84(0x58e)]=_0x215b3f=>this['_docTransformIMECacheService'][_0x305d84(0x405)](_0x215b3f),_0x685593;}async[_0x364156(0x477)](){const _0x45640e=_0x364156,_0x26bcd8=await super[_0x45640e(0x477)]();return this[_0x45640e(0x487)][_0x45640e(0x30c)]['pipe'](g['takeUntil'](this['dispose$']))[_0x45640e(0x4f5)](_0x52f8f7=>{const _0x18e1b8=_0x45640e;if(_0x52f8f7==null)return;const {unitId:_0x4d9cbc,redoState:_0x9c92c0,commandId:_0x5c7191}=_0x52f8f7;if(_0x4d9cbc!==this['unitID'])return;const _0x3a3b6e={'id':_0x5c7191,'type':a[_0x18e1b8(0x290)][_0x18e1b8(0x255)],'params':{'unitId':_0x4d9cbc,'actions':_0x9c92c0[_0x18e1b8(0x256)],'textRanges':null}};this[_0x18e1b8(0x489)](_0x3a3b6e);}),_0x26bcd8;}};Ne=be([p(0x3,h[_0x364156(0x24e)](h[_0x364156(0x443)])),p(0x4,h['Inject'](exports[_0x364156(0x403)])),p(0x5,h['Inject'](u['CompressMutationService'])),p(0x6,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),p(0x7,h[_0x364156(0x24e)](u[_0x364156(0x549)])),p(0x8,h[_0x364156(0x24e)](N[_0x364156(0x313)])),p(0x9,h[_0x364156(0x24e)](fe)),p(0xa,h[_0x364156(0x24e)](me)),p(0xb,h[_0x364156(0x24e)](Ge)),p(0xc,a['ILogService']),p(0xd,a[_0x364156(0x542)]),p(0xe,M['IMessageService']),p(0xf,a[_0x364156(0x3f8)]),p(0x10,h[_0x364156(0x3dd)](Ce))],Ne);let Me=class extends pe{constructor(_0x4e503d,_0x1ab1e1,_0x5c838c,_0x2e5594,_0x139d0a,_0x6868b5,_0x188e0e,_0x6b0828,_0x18ae7f,_0x934ac1,_0x2e4909,_0x21f165,_0x2960c1,_0x40999b){const _0x3c8ff3=_0x364156;super(_0x4e503d,_0x1ab1e1,_0x5c838c,_0x2e5594,_0x139d0a,_0x6868b5,_0x188e0e,_0x6b0828,_0x934ac1,_0x2e4909,_0x21f165,_0x2960c1,_0x40999b),this[_0x3c8ff3(0x1e9)]=_0x4e503d,this['type']=_0x1ab1e1,this[_0x3c8ff3(0x233)]=_0x5c838c,this[_0x3c8ff3(0x4b3)]=_0x18ae7f;}['_createHandler'](){const _0x33ce62=_0x364156,_0x1b66b7=super[_0x33ce62(0x583)]();return _0x1b66b7['onTransformSelections']=_0x421ad0=>this['_sheetTransformSelectionsService'][_0x33ce62(0x3fe)](_0x421ad0),_0x1b66b7;}async['_init'](){const _0x5bfff1=_0x364156,_0x1c28a1=await super[_0x5bfff1(0x477)]();return this[_0x5bfff1(0x1e6)](this[_0x5bfff1(0x1e1)][_0x5bfff1(0x44b)]((_0x459794,_0x1cc38e)=>{const _0x521340=_0x5bfff1;if(_0x459794[_0x521340(0x451)]!==a[_0x521340(0x290)][_0x521340(0x255)]||_0x1cc38e!=null&&_0x1cc38e[_0x521340(0x43a)]||_0x1cc38e!=null&&_0x1cc38e[_0x521340(0x548)])return;const _0x3dcde1=_0x459794[_0x521340(0x2a0)];if((_0x3dcde1==null?void 0x0:_0x3dcde1['unitId'])!==this[_0x521340(0x1e9)])return;const _0x2527fe=_0x459794,_0x59e8af=this[_0x521340(0x31a)][_0x521340(0x375)][_0x521340(0x45f)](this[_0x521340(0x31a)]['interceptor']['getInterceptPoints']()[_0x521340(0x30a)])([_0x2527fe],null)||[_0x2527fe];this[_0x521340(0x489)](_0x59e8af[0x0]);})),_0x1c28a1;}};Me=be([p(0x3,h[_0x364156(0x24e)](h[_0x364156(0x443)])),p(0x4,h[_0x364156(0x24e)](exports['LocalCacheService'])),p(0x5,h[_0x364156(0x24e)](u[_0x364156(0x4d6)])),p(0x6,h[_0x364156(0x24e)](a[_0x364156(0x1fb)])),p(0x7,h[_0x364156(0x24e)](u[_0x364156(0x549)])),p(0x8,h[_0x364156(0x24e)](Ie)),p(0x9,a[_0x364156(0x476)]),p(0xa,a[_0x364156(0x542)]),p(0xb,M[_0x364156(0x247)]),p(0xc,a[_0x364156(0x3f8)]),p(0xd,h['Optional'](Ce))],Me);const it=[_0x364156(0x3e2),_0x364156(0x4b9),'verdancy600',_0x364156(0x36f),_0x364156(0x42f),_0x364156(0x4d1)];class Ye extends a['Disposable']{constructor(){const _0x23b8f8=_0x364156;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x23b8f8(0x2a4),0x0);}[_0x364156(0x4cd)](_0x32a272){const _0x270ba7=_0x364156;if(this['_assignedColors'][_0x270ba7(0x2bc)](_0x32a272))return this['_assignedColors']['get'](_0x32a272);const _0x117af8=it[this[_0x270ba7(0x2a4)]];return this[_0x270ba7(0x2a4)]=(this[_0x270ba7(0x2a4)]+0x1)%it[_0x270ba7(0x37d)],this[_0x270ba7(0x358)][_0x270ba7(0x490)](_0x32a272,_0x117af8),_0x117af8;}}var Ls=Object[_0x364156(0x53c)],Ns=Object[_0x364156(0x55c)],Ms=(_0x5e8f96,_0xee4b92,_0x3ccb7e,_0x1ada22)=>{const _0x49e9fc=_0x364156;for(var _0x50539b=_0x1ada22>0x1?void 0x0:_0x1ada22?Ns(_0xee4b92,_0x3ccb7e):_0xee4b92,_0x5d7043=_0x5e8f96[_0x49e9fc(0x37d)]-0x1,_0xbf0055;_0x5d7043>=0x0;_0x5d7043--)(_0xbf0055=_0x5e8f96[_0x5d7043])&&(_0x50539b=(_0x1ada22?_0xbf0055(_0xee4b92,_0x3ccb7e,_0x50539b):_0xbf0055(_0x50539b))||_0x50539b);return _0x1ada22&&_0x50539b&&Ls(_0xee4b92,_0x3ccb7e,_0x50539b),_0x50539b;},q=(_0x52f1d0,_0x27532e)=>(_0x35588b,_0x454510)=>_0x27532e(_0x35588b,_0x454510,_0x52f1d0);const As=0x12c,$s=0x64,js=()=>{let _0x56133f=[],_0x2622af=!0x1;return _0x41f35f=>{const _0x5b1825=_0x17ba;_0x56133f[_0x5b1825(0x528)](_0x41f35f),_0x2622af||(_0x2622af=!0x0,setTimeout(()=>{const _0x3c33f5=_0x5b1825;_0x56133f[_0x3c33f5(0x2b1)](_0x40bf1d=>_0x40bf1d()),_0x56133f=[],_0x2622af=!0x1;}));};};let Ae=class extends a[_0x364156(0x306)]{constructor(_0x505994,_0x4bf8be,_0x1b2a72,_0x27d781,_0x10a422,_0x6de5f4,_0x4d1766,_0x3071a8){const _0x74dba2=_0x364156;super(),d(this,_0x74dba2(0x50f),!0x1),d(this,_0x74dba2(0x477),!0x1),d(this,_0x74dba2(0x24d),new g[(_0x74dba2(0x2dc))](new Map())),d(this,_0x74dba2(0x270),this['_cursorInfo$']['asObservable']()),d(this,_0x74dba2(0x461),new g[(_0x74dba2(0x2dc))]([])),d(this,_0x74dba2(0x370),this['_roomMembers$'][_0x74dba2(0x1f5)](g[_0x74dba2(0x2db)](As))),d(this,'_updateLocalCursor',ke((_0x5c42dc,_0x595434)=>{const _0x3229b4=_0x74dba2,_0x2951ae={'eventID':u[_0x3229b4(0x3ac)][_0x3229b4(0x2c3)],'data':{'unitID':this[_0x3229b4(0x1e9)],'memberID':this[_0x3229b4(0x393)][_0x3229b4(0x354)](),'selection':qe['serializeRangeWithSheet'](_0x5c42dc,_0x595434['range'])}};this[_0x3229b4(0x393)][_0x3229b4(0x3c4)](_0x2951ae,this[_0x3229b4(0x1e9)]);},$s)),(this[_0x74dba2(0x1e9)]=_0x505994,this[_0x74dba2(0x393)]=_0x4bf8be,this[_0x74dba2(0x34f)]=_0x1b2a72,this['_colorAssignService']=_0x27d781,this['_memberService']=_0x10a422,this[_0x74dba2(0x53b)]=_0x6de5f4,this[_0x74dba2(0x1e1)]=_0x4d1766,this[_0x74dba2(0x3ff)]=_0x3071a8);}get['cursorInfo'](){const _0x59d27f=_0x364156;return this['_cursorInfo$'][_0x59d27f(0x1de)]();}get[_0x364156(0x214)](){const _0x4eb4a5=_0x364156;return this[_0x4eb4a5(0x461)]['getValue']();}['dispose'](){const _0x2aea1e=_0x364156;super['dispose'](),this[_0x2aea1e(0x24d)][_0x2aea1e(0x1d2)](new Map()),this[_0x2aea1e(0x24d)][_0x2aea1e(0x28c)](),this[_0x2aea1e(0x461)][_0x2aea1e(0x1d2)]([]),this[_0x2aea1e(0x461)][_0x2aea1e(0x28c)]();}[_0x364156(0x2a8)](){const _0xdd54ef=_0x364156;this[_0xdd54ef(0x477)]||(this['_init']=!0x0,this[_0xdd54ef(0x393)]['sessionStatus$'][_0xdd54ef(0x1f5)](g[_0xdd54ef(0x52b)](this[_0xdd54ef(0x55d)]))[_0xdd54ef(0x4f5)](_0x84b09d=>{const _0x15bf47=_0xdd54ef;_0x84b09d===W['ONLINE']?this[_0x15bf47(0x352)]():this['_toggleOffline']();}),this['_session'][_0xdd54ef(0x56b)]['pipe'](g['takeUntil'](this[_0xdd54ef(0x55d)]))[_0xdd54ef(0x4f5)](_0x312b04=>{const _0x31e8dc=_0xdd54ef,_0x42bcb2=_0x312b04[_0x31e8dc(0x321)];_0x42bcb2===u[_0x31e8dc(0x3ac)][_0x31e8dc(0x2c3)]&&this[_0x31e8dc(0x3b8)](_0x312b04),_0x42bcb2===u[_0x31e8dc(0x3ac)][_0x31e8dc(0x41f)]&&this['_onCursorDelete'](_0x312b04);}),this[_0xdd54ef(0x28f)](),this['disposeWithMe'](this['_commandService'][_0xdd54ef(0x44b)](_0x3ac818=>{const _0x488a49=_0xdd54ef;if(this['_online']&&_0x3ac818['id']===E[_0x488a49(0x231)]['id']&&_0x3ac818['params'][_0x488a49(0x4c9)]===this[_0x488a49(0x1e9)]){const _0xced4c7=_0x3ac818['params'];this[_0x488a49(0x246)](_0xced4c7[_0x488a49(0x4de)],_0xced4c7[_0x488a49(0x3c1)][0x0]);}})));}[_0x364156(0x3b8)](_0x144cd2){const _0x961261=_0x364156;var _0xc80e9b,_0x1e1b14;const {memberID:_0x2c19a4,selection:_0x34af99}=_0x144cd2[_0x961261(0x45d)],{sheetName:_0x4fe3f6,range:_0x1e0b63}=qe[_0x961261(0x35c)](_0x34af99),_0x30ff6a={'name':(_0x1e1b14=(_0xc80e9b=this[_0x961261(0x302)]['getMember'](this[_0x961261(0x1e9)],_0x2c19a4))==null?void 0x0:_0xc80e9b[_0x961261(0x1e8)])!=null?_0x1e1b14:_0x961261(0x46c),'range':this[_0x961261(0x213)](_0x4fe3f6,_0x1e0b63),'sheetID':_0x4fe3f6,'color':this[_0x961261(0x50b)][_0x961261(0x4cd)](_0x2c19a4),'selection':_0x34af99},_0x276213=this['cursorInfo'];_0x276213[_0x961261(0x490)](_0x2c19a4,_0x30ff6a),this['_cursorInfo$'][_0x961261(0x1d2)](_0x276213);}[_0x364156(0x3d4)](_0x1f46bc){const _0xa31fdd=_0x364156,{memberID:_0x24e601}=_0x1f46bc[_0xa31fdd(0x45d)],_0x25ea2d=this['cursorInfo'];_0x25ea2d[_0xa31fdd(0x4b0)](_0x24e601),this[_0xa31fdd(0x24d)][_0xa31fdd(0x1d2)](_0x25ea2d);}[_0x364156(0x213)](_0x2a4440,_0x40e6cb){const _0x1f5a0c=_0x364156;var _0x596b5c,_0x200370;const _0x1b8f84=(_0x200370=(_0x596b5c=this[_0x1f5a0c(0x53b)][_0x1f5a0c(0x2fe)](this[_0x1f5a0c(0x1e9)]))==null?void 0x0:_0x596b5c[_0x1f5a0c(0x31e)](_0x2a4440))==null?void 0x0:_0x200370[_0x1f5a0c(0x2ba)]();return(_0x1b8f84==null?void 0x0:_0x1b8f84['find'](_0x27049c=>a[_0x1f5a0c(0x571)][_0x1f5a0c(0x52e)](_0x27049c,_0x40e6cb)))||_0x40e6cb;}['_onRefRangeChange'](){const _0x2728fd=_0x364156,_0x36efe9=new a[(_0x2728fd(0x4b8))](),_0xdcae77=js(),_0x355cc9=()=>{const _0x1bc5da=_0x2728fd;_0x36efe9[_0x1bc5da(0x266)]();const _0xab7622=(_0x588be8,_0x1cea62,_0xe6bd29,_0x5e7854)=>{const _0x24b746=_0x1bc5da;let _0x1e90a3=[];switch(_0x588be8['id']){case E[_0x24b746(0x243)][_0x24b746(0x360)]:{_0x1e90a3=E['handleDeleteRangeMoveLeft'](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x343)]:{_0x1e90a3=E['handleDeleteRangeMoveUp'](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x4db)]:{_0x1e90a3=E[_0x24b746(0x3c7)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)]['InsertRangeMoveDownCommandId']:{_0x1e90a3=E[_0x24b746(0x23b)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)]['InsertRangeMoveRightCommandId']:{_0x1e90a3=E[_0x24b746(0x4fe)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x49b)]:{_0x1e90a3=E[_0x24b746(0x249)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)]['MoveRangeCommandId']:{_0x1e90a3=E[_0x24b746(0x31f)](_0x588be8,_0x5e7854);break;}case E[_0x24b746(0x243)][_0x24b746(0x523)]:{_0x1e90a3=E[_0x24b746(0x561)](_0x588be8,_0x5e7854);break;}case E['EffectRefRangId'][_0x24b746(0x20f)]:{_0x1e90a3=E['handleIRemoveRow'](_0x588be8,_0x5e7854);break;}}const _0x213cfc=E[_0x24b746(0x3d1)](_0x1e90a3,_0x5e7854),_0x13ee25=this['cursorInfo'][_0x24b746(0x3f4)](_0x1cea62);if(_0x13ee25&&_0x213cfc){const _0x5286db={..._0x13ee25,'range':_0x213cfc};this['cursorInfo']['set'](_0x1cea62,_0x5286db),_0xdcae77(()=>{const _0x139649=_0x24b746,_0x2b2deb=this[_0x139649(0x3ff)][_0x139649(0x442)](_0x213cfc,_0x2aef32=>(_0x2b2deb[_0x139649(0x266)](),_0xab7622(_0x2aef32,_0x1cea62,_0xe6bd29,_0x213cfc)));_0x36efe9[_0x139649(0x2e0)](_0x2b2deb);});}return{'redos':[],'undos':[]};};this[_0x1bc5da(0x34c)][_0x1bc5da(0x2b1)]((_0x4a193a,_0x411833)=>{const _0x526101=_0x1bc5da,{range:_0x3bacfa,sheetID:_0x3a1cd0}=_0x4a193a,_0xa1ca8=this[_0x526101(0x3ff)][_0x526101(0x442)](_0x3bacfa,_0x1b0c83=>(_0xa1ca8['dispose'](),_0xab7622(_0x1b0c83,_0x411833,_0x3a1cd0,_0x3bacfa)));_0x36efe9['add'](_0xa1ca8);});};this['disposeWithMe'](a[_0x2728fd(0x4a1)](this[_0x2728fd(0x24d)][_0x2728fd(0x4f5)](()=>{_0x355cc9();})));}[_0x364156(0x352)](){const _0x10db59=_0x364156;var _0x4b3aa6,_0x3af347;if(this[_0x10db59(0x50f)]=!0x0,((_0x4b3aa6=this[_0x10db59(0x53b)][_0x10db59(0x332)]())==null?void 0x0:_0x4b3aa6[_0x10db59(0x38b)]())!==this['unitID'])return;const _0x5d0ff8=(_0x3af347=this[_0x10db59(0x34f)]['get'](E[_0x10db59(0x3b2)])[_0x10db59(0x25c)]())==null?void 0x0:_0x3af347[0x0],_0x185a7e=this[_0x10db59(0x53b)][_0x10db59(0x31d)](a['UniverInstanceType'][_0x10db59(0x350)])[_0x10db59(0x21e)]();_0x5d0ff8&&_0x185a7e&&this[_0x10db59(0x246)](_0x185a7e['getSheetId'](),_0x5d0ff8);}[_0x364156(0x48d)](){const _0x154b1f=_0x364156;this[_0x154b1f(0x50f)]=!0x1;}};Ae=Ms([q(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)])),q(0x3,h[_0x364156(0x24e)](Ye)),q(0x4,h[_0x364156(0x24e)](G)),q(0x5,a[_0x364156(0x58c)]),q(0x6,a[_0x364156(0x542)]),q(0x7,h['Inject'](E[_0x364156(0x219)]))],Ae);var Hs=Object[_0x364156(0x53c)],xs=Object[_0x364156(0x55c)],ks=(_0x1b6a79,_0x51cf9e,_0x5bd875,_0x3644c2)=>{for(var _0x312686=_0x3644c2>0x1?void 0x0:_0x3644c2?xs(_0x51cf9e,_0x5bd875):_0x51cf9e,_0x37da4b=_0x1b6a79['length']-0x1,_0x51146e;_0x37da4b>=0x0;_0x37da4b--)(_0x51146e=_0x1b6a79[_0x37da4b])&&(_0x312686=(_0x3644c2?_0x51146e(_0x51cf9e,_0x5bd875,_0x312686):_0x51146e(_0x312686))||_0x312686);return _0x3644c2&&_0x312686&&Hs(_0x51cf9e,_0x5bd875,_0x312686),_0x312686;},V=(_0x491be0,_0x48cd8c)=>(_0x29bfdc,_0x518711)=>_0x48cd8c(_0x29bfdc,_0x518711,_0x491be0);const Bs=0x12c,Fs=0x64;let $e=class extends a[_0x364156(0x306)]{constructor(_0x4550fd,_0x250656,_0x17c57d,_0x17f5d2,_0x4f0c87,_0x4bbaa6,_0x4fcd0c,_0x559a32,_0x2cf0ee){const _0x54f436=_0x364156;super(),d(this,_0x54f436(0x50f),!0x1),d(this,_0x54f436(0x477),!0x1),d(this,_0x54f436(0x24d),new g[(_0x54f436(0x2dc))](new Map())),d(this,_0x54f436(0x270),this[_0x54f436(0x24d)][_0x54f436(0x485)]()),d(this,_0x54f436(0x461),new g['BehaviorSubject']([])),d(this,_0x54f436(0x370),this[_0x54f436(0x461)]['pipe'](g[_0x54f436(0x2db)](Bs))),d(this,_0x54f436(0x246),ke(_0x137332=>{const _0x20d26b=_0x54f436,_0x591be5={'eventID':u['CollaborationEvent'][_0x20d26b(0x2c3)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x20d26b(0x354)](),'selection':Rt(_0x137332)}};this['_session'][_0x20d26b(0x3c4)](_0x591be5,this[_0x20d26b(0x1e9)]);},Fs)),(this[_0x54f436(0x1e9)]=_0x4550fd,this['_session']=_0x250656,this['_injector']=_0x17c57d,this['_colorAssignService']=_0x17f5d2,this['_memberService']=_0x4f0c87,this[_0x54f436(0x3da)]=_0x4bbaa6,this['_transformService']=_0x4fcd0c,this['_univerInstanceService']=_0x559a32,this['_commandService']=_0x2cf0ee);}get[_0x364156(0x34c)](){const _0x2d35cc=_0x364156;return this[_0x2d35cc(0x24d)][_0x2d35cc(0x1de)]();}get['roomMembers'](){const _0x32b848=_0x364156;return this[_0x32b848(0x461)][_0x32b848(0x1de)]();}[_0x364156(0x266)](){const _0x49cf1a=_0x364156;super['dispose'](),this[_0x49cf1a(0x24d)][_0x49cf1a(0x1d2)](new Map()),this[_0x49cf1a(0x24d)]['complete'](),this['_roomMembers$'][_0x49cf1a(0x1d2)]([]),this['_roomMembers$']['complete']();}[_0x364156(0x2a8)](){const _0x72594f=_0x364156;this['_init']||(this[_0x72594f(0x477)]=!0x0,this['_session'][_0x72594f(0x582)][_0x72594f(0x1f5)](g[_0x72594f(0x52b)](this['dispose$']))['subscribe'](_0x304dbc=>{const _0x2e7df8=_0x72594f;_0x304dbc===W['ONLINE']?this[_0x2e7df8(0x352)]():this['_toggleOffline']();}),this['_session']['event$']['pipe'](g[_0x72594f(0x52b)](this[_0x72594f(0x55d)]))['subscribe'](_0x5de292=>{const _0x52053d=_0x72594f,_0x423192=_0x5de292['eventID'];_0x423192===u[_0x52053d(0x3ac)][_0x52053d(0x2c3)]&&this['_onCursorUpdate'](_0x5de292),_0x423192===u[_0x52053d(0x3ac)][_0x52053d(0x41f)]&&this[_0x52053d(0x3d4)](_0x5de292);}),this['disposeWithMe'](this['_commandService'][_0x72594f(0x44b)](_0x38dec5=>{const _0x571e23=_0x72594f,_0x3fc5a8=_0x38dec5[_0x571e23(0x2a0)];_0x3fc5a8!=null&&this[_0x571e23(0x50f)]&&_0x38dec5['id']===N[_0x571e23(0x2ed)]['id']&&_0x3fc5a8[_0x571e23(0x4c9)]===this[_0x571e23(0x1e9)]&&_0x3fc5a8[_0x571e23(0x25d)]===!0x1&&this[_0x571e23(0x246)](_0x3fc5a8[_0x571e23(0x585)]);})),this['_syncEditingCollabCursorService'][_0x72594f(0x455)][_0x72594f(0x1f5)](g[_0x72594f(0x52b)](this[_0x72594f(0x55d)]))[_0x72594f(0x4f5)](_0x4db457=>{const _0x41ef2d=_0x72594f;if((_0x4db457==null?void 0x0:_0x4db457[_0x41ef2d(0x1e9)])!==this[_0x41ef2d(0x1e9)])return;const _0xdfcee={'eventID':u[_0x41ef2d(0x3ac)]['UPDATE_CURSOR'],'data':_0x4db457};this[_0x41ef2d(0x3b8)](_0xdfcee);}),this['disposeWithMe'](this['_commandService'][_0x72594f(0x44b)](_0x3a13fa=>{const _0x2c916f=_0x72594f;if(_0x3a13fa['params']==null)return;const _0x2ca483=_0x3a13fa[_0x2c916f(0x2a0)];if(_0x3a13fa['id']!==N[_0x2c916f(0x441)]['id']||_0x2ca483[_0x2c916f(0x4c9)]!==this[_0x2c916f(0x1e9)])return;const _0x345f44={'id':'doc.mutation.rich-text-editing','params':_0x2ca483},_0x5d8a0c=this[_0x2c916f(0x34c)];for(const [_0x11beb8,_0x3178ac]of _0x5d8a0c){const _0x1f53d3={'id':_0x2c916f(0x4ef),'params':{'unitId':this[_0x2c916f(0x1e9)],'actions':null,'textRanges':_0x3178ac[_0x2c916f(0x585)]}},_0x4e0229=this[_0x2c916f(0x456)][_0x2c916f(0x43d)](_0x345f44,_0x1f53d3,!0x1);if(u[_0x2c916f(0x345)](_0x4e0229))throw _0x4e0229[_0x2c916f(0x381)];_0x5d8a0c[_0x2c916f(0x490)](_0x11beb8,{..._0x3178ac,'ranges':_0x4e0229['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x44eeee=_0x2c916f;this['_cursorInfo$'][_0x44eeee(0x1d2)](_0x5d8a0c);});})));}[_0x364156(0x3b8)](_0x5c8167){const _0x44de4d=_0x364156;var _0xfdb3b,_0x50b304;const {memberID:_0xbf3707,selection:_0x4692e1}=_0x5c8167['data'],_0x431ca9=ps(_0x4692e1),_0x343323=(_0x50b304=(_0xfdb3b=this[_0x44de4d(0x302)][_0x44de4d(0x2b3)](this[_0x44de4d(0x1e9)],_0xbf3707))==null?void 0x0:_0xfdb3b[_0x44de4d(0x1e8)])!=null?_0x50b304:'Unknown\x20user',_0x5e9d42={'color':this[_0x44de4d(0x50b)][_0x44de4d(0x4cd)](_0xbf3707),'name':_0x343323,'ranges':_0x431ca9},_0x2a1155=this[_0x44de4d(0x34c)];_0x2a1155['set'](_0xbf3707,_0x5e9d42),this[_0x44de4d(0x24d)][_0x44de4d(0x1d2)](_0x2a1155);}[_0x364156(0x3d4)](_0x19f400){const _0x5b5ca3=_0x364156,{memberID:_0x5a9c36}=_0x19f400[_0x5b5ca3(0x45d)],_0x516ff7=this['cursorInfo'];_0x516ff7[_0x5b5ca3(0x4b0)](_0x5a9c36),this[_0x5b5ca3(0x24d)]['next'](_0x516ff7);}[_0x364156(0x352)](){const _0xd4aecf=_0x364156;var _0x1ed8ae;if(this[_0xd4aecf(0x50f)]=!0x0,((_0x1ed8ae=this[_0xd4aecf(0x53b)][_0xd4aecf(0x332)]())==null?void 0x0:_0x1ed8ae[_0xd4aecf(0x38b)]())!==this[_0xd4aecf(0x1e9)])return;const _0x44b341=this[_0xd4aecf(0x34f)][_0xd4aecf(0x3f4)](N[_0xd4aecf(0x20b)])[_0xd4aecf(0x25c)](),_0x3d53e3=_0x44b341==null?void 0x0:_0x44b341['map'](N['serializeTextRange']);Array[_0xd4aecf(0x4d8)](_0x3d53e3)&&_0x3d53e3['length']>0x0&&this[_0xd4aecf(0x246)](_0x3d53e3);}['_toggleOffline'](){const _0x1a0ee8=_0x364156;this[_0x1a0ee8(0x50f)]=!0x1;}};$e=ks([V(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)])),V(0x3,h[_0x364156(0x24e)](Ye)),V(0x4,h['Inject'](G)),V(0x5,h[_0x364156(0x24e)](Ge)),V(0x6,u[_0x364156(0x3d0)]),V(0x7,a[_0x364156(0x58c)]),V(0x8,a[_0x364156(0x542)])],$e);var Vs=Object['defineProperty'],Ws=Object[_0x364156(0x55c)],Gs=(_0x4706cf,_0x25523d,_0x59b3e1,_0x2a6515)=>{const _0x39a81e=_0x364156;for(var _0x3eb06e=_0x2a6515>0x1?void 0x0:_0x2a6515?Ws(_0x25523d,_0x59b3e1):_0x25523d,_0x3fa318=_0x4706cf[_0x39a81e(0x37d)]-0x1,_0x2e521d;_0x3fa318>=0x0;_0x3fa318--)(_0x2e521d=_0x4706cf[_0x3fa318])&&(_0x3eb06e=(_0x2a6515?_0x2e521d(_0x25523d,_0x59b3e1,_0x3eb06e):_0x2e521d(_0x3eb06e))||_0x3eb06e);return _0x2a6515&&_0x3eb06e&&Vs(_0x25523d,_0x59b3e1,_0x3eb06e),_0x3eb06e;},Ue=(_0x6449ef,_0x800ee1)=>(_0x381d7a,_0xf2dbe1)=>_0x800ee1(_0x381d7a,_0xf2dbe1,_0x6449ef);let Z=class extends a[_0x364156(0x306)]{constructor(_0x4a5bfa,_0x27fc46,_0x3792d7){const _0x2eff72=_0x364156;super(),d(this,'_entities',new Map()),d(this,'_entityInit$',new g[(_0x2eff72(0x2c1))]()),(this[_0x2eff72(0x53b)]=_0x4a5bfa,this[_0x2eff72(0x34f)]=_0x27fc46,this[_0x2eff72(0x569)]=_0x3792d7,this[_0x2eff72(0x477)]());}['dispose'](){const _0x5d63da=_0x364156;super[_0x5d63da(0x266)](),this[_0x5d63da(0x388)][_0x5d63da(0x28c)](),this['_entities'][_0x5d63da(0x2b1)](_0x168085=>_0x168085[_0x5d63da(0x266)]());}['getCollabCursors$'](_0x43cf01){const _0x2fde6a=_0x364156;return this[_0x2fde6a(0x552)]['has'](_0x43cf01)?this[_0x2fde6a(0x552)]['get'](_0x43cf01)['cursorInfo$']:this[_0x2fde6a(0x388)]['pipe'](g[_0x2fde6a(0x218)](_0x5e51f2=>_0x5e51f2[_0x2fde6a(0x1e9)]===_0x43cf01),g[_0x2fde6a(0x369)](_0x397419=>_0x397419[_0x2fde6a(0x270)]));}[_0x364156(0x477)](){const _0x44f084=_0x364156;this['_univerInstanceService'][_0x44f084(0x4e3)](a['UniverInstanceType'][_0x44f084(0x350)])['pipe'](g[_0x44f084(0x52b)](this['dispose$']))[_0x44f084(0x4f5)](async _0x582580=>{const _0x44fe18=_0x44f084,_0x1cbe9c=_0x582580['getUnitId'](),_0x45a692=await this['_startSheetCollabCursor'](_0x1cbe9c);this[_0x44fe18(0x388)][_0x44fe18(0x1d2)](_0x45a692),this[_0x44fe18(0x552)][_0x44fe18(0x490)](_0x1cbe9c,_0x45a692);}),this[_0x44f084(0x53b)]['getTypeOfUnitAdded$'](a[_0x44f084(0x38c)]['UNIVER_DOC'])[_0x44f084(0x1f5)](g[_0x44f084(0x52b)](this['dispose$']))[_0x44f084(0x1f5)](g[_0x44f084(0x218)](_0x5a6baf=>!_0x5a6baf[_0x44f084(0x38b)]()[_0x44f084(0x508)]('__')))['subscribe'](async _0xd00ed8=>{const _0x762b7d=_0x44f084,_0xf00cf0=_0xd00ed8[_0x762b7d(0x38b)](),_0x498c2d=await this[_0x762b7d(0x26b)](_0xf00cf0);this[_0x762b7d(0x388)][_0x762b7d(0x1d2)](_0x498c2d),this[_0x762b7d(0x552)][_0x762b7d(0x490)](_0xf00cf0,_0x498c2d);}),g[_0x44f084(0x3ba)](this['_univerInstanceService'][_0x44f084(0x2d4)](a[_0x44f084(0x38c)][_0x44f084(0x287)]),this[_0x44f084(0x53b)]['getTypeOfUnitDisposed$'](a[_0x44f084(0x38c)][_0x44f084(0x350)]))[_0x44f084(0x1f5)](g[_0x44f084(0x52b)](this['dispose$']))[_0x44f084(0x4f5)](_0x4562d8=>{const _0x8ddc6=_0x44f084,_0x508a5c=_0x4562d8['getUnitId'](),_0x1b6907=this[_0x8ddc6(0x552)][_0x8ddc6(0x3f4)](_0x508a5c);_0x1b6907&&(_0x1b6907[_0x8ddc6(0x266)](),this[_0x8ddc6(0x552)]['delete'](_0x508a5c));});}async[_0x364156(0x4a9)](_0x2c656d){const _0x2b284d=_0x364156,_0x539dfe=await this[_0x2b284d(0x569)]['requireSession'](_0x2c656d),_0x2f9d38=this[_0x2b284d(0x34f)][_0x2b284d(0x1c6)](Ae,_0x2c656d,_0x539dfe);return _0x2f9d38['init'](),_0x2f9d38;}async[_0x364156(0x26b)](_0x4c7b69){const _0x46b788=_0x364156,_0x154914=await this['_collabSessionService'][_0x46b788(0x33c)](_0x4c7b69),_0x1e811d=this[_0x46b788(0x34f)][_0x46b788(0x1c6)]($e,_0x4c7b69,_0x154914);return _0x1e811d['init'](),_0x1e811d;}};Z=Gs([a[_0x364156(0x4a4)](a['LifecycleStages']['Starting'],Z),Ue(0x0,a[_0x364156(0x58c)]),Ue(0x1,h[_0x364156(0x24e)](h['Injector'])),Ue(0x2,h[_0x364156(0x24e)](exports[_0x364156(0x378)]))],Z);const le=0x14,nt=0xc8,Pe=0x4,Ys=0x5;function Ks(_0x233372,_0x578cc5){const _0x4fd99a=_0x364156;let {radius:_0x11a16b,width:_0x4a7e39,height:_0x44c15f}=_0x578cc5;_0x11a16b=_0x11a16b!=null?_0x11a16b:0x0,_0x4a7e39=_0x4a7e39!=null?_0x4a7e39:0x1e,_0x44c15f=_0x44c15f!=null?_0x44c15f:0x1e;let _0x507d06=0x0,_0x46459c=0x0,_0x590287=0x0;_0x507d06=_0x46459c=_0x590287=Math[_0x4fd99a(0x55f)](_0x11a16b,_0x4a7e39/0x2,_0x44c15f/0x2),_0x233372[_0x4fd99a(0x3b1)](),_0x233372['moveTo'](_0x507d06,0x0),_0x233372['lineTo'](_0x4a7e39-_0x46459c,0x0),_0x233372[_0x4fd99a(0x307)](_0x4a7e39-_0x46459c,_0x46459c,_0x46459c,Math['PI']*0x3/0x2,0x0,!0x1),_0x233372[_0x4fd99a(0x261)](_0x4a7e39,_0x44c15f-_0x590287),_0x233372[_0x4fd99a(0x307)](_0x4a7e39-_0x590287,_0x44c15f-_0x590287,_0x590287,0x0,Math['PI']/0x2,!0x1),_0x233372[_0x4fd99a(0x261)](0x0,_0x44c15f),_0x233372[_0x4fd99a(0x261)](0x0,_0x507d06),_0x233372[_0x4fd99a(0x307)](_0x507d06,_0x507d06,_0x507d06,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x233372[_0x4fd99a(0x25f)](),_0x578cc5[_0x4fd99a(0x40d)]&&(_0x233372[_0x4fd99a(0x52a)](),_0x233372['fillStyle']=_0x578cc5[_0x4fd99a(0x40d)],_0x578cc5[_0x4fd99a(0x590)]==='evenodd'?_0x233372['fill'](_0x4fd99a(0x570)):_0x233372[_0x4fd99a(0x40d)](),_0x233372[_0x4fd99a(0x36d)]());}class Te extends R[_0x364156(0x28d)]{constructor(_0x12cc2d,_0x2a8592){const _0x15917c=_0x364156;super(_0x12cc2d,_0x2a8592),d(this,_0x15917c(0x202)),d(this,_0x15917c(0x48c)),(this[_0x15917c(0x202)]=_0x2a8592==null?void 0x0:_0x2a8592[_0x15917c(0x202)],this[_0x15917c(0x48c)]=_0x2a8592==null?void 0x0:_0x2a8592[_0x15917c(0x48c)]);}static[_0x364156(0x3a1)](_0x7a7a09,_0x1ae6e4){const _0x27de31=_0x364156,{text:_0x3aaea6,color:_0x30c22c}=_0x1ae6e4;_0x7a7a09[_0x27de31(0x52a)](),_0x7a7a09['font']=_0x27de31(0x2c7);const _0x19c568=_0x7a7a09[_0x27de31(0x29d)](_0x3aaea6)[_0x27de31(0x544)],_0x487f4e=Math[_0x27de31(0x55f)](_0x19c568+0x2*Pe,nt);Ks(_0x7a7a09,{'height':le,'radius':0x4,'width':_0x487f4e,'fill':_0x30c22c,'evented':!0x1}),_0x7a7a09[_0x27de31(0x38e)]='#FFF';const _0x456e8f=Pe,_0x7f4c14=le-Ys,_0x285285=nt-0x2*Pe;if(_0x19c568>_0x285285){let _0x24470f='',_0x28b549=0x0;for(const _0x455e6e of _0x3aaea6){const _0x2035cf=_0x7a7a09[_0x27de31(0x29d)](_0x455e6e)[_0x27de31(0x544)];if(_0x28b549+_0x2035cf<=_0x285285-_0x7a7a09['measureText'](_0x27de31(0x4f0))[_0x27de31(0x544)])_0x24470f+=_0x455e6e,_0x28b549+=_0x2035cf;else{_0x24470f+=_0x27de31(0x4f0);break;}}_0x7a7a09[_0x27de31(0x574)](_0x24470f,_0x456e8f,_0x7f4c14);}else _0x7a7a09[_0x27de31(0x574)](_0x3aaea6,_0x456e8f,_0x7f4c14);_0x7a7a09[_0x27de31(0x36d)]();}[_0x364156(0x207)](_0x11a219){const _0x3c9f77=_0x364156;Te[_0x3c9f77(0x3a1)](_0x11a219,this);}}const Xs=0x1,qs=1.5;class Js extends R['Shape']{constructor(_0x3ae872,_0x3f0a94){const _0x116e09=_0x364156;super(_0x3ae872,_0x3f0a94),d(this,_0x116e09(0x23e)),d(this,'_hovered',!0x1),d(this,'_range'),d(this,_0x116e09(0x3fd),''),d(this,_0x116e09(0x517),_0x116e09(0x428)),(_0x3f0a94&&this[_0x116e09(0x4b4)](_0x3f0a94),this[_0x116e09(0x3df)][_0x116e09(0x2ef)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x116e09(0x4b4)]({'hovered':!0x1})));}[_0x364156(0x4b4)](_0x2730e4){const _0x4417c2=_0x364156;var _0x5cd4d4,_0x43bce4,_0x580835,_0x466ed9,_0x485283;this[_0x4417c2(0x23e)]=(_0x5cd4d4=_0x2730e4['color'])!=null?_0x5cd4d4:this[_0x4417c2(0x23e)],this[_0x4417c2(0x521)]=(_0x43bce4=_0x2730e4[_0x4417c2(0x326)])!=null?_0x43bce4:this[_0x4417c2(0x521)],this[_0x4417c2(0x1e7)]=(_0x580835=_0x2730e4[_0x4417c2(0x534)])!=null?_0x580835:this[_0x4417c2(0x1e7)],this[_0x4417c2(0x3fd)]=(_0x466ed9=_0x2730e4[_0x4417c2(0x1e8)])!=null?_0x466ed9:this['_name'],this[_0x4417c2(0x517)]=(_0x485283=_0x2730e4[_0x4417c2(0x30b)])!=null?_0x485283:this[_0x4417c2(0x517)],this['transformByState']({'width':_0x2730e4[_0x4417c2(0x544)],'height':_0x2730e4[_0x4417c2(0x2c8)]});}[_0x364156(0x356)](_0x4dc5df){const _0xcf6de6=_0x364156,{row:_0x1b0e1b,column:_0x3d29e1}=_0x4dc5df;if(_0x1b0e1b>=this[_0xcf6de6(0x1e7)][_0xcf6de6(0x530)]&&_0x1b0e1b<=this['_range'][_0xcf6de6(0x1cf)]&&_0x3d29e1>=this[_0xcf6de6(0x1e7)]['startColumn']&&_0x3d29e1<=this[_0xcf6de6(0x1e7)][_0xcf6de6(0x296)]){this[_0xcf6de6(0x4b4)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x473bb3){return!0x1;}[_0x364156(0x207)](_0x24c5fe){const _0x490198=_0x364156;R[_0x490198(0x39e)][_0x490198(0x3a1)](_0x24c5fe,{'width':this[_0x490198(0x544)],'height':this[_0x490198(0x2c8)],'strokeWidth':qs,'stroke':this[_0x490198(0x23e)],'evented':!0x1}),this['_hovered']&&(_0x24c5fe[_0x490198(0x52a)](),_0x24c5fe['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x490198(0x517)]===_0x490198(0x39c)?0x0:-le),Te['drawWith'](_0x24c5fe,{'text':this['_name'],'color':this[_0x490198(0x23e)]}),_0x24c5fe[_0x490198(0x36d)]());}}var zs=Object[_0x364156(0x53c)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x238ace,_0x57b91d,_0x5f038b,_0x5016ce)=>{const _0x1499c5=_0x364156;for(var _0x49c810=_0x5016ce>0x1?void 0x0:_0x5016ce?Zs(_0x57b91d,_0x5f038b):_0x57b91d,_0x58193c=_0x238ace[_0x1499c5(0x37d)]-0x1,_0x4e7842;_0x58193c>=0x0;_0x58193c--)(_0x4e7842=_0x238ace[_0x58193c])&&(_0x49c810=(_0x5016ce?_0x4e7842(_0x57b91d,_0x5f038b,_0x49c810):_0x4e7842(_0x49c810))||_0x49c810);return _0x5016ce&&_0x49c810&&zs(_0x57b91d,_0x5f038b,_0x49c810),_0x49c810;},he=(_0x4c8774,_0x13bd04)=>(_0x23f543,_0x4ef4e2)=>_0x13bd04(_0x23f543,_0x4ef4e2,_0x4c8774);const ei=0x1389;let de=class extends a[_0x364156(0x306)]{constructor(_0x396420,_0x405667,_0x34d8bc,_0x1ff816){const _0x5c2cf6=_0x364156;super(),d(this,_0x5c2cf6(0x3a7),new Set()),d(this,_0x5c2cf6(0x453),null),(this['_collabCursorController']=_0x396420,this['_univerInstanceService']=_0x405667,this['_renderManagerService']=_0x34d8bc,this[_0x5c2cf6(0x301)]=_0x1ff816,this[_0x5c2cf6(0x477)]());}get[_0x364156(0x45c)](){const _0x3d988d=_0x364156;return this['_renderManagerService'][_0x3d988d(0x1f4)](this[_0x3d988d(0x53b)][_0x3d988d(0x31d)](a['UniverInstanceType'][_0x3d988d(0x350)])['getUnitId']())[_0x3d988d(0x500)](z[_0x3d988d(0x399)]);}get[_0x364156(0x3a6)](){const _0x5854ce=_0x364156;return this[_0x5854ce(0x53b)][_0x5854ce(0x31d)](a[_0x5854ce(0x38c)][_0x5854ce(0x350)])[_0x5854ce(0x38b)]();}['_init'](){const _0x3e1eeb=_0x364156;this['_sheetSkeletonManagerService'][_0x3e1eeb(0x4a7)][_0x3e1eeb(0x1f5)](C[_0x3e1eeb(0x52b)](this[_0x3e1eeb(0x55d)]),C[_0x3e1eeb(0x369)](_0x20ad51=>{const _0x2e07d3=_0x3e1eeb;if(_0x20ad51){const _0x21d5b2=_0x20ad51['sheetId'];return g[_0x2e07d3(0x457)](this[_0x2e07d3(0x37b)][_0x2e07d3(0x45a)](this[_0x2e07d3(0x3a6)]),this[_0x2e07d3(0x301)][_0x2e07d3(0x1d7)])[_0x2e07d3(0x1f5)](C[_0x2e07d3(0x27d)](([_0x2d8283,_0x3ac477])=>{const _0x57e1b7=new Map();return _0x2d8283['forEach']((_0x16a0b8,_0xc1bf43)=>{const _0x2b0606=_0x17ba;if(_0x16a0b8['sheetID']===_0x21d5b2){const _0x55084c={..._0x16a0b8};_0x55084c['color']=_0x3ac477[_0x16a0b8['color']],_0x57e1b7[_0x2b0606(0x490)](_0xc1bf43,_0x55084c);}}),{'skeleton':_0x20ad51,'cursors':_0x57e1b7};}));}return g['of']({'skeleton':null,'cursors':new Map()});}))[_0x3e1eeb(0x4f5)](({skeleton:_0x261efd,cursors:_0x303b4f})=>{const _0xff9eb0=_0x3e1eeb;this[_0xff9eb0(0x395)](),_0x261efd&&this[_0xff9eb0(0x3cf)](_0x261efd,_0x303b4f);}),this[_0x3e1eeb(0x45c)]['currentSkeleton$'][_0x3e1eeb(0x4f5)](_0x42e571=>{const _0x50c0f1=_0x3e1eeb;if(_0x42e571==null)return;const {skeleton:_0x35bd34}=_0x42e571,_0x1edbde=this[_0x50c0f1(0x3ea)][_0x50c0f1(0x1f4)](this['_unitId']),{scene:_0x590d1b}=_0x1edbde;_0x590d1b[_0x50c0f1(0x439)][_0x50c0f1(0x2ef)](ke(_0x4d047d=>{const _0x2d705a=_0x50c0f1;var _0x445916,_0x368b83;const {offsetX:_0x362682,offsetY:_0x13860b}=_0x4d047d,{x:_0x263311,y:_0x297e20}=_0x590d1b[_0x2d705a(0x56e)](R['Vector2']['FromArray']([_0x362682,_0x13860b])),{scaleX:_0x3b6fa5,scaleY:_0x27f48f}=_0x590d1b['getAncestorScale'](),_0x12499d=_0x590d1b[_0x2d705a(0x47d)](z['VIEWPORT_KEY'][_0x2d705a(0x51d)]),_0x419386=_0x590d1b[_0x2d705a(0x4d2)](R[_0x2d705a(0x1d5)][_0x2d705a(0x1c4)]([_0x263311,_0x297e20]),_0x12499d),_0x331a6f=_0x35bd34[_0x2d705a(0x4f2)](_0x362682,_0x13860b,_0x3b6fa5,_0x27f48f,_0x419386);((_0x445916=this['_lastPointer'])==null?void 0x0:_0x445916['column'])===_0x331a6f[_0x2d705a(0x507)]&&((_0x368b83=this[_0x2d705a(0x453)])==null?void 0x0:_0x368b83[_0x2d705a(0x3e0)])===_0x331a6f[_0x2d705a(0x3e0)]||this[_0x2d705a(0x3a7)][_0x2d705a(0x2b1)](_0x4115e1=>{const _0x235ed7=_0x2d705a;_0x4115e1[_0x235ed7(0x356)](_0x331a6f);});},0x64));});}['_updateCollabCursors'](_0x240a4f,_0x30b4ec){const _0x2f1706=_0x364156;var _0x520619;const _0x4b87ac=(_0x520619=this['_sheetSkeletonManagerService'][_0x2f1706(0x4d0)]())==null?void 0x0:_0x520619[_0x2f1706(0x2b7)];if(!_0x4b87ac)return;const _0x1832c4=this[_0x2f1706(0x366)]();if(!_0x1832c4)return;this['_cursors'][_0x2f1706(0x2b1)](_0x3fe21a=>{const _0x5ea537=_0x2f1706;_0x3fe21a[_0x5ea537(0x2c0)]();});const {scene:_0x259177}=_0x1832c4,_0x4dd4cf=ti(Array[_0x2f1706(0x259)](_0x30b4ec[_0x2f1706(0x3bc)]()))[_0x2f1706(0x27d)](_0x535cd5=>{const _0x3314f0=_0x2f1706,{color:_0x22f361,range:_0x7226f8,name:_0x3cc86e,selection:_0x3bc4a8,sheetID:_0x45f478}=_0x535cd5,{startColumn:_0x34821b,startRow:_0x4f6433,endColumn:_0x56e91d,endRow:_0x2cd67d}=_0x7226f8,_0x333ddc=z[_0x3314f0(0x3bf)](_0x4f6433,_0x34821b,_0x259177,_0x4b87ac),_0x5eacbd=z[_0x3314f0(0x3bf)](_0x2cd67d,_0x56e91d,_0x259177,_0x4b87ac),{columnHeaderHeightAndMarginTop:_0x114875}=_0x4b87ac,{startX:_0x1abc05,startY:_0xd16c9}=_0x333ddc,{endX:_0x4f4438,endY:_0x1d7d7d}=_0x5eacbd,_0x38ee4f=_0x4f4438-_0x1abc05,_0x8c36d9=_0x1d7d7d-_0xd16c9,_0x46471e={'labelPosition':_0xd16c9-_0x114875>=le?'top':_0x3314f0(0x39c),'sheetID':_0x45f478,'range':_0x7226f8,'color':_0x22f361,'name':_0x3cc86e,'selection':_0x3bc4a8,'left':_0x1abc05,'top':_0xd16c9,'width':_0x38ee4f,'height':_0x8c36d9,'evented':!0x1,'zIndex':ei};return new Js(_0x3cc86e,_0x46471e);});_0x259177[_0x2f1706(0x431)](_0x4dd4cf,Xs),this['_cursors']=new Set(_0x4dd4cf);}[_0x364156(0x395)](){const _0x6d5a1e=_0x364156;var _0x49c243;(_0x49c243=this[_0x6d5a1e(0x3a7)])==null||_0x49c243[_0x6d5a1e(0x2b1)](_0x2249ae=>_0x2249ae[_0x6d5a1e(0x266)]());}[_0x364156(0x366)](){const _0x5e3323=_0x364156;return z[_0x5e3323(0x4fc)](this['_univerInstanceService'],this[_0x5e3323(0x3ea)]);}};de=Qs([a['OnLifecycle'](a[_0x364156(0x20a)][_0x364156(0x44f)],de),he(0x0,h[_0x364156(0x24e)](Z)),he(0x1,a[_0x364156(0x58c)]),he(0x2,R['IRenderManagerService']),he(0x3,h[_0x364156(0x24e)](a[_0x364156(0x3e3)]))],de);function ti(_0x4f21d7){const _0x291c10=_0x364156,_0x39a547=new Map();return _0x4f21d7[_0x291c10(0x2b1)](_0x1b7e19=>{const _0x111f0c=_0x291c10;if(_0x39a547[_0x111f0c(0x2bc)](_0x1b7e19[_0x111f0c(0x422)])){const _0x49fdb2=_0x39a547[_0x111f0c(0x3f4)](_0x1b7e19[_0x111f0c(0x422)]);_0x49fdb2[_0x111f0c(0x1e8)]+=',\x20'+_0x1b7e19['name'];}else _0x39a547[_0x111f0c(0x490)](_0x1b7e19['selection'],_0x1b7e19);}),Array[_0x291c10(0x259)](_0x39a547[_0x291c10(0x3bc)]());}var L=function(){const _0x2c325b=_0x364156;return L=Object[_0x2c325b(0x3e9)]||function(_0x543e14){const _0x695112=_0x2c325b;for(var _0xb58790,_0xd44c3a=0x1,_0x1a2142=arguments[_0x695112(0x37d)];_0xd44c3a<_0x1a2142;_0xd44c3a++){_0xb58790=arguments[_0xd44c3a];for(var _0x15d8bd in _0xb58790)Object[_0x695112(0x419)][_0x695112(0x28a)]['call'](_0xb58790,_0x15d8bd)&&(_0x543e14[_0x15d8bd]=_0xb58790[_0x15d8bd]);}return _0x543e14;},L[_0x2c325b(0x31b)](this,arguments);},si=function(_0x3997c9,_0x59a3a3){const _0x2ecd5f=_0x364156;var _0x5059b4={};for(var _0x10c504 in _0x3997c9)Object[_0x2ecd5f(0x419)][_0x2ecd5f(0x28a)][_0x2ecd5f(0x275)](_0x3997c9,_0x10c504)&&_0x59a3a3[_0x2ecd5f(0x222)](_0x10c504)<0x0&&(_0x5059b4[_0x10c504]=_0x3997c9[_0x10c504]);if(_0x3997c9!=null&&typeof Object[_0x2ecd5f(0x2e2)]==_0x2ecd5f(0x4dc)){for(var _0x4ea08e=0x0,_0x10c504=Object['getOwnPropertySymbols'](_0x3997c9);_0x4ea08e<_0x10c504[_0x2ecd5f(0x37d)];_0x4ea08e++)_0x59a3a3[_0x2ecd5f(0x222)](_0x10c504[_0x4ea08e])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x3997c9,_0x10c504[_0x4ea08e])&&(_0x5059b4[_0x10c504[_0x4ea08e]]=_0x3997c9[_0x10c504[_0x4ea08e]]);}return _0x5059b4;},Ke=w[_0x364156(0x1cd)](function(_0x313978,_0x30c8ee){const _0x1d72f4=_0x364156;var _0x189d9f=_0x313978[_0x1d72f4(0x414)],_0xce8df0=_0x313978['id'],_0x2bcd94=_0x313978[_0x1d72f4(0x57a)],_0x4fc37e=_0x313978[_0x1d72f4(0x440)],_0x27aade=si(_0x313978,[_0x1d72f4(0x414),'id','className',_0x1d72f4(0x440)]),_0x3e010f=_0x1d72f4(0x412)[_0x1d72f4(0x44e)](_0xce8df0,'\x20')[_0x1d72f4(0x44e)](_0x2bcd94||'')[_0x1d72f4(0x52f)](),_0x4ff895=w[_0x1d72f4(0x3e7)]('_'[_0x1d72f4(0x44e)](ri()));return Dt(_0x189d9f,''[_0x1d72f4(0x44e)](_0xce8df0),{'defIds':_0x189d9f[_0x1d72f4(0x258)],'idSuffix':_0x4ff895['current']},L({'ref':_0x30c8ee,'className':_0x3e010f},_0x27aade),_0x4fc37e);});function Dt(_0x556092,_0x29f7d3,_0x333053,_0xd07f43,_0x5ac3a0){const _0x31078c=_0x364156;return w[_0x31078c(0x402)](_0x556092[_0x31078c(0x39d)],L(L({'key':_0x29f7d3},ii(_0x556092,_0x333053,_0x5ac3a0)),_0xd07f43),(ni(_0x556092,_0x333053)[_0x31078c(0x309)]||[])['map'](function(_0x105183,_0x50f798){const _0x177ab9=_0x31078c;return Dt(_0x105183,''[_0x177ab9(0x44e)](_0x29f7d3,'-')[_0x177ab9(0x44e)](_0x556092[_0x177ab9(0x39d)],'-')[_0x177ab9(0x44e)](_0x50f798),_0x333053,void 0x0,_0x5ac3a0);}));}function ii(_0x4d3f27,_0x286c8c,_0x58b2f4){const _0x51e0f8=_0x364156;var _0x18d865=L({},_0x4d3f27[_0x51e0f8(0x50c)]);_0x58b2f4!=null&&_0x58b2f4['colorChannel1']&&_0x18d865['fill']==='colorChannel1'&&(_0x18d865[_0x51e0f8(0x40d)]=_0x58b2f4[_0x51e0f8(0x4e8)]);var _0x33cb3b=_0x286c8c[_0x51e0f8(0x258)];return!_0x33cb3b||_0x33cb3b[_0x51e0f8(0x37d)]===0x0||(_0x4d3f27['tag']===_0x51e0f8(0x1db)&&_0x18d865['xlink:href']&&(_0x18d865[_0x51e0f8(0x4c4)]=_0x18d865[_0x51e0f8(0x4c4)]+_0x286c8c['idSuffix']),Object['entries'](_0x18d865)[_0x51e0f8(0x2b1)](function(_0xad27a4){const _0x25f76a=_0x51e0f8;var _0x5b85f6=_0xad27a4[0x0],_0xf3b111=_0xad27a4[0x1];typeof _0xf3b111==_0x25f76a(0x56f)&&(_0x18d865[_0x5b85f6]=_0xf3b111[_0x25f76a(0x39b)](/url\(#(.*)\)/,_0x25f76a(0x38d)['concat'](_0x286c8c[_0x25f76a(0x4b2)],')')));})),_0x18d865;}function ni(_0x1b1d02,_0x35d621){const _0x37d7c3=_0x364156;var _0x498759,_0x93b017=_0x35d621[_0x37d7c3(0x258)];return!_0x93b017||_0x93b017[_0x37d7c3(0x37d)]===0x0?_0x1b1d02:_0x1b1d02['tag']===_0x37d7c3(0x288)&&(!((_0x498759=_0x1b1d02[_0x37d7c3(0x309)])===null||_0x498759===void 0x0)&&_0x498759[_0x37d7c3(0x37d)])?L(L({},_0x1b1d02),{'children':_0x1b1d02[_0x37d7c3(0x309)][_0x37d7c3(0x27d)](function(_0x59a75b){const _0x35e531=_0x37d7c3;return typeof _0x59a75b[_0x35e531(0x50c)]['id']==_0x35e531(0x56f)&&_0x93b017&&_0x93b017[_0x35e531(0x222)](_0x59a75b['attrs']['id'])>-0x1?L(L({},_0x59a75b),{'attrs':L(L({},_0x59a75b[_0x35e531(0x50c)]),{'id':_0x59a75b['attrs']['id']+_0x35d621[_0x35e531(0x4b2)]})}):_0x59a75b;})}):_0x1b1d02;}function ri(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}Ke[_0x364156(0x36e)]=_0x364156(0x545);var oi={'tag':_0x364156(0x4cc),'attrs':{'fill':_0x364156(0x3ca),'viewBox':_0x364156(0x2a9),'width':'1em','height':_0x364156(0x2af)},'children':[{'tag':'g','attrs':{'clipPath':_0x364156(0x503)},'children':[{'tag':_0x364156(0x54b),'attrs':{'stroke':_0x364156(0x4b7),'d':_0x364156(0x2ac),'strokeLinecap':_0x364156(0x2bd),'strokeLinejoin':_0x364156(0x2bd),'strokeWidth':1.2}}]},{'tag':_0x364156(0x288),'attrs':{},'children':[{'tag':_0x364156(0x4aa),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x364156(0x54b),'attrs':{'fill':_0x364156(0x473),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x364156(0x294)]},Ut=w[_0x364156(0x1cd)](function(_0x594bf2,_0x16d3b5){const _0x2bcc52=_0x364156;return w[_0x2bcc52(0x402)](Ke,Object['assign']({},_0x594bf2,{'id':_0x2bcc52(0x449),'ref':_0x16d3b5,'icon':oi}));});Ut[_0x364156(0x36e)]='OffLineSingle';var ai={'tag':_0x364156(0x4cc),'attrs':{'fill':_0x364156(0x3ca),'viewBox':_0x364156(0x424),'width':_0x364156(0x2af),'height':_0x364156(0x2af)},'children':[{'tag':'g','attrs':{'clipPath':_0x364156(0x49c)},'children':[{'tag':_0x364156(0x54b),'attrs':{'stroke':_0x364156(0x4b7),'d':_0x364156(0x3a3),'strokeLinecap':_0x364156(0x2bd),'strokeLinejoin':_0x364156(0x2bd),'strokeWidth':1.2}}]},{'tag':_0x364156(0x288),'attrs':{},'children':[{'tag':_0x364156(0x4aa),'attrs':{'id':_0x364156(0x268)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x364156(0x515),'transform':_0x364156(0x3ef)}}]}]}],'defIds':[_0x364156(0x268)]},Pt=w[_0x364156(0x1cd)](function(_0x2de6bc,_0x3d614e){const _0x4b0c02=_0x364156;return w[_0x4b0c02(0x402)](Ke,Object[_0x4b0c02(0x3e9)]({},_0x2de6bc,{'id':_0x4b0c02(0x24f),'ref':_0x3d614e,'icon':ai}));});Pt[_0x364156(0x36e)]=_0x364156(0x216);const ci=_0x364156(0x34d),li=_0x364156(0x40b),hi=_0x364156(0x41c),_i=_0x364156(0x42d),ui=_0x364156(0x22e),ne={'onlineStatusIcon':ci,'onlineStatusTitle':li,'onlineStatus':hi,'online':_i,'offline':ui};function di(_0x30a66a){const _0x2bdc40=_0x364156;switch(_0x30a66a){case U['OFFLINE']:return _0x2bdc40(0x21c);case U[_0x2bdc40(0x49d)]:return _0x2bdc40(0x42e);case U[_0x2bdc40(0x380)]:return _0x2bdc40(0x3eb);case U[_0x2bdc40(0x2d6)]:return _0x2bdc40(0x351);case U[_0x2bdc40(0x26f)]:case U['AWAITING']:case U['AWAITING_WITH_PENDING']:return _0x2bdc40(0x50e);case U[_0x2bdc40(0x311)]:return _0x2bdc40(0x58a);}}function wt(_0x1ec2c3){const _0x1565d8=_0x364156,{status$:_0x17a548}=_0x1ec2c3,_0x433f6e=M['useObservable'](_0x17a548,U[_0x1565d8(0x2d6)]),_0x34100c=ht[_0x1565d8(0x244)](a[_0x1565d8(0x1fb)]),_0xf626cd=_0x433f6e!==U[_0x1565d8(0x209)],_0x33f9a6=_0x34100c['t'](di(_0x433f6e)),_0x243d81=Bt(ne[_0x1565d8(0x26c)],{[ne[_0x1565d8(0x3ec)]]:_0xf626cd,[ne['offline']]:!_0xf626cd}),_0x22f315=_0xf626cd?w[_0x1565d8(0x402)](Pt,null):w['createElement'](Ut,null);return w[_0x1565d8(0x402)](_0x1565d8(0x298),{'className':_0x243d81},w[_0x1565d8(0x402)](_0x1565d8(0x298),{'className':ne[_0x1565d8(0x212)]},_0x22f315),w[_0x1565d8(0x402)](_0x1565d8(0x298),{'className':ne[_0x1565d8(0x506)]},_0x33f9a6));}var Si=Object[_0x364156(0x53c)],vi=Object[_0x364156(0x55c)],gi=(_0x3fa320,_0x31f291,_0x520ca6,_0x586e20)=>{const _0xcf1ddf=_0x364156;for(var _0x26a1c7=_0x586e20>0x1?void 0x0:_0x586e20?vi(_0x31f291,_0x520ca6):_0x31f291,_0x4c81b0=_0x3fa320[_0xcf1ddf(0x37d)]-0x1,_0x346ff6;_0x4c81b0>=0x0;_0x4c81b0--)(_0x346ff6=_0x3fa320[_0x4c81b0])&&(_0x26a1c7=(_0x586e20?_0x346ff6(_0x31f291,_0x520ca6,_0x26a1c7):_0x346ff6(_0x26a1c7))||_0x26a1c7);return _0x586e20&&_0x26a1c7&&Si(_0x31f291,_0x520ca6,_0x26a1c7),_0x26a1c7;},_e=(_0x35e81a,_0x2d8eba)=>(_0x2937ca,_0x4854b0)=>_0x2d8eba(_0x2937ca,_0x4854b0,_0x35e81a);exports[_0x364156(0x4a3)]=class extends a[_0x364156(0x262)]{constructor(_0x1e569a,_0x2313c2,_0x1f12b8,_0x45e2d1){const _0x4838d5=_0x364156;super(),d(this,_0x4838d5(0x502),new g[(_0x4838d5(0x2dc))](U[_0x4838d5(0x2d6)])),(this['_univerInstanceService']=_0x1e569a,this[_0x4838d5(0x555)]=_0x2313c2,this[_0x4838d5(0x34f)]=_0x1f12b8,this[_0x4838d5(0x47c)]=_0x45e2d1,this['_initStatusComponent'](),this['_initStatusListener']());}['_initStatusComponent'](){const _0x566d20=_0x364156;this[_0x566d20(0x1e6)](this[_0x566d20(0x555)][_0x566d20(0x338)](M[_0x566d20(0x35b)][_0x566d20(0x225)],()=>ht[_0x566d20(0x51a)](fi({'status$':this['_status$'][_0x566d20(0x485)]()}),this[_0x566d20(0x34f)])));}[_0x364156(0x4e9)](){const _0x5c62a3=_0x364156;this[_0x5c62a3(0x1e6)](a[_0x5c62a3(0x4a1)](this[_0x5c62a3(0x53b)][_0x5c62a3(0x450)][_0x5c62a3(0x1f5)](g[_0x5c62a3(0x369)](()=>{const _0x2c2b6d=_0x5c62a3,_0x55aea7=this[_0x2c2b6d(0x53b)]['getFocusedUnit']();return _0x55aea7?this[_0x2c2b6d(0x47c)][_0x2c2b6d(0x21d)](_0x55aea7[_0x2c2b6d(0x38b)]()):g['of'](null);}),g['switchMap'](_0x1a927e=>_0x1a927e?_0x1a927e[_0x5c62a3(0x48a)]:g['of'](U[_0x5c62a3(0x2d6)])))[_0x5c62a3(0x4f5)](_0x556918=>{const _0xdd3aef=_0x5c62a3;this[_0xdd3aef(0x502)][_0xdd3aef(0x1d2)](_0x556918);})));}},exports[_0x364156(0x4a3)]=gi([a['OnLifecycle'](a['LifecycleStages'][_0x364156(0x29c)],exports[_0x364156(0x4a3)]),_e(0x0,a[_0x364156(0x58c)]),_e(0x1,M[_0x364156(0x576)]),_e(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)])),_e(0x3,h[_0x364156(0x24e)](exports['CollaborationController']))],exports[_0x364156(0x4a3)]);function fi(_0x243b9a){const {status$:_0x20acd8}=_0x243b9a;return function(){const _0x2636e3=_0x17ba;return w[_0x2636e3(0x402)](wt,{'status$':_0x20acd8});};}const Xe=h[_0x364156(0x493)](_0x364156(0x2f9));var mi=Object[_0x364156(0x53c)],Ii=Object[_0x364156(0x55c)],pi=(_0xb8b00f,_0x26edd2,_0x5a0649,_0x10ec1d)=>{const _0x421d4b=_0x364156;for(var _0x36d3da=_0x10ec1d>0x1?void 0x0:_0x10ec1d?Ii(_0x26edd2,_0x5a0649):_0x26edd2,_0x4448bd=_0xb8b00f[_0x421d4b(0x37d)]-0x1,_0x121ae0;_0x4448bd>=0x0;_0x4448bd--)(_0x121ae0=_0xb8b00f[_0x4448bd])&&(_0x36d3da=(_0x10ec1d?_0x121ae0(_0x26edd2,_0x5a0649,_0x36d3da):_0x121ae0(_0x36d3da))||_0x36d3da);return _0x10ec1d&&_0x36d3da&&mi(_0x26edd2,_0x5a0649,_0x36d3da),_0x36d3da;},J=(_0x53411a,_0x58c37c)=>(_0x1e0ca9,_0x4fc537)=>_0x58c37c(_0x1e0ca9,_0x4fc537,_0x53411a);exports['DataLoaderController']=class extends a['RxDisposable']{constructor(_0x2eef09,_0x1e2882,_0x5bbc96,_0x17d988,_0xd1926e,_0x3d799e){const _0x443d2a=_0x364156;super(),this['_urlService']=_0x2eef09,this[_0x443d2a(0x3f3)]=_0x1e2882,this[_0x443d2a(0x1e1)]=_0x5bbc96,this['_localCacheService']=_0x17d988,this[_0x443d2a(0x472)]=_0xd1926e,_0x3d799e?_0x3d799e==null||_0x3d799e[_0x443d2a(0x553)]()[_0x443d2a(0x541)](()=>this[_0x443d2a(0x477)]()):(this['_logService'][_0x443d2a(0x3b3)](_0x443d2a(0x432),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x443d2a(0x477)]());}async[_0x364156(0x477)](){const _0xb32f48=_0x364156,_0x498689=this[_0xb32f48(0x415)][_0xb32f48(0x429)](_0xb32f48(0x1fc)),_0x530ca1=this['_urlService'][_0xb32f48(0x429)]('type');if(!_0x498689||!_0x530ca1){this[_0xb32f48(0x3f3)]['debug'](_0xb32f48(0x432),_0xb32f48(0x32a));return;}switch(Number(_0x530ca1)){case $[_0xb32f48(0x350)]:{const _0x5d9bfe=await this[_0xb32f48(0x267)](_0x498689);this[_0xb32f48(0x2ff)](_0x5d9bfe);break;}case $[_0xb32f48(0x287)]:{await this[_0xb32f48(0x21f)](_0x498689);break;}default:{this[_0xb32f48(0x3f3)]['error'](_0xb32f48(0x432),_0xb32f48(0x308));break;}}}async['_setupSubUnitSync'](_0x35c0e6){const _0x2cdd00=_0x364156;await this[_0x2cdd00(0x2f7)](_0x35c0e6),_0x35c0e6[_0x2cdd00(0x55e)][_0x2cdd00(0x1f5)](g[_0x2cdd00(0x52b)](this[_0x2cdd00(0x55d)]))[_0x2cdd00(0x4f5)](_0x2ef658=>{const _0x4b39d9=_0x2cdd00;_0x2ef658&&this[_0x4b39d9(0x565)](_0x2ef658);}),this['_urlService']['urlChange$']['pipe'](g[_0x2cdd00(0x52b)](this['dispose$']))[_0x2cdd00(0x4f5)](()=>this[_0x2cdd00(0x2f7)](_0x35c0e6));}[_0x364156(0x565)](_0x57dc11,_0x5596c9=!0x1){const _0x384084=_0x364156,_0x28fffb=this[_0x384084(0x415)]['getParam']('subunit');_0x57dc11[_0x384084(0x25b)]()!==_0x28fffb&&this[_0x384084(0x415)]['setParam'](_0x384084(0x32c),_0x57dc11[_0x384084(0x25b)](),_0x5596c9);}async[_0x364156(0x2f7)](_0x71e80f){const _0x2db0da=_0x364156;var _0x5b471d;const _0x31cff8=this[_0x2db0da(0x415)]['getParam'](_0x2db0da(0x32c));if(!_0x31cff8||!_0x71e80f[_0x2db0da(0x31e)](_0x31cff8)){const _0x259ed9=_0x71e80f[_0x2db0da(0x413)]()[0x0],_0x437616=_0x71e80f[_0x2db0da(0x31e)](_0x259ed9);if(!_0x437616)return;this[_0x2db0da(0x565)](_0x437616,!0x0),await this['_commandService']['executeCommand'](E[_0x2db0da(0x536)]['id'],{'unitId':_0x71e80f[_0x2db0da(0x38b)](),'subUnitId':_0x259ed9});return;}((_0x5b471d=_0x71e80f['getActiveSheet']())==null?void 0x0:_0x5b471d[_0x2db0da(0x25b)]())!==_0x31cff8&&await this['_commandService'][_0x2db0da(0x291)](E[_0x2db0da(0x536)]['id'],{'unitId':_0x71e80f[_0x2db0da(0x38b)](),'subUnitId':_0x31cff8});}async['_loadSheet'](_0x389703){const _0x52cf7b=_0x364156;let _0x181999=0x0;const _0x254e14=await this[_0x52cf7b(0x520)]['loadOfflineData'](_0x389703);return _0x254e14&&(_0x254e14[_0x52cf7b(0x364)]||_0x254e14[_0x52cf7b(0x480)][_0x52cf7b(0x37d)]!==0x0)&&(_0x181999=_0x254e14['rev']),_0x181999===0x0&&this[_0x52cf7b(0x3f3)][_0x52cf7b(0x3b3)]('[DataLoaderController]',_0x52cf7b(0x284)),this[_0x52cf7b(0x472)][_0x52cf7b(0x1ec)](_0x389703,_0x181999);}async['_loadDoc'](_0x4cd594){const _0x536456=_0x364156;let _0x4b8c78=0x0;const _0x17be73=await this['_localCacheService'][_0x536456(0x435)](_0x4cd594);return _0x17be73&&(_0x17be73['awaitingChangeset']||_0x17be73[_0x536456(0x480)]['length']!==0x0)&&(_0x4b8c78=_0x17be73[_0x536456(0x57c)]),_0x4b8c78===0x0&&this['_logService'][_0x536456(0x3b3)]('[DataLoaderController]',_0x536456(0x284)),this[_0x536456(0x472)][_0x536456(0x3e8)](_0x4cd594,_0x4b8c78);}},exports['DataLoaderController']=pi([a['OnLifecycle'](a['LifecycleStages']['Starting'],exports[_0x364156(0x546)]),J(0x0,Xe),J(0x1,a[_0x364156(0x476)]),J(0x2,a['ICommandService']),J(0x3,h[_0x364156(0x24e)](exports[_0x364156(0x403)])),J(0x4,h[_0x364156(0x24e)](u[_0x364156(0x3ce)])),J(0x5,h['Optional'](Ft[_0x364156(0x554)]))],exports[_0x364156(0x546)]);var Ei=Object[_0x364156(0x53c)],Ci=Object['getOwnPropertyDescriptor'],bi=(_0x40fcc4,_0x334356,_0x2b33bb,_0x1242a3)=>{const _0x2e14e8=_0x364156;for(var _0x566ab9=_0x1242a3>0x1?void 0x0:_0x1242a3?Ci(_0x334356,_0x2b33bb):_0x334356,_0x31bef1=_0x40fcc4[_0x2e14e8(0x37d)]-0x1,_0x39e423;_0x31bef1>=0x0;_0x31bef1--)(_0x39e423=_0x40fcc4[_0x31bef1])&&(_0x566ab9=(_0x1242a3?_0x39e423(_0x334356,_0x2b33bb,_0x566ab9):_0x39e423(_0x566ab9))||_0x566ab9);return _0x1242a3&&_0x566ab9&&Ei(_0x334356,_0x2b33bb,_0x566ab9),_0x566ab9;},rt=(_0x55bf33,_0x5ae342)=>(_0x10ccf6,_0x47ce11)=>_0x5ae342(_0x10ccf6,_0x47ce11,_0x55bf33);const Ti='DEFAULT_FILE_NAME',Ri=_0x364156(0x200);let Se=class extends a['Disposable']{constructor(_0x23b714,_0x3aee87){const _0x3e6784=_0x364156;super(),this[_0x3e6784(0x53b)]=_0x23b714,this[_0x3e6784(0x53e)]=_0x3aee87,this[_0x3e6784(0x477)]();}[_0x364156(0x477)](){const _0x2390bf=_0x364156;this[_0x2390bf(0x1e6)](a['toDisposable'](this[_0x2390bf(0x53b)][_0x2390bf(0x450)][_0x2390bf(0x4f5)](()=>{const _0x4e617b=_0x2390bf;var _0x22da83;const _0x11258d=this[_0x4e617b(0x53b)][_0x4e617b(0x332)]();let _0x4ef2bc=(_0x22da83=this[_0x4e617b(0x53e)][_0x4e617b(0x58b)](Ti))!=null?_0x22da83:Ri;_0x11258d instanceof a[_0x4e617b(0x2b4)]&&(_0x4ef2bc=_0x11258d[_0x4e617b(0x1e8)]),document['title']=_0x4ef2bc;})));}};Se=bi([a['OnLifecycle'](a[_0x364156(0x20a)][_0x364156(0x365)],Se),rt(0x0,a[_0x364156(0x58c)]),rt(0x1,a[_0x364156(0x36a)])],Se);var Oi=Object[_0x364156(0x53c)],Di=Object[_0x364156(0x55c)],Ui=(_0x15be15,_0x358e74,_0x52160d,_0x27e451)=>{const _0x2c48e8=_0x364156;for(var _0x573d1e=_0x27e451>0x1?void 0x0:_0x27e451?Di(_0x358e74,_0x52160d):_0x358e74,_0x3a86a9=_0x15be15[_0x2c48e8(0x37d)]-0x1,_0x433af6;_0x3a86a9>=0x0;_0x3a86a9--)(_0x433af6=_0x15be15[_0x3a86a9])&&(_0x573d1e=(_0x27e451?_0x433af6(_0x358e74,_0x52160d,_0x573d1e):_0x433af6(_0x573d1e))||_0x573d1e);return _0x27e451&&_0x573d1e&&Oi(_0x358e74,_0x52160d,_0x573d1e),_0x573d1e;},ot=(_0x487a3c,_0x5ed455)=>(_0x196256,_0x1b3968)=>_0x5ed455(_0x196256,_0x1b3968,_0x487a3c);let je=class{constructor(_0x432ba6,_0x3ef7c3){const _0x53852e=_0x364156;this[_0x53852e(0x53e)]=_0x432ba6,this[_0x53852e(0x260)]=_0x3ef7c3;}async['getUnitOnRev'](_0x3f0ab7,_0x4e1e85){const _0x1d9616=_0x364156;var _0x5ee18b;const {unitID:_0x5bf8d9,type:_0x389d06,revision:_0x2934c7=0x0}=_0x4e1e85,_0x12c35a=this[_0x1d9616(0x33f)]()+'/'+_0x389d06+_0x1d9616(0x35f)+_0x5bf8d9+_0x1d9616(0x2c9)+(_0x2934c7===0x1?0x0:_0x2934c7),_0x543ee2=(await this['_httpService'][_0x1d9616(0x3f4)](_0x12c35a))[_0x1d9616(0x1ce)],_0x1956fa=(_0x5ee18b=_0x543ee2[_0x1d9616(0x34a)])==null?void 0x0:_0x5ee18b[_0x1d9616(0x49f)];if(_0x1956fa){const _0xda9d46=_0x1956fa==null?void 0x0:_0x1956fa['originalMeta'],_0x19b538=a[_0x1d9616(0x371)][_0x1d9616(0x3f5)](a[_0x1d9616(0x465)](_0xda9d46));_0x1956fa['originalMeta']=_0x19b538,Object[_0x1d9616(0x392)](_0x1956fa[_0x1d9616(0x532)])[_0x1d9616(0x2b1)](([,_0x487240])=>{const _0x700b1c=_0x1d9616,_0x2fe56e=_0x487240['originalMeta'],_0xa1ea66=a[_0x700b1c(0x371)][_0x700b1c(0x3f5)](a[_0x700b1c(0x465)](_0x2fe56e));_0x487240[_0x700b1c(0x263)]=_0xa1ea66;});}return _0x543ee2;}async[_0x364156(0x3b5)](_0x108e12,_0x4d2b5e){const _0x4f7f13=_0x364156,{unitID:_0x35bce2,type:_0x7ea4b1,blockID:_0x591313}=_0x4d2b5e,_0x2c2828=this[_0x4f7f13(0x44a)]()+'/'+_0x7ea4b1+'/unit/'+_0x35bce2+_0x4f7f13(0x330)+_0x591313;return(await this['_httpService'][_0x4f7f13(0x3f4)](_0x2c2828))[_0x4f7f13(0x1ce)];}async[_0x364156(0x299)](_0x1db271,_0x4b9465){const _0x572348=_0x364156,{unitID:_0x332d0d,type:_0x4b6b8e,from:_0x1ade54,to:_0x547727}=_0x4b9465,_0x3443fb=this[_0x572348(0x44a)]()+'/'+_0x4b6b8e+_0x572348(0x35f)+_0x332d0d+_0x572348(0x498)+_0x1ade54+_0x572348(0x558)+_0x547727;return(await this[_0x572348(0x260)][_0x572348(0x3f4)](_0x3443fb))['body'];}[_0x364156(0x33f)](){const _0x16ec2a=_0x364156;var _0x32551c;return(_0x32551c=this[_0x16ec2a(0x53e)][_0x16ec2a(0x58b)](ut))!=null?_0x32551c:this[_0x16ec2a(0x44a)]();}[_0x364156(0x44a)](){const _0x848fb2=_0x364156;var _0x5c3916;return(_0x5c3916=this['_configService'][_0x848fb2(0x58b)](_t))!=null?_0x5c3916:Vt;}async['getResourcesRequest'](_0x78807c,_0x358e85){const _0x45e535=_0x364156,_0x176f5d='/universer-api/snapshot/'+_0x358e85[_0x45e535(0x451)]+_0x45e535(0x35f)+_0x358e85[_0x45e535(0x1e9)]+_0x45e535(0x3c6);return(await this[_0x45e535(0x260)][_0x45e535(0x3f4)](_0x176f5d,{'params':{'resourceId':JSON['stringify'](_0x358e85['resourceIDs'])}}))[_0x45e535(0x1ce)];}[_0x364156(0x512)](){const _0x3d289d=_0x364156;throw new Error(_0x3d289d(0x2b0));}[_0x364156(0x1cb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x364156(0x2d0)](){const _0x639058=_0x364156;throw new Error(_0x639058(0x2b0));}};je=Ui([ot(0x0,a[_0x364156(0x36a)]),ot(0x1,h[_0x364156(0x24e)](y[_0x364156(0x54f)]))],je);var Pi=Object[_0x364156(0x53c)],wi=Object[_0x364156(0x55c)],yi=(_0x14cc07,_0x2f6dcf,_0x25e426,_0x3ce4ca)=>{const _0x38d1c2=_0x364156;for(var _0x4150c8=_0x3ce4ca>0x1?void 0x0:_0x3ce4ca?wi(_0x2f6dcf,_0x25e426):_0x2f6dcf,_0x431041=_0x14cc07[_0x38d1c2(0x37d)]-0x1,_0x581164;_0x431041>=0x0;_0x431041--)(_0x581164=_0x14cc07[_0x431041])&&(_0x4150c8=(_0x3ce4ca?_0x581164(_0x2f6dcf,_0x25e426,_0x4150c8):_0x581164(_0x4150c8))||_0x4150c8);return _0x3ce4ca&&_0x4150c8&&Pi(_0x2f6dcf,_0x25e426,_0x4150c8),_0x4150c8;},re=(_0x51caff,_0x2ec54f)=>(_0x526e30,_0x2903d2)=>_0x2ec54f(_0x526e30,_0x2903d2,_0x51caff);let He=class extends a['LocalUndoRedoService']{constructor(_0x20ff55,_0x11d545,_0x3d3ec8,_0x4689ee,_0x323ba8){const _0x541d36=_0x364156;super(_0x20ff55,_0x11d545,_0x3d3ec8),this[_0x541d36(0x456)]=_0x4689ee,this['_logService']=_0x323ba8;}['transformUndoRedo'](_0x159726,_0x296343){const _0xcd131e=_0x364156,_0x101a73=this[_0xcd131e(0x2e1)](_0x159726);if(_0x101a73)try{const _0x415a92=this[_0xcd131e(0x27c)](_0x101a73,_0x296343);this[_0xcd131e(0x4b5)](_0x159726,_0x415a92);}catch(_0x3f0034){this[_0xcd131e(0x3f3)][_0xcd131e(0x381)](_0xcd131e(0x331),_0x3f0034),this['_clearUndo'](_0x159726);}const _0x4a0637=this[_0xcd131e(0x34b)](_0x159726);if(_0x4a0637)try{const _0x101486=this['_transformStack'](_0x4a0637,_0x296343);this[_0xcd131e(0x48e)](_0x159726,_0x101486);}catch(_0x3b7b48){this['_logService'][_0xcd131e(0x381)](_0x3b7b48),this[_0xcd131e(0x33e)](_0x159726);}}[_0x364156(0x283)](_0x3c3309){const _0x1ccea8=_0x364156,_0x527bba=this[_0x1ccea8(0x2e1)](_0x3c3309);_0x527bba&&(_0x527bba['length']=0x0,this[_0x1ccea8(0x566)]());}[_0x364156(0x33e)](_0x3d7164){const _0x27aa78=_0x364156,_0x431e21=this['_getRedoStack'](_0x3d7164);_0x431e21&&(_0x431e21[_0x27aa78(0x37d)]=0x0,this[_0x27aa78(0x566)]());}['_substituteUndoStack'](_0x2707ab,_0x20c74d){const _0x42c700=_0x364156;this[_0x42c700(0x4b6)][_0x42c700(0x490)](_0x2707ab,_0x20c74d),this[_0x42c700(0x566)]();}['_substituteRedoStack'](_0x413356,_0x167058){const _0x2160d9=_0x364156;this[_0x2160d9(0x2d8)]['set'](_0x413356,_0x167058),this[_0x2160d9(0x566)]();}[_0x364156(0x27c)](_0x476af6,_0x271330){const _0x4204e6=_0x364156,_0x61b8c3=[];let _0xb654dd=_0x271330,_0x219e04=_0x271330;for(let _0x4dbcf1=_0x476af6[_0x4204e6(0x37d)]-0x1;_0x4dbcf1>=0x0;_0x4dbcf1--){const {unitID:_0x4fe6d3,undoMutations:_0x66899f,redoMutations:_0x21c951}=_0x476af6[_0x4dbcf1],_0x397757=this[_0x4204e6(0x456)][_0x4204e6(0x3c0)](_0xb654dd,_0x66899f),_0x2d5eab=this['_transformService'][_0x4204e6(0x3c0)](_0x219e04,_0x21c951);if(u[_0x4204e6(0x4ae)](_0x397757)||u['isTransformMutationsWithChangesetFailure'](_0x2d5eab)){this[_0x4204e6(0x3f3)][_0x4204e6(0x381)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x397757,_0x2d5eab);break;}_0xb654dd=_0x397757[_0x4204e6(0x481)],_0x219e04=_0x2d5eab[_0x4204e6(0x481)],_0x61b8c3[_0x4204e6(0x528)]({'unitID':_0x4fe6d3,'undoMutations':_0x397757[_0x4204e6(0x304)],'redoMutations':_0x2d5eab[_0x4204e6(0x304)]});}return _0x61b8c3['reverse']();}};He=yi([re(0x0,a[_0x364156(0x58c)]),re(0x1,a[_0x364156(0x542)]),re(0x2,a[_0x364156(0x49e)]),re(0x3,u[_0x364156(0x3d0)]),re(0x4,a[_0x364156(0x476)])],He);class yt extends a[_0x364156(0x306)]{constructor(){const _0x793ec2=_0x364156;super(),d(this,_0x793ec2(0x43b)),this[_0x793ec2(0x43b)]=g[_0x793ec2(0x29e)](window,_0x793ec2(0x24a))['pipe'](g[_0x793ec2(0x52b)](this[_0x793ec2(0x55d)]),g[_0x793ec2(0x4e2)](0x1),g[_0x793ec2(0x420)](void 0x0));}[_0x364156(0x293)](_0x1d081a,_0x485449,_0x14b1e1=!0x1){const _0x30a3b2=_0x364156,_0x3f8abc=new URL(window[_0x30a3b2(0x445)]['href']);_0x3f8abc[_0x30a3b2(0x341)][_0x30a3b2(0x490)](_0x1d081a,_0x485449),_0x14b1e1?window[_0x30a3b2(0x240)]['replaceState']('','',_0x3f8abc[_0x30a3b2(0x4fd)]()):window[_0x30a3b2(0x240)]['pushState']('','',_0x3f8abc[_0x30a3b2(0x4fd)]());}[_0x364156(0x374)](_0x21e68c,_0x17c1ff=!0x1){const _0x1007a8=_0x364156,_0xcdd185=new URL(window[_0x1007a8(0x445)][_0x1007a8(0x567)]);_0xcdd185[_0x1007a8(0x341)][_0x1007a8(0x4b0)](_0x21e68c),_0x17c1ff?window[_0x1007a8(0x240)][_0x1007a8(0x577)]('','',_0xcdd185[_0x1007a8(0x4fd)]()):window[_0x1007a8(0x240)][_0x1007a8(0x575)]('','',_0xcdd185[_0x1007a8(0x4fd)]());}[_0x364156(0x429)](_0x301f12){const _0x3bf491=_0x364156;var _0x2155f0;return(_0x2155f0=new URL(window[_0x3bf491(0x445)][_0x3bf491(0x567)])['searchParams']['get'](_0x301f12))!=null?_0x2155f0:void 0x0;}}const we=_0x364156(0x509),Li=_0x364156(0x38f),ue=0x6,Ni=1.5,ye=0x4,Mi=1.5,Ai=_0x364156(0x37e);class $i{constructor(_0xf16f68,_0x2ae1ea,_0x1906fb,_0x53ec89){const _0x16ec60=_0x364156;d(this,_0x16ec60(0x2cd),[]),d(this,_0x16ec60(0x467),null),d(this,_0x16ec60(0x215),null),d(this,_0x16ec60(0x347),null),d(this,_0x16ec60(0x53d),null),d(this,_0x16ec60(0x4a6),null),(this[_0x16ec60(0x27f)]=_0xf16f68,this[_0x16ec60(0x3b6)]=_0x2ae1ea,this[_0x16ec60(0x230)]=_0x1906fb,this['_document']=_0x53ec89,this[_0x16ec60(0x2b5)]());}set[_0x364156(0x387)](_0x1f69fb){const _0x99069e=_0x364156;_0x1f69fb?(this[_0x99069e(0x347)]&&this[_0x99069e(0x347)][_0x99069e(0x4f9)](),this[_0x99069e(0x215)]&&this[_0x99069e(0x215)][_0x99069e(0x3f0)]()):(this[_0x99069e(0x347)]&&this[_0x99069e(0x347)]['show'](),this[_0x99069e(0x215)]&&this['_textBubble'][_0x99069e(0x4f9)]());}[_0x364156(0x266)](){const _0x1af258=_0x364156;for(const _0x1474b5 of this[_0x1af258(0x2cd)])_0x1474b5[_0x1af258(0x266)]();this[_0x1af258(0x215)]&&this[_0x1af258(0x215)]['dispose'](),this[_0x1af258(0x347)]&&this[_0x1af258(0x347)][_0x1af258(0x266)](),this['_anchor']&&this[_0x1af258(0x467)][_0x1af258(0x266)](),this['_eventUnsubscribe']&&this[_0x1af258(0x4a6)]();}[_0x364156(0x2b5)](){const _0x7997d3=_0x364156,{_docSkeleton:_0x4e32d2,_document:_0x48371b}=this,{color:_0x436641,name:_0x39d4b2,ranges:_0x5adc83}=this['_cursor'],_0x38b493=_0x48371b[_0x7997d3(0x325)](),{docsLeft:_0x4b3309,docsTop:_0x2f3e68}=_0x38b493,_0x53f3a2=new R[(_0x7997d3(0x4bb))](_0x38b493,_0x4e32d2);for(const {startOffset:_0x5636e6,endOffset:_0x546735,collapsed:_0x2d720e,isActive:_0x244bde}of _0x5adc83){const _0x844fdf=_0x4e32d2[_0x7997d3(0x2f4)](_0x5636e6),_0x276569=_0x4e32d2['findNodePositionByCharIndex'](_0x546735);if(_0x244bde){const {contentBoxPointGroup:_0x372a6c}=_0x53f3a2[_0x7997d3(0x421)](_0x276569,_0x276569);if(_0x372a6c[_0x7997d3(0x37d)]===0x0)continue;this[_0x7997d3(0x32b)](_0x436641,_0x372a6c,_0x4b3309,_0x2f3e68,_0x39d4b2),this[_0x7997d3(0x4a6)]=this[_0x7997d3(0x21b)]();}if(!_0x2d720e){const {contentBoxPointGroup:_0x2a069e}=_0x53f3a2[_0x7997d3(0x421)](_0x844fdf,_0x276569);if(_0x2a069e[_0x7997d3(0x37d)]===0x0)continue;this[_0x7997d3(0x401)](_0x436641,_0x2a069e,_0x4b3309,_0x2f3e68);}}}[_0x364156(0x32b)](_0xe2fbd6,_0x563352,_0xc0ea27,_0x474d74,_0x236cf1){const _0x42c5ab=_0x364156,_0x3c6fe3=this['_getAnchorBounding'](_0x563352),{left:_0x388448,top:_0x412c62,height:_0x5c6524}=_0x3c6fe3,_0x1c8cdb=this['_getScale'](),_0x5147af=Mi/_0x1c8cdb,_0x3d8976=new R[(_0x42c5ab(0x39e))](we+a[_0x42c5ab(0x2f6)][_0x42c5ab(0x57d)](ue),{'left':_0x388448+_0xc0ea27-_0x5147af,'top':_0x412c62+_0x474d74,'height':_0x5c6524,'width':Ni,'fill':_0xe2fbd6||R[_0x42c5ab(0x348)](a[_0x42c5ab(0x1cc)][_0x42c5ab(0x349)],0x0),'strokeWidth':_0x5147af,'stroke':Ai,'evented':!0x0});this['_anchor']=_0x3d8976,this[_0x42c5ab(0x3b6)][_0x42c5ab(0x56c)](_0x3d8976,R['TEXT_RANGE_LAYER_INDEX']);const _0xbbfa1b=new R[(_0x42c5ab(0x39e))](we+a['Tools'][_0x42c5ab(0x57d)](ue),{'left':_0x388448+_0xc0ea27-_0x5147af,'top':_0x412c62+_0x474d74-ye/0x2,'height':ye,'width':ye,'fill':_0xe2fbd6||R[_0x42c5ab(0x348)](a[_0x42c5ab(0x1cc)]['black'],0x0),'strokeWidth':0x0,'stroke':_0xe2fbd6||R[_0x42c5ab(0x348)](a[_0x42c5ab(0x1cc)][_0x42c5ab(0x349)],0x0),'evented':!0x1});this['_anchorDot']=_0xbbfa1b,this[_0x42c5ab(0x3b6)]['addObject'](_0xbbfa1b,R[_0x42c5ab(0x281)]);const _0x160d6b=new Te(we+a[_0x42c5ab(0x2f6)][_0x42c5ab(0x57d)](ue),{'left':_0x388448+_0xc0ea27-_0x5147af,'top':_0x412c62+_0x474d74-le,'text':_0x236cf1,'color':_0xe2fbd6});this[_0x42c5ab(0x215)]=_0x160d6b,this[_0x42c5ab(0x3b6)][_0x42c5ab(0x56c)](_0x160d6b,R[_0x42c5ab(0x281)]),this[_0x42c5ab(0x387)]=!0x1;}[_0x364156(0x21b)](){const _0x4acb6d=_0x364156,_0x452493=this[_0x4acb6d(0x467)]['onPointerEnter$'][_0x4acb6d(0x2ef)](()=>{this['_hover']=!0x0;}),_0x10b8f8=this['_anchor'][_0x4acb6d(0x29a)]['subscribeEvent'](()=>{const _0x1695b0=_0x4acb6d;this[_0x1695b0(0x53d)]&&clearTimeout(this[_0x1695b0(0x53d)]),this['_hideTimer']=setTimeout(()=>{const _0x1b0a13=_0x1695b0;this[_0x1b0a13(0x387)]=!0x1;},0x7d0);});return()=>{const _0x22077c=_0x4acb6d;_0x452493[_0x22077c(0x1c8)](),_0x10b8f8['unsubscribe']();};}[_0x364156(0x401)](_0x15f401,_0x5b1497,_0x5a2df9,_0x96cdc){const _0x5e45c1=_0x364156,_0x4aad84=new a[(_0x5e45c1(0x3a4))](_0x15f401)[_0x5e45c1(0x397)](0.2)['toRgbString'](),_0x47194d=new R[(_0x5e45c1(0x430))](Li+a[_0x5e45c1(0x2f6)][_0x5e45c1(0x57d)](ue),{'pointsGroup':_0x5b1497,'fill':_0x4aad84||R[_0x5e45c1(0x348)](a['COLORS'][_0x5e45c1(0x349)],0.2),'left':_0x5a2df9,'top':_0x96cdc,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5e45c1(0x2cd)][_0x5e45c1(0x528)](_0x47194d),this[_0x5e45c1(0x3b6)][_0x5e45c1(0x56c)](_0x47194d,R[_0x5e45c1(0x281)]);}[_0x364156(0x289)](_0x247502){const _0x5c6d0e=_0x247502[0x0],_0x578e2f=_0x5c6d0e[0x0],_0x25a6b6=_0x5c6d0e[0x2],{x:_0x44f3e0,y:_0x226e89}=_0x578e2f,{x:_0x3471fd,y:_0x122c47}=_0x25a6b6;return{'left':_0x44f3e0,'top':_0x226e89,'width':_0x3471fd-_0x44f3e0,'height':_0x122c47-_0x226e89};}['_getScale'](){const _0x5e1b30=_0x364156,{scaleX:_0xe1faae,scaleY:_0x4964b9}=this[_0x5e1b30(0x3b6)][_0x5e1b30(0x2c4)]();return Math[_0x5e1b30(0x361)](_0xe1faae,_0x4964b9);}}var ji=Object[_0x364156(0x53c)],Hi=Object[_0x364156(0x55c)],xi=(_0x411cee,_0x4535f8,_0x10f7f1,_0x3834d5)=>{const _0x32e8bb=_0x364156;for(var _0x4e401e=_0x3834d5>0x1?void 0x0:_0x3834d5?Hi(_0x4535f8,_0x10f7f1):_0x4535f8,_0x44c1da=_0x411cee[_0x32e8bb(0x37d)]-0x1,_0x8c64f;_0x44c1da>=0x0;_0x44c1da--)(_0x8c64f=_0x411cee[_0x44c1da])&&(_0x4e401e=(_0x3834d5?_0x8c64f(_0x4535f8,_0x10f7f1,_0x4e401e):_0x8c64f(_0x4e401e))||_0x4e401e);return _0x3834d5&&_0x4e401e&&ji(_0x4535f8,_0x10f7f1,_0x4e401e),_0x4e401e;},oe=(_0x10cc7a,_0x3fbd23)=>(_0x451a4f,_0x3dfd96)=>_0x3fbd23(_0x451a4f,_0x3dfd96,_0x10cc7a);let ve=class extends a[_0x364156(0x306)]{constructor(_0xdb34d9,_0x25abb6,_0x48198e,_0x40ed99,_0x2d940a){const _0x19453f=_0x364156;super(),d(this,_0x19453f(0x3a7),[]),(this[_0x19453f(0x37b)]=_0xdb34d9,this[_0x19453f(0x53b)]=_0x25abb6,this[_0x19453f(0x3ea)]=_0x48198e,this[_0x19453f(0x27b)]=_0x40ed99,this[_0x19453f(0x301)]=_0x2d940a,this['_init']());}[_0x364156(0x477)](){const _0x5ce69b=_0x364156;this['_docSkeletonManagerService'][_0x5ce69b(0x4a7)]['pipe'](C[_0x5ce69b(0x52b)](this[_0x5ce69b(0x55d)]),C[_0x5ce69b(0x369)](_0x4c6b20=>{const _0x2a69a2=_0x5ce69b;if(_0x4c6b20){const _0x34aebd=_0x4c6b20[_0x2a69a2(0x229)]()[_0x2a69a2(0x537)]()['getUnitId']();return g[_0x2a69a2(0x457)](this[_0x2a69a2(0x37b)][_0x2a69a2(0x45a)](_0x34aebd),this[_0x2a69a2(0x301)][_0x2a69a2(0x1d7)])['pipe'](C[_0x2a69a2(0x27d)](([_0x3b526a,_0x4a939f])=>({'skeleton':_0x4c6b20,'cursors':[..._0x3b526a[_0x2a69a2(0x3bc)]()][_0x2a69a2(0x40f)](_0x340b23=>({..._0x340b23,'color':_0x4a939f[_0x340b23[_0x2a69a2(0x202)]]}))})));}return g['of']({'skeleton':null,'cursors':[]});}))['subscribe'](({skeleton:_0x531811,cursors:_0x814169})=>{const _0x3f1dac=_0x5ce69b;this[_0x3f1dac(0x395)](),_0x531811&&this['_updateCollabCursors'](_0x531811,_0x814169);});}['_updateCollabCursors'](_0x2da02a,_0x1287f3){const _0x210286=_0x364156,_0x777323=this['_getDocObject']();if(_0x777323==null)return;const {scene:_0x25e75c,document:_0x1e937e}=_0x777323,_0x256989=_0x1287f3[_0x210286(0x27d)](_0x2550c5=>new $i(_0x2550c5,_0x25e75c,_0x2da02a,_0x1e937e));this['_cursors']=_0x256989;}['_removeCollabCursors'](){const _0x460784=_0x364156;this['_cursors']['forEach'](_0x2bc7b4=>_0x2bc7b4[_0x460784(0x266)]()),this[_0x460784(0x3a7)]=[];}['_getDocObject'](){const _0x1cb71f=_0x364156;return N['getDocObject'](this['_univerInstanceService'],this[_0x1cb71f(0x3ea)]);}};ve=xi([a[_0x364156(0x4a4)](a[_0x364156(0x20a)]['Steady'],ve),oe(0x0,h[_0x364156(0x24e)](Z)),oe(0x1,a[_0x364156(0x58c)]),oe(0x2,R[_0x364156(0x4ca)]),oe(0x3,h['Inject'](N['DocSkeletonManagerService'])),oe(0x4,h[_0x364156(0x24e)](a['ThemeService']))],ve);var ki=Object[_0x364156(0x53c)],Bi=Object['getOwnPropertyDescriptor'],Fi=(_0x488211,_0x19d29b,_0xb57460,_0x2b2c79)=>{const _0x45e063=_0x364156;for(var _0x4dde2e=_0x2b2c79>0x1?void 0x0:_0x2b2c79?Bi(_0x19d29b,_0xb57460):_0x19d29b,_0x547a87=_0x488211[_0x45e063(0x37d)]-0x1,_0x3f0b06;_0x547a87>=0x0;_0x547a87--)(_0x3f0b06=_0x488211[_0x547a87])&&(_0x4dde2e=(_0x2b2c79?_0x3f0b06(_0x19d29b,_0xb57460,_0x4dde2e):_0x3f0b06(_0x4dde2e))||_0x4dde2e);return _0x2b2c79&&_0x4dde2e&&ki(_0x19d29b,_0xb57460,_0x4dde2e),_0x4dde2e;},Le=(_0x149589,_0x4b7211)=>(_0x258528,_0x23ac65)=>_0x4b7211(_0x258528,_0x23ac65,_0x149589);let Ee=class{constructor(_0x430981,_0x575d94,_0x21ab3b){const _0x1a28ed=_0x364156;this[_0x1a28ed(0x53e)]=_0x430981,this[_0x1a28ed(0x260)]=_0x575d94,this[_0x1a28ed(0x3e5)]=_0x21ab3b,this[_0x1a28ed(0x2a8)]();}[_0x364156(0x2a8)](){const _0x340270=_0x364156;this['_httpService'][_0x340270(0x3f2)]({'priority':0x1,'interceptor':(_0x4cda86,_0x38801e)=>_0x38801e(_0x4cda86)[_0x340270(0x1f5)](g[_0x340270(0x297)](async _0x201181=>{const _0x53a5cb=_0x340270,_0x16f0eb=_0x201181;if(_0x16f0eb['status']===0x191&&window['confirm'](this[_0x53a5cb(0x3e5)]['t'](_0x53a5cb(0x1f9)))){const _0x1ab077=window[_0x53a5cb(0x4c2)](window['location'][_0x53a5cb(0x567)]);window['location'][_0x53a5cb(0x567)]=this['_getLoginPath']()+'?url='+_0x1ab077;}return _0x16f0eb;}))});}['_getLoginPath'](){const _0x1d171e=_0x364156;var _0x94d7fc;return(_0x94d7fc=this['_configService'][_0x1d171e(0x58b)](It))!=null?_0x94d7fc:Qt;}};Ee=Fi([Le(0x0,a[_0x364156(0x36a)]),Le(0x1,h[_0x364156(0x24e)](y[_0x364156(0x54f)])),Le(0x2,h[_0x364156(0x24e)](a[_0x364156(0x1fb)]))],Ee);var Vi=Object[_0x364156(0x53c)],Wi=Object['getOwnPropertyDescriptor'],Gi=(_0x381625,_0x1980c8,_0x14720e,_0x195f66)=>{const _0x1a7915=_0x364156;for(var _0x3c826b=_0x195f66>0x1?void 0x0:_0x195f66?Wi(_0x1980c8,_0x14720e):_0x1980c8,_0x4fbbf6=_0x381625[_0x1a7915(0x37d)]-0x1,_0x4e92d0;_0x4fbbf6>=0x0;_0x4fbbf6--)(_0x4e92d0=_0x381625[_0x4fbbf6])&&(_0x3c826b=(_0x195f66?_0x4e92d0(_0x1980c8,_0x14720e,_0x3c826b):_0x4e92d0(_0x3c826b))||_0x3c826b);return _0x195f66&&_0x3c826b&&Vi(_0x1980c8,_0x14720e,_0x3c826b),_0x3c826b;},at=(_0x44906d,_0x1afe49)=>(_0x4e209f,_0xfb8bfa)=>_0x1afe49(_0x4e209f,_0xfb8bfa,_0x44906d);const Lt=_0x364156(0x4cf),Yi=_0x364156(0x533);exports[_0x364156(0x285)]=class{constructor(_0x43beca,_0x481bc6){const _0x2b974b=_0x364156;this[_0x2b974b(0x310)]=_0x43beca,this['_configService']=_0x481bc6;}['_getAPIPrefixPath'](){const _0x47ea95=_0x364156;var _0x56a558;return(_0x56a558=this['_configService'][_0x47ea95(0x58b)](Lt))!=null?_0x56a558:Yi;}async['create'](_0x1755a5){const _0x3f8d52=_0x364156,_0x240ebb=this['_getAPIPrefixPath']()+'/'+_0x1755a5[_0x3f8d52(0x4c0)]+_0x3f8d52(0x39f);return(await this[_0x3f8d52(0x310)][_0x3f8d52(0x3e1)](_0x240ebb,{'body':_0x1755a5}))[_0x3f8d52(0x1ce)][_0x3f8d52(0x2b8)]||'';}async[_0x364156(0x433)](_0x4fcbdb){const _0x30811f=_0x364156,_0x25aa3b=this['_getAPIPrefixPath']()+_0x30811f(0x559);return(await this[_0x30811f(0x310)]['post'](_0x25aa3b,{'body':_0x4fcbdb}))[_0x30811f(0x1ce)][_0x30811f(0x3af)];}async[_0x364156(0x390)](_0x479ba1){const _0x1282a9=_0x364156,_0x3c554d=this['_getAPIPrefixPath']()+'/'+_0x479ba1[_0x1282a9(0x4c0)]+_0x1282a9(0x1df)+_0x479ba1['objectID'];await this[_0x1282a9(0x310)][_0x1282a9(0x359)](_0x3c554d,{'body':_0x479ba1});}async[_0x364156(0x3a9)](_0x10f3dc){const _0x156b00=_0x364156,_0x3e5b86=this['_getAPIPrefixPath']()+'/'+_0x10f3dc[_0x156b00(0x4c0)]+_0x156b00(0x1df)+_0x10f3dc[_0x156b00(0x2b8)]+'/allowed';return(await this[_0x156b00(0x310)]['post'](_0x3e5b86,{'body':_0x10f3dc}))[_0x156b00(0x1ce)]['actions'];}async['batchAllowed'](_0x44049d){const _0x463e14=_0x364156,_0xe3a998=this[_0x463e14(0x516)]()+_0x463e14(0x334);return(await this[_0x463e14(0x310)][_0x463e14(0x3e1)](_0xe3a998,{'body':{'requests':_0x44049d}}))[_0x463e14(0x1ce)]['objectActions'];}async[_0x364156(0x55b)](_0xdd365a){const _0x4d4343=_0x364156,_0x14d2d0=this[_0x4d4343(0x516)]()+'/'+_0xdd365a['objectType']+_0x4d4343(0x499),_0x35c040=await this[_0x4d4343(0x310)][_0x4d4343(0x3e1)](_0x14d2d0,{'body':_0xdd365a});return{'roles':_0x35c040[_0x4d4343(0x1ce)][_0x4d4343(0x4d3)],'actions':_0x35c040[_0x4d4343(0x1ce)][_0x4d4343(0x256)]};}async[_0x364156(0x3d5)](_0x2c76a5){const _0x35b96c=_0x364156,_0x4f3a3a=this['_getAPIPrefixPath']()+_0x35b96c(0x463);await this[_0x35b96c(0x310)][_0x35b96c(0x4b0)](_0x4f3a3a,{'params':{'collaboratorID':_0x2c76a5[_0x35b96c(0x4ee)],'objectID':_0x2c76a5[_0x35b96c(0x2b8)],'unitID':_0x2c76a5['unitID']}});}async[_0x364156(0x24b)](_0x5cd398){const _0x312fcc=_0x364156,_0x50a162=this[_0x312fcc(0x516)]()+_0x312fcc(0x463);await this['_HTTPService'][_0x312fcc(0x4ac)](_0x50a162,{'body':_0x5cd398});}async[_0x364156(0x2fb)](_0x57a3a8){const _0x3941dd=_0x364156,_0x1c8ea7=this[_0x3941dd(0x516)]()+_0x3941dd(0x463);await this[_0x3941dd(0x310)][_0x3941dd(0x3e1)](_0x1c8ea7,{'body':_0x57a3a8});}async[_0x364156(0x539)](_0x3b4645){const _0x4bb3e4=_0x364156,_0x4cfe22=this[_0x4bb3e4(0x516)]()+_0x4bb3e4(0x463);return(await this[_0x4bb3e4(0x310)][_0x4bb3e4(0x3f4)](_0x4cfe22,{'params':{'objectID':_0x3b4645[_0x4bb3e4(0x2b8)],'unitID':_0x3b4645[_0x4bb3e4(0x1e9)]}}))[_0x4bb3e4(0x1ce)]['collaborators'];}async[_0x364156(0x2ce)](_0x59a4a1){const _0x51e41c=_0x364156,_0x364548=this[_0x51e41c(0x516)]()+_0x51e41c(0x463);await this[_0x51e41c(0x310)][_0x51e41c(0x359)](_0x364548,{'body':_0x59a4a1});}},exports['AuthzIoHttpService']=Gi([at(0x0,h[_0x364156(0x24e)](y[_0x364156(0x54f)])),at(0x1,h[_0x364156(0x24e)](a[_0x364156(0x36a)]))],exports['AuthzIoHttpService']);var Ki=Object['defineProperty'],Xi=Object[_0x364156(0x55c)],qi=(_0x1d6d3d,_0x548a4f,_0x1b92a0,_0x5f2e8b)=>{const _0x33a272=_0x364156;for(var _0xcfd4db=_0x5f2e8b>0x1?void 0x0:_0x5f2e8b?Xi(_0x548a4f,_0x1b92a0):_0x548a4f,_0x411a12=_0x1d6d3d[_0x33a272(0x37d)]-0x1,_0x37dffa;_0x411a12>=0x0;_0x411a12--)(_0x37dffa=_0x1d6d3d[_0x411a12])&&(_0xcfd4db=(_0x5f2e8b?_0x37dffa(_0x548a4f,_0x1b92a0,_0xcfd4db):_0x37dffa(_0xcfd4db))||_0xcfd4db);return _0x5f2e8b&&_0xcfd4db&&Ki(_0x548a4f,_0x1b92a0,_0xcfd4db),_0xcfd4db;},ct=(_0x355a88,_0x53f5a4)=>(_0x1d8560,_0x4c07be)=>_0x53f5a4(_0x1d8560,_0x4c07be,_0x355a88);const Ji=[_0x364156(0x204),_0x364156(0x3ad),'image/jpg',_0x364156(0x540),'image/bmp'],zi=0x5*0x400*0x400,Zi=_0x364156(0x340),Qi=_0x364156(0x550),en=_0x364156(0x58f),tn=_0x364156(0x51e);let xe=class{constructor(_0x13823d,_0xe2068b){const _0x5b63f8=_0x364156;d(this,_0x5b63f8(0x2f2),0x0),d(this,_0x5b63f8(0x271),new g[(_0x5b63f8(0x2c1))]()),d(this,'change$',this[_0x5b63f8(0x271)]),d(this,_0x5b63f8(0x22b),new Map()),(this[_0x5b63f8(0x260)]=_0x13823d,this['_configService']=_0xe2068b);}[_0x364156(0x4ff)](_0x2d3f71){const _0x1190fc=_0x364156;this[_0x1190fc(0x2f2)]=_0x2d3f71,this['_change$'][_0x1190fc(0x1d2)](_0x2d3f71);}[_0x364156(0x1ea)](_0xa96aba,_0x3c0929){const _0x3c4273=_0x364156;if(_0x3c0929===A[_0x3c4273(0x41e)][_0x3c4273(0x1e4)]){const _0x1d1bba=new Image();return _0x1d1bba['src']=_0xa96aba,_0x1d1bba;}return this['_imageSourceCache']['get'](_0xa96aba);}['addImageSourceCache'](_0x3ff3b7,_0x5ca5cb,_0x5bde70){const _0x57867b=_0x364156;_0x5ca5cb===A[_0x57867b(0x41e)]['BASE64']||_0x5bde70==null||this[_0x57867b(0x22b)][_0x57867b(0x490)](_0x3ff3b7,_0x5bde70);}async[_0x364156(0x40c)](_0x1d0bb1){const _0x2ea4ed=_0x364156;try{const _0x34675f=this[_0x2ea4ed(0x51c)](this[_0x2ea4ed(0x4c6)](),''+_0x1d0bb1),_0x14e3c=(await this[_0x2ea4ed(0x260)]['get'](_0x34675f))[_0x2ea4ed(0x1ce)];return _0x14e3c['error']&&_0x14e3c[_0x2ea4ed(0x381)][_0x2ea4ed(0x35e)]===pt['OK']?Promise[_0x2ea4ed(0x315)](_0x14e3c[_0x2ea4ed(0x2ea)]):Promise['reject'](_0x14e3c[_0x2ea4ed(0x381)]);}catch(_0x53f60c){return Promise[_0x2ea4ed(0x237)](_0x53f60c);}}async[_0x364156(0x531)](_0x269d21){const _0x2c1ae0=_0x364156;let _0x4f6deb='';if(!Ji[_0x2c1ae0(0x394)](_0x269d21[_0x2c1ae0(0x451)]))return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A[_0x2c1ae0(0x3bd)][_0x2c1ae0(0x2a2)]));if(_0x269d21[_0x2c1ae0(0x2a1)]>zi)return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A[_0x2c1ae0(0x3bd)][_0x2c1ae0(0x22f)]));try{const _0x1c0cda=new FormData();_0x1c0cda[_0x2c1ae0(0x391)](_0x2c1ae0(0x491),_0x269d21);const _0x15179a=this['_getUploadFileURL']()+_0x2c1ae0(0x1fe)+_0x269d21[_0x2c1ae0(0x2a1)][_0x2c1ae0(0x4fd)](),_0x5c5f2d=await(await fetch(_0x15179a,{'method':_0x2c1ae0(0x396),'body':_0x1c0cda}))[_0x2c1ae0(0x3d6)]();if(typeof _0x5c5f2d['FileId']!='string')return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A[_0x2c1ae0(0x3bd)]['ERROR_IMAGE']));_0x4f6deb=_0x5c5f2d[_0x2c1ae0(0x382)];}catch{return this[_0x2c1ae0(0x40e)](),Promise[_0x2c1ae0(0x237)](new Error(A['ImageUploadStatusType'][_0x2c1ae0(0x292)]));}return new Promise((_0x22ae5c,_0x56c39e)=>{const _0x502dad=_0x2c1ae0,_0x5a4d76=new FileReader();_0x5a4d76[_0x502dad(0x3fa)](_0x269d21),_0x5a4d76[_0x502dad(0x4a2)]=_0x54fe19=>{const _0x3416ca=_0x502dad;var _0x333671;const _0x28a3f6=(_0x333671=_0x54fe19[_0x3416ca(0x3f6)])==null?void 0x0:_0x333671[_0x3416ca(0x232)];if(_0x28a3f6==null){this[_0x3416ca(0x40e)](),_0x56c39e(new Error(A[_0x3416ca(0x3bd)][_0x3416ca(0x292)]));return;}const _0x8dfd7e=a[_0x3416ca(0x2f6)][_0x3416ca(0x57d)](0x6);_0x22ae5c({'imageId':_0x8dfd7e,'imageSourceType':A['ImageSourceType']['UUID'],'source':_0x4f6deb,'base64Cache':_0x28a3f6,'status':A['ImageUploadStatusType']['SUCCUSS']}),this[_0x3416ca(0x40e)]();};});}['_getUploadFileURL'](){const _0x951703=_0x364156;var _0x5d02e2;return(_0x5d02e2=this['_configService'][_0x951703(0x58b)](Zi))!=null?_0x5d02e2:Qi;}[_0x364156(0x4c6)](){const _0x3638d2=_0x364156;var _0x21666;return(_0x21666=this[_0x3638d2(0x53e)]['getConfig'](en))!=null?_0x21666:tn;}[_0x364156(0x51c)](_0x239213,_0x13909c){const _0x452ba3=_0x364156;return _0x239213['replace'](_0x452ba3(0x1f2),_0x13909c);}['_decreaseWaiting'](){const _0x476fe2=_0x364156;this['_waitCount']-=0x1,this[_0x476fe2(0x271)][_0x476fe2(0x1d2)](this[_0x476fe2(0x2f2)]);}};xe=qi([ct(0x0,h['Inject'](y[_0x364156(0x54f)])),ct(0x1,a[_0x364156(0x36a)])],xe);function _0x5d0e(){const _0x421f4b=['univer-online-status','CollaborationStatusDisplay','ImageSourceType','USERS_LEAVE','mapTo','getRangePointData','selection','_transformSelections','0\x200\x2017\x2016','CollaborationSession','77163fqeZYG','onCommentUpdate','top','getParam','parse','IHTTPImplementation','ONLINE','univer-online','collabStatus.conflict','blue400','RegularPolygon','addObjects','[DataLoaderController]','list','_startCollaboration','loadOfflineData','_schedule','@univerjs/network','_onFetchMissResult','onPointerMove$','fromCollab','urlChange$','[CollaborationEntity]','transformMutation','INVALID_ARGUMENT','liveShareOperation','extend','RichTextEditingMutation','registerRefRange','Injector','_onJoinRoomEvent','location','onTransformIME','baseRev','[OfflineState]:\x20received\x20changeset.','off-line-single','_getAPIPrefix','onCommandExecuted','c2Prime','_ensureSubject','concat','Steady','focused$','type','SEND_CHANGESET_TIMEOUT_KEY','_lastPointer','getInterceptPoints','collabCursorState$','_transformService','combineLatest','_disableEditing','_socket$','getCollabCursors$','@univerjs/engine-formula','_sheetSkeletonManagerService','data','members','fetchThroughInterceptors','_scheduleHeartbeat','_roomMembers$','UNIVER_UNKNOWN','/collaborator','_fetchMissChangesets','b64DecodeUnicode','onMissedChangesetFetched','_anchor','isTransformMutationsWithChangesetSuccess','_getCurrentRevision','_onRecvEvent','UNKNOWN_CMD','Unknown\x20user','isTransformChangesetsSuccess','parseProtocolChangeset','_onConflict','setUndoRedoMutationParamsCache','INGEST','_snapshotService','#fff','APPLY_REJECT','IURLService','ILogService','_init','SheetPermissionInitController','mergeOverrideWithDependencies','_state','rxjs','_collaborationController','getViewport','_pendingMutations','UNIVER_SLIDE','mutations','c1Prime','getCollabEntity','_retryCount','toggleOffline','asObservable','_docSyncEditingCollabCursorService','_docStateChangeManagerService','socket\x20close','_onLocalMutation','status$','_submitChangeset','text','_toggleOffline','_substituteRedoStack','slice','set','file','SUBMIT_CHANGESET','createIdentifier','close','_event$','RETRY_CONNECTING_INTERVAL','_exhaustRemoteChangesetQueue','/fetchmissing?from=','/role','updateCursorEvent','InsertRowCommandId','url(#on-line-single_clip0_910_349)','CONFLICT','IContextService','workbook','memberID','toDisposable','onload','DesktopCollaborationStatusDisplayController','OnLifecycle','\x0aAfter:\x20','_eventUnsubscribe','currentSkeleton$','COMPRESS_MUTATION_APPLY','_startSheetCollabCursor','clipPath','YUUMI_UNABLE_LOAD_URL','patch','575290dNhVYn','isTransformMutationsWithChangesetFailure','_createSocket','delete','_onRemoteACK','idSuffix','_sheetTransformSelectionsService','setShapeProps','_substituteUndoStack','_undoStacks','currentColor','DisposableCollection','jiqing500','\x20-\x20','NodePositionConvertToCursor','_timeoutTimer','disposeUnit','registerBeforeClose','_members','objectType','sessionStatus','encodeURIComponent','conflict.content','xlink:href','sequenceExecute','_getSignURL','collaboration-client.offline-data-not-saved','_selfUnitIDs','unitId','IRenderManagerService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','svg','assignAColorForMemberID','_clearScheduledTask','AUTHZ_URL_KEY','getCurrent','gold400','getVpScrollXYInfoByPosToVp','roles','_onRemoteRejected','createSocket','CompressMutationService','IImageIoService','isArray','_transformPreviousActiveRange','CHANGESET_REJ','InsertColCommandId','function','186tOZgBQ','subUnitId','_beforeCloseService','_applyRemoteChangeset','_syncEditingCollabCursor','shareReplay','getTypeOfUnitAdded$','getItem','_sessionStatus$','fetch_missing','1646694UEetTX','colorChannel1','_initStatusListener','_acknowledgedAwaitingChangeset','SEND_CHANGESET_TIMEOUT','SNAPSHOT_URL_KEY','_unitOnClients','collaboratorID','doc.mutation.rich-text-editing','...','_onCombEvent','getCellPositionByOffset','_updateState','HEARTBEAT_TIMEOUT','subscribe','routeKey','univer-pro.collaboration-client-socket-service','_messageService','hide','editing\x20status\x20changed\x20to','_notificationService','getSheetObject','toString','handleInsertRangeMoveRight','setWaitCount','with','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_status$','url(#off-line-single_clip0_910_343)','LICENSE_EXPORT_SIZE_EXCEEDED','_undoRedoService','onlineStatusTitle','column','startsWith','collab-text-anchor-','_handler','_colorAssignService','attrs','LICENSE_DISTRO_REJECTED','collabStatus.syncing','_online','_scheduleCollaborationTimeoutTimer','collaboration.closeRoom','saveSnapshot','LIVESHARE_FETCH_OPERATIONS','getCurrentRevForDocument','M0\x200H16V16H0z','_getAPIPrefixPath','_labelPosition','delay','UNRECOGNIZED','connectInjector','univer-pro.collaboration-client.single-active-unit-service','_replaceFileID','VIEW_MAIN','/universer-api/file/{fileID}/sign-url','onRemoteRej','_localCacheService','_hovered','revision','RemoveColCommandId','SNAPSHOT_SERVER_URL_KEY','_http','session.connection-failed','PERMISSION_DENIED','push','csRejEvent','save','takeUntil','ws://127.0.0.1:8000/universer-api/comb/connect','serializeCombRequest','contains','trim','startRow','saveImage','sheets','/universer-api/authz','range','_replayCachedMutations','SetWorksheetActivateCommand','getDataModel','_scheduleClearOtherTimer','listCollaborators','_revisionService','_univerInstanceService','defineProperty','_hideTimer','_configService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','image/gif','then','ICommandService','_sessions','width','UniverIcon','DataLoaderController','AWAITING_WITH_PENDING','onlyLocal','RevisionService','unit-cache-','path','unknown','_onRemoteChangeset','_saveTaskMap','HTTPService','/universer-api/stream/file/upload','CHANGESET_REVISION_CONFILICT','_entities','whenReady','IRemoteInstanceService','_uiPartsService','UNDEFINED','_handleLeaveEvent','&to=','/-/object/list','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','listRoles','getOwnPropertyDescriptor','dispose$','activeSheet$','min','pauseCollaboration','handleIRemoveCol','USERS_ENTER','getUnitType','setItem','_updateURLWithCurrentState','_updateStatus','href','_sendingTimer','_collabSessionService','@univerjs/engine-render','event$','addObject','_createInitialStateImpl','getRelativeToViewportCoord','string','evenodd','Rectangle','YUUMI_URL_COL_OUT_OF_RANGE','1017225LHletK','fillText','pushState','IUIPartsService','replaceState','LIVESHARE_OPERATION','OTHER_CLIENTS_EDITING','className','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','rev','generateRandomId','_clearHeartbeatTimer','setCurrentUser','IMEInputManagerService','_collaborationPaused','sessionStatus$','_createHandler','LOCAL_CACHE_INTERVAL','ranges','clsx','_onMessage','@univerjs/rpc','updatePermissionObjEvent','collabStatus.synced','getConfig','IUniverInstanceService','roomInfos','onTransformRemoteChangesetByIMECache','EXCHANGE_SIGN_URL_SERVER_URL_KEY','fillRule','FromArray','take','createInstance','ThresholdInterceptorFactory','unsubscribe','_getCtorByUniverType','6FMBvHN','saveSheetBlock','COLORS','forwardRef','body','endRow','630OLUlzq','onMissingChangesets','next','_awaitingChangeset','status','Vector2','FETCH_MISSING','currentTheme$','_commentUpdate$','/universer-api/snapshot','commentUpdateEvent','use','_incrementRevisionNumber','Error\x20on\x20receiving\x20event','getValue','/object/','enableLocalCache','_commandService','getUndoRedoMutationParamsCache','_clearTimeoutTimer','BASE64','_permissionService','disposeWithMe','_range','name','unitID','getImageSourceCache','session.room-full','loadSheet','@wendellhu/redi/react-bindings','\x0aCurrent:\x20','_tryEnsureSocket','getTime','HELLO','{fileID}','incrementRevForDocument','getRenderById','pipe','_config','editingUnit','UNAUTHENTICATED','auth.needGotoLoginAlert','resend','LocaleService','unit','onStateChange','?size=','initWorkbookPermissionChange','Univer','_localStorageService','color','_queuedRemoteChangesets','image/png','_transformUndoredo','getActiveRange','_draw','updatePermissionPoint','OFFLINE','LifecycleStages','TextSelectionManagerService','socket\x20open.','Error','_socketReady','RemoveRowCommandId','_onConnectionFailed','_setupBeforeClosingHandler','onlineStatusIcon','_getMergeRange','roomMembers','_textBubble','OnLineSingle','RETRY_CONNECTING_MAX_COUNT','filter','RefRangeService','transformUndoRedo','_handleHover','collabStatus.offline','getCollabEntity$','getActiveSheet','_loadDoc','onRemoteChangeset','_checkMissing','indexOf','@univerjs/sheets-ui','PERMISSION_REJ','HEADER_MENU','_removeClearOtherTimer','LEAVE','_scheduleSaving','getViewModel','_roomMembers','_imageSourceCache','UniverCollaborationPlugin','HEARTBEAT','univer-offline','ERROR_EXCEED_SIZE','_docSkeleton','SetSelectionsOperation','result','session','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','APPLY_PERMISSION_DENIED','getCurrentUser','reject','WebURLService','UniverCollaborationClientPlugin','liveShareNewHost','handleInsertRangeMoveDown','MessageType','clear','_color','UNKNOWN_CODE','history','offline','INTERNAL_ERROR','EffectRefRangId','useDependency','pending','_updateLocalCursor','IMessageService','CONNECTOR_DATA_TOO_LARGE','handleInsertRow','popstate','updateCollaborator','_handleJoinEvent','_cursorInfo$','Inject','on-line-single','_disabled','_localeService','_clearCollaborationTimeoutTimer','MSG_FOR_ERROR','message$','MUTATION','actions','reduce','defIds','from','transformChangesets','getSheetId','getCurrentSelections','isEditing','_remoteChangesetQueue','closePath','_httpService','lineTo','Disposable','originalMeta','INotificationService','commentUpdate$','dispose','_loadSheet','on-line-single_clip0_910_349','_transformUndoRedoStack','onSendChangeset','_startDocCollabCursor','onlineStatus','_joinRoom','session.will-retry','PENDING','cursorInfo$','_change$','AWAITING','COLLAB_WEB_SOCKET_URL','UPDATE_PERMISSION_OBJ','call','_sendHeartbeat','_collabCursorState$','_clearOtherTimers','_send','_sendHeartbeatTimer','_docSkeletonManagerService','_transformStack','map','/universer-api/oidc/authpage','_cursor','getUnitStatus$','TEXT_RANGE_LAYER_INDEX','csAckEvent','_clearUndo','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','AuthzIoHttpService','LIVESHARE_NEW_HOST','UNIVER_DOC','defs','_getAnchorBounding','hasOwnProperty','cmd','complete','Shape','key','_onRefRangeChange','CommandType','executeCommand','ERROR_IMAGE','setParam','off-line-single_clip0_910_343','submit\x20changeset\x20error!','endColumn','concatMap','div','fetchMissingChangesets','onPointerLeave$','_onUserLeave','Starting','measureText','fromEvent','SNAPSHOT_INVALID_SNAPSHOT','params','size','ERROR_IMAGE_TYPE','updateOfflineData','_colorIndex','toggleOnline','compose','HEARTBEAT_INTERVAL_KEY','init','0\x200\x2016\x2016','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onTransformSelections','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','isInternalEditorID','_unitStatus','1em','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','forEach','_handleHeartbeatEvent','getMember','Workbook','_render','stringify','skeleton','objectID','collaboration.single-unit.warning','getMergeData','split','has','round','_lockTransition','NOT_FOUND','makeDirty','Subject','awaiting_with_pending','UPDATE_CURSOR','getAncestorScale','fetching\x20missing\x20changesets\x20from\x20','updateMember','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','height','/rev/','mapDocumentTypeToUniverType','_onUserJoin','save\x20fail\x20reason\x20is\x20','_shapes','putCollaborators','InsertSheetMutation','saveChangeset','onSyncEditingCollabCursor','LIVESHARE_TERMINATE','[OfflineState]:\x20received\x20rejection.','getTypeOfUnitDisposed$','_id','NOT_COLLAB','enableAuthServer','_redoStacks','_showConflictNotification','ALREADY_EXISTS','debounceTime','BehaviorSubject','_waitForHeartbeatResponse','LICENSE_MAX_UNITS_EXCEEDED','distinctUntilChanged','add','_getUndoStack','getOwnPropertySymbols','_collaborationSessionService','_ws','Module','IDLE','_executeRemoteChangeset','joinEvent','LICENSE_IMPORT_SIZE_EXCEEDED','url','textRanges','_cachedData','SetTextSelectionsOperation','[CollaborationState]:\x20apply\x20error!','subscribeEvent','setTimeout','syncEditingCollabCursor','_waitCount','UserManagerService','findNodePositionByCharIndex','ILocalStorageService','Tools','_updateSubUnitFromURLParams','_clearLocalCache','uni.network.url-service','SHOULD_CLOSE_CONN','createCollaborator','onRemoteAck','_removeRoom','getUniverSheetInstance','_setupSubUnitSync','_handleEvent','_themeService','_memberService','permissionRejEvent','m2Prime','state','RxDisposable','arc','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','children','COMPRESS_MUTATION_SEND','labelPosition','docStateChange$','[OfflineState]:\x20received\x20acknowledgement.','pluginName','_unitID','_HTTPService','SYNCED','JOINING','DocStateChangeManagerService','override','resolve','_docTransformSelectionsService','_scheduleTimestamp','_transformRemoteChangesetByIMECache','appendMutation','_compressMutationService','apply','_socketMessageSubscription','getCurrentUnitForType','getSheetBySheetId','handleMoveRange','_retryConnectingTimer','eventID','close$','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','ISnapshotServerService','getOffsetConfig','hovered','parseChangesetToProtocol','[PendingState]:\x20received\x20rejection.','unshift','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_drawAnchor','subunit','error$','@univerjs/drawing','WorkbookEditablePermission','/block/','[CollaborationUndoRedoService]','getFocusedUnit','@univerjs/sheets','/-/object/-/batch_allowed','JOIN','_snapshotServerService','getWorkbookSelections','registerComponent','enableOfflineEditing','CollaborationSocketService','onStarting','requireSession','COMMENT_UPDATE','_clearRedo','_getSnapshotAPIPrefix','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','searchParams','XHRHTTPImplementation','DeleteRangeMoveUpCommandId','IBeforeCloseService','isTransformMutationFailure','SessionStatus','_anchorDot','getColor','black','snapshot','_getRedoStack','cursorInfo','univer-online-status-icon','_userManagerService','_injector','UNIVER_SHEET','collabStatus.notCollab','_toggleOnline','toStringTag','getMemberID','1302610iuKEar','onMouseMove','_initUnitPermissionChange','_assignedColors','put','SNAPSHOT_HAS_BEEN_REMOVED','BuiltInUIPart','deserializeRangeWithSheet','RECV','code','/unit/','DeleteRangeMoveLeftCommandId','max','state$','some','awaitingChangeset','Ready','_getSheetObject','ICollaborationSocketService','_collaborationTimeoutTimer','switchMap','IConfigService','clearInterval','_socket','restore','displayName','red300','roomMembers$','textEncoder','[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.','joinRsp','removeParam','interceptor','APPLY_REVISION_CONFILICT','_type','CollaborationSessionService','_singleActiveUnitService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_collabCursorController','_isPermissionRej','length','rgba(255,\x20255,\x20255,\x200.01)','@univerjs-pro/collaboration','FETCH_MISS','error','FileId','_getSendChangesetTimeout','[FetchMissState]','WebSocketService','LIVESHARE_REQUEST_HOST','_hover','_entityInit$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','isActive','getUnitId','UniverInstanceType','url(#$1','fillStyle','collab-text-range-','update','append','entries','_session','includes','_removeCollabCursors','POST','setAlpha','conflict','SheetSkeletonManagerService','CommentService','replace','bottom','tag','Rect','/object','removeMember','drawWith','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','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','ColorKit','COMPLETION_FINISHED','_unitId','_cursors','not_collab','allowed','CHANGESET_ACK','IUndoRedoService','CollaborationEvent','image/jpeg','UNIVER_COLLABORATION_CLIENT_PLUGIN','objects','_unlockTransition','beginPath','SheetsSelectionsService','debug','infoRsp','getSheetBlock','_scene','_transitionLocked','_onCursorUpdate','newValue','merge','@univerjs/ui','values','ImageUploadStatusType','_state$','getCoordByCell','transformMutationsWithChangeset','selections','Warning','deepClone','send','_createInitialState','/resources','handleInsertCol','FAIL','awaiting','none','unload','transformIMECache','shouldCloseConn','SnapshotService','_updateCollabCursors','ITransformService','runRefRangeMutations','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','collaborationUniverTypes','_onCursorDelete','deleteCollaborator','json','clearTimeout','_transformIMECache','CollaborationController','_syncEditingCollabCursorService','isPermissionRej','changesets','Optional','rxjs/operators','onPointerEnter$','row','post','purple300','ThemeService','543800ryGRHt','localeService','_updateLocalCache','useRef','loadDoc','assign','_renderManagerService','collabStatus.fetchMiss','online','_scheduleReconnection','open$','translate(.97)','show','saveOfflineData','registerHTTPInterceptor','_logService','get','encode','target','_exhaustSavingTask','IPermissionService','_saveCache','readAsDataURL','16nnTIyD','_socketService','_name','transformSelections','_refRangeService','_docTransformIMECacheService','_drawRange','createElement','LocalCacheService','react','transformRemoteChangeset','connection\x20error','_initModules','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','all','_rescheduleHeartbeatEvent','univer-online-status-title','getImage','fill','_decreaseWaiting','flatMap','NEW_CHANGESETS','_getSaveTimeout','univerjs-icon\x20univerjs-icon-','getUnhiddenWorksheets','icon','_urlService','APPLY_NON_SEQUENTIAL_REVISION','synced','_heartbeatTimer','prototype','NO_OTHER_CLIENTS_EDITING','m1Prime'];_0x5d0e=function(){return _0x421f4b;};return _0x5d0e();}var sn=Object['defineProperty'],nn=Object[_0x364156(0x55c)],rn=(_0x17b51d,_0x56be6d,_0x408d69,_0x31827e)=>{const _0x1605af=_0x364156;for(var _0x48f4a3=_0x31827e>0x1?void 0x0:_0x31827e?nn(_0x56be6d,_0x408d69):_0x56be6d,_0x561831=_0x17b51d[_0x1605af(0x37d)]-0x1,_0x134ec3;_0x561831>=0x0;_0x561831--)(_0x134ec3=_0x17b51d[_0x561831])&&(_0x48f4a3=(_0x31827e?_0x134ec3(_0x56be6d,_0x408d69,_0x48f4a3):_0x134ec3(_0x48f4a3))||_0x48f4a3);return _0x31827e&&_0x48f4a3&&sn(_0x56be6d,_0x408d69,_0x48f4a3),_0x48f4a3;},ae=(_0x404481,_0x411b74)=>(_0x4e6814,_0x284a29)=>_0x411b74(_0x4e6814,_0x284a29,_0x404481);let ge=class extends a[_0x364156(0x306)]{constructor(_0x23edf5,_0x58a6e5,_0x26f8e2,_0x384d35,_0x1a7720){const _0xdae4e2=_0x364156;super(),this[_0xdae4e2(0x34f)]=_0x23edf5,this[_0xdae4e2(0x53b)]=_0x58a6e5,this[_0xdae4e2(0x1e5)]=_0x26f8e2,this['_collaborationSessionService']=_0x384d35,this[_0xdae4e2(0x251)]=_0x1a7720,this[_0xdae4e2(0x357)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x16ec91=_0x364156,_0x3361d8=async _0x3585ea=>{const _0x5b4547=_0x17ba;(await this['_collaborationSessionService'][_0x5b4547(0x33c)](_0x3585ea))['event$'][_0x5b4547(0x1f5)](C['filter'](_0x2209c0=>_0x2209c0['eventID']===u[_0x5b4547(0x3ac)][_0x5b4547(0x2fa)]),C[_0x5b4547(0x52b)](this[_0x5b4547(0x55d)]))['subscribe'](_0x52b39c=>{const _0x39a7bd=_0x5b4547,_0x365378=_0x52b39c,{reason:_0x40bda7}=_0x365378[_0x39a7bd(0x45d)];this[_0x39a7bd(0x34f)][_0x39a7bd(0x3f4)](M[_0x39a7bd(0x247)])[_0x39a7bd(0x3f0)]({'type':Q['MessageType'][_0x39a7bd(0x20d)],'content':this[_0x39a7bd(0x251)]['t'](_0x39a7bd(0x511))+'('+_0x40bda7+')'}),this[_0x39a7bd(0x1e5)][_0x39a7bd(0x208)](new E['WorkbookEditablePermission'](_0x3585ea)['id'],!0x1);});};g['merge'](this['_univerInstanceService'][_0x16ec91(0x4e3)](a['UniverInstanceType'][_0x16ec91(0x350)]),this[_0x16ec91(0x53b)][_0x16ec91(0x4e3)](a[_0x16ec91(0x38c)][_0x16ec91(0x287)]))[_0x16ec91(0x1f5)](C[_0x16ec91(0x27d)](_0x3e61d6=>_0x3e61d6[_0x16ec91(0x38b)]()),C[_0x16ec91(0x218)](_0x493416=>!a[_0x16ec91(0x2ad)](_0x493416)),C[_0x16ec91(0x52b)](this[_0x16ec91(0x55d)]))['subscribe'](_0x4967c5=>{_0x3361d8(_0x4967c5);});}['_initUnitPermissionChange'](){const _0x462848=_0x364156,_0x2d80bc=async _0x58f154=>{const _0x37d2f9=_0x17ba;(await this[_0x37d2f9(0x2e3)][_0x37d2f9(0x33c)](_0x58f154))[_0x37d2f9(0x56b)][_0x37d2f9(0x1f5)](C['filter'](_0xaf5ea0=>_0xaf5ea0['eventID']===u['CollaborationEvent'][_0x37d2f9(0x274)]),C[_0x37d2f9(0x52b)](this[_0x37d2f9(0x55d)]))[_0x37d2f9(0x4f5)](_0x2753ab=>{const _0x2754c1=_0x37d2f9,_0x16a6ee=_0x2753ab,{objectId:_0x5385ee}=_0x16a6ee[_0x2754c1(0x45d)];_0x5385ee===_0x58f154&&this[_0x2754c1(0x34f)][_0x2754c1(0x3f4)](z[_0x2754c1(0x478)])[_0x2754c1(0x1ff)](_0x58f154);});};g[_0x462848(0x3ba)](this[_0x462848(0x53b)][_0x462848(0x4e3)](a['UniverInstanceType'][_0x462848(0x350)]),this[_0x462848(0x53b)][_0x462848(0x4e3)](a[_0x462848(0x38c)][_0x462848(0x287)]))[_0x462848(0x1f5)](C['map'](_0x4ab2ed=>_0x4ab2ed['getUnitId']()),C['filter'](_0x2fb150=>!a[_0x462848(0x2ad)](_0x2fb150)),C[_0x462848(0x52b)](this[_0x462848(0x55d)]))[_0x462848(0x4f5)](_0x1d0e25=>{_0x2d80bc(_0x1d0e25);});}};ge=rn([a[_0x364156(0x4a4)](a['LifecycleStages'][_0x364156(0x29c)],ge),ae(0x0,h[_0x364156(0x24e)](h[_0x364156(0x443)])),ae(0x1,a['IUniverInstanceService']),ae(0x2,a[_0x364156(0x3f8)]),ae(0x3,h[_0x364156(0x24e)](exports[_0x364156(0x378)])),ae(0x4,h[_0x364156(0x24e)](a['LocaleService']))],ge);var Nt=Object[_0x364156(0x53c)],on=Object[_0x364156(0x55c)],an=(_0x8ebbfa,_0x46f8d2,_0x196222)=>_0x46f8d2 in _0x8ebbfa?Nt(_0x8ebbfa,_0x46f8d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x196222}):_0x8ebbfa[_0x46f8d2]=_0x196222,cn=(_0x1355df,_0x49e819,_0x543e4b,_0x843e6a)=>{for(var _0x584eec=_0x843e6a>0x1?void 0x0:_0x843e6a?on(_0x49e819,_0x543e4b):_0x49e819,_0x452fe5=_0x1355df['length']-0x1,_0x64c2d6;_0x452fe5>=0x0;_0x452fe5--)(_0x64c2d6=_0x1355df[_0x452fe5])&&(_0x584eec=(_0x843e6a?_0x64c2d6(_0x49e819,_0x543e4b,_0x584eec):_0x64c2d6(_0x584eec))||_0x584eec);return _0x843e6a&&_0x584eec&&Nt(_0x49e819,_0x543e4b,_0x584eec),_0x584eec;},lt=(_0x2384bf,_0x4d2ae1)=>(_0x597736,_0x43c12d)=>_0x4d2ae1(_0x597736,_0x43c12d,_0x2384bf),ln=(_0x83cc99,_0x454c85,_0x16c3e5)=>an(_0x83cc99,_0x454c85+'',_0x16c3e5);const hn=_0x364156(0x3ae);exports[_0x364156(0x239)]=class extends a['Plugin']{constructor(_0xf6736a,_0x28026e,_0x249cca){const _0x59aba0=_0x364156;super(),this[_0x59aba0(0x1f6)]=_0xf6736a,this[_0x59aba0(0x3f3)]=_0x28026e,this[_0x59aba0(0x34f)]=_0x249cca;}[_0x364156(0x33b)](_0x2c9ffa){const _0xf3d183=_0x364156;var _0x199831,_0x22f732,_0x563fee,_0x260334,_0x46024e;_0x2c9ffa[_0xf3d183(0x2bc)](a[_0xf3d183(0x3ab)])&&this[_0xf3d183(0x3f3)]['error']('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x2b7f41=[[a[_0xf3d183(0x3ab)],{'useClass':He}],[exports[_0xf3d183(0x378)]],[Ye],[y[_0xf3d183(0x54f)]],[Xe,{'useClass':yt}],[G],[exports[_0xf3d183(0x403)]],[y['WebSocketService']],[Ie],[me],[fe],[Ge],[Ee],[We],[ge],[Ve,{'useClass':(_0x22f732=(_0x199831=this[_0xf3d183(0x1f6)])==null?void 0x0:_0x199831['socketService'])!=null?_0x22f732:exports[_0xf3d183(0x33a)]}],[y[_0xf3d183(0x42b)],{'useClass':y[_0xf3d183(0x342)]}],[a['ISnapshotServerService'],{'useClass':je}],[a['IAuthzIoService'],{'useClass':exports[_0xf3d183(0x285)]}],[A[_0xf3d183(0x4d7)],{'useClass':xe}],[exports['CollaborationController']],[exports['DataLoaderController']],[exports[_0xf3d183(0x4a3)]],[Se],[Z]];(_0x563fee=this[_0xf3d183(0x1f6)])!=null&&_0x563fee['enableSingleActiveInstanceLock']&&_0x2b7f41[_0xf3d183(0x528)]([Ce,{'useClass':ds}]),((_0x260334=this[_0xf3d183(0x1f6)])==null?void 0x0:_0x260334[_0xf3d183(0x3d3)])==null||this['_config'][_0xf3d183(0x3d3)][_0xf3d183(0x394)](a[_0xf3d183(0x38c)]['UNIVER_SHEET'])?_0x2b7f41['push']([de]):this[_0xf3d183(0x1f6)][_0xf3d183(0x3d3)][_0xf3d183(0x394)](a['UniverInstanceType'][_0xf3d183(0x287)])&&_0x2b7f41[_0xf3d183(0x528)]([ve]),_0x2b7f41=a[_0xf3d183(0x479)](_0x2b7f41,(_0x46024e=this[_0xf3d183(0x1f6)])==null?void 0x0:_0x46024e[_0xf3d183(0x314)]),_0x2b7f41['forEach'](_0x2030e5=>_0x2c9ffa['add'](_0x2030e5)),_0x2c9ffa[_0xf3d183(0x3f4)](y['HTTPService'])[_0xf3d183(0x3f2)]({'priority':0x14,'interceptor':y[_0xf3d183(0x1c7)]({'maxParallel':0x6})}),this[_0xf3d183(0x407)]();}[_0x364156(0x407)](){const _0x5d1fb4=_0x364156;var _0x3113eb,_0x4c359e;(_0x3113eb=this['_config'])!=null&&_0x3113eb[_0x5d1fb4(0x339)]||this['_injector'][_0x5d1fb4(0x3f4)](exports[_0x5d1fb4(0x403)])['disableLocalCache'](),(_0x4c359e=this['_config'])!=null&&_0x4c359e[_0x5d1fb4(0x2d7)]&&this[_0x5d1fb4(0x34f)]['get'](Ee);}},ln(exports[_0x364156(0x239)],_0x364156(0x30e),hn),exports[_0x364156(0x239)]=cn([a['DependentOn'](u[_0x364156(0x22c)]),lt(0x1,a[_0x364156(0x476)]),lt(0x2,h[_0x364156(0x24e)](h[_0x364156(0x443)]))],exports[_0x364156(0x239)]),exports[_0x364156(0x4cf)]=Lt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=mt,exports['COLLAB_WEB_SOCKET_URL_KEY']=St,exports['CollaborationStatus']=U,exports[_0x364156(0x41d)]=wt,exports[_0x364156(0x39a)]=We,exports[_0x364156(0x2a7)]=vt,exports['HEARTBEAT_TIMEOUT_KEY']=Be,exports[_0x364156(0x367)]=Ve,exports[_0x364156(0x475)]=Xe,exports['LOCAL_CACHE_INTERVAL_KEY']=ft,exports['LOGIN_URL_KEY']=It,exports[_0x364156(0x452)]=dt,exports[_0x364156(0x524)]=_t,exports['SNAPSHOT_URL_KEY']=ut,exports[_0x364156(0x346)]=W,exports[_0x364156(0x238)]=yt,exports['deserializeToCombResponse']=Et,exports[_0x364156(0x52d)]=Ct;
|