@univerjs-pro/collaboration-client 0.2.15 → 0.3.0-alpha.1

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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5b7eaf=_0x4581;(function(_0x4935e1,_0x40ad2f){const _0x3e349c=_0x4581,_0x8c2fe3=_0x4935e1();while(!![]){try{const _0x56e8bf=parseInt(_0x3e349c(0x19f))/0x1*(parseInt(_0x3e349c(0x1f2))/0x2)+parseInt(_0x3e349c(0x220))/0x3*(parseInt(_0x3e349c(0x2ff))/0x4)+-parseInt(_0x3e349c(0xdb))/0x5*(parseInt(_0x3e349c(0x16f))/0x6)+-parseInt(_0x3e349c(0x302))/0x7+parseInt(_0x3e349c(0x391))/0x8+parseInt(_0x3e349c(0x403))/0x9*(-parseInt(_0x3e349c(0x3d8))/0xa)+parseInt(_0x3e349c(0x122))/0xb*(parseInt(_0x3e349c(0xd8))/0xc);if(_0x56e8bf===_0x40ad2f)break;else _0x8c2fe3['push'](_0x8c2fe3['shift']());}catch(_0x4fb0e8){_0x8c2fe3['push'](_0x8c2fe3['shift']());}}}(_0x5d04,0x1dcd4));var zs=Object[_0x5b7eaf(0x3b0)],qs=(_0xf3a98,_0x1d1294,_0x39cd7f)=>_0x1d1294 in _0xf3a98?zs(_0xf3a98,_0x1d1294,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39cd7f}):_0xf3a98[_0x1d1294]=_0x39cd7f,l=(_0x290ded,_0x3a1de5,_0x39ccc3)=>qs(_0x290ded,typeof _0x3a1de5!=_0x5b7eaf(0x200)?_0x3a1de5+'':_0x3a1de5,_0x39ccc3);import{createIdentifier as _0x4c867e,Disposable as _0x61b58b,DisposableCollection as _0x3eb24f,toDisposable as _0xa7e5b7,Inject as _0x2c1848,IConfigService as _0x5debaa,ILogService as _0x4cc166,UniverInstanceType as _0x275c2c,UserManagerService as _0xc05435,IUniverInstanceService as _0x52988f,RxDisposable as _0x33f191,LocaleService as _0x1e7bf5,Optional as _0x3b757a,Injector as _0x1637c5,Tools as _0x23d1c2,ILocalStorageService as _0x2d60b4,ICommandService as _0x2521f5,JSONX as _0x1973d8,CommandType as _0xb6689e,IPermissionService as _0x133542,IUndoRedoService as _0x948466,sequenceExecute as _0x170714,Rectangle as _0x5d35ef,OnLifecycle as _0x51ea65,LifecycleStages as _0x2a2247,COLORS as _0x5bc0e1,ColorKit as _0x231cf3,fromEventSubject as _0x49e533,ThemeService as _0x66a40c,useDependency as _0xaf8fb0,connectInjector as _0x4d4576,Workbook as _0x3d2a68,isInternalEditorID as _0x202850,LocalUndoRedoService as _0x3ad5fe,IContextService as _0x1a5f7f,Plugin as _0x1ae10b,IAuthzIoService as _0x3ffcd2,mergeOverrideWithDependencies as _0x21b090,DependentOn as _0x2d6767}from'@univerjs/core';import{Subject as _0x51e21c,merge as _0x3b6402,takeUntil as _0x53c8e3,BehaviorSubject as _0xdb5176,distinctUntilChanged as _0x2fe2dd,fromEvent as _0x3a0781,map as _0x3ae97d,shareReplay as _0x42dad9,take as _0x4f24d1,of as _0x175cbd,debounceTime as _0x46ac8e,filter as _0x4f8d22,switchMap as _0x48fb69,combineLatest as _0x43e523,concatMap as _0x4244f3,mapTo as _0x485932}from'rxjs';import{map as _0x5a8d9c,take as _0x2efa4b,filter as _0x324b00,delay as _0x38bf87,throttleTime as _0x1a508f,takeUntil as _0x3c9e95,switchMap as _0x198d43}from'rxjs/operators';import{MessageType as _0x21289,Tooltip as _0x4fd136}from'@univerjs/design';import{IBeforeCloseService as _0x439db2,IMessageService as _0x3df3ba,INotificationService as _0x233335,useObservable as _0x3ab99e,BuiltInUIPart as _0x59a5b2,IUIPartsService as _0x467380}from'@univerjs/ui';import{HTTPService as _0x3b1152,WebSocketService as _0x1335ed,MergeInterceptorFactory as _0xdaa3cc,HTTPRequest as _0x594dba,IHTTPImplementation as _0x237296,XHRHTTPImplementation as _0x5838d1,ThresholdInterceptorFactory as _0x3a87f1}from'@univerjs/network';import{CollaborationEvent as _0x47275c,parseChangesetToProtocol as _0xb2fff8,ISnapshotServerService as _0x2ea08d,isTransformMutationFailure as _0x43078a,isTransformMutationsWithChangesetSuccess as _0x3d99d4,ITransformService as _0x364c40,RevisionService as _0xe33365,mapDocumentTypeToUniverType as _0x301c06,isTransformChangesetsSuccess as _0x1d473e,parseProtocolChangeset as _0x2a48dc,CompressMutationService as _0x31a667,SnapshotService as _0xb82a17,textEncoder as _0x2d7a75,b64DecodeUnicode as _0x2db83b,isTransformMutationsWithChangesetFailure as _0x4983c8,UniverCollaborationPlugin as _0x407ee7}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2dbeaf}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x2dea1c,RichTextEditingMutation as _0x193233,SetTextSelectionsOperation as _0x2eec51,DocSkeletonManagerService as _0x38c1fb}from'@univerjs/docs';import{DocIMEInputManagerService as _0x44d8a2,DocStateChangeManagerService as _0x36d82f,NodePositionConvertToCursor as _0x1fe3c6,isValidRectRange as _0x436c3a,NodePositionConvertToRectRange as _0x13f9a5,TEXT_RANGE_LAYER_INDEX as _0xe8336a,SetDocZoomRatioOperation as _0x3215b2}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x12a4eb,SetSelectionsOperation as _0x228778,InsertSheetMutation as _0x4d0013,EmptyMutation as _0x2db5c8,WorkbookEditablePermission as _0x53288a,RefRangeService as _0x2b89cb,EffectRefRangId as _0x2643ca,handleIRemoveRow as _0x1e7d60,handleIRemoveCol as _0x3dfc09,handleMoveRange as _0x117f9c,handleInsertRow as _0x6e3f61,handleInsertRangeMoveRight as _0x598b24,handleInsertRangeMoveDown as _0x10e41d,handleInsertCol as _0x1f3c90,handleDeleteRangeMoveUp as _0x28fa28,handleDeleteRangeMoveLeft as _0x14e037,runRefRangeMutations as _0x1e6099,SetWorksheetActivateCommand as _0x593e9d}from'@univerjs/sheets';import{IRenderManagerService as _0xeaee19,Shape as _0x42bfc5,Rect as _0x3ec5cc,getColor as _0x318853,RegularPolygon as _0x1ba1bf,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5c6602,Vector2 as _0x113335}from'@univerjs/engine-render';import{ImageSourceType as _0x2ab571,ImageUploadStatusType as _0x2980ad,IImageIoService as _0x3f8c0c}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0xb2f3c2,serializeRangeWithSheet as _0x5c5889}from'@univerjs/engine-formula';import _0x4fa622 from'lodash/debounce';import{VIEWPORT_KEY as _0x343862,getCoordByCell as _0x90ed93,getSheetObject as _0x5c33e8,SheetSkeletonManagerService as _0x15b55c,SheetPermissionInitController as _0x488d5f}from'@univerjs/sheets-ui';import _0x3da894,{forwardRef as _0x25876f,useRef as _0x4a2a3f,createElement as _0x3cb687,useCallback as _0x167c1f}from'react';import _0x147b10 from'clsx';import{IRemoteInstanceService as _0xdc1252}from'@univerjs/rpc';const un=_0x5b7eaf(0x130),dn='/universer-api/snapshot',fn=_0x5b7eaf(0x1e1),mn='SEND_CHANGESET_TIMEOUT',gn=0x7d0,Sn=_0x5b7eaf(0x22d),pn=_0x5b7eaf(0x1d3),vn=_0x5b7eaf(0x1b1),In=0x7530,Ns=_0x5b7eaf(0x26a),ys=0x4e20,En='RETRY_CONNECTING_INTERVAL',Cn=0x4e20,bn='RETRY_CONNECTING_MAX_COUNT',Tn=0x3,Rn=_0x5b7eaf(0x3c9),On=0x3e8,Dn=_0x5b7eaf(0x1c0),wn=_0x5b7eaf(0x1ac),Pn=_0x5b7eaf(0x174),Nn=_0x5b7eaf(0x219);var Ms=(_0x30f1f2=>(_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x362)]=0x0]='UNDEFINED',_0x30f1f2[_0x30f1f2['OK']=0x1]='OK',_0x30f1f2[_0x30f1f2['INTERNAL_ERROR']=0x2]=_0x5b7eaf(0x2ad),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3b7)]=0x3]=_0x5b7eaf(0x3b7),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x12c)]=0x4]=_0x5b7eaf(0x12c),_0x30f1f2[_0x30f1f2['UNAUTHENTICATED']=0x5]='UNAUTHENTICATED',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x2b2)]=0x6]='ALREADY_EXISTS',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x298)]=0x7]=_0x5b7eaf(0x298),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3b1)]=0x8]=_0x5b7eaf(0x3b1),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x261)]=0x9]=_0x5b7eaf(0x261),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3cf)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x2ae)]=0x1771]=_0x5b7eaf(0x2ae),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x380)]=0x1772]=_0x5b7eaf(0x380),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x1e2)]=0x1b59]='APPLY_REJECT',_0x30f1f2[_0x30f1f2['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x5b7eaf(0x102),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x270)]=0x1b5b]=_0x5b7eaf(0x270),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x156)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x347)]=0x1f41]=_0x5b7eaf(0x347),_0x30f1f2[_0x30f1f2['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5b7eaf(0x132),_0x30f1f2[_0x30f1f2['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x5b7eaf(0x341),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x152)]=0x232b]=_0x5b7eaf(0x152),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0xe3)]=0x232c]=_0x5b7eaf(0xe3),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x20c)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x273)]=0x2711]=_0x5b7eaf(0x273),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x3b6)]=0x2712]=_0x5b7eaf(0x3b6),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0xfa)]=0x2713]=_0x5b7eaf(0xfa),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x1a2)]=0x2714]=_0x5b7eaf(0x1a2),_0x30f1f2[_0x30f1f2[_0x5b7eaf(0x38c)]=-0x1]=_0x5b7eaf(0x38c),_0x30f1f2))(Ms||{}),x=(_0x2769d9=>(_0x2769d9[_0x2769d9[_0x5b7eaf(0x1a1)]=0x0]=_0x5b7eaf(0x1a1),_0x2769d9[_0x2769d9['UNIVER_DOC']=0x1]=_0x5b7eaf(0x3ac),_0x2769d9[_0x2769d9['UNIVER_SHEET']=0x2]=_0x5b7eaf(0x18f),_0x2769d9[_0x2769d9['UNIVER_SLIDE']=0x3]=_0x5b7eaf(0xe5),_0x2769d9[_0x2769d9[_0x5b7eaf(0x2b8)]=0x4]=_0x5b7eaf(0x2b8),_0x2769d9[_0x2769d9[_0x5b7eaf(0x38c)]=-0x1]='UNRECOGNIZED',_0x2769d9))(x||{}),I=(_0x384cd9=>(_0x384cd9[_0x384cd9[_0x5b7eaf(0x265)]=0x0]='UNKNOWN_CMD',_0x384cd9[_0x384cd9['HELLO']=0x1]=_0x5b7eaf(0x3da),_0x384cd9[_0x384cd9[_0x5b7eaf(0xcd)]=0x2]=_0x5b7eaf(0xcd),_0x384cd9[_0x384cd9[_0x5b7eaf(0x306)]=0x3]=_0x5b7eaf(0x306),_0x384cd9[_0x384cd9[_0x5b7eaf(0x2e4)]=0x4]=_0x5b7eaf(0x2e4),_0x384cd9[_0x384cd9['HEARTBEAT']=0x5]='HEARTBEAT',_0x384cd9[_0x384cd9[_0x5b7eaf(0x3fa)]=0x6]=_0x5b7eaf(0x3fa),_0x384cd9[_0x384cd9['UNRECOGNIZED']=-0x1]=_0x5b7eaf(0x38c),_0x384cd9))(I||{}),kt=(_0x28bc31=>(_0x28bc31[_0x28bc31[_0x5b7eaf(0x1ba)]=0x0]=_0x5b7eaf(0x1ba),_0x28bc31[_0x28bc31['OK']=0x1]='OK',_0x28bc31[_0x28bc31[_0x5b7eaf(0x38f)]=0x2]='FAIL',_0x28bc31[_0x28bc31['UNRECOGNIZED']=-0x1]=_0x5b7eaf(0x38c),_0x28bc31))(kt||{}),Us=(_0x1cad0d=>(_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x397)]=0x0]=_0x5b7eaf(0x397),_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x1a7)]=0x1]=_0x5b7eaf(0x1a7),_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x15e)]=0x2]=_0x5b7eaf(0x15e),_0x1cad0d[_0x1cad0d['UnitEmbedded']=0x3]=_0x5b7eaf(0x39c),_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x188)]=0x4]='UnitSnapshot',_0x1cad0d[_0x1cad0d[_0x5b7eaf(0x38c)]=-0x1]=_0x5b7eaf(0x38c),_0x1cad0d))(Us||{});function yn(_0x2d6a16){const _0x3298e9=_0x5b7eaf;var _0x3accad,_0x1b937d,_0x17ebcd,_0x39aeeb;const _0x41fbc5=_0x2d6a16[_0x3298e9(0x2da)],_0xa2f71b=JSON[_0x3298e9(0x1bf)](_0x41fbc5);switch(_0xa2f71b[_0x3298e9(0xb8)]){case I[_0x3298e9(0x24c)]:case I['HELLO']:{const _0x5a51b9=_0xa2f71b[_0x3298e9(0x14d)];return{..._0xa2f71b,'data':_0x5a51b9,'cmd':_0xa2f71b[_0x3298e9(0xb8)]};}case I[_0x3298e9(0xcd)]:{const _0x118b45=_0xa2f71b[_0x3298e9(0x2eb)];return{..._0xa2f71b,'data':_0x118b45,'cmd':_0xa2f71b['cmd']};}case I[_0x3298e9(0x3fa)]:{const _0x1539c3=_0xa2f71b[_0x3298e9(0x2f1)];switch(_0x1539c3[_0x3298e9(0x1a0)]){case _0x47275c[_0x3298e9(0x19b)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x3accad=_0x1539c3[_0x3298e9(0x36d)])==null?void 0x0:_0x3accad['cs']},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x139)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x1b937d=_0x1539c3[_0x3298e9(0x182)])==null?void 0x0:_0x1b937d['cs']},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x151)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x17ebcd=_0x1539c3[_0x3298e9(0x214)])==null?void 0x0:_0x17ebcd['cs']},'cmd':_0xa2f71b['cmd']};case _0x47275c[_0x3298e9(0x31d)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':(_0x39aeeb=_0x1539c3['csRejEvent'])==null?void 0x0:_0x39aeeb['cs']},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c['UPDATE_CURSOR']:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x242)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c['USERS_ENTER']:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0xa8)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x3d2)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0xcb)]},'cmd':_0xa2f71b['cmd']};case _0x47275c[_0x3298e9(0x3cc)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x117)]},'cmd':_0xa2f71b['cmd']};case _0x47275c[_0x3298e9(0x342)]:case _0x47275c[_0x3298e9(0x3a0)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x34f)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x409)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x117)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x24d)]:return{..._0xa2f71b,'data':_0x1539c3,'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x1e9)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x1ad)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c[_0x3298e9(0x3a9)]:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x2b4)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};case _0x47275c['SHOULD_CLOSE_CONN']:return{..._0xa2f71b,'data':{..._0x1539c3,'data':_0x1539c3[_0x3298e9(0x121)]},'cmd':_0xa2f71b[_0x3298e9(0xb8)]};default:return _0xa2f71b;}}default:return _0xa2f71b;}}function Mn(_0x25b118){const _0x4ee68e=_0x5b7eaf;switch(_0x25b118[_0x4ee68e(0xb8)]){case I['HEARTBEAT']:case I[_0x4ee68e(0x3da)]:return JSON[_0x4ee68e(0x369)]({'cmd':_0x25b118[_0x4ee68e(0xb8)],'routeKey':_0x25b118[_0x4ee68e(0x23e)]});case I['INGEST']:{let _0x1fb269;switch(_0x25b118['data'][_0x4ee68e(0x1a0)]){case _0x47275c[_0x4ee68e(0x189)]:{_0x1fb269={'eventID':_0x47275c['UPDATE_CURSOR'],'updateCursorEvent':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x3d2)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x3d2)],'leaveEvent':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x3cd)]:{_0x1fb269={'eventID':_0x47275c['USERS_ENTER'],'joinEvent':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x3cc)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x3cc)],'liveShareNewHost':_0x25b118[_0x4ee68e(0x2da)]['data']};break;}case _0x47275c[_0x4ee68e(0x3a0)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x3a0)],'liveShareOperation':_0x25b118['data'][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x409)]:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x409)],'liveShareTerminate':_0x25b118[_0x4ee68e(0x2da)][_0x4ee68e(0x2da)]};break;}case _0x47275c['LIVESHARE_REQUEST_HOST']:{_0x1fb269={'eventID':_0x47275c[_0x4ee68e(0x109)],'liveShareRequestHost':_0x25b118['data'][_0x4ee68e(0x2da)]};break;}case _0x47275c[_0x4ee68e(0x342)]:{_0x1fb269={'eventID':_0x47275c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x1fb269={'eventID':_0x25b118[_0x4ee68e(0x2da)]['eventID']};}return JSON[_0x4ee68e(0x369)]({'cmd':_0x25b118['cmd'],'routeKey':_0x25b118[_0x4ee68e(0x23e)],'collaMsg':_0x1fb269});}case I[_0x4ee68e(0xcd)]:return JSON[_0x4ee68e(0x369)]({'cmd':_0x25b118[_0x4ee68e(0xb8)],'routeKey':_0x25b118[_0x4ee68e(0x23e)],'joinReq':_0x25b118['data']});case I[_0x4ee68e(0x306)]:return JSON['stringify']({'cmd':_0x25b118[_0x4ee68e(0xb8)],'routeKey':_0x25b118['routeKey'],'leaveReq':_0x25b118['data']});default:throw new Error(_0x4ee68e(0x1ae));}}var Un=Object[_0x5b7eaf(0x3b0)],An=Object[_0x5b7eaf(0x25b)],Ln=(_0x43e98d,_0xd81ad4,_0x5e1137,_0x31a2fe)=>{const _0x35dab4=_0x5b7eaf;for(var _0x1626e2=_0x31a2fe>0x1?void 0x0:_0x31a2fe?An(_0xd81ad4,_0x5e1137):_0xd81ad4,_0x1211a0=_0x43e98d[_0x35dab4(0x143)]-0x1,_0x2bb51e;_0x1211a0>=0x0;_0x1211a0--)(_0x2bb51e=_0x43e98d[_0x1211a0])&&(_0x1626e2=(_0x31a2fe?_0x2bb51e(_0xd81ad4,_0x5e1137,_0x1626e2):_0x2bb51e(_0x1626e2))||_0x1626e2);return _0x31a2fe&&_0x1626e2&&Un(_0xd81ad4,_0x5e1137,_0x1626e2),_0x1626e2;},Te=(_0x88ef88,_0x55bbae)=>(_0x41236c,_0x1f1823)=>_0x55bbae(_0x41236c,_0x1f1823,_0x88ef88);const As=_0x4c867e(_0x5b7eaf(0x3f0));function $n(_0x29e837,_0x26c830,_0x4581ed){const _0x2aa6c1=_0x5b7eaf;return _0x29e837+'/'+_0x26c830+'/unit/'+_0x4581ed+_0x2aa6c1(0x351);}let Ct=class extends _0x61b58b{constructor(_0x2aa73f,_0x256bc8,_0x4439ac,_0x40b993,_0x60c9cc){const _0x49fd02=_0x5b7eaf;super(),this[_0x49fd02(0x27b)]=_0x2aa73f,this[_0x49fd02(0x292)]=_0x256bc8,this['_configService']=_0x4439ac,this[_0x49fd02(0x134)]=_0x40b993,this['_snapshotServerService']=_0x60c9cc;}['createSocket'](_0x52f6e1){const _0x45f219=_0x5b7eaf,_0x2a9c12=this[_0x45f219(0x292)]['createSocket'](_0x52f6e1);if(!_0x2a9c12)throw new Error(_0x45f219(0x387));const _0x51b742=new _0x3eb24f(),_0x2139b0=new _0x51e21c();_0x51b742[_0x45f219(0x277)](_0x2a9c12['close$'][_0x45f219(0x113)](_0x1a9887=>_0x2139b0[_0x45f219(0x3ef)](_0x1a9887))),_0x51b742['add'](_0xa7e5b7(()=>_0x2139b0['complete']()));const _0x2f653c=new _0x51e21c();_0x51b742['add'](_0x2a9c12['error$']['subscribe'](_0x52d02c=>_0x2f653c['next'](_0x52d02c))),_0x51b742[_0x45f219(0x277)](_0xa7e5b7(()=>_0x2f653c['complete']()));const _0x28bf80=new _0x51e21c();_0x51b742[_0x45f219(0x277)](_0x2a9c12[_0x45f219(0x363)][_0x45f219(0x113)](_0x286a8f=>{const _0x7acb0d=_0x45f219,_0x158b93=yn(_0x286a8f);_0x28bf80[_0x7acb0d(0x3ef)](_0x158b93);})),_0x51b742['add'](_0xa7e5b7(()=>_0x28bf80['complete']()));let _0x1cdc48;const _0x6abda4=()=>{const _0x5f5643=_0x45f219;_0x2f653c[_0x5f5643(0x3ef)](new Event(_0x5f5643(0x370))),_0x2139b0['next'](new CloseEvent(_0x5f5643(0x370))),_0x1cdc48[_0x5f5643(0x1fc)]();};return _0x1cdc48={'memberID':'','close$':_0x2139b0[_0x45f219(0x3a7)](),'error$':_0x2f653c[_0x45f219(0x3a7)](),'open$':_0x2a9c12[_0x45f219(0x3ed)],'message$':_0x28bf80[_0x45f219(0x3a7)](),'send':_0x5a9490=>{const _0x396cff=_0x45f219;if(_0x5a9490[_0x396cff(0xb8)]===I['INGEST']){if(_0x5a9490[_0x396cff(0x2da)][_0x396cff(0x1a0)]===_0x47275c[_0x396cff(0x394)]){this[_0x396cff(0x207)](_0x1cdc48,_0x5a9490[_0x396cff(0x2da)])[_0x396cff(0x395)](_0x2df73c=>{this['_logService']['error'](_0x2df73c),_0x6abda4();});return;}if(_0x5a9490[_0x396cff(0x2da)][_0x396cff(0x1a0)]===_0x47275c[_0x396cff(0x2d7)]){const _0x37ead8=_0x5a9490[_0x396cff(0x2da)];this[_0x396cff(0x24a)](_0x37ead8)['then'](_0xf22fff=>{const _0x485a38=_0x396cff;_0x28bf80['next']({'cmd':I[_0x485a38(0x3fa)],'code':kt['OK'],'routeKey':_0x37ead8['data'][_0x485a38(0x2e3)],'routeType':'','data':{'eventID':_0x47275c[_0x485a38(0x3dc)],'data':{'changesets':_0xf22fff}}});})['catch'](_0x4d8ebd=>{const _0x53837f=_0x396cff;this[_0x53837f(0x134)]['error'](_0x4d8ebd),_0x6abda4();});return;}}_0x2a9c12[_0x396cff(0x287)](Mn(_0x5a9490));},'close':()=>{const _0x36516e=_0x45f219;_0x2a9c12['close'](),_0x51b742[_0x36516e(0xf8)]();}},_0x1cdc48;}async[_0x5b7eaf(0x207)](_0xabadeb,_0xdc050d){const _0xc14c3c=_0x5b7eaf;var _0x324fd8;const {unitType:_0x477bbf,unitID:_0x5a0d26,changeset:_0x5f251d}=_0xdc050d['data'],_0x2cf92f={'unitID':_0x5a0d26,'memberID':_0xabadeb[_0xc14c3c(0x171)],'type':_0x477bbf,'changeset':_0xb2fff8(_0x5f251d)},_0x44ca1b=$n((_0x324fd8=this[_0xc14c3c(0x110)][_0xc14c3c(0x39b)](Dn))!=null?_0x324fd8:wn,_0x477bbf,_0x5a0d26);try{await this['_http'][_0xc14c3c(0x355)](_0x44ca1b,{'body':_0x2cf92f});}catch(_0x3bf859){throw this['_logService']['error'](_0xc14c3c(0x36b),_0xc14c3c(0x34e)),_0x3bf859;}}async[_0x5b7eaf(0x24a)](_0x2729ea){const _0x2eaba0=_0x5b7eaf,{unitID:_0x92d242,from:_0x25d64d,to:_0x1e27f1,unitType:_0x32ac82}=_0x2729ea['data'];return(await this[_0x2eaba0(0x2ab)][_0x2eaba0(0x269)]({'metadata':void 0x0},{'unitID':_0x92d242,'type':_0x32ac82,'from':_0x25d64d,'to':_0x1e27f1}))[_0x2eaba0(0x3d4)];}};Ct=Ln([Te(0x0,_0x2c1848(_0x3b1152)),Te(0x1,_0x2c1848(_0x1335ed)),Te(0x2,_0x5debaa),Te(0x3,_0x4cc166),Te(0x4,_0x2ea08d)],Ct);const jn=_0x5b7eaf(0x178);function xn(_0x202b4e){const _0x4d1d8d=_0x5b7eaf;return JSON[_0x4d1d8d(0x369)](_0x202b4e)[_0x4d1d8d(0x143)];}class Ls{constructor(){const _0x2ca6d9=_0x5b7eaf;l(this,'_commentUpdate$',new _0x51e21c()),l(this,_0x2ca6d9(0x32b),this[_0x2ca6d9(0x31a)][_0x2ca6d9(0x3a7)]());}[_0x5b7eaf(0x1cd)](_0x439041){const _0x7d146b=_0x5b7eaf;this[_0x7d146b(0x31a)][_0x7d146b(0x3ef)](_0x439041);}}var Hn=Object[_0x5b7eaf(0x3b0)],kn=Object['getOwnPropertyDescriptor'],Bn=(_0x3cdd90,_0x1dd6c6,_0x3e8f37,_0x326a5c)=>{for(var _0xb64734=_0x326a5c>0x1?void 0x0:_0x326a5c?kn(_0x1dd6c6,_0x3e8f37):_0x1dd6c6,_0x32c3ad=_0x3cdd90['length']-0x1,_0x39f75d;_0x32c3ad>=0x0;_0x32c3ad--)(_0x39f75d=_0x3cdd90[_0x32c3ad])&&(_0xb64734=(_0x326a5c?_0x39f75d(_0x1dd6c6,_0x3e8f37,_0xb64734):_0x39f75d(_0xb64734))||_0xb64734);return _0x326a5c&&_0xb64734&&Hn(_0x1dd6c6,_0x3e8f37,_0xb64734),_0xb64734;},ns=(_0x289d23,_0x1ee38d)=>(_0x5d72fb,_0x4d9460)=>_0x1ee38d(_0x5d72fb,_0x4d9460,_0x289d23);let oe=class extends _0x61b58b{constructor(_0x44e701,_0x86a317){const _0x54e5d6=_0x5b7eaf;super(),l(this,_0x54e5d6(0x354),new Map()),(this[_0x54e5d6(0xba)]=_0x44e701,this[_0x54e5d6(0x1c1)]=_0x86a317,this[_0x54e5d6(0x255)](_0xa7e5b7(_0x3b6402(this[_0x54e5d6(0xba)][_0x54e5d6(0x108)](_0x275c2c[_0x54e5d6(0x18f)])[_0x54e5d6(0x1b6)](_0x5a8d9c(_0x1c75e6=>_0x1c75e6['getUnitId']())),this[_0x54e5d6(0xba)][_0x54e5d6(0x108)](_0x275c2c[_0x54e5d6(0x3ac)])['pipe'](_0x5a8d9c(_0x25c06b=>_0x25c06b['getUnitId']())),this[_0x54e5d6(0xba)][_0x54e5d6(0x108)](_0x275c2c['UNIVER_SLIDE'])[_0x54e5d6(0x1b6)](_0x5a8d9c(_0x365d5b=>_0x365d5b[_0x54e5d6(0xf1)]())))[_0x54e5d6(0x113)](_0x548ef4=>this[_0x54e5d6(0x3d6)](_0x548ef4)))));}[_0x5b7eaf(0x216)](_0x431762){const _0x56c167=_0x5b7eaf;this['_userManagerService'][_0x56c167(0x216)](_0x431762);}[_0x5b7eaf(0x101)](){const _0x22546b=_0x5b7eaf;return this[_0x22546b(0x1c1)][_0x22546b(0x101)]();}['updateMember'](_0xe0f2b4,_0x18b148){const _0x529c7c=_0x5b7eaf;let _0x4e5caf=this['_roomMembers'][_0x529c7c(0x2dc)](_0xe0f2b4);_0x4e5caf||(_0x4e5caf=new Vn(),this[_0x529c7c(0x354)]['set'](_0xe0f2b4,_0x4e5caf)),_0x4e5caf[_0x529c7c(0x2a2)](_0x18b148);}[_0x5b7eaf(0x186)](_0x3f642a,_0xf31390){const _0x3f4ed2=_0x5b7eaf,_0x10fc6c=this[_0x3f4ed2(0x354)][_0x3f4ed2(0x2dc)](_0x3f642a);_0x10fc6c&&_0x10fc6c[_0x3f4ed2(0x186)](_0xf31390);}[_0x5b7eaf(0x384)](_0x2ba3ba){const _0x3512d8=_0x5b7eaf;return this[_0x3512d8(0x354)][_0x3512d8(0x2dc)](_0x2ba3ba);}[_0x5b7eaf(0x18d)](_0x2ea12c,_0xc9d5aa){const _0xb3f049=_0x5b7eaf,_0x1c9e3e=this[_0xb3f049(0x354)]['get'](_0x2ea12c);if(_0x1c9e3e)return _0x1c9e3e[_0xb3f049(0x18d)](_0xc9d5aa);}[_0x5b7eaf(0x3d6)](_0x1a4e43){const _0x69d2f9=_0x5b7eaf,_0x1e8405=this[_0x69d2f9(0x354)][_0x69d2f9(0x2dc)](_0x1a4e43);_0x1e8405&&(_0x1e8405[_0x69d2f9(0xf8)](),this[_0x69d2f9(0x354)][_0x69d2f9(0xce)](_0x1a4e43));}[_0x5b7eaf(0xf8)](){const _0x5095ee=_0x5b7eaf;this[_0x5095ee(0x354)]['forEach'](_0x230721=>_0x230721[_0x5095ee(0xf8)]()),this['_roomMembers']['clear']();}};oe=Bn([ns(0x0,_0x52988f),ns(0x1,_0x2c1848(_0xc05435))],oe);class Vn extends _0x61b58b{constructor(){const _0x105851=_0x5b7eaf;super(...arguments),l(this,_0x105851(0x303),new Map());}['dispose'](){const _0x107172=_0x5b7eaf;this[_0x107172(0x303)][_0x107172(0xa0)]();}[_0x5b7eaf(0x2a2)](_0x2c17be){const _0x896ff0=_0x5b7eaf;this[_0x896ff0(0x303)][_0x896ff0(0x1ea)](_0x2c17be[_0x896ff0(0x171)],_0x2c17be);}[_0x5b7eaf(0x186)](_0x8b4fe9){const _0x166a8a=_0x5b7eaf;this[_0x166a8a(0x303)][_0x166a8a(0xce)](_0x8b4fe9);}[_0x5b7eaf(0x18d)](_0x4af039){const _0x306c96=_0x5b7eaf;return this[_0x306c96(0x303)]['get'](_0x4af039);}}var Fn=Object[_0x5b7eaf(0x3b0)],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x3576f1,_0x380258,_0x2d28df,_0xa6dfae)=>{const _0x5945a6=_0x5b7eaf;for(var _0x117bf2=_0xa6dfae>0x1?void 0x0:_0xa6dfae?Wn(_0x380258,_0x2d28df):_0x380258,_0x5861ae=_0x3576f1[_0x5945a6(0x143)]-0x1,_0x159fac;_0x5861ae>=0x0;_0x5861ae--)(_0x159fac=_0x3576f1[_0x5861ae])&&(_0x117bf2=(_0xa6dfae?_0x159fac(_0x380258,_0x2d28df,_0x117bf2):_0x159fac(_0x117bf2))||_0x117bf2);return _0xa6dfae&&_0x117bf2&&Fn(_0x380258,_0x2d28df,_0x117bf2),_0x117bf2;},X=(_0x18ac63,_0x129138)=>(_0x2325a5,_0x336ff2)=>_0x129138(_0x2325a5,_0x336ff2,_0x18ac63),W=(_0x5cece6=>(_0x5cece6[_0x5cece6[_0x5b7eaf(0x2f6)]=0x0]=_0x5b7eaf(0x2f6),_0x5cece6[_0x5cece6[_0x5b7eaf(0x1d8)]=0x1]=_0x5b7eaf(0x1d8),_0x5cece6[_0x5cece6[_0x5b7eaf(0x184)]=0x2]=_0x5b7eaf(0x184),_0x5cece6[_0x5cece6['ONLINE']=0x3]=_0x5b7eaf(0x308),_0x5cece6))(W||{});let bt=class extends _0x33f191{constructor(_0x22d2f7,_0x42723d,_0x2898a6,_0x29db5b,_0x2d6474,_0x1ac4cd,_0x2800cf,_0x13c106,_0xd00f75,_0x52b7d6){const _0x3a1a58=_0x5b7eaf;super(),l(this,'_sessionStatus$',new _0xdb5176(0x0)),l(this,_0x3a1a58(0x1e4),this[_0x3a1a58(0xc0)][_0x3a1a58(0x3a7)]()),l(this,'_event$',new _0x51e21c()),l(this,_0x3a1a58(0x375),this[_0x3a1a58(0x2bc)][_0x3a1a58(0x3a7)]()),l(this,_0x3a1a58(0x262)),l(this,_0x3a1a58(0x3b8)),l(this,_0x3a1a58(0x2fb)),l(this,'_shouldReportTelemetry',!0x1),l(this,'_telemetryInfo',null),(this[_0x3a1a58(0x284)]=_0x22d2f7,this['_logService']=_0x2898a6,this[_0x3a1a58(0x3c1)]=_0x29db5b,this[_0x3a1a58(0x1b2)]=_0x2d6474,this['_configService']=_0x1ac4cd,this[_0x3a1a58(0x30e)]=_0x2800cf,this[_0x3a1a58(0x361)]=_0x13c106,this[_0x3a1a58(0x371)]=_0xd00f75,this['_telemetryService']=_0x52b7d6,this[_0x3a1a58(0x3e5)]=!!this[_0x3a1a58(0x3bb)],_0x42723d[_0x3a1a58(0x1b6)](_0x53c8e3(this[_0x3a1a58(0x2cf)]))[_0x3a1a58(0x113)](_0xcfaab5=>{const _0x52b809=_0x3a1a58;var _0x15f733;typeof _0xcfaab5>'u'||(this['_socket']=_0xcfaab5,_0xcfaab5?(this[_0x52b809(0x3fe)](_0xcfaab5),this[_0x52b809(0x3b8)]=_0xcfaab5[_0x52b809(0x363)]['subscribe'](_0x1fbb80=>{const _0x15e0f4=_0x52b809;_0x1fbb80['routeKey']===this['_unitID']&&this[_0x15e0f4(0xc9)](_0x1fbb80);})):(this[_0x52b809(0x11f)](),this[_0x52b809(0xc0)]['next'](0x2),(_0x15f733=this[_0x52b809(0x3b8)])==null||_0x15f733[_0x52b809(0x1ce)](),this['_socketMessageSubscription']=null));}),this[_0x3a1a58(0x255)](this[_0x3a1a58(0x3c1)]['registerOnClose'](()=>{const _0x436106=_0x3a1a58;var _0x292604;(_0x292604=this[_0x436106(0x262)])==null||_0x292604[_0x436106(0x287)]({'cmd':I[_0x436106(0x306)],'data':{'roomID':this[_0x436106(0x284)]}});})));}get[_0x5b7eaf(0x260)](){const _0x25b5ee=_0x5b7eaf;return this[_0x25b5ee(0xc0)][_0x25b5ee(0x1a6)]();}[_0x5b7eaf(0x11e)](){var _0x475799,_0x3d8cd1;return(_0x3d8cd1=(_0x475799=this['_socket'])==null?void 0x0:_0x475799['memberID'])!=null?_0x3d8cd1:null;}['dispose'](){const _0x145263=_0x5b7eaf;super['dispose'](),this[_0x145263(0x2cf)][_0x145263(0x3ef)](),this[_0x145263(0x2cf)][_0x145263(0x213)]();}['close'](){const _0x2bb800=_0x5b7eaf;var _0x46fc1a,_0x2b7c03;this[_0x2bb800(0x11f)](),(_0x46fc1a=this[_0x2bb800(0x262)])==null||_0x46fc1a[_0x2bb800(0x287)]({'cmd':I[_0x2bb800(0x306)],'data':{'roomID':this[_0x2bb800(0x284)]}}),(_0x2b7c03=this[_0x2bb800(0x262)])==null||_0x2b7c03[_0x2bb800(0x1fc)](),this['_event$'][_0x2bb800(0x213)](),this[_0x2bb800(0xc0)][_0x2bb800(0x213)](),this[_0x2bb800(0xf8)]();}[_0x5b7eaf(0xc9)](_0x6e77e0){const _0x4de8b6=_0x5b7eaf;_0x6e77e0[_0x4de8b6(0xb8)]===I[_0x4de8b6(0xcd)]?this[_0x4de8b6(0x104)](_0x6e77e0):_0x6e77e0['cmd']===I[_0x4de8b6(0x3fa)]&&this[_0x4de8b6(0x389)](_0x6e77e0);}[_0x5b7eaf(0x3fe)](_0x443696){const _0x21852f=_0x5b7eaf;this[_0x21852f(0xc0)][_0x21852f(0x3ef)](0x1),_0x443696[_0x21852f(0x287)]({'cmd':I[_0x21852f(0xcd)],'routeKey':this[_0x21852f(0x284)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x19f236){const _0x2ec95b=_0x5b7eaf;var _0x17b589;if(_0x19f236[_0x2ec95b(0x3b2)]===kt[_0x2ec95b(0x38f)]){this[_0x2ec95b(0x1b2)]['show']({'type':_0x21289[_0x2ec95b(0x150)],'content':this[_0x2ec95b(0x30e)]['t']('session.room-full')}),this[_0x2ec95b(0xc0)]['next'](0x2);return;}this['_sessionStatus$'][_0x2ec95b(0x3ef)](0x3);const _0x4b1dfa=(_0x17b589=_0x19f236[_0x2ec95b(0x2da)]['roomInfos'][this[_0x2ec95b(0x284)]])==null?void 0x0:_0x17b589[_0x2ec95b(0xb7)];_0x4b1dfa&&_0x4b1dfa[_0x2ec95b(0x215)](_0x3b41cc=>this[_0x2ec95b(0x361)][_0x2ec95b(0x2a2)](this['_unitID'],_0x3b41cc));}[_0x5b7eaf(0x389)](_0x22f768){const _0x47e576=_0x5b7eaf;try{const _0x1690b5=_0x22f768[_0x47e576(0x2da)];switch(_0x1690b5[_0x47e576(0x1a0)]){case _0x47275c[_0x47e576(0x3cd)]:this[_0x47e576(0x297)](_0x1690b5),this[_0x47e576(0x2bc)][_0x47e576(0x3ef)](_0x1690b5);break;case _0x47275c['USERS_LEAVE']:this[_0x47e576(0x3b3)](_0x1690b5),this[_0x47e576(0x2bc)]['next'](_0x1690b5);break;case _0x47275c['CHANGESET_ACK']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x47e576(0x13b)](),this[_0x47e576(0x2bc)][_0x47e576(0x3ef)](_0x1690b5);break;case _0x47275c[_0x47e576(0x24d)]:this['_logService'][_0x47e576(0x332)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x47e576(0x369)](_0x1690b5)),this[_0x47e576(0x2bc)]['next'](_0x1690b5);break;case _0x47275c['COMMENT_UPDATE']:this[_0x47e576(0x371)][_0x47e576(0x1cd)](_0x1690b5[_0x47e576(0x2da)]),this[_0x47e576(0x2bc)][_0x47e576(0x3ef)](_0x1690b5);break;default:this['_event$'][_0x47e576(0x3ef)](_0x1690b5);}}catch(_0x56f43e){this[_0x47e576(0x134)][_0x47e576(0x332)](_0x56f43e,_0x22f768);}}[_0x5b7eaf(0x297)](_0x21fdfa){const _0xdeb3c9=_0x5b7eaf;this[_0xdeb3c9(0x361)]['updateMember'](this[_0xdeb3c9(0x284)],_0x21fdfa[_0xdeb3c9(0x2da)]);}['_onUserLeave'](_0xb0b3bb){const _0x276b59=_0x5b7eaf;this[_0x276b59(0x361)]['removeMember'](this[_0x276b59(0x284)],_0xb0b3bb[_0x276b59(0x2da)][_0x276b59(0x171)]);}async[_0x5b7eaf(0x287)](_0x45be7c,_0x4cc29d){const _0x3b740a=_0x5b7eaf;if(this[_0x3b740a(0x260)]!==0x3||!this[_0x3b740a(0x262)])throw new Error(_0x3b740a(0x10f));try{_0x45be7c[_0x3b740a(0x1a0)]===_0x47275c[_0x3b740a(0x394)]&&(this[_0x3b740a(0x240)](),this[_0x3b740a(0x1e8)](_0x45be7c)),this['_socket']['send']({'cmd':I[_0x3b740a(0x2e4)],'routeKey':_0x4cc29d,'routeType':'','data':_0x45be7c});}catch(_0x19a1cc){this[_0x3b740a(0x134)]['error'](_0x19a1cc);}}[_0x5b7eaf(0x240)](){const _0x3e958d=_0x5b7eaf;var _0x4fd768;this[_0x3e958d(0x2fb)]=window['setTimeout'](()=>{const _0x36255d=_0x3e958d;this[_0x36255d(0x2fb)]=null,this[_0x36255d(0x1b2)][_0x36255d(0x2d3)]({'type':_0x21289[_0x36255d(0x3c5)],'content':this[_0x36255d(0x30e)]['t'](_0x36255d(0x388))});},(_0x4fd768=this[_0x3e958d(0x110)][_0x3e958d(0x39b)](Ns))!=null?_0x4fd768:ys);}['_clearCollaborationTimeoutTimer'](){const _0x3ade48=_0x5b7eaf;this[_0x3ade48(0x2fb)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x3ade48(0x2fb)]=null);}[_0x5b7eaf(0x1e8)](_0x4db683){const _0x4d9283=_0x5b7eaf;if(!this[_0x4d9283(0x3e5)])return;const {data:_0x3971a6}=_0x4db683,{unitID:_0x1cd6c5,changeset:_0x5a1c27}=_0x3971a6,{mutations:_0x26d0ff,type:_0x4f9832}=_0x5a1c27;this[_0x4d9283(0x3be)]={'unitId':_0x1cd6c5,'type':_0x4f9832,'startTime':performance[_0x4d9283(0x1a4)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x26d0ff)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x1ef3d0=_0x5b7eaf;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x1ef3d0(0x134)][_0x1ef3d0(0x332)](_0x1ef3d0(0x36b),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1ef3d0(0x3be)][_0x1ef3d0(0x2ea)]=performance[_0x1ef3d0(0x1a4)](),this['_telemetryInfo'][_0x1ef3d0(0x39a)]=this[_0x1ef3d0(0x3be)][_0x1ef3d0(0x2ea)]-this[_0x1ef3d0(0x3be)][_0x1ef3d0(0x21c)],this[_0x1ef3d0(0x3bb)]['capture'](jn,this['_telemetryInfo']),this['_telemetryInfo']=null;}}[_0x5b7eaf(0x11f)](){this['_telemetryInfo']=null;}};bt=Gn([X(0x2,_0x4cc166),X(0x3,_0x439db2),X(0x4,_0x3df3ba),X(0x5,_0x5debaa),X(0x6,_0x2c1848(_0x1e7bf5)),X(0x7,_0x2c1848(oe)),X(0x8,_0x2c1848(Ls)),X(0x9,_0x3b757a(_0x2dbeaf))],bt);var Yn=Object[_0x5b7eaf(0x3b0)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x15c9cd,_0x4241f7,_0x2b31c0,_0x4045c8)=>{const _0x104957=_0x5b7eaf;for(var _0x9c649=_0x4045c8>0x1?void 0x0:_0x4045c8?Kn(_0x4241f7,_0x2b31c0):_0x4241f7,_0x49f2e4=_0x15c9cd[_0x104957(0x143)]-0x1,_0x35fbaa;_0x49f2e4>=0x0;_0x49f2e4--)(_0x35fbaa=_0x15c9cd[_0x49f2e4])&&(_0x9c649=(_0x4045c8?_0x35fbaa(_0x4241f7,_0x2b31c0,_0x9c649):_0x35fbaa(_0x9c649))||_0x9c649);return _0x4045c8&&_0x9c649&&Yn(_0x4241f7,_0x2b31c0,_0x9c649),_0x9c649;},ue=(_0xf5f21b,_0x5b049d)=>(_0x472888,_0x7a5959)=>_0x5b049d(_0x472888,_0x7a5959,_0xf5f21b);let ae=class extends _0x61b58b{constructor(_0x4e36bb,_0x45fabc,_0x1b86bc,_0x4405bd,_0x5c4731,_0x268153){const _0x5c9965=_0x5b7eaf;super(),l(this,_0x5c9965(0xe2),new _0xdb5176(void 0x0)),l(this,_0x5c9965(0x1fe),this[_0x5c9965(0xe2)][_0x5c9965(0x3a7)]()),l(this,_0x5c9965(0x268),null),l(this,_0x5c9965(0x31f),new Map()),l(this,_0x5c9965(0x3bf),new _0xdb5176(W['IDLE'])),l(this,'status$',this[_0x5c9965(0x3bf)][_0x5c9965(0x3a7)]()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x5c9965(0x3eb),0x0),l(this,_0x5c9965(0x21d)),l(this,'_timeoutTimer'),(this['_injector']=_0x4e36bb,this['_localeService']=_0x45fabc,this[_0x5c9965(0x1b2)]=_0x1b86bc,this[_0x5c9965(0x134)]=_0x4405bd,this[_0x5c9965(0x110)]=_0x5c4731,this[_0x5c9965(0x343)]=_0x268153);}get[_0x5b7eaf(0x262)](){const _0x89ade7=_0x5b7eaf;return this[_0x89ade7(0xe2)][_0x89ade7(0x1a6)]();}[_0x5b7eaf(0xf8)](){const _0x2f8f69=_0x5b7eaf;super[_0x2f8f69(0xf8)](),this[_0x2f8f69(0x31f)][_0x2f8f69(0x215)](_0x23a0a6=>_0x23a0a6['dispose']()),this[_0x2f8f69(0x31f)][_0x2f8f69(0xa0)](),this[_0x2f8f69(0x3bf)]['complete']();}async[_0x5b7eaf(0x299)](_0x1a312c){const _0x41ea3e=_0x5b7eaf;if(this['_sessions'][_0x41ea3e(0x30c)](_0x1a312c))return this['_sessions'][_0x41ea3e(0x2dc)](_0x1a312c);this['_tryEnsureSocket']();const _0xc58375=this['_injector'][_0x41ea3e(0x18a)](bt,_0x1a312c,this[_0x41ea3e(0xe2)][_0x41ea3e(0x3a7)]());return this[_0x41ea3e(0x31f)][_0x41ea3e(0x1ea)](_0x1a312c,_0xc58375),_0xc58375;}['closeSession'](_0x7f1822){const _0xf326ac=_0x5b7eaf;var _0x35888f;const _0x46cb2f=this['_sessions'][_0xf326ac(0x2dc)](_0x7f1822);_0x46cb2f&&(this[_0xf326ac(0x31f)][_0xf326ac(0xce)](_0x7f1822),_0x46cb2f['close']()),this[_0xf326ac(0x31f)][_0xf326ac(0x22e)]||(_0x35888f=this['_socket'])==null||_0x35888f['close']();}[_0x5b7eaf(0x170)](){const _0x1c0115=_0x5b7eaf;this[_0x1c0115(0x3eb)]=0x0,this[_0x1c0115(0x19e)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x1c0115(0x19e)]=null),this[_0x1c0115(0x20f)]();}['_createSocket'](){const _0x200acb=_0x5b7eaf;var _0x1750d7;const _0x440096=(_0x1750d7=this[_0x200acb(0x110)][_0x200acb(0x39b)](Sn))!=null?_0x1750d7:pn,_0x130ce9=this[_0x200acb(0x343)][_0x200acb(0x2f0)](_0x440096);return this[_0x200acb(0x268)]=_0x130ce9,_0x130ce9;}[_0x5b7eaf(0xa9)](){const _0x368a0b=_0x5b7eaf;var _0xae1a56,_0x2362e0;try{const _0x3bfc0b=(_0x2362e0=(_0xae1a56=this[_0x368a0b(0x262)])!=null?_0xae1a56:this[_0x368a0b(0x268)])!=null?_0x2362e0:this['_createSocket']();if(_0x3bfc0b){const _0xa1c86f=_0x3bfc0b['send'];_0x3bfc0b[_0x368a0b(0x287)]=_0x1e9abe=>(this['_rescheduleHeartbeat'](),_0xa1c86f['apply'](_0x3bfc0b,[_0x1e9abe])),_0x3bfc0b[_0x368a0b(0x363)][_0x368a0b(0x113)](_0x43e2c5=>this[_0x368a0b(0x1fb)](_0x3bfc0b,_0x43e2c5)),_0x3bfc0b['error$'][_0x368a0b(0x1b6)](_0x2efa4b(0x1))[_0x368a0b(0x113)](_0x177e5f=>this[_0x368a0b(0x134)][_0x368a0b(0x332)](_0x368a0b(0x138),_0x177e5f)),_0x3bfc0b[_0x368a0b(0x3ed)]['pipe'](_0x2efa4b(0x1))[_0x368a0b(0x113)](()=>{const _0x5e0ab2=_0x368a0b;this[_0x5e0ab2(0x2b3)](_0x3bfc0b);}),_0x3bfc0b[_0x368a0b(0x30d)][_0x368a0b(0x1b6)](_0x2efa4b(0x1))[_0x368a0b(0x113)](_0x3a6ffb=>{const _0x362e31=_0x368a0b;this[_0x362e31(0x134)][_0x362e31(0x330)](_0x362e31(0x2c5),_0x362e31(0x33b),_0x3a6ffb),this[_0x362e31(0x14f)]();});}}catch(_0x13a134){this[_0x368a0b(0x134)][_0x368a0b(0x332)](_0x13a134),this[_0x368a0b(0x14f)]();}}[_0x5b7eaf(0x2b3)](_0x2dedbe){const _0x403d4b=_0x5b7eaf;this[_0x403d4b(0x134)][_0x403d4b(0x330)](_0x403d4b(0x2c5),_0x403d4b(0xac)),_0x2dedbe[_0x403d4b(0x287)]({'cmd':I[_0x403d4b(0x3da)]}),this[_0x403d4b(0x232)](),this[_0x403d4b(0x373)]();}[_0x5b7eaf(0x373)](){const _0xa50035=_0x5b7eaf,_0x5d76e8=()=>{const _0x426a69=_0x4581;this['_onOffline'](),this[_0x426a69(0x39e)](),window['removeEventListener'](_0x426a69(0x1b9),_0x5d76e8);};window[_0xa50035(0x257)]('offline',_0x5d76e8);}[_0x5b7eaf(0x310)](){const _0x4ed776=_0x5b7eaf;this[_0x4ed776(0xbf)]=!0x1,this[_0x4ed776(0x3bf)][_0x4ed776(0x3ef)](W[_0x4ed776(0x184)]),this[_0x4ed776(0xe2)][_0x4ed776(0x3ef)](null),this[_0x4ed776(0x37c)](),this['_clearHeartbeatTimer']();}[_0x5b7eaf(0x14f)](){const _0x367132=_0x5b7eaf;var _0x2f6dc7;this[_0x367132(0x310)](),this[_0x367132(0x3eb)]<((_0x2f6dc7=this[_0x367132(0x110)]['getConfig'](bn))!=null?_0x2f6dc7:Tn)?(this[_0x367132(0x1b2)][_0x367132(0x2d3)]({'key':_0x367132(0xa1),'type':_0x21289[_0x367132(0x150)],'content':this[_0x367132(0x30e)]['t'](_0x367132(0x1d9))}),this[_0x367132(0x20f)]()):(this[_0x367132(0x1b2)]['show']({'key':_0x367132(0xa1),'type':_0x21289['Error'],'content':this[_0x367132(0x30e)]['t'](_0x367132(0x1c8))}),this['_listenToOnlineEvent']());}[_0x5b7eaf(0x39e)](){const _0x39a5fe=_0x5b7eaf,_0x4d9d1f=()=>{const _0x589949=_0x4581;this[_0x589949(0x170)](),window[_0x589949(0x350)](_0x589949(0x289),_0x4d9d1f);};window['addEventListener'](_0x39a5fe(0x289),_0x4d9d1f),this[_0x39a5fe(0xe2)][_0x39a5fe(0x1b6)](_0x324b00(_0x1440fc=>!!_0x1440fc),_0x2efa4b(0x1))[_0x39a5fe(0x113)](()=>{const _0x23a438=_0x39a5fe;window[_0x23a438(0x350)]('online',_0x4d9d1f);});}[_0x5b7eaf(0x20f)](){const _0x318731=_0x5b7eaf;var _0x29f027;const _0x1e8a9a=this['_retryCount'],_0x3d6d85=_0x1e8a9a===0x0?0x0:((_0x29f027=this[_0x318731(0x110)]['getConfig'](En))!=null?_0x29f027:Cn)*0x2**_0x1e8a9a;this[_0x318731(0x19e)]=window[_0x318731(0x1fd)](()=>{const _0x4e5829=_0x318731;clearTimeout(this[_0x4e5829(0x19e)]),this['_retryConnectingTimer']=null,this[_0x4e5829(0xa9)]();},_0x3d6d85),this['_retryCount']+=0x1;}[_0x5b7eaf(0x1fb)](_0x53bc78,_0x2334ef){const _0x360057=_0x5b7eaf,{cmd:_0x193148}=_0x2334ef;_0x193148===I[_0x360057(0x3da)]&&!this['_socketReady']&&(_0x53bc78['memberID']=_0x2334ef['data']['memberID'],this[_0x360057(0xe2)][_0x360057(0x3ef)](_0x53bc78),this['_status$']['next'](W[_0x360057(0x308)]),this['_socketReady']=!0x0,this[_0x360057(0x268)]=null),_0x193148===I[_0x360057(0x24c)]&&this[_0x360057(0x37c)](),this[_0x360057(0x232)]();}[_0x5b7eaf(0x232)](){const _0x1c8c22=_0x5b7eaf;var _0x37124c;this[_0x1c8c22(0x3f8)](),this['_sendHeartbeatTimer']=window[_0x1c8c22(0x1fd)](()=>this[_0x1c8c22(0x2cd)](),(_0x37124c=this[_0x1c8c22(0x110)][_0x1c8c22(0x39b)](vn))!=null?_0x37124c:In);}[_0x5b7eaf(0x2cd)](){const _0x219fb1=_0x5b7eaf;this[_0x219fb1(0x262)][_0x219fb1(0x287)]({'cmd':I[_0x219fb1(0x24c)]}),this[_0x219fb1(0x253)]();}[_0x5b7eaf(0x253)](){const _0x57f69c=_0x5b7eaf;var _0x591d7c;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x57f69c(0x14f)](),(_0x591d7c=this[_0x57f69c(0x110)]['getConfig'](Ns))!=null?_0x591d7c:ys);}['_clearHeartbeatTimer'](){const _0x49c75f=_0x5b7eaf;this[_0x49c75f(0x21d)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x49c75f(0x21d)]=null);}[_0x5b7eaf(0x37c)](){const _0x3de820=_0x5b7eaf;this['_timeoutTimer']!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x3de820(0x37b)]=null);}};ae=Xn([ue(0x0,_0x2c1848(_0x1637c5)),ue(0x1,_0x2c1848(_0x1e7bf5)),ue(0x2,_0x3df3ba),ue(0x3,_0x4cc166),ue(0x4,_0x5debaa),ue(0x5,As)],ae);var Jn=Object[_0x5b7eaf(0x3b0)],zn=Object[_0x5b7eaf(0x25b)],qn=(_0x40c837,_0x5a3f1d,_0x13e1c6,_0x2c4b08)=>{const _0x5bf4f6=_0x5b7eaf;for(var _0x362997=_0x2c4b08>0x1?void 0x0:_0x2c4b08?zn(_0x5a3f1d,_0x13e1c6):_0x5a3f1d,_0x5e1e28=_0x40c837[_0x5bf4f6(0x143)]-0x1,_0x125c16;_0x5e1e28>=0x0;_0x5e1e28--)(_0x125c16=_0x40c837[_0x5e1e28])&&(_0x362997=(_0x2c4b08?_0x125c16(_0x5a3f1d,_0x13e1c6,_0x362997):_0x125c16(_0x362997))||_0x362997);return _0x2c4b08&&_0x362997&&Jn(_0x5a3f1d,_0x13e1c6,_0x362997),_0x362997;},ht=(_0x49ac0a,_0x3e0283)=>(_0x8925c7,_0x224aed)=>_0x3e0283(_0x8925c7,_0x224aed,_0x49ac0a);let Ze=class{constructor(_0x5b91d5,_0x38e49a,_0x55b297){const _0x9524e8=_0x5b7eaf;this[_0x9524e8(0x27d)]=_0x5b91d5,this[_0x9524e8(0x2ef)]=_0x38e49a,this[_0x9524e8(0x1ca)]=_0x55b297;}[_0x5b7eaf(0x194)](_0x136850){const _0x20173c=_0x5b7eaf;this[_0x20173c(0x199)](_0x136850),this[_0x20173c(0x374)](_0x136850);}[_0x5b7eaf(0x10c)](_0x89991){const _0x1e5827=_0x5b7eaf,{unitID:_0x40101c}=_0x89991,_0x18475c=this['_renderManagerService'][_0x1e5827(0x206)](_0x40101c)['with'](_0x44d8a2),{redoCache:_0x4feee0}=_0x18475c[_0x1e5827(0x322)]();if(_0x4feee0[_0x1e5827(0x143)]===0x0)return _0x89991;let _0x55a746=_0x23d1c2[_0x1e5827(0xf0)](_0x89991[_0x1e5827(0x18c)][0x0]);for(let _0x471eeb=0x0;_0x471eeb<_0x4feee0[_0x1e5827(0x143)];_0x471eeb++){const _0x41eec6={'id':_0x1e5827(0x1b5),'params':{..._0x4feee0[_0x471eeb]}},_0x520a34=this['_transformService'][_0x1e5827(0xaa)](_0x55a746,_0x41eec6,!0x1);if(_0x43078a(_0x520a34))throw _0x520a34[_0x1e5827(0x332)];_0x55a746=_0x520a34['m1Prime'];}return{..._0x23d1c2['deepClone'](_0x89991),'mutations':[_0x55a746]};}[_0x5b7eaf(0x199)](_0x58815d){const _0x36d8bf=_0x5b7eaf,{unitID:_0x2b3885}=_0x58815d,_0x230eb2=this[_0x36d8bf(0x1ca)][_0x36d8bf(0x206)](_0x2b3885)['with'](_0x44d8a2),{undoCache:_0x16f258,redoCache:_0x1039a4}=_0x230eb2[_0x36d8bf(0x322)]();if(_0x16f258['length']===0x0||_0x1039a4[_0x36d8bf(0x143)]===0x0)return;const _0xd66a68=[],_0x2287f5=[];let _0x514337=_0x23d1c2[_0x36d8bf(0xf0)](_0x58815d['mutations'][0x0]),_0x363ff1=_0x23d1c2['deepClone'](_0x58815d['mutations'][0x0]);for(let _0x183179=_0x16f258[_0x36d8bf(0x143)]-0x1;_0x183179>=0x0;_0x183179--){const _0x536773={'id':_0x36d8bf(0x1b5),'params':{..._0x16f258[_0x183179]}},_0x1d966f={'id':_0x36d8bf(0x1b5),'params':{..._0x1039a4[_0x183179]}},_0xc2f025=this[_0x36d8bf(0x2ef)]['transformMutation'](_0x514337,_0x536773,!0x1),_0x5250fd=this[_0x36d8bf(0x2ef)][_0x36d8bf(0xaa)](_0x363ff1,_0x1d966f,!0x1);if(_0x43078a(_0xc2f025))throw _0xc2f025['error'];if(_0x43078a(_0x5250fd))throw _0x5250fd[_0x36d8bf(0x332)];_0xd66a68[_0x36d8bf(0x405)](_0xc2f025[_0x36d8bf(0x246)][_0x36d8bf(0x14c)]),_0x2287f5[_0x36d8bf(0x405)](_0x5250fd[_0x36d8bf(0x246)][_0x36d8bf(0x14c)]),_0x514337=_0xc2f025[_0x36d8bf(0x2f9)],_0x363ff1=_0x5250fd[_0x36d8bf(0x2f9)];}_0x230eb2[_0x36d8bf(0x29d)]({'undoCache':_0xd66a68,'redoCache':_0x2287f5});}[_0x5b7eaf(0x374)](_0x400a6c){const _0x17854a=_0x5b7eaf,{unitID:_0x2126ff}=_0x400a6c,_0x59f9b4=this['_renderManagerService'][_0x17854a(0x206)](_0x2126ff)[_0x17854a(0x162)](_0x44d8a2),_0x8d9d69=_0x59f9b4[_0x17854a(0x3c6)]();if(_0x8d9d69==null)return;const _0x4dd9d9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x400a6c[_0x17854a(0x2e3)],'actions':null,'textRanges':[_0x8d9d69]}}],_0x13488f=this[_0x17854a(0x2ef)][_0x17854a(0x17d)](_0x400a6c,_0x4dd9d9);if(!_0x3d99d4(_0x13488f))throw _0x13488f[_0x17854a(0x332)];const _0x4554b2=_0x13488f[_0x17854a(0x246)][0x0][_0x17854a(0x14c)][_0x17854a(0x35f)];Array['isArray'](_0x4554b2)&&_0x4554b2[_0x17854a(0x143)]&&_0x59f9b4[_0x17854a(0x161)](_0x4554b2[0x0]);}};Ze=qn([ht(0x0,_0x2c1848(_0x1637c5)),ht(0x1,_0x364c40),ht(0x2,_0xeaee19)],Ze);var Zn=Object['defineProperty'],Qn=Object['getOwnPropertyDescriptor'],er=(_0x16d0ee,_0x5e6d2e,_0x5ba859,_0x1db6ea)=>{const _0x5a5e6c=_0x5b7eaf;for(var _0x39589c=_0x1db6ea>0x1?void 0x0:_0x1db6ea?Qn(_0x5e6d2e,_0x5ba859):_0x5e6d2e,_0x310e9f=_0x16d0ee[_0x5a5e6c(0x143)]-0x1,_0x9c7441;_0x310e9f>=0x0;_0x310e9f--)(_0x9c7441=_0x16d0ee[_0x310e9f])&&(_0x39589c=(_0x1db6ea?_0x9c7441(_0x5e6d2e,_0x5ba859,_0x39589c):_0x9c7441(_0x39589c))||_0x39589c);return _0x1db6ea&&_0x39589c&&Zn(_0x5e6d2e,_0x5ba859,_0x39589c),_0x39589c;},Re=(_0x20a44f,_0x5449db)=>(_0x46aa7a,_0x1ba325)=>_0x5449db(_0x46aa7a,_0x1ba325,_0x20a44f);let D=class extends _0x61b58b{constructor(_0x2657e0,_0x329f4c,_0x50467f,_0x24ade5,_0x492ea1){const _0x3794a5=_0x5b7eaf;super(),l(this,_0x3794a5(0x2ce),new Map()),l(this,_0x3794a5(0x149),new Map()),l(this,_0x3794a5(0x118),!0x1),(this[_0x3794a5(0x110)]=_0x2657e0,this[_0x3794a5(0x266)]=_0x329f4c,this[_0x3794a5(0x3c1)]=_0x50467f,this[_0x3794a5(0x30e)]=_0x24ade5,this[_0x3794a5(0x300)]=_0x492ea1,this[_0x3794a5(0x31e)]());}['disableLocalCache'](){const _0xb8904c=_0x5b7eaf;this[_0xb8904c(0x118)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x5b7eaf(0xf8)](){const _0x23bfdc=_0x5b7eaf;this[_0x23bfdc(0x224)]()[_0x23bfdc(0x2b0)](()=>super[_0x23bfdc(0xf8)]());}async['loadOfflineData'](_0x19adeb){const _0x6f219=_0x5b7eaf;return this['_disabled']?null:this[_0x6f219(0x266)][_0x6f219(0x15a)](rs(_0x19adeb));}async[_0x5b7eaf(0x3bd)](_0xb5e4a5,_0x3f81b8){const _0xfbfab0=_0x5b7eaf;return!!this[_0xfbfab0(0x266)]['setItem'](_0xb5e4a5,_0x3f81b8);}[_0x5b7eaf(0x272)](_0x48ae74,_0x42e3b9,_0x3ac3c6,_0x7c3482){const _0x4e020f=_0x5b7eaf,_0x5f24e0=this[_0x4e020f(0x300)][_0x4e020f(0x385)](_0x48ae74);this[_0x4e020f(0x2ce)]['set'](_0x48ae74,{'unitID':_0x48ae74,'type':_0x42e3b9,'awaitingChangeset':_0x3ac3c6,'mutations':_0x7c3482,'rev':_0x5f24e0}),this['_saveTaskMap']['has'](_0x48ae74)||this[_0x4e020f(0x3de)](_0x48ae74);}[_0x5b7eaf(0x3de)](_0x2bc97d){const _0x44f0d3=_0x5b7eaf,_0x281346=this[_0x44f0d3(0x3f9)]();_0x281346===0x0?this[_0x44f0d3(0x28e)](_0x2bc97d):this[_0x44f0d3(0x149)]['set'](_0x2bc97d,setTimeout(()=>this[_0x44f0d3(0x28e)](_0x2bc97d),_0x281346));}[_0x5b7eaf(0x3f9)](){const _0x412041=_0x5b7eaf;var _0x3a0bcf;return(_0x3a0bcf=this[_0x412041(0x110)][_0x412041(0x39b)](Rn))!=null?_0x3a0bcf:On;}[_0x5b7eaf(0x28e)](_0x1ad582){const _0xb780e8=_0x5b7eaf,_0x1363a8=this[_0xb780e8(0x149)][_0xb780e8(0x2dc)](_0x1ad582);return _0x1363a8!==void 0x0&&window[_0xb780e8(0x223)](_0x1363a8),this['_localStorageService'][_0xb780e8(0x29b)](rs(_0x1ad582),this[_0xb780e8(0x2ce)][_0xb780e8(0x2dc)](_0x1ad582))['then'](()=>this[_0xb780e8(0x149)]['delete'](_0x1ad582));}async[_0x5b7eaf(0x224)](){const _0x211b9f=_0x5b7eaf,_0x46b258=[];this[_0x211b9f(0x149)][_0x211b9f(0x215)]((_0x8dbd8f,_0x5c88ab)=>{const _0x401e37=_0x211b9f;window[_0x401e37(0x223)](_0x8dbd8f),_0x46b258[_0x401e37(0x2cb)](this['_saveCache'](_0x5c88ab)[_0x401e37(0x2b0)](()=>{const _0x209387=_0x401e37;this[_0x209387(0x149)]['delete'](_0x5c88ab);}));}),await Promise[_0x211b9f(0x402)](_0x46b258);}['_setupBeforeClosingHandler'](){const _0x47b594=_0x5b7eaf;this[_0x47b594(0x255)](this['_beforeCloseService'][_0x47b594(0x353)](()=>{const _0x9bdd37=_0x47b594;if(this[_0x9bdd37(0x149)][_0x9bdd37(0x22e)])return this[_0x9bdd37(0x30e)]['t'](_0x9bdd37(0x24e));}));}};D=er([Re(0x0,_0x5debaa),Re(0x1,_0x2d60b4),Re(0x2,_0x439db2),Re(0x3,_0x2c1848(_0x1e7bf5)),Re(0x4,_0x2c1848(_0xe33365))],D);function rs(_0x5cccb8){const _0x556fc2=_0x5b7eaf;return _0x556fc2(0x212)+_0x5cccb8;}var tr=Object[_0x5b7eaf(0x3b0)],sr=Object[_0x5b7eaf(0x25b)],ir=(_0x56585c,_0x5c7b1e,_0x199f14,_0x2d00de)=>{const _0x1433ad=_0x5b7eaf;for(var _0x16d7ae=_0x2d00de>0x1?void 0x0:_0x2d00de?sr(_0x5c7b1e,_0x199f14):_0x5c7b1e,_0xe3c8d8=_0x56585c[_0x1433ad(0x143)]-0x1,_0x2e822a;_0xe3c8d8>=0x0;_0xe3c8d8--)(_0x2e822a=_0x56585c[_0xe3c8d8])&&(_0x16d7ae=(_0x2d00de?_0x2e822a(_0x5c7b1e,_0x199f14,_0x16d7ae):_0x2e822a(_0x16d7ae))||_0x16d7ae);return _0x2d00de&&_0x16d7ae&&tr(_0x5c7b1e,_0x199f14,_0x16d7ae),_0x16d7ae;},lt=(_0x44c51a,_0x553e09)=>(_0x22f3a2,_0x26b258)=>_0x553e09(_0x22f3a2,_0x26b258,_0x44c51a);function nr(_0x2c9a6d){const _0x19a65f=_0x5b7eaf,{unitID:_0x2f951e,mutations:_0x284ef0}=_0x2c9a6d;return{'unitId':_0x2f951e,'subUnitId':_0x284ef0[0x0][_0x19a65f(0x14c)][_0x19a65f(0x2d6)]};}let Qe=class{constructor(_0x1e7222,_0x36bd1d,_0x492aff){const _0x2cf6d0=_0x5b7eaf;this[_0x2cf6d0(0x27d)]=_0x1e7222,this[_0x2cf6d0(0x2ef)]=_0x36bd1d,this['_instanceService']=_0x492aff;}[_0x5b7eaf(0x231)](_0x22c887){const _0x4b8081=_0x5b7eaf;var _0x394156,_0x276631,_0x305997,_0x5a9c66,_0x44d5aa;const _0x4b5d27=this['_injector'][_0x4b8081(0x2dc)](_0x12a4eb),{unitId:_0x497da1,subUnitId:_0x5227f1}=nr(_0x22c887),_0x354ebe=_0x4b5d27[_0x4b8081(0x17c)](_0x497da1)[_0x4b8081(0x3e8)](),_0x5d5d68=(_0x276631=(_0x394156=this['_instanceService']['getUnit'](_0x497da1))==null?void 0x0:_0x394156[_0x4b8081(0xf6)]())==null?void 0x0:_0x276631['getSheetId']();if(_0x354ebe[_0x4b8081(0x143)]===0x0||!_0x497da1||!_0x5227f1)return;const _0x465923=[{'id':_0x228778['id'],'params':{'unitId':_0x497da1,'subUnitId':_0x5d5d68,'selections':_0x23d1c2[_0x4b8081(0xf0)](_0x354ebe)}}],_0x6f3f8c=this['_transformService']['transformMutationsWithChangeset'](_0x22c887,_0x465923);if(!_0x3d99d4(_0x6f3f8c))throw _0x6f3f8c[_0x4b8081(0x332)];const _0x40a6e4=(_0x44d5aa=(_0x5a9c66=(_0x305997=_0x6f3f8c['m2Prime'][0x0])==null?void 0x0:_0x305997[_0x4b8081(0x14c)])==null?void 0x0:_0x5a9c66['selections'])!=null?_0x44d5aa:_0x354ebe;Array[_0x4b8081(0x400)](_0x40a6e4)&&_0x40a6e4[_0x4b8081(0x143)]&&this[_0x4b8081(0x27d)][_0x4b8081(0x2dc)](_0x2521f5)[_0x4b8081(0x26d)](_0x228778['id'],{'unitId':_0x497da1,'subUnitId':_0x5227f1,'selections':_0x40a6e4});}};Qe=ir([lt(0x0,_0x2c1848(_0x1637c5)),lt(0x1,_0x364c40),lt(0x2,_0x52988f)],Qe);const it=_0x4c867e(_0x5b7eaf(0x3db));var $s=(_0x2790cd=>(_0x2790cd[_0x2790cd[_0x5b7eaf(0x252)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x2790cd[_0x2790cd[_0x5b7eaf(0x2ac)]=0x1]=_0x5b7eaf(0x2ac),_0x2790cd))($s||{});const os=0x7530,as=_0x5b7eaf(0x33d);class rr extends _0x61b58b{constructor(){const _0x193731=_0x5b7eaf;super(),l(this,_0x193731(0xf9),_0x23d1c2[_0x193731(0x23b)]()),l(this,_0x193731(0x29f),new Set()),l(this,'_unitOnClients',new Map()),l(this,_0x193731(0x11b),null),l(this,_0x193731(0x10e),new Map()),l(this,_0x193731(0x137),new Map()),this[_0x193731(0x1cb)]();}['dispose'](){const _0x1ed318=_0x5b7eaf;super[_0x1ed318(0xf8)](),this[_0x1ed318(0x10e)][_0x1ed318(0x215)]((_0x47b326,_0x1a85f4)=>this[_0x1ed318(0x195)](_0x1a85f4)),this['_heartbeatTimer']&&window[_0x1ed318(0x209)](this[_0x1ed318(0x11b)]);}[_0x5b7eaf(0x1d2)](_0x317720){const _0x381172=_0x5b7eaf;return this[_0x381172(0x3ce)](_0x317720)['pipe'](_0x2fe2dd());}[_0x5b7eaf(0x2d2)](_0x527907){const _0x344023=_0x5b7eaf;this[_0x344023(0x29f)]['size']===0x0&&this[_0x344023(0x141)](),this[_0x344023(0x29f)][_0x344023(0x277)](_0x527907),this[_0x344023(0x1ff)]({'type':0x0,'memberID':this[_0x344023(0xf9)],'unitIDs':[_0x527907],'isForwarded':!0x1});}['disposeUnit'](_0x423ffd){const _0x388fa8=_0x5b7eaf;this[_0x388fa8(0x29f)][_0x388fa8(0xce)](_0x423ffd),this[_0x388fa8(0x29f)]['size']===0x0&&this[_0x388fa8(0x11b)]&&window[_0x388fa8(0x209)](this['_heartbeatTimer']);}[_0x5b7eaf(0x1cb)](){const _0x347fbc=_0x5b7eaf;this[_0x347fbc(0x255)](_0xa7e5b7(_0x3a0781(window,_0x347fbc(0x20d))[_0x347fbc(0x113)](_0x490a67=>{const _0x578f94=_0x347fbc;if(_0x490a67[_0x578f94(0x367)]!==as||!_0x490a67[_0x578f94(0x11a)])return;const _0x4f186a=JSON['parse'](_0x490a67[_0x578f94(0x11a)]);this[_0x578f94(0x24b)](_0x4f186a);}))),window[_0x347fbc(0x257)](_0x347fbc(0x28b),()=>this[_0x347fbc(0x1ff)]({'type':0x1,'memberID':this[_0x347fbc(0xf9)],'unitIDs':Array[_0x347fbc(0xde)](this[_0x347fbc(0x29f)])}));}[_0x5b7eaf(0x24b)](_0x55bb80){const _0x52db18=_0x5b7eaf;switch(_0x55bb80[_0x52db18(0x21b)]){case 0x0:this['_handleJoinEvent'](_0x55bb80);break;case 0x1:this['_handleLeaveEvent'](_0x55bb80);break;case 0x2:this['_handleHeartbeatEvent'](_0x55bb80);break;}}[_0x5b7eaf(0x3a6)](_0x40de38){const _0x660bdc=_0x5b7eaf,{unitIDs:_0x5a0e6d,memberID:_0x2061e2,isForwarded:_0x4a9478}=_0x40de38;_0x5a0e6d[_0x660bdc(0x215)](_0x226a5f=>{const _0x497acc=_0x660bdc;if(!_0x4a9478&&this[_0x497acc(0x3e9)][_0x497acc(0x30c)](_0x226a5f)&&this[_0x497acc(0x3ce)](_0x226a5f)['next'](0x1),!this[_0x497acc(0x3e9)][_0x497acc(0x30c)](_0x226a5f)||!this[_0x497acc(0x3e9)][_0x497acc(0x2dc)](_0x226a5f)[_0x497acc(0x30c)](_0x2061e2)){const _0x4011d4=this[_0x497acc(0x3e9)][_0x497acc(0x2dc)](_0x226a5f)||new Set();_0x4011d4[_0x497acc(0x277)](_0x2061e2),this[_0x497acc(0x3e9)]['set'](_0x226a5f,_0x4011d4),this[_0x497acc(0x120)](_0x2061e2);}}),_0x4a9478||this[_0x660bdc(0x1ff)]({'type':0x0,'memberID':this[_0x660bdc(0xf9)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x5b7eaf(0x120)](_0x4a6a3e){const _0x3b716e=_0x5b7eaf;this[_0x3b716e(0x195)](_0x4a6a3e);const _0x523e0a=window[_0x3b716e(0x1fd)](()=>{const _0xe3d95a=_0x3b716e;this[_0xe3d95a(0x3e9)]['forEach'](_0x994086=>{const _0x4994c2=_0xe3d95a;_0x994086[_0x4994c2(0xce)](_0x4a6a3e);});},os*0x2);this[_0x3b716e(0x10e)]['set'](_0x4a6a3e,_0x523e0a);}[_0x5b7eaf(0x195)](_0x51d22a){const _0x1e5500=_0x5b7eaf;if(this['_clearOtherTimers'][_0x1e5500(0x30c)](_0x51d22a)){const _0x42539c=this['_clearOtherTimers']['get'](_0x51d22a);_0x42539c&&window[_0x1e5500(0x223)](_0x42539c),this[_0x1e5500(0x10e)][_0x1e5500(0x1ea)](_0x51d22a,null);}}['_handleLeaveEvent'](_0xbfa0a7){const _0x2c95c7=_0x5b7eaf,{memberID:_0x49f7cd,unitIDs:_0x1f1002}=_0xbfa0a7;_0x1f1002[_0x2c95c7(0x215)](_0xf362f1=>{const _0x2a6cc1=_0x2c95c7;var _0x47c770;const _0x4a78fa=this[_0x2a6cc1(0x3e9)][_0x2a6cc1(0x2dc)](_0xf362f1);_0x4a78fa&&(_0x4a78fa[_0x2a6cc1(0xce)](_0x49f7cd),(_0x47c770=this[_0x2a6cc1(0x3ce)](_0xf362f1))==null||_0x47c770[_0x2a6cc1(0x3ef)](_0x4a78fa[_0x2a6cc1(0x22e)]===0x0?0x0:0x1));}),this[_0x2c95c7(0x195)](_0x49f7cd);}[_0x5b7eaf(0x3ae)](_0x453a71){const _0x510cd7=_0x5b7eaf;this[_0x510cd7(0x120)](_0x453a71[_0x510cd7(0x171)]);}[_0x5b7eaf(0x1ff)](_0x11ff87){localStorage['setItem'](as,JSON['stringify'](_0x11ff87));}[_0x5b7eaf(0x141)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x448c98=_0x4581;this[_0x448c98(0x1ff)]({'type':0x2,'memberID':this['_id']});},os);}[_0x5b7eaf(0x3ce)](_0x41c3e4){const _0x596a6a=_0x5b7eaf;return this[_0x596a6a(0x137)][_0x596a6a(0x30c)](_0x41c3e4)||this[_0x596a6a(0x137)][_0x596a6a(0x1ea)](_0x41c3e4,new _0xdb5176(0x0)),this[_0x596a6a(0x137)][_0x596a6a(0x2dc)](_0x41c3e4);}}function js(_0xb05ba8){const _0x33c7ca=_0x5b7eaf;let _0x48b199='';for(const _0x272a09 of _0xb05ba8){const {startOffset:_0xb5054a,endOffset:_0x1b8d5f,isActive:_0x1542ff}=_0x272a09;_0x48b199[_0x33c7ca(0x143)]&&(_0x48b199+=','),_0x48b199+=_0xb5054a+':'+_0x1b8d5f+':'+(_0x1542ff?'1':'0');}return _0x48b199;}function or(_0x5eccb3){const _0x4df27f=_0x5b7eaf,_0x440723=_0x5eccb3[_0x4df27f(0x32e)](','),_0x5dff65=[];for(const _0xada807 of _0x440723){const [_0x5b52f0,_0x11853b,_0x45d67c]=_0xada807['split'](':');_0x5dff65[_0x4df27f(0x2cb)]({'startOffset':Number(_0x5b52f0),'endOffset':Number(_0x11853b),'collapsed':_0x5b52f0===_0x11853b,'isActive':_0x45d67c==='1'});}return _0x5dff65['some'](_0x2b4f60=>_0x2b4f60[_0x4df27f(0x1f6)])||(_0x5dff65[0x0]['isActive']=!0x0),_0x5dff65;}class Bt extends _0x33f191{constructor(){const _0x3b3180=_0x5b7eaf;super(...arguments),l(this,_0x3b3180(0x148),new _0xdb5176(null)),l(this,_0x3b3180(0x146),this[_0x3b3180(0x148)]['asObservable']());}[_0x5b7eaf(0x32f)](_0x27be3d){const _0x28ba29=_0x5b7eaf,{unitID:_0xb2cc1b,memberID:_0x3572e9,textRanges:_0x4812ab}=_0x27be3d,_0x295da7=js(_0x4812ab),_0x2a06ae={'unitID':_0xb2cc1b,'memberID':_0x3572e9,'selection':_0x295da7};this['_collabCursorState$'][_0x28ba29(0x3ef)](_0x2a06ae);}}var ar=Object[_0x5b7eaf(0x3b0)],cr=Object['getOwnPropertyDescriptor'],hr=(_0x29b02d,_0x45efb8,_0x623233,_0x3668b2)=>{const _0x52431b=_0x5b7eaf;for(var _0x38e5ed=_0x3668b2>0x1?void 0x0:_0x3668b2?cr(_0x45efb8,_0x623233):_0x45efb8,_0x1adcfa=_0x29b02d[_0x52431b(0x143)]-0x1,_0x237a8f;_0x1adcfa>=0x0;_0x1adcfa--)(_0x237a8f=_0x29b02d[_0x1adcfa])&&(_0x38e5ed=(_0x3668b2?_0x237a8f(_0x45efb8,_0x623233,_0x38e5ed):_0x237a8f(_0x38e5ed))||_0x38e5ed);return _0x3668b2&&_0x38e5ed&&ar(_0x45efb8,_0x623233,_0x38e5ed),_0x38e5ed;},cs=(_0x449348,_0x22721d)=>(_0x11a992,_0x2b2b44)=>_0x22721d(_0x11a992,_0x2b2b44,_0x449348);let et=class{constructor(_0x41c5fb,_0x4dc901){const _0x3097b9=_0x5b7eaf;this[_0x3097b9(0x27d)]=_0x41c5fb,this[_0x3097b9(0x2ef)]=_0x4dc901;}['transformSelections'](_0x3dc775){const _0x18ef8=_0x5b7eaf;var _0x47a19b;const _0x899e88=this[_0x18ef8(0x27d)]['get'](_0x2dea1c),_0x438911=(_0x47a19b=_0x899e88[_0x18ef8(0xb3)]())!=null?_0x47a19b:[];if(_0x438911[_0x18ef8(0x143)]===0x0)return;const _0x45dbae=[{'id':_0x18ef8(0x1b5),'params':{'unitId':_0x3dc775['unitID'],'actions':null,'textRanges':_0x438911}}],_0x3314d8=this[_0x18ef8(0x2ef)][_0x18ef8(0x17d)](_0x3dc775,_0x45dbae);if(!_0x3d99d4(_0x3314d8))throw _0x3314d8[_0x18ef8(0x332)];const _0x6ee287=_0x3314d8[_0x18ef8(0x246)][0x0][_0x18ef8(0x14c)]['textRanges'];Array[_0x18ef8(0x400)](_0x6ee287)&&_0x6ee287['length']&&_0x899e88['replaceTextRanges'](_0x6ee287,!0x1);}};et=hr([cs(0x0,_0x2c1848(_0x1637c5)),cs(0x1,_0x364c40)],et);const lr=new Set([_0x4d0013['id']]);function hs(_0xaf80a0,_0x500b42,_0x54ce01,_0x4d597c,_0x5080c4){const _0x55f28a=_0x5b7eaf;var _0x41dbc1,_0x346900,_0x5e9f9b,_0x42b1af;const _0xbc80ad=[];for(const _0x5b057c of _0xaf80a0)if(lr[_0x55f28a(0x30c)](_0x5b057c['id'])){if(_0xbc80ad[_0x55f28a(0x143)]>0x0)break;_0xbc80ad['push'](_0x5b057c);break;}else _0xbc80ad[_0x55f28a(0x2cb)](_0x5b057c);const _0x1c7ef8=(_0x346900=(_0x41dbc1=_0x5080c4[_0x55f28a(0x101)]())==null?void 0x0:_0x41dbc1[_0x55f28a(0x392)])!=null?_0x346900:_0x55f28a(0x278),_0x2855ce=(_0x42b1af=(_0x5e9f9b=_0x5080c4[_0x55f28a(0x101)]())==null?void 0x0:_0x5e9f9b[_0x55f28a(0x171)])!=null?_0x42b1af:_0x55f28a(0x278);return{'changeset':{'unitID':_0x500b42,'type':_0x301c06(_0x54ce01['getUnitType'](_0x500b42)),'baseRev':_0x4d597c['getCurrentRevOfUnit'](_0x500b42),'revision':0x0,'userID':_0x1c7ef8,'memberID':_0x2855ce,'mutations':_0xbc80ad},'pendingMutations':_0xaf80a0['slice'](_0xbc80ad[_0x55f28a(0x143)])};}function _r(_0x6c52e9,_0x19855d,_0x4a28c9,_0x6837dd,_0x21b564){const _0x2f6750=_0x5b7eaf;var _0x3b0e36,_0x4c72f7,_0x24b5b7,_0xf97d38;const _0x367c95=[_0x6c52e9[_0x2f6750(0xcc)]((_0x31c9e7,_0x3c3343)=>{const _0x46548b=_0x2f6750;var _0x592df9;const {id:_0x388025}=_0x31c9e7,{id:_0x482e32,type:_0xf2cd2a}=_0x3c3343,_0x156d84=(_0x592df9=_0x31c9e7[_0x46548b(0x14c)])!=null?_0x592df9:{'actions':null},_0x59be1f=_0x3c3343['params'];if(_0x388025&&_0x388025!==_0x482e32)throw new Error(_0x46548b(0x23c)+_0x388025+_0x46548b(0x20e)+_0x482e32+'.');return{..._0x31c9e7,'id':_0x482e32,'type':_0xf2cd2a,'params':{'unitId':_0x59be1f['unitId'],'textRanges':_0x59be1f['textRanges'],'actions':_0x1973d8[_0x46548b(0x316)](_0x156d84[_0x46548b(0x2bb)],_0x59be1f[_0x46548b(0x2bb)])}};},{})],_0x1651cf=(_0x4c72f7=(_0x3b0e36=_0x21b564[_0x2f6750(0x101)]())==null?void 0x0:_0x3b0e36['userID'])!=null?_0x4c72f7:_0x2f6750(0x278),_0xacf020=(_0xf97d38=(_0x24b5b7=_0x21b564['getCurrentUser']())==null?void 0x0:_0x24b5b7[_0x2f6750(0x171)])!=null?_0xf97d38:_0x2f6750(0x278);return{'changeset':{'unitID':_0x19855d,'type':_0x301c06(_0x4a28c9[_0x2f6750(0xe6)](_0x19855d)),'baseRev':_0x6837dd[_0x2f6750(0x385)](_0x19855d),'revision':0x0,'userID':_0x1651cf,'memberID':_0xacf020,'mutations':_0x367c95},'pendingMutations':[]};}const ur={'id':_0x2db5c8['id'],'type':_0xb6689e[_0x5b7eaf(0xd3)],'params':{}};function _0x4581(_0x563609,_0x538068){const _0x5d0432=_0x5d04();return _0x4581=function(_0x45813a,_0xf2134e){_0x45813a=_0x45813a-0x99;let _0x4c8809=_0x5d0432[_0x45813a];return _0x4c8809;},_0x4581(_0x563609,_0x538068);}var dr=Object[_0x5b7eaf(0x3b0)],fr=Object[_0x5b7eaf(0x25b)],he=(_0x44b874,_0x55ca6b,_0x5589fd,_0x5ca405)=>{const _0xb373a1=_0x5b7eaf;for(var _0x1fc14c=_0x5ca405>0x1?void 0x0:_0x5ca405?fr(_0x55ca6b,_0x5589fd):_0x55ca6b,_0x1dfdf3=_0x44b874[_0xb373a1(0x143)]-0x1,_0x21d22d;_0x1dfdf3>=0x0;_0x1dfdf3--)(_0x21d22d=_0x44b874[_0x1dfdf3])&&(_0x1fc14c=(_0x5ca405?_0x21d22d(_0x55ca6b,_0x5589fd,_0x1fc14c):_0x21d22d(_0x1fc14c))||_0x1fc14c);return _0x5ca405&&_0x1fc14c&&dr(_0x55ca6b,_0x5589fd,_0x1fc14c),_0x1fc14c;},m=(_0x33962b,_0x377094)=>(_0x137ab6,_0x5b6237)=>_0x377094(_0x137ab6,_0x5b6237,_0x33962b),w=(_0x263b83=>(_0x263b83[_0x5b7eaf(0x3a8)]=_0x5b7eaf(0x136),_0x263b83[_0x5b7eaf(0x16d)]=_0x5b7eaf(0x33c),_0x263b83[_0x5b7eaf(0x15f)]=_0x5b7eaf(0xa2),_0x263b83[_0x5b7eaf(0x2ee)]='awaiting',_0x263b83[_0x5b7eaf(0x176)]=_0x5b7eaf(0x31b),_0x263b83[_0x5b7eaf(0x226)]=_0x5b7eaf(0xf7),_0x263b83['CONFLICT']=_0x5b7eaf(0x14e),_0x263b83[_0x5b7eaf(0x184)]=_0x5b7eaf(0x1b9),_0x263b83))(w||{});class le{constructor(_0x41143d,_0x3cfa66,_0x15f449,_0x547170,_0x3a8b18,_0x5a9f00,_0x45e965,_0x16a8ae,_0xcb19b8){const _0x50ff9e=_0x5b7eaf;l(this,_0x50ff9e(0x1c6),null),l(this,_0x50ff9e(0x15b),[]),(this[_0x50ff9e(0x2e3)]=_0x41143d,this[_0x50ff9e(0x21b)]=_0x3cfa66,this[_0x50ff9e(0x3fd)]=_0x3a8b18,this[_0x50ff9e(0x204)]=_0x5a9f00,this[_0x50ff9e(0xb5)]=_0x45e965,this[_0x50ff9e(0x300)]=_0x16a8ae,this[_0x50ff9e(0x291)]=_0xcb19b8,this[_0x50ff9e(0x1c6)]=_0x15f449,this['_pendingMutations']=_0x547170);}[_0x5b7eaf(0x221)](_0x531be8){const _0x2cf66c=_0x5b7eaf,_0x58ffb8=this['_revisionService']['getCurrentRevOfUnit'](this[_0x2cf66c(0x2e3)]);return _0x531be8[_0x2cf66c(0x3f2)]>_0x58ffb8+0x1?(this[_0x2cf66c(0x3fd)][_0x2cf66c(0x3a1)]({'from':_0x58ffb8,'to':_0x531be8[_0x2cf66c(0x3f2)]-0x1}),!0x0):!0x1;}[_0x5b7eaf(0x3c7)](_0x54004a){this['_undoRedoService']['transformUndoRedo'](this['unitID'],_0x54004a);}[_0x5b7eaf(0xae)](_0x410302){const _0x176ec5=_0x5b7eaf;var _0x4a6c46,_0x4885b3;(_0x4885b3=(_0x4a6c46=this['_handler'])[_0x176ec5(0x356)])==null||_0x4885b3[_0x176ec5(0x140)](_0x4a6c46,_0x410302);}[_0x5b7eaf(0x203)](_0x4fec47){const _0x14ef10=_0x5b7eaf;var _0x218f1d,_0x14bea9;return(_0x14bea9=(_0x218f1d=this[_0x14ef10(0x3fd)])[_0x14ef10(0x9d)])==null?void 0x0:_0x14bea9[_0x14ef10(0x140)](_0x218f1d,_0x4fec47);}['_transformRemoteChangesetByIMECache'](_0x215691){const _0x1d6d70=_0x5b7eaf;var _0x3696a1,_0x1f10d2,_0x245108;return(_0x245108=(_0x1f10d2=(_0x3696a1=this[_0x1d6d70(0x3fd)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x1f10d2[_0x1d6d70(0x140)](_0x3696a1,_0x215691))!=null?_0x245108:_0x215691;}['_syncEditingCollabCursor'](_0x1ce666){const _0x5915d8=_0x5b7eaf;var _0x44aab4,_0x27c724;if(this[_0x5915d8(0x21b)]===x[_0x5915d8(0x3ac)]){const {unitID:_0x3f2d37,mutations:_0x561da2,memberID:_0x2671dd}=_0x1ce666,_0x5439d8=_0x561da2[0x0]['params']['textRanges'];Array[_0x5915d8(0x400)](_0x5439d8)&&_0x5439d8['length']>0x0&&((_0x27c724=(_0x44aab4=this[_0x5915d8(0x3fd)])[_0x5915d8(0x38b)])==null||_0x27c724[_0x5915d8(0x140)](_0x44aab4,{'unitID':_0x3f2d37,'memberID':_0x2671dd,'textRanges':_0x5439d8}));}}[_0x5b7eaf(0x126)](){const _0x4f478e=_0x5b7eaf;this[_0x4f478e(0x291)][_0x4f478e(0x272)](this[_0x4f478e(0x2e3)],this[_0x4f478e(0x21b)],this['_awaitingChangeset'],this[_0x4f478e(0x15b)]);}[_0x5b7eaf(0x364)](){const _0x31e7ec=_0x5b7eaf;return this[_0x31e7ec(0x300)][_0x31e7ec(0x385)](this[_0x31e7ec(0x2e3)]);}[_0x5b7eaf(0x2f7)](){const _0x5cad83=_0x5b7eaf;this[_0x5cad83(0x300)][_0x5cad83(0x2b9)](this['unitID']);}['_executeRemoteChangeset'](_0x8f303a){const _0x2c331c=_0x5b7eaf;var _0x4ccee5;const _0x225013=this['_transformRemoteChangesetByIMECache'](_0x8f303a),_0x2d6cde=_0x170714(_0x225013['mutations'],this[_0x2c331c(0x204)],{'fromCollab':!0x0});if(!_0x2d6cde[_0x2c331c(0x2e6)])throw _0x2d6cde[_0x2c331c(0x332)]instanceof Error?_0x2d6cde['error']:new Error((_0x4ccee5=_0x2d6cde[_0x2c331c(0x332)])!=null?_0x4ccee5:_0x2c331c(0x37e));this[_0x2c331c(0x203)](_0x225013),this['_transformUndoredo'](_0x8f303a),this['_transformSelections'](_0x225013),this[_0x2c331c(0xaf)](_0x225013),this[_0x2c331c(0x2f7)]();}}let Se=class extends le{constructor(_0x2b77cf,_0x5653bb,_0x20639d,_0x4eff36,_0x32ef03,_0x9b5176,_0x39a2fd,_0x95d46c,_0x40eb58,_0x5e019a){const _0x1428ef=_0x5b7eaf;super(_0x2b77cf,_0x5653bb,null,[],_0x20639d,_0x95d46c,_0x39a2fd,_0x4eff36,_0x32ef03),l(this,'status',_0x1428ef(0x33c)),(this[_0x1428ef(0x27d)]=_0x9b5176,this[_0x1428ef(0x134)]=_0x40eb58,this['_transformService']=_0x5e019a);}['appendMutation'](_0x41a822){const _0x177ea6=_0x5b7eaf,_0x47ab33=this[_0x177ea6(0x27d)][_0x177ea6(0x18a)](Y,this[_0x177ea6(0x2e3)],this['type'],[_0x41a822],this[_0x177ea6(0x3fd)]);return _0x47ab33['_schedule'](),_0x47ab33[_0x177ea6(0x126)](),_0x47ab33;}[_0x5b7eaf(0x107)](_0x4e6f87){const _0x98e312=_0x5b7eaf;if(this[_0x98e312(0x221)](_0x4e6f87))return this[_0x98e312(0x27d)]['createInstance'](H,this[_0x98e312(0x2e3)],this[_0x98e312(0x21b)],null,[],null,[_0x4e6f87],this[_0x98e312(0x3fd)]);try{const _0x359724=this[_0x98e312(0x2ef)][_0x98e312(0x17d)](_0x4e6f87,[ur]);if(_0x3d99d4(_0x359724)){const {c1Prime:_0xc7dea}=_0x359724;return this[_0x98e312(0x3aa)](_0xc7dea),this;}throw _0x359724[_0x98e312(0x332)];}catch(_0xfc3ade){return this[_0x98e312(0x134)][_0x98e312(0x332)](_0xfc3ade),this[_0x98e312(0x324)](!0x1);}}[_0x5b7eaf(0x324)](_0xcc6479){const _0x28b69f=_0x5b7eaf;return this[_0x28b69f(0x27d)][_0x28b69f(0x18a)](Q,this['unitID'],this[_0x28b69f(0x21b)],null,[],this[_0x28b69f(0x3fd)],_0xcc6479);}[_0x5b7eaf(0x27f)](){const _0x3cd26b=_0x5b7eaf;throw new Error(_0x3cd26b(0x30f));}[_0x5b7eaf(0x1ec)](){const _0x1b2c1f=_0x5b7eaf;throw new Error(_0x1b2c1f(0x115));}[_0x5b7eaf(0x331)](){const _0x111de9=_0x5b7eaf;return this[_0x111de9(0x27d)][_0x111de9(0x18a)](ee,this[_0x111de9(0x2e3)],this[_0x111de9(0x21b)],null,[],this['_handler']);}[_0x5b7eaf(0x1df)](){return this;}['resend'](){const _0x1f3525=_0x5b7eaf;throw new Error(_0x1f3525(0x1fa));}[_0x5b7eaf(0x229)](){const _0x47c981=_0x5b7eaf,_0x468eb0=this[_0x47c981(0x300)][_0x47c981(0x385)](this['unitID']);return this[_0x47c981(0x3fd)]['onMissingChangesets']({'from':_0x468eb0,'to':0x0}),this[_0x47c981(0x27d)][_0x47c981(0x18a)](H,this['unitID'],this[_0x47c981(0x21b)],null,[],null,[],this[_0x47c981(0x3fd)]);}};Se=he([m(0x3,_0x2c1848(_0xe33365)),m(0x4,_0x2c1848(D)),m(0x5,_0x2c1848(_0x1637c5)),m(0x6,_0x948466),m(0x7,_0x2521f5),m(0x8,_0x4cc166),m(0x9,_0x364c40)],Se);let Y=class extends le{constructor(_0x13fbf5,_0xdc1313,_0x7a4f8f,_0x377b91,_0x4e626e,_0x38966f,_0x51cd66,_0x1b3869,_0x56a12c,_0x38dcb1,_0x4a2f37,_0x234a27,_0x11f2c3,_0x16d4cd){const _0xf868b5=_0x5b7eaf;super(_0x13fbf5,_0xdc1313,null,_0x7a4f8f,_0x377b91,_0x38dcb1,_0x16d4cd,_0x38966f,_0x51cd66),l(this,_0xf868b5(0x2d4),_0xf868b5(0xa2)),l(this,_0xf868b5(0x250),null),l(this,_0xf868b5(0x3ee),null),(this[_0xf868b5(0x27d)]=_0x4e626e,this[_0xf868b5(0x361)]=_0x1b3869,this['_logService']=_0x56a12c,this['_configService']=_0x4a2f37,this['_transformService']=_0x234a27,this[_0xf868b5(0xba)]=_0x11f2c3);}['appendMutation'](_0x5828b7){const _0x3db593=_0x5b7eaf;return this[_0x3db593(0x15b)][_0x3db593(0x2cb)](_0x5828b7),this[_0x3db593(0x126)](),this;}[_0x5b7eaf(0x107)](_0x4202fd){const _0xc4e825=_0x5b7eaf;if(this[_0xc4e825(0x221)](_0x4202fd))return this[_0xc4e825(0x2f5)](),this['_injector'][_0xc4e825(0x18a)](H,this[_0xc4e825(0x2e3)],this[_0xc4e825(0x21b)],null,this['_pendingMutations'],null,[_0x4202fd],this[_0xc4e825(0x3fd)]);try{const _0x3b1c66=this[_0xc4e825(0x2ef)][_0xc4e825(0x17d)](_0x4202fd,this[_0xc4e825(0x15b)]);if(_0x3d99d4(_0x3b1c66)){const {c1Prime:_0x221962,m2Prime:_0x5ec3ae}=_0x3b1c66;this[_0xc4e825(0x3aa)](_0x221962);const _0x2210be=this[_0xc4e825(0x27d)][_0xc4e825(0x18a)](Y,this[_0xc4e825(0x2e3)],this[_0xc4e825(0x21b)],_0x5ec3ae,this[_0xc4e825(0x3fd)]);return this[_0xc4e825(0x2f5)](),_0x2210be[_0xc4e825(0x3e2)](this[_0xc4e825(0x250)]?Math[_0xc4e825(0x36e)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0xc4e825(0x167)]()),_0x2210be;}throw _0x3b1c66['error'];}catch(_0x141c1f){return this[_0xc4e825(0x134)]['error'](_0x141c1f),this[_0xc4e825(0x324)](!0x1);}}[_0x5b7eaf(0x27f)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5b7eaf(0x1ec)](){const _0x5b82d0=_0x5b7eaf;throw new Error(_0x5b82d0(0x13f));}[_0x5b7eaf(0x331)](){const _0x47b6fa=_0x5b7eaf;return this['_clearScheduledTask'](),this[_0x47b6fa(0x27d)][_0x47b6fa(0x18a)](ee,this[_0x47b6fa(0x2e3)],this['type'],null,this[_0x47b6fa(0x15b)],this[_0x47b6fa(0x3fd)]);}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x3e2)](_0x280a5f){const _0x2c6104=_0x5b7eaf,_0x5ac35c=_0x280a5f!=null?_0x280a5f:this[_0x2c6104(0x167)]();this[_0x2c6104(0x250)]=new Date()['getTime'](),this[_0x2c6104(0x3ee)]=window[_0x2c6104(0x1fd)](()=>{const _0xac7e6a=_0x2c6104;this[_0xac7e6a(0x2f5)]();let _0x48a6db=null;switch(this[_0xac7e6a(0x21b)]){case x[_0xac7e6a(0x18f)]:{_0x48a6db=hs(this[_0xac7e6a(0x15b)],this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0xba)],this[_0xac7e6a(0x300)],this[_0xac7e6a(0x361)]);break;}case x['UNIVER_DOC']:{this[_0xac7e6a(0x15b)][_0xac7e6a(0x3d5)](_0x436efd=>_0x436efd['id']===_0x193233['id'])?_0x48a6db=_r(this[_0xac7e6a(0x15b)],this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0xba)],this[_0xac7e6a(0x300)],this[_0xac7e6a(0x361)]):_0x48a6db=hs(this['_pendingMutations'],this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0xba)],this[_0xac7e6a(0x300)],this[_0xac7e6a(0x361)]);break;}default:throw new Error(_0xac7e6a(0x3e7)+this['type']+_0xac7e6a(0x326));}const {changeset:_0x8de0ee,pendingMutations:_0x518ee8}=_0x48a6db;this[_0xac7e6a(0x3fd)]['onSendChangeset'](_0x8de0ee);const _0xc2d780=_0x518ee8[_0xac7e6a(0x143)]?this['_injector'][_0xac7e6a(0x18a)](K,this[_0xac7e6a(0x2e3)],this[_0xac7e6a(0x21b)],_0x8de0ee,_0x518ee8,this[_0xac7e6a(0x3fd)]):this['_injector'][_0xac7e6a(0x18a)](Z,this[_0xac7e6a(0x2e3)],this['type'],_0x8de0ee,this['_handler']);_0xc2d780[_0xac7e6a(0x126)](),this[_0xac7e6a(0x3fd)][_0xac7e6a(0x2fa)](this,_0xc2d780);},_0x5ac35c);}[_0x5b7eaf(0x167)](){const _0x5d61dd=_0x5b7eaf;var _0x2e56c9;return(_0x2e56c9=this[_0x5d61dd(0x110)][_0x5d61dd(0x39b)](mn))!=null?_0x2e56c9:gn;}[_0x5b7eaf(0x2e2)](){const _0x2bc40e=_0x5b7eaf;throw new Error(_0x2bc40e(0x317));}[_0x5b7eaf(0x2f5)](){const _0x19c619=_0x5b7eaf;this[_0x19c619(0x3ee)]!=null&&(clearTimeout(this[_0x19c619(0x3ee)]),this[_0x19c619(0x3ee)]=null);}[_0x5b7eaf(0x324)](_0x312ff4){const _0x1e5259=_0x5b7eaf;return this[_0x1e5259(0x2f5)](),this['_injector'][_0x1e5259(0x18a)](Q,this[_0x1e5259(0x2e3)],this[_0x1e5259(0x21b)],null,this[_0x1e5259(0x15b)],this[_0x1e5259(0x3fd)],_0x312ff4);}};Y=he([m(0x4,_0x2c1848(_0x1637c5)),m(0x5,_0x2c1848(_0xe33365)),m(0x6,_0x2c1848(D)),m(0x7,_0x2c1848(oe)),m(0x8,_0x4cc166),m(0x9,_0x2521f5),m(0xa,_0x5debaa),m(0xb,_0x364c40),m(0xc,_0x52988f),m(0xd,_0x948466)],Y);let Z=class extends le{constructor(_0x35b091,_0x106a79,_0xccc42d,_0x5511a9,_0x3a9b2b,_0x433e4a,_0x5914ee,_0x5ada04,_0x528385,_0x2c1b41,_0x4432e7){const _0x41d0a4=_0x5b7eaf;super(_0x35b091,_0x106a79,_0xccc42d,[],_0x5511a9,_0x5ada04,_0x4432e7,_0x433e4a,_0x5914ee),l(this,_0x41d0a4(0x2d4),_0x41d0a4(0x13c)),(this[_0x41d0a4(0x27d)]=_0x3a9b2b,this['_logService']=_0x528385,this[_0x41d0a4(0x2ef)]=_0x2c1b41);}[_0x5b7eaf(0x2de)](_0x48023f){const _0x4f9df2=_0x5b7eaf,_0xf37691=this[_0x4f9df2(0x27d)]['createInstance'](K,this['unitID'],this[_0x4f9df2(0x21b)],this[_0x4f9df2(0x1c6)],[_0x48023f],this[_0x4f9df2(0x3fd)]);return _0xf37691['_updateLocalCache'](),_0xf37691;}[_0x5b7eaf(0x107)](_0x36e4cf){const _0xd7f730=_0x5b7eaf;if(this['_checkMissing'](_0x36e4cf))return this[_0xd7f730(0x27d)]['createInstance'](H,this[_0xd7f730(0x2e3)],this[_0xd7f730(0x21b)],this[_0xd7f730(0x1c6)],[],null,[_0x36e4cf],this[_0xd7f730(0x3fd)]);try{const _0x13d331=this[_0xd7f730(0x2ef)][_0xd7f730(0x153)]([_0x36e4cf],[this[_0xd7f730(0x1c6)]],!0x1);if(_0x1d473e(_0x13d331)){const {c1Prime:_0x44de5a,c2Prime:_0x4fc010}=_0x13d331;this[_0xd7f730(0x3aa)](_0x44de5a[0x0]),_0x4fc010[0x0][_0xd7f730(0x1db)]=this[_0xd7f730(0x364)]();const _0x3a7209=this[_0xd7f730(0x27d)][_0xd7f730(0x18a)](Z,this[_0xd7f730(0x2e3)],this['type'],_0x4fc010[0x0],this[_0xd7f730(0x3fd)]);return _0x3a7209['_updateLocalCache'](),_0x3a7209;}return this['_onConflict'](!0x1);}catch(_0x411135){return this[_0xd7f730(0x134)][_0xd7f730(0x332)](_0x411135),this[_0xd7f730(0x324)](!0x1);}}['onRemoteAck'](_0x236965){const _0x18f298=_0x5b7eaf,_0xa98daa=this[_0x18f298(0x300)][_0x18f298(0x385)](this[_0x18f298(0x2e3)]);if(_0x236965[_0x18f298(0x3f2)]<_0xa98daa-0x1)return this;if(this['_checkMissing'](_0x236965))return this[_0x18f298(0x27d)][_0x18f298(0x18a)](H,this[_0x18f298(0x2e3)],this[_0x18f298(0x21b)],null,[],this[_0x18f298(0x1c6)],[],this[_0x18f298(0x3fd)]);this[_0x18f298(0x2f7)]();const _0x3703ea=this['_injector']['createInstance'](Se,this['unitID'],this['type'],this[_0x18f298(0x3fd)]);return _0x3703ea[_0x18f298(0x126)](),_0x3703ea;}[_0x5b7eaf(0x1ec)](_0xac0b7b){const _0x16839e=_0x5b7eaf;return this[_0x16839e(0x324)](!!(_0xac0b7b!=null&&_0xac0b7b[_0x16839e(0x1f3)]));}[_0x5b7eaf(0x331)](){const _0x2a27f7=_0x5b7eaf;return this['_injector'][_0x2a27f7(0x18a)](ee,this[_0x2a27f7(0x2e3)],this[_0x2a27f7(0x21b)],this['_awaitingChangeset'],[],this['_handler']);}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x2e2)](){const _0x53177b=_0x5b7eaf;this[_0x53177b(0x3fd)][_0x53177b(0x333)](this[_0x53177b(0x1c6)]);}['_onConflict'](_0x32eb98){const _0x1b4435=_0x5b7eaf;return this[_0x1b4435(0x27d)][_0x1b4435(0x18a)](Q,this[_0x1b4435(0x2e3)],this[_0x1b4435(0x21b)],this[_0x1b4435(0x1c6)],[],this[_0x1b4435(0x3fd)],_0x32eb98);}};Z=he([m(0x4,_0x2c1848(_0x1637c5)),m(0x5,_0x2c1848(_0xe33365)),m(0x6,_0x2c1848(D)),m(0x7,_0x2521f5),m(0x8,_0x4cc166),m(0x9,_0x364c40),m(0xa,_0x948466)],Z);let K=class extends le{constructor(_0x3bf188,_0x43021f,_0x32c4f0,_0x3c5bc8,_0x43a799,_0x27f679,_0x4b123d,_0x43a1be,_0x3b407b,_0x53d149,_0x27b0b4,_0x64d5db){const _0x1652a7=_0x5b7eaf;super(_0x3bf188,_0x43021f,_0x32c4f0,_0x3c5bc8,_0x43a799,_0x3b407b,_0x64d5db,_0x4b123d,_0x43a1be),l(this,_0x1652a7(0x2d4),'awaiting_with_pending'),(this['_injector']=_0x27f679,this[_0x1652a7(0x134)]=_0x53d149,this['_transformService']=_0x27b0b4);}[_0x5b7eaf(0x2de)](_0x5cda2f){const _0x452c82=_0x5b7eaf;return this['_pendingMutations'][_0x452c82(0x2cb)](_0x5cda2f),this;}[_0x5b7eaf(0x107)](_0x1031a2){const _0x42f3ad=_0x5b7eaf;if(this['_checkMissing'](_0x1031a2))return this[_0x42f3ad(0x27d)][_0x42f3ad(0x18a)](H,this['unitID'],this[_0x42f3ad(0x21b)],this[_0x42f3ad(0x1c6)],this['_pendingMutations'],null,[_0x1031a2],this[_0x42f3ad(0x3fd)]);try{const _0x18c4e9=this[_0x42f3ad(0x2ef)][_0x42f3ad(0x153)]([_0x1031a2],[this[_0x42f3ad(0x1c6)]],!0x1);if(_0x1d473e(_0x18c4e9)){const {c1Prime:_0x99b440,c2Prime:_0x4139cd}=_0x18c4e9,_0x18dabc=this[_0x42f3ad(0x2ef)][_0x42f3ad(0x17d)](_0x99b440[0x0],this[_0x42f3ad(0x15b)]);if(_0x3d99d4(_0x18dabc)){const {c1Prime:_0x285e28,m2Prime:_0xa09e10}=_0x18dabc;return this[_0x42f3ad(0x3aa)](_0x285e28),_0x4139cd[0x0][_0x42f3ad(0x1db)]=this[_0x42f3ad(0x364)](),this[_0x42f3ad(0x27d)][_0x42f3ad(0x18a)](K,this[_0x42f3ad(0x2e3)],this[_0x42f3ad(0x21b)],_0x4139cd[0x0],_0xa09e10,this[_0x42f3ad(0x3fd)]);}throw _0x18dabc[_0x42f3ad(0x332)];}throw _0x18c4e9['error'];}catch(_0x4e09b0){return this['_logService'][_0x42f3ad(0x332)](_0x4e09b0),this[_0x42f3ad(0x324)](!0x1);}}['onRemoteAck'](_0x20b832){const _0x2864af=_0x5b7eaf;if(this['_checkMissing'](_0x20b832))return this['_injector'][_0x2864af(0x18a)](H,this[_0x2864af(0x2e3)],this[_0x2864af(0x21b)],null,this[_0x2864af(0x15b)],this[_0x2864af(0x1c6)],[],this['_handler']);this[_0x2864af(0x2f7)]();const _0x172190=this[_0x2864af(0x27d)][_0x2864af(0x18a)](Y,this['unitID'],this[_0x2864af(0x21b)],this[_0x2864af(0x15b)],this[_0x2864af(0x3fd)]);return _0x172190[_0x2864af(0x3e2)](),_0x172190[_0x2864af(0x126)](),_0x172190;}[_0x5b7eaf(0x1ec)](_0x15932a){const _0x579be8=_0x5b7eaf;return this['_onConflict'](!!(_0x15932a!=null&&_0x15932a[_0x579be8(0x1f3)]));}[_0x5b7eaf(0x331)](){const _0x1bdd6a=_0x5b7eaf;return this['_injector'][_0x1bdd6a(0x18a)](ee,this['unitID'],this[_0x1bdd6a(0x21b)],this[_0x1bdd6a(0x1c6)],this[_0x1bdd6a(0x15b)],this[_0x1bdd6a(0x3fd)]);}['toggleOnline'](){return this;}[_0x5b7eaf(0x2e2)](){const _0x47bc28=_0x5b7eaf;this[_0x47bc28(0x3fd)][_0x47bc28(0x333)](this[_0x47bc28(0x1c6)]);}[_0x5b7eaf(0x324)](_0x5a7059){const _0x54e9e4=_0x5b7eaf;return this['_injector']['createInstance'](Q,this['unitID'],this[_0x54e9e4(0x21b)],null,this['_pendingMutations'],this['_handler'],_0x5a7059);}};K=he([m(0x5,_0x2c1848(_0x1637c5)),m(0x6,_0x2c1848(_0xe33365)),m(0x7,_0x2c1848(D)),m(0x8,_0x2521f5),m(0x9,_0x4cc166),m(0xa,_0x364c40),m(0xb,_0x948466)],K);let Q=class extends le{constructor(_0x3803f2,_0x52c3d9,_0x455eb1,_0x2b9fbc,_0x374d5f,_0x1e8661=!0x1,_0x55a9e9,_0x5387e1,_0x5c4832,_0x9a5a09,_0x5c107d,_0x5185ce,_0x593717){const _0x53b55b=_0x5b7eaf;super(_0x3803f2,_0x52c3d9,_0x455eb1,_0x2b9fbc,_0x374d5f,_0x5387e1,_0x5c4832,_0x5c107d,_0x9a5a09),l(this,'status',_0x53b55b(0x14e)),(this[_0x53b55b(0xeb)]=_0x1e8661,this[_0x53b55b(0x2f2)]=_0x55a9e9,this[_0x53b55b(0x30e)]=_0x5185ce,this['_notificationService']=_0x593717,this[_0x53b55b(0x190)](),this[_0x53b55b(0xd9)](),this['_disableEditing']());}[_0x5b7eaf(0x2de)](){return this;}[_0x5b7eaf(0x107)](){return this;}[_0x5b7eaf(0x27f)](){return this;}[_0x5b7eaf(0x1ec)](){return this;}[_0x5b7eaf(0x331)](){return this;}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x2e2)](){const _0x20c806=_0x5b7eaf;throw new Error(_0x20c806(0x263));}['_clearLocalCache'](){const _0x4760f8=_0x5b7eaf;this[_0x4760f8(0x291)][_0x4760f8(0x272)](this[_0x4760f8(0x2e3)],this[_0x4760f8(0x21b)],null,[]);}[_0x5b7eaf(0x190)](){const _0x61fde4=_0x5b7eaf;this[_0x61fde4(0xeb)]?this[_0x61fde4(0x3c0)][_0x61fde4(0x2d3)]({'title':this[_0x61fde4(0x30e)]['t'](_0x61fde4(0x294)),'content':this['_localeService']['t']('permission.content'),'type':_0x61fde4(0x332),'duration':0x0}):this[_0x61fde4(0x3c0)][_0x61fde4(0x2d3)]({'title':this['_localeService']['t'](_0x61fde4(0x201)),'content':this['_localeService']['t']('conflict.content'),'type':'error','duration':0x0});}[_0x5b7eaf(0x13a)](){const _0x3495fa=_0x5b7eaf;this[_0x3495fa(0x2f2)][_0x3495fa(0x334)](new _0x53288a(this['unitID'])['id'],!0x1);}};Q=he([m(0x6,_0x2c1848(_0x133542)),m(0x7,_0x2521f5),m(0x8,_0x948466),m(0x9,_0x2c1848(D)),m(0xa,_0x2c1848(_0xe33365)),m(0xb,_0x2c1848(_0x1e7bf5)),m(0xc,_0x233335)],Q);let ee=class extends le{constructor(_0x2f8c3d,_0x5df491,_0x2745d2,_0x2a1f7f,_0x594803,_0x306081,_0x5445cb,_0x3a0ae6,_0x54e1ed,_0x3a5247){const _0x16c21e=_0x5b7eaf;super(_0x2f8c3d,_0x5df491,_0x2745d2,_0x2a1f7f,_0x594803,_0x54e1ed,_0x3a5247,_0x5445cb,_0x3a0ae6),l(this,_0x16c21e(0x2d4),'offline'),this[_0x16c21e(0x27d)]=_0x306081;}[_0x5b7eaf(0x2de)](_0x2fceb3){const _0x3f28ab=_0x5b7eaf;return this[_0x3f28ab(0x15b)]['push'](_0x2fceb3),this[_0x3f28ab(0x126)](),this;}[_0x5b7eaf(0x107)](_0x1417cb){const _0x3b6e03=_0x5b7eaf;throw new Error(_0x3b6e03(0x112));}[_0x5b7eaf(0x27f)](){const _0x3a40b1=_0x5b7eaf;throw new Error(_0x3a40b1(0x32d));}[_0x5b7eaf(0x1ec)](){const _0x323c4e=_0x5b7eaf;throw new Error(_0x323c4e(0x2ec));}[_0x5b7eaf(0x331)](){return this;}[_0x5b7eaf(0x1df)](){const _0x276e40=_0x5b7eaf,{_injector:_0x218d40,_pendingMutations:_0x22b183,_awaitingChangeset:_0x2e9df8,unitID:_0x2f2594,_handler:_0x12ebca,type:_0x2d2291}=this,_0x4576fa=xs(_0x218d40,_0x2f2594,_0x2d2291,_0x2e9df8,_0x22b183,_0x12ebca);return _0x4576fa instanceof Y?_0x4576fa[_0x276e40(0x3e2)]():(_0x4576fa instanceof K||_0x4576fa instanceof Z)&&_0x4576fa[_0x276e40(0x2e2)](),_0x4576fa;}[_0x5b7eaf(0x2e2)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};ee=he([m(0x5,_0x2c1848(_0x1637c5)),m(0x6,_0x2c1848(_0xe33365)),m(0x7,_0x2c1848(D)),m(0x8,_0x2521f5),m(0x9,_0x948466)],ee);let H=class extends le{constructor(_0x46c21f,_0x308a59,_0x156527,_0x5e4a08,_0x347c76,_0x43862a,_0x216ee1,_0x567a23,_0x28db53,_0x3f09e8,_0x5754ec,_0x298b3a,_0x39c97b,_0x3fc25e){const _0x274b18=_0x5b7eaf;super(_0x46c21f,_0x308a59,_0x156527,_0x5e4a08,_0x216ee1,_0x298b3a,_0x39c97b,_0x28db53,_0x3f09e8),l(this,'status','fetch_missing'),(this['_acknowledgedAwaitingChangeset']=_0x347c76,this[_0x274b18(0x2ca)]=_0x43862a,this['_injector']=_0x567a23,this[_0x274b18(0x134)]=_0x5754ec,this[_0x274b18(0x2ef)]=_0x3fc25e);}[_0x5b7eaf(0x39f)](_0x4c50ad){const _0x348cc0=_0x5b7eaf;try{const _0x62700b=[..._0x4c50ad,...this[_0x348cc0(0x2ca)]],_0xc7de23=[this[_0x348cc0(0x1c6)]||this['_acknowledgedAwaitingChangeset']][_0x348cc0(0x15d)](_0x74eafa=>!!_0x74eafa);let _0x3fab2d,_0x38182c;if(_0xc7de23[_0x348cc0(0x143)]){const _0x255378=this[_0x348cc0(0x2ef)][_0x348cc0(0x153)](_0x62700b,_0xc7de23,!0x1);if(!_0x1d473e(_0x255378))throw _0x255378[_0x348cc0(0x332)];_0x3fab2d=_0x255378[_0x348cc0(0x106)],_0x38182c=_0x255378['c2Prime'];}else _0x3fab2d=_0x62700b,_0x38182c=[];let _0x235790=this['_pendingMutations'];_0x3fab2d[_0x348cc0(0x215)](_0xfb430e=>{const _0xb75db6=_0x348cc0;let _0x12f62c;if(_0x235790['length']){const _0x1b438d=this[_0xb75db6(0x2ef)][_0xb75db6(0x17d)](_0xfb430e,_0x235790);if(!_0x3d99d4(_0x1b438d))throw _0x1b438d['error'];_0x12f62c=_0x1b438d[_0xb75db6(0x106)],_0x235790=_0x1b438d[_0xb75db6(0x246)];}else _0x12f62c=_0xfb430e;this['_executeRemoteChangeset'](_0x12f62c);}),this[_0x348cc0(0x399)]&&this[_0x348cc0(0x2f7)](),this['_awaitingChangeset']&&_0x38182c['length']&&(_0x38182c[0x0][_0x348cc0(0x1db)]=this[_0x348cc0(0x364)]());let _0x1277df;if(this[_0x348cc0(0x1c6)]&&_0x235790[_0x348cc0(0x143)]!==0x0)_0x1277df=this[_0x348cc0(0x27d)][_0x348cc0(0x18a)](K,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],_0x38182c[0x0],_0x235790,this[_0x348cc0(0x3fd)]);else{if(this['_awaitingChangeset']&&_0x235790['length']===0x0)_0x38182c[0x0][_0x348cc0(0x1db)]=this[_0x348cc0(0x364)](),_0x1277df=this[_0x348cc0(0x27d)]['createInstance'](Z,this[_0x348cc0(0x2e3)],this['type'],_0x38182c[0x0],this[_0x348cc0(0x3fd)]);else{if(_0x235790[_0x348cc0(0x143)]!==0x0){const _0x380adb=this[_0x348cc0(0x27d)][_0x348cc0(0x18a)](Y,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],_0x235790,this['_handler']);_0x380adb[_0x348cc0(0x3e2)](),_0x1277df=_0x380adb;}else _0x1277df=this[_0x348cc0(0x27d)][_0x348cc0(0x18a)](Se,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],this[_0x348cc0(0x3fd)]);}}return _0x1277df['_updateLocalCache'](),_0x1277df;}catch(_0xb5c67){return this['_logService'][_0x348cc0(0x332)](_0x348cc0(0x357),_0x348cc0(0x22a),_0xb5c67),this['_injector']['createInstance'](Q,this[_0x348cc0(0x2e3)],this[_0x348cc0(0x21b)],this[_0x348cc0(0x1c6)],this[_0x348cc0(0x15b)],this['_handler'],!0x1);}}[_0x5b7eaf(0x2e2)](){const _0x1b3e5c=_0x5b7eaf;throw new Error(_0x1b3e5c(0x135));}[_0x5b7eaf(0x2de)](_0x98b3bd){const _0x1b6581=_0x5b7eaf;return this['_pendingMutations'][_0x1b6581(0x2cb)](_0x98b3bd),this;}[_0x5b7eaf(0x107)](_0x24b288){const _0x55f9bc=_0x5b7eaf;return this[_0x55f9bc(0x2ca)][_0x55f9bc(0x2cb)](_0x24b288),this;}[_0x5b7eaf(0x27f)](_0x9dc432){const _0x2d82da=_0x5b7eaf;if(this[_0x2d82da(0x1c6)])return this[_0x2d82da(0x399)]=this['_awaitingChangeset'],this[_0x2d82da(0x1c6)]=null,this;throw new Error(_0x2d82da(0x285));}['onRemoteRej'](_0x12d3ba){const _0x1135cb=_0x5b7eaf;return this[_0x1135cb(0x324)](!!(_0x12d3ba!=null&&_0x12d3ba['isPermissionRej']));}[_0x5b7eaf(0x331)](){const _0x3d339f=_0x5b7eaf;return this['_injector'][_0x3d339f(0x18a)](ee,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x3d339f(0x15b)],this['_handler']);}[_0x5b7eaf(0x1df)](){return this;}[_0x5b7eaf(0x324)](_0x3f04a7){const _0xdb2fad=_0x5b7eaf;return this[_0xdb2fad(0x27d)]['createInstance'](Q,this['unitID'],this['type'],this[_0xdb2fad(0x1c6)],this[_0xdb2fad(0x15b)],this[_0xdb2fad(0x3fd)],_0x3f04a7);}};H=he([m(0x7,_0x2c1848(_0x1637c5)),m(0x8,_0x2c1848(_0xe33365)),m(0x9,_0x2c1848(D)),m(0xa,_0x4cc166),m(0xb,_0x2521f5),m(0xc,_0x948466),m(0xd,_0x364c40)],H);function xs(_0x3794f5,_0x251930,_0x312a9b,_0xb5228,_0xe667f,_0x4f9409){const _0x594481=_0x5b7eaf;return _0xb5228&&_0xe667f[_0x594481(0x143)]?_0x3794f5[_0x594481(0x18a)](K,_0x251930,_0x312a9b,_0xb5228,_0xe667f,_0x4f9409):_0xb5228?_0x3794f5[_0x594481(0x18a)](Z,_0x251930,_0x312a9b,_0xb5228,_0x4f9409):_0xe667f[_0x594481(0x143)]?_0x3794f5[_0x594481(0x18a)](Y,_0x251930,_0x312a9b,_0xe667f,_0x4f9409):_0x3794f5[_0x594481(0x18a)](Se,_0x251930,_0x312a9b,_0x4f9409);}var mr=Object['defineProperty'],gr=Object[_0x5b7eaf(0x25b)],Vt=(_0x197521,_0x210e0c,_0x377c98,_0x2bd13b)=>{const _0x31b769=_0x5b7eaf;for(var _0x4fbdf6=_0x2bd13b>0x1?void 0x0:_0x2bd13b?gr(_0x210e0c,_0x377c98):_0x210e0c,_0x106ea8=_0x197521[_0x31b769(0x143)]-0x1,_0x637140;_0x106ea8>=0x0;_0x106ea8--)(_0x637140=_0x197521[_0x106ea8])&&(_0x4fbdf6=(_0x2bd13b?_0x637140(_0x210e0c,_0x377c98,_0x4fbdf6):_0x637140(_0x4fbdf6))||_0x4fbdf6);return _0x2bd13b&&_0x4fbdf6&&mr(_0x210e0c,_0x377c98,_0x4fbdf6),_0x4fbdf6;},p=(_0x21ead6,_0x455dc1)=>(_0x3b195e,_0x3440db)=>_0x455dc1(_0x3b195e,_0x3440db,_0x21ead6);let tt=class extends _0x33f191{constructor(_0x283067,_0x6d80ff,_0x41ba04,_0x58ed6d,_0x1210d5,_0x2cee24,_0x1e37bc,_0x3dd93b,_0x361d63,_0x36884b,_0x3341bd,_0x40f66f,_0x44fc2c){const _0x4ee12b=_0x5b7eaf;super(),l(this,_0x4ee12b(0x28a),new _0xdb5176(null)),l(this,_0x4ee12b(0x2c3),this[_0x4ee12b(0x28a)][_0x4ee12b(0x3a7)]()),l(this,'_state'),l(this,_0x4ee12b(0xcf),!0x1),l(this,_0x4ee12b(0x32a),this[_0x4ee12b(0x2c3)][_0x4ee12b(0x1b6)](_0x3ae97d(_0x545dd4=>_0x545dd4?_0x545dd4['status']:w[_0x4ee12b(0x184)]),_0x42dad9(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x4ee12b(0x2c8),[]),(this['unitID']=_0x283067,this['session']=_0x6d80ff,this[_0x4ee12b(0xfe)]=_0x41ba04,this[_0x4ee12b(0x27d)]=_0x58ed6d,this[_0x4ee12b(0x291)]=_0x1210d5,this['_compressMutationService']=_0x2cee24,this['_localeService']=_0x1e37bc,this['_revisionService']=_0x3dd93b,this[_0x4ee12b(0x134)]=_0x361d63,this[_0x4ee12b(0x204)]=_0x36884b,this[_0x4ee12b(0x1b2)]=_0x3341bd,this[_0x4ee12b(0x2f2)]=_0x40f66f,this[_0x4ee12b(0x2c4)]=_0x44fc2c);}get[_0x5b7eaf(0x3b4)](){const _0x5665bc=_0x5b7eaf;return this[_0x5665bc(0x20b)];}async[_0x5b7eaf(0xda)](){const _0x3b7918=_0x5b7eaf;if(this[_0x3b7918(0x3b4)])throw new Error(_0x3b7918(0x133));await this[_0x3b7918(0x1cb)]();}[_0x5b7eaf(0x211)](){const _0xfbcabd=_0x5b7eaf;return this[_0xfbcabd(0xcf)]=!0x0,_0xa7e5b7(()=>{const _0x7fc540=_0xfbcabd;this[_0x7fc540(0xcf)]=!0x1,this[_0x7fc540(0x321)]();});}[_0x5b7eaf(0x398)](_0x556f29){const _0x3f2527=_0x5b7eaf;this[_0x3f2527(0x20b)]=_0x556f29,this[_0x3f2527(0x28a)][_0x3f2527(0x3ef)](_0x556f29);}async[_0x5b7eaf(0x1cb)](){const _0x4689d2=_0x5b7eaf;var _0x55d68b;this[_0x4689d2(0x398)](await this[_0x4689d2(0x248)]()),this[_0x4689d2(0x2c4)]&&((_0x55d68b=this[_0x4689d2(0x2c4)])==null||_0x55d68b['editingUnit'](this[_0x4689d2(0x2e3)]),this['disposeWithMe'](this[_0x4689d2(0x2c4)][_0x4689d2(0x1d2)](this[_0x4689d2(0x2e3)])[_0x4689d2(0x113)](_0x2f6762=>{const _0x3bc550=_0x4689d2;this[_0x3bc550(0x134)][_0x3bc550(0x330)](_0x3bc550(0x27e),'editing\x20status\x20changed\x20to',_0x2f6762),_0x2f6762===$s[_0x3bc550(0x2ac)]?(this[_0x3bc550(0x1b2)][_0x3bc550(0x2d3)]({'content':this[_0x3bc550(0x30e)]['t']('collaboration.single-unit.warning'),'type':_0x21289[_0x3bc550(0x150)]}),this[_0x3bc550(0x2f2)][_0x3bc550(0x334)](new _0x53288a(this[_0x3bc550(0x2e3)])['id'],!0x1)):this['_permissionService'][_0x3bc550(0x334)](new _0x53288a(this[_0x3bc550(0x2e3)])['id'],!0x0);})));let _0x5862a9=!0x1;return this['disposeWithMe'](this[_0x4689d2(0x1b8)][_0x4689d2(0x1e4)][_0x4689d2(0x113)](_0xb13696=>{const _0x398ccf=_0x4689d2;_0xb13696===W['ONLINE']?this[_0x398ccf(0x222)](_0x5862a9):_0xb13696===W['OFFLINE']&&(_0x5862a9=!0x0,this[_0x398ccf(0x245)]());})),this[_0x4689d2(0x255)](this[_0x4689d2(0x1b8)]['event$'][_0x4689d2(0x113)](_0x2b7ff7=>{const _0x46e9e7=_0x4689d2;try{switch(_0x2b7ff7[_0x46e9e7(0x1a0)]){case _0x47275c[_0x46e9e7(0x151)]:{this[_0x46e9e7(0x105)](_0x2a48dc(_0x2b7ff7[_0x46e9e7(0x2da)]));break;}case _0x47275c[_0x46e9e7(0x139)]:{this[_0x46e9e7(0x210)](_0x2b7ff7['data']);break;}case _0x47275c[_0x46e9e7(0x31d)]:{this[_0x46e9e7(0x2e7)]();break;}case _0x47275c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x46e9e7(0x1e7)](_0x2b7ff7[_0x46e9e7(0x2da)][_0x46e9e7(0x3d4)][_0x46e9e7(0x309)](_0x41378a=>_0x2a48dc(_0x41378a)));break;}case _0x47275c[_0x46e9e7(0x19b)]:this[_0x46e9e7(0x2e7)]({'isPermissionRej':!0x0});}}catch(_0x4ee3dc){throw console[_0x46e9e7(0x332)](_0x46e9e7(0x271),_0x4ee3dc),_0x4ee3dc;}})),this[_0x4689d2(0x20b)];}[_0x5b7eaf(0x14b)](){const _0x765345=_0x5b7eaf;this[_0x765345(0xf4)]=!0x1;}[_0x5b7eaf(0x3df)](){const _0x453839=_0x5b7eaf;if(this['_transitionLocked'])throw new Error(_0x453839(0xdc));this[_0x453839(0xf4)]=!0x0;}['_onLocalMutation'](_0x598342){const _0x1b09e2=_0x5b7eaf;this[_0x1b09e2(0x3df)](),this[_0x1b09e2(0x398)](this[_0x1b09e2(0x20b)]['appendMutation'](_0x598342)),this[_0x1b09e2(0x14b)]();}[_0x5b7eaf(0x105)](_0x569278){const _0x5209eb=_0x5b7eaf;if(!(_0x569278[_0x5209eb(0x3f2)]<=this[_0x5209eb(0x300)]['getCurrentRevOfUnit'](this[_0x5209eb(0x2e3)]))){if(this[_0x5209eb(0xcf)]){this['_remoteChangesetQueue'][_0x5209eb(0x2cb)](_0x569278);return;}this[_0x5209eb(0x376)](_0x569278);}}['_exhaustRemoteChangesetQueue'](){const _0x29a962=_0x5b7eaf;this['_remoteChangesetQueue']['forEach'](_0x4a58b4=>this[_0x29a962(0x376)](_0x4a58b4)),this[_0x29a962(0x2c8)]=[];}[_0x5b7eaf(0x376)](_0x5d3ac4){const _0x420028=_0x5b7eaf,_0x4f6ac5=this[_0x420028(0x290)][_0x420028(0x34d)][_0x420028(0x35e)](this[_0x420028(0x290)][_0x420028(0x34d)][_0x420028(0x116)]()[_0x420028(0x244)])(_0x5d3ac4[_0x420028(0x18c)],null)||_0x5d3ac4[_0x420028(0x18c)],_0x130ab2={..._0x5d3ac4,'mutations':_0x4f6ac5};this[_0x420028(0x3df)](),this['_updateState'](this[_0x420028(0x20b)]['onRemoteChangeset'](_0x130ab2)),this['_unlockTransition']();}[_0x5b7eaf(0x210)](_0x1277bb){const _0x125371=_0x5b7eaf;this[_0x125371(0x3df)](),this[_0x125371(0x398)](this['_state'][_0x125371(0x27f)](_0x1277bb)),this['_unlockTransition']();}[_0x5b7eaf(0x2e7)](_0x245849){const _0x16d83f=_0x5b7eaf;this[_0x16d83f(0x3df)](),this['_updateState'](this['_state'][_0x16d83f(0x1ec)](_0x245849)),this['_unlockTransition']();}[_0x5b7eaf(0x1e7)](_0x2ddaad){const _0x3d737f=_0x5b7eaf;if(!(this['_state']instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0xe5bfac=_0x2ddaad[_0x3d737f(0x309)](_0x335080=>{const _0x3add29=_0x3d737f,_0x2480ce=this[_0x3add29(0x290)][_0x3add29(0x34d)]['fetchThroughInterceptors'](this[_0x3add29(0x290)]['interceptor'][_0x3add29(0x116)]()[_0x3add29(0x244)])(_0x335080['mutations'],null)||_0x335080['mutations'];return{..._0x335080,'mutations':_0x2480ce};});this[_0x3d737f(0x3df)](),this[_0x3d737f(0x398)](this[_0x3d737f(0x20b)][_0x3d737f(0x39f)](_0xe5bfac)),this[_0x3d737f(0x14b)]();}['_toggleOffline'](){const _0x14c578=_0x5b7eaf;this[_0x14c578(0x3df)](),this['_updateState'](this[_0x14c578(0x20b)][_0x14c578(0x331)]()),this[_0x14c578(0x14b)]();}['_toggleOnline'](_0x38fefe=!0x1){const _0x457dda=_0x5b7eaf;this[_0x457dda(0x3df)](),this[_0x457dda(0x398)](this[_0x457dda(0x20b)][_0x457dda(0x1df)]()),this[_0x457dda(0x14b)]();const _0x393f75=this[_0x457dda(0x20b)];_0x38fefe&&_0x393f75 instanceof Se&&(this[_0x457dda(0x3df)](),this[_0x457dda(0x398)](_0x393f75[_0x457dda(0x229)]()),this[_0x457dda(0x14b)]());}async['_createInitialState'](){return new Promise(_0x3163db=>{const _0x402113=_0x4581;this[_0x402113(0x1b8)][_0x402113(0x1e4)][_0x402113(0x1b6)](_0x4f24d1(0x1))['subscribe'](async _0x16bc9a=>{const _0x4a4896=_0x402113;_0x3163db(await this[_0x4a4896(0x1d6)](_0x16bc9a===W[_0x4a4896(0x308)]));});});}[_0x5b7eaf(0x17b)](){const _0x1ac153=this['unitID'];return{'onStateChange':(_0x384f78,_0x5b74b1)=>{const _0x251fc3=_0x4581;if(_0x384f78!==this[_0x251fc3(0x20b)])throw new Error(_0x251fc3(0x264)+_0x384f78['status']+_0x251fc3(0x3e4)+_0x5b74b1[_0x251fc3(0x2d4)]+_0x251fc3(0x1d1)+this['_state'][_0x251fc3(0x2d4)]);this[_0x251fc3(0x398)](_0x5b74b1);},'onSendChangeset':_0x25f686=>{const _0x42f3c1=_0x4581,_0x3fc28a={'eventID':_0x47275c[_0x42f3c1(0x394)],'data':{'unitID':_0x25f686[_0x42f3c1(0x2e3)],'unitType':this['_type'],'changeset':_0x25f686,'memberID':this[_0x42f3c1(0x1b8)][_0x42f3c1(0x11e)]()}};this[_0x42f3c1(0x1b8)][_0x42f3c1(0x287)](_0x3fc28a,this['unitID']);},'onMissingChangesets':({from:_0x422da8,to:_0x15438e})=>{const _0x30679e=_0x4581;this['_logService'][_0x30679e(0x330)](_0x30679e(0x27e),_0x30679e(0x3e0)+_0x422da8+'\x20to\x20'+_0x15438e);const _0x1385bb={'eventID':_0x47275c[_0x30679e(0x2d7)],'data':{'unitID':_0x1ac153,'unitType':this[_0x30679e(0xfe)],'from':_0x422da8,'to':_0x15438e}};this[_0x30679e(0x1b8)][_0x30679e(0x287)](_0x1385bb,this[_0x30679e(0x2e3)]);}};}async['_createInitialStateImpl'](_0x3216b5){const _0x94ea95=_0x5b7eaf;var _0x205d90,_0x55c37d;const _0x404e4b=await this[_0x94ea95(0x291)]['loadOfflineData'](this['unitID']),_0x5cbc49=(_0x205d90=_0x404e4b==null?void 0x0:_0x404e4b[_0x94ea95(0x18c)])!=null?_0x205d90:[],_0x432326=(_0x55c37d=_0x404e4b==null?void 0x0:_0x404e4b[_0x94ea95(0x103)])!=null?_0x55c37d:null,_0x41bcb4=this[_0x94ea95(0x2e3)];try{this[_0x94ea95(0x348)](_0x432326,_0x5cbc49);}catch(_0x1dbdd6){this[_0x94ea95(0x134)][_0x94ea95(0x332)](_0x1dbdd6);}const _0xd81f0=this[_0x94ea95(0x17b)]();if(_0x3216b5){const _0x424e13=xs(this[_0x94ea95(0x27d)],_0x41bcb4,this['_type'],_0x432326,_0x5cbc49,_0xd81f0);return _0x424e13 instanceof Y?_0x424e13[_0x94ea95(0x3e2)]():(_0x424e13 instanceof K||_0x424e13 instanceof Z)&&_0x424e13[_0x94ea95(0x2e2)](),_0x424e13;}return this[_0x94ea95(0x27d)]['createInstance'](ee,_0x41bcb4,this['_type'],_0x432326,_0x5cbc49,_0xd81f0);}[_0x5b7eaf(0x348)](_0x5929a0,_0x30334a){const _0x5b89fc=_0x5b7eaf;var _0x2b1c59,_0x372cb7;const _0x1de73c=this['_compressMutationService'][_0x5b89fc(0x34d)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5b89fc(0x34d)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x2b1c59=_0x1de73c((_0x5929a0==null?void 0x0:_0x5929a0[_0x5b89fc(0x18c)])||[],null))==null||_0x2b1c59[_0x5b89fc(0x215)](_0x56472b=>this[_0x5b89fc(0x204)][_0x5b89fc(0x26d)](_0x56472b['id'],_0x56472b[_0x5b89fc(0x14c)])),(_0x372cb7=_0x1de73c(_0x30334a||[],null))==null||_0x372cb7[_0x5b89fc(0x215)](_0x37ff7e=>this[_0x5b89fc(0x204)][_0x5b89fc(0x26d)](_0x37ff7e['id'],_0x37ff7e['params']));}};tt=Vt([p(0x3,_0x2c1848(_0x1637c5)),p(0x4,_0x2c1848(D)),p(0x5,_0x2c1848(_0x31a667)),p(0x6,_0x2c1848(_0x1e7bf5)),p(0x7,_0x2c1848(_0xe33365)),p(0x8,_0x4cc166),p(0x9,_0x2521f5),p(0xa,_0x3df3ba),p(0xb,_0x133542),p(0xc,_0x3b757a(it))],tt);let Tt=class extends tt{constructor(_0x3c739e,_0x33f6c9,_0x65ed2,_0x2fa9c9,_0xeb6390,_0x1d4949,_0xc11283,_0x1f1042,_0x48ca8e,_0x27af3f,_0x39e417,_0x122b83,_0x51fb2f,_0x4ca77d,_0x44eb1d,_0x109f1c,_0x635a0a){const _0x69dedd=_0x5b7eaf;super(_0x3c739e,_0x65ed2,_0x33f6c9,_0x2fa9c9,_0xeb6390,_0x1d4949,_0xc11283,_0x1f1042,_0x51fb2f,_0x4ca77d,_0x44eb1d,_0x109f1c,_0x635a0a),this[_0x69dedd(0x2e3)]=_0x3c739e,this[_0x69dedd(0x21b)]=_0x33f6c9,this[_0x69dedd(0xbe)]=_0x48ca8e,this[_0x69dedd(0xab)]=_0x27af3f,this[_0x69dedd(0x192)]=_0x39e417,this[_0x69dedd(0x2dd)]=_0x122b83;}['_createHandler'](){const _0x5025d0=_0x5b7eaf,_0x141d66=super['_createHandler']();return _0x141d66['onTransformIME']=_0x1f0817=>this['_docTransformIMECacheService'][_0x5025d0(0x194)](_0x1f0817),_0x141d66[_0x5025d0(0x356)]=_0x12f37e=>this[_0x5025d0(0x192)][_0x5025d0(0x231)](_0x12f37e),_0x141d66[_0x5025d0(0x38b)]=_0x4a4e22=>this[_0x5025d0(0x2dd)][_0x5025d0(0x32f)](_0x4a4e22),_0x141d66[_0x5025d0(0x1f5)]=_0x2a7ece=>this[_0x5025d0(0xab)][_0x5025d0(0x10c)](_0x2a7ece),_0x141d66;}async[_0x5b7eaf(0x1cb)](){const _0x4bf89f=_0x5b7eaf,_0x29a765=await super[_0x4bf89f(0x1cb)]();return this[_0x4bf89f(0x255)](this[_0x4bf89f(0x204)]['onCommandExecuted']((_0x358466,_0x373ac1)=>{const _0x2bc764=_0x4bf89f;if(_0x358466['type']!==_0xb6689e[_0x2bc764(0xd3)]||_0x373ac1!=null&&_0x373ac1[_0x2bc764(0x38e)]||_0x373ac1!=null&&_0x373ac1[_0x2bc764(0x16e)])return;const _0x520dec=_0x358466[_0x2bc764(0x14c)];if((_0x520dec==null?void 0x0:_0x520dec['unitId'])!==this['unitID'])return;let _0x2f6305=_0x358466;if(_0x2f6305['id']===_0x193233['id']){const _0x172184=_0x2f6305[_0x2bc764(0x14c)];_0x2f6305={'id':_0x193233['id'],'type':_0xb6689e[_0x2bc764(0xd3)],'params':{'unitId':_0x172184[_0x2bc764(0x166)],'actions':_0x172184[_0x2bc764(0x2bb)],'textRanges':null}};}const _0x56d7b7=this[_0x2bc764(0x290)]['interceptor'][_0x2bc764(0x35e)](this[_0x2bc764(0x290)][_0x2bc764(0x34d)]['getInterceptPoints']()[_0x2bc764(0x179)])([_0x2f6305],null)||[_0x2f6305];this['_onLocalMutation'](_0x56d7b7[0x0]);})),_0x29a765;}};Tt=Vt([p(0x3,_0x2c1848(_0x1637c5)),p(0x4,_0x2c1848(D)),p(0x5,_0x2c1848(_0x31a667)),p(0x6,_0x2c1848(_0x1e7bf5)),p(0x7,_0x2c1848(_0xe33365)),p(0x8,_0x2c1848(_0x36d82f)),p(0x9,_0x2c1848(Ze)),p(0xa,_0x2c1848(et)),p(0xb,_0x2c1848(Bt)),p(0xc,_0x4cc166),p(0xd,_0x2521f5),p(0xe,_0x3df3ba),p(0xf,_0x133542),p(0x10,_0x3b757a(it))],Tt);function _0x5d04(){const _0x1f8dec=['_memberService','UNDEFINED','message$','_getCurrentRevision','_config','assign','key','cursorInfo','stringify','onTransformChange$','[CollaborationSession]','subscribeEvent','permissionRejEvent','max','resourceIDs','connection\x20error','_commentService','closeSession','_listenToOfflineEvent','_transformPreviousActiveRange','event$','_applyRemoteChangeset','transformUndoRedo','RemoveColCommandId','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','enableAuthServer','_timeoutTimer','_clearTimeoutTimer','clipPath','[CollaborationState]:\x20apply\x20error!','getRangePointData','SNAPSHOT_HAS_BEEN_REMOVED','objects','addImageSourceCache','location','getRoom','getCurrentRevOfUnit','OnLineSingle','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','session.collaboration-timeout','_onRecvEvent','_document','onSyncEditingCollabCursor','UNRECOGNIZED','BASE64','fromCollab','FAIL','history','1158528gGhlmD','userID','onPointerMove$','SUBMIT_CHANGESET','catch','M0\x200H16V16H0z','Undefined','_updateState','_acknowledgedAwaitingChangeset','duration','getConfig','UnitEmbedded','collaboration-client.config','_listenToOnlineEvent','onMissedChangesetFetched','LIVESHARE_OPERATION','onMissingChangesets','getRelativeToViewportCoord','collab-text-range-','refreshPermission','MoveRangeCommandId','_handleJoinEvent','asObservable','NOT_COLLAB','UPDATE_PERMISSION_OBJ','_executeRemoteChangeset','replace','UNIVER_DOC','InsertRowCommandId','_handleHeartbeatEvent','loadOfflineData','defineProperty','TOO_MANY_REQUESTS','code','_onUserLeave','state','reject','YUUMI_URL_COL_OUT_OF_RANGE','PERMISSION_DENIED','_socketMessageSubscription','none','unit','_telemetryService','_getMergeRange','saveOfflineData','_telemetryInfo','_status$','_notificationService','_beforeCloseService','enableOfflineEditing','_imageSourceCache','href','Error','getActiveRange','_transformUndoredo','div','LOCAL_CACHE_INTERVAL','createElement','indexOf','LIVESHARE_NEW_HOST','USERS_ENTER','_ensureSubject','CHANGESET_REVISION_CONFILICT','_setupSubUnitSync','loadDoc','USERS_LEAVE','readAsDataURL','changesets','every','_removeRoom','activeSheet$','1122230ceOusW','body','HELLO','univer-pro.collaboration-client.single-active-unit-service','PSEUDO_FETCH_MISSING_RESULT','RemoveRowCommandId','_scheduleSaving','_lockTransition','fetching\x20missing\x20changesets\x20from\x20','registerRenderModule','_schedule','_roomMembers$','\x0aAfter:\x20','_shouldReportTelemetry','arc','[PendingState]:\x20unhandled\x20univer\x20type:\x20','getCurrentSelections','_unitOnClients','setConfig','_retryCount','searchParams','open$','_sendingTimer','next','univer-pro.collaboration-client-socket-service','values','revision','_undoStacks','/universer-api/snapshot/','_syncEditingCollabCursorService','socketService','univer-online-status-title','_clearHeartbeatTimer','_getSaveTimeout','RECV','create','_cursors','_handler','_joinRoom','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','isArray','setParam','all','9dMijEt','setWaitCount','unshift','createCollaborator','_getLoginPath','removeParam','LIVESHARE_TERMINATE','ERROR_IMAGE','onCommandExecuted','_lastPointer','...','onTransformIME','lineTo','FileId','clear','collaboration-session-retry','pending','/-/object/list','Ready','encode','range','CONFLICT','joinEvent','_tryEnsureSocket','transformMutation','_docTransformIMECacheService','socket\x20open.','verdancy600','_transformSelections','_syncEditingCollabCursor','_docSkeleton','getUniverSheetInstance','saveSheetBlock','getDocRanges','tag','_undoRedoService','[CollaborationUndoRedoService]','members','cmd','src','_univerInstanceService','collab-rect-range-','ERROR_EXCEED_SIZE','onPointerEnter$','_docStateChangeManagerService','_socketReady','_sessionStatus$','fillText','_refreshCollabCursors','saveImage','cursorInfo$','_change$','width','update','restore','_onCombEvent','_hover','leaveEvent','reduce','JOIN','delete','_collaborationPaused','find','_collaborationController','svg','MUTATION','color','currentTheme$','localeService','collabStatus.fetchMiss','12840kGXERy','_clearLocalCache','init','5wseRsm','[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.','_httpService','from','addObject','_shapes','contains','_socket$','LICENSE_EXPORT_SIZE_EXCEEDED','_sheetTransformSelectionsService','UNIVER_SLIDE','getUnitType','_waitCount','DEFAULT_FILE_NAME','text','auth.needGotoLoginAlert','_isPermissionRej','DeleteRangeMoveLeftCommandId','makeDirty','measureText','_getSignURL','deepClone','getUnitId','height','_name','_transitionLocked','updateCollaborator','getActiveSheet','fetch_missing','dispose','_id','YUUMI_RATE_OVER_LIMIT','colorChannel1','_getUploadFileURL','_getSheetObject','_type','encodeURIComponent','action','getCurrentUser','APPLY_NON_SEQUENTIAL_REVISION','awaitingChangeset','_onJoinRoomEvent','_onRemoteChangeset','c1Prime','onRemoteChangeset','getTypeOfUnitDisposed$','LIVESHARE_REQUEST_HOST','image/bmp','transformStack\x20failed!','transformRemoteChangeset','1em','_clearOtherTimers','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_configService','objectActions','[OfflineState]:\x20received\x20changeset.','subscribe','getCollabEntity$','[SyncedState]:\x20received\x20rejection.','getInterceptPoints','liveShareNewHost','_disabled','Univer','newValue','_heartbeatTimer','red300','_clearRedo','getMemberID','_throwTelemetryCollaborationNewChangeset','_scheduleClearOtherTimer','shouldCloseConn','2794PpYPpy','selection','idSuffix','whenReady','_updateLocalCache','objectID','AUTHZ_URL_KEY','_online','rev','includes','NOT_FOUND','onRendered','sheets','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SNAPSHOT_SERVER_URL_KEY','change$','LICENSE_MAX_UNITS_EXCEEDED','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_logService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','not_collab','_unitStatus','[CollaborationSessionService]:\x20socket\x20error','CHANGESET_ACK','_disableEditing','_clearCollaborationTimeoutTimer','awaiting','_themeService','round','[PendingState]:\x20received\x20rejection.','call','_scheduleHeartbeat','Unknown\x20user','length','backgroundColor','beginPath','collabCursorState$','_context','_collabCursorState$','_saveTaskMap','toString','_unlockTransition','params','infoRsp','conflict','_onConnectionFailed','Warning','NEW_CHANGESETS','LICENSE_IMPORT_SIZE_EXCEEDED','transformChangesets','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','collab-client.tooltip.reconnect','APPLY_PERMISSION_DENIED','currentColor','fill','assignAColorForMemberID','getItem','_pendingMutations','_decreaseWaiting','filter','HttpExport','PENDING','_updateSubUnitFromURLParams','setActiveRange','with','font','getSheetBlock','[DataLoaderController]','unitId','_getSendChangesetTimeout','getOwnPropertySymbols','collabStatus.synced','defIds','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','isEditing','SYNCED','onlyLocal','1198266tVRCGt','reconnect','memberID','EXCHANGE_SIGN_URL_SERVER_URL_KEY','startColumn','LOGIN_URL_KEY','collaborators','AWAITING_WITH_PENDING','univer-online-status-icon','collaboration_new_changeset','COMPRESS_MUTATION_SEND','url','_createHandler','getWorkbookSelections','transformMutationsWithChangeset','string','ERROR_IMAGE_TYPE','defs','hasOwnProperty','csAckEvent','SHOULD_CLOSE_CONN','OFFLINE','concat','removeMember','_snapshotService','UnitSnapshot','UPDATE_CURSOR','createInstance','toRgbString','mutations','getMember','collabStatus.notCollab','UNIVER_SHEET','_showConflictNotification','fillStyle','_docTransformSelectionsService','name','transformIMECache','_removeClearOtherTimer','bottom','#fff','_updateCollabCursors','_transformUndoRedoStack','_getSnapshotAPIPrefix','PERMISSION_REJ','roles','selections','_retryConnectingTimer','60KtWaAI','eventID','UNIVER_UNKNOWN','YUUMI_SUBSCRIPTION_NOT_FOUND','_substituteRedoStack','now','uni.network.url-service','getValue','HttpImport','onPointerLeave$','reverse','0\x200\x2017\x2016','_collaborationSessionService','/universer-api/comb','commentUpdateEvent','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','className','override','HEARTBEAT_INTERVAL','_messageService','engine','Starting','doc.mutation.rich-text-editing','pipe','collabStatus.conflict','session','offline','UNKNOWN_CODE','_colorIndex','_getScale','_colorAssignService','onMouseMove','parse','COLLAB_SUBMIT_CHANGESET_URL','_userManagerService','getUnhiddenWorksheets','univerjs-icon\x20univerjs-icon-','UNIVER_COLLABORATION_CLIENT_PLUGIN','/-/object/-/batch_allowed','_awaitingChangeset','_replaceFileID','session.connection-failed','_getDownloadEndpointURL','_renderManagerService','_init','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','onCommentUpdate','unsubscribe','_anchor','requestParams','\x0aCurrent:\x20','getUnitStatus$','ws://127.0.0.1:8000/universer-api/comb/connect','getSheetBySheetId','&to=','_createInitialStateImpl','/object/','JOINING','session.will-retry','_drawAnchor','baseRev','#FFF','registerHTTPInterceptor','_hideTimer','toggleOnline','putCollaborators','SNAPSHOT_URL_KEY','APPLY_REJECT','getCollabCursors$','sessionStatus$','_labelPosition','onStarting','_onFetchMissResult','_startTelemetryCollaborationNewChangeset','COMMENT_UPDATE','set','off-line-single_clip0_910_343','onRemoteRej','_HTTPService','[UniverCollaborationClientPlugin]','onload','/object','gold400','1314ViFiGf','isPermissionRej','getSkeleton','onTransformRemoteChangesetByIMECache','isActive','getParam','save','_hovered','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_onMessage','close','setTimeout','socket$','_send','symbol','conflict.title','&assign=','_transformIMECache','_commandService','getTypeOfUnitAdded$','getRenderById','_submitChangeset','_collabSessionService','clearInterval','labelPosition','_state','LICENSE_DISTRO_REJECTED','storage','\x20-\x20','_tryReconnect','_onRemoteACK','pauseCollaboration','unit-cache-','complete','newCsEvent','forEach','setCurrentUser','_entities','_updateURLWithCurrentState','/universer-api/oidc/authpage','getSheetId','type','startTime','_sendHeartbeatTimer','popstate','_redoStacks','12681Jbafvl','_checkMissing','_toggleOnline','clearTimeout','exhaustSavingTask','/universer-api/stream/file/upload','FETCH_MISS','addObjects','_sheetSkeletonManagerService','fetchMiss','failed\x20to\x20apply\x20missed\x20changesets!','snapshot','_cursorInfo$','COLLAB_WEB_SOCKET_URL','size','_initCloseConn','_session','transformSelections','_rescheduleHeartbeat','getFocusedUnit','objectType','getVpScrollXYInfoByPosToVp','pluginName','file','/fetchmissing?from=','?url=','_onRefRangeChange','generateRandomId','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_draw','routeKey','withCredentials','_scheduleCollaborationTimeoutTimer','startsWith','updateCursorEvent','_uiPartsService','COMPRESS_MUTATION_APPLY','_toggleOffline','m2Prime','subunit','_createInitialState','roomMembers','_fetchMissChangesets','_handleEvent','HEARTBEAT','MSG_FOR_ERROR','collaboration-client.offline-data-not-saved','replaceState','_scheduleTimestamp','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','NO_OTHER_CLIENTS_EDITING','_waitForHeartbeatResponse','unitId\x20is\x20not\x20found','disposeWithMe','put','addEventListener','translate(.97)','resize','_initCommandExecutedListener','getOwnPropertyDescriptor','path','roomMembers$','&source=','/universer-api/file/{fileID}/sign-url','sessionStatus','COMPLETION_FINISHED','_socket','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','UNKNOWN_CMD','_localStorageService','drawWith','_candidateSocket','fetchMissingChangesets','HEARTBEAT_TIMEOUT','black','_startSheetCollabCursor','executeCommand','sheetId','getAncestorScale','APPLY_REVISION_CONFILICT','Error\x20on\x20receiving\x20event','updateOfflineData','YUUMI_UNABLE_LOAD_URL','downloadEndpointUrl','off-line-single','collab-text-anchor-','add','unknown','_collabCursorController','_initStatusComponent','_http','_initModules','_injector','[CollaborationEntity]','onRemoteAck','_initUnitPermissionChange','DeleteRangeMoveUpCommandId','/block/','_startDocCollabCursor','_unitID','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','/unit/','send','collaboration.closeRoom','online','_state$','unload','evenodd','_assignedColors','_saveCache','propertyIsEnumerable','_compressMutationService','_localCacheService','_ws','_getUndoStack','permission.title','_render','batchAllowed','_onUserJoin','INVALID_ARGUMENT','requireSession','_loadSheet','setItem','triggerDblclick','setUndoRedoMutationParamsCache','title','_selfUnitIDs','_anchorDot','top','updateMember','/collaborator','_registerRenderDependencies','fillRule','_refRangeService','_initStatusListener','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','moveTo','{fileID}','_snapshotServerService','OTHER_CLIENTS_EDITING','INTERNAL_ERROR','SNAPSHOT_INVALID_SNAPSHOT','_onCursorUpdate','then','collaboratorID','ALREADY_EXISTS','_onConnectionOpen','updatePermissionObjEvent','entries','registerComponent','_updateStatus','UNIVER_PROJECT','incrementRevOfUnit','headers','actions','_event$','flatMap','icon','_getRedoStack','_removeCollabCursors','function','_docSkeletonManagerService','state$','_singleActiveUnitService','[CollaborationSessionService]','POST','_backgroundColor','_remoteChangesetQueue','getViewport','_queuedRemoteChangesets','push','/universer-api/authz','_sendHeartbeat','_cachedData','dispose$','min','currentSkeleton$','editingUnit','show','status','_drawRectRange','subUnitId','FETCH_MISSING','resolve','listCollaborators','data','originalMeta','get','_docSyncEditingCollabCursorService','appendMutation','findNodePositionByCharIndex','sheetID','closePath','resend','unitID','INGEST','InsertRangeMoveDownCommandId','result','_onRemoteRejected','_clearUndo','random','stopTime','joinRsp','[OfflineState]:\x20received\x20rejection.','_startCollaboration','AWAITING','_transformService','createSocket','collaMsg','_permissionService','_initMergeInterceptor','ranges','_clearScheduledTask','IDLE','_incrementRevisionNumber','_drawTextRange','m1Prime','onStateChange','_collaborationTimeoutTimer','getCurrent','_substituteUndoStack','rgba(255,\x20255,\x20255,\x200.01)','84mwrzpo','_revisionService','allowed','775467XbdeIk','_members','patch','univer-offline','LEAVE','_loadDoc','ONLINE','map','deleteCollaborator','_scene','has','close$','_localeService','[SyncedState]:\x20received\x20acknowledgement.','_onOffline','_color','image/jpeg','_registerDependencies','_range','pushState','compose','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_initResize','xlink:href','_commentUpdate$','awaiting_with_pending','_cursorShapes','CHANGESET_REJ','_setupBeforeClosingHandler','_sessions','getOffsetConfig','_exhaustRemoteChangesetQueue','getUndoRedoMutationParamsCache','_updateLocalCursor','_onConflict','prototype','\x20in\x20_schedule.','extend','urlChange$','enableSingleActiveInstanceLock','status$','commentUpdate$','collabStatus.syncing','[OfflineState]:\x20received\x20acknowledgement.','split','syncEditingCollabCursor','debug','toggleOffline','error','onSendChangeset','updatePermissionPoint','getCollabEntity','_getAPIPrefix','hovered','_entityInit$','InsertRangeMoveRightCommandId','transform','socket\x20close','synced','ACTIVE_UNIT_EVENT_CHANNEL','_urlService','_onCursorDelete','/allowed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','LIVESHARE_FETCH_OPERATIONS','_socketService','_eventUnsubscribe','registerRefRange','0\x200\x2016\x2016','CONNECTOR_DATA_TOO_LARGE','_replayCachedMutations','children','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_textBubble','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','interceptor','submit\x20changeset\x20error!','liveShareOperation','removeEventListener','/new_changes','endRow','registerBeforeClose','_roomMembers','post','onTransformSelections','[FetchMissState]','_getAPIPrefixPath','attrs','FromArray','_transformStack','focused$','_getAnchorBounding','fetchThroughInterceptors','textRanges','displayName'];_0x5d04=function(){return _0x1f8dec;};return _0x5d04();}let Rt=class extends tt{constructor(_0x23053a,_0x5506d0,_0x4fc9d6,_0x3c2f25,_0x406907,_0x1c71d8,_0x198a42,_0x14c451,_0x5b90fe,_0x2e553b,_0x4a39e1,_0x143542,_0xdb53a3,_0x4c4b54){const _0x43ff18=_0x5b7eaf;super(_0x23053a,_0x4fc9d6,_0x5506d0,_0x3c2f25,_0x406907,_0x1c71d8,_0x198a42,_0x14c451,_0x2e553b,_0x4a39e1,_0x143542,_0xdb53a3,_0x4c4b54),this['unitID']=_0x23053a,this[_0x43ff18(0x21b)]=_0x5506d0,this[_0x43ff18(0xe4)]=_0x5b90fe;}['_createHandler'](){const _0x494c82=_0x5b7eaf,_0x2f9554=super[_0x494c82(0x17b)]();return _0x2f9554['onTransformSelections']=_0x2ec73c=>this[_0x494c82(0xe4)][_0x494c82(0x231)](_0x2ec73c),_0x2f9554;}async[_0x5b7eaf(0x1cb)](){const _0x25c3dd=_0x5b7eaf,_0x2f988d=await super['_init']();return this['disposeWithMe'](this[_0x25c3dd(0x204)][_0x25c3dd(0x9a)]((_0x485f18,_0xd598c4)=>{const _0x30444e=_0x25c3dd;if(_0x485f18[_0x30444e(0x21b)]!==_0xb6689e[_0x30444e(0xd3)]||_0xd598c4!=null&&_0xd598c4[_0x30444e(0x38e)]||_0xd598c4!=null&&_0xd598c4['onlyLocal'])return;const _0xee8503=_0x485f18[_0x30444e(0x14c)];if((_0xee8503==null?void 0x0:_0xee8503['unitId'])!==this[_0x30444e(0x2e3)])return;const _0x4f9701=_0x485f18,_0x272d74=this[_0x30444e(0x290)][_0x30444e(0x34d)]['fetchThroughInterceptors'](this[_0x30444e(0x290)][_0x30444e(0x34d)][_0x30444e(0x116)]()['COMPRESS_MUTATION_SEND'])([_0x4f9701],null)||[_0x4f9701];this['_onLocalMutation'](_0x272d74[0x0]);})),_0x2f988d;}};Rt=Vt([p(0x3,_0x2c1848(_0x1637c5)),p(0x4,_0x2c1848(D)),p(0x5,_0x2c1848(_0x31a667)),p(0x6,_0x2c1848(_0x1e7bf5)),p(0x7,_0x2c1848(_0xe33365)),p(0x8,_0x2c1848(Qe)),p(0x9,_0x4cc166),p(0xa,_0x2521f5),p(0xb,_0x3df3ba),p(0xc,_0x133542),p(0xd,_0x3b757a(it))],Rt);var Sr=Object[_0x5b7eaf(0x3b0)],pr=Object[_0x5b7eaf(0x25b)],vr=(_0x38e5dd,_0x57c0b3,_0x5892e6,_0x315b57)=>{for(var _0x9f0323=_0x315b57>0x1?void 0x0:_0x315b57?pr(_0x57c0b3,_0x5892e6):_0x57c0b3,_0x51f5a4=_0x38e5dd['length']-0x1,_0x5e7297;_0x51f5a4>=0x0;_0x51f5a4--)(_0x5e7297=_0x38e5dd[_0x51f5a4])&&(_0x9f0323=(_0x315b57?_0x5e7297(_0x57c0b3,_0x5892e6,_0x9f0323):_0x5e7297(_0x9f0323))||_0x9f0323);return _0x315b57&&_0x9f0323&&Sr(_0x57c0b3,_0x5892e6,_0x9f0323),_0x9f0323;},_t=(_0x433527,_0x574c03)=>(_0x1f90dc,_0xd44963)=>_0x574c03(_0x1f90dc,_0xd44963,_0x433527);let Ue=class extends _0x33f191{constructor(_0x2a3344,_0x4d445b,_0x5c4bf3){const _0x36b2d9=_0x5b7eaf;super(),l(this,_0x36b2d9(0x217),new Map()),l(this,_0x36b2d9(0x338),new _0x51e21c()),(this[_0x36b2d9(0x27d)]=_0x2a3344,this[_0x36b2d9(0x208)]=_0x4d445b,this[_0x36b2d9(0xba)]=_0x5c4bf3,this[_0x36b2d9(0x1cb)]());}[_0x5b7eaf(0xf8)](){const _0x297178=_0x5b7eaf;super[_0x297178(0xf8)](),this[_0x297178(0x217)][_0x297178(0x215)](_0x589a43=>_0x589a43[_0x297178(0xf8)]()),this[_0x297178(0x217)][_0x297178(0xa0)]();}['getCollabEntity'](_0xdd6d2){const _0x246018=_0x5b7eaf;var _0x29a65a;return(_0x29a65a=this[_0x246018(0x217)]['get'](_0xdd6d2))!=null?_0x29a65a:null;}[_0x5b7eaf(0x114)](_0x18b530){const _0x579438=_0x5b7eaf,_0x53bb31=this[_0x579438(0x335)](_0x18b530);return _0x53bb31?_0x175cbd(_0x53bb31):this[_0x579438(0x338)][_0x579438(0x1b6)](_0x324b00(_0x164f16=>_0x164f16[_0x579438(0x2e3)]===_0x18b530));}[_0x5b7eaf(0x1cb)](){const _0x182e3c=_0x5b7eaf;this['_univerInstanceService'][_0x182e3c(0x205)](_0x275c2c[_0x182e3c(0x18f)])[_0x182e3c(0x1b6)](_0x53c8e3(this[_0x182e3c(0x2cf)]),_0x38bf87(0x10))['subscribe'](async _0x3ea1f5=>{const _0x5bf9cb=_0x182e3c,_0x1a5182=_0x3ea1f5[_0x5bf9cb(0xf1)](),_0x50c7ff=await this[_0x5bf9cb(0x2ed)](_0x1a5182,x[_0x5bf9cb(0x18f)]);this[_0x5bf9cb(0x217)][_0x5bf9cb(0x1ea)](_0x1a5182,_0x50c7ff);}),this[_0x182e3c(0xba)][_0x182e3c(0x205)](_0x275c2c['UNIVER_DOC'])['pipe'](_0x53c8e3(this[_0x182e3c(0x2cf)]),_0x38bf87(0x10))['pipe'](_0x324b00(_0x27835c=>!_0x27835c['getUnitId']()['startsWith']('__')))[_0x182e3c(0x113)](async _0xcb5ebc=>{const _0x1dda18=_0x182e3c,_0x599680=_0xcb5ebc[_0x1dda18(0xf1)](),_0xdc05e5=await this[_0x1dda18(0x2ed)](_0x599680,x[_0x1dda18(0x3ac)]);this[_0x1dda18(0x217)]['set'](_0x599680,_0xdc05e5);}),_0x3b6402(this[_0x182e3c(0xba)]['getTypeOfUnitDisposed$'](_0x275c2c[_0x182e3c(0x18f)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x275c2c['UNIVER_DOC']))[_0x182e3c(0x1b6)](_0x53c8e3(this[_0x182e3c(0x2cf)]))[_0x182e3c(0x113)](_0x23eff1=>{const _0x53e7f5=_0x182e3c,_0x152264=_0x23eff1[_0x53e7f5(0xf1)](),_0x547dfd=this['_entities']['get'](_0x152264);_0x547dfd&&(_0x547dfd[_0x53e7f5(0xf8)](),this[_0x53e7f5(0x217)][_0x53e7f5(0xce)](_0x152264));});}async[_0x5b7eaf(0x2ed)](_0x4e120c,_0xfe0e89){const _0x49413b=_0x5b7eaf,_0x4b6eeb=await this[_0x49413b(0x208)][_0x49413b(0x299)](_0x4e120c),_0x769f33=this[_0x49413b(0x27d)]['createInstance'](this['_getCtorByUniverType'](_0xfe0e89),_0x4e120c,_0xfe0e89,_0x4b6eeb);return await _0x769f33[_0x49413b(0xda)](),this[_0x49413b(0x338)][_0x49413b(0x3ef)](_0x769f33),_0x769f33;}['_getCtorByUniverType'](_0x57654a){const _0x275136=_0x5b7eaf;switch(_0x57654a){case x[_0x275136(0x3ac)]:return Tt;case x[_0x275136(0x18f)]:return Rt;default:throw new Error(_0x275136(0x1cc)+_0x57654a);}}};Ue=vr([_t(0x0,_0x2c1848(_0x1637c5)),_t(0x1,_0x2c1848(ae)),_t(0x2,_0x52988f)],Ue);const ls=['purple300','jiqing500',_0x5b7eaf(0xad),_0x5b7eaf(0x11c),'blue400',_0x5b7eaf(0x1f1)];class Ft extends _0x61b58b{constructor(){const _0x57eac1=_0x5b7eaf;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x57eac1(0x1bb),0x0);}['assignAColorForMemberID'](_0x13d0eb){const _0x277de6=_0x5b7eaf;if(this[_0x277de6(0x28d)]['has'](_0x13d0eb))return this['_assignedColors'][_0x277de6(0x2dc)](_0x13d0eb);const _0x276d45=ls[this['_colorIndex']];return this[_0x277de6(0x1bb)]=(this[_0x277de6(0x1bb)]+0x1)%ls[_0x277de6(0x143)],this[_0x277de6(0x28d)][_0x277de6(0x1ea)](_0x13d0eb,_0x276d45),_0x276d45;}}var Ir=Object[_0x5b7eaf(0x3b0)],Er=Object[_0x5b7eaf(0x25b)],Cr=(_0x578d7b,_0x2f335a,_0x2659b8,_0x1c447b)=>{const _0x410313=_0x5b7eaf;for(var _0x4906eb=_0x1c447b>0x1?void 0x0:_0x1c447b?Er(_0x2f335a,_0x2659b8):_0x2f335a,_0x42d83b=_0x578d7b[_0x410313(0x143)]-0x1,_0x1ffe15;_0x42d83b>=0x0;_0x42d83b--)(_0x1ffe15=_0x578d7b[_0x42d83b])&&(_0x4906eb=(_0x1c447b?_0x1ffe15(_0x2f335a,_0x2659b8,_0x4906eb):_0x1ffe15(_0x4906eb))||_0x4906eb);return _0x1c447b&&_0x4906eb&&Ir(_0x2f335a,_0x2659b8,_0x4906eb),_0x4906eb;},de=(_0x35edc8,_0x56c6d6)=>(_0x48ec5b,_0x4546c9)=>_0x56c6d6(_0x48ec5b,_0x4546c9,_0x35edc8);const br=0x12c,Tr=0x64,Rr=()=>{let _0x1ce90f=[],_0x34a529=!0x1;return _0x4147b9=>{const _0x2b5e44=_0x4581;_0x1ce90f[_0x2b5e44(0x2cb)](_0x4147b9),_0x34a529||(_0x34a529=!0x0,setTimeout(()=>{const _0x3eedbb=_0x2b5e44;_0x1ce90f[_0x3eedbb(0x215)](_0x57fc8c=>_0x57fc8c()),_0x1ce90f=[],_0x34a529=!0x1;}));};};let Ot=class extends _0x33f191{constructor(_0x314cf6,_0x32cdba,_0x5026b7,_0x54d93b,_0x4345f3,_0xa48ee0,_0x447e18,_0x34f434){const _0xb2bee7=_0x5b7eaf;super(),l(this,_0xb2bee7(0x129),!0x1),l(this,_0xb2bee7(0x1cb),!0x1),l(this,_0xb2bee7(0x22c),new _0xdb5176(new Map())),l(this,_0xb2bee7(0xc4),this[_0xb2bee7(0x22c)][_0xb2bee7(0x3a7)]()),l(this,_0xb2bee7(0x3e3),new _0xdb5176([])),l(this,_0xb2bee7(0x25d),this[_0xb2bee7(0x3e3)]['pipe'](_0x46ac8e(br))),l(this,'_updateLocalCursor',_0x4fa622((_0x152c6c,_0x3f457a)=>{const _0x11ba79=_0xb2bee7,_0x134eac={'eventID':_0x47275c[_0x11ba79(0x189)],'data':{'unitID':this[_0x11ba79(0x2e3)],'memberID':this[_0x11ba79(0x230)]['getMemberID'](),'selection':_0x5c5889(_0x152c6c,_0x3f457a['range'])}};this[_0x11ba79(0x230)][_0x11ba79(0x287)](_0x134eac,this[_0x11ba79(0x2e3)]);},Tr)),(this['unitID']=_0x314cf6,this[_0xb2bee7(0x230)]=_0x32cdba,this[_0xb2bee7(0x27d)]=_0x5026b7,this['_colorAssignService']=_0x54d93b,this[_0xb2bee7(0x361)]=_0x4345f3,this[_0xb2bee7(0xba)]=_0xa48ee0,this[_0xb2bee7(0x204)]=_0x447e18,this[_0xb2bee7(0x2a6)]=_0x34f434);}get[_0x5b7eaf(0x368)](){const _0x36da82=_0x5b7eaf;return this[_0x36da82(0x22c)]['getValue']();}get[_0x5b7eaf(0x249)](){const _0x2273a5=_0x5b7eaf;return this[_0x2273a5(0x3e3)][_0x2273a5(0x1a6)]();}[_0x5b7eaf(0xf8)](){const _0x52f472=_0x5b7eaf;super[_0x52f472(0xf8)](),this['_cursorInfo$'][_0x52f472(0x3ef)](new Map()),this[_0x52f472(0x22c)][_0x52f472(0x213)](),this[_0x52f472(0x3e3)][_0x52f472(0x3ef)]([]),this[_0x52f472(0x3e3)]['complete']();}[_0x5b7eaf(0xda)](){const _0x590ab6=_0x5b7eaf;this[_0x590ab6(0x1cb)]||(this[_0x590ab6(0x1cb)]=!0x0,this['_session'][_0x590ab6(0x1e4)][_0x590ab6(0x1b6)](_0x53c8e3(this[_0x590ab6(0x2cf)]))[_0x590ab6(0x113)](_0x54ac91=>{const _0x31a6b4=_0x590ab6;_0x54ac91===W['ONLINE']?this[_0x31a6b4(0x222)]():this[_0x31a6b4(0x245)]();}),this[_0x590ab6(0x230)][_0x590ab6(0x375)]['pipe'](_0x53c8e3(this[_0x590ab6(0x2cf)]))['subscribe'](_0xa1a4a0=>{const _0x427bc6=_0x590ab6,_0x42830c=_0xa1a4a0[_0x427bc6(0x1a0)];_0x42830c===_0x47275c[_0x427bc6(0x189)]&&this[_0x427bc6(0x2af)](_0xa1a4a0),_0x42830c===_0x47275c['USERS_LEAVE']&&this[_0x427bc6(0x33f)](_0xa1a4a0);}),this[_0x590ab6(0x23a)](),this[_0x590ab6(0x255)](this['_commandService'][_0x590ab6(0x9a)](_0xeecaad=>{const _0x3e31e4=_0x590ab6;if(this[_0x3e31e4(0x129)]&&_0xeecaad['id']===_0x228778['id']&&_0xeecaad[_0x3e31e4(0x14c)][_0x3e31e4(0x166)]===this[_0x3e31e4(0x2e3)]){const _0x3e161d=_0xeecaad[_0x3e31e4(0x14c)];this[_0x3e31e4(0x323)](_0x3e161d[_0x3e31e4(0x2d6)],_0x3e161d[_0x3e31e4(0x19d)][0x0]);}})));}[_0x5b7eaf(0x2af)](_0x5667f1){const _0x3fa44d=_0x5b7eaf;var _0x31ac30,_0x1775b9;const {memberID:_0x3cc483,selection:_0x55c712}=_0x5667f1['data'],{sheetName:_0x14d39f,range:_0x7435c6}=_0xb2f3c2(_0x55c712),_0x116700={'name':(_0x1775b9=(_0x31ac30=this['_memberService'][_0x3fa44d(0x18d)](this['unitID'],_0x3cc483))==null?void 0x0:_0x31ac30[_0x3fa44d(0x193)])!=null?_0x1775b9:_0x3fa44d(0x142),'range':this[_0x3fa44d(0x3bc)](_0x14d39f,_0x7435c6),'sheetID':_0x14d39f,'color':this[_0x3fa44d(0x1bd)][_0x3fa44d(0x159)](_0x3cc483),'selection':_0x55c712},_0x57c509=this[_0x3fa44d(0x368)];_0x57c509['set'](_0x3cc483,_0x116700),this[_0x3fa44d(0x22c)][_0x3fa44d(0x3ef)](_0x57c509);}[_0x5b7eaf(0x33f)](_0x59a3a5){const _0x5cdf3e=_0x5b7eaf,{memberID:_0x16022c}=_0x59a3a5[_0x5cdf3e(0x2da)],_0x7cf597=this[_0x5cdf3e(0x368)];_0x7cf597['delete'](_0x16022c),this[_0x5cdf3e(0x22c)]['next'](_0x7cf597);}[_0x5b7eaf(0x3bc)](_0x3d0bd8,_0x47779f){const _0x327940=_0x5b7eaf;var _0x42e331,_0x4e804b;const _0x4d85e1=(_0x4e804b=(_0x42e331=this['_univerInstanceService'][_0x327940(0xb1)](this['unitID']))==null?void 0x0:_0x42e331[_0x327940(0x1d4)](_0x3d0bd8))==null?void 0x0:_0x4e804b['getMergeData']();return(_0x4d85e1==null?void 0x0:_0x4d85e1[_0x327940(0xd0)](_0x19bf59=>_0x5d35ef[_0x327940(0xe1)](_0x19bf59,_0x47779f)))||_0x47779f;}[_0x5b7eaf(0x23a)](){const _0x3d64cd=_0x5b7eaf,_0x2b3bb7=new _0x3eb24f(),_0x4b8ed5=Rr(),_0x5d4bbb=()=>{const _0x1111db=_0x4581;_0x2b3bb7[_0x1111db(0xf8)]();const _0x2e98f3=(_0x30c33b,_0x12250d,_0x28f17b,_0x3119c4)=>{const _0x1065b3=_0x1111db;let _0x26ae7f=[];switch(_0x30c33b['id']){case _0x2643ca[_0x1065b3(0xec)]:{_0x26ae7f=_0x14e037(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x281)]:{_0x26ae7f=_0x28fa28(_0x30c33b,_0x3119c4);break;}case _0x2643ca['InsertColCommandId']:{_0x26ae7f=_0x1f3c90(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x2e5)]:{_0x26ae7f=_0x10e41d(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x339)]:{_0x26ae7f=_0x598b24(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x3ad)]:{_0x26ae7f=_0x6e3f61(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x3a5)]:{_0x26ae7f=_0x117f9c(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x378)]:{_0x26ae7f=_0x3dfc09(_0x30c33b,_0x3119c4);break;}case _0x2643ca[_0x1065b3(0x3dd)]:{_0x26ae7f=_0x1e7d60(_0x30c33b,_0x3119c4);break;}}const _0x31f0d6=_0x1e6099(_0x26ae7f,_0x3119c4),_0x9bd003=this[_0x1065b3(0x368)][_0x1065b3(0x2dc)](_0x12250d);if(_0x9bd003&&_0x31f0d6){const _0x2527a9={..._0x9bd003,'range':_0x31f0d6};this['cursorInfo'][_0x1065b3(0x1ea)](_0x12250d,_0x2527a9),_0x4b8ed5(()=>{const _0x17fbae=_0x1065b3,_0x27ca28=this[_0x17fbae(0x2a6)][_0x17fbae(0x345)](_0x31f0d6,_0x1a4533=>(_0x27ca28[_0x17fbae(0xf8)](),_0x2e98f3(_0x1a4533,_0x12250d,_0x28f17b,_0x31f0d6)));_0x2b3bb7[_0x17fbae(0x277)](_0x27ca28);});}return{'redos':[],'undos':[]};};this[_0x1111db(0x368)][_0x1111db(0x215)]((_0x58084d,_0x49d52c)=>{const _0x5299d3=_0x1111db,{range:_0x5152b0,sheetID:_0x167b08}=_0x58084d,_0xa11e61=this[_0x5299d3(0x2a6)][_0x5299d3(0x345)](_0x5152b0,_0x2593ae=>(_0xa11e61[_0x5299d3(0xf8)](),_0x2e98f3(_0x2593ae,_0x49d52c,_0x167b08,_0x5152b0)));_0x2b3bb7[_0x5299d3(0x277)](_0xa11e61);});};this[_0x3d64cd(0x255)](_0xa7e5b7(this[_0x3d64cd(0x22c)][_0x3d64cd(0x113)](()=>{_0x5d4bbb();})));}[_0x5b7eaf(0x222)](){const _0x3699b5=_0x5b7eaf;var _0x208f58,_0x28d7bd;if(this[_0x3699b5(0x129)]=!0x0,((_0x208f58=this['_univerInstanceService'][_0x3699b5(0x233)]())==null?void 0x0:_0x208f58[_0x3699b5(0xf1)]())!==this[_0x3699b5(0x2e3)])return;const _0x3f8283=(_0x28d7bd=this[_0x3699b5(0x27d)][_0x3699b5(0x2dc)](_0x12a4eb)['getCurrentSelections']())==null?void 0x0:_0x28d7bd[0x0],_0x236cd3=this[_0x3699b5(0xba)]['getCurrentUnitForType'](_0x275c2c[_0x3699b5(0x18f)])[_0x3699b5(0xf6)]();_0x3f8283&&_0x236cd3&&this['_updateLocalCursor'](_0x236cd3['getSheetId'](),_0x3f8283);}[_0x5b7eaf(0x245)](){this['_online']=!0x1;}};Ot=Cr([de(0x2,_0x2c1848(_0x1637c5)),de(0x3,_0x2c1848(Ft)),de(0x4,_0x2c1848(oe)),de(0x5,_0x52988f),de(0x6,_0x2521f5),de(0x7,_0x2c1848(_0x2b89cb))],Ot);var Or=Object[_0x5b7eaf(0x3b0)],Dr=Object[_0x5b7eaf(0x25b)],wr=(_0x580d00,_0x569567,_0xa8853,_0xb4ccd2)=>{for(var _0x2535d4=_0xb4ccd2>0x1?void 0x0:_0xb4ccd2?Dr(_0x569567,_0xa8853):_0x569567,_0x37f520=_0x580d00['length']-0x1,_0x50d53a;_0x37f520>=0x0;_0x37f520--)(_0x50d53a=_0x580d00[_0x37f520])&&(_0x2535d4=(_0xb4ccd2?_0x50d53a(_0x569567,_0xa8853,_0x2535d4):_0x50d53a(_0x2535d4))||_0x2535d4);return _0xb4ccd2&&_0x2535d4&&Or(_0x569567,_0xa8853,_0x2535d4),_0x2535d4;},se=(_0x166b54,_0x2b6983)=>(_0x5b10da,_0x2086bb)=>_0x2b6983(_0x5b10da,_0x2086bb,_0x166b54);const Pr=0x12c,Nr=0x64;let Dt=class extends _0x33f191{constructor(_0x346831,_0x56ff64,_0x394b1e,_0x3aa7e1,_0xbb710a,_0x292782,_0x1a6891,_0x2b05ec,_0x2c620c){const _0x3a5e05=_0x5b7eaf;super(),l(this,_0x3a5e05(0x129),!0x1),l(this,_0x3a5e05(0x1cb),!0x1),l(this,_0x3a5e05(0x22c),new _0xdb5176(new Map())),l(this,_0x3a5e05(0xc4),this['_cursorInfo$'][_0x3a5e05(0x3a7)]()),l(this,_0x3a5e05(0x3e3),new _0xdb5176([])),l(this,_0x3a5e05(0x25d),this[_0x3a5e05(0x3e3)][_0x3a5e05(0x1b6)](_0x46ac8e(Pr))),l(this,'_updateLocalCursor',_0x4fa622(_0x5e73d4=>{const _0x5cf843=_0x3a5e05,_0x307dfa={'eventID':_0x47275c[_0x5cf843(0x189)],'data':{'unitID':this[_0x5cf843(0x2e3)],'memberID':this[_0x5cf843(0x230)][_0x5cf843(0x11e)](),'selection':js(_0x5e73d4)}};this[_0x5cf843(0x230)]['send'](_0x307dfa,this[_0x5cf843(0x2e3)]);},Nr)),(this[_0x3a5e05(0x2e3)]=_0x346831,this[_0x3a5e05(0x230)]=_0x56ff64,this[_0x3a5e05(0x27d)]=_0x394b1e,this['_colorAssignService']=_0x3aa7e1,this['_memberService']=_0xbb710a,this[_0x3a5e05(0x3f5)]=_0x292782,this[_0x3a5e05(0x2ef)]=_0x1a6891,this[_0x3a5e05(0xba)]=_0x2b05ec,this[_0x3a5e05(0x204)]=_0x2c620c);}get[_0x5b7eaf(0x368)](){const _0x33c7a4=_0x5b7eaf;return this['_cursorInfo$'][_0x33c7a4(0x1a6)]();}get[_0x5b7eaf(0x249)](){const _0x592549=_0x5b7eaf;return this[_0x592549(0x3e3)]['getValue']();}[_0x5b7eaf(0xf8)](){const _0x372568=_0x5b7eaf;super[_0x372568(0xf8)](),this['_cursorInfo$'][_0x372568(0x3ef)](new Map()),this[_0x372568(0x22c)][_0x372568(0x213)](),this[_0x372568(0x3e3)][_0x372568(0x3ef)]([]),this[_0x372568(0x3e3)][_0x372568(0x213)]();}['init'](){const _0x1cd792=_0x5b7eaf;this[_0x1cd792(0x1cb)]||(this[_0x1cd792(0x1cb)]=!0x0,this[_0x1cd792(0x230)]['sessionStatus$']['pipe'](_0x53c8e3(this[_0x1cd792(0x2cf)]))[_0x1cd792(0x113)](_0x4110d7=>{const _0x48c800=_0x1cd792;_0x4110d7===W['ONLINE']?this[_0x48c800(0x222)]():this[_0x48c800(0x245)]();}),this[_0x1cd792(0x230)][_0x1cd792(0x375)][_0x1cd792(0x1b6)](_0x53c8e3(this['dispose$']))[_0x1cd792(0x113)](_0x471fd7=>{const _0x3fbbdd=_0x1cd792,_0x429974=_0x471fd7[_0x3fbbdd(0x1a0)];_0x429974===_0x47275c[_0x3fbbdd(0x189)]&&this[_0x3fbbdd(0x2af)](_0x471fd7),_0x429974===_0x47275c[_0x3fbbdd(0x3d2)]&&this[_0x3fbbdd(0x33f)](_0x471fd7);}),this[_0x1cd792(0x255)](this[_0x1cd792(0x204)][_0x1cd792(0x9a)](_0x40c4b4=>{const _0x47c03e=_0x1cd792,_0x10d34f=_0x40c4b4[_0x47c03e(0x14c)];_0x10d34f!=null&&this[_0x47c03e(0x129)]&&_0x40c4b4['id']===_0x2eec51['id']&&_0x10d34f[_0x47c03e(0x166)]===this['unitID']&&_0x10d34f[_0x47c03e(0x16c)]===!0x1&&this['_updateLocalCursor'](_0x10d34f[_0x47c03e(0x2f4)]);})),this[_0x1cd792(0x3f5)][_0x1cd792(0x146)][_0x1cd792(0x1b6)](_0x53c8e3(this['dispose$']))[_0x1cd792(0x113)](_0x20fe77=>{const _0x5a9cf8=_0x1cd792;if((_0x20fe77==null?void 0x0:_0x20fe77[_0x5a9cf8(0x2e3)])!==this['unitID'])return;const _0x5ecb00={'eventID':_0x47275c['UPDATE_CURSOR'],'data':_0x20fe77};this[_0x5a9cf8(0x2af)](_0x5ecb00);}),this[_0x1cd792(0x255)](this['_commandService'][_0x1cd792(0x9a)](_0x25c02a=>{const _0x34fe4f=_0x1cd792;if(_0x25c02a[_0x34fe4f(0x14c)]==null)return;const _0x414956=_0x25c02a[_0x34fe4f(0x14c)];if(_0x25c02a['id']!==_0x193233['id']||_0x414956['unitId']!==this[_0x34fe4f(0x2e3)])return;const _0x165c62={'id':_0x34fe4f(0x1b5),'params':_0x414956},_0x389e2f=this[_0x34fe4f(0x368)];for(const [_0xf10cb9,_0x2684de]of _0x389e2f){const _0x3f9f3a={'id':_0x34fe4f(0x1b5),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2684de['ranges']}},_0x48b06e=this[_0x34fe4f(0x2ef)][_0x34fe4f(0xaa)](_0x165c62,_0x3f9f3a,!0x1);if(_0x43078a(_0x48b06e))throw _0x48b06e['error'];_0x389e2f[_0x34fe4f(0x1ea)](_0xf10cb9,{..._0x2684de,'ranges':_0x48b06e[_0x34fe4f(0x246)][_0x34fe4f(0x14c)]['textRanges']});}queueMicrotask(()=>{const _0x3b88f5=_0x34fe4f;this[_0x3b88f5(0x22c)][_0x3b88f5(0x3ef)](_0x389e2f);});})));}[_0x5b7eaf(0x2af)](_0xb32004){const _0xd5488c=_0x5b7eaf;var _0x3a4335,_0x26c5e7;const {memberID:_0x32798d,selection:_0x24b291}=_0xb32004[_0xd5488c(0x2da)],_0xa4cda=or(_0x24b291),_0x3deef0=(_0x26c5e7=(_0x3a4335=this[_0xd5488c(0x361)][_0xd5488c(0x18d)](this[_0xd5488c(0x2e3)],_0x32798d))==null?void 0x0:_0x3a4335[_0xd5488c(0x193)])!=null?_0x26c5e7:_0xd5488c(0x142),_0x22fd6a={'color':this[_0xd5488c(0x1bd)][_0xd5488c(0x159)](_0x32798d),'name':_0x3deef0,'ranges':_0xa4cda},_0x1649d6=this[_0xd5488c(0x368)];_0x1649d6['set'](_0x32798d,_0x22fd6a),this[_0xd5488c(0x22c)][_0xd5488c(0x3ef)](_0x1649d6);}[_0x5b7eaf(0x33f)](_0x210148){const _0x2aa8c2=_0x5b7eaf,{memberID:_0x50f411}=_0x210148[_0x2aa8c2(0x2da)],_0x16b141=this[_0x2aa8c2(0x368)];_0x16b141[_0x2aa8c2(0xce)](_0x50f411),this[_0x2aa8c2(0x22c)][_0x2aa8c2(0x3ef)](_0x16b141);}['_toggleOnline'](){const _0x450166=_0x5b7eaf;var _0x115920;if(this['_online']=!0x0,((_0x115920=this['_univerInstanceService'][_0x450166(0x233)]())==null?void 0x0:_0x115920[_0x450166(0xf1)]())!==this[_0x450166(0x2e3)])return;const _0x54ab97=this[_0x450166(0x27d)][_0x450166(0x2dc)](_0x2dea1c)[_0x450166(0xb3)]();Array['isArray'](_0x54ab97)&&_0x54ab97[_0x450166(0x143)]>0x0&&this[_0x450166(0x323)](_0x54ab97);}[_0x5b7eaf(0x245)](){const _0x1dd65c=_0x5b7eaf;this[_0x1dd65c(0x129)]=!0x1;}};Dt=wr([se(0x2,_0x2c1848(_0x1637c5)),se(0x3,_0x2c1848(Ft)),se(0x4,_0x2c1848(oe)),se(0x5,_0x2c1848(Bt)),se(0x6,_0x364c40),se(0x7,_0x52988f),se(0x8,_0x2521f5)],Dt);var yr=Object[_0x5b7eaf(0x3b0)],Mr=Object[_0x5b7eaf(0x25b)],Ur=(_0x408f3b,_0x322aa4,_0xf16a2f,_0x124180)=>{const _0x286bdb=_0x5b7eaf;for(var _0x304e03=_0x124180>0x1?void 0x0:_0x124180?Mr(_0x322aa4,_0xf16a2f):_0x322aa4,_0x49be82=_0x408f3b[_0x286bdb(0x143)]-0x1,_0xabaada;_0x49be82>=0x0;_0x49be82--)(_0xabaada=_0x408f3b[_0x49be82])&&(_0x304e03=(_0x124180?_0xabaada(_0x322aa4,_0xf16a2f,_0x304e03):_0xabaada(_0x304e03))||_0x304e03);return _0x124180&&_0x304e03&&yr(_0x322aa4,_0xf16a2f,_0x304e03),_0x304e03;},ut=(_0xc8d667,_0x534905)=>(_0xeecd4a,_0x4f3d7a)=>_0x534905(_0xeecd4a,_0x4f3d7a,_0xc8d667);let me=class extends _0x33f191{constructor(_0x4be2cd,_0x3ba3b3,_0x2c3057){const _0x29f095=_0x5b7eaf;super(),l(this,_0x29f095(0x217),new Map()),l(this,'_entityInit$',new _0x51e21c()),(this['_univerInstanceService']=_0x4be2cd,this[_0x29f095(0x27d)]=_0x3ba3b3,this[_0x29f095(0x208)]=_0x2c3057,this['_init']());}[_0x5b7eaf(0xf8)](){const _0x107fda=_0x5b7eaf;super[_0x107fda(0xf8)](),this[_0x107fda(0x338)][_0x107fda(0x213)](),this[_0x107fda(0x217)][_0x107fda(0x215)](_0x273f61=>_0x273f61[_0x107fda(0xf8)]());}[_0x5b7eaf(0x1e3)](_0xad11d1){const _0x171b12=_0x5b7eaf;return this['_entities'][_0x171b12(0x30c)](_0xad11d1)?this[_0x171b12(0x217)][_0x171b12(0x2dc)](_0xad11d1)[_0x171b12(0xc4)]:this['_entityInit$']['pipe'](_0x4f8d22(_0x6ed82d=>_0x6ed82d['unitID']===_0xad11d1),_0x48fb69(_0x95e49=>_0x95e49[_0x171b12(0xc4)]));}['_init'](){const _0x18e32c=_0x5b7eaf;this[_0x18e32c(0xba)][_0x18e32c(0x205)](_0x275c2c[_0x18e32c(0x18f)])[_0x18e32c(0x1b6)](_0x53c8e3(this[_0x18e32c(0x2cf)]))['subscribe'](async _0x502fa2=>{const _0x477ea2=_0x18e32c,_0x1b9dee=_0x502fa2[_0x477ea2(0xf1)](),_0x2a288a=await this[_0x477ea2(0x26c)](_0x1b9dee);this[_0x477ea2(0x338)][_0x477ea2(0x3ef)](_0x2a288a),this[_0x477ea2(0x217)][_0x477ea2(0x1ea)](_0x1b9dee,_0x2a288a);}),this[_0x18e32c(0xba)][_0x18e32c(0x205)](_0x275c2c[_0x18e32c(0x3ac)])[_0x18e32c(0x1b6)](_0x53c8e3(this['dispose$']))['pipe'](_0x4f8d22(_0x412987=>!_0x412987[_0x18e32c(0xf1)]()[_0x18e32c(0x241)]('__')))[_0x18e32c(0x113)](async _0x5c59ff=>{const _0x26d99d=_0x18e32c,_0x4242ca=_0x5c59ff['getUnitId'](),_0x3739b5=await this[_0x26d99d(0x283)](_0x4242ca);this[_0x26d99d(0x338)]['next'](_0x3739b5),this[_0x26d99d(0x217)]['set'](_0x4242ca,_0x3739b5);}),_0x3b6402(this[_0x18e32c(0xba)]['getTypeOfUnitDisposed$'](_0x275c2c['UNIVER_DOC']),this['_univerInstanceService'][_0x18e32c(0x108)](_0x275c2c[_0x18e32c(0x18f)]))['pipe'](_0x53c8e3(this[_0x18e32c(0x2cf)]))[_0x18e32c(0x113)](_0x310aa7=>{const _0x1060b6=_0x18e32c,_0x4a0518=_0x310aa7['getUnitId'](),_0x56f799=this[_0x1060b6(0x217)][_0x1060b6(0x2dc)](_0x4a0518);_0x56f799&&(_0x56f799['dispose'](),this[_0x1060b6(0x217)][_0x1060b6(0xce)](_0x4a0518));});}async[_0x5b7eaf(0x26c)](_0x57bad7){const _0x2130c2=_0x5b7eaf,_0x7dfdf3=await this[_0x2130c2(0x208)][_0x2130c2(0x299)](_0x57bad7),_0x2d1d2f=this[_0x2130c2(0x27d)]['createInstance'](Ot,_0x57bad7,_0x7dfdf3);return _0x2d1d2f[_0x2130c2(0xda)](),_0x2d1d2f;}async[_0x5b7eaf(0x283)](_0x161816){const _0x2f168a=_0x5b7eaf,_0x55bab0=await this[_0x2f168a(0x208)]['requireSession'](_0x161816),_0x1b53bc=this[_0x2f168a(0x27d)][_0x2f168a(0x18a)](Dt,_0x161816,_0x55bab0);return _0x1b53bc[_0x2f168a(0xda)](),_0x1b53bc;}};me=Ur([_0x51ea65(_0x2a2247[_0x5b7eaf(0x1b4)],me),ut(0x0,_0x52988f),ut(0x1,_0x2c1848(_0x1637c5)),ut(0x2,_0x2c1848(ae))],me);const Ae=0x14,_s=0xc8,dt=0x4,Ar=0x5;function Lr(_0x319a52,_0x4d9696){const _0x28342c=_0x5b7eaf;let {radius:_0x43b1b2,width:_0x4dc5fa,height:_0x5e4e2b}=_0x4d9696;_0x43b1b2=_0x43b1b2!=null?_0x43b1b2:0x0,_0x4dc5fa=_0x4dc5fa!=null?_0x4dc5fa:0x1e,_0x5e4e2b=_0x5e4e2b!=null?_0x5e4e2b:0x1e;let _0x43f124=0x0,_0x51ef6f=0x0,_0x1b751d=0x0;_0x43f124=_0x51ef6f=_0x1b751d=Math[_0x28342c(0x2d0)](_0x43b1b2,_0x4dc5fa/0x2,_0x5e4e2b/0x2),_0x319a52[_0x28342c(0x145)](),_0x319a52[_0x28342c(0x2a9)](_0x43f124,0x0),_0x319a52['lineTo'](_0x4dc5fa-_0x51ef6f,0x0),_0x319a52[_0x28342c(0x3e6)](_0x4dc5fa-_0x51ef6f,_0x51ef6f,_0x51ef6f,Math['PI']*0x3/0x2,0x0,!0x1),_0x319a52[_0x28342c(0x9e)](_0x4dc5fa,_0x5e4e2b-_0x1b751d),_0x319a52[_0x28342c(0x3e6)](_0x4dc5fa-_0x1b751d,_0x5e4e2b-_0x1b751d,_0x1b751d,0x0,Math['PI']/0x2,!0x1),_0x319a52['lineTo'](0x0,_0x5e4e2b),_0x319a52[_0x28342c(0x9e)](0x0,_0x43f124),_0x319a52[_0x28342c(0x3e6)](_0x43f124,_0x43f124,_0x43f124,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x319a52[_0x28342c(0x2e1)](),_0x4d9696[_0x28342c(0x158)]&&(_0x319a52[_0x28342c(0x1f8)](),_0x319a52[_0x28342c(0x191)]=_0x4d9696['fill'],_0x4d9696[_0x28342c(0x2a5)]===_0x28342c(0x28c)?_0x319a52[_0x28342c(0x158)](_0x28342c(0x28c)):_0x319a52[_0x28342c(0x158)](),_0x319a52[_0x28342c(0xc8)]());}class nt extends _0x42bfc5{constructor(_0x5c88a2,_0x1d3f59){const _0x10bc15=_0x5b7eaf;super(_0x5c88a2,_0x1d3f59),l(this,_0x10bc15(0xd4)),l(this,_0x10bc15(0xe9)),(this[_0x10bc15(0xd4)]=_0x1d3f59==null?void 0x0:_0x1d3f59[_0x10bc15(0xd4)],this['text']=_0x1d3f59==null?void 0x0:_0x1d3f59[_0x10bc15(0xe9)]);}static[_0x5b7eaf(0x267)](_0x5565de,_0x55e872){const _0x5fd02a=_0x5b7eaf,{text:_0x5a842b,color:_0x2b705a}=_0x55e872;_0x5565de[_0x5fd02a(0x1f8)](),_0x5565de[_0x5fd02a(0x163)]=_0x5fd02a(0x3ff);const _0x2ae66c=_0x5565de[_0x5fd02a(0xee)](_0x5a842b)[_0x5fd02a(0xc6)],_0xe24f9b=Math[_0x5fd02a(0x2d0)](_0x2ae66c+0x2*dt,_s);Lr(_0x5565de,{'height':Ae,'radius':0x4,'width':_0xe24f9b,'fill':_0x2b705a,'evented':!0x1}),_0x5565de['fillStyle']=_0x5fd02a(0x1dc);const _0x5244ef=dt,_0x2cbadf=Ae-Ar,_0x28fb04=_s-0x2*dt;if(_0x2ae66c>_0x28fb04){let _0x455ac8='',_0x2225a8=0x0;for(const _0x466c68 of _0x5a842b){const _0x29a437=_0x5565de[_0x5fd02a(0xee)](_0x466c68)[_0x5fd02a(0xc6)];if(_0x2225a8+_0x29a437<=_0x28fb04-_0x5565de[_0x5fd02a(0xee)]('...')[_0x5fd02a(0xc6)])_0x455ac8+=_0x466c68,_0x2225a8+=_0x29a437;else{_0x455ac8+=_0x5fd02a(0x9c);break;}}_0x5565de[_0x5fd02a(0xc1)](_0x455ac8,_0x5244ef,_0x2cbadf);}else _0x5565de[_0x5fd02a(0xc1)](_0x5a842b,_0x5244ef,_0x2cbadf);_0x5565de['restore']();}['_draw'](_0x318fe3){nt['drawWith'](_0x318fe3,this);}}const ft=_0x5b7eaf(0x276),$r=_0x5b7eaf(0x3a3),jr=_0x5b7eaf(0xbb),Oe=0x6,xr=1.5,mt=0x4,Hr=1.5,kr=_0x5b7eaf(0x2fe);class us{constructor(_0x1eb4bf,_0x1c00c4,_0x422944,_0x2df8ee){const _0x39580c=_0x5b7eaf;l(this,_0x39580c(0xe0),[]),l(this,_0x39580c(0x1cf),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,'_hideTimer',null),l(this,'_eventUnsubscribe',null),(this['_cursor']=_0x1eb4bf,this[_0x39580c(0x30b)]=_0x1c00c4,this[_0x39580c(0xb0)]=_0x422944,this[_0x39580c(0x38a)]=_0x2df8ee,this[_0x39580c(0x295)]());}set[_0x5b7eaf(0xca)](_0x2b2c6c){const _0x31af03=_0x5b7eaf;_0x2b2c6c?(this[_0x31af03(0x2a0)]&&this[_0x31af03(0x2a0)]['hide'](),this[_0x31af03(0x34b)]&&this[_0x31af03(0x34b)][_0x31af03(0x2d3)]()):(this[_0x31af03(0x2a0)]&&this[_0x31af03(0x2a0)][_0x31af03(0x2d3)](),this[_0x31af03(0x34b)]&&this[_0x31af03(0x34b)]['hide']());}[_0x5b7eaf(0xf8)](){const _0x264f32=_0x5b7eaf;for(const _0x55925f of this[_0x264f32(0xe0)])_0x55925f['dispose']();this[_0x264f32(0x34b)]&&this[_0x264f32(0x34b)][_0x264f32(0xf8)](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this[_0x264f32(0x1cf)]&&this['_anchor'][_0x264f32(0xf8)](),this[_0x264f32(0x344)]&&this[_0x264f32(0x344)]();}[_0x5b7eaf(0x295)](){const _0x268664=_0x5b7eaf;var _0x53ac7b;const {_docSkeleton:_0x2ea6e7,_document:_0x5c0143}=this,{color:_0x236f95,name:_0x19df8e,ranges:_0x34161f}=this['_cursor'],_0x563cb7=_0x5c0143[_0x268664(0x320)](),{docsLeft:_0x26ad79,docsTop:_0x95a3e1}=_0x563cb7,_0x4d2227=new _0x1fe3c6(_0x563cb7,_0x2ea6e7);for(const {startOffset:_0x532c92,endOffset:_0x520567,collapsed:_0x10509f,isActive:_0x25f3a1}of _0x34161f){const _0x2d7457=_0x2ea6e7[_0x268664(0x2df)](_0x532c92),_0x2e3c66=_0x2ea6e7[_0x268664(0x2df)](_0x520567);if(_0x25f3a1){const {contentBoxPointGroup:_0x2853be}=_0x4d2227[_0x268664(0x37f)](_0x2e3c66,_0x2e3c66);if(_0x2853be[_0x268664(0x143)]===0x0)continue;this[_0x268664(0x1da)](_0x236f95,_0x2853be,_0x26ad79,_0x95a3e1,_0x19df8e),this[_0x268664(0x344)]=this['_handleHover']();}if(!_0x10509f&&_0x2d7457&&_0x2e3c66){if(_0x436c3a(_0x2d7457,_0x2e3c66)){const _0x2055dd=new _0x13f9a5(_0x563cb7,_0x2ea6e7),{pointGroup:_0x31d314}=(_0x53ac7b=_0x2055dd[_0x268664(0x37f)](_0x2d7457,_0x2e3c66))!=null?_0x53ac7b:{};if(_0x31d314==null||_0x31d314[_0x268664(0x143)]===0x0)continue;this[_0x268664(0x2d5)](_0x236f95,_0x31d314,_0x26ad79,_0x95a3e1);}else{const {contentBoxPointGroup:_0x3e871a}=_0x4d2227['getRangePointData'](_0x2d7457,_0x2e3c66);if(_0x3e871a[_0x268664(0x143)]===0x0)continue;this[_0x268664(0x2f8)](_0x236f95,_0x3e871a,_0x26ad79,_0x95a3e1);}}}}[_0x5b7eaf(0x1da)](_0x4f4789,_0x38a491,_0x4d202b,_0x258124,_0x556809){const _0x2abf5e=_0x5b7eaf,_0x5d469e=this[_0x2abf5e(0x35d)](_0x38a491),{left:_0x3cc9c5,top:_0x2bf48d,height:_0x330e05}=_0x5d469e,_0x5db5c1=this['_getScale'](),_0x3b03cb=Hr/_0x5db5c1,_0x1c77c3=new _0x3ec5cc(ft+_0x23d1c2[_0x2abf5e(0x23b)](Oe),{'left':_0x3cc9c5+_0x4d202b-_0x3b03cb,'top':_0x2bf48d+_0x258124,'height':_0x330e05,'width':xr,'fill':_0x4f4789||_0x318853(_0x5bc0e1[_0x2abf5e(0x26b)],0x0),'strokeWidth':_0x3b03cb,'stroke':kr,'evented':!0x0});this[_0x2abf5e(0x1cf)]=_0x1c77c3,this[_0x2abf5e(0x30b)][_0x2abf5e(0xdf)](_0x1c77c3,_0xe8336a);const _0x4ad2f1=new _0x3ec5cc(ft+_0x23d1c2[_0x2abf5e(0x23b)](Oe),{'left':_0x3cc9c5+_0x4d202b-_0x3b03cb,'top':_0x2bf48d+_0x258124-mt/0x2,'height':mt,'width':mt,'fill':_0x4f4789||_0x318853(_0x5bc0e1[_0x2abf5e(0x26b)],0x0),'strokeWidth':0x0,'stroke':_0x4f4789||_0x318853(_0x5bc0e1[_0x2abf5e(0x26b)],0x0),'evented':!0x1});this[_0x2abf5e(0x2a0)]=_0x4ad2f1,this[_0x2abf5e(0x30b)]['addObject'](_0x4ad2f1,_0xe8336a);const _0x192449=new nt(ft+_0x23d1c2[_0x2abf5e(0x23b)](Oe),{'left':_0x3cc9c5+_0x4d202b-_0x3b03cb,'top':_0x2bf48d+_0x258124-Ae,'text':_0x556809,'color':_0x4f4789});this[_0x2abf5e(0x34b)]=_0x192449,this[_0x2abf5e(0x30b)][_0x2abf5e(0xdf)](_0x192449,_0xe8336a),this['_hover']=!0x1;}['_handleHover'](){const _0x293f5f=_0x5b7eaf,_0x2f09a1=this[_0x293f5f(0x1cf)][_0x293f5f(0xbd)][_0x293f5f(0x36c)](()=>{const _0x32cca6=_0x293f5f;this[_0x32cca6(0xca)]=!0x0;}),_0x46d119=this[_0x293f5f(0x1cf)][_0x293f5f(0x1a8)][_0x293f5f(0x36c)](()=>{const _0x592455=_0x293f5f;this[_0x592455(0x1de)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0xd516ea=_0x592455;this[_0xd516ea(0xca)]=!0x1;},0x7d0);});return()=>{const _0x2e0014=_0x293f5f;_0x2f09a1[_0x2e0014(0x1ce)](),_0x46d119[_0x2e0014(0x1ce)]();};}[_0x5b7eaf(0x2f8)](_0x5f4b3e,_0x693e8b,_0xc6bef1,_0x513b8a){const _0x5f224c=_0x5b7eaf,_0x21cbd9=new _0x231cf3(_0x5f4b3e)['setAlpha'](0.2)[_0x5f224c(0x18b)](),_0x48029e=new _0x1ba1bf($r+_0x23d1c2[_0x5f224c(0x23b)](Oe),{'pointsGroup':_0x693e8b,'fill':_0x21cbd9||_0x318853(_0x5bc0e1[_0x5f224c(0x26b)],0.2),'left':_0xc6bef1,'top':_0x513b8a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f224c(0xe0)][_0x5f224c(0x2cb)](_0x48029e),this[_0x5f224c(0x30b)]['addObject'](_0x48029e,_0xe8336a);}[_0x5b7eaf(0x2d5)](_0x408402,_0x1fbeab,_0x7675ac,_0x2fce23){const _0x301221=_0x5b7eaf,_0x552f57=new _0x231cf3(_0x408402)['setAlpha'](0.2)[_0x301221(0x18b)](),_0x2eb6f8=new _0x1ba1bf(jr+_0x23d1c2[_0x301221(0x23b)](Oe),{'pointsGroup':_0x1fbeab,'fill':_0x552f57||_0x318853(_0x5bc0e1[_0x301221(0x26b)],0.2),'left':_0x7675ac,'top':_0x2fce23,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x301221(0x2cb)](_0x2eb6f8),this['_scene'][_0x301221(0xdf)](_0x2eb6f8,_0xe8336a);}['_getAnchorBounding'](_0x16ad7b){const _0x145a22=_0x16ad7b[0x0],_0x7579d9=_0x145a22[0x0],_0x8034a2=_0x145a22[0x2],{x:_0x3acba4,y:_0x233793}=_0x7579d9,{x:_0x18df65,y:_0x3f0adb}=_0x8034a2;return{'left':_0x3acba4,'top':_0x233793,'width':_0x18df65-_0x3acba4,'height':_0x3f0adb-_0x233793};}[_0x5b7eaf(0x1bc)](){const _0xe58590=_0x5b7eaf,{scaleX:_0x49db5f,scaleY:_0x13e6a9}=this[_0xe58590(0x30b)][_0xe58590(0x26f)]();return Math[_0xe58590(0x36e)](_0x49db5f,_0x13e6a9);}}var Br=Object['defineProperty'],Vr=Object[_0x5b7eaf(0x25b)],Fr=(_0x5cb92b,_0x101725,_0xdf8673,_0x35a0df)=>{for(var _0x2cb66b=_0x35a0df>0x1?void 0x0:_0x35a0df?Vr(_0x101725,_0xdf8673):_0x101725,_0x1a66c4=_0x5cb92b['length']-0x1,_0x1336d8;_0x1a66c4>=0x0;_0x1a66c4--)(_0x1336d8=_0x5cb92b[_0x1a66c4])&&(_0x2cb66b=(_0x35a0df?_0x1336d8(_0x101725,_0xdf8673,_0x2cb66b):_0x1336d8(_0x2cb66b))||_0x2cb66b);return _0x35a0df&&_0x2cb66b&&Br(_0x101725,_0xdf8673,_0x2cb66b),_0x2cb66b;},ke=(_0x4da4ce,_0x57aa19)=>(_0x256bfe,_0x1fb0b7)=>_0x57aa19(_0x256bfe,_0x1fb0b7,_0x4da4ce);let We=class extends _0x33f191{constructor(_0x1ed49e,_0x3c2b99,_0x528f84,_0x3d1213,_0xd366cc){const _0x5725d8=_0x5b7eaf;super(),l(this,_0x5725d8(0x31c),[]),l(this,_0x5725d8(0x3fc),[]),(this[_0x5725d8(0x147)]=_0x1ed49e,this[_0x5725d8(0x2c2)]=_0x3c2b99,this['_collabCursorController']=_0x528f84,this['_commandService']=_0x3d1213,this[_0x5725d8(0x13d)]=_0xd366cc,this[_0x5725d8(0x1cb)]());}[_0x5b7eaf(0x1cb)](){const _0x592a15=_0x5b7eaf,_0x2b5adb=this[_0x592a15(0x147)][_0x592a15(0x166)],_0x413991=this[_0x592a15(0x2c2)];this[_0x592a15(0x255)](_0x43e523([this[_0x592a15(0x279)][_0x592a15(0x1e3)](_0x2b5adb),this[_0x592a15(0x13d)][_0x592a15(0xd5)]])[_0x592a15(0x1b6)](_0x5a8d9c(([_0x24bc51,_0x524e59])=>({'skeleton':_0x413991['getSkeleton'](),'cursors':[..._0x24bc51[_0x592a15(0x3f1)]()][_0x592a15(0x2bd)](_0x46645f=>({..._0x46645f,'color':_0x524e59[_0x46645f['color']]}))})))[_0x592a15(0x113)](_0x375cb5=>{const _0x2f70f8=_0x592a15;if(this['_removeCollabCursors'](),_0x375cb5){const {skeleton:_0x3354d4,cursors:_0x65be09}=_0x375cb5;this[_0x2f70f8(0x198)](_0x3354d4,_0x65be09);}})),this[_0x592a15(0x318)](),this[_0x592a15(0x25a)]();}[_0x5b7eaf(0x198)](_0x190708,_0x27b1ff){const _0x83bc58=_0x5b7eaf,{scene:_0x28a3c4,mainComponent:_0x7de96e}=this['_context'],_0x257457=_0x27b1ff[_0x83bc58(0x309)](_0x4122c4=>new us(_0x4122c4,_0x28a3c4,_0x190708,_0x7de96e));this['_cursorShapes']=_0x257457,this['_cursors']=_0x27b1ff;}[_0x5b7eaf(0xc2)](){const _0x305e81=_0x5b7eaf;this[_0x305e81(0x2c0)]();const {scene:_0x2de12f,mainComponent:_0x4859c6}=this[_0x305e81(0x147)],_0xf630b8=this['_docSkeletonManagerService'][_0x305e81(0x1f4)](),_0xe0a6c3=this[_0x305e81(0x3fc)]['map'](_0x4d8e6e=>new us(_0x4d8e6e,_0x2de12f,_0xf630b8,_0x4859c6));this['_cursorShapes']=_0xe0a6c3;}[_0x5b7eaf(0x2c0)](){const _0xfb2a2b=_0x5b7eaf;this['_cursorShapes'][_0xfb2a2b(0x215)](_0x1f01e8=>_0x1f01e8[_0xfb2a2b(0xf8)]()),this['_cursorShapes']=[];}[_0x5b7eaf(0x25a)](){const _0x2bb23a=_0x5b7eaf,_0x10ad6a=[_0x3215b2['id']];this[_0x2bb23a(0x255)](this[_0x2bb23a(0x204)][_0x2bb23a(0x9a)](_0x240c62=>{const _0xfc55d0=_0x2bb23a;_0x10ad6a[_0xfc55d0(0x12b)](_0x240c62['id'])&&_0x240c62[_0xfc55d0(0x14c)][_0xfc55d0(0x166)]===this['_context'][_0xfc55d0(0x166)]&&this[_0xfc55d0(0xc2)]();}));}[_0x5b7eaf(0x318)](){const _0x46296f=_0x5b7eaf;this[_0x46296f(0x255)](_0x49e533(this['_context'][_0x46296f(0x1b3)][_0x46296f(0x36a)])[_0x46296f(0x1b6)](_0x324b00(_0x481469=>_0x481469[_0x46296f(0x21b)]===_0x5c6602[_0x46296f(0x259)]),_0x1a508f(0x10))[_0x46296f(0x113)](()=>{this['_refreshCollabCursors']();}));}};We=Fr([_0x51ea65(_0x2a2247['Steady'],We),ke(0x1,_0x2c1848(_0x38c1fb)),ke(0x2,_0x2c1848(me)),ke(0x3,_0x2521f5),ke(0x4,_0x2c1848(_0x66a40c))],We);const Wr=0x1,Gr=1.5;class Yr extends _0x42bfc5{constructor(_0x23dc4b,_0x5a93fb){const _0x5f4d11=_0x5b7eaf;super(_0x23dc4b,_0x5a93fb),l(this,_0x5f4d11(0x311)),l(this,'_hovered',!0x1),l(this,_0x5f4d11(0x314)),l(this,'_name',''),l(this,_0x5f4d11(0x1e5),_0x5f4d11(0x2a1)),l(this,_0x5f4d11(0x2c7)),(_0x5a93fb&&this['setShapeProps'](_0x5a93fb),this[_0x5f4d11(0xbd)][_0x5f4d11(0x36c)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x5f4d11(0x36c)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x5de982){const _0x55e17b=_0x5b7eaf;var _0x20cac0,_0x1fb256,_0x3b1604,_0x5b07a2,_0x188f15,_0xcb7544;this['_color']=(_0x20cac0=_0x5de982[_0x55e17b(0xd4)])!=null?_0x20cac0:this[_0x55e17b(0x311)],this[_0x55e17b(0x1f9)]=(_0x1fb256=_0x5de982[_0x55e17b(0x337)])!=null?_0x1fb256:this['_hovered'],this['_range']=(_0x3b1604=_0x5de982[_0x55e17b(0xa6)])!=null?_0x3b1604:this[_0x55e17b(0x314)],this[_0x55e17b(0xf3)]=(_0x5b07a2=_0x5de982[_0x55e17b(0x193)])!=null?_0x5b07a2:this[_0x55e17b(0xf3)],this[_0x55e17b(0x1e5)]=(_0x188f15=_0x5de982[_0x55e17b(0x20a)])!=null?_0x188f15:this[_0x55e17b(0x1e5)],this[_0x55e17b(0x2c7)]=(_0xcb7544=_0x5de982[_0x55e17b(0x144)])!=null?_0xcb7544:this[_0x55e17b(0x2c7)],this['transformByState']({'width':_0x5de982[_0x55e17b(0xc6)],'height':_0x5de982['height']});}['onMouseMove'](_0x128097){const _0x4cfac3=_0x5b7eaf,{row:_0x106cdf,column:_0x3fcfd7}=_0x128097;if(_0x106cdf>=this[_0x4cfac3(0x314)]['startRow']&&_0x106cdf<=this[_0x4cfac3(0x314)][_0x4cfac3(0x352)]&&_0x3fcfd7>=this[_0x4cfac3(0x314)][_0x4cfac3(0x173)]&&_0x3fcfd7<=this[_0x4cfac3(0x314)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5b7eaf(0x29c)](_0x553edb){return!0x1;}[_0x5b7eaf(0x23d)](_0x167ef9){const _0x313c74=_0x5b7eaf;_0x3ec5cc[_0x313c74(0x267)](_0x167ef9,{'width':this[_0x313c74(0xc6)],'height':this[_0x313c74(0xf2)],'strokeWidth':Gr,'stroke':this[_0x313c74(0x311)],'evented':!0x1,'fill':this[_0x313c74(0x2c7)]}),this[_0x313c74(0x1f9)]&&(_0x167ef9[_0x313c74(0x1f8)](),_0x167ef9[_0x313c74(0x33a)](0x1,0x0,0x0,0x1,this[_0x313c74(0xc6)],this[_0x313c74(0x1e5)]===_0x313c74(0x196)?0x0:-Ae),nt[_0x313c74(0x267)](_0x167ef9,{'text':this[_0x313c74(0xf3)],'color':this[_0x313c74(0x311)]}),_0x167ef9[_0x313c74(0xc8)]());}}var Kr=Object[_0x5b7eaf(0x3b0)],Xr=Object[_0x5b7eaf(0x25b)],Jr=(_0x122f90,_0x2ab776,_0x224255,_0x28a457)=>{const _0x42c03e=_0x5b7eaf;for(var _0x45232f=_0x28a457>0x1?void 0x0:_0x28a457?Xr(_0x2ab776,_0x224255):_0x2ab776,_0x2260cb=_0x122f90[_0x42c03e(0x143)]-0x1,_0x9a1b17;_0x2260cb>=0x0;_0x2260cb--)(_0x9a1b17=_0x122f90[_0x2260cb])&&(_0x45232f=(_0x28a457?_0x9a1b17(_0x2ab776,_0x224255,_0x45232f):_0x9a1b17(_0x45232f))||_0x45232f);return _0x28a457&&_0x45232f&&Kr(_0x2ab776,_0x224255,_0x45232f),_0x45232f;},gt=(_0x283855,_0x4a0c53)=>(_0x4783b5,_0x465099)=>_0x4a0c53(_0x4783b5,_0x465099,_0x283855);const zr=0x1389;let wt=class extends _0x33f191{constructor(_0x5719c7,_0x2db629,_0xf45ab7,_0x5d5208){const _0x47090b=_0x5b7eaf;super(),l(this,_0x47090b(0x3fc),new Set()),l(this,_0x47090b(0x9b),null),(this[_0x47090b(0x147)]=_0x5719c7,this['_sheetSkeletonManagerService']=_0x2db629,this[_0x47090b(0x279)]=_0xf45ab7,this[_0x47090b(0x13d)]=_0x5d5208,this['_init']());}[_0x5b7eaf(0x1cb)](){const _0x17fe33=_0x5b7eaf;this[_0x17fe33(0x228)][_0x17fe33(0x2d1)]['pipe'](_0x3c9e95(this[_0x17fe33(0x2cf)]),_0x198d43(_0x2d01a9=>{const _0x549e76=_0x17fe33;if(_0x2d01a9){const _0x37661b=_0x2d01a9[_0x549e76(0x26e)];return _0x43e523(this['_collabCursorController']['getCollabCursors$'](this[_0x549e76(0x147)]['unitId']),this[_0x549e76(0x13d)][_0x549e76(0xd5)])['pipe'](_0x5a8d9c(([_0x1f0415,_0x3174f1])=>{const _0x66ccc7=new Map();return _0x1f0415['forEach']((_0x475f09,_0x107621)=>{const _0x1fd9e7=_0x4581;if(_0x475f09[_0x1fd9e7(0x2e0)]===_0x37661b){const _0x257c9b={..._0x475f09};_0x257c9b[_0x1fd9e7(0xd4)]=_0x3174f1[_0x475f09['color']],_0x66ccc7['set'](_0x107621,_0x257c9b);}}),{'skeleton':_0x2d01a9,'cursors':_0x66ccc7};}));}return _0x175cbd({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x13cd5d,cursors:_0x3a74e7})=>{const _0x24ca95=_0x17fe33;this[_0x24ca95(0x2c0)](),_0x13cd5d&&this[_0x24ca95(0x198)](_0x13cd5d,_0x3a74e7);}),this[_0x17fe33(0x228)][_0x17fe33(0x2d1)][_0x17fe33(0x113)](_0x5a8f38=>{const _0x39f159=_0x17fe33;if(_0x5a8f38==null)return;const {skeleton:_0x128bed}=_0x5a8f38,{scene:_0x3c2cdc}=this[_0x39f159(0x147)];_0x3c2cdc[_0x39f159(0x393)][_0x39f159(0x36c)](_0x4fa622(_0x12f96f=>{const _0xb2bbf3=_0x39f159;var _0x3a8c24,_0x3ba41c;const {offsetX:_0x3ac09b,offsetY:_0x288317}=_0x12f96f,{x:_0x479b6f,y:_0x1dcfa3}=_0x3c2cdc[_0xb2bbf3(0x3a2)](_0x113335[_0xb2bbf3(0x35a)]([_0x3ac09b,_0x288317])),{scaleX:_0x54ffa5,scaleY:_0x358b3f}=_0x3c2cdc[_0xb2bbf3(0x26f)](),_0x55157c=_0x3c2cdc[_0xb2bbf3(0x2c9)](_0x343862['VIEW_MAIN']),_0x280013=_0x3c2cdc[_0xb2bbf3(0x235)](_0x113335[_0xb2bbf3(0x35a)]([_0x479b6f,_0x1dcfa3]),_0x55157c),_0x53bf46=_0x128bed['getCellPositionByOffset'](_0x3ac09b,_0x288317,_0x54ffa5,_0x358b3f,_0x280013);((_0x3a8c24=this['_lastPointer'])==null?void 0x0:_0x3a8c24['column'])===_0x53bf46['column']&&((_0x3ba41c=this[_0xb2bbf3(0x9b)])==null?void 0x0:_0x3ba41c['row'])===_0x53bf46['row']||this[_0xb2bbf3(0x3fc)]['forEach'](_0x4e0806=>{const _0xe15bd2=_0xb2bbf3;_0x4e0806[_0xe15bd2(0x1be)](_0x53bf46);});},0x64));});}[_0x5b7eaf(0x198)](_0x1cb5f9,_0x259bf6){const _0x1235e3=_0x5b7eaf;var _0x2a5873;const _0x224507=(_0x2a5873=this[_0x1235e3(0x228)][_0x1235e3(0x2fc)]())==null?void 0x0:_0x2a5873['skeleton'];if(!_0x224507)return;const _0x5ed6e4=this[_0x1235e3(0xfd)]();if(!_0x5ed6e4)return;this[_0x1235e3(0x3fc)]['forEach'](_0x57584d=>{const _0x40cbd0=_0x1235e3;_0x57584d[_0x40cbd0(0xed)]();});const {scene:_0x12ad4e}=_0x5ed6e4,_0x4eb8cb=qr(Array[_0x1235e3(0xde)](_0x259bf6[_0x1235e3(0x3f1)]()))[_0x1235e3(0x309)](_0xc8c244=>{const _0x2f7503=_0x1235e3,{color:_0xa50d19,range:_0x4df1aa,name:_0x9a18e7,selection:_0x47b98c,sheetID:_0x5699de}=_0xc8c244,{startColumn:_0x595c66,startRow:_0x51c862,endColumn:_0x1f63e0,endRow:_0x2c3d67}=_0x4df1aa,_0x4175f4=_0x90ed93(_0x51c862,_0x595c66,_0x12ad4e,_0x224507),_0x3e249f=_0x90ed93(_0x2c3d67,_0x1f63e0,_0x12ad4e,_0x224507),{columnHeaderHeightAndMarginTop:_0x4c38d6}=_0x224507,{startX:_0x4b9ec1,startY:_0x2c75dc}=_0x4175f4,{endX:_0x4cbb10,endY:_0x57f195}=_0x3e249f,_0x4acd29=_0x4cbb10-_0x4b9ec1,_0x1845c1=_0x57f195-_0x2c75dc,_0x1c68ed={'labelPosition':_0x2c75dc-_0x4c38d6>=Ae?_0x2f7503(0x2a1):_0x2f7503(0x196),'sheetID':_0x5699de,'range':_0x4df1aa,'color':_0xa50d19,'name':_0x9a18e7,'selection':_0x47b98c,'left':_0x4b9ec1,'top':_0x2c75dc,'width':_0x4acd29,'height':_0x1845c1,'evented':!0x1,'zIndex':zr};return new Yr(_0x9a18e7,_0x1c68ed);});_0x12ad4e[_0x1235e3(0x227)](_0x4eb8cb,Wr),this['_cursors']=new Set(_0x4eb8cb);}[_0x5b7eaf(0x2c0)](){const _0x1a73bb=_0x5b7eaf;var _0x10d081;(_0x10d081=this['_cursors'])==null||_0x10d081[_0x1a73bb(0x215)](_0x1d5e2d=>_0x1d5e2d[_0x1a73bb(0xf8)]());}[_0x5b7eaf(0xfd)](){const _0x3b9968=_0x5b7eaf;return _0x5c33e8(this[_0x3b9968(0x147)][_0x3b9968(0x3ba)],this[_0x3b9968(0x147)]);}};wt=Jr([gt(0x1,_0x2c1848(_0x15b55c)),gt(0x2,_0x2c1848(me)),gt(0x3,_0x2c1848(_0x66a40c))],wt);function qr(_0x405b2f){const _0x1dd4fb=_0x5b7eaf,_0x44c31f=new Map();return _0x405b2f[_0x1dd4fb(0x215)](_0x5e71f0=>{const _0xc041e2=_0x1dd4fb;if(_0x44c31f[_0xc041e2(0x30c)](_0x5e71f0['selection'])){const _0x33f708=_0x44c31f[_0xc041e2(0x2dc)](_0x5e71f0[_0xc041e2(0x123)]);_0x33f708['name']+=',\x20'+_0x5e71f0[_0xc041e2(0x193)];}else _0x44c31f[_0xc041e2(0x1ea)](_0x5e71f0[_0xc041e2(0x123)],_0x5e71f0);}),Array[_0x1dd4fb(0xde)](_0x44c31f['values']());}var y=function(){return y=Object['assign']||function(_0x2c6932){const _0x42a5e7=_0x4581;for(var _0x2775b6,_0xb52a6d=0x1,_0xe4878e=arguments[_0x42a5e7(0x143)];_0xb52a6d<_0xe4878e;_0xb52a6d++){_0x2775b6=arguments[_0xb52a6d];for(var _0x3ff228 in _0x2775b6)Object[_0x42a5e7(0x325)]['hasOwnProperty'][_0x42a5e7(0x140)](_0x2775b6,_0x3ff228)&&(_0x2c6932[_0x3ff228]=_0x2775b6[_0x3ff228]);}return _0x2c6932;},y['apply'](this,arguments);},Zr=function(_0x158746,_0x18ef9d){const _0x14d81d=_0x5b7eaf;var _0x2eed07={};for(var _0x502d4d in _0x158746)Object[_0x14d81d(0x325)][_0x14d81d(0x181)][_0x14d81d(0x140)](_0x158746,_0x502d4d)&&_0x18ef9d[_0x14d81d(0x3cb)](_0x502d4d)<0x0&&(_0x2eed07[_0x502d4d]=_0x158746[_0x502d4d]);if(_0x158746!=null&&typeof Object[_0x14d81d(0x168)]==_0x14d81d(0x2c1)){for(var _0xa6b0b=0x0,_0x502d4d=Object[_0x14d81d(0x168)](_0x158746);_0xa6b0b<_0x502d4d['length'];_0xa6b0b++)_0x18ef9d[_0x14d81d(0x3cb)](_0x502d4d[_0xa6b0b])<0x0&&Object[_0x14d81d(0x325)][_0x14d81d(0x28f)][_0x14d81d(0x140)](_0x158746,_0x502d4d[_0xa6b0b])&&(_0x2eed07[_0x502d4d[_0xa6b0b]]=_0x158746[_0x502d4d[_0xa6b0b]]);}return _0x2eed07;},Wt=_0x25876f(function(_0x45e825,_0x205f74){const _0x18bf94=_0x5b7eaf;var _0x143d05=_0x45e825[_0x18bf94(0x2be)],_0x203550=_0x45e825['id'],_0x1816d2=_0x45e825[_0x18bf94(0x1af)],_0x376a1c=_0x45e825[_0x18bf94(0x327)],_0x56cdcf=Zr(_0x45e825,[_0x18bf94(0x2be),'id',_0x18bf94(0x1af),_0x18bf94(0x327)]),_0x467ead=_0x18bf94(0x1c3)[_0x18bf94(0x185)](_0x203550,'\x20')[_0x18bf94(0x185)](_0x1816d2||'')['trim'](),_0x267080=_0x4a2a3f('_'[_0x18bf94(0x185)](to()));return Hs(_0x143d05,''['concat'](_0x203550),{'defIds':_0x143d05[_0x18bf94(0x16a)],'idSuffix':_0x267080['current']},y({'ref':_0x205f74,'className':_0x467ead},_0x56cdcf),_0x376a1c);});function Hs(_0x42c12c,_0x3fb622,_0x44d6ce,_0x3a0c44,_0x469ab7){const _0xed0836=_0x5b7eaf;return _0x3cb687(_0x42c12c[_0xed0836(0xb4)],y(y({'key':_0x3fb622},Qr(_0x42c12c,_0x44d6ce,_0x469ab7)),_0x3a0c44),(eo(_0x42c12c,_0x44d6ce)[_0xed0836(0x349)]||[])['map'](function(_0x11f783,_0x2612a8){const _0x50a818=_0xed0836;return Hs(_0x11f783,''[_0x50a818(0x185)](_0x3fb622,'-')[_0x50a818(0x185)](_0x42c12c[_0x50a818(0xb4)],'-')[_0x50a818(0x185)](_0x2612a8),_0x44d6ce,void 0x0,_0x469ab7);}));}function Qr(_0x31e5c9,_0x535f93,_0x53b93e){const _0x4e82c4=_0x5b7eaf;var _0x5cb70a=y({},_0x31e5c9['attrs']);_0x53b93e!=null&&_0x53b93e[_0x4e82c4(0xfb)]&&_0x5cb70a[_0x4e82c4(0x158)]==='colorChannel1'&&(_0x5cb70a[_0x4e82c4(0x158)]=_0x53b93e['colorChannel1']);var _0x4282ef=_0x535f93[_0x4e82c4(0x16a)];return!_0x4282ef||_0x4282ef[_0x4e82c4(0x143)]===0x0||(_0x31e5c9[_0x4e82c4(0xb4)]==='use'&&_0x5cb70a[_0x4e82c4(0x319)]&&(_0x5cb70a[_0x4e82c4(0x319)]=_0x5cb70a[_0x4e82c4(0x319)]+_0x535f93[_0x4e82c4(0x124)]),Object[_0x4e82c4(0x2b5)](_0x5cb70a)[_0x4e82c4(0x215)](function(_0xf1e5f5){const _0x4b0d6b=_0x4e82c4;var _0x3f3a5b=_0xf1e5f5[0x0],_0x2a2201=_0xf1e5f5[0x1];typeof _0x2a2201==_0x4b0d6b(0x17e)&&(_0x5cb70a[_0x3f3a5b]=_0x2a2201[_0x4b0d6b(0x3ab)](/url\(#(.*)\)/,'url(#$1'[_0x4b0d6b(0x185)](_0x535f93[_0x4b0d6b(0x124)],')')));})),_0x5cb70a;}function eo(_0x4422a5,_0x27c4b1){const _0x296ce4=_0x5b7eaf;var _0x35372a,_0x4039c8=_0x27c4b1['defIds'];return!_0x4039c8||_0x4039c8['length']===0x0?_0x4422a5:_0x4422a5[_0x296ce4(0xb4)]===_0x296ce4(0x180)&&(!((_0x35372a=_0x4422a5[_0x296ce4(0x349)])===null||_0x35372a===void 0x0)&&_0x35372a[_0x296ce4(0x143)])?y(y({},_0x4422a5),{'children':_0x4422a5[_0x296ce4(0x349)][_0x296ce4(0x309)](function(_0x2f3fea){const _0x2be85e=_0x296ce4;return typeof _0x2f3fea[_0x2be85e(0x359)]['id']==_0x2be85e(0x17e)&&_0x4039c8&&_0x4039c8[_0x2be85e(0x3cb)](_0x2f3fea[_0x2be85e(0x359)]['id'])>-0x1?y(y({},_0x2f3fea),{'attrs':y(y({},_0x2f3fea[_0x2be85e(0x359)]),{'id':_0x2f3fea[_0x2be85e(0x359)]['id']+_0x27c4b1[_0x2be85e(0x124)]})}):_0x2f3fea;})}):_0x4422a5;}function to(){const _0x58b4b6=_0x5b7eaf;return Math[_0x58b4b6(0x2e9)]()[_0x58b4b6(0x14a)](0x24)['substring'](0x2,0x8);}Wt['displayName']='UniverIcon';var so={'tag':_0x5b7eaf(0xd2),'attrs':{'fill':'none','viewBox':_0x5b7eaf(0x346),'width':_0x5b7eaf(0x10d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'stroke':_0x5b7eaf(0x157),'d':_0x5b7eaf(0x379),'strokeLinecap':_0x5b7eaf(0x13e),'strokeLinejoin':_0x5b7eaf(0x13e),'strokeWidth':1.2}}]},{'tag':_0x5b7eaf(0x180),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5b7eaf(0x1eb)},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'fill':_0x5b7eaf(0x197),'d':_0x5b7eaf(0x396)}}]}]}],'defIds':[_0x5b7eaf(0x1eb)]},ks=_0x25876f(function(_0x45f66d,_0xcef7cf){const _0x2900bb=_0x5b7eaf;return _0x3cb687(Wt,Object[_0x2900bb(0x366)]({},_0x45f66d,{'id':_0x2900bb(0x275),'ref':_0xcef7cf,'icon':so}));});ks['displayName']='OffLineSingle';var io={'tag':_0x5b7eaf(0xd2),'attrs':{'fill':_0x5b7eaf(0x3b9),'viewBox':_0x5b7eaf(0x1aa),'width':_0x5b7eaf(0x10d),'height':_0x5b7eaf(0x10d)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'stroke':_0x5b7eaf(0x157),'d':_0x5b7eaf(0x251),'strokeLinecap':'round','strokeLinejoin':_0x5b7eaf(0x13e),'strokeWidth':1.2}}]},{'tag':_0x5b7eaf(0x180),'attrs':{},'children':[{'tag':_0x5b7eaf(0x37d),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x5b7eaf(0x25c),'attrs':{'fill':_0x5b7eaf(0x197),'d':_0x5b7eaf(0x396),'transform':_0x5b7eaf(0x258)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Bs=_0x25876f(function(_0x10032a,_0x2a725e){const _0x4895fb=_0x5b7eaf;return _0x3cb687(Wt,Object[_0x4895fb(0x366)]({},_0x10032a,{'id':'on-line-single','ref':_0x2a725e,'icon':io}));});Bs[_0x5b7eaf(0x360)]=_0x5b7eaf(0x386);const no=_0x5b7eaf(0x177),ro=_0x5b7eaf(0x3f7),oo='univer-online-status',ao='univer-online',co=_0x5b7eaf(0x305),De={'onlineStatusIcon':no,'onlineStatusTitle':ro,'onlineStatus':oo,'online':ao,'offline':co};function ho(_0x398186){const _0x5a61db=_0x5b7eaf;switch(_0x398186){case w[_0x5a61db(0x184)]:return'collabStatus.offline';case w[_0x5a61db(0xa7)]:return _0x5a61db(0x1b7);case w['FETCH_MISS']:return _0x5a61db(0xd7);case w[_0x5a61db(0x3a8)]:return _0x5a61db(0x18e);case w[_0x5a61db(0x15f)]:case w['AWAITING']:case w['AWAITING_WITH_PENDING']:return _0x5a61db(0x32c);case w[_0x5a61db(0x16d)]:return _0x5a61db(0x169);}}function lo(_0x102522){const _0x277453=_0x5b7eaf,{status$:_0x54cefe}=_0x102522,_0x4859bf=_0x3ab99e(_0x54cefe,w['NOT_COLLAB']),_0x2735a1=_0xaf8fb0(_0x1e7bf5),_0x4e0fa3=_0xaf8fb0(ae),_0x271f40=_0x4859bf!==w['OFFLINE'],_0x25d613=_0x2735a1['t'](ho(_0x4859bf)),_0x1b288c=_0x147b10(De['onlineStatus'],{[De[_0x277453(0x289)]]:_0x271f40,[De[_0x277453(0x1b9)]]:!_0x271f40}),_0x524b6e=_0x271f40?_0x3da894[_0x277453(0x3ca)](Bs,null):_0x3da894[_0x277453(0x3ca)](ks,null),_0x40dd86=_0x167c1f(()=>{_0x271f40||_0x4e0fa3['reconnect']();},[_0x271f40,_0x4e0fa3]);function _0x181273(){const _0x1e5edc=_0x277453;return _0x3da894[_0x1e5edc(0x3ca)](_0x1e5edc(0x3c8),{'className':_0x1b288c,'onClick':_0x40dd86},_0x3da894['createElement'](_0x1e5edc(0x3c8),{'className':De['onlineStatusIcon']},_0x524b6e),_0x3da894['createElement']('div',{'className':De['onlineStatusTitle']},_0x25d613));}return _0x271f40?_0x181273():_0x3da894[_0x277453(0x3ca)](_0x4fd136,{'title':_0x2735a1['t'](_0x277453(0x155))},_0x181273());}var _o=Object[_0x5b7eaf(0x3b0)],uo=Object[_0x5b7eaf(0x25b)],fo=(_0x5a278b,_0x4e99cd,_0x4115c9,_0x1d2e2f)=>{const _0x4865e7=_0x5b7eaf;for(var _0x36b0c8=_0x1d2e2f>0x1?void 0x0:_0x1d2e2f?uo(_0x4e99cd,_0x4115c9):_0x4e99cd,_0x5c2534=_0x5a278b[_0x4865e7(0x143)]-0x1,_0x467827;_0x5c2534>=0x0;_0x5c2534--)(_0x467827=_0x5a278b[_0x5c2534])&&(_0x36b0c8=(_0x1d2e2f?_0x467827(_0x4e99cd,_0x4115c9,_0x36b0c8):_0x467827(_0x36b0c8))||_0x36b0c8);return _0x1d2e2f&&_0x36b0c8&&_o(_0x4e99cd,_0x4115c9,_0x36b0c8),_0x36b0c8;},Be=(_0x2c84d3,_0xaf0361)=>(_0x667ac8,_0xe5e00)=>_0xaf0361(_0x667ac8,_0xe5e00,_0x2c84d3);let ye=class extends _0x61b58b{constructor(_0x1ddb7b,_0x459569,_0x4a99dc,_0x735a10){const _0x1deaf0=_0x5b7eaf;super(),l(this,'_status$',new _0xdb5176(w[_0x1deaf0(0x3a8)])),(this[_0x1deaf0(0xba)]=_0x1ddb7b,this[_0x1deaf0(0x243)]=_0x459569,this[_0x1deaf0(0x27d)]=_0x4a99dc,this[_0x1deaf0(0xd1)]=_0x735a10,this['_initStatusComponent'](),this[_0x1deaf0(0x2a7)]());}[_0x5b7eaf(0x2a7)](){const _0x1b1281=_0x5b7eaf;this[_0x1b1281(0x255)](this['_univerInstanceService'][_0x1b1281(0x35c)]['pipe'](_0x48fb69(()=>{const _0x1a6f10=_0x1b1281,_0x5e3e24=this['_univerInstanceService']['getFocusedUnit']();return _0x5e3e24?this[_0x1a6f10(0xd1)]['getCollabEntity$'](_0x5e3e24[_0x1a6f10(0xf1)]()):_0x175cbd(null);}),_0x48fb69(_0x4a607f=>_0x4a607f?_0x4a607f[_0x1b1281(0x32a)]:_0x175cbd(w['NOT_COLLAB'])))[_0x1b1281(0x113)](_0x26c8cb=>{const _0x52d64c=_0x1b1281;this['_status$'][_0x52d64c(0x3ef)](_0x26c8cb);}));}[_0x5b7eaf(0x27a)](){const _0x1e2e87=_0x5b7eaf;this[_0x1e2e87(0x255)](this[_0x1e2e87(0x243)][_0x1e2e87(0x2b6)](_0x59a5b2['HEADER_MENU'],()=>_0x4d4576(mo({'status$':this[_0x1e2e87(0x3bf)][_0x1e2e87(0x3a7)]()}),this[_0x1e2e87(0x27d)])));}};ye=fo([Be(0x0,_0x52988f),Be(0x1,_0x467380),Be(0x2,_0x2c1848(_0x1637c5)),Be(0x3,_0x2c1848(Ue))],ye);function mo(_0x485a52){const {status$:_0x40d0de}=_0x485a52;return function(){const _0x3f6cb4=_0x4581;return _0x3da894[_0x3f6cb4(0x3ca)](lo,{'status$':_0x40d0de});};}const Vs=_0x5b7eaf(0x39d),Fs=_0x4c867e(_0x5b7eaf(0x1a5));var go=Object[_0x5b7eaf(0x3b0)],So=Object['getOwnPropertyDescriptor'],po=(_0x2a802c,_0x4bd14a,_0x520378,_0x3a696a)=>{const _0x55d574=_0x5b7eaf;for(var _0x2dc58b=_0x3a696a>0x1?void 0x0:_0x3a696a?So(_0x4bd14a,_0x520378):_0x4bd14a,_0xce3fda=_0x2a802c[_0x55d574(0x143)]-0x1,_0x217ac5;_0xce3fda>=0x0;_0xce3fda--)(_0x217ac5=_0x2a802c[_0xce3fda])&&(_0x2dc58b=(_0x3a696a?_0x217ac5(_0x4bd14a,_0x520378,_0x2dc58b):_0x217ac5(_0x2dc58b))||_0x2dc58b);return _0x3a696a&&_0x2dc58b&&go(_0x4bd14a,_0x520378,_0x2dc58b),_0x2dc58b;},fe=(_0x21adaf,_0x51c410)=>(_0x58bce9,_0x4ad2ba)=>_0x51c410(_0x58bce9,_0x4ad2ba,_0x21adaf);let Ge=class extends _0x33f191{constructor(_0x543568,_0x214c3b,_0x4c99ec,_0x5ae4bb,_0x334245,_0x185178){const _0x45cd89=_0x5b7eaf;super(),this['_urlService']=_0x543568,this[_0x45cd89(0x134)]=_0x214c3b,this[_0x45cd89(0x204)]=_0x4c99ec,this[_0x45cd89(0x291)]=_0x5ae4bb,this[_0x45cd89(0x187)]=_0x334245,_0x185178?_0x185178==null||_0x185178[_0x45cd89(0x125)]()[_0x45cd89(0x2b0)](()=>this[_0x45cd89(0x1cb)]()):(this['_logService'][_0x45cd89(0x330)]('[DataLoaderController]',_0x45cd89(0x16b)),this[_0x45cd89(0x1cb)]());}async[_0x5b7eaf(0x1cb)](){const _0x49fe7f=_0x5b7eaf,_0x7737e=this[_0x49fe7f(0x33e)][_0x49fe7f(0x1f7)]('unit'),_0x1dcda5=this[_0x49fe7f(0x33e)][_0x49fe7f(0x1f7)](_0x49fe7f(0x21b));if(!_0x7737e||!_0x1dcda5){this['_logService'][_0x49fe7f(0x330)](_0x49fe7f(0x165),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x1dcda5)){case x[_0x49fe7f(0x18f)]:{const _0xa8d812=await this[_0x49fe7f(0x29a)](_0x7737e);this['_setupSubUnitSync'](_0xa8d812);break;}case x[_0x49fe7f(0x3ac)]:{await this['_loadDoc'](_0x7737e);break;}default:{this['_logService'][_0x49fe7f(0x332)]('[DataLoaderController]',_0x49fe7f(0x12f));break;}}}async[_0x5b7eaf(0x3d0)](_0x480d83){const _0x3e8cd9=_0x5b7eaf;await this[_0x3e8cd9(0x160)](_0x480d83),_0x480d83[_0x3e8cd9(0x3d7)][_0x3e8cd9(0x1b6)](_0x53c8e3(this['dispose$']))['subscribe'](_0x225b6e=>{const _0x469dee=_0x3e8cd9;_0x225b6e&&this[_0x469dee(0x218)](_0x225b6e);}),this[_0x3e8cd9(0x33e)]['urlChange$'][_0x3e8cd9(0x1b6)](_0x53c8e3(this[_0x3e8cd9(0x2cf)]))[_0x3e8cd9(0x113)](()=>this[_0x3e8cd9(0x160)](_0x480d83));}[_0x5b7eaf(0x218)](_0x1793dc,_0x3f31ea=!0x1){const _0x393956=_0x5b7eaf,_0x592080=this[_0x393956(0x33e)][_0x393956(0x1f7)](_0x393956(0x247));_0x1793dc[_0x393956(0x21a)]()!==_0x592080&&this[_0x393956(0x33e)]['setParam'](_0x393956(0x247),_0x1793dc['getSheetId'](),_0x3f31ea);}async['_updateSubUnitFromURLParams'](_0x11a07a){const _0x197fb5=_0x5b7eaf;var _0xf1c1fb;const _0x5eef22=this['_urlService'][_0x197fb5(0x1f7)](_0x197fb5(0x247));if(!_0x5eef22||!_0x11a07a[_0x197fb5(0x1d4)](_0x5eef22)){const _0x89abbd=_0x11a07a[_0x197fb5(0x1c2)]()[0x0],_0x1cb763=_0x11a07a['getSheetBySheetId'](_0x89abbd);if(!_0x1cb763)return;this[_0x197fb5(0x218)](_0x1cb763,!0x0),await this['_commandService'][_0x197fb5(0x26d)](_0x593e9d['id'],{'unitId':_0x11a07a[_0x197fb5(0xf1)](),'subUnitId':_0x89abbd});return;}((_0xf1c1fb=_0x11a07a[_0x197fb5(0xf6)]())==null?void 0x0:_0xf1c1fb[_0x197fb5(0x21a)]())!==_0x5eef22&&await this['_commandService'][_0x197fb5(0x26d)](_0x593e9d['id'],{'unitId':_0x11a07a[_0x197fb5(0xf1)](),'subUnitId':_0x5eef22});}async[_0x5b7eaf(0x29a)](_0x3fcb25){const _0x516fad=_0x5b7eaf;let _0x4f25e0=0x0;const _0x27000a=await this['_localCacheService']['loadOfflineData'](_0x3fcb25);return _0x27000a&&(_0x27000a[_0x516fad(0x103)]||_0x27000a[_0x516fad(0x18c)][_0x516fad(0x143)]!==0x0)&&(_0x4f25e0=_0x27000a['rev']),_0x4f25e0===0x0&&this[_0x516fad(0x134)][_0x516fad(0x330)](_0x516fad(0x165),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x516fad(0x187)]['loadSheet'](_0x3fcb25,_0x4f25e0);}async[_0x5b7eaf(0x307)](_0x2bddbd){const _0x3b2f04=_0x5b7eaf;let _0x5b885e=0x0;const _0x2a53fd=await this['_localCacheService'][_0x3b2f04(0x3af)](_0x2bddbd);return _0x2a53fd&&(_0x2a53fd['awaitingChangeset']||_0x2a53fd[_0x3b2f04(0x18c)][_0x3b2f04(0x143)]!==0x0)&&(_0x5b885e=_0x2a53fd[_0x3b2f04(0x12a)]),_0x5b885e===0x0&&this[_0x3b2f04(0x134)][_0x3b2f04(0x330)]('[DataLoaderController]',_0x3b2f04(0x34c)),this['_snapshotService'][_0x3b2f04(0x3d1)](_0x2bddbd,_0x5b885e);}};Ge=po([_0x51ea65(_0x2a2247[_0x5b7eaf(0x1b4)],Ge),fe(0x0,Fs),fe(0x1,_0x4cc166),fe(0x2,_0x2521f5),fe(0x3,_0x2c1848(D)),fe(0x4,_0x2c1848(_0xb82a17)),fe(0x5,_0x3b757a(_0xdc1252))],Ge);var vo=Object[_0x5b7eaf(0x3b0)],Io=Object['getOwnPropertyDescriptor'],Eo=(_0x4bab2d,_0x4ae585,_0x4ba576,_0x1731ed)=>{for(var _0xa42e45=_0x1731ed>0x1?void 0x0:_0x1731ed?Io(_0x4ae585,_0x4ba576):_0x4ae585,_0x336fe3=_0x4bab2d['length']-0x1,_0x272ae6;_0x336fe3>=0x0;_0x336fe3--)(_0x272ae6=_0x4bab2d[_0x336fe3])&&(_0xa42e45=(_0x1731ed?_0x272ae6(_0x4ae585,_0x4ba576,_0xa42e45):_0x272ae6(_0xa42e45))||_0xa42e45);return _0x1731ed&&_0xa42e45&&vo(_0x4ae585,_0x4ba576,_0xa42e45),_0xa42e45;},ds=(_0xb8f8cf,_0x4535bd)=>(_0x5a021d,_0x5b574f)=>_0x4535bd(_0x5a021d,_0x5b574f,_0xb8f8cf);const Co=_0x5b7eaf(0xe8),bo=_0x5b7eaf(0x119);let Ye=class extends _0x61b58b{constructor(_0x5bcb7c,_0x14ceaa){const _0x510b75=_0x5b7eaf;super(),this['_univerInstanceService']=_0x5bcb7c,this[_0x510b75(0x110)]=_0x14ceaa,this[_0x510b75(0x1cb)]();}['_init'](){const _0x49401f=_0x5b7eaf;this[_0x49401f(0x255)](_0xa7e5b7(this['_univerInstanceService']['focused$'][_0x49401f(0x113)](()=>{const _0x49bc08=_0x49401f;var _0xe46680;const _0x12b79b=this[_0x49bc08(0xba)][_0x49bc08(0x233)]();let _0x598d90=(_0xe46680=this[_0x49bc08(0x110)][_0x49bc08(0x39b)](Co))!=null?_0xe46680:bo;_0x12b79b instanceof _0x3d2a68&&(_0x598d90=_0x12b79b[_0x49bc08(0x193)]),document[_0x49bc08(0x29e)]=_0x598d90;})));}};Ye=Eo([_0x51ea65(_0x2a2247[_0x5b7eaf(0xa4)],Ye),ds(0x0,_0x52988f),ds(0x1,_0x5debaa)],Ye);var To=Object['defineProperty'],Ro=Object[_0x5b7eaf(0x25b)],Oo=(_0x2ed9bd,_0x595499,_0x4be35c,_0x1e0f90)=>{const _0x26d452=_0x5b7eaf;for(var _0x38de50=_0x1e0f90>0x1?void 0x0:_0x1e0f90?Ro(_0x595499,_0x4be35c):_0x595499,_0x25fb7d=_0x2ed9bd[_0x26d452(0x143)]-0x1,_0x1ca762;_0x25fb7d>=0x0;_0x25fb7d--)(_0x1ca762=_0x2ed9bd[_0x25fb7d])&&(_0x38de50=(_0x1e0f90?_0x1ca762(_0x595499,_0x4be35c,_0x38de50):_0x1ca762(_0x38de50))||_0x38de50);return _0x1e0f90&&_0x38de50&&To(_0x595499,_0x4be35c,_0x38de50),_0x38de50;},St=(_0x38dca7,_0x20aa9b)=>(_0x55a292,_0x49e295)=>_0x20aa9b(_0x55a292,_0x49e295,_0x38dca7);let st=class{constructor(_0x48317e,_0x4fe5ab,_0x18921b){const _0x358640=_0x5b7eaf;this[_0x358640(0x110)]=_0x48317e,this['_httpService']=_0x4fe5ab,this['localeService']=_0x18921b,this[_0x358640(0xda)]();}[_0x5b7eaf(0xda)](){const _0x4a3e6f=_0x5b7eaf;this[_0x4a3e6f(0xdd)][_0x4a3e6f(0x1dd)]({'priority':0x1,'interceptor':(_0x55f7e5,_0x1e8d8d)=>_0x1e8d8d(_0x55f7e5)[_0x4a3e6f(0x1b6)](_0x4244f3(async _0x6f84cf=>{const _0x12befe=_0x4a3e6f,_0x48e71f=_0x6f84cf;if(_0x48e71f['status']===0x191&&window['confirm'](this[_0x12befe(0xd6)]['t'](_0x12befe(0xea)))){const _0x240383=window[_0x12befe(0xff)](window['location']['href']);window[_0x12befe(0x383)][_0x12befe(0x3c4)]=this[_0x12befe(0x407)]()+_0x12befe(0x239)+_0x240383;}return _0x48e71f;}))});}[_0x5b7eaf(0x407)](){const _0x457d9a=_0x5b7eaf;var _0x350e39;return(_0x350e39=this[_0x457d9a(0x110)][_0x457d9a(0x39b)](Pn))!=null?_0x350e39:Nn;}};st=Oo([St(0x0,_0x5debaa),St(0x1,_0x2c1848(_0x3b1152)),St(0x2,_0x2c1848(_0x1e7bf5))],st);var Do=Object[_0x5b7eaf(0x3b0)],wo=Object['getOwnPropertyDescriptor'],Po=(_0x423c9d,_0x1fedf4,_0x244ed5,_0x27c325)=>{const _0x165c6f=_0x5b7eaf;for(var _0x3876c3=_0x27c325>0x1?void 0x0:_0x27c325?wo(_0x1fedf4,_0x244ed5):_0x1fedf4,_0x41c292=_0x423c9d[_0x165c6f(0x143)]-0x1,_0x5e4f79;_0x41c292>=0x0;_0x41c292--)(_0x5e4f79=_0x423c9d[_0x41c292])&&(_0x3876c3=(_0x27c325?_0x5e4f79(_0x1fedf4,_0x244ed5,_0x3876c3):_0x5e4f79(_0x3876c3))||_0x3876c3);return _0x27c325&&_0x3876c3&&Do(_0x1fedf4,_0x244ed5,_0x3876c3),_0x3876c3;},fs=(_0x4160af,_0x4c1a85)=>(_0x32441c,_0x4ab6c6)=>_0x4c1a85(_0x32441c,_0x4ab6c6,_0x4160af);const No=_0x5b7eaf(0x128),yo=_0x5b7eaf(0x2cc);let Pt=class extends _0x61b58b{constructor(_0x46ec9e,_0x399907){const _0x19e388=_0x5b7eaf;super(),this['_HTTPService']=_0x46ec9e,this[_0x19e388(0x110)]=_0x399907,this[_0x19e388(0x2f3)]();}[_0x5b7eaf(0x2f3)](){const _0x5f5a58=_0x5b7eaf,_0x59f180=this;this[_0x5f5a58(0x255)](this[_0x5f5a58(0x1ed)][_0x5f5a58(0x1dd)]({'priority':0x3e7,'interceptor':_0xdaa3cc({'isMatch'(_0x186353){const _0x4d326a=_0x5f5a58;var _0x5c5357;if(_0x186353['method']===_0x4d326a(0x2c6)&&((_0x5c5357=_0x186353[_0x4d326a(0x1d0)])!=null&&_0x5c5357['body'])){const {objectID:_0x298d2b,objectType:_0x3f1abc}=_0x186353[_0x4d326a(0x1d0)]['body']||{};if(!_0x298d2b||_0x3f1abc===void 0x0)return!0x1;const _0x345e64=_0x59f180[_0x4d326a(0x358)]()+'/'+_0x3f1abc+_0x4d326a(0x1d7)+_0x298d2b+_0x4d326a(0x340);if(_0x186353[_0x4d326a(0x17a)]===_0x345e64)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2212c4){const _0x464ecc=_0x5f5a58;var _0x403272;return(_0x403272=_0x2212c4[_0x464ecc(0x1d0)])==null?void 0x0:_0x403272[_0x464ecc(0x3d9)];},'mergeParamsToRequest'(_0xbc5d34,_0x237058){const _0x22558f=_0x5f5a58,_0xe44091=_0x59f180[_0x22558f(0x358)]()+'/-/object/-/batch_allowed',_0x1cf5a7=_0xbc5d34[_0x22558f(0xcc)]((_0x384c95,_0x236ef5)=>{const _0x9c0be0=_0x22558f,{unitID:_0x5f1e3b,objectID:_0x4dc576,objectType:_0x5e7c0f,actions:_0x5b4fa4}=_0x236ef5;return _0x384c95[_0x5f1e3b]||(_0x384c95[_0x5f1e3b]={}),_0x384c95[_0x5f1e3b][_0x4dc576]||(_0x384c95[_0x5f1e3b][_0x4dc576]={'objectID':_0x4dc576,'objectType':_0x5e7c0f,'actions':[]}),_0x384c95[_0x5f1e3b][_0x4dc576]['actions'][_0x9c0be0(0x2cb)](..._0x5b4fa4),_0x384c95;},{}),_0x29fead=[];for(const _0x365986 in _0x1cf5a7)for(const _0x2f057c in _0x1cf5a7[_0x365986]){const {actions:_0x1467e4,objectType:_0x428890}=_0x1cf5a7[_0x365986][_0x2f057c],_0xba47c7=[...new Set(_0x1467e4)];_0x29fead['push']({'unitID':_0x365986,'objectID':_0x2f057c,'objectType':_0x428890,'actions':_0xba47c7});}return new _0x594dba(_0x22558f(0x2c6),_0xe44091,{'headers':_0x237058[_0x22558f(0x2ba)],'withCredentials':_0x237058[_0x22558f(0x23f)],'responseType':_0x237058['responseType'],'body':{'requests':_0x29fead}});}},{'distributeResult'(_0x16d570,_0x28222f){const {objectActions:_0x1eed24}=_0x16d570;return _0x28222f['map'](_0x3b163f=>{const _0x1bfb28=_0x4581,{unitID:_0x66c4ef,objectID:_0x3c580c,actions:_0x7aa50f}=_0x3b163f,_0x353e39=_0x1eed24[_0x1bfb28(0xd0)](_0x4e9089=>_0x4e9089['unitID']===_0x66c4ef&&_0x4e9089[_0x1bfb28(0x127)]===_0x3c580c),_0x31e8f6=_0x7aa50f[_0x1bfb28(0x309)](_0x499b32=>_0x353e39==null?void 0x0:_0x353e39['actions'][_0x1bfb28(0xd0)](_0x5d7981=>_0x5d7981[_0x1bfb28(0x100)]===_0x499b32))[_0x1bfb28(0x15d)](_0x2eeca2=>!!_0x2eeca2);return{'config':_0x3b163f,'result':{'actions':_0x31e8f6,'error':_0x16d570[_0x1bfb28(0x332)]}};});}})}));}[_0x5b7eaf(0x358)](){var _0x50a7db;return(_0x50a7db=this['_configService']['getConfig'](No))!=null?_0x50a7db:yo;}async[_0x5b7eaf(0x3fb)](_0x2f463b){const _0x30ef52=_0x5b7eaf,_0x56bb52=this[_0x30ef52(0x358)]()+'/'+_0x2f463b['objectType']+_0x30ef52(0x1f0);return(await this[_0x30ef52(0x1ed)][_0x30ef52(0x355)](_0x56bb52,{'body':_0x2f463b}))[_0x30ef52(0x3d9)][_0x30ef52(0x127)]||'';}async['list'](_0x6930aa){const _0x3968a3=_0x5b7eaf,_0x1274f2=this[_0x3968a3(0x358)]()+_0x3968a3(0xa3);return(await this[_0x3968a3(0x1ed)]['post'](_0x1274f2,{'body':_0x6930aa}))['body'][_0x3968a3(0x381)];}async[_0x5b7eaf(0xc7)](_0x510edf){const _0x2d84a1=_0x5b7eaf,_0x15ccfc=this[_0x2d84a1(0x358)]()+'/'+_0x510edf['objectType']+'/object/'+_0x510edf[_0x2d84a1(0x127)];await this[_0x2d84a1(0x1ed)][_0x2d84a1(0x256)](_0x15ccfc,{'body':_0x510edf});}async[_0x5b7eaf(0x301)](_0x581f4){const _0x3b681c=_0x5b7eaf,_0x4a46ab=this[_0x3b681c(0x358)]()+'/'+_0x581f4[_0x3b681c(0x234)]+_0x3b681c(0x1d7)+_0x581f4[_0x3b681c(0x127)]+_0x3b681c(0x340);return(await this[_0x3b681c(0x1ed)][_0x3b681c(0x355)](_0x4a46ab,{'body':_0x581f4}))[_0x3b681c(0x3d9)][_0x3b681c(0x2bb)];}async[_0x5b7eaf(0x296)](_0xc6bc28){const _0x4a9b29=_0x5b7eaf,_0x11e903=this['_getAPIPrefixPath']()+_0x4a9b29(0x1c5);return(await this['_HTTPService'][_0x4a9b29(0x355)](_0x11e903,{'body':{'requests':_0xc6bc28}}))['body'][_0x4a9b29(0x111)];}async['listRoles'](_0x1e361e){const _0x118cb1=_0x5b7eaf,_0x391a34=this[_0x118cb1(0x358)]()+'/'+_0x1e361e[_0x118cb1(0x234)]+'/role',_0x54dcd9=await this[_0x118cb1(0x1ed)][_0x118cb1(0x355)](_0x391a34,{'body':_0x1e361e});return{'roles':_0x54dcd9[_0x118cb1(0x3d9)][_0x118cb1(0x19c)],'actions':_0x54dcd9[_0x118cb1(0x3d9)][_0x118cb1(0x2bb)]};}async[_0x5b7eaf(0x30a)](_0x46cc87){const _0x5bb6a1=_0x5b7eaf,_0x3430eb=this['_getAPIPrefixPath']()+'/collaborator';await this['_HTTPService'][_0x5bb6a1(0xce)](_0x3430eb,{'params':{'collaboratorID':_0x46cc87[_0x5bb6a1(0x2b1)],'objectID':_0x46cc87['objectID'],'unitID':_0x46cc87['unitID']}});}async[_0x5b7eaf(0xf5)](_0x1965f3){const _0x55f375=_0x5b7eaf,_0x107b98=this['_getAPIPrefixPath']()+_0x55f375(0x2a3);await this[_0x55f375(0x1ed)][_0x55f375(0x304)](_0x107b98,{'body':_0x1965f3});}async[_0x5b7eaf(0x406)](_0x4e81cd){const _0xc43b78=_0x5b7eaf,_0x316ecf=this[_0xc43b78(0x358)]()+_0xc43b78(0x2a3);await this[_0xc43b78(0x1ed)][_0xc43b78(0x355)](_0x316ecf,{'body':_0x4e81cd});}async[_0x5b7eaf(0x2d9)](_0x49c77f){const _0x3afe0=_0x5b7eaf,_0x5326da=this[_0x3afe0(0x358)]()+_0x3afe0(0x2a3);return(await this['_HTTPService'][_0x3afe0(0x2dc)](_0x5326da,{'params':{'objectID':_0x49c77f[_0x3afe0(0x127)],'unitID':_0x49c77f['unitID']}}))[_0x3afe0(0x3d9)][_0x3afe0(0x175)];}async[_0x5b7eaf(0x1e0)](_0x23f8ac){const _0x5a5a33=_0x5b7eaf,_0x3d0d09=this[_0x5a5a33(0x358)]()+_0x5a5a33(0x2a3);await this[_0x5a5a33(0x1ed)][_0x5a5a33(0x256)](_0x3d0d09,{'body':_0x23f8ac});}};Pt=Po([fs(0x0,_0x2c1848(_0x3b1152)),fs(0x1,_0x2c1848(_0x5debaa))],Pt);var Mo=Object[_0x5b7eaf(0x3b0)],Uo=Object[_0x5b7eaf(0x25b)],Ao=(_0x56c253,_0x454397,_0x33ec96,_0x37bfab)=>{const _0x55fbbc=_0x5b7eaf;for(var _0x6f7cc1=_0x37bfab>0x1?void 0x0:_0x37bfab?Uo(_0x454397,_0x33ec96):_0x454397,_0x4d3927=_0x56c253[_0x55fbbc(0x143)]-0x1,_0x5421e5;_0x4d3927>=0x0;_0x4d3927--)(_0x5421e5=_0x56c253[_0x4d3927])&&(_0x6f7cc1=(_0x37bfab?_0x5421e5(_0x454397,_0x33ec96,_0x6f7cc1):_0x5421e5(_0x6f7cc1))||_0x6f7cc1);return _0x37bfab&&_0x6f7cc1&&Mo(_0x454397,_0x33ec96,_0x6f7cc1),_0x6f7cc1;},pt=(_0x2da699,_0x28f45f)=>(_0x59f6ad,_0x513edc)=>_0x28f45f(_0x59f6ad,_0x513edc,_0x2da699);const Lo=['image/png',_0x5b7eaf(0x312),'image/jpg','image/gif',_0x5b7eaf(0x10a)],$o=0x5*0x400*0x400,jo=_0x5b7eaf(0x154),xo=_0x5b7eaf(0x225),Ho=_0x5b7eaf(0x172),ko=_0x5b7eaf(0x25f);let Nt=class{constructor(_0x34d832,_0x5229a1,_0x49b8f6){const _0x3b48f4=_0x5b7eaf;l(this,_0x3b48f4(0xe7),0x0),l(this,_0x3b48f4(0xc5),new _0x51e21c()),l(this,_0x3b48f4(0x131),this['_change$']),l(this,_0x3b48f4(0x3c3),new Map()),(this[_0x3b48f4(0xdd)]=_0x34d832,this[_0x3b48f4(0x110)]=_0x5229a1,this[_0x3b48f4(0xba)]=_0x49b8f6);}[_0x5b7eaf(0x404)](_0x306d3c){const _0x1f2db1=_0x5b7eaf;this[_0x1f2db1(0xe7)]=_0x306d3c,this[_0x1f2db1(0xc5)]['next'](_0x306d3c);}['getImageSourceCache'](_0x4660db,_0x3fe794){const _0x3f475d=_0x5b7eaf;if(_0x3fe794===_0x2ab571[_0x3f475d(0x38d)]){const _0x40a21f=new Image();return _0x40a21f[_0x3f475d(0xb9)]=_0x4660db,_0x40a21f;}return this[_0x3f475d(0x3c3)]['get'](_0x4660db);}[_0x5b7eaf(0x382)](_0x2e359e,_0xa6d336,_0x25b8c7){const _0xc22c78=_0x5b7eaf;_0xa6d336===_0x2ab571['BASE64']||_0x25b8c7==null||this['_imageSourceCache'][_0xc22c78(0x1ea)](_0x2e359e,_0x25b8c7);}async['getImage'](_0x3c2cf2){const _0x5d9abf=_0x5b7eaf;try{const _0x59dc44=this[_0x5d9abf(0x1c7)](this[_0x5d9abf(0xef)](),''+_0x3c2cf2),_0x57a29c=(await this[_0x5d9abf(0xdd)][_0x5d9abf(0x2dc)](_0x59dc44))['body'];return _0x57a29c['error']&&_0x57a29c[_0x5d9abf(0x332)][_0x5d9abf(0x3b2)]===Ms['OK']?this[_0x5d9abf(0x1c9)]()?Promise[_0x5d9abf(0x2d8)](this['_getDownloadEndpointURL']()+_0x57a29c[_0x5d9abf(0x17a)]):Promise[_0x5d9abf(0x2d8)](_0x57a29c[_0x5d9abf(0x17a)]):Promise[_0x5d9abf(0x3b5)](_0x57a29c[_0x5d9abf(0x332)]);}catch(_0x1ed459){return Promise['reject'](_0x1ed459);}}async[_0x5b7eaf(0xc3)](_0x32cd51){const _0x4133ab=_0x5b7eaf;let _0x309e9a='';if(!Lo['includes'](_0x32cd51[_0x4133ab(0x21b)]))return this[_0x4133ab(0x15c)](),Promise[_0x4133ab(0x3b5)](new Error(_0x2980ad[_0x4133ab(0x17f)]));if(_0x32cd51[_0x4133ab(0x22e)]>$o)return this[_0x4133ab(0x15c)](),Promise['reject'](new Error(_0x2980ad[_0x4133ab(0xbc)]));try{const _0x53f671=new FormData();_0x53f671['append'](_0x4133ab(0x237),_0x32cd51);const _0x2c2192=this[_0x4133ab(0xba)][_0x4133ab(0x233)](),_0x1b2d0b=_0x2c2192==null?void 0x0:_0x2c2192[_0x4133ab(0xf1)]();if(!_0x1b2d0b)throw new Error(_0x4133ab(0x254));const _0x573b02=this[_0x4133ab(0xfc)]()+'?size='+_0x32cd51[_0x4133ab(0x22e)][_0x4133ab(0x14a)]()+_0x4133ab(0x25e)+Us[_0x4133ab(0x39c)]+_0x4133ab(0x202)+encodeURIComponent(_0x1b2d0b),_0xf3c15=await(await fetch(_0x573b02,{'method':'POST','body':_0x53f671}))['json']();if(typeof _0xf3c15[_0x4133ab(0x9f)]!=_0x4133ab(0x17e))return this[_0x4133ab(0x15c)](),Promise[_0x4133ab(0x3b5)](new Error(_0x2980ad[_0x4133ab(0x99)]));_0x309e9a=_0xf3c15['FileId'];}catch{return this[_0x4133ab(0x15c)](),Promise[_0x4133ab(0x3b5)](new Error(_0x2980ad[_0x4133ab(0x99)]));}return new Promise((_0x299f8c,_0x52919b)=>{const _0x27a9eb=_0x4133ab,_0x272827=new FileReader();_0x272827[_0x27a9eb(0x3d3)](_0x32cd51),_0x272827[_0x27a9eb(0x1ef)]=_0x44a9b5=>{const _0x22c5d7=_0x27a9eb;var _0x490e79;const _0x5575df=(_0x490e79=_0x44a9b5['target'])==null?void 0x0:_0x490e79[_0x22c5d7(0x2e6)];if(_0x5575df==null){this[_0x22c5d7(0x15c)](),_0x52919b(new Error(_0x2980ad['ERROR_IMAGE']));return;}const _0x13bf29=_0x23d1c2[_0x22c5d7(0x23b)](0x6);_0x299f8c({'imageId':_0x13bf29,'imageSourceType':_0x2ab571['UUID'],'source':_0x309e9a,'base64Cache':_0x5575df,'status':_0x2980ad['SUCCUSS']}),this[_0x22c5d7(0x15c)]();};});}[_0x5b7eaf(0xfc)](){const _0xa9abc1=_0x5b7eaf;var _0x744bc5;return(_0x744bc5=this[_0xa9abc1(0x110)][_0xa9abc1(0x39b)](jo))!=null?_0x744bc5:xo;}[_0x5b7eaf(0xef)](){const _0x44e757=_0x5b7eaf;var _0x400b22;return(_0x400b22=this['_configService'][_0x44e757(0x39b)](Ho))!=null?_0x400b22:ko;}[_0x5b7eaf(0x1c9)](){const _0x3b54e7=_0x5b7eaf;var _0x5017dc;const _0x90505a=this[_0x3b54e7(0x110)][_0x3b54e7(0x39b)](Vs);return(_0x5017dc=_0x90505a==null?void 0x0:_0x90505a[_0x3b54e7(0x274)])!=null?_0x5017dc:'';}[_0x5b7eaf(0x1c7)](_0x15b21a,_0x3500ea){const _0x939439=_0x5b7eaf;return _0x15b21a[_0x939439(0x3ab)](_0x939439(0x2aa),_0x3500ea);}[_0x5b7eaf(0x15c)](){const _0x39c820=_0x5b7eaf;this[_0x39c820(0xe7)]-=0x1,this['_change$'][_0x39c820(0x3ef)](this[_0x39c820(0xe7)]);}};Nt=Ao([pt(0x0,_0x2c1848(_0x3b1152)),pt(0x1,_0x5debaa),pt(0x2,_0x2c1848(_0x52988f))],Nt);var Bo=Object[_0x5b7eaf(0x3b0)],Vo=Object[_0x5b7eaf(0x25b)],Fo=(_0x47d66c,_0x2b51de,_0xcef061,_0x25b98e)=>{const _0x1f6a52=_0x5b7eaf;for(var _0x29d49b=_0x25b98e>0x1?void 0x0:_0x25b98e?Vo(_0x2b51de,_0xcef061):_0x2b51de,_0xc56c60=_0x47d66c[_0x1f6a52(0x143)]-0x1,_0x17c6bf;_0xc56c60>=0x0;_0xc56c60--)(_0x17c6bf=_0x47d66c[_0xc56c60])&&(_0x29d49b=(_0x25b98e?_0x17c6bf(_0x2b51de,_0xcef061,_0x29d49b):_0x17c6bf(_0x29d49b))||_0x29d49b);return _0x25b98e&&_0x29d49b&&Bo(_0x2b51de,_0xcef061,_0x29d49b),_0x29d49b;},we=(_0x596781,_0x5a87e2)=>(_0x45503f,_0x496d45)=>_0x5a87e2(_0x45503f,_0x496d45,_0x596781);let Ke=class extends _0x33f191{constructor(_0x3e60f2,_0x3fdf31,_0x3c6c14,_0xe24c4b,_0x28842d){const _0x4e8d43=_0x5b7eaf;super(),this[_0x4e8d43(0x27d)]=_0x3e60f2,this[_0x4e8d43(0xba)]=_0x3fdf31,this[_0x4e8d43(0x2f2)]=_0x3c6c14,this[_0x4e8d43(0x1ab)]=_0xe24c4b,this[_0x4e8d43(0x30e)]=_0x28842d,this[_0x4e8d43(0x280)](),this[_0x4e8d43(0x22f)]();}[_0x5b7eaf(0x22f)](){const _0x51605b=_0x5b7eaf,_0x14464a=async _0x50ddb2=>{const _0x93cf0c=_0x4581;(await this[_0x93cf0c(0x1ab)][_0x93cf0c(0x299)](_0x50ddb2))['event$'][_0x93cf0c(0x1b6)](_0x324b00(_0x36aeae=>_0x36aeae[_0x93cf0c(0x1a0)]===_0x47275c[_0x93cf0c(0x183)]),_0x3c9e95(this[_0x93cf0c(0x2cf)]))[_0x93cf0c(0x113)](_0x438958=>{const _0x59a816=_0x93cf0c,_0x2ff8a2=_0x438958,{reason:_0x52cc94}=_0x2ff8a2['data'];this[_0x59a816(0x27d)]['get'](_0x3df3ba)['show']({'type':_0x21289[_0x59a816(0x3c5)],'content':this[_0x59a816(0x30e)]['t'](_0x59a816(0x288))+'('+_0x52cc94+')'}),this[_0x59a816(0x2f2)][_0x59a816(0x334)](new _0x53288a(_0x50ddb2)['id'],!0x1),this['_collaborationSessionService'][_0x59a816(0x372)](_0x50ddb2);});};_0x3b6402(this['_univerInstanceService'][_0x51605b(0x205)](_0x275c2c[_0x51605b(0x18f)]),this[_0x51605b(0xba)][_0x51605b(0x205)](_0x275c2c[_0x51605b(0x3ac)]))[_0x51605b(0x1b6)](_0x5a8d9c(_0x15643e=>_0x15643e['getUnitId']()),_0x324b00(_0x33d147=>!_0x202850(_0x33d147)),_0x3c9e95(this[_0x51605b(0x2cf)]))[_0x51605b(0x113)](_0x257e71=>{_0x14464a(_0x257e71);});}[_0x5b7eaf(0x280)](){const _0x4f0200=_0x5b7eaf,_0x35b71a=async _0x144b78=>{const _0x3f9d64=_0x4581;(await this[_0x3f9d64(0x1ab)][_0x3f9d64(0x299)](_0x144b78))[_0x3f9d64(0x375)][_0x3f9d64(0x1b6)](_0x324b00(_0x1f9c33=>_0x1f9c33[_0x3f9d64(0x1a0)]===_0x47275c[_0x3f9d64(0x3a9)]),_0x3c9e95(this[_0x3f9d64(0x2cf)]))[_0x3f9d64(0x113)](_0x561fbb=>{const _0x48b4ba=_0x3f9d64,_0xb16242=_0x561fbb,{objectId:_0x4dda91}=_0xb16242[_0x48b4ba(0x2da)],_0x44c939=this['_injector'][_0x48b4ba(0x2dc)](_0x488d5f);_0x4dda91===_0x144b78?_0x44c939['initWorkbookPermissionChange'](_0x144b78):_0x44c939[_0x48b4ba(0x3a4)](_0x144b78,_0x4dda91);});};_0x3b6402(this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x275c2c[_0x4f0200(0x18f)]),this['_univerInstanceService'][_0x4f0200(0x205)](_0x275c2c[_0x4f0200(0x3ac)]))[_0x4f0200(0x1b6)](_0x5a8d9c(_0x523051=>_0x523051[_0x4f0200(0xf1)]()),_0x324b00(_0x24d1a3=>!_0x202850(_0x24d1a3)),_0x3c9e95(this['dispose$']))['subscribe'](_0x2ef832=>{_0x35b71a(_0x2ef832);});}};Ke=Fo([_0x51ea65(_0x2a2247['Starting'],Ke),we(0x0,_0x2c1848(_0x1637c5)),we(0x1,_0x52988f),we(0x2,_0x133542),we(0x3,_0x2c1848(ae)),we(0x4,_0x2c1848(_0x1e7bf5))],Ke);var Wo=Object[_0x5b7eaf(0x3b0)],Go=Object[_0x5b7eaf(0x25b)],Yo=(_0x45ed2e,_0x3ac6ff,_0x2aeff7,_0x33fe85)=>{const _0x8f37c2=_0x5b7eaf;for(var _0x1a266e=_0x33fe85>0x1?void 0x0:_0x33fe85?Go(_0x3ac6ff,_0x2aeff7):_0x3ac6ff,_0x1ce712=_0x45ed2e[_0x8f37c2(0x143)]-0x1,_0x98d156;_0x1ce712>=0x0;_0x1ce712--)(_0x98d156=_0x45ed2e[_0x1ce712])&&(_0x1a266e=(_0x33fe85?_0x98d156(_0x3ac6ff,_0x2aeff7,_0x1a266e):_0x98d156(_0x1a266e))||_0x1a266e);return _0x33fe85&&_0x1a266e&&Wo(_0x3ac6ff,_0x2aeff7,_0x1a266e),_0x1a266e;},ms=(_0x53ada5,_0x273473)=>(_0x37dc17,_0x536ccf)=>_0x273473(_0x37dc17,_0x536ccf,_0x53ada5);let yt=class{constructor(_0x3d8e71,_0x15607b){this['_configService']=_0x3d8e71,this['_httpService']=_0x15607b;}async['getUnitOnRev'](_0x2a68da,_0x35efb5){const _0x3b33ea=_0x5b7eaf;var _0x27ac14;const {unitID:_0x1fdf6c,type:_0xe7a6d,revision:_0x2022d2=0x0}=_0x35efb5,_0x2b5c96=this[_0x3b33ea(0x19a)]()+'/'+_0xe7a6d+_0x3b33ea(0x286)+_0x1fdf6c+'/rev/'+_0x2022d2,_0x63a614=(await this['_httpService'][_0x3b33ea(0x2dc)](_0x2b5c96))[_0x3b33ea(0x3d9)],_0x536537=(_0x27ac14=_0x63a614[_0x3b33ea(0x22b)])==null?void 0x0:_0x27ac14['workbook'];if(_0x536537){const _0x2056da=_0x536537==null?void 0x0:_0x536537[_0x3b33ea(0x2db)],_0x541718=_0x2d7a75[_0x3b33ea(0xa5)](_0x2db83b(_0x2056da));_0x536537[_0x3b33ea(0x2db)]=_0x541718,Object[_0x3b33ea(0x2b5)](_0x536537[_0x3b33ea(0x12e)])[_0x3b33ea(0x215)](([,_0x52215d])=>{const _0x388070=_0x3b33ea,_0x57ff75=_0x52215d[_0x388070(0x2db)],_0x55c3dc=_0x2d7a75[_0x388070(0xa5)](_0x2db83b(_0x57ff75));_0x52215d[_0x388070(0x2db)]=_0x55c3dc;});}return _0x63a614;}async[_0x5b7eaf(0x164)](_0x23cbcf,_0x1b35f5){const _0x817237=_0x5b7eaf,{unitID:_0x17be2d,type:_0x1b003c,blockID:_0xa36a05}=_0x1b35f5,_0x1d58d2=this[_0x817237(0x336)]()+'/'+_0x1b003c+'/unit/'+_0x17be2d+_0x817237(0x282)+_0xa36a05;return(await this[_0x817237(0xdd)][_0x817237(0x2dc)](_0x1d58d2))['body'];}async['fetchMissingChangesets'](_0x3bffd7,_0x3111e3){const _0x24b803=_0x5b7eaf,{unitID:_0x282ed0,type:_0x19cd84,from:_0x10269d,to:_0x4a4f17}=_0x3111e3,_0x27f8ef=this['_getAPIPrefix']()+'/'+_0x19cd84+_0x24b803(0x286)+_0x282ed0+_0x24b803(0x238)+_0x10269d+_0x24b803(0x1d5)+_0x4a4f17;return(await this[_0x24b803(0xdd)][_0x24b803(0x2dc)](_0x27f8ef))['body'];}[_0x5b7eaf(0x19a)](){const _0x19af57=_0x5b7eaf;var _0x175b02;return(_0x175b02=this['_configService'][_0x19af57(0x39b)](fn))!=null?_0x175b02:this['_getAPIPrefix']();}[_0x5b7eaf(0x336)](){const _0x54bf0c=_0x5b7eaf;var _0x5a06ae;return(_0x5a06ae=this[_0x54bf0c(0x110)][_0x54bf0c(0x39b)](un))!=null?_0x5a06ae:dn;}async['getResourcesRequest'](_0x1845e5,_0x298d35){const _0x2079c8=_0x5b7eaf,_0x33648b=_0x2079c8(0x3f4)+_0x298d35[_0x2079c8(0x21b)]+_0x2079c8(0x286)+_0x298d35[_0x2079c8(0x2e3)]+'/resources';return(await this[_0x2079c8(0xdd)][_0x2079c8(0x2dc)](_0x33648b,{'params':{'resourceId':JSON[_0x2079c8(0x369)](_0x298d35[_0x2079c8(0x36f)])}}))['body'];}['saveSnapshot'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x5b7eaf(0xb2)](){const _0x22529a=_0x5b7eaf;throw new Error(_0x22529a(0x34a));}['saveChangeset'](){const _0x4c4f4b=_0x5b7eaf;throw new Error(_0x4c4f4b(0x34a));}};yt=Yo([ms(0x0,_0x5debaa),ms(0x1,_0x2c1848(_0x3b1152))],yt);var Ko=Object['defineProperty'],Xo=Object[_0x5b7eaf(0x25b)],Jo=(_0x870350,_0xf27474,_0x48bf79,_0x56add9)=>{const _0xbb19f7=_0x5b7eaf;for(var _0x1868c6=_0x56add9>0x1?void 0x0:_0x56add9?Xo(_0xf27474,_0x48bf79):_0xf27474,_0xd9baca=_0x870350[_0xbb19f7(0x143)]-0x1,_0x1a3245;_0xd9baca>=0x0;_0xd9baca--)(_0x1a3245=_0x870350[_0xd9baca])&&(_0x1868c6=(_0x56add9?_0x1a3245(_0xf27474,_0x48bf79,_0x1868c6):_0x1a3245(_0x1868c6))||_0x1868c6);return _0x56add9&&_0x1868c6&&Ko(_0xf27474,_0x48bf79,_0x1868c6),_0x1868c6;},Pe=(_0x1dae2f,_0x3f25f4)=>(_0xe90b5d,_0x161ca4)=>_0x3f25f4(_0xe90b5d,_0x161ca4,_0x1dae2f);let Mt=class extends _0x3ad5fe{constructor(_0x4ac216,_0x1afd20,_0xd0a8df,_0x23fea3,_0x40d2e2){const _0x5ab4fe=_0x5b7eaf;super(_0x4ac216,_0x1afd20,_0xd0a8df),this['_transformService']=_0x23fea3,this[_0x5ab4fe(0x134)]=_0x40d2e2;}[_0x5b7eaf(0x377)](_0x26f505,_0x306acd){const _0x12a91f=_0x5b7eaf,_0x49631a=this[_0x12a91f(0x293)](_0x26f505);if(_0x49631a)try{const _0x24e402=this[_0x12a91f(0x35b)](_0x49631a,_0x306acd);this[_0x12a91f(0x2fd)](_0x26f505,_0x24e402);}catch(_0x36ff84){this[_0x12a91f(0x134)]['error']('[CollaborationUndoRedoService]',_0x36ff84),this[_0x12a91f(0x2e8)](_0x26f505);}const _0x2b6a88=this[_0x12a91f(0x2bf)](_0x26f505);if(_0x2b6a88)try{const _0x1876f8=this[_0x12a91f(0x35b)](_0x2b6a88,_0x306acd);this[_0x12a91f(0x1a3)](_0x26f505,_0x1876f8);}catch(_0x56758f){this[_0x12a91f(0x134)][_0x12a91f(0x332)](_0x56758f),this['_clearRedo'](_0x26f505);}}[_0x5b7eaf(0x2e8)](_0x347f5e){const _0x20e055=_0x5b7eaf,_0x2701b6=this[_0x20e055(0x293)](_0x347f5e);_0x2701b6&&(_0x2701b6[_0x20e055(0x143)]=0x0,this[_0x20e055(0x2b7)]());}[_0x5b7eaf(0x11d)](_0xa01c44){const _0x5f0566=_0x5b7eaf,_0x18fe6d=this[_0x5f0566(0x2bf)](_0xa01c44);_0x18fe6d&&(_0x18fe6d[_0x5f0566(0x143)]=0x0,this[_0x5f0566(0x2b7)]());}['_substituteUndoStack'](_0x5a04f8,_0xc48d32){const _0x454b3b=_0x5b7eaf;this[_0x454b3b(0x3f3)][_0x454b3b(0x1ea)](_0x5a04f8,_0xc48d32),this[_0x454b3b(0x2b7)]();}[_0x5b7eaf(0x1a3)](_0x44a157,_0x4317cb){const _0x2e21de=_0x5b7eaf;this[_0x2e21de(0x21f)]['set'](_0x44a157,_0x4317cb),this[_0x2e21de(0x2b7)]();}[_0x5b7eaf(0x35b)](_0x502945,_0x3175ce){const _0x47df05=_0x5b7eaf,_0x49d3dd=[];let _0xacd9da=_0x3175ce,_0x348f29=_0x3175ce;for(let _0x16b62e=_0x502945[_0x47df05(0x143)]-0x1;_0x16b62e>=0x0;_0x16b62e--){const {unitID:_0x501463,undoMutations:_0x3e927a,redoMutations:_0x3dbb0a}=_0x502945[_0x16b62e],_0x4bf2b3=this[_0x47df05(0x2ef)][_0x47df05(0x17d)](_0xacd9da,_0x3e927a),_0x50b9b6=this[_0x47df05(0x2ef)][_0x47df05(0x17d)](_0x348f29,_0x3dbb0a);if(_0x4983c8(_0x4bf2b3)||_0x4983c8(_0x50b9b6)){this['_logService'][_0x47df05(0x332)](_0x47df05(0xb6),_0x47df05(0x10b),_0x4bf2b3,_0x50b9b6);break;}_0xacd9da=_0x4bf2b3[_0x47df05(0x106)],_0x348f29=_0x50b9b6[_0x47df05(0x106)],_0x49d3dd['push']({'unitID':_0x501463,'undoMutations':_0x4bf2b3['m2Prime'],'redoMutations':_0x50b9b6[_0x47df05(0x246)]});}return _0x49d3dd[_0x47df05(0x1a9)]();}};Mt=Jo([Pe(0x0,_0x52988f),Pe(0x1,_0x2521f5),Pe(0x2,_0x1a5f7f),Pe(0x3,_0x364c40),Pe(0x4,_0x4cc166)],Mt);class zo extends _0x33f191{constructor(){const _0x343aff=_0x5b7eaf;super(),l(this,'urlChange$'),this[_0x343aff(0x328)]=_0x3a0781(window,_0x343aff(0x21e))[_0x343aff(0x1b6)](_0x53c8e3(this[_0x343aff(0x2cf)]),_0x42dad9(0x1),_0x485932(void 0x0));}[_0x5b7eaf(0x401)](_0x10aa9c,_0x1d1e8a,_0x1257b9=!0x1){const _0x1e7341=_0x5b7eaf,_0x57f070=new URL(window['location'][_0x1e7341(0x3c4)]);_0x57f070[_0x1e7341(0x3ec)][_0x1e7341(0x1ea)](_0x10aa9c,_0x1d1e8a),_0x1257b9?window['history'][_0x1e7341(0x24f)]('','',_0x57f070[_0x1e7341(0x14a)]()):window[_0x1e7341(0x390)][_0x1e7341(0x315)]('','',_0x57f070[_0x1e7341(0x14a)]());}[_0x5b7eaf(0x408)](_0x5b736a,_0x470443=!0x1){const _0x50b32e=_0x5b7eaf,_0x13ab82=new URL(window[_0x50b32e(0x383)][_0x50b32e(0x3c4)]);_0x13ab82[_0x50b32e(0x3ec)][_0x50b32e(0xce)](_0x5b736a),_0x470443?window[_0x50b32e(0x390)]['replaceState']('','',_0x13ab82[_0x50b32e(0x14a)]()):window[_0x50b32e(0x390)][_0x50b32e(0x315)]('','',_0x13ab82['toString']());}[_0x5b7eaf(0x1f7)](_0x505d15){const _0x1382bd=_0x5b7eaf;var _0x3beb80;return(_0x3beb80=new URL(window[_0x1382bd(0x383)][_0x1382bd(0x3c4)])[_0x1382bd(0x3ec)][_0x1382bd(0x2dc)](_0x505d15))!=null?_0x3beb80:void 0x0;}}var Ws=Object[_0x5b7eaf(0x3b0)],qo=Object[_0x5b7eaf(0x25b)],Zo=(_0x122a81,_0x51edb7,_0x121141)=>_0x51edb7 in _0x122a81?Ws(_0x122a81,_0x51edb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x121141}):_0x122a81[_0x51edb7]=_0x121141,Qo=(_0x533b5a,_0xb95f3e,_0x55abf8,_0x197ae1)=>{const _0x54843c=_0x5b7eaf;for(var _0x3302de=_0x197ae1>0x1?void 0x0:_0x197ae1?qo(_0xb95f3e,_0x55abf8):_0xb95f3e,_0xef1f8f=_0x533b5a[_0x54843c(0x143)]-0x1,_0x3e2242;_0xef1f8f>=0x0;_0xef1f8f--)(_0x3e2242=_0x533b5a[_0xef1f8f])&&(_0x3302de=(_0x197ae1?_0x3e2242(_0xb95f3e,_0x55abf8,_0x3302de):_0x3e2242(_0x3302de))||_0x3302de);return _0x197ae1&&_0x3302de&&Ws(_0xb95f3e,_0x55abf8,_0x3302de),_0x3302de;},Ve=(_0x2c830f,_0x40de96)=>(_0x26e187,_0x1f120b)=>_0x40de96(_0x26e187,_0x1f120b,_0x2c830f),ea=(_0x5042f8,_0xb4e01a,_0x43f7a1)=>Zo(_0x5042f8,_0xb4e01a+'',_0x43f7a1);const ta=_0x5b7eaf(0x1c4);let Ut=class extends _0x1ae10b{constructor(_0x4cb781={},_0x468e6f,_0x10f2d8,_0x3c0409,_0x22c1dc){const _0x55bec3=_0x5b7eaf;super(),this[_0x55bec3(0x365)]=_0x4cb781,this[_0x55bec3(0x134)]=_0x468e6f,this['_renderManagerService']=_0x10f2d8,this[_0x55bec3(0x27d)]=_0x3c0409,this['_configService']=_0x22c1dc;const {..._0x5f271f}=this[_0x55bec3(0x365)];this[_0x55bec3(0x110)][_0x55bec3(0x3ea)](Vs,_0x5f271f);}[_0x5b7eaf(0x1e6)](){const _0x36e2d5=_0x5b7eaf;this[_0x36e2d5(0x313)]();}[_0x5b7eaf(0x12d)](){const _0xd39f95=_0x5b7eaf;this[_0xd39f95(0x2a4)]();}[_0x5b7eaf(0x313)](){const _0x538c79=_0x5b7eaf;var _0x79bb3e,_0x466d11,_0xf2edc3,_0xd7b75f;this[_0x538c79(0x27d)][_0x538c79(0x30c)](_0x948466)&&this[_0x538c79(0x134)][_0x538c79(0x332)](_0x538c79(0x1ee),_0x538c79(0x2a8));let _0x4c5508=[[_0x948466,{'useClass':Mt}],[ae],[Ft],[_0x3b1152],[Fs,{'useClass':zo}],[oe],[D],[_0x1335ed],[Qe],[et],[Ze],[Bt],[st],[Ls],[Ke],[As,{'useClass':(_0x466d11=(_0x79bb3e=this[_0x538c79(0x365)])==null?void 0x0:_0x79bb3e[_0x538c79(0x3f6)])!=null?_0x466d11:Ct}],[_0x237296,{'useClass':_0x5838d1}],[_0x2ea08d,{'useClass':yt}],[_0x3ffcd2,{'useClass':Pt}],[_0x3f8c0c,{'useClass':Nt}],[Ue],[Ge],[ye],[Ye],[me]];(_0xf2edc3=this[_0x538c79(0x365)])!=null&&_0xf2edc3[_0x538c79(0x329)]&&_0x4c5508[_0x538c79(0x2cb)]([it,{'useClass':rr}]),_0x4c5508=_0x21b090(_0x4c5508,(_0xd7b75f=this[_0x538c79(0x365)])==null?void 0x0:_0xd7b75f[_0x538c79(0x1b0)]),_0x4c5508[_0x538c79(0x215)](_0xbc8646=>this[_0x538c79(0x27d)][_0x538c79(0x277)](_0xbc8646)),this[_0x538c79(0x27c)]();}[_0x5b7eaf(0x2a4)](){const _0x4c2656=_0x5b7eaf;this[_0x4c2656(0x255)](this[_0x4c2656(0x1ca)][_0x4c2656(0x3e1)](_0x275c2c[_0x4c2656(0x3ac)],[We])),this['disposeWithMe'](this[_0x4c2656(0x1ca)][_0x4c2656(0x3e1)](_0x275c2c[_0x4c2656(0x18f)],[wt]));}[_0x5b7eaf(0x27c)](){const _0x56cef1=_0x5b7eaf;var _0x3131dd,_0x10d0d5;this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](_0x3b1152)[_0x56cef1(0x1dd)]({'priority':0x14,'interceptor':_0x3a87f1({'maxParallel':0x6})}),(_0x3131dd=this[_0x56cef1(0x365)])!=null&&_0x3131dd[_0x56cef1(0x3c2)]||this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](D)['disableLocalCache'](),(_0x10d0d5=this['_config'])!=null&&_0x10d0d5[_0x56cef1(0x37a)]&&this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](st),this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](Ue),this[_0x56cef1(0x27d)][_0x56cef1(0x30c)](ye)&&this[_0x56cef1(0x27d)][_0x56cef1(0x2dc)](ye);}};ea(Ut,_0x5b7eaf(0x236),ta),Ut=Qo([_0x2d6767(_0x407ee7),Ve(0x1,_0x4cc166),Ve(0x2,_0xeaee19),Ve(0x3,_0x2c1848(_0x1637c5)),Ve(0x4,_0x5debaa)],Ut);export{No as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ue as CollaborationController,tt as CollaborationEntity,bt as CollaborationSession,ae as CollaborationSessionService,Ct as CollaborationSocketService,w as CollaborationStatus,lo as CollaborationStatusDisplay,Ls as CommentService,Ge as DataLoaderController,ye as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,As as ICollaborationSocketService,Fs as IURLService,Nt as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,En as RETRY_CONNECTING_INTERVAL_KEY,bn as RETRY_CONNECTING_MAX_COUNT_KEY,mn as SEND_CHANGESET_TIMEOUT_KEY,un as SNAPSHOT_SERVER_URL_KEY,fn as SNAPSHOT_URL_KEY,W as SessionStatus,Yr as SheetCollabCursorShape,Rt as SheetCollaborationEntity,yt as SnapshotServerOverHTTPService,Ut as UniverCollaborationClientPlugin,zo as WebURLService,yn as deserializeToCombResponse,Mn as serializeCombRequest};
1
+ const _0x27ba00=_0x1a62;(function(_0xedfb6b,_0x187e7b){const _0x1c2e52=_0x1a62,_0x28aeb4=_0xedfb6b();while(!![]){try{const _0x1c3a43=parseInt(_0x1c2e52(0x13d))/0x1*(-parseInt(_0x1c2e52(0x30c))/0x2)+-parseInt(_0x1c2e52(0x1da))/0x3*(parseInt(_0x1c2e52(0x2ca))/0x4)+parseInt(_0x1c2e52(0x222))/0x5+parseInt(_0x1c2e52(0x376))/0x6+-parseInt(_0x1c2e52(0x249))/0x7*(parseInt(_0x1c2e52(0x17b))/0x8)+-parseInt(_0x1c2e52(0x238))/0x9+parseInt(_0x1c2e52(0x343))/0xa*(parseInt(_0x1c2e52(0x221))/0xb);if(_0x1c3a43===_0x187e7b)break;else _0x28aeb4['push'](_0x28aeb4['shift']());}catch(_0x2c42ff){_0x28aeb4['push'](_0x28aeb4['shift']());}}}(_0x40b2,0x829b3));var zs=Object[_0x27ba00(0x198)],Zs=(_0x2f96aa,_0x5cc6be,_0x2899d9)=>_0x5cc6be in _0x2f96aa?zs(_0x2f96aa,_0x5cc6be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2899d9}):_0x2f96aa[_0x5cc6be]=_0x2899d9,l=(_0x50fd13,_0x5bdfc4,_0x483473)=>Zs(_0x50fd13,typeof _0x5bdfc4!='symbol'?_0x5bdfc4+'':_0x5bdfc4,_0x483473);import{createIdentifier as _0x2d9842,Inject as _0x27d762,Disposable as _0x10a60d,DisposableCollection as _0x23cc70,toDisposable as _0x10763a,IConfigService as _0xeb1b98,ILogService as _0x1dd153,UserManagerService as _0x5a5fa2,UniverInstanceType as _0x28cb79,IUniverInstanceService as _0x4a4945,LocaleService as _0x5d963b,Optional as _0x3a7ea6,RxDisposable as _0x504ec7,Injector as _0x2a6c13,Tools as _0x38eaa3,ILocalStorageService as _0x441955,ICommandService as _0xf80f3b,JSONX as _0x1eddbc,CommandType as _0x38cb05,IPermissionService as _0xdc2a7e,IUndoRedoService as _0x3b566c,sequenceExecute as _0x312bc3,Rectangle as _0x3b9a06,debounce as _0x224ffa,OnLifecycle as _0x43e6ff,LifecycleStages as _0x2baed3,COLORS as _0x460073,ColorKit as _0x870dc0,ThemeService as _0x5574a0,fromEventSubject as _0x3a4206,useDependency as _0x18c223,connectInjector as _0x2c7159,Workbook as _0xcbf837,isInternalEditorID as _0x3682dd,LocalUndoRedoService as _0x231523,IContextService as _0x3eb638,DependentOn as _0x954fb6,Plugin as _0x2b5559,IAuthzIoService as _0x295788,mergeOverrideWithDependencies as _0x40b69d}from'@univerjs/core';import{Subject as _0x1a4ff5,merge as _0x4c28c6,takeUntil as _0x350758,BehaviorSubject as _0x23c814,distinctUntilChanged as _0x8c1afe,fromEvent as _0x1d5cc2,map as _0x5a8977,shareReplay as _0x416754,take as _0x542947,of as _0x215f7f,debounceTime as _0x907c69,filter as _0x3a4a54,switchMap as _0xdc9d7a,combineLatest as _0x1d8b8d,concatMap as _0x28894e,mapTo as _0x5a384c}from'rxjs';import{map as _0x42ddbb,take as _0xf7175c,filter as _0x2e3311,delay as _0x580b83,throttleTime as _0x25ed9c,takeUntil as _0x541db9,switchMap as _0x170d0f}from'rxjs/operators';import{MessageType as _0x104514,Tooltip as _0x22317b}from'@univerjs/design';import{IBeforeCloseService as _0x5e457c,IMessageService as _0x17da32,INotificationService as _0x3319e0,useObservable as _0x1a9e47,BuiltInUIPart as _0x3b6b42,IUIPartsService as _0x37e53f}from'@univerjs/ui';import{HTTPService as _0x3fd702,WebSocketService as _0x2e30ea,MergeInterceptorFactory as _0x2966fa,HTTPRequest as _0x1ccb75,IHTTPImplementation as _0xcdd277,XHRHTTPImplementation as _0x1a818b,ThresholdInterceptorFactory as _0x18dec9}from'@univerjs/network';import{CollaborationEvent as _0x6fa194,parseChangesetToProtocol as _0x348189,ISnapshotServerService as _0x2638ed,isTransformMutationFailure as _0x25fecd,isTransformMutationsWithChangesetSuccess as _0x1476be,ITransformService as _0x29f88d,RevisionService as _0x3a9a12,mapDocumentTypeToUniverType as _0x49b8c6,isTransformChangesetsSuccess as _0x246037,CompressMutationService as _0x1aacdc,parseProtocolChangeset as _0x3e0428,SnapshotService as _0x55dfa3,textEncoder as _0x55dc89,b64DecodeUnicode as _0x21fcd3,isTransformMutationsWithChangesetFailure as _0x539600,UniverCollaborationPlugin as _0x15fcc2}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x3c3c5e}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x4f65a4,RichTextEditingMutation as _0x4ee1d3,SetTextSelectionsOperation as _0x5dfba4,DocSkeletonManagerService as _0x12f84e}from'@univerjs/docs';import{DocIMEInputManagerService as _0x24ee3e,DocStateChangeManagerService as _0x1981c4,NodePositionConvertToCursor as _0x368f8a,isValidRectRange as _0x4de1d0,NodePositionConvertToRectRange as _0x511433,TEXT_RANGE_LAYER_INDEX as _0x5e95a3,SetDocZoomRatioOperation as _0x3b6457}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x3145be,SetSelectionsOperation as _0x5b7f43,InsertSheetMutation as _0x2e3a28,EmptyMutation as _0x574c93,WorkbookEditablePermission as _0x474cf8,RefRangeService as _0x3cb22f,EffectRefRangId as _0x415f84,handleIRemoveRow as _0x120052,handleIRemoveCol as _0x4684c4,handleMoveRange as _0x1ec3fa,handleInsertRow as _0x519be2,handleInsertRangeMoveRight as _0x5c4fbb,handleInsertRangeMoveDown as _0x3f46b0,handleInsertCol as _0x54694a,handleDeleteRangeMoveUp as _0x4e8d6c,handleDeleteRangeMoveLeft as _0x325c1a,runRefRangeMutations as _0x4c70ed,SetWorksheetActivateCommand as _0x19e4e3}from'@univerjs/sheets';import{IRenderManagerService as _0x57cdea,Shape as _0x916b9e,Rect as _0x3dd5a3,getColor as _0x54377d,RegularPolygon as _0x3f4a1e,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x510a85,Vector2 as _0x52f556}from'@univerjs/engine-render';import{ImageSourceType as _0x3669a1,ImageUploadStatusType as _0x49c411,IImageIoService as _0xdaa1d3}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x40c2a5,serializeRangeWithSheet as _0x4dc523}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x485edb,VIEWPORT_KEY as _0x4cba9b,getCoordByCell as _0x8c95be,getSheetObject as _0xd2383f,SheetPermissionInitController as _0xfc27fa}from'@univerjs/sheets-ui';import _0x3ebc85,{forwardRef as _0x58d378,useRef as _0x1984ee,createElement as _0x86cf07,useCallback as _0x692936}from'react';import _0x501083 from'clsx';import{IRemoteInstanceService as _0x321b9c}from'@univerjs/rpc';import{getAttachHeader as _0x371ad3}from'@univerjs-pro/license';const fn=_0x27ba00(0x11c),mn=_0x27ba00(0xc5),gn='SNAPSHOT_URL_KEY',Da='SEND_CHANGESET_TIMEOUT',Sn=0x7d0,pn=_0x27ba00(0x1fc),vn='ws://127.0.0.1:8000/universer-api/comb/connect',In=_0x27ba00(0x2e9),En=0x7530,Us=_0x27ba00(0x320),Ms=0x4e20,Cn=0x4e20,bn=_0x27ba00(0x19a),Tn=0x3,Rn='LOCAL_CACHE_INTERVAL',On=0x3e8,Dn='COLLAB_SUBMIT_CHANGESET_URL',wn='/universer-api/comb',Pn=_0x27ba00(0x121),yn=_0x27ba00(0x24b);var As=(_0x21507c=>(_0x21507c[_0x21507c[_0x27ba00(0x36d)]=0x0]='UNDEFINED',_0x21507c[_0x21507c['OK']=0x1]='OK',_0x21507c[_0x21507c['INTERNAL_ERROR']=0x2]=_0x27ba00(0x15a),_0x21507c[_0x21507c[_0x27ba00(0x3cb)]=0x3]=_0x27ba00(0x3cb),_0x21507c[_0x21507c[_0x27ba00(0x264)]=0x4]='NOT_FOUND',_0x21507c[_0x21507c[_0x27ba00(0x2e5)]=0x5]=_0x27ba00(0x2e5),_0x21507c[_0x21507c['ALREADY_EXISTS']=0x6]=_0x27ba00(0x1f7),_0x21507c[_0x21507c[_0x27ba00(0x365)]=0x7]=_0x27ba00(0x365),_0x21507c[_0x21507c[_0x27ba00(0x131)]=0x8]='TOO_MANY_REQUESTS',_0x21507c[_0x21507c['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x21507c[_0x21507c[_0x27ba00(0x383)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x21507c[_0x21507c[_0x27ba00(0x214)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x21507c[_0x21507c[_0x27ba00(0x2be)]=0x1772]=_0x27ba00(0x2be),_0x21507c[_0x21507c['APPLY_REJECT']=0x1b59]=_0x27ba00(0x275),_0x21507c[_0x21507c[_0x27ba00(0x3b3)]=0x1b5a]=_0x27ba00(0x3b3),_0x21507c[_0x21507c[_0x27ba00(0x215)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x21507c[_0x21507c[_0x27ba00(0x278)]=0x1b5c]=_0x27ba00(0x278),_0x21507c[_0x21507c[_0x27ba00(0x1e7)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x21507c[_0x21507c[_0x27ba00(0x3c4)]=0x2329]=_0x27ba00(0x3c4),_0x21507c[_0x21507c[_0x27ba00(0x316)]=0x232a]=_0x27ba00(0x316),_0x21507c[_0x21507c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x21507c[_0x21507c[_0x27ba00(0x2dc)]=0x232c]=_0x27ba00(0x2dc),_0x21507c[_0x21507c['LICENSE_DISTRO_REJECTED']=0x232d]=_0x27ba00(0x2ad),_0x21507c[_0x21507c[_0x27ba00(0x322)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x21507c[_0x21507c[_0x27ba00(0x241)]=0x2712]=_0x27ba00(0x241),_0x21507c[_0x21507c[_0x27ba00(0x135)]=0x2713]=_0x27ba00(0x135),_0x21507c[_0x21507c[_0x27ba00(0x1c5)]=0x2714]=_0x27ba00(0x1c5),_0x21507c[_0x21507c[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x21507c))(As||{}),H=(_0x181582=>(_0x181582[_0x181582[_0x27ba00(0x7a)]=0x0]=_0x27ba00(0x7a),_0x181582[_0x181582[_0x27ba00(0x2e3)]=0x1]='UNIVER_DOC',_0x181582[_0x181582[_0x27ba00(0xdf)]=0x2]=_0x27ba00(0xdf),_0x181582[_0x181582['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x181582[_0x181582[_0x27ba00(0xfa)]=0x4]='UNIVER_PROJECT',_0x181582[_0x181582[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x181582))(H||{}),I=(_0x3a8d45=>(_0x3a8d45[_0x3a8d45[_0x27ba00(0x1d2)]=0x0]=_0x27ba00(0x1d2),_0x3a8d45[_0x3a8d45['HELLO']=0x1]=_0x27ba00(0x167),_0x3a8d45[_0x3a8d45[_0x27ba00(0x32d)]=0x2]=_0x27ba00(0x32d),_0x3a8d45[_0x3a8d45['LEAVE']=0x3]='LEAVE',_0x3a8d45[_0x3a8d45[_0x27ba00(0x287)]=0x4]=_0x27ba00(0x287),_0x3a8d45[_0x3a8d45[_0x27ba00(0x301)]=0x5]=_0x27ba00(0x301),_0x3a8d45[_0x3a8d45[_0x27ba00(0x156)]=0x6]=_0x27ba00(0x156),_0x3a8d45[_0x3a8d45[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x3a8d45))(I||{}),Vt=(_0x3ffc63=>(_0x3ffc63[_0x3ffc63[_0x27ba00(0x11f)]=0x0]=_0x27ba00(0x11f),_0x3ffc63[_0x3ffc63['OK']=0x1]='OK',_0x3ffc63[_0x3ffc63[_0x27ba00(0x2f5)]=0x2]='FAIL',_0x3ffc63[_0x3ffc63[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x3ffc63))(Vt||{}),Ls=(_0x3eb387=>(_0x3eb387[_0x3eb387[_0x27ba00(0x3c7)]=0x0]=_0x27ba00(0x3c7),_0x3eb387[_0x3eb387['HttpImport']=0x1]='HttpImport',_0x3eb387[_0x3eb387['HttpExport']=0x2]=_0x27ba00(0x2a2),_0x3eb387[_0x3eb387[_0x27ba00(0x185)]=0x3]=_0x27ba00(0x185),_0x3eb387[_0x3eb387['UnitSnapshot']=0x4]='UnitSnapshot',_0x3eb387[_0x3eb387[_0x27ba00(0xec)]=-0x1]=_0x27ba00(0xec),_0x3eb387))(Ls||{});const L=_0x27ba00(0x35c),Nn={};function Un(_0x246427){const _0x1917f7=_0x27ba00;var _0x373863,_0x211054,_0x10c328,_0x2eb5f9;const _0x10d978=_0x246427[_0x1917f7(0x216)],_0x3f3c2c=JSON[_0x1917f7(0xfc)](_0x10d978);switch(_0x3f3c2c[_0x1917f7(0xbb)]){case I[_0x1917f7(0x301)]:case I[_0x1917f7(0x167)]:{const _0x3edb36=_0x3f3c2c[_0x1917f7(0xa0)];return{..._0x3f3c2c,'data':_0x3edb36,'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};}case I[_0x1917f7(0x32d)]:{const _0xc66e5f=_0x3f3c2c[_0x1917f7(0x2ed)];return{..._0x3f3c2c,'data':_0xc66e5f,'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};}case I['RECV']:{const _0x2a4c76=_0x3f3c2c[_0x1917f7(0x33b)];switch(_0x2a4c76[_0x1917f7(0xc3)]){case _0x6fa194[_0x1917f7(0x1d3)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x373863=_0x2a4c76['permissionRejEvent'])==null?void 0x0:_0x373863['cs']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194[_0x1917f7(0xdc)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x211054=_0x2a4c76[_0x1917f7(0xaf)])==null?void 0x0:_0x211054['cs']},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0xad)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x10c328=_0x2a4c76[_0x1917f7(0x115)])==null?void 0x0:_0x10c328['cs']},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x308)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':(_0x2eb5f9=_0x2a4c76[_0x1917f7(0x25f)])==null?void 0x0:_0x2eb5f9['cs']},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x378)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x2ea)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x120)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['joinEvent']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194[_0x1917f7(0x386)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x368)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x1f2)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['liveShareNewHost']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194['LIVESHARE_FETCH_OPERATIONS']:case _0x6fa194[_0x1917f7(0x335)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['liveShareOperation']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194['LIVESHARE_TERMINATE']:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x2d3)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x3ba)]:return{..._0x3f3c2c,'data':_0x2a4c76,'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194[_0x1917f7(0x3c2)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76['commentUpdateEvent']},'cmd':_0x3f3c2c['cmd']};case _0x6fa194[_0x1917f7(0x3a7)]:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0xeb)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};case _0x6fa194['SHOULD_CLOSE_CONN']:return{..._0x3f3c2c,'data':{..._0x2a4c76,'data':_0x2a4c76[_0x1917f7(0x2b7)]},'cmd':_0x3f3c2c[_0x1917f7(0xbb)]};default:return _0x3f3c2c;}}default:return _0x3f3c2c;}}function Mn(_0x20a36d){const _0x126122=_0x27ba00;switch(_0x20a36d[_0x126122(0xbb)]){case I[_0x126122(0x301)]:case I['HELLO']:return JSON[_0x126122(0xea)]({'cmd':_0x20a36d['cmd'],'routeKey':_0x20a36d[_0x126122(0x2fb)]});case I['INGEST']:{let _0x1ca286;switch(_0x20a36d[_0x126122(0x216)][_0x126122(0xc3)]){case _0x6fa194[_0x126122(0x378)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x378)],'updateCursorEvent':_0x20a36d[_0x126122(0x216)]['data']};break;}case _0x6fa194[_0x126122(0x386)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x386)],'leaveEvent':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194[_0x126122(0x120)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x120)],'joinEvent':_0x20a36d[_0x126122(0x216)]['data']};break;}case _0x6fa194[_0x126122(0x1f2)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x1f2)],'liveShareNewHost':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194['LIVESHARE_OPERATION']:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x335)],'liveShareOperation':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194[_0x126122(0x1b9)]:{_0x1ca286={'eventID':_0x6fa194['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x20a36d[_0x126122(0x216)][_0x126122(0x216)]};break;}case _0x6fa194[_0x126122(0x286)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x286)],'liveShareRequestHost':_0x20a36d['data']['data']};break;}case _0x6fa194[_0x126122(0x1f5)]:{_0x1ca286={'eventID':_0x6fa194[_0x126122(0x1f5)]};break;}default:_0x1ca286={'eventID':_0x20a36d[_0x126122(0x216)][_0x126122(0xc3)]};}return JSON[_0x126122(0xea)]({'cmd':_0x20a36d[_0x126122(0xbb)],'routeKey':_0x20a36d[_0x126122(0x2fb)],'collaMsg':_0x1ca286});}case I['JOIN']:return JSON[_0x126122(0xea)]({'cmd':_0x20a36d[_0x126122(0xbb)],'routeKey':_0x20a36d['routeKey'],'joinReq':_0x20a36d[_0x126122(0x216)]});case I[_0x126122(0xf3)]:return JSON[_0x126122(0xea)]({'cmd':_0x20a36d[_0x126122(0xbb)],'routeKey':_0x20a36d['routeKey'],'leaveReq':_0x20a36d[_0x126122(0x216)]});default:throw new Error(_0x126122(0x3c9));}}var An=Object[_0x27ba00(0x198)],Ln=Object[_0x27ba00(0x280)],$n=(_0x135807,_0x13e416,_0x1379a4,_0x2d1338)=>{const _0x3cbdbf=_0x27ba00;for(var _0x530427=_0x2d1338>0x1?void 0x0:_0x2d1338?Ln(_0x13e416,_0x1379a4):_0x13e416,_0x612af=_0x135807[_0x3cbdbf(0x117)]-0x1,_0x328419;_0x612af>=0x0;_0x612af--)(_0x328419=_0x135807[_0x612af])&&(_0x530427=(_0x2d1338?_0x328419(_0x13e416,_0x1379a4,_0x530427):_0x328419(_0x530427))||_0x530427);return _0x2d1338&&_0x530427&&An(_0x13e416,_0x1379a4,_0x530427),_0x530427;},Re=(_0x1a7619,_0x8a114)=>(_0x11cc41,_0x45a91c)=>_0x8a114(_0x11cc41,_0x45a91c,_0x1a7619);const $s=_0x2d9842(_0x27ba00(0x2a1));function jn(_0x1cfe3c,_0x4705d4,_0x2c4586){const _0x11ee4a=_0x27ba00;return _0x1cfe3c+'/'+_0x4705d4+'/unit/'+_0x2c4586+_0x11ee4a(0x32b);}let Tt=class extends _0x10a60d{constructor(_0x2067d7,_0x33038f,_0x37c2cd,_0x20c809,_0xb600ac){const _0x402d19=_0x27ba00;super(),this[_0x402d19(0x25b)]=_0x2067d7,this['_ws']=_0x33038f,this[_0x402d19(0x19e)]=_0x37c2cd,this['_logService']=_0x20c809,this[_0x402d19(0x395)]=_0xb600ac;}[_0x27ba00(0x253)](_0x505a45){const _0x3bda55=_0x27ba00,_0x5846b1=this[_0x3bda55(0x2bc)]['createSocket'](_0x505a45);if(!_0x5846b1)throw new Error(_0x3bda55(0x389));const _0x10f52e=new _0x23cc70(),_0x1d34df=new _0x1a4ff5();_0x10f52e['add'](_0x5846b1[_0x3bda55(0x1ed)][_0x3bda55(0x3c1)](_0x3d5b22=>_0x1d34df['next'](_0x3d5b22))),_0x10f52e[_0x3bda55(0x30d)](_0x10763a(()=>_0x1d34df[_0x3bda55(0x373)]()));const _0x572c8c=new _0x1a4ff5();_0x10f52e[_0x3bda55(0x30d)](_0x5846b1[_0x3bda55(0xb4)]['subscribe'](_0x195de7=>_0x572c8c[_0x3bda55(0x8c)](_0x195de7))),_0x10f52e[_0x3bda55(0x30d)](_0x10763a(()=>_0x572c8c[_0x3bda55(0x373)]()));const _0x3de35e=new _0x1a4ff5();_0x10f52e[_0x3bda55(0x30d)](_0x5846b1['message$'][_0x3bda55(0x3c1)](_0x5e7900=>{const _0x4abc5b=_0x3bda55,_0x358d53=Un(_0x5e7900);_0x3de35e[_0x4abc5b(0x8c)](_0x358d53);})),_0x10f52e[_0x3bda55(0x30d)](_0x10763a(()=>_0x3de35e[_0x3bda55(0x373)]()));let _0x4301b9;const _0xbddeec=()=>{const _0x33d725=_0x3bda55;_0x572c8c['next'](new Event(_0x33d725(0x3c8))),_0x1d34df[_0x33d725(0x8c)](new CloseEvent('connection\x20error')),_0x4301b9[_0x33d725(0x369)]();};return _0x4301b9={'memberID':'','close$':_0x1d34df[_0x3bda55(0x14e)](),'error$':_0x572c8c[_0x3bda55(0x14e)](),'open$':_0x5846b1[_0x3bda55(0x104)],'message$':_0x3de35e[_0x3bda55(0x14e)](),'send':_0x292efa=>{const _0x52d559=_0x3bda55;if(_0x292efa['cmd']===I[_0x52d559(0x287)]){if(_0x292efa[_0x52d559(0x216)][_0x52d559(0xc3)]===_0x6fa194[_0x52d559(0x18f)]){this[_0x52d559(0x3d7)](_0x4301b9,_0x292efa[_0x52d559(0x216)])[_0x52d559(0x269)](_0x2687cd=>{const _0x426c33=_0x52d559;this[_0x426c33(0xd6)][_0x426c33(0x1e5)](_0x2687cd),_0xbddeec();});return;}if(_0x292efa[_0x52d559(0x216)]['eventID']===_0x6fa194[_0x52d559(0x18d)]){const _0x4739b6=_0x292efa[_0x52d559(0x216)];this[_0x52d559(0x385)](_0x4739b6)[_0x52d559(0x20c)](_0x2b03c2=>{const _0x2cfc3e=_0x52d559;_0x3de35e['next']({'cmd':I[_0x2cfc3e(0x156)],'code':Vt['OK'],'routeKey':_0x4739b6[_0x2cfc3e(0x216)][_0x2cfc3e(0x12c)],'routeType':'','data':{'eventID':_0x6fa194[_0x2cfc3e(0x3cc)],'data':{'changesets':_0x2b03c2}}});})[_0x52d559(0x269)](_0x5f5968=>{this['_logService']['error'](_0x5f5968),_0xbddeec();});return;}}_0x5846b1['send'](Mn(_0x292efa));},'close':()=>{const _0x537e7e=_0x3bda55;_0x5846b1['close'](),_0x10f52e[_0x537e7e(0x323)]();}},_0x4301b9;}async[_0x27ba00(0x3d7)](_0x2fa485,_0x115e85){const _0xbf201f=_0x27ba00;var _0x1a6519,_0x7d963d;const {unitType:_0x302ef4,unitID:_0x2fada5,changeset:_0x3b855b}=_0x115e85['data'],_0x21ac81={'unitID':_0x2fada5,'memberID':_0x2fa485['memberID'],'type':_0x302ef4,'changeset':_0x348189(_0x3b855b)},_0x48cf16=this[_0xbf201f(0x19e)][_0xbf201f(0x3c6)](Dn),_0x2b9ea7=this[_0xbf201f(0x19e)][_0xbf201f(0x3c6)](L),_0x3d7acc=jn((_0x7d963d=(_0x1a6519=_0x2b9ea7==null?void 0x0:_0x2b9ea7[_0xbf201f(0x2c3)])!=null?_0x1a6519:_0x48cf16)!=null?_0x7d963d:wn,_0x302ef4,_0x2fada5);try{await this[_0xbf201f(0x25b)][_0xbf201f(0x1c7)](_0x3d7acc,{'body':_0x21ac81});}catch(_0x3136f0){throw this[_0xbf201f(0xd6)]['error'](_0xbf201f(0xaa),_0xbf201f(0xf5)),_0x3136f0;}}async['_fetchMissChangesets'](_0x5bd645){const _0x57dd6f=_0x27ba00,{unitID:_0x4b49a1,from:_0x3ee781,to:_0x405deb,unitType:_0x25079e}=_0x5bd645[_0x57dd6f(0x216)];return(await this[_0x57dd6f(0x395)][_0x57dd6f(0x1c0)]({'metadata':void 0x0},{'unitID':_0x4b49a1,'type':_0x25079e,'from':_0x3ee781,'to':_0x405deb}))[_0x57dd6f(0x218)];}};function _0x40b2(){const _0x2d0986=['updateCursorEvent','textRanges','push','joinRsp','_selfUnitIDs','key','userID','getUndoRedoMutationParamsCache','fetching\x20missing\x20changesets\x20from\x20','_collaborationPaused','subunit','FAIL','_renderManagerService','put','setActiveRange','_timeoutTimer','currentTheme$','routeKey','arc','&to=','getResourcesRequest','_registerRenderDependencies','onPointerMove$','HEARTBEAT','_incrementRevisionNumber','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','onRemoteChangeset','[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.','_refreshCollabCursors','?size=','CHANGESET_REJ','from','_members','skeleton','8XNrMmb','add','univerjs-icon\x20univerjs-icon-','UUID','withCredentials','clearTimeout','enableSingleActiveInstanceLock','exhaustSavingTask','_onRemoteACK','jiqing500','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','NOT_COLLAB','beginPath','setInterval','generateRandomId','_clearCollaborationTimeoutTimer','pipe','_undoStacks','_initStatusListener','updateMember','HEARTBEAT_TIMEOUT','call','YUUMI_UNABLE_LOAD_URL','dispose','Starting','snapshotServerUrl','_onUserJoin','_scene','evenodd','isPermissionRej','_transformService','/new_changes','baseRev','JOIN','includes','saveImage','_syncEditingCollabCursor','reduce','_send','size','sheetID','LIVESHARE_OPERATION','popstate','[CollaborationUndoRedoService]','NO_OTHER_CLIENTS_EDITING','FromArray','FileId','collaMsg','univer-online','getRenderById','_getLoginPath','collabStatus.fetchMiss','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_handleJoinEvent','getSheetBySheetId','12910RXLtRS','toString','[CollaborationSessionService]','show','loadOfflineData','/fetchmissing?from=','_checkMissing','_config','getImageSourceCache','_decreaseWaiting','onCommentUpdate','_cachedData','\x0aCurrent:\x20','all','onload','session.room-full','setCurrentUser','visibilityState','color','_roomMembers','univer-pro.collaboration-client.single-active-unit-service','COMPRESS_MUTATION_SEND','event$','searchParams','Univer','collaboration-client.config','_getSheetObject','children','_waitCount','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','m1Prime','getCurrentSelections','_createInitialState','Warning','INVALID_ARGUMENT','_getCtorByUniverType','getSheetBlock','leaveEvent','close','_HTTPService','0\x200\x2016\x2016','session.will-retry','UNDEFINED','_sendHeartbeat','_candidateSocket','objects','set','collab-text-range-','complete','incrementRevOfUnit','getCellPositionByOffset','697944trgzpu','_listenToOnlineEvent','UPDATE_CURSOR','c1Prime','snapshot','_onFetchMissResult','capture','entries','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','PENDING','rgba(255,\x20255,\x20255,\x200.01)','saveSheetBlock','_initCloseConn','CHANGESET_REVISION_CONFILICT','setParam','_fetchMissChangesets','USERS_LEAVE','registerRefRange','_uiPartsService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','compose','lineTo','urlChange$','setTimeout','cursorInfo','getUnhiddenWorksheets','collabWebSocketUrl','_saveCache','forEach','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_snapshotServerService','restore','updateCollaborator','transformChangesets','_telemetryService','_lockTransition','_createSocket','className','_transformRemoteChangesetByIMECache','attrs','_queuedRemoteChangesets','UNIVER_COLLABORATION_CLIENT_PLUGIN','pending','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','saveChangeset','toRgbString','uni.network.url-service','_unitID','UPDATE_PERMISSION_OBJ','onMouseMove','substring','_scheduleHeartbeat','getParam','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','conflict.title','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','appendMutation','_socketService','getMemberID','hide','APPLY_NON_SEQUENTIAL_REVISION','_handler','_colorAssignService','addObject','roomMembers$','originalMeta','transformMutationsWithChangeset','MSG_FOR_ERROR','resolve','cursorInfo$','mutations','visibilitychange','reverse','confirm','subscribe','COMMENT_UPDATE','_hover','LICENSE_MAX_UNITS_EXCEEDED','_joinRoom','getConfig','Undefined','connection\x20error','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','currentSkeleton$','PERMISSION_DENIED','PSEUDO_FETCH_MISSING_RESULT','_transformSelections','_acknowledgedAwaitingChangeset','/collaborator','OTHER_CLIENTS_EDITING','registerComponent','\x20to\x20','_showConflictNotification','none','_drawTextRange','displayName','_submitChangeset','range','_clearHeartbeatTimer','/unit/','_undoRedoService','_sendingTimer','onRemoteAck','encodeURIComponent','_pendingMutations','onSendChangeset','[FetchMissState]','addImageSourceCache','workbook','getActiveRange','collaboration.closeRoom','toggleOnline','_initCommandExecutedListener','defIds','_getSignURL','getValue','copyFileMeta','_startCollaboration','onPointerLeave$','_imageSourceCache','reject','url(#$1','_revisionService','gold400','verdancy600','_localStorageService','UNIVER_UNKNOWN','_init','_cursors','update','VIEW_MAIN','_getRedoStack','members','_sendHeartbeatTimer','transformStack\x20failed!','OnLineSingle','_collabCursorState$','createInstance','_online','getOwnPropertySymbols','/object/','_retryCount','doc.mutation.rich-text-editing','_saveTaskMap','next','localeService','synced','_transformIMECache','_awaitingChangeset','_onRecvEvent','_handleHover','_updateURLWithCurrentState','_transformStack','getItem','currentColor','_substituteUndoStack','_eventUnsubscribe','objectID','collabStatus.offline','_onRemoteRejected','getMember','Error\x20on\x20receiving\x20event','bottom','_listenToOfflineEvent','infoRsp','onTransformChange$','signUrlServerUrl','clearInterval','_permissionService','_onCursorUpdate','_scheduleCollaborationTimeoutTimer','...','sessionStatus','roles','[CollaborationSession]','FETCH_MISS','onRemoteRej','NEW_CHANGESETS','selections','csAckEvent','ranges','setShapeProps','change$','0\x200\x2017\x2016','error$','_unitOnClients','executeCommand','startTime','params','onlineStatus','indexOf','cmd','getUnit','_sheetSkeletonManagerService','session','onTransformIME','DEFAULT_FILE_NAME','append','/-/object/-/batch_allowed','eventID','collabStatus.syncing','/universer-api/snapshot','defs','state','_ensureSubject','_socket$','_heartbeatTimer','now','_onRemoteChangeset','assignAColorForMemberID','_type','font','assign','?url=','revision','getTime','top','type','_logService','_exhaustRemoteChangesetQueue','apply','_clearTimeoutTimer','_startTelemetryCollaborationNewChangeset','UniverIcon','CHANGESET_ACK','_getUploadFileURL','updatePermissionPoint','UNIVER_SHEET','purple300','delete','getUnitType','_univerInstanceService','_httpService','replace','_updateSubUnitFromURLParams','awaiting','hasOwnProperty','listCollaborators','stringify','updatePermissionObjEvent','UNRECOGNIZED','makeDirty','[OfflineState]:\x20received\x20acknowledgement.','_collabCursorController','_beforeCloseService','AUTHZ_URL_KEY','_docTransformIMECacheService','LEAVE','[PendingState]:\x20received\x20acknowledgement.','submit\x20changeset\x20error!','enableOfflineEditing','_transformUndoredo','round','_loadDoc','UNIVER_PROJECT','getCollabCursors$','parse','1em','getOffsetConfig','_tryEnsureSocket','transformUndoRedo','_name','status','_toggleOffline','open$','result','readAsDataURL','tag','roomMembers','body','_initUnitPermissionChange','_replayCachedMutations','sessionStatus$','_retryConnectingTimer','removeMember','_cursorShapes','startColumn','_themeService','_drawAnchor','save','onlineStatusTitle','newCsEvent','off-line-single','length','collaboration.single-unit.warning','collaboration-client.offline-data-not-saved','_color','_rescheduleHeartbeat','SNAPSHOT_SERVER_URL_KEY','resize','[DataLoaderController]','UNKNOWN_CODE','USERS_ENTER','LOGIN_URL_KEY','_docTransformSelectionsService','_roomMembers$','every','collab-rect-range-','transformIMECache','getUnitStatus$','send','InsertRowCommandId','_localCacheService','_labelPosition','unitID','_stopTelemetryCollaborationNewChangeset','_localeService','unsubscribe','_state','TOO_MANY_REQUESTS','dispose$','_scheduleSaving','newValue','YUUMI_RATE_OVER_LIMIT','\x0aAfter:\x20','_collabSessionService','_context','CONFLICT','resend','onMissedChangesetFetched','collaboratorID','35939GeFpDn','rev','_clearRedo','onMissingChangesets','propertyIsEnumerable','_status$','_clearScheduledTask','_loadSheet','subUnitId','addObjects','getUnitOnRev','_schedule','_remoteChangesetQueue','use','toggleOffline','_notificationService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','asObservable','_clearOtherTimers','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','createElement','getWorkbookSelections','_docSyncEditingCollabCursorService','onSyncEditingCollabCursor','headers','RECV','_messageService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','measureText','INTERNAL_ERROR','resourceIDs','_commentService','retryConnectingInterval','_substituteRedoStack','onlyLocal','_instanceService','online','collabCursorState$','setUndoRedoMutationParamsCache','hidden','isArray','_sheetTransformSelectionsService','HELLO','_onOffline','disposeWithMe','column','status$','ONLINE','string','socketService','_throwTelemetryCollaborationNewChangeset','fetchMiss','endColumn','_getAPIPrefix','[CollaborationEntity]','_registerDependencies','idSuffix','getCurrentRevOfUnit','getTypeOfUnitDisposed$','_disableEditing','_sessionStatus$','/universer-api/stream/file/upload','140776hkDPnp','reconnect','onCommandExecuted','split','clear','onPointerEnter$','closePath','width','_session','_cursorInfo$','UnitEmbedded','unit-cache-','_syncEditingCollabCursorService','_createHandler','_docSkeleton','_getScale','socket$','_getSendChangesetTimeout','FETCH_MISSING','trim','SUBMIT_CHANGESET','[OfflineState]:\x20received\x20changeset.','[UniverCollaborationClientPlugin]','getViewport','focused$','red300','_createInitialStateImpl','fill','transform','defineProperty','socket\x20close','RETRY_CONNECTING_MAX_COUNT','_docStateChangeManagerService','icon','_textBubble','_configService','COMPRESS_MUTATION_APPLY','_initModules','addEventListener','_drawRectRange','_shouldReportTelemetry','unit','_unitStatus','_socketReady','_getMergeRange','extend','requestParams','_getAPIPrefixPath','values','image/jpeg','_handleHeartbeatEvent','loadSheet','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_commandService','getImage','_toggleOnline','div','collaboration-session-retry','getCollabEntity','collaborators','createCollaborator','interceptor','LIVESHARE_TERMINATE','_backgroundColor','slice','setItem','height','responseType','getCurrent','fetchMissingChangesets','BASE64','_getDownloadEndpointURL','onStateChange','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','YUUMI_SUBSCRIPTION_NOT_FOUND','_onConnectionOpen','post','on-line-single_clip0_910_349','IDLE','colorChannel1','_socket','RemoveRowCommandId','path','_cursor','_disabled','[CollaborationState]:\x20apply\x20error!','max','UNKNOWN_CMD','PERMISSION_REJ','hovered','min','target','_removeClearOtherTimer','href','/object','159723biHSeu','_scheduleTimestamp','memberID','get','replaceState','file','_event$','telemetry\x20info\x20is\x20not\x20initialized','transformRemoteChangeset','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','transformMutation','error','getTypeOfUnitAdded$','CONNECTOR_DATA_TOO_LARGE','_initResize','/resources','_updateLocalCache','_userManagerService','_setupSubUnitSync','close$','isActive','[SyncedState]:\x20received\x20acknowledgement.','_tryReconnect','OFFLINE','LIVESHARE_NEW_HOST','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_refRangeService','LIVESHARE_FETCH_OPERATIONS','_applyRemoteChangeset','ALREADY_EXISTS','_draw','getAncestorScale','#fff','location','COLLAB_WEB_SOCKET_URL','moveTo','unknown','/allowed','_onCursorDelete','_compressMutationService','_anchorDot','sendChangesetTimeout','_initMergeInterceptor','concat','collab-text-anchor-','AWAITING_WITH_PENDING','find','awaiting_with_pending','_unlockTransition','with','then','_updateStatus','activeSheet$','code','save\x20fail\x20reason\x20is\x20','_getSaveTimeout','black','startsWith','SNAPSHOT_INVALID_SNAPSHOT','APPLY_REVISION_CONFILICT','data','encode','changesets','objectType','unitId','AWAITING','_initRequestHeader','onTransformSelections','DeleteRangeMoveLeftCommandId','getCurrentUser','getSkeleton','19217EkHFSE','2402445OaqDGy','requireSession','_updateLocalCursor','refreshPermission','_shapes','debug','&source=','/block/','_updateState','prototype','_singleActiveUnitService','UNIVER_SLIDE','xlink:href','drawWith','getRoom','editingUnit','endRow','src','image/png','_scheduleClearOtherTimer','collabStatus.notCollab','SYNCED','4763700RBSHPR','image/bmp','_onJoinRoomEvent','url','selection','text','closeSession','map','unload','YUUMI_URL_COL_OUT_OF_RANGE','getUnitId','objectActions','x-univer-host','subscribeEvent','conflict.content','getSheetId','JOINING','294GdflwS','setAlpha','/universer-api/oidc/authpage','{fileID}','_anchor','url(#on-line-single_clip0_910_349)','_range','_id','_change$','_state$','createSocket','_setupBeforeClosingHandler','_initStatusComponent','_assignedColors','syncEditingCollabCursor','override','_entities','_render','_http','_onRefRangeChange','_startSheetCollabCursor','_onMessage','csRejEvent','fetch_missing','univer-online-status-icon','has','registerOnClose','NOT_FOUND','_updateCollabCursors','filter','findNodePositionByCharIndex','_onCombEvent','catch','registerRenderModule','_memberService','getCollabEntity$','_collaborationSessionService','unshift','offline','getRangePointData','_removeRoom','_onConflict','storage','_transformPreviousActiveRange','APPLY_REJECT','_collaborationTimeoutTimer','[PendingState]:\x20received\x20rejection.','APPLY_PERMISSION_DENIED','init','Error','_initEventListeners','backgroundColor','_removeCollabCursors','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','onStarting','getOwnPropertyDescriptor','_colorIndex','session.collaboration-timeout','loadDoc','getDeserializedSheetBlock','off-line-single_clip0_910_343','LIVESHARE_REQUEST_HOST','INGEST','_isPermissionRej','transformSelections','pluginName','fetchThroughInterceptors','/universer-api/file/{fileID}/sign-url','some','_redoStacks','history','_onLocalMutation','fillStyle','_waitForHeartbeatResponse','_transformUndoRedoStack','_urlService','commentUpdate$','_clearLocalCache','_entityInit$','row','_commentUpdate$','pushState','[PendingState]:\x20unhandled\x20univer\x20type:\x20','create','setConfig','Ready','_snapshotService','[CollaborationSessionService]:\x20socket\x20error','univer-pro.collaboration-client-socket-service','HttpExport','getFocusedUnit','_hideTimer','state$','_injector','_docSkeletonManagerService','c2Prime','flatMap','deepClone','_onUserLeave','sheets','LICENSE_DISTRO_REJECTED','method','awaitingChangeset','_sessions','_socketMessageSubscription','MUTATION','getMergeData','fillText','disableLocalCache','fillRule','shouldCloseConn','ACTIVE_UNIT_EVENT_CHANNEL','SUCCUSS','stopTime','_transitionLocked','_ws','_clearUndo','SNAPSHOT_HAS_BEEN_REMOVED','deleteCollaborator','\x20-\x20','m2Prime','saveOfflineData','collabSubmitChangesetUrl','Unknown\x20user','_telemetryInfo','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_getCurrentRevision','_getAnchorBounding','current','68SEXKPU','_lastPointer','Steady','actions','svg','list','getVpScrollXYInfoByPosToVp','permission.content','EXCHANGE_SIGN_URL_SERVER_URL_KEY','liveShareNewHost','transformByState','getInterceptPoints','_startDocCollabCursor','_getUndoStack','_onConnectionFailed','_hovered','M0\x200H16V16H0z','/rev/','LICENSE_EXPORT_SIZE_EXCEEDED','name','_executeRemoteChangeset','ERROR_IMAGE','_collaborationController','updateOfflineData','registerHTTPInterceptor','UNIVER_DOC','univer-online-status-title','UNAUTHENTICATED','roomInfos','InsertRangeMoveDownCommandId','_replaceFileID','HEARTBEAT_INTERVAL'];_0x40b2=function(){return _0x2d0986;};return _0x40b2();}Tt=$n([Re(0x0,_0x27d762(_0x3fd702)),Re(0x1,_0x27d762(_0x2e30ea)),Re(0x2,_0xeb1b98),Re(0x3,_0x1dd153),Re(0x4,_0x2638ed)],Tt);const xn='collaboration_new_changeset';function Hn(_0x38b9b6){const _0x343c6a=_0x27ba00;return JSON['stringify'](_0x38b9b6)[_0x343c6a(0x117)];}class js{constructor(){const _0x5f35bc=_0x27ba00;l(this,'_commentUpdate$',new _0x1a4ff5()),l(this,_0x5f35bc(0x295),this[_0x5f35bc(0x299)][_0x5f35bc(0x14e)]());}[_0x27ba00(0x34d)](_0x3c9bff){const _0x213e77=_0x27ba00;this[_0x213e77(0x299)][_0x213e77(0x8c)](_0x3c9bff);}}var kn=Object[_0x27ba00(0x198)],Bn=Object[_0x27ba00(0x280)],Vn=(_0x4cc1f8,_0x4c3292,_0x19f3b2,_0x517a8b)=>{const _0x42131e=_0x27ba00;for(var _0x1b180d=_0x517a8b>0x1?void 0x0:_0x517a8b?Bn(_0x4c3292,_0x19f3b2):_0x4c3292,_0x47169c=_0x4cc1f8[_0x42131e(0x117)]-0x1,_0xce720b;_0x47169c>=0x0;_0x47169c--)(_0xce720b=_0x4cc1f8[_0x47169c])&&(_0x1b180d=(_0x517a8b?_0xce720b(_0x4c3292,_0x19f3b2,_0x1b180d):_0xce720b(_0x1b180d))||_0x1b180d);return _0x517a8b&&_0x1b180d&&kn(_0x4c3292,_0x19f3b2,_0x1b180d),_0x1b180d;},os=(_0xc5519,_0x4d3fd5)=>(_0x1fbee1,_0x128bce)=>_0x4d3fd5(_0x1fbee1,_0x128bce,_0xc5519);let ae=class extends _0x10a60d{constructor(_0x356561,_0x2328b5){const _0x5c809c=_0x27ba00;super(),l(this,_0x5c809c(0x356),new Map()),(this[_0x5c809c(0xe3)]=_0x356561,this[_0x5c809c(0x1eb)]=_0x2328b5,this[_0x5c809c(0x169)](_0x10763a(_0x4c28c6(this[_0x5c809c(0xe3)]['getTypeOfUnitDisposed$'](_0x28cb79[_0x5c809c(0xdf)])[_0x5c809c(0x31c)](_0x42ddbb(_0x5f59b2=>_0x5f59b2[_0x5c809c(0x242)]())),this[_0x5c809c(0xe3)]['getTypeOfUnitDisposed$'](_0x28cb79[_0x5c809c(0x2e3)])['pipe'](_0x42ddbb(_0x36c580=>_0x36c580[_0x5c809c(0x242)]())),this[_0x5c809c(0xe3)][_0x5c809c(0x177)](_0x28cb79[_0x5c809c(0x22d)])[_0x5c809c(0x31c)](_0x42ddbb(_0x165296=>_0x165296[_0x5c809c(0x242)]())))['subscribe'](_0x4d0b19=>this[_0x5c809c(0x271)](_0x4d0b19)))));}[_0x27ba00(0x353)](_0x3bb58f){const _0x47d62b=_0x27ba00;this[_0x47d62b(0x1eb)][_0x47d62b(0x353)](_0x3bb58f);}['getCurrentUser'](){const _0x590d4c=_0x27ba00;return this[_0x590d4c(0x1eb)][_0x590d4c(0x21f)]();}[_0x27ba00(0x31f)](_0x3fe1a2,_0x4d9c14){const _0x2255aa=_0x27ba00;let _0x144e72=this[_0x2255aa(0x356)][_0x2255aa(0x1dd)](_0x3fe1a2);_0x144e72||(_0x144e72=new Fn(),this['_roomMembers'][_0x2255aa(0x371)](_0x3fe1a2,_0x144e72)),_0x144e72[_0x2255aa(0x31f)](_0x4d9c14);}[_0x27ba00(0x10e)](_0x13e0fe,_0x46249a){const _0x3d41ea=_0x27ba00,_0x562f0b=this['_roomMembers'][_0x3d41ea(0x1dd)](_0x13e0fe);_0x562f0b&&_0x562f0b[_0x3d41ea(0x10e)](_0x46249a);}[_0x27ba00(0x230)](_0x26afc5){const _0x171c25=_0x27ba00;return this[_0x171c25(0x356)][_0x171c25(0x1dd)](_0x26afc5);}[_0x27ba00(0x9c)](_0x1fc153,_0x337fa6){const _0x198cdb=_0x27ba00,_0x1cf574=this[_0x198cdb(0x356)][_0x198cdb(0x1dd)](_0x1fc153);if(_0x1cf574)return _0x1cf574[_0x198cdb(0x9c)](_0x337fa6);}['_removeRoom'](_0x1cea28){const _0x9110d9=_0x27ba00,_0x3a9a1a=this['_roomMembers'][_0x9110d9(0x1dd)](_0x1cea28);_0x3a9a1a&&(_0x3a9a1a['dispose'](),this[_0x9110d9(0x356)][_0x9110d9(0xe1)](_0x1cea28));}[_0x27ba00(0x323)](){const _0x7f948=_0x27ba00;this['_roomMembers'][_0x7f948(0x392)](_0x4bfa69=>_0x4bfa69[_0x7f948(0x323)]()),this[_0x7f948(0x356)][_0x7f948(0x17f)]();}};ae=Vn([os(0x0,_0x4a4945),os(0x1,_0x27d762(_0x5a5fa2))],ae);class Fn extends _0x10a60d{constructor(){const _0x46a04f=_0x27ba00;super(...arguments),l(this,_0x46a04f(0x30a),new Map());}[_0x27ba00(0x323)](){const _0x3a5a4c=_0x27ba00;this[_0x3a5a4c(0x30a)][_0x3a5a4c(0x17f)]();}[_0x27ba00(0x31f)](_0x35e659){const _0x44bf8b=_0x27ba00;this[_0x44bf8b(0x30a)][_0x44bf8b(0x371)](_0x35e659[_0x44bf8b(0x1dc)],_0x35e659);}[_0x27ba00(0x10e)](_0x4b1136){const _0x39b2ca=_0x27ba00;this[_0x39b2ca(0x30a)][_0x39b2ca(0xe1)](_0x4b1136);}[_0x27ba00(0x9c)](_0x4a4bcf){const _0x5bac86=_0x27ba00;return this[_0x5bac86(0x30a)][_0x5bac86(0x1dd)](_0x4a4bcf);}}var Wn=Object['defineProperty'],Gn=Object[_0x27ba00(0x280)],Yn=(_0x384b65,_0x4b19e0,_0x439cde,_0x1e4245)=>{const _0x19c734=_0x27ba00;for(var _0x255612=_0x1e4245>0x1?void 0x0:_0x1e4245?Gn(_0x4b19e0,_0x439cde):_0x4b19e0,_0x4b5f56=_0x384b65[_0x19c734(0x117)]-0x1,_0x87577a;_0x4b5f56>=0x0;_0x4b5f56--)(_0x87577a=_0x384b65[_0x4b5f56])&&(_0x255612=(_0x1e4245?_0x87577a(_0x4b19e0,_0x439cde,_0x255612):_0x87577a(_0x255612))||_0x255612);return _0x1e4245&&_0x255612&&Wn(_0x4b19e0,_0x439cde,_0x255612),_0x255612;},J=(_0x13d70f,_0x33883b)=>(_0x1a067c,_0x275723)=>_0x33883b(_0x1a067c,_0x275723,_0x13d70f),G=(_0x17e40b=>(_0x17e40b[_0x17e40b[_0x27ba00(0x1c9)]=0x0]=_0x27ba00(0x1c9),_0x17e40b[_0x17e40b[_0x27ba00(0x248)]=0x1]=_0x27ba00(0x248),_0x17e40b[_0x17e40b['OFFLINE']=0x2]=_0x27ba00(0x1f1),_0x17e40b[_0x17e40b[_0x27ba00(0x16c)]=0x3]=_0x27ba00(0x16c),_0x17e40b))(G||{});let Rt=class extends _0x504ec7{constructor(_0x32dfae,_0x2e8f39,_0x2ca5ca,_0x4d203b,_0x43eaea,_0x4feb1f,_0x2939cf,_0x2664b3,_0x1b3e89,_0x3ac457){const _0x19369f=_0x27ba00;super(),l(this,_0x19369f(0x179),new _0x23c814(0x0)),l(this,_0x19369f(0x10c),this['_sessionStatus$'][_0x19369f(0x14e)]()),l(this,_0x19369f(0x1e0),new _0x1a4ff5()),l(this,'event$',this[_0x19369f(0x1e0)][_0x19369f(0x14e)]()),l(this,_0x19369f(0x1cb)),l(this,'_socketMessageSubscription'),l(this,_0x19369f(0x276)),l(this,_0x19369f(0x1a3),!0x1),l(this,_0x19369f(0x2c5),null),(this[_0x19369f(0x3a6)]=_0x32dfae,this['_logService']=_0x2ca5ca,this[_0x19369f(0xf0)]=_0x4d203b,this['_messageService']=_0x43eaea,this[_0x19369f(0x19e)]=_0x4feb1f,this[_0x19369f(0x12e)]=_0x2939cf,this[_0x19369f(0x26b)]=_0x2664b3,this['_commentService']=_0x1b3e89,this[_0x19369f(0x399)]=_0x3ac457,this[_0x19369f(0x1a3)]=!!this[_0x19369f(0x399)],_0x2e8f39[_0x19369f(0x31c)](_0x350758(this['dispose$']))[_0x19369f(0x3c1)](_0x3b4d58=>{const _0x404783=_0x19369f;var _0x15f59c;typeof _0x3b4d58>'u'||(this[_0x404783(0x1cb)]=_0x3b4d58,_0x3b4d58?(this[_0x404783(0x3c5)](_0x3b4d58),this[_0x404783(0x2b1)]=_0x3b4d58['message$'][_0x404783(0x3c1)](_0x57bc02=>{const _0x4a3ba7=_0x404783;_0x57bc02[_0x4a3ba7(0x2fb)]===this[_0x4a3ba7(0x3a6)]&&this['_onCombEvent'](_0x57bc02);})):(this[_0x404783(0x16f)](),this[_0x404783(0x179)][_0x404783(0x8c)](0x2),(_0x15f59c=this[_0x404783(0x2b1)])==null||_0x15f59c[_0x404783(0x12f)](),this[_0x404783(0x2b1)]=null));}),this[_0x19369f(0x169)](this[_0x19369f(0xf0)][_0x19369f(0x263)](()=>{const _0x31cbb3=_0x19369f;var _0x316400;(_0x316400=this['_socket'])==null||_0x316400[_0x31cbb3(0x128)]({'cmd':I[_0x31cbb3(0xf3)],'data':{'roomID':this['_unitID']}});})));}get[_0x27ba00(0xa8)](){const _0x34fdc2=_0x27ba00;return this[_0x34fdc2(0x179)][_0x34fdc2(0x6f)]();}['getMemberID'](){const _0x3dab55=_0x27ba00;var _0x96a837,_0x204cc1;return(_0x204cc1=(_0x96a837=this[_0x3dab55(0x1cb)])==null?void 0x0:_0x96a837['memberID'])!=null?_0x204cc1:null;}[_0x27ba00(0x323)](){const _0x3bad29=_0x27ba00;super[_0x3bad29(0x323)](),this['dispose$'][_0x3bad29(0x8c)](),this['dispose$'][_0x3bad29(0x373)]();}[_0x27ba00(0x369)](){const _0x2b98a4=_0x27ba00;var _0x152dab,_0x24022e;this[_0x2b98a4(0x16f)](),(_0x152dab=this[_0x2b98a4(0x1cb)])==null||_0x152dab[_0x2b98a4(0x128)]({'cmd':I[_0x2b98a4(0xf3)],'data':{'roomID':this[_0x2b98a4(0x3a6)]}}),(_0x24022e=this[_0x2b98a4(0x1cb)])==null||_0x24022e[_0x2b98a4(0x369)](),this[_0x2b98a4(0x1e0)]['complete'](),this[_0x2b98a4(0x179)][_0x2b98a4(0x373)](),this[_0x2b98a4(0x323)]();}[_0x27ba00(0x268)](_0x4f2ab6){const _0x5ce3eb=_0x27ba00;_0x4f2ab6[_0x5ce3eb(0xbb)]===I[_0x5ce3eb(0x32d)]?this[_0x5ce3eb(0x23a)](_0x4f2ab6):_0x4f2ab6[_0x5ce3eb(0xbb)]===I[_0x5ce3eb(0x156)]&&this[_0x5ce3eb(0x91)](_0x4f2ab6);}[_0x27ba00(0x3c5)](_0x1bb5cf){const _0x19c4b9=_0x27ba00;this[_0x19c4b9(0x179)]['next'](0x1),_0x1bb5cf['send']({'cmd':I[_0x19c4b9(0x32d)],'routeKey':this[_0x19c4b9(0x3a6)],'routeType':'','data':{'rooms':[{'roomID':this[_0x19c4b9(0x3a6)]}]}});}['_onJoinRoomEvent'](_0x22e8d1){const _0x17a19b=_0x27ba00;var _0x47da4d;if(_0x22e8d1[_0x17a19b(0x20f)]===Vt[_0x17a19b(0x2f5)]){this[_0x17a19b(0x157)][_0x17a19b(0x346)]({'type':_0x104514['Warning'],'content':this[_0x17a19b(0x12e)]['t'](_0x17a19b(0x352))}),this[_0x17a19b(0x179)][_0x17a19b(0x8c)](0x2);return;}this[_0x17a19b(0x179)]['next'](0x3);const _0x305579=(_0x47da4d=_0x22e8d1[_0x17a19b(0x216)][_0x17a19b(0x2e6)][this[_0x17a19b(0x3a6)]])==null?void 0x0:_0x47da4d[_0x17a19b(0x80)];_0x305579&&_0x305579[_0x17a19b(0x392)](_0x47408f=>this[_0x17a19b(0x26b)][_0x17a19b(0x31f)](this[_0x17a19b(0x3a6)],_0x47408f));}['_onRecvEvent'](_0x41d6d2){const _0x21edeb=_0x27ba00;try{const _0x308f4f=_0x41d6d2[_0x21edeb(0x216)];switch(_0x308f4f[_0x21edeb(0xc3)]){case _0x6fa194['USERS_ENTER']:this[_0x21edeb(0x326)](_0x308f4f),this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);break;case _0x6fa194[_0x21edeb(0x386)]:this[_0x21edeb(0x2ab)](_0x308f4f),this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);break;case _0x6fa194['CHANGESET_ACK']:this[_0x21edeb(0x12d)](),this['_clearCollaborationTimeoutTimer'](),this[_0x21edeb(0x1e0)]['next'](_0x308f4f);break;case _0x6fa194[_0x21edeb(0x3ba)]:this[_0x21edeb(0xd6)][_0x21edeb(0x1e5)](_0x21edeb(0x210)+JSON[_0x21edeb(0xea)](_0x308f4f)),this['_event$'][_0x21edeb(0x8c)](_0x308f4f);break;case _0x6fa194[_0x21edeb(0x3c2)]:this[_0x21edeb(0x15c)][_0x21edeb(0x34d)](_0x308f4f['data']),this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);break;default:this[_0x21edeb(0x1e0)][_0x21edeb(0x8c)](_0x308f4f);}}catch(_0x59a967){this[_0x21edeb(0xd6)][_0x21edeb(0x1e5)](_0x59a967,_0x41d6d2);}}[_0x27ba00(0x326)](_0x5a8557){const _0x5a018a=_0x27ba00;this[_0x5a018a(0x26b)]['updateMember'](this[_0x5a018a(0x3a6)],_0x5a8557[_0x5a018a(0x216)]);}[_0x27ba00(0x2ab)](_0x160c61){const _0x51c3=_0x27ba00;this[_0x51c3(0x26b)][_0x51c3(0x10e)](this[_0x51c3(0x3a6)],_0x160c61['data']['memberID']);}async['send'](_0xa36be4,_0x38b175){const _0x58dcb1=_0x27ba00;if(this[_0x58dcb1(0xa8)]!==0x3||!this[_0x58dcb1(0x1cb)])throw new Error(_0x58dcb1(0x158));try{_0xa36be4[_0x58dcb1(0xc3)]===_0x6fa194['SUBMIT_CHANGESET']&&(this[_0x58dcb1(0xa6)](),this['_startTelemetryCollaborationNewChangeset'](_0xa36be4)),this[_0x58dcb1(0x1cb)][_0x58dcb1(0x128)]({'cmd':I[_0x58dcb1(0x287)],'routeKey':_0x38b175,'routeType':'','data':_0xa36be4});}catch(_0x424485){this['_logService']['error'](_0x424485);}}[_0x27ba00(0xa6)](){const _0x527a14=_0x27ba00;var _0x547b98;this[_0x527a14(0x276)]=window[_0x527a14(0x38d)](()=>{const _0x358239=_0x527a14;this[_0x358239(0x276)]=null,this[_0x358239(0x157)]['show']({'type':_0x104514[_0x358239(0x27a)],'content':this[_0x358239(0x12e)]['t'](_0x358239(0x282))});},(_0x547b98=this[_0x527a14(0x19e)][_0x527a14(0x3c6)](Us))!=null?_0x547b98:Ms);}[_0x27ba00(0x31b)](){const _0x544234=_0x27ba00;this[_0x544234(0x276)]&&(clearTimeout(this[_0x544234(0x276)]),this[_0x544234(0x276)]=null);}[_0x27ba00(0xda)](_0x5001e1){const _0x17c506=_0x27ba00;if(!this['_shouldReportTelemetry'])return;const {data:_0x358c4a}=_0x5001e1,{unitID:_0x396b72,changeset:_0x21b60d}=_0x358c4a,{mutations:_0x23bd8e,type:_0x442c7a}=_0x21b60d;this[_0x17c506(0x2c5)]={'unitId':_0x396b72,'type':_0x442c7a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Hn(_0x23bd8e)};}[_0x27ba00(0x12d)](){const _0x3bd34c=_0x27ba00;if(this[_0x3bd34c(0x1a3)]){if(!this[_0x3bd34c(0x2c5)]){this['_logService'][_0x3bd34c(0x1e5)](_0x3bd34c(0xaa),_0x3bd34c(0x1e1));return;}this[_0x3bd34c(0x2c5)][_0x3bd34c(0x2ba)]=performance[_0x3bd34c(0xcb)](),this[_0x3bd34c(0x2c5)]['duration']=this['_telemetryInfo']['stopTime']-this[_0x3bd34c(0x2c5)][_0x3bd34c(0xb7)],this[_0x3bd34c(0x399)][_0x3bd34c(0x37c)](xn,this[_0x3bd34c(0x2c5)]),this[_0x3bd34c(0x2c5)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x104c3d=_0x27ba00;this[_0x104c3d(0x2c5)]=null;}};Rt=Yn([J(0x2,_0x1dd153),J(0x3,_0x5e457c),J(0x4,_0x17da32),J(0x5,_0xeb1b98),J(0x6,_0x27d762(_0x5d963b)),J(0x7,_0x27d762(ae)),J(0x8,_0x27d762(js)),J(0x9,_0x3a7ea6(_0x3c3c5e))],Rt);var Kn=Object[_0x27ba00(0x198)],Xn=Object[_0x27ba00(0x280)],Jn=(_0x238753,_0x166839,_0x288666,_0x270c1e)=>{const _0x43320f=_0x27ba00;for(var _0x37b847=_0x270c1e>0x1?void 0x0:_0x270c1e?Xn(_0x166839,_0x288666):_0x166839,_0x5a9d23=_0x238753[_0x43320f(0x117)]-0x1,_0x22eaaf;_0x5a9d23>=0x0;_0x5a9d23--)(_0x22eaaf=_0x238753[_0x5a9d23])&&(_0x37b847=(_0x270c1e?_0x22eaaf(_0x166839,_0x288666,_0x37b847):_0x22eaaf(_0x37b847))||_0x37b847);return _0x270c1e&&_0x37b847&&Kn(_0x166839,_0x288666,_0x37b847),_0x37b847;},de=(_0x33d616,_0x34b3c5)=>(_0x2c7874,_0x2dfa1a)=>_0x34b3c5(_0x2c7874,_0x2dfa1a,_0x33d616);let ce=class extends _0x10a60d{constructor(_0x1ccd87,_0x427964,_0xc9525f,_0x17583a,_0x1f67d2,_0x56ff90){const _0x59619a=_0x27ba00;super(),l(this,_0x59619a(0xc9),new _0x23c814(void 0x0)),l(this,_0x59619a(0x18b),this[_0x59619a(0xc9)][_0x59619a(0x14e)]()),l(this,'_candidateSocket',null),l(this,_0x59619a(0x2b0),new Map()),l(this,_0x59619a(0x142),new _0x23c814(G[_0x59619a(0x1c9)])),l(this,_0x59619a(0x16b),this['_status$']['asObservable']()),l(this,'_socketReady',!0x1),l(this,'_retryConnectingTimer'),l(this,_0x59619a(0x89),0x0),l(this,_0x59619a(0x81)),l(this,_0x59619a(0x2f9)),(this[_0x59619a(0x2a6)]=_0x1ccd87,this[_0x59619a(0x12e)]=_0x427964,this[_0x59619a(0x157)]=_0xc9525f,this[_0x59619a(0xd6)]=_0x17583a,this[_0x59619a(0x19e)]=_0x1f67d2,this[_0x59619a(0x3b0)]=_0x56ff90,this[_0x59619a(0x27b)]());}get[_0x27ba00(0x1cb)](){const _0x181b1c=_0x27ba00;return this[_0x181b1c(0xc9)][_0x181b1c(0x6f)]();}['_initEventListeners'](){const _0x277343=_0x27ba00;this[_0x277343(0x9f)](),this[_0x277343(0x377)]();}[_0x27ba00(0x323)](){const _0x21f50b=_0x27ba00;super['dispose'](),this[_0x21f50b(0x2b0)][_0x21f50b(0x392)](_0x2a5a5d=>_0x2a5a5d['dispose']()),this[_0x21f50b(0x2b0)][_0x21f50b(0x17f)](),this[_0x21f50b(0x142)][_0x21f50b(0x373)]();}async[_0x27ba00(0x223)](_0x364ca2){const _0xebb98b=_0x27ba00;if(this[_0xebb98b(0x2b0)]['has'](_0x364ca2))return this[_0xebb98b(0x2b0)][_0xebb98b(0x1dd)](_0x364ca2);this[_0xebb98b(0xff)]();const _0x194008=this[_0xebb98b(0x2a6)][_0xebb98b(0x85)](Rt,_0x364ca2,this[_0xebb98b(0xc9)][_0xebb98b(0x14e)]());return this[_0xebb98b(0x2b0)][_0xebb98b(0x371)](_0x364ca2,_0x194008),_0x194008;}[_0x27ba00(0x23e)](_0x50d77b){const _0x54a265=_0x27ba00;var _0x2befbd;const _0x2d57e2=this[_0x54a265(0x2b0)][_0x54a265(0x1dd)](_0x50d77b);_0x2d57e2&&(this[_0x54a265(0x2b0)]['delete'](_0x50d77b),_0x2d57e2[_0x54a265(0x369)]()),this['_sessions'][_0x54a265(0x333)]||(_0x2befbd=this[_0x54a265(0x1cb)])==null||_0x2befbd[_0x54a265(0x369)]();}[_0x27ba00(0x17c)](){const _0x20be18=_0x27ba00;this[_0x20be18(0x89)]=0x0,this[_0x20be18(0x10d)]!=null&&(clearTimeout(this[_0x20be18(0x10d)]),this[_0x20be18(0x10d)]=null),this[_0x20be18(0x1f0)]();}[_0x27ba00(0x39b)](){const _0x2c3306=_0x27ba00;var _0x52992b,_0x3e4baf;const _0x139bd8=this[_0x2c3306(0x19e)]['getConfig'](pn),_0xece8be=this[_0x2c3306(0x19e)]['getConfig'](L),_0x405082=(_0x3e4baf=(_0x52992b=_0xece8be==null?void 0x0:_0xece8be[_0x2c3306(0x390)])!=null?_0x52992b:_0x139bd8)!=null?_0x3e4baf:vn,_0x5392c5=this[_0x2c3306(0x3b0)]['createSocket'](_0x405082);return this[_0x2c3306(0x36f)]=_0x5392c5,_0x5392c5;}[_0x27ba00(0xff)](){const _0x20ff7e=_0x27ba00;var _0x85c947,_0x5ecf77;try{const _0x1b4da4=(_0x5ecf77=(_0x85c947=this[_0x20ff7e(0x1cb)])!=null?_0x85c947:this['_candidateSocket'])!=null?_0x5ecf77:this['_createSocket']();if(_0x1b4da4){const _0x24edfc=_0x1b4da4['send'];_0x1b4da4['send']=_0x2097d1=>(this[_0x20ff7e(0x11b)](),_0x24edfc['apply'](_0x1b4da4,[_0x2097d1])),_0x1b4da4['message$'][_0x20ff7e(0x3c1)](_0x657b0a=>this[_0x20ff7e(0x25e)](_0x1b4da4,_0x657b0a)),_0x1b4da4[_0x20ff7e(0xb4)][_0x20ff7e(0x31c)](_0xf7175c(0x1))[_0x20ff7e(0x3c1)](_0xb9f822=>this[_0x20ff7e(0xd6)]['error'](_0x20ff7e(0x2a0),_0xb9f822)),_0x1b4da4[_0x20ff7e(0x104)]['pipe'](_0xf7175c(0x1))['subscribe'](()=>{const _0x16bcd3=_0x20ff7e;this[_0x16bcd3(0x1c6)](_0x1b4da4);}),_0x1b4da4[_0x20ff7e(0x1ed)]['pipe'](_0xf7175c(0x1))['subscribe'](_0x22d474=>{const _0x14656a=_0x20ff7e;this['_logService'][_0x14656a(0x227)]('[CollaborationSessionService]',_0x14656a(0x199),_0x22d474),this['_onConnectionFailed']();});}}catch(_0x145e5d){this[_0x20ff7e(0xd6)][_0x20ff7e(0x1e5)](_0x145e5d),this[_0x20ff7e(0x2d8)]();}}[_0x27ba00(0x1c6)](_0x489f1e){const _0x2835e2=_0x27ba00;this[_0x2835e2(0xd6)][_0x2835e2(0x227)](_0x2835e2(0x345),'socket\x20open.'),_0x489f1e[_0x2835e2(0x128)]({'cmd':I['HELLO']}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x4b0660=_0x27ba00;window[_0x4b0660(0x1a1)](_0x4b0660(0x26f),()=>this[_0x4b0660(0x168)]());}['_onOffline'](){const _0x145de5=_0x27ba00;this[_0x145de5(0x1a6)]=!0x1,this['_candidateSocket']=null,this[_0x145de5(0x142)]['next'](G['OFFLINE']),this[_0x145de5(0xc9)][_0x145de5(0x8c)](null),this[_0x145de5(0xd9)](),this[_0x145de5(0x3d9)]();}[_0x27ba00(0x2d8)](){const _0x1f4fa7=_0x27ba00;var _0x31a3c9;this[_0x1f4fa7(0x168)](),this[_0x1f4fa7(0x89)]<((_0x31a3c9=this[_0x1f4fa7(0x19e)][_0x1f4fa7(0x3c6)](bn))!=null?_0x31a3c9:Tn)?(this[_0x1f4fa7(0x157)][_0x1f4fa7(0x346)]({'key':_0x1f4fa7(0x1b4),'type':_0x104514[_0x1f4fa7(0x364)],'content':this[_0x1f4fa7(0x12e)]['t'](_0x1f4fa7(0x36c))}),this[_0x1f4fa7(0x1f0)]()):this[_0x1f4fa7(0x157)][_0x1f4fa7(0x346)]({'key':'collaboration-session-retry','type':_0x104514[_0x1f4fa7(0x27a)],'content':this[_0x1f4fa7(0x12e)]['t']('session.connection-failed')});}[_0x27ba00(0x377)](){const _0x4b91f3=_0x27ba00,_0x3f9716=()=>{const _0x1f68a8=_0x1a62;this['_socket']||this[_0x1f68a8(0x17c)]();},_0x16f2c2=()=>{const _0x5accb5=_0x1a62;this['_socket']||document[_0x5accb5(0x354)]===_0x5accb5(0x164)||this[_0x5accb5(0x17c)]();};window[_0x4b91f3(0x1a1)](_0x4b91f3(0x161),_0x3f9716),document['addEventListener'](_0x4b91f3(0x3be),_0x16f2c2);}[_0x27ba00(0x1f0)](){const _0x35090b=_0x27ba00;var _0x243824;const _0x3f8d35=this[_0x35090b(0x89)],_0xc39be1=this[_0x35090b(0x19e)][_0x35090b(0x3c6)](L),_0x378cc6=_0x3f8d35===0x0?0x0:((_0x243824=_0xc39be1==null?void 0x0:_0xc39be1[_0x35090b(0x15d)])!=null?_0x243824:Cn)*0x2**_0x3f8d35;this[_0x35090b(0x10d)]=window[_0x35090b(0x38d)](()=>{const _0x31def3=_0x35090b;clearTimeout(this[_0x31def3(0x10d)]),this[_0x31def3(0x10d)]=null,this[_0x31def3(0xff)]();},_0x378cc6),this[_0x35090b(0x89)]+=0x1;}[_0x27ba00(0x25e)](_0x31d7cf,_0x35294a){const _0x864147=_0x27ba00,{cmd:_0x485237}=_0x35294a;_0x485237===I[_0x864147(0x167)]&&!this[_0x864147(0x1a6)]&&(_0x31d7cf['memberID']=_0x35294a['data'][_0x864147(0x1dc)],this['_socket$'][_0x864147(0x8c)](_0x31d7cf),this[_0x864147(0x142)][_0x864147(0x8c)](G['ONLINE']),this[_0x864147(0x1a6)]=!0x0,this['_candidateSocket']=null),_0x485237===I['HEARTBEAT']&&this[_0x864147(0xd9)](),this[_0x864147(0x11b)]();}[_0x27ba00(0x11b)](){const _0x396a50=_0x27ba00;var _0x1df8dd;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x396a50(0x36e)](),(_0x1df8dd=this[_0x396a50(0x19e)][_0x396a50(0x3c6)](In))!=null?_0x1df8dd:En);}[_0x27ba00(0x36e)](){const _0x2b9845=_0x27ba00;this[_0x2b9845(0x1cb)][_0x2b9845(0x128)]({'cmd':I[_0x2b9845(0x301)]}),this['_waitForHeartbeatResponse']();}[_0x27ba00(0x292)](){const _0x34a431=_0x27ba00;var _0x25e6d4;this[_0x34a431(0x2f9)]=window[_0x34a431(0x38d)](()=>this[_0x34a431(0x2d8)](),(_0x25e6d4=this[_0x34a431(0x19e)][_0x34a431(0x3c6)](Us))!=null?_0x25e6d4:Ms);}[_0x27ba00(0x3d9)](){const _0x326a7a=_0x27ba00;this[_0x326a7a(0x81)]!=null&&(clearTimeout(this[_0x326a7a(0x81)]),this['_sendHeartbeatTimer']=null);}[_0x27ba00(0xd9)](){const _0xcc38ea=_0x27ba00;this[_0xcc38ea(0x2f9)]!=null&&(clearTimeout(this[_0xcc38ea(0x2f9)]),this[_0xcc38ea(0x2f9)]=null);}};ce=Jn([de(0x0,_0x27d762(_0x2a6c13)),de(0x1,_0x27d762(_0x5d963b)),de(0x2,_0x17da32),de(0x3,_0x1dd153),de(0x4,_0xeb1b98),de(0x5,$s)],ce);var qn=Object[_0x27ba00(0x198)],zn=Object[_0x27ba00(0x280)],Zn=(_0x54814d,_0x1e2fa7,_0x5239f2,_0x2b4d24)=>{for(var _0x2c43f4=_0x2b4d24>0x1?void 0x0:_0x2b4d24?zn(_0x1e2fa7,_0x5239f2):_0x1e2fa7,_0x1a5caa=_0x54814d['length']-0x1,_0x24f7e1;_0x1a5caa>=0x0;_0x1a5caa--)(_0x24f7e1=_0x54814d[_0x1a5caa])&&(_0x2c43f4=(_0x2b4d24?_0x24f7e1(_0x1e2fa7,_0x5239f2,_0x2c43f4):_0x24f7e1(_0x2c43f4))||_0x2c43f4);return _0x2b4d24&&_0x2c43f4&&qn(_0x1e2fa7,_0x5239f2,_0x2c43f4),_0x2c43f4;},_t=(_0x7c1bef,_0x6ea014)=>(_0x2d9bc3,_0x1ed6fa)=>_0x6ea014(_0x2d9bc3,_0x1ed6fa,_0x7c1bef);let Ze=class{constructor(_0x2481a4,_0x3df513,_0x5a3342){const _0x41041e=_0x27ba00;this[_0x41041e(0x2a6)]=_0x2481a4,this[_0x41041e(0x32a)]=_0x3df513,this[_0x41041e(0x2f6)]=_0x5a3342;}['transformIMECache'](_0x16c4c2){const _0x343582=_0x27ba00;this[_0x343582(0x293)](_0x16c4c2),this['_transformPreviousActiveRange'](_0x16c4c2);}['transformRemoteChangeset'](_0x18eb5f){const _0x516cf9=_0x27ba00,{unitID:_0x2ebd97}=_0x18eb5f,_0x56690a=this[_0x516cf9(0x2f6)][_0x516cf9(0x33d)](_0x2ebd97)[_0x516cf9(0x20b)](_0x24ee3e),{redoCache:_0x1b816b}=_0x56690a[_0x516cf9(0x2f1)]();if(_0x1b816b[_0x516cf9(0x117)]===0x0)return _0x18eb5f;let _0x27260c=_0x38eaa3['deepClone'](_0x18eb5f['mutations'][0x0]);for(let _0x46f351=0x0;_0x46f351<_0x1b816b[_0x516cf9(0x117)];_0x46f351++){const _0x463811={'id':_0x516cf9(0x8a),'params':{..._0x1b816b[_0x46f351]}},_0x9ffcde=this[_0x516cf9(0x32a)][_0x516cf9(0x1e4)](_0x27260c,_0x463811,!0x1);if(_0x25fecd(_0x9ffcde))throw _0x9ffcde[_0x516cf9(0x1e5)];_0x27260c=_0x9ffcde[_0x516cf9(0x361)];}return{..._0x38eaa3[_0x516cf9(0x2aa)](_0x18eb5f),'mutations':[_0x27260c]};}['_transformUndoRedoStack'](_0x8c168e){const _0xf76d9d=_0x27ba00,{unitID:_0x4c3511}=_0x8c168e,_0x3c9d41=this[_0xf76d9d(0x2f6)][_0xf76d9d(0x33d)](_0x4c3511)[_0xf76d9d(0x20b)](_0x24ee3e),{undoCache:_0x42839f,redoCache:_0x4c64fe}=_0x3c9d41[_0xf76d9d(0x2f1)]();if(_0x42839f[_0xf76d9d(0x117)]===0x0||_0x4c64fe[_0xf76d9d(0x117)]===0x0)return;const _0x5cd82c=[],_0x2fb8c1=[];let _0x40c80c=_0x38eaa3[_0xf76d9d(0x2aa)](_0x8c168e['mutations'][0x0]),_0x1266ab=_0x38eaa3[_0xf76d9d(0x2aa)](_0x8c168e[_0xf76d9d(0x3bd)][0x0]);for(let _0x249cea=_0x42839f[_0xf76d9d(0x117)]-0x1;_0x249cea>=0x0;_0x249cea--){const _0xf276e8={'id':_0xf76d9d(0x8a),'params':{..._0x42839f[_0x249cea]}},_0x4d9dae={'id':_0xf76d9d(0x8a),'params':{..._0x4c64fe[_0x249cea]}},_0x393e91=this[_0xf76d9d(0x32a)][_0xf76d9d(0x1e4)](_0x40c80c,_0xf276e8,!0x1),_0x1f2dd6=this[_0xf76d9d(0x32a)][_0xf76d9d(0x1e4)](_0x1266ab,_0x4d9dae,!0x1);if(_0x25fecd(_0x393e91))throw _0x393e91[_0xf76d9d(0x1e5)];if(_0x25fecd(_0x1f2dd6))throw _0x1f2dd6[_0xf76d9d(0x1e5)];_0x5cd82c[_0xf76d9d(0x26e)](_0x393e91['m2Prime'][_0xf76d9d(0xb8)]),_0x2fb8c1[_0xf76d9d(0x26e)](_0x1f2dd6[_0xf76d9d(0x2c1)][_0xf76d9d(0xb8)]),_0x40c80c=_0x393e91[_0xf76d9d(0x361)],_0x1266ab=_0x1f2dd6['m1Prime'];}_0x3c9d41[_0xf76d9d(0x163)]({'undoCache':_0x5cd82c,'redoCache':_0x2fb8c1});}[_0x27ba00(0x274)](_0x2d81da){const _0x4790c1=_0x27ba00,{unitID:_0x124fbf}=_0x2d81da,_0x5be081=this[_0x4790c1(0x2f6)][_0x4790c1(0x33d)](_0x124fbf)['with'](_0x24ee3e),_0x31daec=_0x5be081[_0x4790c1(0x69)]();if(_0x31daec==null)return;const _0x38b44c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2d81da[_0x4790c1(0x12c)],'actions':null,'textRanges':[_0x31daec]}}],_0x28d6ff=this[_0x4790c1(0x32a)][_0x4790c1(0x3b9)](_0x2d81da,_0x38b44c);if(!_0x1476be(_0x28d6ff))throw _0x28d6ff['error'];const _0x2f2c65=_0x28d6ff['m2Prime'][0x0][_0x4790c1(0xb8)][_0x4790c1(0x2eb)];Array[_0x4790c1(0x165)](_0x2f2c65)&&_0x2f2c65['length']&&_0x5be081[_0x4790c1(0x2f8)](_0x2f2c65[0x0]);}};Ze=Zn([_t(0x0,_0x27d762(_0x2a6c13)),_t(0x1,_0x29f88d),_t(0x2,_0x57cdea)],Ze);var Qn=Object[_0x27ba00(0x198)],er=Object[_0x27ba00(0x280)],tr=(_0xd5aa50,_0x282a34,_0x2c05bd,_0x4ce97c)=>{for(var _0x55eada=_0x4ce97c>0x1?void 0x0:_0x4ce97c?er(_0x282a34,_0x2c05bd):_0x282a34,_0x352a60=_0xd5aa50['length']-0x1,_0x5c0d79;_0x352a60>=0x0;_0x352a60--)(_0x5c0d79=_0xd5aa50[_0x352a60])&&(_0x55eada=(_0x4ce97c?_0x5c0d79(_0x282a34,_0x2c05bd,_0x55eada):_0x5c0d79(_0x55eada))||_0x55eada);return _0x4ce97c&&_0x55eada&&Qn(_0x282a34,_0x2c05bd,_0x55eada),_0x55eada;},Oe=(_0x4b1391,_0x2266f0)=>(_0x2e679e,_0x5b0923)=>_0x2266f0(_0x2e679e,_0x5b0923,_0x4b1391);let D=class extends _0x10a60d{constructor(_0x5f4bd5,_0x1a89b1,_0x8146ef,_0x31dbab,_0x30153c){const _0x1898cb=_0x27ba00;super(),l(this,_0x1898cb(0x34e),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x1898cb(0x1cf),!0x1),(this['_configService']=_0x5f4bd5,this['_localStorageService']=_0x1a89b1,this['_beforeCloseService']=_0x8146ef,this[_0x1898cb(0x12e)]=_0x31dbab,this['_revisionService']=_0x30153c,this['_setupBeforeClosingHandler']());}[_0x27ba00(0x2b5)](){const _0x435f00=_0x27ba00;this[_0x435f00(0x1cf)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x27ba00(0x323)](){const _0x7c46a2=_0x27ba00;this[_0x7c46a2(0x313)]()[_0x7c46a2(0x20c)](()=>super['dispose']());}async[_0x27ba00(0x347)](_0xfe1276){const _0x2ac018=_0x27ba00;return this[_0x2ac018(0x1cf)]?null:this[_0x2ac018(0x79)][_0x2ac018(0x95)](as(_0xfe1276));}async[_0x27ba00(0x2c2)](_0x139823,_0x34a4f3){const _0x4c5369=_0x27ba00;return!!this[_0x4c5369(0x79)][_0x4c5369(0x1bc)](_0x139823,_0x34a4f3);}['updateOfflineData'](_0x1cb988,_0x12afbd,_0x6fde6c,_0xb32ad0){const _0x1b216c=_0x27ba00,_0x27fdd9=this[_0x1b216c(0x76)]['getCurrentRevOfUnit'](_0x1cb988);this[_0x1b216c(0x34e)][_0x1b216c(0x371)](_0x1cb988,{'unitID':_0x1cb988,'type':_0x12afbd,'awaitingChangeset':_0x6fde6c,'mutations':_0xb32ad0,'rev':_0x27fdd9}),this[_0x1b216c(0x8b)][_0x1b216c(0x262)](_0x1cb988)||this[_0x1b216c(0x133)](_0x1cb988);}[_0x27ba00(0x133)](_0x47720a){const _0x84e5c6=_0x27ba00,_0x52e011=this[_0x84e5c6(0x211)]();_0x52e011===0x0?this[_0x84e5c6(0x391)](_0x47720a):this['_saveTaskMap'][_0x84e5c6(0x371)](_0x47720a,setTimeout(()=>this['_saveCache'](_0x47720a),_0x52e011));}[_0x27ba00(0x211)](){const _0x592285=_0x27ba00;var _0x859b96;return(_0x859b96=this[_0x592285(0x19e)][_0x592285(0x3c6)](Rn))!=null?_0x859b96:On;}[_0x27ba00(0x391)](_0x311288){const _0x595957=_0x27ba00,_0x394682=this['_saveTaskMap'][_0x595957(0x1dd)](_0x311288);return _0x394682!==void 0x0&&window[_0x595957(0x311)](_0x394682),this['_localStorageService'][_0x595957(0x1bc)](as(_0x311288),this[_0x595957(0x34e)][_0x595957(0x1dd)](_0x311288))[_0x595957(0x20c)](()=>this[_0x595957(0x8b)][_0x595957(0xe1)](_0x311288));}async[_0x27ba00(0x313)](){const _0xadfb83=_0x27ba00,_0xc07681=[];this[_0xadfb83(0x8b)][_0xadfb83(0x392)]((_0xaa59c9,_0x47065a)=>{const _0x24924b=_0xadfb83;window['clearTimeout'](_0xaa59c9),_0xc07681[_0x24924b(0x2ec)](this[_0x24924b(0x391)](_0x47065a)[_0x24924b(0x20c)](()=>{const _0x3a925d=_0x24924b;this[_0x3a925d(0x8b)][_0x3a925d(0xe1)](_0x47065a);}));}),await Promise[_0xadfb83(0x350)](_0xc07681);}[_0x27ba00(0x254)](){const _0x4c8293=_0x27ba00;this[_0x4c8293(0x169)](this[_0x4c8293(0xf0)]['registerBeforeClose'](()=>{const _0x5ccde9=_0x4c8293;if(this['_saveTaskMap']['size'])return this[_0x5ccde9(0x12e)]['t'](_0x5ccde9(0x119));}));}};D=tr([Oe(0x0,_0xeb1b98),Oe(0x1,_0x441955),Oe(0x2,_0x5e457c),Oe(0x3,_0x27d762(_0x5d963b)),Oe(0x4,_0x27d762(_0x3a9a12))],D);function as(_0x16620){const _0xa79439=_0x27ba00;return _0xa79439(0x186)+_0x16620;}var sr=Object[_0x27ba00(0x198)],ir=Object[_0x27ba00(0x280)],nr=(_0x1dc61f,_0x23c682,_0x7a3da0,_0x21d651)=>{const _0x4cb59f=_0x27ba00;for(var _0x4a61f7=_0x21d651>0x1?void 0x0:_0x21d651?ir(_0x23c682,_0x7a3da0):_0x23c682,_0x45280e=_0x1dc61f[_0x4cb59f(0x117)]-0x1,_0x44d12e;_0x45280e>=0x0;_0x45280e--)(_0x44d12e=_0x1dc61f[_0x45280e])&&(_0x4a61f7=(_0x21d651?_0x44d12e(_0x23c682,_0x7a3da0,_0x4a61f7):_0x44d12e(_0x4a61f7))||_0x4a61f7);return _0x21d651&&_0x4a61f7&&sr(_0x23c682,_0x7a3da0,_0x4a61f7),_0x4a61f7;},ut=(_0x356e93,_0x7d35ff)=>(_0x214518,_0x430201)=>_0x7d35ff(_0x214518,_0x430201,_0x356e93);function rr(_0x2c71ba){const _0x1c0a5c=_0x27ba00,{unitID:_0x2611bd,mutations:_0x362055}=_0x2c71ba;return{'unitId':_0x2611bd,'subUnitId':_0x362055[0x0][_0x1c0a5c(0xb8)][_0x1c0a5c(0x145)]};}let Qe=class{constructor(_0x302a43,_0x18c368,_0x2ef2e7){const _0x5bf57e=_0x27ba00;this['_injector']=_0x302a43,this['_transformService']=_0x18c368,this[_0x5bf57e(0x160)]=_0x2ef2e7;}[_0x27ba00(0x289)](_0x41255b){const _0x99ecad=_0x27ba00;var _0x40b9ec,_0x14f05b,_0x435951,_0x2c616b;const _0x5d1fc1=this[_0x99ecad(0x2a6)][_0x99ecad(0x1dd)](_0x3145be),{unitId:_0x18f7ca,subUnitId:_0x541e36}=rr(_0x41255b),_0x5c7cc9=_0x5d1fc1[_0x99ecad(0x152)](_0x18f7ca)[_0x99ecad(0x362)](),_0x4342d1=(_0x14f05b=(_0x40b9ec=this['_instanceService'][_0x99ecad(0xbc)](_0x18f7ca))==null?void 0x0:_0x40b9ec['getActiveSheet']())==null?void 0x0:_0x14f05b['getSheetId']();if(_0x5c7cc9[_0x99ecad(0x117)]===0x0||!_0x18f7ca||!_0x541e36)return;const _0x3629a9=[{'id':_0x5b7f43['id'],'params':{'unitId':_0x18f7ca,'subUnitId':_0x4342d1,'selections':_0x38eaa3['deepClone'](_0x5c7cc9)}}],_0x3c9d65=this['_transformService'][_0x99ecad(0x3b9)](_0x41255b,_0x3629a9);if(!_0x1476be(_0x3c9d65))throw _0x3c9d65['error'];const _0x1fd895=(_0x2c616b=(_0x435951=_0x3c9d65[_0x99ecad(0x2c1)][0x0])==null?void 0x0:_0x435951[_0x99ecad(0xb8)])==null?void 0x0:_0x2c616b['selections'];Array['isArray'](_0x1fd895)&&_0x1fd895[_0x99ecad(0x117)]&&this[_0x99ecad(0x2a6)][_0x99ecad(0x1dd)](_0xf80f3b)['executeCommand'](_0x5b7f43['id'],{'unitId':_0x18f7ca,'subUnitId':_0x4342d1,'selections':_0x1fd895});}};Qe=nr([ut(0x0,_0x27d762(_0x2a6c13)),ut(0x1,_0x29f88d),ut(0x2,_0x4a4945)],Qe);const nt=_0x2d9842(_0x27ba00(0x357));var xs=(_0x2905c2=>(_0x2905c2[_0x2905c2[_0x27ba00(0x338)]=0x0]=_0x27ba00(0x338),_0x2905c2[_0x2905c2['OTHER_CLIENTS_EDITING']=0x1]=_0x27ba00(0x3d0),_0x2905c2))(xs||{});const cs=0x7530,hs=_0x27ba00(0x2b8);class or extends _0x10a60d{constructor(){const _0x2c6008=_0x27ba00;super(),l(this,_0x2c6008(0x250),_0x38eaa3[_0x2c6008(0x31a)]()),l(this,_0x2c6008(0x2ee),new Set()),l(this,_0x2c6008(0xb5),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x2c6008(0x14f),new Map()),l(this,'_unitStatus',new Map()),this[_0x2c6008(0x7b)]();}[_0x27ba00(0x323)](){const _0x3db844=_0x27ba00;super[_0x3db844(0x323)](),this[_0x3db844(0x14f)]['forEach']((_0xaf1ca4,_0x35c836)=>this['_removeClearOtherTimer'](_0x35c836)),this[_0x3db844(0xca)]&&window[_0x3db844(0xa3)](this[_0x3db844(0xca)]);}['getUnitStatus$'](_0x5c7998){const _0x2f4633=_0x27ba00;return this[_0x2f4633(0xc8)](_0x5c7998)[_0x2f4633(0x31c)](_0x8c1afe());}[_0x27ba00(0x231)](_0x6fb85b){const _0x3d8d11=_0x27ba00;this[_0x3d8d11(0x2ee)]['size']===0x0&&this[_0x3d8d11(0x3aa)](),this[_0x3d8d11(0x2ee)][_0x3d8d11(0x30d)](_0x6fb85b),this[_0x3d8d11(0x332)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x6fb85b],'isForwarded':!0x1});}['disposeUnit'](_0x4781ee){const _0x8813ef=_0x27ba00;this[_0x8813ef(0x2ee)][_0x8813ef(0xe1)](_0x4781ee),this[_0x8813ef(0x2ee)]['size']===0x0&&this[_0x8813ef(0xca)]&&window['clearInterval'](this[_0x8813ef(0xca)]);}[_0x27ba00(0x7b)](){const _0x5002de=_0x27ba00;this['disposeWithMe'](_0x10763a(_0x1d5cc2(window,_0x5002de(0x273))['subscribe'](_0x180791=>{const _0x2ea726=_0x5002de;if(_0x180791[_0x2ea726(0x2ef)]!==hs||!_0x180791[_0x2ea726(0x134)])return;const _0x26f8f6=JSON[_0x2ea726(0xfc)](_0x180791['newValue']);this['_handleEvent'](_0x26f8f6);}))),window[_0x5002de(0x1a1)](_0x5002de(0x240),()=>this[_0x5002de(0x332)]({'type':0x1,'memberID':this[_0x5002de(0x250)],'unitIDs':Array[_0x5002de(0x309)](this[_0x5002de(0x2ee)])}));}['_handleEvent'](_0x540797){const _0x17ce15=_0x27ba00;switch(_0x540797['type']){case 0x0:this[_0x17ce15(0x341)](_0x540797);break;case 0x1:this['_handleLeaveEvent'](_0x540797);break;case 0x2:this[_0x17ce15(0x1ad)](_0x540797);break;}}[_0x27ba00(0x341)](_0xe78f1f){const _0x1d8f89=_0x27ba00,{unitIDs:_0x3d67e4,memberID:_0x3b7691,isForwarded:_0x5aff9c}=_0xe78f1f;_0x3d67e4[_0x1d8f89(0x392)](_0x42764b=>{const _0x4a2397=_0x1d8f89;if(!_0x5aff9c&&this['_unitOnClients'][_0x4a2397(0x262)](_0x42764b)&&this[_0x4a2397(0xc8)](_0x42764b)['next'](0x1),!this['_unitOnClients'][_0x4a2397(0x262)](_0x42764b)||!this[_0x4a2397(0xb5)][_0x4a2397(0x1dd)](_0x42764b)['has'](_0x3b7691)){const _0xc36d28=this[_0x4a2397(0xb5)][_0x4a2397(0x1dd)](_0x42764b)||new Set();_0xc36d28[_0x4a2397(0x30d)](_0x3b7691),this[_0x4a2397(0xb5)][_0x4a2397(0x371)](_0x42764b,_0xc36d28),this[_0x4a2397(0x235)](_0x3b7691);}}),_0x5aff9c||this[_0x1d8f89(0x332)]({'type':0x0,'memberID':this[_0x1d8f89(0x250)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x49bdda){const _0x2228f9=_0x27ba00;this[_0x2228f9(0x1d7)](_0x49bdda);const _0x340330=window[_0x2228f9(0x38d)](()=>{const _0x18cd4c=_0x2228f9;this[_0x18cd4c(0xb5)][_0x18cd4c(0x392)](_0x1efa34=>{_0x1efa34['delete'](_0x49bdda);});},cs*0x2);this[_0x2228f9(0x14f)]['set'](_0x49bdda,_0x340330);}['_removeClearOtherTimer'](_0x33edfb){const _0x388ac7=_0x27ba00;if(this['_clearOtherTimers'][_0x388ac7(0x262)](_0x33edfb)){const _0x392225=this[_0x388ac7(0x14f)][_0x388ac7(0x1dd)](_0x33edfb);_0x392225&&window[_0x388ac7(0x311)](_0x392225),this[_0x388ac7(0x14f)][_0x388ac7(0x371)](_0x33edfb,null);}}['_handleLeaveEvent'](_0x5dd7cd){const _0x11ae38=_0x27ba00,{memberID:_0x4a3c72,unitIDs:_0x111e42}=_0x5dd7cd;_0x111e42[_0x11ae38(0x392)](_0x3bd653=>{const _0x13a0ab=_0x11ae38;var _0x5b7839;const _0x44cd50=this['_unitOnClients'][_0x13a0ab(0x1dd)](_0x3bd653);_0x44cd50&&(_0x44cd50[_0x13a0ab(0xe1)](_0x4a3c72),(_0x5b7839=this[_0x13a0ab(0xc8)](_0x3bd653))==null||_0x5b7839[_0x13a0ab(0x8c)](_0x44cd50['size']===0x0?0x0:0x1));}),this[_0x11ae38(0x1d7)](_0x4a3c72);}[_0x27ba00(0x1ad)](_0x2a9f55){const _0x553dc2=_0x27ba00;this['_scheduleClearOtherTimer'](_0x2a9f55[_0x553dc2(0x1dc)]);}['_send'](_0x4bdb9a){const _0x317f7d=_0x27ba00;localStorage[_0x317f7d(0x1bc)](hs,JSON[_0x317f7d(0xea)](_0x4bdb9a));}[_0x27ba00(0x3aa)](){const _0x527b90=_0x27ba00;this['_heartbeatTimer']=window[_0x527b90(0x319)](()=>{const _0x158d3f=_0x527b90;this[_0x158d3f(0x332)]({'type':0x2,'memberID':this['_id']});},cs);}[_0x27ba00(0xc8)](_0x6881c7){const _0x24a809=_0x27ba00;return this['_unitStatus'][_0x24a809(0x262)](_0x6881c7)||this[_0x24a809(0x1a5)][_0x24a809(0x371)](_0x6881c7,new _0x23c814(0x0)),this[_0x24a809(0x1a5)][_0x24a809(0x1dd)](_0x6881c7);}}function Hs(_0x576f7b){const _0x160529=_0x27ba00;let _0x1b66f5='';for(const _0x376522 of _0x576f7b){const {startOffset:_0xf63585,endOffset:_0x3290db,isActive:_0x4cd5e6}=_0x376522;_0x1b66f5[_0x160529(0x117)]&&(_0x1b66f5+=','),_0x1b66f5+=_0xf63585+':'+_0x3290db+':'+(_0x4cd5e6?'1':'0');}return _0x1b66f5;}function ar(_0x28187c){const _0x54ff85=_0x27ba00,_0x3ded91=_0x28187c[_0x54ff85(0x17e)](','),_0x58225c=[];for(const _0x443368 of _0x3ded91){const [_0x26b332,_0x4d192b,_0x227778]=_0x443368[_0x54ff85(0x17e)](':');_0x58225c['push']({'startOffset':Number(_0x26b332),'endOffset':Number(_0x4d192b),'collapsed':_0x26b332===_0x4d192b,'isActive':_0x227778==='1'});}return _0x58225c[_0x54ff85(0x28d)](_0x43014b=>_0x43014b[_0x54ff85(0x1ee)])||(_0x58225c[0x0][_0x54ff85(0x1ee)]=!0x0),_0x58225c;}class Ft extends _0x504ec7{constructor(){const _0x4f35f5=_0x27ba00;super(...arguments),l(this,_0x4f35f5(0x84),new _0x23c814(null)),l(this,_0x4f35f5(0x162),this[_0x4f35f5(0x84)][_0x4f35f5(0x14e)]());}['syncEditingCollabCursor'](_0x4fe31c){const _0x621620=_0x27ba00,{unitID:_0x42b568,memberID:_0x3fe3b1,textRanges:_0x4941bd}=_0x4fe31c,_0x4e255c=Hs(_0x4941bd),_0xeb2b8={'unitID':_0x42b568,'memberID':_0x3fe3b1,'selection':_0x4e255c};this[_0x621620(0x84)]['next'](_0xeb2b8);}}var cr=Object[_0x27ba00(0x198)],hr=Object[_0x27ba00(0x280)],lr=(_0x55255f,_0x3dddc9,_0x29eed0,_0x1f49a3)=>{const _0x33472c=_0x27ba00;for(var _0x1a4e31=_0x1f49a3>0x1?void 0x0:_0x1f49a3?hr(_0x3dddc9,_0x29eed0):_0x3dddc9,_0x37634e=_0x55255f[_0x33472c(0x117)]-0x1,_0x53a4f6;_0x37634e>=0x0;_0x37634e--)(_0x53a4f6=_0x55255f[_0x37634e])&&(_0x1a4e31=(_0x1f49a3?_0x53a4f6(_0x3dddc9,_0x29eed0,_0x1a4e31):_0x53a4f6(_0x1a4e31))||_0x1a4e31);return _0x1f49a3&&_0x1a4e31&&cr(_0x3dddc9,_0x29eed0,_0x1a4e31),_0x1a4e31;},ls=(_0x132a35,_0x288b1b)=>(_0x690f5e,_0x18f762)=>_0x288b1b(_0x690f5e,_0x18f762,_0x132a35);let et=class{constructor(_0x3785f6,_0x17acab){const _0x1a25a4=_0x27ba00;this[_0x1a25a4(0x2a6)]=_0x3785f6,this[_0x1a25a4(0x32a)]=_0x17acab;}['transformSelections'](_0x54f679){const _0x2297ad=_0x27ba00;var _0x10bcf9;const _0x7078c8=this[_0x2297ad(0x2a6)]['get'](_0x4f65a4),_0x5a125c=(_0x10bcf9=_0x7078c8['getDocRanges']())!=null?_0x10bcf9:[];if(_0x5a125c['length']===0x0)return;const _0x5762ef=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x54f679[_0x2297ad(0x12c)],'actions':null,'textRanges':_0x5a125c}}],_0x1f5536=this[_0x2297ad(0x32a)]['transformMutationsWithChangeset'](_0x54f679,_0x5762ef);if(!_0x1476be(_0x1f5536))throw _0x1f5536[_0x2297ad(0x1e5)];const _0x3cd70e=_0x1f5536[_0x2297ad(0x2c1)][0x0]['params'][_0x2297ad(0x2eb)];Array[_0x2297ad(0x165)](_0x3cd70e)&&_0x3cd70e[_0x2297ad(0x117)]&&_0x7078c8['replaceTextRanges'](_0x3cd70e,!0x1);}};et=lr([ls(0x0,_0x27d762(_0x2a6c13)),ls(0x1,_0x29f88d)],et);const _r=new Set([_0x2e3a28['id']]);function _s(_0x3ae618,_0x2ed45d,_0x96faed,_0x4762fa,_0x5ca0be){const _0x68cad8=_0x27ba00;var _0x39a0b6,_0xac87a7,_0x3b2b5f,_0x3220ac;const _0x25815a=[];for(const _0x1678cd of _0x3ae618)if(_r[_0x68cad8(0x262)](_0x1678cd['id'])){if(_0x25815a['length']>0x0)break;_0x25815a['push'](_0x1678cd);break;}else _0x25815a[_0x68cad8(0x2ec)](_0x1678cd);const _0x5da737=(_0xac87a7=(_0x39a0b6=_0x5ca0be['getCurrentUser']())==null?void 0x0:_0x39a0b6['userID'])!=null?_0xac87a7:_0x68cad8(0x1fe),_0x4ec50d=(_0x3220ac=(_0x3b2b5f=_0x5ca0be[_0x68cad8(0x21f)]())==null?void 0x0:_0x3b2b5f[_0x68cad8(0x1dc)])!=null?_0x3220ac:_0x68cad8(0x1fe);return{'changeset':{'unitID':_0x2ed45d,'type':_0x49b8c6(_0x96faed[_0x68cad8(0xe2)](_0x2ed45d)),'baseRev':_0x4762fa[_0x68cad8(0x176)](_0x2ed45d),'revision':0x0,'userID':_0x5da737,'memberID':_0x4ec50d,'mutations':_0x25815a},'pendingMutations':_0x3ae618[_0x68cad8(0x1bb)](_0x25815a[_0x68cad8(0x117)])};}function ur(_0x9a6efb,_0x2df891,_0x2e1872,_0x3685b5,_0x23adbf){const _0x4b6788=_0x27ba00;var _0x23a765,_0x58157d,_0x56c086,_0x39c70c;const _0x540fab=[_0x9a6efb[_0x4b6788(0x331)]((_0x40cdb8,_0x1c1a88)=>{const _0x2dc608=_0x4b6788;var _0x187fbd;const {id:_0x87ff94}=_0x40cdb8,{id:_0x831470,type:_0x101883}=_0x1c1a88,_0x285ecd=(_0x187fbd=_0x40cdb8[_0x2dc608(0xb8)])!=null?_0x187fbd:{'actions':null},_0x37f07d=_0x1c1a88['params'];if(_0x87ff94&&_0x87ff94!==_0x831470)throw new Error(_0x2dc608(0x150)+_0x87ff94+_0x2dc608(0x2c0)+_0x831470+'.');return{..._0x40cdb8,'id':_0x831470,'type':_0x101883,'params':{'unitId':_0x37f07d[_0x2dc608(0x21a)],'textRanges':_0x37f07d[_0x2dc608(0x2eb)],'actions':_0x1eddbc[_0x2dc608(0x38a)](_0x285ecd[_0x2dc608(0x2cd)],_0x37f07d[_0x2dc608(0x2cd)])}};},{})],_0x5de392=(_0x58157d=(_0x23a765=_0x23adbf['getCurrentUser']())==null?void 0x0:_0x23a765[_0x4b6788(0x2f0)])!=null?_0x58157d:'unknown',_0x20d1f9=(_0x39c70c=(_0x56c086=_0x23adbf[_0x4b6788(0x21f)]())==null?void 0x0:_0x56c086[_0x4b6788(0x1dc)])!=null?_0x39c70c:_0x4b6788(0x1fe);return{'changeset':{'unitID':_0x2df891,'type':_0x49b8c6(_0x2e1872[_0x4b6788(0xe2)](_0x2df891)),'baseRev':_0x3685b5[_0x4b6788(0x176)](_0x2df891),'revision':0x0,'userID':_0x5de392,'memberID':_0x20d1f9,'mutations':_0x540fab},'pendingMutations':[]};}const dr={'id':_0x574c93['id'],'type':_0x38cb05[_0x27ba00(0x2b2)],'params':{}};var fr=Object[_0x27ba00(0x198)],mr=Object[_0x27ba00(0x280)],le=(_0x676d48,_0x2c1314,_0x592713,_0x220914)=>{const _0x3b3e27=_0x27ba00;for(var _0x3c434a=_0x220914>0x1?void 0x0:_0x220914?mr(_0x2c1314,_0x592713):_0x2c1314,_0x50e256=_0x676d48[_0x3b3e27(0x117)]-0x1,_0x56fc3d;_0x50e256>=0x0;_0x50e256--)(_0x56fc3d=_0x676d48[_0x50e256])&&(_0x3c434a=(_0x220914?_0x56fc3d(_0x2c1314,_0x592713,_0x3c434a):_0x56fc3d(_0x3c434a))||_0x3c434a);return _0x220914&&_0x3c434a&&fr(_0x2c1314,_0x592713,_0x3c434a),_0x3c434a;},m=(_0x28de5f,_0x394801)=>(_0x200f19,_0xb9b236)=>_0x394801(_0x200f19,_0xb9b236,_0x28de5f),w=(_0x345e77=>(_0x345e77[_0x27ba00(0x317)]='not_collab',_0x345e77['SYNCED']='synced',_0x345e77['PENDING']=_0x27ba00(0x3a1),_0x345e77[_0x27ba00(0x21b)]=_0x27ba00(0xe7),_0x345e77[_0x27ba00(0x207)]=_0x27ba00(0x209),_0x345e77['FETCH_MISS']=_0x27ba00(0x260),_0x345e77[_0x27ba00(0x139)]='conflict',_0x345e77[_0x27ba00(0x1f1)]='offline',_0x345e77))(w||{});function _0x1a62(_0x15e139,_0x1ce824){const _0x40b2b5=_0x40b2();return _0x1a62=function(_0x1a6233,_0x259199){_0x1a6233=_0x1a6233-0x68;let _0x71c8b4=_0x40b2b5[_0x1a6233];return _0x71c8b4;},_0x1a62(_0x15e139,_0x1ce824);}class _e{constructor(_0x1a209a,_0x1f9476,_0x3aa0cf,_0x56838c,_0x3ba420,_0x420c92,_0x426a72,_0x4c29f0,_0xc394d7){const _0x44b793=_0x27ba00;l(this,_0x44b793(0x90),null),l(this,_0x44b793(0x3df),[]),(this[_0x44b793(0x12c)]=_0x1a209a,this[_0x44b793(0xd5)]=_0x1f9476,this[_0x44b793(0x3b4)]=_0x3ba420,this[_0x44b793(0x1b0)]=_0x420c92,this['_undoRedoService']=_0x426a72,this[_0x44b793(0x76)]=_0x4c29f0,this[_0x44b793(0x12a)]=_0xc394d7,this[_0x44b793(0x90)]=_0x3aa0cf,this[_0x44b793(0x3df)]=_0x56838c);}[_0x27ba00(0x349)](_0x1c65f5){const _0x11307e=_0x27ba00,_0x5e3bd4=this[_0x11307e(0x76)][_0x11307e(0x176)](this[_0x11307e(0x12c)]);return _0x1c65f5[_0x11307e(0xd2)]>_0x5e3bd4+0x1?(this[_0x11307e(0x3b4)][_0x11307e(0x140)]({'from':_0x5e3bd4,'to':_0x1c65f5[_0x11307e(0xd2)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x3999bc){const _0x15e6ec=_0x27ba00;this[_0x15e6ec(0x3db)][_0x15e6ec(0x100)](this[_0x15e6ec(0x12c)],_0x3999bc);}[_0x27ba00(0x3cd)](_0x1cb54d){const _0x53fb0f=_0x27ba00;var _0x2bc907,_0x3571d5;(_0x3571d5=(_0x2bc907=this[_0x53fb0f(0x3b4)])[_0x53fb0f(0x21d)])==null||_0x3571d5[_0x53fb0f(0x321)](_0x2bc907,_0x1cb54d);}[_0x27ba00(0x8f)](_0x301834){const _0x51c408=_0x27ba00;var _0x27510a,_0x38d085;return(_0x38d085=(_0x27510a=this['_handler'])[_0x51c408(0xbf)])==null?void 0x0:_0x38d085[_0x51c408(0x321)](_0x27510a,_0x301834);}['_transformRemoteChangesetByIMECache'](_0xaf194){const _0x5a3834=_0x27ba00;var _0x2162d3,_0x258e49,_0x558e42;return(_0x558e42=(_0x258e49=(_0x2162d3=this[_0x5a3834(0x3b4)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x258e49[_0x5a3834(0x321)](_0x2162d3,_0xaf194))!=null?_0x558e42:_0xaf194;}[_0x27ba00(0x330)](_0x58a387){const _0x364e6d=_0x27ba00;var _0x570b54,_0x1e5c85;if(this[_0x364e6d(0xd5)]===H[_0x364e6d(0x2e3)]){const {unitID:_0x22b64f,mutations:_0x36e2cf,memberID:_0x32ed9}=_0x58a387,_0x7605bc=_0x36e2cf[0x0][_0x364e6d(0xb8)][_0x364e6d(0x2eb)];Array['isArray'](_0x7605bc)&&_0x7605bc[_0x364e6d(0x117)]>0x0&&((_0x1e5c85=(_0x570b54=this['_handler'])[_0x364e6d(0x154)])==null||_0x1e5c85['call'](_0x570b54,{'unitID':_0x22b64f,'memberID':_0x32ed9,'textRanges':_0x7605bc}));}}[_0x27ba00(0x1ea)](){const _0x3b336d=_0x27ba00;this['_localCacheService'][_0x3b336d(0x2e1)](this[_0x3b336d(0x12c)],this[_0x3b336d(0xd5)],this[_0x3b336d(0x90)],this['_pendingMutations']);}[_0x27ba00(0x2c7)](){const _0x6a2b1a=_0x27ba00;return this[_0x6a2b1a(0x76)][_0x6a2b1a(0x176)](this[_0x6a2b1a(0x12c)]);}[_0x27ba00(0x302)](){const _0x34ef48=_0x27ba00;this['_revisionService'][_0x34ef48(0x374)](this['unitID']);}[_0x27ba00(0x2de)](_0x39162c){const _0x43f216=_0x27ba00;var _0x2f86a8;const _0xd7fb97=this[_0x43f216(0x39d)](_0x39162c),_0x3797cd=_0x312bc3(_0xd7fb97['mutations'],this[_0x43f216(0x1b0)],{'fromCollab':!0x0});if(!_0x3797cd['result'])throw _0x3797cd[_0x43f216(0x1e5)]instanceof Error?_0x3797cd[_0x43f216(0x1e5)]:new Error((_0x2f86a8=_0x3797cd[_0x43f216(0x1e5)])!=null?_0x2f86a8:_0x43f216(0x1d0));this[_0x43f216(0x8f)](_0xd7fb97),this[_0x43f216(0xf7)](_0x39162c),this[_0x43f216(0x3cd)](_0xd7fb97),this[_0x43f216(0x330)](_0xd7fb97),this[_0x43f216(0x302)]();}}let pe=class extends _e{constructor(_0x42f56b,_0x323b68,_0x1cb354,_0x5196fa,_0x242eaf,_0x4948fd,_0x3c88fc,_0x9bbac6,_0x21da03,_0x34d5a2){const _0x3ea643=_0x27ba00;super(_0x42f56b,_0x323b68,null,[],_0x1cb354,_0x9bbac6,_0x3c88fc,_0x5196fa,_0x242eaf),l(this,_0x3ea643(0x102),_0x3ea643(0x8e)),(this[_0x3ea643(0x2a6)]=_0x4948fd,this[_0x3ea643(0xd6)]=_0x21da03,this['_transformService']=_0x34d5a2);}[_0x27ba00(0x3af)](_0x193c68){const _0x23130e=_0x27ba00,_0x932cfe=this['_injector'][_0x23130e(0x85)](K,this[_0x23130e(0x12c)],this[_0x23130e(0xd5)],[_0x193c68],this['_handler']);return _0x932cfe[_0x23130e(0x148)](),_0x932cfe['_updateLocalCache'](),_0x932cfe;}['onRemoteChangeset'](_0x2d4fe1){const _0x4067f2=_0x27ba00;if(this[_0x4067f2(0x349)](_0x2d4fe1))return this[_0x4067f2(0x2a6)][_0x4067f2(0x85)](k,this[_0x4067f2(0x12c)],this[_0x4067f2(0xd5)],null,[],null,[_0x2d4fe1],this[_0x4067f2(0x3b4)]);try{const _0x46d780=this[_0x4067f2(0x32a)]['transformMutationsWithChangeset'](_0x2d4fe1,[dr]);if(_0x1476be(_0x46d780)){const {c1Prime:_0x10b561}=_0x46d780;return this[_0x4067f2(0x2de)](_0x10b561),this;}throw _0x46d780[_0x4067f2(0x1e5)];}catch(_0x10876e){return this[_0x4067f2(0xd6)][_0x4067f2(0x1e5)](_0x10876e),this[_0x4067f2(0x272)](!0x1);}}['_onConflict'](_0x5774c6){const _0x1a7fc7=_0x27ba00;return this[_0x1a7fc7(0x2a6)][_0x1a7fc7(0x85)](ee,this[_0x1a7fc7(0x12c)],this[_0x1a7fc7(0xd5)],null,[],this[_0x1a7fc7(0x3b4)],_0x5774c6);}[_0x27ba00(0x3dd)](){const _0x598a6b=_0x27ba00;throw new Error(_0x598a6b(0x1ef));}[_0x27ba00(0xac)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x27ba00(0x14b)](){const _0xadb52f=_0x27ba00;return this[_0xadb52f(0x2a6)][_0xadb52f(0x85)](te,this[_0xadb52f(0x12c)],this[_0xadb52f(0xd5)],null,[],this[_0xadb52f(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x115ee7=_0x27ba00;throw new Error(_0x115ee7(0x1af));}[_0x27ba00(0x170)](){const _0x14448b=_0x27ba00,_0x168eb3=this['_revisionService'][_0x14448b(0x176)](this['unitID']);return this[_0x14448b(0x3b4)][_0x14448b(0x140)]({'from':_0x168eb3,'to':0x0}),this[_0x14448b(0x2a6)]['createInstance'](k,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};pe=le([m(0x3,_0x27d762(_0x3a9a12)),m(0x4,_0x27d762(D)),m(0x5,_0x27d762(_0x2a6c13)),m(0x6,_0x3b566c),m(0x7,_0xf80f3b),m(0x8,_0x1dd153),m(0x9,_0x29f88d)],pe);let K=class extends _e{constructor(_0x5985f7,_0x404724,_0x158bc0,_0x2531fb,_0x28121a,_0x2042fc,_0xa34621,_0x169706,_0x4f8382,_0x4aba6c,_0x52b7bb,_0x5dccb3,_0x20592d,_0xbb32a8){const _0xf6f517=_0x27ba00;super(_0x5985f7,_0x404724,null,_0x158bc0,_0x2531fb,_0x4aba6c,_0xbb32a8,_0x2042fc,_0xa34621),l(this,_0xf6f517(0x102),_0xf6f517(0x3a1)),l(this,_0xf6f517(0x1db),null),l(this,_0xf6f517(0x3dc),null),(this[_0xf6f517(0x2a6)]=_0x28121a,this[_0xf6f517(0x26b)]=_0x169706,this[_0xf6f517(0xd6)]=_0x4f8382,this['_configService']=_0x52b7bb,this[_0xf6f517(0x32a)]=_0x5dccb3,this['_univerInstanceService']=_0x20592d);}[_0x27ba00(0x3af)](_0x587e27){const _0x12fcd4=_0x27ba00;return this[_0x12fcd4(0x3df)][_0x12fcd4(0x2ec)](_0x587e27),this[_0x12fcd4(0x1ea)](),this;}[_0x27ba00(0x304)](_0xf5d39f){const _0x476eda=_0x27ba00;if(this[_0x476eda(0x349)](_0xf5d39f))return this[_0x476eda(0x143)](),this['_injector'][_0x476eda(0x85)](k,this[_0x476eda(0x12c)],this[_0x476eda(0xd5)],null,this[_0x476eda(0x3df)],null,[_0xf5d39f],this[_0x476eda(0x3b4)]);try{const _0x59c1eb=this['_transformService'][_0x476eda(0x3b9)](_0xf5d39f,this['_pendingMutations']);if(_0x1476be(_0x59c1eb)){const {c1Prime:_0x396861,m2Prime:_0x5c1116}=_0x59c1eb;this['_executeRemoteChangeset'](_0x396861);const _0x50d624=this[_0x476eda(0x2a6)]['createInstance'](K,this['unitID'],this[_0x476eda(0xd5)],_0x5c1116,this[_0x476eda(0x3b4)]);return this[_0x476eda(0x143)](),_0x50d624[_0x476eda(0x148)](this[_0x476eda(0x1db)]?Math[_0x476eda(0x1d1)](0x0,new Date()[_0x476eda(0xd3)]()-this[_0x476eda(0x1db)]):this['_getSendChangesetTimeout']()),_0x50d624;}throw _0x59c1eb[_0x476eda(0x1e5)];}catch(_0x55523c){return this[_0x476eda(0xd6)][_0x476eda(0x1e5)](_0x55523c),this[_0x476eda(0x272)](!0x1);}}[_0x27ba00(0x3dd)](){const _0x13c0d4=_0x27ba00;throw new Error(_0x13c0d4(0xf4));}['onRemoteRej'](){const _0x58ccfd=_0x27ba00;throw new Error(_0x58ccfd(0x277));}[_0x27ba00(0x14b)](){const _0xcb98ab=_0x27ba00;return this[_0xcb98ab(0x143)](),this[_0xcb98ab(0x2a6)]['createInstance'](te,this['unitID'],this[_0xcb98ab(0xd5)],null,this['_pendingMutations'],this[_0xcb98ab(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x148)](_0x914997){const _0x4e5ff8=_0x27ba00,_0x4a2a16=_0x914997!=null?_0x914997:this[_0x4e5ff8(0x18c)]();this['_scheduleTimestamp']=new Date()[_0x4e5ff8(0xd3)](),this[_0x4e5ff8(0x3dc)]=window[_0x4e5ff8(0x38d)](()=>{const _0x3e8624=_0x4e5ff8;this['_clearScheduledTask']();let _0x2d6845=null;switch(this[_0x3e8624(0xd5)]){case H[_0x3e8624(0xdf)]:{_0x2d6845=_s(this[_0x3e8624(0x3df)],this[_0x3e8624(0x12c)],this['_univerInstanceService'],this[_0x3e8624(0x76)],this['_memberService']);break;}case H[_0x3e8624(0x2e3)]:{this[_0x3e8624(0x3df)][_0x3e8624(0x124)](_0x3ee0c2=>_0x3ee0c2['id']===_0x4ee1d3['id'])?_0x2d6845=ur(this[_0x3e8624(0x3df)],this['unitID'],this[_0x3e8624(0xe3)],this[_0x3e8624(0x76)],this[_0x3e8624(0x26b)]):_0x2d6845=_s(this[_0x3e8624(0x3df)],this[_0x3e8624(0x12c)],this[_0x3e8624(0xe3)],this[_0x3e8624(0x76)],this[_0x3e8624(0x26b)]);break;}default:throw new Error(_0x3e8624(0x29b)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x4c60a4,pendingMutations:_0x5eed45}=_0x2d6845;this[_0x3e8624(0x3b4)][_0x3e8624(0x3e0)](_0x4c60a4);const _0x9de8ee=_0x5eed45[_0x3e8624(0x117)]?this[_0x3e8624(0x2a6)]['createInstance'](X,this[_0x3e8624(0x12c)],this['type'],_0x4c60a4,_0x5eed45,this[_0x3e8624(0x3b4)]):this[_0x3e8624(0x2a6)][_0x3e8624(0x85)](Q,this[_0x3e8624(0x12c)],this[_0x3e8624(0xd5)],_0x4c60a4,this[_0x3e8624(0x3b4)]);_0x9de8ee['_updateLocalCache'](),this[_0x3e8624(0x3b4)][_0x3e8624(0x1c3)](this,_0x9de8ee);},_0x4a2a16);}[_0x27ba00(0x18c)](){const _0x2adece=_0x27ba00;var _0x242186;const _0x509921=this[_0x2adece(0x19e)]['getConfig'](L);return(_0x242186=_0x509921==null?void 0x0:_0x509921[_0x2adece(0x203)])!=null?_0x242186:Sn;}[_0x27ba00(0x13a)](){const _0x1dce56=_0x27ba00;throw new Error(_0x1dce56(0x37e));}[_0x27ba00(0x143)](){const _0x3f01e2=_0x27ba00;this[_0x3f01e2(0x3dc)]!=null&&(clearTimeout(this[_0x3f01e2(0x3dc)]),this['_sendingTimer']=null);}['_onConflict'](_0x2cc754){const _0x47de65=_0x27ba00;return this[_0x47de65(0x143)](),this[_0x47de65(0x2a6)][_0x47de65(0x85)](ee,this[_0x47de65(0x12c)],this[_0x47de65(0xd5)],null,this[_0x47de65(0x3df)],this[_0x47de65(0x3b4)],_0x2cc754);}};K=le([m(0x4,_0x27d762(_0x2a6c13)),m(0x5,_0x27d762(_0x3a9a12)),m(0x6,_0x27d762(D)),m(0x7,_0x27d762(ae)),m(0x8,_0x1dd153),m(0x9,_0xf80f3b),m(0xa,_0xeb1b98),m(0xb,_0x29f88d),m(0xc,_0x4a4945),m(0xd,_0x3b566c)],K);let Q=class extends _e{constructor(_0x3d1cc8,_0xef980d,_0x2c7ce7,_0x3421fd,_0x11cfa,_0x1dde62,_0x165d41,_0xed1279,_0x5133f2,_0x110319,_0x111e54){const _0x3cafaf=_0x27ba00;super(_0x3d1cc8,_0xef980d,_0x2c7ce7,[],_0x3421fd,_0xed1279,_0x111e54,_0x1dde62,_0x165d41),l(this,_0x3cafaf(0x102),_0x3cafaf(0xe7)),(this[_0x3cafaf(0x2a6)]=_0x11cfa,this[_0x3cafaf(0xd6)]=_0x5133f2,this[_0x3cafaf(0x32a)]=_0x110319);}[_0x27ba00(0x3af)](_0x583f95){const _0x38d4cb=_0x27ba00,_0xdceff1=this['_injector']['createInstance'](X,this[_0x38d4cb(0x12c)],this['type'],this[_0x38d4cb(0x90)],[_0x583f95],this['_handler']);return _0xdceff1[_0x38d4cb(0x1ea)](),_0xdceff1;}[_0x27ba00(0x304)](_0x4c7fb9){const _0x17d9bb=_0x27ba00;if(this['_checkMissing'](_0x4c7fb9))return this['_injector'][_0x17d9bb(0x85)](k,this['unitID'],this[_0x17d9bb(0xd5)],this['_awaitingChangeset'],[],null,[_0x4c7fb9],this[_0x17d9bb(0x3b4)]);try{const _0x52e349=this['_transformService'][_0x17d9bb(0x398)]([_0x4c7fb9],[this[_0x17d9bb(0x90)]],!0x1);if(_0x246037(_0x52e349)){const {c1Prime:_0x12c794,c2Prime:_0x7e279b}=_0x52e349;this[_0x17d9bb(0x2de)](_0x12c794[0x0]),_0x7e279b[0x0][_0x17d9bb(0x32c)]=this[_0x17d9bb(0x2c7)]();const _0xabcd0=this[_0x17d9bb(0x2a6)]['createInstance'](Q,this['unitID'],this[_0x17d9bb(0xd5)],_0x7e279b[0x0],this['_handler']);return _0xabcd0['_updateLocalCache'](),_0xabcd0;}return this[_0x17d9bb(0x272)](!0x1);}catch(_0x2c1341){return this[_0x17d9bb(0xd6)][_0x17d9bb(0x1e5)](_0x2c1341),this[_0x17d9bb(0x272)](!0x1);}}[_0x27ba00(0x3dd)](_0x3e8304){const _0x39e957=_0x27ba00,_0xf3aa5a=this[_0x39e957(0x76)]['getCurrentRevOfUnit'](this['unitID']);if(_0x3e8304['revision']<_0xf3aa5a-0x1)return this;if(this[_0x39e957(0x349)](_0x3e8304))return this[_0x39e957(0x2a6)][_0x39e957(0x85)](k,this[_0x39e957(0x12c)],this[_0x39e957(0xd5)],null,[],this[_0x39e957(0x90)],[],this[_0x39e957(0x3b4)]);this['_incrementRevisionNumber']();const _0x4f148d=this['_injector'][_0x39e957(0x85)](pe,this['unitID'],this['type'],this['_handler']);return _0x4f148d[_0x39e957(0x1ea)](),_0x4f148d;}[_0x27ba00(0xac)](_0x34a849){const _0x562ccc=_0x27ba00;return this['_onConflict'](!!(_0x34a849!=null&&_0x34a849[_0x562ccc(0x329)]));}[_0x27ba00(0x14b)](){const _0x4745c6=_0x27ba00;return this[_0x4745c6(0x2a6)]['createInstance'](te,this[_0x4745c6(0x12c)],this['type'],this['_awaitingChangeset'],[],this['_handler']);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x5e5762=_0x27ba00;this[_0x5e5762(0x3b4)]['onSendChangeset'](this[_0x5e5762(0x90)]);}[_0x27ba00(0x272)](_0x3c85cc){const _0x17b13a=_0x27ba00;return this['_injector'][_0x17b13a(0x85)](ee,this[_0x17b13a(0x12c)],this[_0x17b13a(0xd5)],this['_awaitingChangeset'],[],this[_0x17b13a(0x3b4)],_0x3c85cc);}};Q=le([m(0x4,_0x27d762(_0x2a6c13)),m(0x5,_0x27d762(_0x3a9a12)),m(0x6,_0x27d762(D)),m(0x7,_0xf80f3b),m(0x8,_0x1dd153),m(0x9,_0x29f88d),m(0xa,_0x3b566c)],Q);let X=class extends _e{constructor(_0x242d53,_0x40a6e0,_0x47e45e,_0x4cf66f,_0x335b8f,_0x7dd3b5,_0x42e4eb,_0xec7f51,_0x39ad74,_0x36b824,_0x1dc8e3,_0x16101d){const _0x524fa2=_0x27ba00;super(_0x242d53,_0x40a6e0,_0x47e45e,_0x4cf66f,_0x335b8f,_0x39ad74,_0x16101d,_0x42e4eb,_0xec7f51),l(this,_0x524fa2(0x102),_0x524fa2(0x209)),(this[_0x524fa2(0x2a6)]=_0x7dd3b5,this[_0x524fa2(0xd6)]=_0x36b824,this['_transformService']=_0x1dc8e3);}[_0x27ba00(0x3af)](_0x10e1b5){const _0x36b1b6=_0x27ba00;return this[_0x36b1b6(0x3df)][_0x36b1b6(0x2ec)](_0x10e1b5),this;}['onRemoteChangeset'](_0x39a7f4){const _0x3cc945=_0x27ba00;if(this[_0x3cc945(0x349)](_0x39a7f4))return this[_0x3cc945(0x2a6)]['createInstance'](k,this[_0x3cc945(0x12c)],this[_0x3cc945(0xd5)],this['_awaitingChangeset'],this[_0x3cc945(0x3df)],null,[_0x39a7f4],this[_0x3cc945(0x3b4)]);try{const _0x27273f=this[_0x3cc945(0x32a)][_0x3cc945(0x398)]([_0x39a7f4],[this['_awaitingChangeset']],!0x1);if(_0x246037(_0x27273f)){const {c1Prime:_0x1f560f,c2Prime:_0x1bb68c}=_0x27273f,_0x4626e5=this[_0x3cc945(0x32a)][_0x3cc945(0x3b9)](_0x1f560f[0x0],this[_0x3cc945(0x3df)]);if(_0x1476be(_0x4626e5)){const {c1Prime:_0x1da1fc,m2Prime:_0x2d6fd8}=_0x4626e5;return this[_0x3cc945(0x2de)](_0x1da1fc),_0x1bb68c[0x0][_0x3cc945(0x32c)]=this[_0x3cc945(0x2c7)](),this[_0x3cc945(0x2a6)][_0x3cc945(0x85)](X,this[_0x3cc945(0x12c)],this[_0x3cc945(0xd5)],_0x1bb68c[0x0],_0x2d6fd8,this[_0x3cc945(0x3b4)]);}throw _0x4626e5['error'];}throw _0x27273f[_0x3cc945(0x1e5)];}catch(_0x45652a){return this[_0x3cc945(0xd6)][_0x3cc945(0x1e5)](_0x45652a),this[_0x3cc945(0x272)](!0x1);}}[_0x27ba00(0x3dd)](_0x76b480){const _0x577a02=_0x27ba00;if(this[_0x577a02(0x349)](_0x76b480))return this[_0x577a02(0x2a6)][_0x577a02(0x85)](k,this[_0x577a02(0x12c)],this[_0x577a02(0xd5)],null,this[_0x577a02(0x3df)],this[_0x577a02(0x90)],[],this[_0x577a02(0x3b4)]);this[_0x577a02(0x302)]();const _0x13769f=this[_0x577a02(0x2a6)][_0x577a02(0x85)](K,this[_0x577a02(0x12c)],this[_0x577a02(0xd5)],this[_0x577a02(0x3df)],this[_0x577a02(0x3b4)]);return _0x13769f['_schedule'](),_0x13769f['_updateLocalCache'](),_0x13769f;}['onRemoteRej'](_0x49f09a){const _0x11425e=_0x27ba00;return this[_0x11425e(0x272)](!!(_0x49f09a!=null&&_0x49f09a[_0x11425e(0x329)]));}[_0x27ba00(0x14b)](){const _0x897540=_0x27ba00;return this[_0x897540(0x2a6)][_0x897540(0x85)](te,this[_0x897540(0x12c)],this['type'],this[_0x897540(0x90)],this['_pendingMutations'],this[_0x897540(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x3f709f=_0x27ba00;this[_0x3f709f(0x3b4)][_0x3f709f(0x3e0)](this['_awaitingChangeset']);}[_0x27ba00(0x272)](_0x5b2c6e){const _0x243d44=_0x27ba00;return this[_0x243d44(0x2a6)]['createInstance'](ee,this[_0x243d44(0x12c)],this['type'],null,this['_pendingMutations'],this['_handler'],_0x5b2c6e);}};X=le([m(0x5,_0x27d762(_0x2a6c13)),m(0x6,_0x27d762(_0x3a9a12)),m(0x7,_0x27d762(D)),m(0x8,_0xf80f3b),m(0x9,_0x1dd153),m(0xa,_0x29f88d),m(0xb,_0x3b566c)],X);let ee=class extends _e{constructor(_0x223e24,_0x35bb02,_0x4a74d7,_0x2cb14f,_0x341422,_0x52776c=!0x1,_0x5e8e23,_0x452e30,_0xa709ee,_0x41a59f,_0x97a16c,_0x4d2d72,_0x4dd821){const _0x2af2ef=_0x27ba00;super(_0x223e24,_0x35bb02,_0x4a74d7,_0x2cb14f,_0x341422,_0x452e30,_0xa709ee,_0x97a16c,_0x41a59f),l(this,_0x2af2ef(0x102),'conflict'),(this[_0x2af2ef(0x288)]=_0x52776c,this[_0x2af2ef(0xa4)]=_0x5e8e23,this['_localeService']=_0x4d2d72,this[_0x2af2ef(0x14c)]=_0x4dd821,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x2af2ef(0x178)]());}[_0x27ba00(0x3af)](){return this;}[_0x27ba00(0x304)](){return this;}[_0x27ba00(0x3dd)](){return this;}[_0x27ba00(0xac)](){return this;}['toggleOffline'](){return this;}[_0x27ba00(0x6b)](){return this;}[_0x27ba00(0x13a)](){const _0x45302d=_0x27ba00;throw new Error(_0x45302d(0x14d));}[_0x27ba00(0x296)](){const _0x326484=_0x27ba00;this[_0x326484(0x12a)][_0x326484(0x2e1)](this['unitID'],this[_0x326484(0xd5)],null,[]);}[_0x27ba00(0x3d3)](){const _0x137848=_0x27ba00;this['_isPermissionRej']?this[_0x137848(0x14c)][_0x137848(0x346)]({'title':this[_0x137848(0x12e)]['t']('permission.title'),'content':this[_0x137848(0x12e)]['t'](_0x137848(0x2d1)),'type':_0x137848(0x1e5),'duration':0x0}):this[_0x137848(0x14c)][_0x137848(0x346)]({'title':this['_localeService']['t'](_0x137848(0x3ad)),'content':this['_localeService']['t'](_0x137848(0x246)),'type':'error','duration':0x0});}[_0x27ba00(0x178)](){const _0x3ef40e=_0x27ba00;this[_0x3ef40e(0xa4)][_0x3ef40e(0xde)](new _0x474cf8(this[_0x3ef40e(0x12c)])['id'],!0x1);}};ee=le([m(0x6,_0x27d762(_0xdc2a7e)),m(0x7,_0xf80f3b),m(0x8,_0x3b566c),m(0x9,_0x27d762(D)),m(0xa,_0x27d762(_0x3a9a12)),m(0xb,_0x27d762(_0x5d963b)),m(0xc,_0x3319e0)],ee);let te=class extends _e{constructor(_0x117a6c,_0x11b7aa,_0x4824d5,_0x3bb7fa,_0x3d2a2a,_0x2f0351,_0x459df9,_0x214e3f,_0x575bfe,_0x4505ad){const _0x4c9850=_0x27ba00;super(_0x117a6c,_0x11b7aa,_0x4824d5,_0x3bb7fa,_0x3d2a2a,_0x575bfe,_0x4505ad,_0x459df9,_0x214e3f),l(this,_0x4c9850(0x102),'offline'),this[_0x4c9850(0x2a6)]=_0x2f0351;}['appendMutation'](_0x13fd67){const _0x2a878e=_0x27ba00;return this[_0x2a878e(0x3df)]['push'](_0x13fd67),this['_updateLocalCache'](),this;}[_0x27ba00(0x304)](_0x3fb73d){const _0x469d1c=_0x27ba00;throw new Error(_0x469d1c(0x190));}[_0x27ba00(0x3dd)](){const _0x392e37=_0x27ba00;throw new Error(_0x392e37(0xee));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x27ba00(0x14b)](){return this;}[_0x27ba00(0x6b)](){const _0x5640ea=_0x27ba00,{_injector:_0x36367c,_pendingMutations:_0x18cdfe,_awaitingChangeset:_0x7c5751,unitID:_0x5cebdd,_handler:_0x1625ac,type:_0x507d6e}=this,_0xead6bf=ks(_0x36367c,_0x5cebdd,_0x507d6e,_0x7c5751,_0x18cdfe,_0x1625ac);return _0xead6bf instanceof K?_0xead6bf[_0x5640ea(0x148)]():(_0xead6bf instanceof X||_0xead6bf instanceof Q)&&_0xead6bf['resend'](),_0xead6bf;}[_0x27ba00(0x13a)](){const _0x46d9fa=_0x27ba00;throw new Error(_0x46d9fa(0x2c6));}};te=le([m(0x5,_0x27d762(_0x2a6c13)),m(0x6,_0x27d762(_0x3a9a12)),m(0x7,_0x27d762(D)),m(0x8,_0xf80f3b),m(0x9,_0x3b566c)],te);let k=class extends _e{constructor(_0xaeead2,_0x48eeba,_0x2be9b4,_0x4d8bf4,_0x597ca0,_0x33dc12,_0x19bdd6,_0x12788c,_0x4f3bc9,_0x428a9f,_0x4ff787,_0xc0c135,_0x4d65c6,_0x16a2f6){const _0x1050b3=_0x27ba00;super(_0xaeead2,_0x48eeba,_0x2be9b4,_0x4d8bf4,_0x19bdd6,_0xc0c135,_0x4d65c6,_0x4f3bc9,_0x428a9f),l(this,_0x1050b3(0x102),_0x1050b3(0x260)),(this[_0x1050b3(0x3ce)]=_0x597ca0,this[_0x1050b3(0x39f)]=_0x33dc12,this[_0x1050b3(0x2a6)]=_0x12788c,this[_0x1050b3(0xd6)]=_0x4ff787,this[_0x1050b3(0x32a)]=_0x16a2f6);}[_0x27ba00(0x13b)](_0x3a7bca){const _0x40f2b6=_0x27ba00;try{const _0x1a45ce=[..._0x3a7bca,...this[_0x40f2b6(0x39f)]],_0x48d8eb=[this[_0x40f2b6(0x90)]||this[_0x40f2b6(0x3ce)]][_0x40f2b6(0x266)](_0x19f597=>!!_0x19f597);let _0x31b0a7,_0x340cab;if(_0x48d8eb['length']){const _0x472440=this[_0x40f2b6(0x32a)]['transformChangesets'](_0x1a45ce,_0x48d8eb,!0x1);if(!_0x246037(_0x472440))throw _0x472440['error'];_0x31b0a7=_0x472440[_0x40f2b6(0x379)],_0x340cab=_0x472440[_0x40f2b6(0x2a8)];}else _0x31b0a7=_0x1a45ce,_0x340cab=[];let _0x38ca51=this[_0x40f2b6(0x3df)];_0x31b0a7[_0x40f2b6(0x392)](_0x33f4d4=>{const _0x245392=_0x40f2b6;let _0xd807a7;if(_0x38ca51[_0x245392(0x117)]){const _0x333e98=this[_0x245392(0x32a)][_0x245392(0x3b9)](_0x33f4d4,_0x38ca51);if(!_0x1476be(_0x333e98))throw _0x333e98[_0x245392(0x1e5)];_0xd807a7=_0x333e98[_0x245392(0x379)],_0x38ca51=_0x333e98[_0x245392(0x2c1)];}else _0xd807a7=_0x33f4d4;this[_0x245392(0x2de)](_0xd807a7);}),this[_0x40f2b6(0x3ce)]&&this['_incrementRevisionNumber'](),this[_0x40f2b6(0x90)]&&_0x340cab[_0x40f2b6(0x117)]&&(_0x340cab[0x0][_0x40f2b6(0x32c)]=this[_0x40f2b6(0x2c7)]());let _0x20d2fb;if(this[_0x40f2b6(0x90)]&&_0x38ca51[_0x40f2b6(0x117)]!==0x0)_0x20d2fb=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](X,this[_0x40f2b6(0x12c)],this[_0x40f2b6(0xd5)],_0x340cab[0x0],_0x38ca51,this[_0x40f2b6(0x3b4)]);else{if(this['_awaitingChangeset']&&_0x38ca51[_0x40f2b6(0x117)]===0x0)_0x340cab[0x0]['baseRev']=this[_0x40f2b6(0x2c7)](),_0x20d2fb=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](Q,this[_0x40f2b6(0x12c)],this[_0x40f2b6(0xd5)],_0x340cab[0x0],this[_0x40f2b6(0x3b4)]);else{if(_0x38ca51[_0x40f2b6(0x117)]!==0x0){const _0x43cd2a=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](K,this['unitID'],this[_0x40f2b6(0xd5)],_0x38ca51,this['_handler']);_0x43cd2a[_0x40f2b6(0x148)](),_0x20d2fb=_0x43cd2a;}else _0x20d2fb=this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](pe,this[_0x40f2b6(0x12c)],this['type'],this[_0x40f2b6(0x3b4)]);}}return _0x20d2fb['_updateLocalCache'](),_0x20d2fb;}catch(_0x19b2a6){return this[_0x40f2b6(0xd6)][_0x40f2b6(0x1e5)](_0x40f2b6(0x3e1),'failed\x20to\x20apply\x20missed\x20changesets!',_0x19b2a6),this[_0x40f2b6(0x2a6)][_0x40f2b6(0x85)](ee,this[_0x40f2b6(0x12c)],this[_0x40f2b6(0xd5)],this[_0x40f2b6(0x90)],this['_pendingMutations'],this[_0x40f2b6(0x3b4)],!0x1);}}[_0x27ba00(0x13a)](){const _0x31c694=_0x27ba00;throw new Error(_0x31c694(0x360));}[_0x27ba00(0x3af)](_0x1198b4){const _0x1ce95a=_0x27ba00;return this[_0x1ce95a(0x3df)][_0x1ce95a(0x2ec)](_0x1198b4),this;}['onRemoteChangeset'](_0x39e662){const _0xcebe76=_0x27ba00;return this[_0xcebe76(0x39f)]['push'](_0x39e662),this;}[_0x27ba00(0x3dd)](_0x589a93){const _0x36f85c=_0x27ba00;if(this[_0x36f85c(0x90)])return this[_0x36f85c(0x3ce)]=this[_0x36f85c(0x90)],this[_0x36f85c(0x90)]=null,this;throw new Error(_0x36f85c(0x1f3));}['onRemoteRej'](_0x19f231){const _0x3ac6d8=_0x27ba00;return this['_onConflict'](!!(_0x19f231!=null&&_0x19f231[_0x3ac6d8(0x329)]));}['toggleOffline'](){const _0x29e276=_0x27ba00;return this[_0x29e276(0x2a6)][_0x29e276(0x85)](te,this[_0x29e276(0x12c)],this[_0x29e276(0xd5)],this[_0x29e276(0x90)],this['_pendingMutations'],this[_0x29e276(0x3b4)]);}[_0x27ba00(0x6b)](){return this;}['_onConflict'](_0x183524){const _0xbf004e=_0x27ba00;return this[_0xbf004e(0x2a6)][_0xbf004e(0x85)](ee,this[_0xbf004e(0x12c)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this['_handler'],_0x183524);}};k=le([m(0x7,_0x27d762(_0x2a6c13)),m(0x8,_0x27d762(_0x3a9a12)),m(0x9,_0x27d762(D)),m(0xa,_0x1dd153),m(0xb,_0xf80f3b),m(0xc,_0x3b566c),m(0xd,_0x29f88d)],k);function ks(_0x56363c,_0x57de9b,_0x493cc5,_0x598054,_0xcb8155,_0xe3b50d){const _0x38a2a1=_0x27ba00;return _0x598054&&_0xcb8155[_0x38a2a1(0x117)]?_0x56363c['createInstance'](X,_0x57de9b,_0x493cc5,_0x598054,_0xcb8155,_0xe3b50d):_0x598054?_0x56363c[_0x38a2a1(0x85)](Q,_0x57de9b,_0x493cc5,_0x598054,_0xe3b50d):_0xcb8155[_0x38a2a1(0x117)]?_0x56363c[_0x38a2a1(0x85)](K,_0x57de9b,_0x493cc5,_0xcb8155,_0xe3b50d):_0x56363c[_0x38a2a1(0x85)](pe,_0x57de9b,_0x493cc5,_0xe3b50d);}var gr=Object[_0x27ba00(0x198)],Sr=Object[_0x27ba00(0x280)],Wt=(_0xc94cc3,_0x463e8c,_0xd9340b,_0x3f4a57)=>{const _0x1ad5e3=_0x27ba00;for(var _0x20aec2=_0x3f4a57>0x1?void 0x0:_0x3f4a57?Sr(_0x463e8c,_0xd9340b):_0x463e8c,_0x441eee=_0xc94cc3[_0x1ad5e3(0x117)]-0x1,_0xfb4153;_0x441eee>=0x0;_0x441eee--)(_0xfb4153=_0xc94cc3[_0x441eee])&&(_0x20aec2=(_0x3f4a57?_0xfb4153(_0x463e8c,_0xd9340b,_0x20aec2):_0xfb4153(_0x20aec2))||_0x20aec2);return _0x3f4a57&&_0x20aec2&&gr(_0x463e8c,_0xd9340b,_0x20aec2),_0x20aec2;},p=(_0x2fef99,_0x288045)=>(_0x56d0d9,_0x3112fd)=>_0x288045(_0x56d0d9,_0x3112fd,_0x2fef99);let tt=class extends _0x504ec7{constructor(_0x2de608,_0x55374c,_0xa50033,_0x41e67f,_0x2d74f2,_0x4da8ec,_0xdd5688,_0x14ed20,_0x75229c,_0x5cdbbb,_0xb10d92,_0x9fb1e1,_0x56eeef){const _0x3ea55c=_0x27ba00;super(),l(this,'_state$',new _0x23c814(null)),l(this,_0x3ea55c(0x2a5),this[_0x3ea55c(0x252)]['asObservable']()),l(this,_0x3ea55c(0x130)),l(this,'_collaborationPaused',!0x1),l(this,_0x3ea55c(0x16b),this[_0x3ea55c(0x2a5)][_0x3ea55c(0x31c)](_0x5a8977(_0x29dedb=>_0x29dedb?_0x29dedb[_0x3ea55c(0x102)]:w[_0x3ea55c(0x1f1)]),_0x416754(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x3ea55c(0x149),[]),(this[_0x3ea55c(0x12c)]=_0x2de608,this['session']=_0x55374c,this[_0x3ea55c(0xce)]=_0xa50033,this[_0x3ea55c(0x2a6)]=_0x41e67f,this[_0x3ea55c(0x12a)]=_0x2d74f2,this[_0x3ea55c(0x201)]=_0x4da8ec,this[_0x3ea55c(0x12e)]=_0xdd5688,this[_0x3ea55c(0x76)]=_0x14ed20,this[_0x3ea55c(0xd6)]=_0x75229c,this[_0x3ea55c(0x1b0)]=_0x5cdbbb,this['_messageService']=_0xb10d92,this[_0x3ea55c(0xa4)]=_0x9fb1e1,this[_0x3ea55c(0x22c)]=_0x56eeef);}get[_0x27ba00(0xc7)](){return this['_state'];}async[_0x27ba00(0x279)](){const _0x53193a=_0x27ba00;if(this['state'])throw new Error(_0x53193a(0x394));await this[_0x53193a(0x7b)]();}['pauseCollaboration'](){const _0x2e7322=_0x27ba00;return this[_0x2e7322(0x2f3)]=!0x0,_0x10763a(()=>{const _0x36c82d=_0x2e7322;this[_0x36c82d(0x2f3)]=!0x1,this[_0x36c82d(0xd7)]();});}[_0x27ba00(0x22a)](_0x147323){const _0x54fd7e=_0x27ba00;this[_0x54fd7e(0x130)]=_0x147323,this['_state$'][_0x54fd7e(0x8c)](_0x147323);}async[_0x27ba00(0x7b)](){const _0x46a9b6=_0x27ba00;var _0x942176;this[_0x46a9b6(0x22a)](await this[_0x46a9b6(0x363)]()),this[_0x46a9b6(0x22c)]&&((_0x942176=this[_0x46a9b6(0x22c)])==null||_0x942176[_0x46a9b6(0x231)](this[_0x46a9b6(0x12c)]),this[_0x46a9b6(0x169)](this['_singleActiveUnitService'][_0x46a9b6(0x127)](this[_0x46a9b6(0x12c)])[_0x46a9b6(0x3c1)](_0x10083a=>{const _0x1f391a=_0x46a9b6;this[_0x1f391a(0xd6)][_0x1f391a(0x227)](_0x1f391a(0x173),'editing\x20status\x20changed\x20to',_0x10083a),_0x10083a===xs[_0x1f391a(0x3d0)]?(this[_0x1f391a(0x157)]['show']({'content':this[_0x1f391a(0x12e)]['t'](_0x1f391a(0x118)),'type':_0x104514[_0x1f391a(0x364)]}),this[_0x1f391a(0xa4)][_0x1f391a(0xde)](new _0x474cf8(this[_0x1f391a(0x12c)])['id'],!0x1)):this[_0x1f391a(0xa4)][_0x1f391a(0xde)](new _0x474cf8(this[_0x1f391a(0x12c)])['id'],!0x0);})));let _0x3cb16d=!0x1;return this[_0x46a9b6(0x169)](this[_0x46a9b6(0xbe)]['sessionStatus$'][_0x46a9b6(0x3c1)](_0x9b5db9=>{const _0xf1074e=_0x46a9b6;_0x9b5db9===G[_0xf1074e(0x16c)]?this[_0xf1074e(0x1b2)](_0x3cb16d):_0x9b5db9===G[_0xf1074e(0x1f1)]&&(_0x3cb16d=!0x0,this[_0xf1074e(0x103)]());})),this[_0x46a9b6(0x169)](this[_0x46a9b6(0xbe)][_0x46a9b6(0x359)]['subscribe'](_0x5167d8=>{const _0x1d609f=_0x46a9b6;try{switch(_0x5167d8[_0x1d609f(0xc3)]){case _0x6fa194[_0x1d609f(0xad)]:{this[_0x1d609f(0xcc)](_0x3e0428(_0x5167d8[_0x1d609f(0x216)]));break;}case _0x6fa194[_0x1d609f(0xdc)]:{this[_0x1d609f(0x314)](_0x5167d8[_0x1d609f(0x216)]);break;}case _0x6fa194[_0x1d609f(0x308)]:{this[_0x1d609f(0x9b)]();break;}case _0x6fa194[_0x1d609f(0x3cc)]:{this[_0x1d609f(0x37b)](_0x5167d8[_0x1d609f(0x216)][_0x1d609f(0x218)]['map'](_0x271f8f=>_0x3e0428(_0x271f8f)));break;}case _0x6fa194[_0x1d609f(0x1d3)]:this[_0x1d609f(0x9b)]({'isPermissionRej':!0x0});}}catch(_0x295c08){throw console['error'](_0x1d609f(0x9d),_0x295c08),_0x295c08;}})),this[_0x46a9b6(0x130)];}[_0x27ba00(0x20a)](){const _0x11b92b=_0x27ba00;this[_0x11b92b(0x2bb)]=!0x1;}[_0x27ba00(0x39a)](){const _0x12eb92=_0x27ba00;if(this[_0x12eb92(0x2bb)])throw new Error(_0x12eb92(0x305));this[_0x12eb92(0x2bb)]=!0x0;}[_0x27ba00(0x290)](_0x2c98f1){const _0x27e353=_0x27ba00;this[_0x27e353(0x39a)](),this[_0x27e353(0x22a)](this['_state']['appendMutation'](_0x2c98f1)),this[_0x27e353(0x20a)]();}[_0x27ba00(0xcc)](_0x91923e){const _0x35857e=_0x27ba00;if(!(_0x91923e['revision']<=this[_0x35857e(0x76)]['getCurrentRevOfUnit'](this[_0x35857e(0x12c)]))){if(this[_0x35857e(0x2f3)]){this[_0x35857e(0x149)][_0x35857e(0x2ec)](_0x91923e);return;}this[_0x35857e(0x1f6)](_0x91923e);}}['_exhaustRemoteChangesetQueue'](){const _0x16568e=_0x27ba00;this[_0x16568e(0x149)][_0x16568e(0x392)](_0x3dd111=>this[_0x16568e(0x1f6)](_0x3dd111)),this[_0x16568e(0x149)]=[];}[_0x27ba00(0x1f6)](_0x6702d4){const _0x1e9d19=_0x27ba00,_0x54fc31=this['_compressMutationService'][_0x1e9d19(0x1b8)][_0x1e9d19(0x28b)](this[_0x1e9d19(0x201)][_0x1e9d19(0x1b8)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x6702d4['mutations'],null)||_0x6702d4['mutations'],_0x1df506={..._0x6702d4,'mutations':_0x54fc31};this['_lockTransition'](),this[_0x1e9d19(0x22a)](this[_0x1e9d19(0x130)]['onRemoteChangeset'](_0x1df506)),this[_0x1e9d19(0x20a)]();}[_0x27ba00(0x314)](_0xaaa208){const _0x3086eb=_0x27ba00;this[_0x3086eb(0x39a)](),this[_0x3086eb(0x22a)](this['_state'][_0x3086eb(0x3dd)](_0xaaa208)),this['_unlockTransition']();}['_onRemoteRejected'](_0x27ed3b){const _0x2dc655=_0x27ba00;this[_0x2dc655(0x39a)](),this[_0x2dc655(0x22a)](this[_0x2dc655(0x130)][_0x2dc655(0xac)](_0x27ed3b)),this['_unlockTransition']();}[_0x27ba00(0x37b)](_0x4decfe){const _0x2679a9=_0x27ba00;if(!(this[_0x2679a9(0x130)]instanceof k))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4822b6=_0x4decfe[_0x2679a9(0x23f)](_0x60ec62=>{const _0xf4699a=_0x2679a9,_0x449ae7=this[_0xf4699a(0x201)][_0xf4699a(0x1b8)][_0xf4699a(0x28b)](this['_compressMutationService'][_0xf4699a(0x1b8)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x60ec62[_0xf4699a(0x3bd)],null)||_0x60ec62[_0xf4699a(0x3bd)];return{..._0x60ec62,'mutations':_0x449ae7};});this['_lockTransition'](),this[_0x2679a9(0x22a)](this[_0x2679a9(0x130)][_0x2679a9(0x13b)](_0x4822b6)),this[_0x2679a9(0x20a)]();}[_0x27ba00(0x103)](){const _0x5e6775=_0x27ba00;this[_0x5e6775(0x39a)](),this[_0x5e6775(0x22a)](this[_0x5e6775(0x130)]['toggleOffline']()),this[_0x5e6775(0x20a)]();}[_0x27ba00(0x1b2)](_0x52c6ff=!0x1){const _0x27d90b=_0x27ba00;this[_0x27d90b(0x39a)](),this['_updateState'](this[_0x27d90b(0x130)][_0x27d90b(0x6b)]()),this[_0x27d90b(0x20a)]();const _0x44f050=this[_0x27d90b(0x130)];_0x52c6ff&&_0x44f050 instanceof pe&&(this['_lockTransition'](),this['_updateState'](_0x44f050[_0x27d90b(0x170)]()),this['_unlockTransition']());}async[_0x27ba00(0x363)](){return new Promise(_0x49540e=>{const _0x519ca7=_0x1a62;this[_0x519ca7(0xbe)][_0x519ca7(0x10c)][_0x519ca7(0x31c)](_0x542947(0x1))['subscribe'](async _0x5ece21=>{const _0x558ccd=_0x519ca7;_0x49540e(await this[_0x558ccd(0x195)](_0x5ece21===G[_0x558ccd(0x16c)]));});});}['_createHandler'](){const _0x27275a=_0x27ba00,_0x5fbf61=this[_0x27275a(0x12c)];return{'onStateChange':(_0x1f3d45,_0xe2e488)=>{const _0x17e139=_0x27275a;if(_0x1f3d45!==this[_0x17e139(0x130)])throw new Error(_0x17e139(0x3ac)+_0x1f3d45['status']+_0x17e139(0x136)+_0xe2e488[_0x17e139(0x102)]+_0x17e139(0x34f)+this[_0x17e139(0x130)][_0x17e139(0x102)]);this[_0x17e139(0x22a)](_0xe2e488);},'onSendChangeset':_0x1833a4=>{const _0x33e3b7=_0x27275a,_0x4f202e={'eventID':_0x6fa194['SUBMIT_CHANGESET'],'data':{'unitID':_0x1833a4['unitID'],'unitType':this['_type'],'changeset':_0x1833a4,'memberID':this[_0x33e3b7(0xbe)][_0x33e3b7(0x3b1)]()}};this['session'][_0x33e3b7(0x128)](_0x4f202e,this['unitID']);},'onMissingChangesets':({from:_0x545ce3,to:_0x4a5733})=>{const _0x227d1c=_0x27275a;this[_0x227d1c(0xd6)][_0x227d1c(0x227)](_0x227d1c(0x173),_0x227d1c(0x2f2)+_0x545ce3+_0x227d1c(0x3d2)+_0x4a5733);const _0x23242a={'eventID':_0x6fa194[_0x227d1c(0x18d)],'data':{'unitID':_0x5fbf61,'unitType':this[_0x227d1c(0xce)],'from':_0x545ce3,'to':_0x4a5733}};this['session']['send'](_0x23242a,this[_0x227d1c(0x12c)]);}};}async[_0x27ba00(0x195)](_0xe4da17){const _0x33dd0e=_0x27ba00;var _0x35b386,_0x3e25a5;const _0x335ab2=await this['_localCacheService'][_0x33dd0e(0x347)](this[_0x33dd0e(0x12c)]),_0x384ad7=(_0x35b386=_0x335ab2==null?void 0x0:_0x335ab2[_0x33dd0e(0x3bd)])!=null?_0x35b386:[],_0x3d092f=(_0x3e25a5=_0x335ab2==null?void 0x0:_0x335ab2[_0x33dd0e(0x2af)])!=null?_0x3e25a5:null,_0x2f0c88=this[_0x33dd0e(0x12c)];try{this[_0x33dd0e(0x10b)](_0x3d092f,_0x384ad7);}catch(_0xb24b5d){this[_0x33dd0e(0xd6)][_0x33dd0e(0x1e5)](_0xb24b5d);}const _0x2e48b9=this[_0x33dd0e(0x188)]();if(_0xe4da17){const _0x44070e=ks(this[_0x33dd0e(0x2a6)],_0x2f0c88,this[_0x33dd0e(0xce)],_0x3d092f,_0x384ad7,_0x2e48b9);return _0x44070e instanceof K?_0x44070e[_0x33dd0e(0x148)]():(_0x44070e instanceof X||_0x44070e instanceof Q)&&_0x44070e[_0x33dd0e(0x13a)](),_0x44070e;}return this['_injector']['createInstance'](te,_0x2f0c88,this[_0x33dd0e(0xce)],_0x3d092f,_0x384ad7,_0x2e48b9);}[_0x27ba00(0x10b)](_0x20f621,_0x48d544){const _0x5e4c63=_0x27ba00;var _0x636b1,_0x1eea94;const _0x5601bd=this[_0x5e4c63(0x201)][_0x5e4c63(0x1b8)][_0x5e4c63(0x28b)](this[_0x5e4c63(0x201)][_0x5e4c63(0x1b8)][_0x5e4c63(0x2d5)]()[_0x5e4c63(0x19f)]);(_0x636b1=_0x5601bd((_0x20f621==null?void 0x0:_0x20f621[_0x5e4c63(0x3bd)])||[],null))==null||_0x636b1[_0x5e4c63(0x392)](_0x631944=>this[_0x5e4c63(0x1b0)][_0x5e4c63(0xb6)](_0x631944['id'],_0x631944[_0x5e4c63(0xb8)])),(_0x1eea94=_0x5601bd(_0x48d544||[],null))==null||_0x1eea94[_0x5e4c63(0x392)](_0x4ec5aa=>this[_0x5e4c63(0x1b0)][_0x5e4c63(0xb6)](_0x4ec5aa['id'],_0x4ec5aa[_0x5e4c63(0xb8)]));}};tt=Wt([p(0x3,_0x27d762(_0x2a6c13)),p(0x4,_0x27d762(D)),p(0x5,_0x27d762(_0x1aacdc)),p(0x6,_0x27d762(_0x5d963b)),p(0x7,_0x27d762(_0x3a9a12)),p(0x8,_0x1dd153),p(0x9,_0xf80f3b),p(0xa,_0x17da32),p(0xb,_0xdc2a7e),p(0xc,_0x3a7ea6(nt))],tt);let Ot=class extends tt{constructor(_0x50f47c,_0x143e81,_0x2149b9,_0x51879f,_0x2b6970,_0x2eccad,_0x175767,_0x3e3513,_0x159d99,_0x383d5d,_0x32ef00,_0x11bbf3,_0x2681d8,_0x4ceaff,_0xabf5a,_0x1fdd5f,_0x48e012){const _0x25e891=_0x27ba00;super(_0x50f47c,_0x2149b9,_0x143e81,_0x51879f,_0x2b6970,_0x2eccad,_0x175767,_0x3e3513,_0x2681d8,_0x4ceaff,_0xabf5a,_0x1fdd5f,_0x48e012),this[_0x25e891(0x12c)]=_0x50f47c,this[_0x25e891(0xd5)]=_0x143e81,this[_0x25e891(0x19b)]=_0x159d99,this['_docTransformIMECacheService']=_0x383d5d,this[_0x25e891(0x122)]=_0x32ef00,this['_docSyncEditingCollabCursorService']=_0x11bbf3;}[_0x27ba00(0x188)](){const _0x5b470d=_0x27ba00,_0x15a44b=super[_0x5b470d(0x188)]();return _0x15a44b['onTransformIME']=_0x581236=>this[_0x5b470d(0xf2)][_0x5b470d(0x126)](_0x581236),_0x15a44b[_0x5b470d(0x21d)]=_0x2baf48=>this[_0x5b470d(0x122)][_0x5b470d(0x289)](_0x2baf48),_0x15a44b[_0x5b470d(0x154)]=_0x4e45e1=>this[_0x5b470d(0x153)][_0x5b470d(0x257)](_0x4e45e1),_0x15a44b['onTransformRemoteChangesetByIMECache']=_0x4eeed5=>this['_docTransformIMECacheService'][_0x5b470d(0x1e2)](_0x4eeed5),_0x15a44b;}async['_init'](){const _0x118652=_0x27ba00,_0x7f97a7=await super[_0x118652(0x7b)]();return this['disposeWithMe'](this[_0x118652(0x1b0)]['onCommandExecuted']((_0x3443e8,_0x470672)=>{const _0x400111=_0x118652;if(_0x3443e8[_0x400111(0xd5)]!==_0x38cb05[_0x400111(0x2b2)]||_0x470672!=null&&_0x470672['fromCollab']||_0x470672!=null&&_0x470672[_0x400111(0x15f)])return;const _0x1c21c9=_0x3443e8[_0x400111(0xb8)];if((_0x1c21c9==null?void 0x0:_0x1c21c9[_0x400111(0x21a)])!==this['unitID'])return;let _0x390c77=_0x3443e8;if(_0x390c77['id']===_0x4ee1d3['id']){const _0x4b457a=_0x390c77[_0x400111(0xb8)];_0x390c77={'id':_0x4ee1d3['id'],'type':_0x38cb05[_0x400111(0x2b2)],'params':{'unitId':_0x4b457a[_0x400111(0x21a)],'actions':_0x4b457a[_0x400111(0x2cd)],'textRanges':null}};}const _0x1b1ff5=this['_compressMutationService'][_0x400111(0x1b8)][_0x400111(0x28b)](this[_0x400111(0x201)][_0x400111(0x1b8)][_0x400111(0x2d5)]()[_0x400111(0x358)])([_0x390c77],null)||[_0x390c77];this['_onLocalMutation'](_0x1b1ff5[0x0]);})),_0x7f97a7;}};Ot=Wt([p(0x3,_0x27d762(_0x2a6c13)),p(0x4,_0x27d762(D)),p(0x5,_0x27d762(_0x1aacdc)),p(0x6,_0x27d762(_0x5d963b)),p(0x7,_0x27d762(_0x3a9a12)),p(0x8,_0x27d762(_0x1981c4)),p(0x9,_0x27d762(Ze)),p(0xa,_0x27d762(et)),p(0xb,_0x27d762(Ft)),p(0xc,_0x1dd153),p(0xd,_0xf80f3b),p(0xe,_0x17da32),p(0xf,_0xdc2a7e),p(0x10,_0x3a7ea6(nt))],Ot);let Dt=class extends tt{constructor(_0x3d7341,_0xdfe188,_0x3049ad,_0x27b41c,_0x376827,_0x5c42f7,_0x69a08a,_0x219aab,_0xaaacf2,_0x2cd701,_0x504f07,_0x43305e,_0x3a6134,_0x13f2e4){const _0xa011be=_0x27ba00;super(_0x3d7341,_0x3049ad,_0xdfe188,_0x27b41c,_0x376827,_0x5c42f7,_0x69a08a,_0x219aab,_0x2cd701,_0x504f07,_0x43305e,_0x3a6134,_0x13f2e4),this[_0xa011be(0x12c)]=_0x3d7341,this['type']=_0xdfe188,this[_0xa011be(0x166)]=_0xaaacf2;}[_0x27ba00(0x188)](){const _0x24ab7b=_0x27ba00,_0x77d0fb=super['_createHandler']();return _0x77d0fb[_0x24ab7b(0x21d)]=_0x539581=>this['_sheetTransformSelectionsService'][_0x24ab7b(0x289)](_0x539581),_0x77d0fb;}async[_0x27ba00(0x7b)](){const _0x10dd08=_0x27ba00,_0x315566=await super[_0x10dd08(0x7b)]();return this[_0x10dd08(0x169)](this['_commandService'][_0x10dd08(0x17d)]((_0x2e391f,_0x5c107f)=>{const _0x491dd7=_0x10dd08;if(_0x2e391f['type']!==_0x38cb05[_0x491dd7(0x2b2)]||_0x5c107f!=null&&_0x5c107f['fromCollab']||_0x5c107f!=null&&_0x5c107f['onlyLocal'])return;const _0x36b26e=_0x2e391f[_0x491dd7(0xb8)];if((_0x36b26e==null?void 0x0:_0x36b26e[_0x491dd7(0x21a)])!==this[_0x491dd7(0x12c)])return;const _0x32b622=_0x2e391f,_0x5d0c03=this[_0x491dd7(0x201)][_0x491dd7(0x1b8)][_0x491dd7(0x28b)](this[_0x491dd7(0x201)][_0x491dd7(0x1b8)]['getInterceptPoints']()[_0x491dd7(0x358)])([_0x32b622],null)||[_0x32b622];this[_0x491dd7(0x290)](_0x5d0c03[0x0]);})),_0x315566;}};Dt=Wt([p(0x3,_0x27d762(_0x2a6c13)),p(0x4,_0x27d762(D)),p(0x5,_0x27d762(_0x1aacdc)),p(0x6,_0x27d762(_0x5d963b)),p(0x7,_0x27d762(_0x3a9a12)),p(0x8,_0x27d762(Qe)),p(0x9,_0x1dd153),p(0xa,_0xf80f3b),p(0xb,_0x17da32),p(0xc,_0xdc2a7e),p(0xd,_0x3a7ea6(nt))],Dt);var pr=Object['defineProperty'],vr=Object[_0x27ba00(0x280)],Ir=(_0x5a54c0,_0x1b7c17,_0x565472,_0x11b6a0)=>{const _0xfb9227=_0x27ba00;for(var _0x413dff=_0x11b6a0>0x1?void 0x0:_0x11b6a0?vr(_0x1b7c17,_0x565472):_0x1b7c17,_0x29bf72=_0x5a54c0[_0xfb9227(0x117)]-0x1,_0x256b24;_0x29bf72>=0x0;_0x29bf72--)(_0x256b24=_0x5a54c0[_0x29bf72])&&(_0x413dff=(_0x11b6a0?_0x256b24(_0x1b7c17,_0x565472,_0x413dff):_0x256b24(_0x413dff))||_0x413dff);return _0x11b6a0&&_0x413dff&&pr(_0x1b7c17,_0x565472,_0x413dff),_0x413dff;},dt=(_0x28b993,_0x4ae90d)=>(_0x535968,_0x354e10)=>_0x4ae90d(_0x535968,_0x354e10,_0x28b993);let Ae=class extends _0x504ec7{constructor(_0x275dbd,_0x39a85f,_0x35f2f2){const _0x22e816=_0x27ba00;super(),l(this,_0x22e816(0x259),new Map()),l(this,_0x22e816(0x297),new _0x1a4ff5()),(this[_0x22e816(0x2a6)]=_0x275dbd,this[_0x22e816(0x137)]=_0x39a85f,this['_univerInstanceService']=_0x35f2f2,this[_0x22e816(0x7b)]());}[_0x27ba00(0x323)](){const _0x7e0571=_0x27ba00;super[_0x7e0571(0x323)](),this[_0x7e0571(0x259)][_0x7e0571(0x392)](_0x88a05d=>_0x88a05d[_0x7e0571(0x323)]()),this[_0x7e0571(0x259)][_0x7e0571(0x17f)]();}['getCollabEntity'](_0xc893fd){const _0x31c0d5=_0x27ba00;var _0x253e10;return(_0x253e10=this[_0x31c0d5(0x259)][_0x31c0d5(0x1dd)](_0xc893fd))!=null?_0x253e10:null;}[_0x27ba00(0x26c)](_0x39b2ff){const _0x1274ae=_0x27ba00,_0x57ae14=this[_0x1274ae(0x1b5)](_0x39b2ff);return _0x57ae14?_0x215f7f(_0x57ae14):this[_0x1274ae(0x297)][_0x1274ae(0x31c)](_0x2e3311(_0x308b00=>_0x308b00[_0x1274ae(0x12c)]===_0x39b2ff));}[_0x27ba00(0x7b)](){const _0x624b65=_0x27ba00;this[_0x624b65(0xe3)][_0x624b65(0x1e6)](_0x28cb79[_0x624b65(0xdf)])[_0x624b65(0x31c)](_0x350758(this['dispose$']),_0x580b83(0x10))[_0x624b65(0x3c1)](async _0xd20f87=>{const _0x2ffe72=_0x624b65,_0x47f279=_0xd20f87[_0x2ffe72(0x242)](),_0x174648=await this['_startCollaboration'](_0x47f279,H[_0x2ffe72(0xdf)]);this[_0x2ffe72(0x259)]['set'](_0x47f279,_0x174648);}),this[_0x624b65(0xe3)]['getTypeOfUnitAdded$'](_0x28cb79['UNIVER_DOC'])[_0x624b65(0x31c)](_0x350758(this[_0x624b65(0x132)]),_0x580b83(0x10))[_0x624b65(0x31c)](_0x2e3311(_0xdd6daf=>!_0xdd6daf[_0x624b65(0x242)]()[_0x624b65(0x213)]('__')))[_0x624b65(0x3c1)](async _0x50cf33=>{const _0x18c3aa=_0x624b65,_0xe433ee=_0x50cf33[_0x18c3aa(0x242)](),_0x3d5728=await this[_0x18c3aa(0x71)](_0xe433ee,H[_0x18c3aa(0x2e3)]);this['_entities']['set'](_0xe433ee,_0x3d5728);}),_0x4c28c6(this[_0x624b65(0xe3)][_0x624b65(0x177)](_0x28cb79[_0x624b65(0xdf)]),this[_0x624b65(0xe3)][_0x624b65(0x177)](_0x28cb79['UNIVER_DOC']))[_0x624b65(0x31c)](_0x350758(this['dispose$']))['subscribe'](_0x498edf=>{const _0x33cedb=_0x624b65,_0x41acb2=_0x498edf[_0x33cedb(0x242)](),_0x46d251=this[_0x33cedb(0x259)]['get'](_0x41acb2);_0x46d251&&(_0x46d251[_0x33cedb(0x323)](),this[_0x33cedb(0x259)][_0x33cedb(0xe1)](_0x41acb2));});}async[_0x27ba00(0x71)](_0x10af43,_0x2a43cb){const _0xe37e59=_0x27ba00,_0x9a83fd=await this['_collabSessionService'][_0xe37e59(0x223)](_0x10af43),_0x28bef4=this[_0xe37e59(0x2a6)][_0xe37e59(0x85)](this['_getCtorByUniverType'](_0x2a43cb),_0x10af43,_0x2a43cb,_0x9a83fd);return await _0x28bef4[_0xe37e59(0x279)](),this[_0xe37e59(0x297)][_0xe37e59(0x8c)](_0x28bef4),_0x28bef4;}[_0x27ba00(0x366)](_0x2fda1e){const _0x277f2f=_0x27ba00;switch(_0x2fda1e){case H[_0x277f2f(0x2e3)]:return Ot;case H[_0x277f2f(0xdf)]:return Dt;default:throw new Error(_0x277f2f(0x1c4)+_0x2fda1e);}}};Ae=Ir([dt(0x0,_0x27d762(_0x2a6c13)),dt(0x1,_0x27d762(ce)),dt(0x2,_0x4a4945)],Ae);const us=[_0x27ba00(0xe0),_0x27ba00(0x315),_0x27ba00(0x78),_0x27ba00(0x194),'blue400',_0x27ba00(0x77)];class Gt extends _0x10a60d{constructor(){const _0x9e15b7=_0x27ba00;super(...arguments),l(this,_0x9e15b7(0x256),new Map()),l(this,_0x9e15b7(0x281),0x0);}[_0x27ba00(0xcd)](_0x461372){const _0x1cc1c4=_0x27ba00;if(this[_0x1cc1c4(0x256)][_0x1cc1c4(0x262)](_0x461372))return this[_0x1cc1c4(0x256)]['get'](_0x461372);const _0x3ab62d=us[this['_colorIndex']];return this[_0x1cc1c4(0x281)]=(this[_0x1cc1c4(0x281)]+0x1)%us[_0x1cc1c4(0x117)],this[_0x1cc1c4(0x256)][_0x1cc1c4(0x371)](_0x461372,_0x3ab62d),_0x3ab62d;}}var Er=Object['defineProperty'],Cr=Object[_0x27ba00(0x280)],br=(_0x34ab53,_0x388502,_0xe46b1b,_0x267aac)=>{for(var _0x18958d=_0x267aac>0x1?void 0x0:_0x267aac?Cr(_0x388502,_0xe46b1b):_0x388502,_0xcb01b7=_0x34ab53['length']-0x1,_0x2f0301;_0xcb01b7>=0x0;_0xcb01b7--)(_0x2f0301=_0x34ab53[_0xcb01b7])&&(_0x18958d=(_0x267aac?_0x2f0301(_0x388502,_0xe46b1b,_0x18958d):_0x2f0301(_0x18958d))||_0x18958d);return _0x267aac&&_0x18958d&&Er(_0x388502,_0xe46b1b,_0x18958d),_0x18958d;},fe=(_0x264ce6,_0x392478)=>(_0x5a004a,_0x2094e6)=>_0x392478(_0x5a004a,_0x2094e6,_0x264ce6);const Tr=0x12c,Rr=0x64,Or=()=>{let _0x52d89f=[],_0x45a1ca=!0x1;return _0x3f4661=>{const _0x593b24=_0x1a62;_0x52d89f[_0x593b24(0x2ec)](_0x3f4661),_0x45a1ca||(_0x45a1ca=!0x0,setTimeout(()=>{const _0x115ec9=_0x593b24;_0x52d89f[_0x115ec9(0x392)](_0xb136d=>_0xb136d()),_0x52d89f=[],_0x45a1ca=!0x1;}));};};let wt=class extends _0x504ec7{constructor(_0x9db3e6,_0x30f8a6,_0x40ee44,_0x16af02,_0x561244,_0x19e735,_0x3f6f69,_0x189411){const _0x11a4ce=_0x27ba00;super(),l(this,_0x11a4ce(0x86),!0x1),l(this,_0x11a4ce(0x7b),!0x1),l(this,_0x11a4ce(0x184),new _0x23c814(new Map())),l(this,_0x11a4ce(0x3bc),this[_0x11a4ce(0x184)][_0x11a4ce(0x14e)]()),l(this,_0x11a4ce(0x123),new _0x23c814([])),l(this,_0x11a4ce(0x3b7),this['_roomMembers$'][_0x11a4ce(0x31c)](_0x907c69(Tr))),l(this,_0x11a4ce(0x224),_0x224ffa((_0x7a07ce,_0x46a1f3)=>{const _0x25efa2=_0x11a4ce,_0x5a684c={'eventID':_0x6fa194[_0x25efa2(0x378)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x25efa2(0x3b1)](),'selection':_0x4dc523(_0x7a07ce,_0x46a1f3[_0x25efa2(0x3d8)])}};this[_0x25efa2(0x183)][_0x25efa2(0x128)](_0x5a684c,this['unitID']);},Rr)),(this[_0x11a4ce(0x12c)]=_0x9db3e6,this[_0x11a4ce(0x183)]=_0x30f8a6,this[_0x11a4ce(0x2a6)]=_0x40ee44,this['_colorAssignService']=_0x16af02,this[_0x11a4ce(0x26b)]=_0x561244,this[_0x11a4ce(0xe3)]=_0x19e735,this[_0x11a4ce(0x1b0)]=_0x3f6f69,this[_0x11a4ce(0x1f4)]=_0x189411);}get[_0x27ba00(0x38e)](){const _0xcf65b6=_0x27ba00;return this[_0xcf65b6(0x184)][_0xcf65b6(0x6f)]();}get[_0x27ba00(0x108)](){const _0x7bdbe5=_0x27ba00;return this[_0x7bdbe5(0x123)][_0x7bdbe5(0x6f)]();}['dispose'](){const _0x2bf969=_0x27ba00;super['dispose'](),this[_0x2bf969(0x184)][_0x2bf969(0x8c)](new Map()),this['_cursorInfo$'][_0x2bf969(0x373)](),this[_0x2bf969(0x123)][_0x2bf969(0x8c)]([]),this['_roomMembers$']['complete']();}[_0x27ba00(0x279)](){const _0x5197aa=_0x27ba00;this[_0x5197aa(0x7b)]||(this['_init']=!0x0,this[_0x5197aa(0x183)][_0x5197aa(0x10c)][_0x5197aa(0x31c)](_0x350758(this[_0x5197aa(0x132)]))[_0x5197aa(0x3c1)](_0xcaf145=>{const _0x46cbcc=_0x5197aa;_0xcaf145===G['ONLINE']?this[_0x46cbcc(0x1b2)]():this['_toggleOffline']();}),this[_0x5197aa(0x183)][_0x5197aa(0x359)][_0x5197aa(0x31c)](_0x350758(this['dispose$']))[_0x5197aa(0x3c1)](_0x3803ea=>{const _0x57cd84=_0x5197aa,_0x502ec3=_0x3803ea[_0x57cd84(0xc3)];_0x502ec3===_0x6fa194['UPDATE_CURSOR']&&this[_0x57cd84(0xa5)](_0x3803ea),_0x502ec3===_0x6fa194[_0x57cd84(0x386)]&&this['_onCursorDelete'](_0x3803ea);}),this[_0x5197aa(0x25c)](),this[_0x5197aa(0x169)](this['_commandService'][_0x5197aa(0x17d)](_0x21a5cf=>{const _0x2a8077=_0x5197aa;if(this[_0x2a8077(0x86)]&&_0x21a5cf['id']===_0x5b7f43['id']&&_0x21a5cf[_0x2a8077(0xb8)][_0x2a8077(0x21a)]===this[_0x2a8077(0x12c)]){const _0x53ca45=_0x21a5cf['params'];this[_0x2a8077(0x224)](_0x53ca45[_0x2a8077(0x145)],_0x53ca45[_0x2a8077(0xae)][0x0]);}})));}['_onCursorUpdate'](_0x33c9eb){const _0x5d9f39=_0x27ba00;var _0x1e5943,_0x6de4e8;const {memberID:_0x568a00,selection:_0x4e28c2}=_0x33c9eb[_0x5d9f39(0x216)],{sheetName:_0x21202c,range:_0x3c1465}=_0x40c2a5(_0x4e28c2),_0x2ba7e7={'name':(_0x6de4e8=(_0x1e5943=this[_0x5d9f39(0x26b)]['getMember'](this[_0x5d9f39(0x12c)],_0x568a00))==null?void 0x0:_0x1e5943['name'])!=null?_0x6de4e8:_0x5d9f39(0x2c4),'range':this['_getMergeRange'](_0x21202c,_0x3c1465),'sheetID':_0x21202c,'color':this[_0x5d9f39(0x3b5)][_0x5d9f39(0xcd)](_0x568a00),'selection':_0x4e28c2},_0x38cd08=this[_0x5d9f39(0x38e)];_0x38cd08['set'](_0x568a00,_0x2ba7e7),this['_cursorInfo$'][_0x5d9f39(0x8c)](_0x38cd08);}[_0x27ba00(0x200)](_0x3c775c){const _0x27f3e2=_0x27ba00,{memberID:_0x5f333d}=_0x3c775c['data'],_0xf3f1c8=this[_0x27f3e2(0x38e)];_0xf3f1c8[_0x27f3e2(0xe1)](_0x5f333d),this[_0x27f3e2(0x184)][_0x27f3e2(0x8c)](_0xf3f1c8);}[_0x27ba00(0x1a7)](_0x2e7833,_0x184875){const _0x3f16bb=_0x27ba00;var _0xc05086,_0xef96a8;const _0x2b41bc=(_0xef96a8=(_0xc05086=this[_0x3f16bb(0xe3)]['getUniverSheetInstance'](this[_0x3f16bb(0x12c)]))==null?void 0x0:_0xc05086[_0x3f16bb(0x342)](_0x2e7833))==null?void 0x0:_0xef96a8[_0x3f16bb(0x2b3)]();return(_0x2b41bc==null?void 0x0:_0x2b41bc[_0x3f16bb(0x208)](_0x5eec1f=>_0x3b9a06['contains'](_0x5eec1f,_0x184875)))||_0x184875;}[_0x27ba00(0x25c)](){const _0x57299f=_0x27ba00,_0x2c620b=new _0x23cc70(),_0x511f33=Or(),_0x45f534=()=>{const _0x3d7177=_0x1a62;_0x2c620b['dispose']();const _0x3d5575=(_0x496463,_0x23553e,_0x17f195,_0x15a9b1)=>{const _0x37cb89=_0x1a62;let _0x4ebb95=[];switch(_0x496463['id']){case _0x415f84[_0x37cb89(0x21e)]:{_0x4ebb95=_0x325c1a(_0x496463,_0x15a9b1);break;}case _0x415f84['DeleteRangeMoveUpCommandId']:{_0x4ebb95=_0x4e8d6c(_0x496463,_0x15a9b1);break;}case _0x415f84['InsertColCommandId']:{_0x4ebb95=_0x54694a(_0x496463,_0x15a9b1);break;}case _0x415f84[_0x37cb89(0x2e7)]:{_0x4ebb95=_0x3f46b0(_0x496463,_0x15a9b1);break;}case _0x415f84['InsertRangeMoveRightCommandId']:{_0x4ebb95=_0x5c4fbb(_0x496463,_0x15a9b1);break;}case _0x415f84[_0x37cb89(0x129)]:{_0x4ebb95=_0x519be2(_0x496463,_0x15a9b1);break;}case _0x415f84['MoveRangeCommandId']:{_0x4ebb95=_0x1ec3fa(_0x496463,_0x15a9b1);break;}case _0x415f84['RemoveColCommandId']:{_0x4ebb95=_0x4684c4(_0x496463,_0x15a9b1);break;}case _0x415f84[_0x37cb89(0x1cc)]:{_0x4ebb95=_0x120052(_0x496463,_0x15a9b1);break;}}const _0x55fa75=_0x4c70ed(_0x4ebb95,_0x15a9b1),_0x8f9a95=this[_0x37cb89(0x38e)]['get'](_0x23553e);if(_0x8f9a95&&_0x55fa75){const _0xb46a05={..._0x8f9a95,'range':_0x55fa75};this[_0x37cb89(0x38e)][_0x37cb89(0x371)](_0x23553e,_0xb46a05),_0x511f33(()=>{const _0x27faec=_0x37cb89,_0x234cb1=this[_0x27faec(0x1f4)][_0x27faec(0x387)](_0x55fa75,_0x1f1bb9=>(_0x234cb1[_0x27faec(0x323)](),_0x3d5575(_0x1f1bb9,_0x23553e,_0x17f195,_0x55fa75)));_0x2c620b[_0x27faec(0x30d)](_0x234cb1);});}return{'redos':[],'undos':[]};};this[_0x3d7177(0x38e)][_0x3d7177(0x392)]((_0x519c67,_0x53c397)=>{const _0x22ab1d=_0x3d7177,{range:_0x53fcd3,sheetID:_0xbeeb70}=_0x519c67,_0x34314e=this[_0x22ab1d(0x1f4)][_0x22ab1d(0x387)](_0x53fcd3,_0xf51453=>(_0x34314e[_0x22ab1d(0x323)](),_0x3d5575(_0xf51453,_0x53c397,_0xbeeb70,_0x53fcd3)));_0x2c620b['add'](_0x34314e);});};this[_0x57299f(0x169)](_0x10763a(this[_0x57299f(0x184)][_0x57299f(0x3c1)](()=>{_0x45f534();})));}[_0x27ba00(0x1b2)](){const _0xc99746=_0x27ba00;var _0x1959e3,_0xda3341;if(this[_0xc99746(0x86)]=!0x0,((_0x1959e3=this[_0xc99746(0xe3)][_0xc99746(0x2a3)]())==null?void 0x0:_0x1959e3[_0xc99746(0x242)]())!==this['unitID'])return;const _0x2756af=(_0xda3341=this[_0xc99746(0x2a6)][_0xc99746(0x1dd)](_0x3145be)[_0xc99746(0x362)]())==null?void 0x0:_0xda3341[0x0],_0x5a97d0=this[_0xc99746(0xe3)]['getCurrentUnitForType'](_0x28cb79[_0xc99746(0xdf)])['getActiveSheet']();_0x2756af&&_0x5a97d0&&this[_0xc99746(0x224)](_0x5a97d0[_0xc99746(0x247)](),_0x2756af);}[_0x27ba00(0x103)](){const _0x3363ad=_0x27ba00;this[_0x3363ad(0x86)]=!0x1;}};wt=br([fe(0x2,_0x27d762(_0x2a6c13)),fe(0x3,_0x27d762(Gt)),fe(0x4,_0x27d762(ae)),fe(0x5,_0x4a4945),fe(0x6,_0xf80f3b),fe(0x7,_0x27d762(_0x3cb22f))],wt);var Dr=Object['defineProperty'],wr=Object['getOwnPropertyDescriptor'],Pr=(_0x487424,_0x13e661,_0x15a549,_0x149454)=>{for(var _0xf80f69=_0x149454>0x1?void 0x0:_0x149454?wr(_0x13e661,_0x15a549):_0x13e661,_0x47a51b=_0x487424['length']-0x1,_0x41ada7;_0x47a51b>=0x0;_0x47a51b--)(_0x41ada7=_0x487424[_0x47a51b])&&(_0xf80f69=(_0x149454?_0x41ada7(_0x13e661,_0x15a549,_0xf80f69):_0x41ada7(_0xf80f69))||_0xf80f69);return _0x149454&&_0xf80f69&&Dr(_0x13e661,_0x15a549,_0xf80f69),_0xf80f69;},ie=(_0x114afa,_0x400938)=>(_0x4af8e6,_0x5e7c34)=>_0x400938(_0x4af8e6,_0x5e7c34,_0x114afa);const yr=0x12c,Nr=0x64;let Pt=class extends _0x504ec7{constructor(_0x5ea5cb,_0x3c16ff,_0x245cd2,_0xc0afed,_0x4b1e44,_0x2ec4d2,_0x5e0b95,_0x421579,_0x399aeb){const _0xd1bb87=_0x27ba00;super(),l(this,_0xd1bb87(0x86),!0x1),l(this,_0xd1bb87(0x7b),!0x1),l(this,'_cursorInfo$',new _0x23c814(new Map())),l(this,'cursorInfo$',this[_0xd1bb87(0x184)][_0xd1bb87(0x14e)]()),l(this,_0xd1bb87(0x123),new _0x23c814([])),l(this,_0xd1bb87(0x3b7),this[_0xd1bb87(0x123)]['pipe'](_0x907c69(yr))),l(this,_0xd1bb87(0x224),_0x224ffa(_0x1f0934=>{const _0x50deb5=_0xd1bb87,_0x5f00e0={'eventID':_0x6fa194[_0x50deb5(0x378)],'data':{'unitID':this[_0x50deb5(0x12c)],'memberID':this[_0x50deb5(0x183)][_0x50deb5(0x3b1)](),'selection':Hs(_0x1f0934)}};this[_0x50deb5(0x183)]['send'](_0x5f00e0,this['unitID']);},Nr)),(this[_0xd1bb87(0x12c)]=_0x5ea5cb,this[_0xd1bb87(0x183)]=_0x3c16ff,this['_injector']=_0x245cd2,this[_0xd1bb87(0x3b5)]=_0xc0afed,this[_0xd1bb87(0x26b)]=_0x4b1e44,this[_0xd1bb87(0x187)]=_0x2ec4d2,this[_0xd1bb87(0x32a)]=_0x5e0b95,this[_0xd1bb87(0xe3)]=_0x421579,this[_0xd1bb87(0x1b0)]=_0x399aeb);}get[_0x27ba00(0x38e)](){const _0x400093=_0x27ba00;return this['_cursorInfo$'][_0x400093(0x6f)]();}get['roomMembers'](){const _0x560467=_0x27ba00;return this[_0x560467(0x123)]['getValue']();}[_0x27ba00(0x323)](){const _0x33d21a=_0x27ba00;super[_0x33d21a(0x323)](),this['_cursorInfo$'][_0x33d21a(0x8c)](new Map()),this[_0x33d21a(0x184)][_0x33d21a(0x373)](),this['_roomMembers$'][_0x33d21a(0x8c)]([]),this[_0x33d21a(0x123)][_0x33d21a(0x373)]();}[_0x27ba00(0x279)](){const _0x262065=_0x27ba00;this[_0x262065(0x7b)]||(this[_0x262065(0x7b)]=!0x0,this[_0x262065(0x183)][_0x262065(0x10c)][_0x262065(0x31c)](_0x350758(this[_0x262065(0x132)]))[_0x262065(0x3c1)](_0x4782a2=>{const _0x184799=_0x262065;_0x4782a2===G['ONLINE']?this[_0x184799(0x1b2)]():this[_0x184799(0x103)]();}),this['_session'][_0x262065(0x359)]['pipe'](_0x350758(this[_0x262065(0x132)]))['subscribe'](_0x3d822c=>{const _0x9a595b=_0x262065,_0x2ff3c3=_0x3d822c[_0x9a595b(0xc3)];_0x2ff3c3===_0x6fa194['UPDATE_CURSOR']&&this[_0x9a595b(0xa5)](_0x3d822c),_0x2ff3c3===_0x6fa194[_0x9a595b(0x386)]&&this[_0x9a595b(0x200)](_0x3d822c);}),this['disposeWithMe'](this['_commandService'][_0x262065(0x17d)](_0x94b001=>{const _0x1ac480=_0x262065,_0x36ed0a=_0x94b001[_0x1ac480(0xb8)];_0x36ed0a!=null&&this['_online']&&_0x94b001['id']===_0x5dfba4['id']&&_0x36ed0a[_0x1ac480(0x21a)]===this[_0x1ac480(0x12c)]&&_0x36ed0a['isEditing']===!0x1&&this[_0x1ac480(0x224)](_0x36ed0a[_0x1ac480(0xb0)]);})),this['_syncEditingCollabCursorService'][_0x262065(0x162)][_0x262065(0x31c)](_0x350758(this[_0x262065(0x132)]))['subscribe'](_0x27d152=>{const _0x33566b=_0x262065;if((_0x27d152==null?void 0x0:_0x27d152[_0x33566b(0x12c)])!==this[_0x33566b(0x12c)])return;const _0x238111={'eventID':_0x6fa194[_0x33566b(0x378)],'data':_0x27d152};this[_0x33566b(0xa5)](_0x238111);}),this[_0x262065(0x169)](this[_0x262065(0x1b0)][_0x262065(0x17d)](_0x479463=>{const _0x4a3674=_0x262065;if(_0x479463[_0x4a3674(0xb8)]==null)return;const _0x2d21ef=_0x479463[_0x4a3674(0xb8)];if(_0x479463['id']!==_0x4ee1d3['id']||_0x2d21ef[_0x4a3674(0x21a)]!==this['unitID'])return;const _0x2c1336={'id':_0x4a3674(0x8a),'params':_0x2d21ef},_0x2e8895=this[_0x4a3674(0x38e)];for(const [_0x32c5b5,_0x2198e5]of _0x2e8895){const _0x3c4ade={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2198e5[_0x4a3674(0xb0)]}},_0x56ac7b=this[_0x4a3674(0x32a)][_0x4a3674(0x1e4)](_0x2c1336,_0x3c4ade,!0x1);if(_0x25fecd(_0x56ac7b))throw _0x56ac7b[_0x4a3674(0x1e5)];_0x2e8895[_0x4a3674(0x371)](_0x32c5b5,{..._0x2198e5,'ranges':_0x56ac7b['m2Prime'][_0x4a3674(0xb8)]['textRanges']});}queueMicrotask(()=>{const _0xc38cac=_0x4a3674;this[_0xc38cac(0x184)]['next'](_0x2e8895);});})));}['_onCursorUpdate'](_0x56a4c6){const _0x901335=_0x27ba00;var _0x9b4514,_0x40bdc4;const {memberID:_0x1458f5,selection:_0x13100b}=_0x56a4c6['data'],_0x3cd998=ar(_0x13100b),_0x1318e6=(_0x40bdc4=(_0x9b4514=this[_0x901335(0x26b)][_0x901335(0x9c)](this[_0x901335(0x12c)],_0x1458f5))==null?void 0x0:_0x9b4514[_0x901335(0x2dd)])!=null?_0x40bdc4:_0x901335(0x2c4),_0x15c487={'color':this[_0x901335(0x3b5)][_0x901335(0xcd)](_0x1458f5),'name':_0x1318e6,'ranges':_0x3cd998},_0x172270=this[_0x901335(0x38e)];_0x172270[_0x901335(0x371)](_0x1458f5,_0x15c487),this['_cursorInfo$'][_0x901335(0x8c)](_0x172270);}[_0x27ba00(0x200)](_0xf43d05){const _0x59dec1=_0x27ba00,{memberID:_0x5d73f7}=_0xf43d05[_0x59dec1(0x216)],_0x2b0423=this['cursorInfo'];_0x2b0423[_0x59dec1(0xe1)](_0x5d73f7),this[_0x59dec1(0x184)][_0x59dec1(0x8c)](_0x2b0423);}[_0x27ba00(0x1b2)](){const _0x5b2519=_0x27ba00;var _0x313a80;if(this[_0x5b2519(0x86)]=!0x0,((_0x313a80=this['_univerInstanceService'][_0x5b2519(0x2a3)]())==null?void 0x0:_0x313a80[_0x5b2519(0x242)]())!==this[_0x5b2519(0x12c)])return;const _0x4e45bb=this[_0x5b2519(0x2a6)][_0x5b2519(0x1dd)](_0x4f65a4)['getDocRanges']();Array['isArray'](_0x4e45bb)&&_0x4e45bb[_0x5b2519(0x117)]>0x0&&this[_0x5b2519(0x224)](_0x4e45bb);}[_0x27ba00(0x103)](){const _0x501a8c=_0x27ba00;this[_0x501a8c(0x86)]=!0x1;}};Pt=Pr([ie(0x2,_0x27d762(_0x2a6c13)),ie(0x3,_0x27d762(Gt)),ie(0x4,_0x27d762(ae)),ie(0x5,_0x27d762(Ft)),ie(0x6,_0x29f88d),ie(0x7,_0x4a4945),ie(0x8,_0xf80f3b)],Pt);var Ur=Object[_0x27ba00(0x198)],Mr=Object[_0x27ba00(0x280)],Ar=(_0x4c5384,_0x5bd1be,_0x5704f3,_0x1c6254)=>{const _0x2a1a3f=_0x27ba00;for(var _0x2a7901=_0x1c6254>0x1?void 0x0:_0x1c6254?Mr(_0x5bd1be,_0x5704f3):_0x5bd1be,_0x2a73ec=_0x4c5384[_0x2a1a3f(0x117)]-0x1,_0x17f497;_0x2a73ec>=0x0;_0x2a73ec--)(_0x17f497=_0x4c5384[_0x2a73ec])&&(_0x2a7901=(_0x1c6254?_0x17f497(_0x5bd1be,_0x5704f3,_0x2a7901):_0x17f497(_0x2a7901))||_0x2a7901);return _0x1c6254&&_0x2a7901&&Ur(_0x5bd1be,_0x5704f3,_0x2a7901),_0x2a7901;},ft=(_0xcfd8f5,_0x2a80c6)=>(_0x502bed,_0x664f27)=>_0x2a80c6(_0x502bed,_0x664f27,_0xcfd8f5);let ge=class extends _0x504ec7{constructor(_0x17bace,_0x2085db,_0x3a71ce){const _0x494a1e=_0x27ba00;super(),l(this,'_entities',new Map()),l(this,_0x494a1e(0x297),new _0x1a4ff5()),(this[_0x494a1e(0xe3)]=_0x17bace,this[_0x494a1e(0x2a6)]=_0x2085db,this[_0x494a1e(0x137)]=_0x3a71ce,this[_0x494a1e(0x7b)]());}['dispose'](){const _0x5e3f00=_0x27ba00;super[_0x5e3f00(0x323)](),this[_0x5e3f00(0x297)][_0x5e3f00(0x373)](),this[_0x5e3f00(0x259)]['forEach'](_0x59c68c=>_0x59c68c[_0x5e3f00(0x323)]());}[_0x27ba00(0xfb)](_0x3c7246){const _0x5e1173=_0x27ba00;return this[_0x5e1173(0x259)][_0x5e1173(0x262)](_0x3c7246)?this[_0x5e1173(0x259)][_0x5e1173(0x1dd)](_0x3c7246)[_0x5e1173(0x3bc)]:this[_0x5e1173(0x297)][_0x5e1173(0x31c)](_0x3a4a54(_0x5f207d=>_0x5f207d[_0x5e1173(0x12c)]===_0x3c7246),_0xdc9d7a(_0x280101=>_0x280101[_0x5e1173(0x3bc)]));}[_0x27ba00(0x7b)](){const _0xbdd24f=_0x27ba00;this[_0xbdd24f(0xe3)][_0xbdd24f(0x1e6)](_0x28cb79[_0xbdd24f(0xdf)])[_0xbdd24f(0x31c)](_0x350758(this[_0xbdd24f(0x132)]))['subscribe'](async _0x3374a5=>{const _0x6f4b28=_0xbdd24f,_0x1391ac=_0x3374a5[_0x6f4b28(0x242)](),_0x495668=await this[_0x6f4b28(0x25d)](_0x1391ac);this[_0x6f4b28(0x297)][_0x6f4b28(0x8c)](_0x495668),this[_0x6f4b28(0x259)][_0x6f4b28(0x371)](_0x1391ac,_0x495668);}),this[_0xbdd24f(0xe3)]['getTypeOfUnitAdded$'](_0x28cb79[_0xbdd24f(0x2e3)])[_0xbdd24f(0x31c)](_0x350758(this['dispose$']))[_0xbdd24f(0x31c)](_0x3a4a54(_0x3200c2=>!_0x3200c2[_0xbdd24f(0x242)]()['startsWith']('__')))[_0xbdd24f(0x3c1)](async _0x864f54=>{const _0x40335d=_0xbdd24f,_0xf04da3=_0x864f54[_0x40335d(0x242)](),_0x14d16a=await this['_startDocCollabCursor'](_0xf04da3);this[_0x40335d(0x297)][_0x40335d(0x8c)](_0x14d16a),this['_entities']['set'](_0xf04da3,_0x14d16a);}),_0x4c28c6(this[_0xbdd24f(0xe3)][_0xbdd24f(0x177)](_0x28cb79[_0xbdd24f(0x2e3)]),this[_0xbdd24f(0xe3)]['getTypeOfUnitDisposed$'](_0x28cb79[_0xbdd24f(0xdf)]))[_0xbdd24f(0x31c)](_0x350758(this[_0xbdd24f(0x132)]))[_0xbdd24f(0x3c1)](_0x3b1fd5=>{const _0x55759e=_0xbdd24f,_0x4a0bcc=_0x3b1fd5[_0x55759e(0x242)](),_0x4d933c=this[_0x55759e(0x259)][_0x55759e(0x1dd)](_0x4a0bcc);_0x4d933c&&(_0x4d933c[_0x55759e(0x323)](),this[_0x55759e(0x259)][_0x55759e(0xe1)](_0x4a0bcc));});}async['_startSheetCollabCursor'](_0x300ead){const _0x5912d9=_0x27ba00,_0x32ab80=await this[_0x5912d9(0x137)][_0x5912d9(0x223)](_0x300ead),_0x5cb0fc=this[_0x5912d9(0x2a6)][_0x5912d9(0x85)](wt,_0x300ead,_0x32ab80);return _0x5cb0fc[_0x5912d9(0x279)](),_0x5cb0fc;}async[_0x27ba00(0x2d6)](_0x26c781){const _0x58a434=_0x27ba00,_0x409f27=await this[_0x58a434(0x137)][_0x58a434(0x223)](_0x26c781),_0x4de6bb=this[_0x58a434(0x2a6)][_0x58a434(0x85)](Pt,_0x26c781,_0x409f27);return _0x4de6bb[_0x58a434(0x279)](),_0x4de6bb;}};ge=Ar([_0x43e6ff(_0x2baed3['Starting'],ge),ft(0x0,_0x4a4945),ft(0x1,_0x27d762(_0x2a6c13)),ft(0x2,_0x27d762(ce))],ge);const Le=0x14,ds=0xc8,mt=0x4,Lr=0x5;function $r(_0x11c9a5,_0x224d9b){const _0x4b7d9b=_0x27ba00;let {radius:_0x274428,width:_0x385f3f,height:_0x4333b0}=_0x224d9b;_0x274428=_0x274428!=null?_0x274428:0x0,_0x385f3f=_0x385f3f!=null?_0x385f3f:0x1e,_0x4333b0=_0x4333b0!=null?_0x4333b0:0x1e;let _0x39b9dd=0x0,_0x3e16cf=0x0,_0x5d0653=0x0;_0x39b9dd=_0x3e16cf=_0x5d0653=Math[_0x4b7d9b(0x1d5)](_0x274428,_0x385f3f/0x2,_0x4333b0/0x2),_0x11c9a5[_0x4b7d9b(0x318)](),_0x11c9a5[_0x4b7d9b(0x1fd)](_0x39b9dd,0x0),_0x11c9a5[_0x4b7d9b(0x38b)](_0x385f3f-_0x3e16cf,0x0),_0x11c9a5['arc'](_0x385f3f-_0x3e16cf,_0x3e16cf,_0x3e16cf,Math['PI']*0x3/0x2,0x0,!0x1),_0x11c9a5['lineTo'](_0x385f3f,_0x4333b0-_0x5d0653),_0x11c9a5[_0x4b7d9b(0x2fc)](_0x385f3f-_0x5d0653,_0x4333b0-_0x5d0653,_0x5d0653,0x0,Math['PI']/0x2,!0x1),_0x11c9a5[_0x4b7d9b(0x38b)](0x0,_0x4333b0),_0x11c9a5['lineTo'](0x0,_0x39b9dd),_0x11c9a5[_0x4b7d9b(0x2fc)](_0x39b9dd,_0x39b9dd,_0x39b9dd,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x11c9a5[_0x4b7d9b(0x181)](),_0x224d9b['fill']&&(_0x11c9a5['save'](),_0x11c9a5['fillStyle']=_0x224d9b[_0x4b7d9b(0x196)],_0x224d9b[_0x4b7d9b(0x2b6)]==='evenodd'?_0x11c9a5['fill'](_0x4b7d9b(0x328)):_0x11c9a5['fill'](),_0x11c9a5[_0x4b7d9b(0x396)]());}class rt extends _0x916b9e{constructor(_0x318fed,_0x2d6bac){const _0x39a12e=_0x27ba00;super(_0x318fed,_0x2d6bac),l(this,_0x39a12e(0x355)),l(this,'text'),(this[_0x39a12e(0x355)]=_0x2d6bac==null?void 0x0:_0x2d6bac[_0x39a12e(0x355)],this[_0x39a12e(0x23d)]=_0x2d6bac==null?void 0x0:_0x2d6bac['text']);}static[_0x27ba00(0x22f)](_0x437efa,_0x35a75b){const _0x5c8597=_0x27ba00,{text:_0x7e1184,color:_0x34ce90}=_0x35a75b;_0x437efa[_0x5c8597(0x113)](),_0x437efa[_0x5c8597(0xcf)]=_0x5c8597(0x303);const _0x161939=_0x437efa[_0x5c8597(0x159)](_0x7e1184)['width'],_0x1dc864=Math[_0x5c8597(0x1d5)](_0x161939+0x2*mt,ds);$r(_0x437efa,{'height':Le,'radius':0x4,'width':_0x1dc864,'fill':_0x34ce90,'evented':!0x1}),_0x437efa[_0x5c8597(0x291)]='#FFF';const _0x2ab9fc=mt,_0x5a62d7=Le-Lr,_0x58d728=ds-0x2*mt;if(_0x161939>_0x58d728){let _0x2dc880='',_0x96228b=0x0;for(const _0x5ebc59 of _0x7e1184){const _0x13910a=_0x437efa[_0x5c8597(0x159)](_0x5ebc59)[_0x5c8597(0x182)];if(_0x96228b+_0x13910a<=_0x58d728-_0x437efa[_0x5c8597(0x159)](_0x5c8597(0xa7))[_0x5c8597(0x182)])_0x2dc880+=_0x5ebc59,_0x96228b+=_0x13910a;else{_0x2dc880+='...';break;}}_0x437efa[_0x5c8597(0x2b4)](_0x2dc880,_0x2ab9fc,_0x5a62d7);}else _0x437efa[_0x5c8597(0x2b4)](_0x7e1184,_0x2ab9fc,_0x5a62d7);_0x437efa['restore']();}[_0x27ba00(0x1f8)](_0x65bf7f){const _0x56180a=_0x27ba00;rt[_0x56180a(0x22f)](_0x65bf7f,this);}}const gt=_0x27ba00(0x206),jr=_0x27ba00(0x372),xr=_0x27ba00(0x125),De=0x6,Hr=1.5,St=0x4,kr=1.5,Br=_0x27ba00(0x380);class fs{constructor(_0x58cc67,_0x11ffc3,_0xfe0f93,_0x41186a){const _0xdcc944=_0x27ba00;l(this,_0xdcc944(0x226),[]),l(this,_0xdcc944(0x24d),null),l(this,'_textBubble',null),l(this,_0xdcc944(0x202),null),l(this,'_hideTimer',null),l(this,_0xdcc944(0x98),null),(this[_0xdcc944(0x1ce)]=_0x58cc67,this['_scene']=_0x11ffc3,this[_0xdcc944(0x189)]=_0xfe0f93,this['_document']=_0x41186a,this[_0xdcc944(0x25a)]());}set[_0x27ba00(0x3c3)](_0x1d8c84){const _0x4bc492=_0x27ba00;_0x1d8c84?(this['_anchorDot']&&this['_anchorDot'][_0x4bc492(0x3b2)](),this[_0x4bc492(0x19d)]&&this[_0x4bc492(0x19d)][_0x4bc492(0x346)]()):(this[_0x4bc492(0x202)]&&this[_0x4bc492(0x202)][_0x4bc492(0x346)](),this[_0x4bc492(0x19d)]&&this[_0x4bc492(0x19d)][_0x4bc492(0x3b2)]());}[_0x27ba00(0x323)](){const _0xb500d1=_0x27ba00;for(const _0x7efd86 of this['_shapes'])_0x7efd86['dispose']();this[_0xb500d1(0x19d)]&&this[_0xb500d1(0x19d)][_0xb500d1(0x323)](),this[_0xb500d1(0x202)]&&this[_0xb500d1(0x202)][_0xb500d1(0x323)](),this[_0xb500d1(0x24d)]&&this[_0xb500d1(0x24d)][_0xb500d1(0x323)](),this[_0xb500d1(0x98)]&&this[_0xb500d1(0x98)]();}['_render'](){const _0xb4751c=_0x27ba00;var _0x160aad;const {_docSkeleton:_0x59734d,_document:_0x52e384}=this,{color:_0x54dc8d,name:_0x1d0a32,ranges:_0x5d3b2a}=this[_0xb4751c(0x1ce)],_0x4bb0f2=_0x52e384[_0xb4751c(0xfe)](),{docsLeft:_0x19cb74,docsTop:_0x4f7cfb}=_0x4bb0f2,_0x26b5b4=new _0x368f8a(_0x4bb0f2,_0x59734d);for(const {startOffset:_0x39f572,endOffset:_0x299ce3,collapsed:_0x110c11,isActive:_0x459675}of _0x5d3b2a){const _0x348c66=_0x59734d['findNodePositionByCharIndex'](_0x39f572),_0x4a1998=_0x59734d[_0xb4751c(0x267)](_0x299ce3);if(_0x459675){const {contentBoxPointGroup:_0x37b285}=_0x26b5b4[_0xb4751c(0x270)](_0x4a1998,_0x4a1998);if(_0x37b285[_0xb4751c(0x117)]===0x0)continue;this[_0xb4751c(0x112)](_0x54dc8d,_0x37b285,_0x19cb74,_0x4f7cfb,_0x1d0a32),this['_eventUnsubscribe']=this[_0xb4751c(0x92)]();}if(!_0x110c11&&_0x348c66&&_0x4a1998){if(_0x4de1d0(_0x348c66,_0x4a1998)){const _0x344076=new _0x511433(_0x4bb0f2,_0x59734d),{pointGroup:_0x413866}=(_0x160aad=_0x344076['getRangePointData'](_0x348c66,_0x4a1998))!=null?_0x160aad:{};if(_0x413866==null||_0x413866[_0xb4751c(0x117)]===0x0)continue;this[_0xb4751c(0x1a2)](_0x54dc8d,_0x413866,_0x19cb74,_0x4f7cfb);}else{const {contentBoxPointGroup:_0x3236d6}=_0x26b5b4[_0xb4751c(0x270)](_0x348c66,_0x4a1998);if(_0x3236d6['length']===0x0)continue;this[_0xb4751c(0x3d5)](_0x54dc8d,_0x3236d6,_0x19cb74,_0x4f7cfb);}}}}[_0x27ba00(0x112)](_0xa114e5,_0x465fbd,_0x413423,_0x45ce0f,_0xb12a92){const _0x43020a=_0x27ba00,_0x3dafb9=this['_getAnchorBounding'](_0x465fbd),{left:_0x47e49b,top:_0x117686,height:_0x226ad7}=_0x3dafb9,_0x299d4a=this[_0x43020a(0x18a)](),_0x4f4c4b=kr/_0x299d4a,_0x1e1c6c=new _0x3dd5a3(gt+_0x38eaa3[_0x43020a(0x31a)](De),{'left':_0x47e49b+_0x413423-_0x4f4c4b,'top':_0x117686+_0x45ce0f,'height':_0x226ad7,'width':Hr,'fill':_0xa114e5||_0x54377d(_0x460073['black'],0x0),'strokeWidth':_0x4f4c4b,'stroke':Br,'evented':!0x0});this[_0x43020a(0x24d)]=_0x1e1c6c,this['_scene'][_0x43020a(0x3b6)](_0x1e1c6c,_0x5e95a3);const _0x47362d=new _0x3dd5a3(gt+_0x38eaa3['generateRandomId'](De),{'left':_0x47e49b+_0x413423-_0x4f4c4b,'top':_0x117686+_0x45ce0f-St/0x2,'height':St,'width':St,'fill':_0xa114e5||_0x54377d(_0x460073['black'],0x0),'strokeWidth':0x0,'stroke':_0xa114e5||_0x54377d(_0x460073[_0x43020a(0x212)],0x0),'evented':!0x1});this['_anchorDot']=_0x47362d,this[_0x43020a(0x327)][_0x43020a(0x3b6)](_0x47362d,_0x5e95a3);const _0x3b7012=new rt(gt+_0x38eaa3['generateRandomId'](De),{'left':_0x47e49b+_0x413423-_0x4f4c4b,'top':_0x117686+_0x45ce0f-Le,'text':_0xb12a92,'color':_0xa114e5});this[_0x43020a(0x19d)]=_0x3b7012,this['_scene'][_0x43020a(0x3b6)](_0x3b7012,_0x5e95a3),this[_0x43020a(0x3c3)]=!0x1;}[_0x27ba00(0x92)](){const _0x5d4fc4=_0x27ba00,_0x3efea3=this[_0x5d4fc4(0x24d)][_0x5d4fc4(0x180)][_0x5d4fc4(0x245)](()=>{const _0x4d404e=_0x5d4fc4;this[_0x4d404e(0x3c3)]=!0x0;}),_0x91979f=this[_0x5d4fc4(0x24d)][_0x5d4fc4(0x72)]['subscribeEvent'](()=>{const _0xd6696d=_0x5d4fc4;this[_0xd6696d(0x2a4)]&&clearTimeout(this['_hideTimer']),this[_0xd6696d(0x2a4)]=setTimeout(()=>{const _0x2e2b61=_0xd6696d;this[_0x2e2b61(0x3c3)]=!0x1;},0x7d0);});return()=>{const _0x3f18c5=_0x5d4fc4;_0x3efea3[_0x3f18c5(0x12f)](),_0x91979f[_0x3f18c5(0x12f)]();};}[_0x27ba00(0x3d5)](_0x547bb2,_0x5510ee,_0x1c0f97,_0x5a3b74){const _0x27b901=_0x27ba00,_0x341e1a=new _0x870dc0(_0x547bb2)[_0x27b901(0x24a)](0.2)[_0x27b901(0x3a4)](),_0x307122=new _0x3f4a1e(jr+_0x38eaa3['generateRandomId'](De),{'pointsGroup':_0x5510ee,'fill':_0x341e1a||_0x54377d(_0x460073[_0x27b901(0x212)],0.2),'left':_0x1c0f97,'top':_0x5a3b74,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x27b901(0x226)][_0x27b901(0x2ec)](_0x307122),this[_0x27b901(0x327)][_0x27b901(0x3b6)](_0x307122,_0x5e95a3);}['_drawRectRange'](_0x103310,_0xccc3b5,_0x653c71,_0x1e5e02){const _0xf8ccb0=_0x27ba00,_0x42118f=new _0x870dc0(_0x103310)['setAlpha'](0.2)[_0xf8ccb0(0x3a4)](),_0x45a6f6=new _0x3f4a1e(xr+_0x38eaa3['generateRandomId'](De),{'pointsGroup':_0xccc3b5,'fill':_0x42118f||_0x54377d(_0x460073[_0xf8ccb0(0x212)],0.2),'left':_0x653c71,'top':_0x1e5e02,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xf8ccb0(0x226)][_0xf8ccb0(0x2ec)](_0x45a6f6),this[_0xf8ccb0(0x327)][_0xf8ccb0(0x3b6)](_0x45a6f6,_0x5e95a3);}[_0x27ba00(0x2c8)](_0x15f745){const _0x54d6da=_0x15f745[0x0],_0x41f55b=_0x54d6da[0x0],_0x27ec47=_0x54d6da[0x2],{x:_0x3447a3,y:_0x520338}=_0x41f55b,{x:_0xd1a1fb,y:_0x4edd92}=_0x27ec47;return{'left':_0x3447a3,'top':_0x520338,'width':_0xd1a1fb-_0x3447a3,'height':_0x4edd92-_0x520338};}['_getScale'](){const _0x4b52e3=_0x27ba00,{scaleX:_0x5144a2,scaleY:_0x1df60b}=this[_0x4b52e3(0x327)]['getAncestorScale']();return Math[_0x4b52e3(0x1d1)](_0x5144a2,_0x1df60b);}}var Vr=Object['defineProperty'],Fr=Object[_0x27ba00(0x280)],Wr=(_0x1164c7,_0x232ada,_0x23d024,_0x4d3ff7)=>{const _0x5783f6=_0x27ba00;for(var _0x1aab4c=_0x4d3ff7>0x1?void 0x0:_0x4d3ff7?Fr(_0x232ada,_0x23d024):_0x232ada,_0x4a8329=_0x1164c7[_0x5783f6(0x117)]-0x1,_0x3f4273;_0x4a8329>=0x0;_0x4a8329--)(_0x3f4273=_0x1164c7[_0x4a8329])&&(_0x1aab4c=(_0x4d3ff7?_0x3f4273(_0x232ada,_0x23d024,_0x1aab4c):_0x3f4273(_0x1aab4c))||_0x1aab4c);return _0x4d3ff7&&_0x1aab4c&&Vr(_0x232ada,_0x23d024,_0x1aab4c),_0x1aab4c;},ke=(_0x19b8c5,_0x4c9909)=>(_0x1461c7,_0x4045b1)=>_0x4c9909(_0x1461c7,_0x4045b1,_0x19b8c5);let We=class extends _0x504ec7{constructor(_0x51f7c8,_0x21d9df,_0x1b9663,_0x50bf73,_0x53bd8e){const _0x12b37f=_0x27ba00;super(),l(this,_0x12b37f(0x10f),[]),l(this,_0x12b37f(0x7c),[]),(this[_0x12b37f(0x138)]=_0x51f7c8,this[_0x12b37f(0x2a7)]=_0x21d9df,this[_0x12b37f(0xef)]=_0x1b9663,this[_0x12b37f(0x1b0)]=_0x50bf73,this[_0x12b37f(0x111)]=_0x53bd8e,this[_0x12b37f(0x7b)]());}[_0x27ba00(0x7b)](){const _0x53afe9=_0x27ba00,_0x1b6ca3=this[_0x53afe9(0x138)][_0x53afe9(0x21a)],_0x2b5dcc=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x1d8b8d([this[_0x53afe9(0xef)][_0x53afe9(0xfb)](_0x1b6ca3),this[_0x53afe9(0x111)][_0x53afe9(0x2fa)]])[_0x53afe9(0x31c)](_0x42ddbb(([_0x2dbf47,_0x28eb61])=>({'skeleton':_0x2b5dcc[_0x53afe9(0x220)](),'cursors':[..._0x2dbf47[_0x53afe9(0x1ab)]()][_0x53afe9(0x2a9)](_0x58d7e6=>({..._0x58d7e6,'color':_0x28eb61[_0x58d7e6['color']]}))})))['subscribe'](_0x2f483e=>{if(this['_removeCollabCursors'](),_0x2f483e){const {skeleton:_0x627b1d,cursors:_0x41e76d}=_0x2f483e;this['_updateCollabCursors'](_0x627b1d,_0x41e76d);}})),this['_initResize'](),this[_0x53afe9(0x6c)]();}[_0x27ba00(0x265)](_0x3a9ef9,_0x4e769a){const _0x2571e0=_0x27ba00,{scene:_0x51ce4e,mainComponent:_0xf9ce60}=this[_0x2571e0(0x138)],_0x37679a=_0x4e769a[_0x2571e0(0x23f)](_0x53d09f=>new fs(_0x53d09f,_0x51ce4e,_0x3a9ef9,_0xf9ce60));this[_0x2571e0(0x10f)]=_0x37679a,this[_0x2571e0(0x7c)]=_0x4e769a;}[_0x27ba00(0x306)](){const _0x24f623=_0x27ba00;this['_removeCollabCursors']();const {scene:_0x5ec7bb,mainComponent:_0x5332d7}=this[_0x24f623(0x138)],_0x424dbb=this[_0x24f623(0x2a7)][_0x24f623(0x220)](),_0x268be6=this[_0x24f623(0x7c)]['map'](_0xfecdb8=>new fs(_0xfecdb8,_0x5ec7bb,_0x424dbb,_0x5332d7));this[_0x24f623(0x10f)]=_0x268be6;}['_removeCollabCursors'](){const _0x1246c0=_0x27ba00;this[_0x1246c0(0x10f)]['forEach'](_0x4f2b8f=>_0x4f2b8f['dispose']()),this['_cursorShapes']=[];}[_0x27ba00(0x6c)](){const _0xff9261=_0x27ba00,_0x3ad2a5=[_0x3b6457['id']];this['disposeWithMe'](this[_0xff9261(0x1b0)][_0xff9261(0x17d)](_0x39bac5=>{const _0x2fd57b=_0xff9261;_0x3ad2a5['includes'](_0x39bac5['id'])&&_0x39bac5['params'][_0x2fd57b(0x21a)]===this[_0x2fd57b(0x138)][_0x2fd57b(0x21a)]&&this[_0x2fd57b(0x306)]();}));}[_0x27ba00(0x1e8)](){const _0x2e9c68=_0x27ba00;this[_0x2e9c68(0x169)](_0x3a4206(this[_0x2e9c68(0x138)]['engine'][_0x2e9c68(0xa1)])[_0x2e9c68(0x31c)](_0x2e3311(_0x346cc6=>_0x346cc6[_0x2e9c68(0xd5)]===_0x510a85[_0x2e9c68(0x11d)]),_0x25ed9c(0x10))['subscribe'](()=>{const _0x3d4f7c=_0x2e9c68;this[_0x3d4f7c(0x306)]();}));}};We=Wr([_0x43e6ff(_0x2baed3[_0x27ba00(0x2cc)],We),ke(0x1,_0x27d762(_0x12f84e)),ke(0x2,_0x27d762(ge)),ke(0x3,_0xf80f3b),ke(0x4,_0x27d762(_0x5574a0))],We);const Gr=0x1,Yr=1.5;class Kr extends _0x916b9e{constructor(_0x3b6948,_0x422467){const _0x1b0a82=_0x27ba00;super(_0x3b6948,_0x422467),l(this,_0x1b0a82(0x11a)),l(this,'_hovered',!0x1),l(this,_0x1b0a82(0x24f)),l(this,'_name',''),l(this,'_labelPosition',_0x1b0a82(0xd4)),l(this,_0x1b0a82(0x1ba)),(_0x422467&&this['setShapeProps'](_0x422467),this[_0x1b0a82(0x180)][_0x1b0a82(0x245)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x1b0a82(0x72)]['subscribeEvent'](()=>this[_0x1b0a82(0xb1)]({'hovered':!0x1})));}[_0x27ba00(0xb1)](_0x15671a){const _0x1dc174=_0x27ba00;var _0x430573,_0x5ef9e8,_0x20a976,_0x1a2292,_0x43d8b9,_0x4c3fe4;this[_0x1dc174(0x11a)]=(_0x430573=_0x15671a['color'])!=null?_0x430573:this['_color'],this[_0x1dc174(0x2d9)]=(_0x5ef9e8=_0x15671a[_0x1dc174(0x1d4)])!=null?_0x5ef9e8:this[_0x1dc174(0x2d9)],this[_0x1dc174(0x24f)]=(_0x20a976=_0x15671a['range'])!=null?_0x20a976:this[_0x1dc174(0x24f)],this[_0x1dc174(0x101)]=(_0x1a2292=_0x15671a['name'])!=null?_0x1a2292:this['_name'],this[_0x1dc174(0x12b)]=(_0x43d8b9=_0x15671a['labelPosition'])!=null?_0x43d8b9:this[_0x1dc174(0x12b)],this[_0x1dc174(0x1ba)]=(_0x4c3fe4=_0x15671a[_0x1dc174(0x27c)])!=null?_0x4c3fe4:this['_backgroundColor'],this[_0x1dc174(0x2d4)]({'width':_0x15671a[_0x1dc174(0x182)],'height':_0x15671a[_0x1dc174(0x1bd)]});}[_0x27ba00(0x3a8)](_0x27447c){const _0x166f01=_0x27ba00,{row:_0x3c77f8,column:_0x5d787e}=_0x27447c;if(_0x3c77f8>=this['_range']['startRow']&&_0x3c77f8<=this[_0x166f01(0x24f)][_0x166f01(0x232)]&&_0x5d787e>=this[_0x166f01(0x24f)][_0x166f01(0x110)]&&_0x5d787e<=this['_range'][_0x166f01(0x171)]){this[_0x166f01(0xb1)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x4f51fb){return!0x1;}[_0x27ba00(0x1f8)](_0x4215d0){const _0x39d357=_0x27ba00;_0x3dd5a3['drawWith'](_0x4215d0,{'width':this[_0x39d357(0x182)],'height':this[_0x39d357(0x1bd)],'strokeWidth':Yr,'stroke':this[_0x39d357(0x11a)],'evented':!0x1,'fill':this[_0x39d357(0x1ba)]}),this[_0x39d357(0x2d9)]&&(_0x4215d0[_0x39d357(0x113)](),_0x4215d0[_0x39d357(0x197)](0x1,0x0,0x0,0x1,this[_0x39d357(0x182)],this[_0x39d357(0x12b)]===_0x39d357(0x9e)?0x0:-Le),rt[_0x39d357(0x22f)](_0x4215d0,{'text':this[_0x39d357(0x101)],'color':this[_0x39d357(0x11a)]}),_0x4215d0['restore']());}}var Xr=Object[_0x27ba00(0x198)],Jr=Object[_0x27ba00(0x280)],qr=(_0x40b366,_0x1d93c9,_0x2c1a72,_0x3e2b65)=>{const _0x5d8991=_0x27ba00;for(var _0xd45d61=_0x3e2b65>0x1?void 0x0:_0x3e2b65?Jr(_0x1d93c9,_0x2c1a72):_0x1d93c9,_0x4a444c=_0x40b366[_0x5d8991(0x117)]-0x1,_0x43241a;_0x4a444c>=0x0;_0x4a444c--)(_0x43241a=_0x40b366[_0x4a444c])&&(_0xd45d61=(_0x3e2b65?_0x43241a(_0x1d93c9,_0x2c1a72,_0xd45d61):_0x43241a(_0xd45d61))||_0xd45d61);return _0x3e2b65&&_0xd45d61&&Xr(_0x1d93c9,_0x2c1a72,_0xd45d61),_0xd45d61;},pt=(_0x59ab0d,_0x883ce6)=>(_0x4e6d7d,_0x180ff7)=>_0x883ce6(_0x4e6d7d,_0x180ff7,_0x59ab0d);const zr=0x1389;let yt=class extends _0x504ec7{constructor(_0x55aae7,_0x46492d,_0x283e8c,_0x3e2f58){const _0x4b5c91=_0x27ba00;super(),l(this,'_cursors',new Set()),l(this,_0x4b5c91(0x2cb),null),(this[_0x4b5c91(0x138)]=_0x55aae7,this['_sheetSkeletonManagerService']=_0x46492d,this[_0x4b5c91(0xef)]=_0x283e8c,this[_0x4b5c91(0x111)]=_0x3e2f58,this[_0x4b5c91(0x7b)]());}[_0x27ba00(0x7b)](){const _0x56cbff=_0x27ba00;this['_sheetSkeletonManagerService'][_0x56cbff(0x3ca)]['pipe'](_0x541db9(this['dispose$']),_0x170d0f(_0x334461=>{const _0x5d495c=_0x56cbff;if(_0x334461){const _0x5a8a2b=_0x334461['sheetId'];return _0x1d8b8d(this[_0x5d495c(0xef)][_0x5d495c(0xfb)](this['_context'][_0x5d495c(0x21a)]),this[_0x5d495c(0x111)][_0x5d495c(0x2fa)])[_0x5d495c(0x31c)](_0x42ddbb(([_0x2fca93,_0x3be887])=>{const _0x2a9e62=new Map();return _0x2fca93['forEach']((_0x3f52d7,_0x15da65)=>{const _0x27fe3f=_0x1a62;if(_0x3f52d7[_0x27fe3f(0x334)]===_0x5a8a2b){const _0x524985={..._0x3f52d7};_0x524985[_0x27fe3f(0x355)]=_0x3be887[_0x3f52d7[_0x27fe3f(0x355)]],_0x2a9e62['set'](_0x15da65,_0x524985);}}),{'skeleton':_0x334461,'cursors':_0x2a9e62};}));}return _0x215f7f({'skeleton':null,'cursors':new Map()});}))[_0x56cbff(0x3c1)](({skeleton:_0x53eb21,cursors:_0x245999})=>{const _0x5c9b27=_0x56cbff;this[_0x5c9b27(0x27d)](),_0x53eb21&&this[_0x5c9b27(0x265)](_0x53eb21,_0x245999);}),this[_0x56cbff(0xbd)][_0x56cbff(0x3ca)]['subscribe'](_0x41b602=>{const _0xc48189=_0x56cbff;if(_0x41b602==null)return;const {skeleton:_0x86b643}=_0x41b602,{scene:_0xbbdfec}=this[_0xc48189(0x138)];_0xbbdfec[_0xc48189(0x300)][_0xc48189(0x245)](_0x224ffa(_0x503405=>{const _0x2175da=_0xc48189;var _0x366555,_0x2d5ce2;const {offsetX:_0x3b10da,offsetY:_0x48612e}=_0x503405,{x:_0x5a092c,y:_0x4c53a6}=_0xbbdfec['getRelativeToViewportCoord'](_0x52f556['FromArray']([_0x3b10da,_0x48612e])),{scaleX:_0x5adaef,scaleY:_0x5104ba}=_0xbbdfec[_0x2175da(0x1f9)](),_0x256989=_0xbbdfec[_0x2175da(0x192)](_0x4cba9b[_0x2175da(0x7e)]),_0x426ae9=_0xbbdfec[_0x2175da(0x2d0)](_0x52f556[_0x2175da(0x339)]([_0x5a092c,_0x4c53a6]),_0x256989),_0x29f502=_0x86b643[_0x2175da(0x375)](_0x3b10da,_0x48612e,_0x5adaef,_0x5104ba,_0x426ae9);((_0x366555=this[_0x2175da(0x2cb)])==null?void 0x0:_0x366555[_0x2175da(0x16a)])===_0x29f502[_0x2175da(0x16a)]&&((_0x2d5ce2=this[_0x2175da(0x2cb)])==null?void 0x0:_0x2d5ce2['row'])===_0x29f502[_0x2175da(0x298)]||this['_cursors'][_0x2175da(0x392)](_0x51a495=>{_0x51a495['onMouseMove'](_0x29f502);});},0x64));});}['_updateCollabCursors'](_0x3bc52e,_0x49fc91){const _0x280196=_0x27ba00;var _0x34d376;const _0x3e44d6=(_0x34d376=this['_sheetSkeletonManagerService'][_0x280196(0x1bf)]())==null?void 0x0:_0x34d376[_0x280196(0x30b)];if(!_0x3e44d6)return;const _0x4c960c=this[_0x280196(0x35d)]();if(!_0x4c960c)return;this['_cursors'][_0x280196(0x392)](_0x452fde=>{const _0x23bf47=_0x280196;_0x452fde[_0x23bf47(0xed)]();});const {scene:_0x2a091b}=_0x4c960c,_0x5dce31=Zr(Array[_0x280196(0x309)](_0x49fc91[_0x280196(0x1ab)]()))[_0x280196(0x23f)](_0x5312d0=>{const _0x55cac0=_0x280196,{color:_0x54e414,range:_0x303ef7,name:_0x68e1a2,selection:_0x560199,sheetID:_0x64d297}=_0x5312d0,{startColumn:_0x33ac09,startRow:_0x1d340,endColumn:_0xef94a8,endRow:_0x38cd6c}=_0x303ef7,_0xa25ec7=_0x8c95be(_0x1d340,_0x33ac09,_0x2a091b,_0x3e44d6),_0x1db916=_0x8c95be(_0x38cd6c,_0xef94a8,_0x2a091b,_0x3e44d6),{columnHeaderHeightAndMarginTop:_0x5186ec}=_0x3e44d6,{startX:_0x309163,startY:_0x1fa61c}=_0xa25ec7,{endX:_0x455467,endY:_0x591a57}=_0x1db916,_0x4f1146=_0x455467-_0x309163,_0x151337=_0x591a57-_0x1fa61c,_0x1cb64c={'labelPosition':_0x1fa61c-_0x5186ec>=Le?_0x55cac0(0xd4):_0x55cac0(0x9e),'sheetID':_0x64d297,'range':_0x303ef7,'color':_0x54e414,'name':_0x68e1a2,'selection':_0x560199,'left':_0x309163,'top':_0x1fa61c,'width':_0x4f1146,'height':_0x151337,'evented':!0x1,'zIndex':zr};return new Kr(_0x68e1a2,_0x1cb64c);});_0x2a091b[_0x280196(0x146)](_0x5dce31,Gr),this[_0x280196(0x7c)]=new Set(_0x5dce31);}['_removeCollabCursors'](){const _0x4735a6=_0x27ba00;var _0x63904b;(_0x63904b=this[_0x4735a6(0x7c)])==null||_0x63904b[_0x4735a6(0x392)](_0x2f8541=>_0x2f8541[_0x4735a6(0x323)]());}[_0x27ba00(0x35d)](){const _0x479a26=_0x27ba00;return _0xd2383f(this[_0x479a26(0x138)][_0x479a26(0x1a4)],this['_context']);}};yt=qr([pt(0x1,_0x27d762(_0x485edb)),pt(0x2,_0x27d762(ge)),pt(0x3,_0x27d762(_0x5574a0))],yt);function Zr(_0x4619c2){const _0x56f51c=_0x27ba00,_0x2554da=new Map();return _0x4619c2['forEach'](_0x2f3287=>{const _0x300b73=_0x1a62;if(_0x2554da['has'](_0x2f3287['selection'])){const _0x19915e=_0x2554da[_0x300b73(0x1dd)](_0x2f3287[_0x300b73(0x23c)]);_0x19915e[_0x300b73(0x2dd)]+=',\x20'+_0x2f3287[_0x300b73(0x2dd)];}else _0x2554da[_0x300b73(0x371)](_0x2f3287[_0x300b73(0x23c)],_0x2f3287);}),Array[_0x56f51c(0x309)](_0x2554da[_0x56f51c(0x1ab)]());}var N=function(){const _0x91fefa=_0x27ba00;return N=Object[_0x91fefa(0xd0)]||function(_0x16cb0c){const _0x276356=_0x91fefa;for(var _0x452865,_0x5f11d5=0x1,_0x1b4629=arguments[_0x276356(0x117)];_0x5f11d5<_0x1b4629;_0x5f11d5++){_0x452865=arguments[_0x5f11d5];for(var _0x4fa6db in _0x452865)Object[_0x276356(0x22b)][_0x276356(0xe8)][_0x276356(0x321)](_0x452865,_0x4fa6db)&&(_0x16cb0c[_0x4fa6db]=_0x452865[_0x4fa6db]);}return _0x16cb0c;},N[_0x91fefa(0xd8)](this,arguments);},Qr=function(_0x23b956,_0xedade){const _0x4c4fe2=_0x27ba00;var _0x5d309c={};for(var _0x3dcbf in _0x23b956)Object['prototype'][_0x4c4fe2(0xe8)][_0x4c4fe2(0x321)](_0x23b956,_0x3dcbf)&&_0xedade[_0x4c4fe2(0xba)](_0x3dcbf)<0x0&&(_0x5d309c[_0x3dcbf]=_0x23b956[_0x3dcbf]);if(_0x23b956!=null&&typeof Object[_0x4c4fe2(0x87)]=='function'){for(var _0x430650=0x0,_0x3dcbf=Object[_0x4c4fe2(0x87)](_0x23b956);_0x430650<_0x3dcbf['length'];_0x430650++)_0xedade[_0x4c4fe2(0xba)](_0x3dcbf[_0x430650])<0x0&&Object[_0x4c4fe2(0x22b)][_0x4c4fe2(0x141)][_0x4c4fe2(0x321)](_0x23b956,_0x3dcbf[_0x430650])&&(_0x5d309c[_0x3dcbf[_0x430650]]=_0x23b956[_0x3dcbf[_0x430650]]);}return _0x5d309c;},Yt=_0x58d378(function(_0x49ddf6,_0x1d18ee){const _0x512944=_0x27ba00;var _0x3ec117=_0x49ddf6[_0x512944(0x19c)],_0x46f078=_0x49ddf6['id'],_0x4e2fa0=_0x49ddf6[_0x512944(0x39c)],_0x24ebae=_0x49ddf6[_0x512944(0x1a8)],_0x2a107d=Qr(_0x49ddf6,[_0x512944(0x19c),'id',_0x512944(0x39c),'extend']),_0x4143c9=_0x512944(0x30e)['concat'](_0x46f078,'\x20')[_0x512944(0x205)](_0x4e2fa0||'')[_0x512944(0x18e)](),_0x214747=_0x1984ee('_'[_0x512944(0x205)](so()));return Bs(_0x3ec117,''[_0x512944(0x205)](_0x46f078),{'defIds':_0x3ec117[_0x512944(0x6d)],'idSuffix':_0x214747[_0x512944(0x2c9)]},N({'ref':_0x1d18ee,'className':_0x4143c9},_0x2a107d),_0x24ebae);});function Bs(_0x3fb723,_0x3bde8f,_0x43f2bc,_0x33d8ac,_0x20914d){const _0x165064=_0x27ba00;return _0x86cf07(_0x3fb723['tag'],N(N({'key':_0x3bde8f},eo(_0x3fb723,_0x43f2bc,_0x20914d)),_0x33d8ac),(to(_0x3fb723,_0x43f2bc)[_0x165064(0x35e)]||[])[_0x165064(0x23f)](function(_0x3feeb4,_0xfcf1cc){const _0x205f0e=_0x165064;return Bs(_0x3feeb4,''['concat'](_0x3bde8f,'-')['concat'](_0x3fb723[_0x205f0e(0x107)],'-')[_0x205f0e(0x205)](_0xfcf1cc),_0x43f2bc,void 0x0,_0x20914d);}));}function eo(_0x200333,_0x3eae95,_0x3d52b5){const _0x396d14=_0x27ba00;var _0x4de1c4=N({},_0x200333['attrs']);_0x3d52b5!=null&&_0x3d52b5['colorChannel1']&&_0x4de1c4['fill']==='colorChannel1'&&(_0x4de1c4[_0x396d14(0x196)]=_0x3d52b5[_0x396d14(0x1ca)]);var _0x46c063=_0x3eae95['defIds'];return!_0x46c063||_0x46c063['length']===0x0||(_0x200333[_0x396d14(0x107)]===_0x396d14(0x14a)&&_0x4de1c4['xlink:href']&&(_0x4de1c4[_0x396d14(0x22e)]=_0x4de1c4[_0x396d14(0x22e)]+_0x3eae95[_0x396d14(0x175)]),Object['entries'](_0x4de1c4)[_0x396d14(0x392)](function(_0x1500b1){const _0x33a715=_0x396d14;var _0x4aad8b=_0x1500b1[0x0],_0x537d9a=_0x1500b1[0x1];typeof _0x537d9a=='string'&&(_0x4de1c4[_0x4aad8b]=_0x537d9a[_0x33a715(0xe5)](/url\(#(.*)\)/,_0x33a715(0x75)[_0x33a715(0x205)](_0x3eae95['idSuffix'],')')));})),_0x4de1c4;}function to(_0x26a664,_0x95620){const _0x122aed=_0x27ba00;var _0x35e651,_0x397ec9=_0x95620[_0x122aed(0x6d)];return!_0x397ec9||_0x397ec9['length']===0x0?_0x26a664:_0x26a664[_0x122aed(0x107)]===_0x122aed(0xc6)&&(!((_0x35e651=_0x26a664[_0x122aed(0x35e)])===null||_0x35e651===void 0x0)&&_0x35e651[_0x122aed(0x117)])?N(N({},_0x26a664),{'children':_0x26a664['children'][_0x122aed(0x23f)](function(_0x5dbcab){const _0x43092c=_0x122aed;return typeof _0x5dbcab[_0x43092c(0x39e)]['id']=='string'&&_0x397ec9&&_0x397ec9[_0x43092c(0xba)](_0x5dbcab[_0x43092c(0x39e)]['id'])>-0x1?N(N({},_0x5dbcab),{'attrs':N(N({},_0x5dbcab[_0x43092c(0x39e)]),{'id':_0x5dbcab[_0x43092c(0x39e)]['id']+_0x95620[_0x43092c(0x175)]})}):_0x5dbcab;})}):_0x26a664;}function so(){const _0x550008=_0x27ba00;return Math['random']()[_0x550008(0x344)](0x24)[_0x550008(0x3a9)](0x2,0x8);}Yt[_0x27ba00(0x3d6)]=_0x27ba00(0xdb);var io={'tag':_0x27ba00(0x2ce),'attrs':{'fill':_0x27ba00(0x3d4),'viewBox':_0x27ba00(0x36b),'width':_0x27ba00(0xfd),'height':_0x27ba00(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x27ba00(0x96),'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':_0x27ba00(0xf8),'strokeLinejoin':_0x27ba00(0xf8),'strokeWidth':1.2}}]},{'tag':_0x27ba00(0xc6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x27ba00(0x285)},'children':[{'tag':_0x27ba00(0x1cd),'attrs':{'fill':_0x27ba00(0x1fa),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x27ba00(0x285)]},Vs=_0x58d378(function(_0x155361,_0x38198d){const _0x131596=_0x27ba00;return _0x86cf07(Yt,Object[_0x131596(0xd0)]({},_0x155361,{'id':_0x131596(0x116),'ref':_0x38198d,'icon':io}));});Vs[_0x27ba00(0x3d6)]='OffLineSingle';var no={'tag':_0x27ba00(0x2ce),'attrs':{'fill':_0x27ba00(0x3d4),'viewBox':_0x27ba00(0xb3),'width':'1em','height':_0x27ba00(0xfd)},'children':[{'tag':'g','attrs':{'clipPath':_0x27ba00(0x24e)},'children':[{'tag':_0x27ba00(0x1cd),'attrs':{'stroke':_0x27ba00(0x96),'d':_0x27ba00(0x3a2),'strokeLinecap':_0x27ba00(0xf8),'strokeLinejoin':_0x27ba00(0xf8),'strokeWidth':1.2}}]},{'tag':_0x27ba00(0xc6),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x27ba00(0x1c8)},'children':[{'tag':_0x27ba00(0x1cd),'attrs':{'fill':'#fff','d':_0x27ba00(0x2da),'transform':'translate(.97)'}}]}]}],'defIds':[_0x27ba00(0x1c8)]},Fs=_0x58d378(function(_0x2b4e54,_0x4b3208){return _0x86cf07(Yt,Object['assign']({},_0x2b4e54,{'id':'on-line-single','ref':_0x4b3208,'icon':no}));});Fs[_0x27ba00(0x3d6)]=_0x27ba00(0x83);const ro=_0x27ba00(0x261),oo=_0x27ba00(0x2e4),ao='univer-online-status',co=_0x27ba00(0x33c),ho='univer-offline',we={'onlineStatusIcon':ro,'onlineStatusTitle':oo,'onlineStatus':ao,'online':co,'offline':ho};function lo(_0xfc9656){const _0x471f37=_0x27ba00;switch(_0xfc9656){case w['OFFLINE']:return _0x471f37(0x9a);case w[_0x471f37(0x139)]:return'collabStatus.conflict';case w[_0x471f37(0xab)]:return _0x471f37(0x33f);case w['NOT_COLLAB']:return _0x471f37(0x236);case w[_0x471f37(0x37f)]:case w['AWAITING']:case w[_0x471f37(0x207)]:return _0x471f37(0xc4);case w[_0x471f37(0x237)]:return'collabStatus.synced';}}function _o(_0x3eb05b){const _0x4354f8=_0x27ba00,{status$:_0x3b2d4c}=_0x3eb05b,_0x1fef61=_0x1a9e47(_0x3b2d4c,w[_0x4354f8(0x317)]),_0x264342=_0x18c223(_0x5d963b),_0x561fff=_0x18c223(ce),_0x561ece=_0x1fef61!==w[_0x4354f8(0x1f1)],_0x4cdffe=_0x264342['t'](lo(_0x1fef61)),_0x2e9a4d=_0x501083(we[_0x4354f8(0xb9)],{[we[_0x4354f8(0x161)]]:_0x561ece,[we[_0x4354f8(0x26f)]]:!_0x561ece}),_0x5a8509=_0x561ece?_0x3ebc85['createElement'](Fs,null):_0x3ebc85['createElement'](Vs,null),_0x3645ef=_0x692936(()=>{_0x561ece||_0x561fff['reconnect']();},[_0x561ece,_0x561fff]);function _0x5b5b58(){const _0x35ae78=_0x4354f8;return _0x3ebc85[_0x35ae78(0x151)](_0x35ae78(0x1b3),{'className':_0x2e9a4d,'onClick':_0x3645ef},_0x3ebc85[_0x35ae78(0x151)](_0x35ae78(0x1b3),{'className':we['onlineStatusIcon']},_0x5a8509),_0x3ebc85[_0x35ae78(0x151)]('div',{'className':we[_0x35ae78(0x114)]},_0x4cdffe));}return _0x561ece?_0x5b5b58():_0x3ebc85['createElement'](_0x22317b,{'title':_0x264342['t']('collab-client.tooltip.reconnect')},_0x5b5b58());}var uo=Object[_0x27ba00(0x198)],fo=Object[_0x27ba00(0x280)],mo=(_0x5ef6f7,_0x36a5be,_0x5b287d,_0x1308f3)=>{for(var _0x481cc0=_0x1308f3>0x1?void 0x0:_0x1308f3?fo(_0x36a5be,_0x5b287d):_0x36a5be,_0x279b82=_0x5ef6f7['length']-0x1,_0x2e0b86;_0x279b82>=0x0;_0x279b82--)(_0x2e0b86=_0x5ef6f7[_0x279b82])&&(_0x481cc0=(_0x1308f3?_0x2e0b86(_0x36a5be,_0x5b287d,_0x481cc0):_0x2e0b86(_0x481cc0))||_0x481cc0);return _0x1308f3&&_0x481cc0&&uo(_0x36a5be,_0x5b287d,_0x481cc0),_0x481cc0;},Be=(_0x277cda,_0x261048)=>(_0x3a1fa9,_0x200678)=>_0x261048(_0x3a1fa9,_0x200678,_0x277cda);let Ue=class extends _0x10a60d{constructor(_0x24221a,_0x2258f7,_0x3df31d,_0x20571f){const _0x72935=_0x27ba00;super(),l(this,_0x72935(0x142),new _0x23c814(w['NOT_COLLAB'])),(this[_0x72935(0xe3)]=_0x24221a,this[_0x72935(0x388)]=_0x2258f7,this['_injector']=_0x3df31d,this[_0x72935(0x2e0)]=_0x20571f,this[_0x72935(0x255)](),this[_0x72935(0x31e)]());}[_0x27ba00(0x31e)](){const _0x6770f2=_0x27ba00;this[_0x6770f2(0x169)](this['_univerInstanceService'][_0x6770f2(0x193)]['pipe'](_0xdc9d7a(()=>{const _0x2f9381=_0x6770f2,_0x592f89=this[_0x2f9381(0xe3)][_0x2f9381(0x2a3)]();return _0x592f89?this[_0x2f9381(0x2e0)][_0x2f9381(0x26c)](_0x592f89[_0x2f9381(0x242)]()):_0x215f7f(null);}),_0xdc9d7a(_0x236463=>_0x236463?_0x236463[_0x6770f2(0x16b)]:_0x215f7f(w['NOT_COLLAB'])))[_0x6770f2(0x3c1)](_0x30b914=>{const _0x34c4c5=_0x6770f2;this[_0x34c4c5(0x142)][_0x34c4c5(0x8c)](_0x30b914);}));}[_0x27ba00(0x255)](){const _0xab4dd4=_0x27ba00;this[_0xab4dd4(0x169)](this[_0xab4dd4(0x388)][_0xab4dd4(0x3d1)](_0x3b6b42['HEADER_MENU'],()=>_0x2c7159(go({'status$':this[_0xab4dd4(0x142)][_0xab4dd4(0x14e)]()}),this[_0xab4dd4(0x2a6)])));}};Ue=mo([Be(0x0,_0x4a4945),Be(0x1,_0x37e53f),Be(0x2,_0x27d762(_0x2a6c13)),Be(0x3,_0x27d762(Ae))],Ue);function go(_0x1553fe){const {status$:_0x2692e1}=_0x1553fe;return function(){return _0x3ebc85['createElement'](_o,{'status$':_0x2692e1});};}const Ws=_0x2d9842(_0x27ba00(0x3a5));var So=Object[_0x27ba00(0x198)],po=Object[_0x27ba00(0x280)],vo=(_0x332db8,_0x288c41,_0x3b66e7,_0x1f34b6)=>{const _0x3ce901=_0x27ba00;for(var _0xeb29e2=_0x1f34b6>0x1?void 0x0:_0x1f34b6?po(_0x288c41,_0x3b66e7):_0x288c41,_0x318372=_0x332db8[_0x3ce901(0x117)]-0x1,_0x2e412c;_0x318372>=0x0;_0x318372--)(_0x2e412c=_0x332db8[_0x318372])&&(_0xeb29e2=(_0x1f34b6?_0x2e412c(_0x288c41,_0x3b66e7,_0xeb29e2):_0x2e412c(_0xeb29e2))||_0xeb29e2);return _0x1f34b6&&_0xeb29e2&&So(_0x288c41,_0x3b66e7,_0xeb29e2),_0xeb29e2;},me=(_0x2512ed,_0x31a8b7)=>(_0x46dbff,_0x4ef2e2)=>_0x31a8b7(_0x46dbff,_0x4ef2e2,_0x2512ed);let Ge=class extends _0x504ec7{constructor(_0x282951,_0x26ae15,_0x46ec3a,_0x1a99c3,_0xa61b41,_0x22b068){const _0x167190=_0x27ba00;super(),this[_0x167190(0x294)]=_0x282951,this[_0x167190(0xd6)]=_0x26ae15,this[_0x167190(0x1b0)]=_0x46ec3a,this[_0x167190(0x12a)]=_0x1a99c3,this[_0x167190(0x29f)]=_0xa61b41,_0x22b068?_0x22b068==null||_0x22b068['whenReady']()['then'](()=>this[_0x167190(0x7b)]()):(this[_0x167190(0xd6)][_0x167190(0x227)]('[DataLoaderController]',_0x167190(0x3ae)),this[_0x167190(0x7b)]());}async[_0x27ba00(0x7b)](){const _0x5dbbaf=_0x27ba00,_0x32ed28=this[_0x5dbbaf(0x294)][_0x5dbbaf(0x3ab)]('unit'),_0x208cbe=this[_0x5dbbaf(0x294)][_0x5dbbaf(0x3ab)](_0x5dbbaf(0xd5));if(!_0x32ed28||!_0x208cbe){this[_0x5dbbaf(0xd6)][_0x5dbbaf(0x227)](_0x5dbbaf(0x11e),_0x5dbbaf(0x393));return;}switch(Number(_0x208cbe)){case H['UNIVER_SHEET']:{const _0x3d527c=await this[_0x5dbbaf(0x144)](_0x32ed28);this['_setupSubUnitSync'](_0x3d527c);break;}case H[_0x5dbbaf(0x2e3)]:{await this['_loadDoc'](_0x32ed28);break;}default:{this[_0x5dbbaf(0xd6)][_0x5dbbaf(0x1e5)](_0x5dbbaf(0x11e),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x27ba00(0x1ec)](_0x51f58d){const _0x1eb6bf=_0x27ba00;await this[_0x1eb6bf(0xe6)](_0x51f58d),_0x51f58d[_0x1eb6bf(0x20e)][_0x1eb6bf(0x31c)](_0x350758(this[_0x1eb6bf(0x132)]))[_0x1eb6bf(0x3c1)](_0x4f446c=>{const _0x29ca98=_0x1eb6bf;_0x4f446c&&this[_0x29ca98(0x93)](_0x4f446c);}),this[_0x1eb6bf(0x294)][_0x1eb6bf(0x38c)]['pipe'](_0x350758(this[_0x1eb6bf(0x132)]))[_0x1eb6bf(0x3c1)](()=>this['_updateSubUnitFromURLParams'](_0x51f58d));}[_0x27ba00(0x93)](_0x24fcee,_0x9d8504=!0x1){const _0x1f5526=_0x27ba00,_0x1b1c9e=this[_0x1f5526(0x294)][_0x1f5526(0x3ab)](_0x1f5526(0x2f4));_0x24fcee[_0x1f5526(0x247)]()!==_0x1b1c9e&&this[_0x1f5526(0x294)][_0x1f5526(0x384)]('subunit',_0x24fcee[_0x1f5526(0x247)](),_0x9d8504);}async['_updateSubUnitFromURLParams'](_0x3e44fe){const _0x5932a6=_0x27ba00;var _0x5960de;const _0x2c3977=this[_0x5932a6(0x294)][_0x5932a6(0x3ab)]('subunit');if(!_0x2c3977||!_0x3e44fe[_0x5932a6(0x342)](_0x2c3977)){const _0x4616cc=_0x3e44fe[_0x5932a6(0x38f)]()[0x0],_0x2ec959=_0x3e44fe[_0x5932a6(0x342)](_0x4616cc);if(!_0x2ec959)return;this[_0x5932a6(0x93)](_0x2ec959,!0x0),await this[_0x5932a6(0x1b0)][_0x5932a6(0xb6)](_0x19e4e3['id'],{'unitId':_0x3e44fe[_0x5932a6(0x242)](),'subUnitId':_0x4616cc});return;}((_0x5960de=_0x3e44fe['getActiveSheet']())==null?void 0x0:_0x5960de['getSheetId']())!==_0x2c3977&&await this[_0x5932a6(0x1b0)][_0x5932a6(0xb6)](_0x19e4e3['id'],{'unitId':_0x3e44fe['getUnitId'](),'subUnitId':_0x2c3977});}async[_0x27ba00(0x144)](_0x3c05d9){const _0x137760=_0x27ba00;let _0x10ec1a=0x0;const _0x55d994=await this['_localCacheService'][_0x137760(0x347)](_0x3c05d9);return _0x55d994&&(_0x55d994[_0x137760(0x2af)]||_0x55d994['mutations'][_0x137760(0x117)]!==0x0)&&(_0x10ec1a=_0x55d994[_0x137760(0x13e)]),_0x10ec1a===0x0&&this['_logService']['debug'](_0x137760(0x11e),_0x137760(0x27e)),this[_0x137760(0x29f)][_0x137760(0x1ae)](_0x3c05d9,_0x10ec1a);}async[_0x27ba00(0xf9)](_0x1a798b){const _0x2aa41a=_0x27ba00;let _0x50d49c=0x0;const _0x1c65f0=await this['_localCacheService']['loadOfflineData'](_0x1a798b);return _0x1c65f0&&(_0x1c65f0[_0x2aa41a(0x2af)]||_0x1c65f0[_0x2aa41a(0x3bd)][_0x2aa41a(0x117)]!==0x0)&&(_0x50d49c=_0x1c65f0[_0x2aa41a(0x13e)]),_0x50d49c===0x0&&this['_logService'][_0x2aa41a(0x227)](_0x2aa41a(0x11e),_0x2aa41a(0x27e)),this[_0x2aa41a(0x29f)][_0x2aa41a(0x283)](_0x1a798b,_0x50d49c);}};Ge=vo([_0x43e6ff(_0x2baed3[_0x27ba00(0x324)],Ge),me(0x0,Ws),me(0x1,_0x1dd153),me(0x2,_0xf80f3b),me(0x3,_0x27d762(D)),me(0x4,_0x27d762(_0x55dfa3)),me(0x5,_0x3a7ea6(_0x321b9c))],Ge);var Io=Object[_0x27ba00(0x198)],Eo=Object['getOwnPropertyDescriptor'],Co=(_0x433a3e,_0x4a296b,_0x2539fe,_0xcc1a12)=>{const _0x198dbb=_0x27ba00;for(var _0x3a56cf=_0xcc1a12>0x1?void 0x0:_0xcc1a12?Eo(_0x4a296b,_0x2539fe):_0x4a296b,_0x15a535=_0x433a3e[_0x198dbb(0x117)]-0x1,_0x115603;_0x15a535>=0x0;_0x15a535--)(_0x115603=_0x433a3e[_0x15a535])&&(_0x3a56cf=(_0xcc1a12?_0x115603(_0x4a296b,_0x2539fe,_0x3a56cf):_0x115603(_0x3a56cf))||_0x3a56cf);return _0xcc1a12&&_0x3a56cf&&Io(_0x4a296b,_0x2539fe,_0x3a56cf),_0x3a56cf;},ms=(_0x170cb0,_0x2c5364)=>(_0x17373a,_0xca78f)=>_0x2c5364(_0x17373a,_0xca78f,_0x170cb0);const bo=_0x27ba00(0xc0),To=_0x27ba00(0x35b);let Ye=class extends _0x10a60d{constructor(_0x1f4af1,_0x27687e){const _0x5a5070=_0x27ba00;super(),this[_0x5a5070(0xe3)]=_0x1f4af1,this[_0x5a5070(0x19e)]=_0x27687e,this[_0x5a5070(0x7b)]();}[_0x27ba00(0x7b)](){const _0x813248=_0x27ba00;this[_0x813248(0x169)](_0x10763a(this[_0x813248(0xe3)]['focused$'][_0x813248(0x3c1)](()=>{const _0x45fe7f=_0x813248;var _0x435792;const _0x2597a0=this[_0x45fe7f(0xe3)][_0x45fe7f(0x2a3)]();let _0x34abea=(_0x435792=this['_configService'][_0x45fe7f(0x3c6)](bo))!=null?_0x435792:To;_0x2597a0 instanceof _0xcbf837&&(_0x34abea=_0x2597a0[_0x45fe7f(0x2dd)]),document['title']=_0x34abea;})));}};Ye=Co([_0x43e6ff(_0x2baed3[_0x27ba00(0x29e)],Ye),ms(0x0,_0x4a4945),ms(0x1,_0xeb1b98)],Ye);var Ro=Object[_0x27ba00(0x198)],Oo=Object[_0x27ba00(0x280)],Do=(_0x271c2b,_0x55259c,_0x3a2bc4,_0x2b203b)=>{const _0x12595b=_0x27ba00;for(var _0x149b27=_0x2b203b>0x1?void 0x0:_0x2b203b?Oo(_0x55259c,_0x3a2bc4):_0x55259c,_0x46ca0c=_0x271c2b[_0x12595b(0x117)]-0x1,_0x26cc64;_0x46ca0c>=0x0;_0x46ca0c--)(_0x26cc64=_0x271c2b[_0x46ca0c])&&(_0x149b27=(_0x2b203b?_0x26cc64(_0x55259c,_0x3a2bc4,_0x149b27):_0x26cc64(_0x149b27))||_0x149b27);return _0x2b203b&&_0x149b27&&Ro(_0x55259c,_0x3a2bc4,_0x149b27),_0x149b27;},vt=(_0x3859ce,_0x440a3d)=>(_0x5d3351,_0x520907)=>_0x440a3d(_0x5d3351,_0x520907,_0x3859ce);let st=class{constructor(_0x4bf33c,_0x4e4942,_0x1dcf28){const _0x181148=_0x27ba00;this['_configService']=_0x4bf33c,this['_httpService']=_0x4e4942,this[_0x181148(0x8d)]=_0x1dcf28,this[_0x181148(0x279)]();}[_0x27ba00(0x279)](){const _0x30e539=_0x27ba00;this[_0x30e539(0xe4)][_0x30e539(0x2e2)]({'priority':0x1,'interceptor':(_0x51cb06,_0x423873)=>_0x423873(_0x51cb06)[_0x30e539(0x31c)](_0x28894e(async _0xcf79d=>{const _0xcad768=_0x30e539,_0x3a5797=_0xcf79d;if(_0x3a5797['status']===0x191&&window[_0xcad768(0x3c0)](this[_0xcad768(0x8d)]['t']('auth.needGotoLoginAlert'))){const _0x3e9747=window[_0xcad768(0x3de)](window[_0xcad768(0x1fb)][_0xcad768(0x1d8)]);window[_0xcad768(0x1fb)][_0xcad768(0x1d8)]=this[_0xcad768(0x33e)]()+_0xcad768(0xd1)+_0x3e9747;}return _0x3a5797;}))});}['_getLoginPath'](){const _0x1452a4=_0x27ba00;var _0x488f2d,_0x20964e;const _0x48d136=this[_0x1452a4(0x19e)][_0x1452a4(0x3c6)](Pn),_0x3afebb=this['_configService'][_0x1452a4(0x3c6)](L);return(_0x20964e=(_0x488f2d=_0x3afebb==null?void 0x0:_0x3afebb['loginUrlKey'])!=null?_0x488f2d:_0x48d136)!=null?_0x20964e:yn;}};st=Do([vt(0x0,_0xeb1b98),vt(0x1,_0x27d762(_0x3fd702)),vt(0x2,_0x27d762(_0x5d963b))],st);var wo=Object[_0x27ba00(0x198)],Po=Object[_0x27ba00(0x280)],yo=(_0x2af3b4,_0x5b2d4,_0x2ee067,_0x14969b)=>{const _0x12f5a6=_0x27ba00;for(var _0x598e3c=_0x14969b>0x1?void 0x0:_0x14969b?Po(_0x5b2d4,_0x2ee067):_0x5b2d4,_0x34f26f=_0x2af3b4[_0x12f5a6(0x117)]-0x1,_0x1031c7;_0x34f26f>=0x0;_0x34f26f--)(_0x1031c7=_0x2af3b4[_0x34f26f])&&(_0x598e3c=(_0x14969b?_0x1031c7(_0x5b2d4,_0x2ee067,_0x598e3c):_0x1031c7(_0x598e3c))||_0x598e3c);return _0x14969b&&_0x598e3c&&wo(_0x5b2d4,_0x2ee067,_0x598e3c),_0x598e3c;},gs=(_0x359c5d,_0x4c54e9)=>(_0x579543,_0x438ed8)=>_0x4c54e9(_0x579543,_0x438ed8,_0x359c5d);const No=_0x27ba00(0xf1),Uo='/universer-api/authz';let Nt=class extends _0x10a60d{constructor(_0x599905,_0x5ec944){const _0x28805a=_0x27ba00;super(),this['_HTTPService']=_0x599905,this['_configService']=_0x5ec944,this[_0x28805a(0x204)]();}['_initMergeInterceptor'](){const _0x5ed297=_0x27ba00,_0x3c1262=this;this[_0x5ed297(0x169)](this[_0x5ed297(0x36a)][_0x5ed297(0x2e2)]({'priority':0x3e7,'interceptor':_0x2966fa({'isMatch'(_0x52a8f0){const _0x4b2a0a=_0x5ed297;var _0x94eb6a;if(_0x52a8f0[_0x4b2a0a(0x2ae)]==='POST'&&((_0x94eb6a=_0x52a8f0[_0x4b2a0a(0x1a9)])!=null&&_0x94eb6a['body'])){const {objectID:_0x3cf831,objectType:_0x3343fd}=_0x52a8f0[_0x4b2a0a(0x1a9)]['body']||{};if(!_0x3cf831||_0x3343fd===void 0x0)return!0x1;const _0x3cb261=_0x3c1262[_0x4b2a0a(0x1aa)]()+'/'+_0x3343fd+'/object/'+_0x3cf831+_0x4b2a0a(0x1ff);if(_0x52a8f0[_0x4b2a0a(0x23b)]===_0x3cb261)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x508595){const _0x4206ca=_0x5ed297;var _0x33bbdc;return(_0x33bbdc=_0x508595[_0x4206ca(0x1a9)])==null?void 0x0:_0x33bbdc[_0x4206ca(0x109)];},'mergeParamsToRequest'(_0x352339,_0x161689){const _0x29250a=_0x5ed297,_0x36f239=_0x3c1262['_getAPIPrefixPath']()+_0x29250a(0xc2),_0x13495c=_0x352339['reduce']((_0x318eae,_0x546ba1)=>{const _0x54d69a=_0x29250a,{unitID:_0x54b248,objectID:_0x1a917e,objectType:_0x4ec3e0,actions:_0x13489b}=_0x546ba1;return _0x318eae[_0x54b248]||(_0x318eae[_0x54b248]={}),_0x318eae[_0x54b248][_0x1a917e]||(_0x318eae[_0x54b248][_0x1a917e]={'objectID':_0x1a917e,'objectType':_0x4ec3e0,'actions':[]}),_0x318eae[_0x54b248][_0x1a917e][_0x54d69a(0x2cd)]['push'](..._0x13489b),_0x318eae;},{}),_0x43a650=[];for(const _0x26fa15 in _0x13495c)for(const _0x3c6172 in _0x13495c[_0x26fa15]){const {actions:_0x1ee56c,objectType:_0x33c64c}=_0x13495c[_0x26fa15][_0x3c6172],_0x279b20=[...new Set(_0x1ee56c)];_0x43a650[_0x29250a(0x2ec)]({'unitID':_0x26fa15,'objectID':_0x3c6172,'objectType':_0x33c64c,'actions':_0x279b20});}return new _0x1ccb75('POST',_0x36f239,{'headers':_0x161689[_0x29250a(0x155)],'withCredentials':_0x161689[_0x29250a(0x310)],'responseType':_0x161689[_0x29250a(0x1be)],'body':{'requests':_0x43a650}});}},{'distributeResult'(_0x5869cd,_0x17ae78){const _0x91b959=_0x5ed297,{objectActions:_0x352e90}=_0x5869cd;return _0x17ae78[_0x91b959(0x23f)](_0x1e3bf1=>{const _0x38544a=_0x91b959,{unitID:_0x4ccad0,objectID:_0x5f3494,actions:_0x57fb56}=_0x1e3bf1,_0x1d577f=_0x352e90[_0x38544a(0x208)](_0x1b11b8=>_0x1b11b8['unitID']===_0x4ccad0&&_0x1b11b8[_0x38544a(0x99)]===_0x5f3494),_0x1c73fb=_0x57fb56[_0x38544a(0x23f)](_0x509da3=>_0x1d577f==null?void 0x0:_0x1d577f[_0x38544a(0x2cd)][_0x38544a(0x208)](_0x541fa7=>_0x541fa7['action']===_0x509da3))[_0x38544a(0x266)](_0x33e55a=>!!_0x33e55a);return{'config':_0x1e3bf1,'result':{'actions':_0x1c73fb,'error':_0x5869cd[_0x38544a(0x1e5)]}};});}})}));}[_0x27ba00(0x1aa)](){const _0x224915=_0x27ba00;var _0x46965e,_0x564ce0;const _0x23a983=this[_0x224915(0x19e)][_0x224915(0x3c6)](No),_0x44854d=this[_0x224915(0x19e)][_0x224915(0x3c6)](L);return(_0x564ce0=(_0x46965e=_0x44854d==null?void 0x0:_0x44854d['authzUrl'])!=null?_0x46965e:_0x23a983)!=null?_0x564ce0:Uo;}async[_0x27ba00(0x29c)](_0x41c6a6){const _0x27a5de=_0x27ba00,_0x4704b4=this[_0x27a5de(0x1aa)]()+'/'+_0x41c6a6[_0x27a5de(0x219)]+_0x27a5de(0x1d9);return(await this[_0x27a5de(0x36a)][_0x27a5de(0x1c7)](_0x4704b4,{'body':_0x41c6a6}))[_0x27a5de(0x109)][_0x27a5de(0x99)]||'';}async[_0x27ba00(0x2cf)](_0x505864){const _0x43f959=_0x27ba00,_0x41423f=this[_0x43f959(0x1aa)]()+'/-/object/list';return(await this[_0x43f959(0x36a)]['post'](_0x41423f,{'body':_0x505864}))[_0x43f959(0x109)][_0x43f959(0x370)];}async[_0x27ba00(0x7d)](_0x3c14a3){const _0x5aa4ce=_0x27ba00,_0x47d075=this['_getAPIPrefixPath']()+'/'+_0x3c14a3[_0x5aa4ce(0x219)]+_0x5aa4ce(0x88)+_0x3c14a3[_0x5aa4ce(0x99)];await this['_HTTPService'][_0x5aa4ce(0x2f7)](_0x47d075,{'body':_0x3c14a3});}async['allowed'](_0x2d1e10){const _0x7e0217=_0x27ba00,_0xd0bc1d=this['_getAPIPrefixPath']()+'/'+_0x2d1e10[_0x7e0217(0x219)]+_0x7e0217(0x88)+_0x2d1e10['objectID']+_0x7e0217(0x1ff);return(await this[_0x7e0217(0x36a)][_0x7e0217(0x1c7)](_0xd0bc1d,{'body':_0x2d1e10}))[_0x7e0217(0x109)][_0x7e0217(0x2cd)];}async['batchAllowed'](_0x21375b){const _0x358d48=_0x27ba00,_0x4a4a5d=this[_0x358d48(0x1aa)]()+_0x358d48(0xc2);return(await this[_0x358d48(0x36a)]['post'](_0x4a4a5d,{'body':{'requests':_0x21375b}}))[_0x358d48(0x109)][_0x358d48(0x243)];}async['listRoles'](_0x509fe6){const _0xeaaee3=_0x27ba00,_0x406c6a=this[_0xeaaee3(0x1aa)]()+'/'+_0x509fe6[_0xeaaee3(0x219)]+'/role',_0x56f72c=await this[_0xeaaee3(0x36a)][_0xeaaee3(0x1c7)](_0x406c6a,{'body':_0x509fe6});return{'roles':_0x56f72c['body'][_0xeaaee3(0xa9)],'actions':_0x56f72c[_0xeaaee3(0x109)]['actions']};}async[_0x27ba00(0x2bf)](_0x1ffcf5){const _0x58566f=_0x27ba00,_0xc26730=this[_0x58566f(0x1aa)]()+_0x58566f(0x3cf);await this[_0x58566f(0x36a)][_0x58566f(0xe1)](_0xc26730,{'params':{'collaboratorID':_0x1ffcf5[_0x58566f(0x13c)],'objectID':_0x1ffcf5[_0x58566f(0x99)],'unitID':_0x1ffcf5['unitID']}});}async[_0x27ba00(0x397)](_0x507f9f){const _0x593fd7=_0x27ba00,_0x1f2506=this[_0x593fd7(0x1aa)]()+'/collaborator';await this['_HTTPService']['patch'](_0x1f2506,{'body':_0x507f9f});}async[_0x27ba00(0x1b7)](_0x108d2a){const _0x5dffec=_0x27ba00,_0x5998e9=this[_0x5dffec(0x1aa)]()+'/collaborator';await this['_HTTPService']['post'](_0x5998e9,{'body':_0x108d2a});}async[_0x27ba00(0xe9)](_0x5be97f){const _0x106c8e=_0x27ba00,_0x5d8314=this[_0x106c8e(0x1aa)]()+_0x106c8e(0x3cf);return(await this[_0x106c8e(0x36a)][_0x106c8e(0x1dd)](_0x5d8314,{'params':{'objectID':_0x5be97f['objectID'],'unitID':_0x5be97f[_0x106c8e(0x12c)]}}))[_0x106c8e(0x109)][_0x106c8e(0x1b6)];}async['putCollaborators'](_0x54003c){const _0x3880b5=this['_getAPIPrefixPath']()+'/collaborator';await this['_HTTPService']['put'](_0x3880b5,{'body':_0x54003c});}};Nt=yo([gs(0x0,_0x27d762(_0x3fd702)),gs(0x1,_0x27d762(_0xeb1b98))],Nt);var Mo=Object[_0x27ba00(0x198)],Ao=Object['getOwnPropertyDescriptor'],Lo=(_0x50e8ab,_0x3acada,_0x4eb102,_0x46dca0)=>{const _0x283d4b=_0x27ba00;for(var _0x116407=_0x46dca0>0x1?void 0x0:_0x46dca0?Ao(_0x3acada,_0x4eb102):_0x3acada,_0x47a614=_0x50e8ab[_0x283d4b(0x117)]-0x1,_0x48c56e;_0x47a614>=0x0;_0x47a614--)(_0x48c56e=_0x50e8ab[_0x47a614])&&(_0x116407=(_0x46dca0?_0x48c56e(_0x3acada,_0x4eb102,_0x116407):_0x48c56e(_0x116407))||_0x116407);return _0x46dca0&&_0x116407&&Mo(_0x3acada,_0x4eb102,_0x116407),_0x116407;},$o=(_0x5ea9bb,_0x570a9b)=>(_0x3ddbaa,_0x2d70c6)=>_0x570a9b(_0x3ddbaa,_0x2d70c6,_0x5ea9bb);let it=class{constructor(_0x29fec8){const _0x41f145=_0x27ba00;this[_0x41f145(0xe4)]=_0x29fec8,this[_0x41f145(0x21c)]();}[_0x27ba00(0x21c)](){const _0x4d034f=_0x27ba00;this[_0x4d034f(0xe4)][_0x4d034f(0x2e2)]({'interceptor':(_0x108d37,_0x36da16)=>{const _0x30c3ae=_0x4d034f,_0xfcd030=_0x108d37[_0x30c3ae(0x155)],_0xc959a4=_0x371ad3();return _0xc959a4&&_0xfcd030[_0x30c3ae(0x371)](_0x30c3ae(0x244),_0xc959a4),_0x36da16(_0x108d37);}});}};it=Lo([$o(0x0,_0x27d762(_0x3fd702))],it);var jo=Object['defineProperty'],xo=Object[_0x27ba00(0x280)],Ho=(_0x223829,_0xc0961b,_0x162a2d,_0x12e56e)=>{for(var _0x5413d5=_0x12e56e>0x1?void 0x0:_0x12e56e?xo(_0xc0961b,_0x162a2d):_0xc0961b,_0x2efe4a=_0x223829['length']-0x1,_0x395505;_0x2efe4a>=0x0;_0x2efe4a--)(_0x395505=_0x223829[_0x2efe4a])&&(_0x5413d5=(_0x12e56e?_0x395505(_0xc0961b,_0x162a2d,_0x5413d5):_0x395505(_0x5413d5))||_0x5413d5);return _0x12e56e&&_0x5413d5&&jo(_0xc0961b,_0x162a2d,_0x5413d5),_0x5413d5;},It=(_0x51e0da,_0x15192c)=>(_0x1a1a63,_0x34e2b3)=>_0x15192c(_0x1a1a63,_0x34e2b3,_0x51e0da);const ko=[_0x27ba00(0x234),_0x27ba00(0x1ac),'image/jpg','image/gif',_0x27ba00(0x239)],Bo=0x5*0x400*0x400,Vo=_0x27ba00(0x1e3),Fo=_0x27ba00(0x17a),Wo=_0x27ba00(0x2d2),Go=_0x27ba00(0x28c);let Ut=class{constructor(_0x48a69e,_0x2c1b7f,_0x5b8655){const _0x56c46c=_0x27ba00;l(this,'_waitCount',0x0),l(this,_0x56c46c(0x251),new _0x1a4ff5()),l(this,_0x56c46c(0xb2),this[_0x56c46c(0x251)]),l(this,_0x56c46c(0x73),new Map()),(this[_0x56c46c(0xe4)]=_0x48a69e,this['_configService']=_0x2c1b7f,this[_0x56c46c(0xe3)]=_0x5b8655);}['setWaitCount'](_0x23d2b7){const _0x241b3a=_0x27ba00;this[_0x241b3a(0x35f)]=_0x23d2b7,this[_0x241b3a(0x251)][_0x241b3a(0x8c)](_0x23d2b7);}[_0x27ba00(0x34b)](_0x3f14ff,_0x2ece94){const _0x81bf5b=_0x27ba00;if(_0x2ece94===_0x3669a1[_0x81bf5b(0x1c1)]){const _0x2879ac=new Image();return _0x2879ac[_0x81bf5b(0x233)]=_0x3f14ff,_0x2879ac;}return this['_imageSourceCache']['get'](_0x3f14ff);}[_0x27ba00(0x3e2)](_0x38bd0a,_0x5e2b71,_0x265f7c){const _0x5a1ad8=_0x27ba00;_0x5e2b71===_0x3669a1[_0x5a1ad8(0x1c1)]||_0x265f7c==null||this[_0x5a1ad8(0x73)][_0x5a1ad8(0x371)](_0x38bd0a,_0x265f7c);}async[_0x27ba00(0x1b1)](_0x527076){const _0x28244c=_0x27ba00;try{const _0x133235=this['_replaceFileID'](this[_0x28244c(0x6e)](),''+_0x527076),_0x1b0283=(await this[_0x28244c(0xe4)][_0x28244c(0x1dd)](_0x133235))['body'];if(_0x1b0283['error']&&_0x1b0283[_0x28244c(0x1e5)]['code']===As['OK']){const _0x22d0fc=new URL(_0x1b0283[_0x28244c(0x23b)],this[_0x28244c(0x1c2)]())[_0x28244c(0x344)]();return Promise[_0x28244c(0x3bb)](_0x22d0fc);}return Promise['reject'](_0x1b0283['error']);}catch(_0x3ca572){return Promise[_0x28244c(0x74)](_0x3ca572);}}async[_0x27ba00(0x32f)](_0x5e1193){const _0x4f9017=_0x27ba00;let _0x3c431b='';if(!ko[_0x4f9017(0x32e)](_0x5e1193['type']))return this[_0x4f9017(0x34c)](),Promise['reject'](new Error(_0x49c411['ERROR_IMAGE_TYPE']));if(_0x5e1193[_0x4f9017(0x333)]>Bo)return this[_0x4f9017(0x34c)](),Promise[_0x4f9017(0x74)](new Error(_0x49c411['ERROR_EXCEED_SIZE']));try{const _0x4092c6=new FormData();_0x4092c6[_0x4f9017(0xc1)](_0x4f9017(0x1df),_0x5e1193);const _0x5ef4bb=this[_0x4f9017(0xe3)][_0x4f9017(0x2a3)](),_0x511289=_0x5ef4bb==null?void 0x0:_0x5ef4bb[_0x4f9017(0x242)]();if(!_0x511289)throw new Error('unitId\x20is\x20not\x20found');const _0x1706b3=this[_0x4f9017(0xdd)]()+_0x4f9017(0x307)+_0x5e1193['size'][_0x4f9017(0x344)]()+_0x4f9017(0x228)+Ls[_0x4f9017(0x185)]+'&assign='+encodeURIComponent(_0x511289),_0x16823e=await(await fetch(_0x1706b3,{'method':'POST','body':_0x4092c6}))['json']();if(typeof _0x16823e['FileId']!=_0x4f9017(0x16d))return this[_0x4f9017(0x34c)](),Promise[_0x4f9017(0x74)](new Error(_0x49c411[_0x4f9017(0x2df)]));_0x3c431b=_0x16823e[_0x4f9017(0x33a)];}catch{return this['_decreaseWaiting'](),Promise[_0x4f9017(0x74)](new Error(_0x49c411[_0x4f9017(0x2df)]));}return new Promise((_0xb74059,_0x21dfb4)=>{const _0x594b66=_0x4f9017,_0x43318a=new FileReader();_0x43318a[_0x594b66(0x106)](_0x5e1193),_0x43318a[_0x594b66(0x351)]=_0x39f980=>{const _0x5a4da=_0x594b66;var _0x1f7977;const _0x42e650=(_0x1f7977=_0x39f980[_0x5a4da(0x1d6)])==null?void 0x0:_0x1f7977[_0x5a4da(0x105)];if(_0x42e650==null){this[_0x5a4da(0x34c)](),_0x21dfb4(new Error(_0x49c411[_0x5a4da(0x2df)]));return;}const _0x5482e4=_0x38eaa3[_0x5a4da(0x31a)](0x6);_0xb74059({'imageId':_0x5482e4,'imageSourceType':_0x3669a1[_0x5a4da(0x30f)],'source':_0x3c431b,'base64Cache':_0x42e650,'status':_0x49c411[_0x5a4da(0x2b9)]}),this[_0x5a4da(0x34c)]();};});}[_0x27ba00(0xdd)](){const _0x10fbcf=_0x27ba00;var _0x19eb42,_0xc72136;const _0x59c572=this[_0x10fbcf(0x19e)][_0x10fbcf(0x3c6)](Vo),_0x3ded62=this[_0x10fbcf(0x19e)][_0x10fbcf(0x3c6)](L);return(_0xc72136=(_0x19eb42=_0x3ded62==null?void 0x0:_0x3ded62['uploadFileServerUrl'])!=null?_0x19eb42:_0x59c572)!=null?_0xc72136:Fo;}[_0x27ba00(0x6e)](){const _0xefa5ab=_0x27ba00;var _0x2677fe,_0x484234;const _0x5c1770=this['_configService'][_0xefa5ab(0x3c6)](Wo),_0x4d7792=this[_0xefa5ab(0x19e)][_0xefa5ab(0x3c6)](L);return(_0x484234=(_0x2677fe=_0x4d7792==null?void 0x0:_0x4d7792[_0xefa5ab(0xa2)])!=null?_0x2677fe:_0x5c1770)!=null?_0x484234:Go;}[_0x27ba00(0x1c2)](){const _0x2f0b7d=_0x27ba00;var _0x4b75bd;const _0x805400=this[_0x2f0b7d(0x19e)]['getConfig'](L);return(_0x4b75bd=_0x805400==null?void 0x0:_0x805400['downloadEndpointUrl'])!=null?_0x4b75bd:location['origin'];}[_0x27ba00(0x2e8)](_0x37c171,_0x231665){const _0x64a23c=_0x27ba00;return _0x37c171['replace'](_0x64a23c(0x24c),_0x231665);}[_0x27ba00(0x34c)](){const _0x280124=_0x27ba00;this[_0x280124(0x35f)]-=0x1,this[_0x280124(0x251)]['next'](this['_waitCount']);}};Ut=Ho([It(0x0,_0x27d762(_0x3fd702)),It(0x1,_0xeb1b98),It(0x2,_0x27d762(_0x4a4945))],Ut);var Yo=Object[_0x27ba00(0x198)],Ko=Object[_0x27ba00(0x280)],Xo=(_0x11f431,_0x4d67a8,_0x539eaa,_0x30c2c5)=>{const _0x499064=_0x27ba00;for(var _0x52f500=_0x30c2c5>0x1?void 0x0:_0x30c2c5?Ko(_0x4d67a8,_0x539eaa):_0x4d67a8,_0x3b518d=_0x11f431[_0x499064(0x117)]-0x1,_0x14f630;_0x3b518d>=0x0;_0x3b518d--)(_0x14f630=_0x11f431[_0x3b518d])&&(_0x52f500=(_0x30c2c5?_0x14f630(_0x4d67a8,_0x539eaa,_0x52f500):_0x14f630(_0x52f500))||_0x52f500);return _0x30c2c5&&_0x52f500&&Yo(_0x4d67a8,_0x539eaa,_0x52f500),_0x52f500;},Pe=(_0x2bedcc,_0x379352)=>(_0x16311e,_0x319446)=>_0x379352(_0x16311e,_0x319446,_0x2bedcc);let Ke=class extends _0x504ec7{constructor(_0x547205,_0x2941dd,_0x2e237e,_0x3e1545,_0x15985f){const _0x2b2de8=_0x27ba00;super(),this[_0x2b2de8(0x2a6)]=_0x547205,this[_0x2b2de8(0xe3)]=_0x2941dd,this['_permissionService']=_0x2e237e,this[_0x2b2de8(0x26d)]=_0x3e1545,this['_localeService']=_0x15985f,this[_0x2b2de8(0x10a)](),this[_0x2b2de8(0x382)]();}[_0x27ba00(0x382)](){const _0x41deb6=_0x27ba00,_0x177b6e=async _0x5d006e=>{const _0x3d935f=_0x1a62;(await this[_0x3d935f(0x26d)][_0x3d935f(0x223)](_0x5d006e))[_0x3d935f(0x359)][_0x3d935f(0x31c)](_0x2e3311(_0x1782d0=>_0x1782d0[_0x3d935f(0xc3)]===_0x6fa194['SHOULD_CLOSE_CONN']),_0x541db9(this[_0x3d935f(0x132)]))[_0x3d935f(0x3c1)](_0x259c0e=>{const _0x2e56cc=_0x3d935f,_0x72cec2=_0x259c0e,{reason:_0x4448df}=_0x72cec2['data'];this[_0x2e56cc(0x2a6)][_0x2e56cc(0x1dd)](_0x17da32)['show']({'type':_0x104514[_0x2e56cc(0x27a)],'content':this[_0x2e56cc(0x12e)]['t'](_0x2e56cc(0x6a))+'('+_0x4448df+')'}),this[_0x2e56cc(0xa4)]['updatePermissionPoint'](new _0x474cf8(_0x5d006e)['id'],!0x1),this['_collaborationSessionService'][_0x2e56cc(0x23e)](_0x5d006e);});};_0x4c28c6(this['_univerInstanceService'][_0x41deb6(0x1e6)](_0x28cb79['UNIVER_SHEET']),this[_0x41deb6(0xe3)][_0x41deb6(0x1e6)](_0x28cb79[_0x41deb6(0x2e3)]))[_0x41deb6(0x31c)](_0x42ddbb(_0x2a56c=>_0x2a56c[_0x41deb6(0x242)]()),_0x2e3311(_0x45b8dc=>!_0x3682dd(_0x45b8dc)),_0x541db9(this['dispose$']))[_0x41deb6(0x3c1)](_0xcaf9e0=>{_0x177b6e(_0xcaf9e0);});}[_0x27ba00(0x10a)](){const _0x93a5a6=_0x27ba00,_0x353e3c=async _0x458b13=>{const _0x147285=_0x1a62;(await this[_0x147285(0x26d)][_0x147285(0x223)](_0x458b13))[_0x147285(0x359)][_0x147285(0x31c)](_0x2e3311(_0x3596af=>_0x3596af[_0x147285(0xc3)]===_0x6fa194[_0x147285(0x3a7)]),_0x541db9(this[_0x147285(0x132)]))[_0x147285(0x3c1)](_0x39307d=>{const _0x3b03f1=_0x147285,_0x1627c6=_0x39307d,{objectId:_0x2cdd9f}=_0x1627c6['data'],_0x3d31d3=this[_0x3b03f1(0x2a6)][_0x3b03f1(0x1dd)](_0xfc27fa);_0x2cdd9f===_0x458b13?_0x3d31d3['initWorkbookPermissionChange'](_0x458b13):_0x3d31d3[_0x3b03f1(0x225)](_0x458b13,_0x2cdd9f);});};_0x4c28c6(this[_0x93a5a6(0xe3)][_0x93a5a6(0x1e6)](_0x28cb79[_0x93a5a6(0xdf)]),this['_univerInstanceService'][_0x93a5a6(0x1e6)](_0x28cb79[_0x93a5a6(0x2e3)]))[_0x93a5a6(0x31c)](_0x42ddbb(_0x3b49cc=>_0x3b49cc[_0x93a5a6(0x242)]()),_0x2e3311(_0x250240=>!_0x3682dd(_0x250240)),_0x541db9(this[_0x93a5a6(0x132)]))[_0x93a5a6(0x3c1)](_0x113213=>{_0x353e3c(_0x113213);});}};Ke=Xo([_0x43e6ff(_0x2baed3[_0x27ba00(0x324)],Ke),Pe(0x0,_0x27d762(_0x2a6c13)),Pe(0x1,_0x4a4945),Pe(0x2,_0xdc2a7e),Pe(0x3,_0x27d762(ce)),Pe(0x4,_0x27d762(_0x5d963b))],Ke);var Jo=Object[_0x27ba00(0x198)],qo=Object[_0x27ba00(0x280)],zo=(_0x41e9b7,_0x29c6f7,_0x37048d,_0x22056f)=>{for(var _0x51d53d=_0x22056f>0x1?void 0x0:_0x22056f?qo(_0x29c6f7,_0x37048d):_0x29c6f7,_0x425fd0=_0x41e9b7['length']-0x1,_0x251df1;_0x425fd0>=0x0;_0x425fd0--)(_0x251df1=_0x41e9b7[_0x425fd0])&&(_0x51d53d=(_0x22056f?_0x251df1(_0x29c6f7,_0x37048d,_0x51d53d):_0x251df1(_0x51d53d))||_0x51d53d);return _0x22056f&&_0x51d53d&&Jo(_0x29c6f7,_0x37048d,_0x51d53d),_0x51d53d;},Ss=(_0x427912,_0x49eb2a)=>(_0x33775c,_0x4e33d5)=>_0x49eb2a(_0x33775c,_0x4e33d5,_0x427912);let Mt=class{constructor(_0x25f145,_0x3e8589){const _0x214d5f=_0x27ba00;this[_0x214d5f(0x19e)]=_0x25f145,this[_0x214d5f(0xe4)]=_0x3e8589;}async[_0x27ba00(0x147)](_0x5140cf,_0x76494e){const _0x117d75=_0x27ba00;var _0x312e6e;const {unitID:_0x22a5a2,type:_0x21cb61,revision:_0x1ac9a4=0x0}=_0x76494e,_0x146b09=this['_getSnapshotAPIPrefix']()+'/'+_0x21cb61+'/unit/'+_0x22a5a2+_0x117d75(0x2db)+_0x1ac9a4,_0x34f373=(await this[_0x117d75(0xe4)][_0x117d75(0x1dd)](_0x146b09))[_0x117d75(0x109)],_0x2e8240=(_0x312e6e=_0x34f373[_0x117d75(0x37a)])==null?void 0x0:_0x312e6e[_0x117d75(0x68)];if(_0x2e8240){const _0x1bfa41=_0x2e8240==null?void 0x0:_0x2e8240[_0x117d75(0x3b8)],_0x12401d=_0x55dc89[_0x117d75(0x217)](_0x21fcd3(_0x1bfa41));_0x2e8240['originalMeta']=_0x12401d,Object[_0x117d75(0x37d)](_0x2e8240[_0x117d75(0x2ac)])[_0x117d75(0x392)](([,_0x10591d])=>{const _0x3b4ea6=_0x117d75,_0x371cf2=_0x10591d[_0x3b4ea6(0x3b8)],_0x45360f=_0x55dc89[_0x3b4ea6(0x217)](_0x21fcd3(_0x371cf2));_0x10591d[_0x3b4ea6(0x3b8)]=_0x45360f;});}return _0x34f373;}async[_0x27ba00(0x367)](_0xf45486,_0x4ba1f4){const _0x3dfe91=_0x27ba00,{unitID:_0x4fe09f,type:_0x145a63,blockID:_0x52ea49}=_0x4ba1f4,_0x420a5a=this['_getAPIPrefix']()+'/'+_0x145a63+_0x3dfe91(0x3da)+_0x4fe09f+_0x3dfe91(0x229)+_0x52ea49;return(await this[_0x3dfe91(0xe4)][_0x3dfe91(0x1dd)](_0x420a5a))['body'];}async[_0x27ba00(0x284)](_0x26b855,_0x52b371){const _0x28802c=_0x27ba00,{unitID:_0xf8b5d,type:_0x111f33,blockID:_0x35eaea}=_0x52b371,_0x496705=this[_0x28802c(0x172)]()+_0x28802c(0x229)+_0x111f33+_0x28802c(0x3da)+_0xf8b5d+_0x28802c(0x229)+_0x35eaea;return(await this[_0x28802c(0xe4)][_0x28802c(0x1dd)](_0x496705))[_0x28802c(0x109)];}async[_0x27ba00(0x1c0)](_0x625ee2,_0x4bae29){const _0x3e51e5=_0x27ba00,{unitID:_0x4a6344,type:_0x179334,from:_0x7e7782,to:_0x687af7}=_0x4bae29,_0x4211ad=this[_0x3e51e5(0x172)]()+'/'+_0x179334+_0x3e51e5(0x3da)+_0x4a6344+_0x3e51e5(0x348)+_0x7e7782+_0x3e51e5(0x2fd)+_0x687af7;return(await this[_0x3e51e5(0xe4)][_0x3e51e5(0x1dd)](_0x4211ad))['body'];}['_getSnapshotAPIPrefix'](){const _0x38c91d=_0x27ba00;var _0x41c545;return(_0x41c545=this[_0x38c91d(0x19e)]['getConfig'](gn))!=null?_0x41c545:this[_0x38c91d(0x172)]();}['_getAPIPrefix'](){const _0xbd96d3=_0x27ba00;var _0x951456,_0x3d0166;const _0x4dd7b5=this[_0xbd96d3(0x19e)][_0xbd96d3(0x3c6)](fn),_0x43de89=this['_configService'][_0xbd96d3(0x3c6)](L);return(_0x3d0166=(_0x951456=_0x43de89==null?void 0x0:_0x43de89[_0xbd96d3(0x325)])!=null?_0x951456:_0x4dd7b5)!=null?_0x3d0166:mn;}async[_0x27ba00(0x2fe)](_0x3533a3,_0x8da9c4){const _0x4e8b39=_0x27ba00,_0xf2cbc5='/universer-api/snapshot/'+_0x8da9c4[_0x4e8b39(0xd5)]+_0x4e8b39(0x3da)+_0x8da9c4[_0x4e8b39(0x12c)]+_0x4e8b39(0x1e9);return(await this[_0x4e8b39(0xe4)]['get'](_0xf2cbc5,{'params':{'resourceId':JSON[_0x4e8b39(0xea)](_0x8da9c4[_0x4e8b39(0x15b)])}}))[_0x4e8b39(0x109)];}['saveSnapshot'](){const _0x283969=_0x27ba00;throw new Error(_0x283969(0x340));}[_0x27ba00(0x381)](){const _0x18865c=_0x27ba00;throw new Error(_0x18865c(0x340));}[_0x27ba00(0x3a3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x27ba00(0x70)](){const _0x92b15e=_0x27ba00;throw new Error(_0x92b15e(0x340));}};Mt=zo([Ss(0x0,_0xeb1b98),Ss(0x1,_0x27d762(_0x3fd702))],Mt);var Zo=Object[_0x27ba00(0x198)],Qo=Object[_0x27ba00(0x280)],ea=(_0x4a2ed2,_0x3258ae,_0x303612,_0x45db3d)=>{for(var _0x5a81cb=_0x45db3d>0x1?void 0x0:_0x45db3d?Qo(_0x3258ae,_0x303612):_0x3258ae,_0x582f88=_0x4a2ed2['length']-0x1,_0x3f2bfc;_0x582f88>=0x0;_0x582f88--)(_0x3f2bfc=_0x4a2ed2[_0x582f88])&&(_0x5a81cb=(_0x45db3d?_0x3f2bfc(_0x3258ae,_0x303612,_0x5a81cb):_0x3f2bfc(_0x5a81cb))||_0x5a81cb);return _0x45db3d&&_0x5a81cb&&Zo(_0x3258ae,_0x303612,_0x5a81cb),_0x5a81cb;},ye=(_0x22efca,_0x1e24fc)=>(_0xa28aa7,_0x17e035)=>_0x1e24fc(_0xa28aa7,_0x17e035,_0x22efca);let At=class extends _0x231523{constructor(_0x43ba28,_0x5f44e9,_0x1e51eb,_0x183083,_0x4ca8d9){const _0x4aac64=_0x27ba00;super(_0x43ba28,_0x5f44e9,_0x1e51eb),this[_0x4aac64(0x32a)]=_0x183083,this['_logService']=_0x4ca8d9;}[_0x27ba00(0x100)](_0x45574c,_0x4e3ddc){const _0x49fc17=_0x27ba00,_0x57ca32=this[_0x49fc17(0x2d7)](_0x45574c);if(_0x57ca32)try{const _0x82ccb=this[_0x49fc17(0x94)](_0x57ca32,_0x4e3ddc);this[_0x49fc17(0x97)](_0x45574c,_0x82ccb);}catch(_0x3b924a){this[_0x49fc17(0xd6)][_0x49fc17(0x1e5)]('[CollaborationUndoRedoService]',_0x3b924a),this['_clearUndo'](_0x45574c);}const _0x3e493c=this[_0x49fc17(0x7f)](_0x45574c);if(_0x3e493c)try{const _0x1e3715=this['_transformStack'](_0x3e493c,_0x4e3ddc);this[_0x49fc17(0x15e)](_0x45574c,_0x1e3715);}catch(_0x5ad456){this['_logService'][_0x49fc17(0x1e5)](_0x5ad456),this[_0x49fc17(0x13f)](_0x45574c);}}[_0x27ba00(0x2bd)](_0x1675f2){const _0x159de6=this['_getUndoStack'](_0x1675f2);_0x159de6&&(_0x159de6['length']=0x0,this['_updateStatus']());}['_clearRedo'](_0x5ed231){const _0x1d0a77=_0x27ba00,_0x472226=this[_0x1d0a77(0x7f)](_0x5ed231);_0x472226&&(_0x472226[_0x1d0a77(0x117)]=0x0,this[_0x1d0a77(0x20d)]());}[_0x27ba00(0x97)](_0x1c2ee,_0x5cfe29){const _0x3d3f78=_0x27ba00;this[_0x3d3f78(0x31d)][_0x3d3f78(0x371)](_0x1c2ee,_0x5cfe29),this['_updateStatus']();}[_0x27ba00(0x15e)](_0x5630a0,_0x5d08a9){const _0x186639=_0x27ba00;this[_0x186639(0x28e)][_0x186639(0x371)](_0x5630a0,_0x5d08a9),this[_0x186639(0x20d)]();}[_0x27ba00(0x94)](_0x28c13d,_0x44c034){const _0x4b60a8=_0x27ba00,_0x3e098a=[];let _0x643dd9=_0x44c034,_0x4c4de5=_0x44c034;for(let _0x2111e4=_0x28c13d[_0x4b60a8(0x117)]-0x1;_0x2111e4>=0x0;_0x2111e4--){const {unitID:_0x20596a,undoMutations:_0x4fdc1c,redoMutations:_0x1ed6d4}=_0x28c13d[_0x2111e4],_0x64a327=this['_transformService'][_0x4b60a8(0x3b9)](_0x643dd9,_0x4fdc1c),_0x43f126=this[_0x4b60a8(0x32a)][_0x4b60a8(0x3b9)](_0x4c4de5,_0x1ed6d4);if(_0x539600(_0x64a327)||_0x539600(_0x43f126)){this[_0x4b60a8(0xd6)][_0x4b60a8(0x1e5)](_0x4b60a8(0x337),_0x4b60a8(0x82),_0x64a327,_0x43f126);break;}_0x643dd9=_0x64a327[_0x4b60a8(0x379)],_0x4c4de5=_0x43f126[_0x4b60a8(0x379)],_0x3e098a[_0x4b60a8(0x2ec)]({'unitID':_0x20596a,'undoMutations':_0x64a327[_0x4b60a8(0x2c1)],'redoMutations':_0x43f126[_0x4b60a8(0x2c1)]});}return _0x3e098a[_0x4b60a8(0x3bf)]();}};At=ea([ye(0x0,_0x4a4945),ye(0x1,_0xf80f3b),ye(0x2,_0x3eb638),ye(0x3,_0x29f88d),ye(0x4,_0x1dd153)],At);class ta extends _0x504ec7{constructor(){const _0x5a1084=_0x27ba00;super(),l(this,_0x5a1084(0x38c)),this[_0x5a1084(0x38c)]=_0x1d5cc2(window,_0x5a1084(0x336))[_0x5a1084(0x31c)](_0x350758(this[_0x5a1084(0x132)]),_0x416754(0x1),_0x5a384c(void 0x0));}['setParam'](_0xbebcee,_0x2caa81,_0x4b612e=!0x1){const _0x4a7e2e=_0x27ba00,_0x317b0b=new URL(window[_0x4a7e2e(0x1fb)][_0x4a7e2e(0x1d8)]);_0x317b0b[_0x4a7e2e(0x35a)][_0x4a7e2e(0x371)](_0xbebcee,_0x2caa81),_0x4b612e?window['history']['replaceState']('','',_0x317b0b['toString']()):window['history'][_0x4a7e2e(0x29a)]('','',_0x317b0b['toString']());}['removeParam'](_0x3b08db,_0x2e47b1=!0x1){const _0x14922e=_0x27ba00,_0x2fbc21=new URL(window[_0x14922e(0x1fb)]['href']);_0x2fbc21['searchParams']['delete'](_0x3b08db),_0x2e47b1?window['history'][_0x14922e(0x1de)]('','',_0x2fbc21[_0x14922e(0x344)]()):window[_0x14922e(0x28f)][_0x14922e(0x29a)]('','',_0x2fbc21[_0x14922e(0x344)]());}[_0x27ba00(0x3ab)](_0x2eee1e){const _0x10cb82=_0x27ba00;var _0x122efa;return(_0x122efa=new URL(window[_0x10cb82(0x1fb)]['href'])[_0x10cb82(0x35a)][_0x10cb82(0x1dd)](_0x2eee1e))!=null?_0x122efa:void 0x0;}}var Gs=Object[_0x27ba00(0x198)],sa=Object[_0x27ba00(0x280)],ia=(_0xd036bb,_0x17d7d2,_0x4922e6)=>_0x17d7d2 in _0xd036bb?Gs(_0xd036bb,_0x17d7d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4922e6}):_0xd036bb[_0x17d7d2]=_0x4922e6,na=(_0x2cab64,_0x3a00b1,_0x2ad88c,_0x45d045)=>{const _0x4fe304=_0x27ba00;for(var _0x2bcb1b=_0x45d045>0x1?void 0x0:_0x45d045?sa(_0x3a00b1,_0x2ad88c):_0x3a00b1,_0x4c123b=_0x2cab64[_0x4fe304(0x117)]-0x1,_0x4f7312;_0x4c123b>=0x0;_0x4c123b--)(_0x4f7312=_0x2cab64[_0x4c123b])&&(_0x2bcb1b=(_0x45d045?_0x4f7312(_0x3a00b1,_0x2ad88c,_0x2bcb1b):_0x4f7312(_0x2bcb1b))||_0x2bcb1b);return _0x45d045&&_0x2bcb1b&&Gs(_0x3a00b1,_0x2ad88c,_0x2bcb1b),_0x2bcb1b;},Ve=(_0x1a7bb0,_0x4b7427)=>(_0x404339,_0x9ba255)=>_0x4b7427(_0x404339,_0x9ba255,_0x1a7bb0),ra=(_0x362abf,_0x429bb4,_0x472a70)=>ia(_0x362abf,_0x429bb4+'',_0x472a70);const oa=_0x27ba00(0x3a0);let Lt=class extends _0x2b5559{constructor(_0x4278b5=Nn,_0x56166f,_0x598317,_0x268ad8,_0x231650){const _0x4793db=_0x27ba00;super(),this[_0x4793db(0x34a)]=_0x4278b5,this[_0x4793db(0xd6)]=_0x56166f,this[_0x4793db(0x2f6)]=_0x598317,this[_0x4793db(0x2a6)]=_0x268ad8,this[_0x4793db(0x19e)]=_0x231650;const {..._0x28a7b5}=this[_0x4793db(0x34a)];this[_0x4793db(0x19e)][_0x4793db(0x29d)](L,_0x28a7b5);}[_0x27ba00(0x27f)](){const _0x4f5d67=_0x27ba00;this[_0x4f5d67(0x174)]();}['onRendered'](){const _0x41a22e=_0x27ba00;this[_0x41a22e(0x2ff)]();}[_0x27ba00(0x174)](){const _0x343c97=_0x27ba00;var _0x2fad8a,_0x59cd32,_0x54ea6d,_0x43e5ba;this['_injector'][_0x343c97(0x262)](_0x3b566c)&&this[_0x343c97(0xd6)][_0x343c97(0x1e5)](_0x343c97(0x191),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x506030=[[_0x3b566c,{'useClass':At}],[ce],[Gt],[_0x3fd702],[Ws,{'useClass':ta}],[ae],[D],[_0x2e30ea],[Qe],[et],[Ze],[Ft],[st],[it],[js],[Ke],[$s,{'useClass':(_0x59cd32=(_0x2fad8a=this['_config'])==null?void 0x0:_0x2fad8a[_0x343c97(0x16e)])!=null?_0x59cd32:Tt}],[_0xcdd277,{'useClass':_0x1a818b}],[_0x2638ed,{'useClass':Mt}],[_0x295788,{'useClass':Nt}],[_0xdaa1d3,{'useClass':Ut}],[Ae],[Ge],[Ue],[Ye],[ge]];(_0x54ea6d=this[_0x343c97(0x34a)])!=null&&_0x54ea6d[_0x343c97(0x312)]&&_0x506030[_0x343c97(0x2ec)]([nt,{'useClass':or}]),_0x506030=_0x40b69d(_0x506030,(_0x43e5ba=this[_0x343c97(0x34a)])==null?void 0x0:_0x43e5ba[_0x343c97(0x258)]),_0x506030['forEach'](_0x4a3843=>this['_injector'][_0x343c97(0x30d)](_0x4a3843)),this['_initModules']();}[_0x27ba00(0x2ff)](){const _0x518299=_0x27ba00;this[_0x518299(0x169)](this[_0x518299(0x2f6)]['registerRenderModule'](_0x28cb79['UNIVER_DOC'],[We])),this[_0x518299(0x169)](this[_0x518299(0x2f6)][_0x518299(0x26a)](_0x28cb79[_0x518299(0xdf)],[yt]));}[_0x27ba00(0x1a0)](){const _0x9d51bb=_0x27ba00;var _0xae2ae5,_0x4a733b;this['_injector'][_0x9d51bb(0x1dd)](_0x3fd702)[_0x9d51bb(0x2e2)]({'priority':0x14,'interceptor':_0x18dec9({'maxParallel':0x6})}),this[_0x9d51bb(0x2a6)][_0x9d51bb(0x1dd)](it),(_0xae2ae5=this[_0x9d51bb(0x34a)])!=null&&_0xae2ae5[_0x9d51bb(0xf6)]||this['_injector'][_0x9d51bb(0x1dd)](D)[_0x9d51bb(0x2b5)](),(_0x4a733b=this[_0x9d51bb(0x34a)])!=null&&_0x4a733b['enableAuthServer']&&this[_0x9d51bb(0x2a6)][_0x9d51bb(0x1dd)](st),this['_injector'][_0x9d51bb(0x1dd)](Ae),this['_injector'][_0x9d51bb(0x262)](Ue)&&this[_0x9d51bb(0x2a6)][_0x9d51bb(0x1dd)](Ue);}};ra(Lt,_0x27ba00(0x28a),oa),Lt=na([_0x954fb6(_0x15fcc2),Ve(0x1,_0x1dd153),Ve(0x2,_0x57cdea),Ve(0x3,_0x27d762(_0x2a6c13)),Ve(0x4,_0xeb1b98)],Lt);export{No as AUTHZ_URL_KEY,Nt as AuthzIoHttpService,Dn as COLLAB_SUBMIT_CHANGESET_URL_KEY,pn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,tt as CollaborationEntity,Rt as CollaborationSession,ce as CollaborationSessionService,Tt as CollaborationSocketService,w as CollaborationStatus,_o as CollaborationStatusDisplay,js as CommentService,Ge as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,Ot as DocCollaborationEntity,In as HEARTBEAT_INTERVAL_KEY,Us as HEARTBEAT_TIMEOUT_KEY,$s as ICollaborationSocketService,Ws as IURLService,Ut as ImageIoService,Rn as LOCAL_CACHE_INTERVAL_KEY,Pn as LOGIN_URL_KEY,D as LocalCacheService,bn as RETRY_CONNECTING_MAX_COUNT_KEY,Da as SEND_CHANGESET_TIMEOUT_KEY,fn as SNAPSHOT_SERVER_URL_KEY,gn as SNAPSHOT_URL_KEY,G as SessionStatus,Kr as SheetCollabCursorShape,Dt as SheetCollaborationEntity,Mt as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,ta as WebURLService,Un as deserializeToCombResponse,Mn as serializeCombRequest};