@univerjs-pro/collaboration-client 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +30 -30
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x7ce63a=_0x2011;(function(_0x4f6a30,_0x481adf){const _0x21f05b=_0x2011,_0x43b736=_0x4f6a30();while(!![]){try{const _0x172cc8=-parseInt(_0x21f05b(0x25a))/0x1+-parseInt(_0x21f05b(0x219))/0x2*(parseInt(_0x21f05b(0xea))/0x3)+parseInt(_0x21f05b(0xad))/0x4*(parseInt(_0x21f05b(0x21e))/0x5)+parseInt(_0x21f05b(0x358))/0x6*(parseInt(_0x21f05b(0x16f))/0x7)+-parseInt(_0x21f05b(0x2e6))/0x8*(-parseInt(_0x21f05b(0x206))/0x9)+-parseInt(_0x21f05b(0x307))/0xa*(parseInt(_0x21f05b(0x1f7))/0xb)+parseInt(_0x21f05b(0x3fb))/0xc;if(_0x172cc8===_0x481adf)break;else _0x43b736['push'](_0x43b736['shift']());}catch(_0x4437d0){_0x43b736['push'](_0x43b736['shift']());}}}(_0x4d03,0xd03c0));var Js=Object[_0x7ce63a(0x1cd)],zs=(_0x404e87,_0x269f0a,_0x4a7459)=>_0x269f0a in _0x404e87?Js(_0x404e87,_0x269f0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a7459}):_0x404e87[_0x269f0a]=_0x4a7459,l=(_0x43b464,_0x2b3503,_0x8ca169)=>zs(_0x43b464,typeof _0x2b3503!=_0x7ce63a(0x32b)?_0x2b3503+'':_0x2b3503,_0x8ca169);import{createIdentifier as _0x36e1fd,Disposable as _0x18124f,DisposableCollection as _0x764514,toDisposable as _0x1fc5cf,Inject as _0x525e4b,IConfigService as _0x5701c0,ILogService as _0x2fa9fe,UniverInstanceType as _0x4b8c1e,UserManagerService as _0x13da05,IUniverInstanceService as _0x10baba,RxDisposable as _0x24bc67,LocaleService as _0xe0d77a,Optional as _0x17b51f,Injector as _0x2386f6,Tools as _0x3121d5,ILocalStorageService as _0x5bc7f0,ICommandService as _0x25ecde,JSONX as _0x227acc,CommandType as _0x3e12dc,IPermissionService as _0x58d6c0,IUndoRedoService as _0x479a29,sequenceExecute as _0x3c6557,Rectangle as _0x3d868c,OnLifecycle as _0x556f1d,LifecycleStages as _0x2576b6,ThemeService as _0x27cef3,useDependency as _0x8fb279,connectInjector as _0x273476,Workbook as _0x46080f,LocalUndoRedoService as _0x2be683,IContextService as _0x1404d2,COLORS as _0x15e24f,ColorKit as _0x129b1a,fromEventSubject as _0x4ee99d,isInternalEditorID as _0x1be156,Plugin as _0x3204e3,IAuthzIoService as _0x658e22,mergeOverrideWithDependencies as _0x51ced9,DependentOn as _0x552df9}from'@univerjs/core';import{Subject as _0x41ce8d,merge as _0x11132a,takeUntil as _0x2216fd,BehaviorSubject as _0x2f2e3e,distinctUntilChanged as _0x93164f,fromEvent as _0x374da3,map as _0x370b8a,shareReplay as _0x2e17a2,take as _0x26fa6c,of as _0x16c423,debounceTime as _0x3227b9,filter as _0x6092a7,switchMap as _0x54075f,combineLatest as _0x34c25e,mapTo as _0x1f60a3,concatMap as _0x66c2b3}from'rxjs';import{map as _0x1bc5ac,take as _0x5f57e4,filter as _0x457b7c,delay as _0x520c34,takeUntil as _0xf88d9b,switchMap as _0x143825,throttleTime as _0x2658fd}from'rxjs/operators';import{MessageType as _0x311bf7,Tooltip as _0xa2af05}from'@univerjs/design';import{IBeforeCloseService as _0xbdc381,IMessageService as _0x508f45,INotificationService as _0x11d660,useObservable as _0x477dc9,BuiltInUIPart as _0x13ab0b,IUIPartsService as _0x5e04f0}from'@univerjs/ui';import{HTTPService as _0x32382a,WebSocketService as _0x221a07,MergeInterceptorFactory as _0x130fc3,HTTPRequest as _0x2a1854,IHTTPImplementation as _0x1255a8,XHRHTTPImplementation as _0x29b7a3,ThresholdInterceptorFactory as _0xc2e46}from'@univerjs/network';import{CollaborationEvent as _0x57e9e5,parseChangesetToProtocol as _0x3d1cc2,ISnapshotServerService as _0x526425,isTransformMutationFailure as _0x66635b,isTransformMutationsWithChangesetSuccess as _0x5194c5,ITransformService as _0x44c950,RevisionService as _0xf65b72,mapDocumentTypeToUniverType as _0x351947,isTransformChangesetsSuccess as _0x36266f,parseProtocolChangeset as _0x2ecc13,CompressMutationService as _0xfbc913,SnapshotService as _0x3bb447,textEncoder as _0x4e5116,b64DecodeUnicode as _0x1f7d1d,isTransformMutationsWithChangesetFailure as _0xa7d51f,UniverCollaborationPlugin as _0x2cadd7}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xd8ddf4}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x1c0760,RichTextEditingMutation as _0x2e167a,SetTextSelectionsOperation as _0x2188ac,DocSkeletonManagerService as _0x5ed588}from'@univerjs/docs';import{SheetsSelectionsService as _0x6a44c2,SetSelectionsOperation as _0x2cc37b,InsertSheetMutation as _0x22fdd2,EmptyMutation as _0x59c52a,WorkbookEditablePermission as _0xd4e52,RefRangeService as _0x54cbec,EffectRefRangId as _0x1134f2,handleIRemoveRow as _0x2f39a2,handleIRemoveCol as _0x1653e9,handleMoveRange as _0x2366c3,handleInsertRow as _0x2feba7,handleInsertRangeMoveRight as _0x5654ad,handleInsertRangeMoveDown as _0x3ec51d,handleInsertCol as _0x5975da,handleDeleteRangeMoveUp as _0x473233,handleDeleteRangeMoveLeft as _0x46038d,runRefRangeMutations as _0x2b59be,SetWorksheetActivateCommand as _0x398fc9}from'@univerjs/sheets';import{DocIMEInputManagerService as _0x3bea36,DocStateChangeManagerService as _0x3674b3,NodePositionConvertToCursor as _0x21c241,isValidRectRange as _0xb78b0c,NodePositionConvertToRectRange as _0x5d878b,TEXT_RANGE_LAYER_INDEX as _0x3aa027,SetDocZoomRatioOperation as _0x2c0f68}from'@univerjs/docs-ui';import{IRenderManagerService as _0x57b232,Shape as _0x598191,Rect as _0x31ffb5,Vector2 as _0x210a47,getColor as _0xa3185e,RegularPolygon as _0xa58679,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x106bbc}from'@univerjs/engine-render';import{ImageSourceType as _0x37a65a,ImageUploadStatusType as _0x4a3c35,IImageIoService as _0x583b19}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x271db6,serializeRangeWithSheet as _0xd9f8f}from'@univerjs/engine-formula';import _0x2361dc from'lodash/debounce';import{VIEWPORT_KEY as _0x3b4b0c,getCoordByCell as _0x2d6fad,getSheetObject as _0x15c132,SheetSkeletonManagerService as _0xdfd854,SheetPermissionInitController as _0x51224e}from'@univerjs/sheets-ui';import _0x487a41,{forwardRef as _0x330fff,useRef as _0xe0b9e2,createElement as _0x5159a4,useCallback as _0x151f29}from'react';import _0x153164 from'clsx';import{IRemoteInstanceService as _0x42241b}from'@univerjs/rpc';const _n=_0x7ce63a(0xbc),un=_0x7ce63a(0x2ed),dn='SNAPSHOT_URL_KEY',mn='SEND_CHANGESET_TIMEOUT',fn=0x7d0,gn='COLLAB_WEB_SOCKET_URL',Sn=_0x7ce63a(0x263),pn=_0x7ce63a(0x3bf),vn=0x7530,Ns=_0x7ce63a(0x3e4),ys=0x4e20,In=_0x7ce63a(0x1b6),En=0x4e20,Cn=_0x7ce63a(0x3ff),bn=0x3,Tn=_0x7ce63a(0x2c1),Rn=0x3e8,On=_0x7ce63a(0x193),Dn=_0x7ce63a(0x34f),wn='LOGIN_URL_KEY',Pn='/universer-api/oidc/authpage';var Ms=(_0x365ef7=>(_0x365ef7[_0x365ef7[_0x7ce63a(0x33b)]=0x0]='UNDEFINED',_0x365ef7[_0x365ef7['OK']=0x1]='OK',_0x365ef7[_0x365ef7['INTERNAL_ERROR']=0x2]=_0x7ce63a(0xc8),_0x365ef7[_0x365ef7[_0x7ce63a(0x402)]=0x3]=_0x7ce63a(0x402),_0x365ef7[_0x365ef7['NOT_FOUND']=0x4]=_0x7ce63a(0x3bb),_0x365ef7[_0x365ef7[_0x7ce63a(0x183)]=0x5]=_0x7ce63a(0x183),_0x365ef7[_0x365ef7[_0x7ce63a(0x2f2)]=0x6]=_0x7ce63a(0x2f2),_0x365ef7[_0x365ef7[_0x7ce63a(0x253)]=0x7]=_0x7ce63a(0x253),_0x365ef7[_0x365ef7[_0x7ce63a(0x187)]=0x8]=_0x7ce63a(0x187),_0x365ef7[_0x365ef7[_0x7ce63a(0xcd)]=0x9]=_0x7ce63a(0xcd),_0x365ef7[_0x365ef7['CHANGESET_REVISION_CONFILICT']=0x1389]='CHANGESET_REVISION_CONFILICT',_0x365ef7[_0x365ef7[_0x7ce63a(0x11b)]=0x1771]=_0x7ce63a(0x11b),_0x365ef7[_0x365ef7['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x7ce63a(0x246),_0x365ef7[_0x365ef7['APPLY_REJECT']=0x1b59]=_0x7ce63a(0x311),_0x365ef7[_0x365ef7[_0x7ce63a(0x28b)]=0x1b5a]=_0x7ce63a(0x28b),_0x365ef7[_0x365ef7['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x7ce63a(0x386),_0x365ef7[_0x365ef7[_0x7ce63a(0x39b)]=0x1b5c]=_0x7ce63a(0x39b),_0x365ef7[_0x365ef7[_0x7ce63a(0x237)]=0x1f41]=_0x7ce63a(0x237),_0x365ef7[_0x365ef7[_0x7ce63a(0x3bd)]=0x2329]=_0x7ce63a(0x3bd),_0x365ef7[_0x365ef7['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x7ce63a(0x1ab),_0x365ef7[_0x365ef7['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x365ef7[_0x365ef7[_0x7ce63a(0x14b)]=0x232c]=_0x7ce63a(0x14b),_0x365ef7[_0x365ef7[_0x7ce63a(0x32e)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x365ef7[_0x365ef7[_0x7ce63a(0x3a9)]=0x2711]=_0x7ce63a(0x3a9),_0x365ef7[_0x365ef7[_0x7ce63a(0x34b)]=0x2712]=_0x7ce63a(0x34b),_0x365ef7[_0x365ef7[_0x7ce63a(0x2c3)]=0x2713]=_0x7ce63a(0x2c3),_0x365ef7[_0x365ef7[_0x7ce63a(0x118)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x365ef7[_0x365ef7[_0x7ce63a(0x3e9)]=-0x1]=_0x7ce63a(0x3e9),_0x365ef7))(Ms||{}),x=(_0x4abe46=>(_0x4abe46[_0x4abe46[_0x7ce63a(0x260)]=0x0]=_0x7ce63a(0x260),_0x4abe46[_0x4abe46['UNIVER_DOC']=0x1]=_0x7ce63a(0x3a2),_0x4abe46[_0x4abe46[_0x7ce63a(0x22f)]=0x2]=_0x7ce63a(0x22f),_0x4abe46[_0x4abe46['UNIVER_SLIDE']=0x3]=_0x7ce63a(0x2ba),_0x4abe46[_0x4abe46[_0x7ce63a(0x3ee)]=0x4]=_0x7ce63a(0x3ee),_0x4abe46[_0x4abe46[_0x7ce63a(0x3e9)]=-0x1]='UNRECOGNIZED',_0x4abe46))(x||{}),I=(_0xe7a457=>(_0xe7a457[_0xe7a457[_0x7ce63a(0x294)]=0x0]=_0x7ce63a(0x294),_0xe7a457[_0xe7a457[_0x7ce63a(0xbe)]=0x1]='HELLO',_0xe7a457[_0xe7a457['JOIN']=0x2]=_0x7ce63a(0x395),_0xe7a457[_0xe7a457[_0x7ce63a(0x141)]=0x3]='LEAVE',_0xe7a457[_0xe7a457[_0x7ce63a(0x1a6)]=0x4]=_0x7ce63a(0x1a6),_0xe7a457[_0xe7a457['HEARTBEAT']=0x5]=_0x7ce63a(0x1d2),_0xe7a457[_0xe7a457[_0x7ce63a(0xb6)]=0x6]=_0x7ce63a(0xb6),_0xe7a457[_0xe7a457['UNRECOGNIZED']=-0x1]=_0x7ce63a(0x3e9),_0xe7a457))(I||{}),kt=(_0x54cf43=>(_0x54cf43[_0x54cf43['UNKNOWN_CODE']=0x0]=_0x7ce63a(0x238),_0x54cf43[_0x54cf43['OK']=0x1]='OK',_0x54cf43[_0x54cf43[_0x7ce63a(0x38a)]=0x2]=_0x7ce63a(0x38a),_0x54cf43[_0x54cf43['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x54cf43))(kt||{}),As=(_0xf6df37=>(_0xf6df37[_0xf6df37['Undefined']=0x0]=_0x7ce63a(0x284),_0xf6df37[_0xf6df37[_0x7ce63a(0x361)]=0x1]=_0x7ce63a(0x361),_0xf6df37[_0xf6df37[_0x7ce63a(0x3f5)]=0x2]='HttpExport',_0xf6df37[_0xf6df37[_0x7ce63a(0x30c)]=0x3]=_0x7ce63a(0x30c),_0xf6df37[_0xf6df37[_0x7ce63a(0x129)]=0x4]='UnitSnapshot',_0xf6df37[_0xf6df37[_0x7ce63a(0x3e9)]=-0x1]=_0x7ce63a(0x3e9),_0xf6df37))(As||{});function Nn(_0x1a68a4){const _0x4958db=_0x7ce63a;var _0x215996,_0x4ae517,_0x5f4af0,_0x1c9d00;const _0x5e4f77=_0x1a68a4[_0x4958db(0x224)],_0x1fbbe6=JSON[_0x4958db(0x321)](_0x5e4f77);switch(_0x1fbbe6[_0x4958db(0x312)]){case I[_0x4958db(0x1d2)]:case I[_0x4958db(0xbe)]:{const _0x169910=_0x1fbbe6['infoRsp'];return{..._0x1fbbe6,'data':_0x169910,'cmd':_0x1fbbe6[_0x4958db(0x312)]};}case I[_0x4958db(0x395)]:{const _0x497c19=_0x1fbbe6[_0x4958db(0x2f7)];return{..._0x1fbbe6,'data':_0x497c19,'cmd':_0x1fbbe6[_0x4958db(0x312)]};}case I[_0x4958db(0xb6)]:{const _0x1e68a0=_0x1fbbe6[_0x4958db(0x403)];switch(_0x1e68a0[_0x4958db(0x3ce)]){case _0x57e9e5[_0x4958db(0x2bc)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':(_0x215996=_0x1e68a0['permissionRejEvent'])==null?void 0x0:_0x215996['cs']},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0x209)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':(_0x4ae517=_0x1e68a0[_0x4958db(0x142)])==null?void 0x0:_0x4ae517['cs']},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0x319)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':(_0x5f4af0=_0x1e68a0[_0x4958db(0x283)])==null?void 0x0:_0x5f4af0['cs']},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0xb1)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':(_0x1c9d00=_0x1e68a0[_0x4958db(0x34d)])==null?void 0x0:_0x1c9d00['cs']},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0x3cd)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0['updateCursorEvent']},'cmd':_0x1fbbe6['cmd']};case _0x57e9e5[_0x4958db(0x1d5)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0[_0x4958db(0x2ca)]},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5['USERS_LEAVE']:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0[_0x4958db(0x281)]},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0x231)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0[_0x4958db(0x2ac)]},'cmd':_0x1fbbe6['cmd']};case _0x57e9e5['LIVESHARE_FETCH_OPERATIONS']:case _0x57e9e5['LIVESHARE_OPERATION']:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0[_0x4958db(0xdf)]},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5['LIVESHARE_TERMINATE']:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0[_0x4958db(0x2ac)]},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0x244)]:return{..._0x1fbbe6,'data':_0x1e68a0,'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0x241)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0['commentUpdateEvent']},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5['UPDATE_PERMISSION_OBJ']:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0['updatePermissionObjEvent']},'cmd':_0x1fbbe6[_0x4958db(0x312)]};case _0x57e9e5[_0x4958db(0x21d)]:return{..._0x1fbbe6,'data':{..._0x1e68a0,'data':_0x1e68a0[_0x4958db(0x182)]},'cmd':_0x1fbbe6[_0x4958db(0x312)]};default:return _0x1fbbe6;}}default:return _0x1fbbe6;}}function yn(_0x542a81){const _0x374eef=_0x7ce63a;switch(_0x542a81[_0x374eef(0x312)]){case I[_0x374eef(0x1d2)]:case I[_0x374eef(0xbe)]:return JSON[_0x374eef(0x1dd)]({'cmd':_0x542a81[_0x374eef(0x312)],'routeKey':_0x542a81[_0x374eef(0x306)]});case I['INGEST']:{let _0x383425;switch(_0x542a81[_0x374eef(0x224)][_0x374eef(0x3ce)]){case _0x57e9e5['UPDATE_CURSOR']:{_0x383425={'eventID':_0x57e9e5[_0x374eef(0x3cd)],'updateCursorEvent':_0x542a81[_0x374eef(0x224)][_0x374eef(0x224)]};break;}case _0x57e9e5[_0x374eef(0xdb)]:{_0x383425={'eventID':_0x57e9e5['USERS_LEAVE'],'leaveEvent':_0x542a81['data'][_0x374eef(0x224)]};break;}case _0x57e9e5['USERS_ENTER']:{_0x383425={'eventID':_0x57e9e5[_0x374eef(0x1d5)],'joinEvent':_0x542a81[_0x374eef(0x224)][_0x374eef(0x224)]};break;}case _0x57e9e5[_0x374eef(0x231)]:{_0x383425={'eventID':_0x57e9e5[_0x374eef(0x231)],'liveShareNewHost':_0x542a81[_0x374eef(0x224)][_0x374eef(0x224)]};break;}case _0x57e9e5['LIVESHARE_OPERATION']:{_0x383425={'eventID':_0x57e9e5[_0x374eef(0xa8)],'liveShareOperation':_0x542a81[_0x374eef(0x224)][_0x374eef(0x224)]};break;}case _0x57e9e5[_0x374eef(0x3c6)]:{_0x383425={'eventID':_0x57e9e5[_0x374eef(0x3c6)],'liveShareTerminate':_0x542a81[_0x374eef(0x224)][_0x374eef(0x224)]};break;}case _0x57e9e5[_0x374eef(0x39e)]:{_0x383425={'eventID':_0x57e9e5[_0x374eef(0x39e)],'liveShareRequestHost':_0x542a81[_0x374eef(0x224)]['data']};break;}case _0x57e9e5['LIVESHARE_FETCH_OPERATIONS']:{_0x383425={'eventID':_0x57e9e5[_0x374eef(0x2ef)]};break;}default:_0x383425={'eventID':_0x542a81[_0x374eef(0x224)][_0x374eef(0x3ce)]};}return JSON['stringify']({'cmd':_0x542a81[_0x374eef(0x312)],'routeKey':_0x542a81[_0x374eef(0x306)],'collaMsg':_0x383425});}case I[_0x374eef(0x395)]:return JSON[_0x374eef(0x1dd)]({'cmd':_0x542a81[_0x374eef(0x312)],'routeKey':_0x542a81['routeKey'],'joinReq':_0x542a81[_0x374eef(0x224)]});case I[_0x374eef(0x141)]:return JSON[_0x374eef(0x1dd)]({'cmd':_0x542a81[_0x374eef(0x312)],'routeKey':_0x542a81[_0x374eef(0x306)],'leaveReq':_0x542a81[_0x374eef(0x224)]});default:throw new Error(_0x374eef(0x38b));}}var Mn=Object[_0x7ce63a(0x1cd)],An=Object['getOwnPropertyDescriptor'],Un=(_0xb2df30,_0x6a9a9a,_0x449656,_0x59ed87)=>{const _0x544c5f=_0x7ce63a;for(var _0x47f9ff=_0x59ed87>0x1?void 0x0:_0x59ed87?An(_0x6a9a9a,_0x449656):_0x6a9a9a,_0x94ffb0=_0xb2df30[_0x544c5f(0xc2)]-0x1,_0x264790;_0x94ffb0>=0x0;_0x94ffb0--)(_0x264790=_0xb2df30[_0x94ffb0])&&(_0x47f9ff=(_0x59ed87?_0x264790(_0x6a9a9a,_0x449656,_0x47f9ff):_0x264790(_0x47f9ff))||_0x47f9ff);return _0x59ed87&&_0x47f9ff&&Mn(_0x6a9a9a,_0x449656,_0x47f9ff),_0x47f9ff;},Te=(_0xdc4d1a,_0x2c4177)=>(_0x51de72,_0x101b01)=>_0x2c4177(_0x51de72,_0x101b01,_0xdc4d1a);const Us=_0x36e1fd(_0x7ce63a(0x291));function Ln(_0x20d724,_0xe06144,_0x1f7b4e){const _0x24dfa2=_0x7ce63a;return _0x20d724+'/'+_0xe06144+_0x24dfa2(0x30e)+_0x1f7b4e+_0x24dfa2(0x1c8);}let Ct=class extends _0x18124f{constructor(_0x2e320e,_0x996aa1,_0x555678,_0x3ba1d7,_0x51b9da){const _0x41efc0=_0x7ce63a;super(),this[_0x41efc0(0x17b)]=_0x2e320e,this[_0x41efc0(0x367)]=_0x996aa1,this[_0x41efc0(0x122)]=_0x555678,this[_0x41efc0(0x2a9)]=_0x3ba1d7,this[_0x41efc0(0x329)]=_0x51b9da;}[_0x7ce63a(0x107)](_0x35dacc){const _0x478019=_0x7ce63a,_0x69065e=this[_0x478019(0x367)][_0x478019(0x107)](_0x35dacc);if(!_0x69065e)throw new Error(_0x478019(0x3b1));const _0x4ef607=new _0x764514(),_0x5b4746=new _0x41ce8d();_0x4ef607[_0x478019(0x275)](_0x69065e[_0x478019(0x409)][_0x478019(0x3bc)](_0x4f6128=>_0x5b4746[_0x478019(0x1ee)](_0x4f6128))),_0x4ef607[_0x478019(0x275)](_0x1fc5cf(()=>_0x5b4746['complete']()));const _0x35a2a3=new _0x41ce8d();_0x4ef607[_0x478019(0x275)](_0x69065e[_0x478019(0x269)][_0x478019(0x3bc)](_0x3f9732=>_0x35a2a3[_0x478019(0x1ee)](_0x3f9732))),_0x4ef607[_0x478019(0x275)](_0x1fc5cf(()=>_0x35a2a3[_0x478019(0x186)]()));const _0x2673ac=new _0x41ce8d();_0x4ef607[_0x478019(0x275)](_0x69065e[_0x478019(0x3e3)][_0x478019(0x3bc)](_0x5ea763=>{const _0x13281a=_0x478019,_0x31bb53=Nn(_0x5ea763);_0x2673ac[_0x13281a(0x1ee)](_0x31bb53);})),_0x4ef607[_0x478019(0x275)](_0x1fc5cf(()=>_0x2673ac['complete']()));let _0x470434;const _0x5d01b1=()=>{const _0x323985=_0x478019;_0x35a2a3['next'](new Event(_0x323985(0x2b6))),_0x5b4746[_0x323985(0x1ee)](new CloseEvent(_0x323985(0x2b6))),_0x470434[_0x323985(0x286)]();};return _0x470434={'memberID':'','close$':_0x5b4746['asObservable'](),'error$':_0x35a2a3[_0x478019(0x112)](),'open$':_0x69065e[_0x478019(0x378)],'message$':_0x2673ac[_0x478019(0x112)](),'send':_0x87ebdb=>{const _0xcb63f0=_0x478019;if(_0x87ebdb[_0xcb63f0(0x312)]===I[_0xcb63f0(0x1a6)]){if(_0x87ebdb[_0xcb63f0(0x224)][_0xcb63f0(0x3ce)]===_0x57e9e5[_0xcb63f0(0x35c)]){this[_0xcb63f0(0x31a)](_0x470434,_0x87ebdb[_0xcb63f0(0x224)])[_0xcb63f0(0x3fe)](_0x5827ce=>{const _0x59878e=_0xcb63f0;this[_0x59878e(0x2a9)][_0x59878e(0x1eb)](_0x5827ce),_0x5d01b1();});return;}if(_0x87ebdb[_0xcb63f0(0x224)][_0xcb63f0(0x3ce)]===_0x57e9e5['FETCH_MISSING']){const _0x31af95=_0x87ebdb[_0xcb63f0(0x224)];this[_0xcb63f0(0x392)](_0x31af95)['then'](_0x356ceb=>{const _0x574a7b=_0xcb63f0;_0x2673ac[_0x574a7b(0x1ee)]({'cmd':I[_0x574a7b(0xb6)],'code':kt['OK'],'routeKey':_0x31af95['data']['unitID'],'routeType':'','data':{'eventID':_0x57e9e5[_0x574a7b(0x12d)],'data':{'changesets':_0x356ceb}}});})[_0xcb63f0(0x3fe)](_0x552066=>{const _0x2acfe2=_0xcb63f0;this['_logService'][_0x2acfe2(0x1eb)](_0x552066),_0x5d01b1();});return;}}_0x69065e['send'](yn(_0x87ebdb));},'close':()=>{const _0x1bfda7=_0x478019;_0x69065e[_0x1bfda7(0x286)](),_0x4ef607[_0x1bfda7(0x3a6)]();}},_0x470434;}async[_0x7ce63a(0x31a)](_0x3e5cf8,_0x2a5e52){const _0x17056c=_0x7ce63a;var _0x28b352;const {unitType:_0x90f41,unitID:_0x550826,changeset:_0x121286}=_0x2a5e52['data'],_0x1ceb7d={'unitID':_0x550826,'memberID':_0x3e5cf8[_0x17056c(0x282)],'type':_0x90f41,'changeset':_0x3d1cc2(_0x121286)},_0x17d434=Ln((_0x28b352=this['_configService']['getConfig'](On))!=null?_0x28b352:Dn,_0x90f41,_0x550826);try{await this['_http']['post'](_0x17d434,{'body':_0x1ceb7d});}catch(_0x5a78b7){throw this[_0x17056c(0x2a9)][_0x17056c(0x1eb)]('[CollaborationSession]',_0x17056c(0x29a)),_0x5a78b7;}}async[_0x7ce63a(0x392)](_0x283e77){const _0x5e64c3=_0x7ce63a,{unitID:_0x1308f0,from:_0x3f7042,to:_0x7c2c9b,unitType:_0x5ec175}=_0x283e77[_0x5e64c3(0x224)];return(await this[_0x5e64c3(0x329)][_0x5e64c3(0x234)]({'metadata':void 0x0},{'unitID':_0x1308f0,'type':_0x5ec175,'from':_0x3f7042,'to':_0x7c2c9b}))['changesets'];}};Ct=Un([Te(0x0,_0x525e4b(_0x32382a)),Te(0x1,_0x525e4b(_0x221a07)),Te(0x2,_0x5701c0),Te(0x3,_0x2fa9fe),Te(0x4,_0x526425)],Ct);const $n='collaboration_new_changeset';function jn(_0x3e1b35){const _0x320cbd=_0x7ce63a;return JSON[_0x320cbd(0x1dd)](_0x3e1b35)[_0x320cbd(0xc2)];}class Ls{constructor(){const _0x56eeb0=_0x7ce63a;l(this,_0x56eeb0(0x27f),new _0x41ce8d()),l(this,'commentUpdate$',this[_0x56eeb0(0x27f)][_0x56eeb0(0x112)]());}['onCommentUpdate'](_0x3dd98f){const _0x1859e2=_0x7ce63a;this[_0x1859e2(0x27f)][_0x1859e2(0x1ee)](_0x3dd98f);}}var xn=Object[_0x7ce63a(0x1cd)],Hn=Object[_0x7ce63a(0x323)],kn=(_0x4861c1,_0x350329,_0xcd0ea2,_0x207b52)=>{const _0x5e8014=_0x7ce63a;for(var _0x2bf714=_0x207b52>0x1?void 0x0:_0x207b52?Hn(_0x350329,_0xcd0ea2):_0x350329,_0x1089f2=_0x4861c1[_0x5e8014(0xc2)]-0x1,_0x46bdc3;_0x1089f2>=0x0;_0x1089f2--)(_0x46bdc3=_0x4861c1[_0x1089f2])&&(_0x2bf714=(_0x207b52?_0x46bdc3(_0x350329,_0xcd0ea2,_0x2bf714):_0x46bdc3(_0x2bf714))||_0x2bf714);return _0x207b52&&_0x2bf714&&xn(_0x350329,_0xcd0ea2,_0x2bf714),_0x2bf714;},ns=(_0x36c255,_0x127056)=>(_0x3b625b,_0x30e35f)=>_0x127056(_0x3b625b,_0x30e35f,_0x36c255);let oe=class extends _0x18124f{constructor(_0x2df337,_0x2025ff){const _0x5a9905=_0x7ce63a;super(),l(this,_0x5a9905(0x368),new Map()),(this[_0x5a9905(0x11a)]=_0x2df337,this[_0x5a9905(0x27e)]=_0x2025ff,this[_0x5a9905(0x355)](_0x1fc5cf(_0x11132a(this[_0x5a9905(0x11a)][_0x5a9905(0x350)](_0x4b8c1e[_0x5a9905(0x22f)])[_0x5a9905(0x1f3)](_0x1bc5ac(_0x1510d2=>_0x1510d2['getUnitId']())),this['_univerInstanceService'][_0x5a9905(0x350)](_0x4b8c1e[_0x5a9905(0x3a2)])[_0x5a9905(0x1f3)](_0x1bc5ac(_0x3c3a5e=>_0x3c3a5e['getUnitId']())),this['_univerInstanceService'][_0x5a9905(0x350)](_0x4b8c1e[_0x5a9905(0x2ba)])[_0x5a9905(0x1f3)](_0x1bc5ac(_0x2489ab=>_0x2489ab[_0x5a9905(0xd6)]())))[_0x5a9905(0x3bc)](_0x1901b3=>this[_0x5a9905(0x3ec)](_0x1901b3)))));}['setCurrentUser'](_0x3d7ea3){const _0x592b80=_0x7ce63a;this[_0x592b80(0x27e)][_0x592b80(0x276)](_0x3d7ea3);}[_0x7ce63a(0x15c)](){const _0x586098=_0x7ce63a;return this[_0x586098(0x27e)]['getCurrentUser']();}[_0x7ce63a(0x3c1)](_0xaefcf5,_0xdbfd59){const _0x46a6da=_0x7ce63a;let _0x2f09d2=this['_roomMembers'][_0x46a6da(0x3de)](_0xaefcf5);_0x2f09d2||(_0x2f09d2=new Bn(),this['_roomMembers'][_0x46a6da(0x2b8)](_0xaefcf5,_0x2f09d2)),_0x2f09d2[_0x46a6da(0x3c1)](_0xdbfd59);}[_0x7ce63a(0x227)](_0x27f6a8,_0x2c1c34){const _0x5a8046=_0x7ce63a,_0x4ebc86=this[_0x5a8046(0x368)]['get'](_0x27f6a8);_0x4ebc86&&_0x4ebc86[_0x5a8046(0x227)](_0x2c1c34);}[_0x7ce63a(0x377)](_0x3ea19e){return this['_roomMembers']['get'](_0x3ea19e);}[_0x7ce63a(0x26e)](_0x418a1b,_0x31105b){const _0x579fca=_0x7ce63a,_0x3a61d9=this[_0x579fca(0x368)]['get'](_0x418a1b);if(_0x3a61d9)return _0x3a61d9['getMember'](_0x31105b);}[_0x7ce63a(0x3ec)](_0x4082d1){const _0x451b2b=_0x7ce63a,_0x34da4f=this[_0x451b2b(0x368)]['get'](_0x4082d1);_0x34da4f&&(_0x34da4f[_0x451b2b(0x3a6)](),this[_0x451b2b(0x368)]['delete'](_0x4082d1));}[_0x7ce63a(0x3a6)](){const _0x48fbee=_0x7ce63a;this[_0x48fbee(0x368)][_0x48fbee(0x2c2)](_0x2a2fe1=>_0x2a2fe1[_0x48fbee(0x3a6)]()),this[_0x48fbee(0x368)][_0x48fbee(0x2e1)]();}};oe=kn([ns(0x0,_0x10baba),ns(0x1,_0x525e4b(_0x13da05))],oe);class Bn extends _0x18124f{constructor(){const _0x20fa25=_0x7ce63a;super(...arguments),l(this,_0x20fa25(0x1a5),new Map());}['dispose'](){const _0x49156c=_0x7ce63a;this[_0x49156c(0x1a5)][_0x49156c(0x2e1)]();}['updateMember'](_0x5b69cc){const _0x2b84b5=_0x7ce63a;this[_0x2b84b5(0x1a5)][_0x2b84b5(0x2b8)](_0x5b69cc[_0x2b84b5(0x282)],_0x5b69cc);}[_0x7ce63a(0x227)](_0x14c236){const _0x28c2c5=_0x7ce63a;this[_0x28c2c5(0x1a5)]['delete'](_0x14c236);}['getMember'](_0x4c8bdb){const _0x115fb1=_0x7ce63a;return this[_0x115fb1(0x1a5)][_0x115fb1(0x3de)](_0x4c8bdb);}}var Vn=Object[_0x7ce63a(0x1cd)],Fn=Object[_0x7ce63a(0x323)],Wn=(_0x2b682c,_0x3d73d1,_0xd56be,_0x4363cb)=>{const _0x1c7985=_0x7ce63a;for(var _0x127eba=_0x4363cb>0x1?void 0x0:_0x4363cb?Fn(_0x3d73d1,_0xd56be):_0x3d73d1,_0x380197=_0x2b682c[_0x1c7985(0xc2)]-0x1,_0x40f5dc;_0x380197>=0x0;_0x380197--)(_0x40f5dc=_0x2b682c[_0x380197])&&(_0x127eba=(_0x4363cb?_0x40f5dc(_0x3d73d1,_0xd56be,_0x127eba):_0x40f5dc(_0x127eba))||_0x127eba);return _0x4363cb&&_0x127eba&&Vn(_0x3d73d1,_0xd56be,_0x127eba),_0x127eba;},X=(_0x1c28ce,_0x4dc7fb)=>(_0x47f9d6,_0x256fa1)=>_0x4dc7fb(_0x47f9d6,_0x256fa1,_0x1c28ce),W=(_0x141e49=>(_0x141e49[_0x141e49[_0x7ce63a(0x35f)]=0x0]=_0x7ce63a(0x35f),_0x141e49[_0x141e49[_0x7ce63a(0x35d)]=0x1]='JOINING',_0x141e49[_0x141e49[_0x7ce63a(0x406)]=0x2]=_0x7ce63a(0x406),_0x141e49[_0x141e49[_0x7ce63a(0x3aa)]=0x3]='ONLINE',_0x141e49))(W||{});let bt=class extends _0x24bc67{constructor(_0x2ca408,_0x76b246,_0x5b2c51,_0x1ce0c7,_0x35708d,_0x1f278e,_0x621843,_0x4f7329,_0x5c6cd4,_0x5ce17b){const _0x28239d=_0x7ce63a;super(),l(this,'_sessionStatus$',new _0x2f2e3e(0x0)),l(this,_0x28239d(0x29e),this['_sessionStatus$'][_0x28239d(0x112)]()),l(this,_0x28239d(0x119),new _0x41ce8d()),l(this,_0x28239d(0x24f),this[_0x28239d(0x119)][_0x28239d(0x112)]()),l(this,_0x28239d(0x2e4)),l(this,_0x28239d(0x348)),l(this,_0x28239d(0x1d7)),l(this,_0x28239d(0x1e1),!0x1),l(this,_0x28239d(0x168),null),(this[_0x28239d(0x12e)]=_0x2ca408,this['_logService']=_0x5b2c51,this[_0x28239d(0x37b)]=_0x1ce0c7,this[_0x28239d(0x217)]=_0x35708d,this[_0x28239d(0x122)]=_0x1f278e,this[_0x28239d(0xd1)]=_0x621843,this[_0x28239d(0x18e)]=_0x4f7329,this[_0x28239d(0x389)]=_0x5c6cd4,this[_0x28239d(0x23f)]=_0x5ce17b,this[_0x28239d(0x1e1)]=!!this['_telemetryService'],_0x76b246[_0x28239d(0x1f3)](_0x2216fd(this[_0x28239d(0x3d1)]))['subscribe'](_0x486124=>{const _0x21fc14=_0x28239d;var _0x5d94ee;typeof _0x486124>'u'||(this['_socket']=_0x486124,_0x486124?(this[_0x21fc14(0x326)](_0x486124),this[_0x21fc14(0x348)]=_0x486124[_0x21fc14(0x3e3)][_0x21fc14(0x3bc)](_0x459280=>{const _0x2a4b4b=_0x21fc14;_0x459280[_0x2a4b4b(0x306)]===this[_0x2a4b4b(0x12e)]&&this[_0x2a4b4b(0xa4)](_0x459280);})):(this[_0x21fc14(0xe8)](),this[_0x21fc14(0x2d8)]['next'](0x2),(_0x5d94ee=this[_0x21fc14(0x348)])==null||_0x5d94ee[_0x21fc14(0x259)](),this[_0x21fc14(0x348)]=null));}),this[_0x28239d(0x355)](this[_0x28239d(0x37b)][_0x28239d(0xd8)](()=>{const _0x235043=_0x28239d;var _0x2d5e19;(_0x2d5e19=this[_0x235043(0x2e4)])==null||_0x2d5e19['send']({'cmd':I[_0x235043(0x141)],'data':{'roomID':this[_0x235043(0x12e)]}});})));}get[_0x7ce63a(0x10c)](){return this['_sessionStatus$']['getValue']();}['getMemberID'](){const _0x59b3e8=_0x7ce63a;var _0x44127a,_0x4109ca;return(_0x4109ca=(_0x44127a=this[_0x59b3e8(0x2e4)])==null?void 0x0:_0x44127a[_0x59b3e8(0x282)])!=null?_0x4109ca:null;}['dispose'](){const _0x159621=_0x7ce63a;super['dispose'](),this['dispose$']['next'](),this[_0x159621(0x3d1)]['complete']();}[_0x7ce63a(0x286)](){const _0x1f4ea1=_0x7ce63a;var _0x1792d1,_0x2c611b;this[_0x1f4ea1(0xe8)](),(_0x1792d1=this[_0x1f4ea1(0x2e4)])==null||_0x1792d1['send']({'cmd':I[_0x1f4ea1(0x141)],'data':{'roomID':this[_0x1f4ea1(0x12e)]}}),(_0x2c611b=this['_socket'])==null||_0x2c611b['close'](),this[_0x1f4ea1(0x119)][_0x1f4ea1(0x186)](),this[_0x1f4ea1(0x2d8)][_0x1f4ea1(0x186)](),this[_0x1f4ea1(0x3a6)]();}[_0x7ce63a(0xa4)](_0x903a71){const _0x15778d=_0x7ce63a;_0x903a71['cmd']===I[_0x15778d(0x395)]?this['_onJoinRoomEvent'](_0x903a71):_0x903a71[_0x15778d(0x312)]===I['RECV']&&this['_onRecvEvent'](_0x903a71);}[_0x7ce63a(0x326)](_0x168807){const _0x15ef66=_0x7ce63a;this[_0x15ef66(0x2d8)][_0x15ef66(0x1ee)](0x1),_0x168807[_0x15ef66(0x21c)]({'cmd':I['JOIN'],'routeKey':this[_0x15ef66(0x12e)],'routeType':'','data':{'rooms':[{'roomID':this[_0x15ef66(0x12e)]}]}});}[_0x7ce63a(0xe6)](_0x1d8cca){const _0x4daeaa=_0x7ce63a;var _0x5896fe;if(_0x1d8cca[_0x4daeaa(0x2d4)]===kt[_0x4daeaa(0x38a)]){this[_0x4daeaa(0x217)][_0x4daeaa(0xfa)]({'type':_0x311bf7[_0x4daeaa(0x362)],'content':this[_0x4daeaa(0xd1)]['t']('session.room-full')}),this[_0x4daeaa(0x2d8)][_0x4daeaa(0x1ee)](0x2);return;}this[_0x4daeaa(0x2d8)][_0x4daeaa(0x1ee)](0x3);const _0x175b0b=(_0x5896fe=_0x1d8cca[_0x4daeaa(0x224)][_0x4daeaa(0x12c)][this[_0x4daeaa(0x12e)]])==null?void 0x0:_0x5896fe[_0x4daeaa(0x191)];_0x175b0b&&_0x175b0b[_0x4daeaa(0x2c2)](_0x4aaadf=>this[_0x4daeaa(0x18e)]['updateMember'](this[_0x4daeaa(0x12e)],_0x4aaadf));}[_0x7ce63a(0xec)](_0x3102f7){const _0x18592e=_0x7ce63a;try{const _0x5d0bbe=_0x3102f7[_0x18592e(0x224)];switch(_0x5d0bbe[_0x18592e(0x3ce)]){case _0x57e9e5[_0x18592e(0x1d5)]:this['_onUserJoin'](_0x5d0bbe),this['_event$']['next'](_0x5d0bbe);break;case _0x57e9e5[_0x18592e(0xdb)]:this[_0x18592e(0x3f6)](_0x5d0bbe),this['_event$'][_0x18592e(0x1ee)](_0x5d0bbe);break;case _0x57e9e5[_0x18592e(0x209)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x18592e(0xc4)](),this[_0x18592e(0x119)][_0x18592e(0x1ee)](_0x5d0bbe);break;case _0x57e9e5['MSG_FOR_ERROR']:this[_0x18592e(0x2a9)][_0x18592e(0x1eb)](_0x18592e(0x3cf)+JSON['stringify'](_0x5d0bbe)),this[_0x18592e(0x119)][_0x18592e(0x1ee)](_0x5d0bbe);break;case _0x57e9e5['COMMENT_UPDATE']:this[_0x18592e(0x389)][_0x18592e(0x248)](_0x5d0bbe['data']),this['_event$'][_0x18592e(0x1ee)](_0x5d0bbe);break;default:this[_0x18592e(0x119)][_0x18592e(0x1ee)](_0x5d0bbe);}}catch(_0x35fc03){this[_0x18592e(0x2a9)][_0x18592e(0x1eb)](_0x35fc03,_0x3102f7);}}['_onUserJoin'](_0x59190c){const _0xfc535d=_0x7ce63a;this['_memberService'][_0xfc535d(0x3c1)](this[_0xfc535d(0x12e)],_0x59190c[_0xfc535d(0x224)]);}[_0x7ce63a(0x3f6)](_0x2b7511){const _0xe785cd=_0x7ce63a;this['_memberService']['removeMember'](this[_0xe785cd(0x12e)],_0x2b7511[_0xe785cd(0x224)][_0xe785cd(0x282)]);}async['send'](_0x5c320f,_0x41c92d){const _0x154218=_0x7ce63a;if(this[_0x154218(0x10c)]!==0x3||!this[_0x154218(0x2e4)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x5c320f[_0x154218(0x3ce)]===_0x57e9e5[_0x154218(0x35c)]&&(this[_0x154218(0x398)](),this['_startTelemetryCollaborationNewChangeset'](_0x5c320f)),this[_0x154218(0x2e4)]['send']({'cmd':I[_0x154218(0x1a6)],'routeKey':_0x41c92d,'routeType':'','data':_0x5c320f});}catch(_0x39ff49){this['_logService']['error'](_0x39ff49);}}[_0x7ce63a(0x398)](){const _0x54bf5f=_0x7ce63a;var _0x338dc6;this[_0x54bf5f(0x1d7)]=window['setTimeout'](()=>{const _0x34f35d=_0x54bf5f;this[_0x34f35d(0x1d7)]=null,this[_0x34f35d(0x217)][_0x34f35d(0xfa)]({'type':_0x311bf7['Error'],'content':this[_0x34f35d(0xd1)]['t'](_0x34f35d(0x20f))});},(_0x338dc6=this[_0x54bf5f(0x122)][_0x54bf5f(0xf2)](Ns))!=null?_0x338dc6:ys);}['_clearCollaborationTimeoutTimer'](){const _0x6f9c01=_0x7ce63a;this[_0x6f9c01(0x1d7)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}[_0x7ce63a(0x385)](_0x19fe0f){const _0x41534d=_0x7ce63a;if(!this[_0x41534d(0x1e1)])return;const {data:_0x4551dd}=_0x19fe0f,{unitID:_0x5acaa7,changeset:_0x497bb1}=_0x4551dd,{mutations:_0x311ec7,type:_0x24144a}=_0x497bb1;this[_0x41534d(0x168)]={'unitId':_0x5acaa7,'type':_0x24144a,'startTime':performance[_0x41534d(0x2c9)](),'stopTime':0x0,'duration':0x0,'size':jn(_0x311ec7)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5a04a5=_0x7ce63a;if(this[_0x5a04a5(0x1e1)]){if(!this['_telemetryInfo']){this['_logService']['error']('[CollaborationSession]',_0x5a04a5(0x3ac));return;}this[_0x5a04a5(0x168)][_0x5a04a5(0x1c4)]=performance['now'](),this[_0x5a04a5(0x168)][_0x5a04a5(0x24a)]=this['_telemetryInfo'][_0x5a04a5(0x1c4)]-this['_telemetryInfo'][_0x5a04a5(0x3d8)],this[_0x5a04a5(0x23f)]['capture']($n,this[_0x5a04a5(0x168)]),this[_0x5a04a5(0x168)]=null;}}[_0x7ce63a(0xe8)](){this['_telemetryInfo']=null;}};bt=Wn([X(0x2,_0x2fa9fe),X(0x3,_0xbdc381),X(0x4,_0x508f45),X(0x5,_0x5701c0),X(0x6,_0x525e4b(_0xe0d77a)),X(0x7,_0x525e4b(oe)),X(0x8,_0x525e4b(Ls)),X(0x9,_0x17b51f(_0xd8ddf4))],bt);var Gn=Object[_0x7ce63a(0x1cd)],Yn=Object[_0x7ce63a(0x323)],Kn=(_0x51d36f,_0x5e90d3,_0x424627,_0x3898ff)=>{for(var _0x3aa3cc=_0x3898ff>0x1?void 0x0:_0x3898ff?Yn(_0x5e90d3,_0x424627):_0x5e90d3,_0x2134ef=_0x51d36f['length']-0x1,_0xf64a49;_0x2134ef>=0x0;_0x2134ef--)(_0xf64a49=_0x51d36f[_0x2134ef])&&(_0x3aa3cc=(_0x3898ff?_0xf64a49(_0x5e90d3,_0x424627,_0x3aa3cc):_0xf64a49(_0x3aa3cc))||_0x3aa3cc);return _0x3898ff&&_0x3aa3cc&&Gn(_0x5e90d3,_0x424627,_0x3aa3cc),_0x3aa3cc;},ue=(_0x202cfc,_0x3f6b82)=>(_0x5ca75f,_0x3dd82b)=>_0x3f6b82(_0x5ca75f,_0x3dd82b,_0x202cfc);let ae=class extends _0x18124f{constructor(_0x4569cc,_0x5e77f8,_0x56f385,_0x5cc865,_0x515ab5,_0x4a4c26){const _0x4de385=_0x7ce63a;super(),l(this,_0x4de385(0x121),new _0x2f2e3e(void 0x0)),l(this,'socket$',this['_socket$'][_0x4de385(0x112)]()),l(this,'_candidateSocket',null),l(this,'_sessions',new Map()),l(this,_0x4de385(0x40d),new _0x2f2e3e(W['IDLE'])),l(this,'status$',this[_0x4de385(0x40d)][_0x4de385(0x112)]()),l(this,_0x4de385(0x3ae),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x4de385(0x105),0x0),l(this,_0x4de385(0x3af)),l(this,_0x4de385(0x3c0)),(this['_injector']=_0x4569cc,this['_localeService']=_0x5e77f8,this[_0x4de385(0x217)]=_0x56f385,this['_logService']=_0x5cc865,this[_0x4de385(0x122)]=_0x515ab5,this[_0x4de385(0x1b0)]=_0x4a4c26);}get[_0x7ce63a(0x2e4)](){const _0x3eba66=_0x7ce63a;return this[_0x3eba66(0x121)][_0x3eba66(0x2a2)]();}[_0x7ce63a(0x3a6)](){const _0x50fe58=_0x7ce63a;super[_0x50fe58(0x3a6)](),this[_0x50fe58(0x3a5)][_0x50fe58(0x2c2)](_0xddd132=>_0xddd132[_0x50fe58(0x3a6)]()),this[_0x50fe58(0x3a5)]['clear'](),this[_0x50fe58(0x40d)]['complete']();}async[_0x7ce63a(0x22b)](_0x4b03da){const _0x26a6e8=_0x7ce63a;if(this[_0x26a6e8(0x3a5)][_0x26a6e8(0x25c)](_0x4b03da))return this[_0x26a6e8(0x3a5)][_0x26a6e8(0x3de)](_0x4b03da);this[_0x26a6e8(0xd9)]();const _0x316ec1=this[_0x26a6e8(0x1ba)][_0x26a6e8(0x23c)](bt,_0x4b03da,this['_socket$']['asObservable']());return this[_0x26a6e8(0x3a5)][_0x26a6e8(0x2b8)](_0x4b03da,_0x316ec1),_0x316ec1;}['closeSession'](_0x4865b2){const _0x11bc6e=_0x7ce63a;var _0x658333;const _0x5d8d9b=this['_sessions'][_0x11bc6e(0x3de)](_0x4865b2);_0x5d8d9b&&(this['_sessions'][_0x11bc6e(0x28a)](_0x4865b2),_0x5d8d9b[_0x11bc6e(0x286)]()),this['_sessions'][_0x11bc6e(0x39c)]||(_0x658333=this['_socket'])==null||_0x658333['close']();}[_0x7ce63a(0x116)](){const _0x43e6a8=_0x7ce63a;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null),this[_0x43e6a8(0x3d0)]();}[_0x7ce63a(0x391)](){const _0xdbb426=_0x7ce63a;var _0x38511b;const _0x147555=(_0x38511b=this[_0xdbb426(0x122)][_0xdbb426(0xf2)](gn))!=null?_0x38511b:Sn,_0x405f16=this[_0xdbb426(0x1b0)]['createSocket'](_0x147555);return this[_0xdbb426(0x2f1)]=_0x405f16,_0x405f16;}[_0x7ce63a(0xd9)](){const _0x336dab=_0x7ce63a;var _0x41a22e,_0x30f90d;try{const _0x4ad48e=(_0x30f90d=(_0x41a22e=this['_socket'])!=null?_0x41a22e:this['_candidateSocket'])!=null?_0x30f90d:this[_0x336dab(0x391)]();if(_0x4ad48e){const _0x4bdfee=_0x4ad48e[_0x336dab(0x21c)];_0x4ad48e[_0x336dab(0x21c)]=_0x2d8928=>(this[_0x336dab(0x2b2)](),_0x4bdfee['apply'](_0x4ad48e,[_0x2d8928])),_0x4ad48e[_0x336dab(0x3e3)][_0x336dab(0x3bc)](_0xcaf277=>this[_0x336dab(0x2a1)](_0x4ad48e,_0xcaf277)),_0x4ad48e[_0x336dab(0x269)][_0x336dab(0x1f3)](_0x5f57e4(0x1))[_0x336dab(0x3bc)](_0x273333=>this[_0x336dab(0x2a9)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x273333)),_0x4ad48e[_0x336dab(0x378)][_0x336dab(0x1f3)](_0x5f57e4(0x1))['subscribe'](()=>{const _0x4d7138=_0x336dab;this[_0x4d7138(0x26f)](_0x4ad48e);}),_0x4ad48e[_0x336dab(0x409)][_0x336dab(0x1f3)](_0x5f57e4(0x1))[_0x336dab(0x3bc)](_0x42037f=>{const _0x38af32=_0x336dab;this[_0x38af32(0x2a9)][_0x38af32(0x139)]('[CollaborationSessionService]',_0x38af32(0x1db),_0x42037f),this[_0x38af32(0x25b)]();});}}catch(_0x5dd46b){this[_0x336dab(0x2a9)]['error'](_0x5dd46b),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x3b49bf){const _0x1284dc=_0x7ce63a;this['_logService'][_0x1284dc(0x139)](_0x1284dc(0x2af),_0x1284dc(0x167)),_0x3b49bf[_0x1284dc(0x21c)]({'cmd':I[_0x1284dc(0xbe)]}),this['_rescheduleHeartbeat'](),this['_listenToOfflineEvent']();}[_0x7ce63a(0x101)](){const _0xca4003=_0x7ce63a,_0x28f7c5=()=>{const _0x36d642=_0x2011;this[_0x36d642(0x1bc)](),this['_listenToOnlineEvent'](),window[_0x36d642(0x351)](_0x36d642(0x278),_0x28f7c5);};window[_0xca4003(0x3fc)](_0xca4003(0x278),_0x28f7c5);}[_0x7ce63a(0x1bc)](){const _0x3509ed=_0x7ce63a;this[_0x3509ed(0x3ae)]=!0x1,this[_0x3509ed(0x40d)]['next'](W['OFFLINE']),this['_socket$'][_0x3509ed(0x1ee)](null),this[_0x3509ed(0x381)](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x3edfdf=_0x7ce63a;var _0x4420b6;this[_0x3edfdf(0x1bc)](),this[_0x3edfdf(0x105)]<((_0x4420b6=this[_0x3edfdf(0x122)][_0x3edfdf(0xf2)](Cn))!=null?_0x4420b6:bn)?(this[_0x3edfdf(0x217)][_0x3edfdf(0xfa)]({'key':_0x3edfdf(0x2ea),'type':_0x311bf7[_0x3edfdf(0x362)],'content':this[_0x3edfdf(0xd1)]['t'](_0x3edfdf(0xc5))}),this[_0x3edfdf(0x3d0)]()):(this[_0x3edfdf(0x217)][_0x3edfdf(0xfa)]({'key':'collaboration-session-retry','type':_0x311bf7[_0x3edfdf(0x15f)],'content':this[_0x3edfdf(0xd1)]['t'](_0x3edfdf(0x1c7))}),this[_0x3edfdf(0xb7)]());}[_0x7ce63a(0xb7)](){const _0x25a403=_0x7ce63a,_0x40892b=()=>{const _0xb47dc6=_0x2011;this['reconnect'](),window[_0xb47dc6(0x351)](_0xb47dc6(0x30d),_0x40892b);};window[_0x25a403(0x3fc)](_0x25a403(0x30d),_0x40892b),this['_socket$'][_0x25a403(0x1f3)](_0x457b7c(_0x227a88=>!!_0x227a88),_0x5f57e4(0x1))[_0x25a403(0x3bc)](()=>{const _0x1cd709=_0x25a403;window[_0x1cd709(0x351)](_0x1cd709(0x30d),_0x40892b);});}[_0x7ce63a(0x3d0)](){const _0x48eebc=_0x7ce63a;var _0x3451bb;const _0x20f088=this[_0x48eebc(0x105)],_0x45c061=_0x20f088===0x0?0x0:((_0x3451bb=this['_configService']['getConfig'](In))!=null?_0x3451bb:En)*0x2**_0x20f088;this[_0x48eebc(0x3cc)]=window[_0x48eebc(0x1a2)](()=>{const _0x567704=_0x48eebc;clearTimeout(this[_0x567704(0x3cc)]),this[_0x567704(0x3cc)]=null,this[_0x567704(0xd9)]();},_0x45c061),this[_0x48eebc(0x105)]+=0x1;}[_0x7ce63a(0x2a1)](_0x3255a1,_0x5d661a){const _0x4efe15=_0x7ce63a,{cmd:_0x240c93}=_0x5d661a;_0x240c93===I[_0x4efe15(0xbe)]&&!this['_socketReady']&&(_0x3255a1[_0x4efe15(0x282)]=_0x5d661a[_0x4efe15(0x224)][_0x4efe15(0x282)],this[_0x4efe15(0x121)][_0x4efe15(0x1ee)](_0x3255a1),this[_0x4efe15(0x40d)][_0x4efe15(0x1ee)](W[_0x4efe15(0x3aa)]),this[_0x4efe15(0x3ae)]=!0x0,this[_0x4efe15(0x2f1)]=null),_0x240c93===I[_0x4efe15(0x1d2)]&&this[_0x4efe15(0x381)](),this[_0x4efe15(0x2b2)]();}[_0x7ce63a(0x2b2)](){const _0x2f3524=_0x7ce63a;var _0xbdfdf3;this[_0x2f3524(0x1c3)](),this[_0x2f3524(0x3af)]=window['setTimeout'](()=>this[_0x2f3524(0x371)](),(_0xbdfdf3=this[_0x2f3524(0x122)][_0x2f3524(0xf2)](pn))!=null?_0xbdfdf3:vn);}['_sendHeartbeat'](){const _0x37905d=_0x7ce63a;this['_socket']['send']({'cmd':I[_0x37905d(0x1d2)]}),this[_0x37905d(0x407)]();}[_0x7ce63a(0x407)](){const _0x51443c=_0x7ce63a;var _0x4cfd70;this['_timeoutTimer']=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x4cfd70=this['_configService'][_0x51443c(0xf2)](Ns))!=null?_0x4cfd70:ys);}[_0x7ce63a(0x1c3)](){const _0x494317=_0x7ce63a;this[_0x494317(0x3af)]!=null&&(clearTimeout(this[_0x494317(0x3af)]),this['_sendHeartbeatTimer']=null);}[_0x7ce63a(0x381)](){this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this['_timeoutTimer']=null);}};ae=Kn([ue(0x0,_0x525e4b(_0x2386f6)),ue(0x1,_0x525e4b(_0xe0d77a)),ue(0x2,_0x508f45),ue(0x3,_0x2fa9fe),ue(0x4,_0x5701c0),ue(0x5,Us)],ae);var Xn=Object[_0x7ce63a(0x1cd)],Jn=Object[_0x7ce63a(0x323)],zn=(_0x1e0a6d,_0x679c66,_0x295eee,_0x5a2012)=>{for(var _0x28ccb4=_0x5a2012>0x1?void 0x0:_0x5a2012?Jn(_0x679c66,_0x295eee):_0x679c66,_0x2ca63f=_0x1e0a6d['length']-0x1,_0x38be7a;_0x2ca63f>=0x0;_0x2ca63f--)(_0x38be7a=_0x1e0a6d[_0x2ca63f])&&(_0x28ccb4=(_0x5a2012?_0x38be7a(_0x679c66,_0x295eee,_0x28ccb4):_0x38be7a(_0x28ccb4))||_0x28ccb4);return _0x5a2012&&_0x28ccb4&&Xn(_0x679c66,_0x295eee,_0x28ccb4),_0x28ccb4;},ht=(_0x4d3a6e,_0x2e8988)=>(_0x998879,_0x314062)=>_0x2e8988(_0x998879,_0x314062,_0x4d3a6e);let Ze=class{constructor(_0x51d369,_0x5a8a53,_0xdd3858){const _0x3f98ca=_0x7ce63a;this['_injector']=_0x51d369,this['_transformService']=_0x5a8a53,this[_0x3f98ca(0x399)]=_0xdd3858;}[_0x7ce63a(0xd0)](_0x245b5c){const _0xf5b8a=_0x7ce63a;this[_0xf5b8a(0x256)](_0x245b5c),this[_0xf5b8a(0x1b4)](_0x245b5c);}[_0x7ce63a(0x15b)](_0x41e3e0){const _0xa21e3d=_0x7ce63a,{unitID:_0x126516}=_0x41e3e0,_0xf6d407=this[_0xa21e3d(0x399)][_0xa21e3d(0x216)](_0x126516)['with'](_0x3bea36),{redoCache:_0x558c0d}=_0xf6d407[_0xa21e3d(0x201)]();if(_0x558c0d[_0xa21e3d(0xc2)]===0x0)return _0x41e3e0;let _0x355452=_0x3121d5[_0xa21e3d(0x145)](_0x41e3e0[_0xa21e3d(0x251)][0x0]);for(let _0x26c29f=0x0;_0x26c29f<_0x558c0d[_0xa21e3d(0xc2)];_0x26c29f++){const _0x1c3a20={'id':'doc.mutation.rich-text-editing','params':{..._0x558c0d[_0x26c29f]}},_0x5bc3cd=this['_transformService'][_0xa21e3d(0x19f)](_0x355452,_0x1c3a20,!0x1);if(_0x66635b(_0x5bc3cd))throw _0x5bc3cd[_0xa21e3d(0x1eb)];_0x355452=_0x5bc3cd['m1Prime'];}return{..._0x3121d5['deepClone'](_0x41e3e0),'mutations':[_0x355452]};}[_0x7ce63a(0x256)](_0x53cf0b){const _0x368463=_0x7ce63a,{unitID:_0x5dd131}=_0x53cf0b,_0x481776=this[_0x368463(0x399)][_0x368463(0x216)](_0x5dd131)['with'](_0x3bea36),{undoCache:_0x346062,redoCache:_0x2e0211}=_0x481776[_0x368463(0x201)]();if(_0x346062['length']===0x0||_0x2e0211[_0x368463(0xc2)]===0x0)return;const _0x53b898=[],_0x5b828d=[];let _0x113700=_0x3121d5['deepClone'](_0x53cf0b['mutations'][0x0]),_0x1bd7c2=_0x3121d5[_0x368463(0x145)](_0x53cf0b[_0x368463(0x251)][0x0]);for(let _0x2832ce=_0x346062[_0x368463(0xc2)]-0x1;_0x2832ce>=0x0;_0x2832ce--){const _0x3c16da={'id':_0x368463(0x20b),'params':{..._0x346062[_0x2832ce]}},_0x371a95={'id':_0x368463(0x20b),'params':{..._0x2e0211[_0x2832ce]}},_0x12bf92=this['_transformService'][_0x368463(0x19f)](_0x113700,_0x3c16da,!0x1),_0xcc36b5=this['_transformService'][_0x368463(0x19f)](_0x1bd7c2,_0x371a95,!0x1);if(_0x66635b(_0x12bf92))throw _0x12bf92[_0x368463(0x1eb)];if(_0x66635b(_0xcc36b5))throw _0xcc36b5['error'];_0x53b898[_0x368463(0x2f0)](_0x12bf92[_0x368463(0x19a)][_0x368463(0x370)]),_0x5b828d[_0x368463(0x2f0)](_0xcc36b5[_0x368463(0x19a)]['params']),_0x113700=_0x12bf92[_0x368463(0x1fd)],_0x1bd7c2=_0xcc36b5[_0x368463(0x1fd)];}_0x481776['setUndoRedoMutationParamsCache']({'undoCache':_0x53b898,'redoCache':_0x5b828d});}['_transformPreviousActiveRange'](_0xe3e237){const _0x52f67=_0x7ce63a,{unitID:_0x3f7287}=_0xe3e237,_0x274cb6=this['_renderManagerService'][_0x52f67(0x216)](_0x3f7287)[_0x52f67(0x2c8)](_0x3bea36),_0x1c53b8=_0x274cb6['getActiveRange']();if(_0x1c53b8==null)return;const _0x111175=[{'id':_0x52f67(0x20b),'params':{'unitId':_0xe3e237[_0x52f67(0x179)],'actions':null,'textRanges':[_0x1c53b8]}}],_0x506d59=this[_0x52f67(0x346)][_0x52f67(0x161)](_0xe3e237,_0x111175);if(!_0x5194c5(_0x506d59))throw _0x506d59[_0x52f67(0x1eb)];const _0x1723b4=_0x506d59[_0x52f67(0x19a)][0x0][_0x52f67(0x370)][_0x52f67(0x15d)];Array[_0x52f67(0x345)](_0x1723b4)&&_0x1723b4[_0x52f67(0xc2)]&&_0x274cb6[_0x52f67(0x1fe)](_0x1723b4[0x0]);}};Ze=zn([ht(0x0,_0x525e4b(_0x2386f6)),ht(0x1,_0x44c950),ht(0x2,_0x57b232)],Ze);var qn=Object[_0x7ce63a(0x1cd)],Zn=Object['getOwnPropertyDescriptor'],Qn=(_0x2c37d8,_0x22c5c0,_0x592747,_0x1721c7)=>{const _0x55b4f5=_0x7ce63a;for(var _0x9ed56f=_0x1721c7>0x1?void 0x0:_0x1721c7?Zn(_0x22c5c0,_0x592747):_0x22c5c0,_0x35a70a=_0x2c37d8[_0x55b4f5(0xc2)]-0x1,_0x4a70b9;_0x35a70a>=0x0;_0x35a70a--)(_0x4a70b9=_0x2c37d8[_0x35a70a])&&(_0x9ed56f=(_0x1721c7?_0x4a70b9(_0x22c5c0,_0x592747,_0x9ed56f):_0x4a70b9(_0x9ed56f))||_0x9ed56f);return _0x1721c7&&_0x9ed56f&&qn(_0x22c5c0,_0x592747,_0x9ed56f),_0x9ed56f;},Re=(_0x59e0b6,_0x389a99)=>(_0x124ec4,_0x302755)=>_0x389a99(_0x124ec4,_0x302755,_0x59e0b6);let D=class extends _0x18124f{constructor(_0x30197c,_0x512687,_0x229865,_0x195569,_0x39480e){const _0x2faaf9=_0x7ce63a;super(),l(this,'_cachedData',new Map()),l(this,_0x2faaf9(0x37d),new Map()),l(this,'_disabled',!0x1),(this[_0x2faaf9(0x122)]=_0x30197c,this['_localStorageService']=_0x512687,this[_0x2faaf9(0x37b)]=_0x229865,this[_0x2faaf9(0xd1)]=_0x195569,this[_0x2faaf9(0x176)]=_0x39480e,this[_0x2faaf9(0x3ab)]());}[_0x7ce63a(0xbb)](){const _0x974263=_0x7ce63a;this[_0x974263(0x113)]=!0x0;}[_0x7ce63a(0x104)](){const _0x1a79d7=_0x7ce63a;this[_0x1a79d7(0x113)]=!0x1;}[_0x7ce63a(0x3a6)](){this['exhaustSavingTask']()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x166701){const _0x1dc6aa=_0x7ce63a;return this[_0x1dc6aa(0x113)]?null:this[_0x1dc6aa(0x36b)][_0x1dc6aa(0x334)](rs(_0x166701));}async[_0x7ce63a(0x2d2)](_0x2bf4cd,_0x3e2a82){const _0x1468a8=_0x7ce63a;return!!this['_localStorageService'][_0x1468a8(0x2ff)](_0x2bf4cd,_0x3e2a82);}[_0x7ce63a(0x3f9)](_0x32ba36,_0x557789,_0x459eac,_0x2d2a44){const _0x2a0379=_0x7ce63a,_0x1b7414=this[_0x2a0379(0x176)][_0x2a0379(0x332)](_0x32ba36);this[_0x2a0379(0x1d9)][_0x2a0379(0x2b8)](_0x32ba36,{'unitID':_0x32ba36,'type':_0x557789,'awaitingChangeset':_0x459eac,'mutations':_0x2d2a44,'rev':_0x1b7414}),this['_saveTaskMap'][_0x2a0379(0x25c)](_0x32ba36)||this['_scheduleSaving'](_0x32ba36);}[_0x7ce63a(0x347)](_0x44697c){const _0x1ae532=_0x7ce63a,_0x335e97=this[_0x1ae532(0x2d9)]();_0x335e97===0x0?this[_0x1ae532(0x22e)](_0x44697c):this[_0x1ae532(0x37d)][_0x1ae532(0x2b8)](_0x44697c,setTimeout(()=>this['_saveCache'](_0x44697c),_0x335e97));}[_0x7ce63a(0x2d9)](){const _0x4e986b=_0x7ce63a;var _0x347f86;return(_0x347f86=this[_0x4e986b(0x122)][_0x4e986b(0xf2)](Tn))!=null?_0x347f86:Rn;}[_0x7ce63a(0x22e)](_0x5077f9){const _0x51b7aa=_0x7ce63a,_0x1b6799=this[_0x51b7aa(0x37d)][_0x51b7aa(0x3de)](_0x5077f9);return _0x1b6799!==void 0x0&&window[_0x51b7aa(0x1f2)](_0x1b6799),this[_0x51b7aa(0x36b)][_0x51b7aa(0x2ff)](rs(_0x5077f9),this[_0x51b7aa(0x1d9)][_0x51b7aa(0x3de)](_0x5077f9))[_0x51b7aa(0x12a)](()=>this['_saveTaskMap'][_0x51b7aa(0x28a)](_0x5077f9));}async[_0x7ce63a(0x3d2)](){const _0x2c5ee0=_0x7ce63a,_0xcb1d4f=[];this[_0x2c5ee0(0x37d)][_0x2c5ee0(0x2c2)]((_0x254f4c,_0x3215fd)=>{const _0x425371=_0x2c5ee0;window[_0x425371(0x1f2)](_0x254f4c),_0xcb1d4f[_0x425371(0xd3)](this[_0x425371(0x22e)](_0x3215fd)[_0x425371(0x12a)](()=>{const _0x325f83=_0x425371;this[_0x325f83(0x37d)][_0x325f83(0x28a)](_0x3215fd);}));}),await Promise[_0x2c5ee0(0x3be)](_0xcb1d4f);}['_setupBeforeClosingHandler'](){const _0x4b5615=_0x7ce63a;this['disposeWithMe'](this[_0x4b5615(0x37b)]['registerBeforeClose'](()=>{const _0x15536f=_0x4b5615;if(this[_0x15536f(0x37d)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}};D=Qn([Re(0x0,_0x5701c0),Re(0x1,_0x5bc7f0),Re(0x2,_0xbdc381),Re(0x3,_0x525e4b(_0xe0d77a)),Re(0x4,_0x525e4b(_0xf65b72))],D);function rs(_0x5b9384){const _0x2d4a4a=_0x7ce63a;return _0x2d4a4a(0xf6)+_0x5b9384;}var er=Object[_0x7ce63a(0x1cd)],tr=Object[_0x7ce63a(0x323)],sr=(_0x58e6bd,_0x914206,_0x98ed16,_0x40584e)=>{for(var _0x1af91b=_0x40584e>0x1?void 0x0:_0x40584e?tr(_0x914206,_0x98ed16):_0x914206,_0x1d69fe=_0x58e6bd['length']-0x1,_0x381a9c;_0x1d69fe>=0x0;_0x1d69fe--)(_0x381a9c=_0x58e6bd[_0x1d69fe])&&(_0x1af91b=(_0x40584e?_0x381a9c(_0x914206,_0x98ed16,_0x1af91b):_0x381a9c(_0x1af91b))||_0x1af91b);return _0x40584e&&_0x1af91b&&er(_0x914206,_0x98ed16,_0x1af91b),_0x1af91b;},lt=(_0x4acc08,_0x557965)=>(_0xabbab5,_0x24ff9e)=>_0x557965(_0xabbab5,_0x24ff9e,_0x4acc08);function ir(_0x352bf0){const _0x4211c8=_0x7ce63a,{unitID:_0x426193,mutations:_0x4eaf94}=_0x352bf0;return{'unitId':_0x426193,'subUnitId':_0x4eaf94[0x0][_0x4211c8(0x370)][_0x4211c8(0x408)]};}let Qe=class{constructor(_0x42a953,_0x45e623,_0x551d24){this['_injector']=_0x42a953,this['_transformService']=_0x45e623,this['_instanceService']=_0x551d24;}['transformSelections'](_0xdc39ea){const _0x30910d=_0x7ce63a;var _0x400517,_0x58b4e9,_0x3eab2e,_0xb8d74e,_0x501d55;const _0x5c599c=this['_injector'][_0x30910d(0x3de)](_0x6a44c2),{unitId:_0x3fa335,subUnitId:_0x405823}=ir(_0xdc39ea),_0x442247=_0x5c599c[_0x30910d(0x27d)](_0x3fa335)[_0x30910d(0x2a4)](),_0x27926d=(_0x58b4e9=(_0x400517=this[_0x30910d(0x3f0)][_0x30910d(0x1e7)](_0x3fa335))==null?void 0x0:_0x400517[_0x30910d(0x390)]())==null?void 0x0:_0x58b4e9['getSheetId']();if(_0x442247[_0x30910d(0xc2)]===0x0||!_0x3fa335||!_0x405823)return;const _0xe218a9=[{'id':_0x2cc37b['id'],'params':{'unitId':_0x3fa335,'subUnitId':_0x27926d,'selections':_0x3121d5[_0x30910d(0x145)](_0x442247)}}],_0x43d08b=this['_transformService'][_0x30910d(0x161)](_0xdc39ea,_0xe218a9);if(!_0x5194c5(_0x43d08b))throw _0x43d08b[_0x30910d(0x1eb)];const _0x344838=(_0x501d55=(_0xb8d74e=(_0x3eab2e=_0x43d08b[_0x30910d(0x19a)][0x0])==null?void 0x0:_0x3eab2e['params'])==null?void 0x0:_0xb8d74e[_0x30910d(0x3e5)])!=null?_0x501d55:_0x442247;Array[_0x30910d(0x345)](_0x344838)&&_0x344838['length']&&this['_injector'][_0x30910d(0x3de)](_0x25ecde)['executeCommand'](_0x2cc37b['id'],{'unitId':_0x3fa335,'subUnitId':_0x405823,'selections':_0x344838});}};Qe=sr([lt(0x0,_0x525e4b(_0x2386f6)),lt(0x1,_0x44c950),lt(0x2,_0x10baba)],Qe);const it=_0x36e1fd('univer-pro.collaboration-client.single-active-unit-service');var $s=(_0x4ca77c=>(_0x4ca77c[_0x4ca77c[_0x7ce63a(0x320)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x4ca77c[_0x4ca77c[_0x7ce63a(0x31b)]=0x1]=_0x7ce63a(0x31b),_0x4ca77c))($s||{});const os=0x7530,as='ACTIVE_UNIT_EVENT_CHANNEL';class nr extends _0x18124f{constructor(){const _0x4b7880=_0x7ce63a;super(),l(this,_0x4b7880(0x396),_0x3121d5[_0x4b7880(0x23a)]()),l(this,_0x4b7880(0x322),new Set()),l(this,_0x4b7880(0x2b4),new Map()),l(this,'_heartbeatTimer',null),l(this,'_clearOtherTimers',new Map()),l(this,_0x4b7880(0x353),new Map()),this['_init']();}['dispose'](){const _0x5e19cb=_0x7ce63a;super[_0x5e19cb(0x3a6)](),this[_0x5e19cb(0x17d)]['forEach']((_0x57e4f,_0x100153)=>this[_0x5e19cb(0x3eb)](_0x100153)),this[_0x5e19cb(0xe2)]&&window[_0x5e19cb(0x412)](this[_0x5e19cb(0xe2)]);}[_0x7ce63a(0x310)](_0x474415){const _0x2cd71c=_0x7ce63a;return this[_0x2cd71c(0x1ed)](_0x474415)[_0x2cd71c(0x1f3)](_0x93164f());}[_0x7ce63a(0x1ce)](_0x385764){const _0x25957a=_0x7ce63a;this[_0x25957a(0x322)][_0x25957a(0x39c)]===0x0&&this[_0x25957a(0x15a)](),this[_0x25957a(0x322)][_0x25957a(0x275)](_0x385764),this[_0x25957a(0x169)]({'type':0x0,'memberID':this[_0x25957a(0x396)],'unitIDs':[_0x385764],'isForwarded':!0x1});}[_0x7ce63a(0x181)](_0x446598){const _0xea6aa6=_0x7ce63a;this[_0xea6aa6(0x322)][_0xea6aa6(0x28a)](_0x446598),this[_0xea6aa6(0x322)][_0xea6aa6(0x39c)]===0x0&&this['_heartbeatTimer']&&window[_0xea6aa6(0x412)](this[_0xea6aa6(0xe2)]);}[_0x7ce63a(0x11d)](){const _0x2beded=_0x7ce63a;this[_0x2beded(0x355)](_0x1fc5cf(_0x374da3(window,_0x2beded(0x24d))[_0x2beded(0x3bc)](_0x2a84e2=>{const _0x38e6ee=_0x2beded;if(_0x2a84e2[_0x38e6ee(0x29b)]!==as||!_0x2a84e2[_0x38e6ee(0x111)])return;const _0x51d960=JSON[_0x38e6ee(0x321)](_0x2a84e2['newValue']);this[_0x38e6ee(0x21b)](_0x51d960);}))),window['addEventListener'](_0x2beded(0x357),()=>this[_0x2beded(0x169)]({'type':0x1,'memberID':this[_0x2beded(0x396)],'unitIDs':Array[_0x2beded(0xe4)](this['_selfUnitIDs'])}));}[_0x7ce63a(0x21b)](_0x57fa2a){const _0x442ae3=_0x7ce63a;switch(_0x57fa2a['type']){case 0x0:this[_0x442ae3(0x170)](_0x57fa2a);break;case 0x1:this['_handleLeaveEvent'](_0x57fa2a);break;case 0x2:this[_0x442ae3(0x24b)](_0x57fa2a);break;}}[_0x7ce63a(0x170)](_0x451efd){const _0x7118b4=_0x7ce63a,{unitIDs:_0x24fa4c,memberID:_0x33f008,isForwarded:_0x38d139}=_0x451efd;_0x24fa4c['forEach'](_0x37e339=>{const _0x47cd59=_0x2011;if(!_0x38d139&&this[_0x47cd59(0x2b4)][_0x47cd59(0x25c)](_0x37e339)&&this['_ensureSubject'](_0x37e339)[_0x47cd59(0x1ee)](0x1),!this['_unitOnClients'][_0x47cd59(0x25c)](_0x37e339)||!this[_0x47cd59(0x2b4)]['get'](_0x37e339)['has'](_0x33f008)){const _0x2907d8=this[_0x47cd59(0x2b4)]['get'](_0x37e339)||new Set();_0x2907d8['add'](_0x33f008),this[_0x47cd59(0x2b4)][_0x47cd59(0x2b8)](_0x37e339,_0x2907d8),this['_scheduleClearOtherTimer'](_0x33f008);}}),_0x38d139||this[_0x7118b4(0x169)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x7118b4(0x322)]],'isForwarded':!0x0});}[_0x7ce63a(0xcf)](_0x5b55a0){const _0x2c6c1a=_0x7ce63a;this[_0x2c6c1a(0x3eb)](_0x5b55a0);const _0x710f52=window[_0x2c6c1a(0x1a2)](()=>{const _0x517848=_0x2c6c1a;this[_0x517848(0x2b4)][_0x517848(0x2c2)](_0x16618d=>{const _0x478fa5=_0x517848;_0x16618d[_0x478fa5(0x28a)](_0x5b55a0);});},os*0x2);this[_0x2c6c1a(0x17d)][_0x2c6c1a(0x2b8)](_0x5b55a0,_0x710f52);}[_0x7ce63a(0x3eb)](_0x51d63d){const _0x976d98=_0x7ce63a;if(this[_0x976d98(0x17d)][_0x976d98(0x25c)](_0x51d63d)){const _0x12e7b1=this[_0x976d98(0x17d)][_0x976d98(0x3de)](_0x51d63d);_0x12e7b1&&window[_0x976d98(0x1f2)](_0x12e7b1),this[_0x976d98(0x17d)][_0x976d98(0x2b8)](_0x51d63d,null);}}[_0x7ce63a(0x1e3)](_0x494978){const _0x31a1fa=_0x7ce63a,{memberID:_0x1f4103,unitIDs:_0xad7f1e}=_0x494978;_0xad7f1e[_0x31a1fa(0x2c2)](_0x24c018=>{const _0x3ddbda=_0x31a1fa;var _0xbc31ec;const _0x4c22b8=this[_0x3ddbda(0x2b4)][_0x3ddbda(0x3de)](_0x24c018);_0x4c22b8&&(_0x4c22b8[_0x3ddbda(0x28a)](_0x1f4103),(_0xbc31ec=this[_0x3ddbda(0x1ed)](_0x24c018))==null||_0xbc31ec[_0x3ddbda(0x1ee)](_0x4c22b8['size']===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x1f4103);}['_handleHeartbeatEvent'](_0x2a0d0f){const _0x2080ef=_0x7ce63a;this['_scheduleClearOtherTimer'](_0x2a0d0f[_0x2080ef(0x282)]);}[_0x7ce63a(0x169)](_0x52fa50){const _0x4845df=_0x7ce63a;localStorage[_0x4845df(0x2ff)](as,JSON['stringify'](_0x52fa50));}[_0x7ce63a(0x15a)](){const _0x4977a9=_0x7ce63a;this[_0x4977a9(0xe2)]=window[_0x4977a9(0x138)](()=>{const _0x13d88f=_0x4977a9;this['_send']({'type':0x2,'memberID':this[_0x13d88f(0x396)]});},os);}[_0x7ce63a(0x1ed)](_0x1afd72){const _0x4cc2d3=_0x7ce63a;return this['_unitStatus'][_0x4cc2d3(0x25c)](_0x1afd72)||this['_unitStatus'][_0x4cc2d3(0x2b8)](_0x1afd72,new _0x2f2e3e(0x0)),this[_0x4cc2d3(0x353)][_0x4cc2d3(0x3de)](_0x1afd72);}}function js(_0x113e31){const _0x48aa7a=_0x7ce63a;let _0x340a90='';for(const _0x32a3cf of _0x113e31){const {startOffset:_0x45b34d,endOffset:_0x221076,isActive:_0x304887}=_0x32a3cf;_0x340a90[_0x48aa7a(0xc2)]&&(_0x340a90+=','),_0x340a90+=_0x45b34d+':'+_0x221076+':'+(_0x304887?'1':'0');}return _0x340a90;}function rr(_0x562b54){const _0x31395b=_0x7ce63a,_0x1a394f=_0x562b54[_0x31395b(0x2d5)](','),_0x4a9d3e=[];for(const _0xa2865 of _0x1a394f){const [_0x3c8344,_0x26b47c,_0x57ea57]=_0xa2865[_0x31395b(0x2d5)](':');_0x4a9d3e['push']({'startOffset':Number(_0x3c8344),'endOffset':Number(_0x26b47c),'collapsed':_0x3c8344===_0x26b47c,'isActive':_0x57ea57==='1'});}return _0x4a9d3e['some'](_0x58897f=>_0x58897f[_0x31395b(0x413)])||(_0x4a9d3e[0x0][_0x31395b(0x413)]=!0x0),_0x4a9d3e;}class Bt extends _0x24bc67{constructor(){const _0x2f62e=_0x7ce63a;super(...arguments),l(this,'_collabCursorState$',new _0x2f2e3e(null)),l(this,_0x2f62e(0x2d0),this[_0x2f62e(0x1be)][_0x2f62e(0x112)]());}[_0x7ce63a(0x2e9)](_0xf54340){const _0x4de6c4=_0x7ce63a,{unitID:_0x456f10,memberID:_0x145cf5,textRanges:_0x42e2a6}=_0xf54340,_0x211d74=js(_0x42e2a6),_0x582f33={'unitID':_0x456f10,'memberID':_0x145cf5,'selection':_0x211d74};this[_0x4de6c4(0x1be)][_0x4de6c4(0x1ee)](_0x582f33);}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x293627,_0x3afd3a,_0x477743,_0x67d603)=>{const _0x58fcad=_0x7ce63a;for(var _0x593417=_0x67d603>0x1?void 0x0:_0x67d603?ar(_0x3afd3a,_0x477743):_0x3afd3a,_0x48ffd7=_0x293627[_0x58fcad(0xc2)]-0x1,_0x5d45f7;_0x48ffd7>=0x0;_0x48ffd7--)(_0x5d45f7=_0x293627[_0x48ffd7])&&(_0x593417=(_0x67d603?_0x5d45f7(_0x3afd3a,_0x477743,_0x593417):_0x5d45f7(_0x593417))||_0x593417);return _0x67d603&&_0x593417&&or(_0x3afd3a,_0x477743,_0x593417),_0x593417;},cs=(_0x1d8e4f,_0x1a8a99)=>(_0x1c59ce,_0x343b6f)=>_0x1a8a99(_0x1c59ce,_0x343b6f,_0x1d8e4f);let et=class{constructor(_0x2b3cc5,_0x1fbfec){const _0x339101=_0x7ce63a;this[_0x339101(0x1ba)]=_0x2b3cc5,this[_0x339101(0x346)]=_0x1fbfec;}[_0x7ce63a(0xd7)](_0x536927){const _0x3265ac=_0x7ce63a;var _0x33871c;const _0x243ec3=this[_0x3265ac(0x1ba)][_0x3265ac(0x3de)](_0x1c0760),_0x48efcb=(_0x33871c=_0x243ec3[_0x3265ac(0x115)]())!=null?_0x33871c:[];if(_0x48efcb[_0x3265ac(0xc2)]===0x0)return;const _0x203084=[{'id':_0x3265ac(0x20b),'params':{'unitId':_0x536927[_0x3265ac(0x179)],'actions':null,'textRanges':_0x48efcb}}],_0x5499f6=this['_transformService'][_0x3265ac(0x161)](_0x536927,_0x203084);if(!_0x5194c5(_0x5499f6))throw _0x5499f6[_0x3265ac(0x1eb)];const _0x552719=_0x5499f6[_0x3265ac(0x19a)][0x0][_0x3265ac(0x370)]['textRanges'];Array[_0x3265ac(0x345)](_0x552719)&&_0x552719[_0x3265ac(0xc2)]&&_0x243ec3[_0x3265ac(0x31f)](_0x552719,!0x1);}};et=cr([cs(0x0,_0x525e4b(_0x2386f6)),cs(0x1,_0x44c950)],et);const hr=new Set([_0x22fdd2['id']]);function hs(_0x4e1dab,_0x5093e4,_0x4dd0e0,_0x53e287,_0x5241f3){const _0x155724=_0x7ce63a;var _0x903603,_0x5ef06e,_0x28af12,_0x295d6c;const _0x33c385=[];for(const _0x5b82c9 of _0x4e1dab)if(hr[_0x155724(0x25c)](_0x5b82c9['id'])){if(_0x33c385['length']>0x0)break;_0x33c385[_0x155724(0xd3)](_0x5b82c9);break;}else _0x33c385[_0x155724(0xd3)](_0x5b82c9);const _0x1b9b44=(_0x5ef06e=(_0x903603=_0x5241f3['getCurrentUser']())==null?void 0x0:_0x903603[_0x155724(0x302)])!=null?_0x5ef06e:_0x155724(0x14d),_0x36c766=(_0x295d6c=(_0x28af12=_0x5241f3[_0x155724(0x15c)]())==null?void 0x0:_0x28af12['memberID'])!=null?_0x295d6c:_0x155724(0x14d);return{'changeset':{'unitID':_0x5093e4,'type':_0x351947(_0x4dd0e0[_0x155724(0x11e)](_0x5093e4)),'baseRev':_0x53e287[_0x155724(0x332)](_0x5093e4),'revision':0x0,'userID':_0x1b9b44,'memberID':_0x36c766,'mutations':_0x33c385},'pendingMutations':_0x4e1dab['slice'](_0x33c385['length'])};}function lr(_0x4437f2,_0x2648ff,_0x3164be,_0x46278d,_0x3b7230){const _0x2b6346=_0x7ce63a;var _0x3760a0,_0x26fb78,_0x57f726,_0x3388e9;const _0x501323=[_0x4437f2[_0x2b6346(0x117)]((_0x3308b0,_0x5c7a8d)=>{const _0x48e224=_0x2b6346;var _0x2c9124;const {id:_0x508e6e}=_0x3308b0,{id:_0x1ea848,type:_0x166168}=_0x5c7a8d,_0x1f53fc=(_0x2c9124=_0x3308b0[_0x48e224(0x370)])!=null?_0x2c9124:{'actions':null},_0x1885e4=_0x5c7a8d[_0x48e224(0x370)];if(_0x508e6e&&_0x508e6e!==_0x1ea848)throw new Error(_0x48e224(0x273)+_0x508e6e+'\x20-\x20'+_0x1ea848+'.');return{..._0x3308b0,'id':_0x1ea848,'type':_0x166168,'params':{'unitId':_0x1885e4[_0x48e224(0x180)],'textRanges':_0x1885e4[_0x48e224(0x15d)],'actions':_0x227acc[_0x48e224(0x26b)](_0x1f53fc[_0x48e224(0x188)],_0x1885e4['actions'])}};},{})],_0x4a1779=(_0x26fb78=(_0x3760a0=_0x3b7230[_0x2b6346(0x15c)]())==null?void 0x0:_0x3760a0[_0x2b6346(0x302)])!=null?_0x26fb78:_0x2b6346(0x14d),_0x33338d=(_0x3388e9=(_0x57f726=_0x3b7230[_0x2b6346(0x15c)]())==null?void 0x0:_0x57f726[_0x2b6346(0x282)])!=null?_0x3388e9:_0x2b6346(0x14d);return{'changeset':{'unitID':_0x2648ff,'type':_0x351947(_0x3164be[_0x2b6346(0x11e)](_0x2648ff)),'baseRev':_0x46278d[_0x2b6346(0x332)](_0x2648ff),'revision':0x0,'userID':_0x4a1779,'memberID':_0x33338d,'mutations':_0x501323},'pendingMutations':[]};}const _r={'id':_0x59c52a['id'],'type':_0x3e12dc[_0x7ce63a(0x137)],'params':{}};var ur=Object[_0x7ce63a(0x1cd)],dr=Object[_0x7ce63a(0x323)],he=(_0xe75c66,_0x29108c,_0x351542,_0x520cb6)=>{const _0x41751d=_0x7ce63a;for(var _0x184c82=_0x520cb6>0x1?void 0x0:_0x520cb6?dr(_0x29108c,_0x351542):_0x29108c,_0x4312b2=_0xe75c66[_0x41751d(0xc2)]-0x1,_0x3f99ed;_0x4312b2>=0x0;_0x4312b2--)(_0x3f99ed=_0xe75c66[_0x4312b2])&&(_0x184c82=(_0x520cb6?_0x3f99ed(_0x29108c,_0x351542,_0x184c82):_0x3f99ed(_0x184c82))||_0x184c82);return _0x520cb6&&_0x184c82&&ur(_0x29108c,_0x351542,_0x184c82),_0x184c82;},f=(_0x511b8a,_0x284ff7)=>(_0xe68674,_0x3be280)=>_0x284ff7(_0xe68674,_0x3be280,_0x511b8a),w=(_0x26439d=>(_0x26439d[_0x7ce63a(0x126)]=_0x7ce63a(0x3ad),_0x26439d[_0x7ce63a(0x233)]=_0x7ce63a(0x2ab),_0x26439d[_0x7ce63a(0x140)]=_0x7ce63a(0x315),_0x26439d[_0x7ce63a(0x1d0)]='awaiting',_0x26439d[_0x7ce63a(0x2c4)]='awaiting_with_pending',_0x26439d[_0x7ce63a(0x38f)]=_0x7ce63a(0x1a8),_0x26439d[_0x7ce63a(0x2fb)]=_0x7ce63a(0x303),_0x26439d[_0x7ce63a(0x406)]='offline',_0x26439d))(w||{});class le{constructor(_0x82b373,_0x3fddeb,_0x409c0d,_0x52915f,_0x6bc26,_0x2e453b,_0x1bd51e,_0x4fad38,_0x5db29c){const _0x4770b5=_0x7ce63a;l(this,'_awaitingChangeset',null),l(this,_0x4770b5(0x265),[]),(this[_0x4770b5(0x179)]=_0x82b373,this['type']=_0x3fddeb,this[_0x4770b5(0x232)]=_0x6bc26,this['_commandService']=_0x2e453b,this[_0x4770b5(0xf0)]=_0x1bd51e,this['_revisionService']=_0x4fad38,this[_0x4770b5(0x3b4)]=_0x5db29c,this[_0x4770b5(0x352)]=_0x409c0d,this['_pendingMutations']=_0x52915f);}[_0x7ce63a(0x2d3)](_0x1fc07c){const _0x181ad1=_0x7ce63a,_0x26f3f2=this[_0x181ad1(0x176)][_0x181ad1(0x332)](this[_0x181ad1(0x179)]);return _0x1fc07c[_0x181ad1(0x268)]>_0x26f3f2+0x1?(this[_0x181ad1(0x232)][_0x181ad1(0x257)]({'from':_0x26f3f2,'to':_0x1fc07c[_0x181ad1(0x268)]-0x1}),!0x0):!0x1;}[_0x7ce63a(0x1e8)](_0x27e23e){const _0x1fb153=_0x7ce63a;this[_0x1fb153(0xf0)][_0x1fb153(0xe9)](this[_0x1fb153(0x179)],_0x27e23e);}[_0x7ce63a(0x337)](_0x1779cb){const _0x250603=_0x7ce63a;var _0x144142,_0x23324b;(_0x23324b=(_0x144142=this['_handler'])[_0x250603(0x160)])==null||_0x23324b[_0x250603(0x3a1)](_0x144142,_0x1779cb);}['_transformIMECache'](_0x2e8449){const _0x41bc17=_0x7ce63a;var _0x2c453d,_0x1ac0e4;return(_0x1ac0e4=(_0x2c453d=this[_0x41bc17(0x232)])[_0x41bc17(0x195)])==null?void 0x0:_0x1ac0e4['call'](_0x2c453d,_0x2e8449);}[_0x7ce63a(0x262)](_0x3d990d){const _0xc7562f=_0x7ce63a;var _0x2d843d,_0x428c3f,_0x58fe1d;return(_0x58fe1d=(_0x428c3f=(_0x2d843d=this['_handler'])[_0xc7562f(0x255)])==null?void 0x0:_0x428c3f[_0xc7562f(0x3a1)](_0x2d843d,_0x3d990d))!=null?_0x58fe1d:_0x3d990d;}[_0x7ce63a(0x239)](_0x14f01d){const _0x252568=_0x7ce63a;var _0x1b9415,_0x19f3ef;if(this[_0x252568(0x359)]===x[_0x252568(0x3a2)]){const {unitID:_0x5c11d5,mutations:_0x35d086,memberID:_0x58e29e}=_0x14f01d,_0x107f17=_0x35d086[0x0][_0x252568(0x370)]['textRanges'];Array['isArray'](_0x107f17)&&_0x107f17[_0x252568(0xc2)]>0x0&&((_0x19f3ef=(_0x1b9415=this['_handler'])[_0x252568(0x261)])==null||_0x19f3ef[_0x252568(0x3a1)](_0x1b9415,{'unitID':_0x5c11d5,'memberID':_0x58e29e,'textRanges':_0x107f17}));}}[_0x7ce63a(0x1df)](){const _0x19fa5e=_0x7ce63a;this[_0x19fa5e(0x3b4)][_0x19fa5e(0x3f9)](this[_0x19fa5e(0x179)],this['type'],this[_0x19fa5e(0x352)],this[_0x19fa5e(0x265)]);}[_0x7ce63a(0x26d)](){const _0x3db45d=_0x7ce63a;return this[_0x3db45d(0x176)][_0x3db45d(0x332)](this[_0x3db45d(0x179)]);}['_incrementRevisionNumber'](){const _0x485c1c=_0x7ce63a;this[_0x485c1c(0x176)][_0x485c1c(0xeb)](this[_0x485c1c(0x179)]);}[_0x7ce63a(0x3e8)](_0xe108b5){const _0x5045ed=_0x7ce63a;var _0x4ee233;const _0x5f639a=this[_0x5045ed(0x262)](_0xe108b5),_0xc82c68=_0x3c6557(_0x5f639a[_0x5045ed(0x251)],this[_0x5045ed(0x270)],{'fromCollab':!0x0});if(!_0xc82c68[_0x5045ed(0x2fd)])throw _0xc82c68[_0x5045ed(0x1eb)]instanceof Error?_0xc82c68['error']:new Error((_0x4ee233=_0xc82c68[_0x5045ed(0x1eb)])!=null?_0x4ee233:_0x5045ed(0x23b));this[_0x5045ed(0x21f)](_0x5f639a),this[_0x5045ed(0x1e8)](_0xe108b5),this['_transformSelections'](_0x5f639a),this[_0x5045ed(0x239)](_0x5f639a),this['_incrementRevisionNumber']();}}let Se=class extends le{constructor(_0x183f20,_0x4b487d,_0x4bd868,_0x1a811d,_0x8d7bf1,_0x5634b3,_0x3b8df9,_0x29cd25,_0x4c6a4f,_0x1b4019){const _0x4c290d=_0x7ce63a;super(_0x183f20,_0x4b487d,null,[],_0x4bd868,_0x29cd25,_0x3b8df9,_0x1a811d,_0x8d7bf1),l(this,_0x4c290d(0x339),'synced'),(this['_injector']=_0x5634b3,this['_logService']=_0x4c6a4f,this[_0x4c290d(0x346)]=_0x1b4019);}[_0x7ce63a(0x3b2)](_0x45fb05){const _0x420d6e=_0x7ce63a,_0x1d2905=this[_0x420d6e(0x1ba)][_0x420d6e(0x23c)](Y,this[_0x420d6e(0x179)],this[_0x420d6e(0x359)],[_0x45fb05],this['_handler']);return _0x1d2905[_0x420d6e(0x39a)](),_0x1d2905[_0x420d6e(0x1df)](),_0x1d2905;}[_0x7ce63a(0x328)](_0x40d93a){const _0x580434=_0x7ce63a;if(this['_checkMissing'](_0x40d93a))return this['_injector'][_0x580434(0x23c)](H,this['unitID'],this['type'],null,[],null,[_0x40d93a],this['_handler']);try{const _0x2569df=this['_transformService'][_0x580434(0x161)](_0x40d93a,[_r]);if(_0x5194c5(_0x2569df)){const {c1Prime:_0x59c04a}=_0x2569df;return this[_0x580434(0x3e8)](_0x59c04a),this;}throw _0x2569df[_0x580434(0x1eb)];}catch(_0x1344c9){return this[_0x580434(0x2a9)][_0x580434(0x1eb)](_0x1344c9),this[_0x580434(0xca)](!0x1);}}[_0x7ce63a(0xca)](_0x14fb2b){const _0x2c5eba=_0x7ce63a;return this[_0x2c5eba(0x1ba)][_0x2c5eba(0x23c)](Q,this['unitID'],this[_0x2c5eba(0x359)],null,[],this[_0x2c5eba(0x232)],_0x14fb2b);}[_0x7ce63a(0xe7)](){const _0x176726=_0x7ce63a;throw new Error(_0x176726(0x29d));}[_0x7ce63a(0x14e)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x4d2ab0=_0x7ce63a;return this[_0x4d2ab0(0x1ba)][_0x4d2ab0(0x23c)](ee,this['unitID'],this[_0x4d2ab0(0x359)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x7ce63a(0x384)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x7ce63a(0x17c)](){const _0x2ef773=_0x7ce63a,_0x3bb75e=this[_0x2ef773(0x176)][_0x2ef773(0x332)](this[_0x2ef773(0x179)]);return this['_handler'][_0x2ef773(0x257)]({'from':_0x3bb75e,'to':0x0}),this['_injector'][_0x2ef773(0x23c)](H,this['unitID'],this['type'],null,[],null,[],this[_0x2ef773(0x232)]);}};Se=he([f(0x3,_0x525e4b(_0xf65b72)),f(0x4,_0x525e4b(D)),f(0x5,_0x525e4b(_0x2386f6)),f(0x6,_0x479a29),f(0x7,_0x25ecde),f(0x8,_0x2fa9fe),f(0x9,_0x44c950)],Se);let Y=class extends le{constructor(_0x284f3f,_0x1c6365,_0x4b36b9,_0x37248f,_0xa1833c,_0x23f5fc,_0x483e39,_0x13dee3,_0x70a399,_0x216337,_0x130dca,_0x3684b5,_0x3fff6a,_0x50ccd3){const _0x1f9e7d=_0x7ce63a;super(_0x284f3f,_0x1c6365,null,_0x4b36b9,_0x37248f,_0x216337,_0x50ccd3,_0x23f5fc,_0x483e39),l(this,_0x1f9e7d(0x339),'pending'),l(this,'_scheduleTimestamp',null),l(this,'_sendingTimer',null),(this[_0x1f9e7d(0x1ba)]=_0xa1833c,this[_0x1f9e7d(0x18e)]=_0x13dee3,this[_0x1f9e7d(0x2a9)]=_0x70a399,this[_0x1f9e7d(0x122)]=_0x130dca,this[_0x1f9e7d(0x346)]=_0x3684b5,this[_0x1f9e7d(0x11a)]=_0x3fff6a);}[_0x7ce63a(0x3b2)](_0x24fbb3){const _0x150618=_0x7ce63a;return this[_0x150618(0x265)][_0x150618(0xd3)](_0x24fbb3),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x581670){const _0x31ccd8=_0x7ce63a;if(this[_0x31ccd8(0x2d3)](_0x581670))return this[_0x31ccd8(0x40b)](),this['_injector'][_0x31ccd8(0x23c)](H,this['unitID'],this[_0x31ccd8(0x359)],null,this[_0x31ccd8(0x265)],null,[_0x581670],this[_0x31ccd8(0x232)]);try{const _0x785b77=this[_0x31ccd8(0x346)][_0x31ccd8(0x161)](_0x581670,this[_0x31ccd8(0x265)]);if(_0x5194c5(_0x785b77)){const {c1Prime:_0x479605,m2Prime:_0x2597a1}=_0x785b77;this['_executeRemoteChangeset'](_0x479605);const _0x145653=this[_0x31ccd8(0x1ba)][_0x31ccd8(0x23c)](Y,this['unitID'],this[_0x31ccd8(0x359)],_0x2597a1,this[_0x31ccd8(0x232)]);return this[_0x31ccd8(0x40b)](),_0x145653[_0x31ccd8(0x39a)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x31ccd8(0x1ad)]()-this[_0x31ccd8(0x1e5)]):this[_0x31ccd8(0x333)]()),_0x145653;}throw _0x785b77[_0x31ccd8(0x1eb)];}catch(_0x348e06){return this['_logService'][_0x31ccd8(0x1eb)](_0x348e06),this[_0x31ccd8(0xca)](!0x1);}}[_0x7ce63a(0xe7)](){const _0x4a1d36=_0x7ce63a;throw new Error(_0x4a1d36(0x360));}[_0x7ce63a(0x14e)](){const _0x39d466=_0x7ce63a;throw new Error(_0x39d466(0x1e0));}[_0x7ce63a(0x14c)](){const _0x2b77b1=_0x7ce63a;return this[_0x2b77b1(0x40b)](),this['_injector'][_0x2b77b1(0x23c)](ee,this[_0x2b77b1(0x179)],this[_0x2b77b1(0x359)],null,this[_0x2b77b1(0x265)],this[_0x2b77b1(0x232)]);}[_0x7ce63a(0x37c)](){return this;}[_0x7ce63a(0x39a)](_0x1c999f){const _0x5a52f1=_0x7ce63a,_0x292fb8=_0x1c999f!=null?_0x1c999f:this[_0x5a52f1(0x333)]();this[_0x5a52f1(0x1e5)]=new Date()[_0x5a52f1(0x1ad)](),this[_0x5a52f1(0x1ea)]=window[_0x5a52f1(0x1a2)](()=>{const _0x497240=_0x5a52f1;this['_clearScheduledTask']();let _0x3bd814=null;switch(this[_0x497240(0x359)]){case x[_0x497240(0x22f)]:{_0x3bd814=hs(this[_0x497240(0x265)],this['unitID'],this['_univerInstanceService'],this[_0x497240(0x176)],this[_0x497240(0x18e)]);break;}case x[_0x497240(0x3a2)]:{this['_pendingMutations'][_0x497240(0x207)](_0x339b6d=>_0x339b6d['id']===_0x2e167a['id'])?_0x3bd814=lr(this[_0x497240(0x265)],this[_0x497240(0x179)],this[_0x497240(0x11a)],this['_revisionService'],this[_0x497240(0x18e)]):_0x3bd814=hs(this[_0x497240(0x265)],this[_0x497240(0x179)],this[_0x497240(0x11a)],this[_0x497240(0x176)],this['_memberService']);break;}default:throw new Error(_0x497240(0x1d3)+this[_0x497240(0x359)]+_0x497240(0x2cd));}const {changeset:_0x433bcd,pendingMutations:_0x40a746}=_0x3bd814;this[_0x497240(0x232)]['onSendChangeset'](_0x433bcd);const _0x5df672=_0x40a746[_0x497240(0xc2)]?this[_0x497240(0x1ba)][_0x497240(0x23c)](K,this[_0x497240(0x179)],this[_0x497240(0x359)],_0x433bcd,_0x40a746,this[_0x497240(0x232)]):this[_0x497240(0x1ba)][_0x497240(0x23c)](Z,this['unitID'],this[_0x497240(0x359)],_0x433bcd,this[_0x497240(0x232)]);_0x5df672[_0x497240(0x1df)](),this[_0x497240(0x232)][_0x497240(0x28e)](this,_0x5df672);},_0x292fb8);}[_0x7ce63a(0x333)](){const _0x4196a7=_0x7ce63a;var _0x5ddd49;return(_0x5ddd49=this[_0x4196a7(0x122)]['getConfig'](mn))!=null?_0x5ddd49:fn;}[_0x7ce63a(0x384)](){const _0x120362=_0x7ce63a;throw new Error(_0x120362(0x330));}[_0x7ce63a(0x40b)](){const _0x51029c=_0x7ce63a;this[_0x51029c(0x1ea)]!=null&&(clearTimeout(this[_0x51029c(0x1ea)]),this[_0x51029c(0x1ea)]=null);}[_0x7ce63a(0xca)](_0x314904){const _0x424012=_0x7ce63a;return this[_0x424012(0x40b)](),this['_injector']['createInstance'](Q,this[_0x424012(0x179)],this[_0x424012(0x359)],null,this[_0x424012(0x265)],this['_handler'],_0x314904);}};Y=he([f(0x4,_0x525e4b(_0x2386f6)),f(0x5,_0x525e4b(_0xf65b72)),f(0x6,_0x525e4b(D)),f(0x7,_0x525e4b(oe)),f(0x8,_0x2fa9fe),f(0x9,_0x25ecde),f(0xa,_0x5701c0),f(0xb,_0x44c950),f(0xc,_0x10baba),f(0xd,_0x479a29)],Y);let Z=class extends le{constructor(_0xc61158,_0x2fc795,_0x3d7dcf,_0x13f3ef,_0x20c790,_0x24915a,_0x352e69,_0x1a8eef,_0x45715e,_0x2465a8,_0x58720b){const _0x34ab64=_0x7ce63a;super(_0xc61158,_0x2fc795,_0x3d7dcf,[],_0x13f3ef,_0x1a8eef,_0x58720b,_0x24915a,_0x352e69),l(this,_0x34ab64(0x339),_0x34ab64(0x349)),(this[_0x34ab64(0x1ba)]=_0x20c790,this[_0x34ab64(0x2a9)]=_0x45715e,this['_transformService']=_0x2465a8);}['appendMutation'](_0x22d685){const _0x3e98b4=_0x7ce63a,_0x47f57d=this[_0x3e98b4(0x1ba)][_0x3e98b4(0x23c)](K,this['unitID'],this[_0x3e98b4(0x359)],this[_0x3e98b4(0x352)],[_0x22d685],this[_0x3e98b4(0x232)]);return _0x47f57d[_0x3e98b4(0x1df)](),_0x47f57d;}[_0x7ce63a(0x328)](_0x4862b5){const _0x3ea25b=_0x7ce63a;if(this[_0x3ea25b(0x2d3)](_0x4862b5))return this[_0x3ea25b(0x1ba)]['createInstance'](H,this[_0x3ea25b(0x179)],this[_0x3ea25b(0x359)],this[_0x3ea25b(0x352)],[],null,[_0x4862b5],this['_handler']);try{const _0x36c445=this['_transformService'][_0x3ea25b(0x364)]([_0x4862b5],[this['_awaitingChangeset']],!0x1);if(_0x36266f(_0x36c445)){const {c1Prime:_0x31c477,c2Prime:_0x3a14f8}=_0x36c445;this['_executeRemoteChangeset'](_0x31c477[0x0]),_0x3a14f8[0x0][_0x3ea25b(0xef)]=this[_0x3ea25b(0x26d)]();const _0x17cc28=this[_0x3ea25b(0x1ba)][_0x3ea25b(0x23c)](Z,this['unitID'],this[_0x3ea25b(0x359)],_0x3a14f8[0x0],this[_0x3ea25b(0x232)]);return _0x17cc28[_0x3ea25b(0x1df)](),_0x17cc28;}return this[_0x3ea25b(0xca)](!0x1);}catch(_0x408956){return this['_logService'][_0x3ea25b(0x1eb)](_0x408956),this[_0x3ea25b(0xca)](!0x1);}}['onRemoteAck'](_0x2eaf3d){const _0x2aadb9=_0x7ce63a,_0x1b3123=this[_0x2aadb9(0x176)][_0x2aadb9(0x332)](this[_0x2aadb9(0x179)]);if(_0x2eaf3d[_0x2aadb9(0x268)]<_0x1b3123-0x1)return this;if(this[_0x2aadb9(0x2d3)](_0x2eaf3d))return this[_0x2aadb9(0x1ba)]['createInstance'](H,this[_0x2aadb9(0x179)],this[_0x2aadb9(0x359)],null,[],this[_0x2aadb9(0x352)],[],this['_handler']);this[_0x2aadb9(0x132)]();const _0x22ac92=this[_0x2aadb9(0x1ba)][_0x2aadb9(0x23c)](Se,this[_0x2aadb9(0x179)],this[_0x2aadb9(0x359)],this[_0x2aadb9(0x232)]);return _0x22ac92[_0x2aadb9(0x1df)](),_0x22ac92;}[_0x7ce63a(0x14e)](_0x55c2a7){const _0x19731a=_0x7ce63a;return this['_onConflict'](!!(_0x55c2a7!=null&&_0x55c2a7[_0x19731a(0x240)]));}[_0x7ce63a(0x14c)](){const _0x5b2b41=_0x7ce63a;return this[_0x5b2b41(0x1ba)][_0x5b2b41(0x23c)](ee,this[_0x5b2b41(0x179)],this['type'],this[_0x5b2b41(0x352)],[],this[_0x5b2b41(0x232)]);}[_0x7ce63a(0x37c)](){return this;}[_0x7ce63a(0x384)](){const _0x4b87c1=_0x7ce63a;this[_0x4b87c1(0x232)]['onSendChangeset'](this[_0x4b87c1(0x352)]);}[_0x7ce63a(0xca)](_0x272f94){const _0x332dfe=_0x7ce63a;return this['_injector']['createInstance'](Q,this[_0x332dfe(0x179)],this[_0x332dfe(0x359)],this[_0x332dfe(0x352)],[],this['_handler'],_0x272f94);}};Z=he([f(0x4,_0x525e4b(_0x2386f6)),f(0x5,_0x525e4b(_0xf65b72)),f(0x6,_0x525e4b(D)),f(0x7,_0x25ecde),f(0x8,_0x2fa9fe),f(0x9,_0x44c950),f(0xa,_0x479a29)],Z);let K=class extends le{constructor(_0x1e4eed,_0x366541,_0x5619ff,_0x481e15,_0xb16e9b,_0xbfd14d,_0x2f8e70,_0x102e63,_0x2e9ee8,_0x10c465,_0x764f0d,_0x53c00b){const _0x56dfa7=_0x7ce63a;super(_0x1e4eed,_0x366541,_0x5619ff,_0x481e15,_0xb16e9b,_0x2e9ee8,_0x53c00b,_0x2f8e70,_0x102e63),l(this,_0x56dfa7(0x339),_0x56dfa7(0x29c)),(this[_0x56dfa7(0x1ba)]=_0xbfd14d,this[_0x56dfa7(0x2a9)]=_0x10c465,this[_0x56dfa7(0x346)]=_0x764f0d);}['appendMutation'](_0x39efbf){const _0x1c5cf5=_0x7ce63a;return this[_0x1c5cf5(0x265)][_0x1c5cf5(0xd3)](_0x39efbf),this;}[_0x7ce63a(0x328)](_0x2845de){const _0x59e05b=_0x7ce63a;if(this[_0x59e05b(0x2d3)](_0x2845de))return this['_injector'][_0x59e05b(0x23c)](H,this[_0x59e05b(0x179)],this[_0x59e05b(0x359)],this[_0x59e05b(0x352)],this[_0x59e05b(0x265)],null,[_0x2845de],this[_0x59e05b(0x232)]);try{const _0x2259ad=this[_0x59e05b(0x346)][_0x59e05b(0x364)]([_0x2845de],[this[_0x59e05b(0x352)]],!0x1);if(_0x36266f(_0x2259ad)){const {c1Prime:_0x41a8b2,c2Prime:_0x167280}=_0x2259ad,_0x10fe60=this['_transformService'][_0x59e05b(0x161)](_0x41a8b2[0x0],this[_0x59e05b(0x265)]);if(_0x5194c5(_0x10fe60)){const {c1Prime:_0xdf53bb,m2Prime:_0x2d0dbf}=_0x10fe60;return this[_0x59e05b(0x3e8)](_0xdf53bb),_0x167280[0x0][_0x59e05b(0xef)]=this[_0x59e05b(0x26d)](),this[_0x59e05b(0x1ba)][_0x59e05b(0x23c)](K,this[_0x59e05b(0x179)],this[_0x59e05b(0x359)],_0x167280[0x0],_0x2d0dbf,this['_handler']);}throw _0x10fe60[_0x59e05b(0x1eb)];}throw _0x2259ad[_0x59e05b(0x1eb)];}catch(_0x2cf8cf){return this[_0x59e05b(0x2a9)]['error'](_0x2cf8cf),this['_onConflict'](!0x1);}}[_0x7ce63a(0xe7)](_0x426b13){const _0x544d03=_0x7ce63a;if(this[_0x544d03(0x2d3)](_0x426b13))return this[_0x544d03(0x1ba)][_0x544d03(0x23c)](H,this[_0x544d03(0x179)],this['type'],null,this['_pendingMutations'],this[_0x544d03(0x352)],[],this[_0x544d03(0x232)]);this['_incrementRevisionNumber']();const _0x18cf1a=this[_0x544d03(0x1ba)][_0x544d03(0x23c)](Y,this[_0x544d03(0x179)],this['type'],this[_0x544d03(0x265)],this[_0x544d03(0x232)]);return _0x18cf1a[_0x544d03(0x39a)](),_0x18cf1a[_0x544d03(0x1df)](),_0x18cf1a;}[_0x7ce63a(0x14e)](_0x2b139a){const _0x43c141=_0x7ce63a;return this[_0x43c141(0xca)](!!(_0x2b139a!=null&&_0x2b139a['isPermissionRej']));}[_0x7ce63a(0x14c)](){const _0x76dad9=_0x7ce63a;return this['_injector'][_0x76dad9(0x23c)](ee,this[_0x76dad9(0x179)],this[_0x76dad9(0x359)],this[_0x76dad9(0x352)],this[_0x76dad9(0x265)],this['_handler']);}[_0x7ce63a(0x37c)](){return this;}[_0x7ce63a(0x384)](){const _0x3f5cf1=_0x7ce63a;this[_0x3f5cf1(0x232)][_0x3f5cf1(0x1b3)](this[_0x3f5cf1(0x352)]);}['_onConflict'](_0x4c25c3){const _0x504043=_0x7ce63a;return this[_0x504043(0x1ba)][_0x504043(0x23c)](Q,this[_0x504043(0x179)],this[_0x504043(0x359)],null,this['_pendingMutations'],this[_0x504043(0x232)],_0x4c25c3);}};K=he([f(0x5,_0x525e4b(_0x2386f6)),f(0x6,_0x525e4b(_0xf65b72)),f(0x7,_0x525e4b(D)),f(0x8,_0x25ecde),f(0x9,_0x2fa9fe),f(0xa,_0x44c950),f(0xb,_0x479a29)],K);let Q=class extends le{constructor(_0x412c46,_0x20b111,_0x40e5a1,_0x1bfed9,_0x340629,_0x38c1aa=!0x1,_0x246a53,_0xc4fa0b,_0x5b0e99,_0x2d81b7,_0x12bc5f,_0x420b6f,_0x567737){const _0x257069=_0x7ce63a;super(_0x412c46,_0x20b111,_0x40e5a1,_0x1bfed9,_0x340629,_0xc4fa0b,_0x5b0e99,_0x12bc5f,_0x2d81b7),l(this,_0x257069(0x339),_0x257069(0x303)),(this[_0x257069(0x289)]=_0x38c1aa,this[_0x257069(0x1f8)]=_0x246a53,this[_0x257069(0xd1)]=_0x420b6f,this[_0x257069(0xba)]=_0x567737,this['_showConflictNotification'](),this[_0x257069(0x397)](),this[_0x257069(0x299)]());}[_0x7ce63a(0x3b2)](){return this;}[_0x7ce63a(0x328)](){return this;}[_0x7ce63a(0xe7)](){return this;}[_0x7ce63a(0x14e)](){return this;}[_0x7ce63a(0x14c)](){return this;}['toggleOnline'](){return this;}[_0x7ce63a(0x384)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x7ce63a(0x397)](){const _0x4976a8=_0x7ce63a;this[_0x4976a8(0x3b4)][_0x4976a8(0x3f9)](this[_0x4976a8(0x179)],this['type'],null,[]);}[_0x7ce63a(0x373)](){const _0x5c9260=_0x7ce63a;this[_0x5c9260(0x289)]?this[_0x5c9260(0xba)][_0x5c9260(0xfa)]({'title':this['_localeService']['t'](_0x5c9260(0x247)),'content':this[_0x5c9260(0xd1)]['t'](_0x5c9260(0x3f3)),'type':_0x5c9260(0x1eb),'duration':0x0}):this[_0x5c9260(0xba)][_0x5c9260(0xfa)]({'title':this[_0x5c9260(0xd1)]['t']('conflict.title'),'content':this[_0x5c9260(0xd1)]['t'](_0x5c9260(0x13f)),'type':'error','duration':0x0});}[_0x7ce63a(0x299)](){const _0x3e539c=_0x7ce63a;this['_permissionService'][_0x3e539c(0x382)](new _0xd4e52(this['unitID'])['id'],!0x1);}};Q=he([f(0x6,_0x525e4b(_0x58d6c0)),f(0x7,_0x25ecde),f(0x8,_0x479a29),f(0x9,_0x525e4b(D)),f(0xa,_0x525e4b(_0xf65b72)),f(0xb,_0x525e4b(_0xe0d77a)),f(0xc,_0x11d660)],Q);let ee=class extends le{constructor(_0x58c496,_0x5ddaef,_0x58ab6b,_0x14da3f,_0x6b8023,_0x1244af,_0x86027,_0x39b24b,_0x1508b8,_0x50a6cc){const _0xd538e3=_0x7ce63a;super(_0x58c496,_0x5ddaef,_0x58ab6b,_0x14da3f,_0x6b8023,_0x1508b8,_0x50a6cc,_0x86027,_0x39b24b),l(this,'status',_0xd538e3(0x278)),this['_injector']=_0x1244af;}['appendMutation'](_0x1fdce2){const _0x4f3216=_0x7ce63a;return this[_0x4f3216(0x265)][_0x4f3216(0xd3)](_0x1fdce2),this[_0x4f3216(0x1df)](),this;}[_0x7ce63a(0x328)](_0x1ae6d5){const _0xa3958e=_0x7ce63a;throw new Error(_0xa3958e(0x222));}[_0x7ce63a(0xe7)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x7ce63a(0x14e)](){const _0x1518e1=_0x7ce63a;throw new Error(_0x1518e1(0x40e));}['toggleOffline'](){return this;}[_0x7ce63a(0x37c)](){const _0x12113d=_0x7ce63a,{_injector:_0x9324cd,_pendingMutations:_0x32158f,_awaitingChangeset:_0x509611,unitID:_0xe04b9c,_handler:_0x4a2b38,type:_0x21b0e5}=this,_0x1008b3=xs(_0x9324cd,_0xe04b9c,_0x21b0e5,_0x509611,_0x32158f,_0x4a2b38);return _0x1008b3 instanceof Y?_0x1008b3[_0x12113d(0x39a)]():(_0x1008b3 instanceof K||_0x1008b3 instanceof Z)&&_0x1008b3[_0x12113d(0x384)](),_0x1008b3;}['resend'](){const _0x5b2c33=_0x7ce63a;throw new Error(_0x5b2c33(0x220));}};ee=he([f(0x5,_0x525e4b(_0x2386f6)),f(0x6,_0x525e4b(_0xf65b72)),f(0x7,_0x525e4b(D)),f(0x8,_0x25ecde),f(0x9,_0x479a29)],ee);let H=class extends le{constructor(_0x29378b,_0xfde380,_0xe6dde,_0x24e786,_0x3e7147,_0xd6d32,_0x5cc313,_0x4a484d,_0xb0adf4,_0x4f1b6c,_0x13457a,_0x157609,_0x4d6133,_0x516a59){const _0x2a029d=_0x7ce63a;super(_0x29378b,_0xfde380,_0xe6dde,_0x24e786,_0x5cc313,_0x157609,_0x4d6133,_0xb0adf4,_0x4f1b6c),l(this,'status',_0x2a029d(0x1a8)),(this[_0x2a029d(0x342)]=_0x3e7147,this[_0x2a029d(0x178)]=_0xd6d32,this[_0x2a029d(0x1ba)]=_0x4a484d,this[_0x2a029d(0x2a9)]=_0x13457a,this[_0x2a029d(0x346)]=_0x516a59);}[_0x7ce63a(0x151)](_0x82779e){const _0x264164=_0x7ce63a;try{const _0x494f5e=[..._0x82779e,...this['_queuedRemoteChangesets']],_0x36ede9=[this[_0x264164(0x352)]||this['_acknowledgedAwaitingChangeset']][_0x264164(0x144)](_0x2f38b1=>!!_0x2f38b1);let _0x2cc483,_0x2ec2cf;if(_0x36ede9[_0x264164(0xc2)]){const _0x9460b7=this[_0x264164(0x346)]['transformChangesets'](_0x494f5e,_0x36ede9,!0x1);if(!_0x36266f(_0x9460b7))throw _0x9460b7[_0x264164(0x1eb)];_0x2cc483=_0x9460b7[_0x264164(0x172)],_0x2ec2cf=_0x9460b7[_0x264164(0x2a0)];}else _0x2cc483=_0x494f5e,_0x2ec2cf=[];let _0xbbc9c1=this['_pendingMutations'];_0x2cc483[_0x264164(0x2c2)](_0x2a5a7d=>{const _0x22aab2=_0x264164;let _0x39d81f;if(_0xbbc9c1[_0x22aab2(0xc2)]){const _0x18b78b=this[_0x22aab2(0x346)]['transformMutationsWithChangeset'](_0x2a5a7d,_0xbbc9c1);if(!_0x5194c5(_0x18b78b))throw _0x18b78b['error'];_0x39d81f=_0x18b78b[_0x22aab2(0x172)],_0xbbc9c1=_0x18b78b[_0x22aab2(0x19a)];}else _0x39d81f=_0x2a5a7d;this[_0x22aab2(0x3e8)](_0x39d81f);}),this['_acknowledgedAwaitingChangeset']&&this[_0x264164(0x132)](),this['_awaitingChangeset']&&_0x2ec2cf[_0x264164(0xc2)]&&(_0x2ec2cf[0x0][_0x264164(0xef)]=this['_getCurrentRevision']());let _0x76f028;if(this[_0x264164(0x352)]&&_0xbbc9c1[_0x264164(0xc2)]!==0x0)_0x76f028=this[_0x264164(0x1ba)]['createInstance'](K,this[_0x264164(0x179)],this[_0x264164(0x359)],_0x2ec2cf[0x0],_0xbbc9c1,this[_0x264164(0x232)]);else{if(this[_0x264164(0x352)]&&_0xbbc9c1[_0x264164(0xc2)]===0x0)_0x2ec2cf[0x0][_0x264164(0xef)]=this[_0x264164(0x26d)](),_0x76f028=this[_0x264164(0x1ba)][_0x264164(0x23c)](Z,this[_0x264164(0x179)],this[_0x264164(0x359)],_0x2ec2cf[0x0],this[_0x264164(0x232)]);else{if(_0xbbc9c1[_0x264164(0xc2)]!==0x0){const _0x578592=this[_0x264164(0x1ba)]['createInstance'](Y,this[_0x264164(0x179)],this[_0x264164(0x359)],_0xbbc9c1,this[_0x264164(0x232)]);_0x578592[_0x264164(0x39a)](),_0x76f028=_0x578592;}else _0x76f028=this[_0x264164(0x1ba)][_0x264164(0x23c)](Se,this[_0x264164(0x179)],this['type'],this[_0x264164(0x232)]);}}return _0x76f028['_updateLocalCache'](),_0x76f028;}catch(_0xec1e58){return this[_0x264164(0x2a9)][_0x264164(0x1eb)](_0x264164(0x13e),_0x264164(0x2cc),_0xec1e58),this[_0x264164(0x1ba)][_0x264164(0x23c)](Q,this[_0x264164(0x179)],this[_0x264164(0x359)],this[_0x264164(0x352)],this[_0x264164(0x265)],this[_0x264164(0x232)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0xf4c8d2){const _0x215c4b=_0x7ce63a;return this[_0x215c4b(0x265)]['push'](_0xf4c8d2),this;}[_0x7ce63a(0x328)](_0x483829){const _0x3142c6=_0x7ce63a;return this[_0x3142c6(0x178)][_0x3142c6(0xd3)](_0x483829),this;}[_0x7ce63a(0xe7)](_0x317450){const _0x4f1dbd=_0x7ce63a;if(this[_0x4f1dbd(0x352)])return this[_0x4f1dbd(0x342)]=this['_awaitingChangeset'],this[_0x4f1dbd(0x352)]=null,this;throw new Error(_0x4f1dbd(0x254));}[_0x7ce63a(0x14e)](_0x1adc34){const _0x3cc4e3=_0x7ce63a;return this[_0x3cc4e3(0xca)](!!(_0x1adc34!=null&&_0x1adc34[_0x3cc4e3(0x240)]));}[_0x7ce63a(0x14c)](){const _0x3b7579=_0x7ce63a;return this[_0x3b7579(0x1ba)][_0x3b7579(0x23c)](ee,this['unitID'],this[_0x3b7579(0x359)],this[_0x3b7579(0x352)],this[_0x3b7579(0x265)],this[_0x3b7579(0x232)]);}[_0x7ce63a(0x37c)](){return this;}[_0x7ce63a(0xca)](_0x4ea77f){const _0x5d6866=_0x7ce63a;return this[_0x5d6866(0x1ba)][_0x5d6866(0x23c)](Q,this[_0x5d6866(0x179)],this['type'],this['_awaitingChangeset'],this[_0x5d6866(0x265)],this['_handler'],_0x4ea77f);}};H=he([f(0x7,_0x525e4b(_0x2386f6)),f(0x8,_0x525e4b(_0xf65b72)),f(0x9,_0x525e4b(D)),f(0xa,_0x2fa9fe),f(0xb,_0x25ecde),f(0xc,_0x479a29),f(0xd,_0x44c950)],H);function xs(_0x4b94be,_0x300bcc,_0x36a6a3,_0x46130e,_0x2fd203,_0x5c42a8){const _0x2f0837=_0x7ce63a;return _0x46130e&&_0x2fd203[_0x2f0837(0xc2)]?_0x4b94be[_0x2f0837(0x23c)](K,_0x300bcc,_0x36a6a3,_0x46130e,_0x2fd203,_0x5c42a8):_0x46130e?_0x4b94be[_0x2f0837(0x23c)](Z,_0x300bcc,_0x36a6a3,_0x46130e,_0x5c42a8):_0x2fd203['length']?_0x4b94be[_0x2f0837(0x23c)](Y,_0x300bcc,_0x36a6a3,_0x2fd203,_0x5c42a8):_0x4b94be[_0x2f0837(0x23c)](Se,_0x300bcc,_0x36a6a3,_0x5c42a8);}var mr=Object[_0x7ce63a(0x1cd)],fr=Object[_0x7ce63a(0x323)],Vt=(_0x537238,_0x28fe8c,_0x526e3e,_0x289d5c)=>{const _0x484fd6=_0x7ce63a;for(var _0x3c98d7=_0x289d5c>0x1?void 0x0:_0x289d5c?fr(_0x28fe8c,_0x526e3e):_0x28fe8c,_0x324caa=_0x537238[_0x484fd6(0xc2)]-0x1,_0x376067;_0x324caa>=0x0;_0x324caa--)(_0x376067=_0x537238[_0x324caa])&&(_0x3c98d7=(_0x289d5c?_0x376067(_0x28fe8c,_0x526e3e,_0x3c98d7):_0x376067(_0x3c98d7))||_0x3c98d7);return _0x289d5c&&_0x3c98d7&&mr(_0x28fe8c,_0x526e3e,_0x3c98d7),_0x3c98d7;},p=(_0x1edf8d,_0x3c1ffb)=>(_0x45d7e8,_0x2f050c)=>_0x3c1ffb(_0x45d7e8,_0x2f050c,_0x1edf8d);let tt=class extends _0x24bc67{constructor(_0x742569,_0x105bcf,_0x1de6cd,_0x4ef5e3,_0x47fc83,_0xc5736f,_0x55b532,_0x2bca57,_0x51dd10,_0x4eff52,_0x1f5424,_0x4dd788,_0x5ba948){const _0x343b97=_0x7ce63a;super(),l(this,_0x343b97(0x3db),new _0x2f2e3e(null)),l(this,'state$',this[_0x343b97(0x3db)][_0x343b97(0x112)]()),l(this,'_state'),l(this,_0x343b97(0x37f),!0x1),l(this,_0x343b97(0xe0),this[_0x343b97(0x38c)][_0x343b97(0x1f3)](_0x370b8a(_0x495832=>_0x495832?_0x495832['status']:w[_0x343b97(0x406)]),_0x2e17a2(0x1))),l(this,_0x343b97(0xe1),!0x1),l(this,_0x343b97(0x28d),[]),(this[_0x343b97(0x179)]=_0x742569,this['session']=_0x105bcf,this['_type']=_0x1de6cd,this[_0x343b97(0x1ba)]=_0x4ef5e3,this[_0x343b97(0x3b4)]=_0x47fc83,this['_compressMutationService']=_0xc5736f,this['_localeService']=_0x55b532,this[_0x343b97(0x176)]=_0x2bca57,this[_0x343b97(0x2a9)]=_0x51dd10,this[_0x343b97(0x270)]=_0x4eff52,this[_0x343b97(0x217)]=_0x1f5424,this[_0x343b97(0x1f8)]=_0x4dd788,this[_0x343b97(0x1c0)]=_0x5ba948);}get[_0x7ce63a(0xd4)](){const _0x557d8e=_0x7ce63a;return this[_0x557d8e(0xf5)];}async[_0x7ce63a(0xff)](){const _0x33824e=_0x7ce63a;if(this[_0x33824e(0xd4)])throw new Error(_0x33824e(0x400));await this[_0x33824e(0x11d)]();}[_0x7ce63a(0x376)](){const _0x24c998=_0x7ce63a;return this[_0x24c998(0x37f)]=!0x0,_0x1fc5cf(()=>{const _0x2d8763=_0x24c998;this[_0x2d8763(0x37f)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x2b7449){const _0x56ea0f=_0x7ce63a;this['_state']=_0x2b7449,this[_0x56ea0f(0x3db)][_0x56ea0f(0x1ee)](_0x2b7449);}async[_0x7ce63a(0x11d)](){const _0x3d0725=_0x7ce63a;var _0x206ff8;this['_updateState'](await this[_0x3d0725(0xa6)]()),this[_0x3d0725(0x1c0)]&&((_0x206ff8=this[_0x3d0725(0x1c0)])==null||_0x206ff8[_0x3d0725(0x1ce)](this[_0x3d0725(0x179)]),this[_0x3d0725(0x355)](this[_0x3d0725(0x1c0)][_0x3d0725(0x310)](this[_0x3d0725(0x179)])['subscribe'](_0x518c19=>{const _0x3d50cd=_0x3d0725;this[_0x3d50cd(0x2a9)]['debug']('[CollaborationEntity]',_0x3d50cd(0x2a5),_0x518c19),_0x518c19===$s['OTHER_CLIENTS_EDITING']?(this[_0x3d50cd(0x217)][_0x3d50cd(0xfa)]({'content':this[_0x3d50cd(0xd1)]['t']('collaboration.single-unit.warning'),'type':_0x311bf7['Warning']}),this['_permissionService']['updatePermissionPoint'](new _0xd4e52(this[_0x3d50cd(0x179)])['id'],!0x1)):this['_permissionService'][_0x3d50cd(0x382)](new _0xd4e52(this[_0x3d50cd(0x179)])['id'],!0x0);})));let _0x3ced25=!0x1;return this[_0x3d0725(0x355)](this[_0x3d0725(0x1f1)][_0x3d0725(0x29e)]['subscribe'](_0x3d9f18=>{const _0x3b54d9=_0x3d0725;_0x3d9f18===W[_0x3b54d9(0x3aa)]?this[_0x3b54d9(0x36a)](_0x3ced25):_0x3d9f18===W[_0x3b54d9(0x406)]&&(_0x3ced25=!0x0,this[_0x3b54d9(0x344)]());})),this[_0x3d0725(0x355)](this[_0x3d0725(0x1f1)][_0x3d0725(0x24f)][_0x3d0725(0x3bc)](_0x26ed4a=>{const _0x21d07b=_0x3d0725;try{switch(_0x26ed4a[_0x21d07b(0x3ce)]){case _0x57e9e5[_0x21d07b(0x319)]:{this['_onRemoteChangeset'](_0x2ecc13(_0x26ed4a[_0x21d07b(0x224)]));break;}case _0x57e9e5[_0x21d07b(0x209)]:{this['_onRemoteACK'](_0x26ed4a['data']);break;}case _0x57e9e5[_0x21d07b(0xb1)]:{this[_0x21d07b(0x3e6)]();break;}case _0x57e9e5[_0x21d07b(0x12d)]:{this['_onFetchMissResult'](_0x26ed4a[_0x21d07b(0x224)][_0x21d07b(0x3ba)][_0x21d07b(0x30f)](_0x32fcea=>_0x2ecc13(_0x32fcea)));break;}case _0x57e9e5[_0x21d07b(0x2bc)]:this[_0x21d07b(0x3e6)]({'isPermissionRej':!0x0});}}catch(_0x8678fb){throw console['error'](_0x21d07b(0x297),_0x8678fb),_0x8678fb;}})),this[_0x3d0725(0xf5)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x7ce63a(0xa9)](){const _0x18904f=_0x7ce63a;if(this['_transitionLocked'])throw new Error(_0x18904f(0x157));this[_0x18904f(0xe1)]=!0x0;}['_onLocalMutation'](_0x53c23a){const _0x32c599=_0x7ce63a;this['_lockTransition'](),this['_updateState'](this[_0x32c599(0xf5)][_0x32c599(0x3b2)](_0x53c23a)),this[_0x32c599(0x147)]();}[_0x7ce63a(0x40f)](_0x275cae){const _0x22da9c=_0x7ce63a;if(!(_0x275cae[_0x22da9c(0x268)]<=this['_revisionService'][_0x22da9c(0x332)](this['unitID']))){if(this[_0x22da9c(0x37f)]){this[_0x22da9c(0x28d)][_0x22da9c(0xd3)](_0x275cae);return;}this[_0x22da9c(0x13b)](_0x275cae);}}[_0x7ce63a(0x3ed)](){const _0xf2a320=_0x7ce63a;this[_0xf2a320(0x28d)]['forEach'](_0x4134a6=>this['_applyRemoteChangeset'](_0x4134a6)),this[_0xf2a320(0x28d)]=[];}[_0x7ce63a(0x13b)](_0x383b20){const _0x21db8e=_0x7ce63a,_0x14ee34=this['_compressMutationService'][_0x21db8e(0x3e7)][_0x21db8e(0x20d)](this['_compressMutationService'][_0x21db8e(0x3e7)]['getInterceptPoints']()[_0x21db8e(0x2a8)])(_0x383b20[_0x21db8e(0x251)],null)||_0x383b20[_0x21db8e(0x251)],_0x126f72={..._0x383b20,'mutations':_0x14ee34};this[_0x21db8e(0xa9)](),this[_0x21db8e(0x35a)](this[_0x21db8e(0xf5)]['onRemoteChangeset'](_0x126f72)),this['_unlockTransition']();}[_0x7ce63a(0xf7)](_0x4d8594){const _0xd3297e=_0x7ce63a;this['_lockTransition'](),this[_0xd3297e(0x35a)](this[_0xd3297e(0xf5)][_0xd3297e(0xe7)](_0x4d8594)),this[_0xd3297e(0x147)]();}[_0x7ce63a(0x3e6)](_0x3acad1){const _0x46ab3d=_0x7ce63a;this[_0x46ab3d(0xa9)](),this[_0x46ab3d(0x35a)](this[_0x46ab3d(0xf5)][_0x46ab3d(0x14e)](_0x3acad1)),this['_unlockTransition']();}['_onFetchMissResult'](_0x5aed03){const _0xf8a782=_0x7ce63a;if(!(this[_0xf8a782(0xf5)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x3b7c8a=_0x5aed03[_0xf8a782(0x30f)](_0x54360a=>{const _0x2f5bf8=_0xf8a782,_0x1992c5=this[_0x2f5bf8(0xdc)][_0x2f5bf8(0x3e7)]['fetchThroughInterceptors'](this[_0x2f5bf8(0xdc)][_0x2f5bf8(0x3e7)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x54360a[_0x2f5bf8(0x251)],null)||_0x54360a[_0x2f5bf8(0x251)];return{..._0x54360a,'mutations':_0x1992c5};});this['_lockTransition'](),this[_0xf8a782(0x35a)](this[_0xf8a782(0xf5)][_0xf8a782(0x151)](_0x3b7c8a)),this[_0xf8a782(0x147)]();}[_0x7ce63a(0x344)](){const _0x494bb6=_0x7ce63a;this[_0x494bb6(0xa9)](),this[_0x494bb6(0x35a)](this[_0x494bb6(0xf5)][_0x494bb6(0x14c)]()),this[_0x494bb6(0x147)]();}[_0x7ce63a(0x36a)](_0x5c7a9b=!0x1){const _0x192c8a=_0x7ce63a;this[_0x192c8a(0xa9)](),this[_0x192c8a(0x35a)](this[_0x192c8a(0xf5)][_0x192c8a(0x37c)]()),this[_0x192c8a(0x147)]();const _0x32520e=this['_state'];_0x5c7a9b&&_0x32520e instanceof Se&&(this['_lockTransition'](),this[_0x192c8a(0x35a)](_0x32520e[_0x192c8a(0x17c)]()),this[_0x192c8a(0x147)]());}async['_createInitialState'](){return new Promise(_0x4c8151=>{const _0x222eff=_0x2011;this[_0x222eff(0x1f1)][_0x222eff(0x29e)][_0x222eff(0x1f3)](_0x26fa6c(0x1))['subscribe'](async _0x51cb3f=>{const _0x5c21c4=_0x222eff;_0x4c8151(await this[_0x5c21c4(0x2e5)](_0x51cb3f===W[_0x5c21c4(0x3aa)]));});});}[_0x7ce63a(0x10b)](){const _0x547338=_0x7ce63a,_0x54f66e=this[_0x547338(0x179)];return{'onStateChange':(_0x1a62c2,_0x2b1df6)=>{const _0x4f019f=_0x547338;if(_0x1a62c2!==this[_0x4f019f(0xf5)])throw new Error(_0x4f019f(0x25e)+_0x1a62c2[_0x4f019f(0x339)]+_0x4f019f(0x35b)+_0x2b1df6['status']+_0x4f019f(0x120)+this[_0x4f019f(0xf5)]['status']);this[_0x4f019f(0x35a)](_0x2b1df6);},'onSendChangeset':_0xbee2f5=>{const _0x2a1885=_0x547338,_0x1f5c0b={'eventID':_0x57e9e5[_0x2a1885(0x35c)],'data':{'unitID':_0xbee2f5[_0x2a1885(0x179)],'unitType':this[_0x2a1885(0xa5)],'changeset':_0xbee2f5,'memberID':this[_0x2a1885(0x1f1)][_0x2a1885(0x3dc)]()}};this['session']['send'](_0x1f5c0b,this[_0x2a1885(0x179)]);},'onMissingChangesets':({from:_0x22abe9,to:_0x5c35f9})=>{const _0x3ea204=_0x547338;this[_0x3ea204(0x2a9)][_0x3ea204(0x139)](_0x3ea204(0xd2),_0x3ea204(0x1f9)+_0x22abe9+_0x3ea204(0x410)+_0x5c35f9);const _0x54acca={'eventID':_0x57e9e5[_0x3ea204(0x2e8)],'data':{'unitID':_0x54f66e,'unitType':this[_0x3ea204(0xa5)],'from':_0x22abe9,'to':_0x5c35f9}};this[_0x3ea204(0x1f1)][_0x3ea204(0x21c)](_0x54acca,this[_0x3ea204(0x179)]);}};}async[_0x7ce63a(0x2e5)](_0x3e725d){const _0x1cf576=_0x7ce63a;var _0x34a81b,_0x3eb922;const _0x5191dc=await this['_localCacheService']['loadOfflineData'](this[_0x1cf576(0x179)]),_0x877f6e=(_0x34a81b=_0x5191dc==null?void 0x0:_0x5191dc[_0x1cf576(0x251)])!=null?_0x34a81b:[],_0x59835c=(_0x3eb922=_0x5191dc==null?void 0x0:_0x5191dc[_0x1cf576(0x1e9)])!=null?_0x3eb922:null,_0x457884=this[_0x1cf576(0x179)];try{this['_replayCachedMutations'](_0x59835c,_0x877f6e);}catch(_0x327035){this['_logService'][_0x1cf576(0x1eb)](_0x327035);}const _0x2337c9=this['_createHandler']();if(_0x3e725d){const _0x68cf11=xs(this['_injector'],_0x457884,this[_0x1cf576(0xa5)],_0x59835c,_0x877f6e,_0x2337c9);return _0x68cf11 instanceof Y?_0x68cf11['_schedule']():(_0x68cf11 instanceof K||_0x68cf11 instanceof Z)&&_0x68cf11['resend'](),_0x68cf11;}return this[_0x1cf576(0x1ba)][_0x1cf576(0x23c)](ee,_0x457884,this[_0x1cf576(0xa5)],_0x59835c,_0x877f6e,_0x2337c9);}[_0x7ce63a(0x331)](_0x22e425,_0xe45fdd){const _0x5a0cff=_0x7ce63a;var _0x387c82,_0x270bc0;const _0x58c49c=this['_compressMutationService'][_0x5a0cff(0x3e7)][_0x5a0cff(0x20d)](this[_0x5a0cff(0xdc)][_0x5a0cff(0x3e7)][_0x5a0cff(0x1c1)]()[_0x5a0cff(0x2a8)]);(_0x387c82=_0x58c49c((_0x22e425==null?void 0x0:_0x22e425[_0x5a0cff(0x251)])||[],null))==null||_0x387c82[_0x5a0cff(0x2c2)](_0x1abe94=>this['_commandService']['executeCommand'](_0x1abe94['id'],_0x1abe94[_0x5a0cff(0x370)])),(_0x270bc0=_0x58c49c(_0xe45fdd||[],null))==null||_0x270bc0[_0x5a0cff(0x2c2)](_0x5917f1=>this[_0x5a0cff(0x270)][_0x5a0cff(0x314)](_0x5917f1['id'],_0x5917f1[_0x5a0cff(0x370)]));}};tt=Vt([p(0x3,_0x525e4b(_0x2386f6)),p(0x4,_0x525e4b(D)),p(0x5,_0x525e4b(_0xfbc913)),p(0x6,_0x525e4b(_0xe0d77a)),p(0x7,_0x525e4b(_0xf65b72)),p(0x8,_0x2fa9fe),p(0x9,_0x25ecde),p(0xa,_0x508f45),p(0xb,_0x58d6c0),p(0xc,_0x17b51f(it))],tt);let Tt=class extends tt{constructor(_0x3ea43d,_0x4387b0,_0x490357,_0x14d4cb,_0x3c291b,_0x28c173,_0x3a3d9b,_0x147846,_0x5b2873,_0x36cae9,_0x500024,_0x4e4210,_0x58408f,_0x3c8a85,_0xb0292d,_0xbf0894,_0x19c2bc){const _0x1380eb=_0x7ce63a;super(_0x3ea43d,_0x490357,_0x4387b0,_0x14d4cb,_0x3c291b,_0x28c173,_0x3a3d9b,_0x147846,_0x58408f,_0x3c8a85,_0xb0292d,_0xbf0894,_0x19c2bc),this[_0x1380eb(0x179)]=_0x3ea43d,this[_0x1380eb(0x359)]=_0x4387b0,this[_0x1380eb(0x28f)]=_0x5b2873,this[_0x1380eb(0x205)]=_0x36cae9,this['_docTransformSelectionsService']=_0x500024,this['_docSyncEditingCollabCursorService']=_0x4e4210;}[_0x7ce63a(0x10b)](){const _0x4859ab=_0x7ce63a,_0xa44b66=super['_createHandler']();return _0xa44b66[_0x4859ab(0x195)]=_0x4bbeb2=>this[_0x4859ab(0x205)][_0x4859ab(0xd0)](_0x4bbeb2),_0xa44b66['onTransformSelections']=_0x5bf171=>this[_0x4859ab(0x165)][_0x4859ab(0xd7)](_0x5bf171),_0xa44b66[_0x4859ab(0x261)]=_0x24c5b5=>this[_0x4859ab(0x1d8)][_0x4859ab(0x2e9)](_0x24c5b5),_0xa44b66['onTransformRemoteChangesetByIMECache']=_0x18c1c1=>this[_0x4859ab(0x205)][_0x4859ab(0x15b)](_0x18c1c1),_0xa44b66;}async[_0x7ce63a(0x11d)](){const _0x333a6d=_0x7ce63a,_0x346525=await super[_0x333a6d(0x11d)]();return this[_0x333a6d(0x355)](this['_commandService'][_0x333a6d(0xaa)]((_0x2433bc,_0x49f8bd)=>{const _0x1cc432=_0x333a6d;if(_0x2433bc[_0x1cc432(0x359)]!==_0x3e12dc['MUTATION']||_0x49f8bd!=null&&_0x49f8bd[_0x1cc432(0x171)]||_0x49f8bd!=null&&_0x49f8bd[_0x1cc432(0x1bd)])return;const _0x2f360d=_0x2433bc[_0x1cc432(0x370)];if((_0x2f360d==null?void 0x0:_0x2f360d[_0x1cc432(0x180)])!==this[_0x1cc432(0x179)])return;let _0xa0ecb7=_0x2433bc;if(_0xa0ecb7['id']===_0x2e167a['id']){const _0x425cbe=_0xa0ecb7['params'];_0xa0ecb7={'id':_0x2e167a['id'],'type':_0x3e12dc[_0x1cc432(0x137)],'params':{'unitId':_0x425cbe[_0x1cc432(0x180)],'actions':_0x425cbe[_0x1cc432(0x188)],'textRanges':null}};}const _0x4264d1=this['_compressMutationService'][_0x1cc432(0x3e7)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x1cc432(0x3e7)]['getInterceptPoints']()[_0x1cc432(0x414)])([_0xa0ecb7],null)||[_0xa0ecb7];this[_0x1cc432(0x308)](_0x4264d1[0x0]);})),_0x346525;}};Tt=Vt([p(0x3,_0x525e4b(_0x2386f6)),p(0x4,_0x525e4b(D)),p(0x5,_0x525e4b(_0xfbc913)),p(0x6,_0x525e4b(_0xe0d77a)),p(0x7,_0x525e4b(_0xf65b72)),p(0x8,_0x525e4b(_0x3674b3)),p(0x9,_0x525e4b(Ze)),p(0xa,_0x525e4b(et)),p(0xb,_0x525e4b(Bt)),p(0xc,_0x2fa9fe),p(0xd,_0x25ecde),p(0xe,_0x508f45),p(0xf,_0x58d6c0),p(0x10,_0x17b51f(it))],Tt);let Rt=class extends tt{constructor(_0x11c666,_0x5a8cb9,_0x13efc3,_0x3ee9e2,_0x9a0c1c,_0x137500,_0x5aa008,_0x4032a4,_0x1e8001,_0x1284fa,_0x2267bc,_0x30078f,_0x5abf3b,_0x28de11){const _0x19e87=_0x7ce63a;super(_0x11c666,_0x13efc3,_0x5a8cb9,_0x3ee9e2,_0x9a0c1c,_0x137500,_0x5aa008,_0x4032a4,_0x1284fa,_0x2267bc,_0x30078f,_0x5abf3b,_0x28de11),this[_0x19e87(0x179)]=_0x11c666,this[_0x19e87(0x359)]=_0x5a8cb9,this[_0x19e87(0x15e)]=_0x1e8001;}[_0x7ce63a(0x10b)](){const _0x43b909=_0x7ce63a,_0x5c0440=super['_createHandler']();return _0x5c0440['onTransformSelections']=_0x47645a=>this[_0x43b909(0x15e)][_0x43b909(0xd7)](_0x47645a),_0x5c0440;}async[_0x7ce63a(0x11d)](){const _0x248b48=_0x7ce63a,_0x59b2bf=await super[_0x248b48(0x11d)]();return this[_0x248b48(0x355)](this[_0x248b48(0x270)][_0x248b48(0xaa)]((_0x115a8c,_0x4c46c9)=>{const _0x38bed8=_0x248b48;if(_0x115a8c['type']!==_0x3e12dc['MUTATION']||_0x4c46c9!=null&&_0x4c46c9[_0x38bed8(0x171)]||_0x4c46c9!=null&&_0x4c46c9[_0x38bed8(0x1bd)])return;const _0x5bf749=_0x115a8c[_0x38bed8(0x370)];if((_0x5bf749==null?void 0x0:_0x5bf749[_0x38bed8(0x180)])!==this[_0x38bed8(0x179)])return;const _0x3ecd92=_0x115a8c,_0x3c9b45=this[_0x38bed8(0xdc)][_0x38bed8(0x3e7)][_0x38bed8(0x20d)](this['_compressMutationService'][_0x38bed8(0x3e7)]['getInterceptPoints']()[_0x38bed8(0x414)])([_0x3ecd92],null)||[_0x3ecd92];this[_0x38bed8(0x308)](_0x3c9b45[0x0]);})),_0x59b2bf;}};Rt=Vt([p(0x3,_0x525e4b(_0x2386f6)),p(0x4,_0x525e4b(D)),p(0x5,_0x525e4b(_0xfbc913)),p(0x6,_0x525e4b(_0xe0d77a)),p(0x7,_0x525e4b(_0xf65b72)),p(0x8,_0x525e4b(Qe)),p(0x9,_0x2fa9fe),p(0xa,_0x25ecde),p(0xb,_0x508f45),p(0xc,_0x58d6c0),p(0xd,_0x17b51f(it))],Rt);var gr=Object[_0x7ce63a(0x1cd)],Sr=Object[_0x7ce63a(0x323)],pr=(_0x2d427d,_0x46a699,_0x876421,_0x37a559)=>{const _0x43d0fe=_0x7ce63a;for(var _0x269639=_0x37a559>0x1?void 0x0:_0x37a559?Sr(_0x46a699,_0x876421):_0x46a699,_0x42192e=_0x2d427d[_0x43d0fe(0xc2)]-0x1,_0x1f9c30;_0x42192e>=0x0;_0x42192e--)(_0x1f9c30=_0x2d427d[_0x42192e])&&(_0x269639=(_0x37a559?_0x1f9c30(_0x46a699,_0x876421,_0x269639):_0x1f9c30(_0x269639))||_0x269639);return _0x37a559&&_0x269639&&gr(_0x46a699,_0x876421,_0x269639),_0x269639;},_t=(_0x473eae,_0x1c159c)=>(_0x36cb04,_0x10ab6f)=>_0x1c159c(_0x36cb04,_0x10ab6f,_0x473eae);let Ae=class extends _0x24bc67{constructor(_0x332b57,_0xd5b04e,_0x521cee){const _0x5091ce=_0x7ce63a;super(),l(this,_0x5091ce(0x1de),new Map()),l(this,_0x5091ce(0xe3),new _0x41ce8d()),(this[_0x5091ce(0x1ba)]=_0x332b57,this[_0x5091ce(0xcb)]=_0xd5b04e,this['_univerInstanceService']=_0x521cee,this[_0x5091ce(0x11d)]());}[_0x7ce63a(0x3a6)](){const _0x59925f=_0x7ce63a;super['dispose'](),this['_entities'][_0x59925f(0x2c2)](_0xaecc1f=>_0xaecc1f['dispose']()),this[_0x59925f(0x1de)]['clear']();}[_0x7ce63a(0x277)](_0x32e67f){const _0x110c15=_0x7ce63a;var _0x4dbb84;return(_0x4dbb84=this[_0x110c15(0x1de)]['get'](_0x32e67f))!=null?_0x4dbb84:null;}['getCollabEntity$'](_0x20dd65){const _0x2f1a0c=_0x7ce63a,_0x9bee29=this[_0x2f1a0c(0x277)](_0x20dd65);return _0x9bee29?_0x16c423(_0x9bee29):this['_entityInit$'][_0x2f1a0c(0x1f3)](_0x457b7c(_0x40cdd0=>_0x40cdd0['unitID']===_0x20dd65));}[_0x7ce63a(0x11d)](){const _0x53655c=_0x7ce63a;this['_univerInstanceService'][_0x53655c(0x19e)](_0x4b8c1e[_0x53655c(0x22f)])[_0x53655c(0x1f3)](_0x2216fd(this[_0x53655c(0x3d1)]),_0x520c34(0x10))[_0x53655c(0x3bc)](async _0x282ee8=>{const _0x369fcd=_0x53655c,_0x258abb=_0x282ee8['getUnitId'](),_0x43773a=await this[_0x369fcd(0x189)](_0x258abb,x[_0x369fcd(0x22f)]);this[_0x369fcd(0x1de)][_0x369fcd(0x2b8)](_0x258abb,_0x43773a);}),this[_0x53655c(0x11a)][_0x53655c(0x19e)](_0x4b8c1e['UNIVER_DOC'])['pipe'](_0x2216fd(this[_0x53655c(0x3d1)]),_0x520c34(0x10))[_0x53655c(0x1f3)](_0x457b7c(_0x363489=>!_0x363489[_0x53655c(0xd6)]()[_0x53655c(0x194)]('__')))[_0x53655c(0x3bc)](async _0x4e1f07=>{const _0x21b764=_0x53655c,_0x3e4bd5=_0x4e1f07[_0x21b764(0xd6)](),_0x1666e1=await this[_0x21b764(0x189)](_0x3e4bd5,x[_0x21b764(0x3a2)]);this[_0x21b764(0x1de)]['set'](_0x3e4bd5,_0x1666e1);}),_0x11132a(this[_0x53655c(0x11a)]['getTypeOfUnitDisposed$'](_0x4b8c1e['UNIVER_SHEET']),this[_0x53655c(0x11a)]['getTypeOfUnitDisposed$'](_0x4b8c1e[_0x53655c(0x3a2)]))['pipe'](_0x2216fd(this[_0x53655c(0x3d1)]))[_0x53655c(0x3bc)](_0xb512b7=>{const _0x51a216=_0x53655c,_0x5ca745=_0xb512b7[_0x51a216(0xd6)](),_0x1e5662=this[_0x51a216(0x1de)][_0x51a216(0x3de)](_0x5ca745);_0x1e5662&&(_0x1e5662[_0x51a216(0x3a6)](),this['_entities'][_0x51a216(0x28a)](_0x5ca745));});}async[_0x7ce63a(0x189)](_0x51d76f,_0x2d0b90){const _0x99fb40=_0x7ce63a,_0x172045=await this[_0x99fb40(0xcb)][_0x99fb40(0x22b)](_0x51d76f),_0x265b55=this['_injector'][_0x99fb40(0x23c)](this[_0x99fb40(0x10d)](_0x2d0b90),_0x51d76f,_0x2d0b90,_0x172045);return await _0x265b55[_0x99fb40(0xff)](),this['_entityInit$']['next'](_0x265b55),_0x265b55;}[_0x7ce63a(0x10d)](_0x175dfc){const _0x119789=_0x7ce63a;switch(_0x175dfc){case x[_0x119789(0x3a2)]:return Tt;case x[_0x119789(0x22f)]:return Rt;default:throw new Error(_0x119789(0x3f7)+_0x175dfc);}}};Ae=pr([_t(0x0,_0x525e4b(_0x2386f6)),_t(0x1,_0x525e4b(ae)),_t(0x2,_0x10baba)],Ae);const ls=['purple300',_0x7ce63a(0x154),_0x7ce63a(0x266),_0x7ce63a(0x356),'blue400',_0x7ce63a(0x2dc)];class Ft extends _0x18124f{constructor(){const _0x2be301=_0x7ce63a;super(...arguments),l(this,_0x2be301(0x24e),new Map()),l(this,_0x2be301(0xc0),0x0);}[_0x7ce63a(0xf1)](_0x1bcc3f){const _0x27025f=_0x7ce63a;if(this[_0x27025f(0x24e)][_0x27025f(0x25c)](_0x1bcc3f))return this[_0x27025f(0x24e)][_0x27025f(0x3de)](_0x1bcc3f);const _0xf77a5=ls[this['_colorIndex']];return this[_0x27025f(0xc0)]=(this[_0x27025f(0xc0)]+0x1)%ls['length'],this[_0x27025f(0x24e)]['set'](_0x1bcc3f,_0xf77a5),_0xf77a5;}}var vr=Object[_0x7ce63a(0x1cd)],Ir=Object[_0x7ce63a(0x323)],Er=(_0x384293,_0x70f53b,_0x4b0030,_0x2a2576)=>{for(var _0x59fe40=_0x2a2576>0x1?void 0x0:_0x2a2576?Ir(_0x70f53b,_0x4b0030):_0x70f53b,_0x418988=_0x384293['length']-0x1,_0x16d7e3;_0x418988>=0x0;_0x418988--)(_0x16d7e3=_0x384293[_0x418988])&&(_0x59fe40=(_0x2a2576?_0x16d7e3(_0x70f53b,_0x4b0030,_0x59fe40):_0x16d7e3(_0x59fe40))||_0x59fe40);return _0x2a2576&&_0x59fe40&&vr(_0x70f53b,_0x4b0030,_0x59fe40),_0x59fe40;},de=(_0x4bc980,_0x25f15b)=>(_0x189ffa,_0x2235c8)=>_0x25f15b(_0x189ffa,_0x2235c8,_0x4bc980);const Cr=0x12c,br=0x64,Tr=()=>{let _0x4cd6e0=[],_0x50837f=!0x1;return _0x5e6480=>{const _0x4fd008=_0x2011;_0x4cd6e0[_0x4fd008(0xd3)](_0x5e6480),_0x50837f||(_0x50837f=!0x0,setTimeout(()=>{const _0x5a470d=_0x4fd008;_0x4cd6e0[_0x5a470d(0x2c2)](_0x28596f=>_0x28596f()),_0x4cd6e0=[],_0x50837f=!0x1;}));};};let Ot=class extends _0x24bc67{constructor(_0x5d4e78,_0x1b1c4c,_0x11313e,_0x372e7d,_0x3a6635,_0x4e7a2b,_0x5356ba,_0x2ae9c8){const _0x40ff48=_0x7ce63a;super(),l(this,_0x40ff48(0x296),!0x1),l(this,_0x40ff48(0x11d),!0x1),l(this,_0x40ff48(0x2fe),new _0x2f2e3e(new Map())),l(this,_0x40ff48(0x23e),this[_0x40ff48(0x2fe)]['asObservable']()),l(this,_0x40ff48(0x210),new _0x2f2e3e([])),l(this,_0x40ff48(0x125),this[_0x40ff48(0x210)]['pipe'](_0x3227b9(Cr))),l(this,_0x40ff48(0x292),_0x2361dc((_0x59e264,_0x5c7ccd)=>{const _0x35abfc=_0x40ff48,_0x204150={'eventID':_0x57e9e5[_0x35abfc(0x3cd)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x35abfc(0x3dc)](),'selection':_0xd9f8f(_0x59e264,_0x5c7ccd[_0x35abfc(0x18c)])}};this['_session']['send'](_0x204150,this[_0x35abfc(0x179)]);},br)),(this[_0x40ff48(0x179)]=_0x5d4e78,this['_session']=_0x1b1c4c,this[_0x40ff48(0x1ba)]=_0x11313e,this[_0x40ff48(0x3b3)]=_0x372e7d,this[_0x40ff48(0x18e)]=_0x3a6635,this['_univerInstanceService']=_0x4e7a2b,this[_0x40ff48(0x270)]=_0x5356ba,this[_0x40ff48(0xb4)]=_0x2ae9c8);}get[_0x7ce63a(0x1c6)](){const _0x4d679f=_0x7ce63a;return this[_0x4d679f(0x2fe)]['getValue']();}get[_0x7ce63a(0x20c)](){const _0x5ef88d=_0x7ce63a;return this[_0x5ef88d(0x210)][_0x5ef88d(0x2a2)]();}[_0x7ce63a(0x3a6)](){const _0xb174cb=_0x7ce63a;super[_0xb174cb(0x3a6)](),this['_cursorInfo$'][_0xb174cb(0x1ee)](new Map()),this[_0xb174cb(0x2fe)][_0xb174cb(0x186)](),this[_0xb174cb(0x210)][_0xb174cb(0x1ee)]([]),this[_0xb174cb(0x210)][_0xb174cb(0x186)]();}['init'](){const _0x7a1cff=_0x7ce63a;this[_0x7a1cff(0x11d)]||(this[_0x7a1cff(0x11d)]=!0x0,this['_session'][_0x7a1cff(0x29e)][_0x7a1cff(0x1f3)](_0x2216fd(this[_0x7a1cff(0x3d1)]))[_0x7a1cff(0x3bc)](_0x6e9aca=>{const _0x17ad56=_0x7a1cff;_0x6e9aca===W[_0x17ad56(0x3aa)]?this[_0x17ad56(0x36a)]():this[_0x17ad56(0x344)]();}),this['_session']['event$']['pipe'](_0x2216fd(this[_0x7a1cff(0x3d1)]))[_0x7a1cff(0x3bc)](_0x30a29a=>{const _0x23d145=_0x7a1cff,_0x194122=_0x30a29a[_0x23d145(0x3ce)];_0x194122===_0x57e9e5[_0x23d145(0x3cd)]&&this[_0x23d145(0x192)](_0x30a29a),_0x194122===_0x57e9e5[_0x23d145(0xdb)]&&this[_0x23d145(0x1b5)](_0x30a29a);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x7a1cff(0x270)]['onCommandExecuted'](_0x35c0ba=>{const _0x20e0cc=_0x7a1cff;if(this['_online']&&_0x35c0ba['id']===_0x2cc37b['id']&&_0x35c0ba['params'][_0x20e0cc(0x180)]===this[_0x20e0cc(0x179)]){const _0x184c6e=_0x35c0ba[_0x20e0cc(0x370)];this['_updateLocalCursor'](_0x184c6e[_0x20e0cc(0x408)],_0x184c6e[_0x20e0cc(0x3e5)][0x0]);}})));}[_0x7ce63a(0x192)](_0x9f2ccd){const _0x1fb51f=_0x7ce63a;var _0x26ddc6,_0x52ff80;const {memberID:_0x163099,selection:_0x55c31f}=_0x9f2ccd[_0x1fb51f(0x224)],{sheetName:_0x52011e,range:_0x412da0}=_0x271db6(_0x55c31f),_0x3be133={'name':(_0x52ff80=(_0x26ddc6=this[_0x1fb51f(0x18e)][_0x1fb51f(0x26e)](this[_0x1fb51f(0x179)],_0x163099))==null?void 0x0:_0x26ddc6[_0x1fb51f(0x229)])!=null?_0x52ff80:_0x1fb51f(0x18d),'range':this[_0x1fb51f(0x2d1)](_0x52011e,_0x412da0),'sheetID':_0x52011e,'color':this[_0x1fb51f(0x3b3)]['assignAColorForMemberID'](_0x163099),'selection':_0x55c31f},_0x3e3bdd=this[_0x1fb51f(0x1c6)];_0x3e3bdd[_0x1fb51f(0x2b8)](_0x163099,_0x3be133),this[_0x1fb51f(0x2fe)]['next'](_0x3e3bdd);}[_0x7ce63a(0x1b5)](_0xb95688){const _0x5f110b=_0x7ce63a,{memberID:_0x9d7060}=_0xb95688[_0x5f110b(0x224)],_0x25d70f=this[_0x5f110b(0x1c6)];_0x25d70f['delete'](_0x9d7060),this[_0x5f110b(0x2fe)]['next'](_0x25d70f);}[_0x7ce63a(0x2d1)](_0x540e40,_0x607d77){const _0x44d501=_0x7ce63a;var _0x21c094,_0x3e3211;const _0x2e2789=(_0x3e3211=(_0x21c094=this[_0x44d501(0x11a)][_0x44d501(0x133)](this[_0x44d501(0x179)]))==null?void 0x0:_0x21c094['getSheetBySheetId'](_0x540e40))==null?void 0x0:_0x3e3211[_0x44d501(0x1a7)]();return(_0x2e2789==null?void 0x0:_0x2e2789[_0x44d501(0x1b2)](_0x2ade67=>_0x3d868c[_0x44d501(0x2df)](_0x2ade67,_0x607d77)))||_0x607d77;}[_0x7ce63a(0xb2)](){const _0x8447b8=_0x7ce63a,_0x852d95=new _0x764514(),_0x19678f=Tr(),_0x4d7a95=()=>{const _0x341121=_0x2011;_0x852d95[_0x341121(0x3a6)]();const _0x2b4a93=(_0x28d044,_0x119f27,_0x9336c8,_0x2e2c78)=>{const _0x4a92ad=_0x341121;let _0x482e69=[];switch(_0x28d044['id']){case _0x1134f2[_0x4a92ad(0x1dc)]:{_0x482e69=_0x46038d(_0x28d044,_0x2e2c78);break;}case _0x1134f2[_0x4a92ad(0x304)]:{_0x482e69=_0x473233(_0x28d044,_0x2e2c78);break;}case _0x1134f2['InsertColCommandId']:{_0x482e69=_0x5975da(_0x28d044,_0x2e2c78);break;}case _0x1134f2[_0x4a92ad(0x2d6)]:{_0x482e69=_0x3ec51d(_0x28d044,_0x2e2c78);break;}case _0x1134f2['InsertRangeMoveRightCommandId']:{_0x482e69=_0x5654ad(_0x28d044,_0x2e2c78);break;}case _0x1134f2[_0x4a92ad(0x3b7)]:{_0x482e69=_0x2feba7(_0x28d044,_0x2e2c78);break;}case _0x1134f2[_0x4a92ad(0x2c6)]:{_0x482e69=_0x2366c3(_0x28d044,_0x2e2c78);break;}case _0x1134f2[_0x4a92ad(0x1e6)]:{_0x482e69=_0x1653e9(_0x28d044,_0x2e2c78);break;}case _0x1134f2[_0x4a92ad(0x230)]:{_0x482e69=_0x2f39a2(_0x28d044,_0x2e2c78);break;}}const _0x2e03a3=_0x2b59be(_0x482e69,_0x2e2c78),_0x2497f1=this[_0x4a92ad(0x1c6)][_0x4a92ad(0x3de)](_0x119f27);if(_0x2497f1&&_0x2e03a3){const _0x11d68e={..._0x2497f1,'range':_0x2e03a3};this[_0x4a92ad(0x1c6)][_0x4a92ad(0x2b8)](_0x119f27,_0x11d68e),_0x19678f(()=>{const _0x2b5af5=_0x4a92ad,_0x56acd1=this[_0x2b5af5(0xb4)][_0x2b5af5(0x33d)](_0x2e03a3,_0xb23fc3=>(_0x56acd1['dispose'](),_0x2b4a93(_0xb23fc3,_0x119f27,_0x9336c8,_0x2e03a3)));_0x852d95['add'](_0x56acd1);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x341121(0x2c2)]((_0x2c195b,_0x2e7afb)=>{const _0x43fe69=_0x341121,{range:_0x2ed93b,sheetID:_0x5531f2}=_0x2c195b,_0x1e0bca=this['_refRangeService'][_0x43fe69(0x33d)](_0x2ed93b,_0xca6298=>(_0x1e0bca[_0x43fe69(0x3a6)](),_0x2b4a93(_0xca6298,_0x2e7afb,_0x5531f2,_0x2ed93b)));_0x852d95[_0x43fe69(0x275)](_0x1e0bca);});};this[_0x8447b8(0x355)](_0x1fc5cf(this[_0x8447b8(0x2fe)]['subscribe'](()=>{_0x4d7a95();})));}[_0x7ce63a(0x36a)](){const _0xc3da17=_0x7ce63a;var _0x2a44b9,_0x3c688d;if(this[_0xc3da17(0x296)]=!0x0,((_0x2a44b9=this[_0xc3da17(0x11a)][_0xc3da17(0x2b0)]())==null?void 0x0:_0x2a44b9[_0xc3da17(0xd6)]())!==this[_0xc3da17(0x179)])return;const _0x1100a5=(_0x3c688d=this[_0xc3da17(0x1ba)][_0xc3da17(0x3de)](_0x6a44c2)[_0xc3da17(0x2a4)]())==null?void 0x0:_0x3c688d[0x0],_0x2564dd=this[_0xc3da17(0x11a)][_0xc3da17(0x200)](_0x4b8c1e[_0xc3da17(0x22f)])[_0xc3da17(0x390)]();_0x1100a5&&_0x2564dd&&this[_0xc3da17(0x292)](_0x2564dd[_0xc3da17(0x2be)](),_0x1100a5);}[_0x7ce63a(0x344)](){const _0x1db785=_0x7ce63a;this[_0x1db785(0x296)]=!0x1;}};Ot=Er([de(0x2,_0x525e4b(_0x2386f6)),de(0x3,_0x525e4b(Ft)),de(0x4,_0x525e4b(oe)),de(0x5,_0x10baba),de(0x6,_0x25ecde),de(0x7,_0x525e4b(_0x54cbec))],Ot);var Rr=Object[_0x7ce63a(0x1cd)],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x41b7a8,_0x59e14e,_0x2debe8,_0x386102)=>{const _0x4cec58=_0x7ce63a;for(var _0x4d2075=_0x386102>0x1?void 0x0:_0x386102?Or(_0x59e14e,_0x2debe8):_0x59e14e,_0x5be903=_0x41b7a8[_0x4cec58(0xc2)]-0x1,_0x3619fa;_0x5be903>=0x0;_0x5be903--)(_0x3619fa=_0x41b7a8[_0x5be903])&&(_0x4d2075=(_0x386102?_0x3619fa(_0x59e14e,_0x2debe8,_0x4d2075):_0x3619fa(_0x4d2075))||_0x4d2075);return _0x386102&&_0x4d2075&&Rr(_0x59e14e,_0x2debe8,_0x4d2075),_0x4d2075;},se=(_0xd65be9,_0x3e6335)=>(_0x2dc7d8,_0x298701)=>_0x3e6335(_0x2dc7d8,_0x298701,_0xd65be9);const wr=0x12c,Pr=0x64;let Dt=class extends _0x24bc67{constructor(_0x482c9f,_0x4bb287,_0x1f8420,_0x4c5e54,_0x4b72b8,_0x28b3a7,_0x2b95f7,_0x45cb1b,_0x35a14f){const _0x3c6864=_0x7ce63a;super(),l(this,_0x3c6864(0x296),!0x1),l(this,'_init',!0x1),l(this,_0x3c6864(0x2fe),new _0x2f2e3e(new Map())),l(this,_0x3c6864(0x23e),this['_cursorInfo$']['asObservable']()),l(this,_0x3c6864(0x210),new _0x2f2e3e([])),l(this,'roomMembers$',this[_0x3c6864(0x210)][_0x3c6864(0x1f3)](_0x3227b9(wr))),l(this,_0x3c6864(0x292),_0x2361dc(_0x29a734=>{const _0x4d877f=_0x3c6864,_0x4a2458={'eventID':_0x57e9e5[_0x4d877f(0x3cd)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x4d877f(0x3dc)](),'selection':js(_0x29a734)}};this['_session'][_0x4d877f(0x21c)](_0x4a2458,this[_0x4d877f(0x179)]);},Pr)),(this[_0x3c6864(0x179)]=_0x482c9f,this[_0x3c6864(0x3cb)]=_0x4bb287,this['_injector']=_0x1f8420,this[_0x3c6864(0x3b3)]=_0x4c5e54,this[_0x3c6864(0x18e)]=_0x4b72b8,this[_0x3c6864(0x30a)]=_0x28b3a7,this[_0x3c6864(0x346)]=_0x2b95f7,this['_univerInstanceService']=_0x45cb1b,this['_commandService']=_0x35a14f);}get[_0x7ce63a(0x1c6)](){const _0x311fbf=_0x7ce63a;return this[_0x311fbf(0x2fe)][_0x311fbf(0x2a2)]();}get[_0x7ce63a(0x20c)](){const _0x594605=_0x7ce63a;return this['_roomMembers$'][_0x594605(0x2a2)]();}[_0x7ce63a(0x3a6)](){const _0x14b07f=_0x7ce63a;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x14b07f(0x2fe)]['complete'](),this[_0x14b07f(0x210)][_0x14b07f(0x1ee)]([]),this[_0x14b07f(0x210)][_0x14b07f(0x186)]();}[_0x7ce63a(0xff)](){const _0x3d0f54=_0x7ce63a;this['_init']||(this['_init']=!0x0,this['_session'][_0x3d0f54(0x29e)][_0x3d0f54(0x1f3)](_0x2216fd(this[_0x3d0f54(0x3d1)]))[_0x3d0f54(0x3bc)](_0x31a576=>{const _0x353967=_0x3d0f54;_0x31a576===W[_0x353967(0x3aa)]?this[_0x353967(0x36a)]():this[_0x353967(0x344)]();}),this[_0x3d0f54(0x3cb)]['event$'][_0x3d0f54(0x1f3)](_0x2216fd(this[_0x3d0f54(0x3d1)]))[_0x3d0f54(0x3bc)](_0x583559=>{const _0x33b4ff=_0x3d0f54,_0x33b7d9=_0x583559[_0x33b4ff(0x3ce)];_0x33b7d9===_0x57e9e5[_0x33b4ff(0x3cd)]&&this[_0x33b4ff(0x192)](_0x583559),_0x33b7d9===_0x57e9e5['USERS_LEAVE']&&this['_onCursorDelete'](_0x583559);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x45e205=>{const _0x18a444=_0x3d0f54,_0x317edd=_0x45e205[_0x18a444(0x370)];_0x317edd!=null&&this[_0x18a444(0x296)]&&_0x45e205['id']===_0x2188ac['id']&&_0x317edd[_0x18a444(0x180)]===this[_0x18a444(0x179)]&&_0x317edd[_0x18a444(0x236)]===!0x1&&this[_0x18a444(0x292)](_0x317edd[_0x18a444(0xa2)]);})),this[_0x3d0f54(0x30a)][_0x3d0f54(0x2d0)][_0x3d0f54(0x1f3)](_0x2216fd(this['dispose$']))[_0x3d0f54(0x3bc)](_0x481291=>{const _0x46d6fd=_0x3d0f54;if((_0x481291==null?void 0x0:_0x481291[_0x46d6fd(0x179)])!==this[_0x46d6fd(0x179)])return;const _0x2c4537={'eventID':_0x57e9e5[_0x46d6fd(0x3cd)],'data':_0x481291};this[_0x46d6fd(0x192)](_0x2c4537);}),this['disposeWithMe'](this[_0x3d0f54(0x270)][_0x3d0f54(0xaa)](_0x52adab=>{const _0x3d685e=_0x3d0f54;if(_0x52adab[_0x3d685e(0x370)]==null)return;const _0x72ad96=_0x52adab['params'];if(_0x52adab['id']!==_0x2e167a['id']||_0x72ad96[_0x3d685e(0x180)]!==this[_0x3d685e(0x179)])return;const _0x21df70={'id':_0x3d685e(0x20b),'params':_0x72ad96},_0xb97c9f=this[_0x3d685e(0x1c6)];for(const [_0x5b45ef,_0x3263cc]of _0xb97c9f){const _0x45ad76={'id':_0x3d685e(0x20b),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3263cc[_0x3d685e(0xa2)]}},_0x3e1153=this['_transformService']['transformMutation'](_0x21df70,_0x45ad76,!0x1);if(_0x66635b(_0x3e1153))throw _0x3e1153[_0x3d685e(0x1eb)];_0xb97c9f[_0x3d685e(0x2b8)](_0x5b45ef,{..._0x3263cc,'ranges':_0x3e1153[_0x3d685e(0x19a)][_0x3d685e(0x370)][_0x3d685e(0x15d)]});}queueMicrotask(()=>{const _0x2f0c0c=_0x3d685e;this[_0x2f0c0c(0x2fe)][_0x2f0c0c(0x1ee)](_0xb97c9f);});})));}[_0x7ce63a(0x192)](_0x417f78){const _0x5b99aa=_0x7ce63a;var _0xabbb10,_0x1cfe19;const {memberID:_0xc9251f,selection:_0x108369}=_0x417f78[_0x5b99aa(0x224)],_0xe23d4b=rr(_0x108369),_0x4f99cd=(_0x1cfe19=(_0xabbb10=this[_0x5b99aa(0x18e)]['getMember'](this[_0x5b99aa(0x179)],_0xc9251f))==null?void 0x0:_0xabbb10[_0x5b99aa(0x229)])!=null?_0x1cfe19:_0x5b99aa(0x18d),_0x33bed3={'color':this[_0x5b99aa(0x3b3)][_0x5b99aa(0xf1)](_0xc9251f),'name':_0x4f99cd,'ranges':_0xe23d4b},_0x8794a8=this[_0x5b99aa(0x1c6)];_0x8794a8[_0x5b99aa(0x2b8)](_0xc9251f,_0x33bed3),this[_0x5b99aa(0x2fe)][_0x5b99aa(0x1ee)](_0x8794a8);}['_onCursorDelete'](_0x37ae98){const _0x553c26=_0x7ce63a,{memberID:_0x5be593}=_0x37ae98[_0x553c26(0x224)],_0x181a12=this[_0x553c26(0x1c6)];_0x181a12[_0x553c26(0x28a)](_0x5be593),this[_0x553c26(0x2fe)][_0x553c26(0x1ee)](_0x181a12);}[_0x7ce63a(0x36a)](){const _0x563c8a=_0x7ce63a;var _0x2fd5c2;if(this[_0x563c8a(0x296)]=!0x0,((_0x2fd5c2=this[_0x563c8a(0x11a)]['getFocusedUnit']())==null?void 0x0:_0x2fd5c2[_0x563c8a(0xd6)]())!==this[_0x563c8a(0x179)])return;const _0x2902fc=this[_0x563c8a(0x1ba)][_0x563c8a(0x3de)](_0x1c0760)['getDocRanges']();Array[_0x563c8a(0x345)](_0x2902fc)&&_0x2902fc[_0x563c8a(0xc2)]>0x0&&this['_updateLocalCursor'](_0x2902fc);}[_0x7ce63a(0x344)](){const _0x5b8909=_0x7ce63a;this[_0x5b8909(0x296)]=!0x1;}};Dt=Dr([se(0x2,_0x525e4b(_0x2386f6)),se(0x3,_0x525e4b(Ft)),se(0x4,_0x525e4b(oe)),se(0x5,_0x525e4b(Bt)),se(0x6,_0x44c950),se(0x7,_0x10baba),se(0x8,_0x25ecde)],Dt);var Nr=Object[_0x7ce63a(0x1cd)],yr=Object[_0x7ce63a(0x323)],Mr=(_0x625623,_0x2aad34,_0x2ecb2b,_0x4bac08)=>{const _0x2d68fe=_0x7ce63a;for(var _0x5aded1=_0x4bac08>0x1?void 0x0:_0x4bac08?yr(_0x2aad34,_0x2ecb2b):_0x2aad34,_0x169f5e=_0x625623[_0x2d68fe(0xc2)]-0x1,_0x356beb;_0x169f5e>=0x0;_0x169f5e--)(_0x356beb=_0x625623[_0x169f5e])&&(_0x5aded1=(_0x4bac08?_0x356beb(_0x2aad34,_0x2ecb2b,_0x5aded1):_0x356beb(_0x5aded1))||_0x5aded1);return _0x4bac08&&_0x5aded1&&Nr(_0x2aad34,_0x2ecb2b,_0x5aded1),_0x5aded1;},ut=(_0x4f0413,_0xf4cd94)=>(_0x272b39,_0x499798)=>_0xf4cd94(_0x272b39,_0x499798,_0x4f0413);let fe=class extends _0x24bc67{constructor(_0x22f2ba,_0x8f4a52,_0x210eb5){const _0x4ac863=_0x7ce63a;super(),l(this,_0x4ac863(0x1de),new Map()),l(this,_0x4ac863(0xe3),new _0x41ce8d()),(this[_0x4ac863(0x11a)]=_0x22f2ba,this[_0x4ac863(0x1ba)]=_0x8f4a52,this[_0x4ac863(0xcb)]=_0x210eb5,this['_init']());}[_0x7ce63a(0x3a6)](){const _0x2b8082=_0x7ce63a;super[_0x2b8082(0x3a6)](),this[_0x2b8082(0xe3)][_0x2b8082(0x186)](),this['_entities']['forEach'](_0x1112f0=>_0x1112f0['dispose']());}['getCollabCursors$'](_0x506214){const _0x2ae90e=_0x7ce63a;return this[_0x2ae90e(0x1de)][_0x2ae90e(0x25c)](_0x506214)?this[_0x2ae90e(0x1de)]['get'](_0x506214)[_0x2ae90e(0x23e)]:this[_0x2ae90e(0xe3)]['pipe'](_0x6092a7(_0x3f118b=>_0x3f118b[_0x2ae90e(0x179)]===_0x506214),_0x54075f(_0x43172b=>_0x43172b[_0x2ae90e(0x23e)]));}[_0x7ce63a(0x11d)](){const _0x17eb0d=_0x7ce63a;this[_0x17eb0d(0x11a)][_0x17eb0d(0x19e)](_0x4b8c1e[_0x17eb0d(0x22f)])[_0x17eb0d(0x1f3)](_0x2216fd(this[_0x17eb0d(0x3d1)]))[_0x17eb0d(0x3bc)](async _0x822838=>{const _0x4716bb=_0x17eb0d,_0x1be620=_0x822838[_0x4716bb(0xd6)](),_0x454dd7=await this[_0x4716bb(0x103)](_0x1be620);this[_0x4716bb(0xe3)][_0x4716bb(0x1ee)](_0x454dd7),this[_0x4716bb(0x1de)]['set'](_0x1be620,_0x454dd7);}),this[_0x17eb0d(0x11a)]['getTypeOfUnitAdded$'](_0x4b8c1e[_0x17eb0d(0x3a2)])['pipe'](_0x2216fd(this[_0x17eb0d(0x3d1)]))['pipe'](_0x6092a7(_0x55840d=>!_0x55840d[_0x17eb0d(0xd6)]()['startsWith']('__')))[_0x17eb0d(0x3bc)](async _0x1a48e7=>{const _0x20a43b=_0x17eb0d,_0x6250af=_0x1a48e7[_0x20a43b(0xd6)](),_0x42d381=await this['_startDocCollabCursor'](_0x6250af);this['_entityInit$'][_0x20a43b(0x1ee)](_0x42d381),this[_0x20a43b(0x1de)][_0x20a43b(0x2b8)](_0x6250af,_0x42d381);}),_0x11132a(this[_0x17eb0d(0x11a)][_0x17eb0d(0x350)](_0x4b8c1e[_0x17eb0d(0x3a2)]),this['_univerInstanceService'][_0x17eb0d(0x350)](_0x4b8c1e['UNIVER_SHEET']))[_0x17eb0d(0x1f3)](_0x2216fd(this['dispose$']))[_0x17eb0d(0x3bc)](_0x5a1676=>{const _0x59b978=_0x17eb0d,_0x575675=_0x5a1676[_0x59b978(0xd6)](),_0x23dd52=this[_0x59b978(0x1de)]['get'](_0x575675);_0x23dd52&&(_0x23dd52['dispose'](),this['_entities']['delete'](_0x575675));});}async[_0x7ce63a(0x103)](_0x4b45d8){const _0x49863a=_0x7ce63a,_0x272721=await this[_0x49863a(0xcb)][_0x49863a(0x22b)](_0x4b45d8),_0x58cfa3=this[_0x49863a(0x1ba)]['createInstance'](Ot,_0x4b45d8,_0x272721);return _0x58cfa3['init'](),_0x58cfa3;}async[_0x7ce63a(0x110)](_0x39d755){const _0x5699ad=_0x7ce63a,_0x441338=await this[_0x5699ad(0xcb)][_0x5699ad(0x22b)](_0x39d755),_0x59156c=this[_0x5699ad(0x1ba)][_0x5699ad(0x23c)](Dt,_0x39d755,_0x441338);return _0x59156c['init'](),_0x59156c;}};function _0x2011(_0x4ccba4,_0x41bb94){const _0x4d0381=_0x4d03();return _0x2011=function(_0x20116c,_0x3a4964){_0x20116c=_0x20116c-0xa2;let _0x1eb232=_0x4d0381[_0x20116c];return _0x1eb232;},_0x2011(_0x4ccba4,_0x41bb94);}fe=Mr([_0x556f1d(_0x2576b6[_0x7ce63a(0x1fa)],fe),ut(0x0,_0x10baba),ut(0x1,_0x525e4b(_0x2386f6)),ut(0x2,_0x525e4b(ae))],fe);const Ue=0x14,_s=0xc8,dt=0x4,Ar=0x5;function Ur(_0x1ad07e,_0x42a5f2){const _0x604e60=_0x7ce63a;let {radius:_0x47f36a,width:_0x3c4662,height:_0x69f069}=_0x42a5f2;_0x47f36a=_0x47f36a!=null?_0x47f36a:0x0,_0x3c4662=_0x3c4662!=null?_0x3c4662:0x1e,_0x69f069=_0x69f069!=null?_0x69f069:0x1e;let _0x5ada44=0x0,_0x2fa07d=0x0,_0x132553=0x0;_0x5ada44=_0x2fa07d=_0x132553=Math[_0x604e60(0xbd)](_0x47f36a,_0x3c4662/0x2,_0x69f069/0x2),_0x1ad07e[_0x604e60(0x31c)](),_0x1ad07e[_0x604e60(0x2b7)](_0x5ada44,0x0),_0x1ad07e[_0x604e60(0x2b1)](_0x3c4662-_0x2fa07d,0x0),_0x1ad07e[_0x604e60(0x124)](_0x3c4662-_0x2fa07d,_0x2fa07d,_0x2fa07d,Math['PI']*0x3/0x2,0x0,!0x1),_0x1ad07e['lineTo'](_0x3c4662,_0x69f069-_0x132553),_0x1ad07e[_0x604e60(0x124)](_0x3c4662-_0x132553,_0x69f069-_0x132553,_0x132553,0x0,Math['PI']/0x2,!0x1),_0x1ad07e[_0x604e60(0x2b1)](0x0,_0x69f069),_0x1ad07e[_0x604e60(0x2b1)](0x0,_0x5ada44),_0x1ad07e['arc'](_0x5ada44,_0x5ada44,_0x5ada44,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1ad07e['closePath'](),_0x42a5f2[_0x604e60(0x327)]&&(_0x1ad07e[_0x604e60(0x2b9)](),_0x1ad07e[_0x604e60(0x1cf)]=_0x42a5f2[_0x604e60(0x327)],_0x42a5f2[_0x604e60(0x21a)]===_0x604e60(0x3c2)?_0x1ad07e[_0x604e60(0x327)](_0x604e60(0x3c2)):_0x1ad07e['fill'](),_0x1ad07e[_0x604e60(0x2bb)]());}class nt extends _0x598191{constructor(_0x3a739f,_0x55d7f5){const _0x414fe7=_0x7ce63a;super(_0x3a739f,_0x55d7f5),l(this,'color'),l(this,'text'),(this[_0x414fe7(0x1f4)]=_0x55d7f5==null?void 0x0:_0x55d7f5[_0x414fe7(0x1f4)],this['text']=_0x55d7f5==null?void 0x0:_0x55d7f5[_0x414fe7(0x3dd)]);}static[_0x7ce63a(0x2e0)](_0x51d9cd,_0x282060){const _0x5a0d9a=_0x7ce63a,{text:_0x4d8007,color:_0x5a84f1}=_0x282060;_0x51d9cd[_0x5a0d9a(0x2b9)](),_0x51d9cd['font']=_0x5a0d9a(0x123);const _0x2213b1=_0x51d9cd['measureText'](_0x4d8007)['width'],_0x20367c=Math['min'](_0x2213b1+0x2*dt,_s);Ur(_0x51d9cd,{'height':Ue,'radius':0x4,'width':_0x20367c,'fill':_0x5a84f1,'evented':!0x1}),_0x51d9cd[_0x5a0d9a(0x1cf)]=_0x5a0d9a(0x135);const _0x42cc52=dt,_0x51c8da=Ue-Ar,_0x520fc1=_s-0x2*dt;if(_0x2213b1>_0x520fc1){let _0x431479='',_0x31e46f=0x0;for(const _0x57eb53 of _0x4d8007){const _0x3c2634=_0x51d9cd[_0x5a0d9a(0x16c)](_0x57eb53)[_0x5a0d9a(0xc9)];if(_0x31e46f+_0x3c2634<=_0x520fc1-_0x51d9cd['measureText'](_0x5a0d9a(0x19b))[_0x5a0d9a(0xc9)])_0x431479+=_0x57eb53,_0x31e46f+=_0x3c2634;else{_0x431479+=_0x5a0d9a(0x19b);break;}}_0x51d9cd[_0x5a0d9a(0x372)](_0x431479,_0x42cc52,_0x51c8da);}else _0x51d9cd[_0x5a0d9a(0x372)](_0x4d8007,_0x42cc52,_0x51c8da);_0x51d9cd[_0x5a0d9a(0x2bb)]();}['_draw'](_0x44fe42){nt['drawWith'](_0x44fe42,this);}}const Lr=0x1,$r=1.5;class jr extends _0x598191{constructor(_0x212c47,_0x414623){const _0xbe997e=_0x7ce63a;super(_0x212c47,_0x414623),l(this,_0xbe997e(0x3b5)),l(this,_0xbe997e(0x416),!0x1),l(this,_0xbe997e(0x1b1)),l(this,'_name',''),l(this,_0xbe997e(0x274),_0xbe997e(0x2f9)),l(this,_0xbe997e(0x235)),(_0x414623&&this[_0xbe997e(0x245)](_0x414623),this[_0xbe997e(0x313)]['subscribeEvent'](()=>this[_0xbe997e(0x245)]({'hovered':!0x0})),this[_0xbe997e(0x317)][_0xbe997e(0x1b9)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x7ce63a(0x245)](_0x20cd0b){const _0x25ce3d=_0x7ce63a;var _0x413326,_0x1f2008,_0x2484d3,_0x52f20b,_0x374450,_0x4632b8;this[_0x25ce3d(0x3b5)]=(_0x413326=_0x20cd0b[_0x25ce3d(0x1f4)])!=null?_0x413326:this[_0x25ce3d(0x3b5)],this[_0x25ce3d(0x416)]=(_0x1f2008=_0x20cd0b['hovered'])!=null?_0x1f2008:this['_hovered'],this[_0x25ce3d(0x1b1)]=(_0x2484d3=_0x20cd0b[_0x25ce3d(0x18c)])!=null?_0x2484d3:this[_0x25ce3d(0x1b1)],this[_0x25ce3d(0x2a3)]=(_0x52f20b=_0x20cd0b['name'])!=null?_0x52f20b:this[_0x25ce3d(0x2a3)],this[_0x25ce3d(0x274)]=(_0x374450=_0x20cd0b[_0x25ce3d(0x185)])!=null?_0x374450:this[_0x25ce3d(0x274)],this[_0x25ce3d(0x235)]=(_0x4632b8=_0x20cd0b['backgroundColor'])!=null?_0x4632b8:this['_backgroundColor'],this[_0x25ce3d(0x149)]({'width':_0x20cd0b[_0x25ce3d(0xc9)],'height':_0x20cd0b[_0x25ce3d(0x18f)]});}['onMouseMove'](_0x4a13ed){const _0x27ca31=_0x7ce63a,{row:_0x5028fd,column:_0x37d822}=_0x4a13ed;if(_0x5028fd>=this[_0x27ca31(0x1b1)]['startRow']&&_0x5028fd<=this['_range'][_0x27ca31(0x394)]&&_0x37d822>=this[_0x27ca31(0x1b1)][_0x27ca31(0x295)]&&_0x37d822<=this[_0x27ca31(0x1b1)]['endColumn']){this[_0x27ca31(0x245)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x7ce63a(0xa3)](_0x33b094){return!0x1;}[_0x7ce63a(0x3f1)](_0x967520){const _0x4124e9=_0x7ce63a;_0x31ffb5[_0x4124e9(0x2e0)](_0x967520,{'width':this['width'],'height':this[_0x4124e9(0x18f)],'strokeWidth':$r,'stroke':this[_0x4124e9(0x3b5)],'evented':!0x1,'fill':this[_0x4124e9(0x235)]}),this['_hovered']&&(_0x967520[_0x4124e9(0x2b9)](),_0x967520['transform'](0x1,0x0,0x0,0x1,this[_0x4124e9(0xc9)],this[_0x4124e9(0x274)]==='bottom'?0x0:-Ue),nt[_0x4124e9(0x2e0)](_0x967520,{'text':this[_0x4124e9(0x2a3)],'color':this[_0x4124e9(0x3b5)]}),_0x967520[_0x4124e9(0x2bb)]());}}var xr=Object[_0x7ce63a(0x1cd)],Hr=Object['getOwnPropertyDescriptor'],kr=(_0x35f79e,_0x4a6744,_0x2f220e,_0x436d16)=>{const _0x4d910d=_0x7ce63a;for(var _0x355878=_0x436d16>0x1?void 0x0:_0x436d16?Hr(_0x4a6744,_0x2f220e):_0x4a6744,_0x46e06f=_0x35f79e[_0x4d910d(0xc2)]-0x1,_0x3d4d76;_0x46e06f>=0x0;_0x46e06f--)(_0x3d4d76=_0x35f79e[_0x46e06f])&&(_0x355878=(_0x436d16?_0x3d4d76(_0x4a6744,_0x2f220e,_0x355878):_0x3d4d76(_0x355878))||_0x355878);return _0x436d16&&_0x355878&&xr(_0x4a6744,_0x2f220e,_0x355878),_0x355878;},mt=(_0x1fff68,_0x8d3964)=>(_0x426a65,_0x45d8ea)=>_0x8d3964(_0x426a65,_0x45d8ea,_0x1fff68);const Br=0x1389;let wt=class extends _0x24bc67{constructor(_0x899466,_0x46ab3c,_0x3ba714,_0x5ce277){const _0x5e7626=_0x7ce63a;super(),l(this,_0x5e7626(0x13a),new Set()),l(this,_0x5e7626(0x1f6),null),(this[_0x5e7626(0xce)]=_0x899466,this['_sheetSkeletonManagerService']=_0x46ab3c,this[_0x5e7626(0x1a0)]=_0x3ba714,this[_0x5e7626(0x134)]=_0x5ce277,this[_0x5e7626(0x11d)]());}['_init'](){const _0x3cc8c3=_0x7ce63a;this['_sheetSkeletonManagerService'][_0x3cc8c3(0x2c0)][_0x3cc8c3(0x1f3)](_0xf88d9b(this[_0x3cc8c3(0x3d1)]),_0x143825(_0x29c6c6=>{const _0x11326e=_0x3cc8c3;if(_0x29c6c6){const _0x4bef57=_0x29c6c6[_0x11326e(0x280)];return _0x34c25e(this[_0x11326e(0x1a0)][_0x11326e(0x379)](this[_0x11326e(0xce)][_0x11326e(0x180)]),this[_0x11326e(0x134)][_0x11326e(0x28c)])[_0x11326e(0x1f3)](_0x1bc5ac(([_0x339e4f,_0x228381])=>{const _0x21ddf2=_0x11326e,_0x1119dd=new Map();return _0x339e4f[_0x21ddf2(0x2c2)]((_0x18dfc8,_0x5d5062)=>{const _0x5117ec=_0x21ddf2;if(_0x18dfc8[_0x5117ec(0x22c)]===_0x4bef57){const _0x4b8473={..._0x18dfc8};_0x4b8473['color']=_0x228381[_0x18dfc8[_0x5117ec(0x1f4)]],_0x1119dd['set'](_0x5d5062,_0x4b8473);}}),{'skeleton':_0x29c6c6,'cursors':_0x1119dd};}));}return _0x16c423({'skeleton':null,'cursors':new Map()});}))[_0x3cc8c3(0x3bc)](({skeleton:_0x5c6c9f,cursors:_0x3b733e})=>{const _0x4fd757=_0x3cc8c3;this[_0x4fd757(0x3d9)](),_0x5c6c9f&&this[_0x4fd757(0x17f)](_0x5c6c9f,_0x3b733e);}),this['_sheetSkeletonManagerService'][_0x3cc8c3(0x2c0)][_0x3cc8c3(0x3bc)](_0x567fe2=>{const _0x2e3737=_0x3cc8c3;if(_0x567fe2==null)return;const {skeleton:_0x20e4eb}=_0x567fe2,{scene:_0x46c7a0}=this[_0x2e3737(0xce)];_0x46c7a0[_0x2e3737(0x2ce)][_0x2e3737(0x1b9)](_0x2361dc(_0x4722ce=>{const _0x3d7f0d=_0x2e3737;var _0x54b889,_0x21be57;const {offsetX:_0x1143b2,offsetY:_0x27740e}=_0x4722ce,{x:_0x492b10,y:_0x8a2f25}=_0x46c7a0[_0x3d7f0d(0x127)](_0x210a47[_0x3d7f0d(0x243)]([_0x1143b2,_0x27740e])),{scaleX:_0x2075fe,scaleY:_0x28a2d0}=_0x46c7a0['getAncestorScale'](),_0x1a207f=_0x46c7a0[_0x3d7f0d(0x3d6)](_0x3b4b0c[_0x3d7f0d(0x3f4)]),_0x3a1836=_0x46c7a0[_0x3d7f0d(0x2c7)](_0x210a47[_0x3d7f0d(0x243)]([_0x492b10,_0x8a2f25]),_0x1a207f),_0x3c4304=_0x20e4eb[_0x3d7f0d(0xfe)](_0x1143b2,_0x27740e,_0x2075fe,_0x28a2d0,_0x3a1836);((_0x54b889=this[_0x3d7f0d(0x1f6)])==null?void 0x0:_0x54b889[_0x3d7f0d(0x1c9)])===_0x3c4304[_0x3d7f0d(0x1c9)]&&((_0x21be57=this[_0x3d7f0d(0x1f6)])==null?void 0x0:_0x21be57[_0x3d7f0d(0x24c)])===_0x3c4304['row']||this[_0x3d7f0d(0x13a)][_0x3d7f0d(0x2c2)](_0x3d98ec=>{const _0xe2bddf=_0x3d7f0d;_0x3d98ec[_0xe2bddf(0xde)](_0x3c4304);});},0x64));});}[_0x7ce63a(0x17f)](_0x50ecb4,_0x554afb){const _0xe6cc2c=_0x7ce63a;var _0x2a268b;const _0x1a2315=(_0x2a268b=this[_0xe6cc2c(0x22d)][_0xe6cc2c(0x146)]())==null?void 0x0:_0x2a268b[_0xe6cc2c(0x221)];if(!_0x1a2315)return;const _0x5e3dbd=this[_0xe6cc2c(0x2e7)]();if(!_0x5e3dbd)return;this[_0xe6cc2c(0x13a)]['forEach'](_0x2c459b=>{_0x2c459b['makeDirty']();});const {scene:_0x5bb4c5}=_0x5e3dbd,_0x3041bc=Vr(Array['from'](_0x554afb['values']()))['map'](_0xcb41df=>{const _0x17242b=_0xe6cc2c,{color:_0x2f3cdb,range:_0x1871c9,name:_0x3e8acf,selection:_0x35aeb9,sheetID:_0x142e18}=_0xcb41df,{startColumn:_0x93c7fb,startRow:_0x53e718,endColumn:_0x2cf9c1,endRow:_0x17fd28}=_0x1871c9,_0x34a12b=_0x2d6fad(_0x53e718,_0x93c7fb,_0x5bb4c5,_0x1a2315),_0x3d177c=_0x2d6fad(_0x17fd28,_0x2cf9c1,_0x5bb4c5,_0x1a2315),{columnHeaderHeightAndMarginTop:_0x2103c6}=_0x1a2315,{startX:_0x3f4472,startY:_0x58a86f}=_0x34a12b,{endX:_0x25768e,endY:_0x2c34d3}=_0x3d177c,_0x332b98=_0x25768e-_0x3f4472,_0xed33e2=_0x2c34d3-_0x58a86f,_0x214760={'labelPosition':_0x58a86f-_0x2103c6>=Ue?'top':_0x17242b(0x25d),'sheetID':_0x142e18,'range':_0x1871c9,'color':_0x2f3cdb,'name':_0x3e8acf,'selection':_0x35aeb9,'left':_0x3f4472,'top':_0x58a86f,'width':_0x332b98,'height':_0xed33e2,'evented':!0x1,'zIndex':Br};return new jr(_0x3e8acf,_0x214760);});_0x5bb4c5[_0xe6cc2c(0x2f3)](_0x3041bc,Lr),this[_0xe6cc2c(0x13a)]=new Set(_0x3041bc);}['_removeCollabCursors'](){const _0x1e78b9=_0x7ce63a;var _0x1961db;(_0x1961db=this[_0x1e78b9(0x13a)])==null||_0x1961db[_0x1e78b9(0x2c2)](_0x5acbcb=>_0x5acbcb[_0x1e78b9(0x3a6)]());}['_getSheetObject'](){const _0x4b1fe7=_0x7ce63a;return _0x15c132(this[_0x4b1fe7(0xce)][_0x4b1fe7(0x267)],this['_context']);}};wt=kr([mt(0x1,_0x525e4b(_0xdfd854)),mt(0x2,_0x525e4b(fe)),mt(0x3,_0x525e4b(_0x27cef3))],wt);function Vr(_0x3a8606){const _0x4b109a=_0x7ce63a,_0x1907c8=new Map();return _0x3a8606[_0x4b109a(0x2c2)](_0x4d4f41=>{const _0x226d5a=_0x4b109a;if(_0x1907c8[_0x226d5a(0x25c)](_0x4d4f41[_0x226d5a(0x164)])){const _0x37b031=_0x1907c8[_0x226d5a(0x3de)](_0x4d4f41[_0x226d5a(0x164)]);_0x37b031[_0x226d5a(0x229)]+=',\x20'+_0x4d4f41['name'];}else _0x1907c8[_0x226d5a(0x2b8)](_0x4d4f41[_0x226d5a(0x164)],_0x4d4f41);}),Array[_0x4b109a(0xe4)](_0x1907c8[_0x4b109a(0x341)]());}var y=function(){const _0x5887b4=_0x7ce63a;return y=Object[_0x5887b4(0x2de)]||function(_0x57589c){const _0x3578fe=_0x5887b4;for(var _0x36bad2,_0x574128=0x1,_0x8706f3=arguments['length'];_0x574128<_0x8706f3;_0x574128++){_0x36bad2=arguments[_0x574128];for(var _0x36ea2b in _0x36bad2)Object[_0x3578fe(0x411)][_0x3578fe(0x1c5)][_0x3578fe(0x3a1)](_0x36bad2,_0x36ea2b)&&(_0x57589c[_0x36ea2b]=_0x36bad2[_0x36ea2b]);}return _0x57589c;},y[_0x5887b4(0x19d)](this,arguments);},Fr=function(_0x2b1be9,_0xf5828c){const _0x2bfbde=_0x7ce63a;var _0x75e43a={};for(var _0x2d792d in _0x2b1be9)Object['prototype'][_0x2bfbde(0x1c5)][_0x2bfbde(0x3a1)](_0x2b1be9,_0x2d792d)&&_0xf5828c['indexOf'](_0x2d792d)<0x0&&(_0x75e43a[_0x2d792d]=_0x2b1be9[_0x2d792d]);if(_0x2b1be9!=null&&typeof Object[_0x2bfbde(0x17a)]=='function'){for(var _0x2e11ea=0x0,_0x2d792d=Object[_0x2bfbde(0x17a)](_0x2b1be9);_0x2e11ea<_0x2d792d[_0x2bfbde(0xc2)];_0x2e11ea++)_0xf5828c[_0x2bfbde(0x1da)](_0x2d792d[_0x2e11ea])<0x0&&Object[_0x2bfbde(0x411)]['propertyIsEnumerable']['call'](_0x2b1be9,_0x2d792d[_0x2e11ea])&&(_0x75e43a[_0x2d792d[_0x2e11ea]]=_0x2b1be9[_0x2d792d[_0x2e11ea]]);}return _0x75e43a;},Wt=_0x330fff(function(_0x2edd6c,_0x58c7de){const _0x17933b=_0x7ce63a;var _0x4ec82d=_0x2edd6c[_0x17933b(0xbf)],_0xa48fea=_0x2edd6c['id'],_0x3d29d1=_0x2edd6c[_0x17933b(0xae)],_0x16e04b=_0x2edd6c['extend'],_0x2cc192=Fr(_0x2edd6c,[_0x17933b(0xbf),'id','className',_0x17933b(0x213)]),_0x439e39='univerjs-icon\x20univerjs-icon-'[_0x17933b(0x363)](_0xa48fea,'\x20')[_0x17933b(0x363)](_0x3d29d1||'')['trim'](),_0x180408=_0xe0b9e2('_'[_0x17933b(0x363)](Yr()));return Hs(_0x4ec82d,''[_0x17933b(0x363)](_0xa48fea),{'defIds':_0x4ec82d['defIds'],'idSuffix':_0x180408[_0x17933b(0x1bb)]},y({'ref':_0x58c7de,'className':_0x439e39},_0x2cc192),_0x16e04b);});function Hs(_0x32b384,_0x3b0e05,_0x4c0d94,_0x464d2b,_0xe792fe){const _0x43587f=_0x7ce63a;return _0x5159a4(_0x32b384['tag'],y(y({'key':_0x3b0e05},Wr(_0x32b384,_0x4c0d94,_0xe792fe)),_0x464d2b),(Gr(_0x32b384,_0x4c0d94)[_0x43587f(0x2f6)]||[])[_0x43587f(0x30f)](function(_0x48c516,_0x20cb69){const _0x27872a=_0x43587f;return Hs(_0x48c516,''[_0x27872a(0x363)](_0x3b0e05,'-')[_0x27872a(0x363)](_0x32b384[_0x27872a(0x1a3)],'-')[_0x27872a(0x363)](_0x20cb69),_0x4c0d94,void 0x0,_0xe792fe);}));}function Wr(_0x2b1439,_0xcf96e6,_0x28d988){const _0x27f488=_0x7ce63a;var _0x434c35=y({},_0x2b1439[_0x27f488(0x2e3)]);_0x28d988!=null&&_0x28d988[_0x27f488(0x153)]&&_0x434c35['fill']===_0x27f488(0x153)&&(_0x434c35['fill']=_0x28d988[_0x27f488(0x153)]);var _0x551ad7=_0xcf96e6[_0x27f488(0x3e2)];return!_0x551ad7||_0x551ad7[_0x27f488(0xc2)]===0x0||(_0x2b1439['tag']==='use'&&_0x434c35[_0x27f488(0x1a1)]&&(_0x434c35['xlink:href']=_0x434c35[_0x27f488(0x1a1)]+_0xcf96e6[_0x27f488(0x1a4)]),Object[_0x27f488(0x128)](_0x434c35)[_0x27f488(0x2c2)](function(_0xe57adf){const _0x2d6a0f=_0x27f488;var _0x2dc586=_0xe57adf[0x0],_0x56a90d=_0xe57adf[0x1];typeof _0x56a90d==_0x2d6a0f(0x27a)&&(_0x434c35[_0x2dc586]=_0x56a90d[_0x2d6a0f(0xfd)](/url\(#(.*)\)/,_0x2d6a0f(0x3c5)[_0x2d6a0f(0x363)](_0xcf96e6[_0x2d6a0f(0x1a4)],')')));})),_0x434c35;}function Gr(_0x111276,_0x175bf1){const _0x325980=_0x7ce63a;var _0x104ff2,_0x27ec18=_0x175bf1[_0x325980(0x3e2)];return!_0x27ec18||_0x27ec18['length']===0x0?_0x111276:_0x111276['tag']===_0x325980(0x1d6)&&(!((_0x104ff2=_0x111276[_0x325980(0x2f6)])===null||_0x104ff2===void 0x0)&&_0x104ff2[_0x325980(0xc2)])?y(y({},_0x111276),{'children':_0x111276[_0x325980(0x2f6)][_0x325980(0x30f)](function(_0x3836cd){const _0x174d19=_0x325980;return typeof _0x3836cd[_0x174d19(0x2e3)]['id']==_0x174d19(0x27a)&&_0x27ec18&&_0x27ec18[_0x174d19(0x1da)](_0x3836cd[_0x174d19(0x2e3)]['id'])>-0x1?y(y({},_0x3836cd),{'attrs':y(y({},_0x3836cd['attrs']),{'id':_0x3836cd[_0x174d19(0x2e3)]['id']+_0x175bf1[_0x174d19(0x1a4)]})}):_0x3836cd;})}):_0x111276;}function Yr(){const _0x593e4f=_0x7ce63a;return Math[_0x593e4f(0x401)]()[_0x593e4f(0x305)](0x24)[_0x593e4f(0xb8)](0x2,0x8);}Wt[_0x7ce63a(0x3d3)]=_0x7ce63a(0x32a);var Kr={'tag':'svg','attrs':{'fill':_0x7ce63a(0x3e1),'viewBox':_0x7ce63a(0x136),'width':_0x7ce63a(0x340),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x7ce63a(0x354)},'children':[{'tag':_0x7ce63a(0xee),'attrs':{'stroke':_0x7ce63a(0xe5),'d':_0x7ce63a(0x33f),'strokeLinecap':_0x7ce63a(0x279),'strokeLinejoin':_0x7ce63a(0x279),'strokeWidth':1.2}}]},{'tag':_0x7ce63a(0x1d6),'attrs':{},'children':[{'tag':_0x7ce63a(0x31d),'attrs':{'id':_0x7ce63a(0x387)},'children':[{'tag':_0x7ce63a(0xee),'attrs':{'fill':_0x7ce63a(0x335),'d':_0x7ce63a(0x35e)}}]}]}],'defIds':[_0x7ce63a(0x387)]},ks=_0x330fff(function(_0x52c1d0,_0x2c8634){const _0x3d070a=_0x7ce63a;return _0x5159a4(Wt,Object[_0x3d070a(0x2de)]({},_0x52c1d0,{'id':'off-line-single','ref':_0x2c8634,'icon':Kr}));});ks['displayName']='OffLineSingle';var Xr={'tag':_0x7ce63a(0x12b),'attrs':{'fill':_0x7ce63a(0x3e1),'viewBox':'0\x200\x2017\x2016','width':_0x7ce63a(0x340),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x7ce63a(0x2eb)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x7ce63a(0xc1),'strokeLinecap':_0x7ce63a(0x279),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x7ce63a(0x1d6),'attrs':{},'children':[{'tag':_0x7ce63a(0x31d),'attrs':{'id':_0x7ce63a(0x109)},'children':[{'tag':_0x7ce63a(0xee),'attrs':{'fill':_0x7ce63a(0x335),'d':_0x7ce63a(0x35e),'transform':_0x7ce63a(0x2fa)}}]}]}],'defIds':[_0x7ce63a(0x109)]},Bs=_0x330fff(function(_0x34fa68,_0x54dde8){const _0x9e061f=_0x7ce63a;return _0x5159a4(Wt,Object[_0x9e061f(0x2de)]({},_0x34fa68,{'id':'on-line-single','ref':_0x54dde8,'icon':Xr}));});Bs[_0x7ce63a(0x3d3)]=_0x7ce63a(0x1cb);const Jr=_0x7ce63a(0x36d),zr='univer-online-status-title',qr=_0x7ce63a(0x29f),Zr=_0x7ce63a(0x30b),Qr='univer-offline',Oe={'onlineStatusIcon':Jr,'onlineStatusTitle':zr,'onlineStatus':qr,'online':Zr,'offline':Qr};function eo(_0x16c3f6){const _0x507352=_0x7ce63a;switch(_0x16c3f6){case w[_0x507352(0x406)]:return'collabStatus.offline';case w[_0x507352(0x2fb)]:return _0x507352(0x225);case w[_0x507352(0x38f)]:return _0x507352(0x14a);case w[_0x507352(0x126)]:return _0x507352(0xfb);case w[_0x507352(0x140)]:case w[_0x507352(0x1d0)]:case w[_0x507352(0x2c4)]:return'collabStatus.syncing';case w[_0x507352(0x233)]:return _0x507352(0x17e);}}function to(_0xe0225c){const _0x3dc97c=_0x7ce63a,{status$:_0x2295ed}=_0xe0225c,_0x27f9b4=_0x477dc9(_0x2295ed,w[_0x3dc97c(0x126)]),_0x1e6d7e=_0x8fb279(_0xe0d77a),_0x2f7f05=_0x8fb279(ae),_0x54e9fe=_0x27f9b4!==w[_0x3dc97c(0x406)],_0xdfb081=_0x1e6d7e['t'](eo(_0x27f9b4)),_0x3635b9=_0x153164(Oe['onlineStatus'],{[Oe[_0x3dc97c(0x30d)]]:_0x54e9fe,[Oe[_0x3dc97c(0x278)]]:!_0x54e9fe}),_0x19d93a=_0x54e9fe?_0x487a41[_0x3dc97c(0x2aa)](Bs,null):_0x487a41['createElement'](ks,null),_0x313724=_0x151f29(()=>{_0x54e9fe||_0x2f7f05['reconnect']();},[_0x54e9fe,_0x2f7f05]);function _0x387cc9(){const _0xdeddc3=_0x3dc97c;return _0x487a41[_0xdeddc3(0x2aa)](_0xdeddc3(0x3fa),{'className':_0x3635b9,'onClick':_0x313724},_0x487a41['createElement'](_0xdeddc3(0x3fa),{'className':Oe[_0xdeddc3(0x16e)]},_0x19d93a),_0x487a41[_0xdeddc3(0x2aa)]('div',{'className':Oe[_0xdeddc3(0x173)]},_0xdfb081));}return _0x54e9fe?_0x387cc9():_0x487a41[_0x3dc97c(0x2aa)](_0xa2af05,{'title':_0x1e6d7e['t']('collab-client.tooltip.reconnect')},_0x387cc9());}var so=Object[_0x7ce63a(0x1cd)],io=Object[_0x7ce63a(0x323)],no=(_0x4c6a85,_0xaee298,_0x42ad9e,_0x8d215b)=>{const _0x1eb70c=_0x7ce63a;for(var _0x484bfd=_0x8d215b>0x1?void 0x0:_0x8d215b?io(_0xaee298,_0x42ad9e):_0xaee298,_0x411ec0=_0x4c6a85[_0x1eb70c(0xc2)]-0x1,_0x4bd5f0;_0x411ec0>=0x0;_0x411ec0--)(_0x4bd5f0=_0x4c6a85[_0x411ec0])&&(_0x484bfd=(_0x8d215b?_0x4bd5f0(_0xaee298,_0x42ad9e,_0x484bfd):_0x4bd5f0(_0x484bfd))||_0x484bfd);return _0x8d215b&&_0x484bfd&&so(_0xaee298,_0x42ad9e,_0x484bfd),_0x484bfd;},ke=(_0x2d4d5b,_0x4e11c8)=>(_0x25b7a6,_0x3967d2)=>_0x4e11c8(_0x25b7a6,_0x3967d2,_0x2d4d5b);let ye=class extends _0x18124f{constructor(_0x5d8f05,_0x14f74a,_0x185716,_0x81a1ea){const _0x3dce0c=_0x7ce63a;super(),l(this,_0x3dce0c(0x40d),new _0x2f2e3e(w[_0x3dce0c(0x126)])),(this[_0x3dce0c(0x11a)]=_0x5d8f05,this[_0x3dce0c(0x1f0)]=_0x14f74a,this[_0x3dce0c(0x1ba)]=_0x185716,this[_0x3dce0c(0x100)]=_0x81a1ea,this[_0x3dce0c(0xc7)](),this['_initStatusListener']());}[_0x7ce63a(0x2a7)](){const _0x54f924=_0x7ce63a;this['disposeWithMe'](this[_0x54f924(0x11a)]['focused$'][_0x54f924(0x1f3)](_0x54075f(()=>{const _0x45885d=_0x54f924,_0x31d04b=this[_0x45885d(0x11a)][_0x45885d(0x2b0)]();return _0x31d04b?this[_0x45885d(0x100)][_0x45885d(0x1a9)](_0x31d04b['getUnitId']()):_0x16c423(null);}),_0x54075f(_0x528b9a=>_0x528b9a?_0x528b9a['status$']:_0x16c423(w[_0x54f924(0x126)])))[_0x54f924(0x3bc)](_0x41f237=>{const _0x5dd4d3=_0x54f924;this['_status$'][_0x5dd4d3(0x1ee)](_0x41f237);}));}['_initStatusComponent'](){const _0x5e9ee5=_0x7ce63a;this[_0x5e9ee5(0x355)](this['_uiPartsService'][_0x5e9ee5(0x108)](_0x13ab0b[_0x5e9ee5(0x148)],()=>_0x273476(ro({'status$':this[_0x5e9ee5(0x40d)][_0x5e9ee5(0x112)]()}),this['_injector'])));}};ye=no([ke(0x0,_0x10baba),ke(0x1,_0x5e04f0),ke(0x2,_0x525e4b(_0x2386f6)),ke(0x3,_0x525e4b(Ae))],ye);function ro(_0x15cf9e){const {status$:_0x36c1d8}=_0x15cf9e;return function(){const _0x1a7bf3=_0x2011;return _0x487a41[_0x1a7bf3(0x2aa)](to,{'status$':_0x36c1d8});};}const Vs=_0x36e1fd(_0x7ce63a(0x204));var oo=Object['defineProperty'],ao=Object[_0x7ce63a(0x323)],co=(_0x5c2687,_0x2001ee,_0x4262f2,_0x5a2e89)=>{const _0x405af0=_0x7ce63a;for(var _0x11aeb6=_0x5a2e89>0x1?void 0x0:_0x5a2e89?ao(_0x2001ee,_0x4262f2):_0x2001ee,_0x38bc2c=_0x5c2687[_0x405af0(0xc2)]-0x1,_0x196b4d;_0x38bc2c>=0x0;_0x38bc2c--)(_0x196b4d=_0x5c2687[_0x38bc2c])&&(_0x11aeb6=(_0x5a2e89?_0x196b4d(_0x2001ee,_0x4262f2,_0x11aeb6):_0x196b4d(_0x11aeb6))||_0x11aeb6);return _0x5a2e89&&_0x11aeb6&&oo(_0x2001ee,_0x4262f2,_0x11aeb6),_0x11aeb6;},me=(_0x5c20ba,_0x1fa2b7)=>(_0x29bdee,_0x45e28c)=>_0x1fa2b7(_0x29bdee,_0x45e28c,_0x5c20ba);let We=class extends _0x24bc67{constructor(_0x47b748,_0x1995e1,_0x1d5b2e,_0x3d7922,_0x3d1d1e,_0x553a22){const _0x256d65=_0x7ce63a;super(),this[_0x256d65(0x33e)]=_0x47b748,this['_logService']=_0x1995e1,this[_0x256d65(0x270)]=_0x1d5b2e,this[_0x256d65(0x3b4)]=_0x3d7922,this[_0x256d65(0x31e)]=_0x3d1d1e,_0x553a22?_0x553a22==null||_0x553a22[_0x256d65(0x3b6)]()[_0x256d65(0x12a)](()=>this['_init']()):(this[_0x256d65(0x2a9)][_0x256d65(0x139)](_0x256d65(0x22a),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x256d65(0x11d)]());}async[_0x7ce63a(0x11d)](){const _0x35d1d7=_0x7ce63a,_0x1ee61a=this[_0x35d1d7(0x33e)][_0x35d1d7(0x3d4)](_0x35d1d7(0x267)),_0x56c1b9=this[_0x35d1d7(0x33e)]['getParam'](_0x35d1d7(0x359));if(!_0x1ee61a||!_0x56c1b9){this[_0x35d1d7(0x2a9)][_0x35d1d7(0x139)]('[DataLoaderController]',_0x35d1d7(0x293));return;}switch(Number(_0x56c1b9)){case x[_0x35d1d7(0x22f)]:{const _0x13b59f=await this['_loadSheet'](_0x1ee61a);this[_0x35d1d7(0x1fc)](_0x13b59f);break;}case x[_0x35d1d7(0x3a2)]:{await this[_0x35d1d7(0x228)](_0x1ee61a);break;}default:{this[_0x35d1d7(0x2a9)][_0x35d1d7(0x1eb)](_0x35d1d7(0x22a),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x7ce63a(0x1fc)](_0x2b38fe){const _0x160a3f=_0x7ce63a;await this[_0x160a3f(0x34e)](_0x2b38fe),_0x2b38fe[_0x160a3f(0x3ea)][_0x160a3f(0x1f3)](_0x2216fd(this[_0x160a3f(0x3d1)]))['subscribe'](_0x4f8273=>{const _0x48ddd0=_0x160a3f;_0x4f8273&&this[_0x48ddd0(0x3f8)](_0x4f8273);}),this['_urlService'][_0x160a3f(0x38e)][_0x160a3f(0x1f3)](_0x2216fd(this[_0x160a3f(0x3d1)]))[_0x160a3f(0x3bc)](()=>this[_0x160a3f(0x34e)](_0x2b38fe));}['_updateURLWithCurrentState'](_0x582ad5,_0x599195=!0x1){const _0x24a124=_0x7ce63a,_0x2d5de2=this[_0x24a124(0x33e)][_0x24a124(0x3d4)](_0x24a124(0xdd));_0x582ad5['getSheetId']()!==_0x2d5de2&&this['_urlService'][_0x24a124(0x34c)](_0x24a124(0xdd),_0x582ad5['getSheetId'](),_0x599195);}async[_0x7ce63a(0x34e)](_0xc3e83e){const _0x350bc8=_0x7ce63a;var _0x55cfe8;const _0x66e388=this['_urlService'][_0x350bc8(0x3d4)](_0x350bc8(0xdd));if(!_0x66e388||!_0xc3e83e[_0x350bc8(0x197)](_0x66e388)){const _0x1fc8fa=_0xc3e83e[_0x350bc8(0x3b8)]()[0x0],_0x33d71e=_0xc3e83e[_0x350bc8(0x197)](_0x1fc8fa);if(!_0x33d71e)return;this[_0x350bc8(0x3f8)](_0x33d71e,!0x0),await this[_0x350bc8(0x270)][_0x350bc8(0x314)](_0x398fc9['id'],{'unitId':_0xc3e83e[_0x350bc8(0xd6)](),'subUnitId':_0x1fc8fa});return;}((_0x55cfe8=_0xc3e83e[_0x350bc8(0x390)]())==null?void 0x0:_0x55cfe8['getSheetId']())!==_0x66e388&&await this[_0x350bc8(0x270)][_0x350bc8(0x314)](_0x398fc9['id'],{'unitId':_0xc3e83e[_0x350bc8(0xd6)](),'subUnitId':_0x66e388});}async[_0x7ce63a(0x214)](_0x5b4bea){const _0x218287=_0x7ce63a;let _0x34fde3=0x0;const _0x5aeaeb=await this[_0x218287(0x3b4)][_0x218287(0x150)](_0x5b4bea);return _0x5aeaeb&&(_0x5aeaeb['awaitingChangeset']||_0x5aeaeb[_0x218287(0x251)][_0x218287(0xc2)]!==0x0)&&(_0x34fde3=_0x5aeaeb[_0x218287(0x298)]),_0x34fde3===0x0&&this[_0x218287(0x2a9)][_0x218287(0x139)](_0x218287(0x22a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadSheet'](_0x5b4bea,_0x34fde3);}async[_0x7ce63a(0x228)](_0x595fa6){const _0xb21a5e=_0x7ce63a;let _0x5b8112=0x0;const _0x2514c7=await this[_0xb21a5e(0x3b4)][_0xb21a5e(0x150)](_0x595fa6);return _0x2514c7&&(_0x2514c7['awaitingChangeset']||_0x2514c7[_0xb21a5e(0x251)][_0xb21a5e(0xc2)]!==0x0)&&(_0x5b8112=_0x2514c7[_0xb21a5e(0x298)]),_0x5b8112===0x0&&this['_logService'][_0xb21a5e(0x139)]('[DataLoaderController]',_0xb21a5e(0x2fc)),this[_0xb21a5e(0x31e)]['loadDoc'](_0x595fa6,_0x5b8112);}};We=co([_0x556f1d(_0x2576b6['Starting'],We),me(0x0,Vs),me(0x1,_0x2fa9fe),me(0x2,_0x25ecde),me(0x3,_0x525e4b(D)),me(0x4,_0x525e4b(_0x3bb447)),me(0x5,_0x17b51f(_0x42241b))],We);var ho=Object[_0x7ce63a(0x1cd)],lo=Object[_0x7ce63a(0x323)],_o=(_0x2c303d,_0x4d0230,_0x1bf1b8,_0x3402df)=>{const _0x4cd8c2=_0x7ce63a;for(var _0x452b78=_0x3402df>0x1?void 0x0:_0x3402df?lo(_0x4d0230,_0x1bf1b8):_0x4d0230,_0x1a1d24=_0x2c303d[_0x4cd8c2(0xc2)]-0x1,_0x19ffea;_0x1a1d24>=0x0;_0x1a1d24--)(_0x19ffea=_0x2c303d[_0x1a1d24])&&(_0x452b78=(_0x3402df?_0x19ffea(_0x4d0230,_0x1bf1b8,_0x452b78):_0x19ffea(_0x452b78))||_0x452b78);return _0x3402df&&_0x452b78&&ho(_0x4d0230,_0x1bf1b8,_0x452b78),_0x452b78;},us=(_0x10e4ab,_0x1bcc78)=>(_0x3e0f5d,_0x17cfa5)=>_0x1bcc78(_0x3e0f5d,_0x17cfa5,_0x10e4ab);const uo=_0x7ce63a(0x143),mo=_0x7ce63a(0x1ae);let Ge=class extends _0x18124f{constructor(_0x41f6b2,_0x110be1){const _0x586924=_0x7ce63a;super(),this[_0x586924(0x11a)]=_0x41f6b2,this[_0x586924(0x122)]=_0x110be1,this[_0x586924(0x11d)]();}[_0x7ce63a(0x11d)](){const _0x4bbffb=_0x7ce63a;this['disposeWithMe'](_0x1fc5cf(this['_univerInstanceService'][_0x4bbffb(0x380)][_0x4bbffb(0x3bc)](()=>{const _0x6edf1d=_0x4bbffb;var _0x1d9c12;const _0x1aad45=this[_0x6edf1d(0x11a)][_0x6edf1d(0x2b0)]();let _0x129ac4=(_0x1d9c12=this[_0x6edf1d(0x122)]['getConfig'](uo))!=null?_0x1d9c12:mo;_0x1aad45 instanceof _0x46080f&&(_0x129ac4=_0x1aad45[_0x6edf1d(0x229)]),document[_0x6edf1d(0x1fb)]=_0x129ac4;})));}};Ge=_o([_0x556f1d(_0x2576b6[_0x7ce63a(0x288)],Ge),us(0x0,_0x10baba),us(0x1,_0x5701c0)],Ge);var fo=Object[_0x7ce63a(0x1cd)],go=Object[_0x7ce63a(0x323)],So=(_0xcc068f,_0x12c9d9,_0x6ec6a4,_0x4b1a1a)=>{const _0x358584=_0x7ce63a;for(var _0x4df0ee=_0x4b1a1a>0x1?void 0x0:_0x4b1a1a?go(_0x12c9d9,_0x6ec6a4):_0x12c9d9,_0x2afaf7=_0xcc068f[_0x358584(0xc2)]-0x1,_0x401c72;_0x2afaf7>=0x0;_0x2afaf7--)(_0x401c72=_0xcc068f[_0x2afaf7])&&(_0x4df0ee=(_0x4b1a1a?_0x401c72(_0x12c9d9,_0x6ec6a4,_0x4df0ee):_0x401c72(_0x4df0ee))||_0x4df0ee);return _0x4b1a1a&&_0x4df0ee&&fo(_0x12c9d9,_0x6ec6a4,_0x4df0ee),_0x4df0ee;},ds=(_0x3c8152,_0x2e2c95)=>(_0x3e5855,_0x1b1f12)=>_0x2e2c95(_0x3e5855,_0x1b1f12,_0x3c8152);let Pt=class{constructor(_0x34e008,_0x409509){const _0x14c447=_0x7ce63a;this[_0x14c447(0x122)]=_0x34e008,this['_httpService']=_0x409509;}async['getUnitOnRev'](_0x286d2a,_0x332dff){const _0x10df63=_0x7ce63a;var _0x396760;const {unitID:_0x2d6639,type:_0x505d54,revision:_0x556236=0x0}=_0x332dff,_0x13c35d=this[_0x10df63(0x190)]()+'/'+_0x505d54+_0x10df63(0x30e)+_0x2d6639+_0x10df63(0x309)+_0x556236,_0x2823ab=(await this['_httpService'][_0x10df63(0x3de)](_0x13c35d))['body'],_0x48a751=(_0x396760=_0x2823ab[_0x10df63(0x404)])==null?void 0x0:_0x396760[_0x10df63(0x3c9)];if(_0x48a751){const _0x202b96=_0x48a751==null?void 0x0:_0x48a751[_0x10df63(0x1d1)],_0x1efc30=_0x4e5116['encode'](_0x1f7d1d(_0x202b96));_0x48a751[_0x10df63(0x1d1)]=_0x1efc30,Object[_0x10df63(0x128)](_0x48a751['sheets'])[_0x10df63(0x2c2)](([,_0x57e7be])=>{const _0x7ede97=_0x10df63,_0x3eeec0=_0x57e7be[_0x7ede97(0x1d1)],_0x1a54a5=_0x4e5116[_0x7ede97(0x40a)](_0x1f7d1d(_0x3eeec0));_0x57e7be['originalMeta']=_0x1a54a5;});}return _0x2823ab;}async['getSheetBlock'](_0x2c7568,_0x48c64c){const _0x121d88=_0x7ce63a,{unitID:_0x45f511,type:_0xf61e8b,blockID:_0x29025a}=_0x48c64c,_0x59ba69=this[_0x121d88(0x287)]()+'/'+_0xf61e8b+_0x121d88(0x30e)+_0x45f511+_0x121d88(0x114)+_0x29025a;return(await this[_0x121d88(0x14f)]['get'](_0x59ba69))['body'];}async[_0x7ce63a(0x234)](_0xf78dc5,_0x71a6f4){const _0x8938b2=_0x7ce63a,{unitID:_0x1418bc,type:_0x337a4b,from:_0x443421,to:_0x40f2b7}=_0x71a6f4,_0x2d7787=this[_0x8938b2(0x287)]()+'/'+_0x337a4b+_0x8938b2(0x30e)+_0x1418bc+_0x8938b2(0x174)+_0x443421+_0x8938b2(0x184)+_0x40f2b7;return(await this[_0x8938b2(0x14f)][_0x8938b2(0x3de)](_0x2d7787))[_0x8938b2(0x3fd)];}[_0x7ce63a(0x190)](){const _0x1186e1=_0x7ce63a;var _0x179718;return(_0x179718=this['_configService'][_0x1186e1(0xf2)](dn))!=null?_0x179718:this[_0x1186e1(0x287)]();}[_0x7ce63a(0x287)](){const _0x8cf6ad=_0x7ce63a;var _0x26cc79;return(_0x26cc79=this[_0x8cf6ad(0x122)][_0x8cf6ad(0xf2)](_n))!=null?_0x26cc79:un;}async['getResourcesRequest'](_0x15c40f,_0x52db63){const _0x162bc9=_0x7ce63a,_0x1e6cb4=_0x162bc9(0x16b)+_0x52db63[_0x162bc9(0x359)]+_0x162bc9(0x30e)+_0x52db63[_0x162bc9(0x179)]+_0x162bc9(0x3e0);return(await this[_0x162bc9(0x14f)][_0x162bc9(0x3de)](_0x1e6cb4,{'params':{'resourceId':JSON[_0x162bc9(0x1dd)](_0x52db63[_0x162bc9(0xf8)])}}))[_0x162bc9(0x3fd)];}[_0x7ce63a(0x37a)](){const _0x3a858b=_0x7ce63a;throw new Error(_0x3a858b(0x1e4));}['saveSheetBlock'](){const _0x4614d3=_0x7ce63a;throw new Error(_0x4614d3(0x1e4));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Pt=So([ds(0x0,_0x5701c0),ds(0x1,_0x525e4b(_0x32382a))],Pt);var po=Object['defineProperty'],vo=Object['getOwnPropertyDescriptor'],Io=(_0x48bce2,_0x477b7d,_0x37c25c,_0x3cd95e)=>{const _0x300f06=_0x7ce63a;for(var _0x38820f=_0x3cd95e>0x1?void 0x0:_0x3cd95e?vo(_0x477b7d,_0x37c25c):_0x477b7d,_0x49eaf6=_0x48bce2[_0x300f06(0xc2)]-0x1,_0x57fb3b;_0x49eaf6>=0x0;_0x49eaf6--)(_0x57fb3b=_0x48bce2[_0x49eaf6])&&(_0x38820f=(_0x3cd95e?_0x57fb3b(_0x477b7d,_0x37c25c,_0x38820f):_0x57fb3b(_0x38820f))||_0x38820f);return _0x3cd95e&&_0x38820f&&po(_0x477b7d,_0x37c25c,_0x38820f),_0x38820f;},De=(_0xdab6f9,_0x16d556)=>(_0x156f39,_0x229a42)=>_0x16d556(_0x156f39,_0x229a42,_0xdab6f9);let Nt=class extends _0x2be683{constructor(_0x25a023,_0x5ac5ae,_0x1314a2,_0x2c3ead,_0x24ca3a){const _0x33b208=_0x7ce63a;super(_0x25a023,_0x5ac5ae,_0x1314a2),this['_transformService']=_0x2c3ead,this[_0x33b208(0x2a9)]=_0x24ca3a;}[_0x7ce63a(0xe9)](_0xf4b057,_0x30bf3e){const _0x2a0a0c=_0x7ce63a,_0x1057f3=this['_getUndoStack'](_0xf4b057);if(_0x1057f3)try{const _0x53f9f2=this[_0x2a0a0c(0x250)](_0x1057f3,_0x30bf3e);this[_0x2a0a0c(0x316)](_0xf4b057,_0x53f9f2);}catch(_0x355266){this[_0x2a0a0c(0x2a9)]['error'](_0x2a0a0c(0x39d),_0x355266),this[_0x2a0a0c(0x11f)](_0xf4b057);}const _0x147413=this[_0x2a0a0c(0x2bd)](_0xf4b057);if(_0x147413)try{const _0x499ac0=this['_transformStack'](_0x147413,_0x30bf3e);this[_0x2a0a0c(0x199)](_0xf4b057,_0x499ac0);}catch(_0x1738c0){this[_0x2a0a0c(0x2a9)][_0x2a0a0c(0x1eb)](_0x1738c0),this['_clearRedo'](_0xf4b057);}}[_0x7ce63a(0x11f)](_0x5a07bc){const _0x2caa11=_0x7ce63a,_0x48b775=this['_getUndoStack'](_0x5a07bc);_0x48b775&&(_0x48b775[_0x2caa11(0xc2)]=0x0,this[_0x2caa11(0x198)]());}[_0x7ce63a(0x10a)](_0x536b81){const _0x18facc=_0x7ce63a,_0x52935c=this[_0x18facc(0x2bd)](_0x536b81);_0x52935c&&(_0x52935c['length']=0x0,this['_updateStatus']());}[_0x7ce63a(0x316)](_0x42d64c,_0x2f6e05){const _0x217df9=_0x7ce63a;this[_0x217df9(0x13c)][_0x217df9(0x2b8)](_0x42d64c,_0x2f6e05),this['_updateStatus']();}[_0x7ce63a(0x199)](_0x5a9d86,_0x220554){const _0x1ec319=_0x7ce63a;this['_redoStacks'][_0x1ec319(0x2b8)](_0x5a9d86,_0x220554),this[_0x1ec319(0x198)]();}[_0x7ce63a(0x250)](_0x1d3a31,_0x5d7c3b){const _0x538b6c=_0x7ce63a,_0x486188=[];let _0x576383=_0x5d7c3b,_0x3d86bb=_0x5d7c3b;for(let _0x1cb9c7=_0x1d3a31[_0x538b6c(0xc2)]-0x1;_0x1cb9c7>=0x0;_0x1cb9c7--){const {unitID:_0x38cd27,undoMutations:_0x5e7c67,redoMutations:_0x1e66f4}=_0x1d3a31[_0x1cb9c7],_0x5d1fc2=this[_0x538b6c(0x346)][_0x538b6c(0x161)](_0x576383,_0x5e7c67),_0x2608f6=this[_0x538b6c(0x346)]['transformMutationsWithChangeset'](_0x3d86bb,_0x1e66f4);if(_0xa7d51f(_0x5d1fc2)||_0xa7d51f(_0x2608f6)){this[_0x538b6c(0x2a9)][_0x538b6c(0x1eb)](_0x538b6c(0x39d),'transformStack\x20failed!',_0x5d1fc2,_0x2608f6);break;}_0x576383=_0x5d1fc2[_0x538b6c(0x172)],_0x3d86bb=_0x2608f6[_0x538b6c(0x172)],_0x486188[_0x538b6c(0xd3)]({'unitID':_0x38cd27,'undoMutations':_0x5d1fc2[_0x538b6c(0x19a)],'redoMutations':_0x2608f6[_0x538b6c(0x19a)]});}return _0x486188['reverse']();}};Nt=Io([De(0x0,_0x10baba),De(0x1,_0x25ecde),De(0x2,_0x1404d2),De(0x3,_0x44c950),De(0x4,_0x2fa9fe)],Nt);class Eo extends _0x24bc67{constructor(){const _0x56f5a8=_0x7ce63a;super(),l(this,_0x56f5a8(0x38e)),this['urlChange$']=_0x374da3(window,_0x56f5a8(0xf9))[_0x56f5a8(0x1f3)](_0x2216fd(this[_0x56f5a8(0x3d1)]),_0x2e17a2(0x1),_0x1f60a3(void 0x0));}[_0x7ce63a(0x34c)](_0x3af518,_0x4b43b2,_0x30a309=!0x1){const _0x19c0e5=_0x7ce63a,_0x329bc7=new URL(window[_0x19c0e5(0x242)][_0x19c0e5(0x26a)]);_0x329bc7[_0x19c0e5(0xb0)][_0x19c0e5(0x2b8)](_0x3af518,_0x4b43b2),_0x30a309?window['history'][_0x19c0e5(0x203)]('','',_0x329bc7[_0x19c0e5(0x305)]()):window[_0x19c0e5(0x25f)][_0x19c0e5(0xf3)]('','',_0x329bc7[_0x19c0e5(0x305)]());}[_0x7ce63a(0xb3)](_0x3ec24d,_0x41bccc=!0x1){const _0x28eaca=_0x7ce63a,_0x2ff429=new URL(window[_0x28eaca(0x242)][_0x28eaca(0x26a)]);_0x2ff429[_0x28eaca(0xb0)][_0x28eaca(0x28a)](_0x3ec24d),_0x41bccc?window['history']['replaceState']('','',_0x2ff429[_0x28eaca(0x305)]()):window['history'][_0x28eaca(0xf3)]('','',_0x2ff429[_0x28eaca(0x305)]());}['getParam'](_0x31979d){const _0x497267=_0x7ce63a;var _0x1422df;return(_0x1422df=new URL(window['location'][_0x497267(0x26a)])[_0x497267(0xb0)][_0x497267(0x3de)](_0x31979d))!=null?_0x1422df:void 0x0;}}const ft=_0x7ce63a(0x3a0),Co=_0x7ce63a(0x324),bo=_0x7ce63a(0x1b8),we=0x6,To=1.5,gt=0x4,Ro=1.5,Oo='rgba(255,\x20255,\x20255,\x200.01)';class ms{constructor(_0x246a9b,_0x25c155,_0x39df83,_0x5e0526){const _0xdacc74=_0x7ce63a;l(this,'_shapes',[]),l(this,'_anchor',null),l(this,_0xdacc74(0x264),null),l(this,_0xdacc74(0xb9),null),l(this,'_hideTimer',null),l(this,_0xdacc74(0x2da),null),(this['_cursor']=_0x246a9b,this['_scene']=_0x25c155,this[_0xdacc74(0xc3)]=_0x39df83,this['_document']=_0x5e0526,this[_0xdacc74(0x2dd)]());}set[_0x7ce63a(0x2a6)](_0x245550){const _0x37012a=_0x7ce63a;_0x245550?(this[_0x37012a(0xb9)]&&this[_0x37012a(0xb9)][_0x37012a(0x2cf)](),this[_0x37012a(0x264)]&&this[_0x37012a(0x264)][_0x37012a(0xfa)]()):(this['_anchorDot']&&this[_0x37012a(0xb9)][_0x37012a(0xfa)](),this[_0x37012a(0x264)]&&this[_0x37012a(0x264)][_0x37012a(0x2cf)]());}[_0x7ce63a(0x3a6)](){const _0x153cf5=_0x7ce63a;for(const _0x1ae873 of this[_0x153cf5(0xc6)])_0x1ae873[_0x153cf5(0x3a6)]();this['_textBubble']&&this[_0x153cf5(0x264)][_0x153cf5(0x3a6)](),this[_0x153cf5(0xb9)]&&this[_0x153cf5(0xb9)]['dispose'](),this[_0x153cf5(0x383)]&&this['_anchor'][_0x153cf5(0x3a6)](),this['_eventUnsubscribe']&&this[_0x153cf5(0x2da)]();}['_render'](){const _0x18d11d=_0x7ce63a;var _0x5c6932;const {_docSkeleton:_0x4a9218,_document:_0x487b9d}=this,{color:_0x24f157,name:_0x332736,ranges:_0x393d39}=this[_0x18d11d(0x290)],_0x521afe=_0x487b9d['getOffsetConfig'](),{docsLeft:_0x3b72d2,docsTop:_0x2ffffa}=_0x521afe,_0x339b0c=new _0x21c241(_0x521afe,_0x4a9218);for(const {startOffset:_0x28920d,endOffset:_0x148efe,collapsed:_0x3213a1,isActive:_0x39fad6}of _0x393d39){const _0x51f540=_0x4a9218['findNodePositionByCharIndex'](_0x28920d),_0x19e632=_0x4a9218[_0x18d11d(0x211)](_0x148efe);if(_0x39fad6){const {contentBoxPointGroup:_0x7015d2}=_0x339b0c[_0x18d11d(0x156)](_0x19e632,_0x19e632);if(_0x7015d2['length']===0x0)continue;this[_0x18d11d(0xcc)](_0x24f157,_0x7015d2,_0x3b72d2,_0x2ffffa,_0x332736),this[_0x18d11d(0x2da)]=this[_0x18d11d(0x16d)]();}if(!_0x3213a1&&_0x51f540&&_0x19e632){if(_0xb78b0c(_0x51f540,_0x19e632)){const _0x2368f8=new _0x5d878b(_0x521afe,_0x4a9218),{pointGroup:_0x172c5a}=(_0x5c6932=_0x2368f8['getRangePointData'](_0x51f540,_0x19e632))!=null?_0x5c6932:{};if(_0x172c5a==null||_0x172c5a[_0x18d11d(0xc2)]===0x0)continue;this[_0x18d11d(0x162)](_0x24f157,_0x172c5a,_0x3b72d2,_0x2ffffa);}else{const {contentBoxPointGroup:_0x3af395}=_0x339b0c[_0x18d11d(0x156)](_0x51f540,_0x19e632);if(_0x3af395[_0x18d11d(0xc2)]===0x0)continue;this[_0x18d11d(0x10e)](_0x24f157,_0x3af395,_0x3b72d2,_0x2ffffa);}}}}['_drawAnchor'](_0x439d28,_0x3cf359,_0x3a3ead,_0x310099,_0xe0f816){const _0x32273c=_0x7ce63a,_0x204f8d=this[_0x32273c(0x2b3)](_0x3cf359),{left:_0x441ec8,top:_0x52e2e1,height:_0x4b06f6}=_0x204f8d,_0x35beb8=this[_0x32273c(0xfc)](),_0x90e53b=Ro/_0x35beb8,_0x553a25=new _0x31ffb5(ft+_0x3121d5['generateRandomId'](we),{'left':_0x441ec8+_0x3a3ead-_0x90e53b,'top':_0x52e2e1+_0x310099,'height':_0x4b06f6,'width':To,'fill':_0x439d28||_0xa3185e(_0x15e24f[_0x32273c(0x300)],0x0),'strokeWidth':_0x90e53b,'stroke':Oo,'evented':!0x0});this['_anchor']=_0x553a25,this[_0x32273c(0x285)][_0x32273c(0x1ef)](_0x553a25,_0x3aa027);const _0x38ce81=new _0x31ffb5(ft+_0x3121d5['generateRandomId'](we),{'left':_0x441ec8+_0x3a3ead-_0x90e53b,'top':_0x52e2e1+_0x310099-gt/0x2,'height':gt,'width':gt,'fill':_0x439d28||_0xa3185e(_0x15e24f[_0x32273c(0x300)],0x0),'strokeWidth':0x0,'stroke':_0x439d28||_0xa3185e(_0x15e24f[_0x32273c(0x300)],0x0),'evented':!0x1});this[_0x32273c(0xb9)]=_0x38ce81,this[_0x32273c(0x285)]['addObject'](_0x38ce81,_0x3aa027);const _0x3f0b35=new nt(ft+_0x3121d5[_0x32273c(0x23a)](we),{'left':_0x441ec8+_0x3a3ead-_0x90e53b,'top':_0x52e2e1+_0x310099-Ue,'text':_0xe0f816,'color':_0x439d28});this['_textBubble']=_0x3f0b35,this[_0x32273c(0x285)]['addObject'](_0x3f0b35,_0x3aa027),this['_hover']=!0x1;}['_handleHover'](){const _0xe317b8=_0x7ce63a,_0xfce34c=this['_anchor'][_0xe317b8(0x313)][_0xe317b8(0x1b9)](()=>{const _0x359e73=_0xe317b8;this[_0x359e73(0x2a6)]=!0x0;}),_0x23cee4=this[_0xe317b8(0x383)]['onPointerLeave$'][_0xe317b8(0x1b9)](()=>{const _0x5055c0=_0xe317b8;this[_0x5055c0(0x338)]&&clearTimeout(this['_hideTimer']),this[_0x5055c0(0x338)]=setTimeout(()=>{const _0x3f668a=_0x5055c0;this[_0x3f668a(0x2a6)]=!0x1;},0x7d0);});return()=>{const _0x3ba03f=_0xe317b8;_0xfce34c[_0x3ba03f(0x259)](),_0x23cee4[_0x3ba03f(0x259)]();};}[_0x7ce63a(0x10e)](_0xc4d838,_0x3dbd6e,_0x548070,_0x218f9c){const _0x24ffd5=_0x7ce63a,_0x2b3f49=new _0x129b1a(_0xc4d838)[_0x24ffd5(0x32f)](0.2)[_0x24ffd5(0x3c7)](),_0x1affc5=new _0xa58679(Co+_0x3121d5['generateRandomId'](we),{'pointsGroup':_0x3dbd6e,'fill':_0x2b3f49||_0xa3185e(_0x15e24f['black'],0.2),'left':_0x548070,'top':_0x218f9c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x24ffd5(0xc6)][_0x24ffd5(0xd3)](_0x1affc5),this[_0x24ffd5(0x285)][_0x24ffd5(0x1ef)](_0x1affc5,_0x3aa027);}[_0x7ce63a(0x162)](_0x383567,_0x1b5ac5,_0x227bd1,_0x57036c){const _0x18a3a1=_0x7ce63a,_0x565807=new _0x129b1a(_0x383567)[_0x18a3a1(0x32f)](0.2)[_0x18a3a1(0x3c7)](),_0x59ba0b=new _0xa58679(bo+_0x3121d5[_0x18a3a1(0x23a)](we),{'pointsGroup':_0x1b5ac5,'fill':_0x565807||_0xa3185e(_0x15e24f[_0x18a3a1(0x300)],0.2),'left':_0x227bd1,'top':_0x57036c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x18a3a1(0xc6)][_0x18a3a1(0xd3)](_0x59ba0b),this['_scene'][_0x18a3a1(0x1ef)](_0x59ba0b,_0x3aa027);}[_0x7ce63a(0x2b3)](_0x3249b1){const _0x4d8a53=_0x3249b1[0x0],_0x280b33=_0x4d8a53[0x0],_0x4cf0f1=_0x4d8a53[0x2],{x:_0x2c88fc,y:_0x1bacfe}=_0x280b33,{x:_0x24b320,y:_0x541266}=_0x4cf0f1;return{'left':_0x2c88fc,'top':_0x1bacfe,'width':_0x24b320-_0x2c88fc,'height':_0x541266-_0x1bacfe};}[_0x7ce63a(0xfc)](){const _0x4c261c=_0x7ce63a,{scaleX:_0x3a8b75,scaleY:_0x34d57f}=this[_0x4c261c(0x285)][_0x4c261c(0x1af)]();return Math[_0x4c261c(0x2ec)](_0x3a8b75,_0x34d57f);}}var Do=Object[_0x7ce63a(0x1cd)],wo=Object[_0x7ce63a(0x323)],Po=(_0x28c2d6,_0x1f19e3,_0x55683c,_0x510390)=>{const _0x4bc928=_0x7ce63a;for(var _0x13f14a=_0x510390>0x1?void 0x0:_0x510390?wo(_0x1f19e3,_0x55683c):_0x1f19e3,_0x384879=_0x28c2d6[_0x4bc928(0xc2)]-0x1,_0x5aa07f;_0x384879>=0x0;_0x384879--)(_0x5aa07f=_0x28c2d6[_0x384879])&&(_0x13f14a=(_0x510390?_0x5aa07f(_0x1f19e3,_0x55683c,_0x13f14a):_0x5aa07f(_0x13f14a))||_0x13f14a);return _0x510390&&_0x13f14a&&Do(_0x1f19e3,_0x55683c,_0x13f14a),_0x13f14a;},Be=(_0x1d85c6,_0x510a0f)=>(_0x46ab50,_0x25bd74)=>_0x510a0f(_0x46ab50,_0x25bd74,_0x1d85c6);let Ye=class extends _0x24bc67{constructor(_0x30a22f,_0x194ccf,_0x12e1dd,_0x5aeb69,_0x3db3cc){const _0x51030b=_0x7ce63a;super(),l(this,_0x51030b(0x1bf),[]),l(this,_0x51030b(0x13a),[]),(this[_0x51030b(0xce)]=_0x30a22f,this[_0x51030b(0xaf)]=_0x194ccf,this[_0x51030b(0x1a0)]=_0x12e1dd,this[_0x51030b(0x270)]=_0x5aeb69,this[_0x51030b(0x134)]=_0x3db3cc,this[_0x51030b(0x11d)]());}[_0x7ce63a(0x11d)](){const _0x12bccb=_0x7ce63a,_0x1e532d=this['_context'][_0x12bccb(0x180)],_0x25031a=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x34c25e([this[_0x12bccb(0x1a0)][_0x12bccb(0x379)](_0x1e532d),this[_0x12bccb(0x134)][_0x12bccb(0x28c)]])[_0x12bccb(0x1f3)](_0x1bc5ac(([_0x240fee,_0x441615])=>({'skeleton':_0x25031a[_0x12bccb(0x318)](),'cursors':[..._0x240fee['values']()]['flatMap'](_0x15c0bb=>({..._0x15c0bb,'color':_0x441615[_0x15c0bb['color']]}))})))[_0x12bccb(0x3bc)](_0xa3478b=>{const _0x2ba1f2=_0x12bccb;if(this[_0x2ba1f2(0x3d9)](),_0xa3478b){const {skeleton:_0x39490e,cursors:_0x497a75}=_0xa3478b;this[_0x2ba1f2(0x17f)](_0x39490e,_0x497a75);}})),this[_0x12bccb(0x106)](),this[_0x12bccb(0x26c)]();}[_0x7ce63a(0x17f)](_0x53c3e1,_0x4af9ed){const _0x310bf7=_0x7ce63a,{scene:_0x5221a1,mainComponent:_0x59a9df}=this['_context'],_0x15c430=_0x4af9ed['map'](_0x3a8b2d=>new ms(_0x3a8b2d,_0x5221a1,_0x53c3e1,_0x59a9df));this['_cursorShapes']=_0x15c430,this[_0x310bf7(0x13a)]=_0x4af9ed;}[_0x7ce63a(0x1ca)](){const _0x218a13=_0x7ce63a;this[_0x218a13(0x3d9)]();const {scene:_0x308d7c,mainComponent:_0x278ca1}=this[_0x218a13(0xce)],_0x180388=this[_0x218a13(0xaf)][_0x218a13(0x318)](),_0x2652c5=this[_0x218a13(0x13a)][_0x218a13(0x30f)](_0x589f4e=>new ms(_0x589f4e,_0x308d7c,_0x180388,_0x278ca1));this[_0x218a13(0x1bf)]=_0x2652c5;}[_0x7ce63a(0x3d9)](){const _0x3f4ce0=_0x7ce63a;this[_0x3f4ce0(0x1bf)][_0x3f4ce0(0x2c2)](_0x3a5022=>_0x3a5022['dispose']()),this[_0x3f4ce0(0x1bf)]=[];}[_0x7ce63a(0x26c)](){const _0x445c90=_0x7ce63a,_0x2c92ac=[_0x2c0f68['id']];this[_0x445c90(0x355)](this['_commandService'][_0x445c90(0xaa)](_0x38abba=>{const _0x38918f=_0x445c90;_0x2c92ac[_0x38918f(0x208)](_0x38abba['id'])&&_0x38abba['params'][_0x38918f(0x180)]===this[_0x38918f(0xce)][_0x38918f(0x180)]&&this[_0x38918f(0x1ca)]();}));}[_0x7ce63a(0x106)](){const _0x1ea892=_0x7ce63a;this[_0x1ea892(0x355)](_0x4ee99d(this[_0x1ea892(0xce)][_0x1ea892(0x32d)][_0x1ea892(0x3df)])[_0x1ea892(0x1f3)](_0x457b7c(_0x8e93f2=>_0x8e93f2[_0x1ea892(0x359)]===_0x106bbc[_0x1ea892(0xa7)]),_0x2658fd(0x10))[_0x1ea892(0x3bc)](()=>{const _0x4c762b=_0x1ea892;this[_0x4c762b(0x1ca)]();}));}};function _0x4d03(){const _0x4aad5a=['sheetId','leaveEvent','memberID','newCsEvent','Undefined','_scene','close','_getAPIPrefix','Ready','_isPermissionRej','delete','APPLY_NON_SEQUENTIAL_REVISION','currentTheme$','_remoteChangesetQueue','onStateChange','_docStateChangeManagerService','_cursor','univer-pro.collaboration-client-socket-service','_updateLocalCursor','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNKNOWN_CMD','startColumn','_online','Error\x20on\x20receiving\x20event','rev','_disableEditing','submit\x20changeset\x20error!','key','awaiting_with_pending','[SyncedState]:\x20received\x20acknowledgement.','sessionStatus$','univer-online-status','c2Prime','_onMessage','getValue','_name','getCurrentSelections','editing\x20status\x20changed\x20to','_hover','_initStatusListener','COMPRESS_MUTATION_APPLY','_logService','createElement','synced','liveShareNewHost','_registerRenderDependencies','pluginName','[CollaborationSessionService]','getFocusedUnit','lineTo','_rescheduleHeartbeat','_getAnchorBounding','_unitOnClients','target','connection\x20error','moveTo','set','save','UNIVER_SLIDE','restore','PERMISSION_REJ','_getRedoStack','getSheetId','UNIVER_COLLABORATION_CLIENT_PLUGIN','currentSkeleton$','LOCAL_CACHE_INTERVAL','forEach','YUUMI_RATE_OVER_LIMIT','AWAITING_WITH_PENDING','_change$','MoveRangeCommandId','getVpScrollXYInfoByPosToVp','with','now','joinEvent','_HTTPService','failed\x20to\x20apply\x20missed\x20changesets!','\x20in\x20_schedule.','onPointerMove$','hide','collabCursorState$','_getMergeRange','saveOfflineData','_checkMissing','code','split','InsertRangeMoveDownCommandId','/role','_sessionStatus$','_getSaveTimeout','_eventUnsubscribe','setWaitCount','gold400','_render','assign','contains','drawWith','clear','onRendered','attrs','_socket','_createInitialStateImpl','8846176KmcqIA','_getSheetObject','FETCH_MISSING','syncEditingCollabCursor','collaboration-session-retry','url(#on-line-single_clip0_910_349)','max','/universer-api/snapshot','UPDATE_PERMISSION_OBJ','LIVESHARE_FETCH_OPERATIONS','unshift','_candidateSocket','ALREADY_EXISTS','addObjects','image/jpg','onload','children','joinRsp','?url=','top','translate(.97)','CONFLICT','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','result','_cursorInfo$','setItem','black','objectType','userID','conflict','DeleteRangeMoveUpCommandId','toString','routeKey','20SxIVTn','_onLocalMutation','/rev/','_syncEditingCollabCursorService','univer-online','UnitEmbedded','online','/unit/','map','getUnitStatus$','APPLY_REJECT','cmd','onPointerEnter$','executeCommand','pending','_substituteUndoStack','onPointerLeave$','getSkeleton','NEW_CHANGESETS','_submitChangeset','OTHER_CLIENTS_EDITING','beginPath','clipPath','_snapshotService','replaceTextRanges','NO_OTHER_CLIENTS_EDITING','parse','_selfUnitIDs','getOwnPropertyDescriptor','collab-text-range-','image/bmp','_joinRoom','fill','onRemoteChangeset','_snapshotServerService','UniverIcon','symbol','_config','engine','LICENSE_DISTRO_REJECTED','setAlpha','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_replayCachedMutations','getCurrentRevForDocument','_getSendChangesetTimeout','getItem','#fff','headers','_transformSelections','_hideTimer','status','ERROR_EXCEED_SIZE','UNDEFINED','_initCloseConn','registerRefRange','_urlService','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','1em','values','_acknowledgedAwaitingChangeset','SUCCUSS','_toggleOffline','isArray','_transformService','_scheduleSaving','_socketMessageSubscription','awaiting','post','YUUMI_URL_COL_OUT_OF_RANGE','setParam','csRejEvent','_updateSubUnitFromURLParams','/universer-api/comb','getTypeOfUnitDisposed$','removeEventListener','_awaitingChangeset','_unitStatus','url(#off-line-single_clip0_910_343)','disposeWithMe','red300','unload','722418gyHKtY','type','_updateState','\x0aAfter:\x20','SUBMIT_CHANGESET','JOINING','M0\x200H16V16H0z','IDLE','[PendingState]:\x20received\x20acknowledgement.','HttpImport','Warning','concat','transformChangesets','change$','getImage','_ws','_roomMembers','{fileID}','_toggleOnline','_localStorageService','collaboration.closeRoom','univer-online-status-icon','_waitCount','objects','params','_sendHeartbeat','fillText','_showConflictNotification','onStarting','deleteCollaborator','pauseCollaboration','getRoom','open$','getCollabCursors$','saveSnapshot','_beforeCloseService','toggleOnline','_saveTaskMap','url','_collaborationPaused','focused$','_clearTimeoutTimer','updatePermissionPoint','_anchor','resend','_startTelemetryCollaborationNewChangeset','APPLY_REVISION_CONFILICT','off-line-single_clip0_910_343','[UniverCollaborationClientPlugin]','_commentService','FAIL','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','state$','_initMergeInterceptor','urlChange$','FETCH_MISS','getActiveSheet','_createSocket','_fetchMissChangesets','updateCollaborator','endRow','JOIN','_id','_clearLocalCache','_scheduleCollaborationTimeoutTimer','_renderManagerService','_schedule','APPLY_PERMISSION_DENIED','size','[CollaborationUndoRedoService]','LIVESHARE_REQUEST_HOST','&source=','collab-text-anchor-','call','UNIVER_DOC','resolve','createCollaborator','_sessions','dispose','roles','list','YUUMI_UNABLE_LOAD_URL','ONLINE','_setupBeforeClosingHandler','telemetry\x20info\x20is\x20not\x20initialized','not_collab','_socketReady','_sendHeartbeatTimer','unitId\x20is\x20not\x20found','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','appendMutation','_colorAssignService','_localCacheService','_color','whenReady','InsertRowCommandId','getUnhiddenWorksheets','BASE64','changesets','NOT_FOUND','subscribe','LICENSE_MAX_UNITS_EXCEEDED','all','HEARTBEAT_INTERVAL','_timeoutTimer','updateMember','evenodd','Steady','encodeURIComponent','url(#$1','LIVESHARE_TERMINATE','toRgbString','/object','workbook','collaboratorID','_session','_retryConnectingTimer','UPDATE_CURSOR','eventID','save\x20fail\x20reason\x20is\x20','_tryReconnect','dispose$','exhaustSavingTask','displayName','getParam','objectActions','getViewport','put','startTime','_removeCollabCursors','append','_state$','getMemberID','text','get','onTransformChange$','/resources','none','defIds','message$','HEARTBEAT_TIMEOUT','selections','_onRemoteRejected','interceptor','_executeRemoteChangeset','UNRECOGNIZED','activeSheet$','_removeClearOtherTimer','_removeRoom','_exhaustRemoteChangesetQueue','UNIVER_PROJECT','/universer-api/file/{fileID}/sign-url','_instanceService','_draw','_getAPIPrefixPath','permission.content','VIEW_MAIN','HttpExport','_onUserLeave','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_updateURLWithCurrentState','updateOfflineData','div','11398116pvDuPq','addEventListener','body','catch','RETRY_CONNECTING_MAX_COUNT','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','random','PERMISSION_DENIED','collaMsg','snapshot','requestParams','OFFLINE','_waitForHeartbeatResponse','subUnitId','close$','encode','_clearScheduledTask','update','_status$','[OfflineState]:\x20received\x20rejection.','_onRemoteChangeset','\x20to\x20','prototype','clearInterval','isActive','COMPRESS_MUTATION_SEND','/universer-api/authz','_hovered','ranges','triggerDblclick','_onCombEvent','_type','_createInitialState','resize','LIVESHARE_OPERATION','_lockTransition','onCommandExecuted','enableSingleActiveInstanceLock','_getSignURL','16xZirdi','className','_docSkeletonManagerService','searchParams','CHANGESET_REJ','_onRefRangeChange','removeParam','_refRangeService','enableAuthServer','RECV','_listenToOnlineEvent','substring','_anchorDot','_notificationService','disableLocalCache','SNAPSHOT_SERVER_URL_KEY','min','HELLO','icon','_colorIndex','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','length','_docSkeleton','_clearCollaborationTimeoutTimer','session.will-retry','_shapes','_initStatusComponent','INTERNAL_ERROR','width','_onConflict','_collabSessionService','_drawAnchor','COMPLETION_FINISHED','_context','_scheduleClearOtherTimer','transformIMECache','_localeService','[CollaborationEntity]','push','state','_replaceFileID','getUnitId','transformSelections','registerOnClose','_tryEnsureSocket','localeService','USERS_LEAVE','_compressMutationService','subunit','onMouseMove','liveShareOperation','status$','_transitionLocked','_heartbeatTimer','_entityInit$','from','currentColor','_onJoinRoomEvent','onRemoteAck','_throwTelemetryCollaborationNewChangeset','transformUndoRedo','369870hCiuTS','incrementRevForDocument','_onRecvEvent','_getUploadFileURL','path','baseRev','_undoRedoService','assignAColorForMemberID','getConfig','pushState','registerRenderModule','_state','unit-cache-','_onRemoteACK','resourceIDs','popstate','show','collabStatus.notCollab','_getScale','replace','getCellPositionByOffset','init','_collaborationController','_listenToOfflineEvent','_collaborationSessionService','_startSheetCollabCursor','enableLocalCache','_retryCount','_initResize','createSocket','registerComponent','on-line-single_clip0_910_349','_clearRedo','_createHandler','sessionStatus','_getCtorByUniverType','_drawTextRange','ERROR_IMAGE_TYPE','_startDocCollabCursor','newValue','asObservable','_disabled','/block/','getDocRanges','reconnect','reduce','YUUMI_SUBSCRIPTION_NOT_FOUND','_event$','_univerInstanceService','SNAPSHOT_INVALID_SNAPSHOT','/-/object/-/batch_allowed','_init','getUnitType','_clearUndo','\x0aCurrent:\x20','_socket$','_configService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','arc','roomMembers$','NOT_COLLAB','getRelativeToViewportCoord','entries','UnitSnapshot','then','svg','roomInfos','PSEUDO_FETCH_MISSING_RESULT','_unitID','closeSession','create','responseType','_incrementRevisionNumber','getUniverSheetInstance','_themeService','#FFF','0\x200\x2016\x2016','MUTATION','setInterval','debug','_cursors','_applyRemoteChangeset','_undoStacks','socketService','[FetchMissState]','conflict.content','PENDING','LEAVE','csAckEvent','DEFAULT_FILE_NAME','filter','deepClone','getCurrent','_unlockTransition','HEADER_MENU','transformByState','collabStatus.fetchMiss','LICENSE_EXPORT_SIZE_EXCEEDED','toggleOffline','unknown','onRemoteRej','_httpService','loadOfflineData','onMissedChangesetFetched','/collaborator','colorChannel1','jiqing500','listCollaborators','getRangePointData','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','refreshPermission','batchAllowed','_scheduleHeartbeat','transformRemoteChangeset','getCurrentUser','textRanges','_sheetTransformSelectionsService','Error','onTransformSelections','transformMutationsWithChangeset','_drawRectRange','action','selection','_docTransformSelectionsService','reject','socket\x20open.','_telemetryInfo','_send','collaborators','/universer-api/snapshot/','measureText','_handleHover','onlineStatusIcon','7rGNlom','_handleJoinEvent','fromCollab','c1Prime','onlineStatusTitle','/fetchmissing?from=','FileId','_revisionService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_queuedRemoteChangesets','unitID','getOwnPropertySymbols','_http','fetchMiss','_clearOtherTimers','collabStatus.synced','_updateCollabCursors','unitId','disposeUnit','shouldCloseConn','UNAUTHENTICATED','&to=','labelPosition','complete','TOO_MANY_REQUESTS','actions','_startCollaboration','_decreaseWaiting','withCredentials','range','Unknown\x20user','_memberService','height','_getSnapshotAPIPrefix','members','_onCursorUpdate','COLLAB_SUBMIT_CHANGESET_URL','startsWith','onTransformIME','readAsDataURL','getSheetBySheetId','_updateStatus','_substituteRedoStack','m2Prime','...','/allowed','apply','getTypeOfUnitAdded$','transformMutation','_collabCursorController','xlink:href','setTimeout','tag','idSuffix','_members','INGEST','getMergeData','fetch_missing','getCollabEntity$','method','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_imageSourceCache','getTime','Univer','getAncestorScale','_socketService','_range','find','onSendChangeset','_transformPreviousActiveRange','_onCursorDelete','RETRY_CONNECTING_INTERVAL','_initUnitPermissionChange','collab-rect-range-','subscribeEvent','_injector','current','_onOffline','onlyLocal','_collabCursorState$','_cursorShapes','_singleActiveUnitService','getInterceptPoints','_registerDependencies','_clearHeartbeatTimer','stopTime','hasOwnProperty','cursorInfo','session.connection-failed','/new_changes','column','_refreshCollabCursors','OnLineSingle','objectID','defineProperty','editingUnit','fillStyle','AWAITING','originalMeta','HEARTBEAT','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/object/','USERS_ENTER','defs','_collaborationTimeoutTimer','_docSyncEditingCollabCursorService','_cachedData','indexOf','socket\x20close','DeleteRangeMoveLeftCommandId','stringify','_entities','_updateLocalCache','[PendingState]:\x20received\x20rejection.','_shouldReportTelemetry','addImageSourceCache','_handleLeaveEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_scheduleTimestamp','RemoveColCommandId','getUnit','_transformUndoredo','awaitingChangeset','_sendingTimer','error','putCollaborators','_ensureSubject','next','addObject','_uiPartsService','session','clearTimeout','pipe','color','/-/object/list','_lastPointer','7812431lSfCWQ','_permissionService','fetching\x20missing\x20changesets\x20from\x20','Starting','title','_setupSubUnitSync','m1Prime','setActiveRange','allowed','getCurrentUnitForType','getUndoRedoMutationParamsCache','patch','replaceState','uni.network.url-service','_docTransformIMECacheService','9xnbPxO','every','includes','CHANGESET_ACK','json','doc.mutation.rich-text-editing','roomMembers','fetchThroughInterceptors','image/jpeg','session.collaboration-timeout','_roomMembers$','findNodePositionByCharIndex','enableOfflineEditing','extend','_loadSheet','UUID','getRenderById','_messageService','ERROR_IMAGE','10QJRlin','fillRule','_handleEvent','send','SHOULD_CLOSE_CONN','1454715fedfJa','_transformIMECache','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','skeleton','[OfflineState]:\x20received\x20changeset.','_getLoginPath','data','collabStatus.conflict','/universer-api/stream/file/upload','removeMember','_loadDoc','name','[DataLoaderController]','requireSession','sheetID','_sheetSkeletonManagerService','_saveCache','UNIVER_SHEET','RemoveRowCommandId','LIVESHARE_NEW_HOST','_handler','SYNCED','fetchMissingChangesets','_backgroundColor','isEditing','CONNECTOR_DATA_TOO_LARGE','UNKNOWN_CODE','_syncEditingCollabCursor','generateRandomId','[CollaborationState]:\x20apply\x20error!','createInstance','registerHTTPInterceptor','cursorInfo$','_telemetryService','isPermissionRej','COMMENT_UPDATE','location','FromArray','MSG_FOR_ERROR','setShapeProps','SNAPSHOT_HAS_BEEN_REMOVED','permission.title','onCommentUpdate','POST','duration','_handleHeartbeatEvent','row','storage','_assignedColors','event$','_transformStack','mutations','file','INVALID_ARGUMENT','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onTransformRemoteChangesetByIMECache','_transformUndoRedoStack','onMissingChangesets','AUTHZ_URL_KEY','unsubscribe','449970UTratB','_onConnectionFailed','has','bottom','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','history','UNIVER_UNKNOWN','onSyncEditingCollabCursor','_transformRemoteChangesetByIMECache','ws://127.0.0.1:8000/universer-api/comb/connect','_textBubble','_pendingMutations','verdancy600','unit','revision','error$','href','compose','_initCommandExecutedListener','_getCurrentRevision','getMember','_onConnectionOpen','_commandService','_initModules','EXCHANGE_SIGN_URL_SERVER_URL_KEY','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_labelPosition','add','setCurrentUser','getCollabEntity','offline','round','string','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','listRoles','getWorkbookSelections','_userManagerService','_commentUpdate$'];_0x4d03=function(){return _0x4aad5a;};return _0x4d03();}Ye=Po([_0x556f1d(_0x2576b6[_0x7ce63a(0x3c3)],Ye),Be(0x1,_0x525e4b(_0x5ed588)),Be(0x2,_0x525e4b(fe)),Be(0x3,_0x25ecde),Be(0x4,_0x525e4b(_0x27cef3))],Ye);var No=Object[_0x7ce63a(0x1cd)],yo=Object['getOwnPropertyDescriptor'],Mo=(_0x3f2765,_0x48419c,_0x9a2e8e,_0x3e23c5)=>{const _0x47e30b=_0x7ce63a;for(var _0x49d89f=_0x3e23c5>0x1?void 0x0:_0x3e23c5?yo(_0x48419c,_0x9a2e8e):_0x48419c,_0x3ac3e7=_0x3f2765[_0x47e30b(0xc2)]-0x1,_0x41ee4d;_0x3ac3e7>=0x0;_0x3ac3e7--)(_0x41ee4d=_0x3f2765[_0x3ac3e7])&&(_0x49d89f=(_0x3e23c5?_0x41ee4d(_0x48419c,_0x9a2e8e,_0x49d89f):_0x41ee4d(_0x49d89f))||_0x49d89f);return _0x3e23c5&&_0x49d89f&&No(_0x48419c,_0x9a2e8e,_0x49d89f),_0x49d89f;},St=(_0x483b91,_0x46d64b)=>(_0x43966d,_0x3d9e11)=>_0x46d64b(_0x43966d,_0x3d9e11,_0x483b91);let st=class{constructor(_0x4ab9b6,_0x345bb7,_0x686a26){const _0x4565fc=_0x7ce63a;this[_0x4565fc(0x122)]=_0x4ab9b6,this[_0x4565fc(0x14f)]=_0x345bb7,this['localeService']=_0x686a26,this[_0x4565fc(0xff)]();}['init'](){const _0xe61bc8=_0x7ce63a;this['_httpService'][_0xe61bc8(0x23d)]({'priority':0x1,'interceptor':(_0x220918,_0xc12c46)=>_0xc12c46(_0x220918)[_0xe61bc8(0x1f3)](_0x66c2b3(async _0x3f95b7=>{const _0x3e8b09=_0xe61bc8,_0x14659d=_0x3f95b7;if(_0x14659d[_0x3e8b09(0x339)]===0x191&&window['confirm'](this[_0x3e8b09(0xda)]['t']('auth.needGotoLoginAlert'))){const _0x10b03f=window[_0x3e8b09(0x3c4)](window[_0x3e8b09(0x242)][_0x3e8b09(0x26a)]);window['location'][_0x3e8b09(0x26a)]=this[_0x3e8b09(0x223)]()+_0x3e8b09(0x2f8)+_0x10b03f;}return _0x14659d;}))});}[_0x7ce63a(0x223)](){const _0x32df46=_0x7ce63a;var _0x4ea719;return(_0x4ea719=this[_0x32df46(0x122)]['getConfig'](wn))!=null?_0x4ea719:Pn;}};st=Mo([St(0x0,_0x5701c0),St(0x1,_0x525e4b(_0x32382a)),St(0x2,_0x525e4b(_0xe0d77a))],st);var Ao=Object[_0x7ce63a(0x1cd)],Uo=Object[_0x7ce63a(0x323)],Lo=(_0x56be2f,_0x458251,_0x5c170e,_0x592244)=>{for(var _0x96d2d5=_0x592244>0x1?void 0x0:_0x592244?Uo(_0x458251,_0x5c170e):_0x458251,_0x2072fb=_0x56be2f['length']-0x1,_0xe85633;_0x2072fb>=0x0;_0x2072fb--)(_0xe85633=_0x56be2f[_0x2072fb])&&(_0x96d2d5=(_0x592244?_0xe85633(_0x458251,_0x5c170e,_0x96d2d5):_0xe85633(_0x96d2d5))||_0x96d2d5);return _0x592244&&_0x96d2d5&&Ao(_0x458251,_0x5c170e,_0x96d2d5),_0x96d2d5;},fs=(_0x429d70,_0xdf9f2e)=>(_0x17dc17,_0x5a59d9)=>_0xdf9f2e(_0x17dc17,_0x5a59d9,_0x429d70);const $o=_0x7ce63a(0x258),jo=_0x7ce63a(0x415);let yt=class extends _0x18124f{constructor(_0x47156f,_0x53bf5d){const _0x457dee=_0x7ce63a;super(),this['_HTTPService']=_0x47156f,this['_configService']=_0x53bf5d,this[_0x457dee(0x38d)]();}[_0x7ce63a(0x38d)](){const _0xcea044=_0x7ce63a,_0x339664=this;this[_0xcea044(0x355)](this[_0xcea044(0x2cb)][_0xcea044(0x23d)]({'priority':0x3e7,'interceptor':_0x130fc3({'isMatch'(_0x334f87){const _0x3b8d32=_0xcea044;var _0x964b35;if(_0x334f87[_0x3b8d32(0x1aa)]===_0x3b8d32(0x249)&&((_0x964b35=_0x334f87['requestParams'])!=null&&_0x964b35[_0x3b8d32(0x3fd)])){const {objectID:_0x2ca893,objectType:_0x148693}=_0x334f87[_0x3b8d32(0x405)][_0x3b8d32(0x3fd)]||{};if(!_0x2ca893||_0x148693===void 0x0)return!0x1;const _0x48202c=_0x339664[_0x3b8d32(0x3f2)]()+'/'+_0x148693+'/object/'+_0x2ca893+_0x3b8d32(0x19c);if(_0x334f87[_0x3b8d32(0x37e)]===_0x48202c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x136949){const _0x92b140=_0xcea044;var _0x555232;return(_0x555232=_0x136949[_0x92b140(0x405)])==null?void 0x0:_0x555232[_0x92b140(0x3fd)];},'mergeParamsToRequest'(_0xaf0f3d,_0x237070){const _0x3cf047=_0xcea044,_0x5fb675=_0x339664[_0x3cf047(0x3f2)]()+_0x3cf047(0x11c),_0x305feb=_0xaf0f3d[_0x3cf047(0x117)]((_0x475461,_0x587411)=>{const _0xe88dd8=_0x3cf047,{unitID:_0x42e8d0,objectID:_0x1d1cf2,objectType:_0x4b9c01,actions:_0x147c6a}=_0x587411;return _0x475461[_0x42e8d0]||(_0x475461[_0x42e8d0]={}),_0x475461[_0x42e8d0][_0x1d1cf2]||(_0x475461[_0x42e8d0][_0x1d1cf2]={'objectID':_0x1d1cf2,'objectType':_0x4b9c01,'actions':[]}),_0x475461[_0x42e8d0][_0x1d1cf2][_0xe88dd8(0x188)][_0xe88dd8(0xd3)](..._0x147c6a),_0x475461;},{}),_0x4de886=[];for(const _0x1becb2 in _0x305feb)for(const _0x1e86f5 in _0x305feb[_0x1becb2]){const {actions:_0x3c7b5d,objectType:_0x2ade9e}=_0x305feb[_0x1becb2][_0x1e86f5],_0x41a4b6=[...new Set(_0x3c7b5d)];_0x4de886[_0x3cf047(0xd3)]({'unitID':_0x1becb2,'objectID':_0x1e86f5,'objectType':_0x2ade9e,'actions':_0x41a4b6});}return new _0x2a1854(_0x3cf047(0x249),_0x5fb675,{'headers':_0x237070[_0x3cf047(0x336)],'withCredentials':_0x237070[_0x3cf047(0x18b)],'responseType':_0x237070[_0x3cf047(0x131)],'body':{'requests':_0x4de886}});}},{'distributeResult'(_0x3f23d2,_0x2516eb){const _0xeb2334=_0xcea044,{objectActions:_0x1b125c}=_0x3f23d2;return _0x2516eb[_0xeb2334(0x30f)](_0x121a24=>{const _0x4c4092=_0xeb2334,{unitID:_0x1abf2b,objectID:_0x32c18f,actions:_0x243f93}=_0x121a24,_0x3cf8e8=_0x1b125c[_0x4c4092(0x1b2)](_0x1f2ecf=>_0x1f2ecf[_0x4c4092(0x179)]===_0x1abf2b&&_0x1f2ecf['objectID']===_0x32c18f),_0x53de92=_0x243f93[_0x4c4092(0x30f)](_0x4bb9ae=>_0x3cf8e8==null?void 0x0:_0x3cf8e8[_0x4c4092(0x188)][_0x4c4092(0x1b2)](_0x1808af=>_0x1808af[_0x4c4092(0x163)]===_0x4bb9ae))[_0x4c4092(0x144)](_0x1287a6=>!!_0x1287a6);return{'config':_0x121a24,'result':{'actions':_0x53de92,'error':_0x3f23d2[_0x4c4092(0x1eb)]}};});}})}));}[_0x7ce63a(0x3f2)](){const _0x4d2f36=_0x7ce63a;var _0x33d80f;return(_0x33d80f=this[_0x4d2f36(0x122)][_0x4d2f36(0xf2)]($o))!=null?_0x33d80f:jo;}async[_0x7ce63a(0x130)](_0x3980b7){const _0x231c7f=_0x7ce63a,_0x55ed96=this['_getAPIPrefixPath']()+'/'+_0x3980b7[_0x231c7f(0x301)]+_0x231c7f(0x3c8);return(await this[_0x231c7f(0x2cb)][_0x231c7f(0x34a)](_0x55ed96,{'body':_0x3980b7}))[_0x231c7f(0x3fd)][_0x231c7f(0x1cc)]||'';}async[_0x7ce63a(0x3a8)](_0x4c97e8){const _0x225209=_0x7ce63a,_0x4785b4=this['_getAPIPrefixPath']()+_0x225209(0x1f5);return(await this[_0x225209(0x2cb)][_0x225209(0x34a)](_0x4785b4,{'body':_0x4c97e8}))[_0x225209(0x3fd)][_0x225209(0x36f)];}async[_0x7ce63a(0x40c)](_0x2c776a){const _0x57953f=_0x7ce63a,_0x2a2c63=this[_0x57953f(0x3f2)]()+'/'+_0x2c776a[_0x57953f(0x301)]+_0x57953f(0x1d4)+_0x2c776a['objectID'];await this['_HTTPService'][_0x57953f(0x3d7)](_0x2a2c63,{'body':_0x2c776a});}async[_0x7ce63a(0x1ff)](_0xaa4b99){const _0x4d1430=_0x7ce63a,_0x18b3c8=this[_0x4d1430(0x3f2)]()+'/'+_0xaa4b99[_0x4d1430(0x301)]+_0x4d1430(0x1d4)+_0xaa4b99[_0x4d1430(0x1cc)]+'/allowed';return(await this[_0x4d1430(0x2cb)]['post'](_0x18b3c8,{'body':_0xaa4b99}))[_0x4d1430(0x3fd)][_0x4d1430(0x188)];}async[_0x7ce63a(0x159)](_0x1bb07a){const _0x56c40b=_0x7ce63a,_0x188a63=this[_0x56c40b(0x3f2)]()+_0x56c40b(0x11c);return(await this['_HTTPService'][_0x56c40b(0x34a)](_0x188a63,{'body':{'requests':_0x1bb07a}}))[_0x56c40b(0x3fd)][_0x56c40b(0x3d5)];}async[_0x7ce63a(0x27c)](_0x4acb57){const _0x570cfd=_0x7ce63a,_0x39b227=this[_0x570cfd(0x3f2)]()+'/'+_0x4acb57[_0x570cfd(0x301)]+_0x570cfd(0x2d7),_0x3bc685=await this['_HTTPService']['post'](_0x39b227,{'body':_0x4acb57});return{'roles':_0x3bc685[_0x570cfd(0x3fd)][_0x570cfd(0x3a7)],'actions':_0x3bc685[_0x570cfd(0x3fd)][_0x570cfd(0x188)]};}async[_0x7ce63a(0x375)](_0x36830f){const _0x3399eb=_0x7ce63a,_0x239cdf=this[_0x3399eb(0x3f2)]()+'/collaborator';await this[_0x3399eb(0x2cb)]['delete'](_0x239cdf,{'params':{'collaboratorID':_0x36830f[_0x3399eb(0x3ca)],'objectID':_0x36830f[_0x3399eb(0x1cc)],'unitID':_0x36830f['unitID']}});}async[_0x7ce63a(0x393)](_0xdf14b){const _0x1e756b=_0x7ce63a,_0xc7406b=this[_0x1e756b(0x3f2)]()+_0x1e756b(0x152);await this['_HTTPService'][_0x1e756b(0x202)](_0xc7406b,{'body':_0xdf14b});}async[_0x7ce63a(0x3a4)](_0x4abd95){const _0x26e36f=_0x7ce63a,_0xf3479b=this[_0x26e36f(0x3f2)]()+_0x26e36f(0x152);await this[_0x26e36f(0x2cb)][_0x26e36f(0x34a)](_0xf3479b,{'body':_0x4abd95});}async[_0x7ce63a(0x155)](_0x4e6ee4){const _0x16dc5a=_0x7ce63a,_0x515bfc=this[_0x16dc5a(0x3f2)]()+_0x16dc5a(0x152);return(await this[_0x16dc5a(0x2cb)][_0x16dc5a(0x3de)](_0x515bfc,{'params':{'objectID':_0x4e6ee4[_0x16dc5a(0x1cc)],'unitID':_0x4e6ee4['unitID']}}))[_0x16dc5a(0x3fd)][_0x16dc5a(0x16a)];}async[_0x7ce63a(0x1ec)](_0x3efeeb){const _0xc9f09a=_0x7ce63a,_0x11c169=this[_0xc9f09a(0x3f2)]()+_0xc9f09a(0x152);await this['_HTTPService'][_0xc9f09a(0x3d7)](_0x11c169,{'body':_0x3efeeb});}};yt=Lo([fs(0x0,_0x525e4b(_0x32382a)),fs(0x1,_0x525e4b(_0x5701c0))],yt);var xo=Object[_0x7ce63a(0x1cd)],Ho=Object[_0x7ce63a(0x323)],ko=(_0x918135,_0xaa31bd,_0x58dced,_0x6a7088)=>{const _0x2963ef=_0x7ce63a;for(var _0x4dabad=_0x6a7088>0x1?void 0x0:_0x6a7088?Ho(_0xaa31bd,_0x58dced):_0xaa31bd,_0x54a4b7=_0x918135[_0x2963ef(0xc2)]-0x1,_0x4ff8b2;_0x54a4b7>=0x0;_0x54a4b7--)(_0x4ff8b2=_0x918135[_0x54a4b7])&&(_0x4dabad=(_0x6a7088?_0x4ff8b2(_0xaa31bd,_0x58dced,_0x4dabad):_0x4ff8b2(_0x4dabad))||_0x4dabad);return _0x6a7088&&_0x4dabad&&xo(_0xaa31bd,_0x58dced,_0x4dabad),_0x4dabad;},pt=(_0x51143d,_0x3950d0)=>(_0x1757d9,_0x4d7649)=>_0x3950d0(_0x1757d9,_0x4d7649,_0x51143d);const Bo=['image/png',_0x7ce63a(0x20e),_0x7ce63a(0x2f4),'image/gif',_0x7ce63a(0x325)],Vo=0x5*0x400*0x400,Fo=_0x7ce63a(0x27b),Wo=_0x7ce63a(0x226),Go=_0x7ce63a(0x272),Yo=_0x7ce63a(0x3ef);let Mt=class{constructor(_0x102cbe,_0x5bfa5b,_0x59cc28){const _0x28a9ac=_0x7ce63a;l(this,_0x28a9ac(0x36e),0x0),l(this,_0x28a9ac(0x2c5),new _0x41ce8d()),l(this,_0x28a9ac(0x365),this[_0x28a9ac(0x2c5)]),l(this,_0x28a9ac(0x1ac),new Map()),(this[_0x28a9ac(0x14f)]=_0x102cbe,this[_0x28a9ac(0x122)]=_0x5bfa5b,this[_0x28a9ac(0x11a)]=_0x59cc28);}[_0x7ce63a(0x2db)](_0x193cff){const _0x55d6ce=_0x7ce63a;this['_waitCount']=_0x193cff,this[_0x55d6ce(0x2c5)]['next'](_0x193cff);}['getImageSourceCache'](_0xbcd676,_0x57480b){const _0x5d7de3=_0x7ce63a;if(_0x57480b===_0x37a65a[_0x5d7de3(0x3b9)]){const _0xbf92a5=new Image();return _0xbf92a5['src']=_0xbcd676,_0xbf92a5;}return this[_0x5d7de3(0x1ac)]['get'](_0xbcd676);}[_0x7ce63a(0x1e2)](_0x3738e4,_0x52a35c,_0xc2ff5b){const _0x4bc568=_0x7ce63a;_0x52a35c===_0x37a65a[_0x4bc568(0x3b9)]||_0xc2ff5b==null||this[_0x4bc568(0x1ac)][_0x4bc568(0x2b8)](_0x3738e4,_0xc2ff5b);}async[_0x7ce63a(0x366)](_0x1a3998){const _0x2946a3=_0x7ce63a;try{const _0x2d6c44=this['_replaceFileID'](this[_0x2946a3(0xac)](),''+_0x1a3998),_0x4f82f5=(await this[_0x2946a3(0x14f)][_0x2946a3(0x3de)](_0x2d6c44))['body'];return _0x4f82f5['error']&&_0x4f82f5[_0x2946a3(0x1eb)][_0x2946a3(0x2d4)]===Ms['OK']?Promise[_0x2946a3(0x3a3)](_0x4f82f5[_0x2946a3(0x37e)]):Promise[_0x2946a3(0x166)](_0x4f82f5[_0x2946a3(0x1eb)]);}catch(_0x119a35){return Promise['reject'](_0x119a35);}}async['saveImage'](_0x51b437){const _0x20caaa=_0x7ce63a;let _0x3c5328='';if(!Bo[_0x20caaa(0x208)](_0x51b437['type']))return this['_decreaseWaiting'](),Promise[_0x20caaa(0x166)](new Error(_0x4a3c35[_0x20caaa(0x10f)]));if(_0x51b437['size']>Vo)return this[_0x20caaa(0x18a)](),Promise[_0x20caaa(0x166)](new Error(_0x4a3c35[_0x20caaa(0x33a)]));try{const _0xaa4f78=new FormData();_0xaa4f78[_0x20caaa(0x3da)](_0x20caaa(0x252),_0x51b437);const _0x2c740e=this['_univerInstanceService'][_0x20caaa(0x2b0)](),_0x72b1fb=_0x2c740e==null?void 0x0:_0x2c740e['getUnitId']();if(!_0x72b1fb)throw new Error(_0x20caaa(0x3b0));const _0x25d879=this['_getUploadFileURL']()+'?size='+_0x51b437[_0x20caaa(0x39c)][_0x20caaa(0x305)]()+_0x20caaa(0x39f)+As['UnitEmbedded']+'&assign='+encodeURIComponent(_0x72b1fb),_0x4f9707=await(await fetch(_0x25d879,{'method':_0x20caaa(0x249),'body':_0xaa4f78}))[_0x20caaa(0x20a)]();if(typeof _0x4f9707[_0x20caaa(0x175)]!=_0x20caaa(0x27a))return this[_0x20caaa(0x18a)](),Promise[_0x20caaa(0x166)](new Error(_0x4a3c35[_0x20caaa(0x218)]));_0x3c5328=_0x4f9707['FileId'];}catch{return this[_0x20caaa(0x18a)](),Promise[_0x20caaa(0x166)](new Error(_0x4a3c35[_0x20caaa(0x218)]));}return new Promise((_0x11b177,_0xdfd83c)=>{const _0x116952=_0x20caaa,_0x15c26b=new FileReader();_0x15c26b[_0x116952(0x196)](_0x51b437),_0x15c26b[_0x116952(0x2f5)]=_0x3824c3=>{const _0x65850f=_0x116952;var _0x478b7a;const _0x1083a0=(_0x478b7a=_0x3824c3[_0x65850f(0x2b5)])==null?void 0x0:_0x478b7a[_0x65850f(0x2fd)];if(_0x1083a0==null){this['_decreaseWaiting'](),_0xdfd83c(new Error(_0x4a3c35['ERROR_IMAGE']));return;}const _0x2c3885=_0x3121d5[_0x65850f(0x23a)](0x6);_0x11b177({'imageId':_0x2c3885,'imageSourceType':_0x37a65a[_0x65850f(0x215)],'source':_0x3c5328,'base64Cache':_0x1083a0,'status':_0x4a3c35[_0x65850f(0x343)]}),this[_0x65850f(0x18a)]();};});}[_0x7ce63a(0xed)](){const _0x511754=_0x7ce63a;var _0x3e1972;return(_0x3e1972=this[_0x511754(0x122)]['getConfig'](Fo))!=null?_0x3e1972:Wo;}[_0x7ce63a(0xac)](){const _0x53aa3a=_0x7ce63a;var _0x357dc1;return(_0x357dc1=this['_configService'][_0x53aa3a(0xf2)](Go))!=null?_0x357dc1:Yo;}[_0x7ce63a(0xd5)](_0x2aedd3,_0x5bcd1a){const _0xffccf8=_0x7ce63a;return _0x2aedd3[_0xffccf8(0xfd)](_0xffccf8(0x369),_0x5bcd1a);}[_0x7ce63a(0x18a)](){const _0x4a403b=_0x7ce63a;this['_waitCount']-=0x1,this[_0x4a403b(0x2c5)][_0x4a403b(0x1ee)](this[_0x4a403b(0x36e)]);}};Mt=ko([pt(0x0,_0x525e4b(_0x32382a)),pt(0x1,_0x5701c0),pt(0x2,_0x525e4b(_0x10baba))],Mt);var Ko=Object[_0x7ce63a(0x1cd)],Xo=Object[_0x7ce63a(0x323)],Jo=(_0x312f6a,_0x45f9d6,_0x572933,_0xa81b11)=>{for(var _0x2bfba7=_0xa81b11>0x1?void 0x0:_0xa81b11?Xo(_0x45f9d6,_0x572933):_0x45f9d6,_0x2551d6=_0x312f6a['length']-0x1,_0x1eb835;_0x2551d6>=0x0;_0x2551d6--)(_0x1eb835=_0x312f6a[_0x2551d6])&&(_0x2bfba7=(_0xa81b11?_0x1eb835(_0x45f9d6,_0x572933,_0x2bfba7):_0x1eb835(_0x2bfba7))||_0x2bfba7);return _0xa81b11&&_0x2bfba7&&Ko(_0x45f9d6,_0x572933,_0x2bfba7),_0x2bfba7;},Pe=(_0x416b55,_0xca87d0)=>(_0x1816ea,_0x404fe6)=>_0xca87d0(_0x1816ea,_0x404fe6,_0x416b55);let Ke=class extends _0x24bc67{constructor(_0x2f0bf5,_0x125ae9,_0x373c62,_0xfdc0f3,_0x179195){const _0x230b52=_0x7ce63a;super(),this[_0x230b52(0x1ba)]=_0x2f0bf5,this[_0x230b52(0x11a)]=_0x125ae9,this[_0x230b52(0x1f8)]=_0x373c62,this[_0x230b52(0x102)]=_0xfdc0f3,this[_0x230b52(0xd1)]=_0x179195,this[_0x230b52(0x1b7)](),this[_0x230b52(0x33c)]();}[_0x7ce63a(0x33c)](){const _0x1976d9=_0x7ce63a,_0x494253=async _0x2b351f=>{const _0x5ec773=_0x2011;(await this[_0x5ec773(0x102)][_0x5ec773(0x22b)](_0x2b351f))[_0x5ec773(0x24f)][_0x5ec773(0x1f3)](_0x457b7c(_0x396c30=>_0x396c30[_0x5ec773(0x3ce)]===_0x57e9e5[_0x5ec773(0x21d)]),_0xf88d9b(this[_0x5ec773(0x3d1)]))[_0x5ec773(0x3bc)](_0x43cb54=>{const _0x41f613=_0x5ec773,_0x35be84=_0x43cb54,{reason:_0x33952c}=_0x35be84[_0x41f613(0x224)];this[_0x41f613(0x1ba)][_0x41f613(0x3de)](_0x508f45)[_0x41f613(0xfa)]({'type':_0x311bf7['Error'],'content':this[_0x41f613(0xd1)]['t'](_0x41f613(0x36c))+'('+_0x33952c+')'}),this[_0x41f613(0x1f8)]['updatePermissionPoint'](new _0xd4e52(_0x2b351f)['id'],!0x1),this['_collaborationSessionService'][_0x41f613(0x12f)](_0x2b351f);});};_0x11132a(this['_univerInstanceService'][_0x1976d9(0x19e)](_0x4b8c1e['UNIVER_SHEET']),this[_0x1976d9(0x11a)][_0x1976d9(0x19e)](_0x4b8c1e[_0x1976d9(0x3a2)]))[_0x1976d9(0x1f3)](_0x1bc5ac(_0x566b81=>_0x566b81[_0x1976d9(0xd6)]()),_0x457b7c(_0x233a3e=>!_0x1be156(_0x233a3e)),_0xf88d9b(this[_0x1976d9(0x3d1)]))[_0x1976d9(0x3bc)](_0x767587=>{_0x494253(_0x767587);});}['_initUnitPermissionChange'](){const _0x2ffe32=_0x7ce63a,_0x529216=async _0x1e7713=>{const _0x34c42a=_0x2011;(await this[_0x34c42a(0x102)]['requireSession'](_0x1e7713))['event$'][_0x34c42a(0x1f3)](_0x457b7c(_0x7d97b=>_0x7d97b[_0x34c42a(0x3ce)]===_0x57e9e5[_0x34c42a(0x2ee)]),_0xf88d9b(this['dispose$']))[_0x34c42a(0x3bc)](_0x490109=>{const _0x734edf=_0x34c42a,_0x5d8a98=_0x490109,{objectId:_0xb86b60}=_0x5d8a98[_0x734edf(0x224)],_0x341614=this[_0x734edf(0x1ba)][_0x734edf(0x3de)](_0x51224e);_0xb86b60===_0x1e7713?_0x341614['initWorkbookPermissionChange'](_0x1e7713):_0x341614[_0x734edf(0x158)](_0x1e7713,_0xb86b60);});};_0x11132a(this[_0x2ffe32(0x11a)][_0x2ffe32(0x19e)](_0x4b8c1e[_0x2ffe32(0x22f)]),this[_0x2ffe32(0x11a)]['getTypeOfUnitAdded$'](_0x4b8c1e['UNIVER_DOC']))[_0x2ffe32(0x1f3)](_0x1bc5ac(_0x3e406a=>_0x3e406a[_0x2ffe32(0xd6)]()),_0x457b7c(_0x320529=>!_0x1be156(_0x320529)),_0xf88d9b(this['dispose$']))[_0x2ffe32(0x3bc)](_0x4e156d=>{_0x529216(_0x4e156d);});}};Ke=Jo([_0x556f1d(_0x2576b6[_0x7ce63a(0x1fa)],Ke),Pe(0x0,_0x525e4b(_0x2386f6)),Pe(0x1,_0x10baba),Pe(0x2,_0x58d6c0),Pe(0x3,_0x525e4b(ae)),Pe(0x4,_0x525e4b(_0xe0d77a))],Ke);const zo='collaboration-client.config';var Fs=Object['defineProperty'],qo=Object[_0x7ce63a(0x323)],Zo=(_0x314dd4,_0x10658c,_0x240bb8)=>_0x10658c in _0x314dd4?Fs(_0x314dd4,_0x10658c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240bb8}):_0x314dd4[_0x10658c]=_0x240bb8,Qo=(_0x3cec2b,_0x29f37c,_0x556292,_0x34f327)=>{const _0x40734f=_0x7ce63a;for(var _0x178e53=_0x34f327>0x1?void 0x0:_0x34f327?qo(_0x29f37c,_0x556292):_0x29f37c,_0x474970=_0x3cec2b[_0x40734f(0xc2)]-0x1,_0x52171d;_0x474970>=0x0;_0x474970--)(_0x52171d=_0x3cec2b[_0x474970])&&(_0x178e53=(_0x34f327?_0x52171d(_0x29f37c,_0x556292,_0x178e53):_0x52171d(_0x178e53))||_0x178e53);return _0x34f327&&_0x178e53&&Fs(_0x29f37c,_0x556292,_0x178e53),_0x178e53;},Ve=(_0xe138cc,_0x2bbc7d)=>(_0x2ff621,_0x4a71e7)=>_0x2bbc7d(_0x2ff621,_0x4a71e7,_0xe138cc),ea=(_0x3471c0,_0x19e467,_0x4ee104)=>Zo(_0x3471c0,_0x19e467+'',_0x4ee104);const ta=_0x7ce63a(0x2bf);let At=class extends _0x3204e3{constructor(_0x3307f2={},_0x14baa5,_0x488b46,_0x47f471,_0x3a8cd4){const _0x2011d1=_0x7ce63a;super(),this[_0x2011d1(0x32c)]=_0x3307f2,this[_0x2011d1(0x2a9)]=_0x14baa5,this[_0x2011d1(0x399)]=_0x488b46,this[_0x2011d1(0x1ba)]=_0x47f471,this[_0x2011d1(0x122)]=_0x3a8cd4;const {..._0x35052c}=this[_0x2011d1(0x32c)];this[_0x2011d1(0x122)]['setConfig'](zo,_0x35052c);}[_0x7ce63a(0x374)](){const _0x46cf15=_0x7ce63a;this[_0x46cf15(0x1c2)]();}[_0x7ce63a(0x2e2)](){const _0x1233c6=_0x7ce63a;this[_0x1233c6(0x2ad)]();}['_registerDependencies'](){const _0x14a136=_0x7ce63a;var _0x9d6601,_0x4d666b,_0x48315d,_0x2b6852;this['_injector'][_0x14a136(0x25c)](_0x479a29)&&this['_logService'][_0x14a136(0x1eb)](_0x14a136(0x388),_0x14a136(0x177));let _0xc44fec=[[_0x479a29,{'useClass':Nt}],[ae],[Ft],[_0x32382a],[Vs,{'useClass':Eo}],[oe],[D],[_0x221a07],[Qe],[et],[Ze],[Bt],[st],[Ls],[Ke],[Us,{'useClass':(_0x4d666b=(_0x9d6601=this['_config'])==null?void 0x0:_0x9d6601[_0x14a136(0x13d)])!=null?_0x4d666b:Ct}],[_0x1255a8,{'useClass':_0x29b7a3}],[_0x526425,{'useClass':Pt}],[_0x658e22,{'useClass':yt}],[_0x583b19,{'useClass':Mt}],[Ae],[We],[ye],[Ge],[fe]];(_0x48315d=this[_0x14a136(0x32c)])!=null&&_0x48315d[_0x14a136(0xab)]&&_0xc44fec[_0x14a136(0xd3)]([it,{'useClass':nr}]),_0xc44fec=_0x51ced9(_0xc44fec,(_0x2b6852=this[_0x14a136(0x32c)])==null?void 0x0:_0x2b6852['override']),_0xc44fec['forEach'](_0x21631c=>this[_0x14a136(0x1ba)][_0x14a136(0x275)](_0x21631c)),this[_0x14a136(0x271)]();}[_0x7ce63a(0x2ad)](){const _0x46b593=_0x7ce63a;this['disposeWithMe'](this['_renderManagerService'][_0x46b593(0xf4)](_0x4b8c1e[_0x46b593(0x3a2)],[Ye])),this[_0x46b593(0x355)](this['_renderManagerService'][_0x46b593(0xf4)](_0x4b8c1e[_0x46b593(0x22f)],[wt]));}[_0x7ce63a(0x271)](){const _0x4b8f26=_0x7ce63a;var _0x4e7ee3,_0x3379f7;this[_0x4b8f26(0x1ba)][_0x4b8f26(0x3de)](_0x32382a)[_0x4b8f26(0x23d)]({'priority':0x14,'interceptor':_0xc2e46({'maxParallel':0x6})}),(_0x4e7ee3=this[_0x4b8f26(0x32c)])!=null&&_0x4e7ee3[_0x4b8f26(0x212)]||this['_injector']['get'](D)[_0x4b8f26(0xbb)](),(_0x3379f7=this[_0x4b8f26(0x32c)])!=null&&_0x3379f7[_0x4b8f26(0xb5)]&&this[_0x4b8f26(0x1ba)]['get'](st),this[_0x4b8f26(0x1ba)][_0x4b8f26(0x3de)](Ae),this[_0x4b8f26(0x1ba)][_0x4b8f26(0x25c)](ye)&&this[_0x4b8f26(0x1ba)]['get'](ye);}};ea(At,_0x7ce63a(0x2ae),ta),At=Qo([_0x552df9(_0x2cadd7),Ve(0x1,_0x2fa9fe),Ve(0x2,_0x57b232),Ve(0x3,_0x525e4b(_0x2386f6)),Ve(0x4,_0x5701c0)],At);export{$o as AUTHZ_URL_KEY,yt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,gn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,bt as CollaborationSession,ae as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,to as CollaborationStatusDisplay,Ls as CommentService,We as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,pn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Us as ICollaborationSocketService,Vs as IURLService,Mt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,In as RETRY_CONNECTING_INTERVAL_KEY,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,mn as SEND_CHANGESET_TIMEOUT_KEY,_n as SNAPSHOT_SERVER_URL_KEY,dn as SNAPSHOT_URL_KEY,W as SessionStatus,jr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Pt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,Eo as WebURLService,Nn as deserializeToCombResponse,yn as serializeCombRequest};
|
1
|
+
const _0x2e5b1c=_0x5851;(function(_0x5cc580,_0x247df4){const _0xe9c2e9=_0x5851,_0x298806=_0x5cc580();while(!![]){try{const _0x3fab4f=parseInt(_0xe9c2e9(0x3d8))/0x1*(parseInt(_0xe9c2e9(0x23c))/0x2)+-parseInt(_0xe9c2e9(0x419))/0x3*(parseInt(_0xe9c2e9(0x208))/0x4)+-parseInt(_0xe9c2e9(0x442))/0x5+parseInt(_0xe9c2e9(0x2dc))/0x6+parseInt(_0xe9c2e9(0x152))/0x7*(-parseInt(_0xe9c2e9(0x37f))/0x8)+-parseInt(_0xe9c2e9(0x1fa))/0x9*(-parseInt(_0xe9c2e9(0x325))/0xa)+parseInt(_0xe9c2e9(0x28a))/0xb;if(_0x3fab4f===_0x247df4)break;else _0x298806['push'](_0x298806['shift']());}catch(_0x26c6de){_0x298806['push'](_0x298806['shift']());}}}(_0x3164,0xe75fc));var Js=Object[_0x2e5b1c(0x2de)],zs=(_0x31ed66,_0x16ac71,_0x1b3413)=>_0x16ac71 in _0x31ed66?Js(_0x31ed66,_0x16ac71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b3413}):_0x31ed66[_0x16ac71]=_0x1b3413,l=(_0x51919c,_0x24a7e3,_0x4d8617)=>zs(_0x51919c,typeof _0x24a7e3!=_0x2e5b1c(0x307)?_0x24a7e3+'':_0x24a7e3,_0x4d8617);function _0x3164(){const _0x329218=['onPointerEnter$','_handleEvent','action','className','_roomMembers','dispose$','_undoRedoService','_renderManagerService','_send','_updateLocalCache','_getMergeRange','subscribe','_collaborationController','getResourcesRequest','leaveEvent','AWAITING','resend','VIEW_MAIN','subscribeEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','syncEditingCollabCursor','_toggleOffline','_transformService','labelPosition','onStarting','_handleHover','onPointerLeave$','onTransformSelections','column','[OfflineState]:\x20received\x20rejection.','stringify','1nbyGaW','_beforeCloseService','_startSheetCollabCursor','...','_drawAnchor','JOINING','APPLY_REVISION_CONFILICT','/allowed','USERS_ENTER','ERROR_EXCEED_SIZE','enableSingleActiveInstanceLock','INVALID_ARGUMENT','offline','toggleOffline','prototype','isActive','use','RECV','onRemoteChangeset','_shapes','_state$','_notificationService','HttpImport','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','NO_OTHER_CLIENTS_EDITING','_collabSessionService','on-line-single','makeDirty','font','pushState','DeleteRangeMoveLeftCommandId','subUnitId','PSEUDO_FETCH_MISSING_RESULT','_cachedData','_onJoinRoomEvent','transform','getRelativeToViewportCoord','collab-client.tooltip.reconnect','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','replaceTextRanges','registerRefRange','CHANGESET_REVISION_CONFILICT','getParam','_onOffline','drawWith','toggleOnline','triggerDblclick','every','_transformPreviousActiveRange','getWorkbookSelections','defIds','_remoteChangesetQueue','append','_pendingMutations','close','_ensureSubject','_config','pluginName','_hovered','DeleteRangeMoveUpCommandId','Unknown\x20user','appendMutation','ERROR_IMAGE','storage','_telemetryInfo','38259pDKupM','method','_submitChangeset','getOwnPropertyDescriptor','_telemetryService','LICENSE_IMPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','gold400','SYNCED','current','_HTTPService','hide','Warning','getUnitId','awaiting','_collabCursorState$','univer-online-status','parse','_onRefRangeChange','setShapeProps','off-line-single','\x0aCurrent:\x20','_init','resolve','_docSkeletonManagerService','CONNECTOR_DATA_TOO_LARGE','replaceState','isArray','_onRemoteChangeset','_transformUndoRedoStack','connection\x20error','/universer-api/snapshot','_name','_docSkeleton','_clearOtherTimers','\x20in\x20_schedule.','LICENSE_DISTRO_REJECTED','m1Prime','textRanges','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_listenToOfflineEvent','5659315GdpOtW','YUUMI_SUBSCRIPTION_NOT_FOUND','image/gif','/universer-api/file/{fileID}/sign-url','apply','complete','_awaitingChangeset','getViewport','_commentUpdate$','_collabCursorController','isPermissionRej','_replayCachedMutations','objects','measureText','status','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_localeService','_clearRedo','title','removeParam','_transformSelections','incrementRevForDocument','[CollaborationEntity]','PERMISSION_REJ','\x20to\x20','_substituteUndoStack','_cursors','colorChannel1','width','_disabled','getCurrentSelections','editingUnit','_online','liveShareOperation','[PendingState]:\x20received\x20acknowledgement.','verdancy600','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SNAPSHOT_INVALID_SNAPSHOT','_removeClearOtherTimer','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','icon','open$','UNKNOWN_CMD','color','on-line-single_clip0_910_349','image/bmp','_setupBeforeClosingHandler','/-/object/-/batch_allowed','_scheduleClearOtherTimer','getRenderById','roles','setCurrentUser','_onUserLeave','AWAITING_WITH_PENDING','OffLineSingle','getInterceptPoints','add','_updateURLWithCurrentState','_backgroundColor','LOCAL_CACHE_INTERVAL','LIVESHARE_REQUEST_HOST','rev','override','_disableEditing','univer-online','HEARTBEAT_TIMEOUT','_syncEditingCollabCursor','responseType','LIVESHARE_TERMINATE','Starting','/object/','_snapshotService','/rev/','readAsDataURL','addEventListener','_getUndoStack','_onRecvEvent','_docSyncEditingCollabCursorService','svg','_drawRectRange','max','init','random','_getAPIPrefix','top','_socket$','_userManagerService','transformByState','popstate','infoRsp','_getUploadFileURL','interceptor','body','translate(.97)','getValue','failed\x20to\x20apply\x20missed\x20changesets!','filter','text','getCurrentRevForDocument','setParam','focused$','createElement','updateCursorEvent','socket$','addObjects','_setupSubUnitSync','call','black','ONLINE','_http','_initStatusListener','getConfig','updatePermissionPoint','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','c1Prime','getMemberID','_startDocCollabCursor','_tryReconnect','UNIVER_UNKNOWN','subunit','getCellPositionByOffset','_executeRemoteChangeset','_acknowledgedAwaitingChangeset','FileId','clearInterval','_hideTimer','_decreaseWaiting','798LsgHGZ','collabStatus.synced','collabStatus.conflict','error$','_getCurrentRevision','permission.content','onTransformRemoteChangesetByIMECache','_colorIndex','awaiting_with_pending','getRoom','_undoStacks','InsertRangeMoveRightCommandId','unitId\x20is\x20not\x20found','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','fetchMissingChangesets','MSG_FOR_ERROR','location','LEAVE','onSendChangeset','_type','debug','univer-online-status-title','UPDATE_PERMISSION_OBJ','_socketMessageSubscription','_removeRoom','some','getCollabCursors$','allowed','IDLE','getDocRanges','_localCacheService','_refreshCollabCursors','InsertRangeMoveDownCommandId','_scene','collaMsg','_commentService','localeService','flatMap','_shouldReportTelemetry','/-/object/list','_sessions','registerHTTPInterceptor','disableLocalCache','_members','_httpService','_saveTaskMap','_listenToOnlineEvent','createSocket','currentSkeleton$','_sendHeartbeat','_candidateSocket','[CollaborationSession]','collaboration-client.offline-data-not-saved','socket\x20open.','image/jpg','csRejEvent','catch','APPLY_PERMISSION_DENIED','enableOfflineEditing','delete','engine','get','assign','endColumn','transformUndoRedo','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_throwTelemetryCollaborationNewChangeset','pipe','getCurrent','extend','clear','_transformIMECache','NOT_COLLAB','toString','LIVESHARE_FETCH_OPERATIONS','round','_getRedoStack','objectActions','isEditing','_tryEnsureSocket','_color','_change$','getTypeOfUnitAdded$','children','_showConflictNotification','\x20-\x20','target','url(#on-line-single_clip0_910_349)','_handler','cursorInfo','OFFLINE','transformChangesets','_univerInstanceService','/collaborator','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_anchor','UNIVER_SLIDE','FETCH_MISSING','_registerRenderDependencies','_compressMutationService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','saveOfflineData','_saveCache','[PendingState]:\x20received\x20rejection.','actions','length','history','_commandService','getUniverSheetInstance','from','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unsubscribe','_fetchMissChangesets','_loadSheet','_context','ws://127.0.0.1:8000/universer-api/comb/connect','_refRangeService','map','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_clearCollaborationTimeoutTimer','_singleActiveUnitService','loadOfflineData','getOwnPropertySymbols','forEach','generateRandomId','_retryCount','removeMember','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onUserJoin','routeKey','_collaborationPaused','_initResize','onlineStatusIcon','_onConnectionOpen','removeEventListener','onPointerMove$','_createHandler','substring','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_stopTelemetryCollaborationNewChangeset','UNIVER_DOC','lineTo','_timeoutTimer','set','_drawTextRange','post','_queuedRemoteChangesets','startsWith','/role','getFocusedUnit','FromArray','evenodd','getUnhiddenWorksheets','/universer-api/authz','PERMISSION_DENIED','JOIN','setAlpha','send','UNRECOGNIZED','OTHER_CLIENTS_EDITING','_scheduleSaving','message$','setTimeout','_handleHeartbeatEvent','hasOwnProperty','UNDEFINED','UniverIcon','beginPath','1325124EvxHqh','Undefined','displayName','\x0aAfter:\x20','_socket','activeSheet$','_instanceService','getUnit','searchParams','selection','_unlockTransition','requireSession','setInterval','_redoStacks','104LZEJiZ','shouldCloseConn','xlink:href','onMouseMove','_joinRoom','cmd','onCommandExecuted','putCollaborators','_clearHeartbeatTimer','conflict','reduce','capture','onRendered','&source=','getUnitType','[CollaborationSessionService]','_getSaveTimeout','_state','_anchorDot','RemoveColCommandId','_initCloseConn','Error\x20on\x20receiving\x20event','unknown','_incrementRevisionNumber','_onConnectionFailed','currentTheme$','saveSnapshot','roomMembers','getCurrentUnitForType','mutations','session.will-retry','UPDATE_CURSOR','permission.title','url(#$1','_onMessage','INTERNAL_ERROR','INGEST','registerOnClose','sheetID','getUnitOnRev','selections','_unitID','_onRemoteACK','_session','patch','telemetry\x20info\x20is\x20not\x20initialized','json','getTime','_isPermissionRej','string','ranges','path','1809442jYeEcI','COMPLETION_FINISHED','onlineStatus','getMember','getOffsetConfig','_clearUndo','?size=','_heartbeatTimer','next','defs','div','function','getImageSourceCache','data','0\x200\x2017\x2016','APPLY_NON_SEQUENTIAL_REVISION','baseRev','_initUnitPermissionChange','conflict.content','startColumn','has','fetch_missing','_updateState','Error','createInstance','type','COMMENT_UPDATE','/universer-api/comb','_applyRemoteChangeset','list','_schedule','RemoveRowCommandId','_registerDependencies','_updateSubUnitFromURLParams','findNodePositionByCharIndex','[CollaborationUndoRedoService]','arc','Univer','UnitSnapshot','editing\x20status\x20changed\x20to','currentColor','HELLO','loadDoc','hovered','collaboration.single-unit.warning','APPLY_REJECT','_getSheetObject','_replaceFileID','assignAColorForMemberID','_initCommandExecutedListener','_revisionService','collaboration-client.config','onlyLocal','_sheetSkeletonManagerService','transformIMECache','_socketReady','_roomMembers$','unitId','TOO_MANY_REQUESTS','_urlService','joinRsp','_status$','_waitCount','params','[CollaborationState]:\x20apply\x20error!','/block/','saveChangeset','trim','_sendingTimer','status$','toRgbString','COLLAB_WEB_SOCKET_URL','getMergeData','_initMergeInterceptor','with','_handleLeaveEvent','getUndoRedoMutationParamsCache','result','11546480laXBKP','_socketService','fillStyle','_imageSourceCache','transformRemoteChangeset','revision','M0\x200H16V16H0z','_docTransformSelectionsService','_permissionService','pending','disposeWithMe','auth.needGotoLoginAlert','requestParams','row','CONFLICT','socket\x20close','getActiveSheet','_clearScheduledTask','_createInitialStateImpl','ALREADY_EXISTS','_assignedColors','_eventUnsubscribe','onMissingChangesets','collaboration-session-retry','InsertColCommandId','CHANGESET_ACK','SNAPSHOT_URL_KEY','objectType','RETRY_CONNECTING_MAX_COUNT','_scheduleHeartbeat','registerRenderModule','_memberService','_textBubble','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_startCollaboration','file','onTransformChange$','_clearTimeoutTimer','_unitStatus','idSuffix','COLLAB_SUBMIT_CHANGESET_URL','_onFetchMissResult','onStateChange','0\x200\x2016\x2016','_scheduleTimestamp','COMPRESS_MUTATION_SEND','_retryConnectingTimer','image/png','collabStatus.fetchMiss','values','getSkeleton','onRemoteAck','_document','Steady','range','encodeURIComponent','LOGIN_URL_KEY','url','_transitionLocked','find','session','UNIVER_SHEET','collab-text-anchor-','_getAPIPrefixPath','addImageSourceCache','LIVESHARE_NEW_HOST','getRangePointData','memberID','collaboration_new_changeset','_docTransformIMECacheService','UNIVER_PROJECT','pauseCollaboration','_removeCollabCursors','slice','_onConflict','collaboration.closeRoom','EXCHANGE_SIGN_URL_SERVER_URL_KEY','transformMutation','_loadDoc','/unit/','/object','enableLocalCache','3148464upyQtQ','_draw','defineProperty','NEW_CHANGESETS','ACTIVE_UNIT_EVENT_CHANNEL','originalMeta','SHOULD_CLOSE_CONN','_collaborationTimeoutTimer','collabStatus.offline','univerjs-icon\x20univerjs-icon-','then','href','moveTo','LIVESHARE_OPERATION','userID','addObject','_logService','whenReady','url(#off-line-single_clip0_910_343)','_onRemoteRejected','LICENSE_MAX_UNITS_EXCEEDED','push','UnitEmbedded','_cursorInfo$','unshift','setWaitCount','eventID','getSheetBlock','asObservable','encode','code','saveSheetBlock','SNAPSHOT_HAS_BEEN_REMOVED','_localStorageService','dispose','session.connection-failed','UNIVER_COLLABORATION_CLIENT_PLUGIN','_exhaustRemoteChangesetQueue','save','_uiPartsService','/universer-api/oidc/authpage','synced','USERS_LEAVE','symbol','_hover','LICENSE_EXPORT_SIZE_EXCEEDED','univer-offline','error','_getSendChangesetTimeout','_lockTransition','OnLineSingle','[UniverCollaborationClientPlugin]','YUUMI_UNABLE_LOAD_URL','clearTimeout','newValue','_cursorShapes','PENDING','put','restore','registerComponent','_initStatusComponent','replace','closeSession','fetching\x20missing\x20changesets\x20from\x20','UNAUTHENTICATED','now','RETRY_CONNECTING_INTERVAL','bottom','onTransformIME','_clearLocalCache','getAncestorScale','_updateCollabCursors','#fff','10febfqh','transformSelections','_lastPointer','COMPRESS_MUTATION_APPLY','_createSocket','_checkMissing','fetchThroughInterceptors','_updateLocalCursor','close$','startTime','attrs','[SyncedState]:\x20received\x20rejection.','_sheetTransformSelectionsService','reconnect','updateCollaborator','disposeUnit','executeCommand','updateOfflineData','split','_configService','_transformStack','[DataLoaderController]','tag','_event$','propertyIsEnumerable','collaborators','onMissedChangesetFetched','_getScale','_colorAssignService','InsertRowCommandId','SUCCUSS','fill','_ws','_substituteRedoStack','POST','_transformRemoteChangesetByIMECache','updatePermissionObjEvent','YUUMI_RATE_OVER_LIMIT','SUBMIT_CHANGESET','clipPath','sessionStatus$','_onCombEvent','unit-cache-','getCollabEntity','contains','_onCursorUpdate','fetchMiss','submit\x20changeset\x20error!','_waitForHeartbeatResponse','liveShareNewHost','_render','red300','entries','collab-rect-range-','_startTelemetryCollaborationNewChangeset','awaitingChangeset','snapshot','concat','HEARTBEAT','changesets','getActiveRange','size','all','online','HttpExport','m2Prime','show','MUTATION','_toggleOnline','BASE64','_rescheduleHeartbeat','_entities','indexOf','height','refreshPermission','_getLoginPath','_scheduleCollaborationTimeoutTimer','event$','saveImage','fillText','setItem','_getSignURL','HEADER_MENU','getSheetBySheetId','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','loadSheet','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','objectID','_cursor','15104IBQwms','jiqing500','image/jpeg','_themeService','_onLocalMutation','_updateStatus','_collaborationSessionService','_id','_sendHeartbeatTimer','stopTime','transformMutationsWithChangeset','reject','CHANGESET_REJ','[CollaborationSessionService]:\x20socket\x20error','_unitOnClients','headers','resourceIDs','?url=','_snapshotServerService','updateMember','cursorInfo$','_entityInit$','NOT_FOUND','_messageService','name','_range','duration','UNKNOWN_CODE','univer-online-status-icon','MoveRangeCommandId','roomMembers$','collabCursorState$','registerBeforeClose','includes','FAIL','onRemoteRej','_onCursorDelete','unitID','getCurrentUser','batchAllowed','state$','[FetchMissState]','min','sessionStatus','joinEvent','_injector','doc.mutation.rich-text-editing','uni.network.url-service','socketService','[OfflineState]:\x20received\x20changeset.','update','_sessionStatus$','urlChange$','_selfUnitIDs','getSheetId','_handleJoinEvent','deepClone','1em'];_0x3164=function(){return _0x329218;};return _0x3164();}import{createIdentifier as _0x5a3236,Disposable as _0x36403b,DisposableCollection as _0x3bb8a8,toDisposable as _0x29a7b,Inject as _0x5c7fae,IConfigService as _0x401b9d,ILogService as _0x1cafe9,UniverInstanceType as _0x3bf0d9,UserManagerService as _0x1ac2e4,IUniverInstanceService as _0x30b2f2,RxDisposable as _0x4bff65,LocaleService as _0x12e5b3,Optional as _0x5723b6,Injector as _0x5d259e,Tools as _0x3cea4b,ILocalStorageService as _0x76fe2e,ICommandService as _0x36a317,JSONX as _0x51b925,CommandType as _0x32e0b0,IPermissionService as _0x241366,IUndoRedoService as _0x1bd332,sequenceExecute as _0x5396fb,Rectangle as _0x183c22,OnLifecycle as _0x486866,LifecycleStages as _0x446a6f,ThemeService as _0x27c464,useDependency as _0x1cf47e,connectInjector as _0x5abdc,Workbook as _0x450c96,LocalUndoRedoService as _0x30a328,IContextService as _0x693680,COLORS as _0x44cb7f,ColorKit as _0x21fa84,fromEventSubject as _0x240b02,isInternalEditorID as _0x852e4e,Plugin as _0x250c9c,IAuthzIoService as _0x136777,mergeOverrideWithDependencies as _0x3a5a4e,DependentOn as _0x2f7773}from'@univerjs/core';import{Subject as _0x47a81b,merge as _0x9334d7,takeUntil as _0x2123e0,BehaviorSubject as _0x16e81a,distinctUntilChanged as _0x24665d,fromEvent as _0x4dbad7,map as _0x464900,shareReplay as _0x1aec94,take as _0x219c0a,of as _0x8d55e,debounceTime as _0x116e1b,filter as _0x41cfb4,switchMap as _0x498d15,combineLatest as _0x1ee3b6,mapTo as _0x543013,concatMap as _0x4c98f9}from'rxjs';import{map as _0x4b551a,take as _0x590d71,filter as _0x48e324,delay as _0x1e04ab,takeUntil as _0x429e28,switchMap as _0x3c8cfc,throttleTime as _0x326ad7}from'rxjs/operators';import{MessageType as _0x68ddaa,Tooltip as _0x2b5af8}from'@univerjs/design';import{IBeforeCloseService as _0x4c2a62,IMessageService as _0x29e945,INotificationService as _0x4c821a,useObservable as _0x3834a2,BuiltInUIPart as _0x1504a5,IUIPartsService as _0xbc9637}from'@univerjs/ui';import{HTTPService as _0x35343d,WebSocketService as _0x4058ad,MergeInterceptorFactory as _0x441ebe,HTTPRequest as _0x1baa38,IHTTPImplementation as _0x4a8183,XHRHTTPImplementation as _0x182506,ThresholdInterceptorFactory as _0x55c921}from'@univerjs/network';import{CollaborationEvent as _0x410792,parseChangesetToProtocol as _0x1859f8,ISnapshotServerService as _0x39a0ed,isTransformMutationFailure as _0x517f04,isTransformMutationsWithChangesetSuccess as _0x24d018,ITransformService as _0x4e0f96,RevisionService as _0x4ceeac,mapDocumentTypeToUniverType as _0x2e5178,isTransformChangesetsSuccess as _0x71b04d,parseProtocolChangeset as _0x3b19c3,CompressMutationService as _0xac140b,SnapshotService as _0x208dce,textEncoder as _0x1d8b96,b64DecodeUnicode as _0x5ee83a,isTransformMutationsWithChangesetFailure as _0x364023,UniverCollaborationPlugin as _0x7a88b}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x45444c}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x1dbfad,RichTextEditingMutation as _0xa592b4,SetTextSelectionsOperation as _0x26b3ce,DocSkeletonManagerService as _0x2398d4}from'@univerjs/docs';import{SheetsSelectionsService as _0x85923d,SetSelectionsOperation as _0x2498cc,InsertSheetMutation as _0x5a0458,EmptyMutation as _0x39f7b4,WorkbookEditablePermission as _0x477da8,RefRangeService as _0x504358,EffectRefRangId as _0xa2b790,handleIRemoveRow as _0x2f61ec,handleIRemoveCol as _0x824d6d,handleMoveRange as _0x2f5847,handleInsertRow as _0x375cdc,handleInsertRangeMoveRight as _0x1731a1,handleInsertRangeMoveDown as _0x4827cd,handleInsertCol as _0x34e016,handleDeleteRangeMoveUp as _0x552ee5,handleDeleteRangeMoveLeft as _0x3c8f35,runRefRangeMutations as _0x15b7fb,SetWorksheetActivateCommand as _0x29cb12}from'@univerjs/sheets';import{DocIMEInputManagerService as _0x3b1e58,DocStateChangeManagerService as _0x34634f,NodePositionConvertToCursor as _0x5cf9b0,isValidRectRange as _0x29cf68,NodePositionConvertToRectRange as _0xbfc352,TEXT_RANGE_LAYER_INDEX as _0x2b5c4c,SetDocZoomRatioOperation as _0x23717a}from'@univerjs/docs-ui';import{IRenderManagerService as _0x363058,Shape as _0x214e6b,Rect as _0x170a21,Vector2 as _0x586911,getColor as _0x3c99d3,RegularPolygon as _0x532a25,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x277f5f}from'@univerjs/engine-render';import{ImageSourceType as _0x2639d9,ImageUploadStatusType as _0x29d71a,IImageIoService as _0x976a19}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5b5841,serializeRangeWithSheet as _0x508689}from'@univerjs/engine-formula';import _0x415879 from'lodash/debounce';import{VIEWPORT_KEY as _0x398f9b,getCoordByCell as _0x341a0b,getSheetObject as _0x40df2d,SheetSkeletonManagerService as _0x5349fd,SheetPermissionInitController as _0xa93b7d}from'@univerjs/sheets-ui';import _0x24bd02,{forwardRef as _0x5da15c,useRef as _0x4ab73c,createElement as _0x3d6533,useCallback as _0x23455d}from'react';import _0x6c5a82 from'clsx';import{IRemoteInstanceService as _0x372f27}from'@univerjs/rpc';const _n='SNAPSHOT_SERVER_URL_KEY',un=_0x2e5b1c(0x438),dn=_0x2e5b1c(0x2a4),mn='SEND_CHANGESET_TIMEOUT',fn=0x7d0,gn=_0x2e5b1c(0x283),Sn=_0x2e5b1c(0x1c5),pn='HEARTBEAT_INTERVAL',vn=0x7530,Ns=_0x2e5b1c(0x484),ys=0x4e20,In=_0x2e5b1c(0x31e),En=0x4e20,Cn=_0x2e5b1c(0x2a6),bn=0x3,Tn=_0x2e5b1c(0x47e),Rn=0x3e8,On=_0x2e5b1c(0x2b2),Dn=_0x2e5b1c(0x257),wn=_0x2e5b1c(0x2c2),Pn=_0x2e5b1c(0x304);var Ms=(_0x8245e2=>(_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f7)]=0x0]=_0x2e5b1c(0x1f7),_0x8245e2[_0x8245e2['OK']=0x1]='OK',_0x8245e2[_0x8245e2['INTERNAL_ERROR']=0x2]=_0x2e5b1c(0x22b),_0x8245e2[_0x8245e2[_0x2e5b1c(0x1ec)]=0x3]='PERMISSION_DENIED',_0x8245e2[_0x8245e2['NOT_FOUND']=0x4]=_0x2e5b1c(0x395),_0x8245e2[_0x8245e2[_0x2e5b1c(0x31c)]=0x5]=_0x2e5b1c(0x31c),_0x8245e2[_0x8245e2[_0x2e5b1c(0x29d)]=0x6]=_0x2e5b1c(0x29d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x3e3)]=0x7]='INVALID_ARGUMENT',_0x8245e2[_0x8245e2[_0x2e5b1c(0x276)]=0x8]=_0x2e5b1c(0x276),_0x8245e2[_0x8245e2[_0x2e5b1c(0x23d)]=0x9]=_0x2e5b1c(0x23d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x401)]=0x1389]=_0x2e5b1c(0x401),_0x8245e2[_0x8245e2[_0x2e5b1c(0x467)]=0x1771]=_0x2e5b1c(0x467),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2fc)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x8245e2[_0x8245e2['APPLY_REJECT']=0x1b59]=_0x2e5b1c(0x269),_0x8245e2[_0x8245e2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x2e5b1c(0x24b),_0x8245e2[_0x8245e2['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x2e5b1c(0x3de),_0x8245e2[_0x8245e2[_0x2e5b1c(0x18b)]=0x1b5c]=_0x2e5b1c(0x18b),_0x8245e2[_0x8245e2['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x2e5b1c(0x432),_0x8245e2[_0x8245e2[_0x2e5b1c(0x2f0)]=0x2329]=_0x2e5b1c(0x2f0),_0x8245e2[_0x8245e2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x2e5b1c(0x440),_0x8245e2[_0x8245e2['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x2e5b1c(0x41e),_0x8245e2[_0x8245e2[_0x2e5b1c(0x309)]=0x232c]=_0x2e5b1c(0x309),_0x8245e2[_0x8245e2[_0x2e5b1c(0x43d)]=0x232d]=_0x2e5b1c(0x43d),_0x8245e2[_0x8245e2[_0x2e5b1c(0x310)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x8245e2[_0x8245e2[_0x2e5b1c(0x41f)]=0x2712]=_0x2e5b1c(0x41f),_0x8245e2[_0x8245e2[_0x2e5b1c(0x34a)]=0x2713]=_0x2e5b1c(0x34a),_0x8245e2[_0x8245e2[_0x2e5b1c(0x443)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x8245e2[_0x8245e2[_0x2e5b1c(0x1f0)]=-0x1]='UNRECOGNIZED',_0x8245e2))(Ms||{}),x=(_0x62b898=>(_0x62b898[_0x62b898[_0x2e5b1c(0x149)]=0x0]=_0x2e5b1c(0x149),_0x62b898[_0x62b898[_0x2e5b1c(0x1de)]=0x1]=_0x2e5b1c(0x1de),_0x62b898[_0x62b898[_0x2e5b1c(0x2c7)]=0x2]=_0x2e5b1c(0x2c7),_0x62b898[_0x62b898[_0x2e5b1c(0x1b2)]=0x3]=_0x2e5b1c(0x1b2),_0x62b898[_0x62b898[_0x2e5b1c(0x2d0)]=0x4]='UNIVER_PROJECT',_0x62b898[_0x62b898['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x62b898))(x||{}),I=(_0x1b5b7c=>(_0x1b5b7c[_0x1b5b7c['UNKNOWN_CMD']=0x0]=_0x2e5b1c(0x46d),_0x1b5b7c[_0x1b5b7c['HELLO']=0x1]=_0x2e5b1c(0x265),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x1ed)]=0x2]=_0x2e5b1c(0x1ed),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x163)]=0x3]=_0x2e5b1c(0x163),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x22c)]=0x4]=_0x2e5b1c(0x22c),_0x1b5b7c[_0x1b5b7c[_0x2e5b1c(0x35f)]=0x5]=_0x2e5b1c(0x35f),_0x1b5b7c[_0x1b5b7c['RECV']=0x6]=_0x2e5b1c(0x3e9),_0x1b5b7c[_0x1b5b7c['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x1b5b7c))(I||{}),kt=(_0x24a6ff=>(_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x39a)]=0x0]=_0x2e5b1c(0x39a),_0x24a6ff[_0x24a6ff['OK']=0x1]='OK',_0x24a6ff[_0x24a6ff['FAIL']=0x2]=_0x2e5b1c(0x3a1),_0x24a6ff[_0x24a6ff[_0x2e5b1c(0x1f0)]=-0x1]=_0x2e5b1c(0x1f0),_0x24a6ff))(kt||{}),As=(_0x210b8b=>(_0x210b8b[_0x210b8b[_0x2e5b1c(0x1fb)]=0x0]=_0x2e5b1c(0x1fb),_0x210b8b[_0x210b8b[_0x2e5b1c(0x3ee)]=0x1]='HttpImport',_0x210b8b[_0x210b8b[_0x2e5b1c(0x365)]=0x2]=_0x2e5b1c(0x365),_0x210b8b[_0x210b8b[_0x2e5b1c(0x2f2)]=0x3]=_0x2e5b1c(0x2f2),_0x210b8b[_0x210b8b[_0x2e5b1c(0x262)]=0x4]=_0x2e5b1c(0x262),_0x210b8b[_0x210b8b['UNRECOGNIZED']=-0x1]=_0x2e5b1c(0x1f0),_0x210b8b))(As||{});function Nn(_0x439f41){const _0x1a8020=_0x2e5b1c;var _0x2d93f3,_0x166e23,_0x51bf6e,_0x2912b6;const _0x2f92fc=_0x439f41['data'],_0x1e6e16=JSON[_0x1a8020(0x42a)](_0x2f92fc);switch(_0x1e6e16['cmd']){case I['HEARTBEAT']:case I[_0x1a8020(0x265)]:{const _0x22a555=_0x1e6e16[_0x1a8020(0x12c)];return{..._0x1e6e16,'data':_0x22a555,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x1ed)]:{const _0x2abbf5=_0x1e6e16[_0x1a8020(0x278)];return{..._0x1e6e16,'data':_0x2abbf5,'cmd':_0x1e6e16[_0x1a8020(0x20d)]};}case I[_0x1a8020(0x3e9)]:{const _0x38d63c=_0x1e6e16[_0x1a8020(0x174)];switch(_0x38d63c[_0x1a8020(0x2f6)]){case _0x410792[_0x1a8020(0x459)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2d93f3=_0x38d63c['permissionRejEvent'])==null?void 0x0:_0x2d93f3['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2a3)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x166e23=_0x38d63c['csAckEvent'])==null?void 0x0:_0x166e23['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2df)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x51bf6e=_0x38d63c['newCsEvent'])==null?void 0x0:_0x51bf6e['cs']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x38b)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':(_0x2912b6=_0x38d63c[_0x1a8020(0x189)])==null?void 0x0:_0x2912b6['cs']},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x227)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x139)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['USERS_ENTER']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3ab)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x306)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x3c7)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x2cb)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x19c)]:case _0x410792[_0x1a8020(0x2e9)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x463)]},'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x487)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x356)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['MSG_FOR_ERROR']:return{..._0x1e6e16,'data':_0x38d63c,'cmd':_0x1e6e16['cmd']};case _0x410792[_0x1a8020(0x256)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c['commentUpdateEvent']},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792[_0x1a8020(0x168)]:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x349)]},'cmd':_0x1e6e16[_0x1a8020(0x20d)]};case _0x410792['SHOULD_CLOSE_CONN']:return{..._0x1e6e16,'data':{..._0x38d63c,'data':_0x38d63c[_0x1a8020(0x209)]},'cmd':_0x1e6e16['cmd']};default:return _0x1e6e16;}}default:return _0x1e6e16;}}function yn(_0x3c0eb7){const _0x321ed2=_0x2e5b1c;switch(_0x3c0eb7[_0x321ed2(0x20d)]){case I[_0x321ed2(0x35f)]:case I['HELLO']:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)]});case I['INGEST']:{let _0xe15fdd;switch(_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x2f6)]){case _0x410792[_0x321ed2(0x227)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x227)],'updateCursorEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792['USERS_LEAVE']:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x306)],'leaveEvent':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x3e0)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x3e0)],'joinEvent':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2cb)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2cb)],'liveShareNewHost':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x2e9)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x2e9)],'liveShareOperation':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x487)]:{_0xe15fdd={'eventID':_0x410792['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3c0eb7[_0x321ed2(0x249)][_0x321ed2(0x249)]};break;}case _0x410792[_0x321ed2(0x47f)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x47f)],'liveShareRequestHost':_0x3c0eb7[_0x321ed2(0x249)]['data']};break;}case _0x410792[_0x321ed2(0x19c)]:{_0xe15fdd={'eventID':_0x410792[_0x321ed2(0x19c)]};break;}default:_0xe15fdd={'eventID':_0x3c0eb7['data'][_0x321ed2(0x2f6)]};}return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7['routeKey'],'collaMsg':_0xe15fdd});}case I[_0x321ed2(0x1ed)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'joinReq':_0x3c0eb7[_0x321ed2(0x249)]});case I[_0x321ed2(0x163)]:return JSON[_0x321ed2(0x3d7)]({'cmd':_0x3c0eb7[_0x321ed2(0x20d)],'routeKey':_0x3c0eb7[_0x321ed2(0x1d3)],'leaveReq':_0x3c0eb7[_0x321ed2(0x249)]});default:throw new Error(_0x321ed2(0x193));}}var Mn=Object['defineProperty'],An=Object[_0x2e5b1c(0x41c)],Un=(_0xbbe43f,_0x5ba07f,_0x4b8f88,_0x177550)=>{for(var _0xd43256=_0x177550>0x1?void 0x0:_0x177550?An(_0x5ba07f,_0x4b8f88):_0x5ba07f,_0x8adb60=_0xbbe43f['length']-0x1,_0x2fc238;_0x8adb60>=0x0;_0x8adb60--)(_0x2fc238=_0xbbe43f[_0x8adb60])&&(_0xd43256=(_0x177550?_0x2fc238(_0x5ba07f,_0x4b8f88,_0xd43256):_0x2fc238(_0xd43256))||_0xd43256);return _0x177550&&_0xd43256&&Mn(_0x5ba07f,_0x4b8f88,_0xd43256),_0xd43256;},Te=(_0x5a212c,_0x8cafb5)=>(_0x1cd9ec,_0x24bed4)=>_0x8cafb5(_0x1cd9ec,_0x24bed4,_0x5a212c);const Us=_0x5a3236('univer-pro.collaboration-client-socket-service');function Ln(_0x2008a5,_0x4c985b,_0x3c1a53){return _0x2008a5+'/'+_0x4c985b+'/unit/'+_0x3c1a53+'/new_changes';}let Ct=class extends _0x36403b{constructor(_0x399e30,_0x6c3c1d,_0x29edee,_0x266dfe,_0x3218e4){const _0x204a65=_0x2e5b1c;super(),this[_0x204a65(0x140)]=_0x399e30,this[_0x204a65(0x345)]=_0x6c3c1d,this[_0x204a65(0x338)]=_0x29edee,this[_0x204a65(0x2ec)]=_0x266dfe,this[_0x204a65(0x391)]=_0x3218e4;}[_0x2e5b1c(0x181)](_0x388fc8){const _0x230875=_0x2e5b1c,_0x4080dd=this['_ws'][_0x230875(0x181)](_0x388fc8);if(!_0x4080dd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x4987f5=new _0x3bb8a8(),_0x571d6d=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd['close$'][_0x230875(0x3c4)](_0x5b6817=>_0x571d6d[_0x230875(0x244)](_0x5b6817))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x571d6d['complete']()));const _0x4a69a5=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x155)]['subscribe'](_0x335fbb=>_0x4a69a5[_0x230875(0x244)](_0x335fbb))),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x4a69a5['complete']()));const _0x2760ef=new _0x47a81b();_0x4987f5[_0x230875(0x47b)](_0x4080dd[_0x230875(0x1f3)]['subscribe'](_0x5d53b6=>{const _0x591d85=_0x230875,_0x4c6e04=Nn(_0x5d53b6);_0x2760ef[_0x591d85(0x244)](_0x4c6e04);})),_0x4987f5[_0x230875(0x47b)](_0x29a7b(()=>_0x2760ef[_0x230875(0x447)]()));let _0x28d305;const _0x5209a3=()=>{const _0x289600=_0x230875;_0x4a69a5['next'](new Event(_0x289600(0x437))),_0x571d6d['next'](new CloseEvent(_0x289600(0x437))),_0x28d305[_0x289600(0x40e)]();};return _0x28d305={'memberID':'','close$':_0x571d6d[_0x230875(0x2f8)](),'error$':_0x4a69a5['asObservable'](),'open$':_0x4080dd[_0x230875(0x46c)],'message$':_0x2760ef[_0x230875(0x2f8)](),'send':_0xc1b3e5=>{const _0x500c90=_0x230875;if(_0xc1b3e5[_0x500c90(0x20d)]===I['INGEST']){if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x34b)]){this['_submitChangeset'](_0x28d305,_0xc1b3e5[_0x500c90(0x249)])[_0x500c90(0x18a)](_0x5bd967=>{const _0x29ad1a=_0x500c90;this[_0x29ad1a(0x2ec)]['error'](_0x5bd967),_0x5209a3();});return;}if(_0xc1b3e5[_0x500c90(0x249)][_0x500c90(0x2f6)]===_0x410792[_0x500c90(0x1b3)]){const _0x20b295=_0xc1b3e5['data'];this[_0x500c90(0x1c2)](_0x20b295)[_0x500c90(0x2e6)](_0xc4b7e0=>{const _0x1f59e6=_0x500c90;_0x2760ef[_0x1f59e6(0x244)]({'cmd':I[_0x1f59e6(0x3e9)],'code':kt['OK'],'routeKey':_0x20b295[_0x1f59e6(0x249)][_0x1f59e6(0x3a4)],'routeType':'','data':{'eventID':_0x410792['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0xc4b7e0}}});})[_0x500c90(0x18a)](_0xb3fac9=>{const _0x5c4c9d=_0x500c90;this[_0x5c4c9d(0x2ec)][_0x5c4c9d(0x30b)](_0xb3fac9),_0x5209a3();});return;}}_0x4080dd[_0x500c90(0x1ef)](yn(_0xc1b3e5));},'close':()=>{const _0x2e002b=_0x230875;_0x4080dd[_0x2e002b(0x40e)](),_0x4987f5[_0x2e002b(0x2fe)]();}},_0x28d305;}async[_0x2e5b1c(0x41b)](_0x37738d,_0x4d6b9c){const _0x107139=_0x2e5b1c;var _0x6d3391;const {unitType:_0x1db2e4,unitID:_0x300a60,changeset:_0x35f2b6}=_0x4d6b9c[_0x107139(0x249)],_0x55ccc8={'unitID':_0x300a60,'memberID':_0x37738d[_0x107139(0x2cd)],'type':_0x1db2e4,'changeset':_0x1859f8(_0x35f2b6)},_0x2660f3=Ln((_0x6d3391=this[_0x107139(0x338)][_0x107139(0x142)](On))!=null?_0x6d3391:Dn,_0x1db2e4,_0x300a60);try{await this[_0x107139(0x140)]['post'](_0x2660f3,{'body':_0x55ccc8});}catch(_0x41da2b){throw this[_0x107139(0x2ec)][_0x107139(0x30b)](_0x107139(0x185),_0x107139(0x354)),_0x41da2b;}}async[_0x2e5b1c(0x1c2)](_0xa0dd5d){const _0x78dcd7=_0x2e5b1c,{unitID:_0x1b6647,from:_0x153d4f,to:_0x205078,unitType:_0x5efa5}=_0xa0dd5d[_0x78dcd7(0x249)];return(await this['_snapshotServerService'][_0x78dcd7(0x160)]({'metadata':void 0x0},{'unitID':_0x1b6647,'type':_0x5efa5,'from':_0x153d4f,'to':_0x205078}))[_0x78dcd7(0x360)];}};Ct=Un([Te(0x0,_0x5c7fae(_0x35343d)),Te(0x1,_0x5c7fae(_0x4058ad)),Te(0x2,_0x401b9d),Te(0x3,_0x1cafe9),Te(0x4,_0x39a0ed)],Ct);const $n=_0x2e5b1c(0x2ce);function jn(_0x29c4b6){const _0x67eb36=_0x2e5b1c;return JSON['stringify'](_0x29c4b6)[_0x67eb36(0x1bb)];}class Ls{constructor(){const _0x31b912=_0x2e5b1c;l(this,_0x31b912(0x44a),new _0x47a81b()),l(this,'commentUpdate$',this[_0x31b912(0x44a)][_0x31b912(0x2f8)]());}['onCommentUpdate'](_0x3420ae){const _0x515e49=_0x2e5b1c;this[_0x515e49(0x44a)][_0x515e49(0x244)](_0x3420ae);}}var xn=Object[_0x2e5b1c(0x2de)],Hn=Object[_0x2e5b1c(0x41c)],kn=(_0x509f3f,_0x5b2ba9,_0x564d24,_0x3be66f)=>{const _0x51c19d=_0x2e5b1c;for(var _0x3cce0c=_0x3be66f>0x1?void 0x0:_0x3be66f?Hn(_0x5b2ba9,_0x564d24):_0x5b2ba9,_0x33c378=_0x509f3f[_0x51c19d(0x1bb)]-0x1,_0x298c0c;_0x33c378>=0x0;_0x33c378--)(_0x298c0c=_0x509f3f[_0x33c378])&&(_0x3cce0c=(_0x3be66f?_0x298c0c(_0x5b2ba9,_0x564d24,_0x3cce0c):_0x298c0c(_0x3cce0c))||_0x3cce0c);return _0x3be66f&&_0x3cce0c&&xn(_0x5b2ba9,_0x564d24,_0x3cce0c),_0x3cce0c;},ns=(_0x599e17,_0x318501)=>(_0x85e5f8,_0x27ee60)=>_0x318501(_0x85e5f8,_0x27ee60,_0x599e17);let oe=class extends _0x36403b{constructor(_0x45d990,_0x254cbd){const _0x42cefe=_0x2e5b1c;super(),l(this,_0x42cefe(0x3bd),new Map()),(this[_0x42cefe(0x1ae)]=_0x45d990,this[_0x42cefe(0x129)]=_0x254cbd,this['disposeWithMe'](_0x29a7b(_0x9334d7(this[_0x42cefe(0x1ae)]['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42cefe(0x2c7)])[_0x42cefe(0x195)](_0x4b551a(_0x47aaaf=>_0x47aaaf[_0x42cefe(0x426)]())),this[_0x42cefe(0x1ae)][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1de)])[_0x42cefe(0x195)](_0x4b551a(_0x40143e=>_0x40143e[_0x42cefe(0x426)]())),this['_univerInstanceService'][_0x42cefe(0x46a)](_0x3bf0d9[_0x42cefe(0x1b2)])[_0x42cefe(0x195)](_0x4b551a(_0x27f6d4=>_0x27f6d4['getUnitId']())))[_0x42cefe(0x3c4)](_0x349a43=>this[_0x42cefe(0x16a)](_0x349a43)))));}[_0x2e5b1c(0x476)](_0x18c679){const _0x2235f1=_0x2e5b1c;this[_0x2235f1(0x129)][_0x2235f1(0x476)](_0x18c679);}[_0x2e5b1c(0x3a5)](){const _0x28517b=_0x2e5b1c;return this[_0x28517b(0x129)]['getCurrentUser']();}[_0x2e5b1c(0x392)](_0x21b289,_0x14b9cd){const _0x2ddcfe=_0x2e5b1c;let _0x447f3b=this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x18f)](_0x21b289);_0x447f3b||(_0x447f3b=new Bn(),this[_0x2ddcfe(0x3bd)][_0x2ddcfe(0x1e1)](_0x21b289,_0x447f3b)),_0x447f3b[_0x2ddcfe(0x392)](_0x14b9cd);}[_0x2e5b1c(0x1d0)](_0x3ab3a3,_0xa1b7f6){const _0x356af3=_0x2e5b1c,_0x2de47d=this[_0x356af3(0x3bd)]['get'](_0x3ab3a3);_0x2de47d&&_0x2de47d[_0x356af3(0x1d0)](_0xa1b7f6);}[_0x2e5b1c(0x15b)](_0x21ff91){const _0x25d443=_0x2e5b1c;return this[_0x25d443(0x3bd)][_0x25d443(0x18f)](_0x21ff91);}['getMember'](_0x30837c,_0x3a0a53){const _0x2605a9=_0x2e5b1c,_0x525b55=this[_0x2605a9(0x3bd)]['get'](_0x30837c);if(_0x525b55)return _0x525b55[_0x2605a9(0x23f)](_0x3a0a53);}[_0x2e5b1c(0x16a)](_0x1578d9){const _0x124395=_0x2e5b1c,_0x214b26=this[_0x124395(0x3bd)][_0x124395(0x18f)](_0x1578d9);_0x214b26&&(_0x214b26[_0x124395(0x2fe)](),this[_0x124395(0x3bd)][_0x124395(0x18d)](_0x1578d9));}[_0x2e5b1c(0x2fe)](){const _0x37d60a=_0x2e5b1c;this[_0x37d60a(0x3bd)][_0x37d60a(0x1cd)](_0x52cbba=>_0x52cbba[_0x37d60a(0x2fe)]()),this[_0x37d60a(0x3bd)]['clear']();}};oe=kn([ns(0x0,_0x30b2f2),ns(0x1,_0x5c7fae(_0x1ac2e4))],oe);class Bn extends _0x36403b{constructor(){const _0x3007b8=_0x2e5b1c;super(...arguments),l(this,_0x3007b8(0x17d),new Map());}['dispose'](){const _0x29f6ef=_0x2e5b1c;this[_0x29f6ef(0x17d)][_0x29f6ef(0x198)]();}[_0x2e5b1c(0x392)](_0x14c241){const _0x387ae2=_0x2e5b1c;this[_0x387ae2(0x17d)][_0x387ae2(0x1e1)](_0x14c241[_0x387ae2(0x2cd)],_0x14c241);}['removeMember'](_0x54e39c){const _0x20cc64=_0x2e5b1c;this['_members'][_0x20cc64(0x18d)](_0x54e39c);}[_0x2e5b1c(0x23f)](_0x47cc08){const _0x4f740f=_0x2e5b1c;return this[_0x4f740f(0x17d)][_0x4f740f(0x18f)](_0x47cc08);}}var Vn=Object[_0x2e5b1c(0x2de)],Fn=Object[_0x2e5b1c(0x41c)],Wn=(_0x45a11b,_0xebd231,_0x4b3c05,_0x2638ef)=>{const _0x51b56f=_0x2e5b1c;for(var _0x389f1a=_0x2638ef>0x1?void 0x0:_0x2638ef?Fn(_0xebd231,_0x4b3c05):_0xebd231,_0x2cff98=_0x45a11b[_0x51b56f(0x1bb)]-0x1,_0x3ac219;_0x2cff98>=0x0;_0x2cff98--)(_0x3ac219=_0x45a11b[_0x2cff98])&&(_0x389f1a=(_0x2638ef?_0x3ac219(_0xebd231,_0x4b3c05,_0x389f1a):_0x3ac219(_0x389f1a))||_0x389f1a);return _0x2638ef&&_0x389f1a&&Vn(_0xebd231,_0x4b3c05,_0x389f1a),_0x389f1a;},X=(_0x4ef8a2,_0x10a62e)=>(_0xeaf34c,_0x5f46dc)=>_0x10a62e(_0xeaf34c,_0x5f46dc,_0x4ef8a2),W=(_0x17889d=>(_0x17889d[_0x17889d[_0x2e5b1c(0x16e)]=0x0]=_0x2e5b1c(0x16e),_0x17889d[_0x17889d[_0x2e5b1c(0x3dd)]=0x1]=_0x2e5b1c(0x3dd),_0x17889d[_0x17889d[_0x2e5b1c(0x1ac)]=0x2]='OFFLINE',_0x17889d[_0x17889d[_0x2e5b1c(0x13f)]=0x3]=_0x2e5b1c(0x13f),_0x17889d))(W||{});let bt=class extends _0x4bff65{constructor(_0x214017,_0x8ebca7,_0x394b8c,_0x3deada,_0x3fbe87,_0x447eb4,_0x129bc0,_0x4aaa3c,_0x51e90f,_0x2b85db){const _0x3dfc67=_0x2e5b1c;super(),l(this,'_sessionStatus$',new _0x16e81a(0x0)),l(this,'sessionStatus$',this[_0x3dfc67(0x3b2)][_0x3dfc67(0x2f8)]()),l(this,_0x3dfc67(0x33c),new _0x47a81b()),l(this,_0x3dfc67(0x372),this[_0x3dfc67(0x33c)]['asObservable']()),l(this,_0x3dfc67(0x1fe)),l(this,_0x3dfc67(0x169)),l(this,_0x3dfc67(0x2e3)),l(this,_0x3dfc67(0x178),!0x1),l(this,_0x3dfc67(0x418),null),(this['_unitID']=_0x214017,this['_logService']=_0x394b8c,this[_0x3dfc67(0x3d9)]=_0x3deada,this[_0x3dfc67(0x396)]=_0x3fbe87,this[_0x3dfc67(0x338)]=_0x447eb4,this['_localeService']=_0x129bc0,this[_0x3dfc67(0x2a9)]=_0x4aaa3c,this[_0x3dfc67(0x175)]=_0x51e90f,this['_telemetryService']=_0x2b85db,this[_0x3dfc67(0x178)]=!!this[_0x3dfc67(0x41d)],_0x8ebca7[_0x3dfc67(0x195)](_0x2123e0(this[_0x3dfc67(0x3be)]))[_0x3dfc67(0x3c4)](_0x3b26ae=>{const _0x2e0cc4=_0x3dfc67;var _0x3710cf;typeof _0x3b26ae>'u'||(this[_0x2e0cc4(0x1fe)]=_0x3b26ae,_0x3b26ae?(this[_0x2e0cc4(0x20c)](_0x3b26ae),this[_0x2e0cc4(0x169)]=_0x3b26ae['message$']['subscribe'](_0x468205=>{const _0x40e2db=_0x2e0cc4;_0x468205[_0x40e2db(0x1d3)]===this[_0x40e2db(0x231)]&&this[_0x40e2db(0x34e)](_0x468205);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x2e0cc4(0x244)](0x2),(_0x3710cf=this[_0x2e0cc4(0x169)])==null||_0x3710cf['unsubscribe'](),this[_0x2e0cc4(0x169)]=null));}),this[_0x3dfc67(0x294)](this[_0x3dfc67(0x3d9)][_0x3dfc67(0x22d)](()=>{const _0x558efc=_0x3dfc67;var _0x57783a;(_0x57783a=this[_0x558efc(0x1fe)])==null||_0x57783a[_0x558efc(0x1ef)]({'cmd':I['LEAVE'],'data':{'roomID':this['_unitID']}});})));}get[_0x2e5b1c(0x3aa)](){const _0x2ee779=_0x2e5b1c;return this[_0x2ee779(0x3b2)][_0x2ee779(0x131)]();}[_0x2e5b1c(0x146)](){const _0x376d85=_0x2e5b1c;var _0x562c86,_0x46c2d;return(_0x46c2d=(_0x562c86=this[_0x376d85(0x1fe)])==null?void 0x0:_0x562c86[_0x376d85(0x2cd)])!=null?_0x46c2d:null;}['dispose'](){const _0x276808=_0x2e5b1c;super[_0x276808(0x2fe)](),this[_0x276808(0x3be)][_0x276808(0x244)](),this['dispose$'][_0x276808(0x447)]();}[_0x2e5b1c(0x40e)](){const _0x18846a=_0x2e5b1c;var _0x5a7a1b,_0x52c174;this[_0x18846a(0x194)](),(_0x5a7a1b=this[_0x18846a(0x1fe)])==null||_0x5a7a1b['send']({'cmd':I[_0x18846a(0x163)],'data':{'roomID':this[_0x18846a(0x231)]}}),(_0x52c174=this[_0x18846a(0x1fe)])==null||_0x52c174['close'](),this['_event$'][_0x18846a(0x447)](),this[_0x18846a(0x3b2)]['complete'](),this[_0x18846a(0x2fe)]();}[_0x2e5b1c(0x34e)](_0x5afa64){const _0x4b92e4=_0x2e5b1c;_0x5afa64['cmd']===I[_0x4b92e4(0x1ed)]?this[_0x4b92e4(0x3fa)](_0x5afa64):_0x5afa64['cmd']===I[_0x4b92e4(0x3e9)]&&this[_0x4b92e4(0x48f)](_0x5afa64);}[_0x2e5b1c(0x20c)](_0x3d280e){const _0x3a8fd9=_0x2e5b1c;this[_0x3a8fd9(0x3b2)][_0x3a8fd9(0x244)](0x1),_0x3d280e[_0x3a8fd9(0x1ef)]({'cmd':I[_0x3a8fd9(0x1ed)],'routeKey':this[_0x3a8fd9(0x231)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3a8fd9(0x231)]}]}});}['_onJoinRoomEvent'](_0x29b178){const _0x49b95d=_0x2e5b1c;var _0x3a9e19;if(_0x29b178[_0x49b95d(0x2fa)]===kt['FAIL']){this[_0x49b95d(0x396)][_0x49b95d(0x367)]({'type':_0x68ddaa[_0x49b95d(0x425)],'content':this[_0x49b95d(0x452)]['t']('session.room-full')}),this[_0x49b95d(0x3b2)][_0x49b95d(0x244)](0x2);return;}this[_0x49b95d(0x3b2)]['next'](0x3);const _0x55589a=(_0x3a9e19=_0x29b178['data']['roomInfos'][this[_0x49b95d(0x231)]])==null?void 0x0:_0x3a9e19['members'];_0x55589a&&_0x55589a[_0x49b95d(0x1cd)](_0x36c4de=>this[_0x49b95d(0x2a9)][_0x49b95d(0x392)](this[_0x49b95d(0x231)],_0x36c4de));}[_0x2e5b1c(0x48f)](_0xb80afb){const _0x4edd84=_0x2e5b1c;try{const _0x1bbdb1=_0xb80afb[_0x4edd84(0x249)];switch(_0x1bbdb1['eventID']){case _0x410792[_0x4edd84(0x3e0)]:this[_0x4edd84(0x1d2)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x306)]:this[_0x4edd84(0x477)](_0x1bbdb1),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792['CHANGESET_ACK']:this[_0x4edd84(0x1dd)](),this[_0x4edd84(0x1c9)](),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x161)]:this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x4edd84(0x3d7)](_0x1bbdb1)),this['_event$'][_0x4edd84(0x244)](_0x1bbdb1);break;case _0x410792[_0x4edd84(0x256)]:this[_0x4edd84(0x175)]['onCommentUpdate'](_0x1bbdb1[_0x4edd84(0x249)]),this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);break;default:this[_0x4edd84(0x33c)][_0x4edd84(0x244)](_0x1bbdb1);}}catch(_0x3dae2a){this[_0x4edd84(0x2ec)][_0x4edd84(0x30b)](_0x3dae2a,_0xb80afb);}}[_0x2e5b1c(0x1d2)](_0x29d397){const _0x1f2227=_0x2e5b1c;this[_0x1f2227(0x2a9)][_0x1f2227(0x392)](this[_0x1f2227(0x231)],_0x29d397[_0x1f2227(0x249)]);}[_0x2e5b1c(0x477)](_0x29e66b){const _0x46cf51=_0x2e5b1c;this['_memberService'][_0x46cf51(0x1d0)](this[_0x46cf51(0x231)],_0x29e66b[_0x46cf51(0x249)][_0x46cf51(0x2cd)]);}async[_0x2e5b1c(0x1ef)](_0x1a74ed,_0x504ce8){const _0x523684=_0x2e5b1c;if(this[_0x523684(0x3aa)]!==0x3||!this[_0x523684(0x1fe)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1a74ed['eventID']===_0x410792['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x523684(0x35b)](_0x1a74ed)),this[_0x523684(0x1fe)]['send']({'cmd':I[_0x523684(0x22c)],'routeKey':_0x504ce8,'routeType':'','data':_0x1a74ed});}catch(_0x5c689f){this[_0x523684(0x2ec)]['error'](_0x5c689f);}}[_0x2e5b1c(0x371)](){const _0x4b52fe=_0x2e5b1c;var _0x5b485c;this[_0x4b52fe(0x2e3)]=window[_0x4b52fe(0x1f4)](()=>{const _0x1c20c2=_0x4b52fe;this[_0x1c20c2(0x2e3)]=null,this[_0x1c20c2(0x396)][_0x1c20c2(0x367)]({'type':_0x68ddaa[_0x1c20c2(0x253)],'content':this[_0x1c20c2(0x452)]['t']('session.collaboration-timeout')});},(_0x5b485c=this[_0x4b52fe(0x338)][_0x4b52fe(0x142)](Ns))!=null?_0x5b485c:ys);}[_0x2e5b1c(0x1c9)](){const _0x23b8b1=_0x2e5b1c;this[_0x23b8b1(0x2e3)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x359754){const _0x3e9bb3=_0x2e5b1c;if(!this[_0x3e9bb3(0x178)])return;const {data:_0x46dc0c}=_0x359754,{unitID:_0x1ebf52,changeset:_0x3594c1}=_0x46dc0c,{mutations:_0x3b937d,type:_0x2bc192}=_0x3594c1;this[_0x3e9bb3(0x418)]={'unitId':_0x1ebf52,'type':_0x2bc192,'startTime':performance[_0x3e9bb3(0x31d)](),'stopTime':0x0,'duration':0x0,'size':jn(_0x3b937d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x4f0540=_0x2e5b1c;if(this[_0x4f0540(0x178)]){if(!this['_telemetryInfo']){this['_logService'][_0x4f0540(0x30b)](_0x4f0540(0x185),_0x4f0540(0x235));return;}this[_0x4f0540(0x418)][_0x4f0540(0x388)]=performance[_0x4f0540(0x31d)](),this[_0x4f0540(0x418)][_0x4f0540(0x399)]=this[_0x4f0540(0x418)][_0x4f0540(0x388)]-this[_0x4f0540(0x418)][_0x4f0540(0x32e)],this[_0x4f0540(0x41d)][_0x4f0540(0x213)]($n,this[_0x4f0540(0x418)]),this[_0x4f0540(0x418)]=null;}}[_0x2e5b1c(0x194)](){const _0x34eccb=_0x2e5b1c;this[_0x34eccb(0x418)]=null;}};function _0x5851(_0x28761a,_0x28dfbc){const _0x3164bd=_0x3164();return _0x5851=function(_0x585103,_0x49a319){_0x585103=_0x585103-0x121;let _0x5b25b1=_0x3164bd[_0x585103];return _0x5b25b1;},_0x5851(_0x28761a,_0x28dfbc);}bt=Wn([X(0x2,_0x1cafe9),X(0x3,_0x4c2a62),X(0x4,_0x29e945),X(0x5,_0x401b9d),X(0x6,_0x5c7fae(_0x12e5b3)),X(0x7,_0x5c7fae(oe)),X(0x8,_0x5c7fae(Ls)),X(0x9,_0x5723b6(_0x45444c))],bt);var Gn=Object[_0x2e5b1c(0x2de)],Yn=Object[_0x2e5b1c(0x41c)],Kn=(_0x40db65,_0xd8e092,_0x59f2b0,_0x2a2955)=>{const _0x3132de=_0x2e5b1c;for(var _0x95b6eb=_0x2a2955>0x1?void 0x0:_0x2a2955?Yn(_0xd8e092,_0x59f2b0):_0xd8e092,_0x447ae3=_0x40db65[_0x3132de(0x1bb)]-0x1,_0x55c86f;_0x447ae3>=0x0;_0x447ae3--)(_0x55c86f=_0x40db65[_0x447ae3])&&(_0x95b6eb=(_0x2a2955?_0x55c86f(_0xd8e092,_0x59f2b0,_0x95b6eb):_0x55c86f(_0x95b6eb))||_0x95b6eb);return _0x2a2955&&_0x95b6eb&&Gn(_0xd8e092,_0x59f2b0,_0x95b6eb),_0x95b6eb;},ue=(_0x76b53b,_0x280a99)=>(_0x432e94,_0x364d93)=>_0x280a99(_0x432e94,_0x364d93,_0x76b53b);let ae=class extends _0x36403b{constructor(_0x1e4de9,_0x48b75d,_0x105e52,_0x282577,_0x410226,_0x36f661){const _0x1dd0d7=_0x2e5b1c;super(),l(this,_0x1dd0d7(0x128),new _0x16e81a(void 0x0)),l(this,_0x1dd0d7(0x13a),this[_0x1dd0d7(0x128)][_0x1dd0d7(0x2f8)]()),l(this,_0x1dd0d7(0x184),null),l(this,_0x1dd0d7(0x17a),new Map()),l(this,_0x1dd0d7(0x279),new _0x16e81a(W[_0x1dd0d7(0x16e)])),l(this,'status$',this[_0x1dd0d7(0x279)][_0x1dd0d7(0x2f8)]()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x1dd0d7(0x1cf),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x1dd0d7(0x1e0)),(this[_0x1dd0d7(0x3ac)]=_0x1e4de9,this[_0x1dd0d7(0x452)]=_0x48b75d,this['_messageService']=_0x105e52,this[_0x1dd0d7(0x2ec)]=_0x282577,this[_0x1dd0d7(0x338)]=_0x410226,this[_0x1dd0d7(0x28b)]=_0x36f661);}get[_0x2e5b1c(0x1fe)](){const _0x23a66b=_0x2e5b1c;return this['_socket$'][_0x23a66b(0x131)]();}['dispose'](){const _0x86c530=_0x2e5b1c;super[_0x86c530(0x2fe)](),this[_0x86c530(0x17a)][_0x86c530(0x1cd)](_0x52f5a3=>_0x52f5a3['dispose']()),this[_0x86c530(0x17a)][_0x86c530(0x198)](),this[_0x86c530(0x279)][_0x86c530(0x447)]();}async[_0x2e5b1c(0x205)](_0x54aa4e){const _0x575620=_0x2e5b1c;if(this[_0x575620(0x17a)][_0x575620(0x250)](_0x54aa4e))return this[_0x575620(0x17a)][_0x575620(0x18f)](_0x54aa4e);this[_0x575620(0x1a1)]();const _0x1b6211=this[_0x575620(0x3ac)]['createInstance'](bt,_0x54aa4e,this[_0x575620(0x128)][_0x575620(0x2f8)]());return this['_sessions'][_0x575620(0x1e1)](_0x54aa4e,_0x1b6211),_0x1b6211;}[_0x2e5b1c(0x31a)](_0x697c09){const _0x137834=_0x2e5b1c;var _0x3f3553;const _0x2230e6=this[_0x137834(0x17a)]['get'](_0x697c09);_0x2230e6&&(this[_0x137834(0x17a)][_0x137834(0x18d)](_0x697c09),_0x2230e6[_0x137834(0x40e)]()),this['_sessions'][_0x137834(0x362)]||(_0x3f3553=this[_0x137834(0x1fe)])==null||_0x3f3553[_0x137834(0x40e)]();}['reconnect'](){const _0x5a35b9=_0x2e5b1c;this[_0x5a35b9(0x1cf)]=0x0,this[_0x5a35b9(0x2b8)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x5a35b9(0x2b8)]=null),this['_tryReconnect']();}[_0x2e5b1c(0x329)](){const _0xf7c1f3=_0x2e5b1c;var _0xce65ec;const _0x109144=(_0xce65ec=this[_0xf7c1f3(0x338)][_0xf7c1f3(0x142)](gn))!=null?_0xce65ec:Sn,_0x5eb6af=this[_0xf7c1f3(0x28b)][_0xf7c1f3(0x181)](_0x109144);return this[_0xf7c1f3(0x184)]=_0x5eb6af,_0x5eb6af;}[_0x2e5b1c(0x1a1)](){const _0x1fb1c0=_0x2e5b1c;var _0x5cd866,_0x49b01b;try{const _0x3507e5=(_0x49b01b=(_0x5cd866=this['_socket'])!=null?_0x5cd866:this[_0x1fb1c0(0x184)])!=null?_0x49b01b:this[_0x1fb1c0(0x329)]();if(_0x3507e5){const _0x2ab53a=_0x3507e5[_0x1fb1c0(0x1ef)];_0x3507e5['send']=_0x571029=>(this[_0x1fb1c0(0x36b)](),_0x2ab53a[_0x1fb1c0(0x446)](_0x3507e5,[_0x571029])),_0x3507e5[_0x1fb1c0(0x1f3)][_0x1fb1c0(0x3c4)](_0x49deeb=>this[_0x1fb1c0(0x22a)](_0x3507e5,_0x49deeb)),_0x3507e5[_0x1fb1c0(0x155)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x1dc9b2=>this['_logService']['error'](_0x1fb1c0(0x38c),_0x1dc9b2)),_0x3507e5[_0x1fb1c0(0x46c)]['pipe'](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](()=>{const _0x25adb9=_0x1fb1c0;this[_0x25adb9(0x1d7)](_0x3507e5);}),_0x3507e5[_0x1fb1c0(0x32d)][_0x1fb1c0(0x195)](_0x590d71(0x1))[_0x1fb1c0(0x3c4)](_0x3f2c43=>{const _0x17dbd0=_0x1fb1c0;this[_0x17dbd0(0x2ec)][_0x17dbd0(0x166)]('[CollaborationSessionService]',_0x17dbd0(0x299),_0x3f2c43),this['_onConnectionFailed']();});}}catch(_0x349f3c){this[_0x1fb1c0(0x2ec)][_0x1fb1c0(0x30b)](_0x349f3c),this['_onConnectionFailed']();}}['_onConnectionOpen'](_0x4568ff){const _0x5202e6=_0x2e5b1c;this[_0x5202e6(0x2ec)][_0x5202e6(0x166)](_0x5202e6(0x217),_0x5202e6(0x187)),_0x4568ff[_0x5202e6(0x1ef)]({'cmd':I['HELLO']}),this[_0x5202e6(0x36b)](),this['_listenToOfflineEvent']();}[_0x2e5b1c(0x441)](){const _0x301a6a=_0x2e5b1c,_0x8789ae=()=>{const _0xf3539e=_0x5851;this[_0xf3539e(0x403)](),this[_0xf3539e(0x180)](),window[_0xf3539e(0x1d8)]('offline',_0x8789ae);};window[_0x301a6a(0x48d)]('offline',_0x8789ae);}['_onOffline'](){const _0x1c4ae0=_0x2e5b1c;this[_0x1c4ae0(0x273)]=!0x1,this[_0x1c4ae0(0x279)][_0x1c4ae0(0x244)](W[_0x1c4ae0(0x1ac)]),this['_socket$'][_0x1c4ae0(0x244)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ae076=_0x2e5b1c;var _0x5088bd;this[_0x5ae076(0x403)](),this[_0x5ae076(0x1cf)]<((_0x5088bd=this[_0x5ae076(0x338)][_0x5ae076(0x142)](Cn))!=null?_0x5088bd:bn)?(this[_0x5ae076(0x396)][_0x5ae076(0x367)]({'key':_0x5ae076(0x2a1),'type':_0x68ddaa[_0x5ae076(0x425)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x226))}),this[_0x5ae076(0x148)]()):(this['_messageService'][_0x5ae076(0x367)]({'key':'collaboration-session-retry','type':_0x68ddaa[_0x5ae076(0x253)],'content':this[_0x5ae076(0x452)]['t'](_0x5ae076(0x2ff))}),this['_listenToOnlineEvent']());}[_0x2e5b1c(0x180)](){const _0x10d0b7=_0x2e5b1c,_0x5a8078=()=>{const _0x3b323f=_0x5851;this[_0x3b323f(0x332)](),window[_0x3b323f(0x1d8)]('online',_0x5a8078);};window[_0x10d0b7(0x48d)](_0x10d0b7(0x364),_0x5a8078),this[_0x10d0b7(0x128)][_0x10d0b7(0x195)](_0x48e324(_0x534632=>!!_0x534632),_0x590d71(0x1))[_0x10d0b7(0x3c4)](()=>{const _0x5feb83=_0x10d0b7;window[_0x5feb83(0x1d8)](_0x5feb83(0x364),_0x5a8078);});}[_0x2e5b1c(0x148)](){const _0x16acb8=_0x2e5b1c;var _0x198d48;const _0x3e4f33=this[_0x16acb8(0x1cf)],_0x5a0971=_0x3e4f33===0x0?0x0:((_0x198d48=this[_0x16acb8(0x338)]['getConfig'](In))!=null?_0x198d48:En)*0x2**_0x3e4f33;this[_0x16acb8(0x2b8)]=window['setTimeout'](()=>{const _0x1736e8=_0x16acb8;clearTimeout(this[_0x1736e8(0x2b8)]),this[_0x1736e8(0x2b8)]=null,this['_tryEnsureSocket']();},_0x5a0971),this['_retryCount']+=0x1;}[_0x2e5b1c(0x22a)](_0x13eb8c,_0x1fbc37){const _0x24e149=_0x2e5b1c,{cmd:_0x2db9c5}=_0x1fbc37;_0x2db9c5===I['HELLO']&&!this[_0x24e149(0x273)]&&(_0x13eb8c[_0x24e149(0x2cd)]=_0x1fbc37['data']['memberID'],this[_0x24e149(0x128)][_0x24e149(0x244)](_0x13eb8c),this[_0x24e149(0x279)]['next'](W[_0x24e149(0x13f)]),this['_socketReady']=!0x0,this[_0x24e149(0x184)]=null),_0x2db9c5===I['HEARTBEAT']&&this[_0x24e149(0x2af)](),this[_0x24e149(0x36b)]();}[_0x2e5b1c(0x36b)](){const _0x4156e2=_0x2e5b1c;var _0x25d1a9;this[_0x4156e2(0x210)](),this[_0x4156e2(0x387)]=window[_0x4156e2(0x1f4)](()=>this[_0x4156e2(0x183)](),(_0x25d1a9=this['_configService']['getConfig'](pn))!=null?_0x25d1a9:vn);}['_sendHeartbeat'](){const _0x252dc3=_0x2e5b1c;this[_0x252dc3(0x1fe)]['send']({'cmd':I['HEARTBEAT']}),this[_0x252dc3(0x355)]();}['_waitForHeartbeatResponse'](){const _0x33481c=_0x2e5b1c;var _0x18d981;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x33481c(0x220)](),(_0x18d981=this[_0x33481c(0x338)][_0x33481c(0x142)](Ns))!=null?_0x18d981:ys);}['_clearHeartbeatTimer'](){const _0x118f83=_0x2e5b1c;this[_0x118f83(0x387)]!=null&&(clearTimeout(this[_0x118f83(0x387)]),this[_0x118f83(0x387)]=null);}[_0x2e5b1c(0x2af)](){const _0x546cda=_0x2e5b1c;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x546cda(0x1e0)]),this['_timeoutTimer']=null);}};ae=Kn([ue(0x0,_0x5c7fae(_0x5d259e)),ue(0x1,_0x5c7fae(_0x12e5b3)),ue(0x2,_0x29e945),ue(0x3,_0x1cafe9),ue(0x4,_0x401b9d),ue(0x5,Us)],ae);var Xn=Object[_0x2e5b1c(0x2de)],Jn=Object[_0x2e5b1c(0x41c)],zn=(_0x85e4f4,_0x576e57,_0x5396f2,_0x28af1e)=>{const _0x512518=_0x2e5b1c;for(var _0x9ca1dc=_0x28af1e>0x1?void 0x0:_0x28af1e?Jn(_0x576e57,_0x5396f2):_0x576e57,_0x4c4ae0=_0x85e4f4[_0x512518(0x1bb)]-0x1,_0x48ef41;_0x4c4ae0>=0x0;_0x4c4ae0--)(_0x48ef41=_0x85e4f4[_0x4c4ae0])&&(_0x9ca1dc=(_0x28af1e?_0x48ef41(_0x576e57,_0x5396f2,_0x9ca1dc):_0x48ef41(_0x9ca1dc))||_0x9ca1dc);return _0x28af1e&&_0x9ca1dc&&Xn(_0x576e57,_0x5396f2,_0x9ca1dc),_0x9ca1dc;},ht=(_0x25f08c,_0x306aab)=>(_0x32f8c6,_0x35c0df)=>_0x306aab(_0x32f8c6,_0x35c0df,_0x25f08c);let Ze=class{constructor(_0x2ab279,_0x128254,_0x19ee9f){const _0x267981=_0x2e5b1c;this[_0x267981(0x3ac)]=_0x2ab279,this[_0x267981(0x3cf)]=_0x128254,this['_renderManagerService']=_0x19ee9f;}[_0x2e5b1c(0x272)](_0x5e8006){const _0x4db21d=_0x2e5b1c;this[_0x4db21d(0x436)](_0x5e8006),this['_transformPreviousActiveRange'](_0x5e8006);}[_0x2e5b1c(0x28e)](_0x2c42b2){const _0x1f9a0d=_0x2e5b1c,{unitID:_0x4e2520}=_0x2c42b2,_0x38c76f=this[_0x1f9a0d(0x3c0)][_0x1f9a0d(0x474)](_0x4e2520)['with'](_0x3b1e58),{redoCache:_0x5afa3a}=_0x38c76f[_0x1f9a0d(0x288)]();if(_0x5afa3a[_0x1f9a0d(0x1bb)]===0x0)return _0x2c42b2;let _0x44502c=_0x3cea4b['deepClone'](_0x2c42b2['mutations'][0x0]);for(let _0x30b1c3=0x0;_0x30b1c3<_0x5afa3a[_0x1f9a0d(0x1bb)];_0x30b1c3++){const _0x2e369f={'id':_0x1f9a0d(0x3ad),'params':{..._0x5afa3a[_0x30b1c3]}},_0x3d8ed4=this[_0x1f9a0d(0x3cf)][_0x1f9a0d(0x2d7)](_0x44502c,_0x2e369f,!0x1);if(_0x517f04(_0x3d8ed4))throw _0x3d8ed4[_0x1f9a0d(0x30b)];_0x44502c=_0x3d8ed4[_0x1f9a0d(0x43e)];}return{..._0x3cea4b[_0x1f9a0d(0x3b7)](_0x2c42b2),'mutations':[_0x44502c]};}['_transformUndoRedoStack'](_0x4d993d){const _0x153ab8=_0x2e5b1c,{unitID:_0x2512ad}=_0x4d993d,_0x4173db=this['_renderManagerService']['getRenderById'](_0x2512ad)[_0x153ab8(0x286)](_0x3b1e58),{undoCache:_0x26747f,redoCache:_0x4b8670}=_0x4173db['getUndoRedoMutationParamsCache']();if(_0x26747f[_0x153ab8(0x1bb)]===0x0||_0x4b8670[_0x153ab8(0x1bb)]===0x0)return;const _0x8107b=[],_0x305426=[];let _0x3282f5=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]),_0x3d54ad=_0x3cea4b[_0x153ab8(0x3b7)](_0x4d993d[_0x153ab8(0x225)][0x0]);for(let _0x38a088=_0x26747f[_0x153ab8(0x1bb)]-0x1;_0x38a088>=0x0;_0x38a088--){const _0x49813e={'id':_0x153ab8(0x3ad),'params':{..._0x26747f[_0x38a088]}},_0x2de202={'id':_0x153ab8(0x3ad),'params':{..._0x4b8670[_0x38a088]}},_0x1a5735=this[_0x153ab8(0x3cf)][_0x153ab8(0x2d7)](_0x3282f5,_0x49813e,!0x1),_0x3655c2=this['_transformService']['transformMutation'](_0x3d54ad,_0x2de202,!0x1);if(_0x517f04(_0x1a5735))throw _0x1a5735[_0x153ab8(0x30b)];if(_0x517f04(_0x3655c2))throw _0x3655c2['error'];_0x8107b[_0x153ab8(0x2f4)](_0x1a5735[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x305426[_0x153ab8(0x2f4)](_0x3655c2[_0x153ab8(0x366)][_0x153ab8(0x27b)]),_0x3282f5=_0x1a5735[_0x153ab8(0x43e)],_0x3d54ad=_0x3655c2['m1Prime'];}_0x4173db['setUndoRedoMutationParamsCache']({'undoCache':_0x8107b,'redoCache':_0x305426});}[_0x2e5b1c(0x408)](_0x9dde3d){const _0x40ec69=_0x2e5b1c,{unitID:_0x12d994}=_0x9dde3d,_0x15e565=this[_0x40ec69(0x3c0)][_0x40ec69(0x474)](_0x12d994)[_0x40ec69(0x286)](_0x3b1e58),_0x1380d0=_0x15e565[_0x40ec69(0x361)]();if(_0x1380d0==null)return;const _0x227070=[{'id':_0x40ec69(0x3ad),'params':{'unitId':_0x9dde3d['unitID'],'actions':null,'textRanges':[_0x1380d0]}}],_0x49994e=this[_0x40ec69(0x3cf)][_0x40ec69(0x389)](_0x9dde3d,_0x227070);if(!_0x24d018(_0x49994e))throw _0x49994e[_0x40ec69(0x30b)];const _0xe47a43=_0x49994e[_0x40ec69(0x366)][0x0][_0x40ec69(0x27b)]['textRanges'];Array[_0x40ec69(0x434)](_0xe47a43)&&_0xe47a43[_0x40ec69(0x1bb)]&&_0x15e565['setActiveRange'](_0xe47a43[0x0]);}};Ze=zn([ht(0x0,_0x5c7fae(_0x5d259e)),ht(0x1,_0x4e0f96),ht(0x2,_0x363058)],Ze);var qn=Object['defineProperty'],Zn=Object[_0x2e5b1c(0x41c)],Qn=(_0xe83b50,_0x2caad6,_0x270acf,_0x21a9b8)=>{for(var _0x204a7c=_0x21a9b8>0x1?void 0x0:_0x21a9b8?Zn(_0x2caad6,_0x270acf):_0x2caad6,_0x10e427=_0xe83b50['length']-0x1,_0x5b6eb8;_0x10e427>=0x0;_0x10e427--)(_0x5b6eb8=_0xe83b50[_0x10e427])&&(_0x204a7c=(_0x21a9b8?_0x5b6eb8(_0x2caad6,_0x270acf,_0x204a7c):_0x5b6eb8(_0x204a7c))||_0x204a7c);return _0x21a9b8&&_0x204a7c&&qn(_0x2caad6,_0x270acf,_0x204a7c),_0x204a7c;},Re=(_0x454235,_0x2d1dc3)=>(_0x3c8165,_0xbb04a9)=>_0x2d1dc3(_0x3c8165,_0xbb04a9,_0x454235);let D=class extends _0x36403b{constructor(_0x4ba0a9,_0x1f5282,_0x2e3015,_0x170ef8,_0x18a0ab){const _0x4253fc=_0x2e5b1c;super(),l(this,_0x4253fc(0x3f9),new Map()),l(this,_0x4253fc(0x17f),new Map()),l(this,_0x4253fc(0x45f),!0x1),(this['_configService']=_0x4ba0a9,this[_0x4253fc(0x2fd)]=_0x1f5282,this[_0x4253fc(0x3d9)]=_0x2e3015,this[_0x4253fc(0x452)]=_0x170ef8,this[_0x4253fc(0x26e)]=_0x18a0ab,this[_0x4253fc(0x471)]());}[_0x2e5b1c(0x17c)](){this['_disabled']=!0x0;}[_0x2e5b1c(0x2db)](){const _0x2f914c=_0x2e5b1c;this[_0x2f914c(0x45f)]=!0x1;}[_0x2e5b1c(0x2fe)](){const _0x312b42=_0x2e5b1c;this['exhaustSavingTask']()['then'](()=>super[_0x312b42(0x2fe)]());}async[_0x2e5b1c(0x1cb)](_0xf5dc3){const _0x141417=_0x2e5b1c;return this[_0x141417(0x45f)]?null:this[_0x141417(0x2fd)]['getItem'](rs(_0xf5dc3));}async[_0x2e5b1c(0x1b7)](_0x3e339e,_0x35cc83){const _0x5c6e11=_0x2e5b1c;return!!this[_0x5c6e11(0x2fd)][_0x5c6e11(0x375)](_0x3e339e,_0x35cc83);}['updateOfflineData'](_0x3b5d06,_0x515bd3,_0x4eb792,_0x34ba58){const _0x2636cd=_0x2e5b1c,_0x499c43=this[_0x2636cd(0x26e)][_0x2636cd(0x135)](_0x3b5d06);this[_0x2636cd(0x3f9)][_0x2636cd(0x1e1)](_0x3b5d06,{'unitID':_0x3b5d06,'type':_0x515bd3,'awaitingChangeset':_0x4eb792,'mutations':_0x34ba58,'rev':_0x499c43}),this[_0x2636cd(0x17f)][_0x2636cd(0x250)](_0x3b5d06)||this[_0x2636cd(0x1f2)](_0x3b5d06);}[_0x2e5b1c(0x1f2)](_0x289791){const _0xbbd8e2=_0x2e5b1c,_0x48abbd=this[_0xbbd8e2(0x218)]();_0x48abbd===0x0?this['_saveCache'](_0x289791):this[_0xbbd8e2(0x17f)][_0xbbd8e2(0x1e1)](_0x289791,setTimeout(()=>this[_0xbbd8e2(0x1b8)](_0x289791),_0x48abbd));}[_0x2e5b1c(0x218)](){const _0x1ce285=_0x2e5b1c;var _0x5e2db4;return(_0x5e2db4=this[_0x1ce285(0x338)][_0x1ce285(0x142)](Tn))!=null?_0x5e2db4:Rn;}[_0x2e5b1c(0x1b8)](_0x3a8c9f){const _0x341924=_0x2e5b1c,_0x3ff317=this[_0x341924(0x17f)][_0x341924(0x18f)](_0x3a8c9f);return _0x3ff317!==void 0x0&&window[_0x341924(0x311)](_0x3ff317),this['_localStorageService']['setItem'](rs(_0x3a8c9f),this[_0x341924(0x3f9)][_0x341924(0x18f)](_0x3a8c9f))['then'](()=>this[_0x341924(0x17f)][_0x341924(0x18d)](_0x3a8c9f));}async['exhaustSavingTask'](){const _0x4ff0de=_0x2e5b1c,_0x4dd15b=[];this[_0x4ff0de(0x17f)][_0x4ff0de(0x1cd)]((_0x80897,_0x9f50d3)=>{const _0x407328=_0x4ff0de;window[_0x407328(0x311)](_0x80897),_0x4dd15b[_0x407328(0x2f1)](this[_0x407328(0x1b8)](_0x9f50d3)[_0x407328(0x2e6)](()=>{const _0x2e2faf=_0x407328;this[_0x2e2faf(0x17f)][_0x2e2faf(0x18d)](_0x9f50d3);}));}),await Promise[_0x4ff0de(0x363)](_0x4dd15b);}['_setupBeforeClosingHandler'](){const _0x30eb50=_0x2e5b1c;this[_0x30eb50(0x294)](this[_0x30eb50(0x3d9)][_0x30eb50(0x39f)](()=>{const _0x5b6eee=_0x30eb50;if(this['_saveTaskMap'][_0x5b6eee(0x362)])return this[_0x5b6eee(0x452)]['t'](_0x5b6eee(0x186));}));}};D=Qn([Re(0x0,_0x401b9d),Re(0x1,_0x76fe2e),Re(0x2,_0x4c2a62),Re(0x3,_0x5c7fae(_0x12e5b3)),Re(0x4,_0x5c7fae(_0x4ceeac))],D);function rs(_0x3d6f80){const _0x277f3c=_0x2e5b1c;return _0x277f3c(0x34f)+_0x3d6f80;}var er=Object[_0x2e5b1c(0x2de)],tr=Object[_0x2e5b1c(0x41c)],sr=(_0x46c7a2,_0x387fdd,_0x55741b,_0x4636f4)=>{const _0x291496=_0x2e5b1c;for(var _0x296a2a=_0x4636f4>0x1?void 0x0:_0x4636f4?tr(_0x387fdd,_0x55741b):_0x387fdd,_0xe936c7=_0x46c7a2[_0x291496(0x1bb)]-0x1,_0x41d779;_0xe936c7>=0x0;_0xe936c7--)(_0x41d779=_0x46c7a2[_0xe936c7])&&(_0x296a2a=(_0x4636f4?_0x41d779(_0x387fdd,_0x55741b,_0x296a2a):_0x41d779(_0x296a2a))||_0x296a2a);return _0x4636f4&&_0x296a2a&&er(_0x387fdd,_0x55741b,_0x296a2a),_0x296a2a;},lt=(_0x4a0c3f,_0x3fb753)=>(_0x4a8ead,_0x1ab18d)=>_0x3fb753(_0x4a8ead,_0x1ab18d,_0x4a0c3f);function ir(_0x3940dc){const {unitID:_0x477718,mutations:_0xefc395}=_0x3940dc;return{'unitId':_0x477718,'subUnitId':_0xefc395[0x0]['params']['subUnitId']};}let Qe=class{constructor(_0x568dc4,_0x1b5a2f,_0x5e3668){const _0x506ce0=_0x2e5b1c;this[_0x506ce0(0x3ac)]=_0x568dc4,this[_0x506ce0(0x3cf)]=_0x1b5a2f,this[_0x506ce0(0x200)]=_0x5e3668;}[_0x2e5b1c(0x326)](_0x2dbf45){const _0x18dec4=_0x2e5b1c;var _0x71e553,_0x2262c7,_0x381555,_0x2db828,_0x4100e1;const _0xfcb7dd=this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x85923d),{unitId:_0x173b53,subUnitId:_0x101d56}=ir(_0x2dbf45),_0x35481e=_0xfcb7dd[_0x18dec4(0x409)](_0x173b53)[_0x18dec4(0x460)](),_0x783ab7=(_0x2262c7=(_0x71e553=this[_0x18dec4(0x200)][_0x18dec4(0x201)](_0x173b53))==null?void 0x0:_0x71e553['getActiveSheet']())==null?void 0x0:_0x2262c7[_0x18dec4(0x3b5)]();if(_0x35481e[_0x18dec4(0x1bb)]===0x0||!_0x173b53||!_0x101d56)return;const _0x3c8026=[{'id':_0x2498cc['id'],'params':{'unitId':_0x173b53,'subUnitId':_0x783ab7,'selections':_0x3cea4b[_0x18dec4(0x3b7)](_0x35481e)}}],_0x49268a=this[_0x18dec4(0x3cf)][_0x18dec4(0x389)](_0x2dbf45,_0x3c8026);if(!_0x24d018(_0x49268a))throw _0x49268a['error'];const _0x4365d2=(_0x4100e1=(_0x2db828=(_0x381555=_0x49268a[_0x18dec4(0x366)][0x0])==null?void 0x0:_0x381555['params'])==null?void 0x0:_0x2db828[_0x18dec4(0x230)])!=null?_0x4100e1:_0x35481e;Array[_0x18dec4(0x434)](_0x4365d2)&&_0x4365d2[_0x18dec4(0x1bb)]&&this[_0x18dec4(0x3ac)][_0x18dec4(0x18f)](_0x36a317)[_0x18dec4(0x335)](_0x2498cc['id'],{'unitId':_0x173b53,'subUnitId':_0x101d56,'selections':_0x4365d2});}};Qe=sr([lt(0x0,_0x5c7fae(_0x5d259e)),lt(0x1,_0x4e0f96),lt(0x2,_0x30b2f2)],Qe);const it=_0x5a3236('univer-pro.collaboration-client.single-active-unit-service');var $s=(_0x31f440=>(_0x31f440[_0x31f440[_0x2e5b1c(0x3f0)]=0x0]=_0x2e5b1c(0x3f0),_0x31f440[_0x31f440[_0x2e5b1c(0x1f1)]=0x1]='OTHER_CLIENTS_EDITING',_0x31f440))($s||{});const os=0x7530,as=_0x2e5b1c(0x2e0);class nr extends _0x36403b{constructor(){const _0x7efbe8=_0x2e5b1c;super(),l(this,'_id',_0x3cea4b[_0x7efbe8(0x1ce)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x7efbe8(0x38d),new Map()),l(this,_0x7efbe8(0x243),null),l(this,_0x7efbe8(0x43b),new Map()),l(this,_0x7efbe8(0x2b0),new Map()),this[_0x7efbe8(0x42f)]();}[_0x2e5b1c(0x2fe)](){const _0x34b3ee=_0x2e5b1c;super[_0x34b3ee(0x2fe)](),this[_0x34b3ee(0x43b)][_0x34b3ee(0x1cd)]((_0x4eb34c,_0x2d35b0)=>this[_0x34b3ee(0x468)](_0x2d35b0)),this[_0x34b3ee(0x243)]&&window[_0x34b3ee(0x14f)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x195798){return this['_ensureSubject'](_0x195798)['pipe'](_0x24665d());}[_0x2e5b1c(0x461)](_0x4e0ca1){const _0x30c4bf=_0x2e5b1c;this[_0x30c4bf(0x3b4)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x30c4bf(0x3b4)]['add'](_0x4e0ca1),this['_send']({'type':0x0,'memberID':this[_0x30c4bf(0x386)],'unitIDs':[_0x4e0ca1],'isForwarded':!0x1});}[_0x2e5b1c(0x334)](_0xc36e05){const _0x49c9fc=_0x2e5b1c;this['_selfUnitIDs']['delete'](_0xc36e05),this[_0x49c9fc(0x3b4)]['size']===0x0&&this[_0x49c9fc(0x243)]&&window[_0x49c9fc(0x14f)](this['_heartbeatTimer']);}[_0x2e5b1c(0x42f)](){const _0xa58483=_0x2e5b1c;this[_0xa58483(0x294)](_0x29a7b(_0x4dbad7(window,_0xa58483(0x417))[_0xa58483(0x3c4)](_0x2313e7=>{const _0x5a14f4=_0xa58483;if(_0x2313e7['key']!==as||!_0x2313e7[_0x5a14f4(0x312)])return;const _0x3752fd=JSON['parse'](_0x2313e7[_0x5a14f4(0x312)]);this[_0x5a14f4(0x3ba)](_0x3752fd);}))),window['addEventListener']('unload',()=>this[_0xa58483(0x3c1)]({'type':0x1,'memberID':this[_0xa58483(0x386)],'unitIDs':Array[_0xa58483(0x1bf)](this[_0xa58483(0x3b4)])}));}[_0x2e5b1c(0x3ba)](_0x4693b4){const _0xbd49c=_0x2e5b1c;switch(_0x4693b4[_0xbd49c(0x255)]){case 0x0:this[_0xbd49c(0x3b6)](_0x4693b4);break;case 0x1:this[_0xbd49c(0x287)](_0x4693b4);break;case 0x2:this['_handleHeartbeatEvent'](_0x4693b4);break;}}[_0x2e5b1c(0x3b6)](_0x38f591){const _0x105998=_0x2e5b1c,{unitIDs:_0x38793a,memberID:_0x3427da,isForwarded:_0xb245ed}=_0x38f591;_0x38793a['forEach'](_0xdd6450=>{const _0x36fff5=_0x5851;if(!_0xb245ed&&this[_0x36fff5(0x38d)]['has'](_0xdd6450)&&this[_0x36fff5(0x40f)](_0xdd6450)['next'](0x1),!this[_0x36fff5(0x38d)][_0x36fff5(0x250)](_0xdd6450)||!this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)[_0x36fff5(0x250)](_0x3427da)){const _0x1c4345=this[_0x36fff5(0x38d)][_0x36fff5(0x18f)](_0xdd6450)||new Set();_0x1c4345['add'](_0x3427da),this[_0x36fff5(0x38d)]['set'](_0xdd6450,_0x1c4345),this['_scheduleClearOtherTimer'](_0x3427da);}}),_0xb245ed||this[_0x105998(0x3c1)]({'type':0x0,'memberID':this[_0x105998(0x386)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2e5b1c(0x473)](_0x5c55c2){const _0x7c7a5=_0x2e5b1c;this[_0x7c7a5(0x468)](_0x5c55c2);const _0x46af48=window[_0x7c7a5(0x1f4)](()=>{const _0x49911b=_0x7c7a5;this[_0x49911b(0x38d)][_0x49911b(0x1cd)](_0x537973=>{_0x537973['delete'](_0x5c55c2);});},os*0x2);this['_clearOtherTimers'][_0x7c7a5(0x1e1)](_0x5c55c2,_0x46af48);}[_0x2e5b1c(0x468)](_0x259006){const _0x4c5738=_0x2e5b1c;if(this['_clearOtherTimers'][_0x4c5738(0x250)](_0x259006)){const _0x3dda27=this[_0x4c5738(0x43b)][_0x4c5738(0x18f)](_0x259006);_0x3dda27&&window[_0x4c5738(0x311)](_0x3dda27),this[_0x4c5738(0x43b)][_0x4c5738(0x1e1)](_0x259006,null);}}[_0x2e5b1c(0x287)](_0xc24e1f){const _0x2ffd28=_0x2e5b1c,{memberID:_0x18beed,unitIDs:_0x239794}=_0xc24e1f;_0x239794[_0x2ffd28(0x1cd)](_0x4a961d=>{const _0x1addc2=_0x2ffd28;var _0x3dfa8f;const _0x335413=this[_0x1addc2(0x38d)][_0x1addc2(0x18f)](_0x4a961d);_0x335413&&(_0x335413[_0x1addc2(0x18d)](_0x18beed),(_0x3dfa8f=this['_ensureSubject'](_0x4a961d))==null||_0x3dfa8f['next'](_0x335413[_0x1addc2(0x362)]===0x0?0x0:0x1));}),this[_0x2ffd28(0x468)](_0x18beed);}[_0x2e5b1c(0x1f5)](_0x2c592c){const _0x4e2649=_0x2e5b1c;this[_0x4e2649(0x473)](_0x2c592c[_0x4e2649(0x2cd)]);}[_0x2e5b1c(0x3c1)](_0x23ad40){const _0x95460a=_0x2e5b1c;localStorage['setItem'](as,JSON[_0x95460a(0x3d7)](_0x23ad40));}[_0x2e5b1c(0x2a7)](){const _0xaefb24=_0x2e5b1c;this[_0xaefb24(0x243)]=window[_0xaefb24(0x206)](()=>{const _0x251bf9=_0xaefb24;this[_0x251bf9(0x3c1)]({'type':0x2,'memberID':this[_0x251bf9(0x386)]});},os);}[_0x2e5b1c(0x40f)](_0x39911){const _0x2ecf34=_0x2e5b1c;return this[_0x2ecf34(0x2b0)][_0x2ecf34(0x250)](_0x39911)||this['_unitStatus'][_0x2ecf34(0x1e1)](_0x39911,new _0x16e81a(0x0)),this[_0x2ecf34(0x2b0)]['get'](_0x39911);}}function js(_0x5ca839){const _0x583c58=_0x2e5b1c;let _0x1ef87c='';for(const _0x1babab of _0x5ca839){const {startOffset:_0x3462ab,endOffset:_0x315f72,isActive:_0x5dbf62}=_0x1babab;_0x1ef87c[_0x583c58(0x1bb)]&&(_0x1ef87c+=','),_0x1ef87c+=_0x3462ab+':'+_0x315f72+':'+(_0x5dbf62?'1':'0');}return _0x1ef87c;}function rr(_0x3f17f4){const _0x3cd5ba=_0x2e5b1c,_0x59154f=_0x3f17f4['split'](','),_0x45311a=[];for(const _0xa891b of _0x59154f){const [_0xb047b,_0x448fd9,_0x59da7e]=_0xa891b[_0x3cd5ba(0x337)](':');_0x45311a[_0x3cd5ba(0x2f1)]({'startOffset':Number(_0xb047b),'endOffset':Number(_0x448fd9),'collapsed':_0xb047b===_0x448fd9,'isActive':_0x59da7e==='1'});}return _0x45311a[_0x3cd5ba(0x16b)](_0xe8bfa9=>_0xe8bfa9['isActive'])||(_0x45311a[0x0][_0x3cd5ba(0x3e7)]=!0x0),_0x45311a;}class Bt extends _0x4bff65{constructor(){const _0x3b9bc7=_0x2e5b1c;super(...arguments),l(this,_0x3b9bc7(0x428),new _0x16e81a(null)),l(this,_0x3b9bc7(0x39e),this['_collabCursorState$'][_0x3b9bc7(0x2f8)]());}[_0x2e5b1c(0x3cd)](_0x19d3b){const _0x51d9f4=_0x2e5b1c,{unitID:_0x18a532,memberID:_0x1b97c8,textRanges:_0x51bee1}=_0x19d3b,_0x53114e=js(_0x51bee1),_0x448c0e={'unitID':_0x18a532,'memberID':_0x1b97c8,'selection':_0x53114e};this[_0x51d9f4(0x428)][_0x51d9f4(0x244)](_0x448c0e);}}var or=Object['defineProperty'],ar=Object['getOwnPropertyDescriptor'],cr=(_0x4d0c04,_0x3aa662,_0x4d29ae,_0x41c046)=>{const _0x21d114=_0x2e5b1c;for(var _0x71c1ba=_0x41c046>0x1?void 0x0:_0x41c046?ar(_0x3aa662,_0x4d29ae):_0x3aa662,_0x3433bd=_0x4d0c04[_0x21d114(0x1bb)]-0x1,_0x51c78d;_0x3433bd>=0x0;_0x3433bd--)(_0x51c78d=_0x4d0c04[_0x3433bd])&&(_0x71c1ba=(_0x41c046?_0x51c78d(_0x3aa662,_0x4d29ae,_0x71c1ba):_0x51c78d(_0x71c1ba))||_0x71c1ba);return _0x41c046&&_0x71c1ba&&or(_0x3aa662,_0x4d29ae,_0x71c1ba),_0x71c1ba;},cs=(_0x46955b,_0x1b8d76)=>(_0x2b19db,_0x46a541)=>_0x1b8d76(_0x2b19db,_0x46a541,_0x46955b);let et=class{constructor(_0x275317,_0x568399){const _0x3fbe55=_0x2e5b1c;this[_0x3fbe55(0x3ac)]=_0x275317,this[_0x3fbe55(0x3cf)]=_0x568399;}['transformSelections'](_0x45baaa){const _0x22aa81=_0x2e5b1c;var _0x31fa2e;const _0x539c7d=this[_0x22aa81(0x3ac)][_0x22aa81(0x18f)](_0x1dbfad),_0x42f5cb=(_0x31fa2e=_0x539c7d[_0x22aa81(0x16f)]())!=null?_0x31fa2e:[];if(_0x42f5cb[_0x22aa81(0x1bb)]===0x0)return;const _0x1555f4=[{'id':_0x22aa81(0x3ad),'params':{'unitId':_0x45baaa[_0x22aa81(0x3a4)],'actions':null,'textRanges':_0x42f5cb}}],_0x29ac0e=this[_0x22aa81(0x3cf)]['transformMutationsWithChangeset'](_0x45baaa,_0x1555f4);if(!_0x24d018(_0x29ac0e))throw _0x29ac0e[_0x22aa81(0x30b)];const _0x2195d8=_0x29ac0e[_0x22aa81(0x366)][0x0][_0x22aa81(0x27b)]['textRanges'];Array[_0x22aa81(0x434)](_0x2195d8)&&_0x2195d8[_0x22aa81(0x1bb)]&&_0x539c7d[_0x22aa81(0x3ff)](_0x2195d8,!0x1);}};et=cr([cs(0x0,_0x5c7fae(_0x5d259e)),cs(0x1,_0x4e0f96)],et);const hr=new Set([_0x5a0458['id']]);function hs(_0x13f075,_0x40f5bf,_0x491848,_0x1823eb,_0x242fec){const _0x141ff7=_0x2e5b1c;var _0x580e8a,_0x103d96,_0x9cae50,_0x419a7e;const _0x3e007e=[];for(const _0x2c077f of _0x13f075)if(hr[_0x141ff7(0x250)](_0x2c077f['id'])){if(_0x3e007e[_0x141ff7(0x1bb)]>0x0)break;_0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);break;}else _0x3e007e[_0x141ff7(0x2f1)](_0x2c077f);const _0x405b02=(_0x103d96=(_0x580e8a=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x580e8a[_0x141ff7(0x2ea)])!=null?_0x103d96:_0x141ff7(0x21e),_0x277c41=(_0x419a7e=(_0x9cae50=_0x242fec[_0x141ff7(0x3a5)]())==null?void 0x0:_0x9cae50[_0x141ff7(0x2cd)])!=null?_0x419a7e:'unknown';return{'changeset':{'unitID':_0x40f5bf,'type':_0x2e5178(_0x491848[_0x141ff7(0x216)](_0x40f5bf)),'baseRev':_0x1823eb[_0x141ff7(0x135)](_0x40f5bf),'revision':0x0,'userID':_0x405b02,'memberID':_0x277c41,'mutations':_0x3e007e},'pendingMutations':_0x13f075[_0x141ff7(0x2d3)](_0x3e007e[_0x141ff7(0x1bb)])};}function lr(_0x133e7d,_0x5bf88f,_0x44a0f3,_0x17db67,_0x116712){const _0x4710f3=_0x2e5b1c;var _0x17d141,_0x181ddf,_0x13b93b,_0x1bbb79;const _0x3f881b=[_0x133e7d['reduce']((_0x23bcfe,_0xaf5827)=>{const _0x33e3f7=_0x5851;var _0x2e4e07;const {id:_0x4eea42}=_0x23bcfe,{id:_0x31bfa3,type:_0x419bf9}=_0xaf5827,_0x11ea48=(_0x2e4e07=_0x23bcfe[_0x33e3f7(0x27b)])!=null?_0x2e4e07:{'actions':null},_0x1124a4=_0xaf5827[_0x33e3f7(0x27b)];if(_0x4eea42&&_0x4eea42!==_0x31bfa3)throw new Error(_0x33e3f7(0x3ef)+_0x4eea42+_0x33e3f7(0x1a7)+_0x31bfa3+'.');return{..._0x23bcfe,'id':_0x31bfa3,'type':_0x419bf9,'params':{'unitId':_0x1124a4[_0x33e3f7(0x275)],'textRanges':_0x1124a4[_0x33e3f7(0x43f)],'actions':_0x51b925['compose'](_0x11ea48[_0x33e3f7(0x1ba)],_0x1124a4[_0x33e3f7(0x1ba)])}};},{})],_0x16e335=(_0x181ddf=(_0x17d141=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x17d141[_0x4710f3(0x2ea)])!=null?_0x181ddf:_0x4710f3(0x21e),_0x3ffc08=(_0x1bbb79=(_0x13b93b=_0x116712[_0x4710f3(0x3a5)]())==null?void 0x0:_0x13b93b[_0x4710f3(0x2cd)])!=null?_0x1bbb79:'unknown';return{'changeset':{'unitID':_0x5bf88f,'type':_0x2e5178(_0x44a0f3[_0x4710f3(0x216)](_0x5bf88f)),'baseRev':_0x17db67['getCurrentRevForDocument'](_0x5bf88f),'revision':0x0,'userID':_0x16e335,'memberID':_0x3ffc08,'mutations':_0x3f881b},'pendingMutations':[]};}const _r={'id':_0x39f7b4['id'],'type':_0x32e0b0[_0x2e5b1c(0x368)],'params':{}};var ur=Object[_0x2e5b1c(0x2de)],dr=Object['getOwnPropertyDescriptor'],he=(_0x5a5762,_0x346997,_0x2987a0,_0x3aaf0b)=>{const _0x2e0715=_0x2e5b1c;for(var _0x8bc20e=_0x3aaf0b>0x1?void 0x0:_0x3aaf0b?dr(_0x346997,_0x2987a0):_0x346997,_0x58ceb2=_0x5a5762[_0x2e0715(0x1bb)]-0x1,_0x42e6ff;_0x58ceb2>=0x0;_0x58ceb2--)(_0x42e6ff=_0x5a5762[_0x58ceb2])&&(_0x8bc20e=(_0x3aaf0b?_0x42e6ff(_0x346997,_0x2987a0,_0x8bc20e):_0x42e6ff(_0x8bc20e))||_0x8bc20e);return _0x3aaf0b&&_0x8bc20e&&ur(_0x346997,_0x2987a0,_0x8bc20e),_0x8bc20e;},f=(_0x2b5cde,_0x5165d5)=>(_0x4ff7b5,_0x417033)=>_0x5165d5(_0x4ff7b5,_0x417033,_0x2b5cde),w=(_0x51c14f=>(_0x51c14f['NOT_COLLAB']='not_collab',_0x51c14f[_0x2e5b1c(0x421)]=_0x2e5b1c(0x305),_0x51c14f[_0x2e5b1c(0x314)]=_0x2e5b1c(0x293),_0x51c14f[_0x2e5b1c(0x3c8)]=_0x2e5b1c(0x427),_0x51c14f[_0x2e5b1c(0x478)]=_0x2e5b1c(0x15a),_0x51c14f['FETCH_MISS']=_0x2e5b1c(0x251),_0x51c14f[_0x2e5b1c(0x298)]=_0x2e5b1c(0x211),_0x51c14f[_0x2e5b1c(0x1ac)]=_0x2e5b1c(0x3e4),_0x51c14f))(w||{});class le{constructor(_0x531dd9,_0x4c8cc9,_0x291ad9,_0xd7a85f,_0x494706,_0x19ae87,_0x24020c,_0x4989f9,_0x3ffa41){const _0x1ab8ab=_0x2e5b1c;l(this,_0x1ab8ab(0x448),null),l(this,'_pendingMutations',[]),(this[_0x1ab8ab(0x3a4)]=_0x531dd9,this[_0x1ab8ab(0x255)]=_0x4c8cc9,this[_0x1ab8ab(0x1aa)]=_0x494706,this['_commandService']=_0x19ae87,this[_0x1ab8ab(0x3bf)]=_0x24020c,this[_0x1ab8ab(0x26e)]=_0x4989f9,this[_0x1ab8ab(0x170)]=_0x3ffa41,this[_0x1ab8ab(0x448)]=_0x291ad9,this[_0x1ab8ab(0x40d)]=_0xd7a85f);}['_checkMissing'](_0x588d94){const _0x239a5a=_0x2e5b1c,_0x578369=this['_revisionService']['getCurrentRevForDocument'](this['unitID']);return _0x588d94['revision']>_0x578369+0x1?(this[_0x239a5a(0x1aa)][_0x239a5a(0x2a0)]({'from':_0x578369,'to':_0x588d94[_0x239a5a(0x28f)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x1c9e34){const _0xe3e1bb=_0x2e5b1c;this[_0xe3e1bb(0x3bf)][_0xe3e1bb(0x192)](this['unitID'],_0x1c9e34);}[_0x2e5b1c(0x456)](_0x20efdd){const _0x4a0d2b=_0x2e5b1c;var _0x138983,_0x713c23;(_0x713c23=(_0x138983=this[_0x4a0d2b(0x1aa)])[_0x4a0d2b(0x3d4)])==null||_0x713c23['call'](_0x138983,_0x20efdd);}[_0x2e5b1c(0x199)](_0x3cd283){const _0x3dc5a1=_0x2e5b1c;var _0xc352d9,_0x2834b7;return(_0x2834b7=(_0xc352d9=this[_0x3dc5a1(0x1aa)])['onTransformIME'])==null?void 0x0:_0x2834b7[_0x3dc5a1(0x13d)](_0xc352d9,_0x3cd283);}[_0x2e5b1c(0x348)](_0x51c9b5){const _0x19ffe5=_0x2e5b1c;var _0x38d55e,_0x5bf81c,_0x117322;return(_0x117322=(_0x5bf81c=(_0x38d55e=this[_0x19ffe5(0x1aa)])[_0x19ffe5(0x158)])==null?void 0x0:_0x5bf81c['call'](_0x38d55e,_0x51c9b5))!=null?_0x117322:_0x51c9b5;}['_syncEditingCollabCursor'](_0x18bbb3){const _0x4e498b=_0x2e5b1c;var _0xc9a8ca,_0x17087d;if(this[_0x4e498b(0x255)]===x[_0x4e498b(0x1de)]){const {unitID:_0x5d3bd7,mutations:_0xa1875e,memberID:_0x213df3}=_0x18bbb3,_0x272dbe=_0xa1875e[0x0]['params'][_0x4e498b(0x43f)];Array['isArray'](_0x272dbe)&&_0x272dbe['length']>0x0&&((_0x17087d=(_0xc9a8ca=this[_0x4e498b(0x1aa)])['onSyncEditingCollabCursor'])==null||_0x17087d[_0x4e498b(0x13d)](_0xc9a8ca,{'unitID':_0x5d3bd7,'memberID':_0x213df3,'textRanges':_0x272dbe}));}}[_0x2e5b1c(0x3c2)](){const _0x80e328=_0x2e5b1c;this[_0x80e328(0x170)]['updateOfflineData'](this[_0x80e328(0x3a4)],this['type'],this[_0x80e328(0x448)],this[_0x80e328(0x40d)]);}['_getCurrentRevision'](){const _0x25ce6d=_0x2e5b1c;return this['_revisionService'][_0x25ce6d(0x135)](this[_0x25ce6d(0x3a4)]);}[_0x2e5b1c(0x21f)](){const _0x23d0d3=_0x2e5b1c;this['_revisionService'][_0x23d0d3(0x457)](this[_0x23d0d3(0x3a4)]);}['_executeRemoteChangeset'](_0x56e1ba){const _0x5d8ab9=_0x2e5b1c;var _0x55d121;const _0x2c9457=this['_transformRemoteChangesetByIMECache'](_0x56e1ba),_0x5da224=_0x5396fb(_0x2c9457['mutations'],this[_0x5d8ab9(0x1bd)],{'fromCollab':!0x0});if(!_0x5da224[_0x5d8ab9(0x289)])throw _0x5da224[_0x5d8ab9(0x30b)]instanceof Error?_0x5da224[_0x5d8ab9(0x30b)]:new Error((_0x55d121=_0x5da224[_0x5d8ab9(0x30b)])!=null?_0x55d121:_0x5d8ab9(0x27c));this[_0x5d8ab9(0x199)](_0x2c9457),this['_transformUndoredo'](_0x56e1ba),this[_0x5d8ab9(0x456)](_0x2c9457),this[_0x5d8ab9(0x485)](_0x2c9457),this[_0x5d8ab9(0x21f)]();}}let Se=class extends le{constructor(_0x21f720,_0x49a7ec,_0x1e5d82,_0x1cd2bd,_0x301766,_0x147ecc,_0x31a7a1,_0x1d5a37,_0x1352a4,_0x13c89c){const _0x5dd7ac=_0x2e5b1c;super(_0x21f720,_0x49a7ec,null,[],_0x1e5d82,_0x1d5a37,_0x31a7a1,_0x1cd2bd,_0x301766),l(this,_0x5dd7ac(0x450),_0x5dd7ac(0x305)),(this[_0x5dd7ac(0x3ac)]=_0x147ecc,this[_0x5dd7ac(0x2ec)]=_0x1352a4,this[_0x5dd7ac(0x3cf)]=_0x13c89c);}['appendMutation'](_0x5a83b5){const _0x2cf048=_0x2e5b1c,_0x1f3c6c=this[_0x2cf048(0x3ac)][_0x2cf048(0x254)](Y,this[_0x2cf048(0x3a4)],this['type'],[_0x5a83b5],this['_handler']);return _0x1f3c6c[_0x2cf048(0x25a)](),_0x1f3c6c[_0x2cf048(0x3c2)](),_0x1f3c6c;}[_0x2e5b1c(0x3ea)](_0x166e17){const _0x1d6f70=_0x2e5b1c;if(this[_0x1d6f70(0x32a)](_0x166e17))return this[_0x1d6f70(0x3ac)]['createInstance'](H,this['unitID'],this[_0x1d6f70(0x255)],null,[],null,[_0x166e17],this['_handler']);try{const _0x23948d=this[_0x1d6f70(0x3cf)][_0x1d6f70(0x389)](_0x166e17,[_r]);if(_0x24d018(_0x23948d)){const {c1Prime:_0x53a085}=_0x23948d;return this[_0x1d6f70(0x14c)](_0x53a085),this;}throw _0x23948d[_0x1d6f70(0x30b)];}catch(_0x2556af){return this[_0x1d6f70(0x2ec)][_0x1d6f70(0x30b)](_0x2556af),this[_0x1d6f70(0x2d4)](!0x1);}}['_onConflict'](_0x6c6972){const _0x315e1b=_0x2e5b1c;return this[_0x315e1b(0x3ac)][_0x315e1b(0x254)](Q,this[_0x315e1b(0x3a4)],this['type'],null,[],this['_handler'],_0x6c6972);}[_0x2e5b1c(0x2bd)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x58edf1=_0x2e5b1c;throw new Error(_0x58edf1(0x330));}[_0x2e5b1c(0x3e5)](){const _0xe5ca9f=_0x2e5b1c;return this[_0xe5ca9f(0x3ac)][_0xe5ca9f(0x254)](ee,this['unitID'],this[_0xe5ca9f(0x255)],null,[],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x3c9)](){const _0x2d66d1=_0x2e5b1c;throw new Error(_0x2d66d1(0x1b6));}[_0x2e5b1c(0x353)](){const _0x29e55f=_0x2e5b1c,_0x5ef838=this[_0x29e55f(0x26e)]['getCurrentRevForDocument'](this[_0x29e55f(0x3a4)]);return this[_0x29e55f(0x1aa)][_0x29e55f(0x2a0)]({'from':_0x5ef838,'to':0x0}),this[_0x29e55f(0x3ac)][_0x29e55f(0x254)](H,this[_0x29e55f(0x3a4)],this[_0x29e55f(0x255)],null,[],null,[],this[_0x29e55f(0x1aa)]);}};Se=he([f(0x3,_0x5c7fae(_0x4ceeac)),f(0x4,_0x5c7fae(D)),f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x1bd332),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96)],Se);let Y=class extends le{constructor(_0x1d35e1,_0x1e4b55,_0x3f2b7f,_0x1188ee,_0x3bda8b,_0x374a7c,_0x12d9af,_0x59b859,_0x4b24d1,_0x4bc168,_0x438a71,_0x30a5ac,_0x647bed,_0x202642){const _0x22e658=_0x2e5b1c;super(_0x1d35e1,_0x1e4b55,null,_0x3f2b7f,_0x1188ee,_0x4bc168,_0x202642,_0x374a7c,_0x12d9af),l(this,_0x22e658(0x450),_0x22e658(0x293)),l(this,'_scheduleTimestamp',null),l(this,_0x22e658(0x280),null),(this[_0x22e658(0x3ac)]=_0x3bda8b,this[_0x22e658(0x2a9)]=_0x59b859,this['_logService']=_0x4b24d1,this[_0x22e658(0x338)]=_0x438a71,this[_0x22e658(0x3cf)]=_0x30a5ac,this['_univerInstanceService']=_0x647bed);}[_0x2e5b1c(0x415)](_0x566378){const _0x2ed38d=_0x2e5b1c;return this[_0x2ed38d(0x40d)][_0x2ed38d(0x2f1)](_0x566378),this[_0x2ed38d(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x119fec){const _0x18b696=_0x2e5b1c;if(this['_checkMissing'](_0x119fec))return this['_clearScheduledTask'](),this[_0x18b696(0x3ac)]['createInstance'](H,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],null,this[_0x18b696(0x40d)],null,[_0x119fec],this[_0x18b696(0x1aa)]);try{const _0x23d438=this[_0x18b696(0x3cf)][_0x18b696(0x389)](_0x119fec,this[_0x18b696(0x40d)]);if(_0x24d018(_0x23d438)){const {c1Prime:_0x524f0e,m2Prime:_0x3e5516}=_0x23d438;this[_0x18b696(0x14c)](_0x524f0e);const _0x286bd9=this[_0x18b696(0x3ac)][_0x18b696(0x254)](Y,this[_0x18b696(0x3a4)],this[_0x18b696(0x255)],_0x3e5516,this['_handler']);return this[_0x18b696(0x29b)](),_0x286bd9[_0x18b696(0x25a)](this[_0x18b696(0x2b6)]?Math[_0x18b696(0x123)](0x0,new Date()[_0x18b696(0x237)]()-this[_0x18b696(0x2b6)]):this[_0x18b696(0x30c)]()),_0x286bd9;}throw _0x23d438['error'];}catch(_0x3cb6f4){return this[_0x18b696(0x2ec)][_0x18b696(0x30b)](_0x3cb6f4),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x97e133=_0x2e5b1c;throw new Error(_0x97e133(0x464));}['onRemoteRej'](){const _0x49be7d=_0x2e5b1c;throw new Error(_0x49be7d(0x1b9));}[_0x2e5b1c(0x3e5)](){const _0x1585f9=_0x2e5b1c;return this[_0x1585f9(0x29b)](),this['_injector'][_0x1585f9(0x254)](ee,this[_0x1585f9(0x3a4)],this['type'],null,this[_0x1585f9(0x40d)],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x25a)](_0x2db298){const _0x24c3bf=_0x2e5b1c,_0x1b6940=_0x2db298!=null?_0x2db298:this[_0x24c3bf(0x30c)]();this[_0x24c3bf(0x2b6)]=new Date()[_0x24c3bf(0x237)](),this['_sendingTimer']=window[_0x24c3bf(0x1f4)](()=>{const _0x1b614e=_0x24c3bf;this[_0x1b614e(0x29b)]();let _0x1cb5a0=null;switch(this['type']){case x[_0x1b614e(0x2c7)]:{_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this['_revisionService'],this[_0x1b614e(0x2a9)]);break;}case x['UNIVER_DOC']:{this[_0x1b614e(0x40d)][_0x1b614e(0x407)](_0x3556a8=>_0x3556a8['id']===_0xa592b4['id'])?_0x1cb5a0=lr(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]):_0x1cb5a0=hs(this[_0x1b614e(0x40d)],this[_0x1b614e(0x3a4)],this[_0x1b614e(0x1ae)],this[_0x1b614e(0x26e)],this[_0x1b614e(0x2a9)]);break;}default:throw new Error(_0x1b614e(0x1c0)+this[_0x1b614e(0x255)]+_0x1b614e(0x43c));}const {changeset:_0x3cd71c,pendingMutations:_0xbba6b5}=_0x1cb5a0;this['_handler']['onSendChangeset'](_0x3cd71c);const _0x3c9e0a=_0xbba6b5[_0x1b614e(0x1bb)]?this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](K,this[_0x1b614e(0x3a4)],this['type'],_0x3cd71c,_0xbba6b5,this[_0x1b614e(0x1aa)]):this[_0x1b614e(0x3ac)][_0x1b614e(0x254)](Z,this['unitID'],this[_0x1b614e(0x255)],_0x3cd71c,this[_0x1b614e(0x1aa)]);_0x3c9e0a[_0x1b614e(0x3c2)](),this[_0x1b614e(0x1aa)][_0x1b614e(0x2b4)](this,_0x3c9e0a);},_0x1b6940);}[_0x2e5b1c(0x30c)](){const _0x19ec82=_0x2e5b1c;var _0x11951f;return(_0x11951f=this[_0x19ec82(0x338)][_0x19ec82(0x142)](mn))!=null?_0x11951f:fn;}[_0x2e5b1c(0x3c9)](){const _0x1015d0=_0x2e5b1c;throw new Error(_0x1015d0(0x469));}[_0x2e5b1c(0x29b)](){const _0x4f11f0=_0x2e5b1c;this[_0x4f11f0(0x280)]!=null&&(clearTimeout(this[_0x4f11f0(0x280)]),this[_0x4f11f0(0x280)]=null);}[_0x2e5b1c(0x2d4)](_0x43cd34){const _0x5ca6ce=_0x2e5b1c;return this[_0x5ca6ce(0x29b)](),this[_0x5ca6ce(0x3ac)][_0x5ca6ce(0x254)](Q,this['unitID'],this[_0x5ca6ce(0x255)],null,this[_0x5ca6ce(0x40d)],this[_0x5ca6ce(0x1aa)],_0x43cd34);}};Y=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x5c7fae(oe)),f(0x8,_0x1cafe9),f(0x9,_0x36a317),f(0xa,_0x401b9d),f(0xb,_0x4e0f96),f(0xc,_0x30b2f2),f(0xd,_0x1bd332)],Y);let Z=class extends le{constructor(_0x110fd7,_0x3dc6e1,_0x88a27e,_0x58af86,_0x1ae97e,_0x4e1d5b,_0x59a675,_0x3d1cae,_0x2f4a5a,_0x5d1e4f,_0x707ee5){const _0x3d673f=_0x2e5b1c;super(_0x110fd7,_0x3dc6e1,_0x88a27e,[],_0x58af86,_0x3d1cae,_0x707ee5,_0x4e1d5b,_0x59a675),l(this,_0x3d673f(0x450),'awaiting'),(this[_0x3d673f(0x3ac)]=_0x1ae97e,this[_0x3d673f(0x2ec)]=_0x2f4a5a,this[_0x3d673f(0x3cf)]=_0x5d1e4f);}['appendMutation'](_0x2605ef){const _0x514906=_0x2e5b1c,_0x1f7161=this['_injector'][_0x514906(0x254)](K,this['unitID'],this[_0x514906(0x255)],this['_awaitingChangeset'],[_0x2605ef],this['_handler']);return _0x1f7161['_updateLocalCache'](),_0x1f7161;}[_0x2e5b1c(0x3ea)](_0x2cf0b0){const _0x42a294=_0x2e5b1c;if(this[_0x42a294(0x32a)](_0x2cf0b0))return this[_0x42a294(0x3ac)]['createInstance'](H,this[_0x42a294(0x3a4)],this['type'],this['_awaitingChangeset'],[],null,[_0x2cf0b0],this[_0x42a294(0x1aa)]);try{const _0x51eaa0=this[_0x42a294(0x3cf)][_0x42a294(0x1ad)]([_0x2cf0b0],[this[_0x42a294(0x448)]],!0x1);if(_0x71b04d(_0x51eaa0)){const {c1Prime:_0x180709,c2Prime:_0x2ddb6a}=_0x51eaa0;this[_0x42a294(0x14c)](_0x180709[0x0]),_0x2ddb6a[0x0][_0x42a294(0x24c)]=this['_getCurrentRevision']();const _0x28a64b=this[_0x42a294(0x3ac)]['createInstance'](Z,this[_0x42a294(0x3a4)],this[_0x42a294(0x255)],_0x2ddb6a[0x0],this[_0x42a294(0x1aa)]);return _0x28a64b[_0x42a294(0x3c2)](),_0x28a64b;}return this[_0x42a294(0x2d4)](!0x1);}catch(_0x3d92ff){return this[_0x42a294(0x2ec)][_0x42a294(0x30b)](_0x3d92ff),this[_0x42a294(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x2ae150){const _0x1f12ea=_0x2e5b1c,_0x592bbd=this[_0x1f12ea(0x26e)][_0x1f12ea(0x135)](this[_0x1f12ea(0x3a4)]);if(_0x2ae150[_0x1f12ea(0x28f)]<_0x592bbd-0x1)return this;if(this['_checkMissing'](_0x2ae150))return this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](H,this[_0x1f12ea(0x3a4)],this[_0x1f12ea(0x255)],null,[],this[_0x1f12ea(0x448)],[],this[_0x1f12ea(0x1aa)]);this[_0x1f12ea(0x21f)]();const _0x386bcb=this[_0x1f12ea(0x3ac)][_0x1f12ea(0x254)](Se,this['unitID'],this[_0x1f12ea(0x255)],this[_0x1f12ea(0x1aa)]);return _0x386bcb[_0x1f12ea(0x3c2)](),_0x386bcb;}[_0x2e5b1c(0x3a2)](_0x2b6d20){const _0x8a149b=_0x2e5b1c;return this[_0x8a149b(0x2d4)](!!(_0x2b6d20!=null&&_0x2b6d20['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x2e2402=_0x2e5b1c;return this[_0x2e2402(0x3ac)][_0x2e2402(0x254)](ee,this[_0x2e2402(0x3a4)],this['type'],this[_0x2e2402(0x448)],[],this[_0x2e2402(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x5f5da4=_0x2e5b1c;this['_handler'][_0x5f5da4(0x164)](this[_0x5f5da4(0x448)]);}[_0x2e5b1c(0x2d4)](_0x59e666){const _0x5ab6c5=_0x2e5b1c;return this['_injector']['createInstance'](Q,this[_0x5ab6c5(0x3a4)],this[_0x5ab6c5(0x255)],this[_0x5ab6c5(0x448)],[],this['_handler'],_0x59e666);}};Z=he([f(0x4,_0x5c7fae(_0x5d259e)),f(0x5,_0x5c7fae(_0x4ceeac)),f(0x6,_0x5c7fae(D)),f(0x7,_0x36a317),f(0x8,_0x1cafe9),f(0x9,_0x4e0f96),f(0xa,_0x1bd332)],Z);let K=class extends le{constructor(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x5dc348,_0x150079,_0x41387b,_0x1264d7,_0xe449c4,_0xf935fc,_0x269e1e){const _0x2e1594=_0x2e5b1c;super(_0x4c5584,_0x54535f,_0x48887f,_0x575277,_0x14aec7,_0x1264d7,_0x269e1e,_0x150079,_0x41387b),l(this,_0x2e1594(0x450),_0x2e1594(0x15a)),(this[_0x2e1594(0x3ac)]=_0x5dc348,this[_0x2e1594(0x2ec)]=_0xe449c4,this[_0x2e1594(0x3cf)]=_0xf935fc);}[_0x2e5b1c(0x415)](_0x1c89f0){const _0x14a29e=_0x2e5b1c;return this[_0x14a29e(0x40d)]['push'](_0x1c89f0),this;}['onRemoteChangeset'](_0x2b8e8e){const _0x2e7985=_0x2e5b1c;if(this['_checkMissing'](_0x2b8e8e))return this[_0x2e7985(0x3ac)]['createInstance'](H,this[_0x2e7985(0x3a4)],this['type'],this[_0x2e7985(0x448)],this[_0x2e7985(0x40d)],null,[_0x2b8e8e],this[_0x2e7985(0x1aa)]);try{const _0x170f60=this[_0x2e7985(0x3cf)]['transformChangesets']([_0x2b8e8e],[this['_awaitingChangeset']],!0x1);if(_0x71b04d(_0x170f60)){const {c1Prime:_0xf7f405,c2Prime:_0x1f24a8}=_0x170f60,_0x1e1790=this[_0x2e7985(0x3cf)][_0x2e7985(0x389)](_0xf7f405[0x0],this[_0x2e7985(0x40d)]);if(_0x24d018(_0x1e1790)){const {c1Prime:_0x2f0021,m2Prime:_0x5000f5}=_0x1e1790;return this[_0x2e7985(0x14c)](_0x2f0021),_0x1f24a8[0x0][_0x2e7985(0x24c)]=this[_0x2e7985(0x156)](),this['_injector'][_0x2e7985(0x254)](K,this[_0x2e7985(0x3a4)],this[_0x2e7985(0x255)],_0x1f24a8[0x0],_0x5000f5,this[_0x2e7985(0x1aa)]);}throw _0x1e1790[_0x2e7985(0x30b)];}throw _0x170f60[_0x2e7985(0x30b)];}catch(_0x1a0f91){return this[_0x2e7985(0x2ec)][_0x2e7985(0x30b)](_0x1a0f91),this[_0x2e7985(0x2d4)](!0x1);}}[_0x2e5b1c(0x2bd)](_0x336870){const _0x30a00a=_0x2e5b1c;if(this[_0x30a00a(0x32a)](_0x336870))return this[_0x30a00a(0x3ac)]['createInstance'](H,this[_0x30a00a(0x3a4)],this[_0x30a00a(0x255)],null,this[_0x30a00a(0x40d)],this[_0x30a00a(0x448)],[],this[_0x30a00a(0x1aa)]);this[_0x30a00a(0x21f)]();const _0x307ad3=this[_0x30a00a(0x3ac)][_0x30a00a(0x254)](Y,this[_0x30a00a(0x3a4)],this['type'],this[_0x30a00a(0x40d)],this['_handler']);return _0x307ad3[_0x30a00a(0x25a)](),_0x307ad3[_0x30a00a(0x3c2)](),_0x307ad3;}[_0x2e5b1c(0x3a2)](_0x1b099c){const _0x5ac9a0=_0x2e5b1c;return this[_0x5ac9a0(0x2d4)](!!(_0x1b099c!=null&&_0x1b099c['isPermissionRej']));}[_0x2e5b1c(0x3e5)](){const _0x5573c8=_0x2e5b1c;return this[_0x5573c8(0x3ac)][_0x5573c8(0x254)](ee,this[_0x5573c8(0x3a4)],this['type'],this['_awaitingChangeset'],this[_0x5573c8(0x40d)],this[_0x5573c8(0x1aa)]);}['toggleOnline'](){return this;}[_0x2e5b1c(0x3c9)](){const _0x373c5d=_0x2e5b1c;this['_handler'][_0x373c5d(0x164)](this[_0x373c5d(0x448)]);}[_0x2e5b1c(0x2d4)](_0x562f55){const _0x5f579e=_0x2e5b1c;return this[_0x5f579e(0x3ac)][_0x5f579e(0x254)](Q,this[_0x5f579e(0x3a4)],this['type'],null,this[_0x5f579e(0x40d)],this[_0x5f579e(0x1aa)],_0x562f55);}};K=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1cafe9),f(0xa,_0x4e0f96),f(0xb,_0x1bd332)],K);let Q=class extends le{constructor(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0xa73078=!0x1,_0x5962e8,_0x4b6a9b,_0x26f9fc,_0x40ae86,_0x295e8e,_0x43cabb,_0x3949f6){const _0x48bcad=_0x2e5b1c;super(_0x41aeb2,_0x3930d5,_0x1a199a,_0x110461,_0x12df4b,_0x4b6a9b,_0x26f9fc,_0x295e8e,_0x40ae86),l(this,_0x48bcad(0x450),_0x48bcad(0x211)),(this['_isPermissionRej']=_0xa73078,this[_0x48bcad(0x292)]=_0x5962e8,this['_localeService']=_0x43cabb,this[_0x48bcad(0x3ed)]=_0x3949f6,this[_0x48bcad(0x1a6)](),this[_0x48bcad(0x321)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x2e5b1c(0x3ea)](){return this;}['onRemoteAck'](){return this;}[_0x2e5b1c(0x3a2)](){return this;}[_0x2e5b1c(0x3e5)](){return this;}[_0x2e5b1c(0x405)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2e5b1c(0x321)](){const _0x33395c=_0x2e5b1c;this[_0x33395c(0x170)][_0x33395c(0x336)](this['unitID'],this[_0x33395c(0x255)],null,[]);}['_showConflictNotification'](){const _0x5428b1=_0x2e5b1c;this[_0x5428b1(0x238)]?this[_0x5428b1(0x3ed)][_0x5428b1(0x367)]({'title':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x228)),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x157)),'type':_0x5428b1(0x30b),'duration':0x0}):this[_0x5428b1(0x3ed)]['show']({'title':this[_0x5428b1(0x452)]['t']('conflict.title'),'content':this[_0x5428b1(0x452)]['t'](_0x5428b1(0x24e)),'type':_0x5428b1(0x30b),'duration':0x0});}[_0x2e5b1c(0x482)](){const _0x234539=_0x2e5b1c;this[_0x234539(0x292)][_0x234539(0x143)](new _0x477da8(this[_0x234539(0x3a4)])['id'],!0x1);}};Q=he([f(0x6,_0x5c7fae(_0x241366)),f(0x7,_0x36a317),f(0x8,_0x1bd332),f(0x9,_0x5c7fae(D)),f(0xa,_0x5c7fae(_0x4ceeac)),f(0xb,_0x5c7fae(_0x12e5b3)),f(0xc,_0x4c821a)],Q);let ee=class extends le{constructor(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x56fb81,_0x485832,_0x1f60de,_0x4f184b,_0x24ed40){const _0x388e43=_0x2e5b1c;super(_0xe6f168,_0x375fc1,_0x13e8ec,_0xd2667c,_0x145509,_0x4f184b,_0x24ed40,_0x485832,_0x1f60de),l(this,_0x388e43(0x450),_0x388e43(0x3e4)),this[_0x388e43(0x3ac)]=_0x56fb81;}[_0x2e5b1c(0x415)](_0x3b692b){const _0x59c97e=_0x2e5b1c;return this['_pendingMutations']['push'](_0x3b692b),this[_0x59c97e(0x3c2)](),this;}[_0x2e5b1c(0x3ea)](_0x246091){const _0x29c499=_0x2e5b1c;throw new Error(_0x29c499(0x3b0));}[_0x2e5b1c(0x2bd)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2e5b1c(0x3a2)](){const _0x5cbcf7=_0x2e5b1c;throw new Error(_0x5cbcf7(0x3d6));}[_0x2e5b1c(0x3e5)](){return this;}['toggleOnline'](){const _0x42b5a3=_0x2e5b1c,{_injector:_0x64d0df,_pendingMutations:_0x3d9dda,_awaitingChangeset:_0x16e5c6,unitID:_0x53655b,_handler:_0x5c9d1f,type:_0xd6243c}=this,_0x6fc97e=xs(_0x64d0df,_0x53655b,_0xd6243c,_0x16e5c6,_0x3d9dda,_0x5c9d1f);return _0x6fc97e instanceof Y?_0x6fc97e['_schedule']():(_0x6fc97e instanceof K||_0x6fc97e instanceof Z)&&_0x6fc97e[_0x42b5a3(0x3c9)](),_0x6fc97e;}[_0x2e5b1c(0x3c9)](){const _0x8fb485=_0x2e5b1c;throw new Error(_0x8fb485(0x37c));}};ee=he([f(0x5,_0x5c7fae(_0x5d259e)),f(0x6,_0x5c7fae(_0x4ceeac)),f(0x7,_0x5c7fae(D)),f(0x8,_0x36a317),f(0x9,_0x1bd332)],ee);let H=class extends le{constructor(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x2f5b7b,_0x1ea360,_0x4d9d89,_0xfecf,_0x6f1f03,_0x18a50d,_0x1281a4,_0x10fb2b,_0x1a7cf2,_0x212ade){const _0x1ef056=_0x2e5b1c;super(_0x593018,_0x314c8d,_0xfa8768,_0xbeac0b,_0x4d9d89,_0x10fb2b,_0x1a7cf2,_0x6f1f03,_0x18a50d),l(this,_0x1ef056(0x450),_0x1ef056(0x251)),(this[_0x1ef056(0x14d)]=_0x2f5b7b,this[_0x1ef056(0x1e4)]=_0x1ea360,this[_0x1ef056(0x3ac)]=_0xfecf,this['_logService']=_0x1281a4,this[_0x1ef056(0x3cf)]=_0x212ade);}[_0x2e5b1c(0x33f)](_0x464958){const _0x29994a=_0x2e5b1c;try{const _0x39c7f1=[..._0x464958,...this[_0x29994a(0x1e4)]],_0x5956ed=[this[_0x29994a(0x448)]||this[_0x29994a(0x14d)]][_0x29994a(0x133)](_0xfe5af9=>!!_0xfe5af9);let _0x190c92,_0x3f4b11;if(_0x5956ed[_0x29994a(0x1bb)]){const _0x9ce593=this[_0x29994a(0x3cf)][_0x29994a(0x1ad)](_0x39c7f1,_0x5956ed,!0x1);if(!_0x71b04d(_0x9ce593))throw _0x9ce593[_0x29994a(0x30b)];_0x190c92=_0x9ce593[_0x29994a(0x145)],_0x3f4b11=_0x9ce593['c2Prime'];}else _0x190c92=_0x39c7f1,_0x3f4b11=[];let _0x3a68a5=this[_0x29994a(0x40d)];_0x190c92[_0x29994a(0x1cd)](_0x343bb2=>{const _0x4f3f2b=_0x29994a;let _0x4b13dd;if(_0x3a68a5[_0x4f3f2b(0x1bb)]){const _0x4f1c16=this['_transformService']['transformMutationsWithChangeset'](_0x343bb2,_0x3a68a5);if(!_0x24d018(_0x4f1c16))throw _0x4f1c16[_0x4f3f2b(0x30b)];_0x4b13dd=_0x4f1c16['c1Prime'],_0x3a68a5=_0x4f1c16[_0x4f3f2b(0x366)];}else _0x4b13dd=_0x343bb2;this[_0x4f3f2b(0x14c)](_0x4b13dd);}),this[_0x29994a(0x14d)]&&this[_0x29994a(0x21f)](),this[_0x29994a(0x448)]&&_0x3f4b11['length']&&(_0x3f4b11[0x0]['baseRev']=this[_0x29994a(0x156)]());let _0x1226a9;if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]!==0x0)_0x1226a9=this['_injector'][_0x29994a(0x254)](K,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],_0x3a68a5,this[_0x29994a(0x1aa)]);else{if(this[_0x29994a(0x448)]&&_0x3a68a5[_0x29994a(0x1bb)]===0x0)_0x3f4b11[0x0][_0x29994a(0x24c)]=this['_getCurrentRevision'](),_0x1226a9=this[_0x29994a(0x3ac)][_0x29994a(0x254)](Z,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3f4b11[0x0],this[_0x29994a(0x1aa)]);else{if(_0x3a68a5[_0x29994a(0x1bb)]!==0x0){const _0xe25d59=this[_0x29994a(0x3ac)]['createInstance'](Y,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],_0x3a68a5,this['_handler']);_0xe25d59[_0x29994a(0x25a)](),_0x1226a9=_0xe25d59;}else _0x1226a9=this[_0x29994a(0x3ac)]['createInstance'](Se,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this['_handler']);}}return _0x1226a9[_0x29994a(0x3c2)](),_0x1226a9;}catch(_0x3c605f){return this[_0x29994a(0x2ec)][_0x29994a(0x30b)](_0x29994a(0x3a8),_0x29994a(0x132),_0x3c605f),this[_0x29994a(0x3ac)][_0x29994a(0x254)](Q,this[_0x29994a(0x3a4)],this[_0x29994a(0x255)],this[_0x29994a(0x448)],this[_0x29994a(0x40d)],this[_0x29994a(0x1aa)],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}['appendMutation'](_0x3bc73e){const _0x10482a=_0x2e5b1c;return this[_0x10482a(0x40d)]['push'](_0x3bc73e),this;}[_0x2e5b1c(0x3ea)](_0x579baa){const _0x5d3d05=_0x2e5b1c;return this[_0x5d3d05(0x1e4)][_0x5d3d05(0x2f1)](_0x579baa),this;}[_0x2e5b1c(0x2bd)](_0x3dd767){const _0x1b394f=_0x2e5b1c;if(this[_0x1b394f(0x448)])return this[_0x1b394f(0x14d)]=this[_0x1b394f(0x448)],this[_0x1b394f(0x448)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2e5b1c(0x3a2)](_0x54c51e){const _0x5cfdb2=_0x2e5b1c;return this[_0x5cfdb2(0x2d4)](!!(_0x54c51e!=null&&_0x54c51e[_0x5cfdb2(0x44c)]));}[_0x2e5b1c(0x3e5)](){const _0x44a3d6=_0x2e5b1c;return this[_0x44a3d6(0x3ac)][_0x44a3d6(0x254)](ee,this['unitID'],this[_0x44a3d6(0x255)],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler']);}[_0x2e5b1c(0x405)](){return this;}[_0x2e5b1c(0x2d4)](_0x3fa06d){const _0x160052=_0x2e5b1c;return this[_0x160052(0x3ac)]['createInstance'](Q,this['unitID'],this['type'],this[_0x160052(0x448)],this[_0x160052(0x40d)],this[_0x160052(0x1aa)],_0x3fa06d);}};H=he([f(0x7,_0x5c7fae(_0x5d259e)),f(0x8,_0x5c7fae(_0x4ceeac)),f(0x9,_0x5c7fae(D)),f(0xa,_0x1cafe9),f(0xb,_0x36a317),f(0xc,_0x1bd332),f(0xd,_0x4e0f96)],H);function xs(_0x492be6,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab){const _0x5656ba=_0x2e5b1c;return _0x146561&&_0x27f482[_0x5656ba(0x1bb)]?_0x492be6[_0x5656ba(0x254)](K,_0x4d0c17,_0xe5ea13,_0x146561,_0x27f482,_0x2320ab):_0x146561?_0x492be6['createInstance'](Z,_0x4d0c17,_0xe5ea13,_0x146561,_0x2320ab):_0x27f482[_0x5656ba(0x1bb)]?_0x492be6['createInstance'](Y,_0x4d0c17,_0xe5ea13,_0x27f482,_0x2320ab):_0x492be6['createInstance'](Se,_0x4d0c17,_0xe5ea13,_0x2320ab);}var mr=Object[_0x2e5b1c(0x2de)],fr=Object[_0x2e5b1c(0x41c)],Vt=(_0x4b95ae,_0x5cd61a,_0x46ad03,_0x1ba848)=>{const _0x5347b4=_0x2e5b1c;for(var _0x1e1bce=_0x1ba848>0x1?void 0x0:_0x1ba848?fr(_0x5cd61a,_0x46ad03):_0x5cd61a,_0x4688ed=_0x4b95ae[_0x5347b4(0x1bb)]-0x1,_0xc89367;_0x4688ed>=0x0;_0x4688ed--)(_0xc89367=_0x4b95ae[_0x4688ed])&&(_0x1e1bce=(_0x1ba848?_0xc89367(_0x5cd61a,_0x46ad03,_0x1e1bce):_0xc89367(_0x1e1bce))||_0x1e1bce);return _0x1ba848&&_0x1e1bce&&mr(_0x5cd61a,_0x46ad03,_0x1e1bce),_0x1e1bce;},p=(_0x2cfeda,_0xc069a4)=>(_0x547613,_0x532b22)=>_0xc069a4(_0x547613,_0x532b22,_0x2cfeda);let tt=class extends _0x4bff65{constructor(_0x369707,_0x46cd31,_0x336f35,_0x194575,_0x561b12,_0x18171c,_0x4a0276,_0x14fb1b,_0x601a27,_0xfbd1d6,_0x18ef88,_0x888358,_0x4364c7){const _0x104206=_0x2e5b1c;super(),l(this,_0x104206(0x3ec),new _0x16e81a(null)),l(this,_0x104206(0x3a7),this['_state$'][_0x104206(0x2f8)]()),l(this,_0x104206(0x219)),l(this,_0x104206(0x1d4),!0x1),l(this,_0x104206(0x281),this['state$']['pipe'](_0x464900(_0x4195b2=>_0x4195b2?_0x4195b2[_0x104206(0x450)]:w[_0x104206(0x1ac)]),_0x1aec94(0x1))),l(this,_0x104206(0x2c4),!0x1),l(this,_0x104206(0x40b),[]),(this[_0x104206(0x3a4)]=_0x369707,this[_0x104206(0x2c6)]=_0x46cd31,this[_0x104206(0x165)]=_0x336f35,this[_0x104206(0x3ac)]=_0x194575,this['_localCacheService']=_0x561b12,this[_0x104206(0x1b5)]=_0x18171c,this[_0x104206(0x452)]=_0x4a0276,this[_0x104206(0x26e)]=_0x14fb1b,this[_0x104206(0x2ec)]=_0x601a27,this[_0x104206(0x1bd)]=_0xfbd1d6,this[_0x104206(0x396)]=_0x18ef88,this[_0x104206(0x292)]=_0x888358,this[_0x104206(0x1ca)]=_0x4364c7);}get['state'](){return this['_state'];}async[_0x2e5b1c(0x124)](){const _0x1b7d84=_0x2e5b1c;if(this['state'])throw new Error(_0x1b7d84(0x144));await this[_0x1b7d84(0x42f)]();}[_0x2e5b1c(0x2d1)](){return this['_collaborationPaused']=!0x0,_0x29a7b(()=>{const _0x123399=_0x5851;this[_0x123399(0x1d4)]=!0x1,this[_0x123399(0x301)]();});}[_0x2e5b1c(0x252)](_0x1979a4){const _0x56ac7c=_0x2e5b1c;this[_0x56ac7c(0x219)]=_0x1979a4,this[_0x56ac7c(0x3ec)][_0x56ac7c(0x244)](_0x1979a4);}async[_0x2e5b1c(0x42f)](){const _0x321ba8=_0x2e5b1c;var _0x1edee0;this[_0x321ba8(0x252)](await this['_createInitialState']()),this[_0x321ba8(0x1ca)]&&((_0x1edee0=this[_0x321ba8(0x1ca)])==null||_0x1edee0['editingUnit'](this['unitID']),this[_0x321ba8(0x294)](this[_0x321ba8(0x1ca)]['getUnitStatus$'](this[_0x321ba8(0x3a4)])['subscribe'](_0x3513eb=>{const _0x3d463a=_0x321ba8;this[_0x3d463a(0x2ec)][_0x3d463a(0x166)](_0x3d463a(0x458),_0x3d463a(0x263),_0x3513eb),_0x3513eb===$s['OTHER_CLIENTS_EDITING']?(this[_0x3d463a(0x396)][_0x3d463a(0x367)]({'content':this[_0x3d463a(0x452)]['t'](_0x3d463a(0x268)),'type':_0x68ddaa[_0x3d463a(0x425)]}),this[_0x3d463a(0x292)][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x1)):this['_permissionService'][_0x3d463a(0x143)](new _0x477da8(this[_0x3d463a(0x3a4)])['id'],!0x0);})));let _0x1ccf2d=!0x1;return this['disposeWithMe'](this[_0x321ba8(0x2c6)][_0x321ba8(0x34d)][_0x321ba8(0x3c4)](_0x1c20b0=>{const _0x1a8633=_0x321ba8;_0x1c20b0===W[_0x1a8633(0x13f)]?this[_0x1a8633(0x369)](_0x1ccf2d):_0x1c20b0===W[_0x1a8633(0x1ac)]&&(_0x1ccf2d=!0x0,this['_toggleOffline']());})),this[_0x321ba8(0x294)](this[_0x321ba8(0x2c6)][_0x321ba8(0x372)][_0x321ba8(0x3c4)](_0x1e0a29=>{const _0x427905=_0x321ba8;try{switch(_0x1e0a29[_0x427905(0x2f6)]){case _0x410792[_0x427905(0x2df)]:{this[_0x427905(0x435)](_0x3b19c3(_0x1e0a29[_0x427905(0x249)]));break;}case _0x410792['CHANGESET_ACK']:{this[_0x427905(0x232)](_0x1e0a29['data']);break;}case _0x410792[_0x427905(0x38b)]:{this[_0x427905(0x2ef)]();break;}case _0x410792[_0x427905(0x3f8)]:{this[_0x427905(0x2b3)](_0x1e0a29[_0x427905(0x249)]['changesets'][_0x427905(0x1c7)](_0x35f938=>_0x3b19c3(_0x35f938)));break;}case _0x410792[_0x427905(0x459)]:this[_0x427905(0x2ef)]({'isPermissionRej':!0x0});}}catch(_0x34846d){throw console['error'](_0x427905(0x21d),_0x34846d),_0x34846d;}})),this[_0x321ba8(0x219)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x2e5b1c(0x30d)](){const _0x580c59=_0x2e5b1c;if(this[_0x580c59(0x2c4)])throw new Error(_0x580c59(0x37b));this[_0x580c59(0x2c4)]=!0x0;}[_0x2e5b1c(0x383)](_0x5147a6){const _0x18798d=_0x2e5b1c;this['_lockTransition'](),this[_0x18798d(0x252)](this[_0x18798d(0x219)][_0x18798d(0x415)](_0x5147a6)),this['_unlockTransition']();}[_0x2e5b1c(0x435)](_0x5dee92){const _0x1dc887=_0x2e5b1c;if(!(_0x5dee92[_0x1dc887(0x28f)]<=this[_0x1dc887(0x26e)][_0x1dc887(0x135)](this[_0x1dc887(0x3a4)]))){if(this['_collaborationPaused']){this[_0x1dc887(0x40b)][_0x1dc887(0x2f1)](_0x5dee92);return;}this[_0x1dc887(0x258)](_0x5dee92);}}[_0x2e5b1c(0x301)](){const _0xc7a68e=_0x2e5b1c;this['_remoteChangesetQueue'][_0xc7a68e(0x1cd)](_0x151fb7=>this[_0xc7a68e(0x258)](_0x151fb7)),this['_remoteChangesetQueue']=[];}[_0x2e5b1c(0x258)](_0x4ba80f){const _0x2495c8=_0x2e5b1c,_0x41b5d1=this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x32b)](this[_0x2495c8(0x1b5)][_0x2495c8(0x12e)][_0x2495c8(0x47a)]()['COMPRESS_MUTATION_APPLY'])(_0x4ba80f[_0x2495c8(0x225)],null)||_0x4ba80f[_0x2495c8(0x225)],_0x2e9c16={..._0x4ba80f,'mutations':_0x41b5d1};this['_lockTransition'](),this[_0x2495c8(0x252)](this[_0x2495c8(0x219)][_0x2495c8(0x3ea)](_0x2e9c16)),this[_0x2495c8(0x204)]();}[_0x2e5b1c(0x232)](_0x1e0620){const _0x569302=_0x2e5b1c;this['_lockTransition'](),this[_0x569302(0x252)](this[_0x569302(0x219)][_0x569302(0x2bd)](_0x1e0620)),this['_unlockTransition']();}[_0x2e5b1c(0x2ef)](_0x351753){const _0x34a206=_0x2e5b1c;this[_0x34a206(0x30d)](),this[_0x34a206(0x252)](this['_state'][_0x34a206(0x3a2)](_0x351753)),this[_0x34a206(0x204)]();}[_0x2e5b1c(0x2b3)](_0x2652a1){const _0x102ff3=_0x2e5b1c;if(!(this['_state']instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4d1854=_0x2652a1[_0x102ff3(0x1c7)](_0x529866=>{const _0xc10b60=_0x102ff3,_0x3cc1a2=this[_0xc10b60(0x1b5)][_0xc10b60(0x12e)][_0xc10b60(0x32b)](this[_0xc10b60(0x1b5)]['interceptor']['getInterceptPoints']()[_0xc10b60(0x328)])(_0x529866[_0xc10b60(0x225)],null)||_0x529866[_0xc10b60(0x225)];return{..._0x529866,'mutations':_0x3cc1a2};});this[_0x102ff3(0x30d)](),this[_0x102ff3(0x252)](this['_state'][_0x102ff3(0x33f)](_0x4d1854)),this['_unlockTransition']();}[_0x2e5b1c(0x3ce)](){const _0x1fb1a2=_0x2e5b1c;this[_0x1fb1a2(0x30d)](),this[_0x1fb1a2(0x252)](this['_state'][_0x1fb1a2(0x3e5)]()),this[_0x1fb1a2(0x204)]();}[_0x2e5b1c(0x369)](_0x3c7eb7=!0x1){const _0x357dab=_0x2e5b1c;this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](this[_0x357dab(0x219)][_0x357dab(0x405)]()),this[_0x357dab(0x204)]();const _0x255237=this[_0x357dab(0x219)];_0x3c7eb7&&_0x255237 instanceof Se&&(this[_0x357dab(0x30d)](),this[_0x357dab(0x252)](_0x255237[_0x357dab(0x353)]()),this[_0x357dab(0x204)]());}async['_createInitialState'](){return new Promise(_0x20cf34=>{const _0x36bbc5=_0x5851;this[_0x36bbc5(0x2c6)][_0x36bbc5(0x34d)][_0x36bbc5(0x195)](_0x219c0a(0x1))[_0x36bbc5(0x3c4)](async _0x513645=>{const _0x47b9a4=_0x36bbc5;_0x20cf34(await this['_createInitialStateImpl'](_0x513645===W[_0x47b9a4(0x13f)]));});});}['_createHandler'](){const _0x450f58=_0x2e5b1c,_0xd6b647=this[_0x450f58(0x3a4)];return{'onStateChange':(_0x36f2c1,_0x256049)=>{const _0x33b52c=_0x450f58;if(_0x36f2c1!==this[_0x33b52c(0x219)])throw new Error(_0x33b52c(0x1b0)+_0x36f2c1[_0x33b52c(0x450)]+_0x33b52c(0x1fd)+_0x256049[_0x33b52c(0x450)]+_0x33b52c(0x42e)+this['_state']['status']);this['_updateState'](_0x256049);},'onSendChangeset':_0xfdc7e9=>{const _0x454e0c=_0x450f58,_0x29ee31={'eventID':_0x410792[_0x454e0c(0x34b)],'data':{'unitID':_0xfdc7e9[_0x454e0c(0x3a4)],'unitType':this['_type'],'changeset':_0xfdc7e9,'memberID':this[_0x454e0c(0x2c6)][_0x454e0c(0x146)]()}};this['session'][_0x454e0c(0x1ef)](_0x29ee31,this[_0x454e0c(0x3a4)]);},'onMissingChangesets':({from:_0x13ddf2,to:_0x3232de})=>{const _0x301d34=_0x450f58;this['_logService'][_0x301d34(0x166)](_0x301d34(0x458),_0x301d34(0x31b)+_0x13ddf2+_0x301d34(0x45a)+_0x3232de);const _0x414327={'eventID':_0x410792[_0x301d34(0x1b3)],'data':{'unitID':_0xd6b647,'unitType':this[_0x301d34(0x165)],'from':_0x13ddf2,'to':_0x3232de}};this[_0x301d34(0x2c6)][_0x301d34(0x1ef)](_0x414327,this[_0x301d34(0x3a4)]);}};}async[_0x2e5b1c(0x29c)](_0x1cc7ef){const _0x5e9c0c=_0x2e5b1c;var _0x334c5c,_0x323c80;const _0xe9b210=await this[_0x5e9c0c(0x170)][_0x5e9c0c(0x1cb)](this[_0x5e9c0c(0x3a4)]),_0x11bca6=(_0x334c5c=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x225)])!=null?_0x334c5c:[],_0x13b5d1=(_0x323c80=_0xe9b210==null?void 0x0:_0xe9b210[_0x5e9c0c(0x35c)])!=null?_0x323c80:null,_0x5bd8d3=this[_0x5e9c0c(0x3a4)];try{this['_replayCachedMutations'](_0x13b5d1,_0x11bca6);}catch(_0x1829ac){this[_0x5e9c0c(0x2ec)][_0x5e9c0c(0x30b)](_0x1829ac);}const _0x3e957c=this[_0x5e9c0c(0x1da)]();if(_0x1cc7ef){const _0xf9eb40=xs(this[_0x5e9c0c(0x3ac)],_0x5bd8d3,this[_0x5e9c0c(0x165)],_0x13b5d1,_0x11bca6,_0x3e957c);return _0xf9eb40 instanceof Y?_0xf9eb40[_0x5e9c0c(0x25a)]():(_0xf9eb40 instanceof K||_0xf9eb40 instanceof Z)&&_0xf9eb40[_0x5e9c0c(0x3c9)](),_0xf9eb40;}return this[_0x5e9c0c(0x3ac)]['createInstance'](ee,_0x5bd8d3,this['_type'],_0x13b5d1,_0x11bca6,_0x3e957c);}[_0x2e5b1c(0x44d)](_0x24ace6,_0x1bd951){const _0x464916=_0x2e5b1c;var _0x19edf7,_0x2e95eb;const _0x8cc548=this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x32b)](this[_0x464916(0x1b5)]['interceptor'][_0x464916(0x47a)]()[_0x464916(0x328)]);(_0x19edf7=_0x8cc548((_0x24ace6==null?void 0x0:_0x24ace6['mutations'])||[],null))==null||_0x19edf7[_0x464916(0x1cd)](_0x16c50e=>this[_0x464916(0x1bd)]['executeCommand'](_0x16c50e['id'],_0x16c50e[_0x464916(0x27b)])),(_0x2e95eb=_0x8cc548(_0x1bd951||[],null))==null||_0x2e95eb[_0x464916(0x1cd)](_0x43c1f4=>this[_0x464916(0x1bd)][_0x464916(0x335)](_0x43c1f4['id'],_0x43c1f4['params']));}};tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x1cafe9),p(0x9,_0x36a317),p(0xa,_0x29e945),p(0xb,_0x241366),p(0xc,_0x5723b6(it))],tt);let Tt=class extends tt{constructor(_0x266eab,_0x48a92c,_0x4dbbbb,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x25be67,_0x1bae9d,_0x5f0a56,_0x1827ef,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92){const _0x38db37=_0x2e5b1c;super(_0x266eab,_0x4dbbbb,_0x48a92c,_0x51e5c2,_0x13242f,_0x3f936d,_0x38c6a9,_0x273c9d,_0x70c6bd,_0x2e33fa,_0x505353,_0x46f07f,_0x3adc92),this['unitID']=_0x266eab,this[_0x38db37(0x255)]=_0x48a92c,this['_docStateChangeManagerService']=_0x25be67,this[_0x38db37(0x2cf)]=_0x1bae9d,this[_0x38db37(0x291)]=_0x5f0a56,this[_0x38db37(0x490)]=_0x1827ef;}['_createHandler'](){const _0x544025=_0x2e5b1c,_0x3c5344=super[_0x544025(0x1da)]();return _0x3c5344[_0x544025(0x320)]=_0x2616b1=>this['_docTransformIMECacheService'][_0x544025(0x272)](_0x2616b1),_0x3c5344[_0x544025(0x3d4)]=_0x41bd23=>this[_0x544025(0x291)][_0x544025(0x326)](_0x41bd23),_0x3c5344['onSyncEditingCollabCursor']=_0x14e1cf=>this[_0x544025(0x490)]['syncEditingCollabCursor'](_0x14e1cf),_0x3c5344[_0x544025(0x158)]=_0xcb1e39=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0xcb1e39),_0x3c5344;}async['_init'](){const _0x431bbb=_0x2e5b1c,_0x3c2868=await super[_0x431bbb(0x42f)]();return this[_0x431bbb(0x294)](this[_0x431bbb(0x1bd)][_0x431bbb(0x20e)]((_0x306b2b,_0x482ff6)=>{const _0x275b4a=_0x431bbb;if(_0x306b2b[_0x275b4a(0x255)]!==_0x32e0b0[_0x275b4a(0x368)]||_0x482ff6!=null&&_0x482ff6['fromCollab']||_0x482ff6!=null&&_0x482ff6[_0x275b4a(0x270)])return;const _0x4d3fbe=_0x306b2b['params'];if((_0x4d3fbe==null?void 0x0:_0x4d3fbe['unitId'])!==this[_0x275b4a(0x3a4)])return;let _0x5e12bd=_0x306b2b;if(_0x5e12bd['id']===_0xa592b4['id']){const _0x19cdce=_0x5e12bd['params'];_0x5e12bd={'id':_0xa592b4['id'],'type':_0x32e0b0[_0x275b4a(0x368)],'params':{'unitId':_0x19cdce[_0x275b4a(0x275)],'actions':_0x19cdce[_0x275b4a(0x1ba)],'textRanges':null}};}const _0x4d84ab=this[_0x275b4a(0x1b5)][_0x275b4a(0x12e)][_0x275b4a(0x32b)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x5e12bd],null)||[_0x5e12bd];this['_onLocalMutation'](_0x4d84ab[0x0]);})),_0x3c2868;}};Tt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(_0x34634f)),p(0x9,_0x5c7fae(Ze)),p(0xa,_0x5c7fae(et)),p(0xb,_0x5c7fae(Bt)),p(0xc,_0x1cafe9),p(0xd,_0x36a317),p(0xe,_0x29e945),p(0xf,_0x241366),p(0x10,_0x5723b6(it))],Tt);let Rt=class extends tt{constructor(_0x262f80,_0x335104,_0x2acc1c,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x31b383,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7){const _0x3f398e=_0x2e5b1c;super(_0x262f80,_0x2acc1c,_0x335104,_0x29a3f7,_0x596fd8,_0x5eb564,_0x2cae16,_0x501fb4,_0x319bd7,_0x22f9b7,_0x1dc420,_0x8a9e3f,_0xc27cd7),this[_0x3f398e(0x3a4)]=_0x262f80,this[_0x3f398e(0x255)]=_0x335104,this[_0x3f398e(0x331)]=_0x31b383;}[_0x2e5b1c(0x1da)](){const _0x9dce1a=_0x2e5b1c,_0x54f89f=super[_0x9dce1a(0x1da)]();return _0x54f89f[_0x9dce1a(0x3d4)]=_0x3b846c=>this[_0x9dce1a(0x331)]['transformSelections'](_0x3b846c),_0x54f89f;}async[_0x2e5b1c(0x42f)](){const _0x4e699b=_0x2e5b1c,_0x2cdef6=await super[_0x4e699b(0x42f)]();return this[_0x4e699b(0x294)](this[_0x4e699b(0x1bd)]['onCommandExecuted']((_0x4a4950,_0x3b27a5)=>{const _0x4939c6=_0x4e699b;if(_0x4a4950[_0x4939c6(0x255)]!==_0x32e0b0[_0x4939c6(0x368)]||_0x3b27a5!=null&&_0x3b27a5['fromCollab']||_0x3b27a5!=null&&_0x3b27a5[_0x4939c6(0x270)])return;const _0x36f258=_0x4a4950['params'];if((_0x36f258==null?void 0x0:_0x36f258[_0x4939c6(0x275)])!==this['unitID'])return;const _0x947d24=_0x4a4950,_0x1f4749=this['_compressMutationService'][_0x4939c6(0x12e)][_0x4939c6(0x32b)](this['_compressMutationService']['interceptor'][_0x4939c6(0x47a)]()[_0x4939c6(0x2b7)])([_0x947d24],null)||[_0x947d24];this[_0x4939c6(0x383)](_0x1f4749[0x0]);})),_0x2cdef6;}};Rt=Vt([p(0x3,_0x5c7fae(_0x5d259e)),p(0x4,_0x5c7fae(D)),p(0x5,_0x5c7fae(_0xac140b)),p(0x6,_0x5c7fae(_0x12e5b3)),p(0x7,_0x5c7fae(_0x4ceeac)),p(0x8,_0x5c7fae(Qe)),p(0x9,_0x1cafe9),p(0xa,_0x36a317),p(0xb,_0x29e945),p(0xc,_0x241366),p(0xd,_0x5723b6(it))],Rt);var gr=Object['defineProperty'],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x282f42,_0x443ff8,_0x1932e3,_0x5eebd7)=>{const _0x2af0f6=_0x2e5b1c;for(var _0x368c1e=_0x5eebd7>0x1?void 0x0:_0x5eebd7?Sr(_0x443ff8,_0x1932e3):_0x443ff8,_0x533ef5=_0x282f42[_0x2af0f6(0x1bb)]-0x1,_0x51d5a3;_0x533ef5>=0x0;_0x533ef5--)(_0x51d5a3=_0x282f42[_0x533ef5])&&(_0x368c1e=(_0x5eebd7?_0x51d5a3(_0x443ff8,_0x1932e3,_0x368c1e):_0x51d5a3(_0x368c1e))||_0x368c1e);return _0x5eebd7&&_0x368c1e&&gr(_0x443ff8,_0x1932e3,_0x368c1e),_0x368c1e;},_t=(_0x2690b1,_0x398886)=>(_0x543e75,_0x175b03)=>_0x398886(_0x543e75,_0x175b03,_0x2690b1);let Ae=class extends _0x4bff65{constructor(_0x328662,_0x4ba954,_0x540a3e){const _0x2f77b3=_0x2e5b1c;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x47a81b()),(this[_0x2f77b3(0x3ac)]=_0x328662,this[_0x2f77b3(0x3f1)]=_0x4ba954,this[_0x2f77b3(0x1ae)]=_0x540a3e,this[_0x2f77b3(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x4da6a5=_0x2e5b1c;super[_0x4da6a5(0x2fe)](),this['_entities'][_0x4da6a5(0x1cd)](_0x15f317=>_0x15f317[_0x4da6a5(0x2fe)]()),this[_0x4da6a5(0x36c)]['clear']();}[_0x2e5b1c(0x350)](_0x16a76d){const _0x217514=_0x2e5b1c;var _0x37c0c2;return(_0x37c0c2=this[_0x217514(0x36c)][_0x217514(0x18f)](_0x16a76d))!=null?_0x37c0c2:null;}['getCollabEntity$'](_0x1c4ee2){const _0x3c4bed=_0x2e5b1c,_0x121c39=this[_0x3c4bed(0x350)](_0x1c4ee2);return _0x121c39?_0x8d55e(_0x121c39):this[_0x3c4bed(0x394)][_0x3c4bed(0x195)](_0x48e324(_0x2d5d87=>_0x2d5d87[_0x3c4bed(0x3a4)]===_0x1c4ee2));}['_init'](){const _0x25af9b=_0x2e5b1c;this[_0x25af9b(0x1ae)][_0x25af9b(0x1a4)](_0x3bf0d9['UNIVER_SHEET'])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))[_0x25af9b(0x3c4)](async _0x28300a=>{const _0x19dbaa=_0x25af9b,_0x2be540=_0x28300a[_0x19dbaa(0x426)](),_0x5d3151=await this[_0x19dbaa(0x2ac)](_0x2be540,x['UNIVER_SHEET']);this[_0x19dbaa(0x36c)]['set'](_0x2be540,_0x5d3151);}),this[_0x25af9b(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9[_0x25af9b(0x1de)])[_0x25af9b(0x195)](_0x2123e0(this[_0x25af9b(0x3be)]),_0x1e04ab(0x10))['pipe'](_0x48e324(_0x11a829=>!_0x11a829[_0x25af9b(0x426)]()[_0x25af9b(0x1e5)]('__')))[_0x25af9b(0x3c4)](async _0xb2b8c3=>{const _0x18a3a9=_0x25af9b,_0x51577e=_0xb2b8c3[_0x18a3a9(0x426)](),_0xc5ef93=await this['_startCollaboration'](_0x51577e,x[_0x18a3a9(0x1de)]);this[_0x18a3a9(0x36c)][_0x18a3a9(0x1e1)](_0x51577e,_0xc5ef93);}),_0x9334d7(this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9[_0x25af9b(0x2c7)]),this[_0x25af9b(0x1ae)][_0x25af9b(0x46a)](_0x3bf0d9['UNIVER_DOC']))['pipe'](_0x2123e0(this['dispose$']))['subscribe'](_0x1be065=>{const _0x41c62f=_0x25af9b,_0x5ddeba=_0x1be065['getUnitId'](),_0x57baa1=this[_0x41c62f(0x36c)]['get'](_0x5ddeba);_0x57baa1&&(_0x57baa1[_0x41c62f(0x2fe)](),this[_0x41c62f(0x36c)][_0x41c62f(0x18d)](_0x5ddeba));});}async[_0x2e5b1c(0x2ac)](_0x136772,_0xeae53){const _0x31a250=_0x2e5b1c,_0x3cca57=await this[_0x31a250(0x3f1)][_0x31a250(0x205)](_0x136772),_0x3467fb=this[_0x31a250(0x3ac)][_0x31a250(0x254)](this['_getCtorByUniverType'](_0xeae53),_0x136772,_0xeae53,_0x3cca57);return await _0x3467fb['init'](),this['_entityInit$'][_0x31a250(0x244)](_0x3467fb),_0x3467fb;}['_getCtorByUniverType'](_0xfc2989){const _0x3c98b5=_0x2e5b1c;switch(_0xfc2989){case x['UNIVER_DOC']:return Tt;case x[_0x3c98b5(0x2c7)]:return Rt;default:throw new Error(_0x3c98b5(0x451)+_0xfc2989);}}};Ae=pr([_t(0x0,_0x5c7fae(_0x5d259e)),_t(0x1,_0x5c7fae(ae)),_t(0x2,_0x30b2f2)],Ae);const ls=['purple300',_0x2e5b1c(0x380),_0x2e5b1c(0x465),_0x2e5b1c(0x358),'blue400',_0x2e5b1c(0x420)];class Ft extends _0x36403b{constructor(){const _0x2bfa68=_0x2e5b1c;super(...arguments),l(this,_0x2bfa68(0x29e),new Map()),l(this,_0x2bfa68(0x159),0x0);}[_0x2e5b1c(0x26c)](_0x1f9456){const _0x5a514f=_0x2e5b1c;if(this[_0x5a514f(0x29e)][_0x5a514f(0x250)](_0x1f9456))return this['_assignedColors'][_0x5a514f(0x18f)](_0x1f9456);const _0x137ce1=ls[this[_0x5a514f(0x159)]];return this[_0x5a514f(0x159)]=(this[_0x5a514f(0x159)]+0x1)%ls[_0x5a514f(0x1bb)],this[_0x5a514f(0x29e)][_0x5a514f(0x1e1)](_0x1f9456,_0x137ce1),_0x137ce1;}}var vr=Object[_0x2e5b1c(0x2de)],Ir=Object[_0x2e5b1c(0x41c)],Er=(_0x3f29b7,_0x11011d,_0x9a1aaa,_0x149a36)=>{for(var _0x33d613=_0x149a36>0x1?void 0x0:_0x149a36?Ir(_0x11011d,_0x9a1aaa):_0x11011d,_0x106f4c=_0x3f29b7['length']-0x1,_0x212c27;_0x106f4c>=0x0;_0x106f4c--)(_0x212c27=_0x3f29b7[_0x106f4c])&&(_0x33d613=(_0x149a36?_0x212c27(_0x11011d,_0x9a1aaa,_0x33d613):_0x212c27(_0x33d613))||_0x33d613);return _0x149a36&&_0x33d613&&vr(_0x11011d,_0x9a1aaa,_0x33d613),_0x33d613;},de=(_0x14c03d,_0x25f081)=>(_0x27054b,_0x205f33)=>_0x25f081(_0x27054b,_0x205f33,_0x14c03d);const Cr=0x12c,br=0x64,Tr=()=>{let _0x31f185=[],_0x1f2e9a=!0x1;return _0x16798c=>{const _0x31b04b=_0x5851;_0x31f185[_0x31b04b(0x2f1)](_0x16798c),_0x1f2e9a||(_0x1f2e9a=!0x0,setTimeout(()=>{const _0x511562=_0x31b04b;_0x31f185[_0x511562(0x1cd)](_0x2fc867=>_0x2fc867()),_0x31f185=[],_0x1f2e9a=!0x1;}));};};let Ot=class extends _0x4bff65{constructor(_0x5d1019,_0x5148f6,_0x43b7c7,_0x19d5ff,_0x1a058e,_0x469b7a,_0x7af0f8,_0x17a6df){const _0x398ac9=_0x2e5b1c;super(),l(this,'_online',!0x1),l(this,_0x398ac9(0x42f),!0x1),l(this,_0x398ac9(0x2f3),new _0x16e81a(new Map())),l(this,_0x398ac9(0x393),this[_0x398ac9(0x2f3)][_0x398ac9(0x2f8)]()),l(this,'_roomMembers$',new _0x16e81a([])),l(this,_0x398ac9(0x39d),this[_0x398ac9(0x274)][_0x398ac9(0x195)](_0x116e1b(Cr))),l(this,'_updateLocalCursor',_0x415879((_0x325e6f,_0x479e95)=>{const _0x3fbf12=_0x398ac9,_0x206c9a={'eventID':_0x410792[_0x3fbf12(0x227)],'data':{'unitID':this[_0x3fbf12(0x3a4)],'memberID':this['_session'][_0x3fbf12(0x146)](),'selection':_0x508689(_0x325e6f,_0x479e95[_0x3fbf12(0x2c0)])}};this[_0x3fbf12(0x233)]['send'](_0x206c9a,this[_0x3fbf12(0x3a4)]);},br)),(this['unitID']=_0x5d1019,this['_session']=_0x5148f6,this[_0x398ac9(0x3ac)]=_0x43b7c7,this['_colorAssignService']=_0x19d5ff,this[_0x398ac9(0x2a9)]=_0x1a058e,this[_0x398ac9(0x1ae)]=_0x469b7a,this['_commandService']=_0x7af0f8,this[_0x398ac9(0x1c6)]=_0x17a6df);}get['cursorInfo'](){const _0x403fb6=_0x2e5b1c;return this[_0x403fb6(0x2f3)][_0x403fb6(0x131)]();}get[_0x2e5b1c(0x223)](){const _0x5184ba=_0x2e5b1c;return this['_roomMembers$'][_0x5184ba(0x131)]();}[_0x2e5b1c(0x2fe)](){const _0xf8359a=_0x2e5b1c;super[_0xf8359a(0x2fe)](),this[_0xf8359a(0x2f3)][_0xf8359a(0x244)](new Map()),this[_0xf8359a(0x2f3)][_0xf8359a(0x447)](),this[_0xf8359a(0x274)][_0xf8359a(0x244)]([]),this['_roomMembers$']['complete']();}[_0x2e5b1c(0x124)](){const _0x4f06b5=_0x2e5b1c;this[_0x4f06b5(0x42f)]||(this[_0x4f06b5(0x42f)]=!0x0,this[_0x4f06b5(0x233)][_0x4f06b5(0x34d)][_0x4f06b5(0x195)](_0x2123e0(this['dispose$']))[_0x4f06b5(0x3c4)](_0x10a987=>{const _0x16d182=_0x4f06b5;_0x10a987===W[_0x16d182(0x13f)]?this[_0x16d182(0x369)]():this[_0x16d182(0x3ce)]();}),this[_0x4f06b5(0x233)][_0x4f06b5(0x372)][_0x4f06b5(0x195)](_0x2123e0(this[_0x4f06b5(0x3be)]))[_0x4f06b5(0x3c4)](_0x4cef5b=>{const _0x49d75d=_0x4f06b5,_0x5cf742=_0x4cef5b[_0x49d75d(0x2f6)];_0x5cf742===_0x410792[_0x49d75d(0x227)]&&this['_onCursorUpdate'](_0x4cef5b),_0x5cf742===_0x410792[_0x49d75d(0x306)]&&this[_0x49d75d(0x3a3)](_0x4cef5b);}),this[_0x4f06b5(0x42b)](),this[_0x4f06b5(0x294)](this[_0x4f06b5(0x1bd)]['onCommandExecuted'](_0xd18e0a=>{const _0x5513aa=_0x4f06b5;if(this['_online']&&_0xd18e0a['id']===_0x2498cc['id']&&_0xd18e0a['params'][_0x5513aa(0x275)]===this[_0x5513aa(0x3a4)]){const _0x507576=_0xd18e0a[_0x5513aa(0x27b)];this[_0x5513aa(0x32c)](_0x507576[_0x5513aa(0x3f7)],_0x507576[_0x5513aa(0x230)][0x0]);}})));}[_0x2e5b1c(0x352)](_0x2482bf){const _0x24c869=_0x2e5b1c;var _0x35ba05,_0x2d4ee7;const {memberID:_0x1bff8c,selection:_0x366964}=_0x2482bf[_0x24c869(0x249)],{sheetName:_0x4b2b72,range:_0x1d7fb8}=_0x5b5841(_0x366964),_0x45a9f4={'name':(_0x2d4ee7=(_0x35ba05=this[_0x24c869(0x2a9)][_0x24c869(0x23f)](this[_0x24c869(0x3a4)],_0x1bff8c))==null?void 0x0:_0x35ba05[_0x24c869(0x397)])!=null?_0x2d4ee7:_0x24c869(0x414),'range':this[_0x24c869(0x3c3)](_0x4b2b72,_0x1d7fb8),'sheetID':_0x4b2b72,'color':this[_0x24c869(0x341)][_0x24c869(0x26c)](_0x1bff8c),'selection':_0x366964},_0x5d3eeb=this[_0x24c869(0x1ab)];_0x5d3eeb[_0x24c869(0x1e1)](_0x1bff8c,_0x45a9f4),this[_0x24c869(0x2f3)]['next'](_0x5d3eeb);}[_0x2e5b1c(0x3a3)](_0x31ee6b){const _0x991657=_0x2e5b1c,{memberID:_0x4a9cdd}=_0x31ee6b[_0x991657(0x249)],_0x24d841=this[_0x991657(0x1ab)];_0x24d841[_0x991657(0x18d)](_0x4a9cdd),this[_0x991657(0x2f3)][_0x991657(0x244)](_0x24d841);}[_0x2e5b1c(0x3c3)](_0x452953,_0x1542a7){const _0x399d4d=_0x2e5b1c;var _0x4d4783,_0x25306a;const _0x3685c1=(_0x25306a=(_0x4d4783=this[_0x399d4d(0x1ae)][_0x399d4d(0x1be)](this[_0x399d4d(0x3a4)]))==null?void 0x0:_0x4d4783[_0x399d4d(0x378)](_0x452953))==null?void 0x0:_0x25306a[_0x399d4d(0x284)]();return(_0x3685c1==null?void 0x0:_0x3685c1[_0x399d4d(0x2c5)](_0x4aed97=>_0x183c22[_0x399d4d(0x351)](_0x4aed97,_0x1542a7)))||_0x1542a7;}[_0x2e5b1c(0x42b)](){const _0x3426b1=_0x2e5b1c,_0x25f72b=new _0x3bb8a8(),_0x26bdc2=Tr(),_0x4101dc=()=>{const _0xf29ba8=_0x5851;_0x25f72b[_0xf29ba8(0x2fe)]();const _0x2385cb=(_0x3b9470,_0x41b3c5,_0x39d407,_0x1c6589)=>{const _0x2ef445=_0xf29ba8;let _0x48b5c0=[];switch(_0x3b9470['id']){case _0xa2b790[_0x2ef445(0x3f6)]:{_0x48b5c0=_0x3c8f35(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x413)]:{_0x48b5c0=_0x552ee5(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x2a2)]:{_0x48b5c0=_0x34e016(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x172)]:{_0x48b5c0=_0x4827cd(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x15d)]:{_0x48b5c0=_0x1731a1(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x342)]:{_0x48b5c0=_0x375cdc(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x39c)]:{_0x48b5c0=_0x2f5847(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x21b)]:{_0x48b5c0=_0x824d6d(_0x3b9470,_0x1c6589);break;}case _0xa2b790[_0x2ef445(0x25b)]:{_0x48b5c0=_0x2f61ec(_0x3b9470,_0x1c6589);break;}}const _0xd96975=_0x15b7fb(_0x48b5c0,_0x1c6589),_0xf185c6=this[_0x2ef445(0x1ab)][_0x2ef445(0x18f)](_0x41b3c5);if(_0xf185c6&&_0xd96975){const _0x395c45={..._0xf185c6,'range':_0xd96975};this[_0x2ef445(0x1ab)][_0x2ef445(0x1e1)](_0x41b3c5,_0x395c45),_0x26bdc2(()=>{const _0x3737dd=_0x2ef445,_0x15ae08=this[_0x3737dd(0x1c6)][_0x3737dd(0x400)](_0xd96975,_0x65c3=>(_0x15ae08[_0x3737dd(0x2fe)](),_0x2385cb(_0x65c3,_0x41b3c5,_0x39d407,_0xd96975)));_0x25f72b[_0x3737dd(0x47b)](_0x15ae08);});}return{'redos':[],'undos':[]};};this[_0xf29ba8(0x1ab)][_0xf29ba8(0x1cd)]((_0x7bdbc8,_0x5a07cc)=>{const _0x55c58d=_0xf29ba8,{range:_0x141034,sheetID:_0x1b7139}=_0x7bdbc8,_0x3c7bc9=this[_0x55c58d(0x1c6)][_0x55c58d(0x400)](_0x141034,_0x1696c7=>(_0x3c7bc9[_0x55c58d(0x2fe)](),_0x2385cb(_0x1696c7,_0x5a07cc,_0x1b7139,_0x141034)));_0x25f72b[_0x55c58d(0x47b)](_0x3c7bc9);});};this[_0x3426b1(0x294)](_0x29a7b(this[_0x3426b1(0x2f3)][_0x3426b1(0x3c4)](()=>{_0x4101dc();})));}[_0x2e5b1c(0x369)](){const _0x463621=_0x2e5b1c;var _0x425260,_0x1c0916;if(this[_0x463621(0x462)]=!0x0,((_0x425260=this[_0x463621(0x1ae)][_0x463621(0x1e7)]())==null?void 0x0:_0x425260['getUnitId']())!==this[_0x463621(0x3a4)])return;const _0x3021ec=(_0x1c0916=this[_0x463621(0x3ac)][_0x463621(0x18f)](_0x85923d)[_0x463621(0x460)]())==null?void 0x0:_0x1c0916[0x0],_0x169ed8=this[_0x463621(0x1ae)][_0x463621(0x224)](_0x3bf0d9['UNIVER_SHEET'])[_0x463621(0x29a)]();_0x3021ec&&_0x169ed8&&this[_0x463621(0x32c)](_0x169ed8[_0x463621(0x3b5)](),_0x3021ec);}['_toggleOffline'](){this['_online']=!0x1;}};Ot=Er([de(0x2,_0x5c7fae(_0x5d259e)),de(0x3,_0x5c7fae(Ft)),de(0x4,_0x5c7fae(oe)),de(0x5,_0x30b2f2),de(0x6,_0x36a317),de(0x7,_0x5c7fae(_0x504358))],Ot);var Rr=Object[_0x2e5b1c(0x2de)],Or=Object[_0x2e5b1c(0x41c)],Dr=(_0x5051c5,_0x407f80,_0x200c16,_0x19bed2)=>{const _0x548723=_0x2e5b1c;for(var _0x5a7794=_0x19bed2>0x1?void 0x0:_0x19bed2?Or(_0x407f80,_0x200c16):_0x407f80,_0x98fa8e=_0x5051c5[_0x548723(0x1bb)]-0x1,_0x4cbc3e;_0x98fa8e>=0x0;_0x98fa8e--)(_0x4cbc3e=_0x5051c5[_0x98fa8e])&&(_0x5a7794=(_0x19bed2?_0x4cbc3e(_0x407f80,_0x200c16,_0x5a7794):_0x4cbc3e(_0x5a7794))||_0x5a7794);return _0x19bed2&&_0x5a7794&&Rr(_0x407f80,_0x200c16,_0x5a7794),_0x5a7794;},se=(_0x3738f6,_0x172c88)=>(_0x29a834,_0x6f65ab)=>_0x172c88(_0x29a834,_0x6f65ab,_0x3738f6);const wr=0x12c,Pr=0x64;let Dt=class extends _0x4bff65{constructor(_0x1dd0b3,_0x3384fe,_0x482c97,_0x19e773,_0x1f7611,_0x240638,_0x1d0700,_0x41b366,_0x525b2c){const _0x4236e6=_0x2e5b1c;super(),l(this,_0x4236e6(0x462),!0x1),l(this,_0x4236e6(0x42f),!0x1),l(this,_0x4236e6(0x2f3),new _0x16e81a(new Map())),l(this,_0x4236e6(0x393),this[_0x4236e6(0x2f3)][_0x4236e6(0x2f8)]()),l(this,_0x4236e6(0x274),new _0x16e81a([])),l(this,_0x4236e6(0x39d),this['_roomMembers$'][_0x4236e6(0x195)](_0x116e1b(wr))),l(this,_0x4236e6(0x32c),_0x415879(_0x298044=>{const _0x3c77b3=_0x4236e6,_0x2cd269={'eventID':_0x410792['UPDATE_CURSOR'],'data':{'unitID':this[_0x3c77b3(0x3a4)],'memberID':this[_0x3c77b3(0x233)][_0x3c77b3(0x146)](),'selection':js(_0x298044)}};this[_0x3c77b3(0x233)][_0x3c77b3(0x1ef)](_0x2cd269,this['unitID']);},Pr)),(this[_0x4236e6(0x3a4)]=_0x1dd0b3,this[_0x4236e6(0x233)]=_0x3384fe,this[_0x4236e6(0x3ac)]=_0x482c97,this[_0x4236e6(0x341)]=_0x19e773,this[_0x4236e6(0x2a9)]=_0x1f7611,this['_syncEditingCollabCursorService']=_0x240638,this[_0x4236e6(0x3cf)]=_0x1d0700,this[_0x4236e6(0x1ae)]=_0x41b366,this[_0x4236e6(0x1bd)]=_0x525b2c);}get[_0x2e5b1c(0x1ab)](){const _0x3f3298=_0x2e5b1c;return this[_0x3f3298(0x2f3)][_0x3f3298(0x131)]();}get[_0x2e5b1c(0x223)](){return this['_roomMembers$']['getValue']();}[_0x2e5b1c(0x2fe)](){const _0x290a16=_0x2e5b1c;super['dispose'](),this[_0x290a16(0x2f3)][_0x290a16(0x244)](new Map()),this[_0x290a16(0x2f3)][_0x290a16(0x447)](),this['_roomMembers$'][_0x290a16(0x244)]([]),this[_0x290a16(0x274)][_0x290a16(0x447)]();}[_0x2e5b1c(0x124)](){const _0x903dcb=_0x2e5b1c;this[_0x903dcb(0x42f)]||(this[_0x903dcb(0x42f)]=!0x0,this[_0x903dcb(0x233)]['sessionStatus$'][_0x903dcb(0x195)](_0x2123e0(this['dispose$']))[_0x903dcb(0x3c4)](_0x19ff0c=>{const _0x57f077=_0x903dcb;_0x19ff0c===W[_0x57f077(0x13f)]?this['_toggleOnline']():this[_0x57f077(0x3ce)]();}),this['_session'][_0x903dcb(0x372)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x1d3805=>{const _0x2bc5d4=_0x903dcb,_0x3c7ca5=_0x1d3805[_0x2bc5d4(0x2f6)];_0x3c7ca5===_0x410792['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1d3805),_0x3c7ca5===_0x410792[_0x2bc5d4(0x306)]&&this[_0x2bc5d4(0x3a3)](_0x1d3805);}),this[_0x903dcb(0x294)](this['_commandService'][_0x903dcb(0x20e)](_0xf2419a=>{const _0xd2bf1c=_0x903dcb,_0x12854c=_0xf2419a[_0xd2bf1c(0x27b)];_0x12854c!=null&&this['_online']&&_0xf2419a['id']===_0x26b3ce['id']&&_0x12854c[_0xd2bf1c(0x275)]===this['unitID']&&_0x12854c[_0xd2bf1c(0x1a0)]===!0x1&&this['_updateLocalCursor'](_0x12854c[_0xd2bf1c(0x23a)]);})),this['_syncEditingCollabCursorService'][_0x903dcb(0x39e)][_0x903dcb(0x195)](_0x2123e0(this[_0x903dcb(0x3be)]))[_0x903dcb(0x3c4)](_0x3fe8d5=>{const _0x4803e0=_0x903dcb;if((_0x3fe8d5==null?void 0x0:_0x3fe8d5[_0x4803e0(0x3a4)])!==this[_0x4803e0(0x3a4)])return;const _0x494e67={'eventID':_0x410792['UPDATE_CURSOR'],'data':_0x3fe8d5};this[_0x4803e0(0x352)](_0x494e67);}),this[_0x903dcb(0x294)](this[_0x903dcb(0x1bd)]['onCommandExecuted'](_0x4c68f5=>{const _0x4f1002=_0x903dcb;if(_0x4c68f5[_0x4f1002(0x27b)]==null)return;const _0x2e396d=_0x4c68f5['params'];if(_0x4c68f5['id']!==_0xa592b4['id']||_0x2e396d['unitId']!==this[_0x4f1002(0x3a4)])return;const _0x374042={'id':'doc.mutation.rich-text-editing','params':_0x2e396d},_0x2bb89f=this[_0x4f1002(0x1ab)];for(const [_0x554c20,_0x180929]of _0x2bb89f){const _0x5f446c={'id':_0x4f1002(0x3ad),'params':{'unitId':this[_0x4f1002(0x3a4)],'actions':null,'textRanges':_0x180929[_0x4f1002(0x23a)]}},_0x4ced74=this[_0x4f1002(0x3cf)][_0x4f1002(0x2d7)](_0x374042,_0x5f446c,!0x1);if(_0x517f04(_0x4ced74))throw _0x4ced74[_0x4f1002(0x30b)];_0x2bb89f[_0x4f1002(0x1e1)](_0x554c20,{..._0x180929,'ranges':_0x4ced74[_0x4f1002(0x366)]['params'][_0x4f1002(0x43f)]});}queueMicrotask(()=>{const _0x324978=_0x4f1002;this['_cursorInfo$'][_0x324978(0x244)](_0x2bb89f);});})));}[_0x2e5b1c(0x352)](_0x4a2c0f){const _0x2e2485=_0x2e5b1c;var _0x3e199e,_0x4959f9;const {memberID:_0x170cd4,selection:_0x533694}=_0x4a2c0f[_0x2e2485(0x249)],_0x2fb242=rr(_0x533694),_0x4c333b=(_0x4959f9=(_0x3e199e=this[_0x2e2485(0x2a9)][_0x2e2485(0x23f)](this[_0x2e2485(0x3a4)],_0x170cd4))==null?void 0x0:_0x3e199e[_0x2e2485(0x397)])!=null?_0x4959f9:_0x2e2485(0x414),_0x508d54={'color':this['_colorAssignService'][_0x2e2485(0x26c)](_0x170cd4),'name':_0x4c333b,'ranges':_0x2fb242},_0xae7a74=this[_0x2e2485(0x1ab)];_0xae7a74['set'](_0x170cd4,_0x508d54),this['_cursorInfo$'][_0x2e2485(0x244)](_0xae7a74);}['_onCursorDelete'](_0xfe9d7d){const _0x36e654=_0x2e5b1c,{memberID:_0x3ffad3}=_0xfe9d7d[_0x36e654(0x249)],_0x413deb=this[_0x36e654(0x1ab)];_0x413deb[_0x36e654(0x18d)](_0x3ffad3),this[_0x36e654(0x2f3)][_0x36e654(0x244)](_0x413deb);}['_toggleOnline'](){const _0x4fd799=_0x2e5b1c;var _0x482e22;if(this[_0x4fd799(0x462)]=!0x0,((_0x482e22=this[_0x4fd799(0x1ae)]['getFocusedUnit']())==null?void 0x0:_0x482e22[_0x4fd799(0x426)]())!==this[_0x4fd799(0x3a4)])return;const _0x331a34=this['_injector'][_0x4fd799(0x18f)](_0x1dbfad)[_0x4fd799(0x16f)]();Array[_0x4fd799(0x434)](_0x331a34)&&_0x331a34[_0x4fd799(0x1bb)]>0x0&&this[_0x4fd799(0x32c)](_0x331a34);}[_0x2e5b1c(0x3ce)](){const _0x59e89a=_0x2e5b1c;this[_0x59e89a(0x462)]=!0x1;}};Dt=Dr([se(0x2,_0x5c7fae(_0x5d259e)),se(0x3,_0x5c7fae(Ft)),se(0x4,_0x5c7fae(oe)),se(0x5,_0x5c7fae(Bt)),se(0x6,_0x4e0f96),se(0x7,_0x30b2f2),se(0x8,_0x36a317)],Dt);var Nr=Object[_0x2e5b1c(0x2de)],yr=Object['getOwnPropertyDescriptor'],Mr=(_0x815867,_0x3c0ed7,_0x10f3fe,_0x1002f9)=>{const _0x411bb1=_0x2e5b1c;for(var _0x184f96=_0x1002f9>0x1?void 0x0:_0x1002f9?yr(_0x3c0ed7,_0x10f3fe):_0x3c0ed7,_0x329ff8=_0x815867[_0x411bb1(0x1bb)]-0x1,_0x4d2cf9;_0x329ff8>=0x0;_0x329ff8--)(_0x4d2cf9=_0x815867[_0x329ff8])&&(_0x184f96=(_0x1002f9?_0x4d2cf9(_0x3c0ed7,_0x10f3fe,_0x184f96):_0x4d2cf9(_0x184f96))||_0x184f96);return _0x1002f9&&_0x184f96&&Nr(_0x3c0ed7,_0x10f3fe,_0x184f96),_0x184f96;},ut=(_0x50482e,_0x1b3394)=>(_0x3829ce,_0x546e0e)=>_0x1b3394(_0x3829ce,_0x546e0e,_0x50482e);let fe=class extends _0x4bff65{constructor(_0x2cbb82,_0x2c34b6,_0x3aec76){const _0x1ea069=_0x2e5b1c;super(),l(this,_0x1ea069(0x36c),new Map()),l(this,_0x1ea069(0x394),new _0x47a81b()),(this[_0x1ea069(0x1ae)]=_0x2cbb82,this['_injector']=_0x2c34b6,this[_0x1ea069(0x3f1)]=_0x3aec76,this[_0x1ea069(0x42f)]());}[_0x2e5b1c(0x2fe)](){const _0x1c36ce=_0x2e5b1c;super[_0x1c36ce(0x2fe)](),this['_entityInit$'][_0x1c36ce(0x447)](),this[_0x1c36ce(0x36c)][_0x1c36ce(0x1cd)](_0x135ddf=>_0x135ddf[_0x1c36ce(0x2fe)]());}[_0x2e5b1c(0x16c)](_0x52b97f){const _0x430161=_0x2e5b1c;return this[_0x430161(0x36c)][_0x430161(0x250)](_0x52b97f)?this[_0x430161(0x36c)][_0x430161(0x18f)](_0x52b97f)['cursorInfo$']:this[_0x430161(0x394)][_0x430161(0x195)](_0x41cfb4(_0x5d0d29=>_0x5d0d29[_0x430161(0x3a4)]===_0x52b97f),_0x498d15(_0xee628f=>_0xee628f[_0x430161(0x393)]));}[_0x2e5b1c(0x42f)](){const _0x42f40d=_0x2e5b1c;this['_univerInstanceService'][_0x42f40d(0x1a4)](_0x3bf0d9[_0x42f40d(0x2c7)])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](async _0x124897=>{const _0x32543e=_0x42f40d,_0x4ea236=_0x124897[_0x32543e(0x426)](),_0x5661de=await this[_0x32543e(0x3da)](_0x4ea236);this[_0x32543e(0x394)]['next'](_0x5661de),this[_0x32543e(0x36c)][_0x32543e(0x1e1)](_0x4ea236,_0x5661de);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC'])[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x195)](_0x41cfb4(_0x2ddab1=>!_0x2ddab1[_0x42f40d(0x426)]()[_0x42f40d(0x1e5)]('__')))['subscribe'](async _0xf4ff59=>{const _0x22404d=_0x42f40d,_0x540144=_0xf4ff59[_0x22404d(0x426)](),_0x2aa7c2=await this[_0x22404d(0x147)](_0x540144);this[_0x22404d(0x394)][_0x22404d(0x244)](_0x2aa7c2),this['_entities'][_0x22404d(0x1e1)](_0x540144,_0x2aa7c2);}),_0x9334d7(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3bf0d9[_0x42f40d(0x1de)]),this[_0x42f40d(0x1ae)][_0x42f40d(0x46a)](_0x3bf0d9[_0x42f40d(0x2c7)]))[_0x42f40d(0x195)](_0x2123e0(this[_0x42f40d(0x3be)]))[_0x42f40d(0x3c4)](_0x55eaee=>{const _0x26e699=_0x42f40d,_0x436524=_0x55eaee[_0x26e699(0x426)](),_0x3f9e75=this[_0x26e699(0x36c)][_0x26e699(0x18f)](_0x436524);_0x3f9e75&&(_0x3f9e75['dispose'](),this[_0x26e699(0x36c)][_0x26e699(0x18d)](_0x436524));});}async[_0x2e5b1c(0x3da)](_0x196fa5){const _0x49c98a=_0x2e5b1c,_0x268397=await this[_0x49c98a(0x3f1)][_0x49c98a(0x205)](_0x196fa5),_0x56f2e5=this[_0x49c98a(0x3ac)][_0x49c98a(0x254)](Ot,_0x196fa5,_0x268397);return _0x56f2e5[_0x49c98a(0x124)](),_0x56f2e5;}async[_0x2e5b1c(0x147)](_0x1bced7){const _0x2546ec=_0x2e5b1c,_0x212932=await this[_0x2546ec(0x3f1)][_0x2546ec(0x205)](_0x1bced7),_0x51696f=this[_0x2546ec(0x3ac)]['createInstance'](Dt,_0x1bced7,_0x212932);return _0x51696f[_0x2546ec(0x124)](),_0x51696f;}};fe=Mr([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],fe),ut(0x0,_0x30b2f2),ut(0x1,_0x5c7fae(_0x5d259e)),ut(0x2,_0x5c7fae(ae))],fe);const Ue=0x14,_s=0xc8,dt=0x4,Ar=0x5;function Ur(_0x23174f,_0xe29359){const _0x423996=_0x2e5b1c;let {radius:_0x421f6a,width:_0x481777,height:_0x2b89bd}=_0xe29359;_0x421f6a=_0x421f6a!=null?_0x421f6a:0x0,_0x481777=_0x481777!=null?_0x481777:0x1e,_0x2b89bd=_0x2b89bd!=null?_0x2b89bd:0x1e;let _0x2911b0=0x0,_0x16804e=0x0,_0x107a8e=0x0;_0x2911b0=_0x16804e=_0x107a8e=Math[_0x423996(0x3a9)](_0x421f6a,_0x481777/0x2,_0x2b89bd/0x2),_0x23174f[_0x423996(0x1f9)](),_0x23174f[_0x423996(0x2e8)](_0x2911b0,0x0),_0x23174f[_0x423996(0x1df)](_0x481777-_0x16804e,0x0),_0x23174f[_0x423996(0x260)](_0x481777-_0x16804e,_0x16804e,_0x16804e,Math['PI']*0x3/0x2,0x0,!0x1),_0x23174f[_0x423996(0x1df)](_0x481777,_0x2b89bd-_0x107a8e),_0x23174f['arc'](_0x481777-_0x107a8e,_0x2b89bd-_0x107a8e,_0x107a8e,0x0,Math['PI']/0x2,!0x1),_0x23174f[_0x423996(0x1df)](0x0,_0x2b89bd),_0x23174f[_0x423996(0x1df)](0x0,_0x2911b0),_0x23174f[_0x423996(0x260)](_0x2911b0,_0x2911b0,_0x2911b0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x23174f['closePath'](),_0xe29359[_0x423996(0x344)]&&(_0x23174f[_0x423996(0x302)](),_0x23174f[_0x423996(0x28c)]=_0xe29359[_0x423996(0x344)],_0xe29359['fillRule']==='evenodd'?_0x23174f['fill'](_0x423996(0x1e9)):_0x23174f[_0x423996(0x344)](),_0x23174f['restore']());}class nt extends _0x214e6b{constructor(_0x3f5644,_0x220de0){const _0x1f79ad=_0x2e5b1c;super(_0x3f5644,_0x220de0),l(this,'color'),l(this,'text'),(this['color']=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x46e)],this[_0x1f79ad(0x134)]=_0x220de0==null?void 0x0:_0x220de0[_0x1f79ad(0x134)]);}static[_0x2e5b1c(0x404)](_0x1e7cff,_0x4c0dfb){const _0x4f1957=_0x2e5b1c,{text:_0x3e5d6d,color:_0x3ca15a}=_0x4c0dfb;_0x1e7cff[_0x4f1957(0x302)](),_0x1e7cff[_0x4f1957(0x3f4)]=_0x4f1957(0x15f);const _0x25cbec=_0x1e7cff[_0x4f1957(0x44f)](_0x3e5d6d)['width'],_0xb575ed=Math[_0x4f1957(0x3a9)](_0x25cbec+0x2*dt,_s);Ur(_0x1e7cff,{'height':Ue,'radius':0x4,'width':_0xb575ed,'fill':_0x3ca15a,'evented':!0x1}),_0x1e7cff['fillStyle']='#FFF';const _0x737ea6=dt,_0x5c80bb=Ue-Ar,_0x1ea163=_s-0x2*dt;if(_0x25cbec>_0x1ea163){let _0x665e6='',_0x4e453e=0x0;for(const _0x22d19d of _0x3e5d6d){const _0xea03f3=_0x1e7cff[_0x4f1957(0x44f)](_0x22d19d)['width'];if(_0x4e453e+_0xea03f3<=_0x1ea163-_0x1e7cff[_0x4f1957(0x44f)]('...')[_0x4f1957(0x45e)])_0x665e6+=_0x22d19d,_0x4e453e+=_0xea03f3;else{_0x665e6+=_0x4f1957(0x3db);break;}}_0x1e7cff[_0x4f1957(0x374)](_0x665e6,_0x737ea6,_0x5c80bb);}else _0x1e7cff['fillText'](_0x3e5d6d,_0x737ea6,_0x5c80bb);_0x1e7cff[_0x4f1957(0x316)]();}[_0x2e5b1c(0x2dd)](_0x42fcef){const _0x4c8ef9=_0x2e5b1c;nt[_0x4c8ef9(0x404)](_0x42fcef,this);}}const Lr=0x1,$r=1.5;class jr extends _0x214e6b{constructor(_0x3acc60,_0x22ed86){const _0x56f4b9=_0x2e5b1c;super(_0x3acc60,_0x22ed86),l(this,_0x56f4b9(0x1a2)),l(this,_0x56f4b9(0x412),!0x1),l(this,'_range'),l(this,_0x56f4b9(0x439),''),l(this,'_labelPosition','top'),l(this,_0x56f4b9(0x47d)),(_0x22ed86&&this[_0x56f4b9(0x42c)](_0x22ed86),this['onPointerEnter$'][_0x56f4b9(0x3cb)](()=>this[_0x56f4b9(0x42c)]({'hovered':!0x0})),this[_0x56f4b9(0x3d3)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2e5b1c(0x42c)](_0x14968b){const _0x31090b=_0x2e5b1c;var _0x4075b6,_0x5db14f,_0x4ba6ed,_0x302c20,_0xf1ef64,_0x56e5c5;this['_color']=(_0x4075b6=_0x14968b[_0x31090b(0x46e)])!=null?_0x4075b6:this['_color'],this['_hovered']=(_0x5db14f=_0x14968b[_0x31090b(0x267)])!=null?_0x5db14f:this[_0x31090b(0x412)],this[_0x31090b(0x398)]=(_0x4ba6ed=_0x14968b['range'])!=null?_0x4ba6ed:this[_0x31090b(0x398)],this[_0x31090b(0x439)]=(_0x302c20=_0x14968b[_0x31090b(0x397)])!=null?_0x302c20:this[_0x31090b(0x439)],this['_labelPosition']=(_0xf1ef64=_0x14968b[_0x31090b(0x3d0)])!=null?_0xf1ef64:this['_labelPosition'],this[_0x31090b(0x47d)]=(_0x56e5c5=_0x14968b['backgroundColor'])!=null?_0x56e5c5:this['_backgroundColor'],this[_0x31090b(0x12a)]({'width':_0x14968b[_0x31090b(0x45e)],'height':_0x14968b[_0x31090b(0x36e)]});}[_0x2e5b1c(0x20b)](_0x5d16f2){const _0x35cc92=_0x2e5b1c,{row:_0x584d81,column:_0x42c3a4}=_0x5d16f2;if(_0x584d81>=this[_0x35cc92(0x398)]['startRow']&&_0x584d81<=this[_0x35cc92(0x398)]['endRow']&&_0x42c3a4>=this[_0x35cc92(0x398)][_0x35cc92(0x24f)]&&_0x42c3a4<=this[_0x35cc92(0x398)][_0x35cc92(0x191)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x35cc92(0x42c)]({'hovered':!0x1});}[_0x2e5b1c(0x406)](_0x8bc810){return!0x1;}[_0x2e5b1c(0x2dd)](_0x28ab2c){const _0x2e2bd0=_0x2e5b1c;_0x170a21[_0x2e2bd0(0x404)](_0x28ab2c,{'width':this[_0x2e2bd0(0x45e)],'height':this[_0x2e2bd0(0x36e)],'strokeWidth':$r,'stroke':this[_0x2e2bd0(0x1a2)],'evented':!0x1,'fill':this[_0x2e2bd0(0x47d)]}),this[_0x2e2bd0(0x412)]&&(_0x28ab2c['save'](),_0x28ab2c[_0x2e2bd0(0x3fb)](0x1,0x0,0x0,0x1,this[_0x2e2bd0(0x45e)],this['_labelPosition']===_0x2e2bd0(0x31f)?0x0:-Ue),nt[_0x2e2bd0(0x404)](_0x28ab2c,{'text':this['_name'],'color':this[_0x2e2bd0(0x1a2)]}),_0x28ab2c[_0x2e2bd0(0x316)]());}}var xr=Object[_0x2e5b1c(0x2de)],Hr=Object[_0x2e5b1c(0x41c)],kr=(_0x4fd8e6,_0x563375,_0x16ab54,_0x223b14)=>{const _0x2b2a02=_0x2e5b1c;for(var _0x2131ce=_0x223b14>0x1?void 0x0:_0x223b14?Hr(_0x563375,_0x16ab54):_0x563375,_0x145b81=_0x4fd8e6[_0x2b2a02(0x1bb)]-0x1,_0x117165;_0x145b81>=0x0;_0x145b81--)(_0x117165=_0x4fd8e6[_0x145b81])&&(_0x2131ce=(_0x223b14?_0x117165(_0x563375,_0x16ab54,_0x2131ce):_0x117165(_0x2131ce))||_0x2131ce);return _0x223b14&&_0x2131ce&&xr(_0x563375,_0x16ab54,_0x2131ce),_0x2131ce;},mt=(_0x1c6f61,_0x62489e)=>(_0x46d747,_0x45e2c0)=>_0x62489e(_0x46d747,_0x45e2c0,_0x1c6f61);const Br=0x1389;let wt=class extends _0x4bff65{constructor(_0x23428a,_0x319033,_0x241f03,_0x1caf4a){const _0x3b7eea=_0x2e5b1c;super(),l(this,'_cursors',new Set()),l(this,_0x3b7eea(0x327),null),(this[_0x3b7eea(0x1c4)]=_0x23428a,this[_0x3b7eea(0x271)]=_0x319033,this[_0x3b7eea(0x44b)]=_0x241f03,this[_0x3b7eea(0x382)]=_0x1caf4a,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x2f7ea1=_0x2e5b1c;this[_0x2f7ea1(0x271)][_0x2f7ea1(0x182)][_0x2f7ea1(0x195)](_0x429e28(this[_0x2f7ea1(0x3be)]),_0x3c8cfc(_0x579921=>{const _0x160999=_0x2f7ea1;if(_0x579921){const _0x41a88d=_0x579921['sheetId'];return _0x1ee3b6(this[_0x160999(0x44b)]['getCollabCursors$'](this[_0x160999(0x1c4)][_0x160999(0x275)]),this[_0x160999(0x382)][_0x160999(0x221)])['pipe'](_0x4b551a(([_0x3daf82,_0x37fc93])=>{const _0x2360b3=_0x160999,_0xa50af5=new Map();return _0x3daf82[_0x2360b3(0x1cd)]((_0x47fb55,_0x3862ab)=>{const _0x22bb7c=_0x2360b3;if(_0x47fb55[_0x22bb7c(0x22e)]===_0x41a88d){const _0x36c626={..._0x47fb55};_0x36c626[_0x22bb7c(0x46e)]=_0x37fc93[_0x47fb55[_0x22bb7c(0x46e)]],_0xa50af5['set'](_0x3862ab,_0x36c626);}}),{'skeleton':_0x579921,'cursors':_0xa50af5};}));}return _0x8d55e({'skeleton':null,'cursors':new Map()});}))[_0x2f7ea1(0x3c4)](({skeleton:_0x251ed4,cursors:_0x4bf57e})=>{const _0x348929=_0x2f7ea1;this[_0x348929(0x2d2)](),_0x251ed4&&this[_0x348929(0x323)](_0x251ed4,_0x4bf57e);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x2f7ea1(0x3c4)](_0x36824b=>{const _0x4fe051=_0x2f7ea1;if(_0x36824b==null)return;const {skeleton:_0x3b79a7}=_0x36824b,{scene:_0x4ff672}=this[_0x4fe051(0x1c4)];_0x4ff672[_0x4fe051(0x1d9)][_0x4fe051(0x3cb)](_0x415879(_0x53e390=>{const _0x10e44d=_0x4fe051;var _0x1a02fe,_0x3171b9;const {offsetX:_0x24e268,offsetY:_0x3940ae}=_0x53e390,{x:_0x5a1269,y:_0x4dcd7d}=_0x4ff672[_0x10e44d(0x3fc)](_0x586911[_0x10e44d(0x1e8)]([_0x24e268,_0x3940ae])),{scaleX:_0x2e077f,scaleY:_0xcb6c8e}=_0x4ff672[_0x10e44d(0x322)](),_0x2544d1=_0x4ff672[_0x10e44d(0x449)](_0x398f9b[_0x10e44d(0x3ca)]),_0x486c06=_0x4ff672['getVpScrollXYInfoByPosToVp'](_0x586911[_0x10e44d(0x1e8)]([_0x5a1269,_0x4dcd7d]),_0x2544d1),_0x499c6a=_0x3b79a7[_0x10e44d(0x14b)](_0x24e268,_0x3940ae,_0x2e077f,_0xcb6c8e,_0x486c06);((_0x1a02fe=this[_0x10e44d(0x327)])==null?void 0x0:_0x1a02fe[_0x10e44d(0x3d5)])===_0x499c6a['column']&&((_0x3171b9=this['_lastPointer'])==null?void 0x0:_0x3171b9[_0x10e44d(0x297)])===_0x499c6a[_0x10e44d(0x297)]||this[_0x10e44d(0x45c)][_0x10e44d(0x1cd)](_0x2883d3=>{const _0xf43a9=_0x10e44d;_0x2883d3[_0xf43a9(0x20b)](_0x499c6a);});},0x64));});}[_0x2e5b1c(0x323)](_0x5b5b86,_0x1234b6){const _0x14675b=_0x2e5b1c;var _0x18cfb6;const _0x1d6afb=(_0x18cfb6=this[_0x14675b(0x271)][_0x14675b(0x196)]())==null?void 0x0:_0x18cfb6['skeleton'];if(!_0x1d6afb)return;const _0x2a83ca=this[_0x14675b(0x26a)]();if(!_0x2a83ca)return;this['_cursors'][_0x14675b(0x1cd)](_0x4850f1=>{const _0x59b42f=_0x14675b;_0x4850f1[_0x59b42f(0x3f3)]();});const {scene:_0x107a4f}=_0x2a83ca,_0x350472=Vr(Array[_0x14675b(0x1bf)](_0x1234b6[_0x14675b(0x2bb)]()))[_0x14675b(0x1c7)](_0x220823=>{const _0x135cd9=_0x14675b,{color:_0x4e1bc7,range:_0xb0d2d1,name:_0x2fb6f9,selection:_0xf3e170,sheetID:_0x2b5001}=_0x220823,{startColumn:_0x200222,startRow:_0x21b8a5,endColumn:_0x408f84,endRow:_0xb3b0ed}=_0xb0d2d1,_0x16e8aa=_0x341a0b(_0x21b8a5,_0x200222,_0x107a4f,_0x1d6afb),_0x50aa6e=_0x341a0b(_0xb3b0ed,_0x408f84,_0x107a4f,_0x1d6afb),{columnHeaderHeightAndMarginTop:_0x2b885b}=_0x1d6afb,{startX:_0x1af95a,startY:_0x50c0a8}=_0x16e8aa,{endX:_0x4b333f,endY:_0x4f88ee}=_0x50aa6e,_0x40d352=_0x4b333f-_0x1af95a,_0x5058be=_0x4f88ee-_0x50c0a8,_0x55fbea={'labelPosition':_0x50c0a8-_0x2b885b>=Ue?_0x135cd9(0x127):_0x135cd9(0x31f),'sheetID':_0x2b5001,'range':_0xb0d2d1,'color':_0x4e1bc7,'name':_0x2fb6f9,'selection':_0xf3e170,'left':_0x1af95a,'top':_0x50c0a8,'width':_0x40d352,'height':_0x5058be,'evented':!0x1,'zIndex':Br};return new jr(_0x2fb6f9,_0x55fbea);});_0x107a4f[_0x14675b(0x13b)](_0x350472,Lr),this[_0x14675b(0x45c)]=new Set(_0x350472);}[_0x2e5b1c(0x2d2)](){const _0x432787=_0x2e5b1c;var _0x38c461;(_0x38c461=this['_cursors'])==null||_0x38c461[_0x432787(0x1cd)](_0x2e38a3=>_0x2e38a3['dispose']());}[_0x2e5b1c(0x26a)](){const _0x25d3e7=_0x2e5b1c;return _0x40df2d(this[_0x25d3e7(0x1c4)]['unit'],this[_0x25d3e7(0x1c4)]);}};wt=kr([mt(0x1,_0x5c7fae(_0x5349fd)),mt(0x2,_0x5c7fae(fe)),mt(0x3,_0x5c7fae(_0x27c464))],wt);function Vr(_0xedbaef){const _0x1ef57c=_0x2e5b1c,_0x236d7c=new Map();return _0xedbaef[_0x1ef57c(0x1cd)](_0x27cacf=>{const _0x769a5=_0x1ef57c;if(_0x236d7c[_0x769a5(0x250)](_0x27cacf[_0x769a5(0x203)])){const _0x5f0ef9=_0x236d7c[_0x769a5(0x18f)](_0x27cacf[_0x769a5(0x203)]);_0x5f0ef9[_0x769a5(0x397)]+=',\x20'+_0x27cacf[_0x769a5(0x397)];}else _0x236d7c[_0x769a5(0x1e1)](_0x27cacf[_0x769a5(0x203)],_0x27cacf);}),Array[_0x1ef57c(0x1bf)](_0x236d7c[_0x1ef57c(0x2bb)]());}var y=function(){const _0x275077=_0x2e5b1c;return y=Object[_0x275077(0x190)]||function(_0x1c8100){const _0x89a6f9=_0x275077;for(var _0x4d4cc0,_0x468f29=0x1,_0x2a6f44=arguments[_0x89a6f9(0x1bb)];_0x468f29<_0x2a6f44;_0x468f29++){_0x4d4cc0=arguments[_0x468f29];for(var _0x1f7e8b in _0x4d4cc0)Object['prototype']['hasOwnProperty'][_0x89a6f9(0x13d)](_0x4d4cc0,_0x1f7e8b)&&(_0x1c8100[_0x1f7e8b]=_0x4d4cc0[_0x1f7e8b]);}return _0x1c8100;},y['apply'](this,arguments);},Fr=function(_0x4ad311,_0x39ddd3){const _0x49433a=_0x2e5b1c;var _0x1e1385={};for(var _0x186acc in _0x4ad311)Object[_0x49433a(0x3e6)][_0x49433a(0x1f6)][_0x49433a(0x13d)](_0x4ad311,_0x186acc)&&_0x39ddd3[_0x49433a(0x36d)](_0x186acc)<0x0&&(_0x1e1385[_0x186acc]=_0x4ad311[_0x186acc]);if(_0x4ad311!=null&&typeof Object['getOwnPropertySymbols']==_0x49433a(0x247)){for(var _0x11483f=0x0,_0x186acc=Object[_0x49433a(0x1cc)](_0x4ad311);_0x11483f<_0x186acc[_0x49433a(0x1bb)];_0x11483f++)_0x39ddd3[_0x49433a(0x36d)](_0x186acc[_0x11483f])<0x0&&Object[_0x49433a(0x3e6)][_0x49433a(0x33d)][_0x49433a(0x13d)](_0x4ad311,_0x186acc[_0x11483f])&&(_0x1e1385[_0x186acc[_0x11483f]]=_0x4ad311[_0x186acc[_0x11483f]]);}return _0x1e1385;},Wt=_0x5da15c(function(_0x8780af,_0x550f62){const _0x3ee4e6=_0x2e5b1c;var _0x49db11=_0x8780af['icon'],_0x1724e3=_0x8780af['id'],_0x841939=_0x8780af[_0x3ee4e6(0x3bc)],_0x2297bc=_0x8780af['extend'],_0x23a9dd=Fr(_0x8780af,[_0x3ee4e6(0x46b),'id',_0x3ee4e6(0x3bc),_0x3ee4e6(0x197)]),_0x225f07=_0x3ee4e6(0x2e5)[_0x3ee4e6(0x35e)](_0x1724e3,'\x20')[_0x3ee4e6(0x35e)](_0x841939||'')[_0x3ee4e6(0x27f)](),_0x36d04e=_0x4ab73c('_'['concat'](Yr()));return Hs(_0x49db11,''['concat'](_0x1724e3),{'defIds':_0x49db11[_0x3ee4e6(0x40a)],'idSuffix':_0x36d04e[_0x3ee4e6(0x422)]},y({'ref':_0x550f62,'className':_0x225f07},_0x23a9dd),_0x2297bc);});function Hs(_0x5e0797,_0x22c78b,_0x1a77a2,_0x4a35cb,_0x4b7374){const _0x53d554=_0x2e5b1c;return _0x3d6533(_0x5e0797[_0x53d554(0x33b)],y(y({'key':_0x22c78b},Wr(_0x5e0797,_0x1a77a2,_0x4b7374)),_0x4a35cb),(Gr(_0x5e0797,_0x1a77a2)[_0x53d554(0x1a5)]||[])[_0x53d554(0x1c7)](function(_0xb87fc6,_0xd6da34){const _0x48825e=_0x53d554;return Hs(_0xb87fc6,''[_0x48825e(0x35e)](_0x22c78b,'-')[_0x48825e(0x35e)](_0x5e0797[_0x48825e(0x33b)],'-')[_0x48825e(0x35e)](_0xd6da34),_0x1a77a2,void 0x0,_0x4b7374);}));}function Wr(_0x23d857,_0x55b7b2,_0x52a862){const _0x1f4ddb=_0x2e5b1c;var _0x188169=y({},_0x23d857[_0x1f4ddb(0x32f)]);_0x52a862!=null&&_0x52a862[_0x1f4ddb(0x45d)]&&_0x188169[_0x1f4ddb(0x344)]===_0x1f4ddb(0x45d)&&(_0x188169[_0x1f4ddb(0x344)]=_0x52a862['colorChannel1']);var _0x861b09=_0x55b7b2[_0x1f4ddb(0x40a)];return!_0x861b09||_0x861b09['length']===0x0||(_0x23d857[_0x1f4ddb(0x33b)]===_0x1f4ddb(0x3e8)&&_0x188169[_0x1f4ddb(0x20a)]&&(_0x188169[_0x1f4ddb(0x20a)]=_0x188169['xlink:href']+_0x55b7b2[_0x1f4ddb(0x2b1)]),Object['entries'](_0x188169)[_0x1f4ddb(0x1cd)](function(_0x5aaa8f){const _0x191caa=_0x1f4ddb;var _0x3de1b9=_0x5aaa8f[0x0],_0xff98fb=_0x5aaa8f[0x1];typeof _0xff98fb=='string'&&(_0x188169[_0x3de1b9]=_0xff98fb[_0x191caa(0x319)](/url\(#(.*)\)/,_0x191caa(0x229)['concat'](_0x55b7b2[_0x191caa(0x2b1)],')')));})),_0x188169;}function Gr(_0x3524c8,_0xc611cd){const _0x5b9c88=_0x2e5b1c;var _0x28ec8c,_0x44729c=_0xc611cd[_0x5b9c88(0x40a)];return!_0x44729c||_0x44729c['length']===0x0?_0x3524c8:_0x3524c8[_0x5b9c88(0x33b)]===_0x5b9c88(0x245)&&(!((_0x28ec8c=_0x3524c8['children'])===null||_0x28ec8c===void 0x0)&&_0x28ec8c[_0x5b9c88(0x1bb)])?y(y({},_0x3524c8),{'children':_0x3524c8[_0x5b9c88(0x1a5)]['map'](function(_0x3755c1){const _0xc29ffb=_0x5b9c88;return typeof _0x3755c1[_0xc29ffb(0x32f)]['id']==_0xc29ffb(0x239)&&_0x44729c&&_0x44729c[_0xc29ffb(0x36d)](_0x3755c1['attrs']['id'])>-0x1?y(y({},_0x3755c1),{'attrs':y(y({},_0x3755c1[_0xc29ffb(0x32f)]),{'id':_0x3755c1[_0xc29ffb(0x32f)]['id']+_0xc611cd[_0xc29ffb(0x2b1)]})}):_0x3755c1;})}):_0x3524c8;}function Yr(){const _0x4d452c=_0x2e5b1c;return Math[_0x4d452c(0x125)]()[_0x4d452c(0x19b)](0x24)[_0x4d452c(0x1db)](0x2,0x8);}Wt[_0x2e5b1c(0x1fc)]=_0x2e5b1c(0x1f8);var Kr={'tag':'svg','attrs':{'fill':'none','viewBox':_0x2e5b1c(0x2b5),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x2ee)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x2e5b1c(0x19d),'strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ks=_0x5da15c(function(_0x447d0b,_0x105374){const _0x499f96=_0x2e5b1c;return _0x3d6533(Wt,Object[_0x499f96(0x190)]({},_0x447d0b,{'id':_0x499f96(0x42d),'ref':_0x105374,'icon':Kr}));});ks['displayName']=_0x2e5b1c(0x479);var Xr={'tag':_0x2e5b1c(0x121),'attrs':{'fill':'none','viewBox':_0x2e5b1c(0x24a),'width':_0x2e5b1c(0x3b8),'height':_0x2e5b1c(0x3b8)},'children':[{'tag':'g','attrs':{'clipPath':_0x2e5b1c(0x1a9)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'stroke':_0x2e5b1c(0x264),'d':_0x2e5b1c(0x1dc),'strokeLinecap':'round','strokeLinejoin':_0x2e5b1c(0x19d),'strokeWidth':1.2}}]},{'tag':_0x2e5b1c(0x245),'attrs':{},'children':[{'tag':_0x2e5b1c(0x34c),'attrs':{'id':_0x2e5b1c(0x46f)},'children':[{'tag':_0x2e5b1c(0x23b),'attrs':{'fill':_0x2e5b1c(0x324),'d':_0x2e5b1c(0x290),'transform':_0x2e5b1c(0x130)}}]}]}],'defIds':[_0x2e5b1c(0x46f)]},Bs=_0x5da15c(function(_0x125f75,_0x11d37c){const _0x443c56=_0x2e5b1c;return _0x3d6533(Wt,Object['assign']({},_0x125f75,{'id':_0x443c56(0x3f2),'ref':_0x11d37c,'icon':Xr}));});Bs['displayName']=_0x2e5b1c(0x30e);const Jr=_0x2e5b1c(0x39b),zr=_0x2e5b1c(0x167),qr=_0x2e5b1c(0x429),Zr=_0x2e5b1c(0x483),Qr=_0x2e5b1c(0x30a),Oe={'onlineStatusIcon':Jr,'onlineStatusTitle':zr,'onlineStatus':qr,'online':Zr,'offline':Qr};function eo(_0x2a92e6){const _0xb9c6e1=_0x2e5b1c;switch(_0x2a92e6){case w[_0xb9c6e1(0x1ac)]:return _0xb9c6e1(0x2e4);case w['CONFLICT']:return _0xb9c6e1(0x154);case w['FETCH_MISS']:return _0xb9c6e1(0x2ba);case w['NOT_COLLAB']:return'collabStatus.notCollab';case w['PENDING']:case w[_0xb9c6e1(0x3c8)]:case w[_0xb9c6e1(0x478)]:return'collabStatus.syncing';case w[_0xb9c6e1(0x421)]:return _0xb9c6e1(0x153);}}function to(_0x40178e){const _0x2c5680=_0x2e5b1c,{status$:_0x220ce6}=_0x40178e,_0x50b9d1=_0x3834a2(_0x220ce6,w[_0x2c5680(0x19a)]),_0x5a5266=_0x1cf47e(_0x12e5b3),_0x4109f4=_0x1cf47e(ae),_0x2965c1=_0x50b9d1!==w[_0x2c5680(0x1ac)],_0x27f770=_0x5a5266['t'](eo(_0x50b9d1)),_0x5bbc24=_0x6c5a82(Oe[_0x2c5680(0x23e)],{[Oe['online']]:_0x2965c1,[Oe[_0x2c5680(0x3e4)]]:!_0x2965c1}),_0x227cf1=_0x2965c1?_0x24bd02[_0x2c5680(0x138)](Bs,null):_0x24bd02[_0x2c5680(0x138)](ks,null),_0x316d8a=_0x23455d(()=>{const _0x4c4b3c=_0x2c5680;_0x2965c1||_0x4109f4[_0x4c4b3c(0x332)]();},[_0x2965c1,_0x4109f4]);function _0x5b8432(){const _0x5c919e=_0x2c5680;return _0x24bd02['createElement']('div',{'className':_0x5bbc24,'onClick':_0x316d8a},_0x24bd02[_0x5c919e(0x138)](_0x5c919e(0x246),{'className':Oe[_0x5c919e(0x1d6)]},_0x227cf1),_0x24bd02['createElement'](_0x5c919e(0x246),{'className':Oe['onlineStatusTitle']},_0x27f770));}return _0x2965c1?_0x5b8432():_0x24bd02['createElement'](_0x2b5af8,{'title':_0x5a5266['t'](_0x2c5680(0x3fd))},_0x5b8432());}var so=Object[_0x2e5b1c(0x2de)],io=Object[_0x2e5b1c(0x41c)],no=(_0x5091d5,_0x437f1e,_0x2ef506,_0x3f7112)=>{const _0x56d370=_0x2e5b1c;for(var _0x196152=_0x3f7112>0x1?void 0x0:_0x3f7112?io(_0x437f1e,_0x2ef506):_0x437f1e,_0x48b97a=_0x5091d5[_0x56d370(0x1bb)]-0x1,_0x48e514;_0x48b97a>=0x0;_0x48b97a--)(_0x48e514=_0x5091d5[_0x48b97a])&&(_0x196152=(_0x3f7112?_0x48e514(_0x437f1e,_0x2ef506,_0x196152):_0x48e514(_0x196152))||_0x196152);return _0x3f7112&&_0x196152&&so(_0x437f1e,_0x2ef506,_0x196152),_0x196152;},ke=(_0x2f2ae0,_0x59147b)=>(_0x3a10ea,_0x5b273d)=>_0x59147b(_0x3a10ea,_0x5b273d,_0x2f2ae0);let ye=class extends _0x36403b{constructor(_0x422063,_0x344e4c,_0x5c608f,_0xae07b5){const _0x3313dd=_0x2e5b1c;super(),l(this,'_status$',new _0x16e81a(w[_0x3313dd(0x19a)])),(this[_0x3313dd(0x1ae)]=_0x422063,this[_0x3313dd(0x303)]=_0x344e4c,this[_0x3313dd(0x3ac)]=_0x5c608f,this[_0x3313dd(0x3c5)]=_0xae07b5,this[_0x3313dd(0x318)](),this['_initStatusListener']());}[_0x2e5b1c(0x141)](){const _0x463575=_0x2e5b1c;this[_0x463575(0x294)](this[_0x463575(0x1ae)]['focused$'][_0x463575(0x195)](_0x498d15(()=>{const _0x15b378=_0x463575,_0x20c3c0=this[_0x15b378(0x1ae)]['getFocusedUnit']();return _0x20c3c0?this['_collaborationController']['getCollabEntity$'](_0x20c3c0[_0x15b378(0x426)]()):_0x8d55e(null);}),_0x498d15(_0xb0948d=>_0xb0948d?_0xb0948d[_0x463575(0x281)]:_0x8d55e(w[_0x463575(0x19a)])))['subscribe'](_0x1aa2b1=>{const _0x100c03=_0x463575;this[_0x100c03(0x279)][_0x100c03(0x244)](_0x1aa2b1);}));}[_0x2e5b1c(0x318)](){const _0x14849e=_0x2e5b1c;this['disposeWithMe'](this[_0x14849e(0x303)][_0x14849e(0x317)](_0x1504a5[_0x14849e(0x377)],()=>_0x5abdc(ro({'status$':this[_0x14849e(0x279)][_0x14849e(0x2f8)]()}),this[_0x14849e(0x3ac)])));}};ye=no([ke(0x0,_0x30b2f2),ke(0x1,_0xbc9637),ke(0x2,_0x5c7fae(_0x5d259e)),ke(0x3,_0x5c7fae(Ae))],ye);function ro(_0x58e1c0){const {status$:_0xa8eac4}=_0x58e1c0;return function(){return _0x24bd02['createElement'](to,{'status$':_0xa8eac4});};}const Vs=_0x5a3236(_0x2e5b1c(0x3ae));var oo=Object['defineProperty'],ao=Object[_0x2e5b1c(0x41c)],co=(_0x4eac98,_0x17d9d4,_0x577b08,_0x1cd73f)=>{const _0x184f90=_0x2e5b1c;for(var _0x3c7e04=_0x1cd73f>0x1?void 0x0:_0x1cd73f?ao(_0x17d9d4,_0x577b08):_0x17d9d4,_0x1e278e=_0x4eac98[_0x184f90(0x1bb)]-0x1,_0x2295b0;_0x1e278e>=0x0;_0x1e278e--)(_0x2295b0=_0x4eac98[_0x1e278e])&&(_0x3c7e04=(_0x1cd73f?_0x2295b0(_0x17d9d4,_0x577b08,_0x3c7e04):_0x2295b0(_0x3c7e04))||_0x3c7e04);return _0x1cd73f&&_0x3c7e04&&oo(_0x17d9d4,_0x577b08,_0x3c7e04),_0x3c7e04;},me=(_0x5bf698,_0x1652af)=>(_0x1758e5,_0x180836)=>_0x1652af(_0x1758e5,_0x180836,_0x5bf698);let We=class extends _0x4bff65{constructor(_0x3945bb,_0x43675f,_0x5a3338,_0x22a5fb,_0x5b9562,_0x547596){const _0x244c03=_0x2e5b1c;super(),this['_urlService']=_0x3945bb,this[_0x244c03(0x2ec)]=_0x43675f,this[_0x244c03(0x1bd)]=_0x5a3338,this[_0x244c03(0x170)]=_0x22a5fb,this['_snapshotService']=_0x5b9562,_0x547596?_0x547596==null||_0x547596[_0x244c03(0x2ed)]()[_0x244c03(0x2e6)](()=>this[_0x244c03(0x42f)]()):(this[_0x244c03(0x2ec)][_0x244c03(0x166)](_0x244c03(0x33a),_0x244c03(0x2ab)),this[_0x244c03(0x42f)]());}async[_0x2e5b1c(0x42f)](){const _0x5be4bb=_0x2e5b1c,_0x2a3a69=this[_0x5be4bb(0x277)][_0x5be4bb(0x402)]('unit'),_0xd800b1=this['_urlService'][_0x5be4bb(0x402)](_0x5be4bb(0x255));if(!_0x2a3a69||!_0xd800b1){this[_0x5be4bb(0x2ec)]['debug']('[DataLoaderController]',_0x5be4bb(0x3cc));return;}switch(Number(_0xd800b1)){case x[_0x5be4bb(0x2c7)]:{const _0x19d023=await this['_loadSheet'](_0x2a3a69);this[_0x5be4bb(0x13c)](_0x19d023);break;}case x[_0x5be4bb(0x1de)]:{await this[_0x5be4bb(0x2d8)](_0x2a3a69);break;}default:{this[_0x5be4bb(0x2ec)][_0x5be4bb(0x30b)](_0x5be4bb(0x33a),_0x5be4bb(0x1c8));break;}}}async[_0x2e5b1c(0x13c)](_0x2e626d){const _0x49d368=_0x2e5b1c;await this['_updateSubUnitFromURLParams'](_0x2e626d),_0x2e626d[_0x49d368(0x1ff)]['pipe'](_0x2123e0(this[_0x49d368(0x3be)]))['subscribe'](_0x516bea=>{const _0xd35c6a=_0x49d368;_0x516bea&&this[_0xd35c6a(0x47c)](_0x516bea);}),this[_0x49d368(0x277)][_0x49d368(0x3b3)][_0x49d368(0x195)](_0x2123e0(this[_0x49d368(0x3be)]))[_0x49d368(0x3c4)](()=>this[_0x49d368(0x25d)](_0x2e626d));}[_0x2e5b1c(0x47c)](_0x2fd766,_0x36e188=!0x1){const _0x25a37b=_0x2e5b1c,_0x91c7de=this['_urlService'][_0x25a37b(0x402)]('subunit');_0x2fd766[_0x25a37b(0x3b5)]()!==_0x91c7de&&this[_0x25a37b(0x277)]['setParam'](_0x25a37b(0x14a),_0x2fd766['getSheetId'](),_0x36e188);}async[_0x2e5b1c(0x25d)](_0x5b1243){const _0x2d694d=_0x2e5b1c;var _0x49d462;const _0x5be226=this['_urlService']['getParam'](_0x2d694d(0x14a));if(!_0x5be226||!_0x5b1243[_0x2d694d(0x378)](_0x5be226)){const _0x5d46b7=_0x5b1243[_0x2d694d(0x1ea)]()[0x0],_0x3d6a88=_0x5b1243['getSheetBySheetId'](_0x5d46b7);if(!_0x3d6a88)return;this[_0x2d694d(0x47c)](_0x3d6a88,!0x0),await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243['getUnitId'](),'subUnitId':_0x5d46b7});return;}((_0x49d462=_0x5b1243[_0x2d694d(0x29a)]())==null?void 0x0:_0x49d462[_0x2d694d(0x3b5)]())!==_0x5be226&&await this[_0x2d694d(0x1bd)][_0x2d694d(0x335)](_0x29cb12['id'],{'unitId':_0x5b1243[_0x2d694d(0x426)](),'subUnitId':_0x5be226});}async[_0x2e5b1c(0x1c3)](_0x311918){const _0x201390=_0x2e5b1c;let _0x34c185=0x0;const _0x135be9=await this[_0x201390(0x170)][_0x201390(0x1cb)](_0x311918);return _0x135be9&&(_0x135be9['awaitingChangeset']||_0x135be9['mutations'][_0x201390(0x1bb)]!==0x0)&&(_0x34c185=_0x135be9[_0x201390(0x480)]),_0x34c185===0x0&&this['_logService'][_0x201390(0x166)](_0x201390(0x33a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x201390(0x37a)](_0x311918,_0x34c185);}async[_0x2e5b1c(0x2d8)](_0x2fce38){const _0xb579c2=_0x2e5b1c;let _0x1ecd21=0x0;const _0x331be3=await this['_localCacheService'][_0xb579c2(0x1cb)](_0x2fce38);return _0x331be3&&(_0x331be3['awaitingChangeset']||_0x331be3[_0xb579c2(0x225)]['length']!==0x0)&&(_0x1ecd21=_0x331be3[_0xb579c2(0x480)]),_0x1ecd21===0x0&&this[_0xb579c2(0x2ec)][_0xb579c2(0x166)](_0xb579c2(0x33a),_0xb579c2(0x1d1)),this[_0xb579c2(0x48a)][_0xb579c2(0x266)](_0x2fce38,_0x1ecd21);}};We=co([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],We),me(0x0,Vs),me(0x1,_0x1cafe9),me(0x2,_0x36a317),me(0x3,_0x5c7fae(D)),me(0x4,_0x5c7fae(_0x208dce)),me(0x5,_0x5723b6(_0x372f27))],We);var ho=Object[_0x2e5b1c(0x2de)],lo=Object[_0x2e5b1c(0x41c)],_o=(_0x15d690,_0x5bfdec,_0x133cdb,_0x356a42)=>{const _0x36a38f=_0x2e5b1c;for(var _0x41e69a=_0x356a42>0x1?void 0x0:_0x356a42?lo(_0x5bfdec,_0x133cdb):_0x5bfdec,_0x4301c7=_0x15d690[_0x36a38f(0x1bb)]-0x1,_0x2f5aee;_0x4301c7>=0x0;_0x4301c7--)(_0x2f5aee=_0x15d690[_0x4301c7])&&(_0x41e69a=(_0x356a42?_0x2f5aee(_0x5bfdec,_0x133cdb,_0x41e69a):_0x2f5aee(_0x41e69a))||_0x41e69a);return _0x356a42&&_0x41e69a&&ho(_0x5bfdec,_0x133cdb,_0x41e69a),_0x41e69a;},us=(_0x4c94d2,_0x5488fd)=>(_0x1797bc,_0x518792)=>_0x5488fd(_0x1797bc,_0x518792,_0x4c94d2);const uo='DEFAULT_FILE_NAME',mo=_0x2e5b1c(0x261);let Ge=class extends _0x36403b{constructor(_0x476861,_0x406278){const _0x5e3cba=_0x2e5b1c;super(),this[_0x5e3cba(0x1ae)]=_0x476861,this[_0x5e3cba(0x338)]=_0x406278,this['_init']();}['_init'](){const _0x48d5cf=_0x2e5b1c;this['disposeWithMe'](_0x29a7b(this['_univerInstanceService'][_0x48d5cf(0x137)][_0x48d5cf(0x3c4)](()=>{const _0x45f52f=_0x48d5cf;var _0x731e34;const _0x418af1=this[_0x45f52f(0x1ae)][_0x45f52f(0x1e7)]();let _0x32d944=(_0x731e34=this['_configService']['getConfig'](uo))!=null?_0x731e34:mo;_0x418af1 instanceof _0x450c96&&(_0x32d944=_0x418af1[_0x45f52f(0x397)]),document[_0x45f52f(0x454)]=_0x32d944;})));}};Ge=_o([_0x486866(_0x446a6f['Ready'],Ge),us(0x0,_0x30b2f2),us(0x1,_0x401b9d)],Ge);var fo=Object['defineProperty'],go=Object[_0x2e5b1c(0x41c)],So=(_0x20ccd4,_0xa7a599,_0x30bddd,_0x351b51)=>{const _0x5931e8=_0x2e5b1c;for(var _0x4ff509=_0x351b51>0x1?void 0x0:_0x351b51?go(_0xa7a599,_0x30bddd):_0xa7a599,_0x246c59=_0x20ccd4[_0x5931e8(0x1bb)]-0x1,_0x299a48;_0x246c59>=0x0;_0x246c59--)(_0x299a48=_0x20ccd4[_0x246c59])&&(_0x4ff509=(_0x351b51?_0x299a48(_0xa7a599,_0x30bddd,_0x4ff509):_0x299a48(_0x4ff509))||_0x4ff509);return _0x351b51&&_0x4ff509&&fo(_0xa7a599,_0x30bddd,_0x4ff509),_0x4ff509;},ds=(_0xc6c793,_0x7866ec)=>(_0x1503cc,_0x4da9e9)=>_0x7866ec(_0x1503cc,_0x4da9e9,_0xc6c793);let Pt=class{constructor(_0x167378,_0x2858dd){const _0x59bf1a=_0x2e5b1c;this[_0x59bf1a(0x338)]=_0x167378,this[_0x59bf1a(0x17e)]=_0x2858dd;}async[_0x2e5b1c(0x22f)](_0xf35094,_0xd7318f){const _0x13a6ac=_0x2e5b1c;var _0x3f4701;const {unitID:_0x2f460e,type:_0x48b72e,revision:_0xf4c8b3=0x0}=_0xd7318f,_0x1f16ff=this['_getSnapshotAPIPrefix']()+'/'+_0x48b72e+_0x13a6ac(0x2d9)+_0x2f460e+_0x13a6ac(0x48b)+_0xf4c8b3,_0x32cdeb=(await this[_0x13a6ac(0x17e)][_0x13a6ac(0x18f)](_0x1f16ff))[_0x13a6ac(0x12f)],_0x261b88=(_0x3f4701=_0x32cdeb[_0x13a6ac(0x35d)])==null?void 0x0:_0x3f4701['workbook'];if(_0x261b88){const _0xbe1b36=_0x261b88==null?void 0x0:_0x261b88[_0x13a6ac(0x2e1)],_0x4a64d0=_0x1d8b96[_0x13a6ac(0x2f9)](_0x5ee83a(_0xbe1b36));_0x261b88[_0x13a6ac(0x2e1)]=_0x4a64d0,Object[_0x13a6ac(0x359)](_0x261b88['sheets'])['forEach'](([,_0x4db5cc])=>{const _0x172de4=_0x13a6ac,_0x3df22c=_0x4db5cc[_0x172de4(0x2e1)],_0x50f2c0=_0x1d8b96['encode'](_0x5ee83a(_0x3df22c));_0x4db5cc[_0x172de4(0x2e1)]=_0x50f2c0;});}return _0x32cdeb;}async[_0x2e5b1c(0x2f7)](_0x17df4f,_0x200afb){const _0x2079b0=_0x2e5b1c,{unitID:_0x224529,type:_0x334130,blockID:_0x43c7e1}=_0x200afb,_0x8c596c=this[_0x2079b0(0x126)]()+'/'+_0x334130+_0x2079b0(0x2d9)+_0x224529+_0x2079b0(0x27d)+_0x43c7e1;return(await this[_0x2079b0(0x17e)][_0x2079b0(0x18f)](_0x8c596c))[_0x2079b0(0x12f)];}async[_0x2e5b1c(0x160)](_0x263a2a,_0x293c66){const _0x25aafa=_0x2e5b1c,{unitID:_0x558692,type:_0x27e044,from:_0x333fa8,to:_0x58959d}=_0x293c66,_0x195490=this[_0x25aafa(0x126)]()+'/'+_0x27e044+_0x25aafa(0x2d9)+_0x558692+'/fetchmissing?from='+_0x333fa8+'&to='+_0x58959d;return(await this[_0x25aafa(0x17e)][_0x25aafa(0x18f)](_0x195490))[_0x25aafa(0x12f)];}['_getSnapshotAPIPrefix'](){const _0x37701e=_0x2e5b1c;var _0xe5dfdb;return(_0xe5dfdb=this[_0x37701e(0x338)][_0x37701e(0x142)](dn))!=null?_0xe5dfdb:this[_0x37701e(0x126)]();}[_0x2e5b1c(0x126)](){const _0x28a282=_0x2e5b1c;var _0x264f27;return(_0x264f27=this[_0x28a282(0x338)][_0x28a282(0x142)](_n))!=null?_0x264f27:un;}async[_0x2e5b1c(0x3c6)](_0x7cd71a,_0x1cc224){const _0x22f3d2=_0x2e5b1c,_0x17fe1f='/universer-api/snapshot/'+_0x1cc224[_0x22f3d2(0x255)]+_0x22f3d2(0x2d9)+_0x1cc224[_0x22f3d2(0x3a4)]+'/resources';return(await this[_0x22f3d2(0x17e)][_0x22f3d2(0x18f)](_0x17fe1f,{'params':{'resourceId':JSON[_0x22f3d2(0x3d7)](_0x1cc224[_0x22f3d2(0x38f)])}}))['body'];}[_0x2e5b1c(0x222)](){const _0x1f93ad=_0x2e5b1c;throw new Error(_0x1f93ad(0x379));}[_0x2e5b1c(0x2fb)](){const _0x3961c5=_0x2e5b1c;throw new Error(_0x3961c5(0x379));}[_0x2e5b1c(0x27e)](){const _0x69905c=_0x2e5b1c;throw new Error(_0x69905c(0x379));}};Pt=So([ds(0x0,_0x401b9d),ds(0x1,_0x5c7fae(_0x35343d))],Pt);var po=Object[_0x2e5b1c(0x2de)],vo=Object[_0x2e5b1c(0x41c)],Io=(_0x396474,_0x4dd039,_0x4ad887,_0x48945c)=>{for(var _0x4d4b0d=_0x48945c>0x1?void 0x0:_0x48945c?vo(_0x4dd039,_0x4ad887):_0x4dd039,_0xbf08e1=_0x396474['length']-0x1,_0x21785c;_0xbf08e1>=0x0;_0xbf08e1--)(_0x21785c=_0x396474[_0xbf08e1])&&(_0x4d4b0d=(_0x48945c?_0x21785c(_0x4dd039,_0x4ad887,_0x4d4b0d):_0x21785c(_0x4d4b0d))||_0x4d4b0d);return _0x48945c&&_0x4d4b0d&&po(_0x4dd039,_0x4ad887,_0x4d4b0d),_0x4d4b0d;},De=(_0x554bfa,_0x146012)=>(_0x359aef,_0x2fa465)=>_0x146012(_0x359aef,_0x2fa465,_0x554bfa);let Nt=class extends _0x30a328{constructor(_0x598dad,_0x51ee93,_0x9db795,_0x398779,_0x584784){const _0xd0ce1a=_0x2e5b1c;super(_0x598dad,_0x51ee93,_0x9db795),this['_transformService']=_0x398779,this[_0xd0ce1a(0x2ec)]=_0x584784;}['transformUndoRedo'](_0x186e82,_0xa81ceb){const _0x2e0515=_0x2e5b1c,_0x4fb827=this[_0x2e0515(0x48e)](_0x186e82);if(_0x4fb827)try{const _0x40a744=this['_transformStack'](_0x4fb827,_0xa81ceb);this[_0x2e0515(0x45b)](_0x186e82,_0x40a744);}catch(_0x7e0aa5){this['_logService'][_0x2e0515(0x30b)](_0x2e0515(0x25f),_0x7e0aa5),this[_0x2e0515(0x241)](_0x186e82);}const _0x187057=this['_getRedoStack'](_0x186e82);if(_0x187057)try{const _0x508242=this[_0x2e0515(0x339)](_0x187057,_0xa81ceb);this['_substituteRedoStack'](_0x186e82,_0x508242);}catch(_0x49e9ba){this[_0x2e0515(0x2ec)][_0x2e0515(0x30b)](_0x49e9ba),this[_0x2e0515(0x453)](_0x186e82);}}[_0x2e5b1c(0x241)](_0x34dd9a){const _0x1aca6f=_0x2e5b1c,_0x10d957=this[_0x1aca6f(0x48e)](_0x34dd9a);_0x10d957&&(_0x10d957[_0x1aca6f(0x1bb)]=0x0,this[_0x1aca6f(0x384)]());}[_0x2e5b1c(0x453)](_0x42eb99){const _0x38133a=_0x2e5b1c,_0x2e4f0b=this[_0x38133a(0x19e)](_0x42eb99);_0x2e4f0b&&(_0x2e4f0b[_0x38133a(0x1bb)]=0x0,this[_0x38133a(0x384)]());}[_0x2e5b1c(0x45b)](_0x19029d,_0x129860){const _0x2d99d7=_0x2e5b1c;this[_0x2d99d7(0x15c)]['set'](_0x19029d,_0x129860),this['_updateStatus']();}[_0x2e5b1c(0x346)](_0x29ab95,_0x144162){const _0x4f3c91=_0x2e5b1c;this[_0x4f3c91(0x207)]['set'](_0x29ab95,_0x144162),this[_0x4f3c91(0x384)]();}[_0x2e5b1c(0x339)](_0x4b7d60,_0x494f5f){const _0x62ce0e=_0x2e5b1c,_0x4baab0=[];let _0x5d9c48=_0x494f5f,_0x50c93b=_0x494f5f;for(let _0x10bdf9=_0x4b7d60[_0x62ce0e(0x1bb)]-0x1;_0x10bdf9>=0x0;_0x10bdf9--){const {unitID:_0x1c3cbf,undoMutations:_0x4489e1,redoMutations:_0x18060f}=_0x4b7d60[_0x10bdf9],_0x3ddd2f=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x5d9c48,_0x4489e1),_0x15873a=this[_0x62ce0e(0x3cf)]['transformMutationsWithChangeset'](_0x50c93b,_0x18060f);if(_0x364023(_0x3ddd2f)||_0x364023(_0x15873a)){this['_logService'][_0x62ce0e(0x30b)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x3ddd2f,_0x15873a);break;}_0x5d9c48=_0x3ddd2f[_0x62ce0e(0x145)],_0x50c93b=_0x15873a[_0x62ce0e(0x145)],_0x4baab0[_0x62ce0e(0x2f1)]({'unitID':_0x1c3cbf,'undoMutations':_0x3ddd2f[_0x62ce0e(0x366)],'redoMutations':_0x15873a[_0x62ce0e(0x366)]});}return _0x4baab0['reverse']();}};Nt=Io([De(0x0,_0x30b2f2),De(0x1,_0x36a317),De(0x2,_0x693680),De(0x3,_0x4e0f96),De(0x4,_0x1cafe9)],Nt);class Eo extends _0x4bff65{constructor(){const _0x12e687=_0x2e5b1c;super(),l(this,'urlChange$'),this['urlChange$']=_0x4dbad7(window,_0x12e687(0x12b))['pipe'](_0x2123e0(this[_0x12e687(0x3be)]),_0x1aec94(0x1),_0x543013(void 0x0));}[_0x2e5b1c(0x136)](_0x1855f1,_0x47adba,_0x13933a=!0x1){const _0x5758dd=_0x2e5b1c,_0x12c398=new URL(window[_0x5758dd(0x162)][_0x5758dd(0x2e7)]);_0x12c398[_0x5758dd(0x202)][_0x5758dd(0x1e1)](_0x1855f1,_0x47adba),_0x13933a?window[_0x5758dd(0x1bc)]['replaceState']('','',_0x12c398['toString']()):window['history'][_0x5758dd(0x3f5)]('','',_0x12c398[_0x5758dd(0x19b)]());}[_0x2e5b1c(0x455)](_0x119789,_0x1d805e=!0x1){const _0x28b060=_0x2e5b1c,_0x141de5=new URL(window[_0x28b060(0x162)][_0x28b060(0x2e7)]);_0x141de5[_0x28b060(0x202)][_0x28b060(0x18d)](_0x119789),_0x1d805e?window[_0x28b060(0x1bc)][_0x28b060(0x433)]('','',_0x141de5['toString']()):window[_0x28b060(0x1bc)][_0x28b060(0x3f5)]('','',_0x141de5[_0x28b060(0x19b)]());}[_0x2e5b1c(0x402)](_0x3b214b){const _0x20948f=_0x2e5b1c;var _0x40c5d0;return(_0x40c5d0=new URL(window['location']['href'])[_0x20948f(0x202)][_0x20948f(0x18f)](_0x3b214b))!=null?_0x40c5d0:void 0x0;}}const ft=_0x2e5b1c(0x2c8),Co='collab-text-range-',bo=_0x2e5b1c(0x35a),we=0x6,To=1.5,gt=0x4,Ro=1.5,Oo='rgba(255,\x20255,\x20255,\x200.01)';class ms{constructor(_0x228d78,_0x24fb9c,_0x35e9ac,_0x36b547){const _0x3f364e=_0x2e5b1c;l(this,'_shapes',[]),l(this,_0x3f364e(0x1b1),null),l(this,'_textBubble',null),l(this,_0x3f364e(0x21a),null),l(this,_0x3f364e(0x150),null),l(this,_0x3f364e(0x29f),null),(this['_cursor']=_0x228d78,this['_scene']=_0x24fb9c,this[_0x3f364e(0x43a)]=_0x35e9ac,this[_0x3f364e(0x2be)]=_0x36b547,this[_0x3f364e(0x357)]());}set[_0x2e5b1c(0x308)](_0x3e9e9a){const _0x5a3ca0=_0x2e5b1c;_0x3e9e9a?(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x424)](),this[_0x5a3ca0(0x2aa)]&&this['_textBubble']['show']()):(this[_0x5a3ca0(0x21a)]&&this[_0x5a3ca0(0x21a)][_0x5a3ca0(0x367)](),this[_0x5a3ca0(0x2aa)]&&this[_0x5a3ca0(0x2aa)][_0x5a3ca0(0x424)]());}['dispose'](){const _0x40836f=_0x2e5b1c;for(const _0x4d5bc7 of this['_shapes'])_0x4d5bc7[_0x40836f(0x2fe)]();this[_0x40836f(0x2aa)]&&this[_0x40836f(0x2aa)][_0x40836f(0x2fe)](),this['_anchorDot']&&this[_0x40836f(0x21a)][_0x40836f(0x2fe)](),this[_0x40836f(0x1b1)]&&this[_0x40836f(0x1b1)][_0x40836f(0x2fe)](),this[_0x40836f(0x29f)]&&this[_0x40836f(0x29f)]();}['_render'](){const _0x129216=_0x2e5b1c;var _0x455184;const {_docSkeleton:_0x2e46bd,_document:_0x5191df}=this,{color:_0x28b3c4,name:_0x5cba2e,ranges:_0x4952c2}=this[_0x129216(0x37e)],_0x2e16c8=_0x5191df[_0x129216(0x240)](),{docsLeft:_0x53fc1c,docsTop:_0x54c491}=_0x2e16c8,_0x3b9813=new _0x5cf9b0(_0x2e16c8,_0x2e46bd);for(const {startOffset:_0x44e548,endOffset:_0x493825,collapsed:_0x3cedd8,isActive:_0x5d9ec0}of _0x4952c2){const _0x8bc785=_0x2e46bd[_0x129216(0x25e)](_0x44e548),_0x4a45a6=_0x2e46bd[_0x129216(0x25e)](_0x493825);if(_0x5d9ec0){const {contentBoxPointGroup:_0x26212b}=_0x3b9813[_0x129216(0x2cc)](_0x4a45a6,_0x4a45a6);if(_0x26212b[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x3dc)](_0x28b3c4,_0x26212b,_0x53fc1c,_0x54c491,_0x5cba2e),this[_0x129216(0x29f)]=this[_0x129216(0x3d2)]();}if(!_0x3cedd8&&_0x8bc785&&_0x4a45a6){if(_0x29cf68(_0x8bc785,_0x4a45a6)){const _0x55228b=new _0xbfc352(_0x2e16c8,_0x2e46bd),{pointGroup:_0x3355cd}=(_0x455184=_0x55228b[_0x129216(0x2cc)](_0x8bc785,_0x4a45a6))!=null?_0x455184:{};if(_0x3355cd==null||_0x3355cd[_0x129216(0x1bb)]===0x0)continue;this[_0x129216(0x122)](_0x28b3c4,_0x3355cd,_0x53fc1c,_0x54c491);}else{const {contentBoxPointGroup:_0x4c8828}=_0x3b9813['getRangePointData'](_0x8bc785,_0x4a45a6);if(_0x4c8828['length']===0x0)continue;this[_0x129216(0x1e2)](_0x28b3c4,_0x4c8828,_0x53fc1c,_0x54c491);}}}}['_drawAnchor'](_0x17c1ae,_0x38db41,_0x38ab4c,_0x29c95b,_0x1e9dcf){const _0x1f66e8=_0x2e5b1c,_0x5e7cb7=this['_getAnchorBounding'](_0x38db41),{left:_0x42bf0b,top:_0x3e7134,height:_0x2eb46d}=_0x5e7cb7,_0x4d89fd=this[_0x1f66e8(0x340)](),_0x4c3db8=Ro/_0x4d89fd,_0x1406e4=new _0x170a21(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b,'height':_0x2eb46d,'width':To,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':_0x4c3db8,'stroke':Oo,'evented':!0x0});this[_0x1f66e8(0x1b1)]=_0x1406e4,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x1406e4,_0x2b5c4c);const _0x134887=new _0x170a21(ft+_0x3cea4b[_0x1f66e8(0x1ce)](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-gt/0x2,'height':gt,'width':gt,'fill':_0x17c1ae||_0x3c99d3(_0x44cb7f['black'],0x0),'strokeWidth':0x0,'stroke':_0x17c1ae||_0x3c99d3(_0x44cb7f[_0x1f66e8(0x13e)],0x0),'evented':!0x1});this[_0x1f66e8(0x21a)]=_0x134887,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x134887,_0x2b5c4c);const _0x4a8bae=new nt(ft+_0x3cea4b['generateRandomId'](we),{'left':_0x42bf0b+_0x38ab4c-_0x4c3db8,'top':_0x3e7134+_0x29c95b-Ue,'text':_0x1e9dcf,'color':_0x17c1ae});this['_textBubble']=_0x4a8bae,this[_0x1f66e8(0x173)][_0x1f66e8(0x2eb)](_0x4a8bae,_0x2b5c4c),this[_0x1f66e8(0x308)]=!0x1;}[_0x2e5b1c(0x3d2)](){const _0x24e0c9=_0x2e5b1c,_0x536b2f=this[_0x24e0c9(0x1b1)][_0x24e0c9(0x3b9)][_0x24e0c9(0x3cb)](()=>{const _0x27f4da=_0x24e0c9;this[_0x27f4da(0x308)]=!0x0;}),_0x2af6f7=this['_anchor'][_0x24e0c9(0x3d3)][_0x24e0c9(0x3cb)](()=>{const _0x43513b=_0x24e0c9;this[_0x43513b(0x150)]&&clearTimeout(this['_hideTimer']),this[_0x43513b(0x150)]=setTimeout(()=>{const _0x2fc2a7=_0x43513b;this[_0x2fc2a7(0x308)]=!0x1;},0x7d0);});return()=>{const _0x36b386=_0x24e0c9;_0x536b2f[_0x36b386(0x1c1)](),_0x2af6f7['unsubscribe']();};}[_0x2e5b1c(0x1e2)](_0x7eca3f,_0xaf1a1b,_0x3385ab,_0x7f63f5){const _0x7c7343=_0x2e5b1c,_0x16d4e5=new _0x21fa84(_0x7eca3f)[_0x7c7343(0x1ee)](0.2)[_0x7c7343(0x282)](),_0x1f70fe=new _0x532a25(Co+_0x3cea4b[_0x7c7343(0x1ce)](we),{'pointsGroup':_0xaf1a1b,'fill':_0x16d4e5||_0x3c99d3(_0x44cb7f[_0x7c7343(0x13e)],0.2),'left':_0x3385ab,'top':_0x7f63f5,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x7c7343(0x3eb)][_0x7c7343(0x2f1)](_0x1f70fe),this[_0x7c7343(0x173)][_0x7c7343(0x2eb)](_0x1f70fe,_0x2b5c4c);}[_0x2e5b1c(0x122)](_0x4a2108,_0x39b540,_0x147308,_0x2d4aa6){const _0x47f56e=_0x2e5b1c,_0xc325cd=new _0x21fa84(_0x4a2108)['setAlpha'](0.2)[_0x47f56e(0x282)](),_0x1da917=new _0x532a25(bo+_0x3cea4b[_0x47f56e(0x1ce)](we),{'pointsGroup':_0x39b540,'fill':_0xc325cd||_0x3c99d3(_0x44cb7f[_0x47f56e(0x13e)],0.2),'left':_0x147308,'top':_0x2d4aa6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x47f56e(0x3eb)][_0x47f56e(0x2f1)](_0x1da917),this[_0x47f56e(0x173)][_0x47f56e(0x2eb)](_0x1da917,_0x2b5c4c);}['_getAnchorBounding'](_0x29a17f){const _0x48c319=_0x29a17f[0x0],_0x1b17ec=_0x48c319[0x0],_0x2d9c70=_0x48c319[0x2],{x:_0x49feda,y:_0x151fc7}=_0x1b17ec,{x:_0x200310,y:_0x3b4793}=_0x2d9c70;return{'left':_0x49feda,'top':_0x151fc7,'width':_0x200310-_0x49feda,'height':_0x3b4793-_0x151fc7};}[_0x2e5b1c(0x340)](){const _0x35040b=_0x2e5b1c,{scaleX:_0xe8f76e,scaleY:_0x43e3a5}=this[_0x35040b(0x173)][_0x35040b(0x322)]();return Math[_0x35040b(0x123)](_0xe8f76e,_0x43e3a5);}}var Do=Object[_0x2e5b1c(0x2de)],wo=Object[_0x2e5b1c(0x41c)],Po=(_0x1dbce5,_0x1710b3,_0x23054e,_0x3388cd)=>{for(var _0x988116=_0x3388cd>0x1?void 0x0:_0x3388cd?wo(_0x1710b3,_0x23054e):_0x1710b3,_0x4c3f2c=_0x1dbce5['length']-0x1,_0x527194;_0x4c3f2c>=0x0;_0x4c3f2c--)(_0x527194=_0x1dbce5[_0x4c3f2c])&&(_0x988116=(_0x3388cd?_0x527194(_0x1710b3,_0x23054e,_0x988116):_0x527194(_0x988116))||_0x988116);return _0x3388cd&&_0x988116&&Do(_0x1710b3,_0x23054e,_0x988116),_0x988116;},Be=(_0x2ffc6c,_0x3e9b92)=>(_0x1a2a12,_0x21dbfb)=>_0x3e9b92(_0x1a2a12,_0x21dbfb,_0x2ffc6c);let Ye=class extends _0x4bff65{constructor(_0xaa07c4,_0x5bf71c,_0x22f7ea,_0x45f098,_0x30d301){const _0x3c6301=_0x2e5b1c;super(),l(this,_0x3c6301(0x313),[]),l(this,_0x3c6301(0x45c),[]),(this['_context']=_0xaa07c4,this[_0x3c6301(0x431)]=_0x5bf71c,this['_collabCursorController']=_0x22f7ea,this[_0x3c6301(0x1bd)]=_0x45f098,this[_0x3c6301(0x382)]=_0x30d301,this['_init']());}[_0x2e5b1c(0x42f)](){const _0x33a0ef=_0x2e5b1c,_0x34c387=this[_0x33a0ef(0x1c4)][_0x33a0ef(0x275)],_0x21785a=this[_0x33a0ef(0x431)];this[_0x33a0ef(0x294)](_0x1ee3b6([this['_collabCursorController'][_0x33a0ef(0x16c)](_0x34c387),this[_0x33a0ef(0x382)][_0x33a0ef(0x221)]])[_0x33a0ef(0x195)](_0x4b551a(([_0x1eac69,_0x36f406])=>({'skeleton':_0x21785a[_0x33a0ef(0x2bc)](),'cursors':[..._0x1eac69['values']()][_0x33a0ef(0x177)](_0x353798=>({..._0x353798,'color':_0x36f406[_0x353798['color']]}))})))[_0x33a0ef(0x3c4)](_0xf68629=>{const _0xfb2ac0=_0x33a0ef;if(this[_0xfb2ac0(0x2d2)](),_0xf68629){const {skeleton:_0x21f296,cursors:_0x1524ac}=_0xf68629;this[_0xfb2ac0(0x323)](_0x21f296,_0x1524ac);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2e5b1c(0x323)](_0x3018ef,_0x100a91){const _0x3fef4f=_0x2e5b1c,{scene:_0x178353,mainComponent:_0x438150}=this[_0x3fef4f(0x1c4)],_0x28a636=_0x100a91[_0x3fef4f(0x1c7)](_0x5c8882=>new ms(_0x5c8882,_0x178353,_0x3018ef,_0x438150));this[_0x3fef4f(0x313)]=_0x28a636,this['_cursors']=_0x100a91;}[_0x2e5b1c(0x171)](){const _0x3822ac=_0x2e5b1c;this[_0x3822ac(0x2d2)]();const {scene:_0x2c4d4c,mainComponent:_0x219cd4}=this['_context'],_0x917812=this[_0x3822ac(0x431)][_0x3822ac(0x2bc)](),_0x4c44bb=this[_0x3822ac(0x45c)][_0x3822ac(0x1c7)](_0x2c9ac2=>new ms(_0x2c9ac2,_0x2c4d4c,_0x917812,_0x219cd4));this[_0x3822ac(0x313)]=_0x4c44bb;}[_0x2e5b1c(0x2d2)](){const _0x4d1dd0=_0x2e5b1c;this[_0x4d1dd0(0x313)][_0x4d1dd0(0x1cd)](_0x10280d=>_0x10280d[_0x4d1dd0(0x2fe)]()),this[_0x4d1dd0(0x313)]=[];}[_0x2e5b1c(0x26d)](){const _0x405d9d=_0x2e5b1c,_0x1093bf=[_0x23717a['id']];this[_0x405d9d(0x294)](this['_commandService'][_0x405d9d(0x20e)](_0xba8f1f=>{const _0x19451d=_0x405d9d;_0x1093bf['includes'](_0xba8f1f['id'])&&_0xba8f1f[_0x19451d(0x27b)][_0x19451d(0x275)]===this['_context'][_0x19451d(0x275)]&&this[_0x19451d(0x171)]();}));}[_0x2e5b1c(0x1d5)](){const _0x2395f8=_0x2e5b1c;this[_0x2395f8(0x294)](_0x240b02(this['_context'][_0x2395f8(0x18e)][_0x2395f8(0x2ae)])[_0x2395f8(0x195)](_0x48e324(_0x199e6a=>_0x199e6a['type']===_0x277f5f['resize']),_0x326ad7(0x10))[_0x2395f8(0x3c4)](()=>{const _0x2402f5=_0x2395f8;this[_0x2402f5(0x171)]();}));}};Ye=Po([_0x486866(_0x446a6f[_0x2e5b1c(0x2bf)],Ye),Be(0x1,_0x5c7fae(_0x2398d4)),Be(0x2,_0x5c7fae(fe)),Be(0x3,_0x36a317),Be(0x4,_0x5c7fae(_0x27c464))],Ye);var No=Object[_0x2e5b1c(0x2de)],yo=Object[_0x2e5b1c(0x41c)],Mo=(_0x1d9940,_0x5c56b5,_0xf71e76,_0x448ae6)=>{const _0x4a40e3=_0x2e5b1c;for(var _0x3f0dba=_0x448ae6>0x1?void 0x0:_0x448ae6?yo(_0x5c56b5,_0xf71e76):_0x5c56b5,_0x199022=_0x1d9940[_0x4a40e3(0x1bb)]-0x1,_0x5442f8;_0x199022>=0x0;_0x199022--)(_0x5442f8=_0x1d9940[_0x199022])&&(_0x3f0dba=(_0x448ae6?_0x5442f8(_0x5c56b5,_0xf71e76,_0x3f0dba):_0x5442f8(_0x3f0dba))||_0x3f0dba);return _0x448ae6&&_0x3f0dba&&No(_0x5c56b5,_0xf71e76,_0x3f0dba),_0x3f0dba;},St=(_0x263ff4,_0x51351d)=>(_0x3f276a,_0x4024b2)=>_0x51351d(_0x3f276a,_0x4024b2,_0x263ff4);let st=class{constructor(_0x43959b,_0x51b8db,_0x1569db){const _0x1ed1e8=_0x2e5b1c;this[_0x1ed1e8(0x338)]=_0x43959b,this[_0x1ed1e8(0x17e)]=_0x51b8db,this[_0x1ed1e8(0x176)]=_0x1569db,this[_0x1ed1e8(0x124)]();}[_0x2e5b1c(0x124)](){const _0x45c09b=_0x2e5b1c;this['_httpService'][_0x45c09b(0x17b)]({'priority':0x1,'interceptor':(_0x164df8,_0x5217e4)=>_0x5217e4(_0x164df8)['pipe'](_0x4c98f9(async _0x663063=>{const _0x1e43ef=_0x45c09b,_0x492331=_0x663063;if(_0x492331['status']===0x191&&window['confirm'](this[_0x1e43ef(0x176)]['t'](_0x1e43ef(0x295)))){const _0x4a7df5=window[_0x1e43ef(0x2c1)](window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]);window[_0x1e43ef(0x162)][_0x1e43ef(0x2e7)]=this['_getLoginPath']()+_0x1e43ef(0x390)+_0x4a7df5;}return _0x492331;}))});}[_0x2e5b1c(0x370)](){const _0x253540=_0x2e5b1c;var _0x4f08ee;return(_0x4f08ee=this[_0x253540(0x338)]['getConfig'](wn))!=null?_0x4f08ee:Pn;}};st=Mo([St(0x0,_0x401b9d),St(0x1,_0x5c7fae(_0x35343d)),St(0x2,_0x5c7fae(_0x12e5b3))],st);var Ao=Object[_0x2e5b1c(0x2de)],Uo=Object[_0x2e5b1c(0x41c)],Lo=(_0x489c4b,_0x104b09,_0x161ad0,_0x5b62f1)=>{for(var _0x3f617a=_0x5b62f1>0x1?void 0x0:_0x5b62f1?Uo(_0x104b09,_0x161ad0):_0x104b09,_0xeca85c=_0x489c4b['length']-0x1,_0x13e574;_0xeca85c>=0x0;_0xeca85c--)(_0x13e574=_0x489c4b[_0xeca85c])&&(_0x3f617a=(_0x5b62f1?_0x13e574(_0x104b09,_0x161ad0,_0x3f617a):_0x13e574(_0x3f617a))||_0x3f617a);return _0x5b62f1&&_0x3f617a&&Ao(_0x104b09,_0x161ad0,_0x3f617a),_0x3f617a;},fs=(_0x3865c6,_0x50709a)=>(_0x92ef63,_0x48a45a)=>_0x50709a(_0x92ef63,_0x48a45a,_0x3865c6);const $o='AUTHZ_URL_KEY',jo=_0x2e5b1c(0x1eb);let yt=class extends _0x36403b{constructor(_0x3127a6,_0x1400d7){const _0x582f24=_0x2e5b1c;super(),this[_0x582f24(0x423)]=_0x3127a6,this[_0x582f24(0x338)]=_0x1400d7,this[_0x582f24(0x285)]();}['_initMergeInterceptor'](){const _0x3fe165=_0x2e5b1c,_0x374d96=this;this[_0x3fe165(0x294)](this[_0x3fe165(0x423)][_0x3fe165(0x17b)]({'priority':0x3e7,'interceptor':_0x441ebe({'isMatch'(_0xc625b4){const _0x93d93a=_0x3fe165;var _0x37e04a;if(_0xc625b4[_0x93d93a(0x41a)]==='POST'&&((_0x37e04a=_0xc625b4[_0x93d93a(0x296)])!=null&&_0x37e04a[_0x93d93a(0x12f)])){const {objectID:_0x5c2627,objectType:_0x17205e}=_0xc625b4[_0x93d93a(0x296)][_0x93d93a(0x12f)]||{};if(!_0x5c2627||_0x17205e===void 0x0)return!0x1;const _0x469d5b=_0x374d96['_getAPIPrefixPath']()+'/'+_0x17205e+_0x93d93a(0x489)+_0x5c2627+_0x93d93a(0x3df);if(_0xc625b4[_0x93d93a(0x2c3)]===_0x469d5b)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1a8894){const _0x683aa3=_0x3fe165;var _0x42b6b0;return(_0x42b6b0=_0x1a8894[_0x683aa3(0x296)])==null?void 0x0:_0x42b6b0[_0x683aa3(0x12f)];},'mergeParamsToRequest'(_0x23c52e,_0x3376e7){const _0x155127=_0x3fe165,_0x97940b=_0x374d96[_0x155127(0x2c9)]()+_0x155127(0x472),_0x56eb28=_0x23c52e[_0x155127(0x212)]((_0x200444,_0x13743a)=>{const _0x2650df=_0x155127,{unitID:_0x85cdb8,objectID:_0x586dfe,objectType:_0x4c2fab,actions:_0x36eb93}=_0x13743a;return _0x200444[_0x85cdb8]||(_0x200444[_0x85cdb8]={}),_0x200444[_0x85cdb8][_0x586dfe]||(_0x200444[_0x85cdb8][_0x586dfe]={'objectID':_0x586dfe,'objectType':_0x4c2fab,'actions':[]}),_0x200444[_0x85cdb8][_0x586dfe]['actions'][_0x2650df(0x2f1)](..._0x36eb93),_0x200444;},{}),_0x4bdbd0=[];for(const _0x236fb9 in _0x56eb28)for(const _0x406685 in _0x56eb28[_0x236fb9]){const {actions:_0x83aa87,objectType:_0x251272}=_0x56eb28[_0x236fb9][_0x406685],_0x472b30=[...new Set(_0x83aa87)];_0x4bdbd0['push']({'unitID':_0x236fb9,'objectID':_0x406685,'objectType':_0x251272,'actions':_0x472b30});}return new _0x1baa38(_0x155127(0x347),_0x97940b,{'headers':_0x3376e7[_0x155127(0x38e)],'withCredentials':_0x3376e7['withCredentials'],'responseType':_0x3376e7[_0x155127(0x486)],'body':{'requests':_0x4bdbd0}});}},{'distributeResult'(_0x26d120,_0x161378){const _0x5cfbad=_0x3fe165,{objectActions:_0x3d18c8}=_0x26d120;return _0x161378[_0x5cfbad(0x1c7)](_0x224b92=>{const _0x177990=_0x5cfbad,{unitID:_0x4f99c6,objectID:_0x3ac4f7,actions:_0x1b1e9c}=_0x224b92,_0x36ad17=_0x3d18c8[_0x177990(0x2c5)](_0x40b2d2=>_0x40b2d2[_0x177990(0x3a4)]===_0x4f99c6&&_0x40b2d2[_0x177990(0x37d)]===_0x3ac4f7),_0x34fc70=_0x1b1e9c[_0x177990(0x1c7)](_0x3a2d2a=>_0x36ad17==null?void 0x0:_0x36ad17[_0x177990(0x1ba)]['find'](_0x487608=>_0x487608[_0x177990(0x3bb)]===_0x3a2d2a))[_0x177990(0x133)](_0x2759f6=>!!_0x2759f6);return{'config':_0x224b92,'result':{'actions':_0x34fc70,'error':_0x26d120[_0x177990(0x30b)]}};});}})}));}[_0x2e5b1c(0x2c9)](){const _0x1dfbb3=_0x2e5b1c;var _0x323b17;return(_0x323b17=this[_0x1dfbb3(0x338)][_0x1dfbb3(0x142)]($o))!=null?_0x323b17:jo;}async['create'](_0xa4cccc){const _0x49fe8c=_0x2e5b1c,_0xfecd9b=this[_0x49fe8c(0x2c9)]()+'/'+_0xa4cccc[_0x49fe8c(0x2a5)]+_0x49fe8c(0x2da);return(await this[_0x49fe8c(0x423)][_0x49fe8c(0x1e3)](_0xfecd9b,{'body':_0xa4cccc}))[_0x49fe8c(0x12f)][_0x49fe8c(0x37d)]||'';}async[_0x2e5b1c(0x259)](_0x383332){const _0xb8e92b=_0x2e5b1c,_0x55159e=this[_0xb8e92b(0x2c9)]()+_0xb8e92b(0x179);return(await this[_0xb8e92b(0x423)]['post'](_0x55159e,{'body':_0x383332}))[_0xb8e92b(0x12f)][_0xb8e92b(0x44e)];}async[_0x2e5b1c(0x3b1)](_0x266144){const _0x966cb9=_0x2e5b1c,_0x480f83=this[_0x966cb9(0x2c9)]()+'/'+_0x266144[_0x966cb9(0x2a5)]+_0x966cb9(0x489)+_0x266144[_0x966cb9(0x37d)];await this[_0x966cb9(0x423)][_0x966cb9(0x315)](_0x480f83,{'body':_0x266144});}async[_0x2e5b1c(0x16d)](_0x28933c){const _0x22cf36=_0x2e5b1c,_0x356680=this['_getAPIPrefixPath']()+'/'+_0x28933c[_0x22cf36(0x2a5)]+_0x22cf36(0x489)+_0x28933c[_0x22cf36(0x37d)]+'/allowed';return(await this[_0x22cf36(0x423)][_0x22cf36(0x1e3)](_0x356680,{'body':_0x28933c}))[_0x22cf36(0x12f)][_0x22cf36(0x1ba)];}async[_0x2e5b1c(0x3a6)](_0x311596){const _0x162984=_0x2e5b1c,_0x2480b8=this[_0x162984(0x2c9)]()+_0x162984(0x472);return(await this[_0x162984(0x423)]['post'](_0x2480b8,{'body':{'requests':_0x311596}}))['body'][_0x162984(0x19f)];}async['listRoles'](_0x5a15e9){const _0x1aa9e2=_0x2e5b1c,_0x3a1bf1=this[_0x1aa9e2(0x2c9)]()+'/'+_0x5a15e9[_0x1aa9e2(0x2a5)]+_0x1aa9e2(0x1e6),_0x11c9dd=await this[_0x1aa9e2(0x423)][_0x1aa9e2(0x1e3)](_0x3a1bf1,{'body':_0x5a15e9});return{'roles':_0x11c9dd['body'][_0x1aa9e2(0x475)],'actions':_0x11c9dd[_0x1aa9e2(0x12f)][_0x1aa9e2(0x1ba)]};}async['deleteCollaborator'](_0xf39163){const _0x5342ea=_0x2e5b1c,_0x57b76b=this[_0x5342ea(0x2c9)]()+'/collaborator';await this['_HTTPService'][_0x5342ea(0x18d)](_0x57b76b,{'params':{'collaboratorID':_0xf39163['collaboratorID'],'objectID':_0xf39163['objectID'],'unitID':_0xf39163[_0x5342ea(0x3a4)]}});}async[_0x2e5b1c(0x333)](_0x5ab9de){const _0x3f55b5=_0x2e5b1c,_0x5cc25b=this['_getAPIPrefixPath']()+_0x3f55b5(0x1af);await this[_0x3f55b5(0x423)][_0x3f55b5(0x234)](_0x5cc25b,{'body':_0x5ab9de});}async['createCollaborator'](_0x806c63){const _0x16e419=_0x2e5b1c,_0x51411b=this[_0x16e419(0x2c9)]()+_0x16e419(0x1af);await this[_0x16e419(0x423)][_0x16e419(0x1e3)](_0x51411b,{'body':_0x806c63});}async['listCollaborators'](_0xf19240){const _0x2e195e=_0x2e5b1c,_0x587416=this[_0x2e195e(0x2c9)]()+_0x2e195e(0x1af);return(await this[_0x2e195e(0x423)][_0x2e195e(0x18f)](_0x587416,{'params':{'objectID':_0xf19240[_0x2e195e(0x37d)],'unitID':_0xf19240[_0x2e195e(0x3a4)]}}))['body'][_0x2e195e(0x33e)];}async[_0x2e5b1c(0x20f)](_0x1b697b){const _0x578340=_0x2e5b1c,_0xaa56c2=this['_getAPIPrefixPath']()+_0x578340(0x1af);await this[_0x578340(0x423)][_0x578340(0x315)](_0xaa56c2,{'body':_0x1b697b});}};yt=Lo([fs(0x0,_0x5c7fae(_0x35343d)),fs(0x1,_0x5c7fae(_0x401b9d))],yt);var xo=Object[_0x2e5b1c(0x2de)],Ho=Object[_0x2e5b1c(0x41c)],ko=(_0x555805,_0x4dad8f,_0x2eeea7,_0x4d306)=>{for(var _0x554c4c=_0x4d306>0x1?void 0x0:_0x4d306?Ho(_0x4dad8f,_0x2eeea7):_0x4dad8f,_0x1d225d=_0x555805['length']-0x1,_0x10d1b7;_0x1d225d>=0x0;_0x1d225d--)(_0x10d1b7=_0x555805[_0x1d225d])&&(_0x554c4c=(_0x4d306?_0x10d1b7(_0x4dad8f,_0x2eeea7,_0x554c4c):_0x10d1b7(_0x554c4c))||_0x554c4c);return _0x4d306&&_0x554c4c&&xo(_0x4dad8f,_0x2eeea7,_0x554c4c),_0x554c4c;},pt=(_0x2f606c,_0x509090)=>(_0x35337a,_0x471aa9)=>_0x509090(_0x35337a,_0x471aa9,_0x2f606c);const Bo=[_0x2e5b1c(0x2b9),_0x2e5b1c(0x381),_0x2e5b1c(0x188),_0x2e5b1c(0x444),_0x2e5b1c(0x470)],Vo=0x5*0x400*0x400,Fo=_0x2e5b1c(0x3fe),Wo='/universer-api/stream/file/upload',Go=_0x2e5b1c(0x2d6),Yo=_0x2e5b1c(0x445);let Mt=class{constructor(_0x36cf52,_0x52b5e4,_0x53fb52){const _0x518ccf=_0x2e5b1c;l(this,'_waitCount',0x0),l(this,_0x518ccf(0x1a3),new _0x47a81b()),l(this,'change$',this[_0x518ccf(0x1a3)]),l(this,_0x518ccf(0x28d),new Map()),(this[_0x518ccf(0x17e)]=_0x36cf52,this[_0x518ccf(0x338)]=_0x52b5e4,this[_0x518ccf(0x1ae)]=_0x53fb52);}[_0x2e5b1c(0x2f5)](_0x28e44b){const _0xac2bd8=_0x2e5b1c;this[_0xac2bd8(0x27a)]=_0x28e44b,this[_0xac2bd8(0x1a3)][_0xac2bd8(0x244)](_0x28e44b);}[_0x2e5b1c(0x248)](_0x33ac02,_0x3fd5bc){const _0x9dcf2f=_0x2e5b1c;if(_0x3fd5bc===_0x2639d9[_0x9dcf2f(0x36a)]){const _0x5b3a81=new Image();return _0x5b3a81['src']=_0x33ac02,_0x5b3a81;}return this[_0x9dcf2f(0x28d)][_0x9dcf2f(0x18f)](_0x33ac02);}[_0x2e5b1c(0x2ca)](_0x3a292a,_0x48b5a2,_0x2fe4ca){const _0x577498=_0x2e5b1c;_0x48b5a2===_0x2639d9[_0x577498(0x36a)]||_0x2fe4ca==null||this['_imageSourceCache']['set'](_0x3a292a,_0x2fe4ca);}async['getImage'](_0x569aa){const _0x419988=_0x2e5b1c;try{const _0x2a8ed7=this[_0x419988(0x26b)](this[_0x419988(0x376)](),''+_0x569aa),_0x5320fc=(await this['_httpService'][_0x419988(0x18f)](_0x2a8ed7))[_0x419988(0x12f)];return _0x5320fc[_0x419988(0x30b)]&&_0x5320fc['error'][_0x419988(0x2fa)]===Ms['OK']?Promise[_0x419988(0x430)](_0x5320fc[_0x419988(0x2c3)]):Promise['reject'](_0x5320fc[_0x419988(0x30b)]);}catch(_0xe466a){return Promise['reject'](_0xe466a);}}async[_0x2e5b1c(0x373)](_0x4f0e30){const _0x46dab4=_0x2e5b1c;let _0xac3c3='';if(!Bo[_0x46dab4(0x3a0)](_0x4f0e30[_0x46dab4(0x255)]))return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE_TYPE']));if(_0x4f0e30[_0x46dab4(0x362)]>Vo)return this[_0x46dab4(0x151)](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x3e1)]));try{const _0x32d200=new FormData();_0x32d200[_0x46dab4(0x40c)](_0x46dab4(0x2ad),_0x4f0e30);const _0x100567=this['_univerInstanceService'][_0x46dab4(0x1e7)](),_0x1f75aa=_0x100567==null?void 0x0:_0x100567[_0x46dab4(0x426)]();if(!_0x1f75aa)throw new Error(_0x46dab4(0x15e));const _0x3ce7b9=this[_0x46dab4(0x12d)]()+_0x46dab4(0x242)+_0x4f0e30[_0x46dab4(0x362)][_0x46dab4(0x19b)]()+_0x46dab4(0x215)+As['UnitEmbedded']+'&assign='+encodeURIComponent(_0x1f75aa),_0x561f6d=await(await fetch(_0x3ce7b9,{'method':_0x46dab4(0x347),'body':_0x32d200}))[_0x46dab4(0x236)]();if(typeof _0x561f6d[_0x46dab4(0x14e)]!=_0x46dab4(0x239))return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x29d71a[_0x46dab4(0x416)]));_0xac3c3=_0x561f6d[_0x46dab4(0x14e)];}catch{return this[_0x46dab4(0x151)](),Promise[_0x46dab4(0x38a)](new Error(_0x29d71a['ERROR_IMAGE']));}return new Promise((_0x59ee4e,_0x44c289)=>{const _0x2f1244=_0x46dab4,_0x3db15f=new FileReader();_0x3db15f[_0x2f1244(0x48c)](_0x4f0e30),_0x3db15f['onload']=_0x292265=>{const _0x56dd94=_0x2f1244;var _0x446a44;const _0x153994=(_0x446a44=_0x292265[_0x56dd94(0x1a8)])==null?void 0x0:_0x446a44['result'];if(_0x153994==null){this[_0x56dd94(0x151)](),_0x44c289(new Error(_0x29d71a[_0x56dd94(0x416)]));return;}const _0x139406=_0x3cea4b[_0x56dd94(0x1ce)](0x6);_0x59ee4e({'imageId':_0x139406,'imageSourceType':_0x2639d9['UUID'],'source':_0xac3c3,'base64Cache':_0x153994,'status':_0x29d71a[_0x56dd94(0x343)]}),this[_0x56dd94(0x151)]();};});}[_0x2e5b1c(0x12d)](){const _0xc7676b=_0x2e5b1c;var _0x125e69;return(_0x125e69=this[_0xc7676b(0x338)][_0xc7676b(0x142)](Fo))!=null?_0x125e69:Wo;}[_0x2e5b1c(0x376)](){const _0x4e69e7=_0x2e5b1c;var _0x239346;return(_0x239346=this['_configService'][_0x4e69e7(0x142)](Go))!=null?_0x239346:Yo;}[_0x2e5b1c(0x26b)](_0x2ac1c2,_0x2da5e2){const _0x3d68a8=_0x2e5b1c;return _0x2ac1c2[_0x3d68a8(0x319)]('{fileID}',_0x2da5e2);}[_0x2e5b1c(0x151)](){const _0x28193=_0x2e5b1c;this[_0x28193(0x27a)]-=0x1,this['_change$'][_0x28193(0x244)](this[_0x28193(0x27a)]);}};Mt=ko([pt(0x0,_0x5c7fae(_0x35343d)),pt(0x1,_0x401b9d),pt(0x2,_0x5c7fae(_0x30b2f2))],Mt);var Ko=Object[_0x2e5b1c(0x2de)],Xo=Object[_0x2e5b1c(0x41c)],Jo=(_0x244045,_0x17bc6a,_0x49a4bc,_0x56aaca)=>{const _0x4f429a=_0x2e5b1c;for(var _0x8f6248=_0x56aaca>0x1?void 0x0:_0x56aaca?Xo(_0x17bc6a,_0x49a4bc):_0x17bc6a,_0x159361=_0x244045[_0x4f429a(0x1bb)]-0x1,_0x124aad;_0x159361>=0x0;_0x159361--)(_0x124aad=_0x244045[_0x159361])&&(_0x8f6248=(_0x56aaca?_0x124aad(_0x17bc6a,_0x49a4bc,_0x8f6248):_0x124aad(_0x8f6248))||_0x8f6248);return _0x56aaca&&_0x8f6248&&Ko(_0x17bc6a,_0x49a4bc,_0x8f6248),_0x8f6248;},Pe=(_0x46221e,_0xb23720)=>(_0x49a681,_0x3178e1)=>_0xb23720(_0x49a681,_0x3178e1,_0x46221e);let Ke=class extends _0x4bff65{constructor(_0x116da4,_0x4f55cb,_0x2091aa,_0x234f87,_0x17e625){const _0x151785=_0x2e5b1c;super(),this[_0x151785(0x3ac)]=_0x116da4,this[_0x151785(0x1ae)]=_0x4f55cb,this[_0x151785(0x292)]=_0x2091aa,this[_0x151785(0x385)]=_0x234f87,this[_0x151785(0x452)]=_0x17e625,this[_0x151785(0x24d)](),this[_0x151785(0x21c)]();}['_initCloseConn'](){const _0x19c788=_0x2e5b1c,_0x296116=async _0x1ade10=>{const _0xfa2d03=_0x5851;(await this[_0xfa2d03(0x385)][_0xfa2d03(0x205)](_0x1ade10))[_0xfa2d03(0x372)][_0xfa2d03(0x195)](_0x48e324(_0x416451=>_0x416451[_0xfa2d03(0x2f6)]===_0x410792[_0xfa2d03(0x2e2)]),_0x429e28(this[_0xfa2d03(0x3be)]))[_0xfa2d03(0x3c4)](_0x481d78=>{const _0xd50746=_0xfa2d03,_0x1e9af2=_0x481d78,{reason:_0x5777d9}=_0x1e9af2[_0xd50746(0x249)];this[_0xd50746(0x3ac)][_0xd50746(0x18f)](_0x29e945)[_0xd50746(0x367)]({'type':_0x68ddaa[_0xd50746(0x253)],'content':this[_0xd50746(0x452)]['t'](_0xd50746(0x2d5))+'('+_0x5777d9+')'}),this[_0xd50746(0x292)]['updatePermissionPoint'](new _0x477da8(_0x1ade10)['id'],!0x1),this[_0xd50746(0x385)][_0xd50746(0x31a)](_0x1ade10);});};_0x9334d7(this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9[_0x19c788(0x2c7)]),this['_univerInstanceService'][_0x19c788(0x1a4)](_0x3bf0d9['UNIVER_DOC']))[_0x19c788(0x195)](_0x4b551a(_0x300d5b=>_0x300d5b[_0x19c788(0x426)]()),_0x48e324(_0x570682=>!_0x852e4e(_0x570682)),_0x429e28(this['dispose$']))['subscribe'](_0x17300a=>{_0x296116(_0x17300a);});}[_0x2e5b1c(0x24d)](){const _0x4f5002=_0x2e5b1c,_0x151a56=async _0x43aa52=>{const _0x19aff1=_0x5851;(await this[_0x19aff1(0x385)][_0x19aff1(0x205)](_0x43aa52))['event$'][_0x19aff1(0x195)](_0x48e324(_0x3068f9=>_0x3068f9[_0x19aff1(0x2f6)]===_0x410792[_0x19aff1(0x168)]),_0x429e28(this['dispose$']))[_0x19aff1(0x3c4)](_0x56fed6=>{const _0x2476bc=_0x19aff1,_0x266d27=_0x56fed6,{objectId:_0x4b8699}=_0x266d27['data'],_0x1ea43a=this[_0x2476bc(0x3ac)][_0x2476bc(0x18f)](_0xa93b7d);_0x4b8699===_0x43aa52?_0x1ea43a['initWorkbookPermissionChange'](_0x43aa52):_0x1ea43a[_0x2476bc(0x36f)](_0x43aa52,_0x4b8699);});};_0x9334d7(this['_univerInstanceService'][_0x4f5002(0x1a4)](_0x3bf0d9[_0x4f5002(0x2c7)]),this[_0x4f5002(0x1ae)]['getTypeOfUnitAdded$'](_0x3bf0d9['UNIVER_DOC']))[_0x4f5002(0x195)](_0x4b551a(_0x55fa61=>_0x55fa61[_0x4f5002(0x426)]()),_0x48e324(_0x2ccf74=>!_0x852e4e(_0x2ccf74)),_0x429e28(this['dispose$']))[_0x4f5002(0x3c4)](_0x17beed=>{_0x151a56(_0x17beed);});}};Ke=Jo([_0x486866(_0x446a6f[_0x2e5b1c(0x488)],Ke),Pe(0x0,_0x5c7fae(_0x5d259e)),Pe(0x1,_0x30b2f2),Pe(0x2,_0x241366),Pe(0x3,_0x5c7fae(ae)),Pe(0x4,_0x5c7fae(_0x12e5b3))],Ke);const zo=_0x2e5b1c(0x26f);var Fs=Object['defineProperty'],qo=Object['getOwnPropertyDescriptor'],Zo=(_0x179ae7,_0x5a8655,_0x58b9d1)=>_0x5a8655 in _0x179ae7?Fs(_0x179ae7,_0x5a8655,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58b9d1}):_0x179ae7[_0x5a8655]=_0x58b9d1,Qo=(_0x13e1f1,_0x41eaf2,_0x428d56,_0x313fb5)=>{const _0x151106=_0x2e5b1c;for(var _0x5b3273=_0x313fb5>0x1?void 0x0:_0x313fb5?qo(_0x41eaf2,_0x428d56):_0x41eaf2,_0x24641b=_0x13e1f1[_0x151106(0x1bb)]-0x1,_0x451229;_0x24641b>=0x0;_0x24641b--)(_0x451229=_0x13e1f1[_0x24641b])&&(_0x5b3273=(_0x313fb5?_0x451229(_0x41eaf2,_0x428d56,_0x5b3273):_0x451229(_0x5b3273))||_0x5b3273);return _0x313fb5&&_0x5b3273&&Fs(_0x41eaf2,_0x428d56,_0x5b3273),_0x5b3273;},Ve=(_0x18f360,_0x2ed247)=>(_0x4eda55,_0x3b67e1)=>_0x2ed247(_0x4eda55,_0x3b67e1,_0x18f360),ea=(_0x4ff82e,_0x2e4c6a,_0x47d9ca)=>Zo(_0x4ff82e,_0x2e4c6a+'',_0x47d9ca);const ta=_0x2e5b1c(0x300);let At=class extends _0x250c9c{constructor(_0x548fc7={},_0x24e3d2,_0x148cad,_0x46d4b4,_0x58bc18){const _0x30518f=_0x2e5b1c;super(),this[_0x30518f(0x410)]=_0x548fc7,this[_0x30518f(0x2ec)]=_0x24e3d2,this[_0x30518f(0x3c0)]=_0x148cad,this[_0x30518f(0x3ac)]=_0x46d4b4,this[_0x30518f(0x338)]=_0x58bc18;const {..._0xfce2c4}=this[_0x30518f(0x410)];this['_configService']['setConfig'](zo,_0xfce2c4);}[_0x2e5b1c(0x3d1)](){const _0x521deb=_0x2e5b1c;this[_0x521deb(0x25c)]();}[_0x2e5b1c(0x214)](){const _0x3e2354=_0x2e5b1c;this[_0x3e2354(0x1b4)]();}[_0x2e5b1c(0x25c)](){const _0x23808e=_0x2e5b1c;var _0x48c261,_0x1b1b00,_0x3e2ca0,_0x525de6;this[_0x23808e(0x3ac)]['has'](_0x1bd332)&&this[_0x23808e(0x2ec)][_0x23808e(0x30b)](_0x23808e(0x30f),_0x23808e(0x466));let _0x54615f=[[_0x1bd332,{'useClass':Nt}],[ae],[Ft],[_0x35343d],[Vs,{'useClass':Eo}],[oe],[D],[_0x4058ad],[Qe],[et],[Ze],[Bt],[st],[Ls],[Ke],[Us,{'useClass':(_0x1b1b00=(_0x48c261=this[_0x23808e(0x410)])==null?void 0x0:_0x48c261[_0x23808e(0x3af)])!=null?_0x1b1b00:Ct}],[_0x4a8183,{'useClass':_0x182506}],[_0x39a0ed,{'useClass':Pt}],[_0x136777,{'useClass':yt}],[_0x976a19,{'useClass':Mt}],[Ae],[We],[ye],[Ge],[fe]];(_0x3e2ca0=this['_config'])!=null&&_0x3e2ca0[_0x23808e(0x3e2)]&&_0x54615f[_0x23808e(0x2f1)]([it,{'useClass':nr}]),_0x54615f=_0x3a5a4e(_0x54615f,(_0x525de6=this[_0x23808e(0x410)])==null?void 0x0:_0x525de6[_0x23808e(0x481)]),_0x54615f['forEach'](_0x524ed8=>this[_0x23808e(0x3ac)][_0x23808e(0x47b)](_0x524ed8)),this['_initModules']();}[_0x2e5b1c(0x1b4)](){const _0x5d62b5=_0x2e5b1c;this[_0x5d62b5(0x294)](this['_renderManagerService']['registerRenderModule'](_0x3bf0d9['UNIVER_DOC'],[Ye])),this[_0x5d62b5(0x294)](this[_0x5d62b5(0x3c0)][_0x5d62b5(0x2a8)](_0x3bf0d9['UNIVER_SHEET'],[wt]));}['_initModules'](){const _0x374657=_0x2e5b1c;var _0x133172,_0x59e557;this['_injector']['get'](_0x35343d)[_0x374657(0x17b)]({'priority':0x14,'interceptor':_0x55c921({'maxParallel':0x6})}),(_0x133172=this[_0x374657(0x410)])!=null&&_0x133172[_0x374657(0x18c)]||this[_0x374657(0x3ac)]['get'](D)['disableLocalCache'](),(_0x59e557=this[_0x374657(0x410)])!=null&&_0x59e557['enableAuthServer']&&this[_0x374657(0x3ac)][_0x374657(0x18f)](st),this[_0x374657(0x3ac)][_0x374657(0x18f)](Ae),this['_injector'][_0x374657(0x250)](ye)&&this['_injector'][_0x374657(0x18f)](ye);}};ea(At,_0x2e5b1c(0x411),ta),At=Qo([_0x2f7773(_0x7a88b),Ve(0x1,_0x1cafe9),Ve(0x2,_0x363058),Ve(0x3,_0x5c7fae(_0x5d259e)),Ve(0x4,_0x401b9d)],At);export{$o as AUTHZ_URL_KEY,yt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,gn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,bt as CollaborationSession,ae as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,to as CollaborationStatusDisplay,Ls as CommentService,We as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,pn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Us as ICollaborationSocketService,Vs as IURLService,Mt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,In as RETRY_CONNECTING_INTERVAL_KEY,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,mn as SEND_CHANGESET_TIMEOUT_KEY,_n as SNAPSHOT_SERVER_URL_KEY,dn as SNAPSHOT_URL_KEY,W as SessionStatus,jr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Pt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,Eo as WebURLService,Nn as deserializeToCombResponse,yn as serializeCombRequest};
|