@univerjs-pro/collaboration-client 0.3.0-nightly.202410111606 → 0.4.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +32 -32
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x335edf=_0x1425;(function(_0x3d1cd7,_0x1f7d97){const _0x31cc60=_0x1425,_0x172149=_0x3d1cd7();while(!![]){try{const _0x1bae5e=-parseInt(_0x31cc60(0x2f1))/0x1*(-parseInt(_0x31cc60(0x2ec))/0x2)+-parseInt(_0x31cc60(0x293))/0x3+parseInt(_0x31cc60(0x41e))/0x4+-parseInt(_0x31cc60(0x1d5))/0x5+parseInt(_0x31cc60(0x24b))/0x6+parseInt(_0x31cc60(0x463))/0x7*(-parseInt(_0x31cc60(0x4a2))/0x8)+-parseInt(_0x31cc60(0x27d))/0x9*(parseInt(_0x31cc60(0x193))/0xa);if(_0x1bae5e===_0x1f7d97)break;else _0x172149['push'](_0x172149['shift']());}catch(_0x19f44f){_0x172149['push'](_0x172149['shift']());}}}(_0x4fd1,0xc9d29));var qs=Object[_0x335edf(0x226)],zs=(_0x12eaaf,_0x5b59d0,_0x511782)=>_0x5b59d0 in _0x12eaaf?qs(_0x12eaaf,_0x5b59d0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x511782}):_0x12eaaf[_0x5b59d0]=_0x511782,l=(_0x432302,_0x2b791d,_0x4f0daf)=>zs(_0x432302,typeof _0x2b791d!=_0x335edf(0x1a7)?_0x2b791d+'':_0x2b791d,_0x4f0daf);import{createIdentifier as _0x2bd96a,Inject as _0x412e01,Disposable as _0x443103,DisposableCollection as _0x168252,toDisposable as _0x1afe37,IConfigService as _0x19915a,ILogService as _0x96d163,UserManagerService as _0x520b9a,UniverInstanceType as _0xb4bf4,IUniverInstanceService as _0x2bb140,LocaleService as _0x1c954b,Optional as _0x21427f,RxDisposable as _0x832c1b,Injector as _0x5df9be,Tools as _0x39831b,ILocalStorageService as _0x5e1cfc,ICommandService as _0x5ad0bf,JSONX as _0x527749,CommandType as _0x46033a,IPermissionService as _0x41b8c7,IUndoRedoService as _0x4abbfc,sequenceExecute as _0x1a2b4a,debounce as _0x57de21,Rectangle as _0x2e44b1,COLORS as _0x129ddf,ColorKit as _0x4cea1f,ThemeService as _0x133706,fromEventSubject as _0x578a3c,useDependency as _0x36b855,connectInjector as _0x1f3fab,Workbook as _0x2be7d6,isInternalEditorID as _0x4e6cab,LocalUndoRedoService as _0x2edd85,IContextService as _0x579375,DependentOn as _0x55ef1f,Plugin as _0x341544,touchDependencies as _0x592b07,IAuthzIoService as _0x2ad9b2,mergeOverrideWithDependencies as _0x1c3b91}from'@univerjs/core';import{Subject as _0x509a7c,merge as _0x249fdc,takeUntil as _0x10cdea,BehaviorSubject as _0x5b0208,distinctUntilChanged as _0x1fbf91,fromEvent as _0x433ac3,map as _0x3cc30b,shareReplay as _0x553f98,take as _0x10db86,of as _0x465c56,debounceTime as _0x4a40f5,filter as _0x14526e,switchMap as _0x12faf3,combineLatest as _0x5d4cc6,concatMap as _0x387b12,mapTo as _0x4c1a22}from'rxjs';import{map as _0x451d6e,take as _0x31959a,filter as _0x3e7870,delay as _0x2522a2,throttleTime as _0xc22491,takeUntil as _0x3f581e,switchMap as _0x4c23c3}from'rxjs/operators';import{MessageType as _0x4c7fa7,Tooltip as _0x15b107}from'@univerjs/design';import{IBeforeCloseService as _0x3b1b38,IMessageService as _0x42071b,INotificationService as _0x2f85b0,useObservable as _0x31e75d,BuiltInUIPart as _0xbb65de,IUIPartsService as _0x4215dd}from'@univerjs/ui';import{HTTPService as _0x480539,WebSocketService as _0x3edd07,MergeInterceptorFactory as _0x5a6b00,HTTPRequest as _0x1bd31e,IHTTPImplementation as _0x184f10,XHRHTTPImplementation as _0x20e529,ThresholdInterceptorFactory as _0x21c696}from'@univerjs/network';import{CollaborationEvent as _0x5bec90,parseChangesetToProtocol as _0x434178,ISnapshotServerService as _0x40899c,isTransformMutationFailure as _0x5ef866,isTransformMutationsWithChangesetSuccess as _0x1199e4,ITransformService as _0x245d4a,RevisionService as _0x52844f,mapDocumentTypeToUniverType as _0x13132a,isTransformChangesetsSuccess as _0x1708d2,CompressMutationService as _0x15ea7c,parseProtocolChangeset as _0x469b18,SnapshotService as _0x4187e2,textEncoder as _0x2d0104,b64DecodeUnicode as _0x60da30,isTransformMutationsWithChangesetFailure as _0x4336b2,UniverCollaborationPlugin as _0x48943f}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x462958}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x394a55,RichTextEditingMutation as _0x335b03,SetTextSelectionsOperation as _0x5c8846,DocSkeletonManagerService as _0x49458b}from'@univerjs/docs';import{DocIMEInputManagerService as _0x2a09b2,DocStateChangeManagerService as _0x2a19d2,NodePositionConvertToCursor as _0xbed89c,isValidRectRange as _0x1bf58a,NodePositionConvertToRectRange as _0x1bc56e,TEXT_RANGE_LAYER_INDEX as _0x4f124b,SetDocZoomRatioOperation as _0x513899}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x5a4af5,SetSelectionsOperation as _0x90af15,InsertSheetMutation as _0x520cd5,EmptyMutation as _0x78612e,WorkbookEditablePermission as _0x2cefce,RefRangeService as _0x933780,EffectRefRangId as _0x4ff7ae,handleIRemoveRow as _0x111a21,handleIRemoveCol as _0x1dc8d2,handleMoveRange as _0xb62b92,handleInsertRow as _0x5914c8,handleInsertRangeMoveRight as _0xec75e6,handleInsertRangeMoveDown as _0x2d5448,handleInsertCol as _0x356315,handleDeleteRangeMoveUp as _0xbf7ee9,handleDeleteRangeMoveLeft as _0x14e8f1,runRefRangeMutations as _0x504ff5,SetWorksheetActivateCommand as _0x598061}from'@univerjs/sheets';import{IRenderManagerService as _0x3469bd,Shape as _0x9b6639,Rect as _0x2f5580,getColor as _0x2ee887,RegularPolygon as _0x4cf7e2,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x5ba5f7,Vector2 as _0xe127fc}from'@univerjs/engine-render';import{ImageSourceType as _0x231132,ImageUploadStatusType as _0x13e778,IImageIoService as _0x345379}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x5bfc85,serializeRangeWithSheet as _0x217911}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x7abed8,VIEWPORT_KEY as _0x3df7a5,getCoordByCell as _0x4fd896,getSheetObject as _0x574c54,SheetPermissionInitController as _0x39508e}from'@univerjs/sheets-ui';import _0x244cb3,{forwardRef as _0x378530,useRef as _0x5dc2e8,createElement as _0x1c6869,useCallback as _0x5bd8d8}from'react';import _0x314a20 from'clsx';import{IRemoteInstanceService as _0x3e482c}from'@univerjs/rpc';import{getAttachHeader as _0x593233}from'@univerjs-pro/license';const dn=_0x335edf(0x373),fn='/universer-api/snapshot',mn=_0x335edf(0x1fb),Oa='SEND_CHANGESET_TIMEOUT',gn=0x7d0,Sn=_0x335edf(0x270),pn='ws://127.0.0.1:8000/universer-api/comb/connect',vn=_0x335edf(0x2ba),In=0x7530,Ns=_0x335edf(0x4ac),Us=0x4e20,En=0x4e20,Cn=_0x335edf(0x197),bn=0x3,Tn=_0x335edf(0x31b),Rn=0x3e8,On=_0x335edf(0x2ad),Dn='/universer-api/comb',wn=_0x335edf(0x269),Pn=_0x335edf(0x3de);var Ms=(_0x3e247e=>(_0x3e247e[_0x3e247e[_0x335edf(0x4d7)]=0x0]=_0x335edf(0x4d7),_0x3e247e[_0x3e247e['OK']=0x1]='OK',_0x3e247e[_0x3e247e[_0x335edf(0x3c2)]=0x2]=_0x335edf(0x3c2),_0x3e247e[_0x3e247e[_0x335edf(0x313)]=0x3]='PERMISSION_DENIED',_0x3e247e[_0x3e247e[_0x335edf(0x414)]=0x4]=_0x335edf(0x414),_0x3e247e[_0x3e247e[_0x335edf(0x29c)]=0x5]=_0x335edf(0x29c),_0x3e247e[_0x3e247e[_0x335edf(0x424)]=0x6]=_0x335edf(0x424),_0x3e247e[_0x3e247e[_0x335edf(0x235)]=0x7]='INVALID_ARGUMENT',_0x3e247e[_0x3e247e['TOO_MANY_REQUESTS']=0x8]=_0x335edf(0x211),_0x3e247e[_0x3e247e['COMPLETION_FINISHED']=0x9]=_0x335edf(0x2e7),_0x3e247e[_0x3e247e[_0x335edf(0x3bc)]=0x1389]=_0x335edf(0x3bc),_0x3e247e[_0x3e247e[_0x335edf(0x249)]=0x1771]=_0x335edf(0x249),_0x3e247e[_0x3e247e[_0x335edf(0x37b)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x3e247e[_0x3e247e[_0x335edf(0x2ee)]=0x1b59]=_0x335edf(0x2ee),_0x3e247e[_0x3e247e[_0x335edf(0x498)]=0x1b5a]=_0x335edf(0x498),_0x3e247e[_0x3e247e['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x335edf(0x4bc),_0x3e247e[_0x3e247e[_0x335edf(0x1b4)]=0x1b5c]=_0x335edf(0x1b4),_0x3e247e[_0x3e247e[_0x335edf(0x272)]=0x1f41]=_0x335edf(0x272),_0x3e247e[_0x3e247e[_0x335edf(0x34b)]=0x2329]=_0x335edf(0x34b),_0x3e247e[_0x3e247e[_0x335edf(0x175)]=0x232a]=_0x335edf(0x175),_0x3e247e[_0x3e247e['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x335edf(0x1f1),_0x3e247e[_0x3e247e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x335edf(0x3b1),_0x3e247e[_0x3e247e[_0x335edf(0x2c1)]=0x232d]=_0x335edf(0x2c1),_0x3e247e[_0x3e247e['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x335edf(0x43c),_0x3e247e[_0x3e247e[_0x335edf(0x27f)]=0x2712]=_0x335edf(0x27f),_0x3e247e[_0x3e247e['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x335edf(0x2a8),_0x3e247e[_0x3e247e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x335edf(0x39c),_0x3e247e[_0x3e247e[_0x335edf(0x167)]=-0x1]='UNRECOGNIZED',_0x3e247e))(Ms||{}),H=(_0x2c607d=>(_0x2c607d[_0x2c607d['UNIVER_UNKNOWN']=0x0]=_0x335edf(0x208),_0x2c607d[_0x2c607d[_0x335edf(0x3bf)]=0x1]=_0x335edf(0x3bf),_0x2c607d[_0x2c607d[_0x335edf(0x391)]=0x2]=_0x335edf(0x391),_0x2c607d[_0x2c607d['UNIVER_SLIDE']=0x3]='UNIVER_SLIDE',_0x2c607d[_0x2c607d[_0x335edf(0x382)]=0x4]=_0x335edf(0x382),_0x2c607d[_0x2c607d['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2c607d))(H||{}),I=(_0x2f7a82=>(_0x2f7a82[_0x2f7a82['UNKNOWN_CMD']=0x0]=_0x335edf(0x42f),_0x2f7a82[_0x2f7a82[_0x335edf(0x240)]=0x1]=_0x335edf(0x240),_0x2f7a82[_0x2f7a82[_0x335edf(0x3b4)]=0x2]='JOIN',_0x2f7a82[_0x2f7a82['LEAVE']=0x3]=_0x335edf(0x29b),_0x2f7a82[_0x2f7a82['INGEST']=0x4]=_0x335edf(0x292),_0x2f7a82[_0x2f7a82[_0x335edf(0x20f)]=0x5]=_0x335edf(0x20f),_0x2f7a82[_0x2f7a82[_0x335edf(0x1f8)]=0x6]=_0x335edf(0x1f8),_0x2f7a82[_0x2f7a82[_0x335edf(0x167)]=-0x1]='UNRECOGNIZED',_0x2f7a82))(I||{}),kt=(_0x142abd=>(_0x142abd[_0x142abd['UNKNOWN_CODE']=0x0]=_0x335edf(0x166),_0x142abd[_0x142abd['OK']=0x1]='OK',_0x142abd[_0x142abd['FAIL']=0x2]=_0x335edf(0x3db),_0x142abd[_0x142abd[_0x335edf(0x167)]=-0x1]=_0x335edf(0x167),_0x142abd))(kt||{}),As=(_0x462345=>(_0x462345[_0x462345[_0x335edf(0x2b1)]=0x0]=_0x335edf(0x2b1),_0x462345[_0x462345[_0x335edf(0x412)]=0x1]=_0x335edf(0x412),_0x462345[_0x462345['HttpExport']=0x2]='HttpExport',_0x462345[_0x462345[_0x335edf(0x1f9)]=0x3]=_0x335edf(0x1f9),_0x462345[_0x462345[_0x335edf(0x43a)]=0x4]=_0x335edf(0x43a),_0x462345[_0x462345[_0x335edf(0x167)]=-0x1]='UNRECOGNIZED',_0x462345))(As||{});const L=_0x335edf(0x3ae),yn={};function Nn(_0x5a6618){const _0x1898f9=_0x335edf;var _0x13884a,_0x1d2bac,_0xc36d65,_0x14de21;const _0x220718=_0x5a6618[_0x1898f9(0x474)],_0x4493e3=JSON[_0x1898f9(0x4d6)](_0x220718);switch(_0x4493e3[_0x1898f9(0x3c6)]){case I[_0x1898f9(0x20f)]:case I[_0x1898f9(0x240)]:{const _0x50ad76=_0x4493e3['infoRsp'];return{..._0x4493e3,'data':_0x50ad76,'cmd':_0x4493e3[_0x1898f9(0x3c6)]};}case I[_0x1898f9(0x3b4)]:{const _0x4f8c2b=_0x4493e3[_0x1898f9(0x187)];return{..._0x4493e3,'data':_0x4f8c2b,'cmd':_0x4493e3['cmd']};}case I[_0x1898f9(0x1f8)]:{const _0x44784a=_0x4493e3[_0x1898f9(0x1e8)];switch(_0x44784a[_0x1898f9(0x345)]){case _0x5bec90[_0x1898f9(0x48d)]:return{..._0x4493e3,'data':{..._0x44784a,'data':(_0x13884a=_0x44784a[_0x1898f9(0x20e)])==null?void 0x0:_0x13884a['cs']},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90[_0x1898f9(0x3ba)]:return{..._0x4493e3,'data':{..._0x44784a,'data':(_0x1d2bac=_0x44784a[_0x1898f9(0x2d9)])==null?void 0x0:_0x1d2bac['cs']},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90[_0x1898f9(0x17d)]:return{..._0x4493e3,'data':{..._0x44784a,'data':(_0xc36d65=_0x44784a[_0x1898f9(0x489)])==null?void 0x0:_0xc36d65['cs']},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90[_0x1898f9(0x3a3)]:return{..._0x4493e3,'data':{..._0x44784a,'data':(_0x14de21=_0x44784a[_0x1898f9(0x3ce)])==null?void 0x0:_0x14de21['cs']},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90['UPDATE_CURSOR']:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a[_0x1898f9(0x449)]},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90[_0x1898f9(0x253)]:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a[_0x1898f9(0x27a)]},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90['USERS_LEAVE']:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a['leaveEvent']},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90[_0x1898f9(0x4c0)]:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a[_0x1898f9(0x3cc)]},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90['LIVESHARE_FETCH_OPERATIONS']:case _0x5bec90[_0x1898f9(0x2e2)]:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a[_0x1898f9(0x3a0)]},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90[_0x1898f9(0x379)]:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a['liveShareNewHost']},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90['MSG_FOR_ERROR']:return{..._0x4493e3,'data':_0x44784a,'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90[_0x1898f9(0x4b7)]:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a['commentUpdateEvent']},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};case _0x5bec90['UPDATE_PERMISSION_OBJ']:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a[_0x1898f9(0x2a1)]},'cmd':_0x4493e3['cmd']};case _0x5bec90[_0x1898f9(0x25c)]:return{..._0x4493e3,'data':{..._0x44784a,'data':_0x44784a[_0x1898f9(0x3f2)]},'cmd':_0x4493e3[_0x1898f9(0x3c6)]};default:return _0x4493e3;}}default:return _0x4493e3;}}function Un(_0x29c4c7){const _0x3a22a5=_0x335edf;switch(_0x29c4c7['cmd']){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x3a22a5(0x2c0)]({'cmd':_0x29c4c7[_0x3a22a5(0x3c6)],'routeKey':_0x29c4c7[_0x3a22a5(0x2ff)]});case I[_0x3a22a5(0x292)]:{let _0x4b292f;switch(_0x29c4c7[_0x3a22a5(0x474)][_0x3a22a5(0x345)]){case _0x5bec90[_0x3a22a5(0x2a7)]:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x2a7)],'updateCursorEvent':_0x29c4c7['data'][_0x3a22a5(0x474)]};break;}case _0x5bec90['USERS_LEAVE']:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x4bb)],'leaveEvent':_0x29c4c7['data'][_0x3a22a5(0x474)]};break;}case _0x5bec90[_0x3a22a5(0x253)]:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x253)],'joinEvent':_0x29c4c7[_0x3a22a5(0x474)][_0x3a22a5(0x474)]};break;}case _0x5bec90['LIVESHARE_NEW_HOST']:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x4c0)],'liveShareNewHost':_0x29c4c7[_0x3a22a5(0x474)][_0x3a22a5(0x474)]};break;}case _0x5bec90['LIVESHARE_OPERATION']:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x2e2)],'liveShareOperation':_0x29c4c7[_0x3a22a5(0x474)][_0x3a22a5(0x474)]};break;}case _0x5bec90[_0x3a22a5(0x379)]:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x379)],'liveShareTerminate':_0x29c4c7['data'][_0x3a22a5(0x474)]};break;}case _0x5bec90['LIVESHARE_REQUEST_HOST']:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x371)],'liveShareRequestHost':_0x29c4c7[_0x3a22a5(0x474)][_0x3a22a5(0x474)]};break;}case _0x5bec90[_0x3a22a5(0x284)]:{_0x4b292f={'eventID':_0x5bec90[_0x3a22a5(0x284)]};break;}default:_0x4b292f={'eventID':_0x29c4c7['data'][_0x3a22a5(0x345)]};}return JSON[_0x3a22a5(0x2c0)]({'cmd':_0x29c4c7[_0x3a22a5(0x3c6)],'routeKey':_0x29c4c7['routeKey'],'collaMsg':_0x4b292f});}case I['JOIN']:return JSON[_0x3a22a5(0x2c0)]({'cmd':_0x29c4c7[_0x3a22a5(0x3c6)],'routeKey':_0x29c4c7[_0x3a22a5(0x2ff)],'joinReq':_0x29c4c7[_0x3a22a5(0x474)]});case I['LEAVE']:return JSON['stringify']({'cmd':_0x29c4c7[_0x3a22a5(0x3c6)],'routeKey':_0x29c4c7[_0x3a22a5(0x2ff)],'leaveReq':_0x29c4c7[_0x3a22a5(0x474)]});default:throw new Error(_0x3a22a5(0x42b));}}var Mn=Object[_0x335edf(0x226)],An=Object[_0x335edf(0x2e4)],Ln=(_0x214bd6,_0x4e149e,_0x4999ee,_0x1d4ab1)=>{const _0x4770bd=_0x335edf;for(var _0x50a3a3=_0x1d4ab1>0x1?void 0x0:_0x1d4ab1?An(_0x4e149e,_0x4999ee):_0x4e149e,_0x4b1b4a=_0x214bd6[_0x4770bd(0x2d5)]-0x1,_0x8890b7;_0x4b1b4a>=0x0;_0x4b1b4a--)(_0x8890b7=_0x214bd6[_0x4b1b4a])&&(_0x50a3a3=(_0x1d4ab1?_0x8890b7(_0x4e149e,_0x4999ee,_0x50a3a3):_0x8890b7(_0x50a3a3))||_0x50a3a3);return _0x1d4ab1&&_0x50a3a3&&Mn(_0x4e149e,_0x4999ee,_0x50a3a3),_0x50a3a3;},Re=(_0x5e8c24,_0x2e3809)=>(_0x113e3b,_0x5b96d9)=>_0x2e3809(_0x113e3b,_0x5b96d9,_0x5e8c24);const Ls=_0x2bd96a(_0x335edf(0x2b3));function $n(_0x25ff26,_0x205e85,_0x346373){const _0x3d0f0e=_0x335edf;return _0x25ff26+'/'+_0x205e85+_0x3d0f0e(0x4a5)+_0x346373+_0x3d0f0e(0x3b2);}let Et=class extends _0x443103{constructor(_0x2968e5,_0x4f8cba,_0xa317cf,_0x3958e7,_0x205053){const _0x4a1a7d=_0x335edf;super(),this[_0x4a1a7d(0x3ef)]=_0x2968e5,this[_0x4a1a7d(0x1a0)]=_0x4f8cba,this[_0x4a1a7d(0x2b5)]=_0xa317cf,this[_0x4a1a7d(0x4b8)]=_0x3958e7,this[_0x4a1a7d(0x422)]=_0x205053;}[_0x335edf(0x2df)](_0x3a1fb9){const _0x2125c6=_0x335edf,_0x3370a3=this[_0x2125c6(0x1a0)]['createSocket'](_0x3a1fb9);if(!_0x3370a3)throw new Error(_0x2125c6(0x286));const _0x44589a=new _0x168252(),_0x4914d4=new _0x509a7c();_0x44589a['add'](_0x3370a3['close$'][_0x2125c6(0x1bc)](_0x3e5841=>_0x4914d4[_0x2125c6(0x1ab)](_0x3e5841))),_0x44589a['add'](_0x1afe37(()=>_0x4914d4[_0x2125c6(0x22b)]()));const _0x4d646c=new _0x509a7c();_0x44589a[_0x2125c6(0x4ce)](_0x3370a3[_0x2125c6(0x185)]['subscribe'](_0x18d751=>_0x4d646c[_0x2125c6(0x1ab)](_0x18d751))),_0x44589a[_0x2125c6(0x4ce)](_0x1afe37(()=>_0x4d646c[_0x2125c6(0x22b)]()));const _0x33b712=new _0x509a7c();_0x44589a['add'](_0x3370a3['message$']['subscribe'](_0x3f6898=>{const _0x2a256a=_0x2125c6,_0xa05287=Nn(_0x3f6898);_0x33b712[_0x2a256a(0x1ab)](_0xa05287);})),_0x44589a[_0x2125c6(0x4ce)](_0x1afe37(()=>_0x33b712[_0x2125c6(0x22b)]()));let _0x3a4b94;const _0x55043d=()=>{const _0x8ac3f4=_0x2125c6;_0x4d646c[_0x8ac3f4(0x1ab)](new Event('connection\x20error')),_0x4914d4[_0x8ac3f4(0x1ab)](new CloseEvent('connection\x20error')),_0x3a4b94[_0x8ac3f4(0x2d1)]();};return _0x3a4b94={'memberID':'','close$':_0x4914d4[_0x2125c6(0x40b)](),'error$':_0x4d646c[_0x2125c6(0x40b)](),'open$':_0x3370a3['open$'],'message$':_0x33b712[_0x2125c6(0x40b)](),'send':_0x3def25=>{const _0x290a25=_0x2125c6;if(_0x3def25[_0x290a25(0x3c6)]===I[_0x290a25(0x292)]){if(_0x3def25[_0x290a25(0x474)][_0x290a25(0x345)]===_0x5bec90[_0x290a25(0x241)]){this[_0x290a25(0x20a)](_0x3a4b94,_0x3def25[_0x290a25(0x474)])[_0x290a25(0x38c)](_0x22a678=>{const _0x5a41fe=_0x290a25;this['_logService'][_0x5a41fe(0x417)](_0x22a678),_0x55043d();});return;}if(_0x3def25[_0x290a25(0x474)][_0x290a25(0x345)]===_0x5bec90[_0x290a25(0x3fc)]){const _0x82589a=_0x3def25['data'];this[_0x290a25(0x2d6)](_0x82589a)[_0x290a25(0x3ca)](_0x54a826=>{const _0xeab156=_0x290a25;_0x33b712['next']({'cmd':I['RECV'],'code':kt['OK'],'routeKey':_0x82589a[_0xeab156(0x474)]['unitID'],'routeType':'','data':{'eventID':_0x5bec90[_0xeab156(0x429)],'data':{'changesets':_0x54a826}}});})['catch'](_0x451a9f=>{const _0xc557ce=_0x290a25;this[_0xc557ce(0x4b8)]['error'](_0x451a9f),_0x55043d();});return;}}_0x3370a3[_0x290a25(0x486)](Un(_0x3def25));},'close':()=>{_0x3370a3['close'](),_0x44589a['dispose']();}},_0x3a4b94;}async[_0x335edf(0x20a)](_0x5256c8,_0xbb6c93){const _0x305e63=_0x335edf;var _0x23d172,_0x4749ea;const {unitType:_0x17f1f6,unitID:_0x17b307,changeset:_0x1a2130}=_0xbb6c93[_0x305e63(0x474)],_0x4a0024={'unitID':_0x17b307,'memberID':_0x5256c8[_0x305e63(0x33e)],'type':_0x17f1f6,'changeset':_0x434178(_0x1a2130)},_0x23182c=this['_configService']['getConfig'](On),_0x41faa1=this[_0x305e63(0x2b5)][_0x305e63(0x281)](L),_0x2af8de=$n((_0x4749ea=(_0x23d172=_0x41faa1==null?void 0x0:_0x41faa1[_0x305e63(0x425)])!=null?_0x23d172:_0x23182c)!=null?_0x4749ea:Dn,_0x17f1f6,_0x17b307);try{await this[_0x305e63(0x3ef)]['post'](_0x2af8de,{'body':_0x4a0024});}catch(_0x5c67a9){throw this['_logService'][_0x305e63(0x417)](_0x305e63(0x399),_0x305e63(0x453)),_0x5c67a9;}}async[_0x335edf(0x2d6)](_0x3c22ef){const _0x2ac0ed=_0x335edf,{unitID:_0x170cc0,from:_0x407349,to:_0x15db58,unitType:_0x2d314b}=_0x3c22ef['data'];return(await this[_0x2ac0ed(0x422)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x170cc0,'type':_0x2d314b,'from':_0x407349,'to':_0x15db58}))[_0x2ac0ed(0x279)];}};Et=Ln([Re(0x0,_0x412e01(_0x480539)),Re(0x1,_0x412e01(_0x3edd07)),Re(0x2,_0x19915a),Re(0x3,_0x96d163),Re(0x4,_0x40899c)],Et);const jn='collaboration_new_changeset';function xn(_0x409dfc){const _0x321feb=_0x335edf;return JSON[_0x321feb(0x2c0)](_0x409dfc)['length'];}class $s{constructor(){const _0x50a093=_0x335edf;l(this,_0x50a093(0x390),new _0x509a7c()),l(this,_0x50a093(0x1c4),this[_0x50a093(0x390)][_0x50a093(0x40b)]());}[_0x335edf(0x2bc)](_0xb59f05){const _0x18eb80=_0x335edf;this[_0x18eb80(0x390)][_0x18eb80(0x1ab)](_0xb59f05);}}var Hn=Object[_0x335edf(0x226)],kn=Object[_0x335edf(0x2e4)],Bn=(_0x5f16a9,_0x18b371,_0xb0db49,_0x59a9e9)=>{const _0x1f52a7=_0x335edf;for(var _0x100b84=_0x59a9e9>0x1?void 0x0:_0x59a9e9?kn(_0x18b371,_0xb0db49):_0x18b371,_0x121a3f=_0x5f16a9[_0x1f52a7(0x2d5)]-0x1,_0x49c424;_0x121a3f>=0x0;_0x121a3f--)(_0x49c424=_0x5f16a9[_0x121a3f])&&(_0x100b84=(_0x59a9e9?_0x49c424(_0x18b371,_0xb0db49,_0x100b84):_0x49c424(_0x100b84))||_0x100b84);return _0x59a9e9&&_0x100b84&&Hn(_0x18b371,_0xb0db49,_0x100b84),_0x100b84;},rs=(_0x388e1b,_0x1ad277)=>(_0x42b3d1,_0x5de4e2)=>_0x1ad277(_0x42b3d1,_0x5de4e2,_0x388e1b);let ae=class extends _0x443103{constructor(_0x112277,_0x2c6085){const _0x497b18=_0x335edf;super(),l(this,_0x497b18(0x238),new Map()),(this[_0x497b18(0x44a)]=_0x112277,this[_0x497b18(0x3c7)]=_0x2c6085,this[_0x497b18(0x33b)](_0x1afe37(_0x249fdc(this['_univerInstanceService'][_0x497b18(0x221)](_0xb4bf4[_0x497b18(0x391)])[_0x497b18(0x266)](_0x451d6e(_0x379fa5=>_0x379fa5[_0x497b18(0x1e7)]())),this['_univerInstanceService'][_0x497b18(0x221)](_0xb4bf4[_0x497b18(0x3bf)])[_0x497b18(0x266)](_0x451d6e(_0x13f049=>_0x13f049['getUnitId']())),this[_0x497b18(0x44a)][_0x497b18(0x221)](_0xb4bf4[_0x497b18(0x1af)])[_0x497b18(0x266)](_0x451d6e(_0x4ca19c=>_0x4ca19c['getUnitId']())))['subscribe'](_0x5e55ca=>this[_0x497b18(0x42e)](_0x5e55ca)))));}['setCurrentUser'](_0x592fa1){const _0x1b66a9=_0x335edf;this[_0x1b66a9(0x3c7)][_0x1b66a9(0x189)](_0x592fa1);}[_0x335edf(0x183)](){const _0x380fcb=_0x335edf;return this['_userManagerService'][_0x380fcb(0x183)]();}[_0x335edf(0x351)](_0x441b30,_0x89180d){const _0x48415f=_0x335edf;let _0x1a7585=this[_0x48415f(0x238)][_0x48415f(0x242)](_0x441b30);_0x1a7585||(_0x1a7585=new Vn(),this['_roomMembers'][_0x48415f(0x3e2)](_0x441b30,_0x1a7585)),_0x1a7585[_0x48415f(0x351)](_0x89180d);}[_0x335edf(0x4ab)](_0x889c1f,_0x3c6df6){const _0x10ec16=_0x335edf,_0x3c8dcf=this[_0x10ec16(0x238)][_0x10ec16(0x242)](_0x889c1f);_0x3c8dcf&&_0x3c8dcf[_0x10ec16(0x4ab)](_0x3c6df6);}['getRoom'](_0x37ba06){const _0x2d7e9b=_0x335edf;return this[_0x2d7e9b(0x238)][_0x2d7e9b(0x242)](_0x37ba06);}[_0x335edf(0x3ff)](_0x39b7ad,_0x6c7542){const _0x56fe50=_0x335edf,_0x4c1a8b=this[_0x56fe50(0x238)][_0x56fe50(0x242)](_0x39b7ad);if(_0x4c1a8b)return _0x4c1a8b[_0x56fe50(0x3ff)](_0x6c7542);}['_removeRoom'](_0x647f87){const _0x466dda=_0x335edf,_0x47b074=this[_0x466dda(0x238)][_0x466dda(0x242)](_0x647f87);_0x47b074&&(_0x47b074[_0x466dda(0x1b5)](),this[_0x466dda(0x238)][_0x466dda(0x1cb)](_0x647f87));}[_0x335edf(0x1b5)](){const _0x11a98a=_0x335edf;this[_0x11a98a(0x238)][_0x11a98a(0x2c9)](_0x2ffe41=>_0x2ffe41['dispose']()),this['_roomMembers'][_0x11a98a(0x260)]();}};ae=Bn([rs(0x0,_0x2bb140),rs(0x1,_0x412e01(_0x520b9a))],ae);class Vn extends _0x443103{constructor(){const _0x13aed2=_0x335edf;super(...arguments),l(this,_0x13aed2(0x295),new Map());}[_0x335edf(0x1b5)](){const _0x375ee6=_0x335edf;this[_0x375ee6(0x295)][_0x375ee6(0x260)]();}[_0x335edf(0x351)](_0x5edcfd){const _0x1ad2f4=_0x335edf;this[_0x1ad2f4(0x295)][_0x1ad2f4(0x3e2)](_0x5edcfd[_0x1ad2f4(0x33e)],_0x5edcfd);}['removeMember'](_0x57e1b7){const _0x7e9f0=_0x335edf;this[_0x7e9f0(0x295)][_0x7e9f0(0x1cb)](_0x57e1b7);}['getMember'](_0x469178){const _0x55d99f=_0x335edf;return this[_0x55d99f(0x295)][_0x55d99f(0x242)](_0x469178);}}var Fn=Object[_0x335edf(0x226)],Wn=Object[_0x335edf(0x2e4)],Gn=(_0x5cfcfe,_0x438aac,_0xd1b312,_0x5d965b)=>{const _0x49c237=_0x335edf;for(var _0x4bd07a=_0x5d965b>0x1?void 0x0:_0x5d965b?Wn(_0x438aac,_0xd1b312):_0x438aac,_0x1007cf=_0x5cfcfe[_0x49c237(0x2d5)]-0x1,_0x4b4ccd;_0x1007cf>=0x0;_0x1007cf--)(_0x4b4ccd=_0x5cfcfe[_0x1007cf])&&(_0x4bd07a=(_0x5d965b?_0x4b4ccd(_0x438aac,_0xd1b312,_0x4bd07a):_0x4b4ccd(_0x4bd07a))||_0x4bd07a);return _0x5d965b&&_0x4bd07a&&Fn(_0x438aac,_0xd1b312,_0x4bd07a),_0x4bd07a;},J=(_0x17db30,_0x14e425)=>(_0x2d0b88,_0x52b66e)=>_0x14e425(_0x2d0b88,_0x52b66e,_0x17db30),G=(_0x140234=>(_0x140234[_0x140234[_0x335edf(0x383)]=0x0]=_0x335edf(0x383),_0x140234[_0x140234[_0x335edf(0x30b)]=0x1]=_0x335edf(0x30b),_0x140234[_0x140234[_0x335edf(0x1b3)]=0x2]=_0x335edf(0x1b3),_0x140234[_0x140234[_0x335edf(0x1fa)]=0x3]=_0x335edf(0x1fa),_0x140234))(G||{});let Ct=class extends _0x832c1b{constructor(_0x1ebc22,_0x2cfe5f,_0x411f4e,_0x2b6686,_0x1f3f7c,_0x39af1d,_0x5eea95,_0x151da8,_0xa4e3ea,_0x35f1ee){const _0x477f93=_0x335edf;super(),l(this,_0x477f93(0x36f),new _0x5b0208(0x0)),l(this,_0x477f93(0x4c7),this[_0x477f93(0x36f)][_0x477f93(0x40b)]()),l(this,'_event$',new _0x509a7c()),l(this,_0x477f93(0x359),this[_0x477f93(0x480)][_0x477f93(0x40b)]()),l(this,_0x477f93(0x3f7)),l(this,_0x477f93(0x2cf)),l(this,_0x477f93(0x322)),l(this,_0x477f93(0x22a),!0x1),l(this,_0x477f93(0x444),null),(this[_0x477f93(0x1d0)]=_0x1ebc22,this[_0x477f93(0x4b8)]=_0x411f4e,this[_0x477f93(0x28c)]=_0x2b6686,this['_messageService']=_0x1f3f7c,this[_0x477f93(0x2b5)]=_0x39af1d,this['_localeService']=_0x5eea95,this[_0x477f93(0x225)]=_0x151da8,this[_0x477f93(0x16f)]=_0xa4e3ea,this[_0x477f93(0x2f2)]=_0x35f1ee,this[_0x477f93(0x22a)]=!!this[_0x477f93(0x2f2)],_0x2cfe5f[_0x477f93(0x266)](_0x10cdea(this[_0x477f93(0x1d9)]))[_0x477f93(0x1bc)](_0x849cec=>{const _0x3f7187=_0x477f93;var _0x4a4b16;typeof _0x849cec>'u'||(this['_socket']=_0x849cec,_0x849cec?(this[_0x3f7187(0x3fd)](_0x849cec),this[_0x3f7187(0x2cf)]=_0x849cec[_0x3f7187(0x4d0)][_0x3f7187(0x1bc)](_0x3b87f4=>{const _0x57319f=_0x3f7187;_0x3b87f4[_0x57319f(0x2ff)]===this[_0x57319f(0x1d0)]&&this[_0x57319f(0x2ab)](_0x3b87f4);})):(this[_0x3f7187(0x3e0)](),this[_0x3f7187(0x36f)][_0x3f7187(0x1ab)](0x2),(_0x4a4b16=this[_0x3f7187(0x2cf)])==null||_0x4a4b16[_0x3f7187(0x452)](),this[_0x3f7187(0x2cf)]=null));}),this[_0x477f93(0x33b)](this['_beforeCloseService'][_0x477f93(0x3fa)](()=>{const _0x2404de=_0x477f93;var _0x3740dd;(_0x3740dd=this[_0x2404de(0x3f7)])==null||_0x3740dd[_0x2404de(0x486)]({'cmd':I[_0x2404de(0x29b)],'data':{'roomID':this[_0x2404de(0x1d0)]}});})));}get[_0x335edf(0x467)](){const _0x6ff390=_0x335edf;return this['_sessionStatus$'][_0x6ff390(0x309)]();}[_0x335edf(0x48f)](){const _0x21321d=_0x335edf;var _0x5430ba,_0x4f3981;return(_0x4f3981=(_0x5430ba=this[_0x21321d(0x3f7)])==null?void 0x0:_0x5430ba[_0x21321d(0x33e)])!=null?_0x4f3981:null;}[_0x335edf(0x1b5)](){const _0x37293b=_0x335edf;super[_0x37293b(0x1b5)](),this[_0x37293b(0x1d9)]['next'](),this[_0x37293b(0x1d9)][_0x37293b(0x22b)]();}['close'](){const _0x4700ac=_0x335edf;var _0x468e1a,_0x446210;this['_throwTelemetryCollaborationNewChangeset'](),(_0x468e1a=this[_0x4700ac(0x3f7)])==null||_0x468e1a['send']({'cmd':I[_0x4700ac(0x29b)],'data':{'roomID':this['_unitID']}}),(_0x446210=this[_0x4700ac(0x3f7)])==null||_0x446210[_0x4700ac(0x2d1)](),this[_0x4700ac(0x480)][_0x4700ac(0x22b)](),this[_0x4700ac(0x36f)][_0x4700ac(0x22b)](),this['dispose']();}[_0x335edf(0x2ab)](_0x1c881f){const _0x3dd686=_0x335edf;_0x1c881f['cmd']===I['JOIN']?this[_0x3dd686(0x234)](_0x1c881f):_0x1c881f['cmd']===I[_0x3dd686(0x1f8)]&&this['_onRecvEvent'](_0x1c881f);}[_0x335edf(0x3fd)](_0x17640d){const _0xe7e7c3=_0x335edf;this[_0xe7e7c3(0x36f)][_0xe7e7c3(0x1ab)](0x1),_0x17640d[_0xe7e7c3(0x486)]({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xe7e7c3(0x1d0)]}]}});}[_0x335edf(0x234)](_0x306856){const _0x5763f6=_0x335edf;var _0x55ccc9;if(_0x306856[_0x5763f6(0x3dc)]===kt['FAIL']){this[_0x5763f6(0x26c)][_0x5763f6(0x473)]({'type':_0x4c7fa7[_0x5763f6(0x2f7)],'content':this[_0x5763f6(0x201)]['t'](_0x5763f6(0x1ce))}),this[_0x5763f6(0x36f)]['next'](0x2);return;}this['_sessionStatus$'][_0x5763f6(0x1ab)](0x3);const _0x4d68a6=(_0x55ccc9=_0x306856[_0x5763f6(0x474)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x55ccc9[_0x5763f6(0x405)];_0x4d68a6&&_0x4d68a6[_0x5763f6(0x2c9)](_0x11b18c=>this['_memberService']['updateMember'](this['_unitID'],_0x11b18c));}['_onRecvEvent'](_0x162107){const _0x35905a=_0x335edf;try{const _0x520efb=_0x162107[_0x35905a(0x474)];switch(_0x520efb[_0x35905a(0x345)]){case _0x5bec90[_0x35905a(0x253)]:this['_onUserJoin'](_0x520efb),this[_0x35905a(0x480)][_0x35905a(0x1ab)](_0x520efb);break;case _0x5bec90['USERS_LEAVE']:this[_0x35905a(0x198)](_0x520efb),this[_0x35905a(0x480)][_0x35905a(0x1ab)](_0x520efb);break;case _0x5bec90['CHANGESET_ACK']:this[_0x35905a(0x4c4)](),this[_0x35905a(0x27b)](),this[_0x35905a(0x480)][_0x35905a(0x1ab)](_0x520efb);break;case _0x5bec90[_0x35905a(0x230)]:this[_0x35905a(0x4b8)]['error'](_0x35905a(0x4a7)+JSON[_0x35905a(0x2c0)](_0x520efb)),this[_0x35905a(0x480)][_0x35905a(0x1ab)](_0x520efb);break;case _0x5bec90['COMMENT_UPDATE']:this[_0x35905a(0x16f)][_0x35905a(0x2bc)](_0x520efb[_0x35905a(0x474)]),this[_0x35905a(0x480)][_0x35905a(0x1ab)](_0x520efb);break;default:this[_0x35905a(0x480)][_0x35905a(0x1ab)](_0x520efb);}}catch(_0x29812b){this['_logService']['error'](_0x29812b,_0x162107);}}[_0x335edf(0x448)](_0x1cd664){const _0x5ef56a=_0x335edf;this[_0x5ef56a(0x225)]['updateMember'](this[_0x5ef56a(0x1d0)],_0x1cd664['data']);}[_0x335edf(0x198)](_0x3991f8){const _0x56fc48=_0x335edf;this[_0x56fc48(0x225)][_0x56fc48(0x4ab)](this[_0x56fc48(0x1d0)],_0x3991f8[_0x56fc48(0x474)][_0x56fc48(0x33e)]);}async[_0x335edf(0x486)](_0x4f984e,_0xf0e73){const _0x370a06=_0x335edf;if(this[_0x370a06(0x467)]!==0x3||!this['_socket'])throw new Error(_0x370a06(0x181));try{_0x4f984e[_0x370a06(0x345)]===_0x5bec90[_0x370a06(0x241)]&&(this[_0x370a06(0x22c)](),this[_0x370a06(0x2d3)](_0x4f984e)),this[_0x370a06(0x3f7)][_0x370a06(0x486)]({'cmd':I[_0x370a06(0x292)],'routeKey':_0xf0e73,'routeType':'','data':_0x4f984e});}catch(_0x111244){this[_0x370a06(0x4b8)][_0x370a06(0x417)](_0x111244);}}[_0x335edf(0x22c)](){const _0x14c76e=_0x335edf;var _0x15590b;this[_0x14c76e(0x322)]=window[_0x14c76e(0x32a)](()=>{const _0x34b982=_0x14c76e;this[_0x34b982(0x322)]=null,this['_messageService'][_0x34b982(0x473)]({'type':_0x4c7fa7[_0x34b982(0x3f4)],'content':this[_0x34b982(0x201)]['t'](_0x34b982(0x4b1))});},(_0x15590b=this[_0x14c76e(0x2b5)]['getConfig'](Ns))!=null?_0x15590b:Us);}[_0x335edf(0x27b)](){const _0x490d7b=_0x335edf;this[_0x490d7b(0x322)]&&(clearTimeout(this[_0x490d7b(0x322)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x324685){const _0x15c3eb=_0x335edf;if(!this['_shouldReportTelemetry'])return;const {data:_0x9b9f51}=_0x324685,{unitID:_0x2ef1f9,changeset:_0x564f8e}=_0x9b9f51,{mutations:_0x2cc4d0,type:_0x5c52a8}=_0x564f8e;this['_telemetryInfo']={'unitId':_0x2ef1f9,'type':_0x5c52a8,'startTime':performance[_0x15c3eb(0x17c)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x2cc4d0)};}[_0x335edf(0x4c4)](){const _0x4b1d1e=_0x335edf;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this['_logService'][_0x4b1d1e(0x417)](_0x4b1d1e(0x399),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x4b1d1e(0x444)][_0x4b1d1e(0x455)]=performance[_0x4b1d1e(0x17c)](),this[_0x4b1d1e(0x444)][_0x4b1d1e(0x252)]=this['_telemetryInfo'][_0x4b1d1e(0x455)]-this['_telemetryInfo'][_0x4b1d1e(0x3e6)],this[_0x4b1d1e(0x2f2)][_0x4b1d1e(0x3e3)](jn,this[_0x4b1d1e(0x444)]),this['_telemetryInfo']=null;}}[_0x335edf(0x3e0)](){const _0x2307bb=_0x335edf;this[_0x2307bb(0x444)]=null;}};Ct=Gn([J(0x2,_0x96d163),J(0x3,_0x3b1b38),J(0x4,_0x42071b),J(0x5,_0x19915a),J(0x6,_0x412e01(_0x1c954b)),J(0x7,_0x412e01(ae)),J(0x8,_0x412e01($s)),J(0x9,_0x21427f(_0x462958))],Ct);var Yn=Object['defineProperty'],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x547824,_0x253415,_0x5de855,_0xa7a5ec)=>{const _0x314a41=_0x335edf;for(var _0x51b35c=_0xa7a5ec>0x1?void 0x0:_0xa7a5ec?Kn(_0x253415,_0x5de855):_0x253415,_0x4efb23=_0x547824[_0x314a41(0x2d5)]-0x1,_0x21418d;_0x4efb23>=0x0;_0x4efb23--)(_0x21418d=_0x547824[_0x4efb23])&&(_0x51b35c=(_0xa7a5ec?_0x21418d(_0x253415,_0x5de855,_0x51b35c):_0x21418d(_0x51b35c))||_0x51b35c);return _0xa7a5ec&&_0x51b35c&&Yn(_0x253415,_0x5de855,_0x51b35c),_0x51b35c;},de=(_0x236388,_0x5740ab)=>(_0x41343b,_0x1b5179)=>_0x5740ab(_0x41343b,_0x1b5179,_0x236388);let ce=class extends _0x443103{constructor(_0x25cf14,_0xb0767d,_0x17a07b,_0x1b0646,_0x3ab84c,_0x312562){const _0x3bc7b2=_0x335edf;super(),l(this,_0x3bc7b2(0x1e2),new _0x5b0208(void 0x0)),l(this,'socket$',this[_0x3bc7b2(0x1e2)]['asObservable']()),l(this,_0x3bc7b2(0x38f),null),l(this,'_sessions',new Map()),l(this,_0x3bc7b2(0x477),new _0x5b0208(G[_0x3bc7b2(0x383)])),l(this,_0x3bc7b2(0x28b),this[_0x3bc7b2(0x477)]['asObservable']()),l(this,_0x3bc7b2(0x394),!0x1),l(this,_0x3bc7b2(0x1aa)),l(this,_0x3bc7b2(0x4dc),0x0),l(this,_0x3bc7b2(0x3ac)),l(this,'_timeoutTimer'),(this[_0x3bc7b2(0x32e)]=_0x25cf14,this[_0x3bc7b2(0x201)]=_0xb0767d,this[_0x3bc7b2(0x26c)]=_0x17a07b,this['_logService']=_0x1b0646,this[_0x3bc7b2(0x2b5)]=_0x3ab84c,this[_0x3bc7b2(0x3b8)]=_0x312562,this['_initEventListeners']());}get[_0x335edf(0x3f7)](){const _0x42276c=_0x335edf;return this[_0x42276c(0x1e2)][_0x42276c(0x309)]();}[_0x335edf(0x298)](){const _0x3ec73d=_0x335edf;this[_0x3ec73d(0x21d)](),this[_0x3ec73d(0x3b5)]();}[_0x335edf(0x1b5)](){const _0x3b669e=_0x335edf;super[_0x3b669e(0x1b5)](),this[_0x3b669e(0x2c5)][_0x3b669e(0x2c9)](_0x3f602b=>_0x3f602b['dispose']()),this[_0x3b669e(0x2c5)]['clear'](),this[_0x3b669e(0x477)][_0x3b669e(0x22b)]();}async['requireSession'](_0x23de30){const _0x43865c=_0x335edf;if(this['_sessions'][_0x43865c(0x353)](_0x23de30))return this[_0x43865c(0x2c5)][_0x43865c(0x242)](_0x23de30);this['_tryEnsureSocket']();const _0x40bb15=this[_0x43865c(0x32e)][_0x43865c(0x290)](Ct,_0x23de30,this[_0x43865c(0x1e2)][_0x43865c(0x40b)]());return this[_0x43865c(0x2c5)][_0x43865c(0x3e2)](_0x23de30,_0x40bb15),_0x40bb15;}[_0x335edf(0x306)](_0x13e58b){const _0x59a315=_0x335edf;var _0x11ac2f;const _0x492486=this[_0x59a315(0x2c5)][_0x59a315(0x242)](_0x13e58b);_0x492486&&(this[_0x59a315(0x2c5)][_0x59a315(0x1cb)](_0x13e58b),_0x492486[_0x59a315(0x2d1)]()),this[_0x59a315(0x2c5)][_0x59a315(0x245)]||(_0x11ac2f=this[_0x59a315(0x3f7)])==null||_0x11ac2f['close']();}[_0x335edf(0x4ba)](){const _0x1c2fd7=_0x335edf;this[_0x1c2fd7(0x4dc)]=0x0,this[_0x1c2fd7(0x1aa)]!=null&&(clearTimeout(this[_0x1c2fd7(0x1aa)]),this[_0x1c2fd7(0x1aa)]=null),this[_0x1c2fd7(0x278)]();}[_0x335edf(0x222)](){const _0x4754e4=_0x335edf;var _0x3860cf,_0x2d5d9c;const _0x5247c5=this[_0x4754e4(0x2b5)][_0x4754e4(0x281)](Sn),_0x57c842=this['_configService'][_0x4754e4(0x281)](L),_0x352147=(_0x2d5d9c=(_0x3860cf=_0x57c842==null?void 0x0:_0x57c842[_0x4754e4(0x37d)])!=null?_0x3860cf:_0x5247c5)!=null?_0x2d5d9c:pn,_0x48218d=this[_0x4754e4(0x3b8)][_0x4754e4(0x2df)](_0x352147);return this[_0x4754e4(0x38f)]=_0x48218d,_0x48218d;}[_0x335edf(0x247)](){const _0x4aa6e8=_0x335edf;var _0x3daab3,_0x2eb0e4;try{const _0x11fdda=(_0x2eb0e4=(_0x3daab3=this[_0x4aa6e8(0x3f7)])!=null?_0x3daab3:this[_0x4aa6e8(0x38f)])!=null?_0x2eb0e4:this['_createSocket']();if(_0x11fdda){const _0x2f76aa=_0x11fdda['send'];_0x11fdda[_0x4aa6e8(0x486)]=_0xdfe86c=>(this[_0x4aa6e8(0x2e9)](),_0x2f76aa[_0x4aa6e8(0x264)](_0x11fdda,[_0xdfe86c])),_0x11fdda[_0x4aa6e8(0x4d0)]['subscribe'](_0x33293a=>this[_0x4aa6e8(0x472)](_0x11fdda,_0x33293a)),_0x11fdda['error$'][_0x4aa6e8(0x266)](_0x31959a(0x1))[_0x4aa6e8(0x1bc)](_0x295681=>this[_0x4aa6e8(0x4b8)]['error'](_0x4aa6e8(0x174),_0x295681)),_0x11fdda[_0x4aa6e8(0x407)][_0x4aa6e8(0x266)](_0x31959a(0x1))[_0x4aa6e8(0x1bc)](()=>{this['_onConnectionOpen'](_0x11fdda);}),_0x11fdda['close$'][_0x4aa6e8(0x266)](_0x31959a(0x1))[_0x4aa6e8(0x1bc)](_0xc49b4d=>{const _0x302e53=_0x4aa6e8;this[_0x302e53(0x4b8)][_0x302e53(0x274)](_0x302e53(0x3eb),_0x302e53(0x1ee),_0xc49b4d),this[_0x302e53(0x2b9)]();});}}catch(_0x133298){this['_logService'][_0x4aa6e8(0x417)](_0x133298),this[_0x4aa6e8(0x2b9)]();}}['_onConnectionOpen'](_0x5c1f82){const _0x31c6d0=_0x335edf;this[_0x31c6d0(0x4b8)][_0x31c6d0(0x274)]('[CollaborationSessionService]',_0x31c6d0(0x1da)),_0x5c1f82[_0x31c6d0(0x486)]({'cmd':I[_0x31c6d0(0x240)]}),this[_0x31c6d0(0x2e9)]();}[_0x335edf(0x21d)](){const _0x4158fe=_0x335edf;window[_0x4158fe(0x29d)](_0x4158fe(0x363),()=>this[_0x4158fe(0x276)]());}[_0x335edf(0x276)](){const _0x545411=_0x335edf;this[_0x545411(0x394)]=!0x1,this[_0x545411(0x38f)]=null,this[_0x545411(0x477)][_0x545411(0x1ab)](G['OFFLINE']),this['_socket$'][_0x545411(0x1ab)](null),this[_0x545411(0x2cc)](),this[_0x545411(0x1ec)]();}['_onConnectionFailed'](){const _0x4160be=_0x335edf;var _0x2d1df7;this['_onOffline'](),this[_0x4160be(0x4dc)]<((_0x2d1df7=this[_0x4160be(0x2b5)][_0x4160be(0x281)](Cn))!=null?_0x2d1df7:bn)?(this[_0x4160be(0x26c)][_0x4160be(0x473)]({'key':_0x4160be(0x4cb),'type':_0x4c7fa7['Warning'],'content':this['_localeService']['t'](_0x4160be(0x3d6))}),this[_0x4160be(0x278)]()):this[_0x4160be(0x26c)][_0x4160be(0x473)]({'key':_0x4160be(0x4cb),'type':_0x4c7fa7[_0x4160be(0x3f4)],'content':this[_0x4160be(0x201)]['t'](_0x4160be(0x265))});}[_0x335edf(0x3b5)](){const _0x58ad24=_0x335edf,_0x51d626=()=>{const _0x417df4=_0x1425;this['_socket']||this[_0x417df4(0x4ba)]();},_0xb9254c=()=>{const _0x104d4a=_0x1425;this['_socket']||document[_0x104d4a(0x239)]===_0x104d4a(0x369)||this[_0x104d4a(0x4ba)]();};window[_0x58ad24(0x29d)](_0x58ad24(0x2a9),_0x51d626),document[_0x58ad24(0x29d)](_0x58ad24(0x4db),_0xb9254c);}[_0x335edf(0x278)](){const _0x289021=_0x335edf;var _0x70e6af;const _0x560282=this[_0x289021(0x4dc)],_0x36502c=this[_0x289021(0x2b5)]['getConfig'](L),_0x56a67f=_0x560282===0x0?0x0:((_0x70e6af=_0x36502c==null?void 0x0:_0x36502c[_0x289021(0x1bf)])!=null?_0x70e6af:En)*0x2**_0x560282;this[_0x289021(0x1aa)]=window[_0x289021(0x32a)](()=>{const _0x3ae9cb=_0x289021;clearTimeout(this[_0x3ae9cb(0x1aa)]),this[_0x3ae9cb(0x1aa)]=null,this[_0x3ae9cb(0x247)]();},_0x56a67f),this[_0x289021(0x4dc)]+=0x1;}['_onMessage'](_0x59618,_0x25f695){const _0x4feb2f=_0x335edf,{cmd:_0x4932d3}=_0x25f695;_0x4932d3===I[_0x4feb2f(0x240)]&&!this[_0x4feb2f(0x394)]&&(_0x59618[_0x4feb2f(0x33e)]=_0x25f695[_0x4feb2f(0x474)][_0x4feb2f(0x33e)],this[_0x4feb2f(0x1e2)][_0x4feb2f(0x1ab)](_0x59618),this[_0x4feb2f(0x477)]['next'](G[_0x4feb2f(0x1fa)]),this[_0x4feb2f(0x394)]=!0x0,this[_0x4feb2f(0x38f)]=null),_0x4932d3===I[_0x4feb2f(0x20f)]&&this[_0x4feb2f(0x2cc)](),this[_0x4feb2f(0x2e9)]();}['_rescheduleHeartbeat'](){const _0x24b82a=_0x335edf;var _0x34c9c1;this[_0x24b82a(0x1ec)](),this[_0x24b82a(0x3ac)]=window[_0x24b82a(0x32a)](()=>this[_0x24b82a(0x2a3)](),(_0x34c9c1=this[_0x24b82a(0x2b5)]['getConfig'](vn))!=null?_0x34c9c1:In);}[_0x335edf(0x2a3)](){const _0x1b31fc=_0x335edf;this[_0x1b31fc(0x3f7)]['send']({'cmd':I[_0x1b31fc(0x20f)]}),this[_0x1b31fc(0x267)]();}[_0x335edf(0x267)](){const _0x39317c=_0x335edf;var _0x50c4b8;this[_0x39317c(0x48c)]=window[_0x39317c(0x32a)](()=>this[_0x39317c(0x2b9)](),(_0x50c4b8=this[_0x39317c(0x2b5)][_0x39317c(0x281)](Ns))!=null?_0x50c4b8:Us);}[_0x335edf(0x1ec)](){const _0x3fc04e=_0x335edf;this[_0x3fc04e(0x3ac)]!=null&&(clearTimeout(this[_0x3fc04e(0x3ac)]),this[_0x3fc04e(0x3ac)]=null);}[_0x335edf(0x2cc)](){const _0x585deb=_0x335edf;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x585deb(0x48c)]),this['_timeoutTimer']=null);}};ce=Xn([de(0x0,_0x412e01(_0x5df9be)),de(0x1,_0x412e01(_0x1c954b)),de(0x2,_0x42071b),de(0x3,_0x96d163),de(0x4,_0x19915a),de(0x5,Ls)],ce);var Jn=Object[_0x335edf(0x226)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x16a0a6,_0x3b66db,_0x4f1c6e,_0x3ca2b8)=>{const _0x52b0de=_0x335edf;for(var _0x521779=_0x3ca2b8>0x1?void 0x0:_0x3ca2b8?qn(_0x3b66db,_0x4f1c6e):_0x3b66db,_0x1ef91a=_0x16a0a6[_0x52b0de(0x2d5)]-0x1,_0x40eb3e;_0x1ef91a>=0x0;_0x1ef91a--)(_0x40eb3e=_0x16a0a6[_0x1ef91a])&&(_0x521779=(_0x3ca2b8?_0x40eb3e(_0x3b66db,_0x4f1c6e,_0x521779):_0x40eb3e(_0x521779))||_0x521779);return _0x3ca2b8&&_0x521779&&Jn(_0x3b66db,_0x4f1c6e,_0x521779),_0x521779;},ct=(_0x256dd1,_0x5b977f)=>(_0x2b8dc0,_0x933633)=>_0x5b977f(_0x2b8dc0,_0x933633,_0x256dd1);let Ye=class{constructor(_0x56b0a6,_0x142105,_0x4fe7c0){const _0x522148=_0x335edf;this[_0x522148(0x32e)]=_0x56b0a6,this['_transformService']=_0x142105,this[_0x522148(0x331)]=_0x4fe7c0;}[_0x335edf(0x2c4)](_0x30f4e3){const _0x4cbab2=_0x335edf;this[_0x4cbab2(0x40e)](_0x30f4e3),this['_transformPreviousActiveRange'](_0x30f4e3);}['transformRemoteChangeset'](_0x2f7997){const _0x20f91a=_0x335edf,{unitID:_0x24d4db}=_0x2f7997,_0x307817=this[_0x20f91a(0x331)]['getRenderById'](_0x24d4db)[_0x20f91a(0x343)](_0x2a09b2),{redoCache:_0x5de314}=_0x307817[_0x20f91a(0x378)]();if(_0x5de314[_0x20f91a(0x2d5)]===0x0)return _0x2f7997;let _0x2e1762=_0x39831b['deepClone'](_0x2f7997[_0x20f91a(0x294)][0x0]);for(let _0x109b79=0x0;_0x109b79<_0x5de314[_0x20f91a(0x2d5)];_0x109b79++){const _0x5226c8={'id':'doc.mutation.rich-text-editing','params':{..._0x5de314[_0x109b79]}},_0x3b49df=this[_0x20f91a(0x184)][_0x20f91a(0x1c7)](_0x2e1762,_0x5226c8,!0x1);if(_0x5ef866(_0x3b49df))throw _0x3b49df[_0x20f91a(0x417)];_0x2e1762=_0x3b49df[_0x20f91a(0x408)];}return{..._0x39831b[_0x20f91a(0x273)](_0x2f7997),'mutations':[_0x2e1762]};}[_0x335edf(0x40e)](_0x5bf857){const _0x3d0767=_0x335edf,{unitID:_0xe0bc83}=_0x5bf857,_0x40b0a2=this[_0x3d0767(0x331)]['getRenderById'](_0xe0bc83)[_0x3d0767(0x343)](_0x2a09b2),{undoCache:_0x41c1d7,redoCache:_0x5405fa}=_0x40b0a2[_0x3d0767(0x378)]();if(_0x41c1d7[_0x3d0767(0x2d5)]===0x0||_0x5405fa['length']===0x0)return;const _0x1643d1=[],_0x4f2984=[];let _0x588811=_0x39831b[_0x3d0767(0x273)](_0x5bf857[_0x3d0767(0x294)][0x0]),_0x174d20=_0x39831b[_0x3d0767(0x273)](_0x5bf857[_0x3d0767(0x294)][0x0]);for(let _0x2e83c1=_0x41c1d7['length']-0x1;_0x2e83c1>=0x0;_0x2e83c1--){const _0x52c6e5={'id':'doc.mutation.rich-text-editing','params':{..._0x41c1d7[_0x2e83c1]}},_0x474b27={'id':_0x3d0767(0x438),'params':{..._0x5405fa[_0x2e83c1]}},_0x1911bd=this[_0x3d0767(0x184)]['transformMutation'](_0x588811,_0x52c6e5,!0x1),_0x39004b=this['_transformService']['transformMutation'](_0x174d20,_0x474b27,!0x1);if(_0x5ef866(_0x1911bd))throw _0x1911bd['error'];if(_0x5ef866(_0x39004b))throw _0x39004b[_0x3d0767(0x417)];_0x1643d1[_0x3d0767(0x428)](_0x1911bd['m2Prime']['params']),_0x4f2984[_0x3d0767(0x428)](_0x39004b[_0x3d0767(0x1cd)][_0x3d0767(0x27e)]),_0x588811=_0x1911bd[_0x3d0767(0x408)],_0x174d20=_0x39004b[_0x3d0767(0x408)];}_0x40b0a2[_0x3d0767(0x47c)]({'undoCache':_0x1643d1,'redoCache':_0x4f2984});}[_0x335edf(0x29a)](_0x397fee){const _0x57da8c=_0x335edf,{unitID:_0x570e73}=_0x397fee,_0x2a9e17=this[_0x57da8c(0x331)][_0x57da8c(0x24f)](_0x570e73)[_0x57da8c(0x343)](_0x2a09b2),_0xbda75e=_0x2a9e17[_0x57da8c(0x2f8)]();if(_0xbda75e==null)return;const _0x175696=[{'id':_0x57da8c(0x438),'params':{'unitId':_0x397fee[_0x57da8c(0x2a6)],'actions':null,'textRanges':[_0xbda75e]}}],_0x1c5bf2=this[_0x57da8c(0x184)][_0x57da8c(0x170)](_0x397fee,_0x175696);if(!_0x1199e4(_0x1c5bf2))throw _0x1c5bf2[_0x57da8c(0x417)];const _0x1a004b=_0x1c5bf2[_0x57da8c(0x1cd)][0x0][_0x57da8c(0x27e)][_0x57da8c(0x490)];Array[_0x57da8c(0x456)](_0x1a004b)&&_0x1a004b['length']&&_0x2a9e17[_0x57da8c(0x26a)](_0x1a004b[0x0]);}};Ye=zn([ct(0x0,_0x412e01(_0x5df9be)),ct(0x1,_0x245d4a),ct(0x2,_0x3469bd)],Ye);var Zn=Object[_0x335edf(0x226)],Qn=Object[_0x335edf(0x2e4)],er=(_0x4cbfa3,_0x291576,_0x447d82,_0x441fb0)=>{for(var _0x23353a=_0x441fb0>0x1?void 0x0:_0x441fb0?Qn(_0x291576,_0x447d82):_0x291576,_0x55b539=_0x4cbfa3['length']-0x1,_0x3ffa56;_0x55b539>=0x0;_0x55b539--)(_0x3ffa56=_0x4cbfa3[_0x55b539])&&(_0x23353a=(_0x441fb0?_0x3ffa56(_0x291576,_0x447d82,_0x23353a):_0x3ffa56(_0x23353a))||_0x23353a);return _0x441fb0&&_0x23353a&&Zn(_0x291576,_0x447d82,_0x23353a),_0x23353a;},Oe=(_0x2b13a3,_0xb87a08)=>(_0x593d93,_0x138c42)=>_0xb87a08(_0x593d93,_0x138c42,_0x2b13a3);let D=class extends _0x443103{constructor(_0x17b613,_0x55ba8a,_0x5ac762,_0x473323,_0x5c738a){const _0x63693b=_0x335edf;super(),l(this,_0x63693b(0x2b6),new Map()),l(this,_0x63693b(0x190),new Map()),l(this,'_disabled',!0x1),(this[_0x63693b(0x2b5)]=_0x17b613,this[_0x63693b(0x2a0)]=_0x55ba8a,this[_0x63693b(0x28c)]=_0x5ac762,this[_0x63693b(0x201)]=_0x473323,this[_0x63693b(0x3c3)]=_0x5c738a,this[_0x63693b(0x16d)]());}[_0x335edf(0x349)](){const _0x7d9c1a=_0x335edf;this[_0x7d9c1a(0x1dd)]=!0x0;}['enableLocalCache'](){const _0x4bcc92=_0x335edf;this[_0x4bcc92(0x1dd)]=!0x1;}[_0x335edf(0x1b5)](){const _0x4e8edc=_0x335edf;this['exhaustSavingTask']()['then'](()=>super[_0x4e8edc(0x1b5)]());}async[_0x335edf(0x314)](_0x153ff6){const _0xb99c04=_0x335edf;return this['_disabled']?null:this[_0xb99c04(0x2a0)][_0xb99c04(0x262)](os(_0x153ff6));}async[_0x335edf(0x4a6)](_0x175585,_0x2a6d20){const _0x2bc1df=_0x335edf;return!!this['_localStorageService'][_0x2bc1df(0x4bf)](_0x175585,_0x2a6d20);}[_0x335edf(0x3f0)](_0x5f4535,_0x26baab,_0x25dca1,_0x214d8a){const _0x5676ee=_0x335edf,_0x309c0f=this[_0x5676ee(0x3c3)]['getCurrentRevOfUnit'](_0x5f4535);this['_cachedData'][_0x5676ee(0x3e2)](_0x5f4535,{'unitID':_0x5f4535,'type':_0x26baab,'awaitingChangeset':_0x25dca1,'mutations':_0x214d8a,'rev':_0x309c0f}),this[_0x5676ee(0x190)][_0x5676ee(0x353)](_0x5f4535)||this[_0x5676ee(0x171)](_0x5f4535);}['_scheduleSaving'](_0x758cdb){const _0x30291c=_0x335edf,_0xb2a998=this[_0x30291c(0x332)]();_0xb2a998===0x0?this[_0x30291c(0x324)](_0x758cdb):this[_0x30291c(0x190)]['set'](_0x758cdb,setTimeout(()=>this[_0x30291c(0x324)](_0x758cdb),_0xb2a998));}[_0x335edf(0x332)](){const _0x455d96=_0x335edf;var _0x204c88;return(_0x204c88=this[_0x455d96(0x2b5)][_0x455d96(0x281)](Tn))!=null?_0x204c88:Rn;}[_0x335edf(0x324)](_0x2bcfb6){const _0x4093fe=_0x335edf,_0x1facd9=this[_0x4093fe(0x190)][_0x4093fe(0x242)](_0x2bcfb6);return _0x1facd9!==void 0x0&&window[_0x4093fe(0x4b3)](_0x1facd9),this[_0x4093fe(0x2a0)][_0x4093fe(0x4bf)](os(_0x2bcfb6),this[_0x4093fe(0x2b6)][_0x4093fe(0x242)](_0x2bcfb6))['then'](()=>this[_0x4093fe(0x190)][_0x4093fe(0x1cb)](_0x2bcfb6));}async[_0x335edf(0x49e)](){const _0x5a327d=_0x335edf,_0x460d71=[];this[_0x5a327d(0x190)][_0x5a327d(0x2c9)]((_0x2214eb,_0x961ef2)=>{const _0x2796c6=_0x5a327d;window['clearTimeout'](_0x2214eb),_0x460d71[_0x2796c6(0x3ed)](this[_0x2796c6(0x324)](_0x961ef2)[_0x2796c6(0x3ca)](()=>{this['_saveTaskMap']['delete'](_0x961ef2);}));}),await Promise[_0x5a327d(0x30a)](_0x460d71);}[_0x335edf(0x16d)](){const _0x3a2657=_0x335edf;this[_0x3a2657(0x33b)](this[_0x3a2657(0x28c)]['registerBeforeClose'](()=>{const _0x39e896=_0x3a2657;if(this[_0x39e896(0x190)][_0x39e896(0x245)])return this[_0x39e896(0x201)]['t'](_0x39e896(0x296));}));}};D=er([Oe(0x0,_0x19915a),Oe(0x1,_0x5e1cfc),Oe(0x2,_0x3b1b38),Oe(0x3,_0x412e01(_0x1c954b)),Oe(0x4,_0x412e01(_0x52844f))],D);function os(_0x4c4b3c){const _0x536a1d=_0x335edf;return _0x536a1d(0x31d)+_0x4c4b3c;}var tr=Object[_0x335edf(0x226)],sr=Object[_0x335edf(0x2e4)],ir=(_0x500ad3,_0x5ab295,_0x3e0b25,_0xc8b185)=>{const _0x46204b=_0x335edf;for(var _0x575021=_0xc8b185>0x1?void 0x0:_0xc8b185?sr(_0x5ab295,_0x3e0b25):_0x5ab295,_0x51d1b2=_0x500ad3[_0x46204b(0x2d5)]-0x1,_0x541672;_0x51d1b2>=0x0;_0x51d1b2--)(_0x541672=_0x500ad3[_0x51d1b2])&&(_0x575021=(_0xc8b185?_0x541672(_0x5ab295,_0x3e0b25,_0x575021):_0x541672(_0x575021))||_0x575021);return _0xc8b185&&_0x575021&&tr(_0x5ab295,_0x3e0b25,_0x575021),_0x575021;},ht=(_0x2faf2,_0xad6b77)=>(_0x7a7403,_0x1d6f34)=>_0xad6b77(_0x7a7403,_0x1d6f34,_0x2faf2);function nr(_0x20e76d){const _0x24b7c7=_0x335edf,{unitID:_0x5f4dda,mutations:_0x371aee}=_0x20e76d;return{'unitId':_0x5f4dda,'subUnitId':_0x371aee[0x0]['params'][_0x24b7c7(0x48e)]};}let Ke=class{constructor(_0x14ff31,_0x1739c3,_0x2109c6){const _0x1d940f=_0x335edf;this[_0x1d940f(0x32e)]=_0x14ff31,this[_0x1d940f(0x184)]=_0x1739c3,this['_instanceService']=_0x2109c6;}[_0x335edf(0x4cc)](_0x32acb6){const _0x3c1e59=_0x335edf;var _0x33bb92,_0x5e4f6e,_0x102ea3,_0x55ec6b;const _0x567880=this[_0x3c1e59(0x32e)][_0x3c1e59(0x242)](_0x5a4af5),{unitId:_0x5a13a7,subUnitId:_0x38d7ad}=nr(_0x32acb6),_0x2e8177=_0x567880[_0x3c1e59(0x1f0)](_0x5a13a7)['getCurrentSelections'](),_0xa597fc=(_0x5e4f6e=(_0x33bb92=this[_0x3c1e59(0x34a)][_0x3c1e59(0x4d1)](_0x5a13a7))==null?void 0x0:_0x33bb92['getActiveSheet']())==null?void 0x0:_0x5e4f6e['getSheetId']();if(_0x2e8177[_0x3c1e59(0x2d5)]===0x0||!_0x5a13a7||!_0x38d7ad)return;const _0x45128a=[{'id':_0x90af15['id'],'params':{'unitId':_0x5a13a7,'subUnitId':_0xa597fc,'selections':_0x39831b[_0x3c1e59(0x273)](_0x2e8177)}}],_0x3238e3=this['_transformService']['transformMutationsWithChangeset'](_0x32acb6,_0x45128a);if(!_0x1199e4(_0x3238e3))throw _0x3238e3[_0x3c1e59(0x417)];const _0xefc7aa=(_0x55ec6b=(_0x102ea3=_0x3238e3[_0x3c1e59(0x1cd)][0x0])==null?void 0x0:_0x102ea3[_0x3c1e59(0x27e)])==null?void 0x0:_0x55ec6b[_0x3c1e59(0x34e)];Array[_0x3c1e59(0x456)](_0xefc7aa)&&_0xefc7aa[_0x3c1e59(0x2d5)]&&this['_injector'][_0x3c1e59(0x242)](_0x5ad0bf)[_0x3c1e59(0x38b)](_0x90af15['id'],{'unitId':_0x5a13a7,'subUnitId':_0xa597fc,'selections':_0xefc7aa});}};Ke=ir([ht(0x0,_0x412e01(_0x5df9be)),ht(0x1,_0x245d4a),ht(0x2,_0x2bb140)],Ke);const tt=_0x2bd96a(_0x335edf(0x41f));var js=(_0x219148=>(_0x219148[_0x219148[_0x335edf(0x26e)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x219148[_0x219148[_0x335edf(0x3ee)]=0x1]=_0x335edf(0x3ee),_0x219148))(js||{});const as=0x7530,cs=_0x335edf(0x304);class rr extends _0x443103{constructor(){const _0x56fa52=_0x335edf;super(),l(this,_0x56fa52(0x494),_0x39831b[_0x56fa52(0x16e)]()),l(this,_0x56fa52(0x381),new Set()),l(this,'_unitOnClients',new Map()),l(this,'_heartbeatTimer',null),l(this,_0x56fa52(0x1e1),new Map()),l(this,'_unitStatus',new Map()),this['_init']();}[_0x335edf(0x1b5)](){const _0x5da43a=_0x335edf;super['dispose'](),this['_clearOtherTimers'][_0x5da43a(0x2c9)]((_0x1f1471,_0x46501f)=>this[_0x5da43a(0x33d)](_0x46501f)),this['_heartbeatTimer']&&window[_0x5da43a(0x462)](this[_0x5da43a(0x1ad)]);}['getUnitStatus$'](_0xe5b5e1){const _0x387499=_0x335edf;return this[_0x387499(0x28e)](_0xe5b5e1)[_0x387499(0x266)](_0x1fbf91());}[_0x335edf(0x17e)](_0x4f6b50){const _0x4d11fa=_0x335edf;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x4d11fa(0x4ce)](_0x4f6b50),this[_0x4d11fa(0x192)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x4f6b50],'isForwarded':!0x1});}['disposeUnit'](_0x4f3cb2){const _0x5df9e6=_0x335edf;this[_0x5df9e6(0x381)][_0x5df9e6(0x1cb)](_0x4f3cb2),this['_selfUnitIDs'][_0x5df9e6(0x245)]===0x0&&this[_0x5df9e6(0x1ad)]&&window[_0x5df9e6(0x462)](this['_heartbeatTimer']);}[_0x335edf(0x1e9)](){const _0x180e0d=_0x335edf;this[_0x180e0d(0x33b)](_0x1afe37(_0x433ac3(window,_0x180e0d(0x2b4))[_0x180e0d(0x1bc)](_0x48bdd8=>{const _0x5a250b=_0x180e0d;if(_0x48bdd8['key']!==cs||!_0x48bdd8[_0x5a250b(0x47d)])return;const _0x454158=JSON[_0x5a250b(0x4d6)](_0x48bdd8[_0x5a250b(0x47d)]);this[_0x5a250b(0x217)](_0x454158);}))),window[_0x180e0d(0x29d)](_0x180e0d(0x45c),()=>this[_0x180e0d(0x192)]({'type':0x1,'memberID':this[_0x180e0d(0x494)],'unitIDs':Array[_0x180e0d(0x3cb)](this[_0x180e0d(0x381)])}));}[_0x335edf(0x217)](_0x446693){const _0x18e961=_0x335edf;switch(_0x446693[_0x18e961(0x1db)]){case 0x0:this['_handleJoinEvent'](_0x446693);break;case 0x1:this['_handleLeaveEvent'](_0x446693);break;case 0x2:this[_0x18e961(0x18a)](_0x446693);break;}}[_0x335edf(0x255)](_0x31c582){const _0x2bd6fa=_0x335edf,{unitIDs:_0x2cbf0f,memberID:_0x428721,isForwarded:_0x406d90}=_0x31c582;_0x2cbf0f[_0x2bd6fa(0x2c9)](_0x2437e6=>{const _0x19ac16=_0x2bd6fa;if(!_0x406d90&&this[_0x19ac16(0x186)][_0x19ac16(0x353)](_0x2437e6)&&this[_0x19ac16(0x28e)](_0x2437e6)[_0x19ac16(0x1ab)](0x1),!this[_0x19ac16(0x186)][_0x19ac16(0x353)](_0x2437e6)||!this['_unitOnClients']['get'](_0x2437e6)[_0x19ac16(0x353)](_0x428721)){const _0x128fe9=this['_unitOnClients'][_0x19ac16(0x242)](_0x2437e6)||new Set();_0x128fe9[_0x19ac16(0x4ce)](_0x428721),this['_unitOnClients']['set'](_0x2437e6,_0x128fe9),this[_0x19ac16(0x450)](_0x428721);}}),_0x406d90||this['_send']({'type':0x0,'memberID':this[_0x2bd6fa(0x494)],'unitIDs':[...this[_0x2bd6fa(0x381)]],'isForwarded':!0x0});}[_0x335edf(0x450)](_0x4ea5c8){const _0x446cab=_0x335edf;this[_0x446cab(0x33d)](_0x4ea5c8);const _0x42cf4e=window[_0x446cab(0x32a)](()=>{const _0x52bf9c=_0x446cab;this[_0x52bf9c(0x186)][_0x52bf9c(0x2c9)](_0x2ac332=>{const _0x43ead1=_0x52bf9c;_0x2ac332[_0x43ead1(0x1cb)](_0x4ea5c8);});},as*0x2);this[_0x446cab(0x1e1)][_0x446cab(0x3e2)](_0x4ea5c8,_0x42cf4e);}[_0x335edf(0x33d)](_0x4a5336){const _0x22ebe5=_0x335edf;if(this[_0x22ebe5(0x1e1)][_0x22ebe5(0x353)](_0x4a5336)){const _0x78efd3=this[_0x22ebe5(0x1e1)]['get'](_0x4a5336);_0x78efd3&&window[_0x22ebe5(0x4b3)](_0x78efd3),this[_0x22ebe5(0x1e1)][_0x22ebe5(0x3e2)](_0x4a5336,null);}}[_0x335edf(0x396)](_0x3db13e){const _0x26337b=_0x335edf,{memberID:_0x3fa79e,unitIDs:_0x371814}=_0x3db13e;_0x371814[_0x26337b(0x2c9)](_0x45738c=>{const _0x21e001=_0x26337b;var _0x38c4a8;const _0x5ed44e=this['_unitOnClients'][_0x21e001(0x242)](_0x45738c);_0x5ed44e&&(_0x5ed44e[_0x21e001(0x1cb)](_0x3fa79e),(_0x38c4a8=this['_ensureSubject'](_0x45738c))==null||_0x38c4a8[_0x21e001(0x1ab)](_0x5ed44e[_0x21e001(0x245)]===0x0?0x0:0x1));}),this[_0x26337b(0x33d)](_0x3fa79e);}[_0x335edf(0x18a)](_0x1821d1){const _0x77ea4=_0x335edf;this['_scheduleClearOtherTimer'](_0x1821d1[_0x77ea4(0x33e)]);}[_0x335edf(0x192)](_0x3cd5b7){const _0x4e38c1=_0x335edf;localStorage[_0x4e38c1(0x4bf)](cs,JSON[_0x4e38c1(0x2c0)](_0x3cd5b7));}['_scheduleHeartbeat'](){const _0xcd3865=_0x335edf;this[_0xcd3865(0x1ad)]=window[_0xcd3865(0x2ef)](()=>{const _0x40f5f0=_0xcd3865;this[_0x40f5f0(0x192)]({'type':0x2,'memberID':this[_0x40f5f0(0x494)]});},as);}[_0x335edf(0x28e)](_0x2863f4){const _0x36c719=_0x335edf;return this[_0x36c719(0x2f9)][_0x36c719(0x353)](_0x2863f4)||this[_0x36c719(0x2f9)][_0x36c719(0x3e2)](_0x2863f4,new _0x5b0208(0x0)),this[_0x36c719(0x2f9)][_0x36c719(0x242)](_0x2863f4);}}function xs(_0x2ffc20){const _0x587df3=_0x335edf;let _0x2826b4='';for(const _0x59cec8 of _0x2ffc20){const {startOffset:_0x447ec2,endOffset:_0x5429d8,isActive:_0x3d3b6b}=_0x59cec8;_0x2826b4[_0x587df3(0x2d5)]&&(_0x2826b4+=','),_0x2826b4+=_0x447ec2+':'+_0x5429d8+':'+(_0x3d3b6b?'1':'0');}return _0x2826b4;}function or(_0x341b89){const _0x28ab20=_0x335edf,_0x2a4e25=_0x341b89['split'](','),_0x1bc8f8=[];for(const _0x233b79 of _0x2a4e25){const [_0x23faa9,_0x55d45d,_0x57262a]=_0x233b79['split'](':');_0x1bc8f8[_0x28ab20(0x3ed)]({'startOffset':Number(_0x23faa9),'endOffset':Number(_0x55d45d),'collapsed':_0x23faa9===_0x55d45d,'isActive':_0x57262a==='1'});}return _0x1bc8f8['some'](_0x23c397=>_0x23c397[_0x28ab20(0x207)])||(_0x1bc8f8[0x0][_0x28ab20(0x207)]=!0x0),_0x1bc8f8;}class Bt extends _0x832c1b{constructor(){const _0x16aebe=_0x335edf;super(...arguments),l(this,_0x16aebe(0x3f9),new _0x5b0208(null)),l(this,_0x16aebe(0x250),this['_collabCursorState$'][_0x16aebe(0x40b)]());}[_0x335edf(0x404)](_0x4c5e1f){const _0x5cc7f5=_0x335edf,{unitID:_0x16bea5,memberID:_0x53cace,textRanges:_0x51803a}=_0x4c5e1f,_0x4238c6=xs(_0x51803a),_0x137d8d={'unitID':_0x16bea5,'memberID':_0x53cace,'selection':_0x4238c6};this[_0x5cc7f5(0x3f9)][_0x5cc7f5(0x1ab)](_0x137d8d);}}var ar=Object['defineProperty'],cr=Object[_0x335edf(0x2e4)],hr=(_0x3ab45a,_0x4b7f2b,_0x4aef44,_0x2147c4)=>{const _0x4f3853=_0x335edf;for(var _0x5b9f79=_0x2147c4>0x1?void 0x0:_0x2147c4?cr(_0x4b7f2b,_0x4aef44):_0x4b7f2b,_0x9c409=_0x3ab45a[_0x4f3853(0x2d5)]-0x1,_0x5b09e3;_0x9c409>=0x0;_0x9c409--)(_0x5b09e3=_0x3ab45a[_0x9c409])&&(_0x5b9f79=(_0x2147c4?_0x5b09e3(_0x4b7f2b,_0x4aef44,_0x5b9f79):_0x5b09e3(_0x5b9f79))||_0x5b9f79);return _0x2147c4&&_0x5b9f79&&ar(_0x4b7f2b,_0x4aef44,_0x5b9f79),_0x5b9f79;},hs=(_0x28d3b2,_0x4f2888)=>(_0x203e06,_0x23934c)=>_0x4f2888(_0x203e06,_0x23934c,_0x28d3b2);let Xe=class{constructor(_0x3e4235,_0x59e045){const _0x7950e2=_0x335edf;this['_injector']=_0x3e4235,this[_0x7950e2(0x184)]=_0x59e045;}['transformSelections'](_0x338349){const _0x1ea0c0=_0x335edf;var _0x38a123;const _0x49da6a=this[_0x1ea0c0(0x32e)]['get'](_0x394a55),_0x2455d8=(_0x38a123=_0x49da6a['getDocRanges']())!=null?_0x38a123:[];if(_0x2455d8['length']===0x0)return;const _0xd05d8a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x338349[_0x1ea0c0(0x2a6)],'actions':null,'textRanges':_0x2455d8}}],_0x48e05a=this['_transformService'][_0x1ea0c0(0x170)](_0x338349,_0xd05d8a);if(!_0x1199e4(_0x48e05a))throw _0x48e05a[_0x1ea0c0(0x417)];const _0x240a43=_0x48e05a['m2Prime'][0x0][_0x1ea0c0(0x27e)][_0x1ea0c0(0x490)];Array['isArray'](_0x240a43)&&_0x240a43['length']&&_0x49da6a[_0x1ea0c0(0x302)](_0x240a43,!0x1);}};Xe=hr([hs(0x0,_0x412e01(_0x5df9be)),hs(0x1,_0x245d4a)],Xe);const lr=new Set([_0x520cd5['id']]);function ls(_0x518cd9,_0x510c73,_0x276ff1,_0x2bd9b7,_0x175a5c){const _0xa4fa82=_0x335edf;var _0x42c7aa,_0x2a229d,_0x1dff47,_0x32dafc;const _0xed7a58=[];for(const _0x4a414f of _0x518cd9)if(lr[_0xa4fa82(0x353)](_0x4a414f['id'])){if(_0xed7a58[_0xa4fa82(0x2d5)]>0x0)break;_0xed7a58[_0xa4fa82(0x3ed)](_0x4a414f);break;}else _0xed7a58[_0xa4fa82(0x3ed)](_0x4a414f);const _0x64e56a=(_0x2a229d=(_0x42c7aa=_0x175a5c[_0xa4fa82(0x183)]())==null?void 0x0:_0x42c7aa['userID'])!=null?_0x2a229d:_0xa4fa82(0x403),_0x337078=(_0x32dafc=(_0x1dff47=_0x175a5c[_0xa4fa82(0x183)]())==null?void 0x0:_0x1dff47[_0xa4fa82(0x33e)])!=null?_0x32dafc:_0xa4fa82(0x403);return{'changeset':{'unitID':_0x510c73,'type':_0x13132a(_0x276ff1[_0xa4fa82(0x1a4)](_0x510c73)),'baseRev':_0x2bd9b7[_0xa4fa82(0x1bd)](_0x510c73),'revision':0x0,'userID':_0x64e56a,'memberID':_0x337078,'mutations':_0xed7a58},'pendingMutations':_0x518cd9[_0xa4fa82(0x457)](_0xed7a58[_0xa4fa82(0x2d5)])};}function _r(_0x1b1474,_0x3dafd3,_0x53e628,_0x4b4f7f,_0x24049e){const _0x15a990=_0x335edf;var _0x3de5f9,_0x3145fb,_0x1a6300,_0x26e1ce;const _0xf13aee=[_0x1b1474[_0x15a990(0x3d8)]((_0x457ce5,_0x67298e)=>{const _0x284444=_0x15a990;var _0x2b9edb;const {id:_0xbe90d4}=_0x457ce5,{id:_0x377884,type:_0x1fe440}=_0x67298e,_0x9b2dd5=(_0x2b9edb=_0x457ce5[_0x284444(0x27e)])!=null?_0x2b9edb:{'actions':null},_0x2ee773=_0x67298e[_0x284444(0x27e)];if(_0xbe90d4&&_0xbe90d4!==_0x377884)throw new Error(_0x284444(0x475)+_0xbe90d4+_0x284444(0x44e)+_0x377884+'.');return{..._0x457ce5,'id':_0x377884,'type':_0x1fe440,'params':{'unitId':_0x2ee773[_0x284444(0x214)],'textRanges':_0x2ee773[_0x284444(0x490)],'actions':_0x527749[_0x284444(0x4cd)](_0x9b2dd5[_0x284444(0x18d)],_0x2ee773['actions'])}};},{})],_0x16feda=(_0x3145fb=(_0x3de5f9=_0x24049e['getCurrentUser']())==null?void 0x0:_0x3de5f9[_0x15a990(0x3d5)])!=null?_0x3145fb:_0x15a990(0x403),_0x525c9e=(_0x26e1ce=(_0x1a6300=_0x24049e[_0x15a990(0x183)]())==null?void 0x0:_0x1a6300[_0x15a990(0x33e)])!=null?_0x26e1ce:'unknown';return{'changeset':{'unitID':_0x3dafd3,'type':_0x13132a(_0x53e628[_0x15a990(0x1a4)](_0x3dafd3)),'baseRev':_0x4b4f7f['getCurrentRevOfUnit'](_0x3dafd3),'revision':0x0,'userID':_0x16feda,'memberID':_0x525c9e,'mutations':_0xf13aee},'pendingMutations':[]};}const ur={'id':_0x78612e['id'],'type':_0x46033a[_0x335edf(0x229)],'params':{}};var dr=Object['defineProperty'],fr=Object[_0x335edf(0x2e4)],le=(_0x30af75,_0x597d6f,_0x56b40a,_0x5b30a1)=>{const _0x7d7741=_0x335edf;for(var _0x4770b2=_0x5b30a1>0x1?void 0x0:_0x5b30a1?fr(_0x597d6f,_0x56b40a):_0x597d6f,_0x31b01d=_0x30af75[_0x7d7741(0x2d5)]-0x1,_0x506d41;_0x31b01d>=0x0;_0x31b01d--)(_0x506d41=_0x30af75[_0x31b01d])&&(_0x4770b2=(_0x5b30a1?_0x506d41(_0x597d6f,_0x56b40a,_0x4770b2):_0x506d41(_0x4770b2))||_0x4770b2);return _0x5b30a1&&_0x4770b2&&dr(_0x597d6f,_0x56b40a,_0x4770b2),_0x4770b2;},m=(_0x233f6e,_0x3b19db)=>(_0x218eec,_0x132067)=>_0x3b19db(_0x218eec,_0x132067,_0x233f6e),w=(_0x35675b=>(_0x35675b['NOT_COLLAB']=_0x335edf(0x42c),_0x35675b['SYNCED']=_0x335edf(0x2e3),_0x35675b[_0x335edf(0x341)]=_0x335edf(0x411),_0x35675b['AWAITING']=_0x335edf(0x200),_0x35675b[_0x335edf(0x484)]=_0x335edf(0x437),_0x35675b['FETCH_MISS']=_0x335edf(0x1ae),_0x35675b['CONFLICT']='conflict',_0x35675b[_0x335edf(0x1b3)]=_0x335edf(0x363),_0x35675b))(w||{});class _e{constructor(_0x35164a,_0x44f014,_0x3ec5fe,_0x2c438e,_0x569eb9,_0x6c2a92,_0x1c7262,_0x3e8e04,_0x226f57){const _0xb9039a=_0x335edf;l(this,'_awaitingChangeset',null),l(this,_0xb9039a(0x28d),[]),(this[_0xb9039a(0x2a6)]=_0x35164a,this[_0xb9039a(0x1db)]=_0x44f014,this[_0xb9039a(0x1ba)]=_0x569eb9,this[_0xb9039a(0x1ea)]=_0x6c2a92,this[_0xb9039a(0x1cc)]=_0x1c7262,this[_0xb9039a(0x3c3)]=_0x3e8e04,this[_0xb9039a(0x3ad)]=_0x226f57,this[_0xb9039a(0x459)]=_0x3ec5fe,this[_0xb9039a(0x28d)]=_0x2c438e);}[_0x335edf(0x338)](_0x333c89){const _0x31b887=_0x335edf,_0x556d17=this[_0x31b887(0x3c3)][_0x31b887(0x1bd)](this[_0x31b887(0x2a6)]);return _0x333c89['revision']>_0x556d17+0x1?(this['_handler'][_0x31b887(0x195)]({'from':_0x556d17,'to':_0x333c89[_0x31b887(0x3d9)]-0x1}),!0x0):!0x1;}[_0x335edf(0x3be)](_0x34abf5){const _0x6a7950=_0x335edf;this['_undoRedoService'][_0x6a7950(0x38e)](this[_0x6a7950(0x2a6)],_0x34abf5);}[_0x335edf(0x188)](_0x51e25e){const _0x3f8216=_0x335edf;var _0x37098f,_0x4428a3;(_0x4428a3=(_0x37098f=this['_handler'])[_0x3f8216(0x1f2)])==null||_0x4428a3[_0x3f8216(0x2e5)](_0x37098f,_0x51e25e);}['_transformIMECache'](_0x1d69b9){const _0x34f559=_0x335edf;var _0x5a6784,_0x4fb499;return(_0x4fb499=(_0x5a6784=this['_handler'])[_0x34f559(0x2af)])==null?void 0x0:_0x4fb499[_0x34f559(0x2e5)](_0x5a6784,_0x1d69b9);}[_0x335edf(0x173)](_0xf15da6){const _0xccdb9=_0x335edf;var _0x3aaba6,_0x32cfa4,_0x2041bb;return(_0x2041bb=(_0x32cfa4=(_0x3aaba6=this[_0xccdb9(0x1ba)])[_0xccdb9(0x416)])==null?void 0x0:_0x32cfa4[_0xccdb9(0x2e5)](_0x3aaba6,_0xf15da6))!=null?_0x2041bb:_0xf15da6;}['_syncEditingCollabCursor'](_0x432d64){const _0x43400a=_0x335edf;var _0x4b1419,_0x2c4b4c;if(this[_0x43400a(0x1db)]===H[_0x43400a(0x3bf)]){const {unitID:_0x977078,mutations:_0x5e67d9,memberID:_0x5ef111}=_0x432d64,_0x1ffd2c=_0x5e67d9[0x0]['params']['textRanges'];Array[_0x43400a(0x456)](_0x1ffd2c)&&_0x1ffd2c['length']>0x0&&((_0x2c4b4c=(_0x4b1419=this['_handler'])['onSyncEditingCollabCursor'])==null||_0x2c4b4c[_0x43400a(0x2e5)](_0x4b1419,{'unitID':_0x977078,'memberID':_0x5ef111,'textRanges':_0x1ffd2c}));}}[_0x335edf(0x36e)](){const _0x32a0bb=_0x335edf;this[_0x32a0bb(0x3ad)][_0x32a0bb(0x3f0)](this[_0x32a0bb(0x2a6)],this[_0x32a0bb(0x1db)],this[_0x32a0bb(0x459)],this['_pendingMutations']);}[_0x335edf(0x246)](){const _0x1dd109=_0x335edf;return this[_0x1dd109(0x3c3)][_0x1dd109(0x1bd)](this['unitID']);}[_0x335edf(0x385)](){const _0x4115c2=_0x335edf;this[_0x4115c2(0x3c3)][_0x4115c2(0x1df)](this[_0x4115c2(0x2a6)]);}['_executeRemoteChangeset'](_0xf0da66){const _0x5b7fee=_0x335edf;var _0x2ad29f;const _0x15bb29=this[_0x5b7fee(0x173)](_0xf0da66),_0x28c660=_0x1a2b4a(_0x15bb29[_0x5b7fee(0x294)],this[_0x5b7fee(0x1ea)],{'fromCollab':!0x0});if(!_0x28c660['result'])throw _0x28c660[_0x5b7fee(0x417)]instanceof Error?_0x28c660['error']:new Error((_0x2ad29f=_0x28c660[_0x5b7fee(0x417)])!=null?_0x2ad29f:_0x5b7fee(0x1a3));this[_0x5b7fee(0x395)](_0x15bb29),this['_transformUndoredo'](_0xf0da66),this[_0x5b7fee(0x188)](_0x15bb29),this[_0x5b7fee(0x348)](_0x15bb29),this['_incrementRevisionNumber']();}}let Se=class extends _e{constructor(_0x2932cd,_0x1bebb9,_0x4f664e,_0x179bd9,_0x1d36de,_0x24ab86,_0x334c52,_0x85b0,_0x432e76,_0x5bb147){const _0x275aac=_0x335edf;super(_0x2932cd,_0x1bebb9,null,[],_0x4f664e,_0x85b0,_0x334c52,_0x179bd9,_0x1d36de),l(this,_0x275aac(0x3a4),'synced'),(this[_0x275aac(0x32e)]=_0x24ab86,this[_0x275aac(0x4b8)]=_0x432e76,this[_0x275aac(0x184)]=_0x5bb147);}['appendMutation'](_0x5f0606){const _0x30bddf=_0x335edf,_0x3a6655=this['_injector'][_0x30bddf(0x290)](K,this[_0x30bddf(0x2a6)],this[_0x30bddf(0x1db)],[_0x5f0606],this[_0x30bddf(0x1ba)]);return _0x3a6655[_0x30bddf(0x443)](),_0x3a6655[_0x30bddf(0x36e)](),_0x3a6655;}[_0x335edf(0x3bb)](_0x5d5c40){const _0x1ffdaf=_0x335edf;if(this[_0x1ffdaf(0x338)](_0x5d5c40))return this[_0x1ffdaf(0x32e)][_0x1ffdaf(0x290)](k,this[_0x1ffdaf(0x2a6)],this[_0x1ffdaf(0x1db)],null,[],null,[_0x5d5c40],this[_0x1ffdaf(0x1ba)]);try{const _0x3898b8=this[_0x1ffdaf(0x184)]['transformMutationsWithChangeset'](_0x5d5c40,[ur]);if(_0x1199e4(_0x3898b8)){const {c1Prime:_0xa58988}=_0x3898b8;return this[_0x1ffdaf(0x442)](_0xa58988),this;}throw _0x3898b8['error'];}catch(_0x2f1054){return this[_0x1ffdaf(0x4b8)][_0x1ffdaf(0x417)](_0x2f1054),this['_onConflict'](!0x1);}}[_0x335edf(0x482)](_0xec52b3){const _0x3b47bf=_0x335edf;return this[_0x3b47bf(0x32e)][_0x3b47bf(0x290)](Q,this[_0x3b47bf(0x2a6)],this[_0x3b47bf(0x1db)],null,[],this[_0x3b47bf(0x1ba)],_0xec52b3);}[_0x335edf(0x223)](){const _0x27e38d=_0x335edf;throw new Error(_0x27e38d(0x4da));}[_0x335edf(0x39a)](){const _0x5c7a35=_0x335edf;throw new Error(_0x5c7a35(0x4c6));}[_0x335edf(0x3b0)](){const _0x46d005=_0x335edf;return this[_0x46d005(0x32e)][_0x46d005(0x290)](ee,this[_0x46d005(0x2a6)],this[_0x46d005(0x1db)],null,[],this[_0x46d005(0x1ba)]);}[_0x335edf(0x218)](){return this;}[_0x335edf(0x48a)](){const _0x57b597=_0x335edf;throw new Error(_0x57b597(0x3d1));}[_0x335edf(0x2b2)](){const _0x49d01b=_0x335edf,_0x2a5c70=this[_0x49d01b(0x3c3)][_0x49d01b(0x1bd)](this[_0x49d01b(0x2a6)]);return this[_0x49d01b(0x1ba)]['onMissingChangesets']({'from':_0x2a5c70,'to':0x0}),this[_0x49d01b(0x32e)][_0x49d01b(0x290)](k,this[_0x49d01b(0x2a6)],this[_0x49d01b(0x1db)],null,[],null,[],this[_0x49d01b(0x1ba)]);}};Se=le([m(0x3,_0x412e01(_0x52844f)),m(0x4,_0x412e01(D)),m(0x5,_0x412e01(_0x5df9be)),m(0x6,_0x4abbfc),m(0x7,_0x5ad0bf),m(0x8,_0x96d163),m(0x9,_0x245d4a)],Se);let K=class extends _e{constructor(_0x26bbe6,_0x4bf72a,_0x46fbb3,_0x57d21a,_0x1a7434,_0x33ea7b,_0x1ad5a6,_0x1283ea,_0xcd6dd1,_0x138a60,_0x4e657d,_0x4c75d5,_0x4df923,_0x2e3684){const _0x35d45b=_0x335edf;super(_0x26bbe6,_0x4bf72a,null,_0x46fbb3,_0x57d21a,_0x138a60,_0x2e3684,_0x33ea7b,_0x1ad5a6),l(this,_0x35d45b(0x3a4),_0x35d45b(0x411)),l(this,'_scheduleTimestamp',null),l(this,_0x35d45b(0x2ae),null),(this[_0x35d45b(0x32e)]=_0x1a7434,this[_0x35d45b(0x225)]=_0x1283ea,this[_0x35d45b(0x4b8)]=_0xcd6dd1,this[_0x35d45b(0x2b5)]=_0x4e657d,this[_0x35d45b(0x184)]=_0x4c75d5,this[_0x35d45b(0x44a)]=_0x4df923);}['appendMutation'](_0x3f4b95){const _0x5179d3=_0x335edf;return this[_0x5179d3(0x28d)]['push'](_0x3f4b95),this[_0x5179d3(0x36e)](),this;}[_0x335edf(0x3bb)](_0x47de48){const _0xe9fbd2=_0x335edf;if(this[_0xe9fbd2(0x338)](_0x47de48))return this[_0xe9fbd2(0x2ce)](),this[_0xe9fbd2(0x32e)]['createInstance'](k,this[_0xe9fbd2(0x2a6)],this[_0xe9fbd2(0x1db)],null,this[_0xe9fbd2(0x28d)],null,[_0x47de48],this[_0xe9fbd2(0x1ba)]);try{const _0x437fa3=this[_0xe9fbd2(0x184)][_0xe9fbd2(0x170)](_0x47de48,this[_0xe9fbd2(0x28d)]);if(_0x1199e4(_0x437fa3)){const {c1Prime:_0x385a6b,m2Prime:_0x143dee}=_0x437fa3;this[_0xe9fbd2(0x442)](_0x385a6b);const _0x2e5aab=this[_0xe9fbd2(0x32e)][_0xe9fbd2(0x290)](K,this[_0xe9fbd2(0x2a6)],this['type'],_0x143dee,this[_0xe9fbd2(0x1ba)]);return this['_clearScheduledTask'](),_0x2e5aab[_0xe9fbd2(0x443)](this[_0xe9fbd2(0x499)]?Math[_0xe9fbd2(0x44d)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this['_getSendChangesetTimeout']()),_0x2e5aab;}throw _0x437fa3[_0xe9fbd2(0x417)];}catch(_0x25b20e){return this[_0xe9fbd2(0x4b8)][_0xe9fbd2(0x417)](_0x25b20e),this[_0xe9fbd2(0x482)](!0x1);}}[_0x335edf(0x223)](){const _0x2ffe74=_0x335edf;throw new Error(_0x2ffe74(0x4b5));}[_0x335edf(0x39a)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x335edf(0x3b0)](){const _0x9bc299=_0x335edf;return this[_0x9bc299(0x2ce)](),this['_injector'][_0x9bc299(0x290)](ee,this[_0x9bc299(0x2a6)],this[_0x9bc299(0x1db)],null,this['_pendingMutations'],this[_0x9bc299(0x1ba)]);}[_0x335edf(0x218)](){return this;}[_0x335edf(0x443)](_0x37ad43){const _0x51d026=_0x335edf,_0x5dfedd=_0x37ad43!=null?_0x37ad43:this[_0x51d026(0x213)]();this[_0x51d026(0x499)]=new Date()[_0x51d026(0x3da)](),this[_0x51d026(0x2ae)]=window[_0x51d026(0x32a)](()=>{const _0x29c50c=_0x51d026;this[_0x29c50c(0x2ce)]();let _0x379a46=null;switch(this[_0x29c50c(0x1db)]){case H[_0x29c50c(0x391)]:{_0x379a46=ls(this['_pendingMutations'],this['unitID'],this[_0x29c50c(0x44a)],this[_0x29c50c(0x3c3)],this[_0x29c50c(0x225)]);break;}case H[_0x29c50c(0x3bf)]:{this[_0x29c50c(0x28d)][_0x29c50c(0x40f)](_0x65c09a=>_0x65c09a['id']===_0x335b03['id'])?_0x379a46=_r(this['_pendingMutations'],this[_0x29c50c(0x2a6)],this[_0x29c50c(0x44a)],this['_revisionService'],this[_0x29c50c(0x225)]):_0x379a46=ls(this['_pendingMutations'],this['unitID'],this[_0x29c50c(0x44a)],this[_0x29c50c(0x3c3)],this['_memberService']);break;}default:throw new Error(_0x29c50c(0x21f)+this[_0x29c50c(0x1db)]+_0x29c50c(0x2d4));}const {changeset:_0x2ea9fa,pendingMutations:_0x45a16d}=_0x379a46;this[_0x29c50c(0x1ba)][_0x29c50c(0x1ed)](_0x2ea9fa);const _0x3fca9d=_0x45a16d[_0x29c50c(0x2d5)]?this[_0x29c50c(0x32e)][_0x29c50c(0x290)](X,this[_0x29c50c(0x2a6)],this[_0x29c50c(0x1db)],_0x2ea9fa,_0x45a16d,this[_0x29c50c(0x1ba)]):this['_injector'][_0x29c50c(0x290)](Z,this['unitID'],this[_0x29c50c(0x1db)],_0x2ea9fa,this[_0x29c50c(0x1ba)]);_0x3fca9d[_0x29c50c(0x36e)](),this[_0x29c50c(0x1ba)]['onStateChange'](this,_0x3fca9d);},_0x5dfedd);}['_getSendChangesetTimeout'](){const _0xad8580=_0x335edf;var _0x3c3a3c;const _0x38803b=this[_0xad8580(0x2b5)]['getConfig'](L);return(_0x3c3a3c=_0x38803b==null?void 0x0:_0x38803b[_0xad8580(0x492)])!=null?_0x3c3a3c:gn;}[_0x335edf(0x48a)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x335edf(0x2ce)](){const _0x50480a=_0x335edf;this[_0x50480a(0x2ae)]!=null&&(clearTimeout(this[_0x50480a(0x2ae)]),this['_sendingTimer']=null);}[_0x335edf(0x482)](_0x2eda8d){const _0x415f9c=_0x335edf;return this[_0x415f9c(0x2ce)](),this['_injector'][_0x415f9c(0x290)](Q,this[_0x415f9c(0x2a6)],this['type'],null,this['_pendingMutations'],this[_0x415f9c(0x1ba)],_0x2eda8d);}};K=le([m(0x4,_0x412e01(_0x5df9be)),m(0x5,_0x412e01(_0x52844f)),m(0x6,_0x412e01(D)),m(0x7,_0x412e01(ae)),m(0x8,_0x96d163),m(0x9,_0x5ad0bf),m(0xa,_0x19915a),m(0xb,_0x245d4a),m(0xc,_0x2bb140),m(0xd,_0x4abbfc)],K);let Z=class extends _e{constructor(_0x950a93,_0xada736,_0x32f57d,_0x134899,_0x5c297f,_0x346433,_0x33966e,_0x20a206,_0x918092,_0x17a963,_0x217bb4){const _0x3ac468=_0x335edf;super(_0x950a93,_0xada736,_0x32f57d,[],_0x134899,_0x20a206,_0x217bb4,_0x346433,_0x33966e),l(this,_0x3ac468(0x3a4),_0x3ac468(0x200)),(this[_0x3ac468(0x32e)]=_0x5c297f,this[_0x3ac468(0x4b8)]=_0x918092,this['_transformService']=_0x17a963);}[_0x335edf(0x420)](_0x131a5c){const _0x323af9=_0x335edf,_0x577a03=this[_0x323af9(0x32e)][_0x323af9(0x290)](X,this[_0x323af9(0x2a6)],this[_0x323af9(0x1db)],this['_awaitingChangeset'],[_0x131a5c],this[_0x323af9(0x1ba)]);return _0x577a03[_0x323af9(0x36e)](),_0x577a03;}[_0x335edf(0x3bb)](_0x2a6ff5){const _0x31292a=_0x335edf;if(this['_checkMissing'](_0x2a6ff5))return this[_0x31292a(0x32e)]['createInstance'](k,this[_0x31292a(0x2a6)],this[_0x31292a(0x1db)],this[_0x31292a(0x459)],[],null,[_0x2a6ff5],this['_handler']);try{const _0x1b5d43=this[_0x31292a(0x184)]['transformChangesets']([_0x2a6ff5],[this[_0x31292a(0x459)]],!0x1);if(_0x1708d2(_0x1b5d43)){const {c1Prime:_0x137076,c2Prime:_0x3fb887}=_0x1b5d43;this[_0x31292a(0x442)](_0x137076[0x0]),_0x3fb887[0x0][_0x31292a(0x3f5)]=this[_0x31292a(0x246)]();const _0x29275c=this[_0x31292a(0x32e)]['createInstance'](Z,this[_0x31292a(0x2a6)],this[_0x31292a(0x1db)],_0x3fb887[0x0],this['_handler']);return _0x29275c[_0x31292a(0x36e)](),_0x29275c;}return this[_0x31292a(0x482)](!0x1);}catch(_0x54b496){return this['_logService'][_0x31292a(0x417)](_0x54b496),this[_0x31292a(0x482)](!0x1);}}[_0x335edf(0x223)](_0x40db75){const _0x10f4fc=_0x335edf,_0x98f354=this[_0x10f4fc(0x3c3)][_0x10f4fc(0x1bd)](this[_0x10f4fc(0x2a6)]);if(_0x40db75[_0x10f4fc(0x3d9)]<_0x98f354-0x1)return this;if(this[_0x10f4fc(0x338)](_0x40db75))return this[_0x10f4fc(0x32e)][_0x10f4fc(0x290)](k,this[_0x10f4fc(0x2a6)],this[_0x10f4fc(0x1db)],null,[],this[_0x10f4fc(0x459)],[],this[_0x10f4fc(0x1ba)]);this[_0x10f4fc(0x385)]();const _0x44fdac=this[_0x10f4fc(0x32e)][_0x10f4fc(0x290)](Se,this[_0x10f4fc(0x2a6)],this[_0x10f4fc(0x1db)],this[_0x10f4fc(0x1ba)]);return _0x44fdac['_updateLocalCache'](),_0x44fdac;}[_0x335edf(0x39a)](_0x5ba223){const _0x578b46=_0x335edf;return this[_0x578b46(0x482)](!!(_0x5ba223!=null&&_0x5ba223['isPermissionRej']));}['toggleOffline'](){const _0x1f0f90=_0x335edf;return this['_injector'][_0x1f0f90(0x290)](ee,this[_0x1f0f90(0x2a6)],this[_0x1f0f90(0x1db)],this['_awaitingChangeset'],[],this['_handler']);}[_0x335edf(0x218)](){return this;}[_0x335edf(0x48a)](){const _0x300665=_0x335edf;this[_0x300665(0x1ba)][_0x300665(0x1ed)](this[_0x300665(0x459)]);}[_0x335edf(0x482)](_0x19f024){const _0x3a7198=_0x335edf;return this[_0x3a7198(0x32e)][_0x3a7198(0x290)](Q,this['unitID'],this[_0x3a7198(0x1db)],this[_0x3a7198(0x459)],[],this[_0x3a7198(0x1ba)],_0x19f024);}};Z=le([m(0x4,_0x412e01(_0x5df9be)),m(0x5,_0x412e01(_0x52844f)),m(0x6,_0x412e01(D)),m(0x7,_0x5ad0bf),m(0x8,_0x96d163),m(0x9,_0x245d4a),m(0xa,_0x4abbfc)],Z);let X=class extends _e{constructor(_0x1bffb6,_0x4cb122,_0x2da366,_0x1214c8,_0x313cc2,_0x36b696,_0x2606f6,_0x3018b5,_0x55e5a3,_0x1486d6,_0x591739,_0x93ce0a){const _0x4bf0d2=_0x335edf;super(_0x1bffb6,_0x4cb122,_0x2da366,_0x1214c8,_0x313cc2,_0x55e5a3,_0x93ce0a,_0x2606f6,_0x3018b5),l(this,_0x4bf0d2(0x3a4),'awaiting_with_pending'),(this['_injector']=_0x36b696,this[_0x4bf0d2(0x4b8)]=_0x1486d6,this[_0x4bf0d2(0x184)]=_0x591739);}[_0x335edf(0x420)](_0x596d01){const _0x593a44=_0x335edf;return this[_0x593a44(0x28d)][_0x593a44(0x3ed)](_0x596d01),this;}['onRemoteChangeset'](_0x3e2a8e){const _0xb27c57=_0x335edf;if(this[_0xb27c57(0x338)](_0x3e2a8e))return this[_0xb27c57(0x32e)]['createInstance'](k,this[_0xb27c57(0x2a6)],this['type'],this[_0xb27c57(0x459)],this['_pendingMutations'],null,[_0x3e2a8e],this[_0xb27c57(0x1ba)]);try{const _0xb15e3d=this[_0xb27c57(0x184)]['transformChangesets']([_0x3e2a8e],[this[_0xb27c57(0x459)]],!0x1);if(_0x1708d2(_0xb15e3d)){const {c1Prime:_0x5f1db3,c2Prime:_0x3052a4}=_0xb15e3d,_0x30f4cb=this[_0xb27c57(0x184)][_0xb27c57(0x170)](_0x5f1db3[0x0],this[_0xb27c57(0x28d)]);if(_0x1199e4(_0x30f4cb)){const {c1Prime:_0x29dabe,m2Prime:_0x1f02c4}=_0x30f4cb;return this['_executeRemoteChangeset'](_0x29dabe),_0x3052a4[0x0][_0xb27c57(0x3f5)]=this[_0xb27c57(0x246)](),this[_0xb27c57(0x32e)][_0xb27c57(0x290)](X,this[_0xb27c57(0x2a6)],this['type'],_0x3052a4[0x0],_0x1f02c4,this[_0xb27c57(0x1ba)]);}throw _0x30f4cb[_0xb27c57(0x417)];}throw _0xb15e3d[_0xb27c57(0x417)];}catch(_0x4ba651){return this[_0xb27c57(0x4b8)][_0xb27c57(0x417)](_0x4ba651),this[_0xb27c57(0x482)](!0x1);}}[_0x335edf(0x223)](_0x4733b8){const _0x573fe4=_0x335edf;if(this['_checkMissing'](_0x4733b8))return this[_0x573fe4(0x32e)][_0x573fe4(0x290)](k,this['unitID'],this[_0x573fe4(0x1db)],null,this[_0x573fe4(0x28d)],this[_0x573fe4(0x459)],[],this[_0x573fe4(0x1ba)]);this[_0x573fe4(0x385)]();const _0x177c62=this['_injector'][_0x573fe4(0x290)](K,this[_0x573fe4(0x2a6)],this[_0x573fe4(0x1db)],this[_0x573fe4(0x28d)],this[_0x573fe4(0x1ba)]);return _0x177c62['_schedule'](),_0x177c62[_0x573fe4(0x36e)](),_0x177c62;}[_0x335edf(0x39a)](_0x129b89){const _0x298775=_0x335edf;return this[_0x298775(0x482)](!!(_0x129b89!=null&&_0x129b89[_0x298775(0x464)]));}[_0x335edf(0x3b0)](){const _0x4150bc=_0x335edf;return this[_0x4150bc(0x32e)]['createInstance'](ee,this[_0x4150bc(0x2a6)],this[_0x4150bc(0x1db)],this['_awaitingChangeset'],this[_0x4150bc(0x28d)],this[_0x4150bc(0x1ba)]);}[_0x335edf(0x218)](){return this;}[_0x335edf(0x48a)](){const _0x4a825a=_0x335edf;this[_0x4a825a(0x1ba)][_0x4a825a(0x1ed)](this[_0x4a825a(0x459)]);}[_0x335edf(0x482)](_0xfe1560){const _0x5eee15=_0x335edf;return this[_0x5eee15(0x32e)]['createInstance'](Q,this['unitID'],this[_0x5eee15(0x1db)],null,this[_0x5eee15(0x28d)],this[_0x5eee15(0x1ba)],_0xfe1560);}};X=le([m(0x5,_0x412e01(_0x5df9be)),m(0x6,_0x412e01(_0x52844f)),m(0x7,_0x412e01(D)),m(0x8,_0x5ad0bf),m(0x9,_0x96d163),m(0xa,_0x245d4a),m(0xb,_0x4abbfc)],X);let Q=class extends _e{constructor(_0x5b22c6,_0x1d5f11,_0x4c7b0c,_0x2260db,_0x2f7b4e,_0x52eff1=!0x1,_0x542719,_0x1abb65,_0xd56c40,_0x4db30e,_0x2dfe9d,_0x3be7a3,_0x4cb824){const _0x4652ba=_0x335edf;super(_0x5b22c6,_0x1d5f11,_0x4c7b0c,_0x2260db,_0x2f7b4e,_0x1abb65,_0xd56c40,_0x2dfe9d,_0x4db30e),l(this,_0x4652ba(0x3a4),_0x4652ba(0x458)),(this['_isPermissionRej']=_0x52eff1,this[_0x4652ba(0x4c8)]=_0x542719,this[_0x4652ba(0x201)]=_0x3be7a3,this[_0x4652ba(0x3e9)]=_0x4cb824,this[_0x4652ba(0x3a5)](),this[_0x4652ba(0x3d3)](),this[_0x4652ba(0x263)]());}[_0x335edf(0x420)](){return this;}[_0x335edf(0x3bb)](){return this;}['onRemoteAck'](){return this;}[_0x335edf(0x39a)](){return this;}[_0x335edf(0x3b0)](){return this;}[_0x335edf(0x218)](){return this;}[_0x335edf(0x48a)](){const _0x46e612=_0x335edf;throw new Error(_0x46e612(0x1a6));}[_0x335edf(0x3d3)](){const _0x2beaa6=_0x335edf;this[_0x2beaa6(0x3ad)][_0x2beaa6(0x3f0)](this[_0x2beaa6(0x2a6)],this[_0x2beaa6(0x1db)],null,[]);}[_0x335edf(0x3a5)](){const _0x3be208=_0x335edf;this[_0x3be208(0x46d)]?this[_0x3be208(0x3e9)][_0x3be208(0x473)]({'title':this[_0x3be208(0x201)]['t'](_0x3be208(0x466)),'content':this[_0x3be208(0x201)]['t']('permission.content'),'type':_0x3be208(0x417),'duration':0x0}):this[_0x3be208(0x3e9)][_0x3be208(0x473)]({'title':this['_localeService']['t']('conflict.title'),'content':this['_localeService']['t'](_0x3be208(0x37f)),'type':_0x3be208(0x417),'duration':0x0});}[_0x335edf(0x263)](){const _0x2d3b39=_0x335edf;this['_permissionService'][_0x2d3b39(0x41d)](new _0x2cefce(this['unitID'])['id'],!0x1);}};Q=le([m(0x6,_0x412e01(_0x41b8c7)),m(0x7,_0x5ad0bf),m(0x8,_0x4abbfc),m(0x9,_0x412e01(D)),m(0xa,_0x412e01(_0x52844f)),m(0xb,_0x412e01(_0x1c954b)),m(0xc,_0x2f85b0)],Q);let ee=class extends _e{constructor(_0x19cf6a,_0x481d3e,_0x4441f0,_0x3ff486,_0x24721c,_0x4d2c40,_0x3c8ba2,_0x445b67,_0x32a311,_0x3dc4b7){const _0x28ae41=_0x335edf;super(_0x19cf6a,_0x481d3e,_0x4441f0,_0x3ff486,_0x24721c,_0x32a311,_0x3dc4b7,_0x3c8ba2,_0x445b67),l(this,'status',_0x28ae41(0x363)),this['_injector']=_0x4d2c40;}['appendMutation'](_0x4e16c0){const _0x5d2a85=_0x335edf;return this[_0x5d2a85(0x28d)][_0x5d2a85(0x3ed)](_0x4e16c0),this[_0x5d2a85(0x36e)](),this;}[_0x335edf(0x3bb)](_0x4de5de){const _0x26a4df=_0x335edf;throw new Error(_0x26a4df(0x460));}['onRemoteAck'](){const _0x1100c5=_0x335edf;throw new Error(_0x1100c5(0x4cf));}[_0x335edf(0x39a)](){const _0x4fde01=_0x335edf;throw new Error(_0x4fde01(0x26f));}['toggleOffline'](){return this;}['toggleOnline'](){const _0x536fb9=_0x335edf,{_injector:_0x55cda7,_pendingMutations:_0x30a0f9,_awaitingChangeset:_0xfa3e81,unitID:_0x5f33d4,_handler:_0x878e0f,type:_0x3c0518}=this,_0x2e8029=Hs(_0x55cda7,_0x5f33d4,_0x3c0518,_0xfa3e81,_0x30a0f9,_0x878e0f);return _0x2e8029 instanceof K?_0x2e8029[_0x536fb9(0x443)]():(_0x2e8029 instanceof X||_0x2e8029 instanceof Z)&&_0x2e8029['resend'](),_0x2e8029;}[_0x335edf(0x48a)](){const _0x1b5c9d=_0x335edf;throw new Error(_0x1b5c9d(0x30c));}};ee=le([m(0x5,_0x412e01(_0x5df9be)),m(0x6,_0x412e01(_0x52844f)),m(0x7,_0x412e01(D)),m(0x8,_0x5ad0bf),m(0x9,_0x4abbfc)],ee);let k=class extends _e{constructor(_0x831312,_0x237d06,_0x302965,_0x13b3c4,_0x4370f0,_0x33685c,_0x384913,_0x533cdb,_0x22be51,_0x380c7c,_0x3dc6cf,_0x177f08,_0x2b4970,_0x3adab9){const _0x2bb79c=_0x335edf;super(_0x831312,_0x237d06,_0x302965,_0x13b3c4,_0x384913,_0x177f08,_0x2b4970,_0x22be51,_0x380c7c),l(this,'status',_0x2bb79c(0x1ae)),(this[_0x2bb79c(0x4b0)]=_0x4370f0,this['_queuedRemoteChangesets']=_0x33685c,this[_0x2bb79c(0x32e)]=_0x533cdb,this[_0x2bb79c(0x4b8)]=_0x3dc6cf,this[_0x2bb79c(0x184)]=_0x3adab9);}[_0x335edf(0x398)](_0x504112){const _0x58d09e=_0x335edf;try{const _0x596189=[..._0x504112,...this[_0x58d09e(0x4d9)]],_0x1a5dc8=[this[_0x58d09e(0x459)]||this[_0x58d09e(0x4b0)]][_0x58d09e(0x1dc)](_0x52d135=>!!_0x52d135);let _0x485916,_0x2d5a04;if(_0x1a5dc8[_0x58d09e(0x2d5)]){const _0x1f38d2=this[_0x58d09e(0x184)]['transformChangesets'](_0x596189,_0x1a5dc8,!0x1);if(!_0x1708d2(_0x1f38d2))throw _0x1f38d2[_0x58d09e(0x417)];_0x485916=_0x1f38d2[_0x58d09e(0x1d7)],_0x2d5a04=_0x1f38d2[_0x58d09e(0x2f4)];}else _0x485916=_0x596189,_0x2d5a04=[];let _0x40f6c6=this[_0x58d09e(0x28d)];_0x485916[_0x58d09e(0x2c9)](_0x298cb0=>{const _0x3a074d=_0x58d09e;let _0x5b8134;if(_0x40f6c6['length']){const _0x52d7ce=this[_0x3a074d(0x184)][_0x3a074d(0x170)](_0x298cb0,_0x40f6c6);if(!_0x1199e4(_0x52d7ce))throw _0x52d7ce[_0x3a074d(0x417)];_0x5b8134=_0x52d7ce['c1Prime'],_0x40f6c6=_0x52d7ce[_0x3a074d(0x1cd)];}else _0x5b8134=_0x298cb0;this[_0x3a074d(0x442)](_0x5b8134);}),this['_acknowledgedAwaitingChangeset']&&this[_0x58d09e(0x385)](),this[_0x58d09e(0x459)]&&_0x2d5a04['length']&&(_0x2d5a04[0x0][_0x58d09e(0x3f5)]=this[_0x58d09e(0x246)]());let _0x4bc982;if(this[_0x58d09e(0x459)]&&_0x40f6c6[_0x58d09e(0x2d5)]!==0x0)_0x4bc982=this[_0x58d09e(0x32e)][_0x58d09e(0x290)](X,this[_0x58d09e(0x2a6)],this['type'],_0x2d5a04[0x0],_0x40f6c6,this[_0x58d09e(0x1ba)]);else{if(this[_0x58d09e(0x459)]&&_0x40f6c6[_0x58d09e(0x2d5)]===0x0)_0x2d5a04[0x0][_0x58d09e(0x3f5)]=this[_0x58d09e(0x246)](),_0x4bc982=this['_injector'][_0x58d09e(0x290)](Z,this['unitID'],this[_0x58d09e(0x1db)],_0x2d5a04[0x0],this[_0x58d09e(0x1ba)]);else{if(_0x40f6c6['length']!==0x0){const _0x138f3f=this[_0x58d09e(0x32e)][_0x58d09e(0x290)](K,this[_0x58d09e(0x2a6)],this[_0x58d09e(0x1db)],_0x40f6c6,this['_handler']);_0x138f3f[_0x58d09e(0x443)](),_0x4bc982=_0x138f3f;}else _0x4bc982=this[_0x58d09e(0x32e)]['createInstance'](Se,this[_0x58d09e(0x2a6)],this[_0x58d09e(0x1db)],this[_0x58d09e(0x1ba)]);}}return _0x4bc982[_0x58d09e(0x36e)](),_0x4bc982;}catch(_0x1b88ef){return this[_0x58d09e(0x4b8)][_0x58d09e(0x417)](_0x58d09e(0x3c1),_0x58d09e(0x2b8),_0x1b88ef),this[_0x58d09e(0x32e)][_0x58d09e(0x290)](Q,this[_0x58d09e(0x2a6)],this[_0x58d09e(0x1db)],this[_0x58d09e(0x459)],this[_0x58d09e(0x28d)],this[_0x58d09e(0x1ba)],!0x1);}}['resend'](){const _0x42e5ee=_0x335edf;throw new Error(_0x42e5ee(0x2ea));}['appendMutation'](_0xde0578){const _0x134421=_0x335edf;return this[_0x134421(0x28d)][_0x134421(0x3ed)](_0xde0578),this;}[_0x335edf(0x3bb)](_0x1ba0da){const _0x4fce99=_0x335edf;return this[_0x4fce99(0x4d9)][_0x4fce99(0x3ed)](_0x1ba0da),this;}['onRemoteAck'](_0xae9738){const _0x7aa932=_0x335edf;if(this['_awaitingChangeset'])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this[_0x7aa932(0x459)]=null,this;throw new Error(_0x7aa932(0x4c5));}[_0x335edf(0x39a)](_0x9302fa){const _0x330a05=_0x335edf;return this[_0x330a05(0x482)](!!(_0x9302fa!=null&&_0x9302fa[_0x330a05(0x464)]));}[_0x335edf(0x3b0)](){const _0x4a0feb=_0x335edf;return this[_0x4a0feb(0x32e)]['createInstance'](ee,this[_0x4a0feb(0x2a6)],this[_0x4a0feb(0x1db)],this[_0x4a0feb(0x459)],this['_pendingMutations'],this[_0x4a0feb(0x1ba)]);}[_0x335edf(0x218)](){return this;}[_0x335edf(0x482)](_0x5f2d69){const _0x1ecff9=_0x335edf;return this['_injector'][_0x1ecff9(0x290)](Q,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x1ecff9(0x28d)],this['_handler'],_0x5f2d69);}};k=le([m(0x7,_0x412e01(_0x5df9be)),m(0x8,_0x412e01(_0x52844f)),m(0x9,_0x412e01(D)),m(0xa,_0x96d163),m(0xb,_0x5ad0bf),m(0xc,_0x4abbfc),m(0xd,_0x245d4a)],k);function Hs(_0x34dac2,_0x1c0537,_0x582341,_0x22e184,_0x151a5d,_0x5eb953){const _0x183e44=_0x335edf;return _0x22e184&&_0x151a5d[_0x183e44(0x2d5)]?_0x34dac2[_0x183e44(0x290)](X,_0x1c0537,_0x582341,_0x22e184,_0x151a5d,_0x5eb953):_0x22e184?_0x34dac2['createInstance'](Z,_0x1c0537,_0x582341,_0x22e184,_0x5eb953):_0x151a5d['length']?_0x34dac2[_0x183e44(0x290)](K,_0x1c0537,_0x582341,_0x151a5d,_0x5eb953):_0x34dac2[_0x183e44(0x290)](Se,_0x1c0537,_0x582341,_0x5eb953);}var mr=Object[_0x335edf(0x226)],gr=Object[_0x335edf(0x2e4)],Vt=(_0x15582f,_0x1ae2e7,_0x47e576,_0x377eac)=>{const _0x99a0b6=_0x335edf;for(var _0x1784a1=_0x377eac>0x1?void 0x0:_0x377eac?gr(_0x1ae2e7,_0x47e576):_0x1ae2e7,_0x2497f1=_0x15582f[_0x99a0b6(0x2d5)]-0x1,_0x1d4132;_0x2497f1>=0x0;_0x2497f1--)(_0x1d4132=_0x15582f[_0x2497f1])&&(_0x1784a1=(_0x377eac?_0x1d4132(_0x1ae2e7,_0x47e576,_0x1784a1):_0x1d4132(_0x1784a1))||_0x1784a1);return _0x377eac&&_0x1784a1&&mr(_0x1ae2e7,_0x47e576,_0x1784a1),_0x1784a1;},p=(_0x3fba17,_0x5a15d3)=>(_0x33530c,_0x1ae10f)=>_0x5a15d3(_0x33530c,_0x1ae10f,_0x3fba17);let Je=class extends _0x832c1b{constructor(_0x23df34,_0x4b04c7,_0x1d17e0,_0x5e3bd6,_0x1e046a,_0x4492d1,_0x55f4ed,_0x4bc0f8,_0x12284b,_0x515629,_0x29fe59,_0x2d8a8b,_0x4d2bb7){const _0x2cf9b5=_0x335edf;super(),l(this,_0x2cf9b5(0x39e),new _0x5b0208(null)),l(this,_0x2cf9b5(0x28f),this[_0x2cf9b5(0x39e)][_0x2cf9b5(0x40b)]()),l(this,_0x2cf9b5(0x3c4)),l(this,_0x2cf9b5(0x406),!0x1),l(this,'status$',this['state$']['pipe'](_0x3cc30b(_0x2db158=>_0x2db158?_0x2db158[_0x2cf9b5(0x3a4)]:w['OFFLINE']),_0x553f98(0x1))),l(this,_0x2cf9b5(0x24d),!0x1),l(this,_0x2cf9b5(0x4be),[]),(this[_0x2cf9b5(0x2a6)]=_0x23df34,this[_0x2cf9b5(0x4af)]=_0x4b04c7,this[_0x2cf9b5(0x3cf)]=_0x1d17e0,this[_0x2cf9b5(0x32e)]=_0x5e3bd6,this[_0x2cf9b5(0x3ad)]=_0x1e046a,this[_0x2cf9b5(0x48b)]=_0x4492d1,this[_0x2cf9b5(0x201)]=_0x55f4ed,this[_0x2cf9b5(0x3c3)]=_0x4bc0f8,this['_logService']=_0x12284b,this[_0x2cf9b5(0x1ea)]=_0x515629,this[_0x2cf9b5(0x26c)]=_0x29fe59,this['_permissionService']=_0x2d8a8b,this['_singleActiveUnitService']=_0x4d2bb7);}get['state'](){const _0x27e079=_0x335edf;return this[_0x27e079(0x3c4)];}async['init'](){const _0x15198f=_0x335edf;if(this[_0x15198f(0x497)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x15198f(0x1e9)]();}[_0x335edf(0x23b)](){return this['_collaborationPaused']=!0x0,_0x1afe37(()=>{const _0x1ed38e=_0x1425;this[_0x1ed38e(0x406)]=!0x1,this[_0x1ed38e(0x287)]();});}[_0x335edf(0x46c)](_0x1e5129){const _0x409aca=_0x335edf;this[_0x409aca(0x3c4)]=_0x1e5129,this['_state$'][_0x409aca(0x1ab)](_0x1e5129);}async[_0x335edf(0x1e9)](){const _0x1187ed=_0x335edf;var _0x291fe8;this[_0x1187ed(0x46c)](await this['_createInitialState']()),this[_0x1187ed(0x447)]&&((_0x291fe8=this['_singleActiveUnitService'])==null||_0x291fe8['editingUnit'](this[_0x1187ed(0x2a6)]),this[_0x1187ed(0x33b)](this[_0x1187ed(0x447)][_0x1187ed(0x2f0)](this[_0x1187ed(0x2a6)])[_0x1187ed(0x1bc)](_0x2932ff=>{const _0x22ba17=_0x1187ed;this[_0x22ba17(0x4b8)]['debug']('[CollaborationEntity]',_0x22ba17(0x355),_0x2932ff),_0x2932ff===js[_0x22ba17(0x3ee)]?(this[_0x22ba17(0x26c)]['show']({'content':this['_localeService']['t'](_0x22ba17(0x4d2)),'type':_0x4c7fa7[_0x22ba17(0x2f7)]}),this[_0x22ba17(0x4c8)]['updatePermissionPoint'](new _0x2cefce(this[_0x22ba17(0x2a6)])['id'],!0x1)):this[_0x22ba17(0x4c8)][_0x22ba17(0x41d)](new _0x2cefce(this[_0x22ba17(0x2a6)])['id'],!0x0);})));let _0x38d096=!0x1;return this[_0x1187ed(0x33b)](this['session'][_0x1187ed(0x4c7)]['subscribe'](_0x276f55=>{const _0x1f80cd=_0x1187ed;_0x276f55===G['ONLINE']?this[_0x1f80cd(0x24e)](_0x38d096):_0x276f55===G[_0x1f80cd(0x1b3)]&&(_0x38d096=!0x0,this[_0x1f80cd(0x4d4)]());})),this[_0x1187ed(0x33b)](this[_0x1187ed(0x4af)]['event$'][_0x1187ed(0x1bc)](_0x5b50a8=>{const _0x352027=_0x1187ed;try{switch(_0x5b50a8[_0x352027(0x345)]){case _0x5bec90[_0x352027(0x17d)]:{this['_onRemoteChangeset'](_0x469b18(_0x5b50a8[_0x352027(0x474)]));break;}case _0x5bec90[_0x352027(0x3ba)]:{this[_0x352027(0x3bd)](_0x5b50a8[_0x352027(0x474)]);break;}case _0x5bec90[_0x352027(0x3a3)]:{this[_0x352027(0x427)]();break;}case _0x5bec90[_0x352027(0x429)]:{this['_onFetchMissResult'](_0x5b50a8[_0x352027(0x474)][_0x352027(0x279)][_0x352027(0x1ac)](_0x39f635=>_0x469b18(_0x39f635)));break;}case _0x5bec90[_0x352027(0x48d)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x351014){throw console[_0x352027(0x417)](_0x352027(0x2bb),_0x351014),_0x351014;}})),this[_0x1187ed(0x3c4)];}[_0x335edf(0x4d8)](){const _0x2041ae=_0x335edf;this[_0x2041ae(0x24d)]=!0x1;}['_lockTransition'](){const _0x56f743=_0x335edf;if(this[_0x56f743(0x24d)])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[_0x56f743(0x24d)]=!0x0;}['_onLocalMutation'](_0x45156e){const _0xdfcd27=_0x335edf;this[_0xdfcd27(0x1c9)](),this['_updateState'](this[_0xdfcd27(0x3c4)]['appendMutation'](_0x45156e)),this[_0xdfcd27(0x4d8)]();}[_0x335edf(0x18b)](_0x33a83f){const _0x428f00=_0x335edf;if(!(_0x33a83f[_0x428f00(0x3d9)]<=this[_0x428f00(0x3c3)][_0x428f00(0x1bd)](this[_0x428f00(0x2a6)]))){if(this[_0x428f00(0x406)]){this['_remoteChangesetQueue'][_0x428f00(0x3ed)](_0x33a83f);return;}this['_applyRemoteChangeset'](_0x33a83f);}}[_0x335edf(0x287)](){const _0x221197=_0x335edf;this[_0x221197(0x4be)][_0x221197(0x2c9)](_0x3870ce=>this[_0x221197(0x232)](_0x3870ce)),this[_0x221197(0x4be)]=[];}[_0x335edf(0x232)](_0x307616){const _0x468c62=_0x335edf,_0x168c18=this[_0x468c62(0x48b)][_0x468c62(0x2da)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x468c62(0x2da)]['getInterceptPoints']()[_0x468c62(0x40c)])(_0x307616[_0x468c62(0x294)],null)||_0x307616[_0x468c62(0x294)],_0x49fc98={..._0x307616,'mutations':_0x168c18};this['_lockTransition'](),this[_0x468c62(0x46c)](this[_0x468c62(0x3c4)]['onRemoteChangeset'](_0x49fc98)),this[_0x468c62(0x4d8)]();}[_0x335edf(0x3bd)](_0x384e0e){const _0x2c3215=_0x335edf;this[_0x2c3215(0x1c9)](),this['_updateState'](this[_0x2c3215(0x3c4)]['onRemoteAck'](_0x384e0e)),this['_unlockTransition']();}[_0x335edf(0x427)](_0x200787){const _0x186b33=_0x335edf;this[_0x186b33(0x1c9)](),this[_0x186b33(0x46c)](this[_0x186b33(0x3c4)][_0x186b33(0x39a)](_0x200787)),this[_0x186b33(0x4d8)]();}['_onFetchMissResult'](_0x1d4964){const _0x6c07ce=_0x335edf;if(!(this['_state']instanceof k))throw new TypeError(_0x6c07ce(0x3d2));const _0x13678c=_0x1d4964[_0x6c07ce(0x1ac)](_0x2965ee=>{const _0x50139e=_0x6c07ce,_0x2d70e7=this[_0x50139e(0x48b)]['interceptor'][_0x50139e(0x36c)](this['_compressMutationService'][_0x50139e(0x2da)][_0x50139e(0x1b0)]()[_0x50139e(0x40c)])(_0x2965ee[_0x50139e(0x294)],null)||_0x2965ee[_0x50139e(0x294)];return{..._0x2965ee,'mutations':_0x2d70e7};});this[_0x6c07ce(0x1c9)](),this[_0x6c07ce(0x46c)](this[_0x6c07ce(0x3c4)]['onMissedChangesetFetched'](_0x13678c)),this[_0x6c07ce(0x4d8)]();}[_0x335edf(0x4d4)](){const _0xf7a920=_0x335edf;this[_0xf7a920(0x1c9)](),this[_0xf7a920(0x46c)](this[_0xf7a920(0x3c4)][_0xf7a920(0x3b0)]()),this[_0xf7a920(0x4d8)]();}[_0x335edf(0x24e)](_0x57f85b=!0x1){const _0xee4182=_0x335edf;this[_0xee4182(0x1c9)](),this[_0xee4182(0x46c)](this[_0xee4182(0x3c4)][_0xee4182(0x218)]()),this[_0xee4182(0x4d8)]();const _0x2d76be=this['_state'];_0x57f85b&&_0x2d76be instanceof Se&&(this[_0xee4182(0x1c9)](),this[_0xee4182(0x46c)](_0x2d76be['fetchMiss']()),this['_unlockTransition']());}async[_0x335edf(0x216)](){return new Promise(_0x82135b=>{const _0x3bde21=_0x1425;this[_0x3bde21(0x4af)][_0x3bde21(0x4c7)][_0x3bde21(0x266)](_0x10db86(0x1))[_0x3bde21(0x1bc)](async _0x3ee375=>{const _0x11cdf9=_0x3bde21;_0x82135b(await this['_createInitialStateImpl'](_0x3ee375===G[_0x11cdf9(0x1fa)]));});});}[_0x335edf(0x282)](){const _0x278724=_0x335edf,_0x205beb=this[_0x278724(0x2a6)];return{'onStateChange':(_0x246a6c,_0x7d75d5)=>{const _0x3883d3=_0x278724;if(_0x246a6c!==this[_0x3883d3(0x3c4)])throw new Error(_0x3883d3(0x49b)+_0x246a6c[_0x3883d3(0x3a4)]+_0x3883d3(0x434)+_0x7d75d5[_0x3883d3(0x3a4)]+_0x3883d3(0x377)+this[_0x3883d3(0x3c4)][_0x3883d3(0x3a4)]);this[_0x3883d3(0x46c)](_0x7d75d5);},'onSendChangeset':_0xc93aa5=>{const _0xbc962=_0x278724,_0x315cf6={'eventID':_0x5bec90['SUBMIT_CHANGESET'],'data':{'unitID':_0xc93aa5['unitID'],'unitType':this['_type'],'changeset':_0xc93aa5,'memberID':this[_0xbc962(0x4af)][_0xbc962(0x48f)]()}};this['session'][_0xbc962(0x486)](_0x315cf6,this['unitID']);},'onMissingChangesets':({from:_0x4bcf20,to:_0x477c46})=>{const _0x5f38e9=_0x278724;this['_logService'][_0x5f38e9(0x274)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x4bcf20+_0x5f38e9(0x35b)+_0x477c46);const _0x265046={'eventID':_0x5bec90[_0x5f38e9(0x3fc)],'data':{'unitID':_0x205beb,'unitType':this[_0x5f38e9(0x3cf)],'from':_0x4bcf20,'to':_0x477c46}};this['session'][_0x5f38e9(0x486)](_0x265046,this[_0x5f38e9(0x2a6)]);}};}async[_0x335edf(0x476)](_0x361c2a){const _0x49a799=_0x335edf;var _0x390036,_0x254c78;const _0x510ff9=await this[_0x49a799(0x3ad)][_0x49a799(0x314)](this[_0x49a799(0x2a6)]),_0x284350=(_0x390036=_0x510ff9==null?void 0x0:_0x510ff9[_0x49a799(0x294)])!=null?_0x390036:[],_0x4c8e76=(_0x254c78=_0x510ff9==null?void 0x0:_0x510ff9[_0x49a799(0x372)])!=null?_0x254c78:null,_0x3db429=this['unitID'];try{this[_0x49a799(0x1b9)](_0x4c8e76,_0x284350);}catch(_0x1e3840){this['_logService'][_0x49a799(0x417)](_0x1e3840);}const _0x2c116c=this[_0x49a799(0x282)]();if(_0x361c2a){const _0x4ff6e3=Hs(this[_0x49a799(0x32e)],_0x3db429,this[_0x49a799(0x3cf)],_0x4c8e76,_0x284350,_0x2c116c);return _0x4ff6e3 instanceof K?_0x4ff6e3[_0x49a799(0x443)]():(_0x4ff6e3 instanceof X||_0x4ff6e3 instanceof Z)&&_0x4ff6e3[_0x49a799(0x48a)](),_0x4ff6e3;}return this[_0x49a799(0x32e)][_0x49a799(0x290)](ee,_0x3db429,this['_type'],_0x4c8e76,_0x284350,_0x2c116c);}['_replayCachedMutations'](_0x50f8c2,_0x459573){const _0x8c828f=_0x335edf;var _0x1c7a49,_0x49d4af;const _0x2807b0=this[_0x8c828f(0x48b)][_0x8c828f(0x2da)]['fetchThroughInterceptors'](this[_0x8c828f(0x48b)][_0x8c828f(0x2da)][_0x8c828f(0x1b0)]()[_0x8c828f(0x40c)]);(_0x1c7a49=_0x2807b0((_0x50f8c2==null?void 0x0:_0x50f8c2[_0x8c828f(0x294)])||[],null))==null||_0x1c7a49[_0x8c828f(0x2c9)](_0x55b3f2=>this[_0x8c828f(0x1ea)][_0x8c828f(0x38b)](_0x55b3f2['id'],_0x55b3f2['params'])),(_0x49d4af=_0x2807b0(_0x459573||[],null))==null||_0x49d4af[_0x8c828f(0x2c9)](_0x96eb41=>this['_commandService'][_0x8c828f(0x38b)](_0x96eb41['id'],_0x96eb41[_0x8c828f(0x27e)]));}};Je=Vt([p(0x3,_0x412e01(_0x5df9be)),p(0x4,_0x412e01(D)),p(0x5,_0x412e01(_0x15ea7c)),p(0x6,_0x412e01(_0x1c954b)),p(0x7,_0x412e01(_0x52844f)),p(0x8,_0x96d163),p(0x9,_0x5ad0bf),p(0xa,_0x42071b),p(0xb,_0x41b8c7),p(0xc,_0x21427f(tt))],Je);let bt=class extends Je{constructor(_0x29c40e,_0x1b9ddc,_0x54fb6d,_0x44c414,_0x581105,_0x203d69,_0x44c551,_0x22eda2,_0x9fe477,_0x1d3185,_0x139c3c,_0x2ba1ec,_0x326c47,_0x108661,_0x55d4e7,_0x18f8d6,_0x46a2ca){const _0x2f1b1e=_0x335edf;super(_0x29c40e,_0x54fb6d,_0x1b9ddc,_0x44c414,_0x581105,_0x203d69,_0x44c551,_0x22eda2,_0x326c47,_0x108661,_0x55d4e7,_0x18f8d6,_0x46a2ca),this[_0x2f1b1e(0x2a6)]=_0x29c40e,this[_0x2f1b1e(0x1db)]=_0x1b9ddc,this[_0x2f1b1e(0x375)]=_0x9fe477,this[_0x2f1b1e(0x19d)]=_0x1d3185,this['_docTransformSelectionsService']=_0x139c3c,this[_0x2f1b1e(0x47e)]=_0x2ba1ec;}[_0x335edf(0x282)](){const _0x5f4685=_0x335edf,_0x4ca772=super['_createHandler']();return _0x4ca772[_0x5f4685(0x2af)]=_0xf56003=>this[_0x5f4685(0x19d)][_0x5f4685(0x2c4)](_0xf56003),_0x4ca772['onTransformSelections']=_0x369a48=>this[_0x5f4685(0x179)]['transformSelections'](_0x369a48),_0x4ca772[_0x5f4685(0x303)]=_0x2cdcff=>this[_0x5f4685(0x47e)][_0x5f4685(0x404)](_0x2cdcff),_0x4ca772['onTransformRemoteChangesetByIMECache']=_0x73d723=>this['_docTransformIMECacheService'][_0x5f4685(0x237)](_0x73d723),_0x4ca772;}async[_0x335edf(0x1e9)](){const _0x3e1073=_0x335edf,_0xbfb95d=await super[_0x3e1073(0x1e9)]();return this[_0x3e1073(0x33b)](this[_0x3e1073(0x1ea)][_0x3e1073(0x340)]((_0x59e0a1,_0x349ad0)=>{const _0x141162=_0x3e1073;if(_0x59e0a1[_0x141162(0x1db)]!==_0x46033a['MUTATION']||_0x349ad0!=null&&_0x349ad0['fromCollab']||_0x349ad0!=null&&_0x349ad0[_0x141162(0x301)])return;const _0x671767=_0x59e0a1[_0x141162(0x27e)];if((_0x671767==null?void 0x0:_0x671767[_0x141162(0x214)])!==this[_0x141162(0x2a6)])return;let _0x1abc4e=_0x59e0a1;if(_0x1abc4e['id']===_0x335b03['id']){const _0x45bb1d=_0x1abc4e[_0x141162(0x27e)];_0x1abc4e={'id':_0x335b03['id'],'type':_0x46033a['MUTATION'],'params':{'unitId':_0x45bb1d['unitId'],'actions':_0x45bb1d[_0x141162(0x18d)],'textRanges':null}};}const _0x187a50=this[_0x141162(0x48b)][_0x141162(0x2da)][_0x141162(0x36c)](this[_0x141162(0x48b)][_0x141162(0x2da)][_0x141162(0x1b0)]()[_0x141162(0x487)])([_0x1abc4e],null)||[_0x1abc4e];this[_0x141162(0x3c8)](_0x187a50[0x0]);})),_0xbfb95d;}};bt=Vt([p(0x3,_0x412e01(_0x5df9be)),p(0x4,_0x412e01(D)),p(0x5,_0x412e01(_0x15ea7c)),p(0x6,_0x412e01(_0x1c954b)),p(0x7,_0x412e01(_0x52844f)),p(0x8,_0x412e01(_0x2a19d2)),p(0x9,_0x412e01(Ye)),p(0xa,_0x412e01(Xe)),p(0xb,_0x412e01(Bt)),p(0xc,_0x96d163),p(0xd,_0x5ad0bf),p(0xe,_0x42071b),p(0xf,_0x41b8c7),p(0x10,_0x21427f(tt))],bt);let Tt=class extends Je{constructor(_0x3b5f75,_0x360af6,_0x58e00a,_0x5eb6c2,_0x20710b,_0x81ef23,_0x595eb4,_0x2c0c1f,_0x1cc9b8,_0x98af64,_0x285a2e,_0x2d5c42,_0x3ad834,_0x552643){const _0x5a63fb=_0x335edf;super(_0x3b5f75,_0x58e00a,_0x360af6,_0x5eb6c2,_0x20710b,_0x81ef23,_0x595eb4,_0x2c0c1f,_0x98af64,_0x285a2e,_0x2d5c42,_0x3ad834,_0x552643),this[_0x5a63fb(0x2a6)]=_0x3b5f75,this[_0x5a63fb(0x1db)]=_0x360af6,this[_0x5a63fb(0x256)]=_0x1cc9b8;}[_0x335edf(0x282)](){const _0x1f85f3=_0x335edf,_0x19bb7d=super['_createHandler']();return _0x19bb7d[_0x1f85f3(0x1f2)]=_0x2e011b=>this[_0x1f85f3(0x256)]['transformSelections'](_0x2e011b),_0x19bb7d;}async[_0x335edf(0x1e9)](){const _0x3db6c7=_0x335edf,_0x332b67=await super[_0x3db6c7(0x1e9)]();return this[_0x3db6c7(0x33b)](this['_commandService'][_0x3db6c7(0x340)]((_0x56523e,_0x948a05)=>{const _0x3dff8e=_0x3db6c7;if(_0x56523e[_0x3dff8e(0x1db)]!==_0x46033a[_0x3dff8e(0x229)]||_0x948a05!=null&&_0x948a05['fromCollab']||_0x948a05!=null&&_0x948a05[_0x3dff8e(0x301)])return;const _0x30b3d5=_0x56523e[_0x3dff8e(0x27e)];if((_0x30b3d5==null?void 0x0:_0x30b3d5['unitId'])!==this[_0x3dff8e(0x2a6)])return;const _0x5a2f65=_0x56523e,_0xeb6aa9=this[_0x3dff8e(0x48b)][_0x3dff8e(0x2da)][_0x3dff8e(0x36c)](this[_0x3dff8e(0x48b)][_0x3dff8e(0x2da)][_0x3dff8e(0x1b0)]()[_0x3dff8e(0x487)])([_0x5a2f65],null)||[_0x5a2f65];this[_0x3dff8e(0x3c8)](_0xeb6aa9[0x0]);})),_0x332b67;}};Tt=Vt([p(0x3,_0x412e01(_0x5df9be)),p(0x4,_0x412e01(D)),p(0x5,_0x412e01(_0x15ea7c)),p(0x6,_0x412e01(_0x1c954b)),p(0x7,_0x412e01(_0x52844f)),p(0x8,_0x412e01(Ke)),p(0x9,_0x96d163),p(0xa,_0x5ad0bf),p(0xb,_0x42071b),p(0xc,_0x41b8c7),p(0xd,_0x21427f(tt))],Tt);var Sr=Object[_0x335edf(0x226)],pr=Object['getOwnPropertyDescriptor'],vr=(_0x2de604,_0x44a5fa,_0x4650a1,_0x148de1)=>{const _0x4b8867=_0x335edf;for(var _0xaa5e31=_0x148de1>0x1?void 0x0:_0x148de1?pr(_0x44a5fa,_0x4650a1):_0x44a5fa,_0x1bc8c2=_0x2de604[_0x4b8867(0x2d5)]-0x1,_0x4da2d4;_0x1bc8c2>=0x0;_0x1bc8c2--)(_0x4da2d4=_0x2de604[_0x1bc8c2])&&(_0xaa5e31=(_0x148de1?_0x4da2d4(_0x44a5fa,_0x4650a1,_0xaa5e31):_0x4da2d4(_0xaa5e31))||_0xaa5e31);return _0x148de1&&_0xaa5e31&&Sr(_0x44a5fa,_0x4650a1,_0xaa5e31),_0xaa5e31;},lt=(_0x214e0e,_0x544196)=>(_0x56b243,_0x5f47d2)=>_0x544196(_0x56b243,_0x5f47d2,_0x214e0e);let Ae=class extends _0x832c1b{constructor(_0x19eb44,_0x237314,_0xfabf1e){const _0x4f765e=_0x335edf;super(),l(this,_0x4f765e(0x206),new Map()),l(this,_0x4f765e(0x1f7),new _0x509a7c()),(this[_0x4f765e(0x32e)]=_0x19eb44,this[_0x4f765e(0x203)]=_0x237314,this[_0x4f765e(0x44a)]=_0xfabf1e,this[_0x4f765e(0x1e9)]());}[_0x335edf(0x1b5)](){const _0x1cf59e=_0x335edf;super[_0x1cf59e(0x1b5)](),this['_entities'][_0x1cf59e(0x2c9)](_0x318fc5=>_0x318fc5[_0x1cf59e(0x1b5)]()),this[_0x1cf59e(0x206)]['clear']();}[_0x335edf(0x25e)](_0x377bcf){const _0x4591cd=_0x335edf;var _0x4b8cff;return(_0x4b8cff=this[_0x4591cd(0x206)][_0x4591cd(0x242)](_0x377bcf))!=null?_0x4b8cff:null;}[_0x335edf(0x17a)](_0x4132b6){const _0x365301=_0x335edf,_0x224d67=this[_0x365301(0x25e)](_0x4132b6);return _0x224d67?_0x465c56(_0x224d67):this[_0x365301(0x1f7)][_0x365301(0x266)](_0x3e7870(_0x5377e2=>_0x5377e2[_0x365301(0x2a6)]===_0x4132b6));}[_0x335edf(0x1e9)](){const _0x361160=_0x335edf;this['_univerInstanceService'][_0x361160(0x2e8)](_0xb4bf4[_0x361160(0x391)])[_0x361160(0x266)](_0x10cdea(this['dispose$']),_0x2522a2(0x10))[_0x361160(0x1bc)](async _0x2101bf=>{const _0x57632b=_0x361160,_0x50cf69=_0x2101bf[_0x57632b(0x1e7)](),_0x46b15b=await this['_startCollaboration'](_0x50cf69,H[_0x57632b(0x391)]);this['_entities'][_0x57632b(0x3e2)](_0x50cf69,_0x46b15b);}),this[_0x361160(0x44a)][_0x361160(0x2e8)](_0xb4bf4['UNIVER_DOC'])[_0x361160(0x266)](_0x10cdea(this[_0x361160(0x1d9)]),_0x2522a2(0x10))[_0x361160(0x266)](_0x3e7870(_0x18ca75=>!_0x18ca75[_0x361160(0x1e7)]()['startsWith']('__')))[_0x361160(0x1bc)](async _0x224b64=>{const _0x2a9e94=_0x361160,_0x9e43bc=_0x224b64[_0x2a9e94(0x1e7)](),_0x31deeb=await this['_startCollaboration'](_0x9e43bc,H[_0x2a9e94(0x3bf)]);this[_0x2a9e94(0x206)][_0x2a9e94(0x3e2)](_0x9e43bc,_0x31deeb);}),_0x249fdc(this[_0x361160(0x44a)]['getTypeOfUnitDisposed$'](_0xb4bf4[_0x361160(0x391)]),this[_0x361160(0x44a)][_0x361160(0x221)](_0xb4bf4[_0x361160(0x3bf)]))[_0x361160(0x266)](_0x10cdea(this['dispose$']))[_0x361160(0x1bc)](_0x4348bd=>{const _0x42332f=_0x361160,_0x57361d=_0x4348bd[_0x42332f(0x1e7)](),_0x3bcaaf=this[_0x42332f(0x206)][_0x42332f(0x242)](_0x57361d);_0x3bcaaf&&(_0x3bcaaf[_0x42332f(0x1b5)](),this[_0x42332f(0x206)][_0x42332f(0x1cb)](_0x57361d));});}async[_0x335edf(0x4d5)](_0x3eff1d,_0x308be7){const _0x37e8cb=_0x335edf,_0x42978b=await this[_0x37e8cb(0x203)][_0x37e8cb(0x4c3)](_0x3eff1d),_0x496e39=this[_0x37e8cb(0x32e)]['createInstance'](this[_0x37e8cb(0x1e6)](_0x308be7),_0x3eff1d,_0x308be7,_0x42978b);return await _0x496e39[_0x37e8cb(0x3b7)](),this[_0x37e8cb(0x1f7)][_0x37e8cb(0x1ab)](_0x496e39),_0x496e39;}['_getCtorByUniverType'](_0x531e3e){const _0xf5ac8d=_0x335edf;switch(_0x531e3e){case H[_0xf5ac8d(0x3bf)]:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0xf5ac8d(0x38d)+_0x531e3e);}}};Ae=vr([lt(0x0,_0x412e01(_0x5df9be)),lt(0x1,_0x412e01(ce)),lt(0x2,_0x2bb140)],Ae);const _s=[_0x335edf(0x36a),'jiqing500',_0x335edf(0x35c),'red300',_0x335edf(0x18f),_0x335edf(0x22e)];class Ft extends _0x443103{constructor(){const _0x51b37e=_0x335edf;super(...arguments),l(this,'_assignedColors',new Map()),l(this,_0x51b37e(0x445),0x0);}[_0x335edf(0x366)](_0x2f94b9){const _0x1b975b=_0x335edf;if(this[_0x1b975b(0x318)][_0x1b975b(0x353)](_0x2f94b9))return this[_0x1b975b(0x318)][_0x1b975b(0x242)](_0x2f94b9);const _0x306e22=_s[this[_0x1b975b(0x445)]];return this[_0x1b975b(0x445)]=(this['_colorIndex']+0x1)%_s['length'],this[_0x1b975b(0x318)][_0x1b975b(0x3e2)](_0x2f94b9,_0x306e22),_0x306e22;}}var Ir=Object['defineProperty'],Er=Object[_0x335edf(0x2e4)],Cr=(_0x4be3fc,_0x112ce2,_0x35a6e4,_0x28da17)=>{const _0x8a8db6=_0x335edf;for(var _0x5134d4=_0x28da17>0x1?void 0x0:_0x28da17?Er(_0x112ce2,_0x35a6e4):_0x112ce2,_0x418097=_0x4be3fc[_0x8a8db6(0x2d5)]-0x1,_0x3046c7;_0x418097>=0x0;_0x418097--)(_0x3046c7=_0x4be3fc[_0x418097])&&(_0x5134d4=(_0x28da17?_0x3046c7(_0x112ce2,_0x35a6e4,_0x5134d4):_0x3046c7(_0x5134d4))||_0x5134d4);return _0x28da17&&_0x5134d4&&Ir(_0x112ce2,_0x35a6e4,_0x5134d4),_0x5134d4;},se=(_0xd15066,_0x1b5eab)=>(_0x38a8ed,_0x3da899)=>_0x1b5eab(_0x38a8ed,_0x3da899,_0xd15066);const br=0x12c,Tr=0x64;let Rt=class extends _0x832c1b{constructor(_0x202434,_0xb58950,_0x555363,_0x55befd,_0x4f97f4,_0x547867,_0x4b7f1d,_0x1a95bc,_0x52cfc5){const _0x3b1cb3=_0x335edf;super(),l(this,_0x3b1cb3(0x34c),!0x1),l(this,'_init',!0x1),l(this,_0x3b1cb3(0x2d7),new _0x5b0208(new Map())),l(this,_0x3b1cb3(0x3ea),this[_0x3b1cb3(0x2d7)][_0x3b1cb3(0x40b)]()),l(this,_0x3b1cb3(0x45a),new _0x5b0208([])),l(this,'roomMembers$',this[_0x3b1cb3(0x45a)]['pipe'](_0x4a40f5(br))),l(this,_0x3b1cb3(0x326),_0x57de21(_0x49ba3c=>{const _0x2f0cdf=_0x3b1cb3,_0x182333={'eventID':_0x5bec90[_0x2f0cdf(0x2a7)],'data':{'unitID':this[_0x2f0cdf(0x2a6)],'memberID':this['_session'][_0x2f0cdf(0x48f)](),'selection':xs(_0x49ba3c)}};this[_0x2f0cdf(0x1be)][_0x2f0cdf(0x486)](_0x182333,this[_0x2f0cdf(0x2a6)]);},Tr)),(this[_0x3b1cb3(0x2a6)]=_0x202434,this[_0x3b1cb3(0x1be)]=_0xb58950,this[_0x3b1cb3(0x32e)]=_0x555363,this['_colorAssignService']=_0x55befd,this[_0x3b1cb3(0x225)]=_0x4f97f4,this[_0x3b1cb3(0x1d6)]=_0x547867,this[_0x3b1cb3(0x184)]=_0x4b7f1d,this['_univerInstanceService']=_0x1a95bc,this[_0x3b1cb3(0x1ea)]=_0x52cfc5);}get[_0x335edf(0x17b)](){const _0x5b8b03=_0x335edf;return this[_0x5b8b03(0x2d7)][_0x5b8b03(0x309)]();}get[_0x335edf(0x426)](){const _0x2d36f9=_0x335edf;return this[_0x2d36f9(0x45a)][_0x2d36f9(0x309)]();}[_0x335edf(0x1b5)](){const _0x210040=_0x335edf;super[_0x210040(0x1b5)](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$']['complete'](),this[_0x210040(0x45a)][_0x210040(0x1ab)]([]),this[_0x210040(0x45a)]['complete']();}[_0x335edf(0x3b7)](){const _0x1199f0=_0x335edf;this['_init']||(this[_0x1199f0(0x1e9)]=!0x0,this['_session'][_0x1199f0(0x4c7)]['pipe'](_0x10cdea(this[_0x1199f0(0x1d9)]))[_0x1199f0(0x1bc)](_0x5ea633=>{const _0x2ff74d=_0x1199f0;_0x5ea633===G[_0x2ff74d(0x1fa)]?this['_toggleOnline']():this[_0x2ff74d(0x4d4)]();}),this[_0x1199f0(0x1be)][_0x1199f0(0x359)][_0x1199f0(0x266)](_0x10cdea(this['dispose$']))[_0x1199f0(0x1bc)](_0x22db24=>{const _0x57caf9=_0x1199f0,_0x18fd69=_0x22db24[_0x57caf9(0x345)];_0x18fd69===_0x5bec90['UPDATE_CURSOR']&&this[_0x57caf9(0x319)](_0x22db24),_0x18fd69===_0x5bec90['USERS_LEAVE']&&this[_0x57caf9(0x31e)](_0x22db24);}),this[_0x1199f0(0x33b)](this[_0x1199f0(0x1ea)]['onCommandExecuted'](_0x2aa3dd=>{const _0x505f14=_0x1199f0,_0x47f075=_0x2aa3dd[_0x505f14(0x27e)];_0x47f075!=null&&this['_online']&&_0x2aa3dd['id']===_0x5c8846['id']&&_0x47f075[_0x505f14(0x214)]===this['unitID']&&_0x47f075[_0x505f14(0x277)]===!0x1&&this[_0x505f14(0x326)](_0x47f075[_0x505f14(0x45b)]);})),this['_syncEditingCollabCursorService'][_0x1199f0(0x250)][_0x1199f0(0x266)](_0x10cdea(this[_0x1199f0(0x1d9)]))[_0x1199f0(0x1bc)](_0x5db15f=>{const _0x3a7ce1=_0x1199f0;if((_0x5db15f==null?void 0x0:_0x5db15f[_0x3a7ce1(0x2a6)])!==this['unitID'])return;const _0x2d3b95={'eventID':_0x5bec90[_0x3a7ce1(0x2a7)],'data':_0x5db15f};this['_onCursorUpdate'](_0x2d3b95);}),this[_0x1199f0(0x33b)](this['_commandService'][_0x1199f0(0x340)](_0x464f56=>{const _0x319c71=_0x1199f0;if(_0x464f56[_0x319c71(0x27e)]==null)return;const _0x52fe35=_0x464f56[_0x319c71(0x27e)];if(_0x464f56['id']!==_0x335b03['id']||_0x52fe35[_0x319c71(0x214)]!==this[_0x319c71(0x2a6)])return;const _0x1cbf44={'id':'doc.mutation.rich-text-editing','params':_0x52fe35},_0x22b521=this[_0x319c71(0x17b)];for(const [_0xa18319,_0x409712]of _0x22b521){const _0x48ac96={'id':_0x319c71(0x438),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x409712['ranges']}},_0x262eb9=this[_0x319c71(0x184)]['transformMutation'](_0x1cbf44,_0x48ac96,!0x1);if(_0x5ef866(_0x262eb9))throw _0x262eb9[_0x319c71(0x417)];_0x22b521[_0x319c71(0x3e2)](_0xa18319,{..._0x409712,'ranges':_0x262eb9[_0x319c71(0x1cd)][_0x319c71(0x27e)][_0x319c71(0x490)]});}queueMicrotask(()=>{const _0x5480ed=_0x319c71;this['_cursorInfo$'][_0x5480ed(0x1ab)](_0x22b521);});})));}['_onCursorUpdate'](_0x1666c0){const _0x169cf7=_0x335edf;var _0x9dfeef,_0x4e4456;const {memberID:_0x1a97e3,selection:_0x2081a0}=_0x1666c0[_0x169cf7(0x474)],_0x56c652=or(_0x2081a0),_0x4e51ac=(_0x4e4456=(_0x9dfeef=this[_0x169cf7(0x225)][_0x169cf7(0x3ff)](this[_0x169cf7(0x2a6)],_0x1a97e3))==null?void 0x0:_0x9dfeef['name'])!=null?_0x4e4456:'Unknown\x20user',_0x3b4f67={'color':this[_0x169cf7(0x441)][_0x169cf7(0x366)](_0x1a97e3),'name':_0x4e51ac,'ranges':_0x56c652},_0x3676b5=this[_0x169cf7(0x17b)];_0x3676b5['set'](_0x1a97e3,_0x3b4f67),this[_0x169cf7(0x2d7)][_0x169cf7(0x1ab)](_0x3676b5);}[_0x335edf(0x31e)](_0x5bd2da){const _0x54817c=_0x335edf,{memberID:_0x3dd84a}=_0x5bd2da['data'],_0x1452ce=this[_0x54817c(0x17b)];_0x1452ce[_0x54817c(0x1cb)](_0x3dd84a),this['_cursorInfo$']['next'](_0x1452ce);}[_0x335edf(0x24e)](){const _0x447961=_0x335edf;var _0x1cf723;if(this[_0x447961(0x34c)]=!0x0,((_0x1cf723=this[_0x447961(0x44a)][_0x447961(0x22d)]())==null?void 0x0:_0x1cf723[_0x447961(0x1e7)]())!==this['unitID'])return;const _0x12b844=this[_0x447961(0x32e)][_0x447961(0x242)](_0x394a55)[_0x447961(0x481)]();Array['isArray'](_0x12b844)&&_0x12b844[_0x447961(0x2d5)]>0x0&&this['_updateLocalCursor'](_0x12b844);}[_0x335edf(0x4d4)](){this['_online']=!0x1;}};Rt=Cr([se(0x2,_0x412e01(_0x5df9be)),se(0x3,_0x412e01(Ft)),se(0x4,_0x412e01(ae)),se(0x5,_0x412e01(Bt)),se(0x6,_0x245d4a),se(0x7,_0x2bb140),se(0x8,_0x5ad0bf)],Rt);var Rr=Object[_0x335edf(0x226)],Or=Object['getOwnPropertyDescriptor'],Dr=(_0x206dcb,_0x975ad7,_0xe52dc2,_0x36efe2)=>{const _0x25c2d9=_0x335edf;for(var _0x43f217=_0x36efe2>0x1?void 0x0:_0x36efe2?Or(_0x975ad7,_0xe52dc2):_0x975ad7,_0x57f4a2=_0x206dcb[_0x25c2d9(0x2d5)]-0x1,_0x5c20c0;_0x57f4a2>=0x0;_0x57f4a2--)(_0x5c20c0=_0x206dcb[_0x57f4a2])&&(_0x43f217=(_0x36efe2?_0x5c20c0(_0x975ad7,_0xe52dc2,_0x43f217):_0x5c20c0(_0x43f217))||_0x43f217);return _0x36efe2&&_0x43f217&&Rr(_0x975ad7,_0xe52dc2,_0x43f217),_0x43f217;},fe=(_0x485055,_0x23a6e1)=>(_0x19a66,_0x53236f)=>_0x23a6e1(_0x19a66,_0x53236f,_0x485055);const wr=0x12c,Pr=0x64,yr=()=>{let _0x2af630=[],_0x8e085f=!0x1;return _0x4d3b02=>{const _0x2170ee=_0x1425;_0x2af630[_0x2170ee(0x3ed)](_0x4d3b02),_0x8e085f||(_0x8e085f=!0x0,setTimeout(()=>{const _0x5e8393=_0x2170ee;_0x2af630[_0x5e8393(0x2c9)](_0x1e50d1=>_0x1e50d1()),_0x2af630=[],_0x8e085f=!0x1;}));};};let Ot=class extends _0x832c1b{constructor(_0x913ca0,_0xd25c36,_0xdf9e77,_0x2bddf4,_0x26eefe,_0x16ab58,_0x2cf444,_0x2d09df){const _0x351578=_0x335edf;super(),l(this,_0x351578(0x34c),!0x1),l(this,_0x351578(0x1e9),!0x1),l(this,'_cursorInfo$',new _0x5b0208(new Map())),l(this,_0x351578(0x3ea),this[_0x351578(0x2d7)][_0x351578(0x40b)]()),l(this,'_roomMembers$',new _0x5b0208([])),l(this,_0x351578(0x421),this['_roomMembers$'][_0x351578(0x266)](_0x4a40f5(wr))),l(this,_0x351578(0x326),_0x57de21((_0x201238,_0x231789)=>{const _0x33aa02=_0x351578,_0xb65e92={'eventID':_0x5bec90[_0x33aa02(0x2a7)],'data':{'unitID':this[_0x33aa02(0x2a6)],'memberID':this[_0x33aa02(0x1be)][_0x33aa02(0x48f)](),'selection':_0x217911(_0x201238,_0x231789[_0x33aa02(0x244)])}};this[_0x33aa02(0x1be)][_0x33aa02(0x486)](_0xb65e92,this['unitID']);},Pr)),(this['unitID']=_0x913ca0,this['_session']=_0xd25c36,this[_0x351578(0x32e)]=_0xdf9e77,this['_colorAssignService']=_0x2bddf4,this[_0x351578(0x225)]=_0x26eefe,this[_0x351578(0x44a)]=_0x16ab58,this[_0x351578(0x1ea)]=_0x2cf444,this['_refRangeService']=_0x2d09df);}get[_0x335edf(0x17b)](){const _0x447671=_0x335edf;return this['_cursorInfo$'][_0x447671(0x309)]();}get[_0x335edf(0x426)](){const _0x2e8ee5=_0x335edf;return this[_0x2e8ee5(0x45a)][_0x2e8ee5(0x309)]();}[_0x335edf(0x1b5)](){const _0x1e44ac=_0x335edf;super[_0x1e44ac(0x1b5)](),this['_cursorInfo$'][_0x1e44ac(0x1ab)](new Map()),this[_0x1e44ac(0x2d7)]['complete'](),this['_roomMembers$'][_0x1e44ac(0x1ab)]([]),this[_0x1e44ac(0x45a)]['complete']();}[_0x335edf(0x3b7)](){const _0x2d8d47=_0x335edf;this['_init']||(this[_0x2d8d47(0x1e9)]=!0x0,this[_0x2d8d47(0x1be)][_0x2d8d47(0x4c7)][_0x2d8d47(0x266)](_0x10cdea(this[_0x2d8d47(0x1d9)]))[_0x2d8d47(0x1bc)](_0x3073b2=>{const _0x314580=_0x2d8d47;_0x3073b2===G[_0x314580(0x1fa)]?this['_toggleOnline']():this[_0x314580(0x4d4)]();}),this[_0x2d8d47(0x1be)][_0x2d8d47(0x359)][_0x2d8d47(0x266)](_0x10cdea(this[_0x2d8d47(0x1d9)]))['subscribe'](_0x2f7fb0=>{const _0x44f8a8=_0x2d8d47,_0x3850e8=_0x2f7fb0[_0x44f8a8(0x345)];_0x3850e8===_0x5bec90[_0x44f8a8(0x2a7)]&&this[_0x44f8a8(0x319)](_0x2f7fb0),_0x3850e8===_0x5bec90[_0x44f8a8(0x4bb)]&&this[_0x44f8a8(0x31e)](_0x2f7fb0);}),this['_onRefRangeChange'](),this[_0x2d8d47(0x33b)](this[_0x2d8d47(0x1ea)][_0x2d8d47(0x340)](_0x1ec79b=>{const _0x497086=_0x2d8d47;if(this[_0x497086(0x34c)]&&_0x1ec79b['id']===_0x90af15['id']&&_0x1ec79b['params'][_0x497086(0x214)]===this[_0x497086(0x2a6)]){const _0x2d18f9=_0x1ec79b['params'];this[_0x497086(0x326)](_0x2d18f9[_0x497086(0x48e)],_0x2d18f9[_0x497086(0x34e)][0x0]);}})));}['_onCursorUpdate'](_0x50f403){const _0x3f9ad4=_0x335edf;var _0x190d59,_0x4051d4;const {memberID:_0x42201f,selection:_0x21e31b}=_0x50f403['data'],{sheetName:_0x15c43a,range:_0x2d4ae2}=_0x5bfc85(_0x21e31b),_0x56bbc5={'name':(_0x4051d4=(_0x190d59=this[_0x3f9ad4(0x225)][_0x3f9ad4(0x3ff)](this[_0x3f9ad4(0x2a6)],_0x42201f))==null?void 0x0:_0x190d59[_0x3f9ad4(0x202)])!=null?_0x4051d4:'Unknown\x20user','range':this[_0x3f9ad4(0x311)](_0x15c43a,_0x2d4ae2),'sheetID':_0x15c43a,'color':this['_colorAssignService'][_0x3f9ad4(0x366)](_0x42201f),'selection':_0x21e31b},_0x3806d9=this[_0x3f9ad4(0x17b)];_0x3806d9[_0x3f9ad4(0x3e2)](_0x42201f,_0x56bbc5),this[_0x3f9ad4(0x2d7)][_0x3f9ad4(0x1ab)](_0x3806d9);}[_0x335edf(0x31e)](_0x38e70b){const _0x3c4546=_0x335edf,{memberID:_0x1ff311}=_0x38e70b[_0x3c4546(0x474)],_0x18b27b=this['cursorInfo'];_0x18b27b[_0x3c4546(0x1cb)](_0x1ff311),this[_0x3c4546(0x2d7)]['next'](_0x18b27b);}[_0x335edf(0x311)](_0x22572d,_0x167b70){const _0x79cdae=_0x335edf;var _0x2797ec,_0x5158fe;const _0x5ebced=(_0x5158fe=(_0x2797ec=this['_univerInstanceService'][_0x79cdae(0x2db)](this[_0x79cdae(0x2a6)]))==null?void 0x0:_0x2797ec['getSheetBySheetId'](_0x22572d))==null?void 0x0:_0x5158fe[_0x79cdae(0x35d)]();return(_0x5ebced==null?void 0x0:_0x5ebced[_0x79cdae(0x342)](_0x93cca0=>_0x2e44b1[_0x79cdae(0x199)](_0x93cca0,_0x167b70)))||_0x167b70;}['_onRefRangeChange'](){const _0x2fdc06=_0x335edf,_0x1d335d=new _0x168252(),_0x171c86=yr(),_0x55cc89=()=>{const _0x2ab34d=_0x1425;_0x1d335d[_0x2ab34d(0x1b5)]();const _0x41abec=(_0x1c9101,_0x40985c,_0x3caf68,_0x3a711a)=>{const _0x185586=_0x2ab34d;let _0x3a8dfc=[];switch(_0x1c9101['id']){case _0x4ff7ae[_0x185586(0x352)]:{_0x3a8dfc=_0x14e8f1(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae[_0x185586(0x40d)]:{_0x3a8dfc=_0xbf7ee9(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae[_0x185586(0x30d)]:{_0x3a8dfc=_0x356315(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae[_0x185586(0x3aa)]:{_0x3a8dfc=_0x2d5448(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae['InsertRangeMoveRightCommandId']:{_0x3a8dfc=_0xec75e6(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae[_0x185586(0x346)]:{_0x3a8dfc=_0x5914c8(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae[_0x185586(0x3af)]:{_0x3a8dfc=_0xb62b92(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae[_0x185586(0x2eb)]:{_0x3a8dfc=_0x1dc8d2(_0x1c9101,_0x3a711a);break;}case _0x4ff7ae[_0x185586(0x275)]:{_0x3a8dfc=_0x111a21(_0x1c9101,_0x3a711a);break;}}const _0x32d017=_0x504ff5(_0x3a8dfc,_0x3a711a),_0x142f18=this[_0x185586(0x17b)][_0x185586(0x242)](_0x40985c);if(_0x142f18&&_0x32d017){const _0x30ca48={..._0x142f18,'range':_0x32d017};this['cursorInfo']['set'](_0x40985c,_0x30ca48),_0x171c86(()=>{const _0xe3e322=_0x185586,_0x58abd1=this[_0xe3e322(0x3f8)]['registerRefRange'](_0x32d017,_0x48798d=>(_0x58abd1[_0xe3e322(0x1b5)](),_0x41abec(_0x48798d,_0x40985c,_0x3caf68,_0x32d017)));_0x1d335d['add'](_0x58abd1);});}return{'redos':[],'undos':[]};};this[_0x2ab34d(0x17b)]['forEach']((_0x46b969,_0x1dbee)=>{const _0x52f0f0=_0x2ab34d,{range:_0x1b84b0,sheetID:_0xca227b}=_0x46b969,_0x348f4a=this[_0x52f0f0(0x3f8)][_0x52f0f0(0x433)](_0x1b84b0,_0x4e3172=>(_0x348f4a[_0x52f0f0(0x1b5)](),_0x41abec(_0x4e3172,_0x1dbee,_0xca227b,_0x1b84b0)));_0x1d335d['add'](_0x348f4a);});};this['disposeWithMe'](_0x1afe37(this[_0x2fdc06(0x2d7)][_0x2fdc06(0x1bc)](()=>{_0x55cc89();})));}[_0x335edf(0x24e)](){const _0x5c3bdb=_0x335edf;var _0x35c001,_0x44032;if(this[_0x5c3bdb(0x34c)]=!0x0,((_0x35c001=this[_0x5c3bdb(0x44a)]['getFocusedUnit']())==null?void 0x0:_0x35c001['getUnitId']())!==this[_0x5c3bdb(0x2a6)])return;const _0x268632=(_0x44032=this['_injector'][_0x5c3bdb(0x242)](_0x5a4af5)[_0x5c3bdb(0x16a)]())==null?void 0x0:_0x44032[0x0],_0x4b590f=this[_0x5c3bdb(0x44a)][_0x5c3bdb(0x37c)](_0xb4bf4[_0x5c3bdb(0x391)])[_0x5c3bdb(0x330)]();_0x268632&&_0x4b590f&&this[_0x5c3bdb(0x326)](_0x4b590f[_0x5c3bdb(0x44b)](),_0x268632);}[_0x335edf(0x4d4)](){const _0x3d1395=_0x335edf;this[_0x3d1395(0x34c)]=!0x1;}};Ot=Dr([fe(0x2,_0x412e01(_0x5df9be)),fe(0x3,_0x412e01(Ft)),fe(0x4,_0x412e01(ae)),fe(0x5,_0x2bb140),fe(0x6,_0x5ad0bf),fe(0x7,_0x412e01(_0x933780))],Ot);var Nr=Object[_0x335edf(0x226)],Ur=Object[_0x335edf(0x2e4)],Mr=(_0x4f9d25,_0x2bcbed,_0x22fc1d,_0x4e0dc4)=>{const _0x5be174=_0x335edf;for(var _0x5758c8=_0x4e0dc4>0x1?void 0x0:_0x4e0dc4?Ur(_0x2bcbed,_0x22fc1d):_0x2bcbed,_0x256a53=_0x4f9d25[_0x5be174(0x2d5)]-0x1,_0x2da03d;_0x256a53>=0x0;_0x256a53--)(_0x2da03d=_0x4f9d25[_0x256a53])&&(_0x5758c8=(_0x4e0dc4?_0x2da03d(_0x2bcbed,_0x22fc1d,_0x5758c8):_0x2da03d(_0x5758c8))||_0x5758c8);return _0x4e0dc4&&_0x5758c8&&Nr(_0x2bcbed,_0x22fc1d,_0x5758c8),_0x5758c8;},_t=(_0x466b52,_0x3aaca8)=>(_0x48aa78,_0x389188)=>_0x3aaca8(_0x48aa78,_0x389188,_0x466b52);let pe=class extends _0x832c1b{constructor(_0x187dc4,_0x1638c1,_0x194e17){const _0x3082cb=_0x335edf;super(),l(this,_0x3082cb(0x206),new Map()),l(this,_0x3082cb(0x1f7),new _0x509a7c()),(this[_0x3082cb(0x44a)]=_0x187dc4,this[_0x3082cb(0x32e)]=_0x1638c1,this[_0x3082cb(0x203)]=_0x194e17,this[_0x3082cb(0x1e9)]());}['dispose'](){const _0x2c71fa=_0x335edf;super[_0x2c71fa(0x1b5)](),this[_0x2c71fa(0x1f7)][_0x2c71fa(0x22b)](),this['_entities'][_0x2c71fa(0x2c9)](_0x4da3e5=>_0x4da3e5[_0x2c71fa(0x1b5)]());}[_0x335edf(0x436)](_0x26c9fa){const _0x53ade0=_0x335edf;return this[_0x53ade0(0x206)][_0x53ade0(0x353)](_0x26c9fa)?this[_0x53ade0(0x206)]['get'](_0x26c9fa)['cursorInfo$']:this[_0x53ade0(0x1f7)]['pipe'](_0x14526e(_0x421c1a=>_0x421c1a['unitID']===_0x26c9fa),_0x12faf3(_0x5b5d37=>_0x5b5d37[_0x53ade0(0x3ea)]));}[_0x335edf(0x1e9)](){const _0x430628=_0x335edf;this[_0x430628(0x44a)][_0x430628(0x2e8)](_0xb4bf4[_0x430628(0x391)])[_0x430628(0x266)](_0x10cdea(this['dispose$']))[_0x430628(0x1bc)](async _0x2b9fd2=>{const _0x4dcea8=_0x430628,_0x3063e1=_0x2b9fd2['getUnitId'](),_0x230137=await this['_startSheetCollabCursor'](_0x3063e1);this[_0x4dcea8(0x1f7)][_0x4dcea8(0x1ab)](_0x230137),this[_0x4dcea8(0x206)]['set'](_0x3063e1,_0x230137);}),this[_0x430628(0x44a)]['getTypeOfUnitAdded$'](_0xb4bf4[_0x430628(0x3bf)])['pipe'](_0x10cdea(this['dispose$']))[_0x430628(0x266)](_0x14526e(_0x11557c=>!_0x11557c['getUnitId']()[_0x430628(0x20d)]('__')))[_0x430628(0x1bc)](async _0x10b4eb=>{const _0x5205bd=_0x430628,_0x1c2797=_0x10b4eb[_0x5205bd(0x1e7)](),_0x3465e7=await this[_0x5205bd(0x1a1)](_0x1c2797);this[_0x5205bd(0x1f7)][_0x5205bd(0x1ab)](_0x3465e7),this[_0x5205bd(0x206)][_0x5205bd(0x3e2)](_0x1c2797,_0x3465e7);}),_0x249fdc(this['_univerInstanceService'][_0x430628(0x221)](_0xb4bf4[_0x430628(0x3bf)]),this[_0x430628(0x44a)][_0x430628(0x221)](_0xb4bf4[_0x430628(0x391)]))[_0x430628(0x266)](_0x10cdea(this['dispose$']))[_0x430628(0x1bc)](_0x46cd84=>{const _0x3a8eda=_0x430628,_0x295c1f=_0x46cd84[_0x3a8eda(0x1e7)](),_0x41c4bf=this[_0x3a8eda(0x206)][_0x3a8eda(0x242)](_0x295c1f);_0x41c4bf&&(_0x41c4bf[_0x3a8eda(0x1b5)](),this['_entities'][_0x3a8eda(0x1cb)](_0x295c1f));});}async[_0x335edf(0x461)](_0x5319a2){const _0x1ec1df=_0x335edf,_0x5cc3ba=await this[_0x1ec1df(0x203)][_0x1ec1df(0x4c3)](_0x5319a2),_0x95175b=this['_injector'][_0x1ec1df(0x290)](Ot,_0x5319a2,_0x5cc3ba);return _0x95175b[_0x1ec1df(0x3b7)](),_0x95175b;}async['_startDocCollabCursor'](_0x44af9e){const _0x24ec97=_0x335edf,_0x3eb42c=await this[_0x24ec97(0x203)][_0x24ec97(0x4c3)](_0x44af9e),_0x476834=this['_injector'][_0x24ec97(0x290)](Rt,_0x44af9e,_0x3eb42c);return _0x476834[_0x24ec97(0x3b7)](),_0x476834;}};pe=Mr([_t(0x0,_0x2bb140),_t(0x1,_0x412e01(_0x5df9be)),_t(0x2,_0x412e01(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function _0x1425(_0x358121,_0xe86481){const _0x4fd15f=_0x4fd1();return _0x1425=function(_0x1425e3,_0x42e642){_0x1425e3=_0x1425e3-0x165;let _0x2b4098=_0x4fd15f[_0x1425e3];return _0x2b4098;},_0x1425(_0x358121,_0xe86481);}function Lr(_0x490963,_0x530272){const _0x133628=_0x335edf;let {radius:_0x204e85,width:_0x4bc3be,height:_0x18a0a5}=_0x530272;_0x204e85=_0x204e85!=null?_0x204e85:0x0,_0x4bc3be=_0x4bc3be!=null?_0x4bc3be:0x1e,_0x18a0a5=_0x18a0a5!=null?_0x18a0a5:0x1e;let _0x3522de=0x0,_0x78db35=0x0,_0x1a472c=0x0;_0x3522de=_0x78db35=_0x1a472c=Math[_0x133628(0x37e)](_0x204e85,_0x4bc3be/0x2,_0x18a0a5/0x2),_0x490963['beginPath'](),_0x490963[_0x133628(0x3dd)](_0x3522de,0x0),_0x490963[_0x133628(0x20b)](_0x4bc3be-_0x78db35,0x0),_0x490963[_0x133628(0x1d3)](_0x4bc3be-_0x78db35,_0x78db35,_0x78db35,Math['PI']*0x3/0x2,0x0,!0x1),_0x490963[_0x133628(0x20b)](_0x4bc3be,_0x18a0a5-_0x1a472c),_0x490963['arc'](_0x4bc3be-_0x1a472c,_0x18a0a5-_0x1a472c,_0x1a472c,0x0,Math['PI']/0x2,!0x1),_0x490963['lineTo'](0x0,_0x18a0a5),_0x490963[_0x133628(0x20b)](0x0,_0x3522de),_0x490963[_0x133628(0x1d3)](_0x3522de,_0x3522de,_0x3522de,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x490963['closePath'](),_0x530272[_0x133628(0x32d)]&&(_0x490963[_0x133628(0x439)](),_0x490963[_0x133628(0x35e)]=_0x530272['fill'],_0x530272[_0x133628(0x32c)]==='evenodd'?_0x490963[_0x133628(0x32d)](_0x133628(0x1de)):_0x490963[_0x133628(0x32d)](),_0x490963[_0x133628(0x4b9)]());}class st extends _0x9b6639{constructor(_0x58d1fa,_0x433ef0){const _0x57d836=_0x335edf;super(_0x58d1fa,_0x433ef0),l(this,'color'),l(this,_0x57d836(0x2d8)),(this['color']=_0x433ef0==null?void 0x0:_0x433ef0[_0x57d836(0x320)],this[_0x57d836(0x2d8)]=_0x433ef0==null?void 0x0:_0x433ef0['text']);}static[_0x335edf(0x215)](_0x25c519,_0x4ace96){const _0x439fef=_0x335edf,{text:_0x27efc2,color:_0x106ffc}=_0x4ace96;_0x25c519[_0x439fef(0x439)](),_0x25c519[_0x439fef(0x3c5)]=_0x439fef(0x3e5);const _0x2f3f12=_0x25c519[_0x439fef(0x18c)](_0x27efc2)[_0x439fef(0x3c0)],_0x595d06=Math[_0x439fef(0x37e)](_0x2f3f12+0x2*ut,us);Lr(_0x25c519,{'height':Le,'radius':0x4,'width':_0x595d06,'fill':_0x106ffc,'evented':!0x1}),_0x25c519['fillStyle']='#FFF';const _0x48679e=ut,_0x3f0301=Le-Ar,_0x3fe207=us-0x2*ut;if(_0x2f3f12>_0x3fe207){let _0x346972='',_0x57a1c9=0x0;for(const _0x4f6951 of _0x27efc2){const _0x1e63b3=_0x25c519['measureText'](_0x4f6951)[_0x439fef(0x3c0)];if(_0x57a1c9+_0x1e63b3<=_0x3fe207-_0x25c519[_0x439fef(0x18c)]('...')['width'])_0x346972+=_0x4f6951,_0x57a1c9+=_0x1e63b3;else{_0x346972+=_0x439fef(0x328);break;}}_0x25c519[_0x439fef(0x1c2)](_0x346972,_0x48679e,_0x3f0301);}else _0x25c519[_0x439fef(0x1c2)](_0x27efc2,_0x48679e,_0x3f0301);_0x25c519[_0x439fef(0x4b9)]();}[_0x335edf(0x415)](_0x4c7984){const _0x34a3b5=_0x335edf;st[_0x34a3b5(0x215)](_0x4c7984,this);}}const dt=_0x335edf(0x389),$r=_0x335edf(0x430),jr=_0x335edf(0x488),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x335edf(0x33a);class ds{constructor(_0x42177b,_0x52f763,_0x3c3f16,_0x2b3e65){const _0x3136f9=_0x335edf;l(this,_0x3136f9(0x285),[]),l(this,_0x3136f9(0x374),null),l(this,'_textBubble',null),l(this,_0x3136f9(0x368),null),l(this,_0x3136f9(0x2b0),null),l(this,'_eventUnsubscribe',null),(this[_0x3136f9(0x364)]=_0x42177b,this[_0x3136f9(0x1c6)]=_0x52f763,this['_docSkeleton']=_0x3c3f16,this[_0x3136f9(0x1a9)]=_0x2b3e65,this['_render']());}set[_0x335edf(0x1c3)](_0x2ea08a){const _0x52376a=_0x335edf;_0x2ea08a?(this[_0x52376a(0x368)]&&this[_0x52376a(0x368)]['hide'](),this[_0x52376a(0x49a)]&&this[_0x52376a(0x49a)][_0x52376a(0x473)]()):(this[_0x52376a(0x368)]&&this['_anchorDot'][_0x52376a(0x473)](),this[_0x52376a(0x49a)]&&this[_0x52376a(0x49a)]['hide']());}['dispose'](){const _0x38baac=_0x335edf;for(const _0x42cb54 of this[_0x38baac(0x285)])_0x42cb54[_0x38baac(0x1b5)]();this['_textBubble']&&this[_0x38baac(0x49a)][_0x38baac(0x1b5)](),this[_0x38baac(0x368)]&&this[_0x38baac(0x368)][_0x38baac(0x1b5)](),this['_anchor']&&this['_anchor'][_0x38baac(0x1b5)](),this[_0x38baac(0x451)]&&this[_0x38baac(0x451)]();}['_render'](){const _0x1d0b42=_0x335edf;var _0x285bdd;const {_docSkeleton:_0x553d92,_document:_0x2d5726}=this,{color:_0x11c06c,name:_0x449d67,ranges:_0x55ebf6}=this[_0x1d0b42(0x364)],_0x2445aa=_0x2d5726[_0x1d0b42(0x370)](),{docsLeft:_0x58bd76,docsTop:_0x2ea98d}=_0x2445aa,_0x1a9226=new _0xbed89c(_0x2445aa,_0x553d92);for(const {startOffset:_0x3ca25b,endOffset:_0x101d7e,collapsed:_0x389a39,isActive:_0x1dd894}of _0x55ebf6){const _0x203e04=_0x553d92[_0x1d0b42(0x41c)](_0x3ca25b),_0x449263=_0x553d92[_0x1d0b42(0x41c)](_0x101d7e);if(_0x1dd894){const {contentBoxPointGroup:_0x1d8f9e}=_0x1a9226['getRangePointData'](_0x449263,_0x449263);if(_0x1d8f9e[_0x1d0b42(0x2d5)]===0x0)continue;this[_0x1d0b42(0x358)](_0x11c06c,_0x1d8f9e,_0x58bd76,_0x2ea98d,_0x449d67),this[_0x1d0b42(0x451)]=this[_0x1d0b42(0x493)]();}if(!_0x389a39&&_0x203e04&&_0x449263){if(_0x1bf58a(_0x203e04,_0x449263)){const _0x438964=new _0x1bc56e(_0x2445aa,_0x553d92),{pointGroup:_0x15b9a2}=(_0x285bdd=_0x438964[_0x1d0b42(0x312)](_0x203e04,_0x449263))!=null?_0x285bdd:{};if(_0x15b9a2==null||_0x15b9a2[_0x1d0b42(0x2d5)]===0x0)continue;this[_0x1d0b42(0x2fc)](_0x11c06c,_0x15b9a2,_0x58bd76,_0x2ea98d);}else{const {contentBoxPointGroup:_0x355584}=_0x1a9226[_0x1d0b42(0x312)](_0x203e04,_0x449263);if(_0x355584[_0x1d0b42(0x2d5)]===0x0)continue;this[_0x1d0b42(0x1e0)](_0x11c06c,_0x355584,_0x58bd76,_0x2ea98d);}}}}[_0x335edf(0x358)](_0x28f203,_0x5a9ef3,_0x39e19e,_0x1f27a5,_0x71420f){const _0x10b429=_0x335edf,_0x1c5573=this[_0x10b429(0x32b)](_0x5a9ef3),{left:_0x5ed4a4,top:_0x158da3,height:_0x4ce5ff}=_0x1c5573,_0x426003=this[_0x10b429(0x1fd)](),_0x81dbb4=Hr/_0x426003,_0x12b088=new _0x2f5580(dt+_0x39831b['generateRandomId'](De),{'left':_0x5ed4a4+_0x39e19e-_0x81dbb4,'top':_0x158da3+_0x1f27a5,'height':_0x4ce5ff,'width':xr,'fill':_0x28f203||_0x2ee887(_0x129ddf[_0x10b429(0x3d7)],0x0),'strokeWidth':_0x81dbb4,'stroke':kr,'evented':!0x0});this[_0x10b429(0x374)]=_0x12b088,this['_scene'][_0x10b429(0x329)](_0x12b088,_0x4f124b);const _0x45fc3f=new _0x2f5580(dt+_0x39831b[_0x10b429(0x16e)](De),{'left':_0x5ed4a4+_0x39e19e-_0x81dbb4,'top':_0x158da3+_0x1f27a5-ft/0x2,'height':ft,'width':ft,'fill':_0x28f203||_0x2ee887(_0x129ddf[_0x10b429(0x3d7)],0x0),'strokeWidth':0x0,'stroke':_0x28f203||_0x2ee887(_0x129ddf['black'],0x0),'evented':!0x1});this[_0x10b429(0x368)]=_0x45fc3f,this[_0x10b429(0x1c6)]['addObject'](_0x45fc3f,_0x4f124b);const _0x2268b2=new st(dt+_0x39831b[_0x10b429(0x16e)](De),{'left':_0x5ed4a4+_0x39e19e-_0x81dbb4,'top':_0x158da3+_0x1f27a5-Le,'text':_0x71420f,'color':_0x28f203});this['_textBubble']=_0x2268b2,this[_0x10b429(0x1c6)]['addObject'](_0x2268b2,_0x4f124b),this['_hover']=!0x1;}[_0x335edf(0x493)](){const _0xa0e55=_0x335edf,_0x37af78=this['_anchor'][_0xa0e55(0x1ef)][_0xa0e55(0x210)](()=>{const _0x4a9012=_0xa0e55;this[_0x4a9012(0x1c3)]=!0x0;}),_0x3f44ee=this[_0xa0e55(0x374)][_0xa0e55(0x46e)][_0xa0e55(0x210)](()=>{const _0x573e95=_0xa0e55;this[_0x573e95(0x2b0)]&&clearTimeout(this[_0x573e95(0x2b0)]),this[_0x573e95(0x2b0)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x1a69fd=_0xa0e55;_0x37af78[_0x1a69fd(0x452)](),_0x3f44ee[_0x1a69fd(0x452)]();};}[_0x335edf(0x1e0)](_0x87238a,_0x11acfa,_0xd1e79c,_0x46bee0){const _0x1a9710=_0x335edf,_0x22ad60=new _0x4cea1f(_0x87238a)['setAlpha'](0.2)[_0x1a9710(0x16c)](),_0x659aa=new _0x4cf7e2($r+_0x39831b[_0x1a9710(0x16e)](De),{'pointsGroup':_0x11acfa,'fill':_0x22ad60||_0x2ee887(_0x129ddf[_0x1a9710(0x3d7)],0.2),'left':_0xd1e79c,'top':_0x46bee0,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1a9710(0x285)][_0x1a9710(0x3ed)](_0x659aa),this[_0x1a9710(0x1c6)][_0x1a9710(0x329)](_0x659aa,_0x4f124b);}[_0x335edf(0x2fc)](_0x2480a1,_0x17dcda,_0x11f25d,_0x10dae2){const _0x305225=_0x335edf,_0x12751e=new _0x4cea1f(_0x2480a1)[_0x305225(0x305)](0.2)['toRgbString'](),_0x4ad647=new _0x4cf7e2(jr+_0x39831b[_0x305225(0x16e)](De),{'pointsGroup':_0x17dcda,'fill':_0x12751e||_0x2ee887(_0x129ddf[_0x305225(0x3d7)],0.2),'left':_0x11f25d,'top':_0x10dae2,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x4ad647),this[_0x305225(0x1c6)][_0x305225(0x329)](_0x4ad647,_0x4f124b);}['_getAnchorBounding'](_0x48d2f0){const _0x36ae3e=_0x48d2f0[0x0],_0x41cf3f=_0x36ae3e[0x0],_0x44367b=_0x36ae3e[0x2],{x:_0x7c22e2,y:_0x29a30e}=_0x41cf3f,{x:_0x2cac0d,y:_0x160488}=_0x44367b;return{'left':_0x7c22e2,'top':_0x29a30e,'width':_0x2cac0d-_0x7c22e2,'height':_0x160488-_0x29a30e};}[_0x335edf(0x1fd)](){const _0x225ab8=_0x335edf,{scaleX:_0x2995fb,scaleY:_0x6fbb39}=this['_scene'][_0x225ab8(0x297)]();return Math[_0x225ab8(0x44d)](_0x2995fb,_0x6fbb39);}}var Br=Object[_0x335edf(0x226)],Vr=Object[_0x335edf(0x2e4)],Fr=(_0x4eeb88,_0x29cf57,_0x8b1062,_0x5b80c3)=>{for(var _0x3760b3=_0x5b80c3>0x1?void 0x0:_0x5b80c3?Vr(_0x29cf57,_0x8b1062):_0x29cf57,_0x2010fa=_0x4eeb88['length']-0x1,_0x2ee2f6;_0x2010fa>=0x0;_0x2010fa--)(_0x2ee2f6=_0x4eeb88[_0x2010fa])&&(_0x3760b3=(_0x5b80c3?_0x2ee2f6(_0x29cf57,_0x8b1062,_0x3760b3):_0x2ee2f6(_0x3760b3))||_0x3760b3);return _0x5b80c3&&_0x3760b3&&Br(_0x29cf57,_0x8b1062,_0x3760b3),_0x3760b3;},xe=(_0x2d2308,_0x5c3caa)=>(_0xf3e63e,_0x4cef28)=>_0x5c3caa(_0xf3e63e,_0x4cef28,_0x2d2308);let Dt=class extends _0x832c1b{constructor(_0x98837a,_0xb27721,_0x2e623d,_0xbc6953,_0x468914){const _0x23627b=_0x335edf;super(),l(this,_0x23627b(0x21b),[]),l(this,_0x23627b(0x21a),[]),(this['_context']=_0x98837a,this['_docSkeletonManagerService']=_0xb27721,this[_0x23627b(0x29e)]=_0x2e623d,this[_0x23627b(0x1ea)]=_0xbc6953,this[_0x23627b(0x182)]=_0x468914,this['_init']());}[_0x335edf(0x1e9)](){const _0x19d7c1=_0x335edf,_0x5c06f1=this[_0x19d7c1(0x288)][_0x19d7c1(0x214)],_0x3d99e0=this['_docSkeletonManagerService'];this[_0x19d7c1(0x33b)](_0x5d4cc6([this[_0x19d7c1(0x29e)][_0x19d7c1(0x436)](_0x5c06f1),this[_0x19d7c1(0x182)]['currentTheme$']])[_0x19d7c1(0x266)](_0x451d6e(([_0x238287,_0x5c3942])=>({'skeleton':_0x3d99e0['getSkeleton'](),'cursors':[..._0x238287[_0x19d7c1(0x45e)]()][_0x19d7c1(0x3ab)](_0x855317=>({..._0x855317,'color':_0x5c3942[_0x855317['color']]}))})))['subscribe'](_0x1f986c=>{const _0x9772f5=_0x19d7c1;if(this['_removeCollabCursors'](),_0x1f986c){const {skeleton:_0x1bc444,cursors:_0x5747a0}=_0x1f986c;this[_0x9772f5(0x470)](_0x1bc444,_0x5747a0);}})),this['_initResize'](),this[_0x19d7c1(0x431)]();}[_0x335edf(0x470)](_0x11eab0,_0x361ec7){const _0x31d7ac=_0x335edf,{scene:_0x36faef,mainComponent:_0x562de0}=this[_0x31d7ac(0x288)],_0xef8d0b=_0x361ec7[_0x31d7ac(0x1ac)](_0x204772=>new ds(_0x204772,_0x36faef,_0x11eab0,_0x562de0));this[_0x31d7ac(0x21b)]=_0xef8d0b,this['_cursors']=_0x361ec7;}[_0x335edf(0x423)](){const _0x1738f3=_0x335edf;this['_removeCollabCursors']();const {scene:_0xb86f34,mainComponent:_0x1dd039}=this[_0x1738f3(0x288)],_0x48a29e=this[_0x1738f3(0x307)]['getSkeleton'](),_0x3d609c=this[_0x1738f3(0x21a)][_0x1738f3(0x1ac)](_0x247192=>new ds(_0x247192,_0xb86f34,_0x48a29e,_0x1dd039));this[_0x1738f3(0x21b)]=_0x3d609c;}['_removeCollabCursors'](){const _0x2f9cad=_0x335edf;this[_0x2f9cad(0x21b)][_0x2f9cad(0x2c9)](_0x43abf2=>_0x43abf2[_0x2f9cad(0x1b5)]()),this['_cursorShapes']=[];}[_0x335edf(0x431)](){const _0x43d4a5=_0x335edf,_0xe3ff99=[_0x513899['id']];this[_0x43d4a5(0x33b)](this[_0x43d4a5(0x1ea)][_0x43d4a5(0x340)](_0x2b0567=>{const _0x4ef1aa=_0x43d4a5;_0xe3ff99['includes'](_0x2b0567['id'])&&_0x2b0567[_0x4ef1aa(0x27e)][_0x4ef1aa(0x214)]===this[_0x4ef1aa(0x288)]['unitId']&&this[_0x4ef1aa(0x423)]();}));}[_0x335edf(0x204)](){const _0x170ca3=_0x335edf;this[_0x170ca3(0x33b)](_0x578a3c(this[_0x170ca3(0x288)][_0x170ca3(0x39d)][_0x170ca3(0x3a2)])[_0x170ca3(0x266)](_0x3e7870(_0x2441ce=>_0x2441ce[_0x170ca3(0x1db)]===_0x5ba5f7[_0x170ca3(0x1fe)]),_0xc22491(0x10))[_0x170ca3(0x1bc)](()=>{const _0x21253d=_0x170ca3;this[_0x21253d(0x423)]();}));}};Dt=Fr([xe(0x1,_0x412e01(_0x49458b)),xe(0x2,_0x412e01(pe)),xe(0x3,_0x5ad0bf),xe(0x4,_0x412e01(_0x133706))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0x9b6639{constructor(_0x5f31ff,_0x2ebf49){const _0xdcbaf4=_0x335edf;super(_0x5f31ff,_0x2ebf49),l(this,_0xdcbaf4(0x299)),l(this,_0xdcbaf4(0x310),!0x1),l(this,_0xdcbaf4(0x43f)),l(this,_0xdcbaf4(0x400),''),l(this,_0xdcbaf4(0x41a),'top'),l(this,_0xdcbaf4(0x413)),(_0x2ebf49&&this[_0xdcbaf4(0x43e)](_0x2ebf49),this['onPointerEnter$'][_0xdcbaf4(0x210)](()=>this[_0xdcbaf4(0x43e)]({'hovered':!0x0})),this[_0xdcbaf4(0x46e)][_0xdcbaf4(0x210)](()=>this[_0xdcbaf4(0x43e)]({'hovered':!0x1})));}[_0x335edf(0x43e)](_0x449b4c){const _0x50fd8d=_0x335edf;var _0x2fb248,_0xd3e8bf,_0x4e4950,_0x212b57,_0x500497,_0x1ee477;this[_0x50fd8d(0x299)]=(_0x2fb248=_0x449b4c[_0x50fd8d(0x320)])!=null?_0x2fb248:this[_0x50fd8d(0x299)],this[_0x50fd8d(0x310)]=(_0xd3e8bf=_0x449b4c['hovered'])!=null?_0xd3e8bf:this[_0x50fd8d(0x310)],this['_range']=(_0x4e4950=_0x449b4c['range'])!=null?_0x4e4950:this[_0x50fd8d(0x43f)],this[_0x50fd8d(0x400)]=(_0x212b57=_0x449b4c[_0x50fd8d(0x202)])!=null?_0x212b57:this['_name'],this[_0x50fd8d(0x41a)]=(_0x500497=_0x449b4c[_0x50fd8d(0x3fb)])!=null?_0x500497:this[_0x50fd8d(0x41a)],this[_0x50fd8d(0x413)]=(_0x1ee477=_0x449b4c[_0x50fd8d(0x2e1)])!=null?_0x1ee477:this[_0x50fd8d(0x413)],this[_0x50fd8d(0x321)]({'width':_0x449b4c[_0x50fd8d(0x3c0)],'height':_0x449b4c[_0x50fd8d(0x4c1)]});}[_0x335edf(0x34d)](_0x39a577){const _0x1556bb=_0x335edf,{row:_0x437a5b,column:_0x16a49b}=_0x39a577;if(_0x437a5b>=this[_0x1556bb(0x43f)][_0x1556bb(0x336)]&&_0x437a5b<=this['_range']['endRow']&&_0x16a49b>=this[_0x1556bb(0x43f)][_0x1556bb(0x2c2)]&&_0x16a49b<=this[_0x1556bb(0x43f)][_0x1556bb(0x1e5)]){this[_0x1556bb(0x43e)]({'hovered':!0x0});return;}this[_0x1556bb(0x43e)]({'hovered':!0x1});}[_0x335edf(0x19f)](_0x17054f){return!0x1;}['_draw'](_0x5f4624){const _0x1978dc=_0x335edf;_0x2f5580['drawWith'](_0x5f4624,{'width':this[_0x1978dc(0x3c0)],'height':this[_0x1978dc(0x4c1)],'strokeWidth':Gr,'stroke':this[_0x1978dc(0x299)],'evented':!0x1,'fill':this[_0x1978dc(0x413)]}),this[_0x1978dc(0x310)]&&(_0x5f4624[_0x1978dc(0x439)](),_0x5f4624[_0x1978dc(0x1ca)](0x1,0x0,0x0,0x1,this[_0x1978dc(0x3c0)],this[_0x1978dc(0x41a)]==='bottom'?0x0:-Le),st[_0x1978dc(0x215)](_0x5f4624,{'text':this[_0x1978dc(0x400)],'color':this[_0x1978dc(0x299)]}),_0x5f4624[_0x1978dc(0x4b9)]());}}var Kr=Object['defineProperty'],Xr=Object[_0x335edf(0x2e4)],Jr=(_0x358a65,_0x53a4a1,_0x51a81f,_0x576ebc)=>{for(var _0x15a4dd=_0x576ebc>0x1?void 0x0:_0x576ebc?Xr(_0x53a4a1,_0x51a81f):_0x53a4a1,_0x56054b=_0x358a65['length']-0x1,_0x5c79d0;_0x56054b>=0x0;_0x56054b--)(_0x5c79d0=_0x358a65[_0x56054b])&&(_0x15a4dd=(_0x576ebc?_0x5c79d0(_0x53a4a1,_0x51a81f,_0x15a4dd):_0x5c79d0(_0x15a4dd))||_0x15a4dd);return _0x576ebc&&_0x15a4dd&&Kr(_0x53a4a1,_0x51a81f,_0x15a4dd),_0x15a4dd;},mt=(_0x3a25fe,_0x1e322b)=>(_0x53b44f,_0x268d5c)=>_0x1e322b(_0x53b44f,_0x268d5c,_0x3a25fe);const qr=0x1389;let wt=class extends _0x832c1b{constructor(_0x4c893d,_0x49f9e8,_0x16d860,_0x31e775){const _0x28a8a3=_0x335edf;super(),l(this,_0x28a8a3(0x21a),new Set()),l(this,'_lastPointer',null),(this['_context']=_0x4c893d,this['_sheetSkeletonManagerService']=_0x49f9e8,this[_0x28a8a3(0x29e)]=_0x16d860,this[_0x28a8a3(0x182)]=_0x31e775,this[_0x28a8a3(0x1e9)]());}[_0x335edf(0x1e9)](){const _0x10e7f5=_0x335edf;this[_0x10e7f5(0x36d)]['currentSkeleton$'][_0x10e7f5(0x266)](_0x3f581e(this[_0x10e7f5(0x1d9)]),_0x4c23c3(_0x49e195=>{const _0x286c62=_0x10e7f5;if(_0x49e195){const _0x451612=_0x49e195['sheetId'];return _0x5d4cc6(this[_0x286c62(0x29e)][_0x286c62(0x436)](this[_0x286c62(0x288)]['unitId']),this[_0x286c62(0x182)][_0x286c62(0x356)])[_0x286c62(0x266)](_0x451d6e(([_0x127dec,_0x5e2fc0])=>{const _0x547c15=new Map();return _0x127dec['forEach']((_0x3bf8c3,_0x117759)=>{const _0x5c7823=_0x1425;if(_0x3bf8c3[_0x5c7823(0x46b)]===_0x451612){const _0x5d2787={..._0x3bf8c3};_0x5d2787[_0x5c7823(0x320)]=_0x5e2fc0[_0x3bf8c3[_0x5c7823(0x320)]],_0x547c15[_0x5c7823(0x3e2)](_0x117759,_0x5d2787);}}),{'skeleton':_0x49e195,'cursors':_0x547c15};}));}return _0x465c56({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x206ada,cursors:_0x1f9397})=>{const _0x9e5e4b=_0x10e7f5;this[_0x9e5e4b(0x2a4)](),_0x206ada&&this['_updateCollabCursors'](_0x206ada,_0x1f9397);}),this['_sheetSkeletonManagerService'][_0x10e7f5(0x325)][_0x10e7f5(0x1bc)](_0x24b128=>{const _0x15f5cd=_0x10e7f5;if(_0x24b128==null)return;const {skeleton:_0x36cf77}=_0x24b128,{scene:_0x1d81f0}=this[_0x15f5cd(0x288)];_0x1d81f0[_0x15f5cd(0x4b4)][_0x15f5cd(0x210)](_0x57de21(_0x494b72=>{const _0x5c56e2=_0x15f5cd;var _0x52c2e0,_0x211a3f;const {offsetX:_0x169d34,offsetY:_0x4b1e19}=_0x494b72,{x:_0x100e1c,y:_0x5f4b48}=_0x1d81f0[_0x5c56e2(0x180)](_0xe127fc['FromArray']([_0x169d34,_0x4b1e19])),{scaleX:_0x405fcf,scaleY:_0x2098ab}=_0x1d81f0[_0x5c56e2(0x297)](),_0x1d2a74=_0x1d81f0[_0x5c56e2(0x30e)](_0x3df7a5[_0x5c56e2(0x224)]),_0x389f85=_0x1d81f0[_0x5c56e2(0x2de)](_0xe127fc['FromArray']([_0x100e1c,_0x5f4b48]),_0x1d2a74),_0x2d1969=_0x36cf77[_0x5c56e2(0x23d)](_0x169d34,_0x4b1e19,_0x405fcf,_0x2098ab,_0x389f85);((_0x52c2e0=this[_0x5c56e2(0x39f)])==null?void 0x0:_0x52c2e0['column'])===_0x2d1969[_0x5c56e2(0x3b9)]&&((_0x211a3f=this[_0x5c56e2(0x39f)])==null?void 0x0:_0x211a3f[_0x5c56e2(0x3fe)])===_0x2d1969['row']||this[_0x5c56e2(0x21a)][_0x5c56e2(0x2c9)](_0x4ad72b=>{const _0x4d7b96=_0x5c56e2;_0x4ad72b[_0x4d7b96(0x34d)](_0x2d1969);});},0x64));});}[_0x335edf(0x470)](_0x4f9ad1,_0x3b2bf3){const _0x34c30e=_0x335edf;var _0xc57432;const _0x61ad22=(_0xc57432=this[_0x34c30e(0x36d)][_0x34c30e(0x471)]())==null?void 0x0:_0xc57432[_0x34c30e(0x47b)];if(!_0x61ad22)return;const _0x1fb8f4=this[_0x34c30e(0x1f4)]();if(!_0x1fb8f4)return;this[_0x34c30e(0x21a)][_0x34c30e(0x2c9)](_0x1bc213=>{const _0x187f12=_0x34c30e;_0x1bc213[_0x187f12(0x39b)]();});const {scene:_0x14b194}=_0x1fb8f4,_0x3e4ec5=zr(Array[_0x34c30e(0x3cb)](_0x3b2bf3['values']()))['map'](_0x34db2b=>{const _0x4a933b=_0x34c30e,{color:_0x38422e,range:_0x186257,name:_0x227f61,selection:_0x240df3,sheetID:_0x4637e5}=_0x34db2b,{startColumn:_0x5873cf,startRow:_0x82df97,endColumn:_0x2d15e0,endRow:_0x346b17}=_0x186257,_0x4b246a=_0x4fd896(_0x82df97,_0x5873cf,_0x14b194,_0x61ad22),_0xcfc115=_0x4fd896(_0x346b17,_0x2d15e0,_0x14b194,_0x61ad22),{columnHeaderHeightAndMarginTop:_0x309b4f}=_0x61ad22,{startX:_0x55c25e,startY:_0x58d9ec}=_0x4b246a,{endX:_0x572b4a,endY:_0x433052}=_0xcfc115,_0xe73a9b=_0x572b4a-_0x55c25e,_0x16b150=_0x433052-_0x58d9ec,_0x5c345d={'labelPosition':_0x58d9ec-_0x309b4f>=Le?'top':_0x4a933b(0x495),'sheetID':_0x4637e5,'range':_0x186257,'color':_0x38422e,'name':_0x227f61,'selection':_0x240df3,'left':_0x55c25e,'top':_0x58d9ec,'width':_0xe73a9b,'height':_0x16b150,'evented':!0x1,'zIndex':qr};return new Yr(_0x227f61,_0x5c345d);});_0x14b194['addObjects'](_0x3e4ec5,Wr),this[_0x34c30e(0x21a)]=new Set(_0x3e4ec5);}['_removeCollabCursors'](){const _0x5c3f8e=_0x335edf;var _0xb3a910;(_0xb3a910=this['_cursors'])==null||_0xb3a910[_0x5c3f8e(0x2c9)](_0x4f42fd=>_0x4f42fd[_0x5c3f8e(0x1b5)]());}[_0x335edf(0x1f4)](){const _0x2f8843=_0x335edf;return _0x574c54(this[_0x2f8843(0x288)][_0x2f8843(0x483)],this[_0x2f8843(0x288)]);}};wt=Jr([mt(0x1,_0x412e01(_0x7abed8)),mt(0x2,_0x412e01(pe)),mt(0x3,_0x412e01(_0x133706))],wt);function zr(_0x3eaf3d){const _0x4d2fa4=_0x335edf,_0x354c3b=new Map();return _0x3eaf3d[_0x4d2fa4(0x2c9)](_0x59833f=>{const _0x33ddad=_0x4d2fa4;if(_0x354c3b[_0x33ddad(0x353)](_0x59833f[_0x33ddad(0x23c)])){const _0x38caee=_0x354c3b[_0x33ddad(0x242)](_0x59833f['selection']);_0x38caee[_0x33ddad(0x202)]+=',\x20'+_0x59833f['name'];}else _0x354c3b[_0x33ddad(0x3e2)](_0x59833f[_0x33ddad(0x23c)],_0x59833f);}),Array[_0x4d2fa4(0x3cb)](_0x354c3b[_0x4d2fa4(0x45e)]());}var N=function(){const _0x5a4358=_0x335edf;return N=Object[_0x5a4358(0x376)]||function(_0x3d9be2){const _0x46b3fa=_0x5a4358;for(var _0x4b9246,_0x430864=0x1,_0x20772f=arguments['length'];_0x430864<_0x20772f;_0x430864++){_0x4b9246=arguments[_0x430864];for(var _0x1119dc in _0x4b9246)Object[_0x46b3fa(0x2f3)]['hasOwnProperty'][_0x46b3fa(0x2e5)](_0x4b9246,_0x1119dc)&&(_0x3d9be2[_0x1119dc]=_0x4b9246[_0x1119dc]);}return _0x3d9be2;},N['apply'](this,arguments);},Zr=function(_0x2ac85e,_0x5d4607){const _0x323ff7=_0x335edf;var _0xc7ae85={};for(var _0x54e6b8 in _0x2ac85e)Object[_0x323ff7(0x2f3)][_0x323ff7(0x2c3)][_0x323ff7(0x2e5)](_0x2ac85e,_0x54e6b8)&&_0x5d4607[_0x323ff7(0x1d1)](_0x54e6b8)<0x0&&(_0xc7ae85[_0x54e6b8]=_0x2ac85e[_0x54e6b8]);if(_0x2ac85e!=null&&typeof Object[_0x323ff7(0x254)]==_0x323ff7(0x468)){for(var _0x385c40=0x0,_0x54e6b8=Object[_0x323ff7(0x254)](_0x2ac85e);_0x385c40<_0x54e6b8['length'];_0x385c40++)_0x5d4607['indexOf'](_0x54e6b8[_0x385c40])<0x0&&Object['prototype'][_0x323ff7(0x19c)]['call'](_0x2ac85e,_0x54e6b8[_0x385c40])&&(_0xc7ae85[_0x54e6b8[_0x385c40]]=_0x2ac85e[_0x54e6b8[_0x385c40]]);}return _0xc7ae85;},Wt=_0x378530(function(_0x55185b,_0x5eb083){const _0x954a1b=_0x335edf;var _0xb660be=_0x55185b[_0x954a1b(0x401)],_0x44e54e=_0x55185b['id'],_0x148605=_0x55185b[_0x954a1b(0x19a)],_0x33decd=_0x55185b[_0x954a1b(0x491)],_0x414d9f=Zr(_0x55185b,['icon','id',_0x954a1b(0x19a),'extend']),_0x5082db='univerjs-icon\x20univerjs-icon-'['concat'](_0x44e54e,'\x20')['concat'](_0x148605||'')['trim'](),_0x583e2a=_0x5dc2e8('_'[_0x954a1b(0x3f1)](to()));return ks(_0xb660be,''[_0x954a1b(0x3f1)](_0x44e54e),{'defIds':_0xb660be[_0x954a1b(0x268)],'idSuffix':_0x583e2a[_0x954a1b(0x465)]},N({'ref':_0x5eb083,'className':_0x5082db},_0x414d9f),_0x33decd);});function ks(_0x2c900b,_0x3bf7c2,_0x22545a,_0x5b5523,_0x1fabcc){const _0x868b51=_0x335edf;return _0x1c6869(_0x2c900b[_0x868b51(0x47f)],N(N({'key':_0x3bf7c2},Qr(_0x2c900b,_0x22545a,_0x1fabcc)),_0x5b5523),(eo(_0x2c900b,_0x22545a)[_0x868b51(0x32f)]||[])[_0x868b51(0x1ac)](function(_0x3e79f5,_0x2c92e7){const _0x3e6590=_0x868b51;return ks(_0x3e79f5,''[_0x3e6590(0x3f1)](_0x3bf7c2,'-')['concat'](_0x2c900b[_0x3e6590(0x47f)],'-')['concat'](_0x2c92e7),_0x22545a,void 0x0,_0x1fabcc);}));}function Qr(_0x39bc77,_0x306e53,_0x4dbf5e){const _0x4a98f4=_0x335edf;var _0x3ad2ca=N({},_0x39bc77[_0x4a98f4(0x2f5)]);_0x4dbf5e!=null&&_0x4dbf5e['colorChannel1']&&_0x3ad2ca['fill']===_0x4a98f4(0x248)&&(_0x3ad2ca[_0x4a98f4(0x32d)]=_0x4dbf5e[_0x4a98f4(0x248)]);var _0x378be9=_0x306e53[_0x4a98f4(0x268)];return!_0x378be9||_0x378be9[_0x4a98f4(0x2d5)]===0x0||(_0x39bc77[_0x4a98f4(0x47f)]===_0x4a98f4(0x16b)&&_0x3ad2ca[_0x4a98f4(0x43d)]&&(_0x3ad2ca[_0x4a98f4(0x43d)]=_0x3ad2ca[_0x4a98f4(0x43d)]+_0x306e53[_0x4a98f4(0x337)]),Object[_0x4a98f4(0x1cf)](_0x3ad2ca)[_0x4a98f4(0x2c9)](function(_0x21ba7d){const _0x4d1c44=_0x4a98f4;var _0x368c2b=_0x21ba7d[0x0],_0x347bc1=_0x21ba7d[0x1];typeof _0x347bc1==_0x4d1c44(0x19e)&&(_0x3ad2ca[_0x368c2b]=_0x347bc1[_0x4d1c44(0x35f)](/url\(#(.*)\)/,'url(#$1'[_0x4d1c44(0x3f1)](_0x306e53[_0x4d1c44(0x337)],')')));})),_0x3ad2ca;}function eo(_0x20c011,_0x5da496){const _0x3ddb4a=_0x335edf;var _0x29fec4,_0x290b1d=_0x5da496[_0x3ddb4a(0x268)];return!_0x290b1d||_0x290b1d[_0x3ddb4a(0x2d5)]===0x0?_0x20c011:_0x20c011['tag']===_0x3ddb4a(0x283)&&(!((_0x29fec4=_0x20c011[_0x3ddb4a(0x32f)])===null||_0x29fec4===void 0x0)&&_0x29fec4[_0x3ddb4a(0x2d5)])?N(N({},_0x20c011),{'children':_0x20c011[_0x3ddb4a(0x32f)]['map'](function(_0x38939c){const _0x1d3b8e=_0x3ddb4a;return typeof _0x38939c['attrs']['id']==_0x1d3b8e(0x19e)&&_0x290b1d&&_0x290b1d[_0x1d3b8e(0x1d1)](_0x38939c[_0x1d3b8e(0x2f5)]['id'])>-0x1?N(N({},_0x38939c),{'attrs':N(N({},_0x38939c[_0x1d3b8e(0x2f5)]),{'id':_0x38939c[_0x1d3b8e(0x2f5)]['id']+_0x5da496[_0x1d3b8e(0x337)]})}):_0x38939c;})}):_0x20c011;}function to(){const _0x5c0c63=_0x335edf;return Math[_0x5c0c63(0x34f)]()[_0x5c0c63(0x361)](0x24)[_0x5c0c63(0x432)](0x2,0x8);}Wt[_0x335edf(0x31f)]='UniverIcon';var so={'tag':'svg','attrs':{'fill':_0x335edf(0x1d8),'viewBox':_0x335edf(0x25f),'width':_0x335edf(0x388),'height':_0x335edf(0x388)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x335edf(0x4a3),'attrs':{'stroke':'currentColor','d':_0x335edf(0x2f6),'strokeLinecap':_0x335edf(0x21c),'strokeLinejoin':_0x335edf(0x21c),'strokeWidth':1.2}}]},{'tag':_0x335edf(0x283),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x335edf(0x280)},'children':[{'tag':_0x335edf(0x4a3),'attrs':{'fill':_0x335edf(0x4c9),'d':_0x335edf(0x43b)}}]}]}],'defIds':[_0x335edf(0x280)]},Bs=_0x378530(function(_0x153684,_0x59d670){const _0x2bc2c7=_0x335edf;return _0x1c6869(Wt,Object[_0x2bc2c7(0x376)]({},_0x153684,{'id':_0x2bc2c7(0x49d),'ref':_0x59d670,'icon':so}));});Bs['displayName']=_0x335edf(0x419);var io={'tag':'svg','attrs':{'fill':_0x335edf(0x1d8),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x335edf(0x388)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x335edf(0x393),'d':_0x335edf(0x45f),'strokeLinecap':_0x335edf(0x21c),'strokeLinejoin':_0x335edf(0x21c),'strokeWidth':1.2}}]},{'tag':_0x335edf(0x283),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x335edf(0x4a3),'attrs':{'fill':_0x335edf(0x4c9),'d':_0x335edf(0x43b),'transform':'translate(.97)'}}]}]}],'defIds':[_0x335edf(0x258)]},Vs=_0x378530(function(_0x320527,_0x976ad4){const _0x5a8726=_0x335edf;return _0x1c6869(Wt,Object[_0x5a8726(0x376)]({},_0x320527,{'id':'on-line-single','ref':_0x976ad4,'icon':io}));});Vs[_0x335edf(0x31f)]=_0x335edf(0x25d);const no=_0x335edf(0x3e4),ro=_0x335edf(0x4a0),oo=_0x335edf(0x1b6),ao=_0x335edf(0x291),co=_0x335edf(0x2cb),we={'onlineStatusIcon':no,'onlineStatusTitle':ro,'onlineStatus':oo,'online':ao,'offline':co};function ho(_0x14d485){const _0x1f6580=_0x335edf;switch(_0x14d485){case w[_0x1f6580(0x1b3)]:return'collabStatus.offline';case w[_0x1f6580(0x485)]:return _0x1f6580(0x1b8);case w[_0x1f6580(0x2d0)]:return _0x1f6580(0x196);case w[_0x1f6580(0x18e)]:return'collabStatus.notCollab';case w[_0x1f6580(0x341)]:case w[_0x1f6580(0x410)]:case w[_0x1f6580(0x484)]:return _0x1f6580(0x2bf);case w[_0x1f6580(0x20c)]:return'collabStatus.synced';}}function lo(_0x57e99b){const _0x1c757b=_0x335edf,{status$:_0x1f3cef}=_0x57e99b,_0x361d83=_0x31e75d(_0x1f3cef,w[_0x1c757b(0x18e)]),_0x155cae=_0x36b855(_0x1c954b),_0x369a22=_0x36b855(ce),_0x56fb6e=_0x361d83!==w[_0x1c757b(0x1b3)],_0x492a75=_0x155cae['t'](ho(_0x361d83)),_0x5bc664=_0x314a20(we[_0x1c757b(0x344)],{[we[_0x1c757b(0x2a9)]]:_0x56fb6e,[we[_0x1c757b(0x363)]]:!_0x56fb6e}),_0x131a75=_0x56fb6e?_0x244cb3[_0x1c757b(0x1d2)](Vs,null):_0x244cb3[_0x1c757b(0x1d2)](Bs,null),_0x22127f=_0x5bd8d8(()=>{_0x56fb6e||_0x369a22['reconnect']();},[_0x56fb6e,_0x369a22]);function _0x3d7558(){const _0x55ec2=_0x1c757b;return _0x244cb3[_0x55ec2(0x1d2)](_0x55ec2(0x350),{'className':_0x5bc664,'onClick':_0x22127f},_0x244cb3[_0x55ec2(0x1d2)](_0x55ec2(0x350),{'className':we[_0x55ec2(0x2fb)]},_0x131a75),_0x244cb3[_0x55ec2(0x1d2)](_0x55ec2(0x350),{'className':we[_0x55ec2(0x21e)]},_0x492a75));}return _0x56fb6e?_0x3d7558():_0x244cb3['createElement'](_0x15b107,{'title':_0x155cae['t'](_0x1c757b(0x4d3))},_0x3d7558());}var _o=Object[_0x335edf(0x226)],uo=Object[_0x335edf(0x2e4)],fo=(_0x52a969,_0x496f73,_0x442db8,_0x254888)=>{for(var _0x17ac1a=_0x254888>0x1?void 0x0:_0x254888?uo(_0x496f73,_0x442db8):_0x496f73,_0x44c878=_0x52a969['length']-0x1,_0x3abb4f;_0x44c878>=0x0;_0x44c878--)(_0x3abb4f=_0x52a969[_0x44c878])&&(_0x17ac1a=(_0x254888?_0x3abb4f(_0x496f73,_0x442db8,_0x17ac1a):_0x3abb4f(_0x17ac1a))||_0x17ac1a);return _0x254888&&_0x17ac1a&&_o(_0x496f73,_0x442db8,_0x17ac1a),_0x17ac1a;},He=(_0x2356c8,_0x6ca499)=>(_0x571736,_0x55777e)=>_0x6ca499(_0x571736,_0x55777e,_0x2356c8);let Ue=class extends _0x443103{constructor(_0x3c9891,_0x1d81d3,_0x378d0d,_0x14c2ce){const _0x1ff08c=_0x335edf;super(),l(this,'_status$',new _0x5b0208(w['NOT_COLLAB'])),(this['_univerInstanceService']=_0x3c9891,this[_0x1ff08c(0x2cd)]=_0x1d81d3,this['_injector']=_0x378d0d,this['_collaborationController']=_0x14c2ce,this[_0x1ff08c(0x44c)](),this[_0x1ff08c(0x1e4)]());}[_0x335edf(0x1e4)](){const _0x1ad7de=_0x335edf;this[_0x1ad7de(0x33b)](this[_0x1ad7de(0x44a)]['focused$'][_0x1ad7de(0x266)](_0x12faf3(()=>{const _0x571293=_0x1ad7de,_0x4cf813=this[_0x571293(0x44a)][_0x571293(0x22d)]();return _0x4cf813?this['_collaborationController'][_0x571293(0x17a)](_0x4cf813[_0x571293(0x1e7)]()):_0x465c56(null);}),_0x12faf3(_0x47bfb2=>_0x47bfb2?_0x47bfb2['status$']:_0x465c56(w[_0x1ad7de(0x18e)])))[_0x1ad7de(0x1bc)](_0xd79369=>{const _0x4efa9a=_0x1ad7de;this[_0x4efa9a(0x477)][_0x4efa9a(0x1ab)](_0xd79369);}));}['_initStatusComponent'](){const _0xa4f7cd=_0x335edf;this['disposeWithMe'](this[_0xa4f7cd(0x2cd)][_0xa4f7cd(0x168)](_0xbb65de['HEADER_MENU'],()=>_0x1f3fab(mo({'status$':this['_status$'][_0xa4f7cd(0x40b)]()}),this[_0xa4f7cd(0x32e)])));}};Ue=fo([He(0x0,_0x2bb140),He(0x1,_0x4215dd),He(0x2,_0x412e01(_0x5df9be)),He(0x3,_0x412e01(Ae))],Ue);function mo(_0x4497db){const {status$:_0x56ad0c}=_0x4497db;return function(){const _0x2afa7b=_0x1425;return _0x244cb3[_0x2afa7b(0x1d2)](lo,{'status$':_0x56ad0c});};}const Fs=_0x2bd96a(_0x335edf(0x1a2));var go=Object[_0x335edf(0x226)],So=Object['getOwnPropertyDescriptor'],po=(_0x234502,_0x22818a,_0x5343ab,_0x29b975)=>{const _0x405a12=_0x335edf;for(var _0x4de405=_0x29b975>0x1?void 0x0:_0x29b975?So(_0x22818a,_0x5343ab):_0x22818a,_0x417109=_0x234502[_0x405a12(0x2d5)]-0x1,_0x10bed9;_0x417109>=0x0;_0x417109--)(_0x10bed9=_0x234502[_0x417109])&&(_0x4de405=(_0x29b975?_0x10bed9(_0x22818a,_0x5343ab,_0x4de405):_0x10bed9(_0x4de405))||_0x4de405);return _0x29b975&&_0x4de405&&go(_0x22818a,_0x5343ab,_0x4de405),_0x4de405;},me=(_0x41c83a,_0x2a1814)=>(_0x54bee9,_0x343928)=>_0x2a1814(_0x54bee9,_0x343928,_0x41c83a);let qe=class extends _0x832c1b{constructor(_0xefa3ef,_0x582fb9,_0x1df2b3,_0x4a4756,_0x5e4eef,_0x1c9587){const _0x42ad3f=_0x335edf;super(),this[_0x42ad3f(0x3cd)]=_0xefa3ef,this[_0x42ad3f(0x4b8)]=_0x582fb9,this[_0x42ad3f(0x1ea)]=_0x1df2b3,this['_localCacheService']=_0x4a4756,this[_0x42ad3f(0x347)]=_0x5e4eef,_0x1c9587?_0x1c9587==null||_0x1c9587[_0x42ad3f(0x19b)]()['then'](()=>this[_0x42ad3f(0x1e9)]()):(this[_0x42ad3f(0x4b8)][_0x42ad3f(0x274)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x335edf(0x1e9)](){const _0x2105e5=_0x335edf,_0x1dbbfd=this[_0x2105e5(0x3cd)][_0x2105e5(0x31a)]('unit'),_0x446ec2=this['_urlService'][_0x2105e5(0x31a)](_0x2105e5(0x1db));if(!_0x1dbbfd||!_0x446ec2){this['_logService']['debug'](_0x2105e5(0x42d),_0x2105e5(0x2ca));return;}switch(Number(_0x446ec2)){case H[_0x2105e5(0x391)]:{const _0x528f34=await this[_0x2105e5(0x357)](_0x1dbbfd);this['_setupSubUnitSync'](_0x528f34);break;}case H[_0x2105e5(0x3bf)]:{await this['_loadDoc'](_0x1dbbfd);break;}default:{this[_0x2105e5(0x4b8)][_0x2105e5(0x417)](_0x2105e5(0x42d),_0x2105e5(0x30f));break;}}}async[_0x335edf(0x165)](_0x28d20b){const _0x5e8f5c=_0x335edf;await this[_0x5e8f5c(0x236)](_0x28d20b),_0x28d20b[_0x5e8f5c(0x4a1)][_0x5e8f5c(0x266)](_0x10cdea(this[_0x5e8f5c(0x1d9)]))[_0x5e8f5c(0x1bc)](_0x1990bc=>{const _0x139607=_0x5e8f5c;_0x1990bc&&this[_0x139607(0x2fa)](_0x1990bc);}),this[_0x5e8f5c(0x3cd)]['urlChange$']['pipe'](_0x10cdea(this[_0x5e8f5c(0x1d9)]))[_0x5e8f5c(0x1bc)](()=>this['_updateSubUnitFromURLParams'](_0x28d20b));}[_0x335edf(0x2fa)](_0x274362,_0xd80194=!0x1){const _0x305134=_0x335edf,_0x473bbb=this[_0x305134(0x3cd)][_0x305134(0x31a)](_0x305134(0x2dc));_0x274362[_0x305134(0x44b)]()!==_0x473bbb&&this[_0x305134(0x3cd)][_0x305134(0x172)](_0x305134(0x2dc),_0x274362['getSheetId'](),_0xd80194);}async[_0x335edf(0x236)](_0x514bb1){const _0x16584c=_0x335edf;var _0x3cf58b;const _0x3906d0=this[_0x16584c(0x3cd)][_0x16584c(0x31a)](_0x16584c(0x2dc));if(!_0x3906d0||!_0x514bb1[_0x16584c(0x251)](_0x3906d0)){const _0x374831=_0x514bb1[_0x16584c(0x4b2)]()[0x0],_0x4ce129=_0x514bb1[_0x16584c(0x251)](_0x374831);if(!_0x4ce129)return;this['_updateURLWithCurrentState'](_0x4ce129,!0x0),await this[_0x16584c(0x1ea)][_0x16584c(0x38b)](_0x598061['id'],{'unitId':_0x514bb1['getUnitId'](),'subUnitId':_0x374831});return;}((_0x3cf58b=_0x514bb1[_0x16584c(0x330)]())==null?void 0x0:_0x3cf58b['getSheetId']())!==_0x3906d0&&await this[_0x16584c(0x1ea)]['executeCommand'](_0x598061['id'],{'unitId':_0x514bb1['getUnitId'](),'subUnitId':_0x3906d0});}async[_0x335edf(0x357)](_0x806522){const _0x29b143=_0x335edf;let _0x172789=0x0;const _0x287e54=await this[_0x29b143(0x3ad)]['loadOfflineData'](_0x806522);return _0x287e54&&(_0x287e54[_0x29b143(0x372)]||_0x287e54[_0x29b143(0x294)]['length']!==0x0)&&(_0x172789=_0x287e54[_0x29b143(0x36b)]),_0x172789===0x0&&this['_logService'][_0x29b143(0x274)](_0x29b143(0x42d),_0x29b143(0x2ed)),this[_0x29b143(0x347)][_0x29b143(0x257)](_0x806522,_0x172789);}async['_loadDoc'](_0x3b4f1e){const _0x274384=_0x335edf;let _0x447c1d=0x0;const _0x3d8c82=await this[_0x274384(0x3ad)][_0x274384(0x314)](_0x3b4f1e);return _0x3d8c82&&(_0x3d8c82[_0x274384(0x372)]||_0x3d8c82[_0x274384(0x294)]['length']!==0x0)&&(_0x447c1d=_0x3d8c82[_0x274384(0x36b)]),_0x447c1d===0x0&&this[_0x274384(0x4b8)][_0x274384(0x274)](_0x274384(0x42d),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x274384(0x347)][_0x274384(0x17f)](_0x3b4f1e,_0x447c1d);}};qe=po([me(0x0,Fs),me(0x1,_0x96d163),me(0x2,_0x5ad0bf),me(0x3,_0x412e01(D)),me(0x4,_0x412e01(_0x4187e2)),me(0x5,_0x21427f(_0x3e482c))],qe);var vo=Object[_0x335edf(0x226)],Io=Object[_0x335edf(0x2e4)],Eo=(_0x2b1b79,_0x4913db,_0x776962,_0xf278ca)=>{const _0x22b236=_0x335edf;for(var _0x33abbe=_0xf278ca>0x1?void 0x0:_0xf278ca?Io(_0x4913db,_0x776962):_0x4913db,_0x56d293=_0x2b1b79[_0x22b236(0x2d5)]-0x1,_0xcbc4a6;_0x56d293>=0x0;_0x56d293--)(_0xcbc4a6=_0x2b1b79[_0x56d293])&&(_0x33abbe=(_0xf278ca?_0xcbc4a6(_0x4913db,_0x776962,_0x33abbe):_0xcbc4a6(_0x33abbe))||_0x33abbe);return _0xf278ca&&_0x33abbe&&vo(_0x4913db,_0x776962,_0x33abbe),_0x33abbe;},fs=(_0x26be4e,_0xfe3141)=>(_0x4a74aa,_0x4bfc69)=>_0xfe3141(_0x4a74aa,_0x4bfc69,_0x26be4e);const Co='DEFAULT_FILE_NAME',bo=_0x335edf(0x178);let ze=class extends _0x443103{constructor(_0x30ab06,_0x3a9076){const _0x169b99=_0x335edf;super(),this[_0x169b99(0x44a)]=_0x30ab06,this['_configService']=_0x3a9076,this[_0x169b99(0x1e9)]();}['_init'](){const _0x3a347c=_0x335edf;this[_0x3a347c(0x33b)](this[_0x3a347c(0x44a)][_0x3a347c(0x23a)]['subscribe'](()=>{const _0x2b6a7c=_0x3a347c;var _0x2328ed;const _0x43176f=this[_0x2b6a7c(0x44a)]['getFocusedUnit']();let _0x182b88=(_0x2328ed=this[_0x2b6a7c(0x2b5)][_0x2b6a7c(0x281)](Co))!=null?_0x2328ed:bo;_0x43176f instanceof _0x2be7d6&&(_0x182b88=_0x43176f[_0x2b6a7c(0x202)]),document['title']=_0x182b88;}));}};ze=Eo([fs(0x0,_0x2bb140),fs(0x1,_0x19915a)],ze);var To=Object[_0x335edf(0x226)],Ro=Object[_0x335edf(0x2e4)],Oo=(_0x59426d,_0x49d09d,_0x25d285,_0x533917)=>{const _0x20925f=_0x335edf;for(var _0x1245a6=_0x533917>0x1?void 0x0:_0x533917?Ro(_0x49d09d,_0x25d285):_0x49d09d,_0x418028=_0x59426d[_0x20925f(0x2d5)]-0x1,_0x14e886;_0x418028>=0x0;_0x418028--)(_0x14e886=_0x59426d[_0x418028])&&(_0x1245a6=(_0x533917?_0x14e886(_0x49d09d,_0x25d285,_0x1245a6):_0x14e886(_0x1245a6))||_0x1245a6);return _0x533917&&_0x1245a6&&To(_0x49d09d,_0x25d285,_0x1245a6),_0x1245a6;},gt=(_0xb0329b,_0xdb8ba4)=>(_0x45878c,_0xa152bf)=>_0xdb8ba4(_0x45878c,_0xa152bf,_0xb0329b);let Ze=class{constructor(_0x4dc1d7,_0xb34b88,_0xa18305){const _0x5b2a7e=_0x335edf;this[_0x5b2a7e(0x2b5)]=_0x4dc1d7,this[_0x5b2a7e(0x327)]=_0xb34b88,this[_0x5b2a7e(0x26b)]=_0xa18305,this['init']();}[_0x335edf(0x3b7)](){const _0x2213c0=_0x335edf;this[_0x2213c0(0x327)][_0x2213c0(0x4ad)]({'priority':0x1,'interceptor':(_0x60428,_0x14c535)=>_0x14c535(_0x60428)[_0x2213c0(0x266)](_0x387b12(async _0x3ad22c=>{const _0x593c34=_0x2213c0,_0x595c16=_0x3ad22c;if(_0x595c16['status']===0x191&&window[_0x593c34(0x33c)](this[_0x593c34(0x26b)]['t'](_0x593c34(0x3b6)))){const _0xb448c3=window['encodeURIComponent'](window[_0x593c34(0x38a)][_0x593c34(0x317)]);window[_0x593c34(0x38a)][_0x593c34(0x317)]=this[_0x593c34(0x26d)]()+_0x593c34(0x335)+_0xb448c3;}return _0x595c16;}))});}[_0x335edf(0x26d)](){const _0x4c5a4d=_0x335edf;var _0xf55e1f,_0x5052f9;const _0x2736f2=this['_configService'][_0x4c5a4d(0x281)](wn),_0x57ceb8=this['_configService'][_0x4c5a4d(0x281)](L);return(_0x5052f9=(_0xf55e1f=_0x57ceb8==null?void 0x0:_0x57ceb8[_0x4c5a4d(0x31c)])!=null?_0xf55e1f:_0x2736f2)!=null?_0x5052f9:Pn;}};Ze=Oo([gt(0x0,_0x19915a),gt(0x1,_0x412e01(_0x480539)),gt(0x2,_0x412e01(_0x1c954b))],Ze);var Do=Object['defineProperty'],wo=Object[_0x335edf(0x2e4)],Po=(_0x4d0648,_0xc1ac60,_0x1ffce3,_0x1f8d3c)=>{const _0x58049a=_0x335edf;for(var _0x5849d2=_0x1f8d3c>0x1?void 0x0:_0x1f8d3c?wo(_0xc1ac60,_0x1ffce3):_0xc1ac60,_0x27eba1=_0x4d0648[_0x58049a(0x2d5)]-0x1,_0x25a632;_0x27eba1>=0x0;_0x27eba1--)(_0x25a632=_0x4d0648[_0x27eba1])&&(_0x5849d2=(_0x1f8d3c?_0x25a632(_0xc1ac60,_0x1ffce3,_0x5849d2):_0x25a632(_0x5849d2))||_0x5849d2);return _0x1f8d3c&&_0x5849d2&&Do(_0xc1ac60,_0x1ffce3,_0x5849d2),_0x5849d2;},ms=(_0x192b1d,_0x1f4127)=>(_0x4aa24b,_0x2440f9)=>_0x1f4127(_0x4aa24b,_0x2440f9,_0x192b1d);const yo=_0x335edf(0x2dd),No=_0x335edf(0x228);let Pt=class extends _0x443103{constructor(_0xa9a59a,_0x659eb){const _0x2a405f=_0x335edf;super(),this['_HTTPService']=_0xa9a59a,this[_0x2a405f(0x2b5)]=_0x659eb,this[_0x2a405f(0x334)]();}[_0x335edf(0x334)](){const _0x192105=_0x335edf,_0x48ff78=this;this[_0x192105(0x33b)](this[_0x192105(0x1eb)][_0x192105(0x4ad)]({'priority':0x3e7,'interceptor':_0x5a6b00({'isMatch'(_0x187510){const _0x215f1b=_0x192105;var _0x36f5a3;if(_0x187510[_0x215f1b(0x2c6)]===_0x215f1b(0x4ca)&&((_0x36f5a3=_0x187510[_0x215f1b(0x219)])!=null&&_0x36f5a3[_0x215f1b(0x315)])){const {objectID:_0x1f40c4,objectType:_0x1b689d}=_0x187510[_0x215f1b(0x219)][_0x215f1b(0x315)]||{};if(!_0x1f40c4||_0x1b689d===void 0x0)return!0x1;const _0x3e06d7=_0x48ff78[_0x215f1b(0x3e8)]()+'/'+_0x1b689d+'/object/'+_0x1f40c4+'/allowed';if(_0x187510[_0x215f1b(0x1a8)]===_0x3e06d7)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1ab131){var _0x1460bf;return(_0x1460bf=_0x1ab131['requestParams'])==null?void 0x0:_0x1460bf['body'];},'mergeParamsToRequest'(_0x167814,_0x2f8440){const _0x33dfa0=_0x192105,_0x1fb192=_0x48ff78[_0x33dfa0(0x3e8)]()+_0x33dfa0(0x409),_0x453a8d=_0x167814[_0x33dfa0(0x3d8)]((_0x6e8706,_0x1076f2)=>{const {unitID:_0x219777,objectID:_0x3eaccb,objectType:_0x5d2226,actions:_0x35f4e3}=_0x1076f2;return _0x6e8706[_0x219777]||(_0x6e8706[_0x219777]={}),_0x6e8706[_0x219777][_0x3eaccb]||(_0x6e8706[_0x219777][_0x3eaccb]={'objectID':_0x3eaccb,'objectType':_0x5d2226,'actions':[]}),_0x6e8706[_0x219777][_0x3eaccb]['actions']['push'](..._0x35f4e3),_0x6e8706;},{}),_0x7f3d4a=[];for(const _0x597edf in _0x453a8d)for(const _0x1be24a in _0x453a8d[_0x597edf]){const {actions:_0x2dc4af,objectType:_0x1ea54c}=_0x453a8d[_0x597edf][_0x1be24a],_0x2d5536=[...new Set(_0x2dc4af)];_0x7f3d4a[_0x33dfa0(0x3ed)]({'unitID':_0x597edf,'objectID':_0x1be24a,'objectType':_0x1ea54c,'actions':_0x2d5536});}return new _0x1bd31e(_0x33dfa0(0x4ca),_0x1fb192,{'headers':_0x2f8440[_0x33dfa0(0x3d4)],'withCredentials':_0x2f8440[_0x33dfa0(0x2bd)],'responseType':_0x2f8440[_0x33dfa0(0x177)],'body':{'requests':_0x7f3d4a}});}},{'distributeResult'(_0x134025,_0x20a472){const _0x2a282c=_0x192105,{objectActions:_0x496062}=_0x134025;return _0x20a472[_0x2a282c(0x1ac)](_0x5075d9=>{const _0x168f0d=_0x2a282c,{unitID:_0x112822,objectID:_0x3b1df7,actions:_0x51a946}=_0x5075d9,_0x25ca75=_0x496062[_0x168f0d(0x342)](_0x14afb5=>_0x14afb5[_0x168f0d(0x2a6)]===_0x112822&&_0x14afb5[_0x168f0d(0x1c5)]===_0x3b1df7),_0x523f3a=_0x51a946[_0x168f0d(0x1ac)](_0x113395=>_0x25ca75==null?void 0x0:_0x25ca75[_0x168f0d(0x18d)][_0x168f0d(0x342)](_0x5175e7=>_0x5175e7['action']===_0x113395))[_0x168f0d(0x1dc)](_0x1a2c60=>!!_0x1a2c60);return{'config':_0x5075d9,'result':{'actions':_0x523f3a,'error':_0x134025[_0x168f0d(0x417)]}};});}})}));}['_getAPIPrefixPath'](){const _0x1e9522=_0x335edf;var _0xa3bb0,_0x3a1ba5;const _0x2fc3c0=this['_configService'][_0x1e9522(0x281)](yo),_0x153aa7=this['_configService'][_0x1e9522(0x281)](L);return(_0x3a1ba5=(_0xa3bb0=_0x153aa7==null?void 0x0:_0x153aa7[_0x1e9522(0x392)])!=null?_0xa3bb0:_0x2fc3c0)!=null?_0x3a1ba5:No;}async['create'](_0x272d82){const _0xae9b79=_0x335edf,_0x5e05a6=this[_0xae9b79(0x3e8)]()+'/'+_0x272d82[_0xae9b79(0x22f)]+_0xae9b79(0x1ff);return(await this[_0xae9b79(0x1eb)][_0xae9b79(0x212)](_0x5e05a6,{'body':_0x272d82}))['body'][_0xae9b79(0x1c5)]||'';}async[_0x335edf(0x46f)](_0xfa4876){const _0x4e954d=_0x335edf,_0x2bfa60=this[_0x4e954d(0x3e8)]()+_0x4e954d(0x3b3);return(await this[_0x4e954d(0x1eb)][_0x4e954d(0x212)](_0x2bfa60,{'body':_0xfa4876}))[_0x4e954d(0x315)][_0x4e954d(0x231)];}async[_0x335edf(0x4a8)](_0x2b8eb3){const _0x3a92ad=_0x335edf,_0x11d64c=this['_getAPIPrefixPath']()+'/'+_0x2b8eb3[_0x3a92ad(0x22f)]+_0x3a92ad(0x1bb)+_0x2b8eb3[_0x3a92ad(0x1c5)];await this[_0x3a92ad(0x1eb)]['put'](_0x11d64c,{'body':_0x2b8eb3});}async[_0x335edf(0x4b6)](_0x30ff58){const _0x232142=_0x335edf,_0x357d74=this[_0x232142(0x3e8)]()+'/'+_0x30ff58[_0x232142(0x22f)]+_0x232142(0x1bb)+_0x30ff58[_0x232142(0x1c5)]+_0x232142(0x23e);return(await this['_HTTPService'][_0x232142(0x212)](_0x357d74,{'body':_0x30ff58}))[_0x232142(0x315)][_0x232142(0x18d)];}async[_0x335edf(0x37a)](_0x160f48){const _0x35733f=_0x335edf,_0x5cb675=this[_0x35733f(0x3e8)]()+_0x35733f(0x409);return(await this[_0x35733f(0x1eb)][_0x35733f(0x212)](_0x5cb675,{'body':{'requests':_0x160f48}}))[_0x35733f(0x315)][_0x35733f(0x2d2)];}async[_0x335edf(0x478)](_0x303c87){const _0x12161b=_0x335edf,_0x5cfe07=this['_getAPIPrefixPath']()+'/'+_0x303c87[_0x12161b(0x22f)]+'/role',_0x285b40=await this['_HTTPService'][_0x12161b(0x212)](_0x5cfe07,{'body':_0x303c87});return{'roles':_0x285b40['body'][_0x12161b(0x3d0)],'actions':_0x285b40['body'][_0x12161b(0x18d)]};}async[_0x335edf(0x27c)](_0x48574c){const _0x35c262=_0x335edf,_0x5024ba=this[_0x35c262(0x3e8)]()+'/collaborator';await this[_0x35c262(0x1eb)][_0x35c262(0x1cb)](_0x5024ba,{'params':{'collaboratorID':_0x48574c[_0x35c262(0x380)],'objectID':_0x48574c[_0x35c262(0x1c5)],'unitID':_0x48574c[_0x35c262(0x2a6)]}});}async['updateCollaborator'](_0x4b9026){const _0x32e42f=_0x335edf,_0x51eac1=this['_getAPIPrefixPath']()+_0x32e42f(0x4a4);await this[_0x32e42f(0x1eb)]['patch'](_0x51eac1,{'body':_0x4b9026});}async[_0x335edf(0x3ec)](_0xa50b95){const _0x5dff8d=_0x335edf,_0x5a171d=this[_0x5dff8d(0x3e8)]()+'/collaborator';await this[_0x5dff8d(0x1eb)][_0x5dff8d(0x212)](_0x5a171d,{'body':_0xa50b95});}async['listCollaborators'](_0x4eab8c){const _0x24d8a1=_0x335edf,_0xecf0d0=this[_0x24d8a1(0x3e8)]()+_0x24d8a1(0x4a4);return(await this[_0x24d8a1(0x1eb)][_0x24d8a1(0x242)](_0xecf0d0,{'params':{'objectID':_0x4eab8c['objectID'],'unitID':_0x4eab8c[_0x24d8a1(0x2a6)]}}))[_0x24d8a1(0x315)]['collaborators'];}async[_0x335edf(0x24c)](_0x3701d8){const _0x3ef24a=_0x335edf,_0x276aaa=this[_0x3ef24a(0x3e8)]()+_0x3ef24a(0x4a4);await this[_0x3ef24a(0x1eb)]['put'](_0x276aaa,{'body':_0x3701d8});}};Pt=Po([ms(0x0,_0x412e01(_0x480539)),ms(0x1,_0x412e01(_0x19915a))],Pt);var Uo=Object[_0x335edf(0x226)],Mo=Object['getOwnPropertyDescriptor'],Ao=(_0x31fbd8,_0x17de9a,_0x3ff58d,_0x139630)=>{const _0x23e2af=_0x335edf;for(var _0x3a68ad=_0x139630>0x1?void 0x0:_0x139630?Mo(_0x17de9a,_0x3ff58d):_0x17de9a,_0x2a6536=_0x31fbd8[_0x23e2af(0x2d5)]-0x1,_0x1c72b5;_0x2a6536>=0x0;_0x2a6536--)(_0x1c72b5=_0x31fbd8[_0x2a6536])&&(_0x3a68ad=(_0x139630?_0x1c72b5(_0x17de9a,_0x3ff58d,_0x3a68ad):_0x1c72b5(_0x3a68ad))||_0x3a68ad);return _0x139630&&_0x3a68ad&&Uo(_0x17de9a,_0x3ff58d,_0x3a68ad),_0x3a68ad;},Lo=(_0x154c05,_0x4e651e)=>(_0x439169,_0x59011a)=>_0x4e651e(_0x439169,_0x59011a,_0x154c05);function _0x4fd1(){const _0x12d3cf=['onTransformRemoteChangesetByIMECache','error','[UniverCollaborationClientPlugin]','OffLineSingle','_labelPosition','&assign=','findNodePositionByCharIndex','updatePermissionPoint','1204316AkpbpR','univer-pro.collaboration-client.single-active-unit-service','appendMutation','roomMembers$','_snapshotServerService','_refreshCollabCursors','ALREADY_EXISTS','collabSubmitChangesetUrl','roomMembers','_onRemoteRejected','unshift','PSEUDO_FETCH_MISSING_RESULT','onRendered','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','not_collab','[DataLoaderController]','_removeRoom','UNKNOWN_CMD','collab-text-range-','_initCommandExecutedListener','substring','registerRefRange','\x0aAfter:\x20','_initCloseConn','getCollabCursors$','awaiting_with_pending','doc.mutation.rich-text-editing','save','UnitSnapshot','M0\x200H16V16H0z','YUUMI_UNABLE_LOAD_URL','xlink:href','setShapeProps','_range','target','_colorAssignService','_executeRemoteChangeset','_schedule','_telemetryInfo','_colorIndex','[CollaborationUndoRedoService]','_singleActiveUnitService','_onUserJoin','updateCursorEvent','_univerInstanceService','getSheetId','_initStatusComponent','max','\x20-\x20','FileId','_scheduleClearOtherTimer','_eventUnsubscribe','unsubscribe','submit\x20changeset\x20error!','/resources','stopTime','isArray','slice','conflict','_awaitingChangeset','_roomMembers$','ranges','unload','/rev/','values','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','[OfflineState]:\x20received\x20changeset.','_startSheetCollabCursor','clearInterval','9894871gazVZV','isPermissionRej','current','permission.title','sessionStatus','function','includes','reject','sheetID','_updateState','_isPermissionRej','onPointerLeave$','list','_updateCollabCursors','getCurrent','_onMessage','show','data','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_createInitialStateImpl','_status$','listRoles','_clearUndo','_undoStacks','skeleton','setUndoRedoMutationParamsCache','newValue','_docSyncEditingCollabCursorService','tag','_event$','getDocRanges','_onConflict','unit','AWAITING_WITH_PENDING','CONFLICT','send','COMPRESS_MUTATION_SEND','collab-rect-range-','newCsEvent','resend','_compressMutationService','_timeoutTimer','PERMISSION_REJ','subUnitId','getMemberID','textRanges','extend','sendChangesetTimeout','_handleHover','_id','bottom','append','state','APPLY_NON_SEQUENTIAL_REVISION','_scheduleTimestamp','_textBubble','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_registerRenderDependencies','off-line-single','exhaustSavingTask','onload','univer-online-status-title','activeSheet$','8FqMPli','path','/collaborator','/unit/','saveOfflineData','save\x20fail\x20reason\x20is\x20','update','_collaborationSessionService','workbook','removeMember','HEARTBEAT_TIMEOUT','registerHTTPInterceptor','&to=','session','_acknowledgedAwaitingChangeset','session.collaboration-timeout','getUnhiddenWorksheets','clearTimeout','onPointerMove$','[PendingState]:\x20received\x20acknowledgement.','allowed','COMMENT_UPDATE','_logService','restore','reconnect','USERS_LEAVE','APPLY_REVISION_CONFILICT','_updateStatus','_remoteChangesetQueue','setItem','LIVESHARE_NEW_HOST','height','image/jpg','requireSession','_stopTelemetryCollaborationNewChangeset','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[SyncedState]:\x20received\x20rejection.','sessionStatus$','_permissionService','#fff','POST','collaboration-session-retry','transformSelections','compose','add','[OfflineState]:\x20received\x20acknowledgement.','message$','getUnit','collaboration.single-unit.warning','collab-client.tooltip.reconnect','_toggleOffline','_startCollaboration','parse','UNDEFINED','_unlockTransition','_queuedRemoteChangesets','[SyncedState]:\x20received\x20acknowledgement.','visibilitychange','_retryCount','_setupSubUnitSync','UNKNOWN_CODE','UNRECOGNIZED','registerComponent','/block/','getCurrentSelections','use','toRgbString','_setupBeforeClosingHandler','generateRandomId','_commentService','transformMutationsWithChangeset','_scheduleSaving','setParam','_transformRemoteChangesetByIMECache','[CollaborationSessionService]:\x20socket\x20error','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','/fetchmissing?from=','responseType','Univer','_docTransformSelectionsService','getCollabEntity$','cursorInfo','now','NEW_CHANGESETS','editingUnit','loadDoc','getRelativeToViewportCoord','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_themeService','getCurrentUser','_transformService','error$','_unitOnClients','joinRsp','_transformSelections','setCurrentUser','_handleHeartbeatEvent','_onRemoteChangeset','measureText','actions','NOT_COLLAB','blue400','_saveTaskMap','saveImage','_send','365290NpcQGk','_imageSourceCache','onMissingChangesets','collabStatus.fetchMiss','RETRY_CONNECTING_MAX_COUNT','_onUserLeave','contains','className','whenReady','propertyIsEnumerable','_docTransformIMECacheService','string','triggerDblclick','_ws','_startDocCollabCursor','uni.network.url-service','[CollaborationState]:\x20apply\x20error!','getUnitType','json','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','symbol','url','_document','_retryConnectingTimer','next','map','_heartbeatTimer','fetch_missing','UNIVER_SLIDE','getInterceptPoints','onStarting','&source=','OFFLINE','APPLY_PERMISSION_DENIED','dispose','univer-online-status','socketService','collabStatus.conflict','_replayCachedMutations','_handler','/object/','subscribe','getCurrentRevOfUnit','_session','retryConnectingInterval','saveChangeset','_getRedoStack','fillText','_hover','commentUpdate$','objectID','_scene','transformMutation','_config','_lockTransition','transform','delete','_undoRedoService','m2Prime','session.room-full','entries','_unitID','indexOf','createElement','arc','sheets','2283275amxqGK','_syncEditingCollabCursorService','c1Prime','none','dispose$','socket\x20open.','type','filter','_disabled','evenodd','incrementRevOfUnit','_drawTextRange','_clearOtherTimers','_socket$','ERROR_IMAGE','_initStatusListener','endColumn','_getCtorByUniverType','getUnitId','collaMsg','_init','_commandService','_HTTPService','_clearHeartbeatTimer','onSendChangeset','socket\x20close','onPointerEnter$','getWorkbookSelections','LICENSE_IMPORT_SIZE_EXCEEDED','onTransformSelections','collaboration.closeRoom','_getSheetObject','_getAPIPrefix','snapshot','_entityInit$','RECV','UnitEmbedded','ONLINE','SNAPSHOT_URL_KEY','popstate','_getScale','resize','/object','awaiting','_localeService','name','_collabSessionService','_initResize','saveSheetBlock','_entities','isActive','UNIVER_UNKNOWN','_substituteRedoStack','_submitChangeset','lineTo','SYNCED','startsWith','permissionRejEvent','HEARTBEAT','subscribeEvent','TOO_MANY_REQUESTS','post','_getSendChangesetTimeout','unitId','drawWith','_createInitialState','_handleEvent','toggleOnline','requestParams','_cursors','_cursorShapes','round','_listenToOfflineEvent','onlineStatusTitle','[PendingState]:\x20unhandled\x20univer\x20type:\x20','unitId\x20is\x20not\x20found','getTypeOfUnitDisposed$','_createSocket','onRemoteAck','VIEW_MAIN','_memberService','defineProperty','history','/universer-api/authz','MUTATION','_shouldReportTelemetry','complete','_scheduleCollaborationTimeoutTimer','getFocusedUnit','gold400','objectType','MSG_FOR_ERROR','objects','_applyRemoteChangeset','/universer-api/stream/file/upload','_onJoinRoomEvent','INVALID_ARGUMENT','_updateSubUnitFromURLParams','transformRemoteChangeset','_roomMembers','visibilityState','focused$','pauseCollaboration','selection','getCellPositionByOffset','/allowed','_substituteUndoStack','HELLO','SUBMIT_CHANGESET','get','_transformStack','range','size','_getCurrentRevision','_tryEnsureSocket','colorChannel1','SNAPSHOT_INVALID_SNAPSHOT','image/jpeg','8663652vhrnBP','putCollaborators','_transitionLocked','_toggleOnline','getRenderById','collabCursorState$','getSheetBySheetId','duration','USERS_ENTER','getOwnPropertySymbols','_handleJoinEvent','_sheetTransformSelectionsService','loadSheet','on-line-single_clip0_910_349','setWaitCount','getImageSourceCache','copyFileMeta','SHOULD_CLOSE_CONN','OnLineSingle','getCollabEntity','0\x200\x2016\x2016','clear','_redoStacks','getItem','_disableEditing','apply','session.connection-failed','pipe','_waitForHeartbeatResponse','defIds','LOGIN_URL_KEY','setActiveRange','localeService','_messageService','_getLoginPath','NO_OTHER_CLIENTS_EDITING','[OfflineState]:\x20received\x20rejection.','COLLAB_WEB_SOCKET_URL','_replaceFileID','CONNECTOR_DATA_TOO_LARGE','deepClone','debug','RemoveRowCommandId','_onOffline','isEditing','_tryReconnect','changesets','joinEvent','_clearCollaborationTimeoutTimer','deleteCollaborator','18NxAJub','params','YUUMI_URL_COL_OUT_OF_RANGE','off-line-single_clip0_910_343','getConfig','_createHandler','defs','LIVESHARE_FETCH_OPERATIONS','_shapes','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_exhaustRemoteChangesetQueue','_context','_getSignURL','removeParam','status$','_beforeCloseService','_pendingMutations','_ensureSubject','state$','createInstance','univer-online','INGEST','1076703RjfVAU','mutations','_members','collaboration-client.offline-data-not-saved','getAncestorScale','_initEventListeners','_color','_transformPreviousActiveRange','LEAVE','UNAUTHENTICATED','addEventListener','_collabCursorController','image/bmp','_localStorageService','updatePermissionObjEvent','_getDownloadEndpointURL','_sendHeartbeat','_removeCollabCursors','override','unitID','UPDATE_CURSOR','YUUMI_RATE_OVER_LIMIT','online','searchParams','_onCombEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','COLLAB_SUBMIT_CHANGESET_URL','_sendingTimer','onTransformIME','_hideTimer','Undefined','fetchMiss','univer-pro.collaboration-client-socket-service','storage','_configService','_cachedData','BASE64','failed\x20to\x20apply\x20missed\x20changesets!','_onConnectionFailed','HEARTBEAT_INTERVAL','Error\x20on\x20receiving\x20event','onCommentUpdate','withCredentials','encode','collabStatus.syncing','stringify','LICENSE_DISTRO_REJECTED','startColumn','hasOwnProperty','transformIMECache','_sessions','method','getImage','registerRenderModule','forEach','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','univer-offline','_clearTimeoutTimer','_uiPartsService','_clearScheduledTask','_socketMessageSubscription','FETCH_MISS','close','objectActions','_startTelemetryCollaborationNewChangeset','\x20in\x20_schedule.','length','_fetchMissChangesets','_cursorInfo$','text','csAckEvent','interceptor','getUniverSheetInstance','subunit','AUTHZ_URL_KEY','getVpScrollXYInfoByPosToVp','createSocket','_getUploadFileURL','backgroundColor','LIVESHARE_OPERATION','synced','getOwnPropertyDescriptor','call','x-univer-host','COMPLETION_FINISHED','getTypeOfUnitAdded$','_rescheduleHeartbeat','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','RemoveColCommandId','212894cHigaw','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','APPLY_REJECT','setInterval','getUnitStatus$','13XdVepl','_telemetryService','prototype','c2Prime','attrs','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','Warning','getActiveRange','_unitStatus','_updateURLWithCurrentState','onlineStatusIcon','_drawRectRange','enableOfflineEditing','getResourcesRequest','routeKey','saveSnapshot','onlyLocal','replaceTextRanges','onSyncEditingCollabCursor','ACTIVE_UNIT_EVENT_CHANNEL','setAlpha','closeSession','_docSkeletonManagerService','SUCCUSS','getValue','all','JOINING','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','InsertColCommandId','getViewport','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_hovered','_getMergeRange','getRangePointData','PERMISSION_DENIED','loadOfflineData','body','_initUnitPermissionChange','href','_assignedColors','_onCursorUpdate','getParam','LOCAL_CACHE_INTERVAL','loginUrlKey','unit-cache-','_onCursorDelete','displayName','color','transformByState','_collaborationTimeoutTimer','/universer-api/file/{fileID}/sign-url','_saveCache','currentSkeleton$','_updateLocalCursor','_httpService','...','addObject','setTimeout','_getAnchorBounding','fillRule','fill','_injector','children','getActiveSheet','_renderManagerService','_getSaveTimeout','resolve','_initMergeInterceptor','?url=','startRow','idSuffix','_checkMissing','src','rgba(255,\x20255,\x20255,\x200.01)','disposeWithMe','confirm','_removeClearOtherTimer','memberID','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onCommandExecuted','PENDING','find','with','onlineStatus','eventID','InsertRowCommandId','_snapshotService','_syncEditingCollabCursor','disableLocalCache','_instanceService','LICENSE_MAX_UNITS_EXCEEDED','_online','onMouseMove','selections','random','div','updateMember','DeleteRangeMoveLeftCommandId','has','initWorkbookPermissionChange','editing\x20status\x20changed\x20to','currentTheme$','_loadSheet','_drawAnchor','event$','_waitCount','\x20to\x20','verdancy600','getMergeData','fillStyle','replace','uploadFileServerUrl','toString','change$','offline','_cursor','originalMeta','assignAColorForMemberID','reverse','_anchorDot','hidden','purple300','rev','fetchThroughInterceptors','_sheetSkeletonManagerService','_updateLocalCache','_sessionStatus$','getOffsetConfig','LIVESHARE_REQUEST_HOST','awaitingChangeset','SNAPSHOT_SERVER_URL_KEY','_anchor','_docStateChangeManagerService','assign','\x0aCurrent:\x20','getUndoRedoMutationParamsCache','LIVESHARE_TERMINATE','batchAllowed','SNAPSHOT_HAS_BEEN_REMOVED','getCurrentUnitForType','collabWebSocketUrl','min','conflict.content','collaboratorID','_selfUnitIDs','UNIVER_PROJECT','IDLE','resourceIDs','_incrementRevisionNumber','_getUndoStack','replaceState','1em','collab-text-anchor-','location','executeCommand','catch','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','transformUndoRedo','_candidateSocket','_commentUpdate$','UNIVER_SHEET','authzUrl','currentColor','_socketReady','_transformIMECache','_handleLeaveEvent','getUnitOnRev','onMissedChangesetFetched','[CollaborationSession]','onRemoteRej','makeDirty','YUUMI_SUBSCRIPTION_NOT_FOUND','engine','_state$','_lastPointer','liveShareOperation','image/png','onTransformChange$','CHANGESET_REJ','status','_showConflictNotification','EXCHANGE_SIGN_URL_SERVER_URL_KEY','readAsDataURL','addImageSourceCache','_initRequestHeader','InsertRangeMoveDownCommandId','flatMap','_sendHeartbeatTimer','_localCacheService','collaboration-client.config','MoveRangeCommandId','toggleOffline','LICENSE_EXPORT_SIZE_EXCEEDED','/new_changes','/-/object/list','JOIN','_listenToOnlineEvent','auth.needGotoLoginAlert','init','_socketService','column','CHANGESET_ACK','onRemoteChangeset','CHANGESET_REVISION_CONFILICT','_onRemoteACK','_transformUndoredo','UNIVER_DOC','width','[FetchMissState]','INTERNAL_ERROR','_revisionService','_state','font','cmd','_userManagerService','_onLocalMutation','enableSingleActiveInstanceLock','then','from','liveShareNewHost','_urlService','csRejEvent','_type','roles','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_clearLocalCache','headers','userID','session.will-retry','black','reduce','revision','getTime','FAIL','code','moveTo','/universer-api/oidc/authpage','_decreaseWaiting','_throwTelemetryCollaborationNewChangeset','_change$','set','capture','univer-online-status-icon','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','startTime','getDeserializedSheetBlock','_getAPIPrefixPath','_notificationService','cursorInfo$','[CollaborationSessionService]','createCollaborator','push','OTHER_CLIENTS_EDITING','_http','updateOfflineData','concat','shouldCloseConn','origin','Error','baseRev','urlChange$','_socket','_refRangeService','_collabCursorState$','registerOnClose','labelPosition','FETCH_MISSING','_joinRoom','row','getMember','_name','icon','result','unknown','syncEditingCollabCursor','members','_collaborationPaused','open$','m1Prime','/-/object/-/batch_allowed','pushState','asObservable','COMPRESS_MUTATION_APPLY','DeleteRangeMoveUpCommandId','_transformUndoRedoStack','every','AWAITING','pending','HttpImport','_backgroundColor','NOT_FOUND','_draw'];_0x4fd1=function(){return _0x12d3cf;};return _0x4fd1();}let Qe=class{constructor(_0x3f8c14){const _0x8c09d=_0x335edf;this[_0x8c09d(0x327)]=_0x3f8c14,this[_0x8c09d(0x3a9)]();}[_0x335edf(0x3a9)](){const _0x2699e7=_0x335edf;this[_0x2699e7(0x327)][_0x2699e7(0x4ad)]({'interceptor':(_0x5b0fce,_0x2ca314)=>{const _0x242e93=_0x2699e7,_0x3d1f5a=_0x5b0fce['headers'],_0x23b15b=_0x593233();return _0x23b15b&&_0x3d1f5a[_0x242e93(0x3e2)](_0x242e93(0x2e6),_0x23b15b),_0x2ca314(_0x5b0fce);}});}};Qe=Ao([Lo(0x0,_0x412e01(_0x480539))],Qe);var $o=Object[_0x335edf(0x226)],jo=Object['getOwnPropertyDescriptor'],xo=(_0x34a300,_0xe283c1,_0xd8b0ee,_0x428497)=>{const _0x1b5aa3=_0x335edf;for(var _0x14e134=_0x428497>0x1?void 0x0:_0x428497?jo(_0xe283c1,_0xd8b0ee):_0xe283c1,_0x5018b6=_0x34a300[_0x1b5aa3(0x2d5)]-0x1,_0x19e659;_0x5018b6>=0x0;_0x5018b6--)(_0x19e659=_0x34a300[_0x5018b6])&&(_0x14e134=(_0x428497?_0x19e659(_0xe283c1,_0xd8b0ee,_0x14e134):_0x19e659(_0x14e134))||_0x14e134);return _0x428497&&_0x14e134&&$o(_0xe283c1,_0xd8b0ee,_0x14e134),_0x14e134;},St=(_0x374cdc,_0x2f06ce)=>(_0x30c854,_0x4f57d8)=>_0x2f06ce(_0x30c854,_0x4f57d8,_0x374cdc);const Ho=[_0x335edf(0x3a1),_0x335edf(0x24a),_0x335edf(0x4c2),'image/gif',_0x335edf(0x29f)],ko=0x5*0x400*0x400,Bo='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',Vo=_0x335edf(0x233),Fo=_0x335edf(0x3a6),Wo=_0x335edf(0x323);let yt=class{constructor(_0x2c2693,_0x4129ad,_0xfc566a){const _0x578923=_0x335edf;l(this,_0x578923(0x35a),0x0),l(this,_0x578923(0x3e1),new _0x509a7c()),l(this,_0x578923(0x362),this['_change$']),l(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x2c2693,this[_0x578923(0x2b5)]=_0x4129ad,this[_0x578923(0x44a)]=_0xfc566a);}[_0x335edf(0x259)](_0x2c730c){const _0x5b795e=_0x335edf;this[_0x5b795e(0x35a)]=_0x2c730c,this[_0x5b795e(0x3e1)][_0x5b795e(0x1ab)](_0x2c730c);}[_0x335edf(0x25a)](_0x5906c7,_0x28b6da){const _0xe1bf1=_0x335edf;if(_0x28b6da===_0x231132[_0xe1bf1(0x2b7)]){const _0x51bdae=new Image();return _0x51bdae[_0xe1bf1(0x339)]=_0x5906c7,_0x51bdae;}return this['_imageSourceCache'][_0xe1bf1(0x242)](_0x5906c7);}[_0x335edf(0x3a8)](_0x52365e,_0x278da7,_0x388606){const _0x452419=_0x335edf;_0x278da7===_0x231132[_0x452419(0x2b7)]||_0x388606==null||this[_0x452419(0x194)][_0x452419(0x3e2)](_0x52365e,_0x388606);}async[_0x335edf(0x2c7)](_0x32a21e){const _0xca3dfe=_0x335edf;try{const _0xcf5a17=this[_0xca3dfe(0x271)](this['_getSignURL'](),''+_0x32a21e),_0x579088=(await this['_httpService']['get'](_0xcf5a17))[_0xca3dfe(0x315)];if(_0x579088[_0xca3dfe(0x417)]&&_0x579088['error']['code']===Ms['OK']){const _0x5e7cc6=new URL(_0x579088[_0xca3dfe(0x1a8)],this['_getDownloadEndpointURL']())[_0xca3dfe(0x361)]();return Promise[_0xca3dfe(0x333)](_0x5e7cc6);}return Promise[_0xca3dfe(0x46a)](_0x579088['error']);}catch(_0x3fa80b){return Promise[_0xca3dfe(0x46a)](_0x3fa80b);}}async[_0x335edf(0x191)](_0xd53bc3){const _0x61a2b5=_0x335edf;let _0x1ce9a6='';if(!Ho[_0x61a2b5(0x469)](_0xd53bc3[_0x61a2b5(0x1db)]))return this[_0x61a2b5(0x3df)](),Promise[_0x61a2b5(0x46a)](new Error(_0x13e778['ERROR_IMAGE_TYPE']));if(_0xd53bc3['size']>ko)return this['_decreaseWaiting'](),Promise[_0x61a2b5(0x46a)](new Error(_0x13e778['ERROR_EXCEED_SIZE']));try{const _0x3b7356=new FormData();_0x3b7356[_0x61a2b5(0x496)]('file',_0xd53bc3);const _0x556f60=this[_0x61a2b5(0x44a)][_0x61a2b5(0x22d)](),_0x620ed6=_0x556f60==null?void 0x0:_0x556f60[_0x61a2b5(0x1e7)]();if(!_0x620ed6)throw new Error(_0x61a2b5(0x220));const _0x4ae3bc=this[_0x61a2b5(0x2e0)]()+'?size='+_0xd53bc3[_0x61a2b5(0x245)][_0x61a2b5(0x361)]()+_0x61a2b5(0x1b2)+As[_0x61a2b5(0x1f9)]+_0x61a2b5(0x41b)+encodeURIComponent(_0x620ed6),_0x13d866=await(await fetch(_0x4ae3bc,{'method':_0x61a2b5(0x4ca),'body':_0x3b7356}))[_0x61a2b5(0x1a5)]();if(typeof _0x13d866[_0x61a2b5(0x44f)]!=_0x61a2b5(0x19e))return this[_0x61a2b5(0x3df)](),Promise[_0x61a2b5(0x46a)](new Error(_0x13e778[_0x61a2b5(0x1e3)]));_0x1ce9a6=_0x13d866[_0x61a2b5(0x44f)];}catch{return this[_0x61a2b5(0x3df)](),Promise[_0x61a2b5(0x46a)](new Error(_0x13e778[_0x61a2b5(0x1e3)]));}return new Promise((_0x24daf1,_0x12f945)=>{const _0x2d510c=_0x61a2b5,_0x77f54f=new FileReader();_0x77f54f[_0x2d510c(0x3a7)](_0xd53bc3),_0x77f54f[_0x2d510c(0x49f)]=_0x34599=>{const _0x41aff1=_0x2d510c;var _0x420d80;const _0x1bc8a8=(_0x420d80=_0x34599[_0x41aff1(0x440)])==null?void 0x0:_0x420d80[_0x41aff1(0x402)];if(_0x1bc8a8==null){this[_0x41aff1(0x3df)](),_0x12f945(new Error(_0x13e778[_0x41aff1(0x1e3)]));return;}const _0x10ed8f=_0x39831b['generateRandomId'](0x6);_0x24daf1({'imageId':_0x10ed8f,'imageSourceType':_0x231132['UUID'],'source':_0x1ce9a6,'base64Cache':_0x1bc8a8,'status':_0x13e778[_0x41aff1(0x308)]}),this[_0x41aff1(0x3df)]();};});}[_0x335edf(0x2e0)](){const _0x516a14=_0x335edf;var _0x5f5882,_0x5f2d63;const _0x2473f5=this['_configService']['getConfig'](Bo),_0x47dc4f=this[_0x516a14(0x2b5)][_0x516a14(0x281)](L);return(_0x5f2d63=(_0x5f5882=_0x47dc4f==null?void 0x0:_0x47dc4f[_0x516a14(0x360)])!=null?_0x5f5882:_0x2473f5)!=null?_0x5f2d63:Vo;}[_0x335edf(0x289)](){const _0x58ff9b=_0x335edf;var _0x4e228f,_0x5b7a23;const _0x2af689=this[_0x58ff9b(0x2b5)][_0x58ff9b(0x281)](Fo),_0x18f1fe=this[_0x58ff9b(0x2b5)][_0x58ff9b(0x281)](L);return(_0x5b7a23=(_0x4e228f=_0x18f1fe==null?void 0x0:_0x18f1fe['signUrlServerUrl'])!=null?_0x4e228f:_0x2af689)!=null?_0x5b7a23:Wo;}[_0x335edf(0x2a2)](){const _0x28ff90=_0x335edf;var _0x2cb60a;const _0x32298e=this[_0x28ff90(0x2b5)][_0x28ff90(0x281)](L);return(_0x2cb60a=_0x32298e==null?void 0x0:_0x32298e['downloadEndpointUrl'])!=null?_0x2cb60a:location[_0x28ff90(0x3f3)];}[_0x335edf(0x271)](_0xa24e0,_0x14563d){const _0x7d3cbe=_0x335edf;return _0xa24e0[_0x7d3cbe(0x35f)]('{fileID}',_0x14563d);}[_0x335edf(0x3df)](){const _0x369de7=_0x335edf;this[_0x369de7(0x35a)]-=0x1,this[_0x369de7(0x3e1)]['next'](this['_waitCount']);}};yt=xo([St(0x0,_0x412e01(_0x480539)),St(0x1,_0x19915a),St(0x2,_0x412e01(_0x2bb140))],yt);var Go=Object['defineProperty'],Yo=Object[_0x335edf(0x2e4)],Ko=(_0x57f1e1,_0x56e329,_0x32f727,_0x3deae9)=>{const _0x25198d=_0x335edf;for(var _0x282c03=_0x3deae9>0x1?void 0x0:_0x3deae9?Yo(_0x56e329,_0x32f727):_0x56e329,_0x3e0a20=_0x57f1e1[_0x25198d(0x2d5)]-0x1,_0x451169;_0x3e0a20>=0x0;_0x3e0a20--)(_0x451169=_0x57f1e1[_0x3e0a20])&&(_0x282c03=(_0x3deae9?_0x451169(_0x56e329,_0x32f727,_0x282c03):_0x451169(_0x282c03))||_0x282c03);return _0x3deae9&&_0x282c03&&Go(_0x56e329,_0x32f727,_0x282c03),_0x282c03;},Pe=(_0x58f382,_0x5eefd1)=>(_0x48fd5a,_0x13322b)=>_0x5eefd1(_0x48fd5a,_0x13322b,_0x58f382);let et=class extends _0x832c1b{constructor(_0x5b7a81,_0x262993,_0x28ba9f,_0x4d7ae2,_0x1d05c2){const _0x17f3d6=_0x335edf;super(),this['_injector']=_0x5b7a81,this[_0x17f3d6(0x44a)]=_0x262993,this[_0x17f3d6(0x4c8)]=_0x28ba9f,this[_0x17f3d6(0x4a9)]=_0x4d7ae2,this[_0x17f3d6(0x201)]=_0x1d05c2,this[_0x17f3d6(0x316)](),this['_initCloseConn']();}[_0x335edf(0x435)](){const _0x5f4673=_0x335edf,_0x143027=async _0x3106df=>{const _0x5d5b4c=_0x1425;(await this[_0x5d5b4c(0x4a9)][_0x5d5b4c(0x4c3)](_0x3106df))[_0x5d5b4c(0x359)][_0x5d5b4c(0x266)](_0x3e7870(_0xc0e338=>_0xc0e338[_0x5d5b4c(0x345)]===_0x5bec90[_0x5d5b4c(0x25c)]),_0x3f581e(this[_0x5d5b4c(0x1d9)]))[_0x5d5b4c(0x1bc)](_0x3aad4b=>{const _0x13d72a=_0x5d5b4c,_0x49c043=_0x3aad4b,{reason:_0x3b590f}=_0x49c043[_0x13d72a(0x474)];this[_0x13d72a(0x32e)]['get'](_0x42071b)[_0x13d72a(0x473)]({'type':_0x4c7fa7[_0x13d72a(0x3f4)],'content':this['_localeService']['t'](_0x13d72a(0x1f3))+'('+_0x3b590f+')'}),this[_0x13d72a(0x4c8)][_0x13d72a(0x41d)](new _0x2cefce(_0x3106df)['id'],!0x1),this['_collaborationSessionService'][_0x13d72a(0x306)](_0x3106df);});};_0x249fdc(this[_0x5f4673(0x44a)][_0x5f4673(0x2e8)](_0xb4bf4[_0x5f4673(0x391)]),this[_0x5f4673(0x44a)]['getTypeOfUnitAdded$'](_0xb4bf4[_0x5f4673(0x3bf)]))[_0x5f4673(0x266)](_0x451d6e(_0x374c4e=>_0x374c4e[_0x5f4673(0x1e7)]()),_0x3e7870(_0x415c54=>!_0x4e6cab(_0x415c54)),_0x3f581e(this['dispose$']))['subscribe'](_0x79b80c=>{_0x143027(_0x79b80c);});}[_0x335edf(0x316)](){const _0x2253ca=_0x335edf,_0x1e6f5f=async _0x5e6001=>{const _0x2cb762=_0x1425;(await this['_collaborationSessionService'][_0x2cb762(0x4c3)](_0x5e6001))[_0x2cb762(0x359)][_0x2cb762(0x266)](_0x3e7870(_0x9a0c9d=>_0x9a0c9d[_0x2cb762(0x345)]===_0x5bec90['UPDATE_PERMISSION_OBJ']),_0x3f581e(this['dispose$']))[_0x2cb762(0x1bc)](_0x18fbb6=>{const _0x1c27ff=_0x2cb762,_0x302ae1=_0x18fbb6,{objectId:_0x430115}=_0x302ae1[_0x1c27ff(0x474)],_0x166157=this[_0x1c27ff(0x32e)][_0x1c27ff(0x242)](_0x39508e);_0x430115===_0x5e6001?_0x166157[_0x1c27ff(0x354)](_0x5e6001):_0x166157['refreshPermission'](_0x5e6001,_0x430115);});};_0x249fdc(this[_0x2253ca(0x44a)][_0x2253ca(0x2e8)](_0xb4bf4[_0x2253ca(0x391)]),this[_0x2253ca(0x44a)][_0x2253ca(0x2e8)](_0xb4bf4[_0x2253ca(0x3bf)]))[_0x2253ca(0x266)](_0x451d6e(_0x3fb658=>_0x3fb658[_0x2253ca(0x1e7)]()),_0x3e7870(_0xab57df=>!_0x4e6cab(_0xab57df)),_0x3f581e(this[_0x2253ca(0x1d9)]))[_0x2253ca(0x1bc)](_0x24719f=>{_0x1e6f5f(_0x24719f);});}};et=Ko([Pe(0x0,_0x412e01(_0x5df9be)),Pe(0x1,_0x2bb140),Pe(0x2,_0x41b8c7),Pe(0x3,_0x412e01(ce)),Pe(0x4,_0x412e01(_0x1c954b))],et);var Xo=Object[_0x335edf(0x226)],Jo=Object['getOwnPropertyDescriptor'],qo=(_0x14ef9b,_0x1f1668,_0x4fbddb,_0x31ddd4)=>{const _0x5546ee=_0x335edf;for(var _0x5a21b6=_0x31ddd4>0x1?void 0x0:_0x31ddd4?Jo(_0x1f1668,_0x4fbddb):_0x1f1668,_0x3d4c14=_0x14ef9b[_0x5546ee(0x2d5)]-0x1,_0x75b571;_0x3d4c14>=0x0;_0x3d4c14--)(_0x75b571=_0x14ef9b[_0x3d4c14])&&(_0x5a21b6=(_0x31ddd4?_0x75b571(_0x1f1668,_0x4fbddb,_0x5a21b6):_0x75b571(_0x5a21b6))||_0x5a21b6);return _0x31ddd4&&_0x5a21b6&&Xo(_0x1f1668,_0x4fbddb,_0x5a21b6),_0x5a21b6;},gs=(_0x1c043b,_0x216c5c)=>(_0x435efe,_0x1259f3)=>_0x216c5c(_0x435efe,_0x1259f3,_0x1c043b);let Nt=class{constructor(_0xe557c9,_0x35b69b){const _0x574105=_0x335edf;this['_configService']=_0xe557c9,this[_0x574105(0x327)]=_0x35b69b;}async[_0x335edf(0x397)](_0x484841,_0x5e40cf){const _0xe9a839=_0x335edf;var _0x25166a;const {unitID:_0x5dd532,type:_0x43384d,revision:_0x1935bc=0x0}=_0x5e40cf,_0x3f4830=this['_getSnapshotAPIPrefix']()+'/'+_0x43384d+'/unit/'+_0x5dd532+_0xe9a839(0x45d)+_0x1935bc,_0x3c1692=(await this['_httpService'][_0xe9a839(0x242)](_0x3f4830))[_0xe9a839(0x315)],_0x4d0af2=(_0x25166a=_0x3c1692[_0xe9a839(0x1f6)])==null?void 0x0:_0x25166a[_0xe9a839(0x4aa)];if(_0x4d0af2){const _0x25c07c=_0x4d0af2==null?void 0x0:_0x4d0af2[_0xe9a839(0x365)],_0x4ce4cc=_0x2d0104[_0xe9a839(0x2be)](_0x60da30(_0x25c07c));_0x4d0af2[_0xe9a839(0x365)]=_0x4ce4cc,Object[_0xe9a839(0x1cf)](_0x4d0af2[_0xe9a839(0x1d4)])[_0xe9a839(0x2c9)](([,_0x3b4fad])=>{const _0x10365c=_0xe9a839,_0x2c1496=_0x3b4fad[_0x10365c(0x365)],_0x38597f=_0x2d0104[_0x10365c(0x2be)](_0x60da30(_0x2c1496));_0x3b4fad['originalMeta']=_0x38597f;});}return _0x3c1692;}async['getSheetBlock'](_0xa84c7e,_0x44bd1b){const _0x5a8cb9=_0x335edf,{unitID:_0x3c4cac,type:_0x3a32ce,blockID:_0x5a749b}=_0x44bd1b,_0x15db6b=this[_0x5a8cb9(0x1f5)]()+'/'+_0x3a32ce+_0x5a8cb9(0x4a5)+_0x3c4cac+_0x5a8cb9(0x169)+_0x5a749b;return(await this[_0x5a8cb9(0x327)][_0x5a8cb9(0x242)](_0x15db6b))[_0x5a8cb9(0x315)];}async[_0x335edf(0x3e7)](_0x59281b,_0x42a28e){const _0x1ccff8=_0x335edf,{unitID:_0x49ef14,type:_0x1b69d9,blockID:_0x9f2f9c}=_0x42a28e,_0xd48d73=this[_0x1ccff8(0x1f5)]()+_0x1ccff8(0x169)+_0x1b69d9+'/unit/'+_0x49ef14+_0x1ccff8(0x169)+_0x9f2f9c;return(await this[_0x1ccff8(0x327)]['get'](_0xd48d73))[_0x1ccff8(0x315)];}async['fetchMissingChangesets'](_0x540a4d,_0x4f3181){const _0x5ecf86=_0x335edf,{unitID:_0x1ff80e,type:_0x35c137,from:_0x1e9dc8,to:_0x5c6b70}=_0x4f3181,_0x5cb2c5=this[_0x5ecf86(0x1f5)]()+'/'+_0x35c137+_0x5ecf86(0x4a5)+_0x1ff80e+_0x5ecf86(0x176)+_0x1e9dc8+_0x5ecf86(0x4ae)+_0x5c6b70;return(await this['_httpService'][_0x5ecf86(0x242)](_0x5cb2c5))['body'];}['_getSnapshotAPIPrefix'](){const _0x26fa62=_0x335edf;var _0x4ebb9c;return(_0x4ebb9c=this['_configService'][_0x26fa62(0x281)](mn))!=null?_0x4ebb9c:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0x50b813=_0x335edf;var _0x1ec69a,_0x39e074;const _0x186a21=this['_configService'][_0x50b813(0x281)](dn),_0x294148=this[_0x50b813(0x2b5)][_0x50b813(0x281)](L);return(_0x39e074=(_0x1ec69a=_0x294148==null?void 0x0:_0x294148['snapshotServerUrl'])!=null?_0x1ec69a:_0x186a21)!=null?_0x39e074:fn;}async[_0x335edf(0x2fe)](_0x102560,_0x3c9588){const _0x17287f=_0x335edf,_0x3d7565='/universer-api/snapshot/'+_0x3c9588[_0x17287f(0x1db)]+_0x17287f(0x4a5)+_0x3c9588[_0x17287f(0x2a6)]+_0x17287f(0x454);return(await this[_0x17287f(0x327)][_0x17287f(0x242)](_0x3d7565,{'params':{'resourceId':JSON['stringify'](_0x3c9588[_0x17287f(0x384)])}}))[_0x17287f(0x315)];}[_0x335edf(0x300)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x335edf(0x205)](){const _0x4693b8=_0x335edf;throw new Error(_0x4693b8(0x2ac));}[_0x335edf(0x1c0)](){const _0x39177b=_0x335edf;throw new Error(_0x39177b(0x2ac));}[_0x335edf(0x25b)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Nt=qo([gs(0x0,_0x19915a),gs(0x1,_0x412e01(_0x480539))],Nt);var zo=Object[_0x335edf(0x226)],Zo=Object[_0x335edf(0x2e4)],Qo=(_0x8e4c1b,_0x1263b3,_0x45404f,_0x196a8d)=>{for(var _0x343d56=_0x196a8d>0x1?void 0x0:_0x196a8d?Zo(_0x1263b3,_0x45404f):_0x1263b3,_0x46d37b=_0x8e4c1b['length']-0x1,_0x39691f;_0x46d37b>=0x0;_0x46d37b--)(_0x39691f=_0x8e4c1b[_0x46d37b])&&(_0x343d56=(_0x196a8d?_0x39691f(_0x1263b3,_0x45404f,_0x343d56):_0x39691f(_0x343d56))||_0x343d56);return _0x196a8d&&_0x343d56&&zo(_0x1263b3,_0x45404f,_0x343d56),_0x343d56;},ye=(_0x203a66,_0xd00f94)=>(_0x381aab,_0x37ca71)=>_0xd00f94(_0x381aab,_0x37ca71,_0x203a66);let Ut=class extends _0x2edd85{constructor(_0x2a5a74,_0x44c9bf,_0x350523,_0x24b07b,_0x12450f){const _0x36c984=_0x335edf;super(_0x2a5a74,_0x44c9bf,_0x350523),this[_0x36c984(0x184)]=_0x24b07b,this[_0x36c984(0x4b8)]=_0x12450f;}['transformUndoRedo'](_0x2b9c26,_0x4b8bc5){const _0x55613c=_0x335edf,_0x48a331=this['_getUndoStack'](_0x2b9c26);if(_0x48a331)try{const _0xdbfa8d=this[_0x55613c(0x243)](_0x48a331,_0x4b8bc5);this['_substituteUndoStack'](_0x2b9c26,_0xdbfa8d);}catch(_0x3df924){this['_logService'][_0x55613c(0x417)](_0x55613c(0x446),_0x3df924),this[_0x55613c(0x479)](_0x2b9c26);}const _0x20f436=this[_0x55613c(0x1c1)](_0x2b9c26);if(_0x20f436)try{const _0x2bf9e8=this[_0x55613c(0x243)](_0x20f436,_0x4b8bc5);this['_substituteRedoStack'](_0x2b9c26,_0x2bf9e8);}catch(_0x2b0084){this[_0x55613c(0x4b8)][_0x55613c(0x417)](_0x2b0084),this['_clearRedo'](_0x2b9c26);}}[_0x335edf(0x479)](_0x4ea66){const _0x200abe=_0x335edf,_0x190040=this[_0x200abe(0x386)](_0x4ea66);_0x190040&&(_0x190040[_0x200abe(0x2d5)]=0x0,this[_0x200abe(0x4bd)]());}['_clearRedo'](_0x382ded){const _0x41e3b7=_0x335edf,_0x376fd7=this[_0x41e3b7(0x1c1)](_0x382ded);_0x376fd7&&(_0x376fd7[_0x41e3b7(0x2d5)]=0x0,this[_0x41e3b7(0x4bd)]());}[_0x335edf(0x23f)](_0x21ea6a,_0x5af581){const _0x50a624=_0x335edf;this[_0x50a624(0x47a)][_0x50a624(0x3e2)](_0x21ea6a,_0x5af581),this[_0x50a624(0x4bd)]();}[_0x335edf(0x209)](_0x5e80cf,_0x1c3ba9){const _0x9357ee=_0x335edf;this[_0x9357ee(0x261)][_0x9357ee(0x3e2)](_0x5e80cf,_0x1c3ba9),this[_0x9357ee(0x4bd)]();}[_0x335edf(0x243)](_0x4f2cd5,_0x4227a1){const _0xd7d6d6=_0x335edf,_0xa109c1=[];let _0x9c9066=_0x4227a1,_0x8b54d5=_0x4227a1;for(let _0x4aa380=_0x4f2cd5[_0xd7d6d6(0x2d5)]-0x1;_0x4aa380>=0x0;_0x4aa380--){const {unitID:_0x3bf81a,undoMutations:_0x1f0cd9,redoMutations:_0x39fcc0}=_0x4f2cd5[_0x4aa380],_0x443ca8=this[_0xd7d6d6(0x184)][_0xd7d6d6(0x170)](_0x9c9066,_0x1f0cd9),_0xcfa8b7=this[_0xd7d6d6(0x184)][_0xd7d6d6(0x170)](_0x8b54d5,_0x39fcc0);if(_0x4336b2(_0x443ca8)||_0x4336b2(_0xcfa8b7)){this[_0xd7d6d6(0x4b8)]['error'](_0xd7d6d6(0x446),'transformStack\x20failed!',_0x443ca8,_0xcfa8b7);break;}_0x9c9066=_0x443ca8[_0xd7d6d6(0x1d7)],_0x8b54d5=_0xcfa8b7[_0xd7d6d6(0x1d7)],_0xa109c1[_0xd7d6d6(0x3ed)]({'unitID':_0x3bf81a,'undoMutations':_0x443ca8[_0xd7d6d6(0x1cd)],'redoMutations':_0xcfa8b7['m2Prime']});}return _0xa109c1[_0xd7d6d6(0x367)]();}};Ut=Qo([ye(0x0,_0x2bb140),ye(0x1,_0x5ad0bf),ye(0x2,_0x579375),ye(0x3,_0x245d4a),ye(0x4,_0x96d163)],Ut);class ea extends _0x832c1b{constructor(){const _0x1ea9fa=_0x335edf;super(),l(this,_0x1ea9fa(0x3f6)),this[_0x1ea9fa(0x3f6)]=_0x433ac3(window,_0x1ea9fa(0x1fc))[_0x1ea9fa(0x266)](_0x10cdea(this[_0x1ea9fa(0x1d9)]),_0x553f98(0x1),_0x4c1a22(void 0x0));}['setParam'](_0x3a2e94,_0x5f21a6,_0x3ef868=!0x1){const _0x2754e5=_0x335edf,_0x279dc0=new URL(window[_0x2754e5(0x38a)][_0x2754e5(0x317)]);_0x279dc0[_0x2754e5(0x2aa)][_0x2754e5(0x3e2)](_0x3a2e94,_0x5f21a6),_0x3ef868?window['history']['replaceState']('','',_0x279dc0['toString']()):window['history'][_0x2754e5(0x40a)]('','',_0x279dc0[_0x2754e5(0x361)]());}[_0x335edf(0x28a)](_0x510d81,_0x447e57=!0x1){const _0x3fab57=_0x335edf,_0x47ea4c=new URL(window['location'][_0x3fab57(0x317)]);_0x47ea4c['searchParams'][_0x3fab57(0x1cb)](_0x510d81),_0x447e57?window[_0x3fab57(0x227)][_0x3fab57(0x387)]('','',_0x47ea4c[_0x3fab57(0x361)]()):window[_0x3fab57(0x227)][_0x3fab57(0x40a)]('','',_0x47ea4c[_0x3fab57(0x361)]());}[_0x335edf(0x31a)](_0x5694ef){const _0x22756c=_0x335edf;var _0x3f1a13;return(_0x3f1a13=new URL(window[_0x22756c(0x38a)][_0x22756c(0x317)])['searchParams']['get'](_0x5694ef))!=null?_0x3f1a13:void 0x0;}}var Ws=Object[_0x335edf(0x226)],ta=Object[_0x335edf(0x2e4)],sa=(_0x1efdab,_0x1bf7a1,_0x2c5b7a)=>_0x1bf7a1 in _0x1efdab?Ws(_0x1efdab,_0x1bf7a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c5b7a}):_0x1efdab[_0x1bf7a1]=_0x2c5b7a,ia=(_0x16fa90,_0xb723a8,_0x1f64b0,_0xc8baa8)=>{const _0x2c0613=_0x335edf;for(var _0x5cf69b=_0xc8baa8>0x1?void 0x0:_0xc8baa8?ta(_0xb723a8,_0x1f64b0):_0xb723a8,_0xb5cfc0=_0x16fa90[_0x2c0613(0x2d5)]-0x1,_0x497b6f;_0xb5cfc0>=0x0;_0xb5cfc0--)(_0x497b6f=_0x16fa90[_0xb5cfc0])&&(_0x5cf69b=(_0xc8baa8?_0x497b6f(_0xb723a8,_0x1f64b0,_0x5cf69b):_0x497b6f(_0x5cf69b))||_0x5cf69b);return _0xc8baa8&&_0x5cf69b&&Ws(_0xb723a8,_0x1f64b0,_0x5cf69b),_0x5cf69b;},ke=(_0x36b62b,_0x5b3b48)=>(_0x3e8a23,_0x4b985d)=>_0x5b3b48(_0x3e8a23,_0x4b985d,_0x36b62b),na=(_0x113650,_0x3d924d,_0x464ee7)=>sa(_0x113650,_0x3d924d+'',_0x464ee7);const ra='UNIVER_COLLABORATION_CLIENT_PLUGIN';let Mt=class extends _0x341544{constructor(_0x54c94c=yn,_0x4cfdcd,_0x4037a7,_0x1cc73c,_0xd744ce){const _0x3d2160=_0x335edf;super(),this[_0x3d2160(0x1c8)]=_0x54c94c,this[_0x3d2160(0x4b8)]=_0x4cfdcd,this[_0x3d2160(0x331)]=_0x4037a7,this[_0x3d2160(0x32e)]=_0x1cc73c,this[_0x3d2160(0x2b5)]=_0xd744ce;const {..._0x2b785c}=this[_0x3d2160(0x1c8)];this['_configService']['setConfig'](L,_0x2b785c);}[_0x335edf(0x1b1)](){const _0x2a381d=_0x335edf;this['_registerDependencies'](),_0x592b07(this[_0x2a381d(0x32e)],[[pe],[qe],[et]]);}['onReady'](){const _0x512a20=_0x335edf;_0x592b07(this[_0x512a20(0x32e)],[[ze]]);}[_0x335edf(0x42a)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x397db9=_0x335edf;var _0x466635,_0xeeb6ba,_0x48bcf9,_0x4a8b0c;this[_0x397db9(0x32e)][_0x397db9(0x353)](_0x4abbfc)&&this[_0x397db9(0x4b8)]['error'](_0x397db9(0x418),_0x397db9(0x33f));let _0x312619=[[_0x4abbfc,{'useClass':Ut}],[ce],[Ft],[_0x480539],[Fs,{'useClass':ea}],[ae],[D],[_0x3edd07],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0xeeb6ba=(_0x466635=this[_0x397db9(0x1c8)])==null?void 0x0:_0x466635[_0x397db9(0x1b7)])!=null?_0xeeb6ba:Et}],[_0x184f10,{'useClass':_0x20e529}],[_0x40899c,{'useClass':Nt}],[_0x2ad9b2,{'useClass':Pt}],[_0x345379,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x48bcf9=this['_config'])!=null&&_0x48bcf9[_0x397db9(0x3c9)]&&_0x312619[_0x397db9(0x3ed)]([tt,{'useClass':rr}]),_0x312619=_0x1c3b91(_0x312619,(_0x4a8b0c=this[_0x397db9(0x1c8)])==null?void 0x0:_0x4a8b0c[_0x397db9(0x2a5)]),_0x312619['forEach'](_0x53a61f=>this['_injector'][_0x397db9(0x4ce)](_0x53a61f)),this['_initModules']();}[_0x335edf(0x49c)](){const _0x2f1c6e=_0x335edf;this[_0x2f1c6e(0x33b)](this[_0x2f1c6e(0x331)][_0x2f1c6e(0x2c8)](_0xb4bf4[_0x2f1c6e(0x3bf)],[Dt])),this['disposeWithMe'](this[_0x2f1c6e(0x331)][_0x2f1c6e(0x2c8)](_0xb4bf4[_0x2f1c6e(0x391)],[wt]));}['_initModules'](){const _0x7dd3e8=_0x335edf;var _0x18fdc1,_0x425587;this[_0x7dd3e8(0x32e)][_0x7dd3e8(0x242)](_0x480539)[_0x7dd3e8(0x4ad)]({'priority':0x14,'interceptor':_0x21c696({'maxParallel':0x6})}),this[_0x7dd3e8(0x32e)][_0x7dd3e8(0x242)](Qe),(_0x18fdc1=this[_0x7dd3e8(0x1c8)])!=null&&_0x18fdc1[_0x7dd3e8(0x2fd)]||this['_injector'][_0x7dd3e8(0x242)](D)[_0x7dd3e8(0x349)](),(_0x425587=this[_0x7dd3e8(0x1c8)])!=null&&_0x425587['enableAuthServer']&&this[_0x7dd3e8(0x32e)][_0x7dd3e8(0x242)](Ze),this[_0x7dd3e8(0x32e)][_0x7dd3e8(0x242)](Ae),this[_0x7dd3e8(0x32e)][_0x7dd3e8(0x353)](Ue)&&this[_0x7dd3e8(0x32e)][_0x7dd3e8(0x242)](Ue);}};na(Mt,'pluginName',ra),Mt=ia([_0x55ef1f(_0x48943f),ke(0x1,_0x96d163),ke(0x2,_0x3469bd),ke(0x3,_0x412e01(_0x5df9be)),ke(0x4,_0x19915a)],Mt);export{yo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,lo as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Fs as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ea as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
|
1
|
+
const _0x4c1f23=_0x4c7d;(function(_0x584523,_0x59eca4){const _0x3c939b=_0x4c7d,_0x418f4c=_0x584523();while(!![]){try{const _0x117914=parseInt(_0x3c939b(0x122))/0x1+parseInt(_0x3c939b(0x39c))/0x2+-parseInt(_0x3c939b(0x3d2))/0x3*(-parseInt(_0x3c939b(0x2d8))/0x4)+parseInt(_0x3c939b(0x2a4))/0x5*(parseInt(_0x3c939b(0x3a1))/0x6)+-parseInt(_0x3c939b(0x349))/0x7*(-parseInt(_0x3c939b(0x231))/0x8)+-parseInt(_0x3c939b(0x39b))/0x9*(-parseInt(_0x3c939b(0x18b))/0xa)+-parseInt(_0x3c939b(0x267))/0xb*(parseInt(_0x3c939b(0x2e8))/0xc);if(_0x117914===_0x59eca4)break;else _0x418f4c['push'](_0x418f4c['shift']());}catch(_0x50b02c){_0x418f4c['push'](_0x418f4c['shift']());}}}(_0x583f,0xc16f8));var qs=Object[_0x4c1f23(0x2e9)],zs=(_0x958bb9,_0x488792,_0x396ceb)=>_0x488792 in _0x958bb9?qs(_0x958bb9,_0x488792,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x396ceb}):_0x958bb9[_0x488792]=_0x396ceb,l=(_0x2c576a,_0x5caf02,_0xe76fb6)=>zs(_0x2c576a,typeof _0x5caf02!=_0x4c1f23(0x12f)?_0x5caf02+'':_0x5caf02,_0xe76fb6);import{createIdentifier as _0x2d62b5,Inject as _0x321449,Disposable as _0x22db72,DisposableCollection as _0x242419,toDisposable as _0x5738c2,IConfigService as _0x4d21d1,ILogService as _0x50688a,UserManagerService as _0xc3ed3,UniverInstanceType as _0x4c91c9,IUniverInstanceService as _0x375068,LocaleService as _0x2e153b,Optional as _0x9bfc3c,RxDisposable as _0x2dacfb,Injector as _0x313fa0,Tools as _0x403f58,ILocalStorageService as _0x23441d,ICommandService as _0x265863,JSONX as _0x107e10,CommandType as _0xcd477b,IPermissionService as _0x52f39f,IUndoRedoService as _0x2fbed3,sequenceExecute as _0x2aed7d,debounce as _0x1b3960,Rectangle as _0x31476b,COLORS as _0x3ca793,ColorKit as _0x3fd1db,ThemeService as _0x6f1691,fromEventSubject as _0x46c56e,useDependency as _0x18fbb6,connectInjector as _0x538d64,Workbook as _0xa32c6e,isInternalEditorID as _0x46dc72,LocalUndoRedoService as _0x2d287d,IContextService as _0x163f08,DependentOn as _0x4869be,Plugin as _0x43f0d0,touchDependencies as _0x50ed8d,IAuthzIoService as _0x2eeda2,mergeOverrideWithDependencies as _0x1588d5}from'@univerjs/core';import{Subject as _0xacaad6,merge as _0x5de0ce,takeUntil as _0x289d57,BehaviorSubject as _0x2ec58d,distinctUntilChanged as _0x1f43e4,fromEvent as _0x1e2c02,map as _0x16d2df,shareReplay as _0xb96cea,take as _0x448807,of as _0x570d55,debounceTime as _0x3504d2,filter as _0x4c7e5a,switchMap as _0x4e9858,combineLatest as _0x4fd693,concatMap as _0x42e091,mapTo as _0x5810d1}from'rxjs';import{map as _0x3d528e,take as _0x41fec6,filter as _0x1f1135,delay as _0x160a7a,throttleTime as _0x4ac9c9,takeUntil as _0x3ae8cf,switchMap as _0x59e45c}from'rxjs/operators';import{MessageType as _0x57eb36,Tooltip as _0x465a5c}from'@univerjs/design';import{IBeforeCloseService as _0x3cc7ef,IMessageService as _0x5d3b7c,INotificationService as _0x7f7802,useObservable as _0x481936,BuiltInUIPart as _0x385326,IUIPartsService as _0x3fbc73}from'@univerjs/ui';import{HTTPService as _0x1fbfa2,WebSocketService as _0x57aa72,MergeInterceptorFactory as _0x34ac01,HTTPRequest as _0x4a19a1,IHTTPImplementation as _0x147a26,XHRHTTPImplementation as _0x5d6c50,ThresholdInterceptorFactory as _0x537a47}from'@univerjs/network';import{CollaborationEvent as _0x273d8c,parseChangesetToProtocol as _0x2b2dd8,ISnapshotServerService as _0x4c90dd,isTransformMutationFailure as _0x3737c9,isTransformMutationsWithChangesetSuccess as _0x8db330,ITransformService as _0x56767e,RevisionService as _0x5d1c03,mapDocumentTypeToUniverType as _0x53eda4,isTransformChangesetsSuccess as _0x428767,CompressMutationService as _0x2615ec,parseProtocolChangeset as _0x569e1c,SnapshotService as _0x38d13f,textEncoder as _0x2c535e,b64DecodeUnicode as _0x58e839,isTransformMutationsWithChangesetFailure as _0x54fa31,UniverCollaborationPlugin as _0x229d30}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x2263bf}from'@univerjs/telemetry';import{DocSelectionManagerService as _0x322779,RichTextEditingMutation as _0x1b2745,SetTextSelectionsOperation as _0x254038,DocSkeletonManagerService as _0x5e9e87}from'@univerjs/docs';import{DocIMEInputManagerService as _0x74964,DocStateChangeManagerService as _0x3f8e0c,NodePositionConvertToCursor as _0x2b89f0,isValidRectRange as _0x53f2b8,NodePositionConvertToRectRange as _0x459c36,TEXT_RANGE_LAYER_INDEX as _0x1c10b5,SetDocZoomRatioOperation as _0xd8bdfb}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x152281,SetSelectionsOperation as _0x137748,InsertSheetMutation as _0x3f0b63,EmptyMutation as _0x489e71,WorkbookEditablePermission as _0x42c12f,RefRangeService as _0x70f3a6,EffectRefRangId as _0x5bd706,handleIRemoveRow as _0x37d328,handleIRemoveCol as _0x5ebff0,handleMoveRange as _0x104260,handleInsertRow as _0x4c71a9,handleInsertRangeMoveRight as _0x2d766e,handleInsertRangeMoveDown as _0x40cb3b,handleInsertCol as _0xb9b59c,handleDeleteRangeMoveUp as _0x362d52,handleDeleteRangeMoveLeft as _0x28d514,runRefRangeMutations as _0x12db35,SetWorksheetActivateCommand as _0x2ca650}from'@univerjs/sheets';import{IRenderManagerService as _0x3f9a6b,Shape as _0xca1f86,Rect as _0x3a075a,getColor as _0x17a368,RegularPolygon as _0x28ffa0,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x58f61e,Vector2 as _0x3b739f}from'@univerjs/engine-render';import{ImageSourceType as _0x1946dd,ImageUploadStatusType as _0x1f89ce,IImageIoService as _0x74670d}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x2363ba,serializeRangeWithSheet as _0x48cd80}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x3d1738,VIEWPORT_KEY as _0x14e392,getCoordByCell as _0x14b841,getSheetObject as _0x24a93b,SheetPermissionInitController as _0x293481}from'@univerjs/sheets-ui';import _0x1e4ea9,{forwardRef as _0x2e90f2,useRef as _0x5ed056,createElement as _0xff9a40,useCallback as _0x1d425c}from'react';function _0x583f(){const _0x5687a0=['_socketService','_lockTransition','_waitCount','updateOfflineData','removeMember','colorChannel1','reconnect','getSkeleton','cursorInfo$','_disableEditing','function','getRangePointData','status$','addObject','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','indexOf','addEventListener','toggleOffline','LIVESHARE_OPERATION','_clearScheduledTask','collaboration_new_changeset','CHANGESET_REJ','_substituteUndoStack','infoRsp','/allowed','_getSaveTimeout','_registerRenderDependencies','min','_unlockTransition','[PendingState]:\x20received\x20rejection.','YUUMI_RATE_OVER_LIMIT','_labelPosition','_docSkeleton','setCurrentUser','_revisionService','code','permission.content','history','create','207hTwWFi','228938vCtfAV','socketService','with','getMember','transformChangesets','642UCXBTx','disableLocalCache','_collabCursorController','clipPath','exhaustSavingTask','_eventUnsubscribe','PENDING','_notificationService','[CollaborationSessionService]','_executeRemoteChangeset','_setupBeforeClosingHandler','jiqing500','_clearOtherTimers','_listenToOfflineEvent','call','FileId','USERS_ENTER','location','_handleJoinEvent','...','triggerDblclick','_getUndoStack','_docSyncEditingCollabCursorService','requestParams','isPermissionRej','json','UNKNOWN_CODE','unload','_substituteRedoStack','resolve','_textBubble','InsertRangeMoveRightCommandId','_incrementRevisionNumber','_syncEditingCollabCursorService','_state$','_createSocket','_getAPIPrefixPath','_checkMissing','createElement','_clearRedo','_shouldReportTelemetry','tag','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','setTimeout','reduce','_undoRedoService','retryConnectingInterval','?url=','enableLocalCache','57RnxwCM','updateCollaborator','OFFLINE','_syncEditingCollabCursor','revision','mutations','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_snapshotService','onMouseMove','LIVESHARE_NEW_HOST','_sendingTimer','liveShareOperation','initWorkbookPermissionChange','NOT_COLLAB','resourceIDs','/unit/','none','_name','Error\x20on\x20receiving\x20event','UNDEFINED','values','LICENSE_MAX_UNITS_EXCEEDED','/universer-api/snapshot','_retryConnectingTimer','FETCH_MISSING','_snapshotServerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','localeService','appendMutation','transformMutation','blue400','_initCommandExecutedListener','editingUnit','_getSendChangesetTimeout','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','#fff','getTypeOfUnitAdded$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','close','_submitChangeset','[OfflineState]:\x20received\x20rejection.','getSheetBySheetId','length','_getUploadFileURL','black','OnLineSingle','getViewport','collab-text-range-','_initRequestHeader','_updateStatus','rgba(255,\x20255,\x20255,\x200.01)','UnitSnapshot','/block/','responseType','getCurrentSelections','c1Prime','JOIN','_members','sheets','closeSession','SUBMIT_CHANGESET','apply','_HTTPService','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_createInitialStateImpl','getWorkbookSelections','then','_collaborationTimeoutTimer','svg','_handleEvent','gold400','unitId\x20is\x20not\x20found','_id','column','_joinRoom','event$','restore','_drawTextRange','LEAVE','_getMergeRange','OffLineSingle','MoveRangeCommandId','getParam','registerHTTPInterceptor','objectID','_compressMutationService','_shapes','_http','image/bmp','_cursor','clear','onStarting','getSheetBlock','_updateCollabCursors','_entities','status','LIVESHARE_FETCH_OPERATIONS','_getRedoStack','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','idSuffix','searchParams','[PendingState]:\x20unhandled\x20univer\x20type:\x20','INTERNAL_ERROR','getOwnPropertySymbols','updatePermissionPoint','/-/object/-/batch_allowed','/new_changes','_tryReconnect','_commentService','method','memberID','collabStatus.syncing','_telemetryInfo','transformMutationsWithChangeset','_hover','_heartbeatTimer','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_scheduleHeartbeat','UniverIcon','_updateURLWithCurrentState','[FetchMissState]','_scheduleTimestamp','_status$','_anchorDot','image/jpeg','_collaborationPaused','getAncestorScale','Error','_removeRoom','_scene','delete','InsertRowCommandId','_sheetTransformSelectionsService','defIds','font','_onCombEvent','getRelativeToViewportCoord','_localCacheService','_waitForHeartbeatResponse','_removeClearOtherTimer','\x20to\x20','now','LICENSE_DISTRO_REJECTED','_send','saveChangeset','MUTATION','state$','UNIVER_COLLABORATION_CLIENT_PLUGIN','encode','origin','_registerDependencies','unitId','_removeCollabCursors','saveImage','_toggleOffline','duration','_getSnapshotAPIPrefix','allowed','bottom','error$','shouldCloseConn','find','generateRandomId','subunit','UPDATE_CURSOR','OTHER_CLIENTS_EDITING','onRemoteRej','[PendingState]:\x20received\x20acknowledgement.','_fetchMissChangesets','_createHandler','_ws','editing\x20status\x20changed\x20to','_docTransformIMECacheService','onMissedChangesetFetched','asObservable','registerComponent','awaitingChangeset','fetchMiss','forEach','m2Prime','setConfig','reverse','off-line-single_clip0_910_343','[OfflineState]:\x20received\x20acknowledgement.','_onCursorUpdate','loadOfflineData','doc.mutation.rich-text-editing','prototype','sheetID','skeleton','onRemoteChangeset','UNIVER_SHEET','BASE64','range','sessionStatus','getConfig','urlChange$','SNAPSHOT_HAS_BEEN_REMOVED','enableOfflineEditing','roomMembers$','includes','message$','/-/object/list','_localeService','transformIMECache','getUniverSheetInstance','collaboration-session-retry','UNIVER_DOC','_drawAnchor','_handleHeartbeatEvent','onTransformChange$','url','494373KfsTJA','activeSheet$','name','textRanges','from','JOINING','_logService','Warning','CONFLICT','/universer-api/comb','getCellPositionByOffset','_getLoginPath','_transformUndoredo','symbol','some','_unitOnClients','_configService','getOwnPropertyDescriptor','getUnitOnRev','getActiveSheet','INGEST','_instanceService','ranges','snapshotServerUrl','_clearUndo','_socket','_replayCachedMutations','_onConnectionFailed','concat','/role','withCredentials','APPLY_PERMISSION_DENIED','compose','collaboration.single-unit.warning','[CollaborationSession]','_rescheduleHeartbeat','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_urlService','save','loginUrlKey','subscribeEvent','_pendingMutations','_updateState','_localStorageService','getTime','resize','size','_sendHeartbeat','executeCommand','round','_onRemoteACK','fetchMissingChangesets','MSG_FOR_ERROR','every','_startDocCollabCursor','USERS_LEAVE','originalMeta','_permissionService','unshift','unsubscribe','reject','show','_event$','_injector','csAckEvent','_transformStack','href','APPLY_REVISION_CONFILICT','_disabled','onCommandExecuted','_docSkeletonManagerService','_type','_getSignURL','getUndoRedoMutationParamsCache','getCurrentUser','path','_assignedColors','selections','createInstance','setActiveRange','deepClone','stopTime','COLLAB_SUBMIT_CHANGESET_URL','_getSheetObject','session','{fileID}','_refRangeService','error','_toggleOnline','clearInterval','map','verdancy600','commentUpdate$','/collaborator','src','NOT_FOUND','_onOffline','members','_initCloseConn','eventID','getUnitStatus$','close$','getCurrentRevOfUnit','roles','465830xlEJZm','_unitStatus','DeleteRangeMoveUpCommandId','replace','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','HELLO','COMPRESS_MUTATION_SEND','incrementRevOfUnit','SEND_CHANGESET_TIMEOUT','_state','_replaceFileID','HEARTBEAT_TIMEOUT','/object/','setParam','_loadSheet','m1Prime','_onUserJoin','_onJoinRoomEvent','_transformUndoRedoStack','_httpService','_clearCollaborationTimeoutTimer','_startCollaboration','override','_hideTimer','COMPRESS_MUTATION_APPLY','_range','createSocket','pipe','getActiveRange','getSheetId','className','copyFileMeta','_onRemoteChangeset','_transformPreviousActiveRange','_userManagerService','setInterval','red300','headers','getRenderById','_getDownloadEndpointURL','_onRecvEvent','_drawRectRange','YUUMI_SUBSCRIPTION_NOT_FOUND','_stopTelemetryCollaborationNewChangeset','collabStatus.fetchMiss','_colorIndex','init','_config','onStateChange','_redoStacks','substring','_beforeCloseService','getInterceptPoints','onTransformSelections','_unitID','_saveCache','UNIVER_SLIDE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','FETCH_MISS','TOO_MANY_REQUESTS','registerRenderModule','_queuedRemoteChangesets','AWAITING','UNRECOGNIZED','[CollaborationState]:\x20apply\x20error!','session.collaboration-timeout','fromCollab','_cursorInfo$','lineTo','visibilitychange','body','type','image/jpg','_onRemoteRejected','getOffsetConfig','SHOULD_CLOSE_CONN','UNIVER_PROJECT','/object','_clearLocalCache','leaveEvent','fetch_missing','SNAPSHOT_INVALID_SNAPSHOT','univerjs-icon\x20univerjs-icon-','liveShareNewHost','HEARTBEAT','_collabSessionService','pushState','engine','dispose','hide','userID','onSyncEditingCollabCursor','newValue','max','createCollaborator','joinRsp','url(#on-line-single_clip0_910_349)','_sendHeartbeatTimer','_onFetchMissResult','_commandService','_transitionLocked','getCurrent','drawWith','unitID','_onRefRangeChange','_getCtorByUniverType','replaceState','conflict.title','syncEditingCollabCursor','_change$','transformStack\x20failed!','setShapeProps','baseRev','_initMergeInterceptor','_socket$','_remoteChangesetQueue','onTransformIME','loadSheet','_ensureSubject','_hovered','getFocusedUnit','findNodePositionByCharIndex','YUUMI_URL_COL_OUT_OF_RANGE','file','_render','offline','transformRemoteChangeset','debug','currentColor','_clearHeartbeatTimer','has','_scheduleSaving','_onUserLeave','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','UNAUTHENTICATED','subUnitId','commentUpdateEvent','RemoveColCommandId','/universer-api/snapshot/','DEFAULT_FILE_NAME','send','changesets','endRow','_imageSourceCache','div','M0\x200H16V16H0z','session.room-full','_handleHover','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_sessionStatus$','_onConflict','_initResize','catch','authzUrl','toString','resend','_telemetryService','collab-text-anchor-','collabStatus.conflict','assignAColorForMemberID','fillStyle','_sessions','EXCHANGE_SIGN_URL_SERVER_URL_KEY','confirm','SNAPSHOT_SERVER_URL_KEY','8dtDurG','_cursors','_collaborationController','onPointerEnter$','&source=','split','IDLE','visibilityState','collaboration-client.offline-data-not-saved','put','_cachedData','pauseCollaboration','next','measureText','[SyncedState]:\x20received\x20rejection.','_initUnitPermissionChange','uploadFileServerUrl','updatePermissionObjEvent','sheetId','hasOwnProperty','workbook','addImageSourceCache','closePath','disposeWithMe','x-univer-host','0\x200\x2017\x2016','_exhaustRemoteChangesetQueue','updateCursorEvent','_showConflictNotification','univer-online-status-icon','_selfUnitIDs','APPLY_REJECT','disposeUnit','_updateLocalCursor','conflict.content','getCollabEntity','readAsDataURL','string','_scheduleClearOtherTimer','_roomMembers$','collabSubmitChangesetUrl','onPointerLeave$','_online','getValue','_refreshCollabCursors','joinEvent','defs','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onlineStatusTitle','_cursorShapes','fillText','_updateSubUnitFromURLParams','dispose$','_onMessage','7876sOPuki','entries','rev','UUID','_applyRemoteChangeset','change$','moveTo','hovered','#FFF','startsWith','_colorAssignService','endColumn','onRendered','_tryEnsureSocket','CONNECTOR_DATA_TOO_LARGE','/universer-api/authz','_anchor','xlink:href','attrs','_lastPointer','getUnitType','push','addObjects','_socketReady','submit\x20changeset\x20error!','subscribe','parse','_listenToOnlineEvent','currentTheme$','_uiPartsService','_clearTimeoutTimer','_startTelemetryCollaborationNewChangeset','unit','registerRefRange','collaborators','Undefined','failed\x20to\x20apply\x20missed\x20changesets!','InsertRangeMoveDownCommandId','SNAPSHOT_URL_KEY','getImageSourceCache','_messageService','LICENSE_IMPORT_SIZE_EXCEEDED','fill','_throwTelemetryCollaborationNewChangeset','loadDoc','sessionStatus$','_acknowledgedAwaitingChangeset','HEADER_MENU','replaceTextRanges','_schedule','collab-rect-range-','_retryCount','connection\x20error','url(#off-line-single_clip0_910_343)','slice','collaboration.closeRoom','_entityInit$','_createInitialState','use','isActive','/universer-api/stream/file/upload','12165ZzPxmy','capture','APPLY_NON_SEQUENTIAL_REVISION','fetching\x20missing\x20changesets\x20from\x20','_collaborationSessionService','off-line-single','_onConnectionOpen','DeleteRangeMoveLeftCommandId','_setupSubUnitSync','HttpExport','auth.needGotoLoginAlert','currentSkeleton$','COLLAB_WEB_SOCKET_URL','list','target','awaiting_with_pending','_initModules','_backgroundColor','online','getCollabEntity$','cursorInfo','_sheetSkeletonManagerService','row','labelPosition','transformUndoRedo','getDocRanges','ALREADY_EXISTS','PERMISSION_REJ','_session','FromArray','[SyncedState]:\x20received\x20acknowledgement.','univer-online-status','complete','result','RETRY_CONNECTING_MAX_COUNT','whenReady','_themeService','UPDATE_PERMISSION_OBJ','AUTHZ_URL_KEY','RemoveRowCommandId','FAIL','_isPermissionRej','_transformService','_getAPIPrefix','synced','saveSnapshot','_candidateSocket','_onCursorDelete','onSendChangeset','1em','updateMember','_initStatusComponent','9148UscBzD','toRgbString','_color','collab-client.tooltip.reconnect','_roomMembers','_onLocalMutation','displayName','_transformRemoteChangesetByIMECache','_getAnchorBounding','ONLINE','focused$','LIVESHARE_TERMINATE','NEW_CHANGESETS','onTransformRemoteChangesetByIMECache','extend','\x20in\x20_schedule.','27876PVTNMg','defineProperty','newCsEvent','&to=','requireSession','_memberService','getTypeOfUnitDisposed$','objectType','getResourcesRequest','ERROR_IMAGE','getUnhiddenWorksheets','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onPointerMove$','collabCursorState$','getUnit','all','setItem','_decreaseWaiting','startColumn','add','action','conflict','listCollaborators','_docTransformSelectionsService','_document','setUndoRedoMutationParamsCache','top','roomMembers','UnitEmbedded','height','[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.','_socketMessageSubscription','_context','_getCurrentRevision','registerOnClose','onlyLocal','text','color','ws://127.0.0.1:8000/universer-api/comb/connect','unknown','_univerInstanceService','socket\x20open.','saveOfflineData','_timeoutTimer','clearTimeout','cmd','SYNCED','InsertColCommandId','_initStatusListener','[CollaborationUndoRedoService]','/resources','HttpImport','/universer-api/oidc/authpage','assign','onMissingChangesets','toggleOnline','getCollabCursors$','width','PERMISSION_DENIED','evenodd','ACTIVE_UNIT_EVENT_CHANNEL','arc','RECV','YUUMI_UNABLE_LOAD_URL','random','set','_updateLocalCache','collabStatus.offline','isEditing','patch','_awaitingChangeset','_transformIMECache','startRow','removeParam','LIVESHARE_REQUEST_HOST','_renderManagerService','_loadDoc','_singleActiveUnitService','[DataLoaderController]','collabStatus.synced','setAlpha','data','Unknown\x20user','/fetchmissing?from=','_draw','actions','SUCCUSS','collabStatus.notCollab','getRoom','post','[UniverCollaborationClientPlugin]','_commentUpdate$','append','open$','_transformSelections','filter','get','3300815EeivvE','_init','_handler','transformSelections','\x0aCurrent:\x20','getUnitId','unit-cache-','onReady','_saveTaskMap','getItem','POST','state','LICENSE_EXPORT_SIZE_EXCEEDED','_collabCursorState$','onRemoteAck','_startSheetCollabCursor','uni.network.url-service','onCommentUpdate','isArray','_initEventListeners','interceptor','fetchThroughInterceptors','_handleLeaveEvent','stringify','UNIVER_UNKNOWN','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','selection','params','onlineStatusIcon','CHANGESET_REVISION_CONFILICT','key','CHANGESET_ACK','awaiting','[CollaborationSessionService]:\x20socket\x20error','not_collab','collaboration-client.config','purple300','update','roomInfos','getMemberID','Univer','image/gif','routeKey'];_0x583f=function(){return _0x5687a0;};return _0x583f();}import _0x42940b from'clsx';import{IRemoteInstanceService as _0x51139b}from'@univerjs/rpc';import{getAttachHeader as _0x575ac8}from'@univerjs-pro/license';const dn=_0x4c1f23(0x230),fn=_0x4c1f23(0x3e8),mn=_0x4c1f23(0x28d),Oa=_0x4c1f23(0x194),gn=0x7d0,Sn=_0x4c1f23(0x2b0),pn=_0x4c1f23(0x30e),vn='HEARTBEAT_INTERVAL',In=0x7530,Ns=_0x4c1f23(0x197),Us=0x4e20,En=0x4e20,Cn=_0x4c1f23(0x2c6),bn=0x3,Tn='LOCAL_CACHE_INTERVAL',Rn=0x3e8,On=_0x4c1f23(0x175),Dn=_0x4c1f23(0x12b),wn='LOGIN_URL_KEY',Pn=_0x4c1f23(0x31c);var Ms=(_0x3c8afd=>(_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3e5)]=0x0]=_0x4c1f23(0x3e5),_0x3c8afd[_0x3c8afd['OK']=0x1]='OK',_0x3c8afd[_0x3c8afd[_0x4c1f23(0xb4)]=0x2]='INTERNAL_ERROR',_0x3c8afd[_0x3c8afd['PERMISSION_DENIED']=0x3]=_0x4c1f23(0x322),_0x3c8afd[_0x3c8afd['NOT_FOUND']=0x4]=_0x4c1f23(0x182),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x212)]=0x5]=_0x4c1f23(0x212),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2be)]=0x6]=_0x4c1f23(0x2be),_0x3c8afd[_0x3c8afd['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1c7)]=0x8]='TOO_MANY_REQUESTS',_0x3c8afd[_0x3c8afd['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x366)]=0x1389]=_0x4c1f23(0x366),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1dd)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x113)]=0x1772]=_0x4c1f23(0x113),_0x3c8afd[_0x3c8afd['APPLY_REJECT']=0x1b59]=_0x4c1f23(0x250),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x2a6)]=0x1b5a]=_0x4c1f23(0x2a6),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x166)]=0x1b5b]=_0x4c1f23(0x166),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x141)]=0x1b5c]=_0x4c1f23(0x141),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x275)]=0x1f41]=_0x4c1f23(0x275),_0x3c8afd[_0x3c8afd['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4c1f23(0x3e7),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x3ed)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x290)]=0x232b]=_0x4c1f23(0x290),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x355)]=0x232c]=_0x4c1f23(0x355),_0x3c8afd[_0x3c8afd[_0x4c1f23(0xdc)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x327)]=0x2711]=_0x4c1f23(0x327),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x206)]=0x2712]=_0x4c1f23(0x206),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x392)]=0x2713]=_0x4c1f23(0x392),_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1b6)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3c8afd[_0x3c8afd[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x3c8afd))(Ms||{}),H=(_0x193fa5=>(_0x193fa5[_0x193fa5[_0x4c1f23(0x361)]=0x0]=_0x4c1f23(0x361),_0x193fa5[_0x193fa5[_0x4c1f23(0x11d)]=0x1]=_0x4c1f23(0x11d),_0x193fa5[_0x193fa5[_0x4c1f23(0x10d)]=0x2]=_0x4c1f23(0x10d),_0x193fa5[_0x193fa5[_0x4c1f23(0x1c4)]=0x3]='UNIVER_SLIDE',_0x193fa5[_0x193fa5[_0x4c1f23(0x1d8)]=0x4]='UNIVER_PROJECT',_0x193fa5[_0x193fa5[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x193fa5))(H||{}),I=(_0x436903=>(_0x436903[_0x436903['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x436903[_0x436903['HELLO']=0x1]=_0x4c1f23(0x191),_0x436903[_0x436903[_0x4c1f23(0x86)]=0x2]='JOIN',_0x436903[_0x436903['LEAVE']=0x3]=_0x4c1f23(0x9c),_0x436903[_0x436903[_0x4c1f23(0x136)]=0x4]=_0x4c1f23(0x136),_0x436903[_0x436903['HEARTBEAT']=0x5]=_0x4c1f23(0x1e0),_0x436903[_0x436903['RECV']=0x6]='RECV',_0x436903[_0x436903['UNRECOGNIZED']=-0x1]=_0x4c1f23(0x1cb),_0x436903))(I||{}),kt=(_0x13dbbd=>(_0x13dbbd[_0x13dbbd[_0x4c1f23(0x3bb)]=0x0]=_0x4c1f23(0x3bb),_0x13dbbd[_0x13dbbd['OK']=0x1]='OK',_0x13dbbd[_0x13dbbd[_0x4c1f23(0x2cc)]=0x2]=_0x4c1f23(0x2cc),_0x13dbbd[_0x13dbbd['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x13dbbd))(kt||{}),As=(_0x14d295=>(_0x14d295[_0x14d295[_0x4c1f23(0x28a)]=0x0]=_0x4c1f23(0x28a),_0x14d295[_0x14d295[_0x4c1f23(0x31b)]=0x1]='HttpImport',_0x14d295[_0x14d295[_0x4c1f23(0x2ad)]=0x2]=_0x4c1f23(0x2ad),_0x14d295[_0x14d295['UnitEmbedded']=0x3]=_0x4c1f23(0x304),_0x14d295[_0x14d295[_0x4c1f23(0x81)]=0x4]=_0x4c1f23(0x81),_0x14d295[_0x14d295[_0x4c1f23(0x1cb)]=-0x1]=_0x4c1f23(0x1cb),_0x14d295))(As||{});const L=_0x4c1f23(0x36c),yn={};function Nn(_0xa62d04){const _0xede628=_0x4c1f23;var _0x1fa07b,_0x255cec,_0x1627b9,_0x20807b;const _0x3b16c9=_0xa62d04[_0xede628(0x339)],_0x4112c5=JSON['parse'](_0x3b16c9);switch(_0x4112c5[_0xede628(0x315)]){case I[_0xede628(0x1e0)]:case I[_0xede628(0x191)]:{const _0x27634f=_0x4112c5[_0xede628(0x38b)];return{..._0x4112c5,'data':_0x27634f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I[_0xede628(0x86)]:{const _0x5d1b9f=_0x4112c5[_0xede628(0x1eb)];return{..._0x4112c5,'data':_0x5d1b9f,'cmd':_0x4112c5[_0xede628(0x315)]};}case I['RECV']:{const _0x21ce19=_0x4112c5['collaMsg'];switch(_0x21ce19[_0xede628(0x186)]){case _0x273d8c[_0xede628(0x2bf)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1fa07b=_0x21ce19['permissionRejEvent'])==null?void 0x0:_0x1fa07b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x368)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x255cec=_0x21ce19[_0xede628(0x163)])==null?void 0x0:_0x255cec['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2e4)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x1627b9=_0x21ce19[_0xede628(0x2ea)])==null?void 0x0:_0x1627b9['cs']},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x389)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':(_0x20807b=_0x21ce19['csRejEvent'])==null?void 0x0:_0x20807b['cs']},'cmd':_0x4112c5['cmd']};case _0x273d8c['UPDATE_CURSOR']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x24c)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['USERS_ENTER']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x25e)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x15a)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1db)]},'cmd':_0x4112c5['cmd']};case _0x273d8c[_0xede628(0x3db)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5['cmd']};case _0x273d8c['LIVESHARE_FETCH_OPERATIONS']:case _0x273d8c[_0xede628(0x386)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x3dd)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['LIVESHARE_TERMINATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x1df)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x157)]:return{..._0x4112c5,'data':_0x21ce19,'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c['COMMENT_UPDATE']:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x214)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x2c9)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0x242)]},'cmd':_0x4112c5[_0xede628(0x315)]};case _0x273d8c[_0xede628(0x1d7)]:return{..._0x4112c5,'data':{..._0x21ce19,'data':_0x21ce19[_0xede628(0xee)]},'cmd':_0x4112c5['cmd']};default:return _0x4112c5;}}default:return _0x4112c5;}}function Un(_0x582c4a){const _0x2c03ad=_0x4c1f23;switch(_0x582c4a[_0x2c03ad(0x315)]){case I['HEARTBEAT']:case I['HELLO']:return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)]});case I['INGEST']:{let _0x5b4dd4;switch(_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]){case _0x273d8c[_0x2c03ad(0xf2)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0xf2)],'updateCursorEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c['USERS_LEAVE']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x15a)],'leaveEvent':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x3b1)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3b1)],'joinEvent':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c[_0x2c03ad(0x3db)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x3db)],'liveShareNewHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x386)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x386)],'liveShareOperation':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0x2e3)]:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x2e3)],'liveShareTerminate':_0x582c4a[_0x2c03ad(0x339)]['data']};break;}case _0x273d8c['LIVESHARE_REQUEST_HOST']:{_0x5b4dd4={'eventID':_0x273d8c[_0x2c03ad(0x332)],'liveShareRequestHost':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x339)]};break;}case _0x273d8c[_0x2c03ad(0xae)]:{_0x5b4dd4={'eventID':_0x273d8c['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x5b4dd4={'eventID':_0x582c4a[_0x2c03ad(0x339)][_0x2c03ad(0x186)]};}return JSON[_0x2c03ad(0x360)]({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a['routeKey'],'collaMsg':_0x5b4dd4});}case I['JOIN']:return JSON['stringify']({'cmd':_0x582c4a['cmd'],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'joinReq':_0x582c4a[_0x2c03ad(0x339)]});case I['LEAVE']:return JSON['stringify']({'cmd':_0x582c4a[_0x2c03ad(0x315)],'routeKey':_0x582c4a[_0x2c03ad(0x373)],'leaveReq':_0x582c4a['data']});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Mn=Object['defineProperty'],An=Object[_0x4c1f23(0x133)],Ln=(_0x50e760,_0x4acce8,_0x818c9e,_0x23b747)=>{const _0x326986=_0x4c1f23;for(var _0x3eb5f8=_0x23b747>0x1?void 0x0:_0x23b747?An(_0x4acce8,_0x818c9e):_0x4acce8,_0x58eec7=_0x50e760[_0x326986(0x78)]-0x1,_0x52772a;_0x58eec7>=0x0;_0x58eec7--)(_0x52772a=_0x50e760[_0x58eec7])&&(_0x3eb5f8=(_0x23b747?_0x52772a(_0x4acce8,_0x818c9e,_0x3eb5f8):_0x52772a(_0x3eb5f8))||_0x3eb5f8);return _0x23b747&&_0x3eb5f8&&Mn(_0x4acce8,_0x818c9e,_0x3eb5f8),_0x3eb5f8;},Re=(_0x40d5aa,_0x2ade6c)=>(_0xa9fe0c,_0x1dd474)=>_0x2ade6c(_0xa9fe0c,_0x1dd474,_0x40d5aa);const Ls=_0x2d62b5('univer-pro.collaboration-client-socket-service');function $n(_0x2a1dab,_0x42cc4c,_0x3756b7){const _0xaa23be=_0x4c1f23;return _0x2a1dab+'/'+_0x42cc4c+_0xaa23be(0x3e1)+_0x3756b7+_0xaa23be(0xb8);}let Et=class extends _0x22db72{constructor(_0x36dca4,_0x10ab30,_0x186538,_0x2f937b,_0xe172d9){const _0x71c1a5=_0x4c1f23;super(),this[_0x71c1a5(0xa5)]=_0x36dca4,this[_0x71c1a5(0xf8)]=_0x10ab30,this[_0x71c1a5(0x132)]=_0x186538,this[_0x71c1a5(0x128)]=_0x2f937b,this['_snapshotServerService']=_0xe172d9;}[_0x4c1f23(0x1a6)](_0x130798){const _0x35fb53=_0x4c1f23,_0x5ca11d=this[_0x35fb53(0xf8)][_0x35fb53(0x1a6)](_0x130798);if(!_0x5ca11d)throw new Error(_0x35fb53(0x3f5));const _0x693d5c=new _0x242419(),_0x27ff60=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d['close$']['subscribe'](_0x4a9793=>_0x27ff60[_0x35fb53(0x23d)](_0x4a9793))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x27ff60[_0x35fb53(0x2c4)]()));const _0x3d209c=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0xed)][_0x35fb53(0x280)](_0x17aa78=>_0x3d209c[_0x35fb53(0x23d)](_0x17aa78))),_0x693d5c[_0x35fb53(0x2fb)](_0x5738c2(()=>_0x3d209c[_0x35fb53(0x2c4)]()));const _0x30c9a9=new _0xacaad6();_0x693d5c[_0x35fb53(0x2fb)](_0x5ca11d[_0x35fb53(0x117)][_0x35fb53(0x280)](_0x23afd1=>{const _0x11dd24=_0x35fb53,_0x15b7b2=Nn(_0x23afd1);_0x30c9a9[_0x11dd24(0x23d)](_0x15b7b2);})),_0x693d5c['add'](_0x5738c2(()=>_0x30c9a9['complete']()));let _0x30d95a;const _0x58cbcc=()=>{const _0x14871c=_0x35fb53;_0x3d209c[_0x14871c(0x23d)](new Event(_0x14871c(0x29b))),_0x27ff60['next'](new CloseEvent(_0x14871c(0x29b))),_0x30d95a[_0x14871c(0x74)]();};return _0x30d95a={'memberID':'','close$':_0x27ff60['asObservable'](),'error$':_0x3d209c[_0x35fb53(0xfc)](),'open$':_0x5ca11d[_0x35fb53(0x345)],'message$':_0x30c9a9[_0x35fb53(0xfc)](),'send':_0x1b66cb=>{const _0x17f8fe=_0x35fb53;if(_0x1b66cb[_0x17f8fe(0x315)]===I['INGEST']){if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x8a)]){this[_0x17f8fe(0x75)](_0x30d95a,_0x1b66cb[_0x17f8fe(0x339)])[_0x17f8fe(0x224)](_0x462d26=>{const _0xe8df5b=_0x17f8fe;this[_0xe8df5b(0x128)][_0xe8df5b(0x17a)](_0x462d26),_0x58cbcc();});return;}if(_0x1b66cb[_0x17f8fe(0x339)][_0x17f8fe(0x186)]===_0x273d8c[_0x17f8fe(0x3ea)]){const _0xdd37a3=_0x1b66cb[_0x17f8fe(0x339)];this[_0x17f8fe(0xf6)](_0xdd37a3)[_0x17f8fe(0x90)](_0x4438f9=>{const _0x4458f7=_0x17f8fe;_0x30c9a9[_0x4458f7(0x23d)]({'cmd':I[_0x4458f7(0x326)],'code':kt['OK'],'routeKey':_0xdd37a3[_0x4458f7(0x339)][_0x4458f7(0x1f3)],'routeType':'','data':{'eventID':_0x273d8c['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x4438f9}}});})[_0x17f8fe(0x224)](_0x236185=>{const _0x4a009f=_0x17f8fe;this[_0x4a009f(0x128)][_0x4a009f(0x17a)](_0x236185),_0x58cbcc();});return;}}_0x5ca11d[_0x17f8fe(0x218)](Un(_0x1b66cb));},'close':()=>{_0x5ca11d['close'](),_0x693d5c['dispose']();}},_0x30d95a;}async[_0x4c1f23(0x75)](_0x15b682,_0x209f55){const _0x3b8775=_0x4c1f23;var _0x3a2ad2,_0x34ecda;const {unitType:_0x2a9830,unitID:_0x1befaf,changeset:_0x244cc9}=_0x209f55[_0x3b8775(0x339)],_0x1c3fa8={'unitID':_0x1befaf,'memberID':_0x15b682['memberID'],'type':_0x2a9830,'changeset':_0x2b2dd8(_0x244cc9)},_0x3cf0b7=this[_0x3b8775(0x132)][_0x3b8775(0x111)](On),_0x5dd139=this['_configService'][_0x3b8775(0x111)](L),_0x9c7e2c=$n((_0x34ecda=(_0x3a2ad2=_0x5dd139==null?void 0x0:_0x5dd139[_0x3b8775(0x259)])!=null?_0x3a2ad2:_0x3cf0b7)!=null?_0x34ecda:Dn,_0x2a9830,_0x1befaf);try{await this['_http'][_0x3b8775(0x341)](_0x9c7e2c,{'body':_0x1c3fa8});}catch(_0x4512cb){throw this[_0x3b8775(0x128)][_0x3b8775(0x17a)](_0x3b8775(0x144),_0x3b8775(0x27f)),_0x4512cb;}}async[_0x4c1f23(0xf6)](_0x4896ac){const _0x4d9a09=_0x4c1f23,{unitID:_0x3dfd4f,from:_0x36b267,to:_0x30a705,unitType:_0x35912a}=_0x4896ac['data'];return(await this[_0x4d9a09(0x3eb)][_0x4d9a09(0x156)]({'metadata':void 0x0},{'unitID':_0x3dfd4f,'type':_0x35912a,'from':_0x36b267,'to':_0x30a705}))[_0x4d9a09(0x219)];}};Et=Ln([Re(0x0,_0x321449(_0x1fbfa2)),Re(0x1,_0x321449(_0x57aa72)),Re(0x2,_0x4d21d1),Re(0x3,_0x50688a),Re(0x4,_0x4c90dd)],Et);const jn=_0x4c1f23(0x388);function xn(_0x4e0973){const _0xebb7d3=_0x4c1f23;return JSON[_0xebb7d3(0x360)](_0x4e0973)['length'];}class $s{constructor(){const _0x307a83=_0x4c1f23;l(this,'_commentUpdate$',new _0xacaad6()),l(this,_0x307a83(0x17f),this[_0x307a83(0x343)][_0x307a83(0xfc)]());}['onCommentUpdate'](_0x497178){const _0xd10197=_0x4c1f23;this[_0xd10197(0x343)]['next'](_0x497178);}}var Hn=Object[_0x4c1f23(0x2e9)],kn=Object[_0x4c1f23(0x133)],Bn=(_0x259610,_0x45c057,_0x5b32f6,_0x2954c4)=>{const _0x3e16b8=_0x4c1f23;for(var _0x3975a5=_0x2954c4>0x1?void 0x0:_0x2954c4?kn(_0x45c057,_0x5b32f6):_0x45c057,_0x22362b=_0x259610[_0x3e16b8(0x78)]-0x1,_0x50d417;_0x22362b>=0x0;_0x22362b--)(_0x50d417=_0x259610[_0x22362b])&&(_0x3975a5=(_0x2954c4?_0x50d417(_0x45c057,_0x5b32f6,_0x3975a5):_0x50d417(_0x3975a5))||_0x3975a5);return _0x2954c4&&_0x3975a5&&Hn(_0x45c057,_0x5b32f6,_0x3975a5),_0x3975a5;},rs=(_0x472601,_0x16d3db)=>(_0x2be070,_0x1fc134)=>_0x16d3db(_0x2be070,_0x1fc134,_0x472601);let ae=class extends _0x22db72{constructor(_0x29478b,_0x413952){const _0x242e51=_0x4c1f23;super(),l(this,_0x242e51(0x2dc),new Map()),(this['_univerInstanceService']=_0x29478b,this[_0x242e51(0x1ae)]=_0x413952,this[_0x242e51(0x248)](_0x5738c2(_0x5de0ce(this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9['UNIVER_SHEET'])[_0x242e51(0x1a7)](_0x3d528e(_0x138c70=>_0x138c70[_0x242e51(0x34e)]())),this[_0x242e51(0x310)][_0x242e51(0x2ee)](_0x4c91c9[_0x242e51(0x11d)])[_0x242e51(0x1a7)](_0x3d528e(_0x54ca50=>_0x54ca50[_0x242e51(0x34e)]())),this[_0x242e51(0x310)]['getTypeOfUnitDisposed$'](_0x4c91c9[_0x242e51(0x1c4)])['pipe'](_0x3d528e(_0x243753=>_0x243753[_0x242e51(0x34e)]())))[_0x242e51(0x280)](_0xbd3083=>this[_0x242e51(0xce)](_0xbd3083)))));}[_0x4c1f23(0x395)](_0x40becd){const _0x525e6b=_0x4c1f23;this[_0x525e6b(0x1ae)][_0x525e6b(0x395)](_0x40becd);}[_0x4c1f23(0x16d)](){const _0x5537f8=_0x4c1f23;return this[_0x5537f8(0x1ae)]['getCurrentUser']();}[_0x4c1f23(0x2d6)](_0x16073a,_0x281ffc){const _0x37bffd=_0x4c1f23;let _0x508ff1=this['_roomMembers'][_0x37bffd(0x348)](_0x16073a);_0x508ff1||(_0x508ff1=new Vn(),this[_0x37bffd(0x2dc)]['set'](_0x16073a,_0x508ff1)),_0x508ff1[_0x37bffd(0x2d6)](_0x281ffc);}[_0x4c1f23(0x378)](_0x2d3327,_0x2fe043){const _0x1e95e1=_0x4c1f23,_0x46936b=this[_0x1e95e1(0x2dc)]['get'](_0x2d3327);_0x46936b&&_0x46936b[_0x1e95e1(0x378)](_0x2fe043);}[_0x4c1f23(0x340)](_0x43fc54){return this['_roomMembers']['get'](_0x43fc54);}['getMember'](_0x4dcc02,_0x37b213){const _0x43138e=_0x4c1f23,_0x4e5950=this[_0x43138e(0x2dc)]['get'](_0x4dcc02);if(_0x4e5950)return _0x4e5950[_0x43138e(0x39f)](_0x37b213);}[_0x4c1f23(0xce)](_0x5b9777){const _0x30b1c9=_0x4c1f23,_0x115f2f=this['_roomMembers']['get'](_0x5b9777);_0x115f2f&&(_0x115f2f[_0x30b1c9(0x1e4)](),this[_0x30b1c9(0x2dc)][_0x30b1c9(0xd0)](_0x5b9777));}[_0x4c1f23(0x1e4)](){const _0x47fff3=_0x4c1f23;this[_0x47fff3(0x2dc)][_0x47fff3(0x100)](_0x4e8277=>_0x4e8277[_0x47fff3(0x1e4)]()),this['_roomMembers'][_0x47fff3(0xa8)]();}};ae=Bn([rs(0x0,_0x375068),rs(0x1,_0x321449(_0xc3ed3))],ae);class Vn extends _0x22db72{constructor(){const _0x3d2095=_0x4c1f23;super(...arguments),l(this,_0x3d2095(0x87),new Map());}[_0x4c1f23(0x1e4)](){const _0xa33cb1=_0x4c1f23;this[_0xa33cb1(0x87)][_0xa33cb1(0xa8)]();}[_0x4c1f23(0x2d6)](_0x1650df){const _0x28725d=_0x4c1f23;this[_0x28725d(0x87)]['set'](_0x1650df[_0x28725d(0xbc)],_0x1650df);}['removeMember'](_0x385b58){const _0x4b7738=_0x4c1f23;this[_0x4b7738(0x87)][_0x4b7738(0xd0)](_0x385b58);}[_0x4c1f23(0x39f)](_0x43c94c){const _0x5d70f6=_0x4c1f23;return this['_members'][_0x5d70f6(0x348)](_0x43c94c);}}var Fn=Object['defineProperty'],Wn=Object[_0x4c1f23(0x133)],Gn=(_0x5d884c,_0x10f790,_0x2d69c6,_0x2572b0)=>{for(var _0x3d91bc=_0x2572b0>0x1?void 0x0:_0x2572b0?Wn(_0x10f790,_0x2d69c6):_0x10f790,_0x355d2e=_0x5d884c['length']-0x1,_0x3f10c5;_0x355d2e>=0x0;_0x355d2e--)(_0x3f10c5=_0x5d884c[_0x355d2e])&&(_0x3d91bc=(_0x2572b0?_0x3f10c5(_0x10f790,_0x2d69c6,_0x3d91bc):_0x3f10c5(_0x3d91bc))||_0x3d91bc);return _0x2572b0&&_0x3d91bc&&Fn(_0x10f790,_0x2d69c6,_0x3d91bc),_0x3d91bc;},J=(_0x44fde5,_0x49f553)=>(_0x1fc462,_0x4f3d6e)=>_0x49f553(_0x1fc462,_0x4f3d6e,_0x44fde5),G=(_0x2e7845=>(_0x2e7845[_0x2e7845[_0x4c1f23(0x237)]=0x0]='IDLE',_0x2e7845[_0x2e7845[_0x4c1f23(0x127)]=0x1]='JOINING',_0x2e7845[_0x2e7845['OFFLINE']=0x2]=_0x4c1f23(0x3d4),_0x2e7845[_0x2e7845[_0x4c1f23(0x2e1)]=0x3]=_0x4c1f23(0x2e1),_0x2e7845))(G||{});function _0x4c7d(_0xb72135,_0x28f116){const _0x583f58=_0x583f();return _0x4c7d=function(_0x4c7d20,_0xec52ac){_0x4c7d20=_0x4c7d20-0x73;let _0x238afb=_0x583f58[_0x4c7d20];return _0x238afb;},_0x4c7d(_0xb72135,_0x28f116);}let Ct=class extends _0x2dacfb{constructor(_0x376713,_0x56ae74,_0x2a9705,_0x40006f,_0x53c354,_0x4c1650,_0x1b2322,_0x291af3,_0x39f1ac,_0x25579a){const _0x55d9b2=_0x4c1f23;super(),l(this,_0x55d9b2(0x221),new _0x2ec58d(0x0)),l(this,_0x55d9b2(0x294),this['_sessionStatus$']['asObservable']()),l(this,'_event$',new _0xacaad6()),l(this,_0x55d9b2(0x99),this[_0x55d9b2(0x161)]['asObservable']()),l(this,_0x55d9b2(0x13b)),l(this,'_socketMessageSubscription'),l(this,_0x55d9b2(0x91)),l(this,_0x55d9b2(0x3c9),!0x1),l(this,_0x55d9b2(0xbe),null),(this[_0x55d9b2(0x1c2)]=_0x376713,this[_0x55d9b2(0x128)]=_0x2a9705,this['_beforeCloseService']=_0x40006f,this[_0x55d9b2(0x28f)]=_0x53c354,this[_0x55d9b2(0x132)]=_0x4c1650,this[_0x55d9b2(0x119)]=_0x1b2322,this[_0x55d9b2(0x2ed)]=_0x291af3,this[_0x55d9b2(0xba)]=_0x39f1ac,this['_telemetryService']=_0x25579a,this[_0x55d9b2(0x3c9)]=!!this[_0x55d9b2(0x228)],_0x56ae74[_0x55d9b2(0x1a7)](_0x289d57(this[_0x55d9b2(0x265)]))[_0x55d9b2(0x280)](_0x34c84f=>{const _0x322321=_0x55d9b2;var _0x1edf03;typeof _0x34c84f>'u'||(this[_0x322321(0x13b)]=_0x34c84f,_0x34c84f?(this['_joinRoom'](_0x34c84f),this[_0x322321(0x307)]=_0x34c84f[_0x322321(0x117)][_0x322321(0x280)](_0x114437=>{const _0x55c070=_0x322321;_0x114437[_0x55c070(0x373)]===this[_0x55c070(0x1c2)]&&this[_0x55c070(0xd5)](_0x114437);})):(this[_0x322321(0x292)](),this[_0x322321(0x221)]['next'](0x2),(_0x1edf03=this['_socketMessageSubscription'])==null||_0x1edf03['unsubscribe'](),this[_0x322321(0x307)]=null));}),this[_0x55d9b2(0x248)](this[_0x55d9b2(0x1bf)][_0x55d9b2(0x30a)](()=>{const _0x385b25=_0x55d9b2;var _0x42ea26;(_0x42ea26=this[_0x385b25(0x13b)])==null||_0x42ea26[_0x385b25(0x218)]({'cmd':I['LEAVE'],'data':{'roomID':this[_0x385b25(0x1c2)]}});})));}get[_0x4c1f23(0x110)](){const _0x66e913=_0x4c1f23;return this[_0x66e913(0x221)][_0x66e913(0x25c)]();}[_0x4c1f23(0x370)](){const _0x41ef16=_0x4c1f23;var _0x27c515,_0x368a78;return(_0x368a78=(_0x27c515=this[_0x41ef16(0x13b)])==null?void 0x0:_0x27c515[_0x41ef16(0xbc)])!=null?_0x368a78:null;}['dispose'](){const _0x11c284=_0x4c1f23;super[_0x11c284(0x1e4)](),this[_0x11c284(0x265)][_0x11c284(0x23d)](),this[_0x11c284(0x265)][_0x11c284(0x2c4)]();}['close'](){const _0x5bd256=_0x4c1f23;var _0x1fea9c,_0x584a53;this[_0x5bd256(0x292)](),(_0x1fea9c=this[_0x5bd256(0x13b)])==null||_0x1fea9c['send']({'cmd':I[_0x5bd256(0x9c)],'data':{'roomID':this[_0x5bd256(0x1c2)]}}),(_0x584a53=this[_0x5bd256(0x13b)])==null||_0x584a53[_0x5bd256(0x74)](),this['_event$'][_0x5bd256(0x2c4)](),this['_sessionStatus$']['complete'](),this[_0x5bd256(0x1e4)]();}['_onCombEvent'](_0x27c0b0){const _0x5e70e4=_0x4c1f23;_0x27c0b0[_0x5e70e4(0x315)]===I['JOIN']?this[_0x5e70e4(0x19d)](_0x27c0b0):_0x27c0b0[_0x5e70e4(0x315)]===I[_0x5e70e4(0x326)]&&this[_0x5e70e4(0x1b4)](_0x27c0b0);}[_0x4c1f23(0x98)](_0x3028a0){const _0x3cae92=_0x4c1f23;this['_sessionStatus$']['next'](0x1),_0x3028a0[_0x3cae92(0x218)]({'cmd':I[_0x3cae92(0x86)],'routeKey':this[_0x3cae92(0x1c2)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4c1f23(0x19d)](_0x3a4dfd){const _0x55a458=_0x4c1f23;var _0x5c1ffd;if(_0x3a4dfd[_0x55a458(0x397)]===kt[_0x55a458(0x2cc)]){this[_0x55a458(0x28f)][_0x55a458(0x160)]({'type':_0x57eb36[_0x55a458(0x129)],'content':this[_0x55a458(0x119)]['t'](_0x55a458(0x21e))}),this[_0x55a458(0x221)]['next'](0x2);return;}this[_0x55a458(0x221)][_0x55a458(0x23d)](0x3);const _0x75bf5=(_0x5c1ffd=_0x3a4dfd[_0x55a458(0x339)][_0x55a458(0x36f)][this['_unitID']])==null?void 0x0:_0x5c1ffd[_0x55a458(0x184)];_0x75bf5&&_0x75bf5[_0x55a458(0x100)](_0x5bd3f2=>this['_memberService'][_0x55a458(0x2d6)](this[_0x55a458(0x1c2)],_0x5bd3f2));}[_0x4c1f23(0x1b4)](_0x19d4ce){const _0x345f3f=_0x4c1f23;try{const _0x1fc6fa=_0x19d4ce[_0x345f3f(0x339)];switch(_0x1fc6fa[_0x345f3f(0x186)]){case _0x273d8c[_0x345f3f(0x3b1)]:this[_0x345f3f(0x19c)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x15a)]:this[_0x345f3f(0x210)](_0x1fc6fa),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x368)]:this[_0x345f3f(0x1b7)](),this['_clearCollaborationTimeoutTimer'](),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c[_0x345f3f(0x157)]:this[_0x345f3f(0x128)][_0x345f3f(0x17a)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x1fc6fa)),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;case _0x273d8c['COMMENT_UPDATE']:this[_0x345f3f(0xba)][_0x345f3f(0x35a)](_0x1fc6fa[_0x345f3f(0x339)]),this[_0x345f3f(0x161)][_0x345f3f(0x23d)](_0x1fc6fa);break;default:this[_0x345f3f(0x161)]['next'](_0x1fc6fa);}}catch(_0x58fafc){this[_0x345f3f(0x128)][_0x345f3f(0x17a)](_0x58fafc,_0x19d4ce);}}['_onUserJoin'](_0x5b8a4b){const _0x1659e6=_0x4c1f23;this[_0x1659e6(0x2ed)][_0x1659e6(0x2d6)](this[_0x1659e6(0x1c2)],_0x5b8a4b['data']);}['_onUserLeave'](_0x513503){const _0x5471fd=_0x4c1f23;this[_0x5471fd(0x2ed)][_0x5471fd(0x378)](this['_unitID'],_0x513503['data']['memberID']);}async['send'](_0x8b6c7b,_0x2c40af){const _0x4c3cfd=_0x4c1f23;if(this['sessionStatus']!==0x3||!this[_0x4c3cfd(0x13b)])throw new Error(_0x4c3cfd(0x147));try{_0x8b6c7b[_0x4c3cfd(0x186)]===_0x273d8c['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4c3cfd(0x286)](_0x8b6c7b)),this[_0x4c3cfd(0x13b)][_0x4c3cfd(0x218)]({'cmd':I[_0x4c3cfd(0x136)],'routeKey':_0x2c40af,'routeType':'','data':_0x8b6c7b});}catch(_0x257b42){this['_logService']['error'](_0x257b42);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4d5dd7=_0x4c1f23;var _0x2e28bf;this[_0x4d5dd7(0x91)]=window[_0x4d5dd7(0x3cc)](()=>{const _0x39d170=_0x4d5dd7;this['_collaborationTimeoutTimer']=null,this[_0x39d170(0x28f)]['show']({'type':_0x57eb36[_0x39d170(0xcd)],'content':this[_0x39d170(0x119)]['t'](_0x39d170(0x1cd))});},(_0x2e28bf=this[_0x4d5dd7(0x132)][_0x4d5dd7(0x111)](Ns))!=null?_0x2e28bf:Us);}[_0x4c1f23(0x1a0)](){const _0x5a8f64=_0x4c1f23;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5a8f64(0x91)]),this[_0x5a8f64(0x91)]=null);}[_0x4c1f23(0x286)](_0x7888d4){const _0x38f5f5=_0x4c1f23;if(!this['_shouldReportTelemetry'])return;const {data:_0x4b3226}=_0x7888d4,{unitID:_0x3536de,changeset:_0x2ae39e}=_0x4b3226,{mutations:_0x411111,type:_0x5d0ba8}=_0x2ae39e;this[_0x38f5f5(0xbe)]={'unitId':_0x3536de,'type':_0x5d0ba8,'startTime':performance[_0x38f5f5(0xdb)](),'stopTime':0x0,'duration':0x0,'size':xn(_0x411111)};}[_0x4c1f23(0x1b7)](){const _0x337dad=_0x4c1f23;if(this[_0x337dad(0x3c9)]){if(!this[_0x337dad(0xbe)]){this[_0x337dad(0x128)]['error'](_0x337dad(0x144),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x337dad(0xbe)][_0x337dad(0x174)]=performance['now'](),this[_0x337dad(0xbe)][_0x337dad(0xe9)]=this['_telemetryInfo']['stopTime']-this['_telemetryInfo']['startTime'],this[_0x337dad(0x228)][_0x337dad(0x2a5)](jn,this[_0x337dad(0xbe)]),this[_0x337dad(0xbe)]=null;}}[_0x4c1f23(0x292)](){const _0x485a2c=_0x4c1f23;this[_0x485a2c(0xbe)]=null;}};Ct=Gn([J(0x2,_0x50688a),J(0x3,_0x3cc7ef),J(0x4,_0x5d3b7c),J(0x5,_0x4d21d1),J(0x6,_0x321449(_0x2e153b)),J(0x7,_0x321449(ae)),J(0x8,_0x321449($s)),J(0x9,_0x9bfc3c(_0x2263bf))],Ct);var Yn=Object[_0x4c1f23(0x2e9)],Kn=Object['getOwnPropertyDescriptor'],Xn=(_0x4b4d69,_0x5ac60f,_0x1a38b1,_0x3392d6)=>{const _0xf6c02a=_0x4c1f23;for(var _0x542e68=_0x3392d6>0x1?void 0x0:_0x3392d6?Kn(_0x5ac60f,_0x1a38b1):_0x5ac60f,_0xb3c961=_0x4b4d69[_0xf6c02a(0x78)]-0x1,_0x623383;_0xb3c961>=0x0;_0xb3c961--)(_0x623383=_0x4b4d69[_0xb3c961])&&(_0x542e68=(_0x3392d6?_0x623383(_0x5ac60f,_0x1a38b1,_0x542e68):_0x623383(_0x542e68))||_0x542e68);return _0x3392d6&&_0x542e68&&Yn(_0x5ac60f,_0x1a38b1,_0x542e68),_0x542e68;},de=(_0x36e9c2,_0x1c5e79)=>(_0x3b2f91,_0x11d767)=>_0x1c5e79(_0x3b2f91,_0x11d767,_0x36e9c2);let ce=class extends _0x22db72{constructor(_0x4f9df5,_0x1c3e4c,_0x2589f8,_0xab7459,_0x1abd30,_0xb4a1bd){const _0x5dcc2f=_0x4c1f23;super(),l(this,_0x5dcc2f(0x1fe),new _0x2ec58d(void 0x0)),l(this,'socket$',this[_0x5dcc2f(0x1fe)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x2d2),null),l(this,'_sessions',new Map()),l(this,_0x5dcc2f(0xc8),new _0x2ec58d(G[_0x5dcc2f(0x237)])),l(this,_0x5dcc2f(0x380),this[_0x5dcc2f(0xc8)][_0x5dcc2f(0xfc)]()),l(this,_0x5dcc2f(0x27e),!0x1),l(this,'_retryConnectingTimer'),l(this,_0x5dcc2f(0x29a),0x0),l(this,_0x5dcc2f(0x1ed)),l(this,_0x5dcc2f(0x313)),(this['_injector']=_0x4f9df5,this[_0x5dcc2f(0x119)]=_0x1c3e4c,this[_0x5dcc2f(0x28f)]=_0x2589f8,this[_0x5dcc2f(0x128)]=_0xab7459,this[_0x5dcc2f(0x132)]=_0x1abd30,this[_0x5dcc2f(0x374)]=_0xb4a1bd,this[_0x5dcc2f(0x35c)]());}get['_socket'](){const _0x3cce74=_0x4c1f23;return this['_socket$'][_0x3cce74(0x25c)]();}['_initEventListeners'](){const _0x595238=_0x4c1f23;this['_listenToOfflineEvent'](),this[_0x595238(0x282)]();}['dispose'](){const _0x1afcd3=_0x4c1f23;super[_0x1afcd3(0x1e4)](),this[_0x1afcd3(0x22d)][_0x1afcd3(0x100)](_0x584510=>_0x584510['dispose']()),this[_0x1afcd3(0x22d)]['clear'](),this[_0x1afcd3(0xc8)]['complete']();}async['requireSession'](_0x4b992c){const _0x4b8fec=_0x4c1f23;if(this[_0x4b8fec(0x22d)]['has'](_0x4b992c))return this[_0x4b8fec(0x22d)][_0x4b8fec(0x348)](_0x4b992c);this[_0x4b8fec(0x274)]();const _0x3df09e=this[_0x4b8fec(0x162)][_0x4b8fec(0x171)](Ct,_0x4b992c,this[_0x4b8fec(0x1fe)][_0x4b8fec(0xfc)]());return this[_0x4b8fec(0x22d)]['set'](_0x4b992c,_0x3df09e),_0x3df09e;}[_0x4c1f23(0x89)](_0x21dacc){const _0x189b65=_0x4c1f23;var _0x5604e5;const _0x186b34=this[_0x189b65(0x22d)][_0x189b65(0x348)](_0x21dacc);_0x186b34&&(this[_0x189b65(0x22d)][_0x189b65(0xd0)](_0x21dacc),_0x186b34[_0x189b65(0x74)]()),this[_0x189b65(0x22d)]['size']||(_0x5604e5=this['_socket'])==null||_0x5604e5[_0x189b65(0x74)]();}[_0x4c1f23(0x37a)](){const _0x4a8f00=_0x4c1f23;this[_0x4a8f00(0x29a)]=0x0,this[_0x4a8f00(0x3e9)]!=null&&(clearTimeout(this[_0x4a8f00(0x3e9)]),this[_0x4a8f00(0x3e9)]=null),this[_0x4a8f00(0xb9)]();}[_0x4c1f23(0x3c4)](){const _0x31bf00=_0x4c1f23;var _0x5db8dd,_0x23f3bf;const _0x2acfd9=this[_0x31bf00(0x132)][_0x31bf00(0x111)](Sn),_0x50e33b=this[_0x31bf00(0x132)][_0x31bf00(0x111)](L),_0x168d50=(_0x23f3bf=(_0x5db8dd=_0x50e33b==null?void 0x0:_0x50e33b['collabWebSocketUrl'])!=null?_0x5db8dd:_0x2acfd9)!=null?_0x23f3bf:pn,_0x3699c4=this[_0x31bf00(0x374)][_0x31bf00(0x1a6)](_0x168d50);return this[_0x31bf00(0x2d2)]=_0x3699c4,_0x3699c4;}[_0x4c1f23(0x274)](){const _0x17335f=_0x4c1f23;var _0x3e2582,_0x265369;try{const _0x5ed0d2=(_0x265369=(_0x3e2582=this[_0x17335f(0x13b)])!=null?_0x3e2582:this[_0x17335f(0x2d2)])!=null?_0x265369:this[_0x17335f(0x3c4)]();if(_0x5ed0d2){const _0x282f8d=_0x5ed0d2[_0x17335f(0x218)];_0x5ed0d2['send']=_0x571705=>(this[_0x17335f(0x145)](),_0x282f8d['apply'](_0x5ed0d2,[_0x571705])),_0x5ed0d2[_0x17335f(0x117)][_0x17335f(0x280)](_0x58c6e3=>this[_0x17335f(0x266)](_0x5ed0d2,_0x58c6e3)),_0x5ed0d2[_0x17335f(0xed)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x39b726=>this[_0x17335f(0x128)][_0x17335f(0x17a)](_0x17335f(0x36a),_0x39b726)),_0x5ed0d2[_0x17335f(0x345)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](()=>{this['_onConnectionOpen'](_0x5ed0d2);}),_0x5ed0d2[_0x17335f(0x188)][_0x17335f(0x1a7)](_0x41fec6(0x1))[_0x17335f(0x280)](_0x4b723a=>{const _0x319ee1=_0x17335f;this[_0x319ee1(0x128)]['debug']('[CollaborationSessionService]','socket\x20close',_0x4b723a),this[_0x319ee1(0x13d)]();});}}catch(_0x4c4971){this['_logService'][_0x17335f(0x17a)](_0x4c4971),this['_onConnectionFailed']();}}[_0x4c1f23(0x2aa)](_0x983293){const _0x5acecd=_0x4c1f23;this['_logService'][_0x5acecd(0x20b)](_0x5acecd(0x3a9),_0x5acecd(0x311)),_0x983293[_0x5acecd(0x218)]({'cmd':I[_0x5acecd(0x191)]}),this[_0x5acecd(0x145)]();}[_0x4c1f23(0x3ae)](){const _0x279249=_0x4c1f23;window[_0x279249(0x384)](_0x279249(0x209),()=>this[_0x279249(0x183)]());}[_0x4c1f23(0x183)](){const _0x33eb75=_0x4c1f23;this[_0x33eb75(0x27e)]=!0x1,this[_0x33eb75(0x2d2)]=null,this[_0x33eb75(0xc8)][_0x33eb75(0x23d)](G[_0x33eb75(0x3d4)]),this[_0x33eb75(0x1fe)]['next'](null),this[_0x33eb75(0x285)](),this[_0x33eb75(0x20d)]();}['_onConnectionFailed'](){const _0x22de71=_0x4c1f23;var _0x298718;this[_0x22de71(0x183)](),this[_0x22de71(0x29a)]<((_0x298718=this['_configService']['getConfig'](Cn))!=null?_0x298718:bn)?(this['_messageService'][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36[_0x22de71(0x129)],'content':this[_0x22de71(0x119)]['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x22de71(0x28f)][_0x22de71(0x160)]({'key':_0x22de71(0x11c),'type':_0x57eb36['Error'],'content':this[_0x22de71(0x119)]['t']('session.connection-failed')});}[_0x4c1f23(0x282)](){const _0x2a6915=_0x4c1f23,_0x1b4797=()=>{const _0x3e8717=_0x4c7d;this['_socket']||this[_0x3e8717(0x37a)]();},_0x365c55=()=>{const _0x16dad2=_0x4c7d;this[_0x16dad2(0x13b)]||document[_0x16dad2(0x238)]==='hidden'||this[_0x16dad2(0x37a)]();};window[_0x2a6915(0x384)](_0x2a6915(0x2b6),_0x1b4797),document[_0x2a6915(0x384)](_0x2a6915(0x1d1),_0x365c55);}[_0x4c1f23(0xb9)](){const _0x86773e=_0x4c1f23;var _0x57996f;const _0x5cc163=this[_0x86773e(0x29a)],_0x5b2e5c=this[_0x86773e(0x132)][_0x86773e(0x111)](L),_0x368f75=_0x5cc163===0x0?0x0:((_0x57996f=_0x5b2e5c==null?void 0x0:_0x5b2e5c[_0x86773e(0x3cf)])!=null?_0x57996f:En)*0x2**_0x5cc163;this['_retryConnectingTimer']=window[_0x86773e(0x3cc)](()=>{clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x368f75),this['_retryCount']+=0x1;}[_0x4c1f23(0x266)](_0x586ac8,_0x435d95){const _0xed5c97=_0x4c1f23,{cmd:_0x12029a}=_0x435d95;_0x12029a===I['HELLO']&&!this['_socketReady']&&(_0x586ac8['memberID']=_0x435d95['data']['memberID'],this[_0xed5c97(0x1fe)][_0xed5c97(0x23d)](_0x586ac8),this[_0xed5c97(0xc8)][_0xed5c97(0x23d)](G[_0xed5c97(0x2e1)]),this[_0xed5c97(0x27e)]=!0x0,this['_candidateSocket']=null),_0x12029a===I[_0xed5c97(0x1e0)]&&this[_0xed5c97(0x285)](),this[_0xed5c97(0x145)]();}['_rescheduleHeartbeat'](){const _0x3edd88=_0x4c1f23;var _0x3512dd;this['_clearHeartbeatTimer'](),this[_0x3edd88(0x1ed)]=window['setTimeout'](()=>this[_0x3edd88(0x152)](),(_0x3512dd=this['_configService'][_0x3edd88(0x111)](vn))!=null?_0x3512dd:In);}[_0x4c1f23(0x152)](){const _0x304fb2=_0x4c1f23;this[_0x304fb2(0x13b)][_0x304fb2(0x218)]({'cmd':I['HEARTBEAT']}),this[_0x304fb2(0xd8)]();}[_0x4c1f23(0xd8)](){const _0x591c9c=_0x4c1f23;var _0x1ba82c;this[_0x591c9c(0x313)]=window['setTimeout'](()=>this[_0x591c9c(0x13d)](),(_0x1ba82c=this[_0x591c9c(0x132)][_0x591c9c(0x111)](Ns))!=null?_0x1ba82c:Us);}[_0x4c1f23(0x20d)](){const _0x25d89a=_0x4c1f23;this[_0x25d89a(0x1ed)]!=null&&(clearTimeout(this[_0x25d89a(0x1ed)]),this[_0x25d89a(0x1ed)]=null);}[_0x4c1f23(0x285)](){const _0x20300d=_0x4c1f23;this[_0x20300d(0x313)]!=null&&(clearTimeout(this[_0x20300d(0x313)]),this['_timeoutTimer']=null);}};ce=Xn([de(0x0,_0x321449(_0x313fa0)),de(0x1,_0x321449(_0x2e153b)),de(0x2,_0x5d3b7c),de(0x3,_0x50688a),de(0x4,_0x4d21d1),de(0x5,Ls)],ce);var Jn=Object[_0x4c1f23(0x2e9)],qn=Object['getOwnPropertyDescriptor'],zn=(_0x49a211,_0x2351e8,_0x2dcfd1,_0x109817)=>{const _0x230caa=_0x4c1f23;for(var _0x106f69=_0x109817>0x1?void 0x0:_0x109817?qn(_0x2351e8,_0x2dcfd1):_0x2351e8,_0x2c8a05=_0x49a211[_0x230caa(0x78)]-0x1,_0xb2d8c;_0x2c8a05>=0x0;_0x2c8a05--)(_0xb2d8c=_0x49a211[_0x2c8a05])&&(_0x106f69=(_0x109817?_0xb2d8c(_0x2351e8,_0x2dcfd1,_0x106f69):_0xb2d8c(_0x106f69))||_0x106f69);return _0x109817&&_0x106f69&&Jn(_0x2351e8,_0x2dcfd1,_0x106f69),_0x106f69;},ct=(_0x29f393,_0x33f444)=>(_0x561dd1,_0x41793b)=>_0x33f444(_0x561dd1,_0x41793b,_0x29f393);let Ye=class{constructor(_0x1dc3e2,_0x52a656,_0x12817f){const _0x1c5b3d=_0x4c1f23;this[_0x1c5b3d(0x162)]=_0x1dc3e2,this['_transformService']=_0x52a656,this[_0x1c5b3d(0x333)]=_0x12817f;}[_0x4c1f23(0x11a)](_0x52617d){const _0x430673=_0x4c1f23;this[_0x430673(0x19e)](_0x52617d),this[_0x430673(0x1ad)](_0x52617d);}[_0x4c1f23(0x20a)](_0x67d63d){const _0x401b6d=_0x4c1f23,{unitID:_0x376503}=_0x67d63d,_0x1bbe29=this[_0x401b6d(0x333)]['getRenderById'](_0x376503)[_0x401b6d(0x39e)](_0x74964),{redoCache:_0x5365ea}=_0x1bbe29[_0x401b6d(0x16c)]();if(_0x5365ea[_0x401b6d(0x78)]===0x0)return _0x67d63d;let _0x4ffe9e=_0x403f58[_0x401b6d(0x173)](_0x67d63d[_0x401b6d(0x3d7)][0x0]);for(let _0x4f3ecb=0x0;_0x4f3ecb<_0x5365ea[_0x401b6d(0x78)];_0x4f3ecb++){const _0x4f20a4={'id':'doc.mutation.rich-text-editing','params':{..._0x5365ea[_0x4f3ecb]}},_0x39b69a=this['_transformService'][_0x401b6d(0x3f0)](_0x4ffe9e,_0x4f20a4,!0x1);if(_0x3737c9(_0x39b69a))throw _0x39b69a[_0x401b6d(0x17a)];_0x4ffe9e=_0x39b69a[_0x401b6d(0x19b)];}return{..._0x403f58[_0x401b6d(0x173)](_0x67d63d),'mutations':[_0x4ffe9e]};}[_0x4c1f23(0x19e)](_0x4ebc1f){const _0x598eb9=_0x4c1f23,{unitID:_0x56e6eb}=_0x4ebc1f,_0xdb3420=this[_0x598eb9(0x333)][_0x598eb9(0x1b2)](_0x56e6eb)['with'](_0x74964),{undoCache:_0x1fd2b4,redoCache:_0x23d6db}=_0xdb3420[_0x598eb9(0x16c)]();if(_0x1fd2b4[_0x598eb9(0x78)]===0x0||_0x23d6db[_0x598eb9(0x78)]===0x0)return;const _0x6f1942=[],_0x40c458=[];let _0xfe15a0=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]),_0x1323ce=_0x403f58[_0x598eb9(0x173)](_0x4ebc1f['mutations'][0x0]);for(let _0x5acac1=_0x1fd2b4[_0x598eb9(0x78)]-0x1;_0x5acac1>=0x0;_0x5acac1--){const _0x226f0a={'id':_0x598eb9(0x108),'params':{..._0x1fd2b4[_0x5acac1]}},_0x2c48eb={'id':_0x598eb9(0x108),'params':{..._0x23d6db[_0x5acac1]}},_0x467359=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0xfe15a0,_0x226f0a,!0x1),_0x2a3a53=this[_0x598eb9(0x2ce)][_0x598eb9(0x3f0)](_0x1323ce,_0x2c48eb,!0x1);if(_0x3737c9(_0x467359))throw _0x467359[_0x598eb9(0x17a)];if(_0x3737c9(_0x2a3a53))throw _0x2a3a53['error'];_0x6f1942[_0x598eb9(0x15d)](_0x467359[_0x598eb9(0x101)]['params']),_0x40c458[_0x598eb9(0x15d)](_0x2a3a53[_0x598eb9(0x101)][_0x598eb9(0x364)]),_0xfe15a0=_0x467359[_0x598eb9(0x19b)],_0x1323ce=_0x2a3a53[_0x598eb9(0x19b)];}_0xdb3420[_0x598eb9(0x301)]({'undoCache':_0x6f1942,'redoCache':_0x40c458});}[_0x4c1f23(0x1ad)](_0x588559){const _0x1d1c14=_0x4c1f23,{unitID:_0x17552c}=_0x588559,_0x3c9903=this['_renderManagerService']['getRenderById'](_0x17552c)[_0x1d1c14(0x39e)](_0x74964),_0x1578e7=_0x3c9903[_0x1d1c14(0x1a8)]();if(_0x1578e7==null)return;const _0x3e2c77=[{'id':_0x1d1c14(0x108),'params':{'unitId':_0x588559[_0x1d1c14(0x1f3)],'actions':null,'textRanges':[_0x1578e7]}}],_0x30f7fe=this[_0x1d1c14(0x2ce)][_0x1d1c14(0xbf)](_0x588559,_0x3e2c77);if(!_0x8db330(_0x30f7fe))throw _0x30f7fe[_0x1d1c14(0x17a)];const _0x14fd03=_0x30f7fe[_0x1d1c14(0x101)][0x0][_0x1d1c14(0x364)]['textRanges'];Array[_0x1d1c14(0x35b)](_0x14fd03)&&_0x14fd03[_0x1d1c14(0x78)]&&_0x3c9903[_0x1d1c14(0x172)](_0x14fd03[0x0]);}};Ye=zn([ct(0x0,_0x321449(_0x313fa0)),ct(0x1,_0x56767e),ct(0x2,_0x3f9a6b)],Ye);var Zn=Object[_0x4c1f23(0x2e9)],Qn=Object[_0x4c1f23(0x133)],er=(_0x5f1311,_0x363175,_0x26e9e4,_0x12432c)=>{for(var _0x48c474=_0x12432c>0x1?void 0x0:_0x12432c?Qn(_0x363175,_0x26e9e4):_0x363175,_0x27810c=_0x5f1311['length']-0x1,_0x5cda1c;_0x27810c>=0x0;_0x27810c--)(_0x5cda1c=_0x5f1311[_0x27810c])&&(_0x48c474=(_0x12432c?_0x5cda1c(_0x363175,_0x26e9e4,_0x48c474):_0x5cda1c(_0x48c474))||_0x48c474);return _0x12432c&&_0x48c474&&Zn(_0x363175,_0x26e9e4,_0x48c474),_0x48c474;},Oe=(_0x3ca6f8,_0x54e781)=>(_0x251da9,_0x540e1b)=>_0x54e781(_0x251da9,_0x540e1b,_0x3ca6f8);let D=class extends _0x22db72{constructor(_0x46f5bc,_0x134f83,_0x43b87f,_0x3b4c77,_0xcbc34e){const _0x50b47b=_0x4c1f23;super(),l(this,'_cachedData',new Map()),l(this,_0x50b47b(0x351),new Map()),l(this,_0x50b47b(0x167),!0x1),(this[_0x50b47b(0x132)]=_0x46f5bc,this[_0x50b47b(0x14e)]=_0x134f83,this[_0x50b47b(0x1bf)]=_0x43b87f,this['_localeService']=_0x3b4c77,this[_0x50b47b(0x396)]=_0xcbc34e,this[_0x50b47b(0x3ab)]());}[_0x4c1f23(0x3a2)](){const _0x13a41f=_0x4c1f23;this[_0x13a41f(0x167)]=!0x0;}[_0x4c1f23(0x3d1)](){const _0x2e3111=_0x4c1f23;this[_0x2e3111(0x167)]=!0x1;}[_0x4c1f23(0x1e4)](){const _0x3fc0b2=_0x4c1f23;this[_0x3fc0b2(0x3a5)]()['then'](()=>super['dispose']());}async['loadOfflineData'](_0x1ae000){const _0xeb88c9=_0x4c1f23;return this[_0xeb88c9(0x167)]?null:this[_0xeb88c9(0x14e)][_0xeb88c9(0x352)](os(_0x1ae000));}async[_0x4c1f23(0x312)](_0x427cd9,_0x5b9315){const _0x48736b=_0x4c1f23;return!!this['_localStorageService'][_0x48736b(0x2f8)](_0x427cd9,_0x5b9315);}[_0x4c1f23(0x377)](_0x2b47cb,_0xef1e9e,_0x1d486d,_0x2340ad){const _0x582b51=_0x4c1f23,_0x2fe0d7=this[_0x582b51(0x396)]['getCurrentRevOfUnit'](_0x2b47cb);this['_cachedData'][_0x582b51(0x329)](_0x2b47cb,{'unitID':_0x2b47cb,'type':_0xef1e9e,'awaitingChangeset':_0x1d486d,'mutations':_0x2340ad,'rev':_0x2fe0d7}),this['_saveTaskMap'][_0x582b51(0x20e)](_0x2b47cb)||this[_0x582b51(0x20f)](_0x2b47cb);}[_0x4c1f23(0x20f)](_0x213115){const _0x23b728=_0x4c1f23,_0x152f41=this['_getSaveTimeout']();_0x152f41===0x0?this[_0x23b728(0x1c3)](_0x213115):this['_saveTaskMap']['set'](_0x213115,setTimeout(()=>this[_0x23b728(0x1c3)](_0x213115),_0x152f41));}[_0x4c1f23(0x38d)](){const _0x4a926b=_0x4c1f23;var _0x492c38;return(_0x492c38=this[_0x4a926b(0x132)][_0x4a926b(0x111)](Tn))!=null?_0x492c38:Rn;}['_saveCache'](_0x9a30cd){const _0x5b6df2=_0x4c1f23,_0xfee77e=this[_0x5b6df2(0x351)]['get'](_0x9a30cd);return _0xfee77e!==void 0x0&&window['clearTimeout'](_0xfee77e),this[_0x5b6df2(0x14e)][_0x5b6df2(0x2f8)](os(_0x9a30cd),this[_0x5b6df2(0x23b)][_0x5b6df2(0x348)](_0x9a30cd))[_0x5b6df2(0x90)](()=>this[_0x5b6df2(0x351)][_0x5b6df2(0xd0)](_0x9a30cd));}async[_0x4c1f23(0x3a5)](){const _0x93b82c=_0x4c1f23,_0x5d4f7b=[];this['_saveTaskMap'][_0x93b82c(0x100)]((_0x1e4a1f,_0x41443b)=>{const _0x5df8a6=_0x93b82c;window['clearTimeout'](_0x1e4a1f),_0x5d4f7b[_0x5df8a6(0x27c)](this['_saveCache'](_0x41443b)[_0x5df8a6(0x90)](()=>{const _0x17cab9=_0x5df8a6;this[_0x17cab9(0x351)][_0x17cab9(0xd0)](_0x41443b);}));}),await Promise[_0x93b82c(0x2f7)](_0x5d4f7b);}['_setupBeforeClosingHandler'](){this['disposeWithMe'](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x12daa5=_0x4c7d;if(this['_saveTaskMap'][_0x12daa5(0x151)])return this[_0x12daa5(0x119)]['t'](_0x12daa5(0x239));}));}};D=er([Oe(0x0,_0x4d21d1),Oe(0x1,_0x23441d),Oe(0x2,_0x3cc7ef),Oe(0x3,_0x321449(_0x2e153b)),Oe(0x4,_0x321449(_0x5d1c03))],D);function os(_0x56e5b){const _0x1db1d8=_0x4c1f23;return _0x1db1d8(0x34f)+_0x56e5b;}var tr=Object[_0x4c1f23(0x2e9)],sr=Object[_0x4c1f23(0x133)],ir=(_0x7dcf06,_0x38a710,_0x44947f,_0x14f085)=>{const _0x1383d4=_0x4c1f23;for(var _0x29a1e2=_0x14f085>0x1?void 0x0:_0x14f085?sr(_0x38a710,_0x44947f):_0x38a710,_0x3b346f=_0x7dcf06[_0x1383d4(0x78)]-0x1,_0x3c6a2c;_0x3b346f>=0x0;_0x3b346f--)(_0x3c6a2c=_0x7dcf06[_0x3b346f])&&(_0x29a1e2=(_0x14f085?_0x3c6a2c(_0x38a710,_0x44947f,_0x29a1e2):_0x3c6a2c(_0x29a1e2))||_0x29a1e2);return _0x14f085&&_0x29a1e2&&tr(_0x38a710,_0x44947f,_0x29a1e2),_0x29a1e2;},ht=(_0x4f34b0,_0x361283)=>(_0x23e61e,_0x683cc9)=>_0x361283(_0x23e61e,_0x683cc9,_0x4f34b0);function nr(_0x38a887){const _0x538375=_0x4c1f23,{unitID:_0x3f565f,mutations:_0x2bf021}=_0x38a887;return{'unitId':_0x3f565f,'subUnitId':_0x2bf021[0x0][_0x538375(0x364)][_0x538375(0x213)]};}let Ke=class{constructor(_0x5d4b98,_0x208792,_0x2fc560){const _0xcdc69d=_0x4c1f23;this['_injector']=_0x5d4b98,this[_0xcdc69d(0x2ce)]=_0x208792,this[_0xcdc69d(0x137)]=_0x2fc560;}[_0x4c1f23(0x34c)](_0x30cf5e){const _0x56949e=_0x4c1f23;var _0x595825,_0x3af790,_0x35c0e6,_0x51f5ae;const _0x32be0a=this[_0x56949e(0x162)][_0x56949e(0x348)](_0x152281),{unitId:_0x44cd75,subUnitId:_0x46a82e}=nr(_0x30cf5e),_0xf2c67d=_0x32be0a[_0x56949e(0x8f)](_0x44cd75)['getCurrentSelections'](),_0x2b3e04=(_0x3af790=(_0x595825=this[_0x56949e(0x137)][_0x56949e(0x2f6)](_0x44cd75))==null?void 0x0:_0x595825[_0x56949e(0x135)]())==null?void 0x0:_0x3af790[_0x56949e(0x1a9)]();if(_0xf2c67d[_0x56949e(0x78)]===0x0||!_0x44cd75||!_0x46a82e)return;const _0x3ffa16=[{'id':_0x137748['id'],'params':{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0x403f58[_0x56949e(0x173)](_0xf2c67d)}}],_0x15cafa=this[_0x56949e(0x2ce)][_0x56949e(0xbf)](_0x30cf5e,_0x3ffa16);if(!_0x8db330(_0x15cafa))throw _0x15cafa[_0x56949e(0x17a)];const _0xc8311e=(_0x51f5ae=(_0x35c0e6=_0x15cafa['m2Prime'][0x0])==null?void 0x0:_0x35c0e6[_0x56949e(0x364)])==null?void 0x0:_0x51f5ae[_0x56949e(0x170)];Array[_0x56949e(0x35b)](_0xc8311e)&&_0xc8311e[_0x56949e(0x78)]&&this['_injector'][_0x56949e(0x348)](_0x265863)[_0x56949e(0x153)](_0x137748['id'],{'unitId':_0x44cd75,'subUnitId':_0x2b3e04,'selections':_0xc8311e});}};Ke=ir([ht(0x0,_0x321449(_0x313fa0)),ht(0x1,_0x56767e),ht(0x2,_0x375068)],Ke);const tt=_0x2d62b5('univer-pro.collaboration-client.single-active-unit-service');var js=(_0x288605=>(_0x288605[_0x288605['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x288605[_0x288605[_0x4c1f23(0xf3)]=0x1]=_0x4c1f23(0xf3),_0x288605))(js||{});const as=0x7530,cs=_0x4c1f23(0x324);class rr extends _0x22db72{constructor(){const _0x14493b=_0x4c1f23;super(),l(this,_0x14493b(0x96),_0x403f58['generateRandomId']()),l(this,'_selfUnitIDs',new Set()),l(this,_0x14493b(0x131),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x14493b(0x3ad),new Map()),l(this,_0x14493b(0x18c),new Map()),this[_0x14493b(0x34a)]();}[_0x4c1f23(0x1e4)](){const _0x3d96b7=_0x4c1f23;super['dispose'](),this[_0x3d96b7(0x3ad)][_0x3d96b7(0x100)]((_0xda1db8,_0x5bd452)=>this[_0x3d96b7(0xd9)](_0x5bd452)),this[_0x3d96b7(0xc1)]&&window[_0x3d96b7(0x17c)](this['_heartbeatTimer']);}[_0x4c1f23(0x187)](_0xca678a){const _0x506027=_0x4c1f23;return this[_0x506027(0x202)](_0xca678a)[_0x506027(0x1a7)](_0x1f43e4());}[_0x4c1f23(0x3f3)](_0x2ccbc8){const _0x37faca=_0x4c1f23;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x37faca(0x24f)][_0x37faca(0x2fb)](_0x2ccbc8),this[_0x37faca(0xdd)]({'type':0x0,'memberID':this[_0x37faca(0x96)],'unitIDs':[_0x2ccbc8],'isForwarded':!0x1});}[_0x4c1f23(0x251)](_0x47eceb){const _0x5a3ded=_0x4c1f23;this[_0x5a3ded(0x24f)][_0x5a3ded(0xd0)](_0x47eceb),this['_selfUnitIDs'][_0x5a3ded(0x151)]===0x0&&this['_heartbeatTimer']&&window[_0x5a3ded(0x17c)](this[_0x5a3ded(0xc1)]);}[_0x4c1f23(0x34a)](){const _0x4e2975=_0x4c1f23;this['disposeWithMe'](_0x5738c2(_0x1e2c02(window,'storage')[_0x4e2975(0x280)](_0x410abc=>{const _0x1cab54=_0x4e2975;if(_0x410abc[_0x1cab54(0x367)]!==cs||!_0x410abc[_0x1cab54(0x1e8)])return;const _0x5dc432=JSON[_0x1cab54(0x281)](_0x410abc[_0x1cab54(0x1e8)]);this[_0x1cab54(0x93)](_0x5dc432);}))),window['addEventListener'](_0x4e2975(0x3bc),()=>this[_0x4e2975(0xdd)]({'type':0x1,'memberID':this[_0x4e2975(0x96)],'unitIDs':Array[_0x4e2975(0x126)](this[_0x4e2975(0x24f)])}));}[_0x4c1f23(0x93)](_0x49046b){const _0x30e14e=_0x4c1f23;switch(_0x49046b[_0x30e14e(0x1d3)]){case 0x0:this[_0x30e14e(0x3b3)](_0x49046b);break;case 0x1:this[_0x30e14e(0x35f)](_0x49046b);break;case 0x2:this[_0x30e14e(0x11f)](_0x49046b);break;}}[_0x4c1f23(0x3b3)](_0x2a704d){const _0x1d7627=_0x4c1f23,{unitIDs:_0x46037c,memberID:_0x29b6b4,isForwarded:_0x256193}=_0x2a704d;_0x46037c[_0x1d7627(0x100)](_0x5d1cf2=>{const _0x494dd5=_0x1d7627;if(!_0x256193&&this[_0x494dd5(0x131)]['has'](_0x5d1cf2)&&this[_0x494dd5(0x202)](_0x5d1cf2)[_0x494dd5(0x23d)](0x1),!this['_unitOnClients'][_0x494dd5(0x20e)](_0x5d1cf2)||!this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)[_0x494dd5(0x20e)](_0x29b6b4)){const _0x2fc01d=this[_0x494dd5(0x131)][_0x494dd5(0x348)](_0x5d1cf2)||new Set();_0x2fc01d[_0x494dd5(0x2fb)](_0x29b6b4),this[_0x494dd5(0x131)][_0x494dd5(0x329)](_0x5d1cf2,_0x2fc01d),this[_0x494dd5(0x257)](_0x29b6b4);}}),_0x256193||this[_0x1d7627(0xdd)]({'type':0x0,'memberID':this[_0x1d7627(0x96)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x4c1f23(0x257)](_0x47bf1f){const _0x1da06a=_0x4c1f23;this[_0x1da06a(0xd9)](_0x47bf1f);const _0x1c1cf9=window[_0x1da06a(0x3cc)](()=>{const _0x3117f9=_0x1da06a;this[_0x3117f9(0x131)][_0x3117f9(0x100)](_0x19b342=>{const _0x8091f3=_0x3117f9;_0x19b342[_0x8091f3(0xd0)](_0x47bf1f);});},as*0x2);this['_clearOtherTimers'][_0x1da06a(0x329)](_0x47bf1f,_0x1c1cf9);}[_0x4c1f23(0xd9)](_0x549a9f){const _0x43710a=_0x4c1f23;if(this[_0x43710a(0x3ad)][_0x43710a(0x20e)](_0x549a9f)){const _0x10959f=this['_clearOtherTimers'][_0x43710a(0x348)](_0x549a9f);_0x10959f&&window[_0x43710a(0x314)](_0x10959f),this[_0x43710a(0x3ad)]['set'](_0x549a9f,null);}}[_0x4c1f23(0x35f)](_0x445bd5){const _0x859d7e=_0x4c1f23,{memberID:_0x571eed,unitIDs:_0x131fd2}=_0x445bd5;_0x131fd2[_0x859d7e(0x100)](_0x13a59b=>{const _0x174733=_0x859d7e;var _0x1fd2d4;const _0x321f16=this[_0x174733(0x131)][_0x174733(0x348)](_0x13a59b);_0x321f16&&(_0x321f16[_0x174733(0xd0)](_0x571eed),(_0x1fd2d4=this[_0x174733(0x202)](_0x13a59b))==null||_0x1fd2d4[_0x174733(0x23d)](_0x321f16[_0x174733(0x151)]===0x0?0x0:0x1));}),this[_0x859d7e(0xd9)](_0x571eed);}[_0x4c1f23(0x11f)](_0x25fd20){const _0x16182f=_0x4c1f23;this[_0x16182f(0x257)](_0x25fd20[_0x16182f(0xbc)]);}['_send'](_0x2b090e){const _0x46fbcd=_0x4c1f23;localStorage[_0x46fbcd(0x2f8)](cs,JSON[_0x46fbcd(0x360)](_0x2b090e));}[_0x4c1f23(0xc3)](){const _0x407625=_0x4c1f23;this['_heartbeatTimer']=window[_0x407625(0x1af)](()=>{const _0x231491=_0x407625;this[_0x231491(0xdd)]({'type':0x2,'memberID':this[_0x231491(0x96)]});},as);}[_0x4c1f23(0x202)](_0x4064ad){const _0x38331f=_0x4c1f23;return this[_0x38331f(0x18c)]['has'](_0x4064ad)||this[_0x38331f(0x18c)][_0x38331f(0x329)](_0x4064ad,new _0x2ec58d(0x0)),this[_0x38331f(0x18c)][_0x38331f(0x348)](_0x4064ad);}}function xs(_0x39c3bb){const _0x42d003=_0x4c1f23;let _0x58f14c='';for(const _0x9ff902 of _0x39c3bb){const {startOffset:_0x27d74b,endOffset:_0x169ca0,isActive:_0x186016}=_0x9ff902;_0x58f14c[_0x42d003(0x78)]&&(_0x58f14c+=','),_0x58f14c+=_0x27d74b+':'+_0x169ca0+':'+(_0x186016?'1':'0');}return _0x58f14c;}function or(_0x3096ca){const _0x3dd455=_0x4c1f23,_0x4c94a8=_0x3096ca['split'](','),_0x581272=[];for(const _0x47d3ca of _0x4c94a8){const [_0x133341,_0x138120,_0x31eb6a]=_0x47d3ca[_0x3dd455(0x236)](':');_0x581272['push']({'startOffset':Number(_0x133341),'endOffset':Number(_0x138120),'collapsed':_0x133341===_0x138120,'isActive':_0x31eb6a==='1'});}return _0x581272[_0x3dd455(0x130)](_0x49bb6c=>_0x49bb6c[_0x3dd455(0x2a2)])||(_0x581272[0x0]['isActive']=!0x0),_0x581272;}class Bt extends _0x2dacfb{constructor(){const _0x594772=_0x4c1f23;super(...arguments),l(this,'_collabCursorState$',new _0x2ec58d(null)),l(this,_0x594772(0x2f5),this[_0x594772(0x356)][_0x594772(0xfc)]());}[_0x4c1f23(0x1f8)](_0x8c4037){const _0x2f9923=_0x4c1f23,{unitID:_0x329e02,memberID:_0x8bb08f,textRanges:_0x74bf6c}=_0x8c4037,_0xa46049=xs(_0x74bf6c),_0x52590d={'unitID':_0x329e02,'memberID':_0x8bb08f,'selection':_0xa46049};this[_0x2f9923(0x356)][_0x2f9923(0x23d)](_0x52590d);}}var ar=Object[_0x4c1f23(0x2e9)],cr=Object[_0x4c1f23(0x133)],hr=(_0x3fd7ed,_0x672d69,_0xf9fccb,_0x249774)=>{const _0x5d043f=_0x4c1f23;for(var _0x2e8305=_0x249774>0x1?void 0x0:_0x249774?cr(_0x672d69,_0xf9fccb):_0x672d69,_0x31f8e1=_0x3fd7ed[_0x5d043f(0x78)]-0x1,_0x5c86eb;_0x31f8e1>=0x0;_0x31f8e1--)(_0x5c86eb=_0x3fd7ed[_0x31f8e1])&&(_0x2e8305=(_0x249774?_0x5c86eb(_0x672d69,_0xf9fccb,_0x2e8305):_0x5c86eb(_0x2e8305))||_0x2e8305);return _0x249774&&_0x2e8305&&ar(_0x672d69,_0xf9fccb,_0x2e8305),_0x2e8305;},hs=(_0x20ee1b,_0x355f26)=>(_0x5ab485,_0x2c4ce1)=>_0x355f26(_0x5ab485,_0x2c4ce1,_0x20ee1b);let Xe=class{constructor(_0x263a28,_0x4c6b35){const _0x285ead=_0x4c1f23;this[_0x285ead(0x162)]=_0x263a28,this[_0x285ead(0x2ce)]=_0x4c6b35;}[_0x4c1f23(0x34c)](_0x4d59d3){const _0x242d05=_0x4c1f23;var _0x15128c;const _0x52f9d0=this[_0x242d05(0x162)][_0x242d05(0x348)](_0x322779),_0x5dfba9=(_0x15128c=_0x52f9d0[_0x242d05(0x2bd)]())!=null?_0x15128c:[];if(_0x5dfba9['length']===0x0)return;const _0x1d9535=[{'id':_0x242d05(0x108),'params':{'unitId':_0x4d59d3[_0x242d05(0x1f3)],'actions':null,'textRanges':_0x5dfba9}}],_0x3d677b=this[_0x242d05(0x2ce)][_0x242d05(0xbf)](_0x4d59d3,_0x1d9535);if(!_0x8db330(_0x3d677b))throw _0x3d677b[_0x242d05(0x17a)];const _0x196680=_0x3d677b['m2Prime'][0x0]['params'][_0x242d05(0x125)];Array[_0x242d05(0x35b)](_0x196680)&&_0x196680[_0x242d05(0x78)]&&_0x52f9d0[_0x242d05(0x297)](_0x196680,!0x1);}};Xe=hr([hs(0x0,_0x321449(_0x313fa0)),hs(0x1,_0x56767e)],Xe);const lr=new Set([_0x3f0b63['id']]);function ls(_0x435cf6,_0x53188f,_0x13da7a,_0x4867dc,_0x275391){const _0xa10d72=_0x4c1f23;var _0x5ec821,_0x2ffc1b,_0x316327,_0xf9cb50;const _0x59a4b0=[];for(const _0xf7921b of _0x435cf6)if(lr[_0xa10d72(0x20e)](_0xf7921b['id'])){if(_0x59a4b0['length']>0x0)break;_0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);break;}else _0x59a4b0[_0xa10d72(0x27c)](_0xf7921b);const _0x4c56ce=(_0x2ffc1b=(_0x5ec821=_0x275391[_0xa10d72(0x16d)]())==null?void 0x0:_0x5ec821[_0xa10d72(0x1e6)])!=null?_0x2ffc1b:_0xa10d72(0x30f),_0x5c4e48=(_0xf9cb50=(_0x316327=_0x275391['getCurrentUser']())==null?void 0x0:_0x316327[_0xa10d72(0xbc)])!=null?_0xf9cb50:_0xa10d72(0x30f);return{'changeset':{'unitID':_0x53188f,'type':_0x53eda4(_0x13da7a[_0xa10d72(0x27b)](_0x53188f)),'baseRev':_0x4867dc[_0xa10d72(0x189)](_0x53188f),'revision':0x0,'userID':_0x4c56ce,'memberID':_0x5c4e48,'mutations':_0x59a4b0},'pendingMutations':_0x435cf6[_0xa10d72(0x29d)](_0x59a4b0[_0xa10d72(0x78)])};}function _r(_0x166621,_0x3e6f54,_0x16fa09,_0x594510,_0xe78855){const _0x355e8e=_0x4c1f23;var _0x2df672,_0x49800b,_0x31b858,_0x2bcbf8;const _0x2b199b=[_0x166621[_0x355e8e(0x3cd)]((_0x27d2f2,_0x182e12)=>{const _0x4a48cb=_0x355e8e;var _0x2218b1;const {id:_0x14919a}=_0x27d2f2,{id:_0x5ea084,type:_0x2173cf}=_0x182e12,_0x477a15=(_0x2218b1=_0x27d2f2['params'])!=null?_0x2218b1:{'actions':null},_0x1b0ff5=_0x182e12[_0x4a48cb(0x364)];if(_0x14919a&&_0x14919a!==_0x5ea084)throw new Error(_0x4a48cb(0x260)+_0x14919a+'\x20-\x20'+_0x5ea084+'.');return{..._0x27d2f2,'id':_0x5ea084,'type':_0x2173cf,'params':{'unitId':_0x1b0ff5['unitId'],'textRanges':_0x1b0ff5[_0x4a48cb(0x125)],'actions':_0x107e10[_0x4a48cb(0x142)](_0x477a15[_0x4a48cb(0x33d)],_0x1b0ff5[_0x4a48cb(0x33d)])}};},{})],_0x4e125d=(_0x49800b=(_0x2df672=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x2df672['userID'])!=null?_0x49800b:_0x355e8e(0x30f),_0x37828c=(_0x2bcbf8=(_0x31b858=_0xe78855[_0x355e8e(0x16d)]())==null?void 0x0:_0x31b858['memberID'])!=null?_0x2bcbf8:_0x355e8e(0x30f);return{'changeset':{'unitID':_0x3e6f54,'type':_0x53eda4(_0x16fa09[_0x355e8e(0x27b)](_0x3e6f54)),'baseRev':_0x594510[_0x355e8e(0x189)](_0x3e6f54),'revision':0x0,'userID':_0x4e125d,'memberID':_0x37828c,'mutations':_0x2b199b},'pendingMutations':[]};}const ur={'id':_0x489e71['id'],'type':_0xcd477b[_0x4c1f23(0xdf)],'params':{}};var dr=Object['defineProperty'],fr=Object[_0x4c1f23(0x133)],le=(_0x182cf5,_0x5dd82,_0x3e35fc,_0x13a299)=>{const _0x42dbcf=_0x4c1f23;for(var _0x54fbd0=_0x13a299>0x1?void 0x0:_0x13a299?fr(_0x5dd82,_0x3e35fc):_0x5dd82,_0x57aa36=_0x182cf5[_0x42dbcf(0x78)]-0x1,_0x51700b;_0x57aa36>=0x0;_0x57aa36--)(_0x51700b=_0x182cf5[_0x57aa36])&&(_0x54fbd0=(_0x13a299?_0x51700b(_0x5dd82,_0x3e35fc,_0x54fbd0):_0x51700b(_0x54fbd0))||_0x54fbd0);return _0x13a299&&_0x54fbd0&&dr(_0x5dd82,_0x3e35fc,_0x54fbd0),_0x54fbd0;},m=(_0x267d69,_0x23c0ce)=>(_0x3ed41b,_0x5575ab)=>_0x23c0ce(_0x3ed41b,_0x5575ab,_0x267d69),w=(_0x27f830=>(_0x27f830[_0x4c1f23(0x3df)]=_0x4c1f23(0x36b),_0x27f830[_0x4c1f23(0x316)]=_0x4c1f23(0x2d0),_0x27f830[_0x4c1f23(0x3a7)]='pending',_0x27f830[_0x4c1f23(0x1ca)]=_0x4c1f23(0x369),_0x27f830['AWAITING_WITH_PENDING']=_0x4c1f23(0x2b3),_0x27f830[_0x4c1f23(0x1c6)]=_0x4c1f23(0x1dc),_0x27f830[_0x4c1f23(0x12a)]=_0x4c1f23(0x2fd),_0x27f830['OFFLINE']=_0x4c1f23(0x209),_0x27f830))(w||{});class _e{constructor(_0x494ea9,_0x904a6b,_0x37a493,_0x488a08,_0x4a673e,_0x41a300,_0x332bbe,_0x5053dd,_0x2d46b2){const _0x49ccec=_0x4c1f23;l(this,_0x49ccec(0x32e),null),l(this,_0x49ccec(0x14c),[]),(this['unitID']=_0x494ea9,this[_0x49ccec(0x1d3)]=_0x904a6b,this[_0x49ccec(0x34b)]=_0x4a673e,this[_0x49ccec(0x1ef)]=_0x41a300,this[_0x49ccec(0x3ce)]=_0x332bbe,this['_revisionService']=_0x5053dd,this[_0x49ccec(0xd7)]=_0x2d46b2,this[_0x49ccec(0x32e)]=_0x37a493,this[_0x49ccec(0x14c)]=_0x488a08);}[_0x4c1f23(0x3c6)](_0x5267b2){const _0x18004a=_0x4c1f23,_0x537c78=this[_0x18004a(0x396)][_0x18004a(0x189)](this[_0x18004a(0x1f3)]);return _0x5267b2[_0x18004a(0x3d6)]>_0x537c78+0x1?(this[_0x18004a(0x34b)][_0x18004a(0x31e)]({'from':_0x537c78,'to':_0x5267b2['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x2ad504){const _0x2d94b5=_0x4c1f23;this['_undoRedoService'][_0x2d94b5(0x2bc)](this[_0x2d94b5(0x1f3)],_0x2ad504);}[_0x4c1f23(0x346)](_0x236a56){const _0x57d4b5=_0x4c1f23;var _0x4d7582,_0x522483;(_0x522483=(_0x4d7582=this[_0x57d4b5(0x34b)])[_0x57d4b5(0x1c1)])==null||_0x522483[_0x57d4b5(0x3af)](_0x4d7582,_0x236a56);}[_0x4c1f23(0x32f)](_0x46ba72){const _0x4d5cb6=_0x4c1f23;var _0x18255a,_0x2afd71;return(_0x2afd71=(_0x18255a=this[_0x4d5cb6(0x34b)])[_0x4d5cb6(0x200)])==null?void 0x0:_0x2afd71['call'](_0x18255a,_0x46ba72);}[_0x4c1f23(0x2df)](_0xb7ca14){const _0x421973=_0x4c1f23;var _0xd7e3e2,_0x2722ba,_0x57efcb;return(_0x57efcb=(_0x2722ba=(_0xd7e3e2=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2722ba[_0x421973(0x3af)](_0xd7e3e2,_0xb7ca14))!=null?_0x57efcb:_0xb7ca14;}[_0x4c1f23(0x3d5)](_0x5e7156){const _0x32f894=_0x4c1f23;var _0x2a543c,_0x2f649e;if(this[_0x32f894(0x1d3)]===H['UNIVER_DOC']){const {unitID:_0x10ffd1,mutations:_0x1de38b,memberID:_0x5811f5}=_0x5e7156,_0x8ad858=_0x1de38b[0x0][_0x32f894(0x364)]['textRanges'];Array[_0x32f894(0x35b)](_0x8ad858)&&_0x8ad858['length']>0x0&&((_0x2f649e=(_0x2a543c=this[_0x32f894(0x34b)])[_0x32f894(0x1e7)])==null||_0x2f649e[_0x32f894(0x3af)](_0x2a543c,{'unitID':_0x10ffd1,'memberID':_0x5811f5,'textRanges':_0x8ad858}));}}[_0x4c1f23(0x32a)](){const _0x774252=_0x4c1f23;this[_0x774252(0xd7)][_0x774252(0x377)](this['unitID'],this[_0x774252(0x1d3)],this[_0x774252(0x32e)],this[_0x774252(0x14c)]);}['_getCurrentRevision'](){const _0xa461ab=_0x4c1f23;return this[_0xa461ab(0x396)]['getCurrentRevOfUnit'](this[_0xa461ab(0x1f3)]);}[_0x4c1f23(0x3c1)](){const _0xe8112e=_0x4c1f23;this['_revisionService'][_0xe8112e(0x193)](this['unitID']);}[_0x4c1f23(0x3aa)](_0x3ac055){const _0x2ac698=_0x4c1f23;var _0x3757d4;const _0x3d9b45=this[_0x2ac698(0x2df)](_0x3ac055),_0x636220=_0x2aed7d(_0x3d9b45['mutations'],this[_0x2ac698(0x1ef)],{'fromCollab':!0x0});if(!_0x636220[_0x2ac698(0x2c5)])throw _0x636220[_0x2ac698(0x17a)]instanceof Error?_0x636220[_0x2ac698(0x17a)]:new Error((_0x3757d4=_0x636220[_0x2ac698(0x17a)])!=null?_0x3757d4:_0x2ac698(0x1cc));this[_0x2ac698(0x32f)](_0x3d9b45),this[_0x2ac698(0x12e)](_0x3ac055),this[_0x2ac698(0x346)](_0x3d9b45),this['_syncEditingCollabCursor'](_0x3d9b45),this[_0x2ac698(0x3c1)]();}}let Se=class extends _e{constructor(_0x1cf2d6,_0x550005,_0x11445d,_0x122506,_0x1db12d,_0x35ed5d,_0x5a59cc,_0x3f44c0,_0xbc6877,_0x3af6d9){const _0x4c8c97=_0x4c1f23;super(_0x1cf2d6,_0x550005,null,[],_0x11445d,_0x3f44c0,_0x5a59cc,_0x122506,_0x1db12d),l(this,_0x4c8c97(0xad),'synced'),(this['_injector']=_0x35ed5d,this[_0x4c8c97(0x128)]=_0xbc6877,this[_0x4c8c97(0x2ce)]=_0x3af6d9);}[_0x4c1f23(0x3ef)](_0x20102e){const _0x267814=_0x4c1f23,_0x5010db=this['_injector'][_0x267814(0x171)](K,this[_0x267814(0x1f3)],this[_0x267814(0x1d3)],[_0x20102e],this[_0x267814(0x34b)]);return _0x5010db[_0x267814(0x298)](),_0x5010db[_0x267814(0x32a)](),_0x5010db;}[_0x4c1f23(0x10c)](_0x5a8739){const _0x2321ff=_0x4c1f23;if(this['_checkMissing'](_0x5a8739))return this['_injector'][_0x2321ff(0x171)](k,this[_0x2321ff(0x1f3)],this[_0x2321ff(0x1d3)],null,[],null,[_0x5a8739],this[_0x2321ff(0x34b)]);try{const _0x52816e=this['_transformService']['transformMutationsWithChangeset'](_0x5a8739,[ur]);if(_0x8db330(_0x52816e)){const {c1Prime:_0x71a0e5}=_0x52816e;return this[_0x2321ff(0x3aa)](_0x71a0e5),this;}throw _0x52816e[_0x2321ff(0x17a)];}catch(_0x91a9e4){return this[_0x2321ff(0x128)][_0x2321ff(0x17a)](_0x91a9e4),this[_0x2321ff(0x222)](!0x1);}}[_0x4c1f23(0x222)](_0x2d7205){const _0x221b40=_0x4c1f23;return this[_0x221b40(0x162)][_0x221b40(0x171)](Q,this[_0x221b40(0x1f3)],this[_0x221b40(0x1d3)],null,[],this['_handler'],_0x2d7205);}[_0x4c1f23(0x357)](){const _0x1b4a1f=_0x4c1f23;throw new Error(_0x1b4a1f(0x2c2));}[_0x4c1f23(0xf4)](){const _0x3eaf62=_0x4c1f23;throw new Error(_0x3eaf62(0x23f));}[_0x4c1f23(0x385)](){const _0x2e0343=_0x4c1f23;return this[_0x2e0343(0x162)][_0x2e0343(0x171)](ee,this['unitID'],this[_0x2e0343(0x1d3)],null,[],this[_0x2e0343(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x3b9aa9=_0x4c1f23;throw new Error(_0x3b9aa9(0x3ec));}[_0x4c1f23(0xff)](){const _0x501cdc=_0x4c1f23,_0x5f5b4a=this['_revisionService'][_0x501cdc(0x189)](this['unitID']);return this[_0x501cdc(0x34b)][_0x501cdc(0x31e)]({'from':_0x5f5b4a,'to':0x0}),this[_0x501cdc(0x162)][_0x501cdc(0x171)](k,this[_0x501cdc(0x1f3)],this[_0x501cdc(0x1d3)],null,[],null,[],this[_0x501cdc(0x34b)]);}};Se=le([m(0x3,_0x321449(_0x5d1c03)),m(0x4,_0x321449(D)),m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x2fbed3),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e)],Se);let K=class extends _e{constructor(_0x151b5d,_0x4cee19,_0x4c0f62,_0x3faa6d,_0x4ee8e7,_0x28e173,_0x2c39e3,_0x10ce5e,_0x485fb9,_0x4fdcb0,_0x5dbadd,_0x524a88,_0x1edbe5,_0x3aae5a){const _0x334bda=_0x4c1f23;super(_0x151b5d,_0x4cee19,null,_0x4c0f62,_0x3faa6d,_0x4fdcb0,_0x3aae5a,_0x28e173,_0x2c39e3),l(this,_0x334bda(0xad),'pending'),l(this,_0x334bda(0xc7),null),l(this,'_sendingTimer',null),(this[_0x334bda(0x162)]=_0x4ee8e7,this[_0x334bda(0x2ed)]=_0x10ce5e,this['_logService']=_0x485fb9,this[_0x334bda(0x132)]=_0x5dbadd,this[_0x334bda(0x2ce)]=_0x524a88,this['_univerInstanceService']=_0x1edbe5);}[_0x4c1f23(0x3ef)](_0x2f2db1){const _0x4424b6=_0x4c1f23;return this[_0x4424b6(0x14c)][_0x4424b6(0x27c)](_0x2f2db1),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x31c93b){const _0x3616d8=_0x4c1f23;if(this[_0x3616d8(0x3c6)](_0x31c93b))return this[_0x3616d8(0x387)](),this[_0x3616d8(0x162)][_0x3616d8(0x171)](k,this[_0x3616d8(0x1f3)],this[_0x3616d8(0x1d3)],null,this['_pendingMutations'],null,[_0x31c93b],this['_handler']);try{const _0x2326fa=this['_transformService'][_0x3616d8(0xbf)](_0x31c93b,this[_0x3616d8(0x14c)]);if(_0x8db330(_0x2326fa)){const {c1Prime:_0x5660bc,m2Prime:_0x4a40cc}=_0x2326fa;this[_0x3616d8(0x3aa)](_0x5660bc);const _0x4aac19=this[_0x3616d8(0x162)][_0x3616d8(0x171)](K,this['unitID'],this[_0x3616d8(0x1d3)],_0x4a40cc,this[_0x3616d8(0x34b)]);return this[_0x3616d8(0x387)](),_0x4aac19[_0x3616d8(0x298)](this[_0x3616d8(0xc7)]?Math[_0x3616d8(0x1e9)](0x0,new Date()[_0x3616d8(0x14f)]()-this[_0x3616d8(0xc7)]):this[_0x3616d8(0x3f4)]()),_0x4aac19;}throw _0x2326fa[_0x3616d8(0x17a)];}catch(_0x15bea2){return this[_0x3616d8(0x128)][_0x3616d8(0x17a)](_0x15bea2),this[_0x3616d8(0x222)](!0x1);}}[_0x4c1f23(0x357)](){const _0x5ba2ca=_0x4c1f23;throw new Error(_0x5ba2ca(0xf5));}[_0x4c1f23(0xf4)](){const _0x193912=_0x4c1f23;throw new Error(_0x193912(0x391));}[_0x4c1f23(0x385)](){const _0x26f02d=_0x4c1f23;return this[_0x26f02d(0x387)](),this[_0x26f02d(0x162)][_0x26f02d(0x171)](ee,this[_0x26f02d(0x1f3)],this[_0x26f02d(0x1d3)],null,this[_0x26f02d(0x14c)],this['_handler']);}['toggleOnline'](){return this;}[_0x4c1f23(0x298)](_0x1c115e){const _0x18a12b=_0x4c1f23,_0x4e22d3=_0x1c115e!=null?_0x1c115e:this[_0x18a12b(0x3f4)]();this[_0x18a12b(0xc7)]=new Date()['getTime'](),this[_0x18a12b(0x3dc)]=window[_0x18a12b(0x3cc)](()=>{const _0x1c147f=_0x18a12b;this[_0x1c147f(0x387)]();let _0x412c3d=null;switch(this[_0x1c147f(0x1d3)]){case H[_0x1c147f(0x10d)]:{_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}case H[_0x1c147f(0x11d)]:{this[_0x1c147f(0x14c)][_0x1c147f(0x158)](_0xf1e36d=>_0xf1e36d['id']===_0x1b2745['id'])?_0x412c3d=_r(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this[_0x1c147f(0x310)],this['_revisionService'],this[_0x1c147f(0x2ed)]):_0x412c3d=ls(this[_0x1c147f(0x14c)],this[_0x1c147f(0x1f3)],this['_univerInstanceService'],this[_0x1c147f(0x396)],this[_0x1c147f(0x2ed)]);break;}default:throw new Error(_0x1c147f(0xb3)+this[_0x1c147f(0x1d3)]+_0x1c147f(0x2e7));}const {changeset:_0xc35701,pendingMutations:_0x3c947c}=_0x412c3d;this[_0x1c147f(0x34b)][_0x1c147f(0x2d4)](_0xc35701);const _0x5a2105=_0x3c947c[_0x1c147f(0x78)]?this['_injector'][_0x1c147f(0x171)](X,this['unitID'],this[_0x1c147f(0x1d3)],_0xc35701,_0x3c947c,this[_0x1c147f(0x34b)]):this[_0x1c147f(0x162)][_0x1c147f(0x171)](Z,this[_0x1c147f(0x1f3)],this[_0x1c147f(0x1d3)],_0xc35701,this[_0x1c147f(0x34b)]);_0x5a2105[_0x1c147f(0x32a)](),this[_0x1c147f(0x34b)][_0x1c147f(0x1bc)](this,_0x5a2105);},_0x4e22d3);}['_getSendChangesetTimeout'](){const _0x499e63=_0x4c1f23;var _0x39679b;const _0x15c0be=this[_0x499e63(0x132)][_0x499e63(0x111)](L);return(_0x39679b=_0x15c0be==null?void 0x0:_0x15c0be['sendChangesetTimeout'])!=null?_0x39679b:gn;}['resend'](){const _0x30c51d=_0x4c1f23;throw new Error(_0x30c51d(0x362));}['_clearScheduledTask'](){const _0xcf5880=_0x4c1f23;this[_0xcf5880(0x3dc)]!=null&&(clearTimeout(this[_0xcf5880(0x3dc)]),this[_0xcf5880(0x3dc)]=null);}[_0x4c1f23(0x222)](_0x1e9691){const _0x3c3da6=_0x4c1f23;return this[_0x3c3da6(0x387)](),this['_injector'][_0x3c3da6(0x171)](Q,this[_0x3c3da6(0x1f3)],this[_0x3c3da6(0x1d3)],null,this[_0x3c3da6(0x14c)],this[_0x3c3da6(0x34b)],_0x1e9691);}};K=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x321449(ae)),m(0x8,_0x50688a),m(0x9,_0x265863),m(0xa,_0x4d21d1),m(0xb,_0x56767e),m(0xc,_0x375068),m(0xd,_0x2fbed3)],K);let Z=class extends _e{constructor(_0x22badc,_0x43dd7c,_0x1b7796,_0x1b0193,_0x32cb2e,_0xc2804a,_0x3c31cb,_0xbd5e51,_0x38ef78,_0x5b2a57,_0x28e3db){const _0xc9c97a=_0x4c1f23;super(_0x22badc,_0x43dd7c,_0x1b7796,[],_0x1b0193,_0xbd5e51,_0x28e3db,_0xc2804a,_0x3c31cb),l(this,_0xc9c97a(0xad),_0xc9c97a(0x369)),(this[_0xc9c97a(0x162)]=_0x32cb2e,this[_0xc9c97a(0x128)]=_0x38ef78,this[_0xc9c97a(0x2ce)]=_0x5b2a57);}[_0x4c1f23(0x3ef)](_0x41cab8){const _0x4b6238=_0x4c1f23,_0x47bdc7=this[_0x4b6238(0x162)]['createInstance'](X,this[_0x4b6238(0x1f3)],this['type'],this['_awaitingChangeset'],[_0x41cab8],this[_0x4b6238(0x34b)]);return _0x47bdc7['_updateLocalCache'](),_0x47bdc7;}[_0x4c1f23(0x10c)](_0x4fe864){const _0x11695c=_0x4c1f23;if(this[_0x11695c(0x3c6)](_0x4fe864))return this[_0x11695c(0x162)]['createInstance'](k,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],this[_0x11695c(0x32e)],[],null,[_0x4fe864],this[_0x11695c(0x34b)]);try{const _0x5e1b8d=this[_0x11695c(0x2ce)][_0x11695c(0x3a0)]([_0x4fe864],[this[_0x11695c(0x32e)]],!0x1);if(_0x428767(_0x5e1b8d)){const {c1Prime:_0x501c68,c2Prime:_0x3dd012}=_0x5e1b8d;this[_0x11695c(0x3aa)](_0x501c68[0x0]),_0x3dd012[0x0][_0x11695c(0x1fc)]=this[_0x11695c(0x309)]();const _0x560cbd=this[_0x11695c(0x162)][_0x11695c(0x171)](Z,this[_0x11695c(0x1f3)],this[_0x11695c(0x1d3)],_0x3dd012[0x0],this[_0x11695c(0x34b)]);return _0x560cbd[_0x11695c(0x32a)](),_0x560cbd;}return this[_0x11695c(0x222)](!0x1);}catch(_0x31f2f2){return this[_0x11695c(0x128)][_0x11695c(0x17a)](_0x31f2f2),this[_0x11695c(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x325984){const _0x164750=_0x4c1f23,_0x341dbe=this[_0x164750(0x396)]['getCurrentRevOfUnit'](this[_0x164750(0x1f3)]);if(_0x325984['revision']<_0x341dbe-0x1)return this;if(this['_checkMissing'](_0x325984))return this[_0x164750(0x162)][_0x164750(0x171)](k,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],null,[],this['_awaitingChangeset'],[],this[_0x164750(0x34b)]);this['_incrementRevisionNumber']();const _0x4c3399=this['_injector'][_0x164750(0x171)](Se,this[_0x164750(0x1f3)],this[_0x164750(0x1d3)],this['_handler']);return _0x4c3399[_0x164750(0x32a)](),_0x4c3399;}[_0x4c1f23(0xf4)](_0x3e9b1a){const _0x23a3a3=_0x4c1f23;return this[_0x23a3a3(0x222)](!!(_0x3e9b1a!=null&&_0x3e9b1a[_0x23a3a3(0x3b9)]));}['toggleOffline'](){const _0x437ade=_0x4c1f23;return this[_0x437ade(0x162)][_0x437ade(0x171)](ee,this[_0x437ade(0x1f3)],this[_0x437ade(0x1d3)],this[_0x437ade(0x32e)],[],this[_0x437ade(0x34b)]);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x29eba2=_0x4c1f23;this[_0x29eba2(0x34b)][_0x29eba2(0x2d4)](this[_0x29eba2(0x32e)]);}[_0x4c1f23(0x222)](_0xe7903f){const _0x4e2cc5=_0x4c1f23;return this[_0x4e2cc5(0x162)][_0x4e2cc5(0x171)](Q,this[_0x4e2cc5(0x1f3)],this['type'],this[_0x4e2cc5(0x32e)],[],this[_0x4e2cc5(0x34b)],_0xe7903f);}};Z=le([m(0x4,_0x321449(_0x313fa0)),m(0x5,_0x321449(_0x5d1c03)),m(0x6,_0x321449(D)),m(0x7,_0x265863),m(0x8,_0x50688a),m(0x9,_0x56767e),m(0xa,_0x2fbed3)],Z);let X=class extends _e{constructor(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x4b7607,_0x358856,_0x14fd4f,_0x400910,_0x479d5b,_0x256486,_0x451dc4){const _0x248cdb=_0x4c1f23;super(_0x4c0f75,_0x26c96b,_0x5f3f3a,_0x17bb8f,_0xf7a19c,_0x400910,_0x451dc4,_0x358856,_0x14fd4f),l(this,_0x248cdb(0xad),_0x248cdb(0x2b3)),(this[_0x248cdb(0x162)]=_0x4b7607,this[_0x248cdb(0x128)]=_0x479d5b,this[_0x248cdb(0x2ce)]=_0x256486);}[_0x4c1f23(0x3ef)](_0x8c8974){const _0x2852e4=_0x4c1f23;return this[_0x2852e4(0x14c)]['push'](_0x8c8974),this;}[_0x4c1f23(0x10c)](_0x32446f){const _0x258c2f=_0x4c1f23;if(this['_checkMissing'](_0x32446f))return this[_0x258c2f(0x162)]['createInstance'](k,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],this[_0x258c2f(0x32e)],this[_0x258c2f(0x14c)],null,[_0x32446f],this[_0x258c2f(0x34b)]);try{const _0x43d26b=this['_transformService'][_0x258c2f(0x3a0)]([_0x32446f],[this[_0x258c2f(0x32e)]],!0x1);if(_0x428767(_0x43d26b)){const {c1Prime:_0x350c09,c2Prime:_0x3d20f3}=_0x43d26b,_0x46e6c3=this['_transformService'][_0x258c2f(0xbf)](_0x350c09[0x0],this[_0x258c2f(0x14c)]);if(_0x8db330(_0x46e6c3)){const {c1Prime:_0x461dfc,m2Prime:_0x391063}=_0x46e6c3;return this['_executeRemoteChangeset'](_0x461dfc),_0x3d20f3[0x0]['baseRev']=this[_0x258c2f(0x309)](),this['_injector'][_0x258c2f(0x171)](X,this[_0x258c2f(0x1f3)],this[_0x258c2f(0x1d3)],_0x3d20f3[0x0],_0x391063,this[_0x258c2f(0x34b)]);}throw _0x46e6c3[_0x258c2f(0x17a)];}throw _0x43d26b[_0x258c2f(0x17a)];}catch(_0x22473e){return this[_0x258c2f(0x128)]['error'](_0x22473e),this[_0x258c2f(0x222)](!0x1);}}[_0x4c1f23(0x357)](_0x3832dc){const _0x57ff09=_0x4c1f23;if(this[_0x57ff09(0x3c6)](_0x3832dc))return this[_0x57ff09(0x162)][_0x57ff09(0x171)](k,this['unitID'],this[_0x57ff09(0x1d3)],null,this[_0x57ff09(0x14c)],this['_awaitingChangeset'],[],this['_handler']);this[_0x57ff09(0x3c1)]();const _0x4311ee=this['_injector'][_0x57ff09(0x171)](K,this[_0x57ff09(0x1f3)],this[_0x57ff09(0x1d3)],this[_0x57ff09(0x14c)],this['_handler']);return _0x4311ee[_0x57ff09(0x298)](),_0x4311ee[_0x57ff09(0x32a)](),_0x4311ee;}[_0x4c1f23(0xf4)](_0x644362){const _0x547a13=_0x4c1f23;return this[_0x547a13(0x222)](!!(_0x644362!=null&&_0x644362['isPermissionRej']));}[_0x4c1f23(0x385)](){const _0x3d26c6=_0x4c1f23;return this[_0x3d26c6(0x162)][_0x3d26c6(0x171)](ee,this[_0x3d26c6(0x1f3)],this[_0x3d26c6(0x1d3)],this[_0x3d26c6(0x32e)],this['_pendingMutations'],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}['resend'](){const _0x527fdf=_0x4c1f23;this[_0x527fdf(0x34b)][_0x527fdf(0x2d4)](this[_0x527fdf(0x32e)]);}[_0x4c1f23(0x222)](_0x4e9a3c){const _0x192af2=_0x4c1f23;return this[_0x192af2(0x162)][_0x192af2(0x171)](Q,this[_0x192af2(0x1f3)],this[_0x192af2(0x1d3)],null,this[_0x192af2(0x14c)],this['_handler'],_0x4e9a3c);}};X=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x50688a),m(0xa,_0x56767e),m(0xb,_0x2fbed3)],X);let Q=class extends _e{constructor(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x293360=!0x1,_0x4ec3b6,_0x568959,_0x54ec88,_0x214168,_0x5a20f2,_0x3cd3a0,_0x2e3734){const _0x129530=_0x4c1f23;super(_0x2b2b14,_0x57c442,_0x4c3e32,_0x39311f,_0x21395c,_0x568959,_0x54ec88,_0x5a20f2,_0x214168),l(this,_0x129530(0xad),_0x129530(0x2fd)),(this[_0x129530(0x2cd)]=_0x293360,this[_0x129530(0x15c)]=_0x4ec3b6,this['_localeService']=_0x3cd3a0,this[_0x129530(0x3a8)]=_0x2e3734,this['_showConflictNotification'](),this[_0x129530(0x1da)](),this[_0x129530(0x37d)]());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x4c1f23(0x357)](){return this;}['onRemoteRej'](){return this;}[_0x4c1f23(0x385)](){return this;}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x227)](){const _0x267b4f=_0x4c1f23;throw new Error(_0x267b4f(0x220));}[_0x4c1f23(0x1da)](){const _0x452966=_0x4c1f23;this[_0x452966(0xd7)][_0x452966(0x377)](this[_0x452966(0x1f3)],this[_0x452966(0x1d3)],null,[]);}[_0x4c1f23(0x24d)](){const _0xef1b68=_0x4c1f23;this['_isPermissionRej']?this['_notificationService'][_0xef1b68(0x160)]({'title':this[_0xef1b68(0x119)]['t']('permission.title'),'content':this[_0xef1b68(0x119)]['t'](_0xef1b68(0x398)),'type':_0xef1b68(0x17a),'duration':0x0}):this[_0xef1b68(0x3a8)][_0xef1b68(0x160)]({'title':this['_localeService']['t'](_0xef1b68(0x1f7)),'content':this['_localeService']['t'](_0xef1b68(0x253)),'type':'error','duration':0x0});}[_0x4c1f23(0x37d)](){const _0xc21e08=_0x4c1f23;this[_0xc21e08(0x15c)][_0xc21e08(0xb6)](new _0x42c12f(this[_0xc21e08(0x1f3)])['id'],!0x1);}};Q=le([m(0x6,_0x321449(_0x52f39f)),m(0x7,_0x265863),m(0x8,_0x2fbed3),m(0x9,_0x321449(D)),m(0xa,_0x321449(_0x5d1c03)),m(0xb,_0x321449(_0x2e153b)),m(0xc,_0x7f7802)],Q);let ee=class extends _e{constructor(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0x25ec44,_0x4e809b,_0x453f10,_0xca638c,_0xbf7522){const _0x3db14c=_0x4c1f23;super(_0x186109,_0x2b96b4,_0x12935f,_0x4e06c9,_0x25911a,_0xca638c,_0xbf7522,_0x4e809b,_0x453f10),l(this,'status',_0x3db14c(0x209)),this[_0x3db14c(0x162)]=_0x25ec44;}['appendMutation'](_0x130fa4){const _0x5afcec=_0x4c1f23;return this[_0x5afcec(0x14c)][_0x5afcec(0x27c)](_0x130fa4),this[_0x5afcec(0x32a)](),this;}[_0x4c1f23(0x10c)](_0x507b95){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4864a6=_0x4c1f23;throw new Error(_0x4864a6(0x105));}[_0x4c1f23(0xf4)](){const _0x4ae662=_0x4c1f23;throw new Error(_0x4ae662(0x76));}['toggleOffline'](){return this;}[_0x4c1f23(0x31f)](){const _0x570c2b=_0x4c1f23,{_injector:_0x5975b5,_pendingMutations:_0x264191,_awaitingChangeset:_0x3a813c,unitID:_0x250ea1,_handler:_0x37f71d,type:_0x113267}=this,_0x516f2e=Hs(_0x5975b5,_0x250ea1,_0x113267,_0x3a813c,_0x264191,_0x37f71d);return _0x516f2e instanceof K?_0x516f2e[_0x570c2b(0x298)]():(_0x516f2e instanceof X||_0x516f2e instanceof Z)&&_0x516f2e['resend'](),_0x516f2e;}[_0x4c1f23(0x227)](){const _0x186aed=_0x4c1f23;throw new Error(_0x186aed(0x1c5));}};ee=le([m(0x5,_0x321449(_0x313fa0)),m(0x6,_0x321449(_0x5d1c03)),m(0x7,_0x321449(D)),m(0x8,_0x265863),m(0x9,_0x2fbed3)],ee);let k=class extends _e{constructor(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x2adc59,_0x16d44d,_0x3b254d,_0x164c09,_0x5092c1,_0x36f7d2,_0x1a3db9,_0x3d1657,_0x456caa,_0xaa0456){const _0x346d77=_0x4c1f23;super(_0x4747cd,_0x4a6a02,_0x396f86,_0x428fd0,_0x3b254d,_0x3d1657,_0x456caa,_0x5092c1,_0x36f7d2),l(this,_0x346d77(0xad),_0x346d77(0x1dc)),(this[_0x346d77(0x295)]=_0x2adc59,this[_0x346d77(0x1c9)]=_0x16d44d,this[_0x346d77(0x162)]=_0x164c09,this[_0x346d77(0x128)]=_0x1a3db9,this[_0x346d77(0x2ce)]=_0xaa0456);}['onMissedChangesetFetched'](_0x4fca33){const _0x5cbe65=_0x4c1f23;try{const _0xdd2ac5=[..._0x4fca33,...this[_0x5cbe65(0x1c9)]],_0x473da9=[this[_0x5cbe65(0x32e)]||this[_0x5cbe65(0x295)]][_0x5cbe65(0x347)](_0x46968a=>!!_0x46968a);let _0x4192b5,_0x8fc273;if(_0x473da9[_0x5cbe65(0x78)]){const _0x5aa5a7=this['_transformService'][_0x5cbe65(0x3a0)](_0xdd2ac5,_0x473da9,!0x1);if(!_0x428767(_0x5aa5a7))throw _0x5aa5a7[_0x5cbe65(0x17a)];_0x4192b5=_0x5aa5a7['c1Prime'],_0x8fc273=_0x5aa5a7['c2Prime'];}else _0x4192b5=_0xdd2ac5,_0x8fc273=[];let _0x3881ea=this['_pendingMutations'];_0x4192b5[_0x5cbe65(0x100)](_0x26baf0=>{const _0x8452f5=_0x5cbe65;let _0x581545;if(_0x3881ea[_0x8452f5(0x78)]){const _0x4a41f6=this['_transformService'][_0x8452f5(0xbf)](_0x26baf0,_0x3881ea);if(!_0x8db330(_0x4a41f6))throw _0x4a41f6[_0x8452f5(0x17a)];_0x581545=_0x4a41f6['c1Prime'],_0x3881ea=_0x4a41f6[_0x8452f5(0x101)];}else _0x581545=_0x26baf0;this[_0x8452f5(0x3aa)](_0x581545);}),this[_0x5cbe65(0x295)]&&this[_0x5cbe65(0x3c1)](),this['_awaitingChangeset']&&_0x8fc273['length']&&(_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)]());let _0x3f4245;if(this['_awaitingChangeset']&&_0x3881ea[_0x5cbe65(0x78)]!==0x0)_0x3f4245=this['_injector'][_0x5cbe65(0x171)](X,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],_0x3881ea,this[_0x5cbe65(0x34b)]);else{if(this[_0x5cbe65(0x32e)]&&_0x3881ea['length']===0x0)_0x8fc273[0x0][_0x5cbe65(0x1fc)]=this[_0x5cbe65(0x309)](),_0x3f4245=this['_injector'][_0x5cbe65(0x171)](Z,this['unitID'],this[_0x5cbe65(0x1d3)],_0x8fc273[0x0],this[_0x5cbe65(0x34b)]);else{if(_0x3881ea['length']!==0x0){const _0x210769=this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](K,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],_0x3881ea,this[_0x5cbe65(0x34b)]);_0x210769[_0x5cbe65(0x298)](),_0x3f4245=_0x210769;}else _0x3f4245=this[_0x5cbe65(0x162)]['createInstance'](Se,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x34b)]);}}return _0x3f4245[_0x5cbe65(0x32a)](),_0x3f4245;}catch(_0x282da0){return this['_logService']['error'](_0x5cbe65(0xc6),_0x5cbe65(0x28b),_0x282da0),this[_0x5cbe65(0x162)][_0x5cbe65(0x171)](Q,this[_0x5cbe65(0x1f3)],this[_0x5cbe65(0x1d3)],this[_0x5cbe65(0x32e)],this[_0x5cbe65(0x14c)],this[_0x5cbe65(0x34b)],!0x1);}}[_0x4c1f23(0x227)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4c1f23(0x3ef)](_0x4223b6){const _0x27ef99=_0x4c1f23;return this[_0x27ef99(0x14c)][_0x27ef99(0x27c)](_0x4223b6),this;}[_0x4c1f23(0x10c)](_0x324787){const _0x290fd1=_0x4c1f23;return this[_0x290fd1(0x1c9)]['push'](_0x324787),this;}['onRemoteAck'](_0x3623d9){const _0x351ba7=_0x4c1f23;if(this['_awaitingChangeset'])return this[_0x351ba7(0x295)]=this[_0x351ba7(0x32e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4c1f23(0xf4)](_0x1511f7){const _0x158849=_0x4c1f23;return this[_0x158849(0x222)](!!(_0x1511f7!=null&&_0x1511f7[_0x158849(0x3b9)]));}[_0x4c1f23(0x385)](){const _0x2c6b56=_0x4c1f23;return this[_0x2c6b56(0x162)][_0x2c6b56(0x171)](ee,this['unitID'],this[_0x2c6b56(0x1d3)],this[_0x2c6b56(0x32e)],this[_0x2c6b56(0x14c)],this['_handler']);}[_0x4c1f23(0x31f)](){return this;}[_0x4c1f23(0x222)](_0x37f713){const _0x30edab=_0x4c1f23;return this['_injector']['createInstance'](Q,this[_0x30edab(0x1f3)],this['type'],this[_0x30edab(0x32e)],this[_0x30edab(0x14c)],this[_0x30edab(0x34b)],_0x37f713);}};k=le([m(0x7,_0x321449(_0x313fa0)),m(0x8,_0x321449(_0x5d1c03)),m(0x9,_0x321449(D)),m(0xa,_0x50688a),m(0xb,_0x265863),m(0xc,_0x2fbed3),m(0xd,_0x56767e)],k);function Hs(_0x2e4e3b,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91){const _0x433818=_0x4c1f23;return _0x2f1ac1&&_0x22b2d3['length']?_0x2e4e3b[_0x433818(0x171)](X,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x22b2d3,_0x46cf91):_0x2f1ac1?_0x2e4e3b[_0x433818(0x171)](Z,_0x12ef31,_0x52fb52,_0x2f1ac1,_0x46cf91):_0x22b2d3[_0x433818(0x78)]?_0x2e4e3b[_0x433818(0x171)](K,_0x12ef31,_0x52fb52,_0x22b2d3,_0x46cf91):_0x2e4e3b['createInstance'](Se,_0x12ef31,_0x52fb52,_0x46cf91);}var mr=Object[_0x4c1f23(0x2e9)],gr=Object[_0x4c1f23(0x133)],Vt=(_0x5c516f,_0xecbd3b,_0x2ff63d,_0x1833ea)=>{const _0x58a222=_0x4c1f23;for(var _0x5f3e5b=_0x1833ea>0x1?void 0x0:_0x1833ea?gr(_0xecbd3b,_0x2ff63d):_0xecbd3b,_0xd1c1f9=_0x5c516f[_0x58a222(0x78)]-0x1,_0x53c110;_0xd1c1f9>=0x0;_0xd1c1f9--)(_0x53c110=_0x5c516f[_0xd1c1f9])&&(_0x5f3e5b=(_0x1833ea?_0x53c110(_0xecbd3b,_0x2ff63d,_0x5f3e5b):_0x53c110(_0x5f3e5b))||_0x5f3e5b);return _0x1833ea&&_0x5f3e5b&&mr(_0xecbd3b,_0x2ff63d,_0x5f3e5b),_0x5f3e5b;},p=(_0x4233d6,_0x5265b0)=>(_0x4e575f,_0x16ed68)=>_0x5265b0(_0x4e575f,_0x16ed68,_0x4233d6);let Je=class extends _0x2dacfb{constructor(_0x3b1635,_0x216fa0,_0x52a15d,_0x48a801,_0x14895f,_0x228be4,_0x4a1766,_0x39f8ea,_0x584ae0,_0x3a5378,_0x54eeed,_0x5112ac,_0x4a58d0){const _0x3e2d53=_0x4c1f23;super(),l(this,_0x3e2d53(0x3c3),new _0x2ec58d(null)),l(this,'state$',this['_state$'][_0x3e2d53(0xfc)]()),l(this,'_state'),l(this,_0x3e2d53(0xcb),!0x1),l(this,_0x3e2d53(0x380),this[_0x3e2d53(0xe0)][_0x3e2d53(0x1a7)](_0x16d2df(_0x5a09ab=>_0x5a09ab?_0x5a09ab[_0x3e2d53(0xad)]:w[_0x3e2d53(0x3d4)]),_0xb96cea(0x1))),l(this,_0x3e2d53(0x1f0),!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x3e2d53(0x1f3)]=_0x3b1635,this[_0x3e2d53(0x177)]=_0x216fa0,this['_type']=_0x52a15d,this['_injector']=_0x48a801,this[_0x3e2d53(0xd7)]=_0x14895f,this[_0x3e2d53(0xa3)]=_0x228be4,this[_0x3e2d53(0x119)]=_0x4a1766,this[_0x3e2d53(0x396)]=_0x39f8ea,this[_0x3e2d53(0x128)]=_0x584ae0,this['_commandService']=_0x3a5378,this['_messageService']=_0x54eeed,this[_0x3e2d53(0x15c)]=_0x5112ac,this[_0x3e2d53(0x335)]=_0x4a58d0);}get[_0x4c1f23(0x354)](){const _0x198ba1=_0x4c1f23;return this[_0x198ba1(0x195)];}async[_0x4c1f23(0x1ba)](){const _0x2f5f70=_0x4c1f23;if(this[_0x2f5f70(0x354)])throw new Error(_0x2f5f70(0x2f3));await this[_0x2f5f70(0x34a)]();}[_0x4c1f23(0x23c)](){const _0x4ac30a=_0x4c1f23;return this[_0x4ac30a(0xcb)]=!0x0,_0x5738c2(()=>{const _0x50f41b=_0x4ac30a;this['_collaborationPaused']=!0x1,this[_0x50f41b(0x24b)]();});}[_0x4c1f23(0x14d)](_0x880c57){const _0x474d9f=_0x4c1f23;this[_0x474d9f(0x195)]=_0x880c57,this[_0x474d9f(0x3c3)]['next'](_0x880c57);}async['_init'](){const _0x15bdd8=_0x4c1f23;var _0x1fa704;this[_0x15bdd8(0x14d)](await this[_0x15bdd8(0x2a0)]()),this[_0x15bdd8(0x335)]&&((_0x1fa704=this[_0x15bdd8(0x335)])==null||_0x1fa704['editingUnit'](this['unitID']),this['disposeWithMe'](this[_0x15bdd8(0x335)]['getUnitStatus$'](this[_0x15bdd8(0x1f3)])[_0x15bdd8(0x280)](_0x282144=>{const _0x258305=_0x15bdd8;this[_0x258305(0x128)][_0x258305(0x20b)]('[CollaborationEntity]',_0x258305(0xf9),_0x282144),_0x282144===js[_0x258305(0xf3)]?(this[_0x258305(0x28f)][_0x258305(0x160)]({'content':this[_0x258305(0x119)]['t'](_0x258305(0x143)),'type':_0x57eb36['Warning']}),this[_0x258305(0x15c)]['updatePermissionPoint'](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x1)):this[_0x258305(0x15c)][_0x258305(0xb6)](new _0x42c12f(this[_0x258305(0x1f3)])['id'],!0x0);})));let _0x4193f9=!0x1;return this[_0x15bdd8(0x248)](this['session'][_0x15bdd8(0x294)][_0x15bdd8(0x280)](_0x23b041=>{const _0x4cc8ab=_0x15bdd8;_0x23b041===G[_0x4cc8ab(0x2e1)]?this[_0x4cc8ab(0x17b)](_0x4193f9):_0x23b041===G[_0x4cc8ab(0x3d4)]&&(_0x4193f9=!0x0,this[_0x4cc8ab(0xe8)]());})),this[_0x15bdd8(0x248)](this[_0x15bdd8(0x177)]['event$']['subscribe'](_0x22af5d=>{const _0x511938=_0x15bdd8;try{switch(_0x22af5d[_0x511938(0x186)]){case _0x273d8c['NEW_CHANGESETS']:{this[_0x511938(0x1ac)](_0x569e1c(_0x22af5d[_0x511938(0x339)]));break;}case _0x273d8c[_0x511938(0x368)]:{this[_0x511938(0x155)](_0x22af5d[_0x511938(0x339)]);break;}case _0x273d8c[_0x511938(0x389)]:{this['_onRemoteRejected']();break;}case _0x273d8c['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x511938(0x1ee)](_0x22af5d[_0x511938(0x339)][_0x511938(0x219)][_0x511938(0x17d)](_0x56e70e=>_0x569e1c(_0x56e70e)));break;}case _0x273d8c[_0x511938(0x2bf)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1a83c4){throw console['error'](_0x511938(0x3e4),_0x1a83c4),_0x1a83c4;}})),this[_0x15bdd8(0x195)];}[_0x4c1f23(0x390)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x533c24=_0x4c1f23;if(this['_transitionLocked'])throw new Error(_0x533c24(0x306));this[_0x533c24(0x1f0)]=!0x0;}[_0x4c1f23(0x2dd)](_0x3853df){const _0x5db510=_0x4c1f23;this[_0x5db510(0x375)](),this['_updateState'](this[_0x5db510(0x195)][_0x5db510(0x3ef)](_0x3853df)),this[_0x5db510(0x390)]();}[_0x4c1f23(0x1ac)](_0x36005a){const _0x12d686=_0x4c1f23;if(!(_0x36005a['revision']<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x12d686(0x1f3)]))){if(this[_0x12d686(0xcb)]){this['_remoteChangesetQueue'][_0x12d686(0x27c)](_0x36005a);return;}this[_0x12d686(0x26b)](_0x36005a);}}[_0x4c1f23(0x24b)](){const _0x52d52f=_0x4c1f23;this[_0x52d52f(0x1ff)]['forEach'](_0x69f4bb=>this[_0x52d52f(0x26b)](_0x69f4bb)),this[_0x52d52f(0x1ff)]=[];}['_applyRemoteChangeset'](_0xf71938){const _0x287762=_0x4c1f23,_0x762128=this['_compressMutationService'][_0x287762(0x35d)][_0x287762(0x35e)](this[_0x287762(0xa3)][_0x287762(0x35d)][_0x287762(0x1c0)]()['COMPRESS_MUTATION_APPLY'])(_0xf71938[_0x287762(0x3d7)],null)||_0xf71938[_0x287762(0x3d7)],_0x77adcc={..._0xf71938,'mutations':_0x762128};this[_0x287762(0x375)](),this[_0x287762(0x14d)](this[_0x287762(0x195)][_0x287762(0x10c)](_0x77adcc)),this[_0x287762(0x390)]();}['_onRemoteACK'](_0x4804c5){const _0x1cfa21=_0x4c1f23;this[_0x1cfa21(0x375)](),this[_0x1cfa21(0x14d)](this[_0x1cfa21(0x195)][_0x1cfa21(0x357)](_0x4804c5)),this['_unlockTransition']();}[_0x4c1f23(0x1d5)](_0x58532e){const _0x54a6f7=_0x4c1f23;this[_0x54a6f7(0x375)](),this['_updateState'](this[_0x54a6f7(0x195)][_0x54a6f7(0xf4)](_0x58532e)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3401e1){const _0x407412=_0x4c1f23;if(!(this[_0x407412(0x195)]instanceof k))throw new TypeError(_0x407412(0x8d));const _0x2aff63=_0x3401e1[_0x407412(0x17d)](_0x5447e7=>{const _0xd9c56e=_0x407412,_0x4287e9=this[_0xd9c56e(0xa3)]['interceptor'][_0xd9c56e(0x35e)](this[_0xd9c56e(0xa3)][_0xd9c56e(0x35d)]['getInterceptPoints']()[_0xd9c56e(0x1a4)])(_0x5447e7[_0xd9c56e(0x3d7)],null)||_0x5447e7[_0xd9c56e(0x3d7)];return{..._0x5447e7,'mutations':_0x4287e9};});this[_0x407412(0x375)](),this[_0x407412(0x14d)](this[_0x407412(0x195)][_0x407412(0xfb)](_0x2aff63)),this[_0x407412(0x390)]();}[_0x4c1f23(0xe8)](){const _0x4e246e=_0x4c1f23;this[_0x4e246e(0x375)](),this[_0x4e246e(0x14d)](this[_0x4e246e(0x195)][_0x4e246e(0x385)]()),this[_0x4e246e(0x390)]();}[_0x4c1f23(0x17b)](_0xd51a33=!0x1){const _0x2e125c=_0x4c1f23;this['_lockTransition'](),this[_0x2e125c(0x14d)](this[_0x2e125c(0x195)][_0x2e125c(0x31f)]()),this[_0x2e125c(0x390)]();const _0x3cd207=this['_state'];_0xd51a33&&_0x3cd207 instanceof Se&&(this['_lockTransition'](),this[_0x2e125c(0x14d)](_0x3cd207[_0x2e125c(0xff)]()),this[_0x2e125c(0x390)]());}async[_0x4c1f23(0x2a0)](){return new Promise(_0x1d47c5=>{const _0x19c92c=_0x4c7d;this['session'][_0x19c92c(0x294)][_0x19c92c(0x1a7)](_0x448807(0x1))[_0x19c92c(0x280)](async _0x470a40=>{const _0x365b50=_0x19c92c;_0x1d47c5(await this['_createInitialStateImpl'](_0x470a40===G[_0x365b50(0x2e1)]));});});}[_0x4c1f23(0xf7)](){const _0x3fbadf=this['unitID'];return{'onStateChange':(_0x1ed29c,_0xf64be2)=>{const _0x2fc7c2=_0x4c7d;if(_0x1ed29c!==this[_0x2fc7c2(0x195)])throw new Error(_0x2fc7c2(0xc2)+_0x1ed29c[_0x2fc7c2(0xad)]+'\x0aAfter:\x20'+_0xf64be2['status']+_0x2fc7c2(0x34d)+this[_0x2fc7c2(0x195)]['status']);this[_0x2fc7c2(0x14d)](_0xf64be2);},'onSendChangeset':_0x312f97=>{const _0xe1e748=_0x4c7d,_0x59718c={'eventID':_0x273d8c[_0xe1e748(0x8a)],'data':{'unitID':_0x312f97[_0xe1e748(0x1f3)],'unitType':this[_0xe1e748(0x16a)],'changeset':_0x312f97,'memberID':this[_0xe1e748(0x177)][_0xe1e748(0x370)]()}};this[_0xe1e748(0x177)]['send'](_0x59718c,this['unitID']);},'onMissingChangesets':({from:_0xb13ac7,to:_0x16e8d9})=>{const _0x4fe3c3=_0x4c7d;this['_logService'][_0x4fe3c3(0x20b)]('[CollaborationEntity]',_0x4fe3c3(0x2a7)+_0xb13ac7+_0x4fe3c3(0xda)+_0x16e8d9);const _0x521960={'eventID':_0x273d8c['FETCH_MISSING'],'data':{'unitID':_0x3fbadf,'unitType':this['_type'],'from':_0xb13ac7,'to':_0x16e8d9}};this[_0x4fe3c3(0x177)][_0x4fe3c3(0x218)](_0x521960,this[_0x4fe3c3(0x1f3)]);}};}async[_0x4c1f23(0x8e)](_0x276fef){const _0x3a4707=_0x4c1f23;var _0x4c5143,_0x198010;const _0x352bd5=await this[_0x3a4707(0xd7)][_0x3a4707(0x107)](this[_0x3a4707(0x1f3)]),_0x138ec3=(_0x4c5143=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0x3d7)])!=null?_0x4c5143:[],_0x1e198c=(_0x198010=_0x352bd5==null?void 0x0:_0x352bd5[_0x3a4707(0xfe)])!=null?_0x198010:null,_0x284ecc=this[_0x3a4707(0x1f3)];try{this[_0x3a4707(0x13c)](_0x1e198c,_0x138ec3);}catch(_0x2ac81f){this[_0x3a4707(0x128)][_0x3a4707(0x17a)](_0x2ac81f);}const _0x3bebbe=this[_0x3a4707(0xf7)]();if(_0x276fef){const _0x4a27b4=Hs(this['_injector'],_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);return _0x4a27b4 instanceof K?_0x4a27b4['_schedule']():(_0x4a27b4 instanceof X||_0x4a27b4 instanceof Z)&&_0x4a27b4['resend'](),_0x4a27b4;}return this['_injector'][_0x3a4707(0x171)](ee,_0x284ecc,this[_0x3a4707(0x16a)],_0x1e198c,_0x138ec3,_0x3bebbe);}['_replayCachedMutations'](_0x3e489d,_0x27ab26){const _0x215f6a=_0x4c1f23;var _0x336ab7,_0x17dc6c;const _0xa46bfb=this[_0x215f6a(0xa3)]['interceptor'][_0x215f6a(0x35e)](this[_0x215f6a(0xa3)][_0x215f6a(0x35d)][_0x215f6a(0x1c0)]()['COMPRESS_MUTATION_APPLY']);(_0x336ab7=_0xa46bfb((_0x3e489d==null?void 0x0:_0x3e489d[_0x215f6a(0x3d7)])||[],null))==null||_0x336ab7[_0x215f6a(0x100)](_0x724176=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x724176['id'],_0x724176[_0x215f6a(0x364)])),(_0x17dc6c=_0xa46bfb(_0x27ab26||[],null))==null||_0x17dc6c[_0x215f6a(0x100)](_0x437482=>this[_0x215f6a(0x1ef)][_0x215f6a(0x153)](_0x437482['id'],_0x437482[_0x215f6a(0x364)]));}};Je=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x50688a),p(0x9,_0x265863),p(0xa,_0x5d3b7c),p(0xb,_0x52f39f),p(0xc,_0x9bfc3c(tt))],Je);let bt=class extends Je{constructor(_0x523246,_0x61fb11,_0x1b1c56,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0x1b2a9b,_0x423f72,_0x4c5f53,_0x496f4e,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502){const _0x600cca=_0x4c1f23;super(_0x523246,_0x1b1c56,_0x61fb11,_0xed7f1f,_0x33360b,_0x477193,_0x9de878,_0x5b67be,_0xc8a3ba,_0xdcfc8e,_0x47ea93,_0x142ab8,_0x499502),this['unitID']=_0x523246,this[_0x600cca(0x1d3)]=_0x61fb11,this['_docStateChangeManagerService']=_0x1b2a9b,this[_0x600cca(0xfa)]=_0x423f72,this[_0x600cca(0x2ff)]=_0x4c5f53,this[_0x600cca(0x3b7)]=_0x496f4e;}[_0x4c1f23(0xf7)](){const _0x4d1aea=_0x4c1f23,_0x2828e3=super['_createHandler']();return _0x2828e3[_0x4d1aea(0x200)]=_0x26abe4=>this[_0x4d1aea(0xfa)][_0x4d1aea(0x11a)](_0x26abe4),_0x2828e3['onTransformSelections']=_0x23d784=>this[_0x4d1aea(0x2ff)][_0x4d1aea(0x34c)](_0x23d784),_0x2828e3[_0x4d1aea(0x1e7)]=_0x1b8fd1=>this[_0x4d1aea(0x3b7)][_0x4d1aea(0x1f8)](_0x1b8fd1),_0x2828e3[_0x4d1aea(0x2e5)]=_0x3b7a4f=>this['_docTransformIMECacheService'][_0x4d1aea(0x20a)](_0x3b7a4f),_0x2828e3;}async['_init'](){const _0x573210=_0x4c1f23,_0x190760=await super[_0x573210(0x34a)]();return this[_0x573210(0x248)](this[_0x573210(0x1ef)][_0x573210(0x168)]((_0x15b9d3,_0x427fda)=>{const _0xfaccb8=_0x573210;if(_0x15b9d3[_0xfaccb8(0x1d3)]!==_0xcd477b[_0xfaccb8(0xdf)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x1ce)]||_0x427fda!=null&&_0x427fda[_0xfaccb8(0x30b)])return;const _0x56d019=_0x15b9d3[_0xfaccb8(0x364)];if((_0x56d019==null?void 0x0:_0x56d019['unitId'])!==this[_0xfaccb8(0x1f3)])return;let _0x42fcf1=_0x15b9d3;if(_0x42fcf1['id']===_0x1b2745['id']){const _0x2668c1=_0x42fcf1[_0xfaccb8(0x364)];_0x42fcf1={'id':_0x1b2745['id'],'type':_0xcd477b[_0xfaccb8(0xdf)],'params':{'unitId':_0x2668c1[_0xfaccb8(0xe5)],'actions':_0x2668c1['actions'],'textRanges':null}};}const _0x52487b=this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)][_0xfaccb8(0x35e)](this[_0xfaccb8(0xa3)][_0xfaccb8(0x35d)]['getInterceptPoints']()[_0xfaccb8(0x192)])([_0x42fcf1],null)||[_0x42fcf1];this[_0xfaccb8(0x2dd)](_0x52487b[0x0]);})),_0x190760;}};bt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(_0x3f8e0c)),p(0x9,_0x321449(Ye)),p(0xa,_0x321449(Xe)),p(0xb,_0x321449(Bt)),p(0xc,_0x50688a),p(0xd,_0x265863),p(0xe,_0x5d3b7c),p(0xf,_0x52f39f),p(0x10,_0x9bfc3c(tt))],bt);let Tt=class extends Je{constructor(_0x44549a,_0x308441,_0x15a7e8,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xb9057c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01){const _0x36f5ce=_0x4c1f23;super(_0x44549a,_0x15a7e8,_0x308441,_0x448404,_0x591b5d,_0x46d56c,_0x4d431d,_0x4e8d6c,_0xcd5185,_0x4e7fd4,_0x2b4232,_0x46c618,_0x317a01),this['unitID']=_0x44549a,this[_0x36f5ce(0x1d3)]=_0x308441,this['_sheetTransformSelectionsService']=_0xb9057c;}[_0x4c1f23(0xf7)](){const _0x17b61f=_0x4c1f23,_0x547e41=super[_0x17b61f(0xf7)]();return _0x547e41[_0x17b61f(0x1c1)]=_0x100f11=>this[_0x17b61f(0xd2)]['transformSelections'](_0x100f11),_0x547e41;}async[_0x4c1f23(0x34a)](){const _0x7be811=_0x4c1f23,_0x16fab2=await super[_0x7be811(0x34a)]();return this[_0x7be811(0x248)](this[_0x7be811(0x1ef)][_0x7be811(0x168)]((_0x3b9a52,_0x46d1e8)=>{const _0x557ad9=_0x7be811;if(_0x3b9a52[_0x557ad9(0x1d3)]!==_0xcd477b['MUTATION']||_0x46d1e8!=null&&_0x46d1e8['fromCollab']||_0x46d1e8!=null&&_0x46d1e8[_0x557ad9(0x30b)])return;const _0x3367b6=_0x3b9a52[_0x557ad9(0x364)];if((_0x3367b6==null?void 0x0:_0x3367b6['unitId'])!==this[_0x557ad9(0x1f3)])return;const _0x12a4d2=_0x3b9a52,_0x258d12=this[_0x557ad9(0xa3)][_0x557ad9(0x35d)][_0x557ad9(0x35e)](this[_0x557ad9(0xa3)][_0x557ad9(0x35d)]['getInterceptPoints']()[_0x557ad9(0x192)])([_0x12a4d2],null)||[_0x12a4d2];this[_0x557ad9(0x2dd)](_0x258d12[0x0]);})),_0x16fab2;}};Tt=Vt([p(0x3,_0x321449(_0x313fa0)),p(0x4,_0x321449(D)),p(0x5,_0x321449(_0x2615ec)),p(0x6,_0x321449(_0x2e153b)),p(0x7,_0x321449(_0x5d1c03)),p(0x8,_0x321449(Ke)),p(0x9,_0x50688a),p(0xa,_0x265863),p(0xb,_0x5d3b7c),p(0xc,_0x52f39f),p(0xd,_0x9bfc3c(tt))],Tt);var Sr=Object[_0x4c1f23(0x2e9)],pr=Object[_0x4c1f23(0x133)],vr=(_0x5ea452,_0x5b8582,_0x2a8813,_0x32449f)=>{for(var _0x4fdddd=_0x32449f>0x1?void 0x0:_0x32449f?pr(_0x5b8582,_0x2a8813):_0x5b8582,_0x24107b=_0x5ea452['length']-0x1,_0x2dd6d3;_0x24107b>=0x0;_0x24107b--)(_0x2dd6d3=_0x5ea452[_0x24107b])&&(_0x4fdddd=(_0x32449f?_0x2dd6d3(_0x5b8582,_0x2a8813,_0x4fdddd):_0x2dd6d3(_0x4fdddd))||_0x4fdddd);return _0x32449f&&_0x4fdddd&&Sr(_0x5b8582,_0x2a8813,_0x4fdddd),_0x4fdddd;},lt=(_0x586ca9,_0x237b3c)=>(_0x45ecdb,_0x5393d1)=>_0x237b3c(_0x45ecdb,_0x5393d1,_0x586ca9);let Ae=class extends _0x2dacfb{constructor(_0x1294cf,_0x254ad6,_0x8a4385){const _0x445a1a=_0x4c1f23;super(),l(this,_0x445a1a(0xac),new Map()),l(this,_0x445a1a(0x29f),new _0xacaad6()),(this[_0x445a1a(0x162)]=_0x1294cf,this[_0x445a1a(0x1e1)]=_0x254ad6,this[_0x445a1a(0x310)]=_0x8a4385,this[_0x445a1a(0x34a)]());}[_0x4c1f23(0x1e4)](){const _0x475f5f=_0x4c1f23;super[_0x475f5f(0x1e4)](),this[_0x475f5f(0xac)]['forEach'](_0x152876=>_0x152876[_0x475f5f(0x1e4)]()),this[_0x475f5f(0xac)][_0x475f5f(0xa8)]();}['getCollabEntity'](_0x5171e7){const _0x3432bc=_0x4c1f23;var _0x5386b9;return(_0x5386b9=this[_0x3432bc(0xac)]['get'](_0x5171e7))!=null?_0x5386b9:null;}[_0x4c1f23(0x2b7)](_0xe0951a){const _0x1f353f=_0x4c1f23,_0x12f7d3=this[_0x1f353f(0x254)](_0xe0951a);return _0x12f7d3?_0x570d55(_0x12f7d3):this[_0x1f353f(0x29f)]['pipe'](_0x1f1135(_0x45b120=>_0x45b120[_0x1f353f(0x1f3)]===_0xe0951a));}['_init'](){const _0x49e38b=_0x4c1f23;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9['UNIVER_SHEET'])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x280)](async _0x3c4be3=>{const _0x8fa491=_0x49e38b,_0x4925f9=_0x3c4be3['getUnitId'](),_0xdff029=await this[_0x8fa491(0x1a1)](_0x4925f9,H[_0x8fa491(0x10d)]);this[_0x8fa491(0xac)][_0x8fa491(0x329)](_0x4925f9,_0xdff029);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4c91c9[_0x49e38b(0x11d)])[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]),_0x160a7a(0x10))[_0x49e38b(0x1a7)](_0x1f1135(_0xb7414=>!_0xb7414[_0x49e38b(0x34e)]()['startsWith']('__')))[_0x49e38b(0x280)](async _0x499e8b=>{const _0x1ad7d9=_0x49e38b,_0x268e84=_0x499e8b['getUnitId'](),_0x5f3d4a=await this['_startCollaboration'](_0x268e84,H['UNIVER_DOC']);this[_0x1ad7d9(0xac)][_0x1ad7d9(0x329)](_0x268e84,_0x5f3d4a);}),_0x5de0ce(this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x10d)]),this['_univerInstanceService'][_0x49e38b(0x2ee)](_0x4c91c9[_0x49e38b(0x11d)]))[_0x49e38b(0x1a7)](_0x289d57(this[_0x49e38b(0x265)]))[_0x49e38b(0x280)](_0x11b0f7=>{const _0x1ec34f=_0x49e38b,_0x1ea6f2=_0x11b0f7[_0x1ec34f(0x34e)](),_0x891344=this[_0x1ec34f(0xac)]['get'](_0x1ea6f2);_0x891344&&(_0x891344[_0x1ec34f(0x1e4)](),this[_0x1ec34f(0xac)][_0x1ec34f(0xd0)](_0x1ea6f2));});}async['_startCollaboration'](_0x4b0da8,_0x43aab9){const _0x2a5ceb=_0x4c1f23,_0x4857ea=await this['_collabSessionService']['requireSession'](_0x4b0da8),_0x5ce201=this[_0x2a5ceb(0x162)]['createInstance'](this['_getCtorByUniverType'](_0x43aab9),_0x4b0da8,_0x43aab9,_0x4857ea);return await _0x5ce201['init'](),this[_0x2a5ceb(0x29f)][_0x2a5ceb(0x23d)](_0x5ce201),_0x5ce201;}[_0x4c1f23(0x1f5)](_0x16d67f){const _0x47fa5d=_0x4c1f23;switch(_0x16d67f){case H[_0x47fa5d(0x11d)]:return bt;case H['UNIVER_SHEET']:return Tt;default:throw new Error(_0x47fa5d(0x3cb)+_0x16d67f);}}};Ae=vr([lt(0x0,_0x321449(_0x313fa0)),lt(0x1,_0x321449(ce)),lt(0x2,_0x375068)],Ae);const _s=[_0x4c1f23(0x36d),_0x4c1f23(0x3ac),_0x4c1f23(0x17e),_0x4c1f23(0x1b0),_0x4c1f23(0x3f1),_0x4c1f23(0x94)];class Ft extends _0x22db72{constructor(){const _0x3ab35c=_0x4c1f23;super(...arguments),l(this,_0x3ab35c(0x16f),new Map()),l(this,'_colorIndex',0x0);}[_0x4c1f23(0x22b)](_0x3d06e9){const _0x49e0d=_0x4c1f23;if(this[_0x49e0d(0x16f)][_0x49e0d(0x20e)](_0x3d06e9))return this[_0x49e0d(0x16f)][_0x49e0d(0x348)](_0x3d06e9);const _0x227747=_s[this[_0x49e0d(0x1b9)]];return this[_0x49e0d(0x1b9)]=(this['_colorIndex']+0x1)%_s[_0x49e0d(0x78)],this[_0x49e0d(0x16f)]['set'](_0x3d06e9,_0x227747),_0x227747;}}var Ir=Object[_0x4c1f23(0x2e9)],Er=Object[_0x4c1f23(0x133)],Cr=(_0x1a0a48,_0x415acd,_0x8c44db,_0x573633)=>{for(var _0x46f60d=_0x573633>0x1?void 0x0:_0x573633?Er(_0x415acd,_0x8c44db):_0x415acd,_0x442d83=_0x1a0a48['length']-0x1,_0x46d5fb;_0x442d83>=0x0;_0x442d83--)(_0x46d5fb=_0x1a0a48[_0x442d83])&&(_0x46f60d=(_0x573633?_0x46d5fb(_0x415acd,_0x8c44db,_0x46f60d):_0x46d5fb(_0x46f60d))||_0x46f60d);return _0x573633&&_0x46f60d&&Ir(_0x415acd,_0x8c44db,_0x46f60d),_0x46f60d;},se=(_0x18d7bc,_0x45beb5)=>(_0x9ba8e6,_0x323329)=>_0x45beb5(_0x9ba8e6,_0x323329,_0x18d7bc);const br=0x12c,Tr=0x64;let Rt=class extends _0x2dacfb{constructor(_0x2e55bd,_0x1acc8b,_0x57b672,_0x92a7af,_0x189907,_0x24908d,_0x14294e,_0xdcede9,_0x368be1){const _0x360b10=_0x4c1f23;super(),l(this,'_online',!0x1),l(this,_0x360b10(0x34a),!0x1),l(this,_0x360b10(0x1cf),new _0x2ec58d(new Map())),l(this,_0x360b10(0x37c),this['_cursorInfo$'][_0x360b10(0xfc)]()),l(this,_0x360b10(0x258),new _0x2ec58d([])),l(this,_0x360b10(0x115),this[_0x360b10(0x258)][_0x360b10(0x1a7)](_0x3504d2(br))),l(this,'_updateLocalCursor',_0x1b3960(_0x5e8466=>{const _0x205559=_0x360b10,_0x40af4c={'eventID':_0x273d8c[_0x205559(0xf2)],'data':{'unitID':this[_0x205559(0x1f3)],'memberID':this['_session'][_0x205559(0x370)](),'selection':xs(_0x5e8466)}};this[_0x205559(0x2c0)]['send'](_0x40af4c,this[_0x205559(0x1f3)]);},Tr)),(this[_0x360b10(0x1f3)]=_0x2e55bd,this[_0x360b10(0x2c0)]=_0x1acc8b,this[_0x360b10(0x162)]=_0x57b672,this[_0x360b10(0x271)]=_0x92a7af,this[_0x360b10(0x2ed)]=_0x189907,this[_0x360b10(0x3c2)]=_0x24908d,this[_0x360b10(0x2ce)]=_0x14294e,this[_0x360b10(0x310)]=_0xdcede9,this[_0x360b10(0x1ef)]=_0x368be1);}get[_0x4c1f23(0x2b8)](){const _0x1fa31a=_0x4c1f23;return this['_cursorInfo$'][_0x1fa31a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x3027a2=_0x4c1f23;return this[_0x3027a2(0x258)][_0x3027a2(0x25c)]();}['dispose'](){const _0x3b940a=_0x4c1f23;super[_0x3b940a(0x1e4)](),this['_cursorInfo$'][_0x3b940a(0x23d)](new Map()),this[_0x3b940a(0x1cf)]['complete'](),this[_0x3b940a(0x258)][_0x3b940a(0x23d)]([]),this[_0x3b940a(0x258)]['complete']();}[_0x4c1f23(0x1ba)](){const _0x2defc0=_0x4c1f23;this['_init']||(this[_0x2defc0(0x34a)]=!0x0,this['_session']['sessionStatus$'][_0x2defc0(0x1a7)](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x42e5e0=>{const _0x1e2a76=_0x2defc0;_0x42e5e0===G[_0x1e2a76(0x2e1)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2defc0(0x2c0)]['event$']['pipe'](_0x289d57(this['dispose$']))[_0x2defc0(0x280)](_0x2f2882=>{const _0x515d0d=_0x2defc0,_0x4352b8=_0x2f2882['eventID'];_0x4352b8===_0x273d8c['UPDATE_CURSOR']&&this[_0x515d0d(0x106)](_0x2f2882),_0x4352b8===_0x273d8c[_0x515d0d(0x15a)]&&this[_0x515d0d(0x2d3)](_0x2f2882);}),this[_0x2defc0(0x248)](this['_commandService'][_0x2defc0(0x168)](_0x374d66=>{const _0xae98eb=_0x2defc0,_0x12cb14=_0x374d66[_0xae98eb(0x364)];_0x12cb14!=null&&this[_0xae98eb(0x25b)]&&_0x374d66['id']===_0x254038['id']&&_0x12cb14['unitId']===this[_0xae98eb(0x1f3)]&&_0x12cb14[_0xae98eb(0x32c)]===!0x1&&this[_0xae98eb(0x252)](_0x12cb14[_0xae98eb(0x138)]);})),this['_syncEditingCollabCursorService'][_0x2defc0(0x2f5)][_0x2defc0(0x1a7)](_0x289d57(this[_0x2defc0(0x265)]))[_0x2defc0(0x280)](_0x461033=>{const _0x27939b=_0x2defc0;if((_0x461033==null?void 0x0:_0x461033[_0x27939b(0x1f3)])!==this[_0x27939b(0x1f3)])return;const _0x60fdbe={'eventID':_0x273d8c['UPDATE_CURSOR'],'data':_0x461033};this[_0x27939b(0x106)](_0x60fdbe);}),this[_0x2defc0(0x248)](this[_0x2defc0(0x1ef)][_0x2defc0(0x168)](_0x7e57ce=>{const _0x2e1167=_0x2defc0;if(_0x7e57ce[_0x2e1167(0x364)]==null)return;const _0x2904c7=_0x7e57ce[_0x2e1167(0x364)];if(_0x7e57ce['id']!==_0x1b2745['id']||_0x2904c7[_0x2e1167(0xe5)]!==this[_0x2e1167(0x1f3)])return;const _0x551c8f={'id':'doc.mutation.rich-text-editing','params':_0x2904c7},_0x288a09=this[_0x2e1167(0x2b8)];for(const [_0x4056f0,_0x6e4384]of _0x288a09){const _0x5d3eed={'id':_0x2e1167(0x108),'params':{'unitId':this[_0x2e1167(0x1f3)],'actions':null,'textRanges':_0x6e4384[_0x2e1167(0x138)]}},_0x41aff6=this['_transformService'][_0x2e1167(0x3f0)](_0x551c8f,_0x5d3eed,!0x1);if(_0x3737c9(_0x41aff6))throw _0x41aff6[_0x2e1167(0x17a)];_0x288a09[_0x2e1167(0x329)](_0x4056f0,{..._0x6e4384,'ranges':_0x41aff6['m2Prime'][_0x2e1167(0x364)][_0x2e1167(0x125)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x288a09);});})));}[_0x4c1f23(0x106)](_0x50a203){const _0xe1d503=_0x4c1f23;var _0x122643,_0xb44630;const {memberID:_0x4f4e20,selection:_0x914011}=_0x50a203[_0xe1d503(0x339)],_0x1d8229=or(_0x914011),_0x1c2a93=(_0xb44630=(_0x122643=this[_0xe1d503(0x2ed)][_0xe1d503(0x39f)](this[_0xe1d503(0x1f3)],_0x4f4e20))==null?void 0x0:_0x122643[_0xe1d503(0x124)])!=null?_0xb44630:_0xe1d503(0x33a),_0x24ab8d={'color':this[_0xe1d503(0x271)][_0xe1d503(0x22b)](_0x4f4e20),'name':_0x1c2a93,'ranges':_0x1d8229},_0x7e3b=this[_0xe1d503(0x2b8)];_0x7e3b['set'](_0x4f4e20,_0x24ab8d),this[_0xe1d503(0x1cf)][_0xe1d503(0x23d)](_0x7e3b);}['_onCursorDelete'](_0x13e57e){const _0x217262=_0x4c1f23,{memberID:_0x2757a0}=_0x13e57e[_0x217262(0x339)],_0x1a7834=this[_0x217262(0x2b8)];_0x1a7834[_0x217262(0xd0)](_0x2757a0),this['_cursorInfo$'][_0x217262(0x23d)](_0x1a7834);}[_0x4c1f23(0x17b)](){const _0x587173=_0x4c1f23;var _0x269c29;if(this[_0x587173(0x25b)]=!0x0,((_0x269c29=this[_0x587173(0x310)][_0x587173(0x204)]())==null?void 0x0:_0x269c29['getUnitId']())!==this['unitID'])return;const _0x1071c6=this[_0x587173(0x162)][_0x587173(0x348)](_0x322779)[_0x587173(0x2bd)]();Array[_0x587173(0x35b)](_0x1071c6)&&_0x1071c6[_0x587173(0x78)]>0x0&&this[_0x587173(0x252)](_0x1071c6);}['_toggleOffline'](){this['_online']=!0x1;}};Rt=Cr([se(0x2,_0x321449(_0x313fa0)),se(0x3,_0x321449(Ft)),se(0x4,_0x321449(ae)),se(0x5,_0x321449(Bt)),se(0x6,_0x56767e),se(0x7,_0x375068),se(0x8,_0x265863)],Rt);var Rr=Object[_0x4c1f23(0x2e9)],Or=Object['getOwnPropertyDescriptor'],Dr=(_0xc7f8ab,_0x5a2923,_0x4f9df9,_0x4a60cd)=>{for(var _0x240c92=_0x4a60cd>0x1?void 0x0:_0x4a60cd?Or(_0x5a2923,_0x4f9df9):_0x5a2923,_0x4737ad=_0xc7f8ab['length']-0x1,_0x3f1f51;_0x4737ad>=0x0;_0x4737ad--)(_0x3f1f51=_0xc7f8ab[_0x4737ad])&&(_0x240c92=(_0x4a60cd?_0x3f1f51(_0x5a2923,_0x4f9df9,_0x240c92):_0x3f1f51(_0x240c92))||_0x240c92);return _0x4a60cd&&_0x240c92&&Rr(_0x5a2923,_0x4f9df9,_0x240c92),_0x240c92;},fe=(_0x4457e7,_0x5cd770)=>(_0x4587f4,_0x36459e)=>_0x5cd770(_0x4587f4,_0x36459e,_0x4457e7);const wr=0x12c,Pr=0x64,yr=()=>{let _0x2c9881=[],_0x2a843e=!0x1;return _0x4a4bfb=>{const _0x4f9cce=_0x4c7d;_0x2c9881[_0x4f9cce(0x27c)](_0x4a4bfb),_0x2a843e||(_0x2a843e=!0x0,setTimeout(()=>{const _0x12918e=_0x4f9cce;_0x2c9881[_0x12918e(0x100)](_0x308dd1=>_0x308dd1()),_0x2c9881=[],_0x2a843e=!0x1;}));};};let Ot=class extends _0x2dacfb{constructor(_0xc79435,_0x156143,_0xe57189,_0x51d1f8,_0x1d4141,_0x433352,_0x4fabe3,_0x5735c7){const _0x29c6bb=_0x4c1f23;super(),l(this,_0x29c6bb(0x25b),!0x1),l(this,'_init',!0x1),l(this,_0x29c6bb(0x1cf),new _0x2ec58d(new Map())),l(this,_0x29c6bb(0x37c),this['_cursorInfo$'][_0x29c6bb(0xfc)]()),l(this,_0x29c6bb(0x258),new _0x2ec58d([])),l(this,_0x29c6bb(0x115),this['_roomMembers$'][_0x29c6bb(0x1a7)](_0x3504d2(wr))),l(this,_0x29c6bb(0x252),_0x1b3960((_0x162e49,_0x2ca8fe)=>{const _0x17fd8a=_0x29c6bb,_0x40a4be={'eventID':_0x273d8c[_0x17fd8a(0xf2)],'data':{'unitID':this[_0x17fd8a(0x1f3)],'memberID':this['_session'][_0x17fd8a(0x370)](),'selection':_0x48cd80(_0x162e49,_0x2ca8fe[_0x17fd8a(0x10f)])}};this[_0x17fd8a(0x2c0)][_0x17fd8a(0x218)](_0x40a4be,this[_0x17fd8a(0x1f3)]);},Pr)),(this['unitID']=_0xc79435,this[_0x29c6bb(0x2c0)]=_0x156143,this[_0x29c6bb(0x162)]=_0xe57189,this[_0x29c6bb(0x271)]=_0x51d1f8,this[_0x29c6bb(0x2ed)]=_0x1d4141,this['_univerInstanceService']=_0x433352,this[_0x29c6bb(0x1ef)]=_0x4fabe3,this[_0x29c6bb(0x179)]=_0x5735c7);}get[_0x4c1f23(0x2b8)](){const _0x282d2a=_0x4c1f23;return this[_0x282d2a(0x1cf)][_0x282d2a(0x25c)]();}get[_0x4c1f23(0x303)](){const _0x1993f9=_0x4c1f23;return this[_0x1993f9(0x258)][_0x1993f9(0x25c)]();}[_0x4c1f23(0x1e4)](){const _0x39a057=_0x4c1f23;super[_0x39a057(0x1e4)](),this['_cursorInfo$'][_0x39a057(0x23d)](new Map()),this[_0x39a057(0x1cf)][_0x39a057(0x2c4)](),this[_0x39a057(0x258)][_0x39a057(0x23d)]([]),this[_0x39a057(0x258)][_0x39a057(0x2c4)]();}['init'](){const _0x14f19c=_0x4c1f23;this['_init']||(this['_init']=!0x0,this['_session'][_0x14f19c(0x294)][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x41374a=>{const _0x4a40cb=_0x14f19c;_0x41374a===G[_0x4a40cb(0x2e1)]?this['_toggleOnline']():this[_0x4a40cb(0xe8)]();}),this['_session']['event$'][_0x14f19c(0x1a7)](_0x289d57(this[_0x14f19c(0x265)]))[_0x14f19c(0x280)](_0x174dd0=>{const _0x4171be=_0x14f19c,_0x33654b=_0x174dd0[_0x4171be(0x186)];_0x33654b===_0x273d8c[_0x4171be(0xf2)]&&this[_0x4171be(0x106)](_0x174dd0),_0x33654b===_0x273d8c[_0x4171be(0x15a)]&&this['_onCursorDelete'](_0x174dd0);}),this[_0x14f19c(0x1f4)](),this[_0x14f19c(0x248)](this['_commandService']['onCommandExecuted'](_0xb892cf=>{const _0x10905f=_0x14f19c;if(this[_0x10905f(0x25b)]&&_0xb892cf['id']===_0x137748['id']&&_0xb892cf[_0x10905f(0x364)][_0x10905f(0xe5)]===this[_0x10905f(0x1f3)]){const _0x4894b5=_0xb892cf[_0x10905f(0x364)];this[_0x10905f(0x252)](_0x4894b5[_0x10905f(0x213)],_0x4894b5['selections'][0x0]);}})));}[_0x4c1f23(0x106)](_0x2e6aee){const _0x5b2b0b=_0x4c1f23;var _0x7187b,_0xea928e;const {memberID:_0x381bed,selection:_0x475f1f}=_0x2e6aee[_0x5b2b0b(0x339)],{sheetName:_0x394ea4,range:_0x1c4a03}=_0x2363ba(_0x475f1f),_0x39812b={'name':(_0xea928e=(_0x7187b=this[_0x5b2b0b(0x2ed)]['getMember'](this[_0x5b2b0b(0x1f3)],_0x381bed))==null?void 0x0:_0x7187b['name'])!=null?_0xea928e:_0x5b2b0b(0x33a),'range':this[_0x5b2b0b(0x9d)](_0x394ea4,_0x1c4a03),'sheetID':_0x394ea4,'color':this[_0x5b2b0b(0x271)][_0x5b2b0b(0x22b)](_0x381bed),'selection':_0x475f1f},_0x3f742d=this[_0x5b2b0b(0x2b8)];_0x3f742d[_0x5b2b0b(0x329)](_0x381bed,_0x39812b),this[_0x5b2b0b(0x1cf)][_0x5b2b0b(0x23d)](_0x3f742d);}[_0x4c1f23(0x2d3)](_0x14dc15){const _0x4022b9=_0x4c1f23,{memberID:_0x175231}=_0x14dc15[_0x4022b9(0x339)],_0x5e922b=this[_0x4022b9(0x2b8)];_0x5e922b[_0x4022b9(0xd0)](_0x175231),this[_0x4022b9(0x1cf)]['next'](_0x5e922b);}['_getMergeRange'](_0xe207f1,_0xc7d771){const _0x56ac9e=_0x4c1f23;var _0x4c6ba8,_0x353d73;const _0x35cdf5=(_0x353d73=(_0x4c6ba8=this[_0x56ac9e(0x310)][_0x56ac9e(0x11b)](this[_0x56ac9e(0x1f3)]))==null?void 0x0:_0x4c6ba8[_0x56ac9e(0x77)](_0xe207f1))==null?void 0x0:_0x353d73['getMergeData']();return(_0x35cdf5==null?void 0x0:_0x35cdf5[_0x56ac9e(0xef)](_0xe11c55=>_0x31476b['contains'](_0xe11c55,_0xc7d771)))||_0xc7d771;}['_onRefRangeChange'](){const _0x440745=_0x4c1f23,_0x524e31=new _0x242419(),_0x2df8a0=yr(),_0xd142ff=()=>{const _0x5e6116=_0x4c7d;_0x524e31[_0x5e6116(0x1e4)]();const _0x45b39d=(_0x15be8c,_0x599ae8,_0x43839e,_0x2eaa8c)=>{const _0xe747c6=_0x5e6116;let _0x5461b3=[];switch(_0x15be8c['id']){case _0x5bd706[_0xe747c6(0x2ab)]:{_0x5461b3=_0x28d514(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x18d)]:{_0x5461b3=_0x362d52(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x317)]:{_0x5461b3=_0xb9b59c(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x28c)]:{_0x5461b3=_0x40cb3b(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x3c0)]:{_0x5461b3=_0x2d766e(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0xd1)]:{_0x5461b3=_0x4c71a9(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x9f)]:{_0x5461b3=_0x104260(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x215)]:{_0x5461b3=_0x5ebff0(_0x15be8c,_0x2eaa8c);break;}case _0x5bd706[_0xe747c6(0x2cb)]:{_0x5461b3=_0x37d328(_0x15be8c,_0x2eaa8c);break;}}const _0x4eaf58=_0x12db35(_0x5461b3,_0x2eaa8c),_0x125c6b=this['cursorInfo'][_0xe747c6(0x348)](_0x599ae8);if(_0x125c6b&&_0x4eaf58){const _0x1050b6={..._0x125c6b,'range':_0x4eaf58};this['cursorInfo'][_0xe747c6(0x329)](_0x599ae8,_0x1050b6),_0x2df8a0(()=>{const _0x24e5e4=_0xe747c6,_0x53ca10=this[_0x24e5e4(0x179)]['registerRefRange'](_0x4eaf58,_0x549284=>(_0x53ca10[_0x24e5e4(0x1e4)](),_0x45b39d(_0x549284,_0x599ae8,_0x43839e,_0x4eaf58)));_0x524e31['add'](_0x53ca10);});}return{'redos':[],'undos':[]};};this[_0x5e6116(0x2b8)][_0x5e6116(0x100)]((_0x1c1400,_0x53c5e5)=>{const _0x2075a2=_0x5e6116,{range:_0x535017,sheetID:_0x300d0f}=_0x1c1400,_0x142ad9=this[_0x2075a2(0x179)][_0x2075a2(0x288)](_0x535017,_0x2098e0=>(_0x142ad9[_0x2075a2(0x1e4)](),_0x45b39d(_0x2098e0,_0x53c5e5,_0x300d0f,_0x535017)));_0x524e31[_0x2075a2(0x2fb)](_0x142ad9);});};this[_0x440745(0x248)](_0x5738c2(this[_0x440745(0x1cf)]['subscribe'](()=>{_0xd142ff();})));}['_toggleOnline'](){const _0x2a226f=_0x4c1f23;var _0x8d31d7,_0x36bb1d;if(this[_0x2a226f(0x25b)]=!0x0,((_0x8d31d7=this[_0x2a226f(0x310)][_0x2a226f(0x204)]())==null?void 0x0:_0x8d31d7[_0x2a226f(0x34e)]())!==this[_0x2a226f(0x1f3)])return;const _0x31cf76=(_0x36bb1d=this['_injector']['get'](_0x152281)[_0x2a226f(0x84)]())==null?void 0x0:_0x36bb1d[0x0],_0xbb6452=this['_univerInstanceService']['getCurrentUnitForType'](_0x4c91c9[_0x2a226f(0x10d)])['getActiveSheet']();_0x31cf76&&_0xbb6452&&this[_0x2a226f(0x252)](_0xbb6452[_0x2a226f(0x1a9)](),_0x31cf76);}[_0x4c1f23(0xe8)](){const _0x10bfed=_0x4c1f23;this[_0x10bfed(0x25b)]=!0x1;}};Ot=Dr([fe(0x2,_0x321449(_0x313fa0)),fe(0x3,_0x321449(Ft)),fe(0x4,_0x321449(ae)),fe(0x5,_0x375068),fe(0x6,_0x265863),fe(0x7,_0x321449(_0x70f3a6))],Ot);var Nr=Object[_0x4c1f23(0x2e9)],Ur=Object['getOwnPropertyDescriptor'],Mr=(_0x28bb23,_0x4a41dd,_0x20c7bc,_0x56c9f2)=>{const _0x3698ae=_0x4c1f23;for(var _0x1d22d4=_0x56c9f2>0x1?void 0x0:_0x56c9f2?Ur(_0x4a41dd,_0x20c7bc):_0x4a41dd,_0x20fd80=_0x28bb23[_0x3698ae(0x78)]-0x1,_0x38fe8f;_0x20fd80>=0x0;_0x20fd80--)(_0x38fe8f=_0x28bb23[_0x20fd80])&&(_0x1d22d4=(_0x56c9f2?_0x38fe8f(_0x4a41dd,_0x20c7bc,_0x1d22d4):_0x38fe8f(_0x1d22d4))||_0x1d22d4);return _0x56c9f2&&_0x1d22d4&&Nr(_0x4a41dd,_0x20c7bc,_0x1d22d4),_0x1d22d4;},_t=(_0x32faf9,_0x11aba7)=>(_0x4cc2f5,_0x40d238)=>_0x11aba7(_0x4cc2f5,_0x40d238,_0x32faf9);let pe=class extends _0x2dacfb{constructor(_0x27af0a,_0x243979,_0x536f5d){const _0x3f3887=_0x4c1f23;super(),l(this,'_entities',new Map()),l(this,_0x3f3887(0x29f),new _0xacaad6()),(this[_0x3f3887(0x310)]=_0x27af0a,this[_0x3f3887(0x162)]=_0x243979,this['_collabSessionService']=_0x536f5d,this[_0x3f3887(0x34a)]());}['dispose'](){const _0x27b095=_0x4c1f23;super['dispose'](),this[_0x27b095(0x29f)][_0x27b095(0x2c4)](),this[_0x27b095(0xac)][_0x27b095(0x100)](_0xe4ea25=>_0xe4ea25[_0x27b095(0x1e4)]());}['getCollabCursors$'](_0x76897c){const _0x3104a6=_0x4c1f23;return this[_0x3104a6(0xac)][_0x3104a6(0x20e)](_0x76897c)?this['_entities'][_0x3104a6(0x348)](_0x76897c)[_0x3104a6(0x37c)]:this[_0x3104a6(0x29f)][_0x3104a6(0x1a7)](_0x4c7e5a(_0x13afb7=>_0x13afb7['unitID']===_0x76897c),_0x4e9858(_0xcf11f=>_0xcf11f['cursorInfo$']));}[_0x4c1f23(0x34a)](){const _0x40b43e=_0x4c1f23;this[_0x40b43e(0x310)][_0x40b43e(0x3f7)](_0x4c91c9['UNIVER_SHEET'])['pipe'](_0x289d57(this[_0x40b43e(0x265)]))['subscribe'](async _0x973300=>{const _0x48e541=_0x40b43e,_0x35c5bb=_0x973300[_0x48e541(0x34e)](),_0x70c101=await this[_0x48e541(0x358)](_0x35c5bb);this[_0x48e541(0x29f)]['next'](_0x70c101),this[_0x48e541(0xac)][_0x48e541(0x329)](_0x35c5bb,_0x70c101);}),this['_univerInstanceService'][_0x40b43e(0x3f7)](_0x4c91c9[_0x40b43e(0x11d)])[_0x40b43e(0x1a7)](_0x289d57(this[_0x40b43e(0x265)]))['pipe'](_0x4c7e5a(_0x1f4455=>!_0x1f4455[_0x40b43e(0x34e)]()[_0x40b43e(0x270)]('__')))[_0x40b43e(0x280)](async _0x3f0794=>{const _0x31f37c=_0x40b43e,_0x22ba29=_0x3f0794['getUnitId'](),_0x5375b9=await this[_0x31f37c(0x159)](_0x22ba29);this[_0x31f37c(0x29f)][_0x31f37c(0x23d)](_0x5375b9),this[_0x31f37c(0xac)][_0x31f37c(0x329)](_0x22ba29,_0x5375b9);}),_0x5de0ce(this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x11d)]),this['_univerInstanceService'][_0x40b43e(0x2ee)](_0x4c91c9[_0x40b43e(0x10d)]))['pipe'](_0x289d57(this[_0x40b43e(0x265)]))[_0x40b43e(0x280)](_0x2e517e=>{const _0x210b65=_0x40b43e,_0xa7b8dc=_0x2e517e[_0x210b65(0x34e)](),_0x42511b=this[_0x210b65(0xac)][_0x210b65(0x348)](_0xa7b8dc);_0x42511b&&(_0x42511b[_0x210b65(0x1e4)](),this[_0x210b65(0xac)][_0x210b65(0xd0)](_0xa7b8dc));});}async['_startSheetCollabCursor'](_0xae3be5){const _0x4c1b5e=_0x4c1f23,_0x24372c=await this[_0x4c1b5e(0x1e1)][_0x4c1b5e(0x2ec)](_0xae3be5),_0x5cdf84=this[_0x4c1b5e(0x162)][_0x4c1b5e(0x171)](Ot,_0xae3be5,_0x24372c);return _0x5cdf84[_0x4c1b5e(0x1ba)](),_0x5cdf84;}async['_startDocCollabCursor'](_0x514661){const _0x241722=_0x4c1f23,_0x4e61a1=await this[_0x241722(0x1e1)][_0x241722(0x2ec)](_0x514661),_0x29e735=this['_injector'][_0x241722(0x171)](Rt,_0x514661,_0x4e61a1);return _0x29e735[_0x241722(0x1ba)](),_0x29e735;}};pe=Mr([_t(0x0,_0x375068),_t(0x1,_0x321449(_0x313fa0)),_t(0x2,_0x321449(ce))],pe);const Le=0x14,us=0xc8,ut=0x4,Ar=0x5;function Lr(_0x13801e,_0x3e27e){const _0x2fdc25=_0x4c1f23;let {radius:_0x36fa40,width:_0x440574,height:_0x1bda39}=_0x3e27e;_0x36fa40=_0x36fa40!=null?_0x36fa40:0x0,_0x440574=_0x440574!=null?_0x440574:0x1e,_0x1bda39=_0x1bda39!=null?_0x1bda39:0x1e;let _0x234fa2=0x0,_0x1e02ca=0x0,_0x34c555=0x0;_0x234fa2=_0x1e02ca=_0x34c555=Math['min'](_0x36fa40,_0x440574/0x2,_0x1bda39/0x2),_0x13801e['beginPath'](),_0x13801e[_0x2fdc25(0x26d)](_0x234fa2,0x0),_0x13801e[_0x2fdc25(0x1d0)](_0x440574-_0x1e02ca,0x0),_0x13801e['arc'](_0x440574-_0x1e02ca,_0x1e02ca,_0x1e02ca,Math['PI']*0x3/0x2,0x0,!0x1),_0x13801e['lineTo'](_0x440574,_0x1bda39-_0x34c555),_0x13801e['arc'](_0x440574-_0x34c555,_0x1bda39-_0x34c555,_0x34c555,0x0,Math['PI']/0x2,!0x1),_0x13801e[_0x2fdc25(0x1d0)](0x0,_0x1bda39),_0x13801e['lineTo'](0x0,_0x234fa2),_0x13801e[_0x2fdc25(0x325)](_0x234fa2,_0x234fa2,_0x234fa2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x13801e[_0x2fdc25(0x247)](),_0x3e27e['fill']&&(_0x13801e[_0x2fdc25(0x149)](),_0x13801e[_0x2fdc25(0x22c)]=_0x3e27e[_0x2fdc25(0x291)],_0x3e27e['fillRule']===_0x2fdc25(0x323)?_0x13801e[_0x2fdc25(0x291)](_0x2fdc25(0x323)):_0x13801e[_0x2fdc25(0x291)](),_0x13801e[_0x2fdc25(0x9a)]());}class st extends _0xca1f86{constructor(_0x2dc32b,_0x3d6d4c){const _0x103f80=_0x4c1f23;super(_0x2dc32b,_0x3d6d4c),l(this,_0x103f80(0x30d)),l(this,_0x103f80(0x30c)),(this[_0x103f80(0x30d)]=_0x3d6d4c==null?void 0x0:_0x3d6d4c['color'],this['text']=_0x3d6d4c==null?void 0x0:_0x3d6d4c[_0x103f80(0x30c)]);}static[_0x4c1f23(0x1f2)](_0x5748d6,_0x2dba9e){const _0x3e4bc=_0x4c1f23,{text:_0x4604f8,color:_0x1af701}=_0x2dba9e;_0x5748d6['save'](),_0x5748d6[_0x3e4bc(0xd4)]=_0x3e4bc(0x146);const _0x13c8cc=_0x5748d6[_0x3e4bc(0x23e)](_0x4604f8)[_0x3e4bc(0x321)],_0x56aeb6=Math[_0x3e4bc(0x38f)](_0x13c8cc+0x2*ut,us);Lr(_0x5748d6,{'height':Le,'radius':0x4,'width':_0x56aeb6,'fill':_0x1af701,'evented':!0x1}),_0x5748d6[_0x3e4bc(0x22c)]=_0x3e4bc(0x26f);const _0x23c730=ut,_0x347005=Le-Ar,_0x19239f=us-0x2*ut;if(_0x13c8cc>_0x19239f){let _0x150d6f='',_0x523cc3=0x0;for(const _0xf7196b of _0x4604f8){const _0x50aeee=_0x5748d6[_0x3e4bc(0x23e)](_0xf7196b)[_0x3e4bc(0x321)];if(_0x523cc3+_0x50aeee<=_0x19239f-_0x5748d6[_0x3e4bc(0x23e)](_0x3e4bc(0x3b4))['width'])_0x150d6f+=_0xf7196b,_0x523cc3+=_0x50aeee;else{_0x150d6f+='...';break;}}_0x5748d6[_0x3e4bc(0x263)](_0x150d6f,_0x23c730,_0x347005);}else _0x5748d6[_0x3e4bc(0x263)](_0x4604f8,_0x23c730,_0x347005);_0x5748d6[_0x3e4bc(0x9a)]();}[_0x4c1f23(0x33c)](_0x4f7659){const _0xe709b=_0x4c1f23;st[_0xe709b(0x1f2)](_0x4f7659,this);}}const dt=_0x4c1f23(0x229),$r=_0x4c1f23(0x7d),jr=_0x4c1f23(0x299),De=0x6,xr=1.5,ft=0x4,Hr=1.5,kr=_0x4c1f23(0x80);class ds{constructor(_0x5ee52c,_0xce05fa,_0xa7288f,_0x2300d2){const _0x553e30=_0x4c1f23;l(this,_0x553e30(0xa4),[]),l(this,_0x553e30(0x277),null),l(this,_0x553e30(0x3bf),null),l(this,'_anchorDot',null),l(this,_0x553e30(0x1a3),null),l(this,'_eventUnsubscribe',null),(this[_0x553e30(0xa7)]=_0x5ee52c,this[_0x553e30(0xcf)]=_0xce05fa,this[_0x553e30(0x394)]=_0xa7288f,this[_0x553e30(0x300)]=_0x2300d2,this['_render']());}set[_0x4c1f23(0xc0)](_0x55652a){const _0x172dce=_0x4c1f23;_0x55652a?(this[_0x172dce(0xc9)]&&this[_0x172dce(0xc9)]['hide'](),this[_0x172dce(0x3bf)]&&this['_textBubble'][_0x172dce(0x160)]()):(this[_0x172dce(0xc9)]&&this['_anchorDot'][_0x172dce(0x160)](),this['_textBubble']&&this[_0x172dce(0x3bf)][_0x172dce(0x1e5)]());}[_0x4c1f23(0x1e4)](){const _0x3fdeb9=_0x4c1f23;for(const _0x408d4c of this[_0x3fdeb9(0xa4)])_0x408d4c[_0x3fdeb9(0x1e4)]();this[_0x3fdeb9(0x3bf)]&&this['_textBubble'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0xc9)]&&this['_anchorDot'][_0x3fdeb9(0x1e4)](),this[_0x3fdeb9(0x277)]&&this[_0x3fdeb9(0x277)]['dispose'](),this[_0x3fdeb9(0x3a6)]&&this[_0x3fdeb9(0x3a6)]();}[_0x4c1f23(0x208)](){const _0xb6cd2f=_0x4c1f23;var _0x305379;const {_docSkeleton:_0x4dd00b,_document:_0x216acb}=this,{color:_0xc90da5,name:_0x33ecc7,ranges:_0x17507c}=this['_cursor'],_0x2ffac9=_0x216acb[_0xb6cd2f(0x1d6)](),{docsLeft:_0x2d15bf,docsTop:_0xcbc7e1}=_0x2ffac9,_0xee16c8=new _0x2b89f0(_0x2ffac9,_0x4dd00b);for(const {startOffset:_0xf51d1,endOffset:_0x3e6bfd,collapsed:_0x33cef3,isActive:_0x39e887}of _0x17507c){const _0x2b7fd5=_0x4dd00b[_0xb6cd2f(0x205)](_0xf51d1),_0x98511=_0x4dd00b['findNodePositionByCharIndex'](_0x3e6bfd);if(_0x39e887){const {contentBoxPointGroup:_0x10eea9}=_0xee16c8['getRangePointData'](_0x98511,_0x98511);if(_0x10eea9[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x11e)](_0xc90da5,_0x10eea9,_0x2d15bf,_0xcbc7e1,_0x33ecc7),this[_0xb6cd2f(0x3a6)]=this[_0xb6cd2f(0x21f)]();}if(!_0x33cef3&&_0x2b7fd5&&_0x98511){if(_0x53f2b8(_0x2b7fd5,_0x98511)){const _0x10cf23=new _0x459c36(_0x2ffac9,_0x4dd00b),{pointGroup:_0x16a61d}=(_0x305379=_0x10cf23[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511))!=null?_0x305379:{};if(_0x16a61d==null||_0x16a61d[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x1b5)](_0xc90da5,_0x16a61d,_0x2d15bf,_0xcbc7e1);}else{const {contentBoxPointGroup:_0x35a7d1}=_0xee16c8[_0xb6cd2f(0x37f)](_0x2b7fd5,_0x98511);if(_0x35a7d1[_0xb6cd2f(0x78)]===0x0)continue;this[_0xb6cd2f(0x9b)](_0xc90da5,_0x35a7d1,_0x2d15bf,_0xcbc7e1);}}}}['_drawAnchor'](_0x56f301,_0x229d53,_0x5932c4,_0x1e54d9,_0x3bba9b){const _0x36c150=_0x4c1f23,_0x4f9e18=this[_0x36c150(0x2e0)](_0x229d53),{left:_0x4b1449,top:_0x1527d0,height:_0x1c9932}=_0x4f9e18,_0x21da14=this['_getScale'](),_0x43ed25=Hr/_0x21da14,_0xad405=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9,'height':_0x1c9932,'width':xr,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':_0x43ed25,'stroke':kr,'evented':!0x0});this[_0x36c150(0x277)]=_0xad405,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0xad405,_0x1c10b5);const _0x2cf4dc=new _0x3a075a(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-ft/0x2,'height':ft,'width':ft,'fill':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'strokeWidth':0x0,'stroke':_0x56f301||_0x17a368(_0x3ca793[_0x36c150(0x7a)],0x0),'evented':!0x1});this[_0x36c150(0xc9)]=_0x2cf4dc,this[_0x36c150(0xcf)]['addObject'](_0x2cf4dc,_0x1c10b5);const _0x2cfd87=new st(dt+_0x403f58[_0x36c150(0xf0)](De),{'left':_0x4b1449+_0x5932c4-_0x43ed25,'top':_0x1527d0+_0x1e54d9-Le,'text':_0x3bba9b,'color':_0x56f301});this[_0x36c150(0x3bf)]=_0x2cfd87,this[_0x36c150(0xcf)][_0x36c150(0x381)](_0x2cfd87,_0x1c10b5),this['_hover']=!0x1;}[_0x4c1f23(0x21f)](){const _0x3555dc=_0x4c1f23,_0x407e04=this[_0x3555dc(0x277)][_0x3555dc(0x234)][_0x3555dc(0x14b)](()=>{const _0x1a676a=_0x3555dc;this[_0x1a676a(0xc0)]=!0x0;}),_0x34602e=this['_anchor']['onPointerLeave$'][_0x3555dc(0x14b)](()=>{const _0x4b498a=_0x3555dc;this['_hideTimer']&&clearTimeout(this[_0x4b498a(0x1a3)]),this[_0x4b498a(0x1a3)]=setTimeout(()=>{const _0x2c9449=_0x4b498a;this[_0x2c9449(0xc0)]=!0x1;},0x7d0);});return()=>{const _0x17d79c=_0x3555dc;_0x407e04[_0x17d79c(0x15e)](),_0x34602e[_0x17d79c(0x15e)]();};}['_drawTextRange'](_0x3ede80,_0x3e3861,_0x4dab63,_0x3a625f){const _0x3634ce=_0x4c1f23,_0x4ab1c0=new _0x3fd1db(_0x3ede80)['setAlpha'](0.2)[_0x3634ce(0x2d9)](),_0x135542=new _0x28ffa0($r+_0x403f58[_0x3634ce(0xf0)](De),{'pointsGroup':_0x3e3861,'fill':_0x4ab1c0||_0x17a368(_0x3ca793[_0x3634ce(0x7a)],0.2),'left':_0x4dab63,'top':_0x3a625f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3634ce(0xa4)]['push'](_0x135542),this['_scene'][_0x3634ce(0x381)](_0x135542,_0x1c10b5);}[_0x4c1f23(0x1b5)](_0x353a18,_0x15a729,_0x4910db,_0x527840){const _0x15b1b4=_0x4c1f23,_0x3a4d26=new _0x3fd1db(_0x353a18)[_0x15b1b4(0x338)](0.2)['toRgbString'](),_0x1a869d=new _0x28ffa0(jr+_0x403f58[_0x15b1b4(0xf0)](De),{'pointsGroup':_0x15a729,'fill':_0x3a4d26||_0x17a368(_0x3ca793['black'],0.2),'left':_0x4910db,'top':_0x527840,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x15b1b4(0xa4)][_0x15b1b4(0x27c)](_0x1a869d),this['_scene'][_0x15b1b4(0x381)](_0x1a869d,_0x1c10b5);}['_getAnchorBounding'](_0x1ac26b){const _0x356f95=_0x1ac26b[0x0],_0x40ea84=_0x356f95[0x0],_0x101e81=_0x356f95[0x2],{x:_0x4780cd,y:_0x25cd97}=_0x40ea84,{x:_0x2eef57,y:_0x34c904}=_0x101e81;return{'left':_0x4780cd,'top':_0x25cd97,'width':_0x2eef57-_0x4780cd,'height':_0x34c904-_0x25cd97};}['_getScale'](){const _0x3790d7=_0x4c1f23,{scaleX:_0x26bc9d,scaleY:_0x19009f}=this['_scene'][_0x3790d7(0xcc)]();return Math['max'](_0x26bc9d,_0x19009f);}}var Br=Object[_0x4c1f23(0x2e9)],Vr=Object[_0x4c1f23(0x133)],Fr=(_0x200eb9,_0x482ba2,_0x517d4f,_0x3aed1c)=>{const _0x3443db=_0x4c1f23;for(var _0x35826e=_0x3aed1c>0x1?void 0x0:_0x3aed1c?Vr(_0x482ba2,_0x517d4f):_0x482ba2,_0x5b5bbd=_0x200eb9[_0x3443db(0x78)]-0x1,_0x3ed591;_0x5b5bbd>=0x0;_0x5b5bbd--)(_0x3ed591=_0x200eb9[_0x5b5bbd])&&(_0x35826e=(_0x3aed1c?_0x3ed591(_0x482ba2,_0x517d4f,_0x35826e):_0x3ed591(_0x35826e))||_0x35826e);return _0x3aed1c&&_0x35826e&&Br(_0x482ba2,_0x517d4f,_0x35826e),_0x35826e;},xe=(_0x5e455d,_0x14719a)=>(_0x324b1e,_0x3197fc)=>_0x14719a(_0x324b1e,_0x3197fc,_0x5e455d);let Dt=class extends _0x2dacfb{constructor(_0x24086d,_0x150979,_0x31295b,_0x14690a,_0x2909fd){const _0x498d64=_0x4c1f23;super(),l(this,_0x498d64(0x262),[]),l(this,_0x498d64(0x232),[]),(this[_0x498d64(0x308)]=_0x24086d,this[_0x498d64(0x169)]=_0x150979,this[_0x498d64(0x3a3)]=_0x31295b,this[_0x498d64(0x1ef)]=_0x14690a,this[_0x498d64(0x2c8)]=_0x2909fd,this['_init']());}[_0x4c1f23(0x34a)](){const _0x1f5fbd=_0x4c1f23,_0x2378d2=this[_0x1f5fbd(0x308)]['unitId'],_0x2bc286=this[_0x1f5fbd(0x169)];this['disposeWithMe'](_0x4fd693([this[_0x1f5fbd(0x3a3)][_0x1f5fbd(0x320)](_0x2378d2),this['_themeService']['currentTheme$']])[_0x1f5fbd(0x1a7)](_0x3d528e(([_0xd63552,_0x2362ab])=>({'skeleton':_0x2bc286[_0x1f5fbd(0x37b)](),'cursors':[..._0xd63552['values']()]['flatMap'](_0x14bf13=>({..._0x14bf13,'color':_0x2362ab[_0x14bf13['color']]}))})))[_0x1f5fbd(0x280)](_0x478152=>{if(this['_removeCollabCursors'](),_0x478152){const {skeleton:_0x29a106,cursors:_0x8a54a5}=_0x478152;this['_updateCollabCursors'](_0x29a106,_0x8a54a5);}})),this[_0x1f5fbd(0x223)](),this[_0x1f5fbd(0x3f2)]();}['_updateCollabCursors'](_0x152c8b,_0x41c1b5){const _0x3ab880=_0x4c1f23,{scene:_0x1237a2,mainComponent:_0xd3c349}=this['_context'],_0xca0a74=_0x41c1b5[_0x3ab880(0x17d)](_0x25f661=>new ds(_0x25f661,_0x1237a2,_0x152c8b,_0xd3c349));this[_0x3ab880(0x262)]=_0xca0a74,this[_0x3ab880(0x232)]=_0x41c1b5;}['_refreshCollabCursors'](){const _0x5577e2=_0x4c1f23;this[_0x5577e2(0xe6)]();const {scene:_0x2e6763,mainComponent:_0x252e73}=this[_0x5577e2(0x308)],_0xbcf349=this['_docSkeletonManagerService'][_0x5577e2(0x37b)](),_0x3faf01=this[_0x5577e2(0x232)][_0x5577e2(0x17d)](_0x4a1b1b=>new ds(_0x4a1b1b,_0x2e6763,_0xbcf349,_0x252e73));this[_0x5577e2(0x262)]=_0x3faf01;}[_0x4c1f23(0xe6)](){const _0xef0acb=_0x4c1f23;this[_0xef0acb(0x262)][_0xef0acb(0x100)](_0x3a6273=>_0x3a6273[_0xef0acb(0x1e4)]()),this[_0xef0acb(0x262)]=[];}[_0x4c1f23(0x3f2)](){const _0x59d017=_0x4c1f23,_0x1c6fba=[_0xd8bdfb['id']];this[_0x59d017(0x248)](this[_0x59d017(0x1ef)][_0x59d017(0x168)](_0x27e53d=>{const _0x4be4a6=_0x59d017;_0x1c6fba[_0x4be4a6(0x116)](_0x27e53d['id'])&&_0x27e53d[_0x4be4a6(0x364)][_0x4be4a6(0xe5)]===this['_context'][_0x4be4a6(0xe5)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0xa126e=_0x4c1f23;this['disposeWithMe'](_0x46c56e(this[_0xa126e(0x308)][_0xa126e(0x1e3)][_0xa126e(0x120)])['pipe'](_0x1f1135(_0x1edec3=>_0x1edec3[_0xa126e(0x1d3)]===_0x58f61e[_0xa126e(0x150)]),_0x4ac9c9(0x10))[_0xa126e(0x280)](()=>{const _0x10e50a=_0xa126e;this[_0x10e50a(0x25d)]();}));}};Dt=Fr([xe(0x1,_0x321449(_0x5e9e87)),xe(0x2,_0x321449(pe)),xe(0x3,_0x265863),xe(0x4,_0x321449(_0x6f1691))],Dt);const Wr=0x1,Gr=1.5;class Yr extends _0xca1f86{constructor(_0x41a825,_0x7ca72d){const _0x1232fb=_0x4c1f23;super(_0x41a825,_0x7ca72d),l(this,_0x1232fb(0x2da)),l(this,'_hovered',!0x1),l(this,'_range'),l(this,_0x1232fb(0x3e3),''),l(this,_0x1232fb(0x393),_0x1232fb(0x302)),l(this,_0x1232fb(0x2b5)),(_0x7ca72d&&this[_0x1232fb(0x1fb)](_0x7ca72d),this[_0x1232fb(0x234)][_0x1232fb(0x14b)](()=>this[_0x1232fb(0x1fb)]({'hovered':!0x0})),this[_0x1232fb(0x25a)][_0x1232fb(0x14b)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x3e24dd){const _0xd903df=_0x4c1f23;var _0x3c0e66,_0x170569,_0x4094b3,_0x29c08f,_0x42035c,_0x24f31c;this[_0xd903df(0x2da)]=(_0x3c0e66=_0x3e24dd['color'])!=null?_0x3c0e66:this[_0xd903df(0x2da)],this[_0xd903df(0x203)]=(_0x170569=_0x3e24dd[_0xd903df(0x26e)])!=null?_0x170569:this[_0xd903df(0x203)],this[_0xd903df(0x1a5)]=(_0x4094b3=_0x3e24dd['range'])!=null?_0x4094b3:this[_0xd903df(0x1a5)],this[_0xd903df(0x3e3)]=(_0x29c08f=_0x3e24dd[_0xd903df(0x124)])!=null?_0x29c08f:this['_name'],this['_labelPosition']=(_0x42035c=_0x3e24dd[_0xd903df(0x2bb)])!=null?_0x42035c:this['_labelPosition'],this[_0xd903df(0x2b5)]=(_0x24f31c=_0x3e24dd['backgroundColor'])!=null?_0x24f31c:this[_0xd903df(0x2b5)],this['transformByState']({'width':_0x3e24dd[_0xd903df(0x321)],'height':_0x3e24dd[_0xd903df(0x305)]});}[_0x4c1f23(0x3da)](_0x2308d7){const _0x54562a=_0x4c1f23,{row:_0x439db8,column:_0x3393fb}=_0x2308d7;if(_0x439db8>=this['_range'][_0x54562a(0x330)]&&_0x439db8<=this[_0x54562a(0x1a5)][_0x54562a(0x21a)]&&_0x3393fb>=this[_0x54562a(0x1a5)][_0x54562a(0x2fa)]&&_0x3393fb<=this[_0x54562a(0x1a5)][_0x54562a(0x272)]){this[_0x54562a(0x1fb)]({'hovered':!0x0});return;}this[_0x54562a(0x1fb)]({'hovered':!0x1});}[_0x4c1f23(0x3b5)](_0x52bb9e){return!0x1;}[_0x4c1f23(0x33c)](_0x5dd87b){const _0x4c2cdb=_0x4c1f23;_0x3a075a[_0x4c2cdb(0x1f2)](_0x5dd87b,{'width':this[_0x4c2cdb(0x321)],'height':this[_0x4c2cdb(0x305)],'strokeWidth':Gr,'stroke':this[_0x4c2cdb(0x2da)],'evented':!0x1,'fill':this[_0x4c2cdb(0x2b5)]}),this[_0x4c2cdb(0x203)]&&(_0x5dd87b[_0x4c2cdb(0x149)](),_0x5dd87b['transform'](0x1,0x0,0x0,0x1,this[_0x4c2cdb(0x321)],this[_0x4c2cdb(0x393)]==='bottom'?0x0:-Le),st['drawWith'](_0x5dd87b,{'text':this[_0x4c2cdb(0x3e3)],'color':this[_0x4c2cdb(0x2da)]}),_0x5dd87b[_0x4c2cdb(0x9a)]());}}var Kr=Object[_0x4c1f23(0x2e9)],Xr=Object[_0x4c1f23(0x133)],Jr=(_0xcaf088,_0x4c2798,_0x2e3e30,_0x1f66d1)=>{const _0xcd1366=_0x4c1f23;for(var _0x66997d=_0x1f66d1>0x1?void 0x0:_0x1f66d1?Xr(_0x4c2798,_0x2e3e30):_0x4c2798,_0x2faebc=_0xcaf088[_0xcd1366(0x78)]-0x1,_0x2d475c;_0x2faebc>=0x0;_0x2faebc--)(_0x2d475c=_0xcaf088[_0x2faebc])&&(_0x66997d=(_0x1f66d1?_0x2d475c(_0x4c2798,_0x2e3e30,_0x66997d):_0x2d475c(_0x66997d))||_0x66997d);return _0x1f66d1&&_0x66997d&&Kr(_0x4c2798,_0x2e3e30,_0x66997d),_0x66997d;},mt=(_0x25e0be,_0x4ad16f)=>(_0x3cea73,_0x51157c)=>_0x4ad16f(_0x3cea73,_0x51157c,_0x25e0be);const qr=0x1389;let wt=class extends _0x2dacfb{constructor(_0xb7d4a6,_0x23ee50,_0x2c50c3,_0x3a5123){const _0xd95751=_0x4c1f23;super(),l(this,_0xd95751(0x232),new Set()),l(this,_0xd95751(0x27a),null),(this[_0xd95751(0x308)]=_0xb7d4a6,this[_0xd95751(0x2b9)]=_0x23ee50,this['_collabCursorController']=_0x2c50c3,this[_0xd95751(0x2c8)]=_0x3a5123,this['_init']());}['_init'](){const _0x5c5454=_0x4c1f23;this['_sheetSkeletonManagerService'][_0x5c5454(0x2af)][_0x5c5454(0x1a7)](_0x3ae8cf(this[_0x5c5454(0x265)]),_0x59e45c(_0x526bc2=>{const _0x10007a=_0x5c5454;if(_0x526bc2){const _0x92c611=_0x526bc2[_0x10007a(0x243)];return _0x4fd693(this[_0x10007a(0x3a3)][_0x10007a(0x320)](this[_0x10007a(0x308)][_0x10007a(0xe5)]),this[_0x10007a(0x2c8)][_0x10007a(0x283)])['pipe'](_0x3d528e(([_0x4c28f6,_0x271529])=>{const _0x4fe5f2=new Map();return _0x4c28f6['forEach']((_0x366565,_0x3f7e98)=>{const _0x3d6644=_0x4c7d;if(_0x366565[_0x3d6644(0x10a)]===_0x92c611){const _0x3aa598={..._0x366565};_0x3aa598[_0x3d6644(0x30d)]=_0x271529[_0x366565[_0x3d6644(0x30d)]],_0x4fe5f2[_0x3d6644(0x329)](_0x3f7e98,_0x3aa598);}}),{'skeleton':_0x526bc2,'cursors':_0x4fe5f2};}));}return _0x570d55({'skeleton':null,'cursors':new Map()});}))[_0x5c5454(0x280)](({skeleton:_0x4ae99c,cursors:_0x263165})=>{const _0x25b2cc=_0x5c5454;this['_removeCollabCursors'](),_0x4ae99c&&this[_0x25b2cc(0xab)](_0x4ae99c,_0x263165);}),this[_0x5c5454(0x2b9)][_0x5c5454(0x2af)][_0x5c5454(0x280)](_0x521d75=>{const _0x178c7d=_0x5c5454;if(_0x521d75==null)return;const {skeleton:_0xd51fd2}=_0x521d75,{scene:_0x218b5d}=this['_context'];_0x218b5d[_0x178c7d(0x2f4)][_0x178c7d(0x14b)](_0x1b3960(_0x36c8b4=>{const _0xc244a7=_0x178c7d;var _0x672c8f,_0x293fd2;const {offsetX:_0xbb4ed2,offsetY:_0x116c64}=_0x36c8b4,{x:_0x24c9c4,y:_0x2ceb59}=_0x218b5d[_0xc244a7(0xd6)](_0x3b739f['FromArray']([_0xbb4ed2,_0x116c64])),{scaleX:_0x2831d5,scaleY:_0x3f2a4d}=_0x218b5d[_0xc244a7(0xcc)](),_0x15a40e=_0x218b5d[_0xc244a7(0x7c)](_0x14e392['VIEW_MAIN']),_0x5eb3e4=_0x218b5d['getVpScrollXYInfoByPosToVp'](_0x3b739f[_0xc244a7(0x2c1)]([_0x24c9c4,_0x2ceb59]),_0x15a40e),_0x475e62=_0xd51fd2[_0xc244a7(0x12c)](_0xbb4ed2,_0x116c64,_0x2831d5,_0x3f2a4d,_0x5eb3e4);((_0x672c8f=this['_lastPointer'])==null?void 0x0:_0x672c8f[_0xc244a7(0x97)])===_0x475e62['column']&&((_0x293fd2=this[_0xc244a7(0x27a)])==null?void 0x0:_0x293fd2[_0xc244a7(0x2ba)])===_0x475e62[_0xc244a7(0x2ba)]||this['_cursors'][_0xc244a7(0x100)](_0x408f78=>{const _0x4687f8=_0xc244a7;_0x408f78[_0x4687f8(0x3da)](_0x475e62);});},0x64));});}[_0x4c1f23(0xab)](_0x1b126f,_0xf3f0ad){const _0x5aadab=_0x4c1f23;var _0x12d946;const _0x22109a=(_0x12d946=this['_sheetSkeletonManagerService'][_0x5aadab(0x1f1)]())==null?void 0x0:_0x12d946[_0x5aadab(0x10b)];if(!_0x22109a)return;const _0x37bb38=this[_0x5aadab(0x176)]();if(!_0x37bb38)return;this[_0x5aadab(0x232)]['forEach'](_0x1bd30a=>{_0x1bd30a['makeDirty']();});const {scene:_0x56c6c2}=_0x37bb38,_0x1a213f=zr(Array['from'](_0xf3f0ad['values']()))['map'](_0x361a5d=>{const _0x16b5ca=_0x5aadab,{color:_0x3c22d0,range:_0x55a76e,name:_0x10e468,selection:_0x16bf1d,sheetID:_0x20e01c}=_0x361a5d,{startColumn:_0x15656a,startRow:_0x5ec023,endColumn:_0x575340,endRow:_0x16366a}=_0x55a76e,_0x6f75b3=_0x14b841(_0x5ec023,_0x15656a,_0x56c6c2,_0x22109a),_0x5a1026=_0x14b841(_0x16366a,_0x575340,_0x56c6c2,_0x22109a),{columnHeaderHeightAndMarginTop:_0x529303}=_0x22109a,{startX:_0x15c9a1,startY:_0x1b2911}=_0x6f75b3,{endX:_0x3c9c97,endY:_0x1ea178}=_0x5a1026,_0x3d75ee=_0x3c9c97-_0x15c9a1,_0x53200c=_0x1ea178-_0x1b2911,_0x375562={'labelPosition':_0x1b2911-_0x529303>=Le?_0x16b5ca(0x302):_0x16b5ca(0xec),'sheetID':_0x20e01c,'range':_0x55a76e,'color':_0x3c22d0,'name':_0x10e468,'selection':_0x16bf1d,'left':_0x15c9a1,'top':_0x1b2911,'width':_0x3d75ee,'height':_0x53200c,'evented':!0x1,'zIndex':qr};return new Yr(_0x10e468,_0x375562);});_0x56c6c2[_0x5aadab(0x27d)](_0x1a213f,Wr),this['_cursors']=new Set(_0x1a213f);}[_0x4c1f23(0xe6)](){const _0x325458=_0x4c1f23;var _0x351e8e;(_0x351e8e=this[_0x325458(0x232)])==null||_0x351e8e[_0x325458(0x100)](_0x393438=>_0x393438[_0x325458(0x1e4)]());}[_0x4c1f23(0x176)](){const _0x8e74c9=_0x4c1f23;return _0x24a93b(this[_0x8e74c9(0x308)]['unit'],this[_0x8e74c9(0x308)]);}};wt=Jr([mt(0x1,_0x321449(_0x3d1738)),mt(0x2,_0x321449(pe)),mt(0x3,_0x321449(_0x6f1691))],wt);function zr(_0x37503c){const _0x44054b=_0x4c1f23,_0x22ae47=new Map();return _0x37503c[_0x44054b(0x100)](_0x44e9a8=>{const _0x1de20b=_0x44054b;if(_0x22ae47['has'](_0x44e9a8[_0x1de20b(0x363)])){const _0x1bbd27=_0x22ae47[_0x1de20b(0x348)](_0x44e9a8[_0x1de20b(0x363)]);_0x1bbd27['name']+=',\x20'+_0x44e9a8[_0x1de20b(0x124)];}else _0x22ae47['set'](_0x44e9a8[_0x1de20b(0x363)],_0x44e9a8);}),Array[_0x44054b(0x126)](_0x22ae47[_0x44054b(0x3e6)]());}var N=function(){const _0x588d27=_0x4c1f23;return N=Object[_0x588d27(0x31d)]||function(_0x346e77){const _0x6bcf5f=_0x588d27;for(var _0x3c087c,_0x5ea7c9=0x1,_0xfc75e9=arguments['length'];_0x5ea7c9<_0xfc75e9;_0x5ea7c9++){_0x3c087c=arguments[_0x5ea7c9];for(var _0x2af2c5 in _0x3c087c)Object[_0x6bcf5f(0x109)][_0x6bcf5f(0x244)][_0x6bcf5f(0x3af)](_0x3c087c,_0x2af2c5)&&(_0x346e77[_0x2af2c5]=_0x3c087c[_0x2af2c5]);}return _0x346e77;},N[_0x588d27(0x8b)](this,arguments);},Zr=function(_0x8150ca,_0x2ccb5b){const _0x103820=_0x4c1f23;var _0x7c5823={};for(var _0x4ab07b in _0x8150ca)Object['prototype'][_0x103820(0x244)][_0x103820(0x3af)](_0x8150ca,_0x4ab07b)&&_0x2ccb5b[_0x103820(0x383)](_0x4ab07b)<0x0&&(_0x7c5823[_0x4ab07b]=_0x8150ca[_0x4ab07b]);if(_0x8150ca!=null&&typeof Object[_0x103820(0xb5)]==_0x103820(0x37e)){for(var _0xb2fe9c=0x0,_0x4ab07b=Object[_0x103820(0xb5)](_0x8150ca);_0xb2fe9c<_0x4ab07b['length'];_0xb2fe9c++)_0x2ccb5b[_0x103820(0x383)](_0x4ab07b[_0xb2fe9c])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x103820(0x3af)](_0x8150ca,_0x4ab07b[_0xb2fe9c])&&(_0x7c5823[_0x4ab07b[_0xb2fe9c]]=_0x8150ca[_0x4ab07b[_0xb2fe9c]]);}return _0x7c5823;},Wt=_0x2e90f2(function(_0x49ba6c,_0x3955f0){const _0x57b569=_0x4c1f23;var _0x35ad22=_0x49ba6c['icon'],_0x903635=_0x49ba6c['id'],_0x541d2c=_0x49ba6c[_0x57b569(0x1aa)],_0x82ce23=_0x49ba6c[_0x57b569(0x2e6)],_0x39b546=Zr(_0x49ba6c,['icon','id',_0x57b569(0x1aa),_0x57b569(0x2e6)]),_0x776c2a=_0x57b569(0x1de)[_0x57b569(0x13e)](_0x903635,'\x20')[_0x57b569(0x13e)](_0x541d2c||'')['trim'](),_0x581b43=_0x5ed056('_'[_0x57b569(0x13e)](to()));return ks(_0x35ad22,''['concat'](_0x903635),{'defIds':_0x35ad22[_0x57b569(0xd3)],'idSuffix':_0x581b43['current']},N({'ref':_0x3955f0,'className':_0x776c2a},_0x39b546),_0x82ce23);});function ks(_0x265f36,_0x5dd4e9,_0x5d88f3,_0x32133b,_0x566d7d){const _0x4e811c=_0x4c1f23;return _0xff9a40(_0x265f36[_0x4e811c(0x3ca)],N(N({'key':_0x5dd4e9},Qr(_0x265f36,_0x5d88f3,_0x566d7d)),_0x32133b),(eo(_0x265f36,_0x5d88f3)['children']||[])[_0x4e811c(0x17d)](function(_0x11871a,_0x271067){const _0x46e5b7=_0x4e811c;return ks(_0x11871a,''[_0x46e5b7(0x13e)](_0x5dd4e9,'-')[_0x46e5b7(0x13e)](_0x265f36[_0x46e5b7(0x3ca)],'-')['concat'](_0x271067),_0x5d88f3,void 0x0,_0x566d7d);}));}function Qr(_0x5eaa45,_0x59ba22,_0x561ad8){const _0x396ec0=_0x4c1f23;var _0x4ac996=N({},_0x5eaa45['attrs']);_0x561ad8!=null&&_0x561ad8[_0x396ec0(0x379)]&&_0x4ac996[_0x396ec0(0x291)]===_0x396ec0(0x379)&&(_0x4ac996[_0x396ec0(0x291)]=_0x561ad8['colorChannel1']);var _0xaa8075=_0x59ba22[_0x396ec0(0xd3)];return!_0xaa8075||_0xaa8075[_0x396ec0(0x78)]===0x0||(_0x5eaa45[_0x396ec0(0x3ca)]===_0x396ec0(0x2a1)&&_0x4ac996['xlink:href']&&(_0x4ac996[_0x396ec0(0x278)]=_0x4ac996[_0x396ec0(0x278)]+_0x59ba22[_0x396ec0(0xb1)]),Object[_0x396ec0(0x268)](_0x4ac996)['forEach'](function(_0x26aec5){const _0x230f1a=_0x396ec0;var _0xe364c3=_0x26aec5[0x0],_0x22db70=_0x26aec5[0x1];typeof _0x22db70==_0x230f1a(0x256)&&(_0x4ac996[_0xe364c3]=_0x22db70['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x59ba22[_0x230f1a(0xb1)],')')));})),_0x4ac996;}function eo(_0x588e9d,_0x467665){const _0x471625=_0x4c1f23;var _0x199a5d,_0x2d3085=_0x467665[_0x471625(0xd3)];return!_0x2d3085||_0x2d3085['length']===0x0?_0x588e9d:_0x588e9d[_0x471625(0x3ca)]===_0x471625(0x25f)&&(!((_0x199a5d=_0x588e9d['children'])===null||_0x199a5d===void 0x0)&&_0x199a5d[_0x471625(0x78)])?N(N({},_0x588e9d),{'children':_0x588e9d['children'][_0x471625(0x17d)](function(_0x33ca81){const _0x23dfb4=_0x471625;return typeof _0x33ca81[_0x23dfb4(0x279)]['id']==_0x23dfb4(0x256)&&_0x2d3085&&_0x2d3085[_0x23dfb4(0x383)](_0x33ca81['attrs']['id'])>-0x1?N(N({},_0x33ca81),{'attrs':N(N({},_0x33ca81[_0x23dfb4(0x279)]),{'id':_0x33ca81[_0x23dfb4(0x279)]['id']+_0x467665[_0x23dfb4(0xb1)]})}):_0x33ca81;})}):_0x588e9d;}function to(){const _0x5648bc=_0x4c1f23;return Math[_0x5648bc(0x328)]()['toString'](0x24)[_0x5648bc(0x1be)](0x2,0x8);}Wt[_0x4c1f23(0x2de)]=_0x4c1f23(0xc4);var so={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x29c)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x211),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':_0x4c1f23(0x154),'strokeWidth':1.2}}]},{'tag':_0x4c1f23(0x25f),'attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':_0x4c1f23(0x104)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Bs=_0x2e90f2(function(_0x381628,_0x9e719a){const _0x4b4765=_0x4c1f23;return _0xff9a40(Wt,Object[_0x4b4765(0x31d)]({},_0x381628,{'id':_0x4b4765(0x2a9),'ref':_0x9e719a,'icon':so}));});Bs[_0x4c1f23(0x2de)]=_0x4c1f23(0x9e);var io={'tag':_0x4c1f23(0x92),'attrs':{'fill':_0x4c1f23(0x3e2),'viewBox':_0x4c1f23(0x24a),'width':_0x4c1f23(0x2d5),'height':_0x4c1f23(0x2d5)},'children':[{'tag':'g','attrs':{'clipPath':_0x4c1f23(0x1ec)},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'stroke':_0x4c1f23(0x20c),'d':_0x4c1f23(0x18f),'strokeLinecap':_0x4c1f23(0x154),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4c1f23(0x3a4),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x4c1f23(0x16e),'attrs':{'fill':_0x4c1f23(0x3f6),'d':_0x4c1f23(0x21d),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},Vs=_0x2e90f2(function(_0x53cc5a,_0x513ded){const _0x3ce99a=_0x4c1f23;return _0xff9a40(Wt,Object[_0x3ce99a(0x31d)]({},_0x53cc5a,{'id':'on-line-single','ref':_0x513ded,'icon':io}));});Vs[_0x4c1f23(0x2de)]=_0x4c1f23(0x7b);const no=_0x4c1f23(0x24e),ro='univer-online-status-title',oo=_0x4c1f23(0x2c3),ao='univer-online',co='univer-offline',we={'onlineStatusIcon':no,'onlineStatusTitle':ro,'onlineStatus':oo,'online':ao,'offline':co};function ho(_0x19046c){const _0x2463d5=_0x4c1f23;switch(_0x19046c){case w[_0x2463d5(0x3d4)]:return _0x2463d5(0x32b);case w['CONFLICT']:return _0x2463d5(0x22a);case w[_0x2463d5(0x1c6)]:return _0x2463d5(0x1b8);case w[_0x2463d5(0x3df)]:return _0x2463d5(0x33f);case w['PENDING']:case w[_0x2463d5(0x1ca)]:case w['AWAITING_WITH_PENDING']:return _0x2463d5(0xbd);case w['SYNCED']:return _0x2463d5(0x337);}}function lo(_0x513031){const _0x3a06d4=_0x4c1f23,{status$:_0x13590f}=_0x513031,_0x1a3465=_0x481936(_0x13590f,w[_0x3a06d4(0x3df)]),_0x339073=_0x18fbb6(_0x2e153b),_0x203039=_0x18fbb6(ce),_0xff894c=_0x1a3465!==w[_0x3a06d4(0x3d4)],_0x3a20f8=_0x339073['t'](ho(_0x1a3465)),_0x36ee32=_0x42940b(we['onlineStatus'],{[we['online']]:_0xff894c,[we[_0x3a06d4(0x209)]]:!_0xff894c}),_0x480c1c=_0xff894c?_0x1e4ea9[_0x3a06d4(0x3c7)](Vs,null):_0x1e4ea9[_0x3a06d4(0x3c7)](Bs,null),_0x311d25=_0x1d425c(()=>{const _0x1f14b0=_0x3a06d4;_0xff894c||_0x203039[_0x1f14b0(0x37a)]();},[_0xff894c,_0x203039]);function _0x17cf92(){const _0x5d81db=_0x3a06d4;return _0x1e4ea9['createElement'](_0x5d81db(0x21c),{'className':_0x36ee32,'onClick':_0x311d25},_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x365)]},_0x480c1c),_0x1e4ea9[_0x5d81db(0x3c7)](_0x5d81db(0x21c),{'className':we[_0x5d81db(0x261)]},_0x3a20f8));}return _0xff894c?_0x17cf92():_0x1e4ea9[_0x3a06d4(0x3c7)](_0x465a5c,{'title':_0x339073['t'](_0x3a06d4(0x2db))},_0x17cf92());}var _o=Object[_0x4c1f23(0x2e9)],uo=Object[_0x4c1f23(0x133)],fo=(_0x18b214,_0x2d3a05,_0x4c7f88,_0x2b1f3b)=>{for(var _0x11640c=_0x2b1f3b>0x1?void 0x0:_0x2b1f3b?uo(_0x2d3a05,_0x4c7f88):_0x2d3a05,_0x1c3355=_0x18b214['length']-0x1,_0x254a57;_0x1c3355>=0x0;_0x1c3355--)(_0x254a57=_0x18b214[_0x1c3355])&&(_0x11640c=(_0x2b1f3b?_0x254a57(_0x2d3a05,_0x4c7f88,_0x11640c):_0x254a57(_0x11640c))||_0x11640c);return _0x2b1f3b&&_0x11640c&&_o(_0x2d3a05,_0x4c7f88,_0x11640c),_0x11640c;},He=(_0x375278,_0x1f1169)=>(_0x2b54f6,_0x282119)=>_0x1f1169(_0x2b54f6,_0x282119,_0x375278);let Ue=class extends _0x22db72{constructor(_0x4bbe41,_0x2e5d25,_0x105acf,_0x11ac0d){const _0x4b5c9b=_0x4c1f23;super(),l(this,_0x4b5c9b(0xc8),new _0x2ec58d(w['NOT_COLLAB'])),(this[_0x4b5c9b(0x310)]=_0x4bbe41,this['_uiPartsService']=_0x2e5d25,this['_injector']=_0x105acf,this[_0x4b5c9b(0x233)]=_0x11ac0d,this[_0x4b5c9b(0x2d7)](),this[_0x4b5c9b(0x318)]());}[_0x4c1f23(0x318)](){const _0x41ac79=_0x4c1f23;this[_0x41ac79(0x248)](this[_0x41ac79(0x310)][_0x41ac79(0x2e2)][_0x41ac79(0x1a7)](_0x4e9858(()=>{const _0x228ffb=_0x41ac79,_0x3340bb=this[_0x228ffb(0x310)]['getFocusedUnit']();return _0x3340bb?this[_0x228ffb(0x233)][_0x228ffb(0x2b7)](_0x3340bb[_0x228ffb(0x34e)]()):_0x570d55(null);}),_0x4e9858(_0x2566af=>_0x2566af?_0x2566af[_0x41ac79(0x380)]:_0x570d55(w['NOT_COLLAB'])))[_0x41ac79(0x280)](_0x403240=>{const _0x536743=_0x41ac79;this['_status$'][_0x536743(0x23d)](_0x403240);}));}[_0x4c1f23(0x2d7)](){const _0x3bd6c6=_0x4c1f23;this[_0x3bd6c6(0x248)](this[_0x3bd6c6(0x284)][_0x3bd6c6(0xfd)](_0x385326[_0x3bd6c6(0x296)],()=>_0x538d64(mo({'status$':this['_status$']['asObservable']()}),this[_0x3bd6c6(0x162)])));}};Ue=fo([He(0x0,_0x375068),He(0x1,_0x3fbc73),He(0x2,_0x321449(_0x313fa0)),He(0x3,_0x321449(Ae))],Ue);function mo(_0x30089d){const {status$:_0x25c1fd}=_0x30089d;return function(){const _0x2d2e78=_0x4c7d;return _0x1e4ea9[_0x2d2e78(0x3c7)](lo,{'status$':_0x25c1fd});};}const Fs=_0x2d62b5(_0x4c1f23(0x359));var go=Object[_0x4c1f23(0x2e9)],So=Object['getOwnPropertyDescriptor'],po=(_0x2893df,_0x54fcbd,_0x36864f,_0x1386bf)=>{const _0x1afd3f=_0x4c1f23;for(var _0x165a9f=_0x1386bf>0x1?void 0x0:_0x1386bf?So(_0x54fcbd,_0x36864f):_0x54fcbd,_0x360a21=_0x2893df[_0x1afd3f(0x78)]-0x1,_0x3cb4e8;_0x360a21>=0x0;_0x360a21--)(_0x3cb4e8=_0x2893df[_0x360a21])&&(_0x165a9f=(_0x1386bf?_0x3cb4e8(_0x54fcbd,_0x36864f,_0x165a9f):_0x3cb4e8(_0x165a9f))||_0x165a9f);return _0x1386bf&&_0x165a9f&&go(_0x54fcbd,_0x36864f,_0x165a9f),_0x165a9f;},me=(_0x31a9ee,_0x4c44b7)=>(_0x2b33df,_0x5b467d)=>_0x4c44b7(_0x2b33df,_0x5b467d,_0x31a9ee);let qe=class extends _0x2dacfb{constructor(_0x245393,_0xf1fa0e,_0x59631f,_0x50becd,_0x414d9d,_0x416972){const _0x4e06e0=_0x4c1f23;super(),this[_0x4e06e0(0x148)]=_0x245393,this['_logService']=_0xf1fa0e,this['_commandService']=_0x59631f,this[_0x4e06e0(0xd7)]=_0x50becd,this[_0x4e06e0(0x3d9)]=_0x414d9d,_0x416972?_0x416972==null||_0x416972[_0x4e06e0(0x2c7)]()[_0x4e06e0(0x90)](()=>this[_0x4e06e0(0x34a)]()):(this['_logService']['debug'](_0x4e06e0(0x336),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async['_init'](){const _0xc37d66=_0x4c1f23,_0x38654e=this['_urlService']['getParam'](_0xc37d66(0x287)),_0x5bf56e=this[_0xc37d66(0x148)][_0xc37d66(0xa0)](_0xc37d66(0x1d3));if(!_0x38654e||!_0x5bf56e){this[_0xc37d66(0x128)]['debug'](_0xc37d66(0x336),_0xc37d66(0x190));return;}switch(Number(_0x5bf56e)){case H[_0xc37d66(0x10d)]:{const _0x3c7178=await this[_0xc37d66(0x19a)](_0x38654e);this[_0xc37d66(0x2ac)](_0x3c7178);break;}case H[_0xc37d66(0x11d)]:{await this[_0xc37d66(0x334)](_0x38654e);break;}default:{this[_0xc37d66(0x128)][_0xc37d66(0x17a)]('[DataLoaderController]',_0xc37d66(0xb0));break;}}}async[_0x4c1f23(0x2ac)](_0x428a46){const _0x4b915e=_0x4c1f23;await this[_0x4b915e(0x264)](_0x428a46),_0x428a46[_0x4b915e(0x123)][_0x4b915e(0x1a7)](_0x289d57(this[_0x4b915e(0x265)]))[_0x4b915e(0x280)](_0x4f3229=>{const _0x3cbf16=_0x4b915e;_0x4f3229&&this[_0x3cbf16(0xc5)](_0x4f3229);}),this['_urlService'][_0x4b915e(0x112)][_0x4b915e(0x1a7)](_0x289d57(this['dispose$']))['subscribe'](()=>this[_0x4b915e(0x264)](_0x428a46));}[_0x4c1f23(0xc5)](_0x48d6ae,_0x19b97b=!0x1){const _0x2a9375=_0x4c1f23,_0x250f7c=this[_0x2a9375(0x148)][_0x2a9375(0xa0)](_0x2a9375(0xf1));_0x48d6ae[_0x2a9375(0x1a9)]()!==_0x250f7c&&this[_0x2a9375(0x148)][_0x2a9375(0x199)](_0x2a9375(0xf1),_0x48d6ae['getSheetId'](),_0x19b97b);}async['_updateSubUnitFromURLParams'](_0x13f531){const _0x2aad15=_0x4c1f23;var _0x106810;const _0x1ce14f=this[_0x2aad15(0x148)][_0x2aad15(0xa0)](_0x2aad15(0xf1));if(!_0x1ce14f||!_0x13f531['getSheetBySheetId'](_0x1ce14f)){const _0x88041d=_0x13f531[_0x2aad15(0x2f2)]()[0x0],_0x21c651=_0x13f531[_0x2aad15(0x77)](_0x88041d);if(!_0x21c651)return;this[_0x2aad15(0xc5)](_0x21c651,!0x0),await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531['getUnitId'](),'subUnitId':_0x88041d});return;}((_0x106810=_0x13f531[_0x2aad15(0x135)]())==null?void 0x0:_0x106810['getSheetId']())!==_0x1ce14f&&await this[_0x2aad15(0x1ef)][_0x2aad15(0x153)](_0x2ca650['id'],{'unitId':_0x13f531[_0x2aad15(0x34e)](),'subUnitId':_0x1ce14f});}async[_0x4c1f23(0x19a)](_0x4d5e5d){const _0x500621=_0x4c1f23;let _0x451762=0x0;const _0xd60fda=await this[_0x500621(0xd7)]['loadOfflineData'](_0x4d5e5d);return _0xd60fda&&(_0xd60fda['awaitingChangeset']||_0xd60fda[_0x500621(0x3d7)]['length']!==0x0)&&(_0x451762=_0xd60fda['rev']),_0x451762===0x0&&this[_0x500621(0x128)][_0x500621(0x20b)](_0x500621(0x336),_0x500621(0x382)),this[_0x500621(0x3d9)][_0x500621(0x201)](_0x4d5e5d,_0x451762);}async['_loadDoc'](_0xafbb0f){const _0x56578c=_0x4c1f23;let _0xec9079=0x0;const _0x3dce5a=await this[_0x56578c(0xd7)][_0x56578c(0x107)](_0xafbb0f);return _0x3dce5a&&(_0x3dce5a['awaitingChangeset']||_0x3dce5a[_0x56578c(0x3d7)][_0x56578c(0x78)]!==0x0)&&(_0xec9079=_0x3dce5a[_0x56578c(0x269)]),_0xec9079===0x0&&this['_logService']['debug'](_0x56578c(0x336),_0x56578c(0x382)),this[_0x56578c(0x3d9)][_0x56578c(0x293)](_0xafbb0f,_0xec9079);}};qe=po([me(0x0,Fs),me(0x1,_0x50688a),me(0x2,_0x265863),me(0x3,_0x321449(D)),me(0x4,_0x321449(_0x38d13f)),me(0x5,_0x9bfc3c(_0x51139b))],qe);var vo=Object[_0x4c1f23(0x2e9)],Io=Object[_0x4c1f23(0x133)],Eo=(_0x5a47d9,_0x5ca22b,_0x29d2b9,_0x103ef9)=>{for(var _0x2a9150=_0x103ef9>0x1?void 0x0:_0x103ef9?Io(_0x5ca22b,_0x29d2b9):_0x5ca22b,_0x4846d1=_0x5a47d9['length']-0x1,_0x4e7bfb;_0x4846d1>=0x0;_0x4846d1--)(_0x4e7bfb=_0x5a47d9[_0x4846d1])&&(_0x2a9150=(_0x103ef9?_0x4e7bfb(_0x5ca22b,_0x29d2b9,_0x2a9150):_0x4e7bfb(_0x2a9150))||_0x2a9150);return _0x103ef9&&_0x2a9150&&vo(_0x5ca22b,_0x29d2b9,_0x2a9150),_0x2a9150;},fs=(_0x56c699,_0x5e42eb)=>(_0x2e1544,_0x118a2d)=>_0x5e42eb(_0x2e1544,_0x118a2d,_0x56c699);const Co=_0x4c1f23(0x217),bo=_0x4c1f23(0x371);let ze=class extends _0x22db72{constructor(_0x320960,_0x2a81ce){const _0x495c39=_0x4c1f23;super(),this[_0x495c39(0x310)]=_0x320960,this['_configService']=_0x2a81ce,this['_init']();}[_0x4c1f23(0x34a)](){const _0x2f30f1=_0x4c1f23;this[_0x2f30f1(0x248)](this[_0x2f30f1(0x310)][_0x2f30f1(0x2e2)][_0x2f30f1(0x280)](()=>{const _0x3f44bd=_0x2f30f1;var _0x5c28f7;const _0x16a849=this[_0x3f44bd(0x310)]['getFocusedUnit']();let _0x3916cf=(_0x5c28f7=this[_0x3f44bd(0x132)][_0x3f44bd(0x111)](Co))!=null?_0x5c28f7:bo;_0x16a849 instanceof _0xa32c6e&&(_0x3916cf=_0x16a849[_0x3f44bd(0x124)]),document['title']=_0x3916cf;}));}};ze=Eo([fs(0x0,_0x375068),fs(0x1,_0x4d21d1)],ze);var To=Object['defineProperty'],Ro=Object[_0x4c1f23(0x133)],Oo=(_0x52f303,_0x413bf0,_0x3cccf0,_0x56fae7)=>{const _0x38b666=_0x4c1f23;for(var _0x1192ba=_0x56fae7>0x1?void 0x0:_0x56fae7?Ro(_0x413bf0,_0x3cccf0):_0x413bf0,_0x7066e7=_0x52f303[_0x38b666(0x78)]-0x1,_0x1ecae3;_0x7066e7>=0x0;_0x7066e7--)(_0x1ecae3=_0x52f303[_0x7066e7])&&(_0x1192ba=(_0x56fae7?_0x1ecae3(_0x413bf0,_0x3cccf0,_0x1192ba):_0x1ecae3(_0x1192ba))||_0x1192ba);return _0x56fae7&&_0x1192ba&&To(_0x413bf0,_0x3cccf0,_0x1192ba),_0x1192ba;},gt=(_0x30654f,_0x57ff5d)=>(_0x1a1306,_0x5b1f5e)=>_0x57ff5d(_0x1a1306,_0x5b1f5e,_0x30654f);let Ze=class{constructor(_0x579e08,_0x4ddcbb,_0x1f92ea){const _0x93c9c2=_0x4c1f23;this[_0x93c9c2(0x132)]=_0x579e08,this[_0x93c9c2(0x19f)]=_0x4ddcbb,this[_0x93c9c2(0x3ee)]=_0x1f92ea,this[_0x93c9c2(0x1ba)]();}['init'](){const _0x476d56=_0x4c1f23;this[_0x476d56(0x19f)][_0x476d56(0xa1)]({'priority':0x1,'interceptor':(_0x125874,_0x59b099)=>_0x59b099(_0x125874)[_0x476d56(0x1a7)](_0x42e091(async _0x2a1acd=>{const _0x27cd71=_0x476d56,_0x5bd926=_0x2a1acd;if(_0x5bd926['status']===0x191&&window[_0x27cd71(0x22f)](this[_0x27cd71(0x3ee)]['t'](_0x27cd71(0x2ae)))){const _0x135dcf=window['encodeURIComponent'](window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]);window[_0x27cd71(0x3b2)][_0x27cd71(0x165)]=this[_0x27cd71(0x12d)]()+_0x27cd71(0x3d0)+_0x135dcf;}return _0x5bd926;}))});}[_0x4c1f23(0x12d)](){const _0x505f63=_0x4c1f23;var _0x1ca43f,_0x4679dd;const _0x3b3544=this[_0x505f63(0x132)]['getConfig'](wn),_0x1858f2=this['_configService'][_0x505f63(0x111)](L);return(_0x4679dd=(_0x1ca43f=_0x1858f2==null?void 0x0:_0x1858f2[_0x505f63(0x14a)])!=null?_0x1ca43f:_0x3b3544)!=null?_0x4679dd:Pn;}};Ze=Oo([gt(0x0,_0x4d21d1),gt(0x1,_0x321449(_0x1fbfa2)),gt(0x2,_0x321449(_0x2e153b))],Ze);var Do=Object[_0x4c1f23(0x2e9)],wo=Object[_0x4c1f23(0x133)],Po=(_0x5a4a36,_0x1750b5,_0x891e87,_0x5a2079)=>{const _0x1f0489=_0x4c1f23;for(var _0x1ea626=_0x5a2079>0x1?void 0x0:_0x5a2079?wo(_0x1750b5,_0x891e87):_0x1750b5,_0x3fb4a3=_0x5a4a36[_0x1f0489(0x78)]-0x1,_0x22d94d;_0x3fb4a3>=0x0;_0x3fb4a3--)(_0x22d94d=_0x5a4a36[_0x3fb4a3])&&(_0x1ea626=(_0x5a2079?_0x22d94d(_0x1750b5,_0x891e87,_0x1ea626):_0x22d94d(_0x1ea626))||_0x1ea626);return _0x5a2079&&_0x1ea626&&Do(_0x1750b5,_0x891e87,_0x1ea626),_0x1ea626;},ms=(_0x5fc870,_0x592e9c)=>(_0x33fa57,_0xd46c5c)=>_0x592e9c(_0x33fa57,_0xd46c5c,_0x5fc870);const yo=_0x4c1f23(0x2ca),No=_0x4c1f23(0x276);let Pt=class extends _0x22db72{constructor(_0x369fd9,_0x58d2e0){const _0x102c0b=_0x4c1f23;super(),this[_0x102c0b(0x8c)]=_0x369fd9,this['_configService']=_0x58d2e0,this[_0x102c0b(0x1fd)]();}[_0x4c1f23(0x1fd)](){const _0x39624d=_0x4c1f23,_0x18ef28=this;this['disposeWithMe'](this['_HTTPService'][_0x39624d(0xa1)]({'priority':0x3e7,'interceptor':_0x34ac01({'isMatch'(_0x4b634d){const _0x2cbf7b=_0x39624d;var _0x3c599e;if(_0x4b634d[_0x2cbf7b(0xbb)]===_0x2cbf7b(0x353)&&((_0x3c599e=_0x4b634d[_0x2cbf7b(0x3b8)])!=null&&_0x3c599e[_0x2cbf7b(0x1d2)])){const {objectID:_0x382f30,objectType:_0x5ee163}=_0x4b634d[_0x2cbf7b(0x3b8)][_0x2cbf7b(0x1d2)]||{};if(!_0x382f30||_0x5ee163===void 0x0)return!0x1;const _0x4e0730=_0x18ef28[_0x2cbf7b(0x3c5)]()+'/'+_0x5ee163+_0x2cbf7b(0x198)+_0x382f30+_0x2cbf7b(0x38c);if(_0x4b634d[_0x2cbf7b(0x121)]===_0x4e0730)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x699429){const _0xde98c=_0x39624d;var _0x32c6fc;return(_0x32c6fc=_0x699429[_0xde98c(0x3b8)])==null?void 0x0:_0x32c6fc[_0xde98c(0x1d2)];},'mergeParamsToRequest'(_0x3bd169,_0xaa5dd){const _0x22a847=_0x39624d,_0x2050b4=_0x18ef28['_getAPIPrefixPath']()+_0x22a847(0xb7),_0x3aa58a=_0x3bd169[_0x22a847(0x3cd)]((_0x34f3d5,_0x302c5f)=>{const _0x365627=_0x22a847,{unitID:_0x37a769,objectID:_0x1577ae,objectType:_0x39cc37,actions:_0x1ee6c1}=_0x302c5f;return _0x34f3d5[_0x37a769]||(_0x34f3d5[_0x37a769]={}),_0x34f3d5[_0x37a769][_0x1577ae]||(_0x34f3d5[_0x37a769][_0x1577ae]={'objectID':_0x1577ae,'objectType':_0x39cc37,'actions':[]}),_0x34f3d5[_0x37a769][_0x1577ae][_0x365627(0x33d)]['push'](..._0x1ee6c1),_0x34f3d5;},{}),_0x4765de=[];for(const _0x130edf in _0x3aa58a)for(const _0x3e2586 in _0x3aa58a[_0x130edf]){const {actions:_0x5e436d,objectType:_0x568f5b}=_0x3aa58a[_0x130edf][_0x3e2586],_0x34c6d1=[...new Set(_0x5e436d)];_0x4765de[_0x22a847(0x27c)]({'unitID':_0x130edf,'objectID':_0x3e2586,'objectType':_0x568f5b,'actions':_0x34c6d1});}return new _0x4a19a1(_0x22a847(0x353),_0x2050b4,{'headers':_0xaa5dd[_0x22a847(0x1b1)],'withCredentials':_0xaa5dd[_0x22a847(0x140)],'responseType':_0xaa5dd[_0x22a847(0x83)],'body':{'requests':_0x4765de}});}},{'distributeResult'(_0x56a15c,_0x47b889){const _0x35bd2a=_0x39624d,{objectActions:_0x2957f5}=_0x56a15c;return _0x47b889[_0x35bd2a(0x17d)](_0x48a711=>{const _0x4b7a68=_0x35bd2a,{unitID:_0x471f1a,objectID:_0x28013b,actions:_0x18c9db}=_0x48a711,_0x7676aa=_0x2957f5['find'](_0x8bd79e=>_0x8bd79e[_0x4b7a68(0x1f3)]===_0x471f1a&&_0x8bd79e[_0x4b7a68(0xa2)]===_0x28013b),_0x267060=_0x18c9db[_0x4b7a68(0x17d)](_0x2d229a=>_0x7676aa==null?void 0x0:_0x7676aa[_0x4b7a68(0x33d)]['find'](_0x3e2eae=>_0x3e2eae[_0x4b7a68(0x2fc)]===_0x2d229a))['filter'](_0x44f481=>!!_0x44f481);return{'config':_0x48a711,'result':{'actions':_0x267060,'error':_0x56a15c[_0x4b7a68(0x17a)]}};});}})}));}[_0x4c1f23(0x3c5)](){const _0x2ce926=_0x4c1f23;var _0x38bc7e,_0x2a4e71;const _0x1f27ba=this[_0x2ce926(0x132)]['getConfig'](yo),_0x212f4f=this[_0x2ce926(0x132)][_0x2ce926(0x111)](L);return(_0x2a4e71=(_0x38bc7e=_0x212f4f==null?void 0x0:_0x212f4f[_0x2ce926(0x225)])!=null?_0x38bc7e:_0x1f27ba)!=null?_0x2a4e71:No;}async[_0x4c1f23(0x39a)](_0x44c123){const _0x41de4c=_0x4c1f23,_0x2ea342=this['_getAPIPrefixPath']()+'/'+_0x44c123[_0x41de4c(0x2ef)]+_0x41de4c(0x1d9);return(await this[_0x41de4c(0x8c)][_0x41de4c(0x341)](_0x2ea342,{'body':_0x44c123}))['body']['objectID']||'';}async[_0x4c1f23(0x2b1)](_0x913f15){const _0x6afd4f=_0x4c1f23,_0x262549=this['_getAPIPrefixPath']()+_0x6afd4f(0x118);return(await this[_0x6afd4f(0x8c)]['post'](_0x262549,{'body':_0x913f15}))[_0x6afd4f(0x1d2)]['objects'];}async[_0x4c1f23(0x36e)](_0x898dd8){const _0xef5e64=_0x4c1f23,_0x2b93d3=this['_getAPIPrefixPath']()+'/'+_0x898dd8[_0xef5e64(0x2ef)]+'/object/'+_0x898dd8[_0xef5e64(0xa2)];await this['_HTTPService']['put'](_0x2b93d3,{'body':_0x898dd8});}async[_0x4c1f23(0xeb)](_0x52db98){const _0x235acc=_0x4c1f23,_0x31c40f=this['_getAPIPrefixPath']()+'/'+_0x52db98[_0x235acc(0x2ef)]+_0x235acc(0x198)+_0x52db98[_0x235acc(0xa2)]+_0x235acc(0x38c);return(await this[_0x235acc(0x8c)]['post'](_0x31c40f,{'body':_0x52db98}))[_0x235acc(0x1d2)]['actions'];}async['batchAllowed'](_0x3f7c59){const _0x138d18=_0x4c1f23,_0x3b5890=this[_0x138d18(0x3c5)]()+_0x138d18(0xb7);return(await this[_0x138d18(0x8c)][_0x138d18(0x341)](_0x3b5890,{'body':{'requests':_0x3f7c59}}))[_0x138d18(0x1d2)]['objectActions'];}async['listRoles'](_0x15c0c2){const _0x50813c=_0x4c1f23,_0x5cbc44=this[_0x50813c(0x3c5)]()+'/'+_0x15c0c2[_0x50813c(0x2ef)]+_0x50813c(0x13f),_0x4ecc26=await this[_0x50813c(0x8c)][_0x50813c(0x341)](_0x5cbc44,{'body':_0x15c0c2});return{'roles':_0x4ecc26[_0x50813c(0x1d2)][_0x50813c(0x18a)],'actions':_0x4ecc26[_0x50813c(0x1d2)]['actions']};}async['deleteCollaborator'](_0x58c28a){const _0x23a693=_0x4c1f23,_0x92f122=this[_0x23a693(0x3c5)]()+_0x23a693(0x180);await this[_0x23a693(0x8c)][_0x23a693(0xd0)](_0x92f122,{'params':{'collaboratorID':_0x58c28a['collaboratorID'],'objectID':_0x58c28a['objectID'],'unitID':_0x58c28a[_0x23a693(0x1f3)]}});}async[_0x4c1f23(0x3d3)](_0x355a31){const _0x13972e=_0x4c1f23,_0x597721=this[_0x13972e(0x3c5)]()+'/collaborator';await this[_0x13972e(0x8c)][_0x13972e(0x32d)](_0x597721,{'body':_0x355a31});}async[_0x4c1f23(0x1ea)](_0x197efa){const _0x99f4db=_0x4c1f23,_0xfa1a55=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x99f4db(0x8c)]['post'](_0xfa1a55,{'body':_0x197efa});}async[_0x4c1f23(0x2fe)](_0x5951da){const _0x1fc495=_0x4c1f23,_0x378438=this[_0x1fc495(0x3c5)]()+'/collaborator';return(await this['_HTTPService'][_0x1fc495(0x348)](_0x378438,{'params':{'objectID':_0x5951da[_0x1fc495(0xa2)],'unitID':_0x5951da[_0x1fc495(0x1f3)]}}))[_0x1fc495(0x1d2)][_0x1fc495(0x289)];}async['putCollaborators'](_0x917012){const _0x2829cb=_0x4c1f23,_0x1fbe1f=this[_0x2829cb(0x3c5)]()+_0x2829cb(0x180);await this[_0x2829cb(0x8c)][_0x2829cb(0x23a)](_0x1fbe1f,{'body':_0x917012});}};Pt=Po([ms(0x0,_0x321449(_0x1fbfa2)),ms(0x1,_0x321449(_0x4d21d1))],Pt);var Uo=Object[_0x4c1f23(0x2e9)],Mo=Object[_0x4c1f23(0x133)],Ao=(_0x4c57d3,_0x1aae63,_0x5b9bd6,_0x486e15)=>{const _0x4ad00f=_0x4c1f23;for(var _0x5538a4=_0x486e15>0x1?void 0x0:_0x486e15?Mo(_0x1aae63,_0x5b9bd6):_0x1aae63,_0x352966=_0x4c57d3[_0x4ad00f(0x78)]-0x1,_0xbe6a52;_0x352966>=0x0;_0x352966--)(_0xbe6a52=_0x4c57d3[_0x352966])&&(_0x5538a4=(_0x486e15?_0xbe6a52(_0x1aae63,_0x5b9bd6,_0x5538a4):_0xbe6a52(_0x5538a4))||_0x5538a4);return _0x486e15&&_0x5538a4&&Uo(_0x1aae63,_0x5b9bd6,_0x5538a4),_0x5538a4;},Lo=(_0x46b8c9,_0x492286)=>(_0x4e9739,_0x10c7dc)=>_0x492286(_0x4e9739,_0x10c7dc,_0x46b8c9);let Qe=class{constructor(_0xab3630){const _0x3e05a1=_0x4c1f23;this[_0x3e05a1(0x19f)]=_0xab3630,this[_0x3e05a1(0x7e)]();}['_initRequestHeader'](){const _0x1ce8db=_0x4c1f23;this[_0x1ce8db(0x19f)]['registerHTTPInterceptor']({'interceptor':(_0x48eefd,_0x4ce275)=>{const _0xafd927=_0x1ce8db,_0x4cf9a9=_0x48eefd[_0xafd927(0x1b1)],_0x22fd3a=_0x575ac8();return _0x22fd3a&&_0x4cf9a9[_0xafd927(0x329)](_0xafd927(0x249),_0x22fd3a),_0x4ce275(_0x48eefd);}});}};Qe=Ao([Lo(0x0,_0x321449(_0x1fbfa2))],Qe);var $o=Object['defineProperty'],jo=Object['getOwnPropertyDescriptor'],xo=(_0x1fe0e0,_0xeeba48,_0x5e2167,_0x21cc00)=>{const _0x54995b=_0x4c1f23;for(var _0x226d7f=_0x21cc00>0x1?void 0x0:_0x21cc00?jo(_0xeeba48,_0x5e2167):_0xeeba48,_0x576b24=_0x1fe0e0[_0x54995b(0x78)]-0x1,_0x1c5933;_0x576b24>=0x0;_0x576b24--)(_0x1c5933=_0x1fe0e0[_0x576b24])&&(_0x226d7f=(_0x21cc00?_0x1c5933(_0xeeba48,_0x5e2167,_0x226d7f):_0x1c5933(_0x226d7f))||_0x226d7f);return _0x21cc00&&_0x226d7f&&$o(_0xeeba48,_0x5e2167,_0x226d7f),_0x226d7f;},St=(_0x52f609,_0x4397a8)=>(_0x5e77a8,_0x4dae57)=>_0x4397a8(_0x5e77a8,_0x4dae57,_0x52f609);const Ho=['image/png',_0x4c1f23(0xca),_0x4c1f23(0x1d4),_0x4c1f23(0x372),_0x4c1f23(0xa6)],ko=0x5*0x400*0x400,Bo=_0x4c1f23(0x3d8),Vo=_0x4c1f23(0x2a3),Fo=_0x4c1f23(0x22e),Wo='/universer-api/file/{fileID}/sign-url';let yt=class{constructor(_0x11f57b,_0x45d1b9,_0x2476db){const _0x58a533=_0x4c1f23;l(this,_0x58a533(0x376),0x0),l(this,_0x58a533(0x1f9),new _0xacaad6()),l(this,_0x58a533(0x26c),this[_0x58a533(0x1f9)]),l(this,_0x58a533(0x21b),new Map()),(this[_0x58a533(0x19f)]=_0x11f57b,this[_0x58a533(0x132)]=_0x45d1b9,this[_0x58a533(0x310)]=_0x2476db);}['setWaitCount'](_0x319468){const _0x36025d=_0x4c1f23;this['_waitCount']=_0x319468,this[_0x36025d(0x1f9)][_0x36025d(0x23d)](_0x319468);}[_0x4c1f23(0x28e)](_0x11fc23,_0x5a3c10){const _0x1d0a54=_0x4c1f23;if(_0x5a3c10===_0x1946dd[_0x1d0a54(0x10e)]){const _0x211e14=new Image();return _0x211e14[_0x1d0a54(0x181)]=_0x11fc23,_0x211e14;}return this['_imageSourceCache'][_0x1d0a54(0x348)](_0x11fc23);}[_0x4c1f23(0x246)](_0x1d3f27,_0x1022ae,_0x121c12){const _0x2cacfc=_0x4c1f23;_0x1022ae===_0x1946dd[_0x2cacfc(0x10e)]||_0x121c12==null||this[_0x2cacfc(0x21b)][_0x2cacfc(0x329)](_0x1d3f27,_0x121c12);}async['getImage'](_0x388338){const _0x57f0c0=_0x4c1f23;try{const _0xd04b4d=this[_0x57f0c0(0x196)](this[_0x57f0c0(0x16b)](),''+_0x388338),_0x2fbdd9=(await this[_0x57f0c0(0x19f)]['get'](_0xd04b4d))['body'];if(_0x2fbdd9['error']&&_0x2fbdd9['error'][_0x57f0c0(0x397)]===Ms['OK']){const _0x43331c=new URL(_0x2fbdd9[_0x57f0c0(0x121)],this[_0x57f0c0(0x1b3)]())['toString']();return Promise[_0x57f0c0(0x3be)](_0x43331c);}return Promise[_0x57f0c0(0x15f)](_0x2fbdd9[_0x57f0c0(0x17a)]);}catch(_0x4b8547){return Promise[_0x57f0c0(0x15f)](_0x4b8547);}}async[_0x4c1f23(0xe7)](_0x274d14){const _0x41d423=_0x4c1f23;let _0x476683='';if(!Ho[_0x41d423(0x116)](_0x274d14['type']))return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_IMAGE_TYPE']));if(_0x274d14['size']>ko)return this[_0x41d423(0x2f9)](),Promise[_0x41d423(0x15f)](new Error(_0x1f89ce['ERROR_EXCEED_SIZE']));try{const _0x28e239=new FormData();_0x28e239[_0x41d423(0x344)](_0x41d423(0x207),_0x274d14);const _0x5d2b28=this[_0x41d423(0x310)]['getFocusedUnit'](),_0x6f69fd=_0x5d2b28==null?void 0x0:_0x5d2b28[_0x41d423(0x34e)]();if(!_0x6f69fd)throw new Error(_0x41d423(0x95));const _0x17bcde=this[_0x41d423(0x79)]()+'?size='+_0x274d14[_0x41d423(0x151)]['toString']()+_0x41d423(0x235)+As[_0x41d423(0x304)]+'&assign='+encodeURIComponent(_0x6f69fd),_0x4a3e32=await(await fetch(_0x17bcde,{'method':_0x41d423(0x353),'body':_0x28e239}))[_0x41d423(0x3ba)]();if(typeof _0x4a3e32[_0x41d423(0x3b0)]!=_0x41d423(0x256))return this[_0x41d423(0x2f9)](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));_0x476683=_0x4a3e32[_0x41d423(0x3b0)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x1f89ce['ERROR_IMAGE']));}return new Promise((_0x536f7c,_0x2d6d34)=>{const _0xc2ee4=_0x41d423,_0x2cb691=new FileReader();_0x2cb691[_0xc2ee4(0x255)](_0x274d14),_0x2cb691['onload']=_0x272a76=>{const _0xc51e30=_0xc2ee4;var _0x39ac4f;const _0x2783ac=(_0x39ac4f=_0x272a76[_0xc51e30(0x2b2)])==null?void 0x0:_0x39ac4f[_0xc51e30(0x2c5)];if(_0x2783ac==null){this[_0xc51e30(0x2f9)](),_0x2d6d34(new Error(_0x1f89ce[_0xc51e30(0x2f1)]));return;}const _0x48903f=_0x403f58[_0xc51e30(0xf0)](0x6);_0x536f7c({'imageId':_0x48903f,'imageSourceType':_0x1946dd[_0xc51e30(0x26a)],'source':_0x476683,'base64Cache':_0x2783ac,'status':_0x1f89ce[_0xc51e30(0x33e)]}),this[_0xc51e30(0x2f9)]();};});}['_getUploadFileURL'](){const _0x19af33=_0x4c1f23;var _0xfb99d4,_0x13db58;const _0x311580=this[_0x19af33(0x132)][_0x19af33(0x111)](Bo),_0x53ebfb=this[_0x19af33(0x132)][_0x19af33(0x111)](L);return(_0x13db58=(_0xfb99d4=_0x53ebfb==null?void 0x0:_0x53ebfb[_0x19af33(0x241)])!=null?_0xfb99d4:_0x311580)!=null?_0x13db58:Vo;}['_getSignURL'](){const _0x56be6c=_0x4c1f23;var _0x4fabe8,_0x5470e7;const _0x3bab7e=this[_0x56be6c(0x132)]['getConfig'](Fo),_0x1fe6a7=this[_0x56be6c(0x132)][_0x56be6c(0x111)](L);return(_0x5470e7=(_0x4fabe8=_0x1fe6a7==null?void 0x0:_0x1fe6a7['signUrlServerUrl'])!=null?_0x4fabe8:_0x3bab7e)!=null?_0x5470e7:Wo;}[_0x4c1f23(0x1b3)](){const _0x1ea07e=_0x4c1f23;var _0x519be2;const _0x4047f8=this[_0x1ea07e(0x132)][_0x1ea07e(0x111)](L);return(_0x519be2=_0x4047f8==null?void 0x0:_0x4047f8['downloadEndpointUrl'])!=null?_0x519be2:location[_0x1ea07e(0xe3)];}[_0x4c1f23(0x196)](_0x3529d1,_0x253db9){const _0x340a07=_0x4c1f23;return _0x3529d1[_0x340a07(0x18e)](_0x340a07(0x178),_0x253db9);}[_0x4c1f23(0x2f9)](){const _0x58ca30=_0x4c1f23;this[_0x58ca30(0x376)]-=0x1,this['_change$'][_0x58ca30(0x23d)](this['_waitCount']);}};yt=xo([St(0x0,_0x321449(_0x1fbfa2)),St(0x1,_0x4d21d1),St(0x2,_0x321449(_0x375068))],yt);var Go=Object['defineProperty'],Yo=Object[_0x4c1f23(0x133)],Ko=(_0x51317b,_0x582bc7,_0x3363cc,_0x2fc0d5)=>{const _0x18d4c6=_0x4c1f23;for(var _0x18ca18=_0x2fc0d5>0x1?void 0x0:_0x2fc0d5?Yo(_0x582bc7,_0x3363cc):_0x582bc7,_0x3929bb=_0x51317b[_0x18d4c6(0x78)]-0x1,_0x151fd1;_0x3929bb>=0x0;_0x3929bb--)(_0x151fd1=_0x51317b[_0x3929bb])&&(_0x18ca18=(_0x2fc0d5?_0x151fd1(_0x582bc7,_0x3363cc,_0x18ca18):_0x151fd1(_0x18ca18))||_0x18ca18);return _0x2fc0d5&&_0x18ca18&&Go(_0x582bc7,_0x3363cc,_0x18ca18),_0x18ca18;},Pe=(_0x18987c,_0x53ad4f)=>(_0x50e1a1,_0x505f4d)=>_0x53ad4f(_0x50e1a1,_0x505f4d,_0x18987c);let et=class extends _0x2dacfb{constructor(_0x9a4408,_0x5ae19d,_0x422e7a,_0x5e92e6,_0x179e4d){const _0x5ab3ad=_0x4c1f23;super(),this[_0x5ab3ad(0x162)]=_0x9a4408,this[_0x5ab3ad(0x310)]=_0x5ae19d,this[_0x5ab3ad(0x15c)]=_0x422e7a,this['_collaborationSessionService']=_0x5e92e6,this[_0x5ab3ad(0x119)]=_0x179e4d,this[_0x5ab3ad(0x240)](),this[_0x5ab3ad(0x185)]();}['_initCloseConn'](){const _0x1defeb=_0x4c1f23,_0x241736=async _0x44854b=>{const _0xef8dbb=_0x4c7d;(await this[_0xef8dbb(0x2a8)][_0xef8dbb(0x2ec)](_0x44854b))[_0xef8dbb(0x99)][_0xef8dbb(0x1a7)](_0x1f1135(_0x4fe7e2=>_0x4fe7e2[_0xef8dbb(0x186)]===_0x273d8c[_0xef8dbb(0x1d7)]),_0x3ae8cf(this['dispose$']))[_0xef8dbb(0x280)](_0x193543=>{const _0x189236=_0xef8dbb,_0x3c6a78=_0x193543,{reason:_0x19bd48}=_0x3c6a78[_0x189236(0x339)];this[_0x189236(0x162)]['get'](_0x5d3b7c)[_0x189236(0x160)]({'type':_0x57eb36[_0x189236(0xcd)],'content':this['_localeService']['t'](_0x189236(0x29e))+'('+_0x19bd48+')'}),this[_0x189236(0x15c)][_0x189236(0xb6)](new _0x42c12f(_0x44854b)['id'],!0x1),this[_0x189236(0x2a8)][_0x189236(0x89)](_0x44854b);});};_0x5de0ce(this[_0x1defeb(0x310)][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x10d)]),this['_univerInstanceService'][_0x1defeb(0x3f7)](_0x4c91c9[_0x1defeb(0x11d)]))['pipe'](_0x3d528e(_0x385708=>_0x385708[_0x1defeb(0x34e)]()),_0x1f1135(_0x3ad20f=>!_0x46dc72(_0x3ad20f)),_0x3ae8cf(this[_0x1defeb(0x265)]))[_0x1defeb(0x280)](_0x4c291a=>{_0x241736(_0x4c291a);});}[_0x4c1f23(0x240)](){const _0x3d169c=_0x4c1f23,_0x6342=async _0x37811c=>{const _0x4d4163=_0x4c7d;(await this[_0x4d4163(0x2a8)][_0x4d4163(0x2ec)](_0x37811c))[_0x4d4163(0x99)][_0x4d4163(0x1a7)](_0x1f1135(_0x487ac7=>_0x487ac7['eventID']===_0x273d8c[_0x4d4163(0x2c9)]),_0x3ae8cf(this[_0x4d4163(0x265)]))[_0x4d4163(0x280)](_0x310fd0=>{const _0xfd56fc=_0x4d4163,_0x164e2e=_0x310fd0,{objectId:_0x192fd4}=_0x164e2e[_0xfd56fc(0x339)],_0x5a0420=this['_injector']['get'](_0x293481);_0x192fd4===_0x37811c?_0x5a0420[_0xfd56fc(0x3de)](_0x37811c):_0x5a0420['refreshPermission'](_0x37811c,_0x192fd4);});};_0x5de0ce(this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9['UNIVER_SHEET']),this[_0x3d169c(0x310)][_0x3d169c(0x3f7)](_0x4c91c9[_0x3d169c(0x11d)]))[_0x3d169c(0x1a7)](_0x3d528e(_0x172dea=>_0x172dea[_0x3d169c(0x34e)]()),_0x1f1135(_0x2982b2=>!_0x46dc72(_0x2982b2)),_0x3ae8cf(this['dispose$']))['subscribe'](_0x3ce3a9=>{_0x6342(_0x3ce3a9);});}};et=Ko([Pe(0x0,_0x321449(_0x313fa0)),Pe(0x1,_0x375068),Pe(0x2,_0x52f39f),Pe(0x3,_0x321449(ce)),Pe(0x4,_0x321449(_0x2e153b))],et);var Xo=Object[_0x4c1f23(0x2e9)],Jo=Object[_0x4c1f23(0x133)],qo=(_0x158150,_0x30b1ca,_0x35aa81,_0x2a9490)=>{const _0x44e480=_0x4c1f23;for(var _0x7d06c8=_0x2a9490>0x1?void 0x0:_0x2a9490?Jo(_0x30b1ca,_0x35aa81):_0x30b1ca,_0x317a76=_0x158150[_0x44e480(0x78)]-0x1,_0x303401;_0x317a76>=0x0;_0x317a76--)(_0x303401=_0x158150[_0x317a76])&&(_0x7d06c8=(_0x2a9490?_0x303401(_0x30b1ca,_0x35aa81,_0x7d06c8):_0x303401(_0x7d06c8))||_0x7d06c8);return _0x2a9490&&_0x7d06c8&&Xo(_0x30b1ca,_0x35aa81,_0x7d06c8),_0x7d06c8;},gs=(_0x3fe6fd,_0x2beb97)=>(_0x3fccd3,_0x2aa934)=>_0x2beb97(_0x3fccd3,_0x2aa934,_0x3fe6fd);let Nt=class{constructor(_0x2d6011,_0x2fbe54){const _0x2a349e=_0x4c1f23;this[_0x2a349e(0x132)]=_0x2d6011,this[_0x2a349e(0x19f)]=_0x2fbe54;}async[_0x4c1f23(0x134)](_0xe02aec,_0x15245b){const _0x443fda=_0x4c1f23;var _0x3716ce;const {unitID:_0x32d875,type:_0x4d8c99,revision:_0x1c3dbc=0x0}=_0x15245b,_0x5d17b7=this['_getSnapshotAPIPrefix']()+'/'+_0x4d8c99+_0x443fda(0x3e1)+_0x32d875+'/rev/'+_0x1c3dbc,_0x21b0b6=(await this[_0x443fda(0x19f)][_0x443fda(0x348)](_0x5d17b7))[_0x443fda(0x1d2)],_0x308c68=(_0x3716ce=_0x21b0b6['snapshot'])==null?void 0x0:_0x3716ce[_0x443fda(0x245)];if(_0x308c68){const _0x54942b=_0x308c68==null?void 0x0:_0x308c68[_0x443fda(0x15b)],_0x421e8b=_0x2c535e[_0x443fda(0xe2)](_0x58e839(_0x54942b));_0x308c68[_0x443fda(0x15b)]=_0x421e8b,Object['entries'](_0x308c68[_0x443fda(0x88)])[_0x443fda(0x100)](([,_0x5dad7a])=>{const _0x5d82aa=_0x443fda,_0x4d4bd5=_0x5dad7a[_0x5d82aa(0x15b)],_0x5af493=_0x2c535e[_0x5d82aa(0xe2)](_0x58e839(_0x4d4bd5));_0x5dad7a[_0x5d82aa(0x15b)]=_0x5af493;});}return _0x21b0b6;}async[_0x4c1f23(0xaa)](_0x137743,_0x16905b){const _0x2497bc=_0x4c1f23,{unitID:_0x34e997,type:_0x2361f8,blockID:_0x5b20eb}=_0x16905b,_0x53bd32=this[_0x2497bc(0x2cf)]()+'/'+_0x2361f8+_0x2497bc(0x3e1)+_0x34e997+_0x2497bc(0x82)+_0x5b20eb;return(await this[_0x2497bc(0x19f)][_0x2497bc(0x348)](_0x53bd32))['body'];}async['getDeserializedSheetBlock'](_0x4a1501,_0xb1f19){const _0xcec57d=_0x4c1f23,{unitID:_0x2a7799,type:_0x593a52,blockID:_0x23f784}=_0xb1f19,_0x329e96=this[_0xcec57d(0x2cf)]()+_0xcec57d(0x82)+_0x593a52+'/unit/'+_0x2a7799+_0xcec57d(0x82)+_0x23f784;return(await this['_httpService'][_0xcec57d(0x348)](_0x329e96))[_0xcec57d(0x1d2)];}async[_0x4c1f23(0x156)](_0x3b0eba,_0x3246cb){const _0x2b5bc1=_0x4c1f23,{unitID:_0x89e701,type:_0x448d4e,from:_0x263997,to:_0x28e48b}=_0x3246cb,_0x4447e8=this['_getAPIPrefix']()+'/'+_0x448d4e+_0x2b5bc1(0x3e1)+_0x89e701+_0x2b5bc1(0x33b)+_0x263997+_0x2b5bc1(0x2eb)+_0x28e48b;return(await this[_0x2b5bc1(0x19f)][_0x2b5bc1(0x348)](_0x4447e8))[_0x2b5bc1(0x1d2)];}[_0x4c1f23(0xea)](){const _0x26605=_0x4c1f23;var _0x5870d0;return(_0x5870d0=this[_0x26605(0x132)][_0x26605(0x111)](mn))!=null?_0x5870d0:this['_getAPIPrefix']();}[_0x4c1f23(0x2cf)](){const _0x238588=_0x4c1f23;var _0x5a0953,_0x2aa118;const _0x54a779=this['_configService']['getConfig'](dn),_0x55803b=this[_0x238588(0x132)]['getConfig'](L);return(_0x2aa118=(_0x5a0953=_0x55803b==null?void 0x0:_0x55803b[_0x238588(0x139)])!=null?_0x5a0953:_0x54a779)!=null?_0x2aa118:fn;}async[_0x4c1f23(0x2f0)](_0xe6e3ee,_0x1258f5){const _0x166c14=_0x4c1f23,_0x52d4f5=_0x166c14(0x216)+_0x1258f5[_0x166c14(0x1d3)]+_0x166c14(0x3e1)+_0x1258f5[_0x166c14(0x1f3)]+_0x166c14(0x31a);return(await this[_0x166c14(0x19f)]['get'](_0x52d4f5,{'params':{'resourceId':JSON['stringify'](_0x1258f5[_0x166c14(0x3e0)])}}))[_0x166c14(0x1d2)];}[_0x4c1f23(0x2d1)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x5c1fc0=_0x4c1f23;throw new Error(_0x5c1fc0(0x73));}[_0x4c1f23(0xde)](){const _0x2ecc70=_0x4c1f23;throw new Error(_0x2ecc70(0x73));}[_0x4c1f23(0x1ab)](){const _0x3e9fd0=_0x4c1f23;throw new Error(_0x3e9fd0(0x73));}};Nt=qo([gs(0x0,_0x4d21d1),gs(0x1,_0x321449(_0x1fbfa2))],Nt);var zo=Object[_0x4c1f23(0x2e9)],Zo=Object['getOwnPropertyDescriptor'],Qo=(_0x501642,_0x19384c,_0x3704a4,_0x5f2f15)=>{const _0x18c7e6=_0x4c1f23;for(var _0x3fd2d1=_0x5f2f15>0x1?void 0x0:_0x5f2f15?Zo(_0x19384c,_0x3704a4):_0x19384c,_0x369403=_0x501642[_0x18c7e6(0x78)]-0x1,_0xb1066e;_0x369403>=0x0;_0x369403--)(_0xb1066e=_0x501642[_0x369403])&&(_0x3fd2d1=(_0x5f2f15?_0xb1066e(_0x19384c,_0x3704a4,_0x3fd2d1):_0xb1066e(_0x3fd2d1))||_0x3fd2d1);return _0x5f2f15&&_0x3fd2d1&&zo(_0x19384c,_0x3704a4,_0x3fd2d1),_0x3fd2d1;},ye=(_0x51a7d1,_0x5bf99f)=>(_0x203c44,_0x41650c)=>_0x5bf99f(_0x203c44,_0x41650c,_0x51a7d1);let Ut=class extends _0x2d287d{constructor(_0x3a01ae,_0x3ce015,_0x698998,_0x31c227,_0x3b744c){super(_0x3a01ae,_0x3ce015,_0x698998),this['_transformService']=_0x31c227,this['_logService']=_0x3b744c;}[_0x4c1f23(0x2bc)](_0xc5a02f,_0xb3b029){const _0x31df5c=_0x4c1f23,_0x1413ae=this['_getUndoStack'](_0xc5a02f);if(_0x1413ae)try{const _0x45f0d9=this['_transformStack'](_0x1413ae,_0xb3b029);this[_0x31df5c(0x38a)](_0xc5a02f,_0x45f0d9);}catch(_0x14081f){this[_0x31df5c(0x128)]['error'](_0x31df5c(0x319),_0x14081f),this[_0x31df5c(0x13a)](_0xc5a02f);}const _0x3c2374=this[_0x31df5c(0xaf)](_0xc5a02f);if(_0x3c2374)try{const _0x39c21e=this['_transformStack'](_0x3c2374,_0xb3b029);this[_0x31df5c(0x3bd)](_0xc5a02f,_0x39c21e);}catch(_0x2e98ca){this['_logService'][_0x31df5c(0x17a)](_0x2e98ca),this[_0x31df5c(0x3c8)](_0xc5a02f);}}[_0x4c1f23(0x13a)](_0x480e6d){const _0x10c3f6=_0x4c1f23,_0x1373a9=this[_0x10c3f6(0x3b6)](_0x480e6d);_0x1373a9&&(_0x1373a9[_0x10c3f6(0x78)]=0x0,this[_0x10c3f6(0x7f)]());}[_0x4c1f23(0x3c8)](_0x6148ac){const _0x52c34c=_0x4c1f23,_0x552da3=this['_getRedoStack'](_0x6148ac);_0x552da3&&(_0x552da3[_0x52c34c(0x78)]=0x0,this[_0x52c34c(0x7f)]());}[_0x4c1f23(0x38a)](_0x54c295,_0x59ed6c){const _0x47c581=_0x4c1f23;this['_undoStacks'][_0x47c581(0x329)](_0x54c295,_0x59ed6c),this[_0x47c581(0x7f)]();}[_0x4c1f23(0x3bd)](_0x573ea8,_0x2e08c2){const _0x1e6614=_0x4c1f23;this[_0x1e6614(0x1bd)][_0x1e6614(0x329)](_0x573ea8,_0x2e08c2),this['_updateStatus']();}[_0x4c1f23(0x164)](_0x326379,_0x5c2a55){const _0x209577=_0x4c1f23,_0x962588=[];let _0x2a7a9d=_0x5c2a55,_0x440239=_0x5c2a55;for(let _0x97c83b=_0x326379[_0x209577(0x78)]-0x1;_0x97c83b>=0x0;_0x97c83b--){const {unitID:_0x5bdbc5,undoMutations:_0x3a870f,redoMutations:_0x885321}=_0x326379[_0x97c83b],_0x4e0c9c=this[_0x209577(0x2ce)]['transformMutationsWithChangeset'](_0x2a7a9d,_0x3a870f),_0x219ffb=this[_0x209577(0x2ce)][_0x209577(0xbf)](_0x440239,_0x885321);if(_0x54fa31(_0x4e0c9c)||_0x54fa31(_0x219ffb)){this['_logService'][_0x209577(0x17a)](_0x209577(0x319),_0x209577(0x1fa),_0x4e0c9c,_0x219ffb);break;}_0x2a7a9d=_0x4e0c9c[_0x209577(0x85)],_0x440239=_0x219ffb['c1Prime'],_0x962588[_0x209577(0x27c)]({'unitID':_0x5bdbc5,'undoMutations':_0x4e0c9c[_0x209577(0x101)],'redoMutations':_0x219ffb['m2Prime']});}return _0x962588[_0x209577(0x103)]();}};Ut=Qo([ye(0x0,_0x375068),ye(0x1,_0x265863),ye(0x2,_0x163f08),ye(0x3,_0x56767e),ye(0x4,_0x50688a)],Ut);class ea extends _0x2dacfb{constructor(){const _0x58a577=_0x4c1f23;super(),l(this,_0x58a577(0x112)),this[_0x58a577(0x112)]=_0x1e2c02(window,'popstate')[_0x58a577(0x1a7)](_0x289d57(this[_0x58a577(0x265)]),_0xb96cea(0x1),_0x5810d1(void 0x0));}[_0x4c1f23(0x199)](_0x57b0b8,_0x27e870,_0x4a5550=!0x1){const _0x5ea994=_0x4c1f23,_0x2f0252=new URL(window['location'][_0x5ea994(0x165)]);_0x2f0252[_0x5ea994(0xb2)][_0x5ea994(0x329)](_0x57b0b8,_0x27e870),_0x4a5550?window['history']['replaceState']('','',_0x2f0252[_0x5ea994(0x226)]()):window['history']['pushState']('','',_0x2f0252['toString']());}[_0x4c1f23(0x331)](_0x31641b,_0x3a81e6=!0x1){const _0x432f92=_0x4c1f23,_0x559541=new URL(window[_0x432f92(0x3b2)][_0x432f92(0x165)]);_0x559541[_0x432f92(0xb2)]['delete'](_0x31641b),_0x3a81e6?window[_0x432f92(0x399)][_0x432f92(0x1f6)]('','',_0x559541[_0x432f92(0x226)]()):window[_0x432f92(0x399)][_0x432f92(0x1e2)]('','',_0x559541['toString']());}[_0x4c1f23(0xa0)](_0x11fd4c){const _0x21fbc9=_0x4c1f23;var _0x413502;return(_0x413502=new URL(window['location']['href'])['searchParams'][_0x21fbc9(0x348)](_0x11fd4c))!=null?_0x413502:void 0x0;}}var Ws=Object[_0x4c1f23(0x2e9)],ta=Object[_0x4c1f23(0x133)],sa=(_0x13b63d,_0xd4a9d3,_0x5b3b9d)=>_0xd4a9d3 in _0x13b63d?Ws(_0x13b63d,_0xd4a9d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b3b9d}):_0x13b63d[_0xd4a9d3]=_0x5b3b9d,ia=(_0x221d4c,_0x1e6e43,_0x107220,_0x5353d4)=>{for(var _0x56cdf1=_0x5353d4>0x1?void 0x0:_0x5353d4?ta(_0x1e6e43,_0x107220):_0x1e6e43,_0x1f40f2=_0x221d4c['length']-0x1,_0x2ba653;_0x1f40f2>=0x0;_0x1f40f2--)(_0x2ba653=_0x221d4c[_0x1f40f2])&&(_0x56cdf1=(_0x5353d4?_0x2ba653(_0x1e6e43,_0x107220,_0x56cdf1):_0x2ba653(_0x56cdf1))||_0x56cdf1);return _0x5353d4&&_0x56cdf1&&Ws(_0x1e6e43,_0x107220,_0x56cdf1),_0x56cdf1;},ke=(_0x31ba63,_0x104238)=>(_0x1efcee,_0x532f53)=>_0x104238(_0x1efcee,_0x532f53,_0x31ba63),na=(_0x52eeb0,_0x4c3dc3,_0x47709d)=>sa(_0x52eeb0,_0x4c3dc3+'',_0x47709d);const ra=_0x4c1f23(0xe1);let Mt=class extends _0x43f0d0{constructor(_0x1e43d1=yn,_0x54d00d,_0x50ddb6,_0x26b044,_0x3b8d85){const _0x5c67bf=_0x4c1f23;super(),this[_0x5c67bf(0x1bb)]=_0x1e43d1,this['_logService']=_0x54d00d,this['_renderManagerService']=_0x50ddb6,this['_injector']=_0x26b044,this['_configService']=_0x3b8d85;const {..._0x173d19}=this[_0x5c67bf(0x1bb)];this[_0x5c67bf(0x132)][_0x5c67bf(0x102)](L,_0x173d19);}[_0x4c1f23(0xa9)](){const _0x4db76a=_0x4c1f23;this[_0x4db76a(0xe4)](),_0x50ed8d(this[_0x4db76a(0x162)],[[pe],[qe],[et]]);}[_0x4c1f23(0x350)](){const _0x2d9c8f=_0x4c1f23;_0x50ed8d(this[_0x2d9c8f(0x162)],[[ze]]);}[_0x4c1f23(0x273)](){const _0x596b09=_0x4c1f23;this[_0x596b09(0x38e)]();}[_0x4c1f23(0xe4)](){const _0x45b3f7=_0x4c1f23;var _0x1ccf22,_0x472eb3,_0x5ef82d,_0x1ba141;this['_injector']['has'](_0x2fbed3)&&this['_logService'][_0x45b3f7(0x17a)](_0x45b3f7(0x342),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x21af32=[[_0x2fbed3,{'useClass':Ut}],[ce],[Ft],[_0x1fbfa2],[Fs,{'useClass':ea}],[ae],[D],[_0x57aa72],[Ke],[Xe],[Ye],[Bt],[Ze],[Qe],[$s],[et],[Ls,{'useClass':(_0x472eb3=(_0x1ccf22=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ccf22[_0x45b3f7(0x39d)])!=null?_0x472eb3:Et}],[_0x147a26,{'useClass':_0x5d6c50}],[_0x4c90dd,{'useClass':Nt}],[_0x2eeda2,{'useClass':Pt}],[_0x74670d,{'useClass':yt}],[Ae],[qe],[Ue],[ze],[pe]];(_0x5ef82d=this[_0x45b3f7(0x1bb)])!=null&&_0x5ef82d['enableSingleActiveInstanceLock']&&_0x21af32[_0x45b3f7(0x27c)]([tt,{'useClass':rr}]),_0x21af32=_0x1588d5(_0x21af32,(_0x1ba141=this[_0x45b3f7(0x1bb)])==null?void 0x0:_0x1ba141[_0x45b3f7(0x1a2)]),_0x21af32['forEach'](_0x14ea91=>this[_0x45b3f7(0x162)]['add'](_0x14ea91)),this['_initModules']();}[_0x4c1f23(0x38e)](){const _0x2de209=_0x4c1f23;this['disposeWithMe'](this[_0x2de209(0x333)]['registerRenderModule'](_0x4c91c9[_0x2de209(0x11d)],[Dt])),this['disposeWithMe'](this['_renderManagerService'][_0x2de209(0x1c8)](_0x4c91c9[_0x2de209(0x10d)],[wt]));}[_0x4c1f23(0x2b4)](){const _0x75b607=_0x4c1f23;var _0x56019d,_0x7761a1;this['_injector']['get'](_0x1fbfa2)[_0x75b607(0xa1)]({'priority':0x14,'interceptor':_0x537a47({'maxParallel':0x6})}),this['_injector'][_0x75b607(0x348)](Qe),(_0x56019d=this['_config'])!=null&&_0x56019d[_0x75b607(0x114)]||this[_0x75b607(0x162)][_0x75b607(0x348)](D)[_0x75b607(0x3a2)](),(_0x7761a1=this[_0x75b607(0x1bb)])!=null&&_0x7761a1['enableAuthServer']&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ze),this[_0x75b607(0x162)][_0x75b607(0x348)](Ae),this[_0x75b607(0x162)][_0x75b607(0x20e)](Ue)&&this[_0x75b607(0x162)][_0x75b607(0x348)](Ue);}};na(Mt,'pluginName',ra),Mt=ia([_0x4869be(_0x229d30),ke(0x1,_0x50688a),ke(0x2,_0x3f9a6b),ke(0x3,_0x321449(_0x313fa0)),ke(0x4,_0x4d21d1)],Mt);export{yo as AUTHZ_URL_KEY,Pt as AuthzIoHttpService,On as COLLAB_SUBMIT_CHANGESET_URL_KEY,Sn as COLLAB_WEB_SOCKET_URL_KEY,Ae as CollaborationController,Je as CollaborationEntity,Ct as CollaborationSession,ce as CollaborationSessionService,Et as CollaborationSocketService,w as CollaborationStatus,lo as CollaborationStatusDisplay,$s as CommentService,qe as DataLoaderController,Ue as DesktopCollaborationStatusDisplayController,bt as DocCollaborationEntity,vn as HEARTBEAT_INTERVAL_KEY,Ns as HEARTBEAT_TIMEOUT_KEY,Ls as ICollaborationSocketService,Fs as IURLService,yt as ImageIoService,Tn as LOCAL_CACHE_INTERVAL_KEY,wn as LOGIN_URL_KEY,D as LocalCacheService,Cn as RETRY_CONNECTING_MAX_COUNT_KEY,Oa as SEND_CHANGESET_TIMEOUT_KEY,dn as SNAPSHOT_SERVER_URL_KEY,mn as SNAPSHOT_URL_KEY,G as SessionStatus,Yr as SheetCollabCursorShape,Tt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,Mt as UniverCollaborationClientPlugin,ea as WebURLService,Nn as deserializeToCombResponse,Un as serializeCombRequest};
|