@univerjs-pro/collaboration-client 0.4.1-nightly.202410211606 → 0.4.1-nightly.202410241606

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 _0x12409a=_0x4bc7;(function(_0x57c949,_0xd5d6e2){const _0x231639=_0x4bc7,_0x3bcfbb=_0x57c949();while(!![]){try{const _0x10f1c9=parseInt(_0x231639(0x336))/0x1*(-parseInt(_0x231639(0x129))/0x2)+parseInt(_0x231639(0x11b))/0x3+parseInt(_0x231639(0x211))/0x4+parseInt(_0x231639(0x381))/0x5*(-parseInt(_0x231639(0x231))/0x6)+-parseInt(_0x231639(0x2e9))/0x7+parseInt(_0x231639(0x348))/0x8*(parseInt(_0x231639(0x260))/0x9)+parseInt(_0x231639(0x1c4))/0xa;if(_0x10f1c9===_0xd5d6e2)break;else _0x3bcfbb['push'](_0x3bcfbb['shift']());}catch(_0x5f343e){_0x3bcfbb['push'](_0x3bcfbb['shift']());}}}(_0xe1d4,0x758ee));var si=Object[_0x12409a(0x1ee)],ii=(_0x4bd1e2,_0x1fcc32,_0x3b4603)=>_0x1fcc32 in _0x4bd1e2?si(_0x4bd1e2,_0x1fcc32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b4603}):_0x4bd1e2[_0x1fcc32]=_0x3b4603,l=(_0x46e8cf,_0x38c55b,_0x3d7ae0)=>ii(_0x46e8cf,typeof _0x38c55b!=_0x12409a(0x1e8)?_0x38c55b+'':_0x38c55b,_0x3d7ae0);import{createIdentifier as _0x2fc4d3,Inject as _0x565e28,Disposable as _0x1efbc8,DisposableCollection as _0x29a9a9,toDisposable as _0x5ef5c0,IConfigService as _0x301e4e,ILogService as _0x2fef42,UserManagerService as _0x1f884e,UniverInstanceType as _0x351a49,IUniverInstanceService as _0x114f27,LocaleService as _0x128cab,Optional as _0x1a9909,RxDisposable as _0x5d8701,Injector as _0x3f178c,Tools as _0x5bdceb,ILocalStorageService as _0x57776d,Rectangle as _0x3b6a0d,ICommandService as _0x2af4cf,JSONX as _0x5294e6,CommandType as _0x1070ad,IPermissionService as _0x4594fa,IUndoRedoService as _0x26c70e,sequenceExecute as _0x12c615,debounce as _0x173224,COLORS as _0x2654dc,ColorKit as _0xa805c,ThemeService as _0x376b1d,fromEventSubject as _0x3c0cfa,useDependency as _0x4a37c6,connectInjector as _0x56c2b6,Workbook as _0x4c9bc9,isInternalEditorID as _0x272710,LocalUndoRedoService as _0x18741d,IContextService as _0x26f27f,DependentOn as _0x2737b3,Plugin as _0x2545f7,touchDependencies as _0xeba9f1,IAuthzIoService as _0x57894e,mergeOverrideWithDependencies as _0x48fc26}from'@univerjs/core';import{Subject as _0x5633a5,merge as _0x23085b,takeUntil as _0x2d78ee,BehaviorSubject as _0x30f2ca,distinctUntilChanged as _0x1f7048,fromEvent as _0x983b61,map as _0x54df3a,shareReplay as _0x27a368,take as _0x470012,of as _0x303fa8,debounceTime as _0x246b10,filter as _0x1e6332,switchMap as _0x3fba78,combineLatest as _0x214399,concatMap as _0x5d8791,mapTo as _0x56c97a}from'rxjs';import{map as _0x123c40,take as _0x28aef5,filter as _0x51df9d,delay as _0x4f83c9,throttleTime as _0x39d280,takeUntil as _0xeca24a,switchMap as _0x14c343}from'rxjs/operators';import{MessageType as _0x3ea716,Tooltip as _0x5a45cb}from'@univerjs/design';import{IBeforeCloseService as _0x186c4b,IMessageService as _0x32ad3e,INotificationService as _0x2ba0b5,useObservable as _0xec0688,BuiltInUIPart as _0xc250c8,IUIPartsService as _0x2892a4}from'@univerjs/ui';import{HTTPService as _0x1a28a3,WebSocketService as _0x9095c5,MergeInterceptorFactory as _0x3b04fe,HTTPRequest as _0x369bef,IHTTPImplementation as _0x3545d6,XHRHTTPImplementation as _0x526b8a,ThresholdInterceptorFactory as _0x27806c}from'@univerjs/network';import{CollaborationEvent as _0x1a2ec1,parseChangesetToProtocol as _0x451f64,ISnapshotServerService as _0x2bb579,isTransformMutationFailure as _0x1711e0,isTransformMutationsWithChangesetSuccess as _0x568457,ITransformService as _0x5dfa67,RevisionService as _0x4b7ded,mapDocumentTypeToUniverType as _0x22736c,isTransformChangesetsSuccess as _0x35b7ff,CompressMutationService as _0x269693,parseProtocolChangeset as _0x30a82b,SnapshotService as _0x32ca9e,textEncoder as _0x249833,b64DecodeUnicode as _0x3432b1,isTransformMutationsWithChangesetFailure as _0x5c083e,UniverCollaborationPlugin as _0x33d032}from'@univerjs-pro/collaboration';import{ITelemetryService as _0xc705be}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x5566fa,DocStateChangeManagerService as _0x2ae8fb,NodePositionConvertToCursor as _0xae33e2,isValidRectRange as _0xc6104c,NodePositionConvertToRectRange as _0x4a1ef9,TEXT_RANGE_LAYER_INDEX as _0x13a457,SetDocZoomRatioOperation as _0x7ebe35}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x158fb6,SetSelectionsOperation as _0x1c4355,InsertSheetMutation as _0x565345,EmptyMutation as _0x8b0674,WorkbookEditablePermission as _0x19d13a,RefRangeService as _0x280a5a,EffectRefRangId as _0x4d74df,handleIRemoveRow as _0x8d978d,handleIRemoveCol as _0x300f40,handleMoveRange as _0x40d85b,handleInsertRow as _0x284a2f,handleInsertRangeMoveRight as _0x214bbf,handleInsertRangeMoveDown as _0x1c8722,handleInsertCol as _0x413277,handleDeleteRangeMoveUp as _0x55259b,handleDeleteRangeMoveLeft as _0x37b146,runRefRangeMutations as _0x596bfe,SetWorksheetActivateCommand as _0x7b97d2}from'@univerjs/sheets';import{IRenderManagerService as _0x3872a8,Shape as _0x5ff19f,Rect as _0x2433b1,getColor as _0x4194dd,RegularPolygon as _0x346ba4,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x1ab316,Vector2 as _0x15e28a}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x2452e8,RichTextEditingMutation as _0x5e8bc0,SetTextSelectionsOperation as _0x45e900,DocSkeletonManagerService as _0x48a76e}from'@univerjs/docs';import{ImageSourceType as _0x1b83e4,ImageUploadStatusType as _0x5daf8d,IImageIoService as _0x45bed1}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x18ada2,serializeRangeWithSheet as _0x319cba}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x44f148,VIEWPORT_KEY as _0x178749,getCoordByCell as _0x288960,getSheetObject as _0x62e069,SheetPermissionInitController as _0x3b6dd6}from'@univerjs/sheets-ui';import _0x1fd77a,{forwardRef as _0x4249ce,useRef as _0x499775,createElement as _0x50fdbf,useCallback as _0x5136b8}from'react';import{IRemoteInstanceService as _0x5e7134}from'@univerjs/rpc';import{getAttachHeader as _0x293789}from'@univerjs-pro/license';const Sn=_0x12409a(0x285),pn=_0x12409a(0xcb),vn=_0x12409a(0x23b),La=_0x12409a(0x290),In=0x7d0,En=_0x12409a(0x321),Cn=_0x12409a(0x1ef),bn=_0x12409a(0x241),Tn=0x7530,$s=_0x12409a(0xb4),js=0x4e20,Rn=0x4e20,On=_0x12409a(0xf6),Dn=0x3,wn=_0x12409a(0x20a),Pn=0x3e8,yn=_0x12409a(0x427),Un='/universer-api/comb',Nn=_0x12409a(0x364),Mn=_0x12409a(0x2e2);var xs=(_0x1c2bf2=>(_0x1c2bf2[_0x1c2bf2['UNDEFINED']=0x0]='UNDEFINED',_0x1c2bf2[_0x1c2bf2['OK']=0x1]='OK',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x2ba)]=0x2]=_0x12409a(0x2ba),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3a7)]=0x3]='PERMISSION_DENIED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3c6)]=0x4]='NOT_FOUND',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x107)]=0x5]='UNAUTHENTICATED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x23a)]=0x6]=_0x12409a(0x23a),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x1fd)]=0x7]=_0x12409a(0x1fd),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x2e5)]=0x8]=_0x12409a(0x2e5),_0x1c2bf2[_0x1c2bf2['COMPLETION_FINISHED']=0x9]=_0x12409a(0xba),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x1dd)]=0x1389]=_0x12409a(0x1dd),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x126)]=0x1771]=_0x12409a(0x126),_0x1c2bf2[_0x1c2bf2['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x12409a(0xb6),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3f8)]=0x1773]=_0x12409a(0x3f8),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x19a)]=0x1b59]=_0x12409a(0x19a),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3c8)]=0x1b5a]=_0x12409a(0x3c8),_0x1c2bf2[_0x1c2bf2['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x12409a(0x1a7),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x320)]=0x1b5c]=_0x12409a(0x320),_0x1c2bf2[_0x1c2bf2['APPLY_DUPLICATED']=0x1b5d]=_0x12409a(0x370),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x19b)]=0x1f41]=_0x12409a(0x19b),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3cf)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x223)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x3ff)]=0x232b]=_0x12409a(0x3ff),_0x1c2bf2[_0x1c2bf2['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x1c2bf2[_0x1c2bf2[_0x12409a(0x230)]=0x232d]=_0x12409a(0x230),_0x1c2bf2[_0x1c2bf2['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x12409a(0x316),_0x1c2bf2[_0x1c2bf2['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x12409a(0x306),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x315)]=0x2713]=_0x12409a(0x315),_0x1c2bf2[_0x1c2bf2[_0x12409a(0x377)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1c2bf2[_0x1c2bf2['UNRECOGNIZED']=-0x1]=_0x12409a(0x338),_0x1c2bf2))(xs||{}),k=(_0x3a0ca1=>(_0x3a0ca1[_0x3a0ca1['UNIVER_UNKNOWN']=0x0]=_0x12409a(0x400),_0x3a0ca1[_0x3a0ca1[_0x12409a(0x15b)]=0x1]='UNIVER_DOC',_0x3a0ca1[_0x3a0ca1[_0x12409a(0x1e2)]=0x2]=_0x12409a(0x1e2),_0x3a0ca1[_0x3a0ca1[_0x12409a(0x27e)]=0x3]=_0x12409a(0x27e),_0x3a0ca1[_0x3a0ca1[_0x12409a(0x2b6)]=0x4]='UNIVER_PROJECT',_0x3a0ca1[_0x3a0ca1[_0x12409a(0x338)]=-0x1]=_0x12409a(0x338),_0x3a0ca1))(k||{}),I=(_0x32a496=>(_0x32a496[_0x32a496[_0x12409a(0x3dd)]=0x0]=_0x12409a(0x3dd),_0x32a496[_0x32a496[_0x12409a(0x3ef)]=0x1]=_0x12409a(0x3ef),_0x32a496[_0x32a496[_0x12409a(0x1d7)]=0x2]=_0x12409a(0x1d7),_0x32a496[_0x32a496[_0x12409a(0x10b)]=0x3]=_0x12409a(0x10b),_0x32a496[_0x32a496[_0x12409a(0x2e6)]=0x4]=_0x12409a(0x2e6),_0x32a496[_0x32a496['HEARTBEAT']=0x5]=_0x12409a(0x157),_0x32a496[_0x32a496[_0x12409a(0x11f)]=0x6]=_0x12409a(0x11f),_0x32a496[_0x32a496['UNRECOGNIZED']=-0x1]=_0x12409a(0x338),_0x32a496))(I||{}),Vt=(_0x3491ab=>(_0x3491ab[_0x3491ab[_0x12409a(0xc8)]=0x0]=_0x12409a(0xc8),_0x3491ab[_0x3491ab['OK']=0x1]='OK',_0x3491ab[_0x3491ab[_0x12409a(0x245)]=0x2]=_0x12409a(0x245),_0x3491ab[_0x3491ab['UNRECOGNIZED']=-0x1]=_0x12409a(0x338),_0x3491ab))(Vt||{}),Hs=(_0x49521c=>(_0x49521c[_0x49521c[_0x12409a(0x278)]=0x0]='Undefined',_0x49521c[_0x49521c['HttpImport']=0x1]='HttpImport',_0x49521c[_0x49521c[_0x12409a(0x1d0)]=0x2]=_0x12409a(0x1d0),_0x49521c[_0x49521c[_0x12409a(0x173)]=0x3]='UnitEmbedded',_0x49521c[_0x49521c[_0x12409a(0x248)]=0x4]=_0x12409a(0x248),_0x49521c[_0x49521c['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x49521c))(Hs||{});const $=_0x12409a(0x279),An={};function Ln(_0x32b099){const _0x239ae7=_0x12409a;var _0x1e007a,_0xe4ad01,_0x32a160,_0x450f43;const _0x214e4f=_0x32b099[_0x239ae7(0x244)],_0x14b567=JSON['parse'](_0x214e4f);switch(_0x14b567[_0x239ae7(0x307)]){case I[_0x239ae7(0x157)]:case I[_0x239ae7(0x3ef)]:{const _0x13fc4d=_0x14b567[_0x239ae7(0xb5)];return{..._0x14b567,'data':_0x13fc4d,'cmd':_0x14b567[_0x239ae7(0x307)]};}case I[_0x239ae7(0x1d7)]:{const _0x358687=_0x14b567[_0x239ae7(0x3e8)];return{..._0x14b567,'data':_0x358687,'cmd':_0x14b567['cmd']};}case I[_0x239ae7(0x11f)]:{const _0x23df2e=_0x14b567['collaMsg'];switch(_0x23df2e[_0x239ae7(0x331)]){case _0x1a2ec1['PERMISSION_REJ']:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0x1e007a=_0x23df2e[_0x239ae7(0x10c)])==null?void 0x0:_0x1e007a['cs']},'cmd':_0x14b567['cmd']};case _0x1a2ec1[_0x239ae7(0x1df)]:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0xe4ad01=_0x23df2e['csAckEvent'])==null?void 0x0:_0xe4ad01['cs']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1['NEW_CHANGESETS']:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0x32a160=_0x23df2e[_0x239ae7(0x2c0)])==null?void 0x0:_0x32a160['cs']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x2d9)]:return{..._0x14b567,'data':{..._0x23df2e,'data':(_0x450f43=_0x23df2e['csRejEvent'])==null?void 0x0:_0x450f43['cs']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x2de)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x2fb)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x42d)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0xb3)]},'cmd':_0x14b567['cmd']};case _0x1a2ec1[_0x239ae7(0x186)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x141)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x3a2)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e['liveShareNewHost']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1['LIVESHARE_FETCH_OPERATIONS']:case _0x1a2ec1[_0x239ae7(0x1a8)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e['liveShareOperation']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x3e0)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x3df)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x401)]:return{..._0x14b567,'data':_0x23df2e,'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x40f)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x13f)]},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x2d2)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e['updatePermissionObjEvent']},'cmd':_0x14b567[_0x239ae7(0x307)]};case _0x1a2ec1[_0x239ae7(0x252)]:return{..._0x14b567,'data':{..._0x23df2e,'data':_0x23df2e[_0x239ae7(0x2db)]},'cmd':_0x14b567[_0x239ae7(0x307)]};default:return _0x14b567;}}default:return _0x14b567;}}function $n(_0x193874){const _0x1bdc64=_0x12409a;switch(_0x193874['cmd']){case I[_0x1bdc64(0x157)]:case I['HELLO']:return JSON[_0x1bdc64(0x322)]({'cmd':_0x193874['cmd'],'routeKey':_0x193874['routeKey']});case I['INGEST']:{let _0x19c271;switch(_0x193874['data'][_0x1bdc64(0x331)]){case _0x1a2ec1[_0x1bdc64(0x2de)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x2de)],'updateCursorEvent':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x186)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x186)],'leaveEvent':_0x193874['data'][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x42d)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x42d)],'joinEvent':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1['LIVESHARE_NEW_HOST']:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x3a2)],'liveShareNewHost':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x1a8)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x1a8)],'liveShareOperation':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x3e0)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x3e0)],'liveShareTerminate':_0x193874[_0x1bdc64(0x244)]['data']};break;}case _0x1a2ec1[_0x1bdc64(0x2a8)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x2a8)],'liveShareRequestHost':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x244)]};break;}case _0x1a2ec1[_0x1bdc64(0x206)]:{_0x19c271={'eventID':_0x1a2ec1[_0x1bdc64(0x206)]};break;}default:_0x19c271={'eventID':_0x193874[_0x1bdc64(0x244)][_0x1bdc64(0x331)]};}return JSON['stringify']({'cmd':_0x193874[_0x1bdc64(0x307)],'routeKey':_0x193874[_0x1bdc64(0x179)],'collaMsg':_0x19c271});}case I[_0x1bdc64(0x1d7)]:return JSON[_0x1bdc64(0x322)]({'cmd':_0x193874[_0x1bdc64(0x307)],'routeKey':_0x193874[_0x1bdc64(0x179)],'joinReq':_0x193874[_0x1bdc64(0x244)]});case I['LEAVE']:return JSON[_0x1bdc64(0x322)]({'cmd':_0x193874[_0x1bdc64(0x307)],'routeKey':_0x193874[_0x1bdc64(0x179)],'leaveReq':_0x193874[_0x1bdc64(0x244)]});default:throw new Error(_0x1bdc64(0x355));}}var jn=Object['defineProperty'],xn=Object[_0x12409a(0xfe)],Hn=(_0x596f28,_0x125c72,_0x254a28,_0x48d580)=>{const _0x43c87d=_0x12409a;for(var _0x2c3af8=_0x48d580>0x1?void 0x0:_0x48d580?xn(_0x125c72,_0x254a28):_0x125c72,_0xd1a7f3=_0x596f28[_0x43c87d(0x3b7)]-0x1,_0x3bcb0e;_0xd1a7f3>=0x0;_0xd1a7f3--)(_0x3bcb0e=_0x596f28[_0xd1a7f3])&&(_0x2c3af8=(_0x48d580?_0x3bcb0e(_0x125c72,_0x254a28,_0x2c3af8):_0x3bcb0e(_0x2c3af8))||_0x2c3af8);return _0x48d580&&_0x2c3af8&&jn(_0x125c72,_0x254a28,_0x2c3af8),_0x2c3af8;},Oe=(_0x543eb8,_0x540486)=>(_0x5ae139,_0x415110)=>_0x540486(_0x5ae139,_0x415110,_0x543eb8);const ks=_0x2fc4d3(_0x12409a(0x3c7));function kn(_0x1e1b2f,_0x25b004,_0x3da62e){const _0x7f0c75=_0x12409a;return _0x1e1b2f+'/'+_0x25b004+'/unit/'+_0x3da62e+_0x7f0c75(0x233);}let Ct=class extends _0x1efbc8{constructor(_0x588604,_0x2980f6,_0xc38bde,_0x341626,_0x561c55){const _0x2a700c=_0x12409a;super(),this[_0x2a700c(0xb7)]=_0x588604,this[_0x2a700c(0x26f)]=_0x2980f6,this[_0x2a700c(0x150)]=_0xc38bde,this[_0x2a700c(0x24e)]=_0x341626,this['_snapshotServerService']=_0x561c55;}['createSocket'](_0x23cde3){const _0x3c390b=_0x12409a,_0x49cce2=this[_0x3c390b(0x26f)][_0x3c390b(0x167)](_0x23cde3);if(!_0x49cce2)throw new Error(_0x3c390b(0xb8));const _0x24bf9d=new _0x29a9a9(),_0x3d3dfb=new _0x5633a5();_0x24bf9d[_0x3c390b(0x22d)](_0x49cce2[_0x3c390b(0x1d8)][_0x3c390b(0x3c1)](_0x37def4=>_0x3d3dfb[_0x3c390b(0x188)](_0x37def4))),_0x24bf9d[_0x3c390b(0x22d)](_0x5ef5c0(()=>_0x3d3dfb[_0x3c390b(0x38f)]()));const _0x58571a=new _0x5633a5();_0x24bf9d[_0x3c390b(0x22d)](_0x49cce2[_0x3c390b(0x234)]['subscribe'](_0x390dd4=>_0x58571a[_0x3c390b(0x188)](_0x390dd4))),_0x24bf9d['add'](_0x5ef5c0(()=>_0x58571a['complete']()));const _0x3229c0=new _0x5633a5();_0x24bf9d[_0x3c390b(0x22d)](_0x49cce2[_0x3c390b(0x31a)][_0x3c390b(0x3c1)](_0x138e54=>{const _0x42059f=_0x3c390b,_0x125230=Ln(_0x138e54);_0x3229c0[_0x42059f(0x188)](_0x125230);})),_0x24bf9d[_0x3c390b(0x22d)](_0x5ef5c0(()=>_0x3229c0[_0x3c390b(0x38f)]()));let _0x555a6d;const _0x1611c7=()=>{const _0x2e66fb=_0x3c390b;_0x58571a[_0x2e66fb(0x188)](new Event('connection\x20error')),_0x3d3dfb['next'](new CloseEvent(_0x2e66fb(0x413))),_0x555a6d['close']();};return _0x555a6d={'memberID':'','close$':_0x3d3dfb[_0x3c390b(0x142)](),'error$':_0x58571a[_0x3c390b(0x142)](),'open$':_0x49cce2[_0x3c390b(0x341)],'message$':_0x3229c0[_0x3c390b(0x142)](),'send':_0x3d897c=>{const _0x57fbca=_0x3c390b;if(_0x3d897c[_0x57fbca(0x307)]===I[_0x57fbca(0x2e6)]){if(_0x3d897c[_0x57fbca(0x244)][_0x57fbca(0x331)]===_0x1a2ec1[_0x57fbca(0xee)]){this['_submitChangeset'](_0x555a6d,_0x3d897c['data'])['catch'](_0x2de8f2=>{const _0x3ac70e=_0x57fbca;this['_logService'][_0x3ac70e(0x2d7)](_0x2de8f2),_0x1611c7();});return;}if(_0x3d897c[_0x57fbca(0x244)][_0x57fbca(0x331)]===_0x1a2ec1[_0x57fbca(0x24c)]){const _0x10f9cc=_0x3d897c[_0x57fbca(0x244)];this[_0x57fbca(0x30b)](_0x10f9cc)[_0x57fbca(0x403)](_0x2fdbc9=>{const _0x19cf0c=_0x57fbca;_0x3229c0[_0x19cf0c(0x188)]({'cmd':I[_0x19cf0c(0x11f)],'code':Vt['OK'],'routeKey':_0x10f9cc[_0x19cf0c(0x244)]['unitID'],'routeType':'','data':{'eventID':_0x1a2ec1[_0x19cf0c(0x3a5)],'data':{'changesets':_0x2fdbc9}}});})[_0x57fbca(0x3d9)](_0x289207=>{const _0x86f258=_0x57fbca;this[_0x86f258(0x24e)]['error'](_0x289207),_0x1611c7();});return;}}_0x49cce2[_0x57fbca(0x10d)]($n(_0x3d897c));},'close':()=>{const _0x55824a=_0x3c390b;_0x49cce2[_0x55824a(0xd3)](),_0x24bf9d[_0x55824a(0x280)]();}},_0x555a6d;}async['_submitChangeset'](_0x26ae36,_0x52813d){const _0xc103ce=_0x12409a;var _0x4ac496,_0x4c9e75;const {unitType:_0x5c1cbd,unitID:_0x3a4243,changeset:_0x311f60}=_0x52813d[_0xc103ce(0x244)],_0x34d7c1={'unitID':_0x3a4243,'memberID':_0x26ae36[_0xc103ce(0x2ec)],'type':_0x5c1cbd,'changeset':_0x451f64(_0x311f60)},_0x369c41=this[_0xc103ce(0x150)]['getConfig'](yn),_0x2e7df5=this['_configService'][_0xc103ce(0x312)]($),_0x3311ba=kn((_0x4c9e75=(_0x4ac496=_0x2e7df5==null?void 0x0:_0x2e7df5[_0xc103ce(0x3f6)])!=null?_0x4ac496:_0x369c41)!=null?_0x4c9e75:Un,_0x5c1cbd,_0x3a4243);try{await this['_http'][_0xc103ce(0x1b4)](_0x3311ba,{'body':_0x34d7c1});}catch(_0x1af9c7){throw this[_0xc103ce(0x24e)]['error']('[CollaborationSession]',_0xc103ce(0x21a)),_0x1af9c7;}}async[_0x12409a(0x30b)](_0x4b3f8d){const _0x3928b9=_0x12409a,{unitID:_0x31f0b8,from:_0xfdf4b5,to:_0xdd15af,unitType:_0x5904fe}=_0x4b3f8d['data'];return(await this[_0x3928b9(0x187)][_0x3928b9(0x27a)]({'metadata':void 0x0},{'unitID':_0x31f0b8,'type':_0x5904fe,'from':_0xfdf4b5,'to':_0xdd15af}))[_0x3928b9(0x102)];}};Ct=Hn([Oe(0x0,_0x565e28(_0x1a28a3)),Oe(0x1,_0x565e28(_0x9095c5)),Oe(0x2,_0x301e4e),Oe(0x3,_0x2fef42),Oe(0x4,_0x2bb579)],Ct);const Bn='collaboration_new_changeset';function Vn(_0x235873){const _0x24b46c=_0x12409a;return JSON[_0x24b46c(0x322)](_0x235873)[_0x24b46c(0x3b7)];}class Bs{constructor(){const _0x328bb4=_0x12409a;l(this,_0x328bb4(0x1cf),new _0x5633a5()),l(this,_0x328bb4(0x3e4),this[_0x328bb4(0x1cf)][_0x328bb4(0x142)]());}['onCommentUpdate'](_0x752f0a){const _0x2ab20f=_0x12409a;this[_0x2ab20f(0x1cf)][_0x2ab20f(0x188)](_0x752f0a);}}var Fn=Object[_0x12409a(0x1ee)],Wn=Object[_0x12409a(0xfe)],Gn=(_0x7d2706,_0x1d0b0a,_0x1c5612,_0x420ee2)=>{for(var _0x2fb46d=_0x420ee2>0x1?void 0x0:_0x420ee2?Wn(_0x1d0b0a,_0x1c5612):_0x1d0b0a,_0x19b340=_0x7d2706['length']-0x1,_0x49f279;_0x19b340>=0x0;_0x19b340--)(_0x49f279=_0x7d2706[_0x19b340])&&(_0x2fb46d=(_0x420ee2?_0x49f279(_0x1d0b0a,_0x1c5612,_0x2fb46d):_0x49f279(_0x2fb46d))||_0x2fb46d);return _0x420ee2&&_0x2fb46d&&Fn(_0x1d0b0a,_0x1c5612,_0x2fb46d),_0x2fb46d;},as=(_0x593129,_0x22e16d)=>(_0x5d1967,_0x2aaa25)=>_0x22e16d(_0x5d1967,_0x2aaa25,_0x593129);let ce=class extends _0x1efbc8{constructor(_0xd30393,_0xf3be4d){const _0x496a7b=_0x12409a;super(),l(this,_0x496a7b(0xbc),new Map()),(this[_0x496a7b(0x392)]=_0xd30393,this[_0x496a7b(0x314)]=_0xf3be4d,this[_0x496a7b(0x2f2)](_0x5ef5c0(_0x23085b(this[_0x496a7b(0x392)][_0x496a7b(0x3ac)](_0x351a49['UNIVER_SHEET'])['pipe'](_0x123c40(_0x5d4bca=>_0x5d4bca[_0x496a7b(0xe4)]())),this[_0x496a7b(0x392)]['getTypeOfUnitDisposed$'](_0x351a49[_0x496a7b(0x15b)])['pipe'](_0x123c40(_0x54ce46=>_0x54ce46[_0x496a7b(0xe4)]())),this[_0x496a7b(0x392)]['getTypeOfUnitDisposed$'](_0x351a49[_0x496a7b(0x27e)])[_0x496a7b(0x29f)](_0x123c40(_0x5304f6=>_0x5304f6[_0x496a7b(0xe4)]())))[_0x496a7b(0x3c1)](_0x2cced0=>this['_removeRoom'](_0x2cced0)))));}[_0x12409a(0x259)](_0x3c84f8){const _0x55896e=_0x12409a;this[_0x55896e(0x314)][_0x55896e(0x259)](_0x3c84f8);}[_0x12409a(0x2a2)](){const _0x12e669=_0x12409a;return this[_0x12e669(0x314)][_0x12e669(0x2a2)]();}[_0x12409a(0x11d)](_0x4a2437,_0x588f1b){const _0x67b442=_0x12409a;let _0x47f229=this[_0x67b442(0xbc)][_0x67b442(0x2d5)](_0x4a2437);_0x47f229||(_0x47f229=new Yn(),this[_0x67b442(0xbc)]['set'](_0x4a2437,_0x47f229)),_0x47f229[_0x67b442(0x11d)](_0x588f1b);}[_0x12409a(0x2b0)](_0x491dca,_0x1397c5){const _0x5a23f7=_0x12409a,_0x455db1=this[_0x5a23f7(0xbc)][_0x5a23f7(0x2d5)](_0x491dca);_0x455db1&&_0x455db1[_0x5a23f7(0x2b0)](_0x1397c5);}[_0x12409a(0x40b)](_0x3071db){const _0x2b3a59=_0x12409a;return this[_0x2b3a59(0xbc)][_0x2b3a59(0x2d5)](_0x3071db);}['getMember'](_0x265f0d,_0xd50fc5){const _0x48dc37=_0x12409a,_0x18d024=this[_0x48dc37(0xbc)][_0x48dc37(0x2d5)](_0x265f0d);if(_0x18d024)return _0x18d024[_0x48dc37(0x265)](_0xd50fc5);}[_0x12409a(0x1d5)](_0x318e7c){const _0x478243=_0x12409a,_0x295656=this['_roomMembers'][_0x478243(0x2d5)](_0x318e7c);_0x295656&&(_0x295656[_0x478243(0x280)](),this[_0x478243(0xbc)][_0x478243(0xf3)](_0x318e7c));}[_0x12409a(0x280)](){const _0x4fb059=_0x12409a;this[_0x4fb059(0xbc)]['forEach'](_0x391240=>_0x391240[_0x4fb059(0x280)]()),this[_0x4fb059(0xbc)]['clear']();}};ce=Gn([as(0x0,_0x114f27),as(0x1,_0x565e28(_0x1f884e))],ce);class Yn extends _0x1efbc8{constructor(){const _0x43fd8d=_0x12409a;super(...arguments),l(this,_0x43fd8d(0x303),new Map());}[_0x12409a(0x280)](){const _0x1dd531=_0x12409a;this[_0x1dd531(0x303)][_0x1dd531(0x190)]();}[_0x12409a(0x11d)](_0xf4ffa1){const _0x30fa44=_0x12409a;this['_members'][_0x30fa44(0x28a)](_0xf4ffa1[_0x30fa44(0x2ec)],_0xf4ffa1);}[_0x12409a(0x2b0)](_0xf46359){const _0x54da18=_0x12409a;this['_members'][_0x54da18(0xf3)](_0xf46359);}['getMember'](_0x5409b7){const _0x386b11=_0x12409a;return this['_members'][_0x386b11(0x2d5)](_0x5409b7);}}var Kn=Object[_0x12409a(0x1ee)],Xn=Object[_0x12409a(0xfe)],qn=(_0x563061,_0x1485cb,_0x4cd1b2,_0x21f427)=>{const _0x2f7fd4=_0x12409a;for(var _0xcbc478=_0x21f427>0x1?void 0x0:_0x21f427?Xn(_0x1485cb,_0x4cd1b2):_0x1485cb,_0x1404d2=_0x563061[_0x2f7fd4(0x3b7)]-0x1,_0x13612b;_0x1404d2>=0x0;_0x1404d2--)(_0x13612b=_0x563061[_0x1404d2])&&(_0xcbc478=(_0x21f427?_0x13612b(_0x1485cb,_0x4cd1b2,_0xcbc478):_0x13612b(_0xcbc478))||_0xcbc478);return _0x21f427&&_0xcbc478&&Kn(_0x1485cb,_0x4cd1b2,_0xcbc478),_0xcbc478;},J=(_0x49dd24,_0x1f6957)=>(_0x49cc2f,_0x49ee25)=>_0x1f6957(_0x49cc2f,_0x49ee25,_0x49dd24),Y=(_0x5bdd18=>(_0x5bdd18[_0x5bdd18[_0x12409a(0x22a)]=0x0]=_0x12409a(0x22a),_0x5bdd18[_0x5bdd18[_0x12409a(0x266)]=0x1]=_0x12409a(0x266),_0x5bdd18[_0x5bdd18[_0x12409a(0x108)]=0x2]=_0x12409a(0x108),_0x5bdd18[_0x5bdd18['ONLINE']=0x3]=_0x12409a(0xca),_0x5bdd18))(Y||{});let bt=class extends _0x5d8701{constructor(_0x298996,_0x3d160a,_0x1866c7,_0x48a226,_0x3b336d,_0xe793f4,_0x165f6a,_0x4e5f53,_0x39881c,_0x1774db){const _0x3486a5=_0x12409a;super(),l(this,'_sessionStatus$',new _0x30f2ca(0x0)),l(this,_0x3486a5(0xe2),this[_0x3486a5(0x3f7)]['asObservable']()),l(this,_0x3486a5(0x41e),new _0x5633a5()),l(this,_0x3486a5(0x3e9),this['_event$'][_0x3486a5(0x142)]()),l(this,_0x3486a5(0x389)),l(this,_0x3486a5(0x1ca)),l(this,_0x3486a5(0x1a9)),l(this,'_shouldReportTelemetry',!0x1),l(this,'_telemetryInfo',null),(this[_0x3486a5(0x351)]=_0x298996,this[_0x3486a5(0x24e)]=_0x1866c7,this[_0x3486a5(0x26d)]=_0x48a226,this[_0x3486a5(0x417)]=_0x3b336d,this['_configService']=_0xe793f4,this[_0x3486a5(0xd9)]=_0x165f6a,this[_0x3486a5(0x3bc)]=_0x4e5f53,this[_0x3486a5(0x262)]=_0x39881c,this['_telemetryService']=_0x1774db,this['_shouldReportTelemetry']=!!this[_0x3486a5(0x2b8)],_0x3d160a[_0x3486a5(0x29f)](_0x2d78ee(this[_0x3486a5(0x394)]))['subscribe'](_0x2907f2=>{const _0x41e423=_0x3486a5;var _0x12d72c;typeof _0x2907f2>'u'||(this[_0x41e423(0x389)]=_0x2907f2,_0x2907f2?(this[_0x41e423(0x34a)](_0x2907f2),this[_0x41e423(0x1ca)]=_0x2907f2[_0x41e423(0x31a)][_0x41e423(0x3c1)](_0x29edd8=>{const _0x333b58=_0x41e423;_0x29edd8[_0x333b58(0x179)]===this[_0x333b58(0x351)]&&this[_0x333b58(0x2e0)](_0x29edd8);})):(this[_0x41e423(0x379)](),this[_0x41e423(0x3f7)][_0x41e423(0x188)](0x2),(_0x12d72c=this[_0x41e423(0x1ca)])==null||_0x12d72c[_0x41e423(0x365)](),this[_0x41e423(0x1ca)]=null));}),this[_0x3486a5(0x2f2)](this['_beforeCloseService'][_0x3486a5(0x2fe)](()=>{const _0xc96a0=_0x3486a5;var _0x5cc1f3;(_0x5cc1f3=this[_0xc96a0(0x389)])==null||_0x5cc1f3[_0xc96a0(0x10d)]({'cmd':I[_0xc96a0(0x10b)],'data':{'roomID':this['_unitID']}});})));}get[_0x12409a(0x2bc)](){const _0x1dc583=_0x12409a;return this[_0x1dc583(0x3f7)]['getValue']();}[_0x12409a(0x22f)](){const _0x1756b2=_0x12409a;var _0x14cd5f,_0x5c38a0;return(_0x5c38a0=(_0x14cd5f=this[_0x1756b2(0x389)])==null?void 0x0:_0x14cd5f['memberID'])!=null?_0x5c38a0:null;}[_0x12409a(0x280)](){const _0x5297a5=_0x12409a;super[_0x5297a5(0x280)](),this[_0x5297a5(0x394)][_0x5297a5(0x188)](),this[_0x5297a5(0x394)][_0x5297a5(0x38f)]();}[_0x12409a(0xd3)](){const _0x4c73b8=_0x12409a;var _0x31fa52,_0x561804;this[_0x4c73b8(0x379)](),(_0x31fa52=this['_socket'])==null||_0x31fa52[_0x4c73b8(0x10d)]({'cmd':I[_0x4c73b8(0x10b)],'data':{'roomID':this[_0x4c73b8(0x351)]}}),(_0x561804=this['_socket'])==null||_0x561804[_0x4c73b8(0xd3)](),this['_event$'][_0x4c73b8(0x38f)](),this[_0x4c73b8(0x3f7)][_0x4c73b8(0x38f)](),this['dispose']();}['_onCombEvent'](_0x1e2cb5){const _0x11f51c=_0x12409a;_0x1e2cb5[_0x11f51c(0x307)]===I[_0x11f51c(0x1d7)]?this[_0x11f51c(0x1e5)](_0x1e2cb5):_0x1e2cb5[_0x11f51c(0x307)]===I[_0x11f51c(0x11f)]&&this[_0x11f51c(0x40c)](_0x1e2cb5);}[_0x12409a(0x34a)](_0x381875){const _0x257511=_0x12409a;this[_0x257511(0x3f7)]['next'](0x1),_0x381875['send']({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x12409a(0x1e5)](_0x5dc796){const _0x37e8ad=_0x12409a;var _0x1a5fcb;if(_0x5dc796[_0x37e8ad(0x1a3)]===Vt[_0x37e8ad(0x245)]){this[_0x37e8ad(0x417)][_0x37e8ad(0x3a1)]({'type':_0x3ea716[_0x37e8ad(0x20b)],'content':this[_0x37e8ad(0xd9)]['t'](_0x37e8ad(0x1a1))}),this[_0x37e8ad(0x3f7)][_0x37e8ad(0x188)](0x2);return;}this['_sessionStatus$'][_0x37e8ad(0x188)](0x3);const _0x5e3f91=(_0x1a5fcb=_0x5dc796[_0x37e8ad(0x244)]['roomInfos'][this[_0x37e8ad(0x351)]])==null?void 0x0:_0x1a5fcb[_0x37e8ad(0x393)];_0x5e3f91&&_0x5e3f91[_0x37e8ad(0x20d)](_0x41fbb9=>this[_0x37e8ad(0x3bc)][_0x37e8ad(0x11d)](this[_0x37e8ad(0x351)],_0x41fbb9));}[_0x12409a(0x40c)](_0x240e31){const _0x7e9c06=_0x12409a;try{const _0x2ddbfb=_0x240e31[_0x7e9c06(0x244)];switch(_0x2ddbfb[_0x7e9c06(0x331)]){case _0x1a2ec1[_0x7e9c06(0x42d)]:this['_onUserJoin'](_0x2ddbfb),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1[_0x7e9c06(0x186)]:this['_onUserLeave'](_0x2ddbfb),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1['CHANGESET_ACK']:this[_0x7e9c06(0x41f)](),this['_clearCollaborationTimeoutTimer'](),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1['MSG_FOR_ERROR']:this[_0x7e9c06(0x24e)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x7e9c06(0x322)](_0x2ddbfb)),this['_event$'][_0x7e9c06(0x188)](_0x2ddbfb);break;case _0x1a2ec1['COMMENT_UPDATE']:this[_0x7e9c06(0x262)][_0x7e9c06(0x34c)](_0x2ddbfb['data']),this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);break;default:this[_0x7e9c06(0x41e)][_0x7e9c06(0x188)](_0x2ddbfb);}}catch(_0xb67cef){this[_0x7e9c06(0x24e)][_0x7e9c06(0x2d7)](_0xb67cef,_0x240e31);}}[_0x12409a(0x2cc)](_0x8a61cd){const _0x2c1bf5=_0x12409a;this[_0x2c1bf5(0x3bc)][_0x2c1bf5(0x11d)](this[_0x2c1bf5(0x351)],_0x8a61cd[_0x2c1bf5(0x244)]);}[_0x12409a(0xd5)](_0x10ca5c){const _0x51a130=_0x12409a;this['_memberService'][_0x51a130(0x2b0)](this[_0x51a130(0x351)],_0x10ca5c[_0x51a130(0x244)][_0x51a130(0x2ec)]);}async['send'](_0xe8a00a,_0x380712){const _0x582f25=_0x12409a;if(this[_0x582f25(0x2bc)]!==0x3||!this[_0x582f25(0x389)])throw new Error(_0x582f25(0x2f6));try{_0xe8a00a[_0x582f25(0x331)]===_0x1a2ec1['SUBMIT_CHANGESET']&&(this[_0x582f25(0x415)](),this[_0x582f25(0x368)](_0xe8a00a)),this[_0x582f25(0x389)][_0x582f25(0x10d)]({'cmd':I[_0x582f25(0x2e6)],'routeKey':_0x380712,'routeType':'','data':_0xe8a00a});}catch(_0x2a5934){this[_0x582f25(0x24e)][_0x582f25(0x2d7)](_0x2a5934);}}[_0x12409a(0x415)](){const _0x1b4bca=_0x12409a;var _0x305404;this[_0x1b4bca(0x1a9)]=window[_0x1b4bca(0x156)](()=>{const _0x27c61c=_0x1b4bca;this[_0x27c61c(0x1a9)]=null,this['_messageService'][_0x27c61c(0x3a1)]({'type':_0x3ea716[_0x27c61c(0x34f)],'content':this[_0x27c61c(0xd9)]['t'](_0x27c61c(0x250))});},(_0x305404=this[_0x1b4bca(0x150)][_0x1b4bca(0x312)]($s))!=null?_0x305404:js);}[_0x12409a(0x33c)](){const _0x5ae366=_0x12409a;this[_0x5ae366(0x1a9)]&&(clearTimeout(this[_0x5ae366(0x1a9)]),this[_0x5ae366(0x1a9)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x41b2a5){const _0x261430=_0x12409a;if(!this[_0x261430(0xe5)])return;const {data:_0x36c630}=_0x41b2a5,{unitID:_0x140109,changeset:_0x4efa06}=_0x36c630,{mutations:_0x1f5ffb,type:_0x11341c}=_0x4efa06;this[_0x261430(0x32f)]={'unitId':_0x140109,'type':_0x11341c,'startTime':performance[_0x261430(0x3d0)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x1f5ffb)};}[_0x12409a(0x41f)](){const _0x50029c=_0x12409a;if(this[_0x50029c(0xe5)]){if(!this[_0x50029c(0x32f)]){this[_0x50029c(0x24e)][_0x50029c(0x2d7)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x50029c(0x32f)][_0x50029c(0x23f)]=performance[_0x50029c(0x3d0)](),this[_0x50029c(0x32f)]['duration']=this[_0x50029c(0x32f)][_0x50029c(0x23f)]-this[_0x50029c(0x32f)][_0x50029c(0x41b)],this['_telemetryService'][_0x50029c(0x16f)](Bn,this[_0x50029c(0x32f)]),this[_0x50029c(0x32f)]=null;}}[_0x12409a(0x379)](){this['_telemetryInfo']=null;}};bt=qn([J(0x2,_0x2fef42),J(0x3,_0x186c4b),J(0x4,_0x32ad3e),J(0x5,_0x301e4e),J(0x6,_0x565e28(_0x128cab)),J(0x7,_0x565e28(ce)),J(0x8,_0x565e28(Bs)),J(0x9,_0x1a9909(_0xc705be))],bt);var Jn=Object[_0x12409a(0x1ee)],zn=Object[_0x12409a(0xfe)],Zn=(_0x179d87,_0x243f45,_0x1c3412,_0x5619bf)=>{const _0x210da7=_0x12409a;for(var _0x51dc70=_0x5619bf>0x1?void 0x0:_0x5619bf?zn(_0x243f45,_0x1c3412):_0x243f45,_0x189398=_0x179d87[_0x210da7(0x3b7)]-0x1,_0x1fcd34;_0x189398>=0x0;_0x189398--)(_0x1fcd34=_0x179d87[_0x189398])&&(_0x51dc70=(_0x5619bf?_0x1fcd34(_0x243f45,_0x1c3412,_0x51dc70):_0x1fcd34(_0x51dc70))||_0x51dc70);return _0x5619bf&&_0x51dc70&&Jn(_0x243f45,_0x1c3412,_0x51dc70),_0x51dc70;},fe=(_0xd69e2a,_0x193c19)=>(_0x30470c,_0x4dbc95)=>_0x193c19(_0x30470c,_0x4dbc95,_0xd69e2a);let he=class extends _0x1efbc8{constructor(_0x8070ea,_0x11b6df,_0x9e905b,_0x598e57,_0x3e57b9,_0x48582d){const _0x4f4146=_0x12409a;super(),l(this,_0x4f4146(0x18a),new _0x30f2ca(void 0x0)),l(this,_0x4f4146(0x40a),this['_socket$'][_0x4f4146(0x142)]()),l(this,_0x4f4146(0x161),null),l(this,_0x4f4146(0x17f),new Map()),l(this,_0x4f4146(0x148),new _0x30f2ca(Y[_0x4f4146(0x22a)])),l(this,'status$',this['_status$']['asObservable']()),l(this,_0x4f4146(0x328),!0x1),l(this,_0x4f4146(0x12c)),l(this,_0x4f4146(0x2e4),0x0),l(this,_0x4f4146(0x121)),l(this,_0x4f4146(0x282)),(this[_0x4f4146(0x26a)]=_0x8070ea,this['_localeService']=_0x11b6df,this['_messageService']=_0x9e905b,this['_logService']=_0x598e57,this[_0x4f4146(0x150)]=_0x3e57b9,this[_0x4f4146(0x2fc)]=_0x48582d,this[_0x4f4146(0x29d)]());}get['_socket'](){const _0x58c82b=_0x12409a;return this[_0x58c82b(0x18a)][_0x58c82b(0x3f3)]();}['_initEventListeners'](){const _0x1611b3=_0x12409a;this[_0x1611b3(0x31e)](),this['_listenToOnlineEvent']();}[_0x12409a(0x280)](){const _0x36c3fe=_0x12409a;super['dispose'](),this[_0x36c3fe(0x17f)][_0x36c3fe(0x20d)](_0x1ff8e6=>_0x1ff8e6['dispose']()),this[_0x36c3fe(0x17f)][_0x36c3fe(0x190)](),this[_0x36c3fe(0x148)]['complete']();}async[_0x12409a(0x3be)](_0x5f0be4){const _0x34ceb6=_0x12409a;if(this[_0x34ceb6(0x17f)][_0x34ceb6(0x128)](_0x5f0be4))return this['_sessions'][_0x34ceb6(0x2d5)](_0x5f0be4);this[_0x34ceb6(0x3b6)]();const _0x5079c9=this[_0x34ceb6(0x26a)]['createInstance'](bt,_0x5f0be4,this[_0x34ceb6(0x18a)][_0x34ceb6(0x142)]());return this['_sessions']['set'](_0x5f0be4,_0x5079c9),_0x5079c9;}['closeSession'](_0x1175bb){const _0xcfa604=_0x12409a;var _0x10d222;const _0x5df774=this['_sessions'][_0xcfa604(0x2d5)](_0x1175bb);_0x5df774&&(this[_0xcfa604(0x17f)][_0xcfa604(0xf3)](_0x1175bb),_0x5df774[_0xcfa604(0xd3)]()),this['_sessions']['size']||(_0x10d222=this[_0xcfa604(0x389)])==null||_0x10d222[_0xcfa604(0xd3)]();}[_0x12409a(0x33d)](){const _0x24bc89=_0x12409a;this[_0x24bc89(0x2e4)]=0x0,this[_0x24bc89(0x12c)]!=null&&(clearTimeout(this[_0x24bc89(0x12c)]),this[_0x24bc89(0x12c)]=null),this[_0x24bc89(0x32b)]();}[_0x12409a(0x35e)](){const _0x536d45=_0x12409a;var _0xdd4396,_0x1b8730;const _0x3297fa=this[_0x536d45(0x150)][_0x536d45(0x312)](En),_0x18d8cf=this[_0x536d45(0x150)][_0x536d45(0x312)]($),_0x5baed0=(_0x1b8730=(_0xdd4396=_0x18d8cf==null?void 0x0:_0x18d8cf[_0x536d45(0xf5)])!=null?_0xdd4396:_0x3297fa)!=null?_0x1b8730:Cn,_0x14c952=this[_0x536d45(0x2fc)][_0x536d45(0x167)](_0x5baed0);return this['_candidateSocket']=_0x14c952,_0x14c952;}['_tryEnsureSocket'](){const _0x3d2609=_0x12409a;var _0x3f852a,_0x3c022b;try{const _0x4f5905=(_0x3c022b=(_0x3f852a=this['_socket'])!=null?_0x3f852a:this[_0x3d2609(0x161)])!=null?_0x3c022b:this[_0x3d2609(0x35e)]();if(_0x4f5905){const _0x1635cf=_0x4f5905[_0x3d2609(0x10d)];_0x4f5905[_0x3d2609(0x10d)]=_0x2e6e55=>(this[_0x3d2609(0x2a6)](),_0x1635cf['apply'](_0x4f5905,[_0x2e6e55])),_0x4f5905['message$'][_0x3d2609(0x3c1)](_0x5aee3b=>this['_onMessage'](_0x4f5905,_0x5aee3b)),_0x4f5905[_0x3d2609(0x234)]['pipe'](_0x28aef5(0x1))['subscribe'](_0x4a219b=>this[_0x3d2609(0x24e)][_0x3d2609(0x2d7)](_0x3d2609(0x356),_0x4a219b)),_0x4f5905[_0x3d2609(0x341)][_0x3d2609(0x29f)](_0x28aef5(0x1))[_0x3d2609(0x3c1)](()=>{this['_onConnectionOpen'](_0x4f5905);}),_0x4f5905[_0x3d2609(0x1d8)]['pipe'](_0x28aef5(0x1))[_0x3d2609(0x3c1)](_0x13ff98=>{const _0x3ad979=_0x3d2609;this['_logService']['debug'](_0x3ad979(0x15e),_0x3ad979(0x1a6),_0x13ff98),this[_0x3ad979(0xf9)]();});}}catch(_0x330e91){this['_logService'][_0x3d2609(0x2d7)](_0x330e91),this[_0x3d2609(0xf9)]();}}[_0x12409a(0x3f0)](_0x2155b0){const _0x3dd523=_0x12409a;this['_logService']['debug'](_0x3dd523(0x15e),_0x3dd523(0x11e)),_0x2155b0[_0x3dd523(0x10d)]({'cmd':I[_0x3dd523(0x3ef)]}),this[_0x3dd523(0x2a6)]();}['_listenToOfflineEvent'](){const _0x3df9bf=_0x12409a;window['addEventListener'](_0x3df9bf(0x247),()=>this[_0x3df9bf(0x106)]());}[_0x12409a(0x106)](){const _0x1a8f16=_0x12409a;this['_socketReady']=!0x1,this[_0x1a8f16(0x161)]=null,this[_0x1a8f16(0x148)][_0x1a8f16(0x188)](Y['OFFLINE']),this[_0x1a8f16(0x18a)]['next'](null),this[_0x1a8f16(0x1ce)](),this[_0x1a8f16(0x37b)]();}[_0x12409a(0xf9)](){const _0xf0174e=_0x12409a;var _0x177d12;this[_0xf0174e(0x106)](),this[_0xf0174e(0x2e4)]<((_0x177d12=this[_0xf0174e(0x150)][_0xf0174e(0x312)](On))!=null?_0x177d12:Dn)?(this[_0xf0174e(0x417)][_0xf0174e(0x3a1)]({'key':'collaboration-session-retry','type':_0x3ea716[_0xf0174e(0x20b)],'content':this[_0xf0174e(0xd9)]['t'](_0xf0174e(0x113))}),this[_0xf0174e(0x32b)]()):this[_0xf0174e(0x417)][_0xf0174e(0x3a1)]({'key':_0xf0174e(0x1d9),'type':_0x3ea716[_0xf0174e(0x34f)],'content':this[_0xf0174e(0xd9)]['t']('session.connection-failed')});}[_0x12409a(0x22e)](){const _0x17dcb6=_0x12409a,_0x15b97a=()=>{const _0x148a04=_0x4bc7;this[_0x148a04(0x389)]||this[_0x148a04(0x33d)]();},_0x159381=()=>{const _0x4e48b4=_0x4bc7;this[_0x4e48b4(0x389)]||document[_0x4e48b4(0x2eb)]===_0x4e48b4(0x42a)||this[_0x4e48b4(0x33d)]();};window[_0x17dcb6(0x3c5)](_0x17dcb6(0x21f),_0x15b97a),document[_0x17dcb6(0x3c5)](_0x17dcb6(0xcf),_0x159381);}['_tryReconnect'](){const _0x3d4bd5=_0x12409a;var _0x4d3fcb;const _0x18575b=this[_0x3d4bd5(0x2e4)],_0x986e18=this[_0x3d4bd5(0x150)][_0x3d4bd5(0x312)]($),_0x40b861=_0x18575b===0x0?0x0:((_0x4d3fcb=_0x986e18==null?void 0x0:_0x986e18[_0x3d4bd5(0x3b0)])!=null?_0x4d3fcb:Rn)*0x2**_0x18575b;this[_0x3d4bd5(0x12c)]=window[_0x3d4bd5(0x156)](()=>{const _0xb82025=_0x3d4bd5;clearTimeout(this[_0xb82025(0x12c)]),this[_0xb82025(0x12c)]=null,this[_0xb82025(0x3b6)]();},_0x40b861),this['_retryCount']+=0x1;}[_0x12409a(0x25c)](_0x1e46a3,_0x3e4ad8){const _0x29893b=_0x12409a,{cmd:_0x5d5f23}=_0x3e4ad8;_0x5d5f23===I[_0x29893b(0x3ef)]&&!this[_0x29893b(0x328)]&&(_0x1e46a3[_0x29893b(0x2ec)]=_0x3e4ad8['data']['memberID'],this[_0x29893b(0x18a)]['next'](_0x1e46a3),this[_0x29893b(0x148)][_0x29893b(0x188)](Y[_0x29893b(0xca)]),this[_0x29893b(0x328)]=!0x0,this[_0x29893b(0x161)]=null),_0x5d5f23===I[_0x29893b(0x157)]&&this[_0x29893b(0x1ce)](),this[_0x29893b(0x2a6)]();}[_0x12409a(0x2a6)](){const _0x408749=_0x12409a;var _0x22b21b;this[_0x408749(0x37b)](),this[_0x408749(0x121)]=window[_0x408749(0x156)](()=>this['_sendHeartbeat'](),(_0x22b21b=this[_0x408749(0x150)][_0x408749(0x312)](bn))!=null?_0x22b21b:Tn);}['_sendHeartbeat'](){const _0x29b6f8=_0x12409a;this[_0x29b6f8(0x389)][_0x29b6f8(0x10d)]({'cmd':I[_0x29b6f8(0x157)]}),this['_waitForHeartbeatResponse']();}[_0x12409a(0x1c2)](){const _0xf022b0=_0x12409a;var _0x7d1b74;this[_0xf022b0(0x282)]=window[_0xf022b0(0x156)](()=>this[_0xf022b0(0xf9)](),(_0x7d1b74=this[_0xf022b0(0x150)][_0xf022b0(0x312)]($s))!=null?_0x7d1b74:js);}[_0x12409a(0x37b)](){const _0x3f5f90=_0x12409a;this[_0x3f5f90(0x121)]!=null&&(clearTimeout(this[_0x3f5f90(0x121)]),this[_0x3f5f90(0x121)]=null);}[_0x12409a(0x1ce)](){const _0x11fe93=_0x12409a;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x11fe93(0x282)]),this[_0x11fe93(0x282)]=null);}};he=Zn([fe(0x0,_0x565e28(_0x3f178c)),fe(0x1,_0x565e28(_0x128cab)),fe(0x2,_0x32ad3e),fe(0x3,_0x2fef42),fe(0x4,_0x301e4e),fe(0x5,ks)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T['push']((ct+0x100)[_0x12409a(0x226)](0x10)['slice'](0x1));function Qn(_0x8241f3,_0x52a184=0x0){const _0x4e240f=_0x12409a;return(T[_0x8241f3[_0x52a184+0x0]]+T[_0x8241f3[_0x52a184+0x1]]+T[_0x8241f3[_0x52a184+0x2]]+T[_0x8241f3[_0x52a184+0x3]]+'-'+T[_0x8241f3[_0x52a184+0x4]]+T[_0x8241f3[_0x52a184+0x5]]+'-'+T[_0x8241f3[_0x52a184+0x6]]+T[_0x8241f3[_0x52a184+0x7]]+'-'+T[_0x8241f3[_0x52a184+0x8]]+T[_0x8241f3[_0x52a184+0x9]]+'-'+T[_0x8241f3[_0x52a184+0xa]]+T[_0x8241f3[_0x52a184+0xb]]+T[_0x8241f3[_0x52a184+0xc]]+T[_0x8241f3[_0x52a184+0xd]]+T[_0x8241f3[_0x52a184+0xe]]+T[_0x8241f3[_0x52a184+0xf]])[_0x4e240f(0xd4)]();}var He,er=new Uint8Array(0x10);function tr(){const _0x55dfa7=_0x12409a;if(!He&&(He=typeof crypto<'u'&&crypto[_0x55dfa7(0x35a)]&&crypto[_0x55dfa7(0x35a)]['bind'](crypto),!He))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return He(er);}var sr=typeof crypto<'u'&&crypto[_0x12409a(0x3f4)]&&crypto[_0x12409a(0x3f4)][_0x12409a(0x214)](crypto);const cs={'randomUUID':sr};function ir(_0x36928e,_0x4acf01,_0x123210){const _0x481f93=_0x12409a;if(cs['randomUUID']&&!_0x4acf01&&!_0x36928e)return cs[_0x481f93(0x3f4)]();_0x36928e=_0x36928e||{};var _0x3598fd=_0x36928e[_0x481f93(0x424)]||(_0x36928e[_0x481f93(0x39d)]||tr)();return _0x3598fd[0x6]=_0x3598fd[0x6]&0xf|0x40,_0x3598fd[0x8]=_0x3598fd[0x8]&0x3f|0x80,Qn(_0x3598fd);}var nr=Object['defineProperty'],rr=Object[_0x12409a(0xfe)],or=(_0xcd6540,_0x2b271b,_0x327225,_0x45c4a4)=>{const _0x5a46e3=_0x12409a;for(var _0x33ee2d=_0x45c4a4>0x1?void 0x0:_0x45c4a4?rr(_0x2b271b,_0x327225):_0x2b271b,_0x4d1d2c=_0xcd6540[_0x5a46e3(0x3b7)]-0x1,_0x1c5ada;_0x4d1d2c>=0x0;_0x4d1d2c--)(_0x1c5ada=_0xcd6540[_0x4d1d2c])&&(_0x33ee2d=(_0x45c4a4?_0x1c5ada(_0x2b271b,_0x327225,_0x33ee2d):_0x1c5ada(_0x33ee2d))||_0x33ee2d);return _0x45c4a4&&_0x33ee2d&&nr(_0x2b271b,_0x327225,_0x33ee2d),_0x33ee2d;},ht=(_0x2143a5,_0x52fc77)=>(_0x5cff36,_0x462bc0)=>_0x52fc77(_0x5cff36,_0x462bc0,_0x2143a5);let Ye=class{constructor(_0x1355cc,_0xc1197c,_0x38e555){const _0x305fcc=_0x12409a;this['_injector']=_0x1355cc,this[_0x305fcc(0x3e7)]=_0xc1197c,this[_0x305fcc(0x209)]=_0x38e555;}['transformIMECache'](_0x1c32b0){const _0x418d8f=_0x12409a;this[_0x418d8f(0x330)](_0x1c32b0),this[_0x418d8f(0x2cd)](_0x1c32b0);}[_0x12409a(0x2a3)](_0x47a649){const _0x570610=_0x12409a,{unitID:_0x50d21f}=_0x47a649,_0x57ee95=this[_0x570610(0x209)][_0x570610(0x23d)](_0x50d21f)[_0x570610(0x34e)](_0x5566fa),{redoCache:_0x555856}=_0x57ee95['getUndoRedoMutationParamsCache']();if(_0x555856[_0x570610(0x3b7)]===0x0)return _0x47a649;let _0x354006=_0x5bdceb[_0x570610(0x2b1)](_0x47a649[_0x570610(0x1b8)][0x0]);for(let _0x391bff=0x0;_0x391bff<_0x555856[_0x570610(0x3b7)];_0x391bff++){const _0x19ecb1={'id':_0x570610(0x3af),'params':{..._0x555856[_0x391bff]}},_0x1df710=this[_0x570610(0x3e7)][_0x570610(0x124)](_0x354006,_0x19ecb1,!0x1);if(_0x1711e0(_0x1df710))throw _0x1df710[_0x570610(0x2d7)];_0x354006=_0x1df710[_0x570610(0x29c)];}return{..._0x5bdceb[_0x570610(0x2b1)](_0x47a649),'mutations':[_0x354006]};}[_0x12409a(0x330)](_0x546423){const _0xad7598=_0x12409a,{unitID:_0x4ba778}=_0x546423,_0x4fdca8=this['_renderManagerService'][_0xad7598(0x23d)](_0x4ba778)['with'](_0x5566fa),{undoCache:_0x5a7ec4,redoCache:_0x4b39ad}=_0x4fdca8[_0xad7598(0x2da)]();if(_0x5a7ec4['length']===0x0||_0x4b39ad['length']===0x0)return;const _0xd90e8c=[],_0x2103ec=[];let _0x209c63=_0x5bdceb[_0xad7598(0x2b1)](_0x546423[_0xad7598(0x1b8)][0x0]),_0x467ec0=_0x5bdceb['deepClone'](_0x546423[_0xad7598(0x1b8)][0x0]);for(let _0x152b23=_0x5a7ec4[_0xad7598(0x3b7)]-0x1;_0x152b23>=0x0;_0x152b23--){const _0x59bd3c={'id':_0xad7598(0x3af),'params':{..._0x5a7ec4[_0x152b23]}},_0x3968b6={'id':_0xad7598(0x3af),'params':{..._0x4b39ad[_0x152b23]}},_0x345267=this[_0xad7598(0x3e7)][_0xad7598(0x124)](_0x209c63,_0x59bd3c,!0x1),_0x132023=this[_0xad7598(0x3e7)][_0xad7598(0x124)](_0x467ec0,_0x3968b6,!0x1);if(_0x1711e0(_0x345267))throw _0x345267[_0xad7598(0x2d7)];if(_0x1711e0(_0x132023))throw _0x132023[_0xad7598(0x2d7)];_0xd90e8c[_0xad7598(0x293)](_0x345267[_0xad7598(0x346)][_0xad7598(0x319)]),_0x2103ec[_0xad7598(0x293)](_0x132023[_0xad7598(0x346)][_0xad7598(0x319)]),_0x209c63=_0x345267[_0xad7598(0x29c)],_0x467ec0=_0x132023[_0xad7598(0x29c)];}_0x4fdca8['setUndoRedoMutationParamsCache']({'undoCache':_0xd90e8c,'redoCache':_0x2103ec});}[_0x12409a(0x2cd)](_0x55426a){const _0x1e9a9c=_0x12409a,{unitID:_0x51735d}=_0x55426a,_0x44ff8f=this[_0x1e9a9c(0x209)]['getRenderById'](_0x51735d)[_0x1e9a9c(0x34e)](_0x5566fa),_0x15a842=_0x44ff8f[_0x1e9a9c(0xb1)]();if(_0x15a842==null)return;const _0x376a75=[{'id':_0x1e9a9c(0x3af),'params':{'unitId':_0x55426a[_0x1e9a9c(0x2fd)],'actions':null,'textRanges':[_0x15a842]}}],_0x330226=this[_0x1e9a9c(0x3e7)][_0x1e9a9c(0x146)](_0x55426a,_0x376a75);if(!_0x568457(_0x330226))throw _0x330226[_0x1e9a9c(0x2d7)];const _0x2ab9e2=_0x330226[_0x1e9a9c(0x346)][0x0][_0x1e9a9c(0x319)][_0x1e9a9c(0x3a8)];Array['isArray'](_0x2ab9e2)&&_0x2ab9e2[_0x1e9a9c(0x3b7)]&&_0x44ff8f[_0x1e9a9c(0x2aa)](_0x2ab9e2[0x0]);}};Ye=or([ht(0x0,_0x565e28(_0x3f178c)),ht(0x1,_0x5dfa67),ht(0x2,_0x3872a8)],Ye);var ar=Object[_0x12409a(0x1ee)],cr=Object[_0x12409a(0xfe)],hr=(_0x40b014,_0xdb3c56,_0x55ac01,_0x3de424)=>{for(var _0x444e4b=_0x3de424>0x1?void 0x0:_0x3de424?cr(_0xdb3c56,_0x55ac01):_0xdb3c56,_0x1ba4ce=_0x40b014['length']-0x1,_0x4afe98;_0x1ba4ce>=0x0;_0x1ba4ce--)(_0x4afe98=_0x40b014[_0x1ba4ce])&&(_0x444e4b=(_0x3de424?_0x4afe98(_0xdb3c56,_0x55ac01,_0x444e4b):_0x4afe98(_0x444e4b))||_0x444e4b);return _0x3de424&&_0x444e4b&&ar(_0xdb3c56,_0x55ac01,_0x444e4b),_0x444e4b;},De=(_0x492a8d,_0x50e4df)=>(_0x4539e6,_0x1d0f54)=>_0x50e4df(_0x4539e6,_0x1d0f54,_0x492a8d);let w=class extends _0x1efbc8{constructor(_0x29102f,_0x515c4f,_0x169e40,_0x140644,_0x53f258){const _0x4a4dff=_0x12409a;super(),l(this,_0x4a4dff(0xec),new Map()),l(this,'_saveTaskMap',new Map()),l(this,_0x4a4dff(0x395),!0x1),(this[_0x4a4dff(0x150)]=_0x29102f,this[_0x4a4dff(0x2f3)]=_0x515c4f,this[_0x4a4dff(0x26d)]=_0x169e40,this['_localeService']=_0x140644,this[_0x4a4dff(0x1fa)]=_0x53f258,this[_0x4a4dff(0x1ad)]());}['disableLocalCache'](){const _0x30a0b5=_0x12409a;this[_0x30a0b5(0x395)]=!0x0;}[_0x12409a(0x35c)](){this['_disabled']=!0x1;}['dispose'](){const _0x24a9b8=_0x12409a;this[_0x24a9b8(0x215)]()[_0x24a9b8(0x403)](()=>super['dispose']());}async[_0x12409a(0x1f0)](_0x2061df){const _0x5a90b7=_0x12409a;return this[_0x5a90b7(0x395)]?null:this['_localStorageService']['getItem'](hs(_0x2061df));}async[_0x12409a(0x16a)](_0x48c1c4,_0x336f0a){const _0x2fd5c7=_0x12409a;return!!this[_0x2fd5c7(0x2f3)][_0x2fd5c7(0x335)](_0x48c1c4,_0x336f0a);}[_0x12409a(0x158)](_0x545914,_0x1ca11b,_0x308ead,_0x414055){const _0x57f6c8=_0x12409a,_0x46befd=this[_0x57f6c8(0x1fa)][_0x57f6c8(0x419)](_0x545914);this['_cachedData'][_0x57f6c8(0x28a)](_0x545914,{'unitID':_0x545914,'type':_0x1ca11b,'awaitingChangeset':_0x308ead,'mutations':_0x414055,'rev':_0x46befd}),this['_saveTaskMap'][_0x57f6c8(0x128)](_0x545914)||this[_0x57f6c8(0x239)](_0x545914);}[_0x12409a(0x239)](_0x5581e6){const _0x5e5cfc=_0x12409a,_0x27b554=this[_0x5e5cfc(0x3e1)]();_0x27b554===0x0?this[_0x5e5cfc(0x251)](_0x5581e6):this[_0x5e5cfc(0x204)][_0x5e5cfc(0x28a)](_0x5581e6,setTimeout(()=>this[_0x5e5cfc(0x251)](_0x5581e6),_0x27b554));}['_getSaveTimeout'](){const _0x6eef2f=_0x12409a;var _0x3c3bfb;return(_0x3c3bfb=this[_0x6eef2f(0x150)]['getConfig'](wn))!=null?_0x3c3bfb:Pn;}[_0x12409a(0x251)](_0x465b33){const _0x370659=_0x12409a,_0x3984b2=this[_0x370659(0x204)][_0x370659(0x2d5)](_0x465b33);return _0x3984b2!==void 0x0&&window[_0x370659(0x1ff)](_0x3984b2),this[_0x370659(0x2f3)][_0x370659(0x335)](hs(_0x465b33),this[_0x370659(0xec)][_0x370659(0x2d5)](_0x465b33))[_0x370659(0x403)](()=>this[_0x370659(0x204)][_0x370659(0xf3)](_0x465b33));}async[_0x12409a(0x215)](){const _0x28d718=_0x12409a,_0xc6b276=[];this['_saveTaskMap'][_0x28d718(0x20d)]((_0x3be738,_0xabfa67)=>{const _0x483282=_0x28d718;window[_0x483282(0x1ff)](_0x3be738),_0xc6b276['push'](this[_0x483282(0x251)](_0xabfa67)[_0x483282(0x403)](()=>{const _0x5df67b=_0x483282;this['_saveTaskMap'][_0x5df67b(0xf3)](_0xabfa67);}));}),await Promise[_0x28d718(0x3de)](_0xc6b276);}[_0x12409a(0x1ad)](){const _0x30c28e=_0x12409a;this[_0x30c28e(0x2f2)](this[_0x30c28e(0x26d)][_0x30c28e(0xaf)](()=>{const _0x2125e7=_0x30c28e;if(this[_0x2125e7(0x204)][_0x2125e7(0x1b5)])return this['_localeService']['t'](_0x2125e7(0xd7));}));}};w=hr([De(0x0,_0x301e4e),De(0x1,_0x57776d),De(0x2,_0x186c4b),De(0x3,_0x565e28(_0x128cab)),De(0x4,_0x565e28(_0x4b7ded))],w);function hs(_0x565b69){const _0x2c4909=_0x12409a;return _0x2c4909(0x40d)+_0x565b69;}var lr=Object[_0x12409a(0x1ee)],_r=Object['getOwnPropertyDescriptor'],ur=(_0x59f88c,_0x4f5b77,_0x437cfc,_0x4e86a2)=>{const _0x5b4478=_0x12409a;for(var _0x4608aa=_0x4e86a2>0x1?void 0x0:_0x4e86a2?_r(_0x4f5b77,_0x437cfc):_0x4f5b77,_0x85f5ac=_0x59f88c[_0x5b4478(0x3b7)]-0x1,_0x49de88;_0x85f5ac>=0x0;_0x85f5ac--)(_0x49de88=_0x59f88c[_0x85f5ac])&&(_0x4608aa=(_0x4e86a2?_0x49de88(_0x4f5b77,_0x437cfc,_0x4608aa):_0x49de88(_0x4608aa))||_0x4608aa);return _0x4e86a2&&_0x4608aa&&lr(_0x4f5b77,_0x437cfc,_0x4608aa),_0x4608aa;},lt=(_0x417fc0,_0x1e9b9e)=>(_0x8ae5bd,_0x4e6d2f)=>_0x1e9b9e(_0x8ae5bd,_0x4e6d2f,_0x417fc0);function dr(_0x29110a){const _0x3cecde=_0x12409a,{unitID:_0x4c6395,mutations:_0x2ce688}=_0x29110a;return{'unitId':_0x4c6395,'subUnitId':_0x2ce688[0x0][_0x3cecde(0x319)][_0x3cecde(0x1b9)]};}let Ke=class{constructor(_0x3e1a6f,_0x553367,_0x3c8acf){const _0x276c41=_0x12409a;this['_injector']=_0x3e1a6f,this[_0x276c41(0x3e7)]=_0x553367,this[_0x276c41(0x10a)]=_0x3c8acf;}['transformSelections'](_0xea835e){const _0x1070b5=_0x12409a;var _0x487fdf,_0x2bd6d6,_0x1b323b,_0x3019a7;const _0x207e54=this[_0x1070b5(0x26a)][_0x1070b5(0x2d5)](_0x158fb6),{unitId:_0x595596,subUnitId:_0x51e615}=dr(_0xea835e),_0x386953=_0x207e54[_0x1070b5(0x3ca)](_0x595596)[_0x1070b5(0xd6)](),_0x5b1032=(_0x2bd6d6=(_0x487fdf=this[_0x1070b5(0x10a)][_0x1070b5(0x3e3)](_0x595596))==null?void 0x0:_0x487fdf[_0x1070b5(0x140)]())==null?void 0x0:_0x2bd6d6['getSheetId']();if(_0x386953[_0x1070b5(0x3b7)]===0x0||!_0x595596||!_0x51e615)return;const _0x1f5fd3=[{'id':_0x1c4355['id'],'params':{'unitId':_0x595596,'subUnitId':_0x5b1032,'selections':_0x5bdceb[_0x1070b5(0x2b1)](_0x386953)}}],_0x39c34c=this[_0x1070b5(0x3e7)][_0x1070b5(0x146)](_0xea835e,_0x1f5fd3);if(!_0x568457(_0x39c34c))throw _0x39c34c['error'];const _0x11e10a=(_0x3019a7=(_0x1b323b=_0x39c34c['m2Prime'][0x0])==null?void 0x0:_0x1b323b[_0x1070b5(0x319)])==null?void 0x0:_0x3019a7[_0x1070b5(0x1fb)];if(Array[_0x1070b5(0x36f)](_0x11e10a)&&_0x11e10a[_0x1070b5(0x3b7)]){if(_0x11e10a[_0x1070b5(0x3b7)]===_0x1f5fd3[0x0][_0x1070b5(0x319)][_0x1070b5(0x1fb)][_0x1070b5(0x3b7)]&&_0x11e10a['every']((_0x2817c5,_0x51da4a)=>_0x3b6a0d[_0x1070b5(0x31f)](_0x2817c5[_0x1070b5(0x3b2)],_0x1f5fd3[0x0][_0x1070b5(0x319)]['selections'][_0x51da4a][_0x1070b5(0x3b2)])))return;this[_0x1070b5(0x26a)]['get'](_0x2af4cf)[_0x1070b5(0x155)](_0x1c4355['id'],{'unitId':_0x595596,'subUnitId':_0x5b1032,'selections':_0x11e10a});}}};Ke=ur([lt(0x0,_0x565e28(_0x3f178c)),lt(0x1,_0x5dfa67),lt(0x2,_0x114f27)],Ke);const tt=_0x2fc4d3(_0x12409a(0x3d6));var Vs=(_0x3b4be4=>(_0x3b4be4[_0x3b4be4['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x12409a(0x366),_0x3b4be4[_0x3b4be4[_0x12409a(0x273)]=0x1]='OTHER_CLIENTS_EDITING',_0x3b4be4))(Vs||{});const ls=0x7530,_s=_0x12409a(0xe3);class fr extends _0x1efbc8{constructor(){const _0x5d90f0=_0x12409a;super(),l(this,'_id',_0x5bdceb['generateRandomId']()),l(this,_0x5d90f0(0x1f4),new Set()),l(this,_0x5d90f0(0x374),new Map()),l(this,_0x5d90f0(0x2f1),null),l(this,_0x5d90f0(0x2ff),new Map()),l(this,'_unitStatus',new Map()),this[_0x5d90f0(0x2c3)]();}['dispose'](){const _0x2d9e49=_0x12409a;super['dispose'](),this[_0x2d9e49(0x2ff)][_0x2d9e49(0x20d)]((_0x2fc857,_0x1e9ef5)=>this[_0x2d9e49(0x268)](_0x1e9ef5)),this[_0x2d9e49(0x2f1)]&&window[_0x2d9e49(0x14f)](this[_0x2d9e49(0x2f1)]);}[_0x12409a(0x258)](_0x2d45fc){const _0x1de25f=_0x12409a;return this[_0x1de25f(0x423)](_0x2d45fc)[_0x1de25f(0x29f)](_0x1f7048());}[_0x12409a(0x127)](_0x565b21){const _0x602f1c=_0x12409a;this[_0x602f1c(0x1f4)]['size']===0x0&&this[_0x602f1c(0x2d3)](),this['_selfUnitIDs']['add'](_0x565b21),this[_0x602f1c(0x134)]({'type':0x0,'memberID':this[_0x602f1c(0x2ae)],'unitIDs':[_0x565b21],'isForwarded':!0x1});}[_0x12409a(0xc9)](_0x40326e){const _0x300ed1=_0x12409a;this[_0x300ed1(0x1f4)][_0x300ed1(0xf3)](_0x40326e),this[_0x300ed1(0x1f4)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x300ed1(0x14f)](this[_0x300ed1(0x2f1)]);}['_init'](){const _0x1d5c31=_0x12409a;this[_0x1d5c31(0x2f2)](_0x5ef5c0(_0x983b61(window,_0x1d5c31(0x385))[_0x1d5c31(0x3c1)](_0x39d16e=>{const _0x2e1bc7=_0x1d5c31;if(_0x39d16e['key']!==_s||!_0x39d16e[_0x2e1bc7(0xe1)])return;const _0x10bb2e=JSON['parse'](_0x39d16e[_0x2e1bc7(0xe1)]);this[_0x2e1bc7(0x2f0)](_0x10bb2e);}))),window['addEventListener']('unload',()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0x1d5c31(0x1f4)])}));}[_0x12409a(0x2f0)](_0x447b77){const _0x4620f4=_0x12409a;switch(_0x447b77[_0x4620f4(0x198)]){case 0x0:this['_handleJoinEvent'](_0x447b77);break;case 0x1:this[_0x4620f4(0x37d)](_0x447b77);break;case 0x2:this[_0x4620f4(0x2e1)](_0x447b77);break;}}[_0x12409a(0x3ed)](_0x421972){const _0x34fca7=_0x12409a,{unitIDs:_0x13da11,memberID:_0x1eef41,isForwarded:_0x253b83}=_0x421972;_0x13da11[_0x34fca7(0x20d)](_0x139864=>{const _0x310ff2=_0x34fca7;if(!_0x253b83&&this[_0x310ff2(0x374)][_0x310ff2(0x128)](_0x139864)&&this[_0x310ff2(0x423)](_0x139864)['next'](0x1),!this[_0x310ff2(0x374)][_0x310ff2(0x128)](_0x139864)||!this['_unitOnClients'][_0x310ff2(0x2d5)](_0x139864)[_0x310ff2(0x128)](_0x1eef41)){const _0x2f19a8=this[_0x310ff2(0x374)][_0x310ff2(0x2d5)](_0x139864)||new Set();_0x2f19a8[_0x310ff2(0x22d)](_0x1eef41),this['_unitOnClients']['set'](_0x139864,_0x2f19a8),this['_scheduleClearOtherTimer'](_0x1eef41);}}),_0x253b83||this[_0x34fca7(0x134)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x12409a(0x176)](_0x7066d){const _0x13ae27=_0x12409a;this[_0x13ae27(0x268)](_0x7066d);const _0x21ebeb=window[_0x13ae27(0x156)](()=>{const _0x10f9d1=_0x13ae27;this[_0x10f9d1(0x374)][_0x10f9d1(0x20d)](_0x542352=>{const _0x39fa72=_0x10f9d1;_0x542352[_0x39fa72(0xf3)](_0x7066d);});},ls*0x2);this[_0x13ae27(0x2ff)][_0x13ae27(0x28a)](_0x7066d,_0x21ebeb);}[_0x12409a(0x268)](_0x49be88){const _0x4ed14a=_0x12409a;if(this[_0x4ed14a(0x2ff)][_0x4ed14a(0x128)](_0x49be88)){const _0x3faf18=this[_0x4ed14a(0x2ff)]['get'](_0x49be88);_0x3faf18&&window[_0x4ed14a(0x1ff)](_0x3faf18),this[_0x4ed14a(0x2ff)][_0x4ed14a(0x28a)](_0x49be88,null);}}[_0x12409a(0x37d)](_0x2680b8){const _0x24d1a6=_0x12409a,{memberID:_0x549764,unitIDs:_0x3bf7f2}=_0x2680b8;_0x3bf7f2[_0x24d1a6(0x20d)](_0x1efeec=>{const _0x1b952a=_0x24d1a6;var _0x33e156;const _0x2f36f4=this[_0x1b952a(0x374)][_0x1b952a(0x2d5)](_0x1efeec);_0x2f36f4&&(_0x2f36f4['delete'](_0x549764),(_0x33e156=this[_0x1b952a(0x423)](_0x1efeec))==null||_0x33e156[_0x1b952a(0x188)](_0x2f36f4[_0x1b952a(0x1b5)]===0x0?0x0:0x1));}),this[_0x24d1a6(0x268)](_0x549764);}[_0x12409a(0x2e1)](_0x345d15){const _0x47778b=_0x12409a;this['_scheduleClearOtherTimer'](_0x345d15[_0x47778b(0x2ec)]);}[_0x12409a(0x134)](_0x3440dc){const _0x1fb992=_0x12409a;localStorage[_0x1fb992(0x335)](_s,JSON[_0x1fb992(0x322)](_0x3440dc));}['_scheduleHeartbeat'](){const _0x486e96=_0x12409a;this[_0x486e96(0x2f1)]=window[_0x486e96(0x332)](()=>{const _0x48ac17=_0x486e96;this[_0x48ac17(0x134)]({'type':0x2,'memberID':this['_id']});},ls);}['_ensureSubject'](_0x2f3e1d){const _0x2227da=_0x12409a;return this[_0x2227da(0x2d1)]['has'](_0x2f3e1d)||this[_0x2227da(0x2d1)][_0x2227da(0x28a)](_0x2f3e1d,new _0x30f2ca(0x0)),this['_unitStatus'][_0x2227da(0x2d5)](_0x2f3e1d);}}function Fs(_0x47d08f){let _0x53c945='';for(const _0x5122c2 of _0x47d08f){const {startOffset:_0x5a29b3,endOffset:_0x3c44de,isActive:_0x1dffea}=_0x5122c2;_0x53c945['length']&&(_0x53c945+=','),_0x53c945+=_0x5a29b3+':'+_0x3c44de+':'+(_0x1dffea?'1':'0');}return _0x53c945;}function mr(_0x463a9f){const _0x1ec83a=_0x12409a,_0x258f39=_0x463a9f[_0x1ec83a(0xe9)](','),_0x31e401=[];for(const _0x333bfb of _0x258f39){const [_0x424533,_0x205236,_0x53832f]=_0x333bfb[_0x1ec83a(0xe9)](':');_0x31e401[_0x1ec83a(0x325)]({'startOffset':Number(_0x424533),'endOffset':Number(_0x205236),'collapsed':_0x424533===_0x205236,'isActive':_0x53832f==='1'});}return _0x31e401[_0x1ec83a(0x3c3)](_0x18a858=>_0x18a858[_0x1ec83a(0x36a)])||(_0x31e401[0x0][_0x1ec83a(0x36a)]=!0x0),_0x31e401;}class Ft extends _0x5d8701{constructor(){const _0x159ae2=_0x12409a;super(...arguments),l(this,_0x159ae2(0x219),new _0x30f2ca(null)),l(this,_0x159ae2(0xf4),this[_0x159ae2(0x219)]['asObservable']());}[_0x12409a(0x145)](_0x4a8edd){const _0xe9bca0=_0x12409a,{unitID:_0x511a6e,memberID:_0x45397a,textRanges:_0x3b361d}=_0x4a8edd,_0x15a90b=Fs(_0x3b361d),_0x2f652b={'unitID':_0x511a6e,'memberID':_0x45397a,'selection':_0x15a90b};this[_0xe9bca0(0x219)][_0xe9bca0(0x188)](_0x2f652b);}}var gr=Object[_0x12409a(0x1ee)],Sr=Object[_0x12409a(0xfe)],pr=(_0x135186,_0x5034e6,_0x1c71be,_0x3a9382)=>{const _0x30b2bb=_0x12409a;for(var _0x492cbe=_0x3a9382>0x1?void 0x0:_0x3a9382?Sr(_0x5034e6,_0x1c71be):_0x5034e6,_0x409b6e=_0x135186[_0x30b2bb(0x3b7)]-0x1,_0xe533ec;_0x409b6e>=0x0;_0x409b6e--)(_0xe533ec=_0x135186[_0x409b6e])&&(_0x492cbe=(_0x3a9382?_0xe533ec(_0x5034e6,_0x1c71be,_0x492cbe):_0xe533ec(_0x492cbe))||_0x492cbe);return _0x3a9382&&_0x492cbe&&gr(_0x5034e6,_0x1c71be,_0x492cbe),_0x492cbe;},us=(_0x56d2da,_0x535459)=>(_0x1a3680,_0x981543)=>_0x535459(_0x1a3680,_0x981543,_0x56d2da);let Xe=class{constructor(_0x17f698,_0x27edb0){const _0x36ddfa=_0x12409a;this[_0x36ddfa(0x26a)]=_0x17f698,this['_transformService']=_0x27edb0;}[_0x12409a(0x272)](_0x58cda5){const _0x52602b=_0x12409a;var _0x45c240;const _0x434cfe=this[_0x52602b(0x26a)][_0x52602b(0x2d5)](_0x2452e8),_0x221896=(_0x45c240=_0x434cfe['getDocRanges']())!=null?_0x45c240:[];if(_0x221896['length']===0x0)return;const _0xfac7d7=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x58cda5['unitID'],'actions':null,'textRanges':_0x221896}}],_0x2a0cd0=this['_transformService']['transformMutationsWithChangeset'](_0x58cda5,_0xfac7d7);if(!_0x568457(_0x2a0cd0))throw _0x2a0cd0[_0x52602b(0x2d7)];const _0x12895d=_0x2a0cd0[_0x52602b(0x346)][0x0][_0x52602b(0x319)][_0x52602b(0x3a8)];Array['isArray'](_0x12895d)&&_0x12895d[_0x52602b(0x3b7)]&&_0x434cfe[_0x52602b(0x3fe)](_0x12895d,!0x1);}};Xe=pr([us(0x0,_0x565e28(_0x3f178c)),us(0x1,_0x5dfa67)],Xe);const vr=new Set([_0x565345['id']]);function ds(_0x39dee9,_0x4d0f18,_0x49de20,_0x508ea2,_0x5300a8){const _0x4aca88=_0x12409a;var _0x87eef2,_0x4f9e35,_0x592a61,_0x37c85c;const _0x2ff190=[];for(const _0x28255b of _0x39dee9)if(vr[_0x4aca88(0x128)](_0x28255b['id'])){if(_0x2ff190[_0x4aca88(0x3b7)]>0x0)break;_0x2ff190[_0x4aca88(0x325)](_0x28255b);break;}else _0x2ff190[_0x4aca88(0x325)](_0x28255b);const _0x52dbf5=(_0x4f9e35=(_0x87eef2=_0x5300a8[_0x4aca88(0x2a2)]())==null?void 0x0:_0x87eef2[_0x4aca88(0x359)])!=null?_0x4f9e35:'unknown',_0x148228=(_0x37c85c=(_0x592a61=_0x5300a8['getCurrentUser']())==null?void 0x0:_0x592a61['memberID'])!=null?_0x37c85c:'unknown';return{'changeset':{'unitID':_0x4d0f18,'type':_0x22736c(_0x49de20[_0x4aca88(0x1ea)](_0x4d0f18)),'baseRev':_0x508ea2[_0x4aca88(0x419)](_0x4d0f18),'revision':0x0,'userID':_0x52dbf5,'memberID':_0x148228,'mutations':_0x2ff190},'pendingMutations':_0x39dee9[_0x4aca88(0x3e6)](_0x2ff190['length'])};}function Ir(_0x32da2d,_0x430432,_0x15d84d,_0x4fa6e6,_0x22089e){const _0x2236ef=_0x12409a;var _0x402bc6,_0x262cbe,_0x587b27,_0x3c2b58;const _0x9e25e6=[_0x32da2d[_0x2236ef(0xb0)]((_0x41fb15,_0x25c581)=>{const _0x53bda8=_0x2236ef;var _0x41d726;const {id:_0x53cbbf}=_0x41fb15,{id:_0x102108,type:_0x32b7be}=_0x25c581,_0x3f1e93=(_0x41d726=_0x41fb15[_0x53bda8(0x319)])!=null?_0x41d726:{'actions':null},_0x3f2155=_0x25c581['params'];if(_0x53cbbf&&_0x53cbbf!==_0x102108)throw new Error(_0x53bda8(0x16d)+_0x53cbbf+'\x20-\x20'+_0x102108+'.');return{..._0x41fb15,'id':_0x102108,'type':_0x32b7be,'params':{'unitId':_0x3f2155[_0x53bda8(0x42e)],'textRanges':_0x3f2155['textRanges'],'actions':_0x5294e6[_0x53bda8(0x1ed)](_0x3f1e93['actions'],_0x3f2155['actions'])}};},{})],_0x4402b7=(_0x262cbe=(_0x402bc6=_0x22089e[_0x2236ef(0x2a2)]())==null?void 0x0:_0x402bc6[_0x2236ef(0x359)])!=null?_0x262cbe:_0x2236ef(0x165),_0x23782a=(_0x3c2b58=(_0x587b27=_0x22089e[_0x2236ef(0x2a2)]())==null?void 0x0:_0x587b27[_0x2236ef(0x2ec)])!=null?_0x3c2b58:_0x2236ef(0x165);return{'changeset':{'unitID':_0x430432,'type':_0x22736c(_0x15d84d[_0x2236ef(0x1ea)](_0x430432)),'baseRev':_0x4fa6e6[_0x2236ef(0x419)](_0x430432),'revision':0x0,'userID':_0x4402b7,'memberID':_0x23782a,'mutations':_0x9e25e6},'pendingMutations':[]};}const Er={'id':_0x8b0674['id'],'type':_0x1070ad[_0x12409a(0x376)],'params':{}};var Cr=Object[_0x12409a(0x1ee)],br=Object[_0x12409a(0xfe)],_e=(_0x55a085,_0x1da659,_0x4e4b11,_0x270390)=>{for(var _0x17a997=_0x270390>0x1?void 0x0:_0x270390?br(_0x1da659,_0x4e4b11):_0x1da659,_0x2a9a0c=_0x55a085['length']-0x1,_0x590cea;_0x2a9a0c>=0x0;_0x2a9a0c--)(_0x590cea=_0x55a085[_0x2a9a0c])&&(_0x17a997=(_0x270390?_0x590cea(_0x1da659,_0x4e4b11,_0x17a997):_0x590cea(_0x17a997))||_0x17a997);return _0x270390&&_0x17a997&&Cr(_0x1da659,_0x4e4b11,_0x17a997),_0x17a997;},m=(_0x1bcfac,_0x5cf25f)=>(_0x252408,_0x5c2b74)=>_0x5cf25f(_0x252408,_0x5c2b74,_0x1bcfac),P=(_0x2a7831=>(_0x2a7831['NOT_COLLAB']=_0x12409a(0x2ee),_0x2a7831[_0x12409a(0x42b)]=_0x12409a(0x1f7),_0x2a7831[_0x12409a(0x12f)]=_0x12409a(0x3a0),_0x2a7831[_0x12409a(0x3d8)]=_0x12409a(0x37c),_0x2a7831[_0x12409a(0x3aa)]=_0x12409a(0xe7),_0x2a7831[_0x12409a(0x3a4)]='fetch_missing',_0x2a7831[_0x12409a(0x197)]=_0x12409a(0x240),_0x2a7831[_0x12409a(0x108)]='offline',_0x2a7831))(P||{});class ue{constructor(_0x29526c,_0x403e1e,_0x335772,_0x401129,_0x3bc90b,_0x2d7e59,_0x3c2c8a,_0x1b11c1,_0x3e7045){const _0x271eaf=_0x12409a;l(this,_0x271eaf(0xcc),null),l(this,_0x271eaf(0x29a),[]),(this['unitID']=_0x29526c,this[_0x271eaf(0x198)]=_0x403e1e,this[_0x271eaf(0x257)]=_0x3bc90b,this['_commandService']=_0x2d7e59,this[_0x271eaf(0x33a)]=_0x3c2c8a,this[_0x271eaf(0x1fa)]=_0x1b11c1,this[_0x271eaf(0x2f8)]=_0x3e7045,this[_0x271eaf(0xcc)]=_0x335772,this[_0x271eaf(0x29a)]=_0x401129);}[_0x12409a(0x412)](_0x5e301b){const _0x2a0e17=_0x12409a,_0x4ba8fe=this[_0x2a0e17(0x1fa)][_0x2a0e17(0x419)](this[_0x2a0e17(0x2fd)]);return _0x5e301b[_0x2a0e17(0x168)]>_0x4ba8fe+0x1?(this[_0x2a0e17(0x257)][_0x2a0e17(0x398)]({'from':_0x4ba8fe,'to':_0x5e301b[_0x2a0e17(0x168)]-0x1}),!0x0):!0x1;}[_0x12409a(0x3bd)](_0x2ad3b3){const _0x30236f=_0x12409a;this[_0x30236f(0x33a)]['transformUndoRedo'](this[_0x30236f(0x2fd)],_0x2ad3b3);}[_0x12409a(0x1f9)](_0xb6d296){const _0xfc8903=_0x12409a;var _0x226bad,_0x3b9031;(_0x3b9031=(_0x226bad=this['_handler'])[_0xfc8903(0x311)])==null||_0x3b9031['call'](_0x226bad,_0xb6d296);}['_transformIMECache'](_0x59db69){const _0x3effce=_0x12409a;var _0x590eaa,_0x4b75e8;return(_0x4b75e8=(_0x590eaa=this[_0x3effce(0x257)])[_0x3effce(0x352)])==null?void 0x0:_0x4b75e8[_0x3effce(0x1da)](_0x590eaa,_0x59db69);}['_transformRemoteChangesetByIMECache'](_0x85154f){const _0x24ec2e=_0x12409a;var _0x1878fc,_0x451292,_0x4c7ae5;return(_0x4c7ae5=(_0x451292=(_0x1878fc=this[_0x24ec2e(0x257)])[_0x24ec2e(0x396)])==null?void 0x0:_0x451292[_0x24ec2e(0x1da)](_0x1878fc,_0x85154f))!=null?_0x4c7ae5:_0x85154f;}[_0x12409a(0x212)](_0xe644c){const _0x4562a4=_0x12409a;var _0x239d6c,_0x1fbfbd;if(this[_0x4562a4(0x198)]===k[_0x4562a4(0x15b)]){const {unitID:_0x552e5d,mutations:_0x42164b,memberID:_0x282c0f}=_0xe644c,_0x40d806=_0x42164b[0x0][_0x4562a4(0x319)][_0x4562a4(0x3a8)];Array['isArray'](_0x40d806)&&_0x40d806['length']>0x0&&((_0x1fbfbd=(_0x239d6c=this[_0x4562a4(0x257)])[_0x4562a4(0xb9)])==null||_0x1fbfbd[_0x4562a4(0x1da)](_0x239d6c,{'unitID':_0x552e5d,'memberID':_0x282c0f,'textRanges':_0x40d806}));}}[_0x12409a(0x349)](){const _0x18572a=_0x12409a;this[_0x18572a(0x2f8)][_0x18572a(0x158)](this[_0x18572a(0x2fd)],this['type'],this['_awaitingChangeset'],this[_0x18572a(0x29a)]);}['_getCurrentRevision'](){const _0x57b41a=_0x12409a;return this[_0x57b41a(0x1fa)][_0x57b41a(0x419)](this[_0x57b41a(0x2fd)]);}['_incrementRevisionNumber'](){const _0x3c7750=_0x12409a;this[_0x3c7750(0x1fa)][_0x3c7750(0x2b5)](this[_0x3c7750(0x2fd)]);}[_0x12409a(0x428)](_0x396ec1){const _0x1794cd=_0x12409a;var _0x406ed0;const _0x311331=this[_0x1794cd(0x329)](_0x396ec1),_0x2d4965=_0x12c615(_0x311331[_0x1794cd(0x1b8)],this['_commandService'],{'fromCollab':!0x0});if(!_0x2d4965['result'])throw _0x2d4965['error']instanceof Error?_0x2d4965[_0x1794cd(0x2d7)]:new Error((_0x406ed0=_0x2d4965['error'])!=null?_0x406ed0:_0x1794cd(0xdb));this[_0x1794cd(0x409)](_0x311331),this[_0x1794cd(0x3bd)](_0x396ec1),this[_0x1794cd(0x1f9)](_0x311331),this['_syncEditingCollabCursor'](_0x311331),this[_0x1794cd(0x25d)]();}}let pe=class extends ue{constructor(_0x357c7a,_0x1c1cd0,_0x4e168a,_0x4b0a65,_0x56b37f,_0x485f1f,_0x36c930,_0xdd198c,_0x1f492a,_0x7858f){const _0x2cfa12=_0x12409a;super(_0x357c7a,_0x1c1cd0,null,[],_0x4e168a,_0xdd198c,_0x36c930,_0x4b0a65,_0x56b37f),l(this,_0x2cfa12(0x39e),'synced'),(this['_injector']=_0x485f1f,this['_logService']=_0x1f492a,this[_0x2cfa12(0x3e7)]=_0x7858f);}[_0x12409a(0x30a)](_0xd86ad4){const _0x215377=_0x12409a,_0x4c0ad4=this[_0x215377(0x26a)]['createInstance'](X,this[_0x215377(0x2fd)],this['type'],[_0xd86ad4],this[_0x215377(0x257)]);return _0x4c0ad4[_0x215377(0x1ae)](),_0x4c0ad4[_0x215377(0x349)](),_0x4c0ad4;}[_0x12409a(0xfa)](_0x250c9b){const _0x479bf3=_0x12409a;if(this[_0x479bf3(0x412)](_0x250c9b))return this[_0x479bf3(0x26a)][_0x479bf3(0x32e)](B,this[_0x479bf3(0x2fd)],this['type'],null,[],null,[_0x250c9b],this[_0x479bf3(0x257)]);try{const _0x5b7daa=this[_0x479bf3(0x3e7)][_0x479bf3(0x146)](_0x250c9b,[Er]);if(_0x568457(_0x5b7daa)){const {c1Prime:_0x2cec56}=_0x5b7daa;return this[_0x479bf3(0x428)](_0x2cec56),this;}throw _0x5b7daa[_0x479bf3(0x2d7)];}catch(_0x51fa2f){return this[_0x479bf3(0x24e)][_0x479bf3(0x2d7)](_0x51fa2f),this[_0x479bf3(0x308)](!0x1);}}[_0x12409a(0x308)](_0x57944c){const _0x1ef8b1=_0x12409a;return this[_0x1ef8b1(0x26a)][_0x1ef8b1(0x32e)](ee,this[_0x1ef8b1(0x2fd)],this[_0x1ef8b1(0x198)],null,[],this[_0x1ef8b1(0x257)],_0x57944c);}[_0x12409a(0x367)](){const _0x297cbb=_0x12409a;throw new Error(_0x297cbb(0x2f9));}[_0x12409a(0x35b)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x12409a(0x217)](){const _0x429e6c=_0x12409a;return this[_0x429e6c(0x26a)][_0x429e6c(0x32e)](te,this[_0x429e6c(0x2fd)],this['type'],null,[],this[_0x429e6c(0x257)]);}['toggleOnline'](){return this;}[_0x12409a(0x20c)](){const _0x9df48b=_0x12409a;throw new Error(_0x9df48b(0x402));}[_0x12409a(0x284)](){const _0x14be9b=_0x12409a,_0x3126c6=this[_0x14be9b(0x1fa)][_0x14be9b(0x419)](this[_0x14be9b(0x2fd)]);return this[_0x14be9b(0x257)][_0x14be9b(0x398)]({'from':_0x3126c6,'to':0x0}),this['_injector'][_0x14be9b(0x32e)](B,this['unitID'],this['type'],null,[],null,[],this[_0x14be9b(0x257)]);}};pe=_e([m(0x3,_0x565e28(_0x4b7ded)),m(0x4,_0x565e28(w)),m(0x5,_0x565e28(_0x3f178c)),m(0x6,_0x26c70e),m(0x7,_0x2af4cf),m(0x8,_0x2fef42),m(0x9,_0x5dfa67)],pe);let X=class extends ue{constructor(_0x5abf62,_0x3dd3cd,_0x2daba3,_0x4320d0,_0x228dd5,_0x10391a,_0x13934d,_0x15ace4,_0x56cf66,_0x2487bb,_0x2ef0fa,_0x54aeed,_0x563e13,_0x5789a0){const _0x43ba70=_0x12409a;super(_0x5abf62,_0x3dd3cd,null,_0x2daba3,_0x4320d0,_0x2487bb,_0x5789a0,_0x10391a,_0x13934d),l(this,'status',_0x43ba70(0x3a0)),l(this,_0x43ba70(0xdf),null),l(this,'_sendingTimer',null),(this[_0x43ba70(0x26a)]=_0x228dd5,this[_0x43ba70(0x3bc)]=_0x15ace4,this[_0x43ba70(0x24e)]=_0x56cf66,this[_0x43ba70(0x150)]=_0x2ef0fa,this[_0x43ba70(0x3e7)]=_0x54aeed,this[_0x43ba70(0x392)]=_0x563e13);}[_0x12409a(0x30a)](_0x1596b7){const _0xfa36f7=_0x12409a;return this['_pendingMutations'][_0xfa36f7(0x325)](_0x1596b7),this[_0xfa36f7(0x349)](),this;}[_0x12409a(0xfa)](_0x330a2c){const _0x118c90=_0x12409a;if(this[_0x118c90(0x412)](_0x330a2c))return this['_clearScheduledTask'](),this['_injector'][_0x118c90(0x32e)](B,this['unitID'],this['type'],null,this[_0x118c90(0x29a)],null,[_0x330a2c],this[_0x118c90(0x257)]);try{const _0x5a304f=this[_0x118c90(0x3e7)][_0x118c90(0x146)](_0x330a2c,this[_0x118c90(0x29a)]);if(_0x568457(_0x5a304f)){const {c1Prime:_0x169c44,m2Prime:_0x5c5052}=_0x5a304f;this[_0x118c90(0x428)](_0x169c44);const _0x45d9f6=this[_0x118c90(0x26a)]['createInstance'](X,this[_0x118c90(0x2fd)],this['type'],_0x5c5052,this[_0x118c90(0x257)]);return this[_0x118c90(0x1f1)](),_0x45d9f6[_0x118c90(0x1ae)](this['_scheduleTimestamp']?Math[_0x118c90(0x360)](0x0,new Date()[_0x118c90(0x2b9)]()-this[_0x118c90(0xdf)]):this[_0x118c90(0xf2)]()),_0x45d9f6;}throw _0x5a304f[_0x118c90(0x2d7)];}catch(_0x2001bc){return this[_0x118c90(0x24e)][_0x118c90(0x2d7)](_0x2001bc),this[_0x118c90(0x308)](!0x1);}}[_0x12409a(0x367)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x5b5527=_0x12409a;throw new Error(_0x5b5527(0x18b));}[_0x12409a(0x217)](){const _0xb041=_0x12409a;return this[_0xb041(0x1f1)](),this['_injector']['createInstance'](te,this[_0xb041(0x2fd)],this['type'],null,this[_0xb041(0x29a)],this[_0xb041(0x257)]);}[_0x12409a(0x1d6)](){return this;}[_0x12409a(0x1ae)](_0x2802d2){const _0x226372=_0x12409a,_0x523fc4=_0x2802d2!=null?_0x2802d2:this[_0x226372(0xf2)]();this[_0x226372(0xdf)]=new Date()[_0x226372(0x2b9)](),this[_0x226372(0x3cc)]=window[_0x226372(0x156)](()=>{const _0x2bb673=_0x226372;this[_0x2bb673(0x1f1)]();let _0x2024c1=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x2024c1=ds(this[_0x2bb673(0x29a)],this[_0x2bb673(0x2fd)],this[_0x2bb673(0x392)],this[_0x2bb673(0x1fa)],this[_0x2bb673(0x3bc)]);break;}case k[_0x2bb673(0x15b)]:{this[_0x2bb673(0x29a)][_0x2bb673(0x26c)](_0x3c44f1=>_0x3c44f1['id']===_0x5e8bc0['id'])?_0x2024c1=Ir(this[_0x2bb673(0x29a)],this['unitID'],this[_0x2bb673(0x392)],this[_0x2bb673(0x1fa)],this[_0x2bb673(0x3bc)]):_0x2024c1=ds(this[_0x2bb673(0x29a)],this[_0x2bb673(0x2fd)],this[_0x2bb673(0x392)],this['_revisionService'],this[_0x2bb673(0x3bc)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2bb673(0x198)]+_0x2bb673(0x39f));}const {changeset:_0x2af32f,pendingMutations:_0x2fcb9c}=_0x2024c1;this[_0x2bb673(0x257)]['onSendChangeset'](_0x2af32f);const _0x5a39f9=_0x2fcb9c['length']?this[_0x2bb673(0x26a)][_0x2bb673(0x32e)](q,this['unitID'],this[_0x2bb673(0x198)],_0x2af32f,_0x2fcb9c,this['_handler']):this[_0x2bb673(0x26a)][_0x2bb673(0x32e)](Q,this[_0x2bb673(0x2fd)],this[_0x2bb673(0x198)],_0x2af32f,this[_0x2bb673(0x257)]);_0x5a39f9[_0x2bb673(0x349)](),this[_0x2bb673(0x257)]['onStateChange'](this,_0x5a39f9);},_0x523fc4);}[_0x12409a(0xf2)](){const _0x2e6f54=_0x12409a;var _0x20cbe6;const _0x4dc07c=this[_0x2e6f54(0x150)][_0x2e6f54(0x312)]($);return(_0x20cbe6=_0x4dc07c==null?void 0x0:_0x4dc07c[_0x2e6f54(0x38d)])!=null?_0x20cbe6:In;}[_0x12409a(0x20c)](){const _0x56fa3f=_0x12409a;throw new Error(_0x56fa3f(0x1b7));}['_clearScheduledTask'](){const _0x5bad72=_0x12409a;this[_0x5bad72(0x3cc)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x5bad72(0x3cc)]=null);}[_0x12409a(0x308)](_0x5a2734){const _0x4f3f79=_0x12409a;return this[_0x4f3f79(0x1f1)](),this[_0x4f3f79(0x26a)][_0x4f3f79(0x32e)](ee,this[_0x4f3f79(0x2fd)],this[_0x4f3f79(0x198)],null,this[_0x4f3f79(0x29a)],this['_handler'],_0x5a2734);}};X=_e([m(0x4,_0x565e28(_0x3f178c)),m(0x5,_0x565e28(_0x4b7ded)),m(0x6,_0x565e28(w)),m(0x7,_0x565e28(ce)),m(0x8,_0x2fef42),m(0x9,_0x2af4cf),m(0xa,_0x301e4e),m(0xb,_0x5dfa67),m(0xc,_0x114f27),m(0xd,_0x26c70e)],X);let Q=class extends ue{constructor(_0x81398e,_0x3d4f27,_0x187c03,_0x4c06d0,_0x5f3691,_0x4867f3,_0x4c5c43,_0x2e4b33,_0x593d37,_0xbaa060,_0x41cfcd){const _0x13453e=_0x12409a;super(_0x81398e,_0x3d4f27,_0x187c03,[],_0x4c06d0,_0x2e4b33,_0x41cfcd,_0x4867f3,_0x4c5c43),l(this,_0x13453e(0x39e),_0x13453e(0x37c)),(this['_injector']=_0x5f3691,this[_0x13453e(0x24e)]=_0x593d37,this[_0x13453e(0x3e7)]=_0xbaa060);}['appendMutation'](_0x4ce1d0){const _0x4a8a8d=_0x12409a,_0xd33889=this[_0x4a8a8d(0x26a)][_0x4a8a8d(0x32e)](q,this[_0x4a8a8d(0x2fd)],this[_0x4a8a8d(0x198)],this[_0x4a8a8d(0xcc)],[_0x4ce1d0],this[_0x4a8a8d(0x257)]);return _0xd33889[_0x4a8a8d(0x349)](),_0xd33889;}[_0x12409a(0xfa)](_0x60fc16){const _0x426669=_0x12409a;if(this[_0x426669(0x412)](_0x60fc16))return this[_0x426669(0x26a)][_0x426669(0x32e)](B,this[_0x426669(0x2fd)],this[_0x426669(0x198)],this[_0x426669(0xcc)],[],null,[_0x60fc16],this[_0x426669(0x257)]);try{const _0x23ba16=this[_0x426669(0x3e7)][_0x426669(0xc3)]([_0x60fc16],[this[_0x426669(0xcc)]],!0x1);if(_0x35b7ff(_0x23ba16)){const {c1Prime:_0x1dca2,c2Prime:_0x3d88b0}=_0x23ba16;this[_0x426669(0x428)](_0x1dca2[0x0]),_0x3d88b0[0x0][_0x426669(0x1e3)]=this[_0x426669(0x163)]();const _0x1c2480=this[_0x426669(0x26a)][_0x426669(0x32e)](Q,this['unitID'],this[_0x426669(0x198)],_0x3d88b0[0x0],this['_handler']);return _0x1c2480[_0x426669(0x349)](),_0x1c2480;}return this[_0x426669(0x308)](!0x1);}catch(_0x3a9786){return this[_0x426669(0x24e)]['error'](_0x3a9786),this[_0x426669(0x308)](!0x1);}}['onRemoteAck'](_0x529227){const _0x4cc694=_0x12409a,_0x16367d=this[_0x4cc694(0x1fa)]['getCurrentRevOfUnit'](this[_0x4cc694(0x2fd)]);if(_0x529227[_0x4cc694(0x168)]<_0x16367d-0x1)return this;if(this[_0x4cc694(0x412)](_0x529227))return this[_0x4cc694(0x26a)][_0x4cc694(0x32e)](B,this[_0x4cc694(0x2fd)],this['type'],null,[],this[_0x4cc694(0xcc)],[],this[_0x4cc694(0x257)]);this['_incrementRevisionNumber']();const _0x387eeb=this[_0x4cc694(0x26a)][_0x4cc694(0x32e)](pe,this[_0x4cc694(0x2fd)],this[_0x4cc694(0x198)],this['_handler']);return _0x387eeb[_0x4cc694(0x349)](),_0x387eeb;}[_0x12409a(0x35b)](_0x44554b){const _0x4238dc=_0x12409a;return this[_0x4238dc(0x308)](!!(_0x44554b!=null&&_0x44554b[_0x4238dc(0x256)]));}['toggleOffline'](){const _0x2ae07f=_0x12409a;return this[_0x2ae07f(0x26a)][_0x2ae07f(0x32e)](te,this['unitID'],this[_0x2ae07f(0x198)],this[_0x2ae07f(0xcc)],[],this[_0x2ae07f(0x257)]);}['toggleOnline'](){return this;}[_0x12409a(0x20c)](){const _0x4166cf=_0x12409a;this[_0x4166cf(0x257)][_0x4166cf(0x383)](this[_0x4166cf(0xcc)]);}[_0x12409a(0x308)](_0x5f4934){const _0x2b5489=_0x12409a;return this['_injector'][_0x2b5489(0x32e)](ee,this[_0x2b5489(0x2fd)],this['type'],this[_0x2b5489(0xcc)],[],this[_0x2b5489(0x257)],_0x5f4934);}};Q=_e([m(0x4,_0x565e28(_0x3f178c)),m(0x5,_0x565e28(_0x4b7ded)),m(0x6,_0x565e28(w)),m(0x7,_0x2af4cf),m(0x8,_0x2fef42),m(0x9,_0x5dfa67),m(0xa,_0x26c70e)],Q);let q=class extends ue{constructor(_0x15367b,_0xec6c13,_0x40c2b4,_0x3bed95,_0x149d20,_0x451a9a,_0x2552d8,_0x4f9bdb,_0x39e92e,_0x4193ef,_0xb87d64,_0x2b9282){const _0x53fa3c=_0x12409a;super(_0x15367b,_0xec6c13,_0x40c2b4,_0x3bed95,_0x149d20,_0x39e92e,_0x2b9282,_0x2552d8,_0x4f9bdb),l(this,_0x53fa3c(0x39e),'awaiting_with_pending'),(this['_injector']=_0x451a9a,this[_0x53fa3c(0x24e)]=_0x4193ef,this[_0x53fa3c(0x3e7)]=_0xb87d64);}[_0x12409a(0x30a)](_0x2f1acd){const _0x335a8b=_0x12409a;return this['_pendingMutations'][_0x335a8b(0x325)](_0x2f1acd),this;}['onRemoteChangeset'](_0x72ea72){const _0x2a4c1d=_0x12409a;if(this[_0x2a4c1d(0x412)](_0x72ea72))return this['_injector'][_0x2a4c1d(0x32e)](B,this['unitID'],this[_0x2a4c1d(0x198)],this[_0x2a4c1d(0xcc)],this[_0x2a4c1d(0x29a)],null,[_0x72ea72],this[_0x2a4c1d(0x257)]);try{const _0x3c6a40=this[_0x2a4c1d(0x3e7)]['transformChangesets']([_0x72ea72],[this[_0x2a4c1d(0xcc)]],!0x1);if(_0x35b7ff(_0x3c6a40)){const {c1Prime:_0x3da17f,c2Prime:_0x4ffbb3}=_0x3c6a40,_0x3cdc56=this['_transformService'][_0x2a4c1d(0x146)](_0x3da17f[0x0],this['_pendingMutations']);if(_0x568457(_0x3cdc56)){const {c1Prime:_0x50c100,m2Prime:_0x3e1d03}=_0x3cdc56;return this[_0x2a4c1d(0x428)](_0x50c100),_0x4ffbb3[0x0][_0x2a4c1d(0x1e3)]=this[_0x2a4c1d(0x163)](),this[_0x2a4c1d(0x26a)]['createInstance'](q,this[_0x2a4c1d(0x2fd)],this['type'],_0x4ffbb3[0x0],_0x3e1d03,this[_0x2a4c1d(0x257)]);}throw _0x3cdc56[_0x2a4c1d(0x2d7)];}throw _0x3c6a40[_0x2a4c1d(0x2d7)];}catch(_0x1cf9fd){return this[_0x2a4c1d(0x24e)]['error'](_0x1cf9fd),this[_0x2a4c1d(0x308)](!0x1);}}['onRemoteAck'](_0x36f691){const _0x19d32d=_0x12409a;if(this[_0x19d32d(0x412)](_0x36f691))return this[_0x19d32d(0x26a)]['createInstance'](B,this[_0x19d32d(0x2fd)],this[_0x19d32d(0x198)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x19d32d(0x257)]);this[_0x19d32d(0x25d)]();const _0x105f48=this['_injector'][_0x19d32d(0x32e)](X,this[_0x19d32d(0x2fd)],this[_0x19d32d(0x198)],this[_0x19d32d(0x29a)],this['_handler']);return _0x105f48[_0x19d32d(0x1ae)](),_0x105f48[_0x19d32d(0x349)](),_0x105f48;}[_0x12409a(0x35b)](_0x3019b3){const _0x1da783=_0x12409a;return this[_0x1da783(0x308)](!!(_0x3019b3!=null&&_0x3019b3[_0x1da783(0x256)]));}['toggleOffline'](){const _0x59014a=_0x12409a;return this[_0x59014a(0x26a)][_0x59014a(0x32e)](te,this[_0x59014a(0x2fd)],this[_0x59014a(0x198)],this[_0x59014a(0xcc)],this[_0x59014a(0x29a)],this['_handler']);}[_0x12409a(0x1d6)](){return this;}[_0x12409a(0x20c)](){const _0x5478fb=_0x12409a;this['_handler'][_0x5478fb(0x383)](this['_awaitingChangeset']);}[_0x12409a(0x308)](_0x5251a1){const _0x3bfca5=_0x12409a;return this[_0x3bfca5(0x26a)][_0x3bfca5(0x32e)](ee,this['unitID'],this[_0x3bfca5(0x198)],null,this['_pendingMutations'],this[_0x3bfca5(0x257)],_0x5251a1);}};q=_e([m(0x5,_0x565e28(_0x3f178c)),m(0x6,_0x565e28(_0x4b7ded)),m(0x7,_0x565e28(w)),m(0x8,_0x2af4cf),m(0x9,_0x2fef42),m(0xa,_0x5dfa67),m(0xb,_0x26c70e)],q);let ee=class extends ue{constructor(_0x5ef5f7,_0x2deaeb,_0x4829a1,_0x5a6c20,_0x2b44b5,_0x34b6bc=!0x1,_0x1d6091,_0x32beeb,_0x1167ea,_0x4e5917,_0x549f1d,_0x3d5ef8,_0x3b67a8){const _0x3dbf47=_0x12409a;super(_0x5ef5f7,_0x2deaeb,_0x4829a1,_0x5a6c20,_0x2b44b5,_0x32beeb,_0x1167ea,_0x549f1d,_0x4e5917),l(this,_0x3dbf47(0x39e),_0x3dbf47(0x240)),(this['_isPermissionRej']=_0x34b6bc,this[_0x3dbf47(0x16b)]=_0x1d6091,this[_0x3dbf47(0xd9)]=_0x3d5ef8,this[_0x3dbf47(0x38c)]=_0x3b67a8,this[_0x3dbf47(0x407)](),this[_0x3dbf47(0x3fc)](),this[_0x3dbf47(0x2bb)]());}[_0x12409a(0x30a)](){return this;}[_0x12409a(0xfa)](){return this;}[_0x12409a(0x367)](){return this;}[_0x12409a(0x35b)](){return this;}[_0x12409a(0x217)](){return this;}['toggleOnline'](){return this;}[_0x12409a(0x20c)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x12409a(0x3fc)](){const _0x3c8d56=_0x12409a;this[_0x3c8d56(0x2f8)][_0x3c8d56(0x158)](this[_0x3c8d56(0x2fd)],this[_0x3c8d56(0x198)],null,[]);}[_0x12409a(0x407)](){const _0x242a7f=_0x12409a;this[_0x242a7f(0xde)]?this[_0x242a7f(0x38c)][_0x242a7f(0x3a1)]({'title':this[_0x242a7f(0xd9)]['t']('permission.title'),'content':this[_0x242a7f(0xd9)]['t']('permission.content'),'type':_0x242a7f(0x2d7),'duration':0x0}):this['_notificationService'][_0x242a7f(0x3a1)]({'title':this[_0x242a7f(0xd9)]['t'](_0x242a7f(0x35d)),'content':this[_0x242a7f(0xd9)]['t'](_0x242a7f(0xbd)),'type':'error','duration':0x0});}[_0x12409a(0x2bb)](){const _0x45de7d=_0x12409a;this[_0x45de7d(0x16b)][_0x45de7d(0x333)](new _0x19d13a(this[_0x45de7d(0x2fd)])['id'],!0x1);}};ee=_e([m(0x6,_0x565e28(_0x4594fa)),m(0x7,_0x2af4cf),m(0x8,_0x26c70e),m(0x9,_0x565e28(w)),m(0xa,_0x565e28(_0x4b7ded)),m(0xb,_0x565e28(_0x128cab)),m(0xc,_0x2ba0b5)],ee);let te=class extends ue{constructor(_0x537457,_0x531e45,_0xc9f97a,_0x53d4bc,_0x7a2e1f,_0x4bdeb5,_0x23e901,_0x1477af,_0x5a267a,_0x5aa1cc){const _0x477087=_0x12409a;super(_0x537457,_0x531e45,_0xc9f97a,_0x53d4bc,_0x7a2e1f,_0x5a267a,_0x5aa1cc,_0x23e901,_0x1477af),l(this,'status','offline'),this[_0x477087(0x26a)]=_0x4bdeb5;}[_0x12409a(0x30a)](_0x5cfcb3){const _0xc29445=_0x12409a;return this[_0xc29445(0x29a)][_0xc29445(0x325)](_0x5cfcb3),this[_0xc29445(0x349)](),this;}[_0x12409a(0xfa)](_0x4ad61a){const _0x38b705=_0x12409a;throw new Error(_0x38b705(0x1c8));}[_0x12409a(0x367)](){const _0x405b02=_0x12409a;throw new Error(_0x405b02(0x3a6));}[_0x12409a(0x35b)](){const _0x4438dd=_0x12409a;throw new Error(_0x4438dd(0x15a));}['toggleOffline'](){return this;}[_0x12409a(0x1d6)](){const _0x5cef13=_0x12409a,{_injector:_0x4e3b27,_pendingMutations:_0x583641,_awaitingChangeset:_0xdcb5bf,unitID:_0x341f17,_handler:_0xdf1d82,type:_0x1ebd55}=this,_0x274baa=Ws(_0x4e3b27,_0x341f17,_0x1ebd55,_0xdcb5bf,_0x583641,_0xdf1d82);return _0x274baa instanceof X?_0x274baa[_0x5cef13(0x1ae)]():(_0x274baa instanceof q||_0x274baa instanceof Q)&&_0x274baa[_0x5cef13(0x20c)](),_0x274baa;}[_0x12409a(0x20c)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};te=_e([m(0x5,_0x565e28(_0x3f178c)),m(0x6,_0x565e28(_0x4b7ded)),m(0x7,_0x565e28(w)),m(0x8,_0x2af4cf),m(0x9,_0x26c70e)],te);let B=class extends ue{constructor(_0x332dea,_0x5c55dc,_0x49941d,_0x2c55da,_0x4be9f1,_0x4f8274,_0x478e70,_0x12ca34,_0x21ab3b,_0x10d811,_0x42cd7d,_0x2221e8,_0x58fd32,_0x39bdf6){const _0x1b01ce=_0x12409a;super(_0x332dea,_0x5c55dc,_0x49941d,_0x2c55da,_0x478e70,_0x2221e8,_0x58fd32,_0x21ab3b,_0x10d811),l(this,_0x1b01ce(0x39e),'fetch_missing'),(this[_0x1b01ce(0x2ef)]=_0x4be9f1,this['_queuedRemoteChangesets']=_0x4f8274,this[_0x1b01ce(0x26a)]=_0x12ca34,this[_0x1b01ce(0x24e)]=_0x42cd7d,this[_0x1b01ce(0x3e7)]=_0x39bdf6);}[_0x12409a(0x3c4)](_0x56261c){const _0x4055e1=_0x12409a;try{const _0x1ea24a=[..._0x56261c,...this[_0x4055e1(0x3ec)]],_0x4be013=[this['_awaitingChangeset']||this[_0x4055e1(0x2ef)]][_0x4055e1(0x101)](_0x163d1e=>!!_0x163d1e);let _0x53ca0f,_0x305aba;if(_0x4be013['length']){const _0x5ab4a9=this[_0x4055e1(0x3e7)][_0x4055e1(0xc3)](_0x1ea24a,_0x4be013,!0x1);if(!_0x35b7ff(_0x5ab4a9))throw _0x5ab4a9[_0x4055e1(0x2d7)];_0x53ca0f=_0x5ab4a9['c1Prime'],_0x305aba=_0x5ab4a9[_0x4055e1(0x2a0)];}else _0x53ca0f=_0x1ea24a,_0x305aba=[];let _0x370eee=this[_0x4055e1(0x29a)];_0x53ca0f[_0x4055e1(0x20d)](_0x47a02f=>{const _0x586ce0=_0x4055e1;let _0x26e097;if(_0x370eee[_0x586ce0(0x3b7)]){const _0x12b910=this[_0x586ce0(0x3e7)][_0x586ce0(0x146)](_0x47a02f,_0x370eee);if(!_0x568457(_0x12b910))throw _0x12b910[_0x586ce0(0x2d7)];_0x26e097=_0x12b910[_0x586ce0(0x1a4)],_0x370eee=_0x12b910[_0x586ce0(0x346)];}else _0x26e097=_0x47a02f;this['_executeRemoteChangeset'](_0x26e097);}),this[_0x4055e1(0x2ef)]&&this[_0x4055e1(0x25d)](),this[_0x4055e1(0xcc)]&&_0x305aba['length']&&(_0x305aba[0x0][_0x4055e1(0x1e3)]=this[_0x4055e1(0x163)]());let _0x368f6b;if(this['_awaitingChangeset']&&_0x370eee['length']!==0x0)_0x368f6b=this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](q,this[_0x4055e1(0x2fd)],this['type'],_0x305aba[0x0],_0x370eee,this[_0x4055e1(0x257)]);else{if(this['_awaitingChangeset']&&_0x370eee[_0x4055e1(0x3b7)]===0x0)_0x305aba[0x0]['baseRev']=this['_getCurrentRevision'](),_0x368f6b=this[_0x4055e1(0x26a)]['createInstance'](Q,this[_0x4055e1(0x2fd)],this['type'],_0x305aba[0x0],this[_0x4055e1(0x257)]);else{if(_0x370eee[_0x4055e1(0x3b7)]!==0x0){const _0x1e0600=this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](X,this['unitID'],this['type'],_0x370eee,this['_handler']);_0x1e0600['_schedule'](),_0x368f6b=_0x1e0600;}else _0x368f6b=this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](pe,this[_0x4055e1(0x2fd)],this['type'],this[_0x4055e1(0x257)]);}}return _0x368f6b[_0x4055e1(0x349)](),_0x368f6b;}catch(_0x30838a){return this[_0x4055e1(0x24e)][_0x4055e1(0x2d7)](_0x4055e1(0x1e9),_0x4055e1(0x147),_0x30838a),this[_0x4055e1(0x26a)][_0x4055e1(0x32e)](ee,this[_0x4055e1(0x2fd)],this[_0x4055e1(0x198)],this[_0x4055e1(0xcc)],this[_0x4055e1(0x29a)],this[_0x4055e1(0x257)],!0x1);}}[_0x12409a(0x20c)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x12409a(0x30a)](_0x5b97be){const _0x6e9464=_0x12409a;return this['_pendingMutations'][_0x6e9464(0x325)](_0x5b97be),this;}[_0x12409a(0xfa)](_0x296ac9){const _0x513e4d=_0x12409a;return this[_0x513e4d(0x3ec)][_0x513e4d(0x325)](_0x296ac9),this;}[_0x12409a(0x367)](_0x2b9950){const _0x121a7e=_0x12409a;if(this[_0x121a7e(0xcc)])return this[_0x121a7e(0x2ef)]=this[_0x121a7e(0xcc)],this[_0x121a7e(0xcc)]=null,this;throw new Error(_0x121a7e(0x277));}[_0x12409a(0x35b)](_0x473866){const _0x548aab=_0x12409a;return this[_0x548aab(0x308)](!!(_0x473866!=null&&_0x473866[_0x548aab(0x256)]));}[_0x12409a(0x217)](){const _0x1b5046=_0x12409a;return this['_injector'][_0x1b5046(0x32e)](te,this[_0x1b5046(0x2fd)],this[_0x1b5046(0x198)],this[_0x1b5046(0xcc)],this[_0x1b5046(0x29a)],this['_handler']);}[_0x12409a(0x1d6)](){return this;}[_0x12409a(0x308)](_0x214331){const _0x2761f3=_0x12409a;return this[_0x2761f3(0x26a)][_0x2761f3(0x32e)](ee,this[_0x2761f3(0x2fd)],this[_0x2761f3(0x198)],this[_0x2761f3(0xcc)],this['_pendingMutations'],this[_0x2761f3(0x257)],_0x214331);}};B=_e([m(0x7,_0x565e28(_0x3f178c)),m(0x8,_0x565e28(_0x4b7ded)),m(0x9,_0x565e28(w)),m(0xa,_0x2fef42),m(0xb,_0x2af4cf),m(0xc,_0x26c70e),m(0xd,_0x5dfa67)],B);function Ws(_0xfb24e6,_0x27a713,_0x1839d5,_0x3d719a,_0x2d52dd,_0x300aeb){const _0x50435e=_0x12409a;return _0x3d719a&&_0x2d52dd[_0x50435e(0x3b7)]?_0xfb24e6[_0x50435e(0x32e)](q,_0x27a713,_0x1839d5,_0x3d719a,_0x2d52dd,_0x300aeb):_0x3d719a?_0xfb24e6['createInstance'](Q,_0x27a713,_0x1839d5,_0x3d719a,_0x300aeb):_0x2d52dd[_0x50435e(0x3b7)]?_0xfb24e6[_0x50435e(0x32e)](X,_0x27a713,_0x1839d5,_0x2d52dd,_0x300aeb):_0xfb24e6[_0x50435e(0x32e)](pe,_0x27a713,_0x1839d5,_0x300aeb);}var Tr=Object[_0x12409a(0x1ee)],Rr=Object[_0x12409a(0xfe)],Wt=(_0x534427,_0x1b2e68,_0x22a015,_0x1c12e5)=>{const _0x59fc0d=_0x12409a;for(var _0x138dce=_0x1c12e5>0x1?void 0x0:_0x1c12e5?Rr(_0x1b2e68,_0x22a015):_0x1b2e68,_0x59df7e=_0x534427[_0x59fc0d(0x3b7)]-0x1,_0x5d0f69;_0x59df7e>=0x0;_0x59df7e--)(_0x5d0f69=_0x534427[_0x59df7e])&&(_0x138dce=(_0x1c12e5?_0x5d0f69(_0x1b2e68,_0x22a015,_0x138dce):_0x5d0f69(_0x138dce))||_0x138dce);return _0x1c12e5&&_0x138dce&&Tr(_0x1b2e68,_0x22a015,_0x138dce),_0x138dce;},p=(_0x360b94,_0x6cc007)=>(_0x399064,_0x36b630)=>_0x6cc007(_0x399064,_0x36b630,_0x360b94);let qe=class extends _0x5d8701{constructor(_0x1ff3e9,_0x1455e4,_0x376352,_0xf6e859,_0x2ded9e,_0x195a6b,_0x3d9f74,_0x5cb1b7,_0x245aa2,_0x20b6ae,_0x45346d,_0x564d7c,_0x340d7e){const _0x237697=_0x12409a;super(),l(this,_0x237697(0x345),new _0x30f2ca(null)),l(this,_0x237697(0x261),this[_0x237697(0x345)][_0x237697(0x142)]()),l(this,_0x237697(0x327)),l(this,_0x237697(0x344),!0x1),l(this,_0x237697(0x1fe),''),l(this,_0x237697(0x3cb),0x0),l(this,_0x237697(0x15d),this[_0x237697(0x261)]['pipe'](_0x54df3a(_0x44ac9d=>_0x44ac9d?_0x44ac9d['status']:P[_0x237697(0x108)]),_0x27a368(0x1))),l(this,'_transitionLocked',!0x1),l(this,_0x237697(0x38e),[]),(this[_0x237697(0x2fd)]=_0x1ff3e9,this[_0x237697(0x119)]=_0x1455e4,this[_0x237697(0x111)]=_0x376352,this[_0x237697(0x26a)]=_0xf6e859,this[_0x237697(0x2f8)]=_0x2ded9e,this[_0x237697(0x3b1)]=_0x195a6b,this[_0x237697(0xd9)]=_0x3d9f74,this[_0x237697(0x1fa)]=_0x5cb1b7,this[_0x237697(0x24e)]=_0x245aa2,this[_0x237697(0x3fa)]=_0x20b6ae,this['_messageService']=_0x45346d,this[_0x237697(0x16b)]=_0x564d7c,this[_0x237697(0x19c)]=_0x340d7e);}get['state'](){const _0x3355a1=_0x12409a;return this[_0x3355a1(0x327)];}async[_0x12409a(0x138)](){const _0x21a7f1=_0x12409a;if(this[_0x21a7f1(0x185)])throw new Error(_0x21a7f1(0x3bf));await this[_0x21a7f1(0x2c3)]();}['pauseCollaboration'](){const _0x3f4cfe=_0x12409a;return this[_0x3f4cfe(0x344)]=!0x0,_0x5ef5c0(()=>{const _0x51a9a4=_0x3f4cfe;this[_0x51a9a4(0x344)]=!0x1,this[_0x51a9a4(0x1e7)]();});}[_0x12409a(0x24d)](_0x3f8c69){const _0xb39534=_0x12409a;this[_0xb39534(0x327)]=_0x3f8c69,this['_state$'][_0xb39534(0x188)](_0x3f8c69);}async[_0x12409a(0x2c3)](){const _0x44e7b4=_0x12409a;var _0x13ecd0;this[_0x44e7b4(0x24d)](await this[_0x44e7b4(0xc2)]()),this[_0x44e7b4(0x19c)]&&((_0x13ecd0=this[_0x44e7b4(0x19c)])==null||_0x13ecd0[_0x44e7b4(0x127)](this[_0x44e7b4(0x2fd)]),this[_0x44e7b4(0x2f2)](this[_0x44e7b4(0x19c)][_0x44e7b4(0x258)](this[_0x44e7b4(0x2fd)])[_0x44e7b4(0x3c1)](_0x1fcc4d=>{const _0x13f9d5=_0x44e7b4;this[_0x13f9d5(0x24e)][_0x13f9d5(0x318)](_0x13f9d5(0x1bd),_0x13f9d5(0x326),_0x1fcc4d),_0x1fcc4d===Vs[_0x13f9d5(0x273)]?(this[_0x13f9d5(0x417)]['show']({'content':this[_0x13f9d5(0xd9)]['t'](_0x13f9d5(0x2c7)),'type':_0x3ea716[_0x13f9d5(0x20b)]}),this[_0x13f9d5(0x16b)]['updatePermissionPoint'](new _0x19d13a(this[_0x13f9d5(0x2fd)])['id'],!0x1)):this[_0x13f9d5(0x16b)]['updatePermissionPoint'](new _0x19d13a(this[_0x13f9d5(0x2fd)])['id'],!0x0);})));let _0x3d30e5=!0x1;return this[_0x44e7b4(0x2f2)](this[_0x44e7b4(0x119)][_0x44e7b4(0xe2)][_0x44e7b4(0x3c1)](_0x448e46=>{const _0x2bec82=_0x44e7b4;_0x448e46===Y[_0x2bec82(0xca)]?this['_toggleOnline'](_0x3d30e5):_0x448e46===Y[_0x2bec82(0x108)]&&(_0x3d30e5=!0x0,this[_0x2bec82(0x27d)]());})),this[_0x44e7b4(0x2f2)](this[_0x44e7b4(0x119)][_0x44e7b4(0x3e9)][_0x44e7b4(0x3c1)](_0x514c4e=>{const _0x5be745=_0x44e7b4;try{switch(_0x514c4e[_0x5be745(0x331)]){case _0x1a2ec1[_0x5be745(0x10e)]:{this[_0x5be745(0x426)](_0x30a82b(_0x514c4e[_0x5be745(0x244)]));break;}case _0x1a2ec1['CHANGESET_ACK']:{this['_onRemoteACK'](_0x514c4e[_0x5be745(0x244)]);break;}case _0x1a2ec1[_0x5be745(0x2d9)]:{this['_onRemoteRejected']();break;}case _0x1a2ec1[_0x5be745(0x3a5)]:{this[_0x5be745(0x151)](_0x514c4e[_0x5be745(0x244)][_0x5be745(0x102)]['map'](_0x21e287=>_0x30a82b(_0x21e287)));break;}case _0x1a2ec1[_0x5be745(0x18f)]:this[_0x5be745(0xc7)]({'isPermissionRej':!0x0});}}catch(_0x56bce7){throw console[_0x5be745(0x2d7)]('Error\x20on\x20receiving\x20event',_0x56bce7),_0x56bce7;}})),this[_0x44e7b4(0x327)];}[_0x12409a(0x15f)](){const _0x4d7d02=_0x12409a;this[_0x4d7d02(0x2d6)]=!0x1;}[_0x12409a(0x225)](){const _0x44d04e=_0x12409a;if(this[_0x44d04e(0x2d6)])throw new Error(_0x44d04e(0x20f));this[_0x44d04e(0x2d6)]=!0x0;}[_0x12409a(0x30c)](_0x1dac97){const _0x5b063b=_0x12409a;this[_0x5b063b(0x225)](),this[_0x5b063b(0x24d)](this['_state'][_0x5b063b(0x30a)](_0x1dac97)),this[_0x5b063b(0x15f)]();}[_0x12409a(0x426)](_0x7119f5){const _0x24d64a=_0x12409a;if(!(_0x7119f5['revision']<=this[_0x24d64a(0x1fa)][_0x24d64a(0x419)](this['unitID']))){if(this[_0x24d64a(0x344)]){this['_remoteChangesetQueue'][_0x24d64a(0x325)](_0x7119f5);return;}this[_0x24d64a(0x41a)](_0x7119f5);}}['_exhaustRemoteChangesetQueue'](){const _0x8a7701=_0x12409a;this['_remoteChangesetQueue'][_0x8a7701(0x20d)](_0xaba4ca=>this[_0x8a7701(0x41a)](_0xaba4ca)),this[_0x8a7701(0x38e)]=[];}['_applyRemoteChangeset'](_0x359b89){const _0x4a7f43=_0x12409a,_0x43d141=this[_0x4a7f43(0x3b1)][_0x4a7f43(0x3f1)][_0x4a7f43(0x200)](this[_0x4a7f43(0x3b1)]['interceptor'][_0x4a7f43(0x2b4)]()[_0x4a7f43(0x21b)])(_0x359b89[_0x4a7f43(0x1b8)],null)||_0x359b89[_0x4a7f43(0x1b8)],_0x1da3df={..._0x359b89,'mutations':_0x43d141};this[_0x4a7f43(0x225)](),this['_updateState'](this['_state'][_0x4a7f43(0xfa)](_0x1da3df)),this[_0x4a7f43(0x15f)]();}['_onRemoteACK'](_0x5d88d6){const _0x1f2bcb=_0x12409a;this[_0x1f2bcb(0x225)](),this[_0x1f2bcb(0x24d)](this[_0x1f2bcb(0x327)][_0x1f2bcb(0x367)](_0x5d88d6)),this[_0x1f2bcb(0x15f)]();}[_0x12409a(0xc7)](_0x3d978c){const _0x4eadb2=_0x12409a;this[_0x4eadb2(0x225)](),this[_0x4eadb2(0x24d)](this[_0x4eadb2(0x327)][_0x4eadb2(0x35b)](_0x3d978c)),this[_0x4eadb2(0x15f)]();}[_0x12409a(0x151)](_0x7b16a5){const _0x34dc3c=_0x12409a;if(!(this[_0x34dc3c(0x327)]instanceof B))throw new TypeError(_0x34dc3c(0x310));const _0x451628=_0x7b16a5[_0x34dc3c(0x110)](_0x15a621=>{const _0x1d4678=_0x34dc3c,_0x261410=this[_0x1d4678(0x3b1)]['interceptor'][_0x1d4678(0x200)](this[_0x1d4678(0x3b1)]['interceptor'][_0x1d4678(0x2b4)]()[_0x1d4678(0x21b)])(_0x15a621[_0x1d4678(0x1b8)],null)||_0x15a621['mutations'];return{..._0x15a621,'mutations':_0x261410};});this[_0x34dc3c(0x225)](),this['_updateState'](this[_0x34dc3c(0x327)]['onMissedChangesetFetched'](_0x451628)),this[_0x34dc3c(0x15f)]();}['_toggleOffline'](){const _0x5611f6=_0x12409a;this[_0x5611f6(0x225)](),this[_0x5611f6(0x24d)](this[_0x5611f6(0x327)]['toggleOffline']()),this['_unlockTransition']();}['_toggleOnline'](_0x3110b6=!0x1){const _0x11f9ed=_0x12409a;this[_0x11f9ed(0x225)](),this[_0x11f9ed(0x24d)](this[_0x11f9ed(0x327)]['toggleOnline']()),this[_0x11f9ed(0x15f)]();const _0x326d96=this[_0x11f9ed(0x327)];_0x3110b6&&_0x326d96 instanceof pe&&(this[_0x11f9ed(0x225)](),this['_updateState'](_0x326d96['fetchMiss']()),this[_0x11f9ed(0x15f)]());}async['_createInitialState'](){return new Promise(_0x46f0cc=>{const _0x5ac1a8=_0x4bc7;this['session'][_0x5ac1a8(0xe2)]['pipe'](_0x470012(0x1))['subscribe'](async _0x3e762a=>{const _0xef1dc3=_0x5ac1a8;_0x46f0cc(await this[_0xef1dc3(0xdc)](_0x3e762a===Y[_0xef1dc3(0xca)]));});});}[_0x12409a(0x135)](){const _0x477d8e=this['unitID'];return{'onStateChange':(_0x48c7dc,_0x5483ff)=>{const _0x207929=_0x4bc7;if(_0x48c7dc!==this['_state'])throw new Error(_0x207929(0x411)+_0x48c7dc[_0x207929(0x39e)]+'\x0aAfter:\x20'+_0x5483ff['status']+_0x207929(0x1e0)+this[_0x207929(0x327)][_0x207929(0x39e)]);this[_0x207929(0x24d)](_0x5483ff);},'onSendChangeset':_0x53df39=>{const _0x359992=_0x4bc7;_0x53df39['sid']||(_0x53df39['sid']=this[_0x359992(0x1fe)],_0x53df39['reqId']=++this['_changesetReqId']);const _0x12587a={'eventID':_0x1a2ec1[_0x359992(0xee)],'data':{'unitID':_0x53df39[_0x359992(0x2fd)],'unitType':this[_0x359992(0x111)],'changeset':_0x53df39,'memberID':this[_0x359992(0x119)][_0x359992(0x22f)]()}};this[_0x359992(0x119)][_0x359992(0x10d)](_0x12587a,this['unitID']);},'onMissingChangesets':({from:_0x1bd698,to:_0x3a71b4})=>{const _0x1a2202=_0x4bc7;this[_0x1a2202(0x24e)]['debug'](_0x1a2202(0x1bd),'fetching\x20missing\x20changesets\x20from\x20'+_0x1bd698+_0x1a2202(0x12d)+_0x3a71b4);const _0x51dfbc={'eventID':_0x1a2ec1['FETCH_MISSING'],'data':{'unitID':_0x477d8e,'unitType':this[_0x1a2202(0x111)],'from':_0x1bd698,'to':_0x3a71b4}};this['session']['send'](_0x51dfbc,this[_0x1a2202(0x2fd)]);}};}async[_0x12409a(0xdc)](_0x55ba44){const _0x5c9476=_0x12409a;var _0x34a32b,_0x17bfb1;const _0x2cfc7a=await this[_0x5c9476(0x2f8)]['loadOfflineData'](this['unitID']),_0x2080b2=(_0x34a32b=_0x2cfc7a==null?void 0x0:_0x2cfc7a[_0x5c9476(0x1b8)])!=null?_0x34a32b:[],_0x256894=(_0x17bfb1=_0x2cfc7a==null?void 0x0:_0x2cfc7a[_0x5c9476(0x210)])!=null?_0x17bfb1:null,_0x17be49=!!(_0x256894!=null&&_0x256894[_0x5c9476(0x300)])&&!!(_0x256894!=null&&_0x256894['reqId']);this[_0x5c9476(0x1fe)]=_0x17be49?_0x256894['sid']:ir(),this[_0x5c9476(0x3cb)]=_0x17be49?_0x256894[_0x5c9476(0x2c5)]:0x0;const _0x50326d=this[_0x5c9476(0x2fd)];try{this['_replayCachedMutations'](_0x256894,_0x2080b2);}catch(_0x3b4ad1){this[_0x5c9476(0x24e)][_0x5c9476(0x2d7)](_0x3b4ad1);}const _0x486204=this[_0x5c9476(0x135)]();if(_0x55ba44){const _0xa3c85f=Ws(this[_0x5c9476(0x26a)],_0x50326d,this['_type'],_0x256894,_0x2080b2,_0x486204);return _0xa3c85f instanceof X?_0xa3c85f[_0x5c9476(0x1ae)]():(_0xa3c85f instanceof q||_0xa3c85f instanceof Q)&&_0xa3c85f[_0x5c9476(0x20c)](),_0xa3c85f;}return this[_0x5c9476(0x26a)]['createInstance'](te,_0x50326d,this['_type'],_0x256894,_0x2080b2,_0x486204);}[_0x12409a(0x3fb)](_0x4afb84,_0xbc14ee){const _0x4b2bf8=_0x12409a;var _0x131414,_0xcdf010;const _0x24ff46=this['_compressMutationService'][_0x4b2bf8(0x3f1)][_0x4b2bf8(0x200)](this['_compressMutationService'][_0x4b2bf8(0x3f1)][_0x4b2bf8(0x2b4)]()['COMPRESS_MUTATION_APPLY']);(_0x131414=_0x24ff46((_0x4afb84==null?void 0x0:_0x4afb84[_0x4b2bf8(0x1b8)])||[],null))==null||_0x131414[_0x4b2bf8(0x20d)](_0x50ce4d=>this[_0x4b2bf8(0x3fa)][_0x4b2bf8(0x155)](_0x50ce4d['id'],_0x50ce4d[_0x4b2bf8(0x319)])),(_0xcdf010=_0x24ff46(_0xbc14ee||[],null))==null||_0xcdf010[_0x4b2bf8(0x20d)](_0x43c8f1=>this['_commandService'][_0x4b2bf8(0x155)](_0x43c8f1['id'],_0x43c8f1['params']));}};qe=Wt([p(0x3,_0x565e28(_0x3f178c)),p(0x4,_0x565e28(w)),p(0x5,_0x565e28(_0x269693)),p(0x6,_0x565e28(_0x128cab)),p(0x7,_0x565e28(_0x4b7ded)),p(0x8,_0x2fef42),p(0x9,_0x2af4cf),p(0xa,_0x32ad3e),p(0xb,_0x4594fa),p(0xc,_0x1a9909(tt))],qe);let Tt=class extends qe{constructor(_0x36942c,_0x49cff5,_0x106e9d,_0x10ccc0,_0x1c510e,_0x3949b7,_0x24dc92,_0xdb6898,_0x29ee1e,_0x1143e8,_0xc0527,_0x269774,_0x3df902,_0x42b4fd,_0x16db16,_0x367147,_0x41c7dc){const _0x369333=_0x12409a;super(_0x36942c,_0x106e9d,_0x49cff5,_0x10ccc0,_0x1c510e,_0x3949b7,_0x24dc92,_0xdb6898,_0x3df902,_0x42b4fd,_0x16db16,_0x367147,_0x41c7dc),this[_0x369333(0x2fd)]=_0x36942c,this[_0x369333(0x198)]=_0x49cff5,this[_0x369333(0x41d)]=_0x29ee1e,this[_0x369333(0x24f)]=_0x1143e8,this[_0x369333(0x274)]=_0xc0527,this['_docSyncEditingCollabCursorService']=_0x269774;}[_0x12409a(0x135)](){const _0xeb5904=_0x12409a,_0x2b3c31=super['_createHandler']();return _0x2b3c31[_0xeb5904(0x352)]=_0x2fe357=>this[_0xeb5904(0x24f)][_0xeb5904(0x1f6)](_0x2fe357),_0x2b3c31[_0xeb5904(0x311)]=_0x58fd5a=>this[_0xeb5904(0x274)]['transformSelections'](_0x58fd5a),_0x2b3c31[_0xeb5904(0xb9)]=_0x4d1da3=>this['_docSyncEditingCollabCursorService'][_0xeb5904(0x145)](_0x4d1da3),_0x2b3c31[_0xeb5904(0x396)]=_0x1699b3=>this[_0xeb5904(0x24f)]['transformRemoteChangeset'](_0x1699b3),_0x2b3c31;}async[_0x12409a(0x2c3)](){const _0x549976=_0x12409a,_0x4775a2=await super[_0x549976(0x2c3)]();return this['_docStateChangeManagerService'][_0x549976(0x122)][_0x549976(0x29f)](_0x2d78ee(this[_0x549976(0x394)]))[_0x549976(0x3c1)](_0x544587=>{const _0x463724=_0x549976;if(_0x544587==null)return;const {unitId:_0x359a1e,redoState:_0x4a2454,commandId:_0x259045}=_0x544587;if(_0x359a1e!==this['unitID'])return;const _0x4a4d47={'id':_0x259045,'type':_0x1070ad[_0x463724(0x376)],'params':{'unitId':_0x359a1e,'actions':_0x4a2454[_0x463724(0x353)],'textRanges':null}};this[_0x463724(0x30c)](_0x4a4d47);}),_0x4775a2;}};Tt=Wt([p(0x3,_0x565e28(_0x3f178c)),p(0x4,_0x565e28(w)),p(0x5,_0x565e28(_0x269693)),p(0x6,_0x565e28(_0x128cab)),p(0x7,_0x565e28(_0x4b7ded)),p(0x8,_0x565e28(_0x2ae8fb)),p(0x9,_0x565e28(Ye)),p(0xa,_0x565e28(Xe)),p(0xb,_0x565e28(Ft)),p(0xc,_0x2fef42),p(0xd,_0x2af4cf),p(0xe,_0x32ad3e),p(0xf,_0x4594fa),p(0x10,_0x1a9909(tt))],Tt);let Rt=class extends qe{constructor(_0x1b4594,_0x46d610,_0x180d4b,_0x503bda,_0x1552fb,_0x19b94a,_0x34ce6f,_0x1a1cc7,_0x3256c3,_0x590f53,_0x2a6fcf,_0x48818c,_0x1bb650,_0x560537){const _0x32f05a=_0x12409a;super(_0x1b4594,_0x180d4b,_0x46d610,_0x503bda,_0x1552fb,_0x19b94a,_0x34ce6f,_0x1a1cc7,_0x590f53,_0x2a6fcf,_0x48818c,_0x1bb650,_0x560537),this[_0x32f05a(0x2fd)]=_0x1b4594,this[_0x32f05a(0x198)]=_0x46d610,this[_0x32f05a(0x143)]=_0x3256c3;}['_createHandler'](){const _0x12e1f3=_0x12409a,_0x3c5f86=super['_createHandler']();return _0x3c5f86[_0x12e1f3(0x311)]=_0x4d1121=>this['_sheetTransformSelectionsService']['transformSelections'](_0x4d1121),_0x3c5f86;}async['_init'](){const _0xc12ec1=_0x12409a,_0x2d5753=await super[_0xc12ec1(0x2c3)]();return this[_0xc12ec1(0x2f2)](this[_0xc12ec1(0x3fa)][_0xc12ec1(0x416)]((_0x8dda15,_0x182451)=>{const _0x545514=_0xc12ec1;if(_0x8dda15['type']!==_0x1070ad[_0x545514(0x376)]||_0x182451!=null&&_0x182451[_0x545514(0x182)]||_0x182451!=null&&_0x182451[_0x545514(0x375)])return;const _0x55d263=_0x8dda15['params'];if((_0x55d263==null?void 0x0:_0x55d263[_0x545514(0x42e)])!==this[_0x545514(0x2fd)])return;const _0x2169ab=_0x8dda15,_0xf5a34f=this['_compressMutationService'][_0x545514(0x3f1)][_0x545514(0x200)](this[_0x545514(0x3b1)][_0x545514(0x3f1)]['getInterceptPoints']()[_0x545514(0x2bd)])([_0x2169ab],null)||[_0x2169ab];this[_0x545514(0x30c)](_0xf5a34f[0x0]);})),_0x2d5753;}};Rt=Wt([p(0x3,_0x565e28(_0x3f178c)),p(0x4,_0x565e28(w)),p(0x5,_0x565e28(_0x269693)),p(0x6,_0x565e28(_0x128cab)),p(0x7,_0x565e28(_0x4b7ded)),p(0x8,_0x565e28(Ke)),p(0x9,_0x2fef42),p(0xa,_0x2af4cf),p(0xb,_0x32ad3e),p(0xc,_0x4594fa),p(0xd,_0x1a9909(tt))],Rt);var Or=Object[_0x12409a(0x1ee)],Dr=Object['getOwnPropertyDescriptor'],wr=(_0x5eb5fa,_0x342864,_0x179b3b,_0xf6fa93)=>{const _0x51bb85=_0x12409a;for(var _0xa48f83=_0xf6fa93>0x1?void 0x0:_0xf6fa93?Dr(_0x342864,_0x179b3b):_0x342864,_0x2e68cb=_0x5eb5fa[_0x51bb85(0x3b7)]-0x1,_0x5eeb1a;_0x2e68cb>=0x0;_0x2e68cb--)(_0x5eeb1a=_0x5eb5fa[_0x2e68cb])&&(_0xa48f83=(_0xf6fa93?_0x5eeb1a(_0x342864,_0x179b3b,_0xa48f83):_0x5eeb1a(_0xa48f83))||_0xa48f83);return _0xf6fa93&&_0xa48f83&&Or(_0x342864,_0x179b3b,_0xa48f83),_0xa48f83;},_t=(_0x48982c,_0x19e4a5)=>(_0x281b46,_0x3b896c)=>_0x19e4a5(_0x281b46,_0x3b896c,_0x48982c);let Le=class extends _0x5d8701{constructor(_0x6c5d6b,_0x3d0fdd,_0x5ba8cf){const _0x5901e4=_0x12409a;super(),l(this,'_entities',new Map()),l(this,'_entityInit$',new _0x5633a5()),(this[_0x5901e4(0x26a)]=_0x6c5d6b,this['_collabSessionService']=_0x3d0fdd,this[_0x5901e4(0x392)]=_0x5ba8cf,this[_0x5901e4(0x2c3)]());}[_0x12409a(0x280)](){const _0x4bacc5=_0x12409a;super[_0x4bacc5(0x280)](),this[_0x4bacc5(0x112)][_0x4bacc5(0x20d)](_0x49fdb9=>_0x49fdb9[_0x4bacc5(0x280)]()),this['_entities']['clear']();}[_0x12409a(0x205)](_0x18f6ba){const _0x1a827f=_0x12409a;var _0x3fa085;return(_0x3fa085=this[_0x1a827f(0x112)]['get'](_0x18f6ba))!=null?_0x3fa085:null;}[_0x12409a(0x34d)](_0x1be595){const _0x517276=_0x12409a,_0x22b358=this['getCollabEntity'](_0x1be595);return _0x22b358?_0x303fa8(_0x22b358):this[_0x517276(0x166)][_0x517276(0x29f)](_0x51df9d(_0x4cbe80=>_0x4cbe80[_0x517276(0x2fd)]===_0x1be595));}[_0x12409a(0x2c3)](){const _0x2d6239=_0x12409a;this[_0x2d6239(0x392)][_0x2d6239(0x3dc)](_0x351a49[_0x2d6239(0x1e2)])[_0x2d6239(0x29f)](_0x2d78ee(this[_0x2d6239(0x394)]),_0x4f83c9(0x10))['subscribe'](async _0x232928=>{const _0x370201=_0x2d6239,_0x172c7a=_0x232928['getUnitId'](),_0x58f1c8=await this['_startCollaboration'](_0x172c7a,k[_0x370201(0x1e2)]);this[_0x370201(0x112)][_0x370201(0x28a)](_0x172c7a,_0x58f1c8);}),this['_univerInstanceService'][_0x2d6239(0x3dc)](_0x351a49[_0x2d6239(0x15b)])[_0x2d6239(0x29f)](_0x2d78ee(this['dispose$']),_0x4f83c9(0x10))[_0x2d6239(0x29f)](_0x51df9d(_0x2bdf31=>!_0x2bdf31['getUnitId']()[_0x2d6239(0xd2)]('__')))[_0x2d6239(0x3c1)](async _0x3f4d8c=>{const _0x3004dd=_0x2d6239,_0x45fdfd=_0x3f4d8c[_0x3004dd(0xe4)](),_0x3f7452=await this[_0x3004dd(0x287)](_0x45fdfd,k[_0x3004dd(0x15b)]);this[_0x3004dd(0x112)][_0x3004dd(0x28a)](_0x45fdfd,_0x3f7452);}),_0x23085b(this['_univerInstanceService'][_0x2d6239(0x3ac)](_0x351a49['UNIVER_SHEET']),this[_0x2d6239(0x392)][_0x2d6239(0x3ac)](_0x351a49[_0x2d6239(0x15b)]))[_0x2d6239(0x29f)](_0x2d78ee(this[_0x2d6239(0x394)]))[_0x2d6239(0x3c1)](_0x204ad1=>{const _0x5b335e=_0x2d6239,_0x30034b=_0x204ad1[_0x5b335e(0xe4)](),_0x20e6a3=this['_entities']['get'](_0x30034b);_0x20e6a3&&(_0x20e6a3[_0x5b335e(0x280)](),this[_0x5b335e(0x112)][_0x5b335e(0xf3)](_0x30034b));});}async[_0x12409a(0x287)](_0x25d71e,_0x51ae60){const _0xc067fd=_0x12409a,_0x57ebaf=await this[_0xc067fd(0x3d7)][_0xc067fd(0x3be)](_0x25d71e),_0x3994d1=this['_injector'][_0xc067fd(0x32e)](this[_0xc067fd(0xef)](_0x51ae60),_0x25d71e,_0x51ae60,_0x57ebaf);return await _0x3994d1[_0xc067fd(0x138)](),this[_0xc067fd(0x166)]['next'](_0x3994d1),_0x3994d1;}['_getCtorByUniverType'](_0x4565da){const _0x12c38a=_0x12409a;switch(_0x4565da){case k[_0x12c38a(0x15b)]:return Tt;case k[_0x12c38a(0x1e2)]:return Rt;default:throw new Error(_0x12c38a(0x3d5)+_0x4565da);}}};Le=wr([_t(0x0,_0x565e28(_0x3f178c)),_t(0x1,_0x565e28(he)),_t(0x2,_0x114f27)],Le);const fs=[_0x12409a(0x334),_0x12409a(0xf1),'verdancy600','red300','blue400',_0x12409a(0x267)];class Gt extends _0x1efbc8{constructor(){const _0x332466=_0x12409a;super(...arguments),l(this,_0x332466(0x2a7),new Map()),l(this,_0x332466(0x21d),0x0);}['assignAColorForMemberID'](_0x53e363){const _0x57148e=_0x12409a;if(this[_0x57148e(0x2a7)][_0x57148e(0x128)](_0x53e363))return this[_0x57148e(0x2a7)]['get'](_0x53e363);const _0x27d895=fs[this[_0x57148e(0x21d)]];return this[_0x57148e(0x21d)]=(this[_0x57148e(0x21d)]+0x1)%fs[_0x57148e(0x3b7)],this[_0x57148e(0x2a7)]['set'](_0x53e363,_0x27d895),_0x27d895;}}var Pr=Object['defineProperty'],yr=Object['getOwnPropertyDescriptor'],Ur=(_0x4f786c,_0x3c69f0,_0x5b50b0,_0x3a998a)=>{const _0x46e7a9=_0x12409a;for(var _0x54fd95=_0x3a998a>0x1?void 0x0:_0x3a998a?yr(_0x3c69f0,_0x5b50b0):_0x3c69f0,_0x97ebbe=_0x4f786c[_0x46e7a9(0x3b7)]-0x1,_0x341b75;_0x97ebbe>=0x0;_0x97ebbe--)(_0x341b75=_0x4f786c[_0x97ebbe])&&(_0x54fd95=(_0x3a998a?_0x341b75(_0x3c69f0,_0x5b50b0,_0x54fd95):_0x341b75(_0x54fd95))||_0x54fd95);return _0x3a998a&&_0x54fd95&&Pr(_0x3c69f0,_0x5b50b0,_0x54fd95),_0x54fd95;},ie=(_0x10a201,_0x202dd3)=>(_0x3d12fe,_0x195135)=>_0x202dd3(_0x3d12fe,_0x195135,_0x10a201);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x5d8701{constructor(_0x1e3652,_0x8c7768,_0x607607,_0x1c44cb,_0x2f7f59,_0x3b92d4,_0x48a60d,_0x4a1377,_0x4bcc0e){const _0x6c66f8=_0x12409a;super(),l(this,_0x6c66f8(0x2fa),!0x1),l(this,_0x6c66f8(0x2c3),!0x1),l(this,_0x6c66f8(0x33f),new _0x30f2ca(new Map())),l(this,_0x6c66f8(0x1b0),this['_cursorInfo$']['asObservable']()),l(this,'_roomMembers$',new _0x30f2ca([])),l(this,_0x6c66f8(0x171),this[_0x6c66f8(0x1d3)][_0x6c66f8(0x29f)](_0x246b10(Nr))),l(this,_0x6c66f8(0x378),_0x173224(_0x3d6acc=>{const _0x83b6f1=_0x6c66f8,_0x1f78e5={'eventID':_0x1a2ec1[_0x83b6f1(0x2de)],'data':{'unitID':this[_0x83b6f1(0x2fd)],'memberID':this[_0x83b6f1(0x37e)]['getMemberID'](),'selection':Fs(_0x3d6acc)}};this[_0x83b6f1(0x37e)][_0x83b6f1(0x10d)](_0x1f78e5,this['unitID']);},Mr)),(this[_0x6c66f8(0x2fd)]=_0x1e3652,this[_0x6c66f8(0x37e)]=_0x8c7768,this[_0x6c66f8(0x26a)]=_0x607607,this['_colorAssignService']=_0x1c44cb,this[_0x6c66f8(0x3bc)]=_0x2f7f59,this[_0x6c66f8(0x36e)]=_0x3b92d4,this[_0x6c66f8(0x3e7)]=_0x48a60d,this[_0x6c66f8(0x392)]=_0x4a1377,this[_0x6c66f8(0x3fa)]=_0x4bcc0e);}get['cursorInfo'](){const _0x436f93=_0x12409a;return this[_0x436f93(0x33f)]['getValue']();}get[_0x12409a(0x170)](){const _0x5335a0=_0x12409a;return this[_0x5335a0(0x1d3)][_0x5335a0(0x3f3)]();}[_0x12409a(0x280)](){const _0x34af5d=_0x12409a;super['dispose'](),this[_0x34af5d(0x33f)][_0x34af5d(0x188)](new Map()),this[_0x34af5d(0x33f)][_0x34af5d(0x38f)](),this[_0x34af5d(0x1d3)][_0x34af5d(0x188)]([]),this[_0x34af5d(0x1d3)]['complete']();}[_0x12409a(0x138)](){const _0x5c2c33=_0x12409a;this['_init']||(this['_init']=!0x0,this[_0x5c2c33(0x37e)][_0x5c2c33(0xe2)][_0x5c2c33(0x29f)](_0x2d78ee(this[_0x5c2c33(0x394)]))[_0x5c2c33(0x3c1)](_0x2fc14b=>{const _0x3ab965=_0x5c2c33;_0x2fc14b===Y[_0x3ab965(0xca)]?this[_0x3ab965(0x1c0)]():this[_0x3ab965(0x27d)]();}),this[_0x5c2c33(0x37e)]['event$'][_0x5c2c33(0x29f)](_0x2d78ee(this['dispose$']))[_0x5c2c33(0x3c1)](_0x2dfcbd=>{const _0x3ead8f=_0x5c2c33,_0x4160ec=_0x2dfcbd[_0x3ead8f(0x331)];_0x4160ec===_0x1a2ec1[_0x3ead8f(0x2de)]&&this[_0x3ead8f(0x309)](_0x2dfcbd),_0x4160ec===_0x1a2ec1[_0x3ead8f(0x186)]&&this[_0x3ead8f(0x288)](_0x2dfcbd);}),this['disposeWithMe'](this['_commandService'][_0x5c2c33(0x416)](_0x17c6b3=>{const _0x4eaf28=_0x5c2c33,_0x4ef594=_0x17c6b3[_0x4eaf28(0x319)];_0x4ef594!=null&&this[_0x4eaf28(0x2fa)]&&_0x17c6b3['id']===_0x45e900['id']&&_0x4ef594[_0x4eaf28(0x42e)]===this[_0x4eaf28(0x2fd)]&&_0x4ef594[_0x4eaf28(0x373)]===!0x1&&this[_0x4eaf28(0x378)](_0x4ef594['ranges']);})),this[_0x5c2c33(0x36e)][_0x5c2c33(0xf4)]['pipe'](_0x2d78ee(this[_0x5c2c33(0x394)]))['subscribe'](_0x184059=>{const _0xd4268f=_0x5c2c33;if((_0x184059==null?void 0x0:_0x184059[_0xd4268f(0x2fd)])!==this[_0xd4268f(0x2fd)])return;const _0x299935={'eventID':_0x1a2ec1[_0xd4268f(0x2de)],'data':_0x184059};this[_0xd4268f(0x309)](_0x299935);}),this[_0x5c2c33(0x2f2)](this[_0x5c2c33(0x3fa)][_0x5c2c33(0x416)](_0x58fa51=>{const _0x160689=_0x5c2c33;if(_0x58fa51[_0x160689(0x319)]==null)return;const _0x53c419=_0x58fa51[_0x160689(0x319)];if(_0x58fa51['id']!==_0x5e8bc0['id']||_0x53c419[_0x160689(0x42e)]!==this[_0x160689(0x2fd)])return;const _0x4c34a6={'id':_0x160689(0x3af),'params':_0x53c419},_0x3dfcb2=this[_0x160689(0x289)];for(const [_0x2659a0,_0x3814fc]of _0x3dfcb2){const _0xb3e6de={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x3814fc['ranges']}},_0x1e8490=this[_0x160689(0x3e7)]['transformMutation'](_0x4c34a6,_0xb3e6de,!0x1);if(_0x1711e0(_0x1e8490))throw _0x1e8490[_0x160689(0x2d7)];_0x3dfcb2['set'](_0x2659a0,{..._0x3814fc,'ranges':_0x1e8490[_0x160689(0x346)][_0x160689(0x319)][_0x160689(0x3a8)]});}queueMicrotask(()=>{const _0x286472=_0x160689;this[_0x286472(0x33f)][_0x286472(0x188)](_0x3dfcb2);});})));}['_onCursorUpdate'](_0xff1fb4){const _0x165a92=_0x12409a;var _0x86a9a9,_0x5a4ee3;const {memberID:_0x197ee2,selection:_0x147f94}=_0xff1fb4[_0x165a92(0x244)],_0x499362=mr(_0x147f94),_0x20e69e=(_0x5a4ee3=(_0x86a9a9=this[_0x165a92(0x3bc)][_0x165a92(0x265)](this['unitID'],_0x197ee2))==null?void 0x0:_0x86a9a9[_0x165a92(0x295)])!=null?_0x5a4ee3:_0x165a92(0x104),_0x431e22={'color':this['_colorAssignService'][_0x165a92(0x33e)](_0x197ee2),'name':_0x20e69e,'ranges':_0x499362},_0x3d291b=this[_0x165a92(0x289)];_0x3d291b[_0x165a92(0x28a)](_0x197ee2,_0x431e22),this['_cursorInfo$'][_0x165a92(0x188)](_0x3d291b);}[_0x12409a(0x288)](_0x31ed85){const _0x568155=_0x12409a,{memberID:_0x2554ac}=_0x31ed85['data'],_0x599933=this[_0x568155(0x289)];_0x599933['delete'](_0x2554ac),this[_0x568155(0x33f)][_0x568155(0x188)](_0x599933);}['_toggleOnline'](){const _0xc6542c=_0x12409a;var _0x32a278;if(this[_0xc6542c(0x2fa)]=!0x0,((_0x32a278=this['_univerInstanceService'][_0xc6542c(0x1c5)]())==null?void 0x0:_0x32a278[_0xc6542c(0xe4)]())!==this['unitID'])return;const _0x16752d=this[_0xc6542c(0x26a)][_0xc6542c(0x2d5)](_0x2452e8)[_0xc6542c(0x1ec)]();Array['isArray'](_0x16752d)&&_0x16752d[_0xc6542c(0x3b7)]>0x0&&this['_updateLocalCursor'](_0x16752d);}[_0x12409a(0x27d)](){this['_online']=!0x1;}};Ot=Ur([ie(0x2,_0x565e28(_0x3f178c)),ie(0x3,_0x565e28(Gt)),ie(0x4,_0x565e28(ce)),ie(0x5,_0x565e28(Ft)),ie(0x6,_0x5dfa67),ie(0x7,_0x114f27),ie(0x8,_0x2af4cf)],Ot);var Ar=Object[_0x12409a(0x1ee)],Lr=Object['getOwnPropertyDescriptor'],$r=(_0x572371,_0x50e4a7,_0x21fa1c,_0x452b23)=>{for(var _0x53f997=_0x452b23>0x1?void 0x0:_0x452b23?Lr(_0x50e4a7,_0x21fa1c):_0x50e4a7,_0x33c62f=_0x572371['length']-0x1,_0x501104;_0x33c62f>=0x0;_0x33c62f--)(_0x501104=_0x572371[_0x33c62f])&&(_0x53f997=(_0x452b23?_0x501104(_0x50e4a7,_0x21fa1c,_0x53f997):_0x501104(_0x53f997))||_0x53f997);return _0x452b23&&_0x53f997&&Ar(_0x50e4a7,_0x21fa1c,_0x53f997),_0x53f997;},me=(_0x37798f,_0x58c665)=>(_0x3b189e,_0x38da0f)=>_0x58c665(_0x3b189e,_0x38da0f,_0x37798f);const jr=0x12c,xr=0x64,Hr=()=>{let _0xdbbb8d=[],_0x1b9d16=!0x1;return _0x161f85=>{const _0x224724=_0x4bc7;_0xdbbb8d[_0x224724(0x325)](_0x161f85),_0x1b9d16||(_0x1b9d16=!0x0,setTimeout(()=>{const _0x59bb22=_0x224724;_0xdbbb8d[_0x59bb22(0x20d)](_0x323231=>_0x323231()),_0xdbbb8d=[],_0x1b9d16=!0x1;}));};};let Dt=class extends _0x5d8701{constructor(_0x1f9416,_0x33b7ba,_0x7145c0,_0x106871,_0x5ddaac,_0x5a7f7b,_0x49bc4a,_0x12a8bd){const _0xa72df8=_0x12409a;super(),l(this,_0xa72df8(0x2fa),!0x1),l(this,_0xa72df8(0x2c3),!0x1),l(this,_0xa72df8(0x33f),new _0x30f2ca(new Map())),l(this,_0xa72df8(0x1b0),this['_cursorInfo$'][_0xa72df8(0x142)]()),l(this,'_roomMembers$',new _0x30f2ca([])),l(this,_0xa72df8(0x171),this[_0xa72df8(0x1d3)]['pipe'](_0x246b10(jr))),l(this,_0xa72df8(0x378),_0x173224((_0x1ab968,_0x4bd1fe)=>{const _0x449f54=_0xa72df8,_0x205ac8={'eventID':_0x1a2ec1['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':_0x319cba(_0x1ab968,_0x4bd1fe['range'])}};this['_session'][_0x449f54(0x10d)](_0x205ac8,this[_0x449f54(0x2fd)]);},xr)),(this[_0xa72df8(0x2fd)]=_0x1f9416,this[_0xa72df8(0x37e)]=_0x33b7ba,this[_0xa72df8(0x26a)]=_0x7145c0,this[_0xa72df8(0x301)]=_0x106871,this[_0xa72df8(0x3bc)]=_0x5ddaac,this[_0xa72df8(0x392)]=_0x5a7f7b,this[_0xa72df8(0x3fa)]=_0x49bc4a,this[_0xa72df8(0x324)]=_0x12a8bd);}get[_0x12409a(0x289)](){const _0x236b38=_0x12409a;return this[_0x236b38(0x33f)][_0x236b38(0x3f3)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x12409a(0x280)](){const _0x5f2fa9=_0x12409a;super[_0x5f2fa9(0x280)](),this[_0x5f2fa9(0x33f)]['next'](new Map()),this[_0x5f2fa9(0x33f)][_0x5f2fa9(0x38f)](),this['_roomMembers$'][_0x5f2fa9(0x188)]([]),this[_0x5f2fa9(0x1d3)]['complete']();}[_0x12409a(0x138)](){const _0x48e704=_0x12409a;this['_init']||(this[_0x48e704(0x2c3)]=!0x0,this[_0x48e704(0x37e)][_0x48e704(0xe2)][_0x48e704(0x29f)](_0x2d78ee(this[_0x48e704(0x394)]))['subscribe'](_0x47ee14=>{const _0x13606e=_0x48e704;_0x47ee14===Y[_0x13606e(0xca)]?this[_0x13606e(0x1c0)]():this[_0x13606e(0x27d)]();}),this[_0x48e704(0x37e)][_0x48e704(0x3e9)][_0x48e704(0x29f)](_0x2d78ee(this[_0x48e704(0x394)]))[_0x48e704(0x3c1)](_0xc6c06b=>{const _0x34f229=_0x48e704,_0x5ee50c=_0xc6c06b[_0x34f229(0x331)];_0x5ee50c===_0x1a2ec1['UPDATE_CURSOR']&&this[_0x34f229(0x309)](_0xc6c06b),_0x5ee50c===_0x1a2ec1[_0x34f229(0x186)]&&this['_onCursorDelete'](_0xc6c06b);}),this[_0x48e704(0x1ab)](),this[_0x48e704(0x2f2)](this[_0x48e704(0x3fa)][_0x48e704(0x416)](_0x535ba2=>{const _0x4c01bf=_0x48e704;if(this[_0x4c01bf(0x2fa)]&&_0x535ba2['id']===_0x1c4355['id']&&_0x535ba2[_0x4c01bf(0x319)][_0x4c01bf(0x42e)]===this[_0x4c01bf(0x2fd)]){const _0x537fa8=_0x535ba2[_0x4c01bf(0x319)];this[_0x4c01bf(0x378)](_0x537fa8['subUnitId'],_0x537fa8[_0x4c01bf(0x1fb)][0x0]);}})));}[_0x12409a(0x309)](_0x1e0088){const _0x29a06a=_0x12409a;var _0x32d7f3,_0x28a246;const {memberID:_0x354d84,selection:_0x123896}=_0x1e0088['data'],{sheetName:_0x2bbcf4,range:_0x448c21}=_0x18ada2(_0x123896),_0x45756a={'name':(_0x28a246=(_0x32d7f3=this[_0x29a06a(0x3bc)][_0x29a06a(0x265)](this[_0x29a06a(0x2fd)],_0x354d84))==null?void 0x0:_0x32d7f3[_0x29a06a(0x295)])!=null?_0x28a246:_0x29a06a(0x104),'range':this[_0x29a06a(0x1dc)](_0x2bbcf4,_0x448c21),'sheetID':_0x2bbcf4,'color':this[_0x29a06a(0x301)][_0x29a06a(0x33e)](_0x354d84),'selection':_0x123896},_0x31ca6d=this[_0x29a06a(0x289)];_0x31ca6d[_0x29a06a(0x28a)](_0x354d84,_0x45756a),this[_0x29a06a(0x33f)]['next'](_0x31ca6d);}['_onCursorDelete'](_0x5d1f7e){const _0x401604=_0x12409a,{memberID:_0x3d7ba2}=_0x5d1f7e[_0x401604(0x244)],_0x462d12=this[_0x401604(0x289)];_0x462d12[_0x401604(0xf3)](_0x3d7ba2),this[_0x401604(0x33f)][_0x401604(0x188)](_0x462d12);}[_0x12409a(0x1dc)](_0x55da28,_0x17311f){const _0x3b23ca=_0x12409a;var _0x144c4d,_0x577f79;const _0x4d1702=(_0x577f79=(_0x144c4d=this[_0x3b23ca(0x392)][_0x3b23ca(0x17d)](this[_0x3b23ca(0x2fd)]))==null?void 0x0:_0x144c4d[_0x3b23ca(0x208)](_0x55da28))==null?void 0x0:_0x577f79['getMergeData']();return(_0x4d1702==null?void 0x0:_0x4d1702[_0x3b23ca(0x297)](_0xfb2fe9=>_0x3b6a0d['contains'](_0xfb2fe9,_0x17311f)))||_0x17311f;}[_0x12409a(0x1ab)](){const _0x438584=_0x12409a,_0x2ef2ad=new _0x29a9a9(),_0x4ca076=Hr(),_0x2ef7d9=()=>{const _0x115d36=_0x4bc7;_0x2ef2ad[_0x115d36(0x280)]();const _0x1284ef=(_0x40239f,_0x57d6c5,_0x22be97,_0x322caf)=>{const _0x5da008=_0x115d36;let _0x325fcf=[];switch(_0x40239f['id']){case _0x4d74df[_0x5da008(0x2ed)]:{_0x325fcf=_0x37b146(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x253)]:{_0x325fcf=_0x55259b(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x340)]:{_0x325fcf=_0x413277(_0x40239f,_0x322caf);break;}case _0x4d74df['InsertRangeMoveDownCommandId']:{_0x325fcf=_0x1c8722(_0x40239f,_0x322caf);break;}case _0x4d74df['InsertRangeMoveRightCommandId']:{_0x325fcf=_0x214bbf(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x39b)]:{_0x325fcf=_0x284a2f(_0x40239f,_0x322caf);break;}case _0x4d74df['MoveRangeCommandId']:{_0x325fcf=_0x40d85b(_0x40239f,_0x322caf);break;}case _0x4d74df['RemoveColCommandId']:{_0x325fcf=_0x300f40(_0x40239f,_0x322caf);break;}case _0x4d74df[_0x5da008(0x125)]:{_0x325fcf=_0x8d978d(_0x40239f,_0x322caf);break;}}const _0x275c40=_0x596bfe(_0x325fcf,_0x322caf),_0x4984dd=this[_0x5da008(0x289)][_0x5da008(0x2d5)](_0x57d6c5);if(_0x4984dd&&_0x275c40){const _0x23a238={..._0x4984dd,'range':_0x275c40};this['cursorInfo'][_0x5da008(0x28a)](_0x57d6c5,_0x23a238),_0x4ca076(()=>{const _0x4b3eaf=_0x5da008,_0x31240d=this[_0x4b3eaf(0x324)]['registerRefRange'](_0x275c40,_0x2b2e3a=>(_0x31240d[_0x4b3eaf(0x280)](),_0x1284ef(_0x2b2e3a,_0x57d6c5,_0x22be97,_0x275c40)));_0x2ef2ad[_0x4b3eaf(0x22d)](_0x31240d);});}return{'redos':[],'undos':[]};};this[_0x115d36(0x289)][_0x115d36(0x20d)]((_0x27795f,_0x328fd0)=>{const _0x2adf6e=_0x115d36,{range:_0x4da804,sheetID:_0x40fac5}=_0x27795f,_0x4d3a16=this[_0x2adf6e(0x324)][_0x2adf6e(0x2cb)](_0x4da804,_0x6a5e39=>(_0x4d3a16[_0x2adf6e(0x280)](),_0x1284ef(_0x6a5e39,_0x328fd0,_0x40fac5,_0x4da804)));_0x2ef2ad[_0x2adf6e(0x22d)](_0x4d3a16);});};this[_0x438584(0x2f2)](_0x5ef5c0(this['_cursorInfo$'][_0x438584(0x3c1)](()=>{_0x2ef7d9();})));}['_toggleOnline'](){const _0x3cf7c0=_0x12409a;var _0x5c8e47,_0x2852e9;if(this['_online']=!0x0,((_0x5c8e47=this[_0x3cf7c0(0x392)]['getFocusedUnit']())==null?void 0x0:_0x5c8e47[_0x3cf7c0(0xe4)]())!==this[_0x3cf7c0(0x2fd)])return;const _0x5a6407=(_0x2852e9=this[_0x3cf7c0(0x26a)][_0x3cf7c0(0x2d5)](_0x158fb6)[_0x3cf7c0(0xd6)]())==null?void 0x0:_0x2852e9[0x0],_0x453ea=this[_0x3cf7c0(0x392)][_0x3cf7c0(0x1cb)](_0x351a49[_0x3cf7c0(0x1e2)])['getActiveSheet']();_0x5a6407&&_0x453ea&&this[_0x3cf7c0(0x378)](_0x453ea[_0x3cf7c0(0x25f)](),_0x5a6407);}['_toggleOffline'](){const _0x5ab55a=_0x12409a;this[_0x5ab55a(0x2fa)]=!0x1;}};Dt=$r([me(0x2,_0x565e28(_0x3f178c)),me(0x3,_0x565e28(Gt)),me(0x4,_0x565e28(ce)),me(0x5,_0x114f27),me(0x6,_0x2af4cf),me(0x7,_0x565e28(_0x280a5a))],Dt);var kr=Object[_0x12409a(0x1ee)],Br=Object[_0x12409a(0xfe)],Vr=(_0x742497,_0x388a34,_0x49c668,_0x1bb3cc)=>{for(var _0x40d4e1=_0x1bb3cc>0x1?void 0x0:_0x1bb3cc?Br(_0x388a34,_0x49c668):_0x388a34,_0x54ae96=_0x742497['length']-0x1,_0x54d1ec;_0x54ae96>=0x0;_0x54ae96--)(_0x54d1ec=_0x742497[_0x54ae96])&&(_0x40d4e1=(_0x1bb3cc?_0x54d1ec(_0x388a34,_0x49c668,_0x40d4e1):_0x54d1ec(_0x40d4e1))||_0x40d4e1);return _0x1bb3cc&&_0x40d4e1&&kr(_0x388a34,_0x49c668,_0x40d4e1),_0x40d4e1;},ut=(_0x485e11,_0x3c5dc4)=>(_0x506c30,_0x5dcedf)=>_0x3c5dc4(_0x506c30,_0x5dcedf,_0x485e11);let ve=class extends _0x5d8701{constructor(_0x1f4f2c,_0x29d393,_0x236d3a){const _0x5733e5=_0x12409a;super(),l(this,_0x5733e5(0x112),new Map()),l(this,'_entityInit$',new _0x5633a5()),(this[_0x5733e5(0x392)]=_0x1f4f2c,this[_0x5733e5(0x26a)]=_0x29d393,this[_0x5733e5(0x3d7)]=_0x236d3a,this['_init']());}[_0x12409a(0x280)](){const _0x2c0924=_0x12409a;super[_0x2c0924(0x280)](),this[_0x2c0924(0x166)][_0x2c0924(0x38f)](),this[_0x2c0924(0x112)][_0x2c0924(0x20d)](_0x351eca=>_0x351eca['dispose']());}[_0x12409a(0x2d0)](_0x55a517){const _0x40bdfe=_0x12409a;return this[_0x40bdfe(0x112)][_0x40bdfe(0x128)](_0x55a517)?this[_0x40bdfe(0x112)][_0x40bdfe(0x2d5)](_0x55a517)[_0x40bdfe(0x1b0)]:this[_0x40bdfe(0x166)]['pipe'](_0x1e6332(_0x5c1cd3=>_0x5c1cd3[_0x40bdfe(0x2fd)]===_0x55a517),_0x3fba78(_0x53a0e4=>_0x53a0e4[_0x40bdfe(0x1b0)]));}[_0x12409a(0x2c3)](){const _0x4c32c3=_0x12409a;this['_univerInstanceService'][_0x4c32c3(0x3dc)](_0x351a49['UNIVER_SHEET'])[_0x4c32c3(0x29f)](_0x2d78ee(this['dispose$']))[_0x4c32c3(0x3c1)](async _0x2e9f18=>{const _0x544612=_0x4c32c3,_0x3ce99a=_0x2e9f18[_0x544612(0xe4)](),_0x2422df=await this[_0x544612(0x3c9)](_0x3ce99a);this['_entityInit$']['next'](_0x2422df),this[_0x544612(0x112)][_0x544612(0x28a)](_0x3ce99a,_0x2422df);}),this[_0x4c32c3(0x392)]['getTypeOfUnitAdded$'](_0x351a49[_0x4c32c3(0x15b)])[_0x4c32c3(0x29f)](_0x2d78ee(this[_0x4c32c3(0x394)]))['pipe'](_0x1e6332(_0x5e74a5=>!_0x5e74a5[_0x4c32c3(0xe4)]()['startsWith']('__')))[_0x4c32c3(0x3c1)](async _0x5308e3=>{const _0x223901=_0x4c32c3,_0x5203a9=_0x5308e3['getUnitId'](),_0x29f522=await this['_startDocCollabCursor'](_0x5203a9);this[_0x223901(0x166)][_0x223901(0x188)](_0x29f522),this[_0x223901(0x112)][_0x223901(0x28a)](_0x5203a9,_0x29f522);}),_0x23085b(this[_0x4c32c3(0x392)][_0x4c32c3(0x3ac)](_0x351a49[_0x4c32c3(0x15b)]),this[_0x4c32c3(0x392)][_0x4c32c3(0x3ac)](_0x351a49[_0x4c32c3(0x1e2)]))['pipe'](_0x2d78ee(this[_0x4c32c3(0x394)]))['subscribe'](_0x298f91=>{const _0x3a84ad=_0x4c32c3,_0x3fbae7=_0x298f91[_0x3a84ad(0xe4)](),_0x4682c3=this[_0x3a84ad(0x112)][_0x3a84ad(0x2d5)](_0x3fbae7);_0x4682c3&&(_0x4682c3[_0x3a84ad(0x280)](),this[_0x3a84ad(0x112)][_0x3a84ad(0xf3)](_0x3fbae7));});}async[_0x12409a(0x3c9)](_0x3ee5c4){const _0x36c3df=_0x12409a,_0x4cc7ad=await this[_0x36c3df(0x3d7)][_0x36c3df(0x3be)](_0x3ee5c4),_0xc99f61=this[_0x36c3df(0x26a)][_0x36c3df(0x32e)](Dt,_0x3ee5c4,_0x4cc7ad);return _0xc99f61[_0x36c3df(0x138)](),_0xc99f61;}async[_0x12409a(0x302)](_0x28be83){const _0x3a465b=_0x12409a,_0x19b90f=await this['_collabSessionService']['requireSession'](_0x28be83),_0x3de3e9=this[_0x3a465b(0x26a)][_0x3a465b(0x32e)](Ot,_0x28be83,_0x19b90f);return _0x3de3e9['init'](),_0x3de3e9;}};ve=Vr([ut(0x0,_0x114f27),ut(0x1,_0x565e28(_0x3f178c)),ut(0x2,_0x565e28(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function _0xe1d4(){const _0x49c200=['unit','_tryReconnect','resize','_redoStacks','createInstance','_telemetryInfo','_transformUndoRedoStack','eventID','setInterval','updatePermissionPoint','purple300','setItem','15989bwGWuN','/rev/','UNRECOGNIZED','url(#off-line-single_clip0_910_343)','_undoRedoService','enableAuthServer','_clearCollaborationTimeoutTimer','reconnect','assignAColorForMemberID','_cursorInfo$','InsertColCommandId','open$','top','_registerDependencies','_collaborationPaused','_state$','m2Prime','updateCollaborator','284552uqhhWg','_updateLocalCache','_joinRoom','findNodePositionByCharIndex','onCommentUpdate','getCollabEntity$','with','Error','UUID','_unitID','onTransformIME','actions','_getRedoStack','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','[CollaborationSessionService]:\x20socket\x20error','OffLineSingle','getSkeleton','userID','getRandomValues','onRemoteRej','enableLocalCache','conflict.title','_createSocket','arc','max','on-line-single','put','socketService','LOGIN_URL_KEY','unsubscribe','NO_OTHER_CLIENTS_EDITING','onRemoteAck','_startTelemetryCollaborationNewChangeset','popstate','isActive','save','collabStatus.offline','batchAllowed','_syncEditingCollabCursorService','isArray','APPLY_DUPLICATED','append','result','isEditing','_unitOnClients','onlyLocal','MUTATION','YUUMI_SUBSCRIPTION_NOT_FOUND','_updateLocalCursor','_throwTelemetryCollaborationNewChangeset','idSuffix','_clearHeartbeatTimer','awaiting','_handleLeaveEvent','_session','prototype','_clearUndo','5ZKWlaD','originalMeta','onSendChangeset','_getDownloadEndpointURL','storage','/role','addObject','onPointerMove$','_socket','&source=','POST','_notificationService','sendChangesetTimeout','_remoteChangesetQueue','complete','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initModules','_univerInstanceService','members','dispose$','_disabled','onTransformRemoteChangesetByIMECache','flatMap','onMissingChangesets','_range','file','InsertRowCommandId','downloadEndpointUrl','rng','status','\x20in\x20_schedule.','pending','show','LIVESHARE_NEW_HOST','_hovered','FETCH_MISS','PSEUDO_FETCH_MISSING_RESULT','[OfflineState]:\x20received\x20acknowledgement.','PERMISSION_DENIED','textRanges','endColumn','AWAITING_WITH_PENDING','setConfig','getTypeOfUnitDisposed$','DEFAULT_FILE_NAME','saveChangeset','doc.mutation.rich-text-editing','retryConnectingInterval','_compressMutationService','range','_labelPosition','_textBubble','href','_tryEnsureSocket','length','body','_handleHover','loadSheet','width','_memberService','_transformUndoredo','requireSession','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','/fetchmissing?from=','subscribe','_anchor','some','onMissedChangesetFetched','addEventListener','NOT_FOUND','univer-pro.collaboration-client-socket-service','APPLY_NON_SEQUENTIAL_REVISION','_startSheetCollabCursor','getWorkbookSelections','_changesetReqId','_sendingTimer','black','restore','LICENSE_MAX_UNITS_EXCEEDED','now','snapshot','collabStatus.synced','setParam','subscribeEvent','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','univer-pro.collaboration-client.single-active-unit-service','_collabSessionService','AWAITING','catch','authzUrl','/unit/','getTypeOfUnitAdded$','UNKNOWN_CMD','all','liveShareNewHost','LIVESHARE_TERMINATE','_getSaveTimeout','apply','getUnit','commentUpdate$','readAsDataURL','slice','_transformService','joinRsp','event$','_docSkeletonManagerService','encode','_queuedRemoteChangesets','_handleJoinEvent','NOT_COLLAB','HELLO','_onConnectionOpen','interceptor','colorChannel1','getValue','randomUUID','[UniverCollaborationClientPlugin]','collabSubmitChangesetUrl','_sessionStatus$','ENSURE_SNAPSHOT_EXECUTION','Univer','_commandService','_replayCachedMutations','_clearLocalCache','getVpScrollXYInfoByPosToVp','replaceTextRanges','LICENSE_IMPORT_SIZE_EXCEEDED','UNIVER_UNKNOWN','MSG_FOR_ERROR','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','then','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','objectActions','_decreaseWaiting','_showConflictNotification','onPointerLeave$','_transformIMECache','socket$','getRoom','_onRecvEvent','unit-cache-','onlineStatus','COMMENT_UPDATE','collaboration.closeRoom','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_checkMissing','connection\x20error','history','_scheduleCollaborationTimeoutTimer','onCommandExecuted','_messageService','registerComponent','getCurrentRevOfUnit','_applyRemoteChangeset','startTime','...','_docStateChangeManagerService','_event$','_stopTelemetryCollaborationNewChangeset','selection','/block/','withCredentials','_ensureSubject','random','urlChange$','_onRemoteChangeset','COLLAB_SUBMIT_CHANGESET_URL','_executeRemoteChangeset','onReady','hidden','SYNCED','_hideTimer','USERS_ENTER','unitId','registerBeforeClose','reduce','getActiveRange','1em','joinEvent','HEARTBEAT_TIMEOUT','infoRsp','SNAPSHOT_HAS_BEEN_REMOVED','_http','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','onSyncEditingCollabCursor','COMPLETION_FINISHED','activeSheet$','_roomMembers','conflict.content','_substituteUndoStack','_registerRenderDependencies','onlineStatusTitle','focused$','_createInitialState','transformChangesets','/universer-api/file/{fileID}/sign-url','_initCommandExecutedListener','closeSession','_onRemoteRejected','UNKNOWN_CODE','disposeUnit','ONLINE','/universer-api/snapshot','_awaitingChangeset','/allowed','FromArray','visibilitychange','image/gif','origin','startsWith','close','toLowerCase','_onUserLeave','getCurrentSelections','collaboration-client.offline-data-not-saved','currentColor','_localeService','sheetId','[CollaborationState]:\x20apply\x20error!','_createInitialStateImpl','moveTo','_isPermissionRej','_scheduleTimestamp','_getSheetObject','newValue','sessionStatus$','ACTIVE_UNIT_EVENT_CHANNEL','getUnitId','_shouldReportTelemetry','create','awaiting_with_pending','fillText','split','transformUndoRedo','roles','_cachedData','univer-online-status-title','SUBMIT_CHANGESET','_getCtorByUniverType','getRangePointData','jiqing500','_getSendChangesetTimeout','delete','collabCursorState$','collabWebSocketUrl','RETRY_CONNECTING_MAX_COUNT','requestParams','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_onConnectionFailed','onRemoteChangeset','_clearRedo','text','_anchorDot','getOwnPropertyDescriptor','xlink:href','_hover','filter','changesets','VIEW_MAIN','Unknown\x20user','createElement','_onOffline','UNAUTHENTICATED','OFFLINE','defs','_instanceService','LEAVE','permissionRejEvent','send','NEW_CHANGESETS','0\x200\x2016\x2016','map','_type','_entities','session.will-retry','[CollaborationUndoRedoService]','getLatestCsReqIdBySid','/object','_scene','UNIVER_COLLABORATION_CLIENT_PLUGIN','session','replaceState','1258368VNeNVi','/collaborator','updateMember','socket\x20open.','RECV','univerjs-icon\x20univerjs-icon-','_sendHeartbeatTimer','docStateChange$','_updateCollabCursors','transformMutation','RemoveRowCommandId','SNAPSHOT_INVALID_SNAPSHOT','editingUnit','has','102meCugh','_imageSourceCache','collabStatus.conflict','_retryConnectingTimer','\x20to\x20','endRow','PENDING','getOwnPropertySymbols','values','backgroundColor','round','_send','_createHandler','SUCCUSS','includes','init','collabStatus.syncing','patch','lineTo','entries','_config','height','commentUpdateEvent','getActiveSheet','leaveEvent','asObservable','_sheetTransformSelectionsService','min','syncEditingCollabCursor','transformMutationsWithChangeset','failed\x20to\x20apply\x20missed\x20changesets!','_status$','univer-online','clipPath','getCellPositionByOffset','trim','_getScale','collaboratorID','clearInterval','_configService','_onFetchMissResult','closePath','_themeService','resolve','executeCommand','setTimeout','HEARTBEAT','updateOfflineData','uni.network.url-service','[OfflineState]:\x20received\x20rejection.','UNIVER_DOC','_getLoginPath','status$','[CollaborationSessionService]','_unlockTransition','_initRequestHeader','_candidateSocket','_initStatusComponent','_getCurrentRevision','drawWith','unknown','_entityInit$','createSocket','revision','[DataLoaderController]','saveOfflineData','_permissionService','removeParam','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_updateURLWithCurrentState','capture','roomMembers','roomMembers$','&assign=','UnitEmbedded','UniverIcon','signUrlServerUrl','_scheduleClearOtherTimer','list','reject','routeKey','use','getRelativeToViewportCoord','_render','getUniverSheetInstance','_waitCount','_sessions','getUnhiddenWorksheets','searchParams','fromCollab','_getUndoStack','_refreshCollabCursors','state','USERS_LEAVE','_snapshotServerService','next','objectID','_socket$','[PendingState]:\x20received\x20rejection.','ERROR_IMAGE','registerHTTPInterceptor','icon','PERMISSION_REJ','clear','_drawAnchor','rev','makeDirty','loginUrlKey','column','assign','CONFLICT','type','object','APPLY_REJECT','CONNECTOR_DATA_TOO_LARGE','_singleActiveUnitService','fill','refreshPermission','hasOwnProperty','svg','session.room-full','setShapeProps','code','c1Prime','getResourcesRequest','socket\x20close','APPLY_REVISION_CONFILICT','LIVESHARE_OPERATION','_collaborationTimeoutTimer','getAncestorScale','_onRefRangeChange','engine','_setupBeforeClosingHandler','_schedule','getUnitOnRev','cursorInfo$','_sheetSkeletonManagerService','_getSnapshotAPIPrefix','_initResize','post','size','onload','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','mutations','subUnitId','M0\x200H16V16H0z','_change$','defIds','[CollaborationEntity]','setWaitCount','concat','_toggleOnline','#FFF','_waitForHeartbeatResponse','enableSingleActiveInstanceLock','10076700OQgKqY','getFocusedUnit','path','_docSkeleton','[OfflineState]:\x20received\x20changeset.','?url=','_socketMessageSubscription','getCurrentUnitForType','method','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_clearTimeoutTimer','_commentUpdate$','HttpExport','objects','registerRenderModule','_roomMembers$','univer-online-status-icon','_removeRoom','toggleOnline','JOIN','close$','collaboration-session-retry','call','collab-rect-range-','_getMergeRange','CHANGESET_REVISION_CONFILICT','_substituteRedoStack','CHANGESET_ACK','\x0aCurrent:\x20','allowed','UNIVER_SHEET','baseRev','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onJoinRoomEvent','_draw','_exhaustRemoteChangesetQueue','symbol','[FetchMissState]','getUnitType','_cursors','getDocRanges','compose','defineProperty','ws://127.0.0.1:8000/universer-api/comb/connect','loadOfflineData','_clearScheduledTask','onMouseMove','/universer-api/authz','_selfUnitIDs','url(#$1','transformIMECache','synced','_updateStatus','_transformSelections','_revisionService','selections','#fff','INVALID_ARGUMENT','_changesetSessionId','clearTimeout','fetchThroughInterceptors','_initStatusListener','row','snapshotServerUrl','_saveTaskMap','getCollabEntity','LIVESHARE_FETCH_OPERATIONS','ERROR_EXCEED_SIZE','getSheetBySheetId','_renderManagerService','LOCAL_CACHE_INTERVAL','Warning','resend','forEach','_lastPointer','[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.','awaitingChangeset','2612348dQgzpx','_syncEditingCollabCursor','string','bind','exhaustSavingTask','color','toggleOffline','_backgroundColor','_collabCursorState$','submit\x20changeset\x20error!','COMPRESS_MUTATION_APPLY','collab-client.tooltip.reconnect','_colorIndex','onlineStatusIcon','online','_name','replace','saveSheetBlock','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','children','_lockTransition','toString','_getAPIPrefix','_collabCursorController','_eventUnsubscribe','IDLE','getDeserializedSheetBlock','_getAPIPrefixPath','add','_listenToOnlineEvent','getMemberID','LICENSE_DISTRO_REJECTED','5645334NjOWeP','_context','/new_changes','error$','getParam','url','measureText','unitId\x20is\x20not\x20found','_scheduleSaving','ALREADY_EXISTS','SNAPSHOT_URL_KEY','_replaceFileID','getRenderById','univer-offline','stopTime','conflict','HEARTBEAT_INTERVAL','FileId','_transformStack','data','FAIL','skeleton','offline','UnitSnapshot','attrs','getViewport','sheets','FETCH_MISSING','_updateState','_logService','_docTransformIMECacheService','session.collaboration-timeout','_saveCache','SHOULD_CLOSE_CONN','DeleteRangeMoveUpCommandId','fillStyle','_cursorShapes','isPermissionRej','_handler','getUnitStatus$','setCurrentUser','hovered','confirm','_onMessage','_incrementRevisionNumber','from','getSheetId','81WmUJYc','state$','_commentService','_snapshotService','none','getMember','JOINING','gold400','_removeClearOtherTimer','tag','_injector','/object/','every','_beforeCloseService','generateRandomId','_ws','_color','setAlpha','transformSelections','OTHER_CLIENTS_EDITING','_docTransformSelectionsService','target','auth.needGotoLoginAlert','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','Undefined','collaboration-client.config','fetchMissingChangesets','_document','extend','_toggleOffline','UNIVER_SLIDE','localeService','dispose','_drawTextRange','_timeoutTimer','substring','fetchMiss','SNAPSHOT_SERVER_URL_KEY','_uiPartsService','_startCollaboration','_onCursorDelete','cursorInfo','set','_removeCollabCursors','_setupSubUnitSync','subunit','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','className','SEND_CHANGESET_TIMEOUT','sheetID','_initMergeInterceptor','unshift','function','name','_getSignURL','find','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','_collaborationController','_pendingMutations','currentSkeleton$','m1Prime','_initEventListeners','listCollaborators','pipe','c2Prime','_shapes','getCurrentUser','transformRemoteChangeset','on-line-single_clip0_910_349','_initCloseConn','_rescheduleHeartbeat','_assignedColors','LIVESHARE_REQUEST_HOST','collabStatus.notCollab','setActiveRange','_drawRectRange','_getAnchorBounding','image/bmp','_id','off-line-single_clip0_910_343','removeMember','deepClone','pushState','_urlService','getInterceptPoints','incrementRevOfUnit','UNIVER_PROJECT','onTransformChange$','_telemetryService','getTime','INTERNAL_ERROR','_disableEditing','sessionStatus','COMPRESS_MUTATION_SEND','_HTTPService','_httpService','newCsEvent','indexOf','evenodd','_init','_cursor','reqId','_updateSubUnitFromURLParams','collaboration.single-unit.warning','collabStatus.fetchMiss','image/jpg','ERROR_IMAGE_TYPE','registerRefRange','_onUserJoin','_transformPreviousActiveRange','font','/-/object/list','getCollabCursors$','_unitStatus','UPDATE_PERMISSION_OBJ','_scheduleHeartbeat','displayName','get','_transitionLocked','error','disableLocalCache','CHANGESET_REJ','getUndoRedoMutationParamsCache','shouldCloseConn','_getUploadFileURL','BASE64','UPDATE_CURSOR','labelPosition','_onCombEvent','_handleHeartbeatEvent','/universer-api/oidc/authpage','initWorkbookPermissionChange','_retryCount','TOO_MANY_REQUESTS','INGEST','_collaborationSessionService','uploadFileServerUrl','1137416rVBRwh','image/jpeg','visibilityState','memberID','DeleteRangeMoveLeftCommandId','not_collab','_acknowledgedAwaitingChangeset','_handleEvent','_heartbeatTimer','disposeWithMe','_localStorageService','headers','div','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','src','_localCacheService','[SyncedState]:\x20received\x20acknowledgement.','_online','updateCursorEvent','_socketService','unitID','registerOnClose','_clearOtherTimers','sid','_colorAssignService','_startDocCollabCursor','_members','action','objectType','YUUMI_URL_COL_OUT_OF_RANGE','cmd','_onConflict','_onCursorUpdate','appendMutation','_fetchMissChangesets','_onLocalMutation','current','0\x200\x2017\x2016','_loadDoc','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onTransformSelections','getConfig','location','_userManagerService','YUUMI_RATE_OVER_LIMIT','YUUMI_UNABLE_LOAD_URL','startRow','debug','params','message$','{fileID}','hide','createCollaborator','_listenToOfflineEvent','equals','APPLY_PERMISSION_DENIED','COLLAB_WEB_SOCKET_URL','stringify','toRgbString','_refRangeService','push','editing\x20status\x20changed\x20to','_state','_socketReady','_transformRemoteChangesetByIMECache'];_0xe1d4=function(){return _0x49c200;};return _0xe1d4();}function Wr(_0x4731bd,_0x5c6508){const _0x3c1310=_0x12409a;let {radius:_0x473aa2,width:_0x1c3171,height:_0x28a80b}=_0x5c6508;_0x473aa2=_0x473aa2!=null?_0x473aa2:0x0,_0x1c3171=_0x1c3171!=null?_0x1c3171:0x1e,_0x28a80b=_0x28a80b!=null?_0x28a80b:0x1e;let _0x259033=0x0,_0x220102=0x0,_0x171476=0x0;_0x259033=_0x220102=_0x171476=Math[_0x3c1310(0x144)](_0x473aa2,_0x1c3171/0x2,_0x28a80b/0x2),_0x4731bd['beginPath'](),_0x4731bd[_0x3c1310(0xdd)](_0x259033,0x0),_0x4731bd[_0x3c1310(0x13b)](_0x1c3171-_0x220102,0x0),_0x4731bd[_0x3c1310(0x35f)](_0x1c3171-_0x220102,_0x220102,_0x220102,Math['PI']*0x3/0x2,0x0,!0x1),_0x4731bd['lineTo'](_0x1c3171,_0x28a80b-_0x171476),_0x4731bd['arc'](_0x1c3171-_0x171476,_0x28a80b-_0x171476,_0x171476,0x0,Math['PI']/0x2,!0x1),_0x4731bd[_0x3c1310(0x13b)](0x0,_0x28a80b),_0x4731bd[_0x3c1310(0x13b)](0x0,_0x259033),_0x4731bd[_0x3c1310(0x35f)](_0x259033,_0x259033,_0x259033,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4731bd[_0x3c1310(0x152)](),_0x5c6508[_0x3c1310(0x19d)]&&(_0x4731bd[_0x3c1310(0x36b)](),_0x4731bd[_0x3c1310(0x254)]=_0x5c6508[_0x3c1310(0x19d)],_0x5c6508['fillRule']==='evenodd'?_0x4731bd[_0x3c1310(0x19d)](_0x3c1310(0x2c2)):_0x4731bd[_0x3c1310(0x19d)](),_0x4731bd[_0x3c1310(0x3ce)]());}class st extends _0x5ff19f{constructor(_0x3e14e4,_0x4db086){const _0x6dc07f=_0x12409a;super(_0x3e14e4,_0x4db086),l(this,_0x6dc07f(0x216)),l(this,_0x6dc07f(0xfc)),(this[_0x6dc07f(0x216)]=_0x4db086==null?void 0x0:_0x4db086[_0x6dc07f(0x216)],this[_0x6dc07f(0xfc)]=_0x4db086==null?void 0x0:_0x4db086[_0x6dc07f(0xfc)]);}static[_0x12409a(0x164)](_0x383558,_0x553ad8){const _0x3d91cb=_0x12409a,{text:_0x4016c3,color:_0xd9e156}=_0x553ad8;_0x383558['save'](),_0x383558[_0x3d91cb(0x2ce)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2e0660=_0x383558['measureText'](_0x4016c3)[_0x3d91cb(0x3bb)],_0x3d0e08=Math['min'](_0x2e0660+0x2*dt,ms);Wr(_0x383558,{'height':$e,'radius':0x4,'width':_0x3d0e08,'fill':_0xd9e156,'evented':!0x1}),_0x383558[_0x3d91cb(0x254)]=_0x3d91cb(0x1c1);const _0x4ee8a9=dt,_0x4342c4=$e-Fr,_0x2883b9=ms-0x2*dt;if(_0x2e0660>_0x2883b9){let _0xdb2d79='',_0xf6054f=0x0;for(const _0x5d7e62 of _0x4016c3){const _0x230232=_0x383558[_0x3d91cb(0x237)](_0x5d7e62)[_0x3d91cb(0x3bb)];if(_0xf6054f+_0x230232<=_0x2883b9-_0x383558[_0x3d91cb(0x237)](_0x3d91cb(0x41c))[_0x3d91cb(0x3bb)])_0xdb2d79+=_0x5d7e62,_0xf6054f+=_0x230232;else{_0xdb2d79+=_0x3d91cb(0x41c);break;}}_0x383558['fillText'](_0xdb2d79,_0x4ee8a9,_0x4342c4);}else _0x383558[_0x3d91cb(0xe8)](_0x4016c3,_0x4ee8a9,_0x4342c4);_0x383558[_0x3d91cb(0x3ce)]();}[_0x12409a(0x1e6)](_0x124666){const _0x1b0c1e=_0x12409a;st[_0x1b0c1e(0x164)](_0x124666,this);}}const ft='collab-text-anchor-',Gr='collab-text-range-',Yr=_0x12409a(0x1db),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x4b956c,_0x18f4f4,_0x49bddd,_0x2e6b3c){const _0x88438d=_0x12409a;l(this,_0x88438d(0x2a1),[]),l(this,_0x88438d(0x3c2),null),l(this,'_textBubble',null),l(this,_0x88438d(0xfd),null),l(this,_0x88438d(0x42c),null),l(this,_0x88438d(0x229),null),(this[_0x88438d(0x2c4)]=_0x4b956c,this[_0x88438d(0x117)]=_0x18f4f4,this[_0x88438d(0x1c7)]=_0x49bddd,this[_0x88438d(0x27b)]=_0x2e6b3c,this[_0x88438d(0x17c)]());}set[_0x12409a(0x100)](_0xebb063){const _0x262d77=_0x12409a;_0xebb063?(this[_0x262d77(0xfd)]&&this[_0x262d77(0xfd)][_0x262d77(0x31c)](),this[_0x262d77(0x3b4)]&&this[_0x262d77(0x3b4)][_0x262d77(0x3a1)]()):(this[_0x262d77(0xfd)]&&this[_0x262d77(0xfd)]['show'](),this[_0x262d77(0x3b4)]&&this[_0x262d77(0x3b4)][_0x262d77(0x31c)]());}[_0x12409a(0x280)](){const _0x376a2f=_0x12409a;for(const _0x2f9aae of this[_0x376a2f(0x2a1)])_0x2f9aae[_0x376a2f(0x280)]();this['_textBubble']&&this[_0x376a2f(0x3b4)][_0x376a2f(0x280)](),this[_0x376a2f(0xfd)]&&this[_0x376a2f(0xfd)][_0x376a2f(0x280)](),this['_anchor']&&this[_0x376a2f(0x3c2)]['dispose'](),this[_0x376a2f(0x229)]&&this[_0x376a2f(0x229)]();}[_0x12409a(0x17c)](){const _0x2faa44=_0x12409a;var _0x1a0587;const {_docSkeleton:_0x2f7e02,_document:_0x533780}=this,{color:_0x2d014f,name:_0xfcd3c7,ranges:_0x587f75}=this[_0x2faa44(0x2c4)],_0x341ff0=_0x533780['getOffsetConfig'](),{docsLeft:_0x2a2c1b,docsTop:_0xc19297}=_0x341ff0,_0x10cef5=new _0xae33e2(_0x341ff0,_0x2f7e02);for(const {startOffset:_0x337024,endOffset:_0x56b077,collapsed:_0x57749f,isActive:_0x583e58}of _0x587f75){const _0x29b313=_0x2f7e02['findNodePositionByCharIndex'](_0x337024),_0x42611b=_0x2f7e02[_0x2faa44(0x34b)](_0x56b077);if(_0x583e58){const {contentBoxPointGroup:_0x4089b5}=_0x10cef5[_0x2faa44(0xf0)](_0x42611b,_0x42611b);if(_0x4089b5[_0x2faa44(0x3b7)]===0x0)continue;this['_drawAnchor'](_0x2d014f,_0x4089b5,_0x2a2c1b,_0xc19297,_0xfcd3c7),this['_eventUnsubscribe']=this['_handleHover']();}if(!_0x57749f&&_0x29b313&&_0x42611b){if(_0xc6104c(_0x29b313,_0x42611b)){const _0x1502b8=new _0x4a1ef9(_0x341ff0,_0x2f7e02),{pointGroup:_0x459e6f}=(_0x1a0587=_0x1502b8['getRangePointData'](_0x29b313,_0x42611b))!=null?_0x1a0587:{};if(_0x459e6f==null||_0x459e6f[_0x2faa44(0x3b7)]===0x0)continue;this['_drawRectRange'](_0x2d014f,_0x459e6f,_0x2a2c1b,_0xc19297);}else{const {contentBoxPointGroup:_0x5b9e02}=_0x10cef5[_0x2faa44(0xf0)](_0x29b313,_0x42611b);if(_0x5b9e02[_0x2faa44(0x3b7)]===0x0)continue;this['_drawTextRange'](_0x2d014f,_0x5b9e02,_0x2a2c1b,_0xc19297);}}}}[_0x12409a(0x191)](_0x36d72e,_0x1f114b,_0x1d2fd3,_0xb7da66,_0x4e6c60){const _0x3de917=_0x12409a,_0x80feec=this[_0x3de917(0x2ac)](_0x1f114b),{left:_0x2695b9,top:_0x786e43,height:_0x2f75c9}=_0x80feec,_0x75e436=this['_getScale'](),_0x46b50d=Xr/_0x75e436,_0x462f21=new _0x2433b1(ft+_0x5bdceb['generateRandomId'](we),{'left':_0x2695b9+_0x1d2fd3-_0x46b50d,'top':_0x786e43+_0xb7da66,'height':_0x2f75c9,'width':Kr,'fill':_0x36d72e||_0x4194dd(_0x2654dc[_0x3de917(0x3cd)],0x0),'strokeWidth':_0x46b50d,'stroke':qr,'evented':!0x0});this['_anchor']=_0x462f21,this['_scene'][_0x3de917(0x387)](_0x462f21,_0x13a457);const _0x24369a=new _0x2433b1(ft+_0x5bdceb[_0x3de917(0x26e)](we),{'left':_0x2695b9+_0x1d2fd3-_0x46b50d,'top':_0x786e43+_0xb7da66-mt/0x2,'height':mt,'width':mt,'fill':_0x36d72e||_0x4194dd(_0x2654dc['black'],0x0),'strokeWidth':0x0,'stroke':_0x36d72e||_0x4194dd(_0x2654dc['black'],0x0),'evented':!0x1});this[_0x3de917(0xfd)]=_0x24369a,this[_0x3de917(0x117)]['addObject'](_0x24369a,_0x13a457);const _0x1d1bd4=new st(ft+_0x5bdceb['generateRandomId'](we),{'left':_0x2695b9+_0x1d2fd3-_0x46b50d,'top':_0x786e43+_0xb7da66-$e,'text':_0x4e6c60,'color':_0x36d72e});this[_0x3de917(0x3b4)]=_0x1d1bd4,this[_0x3de917(0x117)][_0x3de917(0x387)](_0x1d1bd4,_0x13a457),this['_hover']=!0x1;}[_0x12409a(0x3b9)](){const _0x3c91ec=_0x12409a,_0x34675a=this[_0x3c91ec(0x3c2)]['onPointerEnter$'][_0x3c91ec(0x3d4)](()=>{const _0x2bf51c=_0x3c91ec;this[_0x2bf51c(0x100)]=!0x0;}),_0x4f44ca=this['_anchor'][_0x3c91ec(0x408)][_0x3c91ec(0x3d4)](()=>{const _0x547569=_0x3c91ec;this['_hideTimer']&&clearTimeout(this[_0x547569(0x42c)]),this[_0x547569(0x42c)]=setTimeout(()=>{const _0x299f0=_0x547569;this[_0x299f0(0x100)]=!0x1;},0x7d0);});return()=>{const _0x36d094=_0x3c91ec;_0x34675a['unsubscribe'](),_0x4f44ca[_0x36d094(0x365)]();};}[_0x12409a(0x281)](_0x1c18ca,_0x4fd91b,_0x4caaa1,_0x587aa0){const _0x17f2cb=_0x12409a,_0x4066e6=new _0xa805c(_0x1c18ca)[_0x17f2cb(0x271)](0.2)[_0x17f2cb(0x323)](),_0x3cb5c6=new _0x346ba4(Gr+_0x5bdceb[_0x17f2cb(0x26e)](we),{'pointsGroup':_0x4fd91b,'fill':_0x4066e6||_0x4194dd(_0x2654dc['black'],0.2),'left':_0x4caaa1,'top':_0x587aa0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x17f2cb(0x325)](_0x3cb5c6),this['_scene'][_0x17f2cb(0x387)](_0x3cb5c6,_0x13a457);}[_0x12409a(0x2ab)](_0xe0c324,_0x5da559,_0x4b9841,_0x2eacd2){const _0x3348a2=_0x12409a,_0x6f2eb6=new _0xa805c(_0xe0c324)[_0x3348a2(0x271)](0.2)[_0x3348a2(0x323)](),_0x25a8f6=new _0x346ba4(Yr+_0x5bdceb[_0x3348a2(0x26e)](we),{'pointsGroup':_0x5da559,'fill':_0x6f2eb6||_0x4194dd(_0x2654dc[_0x3348a2(0x3cd)],0.2),'left':_0x4b9841,'top':_0x2eacd2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3348a2(0x325)](_0x25a8f6),this[_0x3348a2(0x117)][_0x3348a2(0x387)](_0x25a8f6,_0x13a457);}[_0x12409a(0x2ac)](_0x1c4c80){const _0x143eb4=_0x1c4c80[0x0],_0x584898=_0x143eb4[0x0],_0x2e4a52=_0x143eb4[0x2],{x:_0x5681b8,y:_0xc7124b}=_0x584898,{x:_0x634f9c,y:_0x376034}=_0x2e4a52;return{'left':_0x5681b8,'top':_0xc7124b,'width':_0x634f9c-_0x5681b8,'height':_0x376034-_0xc7124b};}[_0x12409a(0x14d)](){const _0x17ce55=_0x12409a,{scaleX:_0x463e56,scaleY:_0x102e9f}=this['_scene'][_0x17ce55(0x1aa)]();return Math[_0x17ce55(0x360)](_0x463e56,_0x102e9f);}}var Jr=Object[_0x12409a(0x1ee)],zr=Object[_0x12409a(0xfe)],Zr=(_0x1a34c5,_0x2fd8ca,_0x1b64a4,_0x4a074f)=>{const _0x2b000e=_0x12409a;for(var _0x2c0ded=_0x4a074f>0x1?void 0x0:_0x4a074f?zr(_0x2fd8ca,_0x1b64a4):_0x2fd8ca,_0x5e64e1=_0x1a34c5[_0x2b000e(0x3b7)]-0x1,_0x278c30;_0x5e64e1>=0x0;_0x5e64e1--)(_0x278c30=_0x1a34c5[_0x5e64e1])&&(_0x2c0ded=(_0x4a074f?_0x278c30(_0x2fd8ca,_0x1b64a4,_0x2c0ded):_0x278c30(_0x2c0ded))||_0x2c0ded);return _0x4a074f&&_0x2c0ded&&Jr(_0x2fd8ca,_0x1b64a4,_0x2c0ded),_0x2c0ded;},ke=(_0x466e80,_0x4eb8ac)=>(_0x5399d6,_0x195ebb)=>_0x4eb8ac(_0x5399d6,_0x195ebb,_0x466e80);let wt=class extends _0x5d8701{constructor(_0x25b747,_0x790d03,_0x55e542,_0x4fc4b2,_0x1e7027){const _0x2b1541=_0x12409a;super(),l(this,'_cursorShapes',[]),l(this,_0x2b1541(0x1eb),[]),(this[_0x2b1541(0x232)]=_0x25b747,this[_0x2b1541(0x3ea)]=_0x790d03,this[_0x2b1541(0x228)]=_0x55e542,this[_0x2b1541(0x3fa)]=_0x4fc4b2,this[_0x2b1541(0x153)]=_0x1e7027,this[_0x2b1541(0x2c3)]());}[_0x12409a(0x2c3)](){const _0x5b646a=_0x12409a,_0x3411ce=this[_0x5b646a(0x232)][_0x5b646a(0x42e)],_0x8d3a9d=this[_0x5b646a(0x3ea)];this['disposeWithMe'](_0x214399([this[_0x5b646a(0x228)]['getCollabCursors$'](_0x3411ce),this[_0x5b646a(0x153)]['currentTheme$']])[_0x5b646a(0x29f)](_0x123c40(([_0x4e6b38,_0x26e28f])=>({'skeleton':_0x8d3a9d['getSkeleton'](),'cursors':[..._0x4e6b38[_0x5b646a(0x131)]()][_0x5b646a(0x397)](_0x15b811=>({..._0x15b811,'color':_0x26e28f[_0x15b811[_0x5b646a(0x216)]]}))})))['subscribe'](_0x3628f2=>{const _0x327429=_0x5b646a;if(this[_0x327429(0x28b)](),_0x3628f2){const {skeleton:_0x5eb83a,cursors:_0x719836}=_0x3628f2;this[_0x327429(0x123)](_0x5eb83a,_0x719836);}})),this[_0x5b646a(0x1b3)](),this[_0x5b646a(0xc5)]();}[_0x12409a(0x123)](_0x5274c9,_0x1caa88){const _0x368ce1=_0x12409a,{scene:_0x2f0910,mainComponent:_0x6564f6}=this[_0x368ce1(0x232)],_0x101f9b=_0x1caa88[_0x368ce1(0x110)](_0x5b53e7=>new gs(_0x5b53e7,_0x2f0910,_0x5274c9,_0x6564f6));this[_0x368ce1(0x255)]=_0x101f9b,this[_0x368ce1(0x1eb)]=_0x1caa88;}[_0x12409a(0x184)](){const _0x315971=_0x12409a;this['_removeCollabCursors']();const {scene:_0x131a89,mainComponent:_0x428e93}=this['_context'],_0x3c65c9=this[_0x315971(0x3ea)][_0x315971(0x358)](),_0x3bd337=this[_0x315971(0x1eb)]['map'](_0x2bb879=>new gs(_0x2bb879,_0x131a89,_0x3c65c9,_0x428e93));this[_0x315971(0x255)]=_0x3bd337;}['_removeCollabCursors'](){const _0x43d79d=_0x12409a;this[_0x43d79d(0x255)][_0x43d79d(0x20d)](_0x50792d=>_0x50792d['dispose']()),this['_cursorShapes']=[];}[_0x12409a(0xc5)](){const _0x3556d2=_0x12409a,_0x496943=[_0x7ebe35['id']];this[_0x3556d2(0x2f2)](this[_0x3556d2(0x3fa)][_0x3556d2(0x416)](_0x5f3204=>{const _0x4f83f2=_0x3556d2;_0x496943['includes'](_0x5f3204['id'])&&_0x5f3204[_0x4f83f2(0x319)][_0x4f83f2(0x42e)]===this[_0x4f83f2(0x232)][_0x4f83f2(0x42e)]&&this['_refreshCollabCursors']();}));}[_0x12409a(0x1b3)](){const _0x467681=_0x12409a;this[_0x467681(0x2f2)](_0x3c0cfa(this[_0x467681(0x232)][_0x467681(0x1ac)][_0x467681(0x2b7)])[_0x467681(0x29f)](_0x51df9d(_0x278664=>_0x278664[_0x467681(0x198)]===_0x1ab316[_0x467681(0x32c)]),_0x39d280(0x10))[_0x467681(0x3c1)](()=>{const _0x2a65d8=_0x467681;this[_0x2a65d8(0x184)]();}));}};wt=Zr([ke(0x1,_0x565e28(_0x48a76e)),ke(0x2,_0x565e28(ve)),ke(0x3,_0x2af4cf),ke(0x4,_0x565e28(_0x376b1d))],wt);const Qr=0x1,eo=1.5;class to extends _0x5ff19f{constructor(_0x2428bc,_0x4eca70){const _0x5bf313=_0x12409a;super(_0x2428bc,_0x4eca70),l(this,_0x5bf313(0x270)),l(this,_0x5bf313(0x3a3),!0x1),l(this,_0x5bf313(0x399)),l(this,_0x5bf313(0x220),''),l(this,_0x5bf313(0x3b3),_0x5bf313(0x342)),l(this,'_backgroundColor'),(_0x4eca70&&this[_0x5bf313(0x1a2)](_0x4eca70),this['onPointerEnter$'][_0x5bf313(0x3d4)](()=>this[_0x5bf313(0x1a2)]({'hovered':!0x0})),this[_0x5bf313(0x408)][_0x5bf313(0x3d4)](()=>this[_0x5bf313(0x1a2)]({'hovered':!0x1})));}['setShapeProps'](_0x486296){const _0x556d12=_0x12409a;var _0x344385,_0x1220fb,_0x130aeb,_0x4e665c,_0x14a9c4,_0x2039b6;this['_color']=(_0x344385=_0x486296['color'])!=null?_0x344385:this[_0x556d12(0x270)],this[_0x556d12(0x3a3)]=(_0x1220fb=_0x486296[_0x556d12(0x25a)])!=null?_0x1220fb:this['_hovered'],this[_0x556d12(0x399)]=(_0x130aeb=_0x486296[_0x556d12(0x3b2)])!=null?_0x130aeb:this[_0x556d12(0x399)],this[_0x556d12(0x220)]=(_0x4e665c=_0x486296[_0x556d12(0x295)])!=null?_0x4e665c:this['_name'],this[_0x556d12(0x3b3)]=(_0x14a9c4=_0x486296[_0x556d12(0x2df)])!=null?_0x14a9c4:this['_labelPosition'],this[_0x556d12(0x218)]=(_0x2039b6=_0x486296[_0x556d12(0x132)])!=null?_0x2039b6:this['_backgroundColor'],this['transformByState']({'width':_0x486296[_0x556d12(0x3bb)],'height':_0x486296[_0x556d12(0x13e)]});}[_0x12409a(0x1f2)](_0xcda37b){const _0x2cd06d=_0x12409a,{row:_0x11c15,column:_0x45a60f}=_0xcda37b;if(_0x11c15>=this[_0x2cd06d(0x399)][_0x2cd06d(0x317)]&&_0x11c15<=this[_0x2cd06d(0x399)][_0x2cd06d(0x12e)]&&_0x45a60f>=this[_0x2cd06d(0x399)]['startColumn']&&_0x45a60f<=this[_0x2cd06d(0x399)][_0x2cd06d(0x3a9)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x377495){return!0x1;}[_0x12409a(0x1e6)](_0x239783){const _0x157af3=_0x12409a;_0x2433b1[_0x157af3(0x164)](_0x239783,{'width':this[_0x157af3(0x3bb)],'height':this['height'],'strokeWidth':eo,'stroke':this[_0x157af3(0x270)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x157af3(0x3a3)]&&(_0x239783[_0x157af3(0x36b)](),_0x239783['transform'](0x1,0x0,0x0,0x1,this[_0x157af3(0x3bb)],this['_labelPosition']==='bottom'?0x0:-$e),st[_0x157af3(0x164)](_0x239783,{'text':this[_0x157af3(0x220)],'color':this[_0x157af3(0x270)]}),_0x239783[_0x157af3(0x3ce)]());}}var so=Object[_0x12409a(0x1ee)],io=Object[_0x12409a(0xfe)],no=(_0x524155,_0x2f32d4,_0x38cf84,_0x5cc505)=>{for(var _0x35cec8=_0x5cc505>0x1?void 0x0:_0x5cc505?io(_0x2f32d4,_0x38cf84):_0x2f32d4,_0x3e566f=_0x524155['length']-0x1,_0x15b6fb;_0x3e566f>=0x0;_0x3e566f--)(_0x15b6fb=_0x524155[_0x3e566f])&&(_0x35cec8=(_0x5cc505?_0x15b6fb(_0x2f32d4,_0x38cf84,_0x35cec8):_0x15b6fb(_0x35cec8))||_0x35cec8);return _0x5cc505&&_0x35cec8&&so(_0x2f32d4,_0x38cf84,_0x35cec8),_0x35cec8;},gt=(_0x370cc8,_0x1c42f1)=>(_0x54fef4,_0x4985ff)=>_0x1c42f1(_0x54fef4,_0x4985ff,_0x370cc8);const ro=0x1389;let Pt=class extends _0x5d8701{constructor(_0x2d7f1f,_0x3f5d00,_0x569f38,_0x57250){const _0x4349ca=_0x12409a;super(),l(this,_0x4349ca(0x1eb),new Set()),l(this,_0x4349ca(0x20e),null),(this[_0x4349ca(0x232)]=_0x2d7f1f,this[_0x4349ca(0x1b1)]=_0x3f5d00,this[_0x4349ca(0x228)]=_0x569f38,this[_0x4349ca(0x153)]=_0x57250,this[_0x4349ca(0x2c3)]());}['_init'](){const _0x7acfbb=_0x12409a;this['_sheetSkeletonManagerService'][_0x7acfbb(0x29b)][_0x7acfbb(0x29f)](_0xeca24a(this[_0x7acfbb(0x394)]),_0x14c343(_0x4cbfd9=>{const _0x1f23ea=_0x7acfbb;if(_0x4cbfd9){const _0x5c6664=_0x4cbfd9[_0x1f23ea(0xda)];return _0x214399(this[_0x1f23ea(0x228)][_0x1f23ea(0x2d0)](this['_context'][_0x1f23ea(0x42e)]),this[_0x1f23ea(0x153)]['currentTheme$'])[_0x1f23ea(0x29f)](_0x123c40(([_0xc4a88e,_0x599b01])=>{const _0x11ab43=new Map();return _0xc4a88e['forEach']((_0x1e8df7,_0x234636)=>{const _0x5c85aa=_0x4bc7;if(_0x1e8df7[_0x5c85aa(0x291)]===_0x5c6664){const _0x461064={..._0x1e8df7};_0x461064[_0x5c85aa(0x216)]=_0x599b01[_0x1e8df7[_0x5c85aa(0x216)]],_0x11ab43[_0x5c85aa(0x28a)](_0x234636,_0x461064);}}),{'skeleton':_0x4cbfd9,'cursors':_0x11ab43};}));}return _0x303fa8({'skeleton':null,'cursors':new Map()});}))[_0x7acfbb(0x3c1)](({skeleton:_0x539244,cursors:_0x53c951})=>{this['_removeCollabCursors'](),_0x539244&&this['_updateCollabCursors'](_0x539244,_0x53c951);}),this[_0x7acfbb(0x1b1)]['currentSkeleton$'][_0x7acfbb(0x3c1)](_0x1cebab=>{const _0x1879dc=_0x7acfbb;if(_0x1cebab==null)return;const {skeleton:_0x1ecdc3}=_0x1cebab,{scene:_0x4f002e}=this[_0x1879dc(0x232)];_0x4f002e[_0x1879dc(0x388)][_0x1879dc(0x3d4)](_0x173224(_0x522b68=>{const _0x179ed2=_0x1879dc;var _0x261082,_0x5043c4;const {offsetX:_0x2dbd21,offsetY:_0x2ee6a7}=_0x522b68,{x:_0xa70a58,y:_0x1c3237}=_0x4f002e[_0x179ed2(0x17b)](_0x15e28a[_0x179ed2(0xce)]([_0x2dbd21,_0x2ee6a7])),{scaleX:_0x317707,scaleY:_0x41b920}=_0x4f002e[_0x179ed2(0x1aa)](),_0xf0589b=_0x4f002e[_0x179ed2(0x24a)](_0x178749[_0x179ed2(0x103)]),_0x4fcbd0=_0x4f002e[_0x179ed2(0x3fd)](_0x15e28a['FromArray']([_0xa70a58,_0x1c3237]),_0xf0589b),_0x1b3c51=_0x1ecdc3[_0x179ed2(0x14b)](_0x2dbd21,_0x2ee6a7,_0x317707,_0x41b920,_0x4fcbd0);((_0x261082=this['_lastPointer'])==null?void 0x0:_0x261082[_0x179ed2(0x195)])===_0x1b3c51[_0x179ed2(0x195)]&&((_0x5043c4=this[_0x179ed2(0x20e)])==null?void 0x0:_0x5043c4[_0x179ed2(0x202)])===_0x1b3c51[_0x179ed2(0x202)]||this[_0x179ed2(0x1eb)][_0x179ed2(0x20d)](_0x179c52=>{const _0x5c25cd=_0x179ed2;_0x179c52[_0x5c25cd(0x1f2)](_0x1b3c51);});},0x64));});}[_0x12409a(0x123)](_0x360a55,_0x170272){const _0x1d505d=_0x12409a;var _0x45058d;const _0x11673c=(_0x45058d=this[_0x1d505d(0x1b1)]['getCurrent']())==null?void 0x0:_0x45058d[_0x1d505d(0x246)];if(!_0x11673c)return;const _0x3ef0c6=this[_0x1d505d(0xe0)]();if(!_0x3ef0c6)return;this[_0x1d505d(0x1eb)][_0x1d505d(0x20d)](_0x302492=>{const _0x8f2f1f=_0x1d505d;_0x302492[_0x8f2f1f(0x193)]();});const {scene:_0x20f43f}=_0x3ef0c6,_0x44c1ae=oo(Array[_0x1d505d(0x25e)](_0x170272[_0x1d505d(0x131)]()))[_0x1d505d(0x110)](_0x564dd5=>{const {color:_0x40e0d8,range:_0x57c095,name:_0x321035,selection:_0x5bb822,sheetID:_0x37e59f}=_0x564dd5,{startColumn:_0x41c806,startRow:_0x203aab,endColumn:_0x31fdcb,endRow:_0x4f0841}=_0x57c095,_0x455fb7=_0x288960(_0x203aab,_0x41c806,_0x20f43f,_0x11673c),_0x424201=_0x288960(_0x4f0841,_0x31fdcb,_0x20f43f,_0x11673c),{columnHeaderHeightAndMarginTop:_0xf5d11e}=_0x11673c,{startX:_0x2d04f6,startY:_0x120d87}=_0x455fb7,{endX:_0x4ef2b1,endY:_0x5d29ea}=_0x424201,_0x1e59e3=_0x4ef2b1-_0x2d04f6,_0x3ea4dd=_0x5d29ea-_0x120d87,_0x3f2b6c={'labelPosition':_0x120d87-_0xf5d11e>=$e?'top':'bottom','sheetID':_0x37e59f,'range':_0x57c095,'color':_0x40e0d8,'name':_0x321035,'selection':_0x5bb822,'left':_0x2d04f6,'top':_0x120d87,'width':_0x1e59e3,'height':_0x3ea4dd,'evented':!0x1,'zIndex':ro};return new to(_0x321035,_0x3f2b6c);});_0x20f43f['addObjects'](_0x44c1ae,Qr),this[_0x1d505d(0x1eb)]=new Set(_0x44c1ae);}[_0x12409a(0x28b)](){const _0x4a42d4=_0x12409a;var _0x569fa5;(_0x569fa5=this['_cursors'])==null||_0x569fa5['forEach'](_0x450e67=>_0x450e67[_0x4a42d4(0x280)]());}[_0x12409a(0xe0)](){const _0x32dcd5=_0x12409a;return _0x62e069(this['_context']['unit'],this[_0x32dcd5(0x232)]);}};Pt=no([gt(0x1,_0x565e28(_0x44f148)),gt(0x2,_0x565e28(ve)),gt(0x3,_0x565e28(_0x376b1d))],Pt);function oo(_0x1103e6){const _0x32c75f=_0x12409a,_0x4c545e=new Map();return _0x1103e6['forEach'](_0x3cfa54=>{const _0x49a3bf=_0x4bc7;if(_0x4c545e[_0x49a3bf(0x128)](_0x3cfa54[_0x49a3bf(0x420)])){const _0xd1fa4e=_0x4c545e[_0x49a3bf(0x2d5)](_0x3cfa54[_0x49a3bf(0x420)]);_0xd1fa4e[_0x49a3bf(0x295)]+=',\x20'+_0x3cfa54['name'];}else _0x4c545e[_0x49a3bf(0x28a)](_0x3cfa54[_0x49a3bf(0x420)],_0x3cfa54);}),Array[_0x32c75f(0x25e)](_0x4c545e[_0x32c75f(0x131)]());}var N=function(){const _0x39f052=_0x12409a;return N=Object[_0x39f052(0x196)]||function(_0x136047){const _0x18cd3e=_0x39f052;for(var _0x52f734,_0x1ecf39=0x1,_0x3c053d=arguments['length'];_0x1ecf39<_0x3c053d;_0x1ecf39++){_0x52f734=arguments[_0x1ecf39];for(var _0xe4feeb in _0x52f734)Object[_0x18cd3e(0x37f)][_0x18cd3e(0x19f)][_0x18cd3e(0x1da)](_0x52f734,_0xe4feeb)&&(_0x136047[_0xe4feeb]=_0x52f734[_0xe4feeb]);}return _0x136047;},N[_0x39f052(0x3e2)](this,arguments);},ao=function(_0x308e99,_0x2a7b79){const _0x112717=_0x12409a;var _0x5531c2={};for(var _0x306f45 in _0x308e99)Object[_0x112717(0x37f)][_0x112717(0x19f)][_0x112717(0x1da)](_0x308e99,_0x306f45)&&_0x2a7b79[_0x112717(0x2c1)](_0x306f45)<0x0&&(_0x5531c2[_0x306f45]=_0x308e99[_0x306f45]);if(_0x308e99!=null&&typeof Object['getOwnPropertySymbols']==_0x112717(0x294)){for(var _0x43133c=0x0,_0x306f45=Object[_0x112717(0x130)](_0x308e99);_0x43133c<_0x306f45['length'];_0x43133c++)_0x2a7b79[_0x112717(0x2c1)](_0x306f45[_0x43133c])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x112717(0x1da)](_0x308e99,_0x306f45[_0x43133c])&&(_0x5531c2[_0x306f45[_0x43133c]]=_0x308e99[_0x306f45[_0x43133c]]);}return _0x5531c2;},Yt=_0x4249ce(function(_0x34d6a3,_0x3bb340){const _0xe1d7b9=_0x12409a;var _0x8c8582=_0x34d6a3['icon'],_0x39b9e1=_0x34d6a3['id'],_0x399c1a=_0x34d6a3[_0xe1d7b9(0x28f)],_0x3252e7=_0x34d6a3[_0xe1d7b9(0x27c)],_0x1e4d8a=ao(_0x34d6a3,[_0xe1d7b9(0x18e),'id','className',_0xe1d7b9(0x27c)]),_0x1a7550=_0xe1d7b9(0x120)[_0xe1d7b9(0x1bf)](_0x39b9e1,'\x20')['concat'](_0x399c1a||'')[_0xe1d7b9(0x14c)](),_0xaef304=_0x499775('_'[_0xe1d7b9(0x1bf)](lo()));return Gs(_0x8c8582,''[_0xe1d7b9(0x1bf)](_0x39b9e1),{'defIds':_0x8c8582[_0xe1d7b9(0x1bc)],'idSuffix':_0xaef304[_0xe1d7b9(0x30d)]},N({'ref':_0x3bb340,'className':_0x1a7550},_0x1e4d8a),_0x3252e7);});function Gs(_0x5e9254,_0x43beaf,_0x2e1f9a,_0x45af9f,_0x4ecf2c){const _0x5470f7=_0x12409a;return _0x50fdbf(_0x5e9254[_0x5470f7(0x269)],N(N({'key':_0x43beaf},co(_0x5e9254,_0x2e1f9a,_0x4ecf2c)),_0x45af9f),(ho(_0x5e9254,_0x2e1f9a)[_0x5470f7(0x224)]||[])[_0x5470f7(0x110)](function(_0x234946,_0x35bf54){const _0xd16fd5=_0x5470f7;return Gs(_0x234946,''['concat'](_0x43beaf,'-')['concat'](_0x5e9254[_0xd16fd5(0x269)],'-')['concat'](_0x35bf54),_0x2e1f9a,void 0x0,_0x4ecf2c);}));}function co(_0x118b92,_0x396ad8,_0x1577e2){const _0x365571=_0x12409a;var _0x329fe0=N({},_0x118b92[_0x365571(0x249)]);_0x1577e2!=null&&_0x1577e2[_0x365571(0x3f2)]&&_0x329fe0[_0x365571(0x19d)]===_0x365571(0x3f2)&&(_0x329fe0[_0x365571(0x19d)]=_0x1577e2['colorChannel1']);var _0x58c963=_0x396ad8[_0x365571(0x1bc)];return!_0x58c963||_0x58c963[_0x365571(0x3b7)]===0x0||(_0x118b92[_0x365571(0x269)]===_0x365571(0x17a)&&_0x329fe0[_0x365571(0xff)]&&(_0x329fe0[_0x365571(0xff)]=_0x329fe0[_0x365571(0xff)]+_0x396ad8['idSuffix']),Object[_0x365571(0x13c)](_0x329fe0)['forEach'](function(_0x5913d9){const _0x350507=_0x365571;var _0x3e5cdd=_0x5913d9[0x0],_0x36b2a6=_0x5913d9[0x1];typeof _0x36b2a6==_0x350507(0x213)&&(_0x329fe0[_0x3e5cdd]=_0x36b2a6[_0x350507(0x221)](/url\(#(.*)\)/,_0x350507(0x1f5)[_0x350507(0x1bf)](_0x396ad8[_0x350507(0x37a)],')')));})),_0x329fe0;}function ho(_0x42428d,_0x505a84){const _0x1657a0=_0x12409a;var _0x13dc2e,_0x283a43=_0x505a84[_0x1657a0(0x1bc)];return!_0x283a43||_0x283a43[_0x1657a0(0x3b7)]===0x0?_0x42428d:_0x42428d[_0x1657a0(0x269)]==='defs'&&(!((_0x13dc2e=_0x42428d[_0x1657a0(0x224)])===null||_0x13dc2e===void 0x0)&&_0x13dc2e[_0x1657a0(0x3b7)])?N(N({},_0x42428d),{'children':_0x42428d['children'][_0x1657a0(0x110)](function(_0x113723){const _0x25fd71=_0x1657a0;return typeof _0x113723[_0x25fd71(0x249)]['id']==_0x25fd71(0x213)&&_0x283a43&&_0x283a43[_0x25fd71(0x2c1)](_0x113723[_0x25fd71(0x249)]['id'])>-0x1?N(N({},_0x113723),{'attrs':N(N({},_0x113723['attrs']),{'id':_0x113723['attrs']['id']+_0x505a84[_0x25fd71(0x37a)]})}):_0x113723;})}):_0x42428d;}function lo(){const _0x3fc38f=_0x12409a;return Math[_0x3fc38f(0x424)]()[_0x3fc38f(0x226)](0x24)[_0x3fc38f(0x283)](0x2,0x8);}Yt[_0x12409a(0x2d4)]=_0x12409a(0x174);var _o={'tag':_0x12409a(0x1a0),'attrs':{'fill':'none','viewBox':_0x12409a(0x10f),'width':_0x12409a(0xb2),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x12409a(0x339)},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'stroke':_0x12409a(0xd8),'d':_0x12409a(0x404),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x12409a(0x109),'attrs':{},'children':[{'tag':_0x12409a(0x14a),'attrs':{'id':_0x12409a(0x2af)},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'fill':_0x12409a(0x1fc),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x12409a(0x2af)]},Ys=_0x4249ce(function(_0x30bb92,_0x17d398){const _0x43eedc=_0x12409a;return _0x50fdbf(Yt,Object[_0x43eedc(0x196)]({},_0x30bb92,{'id':'off-line-single','ref':_0x17d398,'icon':_o}));});Ys[_0x12409a(0x2d4)]=_0x12409a(0x357);var uo={'tag':_0x12409a(0x1a0),'attrs':{'fill':_0x12409a(0x264),'viewBox':_0x12409a(0x30e),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'stroke':'currentColor','d':_0x12409a(0x298),'strokeLinecap':_0x12409a(0x133),'strokeLinejoin':_0x12409a(0x133),'strokeWidth':1.2}}]},{'tag':_0x12409a(0x109),'attrs':{},'children':[{'tag':_0x12409a(0x14a),'attrs':{'id':_0x12409a(0x2a4)},'children':[{'tag':_0x12409a(0x1c6),'attrs':{'fill':_0x12409a(0x1fc),'d':_0x12409a(0x1ba),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Ks=_0x4249ce(function(_0x1931f0,_0x16566c){const _0x278665=_0x12409a;return _0x50fdbf(Yt,Object[_0x278665(0x196)]({},_0x1931f0,{'id':_0x278665(0x361),'ref':_0x16566c,'icon':uo}));});Ks[_0x12409a(0x2d4)]='OnLineSingle';function Xs(_0x2d5d60){const _0x3f8be0=_0x12409a;var _0x1b575c,_0x12e6df,_0x500f47='';if(typeof _0x2d5d60==_0x3f8be0(0x213)||typeof _0x2d5d60=='number')_0x500f47+=_0x2d5d60;else{if(typeof _0x2d5d60==_0x3f8be0(0x199)){if(Array[_0x3f8be0(0x36f)](_0x2d5d60)){var _0x3581a0=_0x2d5d60[_0x3f8be0(0x3b7)];for(_0x1b575c=0x0;_0x1b575c<_0x3581a0;_0x1b575c++)_0x2d5d60[_0x1b575c]&&(_0x12e6df=Xs(_0x2d5d60[_0x1b575c]))&&(_0x500f47&&(_0x500f47+='\x20'),_0x500f47+=_0x12e6df);}else{for(_0x12e6df in _0x2d5d60)_0x2d5d60[_0x12e6df]&&(_0x500f47&&(_0x500f47+='\x20'),_0x500f47+=_0x12e6df);}}}return _0x500f47;}function fo(){const _0x2cee36=_0x12409a;for(var _0x419e45,_0xad8383,_0x1142c0=0x0,_0xbaa722='',_0x487bcd=arguments[_0x2cee36(0x3b7)];_0x1142c0<_0x487bcd;_0x1142c0++)(_0x419e45=arguments[_0x1142c0])&&(_0xad8383=Xs(_0x419e45))&&(_0xbaa722&&(_0xbaa722+='\x20'),_0xbaa722+=_0xad8383);return _0xbaa722;}const mo=_0x12409a(0x1d4),go=_0x12409a(0xed),So='univer-online-status',po=_0x12409a(0x149),vo=_0x12409a(0x23e),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x4beb1){const _0x9d0745=_0x12409a;switch(_0x4beb1){case P[_0x9d0745(0x108)]:return _0x9d0745(0x36c);case P[_0x9d0745(0x197)]:return _0x9d0745(0x12b);case P[_0x9d0745(0x3a4)]:return _0x9d0745(0x2c8);case P[_0x9d0745(0x3ee)]:return _0x9d0745(0x2a9);case P[_0x9d0745(0x12f)]:case P[_0x9d0745(0x3d8)]:case P['AWAITING_WITH_PENDING']:return _0x9d0745(0x139);case P[_0x9d0745(0x42b)]:return _0x9d0745(0x3d2);}}function Eo(_0x59da93){const _0x5bfd78=_0x12409a,{status$:_0xb61335}=_0x59da93,_0x54cdd4=_0xec0688(_0xb61335,P[_0x5bfd78(0x3ee)]),_0x342dcf=_0x4a37c6(_0x128cab),_0x2309c8=_0x4a37c6(he),_0x2eb455=_0x54cdd4!==P[_0x5bfd78(0x108)],_0x33a1ea=_0x342dcf['t'](Io(_0x54cdd4)),_0x3557b2=fo(Pe[_0x5bfd78(0x40e)],{[Pe[_0x5bfd78(0x21f)]]:_0x2eb455,[Pe['offline']]:!_0x2eb455}),_0x272c52=_0x2eb455?_0x1fd77a[_0x5bfd78(0x105)](Ks,null):_0x1fd77a[_0x5bfd78(0x105)](Ys,null),_0x12c284=_0x5136b8(()=>{const _0x4684be=_0x5bfd78;_0x2eb455||_0x2309c8[_0x4684be(0x33d)]();},[_0x2eb455,_0x2309c8]);function _0x106df8(){const _0x2c0fb1=_0x5bfd78;return _0x1fd77a[_0x2c0fb1(0x105)](_0x2c0fb1(0x2f5),{'className':_0x3557b2,'onClick':_0x12c284},_0x1fd77a[_0x2c0fb1(0x105)](_0x2c0fb1(0x2f5),{'className':Pe[_0x2c0fb1(0x21e)]},_0x272c52),_0x1fd77a['createElement'](_0x2c0fb1(0x2f5),{'className':Pe[_0x2c0fb1(0xc0)]},_0x33a1ea));}return _0x2eb455?_0x106df8():_0x1fd77a[_0x5bfd78(0x105)](_0x5a45cb,{'title':_0x342dcf['t'](_0x5bfd78(0x21c))},_0x106df8());}var Co=Object['defineProperty'],bo=Object[_0x12409a(0xfe)],To=(_0x44fb23,_0x3f1767,_0x1399d4,_0x2124c7)=>{const _0x432cf8=_0x12409a;for(var _0x11998f=_0x2124c7>0x1?void 0x0:_0x2124c7?bo(_0x3f1767,_0x1399d4):_0x3f1767,_0x41364a=_0x44fb23[_0x432cf8(0x3b7)]-0x1,_0x598bc3;_0x41364a>=0x0;_0x41364a--)(_0x598bc3=_0x44fb23[_0x41364a])&&(_0x11998f=(_0x2124c7?_0x598bc3(_0x3f1767,_0x1399d4,_0x11998f):_0x598bc3(_0x11998f))||_0x11998f);return _0x2124c7&&_0x11998f&&Co(_0x3f1767,_0x1399d4,_0x11998f),_0x11998f;},Be=(_0xbf4ac6,_0x33e77c)=>(_0x47376a,_0x294764)=>_0x33e77c(_0x47376a,_0x294764,_0xbf4ac6);let Me=class extends _0x1efbc8{constructor(_0x4c9b76,_0x44e0be,_0x2175fa,_0x1f5af5){const _0x5dad5c=_0x12409a;super(),l(this,_0x5dad5c(0x148),new _0x30f2ca(P['NOT_COLLAB'])),(this[_0x5dad5c(0x392)]=_0x4c9b76,this[_0x5dad5c(0x286)]=_0x44e0be,this[_0x5dad5c(0x26a)]=_0x2175fa,this[_0x5dad5c(0x299)]=_0x1f5af5,this[_0x5dad5c(0x162)](),this[_0x5dad5c(0x201)]());}[_0x12409a(0x201)](){const _0x526744=_0x12409a;this[_0x526744(0x2f2)](this[_0x526744(0x392)][_0x526744(0xc1)][_0x526744(0x29f)](_0x3fba78(()=>{const _0x324ea1=_0x526744,_0x307b58=this[_0x324ea1(0x392)]['getFocusedUnit']();return _0x307b58?this[_0x324ea1(0x299)][_0x324ea1(0x34d)](_0x307b58[_0x324ea1(0xe4)]()):_0x303fa8(null);}),_0x3fba78(_0x3125a7=>_0x3125a7?_0x3125a7['status$']:_0x303fa8(P[_0x526744(0x3ee)])))[_0x526744(0x3c1)](_0x516df0=>{const _0x33ca1d=_0x526744;this[_0x33ca1d(0x148)]['next'](_0x516df0);}));}[_0x12409a(0x162)](){const _0x5f4fc9=_0x12409a;this[_0x5f4fc9(0x2f2)](this[_0x5f4fc9(0x286)][_0x5f4fc9(0x418)](_0xc250c8['HEADER_MENU'],()=>_0x56c2b6(Ro({'status$':this[_0x5f4fc9(0x148)][_0x5f4fc9(0x142)]()}),this['_injector'])));}};Me=To([Be(0x0,_0x114f27),Be(0x1,_0x2892a4),Be(0x2,_0x565e28(_0x3f178c)),Be(0x3,_0x565e28(Le))],Me);function Ro(_0x564add){const {status$:_0x465b2c}=_0x564add;return function(){const _0x3fb8b0=_0x4bc7;return _0x1fd77a[_0x3fb8b0(0x105)](Eo,{'status$':_0x465b2c});};}const qs=_0x2fc4d3(_0x12409a(0x159));var Oo=Object[_0x12409a(0x1ee)],Do=Object['getOwnPropertyDescriptor'],wo=(_0x5a913c,_0x30dcd0,_0x564c23,_0x410b29)=>{for(var _0x3435b4=_0x410b29>0x1?void 0x0:_0x410b29?Do(_0x30dcd0,_0x564c23):_0x30dcd0,_0x1c5d78=_0x5a913c['length']-0x1,_0x96f8e7;_0x1c5d78>=0x0;_0x1c5d78--)(_0x96f8e7=_0x5a913c[_0x1c5d78])&&(_0x3435b4=(_0x410b29?_0x96f8e7(_0x30dcd0,_0x564c23,_0x3435b4):_0x96f8e7(_0x3435b4))||_0x3435b4);return _0x410b29&&_0x3435b4&&Oo(_0x30dcd0,_0x564c23,_0x3435b4),_0x3435b4;},ge=(_0x101830,_0x39dc85)=>(_0x31f6cc,_0x478d7c)=>_0x39dc85(_0x31f6cc,_0x478d7c,_0x101830);let Je=class extends _0x5d8701{constructor(_0x2f2011,_0x3ccce9,_0x22515f,_0x1937d5,_0x1ceb2b,_0x2a665b){const _0x1a2dba=_0x12409a;super(),this[_0x1a2dba(0x2b3)]=_0x2f2011,this[_0x1a2dba(0x24e)]=_0x3ccce9,this['_commandService']=_0x22515f,this[_0x1a2dba(0x2f8)]=_0x1937d5,this['_snapshotService']=_0x1ceb2b,_0x2a665b?_0x2a665b==null||_0x2a665b['whenReady']()[_0x1a2dba(0x403)](()=>this[_0x1a2dba(0x2c3)]()):(this['_logService'][_0x1a2dba(0x318)](_0x1a2dba(0x169),_0x1a2dba(0xf8)),this['_init']());}async[_0x12409a(0x2c3)](){const _0x103c76=_0x12409a,_0x4ab509=this[_0x103c76(0x2b3)][_0x103c76(0x235)](_0x103c76(0x32a)),_0x6693f7=this['_urlService'][_0x103c76(0x235)]('type');if(!_0x4ab509||!_0x6693f7){this['_logService'][_0x103c76(0x318)](_0x103c76(0x169),_0x103c76(0x390));return;}switch(Number(_0x6693f7)){case k[_0x103c76(0x1e2)]:{const _0x4bd3ec=await this['_loadSheet'](_0x4ab509);this[_0x103c76(0x28c)](_0x4bd3ec);break;}case k[_0x103c76(0x15b)]:{await this['_loadDoc'](_0x4ab509);break;}default:{this['_logService'][_0x103c76(0x2d7)](_0x103c76(0x169),_0x103c76(0x28e));break;}}}async[_0x12409a(0x28c)](_0x2f319b){const _0x48ae08=_0x12409a;await this[_0x48ae08(0x2c6)](_0x2f319b),_0x2f319b[_0x48ae08(0xbb)][_0x48ae08(0x29f)](_0x2d78ee(this[_0x48ae08(0x394)]))['subscribe'](_0x596a1f=>{const _0x3b193a=_0x48ae08;_0x596a1f&&this[_0x3b193a(0x16e)](_0x596a1f);}),this['_urlService'][_0x48ae08(0x425)]['pipe'](_0x2d78ee(this['dispose$']))['subscribe'](()=>this[_0x48ae08(0x2c6)](_0x2f319b));}[_0x12409a(0x16e)](_0x3adc84,_0x2a8220=!0x1){const _0x13541b=_0x12409a,_0x430e14=this[_0x13541b(0x2b3)][_0x13541b(0x235)]('subunit');_0x3adc84[_0x13541b(0x25f)]()!==_0x430e14&&this[_0x13541b(0x2b3)][_0x13541b(0x3d3)](_0x13541b(0x28d),_0x3adc84[_0x13541b(0x25f)](),_0x2a8220);}async[_0x12409a(0x2c6)](_0x3fa4f){const _0xef89c3=_0x12409a;var _0x3b7f81;const _0xd3d943=this['_urlService']['getParam'](_0xef89c3(0x28d));if(!_0xd3d943||!_0x3fa4f[_0xef89c3(0x208)](_0xd3d943)){const _0x2cbaa8=_0x3fa4f[_0xef89c3(0x180)]()[0x0],_0x25b901=_0x3fa4f['getSheetBySheetId'](_0x2cbaa8);if(!_0x25b901)return;this['_updateURLWithCurrentState'](_0x25b901,!0x0),await this[_0xef89c3(0x3fa)][_0xef89c3(0x155)](_0x7b97d2['id'],{'unitId':_0x3fa4f[_0xef89c3(0xe4)](),'subUnitId':_0x2cbaa8});return;}((_0x3b7f81=_0x3fa4f[_0xef89c3(0x140)]())==null?void 0x0:_0x3b7f81[_0xef89c3(0x25f)]())!==_0xd3d943&&await this[_0xef89c3(0x3fa)][_0xef89c3(0x155)](_0x7b97d2['id'],{'unitId':_0x3fa4f['getUnitId'](),'subUnitId':_0xd3d943});}async['_loadSheet'](_0x23fc71){const _0x2ce62f=_0x12409a;let _0x870cb5=0x0;const _0x51290e=await this['_localCacheService'][_0x2ce62f(0x1f0)](_0x23fc71);return _0x51290e&&(_0x51290e[_0x2ce62f(0x210)]||_0x51290e[_0x2ce62f(0x1b8)][_0x2ce62f(0x3b7)]!==0x0)&&(_0x870cb5=_0x51290e[_0x2ce62f(0x192)]),_0x870cb5===0x0&&this['_logService']['debug'](_0x2ce62f(0x169),_0x2ce62f(0x1e4)),this['_snapshotService'][_0x2ce62f(0x3ba)](_0x23fc71,_0x870cb5);}async[_0x12409a(0x30f)](_0x113987){const _0x130916=_0x12409a;let _0x33655f=0x0;const _0x393451=await this[_0x130916(0x2f8)][_0x130916(0x1f0)](_0x113987);return _0x393451&&(_0x393451[_0x130916(0x210)]||_0x393451[_0x130916(0x1b8)][_0x130916(0x3b7)]!==0x0)&&(_0x33655f=_0x393451[_0x130916(0x192)]),_0x33655f===0x0&&this[_0x130916(0x24e)][_0x130916(0x318)](_0x130916(0x169),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x130916(0x263)]['loadDoc'](_0x113987,_0x33655f);}};Je=wo([ge(0x0,qs),ge(0x1,_0x2fef42),ge(0x2,_0x2af4cf),ge(0x3,_0x565e28(w)),ge(0x4,_0x565e28(_0x32ca9e)),ge(0x5,_0x1a9909(_0x5e7134))],Je);var Po=Object[_0x12409a(0x1ee)],yo=Object[_0x12409a(0xfe)],Uo=(_0x47d933,_0x1c3189,_0x3f0b39,_0x2abee6)=>{const _0x14d68b=_0x12409a;for(var _0x3a8617=_0x2abee6>0x1?void 0x0:_0x2abee6?yo(_0x1c3189,_0x3f0b39):_0x1c3189,_0x2c7f9a=_0x47d933[_0x14d68b(0x3b7)]-0x1,_0x22333c;_0x2c7f9a>=0x0;_0x2c7f9a--)(_0x22333c=_0x47d933[_0x2c7f9a])&&(_0x3a8617=(_0x2abee6?_0x22333c(_0x1c3189,_0x3f0b39,_0x3a8617):_0x22333c(_0x3a8617))||_0x3a8617);return _0x2abee6&&_0x3a8617&&Po(_0x1c3189,_0x3f0b39,_0x3a8617),_0x3a8617;},Ss=(_0x393e06,_0x1ea9e)=>(_0x505e46,_0x2d69d2)=>_0x1ea9e(_0x505e46,_0x2d69d2,_0x393e06);const No=_0x12409a(0x3ad),Mo=_0x12409a(0x3f9);let ze=class extends _0x1efbc8{constructor(_0x1fb587,_0x312199){const _0x52f987=_0x12409a;super(),this[_0x52f987(0x392)]=_0x1fb587,this['_configService']=_0x312199,this[_0x52f987(0x2c3)]();}[_0x12409a(0x2c3)](){const _0x19a341=_0x12409a;this['disposeWithMe'](this['_univerInstanceService'][_0x19a341(0xc1)][_0x19a341(0x3c1)](()=>{const _0x2292bd=_0x19a341;var _0x4a937d;const _0x1efd53=this[_0x2292bd(0x392)]['getFocusedUnit']();let _0x503395=(_0x4a937d=this['_configService']['getConfig'](No))!=null?_0x4a937d:Mo;_0x1efd53 instanceof _0x4c9bc9&&(_0x503395=_0x1efd53[_0x2292bd(0x295)]),document['title']=_0x503395;}));}};ze=Uo([Ss(0x0,_0x114f27),Ss(0x1,_0x301e4e)],ze);var Ao=Object[_0x12409a(0x1ee)],Lo=Object[_0x12409a(0xfe)],$o=(_0x6f74af,_0x12e6a0,_0x400edf,_0x577cde)=>{const _0x1eae24=_0x12409a;for(var _0x2c68a8=_0x577cde>0x1?void 0x0:_0x577cde?Lo(_0x12e6a0,_0x400edf):_0x12e6a0,_0x2a50a3=_0x6f74af[_0x1eae24(0x3b7)]-0x1,_0x5a1499;_0x2a50a3>=0x0;_0x2a50a3--)(_0x5a1499=_0x6f74af[_0x2a50a3])&&(_0x2c68a8=(_0x577cde?_0x5a1499(_0x12e6a0,_0x400edf,_0x2c68a8):_0x5a1499(_0x2c68a8))||_0x2c68a8);return _0x577cde&&_0x2c68a8&&Ao(_0x12e6a0,_0x400edf,_0x2c68a8),_0x2c68a8;},St=(_0xf43841,_0x5cbb1a)=>(_0x147adc,_0x5e5ed3)=>_0x5cbb1a(_0x147adc,_0x5e5ed3,_0xf43841);let Ze=class{constructor(_0x21f919,_0x120611,_0x3c1c7c){const _0x394905=_0x12409a;this[_0x394905(0x150)]=_0x21f919,this[_0x394905(0x2bf)]=_0x120611,this[_0x394905(0x27f)]=_0x3c1c7c,this['init']();}[_0x12409a(0x138)](){const _0xb5c788=_0x12409a;this[_0xb5c788(0x2bf)][_0xb5c788(0x18d)]({'priority':0x1,'interceptor':(_0x2b3893,_0x2f199f)=>_0x2f199f(_0x2b3893)[_0xb5c788(0x29f)](_0x5d8791(async _0x33984f=>{const _0x504ca0=_0xb5c788,_0x23b529=_0x33984f;if(_0x23b529[_0x504ca0(0x39e)]===0x191&&window[_0x504ca0(0x25b)](this[_0x504ca0(0x27f)]['t'](_0x504ca0(0x276)))){const _0x1f43f1=window['encodeURIComponent'](window['location'][_0x504ca0(0x3b5)]);window[_0x504ca0(0x313)][_0x504ca0(0x3b5)]=this[_0x504ca0(0x15c)]()+_0x504ca0(0x1c9)+_0x1f43f1;}return _0x23b529;}))});}['_getLoginPath'](){const _0x205480=_0x12409a;var _0x2a3f9d,_0x56e07d;const _0x386ea5=this[_0x205480(0x150)][_0x205480(0x312)](Nn),_0xb2e1d=this[_0x205480(0x150)][_0x205480(0x312)]($);return(_0x56e07d=(_0x2a3f9d=_0xb2e1d==null?void 0x0:_0xb2e1d[_0x205480(0x194)])!=null?_0x2a3f9d:_0x386ea5)!=null?_0x56e07d:Mn;}};Ze=$o([St(0x0,_0x301e4e),St(0x1,_0x565e28(_0x1a28a3)),St(0x2,_0x565e28(_0x128cab))],Ze);var jo=Object[_0x12409a(0x1ee)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x5c9a2e,_0x24b778,_0x35f4e0,_0x1abfb1)=>{const _0x2ffe97=_0x12409a;for(var _0x323b3e=_0x1abfb1>0x1?void 0x0:_0x1abfb1?xo(_0x24b778,_0x35f4e0):_0x24b778,_0x1f2ed8=_0x5c9a2e[_0x2ffe97(0x3b7)]-0x1,_0x40bec8;_0x1f2ed8>=0x0;_0x1f2ed8--)(_0x40bec8=_0x5c9a2e[_0x1f2ed8])&&(_0x323b3e=(_0x1abfb1?_0x40bec8(_0x24b778,_0x35f4e0,_0x323b3e):_0x40bec8(_0x323b3e))||_0x323b3e);return _0x1abfb1&&_0x323b3e&&jo(_0x24b778,_0x35f4e0,_0x323b3e),_0x323b3e;},ps=(_0x5b9756,_0x2d7e7a)=>(_0x4dd9a4,_0x26f706)=>_0x2d7e7a(_0x4dd9a4,_0x26f706,_0x5b9756);const ko='AUTHZ_URL_KEY',Bo=_0x12409a(0x1f3);let yt=class extends _0x1efbc8{constructor(_0x5c1481,_0xdd0c07){const _0x3c7511=_0x12409a;super(),this['_HTTPService']=_0x5c1481,this[_0x3c7511(0x150)]=_0xdd0c07,this['_initMergeInterceptor']();}[_0x12409a(0x292)](){const _0xe4fb5a=_0x12409a,_0x3bcc00=this;this['disposeWithMe'](this[_0xe4fb5a(0x2be)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x3b04fe({'isMatch'(_0x3999da){const _0x4fa195=_0xe4fb5a;var _0xcc84;if(_0x3999da[_0x4fa195(0x1cc)]===_0x4fa195(0x38b)&&((_0xcc84=_0x3999da[_0x4fa195(0xf7)])!=null&&_0xcc84[_0x4fa195(0x3b8)])){const {objectID:_0x1697fa,objectType:_0x3958fe}=_0x3999da[_0x4fa195(0xf7)][_0x4fa195(0x3b8)]||{};if(!_0x1697fa||_0x3958fe===void 0x0)return!0x1;const _0x4dd060=_0x3bcc00[_0x4fa195(0x22c)]()+'/'+_0x3958fe+'/object/'+_0x1697fa+_0x4fa195(0xcd);if(_0x3999da[_0x4fa195(0x236)]===_0x4dd060)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x15ecf6){const _0x1f34d7=_0xe4fb5a;var _0x5c3c8e;return(_0x5c3c8e=_0x15ecf6[_0x1f34d7(0xf7)])==null?void 0x0:_0x5c3c8e[_0x1f34d7(0x3b8)];},'mergeParamsToRequest'(_0xee3b51,_0x47cb08){const _0x284288=_0xe4fb5a,_0x367e7a=_0x3bcc00[_0x284288(0x22c)]()+'/-/object/-/batch_allowed',_0x2a78e0=_0xee3b51[_0x284288(0xb0)]((_0x59eaa5,_0x1da4a8)=>{const _0x36947d=_0x284288,{unitID:_0x154a33,objectID:_0x32dff9,objectType:_0x11f281,actions:_0x3c6148}=_0x1da4a8;return _0x59eaa5[_0x154a33]||(_0x59eaa5[_0x154a33]={}),_0x59eaa5[_0x154a33][_0x32dff9]||(_0x59eaa5[_0x154a33][_0x32dff9]={'objectID':_0x32dff9,'objectType':_0x11f281,'actions':[]}),_0x59eaa5[_0x154a33][_0x32dff9][_0x36947d(0x353)][_0x36947d(0x325)](..._0x3c6148),_0x59eaa5;},{}),_0xe558a9=[];for(const _0x35c313 in _0x2a78e0)for(const _0x3bcaf5 in _0x2a78e0[_0x35c313]){const {actions:_0x50d762,objectType:_0x2ada30}=_0x2a78e0[_0x35c313][_0x3bcaf5],_0x2c4516=[...new Set(_0x50d762)];_0xe558a9[_0x284288(0x325)]({'unitID':_0x35c313,'objectID':_0x3bcaf5,'objectType':_0x2ada30,'actions':_0x2c4516});}return new _0x369bef(_0x284288(0x38b),_0x367e7a,{'headers':_0x47cb08[_0x284288(0x2f4)],'withCredentials':_0x47cb08[_0x284288(0x422)],'responseType':_0x47cb08['responseType'],'body':{'requests':_0xe558a9}});}},{'distributeResult'(_0x1c4875,_0x1a2ebc){const _0x52f9cb=_0xe4fb5a,{objectActions:_0x429ab4}=_0x1c4875;return _0x1a2ebc[_0x52f9cb(0x110)](_0x2e2eff=>{const _0x14a984=_0x52f9cb,{unitID:_0x1c50fb,objectID:_0x81c03,actions:_0x2c622a}=_0x2e2eff,_0x5a6aeb=_0x429ab4['find'](_0x1ab34b=>_0x1ab34b['unitID']===_0x1c50fb&&_0x1ab34b[_0x14a984(0x189)]===_0x81c03),_0x225a06=_0x2c622a[_0x14a984(0x110)](_0x101bcf=>_0x5a6aeb==null?void 0x0:_0x5a6aeb['actions'][_0x14a984(0x297)](_0x4a15ac=>_0x4a15ac[_0x14a984(0x304)]===_0x101bcf))[_0x14a984(0x101)](_0x54d1a3=>!!_0x54d1a3);return{'config':_0x2e2eff,'result':{'actions':_0x225a06,'error':_0x1c4875[_0x14a984(0x2d7)]}};});}})}));}[_0x12409a(0x22c)](){const _0x7e88d2=_0x12409a;var _0x54b635,_0x3da668;const _0x177d8a=this['_configService']['getConfig'](ko),_0x4faaa7=this[_0x7e88d2(0x150)]['getConfig']($);return(_0x3da668=(_0x54b635=_0x4faaa7==null?void 0x0:_0x4faaa7[_0x7e88d2(0x3da)])!=null?_0x54b635:_0x177d8a)!=null?_0x3da668:Bo;}async[_0x12409a(0xe6)](_0x2de0e6){const _0x51cf76=_0x12409a,_0x2ddca8=this['_getAPIPrefixPath']()+'/'+_0x2de0e6['objectType']+_0x51cf76(0x116);return(await this[_0x51cf76(0x2be)]['post'](_0x2ddca8,{'body':_0x2de0e6}))['body'][_0x51cf76(0x189)]||'';}async[_0x12409a(0x177)](_0x220fa6){const _0x43d932=_0x12409a,_0x326c39=this[_0x43d932(0x22c)]()+_0x43d932(0x2cf);return(await this[_0x43d932(0x2be)][_0x43d932(0x1b4)](_0x326c39,{'body':_0x220fa6}))[_0x43d932(0x3b8)][_0x43d932(0x1d1)];}async['update'](_0x2286cd){const _0x15ab74=_0x12409a,_0x2acdc2=this[_0x15ab74(0x22c)]()+'/'+_0x2286cd['objectType']+_0x15ab74(0x26b)+_0x2286cd['objectID'];await this['_HTTPService'][_0x15ab74(0x362)](_0x2acdc2,{'body':_0x2286cd});}async[_0x12409a(0x1e1)](_0x1bada8){const _0x4b5bc2=_0x12409a,_0x46a67f=this['_getAPIPrefixPath']()+'/'+_0x1bada8[_0x4b5bc2(0x305)]+'/object/'+_0x1bada8[_0x4b5bc2(0x189)]+_0x4b5bc2(0xcd);return(await this[_0x4b5bc2(0x2be)][_0x4b5bc2(0x1b4)](_0x46a67f,{'body':_0x1bada8}))['body'][_0x4b5bc2(0x353)];}async[_0x12409a(0x36d)](_0x4ed7ff){const _0x1234db=_0x12409a,_0x5d7518=this[_0x1234db(0x22c)]()+'/-/object/-/batch_allowed';return(await this[_0x1234db(0x2be)][_0x1234db(0x1b4)](_0x5d7518,{'body':{'requests':_0x4ed7ff}}))[_0x1234db(0x3b8)][_0x1234db(0x405)];}async['listRoles'](_0xcd4503){const _0x10fd18=_0x12409a,_0x167475=this[_0x10fd18(0x22c)]()+'/'+_0xcd4503[_0x10fd18(0x305)]+_0x10fd18(0x386),_0x5e057d=await this[_0x10fd18(0x2be)][_0x10fd18(0x1b4)](_0x167475,{'body':_0xcd4503});return{'roles':_0x5e057d[_0x10fd18(0x3b8)][_0x10fd18(0xeb)],'actions':_0x5e057d['body'][_0x10fd18(0x353)]};}async['deleteCollaborator'](_0x446414){const _0x4b8c78=_0x12409a,_0xa473b1=this[_0x4b8c78(0x22c)]()+_0x4b8c78(0x11c);await this[_0x4b8c78(0x2be)][_0x4b8c78(0xf3)](_0xa473b1,{'params':{'collaboratorID':_0x446414[_0x4b8c78(0x14e)],'objectID':_0x446414[_0x4b8c78(0x189)],'unitID':_0x446414[_0x4b8c78(0x2fd)]}});}async[_0x12409a(0x347)](_0x2c73be){const _0x2eb069=_0x12409a,_0x595909=this[_0x2eb069(0x22c)]()+_0x2eb069(0x11c);await this[_0x2eb069(0x2be)][_0x2eb069(0x13a)](_0x595909,{'body':_0x2c73be});}async[_0x12409a(0x31d)](_0x20b060){const _0x48f8eb=_0x12409a,_0x5820ea=this[_0x48f8eb(0x22c)]()+'/collaborator';await this[_0x48f8eb(0x2be)][_0x48f8eb(0x1b4)](_0x5820ea,{'body':_0x20b060});}async[_0x12409a(0x29e)](_0x43d242){const _0x43061b=_0x12409a,_0x1327cf=this['_getAPIPrefixPath']()+_0x43061b(0x11c);return(await this['_HTTPService'][_0x43061b(0x2d5)](_0x1327cf,{'params':{'objectID':_0x43d242[_0x43061b(0x189)],'unitID':_0x43d242[_0x43061b(0x2fd)]}}))[_0x43061b(0x3b8)]['collaborators'];}async['putCollaborators'](_0x44434d){const _0x8a9c6f=_0x12409a,_0x25e237=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x8a9c6f(0x2be)][_0x8a9c6f(0x362)](_0x25e237,{'body':_0x44434d});}};yt=Ho([ps(0x0,_0x565e28(_0x1a28a3)),ps(0x1,_0x565e28(_0x301e4e))],yt);var Vo=Object['defineProperty'],Fo=Object[_0x12409a(0xfe)],Wo=(_0x248926,_0x3d1e6c,_0x50638a,_0x398fe0)=>{const _0x3e5d64=_0x12409a;for(var _0x516b55=_0x398fe0>0x1?void 0x0:_0x398fe0?Fo(_0x3d1e6c,_0x50638a):_0x3d1e6c,_0x4956f5=_0x248926[_0x3e5d64(0x3b7)]-0x1,_0x562a08;_0x4956f5>=0x0;_0x4956f5--)(_0x562a08=_0x248926[_0x4956f5])&&(_0x516b55=(_0x398fe0?_0x562a08(_0x3d1e6c,_0x50638a,_0x516b55):_0x562a08(_0x516b55))||_0x516b55);return _0x398fe0&&_0x516b55&&Vo(_0x3d1e6c,_0x50638a,_0x516b55),_0x516b55;},Go=(_0x4b5b26,_0x5bd22c)=>(_0x5799eb,_0x717a4b)=>_0x5bd22c(_0x5799eb,_0x717a4b,_0x4b5b26);let Qe=class{constructor(_0x5aba08){const _0x4fc7fd=_0x12409a;this[_0x4fc7fd(0x2bf)]=_0x5aba08,this[_0x4fc7fd(0x160)]();}[_0x12409a(0x160)](){const _0x19e613=_0x12409a;this[_0x19e613(0x2bf)][_0x19e613(0x18d)]({'interceptor':(_0x406b67,_0x1c38a2)=>{const _0x207256=_0x19e613,_0x542f60=_0x406b67[_0x207256(0x2f4)],_0x18cfeb=_0x293789();return _0x18cfeb&&_0x542f60[_0x207256(0x28a)]('x-univer-host',_0x18cfeb),_0x1c38a2(_0x406b67);}});}};Qe=Wo([Go(0x0,_0x565e28(_0x1a28a3))],Qe);var Yo=Object['defineProperty'],Ko=Object[_0x12409a(0xfe)],Xo=(_0x51d116,_0x179280,_0x58d95d,_0x27b21a)=>{const _0x39e22b=_0x12409a;for(var _0x50c580=_0x27b21a>0x1?void 0x0:_0x27b21a?Ko(_0x179280,_0x58d95d):_0x179280,_0x59d573=_0x51d116[_0x39e22b(0x3b7)]-0x1,_0x2f038a;_0x59d573>=0x0;_0x59d573--)(_0x2f038a=_0x51d116[_0x59d573])&&(_0x50c580=(_0x27b21a?_0x2f038a(_0x179280,_0x58d95d,_0x50c580):_0x2f038a(_0x50c580))||_0x50c580);return _0x27b21a&&_0x50c580&&Yo(_0x179280,_0x58d95d,_0x50c580),_0x50c580;},pt=(_0x5440ec,_0x58a1c8)=>(_0x216e1e,_0x429631)=>_0x58a1c8(_0x216e1e,_0x429631,_0x5440ec);const qo=['image/png',_0x12409a(0x2ea),_0x12409a(0x2c9),_0x12409a(0xd0),_0x12409a(0x2ad)],Jo=0x5*0x400*0x400,zo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Zo='/universer-api/stream/file/upload',Qo='EXCHANGE_SIGN_URL_SERVER_URL_KEY',ea=_0x12409a(0xc4);let Ut=class{constructor(_0x19c579,_0x2a27c5,_0x18be39){const _0x37a50b=_0x12409a;l(this,_0x37a50b(0x17e),0x0),l(this,_0x37a50b(0x1bb),new _0x5633a5()),l(this,'change$',this[_0x37a50b(0x1bb)]),l(this,_0x37a50b(0x12a),new Map()),(this[_0x37a50b(0x2bf)]=_0x19c579,this[_0x37a50b(0x150)]=_0x2a27c5,this[_0x37a50b(0x392)]=_0x18be39);}[_0x12409a(0x1be)](_0x2aae0d){const _0x4a48c6=_0x12409a;this[_0x4a48c6(0x17e)]=_0x2aae0d,this[_0x4a48c6(0x1bb)][_0x4a48c6(0x188)](_0x2aae0d);}['getImageSourceCache'](_0x1c7f03,_0x4098e8){const _0x4e3501=_0x12409a;if(_0x4098e8===_0x1b83e4[_0x4e3501(0x2dd)]){const _0x552a6b=new Image();return _0x552a6b[_0x4e3501(0x2f7)]=_0x1c7f03,_0x552a6b;}return this['_imageSourceCache'][_0x4e3501(0x2d5)](_0x1c7f03);}['addImageSourceCache'](_0x34207f,_0x4361e3,_0x141719){const _0x427a35=_0x12409a;_0x4361e3===_0x1b83e4['BASE64']||_0x141719==null||this[_0x427a35(0x12a)][_0x427a35(0x28a)](_0x34207f,_0x141719);}async['getImage'](_0x5effbb){const _0x424e59=_0x12409a;try{const _0x37da14=this[_0x424e59(0x23c)](this['_getSignURL'](),''+_0x5effbb),_0x398294=(await this[_0x424e59(0x2bf)][_0x424e59(0x2d5)](_0x37da14))[_0x424e59(0x3b8)];if(_0x398294[_0x424e59(0x2d7)]&&_0x398294['error']['code']===xs['OK']){const _0x249218=new URL(_0x398294[_0x424e59(0x236)],this[_0x424e59(0x384)]())[_0x424e59(0x226)]();return Promise[_0x424e59(0x154)](_0x249218);}return Promise[_0x424e59(0x178)](_0x398294[_0x424e59(0x2d7)]);}catch(_0x19a280){return Promise[_0x424e59(0x178)](_0x19a280);}}async['saveImage'](_0x309730){const _0x590756=_0x12409a;let _0xe4d7f1='';if(!qo[_0x590756(0x137)](_0x309730[_0x590756(0x198)]))return this[_0x590756(0x406)](),Promise[_0x590756(0x178)](new Error(_0x5daf8d[_0x590756(0x2ca)]));if(_0x309730[_0x590756(0x1b5)]>Jo)return this[_0x590756(0x406)](),Promise['reject'](new Error(_0x5daf8d[_0x590756(0x207)]));try{const _0x3a8b75=new FormData();_0x3a8b75[_0x590756(0x371)](_0x590756(0x39a),_0x309730);const _0x54154d=this[_0x590756(0x392)][_0x590756(0x1c5)](),_0x13cb83=_0x54154d==null?void 0x0:_0x54154d['getUnitId']();if(!_0x13cb83)throw new Error(_0x590756(0x238));const _0x30d3a4=this[_0x590756(0x2dc)]()+'?size='+_0x309730[_0x590756(0x1b5)][_0x590756(0x226)]()+_0x590756(0x38a)+Hs[_0x590756(0x173)]+_0x590756(0x172)+encodeURIComponent(_0x13cb83),_0x4cd076=await(await fetch(_0x30d3a4,{'method':_0x590756(0x38b),'body':_0x3a8b75}))['json']();if(typeof _0x4cd076[_0x590756(0x242)]!='string')return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x5daf8d[_0x590756(0x18c)]));_0xe4d7f1=_0x4cd076[_0x590756(0x242)];}catch{return this[_0x590756(0x406)](),Promise[_0x590756(0x178)](new Error(_0x5daf8d[_0x590756(0x18c)]));}return new Promise((_0x427e8e,_0x20318d)=>{const _0x38054f=_0x590756,_0x59a507=new FileReader();_0x59a507[_0x38054f(0x3e5)](_0x309730),_0x59a507[_0x38054f(0x1b6)]=_0x274a16=>{const _0x23a523=_0x38054f;var _0x1f0925;const _0xf74d0f=(_0x1f0925=_0x274a16[_0x23a523(0x275)])==null?void 0x0:_0x1f0925[_0x23a523(0x372)];if(_0xf74d0f==null){this[_0x23a523(0x406)](),_0x20318d(new Error(_0x5daf8d[_0x23a523(0x18c)]));return;}const _0x39f7ba=_0x5bdceb[_0x23a523(0x26e)](0x6);_0x427e8e({'imageId':_0x39f7ba,'imageSourceType':_0x1b83e4[_0x23a523(0x350)],'source':_0xe4d7f1,'base64Cache':_0xf74d0f,'status':_0x5daf8d[_0x23a523(0x136)]}),this[_0x23a523(0x406)]();};});}['_getUploadFileURL'](){const _0x5aed0e=_0x12409a;var _0xcd6923,_0x487d2c;const _0x17e03c=this[_0x5aed0e(0x150)][_0x5aed0e(0x312)](zo),_0x175e1c=this[_0x5aed0e(0x150)][_0x5aed0e(0x312)]($);return(_0x487d2c=(_0xcd6923=_0x175e1c==null?void 0x0:_0x175e1c[_0x5aed0e(0x2e8)])!=null?_0xcd6923:_0x17e03c)!=null?_0x487d2c:Zo;}[_0x12409a(0x296)](){const _0xdcddd5=_0x12409a;var _0x506732,_0x330e53;const _0x2d39c7=this['_configService']['getConfig'](Qo),_0x5d7917=this['_configService'][_0xdcddd5(0x312)]($);return(_0x330e53=(_0x506732=_0x5d7917==null?void 0x0:_0x5d7917[_0xdcddd5(0x175)])!=null?_0x506732:_0x2d39c7)!=null?_0x330e53:ea;}[_0x12409a(0x384)](){const _0x58a286=_0x12409a;var _0x3565a8;const _0x88c3f=this[_0x58a286(0x150)][_0x58a286(0x312)]($);return(_0x3565a8=_0x88c3f==null?void 0x0:_0x88c3f[_0x58a286(0x39c)])!=null?_0x3565a8:location[_0x58a286(0xd1)];}[_0x12409a(0x23c)](_0x55352d,_0x1ef629){const _0x51f89a=_0x12409a;return _0x55352d[_0x51f89a(0x221)](_0x51f89a(0x31b),_0x1ef629);}['_decreaseWaiting'](){const _0x18a625=_0x12409a;this[_0x18a625(0x17e)]-=0x1,this['_change$'][_0x18a625(0x188)](this[_0x18a625(0x17e)]);}};Ut=Xo([pt(0x0,_0x565e28(_0x1a28a3)),pt(0x1,_0x301e4e),pt(0x2,_0x565e28(_0x114f27))],Ut);var ta=Object[_0x12409a(0x1ee)],sa=Object['getOwnPropertyDescriptor'],ia=(_0x222968,_0xb3d3bd,_0x5b058f,_0x4e2b08)=>{const _0x4847c5=_0x12409a;for(var _0x5f46db=_0x4e2b08>0x1?void 0x0:_0x4e2b08?sa(_0xb3d3bd,_0x5b058f):_0xb3d3bd,_0x5f40fc=_0x222968[_0x4847c5(0x3b7)]-0x1,_0x3bb7c2;_0x5f40fc>=0x0;_0x5f40fc--)(_0x3bb7c2=_0x222968[_0x5f40fc])&&(_0x5f46db=(_0x4e2b08?_0x3bb7c2(_0xb3d3bd,_0x5b058f,_0x5f46db):_0x3bb7c2(_0x5f46db))||_0x5f46db);return _0x4e2b08&&_0x5f46db&&ta(_0xb3d3bd,_0x5b058f,_0x5f46db),_0x5f46db;},ye=(_0x180674,_0x53fb98)=>(_0x4526c0,_0x41eff7)=>_0x53fb98(_0x4526c0,_0x41eff7,_0x180674);let et=class extends _0x5d8701{constructor(_0x244b2c,_0x5a2b9e,_0x2828a7,_0x563fa2,_0x185dd3){const _0x4f5a7b=_0x12409a;super(),this['_injector']=_0x244b2c,this[_0x4f5a7b(0x392)]=_0x5a2b9e,this[_0x4f5a7b(0x16b)]=_0x2828a7,this[_0x4f5a7b(0x2e7)]=_0x563fa2,this[_0x4f5a7b(0xd9)]=_0x185dd3,this['_initUnitPermissionChange'](),this[_0x4f5a7b(0x2a5)]();}[_0x12409a(0x2a5)](){const _0x3a3e2c=_0x12409a,_0x2d8e23=async _0x344d27=>{const _0x50e4c3=_0x4bc7;(await this['_collaborationSessionService'][_0x50e4c3(0x3be)](_0x344d27))[_0x50e4c3(0x3e9)]['pipe'](_0x51df9d(_0x44aefa=>_0x44aefa['eventID']===_0x1a2ec1[_0x50e4c3(0x252)]),_0xeca24a(this[_0x50e4c3(0x394)]))[_0x50e4c3(0x3c1)](_0x3db7cc=>{const _0x57b6ed=_0x50e4c3,_0x2fa01d=_0x3db7cc,{reason:_0x451f32}=_0x2fa01d[_0x57b6ed(0x244)];this['_injector'][_0x57b6ed(0x2d5)](_0x32ad3e)[_0x57b6ed(0x3a1)]({'type':_0x3ea716['Error'],'content':this[_0x57b6ed(0xd9)]['t'](_0x57b6ed(0x410))+'('+_0x451f32+')'}),this['_permissionService']['updatePermissionPoint'](new _0x19d13a(_0x344d27)['id'],!0x1),this[_0x57b6ed(0x2e7)][_0x57b6ed(0xc6)](_0x344d27);});};_0x23085b(this[_0x3a3e2c(0x392)][_0x3a3e2c(0x3dc)](_0x351a49[_0x3a3e2c(0x1e2)]),this[_0x3a3e2c(0x392)][_0x3a3e2c(0x3dc)](_0x351a49[_0x3a3e2c(0x15b)]))[_0x3a3e2c(0x29f)](_0x123c40(_0x48d517=>_0x48d517[_0x3a3e2c(0xe4)]()),_0x51df9d(_0x154ff3=>!_0x272710(_0x154ff3)),_0xeca24a(this[_0x3a3e2c(0x394)]))[_0x3a3e2c(0x3c1)](_0x544a0c=>{_0x2d8e23(_0x544a0c);});}['_initUnitPermissionChange'](){const _0x4fbf01=_0x12409a,_0x3287da=async _0x5c6aa2=>{const _0x34f052=_0x4bc7;(await this[_0x34f052(0x2e7)]['requireSession'](_0x5c6aa2))[_0x34f052(0x3e9)][_0x34f052(0x29f)](_0x51df9d(_0x2b0c77=>_0x2b0c77[_0x34f052(0x331)]===_0x1a2ec1[_0x34f052(0x2d2)]),_0xeca24a(this['dispose$']))[_0x34f052(0x3c1)](_0x3ce48c=>{const _0xe2cd91=_0x34f052,_0x4634f8=_0x3ce48c,{objectId:_0x1d2fe8}=_0x4634f8[_0xe2cd91(0x244)],_0x5a4a75=this[_0xe2cd91(0x26a)][_0xe2cd91(0x2d5)](_0x3b6dd6);_0x1d2fe8===_0x5c6aa2?_0x5a4a75[_0xe2cd91(0x2e3)](_0x5c6aa2):_0x5a4a75[_0xe2cd91(0x19e)](_0x5c6aa2,_0x1d2fe8);});};_0x23085b(this[_0x4fbf01(0x392)][_0x4fbf01(0x3dc)](_0x351a49[_0x4fbf01(0x1e2)]),this['_univerInstanceService'][_0x4fbf01(0x3dc)](_0x351a49[_0x4fbf01(0x15b)]))[_0x4fbf01(0x29f)](_0x123c40(_0x2480d1=>_0x2480d1[_0x4fbf01(0xe4)]()),_0x51df9d(_0x3c576a=>!_0x272710(_0x3c576a)),_0xeca24a(this['dispose$']))[_0x4fbf01(0x3c1)](_0x25ab13=>{_0x3287da(_0x25ab13);});}};et=ia([ye(0x0,_0x565e28(_0x3f178c)),ye(0x1,_0x114f27),ye(0x2,_0x4594fa),ye(0x3,_0x565e28(he)),ye(0x4,_0x565e28(_0x128cab))],et);var na=Object[_0x12409a(0x1ee)],ra=Object[_0x12409a(0xfe)],oa=(_0x2d5a99,_0x3b7174,_0x12a3d5,_0x48bbdf)=>{const _0x5cbc27=_0x12409a;for(var _0x5bcc4d=_0x48bbdf>0x1?void 0x0:_0x48bbdf?ra(_0x3b7174,_0x12a3d5):_0x3b7174,_0x237175=_0x2d5a99[_0x5cbc27(0x3b7)]-0x1,_0x5ac8db;_0x237175>=0x0;_0x237175--)(_0x5ac8db=_0x2d5a99[_0x237175])&&(_0x5bcc4d=(_0x48bbdf?_0x5ac8db(_0x3b7174,_0x12a3d5,_0x5bcc4d):_0x5ac8db(_0x5bcc4d))||_0x5bcc4d);return _0x48bbdf&&_0x5bcc4d&&na(_0x3b7174,_0x12a3d5,_0x5bcc4d),_0x5bcc4d;},vs=(_0x5d5a24,_0x838720)=>(_0x54ad8c,_0x51dac1)=>_0x838720(_0x54ad8c,_0x51dac1,_0x5d5a24);let Nt=class{constructor(_0x527f4d,_0x3bb08f){this['_configService']=_0x527f4d,this['_httpService']=_0x3bb08f;}async[_0x12409a(0x1af)](_0x2e5594,_0x3424bf){const _0x806b74=_0x12409a;var _0x35023a;const {unitID:_0x405fcb,type:_0x3af0e8,revision:_0x407b36=0x0}=_0x3424bf,_0x42587c=this[_0x806b74(0x1b2)]()+'/'+_0x3af0e8+_0x806b74(0x3db)+_0x405fcb+_0x806b74(0x337)+_0x407b36,_0x3bb301=(await this[_0x806b74(0x2bf)][_0x806b74(0x2d5)](_0x42587c))[_0x806b74(0x3b8)],_0x4a0f15=(_0x35023a=_0x3bb301[_0x806b74(0x3d1)])==null?void 0x0:_0x35023a['workbook'];if(_0x4a0f15){const _0x5e4152=_0x4a0f15==null?void 0x0:_0x4a0f15[_0x806b74(0x382)],_0x7715b1=_0x249833[_0x806b74(0x3eb)](_0x3432b1(_0x5e4152));_0x4a0f15[_0x806b74(0x382)]=_0x7715b1,Object[_0x806b74(0x13c)](_0x4a0f15[_0x806b74(0x24b)])['forEach'](([,_0xd67f24])=>{const _0x33b2c0=_0x806b74,_0x452234=_0xd67f24[_0x33b2c0(0x382)],_0x9f7cc8=_0x249833[_0x33b2c0(0x3eb)](_0x3432b1(_0x452234));_0xd67f24[_0x33b2c0(0x382)]=_0x9f7cc8;});}return _0x3bb301;}async['getSheetBlock'](_0x410d9e,_0x2e0446){const _0xc9782=_0x12409a,{unitID:_0x317d43,type:_0x1794eb,blockID:_0x6d6478}=_0x2e0446,_0x220582=this[_0xc9782(0x227)]()+'/'+_0x1794eb+_0xc9782(0x3db)+_0x317d43+'/block/'+_0x6d6478;return(await this['_httpService'][_0xc9782(0x2d5)](_0x220582))['body'];}async[_0x12409a(0x22b)](_0xdfdefc,_0x424b49){const _0x1a74ed=_0x12409a,{unitID:_0x53c0f4,type:_0x5b0f7d,blockID:_0x29ae95}=_0x424b49,_0x27dc2d=this[_0x1a74ed(0x227)]()+_0x1a74ed(0x421)+_0x5b0f7d+'/unit/'+_0x53c0f4+_0x1a74ed(0x421)+_0x29ae95;return(await this[_0x1a74ed(0x2bf)]['get'](_0x27dc2d))[_0x1a74ed(0x3b8)];}async[_0x12409a(0x27a)](_0x18a821,_0x2bfebc){const _0x8d56c=_0x12409a,{unitID:_0x3b4012,type:_0x33ce6d,from:_0x2f58e9,to:_0x3f5b0f}=_0x2bfebc,_0x373fad=this[_0x8d56c(0x227)]()+'/'+_0x33ce6d+_0x8d56c(0x3db)+_0x3b4012+_0x8d56c(0x3c0)+_0x2f58e9+'&to='+_0x3f5b0f;return(await this[_0x8d56c(0x2bf)][_0x8d56c(0x2d5)](_0x373fad))[_0x8d56c(0x3b8)];}['_getSnapshotAPIPrefix'](){const _0xff142=_0x12409a;var _0x4e3a41;return(_0x4e3a41=this['_configService'][_0xff142(0x312)](vn))!=null?_0x4e3a41:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x108550=_0x12409a;var _0xb7eac0,_0x4c5367;const _0x5ae1c7=this['_configService']['getConfig'](Sn),_0x1f4d4e=this[_0x108550(0x150)][_0x108550(0x312)]($);return(_0x4c5367=(_0xb7eac0=_0x1f4d4e==null?void 0x0:_0x1f4d4e[_0x108550(0x203)])!=null?_0xb7eac0:_0x5ae1c7)!=null?_0x4c5367:pn;}async[_0x12409a(0x1a5)](_0x400098,_0x526c2a){const _0x43846b=_0x12409a,_0xce054='/universer-api/snapshot/'+_0x526c2a[_0x43846b(0x198)]+_0x43846b(0x3db)+_0x526c2a['unitID']+'/resources';return(await this[_0x43846b(0x2bf)]['get'](_0xce054,{'params':{'resourceId':JSON[_0x43846b(0x322)](_0x526c2a['resourceIDs'])}}))[_0x43846b(0x3b8)];}['saveSnapshot'](){const _0x12cc7b=_0x12409a;throw new Error(_0x12cc7b(0x1cd));}[_0x12409a(0x222)](){const _0x342402=_0x12409a;throw new Error(_0x342402(0x1cd));}[_0x12409a(0x3ae)](){const _0x5784ee=_0x12409a;throw new Error(_0x5784ee(0x1cd));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x12409a(0x115)](){const _0x5b9ce4=_0x12409a;throw new Error(_0x5b9ce4(0x1cd));}};Nt=oa([vs(0x0,_0x301e4e),vs(0x1,_0x565e28(_0x1a28a3))],Nt);var aa=Object[_0x12409a(0x1ee)],ca=Object[_0x12409a(0xfe)],ha=(_0x585f1a,_0x338f11,_0x4c0d44,_0x2f531e)=>{const _0x174b64=_0x12409a;for(var _0x13596f=_0x2f531e>0x1?void 0x0:_0x2f531e?ca(_0x338f11,_0x4c0d44):_0x338f11,_0x35f753=_0x585f1a[_0x174b64(0x3b7)]-0x1,_0xe7d3a2;_0x35f753>=0x0;_0x35f753--)(_0xe7d3a2=_0x585f1a[_0x35f753])&&(_0x13596f=(_0x2f531e?_0xe7d3a2(_0x338f11,_0x4c0d44,_0x13596f):_0xe7d3a2(_0x13596f))||_0x13596f);return _0x2f531e&&_0x13596f&&aa(_0x338f11,_0x4c0d44,_0x13596f),_0x13596f;},Ue=(_0x3481eb,_0x499010)=>(_0xd31600,_0x2b950d)=>_0x499010(_0xd31600,_0x2b950d,_0x3481eb);let Mt=class extends _0x18741d{constructor(_0x3c2c98,_0xf859fc,_0x839de,_0x5ed39e,_0x7ecbf1){const _0x1ad00f=_0x12409a;super(_0x3c2c98,_0xf859fc,_0x839de),this['_transformService']=_0x5ed39e,this[_0x1ad00f(0x24e)]=_0x7ecbf1;}[_0x12409a(0xea)](_0x4f0284,_0x8b7d49){const _0x43fe34=_0x12409a,_0x2849d3=this[_0x43fe34(0x183)](_0x4f0284);if(_0x2849d3)try{const _0x2eea04=this['_transformStack'](_0x2849d3,_0x8b7d49);this['_substituteUndoStack'](_0x4f0284,_0x2eea04);}catch(_0x401658){this[_0x43fe34(0x24e)]['error'](_0x43fe34(0x114),_0x401658),this['_clearUndo'](_0x4f0284);}const _0x280d22=this[_0x43fe34(0x354)](_0x4f0284);if(_0x280d22)try{const _0x3ca42d=this[_0x43fe34(0x243)](_0x280d22,_0x8b7d49);this[_0x43fe34(0x1de)](_0x4f0284,_0x3ca42d);}catch(_0x84b4a6){this[_0x43fe34(0x24e)][_0x43fe34(0x2d7)](_0x84b4a6),this[_0x43fe34(0xfb)](_0x4f0284);}}[_0x12409a(0x380)](_0x258e2b){const _0x4d3b71=_0x12409a,_0x368f8e=this[_0x4d3b71(0x183)](_0x258e2b);_0x368f8e&&(_0x368f8e[_0x4d3b71(0x3b7)]=0x0,this[_0x4d3b71(0x1f8)]());}[_0x12409a(0xfb)](_0x153d33){const _0xec9fa1=_0x12409a,_0x1e5309=this['_getRedoStack'](_0x153d33);_0x1e5309&&(_0x1e5309[_0xec9fa1(0x3b7)]=0x0,this[_0xec9fa1(0x1f8)]());}[_0x12409a(0xbe)](_0x56ed0c,_0x45e544){const _0x1b6cca=_0x12409a;this['_undoStacks'][_0x1b6cca(0x28a)](_0x56ed0c,_0x45e544),this[_0x1b6cca(0x1f8)]();}[_0x12409a(0x1de)](_0x208c78,_0x2d29a5){const _0x144c5b=_0x12409a;this[_0x144c5b(0x32d)][_0x144c5b(0x28a)](_0x208c78,_0x2d29a5),this[_0x144c5b(0x1f8)]();}[_0x12409a(0x243)](_0x122fd7,_0x3ae6c9){const _0x543697=_0x12409a,_0x1b4629=[];let _0x2d29d6=_0x3ae6c9,_0x3e54db=_0x3ae6c9;for(let _0x11bdc2=_0x122fd7['length']-0x1;_0x11bdc2>=0x0;_0x11bdc2--){const {unitID:_0x519869,undoMutations:_0x75271b,redoMutations:_0x495fce}=_0x122fd7[_0x11bdc2],_0x1b0241=this[_0x543697(0x3e7)]['transformMutationsWithChangeset'](_0x2d29d6,_0x75271b),_0x31b2f6=this[_0x543697(0x3e7)]['transformMutationsWithChangeset'](_0x3e54db,_0x495fce);if(_0x5c083e(_0x1b0241)||_0x5c083e(_0x31b2f6)){this[_0x543697(0x24e)][_0x543697(0x2d7)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x1b0241,_0x31b2f6);break;}_0x2d29d6=_0x1b0241[_0x543697(0x1a4)],_0x3e54db=_0x31b2f6['c1Prime'],_0x1b4629[_0x543697(0x325)]({'unitID':_0x519869,'undoMutations':_0x1b0241[_0x543697(0x346)],'redoMutations':_0x31b2f6['m2Prime']});}return _0x1b4629['reverse']();}};Mt=ha([Ue(0x0,_0x114f27),Ue(0x1,_0x2af4cf),Ue(0x2,_0x26f27f),Ue(0x3,_0x5dfa67),Ue(0x4,_0x2fef42)],Mt);class la extends _0x5d8701{constructor(){const _0x2a9fbd=_0x12409a;super(),l(this,_0x2a9fbd(0x425)),this[_0x2a9fbd(0x425)]=_0x983b61(window,_0x2a9fbd(0x369))['pipe'](_0x2d78ee(this[_0x2a9fbd(0x394)]),_0x27a368(0x1),_0x56c97a(void 0x0));}[_0x12409a(0x3d3)](_0x40f3db,_0x2cf9c6,_0x1d5e3b=!0x1){const _0x36c403=_0x12409a,_0x203fe1=new URL(window[_0x36c403(0x313)]['href']);_0x203fe1[_0x36c403(0x181)]['set'](_0x40f3db,_0x2cf9c6),_0x1d5e3b?window['history'][_0x36c403(0x11a)]('','',_0x203fe1[_0x36c403(0x226)]()):window['history'][_0x36c403(0x2b2)]('','',_0x203fe1[_0x36c403(0x226)]());}[_0x12409a(0x16c)](_0x295362,_0x54f289=!0x1){const _0x2c994a=_0x12409a,_0x182924=new URL(window[_0x2c994a(0x313)]['href']);_0x182924[_0x2c994a(0x181)][_0x2c994a(0xf3)](_0x295362),_0x54f289?window['history'][_0x2c994a(0x11a)]('','',_0x182924['toString']()):window[_0x2c994a(0x414)][_0x2c994a(0x2b2)]('','',_0x182924[_0x2c994a(0x226)]());}['getParam'](_0x4b9cc8){const _0x32149f=_0x12409a;var _0xb01276;return(_0xb01276=new URL(window[_0x32149f(0x313)][_0x32149f(0x3b5)])['searchParams'][_0x32149f(0x2d5)](_0x4b9cc8))!=null?_0xb01276:void 0x0;}}var Js=Object['defineProperty'],_a=Object[_0x12409a(0xfe)],ua=(_0x41ec7f,_0x86e6da,_0x4987b5)=>_0x86e6da in _0x41ec7f?Js(_0x41ec7f,_0x86e6da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4987b5}):_0x41ec7f[_0x86e6da]=_0x4987b5,da=(_0x4fe364,_0x5a1e83,_0x3e0629,_0x2934ff)=>{for(var _0x584e31=_0x2934ff>0x1?void 0x0:_0x2934ff?_a(_0x5a1e83,_0x3e0629):_0x5a1e83,_0x473663=_0x4fe364['length']-0x1,_0x4c1ad5;_0x473663>=0x0;_0x473663--)(_0x4c1ad5=_0x4fe364[_0x473663])&&(_0x584e31=(_0x2934ff?_0x4c1ad5(_0x5a1e83,_0x3e0629,_0x584e31):_0x4c1ad5(_0x584e31))||_0x584e31);return _0x2934ff&&_0x584e31&&Js(_0x5a1e83,_0x3e0629,_0x584e31),_0x584e31;},Ve=(_0x159402,_0x556cbc)=>(_0xa41eef,_0xfab367)=>_0x556cbc(_0xa41eef,_0xfab367,_0x159402),fa=(_0x4b8aad,_0x34d985,_0x2f0d24)=>ua(_0x4b8aad,_0x34d985+'',_0x2f0d24);const ma=_0x12409a(0x118);let At=class extends _0x2545f7{constructor(_0x10629d=An,_0x5247fc,_0x26f150,_0x2dc1d6,_0x39bcc6){const _0x5ce413=_0x12409a;super(),this[_0x5ce413(0x13d)]=_0x10629d,this[_0x5ce413(0x24e)]=_0x5247fc,this[_0x5ce413(0x209)]=_0x26f150,this[_0x5ce413(0x26a)]=_0x2dc1d6,this[_0x5ce413(0x150)]=_0x39bcc6;const {..._0x25fc4f}=this[_0x5ce413(0x13d)];this['_configService'][_0x5ce413(0x3ab)]($,_0x25fc4f);}['onStarting'](){const _0x516370=_0x12409a;this['_registerDependencies'](),_0xeba9f1(this[_0x516370(0x26a)],[[ve],[Je],[et]]);}[_0x12409a(0x429)](){const _0x4df212=_0x12409a;_0xeba9f1(this[_0x4df212(0x26a)],[[ze]]);}['onRendered'](){const _0x31d436=_0x12409a;this[_0x31d436(0xbf)]();}[_0x12409a(0x343)](){const _0x8c5563=_0x12409a;var _0x4d459d,_0x4f152e,_0xab91d,_0x3a25a7;this['_injector'][_0x8c5563(0x128)](_0x26c70e)&&this[_0x8c5563(0x24e)][_0x8c5563(0x2d7)](_0x8c5563(0x3f5),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x27c3fa=[[_0x26c70e,{'useClass':Mt}],[he],[Gt],[_0x1a28a3],[qs,{'useClass':la}],[ce],[w],[_0x9095c5],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Bs],[et],[ks,{'useClass':(_0x4f152e=(_0x4d459d=this[_0x8c5563(0x13d)])==null?void 0x0:_0x4d459d[_0x8c5563(0x363)])!=null?_0x4f152e:Ct}],[_0x3545d6,{'useClass':_0x526b8a}],[_0x2bb579,{'useClass':Nt}],[_0x57894e,{'useClass':yt}],[_0x45bed1,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0xab91d=this[_0x8c5563(0x13d)])!=null&&_0xab91d[_0x8c5563(0x1c3)]&&_0x27c3fa[_0x8c5563(0x325)]([tt,{'useClass':fr}]),_0x27c3fa=_0x48fc26(_0x27c3fa,(_0x3a25a7=this['_config'])==null?void 0x0:_0x3a25a7['override']),_0x27c3fa['forEach'](_0x4dea0a=>this[_0x8c5563(0x26a)][_0x8c5563(0x22d)](_0x4dea0a)),this[_0x8c5563(0x391)]();}[_0x12409a(0xbf)](){const _0x19098a=_0x12409a;this[_0x19098a(0x2f2)](this[_0x19098a(0x209)][_0x19098a(0x1d2)](_0x351a49[_0x19098a(0x15b)],[wt])),this[_0x19098a(0x2f2)](this['_renderManagerService'][_0x19098a(0x1d2)](_0x351a49['UNIVER_SHEET'],[Pt]));}[_0x12409a(0x391)](){const _0x37eefa=_0x12409a;var _0x76b529,_0xffeded;this[_0x37eefa(0x26a)][_0x37eefa(0x2d5)](_0x1a28a3)[_0x37eefa(0x18d)]({'priority':0x14,'interceptor':_0x27806c({'maxParallel':0x6})}),this[_0x37eefa(0x26a)]['get'](Qe),(_0x76b529=this[_0x37eefa(0x13d)])!=null&&_0x76b529['enableOfflineEditing']||this['_injector'][_0x37eefa(0x2d5)](w)[_0x37eefa(0x2d8)](),(_0xffeded=this[_0x37eefa(0x13d)])!=null&&_0xffeded[_0x37eefa(0x33b)]&&this['_injector']['get'](Ze),this[_0x37eefa(0x26a)]['get'](Le),this[_0x37eefa(0x26a)][_0x37eefa(0x128)](Me)&&this['_injector']['get'](Me);}};function _0x4bc7(_0x14f30e,_0x42ba31){const _0xe1d464=_0xe1d4();return _0x4bc7=function(_0x4bc707,_0x476a40){_0x4bc707=_0x4bc707-0xaf;let _0x177bc7=_0xe1d464[_0x4bc707];return _0x177bc7;},_0x4bc7(_0x14f30e,_0x42ba31);}fa(At,'pluginName',ma),At=da([_0x2737b3(_0x33d032),Ve(0x1,_0x2fef42),Ve(0x2,_0x3872a8),Ve(0x3,_0x565e28(_0x3f178c)),Ve(0x4,_0x301e4e)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,Bs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,$s as HEARTBEAT_TIMEOUT_KEY,ks as ICollaborationSocketService,qs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
1
+ const _0x173fa3=_0x33c3;(function(_0x308a22,_0x93585a){const _0x235e76=_0x33c3,_0x47d01d=_0x308a22();while(!![]){try{const _0x136324=-parseInt(_0x235e76(0x1d7))/0x1*(-parseInt(_0x235e76(0x1cc))/0x2)+-parseInt(_0x235e76(0x195))/0x3*(parseInt(_0x235e76(0x2d1))/0x4)+parseInt(_0x235e76(0x1f0))/0x5*(-parseInt(_0x235e76(0x492))/0x6)+parseInt(_0x235e76(0x3ae))/0x7*(-parseInt(_0x235e76(0x38e))/0x8)+-parseInt(_0x235e76(0x2e3))/0x9*(-parseInt(_0x235e76(0x467))/0xa)+parseInt(_0x235e76(0x301))/0xb+parseInt(_0x235e76(0x503))/0xc;if(_0x136324===_0x93585a)break;else _0x47d01d['push'](_0x47d01d['shift']());}catch(_0x57f99a){_0x47d01d['push'](_0x47d01d['shift']());}}}(_0x29b0,0x75f5c));var oi=Object[_0x173fa3(0x309)],ai=(_0x4db46d,_0x55f513,_0x329459)=>_0x55f513 in _0x4db46d?oi(_0x4db46d,_0x55f513,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x329459}):_0x4db46d[_0x55f513]=_0x329459,l=(_0x46a354,_0x45c212,_0x409313)=>ai(_0x46a354,typeof _0x45c212!=_0x173fa3(0x1b9)?_0x45c212+'':_0x45c212,_0x409313);import{createIdentifier as _0x1a0c31,Inject as _0x4f7ed2,Disposable as _0x1ed84d,DisposableCollection as _0x1f9c9d,toDisposable as _0x4a9188,IConfigService as _0x13b27e,ILogService as _0x4329b1,UserManagerService as _0x12c9bc,UniverInstanceType as _0x159e2d,IUniverInstanceService as _0x1e8ecc,LocaleService as _0x15839b,Optional as _0x532e88,RxDisposable as _0x13ba8e,Injector as _0x3b0750,Tools as _0x58e8f0,ILocalStorageService as _0x71f972,Rectangle as _0xa8b8a6,ICommandService as _0xdec94a,DOC_RANGE_TYPE as _0x46c3b0,JSONX as _0xdfd23e,CommandType as _0x12b588,IPermissionService as _0x8f100a,IUndoRedoService as _0x57ccc3,sequenceExecute as _0x24a976,debounce as _0x2d1802,COLORS as _0x51afa6,ColorKit as _0x88bd29,ThemeService as _0x1810fb,fromEventSubject as _0x3c7358,useDependency as _0x5b7ccb,connectInjector as _0x426f7f,Workbook as _0x1b1252,isInternalEditorID as _0xfab1d1,LocalUndoRedoService as _0x2bc6cc,IContextService as _0x163dc9,DependentOn as _0xf1d54,Plugin as _0x3ddd75,touchDependencies as _0x3b1166,IAuthzIoService as _0x588b6d,mergeOverrideWithDependencies as _0x401096}from'@univerjs/core';import{Subject as _0x54d3a4,merge as _0x378f3d,takeUntil as _0x223895,BehaviorSubject as _0x37b5ce,distinctUntilChanged as _0x38f940,fromEvent as _0x25f31e,ReplaySubject as _0x5c8a52,take as _0x13b5e9,map as _0x4afa33,shareReplay as _0x5fb4e1,of as _0x2ad1bd,debounceTime as _0x1fc3db,filter as _0x496185,switchMap as _0x3b6e12,combineLatest as _0x550795,concatMap as _0x2bf06b,mapTo as _0x5297dd}from'rxjs';import{map as _0x595c33,take as _0x4b16ab,filter as _0x3f9fc1,delay as _0xd71fd1,throttleTime as _0x46eb5a,takeUntil as _0x54b271,switchMap as _0x4b9d13}from'rxjs/operators';import{MessageType as _0x180cc7,Tooltip as _0x523a7c}from'@univerjs/design';import{IBeforeCloseService as _0x3b10e0,IMessageService as _0x46e149,INotificationService as _0x21df64,useObservable as _0x1866fc,BuiltInUIPart as _0x185249,IUIPartsService as _0x49f7f8}from'@univerjs/ui';import{HTTPService as _0x33691b,WebSocketService as _0x424bbf,MergeInterceptorFactory as _0x5a1e35,HTTPRequest as _0x20d999,IHTTPImplementation as _0x15deac,XHRHTTPImplementation as _0x13c3e0,ThresholdInterceptorFactory as _0x2fe6df}from'@univerjs/network';import{CollaborationEvent as _0x5f441e,parseChangesetToProtocol as _0x2c88b3,ISnapshotServerService as _0x5dfd2d,isTransformMutationFailure as _0x44527a,isTransformMutationsWithChangesetSuccess as _0x2c439f,ITransformService as _0x4a8bc3,RevisionService as _0x6cbd2e,mapDocumentTypeToUniverType as _0x4c831a,isTransformChangesetsSuccess as _0xec58bb,CompressMutationService as _0x413548,parseProtocolChangeset as _0x4ecc3b,SnapshotService as _0x4c83fe,textEncoder as _0x206e33,b64DecodeUnicode as _0x346f8f,isTransformMutationsWithChangesetFailure as _0x5a59dd,UniverCollaborationPlugin as _0x3ee7ed}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x41517f}from'@univerjs/telemetry';function _0x29b0(){const _0x3f0d4b=['getImage','get','collaMsg','[SyncedState]:\x20received\x20acknowledgement.','/-/object/list','SNAPSHOT_INVALID_SNAPSHOT','transformChangesets','removeParam','setShapeProps','uploadFileServerUrl','textRanges','unitId\x20is\x20not\x20found','getRangePointData','min','getUniverSheetInstance','Unknown\x20user','popstate','visibilitychange','red300','onStarting','state$','body','_ws','[DataLoaderController]','sid','_queuedRemoteChangesets','downloadEndpointUrl','_joinRoom','attrs','_resendTimer','FileId','requestParams','_onRecvEvent','set','_isPermissionRej','APPLY_DUPLICATED','OffLineSingle','_saveTaskMap','isEditing','addObjects','APPLY_NON_SEQUENTIAL_REVISION','subscribe','_hovered','UUID','disposeUnit','_collabSessionService','_uiPartsService','assignAColorForMemberID','_univerInstanceService','href','setWaitCount','transformByState','_renderManagerService','cmd','getTime','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_beforeCloseService','onTransformRemoteChangesetByIMECache','uni.network.url-service','_resendWithTimeout','awaitingChangeset','session.connection-failed','_collaborationPaused','_cursors','_onCombEvent','MoveRangeCommandId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onTransformSelections','collabStatus.offline','hasOwnProperty','_collabCursorController','onCommandExecuted','_sheetSkeletonManagerService','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','LIVESHARE_NEW_HOST','_getUploadFileURL','_labelPosition','_checkMissing','OFFLINE','data','_updateSubUnitFromURLParams','createCollaborator','_id','init','startsWith','rgba(255,\x20255,\x20255,\x200.01)','collabStatus.conflict','getParam','_getAnchorBounding','encode','awaiting','getSkeleton','objectID','onRemoteAck','_commentService','copyFileMeta','_onMessage','_replayCachedMutations','updateMember','objectType','_backgroundColor','subunit','moveTo','_onJoinRoomEvent','closeSession','_assignedColors','_colorAssignService','objectActions','_removeRoom','urlChange$','focused$','_transformPreviousActiveRange','has','_transformUndoredo','NOT_COLLAB','headers','_socketMessageSubscription','editing\x20status\x20changed\x20to','_tryEnsureSocket','_clearScheduledTask','_getRedoStack','delete','getRelativeToViewportCoord','/universer-api/stream/file/upload','/universer-api/authz','_entityInit$','getInterceptPoints','reverse','_startCollaboration','m1Prime','socket\x20open.','_startTelemetryCollaborationNewChangeset','image/jpeg','collaboration-session-retry','fetchThroughInterceptors','endRow','Warning','_cursorShapes','joinEvent','_instanceService','setAlpha','appendMutation','_registerDependencies','_scheduleSaving','color','SUBMIT_CHANGESET','hovered','getSheetBySheetId','_lastPointer','visibilityState','top','_session','_revisionService','HEARTBEAT','sheetID','translate(.97)','now','MUTATION','icon','syncEditingCollabCursor','getCurrentRevOfUnit','_render','all','params','clipPath','20SQilKR','getRenderById','url(#$1','FromArray','_getSheetObject','InsertRangeMoveRightCommandId','size','text','PSEUDO_FETCH_MISSING_RESULT','call','_undoRedoService','LIVESHARE_TERMINATE','INGEST','append','catch','csAckEvent','round','onPointerLeave$','getLatestCsReqIdBySid','transformRemoteChangeset','result','leaveEvent','_sendHeartbeat','forEach','...','not_collab','getOwnPropertySymbols','collab-text-anchor-','clear','liveShareOperation','/object/','_collaborationController','assign','_createInitialStateImpl','ws://127.0.0.1:8000/universer-api/comb/connect','reduce','fromCollab','beginPath','memberID','getUndoRedoMutationParamsCache','_onLocalMutation','permission.title','unit-cache-','90VNetzC','event$','_sheetTransformSelectionsService','revision','_handleEvent','current','isArray','_getCtorByUniverType','_setupSubUnitSync','_startDocCollabCursor','origin','registerRenderModule','image/jpg','_removeClearOtherTimer','_replaceFileID','_getDownloadEndpointURL','FETCH_MISSING','_docStateChangeManagerService','HEADER_MENU','setTimeout','_handleHeartbeatEvent','toggleOnline','_transformRemoteChangesetByIMECache','isActive','_shouldReportTelemetry','univer-online-status-icon','_scene','_initCloseConn','_onRefRangeChange','session.will-retry','svg','univerjs-icon\x20univerjs-icon-','_resendTimeout','_tryReconnect','black','USERS_LEAVE','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_injector','lineTo','CHANGESET_SHOULD_RETRY','_commentUpdate$','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','UNKNOWN_CMD','collaboration-client.config','_sendHeartbeatTimer','path','RemoveRowCommandId','getItem','getConfig','enableOfflineEditing','setUndoRedoMutationParamsCache','_onConnectionOpen','TEXT','deepClone','_clearRedo','setConfig','0\x200\x2017\x2016','searchParams','pushState','mutations','collabCursorState$','rev','_pendingMutations','random','session','baseRev','collabStatus.notCollab','getOwnPropertyDescriptor','put','InsertRangeMoveDownCommandId','MSG_FOR_ERROR','/role','initWorkbookPermissionChange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','getAncestorScale','refreshPermission','fillText','_initMergeInterceptor','setItem','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_socketService','readAsDataURL','_snapshotServerService','[CollaborationSessionService]','_initModules','onPointerEnter$','close$','saveImage','_hideTimer','_initStatusComponent','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[CollaborationSessionService]:\x20socket\x20error','_socketReady','_transformUndoRedoStack','substring','colorChannel1','_candidateSocket','fillStyle','_onRemoteACK','JOIN','_refreshCollabCursors','engine','Error\x20on\x20receiving\x20event','_shapes','UNIVER_SHEET','height','editingUnit','collabWebSocketUrl','split','liveShareNewHost','_acknowledgedAwaitingChangeset','COLLAB_WEB_SOCKET_URL','FETCH_MISS','2210748JvtjNk','collaborators','[PendingState]:\x20received\x20rejection.','_onCursorUpdate','_scheduleTimestamp','pauseCollaboration','Undefined','routeKey','getMember','_type','/unit/','getUnitType','open$','_transitionLocked','_httpService','arc','#fff','_imageSourceCache','[UniverCollaborationClientPlugin]','listRoles','putCollaborators','CHANGESET_ACK','unsubscribe','flatMap','_remoteChangesetQueue','fill','activeSheet$','disposeWithMe','measureText','15WjIHlK','getMergeData','m2Prime','currentTheme$','row','_syncEditingCollabCursor','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','?url=','_eventUnsubscribe','CONFLICT','xlink:href','getCellPositionByOffset','SNAPSHOT_HAS_BEEN_REMOVED','INVALID_ARGUMENT','parse','cursorInfo$','randomUUID','HELLO','deleteCollaborator','every','apply','_ensureSubject','_updateLocalCache','_onRemoteRejected','patch','docStateChange$','_collabCursorState$','onRemoteRetry','_toggleOffline','DEFAULT_FILE_NAME','_anchorDot','UNAUTHENTICATED','roles','authzUrl','isPermissionRej','_saveCache','symbol','online','_heartbeatTimer','telemetry\x20info\x20is\x20not\x20initialized','onTransformChange$','save\x20fail\x20reason\x20is\x20','_event$','_state$','addImageSourceCache','_listenToOnlineEvent','actions','Error','updatePermissionPoint','none','_onConflict','roomMembers$','_memberService','concat','bind','160794FbaCRT','_singleActiveUnitService','_handleJoinEvent','on-line-single_clip0_910_349','_permissionService','resend','executeCommand','UPDATE_CURSOR','_loadDoc','univer-online-status-title','YUUMI_SUBSCRIPTION_NOT_FOUND','3ZbzxQM','permission.content','idSuffix','push','purple300','_clearOtherTimers','onlineStatusTitle','_clearHeartbeatTimer','_onFetchMissResult','file','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','onMissingChangesets','_createInitialState','/universer-api/file/{fileID}/sign-url','synced','show','onPointerMove$','currentSkeleton$','allowed','create','ERROR_EXCEED_SIZE','onlineStatusIcon','onMissedChangesetFetched','use','LICENSE_IMPORT_SIZE_EXCEEDED','162245ZejQUH','range','localeService','loginUrlKey','find','ranges','trim','message$','_initUnitPermissionChange','endColumn','_context','saveSheetBlock','\x20-\x20','univer-pro.collaboration-client-socket-service','TOO_MANY_REQUESTS','_localStorageService','_color','transformUndoRedo','INTERNAL_ERROR','_initRequestHeader','map','_configService','div','HttpExport','LICENSE_DISTRO_REJECTED','/collaborator','[OfflineState]:\x20received\x20changeset.','entries','ACTIVE_UNIT_EVENT_CHANNEL','includes','M0\x200H16V16H0z','_refRangeService','auth.needGotoLoginAlert','_online','IDLE','_retryCount','_document','string','LICENSE_MAX_UNITS_EXCEEDED','unitId','_getSnapshotAPIPrefix','width','action','sessionStatus','session.room-full','_getSendChangesetTimeout','_startSheetCollabCursor','doc.mutation.rich-text-editing','0\x200\x2016\x2016','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','change$','length','saveSnapshot','_clearLocalCache','awaiting_with_pending','_notificationService','onRemoteChangeset','[CollaborationEntity]','UNKNOWN_CODE','_throwTelemetryCollaborationNewChangeset','UnitSnapshot','onReady','addEventListener','getTypeOfUnitAdded$','newCsEvent','pluginName','onMouseMove','/rev/','updateOfflineData','offline','_decreaseWaiting','indexOf','getCollabCursors$','_roomMembers','unitID','unshift','commentUpdate$','_toggleOnline','_retryConnectingTimer','[FetchMissState]','key','capture','_range','UNIVER_SLIDE','selection','_messageService','_getCurrentRevision','_telemetryService','restore','_awaitingChangeset','history','_docTransformSelectionsService','FAIL','collabStatus.syncing','1em','some','ALREADY_EXISTS','_anchor','NO_OTHER_CLIENTS_EDITING','getUnitId','_cursorInfo$','ERROR_IMAGE_TYPE','exhaustSavingTask','[OfflineState]:\x20received\x20acknowledgement.','_updateState','/object','loadDoc','LIVESHARE_REQUEST_HOST','PENDING','CHANGESET_REJ','_changesetReqId','updateCollaborator','_getUndoStack','_disableEditing','connection\x20error','ONLINE','collaboration_new_changeset','joinRsp','_disabled','drawWith','_name','_redoStacks','RETRY_CONNECTING_MAX_COUNT','_transformStack','pending','_selfUnitIDs','RECT','YUUMI_UNABLE_LOAD_URL','_updateURLWithCurrentState','reqId','_getAPIPrefixPath','DeleteRangeMoveUpCommandId','RemoveColCommandId','LEAVE','univer-online','onRemoteRej','eventID','getCurrentUnitForType','url','registerHTTPInterceptor','_timeoutTimer','_docSyncEditingCollabCursorService','{fileID}','_stopTelemetryCollaborationNewChangeset','onTransformIME','subscribeEvent','OnLineSingle','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','name','off-line-single_clip0_910_343','_docTransformIMECacheService','selections','evenodd','post','debug','originalMeta','from','interceptor','status$','resize','replaceState','defs','_localCacheService','SYNCED','_sendingTimer','Univer','SHOULD_CLOSE_CONN','retryConnectingInterval','onload','_getSaveTimeout','setCurrentUser','USERS_ENTER','clearTimeout','_initCommandExecutedListener','signUrlServerUrl','resolve','ERROR_IMAGE','dispose$','/new_changes','_scheduleHeartbeat','_colorIndex','_onOffline','getCurrent','_drawTextRange','YUUMI_RATE_OVER_LIMIT','_onCursorDelete','submit\x20changeset\x20error!','send','children','_applyRemoteChangeset','hide','fetch_missing','_onRemoteChangeset','conflict','reject','_themeService','url(#on-line-single_clip0_910_349)','extend','startRow','whenReady','fetching\x20missing\x20changesets\x20from\x20','_cursor','disableLocalCache','_initResize','getValue','_lockTransition','clearInterval','sheetId','dispose','_removeCollabCursors','_http','getUnit','onlineStatus','error$','_unlockTransition','_updateCollabCursors','src','tag','_incrementRevisionNumber','_onUserLeave','commentUpdateEvent','_logService','_sender','_sessions','next','155216ZvxXFW','ENSURE_SNAPSHOT_EXECUTION','_roomMembers$','getRandomValues','_entities','_handleLeaveEvent','_registerRenderDependencies','[CollaborationUndoRedoService]','labelPosition','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_HTTPService','_scheduleClearOtherTimer','[SyncedState]:\x20received\x20rejection.','_createHandler','registerBeforeClose','reconnect','close','_rescheduleHeartbeat','946962oiWeaF','triggerDblclick','registerRefRange','asObservable','_localeService','toRgbString','_send','fetchMissingChangesets','/-/object/-/batch_allowed','_config','\x20to\x20','_executeRemoteChangeset','NEW_CHANGESETS','_socket','APPLY_REJECT','socket$','verdancy600','UPDATE_PERMISSION_OBJ','getVpScrollXYInfoByPosToVp','NOT_FOUND','add','_unitOnClients','_onUserJoin','displayName','filter','getCurrentUser','_updateLocalCursor','UNRECOGNIZED','UnitEmbedded','_members','9736188hqzgAE','loadOfflineData','sessionStatus$','_substituteUndoStack','_clearTimeoutTimer','image/gif','_snapshotService','APPLY_REVISION_CONFILICT','defineProperty','_userManagerService','image/png','className','loadSheet','COMPLETION_FINISHED','unknown','onlyLocal','LIVESHARE_OPERATION','_urlService','LOGIN_URL_KEY','/allowed','_getScale','object','save','_sessionStatus$','saveOfflineData','createSocket','APPLY_PERMISSION_DENIED','createElement','_fetchMissChangesets','generateRandomId','createInstance','_textBubble','getViewport','transform','_waitForHeartbeatResponse','getUnitStatus$','csShouldRetryEvent','bottom','COMPRESS_MUTATION_SEND','_compressMutationService','_telemetryInfo','getMemberID','column','COLLAB_SUBMIT_CHANGESET_URL','type','LIVESHARE_FETCH_OPERATIONS','with','addObject','getCollabEntity$','_socket$','AWAITING','transformIMECache','_state','_collaborationTimeoutTimer','RECV','JOINING','stopTime','c1Prime','roomMembers','csRejEvent','_clearUndo','getTypeOfUnitDisposed$','/block/','_handler','_getLoginPath','univer-offline','transformMutation','_collaborationSessionService','_draw','prototype','_drawAnchor','subUnitId','_setupBeforeClosingHandler','[CollaborationState]:\x20apply\x20error!','_showConflictNotification','InsertRowCommandId','_updateStatus','UNIVER_UNKNOWN','conflict.title','\x0aCurrent:\x20','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','setParam','socket\x20close','_changesetSessionId','makeDirty','_drawRectRange','storage','toString','VIEW_MAIN','defIds','pipe','_commandService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','location','univer-pro.collaboration-client.single-active-unit-service','responseType','getDocRanges','_change$','/universer-api/snapshot/','collab-text-range-','_syncEditingCollabCursorService','transformSelections','_init','_status$','max','slice','collab-rect-range-','override','findNodePositionByCharIndex','replaceTextRanges','font','_exhaustRemoteChangesetQueue','cursorInfo','unload','CHANGESET_REVISION_CONFILICT','unit','then','_onConnectionFailed','removeMember','_unitStatus','onSendChangeset','getCollabEntity','_cachedData','enableAuthServer','members','registerComponent','_unitID','update','UNIVER_DOC','HttpImport','COMPRESS_MUTATION_APPLY','_handleHover','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','changesets','_transformService','onCommentUpdate','LICENSE_EXPORT_SIZE_EXCEEDED','compose','BASE64','function','status','312iDTPLK','startColumn','\x0aAfter:\x20','_docSkeletonManagerService','UNDEFINED','getUnhiddenWorksheets','LOCAL_CACHE_INTERVAL','requireSession','_listenToOfflineEvent','off-line-single','encodeURIComponent','json','_initStatusListener','_waitCount','getFocusedUnit','YUUMI_URL_COL_OUT_OF_RANGE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','PERMISSION_DENIED','startTime','_getSignURL','_loadSheet','_transformSelections','blue400','transformMutationsWithChangeset','_scheduleCollaborationTimeoutTimer','toLowerCase','newValue','AWAITING_WITH_PENDING','registerOnClose','stringify','_substituteRedoStack','_hover','64085WAnTDN','POST','complete','values','list','_transformIMECache','UNIVER_PROJECT','[OfflineState]:\x20received\x20rejection.','code','getSheetId','error','OTHER_CLIENTS_EDITING','_getAPIPrefix','toggleOffline','collaboration-client.offline-data-not-saved','_submitChangeset','_schedule','CONNECTOR_DATA_TOO_LARGE','[CollaborationSession]','HEARTBEAT_TIMEOUT'];_0x29b0=function(){return _0x3f0d4b;};return _0x29b0();}function _0x33c3(_0x1e530f,_0x6b97f6){const _0x29b0e1=_0x29b0();return _0x33c3=function(_0x33c38d,_0x22a9a9){_0x33c38d=_0x33c38d-0x18c;let _0x2c9323=_0x29b0e1[_0x33c38d];return _0x2c9323;},_0x33c3(_0x1e530f,_0x6b97f6);}import{DocIMEInputManagerService as _0x153626,DocStateChangeManagerService as _0x12095e,NodePositionConvertToCursor as _0x282c61,NodePositionConvertToRectRange as _0x5264f7,TEXT_RANGE_LAYER_INDEX as _0x38cec6,SetDocZoomRatioOperation as _0x116bc2}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x15d139,SetSelectionsOperation as _0x455e5a,InsertSheetMutation as _0x7b95a6,EmptyMutation as _0x511aa2,WorkbookEditablePermission as _0x52a438,RefRangeService as _0x2ac9c5,EffectRefRangId as _0x1876e5,handleIRemoveRow as _0x99cb29,handleIRemoveCol as _0x5d4634,handleMoveRange as _0x3ba698,handleInsertRow as _0x163f59,handleInsertRangeMoveRight as _0x468a25,handleInsertRangeMoveDown as _0x52a909,handleInsertCol as _0x593430,handleDeleteRangeMoveUp as _0x45cf67,handleDeleteRangeMoveLeft as _0x3f6541,runRefRangeMutations as _0x28e3fe,SetWorksheetActivateCommand as _0x5463e2}from'@univerjs/sheets';import{IRenderManagerService as _0x2855ab,Shape as _0x1d45e8,Rect as _0x16757d,getColor as _0x3c5235,RegularPolygon as _0x57827a,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x18c26b,Vector2 as _0x327598}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x35ae8c,RichTextEditingMutation as _0x179d55,SetTextSelectionsOperation as _0x538b13,DocSkeletonManagerService as _0x429479}from'@univerjs/docs';import{ImageSourceType as _0x4349b6,ImageUploadStatusType as _0xb56f1,IImageIoService as _0x21630a}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x32dcd9,serializeRangeWithSheet as _0x233653}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x1921de,VIEWPORT_KEY as _0x8cdd2a,getCoordByCell as _0x5845e5,getSheetObject as _0x1b8540,SheetPermissionInitController as _0x3d90fa}from'@univerjs/sheets-ui';import _0x588026,{forwardRef as _0x431197,useRef as _0x494e8d,createElement as _0xfdbf34,useCallback as _0x2dcebf}from'react';import{IRemoteInstanceService as _0xa2838}from'@univerjs/rpc';import{getAttachHeader as _0x10e2ee}from'@univerjs-pro/license';const In='SNAPSHOT_SERVER_URL_KEY',En='/universer-api/snapshot',Cn='SNAPSHOT_URL_KEY',Ha='SEND_CHANGESET_TIMEOUT',bn=0x7d0,Tn=_0x173fa3(0x501),Rn=_0x173fa3(0x489),On='HEARTBEAT_INTERVAL',Dn=0x7530,Hs=_0x173fa3(0x3c1),xs=0x4e20,wn=0x4e20,Pn=_0x173fa3(0x26a),yn=0x3,Un=_0x173fa3(0x394),Nn=0x3e8,An=_0x173fa3(0x32c),Mn='/universer-api/comb',Ln=_0x173fa3(0x313),$n='/universer-api/oidc/authpage';var ks=(_0xc7809e=>(_0xc7809e[_0xc7809e[_0x173fa3(0x392)]=0x0]=_0x173fa3(0x392),_0xc7809e[_0xc7809e['OK']=0x1]='OK',_0xc7809e[_0xc7809e[_0x173fa3(0x202)]=0x2]=_0x173fa3(0x202),_0xc7809e[_0xc7809e[_0x173fa3(0x39f)]=0x3]=_0x173fa3(0x39f),_0xc7809e[_0xc7809e[_0x173fa3(0x2f6)]=0x4]=_0x173fa3(0x2f6),_0xc7809e[_0xc7809e[_0x173fa3(0x1b4)]=0x5]=_0x173fa3(0x1b4),_0xc7809e[_0xc7809e['ALREADY_EXISTS']=0x6]=_0x173fa3(0x250),_0xc7809e[_0xc7809e['INVALID_ARGUMENT']=0x7]=_0x173fa3(0x1a2),_0xc7809e[_0xc7809e['TOO_MANY_REQUESTS']=0x8]=_0x173fa3(0x1fe),_0xc7809e[_0xc7809e[_0x173fa3(0x30e)]=0x9]='COMPLETION_FINISHED',_0xc7809e[_0xc7809e[_0x173fa3(0x373)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xc7809e[_0xc7809e[_0x173fa3(0x3c7)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xc7809e[_0xc7809e[_0x173fa3(0x1a1)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xc7809e[_0xc7809e['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x173fa3(0x2d2),_0xc7809e[_0xc7809e[_0x173fa3(0x2f1)]=0x1b59]=_0x173fa3(0x2f1),_0xc7809e[_0xc7809e[_0x173fa3(0x3ea)]=0x1b5a]=_0x173fa3(0x3ea),_0xc7809e[_0xc7809e[_0x173fa3(0x308)]=0x1b5b]=_0x173fa3(0x308),_0xc7809e[_0xc7809e[_0x173fa3(0x31b)]=0x1b5c]=_0x173fa3(0x31b),_0xc7809e[_0xc7809e[_0x173fa3(0x3e5)]=0x1b5d]=_0x173fa3(0x3e5),_0xc7809e[_0xc7809e[_0x173fa3(0x3bf)]=0x1f41]=_0x173fa3(0x3bf),_0xc7809e[_0xc7809e['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x173fa3(0x216),_0xc7809e[_0xc7809e['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x173fa3(0x404),_0xc7809e[_0xc7809e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x173fa3(0x1ef),_0xc7809e[_0xc7809e[_0x173fa3(0x389)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xc7809e[_0xc7809e[_0x173fa3(0x208)]=0x232d]=_0x173fa3(0x208),_0xc7809e[_0xc7809e[_0x173fa3(0x26f)]=0x2711]=_0x173fa3(0x26f),_0xc7809e[_0xc7809e[_0x173fa3(0x39d)]=0x2712]=_0x173fa3(0x39d),_0xc7809e[_0xc7809e[_0x173fa3(0x2a8)]=0x2713]=_0x173fa3(0x2a8),_0xc7809e[_0xc7809e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x173fa3(0x1d6),_0xc7809e[_0xc7809e[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0xc7809e))(ks||{}),B=(_0xc93871=>(_0xc93871[_0xc93871[_0x173fa3(0x34e)]=0x0]=_0x173fa3(0x34e),_0xc93871[_0xc93871['UNIVER_DOC']=0x1]=_0x173fa3(0x381),_0xc93871[_0xc93871['UNIVER_SHEET']=0x2]='UNIVER_SHEET',_0xc93871[_0xc93871['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0xc93871[_0xc93871[_0x173fa3(0x3b4)]=0x4]=_0x173fa3(0x3b4),_0xc93871[_0xc93871[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0xc93871))(B||{}),I=(_0x18d337=>(_0x18d337[_0x18d337[_0x173fa3(0x4bc)]=0x0]='UNKNOWN_CMD',_0x18d337[_0x18d337[_0x173fa3(0x1a6)]=0x1]='HELLO',_0x18d337[_0x18d337[_0x173fa3(0x4f5)]=0x2]=_0x173fa3(0x4f5),_0x18d337[_0x18d337['LEAVE']=0x3]=_0x173fa3(0x275),_0x18d337[_0x18d337[_0x173fa3(0x473)]=0x4]=_0x173fa3(0x473),_0x18d337[_0x18d337[_0x173fa3(0x45b)]=0x5]='HEARTBEAT',_0x18d337[_0x18d337[_0x173fa3(0x337)]=0x6]='RECV',_0x18d337[_0x18d337['UNRECOGNIZED']=-0x1]=_0x173fa3(0x2fe),_0x18d337))(I||{}),Ft=(_0x6213f0=>(_0x6213f0[_0x6213f0[_0x173fa3(0x22a)]=0x0]=_0x173fa3(0x22a),_0x6213f0[_0x6213f0['OK']=0x1]='OK',_0x6213f0[_0x6213f0['FAIL']=0x2]=_0x173fa3(0x24c),_0x6213f0[_0x6213f0['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x6213f0))(Ft||{}),Bs=(_0x47877e=>(_0x47877e[_0x47877e[_0x173fa3(0x509)]=0x0]=_0x173fa3(0x509),_0x47877e[_0x47877e[_0x173fa3(0x382)]=0x1]=_0x173fa3(0x382),_0x47877e[_0x47877e[_0x173fa3(0x207)]=0x2]=_0x173fa3(0x207),_0x47877e[_0x47877e[_0x173fa3(0x2ff)]=0x3]=_0x173fa3(0x2ff),_0x47877e[_0x47877e[_0x173fa3(0x22c)]=0x4]='UnitSnapshot',_0x47877e[_0x47877e[_0x173fa3(0x2fe)]=-0x1]=_0x173fa3(0x2fe),_0x47877e))(Bs||{});const j=_0x173fa3(0x4bd),jn={};function Hn(_0x222a03){const _0x3c22d2=_0x173fa3;var _0xe1f696,_0x334a4b,_0x23d156,_0x5ed75e,_0x53edc1;const _0x994c7e=_0x222a03[_0x3c22d2(0x411)],_0x1f876d=JSON[_0x3c22d2(0x1a3)](_0x994c7e);switch(_0x1f876d[_0x3c22d2(0x3f7)]){case I[_0x3c22d2(0x45b)]:case I['HELLO']:{const _0x442313=_0x1f876d['infoRsp'];return{..._0x1f876d,'data':_0x442313,'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};}case I[_0x3c22d2(0x4f5)]:{const _0x3a4494=_0x1f876d[_0x3c22d2(0x265)];return{..._0x1f876d,'data':_0x3a4494,'cmd':_0x1f876d['cmd']};}case I['RECV']:{const _0x6b3873=_0x1f876d[_0x3c22d2(0x3c4)];switch(_0x6b3873[_0x3c22d2(0x278)]){case _0x5f441e['PERMISSION_REJ']:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0xe1f696=_0x6b3873['permissionRejEvent'])==null?void 0x0:_0xe1f696['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x18d)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x334a4b=_0x6b3873[_0x3c22d2(0x476)])==null?void 0x0:_0x334a4b['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['NEW_CHANGESETS']:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x23d156=_0x6b3873[_0x3c22d2(0x230)])==null?void 0x0:_0x23d156['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x25d)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x5ed75e=_0x6b3873[_0x3c22d2(0x33c)])==null?void 0x0:_0x5ed75e['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x4b9)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':(_0x53edc1=_0x6b3873[_0x3c22d2(0x325)])==null?void 0x0:_0x53edc1['cs']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['UPDATE_CURSOR']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['updateCursorEvent']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x29b)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x44c)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x4b5)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x47c)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['LIVESHARE_NEW_HOST']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['liveShareNewHost']},'cmd':_0x1f876d['cmd']};case _0x5f441e[_0x3c22d2(0x32e)]:case _0x5f441e['LIVESHARE_OPERATION']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x484)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['LIVESHARE_TERMINATE']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x4ff)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['MSG_FOR_ERROR']:return{..._0x1f876d,'data':_0x6b3873,'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e['COMMENT_UPDATE']:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873[_0x3c22d2(0x2cc)]},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x2f4)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['updatePermissionObjEvent']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};case _0x5f441e[_0x3c22d2(0x296)]:return{..._0x1f876d,'data':{..._0x6b3873,'data':_0x6b3873['shouldCloseConn']},'cmd':_0x1f876d[_0x3c22d2(0x3f7)]};default:return _0x1f876d;}}default:return _0x1f876d;}}function xn(_0x5781db){const _0x104400=_0x173fa3;switch(_0x5781db[_0x104400(0x3f7)]){case I[_0x104400(0x45b)]:case I[_0x104400(0x1a6)]:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db[_0x104400(0x50a)]});case I[_0x104400(0x473)]:{let _0x2a7374;switch(_0x5781db[_0x104400(0x411)][_0x104400(0x278)]){case _0x5f441e[_0x104400(0x1d3)]:{_0x2a7374={'eventID':_0x5f441e['UPDATE_CURSOR'],'updateCursorEvent':_0x5781db['data'][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x4b5)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x4b5)],'leaveEvent':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e['USERS_ENTER']:{_0x2a7374={'eventID':_0x5f441e['USERS_ENTER'],'joinEvent':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x40c)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x40c)],'liveShareNewHost':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x311)]:{_0x2a7374={'eventID':_0x5f441e['LIVESHARE_OPERATION'],'liveShareOperation':_0x5781db[_0x104400(0x411)][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x472)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x472)],'liveShareTerminate':_0x5781db['data'][_0x104400(0x411)]};break;}case _0x5f441e[_0x104400(0x25b)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x25b)],'liveShareRequestHost':_0x5781db[_0x104400(0x411)]['data']};break;}case _0x5f441e[_0x104400(0x32e)]:{_0x2a7374={'eventID':_0x5f441e[_0x104400(0x32e)]};break;}default:_0x2a7374={'eventID':_0x5781db[_0x104400(0x411)][_0x104400(0x278)]};}return JSON['stringify']({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db['routeKey'],'collaMsg':_0x2a7374});}case I['JOIN']:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db[_0x104400(0x3f7)],'routeKey':_0x5781db[_0x104400(0x50a)],'joinReq':_0x5781db[_0x104400(0x411)]});case I[_0x104400(0x275)]:return JSON[_0x104400(0x3ab)]({'cmd':_0x5781db['cmd'],'routeKey':_0x5781db[_0x104400(0x50a)],'leaveReq':_0x5781db[_0x104400(0x411)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var kn=Object['defineProperty'],Bn=Object['getOwnPropertyDescriptor'],Vn=(_0x242e4a,_0x56dad6,_0x202e85,_0x580941)=>{const _0x330284=_0x173fa3;for(var _0x34fbc9=_0x580941>0x1?void 0x0:_0x580941?Bn(_0x56dad6,_0x202e85):_0x56dad6,_0x431ca6=_0x242e4a[_0x330284(0x223)]-0x1,_0x16d4da;_0x431ca6>=0x0;_0x431ca6--)(_0x16d4da=_0x242e4a[_0x431ca6])&&(_0x34fbc9=(_0x580941?_0x16d4da(_0x56dad6,_0x202e85,_0x34fbc9):_0x16d4da(_0x34fbc9))||_0x34fbc9);return _0x580941&&_0x34fbc9&&kn(_0x56dad6,_0x202e85,_0x34fbc9),_0x34fbc9;},De=(_0x208009,_0x24940c)=>(_0x3e6c59,_0x30f65f)=>_0x24940c(_0x3e6c59,_0x30f65f,_0x208009);const Vs=_0x1a0c31(_0x173fa3(0x1fd));function Fn(_0x4c7595,_0x2dbda5,_0x3535f4){const _0x5e3ba3=_0x173fa3;return _0x4c7595+'/'+_0x2dbda5+_0x5e3ba3(0x50d)+_0x3535f4+_0x5e3ba3(0x2a2);}let bt=class extends _0x1ed84d{constructor(_0x57ab4e,_0x3efc72,_0x160121,_0x2cc912,_0x5dae2d){const _0x29cb82=_0x173fa3;super(),this['_http']=_0x57ab4e,this[_0x29cb82(0x3d8)]=_0x3efc72,this['_configService']=_0x160121,this[_0x29cb82(0x2cd)]=_0x2cc912,this[_0x29cb82(0x4e4)]=_0x5dae2d;}[_0x173fa3(0x31a)](_0x183677){const _0x2ce8d2=_0x173fa3,_0x5bc1f4=this[_0x2ce8d2(0x3d8)][_0x2ce8d2(0x31a)](_0x183677);if(!_0x5bc1f4)throw new Error(_0x2ce8d2(0x40b));const _0xc5aa70=new _0x1f9c9d(),_0x1a6fca=new _0x54d3a4();_0xc5aa70[_0x2ce8d2(0x2f7)](_0x5bc1f4[_0x2ce8d2(0x4e8)][_0x2ce8d2(0x3eb)](_0xf4fd73=>_0x1a6fca[_0x2ce8d2(0x2d0)](_0xf4fd73))),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x1a6fca[_0x2ce8d2(0x3b0)]()));const _0x167603=new _0x54d3a4();_0xc5aa70['add'](_0x5bc1f4[_0x2ce8d2(0x2c5)]['subscribe'](_0x527f1b=>_0x167603[_0x2ce8d2(0x2d0)](_0x527f1b))),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x167603[_0x2ce8d2(0x3b0)]()));const _0x361412=new _0x54d3a4();_0xc5aa70[_0x2ce8d2(0x2f7)](_0x5bc1f4[_0x2ce8d2(0x1f7)][_0x2ce8d2(0x3eb)](_0x985b7b=>{const _0x3b0d54=_0x2ce8d2,_0x567988=Hn(_0x985b7b);_0x361412[_0x3b0d54(0x2d0)](_0x567988);})),_0xc5aa70[_0x2ce8d2(0x2f7)](_0x4a9188(()=>_0x361412[_0x2ce8d2(0x3b0)]()));let _0x34edee;const _0x450c2f=()=>{const _0xd4b760=_0x2ce8d2;_0x167603['next'](new Event(_0xd4b760(0x262))),_0x1a6fca[_0xd4b760(0x2d0)](new CloseEvent('connection\x20error')),_0x34edee[_0xd4b760(0x2e1)]();};return _0x34edee={'memberID':'','close$':_0x1a6fca['asObservable'](),'error$':_0x167603['asObservable'](),'open$':_0x5bc1f4[_0x2ce8d2(0x50f)],'message$':_0x361412[_0x2ce8d2(0x2e6)](),'send':_0xe4c762=>{const _0x3726f5=_0x2ce8d2;if(_0xe4c762[_0x3726f5(0x3f7)]===I['INGEST']){if(_0xe4c762[_0x3726f5(0x411)]['eventID']===_0x5f441e[_0x3726f5(0x453)]){this[_0x3726f5(0x3bd)](_0x34edee,_0xe4c762[_0x3726f5(0x411)])[_0x3726f5(0x475)](_0xbb9056=>{const _0x29d05d=_0x3726f5;this[_0x29d05d(0x2cd)]['error'](_0xbb9056),_0x450c2f();});return;}if(_0xe4c762[_0x3726f5(0x411)][_0x3726f5(0x278)]===_0x5f441e[_0x3726f5(0x4a2)]){const _0x2d351c=_0xe4c762[_0x3726f5(0x411)];this[_0x3726f5(0x31d)](_0x2d351c)[_0x3726f5(0x375)](_0x428c38=>{const _0x286b30=_0x3726f5;_0x361412['next']({'cmd':I[_0x286b30(0x337)],'code':Ft['OK'],'routeKey':_0x2d351c['data'][_0x286b30(0x23a)],'routeType':'','data':{'eventID':_0x5f441e['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x428c38}}});})[_0x3726f5(0x475)](_0x9f284a=>{const _0x1f5442=_0x3726f5;this['_logService'][_0x1f5442(0x3b8)](_0x9f284a),_0x450c2f();});return;}}_0x5bc1f4[_0x3726f5(0x2ab)](xn(_0xe4c762));},'close':()=>{const _0x2f5613=_0x2ce8d2;_0x5bc1f4[_0x2f5613(0x2e1)](),_0xc5aa70[_0x2f5613(0x2c0)]();}},_0x34edee;}async[_0x173fa3(0x3bd)](_0x46ebd4,_0x5eb260){const _0x168198=_0x173fa3;var _0x29f0bd,_0x4b66d6;const {unitType:_0x2c75c8,unitID:_0x5696cc,changeset:_0x13f51a}=_0x5eb260['data'],_0x59c27b={'unitID':_0x5696cc,'memberID':_0x46ebd4[_0x168198(0x48d)],'type':_0x2c75c8,'changeset':_0x2c88b3(_0x13f51a)},_0xe736ac=this['_configService'][_0x168198(0x4c2)](An),_0x5c9cd2=this[_0x168198(0x205)]['getConfig'](j),_0xc626d4=Fn((_0x4b66d6=(_0x29f0bd=_0x5c9cd2==null?void 0x0:_0x5c9cd2['collabSubmitChangesetUrl'])!=null?_0x29f0bd:_0xe736ac)!=null?_0x4b66d6:Mn,_0x2c75c8,_0x5696cc);try{await this[_0x168198(0x2c2)][_0x168198(0x289)](_0xc626d4,{'body':_0x59c27b});}catch(_0x5f1a6e){throw this['_logService'][_0x168198(0x3b8)](_0x168198(0x3c0),_0x168198(0x2aa)),_0x5f1a6e;}}async[_0x173fa3(0x31d)](_0x5d8e0a){const _0x1929d8=_0x173fa3,{unitID:_0x1d8d0c,from:_0x4e8a2f,to:_0x40c338,unitType:_0x2683ba}=_0x5d8e0a['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1d8d0c,'type':_0x2683ba,'from':_0x4e8a2f,'to':_0x40c338}))[_0x1929d8(0x386)];}};bt=Vn([De(0x0,_0x4f7ed2(_0x33691b)),De(0x1,_0x4f7ed2(_0x424bbf)),De(0x2,_0x13b27e),De(0x3,_0x4329b1),De(0x4,_0x5dfd2d)],bt);const Wn=_0x173fa3(0x264);function Gn(_0x338746){const _0x4133a9=_0x173fa3;return JSON[_0x4133a9(0x3ab)](_0x338746)[_0x4133a9(0x223)];}class Fs{constructor(){const _0x78ca80=_0x173fa3;l(this,_0x78ca80(0x4ba),new _0x54d3a4()),l(this,_0x78ca80(0x23c),this[_0x78ca80(0x4ba)][_0x78ca80(0x2e6)]());}[_0x173fa3(0x388)](_0x139a89){const _0x4923ce=_0x173fa3;this[_0x4923ce(0x4ba)]['next'](_0x139a89);}}var Yn=Object[_0x173fa3(0x309)],Kn=Object[_0x173fa3(0x4d5)],Xn=(_0xcd06fa,_0x1c81fa,_0x2e57a0,_0x4b1c45)=>{for(var _0x3baf2d=_0x4b1c45>0x1?void 0x0:_0x4b1c45?Kn(_0x1c81fa,_0x2e57a0):_0x1c81fa,_0x4a7bc7=_0xcd06fa['length']-0x1,_0x4b7b78;_0x4a7bc7>=0x0;_0x4a7bc7--)(_0x4b7b78=_0xcd06fa[_0x4a7bc7])&&(_0x3baf2d=(_0x4b1c45?_0x4b7b78(_0x1c81fa,_0x2e57a0,_0x3baf2d):_0x4b7b78(_0x3baf2d))||_0x3baf2d);return _0x4b1c45&&_0x3baf2d&&Yn(_0x1c81fa,_0x2e57a0,_0x3baf2d),_0x3baf2d;},cs=(_0x222d93,_0x5a4081)=>(_0x1ed2b4,_0x1e85bd)=>_0x5a4081(_0x1ed2b4,_0x1e85bd,_0x222d93);let _e=class extends _0x1ed84d{constructor(_0x26acc8,_0x4fb5b1){const _0x213161=_0x173fa3;super(),l(this,_0x213161(0x239),new Map()),(this[_0x213161(0x3f2)]=_0x26acc8,this[_0x213161(0x30a)]=_0x4fb5b1,this['disposeWithMe'](_0x4a9188(_0x378f3d(this[_0x213161(0x3f2)][_0x213161(0x33e)](_0x159e2d[_0x213161(0x4fa)])[_0x213161(0x35b)](_0x595c33(_0x25a4bc=>_0x25a4bc[_0x213161(0x253)]())),this['_univerInstanceService'][_0x213161(0x33e)](_0x159e2d[_0x213161(0x381)])[_0x213161(0x35b)](_0x595c33(_0x10a951=>_0x10a951[_0x213161(0x253)]())),this[_0x213161(0x3f2)]['getTypeOfUnitDisposed$'](_0x159e2d[_0x213161(0x243)])[_0x213161(0x35b)](_0x595c33(_0x5e10ed=>_0x5e10ed[_0x213161(0x253)]())))[_0x213161(0x3eb)](_0x111b72=>this[_0x213161(0x42e)](_0x111b72)))));}['setCurrentUser'](_0x5ab078){const _0x50d072=_0x173fa3;this['_userManagerService'][_0x50d072(0x29a)](_0x5ab078);}[_0x173fa3(0x2fc)](){const _0x2a4768=_0x173fa3;return this[_0x2a4768(0x30a)][_0x2a4768(0x2fc)]();}[_0x173fa3(0x424)](_0x27e41e,_0x584abd){const _0x3f4f83=_0x173fa3;let _0x535aca=this[_0x3f4f83(0x239)][_0x3f4f83(0x3c3)](_0x27e41e);_0x535aca||(_0x535aca=new qn(),this[_0x3f4f83(0x239)]['set'](_0x27e41e,_0x535aca)),_0x535aca['updateMember'](_0x584abd);}[_0x173fa3(0x377)](_0x181b3f,_0xf4914){const _0x168084=_0x173fa3,_0x2ebac2=this['_roomMembers'][_0x168084(0x3c3)](_0x181b3f);_0x2ebac2&&_0x2ebac2[_0x168084(0x377)](_0xf4914);}['getRoom'](_0x2de059){const _0x4d008f=_0x173fa3;return this['_roomMembers'][_0x4d008f(0x3c3)](_0x2de059);}[_0x173fa3(0x50b)](_0x586720,_0x48802a){const _0x1c8df7=_0x173fa3,_0x1f7c5c=this[_0x1c8df7(0x239)][_0x1c8df7(0x3c3)](_0x586720);if(_0x1f7c5c)return _0x1f7c5c[_0x1c8df7(0x50b)](_0x48802a);}[_0x173fa3(0x42e)](_0x690584){const _0x8867a7=_0x173fa3,_0x30f0d7=this[_0x8867a7(0x239)][_0x8867a7(0x3c3)](_0x690584);_0x30f0d7&&(_0x30f0d7['dispose'](),this['_roomMembers'][_0x8867a7(0x43b)](_0x690584));}[_0x173fa3(0x2c0)](){const _0x50f5bf=_0x173fa3;this[_0x50f5bf(0x239)]['forEach'](_0x19d221=>_0x19d221[_0x50f5bf(0x2c0)]()),this[_0x50f5bf(0x239)][_0x50f5bf(0x483)]();}};_e=Xn([cs(0x0,_0x1e8ecc),cs(0x1,_0x4f7ed2(_0x12c9bc))],_e);class qn extends _0x1ed84d{constructor(){const _0x51801c=_0x173fa3;super(...arguments),l(this,_0x51801c(0x300),new Map());}[_0x173fa3(0x2c0)](){const _0x2f1115=_0x173fa3;this['_members'][_0x2f1115(0x483)]();}[_0x173fa3(0x424)](_0x4525b6){const _0x39553e=_0x173fa3;this['_members'][_0x39553e(0x3e3)](_0x4525b6[_0x39553e(0x48d)],_0x4525b6);}['removeMember'](_0x322f91){const _0x11b163=_0x173fa3;this[_0x11b163(0x300)][_0x11b163(0x43b)](_0x322f91);}[_0x173fa3(0x50b)](_0x4dc039){const _0x14c231=_0x173fa3;return this[_0x14c231(0x300)][_0x14c231(0x3c3)](_0x4dc039);}}var Jn=Object[_0x173fa3(0x309)],zn=Object[_0x173fa3(0x4d5)],Zn=(_0x1374c5,_0x5dc884,_0x58ed1a,_0x1c88c5)=>{const _0x4f32c5=_0x173fa3;for(var _0x2eceb5=_0x1c88c5>0x1?void 0x0:_0x1c88c5?zn(_0x5dc884,_0x58ed1a):_0x5dc884,_0x1c1796=_0x1374c5[_0x4f32c5(0x223)]-0x1,_0xb3d6a4;_0x1c1796>=0x0;_0x1c1796--)(_0xb3d6a4=_0x1374c5[_0x1c1796])&&(_0x2eceb5=(_0x1c88c5?_0xb3d6a4(_0x5dc884,_0x58ed1a,_0x2eceb5):_0xb3d6a4(_0x2eceb5))||_0x2eceb5);return _0x1c88c5&&_0x2eceb5&&Jn(_0x5dc884,_0x58ed1a,_0x2eceb5),_0x2eceb5;},Z=(_0x24147d,_0xa9673f)=>(_0x22ff50,_0x2dd748)=>_0xa9673f(_0x22ff50,_0x2dd748,_0x24147d),X=(_0xd5556e=>(_0xd5556e[_0xd5556e[_0x173fa3(0x212)]=0x0]='IDLE',_0xd5556e[_0xd5556e['JOINING']=0x1]=_0x173fa3(0x338),_0xd5556e[_0xd5556e['OFFLINE']=0x2]=_0x173fa3(0x410),_0xd5556e[_0xd5556e[_0x173fa3(0x263)]=0x3]=_0x173fa3(0x263),_0xd5556e))(X||{});let Tt=class extends _0x13ba8e{constructor(_0x230a94,_0x48a46e,_0x2b06e9,_0x1dbea7,_0xd0e1e2,_0x59165f,_0x4c8ece,_0x23a74,_0x496bb4,_0x1a975e){const _0x3a5e18=_0x173fa3;super(),l(this,_0x3a5e18(0x318),new _0x37b5ce(0x0)),l(this,'sessionStatus$',this[_0x3a5e18(0x318)][_0x3a5e18(0x2e6)]()),l(this,_0x3a5e18(0x1bf),new _0x54d3a4()),l(this,'event$',this[_0x3a5e18(0x1bf)][_0x3a5e18(0x2e6)]()),l(this,_0x3a5e18(0x2f0)),l(this,'_socketMessageSubscription'),l(this,_0x3a5e18(0x336)),l(this,'_shouldReportTelemetry',!0x1),l(this,_0x3a5e18(0x329),null),(this[_0x3a5e18(0x37f)]=_0x230a94,this[_0x3a5e18(0x2cd)]=_0x2b06e9,this[_0x3a5e18(0x3fa)]=_0x1dbea7,this[_0x3a5e18(0x245)]=_0xd0e1e2,this[_0x3a5e18(0x205)]=_0x59165f,this[_0x3a5e18(0x2e7)]=_0x4c8ece,this[_0x3a5e18(0x1c9)]=_0x23a74,this[_0x3a5e18(0x420)]=_0x496bb4,this[_0x3a5e18(0x247)]=_0x1a975e,this[_0x3a5e18(0x4aa)]=!!this[_0x3a5e18(0x247)],_0x48a46e[_0x3a5e18(0x35b)](_0x223895(this[_0x3a5e18(0x2a1)]))[_0x3a5e18(0x3eb)](_0x105623=>{const _0x5ca9b9=_0x3a5e18;var _0x58a414;typeof _0x105623>'u'||(this[_0x5ca9b9(0x2f0)]=_0x105623,_0x105623?(this[_0x5ca9b9(0x3dd)](_0x105623),this[_0x5ca9b9(0x436)]=_0x105623[_0x5ca9b9(0x1f7)][_0x5ca9b9(0x3eb)](_0x1639a1=>{const _0x133d88=_0x5ca9b9;_0x1639a1[_0x133d88(0x50a)]===this['_unitID']&&this[_0x133d88(0x402)](_0x1639a1);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5ca9b9(0x318)]['next'](0x2),(_0x58a414=this['_socketMessageSubscription'])==null||_0x58a414['unsubscribe'](),this[_0x5ca9b9(0x436)]=null));}),this['disposeWithMe'](this[_0x3a5e18(0x3fa)][_0x3a5e18(0x3aa)](()=>{const _0x362c53=_0x3a5e18;var _0x2703f4;(_0x2703f4=this[_0x362c53(0x2f0)])==null||_0x2703f4[_0x362c53(0x2ab)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x362c53(0x37f)]}});})));}get[_0x173fa3(0x21b)](){const _0x40161c=_0x173fa3;return this[_0x40161c(0x318)]['getValue']();}[_0x173fa3(0x32a)](){const _0x22a913=_0x173fa3;var _0xd88e7d,_0x482b4b;return(_0x482b4b=(_0xd88e7d=this['_socket'])==null?void 0x0:_0xd88e7d[_0x22a913(0x48d)])!=null?_0x482b4b:null;}[_0x173fa3(0x2c0)](){const _0x1114d2=_0x173fa3;super[_0x1114d2(0x2c0)](),this[_0x1114d2(0x2a1)][_0x1114d2(0x2d0)](),this['dispose$'][_0x1114d2(0x3b0)]();}[_0x173fa3(0x2e1)](){const _0x2ecbac=_0x173fa3;var _0x27b5b3,_0x1af916;this[_0x2ecbac(0x22b)](),(_0x27b5b3=this['_socket'])==null||_0x27b5b3[_0x2ecbac(0x2ab)]({'cmd':I[_0x2ecbac(0x275)],'data':{'roomID':this['_unitID']}}),(_0x1af916=this[_0x2ecbac(0x2f0)])==null||_0x1af916[_0x2ecbac(0x2e1)](),this[_0x2ecbac(0x1bf)]['complete'](),this[_0x2ecbac(0x318)][_0x2ecbac(0x3b0)](),this['dispose']();}[_0x173fa3(0x402)](_0x2de260){const _0x512df0=_0x173fa3;_0x2de260[_0x512df0(0x3f7)]===I[_0x512df0(0x4f5)]?this[_0x512df0(0x429)](_0x2de260):_0x2de260['cmd']===I[_0x512df0(0x337)]&&this['_onRecvEvent'](_0x2de260);}[_0x173fa3(0x3dd)](_0x1bb5c0){const _0x45c229=_0x173fa3;this[_0x45c229(0x318)][_0x45c229(0x2d0)](0x1),_0x1bb5c0[_0x45c229(0x2ab)]({'cmd':I[_0x45c229(0x4f5)],'routeKey':this[_0x45c229(0x37f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x45c229(0x37f)]}]}});}[_0x173fa3(0x429)](_0x20196e){const _0x319693=_0x173fa3;var _0x102a4c;if(_0x20196e[_0x319693(0x3b6)]===Ft['FAIL']){this[_0x319693(0x245)]['show']({'type':_0x180cc7[_0x319693(0x44a)],'content':this[_0x319693(0x2e7)]['t'](_0x319693(0x21c))}),this[_0x319693(0x318)][_0x319693(0x2d0)](0x2);return;}this[_0x319693(0x318)]['next'](0x3);const _0x267b7a=(_0x102a4c=_0x20196e[_0x319693(0x411)]['roomInfos'][this[_0x319693(0x37f)]])==null?void 0x0:_0x102a4c[_0x319693(0x37d)];_0x267b7a&&_0x267b7a[_0x319693(0x47e)](_0x4fa663=>this[_0x319693(0x1c9)]['updateMember'](this[_0x319693(0x37f)],_0x4fa663));}[_0x173fa3(0x3e2)](_0x510702){const _0xa8b289=_0x173fa3;try{const _0x11ec3c=_0x510702[_0xa8b289(0x411)];switch(_0x11ec3c['eventID']){case _0x5f441e['USERS_ENTER']:this[_0xa8b289(0x2f9)](_0x11ec3c),this['_event$'][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e['USERS_LEAVE']:this[_0xa8b289(0x2cb)](_0x11ec3c),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e[_0xa8b289(0x18d)]:case _0x5f441e[_0xa8b289(0x4b9)]:this[_0xa8b289(0x27f)](),this['_clearCollaborationTimeoutTimer'](),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e[_0xa8b289(0x4d8)]:this['_logService'][_0xa8b289(0x3b8)](_0xa8b289(0x1be)+JSON[_0xa8b289(0x3ab)](_0x11ec3c)),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;case _0x5f441e['COMMENT_UPDATE']:this[_0xa8b289(0x420)][_0xa8b289(0x388)](_0x11ec3c[_0xa8b289(0x411)]),this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);break;default:this[_0xa8b289(0x1bf)][_0xa8b289(0x2d0)](_0x11ec3c);}}catch(_0x4fde47){this['_logService']['error'](_0x4fde47,_0x510702);}}[_0x173fa3(0x2f9)](_0x37987f){const _0x4e5357=_0x173fa3;this[_0x4e5357(0x1c9)]['updateMember'](this[_0x4e5357(0x37f)],_0x37987f[_0x4e5357(0x411)]);}['_onUserLeave'](_0x3715f7){const _0x209d2f=_0x173fa3;this[_0x209d2f(0x1c9)][_0x209d2f(0x377)](this[_0x209d2f(0x37f)],_0x3715f7['data'][_0x209d2f(0x48d)]);}async[_0x173fa3(0x2ab)](_0x6e0d94,_0x4d7b83){const _0x51f77b=_0x173fa3;if(this[_0x51f77b(0x21b)]!==0x3||!this[_0x51f77b(0x2f0)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x6e0d94[_0x51f77b(0x278)]===_0x5f441e[_0x51f77b(0x453)]&&(this[_0x51f77b(0x3a6)](),this[_0x51f77b(0x445)](_0x6e0d94)),this[_0x51f77b(0x2f0)][_0x51f77b(0x2ab)]({'cmd':I[_0x51f77b(0x473)],'routeKey':_0x4d7b83,'routeType':'','data':_0x6e0d94});}catch(_0x70a314){this[_0x51f77b(0x2cd)][_0x51f77b(0x3b8)](_0x70a314);}}[_0x173fa3(0x3a6)](){const _0x359a43=_0x173fa3;var _0x5e1e48;this[_0x359a43(0x336)]=window[_0x359a43(0x4a5)](()=>{const _0x304c4e=_0x359a43;this[_0x304c4e(0x336)]=null,this[_0x304c4e(0x245)]['show']({'type':_0x180cc7['Error'],'content':this[_0x304c4e(0x2e7)]['t']('session.collaboration-timeout')});},(_0x5e1e48=this[_0x359a43(0x205)][_0x359a43(0x4c2)](Hs))!=null?_0x5e1e48:xs);}['_clearCollaborationTimeoutTimer'](){const _0x43e309=_0x173fa3;this[_0x43e309(0x336)]&&(clearTimeout(this[_0x43e309(0x336)]),this[_0x43e309(0x336)]=null);}[_0x173fa3(0x445)](_0x4b5a56){const _0x119bd5=_0x173fa3;if(!this[_0x119bd5(0x4aa)])return;const {data:_0x47044c}=_0x4b5a56,{unitID:_0x420e37,changeset:_0x48e3d0}=_0x47044c,{mutations:_0x265701,type:_0x365ea6}=_0x48e3d0;this[_0x119bd5(0x329)]={'unitId':_0x420e37,'type':_0x365ea6,'startTime':performance[_0x119bd5(0x45e)](),'stopTime':0x0,'duration':0x0,'size':Gn(_0x265701)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3dcc8b=_0x173fa3;if(this[_0x3dcc8b(0x4aa)]){if(!this[_0x3dcc8b(0x329)]){this[_0x3dcc8b(0x2cd)]['error'](_0x3dcc8b(0x3c0),_0x3dcc8b(0x1bc));return;}this[_0x3dcc8b(0x329)][_0x3dcc8b(0x339)]=performance[_0x3dcc8b(0x45e)](),this['_telemetryInfo']['duration']=this[_0x3dcc8b(0x329)][_0x3dcc8b(0x339)]-this[_0x3dcc8b(0x329)][_0x3dcc8b(0x3a0)],this['_telemetryService'][_0x3dcc8b(0x241)](Wn,this['_telemetryInfo']),this[_0x3dcc8b(0x329)]=null;}}[_0x173fa3(0x22b)](){const _0x58a418=_0x173fa3;this[_0x58a418(0x329)]=null;}};Tt=Zn([Z(0x2,_0x4329b1),Z(0x3,_0x3b10e0),Z(0x4,_0x46e149),Z(0x5,_0x13b27e),Z(0x6,_0x4f7ed2(_0x15839b)),Z(0x7,_0x4f7ed2(_e)),Z(0x8,_0x4f7ed2(Fs)),Z(0x9,_0x532e88(_0x41517f))],Tt);var Qn=Object['defineProperty'],er=Object[_0x173fa3(0x4d5)],tr=(_0x31d96d,_0x59c4ce,_0x174dac,_0x1508a7)=>{for(var _0x3df69b=_0x1508a7>0x1?void 0x0:_0x1508a7?er(_0x59c4ce,_0x174dac):_0x59c4ce,_0x887955=_0x31d96d['length']-0x1,_0x5071d7;_0x887955>=0x0;_0x887955--)(_0x5071d7=_0x31d96d[_0x887955])&&(_0x3df69b=(_0x1508a7?_0x5071d7(_0x59c4ce,_0x174dac,_0x3df69b):_0x5071d7(_0x3df69b))||_0x3df69b);return _0x1508a7&&_0x3df69b&&Qn(_0x59c4ce,_0x174dac,_0x3df69b),_0x3df69b;},Se=(_0x18103f,_0x2b26a7)=>(_0x48b0cd,_0x3e4dee)=>_0x2b26a7(_0x48b0cd,_0x3e4dee,_0x18103f);let ue=class extends _0x1ed84d{constructor(_0x4d0e1a,_0x100e65,_0x388bbe,_0x2dbb9d,_0x22d99a,_0x56ea52){const _0x4fd865=_0x173fa3;super(),l(this,_0x4fd865(0x332),new _0x37b5ce(void 0x0)),l(this,_0x4fd865(0x2f2),this[_0x4fd865(0x332)][_0x4fd865(0x2e6)]()),l(this,_0x4fd865(0x4f2),null),l(this,'_sessions',new Map()),l(this,_0x4fd865(0x368),new _0x37b5ce(X[_0x4fd865(0x212)])),l(this,_0x4fd865(0x28e),this[_0x4fd865(0x368)][_0x4fd865(0x2e6)]()),l(this,_0x4fd865(0x4ee),!0x1),l(this,_0x4fd865(0x23e)),l(this,_0x4fd865(0x213),0x0),l(this,_0x4fd865(0x4be)),l(this,'_timeoutTimer'),(this['_injector']=_0x4d0e1a,this['_localeService']=_0x100e65,this[_0x4fd865(0x245)]=_0x388bbe,this[_0x4fd865(0x2cd)]=_0x2dbb9d,this[_0x4fd865(0x205)]=_0x22d99a,this[_0x4fd865(0x4e2)]=_0x56ea52,this['_initEventListeners']());}get[_0x173fa3(0x2f0)](){return this['_socket$']['getValue']();}['_initEventListeners'](){this['_listenToOfflineEvent'](),this['_listenToOnlineEvent']();}[_0x173fa3(0x2c0)](){const _0x530e41=_0x173fa3;super[_0x530e41(0x2c0)](),this[_0x530e41(0x2cf)][_0x530e41(0x47e)](_0x220ce4=>_0x220ce4[_0x530e41(0x2c0)]()),this[_0x530e41(0x2cf)][_0x530e41(0x483)](),this[_0x530e41(0x368)][_0x530e41(0x3b0)]();}async[_0x173fa3(0x395)](_0x3f71d8){const _0x5ebd01=_0x173fa3;if(this['_sessions']['has'](_0x3f71d8))return this[_0x5ebd01(0x2cf)]['get'](_0x3f71d8);this[_0x5ebd01(0x438)]();const _0x3b09c9=this[_0x5ebd01(0x4b7)][_0x5ebd01(0x31f)](Tt,_0x3f71d8,this['_socket$'][_0x5ebd01(0x2e6)]());return this[_0x5ebd01(0x2cf)][_0x5ebd01(0x3e3)](_0x3f71d8,_0x3b09c9),_0x3b09c9;}[_0x173fa3(0x42a)](_0x1e8efb){const _0x5932cf=_0x173fa3;var _0x55f63f;const _0x1263e7=this[_0x5932cf(0x2cf)][_0x5932cf(0x3c3)](_0x1e8efb);_0x1263e7&&(this[_0x5932cf(0x2cf)][_0x5932cf(0x43b)](_0x1e8efb),_0x1263e7['close']()),this[_0x5932cf(0x2cf)][_0x5932cf(0x46d)]||(_0x55f63f=this[_0x5932cf(0x2f0)])==null||_0x55f63f[_0x5932cf(0x2e1)]();}[_0x173fa3(0x2e0)](){const _0x1a670c=_0x173fa3;this[_0x1a670c(0x213)]=0x0,this[_0x1a670c(0x23e)]!=null&&(clearTimeout(this[_0x1a670c(0x23e)]),this[_0x1a670c(0x23e)]=null),this['_tryReconnect']();}['_createSocket'](){const _0x18aefc=_0x173fa3;var _0x468bf2,_0x4786e6;const _0x298def=this[_0x18aefc(0x205)]['getConfig'](Tn),_0x39dcdb=this[_0x18aefc(0x205)]['getConfig'](j),_0xccf206=(_0x4786e6=(_0x468bf2=_0x39dcdb==null?void 0x0:_0x39dcdb[_0x18aefc(0x4fd)])!=null?_0x468bf2:_0x298def)!=null?_0x4786e6:Rn,_0x39f643=this[_0x18aefc(0x4e2)][_0x18aefc(0x31a)](_0xccf206);return this[_0x18aefc(0x4f2)]=_0x39f643,_0x39f643;}[_0x173fa3(0x438)](){const _0xc8e66c=_0x173fa3;var _0x1ffc17,_0xdfa0d7;try{const _0x2cf624=(_0xdfa0d7=(_0x1ffc17=this[_0xc8e66c(0x2f0)])!=null?_0x1ffc17:this[_0xc8e66c(0x4f2)])!=null?_0xdfa0d7:this['_createSocket']();if(_0x2cf624){const _0x496989=_0x2cf624['send'];_0x2cf624[_0xc8e66c(0x2ab)]=_0x1fd5b1=>(this['_rescheduleHeartbeat'](),_0x496989[_0xc8e66c(0x1a9)](_0x2cf624,[_0x1fd5b1])),_0x2cf624[_0xc8e66c(0x1f7)][_0xc8e66c(0x3eb)](_0x227e54=>this[_0xc8e66c(0x422)](_0x2cf624,_0x227e54)),_0x2cf624[_0xc8e66c(0x2c5)]['pipe'](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](_0x526f76=>this['_logService']['error'](_0xc8e66c(0x4ed),_0x526f76)),_0x2cf624[_0xc8e66c(0x50f)]['pipe'](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](()=>{this['_onConnectionOpen'](_0x2cf624);}),_0x2cf624[_0xc8e66c(0x4e8)][_0xc8e66c(0x35b)](_0x4b16ab(0x1))[_0xc8e66c(0x3eb)](_0x594c6b=>{const _0x4c46a3=_0xc8e66c;this['_logService']['debug'](_0x4c46a3(0x4e5),_0x4c46a3(0x353),_0x594c6b),this[_0x4c46a3(0x376)]();});}}catch(_0xeef5ec){this[_0xc8e66c(0x2cd)][_0xc8e66c(0x3b8)](_0xeef5ec),this['_onConnectionFailed']();}}[_0x173fa3(0x4c5)](_0x48231e){const _0x26da6e=_0x173fa3;this['_logService'][_0x26da6e(0x28a)](_0x26da6e(0x4e5),_0x26da6e(0x444)),_0x48231e[_0x26da6e(0x2ab)]({'cmd':I[_0x26da6e(0x1a6)]}),this[_0x26da6e(0x2e2)]();}[_0x173fa3(0x396)](){const _0x2583f6=_0x173fa3;window['addEventListener'](_0x2583f6(0x235),()=>this[_0x2583f6(0x2a5)]());}['_onOffline'](){const _0x2a058c=_0x173fa3;this['_socketReady']=!0x1,this[_0x2a058c(0x4f2)]=null,this[_0x2a058c(0x368)][_0x2a058c(0x2d0)](X['OFFLINE']),this[_0x2a058c(0x332)]['next'](null),this[_0x2a058c(0x305)](),this['_clearHeartbeatTimer']();}[_0x173fa3(0x376)](){const _0xd47cdc=_0x173fa3;var _0xbfca80;this[_0xd47cdc(0x2a5)](),this['_retryCount']<((_0xbfca80=this['_configService'][_0xd47cdc(0x4c2)](Pn))!=null?_0xbfca80:yn)?(this[_0xd47cdc(0x245)][_0xd47cdc(0x1e6)]({'key':_0xd47cdc(0x447),'type':_0x180cc7[_0xd47cdc(0x44a)],'content':this[_0xd47cdc(0x2e7)]['t'](_0xd47cdc(0x4af))}),this[_0xd47cdc(0x4b3)]()):this[_0xd47cdc(0x245)][_0xd47cdc(0x1e6)]({'key':_0xd47cdc(0x447),'type':_0x180cc7[_0xd47cdc(0x1c4)],'content':this[_0xd47cdc(0x2e7)]['t'](_0xd47cdc(0x3ff))});}[_0x173fa3(0x1c2)](){const _0xb41e8a=_0x173fa3,_0x2f7fa9=()=>{const _0x520080=_0x33c3;this[_0x520080(0x2f0)]||this[_0x520080(0x2e0)]();},_0x2821a7=()=>{const _0x1263d8=_0x33c3;this[_0x1263d8(0x2f0)]||document[_0x1263d8(0x457)]==='hidden'||this[_0x1263d8(0x2e0)]();};window[_0xb41e8a(0x22e)](_0xb41e8a(0x1ba),_0x2f7fa9),document[_0xb41e8a(0x22e)](_0xb41e8a(0x3d3),_0x2821a7);}[_0x173fa3(0x4b3)](){const _0x259236=_0x173fa3;var _0xe62698;const _0x521af8=this['_retryCount'],_0x5cef78=this['_configService']['getConfig'](j),_0x39d283=_0x521af8===0x0?0x0:((_0xe62698=_0x5cef78==null?void 0x0:_0x5cef78[_0x259236(0x297)])!=null?_0xe62698:wn)*0x2**_0x521af8;this[_0x259236(0x23e)]=window[_0x259236(0x4a5)](()=>{const _0x6072d1=_0x259236;clearTimeout(this['_retryConnectingTimer']),this[_0x6072d1(0x23e)]=null,this['_tryEnsureSocket']();},_0x39d283),this['_retryCount']+=0x1;}[_0x173fa3(0x422)](_0x2c710c,_0x4396a7){const _0x174709=_0x173fa3,{cmd:_0x40baed}=_0x4396a7;_0x40baed===I[_0x174709(0x1a6)]&&!this['_socketReady']&&(_0x2c710c[_0x174709(0x48d)]=_0x4396a7[_0x174709(0x411)][_0x174709(0x48d)],this[_0x174709(0x332)]['next'](_0x2c710c),this[_0x174709(0x368)][_0x174709(0x2d0)](X[_0x174709(0x263)]),this['_socketReady']=!0x0,this[_0x174709(0x4f2)]=null),_0x40baed===I[_0x174709(0x45b)]&&this[_0x174709(0x305)](),this[_0x174709(0x2e2)]();}[_0x173fa3(0x2e2)](){const _0x5078f7=_0x173fa3;var _0x3db965;this[_0x5078f7(0x1de)](),this[_0x5078f7(0x4be)]=window[_0x5078f7(0x4a5)](()=>this[_0x5078f7(0x47d)](),(_0x3db965=this['_configService'][_0x5078f7(0x4c2)](On))!=null?_0x3db965:Dn);}['_sendHeartbeat'](){const _0x5d1c18=_0x173fa3;this[_0x5d1c18(0x2f0)][_0x5d1c18(0x2ab)]({'cmd':I[_0x5d1c18(0x45b)]}),this[_0x5d1c18(0x323)]();}[_0x173fa3(0x323)](){const _0x172832=_0x173fa3;var _0x2a5c0a;this[_0x172832(0x27c)]=window[_0x172832(0x4a5)](()=>this[_0x172832(0x376)](),(_0x2a5c0a=this[_0x172832(0x205)][_0x172832(0x4c2)](Hs))!=null?_0x2a5c0a:xs);}['_clearHeartbeatTimer'](){const _0x27686d=_0x173fa3;this[_0x27686d(0x4be)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x27686d(0x4be)]=null);}[_0x173fa3(0x305)](){const _0x526d05=_0x173fa3;this[_0x526d05(0x27c)]!=null&&(clearTimeout(this[_0x526d05(0x27c)]),this[_0x526d05(0x27c)]=null);}};ue=tr([Se(0x0,_0x4f7ed2(_0x3b0750)),Se(0x1,_0x4f7ed2(_0x15839b)),Se(0x2,_0x46e149),Se(0x3,_0x4329b1),Se(0x4,_0x13b27e),Se(0x5,Vs)],ue);var T=[];for(var ht=0x0;ht<0x100;++ht)T[_0x173fa3(0x1da)]((ht+0x100)[_0x173fa3(0x358)](0x10)[_0x173fa3(0x36a)](0x1));function sr(_0x17a07d,_0x3b1b72=0x0){const _0x407847=_0x173fa3;return(T[_0x17a07d[_0x3b1b72+0x0]]+T[_0x17a07d[_0x3b1b72+0x1]]+T[_0x17a07d[_0x3b1b72+0x2]]+T[_0x17a07d[_0x3b1b72+0x3]]+'-'+T[_0x17a07d[_0x3b1b72+0x4]]+T[_0x17a07d[_0x3b1b72+0x5]]+'-'+T[_0x17a07d[_0x3b1b72+0x6]]+T[_0x17a07d[_0x3b1b72+0x7]]+'-'+T[_0x17a07d[_0x3b1b72+0x8]]+T[_0x17a07d[_0x3b1b72+0x9]]+'-'+T[_0x17a07d[_0x3b1b72+0xa]]+T[_0x17a07d[_0x3b1b72+0xb]]+T[_0x17a07d[_0x3b1b72+0xc]]+T[_0x17a07d[_0x3b1b72+0xd]]+T[_0x17a07d[_0x3b1b72+0xe]]+T[_0x17a07d[_0x3b1b72+0xf]])[_0x407847(0x3a7)]();}var ke,ir=new Uint8Array(0x10);function nr(){const _0x15d50d=_0x173fa3;if(!ke&&(ke=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x15d50d(0x2d4)]['bind'](crypto),!ke))throw new Error(_0x15d50d(0x351));return ke(ir);}var rr=typeof crypto<'u'&&crypto[_0x173fa3(0x1a5)]&&crypto[_0x173fa3(0x1a5)][_0x173fa3(0x1cb)](crypto);const hs={'randomUUID':rr};function or(_0x35f561,_0x30e2db,_0x2bcdcb){const _0x160eaa=_0x173fa3;if(hs[_0x160eaa(0x1a5)]&&!_0x30e2db&&!_0x35f561)return hs['randomUUID']();_0x35f561=_0x35f561||{};var _0x1971e8=_0x35f561[_0x160eaa(0x4d1)]||(_0x35f561['rng']||nr)();return _0x1971e8[0x6]=_0x1971e8[0x6]&0xf|0x40,_0x1971e8[0x8]=_0x1971e8[0x8]&0x3f|0x80,sr(_0x1971e8);}var ar=Object[_0x173fa3(0x309)],cr=Object[_0x173fa3(0x4d5)],hr=(_0x507c45,_0x19f259,_0x2d6cf9,_0xd1e17)=>{for(var _0x27cddf=_0xd1e17>0x1?void 0x0:_0xd1e17?cr(_0x19f259,_0x2d6cf9):_0x19f259,_0x17eb0c=_0x507c45['length']-0x1,_0x46df26;_0x17eb0c>=0x0;_0x17eb0c--)(_0x46df26=_0x507c45[_0x17eb0c])&&(_0x27cddf=(_0xd1e17?_0x46df26(_0x19f259,_0x2d6cf9,_0x27cddf):_0x46df26(_0x27cddf))||_0x27cddf);return _0xd1e17&&_0x27cddf&&ar(_0x19f259,_0x2d6cf9,_0x27cddf),_0x27cddf;},lt=(_0x1e23b4,_0xadc199)=>(_0x1caad8,_0x55fac5)=>_0xadc199(_0x1caad8,_0x55fac5,_0x1e23b4);let Xe=class{constructor(_0x3670db,_0x160a65,_0x3525e2){const _0x3e2103=_0x173fa3;this['_injector']=_0x3670db,this[_0x3e2103(0x387)]=_0x160a65,this[_0x3e2103(0x3f6)]=_0x3525e2;}[_0x173fa3(0x334)](_0xec9d0c){const _0x16ad77=_0x173fa3;this['_transformUndoRedoStack'](_0xec9d0c),this[_0x16ad77(0x431)](_0xec9d0c);}['transformRemoteChangeset'](_0x4d9df6){const _0x5e58ac=_0x173fa3,{unitID:_0x5e0698}=_0x4d9df6,_0x5ed33e=this[_0x5e58ac(0x3f6)][_0x5e58ac(0x468)](_0x5e0698)[_0x5e58ac(0x32f)](_0x153626),{redoCache:_0x60b187}=_0x5ed33e[_0x5e58ac(0x48e)]();if(_0x60b187[_0x5e58ac(0x223)]===0x0)return _0x4d9df6;let _0x40b47e=_0x58e8f0[_0x5e58ac(0x4c7)](_0x4d9df6[_0x5e58ac(0x4cd)][0x0]);for(let _0x2b0a98=0x0;_0x2b0a98<_0x60b187[_0x5e58ac(0x223)];_0x2b0a98++){const _0x57dd67={'id':_0x5e58ac(0x21f),'params':{..._0x60b187[_0x2b0a98]}},_0x561cc2=this[_0x5e58ac(0x387)][_0x5e58ac(0x343)](_0x40b47e,_0x57dd67,!0x1);if(_0x44527a(_0x561cc2))throw _0x561cc2[_0x5e58ac(0x3b8)];_0x40b47e=_0x561cc2[_0x5e58ac(0x443)];}return{..._0x58e8f0[_0x5e58ac(0x4c7)](_0x4d9df6),'mutations':[_0x40b47e]};}[_0x173fa3(0x4ef)](_0x3f4959){const _0x3cdf5c=_0x173fa3,{unitID:_0x26ff0b}=_0x3f4959,_0x971938=this[_0x3cdf5c(0x3f6)][_0x3cdf5c(0x468)](_0x26ff0b)[_0x3cdf5c(0x32f)](_0x153626),{undoCache:_0x1069c0,redoCache:_0x301479}=_0x971938[_0x3cdf5c(0x48e)]();if(_0x1069c0['length']===0x0||_0x301479[_0x3cdf5c(0x223)]===0x0)return;const _0x2bbb0a=[],_0x1f6550=[];let _0x25c7db=_0x58e8f0[_0x3cdf5c(0x4c7)](_0x3f4959[_0x3cdf5c(0x4cd)][0x0]),_0x3456c0=_0x58e8f0[_0x3cdf5c(0x4c7)](_0x3f4959[_0x3cdf5c(0x4cd)][0x0]);for(let _0x4f582a=_0x1069c0['length']-0x1;_0x4f582a>=0x0;_0x4f582a--){const _0x8ab0a0={'id':_0x3cdf5c(0x21f),'params':{..._0x1069c0[_0x4f582a]}},_0x731f52={'id':'doc.mutation.rich-text-editing','params':{..._0x301479[_0x4f582a]}},_0xbe9e12=this[_0x3cdf5c(0x387)]['transformMutation'](_0x25c7db,_0x8ab0a0,!0x1),_0x2a6a9d=this[_0x3cdf5c(0x387)]['transformMutation'](_0x3456c0,_0x731f52,!0x1);if(_0x44527a(_0xbe9e12))throw _0xbe9e12[_0x3cdf5c(0x3b8)];if(_0x44527a(_0x2a6a9d))throw _0x2a6a9d[_0x3cdf5c(0x3b8)];_0x2bbb0a[_0x3cdf5c(0x23b)](_0xbe9e12[_0x3cdf5c(0x197)][_0x3cdf5c(0x465)]),_0x1f6550[_0x3cdf5c(0x23b)](_0x2a6a9d['m2Prime']['params']),_0x25c7db=_0xbe9e12['m1Prime'],_0x3456c0=_0x2a6a9d[_0x3cdf5c(0x443)];}_0x971938[_0x3cdf5c(0x4c4)]({'undoCache':_0x2bbb0a,'redoCache':_0x1f6550});}[_0x173fa3(0x431)](_0x14a019){const _0x5b9c9a=_0x173fa3,{unitID:_0x4d5d0c}=_0x14a019,_0x31089f=this['_renderManagerService'][_0x5b9c9a(0x468)](_0x4d5d0c)[_0x5b9c9a(0x32f)](_0x153626),_0x733b66=_0x31089f['getActiveRange']();if(_0x733b66==null)return;const _0x1c42ac=[{'id':_0x5b9c9a(0x21f),'params':{'unitId':_0x14a019[_0x5b9c9a(0x23a)],'actions':null,'textRanges':[_0x733b66]}}],_0x6bd811=this[_0x5b9c9a(0x387)][_0x5b9c9a(0x3a5)](_0x14a019,_0x1c42ac);if(!_0x2c439f(_0x6bd811))throw _0x6bd811[_0x5b9c9a(0x3b8)];const _0x50f8c7=_0x6bd811[_0x5b9c9a(0x197)][0x0]['params'][_0x5b9c9a(0x3cc)];Array[_0x5b9c9a(0x498)](_0x50f8c7)&&_0x50f8c7['length']&&_0x31089f['setActiveRange'](_0x50f8c7[0x0]);}};Xe=hr([lt(0x0,_0x4f7ed2(_0x3b0750)),lt(0x1,_0x4a8bc3),lt(0x2,_0x2855ab)],Xe);var lr=Object[_0x173fa3(0x309)],_r=Object[_0x173fa3(0x4d5)],ur=(_0x1518d9,_0x4f2b87,_0x45b199,_0x2595a0)=>{const _0xa78bbe=_0x173fa3;for(var _0x472876=_0x2595a0>0x1?void 0x0:_0x2595a0?_r(_0x4f2b87,_0x45b199):_0x4f2b87,_0x28bd6c=_0x1518d9[_0xa78bbe(0x223)]-0x1,_0x22563a;_0x28bd6c>=0x0;_0x28bd6c--)(_0x22563a=_0x1518d9[_0x28bd6c])&&(_0x472876=(_0x2595a0?_0x22563a(_0x4f2b87,_0x45b199,_0x472876):_0x22563a(_0x472876))||_0x472876);return _0x2595a0&&_0x472876&&lr(_0x4f2b87,_0x45b199,_0x472876),_0x472876;},we=(_0x5ac1e1,_0x1bb620)=>(_0x4eb18d,_0x57e16e)=>_0x1bb620(_0x4eb18d,_0x57e16e,_0x5ac1e1);let D=class extends _0x1ed84d{constructor(_0x5c69d9,_0x393f2b,_0x5779a0,_0x5cddbd,_0x5de830){const _0x346f7e=_0x173fa3;super(),l(this,_0x346f7e(0x37b),new Map()),l(this,_0x346f7e(0x3e7),new Map()),l(this,_0x346f7e(0x266),!0x1),(this['_configService']=_0x5c69d9,this[_0x346f7e(0x1ff)]=_0x393f2b,this[_0x346f7e(0x3fa)]=_0x5779a0,this['_localeService']=_0x5cddbd,this['_revisionService']=_0x5de830,this[_0x346f7e(0x349)]());}['disableLocalCache'](){const _0x3889cc=_0x173fa3;this[_0x3889cc(0x266)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}['dispose'](){const _0x4fa606=_0x173fa3;this[_0x4fa606(0x256)]()[_0x4fa606(0x375)](()=>super[_0x4fa606(0x2c0)]());}async[_0x173fa3(0x302)](_0x3bff55){const _0x55c45f=_0x173fa3;return this[_0x55c45f(0x266)]?null:this[_0x55c45f(0x1ff)][_0x55c45f(0x4c1)](ls(_0x3bff55));}async[_0x173fa3(0x319)](_0x381ce1,_0x1868ec){const _0x3f2dd4=_0x173fa3;return!!this[_0x3f2dd4(0x1ff)][_0x3f2dd4(0x4e0)](_0x381ce1,_0x1868ec);}[_0x173fa3(0x234)](_0x2d3910,_0x2d4152,_0x3e2a9f,_0x35a94b){const _0x1cfa9e=_0x173fa3,_0x9eedb8=this['_revisionService'][_0x1cfa9e(0x462)](_0x2d3910);this[_0x1cfa9e(0x37b)][_0x1cfa9e(0x3e3)](_0x2d3910,{'unitID':_0x2d3910,'type':_0x2d4152,'awaitingChangeset':_0x3e2a9f,'mutations':_0x35a94b,'rev':_0x9eedb8}),this['_saveTaskMap'][_0x1cfa9e(0x432)](_0x2d3910)||this[_0x1cfa9e(0x451)](_0x2d3910);}[_0x173fa3(0x451)](_0x57908c){const _0x4a2e92=_0x173fa3,_0x45cf18=this[_0x4a2e92(0x299)]();_0x45cf18===0x0?this[_0x4a2e92(0x1b8)](_0x57908c):this[_0x4a2e92(0x3e7)][_0x4a2e92(0x3e3)](_0x57908c,setTimeout(()=>this[_0x4a2e92(0x1b8)](_0x57908c),_0x45cf18));}[_0x173fa3(0x299)](){const _0x2e7238=_0x173fa3;var _0x3a3a33;return(_0x3a3a33=this[_0x2e7238(0x205)][_0x2e7238(0x4c2)](Un))!=null?_0x3a3a33:Nn;}[_0x173fa3(0x1b8)](_0x33c726){const _0x2b7037=_0x173fa3,_0x232089=this[_0x2b7037(0x3e7)][_0x2b7037(0x3c3)](_0x33c726);return _0x232089!==void 0x0&&window[_0x2b7037(0x29c)](_0x232089),this['_localStorageService']['setItem'](ls(_0x33c726),this['_cachedData']['get'](_0x33c726))[_0x2b7037(0x375)](()=>this[_0x2b7037(0x3e7)][_0x2b7037(0x43b)](_0x33c726));}async['exhaustSavingTask'](){const _0x1fd074=_0x173fa3,_0xd5d8b9=[];this[_0x1fd074(0x3e7)]['forEach']((_0x15501f,_0x1aba47)=>{const _0x56e27c=_0x1fd074;window[_0x56e27c(0x29c)](_0x15501f),_0xd5d8b9[_0x56e27c(0x1da)](this[_0x56e27c(0x1b8)](_0x1aba47)[_0x56e27c(0x375)](()=>{const _0x80b18e=_0x56e27c;this[_0x80b18e(0x3e7)][_0x80b18e(0x43b)](_0x1aba47);}));}),await Promise[_0x1fd074(0x464)](_0xd5d8b9);}['_setupBeforeClosingHandler'](){const _0x4c93bf=_0x173fa3;this['disposeWithMe'](this[_0x4c93bf(0x3fa)][_0x4c93bf(0x2df)](()=>{const _0x278308=_0x4c93bf;if(this[_0x278308(0x3e7)]['size'])return this[_0x278308(0x2e7)]['t'](_0x278308(0x3bc));}));}};D=ur([we(0x0,_0x13b27e),we(0x1,_0x71f972),we(0x2,_0x3b10e0),we(0x3,_0x4f7ed2(_0x15839b)),we(0x4,_0x4f7ed2(_0x6cbd2e))],D);function ls(_0x4451e0){const _0x7eb033=_0x173fa3;return _0x7eb033(0x491)+_0x4451e0;}var dr=Object[_0x173fa3(0x309)],mr=Object['getOwnPropertyDescriptor'],fr=(_0x4dad28,_0xa373ff,_0x41cb3e,_0x4c8854)=>{for(var _0x2947ef=_0x4c8854>0x1?void 0x0:_0x4c8854?mr(_0xa373ff,_0x41cb3e):_0xa373ff,_0x50be2e=_0x4dad28['length']-0x1,_0x149d14;_0x50be2e>=0x0;_0x50be2e--)(_0x149d14=_0x4dad28[_0x50be2e])&&(_0x2947ef=(_0x4c8854?_0x149d14(_0xa373ff,_0x41cb3e,_0x2947ef):_0x149d14(_0x2947ef))||_0x2947ef);return _0x4c8854&&_0x2947ef&&dr(_0xa373ff,_0x41cb3e,_0x2947ef),_0x2947ef;},_t=(_0x29a10a,_0x247b46)=>(_0x483ed8,_0x4726f7)=>_0x247b46(_0x483ed8,_0x4726f7,_0x29a10a);function gr(_0x1b3813){const _0x23acc5=_0x173fa3,{unitID:_0x2a5f55,mutations:_0x587413}=_0x1b3813;return{'unitId':_0x2a5f55,'subUnitId':_0x587413[0x0]['params'][_0x23acc5(0x348)]};}let qe=class{constructor(_0xac4993,_0x4d72a0,_0x3ec76f){const _0x10eb1b=_0x173fa3;this['_injector']=_0xac4993,this[_0x10eb1b(0x387)]=_0x4d72a0,this[_0x10eb1b(0x44d)]=_0x3ec76f;}[_0x173fa3(0x366)](_0x2992d3){const _0x1325f2=_0x173fa3;var _0x107926,_0x3acb7a,_0x176f2c,_0x2a5ca0;const _0x25072b=this['_injector'][_0x1325f2(0x3c3)](_0x15d139),{unitId:_0x584e37,subUnitId:_0x54a402}=gr(_0x2992d3),_0x325c6d=_0x25072b['getWorkbookSelections'](_0x584e37)['getCurrentSelections'](),_0x5cdf09=(_0x3acb7a=(_0x107926=this[_0x1325f2(0x44d)][_0x1325f2(0x2c3)](_0x584e37))==null?void 0x0:_0x107926['getActiveSheet']())==null?void 0x0:_0x3acb7a[_0x1325f2(0x3b7)]();if(_0x325c6d['length']===0x0||!_0x584e37||!_0x54a402)return;const _0x5f238d=[{'id':_0x455e5a['id'],'params':{'unitId':_0x584e37,'subUnitId':_0x5cdf09,'selections':_0x58e8f0['deepClone'](_0x325c6d)}}],_0x134aef=this[_0x1325f2(0x387)]['transformMutationsWithChangeset'](_0x2992d3,_0x5f238d);if(!_0x2c439f(_0x134aef))throw _0x134aef['error'];const _0x31dc61=(_0x2a5ca0=(_0x176f2c=_0x134aef[_0x1325f2(0x197)][0x0])==null?void 0x0:_0x176f2c['params'])==null?void 0x0:_0x2a5ca0[_0x1325f2(0x287)];if(Array[_0x1325f2(0x498)](_0x31dc61)&&_0x31dc61['length']){if(_0x31dc61[_0x1325f2(0x223)]===_0x5f238d[0x0][_0x1325f2(0x465)][_0x1325f2(0x287)][_0x1325f2(0x223)]&&_0x31dc61[_0x1325f2(0x1a8)]((_0x5b20f0,_0x234275)=>_0xa8b8a6['equals'](_0x5b20f0[_0x1325f2(0x1f1)],_0x5f238d[0x0]['params'][_0x1325f2(0x287)][_0x234275][_0x1325f2(0x1f1)])))return;this[_0x1325f2(0x4b7)][_0x1325f2(0x3c3)](_0xdec94a)[_0x1325f2(0x1d2)](_0x455e5a['id'],{'unitId':_0x584e37,'subUnitId':_0x5cdf09,'selections':_0x31dc61});}}};qe=fr([_t(0x0,_0x4f7ed2(_0x3b0750)),_t(0x1,_0x4a8bc3),_t(0x2,_0x1e8ecc)],qe);const it=_0x1a0c31(_0x173fa3(0x35f));var Ws=(_0x450102=>(_0x450102[_0x450102[_0x173fa3(0x252)]=0x0]=_0x173fa3(0x252),_0x450102[_0x450102['OTHER_CLIENTS_EDITING']=0x1]=_0x173fa3(0x3b9),_0x450102))(Ws||{});const _s=0x7530,us=_0x173fa3(0x20c);class Sr extends _0x1ed84d{constructor(){const _0x45a0a9=_0x173fa3;super(),l(this,_0x45a0a9(0x414),_0x58e8f0[_0x45a0a9(0x31e)]()),l(this,'_selfUnitIDs',new Set()),l(this,_0x45a0a9(0x2f8),new Map()),l(this,_0x45a0a9(0x1bb),null),l(this,_0x45a0a9(0x1dc),new Map()),l(this,_0x45a0a9(0x378),new Map()),this[_0x45a0a9(0x367)]();}[_0x173fa3(0x2c0)](){const _0x28af94=_0x173fa3;super[_0x28af94(0x2c0)](),this[_0x28af94(0x1dc)][_0x28af94(0x47e)]((_0x4b5ae5,_0x50426c)=>this['_removeClearOtherTimer'](_0x50426c)),this[_0x28af94(0x1bb)]&&window[_0x28af94(0x2be)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x1e14d4){const _0x9422a6=_0x173fa3;return this[_0x9422a6(0x1aa)](_0x1e14d4)[_0x9422a6(0x35b)](_0x38f940());}['editingUnit'](_0xea2379){const _0x5dcec4=_0x173fa3;this[_0x5dcec4(0x26d)][_0x5dcec4(0x46d)]===0x0&&this[_0x5dcec4(0x2a3)](),this[_0x5dcec4(0x26d)]['add'](_0xea2379),this[_0x5dcec4(0x2e9)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xea2379],'isForwarded':!0x1});}[_0x173fa3(0x3ee)](_0x2e43af){const _0x1343b9=_0x173fa3;this['_selfUnitIDs']['delete'](_0x2e43af),this['_selfUnitIDs'][_0x1343b9(0x46d)]===0x0&&this[_0x1343b9(0x1bb)]&&window[_0x1343b9(0x2be)](this[_0x1343b9(0x1bb)]);}[_0x173fa3(0x367)](){const _0x4ebe06=_0x173fa3;this['disposeWithMe'](_0x4a9188(_0x25f31e(window,_0x4ebe06(0x357))[_0x4ebe06(0x3eb)](_0x4a0f3a=>{const _0x5da9e7=_0x4ebe06;if(_0x4a0f3a[_0x5da9e7(0x240)]!==us||!_0x4a0f3a[_0x5da9e7(0x3a8)])return;const _0x416887=JSON[_0x5da9e7(0x1a3)](_0x4a0f3a[_0x5da9e7(0x3a8)]);this[_0x5da9e7(0x496)](_0x416887);}))),window['addEventListener'](_0x4ebe06(0x372),()=>this['_send']({'type':0x1,'memberID':this[_0x4ebe06(0x414)],'unitIDs':Array[_0x4ebe06(0x28c)](this['_selfUnitIDs'])}));}[_0x173fa3(0x496)](_0x410eab){const _0x2a6ee9=_0x173fa3;switch(_0x410eab[_0x2a6ee9(0x32d)]){case 0x0:this[_0x2a6ee9(0x1ce)](_0x410eab);break;case 0x1:this[_0x2a6ee9(0x2d6)](_0x410eab);break;case 0x2:this[_0x2a6ee9(0x4a6)](_0x410eab);break;}}['_handleJoinEvent'](_0x5daeca){const _0x29f21f=_0x173fa3,{unitIDs:_0x7659a5,memberID:_0x1b5afb,isForwarded:_0x1349c3}=_0x5daeca;_0x7659a5[_0x29f21f(0x47e)](_0x2632e4=>{const _0x3ef7a0=_0x29f21f;if(!_0x1349c3&&this['_unitOnClients'][_0x3ef7a0(0x432)](_0x2632e4)&&this['_ensureSubject'](_0x2632e4)[_0x3ef7a0(0x2d0)](0x1),!this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x432)](_0x2632e4)||!this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3c3)](_0x2632e4)[_0x3ef7a0(0x432)](_0x1b5afb)){const _0x20d51f=this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3c3)](_0x2632e4)||new Set();_0x20d51f[_0x3ef7a0(0x2f7)](_0x1b5afb),this[_0x3ef7a0(0x2f8)][_0x3ef7a0(0x3e3)](_0x2632e4,_0x20d51f),this[_0x3ef7a0(0x2dc)](_0x1b5afb);}}),_0x1349c3||this[_0x29f21f(0x2e9)]({'type':0x0,'memberID':this[_0x29f21f(0x414)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x173fa3(0x2dc)](_0x12baf8){const _0x303dfe=_0x173fa3;this[_0x303dfe(0x49f)](_0x12baf8);const _0x1f04c1=window[_0x303dfe(0x4a5)](()=>{const _0x584465=_0x303dfe;this[_0x584465(0x2f8)][_0x584465(0x47e)](_0x5e8fbc=>{const _0xa27540=_0x584465;_0x5e8fbc[_0xa27540(0x43b)](_0x12baf8);});},_s*0x2);this['_clearOtherTimers'][_0x303dfe(0x3e3)](_0x12baf8,_0x1f04c1);}[_0x173fa3(0x49f)](_0x11d314){const _0x5f36a8=_0x173fa3;if(this[_0x5f36a8(0x1dc)][_0x5f36a8(0x432)](_0x11d314)){const _0x3dd50c=this[_0x5f36a8(0x1dc)][_0x5f36a8(0x3c3)](_0x11d314);_0x3dd50c&&window[_0x5f36a8(0x29c)](_0x3dd50c),this['_clearOtherTimers']['set'](_0x11d314,null);}}[_0x173fa3(0x2d6)](_0xc23483){const _0x3698fc=_0x173fa3,{memberID:_0x1d7b80,unitIDs:_0x1edfba}=_0xc23483;_0x1edfba[_0x3698fc(0x47e)](_0x5a2d26=>{const _0x46be6f=_0x3698fc;var _0xd79cd1;const _0x17e95f=this[_0x46be6f(0x2f8)][_0x46be6f(0x3c3)](_0x5a2d26);_0x17e95f&&(_0x17e95f['delete'](_0x1d7b80),(_0xd79cd1=this[_0x46be6f(0x1aa)](_0x5a2d26))==null||_0xd79cd1[_0x46be6f(0x2d0)](_0x17e95f['size']===0x0?0x0:0x1));}),this[_0x3698fc(0x49f)](_0x1d7b80);}[_0x173fa3(0x4a6)](_0x420de7){const _0x3c7088=_0x173fa3;this[_0x3c7088(0x2dc)](_0x420de7[_0x3c7088(0x48d)]);}[_0x173fa3(0x2e9)](_0x4d04a7){const _0x3376c6=_0x173fa3;localStorage[_0x3376c6(0x4e0)](us,JSON[_0x3376c6(0x3ab)](_0x4d04a7));}['_scheduleHeartbeat'](){const _0x586b6a=_0x173fa3;this[_0x586b6a(0x1bb)]=window['setInterval'](()=>{const _0x4c9def=_0x586b6a;this['_send']({'type':0x2,'memberID':this[_0x4c9def(0x414)]});},_s);}[_0x173fa3(0x1aa)](_0x4e43bf){const _0x4c334e=_0x173fa3;return this[_0x4c334e(0x378)][_0x4c334e(0x432)](_0x4e43bf)||this[_0x4c334e(0x378)][_0x4c334e(0x3e3)](_0x4e43bf,new _0x37b5ce(0x0)),this['_unitStatus'][_0x4c334e(0x3c3)](_0x4e43bf);}}function Gs(_0x22c119){const _0x59d261=_0x173fa3;let _0x375dad='';for(const _0x4a9f6d of _0x22c119){const {startOffset:_0x447df9,endOffset:_0x456c0c,isActive:_0xfb2bcc,rangeType:_0xcc974e,segmentId:_0x12f145,segmentPage:_0x3556b0}=_0x4a9f6d;_0x375dad[_0x59d261(0x223)]&&(_0x375dad+=','),_0x375dad+=_0x447df9+':'+_0x456c0c+':'+(_0xfb2bcc?'1':'0')+':'+_0xcc974e+':'+_0x12f145+':'+_0x3556b0;}return _0x375dad;}function pr(_0x1c2bb0){const _0x4a77d7=_0x173fa3,_0x302f51=_0x1c2bb0[_0x4a77d7(0x4fe)](','),_0xb5e32b=[];for(const _0x52b1db of _0x302f51){const [_0xd90f87,_0x3bce9b,_0x2389f5,_0x30629b,_0x27f95a,_0x1113af]=_0x52b1db[_0x4a77d7(0x4fe)](':');_0xb5e32b[_0x4a77d7(0x1da)]({'startOffset':Number(_0xd90f87),'endOffset':Number(_0x3bce9b),'collapsed':_0xd90f87===_0x3bce9b,'isActive':_0x2389f5==='1','rangeType':_0x30629b===_0x46c3b0[_0x4a77d7(0x4c6)]?_0x46c3b0[_0x4a77d7(0x4c6)]:_0x46c3b0[_0x4a77d7(0x26e)],'segmentId':typeof _0x27f95a==_0x4a77d7(0x215)?String(_0x27f95a):'','segmentPage':Number(_0x1113af!=null?_0x1113af:-0x1)});}return _0xb5e32b[_0x4a77d7(0x24f)](_0x3a8617=>_0x3a8617[_0x4a77d7(0x4a9)])||(_0xb5e32b[0x0][_0x4a77d7(0x4a9)]=!0x0),_0xb5e32b;}class Wt extends _0x13ba8e{constructor(){const _0x757994=_0x173fa3;super(...arguments),l(this,_0x757994(0x1af),new _0x37b5ce(null)),l(this,_0x757994(0x4ce),this[_0x757994(0x1af)][_0x757994(0x2e6)]());}[_0x173fa3(0x461)](_0x43394e){const _0x4b281a=_0x173fa3,{unitID:_0x2a66b5,memberID:_0x2a97de,textRanges:_0x51c482}=_0x43394e,_0x48f133=Gs(_0x51c482);if(_0x48f133==='')return;const _0x36289b={'unitID':_0x2a66b5,'memberID':_0x2a97de,'selection':_0x48f133};this[_0x4b281a(0x1af)][_0x4b281a(0x2d0)](_0x36289b);}}var vr=Object[_0x173fa3(0x309)],Ir=Object['getOwnPropertyDescriptor'],Er=(_0x6d39ae,_0x3dbebb,_0x55f03e,_0x111334)=>{for(var _0x24356d=_0x111334>0x1?void 0x0:_0x111334?Ir(_0x3dbebb,_0x55f03e):_0x3dbebb,_0x4e0ab4=_0x6d39ae['length']-0x1,_0x425a5c;_0x4e0ab4>=0x0;_0x4e0ab4--)(_0x425a5c=_0x6d39ae[_0x4e0ab4])&&(_0x24356d=(_0x111334?_0x425a5c(_0x3dbebb,_0x55f03e,_0x24356d):_0x425a5c(_0x24356d))||_0x24356d);return _0x111334&&_0x24356d&&vr(_0x3dbebb,_0x55f03e,_0x24356d),_0x24356d;},ds=(_0x4f0865,_0x5b6195)=>(_0x1eb3d9,_0x5bedd4)=>_0x5b6195(_0x1eb3d9,_0x5bedd4,_0x4f0865);let Je=class{constructor(_0x328d0d,_0x1b7687){const _0x443124=_0x173fa3;this[_0x443124(0x4b7)]=_0x328d0d,this[_0x443124(0x387)]=_0x1b7687;}[_0x173fa3(0x366)](_0x339b43){const _0x396bea=_0x173fa3;var _0x337b47;const _0x151371=this[_0x396bea(0x4b7)][_0x396bea(0x3c3)](_0x35ae8c),_0x1ae2a3=(_0x337b47=_0x151371[_0x396bea(0x361)]())!=null?_0x337b47:[];if(_0x1ae2a3[_0x396bea(0x223)]===0x0)return;const _0x1d0ba9=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x339b43['unitID'],'actions':null,'textRanges':_0x1ae2a3}}],_0x2d971d=this['_transformService'][_0x396bea(0x3a5)](_0x339b43,_0x1d0ba9);if(!_0x2c439f(_0x2d971d))throw _0x2d971d[_0x396bea(0x3b8)];const _0x468148=_0x2d971d['m2Prime'][0x0][_0x396bea(0x465)][_0x396bea(0x3cc)];Array['isArray'](_0x468148)&&_0x468148[_0x396bea(0x223)]&&_0x151371[_0x396bea(0x36e)](_0x468148,!0x1);}};Je=Er([ds(0x0,_0x4f7ed2(_0x3b0750)),ds(0x1,_0x4a8bc3)],Je);const Cr=new Set([_0x7b95a6['id']]);function ms(_0x228ce8,_0x382dc9,_0x15bd17,_0x57f73f,_0x3af8a2){const _0x511dff=_0x173fa3;var _0x38ad33,_0x428911,_0x1e4bbf,_0x5cbc58;const _0x10f034=[];for(const _0xcc33ea of _0x228ce8)if(Cr[_0x511dff(0x432)](_0xcc33ea['id'])){if(_0x10f034[_0x511dff(0x223)]>0x0)break;_0x10f034[_0x511dff(0x1da)](_0xcc33ea);break;}else _0x10f034[_0x511dff(0x1da)](_0xcc33ea);const _0x3adaae=(_0x428911=(_0x38ad33=_0x3af8a2[_0x511dff(0x2fc)]())==null?void 0x0:_0x38ad33['userID'])!=null?_0x428911:_0x511dff(0x30f),_0x245332=(_0x5cbc58=(_0x1e4bbf=_0x3af8a2['getCurrentUser']())==null?void 0x0:_0x1e4bbf[_0x511dff(0x48d)])!=null?_0x5cbc58:_0x511dff(0x30f);return{'changeset':{'unitID':_0x382dc9,'type':_0x4c831a(_0x15bd17[_0x511dff(0x50e)](_0x382dc9)),'baseRev':_0x57f73f['getCurrentRevOfUnit'](_0x382dc9),'revision':0x0,'userID':_0x3adaae,'memberID':_0x245332,'mutations':_0x10f034},'pendingMutations':_0x228ce8[_0x511dff(0x36a)](_0x10f034[_0x511dff(0x223)])};}function br(_0x3963e3,_0x29d19f,_0x5ad046,_0x1d487e,_0x1fb830){const _0x27a488=_0x173fa3;var _0x3dad31,_0x12e02d,_0xa02e9a,_0x6011c9;const _0x355910=[_0x3963e3[_0x27a488(0x48a)]((_0x2f8b5c,_0x418722)=>{const _0x4baf21=_0x27a488;var _0xb38d45;const {id:_0x587095}=_0x2f8b5c,{id:_0x2e6858,type:_0x4078e1}=_0x418722,_0x38f025=(_0xb38d45=_0x2f8b5c[_0x4baf21(0x465)])!=null?_0xb38d45:{'actions':null},_0x4fb33f=_0x418722[_0x4baf21(0x465)];if(_0x587095&&_0x587095!==_0x2e6858)throw new Error(_0x4baf21(0x4b6)+_0x587095+_0x4baf21(0x1fc)+_0x2e6858+'.');return{..._0x2f8b5c,'id':_0x2e6858,'type':_0x4078e1,'params':{'unitId':_0x4fb33f[_0x4baf21(0x217)],'textRanges':_0x4fb33f['textRanges'],'actions':_0xdfd23e[_0x4baf21(0x38a)](_0x38f025[_0x4baf21(0x1c3)],_0x4fb33f[_0x4baf21(0x1c3)])}};},{})],_0x2602d6=(_0x12e02d=(_0x3dad31=_0x1fb830[_0x27a488(0x2fc)]())==null?void 0x0:_0x3dad31['userID'])!=null?_0x12e02d:'unknown',_0x505293=(_0x6011c9=(_0xa02e9a=_0x1fb830['getCurrentUser']())==null?void 0x0:_0xa02e9a[_0x27a488(0x48d)])!=null?_0x6011c9:'unknown';return{'changeset':{'unitID':_0x29d19f,'type':_0x4c831a(_0x5ad046[_0x27a488(0x50e)](_0x29d19f)),'baseRev':_0x1d487e[_0x27a488(0x462)](_0x29d19f),'revision':0x0,'userID':_0x2602d6,'memberID':_0x505293,'mutations':_0x355910},'pendingMutations':[]};}function Ys(_0x23c6f3,_0xd97f69){const _0x61b7ae=_0x173fa3,_0x1a055f=new _0x5c8a52(0x1);return setTimeout(()=>_0x1a055f[_0x61b7ae(0x2d0)](_0xd97f69),_0x23c6f3),_0x1a055f[_0x61b7ae(0x2e6)]()[_0x61b7ae(0x35b)](_0x13b5e9(0x1));}const Tr={'id':_0x511aa2['id'],'type':_0x12b588['MUTATION'],'params':{}};var Rr=Object['defineProperty'],Or=Object[_0x173fa3(0x4d5)],me=(_0x36e6df,_0x105616,_0x82578a,_0x4d2722)=>{const _0x59cca2=_0x173fa3;for(var _0x3db61a=_0x4d2722>0x1?void 0x0:_0x4d2722?Or(_0x105616,_0x82578a):_0x105616,_0xe46681=_0x36e6df[_0x59cca2(0x223)]-0x1,_0x2a4f59;_0xe46681>=0x0;_0xe46681--)(_0x2a4f59=_0x36e6df[_0xe46681])&&(_0x3db61a=(_0x4d2722?_0x2a4f59(_0x105616,_0x82578a,_0x3db61a):_0x2a4f59(_0x3db61a))||_0x3db61a);return _0x4d2722&&_0x3db61a&&Rr(_0x105616,_0x82578a,_0x3db61a),_0x3db61a;},f=(_0x4a7dd5,_0x1622c2)=>(_0x3a71b6,_0x31d5a2)=>_0x1622c2(_0x3a71b6,_0x31d5a2,_0x4a7dd5),w=(_0x1b6846=>(_0x1b6846['NOT_COLLAB']=_0x173fa3(0x480),_0x1b6846['SYNCED']='synced',_0x1b6846[_0x173fa3(0x25c)]=_0x173fa3(0x26c),_0x1b6846[_0x173fa3(0x333)]=_0x173fa3(0x41c),_0x1b6846[_0x173fa3(0x3a9)]=_0x173fa3(0x226),_0x1b6846[_0x173fa3(0x502)]=_0x173fa3(0x2af),_0x1b6846[_0x173fa3(0x19e)]='conflict',_0x1b6846[_0x173fa3(0x410)]=_0x173fa3(0x235),_0x1b6846))(w||{});const Ks=0xea60;class fe{constructor(_0x59c791,_0x2dc999,_0x103366,_0x243950,_0x5295cf,_0x323318,_0x66f063,_0x1ff252,_0x50c8ea){const _0x1ec36e=_0x173fa3;l(this,_0x1ec36e(0x249),null),l(this,_0x1ec36e(0x4d0),[]),(this['unitID']=_0x59c791,this['type']=_0x2dc999,this['_handler']=_0x5295cf,this[_0x1ec36e(0x35c)]=_0x323318,this[_0x1ec36e(0x471)]=_0x66f063,this[_0x1ec36e(0x45a)]=_0x1ff252,this[_0x1ec36e(0x292)]=_0x50c8ea,this[_0x1ec36e(0x249)]=_0x103366,this[_0x1ec36e(0x4d0)]=_0x243950);}[_0x173fa3(0x40f)](_0x1e35cb){const _0xf9d60=_0x173fa3,_0x5a48fb=this[_0xf9d60(0x45a)][_0xf9d60(0x462)](this['unitID']);return _0x1e35cb[_0xf9d60(0x495)]>_0x5a48fb+0x1?(this[_0xf9d60(0x340)][_0xf9d60(0x1e2)]({'from':_0x5a48fb,'to':_0x1e35cb[_0xf9d60(0x495)]-0x1}),!0x0):!0x1;}[_0x173fa3(0x433)](_0x377f11){const _0x3641be=_0x173fa3;this['_undoRedoService'][_0x3641be(0x201)](this[_0x3641be(0x23a)],_0x377f11);}['_transformSelections'](_0x4957ca){const _0x53851d=_0x173fa3;var _0x3c0f5d,_0x22c26f;(_0x22c26f=(_0x3c0f5d=this[_0x53851d(0x340)])[_0x53851d(0x405)])==null||_0x22c26f[_0x53851d(0x470)](_0x3c0f5d,_0x4957ca);}['_transformIMECache'](_0x2953d2){const _0x1de100=_0x173fa3;var _0x425136,_0x2311f1;return(_0x2311f1=(_0x425136=this[_0x1de100(0x340)])[_0x1de100(0x280)])==null?void 0x0:_0x2311f1['call'](_0x425136,_0x2953d2);}[_0x173fa3(0x4a8)](_0x1be37b){const _0x2d7698=_0x173fa3;var _0x34af20,_0xdabb4,_0x4f23c3;return(_0x4f23c3=(_0xdabb4=(_0x34af20=this['_handler'])[_0x2d7698(0x3fb)])==null?void 0x0:_0xdabb4[_0x2d7698(0x470)](_0x34af20,_0x1be37b))!=null?_0x4f23c3:_0x1be37b;}[_0x173fa3(0x19a)](_0x10c4d6){const _0x359da1=_0x173fa3;var _0x24d802,_0x5b3ecf;if(this['type']===B[_0x359da1(0x381)]){const {unitID:_0x48513c,mutations:_0x21d1bb,memberID:_0x20a103}=_0x10c4d6,_0x425432=_0x21d1bb[0x0][_0x359da1(0x465)][_0x359da1(0x3cc)];Array[_0x359da1(0x498)](_0x425432)&&_0x425432[_0x359da1(0x223)]>0x0&&((_0x5b3ecf=(_0x24d802=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x5b3ecf[_0x359da1(0x470)](_0x24d802,{'unitID':_0x48513c,'memberID':_0x20a103,'textRanges':_0x425432}));}}[_0x173fa3(0x1ab)](){const _0x4e9b5e=_0x173fa3;this['_localCacheService'][_0x4e9b5e(0x234)](this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x4e9b5e(0x4d0)]);}['_getCurrentRevision'](){const _0x31c895=_0x173fa3;return this[_0x31c895(0x45a)]['getCurrentRevOfUnit'](this[_0x31c895(0x23a)]);}[_0x173fa3(0x2ca)](){const _0x204c82=_0x173fa3;this[_0x204c82(0x45a)]['incrementRevOfUnit'](this[_0x204c82(0x23a)]);}[_0x173fa3(0x2ee)](_0x43de56){const _0x50eed5=_0x173fa3;var _0x3bf3d6;const _0x2ee0d1=this[_0x50eed5(0x4a8)](_0x43de56),_0x193114=_0x24a976(_0x2ee0d1[_0x50eed5(0x4cd)],this['_commandService'],{'fromCollab':!0x0});if(!_0x193114['result'])throw _0x193114[_0x50eed5(0x3b8)]instanceof Error?_0x193114['error']:new Error((_0x3bf3d6=_0x193114[_0x50eed5(0x3b8)])!=null?_0x3bf3d6:_0x50eed5(0x34a));this[_0x50eed5(0x3b3)](_0x2ee0d1),this[_0x50eed5(0x433)](_0x43de56),this[_0x50eed5(0x3a3)](_0x2ee0d1),this[_0x50eed5(0x19a)](_0x2ee0d1),this[_0x50eed5(0x2ca)]();}}let Ee=class extends fe{constructor(_0x5d7837,_0x5e393b,_0x1d2e1d,_0x502dc5,_0x521ac7,_0x2ea70f,_0xb1548d,_0x31b4b8,_0x5f1d9a,_0x46f9e0){const _0x177829=_0x173fa3;super(_0x5d7837,_0x5e393b,null,[],_0x1d2e1d,_0x31b4b8,_0xb1548d,_0x502dc5,_0x521ac7),l(this,_0x177829(0x38d),_0x177829(0x1e5)),(this[_0x177829(0x4b7)]=_0x2ea70f,this[_0x177829(0x2cd)]=_0x5f1d9a,this[_0x177829(0x387)]=_0x46f9e0);}[_0x173fa3(0x44f)](_0xbc6295){const _0x54e708=_0x173fa3,_0x1526ee=this[_0x54e708(0x4b7)][_0x54e708(0x31f)](J,this[_0x54e708(0x23a)],this[_0x54e708(0x32d)],[_0xbc6295],this[_0x54e708(0x340)]);return _0x1526ee['_schedule'](),_0x1526ee[_0x54e708(0x1ab)](),_0x1526ee;}[_0x173fa3(0x228)](_0x3004e7){const _0x5ad26c=_0x173fa3;if(this[_0x5ad26c(0x40f)](_0x3004e7))return this[_0x5ad26c(0x4b7)][_0x5ad26c(0x31f)](V,this[_0x5ad26c(0x23a)],this[_0x5ad26c(0x32d)],null,[],null,[_0x3004e7],this[_0x5ad26c(0x340)]);try{const _0x222b61=this[_0x5ad26c(0x387)]['transformMutationsWithChangeset'](_0x3004e7,[Tr]);if(_0x2c439f(_0x222b61)){const {c1Prime:_0x58e7df}=_0x222b61;return this['_executeRemoteChangeset'](_0x58e7df),this;}throw _0x222b61[_0x5ad26c(0x3b8)];}catch(_0x497957){return this['_logService'][_0x5ad26c(0x3b8)](_0x497957),this[_0x5ad26c(0x1c7)](!0x1);}}['_onConflict'](_0x48cb1b){const _0x5225bf=_0x173fa3;return this['_injector'][_0x5225bf(0x31f)](se,this[_0x5225bf(0x23a)],this['type'],null,[],this[_0x5225bf(0x340)],_0x48cb1b);}[_0x173fa3(0x41f)](){const _0x4286f5=_0x173fa3;throw new Error(_0x4286f5(0x3c5));}[_0x173fa3(0x277)](){const _0x30e71a=_0x173fa3;throw new Error(_0x30e71a(0x2dd));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){const _0x23cfd0=_0x173fa3;return this[_0x23cfd0(0x4b7)][_0x23cfd0(0x31f)](ie,this['unitID'],this['type'],null,[],this[_0x23cfd0(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x4e6008=_0x173fa3,_0x2f5afa=this['_revisionService'][_0x4e6008(0x462)](this['unitID']);return this['_handler'][_0x4e6008(0x1e2)]({'from':_0x2f5afa,'to':0x0}),this[_0x4e6008(0x4b7)]['createInstance'](V,this[_0x4e6008(0x23a)],this[_0x4e6008(0x32d)],null,[],null,[],this[_0x4e6008(0x340)]);}};Ee=me([f(0x3,_0x4f7ed2(_0x6cbd2e)),f(0x4,_0x4f7ed2(D)),f(0x5,_0x4f7ed2(_0x3b0750)),f(0x6,_0x57ccc3),f(0x7,_0xdec94a),f(0x8,_0x4329b1),f(0x9,_0x4a8bc3)],Ee);let J=class extends fe{constructor(_0x2c7bed,_0x28f92f,_0x477d64,_0x26c9f4,_0x354305,_0x2687c9,_0x4977b5,_0x53b3b8,_0x13e06e,_0x5cf786,_0x239316,_0x2f1bcf,_0x32428a,_0x4ee369){const _0x58023a=_0x173fa3;super(_0x2c7bed,_0x28f92f,null,_0x477d64,_0x26c9f4,_0x5cf786,_0x4ee369,_0x2687c9,_0x4977b5),l(this,_0x58023a(0x38d),'pending'),l(this,_0x58023a(0x507),null),l(this,_0x58023a(0x294),null),(this[_0x58023a(0x4b7)]=_0x354305,this[_0x58023a(0x1c9)]=_0x53b3b8,this[_0x58023a(0x2cd)]=_0x13e06e,this['_configService']=_0x239316,this[_0x58023a(0x387)]=_0x2f1bcf,this['_univerInstanceService']=_0x32428a);}[_0x173fa3(0x44f)](_0x13e945){const _0x5e9a5e=_0x173fa3;return this[_0x5e9a5e(0x4d0)]['push'](_0x13e945),this[_0x5e9a5e(0x1ab)](),this;}[_0x173fa3(0x228)](_0x18ad2f){const _0x2e0ae9=_0x173fa3;if(this[_0x2e0ae9(0x40f)](_0x18ad2f))return this[_0x2e0ae9(0x439)](),this[_0x2e0ae9(0x4b7)][_0x2e0ae9(0x31f)](V,this[_0x2e0ae9(0x23a)],this[_0x2e0ae9(0x32d)],null,this[_0x2e0ae9(0x4d0)],null,[_0x18ad2f],this[_0x2e0ae9(0x340)]);try{const _0x8253d2=this[_0x2e0ae9(0x387)][_0x2e0ae9(0x3a5)](_0x18ad2f,this['_pendingMutations']);if(_0x2c439f(_0x8253d2)){const {c1Prime:_0x3f83eb,m2Prime:_0x4baaf8}=_0x8253d2;this[_0x2e0ae9(0x2ee)](_0x3f83eb);const _0x258f5b=this[_0x2e0ae9(0x4b7)]['createInstance'](J,this[_0x2e0ae9(0x23a)],this[_0x2e0ae9(0x32d)],_0x4baaf8,this['_handler']);return this[_0x2e0ae9(0x439)](),_0x258f5b[_0x2e0ae9(0x3be)](this['_scheduleTimestamp']?Math[_0x2e0ae9(0x369)](0x0,new Date()[_0x2e0ae9(0x3f8)]()-this[_0x2e0ae9(0x507)]):this[_0x2e0ae9(0x21d)]()),_0x258f5b;}throw _0x8253d2[_0x2e0ae9(0x3b8)];}catch(_0x518cd3){return this['_logService']['error'](_0x518cd3),this[_0x2e0ae9(0x1c7)](!0x1);}}[_0x173fa3(0x41f)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x173fa3(0x277)](){const _0x134596=_0x173fa3;throw new Error(_0x134596(0x505));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){const _0x1ceb4b=_0x173fa3;return this[_0x1ceb4b(0x439)](),this['_injector']['createInstance'](ie,this['unitID'],this[_0x1ceb4b(0x32d)],null,this[_0x1ceb4b(0x4d0)],this[_0x1ceb4b(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x3be)](_0x2be849){const _0x4e1c57=_0x173fa3,_0x266c36=_0x2be849!=null?_0x2be849:this[_0x4e1c57(0x21d)]();this[_0x4e1c57(0x507)]=new Date()['getTime'](),this[_0x4e1c57(0x294)]=window[_0x4e1c57(0x4a5)](()=>{const _0x151182=_0x4e1c57;this[_0x151182(0x439)]();let _0x1b6b57=null;switch(this[_0x151182(0x32d)]){case B[_0x151182(0x4fa)]:{_0x1b6b57=ms(this['_pendingMutations'],this['unitID'],this[_0x151182(0x3f2)],this[_0x151182(0x45a)],this[_0x151182(0x1c9)]);break;}case B['UNIVER_DOC']:{this['_pendingMutations']['every'](_0x598c01=>_0x598c01['id']===_0x179d55['id'])?_0x1b6b57=br(this[_0x151182(0x4d0)],this[_0x151182(0x23a)],this[_0x151182(0x3f2)],this['_revisionService'],this[_0x151182(0x1c9)]):_0x1b6b57=ms(this[_0x151182(0x4d0)],this[_0x151182(0x23a)],this[_0x151182(0x3f2)],this[_0x151182(0x45a)],this[_0x151182(0x1c9)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x394162,pendingMutations:_0x38a183}=_0x1b6b57;this[_0x151182(0x340)]['onSendChangeset'](_0x394162);const _0x93aeb3=_0x38a183[_0x151182(0x223)]?this[_0x151182(0x4b7)][_0x151182(0x31f)](z,this[_0x151182(0x23a)],this[_0x151182(0x32d)],_0x394162,_0x38a183,this[_0x151182(0x340)],void 0x0):this[_0x151182(0x4b7)][_0x151182(0x31f)](te,this[_0x151182(0x23a)],this[_0x151182(0x32d)],_0x394162,this['_handler']);_0x93aeb3[_0x151182(0x1ab)](),this[_0x151182(0x340)]['onStateChange'](this,_0x93aeb3);},_0x266c36);}[_0x173fa3(0x21d)](){const _0x3cedfc=_0x173fa3;var _0x4d3ca7;const _0x881d4b=this[_0x3cedfc(0x205)]['getConfig'](j);return(_0x4d3ca7=_0x881d4b==null?void 0x0:_0x881d4b['sendChangesetTimeout'])!=null?_0x4d3ca7:bn;}['resend'](){const _0x52364b=_0x173fa3;throw new Error(_0x52364b(0x221));}[_0x173fa3(0x439)](){const _0x1a2e75=_0x173fa3;this[_0x1a2e75(0x294)]!=null&&(clearTimeout(this[_0x1a2e75(0x294)]),this[_0x1a2e75(0x294)]=null);}[_0x173fa3(0x1c7)](_0x55a632){const _0x510a3e=_0x173fa3;return this[_0x510a3e(0x439)](),this[_0x510a3e(0x4b7)][_0x510a3e(0x31f)](se,this[_0x510a3e(0x23a)],this['type'],null,this[_0x510a3e(0x4d0)],this[_0x510a3e(0x340)],_0x55a632);}};J=me([f(0x4,_0x4f7ed2(_0x3b0750)),f(0x5,_0x4f7ed2(_0x6cbd2e)),f(0x6,_0x4f7ed2(D)),f(0x7,_0x4f7ed2(_e)),f(0x8,_0x4329b1),f(0x9,_0xdec94a),f(0xa,_0x13b27e),f(0xb,_0x4a8bc3),f(0xc,_0x1e8ecc),f(0xd,_0x57ccc3)],J);let te=class extends fe{constructor(_0x5e9316,_0x102721,_0x2b1f2c,_0x5a5ac7,_0x24e390,_0x5084f2,_0x273a71,_0x57ab9b,_0x3a25fd,_0x569e5d,_0xbee60f){const _0x46e4b8=_0x173fa3;super(_0x5e9316,_0x102721,_0x2b1f2c,[],_0x5a5ac7,_0x57ab9b,_0xbee60f,_0x5084f2,_0x273a71),l(this,_0x46e4b8(0x38d),_0x46e4b8(0x41c)),l(this,'_resendTimeout',0x0),l(this,_0x46e4b8(0x3df)),l(this,_0x46e4b8(0x2ce)),(this['_injector']=_0x24e390,this[_0x46e4b8(0x2cd)]=_0x3a25fd,this[_0x46e4b8(0x387)]=_0x569e5d);}[_0x173fa3(0x44f)](_0xbbe675){const _0x3b6d92=_0x173fa3;this[_0x3b6d92(0x439)]();const _0x1ba7d8=this[_0x3b6d92(0x4b7)]['createInstance'](z,this[_0x3b6d92(0x23a)],this['type'],this['_awaitingChangeset'],[_0xbbe675],this[_0x3b6d92(0x340)],this['_resendTimer']);return _0x1ba7d8[_0x3b6d92(0x1ab)](),_0x1ba7d8;}['onRemoteChangeset'](_0x27e066){const _0x31219e=_0x173fa3;if(this['_checkMissing'](_0x27e066))return this[_0x31219e(0x439)](),this[_0x31219e(0x4b7)]['createInstance'](V,this[_0x31219e(0x23a)],this['type'],this[_0x31219e(0x249)],[],null,[_0x27e066],this[_0x31219e(0x340)]);try{const _0x1005fd=this['_transformService'][_0x31219e(0x3c8)]([_0x27e066],[this[_0x31219e(0x249)]],!0x1);if(_0xec58bb(_0x1005fd)){const {c1Prime:_0x126a44,c2Prime:_0x41020e}=_0x1005fd;this[_0x31219e(0x2ee)](_0x126a44[0x0]),_0x41020e[0x0][_0x31219e(0x4d3)]=this['_getCurrentRevision'](),this[_0x31219e(0x439)]();const _0x263ad4=this[_0x31219e(0x4b7)]['createInstance'](te,this['unitID'],this['type'],_0x41020e[0x0],this['_handler']);return _0x263ad4['_updateLocalCache'](),_0x263ad4;}return this[_0x31219e(0x1c7)](!0x1);}catch(_0x46ee68){return this[_0x31219e(0x2cd)][_0x31219e(0x3b8)](_0x46ee68),this[_0x31219e(0x1c7)](!0x1);}}[_0x173fa3(0x41f)](_0x2123f4){const _0x3d71c3=_0x173fa3;this['_clearScheduledTask']();const _0x59a967=this[_0x3d71c3(0x45a)][_0x3d71c3(0x462)](this['unitID']);if(_0x2123f4['revision']<_0x59a967-0x1)return this;if(this[_0x3d71c3(0x40f)](_0x2123f4))return this[_0x3d71c3(0x4b7)][_0x3d71c3(0x31f)](V,this[_0x3d71c3(0x23a)],this[_0x3d71c3(0x32d)],null,[],this[_0x3d71c3(0x249)],[],this[_0x3d71c3(0x340)]);this[_0x3d71c3(0x2ca)]();const _0xf593c7=this[_0x3d71c3(0x4b7)][_0x3d71c3(0x31f)](Ee,this['unitID'],this[_0x3d71c3(0x32d)],this[_0x3d71c3(0x340)]);return _0xf593c7['_updateLocalCache'](),_0xf593c7;}[_0x173fa3(0x277)](_0x326454){const _0x18011a=_0x173fa3;return this[_0x18011a(0x1c7)](!!(_0x326454!=null&&_0x326454[_0x18011a(0x1b7)]));}[_0x173fa3(0x1b0)](_0x12e342){const _0x388b30=_0x173fa3;return this[_0x388b30(0x4b2)]>Ks?this[_0x388b30(0x3bb)]():(this[_0x388b30(0x3df)]=Ys(this[_0x388b30(0x4b2)],{'timeout':this[_0x388b30(0x4b2)],'reqId':_0x12e342[_0x388b30(0x271)]}),this[_0x388b30(0x2ce)]=this[_0x388b30(0x3df)]['subscribe'](({reqId:_0x593cb8,timeout:_0x836247})=>{const _0x396b7a=_0x388b30;this[_0x396b7a(0x3fd)](_0x593cb8,_0x836247);}),this);}[_0x173fa3(0x3bb)](){const _0x56582e=_0x173fa3;return this[_0x56582e(0x439)](),this['_injector']['createInstance'](ie,this[_0x56582e(0x23a)],this['type'],this['_awaitingChangeset'],[],this[_0x56582e(0x340)]);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){const _0x27f908=_0x173fa3;this[_0x27f908(0x340)]['onSendChangeset'](this[_0x27f908(0x249)]);}[_0x173fa3(0x1c7)](_0x2b46db){const _0x58a042=_0x173fa3;return this['_clearScheduledTask'](),this['_injector']['createInstance'](se,this[_0x58a042(0x23a)],this['type'],this[_0x58a042(0x249)],[],this[_0x58a042(0x340)],_0x2b46db);}['_resendWithTimeout'](_0xbfda3a,_0x5cd2df){const _0x8c703b=_0x173fa3;var _0x49da73;_0xbfda3a===((_0x49da73=this[_0x8c703b(0x249)])==null?void 0x0:_0x49da73[_0x8c703b(0x271)])&&(this[_0x8c703b(0x1d1)](),this[_0x8c703b(0x4b2)]=_0x5cd2df===0x0?0x3e8:_0x5cd2df*0x2);}['_clearScheduledTask'](){const _0x16b3b4=_0x173fa3;var _0x52097c;(_0x52097c=this[_0x16b3b4(0x2ce)])==null||_0x52097c[_0x16b3b4(0x18e)](),this[_0x16b3b4(0x4b2)]=0x0;}};te=me([f(0x4,_0x4f7ed2(_0x3b0750)),f(0x5,_0x4f7ed2(_0x6cbd2e)),f(0x6,_0x4f7ed2(D)),f(0x7,_0xdec94a),f(0x8,_0x4329b1),f(0x9,_0x4a8bc3),f(0xa,_0x57ccc3)],te);let z=class extends fe{constructor(_0x749996,_0x503eeb,_0x358007,_0x171c44,_0x4630ed,_0x62da99,_0x2d1b5a,_0x2364ba,_0x23dae8,_0x3f4461,_0x1e0a7d,_0x3993d3,_0x1b7a79){const _0x54284e=_0x173fa3;super(_0x749996,_0x503eeb,_0x358007,_0x171c44,_0x4630ed,_0x3f4461,_0x1b7a79,_0x2364ba,_0x23dae8),l(this,_0x54284e(0x38d),_0x54284e(0x226)),l(this,_0x54284e(0x4b2),0x0),l(this,_0x54284e(0x3df)),l(this,_0x54284e(0x2ce)),(this[_0x54284e(0x4b7)]=_0x2d1b5a,this['_logService']=_0x1e0a7d,this[_0x54284e(0x387)]=_0x3993d3,_0x62da99&&(this[_0x54284e(0x3df)]=_0x62da99,this['_sender']=this[_0x54284e(0x3df)][_0x54284e(0x3eb)](({reqId:_0x490cf8,timeout:_0x3a2107})=>{const _0x25d2f9=_0x54284e;this[_0x25d2f9(0x3fd)](_0x490cf8,_0x3a2107);})));}[_0x173fa3(0x44f)](_0x2f1e85){const _0x4a2511=_0x173fa3;return this['_pendingMutations'][_0x4a2511(0x1da)](_0x2f1e85),this;}[_0x173fa3(0x228)](_0x2b0ca2){const _0x57c0b8=_0x173fa3;if(this['_checkMissing'](_0x2b0ca2))return this['_clearScheduledTask'](),this[_0x57c0b8(0x4b7)]['createInstance'](V,this['unitID'],this[_0x57c0b8(0x32d)],this[_0x57c0b8(0x249)],this['_pendingMutations'],null,[_0x2b0ca2],this[_0x57c0b8(0x340)]);try{const _0x4ae245=this['_transformService'][_0x57c0b8(0x3c8)]([_0x2b0ca2],[this['_awaitingChangeset']],!0x1);if(_0xec58bb(_0x4ae245)){const {c1Prime:_0x4e8474,c2Prime:_0x76f801}=_0x4ae245,_0x302c14=this[_0x57c0b8(0x387)][_0x57c0b8(0x3a5)](_0x4e8474[0x0],this[_0x57c0b8(0x4d0)]);if(_0x2c439f(_0x302c14)){const {c1Prime:_0x34491c,m2Prime:_0x4227f9}=_0x302c14;return this[_0x57c0b8(0x2ee)](_0x34491c),_0x76f801[0x0][_0x57c0b8(0x4d3)]=this[_0x57c0b8(0x246)](),this['_clearScheduledTask'](),this['_injector']['createInstance'](z,this[_0x57c0b8(0x23a)],this[_0x57c0b8(0x32d)],_0x76f801[0x0],_0x4227f9,this[_0x57c0b8(0x340)],void 0x0);}throw _0x302c14[_0x57c0b8(0x3b8)];}throw _0x4ae245[_0x57c0b8(0x3b8)];}catch(_0x548d34){return this[_0x57c0b8(0x2cd)][_0x57c0b8(0x3b8)](_0x548d34),this[_0x57c0b8(0x1c7)](!0x1);}}['onRemoteAck'](_0x14df42){const _0x2ae918=_0x173fa3;if(this[_0x2ae918(0x439)](),this[_0x2ae918(0x40f)](_0x14df42))return this['_injector'][_0x2ae918(0x31f)](V,this[_0x2ae918(0x23a)],this[_0x2ae918(0x32d)],null,this[_0x2ae918(0x4d0)],this[_0x2ae918(0x249)],[],this[_0x2ae918(0x340)]);this[_0x2ae918(0x2ca)]();const _0x181865=this[_0x2ae918(0x4b7)][_0x2ae918(0x31f)](J,this[_0x2ae918(0x23a)],this[_0x2ae918(0x32d)],this[_0x2ae918(0x4d0)],this[_0x2ae918(0x340)]);return _0x181865['_schedule'](),_0x181865[_0x2ae918(0x1ab)](),_0x181865;}[_0x173fa3(0x277)](_0x5d7208){const _0xea1213=_0x173fa3;return this[_0xea1213(0x1c7)](!!(_0x5d7208!=null&&_0x5d7208['isPermissionRej']));}[_0x173fa3(0x1b0)](_0x1e69c9){const _0x2b4f84=_0x173fa3;return this[_0x2b4f84(0x4b2)]>Ks?this['toggleOffline']():(this['_resendTimer']=Ys(this[_0x2b4f84(0x4b2)],{'timeout':this[_0x2b4f84(0x4b2)],'reqId':_0x1e69c9['reqId']}),this['_sender']=this['_resendTimer'][_0x2b4f84(0x3eb)](({reqId:_0x2a2710,timeout:_0x92c97b})=>{this['_resendWithTimeout'](_0x2a2710,_0x92c97b);}),this);}['toggleOffline'](){const _0x5241b4=_0x173fa3;return this[_0x5241b4(0x439)](),this[_0x5241b4(0x4b7)][_0x5241b4(0x31f)](ie,this[_0x5241b4(0x23a)],this[_0x5241b4(0x32d)],this[_0x5241b4(0x249)],this[_0x5241b4(0x4d0)],this['_handler']);}[_0x173fa3(0x4a7)](){return this;}[_0x173fa3(0x1d1)](){const _0x2b792c=_0x173fa3;this['_handler'][_0x2b792c(0x379)](this[_0x2b792c(0x249)]);}['_onConflict'](_0x40beeb){const _0x1f43c5=_0x173fa3;return this[_0x1f43c5(0x439)](),this['_injector'][_0x1f43c5(0x31f)](se,this[_0x1f43c5(0x23a)],this[_0x1f43c5(0x32d)],null,this[_0x1f43c5(0x4d0)],this[_0x1f43c5(0x340)],_0x40beeb);}[_0x173fa3(0x3fd)](_0x336e72,_0xb05e2){const _0x37d11b=_0x173fa3;var _0x5360a6;_0x336e72===((_0x5360a6=this[_0x37d11b(0x249)])==null?void 0x0:_0x5360a6[_0x37d11b(0x271)])&&(this[_0x37d11b(0x1d1)](),this[_0x37d11b(0x4b2)]=_0xb05e2===0x0?0x3e8:_0xb05e2*0x2);}[_0x173fa3(0x439)](){const _0x5962e5=_0x173fa3;var _0x34c39e;(_0x34c39e=this[_0x5962e5(0x2ce)])==null||_0x34c39e[_0x5962e5(0x18e)](),this[_0x5962e5(0x4b2)]=0x0;}};z=me([f(0x6,_0x4f7ed2(_0x3b0750)),f(0x7,_0x4f7ed2(_0x6cbd2e)),f(0x8,_0x4f7ed2(D)),f(0x9,_0xdec94a),f(0xa,_0x4329b1),f(0xb,_0x4a8bc3),f(0xc,_0x57ccc3)],z);let se=class extends fe{constructor(_0x12d13b,_0x1ad249,_0xfd5084,_0x27a334,_0x69039e,_0x252f17=!0x1,_0x2c4068,_0x46cfd1,_0xc87da5,_0x1c0d27,_0x3191b5,_0x401182,_0x57e184){const _0x3fb9db=_0x173fa3;super(_0x12d13b,_0x1ad249,_0xfd5084,_0x27a334,_0x69039e,_0x46cfd1,_0xc87da5,_0x3191b5,_0x1c0d27),l(this,_0x3fb9db(0x38d),_0x3fb9db(0x2b1)),(this[_0x3fb9db(0x3e4)]=_0x252f17,this[_0x3fb9db(0x1d0)]=_0x2c4068,this[_0x3fb9db(0x2e7)]=_0x401182,this[_0x3fb9db(0x227)]=_0x57e184,this['_showConflictNotification'](),this[_0x3fb9db(0x225)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x173fa3(0x228)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x33a019=_0x173fa3;throw new Error(_0x33a019(0x19b));}[_0x173fa3(0x225)](){const _0x275036=_0x173fa3;this[_0x275036(0x292)][_0x275036(0x234)](this[_0x275036(0x23a)],this[_0x275036(0x32d)],null,[]);}[_0x173fa3(0x34b)](){const _0xf0b1cc=_0x173fa3;this[_0xf0b1cc(0x3e4)]?this['_notificationService']['show']({'title':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x490)),'content':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x1d8)),'type':_0xf0b1cc(0x3b8),'duration':0x0}):this[_0xf0b1cc(0x227)][_0xf0b1cc(0x1e6)]({'title':this[_0xf0b1cc(0x2e7)]['t'](_0xf0b1cc(0x34f)),'content':this[_0xf0b1cc(0x2e7)]['t']('conflict.content'),'type':_0xf0b1cc(0x3b8),'duration':0x0});}[_0x173fa3(0x261)](){const _0x4e512c=_0x173fa3;this[_0x4e512c(0x1d0)][_0x4e512c(0x1c5)](new _0x52a438(this[_0x4e512c(0x23a)])['id'],!0x1);}};se=me([f(0x6,_0x4f7ed2(_0x8f100a)),f(0x7,_0xdec94a),f(0x8,_0x57ccc3),f(0x9,_0x4f7ed2(D)),f(0xa,_0x4f7ed2(_0x6cbd2e)),f(0xb,_0x4f7ed2(_0x15839b)),f(0xc,_0x21df64)],se);let ie=class extends fe{constructor(_0x22b0c4,_0x3782dc,_0x73eb43,_0x31ff3b,_0x1b2044,_0x2e350b,_0x5c4fac,_0x110394,_0x57571b,_0x199ac4){const _0x563dd4=_0x173fa3;super(_0x22b0c4,_0x3782dc,_0x73eb43,_0x31ff3b,_0x1b2044,_0x57571b,_0x199ac4,_0x5c4fac,_0x110394),l(this,_0x563dd4(0x38d),'offline'),this[_0x563dd4(0x4b7)]=_0x2e350b;}[_0x173fa3(0x44f)](_0x39b599){const _0x174579=_0x173fa3;return this[_0x174579(0x4d0)][_0x174579(0x1da)](_0x39b599),this['_updateLocalCache'](),this;}[_0x173fa3(0x228)](_0x5f9133){const _0x467c3f=_0x173fa3;throw new Error(_0x467c3f(0x20a));}['onRemoteAck'](){const _0x1d8f1d=_0x173fa3;throw new Error(_0x1d8f1d(0x257));}[_0x173fa3(0x277)](){const _0x15e3b4=_0x173fa3;throw new Error(_0x15e3b4(0x3b5));}[_0x173fa3(0x1b0)](){return this;}[_0x173fa3(0x3bb)](){return this;}['toggleOnline'](){const _0x2b2b7a=_0x173fa3,{_injector:_0x47e0e2,_pendingMutations:_0x61dd7f,_awaitingChangeset:_0x2fdc50,unitID:_0x28e954,_handler:_0x7e2df4,type:_0x2c41d9}=this,_0x3f7b30=Xs(_0x47e0e2,_0x28e954,_0x2c41d9,_0x2fdc50,_0x61dd7f,_0x7e2df4);return _0x3f7b30 instanceof J?_0x3f7b30[_0x2b2b7a(0x3be)]():(_0x3f7b30 instanceof z||_0x3f7b30 instanceof te)&&_0x3f7b30[_0x2b2b7a(0x1d1)](),_0x3f7b30;}[_0x173fa3(0x1d1)](){const _0xafef73=_0x173fa3;throw new Error(_0xafef73(0x39e));}};ie=me([f(0x5,_0x4f7ed2(_0x3b0750)),f(0x6,_0x4f7ed2(_0x6cbd2e)),f(0x7,_0x4f7ed2(D)),f(0x8,_0xdec94a),f(0x9,_0x57ccc3)],ie);let V=class extends fe{constructor(_0x692ced,_0x455976,_0x5b2173,_0x4ec061,_0x3db837,_0x4712b0,_0x51f118,_0x11b88a,_0x210274,_0x22e5ba,_0x3e185a,_0x1fee45,_0x3641dc,_0x1bdb4b){const _0x2b0490=_0x173fa3;super(_0x692ced,_0x455976,_0x5b2173,_0x4ec061,_0x51f118,_0x1fee45,_0x3641dc,_0x210274,_0x22e5ba),l(this,_0x2b0490(0x38d),_0x2b0490(0x2af)),(this[_0x2b0490(0x500)]=_0x3db837,this[_0x2b0490(0x3db)]=_0x4712b0,this[_0x2b0490(0x4b7)]=_0x11b88a,this[_0x2b0490(0x2cd)]=_0x3e185a,this['_transformService']=_0x1bdb4b);}[_0x173fa3(0x1ed)](_0x4d0c62){const _0x53fe4f=_0x173fa3;try{const _0x1170a3=[..._0x4d0c62,...this[_0x53fe4f(0x3db)]],_0xddb6db=[this[_0x53fe4f(0x249)]||this[_0x53fe4f(0x500)]][_0x53fe4f(0x2fb)](_0x27b7d5=>!!_0x27b7d5);let _0x26acdd,_0x3671a8;if(_0xddb6db[_0x53fe4f(0x223)]){const _0x5c7718=this[_0x53fe4f(0x387)][_0x53fe4f(0x3c8)](_0x1170a3,_0xddb6db,!0x1);if(!_0xec58bb(_0x5c7718))throw _0x5c7718[_0x53fe4f(0x3b8)];_0x26acdd=_0x5c7718[_0x53fe4f(0x33a)],_0x3671a8=_0x5c7718['c2Prime'];}else _0x26acdd=_0x1170a3,_0x3671a8=[];let _0x56e252=this[_0x53fe4f(0x4d0)];_0x26acdd['forEach'](_0xebc70c=>{const _0x264dc0=_0x53fe4f;let _0x491adc;if(_0x56e252[_0x264dc0(0x223)]){const _0x188ac5=this['_transformService'][_0x264dc0(0x3a5)](_0xebc70c,_0x56e252);if(!_0x2c439f(_0x188ac5))throw _0x188ac5[_0x264dc0(0x3b8)];_0x491adc=_0x188ac5[_0x264dc0(0x33a)],_0x56e252=_0x188ac5[_0x264dc0(0x197)];}else _0x491adc=_0xebc70c;this[_0x264dc0(0x2ee)](_0x491adc);}),this[_0x53fe4f(0x500)]&&this[_0x53fe4f(0x2ca)](),this[_0x53fe4f(0x249)]&&_0x3671a8[_0x53fe4f(0x223)]&&(_0x3671a8[0x0][_0x53fe4f(0x4d3)]=this['_getCurrentRevision']());let _0x299c0d;if(this[_0x53fe4f(0x249)]&&_0x56e252[_0x53fe4f(0x223)]!==0x0)_0x299c0d=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](z,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x3671a8[0x0],_0x56e252,this['_handler'],void 0x0);else{if(this['_awaitingChangeset']&&_0x56e252[_0x53fe4f(0x223)]===0x0)_0x3671a8[0x0][_0x53fe4f(0x4d3)]=this[_0x53fe4f(0x246)](),_0x299c0d=this['_injector'][_0x53fe4f(0x31f)](te,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x3671a8[0x0],this[_0x53fe4f(0x340)]);else{if(_0x56e252[_0x53fe4f(0x223)]!==0x0){const _0x345665=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](J,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],_0x56e252,this['_handler']);_0x345665[_0x53fe4f(0x3be)](),_0x299c0d=_0x345665;}else _0x299c0d=this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](Ee,this['unitID'],this[_0x53fe4f(0x32d)],this[_0x53fe4f(0x340)]);}}return _0x299c0d['_updateLocalCache'](),_0x299c0d;}catch(_0x4ddfd1){return this[_0x53fe4f(0x2cd)][_0x53fe4f(0x3b8)](_0x53fe4f(0x23f),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4ddfd1),this[_0x53fe4f(0x4b7)][_0x53fe4f(0x31f)](se,this[_0x53fe4f(0x23a)],this[_0x53fe4f(0x32d)],this[_0x53fe4f(0x249)],this[_0x53fe4f(0x4d0)],this[_0x53fe4f(0x340)],!0x1);}}[_0x173fa3(0x1d1)](){const _0x596c3c=_0x173fa3;throw new Error(_0x596c3c(0x283));}[_0x173fa3(0x44f)](_0x45edb6){const _0x41c46e=_0x173fa3;return this['_pendingMutations'][_0x41c46e(0x1da)](_0x45edb6),this;}[_0x173fa3(0x228)](_0x5ce238){const _0x47d7c9=_0x173fa3;return this[_0x47d7c9(0x3db)][_0x47d7c9(0x1da)](_0x5ce238),this;}[_0x173fa3(0x41f)](_0x1fb235){const _0x590e83=_0x173fa3;if(this[_0x590e83(0x249)])return this['_acknowledgedAwaitingChangeset']=this[_0x590e83(0x249)],this[_0x590e83(0x249)]=null,this;throw new Error(_0x590e83(0x1e1));}[_0x173fa3(0x277)](_0x187833){const _0x3cc5a2=_0x173fa3;return this[_0x3cc5a2(0x1c7)](!!(_0x187833!=null&&_0x187833['isPermissionRej']));}[_0x173fa3(0x1b0)](){return this;}['toggleOffline'](){const _0x242e71=_0x173fa3;return this[_0x242e71(0x4b7)][_0x242e71(0x31f)](ie,this['unitID'],this[_0x242e71(0x32d)],this[_0x242e71(0x249)],this[_0x242e71(0x4d0)],this['_handler']);}[_0x173fa3(0x4a7)](){return this;}['_onConflict'](_0x50e826){const _0x306563=_0x173fa3;return this['_injector'][_0x306563(0x31f)](se,this[_0x306563(0x23a)],this['type'],this['_awaitingChangeset'],this[_0x306563(0x4d0)],this[_0x306563(0x340)],_0x50e826);}};V=me([f(0x7,_0x4f7ed2(_0x3b0750)),f(0x8,_0x4f7ed2(_0x6cbd2e)),f(0x9,_0x4f7ed2(D)),f(0xa,_0x4329b1),f(0xb,_0xdec94a),f(0xc,_0x57ccc3),f(0xd,_0x4a8bc3)],V);function Xs(_0xf20ead,_0x1c3a87,_0x510df3,_0x357f66,_0x31aae1,_0x4fdbb9){const _0x270d56=_0x173fa3;return _0x357f66&&_0x31aae1[_0x270d56(0x223)]?_0xf20ead[_0x270d56(0x31f)](z,_0x1c3a87,_0x510df3,_0x357f66,_0x31aae1,_0x4fdbb9,void 0x0):_0x357f66?_0xf20ead['createInstance'](te,_0x1c3a87,_0x510df3,_0x357f66,_0x4fdbb9):_0x31aae1[_0x270d56(0x223)]?_0xf20ead['createInstance'](J,_0x1c3a87,_0x510df3,_0x31aae1,_0x4fdbb9):_0xf20ead[_0x270d56(0x31f)](Ee,_0x1c3a87,_0x510df3,_0x4fdbb9);}var Dr=Object[_0x173fa3(0x309)],wr=Object['getOwnPropertyDescriptor'],Gt=(_0x566b17,_0x2c03f6,_0x56b934,_0x23f02f)=>{const _0x40d7c9=_0x173fa3;for(var _0x3be6bc=_0x23f02f>0x1?void 0x0:_0x23f02f?wr(_0x2c03f6,_0x56b934):_0x2c03f6,_0x1ba6fa=_0x566b17[_0x40d7c9(0x223)]-0x1,_0x73dcbe;_0x1ba6fa>=0x0;_0x1ba6fa--)(_0x73dcbe=_0x566b17[_0x1ba6fa])&&(_0x3be6bc=(_0x23f02f?_0x73dcbe(_0x2c03f6,_0x56b934,_0x3be6bc):_0x73dcbe(_0x3be6bc))||_0x3be6bc);return _0x23f02f&&_0x3be6bc&&Dr(_0x2c03f6,_0x56b934,_0x3be6bc),_0x3be6bc;},p=(_0x3bd44f,_0x478a52)=>(_0x224246,_0x42aa93)=>_0x478a52(_0x224246,_0x42aa93,_0x3bd44f);let ze=class extends _0x13ba8e{constructor(_0x4a6f49,_0x2227ce,_0x4fd43b,_0x300c61,_0x5350d2,_0x5091fb,_0x2824e4,_0x1c1a5f,_0x3491eb,_0xe8b4e0,_0x33f46e,_0x1396aa,_0x7a307e){const _0x522d57=_0x173fa3;super(),l(this,_0x522d57(0x1c0),new _0x37b5ce(null)),l(this,'state$',this[_0x522d57(0x1c0)][_0x522d57(0x2e6)]()),l(this,_0x522d57(0x335)),l(this,_0x522d57(0x400),!0x1),l(this,_0x522d57(0x354),''),l(this,_0x522d57(0x25e),0x0),l(this,_0x522d57(0x28e),this[_0x522d57(0x3d6)][_0x522d57(0x35b)](_0x4afa33(_0x26c124=>_0x26c124?_0x26c124[_0x522d57(0x38d)]:w[_0x522d57(0x410)]),_0x5fb4e1(0x1))),l(this,_0x522d57(0x510),!0x1),l(this,_0x522d57(0x190),[]),(this[_0x522d57(0x23a)]=_0x4a6f49,this[_0x522d57(0x4d2)]=_0x2227ce,this[_0x522d57(0x50c)]=_0x4fd43b,this['_injector']=_0x300c61,this['_localCacheService']=_0x5350d2,this[_0x522d57(0x328)]=_0x5091fb,this['_localeService']=_0x2824e4,this['_revisionService']=_0x1c1a5f,this[_0x522d57(0x2cd)]=_0x3491eb,this[_0x522d57(0x35c)]=_0xe8b4e0,this[_0x522d57(0x245)]=_0x33f46e,this[_0x522d57(0x1d0)]=_0x1396aa,this['_singleActiveUnitService']=_0x7a307e);}get['state'](){const _0x58b1e8=_0x173fa3;return this[_0x58b1e8(0x335)];}async['init'](){const _0x4f2894=_0x173fa3;if(this['state'])throw new Error(_0x4f2894(0x35d));await this['_init']();}[_0x173fa3(0x508)](){const _0x35aa24=_0x173fa3;return this[_0x35aa24(0x400)]=!0x0,_0x4a9188(()=>{const _0x5bde14=_0x35aa24;this[_0x5bde14(0x400)]=!0x1,this[_0x5bde14(0x370)]();});}['_updateState'](_0x3e025a){const _0x110abc=_0x173fa3;this[_0x110abc(0x335)]=_0x3e025a,this[_0x110abc(0x1c0)][_0x110abc(0x2d0)](_0x3e025a);}async[_0x173fa3(0x367)](){const _0x7ac7d4=_0x173fa3;var _0x12e4a4;this[_0x7ac7d4(0x258)](await this[_0x7ac7d4(0x1e3)]()),this[_0x7ac7d4(0x1cd)]&&((_0x12e4a4=this[_0x7ac7d4(0x1cd)])==null||_0x12e4a4[_0x7ac7d4(0x4fc)](this[_0x7ac7d4(0x23a)]),this[_0x7ac7d4(0x193)](this[_0x7ac7d4(0x1cd)][_0x7ac7d4(0x324)](this['unitID'])[_0x7ac7d4(0x3eb)](_0x57557e=>{const _0x2c804f=_0x7ac7d4;this['_logService'][_0x2c804f(0x28a)]('[CollaborationEntity]',_0x2c804f(0x437),_0x57557e),_0x57557e===Ws[_0x2c804f(0x3b9)]?(this[_0x2c804f(0x245)]['show']({'content':this[_0x2c804f(0x2e7)]['t']('collaboration.single-unit.warning'),'type':_0x180cc7[_0x2c804f(0x44a)]}),this[_0x2c804f(0x1d0)][_0x2c804f(0x1c5)](new _0x52a438(this[_0x2c804f(0x23a)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x52a438(this['unitID'])['id'],!0x0);})));let _0x2c462b=!0x1;return this['disposeWithMe'](this[_0x7ac7d4(0x4d2)][_0x7ac7d4(0x303)]['subscribe'](_0x5c065a=>{const _0x35730f=_0x7ac7d4;_0x5c065a===X[_0x35730f(0x263)]?this['_toggleOnline'](_0x2c462b):_0x5c065a===X[_0x35730f(0x410)]&&(_0x2c462b=!0x0,this[_0x35730f(0x1b1)]());})),this['disposeWithMe'](this[_0x7ac7d4(0x4d2)][_0x7ac7d4(0x493)][_0x7ac7d4(0x3eb)](_0x34fb5e=>{const _0x444d4d=_0x7ac7d4;try{switch(_0x34fb5e[_0x444d4d(0x278)]){case _0x5f441e[_0x444d4d(0x2ef)]:{this[_0x444d4d(0x2b0)](_0x4ecc3b(_0x34fb5e['data']));break;}case _0x5f441e[_0x444d4d(0x18d)]:{this[_0x444d4d(0x4f4)](_0x34fb5e[_0x444d4d(0x411)]);break;}case _0x5f441e[_0x444d4d(0x25d)]:{this[_0x444d4d(0x1ac)]();break;}case _0x5f441e[_0x444d4d(0x4b9)]:{this['_onRemoteRetry'](_0x34fb5e[_0x444d4d(0x411)]);break;}case _0x5f441e[_0x444d4d(0x46f)]:{this[_0x444d4d(0x1df)](_0x34fb5e[_0x444d4d(0x411)][_0x444d4d(0x386)][_0x444d4d(0x204)](_0xd2ee3e=>_0x4ecc3b(_0xd2ee3e)));break;}case _0x5f441e['PERMISSION_REJ']:this[_0x444d4d(0x1ac)]({'isPermissionRej':!0x0});}}catch(_0x58728b){throw console[_0x444d4d(0x3b8)](_0x444d4d(0x4f8),_0x58728b),_0x58728b;}})),this[_0x7ac7d4(0x335)];}[_0x173fa3(0x2c6)](){const _0x404948=_0x173fa3;this[_0x404948(0x510)]=!0x1;}[_0x173fa3(0x2bd)](){const _0x4bf831=_0x173fa3;if(this[_0x4bf831(0x510)])throw new Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x4bf831(0x510)]=!0x0;}['_onLocalMutation'](_0x23c61f){const _0x37bf45=_0x173fa3;this['_lockTransition'](),this[_0x37bf45(0x258)](this[_0x37bf45(0x335)][_0x37bf45(0x44f)](_0x23c61f)),this[_0x37bf45(0x2c6)]();}[_0x173fa3(0x2b0)](_0x42b691){const _0x4a6a48=_0x173fa3;if(!(_0x42b691[_0x4a6a48(0x495)]<=this['_revisionService'][_0x4a6a48(0x462)](this['unitID']))){if(this[_0x4a6a48(0x400)]){this['_remoteChangesetQueue']['push'](_0x42b691);return;}this[_0x4a6a48(0x2ad)](_0x42b691);}}[_0x173fa3(0x370)](){const _0x210b27=_0x173fa3;this['_remoteChangesetQueue']['forEach'](_0x1119fc=>this['_applyRemoteChangeset'](_0x1119fc)),this[_0x210b27(0x190)]=[];}['_applyRemoteChangeset'](_0x145610){const _0x4b49ef=_0x173fa3,_0x1cef39=this[_0x4b49ef(0x328)][_0x4b49ef(0x28d)][_0x4b49ef(0x448)](this['_compressMutationService'][_0x4b49ef(0x28d)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x145610[_0x4b49ef(0x4cd)],null)||_0x145610['mutations'],_0x2aee62={..._0x145610,'mutations':_0x1cef39};this['_lockTransition'](),this[_0x4b49ef(0x258)](this['_state']['onRemoteChangeset'](_0x2aee62)),this[_0x4b49ef(0x2c6)]();}['_onRemoteACK'](_0x11f488){const _0x4f2afd=_0x173fa3;this[_0x4f2afd(0x2bd)](),this[_0x4f2afd(0x258)](this[_0x4f2afd(0x335)][_0x4f2afd(0x41f)](_0x11f488)),this[_0x4f2afd(0x2c6)]();}[_0x173fa3(0x1ac)](_0x1f1572){const _0x5cbc06=_0x173fa3;this[_0x5cbc06(0x2bd)](),this[_0x5cbc06(0x258)](this[_0x5cbc06(0x335)][_0x5cbc06(0x277)](_0x1f1572)),this['_unlockTransition']();}['_onRemoteRetry'](_0x228093){const _0x493e6d=_0x173fa3;this[_0x493e6d(0x2bd)](),this[_0x493e6d(0x258)](this[_0x493e6d(0x335)]['onRemoteRetry'](_0x228093)),this[_0x493e6d(0x2c6)]();}[_0x173fa3(0x1df)](_0x37a324){const _0x882bb5=_0x173fa3;if(!(this[_0x882bb5(0x335)]instanceof V))throw new TypeError(_0x882bb5(0x4e1));const _0x2d68e3=_0x37a324[_0x882bb5(0x204)](_0x190ccf=>{const _0x324136=_0x882bb5,_0xaaf6b9=this[_0x324136(0x328)]['interceptor'][_0x324136(0x448)](this[_0x324136(0x328)]['interceptor'][_0x324136(0x440)]()[_0x324136(0x383)])(_0x190ccf[_0x324136(0x4cd)],null)||_0x190ccf[_0x324136(0x4cd)];return{..._0x190ccf,'mutations':_0xaaf6b9};});this[_0x882bb5(0x2bd)](),this[_0x882bb5(0x258)](this[_0x882bb5(0x335)][_0x882bb5(0x1ed)](_0x2d68e3)),this['_unlockTransition']();}[_0x173fa3(0x1b1)](){const _0x452003=_0x173fa3;this['_lockTransition'](),this['_updateState'](this[_0x452003(0x335)]['toggleOffline']()),this[_0x452003(0x2c6)]();}[_0x173fa3(0x23d)](_0xd512cd=!0x1){const _0x4f1812=_0x173fa3;this[_0x4f1812(0x2bd)](),this[_0x4f1812(0x258)](this['_state']['toggleOnline']()),this[_0x4f1812(0x2c6)]();const _0x5b8dc1=this['_state'];_0xd512cd&&_0x5b8dc1 instanceof Ee&&(this[_0x4f1812(0x2bd)](),this['_updateState'](_0x5b8dc1['fetchMiss']()),this['_unlockTransition']());}async[_0x173fa3(0x1e3)](){return new Promise(_0x2d3686=>{const _0x364d0c=_0x33c3;this[_0x364d0c(0x4d2)]['sessionStatus$']['pipe'](_0x13b5e9(0x1))[_0x364d0c(0x3eb)](async _0xf4a2ee=>{const _0x251ae2=_0x364d0c;_0x2d3686(await this[_0x251ae2(0x488)](_0xf4a2ee===X[_0x251ae2(0x263)]));});});}[_0x173fa3(0x2de)](){const _0x5bc00e=_0x173fa3,_0x65b7a2=this[_0x5bc00e(0x23a)];return{'onStateChange':(_0x4d212c,_0x26719e)=>{const _0x37f6e8=_0x5bc00e;if(_0x4d212c!==this[_0x37f6e8(0x335)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x4d212c['status']+_0x37f6e8(0x390)+_0x26719e['status']+_0x37f6e8(0x350)+this[_0x37f6e8(0x335)][_0x37f6e8(0x38d)]);this[_0x37f6e8(0x258)](_0x26719e);},'onSendChangeset':_0x23b2c0=>{const _0x46726d=_0x5bc00e;_0x23b2c0[_0x46726d(0x3da)]||(_0x23b2c0[_0x46726d(0x3da)]=this['_changesetSessionId'],_0x23b2c0[_0x46726d(0x271)]=++this['_changesetReqId']);const _0x136df2={'eventID':_0x5f441e[_0x46726d(0x453)],'data':{'unitID':_0x23b2c0[_0x46726d(0x23a)],'unitType':this['_type'],'changeset':_0x23b2c0,'memberID':this['session']['getMemberID']()}};this[_0x46726d(0x4d2)][_0x46726d(0x2ab)](_0x136df2,this[_0x46726d(0x23a)]);},'onMissingChangesets':({from:_0x43c58c,to:_0x5910f5})=>{const _0x414009=_0x5bc00e;this[_0x414009(0x2cd)][_0x414009(0x28a)](_0x414009(0x229),_0x414009(0x2b8)+_0x43c58c+_0x414009(0x2ed)+_0x5910f5);const _0x4c0383={'eventID':_0x5f441e[_0x414009(0x4a2)],'data':{'unitID':_0x65b7a2,'unitType':this['_type'],'from':_0x43c58c,'to':_0x5910f5}};this[_0x414009(0x4d2)]['send'](_0x4c0383,this[_0x414009(0x23a)]);}};}async[_0x173fa3(0x488)](_0x4937a7){const _0x552654=_0x173fa3;var _0x214f4e,_0x266623;const _0x429ce4=await this[_0x552654(0x292)][_0x552654(0x302)](this[_0x552654(0x23a)]),_0x2cf7c2=(_0x214f4e=_0x429ce4==null?void 0x0:_0x429ce4[_0x552654(0x4cd)])!=null?_0x214f4e:[],_0x13f3e6=(_0x266623=_0x429ce4==null?void 0x0:_0x429ce4[_0x552654(0x3fe)])!=null?_0x266623:null,_0x1ca59f=!!(_0x13f3e6!=null&&_0x13f3e6[_0x552654(0x3da)])&&!!(_0x13f3e6!=null&&_0x13f3e6[_0x552654(0x271)]);this[_0x552654(0x354)]=_0x1ca59f?_0x13f3e6[_0x552654(0x3da)]:or(),this[_0x552654(0x25e)]=_0x1ca59f?_0x13f3e6[_0x552654(0x271)]:0x0;const _0x4f70b7=this['unitID'];try{this['_replayCachedMutations'](_0x13f3e6,_0x2cf7c2);}catch(_0xfbc31c){this[_0x552654(0x2cd)][_0x552654(0x3b8)](_0xfbc31c);}const _0x1cf04d=this[_0x552654(0x2de)]();if(_0x4937a7){const _0x20db5b=Xs(this['_injector'],_0x4f70b7,this[_0x552654(0x50c)],_0x13f3e6,_0x2cf7c2,_0x1cf04d);return _0x20db5b instanceof J?_0x20db5b[_0x552654(0x3be)]():(_0x20db5b instanceof z||_0x20db5b instanceof te)&&_0x20db5b[_0x552654(0x1d1)](),_0x20db5b;}return this[_0x552654(0x4b7)][_0x552654(0x31f)](ie,_0x4f70b7,this[_0x552654(0x50c)],_0x13f3e6,_0x2cf7c2,_0x1cf04d);}[_0x173fa3(0x423)](_0x49efcd,_0x2d86e8){const _0x21a18a=_0x173fa3;var _0x147d16,_0x26060f;const _0x59425c=this[_0x21a18a(0x328)]['interceptor']['fetchThroughInterceptors'](this[_0x21a18a(0x328)][_0x21a18a(0x28d)][_0x21a18a(0x440)]()[_0x21a18a(0x383)]);(_0x147d16=_0x59425c((_0x49efcd==null?void 0x0:_0x49efcd[_0x21a18a(0x4cd)])||[],null))==null||_0x147d16['forEach'](_0x24b135=>this[_0x21a18a(0x35c)][_0x21a18a(0x1d2)](_0x24b135['id'],_0x24b135[_0x21a18a(0x465)])),(_0x26060f=_0x59425c(_0x2d86e8||[],null))==null||_0x26060f[_0x21a18a(0x47e)](_0x1027d6=>this[_0x21a18a(0x35c)][_0x21a18a(0x1d2)](_0x1027d6['id'],_0x1027d6[_0x21a18a(0x465)]));}};ze=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4329b1),p(0x9,_0xdec94a),p(0xa,_0x46e149),p(0xb,_0x8f100a),p(0xc,_0x532e88(it))],ze);let Rt=class extends ze{constructor(_0x2abca1,_0xa495c4,_0x50a118,_0x114f9c,_0x233088,_0x8b0685,_0xfe9839,_0x4f1333,_0x3fb426,_0x5af4e6,_0xe54e7d,_0xdcba90,_0xbfa3ef,_0x4b6da5,_0x1197df,_0x3991ca,_0x31be43){const _0x204281=_0x173fa3;super(_0x2abca1,_0x50a118,_0xa495c4,_0x114f9c,_0x233088,_0x8b0685,_0xfe9839,_0x4f1333,_0xbfa3ef,_0x4b6da5,_0x1197df,_0x3991ca,_0x31be43),this[_0x204281(0x23a)]=_0x2abca1,this['type']=_0xa495c4,this[_0x204281(0x4a3)]=_0x3fb426,this[_0x204281(0x286)]=_0x5af4e6,this[_0x204281(0x24b)]=_0xe54e7d,this['_docSyncEditingCollabCursorService']=_0xdcba90;}['_createHandler'](){const _0x3c5d2f=_0x173fa3,_0x6ad273=super[_0x3c5d2f(0x2de)]();return _0x6ad273[_0x3c5d2f(0x280)]=_0x233f62=>this[_0x3c5d2f(0x286)][_0x3c5d2f(0x334)](_0x233f62),_0x6ad273['onTransformSelections']=_0x5ee987=>this[_0x3c5d2f(0x24b)][_0x3c5d2f(0x366)](_0x5ee987),_0x6ad273['onSyncEditingCollabCursor']=_0x1ffdaa=>this[_0x3c5d2f(0x27d)][_0x3c5d2f(0x461)](_0x1ffdaa),_0x6ad273['onTransformRemoteChangesetByIMECache']=_0x2ada47=>this['_docTransformIMECacheService'][_0x3c5d2f(0x47a)](_0x2ada47),_0x6ad273;}async['_init'](){const _0x2b610c=_0x173fa3,_0x593e87=await super[_0x2b610c(0x367)]();return this[_0x2b610c(0x4a3)][_0x2b610c(0x1ae)][_0x2b610c(0x35b)](_0x223895(this[_0x2b610c(0x2a1)]))[_0x2b610c(0x3eb)](_0x51429a=>{const _0x1aa698=_0x2b610c;if(_0x51429a==null)return;const {unitId:_0xf08b52,redoState:_0x1b3e6d,commandId:_0x2a18a3}=_0x51429a;if(_0xf08b52!==this['unitID'])return;const _0x484f98={'id':_0x2a18a3,'type':_0x12b588[_0x1aa698(0x45f)],'params':{'unitId':_0xf08b52,'actions':_0x1b3e6d[_0x1aa698(0x1c3)],'textRanges':null}};this[_0x1aa698(0x48f)](_0x484f98);}),_0x593e87;}};Rt=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4f7ed2(_0x12095e)),p(0x9,_0x4f7ed2(Xe)),p(0xa,_0x4f7ed2(Je)),p(0xb,_0x4f7ed2(Wt)),p(0xc,_0x4329b1),p(0xd,_0xdec94a),p(0xe,_0x46e149),p(0xf,_0x8f100a),p(0x10,_0x532e88(it))],Rt);let Ot=class extends ze{constructor(_0x14b486,_0x7e0a8a,_0x15964c,_0x14491a,_0xd83adc,_0x1c9372,_0x1189d4,_0x20fa93,_0x1a6800,_0x44eed9,_0x259196,_0x297ab2,_0x272f3f,_0x3ab0ab){const _0x30c149=_0x173fa3;super(_0x14b486,_0x15964c,_0x7e0a8a,_0x14491a,_0xd83adc,_0x1c9372,_0x1189d4,_0x20fa93,_0x44eed9,_0x259196,_0x297ab2,_0x272f3f,_0x3ab0ab),this[_0x30c149(0x23a)]=_0x14b486,this[_0x30c149(0x32d)]=_0x7e0a8a,this['_sheetTransformSelectionsService']=_0x1a6800;}[_0x173fa3(0x2de)](){const _0x3a422a=_0x173fa3,_0x167e54=super['_createHandler']();return _0x167e54[_0x3a422a(0x405)]=_0x18770d=>this[_0x3a422a(0x494)][_0x3a422a(0x366)](_0x18770d),_0x167e54;}async[_0x173fa3(0x367)](){const _0x22065a=_0x173fa3,_0xc6d202=await super[_0x22065a(0x367)]();return this[_0x22065a(0x193)](this[_0x22065a(0x35c)][_0x22065a(0x409)]((_0x2d55bb,_0xa3fb0e)=>{const _0xe301a7=_0x22065a;if(_0x2d55bb[_0xe301a7(0x32d)]!==_0x12b588['MUTATION']||_0xa3fb0e!=null&&_0xa3fb0e[_0xe301a7(0x48b)]||_0xa3fb0e!=null&&_0xa3fb0e[_0xe301a7(0x310)])return;const _0x2d3b14=_0x2d55bb['params'];if((_0x2d3b14==null?void 0x0:_0x2d3b14[_0xe301a7(0x217)])!==this['unitID'])return;const _0x206d88=_0x2d55bb,_0xbd861f=this[_0xe301a7(0x328)][_0xe301a7(0x28d)][_0xe301a7(0x448)](this[_0xe301a7(0x328)][_0xe301a7(0x28d)][_0xe301a7(0x440)]()[_0xe301a7(0x327)])([_0x206d88],null)||[_0x206d88];this[_0xe301a7(0x48f)](_0xbd861f[0x0]);})),_0xc6d202;}};Ot=Gt([p(0x3,_0x4f7ed2(_0x3b0750)),p(0x4,_0x4f7ed2(D)),p(0x5,_0x4f7ed2(_0x413548)),p(0x6,_0x4f7ed2(_0x15839b)),p(0x7,_0x4f7ed2(_0x6cbd2e)),p(0x8,_0x4f7ed2(qe)),p(0x9,_0x4329b1),p(0xa,_0xdec94a),p(0xb,_0x46e149),p(0xc,_0x8f100a),p(0xd,_0x532e88(it))],Ot);var Pr=Object[_0x173fa3(0x309)],yr=Object[_0x173fa3(0x4d5)],Ur=(_0x3c7b85,_0x398c06,_0x50c1b0,_0x565c87)=>{const _0x28dcce=_0x173fa3;for(var _0x30fa9c=_0x565c87>0x1?void 0x0:_0x565c87?yr(_0x398c06,_0x50c1b0):_0x398c06,_0x3cecda=_0x3c7b85[_0x28dcce(0x223)]-0x1,_0x32ac3c;_0x3cecda>=0x0;_0x3cecda--)(_0x32ac3c=_0x3c7b85[_0x3cecda])&&(_0x30fa9c=(_0x565c87?_0x32ac3c(_0x398c06,_0x50c1b0,_0x30fa9c):_0x32ac3c(_0x30fa9c))||_0x30fa9c);return _0x565c87&&_0x30fa9c&&Pr(_0x398c06,_0x50c1b0,_0x30fa9c),_0x30fa9c;},ut=(_0x162c61,_0x448205)=>(_0x43eb67,_0x1f3e6e)=>_0x448205(_0x43eb67,_0x1f3e6e,_0x162c61);let $e=class extends _0x13ba8e{constructor(_0x49d9fb,_0x286460,_0x4bd336){const _0x765214=_0x173fa3;super(),l(this,_0x765214(0x2d5),new Map()),l(this,'_entityInit$',new _0x54d3a4()),(this['_injector']=_0x49d9fb,this[_0x765214(0x3ef)]=_0x286460,this[_0x765214(0x3f2)]=_0x4bd336,this[_0x765214(0x367)]());}[_0x173fa3(0x2c0)](){const _0x28c500=_0x173fa3;super[_0x28c500(0x2c0)](),this[_0x28c500(0x2d5)]['forEach'](_0x48ebc2=>_0x48ebc2['dispose']()),this['_entities'][_0x28c500(0x483)]();}[_0x173fa3(0x37a)](_0x4b3808){const _0x41bdb5=_0x173fa3;var _0x40c7e2;return(_0x40c7e2=this[_0x41bdb5(0x2d5)][_0x41bdb5(0x3c3)](_0x4b3808))!=null?_0x40c7e2:null;}[_0x173fa3(0x331)](_0x125a56){const _0xa93347=_0x173fa3,_0x31c498=this[_0xa93347(0x37a)](_0x125a56);return _0x31c498?_0x2ad1bd(_0x31c498):this[_0xa93347(0x43f)]['pipe'](_0x3f9fc1(_0x310e2e=>_0x310e2e[_0xa93347(0x23a)]===_0x125a56));}[_0x173fa3(0x367)](){const _0x1e651c=_0x173fa3;this[_0x1e651c(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x1e651c(0x4fa)])[_0x1e651c(0x35b)](_0x223895(this['dispose$']),_0xd71fd1(0x10))[_0x1e651c(0x3eb)](async _0x3e632f=>{const _0xab0b59=_0x1e651c,_0x23d5f9=_0x3e632f[_0xab0b59(0x253)](),_0x1ebc6a=await this[_0xab0b59(0x442)](_0x23d5f9,B['UNIVER_SHEET']);this[_0xab0b59(0x2d5)][_0xab0b59(0x3e3)](_0x23d5f9,_0x1ebc6a);}),this[_0x1e651c(0x3f2)][_0x1e651c(0x22f)](_0x159e2d[_0x1e651c(0x381)])['pipe'](_0x223895(this[_0x1e651c(0x2a1)]),_0xd71fd1(0x10))[_0x1e651c(0x35b)](_0x3f9fc1(_0x594f5a=>!_0x594f5a[_0x1e651c(0x253)]()['startsWith']('__')))['subscribe'](async _0x43b807=>{const _0x567724=_0x1e651c,_0x51f1ca=_0x43b807['getUnitId'](),_0x206ee0=await this[_0x567724(0x442)](_0x51f1ca,B[_0x567724(0x381)]);this[_0x567724(0x2d5)][_0x567724(0x3e3)](_0x51f1ca,_0x206ee0);}),_0x378f3d(this[_0x1e651c(0x3f2)][_0x1e651c(0x33e)](_0x159e2d[_0x1e651c(0x4fa)]),this[_0x1e651c(0x3f2)][_0x1e651c(0x33e)](_0x159e2d['UNIVER_DOC']))[_0x1e651c(0x35b)](_0x223895(this[_0x1e651c(0x2a1)]))[_0x1e651c(0x3eb)](_0x489db7=>{const _0x233e58=_0x1e651c,_0x4373f7=_0x489db7[_0x233e58(0x253)](),_0x5f3f2c=this[_0x233e58(0x2d5)][_0x233e58(0x3c3)](_0x4373f7);_0x5f3f2c&&(_0x5f3f2c[_0x233e58(0x2c0)](),this[_0x233e58(0x2d5)][_0x233e58(0x43b)](_0x4373f7));});}async['_startCollaboration'](_0x99b296,_0x44e7c4){const _0xcb92be=_0x173fa3,_0x3d3494=await this[_0xcb92be(0x3ef)][_0xcb92be(0x395)](_0x99b296),_0xf42d71=this['_injector'][_0xcb92be(0x31f)](this[_0xcb92be(0x499)](_0x44e7c4),_0x99b296,_0x44e7c4,_0x3d3494);return await _0xf42d71[_0xcb92be(0x415)](),this['_entityInit$'][_0xcb92be(0x2d0)](_0xf42d71),_0xf42d71;}[_0x173fa3(0x499)](_0x145b3a){const _0x1de463=_0x173fa3;switch(_0x145b3a){case B['UNIVER_DOC']:return Rt;case B[_0x1de463(0x4fa)]:return Ot;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x145b3a);}}};$e=Ur([ut(0x0,_0x4f7ed2(_0x3b0750)),ut(0x1,_0x4f7ed2(ue)),ut(0x2,_0x1e8ecc)],$e);const fs=[_0x173fa3(0x1db),'jiqing500',_0x173fa3(0x2f3),_0x173fa3(0x3d4),_0x173fa3(0x3a4),'gold400'];class Yt extends _0x1ed84d{constructor(){const _0x2fc741=_0x173fa3;super(...arguments),l(this,_0x2fc741(0x42b),new Map()),l(this,_0x2fc741(0x2a4),0x0);}['assignAColorForMemberID'](_0x1b8dd9){const _0x50f04b=_0x173fa3;if(this[_0x50f04b(0x42b)]['has'](_0x1b8dd9))return this['_assignedColors'][_0x50f04b(0x3c3)](_0x1b8dd9);const _0x24f437=fs[this[_0x50f04b(0x2a4)]];return this['_colorIndex']=(this[_0x50f04b(0x2a4)]+0x1)%fs['length'],this[_0x50f04b(0x42b)][_0x50f04b(0x3e3)](_0x1b8dd9,_0x24f437),_0x24f437;}}var Nr=Object[_0x173fa3(0x309)],Ar=Object[_0x173fa3(0x4d5)],Mr=(_0x5af117,_0x42005f,_0x2697e5,_0x295701)=>{const _0x321693=_0x173fa3;for(var _0x18b805=_0x295701>0x1?void 0x0:_0x295701?Ar(_0x42005f,_0x2697e5):_0x42005f,_0x5b16ab=_0x5af117[_0x321693(0x223)]-0x1,_0x313033;_0x5b16ab>=0x0;_0x5b16ab--)(_0x313033=_0x5af117[_0x5b16ab])&&(_0x18b805=(_0x295701?_0x313033(_0x42005f,_0x2697e5,_0x18b805):_0x313033(_0x18b805))||_0x18b805);return _0x295701&&_0x18b805&&Nr(_0x42005f,_0x2697e5,_0x18b805),_0x18b805;},oe=(_0x7fb2d8,_0x41d828)=>(_0x207142,_0x11bb25)=>_0x41d828(_0x207142,_0x11bb25,_0x7fb2d8);const Lr=0x12c,$r=0x64;let Dt=class extends _0x13ba8e{constructor(_0x3b3957,_0x336306,_0x243969,_0x513bcb,_0x29d5cf,_0x3386e7,_0x449bdd,_0x453a35,_0x4f38e3){const _0x36f95b=_0x173fa3;super(),l(this,'_online',!0x1),l(this,_0x36f95b(0x367),!0x1),l(this,_0x36f95b(0x254),new _0x37b5ce(new Map())),l(this,'cursorInfo$',this[_0x36f95b(0x254)][_0x36f95b(0x2e6)]()),l(this,_0x36f95b(0x2d3),new _0x37b5ce([])),l(this,_0x36f95b(0x1c8),this['_roomMembers$'][_0x36f95b(0x35b)](_0x1fc3db(Lr))),l(this,_0x36f95b(0x2fd),_0x2d1802(_0x3c4226=>{const _0x3a16b2=_0x36f95b,_0xf9d64d={'eventID':_0x5f441e[_0x3a16b2(0x1d3)],'data':{'unitID':this[_0x3a16b2(0x23a)],'memberID':this['_session']['getMemberID'](),'selection':Gs(_0x3c4226)}};this['_session'][_0x3a16b2(0x2ab)](_0xf9d64d,this[_0x3a16b2(0x23a)]);},$r)),(this[_0x36f95b(0x23a)]=_0x3b3957,this[_0x36f95b(0x459)]=_0x336306,this[_0x36f95b(0x4b7)]=_0x243969,this[_0x36f95b(0x42c)]=_0x513bcb,this[_0x36f95b(0x1c9)]=_0x29d5cf,this[_0x36f95b(0x365)]=_0x3386e7,this[_0x36f95b(0x387)]=_0x449bdd,this[_0x36f95b(0x3f2)]=_0x453a35,this['_commandService']=_0x4f38e3);}get[_0x173fa3(0x371)](){const _0x3894b6=_0x173fa3;return this[_0x3894b6(0x254)][_0x3894b6(0x2bc)]();}get['roomMembers'](){const _0x2aca18=_0x173fa3;return this[_0x2aca18(0x2d3)]['getValue']();}[_0x173fa3(0x2c0)](){const _0x4b5ca3=_0x173fa3;super[_0x4b5ca3(0x2c0)](),this[_0x4b5ca3(0x254)][_0x4b5ca3(0x2d0)](new Map()),this['_cursorInfo$'][_0x4b5ca3(0x3b0)](),this['_roomMembers$'][_0x4b5ca3(0x2d0)]([]),this[_0x4b5ca3(0x2d3)][_0x4b5ca3(0x3b0)]();}[_0x173fa3(0x415)](){const _0x1821aa=_0x173fa3;this['_init']||(this[_0x1821aa(0x367)]=!0x0,this[_0x1821aa(0x459)]['sessionStatus$'][_0x1821aa(0x35b)](_0x223895(this[_0x1821aa(0x2a1)]))[_0x1821aa(0x3eb)](_0x1d6774=>{const _0x2fe190=_0x1821aa;_0x1d6774===X[_0x2fe190(0x263)]?this[_0x2fe190(0x23d)]():this[_0x2fe190(0x1b1)]();}),this[_0x1821aa(0x459)]['event$'][_0x1821aa(0x35b)](_0x223895(this[_0x1821aa(0x2a1)]))[_0x1821aa(0x3eb)](_0x2314f3=>{const _0xdd1ec6=_0x1821aa,_0xf74633=_0x2314f3[_0xdd1ec6(0x278)];_0xf74633===_0x5f441e[_0xdd1ec6(0x1d3)]&&this[_0xdd1ec6(0x506)](_0x2314f3),_0xf74633===_0x5f441e[_0xdd1ec6(0x4b5)]&&this[_0xdd1ec6(0x2a9)](_0x2314f3);}),this[_0x1821aa(0x193)](this[_0x1821aa(0x35c)]['onCommandExecuted'](_0x28e4b5=>{const _0x312560=_0x1821aa,_0x521174=_0x28e4b5[_0x312560(0x465)];_0x521174!=null&&this['_online']&&_0x28e4b5['id']===_0x538b13['id']&&_0x521174[_0x312560(0x217)]===this[_0x312560(0x23a)]&&_0x521174[_0x312560(0x3e8)]===!0x1&&_0x521174[_0x312560(0x1f5)][_0x312560(0x223)]>0x0&&this[_0x312560(0x2fd)](_0x521174[_0x312560(0x1f5)]);})),this[_0x1821aa(0x365)][_0x1821aa(0x4ce)][_0x1821aa(0x35b)](_0x223895(this['dispose$']))[_0x1821aa(0x3eb)](_0x3c5f64=>{const _0x9424ff=_0x1821aa;if((_0x3c5f64==null?void 0x0:_0x3c5f64['unitID'])!==this[_0x9424ff(0x23a)])return;const _0xaeb7a4={'eventID':_0x5f441e[_0x9424ff(0x1d3)],'data':_0x3c5f64};this['_onCursorUpdate'](_0xaeb7a4);}),this['disposeWithMe'](this[_0x1821aa(0x35c)][_0x1821aa(0x409)](_0x4f611e=>{const _0x306337=_0x1821aa;if(_0x4f611e[_0x306337(0x465)]==null)return;const _0x44931d=_0x4f611e[_0x306337(0x465)];if(_0x4f611e['id']!==_0x179d55['id']||_0x44931d[_0x306337(0x217)]!==this[_0x306337(0x23a)])return;const _0x4a48d1={'id':_0x306337(0x21f),'params':_0x44931d},_0x329098=this[_0x306337(0x371)];for(const [_0x433ea0,_0x494318]of _0x329098){const _0x2aaffd={'id':_0x306337(0x21f),'params':{'unitId':this[_0x306337(0x23a)],'actions':null,'textRanges':_0x494318[_0x306337(0x1f5)]}},_0x2fef04=this[_0x306337(0x387)]['transformMutation'](_0x4a48d1,_0x2aaffd,!0x1);if(_0x44527a(_0x2fef04))throw _0x2fef04[_0x306337(0x3b8)];_0x329098[_0x306337(0x3e3)](_0x433ea0,{..._0x494318,'ranges':_0x2fef04[_0x306337(0x197)][_0x306337(0x465)]['textRanges']});}queueMicrotask(()=>{const _0x253f13=_0x306337;this['_cursorInfo$'][_0x253f13(0x2d0)](_0x329098);});})));}[_0x173fa3(0x506)](_0x4fb499){const _0x5467ae=_0x173fa3;var _0x1987e8,_0x497acf;const {memberID:_0x55ad3a,selection:_0x517097}=_0x4fb499[_0x5467ae(0x411)],_0x33a8a0=pr(_0x517097),_0x49319e=(_0x497acf=(_0x1987e8=this[_0x5467ae(0x1c9)][_0x5467ae(0x50b)](this[_0x5467ae(0x23a)],_0x55ad3a))==null?void 0x0:_0x1987e8[_0x5467ae(0x284)])!=null?_0x497acf:_0x5467ae(0x3d1),_0xbb6620={'color':this['_colorAssignService'][_0x5467ae(0x3f1)](_0x55ad3a),'name':_0x49319e,'ranges':_0x33a8a0},_0x56be7d=this[_0x5467ae(0x371)];_0x56be7d[_0x5467ae(0x3e3)](_0x55ad3a,_0xbb6620),this[_0x5467ae(0x254)]['next'](_0x56be7d);}[_0x173fa3(0x2a9)](_0x112fb6){const _0x4cfbe5=_0x173fa3,{memberID:_0x153d07}=_0x112fb6['data'],_0x96c7fb=this[_0x4cfbe5(0x371)];_0x96c7fb[_0x4cfbe5(0x43b)](_0x153d07),this[_0x4cfbe5(0x254)]['next'](_0x96c7fb);}[_0x173fa3(0x23d)](){const _0xcbf0e3=_0x173fa3;var _0x1c09e8;if(this[_0xcbf0e3(0x211)]=!0x0,((_0x1c09e8=this['_univerInstanceService'][_0xcbf0e3(0x39c)]())==null?void 0x0:_0x1c09e8[_0xcbf0e3(0x253)]())!==this['unitID'])return;const _0xd1e495=this[_0xcbf0e3(0x4b7)][_0xcbf0e3(0x3c3)](_0x35ae8c)[_0xcbf0e3(0x361)]();Array[_0xcbf0e3(0x498)](_0xd1e495)&&_0xd1e495[_0xcbf0e3(0x223)]>0x0&&this[_0xcbf0e3(0x2fd)](_0xd1e495);}[_0x173fa3(0x1b1)](){const _0x2bf035=_0x173fa3;this[_0x2bf035(0x211)]=!0x1;}};Dt=Mr([oe(0x2,_0x4f7ed2(_0x3b0750)),oe(0x3,_0x4f7ed2(Yt)),oe(0x4,_0x4f7ed2(_e)),oe(0x5,_0x4f7ed2(Wt)),oe(0x6,_0x4a8bc3),oe(0x7,_0x1e8ecc),oe(0x8,_0xdec94a)],Dt);var jr=Object[_0x173fa3(0x309)],Hr=Object[_0x173fa3(0x4d5)],xr=(_0x2f8cef,_0x410ef1,_0x13584d,_0x356c4d)=>{const _0x29ccfd=_0x173fa3;for(var _0x23be7d=_0x356c4d>0x1?void 0x0:_0x356c4d?Hr(_0x410ef1,_0x13584d):_0x410ef1,_0x3a909f=_0x2f8cef[_0x29ccfd(0x223)]-0x1,_0x3c253d;_0x3a909f>=0x0;_0x3a909f--)(_0x3c253d=_0x2f8cef[_0x3a909f])&&(_0x23be7d=(_0x356c4d?_0x3c253d(_0x410ef1,_0x13584d,_0x23be7d):_0x3c253d(_0x23be7d))||_0x23be7d);return _0x356c4d&&_0x23be7d&&jr(_0x410ef1,_0x13584d,_0x23be7d),_0x23be7d;},pe=(_0x5928a0,_0x31a5c4)=>(_0x4a81ee,_0x49ecc0)=>_0x31a5c4(_0x4a81ee,_0x49ecc0,_0x5928a0);const kr=0x12c,Br=0x64,Vr=()=>{let _0xecceb0=[],_0x1b7df6=!0x1;return _0x28e5e0=>{const _0x3cb3a5=_0x33c3;_0xecceb0[_0x3cb3a5(0x1da)](_0x28e5e0),_0x1b7df6||(_0x1b7df6=!0x0,setTimeout(()=>{const _0x519f5d=_0x3cb3a5;_0xecceb0[_0x519f5d(0x47e)](_0xff0e31=>_0xff0e31()),_0xecceb0=[],_0x1b7df6=!0x1;}));};};let wt=class extends _0x13ba8e{constructor(_0x4c8e62,_0x12fdc2,_0x4d0c83,_0x282cfb,_0x1baa4d,_0x549eb5,_0x450a4a,_0x56be1f){const _0xc5050a=_0x173fa3;super(),l(this,_0xc5050a(0x211),!0x1),l(this,_0xc5050a(0x367),!0x1),l(this,_0xc5050a(0x254),new _0x37b5ce(new Map())),l(this,_0xc5050a(0x1a4),this[_0xc5050a(0x254)][_0xc5050a(0x2e6)]()),l(this,_0xc5050a(0x2d3),new _0x37b5ce([])),l(this,'roomMembers$',this[_0xc5050a(0x2d3)][_0xc5050a(0x35b)](_0x1fc3db(kr))),l(this,_0xc5050a(0x2fd),_0x2d1802((_0x3141fe,_0x55bc0b)=>{const _0x45d56a=_0xc5050a,_0x417c33={'eventID':_0x5f441e[_0x45d56a(0x1d3)],'data':{'unitID':this[_0x45d56a(0x23a)],'memberID':this['_session'][_0x45d56a(0x32a)](),'selection':_0x233653(_0x3141fe,_0x55bc0b[_0x45d56a(0x1f1)])}};this[_0x45d56a(0x459)][_0x45d56a(0x2ab)](_0x417c33,this[_0x45d56a(0x23a)]);},Br)),(this['unitID']=_0x4c8e62,this['_session']=_0x12fdc2,this[_0xc5050a(0x4b7)]=_0x4d0c83,this[_0xc5050a(0x42c)]=_0x282cfb,this[_0xc5050a(0x1c9)]=_0x1baa4d,this['_univerInstanceService']=_0x549eb5,this[_0xc5050a(0x35c)]=_0x450a4a,this[_0xc5050a(0x20f)]=_0x56be1f);}get['cursorInfo'](){const _0x8e1f5f=_0x173fa3;return this[_0x8e1f5f(0x254)][_0x8e1f5f(0x2bc)]();}get[_0x173fa3(0x33b)](){const _0x3d2305=_0x173fa3;return this[_0x3d2305(0x2d3)][_0x3d2305(0x2bc)]();}[_0x173fa3(0x2c0)](){const _0x2c33a4=_0x173fa3;super[_0x2c33a4(0x2c0)](),this[_0x2c33a4(0x254)][_0x2c33a4(0x2d0)](new Map()),this[_0x2c33a4(0x254)]['complete'](),this[_0x2c33a4(0x2d3)][_0x2c33a4(0x2d0)]([]),this['_roomMembers$'][_0x2c33a4(0x3b0)]();}[_0x173fa3(0x415)](){const _0x406dc3=_0x173fa3;this[_0x406dc3(0x367)]||(this['_init']=!0x0,this['_session'][_0x406dc3(0x303)][_0x406dc3(0x35b)](_0x223895(this[_0x406dc3(0x2a1)]))[_0x406dc3(0x3eb)](_0x19bf3c=>{const _0x1a4313=_0x406dc3;_0x19bf3c===X[_0x1a4313(0x263)]?this[_0x1a4313(0x23d)]():this[_0x1a4313(0x1b1)]();}),this[_0x406dc3(0x459)][_0x406dc3(0x493)][_0x406dc3(0x35b)](_0x223895(this[_0x406dc3(0x2a1)]))[_0x406dc3(0x3eb)](_0x1fbe05=>{const _0x7ece9=_0x406dc3,_0x21198b=_0x1fbe05['eventID'];_0x21198b===_0x5f441e[_0x7ece9(0x1d3)]&&this['_onCursorUpdate'](_0x1fbe05),_0x21198b===_0x5f441e['USERS_LEAVE']&&this['_onCursorDelete'](_0x1fbe05);}),this[_0x406dc3(0x4ae)](),this[_0x406dc3(0x193)](this[_0x406dc3(0x35c)]['onCommandExecuted'](_0xe774df=>{const _0x5a5813=_0x406dc3;if(this['_online']&&_0xe774df['id']===_0x455e5a['id']&&_0xe774df[_0x5a5813(0x465)][_0x5a5813(0x217)]===this[_0x5a5813(0x23a)]){const _0x53bce1=_0xe774df['params'];this[_0x5a5813(0x2fd)](_0x53bce1[_0x5a5813(0x348)],_0x53bce1[_0x5a5813(0x287)][0x0]);}})));}[_0x173fa3(0x506)](_0x300505){const _0x3c195b=_0x173fa3;var _0x25aa5d,_0x218d36;const {memberID:_0x28bf0b,selection:_0x5802b1}=_0x300505[_0x3c195b(0x411)],{sheetName:_0x420e68,range:_0x421d65}=_0x32dcd9(_0x5802b1),_0x17f5e7={'name':(_0x218d36=(_0x25aa5d=this[_0x3c195b(0x1c9)]['getMember'](this['unitID'],_0x28bf0b))==null?void 0x0:_0x25aa5d[_0x3c195b(0x284)])!=null?_0x218d36:_0x3c195b(0x3d1),'range':this['_getMergeRange'](_0x420e68,_0x421d65),'sheetID':_0x420e68,'color':this[_0x3c195b(0x42c)][_0x3c195b(0x3f1)](_0x28bf0b),'selection':_0x5802b1},_0x5642d6=this[_0x3c195b(0x371)];_0x5642d6[_0x3c195b(0x3e3)](_0x28bf0b,_0x17f5e7),this[_0x3c195b(0x254)][_0x3c195b(0x2d0)](_0x5642d6);}['_onCursorDelete'](_0xe324c1){const _0x1bb17a=_0x173fa3,{memberID:_0x151409}=_0xe324c1[_0x1bb17a(0x411)],_0x39563b=this[_0x1bb17a(0x371)];_0x39563b[_0x1bb17a(0x43b)](_0x151409),this[_0x1bb17a(0x254)][_0x1bb17a(0x2d0)](_0x39563b);}['_getMergeRange'](_0x19545a,_0x1b843d){const _0x2fdc7a=_0x173fa3;var _0x1ca937,_0x3a3da1;const _0x541aa4=(_0x3a3da1=(_0x1ca937=this[_0x2fdc7a(0x3f2)][_0x2fdc7a(0x3d0)](this[_0x2fdc7a(0x23a)]))==null?void 0x0:_0x1ca937[_0x2fdc7a(0x455)](_0x19545a))==null?void 0x0:_0x3a3da1[_0x2fdc7a(0x196)]();return(_0x541aa4==null?void 0x0:_0x541aa4['find'](_0x171f62=>_0xa8b8a6['contains'](_0x171f62,_0x1b843d)))||_0x1b843d;}[_0x173fa3(0x4ae)](){const _0x14da6a=_0x173fa3,_0x3f3b36=new _0x1f9c9d(),_0x5cd8f7=Vr(),_0x40318e=()=>{const _0x2dbb53=_0x33c3;_0x3f3b36[_0x2dbb53(0x2c0)]();const _0x15fc67=(_0x1ccb68,_0xf79b14,_0x35dad6,_0xf6bb40)=>{const _0xb56250=_0x2dbb53;let _0x4a8cde=[];switch(_0x1ccb68['id']){case _0x1876e5['DeleteRangeMoveLeftCommandId']:{_0x4a8cde=_0x3f6541(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x273)]:{_0x4a8cde=_0x45cf67(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5['InsertColCommandId']:{_0x4a8cde=_0x593430(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x4d7)]:{_0x4a8cde=_0x52a909(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x46c)]:{_0x4a8cde=_0x468a25(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x34c)]:{_0x4a8cde=_0x163f59(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x403)]:{_0x4a8cde=_0x3ba698(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x274)]:{_0x4a8cde=_0x5d4634(_0x1ccb68,_0xf6bb40);break;}case _0x1876e5[_0xb56250(0x4c0)]:{_0x4a8cde=_0x99cb29(_0x1ccb68,_0xf6bb40);break;}}const _0x5be217=_0x28e3fe(_0x4a8cde,_0xf6bb40),_0x440ee9=this['cursorInfo']['get'](_0xf79b14);if(_0x440ee9&&_0x5be217){const _0x575085={..._0x440ee9,'range':_0x5be217};this[_0xb56250(0x371)][_0xb56250(0x3e3)](_0xf79b14,_0x575085),_0x5cd8f7(()=>{const _0x2994e3=_0xb56250,_0x14b455=this['_refRangeService'][_0x2994e3(0x2e5)](_0x5be217,_0x359853=>(_0x14b455['dispose'](),_0x15fc67(_0x359853,_0xf79b14,_0x35dad6,_0x5be217)));_0x3f3b36[_0x2994e3(0x2f7)](_0x14b455);});}return{'redos':[],'undos':[]};};this[_0x2dbb53(0x371)][_0x2dbb53(0x47e)]((_0x3c414a,_0x3ded92)=>{const _0x3ab0cb=_0x2dbb53,{range:_0x49da9a,sheetID:_0x2993dc}=_0x3c414a,_0x2c74d7=this[_0x3ab0cb(0x20f)][_0x3ab0cb(0x2e5)](_0x49da9a,_0x418a2d=>(_0x2c74d7[_0x3ab0cb(0x2c0)](),_0x15fc67(_0x418a2d,_0x3ded92,_0x2993dc,_0x49da9a)));_0x3f3b36[_0x3ab0cb(0x2f7)](_0x2c74d7);});};this[_0x14da6a(0x193)](_0x4a9188(this[_0x14da6a(0x254)][_0x14da6a(0x3eb)](()=>{_0x40318e();})));}[_0x173fa3(0x23d)](){const _0x3a5797=_0x173fa3;var _0x2a1e51,_0x110566;if(this[_0x3a5797(0x211)]=!0x0,((_0x2a1e51=this['_univerInstanceService'][_0x3a5797(0x39c)]())==null?void 0x0:_0x2a1e51[_0x3a5797(0x253)]())!==this[_0x3a5797(0x23a)])return;const _0x4794ec=(_0x110566=this[_0x3a5797(0x4b7)]['get'](_0x15d139)['getCurrentSelections']())==null?void 0x0:_0x110566[0x0],_0x41a0a4=this['_univerInstanceService'][_0x3a5797(0x279)](_0x159e2d['UNIVER_SHEET'])['getActiveSheet']();_0x4794ec&&_0x41a0a4&&this[_0x3a5797(0x2fd)](_0x41a0a4[_0x3a5797(0x3b7)](),_0x4794ec);}[_0x173fa3(0x1b1)](){const _0x14512d=_0x173fa3;this[_0x14512d(0x211)]=!0x1;}};wt=xr([pe(0x2,_0x4f7ed2(_0x3b0750)),pe(0x3,_0x4f7ed2(Yt)),pe(0x4,_0x4f7ed2(_e)),pe(0x5,_0x1e8ecc),pe(0x6,_0xdec94a),pe(0x7,_0x4f7ed2(_0x2ac9c5))],wt);var Fr=Object[_0x173fa3(0x309)],Wr=Object[_0x173fa3(0x4d5)],Gr=(_0x17576a,_0x268f7e,_0xbc1451,_0x140519)=>{const _0x4fc72b=_0x173fa3;for(var _0x440bd8=_0x140519>0x1?void 0x0:_0x140519?Wr(_0x268f7e,_0xbc1451):_0x268f7e,_0x5bc6fb=_0x17576a[_0x4fc72b(0x223)]-0x1,_0x30c9a4;_0x5bc6fb>=0x0;_0x5bc6fb--)(_0x30c9a4=_0x17576a[_0x5bc6fb])&&(_0x440bd8=(_0x140519?_0x30c9a4(_0x268f7e,_0xbc1451,_0x440bd8):_0x30c9a4(_0x440bd8))||_0x440bd8);return _0x140519&&_0x440bd8&&Fr(_0x268f7e,_0xbc1451,_0x440bd8),_0x440bd8;},dt=(_0x4e1a52,_0x4d33f5)=>(_0x222cad,_0x3d995a)=>_0x4d33f5(_0x222cad,_0x3d995a,_0x4e1a52);let Ce=class extends _0x13ba8e{constructor(_0x19b8c0,_0x57f2e2,_0x2fb594){const _0x4cb43b=_0x173fa3;super(),l(this,'_entities',new Map()),l(this,_0x4cb43b(0x43f),new _0x54d3a4()),(this[_0x4cb43b(0x3f2)]=_0x19b8c0,this[_0x4cb43b(0x4b7)]=_0x57f2e2,this['_collabSessionService']=_0x2fb594,this['_init']());}['dispose'](){const _0x355464=_0x173fa3;super[_0x355464(0x2c0)](),this[_0x355464(0x43f)][_0x355464(0x3b0)](),this[_0x355464(0x2d5)]['forEach'](_0x5853d7=>_0x5853d7[_0x355464(0x2c0)]());}[_0x173fa3(0x238)](_0x3b3715){const _0xecd515=_0x173fa3;return this[_0xecd515(0x2d5)][_0xecd515(0x432)](_0x3b3715)?this['_entities']['get'](_0x3b3715)[_0xecd515(0x1a4)]:this[_0xecd515(0x43f)][_0xecd515(0x35b)](_0x496185(_0x2619a6=>_0x2619a6[_0xecd515(0x23a)]===_0x3b3715),_0x3b6e12(_0x4ee6b4=>_0x4ee6b4[_0xecd515(0x1a4)]));}[_0x173fa3(0x367)](){const _0x24e9fd=_0x173fa3;this[_0x24e9fd(0x3f2)][_0x24e9fd(0x22f)](_0x159e2d[_0x24e9fd(0x4fa)])[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))[_0x24e9fd(0x3eb)](async _0x338733=>{const _0x1f5582=_0x24e9fd,_0x5e2908=_0x338733[_0x1f5582(0x253)](),_0x59c912=await this[_0x1f5582(0x21e)](_0x5e2908);this[_0x1f5582(0x43f)][_0x1f5582(0x2d0)](_0x59c912),this[_0x1f5582(0x2d5)][_0x1f5582(0x3e3)](_0x5e2908,_0x59c912);}),this[_0x24e9fd(0x3f2)][_0x24e9fd(0x22f)](_0x159e2d['UNIVER_DOC'])[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))['pipe'](_0x496185(_0x391b98=>!_0x391b98[_0x24e9fd(0x253)]()[_0x24e9fd(0x416)]('__')))[_0x24e9fd(0x3eb)](async _0xd4906b=>{const _0x3ec793=_0x24e9fd,_0x598b98=_0xd4906b['getUnitId'](),_0x27b9cb=await this[_0x3ec793(0x49b)](_0x598b98);this['_entityInit$'][_0x3ec793(0x2d0)](_0x27b9cb),this[_0x3ec793(0x2d5)][_0x3ec793(0x3e3)](_0x598b98,_0x27b9cb);}),_0x378f3d(this['_univerInstanceService'][_0x24e9fd(0x33e)](_0x159e2d['UNIVER_DOC']),this['_univerInstanceService'][_0x24e9fd(0x33e)](_0x159e2d['UNIVER_SHEET']))[_0x24e9fd(0x35b)](_0x223895(this[_0x24e9fd(0x2a1)]))[_0x24e9fd(0x3eb)](_0x264b58=>{const _0x2fc23e=_0x24e9fd,_0x562682=_0x264b58[_0x2fc23e(0x253)](),_0x13adee=this[_0x2fc23e(0x2d5)]['get'](_0x562682);_0x13adee&&(_0x13adee[_0x2fc23e(0x2c0)](),this[_0x2fc23e(0x2d5)][_0x2fc23e(0x43b)](_0x562682));});}async[_0x173fa3(0x21e)](_0x2342f3){const _0x491973=_0x173fa3,_0x637c4c=await this['_collabSessionService'][_0x491973(0x395)](_0x2342f3),_0x32041e=this['_injector']['createInstance'](wt,_0x2342f3,_0x637c4c);return _0x32041e[_0x491973(0x415)](),_0x32041e;}async[_0x173fa3(0x49b)](_0x45fb9a){const _0x14502b=_0x173fa3,_0x464f0a=await this['_collabSessionService'][_0x14502b(0x395)](_0x45fb9a),_0x25c209=this[_0x14502b(0x4b7)]['createInstance'](Dt,_0x45fb9a,_0x464f0a);return _0x25c209[_0x14502b(0x415)](),_0x25c209;}};Ce=Gr([dt(0x0,_0x1e8ecc),dt(0x1,_0x4f7ed2(_0x3b0750)),dt(0x2,_0x4f7ed2(ue))],Ce);const je=0x14,gs=0xc8,mt=0x4,Yr=0x5;function Kr(_0x38bd83,_0x3ee890){const _0x505227=_0x173fa3;let {radius:_0x5a8f57,width:_0x4eef83,height:_0x774772}=_0x3ee890;_0x5a8f57=_0x5a8f57!=null?_0x5a8f57:0x0,_0x4eef83=_0x4eef83!=null?_0x4eef83:0x1e,_0x774772=_0x774772!=null?_0x774772:0x1e;let _0x166aad=0x0,_0x21f0e1=0x0,_0x497f43=0x0;_0x166aad=_0x21f0e1=_0x497f43=Math[_0x505227(0x3cf)](_0x5a8f57,_0x4eef83/0x2,_0x774772/0x2),_0x38bd83[_0x505227(0x48c)](),_0x38bd83[_0x505227(0x428)](_0x166aad,0x0),_0x38bd83['lineTo'](_0x4eef83-_0x21f0e1,0x0),_0x38bd83['arc'](_0x4eef83-_0x21f0e1,_0x21f0e1,_0x21f0e1,Math['PI']*0x3/0x2,0x0,!0x1),_0x38bd83[_0x505227(0x4b8)](_0x4eef83,_0x774772-_0x497f43),_0x38bd83[_0x505227(0x512)](_0x4eef83-_0x497f43,_0x774772-_0x497f43,_0x497f43,0x0,Math['PI']/0x2,!0x1),_0x38bd83[_0x505227(0x4b8)](0x0,_0x774772),_0x38bd83[_0x505227(0x4b8)](0x0,_0x166aad),_0x38bd83[_0x505227(0x512)](_0x166aad,_0x166aad,_0x166aad,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x38bd83['closePath'](),_0x3ee890[_0x505227(0x191)]&&(_0x38bd83['save'](),_0x38bd83[_0x505227(0x4f3)]=_0x3ee890[_0x505227(0x191)],_0x3ee890['fillRule']===_0x505227(0x288)?_0x38bd83[_0x505227(0x191)](_0x505227(0x288)):_0x38bd83['fill'](),_0x38bd83[_0x505227(0x248)]());}class nt extends _0x1d45e8{constructor(_0x52c932,_0x5601d3){const _0x59a4d2=_0x173fa3;super(_0x52c932,_0x5601d3),l(this,'color'),l(this,_0x59a4d2(0x46e)),(this[_0x59a4d2(0x452)]=_0x5601d3==null?void 0x0:_0x5601d3['color'],this['text']=_0x5601d3==null?void 0x0:_0x5601d3[_0x59a4d2(0x46e)]);}static[_0x173fa3(0x267)](_0x5703f6,_0x78f91e){const _0x4360c3=_0x173fa3,{text:_0x5d8892,color:_0x24b78e}=_0x78f91e;_0x5703f6[_0x4360c3(0x317)](),_0x5703f6[_0x4360c3(0x36f)]=_0x4360c3(0x4db);const _0x5a7b7c=_0x5703f6['measureText'](_0x5d8892)[_0x4360c3(0x219)],_0x38b712=Math[_0x4360c3(0x3cf)](_0x5a7b7c+0x2*mt,gs);Kr(_0x5703f6,{'height':je,'radius':0x4,'width':_0x38b712,'fill':_0x24b78e,'evented':!0x1}),_0x5703f6['fillStyle']='#FFF';const _0x30a4e7=mt,_0x2351dc=je-Yr,_0x2aeac5=gs-0x2*mt;if(_0x5a7b7c>_0x2aeac5){let _0x52ce98='',_0x4e539a=0x0;for(const _0x3c6bc5 of _0x5d8892){const _0x292b21=_0x5703f6[_0x4360c3(0x194)](_0x3c6bc5)['width'];if(_0x4e539a+_0x292b21<=_0x2aeac5-_0x5703f6[_0x4360c3(0x194)](_0x4360c3(0x47f))[_0x4360c3(0x219)])_0x52ce98+=_0x3c6bc5,_0x4e539a+=_0x292b21;else{_0x52ce98+='...';break;}}_0x5703f6['fillText'](_0x52ce98,_0x30a4e7,_0x2351dc);}else _0x5703f6[_0x4360c3(0x4de)](_0x5d8892,_0x30a4e7,_0x2351dc);_0x5703f6[_0x4360c3(0x248)]();}[_0x173fa3(0x345)](_0xa79893){nt['drawWith'](_0xa79893,this);}}const ft=_0x173fa3(0x482),Xr=_0x173fa3(0x364),qr=_0x173fa3(0x36b),Pe=0x6,Jr=1.5,gt=0x4,zr=1.5,Zr=_0x173fa3(0x417);class Ss{constructor(_0x45de8d,_0x472604,_0x50f27a,_0x58b5aa){const _0x1e50a2=_0x173fa3;l(this,'_shapes',[]),l(this,_0x1e50a2(0x251),null),l(this,_0x1e50a2(0x320),null),l(this,_0x1e50a2(0x1b3),null),l(this,'_hideTimer',null),l(this,'_eventUnsubscribe',null),(this[_0x1e50a2(0x2b9)]=_0x45de8d,this[_0x1e50a2(0x4ac)]=_0x472604,this['_docSkeleton']=_0x50f27a,this[_0x1e50a2(0x214)]=_0x58b5aa,this[_0x1e50a2(0x463)]());}set[_0x173fa3(0x3ad)](_0x2dcf9d){const _0x3f6863=_0x173fa3;_0x2dcf9d?(this[_0x3f6863(0x1b3)]&&this[_0x3f6863(0x1b3)][_0x3f6863(0x2ae)](),this['_textBubble']&&this[_0x3f6863(0x320)][_0x3f6863(0x1e6)]()):(this[_0x3f6863(0x1b3)]&&this[_0x3f6863(0x1b3)][_0x3f6863(0x1e6)](),this['_textBubble']&&this[_0x3f6863(0x320)][_0x3f6863(0x2ae)]());}[_0x173fa3(0x2c0)](){const _0x536a5f=_0x173fa3;for(const _0x4b0e3b of this['_shapes'])_0x4b0e3b[_0x536a5f(0x2c0)]();this[_0x536a5f(0x320)]&&this[_0x536a5f(0x320)][_0x536a5f(0x2c0)](),this[_0x536a5f(0x1b3)]&&this[_0x536a5f(0x1b3)][_0x536a5f(0x2c0)](),this['_anchor']&&this[_0x536a5f(0x251)][_0x536a5f(0x2c0)](),this[_0x536a5f(0x19d)]&&this['_eventUnsubscribe']();}[_0x173fa3(0x463)](){const _0x576b41=_0x173fa3;var _0x635f50;const {_docSkeleton:_0xe1d27a,_document:_0x5aa31c}=this,{color:_0x17d910,name:_0x3e54de,ranges:_0x3d0a59}=this['_cursor'],_0x53375f=_0x5aa31c['getOffsetConfig'](),{docsLeft:_0x4d2f6a,docsTop:_0x4567ee}=_0x53375f,_0x8351c6=new _0x282c61(_0x53375f,_0xe1d27a);for(const {startOffset:_0x1c3caa,endOffset:_0x5ef557,rangeType:_0x5ac289,segmentId:_0x5bbad0,segmentPage:_0x5b88c8,collapsed:_0x74a7f7,isActive:_0x5af565}of _0x3d0a59){const _0x523893=_0xe1d27a[_0x576b41(0x36d)](_0x1c3caa,!0x0,_0x5bbad0,_0x5b88c8);let _0x5ec863=_0xe1d27a[_0x576b41(0x36d)](_0x5ef557,!0x0,_0x5bbad0,_0x5b88c8);if(_0x5ec863==null&&(_0x5ec863=_0xe1d27a[_0x576b41(0x36d)](_0x5ef557-0x1,!0x1,_0x5bbad0,_0x5b88c8)),_0x5af565){const {contentBoxPointGroup:_0x487a45}=_0x8351c6['getRangePointData'](_0x5ec863,_0x5ec863);if(_0x487a45[_0x576b41(0x223)]===0x0)continue;this['_drawAnchor'](_0x17d910,_0x487a45,_0x4d2f6a,_0x4567ee,_0x3e54de),this['_eventUnsubscribe']=this[_0x576b41(0x384)]();}if(!_0x74a7f7&&_0x523893&&_0x5ec863){if(_0x5ac289===_0x46c3b0[_0x576b41(0x26e)]){const _0x3ccbe3=new _0x5264f7(_0x53375f,_0xe1d27a),{pointGroup:_0x106992}=(_0x635f50=_0x3ccbe3[_0x576b41(0x3ce)](_0x523893,_0x5ec863))!=null?_0x635f50:{};if(_0x106992==null||_0x106992[_0x576b41(0x223)]===0x0)continue;this[_0x576b41(0x356)](_0x17d910,_0x106992,_0x4d2f6a,_0x4567ee);}else{const {borderBoxPointGroup:_0x2c2c9a}=_0x8351c6[_0x576b41(0x3ce)](_0x523893,_0x5ec863);if(_0x2c2c9a[_0x576b41(0x223)]===0x0)continue;this[_0x576b41(0x2a7)](_0x17d910,_0x2c2c9a,_0x4d2f6a,_0x4567ee);}}}}[_0x173fa3(0x347)](_0x17cdc5,_0x884c7c,_0x2acb35,_0x3b05df,_0x3c44bb){const _0x59b9c6=_0x173fa3,_0x1a390a=this[_0x59b9c6(0x41a)](_0x884c7c),{left:_0x2a6073,top:_0x3a179f,height:_0x1c5a03}=_0x1a390a,_0x9db244=this[_0x59b9c6(0x315)](),_0x5903a5=zr/_0x9db244,_0x370a37=new _0x16757d(ft+_0x58e8f0[_0x59b9c6(0x31e)](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df,'height':_0x1c5a03,'width':Jr,'fill':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'strokeWidth':_0x5903a5,'stroke':Zr,'evented':!0x0});this['_anchor']=_0x370a37,this[_0x59b9c6(0x4ac)]['addObject'](_0x370a37,_0x38cec6);const _0x1c64c9=new _0x16757d(ft+_0x58e8f0[_0x59b9c6(0x31e)](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df-gt/0x2,'height':gt,'width':gt,'fill':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'strokeWidth':0x0,'stroke':_0x17cdc5||_0x3c5235(_0x51afa6[_0x59b9c6(0x4b4)],0x0),'evented':!0x1});this[_0x59b9c6(0x1b3)]=_0x1c64c9,this[_0x59b9c6(0x4ac)][_0x59b9c6(0x330)](_0x1c64c9,_0x38cec6);const _0x78d17a=new nt(ft+_0x58e8f0['generateRandomId'](Pe),{'left':_0x2a6073+_0x2acb35-_0x5903a5,'top':_0x3a179f+_0x3b05df-je,'text':_0x3c44bb,'color':_0x17cdc5});this[_0x59b9c6(0x320)]=_0x78d17a,this[_0x59b9c6(0x4ac)][_0x59b9c6(0x330)](_0x78d17a,_0x38cec6),this['_hover']=!0x1;}['_handleHover'](){const _0x2c0c4d=_0x173fa3,_0xc91b4c=this[_0x2c0c4d(0x251)][_0x2c0c4d(0x4e7)][_0x2c0c4d(0x281)](()=>{const _0x5a1e5c=_0x2c0c4d;this[_0x5a1e5c(0x3ad)]=!0x0;}),_0x471a42=this['_anchor'][_0x2c0c4d(0x478)]['subscribeEvent'](()=>{const _0xee138e=_0x2c0c4d;this[_0xee138e(0x4ea)]&&clearTimeout(this[_0xee138e(0x4ea)]),this[_0xee138e(0x4ea)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x34bdf8=_0x2c0c4d;_0xc91b4c[_0x34bdf8(0x18e)](),_0x471a42[_0x34bdf8(0x18e)]();};}[_0x173fa3(0x2a7)](_0x2fab4f,_0x38c747,_0x21dedd,_0x6df7a0){const _0x5ea1c2=_0x173fa3,_0x430323=new _0x88bd29(_0x2fab4f)[_0x5ea1c2(0x44e)](0.2)[_0x5ea1c2(0x2e8)](),_0x503547=new _0x57827a(Xr+_0x58e8f0[_0x5ea1c2(0x31e)](Pe),{'pointsGroup':_0x38c747,'fill':_0x430323||_0x3c5235(_0x51afa6['black'],0.2),'left':_0x21dedd,'top':_0x6df7a0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5ea1c2(0x4f9)][_0x5ea1c2(0x1da)](_0x503547),this[_0x5ea1c2(0x4ac)][_0x5ea1c2(0x330)](_0x503547,_0x38cec6);}[_0x173fa3(0x356)](_0x49b9f4,_0x39b7da,_0x564a6c,_0x5f257e){const _0x1fbd7a=_0x173fa3,_0x2a8322=new _0x88bd29(_0x49b9f4)['setAlpha'](0.2)[_0x1fbd7a(0x2e8)](),_0x391fab=new _0x57827a(qr+_0x58e8f0['generateRandomId'](Pe),{'pointsGroup':_0x39b7da,'fill':_0x2a8322||_0x3c5235(_0x51afa6[_0x1fbd7a(0x4b4)],0.2),'left':_0x564a6c,'top':_0x5f257e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1fbd7a(0x4f9)][_0x1fbd7a(0x1da)](_0x391fab),this[_0x1fbd7a(0x4ac)]['addObject'](_0x391fab,_0x38cec6);}['_getAnchorBounding'](_0x44917d){const _0x3c2948=_0x44917d[0x0],_0x368ca8=_0x3c2948[0x0],_0x3e6480=_0x3c2948[0x2],{x:_0x3c972d,y:_0x3a2cd1}=_0x368ca8,{x:_0x357fbb,y:_0x7af3a}=_0x3e6480;return{'left':_0x3c972d,'top':_0x3a2cd1,'width':_0x357fbb-_0x3c972d,'height':_0x7af3a-_0x3a2cd1};}[_0x173fa3(0x315)](){const _0x1f49e2=_0x173fa3,{scaleX:_0x51ded5,scaleY:_0x57f6e7}=this[_0x1f49e2(0x4ac)][_0x1f49e2(0x4dc)]();return Math[_0x1f49e2(0x369)](_0x51ded5,_0x57f6e7);}}var Qr=Object[_0x173fa3(0x309)],eo=Object['getOwnPropertyDescriptor'],to=(_0x35306a,_0x31f4c7,_0x4ea4eb,_0x4a3d60)=>{const _0x2a9567=_0x173fa3;for(var _0x82f856=_0x4a3d60>0x1?void 0x0:_0x4a3d60?eo(_0x31f4c7,_0x4ea4eb):_0x31f4c7,_0x4dea2d=_0x35306a[_0x2a9567(0x223)]-0x1,_0x5db195;_0x4dea2d>=0x0;_0x4dea2d--)(_0x5db195=_0x35306a[_0x4dea2d])&&(_0x82f856=(_0x4a3d60?_0x5db195(_0x31f4c7,_0x4ea4eb,_0x82f856):_0x5db195(_0x82f856))||_0x82f856);return _0x4a3d60&&_0x82f856&&Qr(_0x31f4c7,_0x4ea4eb,_0x82f856),_0x82f856;},Be=(_0x13b5c2,_0x4653d0)=>(_0x5b1d77,_0x3d520c)=>_0x4653d0(_0x5b1d77,_0x3d520c,_0x13b5c2);let Pt=class extends _0x13ba8e{constructor(_0x18d89c,_0x2d318d,_0x1631a7,_0x346773,_0x3341d3){const _0x49f41d=_0x173fa3;super(),l(this,'_cursorShapes',[]),l(this,_0x49f41d(0x401),[]),(this[_0x49f41d(0x1fa)]=_0x18d89c,this[_0x49f41d(0x391)]=_0x2d318d,this[_0x49f41d(0x408)]=_0x1631a7,this[_0x49f41d(0x35c)]=_0x346773,this[_0x49f41d(0x2b3)]=_0x3341d3,this[_0x49f41d(0x367)]());}[_0x173fa3(0x367)](){const _0x2fe833=_0x173fa3,_0x48a0cd=this[_0x2fe833(0x1fa)][_0x2fe833(0x217)],_0x4bf176=this[_0x2fe833(0x391)];this[_0x2fe833(0x193)](_0x550795([this['_collabCursorController'][_0x2fe833(0x238)](_0x48a0cd),this[_0x2fe833(0x2b3)][_0x2fe833(0x198)]])['pipe'](_0x595c33(([_0x4cbaab,_0x19d6d6])=>({'skeleton':_0x4bf176[_0x2fe833(0x41d)](),'cursors':[..._0x4cbaab[_0x2fe833(0x3b1)]()][_0x2fe833(0x18f)](_0x1ca597=>({..._0x1ca597,'color':_0x19d6d6[_0x1ca597[_0x2fe833(0x452)]]}))})))[_0x2fe833(0x3eb)](_0x53b7b1=>{const _0x5ca7f1=_0x2fe833;if(this[_0x5ca7f1(0x2c1)](),_0x53b7b1){const {skeleton:_0xa5c6f7,cursors:_0x46b29a}=_0x53b7b1;this[_0x5ca7f1(0x2c7)](_0xa5c6f7,_0x46b29a);}})),this[_0x2fe833(0x2bb)](),this[_0x2fe833(0x29d)]();}[_0x173fa3(0x2c7)](_0x7442e6,_0xdcfa5a){const _0x276bb8=_0x173fa3,{scene:_0x1a0e21,mainComponent:_0xe901d4}=this[_0x276bb8(0x1fa)],_0x424aed=_0xdcfa5a['map'](_0x270df1=>new Ss(_0x270df1,_0x1a0e21,_0x7442e6,_0xe901d4));this['_cursorShapes']=_0x424aed,this[_0x276bb8(0x401)]=_0xdcfa5a;}[_0x173fa3(0x4f6)](){const _0x20507a=_0x173fa3;this[_0x20507a(0x2c1)]();const {scene:_0x38cb2d,mainComponent:_0x12cf1e}=this[_0x20507a(0x1fa)],_0x183aba=this[_0x20507a(0x391)][_0x20507a(0x41d)](),_0x3e9dfc=this['_cursors'][_0x20507a(0x204)](_0x3e555e=>new Ss(_0x3e555e,_0x38cb2d,_0x183aba,_0x12cf1e));this[_0x20507a(0x44b)]=_0x3e9dfc;}[_0x173fa3(0x2c1)](){const _0x17e2fc=_0x173fa3;this['_cursorShapes'][_0x17e2fc(0x47e)](_0x90e5c0=>_0x90e5c0[_0x17e2fc(0x2c0)]()),this[_0x17e2fc(0x44b)]=[];}['_initCommandExecutedListener'](){const _0x12ab85=_0x173fa3,_0x33dbd7=[_0x116bc2['id']];this[_0x12ab85(0x193)](this[_0x12ab85(0x35c)][_0x12ab85(0x409)](_0x4981dd=>{const _0x22c9a2=_0x12ab85;_0x33dbd7[_0x22c9a2(0x20d)](_0x4981dd['id'])&&_0x4981dd['params'][_0x22c9a2(0x217)]===this[_0x22c9a2(0x1fa)][_0x22c9a2(0x217)]&&this[_0x22c9a2(0x4f6)]();}));}[_0x173fa3(0x2bb)](){const _0x492697=_0x173fa3;this['disposeWithMe'](_0x3c7358(this[_0x492697(0x1fa)][_0x492697(0x4f7)][_0x492697(0x1bd)])['pipe'](_0x3f9fc1(_0x27edff=>_0x27edff[_0x492697(0x32d)]===_0x18c26b[_0x492697(0x28f)]),_0x46eb5a(0x10))[_0x492697(0x3eb)](()=>{this['_refreshCollabCursors']();}));}};Pt=to([Be(0x1,_0x4f7ed2(_0x429479)),Be(0x2,_0x4f7ed2(Ce)),Be(0x3,_0xdec94a),Be(0x4,_0x4f7ed2(_0x1810fb))],Pt);const so=0x1,io=1.5;class no extends _0x1d45e8{constructor(_0x101c8a,_0xcf244e){const _0x550486=_0x173fa3;super(_0x101c8a,_0xcf244e),l(this,_0x550486(0x200)),l(this,_0x550486(0x3ec),!0x1),l(this,_0x550486(0x242)),l(this,'_name',''),l(this,_0x550486(0x40e),_0x550486(0x458)),l(this,_0x550486(0x426)),(_0xcf244e&&this['setShapeProps'](_0xcf244e),this[_0x550486(0x4e7)][_0x550486(0x281)](()=>this[_0x550486(0x3ca)]({'hovered':!0x0})),this['onPointerLeave$'][_0x550486(0x281)](()=>this[_0x550486(0x3ca)]({'hovered':!0x1})));}[_0x173fa3(0x3ca)](_0x53aa12){const _0x15de2b=_0x173fa3;var _0x2ebdda,_0x4631ca,_0x416b59,_0x2d5530,_0x10a76f,_0x3f2a83;this[_0x15de2b(0x200)]=(_0x2ebdda=_0x53aa12[_0x15de2b(0x452)])!=null?_0x2ebdda:this[_0x15de2b(0x200)],this[_0x15de2b(0x3ec)]=(_0x4631ca=_0x53aa12[_0x15de2b(0x454)])!=null?_0x4631ca:this[_0x15de2b(0x3ec)],this[_0x15de2b(0x242)]=(_0x416b59=_0x53aa12['range'])!=null?_0x416b59:this[_0x15de2b(0x242)],this[_0x15de2b(0x268)]=(_0x2d5530=_0x53aa12[_0x15de2b(0x284)])!=null?_0x2d5530:this[_0x15de2b(0x268)],this[_0x15de2b(0x40e)]=(_0x10a76f=_0x53aa12[_0x15de2b(0x2d9)])!=null?_0x10a76f:this[_0x15de2b(0x40e)],this['_backgroundColor']=(_0x3f2a83=_0x53aa12['backgroundColor'])!=null?_0x3f2a83:this[_0x15de2b(0x426)],this[_0x15de2b(0x3f5)]({'width':_0x53aa12[_0x15de2b(0x219)],'height':_0x53aa12[_0x15de2b(0x4fb)]});}[_0x173fa3(0x232)](_0x177eb8){const _0x2a6bc8=_0x173fa3,{row:_0x51189b,column:_0x14d908}=_0x177eb8;if(_0x51189b>=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x2b6)]&&_0x51189b<=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x449)]&&_0x14d908>=this[_0x2a6bc8(0x242)][_0x2a6bc8(0x38f)]&&_0x14d908<=this['_range'][_0x2a6bc8(0x1f9)]){this[_0x2a6bc8(0x3ca)]({'hovered':!0x0});return;}this[_0x2a6bc8(0x3ca)]({'hovered':!0x1});}[_0x173fa3(0x2e4)](_0x31184a){return!0x1;}[_0x173fa3(0x345)](_0x35b65c){const _0x27a68f=_0x173fa3;_0x16757d[_0x27a68f(0x267)](_0x35b65c,{'width':this[_0x27a68f(0x219)],'height':this[_0x27a68f(0x4fb)],'strokeWidth':io,'stroke':this[_0x27a68f(0x200)],'evented':!0x1,'fill':this[_0x27a68f(0x426)]}),this[_0x27a68f(0x3ec)]&&(_0x35b65c['save'](),_0x35b65c[_0x27a68f(0x322)](0x1,0x0,0x0,0x1,this[_0x27a68f(0x219)],this[_0x27a68f(0x40e)]===_0x27a68f(0x326)?0x0:-je),nt[_0x27a68f(0x267)](_0x35b65c,{'text':this[_0x27a68f(0x268)],'color':this[_0x27a68f(0x200)]}),_0x35b65c['restore']());}}var ro=Object[_0x173fa3(0x309)],oo=Object[_0x173fa3(0x4d5)],ao=(_0x3ba65e,_0x169ef4,_0x1dfb9c,_0x4b164d)=>{for(var _0x20ca19=_0x4b164d>0x1?void 0x0:_0x4b164d?oo(_0x169ef4,_0x1dfb9c):_0x169ef4,_0x53f19c=_0x3ba65e['length']-0x1,_0x1ad01b;_0x53f19c>=0x0;_0x53f19c--)(_0x1ad01b=_0x3ba65e[_0x53f19c])&&(_0x20ca19=(_0x4b164d?_0x1ad01b(_0x169ef4,_0x1dfb9c,_0x20ca19):_0x1ad01b(_0x20ca19))||_0x20ca19);return _0x4b164d&&_0x20ca19&&ro(_0x169ef4,_0x1dfb9c,_0x20ca19),_0x20ca19;},St=(_0x65e116,_0x30244d)=>(_0x2efc6b,_0x10547e)=>_0x30244d(_0x2efc6b,_0x10547e,_0x65e116);const co=0x1389;let yt=class extends _0x13ba8e{constructor(_0x45de99,_0x2ebb37,_0x59a8fc,_0x59f202){const _0x3c07b4=_0x173fa3;super(),l(this,_0x3c07b4(0x401),new Set()),l(this,'_lastPointer',null),(this[_0x3c07b4(0x1fa)]=_0x45de99,this[_0x3c07b4(0x40a)]=_0x2ebb37,this[_0x3c07b4(0x408)]=_0x59a8fc,this[_0x3c07b4(0x2b3)]=_0x59f202,this[_0x3c07b4(0x367)]());}[_0x173fa3(0x367)](){const _0x849feb=_0x173fa3;this[_0x849feb(0x40a)][_0x849feb(0x1e8)]['pipe'](_0x54b271(this[_0x849feb(0x2a1)]),_0x4b9d13(_0x277071=>{const _0xf685ed=_0x849feb;if(_0x277071){const _0x3e8f0d=_0x277071[_0xf685ed(0x2bf)];return _0x550795(this['_collabCursorController'][_0xf685ed(0x238)](this['_context'][_0xf685ed(0x217)]),this[_0xf685ed(0x2b3)][_0xf685ed(0x198)])[_0xf685ed(0x35b)](_0x595c33(([_0x144be1,_0x14197e])=>{const _0x2fed05=_0xf685ed,_0x586b4c=new Map();return _0x144be1[_0x2fed05(0x47e)]((_0x55147d,_0x143987)=>{const _0x555720=_0x2fed05;if(_0x55147d[_0x555720(0x45c)]===_0x3e8f0d){const _0x493b41={..._0x55147d};_0x493b41[_0x555720(0x452)]=_0x14197e[_0x55147d[_0x555720(0x452)]],_0x586b4c['set'](_0x143987,_0x493b41);}}),{'skeleton':_0x277071,'cursors':_0x586b4c};}));}return _0x2ad1bd({'skeleton':null,'cursors':new Map()});}))[_0x849feb(0x3eb)](({skeleton:_0x3b4f2d,cursors:_0x1f0f11})=>{const _0x282495=_0x849feb;this[_0x282495(0x2c1)](),_0x3b4f2d&&this[_0x282495(0x2c7)](_0x3b4f2d,_0x1f0f11);}),this[_0x849feb(0x40a)]['currentSkeleton$'][_0x849feb(0x3eb)](_0x3b4ad7=>{const _0x4ba39e=_0x849feb;if(_0x3b4ad7==null)return;const {skeleton:_0x30e500}=_0x3b4ad7,{scene:_0xc0fc2f}=this[_0x4ba39e(0x1fa)];_0xc0fc2f[_0x4ba39e(0x1e7)][_0x4ba39e(0x281)](_0x2d1802(_0xd67e32=>{const _0x6937e=_0x4ba39e;var _0x45cabf,_0x496672;const {offsetX:_0x14114f,offsetY:_0x3618ba}=_0xd67e32,{x:_0x322fc1,y:_0x4ecd37}=_0xc0fc2f[_0x6937e(0x43c)](_0x327598[_0x6937e(0x46a)]([_0x14114f,_0x3618ba])),{scaleX:_0x30379e,scaleY:_0x585436}=_0xc0fc2f['getAncestorScale'](),_0x463d75=_0xc0fc2f[_0x6937e(0x321)](_0x8cdd2a[_0x6937e(0x359)]),_0xf8f06c=_0xc0fc2f[_0x6937e(0x2f5)](_0x327598[_0x6937e(0x46a)]([_0x322fc1,_0x4ecd37]),_0x463d75),_0x5ade0a=_0x30e500[_0x6937e(0x1a0)](_0x14114f,_0x3618ba,_0x30379e,_0x585436,_0xf8f06c);((_0x45cabf=this['_lastPointer'])==null?void 0x0:_0x45cabf[_0x6937e(0x32b)])===_0x5ade0a[_0x6937e(0x32b)]&&((_0x496672=this[_0x6937e(0x456)])==null?void 0x0:_0x496672[_0x6937e(0x199)])===_0x5ade0a['row']||this[_0x6937e(0x401)]['forEach'](_0x17db13=>{const _0x8ae044=_0x6937e;_0x17db13[_0x8ae044(0x232)](_0x5ade0a);});},0x64));});}[_0x173fa3(0x2c7)](_0x57a8a4,_0x5ba940){const _0x80e51c=_0x173fa3;var _0x56e732;const _0x28e465=(_0x56e732=this['_sheetSkeletonManagerService'][_0x80e51c(0x2a6)]())==null?void 0x0:_0x56e732['skeleton'];if(!_0x28e465)return;const _0x304340=this[_0x80e51c(0x46b)]();if(!_0x304340)return;this['_cursors'][_0x80e51c(0x47e)](_0x4e3004=>{const _0x1e59c6=_0x80e51c;_0x4e3004[_0x1e59c6(0x355)]();});const {scene:_0x146d43}=_0x304340,_0x3d4e10=ho(Array[_0x80e51c(0x28c)](_0x5ba940[_0x80e51c(0x3b1)]()))[_0x80e51c(0x204)](_0x52ef9a=>{const _0x493c96=_0x80e51c,{color:_0x19f6da,range:_0x943adf,name:_0x41fed4,selection:_0x7078f4,sheetID:_0x1d3d62}=_0x52ef9a,{startColumn:_0x44a1b8,startRow:_0x4cfa85,endColumn:_0x3e5bc7,endRow:_0x33749d}=_0x943adf,_0x1c0756=_0x5845e5(_0x4cfa85,_0x44a1b8,_0x146d43,_0x28e465),_0x155a8b=_0x5845e5(_0x33749d,_0x3e5bc7,_0x146d43,_0x28e465),{columnHeaderHeightAndMarginTop:_0x4b3ced}=_0x28e465,{startX:_0x530091,startY:_0x25d2cd}=_0x1c0756,{endX:_0x588922,endY:_0x330379}=_0x155a8b,_0x53fb35=_0x588922-_0x530091,_0x2ef39c=_0x330379-_0x25d2cd,_0x326d4b={'labelPosition':_0x25d2cd-_0x4b3ced>=je?'top':_0x493c96(0x326),'sheetID':_0x1d3d62,'range':_0x943adf,'color':_0x19f6da,'name':_0x41fed4,'selection':_0x7078f4,'left':_0x530091,'top':_0x25d2cd,'width':_0x53fb35,'height':_0x2ef39c,'evented':!0x1,'zIndex':co};return new no(_0x41fed4,_0x326d4b);});_0x146d43[_0x80e51c(0x3e9)](_0x3d4e10,so),this['_cursors']=new Set(_0x3d4e10);}[_0x173fa3(0x2c1)](){const _0x222049=_0x173fa3;var _0x320f3b;(_0x320f3b=this[_0x222049(0x401)])==null||_0x320f3b['forEach'](_0x4006a0=>_0x4006a0['dispose']());}[_0x173fa3(0x46b)](){const _0x3da123=_0x173fa3;return _0x1b8540(this[_0x3da123(0x1fa)][_0x3da123(0x374)],this[_0x3da123(0x1fa)]);}};yt=ao([St(0x1,_0x4f7ed2(_0x1921de)),St(0x2,_0x4f7ed2(Ce)),St(0x3,_0x4f7ed2(_0x1810fb))],yt);function ho(_0x5c9edf){const _0x1072ff=_0x173fa3,_0x1653f9=new Map();return _0x5c9edf['forEach'](_0x948a73=>{const _0x2d12cb=_0x33c3;if(_0x1653f9[_0x2d12cb(0x432)](_0x948a73[_0x2d12cb(0x244)])){const _0x4e1df8=_0x1653f9[_0x2d12cb(0x3c3)](_0x948a73[_0x2d12cb(0x244)]);_0x4e1df8['name']+=',\x20'+_0x948a73[_0x2d12cb(0x284)];}else _0x1653f9[_0x2d12cb(0x3e3)](_0x948a73[_0x2d12cb(0x244)],_0x948a73);}),Array['from'](_0x1653f9[_0x1072ff(0x3b1)]());}var U=function(){const _0x491619=_0x173fa3;return U=Object[_0x491619(0x487)]||function(_0x2f463e){const _0xad96cf=_0x491619;for(var _0x1b9d63,_0x44fc29=0x1,_0x1713c8=arguments[_0xad96cf(0x223)];_0x44fc29<_0x1713c8;_0x44fc29++){_0x1b9d63=arguments[_0x44fc29];for(var _0x43bd69 in _0x1b9d63)Object[_0xad96cf(0x346)][_0xad96cf(0x407)][_0xad96cf(0x470)](_0x1b9d63,_0x43bd69)&&(_0x2f463e[_0x43bd69]=_0x1b9d63[_0x43bd69]);}return _0x2f463e;},U[_0x491619(0x1a9)](this,arguments);},lo=function(_0x2fb46d,_0x330f51){const _0x56acf0=_0x173fa3;var _0x4b54e6={};for(var _0x25ad65 in _0x2fb46d)Object['prototype'][_0x56acf0(0x407)][_0x56acf0(0x470)](_0x2fb46d,_0x25ad65)&&_0x330f51[_0x56acf0(0x237)](_0x25ad65)<0x0&&(_0x4b54e6[_0x25ad65]=_0x2fb46d[_0x25ad65]);if(_0x2fb46d!=null&&typeof Object['getOwnPropertySymbols']==_0x56acf0(0x38c)){for(var _0x1aa9cc=0x0,_0x25ad65=Object[_0x56acf0(0x481)](_0x2fb46d);_0x1aa9cc<_0x25ad65[_0x56acf0(0x223)];_0x1aa9cc++)_0x330f51[_0x56acf0(0x237)](_0x25ad65[_0x1aa9cc])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x56acf0(0x470)](_0x2fb46d,_0x25ad65[_0x1aa9cc])&&(_0x4b54e6[_0x25ad65[_0x1aa9cc]]=_0x2fb46d[_0x25ad65[_0x1aa9cc]]);}return _0x4b54e6;},Kt=_0x431197(function(_0x1fc77e,_0x1feaad){const _0x66312c=_0x173fa3;var _0x2c6961=_0x1fc77e['icon'],_0x1e9a80=_0x1fc77e['id'],_0x336e65=_0x1fc77e[_0x66312c(0x30c)],_0x3c1eae=_0x1fc77e[_0x66312c(0x2b5)],_0x4fb0d8=lo(_0x1fc77e,[_0x66312c(0x460),'id','className','extend']),_0x48c091=_0x66312c(0x4b1)[_0x66312c(0x1ca)](_0x1e9a80,'\x20')[_0x66312c(0x1ca)](_0x336e65||'')[_0x66312c(0x1f6)](),_0x1fbbaa=_0x494e8d('_'['concat'](mo()));return qs(_0x2c6961,''[_0x66312c(0x1ca)](_0x1e9a80),{'defIds':_0x2c6961[_0x66312c(0x35a)],'idSuffix':_0x1fbbaa[_0x66312c(0x497)]},U({'ref':_0x1feaad,'className':_0x48c091},_0x4fb0d8),_0x3c1eae);});function qs(_0x3d2c51,_0x48097c,_0x5f0a72,_0x3f5070,_0x2d71aa){const _0x237a33=_0x173fa3;return _0xfdbf34(_0x3d2c51[_0x237a33(0x2c9)],U(U({'key':_0x48097c},_o(_0x3d2c51,_0x5f0a72,_0x2d71aa)),_0x3f5070),(uo(_0x3d2c51,_0x5f0a72)['children']||[])[_0x237a33(0x204)](function(_0x428242,_0xbf5719){const _0xa4c937=_0x237a33;return qs(_0x428242,''[_0xa4c937(0x1ca)](_0x48097c,'-')[_0xa4c937(0x1ca)](_0x3d2c51[_0xa4c937(0x2c9)],'-')[_0xa4c937(0x1ca)](_0xbf5719),_0x5f0a72,void 0x0,_0x2d71aa);}));}function _o(_0x252b93,_0x262872,_0x44e938){const _0x4e4eea=_0x173fa3;var _0x20a928=U({},_0x252b93[_0x4e4eea(0x3de)]);_0x44e938!=null&&_0x44e938[_0x4e4eea(0x4f1)]&&_0x20a928[_0x4e4eea(0x191)]===_0x4e4eea(0x4f1)&&(_0x20a928[_0x4e4eea(0x191)]=_0x44e938[_0x4e4eea(0x4f1)]);var _0xf2f399=_0x262872[_0x4e4eea(0x35a)];return!_0xf2f399||_0xf2f399[_0x4e4eea(0x223)]===0x0||(_0x252b93['tag']===_0x4e4eea(0x1ee)&&_0x20a928['xlink:href']&&(_0x20a928[_0x4e4eea(0x19f)]=_0x20a928[_0x4e4eea(0x19f)]+_0x262872[_0x4e4eea(0x1d9)]),Object[_0x4e4eea(0x20b)](_0x20a928)['forEach'](function(_0x1775f3){const _0x23994f=_0x4e4eea;var _0x53255e=_0x1775f3[0x0],_0x1132a1=_0x1775f3[0x1];typeof _0x1132a1=='string'&&(_0x20a928[_0x53255e]=_0x1132a1['replace'](/url\(#(.*)\)/,_0x23994f(0x469)[_0x23994f(0x1ca)](_0x262872['idSuffix'],')')));})),_0x20a928;}function uo(_0x4473cd,_0x53c681){const _0x40d43c=_0x173fa3;var _0x526008,_0x316162=_0x53c681[_0x40d43c(0x35a)];return!_0x316162||_0x316162[_0x40d43c(0x223)]===0x0?_0x4473cd:_0x4473cd[_0x40d43c(0x2c9)]===_0x40d43c(0x291)&&(!((_0x526008=_0x4473cd[_0x40d43c(0x2ac)])===null||_0x526008===void 0x0)&&_0x526008[_0x40d43c(0x223)])?U(U({},_0x4473cd),{'children':_0x4473cd[_0x40d43c(0x2ac)]['map'](function(_0xfdb443){const _0x154623=_0x40d43c;return typeof _0xfdb443[_0x154623(0x3de)]['id']==_0x154623(0x215)&&_0x316162&&_0x316162[_0x154623(0x237)](_0xfdb443[_0x154623(0x3de)]['id'])>-0x1?U(U({},_0xfdb443),{'attrs':U(U({},_0xfdb443[_0x154623(0x3de)]),{'id':_0xfdb443[_0x154623(0x3de)]['id']+_0x53c681['idSuffix']})}):_0xfdb443;})}):_0x4473cd;}function mo(){const _0xf568f1=_0x173fa3;return Math['random']()[_0xf568f1(0x358)](0x24)[_0xf568f1(0x4f0)](0x2,0x8);}Kt[_0x173fa3(0x2fa)]='UniverIcon';var fo={'tag':_0x173fa3(0x4b0),'attrs':{'fill':_0x173fa3(0x1c6),'viewBox':_0x173fa3(0x220),'width':_0x173fa3(0x24e),'height':_0x173fa3(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x173fa3(0x4bb),'strokeLinecap':_0x173fa3(0x477),'strokeLinejoin':_0x173fa3(0x477),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x173fa3(0x466),'attrs':{'id':_0x173fa3(0x285)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},Js=_0x431197(function(_0x464f53,_0x10f3d8){const _0x4d93da=_0x173fa3;return _0xfdbf34(Kt,Object[_0x4d93da(0x487)]({},_0x464f53,{'id':_0x4d93da(0x397),'ref':_0x10f3d8,'icon':fo}));});Js['displayName']=_0x173fa3(0x3e6);var go={'tag':_0x173fa3(0x4b0),'attrs':{'fill':_0x173fa3(0x1c6),'viewBox':_0x173fa3(0x4ca),'width':_0x173fa3(0x24e),'height':_0x173fa3(0x24e)},'children':[{'tag':'g','attrs':{'clipPath':_0x173fa3(0x2b4)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'stroke':'currentColor','d':'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','strokeLinecap':_0x173fa3(0x477),'strokeLinejoin':_0x173fa3(0x477),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x173fa3(0x466),'attrs':{'id':_0x173fa3(0x1cf)},'children':[{'tag':_0x173fa3(0x4bf),'attrs':{'fill':_0x173fa3(0x513),'d':_0x173fa3(0x20e),'transform':_0x173fa3(0x45d)}}]}]}],'defIds':[_0x173fa3(0x1cf)]},zs=_0x431197(function(_0x27eda6,_0x2c5f03){return _0xfdbf34(Kt,Object['assign']({},_0x27eda6,{'id':'on-line-single','ref':_0x2c5f03,'icon':go}));});zs[_0x173fa3(0x2fa)]=_0x173fa3(0x282);function Zs(_0x516fca){const _0x4031e4=_0x173fa3;var _0x15e55c,_0x4bb2a9,_0x239dbd='';if(typeof _0x516fca==_0x4031e4(0x215)||typeof _0x516fca=='number')_0x239dbd+=_0x516fca;else{if(typeof _0x516fca==_0x4031e4(0x316)){if(Array[_0x4031e4(0x498)](_0x516fca)){var _0x2fc639=_0x516fca['length'];for(_0x15e55c=0x0;_0x15e55c<_0x2fc639;_0x15e55c++)_0x516fca[_0x15e55c]&&(_0x4bb2a9=Zs(_0x516fca[_0x15e55c]))&&(_0x239dbd&&(_0x239dbd+='\x20'),_0x239dbd+=_0x4bb2a9);}else{for(_0x4bb2a9 in _0x516fca)_0x516fca[_0x4bb2a9]&&(_0x239dbd&&(_0x239dbd+='\x20'),_0x239dbd+=_0x4bb2a9);}}}return _0x239dbd;}function So(){const _0x206546=_0x173fa3;for(var _0x4b8060,_0x28676d,_0x46f5ca=0x0,_0x218e40='',_0x94c612=arguments[_0x206546(0x223)];_0x46f5ca<_0x94c612;_0x46f5ca++)(_0x4b8060=arguments[_0x46f5ca])&&(_0x28676d=Zs(_0x4b8060))&&(_0x218e40&&(_0x218e40+='\x20'),_0x218e40+=_0x28676d);return _0x218e40;}const po=_0x173fa3(0x4ab),vo=_0x173fa3(0x1d5),Io='univer-online-status',Eo=_0x173fa3(0x276),Co=_0x173fa3(0x342),ye={'onlineStatusIcon':po,'onlineStatusTitle':vo,'onlineStatus':Io,'online':Eo,'offline':Co};function bo(_0x35221d){const _0x47405a=_0x173fa3;switch(_0x35221d){case w[_0x47405a(0x410)]:return _0x47405a(0x406);case w[_0x47405a(0x19e)]:return _0x47405a(0x418);case w[_0x47405a(0x502)]:return'collabStatus.fetchMiss';case w['NOT_COLLAB']:return _0x47405a(0x4d4);case w[_0x47405a(0x333)]:case w[_0x47405a(0x3a9)]:return _0x47405a(0x24d);case w[_0x47405a(0x293)]:case w[_0x47405a(0x25c)]:return'collabStatus.synced';}}function To(_0x1a41d8){const _0x165943=_0x173fa3,{status$:_0x3a2c0e}=_0x1a41d8,_0x1f4df9=_0x1866fc(_0x3a2c0e,w[_0x165943(0x434)]),_0x2ab780=_0x5b7ccb(_0x15839b),_0x2435ab=_0x5b7ccb(ue),_0x1119e6=_0x1f4df9!==w[_0x165943(0x410)],_0x3a2f01=_0x2ab780['t'](bo(_0x1f4df9)),_0x4add23=So(ye[_0x165943(0x2c4)],{[ye[_0x165943(0x1ba)]]:_0x1119e6,[ye['offline']]:!_0x1119e6}),_0x153409=_0x1119e6?_0x588026[_0x165943(0x31c)](zs,null):_0x588026[_0x165943(0x31c)](Js,null),_0x406363=_0x2dcebf(()=>{const _0x457f01=_0x165943;_0x1119e6||_0x2435ab[_0x457f01(0x2e0)]();},[_0x1119e6,_0x2435ab]);function _0x17b6dd(){const _0x3dec20=_0x165943;return _0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':_0x4add23,'onClick':_0x406363},_0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':ye[_0x3dec20(0x1ec)]},_0x153409),_0x588026[_0x3dec20(0x31c)](_0x3dec20(0x206),{'className':ye[_0x3dec20(0x1dd)]},_0x3a2f01));}return _0x1119e6?_0x17b6dd():_0x588026[_0x165943(0x31c)](_0x523a7c,{'title':_0x2ab780['t']('collab-client.tooltip.reconnect')},_0x17b6dd());}var Ro=Object[_0x173fa3(0x309)],Oo=Object['getOwnPropertyDescriptor'],Do=(_0x1913b8,_0x2a8b71,_0x1ba4a3,_0x2221d1)=>{const _0x4b0db4=_0x173fa3;for(var _0x1353d1=_0x2221d1>0x1?void 0x0:_0x2221d1?Oo(_0x2a8b71,_0x1ba4a3):_0x2a8b71,_0x365ea0=_0x1913b8[_0x4b0db4(0x223)]-0x1,_0x19580e;_0x365ea0>=0x0;_0x365ea0--)(_0x19580e=_0x1913b8[_0x365ea0])&&(_0x1353d1=(_0x2221d1?_0x19580e(_0x2a8b71,_0x1ba4a3,_0x1353d1):_0x19580e(_0x1353d1))||_0x1353d1);return _0x2221d1&&_0x1353d1&&Ro(_0x2a8b71,_0x1ba4a3,_0x1353d1),_0x1353d1;},Ve=(_0x795a48,_0x28d7a9)=>(_0xfb8a4a,_0xa17329)=>_0x28d7a9(_0xfb8a4a,_0xa17329,_0x795a48);let Me=class extends _0x1ed84d{constructor(_0x4a0a17,_0xd38a50,_0x4a06b6,_0x2123e5){const _0xb5c354=_0x173fa3;super(),l(this,_0xb5c354(0x368),new _0x37b5ce(w[_0xb5c354(0x434)])),(this[_0xb5c354(0x3f2)]=_0x4a0a17,this['_uiPartsService']=_0xd38a50,this['_injector']=_0x4a06b6,this[_0xb5c354(0x486)]=_0x2123e5,this[_0xb5c354(0x4eb)](),this[_0xb5c354(0x39a)]());}[_0x173fa3(0x39a)](){const _0x5b2885=_0x173fa3;this[_0x5b2885(0x193)](this[_0x5b2885(0x3f2)]['focused$'][_0x5b2885(0x35b)](_0x3b6e12(()=>{const _0x4a966b=_0x5b2885,_0x485e3c=this['_univerInstanceService'][_0x4a966b(0x39c)]();return _0x485e3c?this['_collaborationController'][_0x4a966b(0x331)](_0x485e3c[_0x4a966b(0x253)]()):_0x2ad1bd(null);}),_0x3b6e12(_0x2ca20c=>_0x2ca20c?_0x2ca20c['status$']:_0x2ad1bd(w[_0x5b2885(0x434)])))['subscribe'](_0x28cb65=>{const _0x3ad722=_0x5b2885;this[_0x3ad722(0x368)][_0x3ad722(0x2d0)](_0x28cb65);}));}['_initStatusComponent'](){const _0x3eec34=_0x173fa3;this['disposeWithMe'](this[_0x3eec34(0x3f0)][_0x3eec34(0x37e)](_0x185249[_0x3eec34(0x4a4)],()=>_0x426f7f(wo({'status$':this[_0x3eec34(0x368)][_0x3eec34(0x2e6)]()}),this[_0x3eec34(0x4b7)])));}};Me=Do([Ve(0x0,_0x1e8ecc),Ve(0x1,_0x49f7f8),Ve(0x2,_0x4f7ed2(_0x3b0750)),Ve(0x3,_0x4f7ed2($e))],Me);function wo(_0x419591){const {status$:_0x4f489d}=_0x419591;return function(){const _0x403bd4=_0x33c3;return _0x588026[_0x403bd4(0x31c)](To,{'status$':_0x4f489d});};}const Qs=_0x1a0c31(_0x173fa3(0x3fc));var Po=Object['defineProperty'],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x41224c,_0x12f206,_0x40adaa,_0x55881b)=>{const _0x21ba33=_0x173fa3;for(var _0x7c9cf3=_0x55881b>0x1?void 0x0:_0x55881b?yo(_0x12f206,_0x40adaa):_0x12f206,_0x5b04d6=_0x41224c[_0x21ba33(0x223)]-0x1,_0x155f8c;_0x5b04d6>=0x0;_0x5b04d6--)(_0x155f8c=_0x41224c[_0x5b04d6])&&(_0x7c9cf3=(_0x55881b?_0x155f8c(_0x12f206,_0x40adaa,_0x7c9cf3):_0x155f8c(_0x7c9cf3))||_0x7c9cf3);return _0x55881b&&_0x7c9cf3&&Po(_0x12f206,_0x40adaa,_0x7c9cf3),_0x7c9cf3;},ve=(_0x2ea346,_0x34e8d8)=>(_0x4f681d,_0x25f195)=>_0x34e8d8(_0x4f681d,_0x25f195,_0x2ea346);let Ze=class extends _0x13ba8e{constructor(_0x242de4,_0xe91eec,_0x1c6631,_0x50e00d,_0x2f702e,_0x45f5db){const _0x5b8c89=_0x173fa3;super(),this[_0x5b8c89(0x312)]=_0x242de4,this['_logService']=_0xe91eec,this[_0x5b8c89(0x35c)]=_0x1c6631,this['_localCacheService']=_0x50e00d,this[_0x5b8c89(0x307)]=_0x2f702e,_0x45f5db?_0x45f5db==null||_0x45f5db[_0x5b8c89(0x2b7)]()[_0x5b8c89(0x375)](()=>this[_0x5b8c89(0x367)]()):(this[_0x5b8c89(0x2cd)][_0x5b8c89(0x28a)](_0x5b8c89(0x3d9),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x173fa3(0x367)](){const _0x452f48=_0x173fa3,_0x4bfe7b=this[_0x452f48(0x312)][_0x452f48(0x419)](_0x452f48(0x374)),_0x34b1d9=this[_0x452f48(0x312)][_0x452f48(0x419)](_0x452f48(0x32d));if(!_0x4bfe7b||!_0x34b1d9){this[_0x452f48(0x2cd)][_0x452f48(0x28a)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x34b1d9)){case B[_0x452f48(0x4fa)]:{const _0x4d4205=await this[_0x452f48(0x3a2)](_0x4bfe7b);this[_0x452f48(0x49a)](_0x4d4205);break;}case B[_0x452f48(0x381)]:{await this[_0x452f48(0x1d4)](_0x4bfe7b);break;}default:{this[_0x452f48(0x2cd)]['error']('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x173fa3(0x49a)](_0x36b5c3){const _0x45f489=_0x173fa3;await this['_updateSubUnitFromURLParams'](_0x36b5c3),_0x36b5c3[_0x45f489(0x192)][_0x45f489(0x35b)](_0x223895(this[_0x45f489(0x2a1)]))[_0x45f489(0x3eb)](_0x21909b=>{const _0x2b554b=_0x45f489;_0x21909b&&this[_0x2b554b(0x270)](_0x21909b);}),this[_0x45f489(0x312)][_0x45f489(0x42f)][_0x45f489(0x35b)](_0x223895(this[_0x45f489(0x2a1)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0x36b5c3));}[_0x173fa3(0x270)](_0x2e78e3,_0x469609=!0x1){const _0x482ddd=_0x173fa3,_0x212844=this['_urlService'][_0x482ddd(0x419)]('subunit');_0x2e78e3[_0x482ddd(0x3b7)]()!==_0x212844&&this[_0x482ddd(0x312)][_0x482ddd(0x352)]('subunit',_0x2e78e3[_0x482ddd(0x3b7)](),_0x469609);}async[_0x173fa3(0x412)](_0x1b8971){const _0x5cf675=_0x173fa3;var _0x2a5a1a;const _0x47a2d9=this[_0x5cf675(0x312)]['getParam'](_0x5cf675(0x427));if(!_0x47a2d9||!_0x1b8971[_0x5cf675(0x455)](_0x47a2d9)){const _0x5bf6f4=_0x1b8971[_0x5cf675(0x393)]()[0x0],_0x3a8126=_0x1b8971[_0x5cf675(0x455)](_0x5bf6f4);if(!_0x3a8126)return;this['_updateURLWithCurrentState'](_0x3a8126,!0x0),await this[_0x5cf675(0x35c)][_0x5cf675(0x1d2)](_0x5463e2['id'],{'unitId':_0x1b8971['getUnitId'](),'subUnitId':_0x5bf6f4});return;}((_0x2a5a1a=_0x1b8971['getActiveSheet']())==null?void 0x0:_0x2a5a1a[_0x5cf675(0x3b7)]())!==_0x47a2d9&&await this['_commandService'][_0x5cf675(0x1d2)](_0x5463e2['id'],{'unitId':_0x1b8971['getUnitId'](),'subUnitId':_0x47a2d9});}async[_0x173fa3(0x3a2)](_0x2cb0f6){const _0x427855=_0x173fa3;let _0x301a07=0x0;const _0x71d0e7=await this[_0x427855(0x292)]['loadOfflineData'](_0x2cb0f6);return _0x71d0e7&&(_0x71d0e7[_0x427855(0x3fe)]||_0x71d0e7[_0x427855(0x4cd)][_0x427855(0x223)]!==0x0)&&(_0x301a07=_0x71d0e7[_0x427855(0x4cf)]),_0x301a07===0x0&&this[_0x427855(0x2cd)][_0x427855(0x28a)](_0x427855(0x3d9),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x427855(0x307)][_0x427855(0x30d)](_0x2cb0f6,_0x301a07);}async[_0x173fa3(0x1d4)](_0x499883){const _0x5221bd=_0x173fa3;let _0x5276d9=0x0;const _0x430028=await this[_0x5221bd(0x292)][_0x5221bd(0x302)](_0x499883);return _0x430028&&(_0x430028[_0x5221bd(0x3fe)]||_0x430028['mutations'][_0x5221bd(0x223)]!==0x0)&&(_0x5276d9=_0x430028[_0x5221bd(0x4cf)]),_0x5276d9===0x0&&this['_logService'][_0x5221bd(0x28a)](_0x5221bd(0x3d9),_0x5221bd(0x385)),this[_0x5221bd(0x307)][_0x5221bd(0x25a)](_0x499883,_0x5276d9);}};Ze=Uo([ve(0x0,Qs),ve(0x1,_0x4329b1),ve(0x2,_0xdec94a),ve(0x3,_0x4f7ed2(D)),ve(0x4,_0x4f7ed2(_0x4c83fe)),ve(0x5,_0x532e88(_0xa2838))],Ze);var No=Object[_0x173fa3(0x309)],Ao=Object[_0x173fa3(0x4d5)],Mo=(_0x18b09f,_0x522300,_0x167e1d,_0x28aa88)=>{const _0x4a77c0=_0x173fa3;for(var _0x2cff85=_0x28aa88>0x1?void 0x0:_0x28aa88?Ao(_0x522300,_0x167e1d):_0x522300,_0x19b0e0=_0x18b09f[_0x4a77c0(0x223)]-0x1,_0x180dd7;_0x19b0e0>=0x0;_0x19b0e0--)(_0x180dd7=_0x18b09f[_0x19b0e0])&&(_0x2cff85=(_0x28aa88?_0x180dd7(_0x522300,_0x167e1d,_0x2cff85):_0x180dd7(_0x2cff85))||_0x2cff85);return _0x28aa88&&_0x2cff85&&No(_0x522300,_0x167e1d,_0x2cff85),_0x2cff85;},ps=(_0x5916da,_0x5e7a22)=>(_0xa7b728,_0x29647c)=>_0x5e7a22(_0xa7b728,_0x29647c,_0x5916da);const Lo=_0x173fa3(0x1b2),$o=_0x173fa3(0x295);let Qe=class extends _0x1ed84d{constructor(_0xa6afcf,_0x3dc36e){const _0x1253b5=_0x173fa3;super(),this[_0x1253b5(0x3f2)]=_0xa6afcf,this[_0x1253b5(0x205)]=_0x3dc36e,this['_init']();}[_0x173fa3(0x367)](){const _0x291fe0=_0x173fa3;this['disposeWithMe'](this[_0x291fe0(0x3f2)][_0x291fe0(0x430)][_0x291fe0(0x3eb)](()=>{const _0x58c549=_0x291fe0;var _0xb57927;const _0x4c8d86=this[_0x58c549(0x3f2)][_0x58c549(0x39c)]();let _0x28b019=(_0xb57927=this[_0x58c549(0x205)][_0x58c549(0x4c2)](Lo))!=null?_0xb57927:$o;_0x4c8d86 instanceof _0x1b1252&&(_0x28b019=_0x4c8d86[_0x58c549(0x284)]),document['title']=_0x28b019;}));}};Qe=Mo([ps(0x0,_0x1e8ecc),ps(0x1,_0x13b27e)],Qe);var jo=Object['defineProperty'],Ho=Object[_0x173fa3(0x4d5)],xo=(_0xcf2a24,_0x48d1f7,_0x4b14d7,_0x5909ac)=>{const _0x2bd519=_0x173fa3;for(var _0x2aafb5=_0x5909ac>0x1?void 0x0:_0x5909ac?Ho(_0x48d1f7,_0x4b14d7):_0x48d1f7,_0x4e074a=_0xcf2a24[_0x2bd519(0x223)]-0x1,_0x3e64eb;_0x4e074a>=0x0;_0x4e074a--)(_0x3e64eb=_0xcf2a24[_0x4e074a])&&(_0x2aafb5=(_0x5909ac?_0x3e64eb(_0x48d1f7,_0x4b14d7,_0x2aafb5):_0x3e64eb(_0x2aafb5))||_0x2aafb5);return _0x5909ac&&_0x2aafb5&&jo(_0x48d1f7,_0x4b14d7,_0x2aafb5),_0x2aafb5;},pt=(_0x3a1ba2,_0x2f6705)=>(_0x48997e,_0x2a5d39)=>_0x2f6705(_0x48997e,_0x2a5d39,_0x3a1ba2);let et=class{constructor(_0x383050,_0x93f74d,_0x4e28e4){const _0x509367=_0x173fa3;this[_0x509367(0x205)]=_0x383050,this[_0x509367(0x511)]=_0x93f74d,this['localeService']=_0x4e28e4,this['init']();}['init'](){const _0x2834ff=_0x173fa3;this['_httpService'][_0x2834ff(0x27b)]({'priority':0x1,'interceptor':(_0x5b6122,_0x4f8baa)=>_0x4f8baa(_0x5b6122)[_0x2834ff(0x35b)](_0x2bf06b(async _0x4e07da=>{const _0x23afbb=_0x2834ff,_0x4c5291=_0x4e07da;if(_0x4c5291[_0x23afbb(0x38d)]===0x191&&window['confirm'](this[_0x23afbb(0x1f2)]['t'](_0x23afbb(0x210)))){const _0x5c04fd=window[_0x23afbb(0x398)](window[_0x23afbb(0x35e)]['href']);window[_0x23afbb(0x35e)][_0x23afbb(0x3f3)]=this['_getLoginPath']()+_0x23afbb(0x19c)+_0x5c04fd;}return _0x4c5291;}))});}[_0x173fa3(0x341)](){const _0x3bb1d7=_0x173fa3;var _0x2351b1,_0x1aaf98;const _0x57d44b=this[_0x3bb1d7(0x205)][_0x3bb1d7(0x4c2)](Ln),_0x32b387=this[_0x3bb1d7(0x205)][_0x3bb1d7(0x4c2)](j);return(_0x1aaf98=(_0x2351b1=_0x32b387==null?void 0x0:_0x32b387[_0x3bb1d7(0x1f3)])!=null?_0x2351b1:_0x57d44b)!=null?_0x1aaf98:$n;}};et=xo([pt(0x0,_0x13b27e),pt(0x1,_0x4f7ed2(_0x33691b)),pt(0x2,_0x4f7ed2(_0x15839b))],et);var ko=Object[_0x173fa3(0x309)],Bo=Object[_0x173fa3(0x4d5)],Vo=(_0x479a8b,_0x332d27,_0xc68e06,_0x3bf73d)=>{for(var _0x36a69d=_0x3bf73d>0x1?void 0x0:_0x3bf73d?Bo(_0x332d27,_0xc68e06):_0x332d27,_0x56ce76=_0x479a8b['length']-0x1,_0x45a618;_0x56ce76>=0x0;_0x56ce76--)(_0x45a618=_0x479a8b[_0x56ce76])&&(_0x36a69d=(_0x3bf73d?_0x45a618(_0x332d27,_0xc68e06,_0x36a69d):_0x45a618(_0x36a69d))||_0x36a69d);return _0x3bf73d&&_0x36a69d&&ko(_0x332d27,_0xc68e06,_0x36a69d),_0x36a69d;},vs=(_0x10c368,_0x3bba06)=>(_0xe21ccf,_0x5161ec)=>_0x3bba06(_0xe21ccf,_0x5161ec,_0x10c368);const Fo='AUTHZ_URL_KEY',Wo=_0x173fa3(0x43e);let Ut=class extends _0x1ed84d{constructor(_0x36e08a,_0x2c40fc){const _0x289142=_0x173fa3;super(),this[_0x289142(0x2db)]=_0x36e08a,this[_0x289142(0x205)]=_0x2c40fc,this[_0x289142(0x4df)]();}[_0x173fa3(0x4df)](){const _0x3977dc=_0x173fa3,_0x4febc3=this;this[_0x3977dc(0x193)](this[_0x3977dc(0x2db)][_0x3977dc(0x27b)]({'priority':0x3e7,'interceptor':_0x5a1e35({'isMatch'(_0x2140a3){const _0xa94d7b=_0x3977dc;var _0x4a35b5;if(_0x2140a3['method']===_0xa94d7b(0x3af)&&((_0x4a35b5=_0x2140a3[_0xa94d7b(0x3e1)])!=null&&_0x4a35b5[_0xa94d7b(0x3d7)])){const {objectID:_0x341d55,objectType:_0x2aa6c1}=_0x2140a3['requestParams'][_0xa94d7b(0x3d7)]||{};if(!_0x341d55||_0x2aa6c1===void 0x0)return!0x1;const _0x27cef7=_0x4febc3[_0xa94d7b(0x272)]()+'/'+_0x2aa6c1+'/object/'+_0x341d55+_0xa94d7b(0x314);if(_0x2140a3[_0xa94d7b(0x27a)]===_0x27cef7)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x49d88a){const _0x3527b6=_0x3977dc;var _0x34b97e;return(_0x34b97e=_0x49d88a[_0x3527b6(0x3e1)])==null?void 0x0:_0x34b97e[_0x3527b6(0x3d7)];},'mergeParamsToRequest'(_0x3f149e,_0x2e9469){const _0x5e43c1=_0x3977dc,_0x4f7724=_0x4febc3[_0x5e43c1(0x272)]()+'/-/object/-/batch_allowed',_0x3dea26=_0x3f149e['reduce']((_0x568483,_0x445712)=>{const _0x4e5fba=_0x5e43c1,{unitID:_0x386388,objectID:_0x5272c5,objectType:_0x228ecd,actions:_0x103e3f}=_0x445712;return _0x568483[_0x386388]||(_0x568483[_0x386388]={}),_0x568483[_0x386388][_0x5272c5]||(_0x568483[_0x386388][_0x5272c5]={'objectID':_0x5272c5,'objectType':_0x228ecd,'actions':[]}),_0x568483[_0x386388][_0x5272c5][_0x4e5fba(0x1c3)]['push'](..._0x103e3f),_0x568483;},{}),_0x4a89f2=[];for(const _0x521160 in _0x3dea26)for(const _0x4e1877 in _0x3dea26[_0x521160]){const {actions:_0x357982,objectType:_0xec19ed}=_0x3dea26[_0x521160][_0x4e1877],_0x3b8b85=[...new Set(_0x357982)];_0x4a89f2[_0x5e43c1(0x1da)]({'unitID':_0x521160,'objectID':_0x4e1877,'objectType':_0xec19ed,'actions':_0x3b8b85});}return new _0x20d999(_0x5e43c1(0x3af),_0x4f7724,{'headers':_0x2e9469['headers'],'withCredentials':_0x2e9469['withCredentials'],'responseType':_0x2e9469[_0x5e43c1(0x360)],'body':{'requests':_0x4a89f2}});}},{'distributeResult'(_0x563f2a,_0x26b344){const _0x241e2c=_0x3977dc,{objectActions:_0x15dadc}=_0x563f2a;return _0x26b344[_0x241e2c(0x204)](_0x227b7a=>{const _0x21d82b=_0x241e2c,{unitID:_0x45f8c7,objectID:_0x35e572,actions:_0xeb61fb}=_0x227b7a,_0x5a030a=_0x15dadc['find'](_0x5ab627=>_0x5ab627[_0x21d82b(0x23a)]===_0x45f8c7&&_0x5ab627['objectID']===_0x35e572),_0x33a316=_0xeb61fb[_0x21d82b(0x204)](_0x2be622=>_0x5a030a==null?void 0x0:_0x5a030a[_0x21d82b(0x1c3)][_0x21d82b(0x1f4)](_0x9e5382=>_0x9e5382[_0x21d82b(0x21a)]===_0x2be622))['filter'](_0x7615ac=>!!_0x7615ac);return{'config':_0x227b7a,'result':{'actions':_0x33a316,'error':_0x563f2a[_0x21d82b(0x3b8)]}};});}})}));}['_getAPIPrefixPath'](){const _0x1612a9=_0x173fa3;var _0x21d5e1,_0x20ca58;const _0x1631b4=this[_0x1612a9(0x205)][_0x1612a9(0x4c2)](Fo),_0x542af1=this[_0x1612a9(0x205)][_0x1612a9(0x4c2)](j);return(_0x20ca58=(_0x21d5e1=_0x542af1==null?void 0x0:_0x542af1[_0x1612a9(0x1b6)])!=null?_0x21d5e1:_0x1631b4)!=null?_0x20ca58:Wo;}async[_0x173fa3(0x1ea)](_0x457221){const _0x2d8832=_0x173fa3,_0x2543f3=this['_getAPIPrefixPath']()+'/'+_0x457221[_0x2d8832(0x425)]+_0x2d8832(0x259);return(await this[_0x2d8832(0x2db)][_0x2d8832(0x289)](_0x2543f3,{'body':_0x457221}))[_0x2d8832(0x3d7)]['objectID']||'';}async[_0x173fa3(0x3b2)](_0x116fe0){const _0x1f8b94=_0x173fa3,_0x4cec10=this[_0x1f8b94(0x272)]()+_0x1f8b94(0x3c6);return(await this[_0x1f8b94(0x2db)][_0x1f8b94(0x289)](_0x4cec10,{'body':_0x116fe0}))['body']['objects'];}async[_0x173fa3(0x380)](_0xa0b536){const _0x27f7c0=_0x173fa3,_0x4d0cd1=this[_0x27f7c0(0x272)]()+'/'+_0xa0b536[_0x27f7c0(0x425)]+_0x27f7c0(0x485)+_0xa0b536[_0x27f7c0(0x41e)];await this[_0x27f7c0(0x2db)][_0x27f7c0(0x4d6)](_0x4d0cd1,{'body':_0xa0b536});}async[_0x173fa3(0x1e9)](_0x35437d){const _0x5051d9=_0x173fa3,_0x2c8cad=this['_getAPIPrefixPath']()+'/'+_0x35437d['objectType']+_0x5051d9(0x485)+_0x35437d[_0x5051d9(0x41e)]+_0x5051d9(0x314);return(await this[_0x5051d9(0x2db)][_0x5051d9(0x289)](_0x2c8cad,{'body':_0x35437d}))[_0x5051d9(0x3d7)][_0x5051d9(0x1c3)];}async['batchAllowed'](_0x5a5bb5){const _0x431613=_0x173fa3,_0x13607a=this[_0x431613(0x272)]()+_0x431613(0x2eb);return(await this[_0x431613(0x2db)][_0x431613(0x289)](_0x13607a,{'body':{'requests':_0x5a5bb5}}))[_0x431613(0x3d7)][_0x431613(0x42d)];}async[_0x173fa3(0x516)](_0x5e20be){const _0x3b57e8=_0x173fa3,_0x5992ec=this[_0x3b57e8(0x272)]()+'/'+_0x5e20be[_0x3b57e8(0x425)]+_0x3b57e8(0x4d9),_0x468af4=await this[_0x3b57e8(0x2db)][_0x3b57e8(0x289)](_0x5992ec,{'body':_0x5e20be});return{'roles':_0x468af4[_0x3b57e8(0x3d7)][_0x3b57e8(0x1b5)],'actions':_0x468af4[_0x3b57e8(0x3d7)][_0x3b57e8(0x1c3)]};}async[_0x173fa3(0x1a7)](_0x87ff24){const _0x1a82a2=_0x173fa3,_0x405d7b=this[_0x1a82a2(0x272)]()+_0x1a82a2(0x209);await this[_0x1a82a2(0x2db)]['delete'](_0x405d7b,{'params':{'collaboratorID':_0x87ff24['collaboratorID'],'objectID':_0x87ff24[_0x1a82a2(0x41e)],'unitID':_0x87ff24['unitID']}});}async[_0x173fa3(0x25f)](_0x309385){const _0x206ec1=_0x173fa3,_0x3ecd76=this[_0x206ec1(0x272)]()+_0x206ec1(0x209);await this[_0x206ec1(0x2db)][_0x206ec1(0x1ad)](_0x3ecd76,{'body':_0x309385});}async[_0x173fa3(0x413)](_0x37578f){const _0x3389b8=_0x173fa3,_0x207be9=this['_getAPIPrefixPath']()+_0x3389b8(0x209);await this[_0x3389b8(0x2db)]['post'](_0x207be9,{'body':_0x37578f});}async['listCollaborators'](_0x483fc3){const _0x1246b5=_0x173fa3,_0x57c30a=this[_0x1246b5(0x272)]()+_0x1246b5(0x209);return(await this[_0x1246b5(0x2db)][_0x1246b5(0x3c3)](_0x57c30a,{'params':{'objectID':_0x483fc3['objectID'],'unitID':_0x483fc3['unitID']}}))[_0x1246b5(0x3d7)][_0x1246b5(0x504)];}async[_0x173fa3(0x18c)](_0x4ed916){const _0x53c0b9=_0x173fa3,_0x568e2f=this[_0x53c0b9(0x272)]()+_0x53c0b9(0x209);await this['_HTTPService'][_0x53c0b9(0x4d6)](_0x568e2f,{'body':_0x4ed916});}};Ut=Vo([vs(0x0,_0x4f7ed2(_0x33691b)),vs(0x1,_0x4f7ed2(_0x13b27e))],Ut);var Go=Object[_0x173fa3(0x309)],Yo=Object[_0x173fa3(0x4d5)],Ko=(_0x39799e,_0x5092b8,_0x1a4984,_0xdcc60)=>{for(var _0x557708=_0xdcc60>0x1?void 0x0:_0xdcc60?Yo(_0x5092b8,_0x1a4984):_0x5092b8,_0x7d1ce8=_0x39799e['length']-0x1,_0x2d4ad0;_0x7d1ce8>=0x0;_0x7d1ce8--)(_0x2d4ad0=_0x39799e[_0x7d1ce8])&&(_0x557708=(_0xdcc60?_0x2d4ad0(_0x5092b8,_0x1a4984,_0x557708):_0x2d4ad0(_0x557708))||_0x557708);return _0xdcc60&&_0x557708&&Go(_0x5092b8,_0x1a4984,_0x557708),_0x557708;},Xo=(_0x4817eb,_0x5b7d9f)=>(_0x300afa,_0xb54b3c)=>_0x5b7d9f(_0x300afa,_0xb54b3c,_0x4817eb);let tt=class{constructor(_0x142b3e){const _0x1722a6=_0x173fa3;this[_0x1722a6(0x511)]=_0x142b3e,this[_0x1722a6(0x203)]();}[_0x173fa3(0x203)](){const _0x2fe295=_0x173fa3;this['_httpService'][_0x2fe295(0x27b)]({'interceptor':(_0x36189a,_0x779692)=>{const _0x2f3337=_0x2fe295,_0xd5b4b6=_0x36189a[_0x2f3337(0x435)],_0x3fbeaf=_0x10e2ee();return _0x3fbeaf&&_0xd5b4b6['set']('x-univer-host',_0x3fbeaf),_0x779692(_0x36189a);}});}};tt=Ko([Xo(0x0,_0x4f7ed2(_0x33691b))],tt);var qo=Object[_0x173fa3(0x309)],Jo=Object[_0x173fa3(0x4d5)],zo=(_0x51a9cc,_0x4dbf63,_0x1933c5,_0x4cd0e2)=>{for(var _0xab4580=_0x4cd0e2>0x1?void 0x0:_0x4cd0e2?Jo(_0x4dbf63,_0x1933c5):_0x4dbf63,_0x49d0e8=_0x51a9cc['length']-0x1,_0x4d3844;_0x49d0e8>=0x0;_0x49d0e8--)(_0x4d3844=_0x51a9cc[_0x49d0e8])&&(_0xab4580=(_0x4cd0e2?_0x4d3844(_0x4dbf63,_0x1933c5,_0xab4580):_0x4d3844(_0xab4580))||_0xab4580);return _0x4cd0e2&&_0xab4580&&qo(_0x4dbf63,_0x1933c5,_0xab4580),_0xab4580;},vt=(_0x2933f6,_0x2404dc)=>(_0x286e22,_0x332c12)=>_0x2404dc(_0x286e22,_0x332c12,_0x2933f6);const Zo=[_0x173fa3(0x30b),_0x173fa3(0x446),_0x173fa3(0x49e),_0x173fa3(0x306),'image/bmp'],Qo=0x5*0x400*0x400,ea='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ta=_0x173fa3(0x43d),sa=_0x173fa3(0x3f9),ia=_0x173fa3(0x1e4);let Nt=class{constructor(_0x28f982,_0x3e1de4,_0x2eb8ef){const _0x5c1aaf=_0x173fa3;l(this,_0x5c1aaf(0x39b),0x0),l(this,_0x5c1aaf(0x362),new _0x54d3a4()),l(this,_0x5c1aaf(0x222),this[_0x5c1aaf(0x362)]),l(this,_0x5c1aaf(0x514),new Map()),(this[_0x5c1aaf(0x511)]=_0x28f982,this[_0x5c1aaf(0x205)]=_0x3e1de4,this[_0x5c1aaf(0x3f2)]=_0x2eb8ef);}[_0x173fa3(0x3f4)](_0x39a492){const _0x3a2e37=_0x173fa3;this[_0x3a2e37(0x39b)]=_0x39a492,this[_0x3a2e37(0x362)][_0x3a2e37(0x2d0)](_0x39a492);}['getImageSourceCache'](_0x5216d1,_0x23390e){const _0x57ea16=_0x173fa3;if(_0x23390e===_0x4349b6[_0x57ea16(0x38b)]){const _0x50b7b2=new Image();return _0x50b7b2[_0x57ea16(0x2c8)]=_0x5216d1,_0x50b7b2;}return this[_0x57ea16(0x514)][_0x57ea16(0x3c3)](_0x5216d1);}[_0x173fa3(0x1c1)](_0x3e53e8,_0x3a4256,_0x33101a){const _0x2abecf=_0x173fa3;_0x3a4256===_0x4349b6[_0x2abecf(0x38b)]||_0x33101a==null||this[_0x2abecf(0x514)][_0x2abecf(0x3e3)](_0x3e53e8,_0x33101a);}async[_0x173fa3(0x3c2)](_0x1aa23f){const _0x4e2d83=_0x173fa3;try{const _0x12ebc5=this[_0x4e2d83(0x4a0)](this[_0x4e2d83(0x3a1)](),''+_0x1aa23f),_0x2e266a=(await this[_0x4e2d83(0x511)][_0x4e2d83(0x3c3)](_0x12ebc5))[_0x4e2d83(0x3d7)];if(_0x2e266a['error']&&_0x2e266a[_0x4e2d83(0x3b8)]['code']===ks['OK']){const _0x278d34=new URL(_0x2e266a[_0x4e2d83(0x27a)],this[_0x4e2d83(0x4a1)]())[_0x4e2d83(0x358)]();return Promise[_0x4e2d83(0x29f)](_0x278d34);}return Promise[_0x4e2d83(0x2b2)](_0x2e266a[_0x4e2d83(0x3b8)]);}catch(_0xfc6a63){return Promise[_0x4e2d83(0x2b2)](_0xfc6a63);}}async[_0x173fa3(0x4e9)](_0x4fa5a1){const _0x40e4e6=_0x173fa3;let _0x61e6b7='';if(!Zo['includes'](_0x4fa5a1['type']))return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1[_0x40e4e6(0x255)]));if(_0x4fa5a1[_0x40e4e6(0x46d)]>Qo)return this[_0x40e4e6(0x236)](),Promise['reject'](new Error(_0xb56f1[_0x40e4e6(0x1eb)]));try{const _0x5e47e1=new FormData();_0x5e47e1[_0x40e4e6(0x474)](_0x40e4e6(0x1e0),_0x4fa5a1);const _0x4b2f20=this[_0x40e4e6(0x3f2)][_0x40e4e6(0x39c)](),_0x1d52eb=_0x4b2f20==null?void 0x0:_0x4b2f20[_0x40e4e6(0x253)]();if(!_0x1d52eb)throw new Error(_0x40e4e6(0x3cd));const _0x283915=this[_0x40e4e6(0x40d)]()+'?size='+_0x4fa5a1['size'][_0x40e4e6(0x358)]()+'&source='+Bs[_0x40e4e6(0x2ff)]+'&assign='+encodeURIComponent(_0x1d52eb),_0x7ef6f2=await(await fetch(_0x283915,{'method':_0x40e4e6(0x3af),'body':_0x5e47e1}))[_0x40e4e6(0x399)]();if(typeof _0x7ef6f2['FileId']!=_0x40e4e6(0x215))return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1[_0x40e4e6(0x2a0)]));_0x61e6b7=_0x7ef6f2[_0x40e4e6(0x3e0)];}catch{return this[_0x40e4e6(0x236)](),Promise[_0x40e4e6(0x2b2)](new Error(_0xb56f1['ERROR_IMAGE']));}return new Promise((_0x46bfde,_0x4790b0)=>{const _0x5e76fa=_0x40e4e6,_0x5dfdc3=new FileReader();_0x5dfdc3[_0x5e76fa(0x4e3)](_0x4fa5a1),_0x5dfdc3[_0x5e76fa(0x298)]=_0x89dddd=>{const _0x3cd233=_0x5e76fa;var _0x14a6d6;const _0xc14666=(_0x14a6d6=_0x89dddd['target'])==null?void 0x0:_0x14a6d6[_0x3cd233(0x47b)];if(_0xc14666==null){this['_decreaseWaiting'](),_0x4790b0(new Error(_0xb56f1[_0x3cd233(0x2a0)]));return;}const _0x427335=_0x58e8f0[_0x3cd233(0x31e)](0x6);_0x46bfde({'imageId':_0x427335,'imageSourceType':_0x4349b6[_0x3cd233(0x3ed)],'source':_0x61e6b7,'base64Cache':_0xc14666,'status':_0xb56f1['SUCCUSS']}),this[_0x3cd233(0x236)]();};});}['_getUploadFileURL'](){const _0x297726=_0x173fa3;var _0x3224a4,_0x1bff2a;const _0x3b3f78=this[_0x297726(0x205)][_0x297726(0x4c2)](ea),_0x5ab8d9=this[_0x297726(0x205)][_0x297726(0x4c2)](j);return(_0x1bff2a=(_0x3224a4=_0x5ab8d9==null?void 0x0:_0x5ab8d9[_0x297726(0x3cb)])!=null?_0x3224a4:_0x3b3f78)!=null?_0x1bff2a:ta;}[_0x173fa3(0x3a1)](){const _0x214e9e=_0x173fa3;var _0x471d42,_0x2c2a39;const _0x2c85b8=this[_0x214e9e(0x205)][_0x214e9e(0x4c2)](sa),_0x19b752=this[_0x214e9e(0x205)][_0x214e9e(0x4c2)](j);return(_0x2c2a39=(_0x471d42=_0x19b752==null?void 0x0:_0x19b752[_0x214e9e(0x29e)])!=null?_0x471d42:_0x2c85b8)!=null?_0x2c2a39:ia;}[_0x173fa3(0x4a1)](){const _0x1b919e=_0x173fa3;var _0x53368a;const _0x25163f=this[_0x1b919e(0x205)][_0x1b919e(0x4c2)](j);return(_0x53368a=_0x25163f==null?void 0x0:_0x25163f[_0x1b919e(0x3dc)])!=null?_0x53368a:location[_0x1b919e(0x49c)];}[_0x173fa3(0x4a0)](_0x5b37d4,_0x298dc6){const _0xbcf7b0=_0x173fa3;return _0x5b37d4['replace'](_0xbcf7b0(0x27e),_0x298dc6);}['_decreaseWaiting'](){const _0x445b62=_0x173fa3;this[_0x445b62(0x39b)]-=0x1,this[_0x445b62(0x362)]['next'](this[_0x445b62(0x39b)]);}};Nt=zo([vt(0x0,_0x4f7ed2(_0x33691b)),vt(0x1,_0x13b27e),vt(0x2,_0x4f7ed2(_0x1e8ecc))],Nt);var na=Object[_0x173fa3(0x309)],ra=Object[_0x173fa3(0x4d5)],oa=(_0x467996,_0x4b7430,_0x4643ca,_0x3fe199)=>{const _0x5cb32c=_0x173fa3;for(var _0x242c90=_0x3fe199>0x1?void 0x0:_0x3fe199?ra(_0x4b7430,_0x4643ca):_0x4b7430,_0x263064=_0x467996[_0x5cb32c(0x223)]-0x1,_0xc004ef;_0x263064>=0x0;_0x263064--)(_0xc004ef=_0x467996[_0x263064])&&(_0x242c90=(_0x3fe199?_0xc004ef(_0x4b7430,_0x4643ca,_0x242c90):_0xc004ef(_0x242c90))||_0x242c90);return _0x3fe199&&_0x242c90&&na(_0x4b7430,_0x4643ca,_0x242c90),_0x242c90;},Ue=(_0x31123d,_0x3eb9df)=>(_0x4005fd,_0x5caaf6)=>_0x3eb9df(_0x4005fd,_0x5caaf6,_0x31123d);let st=class extends _0x13ba8e{constructor(_0x348969,_0xe4af0c,_0xfa0bd,_0x13f38d,_0x5c17ce){const _0x3c213c=_0x173fa3;super(),this[_0x3c213c(0x4b7)]=_0x348969,this[_0x3c213c(0x3f2)]=_0xe4af0c,this['_permissionService']=_0xfa0bd,this[_0x3c213c(0x344)]=_0x13f38d,this[_0x3c213c(0x2e7)]=_0x5c17ce,this[_0x3c213c(0x1f8)](),this['_initCloseConn']();}[_0x173fa3(0x4ad)](){const _0x1c101a=_0x173fa3,_0x29da62=async _0x21581c=>{const _0x30b8da=_0x33c3;(await this[_0x30b8da(0x344)]['requireSession'](_0x21581c))[_0x30b8da(0x493)][_0x30b8da(0x35b)](_0x3f9fc1(_0xd8c0a7=>_0xd8c0a7[_0x30b8da(0x278)]===_0x5f441e[_0x30b8da(0x296)]),_0x54b271(this[_0x30b8da(0x2a1)]))[_0x30b8da(0x3eb)](_0x5244c7=>{const _0x2f13cc=_0x30b8da,_0x4d930c=_0x5244c7,{reason:_0x14b7b5}=_0x4d930c[_0x2f13cc(0x411)];this[_0x2f13cc(0x4b7)][_0x2f13cc(0x3c3)](_0x46e149)[_0x2f13cc(0x1e6)]({'type':_0x180cc7['Error'],'content':this[_0x2f13cc(0x2e7)]['t']('collaboration.closeRoom')+'('+_0x14b7b5+')'}),this[_0x2f13cc(0x1d0)][_0x2f13cc(0x1c5)](new _0x52a438(_0x21581c)['id'],!0x1),this[_0x2f13cc(0x344)][_0x2f13cc(0x42a)](_0x21581c);});};_0x378f3d(this[_0x1c101a(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x1c101a(0x4fa)]),this[_0x1c101a(0x3f2)][_0x1c101a(0x22f)](_0x159e2d['UNIVER_DOC']))[_0x1c101a(0x35b)](_0x595c33(_0x3932a2=>_0x3932a2[_0x1c101a(0x253)]()),_0x3f9fc1(_0x249dba=>!_0xfab1d1(_0x249dba)),_0x54b271(this[_0x1c101a(0x2a1)]))[_0x1c101a(0x3eb)](_0x29146a=>{_0x29da62(_0x29146a);});}[_0x173fa3(0x1f8)](){const _0x4635ea=_0x173fa3,_0x1b7c03=async _0x15f66b=>{const _0x1bc624=_0x33c3;(await this[_0x1bc624(0x344)][_0x1bc624(0x395)](_0x15f66b))[_0x1bc624(0x493)][_0x1bc624(0x35b)](_0x3f9fc1(_0x7e9837=>_0x7e9837[_0x1bc624(0x278)]===_0x5f441e['UPDATE_PERMISSION_OBJ']),_0x54b271(this[_0x1bc624(0x2a1)]))[_0x1bc624(0x3eb)](_0x4bd85b=>{const _0x5cf68d=_0x1bc624,_0x409393=_0x4bd85b,{objectId:_0x4fb3ea}=_0x409393[_0x5cf68d(0x411)],_0x1761a5=this[_0x5cf68d(0x4b7)][_0x5cf68d(0x3c3)](_0x3d90fa);_0x4fb3ea===_0x15f66b?_0x1761a5[_0x5cf68d(0x4da)](_0x15f66b):_0x1761a5[_0x5cf68d(0x4dd)](_0x15f66b,_0x4fb3ea);});};_0x378f3d(this[_0x4635ea(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d['UNIVER_SHEET']),this[_0x4635ea(0x3f2)]['getTypeOfUnitAdded$'](_0x159e2d[_0x4635ea(0x381)]))[_0x4635ea(0x35b)](_0x595c33(_0x562ac6=>_0x562ac6['getUnitId']()),_0x3f9fc1(_0x3be468=>!_0xfab1d1(_0x3be468)),_0x54b271(this[_0x4635ea(0x2a1)]))[_0x4635ea(0x3eb)](_0x28baca=>{_0x1b7c03(_0x28baca);});}};st=oa([Ue(0x0,_0x4f7ed2(_0x3b0750)),Ue(0x1,_0x1e8ecc),Ue(0x2,_0x8f100a),Ue(0x3,_0x4f7ed2(ue)),Ue(0x4,_0x4f7ed2(_0x15839b))],st);var aa=Object[_0x173fa3(0x309)],ca=Object[_0x173fa3(0x4d5)],ha=(_0xa4f73,_0x288bed,_0x370d73,_0x586ae7)=>{const _0x33c0d7=_0x173fa3;for(var _0x168243=_0x586ae7>0x1?void 0x0:_0x586ae7?ca(_0x288bed,_0x370d73):_0x288bed,_0x51d964=_0xa4f73[_0x33c0d7(0x223)]-0x1,_0x3ff386;_0x51d964>=0x0;_0x51d964--)(_0x3ff386=_0xa4f73[_0x51d964])&&(_0x168243=(_0x586ae7?_0x3ff386(_0x288bed,_0x370d73,_0x168243):_0x3ff386(_0x168243))||_0x168243);return _0x586ae7&&_0x168243&&aa(_0x288bed,_0x370d73,_0x168243),_0x168243;},Is=(_0x5e71b3,_0xe5de6f)=>(_0x4913a2,_0xb8ae47)=>_0xe5de6f(_0x4913a2,_0xb8ae47,_0x5e71b3);let At=class{constructor(_0x36dc16,_0x5960dd){const _0xa12f65=_0x173fa3;this[_0xa12f65(0x205)]=_0x36dc16,this[_0xa12f65(0x511)]=_0x5960dd;}async['getUnitOnRev'](_0x1d8ef9,_0xb729a8){const _0x5b8c25=_0x173fa3;var _0x2ba270;const {unitID:_0x33d8c6,type:_0x1a3f89,revision:_0x1d962c=0x0}=_0xb729a8,_0x4715bc=this[_0x5b8c25(0x218)]()+'/'+_0x1a3f89+'/unit/'+_0x33d8c6+_0x5b8c25(0x233)+_0x1d962c,_0x52ed17=(await this[_0x5b8c25(0x511)]['get'](_0x4715bc))[_0x5b8c25(0x3d7)],_0x5d9d69=(_0x2ba270=_0x52ed17['snapshot'])==null?void 0x0:_0x2ba270['workbook'];if(_0x5d9d69){const _0x42b9cf=_0x5d9d69==null?void 0x0:_0x5d9d69['originalMeta'],_0x331846=_0x206e33['encode'](_0x346f8f(_0x42b9cf));_0x5d9d69['originalMeta']=_0x331846,Object[_0x5b8c25(0x20b)](_0x5d9d69['sheets'])['forEach'](([,_0x471995])=>{const _0x2b72b5=_0x5b8c25,_0xc4111=_0x471995[_0x2b72b5(0x28b)],_0x1c6da9=_0x206e33[_0x2b72b5(0x41b)](_0x346f8f(_0xc4111));_0x471995[_0x2b72b5(0x28b)]=_0x1c6da9;});}return _0x52ed17;}async['getSheetBlock'](_0x57a3ec,_0x126e0d){const _0x4f8582=_0x173fa3,{unitID:_0x44ea49,type:_0x633c47,blockID:_0x3237a0}=_0x126e0d,_0x349d00=this[_0x4f8582(0x3ba)]()+'/'+_0x633c47+_0x4f8582(0x50d)+_0x44ea49+_0x4f8582(0x33f)+_0x3237a0;return(await this[_0x4f8582(0x511)][_0x4f8582(0x3c3)](_0x349d00))[_0x4f8582(0x3d7)];}async['getDeserializedSheetBlock'](_0x4e907d,_0x3eef85){const _0x3bd19d=_0x173fa3,{unitID:_0x2900b0,type:_0x12cbff,blockID:_0x40e3e3}=_0x3eef85,_0x1e2c6e=this['_getAPIPrefix']()+_0x3bd19d(0x33f)+_0x12cbff+_0x3bd19d(0x50d)+_0x2900b0+_0x3bd19d(0x33f)+_0x40e3e3;return(await this[_0x3bd19d(0x511)][_0x3bd19d(0x3c3)](_0x1e2c6e))[_0x3bd19d(0x3d7)];}async[_0x173fa3(0x2ea)](_0x34a756,_0x668c){const _0x42bef7=_0x173fa3,{unitID:_0x69cb81,type:_0x3478c6,from:_0x2b23a2,to:_0x4af9}=_0x668c,_0x3356ce=this[_0x42bef7(0x3ba)]()+'/'+_0x3478c6+_0x42bef7(0x50d)+_0x69cb81+'/fetchmissing?from='+_0x2b23a2+'&to='+_0x4af9;return(await this[_0x42bef7(0x511)][_0x42bef7(0x3c3)](_0x3356ce))[_0x42bef7(0x3d7)];}[_0x173fa3(0x218)](){const _0x3860eb=_0x173fa3;var _0x331a9e;return(_0x331a9e=this[_0x3860eb(0x205)][_0x3860eb(0x4c2)](Cn))!=null?_0x331a9e:this['_getAPIPrefix']();}[_0x173fa3(0x3ba)](){const _0x23e3e2=_0x173fa3;var _0x2b6819,_0x8b1c5f;const _0x1a5dce=this[_0x23e3e2(0x205)][_0x23e3e2(0x4c2)](In),_0x5990d7=this[_0x23e3e2(0x205)][_0x23e3e2(0x4c2)](j);return(_0x8b1c5f=(_0x2b6819=_0x5990d7==null?void 0x0:_0x5990d7['snapshotServerUrl'])!=null?_0x2b6819:_0x1a5dce)!=null?_0x8b1c5f:En;}async['getResourcesRequest'](_0x469b2f,_0x3fe9fe){const _0x314ed8=_0x173fa3,_0x53209f=_0x314ed8(0x363)+_0x3fe9fe[_0x314ed8(0x32d)]+_0x314ed8(0x50d)+_0x3fe9fe[_0x314ed8(0x23a)]+'/resources';return(await this[_0x314ed8(0x511)][_0x314ed8(0x3c3)](_0x53209f,{'params':{'resourceId':JSON[_0x314ed8(0x3ab)](_0x3fe9fe['resourceIDs'])}}))[_0x314ed8(0x3d7)];}[_0x173fa3(0x224)](){const _0x12595e=_0x173fa3;throw new Error(_0x12595e(0x2da));}[_0x173fa3(0x1fb)](){const _0x3412db=_0x173fa3;throw new Error(_0x3412db(0x2da));}['saveChangeset'](){const _0x3476ab=_0x173fa3;throw new Error(_0x3476ab(0x2da));}[_0x173fa3(0x421)](){const _0x325519=_0x173fa3;throw new Error(_0x325519(0x2da));}[_0x173fa3(0x479)](){const _0xb35fab=_0x173fa3;throw new Error(_0xb35fab(0x2da));}};At=ha([Is(0x0,_0x13b27e),Is(0x1,_0x4f7ed2(_0x33691b))],At);var la=Object['defineProperty'],_a=Object['getOwnPropertyDescriptor'],ua=(_0x14bf50,_0x1fb0c0,_0x4e79c9,_0x252c98)=>{for(var _0x7d04d3=_0x252c98>0x1?void 0x0:_0x252c98?_a(_0x1fb0c0,_0x4e79c9):_0x1fb0c0,_0x217247=_0x14bf50['length']-0x1,_0x1d51a4;_0x217247>=0x0;_0x217247--)(_0x1d51a4=_0x14bf50[_0x217247])&&(_0x7d04d3=(_0x252c98?_0x1d51a4(_0x1fb0c0,_0x4e79c9,_0x7d04d3):_0x1d51a4(_0x7d04d3))||_0x7d04d3);return _0x252c98&&_0x7d04d3&&la(_0x1fb0c0,_0x4e79c9,_0x7d04d3),_0x7d04d3;},Ne=(_0x36e38f,_0x571c46)=>(_0x384c2c,_0x2f1b04)=>_0x571c46(_0x384c2c,_0x2f1b04,_0x36e38f);let Mt=class extends _0x2bc6cc{constructor(_0x438187,_0x2c3fd8,_0x2a5a39,_0x3be526,_0x4966e0){super(_0x438187,_0x2c3fd8,_0x2a5a39),this['_transformService']=_0x3be526,this['_logService']=_0x4966e0;}[_0x173fa3(0x201)](_0x33a395,_0x5f5870){const _0x1a0909=_0x173fa3,_0x537ca1=this[_0x1a0909(0x260)](_0x33a395);if(_0x537ca1)try{const _0x3a7253=this[_0x1a0909(0x26b)](_0x537ca1,_0x5f5870);this['_substituteUndoStack'](_0x33a395,_0x3a7253);}catch(_0x2c6dc7){this[_0x1a0909(0x2cd)]['error'](_0x1a0909(0x2d8),_0x2c6dc7),this[_0x1a0909(0x33d)](_0x33a395);}const _0x1886b3=this[_0x1a0909(0x43a)](_0x33a395);if(_0x1886b3)try{const _0x4d9fc2=this[_0x1a0909(0x26b)](_0x1886b3,_0x5f5870);this[_0x1a0909(0x3ac)](_0x33a395,_0x4d9fc2);}catch(_0x37f2a1){this[_0x1a0909(0x2cd)][_0x1a0909(0x3b8)](_0x37f2a1),this[_0x1a0909(0x4c8)](_0x33a395);}}[_0x173fa3(0x33d)](_0x593fdf){const _0x232a53=_0x173fa3,_0x2a71de=this[_0x232a53(0x260)](_0x593fdf);_0x2a71de&&(_0x2a71de[_0x232a53(0x223)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x55e3e3){const _0x2bcabe=_0x173fa3,_0x1c2f4a=this[_0x2bcabe(0x43a)](_0x55e3e3);_0x1c2f4a&&(_0x1c2f4a['length']=0x0,this[_0x2bcabe(0x34d)]());}[_0x173fa3(0x304)](_0x571f47,_0x57acca){this['_undoStacks']['set'](_0x571f47,_0x57acca),this['_updateStatus']();}['_substituteRedoStack'](_0x26041b,_0x533df6){const _0x67bc62=_0x173fa3;this[_0x67bc62(0x269)]['set'](_0x26041b,_0x533df6),this['_updateStatus']();}[_0x173fa3(0x26b)](_0x27177f,_0xae8e4a){const _0x3ce7eb=_0x173fa3,_0x5ad930=[];let _0x4de5e6=_0xae8e4a,_0x48b13c=_0xae8e4a;for(let _0x2055e1=_0x27177f[_0x3ce7eb(0x223)]-0x1;_0x2055e1>=0x0;_0x2055e1--){const {unitID:_0xcfc7cb,undoMutations:_0x376fa8,redoMutations:_0x363b5f}=_0x27177f[_0x2055e1],_0x24d480=this[_0x3ce7eb(0x387)][_0x3ce7eb(0x3a5)](_0x4de5e6,_0x376fa8),_0x4fbbaf=this[_0x3ce7eb(0x387)][_0x3ce7eb(0x3a5)](_0x48b13c,_0x363b5f);if(_0x5a59dd(_0x24d480)||_0x5a59dd(_0x4fbbaf)){this[_0x3ce7eb(0x2cd)][_0x3ce7eb(0x3b8)](_0x3ce7eb(0x2d8),'transformStack\x20failed!',_0x24d480,_0x4fbbaf);break;}_0x4de5e6=_0x24d480[_0x3ce7eb(0x33a)],_0x48b13c=_0x4fbbaf[_0x3ce7eb(0x33a)],_0x5ad930[_0x3ce7eb(0x1da)]({'unitID':_0xcfc7cb,'undoMutations':_0x24d480[_0x3ce7eb(0x197)],'redoMutations':_0x4fbbaf['m2Prime']});}return _0x5ad930[_0x3ce7eb(0x441)]();}};Mt=ua([Ne(0x0,_0x1e8ecc),Ne(0x1,_0xdec94a),Ne(0x2,_0x163dc9),Ne(0x3,_0x4a8bc3),Ne(0x4,_0x4329b1)],Mt);class da extends _0x13ba8e{constructor(){const _0x501f71=_0x173fa3;super(),l(this,_0x501f71(0x42f)),this['urlChange$']=_0x25f31e(window,_0x501f71(0x3d2))['pipe'](_0x223895(this['dispose$']),_0x5fb4e1(0x1),_0x5297dd(void 0x0));}[_0x173fa3(0x352)](_0x45e98b,_0x37ea9f,_0x26ce14=!0x1){const _0x88f494=_0x173fa3,_0x4c2c02=new URL(window[_0x88f494(0x35e)]['href']);_0x4c2c02[_0x88f494(0x4cb)]['set'](_0x45e98b,_0x37ea9f),_0x26ce14?window[_0x88f494(0x24a)]['replaceState']('','',_0x4c2c02[_0x88f494(0x358)]()):window[_0x88f494(0x24a)][_0x88f494(0x4cc)]('','',_0x4c2c02[_0x88f494(0x358)]());}[_0x173fa3(0x3c9)](_0x14e57a,_0x45b672=!0x1){const _0x48b527=_0x173fa3,_0x5db4f7=new URL(window[_0x48b527(0x35e)][_0x48b527(0x3f3)]);_0x5db4f7[_0x48b527(0x4cb)]['delete'](_0x14e57a),_0x45b672?window[_0x48b527(0x24a)][_0x48b527(0x290)]('','',_0x5db4f7[_0x48b527(0x358)]()):window['history']['pushState']('','',_0x5db4f7[_0x48b527(0x358)]());}[_0x173fa3(0x419)](_0x32e781){const _0x5a2452=_0x173fa3;var _0x5ec0ef;return(_0x5ec0ef=new URL(window['location'][_0x5a2452(0x3f3)])[_0x5a2452(0x4cb)][_0x5a2452(0x3c3)](_0x32e781))!=null?_0x5ec0ef:void 0x0;}}var ei=Object[_0x173fa3(0x309)],ma=Object['getOwnPropertyDescriptor'],fa=(_0x1eac1f,_0x1209aa,_0x425b64)=>_0x1209aa in _0x1eac1f?ei(_0x1eac1f,_0x1209aa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425b64}):_0x1eac1f[_0x1209aa]=_0x425b64,ga=(_0x441b0d,_0x85a50c,_0x5877f4,_0x3df6fb)=>{const _0x6d9291=_0x173fa3;for(var _0xf4c2e9=_0x3df6fb>0x1?void 0x0:_0x3df6fb?ma(_0x85a50c,_0x5877f4):_0x85a50c,_0x28304e=_0x441b0d[_0x6d9291(0x223)]-0x1,_0x45bdd5;_0x28304e>=0x0;_0x28304e--)(_0x45bdd5=_0x441b0d[_0x28304e])&&(_0xf4c2e9=(_0x3df6fb?_0x45bdd5(_0x85a50c,_0x5877f4,_0xf4c2e9):_0x45bdd5(_0xf4c2e9))||_0xf4c2e9);return _0x3df6fb&&_0xf4c2e9&&ei(_0x85a50c,_0x5877f4,_0xf4c2e9),_0xf4c2e9;},Fe=(_0x8015ec,_0x1b2daf)=>(_0x5d365a,_0x5f0954)=>_0x1b2daf(_0x5d365a,_0x5f0954,_0x8015ec),Sa=(_0x1ad15f,_0x3d84d4,_0xf7ff1a)=>fa(_0x1ad15f,_0x3d84d4+'',_0xf7ff1a);const pa='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Lt=class extends _0x3ddd75{constructor(_0x361d80=jn,_0x4ef8df,_0x284bf4,_0xeeabd0,_0x5aae9f){const _0x5d85bd=_0x173fa3;super(),this[_0x5d85bd(0x2ec)]=_0x361d80,this['_logService']=_0x4ef8df,this[_0x5d85bd(0x3f6)]=_0x284bf4,this[_0x5d85bd(0x4b7)]=_0xeeabd0,this[_0x5d85bd(0x205)]=_0x5aae9f;const {..._0x1e7988}=this['_config'];this[_0x5d85bd(0x205)][_0x5d85bd(0x4c9)](j,_0x1e7988);}[_0x173fa3(0x3d5)](){const _0x3c3b15=_0x173fa3;this[_0x3c3b15(0x450)](),_0x3b1166(this[_0x3c3b15(0x4b7)],[[Ce],[Ze],[st]]);}[_0x173fa3(0x22d)](){const _0x260ff1=_0x173fa3;_0x3b1166(this[_0x260ff1(0x4b7)],[[Qe]]);}['onRendered'](){const _0xcde075=_0x173fa3;this[_0xcde075(0x2d7)]();}[_0x173fa3(0x450)](){const _0x18ef3b=_0x173fa3;var _0x4af776,_0x37d841,_0x35a505,_0xe55bac;this[_0x18ef3b(0x4b7)][_0x18ef3b(0x432)](_0x57ccc3)&&this[_0x18ef3b(0x2cd)][_0x18ef3b(0x3b8)](_0x18ef3b(0x515),_0x18ef3b(0x4ec));let _0x516e96=[[_0x57ccc3,{'useClass':Mt}],[ue],[Yt],[_0x33691b],[Qs,{'useClass':da}],[_e],[D],[_0x424bbf],[qe],[Je],[Xe],[Wt],[et],[tt],[Fs],[st],[Vs,{'useClass':(_0x37d841=(_0x4af776=this[_0x18ef3b(0x2ec)])==null?void 0x0:_0x4af776['socketService'])!=null?_0x37d841:bt}],[_0x15deac,{'useClass':_0x13c3e0}],[_0x5dfd2d,{'useClass':At}],[_0x588b6d,{'useClass':Ut}],[_0x21630a,{'useClass':Nt}],[$e],[Ze],[Me],[Qe],[Ce]];(_0x35a505=this[_0x18ef3b(0x2ec)])!=null&&_0x35a505['enableSingleActiveInstanceLock']&&_0x516e96['push']([it,{'useClass':Sr}]),_0x516e96=_0x401096(_0x516e96,(_0xe55bac=this['_config'])==null?void 0x0:_0xe55bac[_0x18ef3b(0x36c)]),_0x516e96[_0x18ef3b(0x47e)](_0x12892f=>this[_0x18ef3b(0x4b7)][_0x18ef3b(0x2f7)](_0x12892f)),this['_initModules']();}[_0x173fa3(0x2d7)](){const _0x13d935=_0x173fa3;this[_0x13d935(0x193)](this[_0x13d935(0x3f6)][_0x13d935(0x49d)](_0x159e2d[_0x13d935(0x381)],[Pt])),this[_0x13d935(0x193)](this[_0x13d935(0x3f6)][_0x13d935(0x49d)](_0x159e2d[_0x13d935(0x4fa)],[yt]));}[_0x173fa3(0x4e6)](){const _0x4c6a9a=_0x173fa3;var _0x78e887,_0x2fcf78;this[_0x4c6a9a(0x4b7)]['get'](_0x33691b)['registerHTTPInterceptor']({'priority':0x14,'interceptor':_0x2fe6df({'maxParallel':0x6})}),this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](tt),(_0x78e887=this['_config'])!=null&&_0x78e887[_0x4c6a9a(0x4c3)]||this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](D)[_0x4c6a9a(0x2ba)](),(_0x2fcf78=this[_0x4c6a9a(0x2ec)])!=null&&_0x2fcf78[_0x4c6a9a(0x37c)]&&this['_injector']['get'](et),this[_0x4c6a9a(0x4b7)]['get']($e),this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x432)](Me)&&this[_0x4c6a9a(0x4b7)][_0x4c6a9a(0x3c3)](Me);}};Sa(Lt,_0x173fa3(0x231),pa),Lt=ga([_0xf1d54(_0x3ee7ed),Fe(0x1,_0x4329b1),Fe(0x2,_0x2855ab),Fe(0x3,_0x4f7ed2(_0x3b0750)),Fe(0x4,_0x13b27e)],Lt);export{Fo as AUTHZ_URL_KEY,Ut as AuthzIoHttpService,An as COLLAB_SUBMIT_CHANGESET_URL_KEY,Tn as COLLAB_WEB_SOCKET_URL_KEY,$e as CollaborationController,ze as CollaborationEntity,Tt as CollaborationSession,ue as CollaborationSessionService,bt as CollaborationSocketService,w as CollaborationStatus,To as CollaborationStatusDisplay,Fs as CommentService,Ze as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Rt as DocCollaborationEntity,On as HEARTBEAT_INTERVAL_KEY,Hs as HEARTBEAT_TIMEOUT_KEY,Vs as ICollaborationSocketService,Qs as IURLService,Nt as ImageIoService,Un as LOCAL_CACHE_INTERVAL_KEY,Ln as LOGIN_URL_KEY,D as LocalCacheService,Pn as RETRY_CONNECTING_MAX_COUNT_KEY,Ha as SEND_CHANGESET_TIMEOUT_KEY,In as SNAPSHOT_SERVER_URL_KEY,Cn as SNAPSHOT_URL_KEY,X as SessionStatus,no as SheetCollabCursorShape,Ot as SheetCollaborationEntity,At as SnapshotServerOverHTTPService,Lt as UniverCollaborationClientPlugin,da as WebURLService,Hn as deserializeToCombResponse,xn as serializeCombRequest};