@univerjs-pro/live-share 0.15.3 → 0.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x28bc(_0x3e7af3,_0xe0cf83){_0x3e7af3=_0x3e7af3-0x99;const _0x1a2922=_0x1a29();let _0x28bc01=_0x1a2922[_0x3e7af3];return _0x28bc01;}const _0x46e566=_0x28bc;(function(_0x5db04b,_0x1c13d7){const _0x32b5df=_0x28bc,_0x30a18a=_0x5db04b();while(!![]){try{const _0x402a52=parseInt(_0x32b5df(0xb3))/0x1*(parseInt(_0x32b5df(0xac))/0x2)+parseInt(_0x32b5df(0xa5))/0x3+-parseInt(_0x32b5df(0xaa))/0x4*(parseInt(_0x32b5df(0xa4))/0x5)+-parseInt(_0x32b5df(0xa8))/0x6+-parseInt(_0x32b5df(0x99))/0x7*(parseInt(_0x32b5df(0xb9))/0x8)+parseInt(_0x32b5df(0xaf))/0x9+-parseInt(_0x32b5df(0xa3))/0xa*(-parseInt(_0x32b5df(0x9e))/0xb);if(_0x402a52===_0x1c13d7)break;else _0x30a18a['push'](_0x30a18a['shift']());}catch(_0x500c44){_0x30a18a['push'](_0x30a18a['shift']());}}}(_0x1a29,0x80b45));var h=Object[_0x46e566(0xa6)],u=(_0x52525c,_0x2362ce,_0x96dce0)=>_0x2362ce in _0x52525c?h(_0x52525c,_0x2362ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x96dce0}):_0x52525c[_0x2362ce]=_0x96dce0,S=(_0x39d8b0,_0x37139a,_0x2a3d47)=>u(_0x39d8b0,typeof _0x37139a!='symbol'?_0x37139a+'':_0x37139a,_0x2a3d47);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x46e566(0xbd)]{constructor(){const _0x3dc989=_0x46e566;super(...arguments),S(this,_0x3dc989(0xbc));}[_0x46e566(0xba)](_0xcf265e){const _0x5ba229=_0x46e566;this[_0x5ba229(0xbc)]=_0xcf265e[_0x5ba229(0xb7)](s[_0x5ba229(0xa9)]);}[_0x46e566(0xa2)](){const _0x1201c8=_0x46e566;var _0x3802cb;const _0x521664=this[_0x1201c8(0xad)][_0x1201c8(0xb7)](n[_0x1201c8(0xae)])[_0x1201c8(0xbb)](n[_0x1201c8(0xb8)]['UNIVER_SHEET']);if(!_0x521664)throw new Error(_0x1201c8(0xa7));const _0x39670b=_0x521664[_0x1201c8(0x9d)](),_0x26ca4d=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x39670b);return(_0x3802cb=_0x26ca4d==null?void 0x0:_0x26ca4d[_0x1201c8(0xa1)]())!=null?_0x3802cb:s[_0x1201c8(0xb6)][_0x1201c8(0x9f)];}[_0x46e566(0xb1)](){const _0x47154b=_0x46e566,_0x1cc17a=this[_0x47154b(0xad)]['get'](n[_0x47154b(0xae)])[_0x47154b(0xbb)](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x1cc17a)throw new Error(_0x47154b(0xa7));const _0x1e618f=_0x1cc17a[_0x47154b(0x9d)](),_0x4c521b=this['_liveShareController'][_0x47154b(0xa0)](_0x1e618f);if(!_0x4c521b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c521b['startFollowing']();}[_0x46e566(0x9b)](){const _0x398671=_0x46e566,_0x81c85=this[_0x398671(0xad)][_0x398671(0xb7)](n[_0x398671(0xae)])[_0x398671(0xbb)](n['UniverInstanceType'][_0x398671(0xb4)]);if(!_0x81c85)throw new Error(_0x398671(0xa7));const _0x2c03ec=_0x81c85[_0x398671(0x9d)](),_0x333776=this[_0x398671(0xbc)][_0x398671(0xa0)](_0x2c03ec);if(!_0x333776)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x333776[_0x398671(0x9b)]();}[_0x46e566(0xb5)](){const _0x272499=_0x46e566,_0x45a819=this['_injector'][_0x272499(0xb7)](n[_0x272499(0xae)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x45a819)throw new Error(_0x272499(0xa7));const _0x14ce11=_0x45a819['getUnitId'](),_0x18cc62=this[_0x272499(0xbc)][_0x272499(0xa0)](_0x14ce11);if(!_0x18cc62)throw new Error(_0x272499(0xab));_0x18cc62[_0x272499(0x9c)]();}[_0x46e566(0xb0)](){const _0x4a93e4=_0x46e566,_0x3299b9=this[_0x4a93e4(0xad)]['get'](n[_0x4a93e4(0xae)])[_0x4a93e4(0xbb)](n[_0x4a93e4(0xb8)][_0x4a93e4(0xb4)]);if(!_0x3299b9)throw new Error(_0x4a93e4(0xa7));const _0xe31a93=_0x3299b9['getUnitId'](),_0x35940d=this[_0x4a93e4(0xbc)][_0x4a93e4(0xa0)](_0xe31a93);if(!_0x35940d)throw new Error(_0x4a93e4(0xab));_0x35940d[_0x4a93e4(0xb0)]();}}c[_0x46e566(0xbd)][_0x46e566(0x9a)](I);class l extends c['FEnum']{get[_0x46e566(0xb2)](){return s['LiveShareStatus'];}}c['FEnum']['extend'](l);function _0x1a29(){const _0x36d58d=['getLiveShareCoordinatorSync','getStatus','getLiveShareStatus','50JgfSDC','5cqmhlO','1163040CKFUCM','defineProperty','No\x20active\x20workbook\x20found.','2522958WlJoSl','LiveShareController','2383980UdbORH','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','566ENmkeL','_injector','IUniverInstanceService','2730789YSwUPY','stopPresenting','startFollowing','LiveShareStatusEnum','3425WKIXvi','UNIVER_SHEET','startPresenting','LiveShareStatus','get','UniverInstanceType','133816IrFqOn','_initialize','getCurrentUnitOfType','_liveShareController','FUniver','70wLcEBD','extend','stopFollowing','tryStartPresenting','getUnitId','111221jgpQGv','IDLE'];_0x1a29=function(){return _0x36d58d;};return _0x1a29();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x2dfb8c=_0x21a5;(function(_0x2418fa,_0x32d88b){const _0xa53c7e=_0x21a5,_0x116fc5=_0x2418fa();while(!![]){try{const _0x210749=-parseInt(_0xa53c7e(0x136))/0x1*(-parseInt(_0xa53c7e(0x91))/0x2)+-parseInt(_0xa53c7e(0x130))/0x3*(-parseInt(_0xa53c7e(0x119))/0x4)+parseInt(_0xa53c7e(0xa4))/0x5+-parseInt(_0xa53c7e(0x114))/0x6+parseInt(_0xa53c7e(0x11a))/0x7+-parseInt(_0xa53c7e(0xa9))/0x8+parseInt(_0xa53c7e(0x126))/0x9*(parseInt(_0xa53c7e(0xb7))/0xa);if(_0x210749===_0x32d88b)break;else _0x116fc5['push'](_0x116fc5['shift']());}catch(_0x429072){_0x116fc5['push'](_0x116fc5['shift']());}}}(_0x228d,0xdc57d));function _0x228d(){const _0x2282e7=['LiveShareStatus','getTypeOfUnitAdded$','DependentOn','_fetchOperations','from','86fSTLVB','_beIdle','FOLLOWING','useEffect','forwardRef','connectInjector','_init','then','NEW_CHANGESETS','presenter','ONLINE','LIVESHARE_TERMINATE','onRendered','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','UNIVER_LIVE_SHARE_PLUGIN','colorChannel1','has','executeCommand','_handleNewHost','5671110HoKhDR','Subject','LIVESHARE_REQUEST_HOST','_config','Stop\x20following','14209712KdSmsT','asObservable','end','_collabSessionService','children','SetZoomRatioOperation','SetScrollOperation','merge','init','Disposable','next','_startFollowing','useDependency','get','73110NaaGiR','_univerInstanceService','_presenter','getValue','idSuffix','useRef','unitId','fill','NOT_FOLLOWING','map','createElement','_collabSession','complete','assign','IUniverInstanceService','set','defineProperty','find','subscribe','pipe','toStringTag','_mountLiveShare','params','_configService','string','UniverLiveSharePlugin','jsx','_sharedOperations','forEach','_status$','_commandService','IDLE','RxDisposable','_handleOffline','_startLiveShareCoordinator','ICommandService','CollaborationEvent','SetWorksheetActiveOperation','_injector','getUnitId','Dropdown','shouldShareOperation','IConfigService','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','CollaborationSessionService','0\x200\x2017\x2017','Injector','parse','_handleTerminate','UNIVER_SHEET','div','not-following','current','mask','_handleOnline','registerComponent','Fragment','text','stopFollowing','attrs','_stopFollowing','Button','parseProtocolChangeset','type','live-share-icon','BehaviorSubject','override','registerInitialStateReporter','getCurrentTypeOfUnit$','startFollowing','_unitID','1em','following','getLiveShareCoordinatorSync','LiveShare','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','throttleTime','replace','registerSharedOperation','data','setConfig','xlink:href','stopPresenting','registerDependencies','LiveShareService','takeUntil','useState','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20following\x20the\x20presenter','presenting','tryStartPresenting','4554864xgINfw','reverse','LiveShareController','status$','sheet','9244zgBkOb','2646182ztoVjN','_entities','tag','idle','touchDependencies','_status','none','DesktopLiveShareController','stringify','includes','currentColor','offline','1782rRdyCB','getLiveShareCoordinator','Module','_stopPresenting','substring','url(#$1','clsx','unsubscribe','Inject','defs','204dhJBQQ','onCommandExecuted','default','_liveShareService','You\x27re\x20not\x20following\x20the\x20presenter','displayName','7463ZaXZJW','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','Start\x20following','add','toDisposable','InsertSheetMutation','mergeOverrideWithDependencies','getMemberID','LIVESHARE_OPERATION','getInitialStates','mutations','send','entries','svg','path','dispose$','getTypeOfUnitDisposed$','univerjs-icon\x20univerjs-icon-','UniverInstanceType','disposeWithMe','_handleOperation','Present\x20this\x20document','delete','PRESENTING','live-share.config','_commandDisposable','length','button','LiveShareCoordinator','_reporters','OFFLINE','jsxs','HEADER_MENU','Start','evenodd','Stop\x20presenting','memberID','SessionStatus','use','getOwnPropertyDescriptor','clear','dispose','defIds'];_0x228d=function(){return _0x2282e7;};return _0x228d();}var T=Object[_0x2dfb8c(0xc7)],U=(_0xee2162,_0xdddd9e,_0x420a9b)=>_0xdddd9e in _0xee2162?T(_0xee2162,_0xdddd9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x420a9b}):_0xee2162[_0xdddd9e]=_0x420a9b,_=(_0x127228,_0xc4001d,_0x4c3db3)=>U(_0x127228,typeof _0xc4001d!='symbol'?_0xc4001d+'':_0xc4001d,_0x4c3db3);Object['defineProperty'](exports,Symbol[_0x2dfb8c(0xcb)],{'value':_0x2dfb8c(0x128)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x490a4e,..._0x38395d}){const _0x4fc5a3=_0x2dfb8c,{icon:_0x1dfc6f,id:_0x38a270,className:_0x4d5c8e,extend:_0xc0db,..._0x3d4528}=_0x38395d,_0x2723d4=(_0x4fc5a3(0x147)+_0x38a270+'\x20'+(_0x4d5c8e||''))['trim'](),_0xf11804=v[_0x4fc5a3(0xbc)]('_'+H());return j(_0x1dfc6f,''+_0x38a270,{'defIds':_0x1dfc6f[_0x4fc5a3(0x8b)],'idSuffix':_0xf11804[_0x4fc5a3(0xed)]},{'ref':_0x490a4e,'className':_0x2723d4,..._0x3d4528},_0xc0db);}function j(_0x44db8f,_0x555f13,_0x2eb647,_0xe7621e,_0x41ce31){const _0x529aba=_0x2dfb8c;return v['createElement'](_0x44db8f['tag'],{'key':_0x555f13,...y(_0x44db8f,_0x2eb647,_0x41ce31),..._0xe7621e},(F(_0x44db8f,_0x2eb647)[_0x529aba(0xad)]||[])[_0x529aba(0xc0)]((_0x5ddcbf,_0xcf27b8)=>j(_0x5ddcbf,_0x555f13+'-'+_0x44db8f['tag']+'-'+_0xcf27b8,_0x2eb647,void 0x0,_0x41ce31)));}function y(_0x536e80,_0xd96e75,_0x42e5f9){const _0x432161=_0x2dfb8c,_0x31c377={..._0x536e80[_0x432161(0xf4)]};_0x42e5f9!=null&&_0x42e5f9[_0x432161(0xa0)]&&_0x31c377[_0x432161(0xbe)]==='colorChannel1'&&(_0x31c377[_0x432161(0xbe)]=_0x42e5f9[_0x432161(0xa0)]),_0x536e80[_0x432161(0x11c)]===_0x432161(0xee)&&_0x31c377['id']&&(_0x31c377['id']=_0x31c377['id']+_0xd96e75[_0x432161(0xbb)]),Object[_0x432161(0x142)](_0x31c377)['forEach'](([_0x4c4883,_0x142c1c])=>{const _0x2c2cf1=_0x432161;_0x4c4883===_0x2c2cf1(0xee)&&typeof _0x142c1c==_0x2c2cf1(0xcf)&&(_0x31c377[_0x4c4883]=_0x142c1c['replace'](/url\(#(.*)\)/,'url(#$1'+_0xd96e75['idSuffix']+')'));});const {defIds:_0x2c6242}=_0xd96e75;return!_0x2c6242||_0x2c6242['length']===0x0||(_0x536e80[_0x432161(0x11c)]===_0x432161(0x87)&&_0x31c377[_0x432161(0x10a)]&&(_0x31c377[_0x432161(0x10a)]=_0x31c377[_0x432161(0x10a)]+_0xd96e75[_0x432161(0xbb)]),Object['entries'](_0x31c377)['forEach'](([_0x413e2d,_0x40e933])=>{const _0x2c0d1b=_0x432161;typeof _0x40e933=='string'&&(_0x31c377[_0x413e2d]=_0x40e933[_0x2c0d1b(0x106)](/url\(#(.*)\)/,_0x2c0d1b(0x12b)+_0xd96e75[_0x2c0d1b(0xbb)]+')'));})),_0x31c377;}function F(_0x8f107a,_0x8856fa){const _0x195ac9=_0x2dfb8c;var _0xe30e8c;const {defIds:_0x7f2b6d}=_0x8856fa;return!_0x7f2b6d||_0x7f2b6d[_0x195ac9(0x7b)]===0x0?_0x8f107a:_0x8f107a[_0x195ac9(0x11c)]===_0x195ac9(0x12f)&&((_0xe30e8c=_0x8f107a[_0x195ac9(0xad)])!=null&&_0xe30e8c[_0x195ac9(0x7b)])?{..._0x8f107a,'children':_0x8f107a[_0x195ac9(0xad)][_0x195ac9(0xc0)](_0x4e634f=>typeof _0x4e634f['attrs']['id']==_0x195ac9(0xcf)&&_0x7f2b6d&&_0x7f2b6d['includes'](_0x4e634f['attrs']['id'])?{..._0x4e634f,'attrs':{..._0x4e634f[_0x195ac9(0xf4)],'id':_0x4e634f['attrs']['id']+_0x8856fa[_0x195ac9(0xbb)]}}:_0x4e634f)}:_0x8f107a;}function H(){const _0xa0364=_0x2dfb8c;return Math['random']()['toString'](0x24)[_0xa0364(0x12a)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':_0x2dfb8c(0x143),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2dfb8c(0x120),'viewBox':_0x2dfb8c(0xe6),'width':'1em','height':_0x2dfb8c(0x100)},'children':[{'tag':_0x2dfb8c(0x144),'attrs':{'fill':_0x2dfb8c(0x124),'d':_0x2dfb8c(0x104)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x2dfb8c(0x137),'fillRule':'evenodd','clipRule':_0x2dfb8c(0x83)}}]},R=v[_0x2dfb8c(0x95)](function(_0xce0be3,_0x48380e){const _0x29cf57=_0x2dfb8c;return v[_0x29cf57(0xc1)](x,Object[_0x29cf57(0xc4)]({},_0xce0be3,{'id':_0x29cf57(0xf9),'ref':_0x48380e,'icon':V}));});R[_0x2dfb8c(0x135)]='LiveShareIcon';class E extends o[_0x2dfb8c(0xb2)]{constructor(){const _0x554aed=_0x2dfb8c;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x554aed(0x7e),new Set());}['registerSharedOperation'](_0x1b5bdf){const _0xa1ac3d=_0x2dfb8c;return this[_0xa1ac3d(0xd2)][_0xa1ac3d(0x139)](_0x1b5bdf),o[_0xa1ac3d(0x13a)](()=>this['_sharedOperations'][_0xa1ac3d(0x77)](_0x1b5bdf));}[_0x2dfb8c(0xfc)](_0x2603f9){const _0x4282b3=_0x2dfb8c;return this['_reporters'][_0x4282b3(0x139)](_0x2603f9),o[_0x4282b3(0x13a)](()=>this['_reporters'][_0x4282b3(0x77)](_0x2603f9));}[_0x2dfb8c(0xe0)](_0x20abec){const _0x49b2ef=_0x2dfb8c;return this[_0x49b2ef(0xd2)]['has'](_0x20abec);}[_0x2dfb8c(0x13f)](_0x23ea8d){const _0x5bc66e=_0x2dfb8c;return Array[_0x5bc66e(0x90)](this[_0x5bc66e(0x7e)])[_0x5bc66e(0xc0)](_0x2e88d6=>_0x2e88d6(_0x23ea8d));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x513c36,_0x77fd67,_0x1496f2,_0x3a4af9)=>{const _0x4011f9=_0x2dfb8c;for(var _0x2fa3d2=_0x3a4af9>0x1?void 0x0:_0x3a4af9?M(_0x77fd67,_0x1496f2):_0x77fd67,_0x28f425=_0x513c36[_0x4011f9(0x7b)]-0x1,_0x8ca6a2;_0x28f425>=0x0;_0x28f425--)(_0x8ca6a2=_0x513c36[_0x28f425])&&(_0x2fa3d2=_0x8ca6a2(_0x2fa3d2)||_0x2fa3d2);return _0x2fa3d2;},S=(_0x18507f,_0x3810c2)=>(_0x4fe22d,_0x194ba1)=>_0x3810c2(_0x4fe22d,_0x194ba1,_0x18507f);function _0x21a5(_0x258846,_0x3bbfc2){_0x258846=_0x258846-0x73;const _0x228dd2=_0x228d();let _0x21a562=_0x228dd2[_0x258846];return _0x21a562;}exports[_0x2dfb8c(0x116)]=class extends o[_0x2dfb8c(0xd7)]{constructor(_0x4d4acf,_0x3a86c4,_0x25e15c){const _0x5540bd=_0x2dfb8c;super(),_(this,_0x5540bd(0x11b),new Map()),(this[_0x5540bd(0xb8)]=_0x4d4acf,this[_0x5540bd(0xdd)]=_0x3a86c4,this[_0x5540bd(0xac)]=_0x25e15c,this[_0x5540bd(0x97)]());}async[_0x2dfb8c(0x127)](_0x34c656){const _0x38d836=_0x2dfb8c;return this[_0x38d836(0x11b)][_0x38d836(0xa1)](_0x34c656)||await this[_0x38d836(0xd9)](_0x34c656),this[_0x38d836(0x11b)][_0x38d836(0xb6)](_0x34c656);}[_0x2dfb8c(0x102)](_0x46ee2d){const _0x4900cf=_0x2dfb8c;var _0x21d1ec;return(_0x21d1ec=this['_entities'][_0x4900cf(0xb6)](_0x46ee2d))!=null?_0x21d1ec:null;}['_init'](){const _0x1ff9b9=_0x2dfb8c;this['_univerInstanceService'][_0x1ff9b9(0x8d)](o['UniverInstanceType'][_0x1ff9b9(0xea)])[_0x1ff9b9(0xca)](I[_0x1ff9b9(0x10e)](this[_0x1ff9b9(0x145)]))[_0x1ff9b9(0xc9)](async _0xcf57=>{const _0x48a28c=_0x1ff9b9,_0x400cb5=_0xcf57[_0x48a28c(0xde)]();this[_0x48a28c(0x11b)]['has'](_0x400cb5)||this['_startLiveShareCoordinator'](_0x400cb5);}),this[_0x1ff9b9(0xb8)][_0x1ff9b9(0x146)](o['UniverInstanceType'][_0x1ff9b9(0xea)])[_0x1ff9b9(0xca)](I['takeUntil'](this['dispose$']))[_0x1ff9b9(0xc9)](_0x5d3793=>{const _0x4b5e08=_0x1ff9b9,_0x5da70d=_0x5d3793[_0x4b5e08(0xde)](),_0xb3d4d8=this['_entities'][_0x4b5e08(0xb6)](_0x5da70d);_0xb3d4d8==null||_0xb3d4d8[_0x4b5e08(0x8a)]();});}async['_startLiveShareCoordinator'](_0x576f2f){const _0x26793e=_0x2dfb8c,_0x46b6da=await this[_0x26793e(0xac)]['requireSession'](_0x576f2f),_0x3cd6cc=this[_0x26793e(0xdd)]['createInstance'](exports['LiveShareCoordinator'],_0x576f2f,_0x46b6da);return _0x3cd6cc['init'](),this['_entities'][_0x26793e(0xc6)](_0x576f2f,_0x3cd6cc),_0x3cd6cc;}},exports['LiveShareController']=P([S(0x0,o[_0x2dfb8c(0xc5)]),S(0x1,o[_0x2dfb8c(0x12e)](o[_0x2dfb8c(0xe7)])),S(0x2,o[_0x2dfb8c(0x12e)](b[_0x2dfb8c(0xe5)]))],exports[_0x2dfb8c(0x116)]);var u=(_0x513bef=>(_0x513bef[_0x2dfb8c(0x7f)]=_0x2dfb8c(0x125),_0x513bef[_0x2dfb8c(0xd6)]=_0x2dfb8c(0x11d),_0x513bef[_0x2dfb8c(0x93)]=_0x2dfb8c(0x101),_0x513bef[_0x2dfb8c(0xbf)]=_0x2dfb8c(0xec),_0x513bef[_0x2dfb8c(0x78)]=_0x2dfb8c(0x112),_0x513bef))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x2dfb8c(0xd7)]{constructor(_0x16a750,_0x1e10e6,_0x5905e5,_0x57a05d,_0x199b08){const _0x100f9e=_0x2dfb8c;super(),_(this,_0x100f9e(0xd4),new O[(_0x100f9e(0xfa))](_0x100f9e(0x11d))),_(this,_0x100f9e(0x117),this['_status$'][_0x100f9e(0xaa)]()),_(this,_0x100f9e(0x97),!0x1),_(this,_0x100f9e(0x7a),null),_(this,_0x100f9e(0xb9),null),(this[_0x100f9e(0xff)]=_0x16a750,this[_0x100f9e(0xc2)]=_0x1e10e6,this[_0x100f9e(0xce)]=_0x5905e5,this['_liveShareService']=_0x57a05d,this[_0x100f9e(0xd5)]=_0x199b08);}get[_0x2dfb8c(0x11f)](){const _0x5766be=_0x2dfb8c;return this[_0x5766be(0xd4)][_0x5766be(0xba)]();}['dispose'](){const _0x3c96cd=_0x2dfb8c;var _0x2a7322;(_0x2a7322=this[_0x3c96cd(0x7a)])==null||_0x2a7322[_0x3c96cd(0x8a)](),this[_0x3c96cd(0xd4)][_0x3c96cd(0xb3)](_0x3c96cd(0x11d)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x2dfb8c(0xb1)](){const _0x300a14=_0x2dfb8c;this[_0x300a14(0x97)]||(this[_0x300a14(0x97)]=!0x0,this[_0x300a14(0xc2)]['sessionStatus$'][_0x300a14(0xca)](I['takeUntil'](this['dispose$']))[_0x300a14(0xc9)](_0x14b870=>{const _0xb05585=_0x300a14;switch(_0x14b870){case b[_0xb05585(0x86)][_0xb05585(0x7f)]:this[_0xb05585(0xd8)]();break;case b[_0xb05585(0x86)][_0xb05585(0x9b)]:this[_0xb05585(0xef)]();break;}}),this[_0x300a14(0xc2)]['event$'][_0x300a14(0xca)](I[_0x300a14(0x10e)](this[_0x300a14(0x145)]))[_0x300a14(0xc9)](_0x1db1a0=>{const _0xb2b8c4=_0x300a14,{eventID:_0x2f1850}=_0x1db1a0;switch(_0x2f1850){case d[_0xb2b8c4(0xdb)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x1db1a0);break;case d[_0xb2b8c4(0xdb)]['LIVESHARE_OPERATION']:this[_0xb2b8c4(0x75)](_0x1db1a0);break;case d[_0xb2b8c4(0xdb)][_0xb2b8c4(0x9c)]:this[_0xb2b8c4(0xe9)]();break;case d[_0xb2b8c4(0xdb)][_0xb2b8c4(0x99)]:this['_handleNewChangeSets'](_0x1db1a0);break;}}));}[_0x2dfb8c(0x113)](){const _0x2421c8=_0x2dfb8c;this['_collabSession'][_0x2421c8(0x141)]({'eventID':d[_0x2421c8(0xdb)][_0x2421c8(0xa6)],'data':{'unitID':this[_0x2421c8(0xff)],'userID':this[_0x2421c8(0xc2)][_0x2421c8(0x13d)]()}},this['_unitID']);}[_0x2dfb8c(0x10b)](){const _0x165d72=_0x2dfb8c;this[_0x165d72(0x11f)]==='presenting'&&(this[_0x165d72(0xd4)]['next']('idle'),this['_collabSession']['send']({'eventID':d[_0x165d72(0xdb)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x2dfb8c(0xfe)](){const _0x4ae450=_0x2dfb8c;this[_0x4ae450(0x11f)]==='not-following'&&(this['_status$'][_0x4ae450(0xb3)]('following'),this[_0x4ae450(0xb4)]());}[_0x2dfb8c(0xf3)](){const _0x59f1cc=_0x2dfb8c;this[_0x59f1cc(0x11f)]===_0x59f1cc(0x101)&&this[_0x59f1cc(0xf5)]();}[_0x2dfb8c(0xa3)](_0xa8abbf){const _0x417c0c=_0x2dfb8c,{presenter:_0x3473dd}=_0xa8abbf[_0x417c0c(0x108)],_0x5d24ac=this[_0x417c0c(0xc2)][_0x417c0c(0x13d)]();this[_0x417c0c(0xb9)]=_0x3473dd,_0x3473dd===_0x5d24ac?(this[_0x417c0c(0xf5)](),this[_0x417c0c(0xe4)]()):this[_0x417c0c(0x11f)]!=='not-following'&&(this[_0x417c0c(0x129)](),this['_startFollowing']());}[_0x2dfb8c(0x8f)](){const _0x4e591a=_0x2dfb8c,_0x5bc3ca={'eventID':d['CollaborationEvent'][_0x4e591a(0x110)]};this['_collabSession'][_0x4e591a(0x141)](_0x5bc3ca,this[_0x4e591a(0xff)]);}['_handleTerminate'](){const _0x17c159=_0x2dfb8c;this[_0x17c159(0xb9)]=null,this[_0x17c159(0x11f)]!=='presenting'&&this[_0x17c159(0x92)]();}['_handleNewChangeSets'](_0xb5d72){const _0xafcdda=_0x2dfb8c;if(this['_status']===_0xafcdda(0x101)&&this[_0xafcdda(0xb9)]===_0xb5d72[_0xafcdda(0x108)][_0xafcdda(0x85)]){const _0x53edf=d[_0xafcdda(0xf7)](_0xb5d72[_0xafcdda(0x108)])[_0xafcdda(0x140)][_0xafcdda(0x115)]()[_0xafcdda(0xc8)](_0x35eac9=>_0x35eac9['id']===C[_0xafcdda(0x13b)]['id']);if(_0x53edf){const _0x438650=_0x53edf[_0xafcdda(0xcd)][_0xafcdda(0xbd)],_0x1011f3=_0x53edf[_0xafcdda(0xcd)][_0xafcdda(0x118)]['id'];setTimeout(()=>{const _0x23ced4=_0xafcdda;this[_0x23ced4(0xd5)][_0x23ced4(0xa2)](C[_0x23ced4(0xdc)]['id'],{'unitId':_0x438650,'subUnitId':_0x1011f3},{'fromCollab':!0x0});});}}}[_0x2dfb8c(0xe4)](){const _0xc06cc1=_0x2dfb8c;this[_0xc06cc1(0xd4)][_0xc06cc1(0xb3)](_0xc06cc1(0x112));const _0x34950a=new Map(),_0x1d7da7=this[_0xc06cc1(0x7a)]=new o['DisposableCollection']();_0x1d7da7[_0xc06cc1(0x139)](o[_0xc06cc1(0x13a)](()=>{const _0x4f5fce=_0xc06cc1;_0x34950a[_0x4f5fce(0xd3)](_0x3c2f73=>_0x3c2f73[_0x4f5fce(0xc3)]()),_0x34950a[_0x4f5fce(0x89)]();})),_0x1d7da7[_0xc06cc1(0x139)](this[_0xc06cc1(0xd5)][_0xc06cc1(0x131)](_0x2cb178=>{const _0x2f27fc=_0xc06cc1;var _0xf30d55;if(_0x2cb178[_0x2f27fc(0xf8)]!==o['CommandType']['OPERATION']||!this[_0x2f27fc(0x133)][_0x2f27fc(0xe0)](_0x2cb178['id']))return;const {id:_0x64cd38}=_0x2cb178;let _0x2a2270;_0x34950a['has'](_0x64cd38)?_0x2a2270=_0x34950a[_0x2f27fc(0xb6)](_0x64cd38):(_0x2a2270=new O[(_0x2f27fc(0xa5))](),_0x34950a[_0x2f27fc(0xc6)](_0x64cd38,_0x2a2270),_0x2a2270[_0x2f27fc(0xca)](I[_0x2f27fc(0x105)]((_0xf30d55=this['_configService']['getConfig'](k))!=null?_0xf30d55:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f27fc(0xc9)](_0x4a3202=>{const _0x233065=_0x2f27fc;this['_collabSession']['send']({'eventID':d[_0x233065(0xdb)][_0x233065(0x13e)],'data':{'unitID':this[_0x233065(0xff)],'operations':{[_0x4a3202['id']]:{'id':_0x4a3202['id'],'params':JSON[_0x233065(0x122)](_0x4a3202[_0x233065(0xcd)])}}}},this[_0x233065(0xff)]);})),_0x2a2270[_0x2f27fc(0xb3)](_0x2cb178);})),this['_liveShareService']['getInitialStates'](this[_0xc06cc1(0xff)])['forEach'](_0x36cab4=>this[_0xc06cc1(0xc2)]['send']({'eventID':d[_0xc06cc1(0xdb)][_0xc06cc1(0x13e)],'data':{'unitID':this[_0xc06cc1(0xff)],'operations':{[_0x36cab4['id']]:{'id':_0x36cab4['id'],'params':JSON[_0xc06cc1(0x122)](_0x36cab4[_0xc06cc1(0xcd)])}}}},this[_0xc06cc1(0xff)]));}[_0x2dfb8c(0x129)](){const _0x472164=_0x2dfb8c;var _0x109caa;this[_0x472164(0xd4)][_0x472164(0xb3)](_0x472164(0x11d)),(_0x109caa=this['_commandDisposable'])==null||_0x109caa[_0x472164(0x8a)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x146e33=_0x2dfb8c;var _0x389ba1;(_0x389ba1=this[_0x146e33(0x7a)])==null||_0x389ba1['dispose'](),this[_0x146e33(0xd4)][_0x146e33(0xb3)]('following');}[_0x2dfb8c(0x92)](){const _0x5b39ad=_0x2dfb8c;var _0x541526;this[_0x5b39ad(0xd4)]['next'](_0x5b39ad(0x11d)),(_0x541526=this['_commandDisposable'])==null||_0x541526['dispose'](),this[_0x5b39ad(0x7a)]=null;}[_0x2dfb8c(0xf5)](){const _0x53c8d6=_0x2dfb8c;var _0xc64968;this[_0x53c8d6(0xd4)][_0x53c8d6(0xb3)]('not-following'),(_0xc64968=this[_0x53c8d6(0x7a)])==null||_0xc64968[_0x53c8d6(0x8a)]();}[_0x2dfb8c(0x75)](_0x6e45db){const _0x3420cc=_0x2dfb8c;if([_0x3420cc(0x112),_0x3420cc(0xec),_0x3420cc(0x125)][_0x3420cc(0x123)](this['_status'])||!_0x6e45db[_0x3420cc(0x108)][_0x3420cc(0x9a)]||_0x6e45db[_0x3420cc(0x108)][_0x3420cc(0x9a)]===this[_0x3420cc(0xc2)][_0x3420cc(0x13d)]())return;this[_0x3420cc(0x11f)]===_0x3420cc(0x11d)&&this['_startFollowing']();const _0x1ff049=_0x6e45db[_0x3420cc(0x108)]['operations'];Object['values'](_0x1ff049)[_0x3420cc(0xd3)](_0x2dd77a=>{const _0x358eb6=_0x3420cc;this[_0x358eb6(0xd5)][_0x358eb6(0xa2)](_0x2dd77a['id'],_0x2dd77a[_0x358eb6(0xcd)]?JSON[_0x358eb6(0xe8)](_0x2dd77a[_0x358eb6(0xcd)]):null,{'fromCollab':!0x0});});}[_0x2dfb8c(0xd8)](){const _0x2e668f=_0x2dfb8c;var _0x57774f;this[_0x2e668f(0xd4)]['next'](_0x2e668f(0x125)),(_0x57774f=this['_commandDisposable'])==null||_0x57774f[_0x2e668f(0x8a)]();}[_0x2dfb8c(0xef)](){const _0xa0c45e=_0x2dfb8c;this[_0xa0c45e(0xd4)][_0xa0c45e(0xb3)]('idle'),this[_0xa0c45e(0x8f)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x2dfb8c(0xe1)]),S(0x3,o[_0x2dfb8c(0x12e)](E)),S(0x4,o[_0x2dfb8c(0xda)])],exports[_0x2dfb8c(0x7d)]);function $(){const _0x5a4637=_0x2dfb8c,_0x174cfb=p['useDependency'](exports[_0x5a4637(0x116)]),_0xb6c1b7=p[_0x5a4637(0xb5)](o[_0x5a4637(0xc5)]),_0x20005a=p['useObservable'](()=>_0xb6c1b7[_0x5a4637(0xfd)](o[_0x5a4637(0x73)][_0x5a4637(0xea)]),void 0x0,!0x1,[]),[_0x316d94,_0x4a94c8]=v['useState'](null),[_0x59a08e,_0x531478]=v[_0x5a4637(0x10f)](u['IDLE']),_0x34dc8c=v[_0x5a4637(0xbc)](null);return v[_0x5a4637(0x94)](()=>(_0x20005a&&_0x174cfb[_0x5a4637(0x127)](_0x20005a[_0x5a4637(0xde)]())[_0x5a4637(0x98)](_0x6a32d1=>{const _0xce7f3e=_0x5a4637;_0x4a94c8(_0x6a32d1),_0x34dc8c[_0xce7f3e(0xed)]=_0x6a32d1[_0xce7f3e(0x117)]['subscribe'](_0x17365c=>{_0x531478(_0x17365c);});}),()=>{const _0x32ba44=_0x5a4637;var _0x2fa7a6;(_0x2fa7a6=_0x34dc8c['current'])==null||_0x2fa7a6[_0x32ba44(0x12d)](),_0x34dc8c['current']=null;}),[_0x20005a,_0x174cfb]),_0x316d94?l[_0x5a4637(0xd1)](f[_0x5a4637(0xdf)],{'align':_0x5a4637(0xab),'disabled':_0x59a08e===u[_0x5a4637(0x7f)],'className':_0x5a4637(0x9e),'overlay':l[_0x5a4637(0xd1)](W,{'status':_0x59a08e,'coordinator':_0x316d94}),'children':l[_0x5a4637(0xd1)](_0x5a4637(0x7c),{'className':f[_0x5a4637(0x12c)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x59a08e===u[_0x5a4637(0x7f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59a08e!==u[_0x5a4637(0x7f)]}),'type':_0x5a4637(0x7c),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x13c4b1){const _0x3f8737=_0x2dfb8c,{status:_0x4e4502,coordinator:_0x420180}=_0x13c4b1;switch(_0x4e4502){case u[_0x3f8737(0xd6)]:return l[_0x3f8737(0xd1)](G,{'coordinator':_0x420180});case u[_0x3f8737(0x93)]:return l['jsx'](B,{'coordinator':_0x420180});case u[_0x3f8737(0xbf)]:return l['jsx'](Y,{'coordinator':_0x420180});case u[_0x3f8737(0x7f)]:return l[_0x3f8737(0xd1)](J,{});case u[_0x3f8737(0x78)]:return l[_0x3f8737(0xd1)](Z,{'coordinator':_0x420180});default:return null;}}function G(_0x4e009c){const _0x21e2f1=_0x2dfb8c,{coordinator:_0x341bf2}=_0x4e009c;return l[_0x21e2f1(0x80)](l['Fragment'],{'children':[l[_0x21e2f1(0xd1)]('div',{'className':_0x21e2f1(0xe3),'children':_0x21e2f1(0x76)}),l[_0x21e2f1(0xd1)](f['Button'],{'onClick':()=>_0x341bf2[_0x21e2f1(0x113)](),'children':_0x21e2f1(0x82)})]});}function B(_0x479990){const _0x2deec2=_0x2dfb8c,{coordinator:_0x4b3cd8}=_0x479990;return l[_0x2deec2(0x80)](l[_0x2deec2(0xf1)],{'children':[l[_0x2deec2(0xd1)](_0x2deec2(0xeb),{'className':_0x2deec2(0xe3),'children':_0x2deec2(0x111)}),l[_0x2deec2(0xd1)](f['Button'],{'onClick':()=>_0x4b3cd8['stopFollowing'](),'children':_0x2deec2(0xa8)})]});}function Y(_0x397edd){const _0x40ed02=_0x2dfb8c,{coordinator:_0x290a08}=_0x397edd;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x40ed02(0xe3),'children':_0x40ed02(0x134)}),l[_0x40ed02(0xd1)](f[_0x40ed02(0xf6)],{'variant':_0x40ed02(0xf2),'onClick':()=>_0x290a08[_0x40ed02(0xfe)](),'children':_0x40ed02(0x138)})]});}function Z(_0x4037d6){const _0x44b4e3=_0x2dfb8c,{coordinator:_0x5e2087}=_0x4037d6;return l['jsxs'](l['Fragment'],{'children':[l[_0x44b4e3(0xd1)](_0x44b4e3(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x44b4e3(0xd1)](f['Button'],{'variant':_0x44b4e3(0x132),'onClick':()=>_0x5e2087['stopPresenting'](),'children':_0x44b4e3(0x84)})]});}function J(){const _0x4ceb24=_0x2dfb8c;return l[_0x4ceb24(0xd1)](l[_0x4ceb24(0xf1)],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0xe2f3c9,_0x12a67a,_0x54ee30,_0x3fad16)=>{const _0x200ec4=_0x2dfb8c;for(var _0x5b6be2=_0x3fad16>0x1?void 0x0:_0x3fad16?K(_0x12a67a,_0x54ee30):_0x12a67a,_0x35bbb8=_0xe2f3c9[_0x200ec4(0x7b)]-0x1,_0x2ec688;_0x35bbb8>=0x0;_0x35bbb8--)(_0x2ec688=_0xe2f3c9[_0x35bbb8])&&(_0x5b6be2=_0x2ec688(_0x5b6be2)||_0x5b6be2);return _0x5b6be2;},L=(_0x36bca2,_0x1ee03e)=>(_0xaed26a,_0x45b6d4)=>_0x1ee03e(_0xaed26a,_0x45b6d4,_0x36bca2);exports[_0x2dfb8c(0x121)]=class extends o[_0x2dfb8c(0xb2)]{constructor(_0x4924bf,_0x118f34){const _0x57f1d4=_0x2dfb8c;super(),this[_0x57f1d4(0xdd)]=_0x4924bf,this['_uiPartsService']=_0x118f34,this[_0x57f1d4(0xcc)]();}[_0x2dfb8c(0xcc)](){const _0x34ad4f=_0x2dfb8c;this[_0x34ad4f(0x74)](this[_0x34ad4f(0xe2)][_0x34ad4f(0xf0)](p['BuiltInUIPart'][_0x34ad4f(0x81)],()=>p[_0x34ad4f(0x96)]($,this[_0x34ad4f(0xdd)])));}},exports[_0x2dfb8c(0x121)]=z([L(0x0,o[_0x2dfb8c(0x12e)](o['Injector'])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x2dfb8c(0x79),w={};var X=Object[_0x2dfb8c(0x88)],ee=(_0x1cecbf,_0x5ccd10,_0x7780d4,_0x5580ed)=>{const _0x3f18f8=_0x2dfb8c;for(var _0xf019ee=_0x5580ed>0x1?void 0x0:_0x5580ed?X(_0x5ccd10,_0x7780d4):_0x5ccd10,_0x19f0d0=_0x1cecbf[_0x3f18f8(0x7b)]-0x1,_0xe71be4;_0x19f0d0>=0x0;_0x19f0d0--)(_0xe71be4=_0x1cecbf[_0x19f0d0])&&(_0xf019ee=_0xe71be4(_0xf019ee)||_0xf019ee);return _0xf019ee;},te=(_0x39be3c,_0xcb8dba)=>(_0x1c5d66,_0x13f657)=>_0xcb8dba(_0x1c5d66,_0x13f657,_0x39be3c);let m=class extends o[_0x2dfb8c(0xb2)]{constructor(_0x274f0f){const _0x5983e0=_0x2dfb8c;super(),this[_0x5983e0(0x133)]=_0x274f0f,this['_init']();}[_0x2dfb8c(0x97)](){const _0x12c760=_0x2dfb8c;[D[_0x12c760(0xae)]['id'],D[_0x12c760(0xaf)]['id'],C['SetWorksheetActiveOperation']['id']][_0x12c760(0xd3)](_0x418740=>{const _0x5ab702=_0x12c760;this[_0x5ab702(0x74)](this[_0x5ab702(0x133)][_0x5ab702(0x107)](_0x418740));});}};m=ee([te(0x0,o[_0x2dfb8c(0x12e)](E))],m);var ie=Object[_0x2dfb8c(0xc7)],se=Object[_0x2dfb8c(0x88)],ne=(_0x19c70e,_0x940e82,_0x1c736e)=>_0x940e82 in _0x19c70e?ie(_0x19c70e,_0x940e82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c736e}):_0x19c70e[_0x940e82]=_0x1c736e,re=(_0x51b08d,_0x413303,_0x1f9cbf,_0x372cac)=>{const _0xcac63e=_0x2dfb8c;for(var _0xfce9c3=_0x372cac>0x1?void 0x0:_0x372cac?se(_0x413303,_0x1f9cbf):_0x413303,_0x298590=_0x51b08d[_0xcac63e(0x7b)]-0x1,_0x2cfaad;_0x298590>=0x0;_0x298590--)(_0x2cfaad=_0x51b08d[_0x298590])&&(_0xfce9c3=_0x2cfaad(_0xfce9c3)||_0xfce9c3);return _0xfce9c3;},N=(_0x51593f,_0x86516e)=>(_0x1af014,_0x365c54)=>_0x86516e(_0x1af014,_0x365c54,_0x51593f),A=(_0x3f089a,_0xfe82e1,_0x4f988b)=>ne(_0x3f089a,typeof _0xfe82e1!='symbol'?_0xfe82e1+'':_0xfe82e1,_0x4f988b);const oe=_0x2dfb8c(0x9f);exports[_0x2dfb8c(0xd0)]=class extends o['Plugin']{constructor(_0x15c377=w,_0x14f1bb,_0x27cd87){const _0x580077=_0x2dfb8c;super(),this[_0x580077(0xa7)]=_0x15c377,this[_0x580077(0xdd)]=_0x14f1bb,this[_0x580077(0xce)]=_0x27cd87;const {..._0x38b89b}=o[_0x580077(0xb0)]({},w,this[_0x580077(0xa7)]);this['_configService'][_0x580077(0x109)](Q,_0x38b89b);}['onStarting'](){const _0x350ecd=_0x2dfb8c;o[_0x350ecd(0x10c)](this[_0x350ecd(0xdd)],o[_0x350ecd(0x13c)]([[E],[exports[_0x350ecd(0x116)]],[m],[exports[_0x350ecd(0x121)]]],this[_0x350ecd(0xa7)][_0x350ecd(0xfb)])),o[_0x350ecd(0x11e)](this[_0x350ecd(0xdd)],[[m]]);}[_0x2dfb8c(0x9d)](){const _0x3c01bd=_0x2dfb8c;o[_0x3c01bd(0x11e)](this[_0x3c01bd(0xdd)],[[exports[_0x3c01bd(0x121)]]]);}},A(exports['UniverLiveSharePlugin'],_0x2dfb8c(0xf8),o['UniverInstanceType']['UNIVER_UNKNOWN']),A(exports[_0x2dfb8c(0xd0)],'pluginName',oe),exports[_0x2dfb8c(0xd0)]=re([o[_0x2dfb8c(0x8e)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x2dfb8c(0x12e)](o[_0x2dfb8c(0xe7)])),N(0x2,o[_0x2dfb8c(0xe1)])],exports['UniverLiveSharePlugin']),exports[_0x2dfb8c(0x103)]=$,exports[_0x2dfb8c(0x10d)]=E,exports[_0x2dfb8c(0x8c)]=u;
|
|
1
|
+
'use strict';const _0x12eb30=_0x4fce;(function(_0x3043d5,_0x4e84a8){const _0x475298=_0x4fce,_0x105f25=_0x3043d5();while(!![]){try{const _0xc4d7ab=-parseInt(_0x475298(0x217))/0x1+parseInt(_0x475298(0x189))/0x2*(parseInt(_0x475298(0x197))/0x3)+-parseInt(_0x475298(0x1d7))/0x4*(parseInt(_0x475298(0x1d9))/0x5)+-parseInt(_0x475298(0x186))/0x6*(parseInt(_0x475298(0x1c5))/0x7)+parseInt(_0x475298(0x195))/0x8*(parseInt(_0x475298(0x1ae))/0x9)+parseInt(_0x475298(0x188))/0xa*(parseInt(_0x475298(0x221))/0xb)+-parseInt(_0x475298(0x1f9))/0xc*(parseInt(_0x475298(0x166))/0xd);if(_0xc4d7ab===_0x4e84a8)break;else _0x105f25['push'](_0x105f25['shift']());}catch(_0x3cd40f){_0x105f25['push'](_0x105f25['shift']());}}}(_0x1996,0x958b2));function _0x4fce(_0x54efbe,_0x5793c5){_0x54efbe=_0x54efbe-0x14f;const _0x199670=_0x1996();let _0x4fce4b=_0x199670[_0x54efbe];return _0x4fce4b;}var T=Object[_0x12eb30(0x1a8)],U=(_0x359897,_0x47715c,_0x7cc2ac)=>_0x47715c in _0x359897?T(_0x359897,_0x47715c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7cc2ac}):_0x359897[_0x47715c]=_0x7cc2ac,_=(_0x4355f3,_0x23d6e1,_0x2b429b)=>U(_0x4355f3,typeof _0x23d6e1!='symbol'?_0x23d6e1+'':_0x23d6e1,_0x2b429b);Object[_0x12eb30(0x1a8)](exports,Symbol[_0x12eb30(0x16d)],{'value':_0x12eb30(0x161)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x5950a1,..._0x1f1ace}){const _0x2589a9=_0x12eb30,{icon:_0x337d9a,id:_0x541aa0,className:_0x5ed5f0,extend:_0x2dc7de,..._0x2e257a}=_0x1f1ace,_0x128200=(_0x2589a9(0x1f1)+_0x541aa0+'\x20'+(_0x5ed5f0||''))[_0x2589a9(0x20c)](),_0x410202=v[_0x2589a9(0x216)]('_'+H());return j(_0x337d9a,''+_0x541aa0,{'defIds':_0x337d9a[_0x2589a9(0x219)],'idSuffix':_0x410202[_0x2589a9(0x1b1)]},{'ref':_0x5950a1,'className':_0x128200,..._0x2e257a},_0x2dc7de);}function j(_0x37c573,_0x46c605,_0x240396,_0x18b1c5,_0x32271b){const _0x31ecf8=_0x12eb30;return v['createElement'](_0x37c573[_0x31ecf8(0x1c3)],{'key':_0x46c605,...y(_0x37c573,_0x240396,_0x32271b),..._0x18b1c5},(F(_0x37c573,_0x240396)['children']||[])[_0x31ecf8(0x227)]((_0x40b665,_0x392e73)=>j(_0x40b665,_0x46c605+'-'+_0x37c573[_0x31ecf8(0x1c3)]+'-'+_0x392e73,_0x240396,void 0x0,_0x32271b)));}function y(_0x45ae33,_0x45a482,_0x50b371){const _0x1ad136=_0x12eb30,_0x56c8ca={..._0x45ae33[_0x1ad136(0x157)]};_0x50b371!=null&&_0x50b371[_0x1ad136(0x18f)]&&_0x56c8ca[_0x1ad136(0x1c8)]===_0x1ad136(0x18f)&&(_0x56c8ca[_0x1ad136(0x1c8)]=_0x50b371[_0x1ad136(0x18f)]),_0x45ae33[_0x1ad136(0x1c3)]===_0x1ad136(0x21e)&&_0x56c8ca['id']&&(_0x56c8ca['id']=_0x56c8ca['id']+_0x45a482[_0x1ad136(0x165)]),Object[_0x1ad136(0x1bf)](_0x56c8ca)[_0x1ad136(0x192)](([_0x338694,_0xe4e625])=>{const _0x49f1f1=_0x1ad136;_0x338694===_0x49f1f1(0x21e)&&typeof _0xe4e625==_0x49f1f1(0x16f)&&(_0x56c8ca[_0x338694]=_0xe4e625[_0x49f1f1(0x1b3)](/url\(#(.*)\)/,'url(#$1'+_0x45a482[_0x49f1f1(0x165)]+')'));});const {defIds:_0x2685f5}=_0x45a482;return!_0x2685f5||_0x2685f5[_0x1ad136(0x180)]===0x0||(_0x45ae33[_0x1ad136(0x1c3)]===_0x1ad136(0x178)&&_0x56c8ca[_0x1ad136(0x151)]&&(_0x56c8ca['xlink:href']=_0x56c8ca[_0x1ad136(0x151)]+_0x45a482['idSuffix']),Object[_0x1ad136(0x1bf)](_0x56c8ca)[_0x1ad136(0x192)](([_0x341b8f,_0xa6259a])=>{const _0xc8b99d=_0x1ad136;typeof _0xa6259a==_0xc8b99d(0x16f)&&(_0x56c8ca[_0x341b8f]=_0xa6259a[_0xc8b99d(0x1b3)](/url\(#(.*)\)/,_0xc8b99d(0x1d5)+_0x45a482[_0xc8b99d(0x165)]+')'));})),_0x56c8ca;}function F(_0x5effcf,_0x101ef4){const _0xfc87f6=_0x12eb30;var _0x59cc4f;const {defIds:_0x992e9a}=_0x101ef4;return!_0x992e9a||_0x992e9a[_0xfc87f6(0x180)]===0x0?_0x5effcf:_0x5effcf['tag']===_0xfc87f6(0x17f)&&((_0x59cc4f=_0x5effcf[_0xfc87f6(0x1d0)])!=null&&_0x59cc4f[_0xfc87f6(0x180)])?{..._0x5effcf,'children':_0x5effcf['children'][_0xfc87f6(0x227)](_0x330ba6=>typeof _0x330ba6[_0xfc87f6(0x157)]['id']==_0xfc87f6(0x16f)&&_0x992e9a&&_0x992e9a['includes'](_0x330ba6['attrs']['id'])?{..._0x330ba6,'attrs':{..._0x330ba6[_0xfc87f6(0x157)],'id':_0x330ba6[_0xfc87f6(0x157)]['id']+_0x101ef4['idSuffix']}}:_0x330ba6)}:_0x5effcf;}function H(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}x[_0x12eb30(0x19b)]=_0x12eb30(0x1e0);const V={'tag':_0x12eb30(0x1d4),'attrs':{'xmlns':_0x12eb30(0x21d),'fill':'none','viewBox':_0x12eb30(0x19f),'width':_0x12eb30(0x183),'height':_0x12eb30(0x183)},'children':[{'tag':_0x12eb30(0x18c),'attrs':{'fill':'currentColor','d':_0x12eb30(0x1da)}},{'tag':'path','attrs':{'fill':_0x12eb30(0x18e),'d':_0x12eb30(0x1e1),'fillRule':_0x12eb30(0x172),'clipRule':'evenodd'}}]},R=v[_0x12eb30(0x15f)](function(_0x556843,_0x5e78e3){const _0x41487f=_0x12eb30;return v[_0x41487f(0x1e3)](x,Object[_0x41487f(0x154)]({},_0x556843,{'id':'live-share-icon','ref':_0x5e78e3,'icon':V}));});function _0x1996(){const _0x14a342=['trim','NOT_FOLLOWING','values','LIVESHARE_NEW_HOST','IConfigService','SessionStatus','executeCommand','jsx','Stop\x20presenting','IUIPartsService','useRef','634633LmzsJp','asObservable','defIds','offline','sheet','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','mask','_status','following','11PBnheq','IDLE','LiveShareStatus','get','pipe','FOLLOWING','map','You\x27are\x20offline.','_collabSession','CollaborationEvent','_handleOffline','useState','complete','idle','xlink:href','Fragment','div','assign','Dropdown','registerDependencies','attrs','_uiPartsService','You\x27re\x20following\x20the\x20presenter','_stopFollowing','useDependency','clear','stringify','unitId','forwardRef','UniverInstanceType','Module','RxDisposable','not-following','getStatus','idSuffix','13hjdWUF','symbol','getLiveShareCoordinator','_injector','UniverCollaborationClientPlugin','from','getOwnPropertyDescriptor','toStringTag','Plugin','string','_stopPresenting','_beIdle','evenodd','event$','NEW_CHANGESETS','_handleNewChangeSets','_mountLiveShare','getLiveShareCoordinatorSync','use','_handleOperation','registerComponent','type','status$','ONLINE','Disposable','defs','length','_univerInstanceService','UNIVER_SHEET','1em','LiveShareController','includes','1445766uSOZLp','dispose$','12180850tWYsZJ','1918438pGIQDk','connectInjector','getCurrentTypeOfUnit$','path','takeUntil','currentColor','colorChannel1','merge','presenter','forEach','registerSharedOperation','_fetchOperations','40PacLGd','getValue','3bwscoC','DesktopLiveShareController','SetWorksheetActiveOperation','delete','displayName','pluginName','UniverLiveSharePlugin','_config','0\x200\x2017\x2017','_liveShareService','clsx','CommandType','getTypeOfUnitDisposed$','_startFollowing','text','disposeWithMe','parse','defineProperty','Stop\x20following','init','useObservable','UNIVER_UNKNOWN','IUniverInstanceService','1298601iDwEjT','memberID','_unitID','current','_entities','replace','LiveShareCoordinator','PRESENTING','LIVESHARE_OPERATION','find','stopPresenting','ICommandService','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','_sharedOperations','set','Button','entries','shouldShareOperation','add','unsubscribe','tag','HEADER_MENU','14kfNjqL','parseProtocolChangeset','reverse','fill','You\x27re\x20presenting\x20the\x20document','DisposableCollection','_reporters','Inject','univer-size-4','subscribe','Start\x20following','children','sessionStatus$','_handleTerminate','_startLiveShareCoordinator','svg','url(#$1','dispose','1501708rjehqF','DependentOn','5wtNFAC','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','end','_status$','OFFLINE','params','button','UniverIcon','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','CollaborationSessionService','createElement','mutations','then','_handleNewHost','_startPresenting','toDisposable','_configService','Injector','onCommandExecuted','startFollowing','LiveShare','univer-mb-3\x20univer-w-full\x20univer-text-sm','has','_collabSessionService','univerjs-icon\x20univerjs-icon-','data','useEffect','stopFollowing','_commandDisposable','next','LiveShareService','_handleOnline','9530844rlaWWA','tryStartPresenting','_init','BehaviorSubject','getMemberID','Subject','Start','_commandService','getInitialStates','send','override','UNIVER_LIVE_SHARE_PLUGIN','presenting','SAME_OPERATION_SHARE_INTERVAL','operations','mergeOverrideWithDependencies','getTypeOfUnitAdded$','_presenter','getUnitId'];_0x1996=function(){return _0x14a342;};return _0x1996();}R[_0x12eb30(0x19b)]='LiveShareIcon';class E extends o[_0x12eb30(0x17e)]{constructor(){const _0x5d0893=_0x12eb30;super(...arguments),_(this,_0x5d0893(0x1bc),new Set()),_(this,_0x5d0893(0x1cb),new Set());}[_0x12eb30(0x193)](_0x5808dd){const _0x3ee595=_0x12eb30;return this[_0x3ee595(0x1bc)][_0x3ee595(0x1c1)](_0x5808dd),o[_0x3ee595(0x1e8)](()=>this[_0x3ee595(0x1bc)]['delete'](_0x5808dd));}['registerInitialStateReporter'](_0x357f7e){const _0x3f0d81=_0x12eb30;return this[_0x3f0d81(0x1cb)][_0x3f0d81(0x1c1)](_0x357f7e),o[_0x3f0d81(0x1e8)](()=>this[_0x3f0d81(0x1cb)][_0x3f0d81(0x19a)](_0x357f7e));}[_0x12eb30(0x1c0)](_0xb044b9){const _0x56db1c=_0x12eb30;return this['_sharedOperations'][_0x56db1c(0x1ef)](_0xb044b9);}[_0x12eb30(0x201)](_0x16d40a){const _0x20c164=_0x12eb30;return Array[_0x20c164(0x16b)](this[_0x20c164(0x1cb)])[_0x20c164(0x227)](_0x5a47f8=>_0x5a47f8(_0x16d40a));}}var M=Object[_0x12eb30(0x16c)],P=(_0x57474c,_0xdce623,_0x8ac97c,_0x2bfda5)=>{const _0x24b218=_0x12eb30;for(var _0x5bc571=_0x2bfda5>0x1?void 0x0:_0x2bfda5?M(_0xdce623,_0x8ac97c):_0xdce623,_0x568d10=_0x57474c[_0x24b218(0x180)]-0x1,_0xfa0809;_0x568d10>=0x0;_0x568d10--)(_0xfa0809=_0x57474c[_0x568d10])&&(_0x5bc571=_0xfa0809(_0x5bc571)||_0x5bc571);return _0x5bc571;},S=(_0x283004,_0x5bfc61)=>(_0x33c07a,_0x9b5a45)=>_0x5bfc61(_0x33c07a,_0x9b5a45,_0x283004);exports[_0x12eb30(0x184)]=class extends o[_0x12eb30(0x162)]{constructor(_0x558a89,_0x53d526,_0x5e214f){const _0x6c448f=_0x12eb30;super(),_(this,_0x6c448f(0x1b2),new Map()),(this['_univerInstanceService']=_0x558a89,this[_0x6c448f(0x169)]=_0x53d526,this[_0x6c448f(0x1f0)]=_0x5e214f,this[_0x6c448f(0x1fb)]());}async['getLiveShareCoordinator'](_0x57b210){const _0x2a263d=_0x12eb30;return this[_0x2a263d(0x1b2)][_0x2a263d(0x1ef)](_0x57b210)||await this[_0x2a263d(0x1d3)](_0x57b210),this[_0x2a263d(0x1b2)][_0x2a263d(0x224)](_0x57b210);}[_0x12eb30(0x177)](_0x48d700){const _0x4e5281=_0x12eb30;var _0x231182;return(_0x231182=this[_0x4e5281(0x1b2)][_0x4e5281(0x224)](_0x48d700))!=null?_0x231182:null;}[_0x12eb30(0x1fb)](){const _0x73d78=_0x12eb30;this[_0x73d78(0x181)][_0x73d78(0x209)](o['UniverInstanceType'][_0x73d78(0x182)])['pipe'](I[_0x73d78(0x18d)](this[_0x73d78(0x187)]))['subscribe'](async _0x3154b2=>{const _0x344f54=_0x73d78,_0x40c8c3=_0x3154b2[_0x344f54(0x20b)]();this[_0x344f54(0x1b2)][_0x344f54(0x1ef)](_0x40c8c3)||this[_0x344f54(0x1d3)](_0x40c8c3);}),this['_univerInstanceService'][_0x73d78(0x1a3)](o[_0x73d78(0x160)][_0x73d78(0x182)])['pipe'](I[_0x73d78(0x18d)](this['dispose$']))[_0x73d78(0x1ce)](_0x5f0b84=>{const _0x49dff6=_0x73d78,_0x4c1f08=_0x5f0b84[_0x49dff6(0x20b)](),_0x31b2ef=this['_entities'][_0x49dff6(0x224)](_0x4c1f08);_0x31b2ef==null||_0x31b2ef[_0x49dff6(0x1d6)]();});}async[_0x12eb30(0x1d3)](_0x5406c5){const _0x37c71b=_0x12eb30,_0x49ce56=await this[_0x37c71b(0x1f0)]['requireSession'](_0x5406c5),_0x428868=this['_injector']['createInstance'](exports[_0x37c71b(0x1b4)],_0x5406c5,_0x49ce56);return _0x428868[_0x37c71b(0x1aa)](),this[_0x37c71b(0x1b2)][_0x37c71b(0x1bd)](_0x5406c5,_0x428868),_0x428868;}},exports[_0x12eb30(0x184)]=P([S(0x0,o[_0x12eb30(0x1ad)]),S(0x1,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),S(0x2,o[_0x12eb30(0x1cc)](b[_0x12eb30(0x1e2)]))],exports[_0x12eb30(0x184)]);var u=(_0xdd59d0=>(_0xdd59d0[_0x12eb30(0x1dd)]=_0x12eb30(0x21a),_0xdd59d0[_0x12eb30(0x222)]=_0x12eb30(0x150),_0xdd59d0[_0x12eb30(0x226)]=_0x12eb30(0x220),_0xdd59d0[_0x12eb30(0x20d)]=_0x12eb30(0x163),_0xdd59d0[_0x12eb30(0x1b5)]=_0x12eb30(0x205),_0xdd59d0))(u||{});const k=_0x12eb30(0x206),q=0xc8;exports[_0x12eb30(0x1b4)]=class extends o[_0x12eb30(0x162)]{constructor(_0xa28917,_0x46e369,_0x251217,_0x464632,_0x337cb3){const _0x1c436b=_0x12eb30;super(),_(this,_0x1c436b(0x1dc),new O[(_0x1c436b(0x1fc))](_0x1c436b(0x150))),_(this,_0x1c436b(0x17c),this[_0x1c436b(0x1dc)][_0x1c436b(0x218)]()),_(this,_0x1c436b(0x1fb),!0x1),_(this,_0x1c436b(0x1f5),null),_(this,_0x1c436b(0x20a),null),(this[_0x1c436b(0x1b0)]=_0xa28917,this[_0x1c436b(0x229)]=_0x46e369,this[_0x1c436b(0x1e9)]=_0x251217,this[_0x1c436b(0x1a0)]=_0x464632,this['_commandService']=_0x337cb3);}get[_0x12eb30(0x21f)](){const _0x1b128d=_0x12eb30;return this[_0x1b128d(0x1dc)][_0x1b128d(0x196)]();}[_0x12eb30(0x1d6)](){const _0x2c0bd1=_0x12eb30;var _0x4b5ecc;(_0x4b5ecc=this[_0x2c0bd1(0x1f5)])==null||_0x4b5ecc[_0x2c0bd1(0x1d6)](),this[_0x2c0bd1(0x1dc)][_0x2c0bd1(0x1f6)](_0x2c0bd1(0x150)),this[_0x2c0bd1(0x1dc)][_0x2c0bd1(0x14f)]();}[_0x12eb30(0x164)](){const _0x29a1b0=_0x12eb30;return this[_0x29a1b0(0x21f)];}['init'](){const _0x22de9b=_0x12eb30;this['_init']||(this[_0x22de9b(0x1fb)]=!0x0,this[_0x22de9b(0x229)][_0x22de9b(0x1d1)][_0x22de9b(0x225)](I[_0x22de9b(0x18d)](this[_0x22de9b(0x187)]))[_0x22de9b(0x1ce)](_0x477a98=>{const _0x57a4d3=_0x22de9b;switch(_0x477a98){case b[_0x57a4d3(0x211)][_0x57a4d3(0x1dd)]:this[_0x57a4d3(0x22b)]();break;case b[_0x57a4d3(0x211)][_0x57a4d3(0x17d)]:this[_0x57a4d3(0x1f8)]();break;}}),this[_0x22de9b(0x229)][_0x22de9b(0x173)][_0x22de9b(0x225)](I[_0x22de9b(0x18d)](this[_0x22de9b(0x187)]))[_0x22de9b(0x1ce)](_0x1eaf99=>{const _0x1ee9c5=_0x22de9b,{eventID:_0x597bfe}=_0x1eaf99;switch(_0x597bfe){case d['CollaborationEvent'][_0x1ee9c5(0x20f)]:this['_handleNewHost'](_0x1eaf99);break;case d['CollaborationEvent'][_0x1ee9c5(0x1b6)]:this[_0x1ee9c5(0x179)](_0x1eaf99);break;case d[_0x1ee9c5(0x22a)][_0x1ee9c5(0x21c)]:this[_0x1ee9c5(0x1d2)]();break;case d[_0x1ee9c5(0x22a)][_0x1ee9c5(0x174)]:this[_0x1ee9c5(0x175)](_0x1eaf99);break;}}));}[_0x12eb30(0x1fa)](){const _0x3f4b34=_0x12eb30;this['_collabSession'][_0x3f4b34(0x202)]({'eventID':d[_0x3f4b34(0x22a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3f4b34(0x1b0)],'userID':this[_0x3f4b34(0x229)]['getMemberID']()}},this['_unitID']);}[_0x12eb30(0x1b8)](){const _0x5c6229=_0x12eb30;this[_0x5c6229(0x21f)]==='presenting'&&(this[_0x5c6229(0x1dc)][_0x5c6229(0x1f6)](_0x5c6229(0x150)),this[_0x5c6229(0x229)][_0x5c6229(0x202)]({'eventID':d['CollaborationEvent'][_0x5c6229(0x21c)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x12eb30(0x1ec)](){const _0x50152e=_0x12eb30;this[_0x50152e(0x21f)]===_0x50152e(0x163)&&(this['_status$'][_0x50152e(0x1f6)](_0x50152e(0x220)),this[_0x50152e(0x1a4)]());}[_0x12eb30(0x1f4)](){const _0x217aae=_0x12eb30;this[_0x217aae(0x21f)]==='following'&&this['_stopFollowing']();}[_0x12eb30(0x1e6)](_0x190fc2){const _0x4a0bb8=_0x12eb30,{presenter:_0x25af9f}=_0x190fc2['data'],_0x46bb26=this[_0x4a0bb8(0x229)]['getMemberID']();this['_presenter']=_0x25af9f,_0x25af9f===_0x46bb26?(this[_0x4a0bb8(0x15a)](),this[_0x4a0bb8(0x1e7)]()):this[_0x4a0bb8(0x21f)]!==_0x4a0bb8(0x163)&&(this[_0x4a0bb8(0x170)](),this[_0x4a0bb8(0x1a4)]());}[_0x12eb30(0x194)](){const _0x3947c6=_0x12eb30,_0xf72142={'eventID':d[_0x3947c6(0x22a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3947c6(0x229)][_0x3947c6(0x202)](_0xf72142,this['_unitID']);}['_handleTerminate'](){const _0x2fc7d7=_0x12eb30;this[_0x2fc7d7(0x20a)]=null,this[_0x2fc7d7(0x21f)]!=='presenting'&&this['_beIdle']();}[_0x12eb30(0x175)](_0x389f1e){const _0x4e4a0d=_0x12eb30;if(this[_0x4e4a0d(0x21f)]===_0x4e4a0d(0x220)&&this['_presenter']===_0x389f1e[_0x4e4a0d(0x1f2)][_0x4e4a0d(0x1af)]){const _0x54d72c=d[_0x4e4a0d(0x1c6)](_0x389f1e[_0x4e4a0d(0x1f2)])[_0x4e4a0d(0x1e4)][_0x4e4a0d(0x1c7)]()[_0x4e4a0d(0x1b7)](_0x454292=>_0x454292['id']===C['InsertSheetMutation']['id']);if(_0x54d72c){const _0x38c0b2=_0x54d72c['params'][_0x4e4a0d(0x15e)],_0x49a178=_0x54d72c['params'][_0x4e4a0d(0x21b)]['id'];setTimeout(()=>{const _0x3336a1=_0x4e4a0d;this[_0x3336a1(0x200)]['executeCommand'](C[_0x3336a1(0x199)]['id'],{'unitId':_0x38c0b2,'subUnitId':_0x49a178},{'fromCollab':!0x0});});}}}[_0x12eb30(0x1e7)](){const _0x2ff694=_0x12eb30;this[_0x2ff694(0x1dc)]['next'](_0x2ff694(0x205));const _0xdfb1bd=new Map(),_0x244e87=this[_0x2ff694(0x1f5)]=new o[(_0x2ff694(0x1ca))]();_0x244e87[_0x2ff694(0x1c1)](o[_0x2ff694(0x1e8)](()=>{const _0x330518=_0x2ff694;_0xdfb1bd[_0x330518(0x192)](_0x1fa646=>_0x1fa646[_0x330518(0x14f)]()),_0xdfb1bd[_0x330518(0x15c)]();})),_0x244e87[_0x2ff694(0x1c1)](this[_0x2ff694(0x200)][_0x2ff694(0x1eb)](_0x38da42=>{const _0x3b34b8=_0x2ff694;var _0x47619b;if(_0x38da42[_0x3b34b8(0x17b)]!==o[_0x3b34b8(0x1a2)]['OPERATION']||!this[_0x3b34b8(0x1a0)]['shouldShareOperation'](_0x38da42['id']))return;const {id:_0x2832ea}=_0x38da42;let _0x422411;_0xdfb1bd[_0x3b34b8(0x1ef)](_0x2832ea)?_0x422411=_0xdfb1bd['get'](_0x2832ea):(_0x422411=new O[(_0x3b34b8(0x1fe))](),_0xdfb1bd[_0x3b34b8(0x1bd)](_0x2832ea,_0x422411),_0x422411[_0x3b34b8(0x225)](I['throttleTime']((_0x47619b=this[_0x3b34b8(0x1e9)]['getConfig'](k))!=null?_0x47619b:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4a9a91=>{const _0x1f4bb6=_0x3b34b8;this[_0x1f4bb6(0x229)][_0x1f4bb6(0x202)]({'eventID':d[_0x1f4bb6(0x22a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f4bb6(0x1b0)],'operations':{[_0x4a9a91['id']]:{'id':_0x4a9a91['id'],'params':JSON[_0x1f4bb6(0x15d)](_0x4a9a91['params'])}}}},this[_0x1f4bb6(0x1b0)]);})),_0x422411[_0x3b34b8(0x1f6)](_0x38da42);})),this['_liveShareService'][_0x2ff694(0x201)](this[_0x2ff694(0x1b0)])[_0x2ff694(0x192)](_0x3ec9ea=>this[_0x2ff694(0x229)][_0x2ff694(0x202)]({'eventID':d[_0x2ff694(0x22a)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3ec9ea['id']]:{'id':_0x3ec9ea['id'],'params':JSON[_0x2ff694(0x15d)](_0x3ec9ea[_0x2ff694(0x1de)])}}}},this[_0x2ff694(0x1b0)]));}[_0x12eb30(0x170)](){const _0xbc60bc=_0x12eb30;var _0x13bcde;this[_0xbc60bc(0x1dc)][_0xbc60bc(0x1f6)](_0xbc60bc(0x150)),(_0x13bcde=this[_0xbc60bc(0x1f5)])==null||_0x13bcde[_0xbc60bc(0x1d6)](),this[_0xbc60bc(0x1f5)]=null;}[_0x12eb30(0x1a4)](){const _0x338f3e=_0x12eb30;var _0x3238ea;(_0x3238ea=this[_0x338f3e(0x1f5)])==null||_0x3238ea[_0x338f3e(0x1d6)](),this[_0x338f3e(0x1dc)][_0x338f3e(0x1f6)](_0x338f3e(0x220));}[_0x12eb30(0x171)](){const _0x2ceab1=_0x12eb30;var _0xd857b6;this[_0x2ceab1(0x1dc)][_0x2ceab1(0x1f6)](_0x2ceab1(0x150)),(_0xd857b6=this[_0x2ceab1(0x1f5)])==null||_0xd857b6[_0x2ceab1(0x1d6)](),this['_commandDisposable']=null;}[_0x12eb30(0x15a)](){const _0x59a1be=_0x12eb30;var _0x25a243;this[_0x59a1be(0x1dc)][_0x59a1be(0x1f6)](_0x59a1be(0x163)),(_0x25a243=this[_0x59a1be(0x1f5)])==null||_0x25a243[_0x59a1be(0x1d6)]();}[_0x12eb30(0x179)](_0x14f9e4){const _0x31af0f=_0x12eb30;if([_0x31af0f(0x205),_0x31af0f(0x163),_0x31af0f(0x21a)][_0x31af0f(0x185)](this[_0x31af0f(0x21f)])||!_0x14f9e4['data'][_0x31af0f(0x191)]||_0x14f9e4[_0x31af0f(0x1f2)][_0x31af0f(0x191)]===this[_0x31af0f(0x229)][_0x31af0f(0x1fd)]())return;this[_0x31af0f(0x21f)]===_0x31af0f(0x150)&&this[_0x31af0f(0x1a4)]();const _0x4f1b30=_0x14f9e4[_0x31af0f(0x1f2)][_0x31af0f(0x207)];Object[_0x31af0f(0x20e)](_0x4f1b30)[_0x31af0f(0x192)](_0x345702=>{const _0x5b5d5f=_0x31af0f;this[_0x5b5d5f(0x200)][_0x5b5d5f(0x212)](_0x345702['id'],_0x345702[_0x5b5d5f(0x1de)]?JSON[_0x5b5d5f(0x1a7)](_0x345702['params']):null,{'fromCollab':!0x0});});}[_0x12eb30(0x22b)](){const _0x223e69=_0x12eb30;var _0x39d284;this[_0x223e69(0x1dc)][_0x223e69(0x1f6)](_0x223e69(0x21a)),(_0x39d284=this[_0x223e69(0x1f5)])==null||_0x39d284[_0x223e69(0x1d6)]();}['_handleOnline'](){const _0xff95c6=_0x12eb30;this[_0xff95c6(0x1dc)][_0xff95c6(0x1f6)](_0xff95c6(0x150)),this[_0xff95c6(0x194)]();}},exports[_0x12eb30(0x1b4)]=P([S(0x2,o[_0x12eb30(0x210)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x12eb30(0x1b9)])],exports[_0x12eb30(0x1b4)]);function $(){const _0x2c5b6f=_0x12eb30,_0x34ebcd=p[_0x2c5b6f(0x15b)](exports['LiveShareController']),_0x45c484=p[_0x2c5b6f(0x15b)](o[_0x2c5b6f(0x1ad)]),_0x15dfb5=p[_0x2c5b6f(0x1ab)](()=>_0x45c484[_0x2c5b6f(0x18b)](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3d4309,_0x459bda]=v['useState'](null),[_0x495c7e,_0x133992]=v[_0x2c5b6f(0x22c)](u[_0x2c5b6f(0x222)]),_0x5a9370=v[_0x2c5b6f(0x216)](null);return v[_0x2c5b6f(0x1f3)](()=>(_0x15dfb5&&_0x34ebcd[_0x2c5b6f(0x168)](_0x15dfb5['getUnitId']())[_0x2c5b6f(0x1e5)](_0xbba9f3=>{const _0x3caa00=_0x2c5b6f;_0x459bda(_0xbba9f3),_0x5a9370['current']=_0xbba9f3[_0x3caa00(0x17c)][_0x3caa00(0x1ce)](_0x5162d8=>{_0x133992(_0x5162d8);});}),()=>{const _0x1d52ea=_0x2c5b6f;var _0x388b78;(_0x388b78=_0x5a9370[_0x1d52ea(0x1b1)])==null||_0x388b78[_0x1d52ea(0x1c2)](),_0x5a9370['current']=null;}),[_0x15dfb5,_0x34ebcd]),_0x3d4309?l[_0x2c5b6f(0x213)](f[_0x2c5b6f(0x155)],{'align':_0x2c5b6f(0x1db),'disabled':_0x495c7e===u['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2c5b6f(0x213)](W,{'status':_0x495c7e,'coordinator':_0x3d4309}),'children':l[_0x2c5b6f(0x213)](_0x2c5b6f(0x1df),{'className':f[_0x2c5b6f(0x1a1)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x495c7e===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x495c7e!==u[_0x2c5b6f(0x1dd)]}),'type':_0x2c5b6f(0x1df),'children':l[_0x2c5b6f(0x213)](R,{'className':_0x2c5b6f(0x1cd)})})}):null;}function W(_0x2c0dc1){const _0x2b5c40=_0x12eb30,{status:_0x4231db,coordinator:_0x567cec}=_0x2c0dc1;switch(_0x4231db){case u['IDLE']:return l[_0x2b5c40(0x213)](G,{'coordinator':_0x567cec});case u[_0x2b5c40(0x226)]:return l[_0x2b5c40(0x213)](B,{'coordinator':_0x567cec});case u[_0x2b5c40(0x20d)]:return l['jsx'](Y,{'coordinator':_0x567cec});case u[_0x2b5c40(0x1dd)]:return l[_0x2b5c40(0x213)](J,{});case u[_0x2b5c40(0x1b5)]:return l['jsx'](Z,{'coordinator':_0x567cec});default:return null;}}function G(_0x3b8168){const _0x156908=_0x12eb30,{coordinator:_0x12b9cc}=_0x3b8168;return l[_0x156908(0x1ba)](l[_0x156908(0x152)],{'children':[l['jsx'](_0x156908(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x156908(0x213)](f['Button'],{'onClick':()=>_0x12b9cc[_0x156908(0x1fa)](),'children':_0x156908(0x1ff)})]});}function B(_0x5c9903){const _0x232dfb=_0x12eb30,{coordinator:_0x170c9b}=_0x5c9903;return l[_0x232dfb(0x1ba)](l[_0x232dfb(0x152)],{'children':[l['jsx'](_0x232dfb(0x153),{'className':_0x232dfb(0x1ee),'children':_0x232dfb(0x159)}),l[_0x232dfb(0x213)](f[_0x232dfb(0x1be)],{'onClick':()=>_0x170c9b[_0x232dfb(0x1f4)](),'children':_0x232dfb(0x1a9)})]});}function Y(_0x170734){const _0x33a6ad=_0x12eb30,{coordinator:_0x4fd23c}=_0x170734;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x33a6ad(0x153),{'className':_0x33a6ad(0x1ee),'children':_0x33a6ad(0x1bb)}),l['jsx'](f['Button'],{'variant':_0x33a6ad(0x1a5),'onClick':()=>_0x4fd23c[_0x33a6ad(0x1ec)](),'children':_0x33a6ad(0x1cf)})]});}function Z(_0xb0bf01){const _0x1965d3=_0x12eb30,{coordinator:_0x3f7d27}=_0xb0bf01;return l[_0x1965d3(0x1ba)](l[_0x1965d3(0x152)],{'children':[l[_0x1965d3(0x213)](_0x1965d3(0x153),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1965d3(0x1c9)}),l['jsx'](f[_0x1965d3(0x1be)],{'variant':'default','onClick':()=>_0x3f7d27[_0x1965d3(0x1b8)](),'children':_0x1965d3(0x214)})]});}function J(){const _0x2e2944=_0x12eb30;return l[_0x2e2944(0x213)](l[_0x2e2944(0x152)],{'children':_0x2e2944(0x228)});}var K=Object[_0x12eb30(0x16c)],z=(_0x5142ad,_0x34cba1,_0x302768,_0x41cdbe)=>{const _0x420aeb=_0x12eb30;for(var _0x1c953e=_0x41cdbe>0x1?void 0x0:_0x41cdbe?K(_0x34cba1,_0x302768):_0x34cba1,_0x17ed53=_0x5142ad[_0x420aeb(0x180)]-0x1,_0x2fad75;_0x17ed53>=0x0;_0x17ed53--)(_0x2fad75=_0x5142ad[_0x17ed53])&&(_0x1c953e=_0x2fad75(_0x1c953e)||_0x1c953e);return _0x1c953e;},L=(_0x6aa852,_0x4d329)=>(_0x388ba5,_0x2c38f6)=>_0x4d329(_0x388ba5,_0x2c38f6,_0x6aa852);exports[_0x12eb30(0x198)]=class extends o[_0x12eb30(0x17e)]{constructor(_0x14e8c5,_0x13c1d3){const _0x118ecb=_0x12eb30;super(),this[_0x118ecb(0x169)]=_0x14e8c5,this[_0x118ecb(0x158)]=_0x13c1d3,this[_0x118ecb(0x176)]();}['_mountLiveShare'](){const _0x26a448=_0x12eb30;this[_0x26a448(0x1a6)](this[_0x26a448(0x158)][_0x26a448(0x17a)](p['BuiltInUIPart'][_0x26a448(0x1c4)],()=>p[_0x26a448(0x18a)]($,this[_0x26a448(0x169)])));}},exports[_0x12eb30(0x198)]=z([L(0x0,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),L(0x1,p[_0x12eb30(0x215)])],exports[_0x12eb30(0x198)]);const Q='live-share.config',w={};var X=Object[_0x12eb30(0x16c)],ee=(_0x3dca3c,_0x59b3a5,_0x5ec258,_0x1fc9e3)=>{for(var _0x1e0e6f=_0x1fc9e3>0x1?void 0x0:_0x1fc9e3?X(_0x59b3a5,_0x5ec258):_0x59b3a5,_0xac80fc=_0x3dca3c['length']-0x1,_0x2158bf;_0xac80fc>=0x0;_0xac80fc--)(_0x2158bf=_0x3dca3c[_0xac80fc])&&(_0x1e0e6f=_0x2158bf(_0x1e0e6f)||_0x1e0e6f);return _0x1e0e6f;},te=(_0x563c16,_0x133c83)=>(_0x46da51,_0x3d7ece)=>_0x133c83(_0x46da51,_0x3d7ece,_0x563c16);let m=class extends o[_0x12eb30(0x17e)]{constructor(_0x3ff7d2){const _0x58b840=_0x12eb30;super(),this[_0x58b840(0x1a0)]=_0x3ff7d2,this[_0x58b840(0x1fb)]();}[_0x12eb30(0x1fb)](){const _0x1f80d5=_0x12eb30;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x1f80d5(0x199)]['id']]['forEach'](_0x483487=>{const _0x4e7935=_0x1f80d5;this[_0x4e7935(0x1a6)](this['_liveShareService'][_0x4e7935(0x193)](_0x483487));});}};m=ee([te(0x0,o[_0x12eb30(0x1cc)](E))],m);var ie=Object[_0x12eb30(0x1a8)],se=Object[_0x12eb30(0x16c)],ne=(_0x2bc6b3,_0x439676,_0x5885b2)=>_0x439676 in _0x2bc6b3?ie(_0x2bc6b3,_0x439676,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5885b2}):_0x2bc6b3[_0x439676]=_0x5885b2,re=(_0x16d361,_0x3b871c,_0x5a56e0,_0x16b0eb)=>{for(var _0x390622=_0x16b0eb>0x1?void 0x0:_0x16b0eb?se(_0x3b871c,_0x5a56e0):_0x3b871c,_0x1405f5=_0x16d361['length']-0x1,_0x15794f;_0x1405f5>=0x0;_0x1405f5--)(_0x15794f=_0x16d361[_0x1405f5])&&(_0x390622=_0x15794f(_0x390622)||_0x390622);return _0x390622;},N=(_0x5cc922,_0x407e38)=>(_0x3685fd,_0x153741)=>_0x407e38(_0x3685fd,_0x153741,_0x5cc922),A=(_0x2574b3,_0x4db682,_0x576290)=>ne(_0x2574b3,typeof _0x4db682!=_0x12eb30(0x167)?_0x4db682+'':_0x4db682,_0x576290);const oe=_0x12eb30(0x204);exports[_0x12eb30(0x19d)]=class extends o[_0x12eb30(0x16e)]{constructor(_0x1ed5a9=w,_0x3e09c5,_0x5004b7){const _0x4809df=_0x12eb30;super(),this[_0x4809df(0x19e)]=_0x1ed5a9,this['_injector']=_0x3e09c5,this['_configService']=_0x5004b7;const {..._0x447816}=o[_0x4809df(0x190)]({},w,this[_0x4809df(0x19e)]);this['_configService']['setConfig'](Q,_0x447816);}['onStarting'](){const _0x75ef17=_0x12eb30;o[_0x75ef17(0x156)](this[_0x75ef17(0x169)],o[_0x75ef17(0x208)]([[E],[exports['LiveShareController']],[m],[exports['DesktopLiveShareController']]],this['_config'][_0x75ef17(0x203)])),o['touchDependencies'](this[_0x75ef17(0x169)],[[m]]);}['onRendered'](){const _0x12a3ac=_0x12eb30;o['touchDependencies'](this[_0x12a3ac(0x169)],[[exports[_0x12a3ac(0x198)]]]);}},A(exports[_0x12eb30(0x19d)],_0x12eb30(0x17b),o['UniverInstanceType'][_0x12eb30(0x1ac)]),A(exports[_0x12eb30(0x19d)],_0x12eb30(0x19c),oe),exports[_0x12eb30(0x19d)]=re([o[_0x12eb30(0x1d8)](b[_0x12eb30(0x16a)]),N(0x1,o[_0x12eb30(0x1cc)](o[_0x12eb30(0x1ea)])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x12eb30(0x1ed)]=$,exports[_0x12eb30(0x1f7)]=E,exports[_0x12eb30(0x223)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x444e(_0x5b00e4,_0x18af70){_0x5b00e4=_0x5b00e4-0x10d;const _0x38771f=_0x3877();let _0x444e21=_0x38771f[_0x5b00e4];return _0x444e21;}const _0x54c981=_0x444e;(function(_0xc59aa2,_0x39ffba){const _0x12ac38=_0x444e,_0x4eb295=_0xc59aa2();while(!![]){try{const _0x416e9a=-parseInt(_0x12ac38(0x11c))/0x1*(-parseInt(_0x12ac38(0x10f))/0x2)+parseInt(_0x12ac38(0x117))/0x3+-parseInt(_0x12ac38(0x123))/0x4*(-parseInt(_0x12ac38(0x116))/0x5)+-parseInt(_0x12ac38(0x11f))/0x6+parseInt(_0x12ac38(0x124))/0x7+-parseInt(_0x12ac38(0x128))/0x8+parseInt(_0x12ac38(0x118))/0x9*(-parseInt(_0x12ac38(0x11e))/0xa);if(_0x416e9a===_0x39ffba)break;else _0x4eb295['push'](_0x4eb295['shift']());}catch(_0x4e0303){_0x4eb295['push'](_0x4eb295['shift']());}}}(_0x3877,0x56e21));function _0x3877(){const _0x1b3c58=['_initialize','getLiveShareStatus','1212010hNFTqt','1303797LFTsoo','23445SGGvjk','symbol','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','1uekMXw','defineProperty','4790JoZRzM','533358KHFpVA','_injector','IDLE','getStatus','8IEaTEO','4153870pwfEVI','extend','stopFollowing','startPresenting','3821096xiQrBQ','get','LiveShareStatusEnum','getLiveShareCoordinatorSync','1314770jPHxmf','UNIVER_SHEET','getCurrentUnitOfType','getUnitId','No\x20active\x20workbook\x20found.'];_0x3877=function(){return _0x1b3c58;};return _0x3877();}var l=Object[_0x54c981(0x11d)],w=(_0x195cd0,_0x24ec47,_0x2b8886)=>_0x24ec47 in _0x195cd0?l(_0x195cd0,_0x24ec47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8886}):_0x195cd0[_0x24ec47]=_0x2b8886,v=(_0x4c90aa,_0x316d83,_0x3b5ab5)=>w(_0x4c90aa,typeof _0x316d83!=_0x54c981(0x119)?_0x316d83+'':_0x316d83,_0x3b5ab5);import{LiveShareController as _0x46bc90,LiveShareStatus as _0x2c9730}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x309931,UniverInstanceType as _0x3d59ca}from'@univerjs/core';import{FUniver as _0x5bd508,FEnum as _0x4dc371}from'@univerjs/core/facade';class g extends _0x5bd508{constructor(){const _0x3118fe=_0x54c981;super(...arguments),v(this,_0x3118fe(0x11b));}[_0x54c981(0x114)](_0x260b8a){const _0x3528fa=_0x54c981;this[_0x3528fa(0x11b)]=_0x260b8a[_0x3528fa(0x129)](_0x46bc90);}[_0x54c981(0x115)](){const _0x5011c1=_0x54c981;var _0x226e95;const _0x2bb8df=this['_injector'][_0x5011c1(0x129)](_0x309931)['getCurrentUnitOfType'](_0x3d59ca['UNIVER_SHEET']);if(!_0x2bb8df)throw new Error('No\x20active\x20workbook\x20found.');const _0x8281dc=_0x2bb8df[_0x5011c1(0x112)](),_0x2d1544=this['_liveShareController'][_0x5011c1(0x10e)](_0x8281dc);return(_0x226e95=_0x2d1544==null?void 0x0:_0x2d1544[_0x5011c1(0x122)]())!=null?_0x226e95:_0x2c9730[_0x5011c1(0x121)];}['startFollowing'](){const _0xc89cbf=_0x54c981,_0x4a0e4f=this[_0xc89cbf(0x120)][_0xc89cbf(0x129)](_0x309931)[_0xc89cbf(0x111)](_0x3d59ca[_0xc89cbf(0x110)]);if(!_0x4a0e4f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dc35d=_0x4a0e4f[_0xc89cbf(0x112)](),_0x6e6444=this[_0xc89cbf(0x11b)]['getLiveShareCoordinatorSync'](_0x4dc35d);if(!_0x6e6444)throw new Error(_0xc89cbf(0x11a));_0x6e6444['startFollowing']();}[_0x54c981(0x126)](){const _0x36fdcc=_0x54c981,_0xb8bd34=this[_0x36fdcc(0x120)][_0x36fdcc(0x129)](_0x309931)[_0x36fdcc(0x111)](_0x3d59ca[_0x36fdcc(0x110)]);if(!_0xb8bd34)throw new Error(_0x36fdcc(0x113));const _0x4843b4=_0xb8bd34[_0x36fdcc(0x112)](),_0x3425aa=this[_0x36fdcc(0x11b)]['getLiveShareCoordinatorSync'](_0x4843b4);if(!_0x3425aa)throw new Error(_0x36fdcc(0x11a));_0x3425aa['stopFollowing']();}[_0x54c981(0x127)](){const _0x28a4d3=_0x54c981,_0x2fd82d=this[_0x28a4d3(0x120)][_0x28a4d3(0x129)](_0x309931)[_0x28a4d3(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x2fd82d)throw new Error(_0x28a4d3(0x113));const _0x514bcb=_0x2fd82d[_0x28a4d3(0x112)](),_0x40a050=this['_liveShareController'][_0x28a4d3(0x10e)](_0x514bcb);if(!_0x40a050)throw new Error(_0x28a4d3(0x11a));_0x40a050['tryStartPresenting']();}['stopPresenting'](){const _0x2f236d=_0x54c981,_0x49557a=this[_0x2f236d(0x120)][_0x2f236d(0x129)](_0x309931)[_0x2f236d(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x49557a)throw new Error(_0x2f236d(0x113));const _0x307c58=_0x49557a['getUnitId'](),_0x1b93a2=this[_0x2f236d(0x11b)][_0x2f236d(0x10e)](_0x307c58);if(!_0x1b93a2)throw new Error(_0x2f236d(0x11a));_0x1b93a2['stopPresenting']();}}_0x5bd508[_0x54c981(0x125)](g);class f extends _0x4dc371{get[_0x54c981(0x10d)](){return _0x2c9730;}}_0x4dc371[_0x54c981(0x125)](f);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3161ce=_0x5432;(function(_0xe9e216,_0x499a4b){const _0x2cd15d=_0x5432,_0x5f2cb6=_0xe9e216();while(!![]){try{const _0x507ac7=-parseInt(_0x2cd15d(0x117))/0x1*(parseInt(_0x2cd15d(0xbe))/0x2)+-parseInt(_0x2cd15d(0xf5))/0x3*(-parseInt(_0x2cd15d(0xc6))/0x4)+-parseInt(_0x2cd15d(0xec))/0x5+parseInt(_0x2cd15d(0xd3))/0x6+-parseInt(_0x2cd15d(0xfb))/0x7*(-parseInt(_0x2cd15d(0xf9))/0x8)+-parseInt(_0x2cd15d(0x122))/0x9*(parseInt(_0x2cd15d(0xf7))/0xa)+-parseInt(_0x2cd15d(0xab))/0xb*(-parseInt(_0x2cd15d(0x116))/0xc);if(_0x507ac7===_0x499a4b)break;else _0x5f2cb6['push'](_0x5f2cb6['shift']());}catch(_0x30b8b4){_0x5f2cb6['push'](_0x5f2cb6['shift']());}}}(_0x8a2f,0x26dfa));var J=Object[_0x3161ce(0xc9)],K=(_0x3b3c27,_0x63425f,_0x32df1a)=>_0x63425f in _0x3b3c27?J(_0x3b3c27,_0x63425f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32df1a}):_0x3b3c27[_0x63425f]=_0x32df1a,u=(_0x247481,_0x5cbac4,_0x55545c)=>K(_0x247481,typeof _0x5cbac4!=_0x3161ce(0xaf)?_0x5cbac4+'':_0x5cbac4,_0x55545c);import{Disposable as _0x38683d,toDisposable as _0x145942,IUniverInstanceService as _0x3f7773,Inject as _0x14252a,Injector as _0x5e11ad,IConfigService as _0x2b6132,ICommandService as _0x5327ed,RxDisposable as _0x2c7418,UniverInstanceType as _0x3d3727,DisposableCollection as _0x274dd9,CommandType as _0x3db63d,DependentOn as _0x10d5a5,Plugin as _0x1104c7,merge as _0x204de3,registerDependencies as _0x149c15,mergeOverrideWithDependencies as _0x2f3879,touchDependencies as _0xcdf2ee}from'@univerjs/core';import{useDependency as _0x2e8a9e,useObservable as _0x76447,IUIPartsService as _0x3fa8c9,BuiltInUIPart as _0x5f0230,connectInjector as _0x4c8d2a}from'@univerjs/ui';import{jsx as _0x525ba2,jsxs as _0x40011d,Fragment as _0x52ab07}from'react/jsx-runtime';import{Dropdown as _0x3fbb2d,clsx as _0x5ab19b,Button as _0x4174df}from'@univerjs/design';import{useRef as _0x2753f6,createElement as _0x5e5e58,forwardRef as _0x1a7ba8,useState as _0x3039b2,useEffect as _0x4dcff2}from'react';import{CollaborationEvent as _0x1c8be3,parseProtocolChangeset as _0x44e6c4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x383e89,SessionStatus as _0x1b3f3b,UniverCollaborationClientPlugin as _0x145b3d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33dc4d,SetWorksheetActiveOperation as _0x5a80bb}from'@univerjs/sheets';import{BehaviorSubject as _0x4ab38a,Subject as _0x104484}from'rxjs';import{takeUntil as _0x5e9ba,throttleTime as _0x496b70}from'rxjs/operators';import{SetZoomRatioOperation as _0xefd7a1,SetScrollOperation as _0x592fec}from'@univerjs/sheets-ui';function k({ref:_0x2d4af4,..._0x3b49ca}){const _0x45878c=_0x3161ce,{icon:_0x458afc,id:_0x5e20ab,className:_0x3598fc,extend:_0x3ba1cf,..._0x401adf}=_0x3b49ca,_0x4496b0=(_0x45878c(0xbf)+_0x5e20ab+'\x20'+(_0x3598fc||''))[_0x45878c(0xb4)](),_0x42a0cb=_0x2753f6('_'+Oe());return G(_0x458afc,''+_0x5e20ab,{'defIds':_0x458afc[_0x45878c(0x11e)],'idSuffix':_0x42a0cb['current']},{'ref':_0x2d4af4,'className':_0x4496b0,..._0x401adf},_0x3ba1cf);}function G(_0x406940,_0x158976,_0x426cbb,_0x5bf2d5,_0x23ed99){const _0x17347d=_0x3161ce;return _0x5e5e58(_0x406940[_0x17347d(0x108)],{'key':_0x158976,...be(_0x406940,_0x426cbb,_0x23ed99),..._0x5bf2d5},(Ee(_0x406940,_0x426cbb)[_0x17347d(0x124)]||[])['map']((_0x205edb,_0x493923)=>G(_0x205edb,_0x158976+'-'+_0x406940[_0x17347d(0x108)]+'-'+_0x493923,_0x426cbb,void 0x0,_0x23ed99)));}function be(_0x5b1ba0,_0x1e16d0,_0x5d9f5e){const _0x5bd510=_0x3161ce,_0x418bc5={..._0x5b1ba0[_0x5bd510(0xb0)]};_0x5d9f5e!=null&&_0x5d9f5e[_0x5bd510(0xa4)]&&_0x418bc5[_0x5bd510(0xe3)]===_0x5bd510(0xa4)&&(_0x418bc5[_0x5bd510(0xe3)]=_0x5d9f5e['colorChannel1']),_0x5b1ba0[_0x5bd510(0x108)]===_0x5bd510(0xf1)&&_0x418bc5['id']&&(_0x418bc5['id']=_0x418bc5['id']+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)[_0x5bd510(0xe6)](([_0x39f393,_0x43a80a])=>{const _0x57ed7a=_0x5bd510;_0x39f393===_0x57ed7a(0xf1)&&typeof _0x43a80a==_0x57ed7a(0xb3)&&(_0x418bc5[_0x39f393]=_0x43a80a[_0x57ed7a(0x133)](/url\(#(.*)\)/,_0x57ed7a(0x101)+_0x1e16d0[_0x57ed7a(0xcb)]+')'));});const {defIds:_0xeeb102}=_0x1e16d0;return!_0xeeb102||_0xeeb102[_0x5bd510(0xe7)]===0x0||(_0x5b1ba0[_0x5bd510(0x108)]==='use'&&_0x418bc5[_0x5bd510(0xc4)]&&(_0x418bc5[_0x5bd510(0xc4)]=_0x418bc5[_0x5bd510(0xc4)]+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)['forEach'](([_0x2bf6e9,_0x239423])=>{const _0x5ee2e3=_0x5bd510;typeof _0x239423==_0x5ee2e3(0xb3)&&(_0x418bc5[_0x2bf6e9]=_0x239423[_0x5ee2e3(0x133)](/url\(#(.*)\)/,_0x5ee2e3(0x101)+_0x1e16d0[_0x5ee2e3(0xcb)]+')'));})),_0x418bc5;}function Ee(_0x1a5601,_0xfc905a){const _0x37f846=_0x3161ce;var _0x3ca25d;const {defIds:_0x2d6e11}=_0xfc905a;return!_0x2d6e11||_0x2d6e11['length']===0x0?_0x1a5601:_0x1a5601[_0x37f846(0x108)]===_0x37f846(0xef)&&((_0x3ca25d=_0x1a5601[_0x37f846(0x124)])!=null&&_0x3ca25d[_0x37f846(0xe7)])?{..._0x1a5601,'children':_0x1a5601['children'][_0x37f846(0x11b)](_0x2a2fdd=>typeof _0x2a2fdd[_0x37f846(0xb0)]['id']=='string'&&_0x2d6e11&&_0x2d6e11[_0x37f846(0xfa)](_0x2a2fdd[_0x37f846(0xb0)]['id'])?{..._0x2a2fdd,'attrs':{..._0x2a2fdd['attrs'],'id':_0x2a2fdd['attrs']['id']+_0xfc905a['idSuffix']}}:_0x2a2fdd)}:_0x1a5601;}function Oe(){const _0x1f12c3=_0x3161ce;return Math['random']()[_0x1f12c3(0xad)](0x24)['substring'](0x2,0x8);}k[_0x3161ce(0xe9)]=_0x3161ce(0xf0);const we={'tag':_0x3161ce(0xc0),'attrs':{'xmlns':_0x3161ce(0x13e),'fill':_0x3161ce(0xdd),'viewBox':_0x3161ce(0x110),'width':_0x3161ce(0x123),'height':_0x3161ce(0x123)},'children':[{'tag':_0x3161ce(0x139),'attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0x105)}},{'tag':'path','attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0xa2),'fillRule':_0x3161ce(0xdc),'clipRule':_0x3161ce(0xdc)}}]},W=_0x1a7ba8(function(_0x12ee0d,_0x7b928a){const _0x32c9ee=_0x3161ce;return _0x5e5e58(k,Object[_0x32c9ee(0x134)]({},_0x12ee0d,{'id':_0x32c9ee(0x10c),'ref':_0x7b928a,'icon':we}));});W[_0x3161ce(0xe9)]='LiveShareIcon';function _0x8a2f(){const _0x398be8=['_handleTerminate','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','text','colorChannel1','_liveShareService','idle','presenting','LIVESHARE_NEW_HOST','Start\x20following','operations','724361AUozCJ','onStarting','toString','_handleOperation','symbol','attrs','getUnitId','clear','string','trim','LIVESHARE_REQUEST_HOST','default','complete','_stopPresenting','_commandDisposable','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_startFollowing','2DOwmlt','univerjs-icon\x20univerjs-icon-','svg','mutations','offline','_entities','xlink:href','init','12xgGBEI','_collabSession','_presenter','defineProperty','FOLLOWING','idSuffix','end','_collabSessionService','_configService','_injector','tryStartPresenting','IDLE','set','715050YjcYFt','next','following','_univerInstanceService','LIVESHARE_TERMINATE','getLiveShareCoordinatorSync','dispose','stringify','shouldShareOperation','evenodd','none','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_status','UNIVER_SHEET','_startLiveShareCoordinator','fill','OFFLINE','_handleNewChangeSets','forEach','length','not-following','displayName','disposeWithMe','entries','646655nksKQA','override','button','defs','UniverIcon','mask','getLiveShareCoordinator','LIVESHARE_OPERATION','unitId','51999RvDGbx','registerInitialStateReporter','210QSNMya','subscribe','317256RLTpbM','includes','42rgUQmW','_mountLiveShare','send','getStatus','registerSharedOperation','_beIdle','url(#$1','SAME_OPERATION_SHARE_INTERVAL','_unitID','add','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','tag','then','data','get','live-share-icon','_config','_startPresenting','requireSession','0\x200\x2017\x2017','Present\x20this\x20document','delete','pipe','live-share.config','UNIVER_UNKNOWN','36pzJEsh','309271NRrfUu','event$','params','PRESENTING','map','_handleNewHost','type','defIds','NOT_FOLLOWING','_status$','_sharedOperations','3789BtNkGm','1em','children','LIVESHARE_FETCH_OPERATIONS','getConfig','_reporters','getValue','UNIVER_LIVE_SHARE_PLUGIN','_init','currentColor','Start','_handleOnline','Stop\x20following','executeCommand','getTypeOfUnitAdded$','ONLINE','setConfig','replace','assign','current','getMemberID','stopFollowing','You\x27are\x20offline.','path','_stopFollowing','div','NEW_CHANGESETS','_fetchOperations','http://www.w3.org/2000/svg','onRendered','registerComponent','stopPresenting','startFollowing','_commandService','_handleOffline','status$','values','_uiPartsService','dispose$','OPERATION','has'];_0x8a2f=function(){return _0x398be8;};return _0x8a2f();}class L extends _0x38683d{constructor(){const _0x1c4487=_0x3161ce;super(...arguments),u(this,_0x1c4487(0x121),new Set()),u(this,'_reporters',new Set());}[_0x3161ce(0xff)](_0x162192){const _0xc0a628=_0x3161ce;return this['_sharedOperations'][_0xc0a628(0x104)](_0x162192),_0x145942(()=>this[_0xc0a628(0x121)]['delete'](_0x162192));}[_0x3161ce(0xf6)](_0x2347e5){const _0x76d00=_0x3161ce;return this['_reporters'][_0x76d00(0x104)](_0x2347e5),_0x145942(()=>this[_0x76d00(0x127)][_0x76d00(0x112)](_0x2347e5));}[_0x3161ce(0xdb)](_0x3a5ab1){const _0x3218b1=_0x3161ce;return this['_sharedOperations'][_0x3218b1(0xa0)](_0x3a5ab1);}[_0x3161ce(0xbc)](_0x63ba77){const _0x1a5131=_0x3161ce;return Array['from'](this['_reporters'])[_0x1a5131(0x11b)](_0x36dc6d=>_0x36dc6d(_0x63ba77));}}var Ne=Object[_0x3161ce(0x106)],Y=(_0xa22727,_0x2a249d,_0x66f8b7,_0x2502c3)=>{const _0x141347=_0x3161ce;for(var _0x376df6=_0x2502c3>0x1?void 0x0:_0x2502c3?Ne(_0x2a249d,_0x66f8b7):_0x2a249d,_0x49605b=_0xa22727[_0x141347(0xe7)]-0x1,_0x6ed335;_0x49605b>=0x0;_0x49605b--)(_0x6ed335=_0xa22727[_0x49605b])&&(_0x376df6=_0x6ed335(_0x376df6)||_0x376df6);return _0x376df6;},_=(_0x41fccc,_0x132676)=>(_0x4bf7fd,_0x479861)=>_0x132676(_0x4bf7fd,_0x479861,_0x41fccc);let S=class extends _0x2c7418{constructor(_0x1d8880,_0x4056e7,_0x5f2174){const _0x33897e=_0x3161ce;super(),u(this,_0x33897e(0xc3),new Map()),(this[_0x33897e(0xd6)]=_0x1d8880,this[_0x33897e(0xcf)]=_0x4056e7,this[_0x33897e(0xcd)]=_0x5f2174,this[_0x33897e(0x12a)]());}async['getLiveShareCoordinator'](_0x2d99bd){const _0x45b2a8=_0x3161ce;return this[_0x45b2a8(0xc3)]['has'](_0x2d99bd)||await this['_startLiveShareCoordinator'](_0x2d99bd),this[_0x45b2a8(0xc3)][_0x45b2a8(0x10b)](_0x2d99bd);}[_0x3161ce(0xd8)](_0x5da28a){const _0x52841c=_0x3161ce;var _0x5e24b0;return(_0x5e24b0=this[_0x52841c(0xc3)][_0x52841c(0x10b)](_0x5da28a))!=null?_0x5e24b0:null;}[_0x3161ce(0x12a)](){const _0x544ac1=_0x3161ce;this[_0x544ac1(0xd6)][_0x544ac1(0x130)](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](async _0x552a4b=>{const _0x55622b=_0x544ac1,_0x145531=_0x552a4b['getUnitId']();this[_0x55622b(0xc3)][_0x55622b(0xa0)](_0x145531)||this[_0x55622b(0xe2)](_0x145531);}),this[_0x544ac1(0xd6)]['getTypeOfUnitDisposed$'](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](_0x5cec92=>{const _0x2793c1=_0x544ac1,_0x18c72b=_0x5cec92['getUnitId'](),_0x3ab835=this['_entities'][_0x2793c1(0x10b)](_0x18c72b);_0x3ab835==null||_0x3ab835[_0x2793c1(0xd9)]();});}async[_0x3161ce(0xe2)](_0x2ff801){const _0x5214b7=_0x3161ce,_0x18a8ba=await this['_collabSessionService'][_0x5214b7(0x10f)](_0x2ff801),_0x5f5c3c=this[_0x5214b7(0xcf)]['createInstance'](N,_0x2ff801,_0x18a8ba);return _0x5f5c3c[_0x5214b7(0xc5)](),this[_0x5214b7(0xc3)][_0x5214b7(0xd2)](_0x2ff801,_0x5f5c3c),_0x5f5c3c;}};S=Y([_(0x0,_0x3f7773),_(0x1,_0x14252a(_0x5e11ad)),_(0x2,_0x14252a(_0x383e89))],S);var c=(_0x1405aa=>(_0x1405aa[_0x3161ce(0xe4)]=_0x3161ce(0xc2),_0x1405aa[_0x3161ce(0xd1)]=_0x3161ce(0xa6),_0x1405aa[_0x3161ce(0xca)]=_0x3161ce(0xd5),_0x1405aa[_0x3161ce(0x11f)]='not-following',_0x1405aa['PRESENTING']=_0x3161ce(0xa7),_0x1405aa))(c||{});const Ce=_0x3161ce(0x102),De=0xc8;let N=class extends _0x2c7418{constructor(_0x475055,_0x27523b,_0x4cd19f,_0x1c7a91,_0x58b56b){const _0x26120d=_0x3161ce;super(),u(this,'_status$',new _0x4ab38a(_0x26120d(0xa6))),u(this,_0x26120d(0x9b),this[_0x26120d(0x120)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x26120d(0xb9),null),u(this,_0x26120d(0xc8),null),(this[_0x26120d(0x103)]=_0x475055,this[_0x26120d(0xc7)]=_0x27523b,this['_configService']=_0x4cd19f,this['_liveShareService']=_0x1c7a91,this[_0x26120d(0x99)]=_0x58b56b);}get['_status'](){const _0x37439b=_0x3161ce;return this['_status$'][_0x37439b(0x128)]();}[_0x3161ce(0xd9)](){const _0x4f56cc=_0x3161ce;var _0x1718ff;(_0x1718ff=this['_commandDisposable'])==null||_0x1718ff[_0x4f56cc(0xd9)](),this[_0x4f56cc(0x120)][_0x4f56cc(0xd4)](_0x4f56cc(0xa6)),this[_0x4f56cc(0x120)][_0x4f56cc(0xb7)]();}[_0x3161ce(0xfe)](){const _0x4923e0=_0x3161ce;return this[_0x4923e0(0xe0)];}[_0x3161ce(0xc5)](){const _0x2f9775=_0x3161ce;this[_0x2f9775(0x12a)]||(this[_0x2f9775(0x12a)]=!0x0,this[_0x2f9775(0xc7)]['sessionStatus$'][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))['subscribe'](_0x5ab8ef=>{const _0x3301f5=_0x2f9775;switch(_0x5ab8ef){case _0x1b3f3b[_0x3301f5(0xe4)]:this[_0x3301f5(0x9a)]();break;case _0x1b3f3b[_0x3301f5(0x131)]:this[_0x3301f5(0x12d)]();break;}}),this[_0x2f9775(0xc7)][_0x2f9775(0x118)][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))[_0x2f9775(0xf8)](_0x2bfdc5=>{const _0x3d0c52=_0x2f9775,{eventID:_0x5ae880}=_0x2bfdc5;switch(_0x5ae880){case _0x1c8be3[_0x3d0c52(0xa8)]:this['_handleNewHost'](_0x2bfdc5);break;case _0x1c8be3[_0x3d0c52(0xf3)]:this[_0x3d0c52(0xae)](_0x2bfdc5);break;case _0x1c8be3['LIVESHARE_TERMINATE']:this[_0x3d0c52(0xa1)]();break;case _0x1c8be3[_0x3d0c52(0x13c)]:this[_0x3d0c52(0xe5)](_0x2bfdc5);break;}}));}[_0x3161ce(0xd0)](){const _0x5178e5=_0x3161ce;this['_collabSession'][_0x5178e5(0xfd)]({'eventID':_0x1c8be3[_0x5178e5(0xb5)],'data':{'unitID':this[_0x5178e5(0x103)],'userID':this[_0x5178e5(0xc7)][_0x5178e5(0x136)]()}},this[_0x5178e5(0x103)]);}[_0x3161ce(0x141)](){const _0x2022bb=_0x3161ce;this[_0x2022bb(0xe0)]===_0x2022bb(0xa7)&&(this[_0x2022bb(0x120)]['next']('idle'),this[_0x2022bb(0xc7)][_0x2022bb(0xfd)]({'eventID':_0x1c8be3[_0x2022bb(0xd7)],'data':{'unitID':this['_unitID']}},this[_0x2022bb(0x103)]));}[_0x3161ce(0x98)](){const _0x2b9b04=_0x3161ce;this[_0x2b9b04(0xe0)]==='not-following'&&(this[_0x2b9b04(0x120)][_0x2b9b04(0xd4)](_0x2b9b04(0xd5)),this[_0x2b9b04(0xbd)]());}[_0x3161ce(0x137)](){const _0x4b9398=_0x3161ce;this[_0x4b9398(0xe0)]===_0x4b9398(0xd5)&&this[_0x4b9398(0x13a)]();}[_0x3161ce(0x11c)](_0x19be9a){const _0x141f26=_0x3161ce,{presenter:_0x548e36}=_0x19be9a[_0x141f26(0x10a)],_0x32cd5e=this[_0x141f26(0xc7)]['getMemberID']();this[_0x141f26(0xc8)]=_0x548e36,_0x548e36===_0x32cd5e?(this[_0x141f26(0x13a)](),this[_0x141f26(0x10e)]()):this['_status']!==_0x141f26(0xe8)&&(this['_stopPresenting'](),this[_0x141f26(0xbd)]());}[_0x3161ce(0x13d)](){const _0x3af3ba=_0x3161ce,_0x1cb094={'eventID':_0x1c8be3[_0x3af3ba(0x125)]};this['_collabSession']['send'](_0x1cb094,this['_unitID']);}[_0x3161ce(0xa1)](){const _0x27b875=_0x3161ce;this[_0x27b875(0xc8)]=null,this['_status']!==_0x27b875(0xa7)&&this[_0x27b875(0x100)]();}[_0x3161ce(0xe5)](_0x4d2222){const _0x3ba348=_0x3161ce;if(this[_0x3ba348(0xe0)]==='following'&&this[_0x3ba348(0xc8)]===_0x4d2222[_0x3ba348(0x10a)]['memberID']){const _0x10f8c3=_0x44e6c4(_0x4d2222['data'])[_0x3ba348(0xc1)]['reverse']()['find'](_0x2922b4=>_0x2922b4['id']===_0x33dc4d['id']);if(_0x10f8c3){const _0x20c598=_0x10f8c3[_0x3ba348(0x119)][_0x3ba348(0xf4)],_0x5b4268=_0x10f8c3[_0x3ba348(0x119)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x5a80bb['id'],{'unitId':_0x20c598,'subUnitId':_0x5b4268},{'fromCollab':!0x0});});}}}[_0x3161ce(0x10e)](){const _0x483c69=_0x3161ce;this[_0x483c69(0x120)][_0x483c69(0xd4)](_0x483c69(0xa7));const _0x417c7f=new Map(),_0x3944d1=this[_0x483c69(0xb9)]=new _0x274dd9();_0x3944d1[_0x483c69(0x104)](_0x145942(()=>{const _0x3a7038=_0x483c69;_0x417c7f[_0x3a7038(0xe6)](_0x59aec9=>_0x59aec9[_0x3a7038(0xb7)]()),_0x417c7f[_0x3a7038(0xb2)]();})),_0x3944d1[_0x483c69(0x104)](this[_0x483c69(0x99)]['onCommandExecuted'](_0x54775e=>{const _0x4a2a9e=_0x483c69;var _0x600c72;if(_0x54775e[_0x4a2a9e(0x11d)]!==_0x3db63d[_0x4a2a9e(0x9f)]||!this[_0x4a2a9e(0xa5)][_0x4a2a9e(0xdb)](_0x54775e['id']))return;const {id:_0x390027}=_0x54775e;let _0x20a213;_0x417c7f['has'](_0x390027)?_0x20a213=_0x417c7f['get'](_0x390027):(_0x20a213=new _0x104484(),_0x417c7f['set'](_0x390027,_0x20a213),_0x20a213[_0x4a2a9e(0x113)](_0x496b70((_0x600c72=this['_configService'][_0x4a2a9e(0x126)](Ce))!=null?_0x600c72:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33a46e=>{const _0x26ca0e=_0x4a2a9e;this[_0x26ca0e(0xc7)]['send']({'eventID':_0x1c8be3[_0x26ca0e(0xf3)],'data':{'unitID':this[_0x26ca0e(0x103)],'operations':{[_0x33a46e['id']]:{'id':_0x33a46e['id'],'params':JSON['stringify'](_0x33a46e['params'])}}}},this[_0x26ca0e(0x103)]);})),_0x20a213[_0x4a2a9e(0xd4)](_0x54775e);})),this[_0x483c69(0xa5)][_0x483c69(0xbc)](this[_0x483c69(0x103)])[_0x483c69(0xe6)](_0xda8394=>this[_0x483c69(0xc7)][_0x483c69(0xfd)]({'eventID':_0x1c8be3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x483c69(0x103)],'operations':{[_0xda8394['id']]:{'id':_0xda8394['id'],'params':JSON[_0x483c69(0xda)](_0xda8394[_0x483c69(0x119)])}}}},this[_0x483c69(0x103)]));}[_0x3161ce(0xb8)](){const _0x3d1ce0=_0x3161ce;var _0x2d3082;this[_0x3d1ce0(0x120)]['next'](_0x3d1ce0(0xa6)),(_0x2d3082=this[_0x3d1ce0(0xb9)])==null||_0x2d3082[_0x3d1ce0(0xd9)](),this['_commandDisposable']=null;}[_0x3161ce(0xbd)](){const _0x291e30=_0x3161ce;var _0x2240fa;(_0x2240fa=this[_0x291e30(0xb9)])==null||_0x2240fa[_0x291e30(0xd9)](),this[_0x291e30(0x120)]['next'](_0x291e30(0xd5));}[_0x3161ce(0x100)](){const _0x3876d1=_0x3161ce;var _0x76b030;this[_0x3876d1(0x120)][_0x3876d1(0xd4)](_0x3876d1(0xa6)),(_0x76b030=this['_commandDisposable'])==null||_0x76b030['dispose'](),this[_0x3876d1(0xb9)]=null;}['_stopFollowing'](){const _0x4ccd24=_0x3161ce;var _0x367f51;this[_0x4ccd24(0x120)][_0x4ccd24(0xd4)](_0x4ccd24(0xe8)),(_0x367f51=this[_0x4ccd24(0xb9)])==null||_0x367f51['dispose']();}[_0x3161ce(0xae)](_0x576669){const _0x4fa02c=_0x3161ce;if([_0x4fa02c(0xa7),_0x4fa02c(0xe8),_0x4fa02c(0xc2)]['includes'](this[_0x4fa02c(0xe0)])||!_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xdf)]||_0x576669['data'][_0x4fa02c(0xdf)]===this[_0x4fa02c(0xc7)][_0x4fa02c(0x136)]())return;this['_status']===_0x4fa02c(0xa6)&&this[_0x4fa02c(0xbd)]();const _0x478620=_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xaa)];Object[_0x4fa02c(0x9c)](_0x478620)[_0x4fa02c(0xe6)](_0x3854d4=>{const _0x25f223=_0x4fa02c;this[_0x25f223(0x99)][_0x25f223(0x12f)](_0x3854d4['id'],_0x3854d4[_0x25f223(0x119)]?JSON['parse'](_0x3854d4[_0x25f223(0x119)]):null,{'fromCollab':!0x0});});}[_0x3161ce(0x9a)](){const _0x395918=_0x3161ce;var _0x15ef93;this['_status$'][_0x395918(0xd4)](_0x395918(0xc2)),(_0x15ef93=this['_commandDisposable'])==null||_0x15ef93[_0x395918(0xd9)]();}['_handleOnline'](){const _0x5d6eee=_0x3161ce;this[_0x5d6eee(0x120)]['next'](_0x5d6eee(0xa6)),this[_0x5d6eee(0x13d)]();}};N=Y([_(0x2,_0x2b6132),_(0x3,_0x14252a(L)),_(0x4,_0x5327ed)],N);function Le(){const _0x376963=_0x3161ce,_0x20417d=_0x2e8a9e(S),_0x16948f=_0x2e8a9e(_0x3f7773),_0x4798e0=_0x76447(()=>_0x16948f['getCurrentTypeOfUnit$'](_0x3d3727[_0x376963(0xe1)]),void 0x0,!0x1,[]),[_0x38307f,_0x552d78]=_0x3039b2(null),[_0x5e7b9f,_0x51d446]=_0x3039b2(c['IDLE']),_0x1fce8b=_0x2753f6(null);return _0x4dcff2(()=>(_0x4798e0&&_0x20417d[_0x376963(0xf2)](_0x4798e0[_0x376963(0xb1)]())[_0x376963(0x109)](_0x17a83c=>{const _0x396c47=_0x376963;_0x552d78(_0x17a83c),_0x1fce8b[_0x396c47(0x135)]=_0x17a83c['status$'][_0x396c47(0xf8)](_0x438d08=>{_0x51d446(_0x438d08);});}),()=>{const _0x5d0275=_0x376963;var _0x1f9964;(_0x1f9964=_0x1fce8b[_0x5d0275(0x135)])==null||_0x1f9964['unsubscribe'](),_0x1fce8b[_0x5d0275(0x135)]=null;}),[_0x4798e0,_0x20417d]),_0x38307f?_0x525ba2(_0x3fbb2d,{'align':_0x376963(0xcc),'disabled':_0x5e7b9f===c[_0x376963(0xe4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x525ba2(Re,{'status':_0x5e7b9f,'coordinator':_0x38307f}),'children':_0x525ba2(_0x376963(0xee),{'className':_0x5ab19b(_0x376963(0xde),{'univer-cursor-not-allowed':_0x5e7b9f===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5e7b9f!==c['OFFLINE']}),'type':'button','children':_0x525ba2(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2abddc){const _0x3bda20=_0x3161ce,{status:_0x245e60,coordinator:_0x39ee81}=_0x2abddc;switch(_0x245e60){case c[_0x3bda20(0xd1)]:return _0x525ba2($e,{'coordinator':_0x39ee81});case c['FOLLOWING']:return _0x525ba2(xe,{'coordinator':_0x39ee81});case c[_0x3bda20(0x11f)]:return _0x525ba2(Pe,{'coordinator':_0x39ee81});case c[_0x3bda20(0xe4)]:return _0x525ba2(Te,{});case c[_0x3bda20(0x11a)]:return _0x525ba2(Ae,{'coordinator':_0x39ee81});default:return null;}}function $e(_0xd84d8e){const _0x5cf4fb=_0x3161ce,{coordinator:_0x2eb979}=_0xd84d8e;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5cf4fb(0x13b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cf4fb(0x111)}),_0x525ba2(_0x4174df,{'onClick':()=>_0x2eb979[_0x5cf4fb(0xd0)](),'children':_0x5cf4fb(0x12c)})]});}function xe(_0x3774cc){const _0x11dd0f=_0x3161ce,{coordinator:_0x1e52e8}=_0x3774cc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x525ba2(_0x4174df,{'onClick':()=>_0x1e52e8[_0x11dd0f(0x137)](),'children':_0x11dd0f(0x12e)})]});}function Pe(_0x5b41d5){const _0x1f77f9=_0x3161ce,{coordinator:_0x591a8b}=_0x5b41d5;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x1f77f9(0x13b),{'className':_0x1f77f9(0xbb),'children':_0x1f77f9(0x107)}),_0x525ba2(_0x4174df,{'variant':_0x1f77f9(0xa3),'onClick':()=>_0x591a8b[_0x1f77f9(0x98)](),'children':_0x1f77f9(0xa9)})]});}function Ae(_0x4211dc){const _0x5947f6=_0x3161ce,{coordinator:_0x5ede1c}=_0x4211dc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5947f6(0x13b),{'className':_0x5947f6(0xbb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x525ba2(_0x4174df,{'variant':_0x5947f6(0xb6),'onClick':()=>_0x5ede1c[_0x5947f6(0x141)](),'children':_0x5947f6(0xba)})]});}function Te(){const _0xee815f=_0x3161ce;return _0x525ba2(_0x52ab07,{'children':_0xee815f(0x138)});}var Fe=Object[_0x3161ce(0x106)],He=(_0x1ed413,_0x203ac8,_0x103d15,_0x2905bc)=>{const _0xd58940=_0x3161ce;for(var _0x1c1aa0=_0x2905bc>0x1?void 0x0:_0x2905bc?Fe(_0x203ac8,_0x103d15):_0x203ac8,_0x3ccc44=_0x1ed413[_0xd58940(0xe7)]-0x1,_0x4ac5ae;_0x3ccc44>=0x0;_0x3ccc44--)(_0x4ac5ae=_0x1ed413[_0x3ccc44])&&(_0x1c1aa0=_0x4ac5ae(_0x1c1aa0)||_0x1c1aa0);return _0x1c1aa0;},A=(_0x42a870,_0x377299)=>(_0x5a721d,_0x24170e)=>_0x377299(_0x5a721d,_0x24170e,_0x42a870);let m=class extends _0x38683d{constructor(_0x5d6aca,_0x5a7d7c){const _0x58aaae=_0x3161ce;super(),this[_0x58aaae(0xcf)]=_0x5d6aca,this['_uiPartsService']=_0x5a7d7c,this[_0x58aaae(0xfc)]();}[_0x3161ce(0xfc)](){const _0x570384=_0x3161ce;this[_0x570384(0xea)](this[_0x570384(0x9d)][_0x570384(0x140)](_0x5f0230['HEADER_MENU'],()=>_0x4c8d2a(Le,this[_0x570384(0xcf)])));}};m=He([A(0x0,_0x14252a(_0x5e11ad)),A(0x1,_0x3fa8c9)],m);const ye=_0x3161ce(0x114),T={};function _0x5432(_0x567e3e,_0x13d1f1){_0x567e3e=_0x567e3e-0x98;const _0x8a2f9f=_0x8a2f();let _0x543227=_0x8a2f9f[_0x567e3e];return _0x543227;}var Ue=Object[_0x3161ce(0x106)],Ve=(_0x4e7c04,_0x427ddb,_0x3773c5,_0x30a4b5)=>{const _0x12405c=_0x3161ce;for(var _0x3719d8=_0x30a4b5>0x1?void 0x0:_0x30a4b5?Ue(_0x427ddb,_0x3773c5):_0x427ddb,_0x26e630=_0x4e7c04[_0x12405c(0xe7)]-0x1,_0x4f12af;_0x26e630>=0x0;_0x26e630--)(_0x4f12af=_0x4e7c04[_0x26e630])&&(_0x3719d8=_0x4f12af(_0x3719d8)||_0x3719d8);return _0x3719d8;},je=(_0x2e2cd5,_0x3f59e2)=>(_0x179311,_0x9768d9)=>_0x3f59e2(_0x179311,_0x9768d9,_0x2e2cd5);let I=class extends _0x38683d{constructor(_0x1cb9cb){const _0x1576ec=_0x3161ce;super(),this[_0x1576ec(0xa5)]=_0x1cb9cb,this['_init']();}[_0x3161ce(0x12a)](){[_0xefd7a1['id'],_0x592fec['id'],_0x5a80bb['id']]['forEach'](_0x292b69=>{const _0x154265=_0x5432;this[_0x154265(0xea)](this['_liveShareService'][_0x154265(0xff)](_0x292b69));});}};I=Ve([je(0x0,_0x14252a(L))],I);var Me=Object[_0x3161ce(0xc9)],ke=Object[_0x3161ce(0x106)],Ge=(_0x2d9178,_0x6b847c,_0x32ae1f)=>_0x6b847c in _0x2d9178?Me(_0x2d9178,_0x6b847c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32ae1f}):_0x2d9178[_0x6b847c]=_0x32ae1f,We=(_0x10d86a,_0x28f65c,_0x11760,_0x2482b4)=>{const _0x590840=_0x3161ce;for(var _0xfc1d8f=_0x2482b4>0x1?void 0x0:_0x2482b4?ke(_0x28f65c,_0x11760):_0x28f65c,_0x146da7=_0x10d86a[_0x590840(0xe7)]-0x1,_0x417961;_0x146da7>=0x0;_0x146da7--)(_0x417961=_0x10d86a[_0x146da7])&&(_0xfc1d8f=_0x417961(_0xfc1d8f)||_0xfc1d8f);return _0xfc1d8f;},F=(_0x82643e,_0x175300)=>(_0xde8b07,_0x4bd07e)=>_0x175300(_0xde8b07,_0x4bd07e,_0x82643e),B=(_0x21eb43,_0x4caa17,_0x137747)=>Ge(_0x21eb43,typeof _0x4caa17!='symbol'?_0x4caa17+'':_0x4caa17,_0x137747);const Ye=_0x3161ce(0x129);let b=class extends _0x1104c7{constructor(_0xbbf878=T,_0x160915,_0x5424a4){const _0x2b0204=_0x3161ce;super(),this[_0x2b0204(0x10d)]=_0xbbf878,this[_0x2b0204(0xcf)]=_0x160915,this[_0x2b0204(0xce)]=_0x5424a4;const {..._0x57892d}=_0x204de3({},T,this[_0x2b0204(0x10d)]);this[_0x2b0204(0xce)][_0x2b0204(0x132)](ye,_0x57892d);}[_0x3161ce(0xac)](){const _0x20f91a=_0x3161ce;_0x149c15(this[_0x20f91a(0xcf)],_0x2f3879([[L],[S],[I],[m]],this[_0x20f91a(0x10d)][_0x20f91a(0xed)])),_0xcdf2ee(this[_0x20f91a(0xcf)],[[I]]);}[_0x3161ce(0x13f)](){const _0x499f0d=_0x3161ce;_0xcdf2ee(this[_0x499f0d(0xcf)],[[m]]);}};B(b,_0x3161ce(0x11d),_0x3d3727[_0x3161ce(0x115)]),B(b,'pluginName',Ye),b=We([_0x10d5a5(_0x145b3d),F(0x1,_0x14252a(_0x5e11ad)),F(0x2,_0x2b6132)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x222f49=_0x32f8;(function(_0x132553,_0x276501){const _0x2ad240=_0x32f8,_0x5e7b8e=_0x132553();while(!![]){try{const _0x172e37=parseInt(_0x2ad240(0x172))/0x1*(-parseInt(_0x2ad240(0x1a9))/0x2)+parseInt(_0x2ad240(0x1cf))/0x3*(-parseInt(_0x2ad240(0x1e0))/0x4)+-parseInt(_0x2ad240(0x1a4))/0x5+parseInt(_0x2ad240(0x1bc))/0x6*(parseInt(_0x2ad240(0x173))/0x7)+parseInt(_0x2ad240(0x1b2))/0x8+parseInt(_0x2ad240(0x1c5))/0x9+parseInt(_0x2ad240(0x144))/0xa;if(_0x172e37===_0x276501)break;else _0x5e7b8e['push'](_0x5e7b8e['shift']());}catch(_0x27a76d){_0x5e7b8e['push'](_0x5e7b8e['shift']());}}}(_0x1f92,0x5bffa));var J=Object[_0x222f49(0x16d)],K=(_0x131552,_0x67239e,_0x4727fa)=>_0x67239e in _0x131552?J(_0x131552,_0x67239e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4727fa}):_0x131552[_0x67239e]=_0x4727fa,u=(_0x310b23,_0x336579,_0xabdb22)=>K(_0x310b23,typeof _0x336579!=_0x222f49(0x181)?_0x336579+'':_0x336579,_0xabdb22);import{Disposable as _0x1a37e7,toDisposable as _0x5b056a,Inject as _0x1482cd,Injector as _0x4bf49b,RxDisposable as _0x4d23fd,UniverInstanceType as _0x2f11e5,DisposableCollection as _0x4c5763,CommandType as _0xf0a1ab,IUniverInstanceService as _0x42d6a1,IConfigService as _0x2a5d23,ICommandService as _0x49fbbf,DependentOn as _0xa62d83,Plugin as _0x4a80e3,merge as _0x20b0c5,registerDependencies as _0x3e3410,mergeOverrideWithDependencies as _0x443e96,touchDependencies as _0xd36313}from'@univerjs/core';import{useDependency as _0xa82e97,useObservable as _0x169040,BuiltInUIPart as _0x504303,connectInjector as _0x71c5ea,IUIPartsService as _0x2eb621}from'@univerjs/ui';import{jsx as _0x147256,jsxs as _0x5b8e35,Fragment as _0x48919b}from'react/jsx-runtime';import{Dropdown as _0x4032fa,clsx as _0x21e998,Button as _0x343d1a}from'@univerjs/design';import{useRef as _0x2088ee,createElement as _0x35bf0f,forwardRef as _0x1296e9,useState as _0x263a7d,useEffect as _0x5b9c41}from'react';import{CollaborationEvent as _0x3fdbca,parseProtocolChangeset as _0xce55e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ae195,SessionStatus as _0x37958e,UniverCollaborationClientPlugin as _0x2aafaa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c0766,SetWorksheetActiveOperation as _0x18f1ca}from'@univerjs/sheets';import{BehaviorSubject as _0x1af331,Subject as _0x535ba9}from'rxjs';import{takeUntil as _0x4973f2,throttleTime as _0x5b740f}from'rxjs/operators';import{SetZoomRatioOperation as _0x314d69,SetScrollOperation as _0x39a4e2}from'@univerjs/sheets-ui';function k({ref:_0x462cb7,..._0x1c1dff}){const _0x316bad=_0x222f49,{icon:_0x1a8c9f,id:_0x276f33,className:_0x2e7a8e,extend:_0xa00f6a,..._0x2bd088}=_0x1c1dff,_0x50329d=(_0x316bad(0x15c)+_0x276f33+'\x20'+(_0x2e7a8e||''))['trim'](),_0x2261d9=_0x2088ee('_'+Oe());return G(_0x1a8c9f,''+_0x276f33,{'defIds':_0x1a8c9f[_0x316bad(0x1a3)],'idSuffix':_0x2261d9['current']},{'ref':_0x462cb7,'className':_0x50329d,..._0x2bd088},_0xa00f6a);}function G(_0x55cfd2,_0x4adbc0,_0x882380,_0x2bd600,_0x16f876){const _0xdbe3d4=_0x222f49;return _0x35bf0f(_0x55cfd2[_0xdbe3d4(0x1cd)],{'key':_0x4adbc0,...be(_0x55cfd2,_0x882380,_0x16f876),..._0x2bd600},(Ee(_0x55cfd2,_0x882380)[_0xdbe3d4(0x166)]||[])[_0xdbe3d4(0x1da)]((_0x14578b,_0x5b3422)=>G(_0x14578b,_0x4adbc0+'-'+_0x55cfd2[_0xdbe3d4(0x1cd)]+'-'+_0x5b3422,_0x882380,void 0x0,_0x16f876)));}function be(_0x5963be,_0x13093c,_0x4e1677){const _0x30a373=_0x222f49,_0x5e406e={..._0x5963be[_0x30a373(0x178)]};_0x4e1677!=null&&_0x4e1677['colorChannel1']&&_0x5e406e[_0x30a373(0x17b)]==='colorChannel1'&&(_0x5e406e['fill']=_0x4e1677[_0x30a373(0x19b)]),_0x5963be[_0x30a373(0x1cd)]===_0x30a373(0x16f)&&_0x5e406e['id']&&(_0x5e406e['id']=_0x5e406e['id']+_0x13093c[_0x30a373(0x1d3)]),Object['entries'](_0x5e406e)['forEach'](([_0x5e9f2d,_0x4e0b9d])=>{const _0x34b26c=_0x30a373;_0x5e9f2d==='mask'&&typeof _0x4e0b9d==_0x34b26c(0x1d8)&&(_0x5e406e[_0x5e9f2d]=_0x4e0b9d[_0x34b26c(0x14f)](/url\(#(.*)\)/,_0x34b26c(0x151)+_0x13093c[_0x34b26c(0x1d3)]+')'));});const {defIds:_0x59694a}=_0x13093c;return!_0x59694a||_0x59694a[_0x30a373(0x1b0)]===0x0||(_0x5963be[_0x30a373(0x1cd)]==='use'&&_0x5e406e[_0x30a373(0x1bf)]&&(_0x5e406e['xlink:href']=_0x5e406e[_0x30a373(0x1bf)]+_0x13093c[_0x30a373(0x1d3)]),Object[_0x30a373(0x154)](_0x5e406e)[_0x30a373(0x1cb)](([_0x3ea8c0,_0x39bb4c])=>{const _0x5d459c=_0x30a373;typeof _0x39bb4c==_0x5d459c(0x1d8)&&(_0x5e406e[_0x3ea8c0]=_0x39bb4c[_0x5d459c(0x14f)](/url\(#(.*)\)/,'url(#$1'+_0x13093c[_0x5d459c(0x1d3)]+')'));})),_0x5e406e;}function Ee(_0x5ea3b1,_0x2fc3f5){const _0xa9cbff=_0x222f49;var _0xc887a6;const {defIds:_0x40bb30}=_0x2fc3f5;return!_0x40bb30||_0x40bb30[_0xa9cbff(0x1b0)]===0x0?_0x5ea3b1:_0x5ea3b1['tag']===_0xa9cbff(0x1a7)&&((_0xc887a6=_0x5ea3b1['children'])!=null&&_0xc887a6[_0xa9cbff(0x1b0)])?{..._0x5ea3b1,'children':_0x5ea3b1[_0xa9cbff(0x166)][_0xa9cbff(0x1da)](_0x1f1739=>typeof _0x1f1739[_0xa9cbff(0x178)]['id']==_0xa9cbff(0x1d8)&&_0x40bb30&&_0x40bb30[_0xa9cbff(0x182)](_0x1f1739['attrs']['id'])?{..._0x1f1739,'attrs':{..._0x1f1739[_0xa9cbff(0x178)],'id':_0x1f1739[_0xa9cbff(0x178)]['id']+_0x2fc3f5[_0xa9cbff(0x1d3)]}}:_0x1f1739)}:_0x5ea3b1;}function Oe(){const _0x16f1c6=_0x222f49;return Math[_0x16f1c6(0x16c)]()[_0x16f1c6(0x1af)](0x24)['substring'](0x2,0x8);}k[_0x222f49(0x19c)]=_0x222f49(0x198);const we={'tag':_0x222f49(0x19e),'attrs':{'xmlns':_0x222f49(0x1c6),'fill':_0x222f49(0x1ad),'viewBox':_0x222f49(0x1b7),'width':_0x222f49(0x1df),'height':'1em'},'children':[{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1c9)}},{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1b4),'fillRule':_0x222f49(0x1ac),'clipRule':_0x222f49(0x1ac)}}]},W=_0x1296e9(function(_0x3ad358,_0x59951a){const _0x4e5bda=_0x222f49;return _0x35bf0f(k,Object[_0x4e5bda(0x1a0)]({},_0x3ad358,{'id':_0x4e5bda(0x175),'ref':_0x59951a,'icon':we}));});W[_0x222f49(0x19c)]=_0x222f49(0x189);class L extends _0x1a37e7{constructor(){const _0x9a5498=_0x222f49;super(...arguments),u(this,_0x9a5498(0x165),new Set()),u(this,_0x9a5498(0x19f),new Set());}['registerSharedOperation'](_0x51fa91){const _0x51633c=_0x222f49;return this[_0x51633c(0x165)][_0x51633c(0x17a)](_0x51fa91),_0x5b056a(()=>this['_sharedOperations'][_0x51633c(0x163)](_0x51fa91));}[_0x222f49(0x180)](_0x235cc7){const _0x35ad08=_0x222f49;return this[_0x35ad08(0x19f)][_0x35ad08(0x17a)](_0x235cc7),_0x5b056a(()=>this[_0x35ad08(0x19f)][_0x35ad08(0x163)](_0x235cc7));}[_0x222f49(0x162)](_0x5725b3){const _0x4a8736=_0x222f49;return this[_0x4a8736(0x165)][_0x4a8736(0x17c)](_0x5725b3);}[_0x222f49(0x1d2)](_0x50b96c){const _0x485c53=_0x222f49;return Array[_0x485c53(0x188)](this[_0x485c53(0x19f)])['map'](_0x4e2a8f=>_0x4e2a8f(_0x50b96c));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x38ad76,_0x26da5c,_0x8b1786,_0x1a136e)=>{const _0x19311d=_0x222f49;for(var _0x6b88e7=_0x1a136e>0x1?void 0x0:_0x1a136e?Ne(_0x26da5c,_0x8b1786):_0x26da5c,_0x2640d0=_0x38ad76[_0x19311d(0x1b0)]-0x1,_0x56c6e4;_0x2640d0>=0x0;_0x2640d0--)(_0x56c6e4=_0x38ad76[_0x2640d0])&&(_0x6b88e7=_0x56c6e4(_0x6b88e7)||_0x6b88e7);return _0x6b88e7;},_=(_0x26bd72,_0x2e0c36)=>(_0x661ef1,_0x1bae9c)=>_0x2e0c36(_0x661ef1,_0x1bae9c,_0x26bd72);let S=class extends _0x4d23fd{constructor(_0x43f0c5,_0x4c68c8,_0x5ba94c){const _0x4d0c7b=_0x222f49;super(),u(this,_0x4d0c7b(0x18a),new Map()),(this[_0x4d0c7b(0x158)]=_0x43f0c5,this[_0x4d0c7b(0x1c4)]=_0x4c68c8,this[_0x4d0c7b(0x185)]=_0x5ba94c,this[_0x4d0c7b(0x15f)]());}async[_0x222f49(0x1dd)](_0x1c2e6e){const _0x4e9dc9=_0x222f49;return this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x17c)](_0x1c2e6e)||await this['_startLiveShareCoordinator'](_0x1c2e6e),this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x1b1)](_0x1c2e6e);}['getLiveShareCoordinatorSync'](_0x2f9468){const _0x5271e5=_0x222f49;var _0x34ea18;return(_0x34ea18=this[_0x5271e5(0x18a)]['get'](_0x2f9468))!=null?_0x34ea18:null;}[_0x222f49(0x15f)](){const _0x500a8f=_0x222f49;this[_0x500a8f(0x158)]['getTypeOfUnitAdded$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this['dispose$']))[_0x500a8f(0x1c0)](async _0x14537d=>{const _0x11bfd9=_0x500a8f,_0x46c236=_0x14537d[_0x11bfd9(0x1b8)]();this[_0x11bfd9(0x18a)][_0x11bfd9(0x17c)](_0x46c236)||this['_startLiveShareCoordinator'](_0x46c236);}),this[_0x500a8f(0x158)]['getTypeOfUnitDisposed$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this[_0x500a8f(0x19a)]))[_0x500a8f(0x1c0)](_0x6a1e96=>{const _0xdea41c=_0x500a8f,_0x5173e1=_0x6a1e96[_0xdea41c(0x1b8)](),_0x521a08=this[_0xdea41c(0x18a)][_0xdea41c(0x1b1)](_0x5173e1);_0x521a08==null||_0x521a08['dispose']();});}async[_0x222f49(0x14c)](_0xf47cd1){const _0x58df3a=_0x222f49,_0x125981=await this[_0x58df3a(0x185)]['requireSession'](_0xf47cd1),_0xd7029=this['_injector']['createInstance'](N,_0xf47cd1,_0x125981);return _0xd7029['init'](),this['_entities']['set'](_0xf47cd1,_0xd7029),_0xd7029;}};S=Y([_(0x0,_0x42d6a1),_(0x1,_0x1482cd(_0x4bf49b)),_(0x2,_0x1482cd(_0x1ae195))],S);var c=(_0x21da83=>(_0x21da83[_0x222f49(0x1b5)]='offline',_0x21da83[_0x222f49(0x1ab)]=_0x222f49(0x157),_0x21da83['FOLLOWING']='following',_0x21da83[_0x222f49(0x156)]=_0x222f49(0x1b6),_0x21da83[_0x222f49(0x159)]=_0x222f49(0x191),_0x21da83))(c||{});const Ce=_0x222f49(0x152),De=0xc8;let N=class extends _0x4d23fd{constructor(_0x1636ce,_0xc41e87,_0x4dcef3,_0x2a8dfb,_0x454816){const _0x36727e=_0x222f49;super(),u(this,'_status$',new _0x1af331(_0x36727e(0x157))),u(this,_0x36727e(0x1d7),this['_status$']['asObservable']()),u(this,_0x36727e(0x15f),!0x1),u(this,_0x36727e(0x192),null),u(this,_0x36727e(0x1ae),null),(this[_0x36727e(0x194)]=_0x1636ce,this[_0x36727e(0x148)]=_0xc41e87,this['_configService']=_0x4dcef3,this[_0x36727e(0x1de)]=_0x2a8dfb,this['_commandService']=_0x454816);}get[_0x222f49(0x18f)](){const _0x4fd45b=_0x222f49;return this[_0x4fd45b(0x1ba)]['getValue']();}[_0x222f49(0x15e)](){const _0x1cfe29=_0x222f49;var _0x456969;(_0x456969=this[_0x1cfe29(0x192)])==null||_0x456969[_0x1cfe29(0x15e)](),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x160)](_0x1cfe29(0x157)),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x184)]();}[_0x222f49(0x1e4)](){const _0x55ff8c=_0x222f49;return this[_0x55ff8c(0x18f)];}[_0x222f49(0x1e2)](){const _0x2b7144=_0x222f49;this[_0x2b7144(0x15f)]||(this[_0x2b7144(0x15f)]=!0x0,this['_collabSession'][_0x2b7144(0x17f)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0xf3c7a5=>{const _0x40dc20=_0x2b7144;switch(_0xf3c7a5){case _0x37958e['OFFLINE']:this[_0x40dc20(0x16a)]();break;case _0x37958e[_0x40dc20(0x1cc)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x2b7144(0x14b)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0x101772=>{const _0x30ccdb=_0x2b7144,{eventID:_0x460750}=_0x101772;switch(_0x460750){case _0x3fdbca['LIVESHARE_NEW_HOST']:this[_0x30ccdb(0x16e)](_0x101772);break;case _0x3fdbca[_0x30ccdb(0x1ce)]:this[_0x30ccdb(0x1c3)](_0x101772);break;case _0x3fdbca['LIVESHARE_TERMINATE']:this[_0x30ccdb(0x161)]();break;case _0x3fdbca[_0x30ccdb(0x1b9)]:this[_0x30ccdb(0x150)](_0x101772);break;}}));}[_0x222f49(0x183)](){const _0xecb64a=_0x222f49;this[_0xecb64a(0x148)][_0xecb64a(0x199)]({'eventID':_0x3fdbca[_0xecb64a(0x196)],'data':{'unitID':this[_0xecb64a(0x194)],'userID':this['_collabSession'][_0xecb64a(0x18d)]()}},this['_unitID']);}[_0x222f49(0x14d)](){const _0x3adab4=_0x222f49;this[_0x3adab4(0x18f)]===_0x3adab4(0x191)&&(this[_0x3adab4(0x1ba)][_0x3adab4(0x160)](_0x3adab4(0x157)),this[_0x3adab4(0x148)][_0x3adab4(0x199)]({'eventID':_0x3fdbca[_0x3adab4(0x190)],'data':{'unitID':this[_0x3adab4(0x194)]}},this[_0x3adab4(0x194)]));}['startFollowing'](){const _0x2310ca=_0x222f49;this[_0x2310ca(0x18f)]===_0x2310ca(0x1b6)&&(this[_0x2310ca(0x1ba)][_0x2310ca(0x160)](_0x2310ca(0x1e5)),this['_startFollowing']());}[_0x222f49(0x1ca)](){const _0x19ea8e=_0x222f49;this[_0x19ea8e(0x18f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x76a257){const _0x341b8f=_0x222f49,{presenter:_0x4ad5b6}=_0x76a257[_0x341b8f(0x1a6)],_0x25dc34=this[_0x341b8f(0x148)]['getMemberID']();this[_0x341b8f(0x1ae)]=_0x4ad5b6,_0x4ad5b6===_0x25dc34?(this[_0x341b8f(0x174)](),this[_0x341b8f(0x16b)]()):this[_0x341b8f(0x18f)]!==_0x341b8f(0x1b6)&&(this[_0x341b8f(0x17d)](),this[_0x341b8f(0x1c1)]());}[_0x222f49(0x186)](){const _0x421f73=_0x222f49,_0x313e07={'eventID':_0x3fdbca[_0x421f73(0x1db)]};this[_0x421f73(0x148)][_0x421f73(0x199)](_0x313e07,this[_0x421f73(0x194)]);}[_0x222f49(0x161)](){const _0x31376e=_0x222f49;this['_presenter']=null,this[_0x31376e(0x18f)]!==_0x31376e(0x191)&&this[_0x31376e(0x17e)]();}[_0x222f49(0x150)](_0x2445a7){const _0xd6ccef=_0x222f49;if(this[_0xd6ccef(0x18f)]===_0xd6ccef(0x1e5)&&this['_presenter']===_0x2445a7[_0xd6ccef(0x1a6)][_0xd6ccef(0x1d0)]){const _0x2a70b8=_0xce55e(_0x2445a7[_0xd6ccef(0x1a6)])[_0xd6ccef(0x18b)]['reverse']()[_0xd6ccef(0x18e)](_0x1895ae=>_0x1895ae['id']===_0x4c0766['id']);if(_0x2a70b8){const _0x106314=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x187)],_0x2a00ad=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x1d5)]['id'];setTimeout(()=>{const _0x2d47f4=_0xd6ccef;this[_0x2d47f4(0x146)]['executeCommand'](_0x18f1ca['id'],{'unitId':_0x106314,'subUnitId':_0x2a00ad},{'fromCollab':!0x0});});}}}[_0x222f49(0x16b)](){const _0x1da092=_0x222f49;this['_status$']['next'](_0x1da092(0x191));const _0x1c14f5=new Map(),_0x22e09f=this[_0x1da092(0x192)]=new _0x4c5763();_0x22e09f[_0x1da092(0x17a)](_0x5b056a(()=>{const _0x39874f=_0x1da092;_0x1c14f5['forEach'](_0x2dc096=>_0x2dc096[_0x39874f(0x184)]()),_0x1c14f5[_0x39874f(0x1c8)]();})),_0x22e09f['add'](this[_0x1da092(0x146)][_0x1da092(0x153)](_0x30df92=>{const _0x55d7b1=_0x1da092;var _0x568f82;if(_0x30df92['type']!==_0xf0a1ab['OPERATION']||!this[_0x55d7b1(0x1de)]['shouldShareOperation'](_0x30df92['id']))return;const {id:_0x41face}=_0x30df92;let _0xd38261;_0x1c14f5[_0x55d7b1(0x17c)](_0x41face)?_0xd38261=_0x1c14f5[_0x55d7b1(0x1b1)](_0x41face):(_0xd38261=new _0x535ba9(),_0x1c14f5['set'](_0x41face,_0xd38261),_0xd38261[_0x55d7b1(0x1e3)](_0x5b740f((_0x568f82=this[_0x55d7b1(0x147)]['getConfig'](Ce))!=null?_0x568f82:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57e83b=>{const _0x3d258d=_0x55d7b1;this[_0x3d258d(0x148)][_0x3d258d(0x199)]({'eventID':_0x3fdbca[_0x3d258d(0x1ce)],'data':{'unitID':this[_0x3d258d(0x194)],'operations':{[_0x57e83b['id']]:{'id':_0x57e83b['id'],'params':JSON[_0x3d258d(0x169)](_0x57e83b[_0x3d258d(0x15a)])}}}},this[_0x3d258d(0x194)]);})),_0xd38261[_0x55d7b1(0x160)](_0x30df92);})),this[_0x1da092(0x1de)][_0x1da092(0x1d2)](this[_0x1da092(0x194)])[_0x1da092(0x1cb)](_0x2e6d89=>this[_0x1da092(0x148)]['send']({'eventID':_0x3fdbca['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1da092(0x194)],'operations':{[_0x2e6d89['id']]:{'id':_0x2e6d89['id'],'params':JSON[_0x1da092(0x169)](_0x2e6d89['params'])}}}},this[_0x1da092(0x194)]));}['_stopPresenting'](){const _0x33d525=_0x222f49;var _0x5641cf;this[_0x33d525(0x1ba)][_0x33d525(0x160)](_0x33d525(0x157)),(_0x5641cf=this[_0x33d525(0x192)])==null||_0x5641cf[_0x33d525(0x15e)](),this[_0x33d525(0x192)]=null;}[_0x222f49(0x1c1)](){const _0x1a5c91=_0x222f49;var _0x262734;(_0x262734=this[_0x1a5c91(0x192)])==null||_0x262734['dispose'](),this[_0x1a5c91(0x1ba)][_0x1a5c91(0x160)](_0x1a5c91(0x1e5));}[_0x222f49(0x17e)](){const _0x2c053e=_0x222f49;var _0x319506;this[_0x2c053e(0x1ba)][_0x2c053e(0x160)](_0x2c053e(0x157)),(_0x319506=this[_0x2c053e(0x192)])==null||_0x319506[_0x2c053e(0x15e)](),this[_0x2c053e(0x192)]=null;}[_0x222f49(0x174)](){const _0x586ea4=_0x222f49;var _0x1774b0;this[_0x586ea4(0x1ba)]['next'](_0x586ea4(0x1b6)),(_0x1774b0=this[_0x586ea4(0x192)])==null||_0x1774b0[_0x586ea4(0x15e)]();}[_0x222f49(0x1c3)](_0x201f11){const _0x32fd22=_0x222f49;if([_0x32fd22(0x191),_0x32fd22(0x1b6),_0x32fd22(0x195)][_0x32fd22(0x182)](this[_0x32fd22(0x18f)])||!_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]||_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]===this['_collabSession'][_0x32fd22(0x18d)]())return;this[_0x32fd22(0x18f)]===_0x32fd22(0x157)&&this[_0x32fd22(0x1c1)]();const _0x3f981c=_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x15d)];Object[_0x32fd22(0x171)](_0x3f981c)[_0x32fd22(0x1cb)](_0x195b3c=>{const _0x4d97ac=_0x32fd22;this[_0x4d97ac(0x146)]['executeCommand'](_0x195b3c['id'],_0x195b3c['params']?JSON[_0x4d97ac(0x1d1)](_0x195b3c[_0x4d97ac(0x15a)]):null,{'fromCollab':!0x0});});}[_0x222f49(0x16a)](){const _0x117688=_0x222f49;var _0x10c904;this['_status$']['next'](_0x117688(0x195)),(_0x10c904=this[_0x117688(0x192)])==null||_0x10c904[_0x117688(0x15e)]();}[_0x222f49(0x1c7)](){const _0x2daa41=_0x222f49;this[_0x2daa41(0x1ba)][_0x2daa41(0x160)](_0x2daa41(0x157)),this[_0x2daa41(0x186)]();}};N=Y([_(0x2,_0x2a5d23),_(0x3,_0x1482cd(L)),_(0x4,_0x49fbbf)],N);function Le(){const _0x595af5=_0x222f49,_0x1e6a9f=_0xa82e97(S),_0x3d429b=_0xa82e97(_0x42d6a1),_0xad7edf=_0x169040(()=>_0x3d429b[_0x595af5(0x1c2)](_0x2f11e5[_0x595af5(0x167)]),void 0x0,!0x1,[]),[_0x1d0531,_0xf25f]=_0x263a7d(null),[_0x535e52,_0x14cdd5]=_0x263a7d(c[_0x595af5(0x1ab)]),_0x22c6ec=_0x2088ee(null);return _0x5b9c41(()=>(_0xad7edf&&_0x1e6a9f[_0x595af5(0x1dd)](_0xad7edf[_0x595af5(0x1b8)]())[_0x595af5(0x1a5)](_0x39b7e7=>{const _0x49e5e1=_0x595af5;_0xf25f(_0x39b7e7),_0x22c6ec[_0x49e5e1(0x15b)]=_0x39b7e7[_0x49e5e1(0x1d7)][_0x49e5e1(0x1c0)](_0x515ddf=>{_0x14cdd5(_0x515ddf);});}),()=>{const _0x417f1d=_0x595af5;var _0x3c104c;(_0x3c104c=_0x22c6ec[_0x417f1d(0x15b)])==null||_0x3c104c[_0x417f1d(0x1be)](),_0x22c6ec[_0x417f1d(0x15b)]=null;}),[_0xad7edf,_0x1e6a9f]),_0x1d0531?_0x147256(_0x4032fa,{'align':'end','disabled':_0x535e52===c[_0x595af5(0x1b5)],'className':_0x595af5(0x177),'overlay':_0x147256(Re,{'status':_0x535e52,'coordinator':_0x1d0531}),'children':_0x147256('button',{'className':_0x21e998('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x535e52===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x535e52!==c[_0x595af5(0x1b5)]}),'type':_0x595af5(0x18c),'children':_0x147256(W,{'className':_0x595af5(0x193)})})}):null;}function _0x32f8(_0x55cde5,_0x1ba71a){_0x55cde5=_0x55cde5-0x144;const _0x1f9247=_0x1f92();let _0x32f805=_0x1f9247[_0x55cde5];return _0x32f805;}function Re(_0x3ae1e6){const _0x3b8226=_0x222f49,{status:_0x26e94d,coordinator:_0x45f5d3}=_0x3ae1e6;switch(_0x26e94d){case c[_0x3b8226(0x1ab)]:return _0x147256($e,{'coordinator':_0x45f5d3});case c[_0x3b8226(0x1b3)]:return _0x147256(xe,{'coordinator':_0x45f5d3});case c['NOT_FOLLOWING']:return _0x147256(Pe,{'coordinator':_0x45f5d3});case c['OFFLINE']:return _0x147256(Te,{});case c[_0x3b8226(0x159)]:return _0x147256(Ae,{'coordinator':_0x45f5d3});default:return null;}}function $e(_0x1ae728){const _0x13e998=_0x222f49,{coordinator:_0x8df82a}=_0x1ae728;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x13e998(0x1bb),{'className':_0x13e998(0x164),'children':_0x13e998(0x1a2)}),_0x147256(_0x343d1a,{'onClick':()=>_0x8df82a[_0x13e998(0x183)](),'children':'Start'})]});}function _0x1f92(){const _0x24faa7=['sessionStatus$','registerInitialStateReporter','symbol','includes','tryStartPresenting','complete','_collabSessionService','_fetchOperations','unitId','from','LiveShareIcon','_entities','mutations','button','getMemberID','find','_status','LIVESHARE_TERMINATE','presenting','_commandDisposable','univer-size-4','_unitID','offline','LIVESHARE_REQUEST_HOST','Stop\x20presenting','UniverIcon','send','dispose$','colorChannel1','displayName','You\x27are\x20offline.','svg','_reporters','assign','Start\x20following','Present\x20this\x20document','defIds','2431090AlCoHV','then','data','defs','registerSharedOperation','191514hqGhpA','_uiPartsService','IDLE','evenodd','none','_presenter','toString','length','get','4805576DUHMCj','FOLLOWING','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','OFFLINE','not-following','0\x200\x2017\x2017','getUnitId','NEW_CHANGESETS','_status$','div','44118OzvmRD','UNIVER_UNKNOWN','unsubscribe','xlink:href','subscribe','_startFollowing','getCurrentTypeOfUnit$','_handleOperation','_injector','1306485qEEfRE','http://www.w3.org/2000/svg','_handleOnline','clear','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','stopFollowing','forEach','ONLINE','tag','LIVESHARE_OPERATION','9CsyzmS','memberID','parse','getInitialStates','idSuffix','_config','sheet','disposeWithMe','status$','string','live-share.config','map','LIVESHARE_FETCH_OPERATIONS','registerComponent','getLiveShareCoordinator','_liveShareService','1em','414248utlDPT','getOwnPropertyDescriptor','init','pipe','getStatus','following','8698880BtQNUt','onRendered','_commandService','_configService','_collabSession','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','event$','_startLiveShareCoordinator','stopPresenting','currentColor','replace','_handleNewChangeSets','url(#$1','SAME_OPERATION_SHARE_INTERVAL','onCommandExecuted','entries','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','idle','_univerInstanceService','PRESENTING','params','current','univerjs-icon\x20univerjs-icon-','operations','dispose','_init','next','_handleTerminate','shouldShareOperation','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','_sharedOperations','children','UNIVER_SHEET','presenter','stringify','_handleOffline','_startPresenting','random','defineProperty','_handleNewHost','mask','path','values','5NwakGy','35keXnTT','_stopFollowing','live-share-icon','default','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','attrs','setConfig','add','fill','has','_stopPresenting','_beIdle'];_0x1f92=function(){return _0x24faa7;};return _0x1f92();}function xe(_0x3f4462){const _0x1ea643=_0x222f49,{coordinator:_0x28cd24}=_0x3f4462;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x1ea643(0x1bb),{'className':_0x1ea643(0x164),'children':_0x1ea643(0x155)}),_0x147256(_0x343d1a,{'onClick':()=>_0x28cd24[_0x1ea643(0x1ca)](),'children':'Stop\x20following'})]});}function Pe(_0x2f6795){const _0x352649=_0x222f49,{coordinator:_0xc604e7}=_0x2f6795;return _0x5b8e35(_0x48919b,{'children':[_0x147256('div',{'className':_0x352649(0x164),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x147256(_0x343d1a,{'variant':'text','onClick':()=>_0xc604e7['startFollowing'](),'children':_0x352649(0x1a1)})]});}function Ae(_0x51b98b){const _0x29d1db=_0x222f49,{coordinator:_0x5e6b3b}=_0x51b98b;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x29d1db(0x1bb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29d1db(0x149)}),_0x147256(_0x343d1a,{'variant':_0x29d1db(0x176),'onClick':()=>_0x5e6b3b[_0x29d1db(0x14d)](),'children':_0x29d1db(0x197)})]});}function Te(){const _0x4b4bf3=_0x222f49;return _0x147256(_0x48919b,{'children':_0x4b4bf3(0x19d)});}var Fe=Object[_0x222f49(0x1e1)],He=(_0x20a505,_0x2f59a1,_0x699d44,_0x16b8cd)=>{const _0x2585ec=_0x222f49;for(var _0x46b8ab=_0x16b8cd>0x1?void 0x0:_0x16b8cd?Fe(_0x2f59a1,_0x699d44):_0x2f59a1,_0x112c1a=_0x20a505[_0x2585ec(0x1b0)]-0x1,_0xda2f11;_0x112c1a>=0x0;_0x112c1a--)(_0xda2f11=_0x20a505[_0x112c1a])&&(_0x46b8ab=_0xda2f11(_0x46b8ab)||_0x46b8ab);return _0x46b8ab;},A=(_0x345c45,_0x32671f)=>(_0x22e067,_0x3cdb29)=>_0x32671f(_0x22e067,_0x3cdb29,_0x345c45);let m=class extends _0x1a37e7{constructor(_0x9a6efd,_0x6237a1){const _0x81ac34=_0x222f49;super(),this[_0x81ac34(0x1c4)]=_0x9a6efd,this['_uiPartsService']=_0x6237a1,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1764e5=_0x222f49;this['disposeWithMe'](this[_0x1764e5(0x1aa)][_0x1764e5(0x1dc)](_0x504303[_0x1764e5(0x14a)],()=>_0x71c5ea(Le,this['_injector'])));}};m=He([A(0x0,_0x1482cd(_0x4bf49b)),A(0x1,_0x2eb621)],m);const ye=_0x222f49(0x1d9),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x48c8b5,_0x455180,_0x5a5586,_0x858e3b)=>{const _0x19df28=_0x222f49;for(var _0x2c586f=_0x858e3b>0x1?void 0x0:_0x858e3b?Ue(_0x455180,_0x5a5586):_0x455180,_0x294eed=_0x48c8b5[_0x19df28(0x1b0)]-0x1,_0x47e890;_0x294eed>=0x0;_0x294eed--)(_0x47e890=_0x48c8b5[_0x294eed])&&(_0x2c586f=_0x47e890(_0x2c586f)||_0x2c586f);return _0x2c586f;},je=(_0x548104,_0x3aaed5)=>(_0x47e839,_0x4120f6)=>_0x3aaed5(_0x47e839,_0x4120f6,_0x548104);let I=class extends _0x1a37e7{constructor(_0xadd850){const _0x28c989=_0x222f49;super(),this[_0x28c989(0x1de)]=_0xadd850,this['_init']();}[_0x222f49(0x15f)](){[_0x314d69['id'],_0x39a4e2['id'],_0x18f1ca['id']]['forEach'](_0x199093=>{const _0x336415=_0x32f8;this[_0x336415(0x1d6)](this[_0x336415(0x1de)][_0x336415(0x1a8)](_0x199093));});}};I=Ve([je(0x0,_0x1482cd(L))],I);var Me=Object[_0x222f49(0x16d)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x29c7a9,_0x17ca98,_0x2b7853)=>_0x17ca98 in _0x29c7a9?Me(_0x29c7a9,_0x17ca98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7853}):_0x29c7a9[_0x17ca98]=_0x2b7853,We=(_0x38eeed,_0x3313d7,_0x434e0e,_0x20d09e)=>{for(var _0x504ce3=_0x20d09e>0x1?void 0x0:_0x20d09e?ke(_0x3313d7,_0x434e0e):_0x3313d7,_0x587640=_0x38eeed['length']-0x1,_0x3c295e;_0x587640>=0x0;_0x587640--)(_0x3c295e=_0x38eeed[_0x587640])&&(_0x504ce3=_0x3c295e(_0x504ce3)||_0x504ce3);return _0x504ce3;},F=(_0x35ea2f,_0x237888)=>(_0x5e6ad6,_0x39b551)=>_0x237888(_0x5e6ad6,_0x39b551,_0x35ea2f),B=(_0x571cb2,_0x2a52ed,_0x12a363)=>Ge(_0x571cb2,typeof _0x2a52ed!=_0x222f49(0x181)?_0x2a52ed+'':_0x2a52ed,_0x12a363);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4a80e3{constructor(_0x1633e6=T,_0x7597c4,_0xa2ad7){const _0xda0e29=_0x222f49;super(),this[_0xda0e29(0x1d4)]=_0x1633e6,this[_0xda0e29(0x1c4)]=_0x7597c4,this[_0xda0e29(0x147)]=_0xa2ad7;const {..._0x52fa98}=_0x20b0c5({},T,this[_0xda0e29(0x1d4)]);this[_0xda0e29(0x147)][_0xda0e29(0x179)](ye,_0x52fa98);}['onStarting'](){const _0x1c1aeb=_0x222f49;_0x3e3410(this[_0x1c1aeb(0x1c4)],_0x443e96([[L],[S],[I],[m]],this[_0x1c1aeb(0x1d4)]['override'])),_0xd36313(this[_0x1c1aeb(0x1c4)],[[I]]);}[_0x222f49(0x145)](){const _0x16c20a=_0x222f49;_0xd36313(this[_0x16c20a(0x1c4)],[[m]]);}};B(b,'type',_0x2f11e5[_0x222f49(0x1bd)]),B(b,'pluginName',Ye),b=We([_0xa62d83(_0x2aafaa),F(0x1,_0x1482cd(_0x4bf49b)),F(0x2,_0x2a5d23)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x444e(_0x5b00e4,_0x18af70){_0x5b00e4=_0x5b00e4-0x10d;const _0x38771f=_0x3877();let _0x444e21=_0x38771f[_0x5b00e4];return _0x444e21;}const _0x54c981=_0x444e;(function(_0xc59aa2,_0x39ffba){const _0x12ac38=_0x444e,_0x4eb295=_0xc59aa2();while(!![]){try{const _0x416e9a=-parseInt(_0x12ac38(0x11c))/0x1*(-parseInt(_0x12ac38(0x10f))/0x2)+parseInt(_0x12ac38(0x117))/0x3+-parseInt(_0x12ac38(0x123))/0x4*(-parseInt(_0x12ac38(0x116))/0x5)+-parseInt(_0x12ac38(0x11f))/0x6+parseInt(_0x12ac38(0x124))/0x7+-parseInt(_0x12ac38(0x128))/0x8+parseInt(_0x12ac38(0x118))/0x9*(-parseInt(_0x12ac38(0x11e))/0xa);if(_0x416e9a===_0x39ffba)break;else _0x4eb295['push'](_0x4eb295['shift']());}catch(_0x4e0303){_0x4eb295['push'](_0x4eb295['shift']());}}}(_0x3877,0x56e21));function _0x3877(){const _0x1b3c58=['_initialize','getLiveShareStatus','1212010hNFTqt','1303797LFTsoo','23445SGGvjk','symbol','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_liveShareController','1uekMXw','defineProperty','4790JoZRzM','533358KHFpVA','_injector','IDLE','getStatus','8IEaTEO','4153870pwfEVI','extend','stopFollowing','startPresenting','3821096xiQrBQ','get','LiveShareStatusEnum','getLiveShareCoordinatorSync','1314770jPHxmf','UNIVER_SHEET','getCurrentUnitOfType','getUnitId','No\x20active\x20workbook\x20found.'];_0x3877=function(){return _0x1b3c58;};return _0x3877();}var l=Object[_0x54c981(0x11d)],w=(_0x195cd0,_0x24ec47,_0x2b8886)=>_0x24ec47 in _0x195cd0?l(_0x195cd0,_0x24ec47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b8886}):_0x195cd0[_0x24ec47]=_0x2b8886,v=(_0x4c90aa,_0x316d83,_0x3b5ab5)=>w(_0x4c90aa,typeof _0x316d83!=_0x54c981(0x119)?_0x316d83+'':_0x316d83,_0x3b5ab5);import{LiveShareController as _0x46bc90,LiveShareStatus as _0x2c9730}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x309931,UniverInstanceType as _0x3d59ca}from'@univerjs/core';import{FUniver as _0x5bd508,FEnum as _0x4dc371}from'@univerjs/core/facade';class g extends _0x5bd508{constructor(){const _0x3118fe=_0x54c981;super(...arguments),v(this,_0x3118fe(0x11b));}[_0x54c981(0x114)](_0x260b8a){const _0x3528fa=_0x54c981;this[_0x3528fa(0x11b)]=_0x260b8a[_0x3528fa(0x129)](_0x46bc90);}[_0x54c981(0x115)](){const _0x5011c1=_0x54c981;var _0x226e95;const _0x2bb8df=this['_injector'][_0x5011c1(0x129)](_0x309931)['getCurrentUnitOfType'](_0x3d59ca['UNIVER_SHEET']);if(!_0x2bb8df)throw new Error('No\x20active\x20workbook\x20found.');const _0x8281dc=_0x2bb8df[_0x5011c1(0x112)](),_0x2d1544=this['_liveShareController'][_0x5011c1(0x10e)](_0x8281dc);return(_0x226e95=_0x2d1544==null?void 0x0:_0x2d1544[_0x5011c1(0x122)]())!=null?_0x226e95:_0x2c9730[_0x5011c1(0x121)];}['startFollowing'](){const _0xc89cbf=_0x54c981,_0x4a0e4f=this[_0xc89cbf(0x120)][_0xc89cbf(0x129)](_0x309931)[_0xc89cbf(0x111)](_0x3d59ca[_0xc89cbf(0x110)]);if(!_0x4a0e4f)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dc35d=_0x4a0e4f[_0xc89cbf(0x112)](),_0x6e6444=this[_0xc89cbf(0x11b)]['getLiveShareCoordinatorSync'](_0x4dc35d);if(!_0x6e6444)throw new Error(_0xc89cbf(0x11a));_0x6e6444['startFollowing']();}[_0x54c981(0x126)](){const _0x36fdcc=_0x54c981,_0xb8bd34=this[_0x36fdcc(0x120)][_0x36fdcc(0x129)](_0x309931)[_0x36fdcc(0x111)](_0x3d59ca[_0x36fdcc(0x110)]);if(!_0xb8bd34)throw new Error(_0x36fdcc(0x113));const _0x4843b4=_0xb8bd34[_0x36fdcc(0x112)](),_0x3425aa=this[_0x36fdcc(0x11b)]['getLiveShareCoordinatorSync'](_0x4843b4);if(!_0x3425aa)throw new Error(_0x36fdcc(0x11a));_0x3425aa['stopFollowing']();}[_0x54c981(0x127)](){const _0x28a4d3=_0x54c981,_0x2fd82d=this[_0x28a4d3(0x120)][_0x28a4d3(0x129)](_0x309931)[_0x28a4d3(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x2fd82d)throw new Error(_0x28a4d3(0x113));const _0x514bcb=_0x2fd82d[_0x28a4d3(0x112)](),_0x40a050=this['_liveShareController'][_0x28a4d3(0x10e)](_0x514bcb);if(!_0x40a050)throw new Error(_0x28a4d3(0x11a));_0x40a050['tryStartPresenting']();}['stopPresenting'](){const _0x2f236d=_0x54c981,_0x49557a=this[_0x2f236d(0x120)][_0x2f236d(0x129)](_0x309931)[_0x2f236d(0x111)](_0x3d59ca['UNIVER_SHEET']);if(!_0x49557a)throw new Error(_0x2f236d(0x113));const _0x307c58=_0x49557a['getUnitId'](),_0x1b93a2=this[_0x2f236d(0x11b)][_0x2f236d(0x10e)](_0x307c58);if(!_0x1b93a2)throw new Error(_0x2f236d(0x11a));_0x1b93a2['stopPresenting']();}}_0x5bd508[_0x54c981(0x125)](g);class f extends _0x4dc371{get[_0x54c981(0x10d)](){return _0x2c9730;}}_0x4dc371[_0x54c981(0x125)](f);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3161ce=_0x5432;(function(_0xe9e216,_0x499a4b){const _0x2cd15d=_0x5432,_0x5f2cb6=_0xe9e216();while(!![]){try{const _0x507ac7=-parseInt(_0x2cd15d(0x117))/0x1*(parseInt(_0x2cd15d(0xbe))/0x2)+-parseInt(_0x2cd15d(0xf5))/0x3*(-parseInt(_0x2cd15d(0xc6))/0x4)+-parseInt(_0x2cd15d(0xec))/0x5+parseInt(_0x2cd15d(0xd3))/0x6+-parseInt(_0x2cd15d(0xfb))/0x7*(-parseInt(_0x2cd15d(0xf9))/0x8)+-parseInt(_0x2cd15d(0x122))/0x9*(parseInt(_0x2cd15d(0xf7))/0xa)+-parseInt(_0x2cd15d(0xab))/0xb*(-parseInt(_0x2cd15d(0x116))/0xc);if(_0x507ac7===_0x499a4b)break;else _0x5f2cb6['push'](_0x5f2cb6['shift']());}catch(_0x30b8b4){_0x5f2cb6['push'](_0x5f2cb6['shift']());}}}(_0x8a2f,0x26dfa));var J=Object[_0x3161ce(0xc9)],K=(_0x3b3c27,_0x63425f,_0x32df1a)=>_0x63425f in _0x3b3c27?J(_0x3b3c27,_0x63425f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32df1a}):_0x3b3c27[_0x63425f]=_0x32df1a,u=(_0x247481,_0x5cbac4,_0x55545c)=>K(_0x247481,typeof _0x5cbac4!=_0x3161ce(0xaf)?_0x5cbac4+'':_0x5cbac4,_0x55545c);import{Disposable as _0x38683d,toDisposable as _0x145942,IUniverInstanceService as _0x3f7773,Inject as _0x14252a,Injector as _0x5e11ad,IConfigService as _0x2b6132,ICommandService as _0x5327ed,RxDisposable as _0x2c7418,UniverInstanceType as _0x3d3727,DisposableCollection as _0x274dd9,CommandType as _0x3db63d,DependentOn as _0x10d5a5,Plugin as _0x1104c7,merge as _0x204de3,registerDependencies as _0x149c15,mergeOverrideWithDependencies as _0x2f3879,touchDependencies as _0xcdf2ee}from'@univerjs/core';import{useDependency as _0x2e8a9e,useObservable as _0x76447,IUIPartsService as _0x3fa8c9,BuiltInUIPart as _0x5f0230,connectInjector as _0x4c8d2a}from'@univerjs/ui';import{jsx as _0x525ba2,jsxs as _0x40011d,Fragment as _0x52ab07}from'react/jsx-runtime';import{Dropdown as _0x3fbb2d,clsx as _0x5ab19b,Button as _0x4174df}from'@univerjs/design';import{useRef as _0x2753f6,createElement as _0x5e5e58,forwardRef as _0x1a7ba8,useState as _0x3039b2,useEffect as _0x4dcff2}from'react';import{CollaborationEvent as _0x1c8be3,parseProtocolChangeset as _0x44e6c4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x383e89,SessionStatus as _0x1b3f3b,UniverCollaborationClientPlugin as _0x145b3d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x33dc4d,SetWorksheetActiveOperation as _0x5a80bb}from'@univerjs/sheets';import{BehaviorSubject as _0x4ab38a,Subject as _0x104484}from'rxjs';import{takeUntil as _0x5e9ba,throttleTime as _0x496b70}from'rxjs/operators';import{SetZoomRatioOperation as _0xefd7a1,SetScrollOperation as _0x592fec}from'@univerjs/sheets-ui';function k({ref:_0x2d4af4,..._0x3b49ca}){const _0x45878c=_0x3161ce,{icon:_0x458afc,id:_0x5e20ab,className:_0x3598fc,extend:_0x3ba1cf,..._0x401adf}=_0x3b49ca,_0x4496b0=(_0x45878c(0xbf)+_0x5e20ab+'\x20'+(_0x3598fc||''))[_0x45878c(0xb4)](),_0x42a0cb=_0x2753f6('_'+Oe());return G(_0x458afc,''+_0x5e20ab,{'defIds':_0x458afc[_0x45878c(0x11e)],'idSuffix':_0x42a0cb['current']},{'ref':_0x2d4af4,'className':_0x4496b0,..._0x401adf},_0x3ba1cf);}function G(_0x406940,_0x158976,_0x426cbb,_0x5bf2d5,_0x23ed99){const _0x17347d=_0x3161ce;return _0x5e5e58(_0x406940[_0x17347d(0x108)],{'key':_0x158976,...be(_0x406940,_0x426cbb,_0x23ed99),..._0x5bf2d5},(Ee(_0x406940,_0x426cbb)[_0x17347d(0x124)]||[])['map']((_0x205edb,_0x493923)=>G(_0x205edb,_0x158976+'-'+_0x406940[_0x17347d(0x108)]+'-'+_0x493923,_0x426cbb,void 0x0,_0x23ed99)));}function be(_0x5b1ba0,_0x1e16d0,_0x5d9f5e){const _0x5bd510=_0x3161ce,_0x418bc5={..._0x5b1ba0[_0x5bd510(0xb0)]};_0x5d9f5e!=null&&_0x5d9f5e[_0x5bd510(0xa4)]&&_0x418bc5[_0x5bd510(0xe3)]===_0x5bd510(0xa4)&&(_0x418bc5[_0x5bd510(0xe3)]=_0x5d9f5e['colorChannel1']),_0x5b1ba0[_0x5bd510(0x108)]===_0x5bd510(0xf1)&&_0x418bc5['id']&&(_0x418bc5['id']=_0x418bc5['id']+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)[_0x5bd510(0xe6)](([_0x39f393,_0x43a80a])=>{const _0x57ed7a=_0x5bd510;_0x39f393===_0x57ed7a(0xf1)&&typeof _0x43a80a==_0x57ed7a(0xb3)&&(_0x418bc5[_0x39f393]=_0x43a80a[_0x57ed7a(0x133)](/url\(#(.*)\)/,_0x57ed7a(0x101)+_0x1e16d0[_0x57ed7a(0xcb)]+')'));});const {defIds:_0xeeb102}=_0x1e16d0;return!_0xeeb102||_0xeeb102[_0x5bd510(0xe7)]===0x0||(_0x5b1ba0[_0x5bd510(0x108)]==='use'&&_0x418bc5[_0x5bd510(0xc4)]&&(_0x418bc5[_0x5bd510(0xc4)]=_0x418bc5[_0x5bd510(0xc4)]+_0x1e16d0[_0x5bd510(0xcb)]),Object[_0x5bd510(0xeb)](_0x418bc5)['forEach'](([_0x2bf6e9,_0x239423])=>{const _0x5ee2e3=_0x5bd510;typeof _0x239423==_0x5ee2e3(0xb3)&&(_0x418bc5[_0x2bf6e9]=_0x239423[_0x5ee2e3(0x133)](/url\(#(.*)\)/,_0x5ee2e3(0x101)+_0x1e16d0[_0x5ee2e3(0xcb)]+')'));})),_0x418bc5;}function Ee(_0x1a5601,_0xfc905a){const _0x37f846=_0x3161ce;var _0x3ca25d;const {defIds:_0x2d6e11}=_0xfc905a;return!_0x2d6e11||_0x2d6e11['length']===0x0?_0x1a5601:_0x1a5601[_0x37f846(0x108)]===_0x37f846(0xef)&&((_0x3ca25d=_0x1a5601[_0x37f846(0x124)])!=null&&_0x3ca25d[_0x37f846(0xe7)])?{..._0x1a5601,'children':_0x1a5601['children'][_0x37f846(0x11b)](_0x2a2fdd=>typeof _0x2a2fdd[_0x37f846(0xb0)]['id']=='string'&&_0x2d6e11&&_0x2d6e11[_0x37f846(0xfa)](_0x2a2fdd[_0x37f846(0xb0)]['id'])?{..._0x2a2fdd,'attrs':{..._0x2a2fdd['attrs'],'id':_0x2a2fdd['attrs']['id']+_0xfc905a['idSuffix']}}:_0x2a2fdd)}:_0x1a5601;}function Oe(){const _0x1f12c3=_0x3161ce;return Math['random']()[_0x1f12c3(0xad)](0x24)['substring'](0x2,0x8);}k[_0x3161ce(0xe9)]=_0x3161ce(0xf0);const we={'tag':_0x3161ce(0xc0),'attrs':{'xmlns':_0x3161ce(0x13e),'fill':_0x3161ce(0xdd),'viewBox':_0x3161ce(0x110),'width':_0x3161ce(0x123),'height':_0x3161ce(0x123)},'children':[{'tag':_0x3161ce(0x139),'attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0x105)}},{'tag':'path','attrs':{'fill':_0x3161ce(0x12b),'d':_0x3161ce(0xa2),'fillRule':_0x3161ce(0xdc),'clipRule':_0x3161ce(0xdc)}}]},W=_0x1a7ba8(function(_0x12ee0d,_0x7b928a){const _0x32c9ee=_0x3161ce;return _0x5e5e58(k,Object[_0x32c9ee(0x134)]({},_0x12ee0d,{'id':_0x32c9ee(0x10c),'ref':_0x7b928a,'icon':we}));});W[_0x3161ce(0xe9)]='LiveShareIcon';function _0x8a2f(){const _0x398be8=['_handleTerminate','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','text','colorChannel1','_liveShareService','idle','presenting','LIVESHARE_NEW_HOST','Start\x20following','operations','724361AUozCJ','onStarting','toString','_handleOperation','symbol','attrs','getUnitId','clear','string','trim','LIVESHARE_REQUEST_HOST','default','complete','_stopPresenting','_commandDisposable','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_startFollowing','2DOwmlt','univerjs-icon\x20univerjs-icon-','svg','mutations','offline','_entities','xlink:href','init','12xgGBEI','_collabSession','_presenter','defineProperty','FOLLOWING','idSuffix','end','_collabSessionService','_configService','_injector','tryStartPresenting','IDLE','set','715050YjcYFt','next','following','_univerInstanceService','LIVESHARE_TERMINATE','getLiveShareCoordinatorSync','dispose','stringify','shouldShareOperation','evenodd','none','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_status','UNIVER_SHEET','_startLiveShareCoordinator','fill','OFFLINE','_handleNewChangeSets','forEach','length','not-following','displayName','disposeWithMe','entries','646655nksKQA','override','button','defs','UniverIcon','mask','getLiveShareCoordinator','LIVESHARE_OPERATION','unitId','51999RvDGbx','registerInitialStateReporter','210QSNMya','subscribe','317256RLTpbM','includes','42rgUQmW','_mountLiveShare','send','getStatus','registerSharedOperation','_beIdle','url(#$1','SAME_OPERATION_SHARE_INTERVAL','_unitID','add','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getOwnPropertyDescriptor','You\x27re\x20not\x20following\x20the\x20presenter','tag','then','data','get','live-share-icon','_config','_startPresenting','requireSession','0\x200\x2017\x2017','Present\x20this\x20document','delete','pipe','live-share.config','UNIVER_UNKNOWN','36pzJEsh','309271NRrfUu','event$','params','PRESENTING','map','_handleNewHost','type','defIds','NOT_FOLLOWING','_status$','_sharedOperations','3789BtNkGm','1em','children','LIVESHARE_FETCH_OPERATIONS','getConfig','_reporters','getValue','UNIVER_LIVE_SHARE_PLUGIN','_init','currentColor','Start','_handleOnline','Stop\x20following','executeCommand','getTypeOfUnitAdded$','ONLINE','setConfig','replace','assign','current','getMemberID','stopFollowing','You\x27are\x20offline.','path','_stopFollowing','div','NEW_CHANGESETS','_fetchOperations','http://www.w3.org/2000/svg','onRendered','registerComponent','stopPresenting','startFollowing','_commandService','_handleOffline','status$','values','_uiPartsService','dispose$','OPERATION','has'];_0x8a2f=function(){return _0x398be8;};return _0x8a2f();}class L extends _0x38683d{constructor(){const _0x1c4487=_0x3161ce;super(...arguments),u(this,_0x1c4487(0x121),new Set()),u(this,'_reporters',new Set());}[_0x3161ce(0xff)](_0x162192){const _0xc0a628=_0x3161ce;return this['_sharedOperations'][_0xc0a628(0x104)](_0x162192),_0x145942(()=>this[_0xc0a628(0x121)]['delete'](_0x162192));}[_0x3161ce(0xf6)](_0x2347e5){const _0x76d00=_0x3161ce;return this['_reporters'][_0x76d00(0x104)](_0x2347e5),_0x145942(()=>this[_0x76d00(0x127)][_0x76d00(0x112)](_0x2347e5));}[_0x3161ce(0xdb)](_0x3a5ab1){const _0x3218b1=_0x3161ce;return this['_sharedOperations'][_0x3218b1(0xa0)](_0x3a5ab1);}[_0x3161ce(0xbc)](_0x63ba77){const _0x1a5131=_0x3161ce;return Array['from'](this['_reporters'])[_0x1a5131(0x11b)](_0x36dc6d=>_0x36dc6d(_0x63ba77));}}var Ne=Object[_0x3161ce(0x106)],Y=(_0xa22727,_0x2a249d,_0x66f8b7,_0x2502c3)=>{const _0x141347=_0x3161ce;for(var _0x376df6=_0x2502c3>0x1?void 0x0:_0x2502c3?Ne(_0x2a249d,_0x66f8b7):_0x2a249d,_0x49605b=_0xa22727[_0x141347(0xe7)]-0x1,_0x6ed335;_0x49605b>=0x0;_0x49605b--)(_0x6ed335=_0xa22727[_0x49605b])&&(_0x376df6=_0x6ed335(_0x376df6)||_0x376df6);return _0x376df6;},_=(_0x41fccc,_0x132676)=>(_0x4bf7fd,_0x479861)=>_0x132676(_0x4bf7fd,_0x479861,_0x41fccc);let S=class extends _0x2c7418{constructor(_0x1d8880,_0x4056e7,_0x5f2174){const _0x33897e=_0x3161ce;super(),u(this,_0x33897e(0xc3),new Map()),(this[_0x33897e(0xd6)]=_0x1d8880,this[_0x33897e(0xcf)]=_0x4056e7,this[_0x33897e(0xcd)]=_0x5f2174,this[_0x33897e(0x12a)]());}async['getLiveShareCoordinator'](_0x2d99bd){const _0x45b2a8=_0x3161ce;return this[_0x45b2a8(0xc3)]['has'](_0x2d99bd)||await this['_startLiveShareCoordinator'](_0x2d99bd),this[_0x45b2a8(0xc3)][_0x45b2a8(0x10b)](_0x2d99bd);}[_0x3161ce(0xd8)](_0x5da28a){const _0x52841c=_0x3161ce;var _0x5e24b0;return(_0x5e24b0=this[_0x52841c(0xc3)][_0x52841c(0x10b)](_0x5da28a))!=null?_0x5e24b0:null;}[_0x3161ce(0x12a)](){const _0x544ac1=_0x3161ce;this[_0x544ac1(0xd6)][_0x544ac1(0x130)](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](async _0x552a4b=>{const _0x55622b=_0x544ac1,_0x145531=_0x552a4b['getUnitId']();this[_0x55622b(0xc3)][_0x55622b(0xa0)](_0x145531)||this[_0x55622b(0xe2)](_0x145531);}),this[_0x544ac1(0xd6)]['getTypeOfUnitDisposed$'](_0x3d3727[_0x544ac1(0xe1)])[_0x544ac1(0x113)](_0x5e9ba(this[_0x544ac1(0x9e)]))['subscribe'](_0x5cec92=>{const _0x2793c1=_0x544ac1,_0x18c72b=_0x5cec92['getUnitId'](),_0x3ab835=this['_entities'][_0x2793c1(0x10b)](_0x18c72b);_0x3ab835==null||_0x3ab835[_0x2793c1(0xd9)]();});}async[_0x3161ce(0xe2)](_0x2ff801){const _0x5214b7=_0x3161ce,_0x18a8ba=await this['_collabSessionService'][_0x5214b7(0x10f)](_0x2ff801),_0x5f5c3c=this[_0x5214b7(0xcf)]['createInstance'](N,_0x2ff801,_0x18a8ba);return _0x5f5c3c[_0x5214b7(0xc5)](),this[_0x5214b7(0xc3)][_0x5214b7(0xd2)](_0x2ff801,_0x5f5c3c),_0x5f5c3c;}};S=Y([_(0x0,_0x3f7773),_(0x1,_0x14252a(_0x5e11ad)),_(0x2,_0x14252a(_0x383e89))],S);var c=(_0x1405aa=>(_0x1405aa[_0x3161ce(0xe4)]=_0x3161ce(0xc2),_0x1405aa[_0x3161ce(0xd1)]=_0x3161ce(0xa6),_0x1405aa[_0x3161ce(0xca)]=_0x3161ce(0xd5),_0x1405aa[_0x3161ce(0x11f)]='not-following',_0x1405aa['PRESENTING']=_0x3161ce(0xa7),_0x1405aa))(c||{});const Ce=_0x3161ce(0x102),De=0xc8;let N=class extends _0x2c7418{constructor(_0x475055,_0x27523b,_0x4cd19f,_0x1c7a91,_0x58b56b){const _0x26120d=_0x3161ce;super(),u(this,'_status$',new _0x4ab38a(_0x26120d(0xa6))),u(this,_0x26120d(0x9b),this[_0x26120d(0x120)]['asObservable']()),u(this,'_init',!0x1),u(this,_0x26120d(0xb9),null),u(this,_0x26120d(0xc8),null),(this[_0x26120d(0x103)]=_0x475055,this[_0x26120d(0xc7)]=_0x27523b,this['_configService']=_0x4cd19f,this['_liveShareService']=_0x1c7a91,this[_0x26120d(0x99)]=_0x58b56b);}get['_status'](){const _0x37439b=_0x3161ce;return this['_status$'][_0x37439b(0x128)]();}[_0x3161ce(0xd9)](){const _0x4f56cc=_0x3161ce;var _0x1718ff;(_0x1718ff=this['_commandDisposable'])==null||_0x1718ff[_0x4f56cc(0xd9)](),this[_0x4f56cc(0x120)][_0x4f56cc(0xd4)](_0x4f56cc(0xa6)),this[_0x4f56cc(0x120)][_0x4f56cc(0xb7)]();}[_0x3161ce(0xfe)](){const _0x4923e0=_0x3161ce;return this[_0x4923e0(0xe0)];}[_0x3161ce(0xc5)](){const _0x2f9775=_0x3161ce;this[_0x2f9775(0x12a)]||(this[_0x2f9775(0x12a)]=!0x0,this[_0x2f9775(0xc7)]['sessionStatus$'][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))['subscribe'](_0x5ab8ef=>{const _0x3301f5=_0x2f9775;switch(_0x5ab8ef){case _0x1b3f3b[_0x3301f5(0xe4)]:this[_0x3301f5(0x9a)]();break;case _0x1b3f3b[_0x3301f5(0x131)]:this[_0x3301f5(0x12d)]();break;}}),this[_0x2f9775(0xc7)][_0x2f9775(0x118)][_0x2f9775(0x113)](_0x5e9ba(this[_0x2f9775(0x9e)]))[_0x2f9775(0xf8)](_0x2bfdc5=>{const _0x3d0c52=_0x2f9775,{eventID:_0x5ae880}=_0x2bfdc5;switch(_0x5ae880){case _0x1c8be3[_0x3d0c52(0xa8)]:this['_handleNewHost'](_0x2bfdc5);break;case _0x1c8be3[_0x3d0c52(0xf3)]:this[_0x3d0c52(0xae)](_0x2bfdc5);break;case _0x1c8be3['LIVESHARE_TERMINATE']:this[_0x3d0c52(0xa1)]();break;case _0x1c8be3[_0x3d0c52(0x13c)]:this[_0x3d0c52(0xe5)](_0x2bfdc5);break;}}));}[_0x3161ce(0xd0)](){const _0x5178e5=_0x3161ce;this['_collabSession'][_0x5178e5(0xfd)]({'eventID':_0x1c8be3[_0x5178e5(0xb5)],'data':{'unitID':this[_0x5178e5(0x103)],'userID':this[_0x5178e5(0xc7)][_0x5178e5(0x136)]()}},this[_0x5178e5(0x103)]);}[_0x3161ce(0x141)](){const _0x2022bb=_0x3161ce;this[_0x2022bb(0xe0)]===_0x2022bb(0xa7)&&(this[_0x2022bb(0x120)]['next']('idle'),this[_0x2022bb(0xc7)][_0x2022bb(0xfd)]({'eventID':_0x1c8be3[_0x2022bb(0xd7)],'data':{'unitID':this['_unitID']}},this[_0x2022bb(0x103)]));}[_0x3161ce(0x98)](){const _0x2b9b04=_0x3161ce;this[_0x2b9b04(0xe0)]==='not-following'&&(this[_0x2b9b04(0x120)][_0x2b9b04(0xd4)](_0x2b9b04(0xd5)),this[_0x2b9b04(0xbd)]());}[_0x3161ce(0x137)](){const _0x4b9398=_0x3161ce;this[_0x4b9398(0xe0)]===_0x4b9398(0xd5)&&this[_0x4b9398(0x13a)]();}[_0x3161ce(0x11c)](_0x19be9a){const _0x141f26=_0x3161ce,{presenter:_0x548e36}=_0x19be9a[_0x141f26(0x10a)],_0x32cd5e=this[_0x141f26(0xc7)]['getMemberID']();this[_0x141f26(0xc8)]=_0x548e36,_0x548e36===_0x32cd5e?(this[_0x141f26(0x13a)](),this[_0x141f26(0x10e)]()):this['_status']!==_0x141f26(0xe8)&&(this['_stopPresenting'](),this[_0x141f26(0xbd)]());}[_0x3161ce(0x13d)](){const _0x3af3ba=_0x3161ce,_0x1cb094={'eventID':_0x1c8be3[_0x3af3ba(0x125)]};this['_collabSession']['send'](_0x1cb094,this['_unitID']);}[_0x3161ce(0xa1)](){const _0x27b875=_0x3161ce;this[_0x27b875(0xc8)]=null,this['_status']!==_0x27b875(0xa7)&&this[_0x27b875(0x100)]();}[_0x3161ce(0xe5)](_0x4d2222){const _0x3ba348=_0x3161ce;if(this[_0x3ba348(0xe0)]==='following'&&this[_0x3ba348(0xc8)]===_0x4d2222[_0x3ba348(0x10a)]['memberID']){const _0x10f8c3=_0x44e6c4(_0x4d2222['data'])[_0x3ba348(0xc1)]['reverse']()['find'](_0x2922b4=>_0x2922b4['id']===_0x33dc4d['id']);if(_0x10f8c3){const _0x20c598=_0x10f8c3[_0x3ba348(0x119)][_0x3ba348(0xf4)],_0x5b4268=_0x10f8c3[_0x3ba348(0x119)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x5a80bb['id'],{'unitId':_0x20c598,'subUnitId':_0x5b4268},{'fromCollab':!0x0});});}}}[_0x3161ce(0x10e)](){const _0x483c69=_0x3161ce;this[_0x483c69(0x120)][_0x483c69(0xd4)](_0x483c69(0xa7));const _0x417c7f=new Map(),_0x3944d1=this[_0x483c69(0xb9)]=new _0x274dd9();_0x3944d1[_0x483c69(0x104)](_0x145942(()=>{const _0x3a7038=_0x483c69;_0x417c7f[_0x3a7038(0xe6)](_0x59aec9=>_0x59aec9[_0x3a7038(0xb7)]()),_0x417c7f[_0x3a7038(0xb2)]();})),_0x3944d1[_0x483c69(0x104)](this[_0x483c69(0x99)]['onCommandExecuted'](_0x54775e=>{const _0x4a2a9e=_0x483c69;var _0x600c72;if(_0x54775e[_0x4a2a9e(0x11d)]!==_0x3db63d[_0x4a2a9e(0x9f)]||!this[_0x4a2a9e(0xa5)][_0x4a2a9e(0xdb)](_0x54775e['id']))return;const {id:_0x390027}=_0x54775e;let _0x20a213;_0x417c7f['has'](_0x390027)?_0x20a213=_0x417c7f['get'](_0x390027):(_0x20a213=new _0x104484(),_0x417c7f['set'](_0x390027,_0x20a213),_0x20a213[_0x4a2a9e(0x113)](_0x496b70((_0x600c72=this['_configService'][_0x4a2a9e(0x126)](Ce))!=null?_0x600c72:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33a46e=>{const _0x26ca0e=_0x4a2a9e;this[_0x26ca0e(0xc7)]['send']({'eventID':_0x1c8be3[_0x26ca0e(0xf3)],'data':{'unitID':this[_0x26ca0e(0x103)],'operations':{[_0x33a46e['id']]:{'id':_0x33a46e['id'],'params':JSON['stringify'](_0x33a46e['params'])}}}},this[_0x26ca0e(0x103)]);})),_0x20a213[_0x4a2a9e(0xd4)](_0x54775e);})),this[_0x483c69(0xa5)][_0x483c69(0xbc)](this[_0x483c69(0x103)])[_0x483c69(0xe6)](_0xda8394=>this[_0x483c69(0xc7)][_0x483c69(0xfd)]({'eventID':_0x1c8be3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x483c69(0x103)],'operations':{[_0xda8394['id']]:{'id':_0xda8394['id'],'params':JSON[_0x483c69(0xda)](_0xda8394[_0x483c69(0x119)])}}}},this[_0x483c69(0x103)]));}[_0x3161ce(0xb8)](){const _0x3d1ce0=_0x3161ce;var _0x2d3082;this[_0x3d1ce0(0x120)]['next'](_0x3d1ce0(0xa6)),(_0x2d3082=this[_0x3d1ce0(0xb9)])==null||_0x2d3082[_0x3d1ce0(0xd9)](),this['_commandDisposable']=null;}[_0x3161ce(0xbd)](){const _0x291e30=_0x3161ce;var _0x2240fa;(_0x2240fa=this[_0x291e30(0xb9)])==null||_0x2240fa[_0x291e30(0xd9)](),this[_0x291e30(0x120)]['next'](_0x291e30(0xd5));}[_0x3161ce(0x100)](){const _0x3876d1=_0x3161ce;var _0x76b030;this[_0x3876d1(0x120)][_0x3876d1(0xd4)](_0x3876d1(0xa6)),(_0x76b030=this['_commandDisposable'])==null||_0x76b030['dispose'](),this[_0x3876d1(0xb9)]=null;}['_stopFollowing'](){const _0x4ccd24=_0x3161ce;var _0x367f51;this[_0x4ccd24(0x120)][_0x4ccd24(0xd4)](_0x4ccd24(0xe8)),(_0x367f51=this[_0x4ccd24(0xb9)])==null||_0x367f51['dispose']();}[_0x3161ce(0xae)](_0x576669){const _0x4fa02c=_0x3161ce;if([_0x4fa02c(0xa7),_0x4fa02c(0xe8),_0x4fa02c(0xc2)]['includes'](this[_0x4fa02c(0xe0)])||!_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xdf)]||_0x576669['data'][_0x4fa02c(0xdf)]===this[_0x4fa02c(0xc7)][_0x4fa02c(0x136)]())return;this['_status']===_0x4fa02c(0xa6)&&this[_0x4fa02c(0xbd)]();const _0x478620=_0x576669[_0x4fa02c(0x10a)][_0x4fa02c(0xaa)];Object[_0x4fa02c(0x9c)](_0x478620)[_0x4fa02c(0xe6)](_0x3854d4=>{const _0x25f223=_0x4fa02c;this[_0x25f223(0x99)][_0x25f223(0x12f)](_0x3854d4['id'],_0x3854d4[_0x25f223(0x119)]?JSON['parse'](_0x3854d4[_0x25f223(0x119)]):null,{'fromCollab':!0x0});});}[_0x3161ce(0x9a)](){const _0x395918=_0x3161ce;var _0x15ef93;this['_status$'][_0x395918(0xd4)](_0x395918(0xc2)),(_0x15ef93=this['_commandDisposable'])==null||_0x15ef93[_0x395918(0xd9)]();}['_handleOnline'](){const _0x5d6eee=_0x3161ce;this[_0x5d6eee(0x120)]['next'](_0x5d6eee(0xa6)),this[_0x5d6eee(0x13d)]();}};N=Y([_(0x2,_0x2b6132),_(0x3,_0x14252a(L)),_(0x4,_0x5327ed)],N);function Le(){const _0x376963=_0x3161ce,_0x20417d=_0x2e8a9e(S),_0x16948f=_0x2e8a9e(_0x3f7773),_0x4798e0=_0x76447(()=>_0x16948f['getCurrentTypeOfUnit$'](_0x3d3727[_0x376963(0xe1)]),void 0x0,!0x1,[]),[_0x38307f,_0x552d78]=_0x3039b2(null),[_0x5e7b9f,_0x51d446]=_0x3039b2(c['IDLE']),_0x1fce8b=_0x2753f6(null);return _0x4dcff2(()=>(_0x4798e0&&_0x20417d[_0x376963(0xf2)](_0x4798e0[_0x376963(0xb1)]())[_0x376963(0x109)](_0x17a83c=>{const _0x396c47=_0x376963;_0x552d78(_0x17a83c),_0x1fce8b[_0x396c47(0x135)]=_0x17a83c['status$'][_0x396c47(0xf8)](_0x438d08=>{_0x51d446(_0x438d08);});}),()=>{const _0x5d0275=_0x376963;var _0x1f9964;(_0x1f9964=_0x1fce8b[_0x5d0275(0x135)])==null||_0x1f9964['unsubscribe'](),_0x1fce8b[_0x5d0275(0x135)]=null;}),[_0x4798e0,_0x20417d]),_0x38307f?_0x525ba2(_0x3fbb2d,{'align':_0x376963(0xcc),'disabled':_0x5e7b9f===c[_0x376963(0xe4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x525ba2(Re,{'status':_0x5e7b9f,'coordinator':_0x38307f}),'children':_0x525ba2(_0x376963(0xee),{'className':_0x5ab19b(_0x376963(0xde),{'univer-cursor-not-allowed':_0x5e7b9f===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5e7b9f!==c['OFFLINE']}),'type':'button','children':_0x525ba2(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2abddc){const _0x3bda20=_0x3161ce,{status:_0x245e60,coordinator:_0x39ee81}=_0x2abddc;switch(_0x245e60){case c[_0x3bda20(0xd1)]:return _0x525ba2($e,{'coordinator':_0x39ee81});case c['FOLLOWING']:return _0x525ba2(xe,{'coordinator':_0x39ee81});case c[_0x3bda20(0x11f)]:return _0x525ba2(Pe,{'coordinator':_0x39ee81});case c[_0x3bda20(0xe4)]:return _0x525ba2(Te,{});case c[_0x3bda20(0x11a)]:return _0x525ba2(Ae,{'coordinator':_0x39ee81});default:return null;}}function $e(_0xd84d8e){const _0x5cf4fb=_0x3161ce,{coordinator:_0x2eb979}=_0xd84d8e;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5cf4fb(0x13b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cf4fb(0x111)}),_0x525ba2(_0x4174df,{'onClick':()=>_0x2eb979[_0x5cf4fb(0xd0)](),'children':_0x5cf4fb(0x12c)})]});}function xe(_0x3774cc){const _0x11dd0f=_0x3161ce,{coordinator:_0x1e52e8}=_0x3774cc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x525ba2(_0x4174df,{'onClick':()=>_0x1e52e8[_0x11dd0f(0x137)](),'children':_0x11dd0f(0x12e)})]});}function Pe(_0x5b41d5){const _0x1f77f9=_0x3161ce,{coordinator:_0x591a8b}=_0x5b41d5;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x1f77f9(0x13b),{'className':_0x1f77f9(0xbb),'children':_0x1f77f9(0x107)}),_0x525ba2(_0x4174df,{'variant':_0x1f77f9(0xa3),'onClick':()=>_0x591a8b[_0x1f77f9(0x98)](),'children':_0x1f77f9(0xa9)})]});}function Ae(_0x4211dc){const _0x5947f6=_0x3161ce,{coordinator:_0x5ede1c}=_0x4211dc;return _0x40011d(_0x52ab07,{'children':[_0x525ba2(_0x5947f6(0x13b),{'className':_0x5947f6(0xbb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x525ba2(_0x4174df,{'variant':_0x5947f6(0xb6),'onClick':()=>_0x5ede1c[_0x5947f6(0x141)](),'children':_0x5947f6(0xba)})]});}function Te(){const _0xee815f=_0x3161ce;return _0x525ba2(_0x52ab07,{'children':_0xee815f(0x138)});}var Fe=Object[_0x3161ce(0x106)],He=(_0x1ed413,_0x203ac8,_0x103d15,_0x2905bc)=>{const _0xd58940=_0x3161ce;for(var _0x1c1aa0=_0x2905bc>0x1?void 0x0:_0x2905bc?Fe(_0x203ac8,_0x103d15):_0x203ac8,_0x3ccc44=_0x1ed413[_0xd58940(0xe7)]-0x1,_0x4ac5ae;_0x3ccc44>=0x0;_0x3ccc44--)(_0x4ac5ae=_0x1ed413[_0x3ccc44])&&(_0x1c1aa0=_0x4ac5ae(_0x1c1aa0)||_0x1c1aa0);return _0x1c1aa0;},A=(_0x42a870,_0x377299)=>(_0x5a721d,_0x24170e)=>_0x377299(_0x5a721d,_0x24170e,_0x42a870);let m=class extends _0x38683d{constructor(_0x5d6aca,_0x5a7d7c){const _0x58aaae=_0x3161ce;super(),this[_0x58aaae(0xcf)]=_0x5d6aca,this['_uiPartsService']=_0x5a7d7c,this[_0x58aaae(0xfc)]();}[_0x3161ce(0xfc)](){const _0x570384=_0x3161ce;this[_0x570384(0xea)](this[_0x570384(0x9d)][_0x570384(0x140)](_0x5f0230['HEADER_MENU'],()=>_0x4c8d2a(Le,this[_0x570384(0xcf)])));}};m=He([A(0x0,_0x14252a(_0x5e11ad)),A(0x1,_0x3fa8c9)],m);const ye=_0x3161ce(0x114),T={};function _0x5432(_0x567e3e,_0x13d1f1){_0x567e3e=_0x567e3e-0x98;const _0x8a2f9f=_0x8a2f();let _0x543227=_0x8a2f9f[_0x567e3e];return _0x543227;}var Ue=Object[_0x3161ce(0x106)],Ve=(_0x4e7c04,_0x427ddb,_0x3773c5,_0x30a4b5)=>{const _0x12405c=_0x3161ce;for(var _0x3719d8=_0x30a4b5>0x1?void 0x0:_0x30a4b5?Ue(_0x427ddb,_0x3773c5):_0x427ddb,_0x26e630=_0x4e7c04[_0x12405c(0xe7)]-0x1,_0x4f12af;_0x26e630>=0x0;_0x26e630--)(_0x4f12af=_0x4e7c04[_0x26e630])&&(_0x3719d8=_0x4f12af(_0x3719d8)||_0x3719d8);return _0x3719d8;},je=(_0x2e2cd5,_0x3f59e2)=>(_0x179311,_0x9768d9)=>_0x3f59e2(_0x179311,_0x9768d9,_0x2e2cd5);let I=class extends _0x38683d{constructor(_0x1cb9cb){const _0x1576ec=_0x3161ce;super(),this[_0x1576ec(0xa5)]=_0x1cb9cb,this['_init']();}[_0x3161ce(0x12a)](){[_0xefd7a1['id'],_0x592fec['id'],_0x5a80bb['id']]['forEach'](_0x292b69=>{const _0x154265=_0x5432;this[_0x154265(0xea)](this['_liveShareService'][_0x154265(0xff)](_0x292b69));});}};I=Ve([je(0x0,_0x14252a(L))],I);var Me=Object[_0x3161ce(0xc9)],ke=Object[_0x3161ce(0x106)],Ge=(_0x2d9178,_0x6b847c,_0x32ae1f)=>_0x6b847c in _0x2d9178?Me(_0x2d9178,_0x6b847c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32ae1f}):_0x2d9178[_0x6b847c]=_0x32ae1f,We=(_0x10d86a,_0x28f65c,_0x11760,_0x2482b4)=>{const _0x590840=_0x3161ce;for(var _0xfc1d8f=_0x2482b4>0x1?void 0x0:_0x2482b4?ke(_0x28f65c,_0x11760):_0x28f65c,_0x146da7=_0x10d86a[_0x590840(0xe7)]-0x1,_0x417961;_0x146da7>=0x0;_0x146da7--)(_0x417961=_0x10d86a[_0x146da7])&&(_0xfc1d8f=_0x417961(_0xfc1d8f)||_0xfc1d8f);return _0xfc1d8f;},F=(_0x82643e,_0x175300)=>(_0xde8b07,_0x4bd07e)=>_0x175300(_0xde8b07,_0x4bd07e,_0x82643e),B=(_0x21eb43,_0x4caa17,_0x137747)=>Ge(_0x21eb43,typeof _0x4caa17!='symbol'?_0x4caa17+'':_0x4caa17,_0x137747);const Ye=_0x3161ce(0x129);let b=class extends _0x1104c7{constructor(_0xbbf878=T,_0x160915,_0x5424a4){const _0x2b0204=_0x3161ce;super(),this[_0x2b0204(0x10d)]=_0xbbf878,this[_0x2b0204(0xcf)]=_0x160915,this[_0x2b0204(0xce)]=_0x5424a4;const {..._0x57892d}=_0x204de3({},T,this[_0x2b0204(0x10d)]);this[_0x2b0204(0xce)][_0x2b0204(0x132)](ye,_0x57892d);}[_0x3161ce(0xac)](){const _0x20f91a=_0x3161ce;_0x149c15(this[_0x20f91a(0xcf)],_0x2f3879([[L],[S],[I],[m]],this[_0x20f91a(0x10d)][_0x20f91a(0xed)])),_0xcdf2ee(this[_0x20f91a(0xcf)],[[I]]);}[_0x3161ce(0x13f)](){const _0x499f0d=_0x3161ce;_0xcdf2ee(this[_0x499f0d(0xcf)],[[m]]);}};B(b,_0x3161ce(0x11d),_0x3d3727[_0x3161ce(0x115)]),B(b,'pluginName',Ye),b=We([_0x10d5a5(_0x145b3d),F(0x1,_0x14252a(_0x5e11ad)),F(0x2,_0x2b6132)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x222f49=_0x32f8;(function(_0x132553,_0x276501){const _0x2ad240=_0x32f8,_0x5e7b8e=_0x132553();while(!![]){try{const _0x172e37=parseInt(_0x2ad240(0x172))/0x1*(-parseInt(_0x2ad240(0x1a9))/0x2)+parseInt(_0x2ad240(0x1cf))/0x3*(-parseInt(_0x2ad240(0x1e0))/0x4)+-parseInt(_0x2ad240(0x1a4))/0x5+parseInt(_0x2ad240(0x1bc))/0x6*(parseInt(_0x2ad240(0x173))/0x7)+parseInt(_0x2ad240(0x1b2))/0x8+parseInt(_0x2ad240(0x1c5))/0x9+parseInt(_0x2ad240(0x144))/0xa;if(_0x172e37===_0x276501)break;else _0x5e7b8e['push'](_0x5e7b8e['shift']());}catch(_0x27a76d){_0x5e7b8e['push'](_0x5e7b8e['shift']());}}}(_0x1f92,0x5bffa));var J=Object[_0x222f49(0x16d)],K=(_0x131552,_0x67239e,_0x4727fa)=>_0x67239e in _0x131552?J(_0x131552,_0x67239e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4727fa}):_0x131552[_0x67239e]=_0x4727fa,u=(_0x310b23,_0x336579,_0xabdb22)=>K(_0x310b23,typeof _0x336579!=_0x222f49(0x181)?_0x336579+'':_0x336579,_0xabdb22);import{Disposable as _0x1a37e7,toDisposable as _0x5b056a,Inject as _0x1482cd,Injector as _0x4bf49b,RxDisposable as _0x4d23fd,UniverInstanceType as _0x2f11e5,DisposableCollection as _0x4c5763,CommandType as _0xf0a1ab,IUniverInstanceService as _0x42d6a1,IConfigService as _0x2a5d23,ICommandService as _0x49fbbf,DependentOn as _0xa62d83,Plugin as _0x4a80e3,merge as _0x20b0c5,registerDependencies as _0x3e3410,mergeOverrideWithDependencies as _0x443e96,touchDependencies as _0xd36313}from'@univerjs/core';import{useDependency as _0xa82e97,useObservable as _0x169040,BuiltInUIPart as _0x504303,connectInjector as _0x71c5ea,IUIPartsService as _0x2eb621}from'@univerjs/ui';import{jsx as _0x147256,jsxs as _0x5b8e35,Fragment as _0x48919b}from'react/jsx-runtime';import{Dropdown as _0x4032fa,clsx as _0x21e998,Button as _0x343d1a}from'@univerjs/design';import{useRef as _0x2088ee,createElement as _0x35bf0f,forwardRef as _0x1296e9,useState as _0x263a7d,useEffect as _0x5b9c41}from'react';import{CollaborationEvent as _0x3fdbca,parseProtocolChangeset as _0xce55e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ae195,SessionStatus as _0x37958e,UniverCollaborationClientPlugin as _0x2aafaa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c0766,SetWorksheetActiveOperation as _0x18f1ca}from'@univerjs/sheets';import{BehaviorSubject as _0x1af331,Subject as _0x535ba9}from'rxjs';import{takeUntil as _0x4973f2,throttleTime as _0x5b740f}from'rxjs/operators';import{SetZoomRatioOperation as _0x314d69,SetScrollOperation as _0x39a4e2}from'@univerjs/sheets-ui';function k({ref:_0x462cb7,..._0x1c1dff}){const _0x316bad=_0x222f49,{icon:_0x1a8c9f,id:_0x276f33,className:_0x2e7a8e,extend:_0xa00f6a,..._0x2bd088}=_0x1c1dff,_0x50329d=(_0x316bad(0x15c)+_0x276f33+'\x20'+(_0x2e7a8e||''))['trim'](),_0x2261d9=_0x2088ee('_'+Oe());return G(_0x1a8c9f,''+_0x276f33,{'defIds':_0x1a8c9f[_0x316bad(0x1a3)],'idSuffix':_0x2261d9['current']},{'ref':_0x462cb7,'className':_0x50329d,..._0x2bd088},_0xa00f6a);}function G(_0x55cfd2,_0x4adbc0,_0x882380,_0x2bd600,_0x16f876){const _0xdbe3d4=_0x222f49;return _0x35bf0f(_0x55cfd2[_0xdbe3d4(0x1cd)],{'key':_0x4adbc0,...be(_0x55cfd2,_0x882380,_0x16f876),..._0x2bd600},(Ee(_0x55cfd2,_0x882380)[_0xdbe3d4(0x166)]||[])[_0xdbe3d4(0x1da)]((_0x14578b,_0x5b3422)=>G(_0x14578b,_0x4adbc0+'-'+_0x55cfd2[_0xdbe3d4(0x1cd)]+'-'+_0x5b3422,_0x882380,void 0x0,_0x16f876)));}function be(_0x5963be,_0x13093c,_0x4e1677){const _0x30a373=_0x222f49,_0x5e406e={..._0x5963be[_0x30a373(0x178)]};_0x4e1677!=null&&_0x4e1677['colorChannel1']&&_0x5e406e[_0x30a373(0x17b)]==='colorChannel1'&&(_0x5e406e['fill']=_0x4e1677[_0x30a373(0x19b)]),_0x5963be[_0x30a373(0x1cd)]===_0x30a373(0x16f)&&_0x5e406e['id']&&(_0x5e406e['id']=_0x5e406e['id']+_0x13093c[_0x30a373(0x1d3)]),Object['entries'](_0x5e406e)['forEach'](([_0x5e9f2d,_0x4e0b9d])=>{const _0x34b26c=_0x30a373;_0x5e9f2d==='mask'&&typeof _0x4e0b9d==_0x34b26c(0x1d8)&&(_0x5e406e[_0x5e9f2d]=_0x4e0b9d[_0x34b26c(0x14f)](/url\(#(.*)\)/,_0x34b26c(0x151)+_0x13093c[_0x34b26c(0x1d3)]+')'));});const {defIds:_0x59694a}=_0x13093c;return!_0x59694a||_0x59694a[_0x30a373(0x1b0)]===0x0||(_0x5963be[_0x30a373(0x1cd)]==='use'&&_0x5e406e[_0x30a373(0x1bf)]&&(_0x5e406e['xlink:href']=_0x5e406e[_0x30a373(0x1bf)]+_0x13093c[_0x30a373(0x1d3)]),Object[_0x30a373(0x154)](_0x5e406e)[_0x30a373(0x1cb)](([_0x3ea8c0,_0x39bb4c])=>{const _0x5d459c=_0x30a373;typeof _0x39bb4c==_0x5d459c(0x1d8)&&(_0x5e406e[_0x3ea8c0]=_0x39bb4c[_0x5d459c(0x14f)](/url\(#(.*)\)/,'url(#$1'+_0x13093c[_0x5d459c(0x1d3)]+')'));})),_0x5e406e;}function Ee(_0x5ea3b1,_0x2fc3f5){const _0xa9cbff=_0x222f49;var _0xc887a6;const {defIds:_0x40bb30}=_0x2fc3f5;return!_0x40bb30||_0x40bb30[_0xa9cbff(0x1b0)]===0x0?_0x5ea3b1:_0x5ea3b1['tag']===_0xa9cbff(0x1a7)&&((_0xc887a6=_0x5ea3b1['children'])!=null&&_0xc887a6[_0xa9cbff(0x1b0)])?{..._0x5ea3b1,'children':_0x5ea3b1[_0xa9cbff(0x166)][_0xa9cbff(0x1da)](_0x1f1739=>typeof _0x1f1739[_0xa9cbff(0x178)]['id']==_0xa9cbff(0x1d8)&&_0x40bb30&&_0x40bb30[_0xa9cbff(0x182)](_0x1f1739['attrs']['id'])?{..._0x1f1739,'attrs':{..._0x1f1739[_0xa9cbff(0x178)],'id':_0x1f1739[_0xa9cbff(0x178)]['id']+_0x2fc3f5[_0xa9cbff(0x1d3)]}}:_0x1f1739)}:_0x5ea3b1;}function Oe(){const _0x16f1c6=_0x222f49;return Math[_0x16f1c6(0x16c)]()[_0x16f1c6(0x1af)](0x24)['substring'](0x2,0x8);}k[_0x222f49(0x19c)]=_0x222f49(0x198);const we={'tag':_0x222f49(0x19e),'attrs':{'xmlns':_0x222f49(0x1c6),'fill':_0x222f49(0x1ad),'viewBox':_0x222f49(0x1b7),'width':_0x222f49(0x1df),'height':'1em'},'children':[{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1c9)}},{'tag':_0x222f49(0x170),'attrs':{'fill':_0x222f49(0x14e),'d':_0x222f49(0x1b4),'fillRule':_0x222f49(0x1ac),'clipRule':_0x222f49(0x1ac)}}]},W=_0x1296e9(function(_0x3ad358,_0x59951a){const _0x4e5bda=_0x222f49;return _0x35bf0f(k,Object[_0x4e5bda(0x1a0)]({},_0x3ad358,{'id':_0x4e5bda(0x175),'ref':_0x59951a,'icon':we}));});W[_0x222f49(0x19c)]=_0x222f49(0x189);class L extends _0x1a37e7{constructor(){const _0x9a5498=_0x222f49;super(...arguments),u(this,_0x9a5498(0x165),new Set()),u(this,_0x9a5498(0x19f),new Set());}['registerSharedOperation'](_0x51fa91){const _0x51633c=_0x222f49;return this[_0x51633c(0x165)][_0x51633c(0x17a)](_0x51fa91),_0x5b056a(()=>this['_sharedOperations'][_0x51633c(0x163)](_0x51fa91));}[_0x222f49(0x180)](_0x235cc7){const _0x35ad08=_0x222f49;return this[_0x35ad08(0x19f)][_0x35ad08(0x17a)](_0x235cc7),_0x5b056a(()=>this[_0x35ad08(0x19f)][_0x35ad08(0x163)](_0x235cc7));}[_0x222f49(0x162)](_0x5725b3){const _0x4a8736=_0x222f49;return this[_0x4a8736(0x165)][_0x4a8736(0x17c)](_0x5725b3);}[_0x222f49(0x1d2)](_0x50b96c){const _0x485c53=_0x222f49;return Array[_0x485c53(0x188)](this[_0x485c53(0x19f)])['map'](_0x4e2a8f=>_0x4e2a8f(_0x50b96c));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x38ad76,_0x26da5c,_0x8b1786,_0x1a136e)=>{const _0x19311d=_0x222f49;for(var _0x6b88e7=_0x1a136e>0x1?void 0x0:_0x1a136e?Ne(_0x26da5c,_0x8b1786):_0x26da5c,_0x2640d0=_0x38ad76[_0x19311d(0x1b0)]-0x1,_0x56c6e4;_0x2640d0>=0x0;_0x2640d0--)(_0x56c6e4=_0x38ad76[_0x2640d0])&&(_0x6b88e7=_0x56c6e4(_0x6b88e7)||_0x6b88e7);return _0x6b88e7;},_=(_0x26bd72,_0x2e0c36)=>(_0x661ef1,_0x1bae9c)=>_0x2e0c36(_0x661ef1,_0x1bae9c,_0x26bd72);let S=class extends _0x4d23fd{constructor(_0x43f0c5,_0x4c68c8,_0x5ba94c){const _0x4d0c7b=_0x222f49;super(),u(this,_0x4d0c7b(0x18a),new Map()),(this[_0x4d0c7b(0x158)]=_0x43f0c5,this[_0x4d0c7b(0x1c4)]=_0x4c68c8,this[_0x4d0c7b(0x185)]=_0x5ba94c,this[_0x4d0c7b(0x15f)]());}async[_0x222f49(0x1dd)](_0x1c2e6e){const _0x4e9dc9=_0x222f49;return this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x17c)](_0x1c2e6e)||await this['_startLiveShareCoordinator'](_0x1c2e6e),this[_0x4e9dc9(0x18a)][_0x4e9dc9(0x1b1)](_0x1c2e6e);}['getLiveShareCoordinatorSync'](_0x2f9468){const _0x5271e5=_0x222f49;var _0x34ea18;return(_0x34ea18=this[_0x5271e5(0x18a)]['get'](_0x2f9468))!=null?_0x34ea18:null;}[_0x222f49(0x15f)](){const _0x500a8f=_0x222f49;this[_0x500a8f(0x158)]['getTypeOfUnitAdded$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this['dispose$']))[_0x500a8f(0x1c0)](async _0x14537d=>{const _0x11bfd9=_0x500a8f,_0x46c236=_0x14537d[_0x11bfd9(0x1b8)]();this[_0x11bfd9(0x18a)][_0x11bfd9(0x17c)](_0x46c236)||this['_startLiveShareCoordinator'](_0x46c236);}),this[_0x500a8f(0x158)]['getTypeOfUnitDisposed$'](_0x2f11e5[_0x500a8f(0x167)])[_0x500a8f(0x1e3)](_0x4973f2(this[_0x500a8f(0x19a)]))[_0x500a8f(0x1c0)](_0x6a1e96=>{const _0xdea41c=_0x500a8f,_0x5173e1=_0x6a1e96[_0xdea41c(0x1b8)](),_0x521a08=this[_0xdea41c(0x18a)][_0xdea41c(0x1b1)](_0x5173e1);_0x521a08==null||_0x521a08['dispose']();});}async[_0x222f49(0x14c)](_0xf47cd1){const _0x58df3a=_0x222f49,_0x125981=await this[_0x58df3a(0x185)]['requireSession'](_0xf47cd1),_0xd7029=this['_injector']['createInstance'](N,_0xf47cd1,_0x125981);return _0xd7029['init'](),this['_entities']['set'](_0xf47cd1,_0xd7029),_0xd7029;}};S=Y([_(0x0,_0x42d6a1),_(0x1,_0x1482cd(_0x4bf49b)),_(0x2,_0x1482cd(_0x1ae195))],S);var c=(_0x21da83=>(_0x21da83[_0x222f49(0x1b5)]='offline',_0x21da83[_0x222f49(0x1ab)]=_0x222f49(0x157),_0x21da83['FOLLOWING']='following',_0x21da83[_0x222f49(0x156)]=_0x222f49(0x1b6),_0x21da83[_0x222f49(0x159)]=_0x222f49(0x191),_0x21da83))(c||{});const Ce=_0x222f49(0x152),De=0xc8;let N=class extends _0x4d23fd{constructor(_0x1636ce,_0xc41e87,_0x4dcef3,_0x2a8dfb,_0x454816){const _0x36727e=_0x222f49;super(),u(this,'_status$',new _0x1af331(_0x36727e(0x157))),u(this,_0x36727e(0x1d7),this['_status$']['asObservable']()),u(this,_0x36727e(0x15f),!0x1),u(this,_0x36727e(0x192),null),u(this,_0x36727e(0x1ae),null),(this[_0x36727e(0x194)]=_0x1636ce,this[_0x36727e(0x148)]=_0xc41e87,this['_configService']=_0x4dcef3,this[_0x36727e(0x1de)]=_0x2a8dfb,this['_commandService']=_0x454816);}get[_0x222f49(0x18f)](){const _0x4fd45b=_0x222f49;return this[_0x4fd45b(0x1ba)]['getValue']();}[_0x222f49(0x15e)](){const _0x1cfe29=_0x222f49;var _0x456969;(_0x456969=this[_0x1cfe29(0x192)])==null||_0x456969[_0x1cfe29(0x15e)](),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x160)](_0x1cfe29(0x157)),this[_0x1cfe29(0x1ba)][_0x1cfe29(0x184)]();}[_0x222f49(0x1e4)](){const _0x55ff8c=_0x222f49;return this[_0x55ff8c(0x18f)];}[_0x222f49(0x1e2)](){const _0x2b7144=_0x222f49;this[_0x2b7144(0x15f)]||(this[_0x2b7144(0x15f)]=!0x0,this['_collabSession'][_0x2b7144(0x17f)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0xf3c7a5=>{const _0x40dc20=_0x2b7144;switch(_0xf3c7a5){case _0x37958e['OFFLINE']:this[_0x40dc20(0x16a)]();break;case _0x37958e[_0x40dc20(0x1cc)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x2b7144(0x14b)][_0x2b7144(0x1e3)](_0x4973f2(this[_0x2b7144(0x19a)]))[_0x2b7144(0x1c0)](_0x101772=>{const _0x30ccdb=_0x2b7144,{eventID:_0x460750}=_0x101772;switch(_0x460750){case _0x3fdbca['LIVESHARE_NEW_HOST']:this[_0x30ccdb(0x16e)](_0x101772);break;case _0x3fdbca[_0x30ccdb(0x1ce)]:this[_0x30ccdb(0x1c3)](_0x101772);break;case _0x3fdbca['LIVESHARE_TERMINATE']:this[_0x30ccdb(0x161)]();break;case _0x3fdbca[_0x30ccdb(0x1b9)]:this[_0x30ccdb(0x150)](_0x101772);break;}}));}[_0x222f49(0x183)](){const _0xecb64a=_0x222f49;this[_0xecb64a(0x148)][_0xecb64a(0x199)]({'eventID':_0x3fdbca[_0xecb64a(0x196)],'data':{'unitID':this[_0xecb64a(0x194)],'userID':this['_collabSession'][_0xecb64a(0x18d)]()}},this['_unitID']);}[_0x222f49(0x14d)](){const _0x3adab4=_0x222f49;this[_0x3adab4(0x18f)]===_0x3adab4(0x191)&&(this[_0x3adab4(0x1ba)][_0x3adab4(0x160)](_0x3adab4(0x157)),this[_0x3adab4(0x148)][_0x3adab4(0x199)]({'eventID':_0x3fdbca[_0x3adab4(0x190)],'data':{'unitID':this[_0x3adab4(0x194)]}},this[_0x3adab4(0x194)]));}['startFollowing'](){const _0x2310ca=_0x222f49;this[_0x2310ca(0x18f)]===_0x2310ca(0x1b6)&&(this[_0x2310ca(0x1ba)][_0x2310ca(0x160)](_0x2310ca(0x1e5)),this['_startFollowing']());}[_0x222f49(0x1ca)](){const _0x19ea8e=_0x222f49;this[_0x19ea8e(0x18f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x76a257){const _0x341b8f=_0x222f49,{presenter:_0x4ad5b6}=_0x76a257[_0x341b8f(0x1a6)],_0x25dc34=this[_0x341b8f(0x148)]['getMemberID']();this[_0x341b8f(0x1ae)]=_0x4ad5b6,_0x4ad5b6===_0x25dc34?(this[_0x341b8f(0x174)](),this[_0x341b8f(0x16b)]()):this[_0x341b8f(0x18f)]!==_0x341b8f(0x1b6)&&(this[_0x341b8f(0x17d)](),this[_0x341b8f(0x1c1)]());}[_0x222f49(0x186)](){const _0x421f73=_0x222f49,_0x313e07={'eventID':_0x3fdbca[_0x421f73(0x1db)]};this[_0x421f73(0x148)][_0x421f73(0x199)](_0x313e07,this[_0x421f73(0x194)]);}[_0x222f49(0x161)](){const _0x31376e=_0x222f49;this['_presenter']=null,this[_0x31376e(0x18f)]!==_0x31376e(0x191)&&this[_0x31376e(0x17e)]();}[_0x222f49(0x150)](_0x2445a7){const _0xd6ccef=_0x222f49;if(this[_0xd6ccef(0x18f)]===_0xd6ccef(0x1e5)&&this['_presenter']===_0x2445a7[_0xd6ccef(0x1a6)][_0xd6ccef(0x1d0)]){const _0x2a70b8=_0xce55e(_0x2445a7[_0xd6ccef(0x1a6)])[_0xd6ccef(0x18b)]['reverse']()[_0xd6ccef(0x18e)](_0x1895ae=>_0x1895ae['id']===_0x4c0766['id']);if(_0x2a70b8){const _0x106314=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x187)],_0x2a00ad=_0x2a70b8[_0xd6ccef(0x15a)][_0xd6ccef(0x1d5)]['id'];setTimeout(()=>{const _0x2d47f4=_0xd6ccef;this[_0x2d47f4(0x146)]['executeCommand'](_0x18f1ca['id'],{'unitId':_0x106314,'subUnitId':_0x2a00ad},{'fromCollab':!0x0});});}}}[_0x222f49(0x16b)](){const _0x1da092=_0x222f49;this['_status$']['next'](_0x1da092(0x191));const _0x1c14f5=new Map(),_0x22e09f=this[_0x1da092(0x192)]=new _0x4c5763();_0x22e09f[_0x1da092(0x17a)](_0x5b056a(()=>{const _0x39874f=_0x1da092;_0x1c14f5['forEach'](_0x2dc096=>_0x2dc096[_0x39874f(0x184)]()),_0x1c14f5[_0x39874f(0x1c8)]();})),_0x22e09f['add'](this[_0x1da092(0x146)][_0x1da092(0x153)](_0x30df92=>{const _0x55d7b1=_0x1da092;var _0x568f82;if(_0x30df92['type']!==_0xf0a1ab['OPERATION']||!this[_0x55d7b1(0x1de)]['shouldShareOperation'](_0x30df92['id']))return;const {id:_0x41face}=_0x30df92;let _0xd38261;_0x1c14f5[_0x55d7b1(0x17c)](_0x41face)?_0xd38261=_0x1c14f5[_0x55d7b1(0x1b1)](_0x41face):(_0xd38261=new _0x535ba9(),_0x1c14f5['set'](_0x41face,_0xd38261),_0xd38261[_0x55d7b1(0x1e3)](_0x5b740f((_0x568f82=this[_0x55d7b1(0x147)]['getConfig'](Ce))!=null?_0x568f82:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57e83b=>{const _0x3d258d=_0x55d7b1;this[_0x3d258d(0x148)][_0x3d258d(0x199)]({'eventID':_0x3fdbca[_0x3d258d(0x1ce)],'data':{'unitID':this[_0x3d258d(0x194)],'operations':{[_0x57e83b['id']]:{'id':_0x57e83b['id'],'params':JSON[_0x3d258d(0x169)](_0x57e83b[_0x3d258d(0x15a)])}}}},this[_0x3d258d(0x194)]);})),_0xd38261[_0x55d7b1(0x160)](_0x30df92);})),this[_0x1da092(0x1de)][_0x1da092(0x1d2)](this[_0x1da092(0x194)])[_0x1da092(0x1cb)](_0x2e6d89=>this[_0x1da092(0x148)]['send']({'eventID':_0x3fdbca['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1da092(0x194)],'operations':{[_0x2e6d89['id']]:{'id':_0x2e6d89['id'],'params':JSON[_0x1da092(0x169)](_0x2e6d89['params'])}}}},this[_0x1da092(0x194)]));}['_stopPresenting'](){const _0x33d525=_0x222f49;var _0x5641cf;this[_0x33d525(0x1ba)][_0x33d525(0x160)](_0x33d525(0x157)),(_0x5641cf=this[_0x33d525(0x192)])==null||_0x5641cf[_0x33d525(0x15e)](),this[_0x33d525(0x192)]=null;}[_0x222f49(0x1c1)](){const _0x1a5c91=_0x222f49;var _0x262734;(_0x262734=this[_0x1a5c91(0x192)])==null||_0x262734['dispose'](),this[_0x1a5c91(0x1ba)][_0x1a5c91(0x160)](_0x1a5c91(0x1e5));}[_0x222f49(0x17e)](){const _0x2c053e=_0x222f49;var _0x319506;this[_0x2c053e(0x1ba)][_0x2c053e(0x160)](_0x2c053e(0x157)),(_0x319506=this[_0x2c053e(0x192)])==null||_0x319506[_0x2c053e(0x15e)](),this[_0x2c053e(0x192)]=null;}[_0x222f49(0x174)](){const _0x586ea4=_0x222f49;var _0x1774b0;this[_0x586ea4(0x1ba)]['next'](_0x586ea4(0x1b6)),(_0x1774b0=this[_0x586ea4(0x192)])==null||_0x1774b0[_0x586ea4(0x15e)]();}[_0x222f49(0x1c3)](_0x201f11){const _0x32fd22=_0x222f49;if([_0x32fd22(0x191),_0x32fd22(0x1b6),_0x32fd22(0x195)][_0x32fd22(0x182)](this[_0x32fd22(0x18f)])||!_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]||_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x168)]===this['_collabSession'][_0x32fd22(0x18d)]())return;this[_0x32fd22(0x18f)]===_0x32fd22(0x157)&&this[_0x32fd22(0x1c1)]();const _0x3f981c=_0x201f11[_0x32fd22(0x1a6)][_0x32fd22(0x15d)];Object[_0x32fd22(0x171)](_0x3f981c)[_0x32fd22(0x1cb)](_0x195b3c=>{const _0x4d97ac=_0x32fd22;this[_0x4d97ac(0x146)]['executeCommand'](_0x195b3c['id'],_0x195b3c['params']?JSON[_0x4d97ac(0x1d1)](_0x195b3c[_0x4d97ac(0x15a)]):null,{'fromCollab':!0x0});});}[_0x222f49(0x16a)](){const _0x117688=_0x222f49;var _0x10c904;this['_status$']['next'](_0x117688(0x195)),(_0x10c904=this[_0x117688(0x192)])==null||_0x10c904[_0x117688(0x15e)]();}[_0x222f49(0x1c7)](){const _0x2daa41=_0x222f49;this[_0x2daa41(0x1ba)][_0x2daa41(0x160)](_0x2daa41(0x157)),this[_0x2daa41(0x186)]();}};N=Y([_(0x2,_0x2a5d23),_(0x3,_0x1482cd(L)),_(0x4,_0x49fbbf)],N);function Le(){const _0x595af5=_0x222f49,_0x1e6a9f=_0xa82e97(S),_0x3d429b=_0xa82e97(_0x42d6a1),_0xad7edf=_0x169040(()=>_0x3d429b[_0x595af5(0x1c2)](_0x2f11e5[_0x595af5(0x167)]),void 0x0,!0x1,[]),[_0x1d0531,_0xf25f]=_0x263a7d(null),[_0x535e52,_0x14cdd5]=_0x263a7d(c[_0x595af5(0x1ab)]),_0x22c6ec=_0x2088ee(null);return _0x5b9c41(()=>(_0xad7edf&&_0x1e6a9f[_0x595af5(0x1dd)](_0xad7edf[_0x595af5(0x1b8)]())[_0x595af5(0x1a5)](_0x39b7e7=>{const _0x49e5e1=_0x595af5;_0xf25f(_0x39b7e7),_0x22c6ec[_0x49e5e1(0x15b)]=_0x39b7e7[_0x49e5e1(0x1d7)][_0x49e5e1(0x1c0)](_0x515ddf=>{_0x14cdd5(_0x515ddf);});}),()=>{const _0x417f1d=_0x595af5;var _0x3c104c;(_0x3c104c=_0x22c6ec[_0x417f1d(0x15b)])==null||_0x3c104c[_0x417f1d(0x1be)](),_0x22c6ec[_0x417f1d(0x15b)]=null;}),[_0xad7edf,_0x1e6a9f]),_0x1d0531?_0x147256(_0x4032fa,{'align':'end','disabled':_0x535e52===c[_0x595af5(0x1b5)],'className':_0x595af5(0x177),'overlay':_0x147256(Re,{'status':_0x535e52,'coordinator':_0x1d0531}),'children':_0x147256('button',{'className':_0x21e998('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x535e52===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x535e52!==c[_0x595af5(0x1b5)]}),'type':_0x595af5(0x18c),'children':_0x147256(W,{'className':_0x595af5(0x193)})})}):null;}function _0x32f8(_0x55cde5,_0x1ba71a){_0x55cde5=_0x55cde5-0x144;const _0x1f9247=_0x1f92();let _0x32f805=_0x1f9247[_0x55cde5];return _0x32f805;}function Re(_0x3ae1e6){const _0x3b8226=_0x222f49,{status:_0x26e94d,coordinator:_0x45f5d3}=_0x3ae1e6;switch(_0x26e94d){case c[_0x3b8226(0x1ab)]:return _0x147256($e,{'coordinator':_0x45f5d3});case c[_0x3b8226(0x1b3)]:return _0x147256(xe,{'coordinator':_0x45f5d3});case c['NOT_FOLLOWING']:return _0x147256(Pe,{'coordinator':_0x45f5d3});case c['OFFLINE']:return _0x147256(Te,{});case c[_0x3b8226(0x159)]:return _0x147256(Ae,{'coordinator':_0x45f5d3});default:return null;}}function $e(_0x1ae728){const _0x13e998=_0x222f49,{coordinator:_0x8df82a}=_0x1ae728;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x13e998(0x1bb),{'className':_0x13e998(0x164),'children':_0x13e998(0x1a2)}),_0x147256(_0x343d1a,{'onClick':()=>_0x8df82a[_0x13e998(0x183)](),'children':'Start'})]});}function _0x1f92(){const _0x24faa7=['sessionStatus$','registerInitialStateReporter','symbol','includes','tryStartPresenting','complete','_collabSessionService','_fetchOperations','unitId','from','LiveShareIcon','_entities','mutations','button','getMemberID','find','_status','LIVESHARE_TERMINATE','presenting','_commandDisposable','univer-size-4','_unitID','offline','LIVESHARE_REQUEST_HOST','Stop\x20presenting','UniverIcon','send','dispose$','colorChannel1','displayName','You\x27are\x20offline.','svg','_reporters','assign','Start\x20following','Present\x20this\x20document','defIds','2431090AlCoHV','then','data','defs','registerSharedOperation','191514hqGhpA','_uiPartsService','IDLE','evenodd','none','_presenter','toString','length','get','4805576DUHMCj','FOLLOWING','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','OFFLINE','not-following','0\x200\x2017\x2017','getUnitId','NEW_CHANGESETS','_status$','div','44118OzvmRD','UNIVER_UNKNOWN','unsubscribe','xlink:href','subscribe','_startFollowing','getCurrentTypeOfUnit$','_handleOperation','_injector','1306485qEEfRE','http://www.w3.org/2000/svg','_handleOnline','clear','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','stopFollowing','forEach','ONLINE','tag','LIVESHARE_OPERATION','9CsyzmS','memberID','parse','getInitialStates','idSuffix','_config','sheet','disposeWithMe','status$','string','live-share.config','map','LIVESHARE_FETCH_OPERATIONS','registerComponent','getLiveShareCoordinator','_liveShareService','1em','414248utlDPT','getOwnPropertyDescriptor','init','pipe','getStatus','following','8698880BtQNUt','onRendered','_commandService','_configService','_collabSession','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','event$','_startLiveShareCoordinator','stopPresenting','currentColor','replace','_handleNewChangeSets','url(#$1','SAME_OPERATION_SHARE_INTERVAL','onCommandExecuted','entries','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','idle','_univerInstanceService','PRESENTING','params','current','univerjs-icon\x20univerjs-icon-','operations','dispose','_init','next','_handleTerminate','shouldShareOperation','delete','univer-mb-3\x20univer-w-full\x20univer-text-sm','_sharedOperations','children','UNIVER_SHEET','presenter','stringify','_handleOffline','_startPresenting','random','defineProperty','_handleNewHost','mask','path','values','5NwakGy','35keXnTT','_stopFollowing','live-share-icon','default','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','attrs','setConfig','add','fill','has','_stopPresenting','_beIdle'];_0x1f92=function(){return _0x24faa7;};return _0x1f92();}function xe(_0x3f4462){const _0x1ea643=_0x222f49,{coordinator:_0x28cd24}=_0x3f4462;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x1ea643(0x1bb),{'className':_0x1ea643(0x164),'children':_0x1ea643(0x155)}),_0x147256(_0x343d1a,{'onClick':()=>_0x28cd24[_0x1ea643(0x1ca)](),'children':'Stop\x20following'})]});}function Pe(_0x2f6795){const _0x352649=_0x222f49,{coordinator:_0xc604e7}=_0x2f6795;return _0x5b8e35(_0x48919b,{'children':[_0x147256('div',{'className':_0x352649(0x164),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x147256(_0x343d1a,{'variant':'text','onClick':()=>_0xc604e7['startFollowing'](),'children':_0x352649(0x1a1)})]});}function Ae(_0x51b98b){const _0x29d1db=_0x222f49,{coordinator:_0x5e6b3b}=_0x51b98b;return _0x5b8e35(_0x48919b,{'children':[_0x147256(_0x29d1db(0x1bb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29d1db(0x149)}),_0x147256(_0x343d1a,{'variant':_0x29d1db(0x176),'onClick':()=>_0x5e6b3b[_0x29d1db(0x14d)](),'children':_0x29d1db(0x197)})]});}function Te(){const _0x4b4bf3=_0x222f49;return _0x147256(_0x48919b,{'children':_0x4b4bf3(0x19d)});}var Fe=Object[_0x222f49(0x1e1)],He=(_0x20a505,_0x2f59a1,_0x699d44,_0x16b8cd)=>{const _0x2585ec=_0x222f49;for(var _0x46b8ab=_0x16b8cd>0x1?void 0x0:_0x16b8cd?Fe(_0x2f59a1,_0x699d44):_0x2f59a1,_0x112c1a=_0x20a505[_0x2585ec(0x1b0)]-0x1,_0xda2f11;_0x112c1a>=0x0;_0x112c1a--)(_0xda2f11=_0x20a505[_0x112c1a])&&(_0x46b8ab=_0xda2f11(_0x46b8ab)||_0x46b8ab);return _0x46b8ab;},A=(_0x345c45,_0x32671f)=>(_0x22e067,_0x3cdb29)=>_0x32671f(_0x22e067,_0x3cdb29,_0x345c45);let m=class extends _0x1a37e7{constructor(_0x9a6efd,_0x6237a1){const _0x81ac34=_0x222f49;super(),this[_0x81ac34(0x1c4)]=_0x9a6efd,this['_uiPartsService']=_0x6237a1,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1764e5=_0x222f49;this['disposeWithMe'](this[_0x1764e5(0x1aa)][_0x1764e5(0x1dc)](_0x504303[_0x1764e5(0x14a)],()=>_0x71c5ea(Le,this['_injector'])));}};m=He([A(0x0,_0x1482cd(_0x4bf49b)),A(0x1,_0x2eb621)],m);const ye=_0x222f49(0x1d9),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x48c8b5,_0x455180,_0x5a5586,_0x858e3b)=>{const _0x19df28=_0x222f49;for(var _0x2c586f=_0x858e3b>0x1?void 0x0:_0x858e3b?Ue(_0x455180,_0x5a5586):_0x455180,_0x294eed=_0x48c8b5[_0x19df28(0x1b0)]-0x1,_0x47e890;_0x294eed>=0x0;_0x294eed--)(_0x47e890=_0x48c8b5[_0x294eed])&&(_0x2c586f=_0x47e890(_0x2c586f)||_0x2c586f);return _0x2c586f;},je=(_0x548104,_0x3aaed5)=>(_0x47e839,_0x4120f6)=>_0x3aaed5(_0x47e839,_0x4120f6,_0x548104);let I=class extends _0x1a37e7{constructor(_0xadd850){const _0x28c989=_0x222f49;super(),this[_0x28c989(0x1de)]=_0xadd850,this['_init']();}[_0x222f49(0x15f)](){[_0x314d69['id'],_0x39a4e2['id'],_0x18f1ca['id']]['forEach'](_0x199093=>{const _0x336415=_0x32f8;this[_0x336415(0x1d6)](this[_0x336415(0x1de)][_0x336415(0x1a8)](_0x199093));});}};I=Ve([je(0x0,_0x1482cd(L))],I);var Me=Object[_0x222f49(0x16d)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x29c7a9,_0x17ca98,_0x2b7853)=>_0x17ca98 in _0x29c7a9?Me(_0x29c7a9,_0x17ca98,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7853}):_0x29c7a9[_0x17ca98]=_0x2b7853,We=(_0x38eeed,_0x3313d7,_0x434e0e,_0x20d09e)=>{for(var _0x504ce3=_0x20d09e>0x1?void 0x0:_0x20d09e?ke(_0x3313d7,_0x434e0e):_0x3313d7,_0x587640=_0x38eeed['length']-0x1,_0x3c295e;_0x587640>=0x0;_0x587640--)(_0x3c295e=_0x38eeed[_0x587640])&&(_0x504ce3=_0x3c295e(_0x504ce3)||_0x504ce3);return _0x504ce3;},F=(_0x35ea2f,_0x237888)=>(_0x5e6ad6,_0x39b551)=>_0x237888(_0x5e6ad6,_0x39b551,_0x35ea2f),B=(_0x571cb2,_0x2a52ed,_0x12a363)=>Ge(_0x571cb2,typeof _0x2a52ed!=_0x222f49(0x181)?_0x2a52ed+'':_0x2a52ed,_0x12a363);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x4a80e3{constructor(_0x1633e6=T,_0x7597c4,_0xa2ad7){const _0xda0e29=_0x222f49;super(),this[_0xda0e29(0x1d4)]=_0x1633e6,this[_0xda0e29(0x1c4)]=_0x7597c4,this[_0xda0e29(0x147)]=_0xa2ad7;const {..._0x52fa98}=_0x20b0c5({},T,this[_0xda0e29(0x1d4)]);this[_0xda0e29(0x147)][_0xda0e29(0x179)](ye,_0x52fa98);}['onStarting'](){const _0x1c1aeb=_0x222f49;_0x3e3410(this[_0x1c1aeb(0x1c4)],_0x443e96([[L],[S],[I],[m]],this[_0x1c1aeb(0x1d4)]['override'])),_0xd36313(this[_0x1c1aeb(0x1c4)],[[I]]);}[_0x222f49(0x145)](){const _0x16c20a=_0x222f49;_0xd36313(this[_0x16c20a(0x1c4)],[[m]]);}};B(b,'type',_0x2f11e5[_0x222f49(0x1bd)]),B(b,'pluginName',Ye),b=We([_0xa62d83(_0x2aafaa),F(0x1,_0x1482cd(_0x4bf49b)),F(0x2,_0x2a5d23)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x28f5(_0x184df0,_0x3f185c){_0x184df0=_0x184df0-0xd5;const _0x235fb0=_0x235f();let _0x28f57f=_0x235fb0[_0x184df0];return _0x28f57f;}(function(_0xa2cf64,_0x1e4169){const _0x187cc1=_0x28f5,_0x25938c=_0xa2cf64();while(!![]){try{const _0x484a5e=parseInt(_0x187cc1(0xf3))/0x1+parseInt(_0x187cc1(0xdd))/0x2*(parseInt(_0x187cc1(0xe5))/0x3)+-parseInt(_0x187cc1(0xe6))/0x4+-parseInt(_0x187cc1(0xf7))/0x5*(parseInt(_0x187cc1(0xdb))/0x6)+parseInt(_0x187cc1(0xfd))/0x7+-parseInt(_0x187cc1(0xee))/0x8*(-parseInt(_0x187cc1(0xeb))/0x9)+parseInt(_0x187cc1(0xf5))/0xa;if(_0x484a5e===_0x1e4169)break;else _0x25938c['push'](_0x25938c['shift']());}catch(_0x5c05bd){_0x25938c['push'](_0x25938c['shift']());}}}(_0x235f,0xc4522),function(_0x3b3a65,_0x3bf6ab){const _0x51b025=_0x28f5;typeof exports==_0x51b025(0xe3)&&typeof module<'u'?_0x3bf6ab(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x51b025(0xf4)&&define['amd']?define([_0x51b025(0xd5),_0x51b025(0xed),'@univerjs/core/facade'],_0x3bf6ab):(_0x3b3a65=typeof globalThis<'u'?globalThis:_0x3b3a65||self,_0x3bf6ab(_0x3b3a65[_0x51b025(0xe7)],_0x3b3a65[_0x51b025(0xd9)],_0x3b3a65['UniverCoreFacade']));}(this,function(_0xa6f7af,_0x43f5f5,_0x1aed6b){'use strict';const _0x19077e=_0x28f5;var _0x2af0ae=Object[_0x19077e(0xde)],_0x413527=(_0x1147e2,_0x2a870f,_0x4aad46)=>_0x2a870f in _0x1147e2?_0x2af0ae(_0x1147e2,_0x2a870f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4aad46}):_0x1147e2[_0x2a870f]=_0x4aad46,_0x5f48db=(_0x54c6bf,_0x1e4804,_0x315b1c)=>_0x413527(_0x54c6bf,typeof _0x1e4804!=_0x19077e(0xe8)?_0x1e4804+'':_0x1e4804,_0x315b1c);class _0x38f409 extends _0x1aed6b['FUniver']{constructor(){const _0x3209f9=_0x19077e;super(...arguments),_0x5f48db(this,_0x3209f9(0xf0));}[_0x19077e(0xe2)](_0x58e9fa){const _0x3d8e3d=_0x19077e;this[_0x3d8e3d(0xf0)]=_0x58e9fa[_0x3d8e3d(0xf8)](_0xa6f7af[_0x3d8e3d(0xfc)]);}['getLiveShareStatus'](){const _0x3983e=_0x19077e;var _0x3c419e;const _0x41fe83=this['_injector'][_0x3983e(0xf8)](_0x43f5f5[_0x3983e(0xef)])[_0x3983e(0xe0)](_0x43f5f5['UniverInstanceType'][_0x3983e(0xf9)]);if(!_0x41fe83)throw new Error(_0x3983e(0xe9));const _0x5879bd=_0x41fe83[_0x3983e(0xf2)](),_0x5b73a8=this[_0x3983e(0xf0)][_0x3983e(0xf6)](_0x5879bd);return(_0x3c419e=_0x5b73a8==null?void 0x0:_0x5b73a8[_0x3983e(0xd7)]())!=null?_0x3c419e:_0xa6f7af[_0x3983e(0xdf)]['IDLE'];}[_0x19077e(0xe4)](){const _0xa60404=_0x19077e,_0x16e04f=this['_injector']['get'](_0x43f5f5[_0xa60404(0xef)])[_0xa60404(0xe0)](_0x43f5f5[_0xa60404(0xdc)]['UNIVER_SHEET']);if(!_0x16e04f)throw new Error(_0xa60404(0xe9));const _0x35758b=_0x16e04f[_0xa60404(0xf2)](),_0x1f2fe1=this[_0xa60404(0xf0)]['getLiveShareCoordinatorSync'](_0x35758b);if(!_0x1f2fe1)throw new Error(_0xa60404(0xfa));_0x1f2fe1[_0xa60404(0xe4)]();}['stopFollowing'](){const _0x54f086=_0x19077e,_0x37bb5d=this[_0x54f086(0xda)][_0x54f086(0xf8)](_0x43f5f5[_0x54f086(0xef)])[_0x54f086(0xe0)](_0x43f5f5[_0x54f086(0xdc)]['UNIVER_SHEET']);if(!_0x37bb5d)throw new Error(_0x54f086(0xe9));const _0x2fa20d=_0x37bb5d[_0x54f086(0xf2)](),_0x3e5fd3=this[_0x54f086(0xf0)][_0x54f086(0xf6)](_0x2fa20d);if(!_0x3e5fd3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3e5fd3[_0x54f086(0xd6)]();}[_0x19077e(0xf1)](){const _0x57d951=_0x19077e,_0x10a702=this[_0x57d951(0xda)][_0x57d951(0xf8)](_0x43f5f5['IUniverInstanceService'])[_0x57d951(0xe0)](_0x43f5f5[_0x57d951(0xdc)][_0x57d951(0xf9)]);if(!_0x10a702)throw new Error(_0x57d951(0xe9));const _0x9cbea4=_0x10a702['getUnitId'](),_0x494890=this['_liveShareController']['getLiveShareCoordinatorSync'](_0x9cbea4);if(!_0x494890)throw new Error(_0x57d951(0xfa));_0x494890[_0x57d951(0xfe)]();}[_0x19077e(0xfb)](){const _0x1041b4=_0x19077e,_0x105b3c=this[_0x1041b4(0xda)][_0x1041b4(0xf8)](_0x43f5f5[_0x1041b4(0xef)])[_0x1041b4(0xe0)](_0x43f5f5[_0x1041b4(0xdc)][_0x1041b4(0xf9)]);if(!_0x105b3c)throw new Error(_0x1041b4(0xe9));const _0x33668d=_0x105b3c['getUnitId'](),_0x1219e6=this['_liveShareController'][_0x1041b4(0xf6)](_0x33668d);if(!_0x1219e6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1219e6[_0x1041b4(0xfb)]();}}_0x1aed6b[_0x19077e(0xea)]['extend'](_0x38f409);class _0x422807 extends _0x1aed6b[_0x19077e(0xec)]{get[_0x19077e(0xe1)](){return _0xa6f7af['LiveShareStatus'];}}_0x1aed6b[_0x19077e(0xec)][_0x19077e(0xd8)](_0x422807);}));function _0x235f(){const _0x4eb953=['20312980NMRnFs','getLiveShareCoordinatorSync','6185UwwLEb','get','UNIVER_SHEET','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','LiveShareController','390782hQjBoj','tryStartPresenting','@univerjs-pro/live-share','stopFollowing','getStatus','extend','UniverCore','_injector','5838YWIbEQ','UniverInstanceType','26cBMWzb','defineProperty','LiveShareStatus','getCurrentUnitOfType','LiveShareStatusEnum','_initialize','object','startFollowing','50445rUiKTt','2323984eklsbL','UniverProLiveShare','symbol','No\x20active\x20workbook\x20found.','FUniver','380313vEznzp','FEnum','@univerjs/core','8mHtJVJ','IUniverInstanceService','_liveShareController','startPresenting','getUnitId','240751uxzKww','function'];_0x235f=function(){return _0x4eb953;};return _0x235f();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x577f(_0x372d9d,_0x3beeb0){_0x372d9d=_0x372d9d-0xad;const _0x455eb4=_0x455e();let _0x577f5e=_0x455eb4[_0x372d9d];return _0x577f5e;}function _0x455e(){const _0x13ae3c=['reverse','text','IUniverInstanceService','14wASCEC','throttleTime','PRESENTING','UniverSheetsUi','jsx','getInitialStates','exports','complete','live-share.config','_stopFollowing','assign','univerjs-icon\x20univerjs-icon-','Start\x20following','not-following','_status','defIds','_handleOffline','useState','UniverLiveSharePlugin','_startLiveShareCoordinator','following','React','LIVESHARE_FETCH_OPERATIONS','univer-size-4','set','params','requireSession','_beIdle','stopFollowing','Injector','_commandDisposable','parse','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_OPERATION','onRendered','SessionStatus','136260QrlPxu','CollaborationEvent','LiveShareIcon','values','_stopPresenting','Module','CommandType','operators','Present\x20this\x20document','substring','string','_sharedOperations','onCommandExecuted','240715JlNdsH','12lcobaa','_handleNewHost','LIVESHARE_REQUEST_HOST','SetScrollOperation','merge','button','react','DependentOn','UniverSheets','setConfig','default','LiveShareController','has','1em','live-share-icon','evenodd','UNIVER_SHEET','145786aKWfQC','sheet','toDisposable','UniverProCollaborationClient','LiveShareCoordinator','registerSharedOperation','dispose','asObservable','svg','getUnitId','send','@univerjs/sheets-ui','350FsZAuP','data','Plugin','_handleTerminate','useObservable','add','registerInitialStateReporter','subscribe','80bgCdfd','_config','DesktopLiveShareController','@univerjs/core','presenting','IConfigService','init','map','disposeWithMe','status$','current','448650KaoocE','_handleOnline','OPERATION','operations','getConfig','next','clsx','BehaviorSubject','UNIVER_UNKNOWN','LiveShareStatus','getTypeOfUnitDisposed$','pipe','13QOTKYp','_handleOperation','pluginName','_startPresenting','getValue','sessionStatus$','type','@univerjs-pro/collaboration-client','0\x200\x2017\x2017','CollaborationSessionService','toStringTag','colorChannel1','3IfUHtU','override','_mountLiveShare','mutations','unitId','children','url(#$1','clear','delete','UniverDesign','rxjs/operators','getStatus','presenter','RxDisposable','forEach','object','stopPresenting','startFollowing','Fragment','SetWorksheetActiveOperation','You\x27re\x20following\x20the\x20presenter','getOwnPropertyDescriptor','@univerjs-pro/collaboration','symbol','shouldShareOperation','_liveShareService','HEADER_MENU','length','IDLE','get','event$','xlink:href','getMemberID','path','div','_presenter','getLiveShareCoordinator','jsxs','entries','touchDependencies','registerDependencies','getLiveShareCoordinatorSync','_collabSessionService','_collabSession','defineProperty','dispose$','forwardRef','idle','attrs','_univerInstanceService','_status$','_startFollowing','_configService','react/jsx-runtime','_handleNewChangeSets','takeUntil','mask','SAME_OPERATION_SHARE_INTERVAL','includes','3182784EaAwNo','UniverCore','function','rxjs','fill','_unitID','LiveShareService','UniverInstanceType','BuiltInUIPart','_entities','NOT_FOLLOWING','registerComponent','executeCommand','FOLLOWING','InsertSheetMutation','currentColor','Inject','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','Button','connectInjector','_reporters','NEW_CHANGESETS','idSuffix','useDependency','createElement','UniverUi','Subject','OFFLINE','_fetchOperations','913rzPsPr','tag','_commandService','random','useEffect','Disposable','IUIPartsService','_injector','useRef','153333aiYajx','offline','none','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init'];_0x455e=function(){return _0x13ae3c;};return _0x455e();}(function(_0x48eec4,_0x127dc4){const _0x4ea182=_0x577f,_0x5213b1=_0x48eec4();while(!![]){try{const _0x4eb222=-parseInt(_0x4ea182(0x126))/0x1+parseInt(_0x4ea182(0x173))/0x2*(parseInt(_0x4ea182(0xc3))/0x3)+-parseInt(_0x4ea182(0x162))/0x4*(-parseInt(_0x4ea182(0x161))/0x5)+-parseInt(_0x4ea182(0x192))/0x6*(-parseInt(_0x4ea182(0x130))/0x7)+parseInt(_0x4ea182(0x187))/0x8*(parseInt(_0x4ea182(0x154))/0x9)+parseInt(_0x4ea182(0x17f))/0xa*(parseInt(_0x4ea182(0x11d))/0xb)+-parseInt(_0x4ea182(0xfe))/0xc*(parseInt(_0x4ea182(0xb7))/0xd);if(_0x4eb222===_0x127dc4)break;else _0x5213b1['push'](_0x5213b1['shift']());}catch(_0x342691){_0x5213b1['push'](_0x5213b1['shift']());}}}(_0x455e,0x190d4),function(_0x3b5c6d,_0xa02de6){const _0x495229=_0x577f;typeof exports==_0x495229(0xd2)&&typeof module<'u'?_0xa02de6(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x495229(0x100)&&define['amd']?define([_0x495229(0x136),_0x495229(0x18a),'@univerjs/ui',_0x495229(0xf8),'@univerjs/design',_0x495229(0x168),_0x495229(0xd9),_0x495229(0xbe),'@univerjs/sheets',_0x495229(0x101),_0x495229(0xcd),_0x495229(0x17e)],_0xa02de6):(_0x3b5c6d=typeof globalThis<'u'?globalThis:_0x3b5c6d||self,_0xa02de6(_0x3b5c6d['UniverProLiveShare']={},_0x3b5c6d[_0x495229(0xff)],_0x3b5c6d[_0x495229(0x119)],_0x3b5c6d[_0x495229(0x145)],_0x3b5c6d[_0x495229(0xcc)],_0x3b5c6d[_0x495229(0x145)],_0x3b5c6d['UniverProCollaboration'],_0x3b5c6d[_0x495229(0x176)],_0x3b5c6d[_0x495229(0x16a)],_0x3b5c6d[_0x495229(0x101)],_0x3b5c6d[_0x495229(0x101)][_0x495229(0x15b)],_0x3b5c6d[_0x495229(0x133)]));}(this,function(_0xd6edbd,_0x23ca38,_0x11871e,_0x37bbbc,_0x3e2498,_0x1a1d01,_0x1dc02e,_0x330d33,_0x5b423e,_0x4fde45,_0x3545ba,_0x5e7b34){'use strict';const _0x4d1bed=_0x577f;var _0x50add7=Object[_0x4d1bed(0xef)],_0x50922b=(_0x435e53,_0x4230dd,_0x5a9314)=>_0x4230dd in _0x435e53?_0x50add7(_0x435e53,_0x4230dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a9314}):_0x435e53[_0x4230dd]=_0x5a9314,_0x2fcc5c=(_0x299919,_0x1e5854,_0x46267d)=>_0x50922b(_0x299919,typeof _0x1e5854!=_0x4d1bed(0xda)?_0x1e5854+'':_0x1e5854,_0x46267d);function _0x56ceb2({ref:_0x1c2639,..._0x361ab8}){const _0xda5c0c=_0x4d1bed,{icon:_0x33594d,id:_0xc85d3b,className:_0x5ed5ba,extend:_0x297e13,..._0x67aa3b}=_0x361ab8,_0x1b08b3=(_0xda5c0c(0x13b)+_0xc85d3b+'\x20'+(_0x5ed5ba||''))['trim'](),_0x2813f5=_0x1a1d01[_0xda5c0c(0x125)]('_'+_0x312d9d());return _0x392dbf(_0x33594d,''+_0xc85d3b,{'defIds':_0x33594d[_0xda5c0c(0x13f)],'idSuffix':_0x2813f5['current']},{'ref':_0x1c2639,'className':_0x1b08b3,..._0x67aa3b},_0x297e13);}function _0x392dbf(_0xefa539,_0x26c080,_0x43a319,_0x5af50a,_0x4d5eab){const _0x2881bc=_0x4d1bed;return _0x1a1d01[_0x2881bc(0x118)](_0xefa539['tag'],{'key':_0x26c080,..._0x450e1a(_0xefa539,_0x43a319,_0x4d5eab),..._0x5af50a},(_0x21f69a(_0xefa539,_0x43a319)['children']||[])[_0x2881bc(0x18e)]((_0x5b213d,_0xe8846f)=>_0x392dbf(_0x5b213d,_0x26c080+'-'+_0xefa539[_0x2881bc(0x11e)]+'-'+_0xe8846f,_0x43a319,void 0x0,_0x4d5eab)));}function _0x450e1a(_0x5d0082,_0x4ed77d,_0x16d69e){const _0x3f0030=_0x4d1bed,_0x1b4a62={..._0x5d0082[_0x3f0030(0xf3)]};_0x16d69e!=null&&_0x16d69e[_0x3f0030(0xc2)]&&_0x1b4a62[_0x3f0030(0x102)]===_0x3f0030(0xc2)&&(_0x1b4a62['fill']=_0x16d69e[_0x3f0030(0xc2)]),_0x5d0082[_0x3f0030(0x11e)]===_0x3f0030(0xfb)&&_0x1b4a62['id']&&(_0x1b4a62['id']=_0x1b4a62['id']+_0x4ed77d[_0x3f0030(0x116)]),Object[_0x3f0030(0xe9)](_0x1b4a62)['forEach'](([_0x1bf19b,_0xa6e7f2])=>{const _0x4e6f04=_0x3f0030;_0x1bf19b===_0x4e6f04(0xfb)&&typeof _0xa6e7f2==_0x4e6f04(0x15e)&&(_0x1b4a62[_0x1bf19b]=_0xa6e7f2['replace'](/url\(#(.*)\)/,_0x4e6f04(0xc9)+_0x4ed77d[_0x4e6f04(0x116)]+')'));});const {defIds:_0x53e1dc}=_0x4ed77d;return!_0x53e1dc||_0x53e1dc['length']===0x0||(_0x5d0082[_0x3f0030(0x11e)]==='use'&&_0x1b4a62[_0x3f0030(0xe2)]&&(_0x1b4a62[_0x3f0030(0xe2)]=_0x1b4a62[_0x3f0030(0xe2)]+_0x4ed77d[_0x3f0030(0x116)]),Object['entries'](_0x1b4a62)[_0x3f0030(0xd1)](([_0x5102ee,_0x1daa9d])=>{const _0x39af65=_0x3f0030;typeof _0x1daa9d==_0x39af65(0x15e)&&(_0x1b4a62[_0x5102ee]=_0x1daa9d['replace'](/url\(#(.*)\)/,_0x39af65(0xc9)+_0x4ed77d[_0x39af65(0x116)]+')'));})),_0x1b4a62;}function _0x21f69a(_0x19a2d1,_0xd1fd8e){const _0xc0d1a2=_0x4d1bed;var _0x14ab78;const {defIds:_0x5576d6}=_0xd1fd8e;return!_0x5576d6||_0x5576d6[_0xc0d1a2(0xde)]===0x0?_0x19a2d1:_0x19a2d1['tag']==='defs'&&((_0x14ab78=_0x19a2d1[_0xc0d1a2(0xc8)])!=null&&_0x14ab78['length'])?{..._0x19a2d1,'children':_0x19a2d1[_0xc0d1a2(0xc8)][_0xc0d1a2(0x18e)](_0x430fea=>typeof _0x430fea['attrs']['id']=='string'&&_0x5576d6&&_0x5576d6[_0xc0d1a2(0xfd)](_0x430fea['attrs']['id'])?{..._0x430fea,'attrs':{..._0x430fea[_0xc0d1a2(0xf3)],'id':_0x430fea['attrs']['id']+_0xd1fd8e[_0xc0d1a2(0x116)]}}:_0x430fea)}:_0x19a2d1;}function _0x312d9d(){const _0x29c66e=_0x4d1bed;return Math[_0x29c66e(0x120)]()['toString'](0x24)[_0x29c66e(0x15d)](0x2,0x8);}_0x56ceb2['displayName']='UniverIcon';const _0x5e6ba8={'tag':_0x4d1bed(0x17b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4d1bed(0x128),'viewBox':_0x4d1bed(0xbf),'width':'1em','height':_0x4d1bed(0x16f)},'children':[{'tag':_0x4d1bed(0xe4),'attrs':{'fill':_0x4d1bed(0x10d),'d':_0x4d1bed(0x129)}},{'tag':_0x4d1bed(0xe4),'attrs':{'fill':_0x4d1bed(0x10d),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x4d1bed(0x171),'clipRule':'evenodd'}}]},_0x146194=_0x1a1d01[_0x4d1bed(0xf1)](function(_0x2c6401,_0x506216){const _0x28435d=_0x4d1bed;return _0x1a1d01['createElement'](_0x56ceb2,Object[_0x28435d(0x13a)]({},_0x2c6401,{'id':_0x28435d(0x170),'ref':_0x506216,'icon':_0x5e6ba8}));});_0x146194['displayName']=_0x4d1bed(0x156);class _0x4a9382 extends _0x23ca38[_0x4d1bed(0x122)]{constructor(){const _0x47c1fb=_0x4d1bed;super(...arguments),_0x2fcc5c(this,'_sharedOperations',new Set()),_0x2fcc5c(this,_0x47c1fb(0x114),new Set());}[_0x4d1bed(0x178)](_0x479413){const _0x5940f6=_0x4d1bed;return this[_0x5940f6(0x15f)][_0x5940f6(0x184)](_0x479413),_0x23ca38[_0x5940f6(0x175)](()=>this[_0x5940f6(0x15f)][_0x5940f6(0xcb)](_0x479413));}[_0x4d1bed(0x185)](_0x52bc6e){const _0xc90cdb=_0x4d1bed;return this[_0xc90cdb(0x114)][_0xc90cdb(0x184)](_0x52bc6e),_0x23ca38[_0xc90cdb(0x175)](()=>this[_0xc90cdb(0x114)]['delete'](_0x52bc6e));}[_0x4d1bed(0xdb)](_0x539e73){const _0x489ed3=_0x4d1bed;return this[_0x489ed3(0x15f)]['has'](_0x539e73);}[_0x4d1bed(0x135)](_0x119415){const _0x42d526=_0x4d1bed;return Array['from'](this['_reporters'])[_0x42d526(0x18e)](_0x502bed=>_0x502bed(_0x119415));}}var _0xd9845=Object[_0x4d1bed(0xd8)],_0x1a2629=(_0x54e890,_0x4bb39b,_0x399cb5,_0x2305a1)=>{const _0x199b24=_0x4d1bed;for(var _0x565c89=_0x2305a1>0x1?void 0x0:_0x2305a1?_0xd9845(_0x4bb39b,_0x399cb5):_0x4bb39b,_0x14308c=_0x54e890[_0x199b24(0xde)]-0x1,_0x43328c;_0x14308c>=0x0;_0x14308c--)(_0x43328c=_0x54e890[_0x14308c])&&(_0x565c89=_0x43328c(_0x565c89)||_0x565c89);return _0x565c89;},_0xacafc2=(_0x5f50c6,_0x51fd70)=>(_0x237ddd,_0x1a20bc)=>_0x51fd70(_0x237ddd,_0x1a20bc,_0x5f50c6);_0xd6edbd[_0x4d1bed(0x16d)]=class extends _0x23ca38[_0x4d1bed(0xd0)]{constructor(_0x4c166f,_0x3a874c,_0x28e025){const _0x122a00=_0x4d1bed;super(),_0x2fcc5c(this,'_entities',new Map()),(this[_0x122a00(0xf4)]=_0x4c166f,this[_0x122a00(0x124)]=_0x3a874c,this[_0x122a00(0xed)]=_0x28e025,this[_0x122a00(0x12c)]());}async['getLiveShareCoordinator'](_0x2449a4){const _0x4db2f6=_0x4d1bed;return this[_0x4db2f6(0x107)]['has'](_0x2449a4)||await this[_0x4db2f6(0x143)](_0x2449a4),this[_0x4db2f6(0x107)]['get'](_0x2449a4);}[_0x4d1bed(0xec)](_0x40a7ac){const _0x3f79ed=_0x4d1bed;var _0x16b655;return(_0x16b655=this['_entities'][_0x3f79ed(0xe0)](_0x40a7ac))!=null?_0x16b655:null;}[_0x4d1bed(0x12c)](){const _0x1daf68=_0x4d1bed;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x23ca38[_0x1daf68(0x105)][_0x1daf68(0x172)])['pipe'](_0x3545ba['takeUntil'](this[_0x1daf68(0xf0)]))[_0x1daf68(0x186)](async _0x2c1f2=>{const _0x3f79ff=_0x1daf68,_0x32eaef=_0x2c1f2[_0x3f79ff(0x17c)]();this[_0x3f79ff(0x107)][_0x3f79ff(0x16e)](_0x32eaef)||this['_startLiveShareCoordinator'](_0x32eaef);}),this[_0x1daf68(0xf4)][_0x1daf68(0xb5)](_0x23ca38[_0x1daf68(0x105)][_0x1daf68(0x172)])['pipe'](_0x3545ba[_0x1daf68(0xfa)](this[_0x1daf68(0xf0)]))['subscribe'](_0x43de35=>{const _0x315de6=_0x1daf68,_0x4b7129=_0x43de35[_0x315de6(0x17c)](),_0x24ab55=this[_0x315de6(0x107)][_0x315de6(0xe0)](_0x4b7129);_0x24ab55==null||_0x24ab55['dispose']();});}async['_startLiveShareCoordinator'](_0x37b822){const _0x378871=_0x4d1bed,_0x3c98aa=await this[_0x378871(0xed)][_0x378871(0x14a)](_0x37b822),_0x20fdcb=this[_0x378871(0x124)]['createInstance'](_0xd6edbd[_0x378871(0x177)],_0x37b822,_0x3c98aa);return _0x20fdcb['init'](),this[_0x378871(0x107)][_0x378871(0x148)](_0x37b822,_0x20fdcb),_0x20fdcb;}},_0xd6edbd[_0x4d1bed(0x16d)]=_0x1a2629([_0xacafc2(0x0,_0x23ca38[_0x4d1bed(0x12f)]),_0xacafc2(0x1,_0x23ca38['Inject'](_0x23ca38[_0x4d1bed(0x14d)])),_0xacafc2(0x2,_0x23ca38[_0x4d1bed(0x10e)](_0x330d33[_0x4d1bed(0xc0)]))],_0xd6edbd[_0x4d1bed(0x16d)]);var _0xbf16ad=(_0x42b649=>(_0x42b649[_0x4d1bed(0x11b)]=_0x4d1bed(0x127),_0x42b649[_0x4d1bed(0xdf)]='idle',_0x42b649['FOLLOWING']=_0x4d1bed(0x144),_0x42b649[_0x4d1bed(0x108)]=_0x4d1bed(0x13d),_0x42b649[_0x4d1bed(0x132)]='presenting',_0x42b649))(_0xbf16ad||{});const _0x524a0d=_0x4d1bed(0xfc),_0x34410b=0xc8;_0xd6edbd[_0x4d1bed(0x177)]=class extends _0x23ca38[_0x4d1bed(0xd0)]{constructor(_0x225b1d,_0x5de456,_0x5cf7ed,_0x194c9b,_0x201e80){const _0x5cbf0d=_0x4d1bed;super(),_0x2fcc5c(this,'_status$',new _0x4fde45[(_0x5cbf0d(0xb2))](_0x5cbf0d(0xf2))),_0x2fcc5c(this,_0x5cbf0d(0x190),this['_status$'][_0x5cbf0d(0x17a)]()),_0x2fcc5c(this,_0x5cbf0d(0x12c),!0x1),_0x2fcc5c(this,'_commandDisposable',null),_0x2fcc5c(this,_0x5cbf0d(0xe6),null),(this['_unitID']=_0x225b1d,this['_collabSession']=_0x5de456,this['_configService']=_0x5cf7ed,this['_liveShareService']=_0x194c9b,this[_0x5cbf0d(0x11f)]=_0x201e80);}get['_status'](){const _0x22a5db=_0x4d1bed;return this[_0x22a5db(0xf5)][_0x22a5db(0xbb)]();}['dispose'](){const _0x48c719=_0x4d1bed;var _0x58971f;(_0x58971f=this[_0x48c719(0x14e)])==null||_0x58971f[_0x48c719(0x179)](),this['_status$'][_0x48c719(0xb0)](_0x48c719(0xf2)),this[_0x48c719(0xf5)][_0x48c719(0x137)]();}[_0x4d1bed(0xce)](){const _0x101633=_0x4d1bed;return this[_0x101633(0x13e)];}[_0x4d1bed(0x18d)](){const _0x2204c6=_0x4d1bed;this[_0x2204c6(0x12c)]||(this[_0x2204c6(0x12c)]=!0x0,this[_0x2204c6(0xee)][_0x2204c6(0xbc)][_0x2204c6(0xb6)](_0x3545ba[_0x2204c6(0xfa)](this['dispose$']))[_0x2204c6(0x186)](_0x1ce9b5=>{const _0x2dc275=_0x2204c6;switch(_0x1ce9b5){case _0x330d33[_0x2dc275(0x153)][_0x2dc275(0x11b)]:this[_0x2dc275(0x140)]();break;case _0x330d33[_0x2dc275(0x153)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x2204c6(0xee)][_0x2204c6(0xe1)]['pipe'](_0x3545ba[_0x2204c6(0xfa)](this[_0x2204c6(0xf0)]))[_0x2204c6(0x186)](_0x240fa1=>{const _0x549d56=_0x2204c6,{eventID:_0x3a5e0f}=_0x240fa1;switch(_0x3a5e0f){case _0x1dc02e[_0x549d56(0x155)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x240fa1);break;case _0x1dc02e[_0x549d56(0x155)][_0x549d56(0x151)]:this[_0x549d56(0xb8)](_0x240fa1);break;case _0x1dc02e[_0x549d56(0x155)][_0x549d56(0x110)]:this[_0x549d56(0x182)]();break;case _0x1dc02e[_0x549d56(0x155)][_0x549d56(0x115)]:this[_0x549d56(0xf9)](_0x240fa1);break;}}));}['tryStartPresenting'](){const _0x59d3f0=_0x4d1bed;this[_0x59d3f0(0xee)][_0x59d3f0(0x17d)]({'eventID':_0x1dc02e[_0x59d3f0(0x155)][_0x59d3f0(0x164)],'data':{'unitID':this['_unitID'],'userID':this[_0x59d3f0(0xee)][_0x59d3f0(0xe3)]()}},this['_unitID']);}[_0x4d1bed(0xd3)](){const _0x5eadb4=_0x4d1bed;this['_status']==='presenting'&&(this[_0x5eadb4(0xf5)][_0x5eadb4(0xb0)]('idle'),this[_0x5eadb4(0xee)][_0x5eadb4(0x17d)]({'eventID':_0x1dc02e[_0x5eadb4(0x155)][_0x5eadb4(0x110)],'data':{'unitID':this[_0x5eadb4(0x103)]}},this[_0x5eadb4(0x103)]));}[_0x4d1bed(0xd4)](){const _0x88d01e=_0x4d1bed;this[_0x88d01e(0x13e)]===_0x88d01e(0x13d)&&(this[_0x88d01e(0xf5)][_0x88d01e(0xb0)]('following'),this[_0x88d01e(0xf6)]());}[_0x4d1bed(0x14c)](){const _0x104b8b=_0x4d1bed;this[_0x104b8b(0x13e)]===_0x104b8b(0x144)&&this['_stopFollowing']();}[_0x4d1bed(0x163)](_0x34f35a){const _0x114237=_0x4d1bed,{presenter:_0x11619d}=_0x34f35a['data'],_0x37c5e0=this[_0x114237(0xee)]['getMemberID']();this['_presenter']=_0x11619d,_0x11619d===_0x37c5e0?(this[_0x114237(0x139)](),this[_0x114237(0xba)]()):this[_0x114237(0x13e)]!==_0x114237(0x13d)&&(this[_0x114237(0x158)](),this[_0x114237(0xf6)]());}[_0x4d1bed(0x11c)](){const _0x3b0fe8=_0x4d1bed,_0xa9c742={'eventID':_0x1dc02e[_0x3b0fe8(0x155)][_0x3b0fe8(0x146)]};this[_0x3b0fe8(0xee)]['send'](_0xa9c742,this[_0x3b0fe8(0x103)]);}[_0x4d1bed(0x182)](){const _0x55b557=_0x4d1bed;this[_0x55b557(0xe6)]=null,this['_status']!==_0x55b557(0x18b)&&this['_beIdle']();}[_0x4d1bed(0xf9)](_0xa5501e){const _0x3bab69=_0x4d1bed;if(this[_0x3bab69(0x13e)]===_0x3bab69(0x144)&&this[_0x3bab69(0xe6)]===_0xa5501e[_0x3bab69(0x180)]['memberID']){const _0x1e8cc2=_0x1dc02e['parseProtocolChangeset'](_0xa5501e['data'])[_0x3bab69(0xc6)][_0x3bab69(0x12d)]()['find'](_0x4e4cd9=>_0x4e4cd9['id']===_0x5b423e[_0x3bab69(0x10c)]['id']);if(_0x1e8cc2){const _0x1992fe=_0x1e8cc2[_0x3bab69(0x149)][_0x3bab69(0xc7)],_0x31cd2d=_0x1e8cc2['params'][_0x3bab69(0x174)]['id'];setTimeout(()=>{const _0x2c14e5=_0x3bab69;this['_commandService'][_0x2c14e5(0x10a)](_0x5b423e[_0x2c14e5(0xd6)]['id'],{'unitId':_0x1992fe,'subUnitId':_0x31cd2d},{'fromCollab':!0x0});});}}}[_0x4d1bed(0xba)](){const _0x55e150=_0x4d1bed;this[_0x55e150(0xf5)]['next']('presenting');const _0x18d133=new Map(),_0x17bbd1=this[_0x55e150(0x14e)]=new _0x23ca38['DisposableCollection']();_0x17bbd1[_0x55e150(0x184)](_0x23ca38[_0x55e150(0x175)](()=>{const _0x518125=_0x55e150;_0x18d133[_0x518125(0xd1)](_0x211007=>_0x211007[_0x518125(0x137)]()),_0x18d133[_0x518125(0xca)]();})),_0x17bbd1[_0x55e150(0x184)](this[_0x55e150(0x11f)][_0x55e150(0x160)](_0x52e40e=>{const _0x27bf7a=_0x55e150;var _0x1fbbf4;if(_0x52e40e['type']!==_0x23ca38[_0x27bf7a(0x15a)][_0x27bf7a(0xad)]||!this[_0x27bf7a(0xdc)][_0x27bf7a(0xdb)](_0x52e40e['id']))return;const {id:_0x259bde}=_0x52e40e;let _0x59062e;_0x18d133[_0x27bf7a(0x16e)](_0x259bde)?_0x59062e=_0x18d133[_0x27bf7a(0xe0)](_0x259bde):(_0x59062e=new _0x4fde45[(_0x27bf7a(0x11a))](),_0x18d133[_0x27bf7a(0x148)](_0x259bde,_0x59062e),_0x59062e[_0x27bf7a(0xb6)](_0x3545ba[_0x27bf7a(0x131)]((_0x1fbbf4=this[_0x27bf7a(0xf7)][_0x27bf7a(0xaf)](_0x524a0d))!=null?_0x1fbbf4:_0x34410b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x27bf7a(0x186)](_0x19eba5=>{const _0x30ac76=_0x27bf7a;this[_0x30ac76(0xee)][_0x30ac76(0x17d)]({'eventID':_0x1dc02e[_0x30ac76(0x155)][_0x30ac76(0x151)],'data':{'unitID':this['_unitID'],'operations':{[_0x19eba5['id']]:{'id':_0x19eba5['id'],'params':JSON['stringify'](_0x19eba5[_0x30ac76(0x149)])}}}},this[_0x30ac76(0x103)]);})),_0x59062e['next'](_0x52e40e);})),this[_0x55e150(0xdc)][_0x55e150(0x135)](this[_0x55e150(0x103)])[_0x55e150(0xd1)](_0x9878d4=>this[_0x55e150(0xee)][_0x55e150(0x17d)]({'eventID':_0x1dc02e[_0x55e150(0x155)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x55e150(0x103)],'operations':{[_0x9878d4['id']]:{'id':_0x9878d4['id'],'params':JSON['stringify'](_0x9878d4[_0x55e150(0x149)])}}}},this[_0x55e150(0x103)]));}[_0x4d1bed(0x158)](){const _0x5a90d9=_0x4d1bed;var _0x3c08e4;this[_0x5a90d9(0xf5)][_0x5a90d9(0xb0)](_0x5a90d9(0xf2)),(_0x3c08e4=this[_0x5a90d9(0x14e)])==null||_0x3c08e4[_0x5a90d9(0x179)](),this[_0x5a90d9(0x14e)]=null;}[_0x4d1bed(0xf6)](){const _0x42bcdf=_0x4d1bed;var _0x321239;(_0x321239=this[_0x42bcdf(0x14e)])==null||_0x321239[_0x42bcdf(0x179)](),this[_0x42bcdf(0xf5)][_0x42bcdf(0xb0)](_0x42bcdf(0x144));}[_0x4d1bed(0x14b)](){const _0x7cf7c8=_0x4d1bed;var _0x50390e;this[_0x7cf7c8(0xf5)][_0x7cf7c8(0xb0)](_0x7cf7c8(0xf2)),(_0x50390e=this[_0x7cf7c8(0x14e)])==null||_0x50390e[_0x7cf7c8(0x179)](),this[_0x7cf7c8(0x14e)]=null;}[_0x4d1bed(0x139)](){const _0x23274c=_0x4d1bed;var _0xeac04f;this[_0x23274c(0xf5)][_0x23274c(0xb0)](_0x23274c(0x13d)),(_0xeac04f=this['_commandDisposable'])==null||_0xeac04f[_0x23274c(0x179)]();}[_0x4d1bed(0xb8)](_0x408dc9){const _0x2f699a=_0x4d1bed;if([_0x2f699a(0x18b),'not-following',_0x2f699a(0x127)]['includes'](this[_0x2f699a(0x13e)])||!_0x408dc9[_0x2f699a(0x180)][_0x2f699a(0xcf)]||_0x408dc9['data']['presenter']===this[_0x2f699a(0xee)][_0x2f699a(0xe3)]())return;this[_0x2f699a(0x13e)]===_0x2f699a(0xf2)&&this[_0x2f699a(0xf6)]();const _0x1ecc2c=_0x408dc9[_0x2f699a(0x180)][_0x2f699a(0xae)];Object[_0x2f699a(0x157)](_0x1ecc2c)[_0x2f699a(0xd1)](_0x41c8b4=>{const _0x5c572b=_0x2f699a;this[_0x5c572b(0x11f)][_0x5c572b(0x10a)](_0x41c8b4['id'],_0x41c8b4[_0x5c572b(0x149)]?JSON[_0x5c572b(0x14f)](_0x41c8b4[_0x5c572b(0x149)]):null,{'fromCollab':!0x0});});}[_0x4d1bed(0x140)](){const _0xd512df=_0x4d1bed;var _0x405ce8;this[_0xd512df(0xf5)][_0xd512df(0xb0)]('offline'),(_0x405ce8=this[_0xd512df(0x14e)])==null||_0x405ce8[_0xd512df(0x179)]();}[_0x4d1bed(0x193)](){const _0x429612=_0x4d1bed;this[_0x429612(0xf5)]['next']('idle'),this[_0x429612(0x11c)]();}},_0xd6edbd['LiveShareCoordinator']=_0x1a2629([_0xacafc2(0x2,_0x23ca38[_0x4d1bed(0x18c)]),_0xacafc2(0x3,_0x23ca38['Inject'](_0x4a9382)),_0xacafc2(0x4,_0x23ca38['ICommandService'])],_0xd6edbd['LiveShareCoordinator']);function _0x5ee3cb(){const _0x5b8e9c=_0x4d1bed,_0x412a26=_0x11871e[_0x5b8e9c(0x117)](_0xd6edbd[_0x5b8e9c(0x16d)]),_0x9cf8f6=_0x11871e[_0x5b8e9c(0x117)](_0x23ca38[_0x5b8e9c(0x12f)]),_0x2b0f7f=_0x11871e[_0x5b8e9c(0x183)](()=>_0x9cf8f6[_0x5b8e9c(0x111)](_0x23ca38[_0x5b8e9c(0x105)][_0x5b8e9c(0x172)]),void 0x0,!0x1,[]),[_0x5b4822,_0x269570]=_0x1a1d01[_0x5b8e9c(0x141)](null),[_0x188429,_0xc11342]=_0x1a1d01[_0x5b8e9c(0x141)](_0xbf16ad[_0x5b8e9c(0xdf)]),_0x19ecf9=_0x1a1d01['useRef'](null);return _0x1a1d01[_0x5b8e9c(0x121)](()=>(_0x2b0f7f&&_0x412a26[_0x5b8e9c(0xe7)](_0x2b0f7f[_0x5b8e9c(0x17c)]())['then'](_0x35476c=>{const _0x59b97e=_0x5b8e9c;_0x269570(_0x35476c),_0x19ecf9[_0x59b97e(0x191)]=_0x35476c['status$'][_0x59b97e(0x186)](_0x5b730a=>{_0xc11342(_0x5b730a);});}),()=>{const _0x5eb70d=_0x5b8e9c;var _0x309e6e;(_0x309e6e=_0x19ecf9[_0x5eb70d(0x191)])==null||_0x309e6e['unsubscribe'](),_0x19ecf9[_0x5eb70d(0x191)]=null;}),[_0x2b0f7f,_0x412a26]),_0x5b4822?_0x37bbbc[_0x5b8e9c(0x134)](_0x3e2498['Dropdown'],{'align':'end','disabled':_0x188429===_0xbf16ad[_0x5b8e9c(0x11b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x37bbbc[_0x5b8e9c(0x134)](_0x17a28b,{'status':_0x188429,'coordinator':_0x5b4822}),'children':_0x37bbbc[_0x5b8e9c(0x134)]('button',{'className':_0x3e2498[_0x5b8e9c(0xb1)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x188429===_0xbf16ad['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x188429!==_0xbf16ad[_0x5b8e9c(0x11b)]}),'type':_0x5b8e9c(0x167),'children':_0x37bbbc[_0x5b8e9c(0x134)](_0x146194,{'className':_0x5b8e9c(0x147)})})}):null;}function _0x17a28b(_0x488628){const _0x1a0db7=_0x4d1bed,{status:_0x283d6e,coordinator:_0x4cf524}=_0x488628;switch(_0x283d6e){case _0xbf16ad[_0x1a0db7(0xdf)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x54ccbc,{'coordinator':_0x4cf524});case _0xbf16ad[_0x1a0db7(0x10b)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x1678b3,{'coordinator':_0x4cf524});case _0xbf16ad[_0x1a0db7(0x108)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x398626,{'coordinator':_0x4cf524});case _0xbf16ad[_0x1a0db7(0x11b)]:return _0x37bbbc[_0x1a0db7(0x134)](_0x105bcb,{});case _0xbf16ad['PRESENTING']:return _0x37bbbc[_0x1a0db7(0x134)](_0x4ed9fe,{'coordinator':_0x4cf524});default:return null;}}function _0x54ccbc(_0x421b8){const _0x5479a6=_0x4d1bed,{coordinator:_0x5cad1f}=_0x421b8;return _0x37bbbc[_0x5479a6(0xe8)](_0x37bbbc[_0x5479a6(0xd5)],{'children':[_0x37bbbc['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5479a6(0x15c)}),_0x37bbbc[_0x5479a6(0x134)](_0x3e2498[_0x5479a6(0x112)],{'onClick':()=>_0x5cad1f['tryStartPresenting'](),'children':'Start'})]});}function _0x1678b3(_0x157fc1){const _0x5caae9=_0x4d1bed,{coordinator:_0x54b157}=_0x157fc1;return _0x37bbbc[_0x5caae9(0xe8)](_0x37bbbc['Fragment'],{'children':[_0x37bbbc[_0x5caae9(0x134)](_0x5caae9(0xe5),{'className':_0x5caae9(0x12b),'children':_0x5caae9(0xd7)}),_0x37bbbc[_0x5caae9(0x134)](_0x3e2498['Button'],{'onClick':()=>_0x54b157[_0x5caae9(0x14c)](),'children':'Stop\x20following'})]});}function _0x398626(_0x2d490e){const _0x552ab3=_0x4d1bed,{coordinator:_0x42fb09}=_0x2d490e;return _0x37bbbc['jsxs'](_0x37bbbc['Fragment'],{'children':[_0x37bbbc[_0x552ab3(0x134)]('div',{'className':_0x552ab3(0x12b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x37bbbc[_0x552ab3(0x134)](_0x3e2498[_0x552ab3(0x112)],{'variant':_0x552ab3(0x12e),'onClick':()=>_0x42fb09[_0x552ab3(0xd4)](),'children':_0x552ab3(0x13c)})]});}function _0x4ed9fe(_0x52aa89){const _0x1c4a57=_0x4d1bed,{coordinator:_0x56fea9}=_0x52aa89;return _0x37bbbc['jsxs'](_0x37bbbc[_0x1c4a57(0xd5)],{'children':[_0x37bbbc[_0x1c4a57(0x134)]('div',{'className':_0x1c4a57(0x12b),'children':_0x1c4a57(0x10f)}),_0x37bbbc[_0x1c4a57(0x134)](_0x3e2498[_0x1c4a57(0x112)],{'variant':_0x1c4a57(0x16c),'onClick':()=>_0x56fea9[_0x1c4a57(0xd3)](),'children':'Stop\x20presenting'})]});}function _0x105bcb(){const _0x54cac4=_0x4d1bed;return _0x37bbbc[_0x54cac4(0x134)](_0x37bbbc[_0x54cac4(0xd5)],{'children':'You\x27are\x20offline.'});}var _0x976bc1=Object[_0x4d1bed(0xd8)],_0x645d76=(_0x182498,_0x401793,_0x3e83c1,_0x195f18)=>{const _0x2012ca=_0x4d1bed;for(var _0x52719c=_0x195f18>0x1?void 0x0:_0x195f18?_0x976bc1(_0x401793,_0x3e83c1):_0x401793,_0x318e0b=_0x182498[_0x2012ca(0xde)]-0x1,_0xab9e5a;_0x318e0b>=0x0;_0x318e0b--)(_0xab9e5a=_0x182498[_0x318e0b])&&(_0x52719c=_0xab9e5a(_0x52719c)||_0x52719c);return _0x52719c;},_0x43603a=(_0x385565,_0xe21fe8)=>(_0x268811,_0x9fdeae)=>_0xe21fe8(_0x268811,_0x9fdeae,_0x385565);_0xd6edbd[_0x4d1bed(0x189)]=class extends _0x23ca38[_0x4d1bed(0x122)]{constructor(_0x31657a,_0x939576){const _0x406ffa=_0x4d1bed;super(),this[_0x406ffa(0x124)]=_0x31657a,this[_0x406ffa(0x12a)]=_0x939576,this[_0x406ffa(0xc5)]();}[_0x4d1bed(0xc5)](){const _0x322dc6=_0x4d1bed;this[_0x322dc6(0x18f)](this[_0x322dc6(0x12a)][_0x322dc6(0x109)](_0x11871e[_0x322dc6(0x106)][_0x322dc6(0xdd)],()=>_0x11871e[_0x322dc6(0x113)](_0x5ee3cb,this[_0x322dc6(0x124)])));}},_0xd6edbd[_0x4d1bed(0x189)]=_0x645d76([_0x43603a(0x0,_0x23ca38[_0x4d1bed(0x10e)](_0x23ca38[_0x4d1bed(0x14d)])),_0x43603a(0x1,_0x11871e[_0x4d1bed(0x123)])],_0xd6edbd[_0x4d1bed(0x189)]);const _0x517978=_0x4d1bed(0x138),_0x127e44={};var _0x4f03c5=Object[_0x4d1bed(0xd8)],_0x5e1653=(_0x7cadee,_0x27de71,_0x118623,_0x2ab506)=>{const _0x144ca6=_0x4d1bed;for(var _0x48ac1f=_0x2ab506>0x1?void 0x0:_0x2ab506?_0x4f03c5(_0x27de71,_0x118623):_0x27de71,_0x28e62d=_0x7cadee[_0x144ca6(0xde)]-0x1,_0x350a4b;_0x28e62d>=0x0;_0x28e62d--)(_0x350a4b=_0x7cadee[_0x28e62d])&&(_0x48ac1f=_0x350a4b(_0x48ac1f)||_0x48ac1f);return _0x48ac1f;},_0x5149e7=(_0x4d8c30,_0x5d2ace)=>(_0x149e6f,_0x4f0808)=>_0x5d2ace(_0x149e6f,_0x4f0808,_0x4d8c30);let _0x52d848=class extends _0x23ca38[_0x4d1bed(0x122)]{constructor(_0x2523c5){const _0x37b56b=_0x4d1bed;super(),this[_0x37b56b(0xdc)]=_0x2523c5,this[_0x37b56b(0x12c)]();}['_init'](){const _0x131ff6=_0x4d1bed;[_0x5e7b34['SetZoomRatioOperation']['id'],_0x5e7b34[_0x131ff6(0x165)]['id'],_0x5b423e[_0x131ff6(0xd6)]['id']][_0x131ff6(0xd1)](_0x4019b3=>{const _0x9376c8=_0x131ff6;this[_0x9376c8(0x18f)](this[_0x9376c8(0xdc)][_0x9376c8(0x178)](_0x4019b3));});}};_0x52d848=_0x5e1653([_0x5149e7(0x0,_0x23ca38['Inject'](_0x4a9382))],_0x52d848);var _0x112838=Object['defineProperty'],_0x455fd2=Object[_0x4d1bed(0xd8)],_0x1a9997=(_0x2937fd,_0x479119,_0x46281f)=>_0x479119 in _0x2937fd?_0x112838(_0x2937fd,_0x479119,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46281f}):_0x2937fd[_0x479119]=_0x46281f,_0x4c0cf9=(_0x34c184,_0x3eaec1,_0x56c039,_0x10d810)=>{const _0x255747=_0x4d1bed;for(var _0x482049=_0x10d810>0x1?void 0x0:_0x10d810?_0x455fd2(_0x3eaec1,_0x56c039):_0x3eaec1,_0xe8d642=_0x34c184[_0x255747(0xde)]-0x1,_0x26e466;_0xe8d642>=0x0;_0xe8d642--)(_0x26e466=_0x34c184[_0xe8d642])&&(_0x482049=_0x26e466(_0x482049)||_0x482049);return _0x482049;},_0x31dec7=(_0x99c4e0,_0x32887a)=>(_0x11f812,_0xbb8076)=>_0x32887a(_0x11f812,_0xbb8076,_0x99c4e0),_0x24bd29=(_0x309f22,_0x39557c,_0x5c5118)=>_0x1a9997(_0x309f22,typeof _0x39557c!=_0x4d1bed(0xda)?_0x39557c+'':_0x39557c,_0x5c5118);const _0x20446a=_0x4d1bed(0x150);_0xd6edbd[_0x4d1bed(0x142)]=class extends _0x23ca38[_0x4d1bed(0x181)]{constructor(_0x26f632=_0x127e44,_0x1a27ea,_0x31b711){const _0x317699=_0x4d1bed;super(),this[_0x317699(0x188)]=_0x26f632,this[_0x317699(0x124)]=_0x1a27ea,this['_configService']=_0x31b711;const {..._0x1ce773}=_0x23ca38[_0x317699(0x166)]({},_0x127e44,this[_0x317699(0x188)]);this[_0x317699(0xf7)][_0x317699(0x16b)](_0x517978,_0x1ce773);}['onStarting'](){const _0x1fdcc6=_0x4d1bed;_0x23ca38[_0x1fdcc6(0xeb)](this['_injector'],_0x23ca38['mergeOverrideWithDependencies']([[_0x4a9382],[_0xd6edbd[_0x1fdcc6(0x16d)]],[_0x52d848],[_0xd6edbd['DesktopLiveShareController']]],this[_0x1fdcc6(0x188)][_0x1fdcc6(0xc4)])),_0x23ca38['touchDependencies'](this[_0x1fdcc6(0x124)],[[_0x52d848]]);}[_0x4d1bed(0x152)](){const _0x1bcdaf=_0x4d1bed;_0x23ca38[_0x1bcdaf(0xea)](this[_0x1bcdaf(0x124)],[[_0xd6edbd['DesktopLiveShareController']]]);}},_0x24bd29(_0xd6edbd[_0x4d1bed(0x142)],_0x4d1bed(0xbd),_0x23ca38[_0x4d1bed(0x105)][_0x4d1bed(0xb3)]),_0x24bd29(_0xd6edbd[_0x4d1bed(0x142)],_0x4d1bed(0xb9),_0x20446a),_0xd6edbd[_0x4d1bed(0x142)]=_0x4c0cf9([_0x23ca38[_0x4d1bed(0x169)](_0x330d33['UniverCollaborationClientPlugin']),_0x31dec7(0x1,_0x23ca38['Inject'](_0x23ca38[_0x4d1bed(0x14d)])),_0x31dec7(0x2,_0x23ca38[_0x4d1bed(0x18c)])],_0xd6edbd['UniverLiveSharePlugin']),_0xd6edbd['LiveShare']=_0x5ee3cb,_0xd6edbd[_0x4d1bed(0x104)]=_0x4a9382,_0xd6edbd[_0x4d1bed(0xb4)]=_0xbf16ad,Object['defineProperty'](_0xd6edbd,Symbol[_0x4d1bed(0xc1)],{'value':_0x4d1bed(0x159)});}));
|
|
1
|
+
(function(_0x25a5f1,_0x5ee2a0){const _0x201ab9=_0xf61e,_0x38baec=_0x25a5f1();while(!![]){try{const _0x34a655=parseInt(_0x201ab9(0x22d))/0x1*(-parseInt(_0x201ab9(0x26c))/0x2)+-parseInt(_0x201ab9(0x299))/0x3*(parseInt(_0x201ab9(0x256))/0x4)+parseInt(_0x201ab9(0x2a7))/0x5+-parseInt(_0x201ab9(0x208))/0x6+-parseInt(_0x201ab9(0x222))/0x7*(-parseInt(_0x201ab9(0x1c6))/0x8)+parseInt(_0x201ab9(0x28c))/0x9+-parseInt(_0x201ab9(0x27f))/0xa;if(_0x34a655===_0x5ee2a0)break;else _0x38baec['push'](_0x38baec['shift']());}catch(_0x415d9f){_0x38baec['push'](_0x38baec['shift']());}}}(_0x29b1,0xd7093),function(_0x458a04,_0x3f8ddf){const _0x2c40ce=_0xf61e;typeof exports==_0x2c40ce(0x210)&&typeof module<'u'?_0x3f8ddf(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x2c40ce(0x23a)&&define[_0x2c40ce(0x28a)]?define([_0x2c40ce(0x288),'@univerjs/core','@univerjs/ui',_0x2c40ce(0x25d),_0x2c40ce(0x1bf),_0x2c40ce(0x1e4),_0x2c40ce(0x232),_0x2c40ce(0x1d4),'@univerjs/sheets',_0x2c40ce(0x1c4),_0x2c40ce(0x1ce),_0x2c40ce(0x1e9)],_0x3f8ddf):(_0x458a04=typeof globalThis<'u'?globalThis:_0x458a04||self,_0x3f8ddf(_0x458a04[_0x2c40ce(0x1f2)]={},_0x458a04[_0x2c40ce(0x1fe)],_0x458a04[_0x2c40ce(0x20a)],_0x458a04['React'],_0x458a04[_0x2c40ce(0x202)],_0x458a04[_0x2c40ce(0x207)],_0x458a04[_0x2c40ce(0x274)],_0x458a04[_0x2c40ce(0x1ec)],_0x458a04[_0x2c40ce(0x225)],_0x458a04[_0x2c40ce(0x1c4)],_0x458a04[_0x2c40ce(0x1c4)]['operators'],_0x458a04['UniverSheetsUi']));}(this,function(_0x23ec27,_0xca07eb,_0x1e8daf,_0x15af52,_0x342ef4,_0x9610cd,_0x4c8e7e,_0x54692a,_0x4e04ed,_0x11b20c,_0x46ba07,_0x14ee55){'use strict';const _0x5cf110=_0xf61e;var _0x2675bf=Object[_0x5cf110(0x22f)],_0x406f52=(_0x12c360,_0xf9a733,_0x34d84d)=>_0xf9a733 in _0x12c360?_0x2675bf(_0x12c360,_0xf9a733,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34d84d}):_0x12c360[_0xf9a733]=_0x34d84d,_0x17060a=(_0x220037,_0x3f9782,_0x4a082e)=>_0x406f52(_0x220037,typeof _0x3f9782!=_0x5cf110(0x1c0)?_0x3f9782+'':_0x3f9782,_0x4a082e);function _0x5c4b67({ref:_0xa409c6,..._0x48372f}){const _0x582d4e=_0x5cf110,{icon:_0x4dbada,id:_0x48c800,className:_0x47a455,extend:_0x8a9f3b,..._0x5625ec}=_0x48372f,_0x3006d5=(_0x582d4e(0x26a)+_0x48c800+'\x20'+(_0x47a455||''))[_0x582d4e(0x27e)](),_0x2df804=_0x9610cd[_0x582d4e(0x278)]('_'+_0x50aa13());return _0x450273(_0x4dbada,''+_0x48c800,{'defIds':_0x4dbada['defIds'],'idSuffix':_0x2df804[_0x582d4e(0x2a1)]},{'ref':_0xa409c6,'className':_0x3006d5,..._0x5625ec},_0x8a9f3b);}function _0x450273(_0x57086e,_0x44b1ec,_0x5a8eaa,_0x3a5579,_0x231daf){const _0x79af4=_0x5cf110;return _0x9610cd['createElement'](_0x57086e[_0x79af4(0x23c)],{'key':_0x44b1ec,..._0x5142da(_0x57086e,_0x5a8eaa,_0x231daf),..._0x3a5579},(_0x20ed56(_0x57086e,_0x5a8eaa)[_0x79af4(0x260)]||[])[_0x79af4(0x1cc)]((_0x4b5498,_0x229bb3)=>_0x450273(_0x4b5498,_0x44b1ec+'-'+_0x57086e[_0x79af4(0x23c)]+'-'+_0x229bb3,_0x5a8eaa,void 0x0,_0x231daf)));}function _0x5142da(_0x532f5e,_0xaa98bd,_0x11e88b){const _0x515516=_0x5cf110,_0x2b949b={..._0x532f5e['attrs']};_0x11e88b!=null&&_0x11e88b[_0x515516(0x28d)]&&_0x2b949b['fill']===_0x515516(0x28d)&&(_0x2b949b[_0x515516(0x29f)]=_0x11e88b[_0x515516(0x28d)]),_0x532f5e[_0x515516(0x23c)]==='mask'&&_0x2b949b['id']&&(_0x2b949b['id']=_0x2b949b['id']+_0xaa98bd[_0x515516(0x24a)]),Object['entries'](_0x2b949b)[_0x515516(0x273)](([_0x3c28c8,_0x50a9d8])=>{const _0xba718b=_0x515516;_0x3c28c8===_0xba718b(0x224)&&typeof _0x50a9d8==_0xba718b(0x2a3)&&(_0x2b949b[_0x3c28c8]=_0x50a9d8[_0xba718b(0x262)](/url\(#(.*)\)/,_0xba718b(0x237)+_0xaa98bd['idSuffix']+')'));});const {defIds:_0x50c15f}=_0xaa98bd;return!_0x50c15f||_0x50c15f[_0x515516(0x242)]===0x0||(_0x532f5e[_0x515516(0x23c)]===_0x515516(0x1f6)&&_0x2b949b['xlink:href']&&(_0x2b949b['xlink:href']=_0x2b949b[_0x515516(0x1e8)]+_0xaa98bd[_0x515516(0x24a)]),Object[_0x515516(0x26b)](_0x2b949b)['forEach'](([_0x51ac02,_0x462a2f])=>{const _0x52b64e=_0x515516;typeof _0x462a2f==_0x52b64e(0x2a3)&&(_0x2b949b[_0x51ac02]=_0x462a2f[_0x52b64e(0x262)](/url\(#(.*)\)/,_0x52b64e(0x237)+_0xaa98bd[_0x52b64e(0x24a)]+')'));})),_0x2b949b;}function _0x20ed56(_0x27f1e3,_0x255b24){const _0x421ae=_0x5cf110;var _0x2217ad;const {defIds:_0x35677c}=_0x255b24;return!_0x35677c||_0x35677c[_0x421ae(0x242)]===0x0?_0x27f1e3:_0x27f1e3['tag']===_0x421ae(0x1e3)&&((_0x2217ad=_0x27f1e3[_0x421ae(0x260)])!=null&&_0x2217ad[_0x421ae(0x242)])?{..._0x27f1e3,'children':_0x27f1e3[_0x421ae(0x260)][_0x421ae(0x1cc)](_0x5583a1=>typeof _0x5583a1[_0x421ae(0x21a)]['id']==_0x421ae(0x2a3)&&_0x35677c&&_0x35677c[_0x421ae(0x227)](_0x5583a1[_0x421ae(0x21a)]['id'])?{..._0x5583a1,'attrs':{..._0x5583a1[_0x421ae(0x21a)],'id':_0x5583a1[_0x421ae(0x21a)]['id']+_0x255b24[_0x421ae(0x24a)]}}:_0x5583a1)}:_0x27f1e3;}function _0x50aa13(){const _0x7bb693=_0x5cf110;return Math[_0x7bb693(0x1eb)]()['toString'](0x24)[_0x7bb693(0x1fb)](0x2,0x8);}_0x5c4b67['displayName']=_0x5cf110(0x1dc);const _0x43fcc5={'tag':_0x5cf110(0x235),'attrs':{'xmlns':_0x5cf110(0x1c3),'fill':'none','viewBox':_0x5cf110(0x24b),'width':_0x5cf110(0x244),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5cf110(0x233)}},{'tag':_0x5cf110(0x29c),'attrs':{'fill':_0x5cf110(0x255),'d':_0x5cf110(0x1fd),'fillRule':_0x5cf110(0x1d8),'clipRule':_0x5cf110(0x1d8)}}]},_0x3b017d=_0x9610cd[_0x5cf110(0x28e)](function(_0x47f382,_0x270bd4){const _0x491f7f=_0x5cf110;return _0x9610cd[_0x491f7f(0x1cd)](_0x5c4b67,Object[_0x491f7f(0x266)]({},_0x47f382,{'id':_0x491f7f(0x1e5),'ref':_0x270bd4,'icon':_0x43fcc5}));});_0x3b017d[_0x5cf110(0x226)]=_0x5cf110(0x1c2);class _0x3a905a extends _0xca07eb['Disposable']{constructor(){const _0x12a75e=_0x5cf110;super(...arguments),_0x17060a(this,_0x12a75e(0x1d6),new Set()),_0x17060a(this,'_reporters',new Set());}[_0x5cf110(0x265)](_0x4e6374){const _0xcf561b=_0x5cf110;return this['_sharedOperations'][_0xcf561b(0x2a2)](_0x4e6374),_0xca07eb[_0xcf561b(0x1fa)](()=>this[_0xcf561b(0x1d6)]['delete'](_0x4e6374));}[_0x5cf110(0x263)](_0x86728a){const _0x4c6017=_0x5cf110;return this[_0x4c6017(0x205)]['add'](_0x86728a),_0xca07eb[_0x4c6017(0x1fa)](()=>this[_0x4c6017(0x205)]['delete'](_0x86728a));}[_0x5cf110(0x25f)](_0x1d4349){const _0x16cc50=_0x5cf110;return this['_sharedOperations'][_0x16cc50(0x254)](_0x1d4349);}[_0x5cf110(0x228)](_0x13bced){const _0x217702=_0x5cf110;return Array[_0x217702(0x248)](this[_0x217702(0x205)])[_0x217702(0x1cc)](_0x334fd9=>_0x334fd9(_0x13bced));}}var _0x2c36bf=Object[_0x5cf110(0x1d7)],_0x52d0df=(_0x4f02df,_0x1c1b1a,_0xb3e0ed,_0x29340a)=>{const _0x4a3064=_0x5cf110;for(var _0xd50ba6=_0x29340a>0x1?void 0x0:_0x29340a?_0x2c36bf(_0x1c1b1a,_0xb3e0ed):_0x1c1b1a,_0x322193=_0x4f02df[_0x4a3064(0x242)]-0x1,_0x196a06;_0x322193>=0x0;_0x322193--)(_0x196a06=_0x4f02df[_0x322193])&&(_0xd50ba6=_0x196a06(_0xd50ba6)||_0xd50ba6);return _0xd50ba6;},_0x4353bc=(_0x1a3cd1,_0x4cbfcb)=>(_0x335ce7,_0x134bf1)=>_0x4cbfcb(_0x335ce7,_0x134bf1,_0x1a3cd1);_0x23ec27[_0x5cf110(0x1da)]=class extends _0xca07eb[_0x5cf110(0x270)]{constructor(_0x3ba277,_0x350f42,_0x48d231){const _0x38fa45=_0x5cf110;super(),_0x17060a(this,_0x38fa45(0x294),new Map()),(this['_univerInstanceService']=_0x3ba277,this[_0x38fa45(0x20d)]=_0x350f42,this['_collabSessionService']=_0x48d231,this[_0x38fa45(0x1d9)]());}async[_0x5cf110(0x1fc)](_0x47e71c){const _0xf85602=_0x5cf110;return this[_0xf85602(0x294)][_0xf85602(0x254)](_0x47e71c)||await this[_0xf85602(0x1f0)](_0x47e71c),this['_entities'][_0xf85602(0x1c8)](_0x47e71c);}['getLiveShareCoordinatorSync'](_0x49c7c1){const _0xb21a96=_0x5cf110;var _0x4c9704;return(_0x4c9704=this['_entities'][_0xb21a96(0x1c8)](_0x49c7c1))!=null?_0x4c9704:null;}[_0x5cf110(0x1d9)](){const _0x2af4ad=_0x5cf110;this[_0x2af4ad(0x1ef)][_0x2af4ad(0x221)](_0xca07eb[_0x2af4ad(0x201)][_0x2af4ad(0x1dd)])['pipe'](_0x46ba07[_0x2af4ad(0x298)](this[_0x2af4ad(0x26f)]))[_0x2af4ad(0x231)](async _0x25bc5e=>{const _0x1f6578=_0x2af4ad,_0x57203f=_0x25bc5e['getUnitId']();this['_entities'][_0x1f6578(0x254)](_0x57203f)||this[_0x1f6578(0x1f0)](_0x57203f);}),this[_0x2af4ad(0x1ef)][_0x2af4ad(0x2a8)](_0xca07eb[_0x2af4ad(0x201)][_0x2af4ad(0x1dd)])[_0x2af4ad(0x1d0)](_0x46ba07[_0x2af4ad(0x298)](this['dispose$']))['subscribe'](_0x49a77a=>{const _0xf9b585=_0x2af4ad,_0xc9092f=_0x49a77a[_0xf9b585(0x203)](),_0x1ff1a7=this[_0xf9b585(0x294)][_0xf9b585(0x1c8)](_0xc9092f);_0x1ff1a7==null||_0x1ff1a7[_0xf9b585(0x236)]();});}async[_0x5cf110(0x1f0)](_0x1682fc){const _0x1eba43=_0x5cf110,_0x3b83e5=await this[_0x1eba43(0x24c)][_0x1eba43(0x272)](_0x1682fc),_0x226a7a=this[_0x1eba43(0x20d)][_0x1eba43(0x22b)](_0x23ec27['LiveShareCoordinator'],_0x1682fc,_0x3b83e5);return _0x226a7a['init'](),this['_entities'][_0x1eba43(0x27c)](_0x1682fc,_0x226a7a),_0x226a7a;}},_0x23ec27[_0x5cf110(0x1da)]=_0x52d0df([_0x4353bc(0x0,_0xca07eb[_0x5cf110(0x238)]),_0x4353bc(0x1,_0xca07eb[_0x5cf110(0x253)](_0xca07eb[_0x5cf110(0x29a)])),_0x4353bc(0x2,_0xca07eb[_0x5cf110(0x253)](_0x54692a[_0x5cf110(0x220)]))],_0x23ec27[_0x5cf110(0x1da)]);var _0xaeb0d4=(_0x5421d5=>(_0x5421d5[_0x5cf110(0x229)]='offline',_0x5421d5[_0x5cf110(0x1d3)]='idle',_0x5421d5['FOLLOWING']='following',_0x5421d5['NOT_FOLLOWING']='not-following',_0x5421d5['PRESENTING']='presenting',_0x5421d5))(_0xaeb0d4||{});const _0x17cac1='SAME_OPERATION_SHARE_INTERVAL',_0x43f6ed=0xc8;_0x23ec27[_0x5cf110(0x275)]=class extends _0xca07eb[_0x5cf110(0x270)]{constructor(_0x20a24f,_0xec2cdf,_0x1cb027,_0x3454fb,_0xe7f611){const _0x20ebef=_0x5cf110;super(),_0x17060a(this,'_status$',new _0x11b20c[(_0x20ebef(0x26e))](_0x20ebef(0x26d))),_0x17060a(this,'status$',this[_0x20ebef(0x257)][_0x20ebef(0x2a6)]()),_0x17060a(this,'_init',!0x1),_0x17060a(this,_0x20ebef(0x285),null),_0x17060a(this,_0x20ebef(0x282),null),(this['_unitID']=_0x20a24f,this['_collabSession']=_0xec2cdf,this[_0x20ebef(0x216)]=_0x1cb027,this[_0x20ebef(0x1ed)]=_0x3454fb,this[_0x20ebef(0x251)]=_0xe7f611);}get['_status'](){const _0x17bf16=_0x5cf110;return this[_0x17bf16(0x257)][_0x17bf16(0x27d)]();}[_0x5cf110(0x236)](){const _0x5286a3=_0x5cf110;var _0x557312;(_0x557312=this[_0x5286a3(0x285)])==null||_0x557312[_0x5286a3(0x236)](),this[_0x5286a3(0x257)]['next'](_0x5286a3(0x26d)),this[_0x5286a3(0x257)][_0x5286a3(0x280)]();}[_0x5cf110(0x296)](){const _0x4e321f=_0x5cf110;return this[_0x4e321f(0x286)];}[_0x5cf110(0x27a)](){const _0x154274=_0x5cf110;this['_init']||(this['_init']=!0x0,this[_0x154274(0x25c)][_0x154274(0x29e)][_0x154274(0x1d0)](_0x46ba07[_0x154274(0x298)](this['dispose$']))[_0x154274(0x231)](_0x227de6=>{const _0x2918ee=_0x154274;switch(_0x227de6){case _0x54692a[_0x2918ee(0x25b)][_0x2918ee(0x229)]:this[_0x2918ee(0x2a5)]();break;case _0x54692a[_0x2918ee(0x25b)]['ONLINE']:this[_0x2918ee(0x271)]();break;}}),this[_0x154274(0x25c)][_0x154274(0x268)][_0x154274(0x1d0)](_0x46ba07[_0x154274(0x298)](this[_0x154274(0x26f)]))[_0x154274(0x231)](_0x290b48=>{const _0x48a2bc=_0x154274,{eventID:_0xd04a0b}=_0x290b48;switch(_0xd04a0b){case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x1db)]:this[_0x48a2bc(0x1be)](_0x290b48);break;case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x281)]:this[_0x48a2bc(0x246)](_0x290b48);break;case _0x4c8e7e[_0x48a2bc(0x21f)][_0x48a2bc(0x24d)]:this[_0x48a2bc(0x211)]();break;case _0x4c8e7e[_0x48a2bc(0x21f)]['NEW_CHANGESETS']:this[_0x48a2bc(0x247)](_0x290b48);break;}}));}['tryStartPresenting'](){const _0xde401d=_0x5cf110;this[_0xde401d(0x25c)][_0xde401d(0x219)]({'eventID':_0x4c8e7e[_0xde401d(0x21f)][_0xde401d(0x289)],'data':{'unitID':this[_0xde401d(0x21d)],'userID':this[_0xde401d(0x25c)][_0xde401d(0x283)]()}},this[_0xde401d(0x21d)]);}[_0x5cf110(0x25a)](){const _0x2998dc=_0x5cf110;this[_0x2998dc(0x286)]===_0x2998dc(0x290)&&(this[_0x2998dc(0x257)][_0x2998dc(0x23e)](_0x2998dc(0x26d)),this['_collabSession']['send']({'eventID':_0x4c8e7e[_0x2998dc(0x21f)][_0x2998dc(0x24d)],'data':{'unitID':this['_unitID']}},this[_0x2998dc(0x21d)]));}[_0x5cf110(0x241)](){const _0x1c9d2a=_0x5cf110;this[_0x1c9d2a(0x286)]==='not-following'&&(this[_0x1c9d2a(0x257)][_0x1c9d2a(0x23e)](_0x1c9d2a(0x1e2)),this['_startFollowing']());}[_0x5cf110(0x269)](){const _0x79612b=_0x5cf110;this[_0x79612b(0x286)]===_0x79612b(0x1e2)&&this[_0x79612b(0x218)]();}[_0x5cf110(0x1be)](_0x101772){const _0x5f0745=_0x5cf110,{presenter:_0x15b00b}=_0x101772[_0x5f0745(0x258)],_0xf01e1a=this[_0x5f0745(0x25c)]['getMemberID']();this[_0x5f0745(0x282)]=_0x15b00b,_0x15b00b===_0xf01e1a?(this[_0x5f0745(0x218)](),this[_0x5f0745(0x1f5)]()):this[_0x5f0745(0x286)]!==_0x5f0745(0x1e7)&&(this[_0x5f0745(0x1c7)](),this[_0x5f0745(0x240)]());}[_0x5cf110(0x1de)](){const _0x29da72=_0x5cf110,_0x358023={'eventID':_0x4c8e7e[_0x29da72(0x21f)][_0x29da72(0x287)]};this[_0x29da72(0x25c)][_0x29da72(0x219)](_0x358023,this[_0x29da72(0x21d)]);}[_0x5cf110(0x211)](){const _0xed917f=_0x5cf110;this[_0xed917f(0x282)]=null,this[_0xed917f(0x286)]!==_0xed917f(0x290)&&this[_0xed917f(0x252)]();}[_0x5cf110(0x247)](_0x9b8eaf){const _0x31b593=_0x5cf110;if(this['_status']==='following'&&this[_0x31b593(0x282)]===_0x9b8eaf[_0x31b593(0x258)][_0x31b593(0x277)]){const _0xecd6c0=_0x4c8e7e[_0x31b593(0x21e)](_0x9b8eaf[_0x31b593(0x258)])[_0x31b593(0x204)][_0x31b593(0x223)]()[_0x31b593(0x245)](_0x1f95e2=>_0x1f95e2['id']===_0x4e04ed[_0x31b593(0x23b)]['id']);if(_0xecd6c0){const _0x12e974=_0xecd6c0[_0x31b593(0x213)]['unitId'],_0x5cc125=_0xecd6c0['params'][_0x31b593(0x20b)]['id'];setTimeout(()=>{const _0x3fe0d2=_0x31b593;this['_commandService'][_0x3fe0d2(0x28f)](_0x4e04ed['SetWorksheetActiveOperation']['id'],{'unitId':_0x12e974,'subUnitId':_0x5cc125},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x48f3ac=_0x5cf110;this[_0x48f3ac(0x257)][_0x48f3ac(0x23e)](_0x48f3ac(0x290));const _0x408d8f=new Map(),_0xe3f142=this[_0x48f3ac(0x285)]=new _0xca07eb['DisposableCollection']();_0xe3f142[_0x48f3ac(0x2a2)](_0xca07eb[_0x48f3ac(0x1fa)](()=>{const _0x122f60=_0x48f3ac;_0x408d8f[_0x122f60(0x273)](_0x335511=>_0x335511[_0x122f60(0x280)]()),_0x408d8f[_0x122f60(0x284)]();})),_0xe3f142['add'](this[_0x48f3ac(0x251)]['onCommandExecuted'](_0x46fe50=>{const _0x8ef12d=_0x48f3ac;var _0x4a848e;if(_0x46fe50[_0x8ef12d(0x230)]!==_0xca07eb[_0x8ef12d(0x1ff)][_0x8ef12d(0x297)]||!this[_0x8ef12d(0x1ed)][_0x8ef12d(0x25f)](_0x46fe50['id']))return;const {id:_0xaa39c7}=_0x46fe50;let _0x2a36db;_0x408d8f[_0x8ef12d(0x254)](_0xaa39c7)?_0x2a36db=_0x408d8f['get'](_0xaa39c7):(_0x2a36db=new _0x11b20c[(_0x8ef12d(0x250))](),_0x408d8f[_0x8ef12d(0x27c)](_0xaa39c7,_0x2a36db),_0x2a36db[_0x8ef12d(0x1d0)](_0x46ba07['throttleTime']((_0x4a848e=this[_0x8ef12d(0x216)][_0x8ef12d(0x29b)](_0x17cac1))!=null?_0x4a848e:_0x43f6ed,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x8ef12d(0x231)](_0x439d47=>{const _0x5c9e39=_0x8ef12d;this[_0x5c9e39(0x25c)][_0x5c9e39(0x219)]({'eventID':_0x4c8e7e[_0x5c9e39(0x21f)][_0x5c9e39(0x281)],'data':{'unitID':this['_unitID'],'operations':{[_0x439d47['id']]:{'id':_0x439d47['id'],'params':JSON[_0x5c9e39(0x1d5)](_0x439d47[_0x5c9e39(0x213)])}}}},this[_0x5c9e39(0x21d)]);})),_0x2a36db[_0x8ef12d(0x23e)](_0x46fe50);})),this[_0x48f3ac(0x1ed)][_0x48f3ac(0x228)](this[_0x48f3ac(0x21d)])[_0x48f3ac(0x273)](_0x1172c2=>this[_0x48f3ac(0x25c)][_0x48f3ac(0x219)]({'eventID':_0x4c8e7e[_0x48f3ac(0x21f)][_0x48f3ac(0x281)],'data':{'unitID':this[_0x48f3ac(0x21d)],'operations':{[_0x1172c2['id']]:{'id':_0x1172c2['id'],'params':JSON['stringify'](_0x1172c2['params'])}}}},this[_0x48f3ac(0x21d)]));}[_0x5cf110(0x1c7)](){const _0x14f060=_0x5cf110;var _0x6aa7a3;this[_0x14f060(0x257)][_0x14f060(0x23e)](_0x14f060(0x26d)),(_0x6aa7a3=this[_0x14f060(0x285)])==null||_0x6aa7a3['dispose'](),this[_0x14f060(0x285)]=null;}[_0x5cf110(0x240)](){const _0x227506=_0x5cf110;var _0xa7b8ec;(_0xa7b8ec=this[_0x227506(0x285)])==null||_0xa7b8ec[_0x227506(0x236)](),this[_0x227506(0x257)]['next'](_0x227506(0x1e2));}['_beIdle'](){const _0x13888f=_0x5cf110;var _0x53bd30;this[_0x13888f(0x257)]['next'](_0x13888f(0x26d)),(_0x53bd30=this[_0x13888f(0x285)])==null||_0x53bd30[_0x13888f(0x236)](),this[_0x13888f(0x285)]=null;}[_0x5cf110(0x218)](){const _0x307a0a=_0x5cf110;var _0xd0e6fe;this[_0x307a0a(0x257)]['next'](_0x307a0a(0x1e7)),(_0xd0e6fe=this[_0x307a0a(0x285)])==null||_0xd0e6fe['dispose']();}[_0x5cf110(0x246)](_0x2345e9){const _0x51de06=_0x5cf110;if([_0x51de06(0x290),_0x51de06(0x1e7),'offline'][_0x51de06(0x227)](this[_0x51de06(0x286)])||!_0x2345e9[_0x51de06(0x258)][_0x51de06(0x1ea)]||_0x2345e9[_0x51de06(0x258)]['presenter']===this['_collabSession'][_0x51de06(0x283)]())return;this['_status']===_0x51de06(0x26d)&&this[_0x51de06(0x240)]();const _0x229ee5=_0x2345e9['data'][_0x51de06(0x276)];Object[_0x51de06(0x295)](_0x229ee5)['forEach'](_0x4f32a6=>{const _0x1c9892=_0x51de06;this[_0x1c9892(0x251)]['executeCommand'](_0x4f32a6['id'],_0x4f32a6[_0x1c9892(0x213)]?JSON['parse'](_0x4f32a6[_0x1c9892(0x213)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x20d97a=_0x5cf110;var _0x16836c;this[_0x20d97a(0x257)][_0x20d97a(0x23e)]('offline'),(_0x16836c=this[_0x20d97a(0x285)])==null||_0x16836c[_0x20d97a(0x236)]();}['_handleOnline'](){const _0x20f20b=_0x5cf110;this[_0x20f20b(0x257)]['next'](_0x20f20b(0x26d)),this[_0x20f20b(0x1de)]();}},_0x23ec27['LiveShareCoordinator']=_0x52d0df([_0x4353bc(0x2,_0xca07eb[_0x5cf110(0x261)]),_0x4353bc(0x3,_0xca07eb[_0x5cf110(0x253)](_0x3a905a)),_0x4353bc(0x4,_0xca07eb[_0x5cf110(0x249)])],_0x23ec27[_0x5cf110(0x275)]);function _0x103f34(){const _0xab5e84=_0x5cf110,_0xea4017=_0x1e8daf[_0xab5e84(0x279)](_0x23ec27[_0xab5e84(0x1da)]),_0x204db1=_0x1e8daf[_0xab5e84(0x279)](_0xca07eb['IUniverInstanceService']),_0x38abbf=_0x1e8daf[_0xab5e84(0x239)](()=>_0x204db1[_0xab5e84(0x212)](_0xca07eb[_0xab5e84(0x201)][_0xab5e84(0x1dd)]),void 0x0,!0x1,[]),[_0x52aace,_0x1e25b9]=_0x9610cd[_0xab5e84(0x1e0)](null),[_0x271209,_0x2f5214]=_0x9610cd['useState'](_0xaeb0d4['IDLE']),_0xa7d5be=_0x9610cd[_0xab5e84(0x278)](null);return _0x9610cd[_0xab5e84(0x1df)](()=>(_0x38abbf&&_0xea4017[_0xab5e84(0x1fc)](_0x38abbf['getUnitId']())['then'](_0x33aa41=>{const _0x3c2a99=_0xab5e84;_0x1e25b9(_0x33aa41),_0xa7d5be[_0x3c2a99(0x2a1)]=_0x33aa41[_0x3c2a99(0x2a0)]['subscribe'](_0x28df14=>{_0x2f5214(_0x28df14);});}),()=>{const _0x29250a=_0xab5e84;var _0x353159;(_0x353159=_0xa7d5be[_0x29250a(0x2a1)])==null||_0x353159['unsubscribe'](),_0xa7d5be[_0x29250a(0x2a1)]=null;}),[_0x38abbf,_0xea4017]),_0x52aace?_0x15af52[_0xab5e84(0x291)](_0x342ef4[_0xab5e84(0x21c)],{'align':_0xab5e84(0x1d2),'disabled':_0x271209===_0xaeb0d4[_0xab5e84(0x229)],'className':_0xab5e84(0x1e1),'overlay':_0x15af52[_0xab5e84(0x291)](_0x5052eb,{'status':_0x271209,'coordinator':_0x52aace}),'children':_0x15af52['jsx'](_0xab5e84(0x20e),{'className':_0x342ef4[_0xab5e84(0x209)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x271209===_0xaeb0d4['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x271209!==_0xaeb0d4[_0xab5e84(0x229)]}),'type':'button','children':_0x15af52[_0xab5e84(0x291)](_0x3b017d,{'className':_0xab5e84(0x1cb)})})}):null;}function _0x5052eb(_0x54b05c){const _0x2279d2=_0x5cf110,{status:_0x4d887c,coordinator:_0x5b6a71}=_0x54b05c;switch(_0x4d887c){case _0xaeb0d4['IDLE']:return _0x15af52['jsx'](_0xbf44df,{'coordinator':_0x5b6a71});case _0xaeb0d4['FOLLOWING']:return _0x15af52['jsx'](_0x4f3d8b,{'coordinator':_0x5b6a71});case _0xaeb0d4[_0x2279d2(0x28b)]:return _0x15af52[_0x2279d2(0x291)](_0xeb4a5,{'coordinator':_0x5b6a71});case _0xaeb0d4['OFFLINE']:return _0x15af52['jsx'](_0x4d2454,{});case _0xaeb0d4[_0x2279d2(0x22a)]:return _0x15af52['jsx'](_0x49dd93,{'coordinator':_0x5b6a71});default:return null;}}function _0xbf44df(_0x51e27d){const _0xe212a9=_0x5cf110,{coordinator:_0x22f933}=_0x51e27d;return _0x15af52[_0xe212a9(0x1f4)](_0x15af52[_0xe212a9(0x293)],{'children':[_0x15af52[_0xe212a9(0x291)](_0xe212a9(0x27b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xe212a9(0x1ca)}),_0x15af52[_0xe212a9(0x291)](_0x342ef4[_0xe212a9(0x264)],{'onClick':()=>_0x22f933[_0xe212a9(0x22c)](),'children':'Start'})]});}function _0x4f3d8b(_0x5bd091){const _0x49b5bc=_0x5cf110,{coordinator:_0x5cf21a}=_0x5bd091;return _0x15af52[_0x49b5bc(0x1f4)](_0x15af52[_0x49b5bc(0x293)],{'children':[_0x15af52[_0x49b5bc(0x291)](_0x49b5bc(0x27b),{'className':_0x49b5bc(0x1ee),'children':_0x49b5bc(0x24e)}),_0x15af52[_0x49b5bc(0x291)](_0x342ef4[_0x49b5bc(0x264)],{'onClick':()=>_0x5cf21a[_0x49b5bc(0x269)](),'children':_0x49b5bc(0x1f7)})]});}function _0xeb4a5(_0x506421){const _0x31877a=_0x5cf110,{coordinator:_0x4db131}=_0x506421;return _0x15af52[_0x31877a(0x1f4)](_0x15af52[_0x31877a(0x293)],{'children':[_0x15af52[_0x31877a(0x291)](_0x31877a(0x27b),{'className':_0x31877a(0x1ee),'children':_0x31877a(0x292)}),_0x15af52[_0x31877a(0x291)](_0x342ef4[_0x31877a(0x264)],{'variant':'text','onClick':()=>_0x4db131[_0x31877a(0x241)](),'children':_0x31877a(0x25e)})]});}function _0x49dd93(_0x5355d3){const _0x3df527=_0x5cf110,{coordinator:_0x2d32f6}=_0x5355d3;return _0x15af52[_0x3df527(0x1f4)](_0x15af52[_0x3df527(0x293)],{'children':[_0x15af52[_0x3df527(0x291)](_0x3df527(0x27b),{'className':_0x3df527(0x1ee),'children':_0x3df527(0x20c)}),_0x15af52[_0x3df527(0x291)](_0x342ef4['Button'],{'variant':_0x3df527(0x234),'onClick':()=>_0x2d32f6['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x4d2454(){const _0x323f59=_0x5cf110;return _0x15af52[_0x323f59(0x291)](_0x15af52[_0x323f59(0x293)],{'children':_0x323f59(0x1d1)});}var _0x3d60f7=Object[_0x5cf110(0x1d7)],_0x2b7111=(_0x1ea5c9,_0x389c25,_0x483a5a,_0x2f496a)=>{for(var _0x5cd3e2=_0x2f496a>0x1?void 0x0:_0x2f496a?_0x3d60f7(_0x389c25,_0x483a5a):_0x389c25,_0x4ce88e=_0x1ea5c9['length']-0x1,_0x40e681;_0x4ce88e>=0x0;_0x4ce88e--)(_0x40e681=_0x1ea5c9[_0x4ce88e])&&(_0x5cd3e2=_0x40e681(_0x5cd3e2)||_0x5cd3e2);return _0x5cd3e2;},_0x229ea2=(_0x1787f9,_0x472019)=>(_0x21a1c6,_0x57521b)=>_0x472019(_0x21a1c6,_0x57521b,_0x1787f9);_0x23ec27['DesktopLiveShareController']=class extends _0xca07eb[_0x5cf110(0x1c9)]{constructor(_0x3a04e3,_0x1a7d95){const _0x45dcc1=_0x5cf110;super(),this[_0x45dcc1(0x20d)]=_0x3a04e3,this['_uiPartsService']=_0x1a7d95,this[_0x45dcc1(0x206)]();}['_mountLiveShare'](){const _0x305004=_0x5cf110;this['disposeWithMe'](this[_0x305004(0x23f)]['registerComponent'](_0x1e8daf[_0x305004(0x243)][_0x305004(0x1e6)],()=>_0x1e8daf[_0x305004(0x1cf)](_0x103f34,this[_0x305004(0x20d)])));}},_0x23ec27[_0x5cf110(0x20f)]=_0x2b7111([_0x229ea2(0x0,_0xca07eb[_0x5cf110(0x253)](_0xca07eb[_0x5cf110(0x29a)])),_0x229ea2(0x1,_0x1e8daf[_0x5cf110(0x1c1)])],_0x23ec27['DesktopLiveShareController']);const _0x4969e8=_0x5cf110(0x2a4),_0x27b4c9={};var _0xe815dc=Object[_0x5cf110(0x1d7)],_0x2aa187=(_0x5e04d2,_0x23c955,_0x3d38e9,_0x3838a0)=>{const _0x5eb868=_0x5cf110;for(var _0x86e15b=_0x3838a0>0x1?void 0x0:_0x3838a0?_0xe815dc(_0x23c955,_0x3d38e9):_0x23c955,_0x5254f6=_0x5e04d2[_0x5eb868(0x242)]-0x1,_0x5ef077;_0x5254f6>=0x0;_0x5254f6--)(_0x5ef077=_0x5e04d2[_0x5254f6])&&(_0x86e15b=_0x5ef077(_0x86e15b)||_0x86e15b);return _0x86e15b;},_0x40b8c1=(_0x2813af,_0xbcd3c4)=>(_0x2c13d8,_0x3fcc60)=>_0xbcd3c4(_0x2c13d8,_0x3fcc60,_0x2813af);let _0x7fe0b8=class extends _0xca07eb[_0x5cf110(0x1c9)]{constructor(_0x38d4ac){const _0x34f1ac=_0x5cf110;super(),this['_liveShareService']=_0x38d4ac,this[_0x34f1ac(0x1d9)]();}[_0x5cf110(0x1d9)](){const _0x21cded=_0x5cf110;[_0x14ee55[_0x21cded(0x200)]['id'],_0x14ee55['SetScrollOperation']['id'],_0x4e04ed['SetWorksheetActiveOperation']['id']][_0x21cded(0x273)](_0x18de01=>{const _0x5b1f27=_0x21cded;this[_0x5b1f27(0x215)](this['_liveShareService'][_0x5b1f27(0x265)](_0x18de01));});}};_0x7fe0b8=_0x2aa187([_0x40b8c1(0x0,_0xca07eb['Inject'](_0x3a905a))],_0x7fe0b8);var _0x22048a=Object[_0x5cf110(0x22f)],_0x475edb=Object[_0x5cf110(0x1d7)],_0x383e68=(_0x4a6f74,_0x52b792,_0x5438be)=>_0x52b792 in _0x4a6f74?_0x22048a(_0x4a6f74,_0x52b792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5438be}):_0x4a6f74[_0x52b792]=_0x5438be,_0xeacbc2=(_0x2e37af,_0x1d816b,_0x33c96b,_0x273a92)=>{const _0xedb46e=_0x5cf110;for(var _0x5343a6=_0x273a92>0x1?void 0x0:_0x273a92?_0x475edb(_0x1d816b,_0x33c96b):_0x1d816b,_0x2e19c5=_0x2e37af[_0xedb46e(0x242)]-0x1,_0x2f7a0f;_0x2e19c5>=0x0;_0x2e19c5--)(_0x2f7a0f=_0x2e37af[_0x2e19c5])&&(_0x5343a6=_0x2f7a0f(_0x5343a6)||_0x5343a6);return _0x5343a6;},_0x4a9630=(_0x2424d5,_0x5286db)=>(_0x5bd3f6,_0x20989c)=>_0x5286db(_0x5bd3f6,_0x20989c,_0x2424d5),_0x318246=(_0x49d6ed,_0x5d41d4,_0x505763)=>_0x383e68(_0x49d6ed,typeof _0x5d41d4!=_0x5cf110(0x1c0)?_0x5d41d4+'':_0x5d41d4,_0x505763);const _0x36d4d6=_0x5cf110(0x24f);_0x23ec27[_0x5cf110(0x21b)]=class extends _0xca07eb['Plugin']{constructor(_0x167ea5=_0x27b4c9,_0x5c774b,_0x20e594){const _0x318b34=_0x5cf110;super(),this[_0x318b34(0x217)]=_0x167ea5,this[_0x318b34(0x20d)]=_0x5c774b,this[_0x318b34(0x216)]=_0x20e594;const {..._0x10c2aa}=_0xca07eb['merge']({},_0x27b4c9,this['_config']);this[_0x318b34(0x216)][_0x318b34(0x267)](_0x4969e8,_0x10c2aa);}[_0x5cf110(0x1f9)](){const _0x513b00=_0x5cf110;_0xca07eb[_0x513b00(0x1f8)](this['_injector'],_0xca07eb[_0x513b00(0x214)]([[_0x3a905a],[_0x23ec27[_0x513b00(0x1da)]],[_0x7fe0b8],[_0x23ec27[_0x513b00(0x20f)]]],this['_config']['override'])),_0xca07eb[_0x513b00(0x29d)](this[_0x513b00(0x20d)],[[_0x7fe0b8]]);}['onRendered'](){const _0x1a1615=_0x5cf110;_0xca07eb[_0x1a1615(0x29d)](this[_0x1a1615(0x20d)],[[_0x23ec27[_0x1a1615(0x20f)]]]);}},_0x318246(_0x23ec27[_0x5cf110(0x21b)],_0x5cf110(0x230),_0xca07eb['UniverInstanceType'][_0x5cf110(0x22e)]),_0x318246(_0x23ec27['UniverLiveSharePlugin'],'pluginName',_0x36d4d6),_0x23ec27[_0x5cf110(0x21b)]=_0xeacbc2([_0xca07eb[_0x5cf110(0x259)](_0x54692a['UniverCollaborationClientPlugin']),_0x4a9630(0x1,_0xca07eb['Inject'](_0xca07eb[_0x5cf110(0x29a)])),_0x4a9630(0x2,_0xca07eb['IConfigService'])],_0x23ec27[_0x5cf110(0x21b)]),_0x23ec27[_0x5cf110(0x1f3)]=_0x103f34,_0x23ec27[_0x5cf110(0x23d)]=_0x3a905a,_0x23ec27[_0x5cf110(0x1c5)]=_0xaeb0d4,Object['defineProperty'](_0x23ec27,Symbol[_0x5cf110(0x1f1)],{'value':'Module'});}));function _0xf61e(_0x4ebb19,_0x176fba){_0x4ebb19=_0x4ebb19-0x1be;const _0x29b11c=_0x29b1();let _0xf61e41=_0x29b11c[_0x4ebb19];return _0xf61e41;}function _0x29b1(){const _0x3143f3=['toStringTag','UniverProLiveShare','LiveShare','jsxs','_startPresenting','use','Stop\x20following','registerDependencies','onStarting','toDisposable','substring','getLiveShareCoordinator','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UniverCore','CommandType','SetZoomRatioOperation','UniverInstanceType','UniverDesign','getUnitId','mutations','_reporters','_mountLiveShare','React','107214znUZVC','clsx','UniverUi','sheet','You\x27re\x20presenting\x20the\x20document','_injector','button','DesktopLiveShareController','object','_handleTerminate','getCurrentTypeOfUnit$','params','mergeOverrideWithDependencies','disposeWithMe','_configService','_config','_stopFollowing','send','attrs','UniverLiveSharePlugin','Dropdown','_unitID','parseProtocolChangeset','CollaborationEvent','CollaborationSessionService','getTypeOfUnitAdded$','56469subtzP','reverse','mask','UniverSheets','displayName','includes','getInitialStates','OFFLINE','PRESENTING','createInstance','tryStartPresenting','995569Bkiqvi','UNIVER_UNKNOWN','defineProperty','type','subscribe','@univerjs-pro/collaboration','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','default','svg','dispose','url(#$1','IUniverInstanceService','useObservable','function','InsertSheetMutation','tag','LiveShareService','next','_uiPartsService','_startFollowing','startFollowing','length','BuiltInUIPart','1em','find','_handleOperation','_handleNewChangeSets','from','ICommandService','idSuffix','0\x200\x2017\x2017','_collabSessionService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','Subject','_commandService','_beIdle','Inject','has','currentColor','1051604KUoIjf','_status$','data','DependentOn','stopPresenting','SessionStatus','_collabSession','react/jsx-runtime','Start\x20following','shouldShareOperation','children','IConfigService','replace','registerInitialStateReporter','Button','registerSharedOperation','assign','setConfig','event$','stopFollowing','univerjs-icon\x20univerjs-icon-','entries','2LrXhzv','idle','BehaviorSubject','dispose$','RxDisposable','_handleOnline','requireSession','forEach','UniverProCollaboration','LiveShareCoordinator','operations','memberID','useRef','useDependency','init','div','set','getValue','trim','2275310czGYjq','complete','LIVESHARE_OPERATION','_presenter','getMemberID','clear','_commandDisposable','_status','LIVESHARE_FETCH_OPERATIONS','exports','LIVESHARE_REQUEST_HOST','amd','NOT_FOLLOWING','12916359mTOetM','colorChannel1','forwardRef','executeCommand','presenting','jsx','You\x27re\x20not\x20following\x20the\x20presenter','Fragment','_entities','values','getStatus','OPERATION','takeUntil','18FDicXx','Injector','getConfig','path','touchDependencies','sessionStatus$','fill','status$','current','add','string','live-share.config','_handleOffline','asObservable','3051380OYEpUJ','getTypeOfUnitDisposed$','_handleNewHost','@univerjs/design','symbol','IUIPartsService','LiveShareIcon','http://www.w3.org/2000/svg','rxjs','LiveShareStatus','1640ftbibG','_stopPresenting','get','Disposable','Present\x20this\x20document','univer-size-4','map','createElement','rxjs/operators','connectInjector','pipe','You\x27are\x20offline.','end','IDLE','@univerjs-pro/collaboration-client','stringify','_sharedOperations','getOwnPropertyDescriptor','evenodd','_init','LiveShareController','LIVESHARE_NEW_HOST','UniverIcon','UNIVER_SHEET','_fetchOperations','useEffect','useState','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','following','defs','react','live-share-icon','HEADER_MENU','not-following','xlink:href','@univerjs/sheets-ui','presenter','random','UniverProCollaborationClient','_liveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','_startLiveShareCoordinator'];_0x29b1=function(){return _0x3143f3;};return _0x29b1();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.1.1",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.15.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/design": "0.15.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets": "0.15.
|
|
65
|
-
"@univerjs
|
|
66
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.15.4",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.15.4",
|
|
62
|
+
"@univerjs/design": "0.15.4",
|
|
63
|
+
"@univerjs/core": "0.15.4",
|
|
64
|
+
"@univerjs/sheets-ui": "0.15.4",
|
|
65
|
+
"@univerjs/ui": "0.15.4",
|
|
66
|
+
"@univerjs/sheets": "0.15.4"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"postcss": "^8.5.6",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"tailwindcss": "^3.4.17",
|
|
73
73
|
"typescript": "^5.9.3",
|
|
74
74
|
"vite": "^7.3.1",
|
|
75
|
-
"vitest": "^4.0.
|
|
76
|
-
"@univerjs-infra/shared": "0.15.
|
|
75
|
+
"vitest": "^4.0.18",
|
|
76
|
+
"@univerjs-infra/shared": "0.15.4",
|
|
77
77
|
"@univerjs/protocol": "0.1.48"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|