@univerjs-pro/collaboration-client 0.4.0 → 0.4.1-nightly.202410191605
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 +17 -17
package/lib/es/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const _0x23cbae=_0x3f49;(function(_0x5a4fa6,_0xdb1ff5){const _0x2beeae=_0x3f49,_0x2102c5=_0x5a4fa6();while(!![]){try{const _0x296095=-parseInt(_0x2beeae(0x346))/0x1+parseInt(_0x2beeae(0xfd))/0x2+-parseInt(_0x2beeae(0x2d8))/0x3+-parseInt(_0x2beeae(0x384))/0x4*(-parseInt(_0x2beeae(0x129))/0x5)+parseInt(_0x2beeae(0x29d))/0x6+parseInt(_0x2beeae(0x210))/0x7*(-parseInt(_0x2beeae(0x381))/0x8)+parseInt(_0x2beeae(0x2c3))/0x9;if(_0x296095===_0xdb1ff5)break;else _0x2102c5['push'](_0x2102c5['shift']());}catch(_0x23a260){_0x2102c5['push'](_0x2102c5['shift']());}}}(_0x6cb7,0x90cae));var ti=Object[_0x23cbae(0xe2)],si=(_0x385d77,_0x3ae15e,_0x18fc79)=>_0x3ae15e in _0x385d77?ti(_0x385d77,_0x3ae15e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18fc79}):_0x385d77[_0x3ae15e]=_0x18fc79,l=(_0xabd534,_0xd2eed9,_0x190764)=>si(_0xabd534,typeof _0xd2eed9!=_0x23cbae(0x1d2)?_0xd2eed9+'':_0xd2eed9,_0x190764);import{createIdentifier as _0x1d1962,Inject as _0x57082d,Disposable as _0xbfc176,DisposableCollection as _0x1e2532,toDisposable as _0xad1b53,IConfigService as _0x465ebb,ILogService as _0x2ed9bc,UserManagerService as _0x235fd8,UniverInstanceType as _0x2eb231,IUniverInstanceService as _0xf0f4c1,LocaleService as _0x1ba649,Optional as _0x187eb8,RxDisposable as _0x3a262a,Injector as _0x5aca14,Tools as _0x2d9f70,ILocalStorageService as _0x16bea1,ICommandService as _0x2c218a,JSONX as _0x26e9d3,CommandType as _0x406a66,IPermissionService as _0x3b2db3,IUndoRedoService as _0x2b3c29,sequenceExecute as _0x3b5adf,debounce as _0x23acc5,Rectangle as _0x26d787,COLORS as _0x56bec4,ColorKit as _0xff1c14,ThemeService as _0xdd136e,fromEventSubject as _0x4a2855,useDependency as _0x32c0cd,connectInjector as _0x2fb98b,Workbook as _0x54fdc9,isInternalEditorID as _0x45fcbc,LocalUndoRedoService as _0x43badd,IContextService as _0x35bd8b,DependentOn as _0x375d34,Plugin as _0x23b29f,touchDependencies as _0xb5fd96,IAuthzIoService as _0x562510,mergeOverrideWithDependencies as _0x542d4d}from'@univerjs/core';import{Subject as _0x4061c1,merge as _0x395f71,takeUntil as _0x5b993c,BehaviorSubject as _0x169308,distinctUntilChanged as _0x95638f,fromEvent as _0x19a309,map as _0x29443,shareReplay as _0x153603,take as _0x333f84,of as _0x4a5add,debounceTime as _0x43ba67,filter as _0x2258ad,switchMap as _0x338777,combineLatest as _0x380b37,concatMap as _0x286f48,mapTo as _0x483d69}from'rxjs';import{map as _0x57b187,take as _0x3d181d,filter as _0x4eb371,delay as _0x3f8011,throttleTime as _0x437201,takeUntil as _0x5198ca,switchMap as _0x38d5ac}from'rxjs/operators';import{MessageType as _0x135398,Tooltip as _0x115533}from'@univerjs/design';import{IBeforeCloseService as _0x5d89d3,IMessageService as _0x2493e9,INotificationService as _0x5cf6e8,useObservable as _0x5a882d,BuiltInUIPart as _0x1cbaaf,IUIPartsService as _0x49417e}from'@univerjs/ui';import{HTTPService as _0x1b70f6,WebSocketService as _0x556be8,MergeInterceptorFactory as _0x5afcd5,HTTPRequest as _0x22675a,IHTTPImplementation as _0x58f9ac,XHRHTTPImplementation as _0x3fa144,ThresholdInterceptorFactory as _0xa20eb}from'@univerjs/network';import{CollaborationEvent as _0x44cf74,parseChangesetToProtocol as _0x10373e,ISnapshotServerService as _0x5f1087,isTransformMutationFailure as _0x426132,isTransformMutationsWithChangesetSuccess as _0x24c912,ITransformService as _0x3ce5fa,RevisionService as _0x2056a3,mapDocumentTypeToUniverType as _0x2f6b1e,isTransformChangesetsSuccess as _0xf2155e,CompressMutationService as _0xa37832,parseProtocolChangeset as _0x66b1e7,SnapshotService as _0x40068b,textEncoder as _0x510326,b64DecodeUnicode as _0x45b123,isTransformMutationsWithChangesetFailure as _0x4e72ac,UniverCollaborationPlugin as _0x6a4b44}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x33d583}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x3d5f40,DocStateChangeManagerService as _0x2e5857,NodePositionConvertToCursor as _0x57bfe0,isValidRectRange as _0x153d05,NodePositionConvertToRectRange as _0x37669e,TEXT_RANGE_LAYER_INDEX as _0x252f9e,SetDocZoomRatioOperation as _0x4a3846}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x34b058,SetSelectionsOperation as _0x58be78,InsertSheetMutation as _0xecee35,EmptyMutation as _0x37478b,WorkbookEditablePermission as _0x41b6ca,RefRangeService as _0x178c8d,EffectRefRangId as _0x100ffd,handleIRemoveRow as _0x575e9e,handleIRemoveCol as _0x33a15e,handleMoveRange as _0x4574e3,handleInsertRow as _0x24f654,handleInsertRangeMoveRight as _0x197b21,handleInsertRangeMoveDown as _0x378def,handleInsertCol as _0x525801,handleDeleteRangeMoveUp as _0xce5f80,handleDeleteRangeMoveLeft as _0x37de89,runRefRangeMutations as _0x368451,SetWorksheetActivateCommand as _0x40f95f}from'@univerjs/sheets';import{IRenderManagerService as _0x241377,Shape as _0xb8fdb8,Rect as _0x8fe6a0,getColor as _0x5d3027,RegularPolygon as _0xc7b37d,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x106d8d,Vector2 as _0x36e9ae}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x5502c3,RichTextEditingMutation as _0x520c9a,SetTextSelectionsOperation as _0x212257,DocSkeletonManagerService as _0x152335}from'@univerjs/docs';import{ImageSourceType as _0xa7f0d8,ImageUploadStatusType as _0x497ab7,IImageIoService as _0x50ad99}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x177623,serializeRangeWithSheet as _0x10f780}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x5d067c,VIEWPORT_KEY as _0x407db2,getCoordByCell as _0x198821,getSheetObject as _0x4d0c7e,SheetPermissionInitController as _0x204f73}from'@univerjs/sheets-ui';import _0x5c5e4e,{forwardRef as _0x24db44,useRef as _0xa945c8,createElement as _0x39bd90,useCallback as _0x40a9ea}from'react';import{IRemoteInstanceService as _0x5e7b1c}from'@univerjs/rpc';import{getAttachHeader as _0xa572df}from'@univerjs-pro/license';const Sn=_0x23cbae(0x3c5),pn='/universer-api/snapshot',vn=_0x23cbae(0x22e),La='SEND_CHANGESET_TIMEOUT',In=0x7d0,En='COLLAB_WEB_SOCKET_URL',Cn=_0x23cbae(0x20d),bn='HEARTBEAT_INTERVAL',Tn=0x7530,Ls=_0x23cbae(0x3d9),$s=0x4e20,Rn=0x4e20,On=_0x23cbae(0x1b5),Dn=0x3,wn=_0x23cbae(0x2e2),Pn=0x3e8,yn=_0x23cbae(0x2ec),Un=_0x23cbae(0x25e),Nn=_0x23cbae(0x39e),Mn=_0x23cbae(0x3f4);var js=(_0x57b383=>(_0x57b383[_0x57b383[_0x23cbae(0x368)]=0x0]=_0x23cbae(0x368),_0x57b383[_0x57b383['OK']=0x1]='OK',_0x57b383[_0x57b383[_0x23cbae(0x1b4)]=0x2]=_0x23cbae(0x1b4),_0x57b383[_0x57b383[_0x23cbae(0x3b0)]=0x3]='PERMISSION_DENIED',_0x57b383[_0x57b383['NOT_FOUND']=0x4]=_0x23cbae(0x40c),_0x57b383[_0x57b383[_0x23cbae(0x2a7)]=0x5]='UNAUTHENTICATED',_0x57b383[_0x57b383[_0x23cbae(0x2b5)]=0x6]=_0x23cbae(0x2b5),_0x57b383[_0x57b383[_0x23cbae(0x110)]=0x7]=_0x23cbae(0x110),_0x57b383[_0x57b383[_0x23cbae(0x378)]=0x8]=_0x23cbae(0x378),_0x57b383[_0x57b383['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x57b383[_0x57b383[_0x23cbae(0x20b)]=0x1389]=_0x23cbae(0x20b),_0x57b383[_0x57b383[_0x23cbae(0x2da)]=0x1771]=_0x23cbae(0x2da),_0x57b383[_0x57b383[_0x23cbae(0x29a)]=0x1772]=_0x23cbae(0x29a),_0x57b383[_0x57b383['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x23cbae(0x333),_0x57b383[_0x57b383['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x57b383[_0x57b383['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x23cbae(0x41a),_0x57b383[_0x57b383[_0x23cbae(0x2c5)]=0x1b5b]=_0x23cbae(0x2c5),_0x57b383[_0x57b383[_0x23cbae(0x3f6)]=0x1b5c]=_0x23cbae(0x3f6),_0x57b383[_0x57b383[_0x23cbae(0x280)]=0x1b5d]=_0x23cbae(0x280),_0x57b383[_0x57b383[_0x23cbae(0x2ab)]=0x1f41]=_0x23cbae(0x2ab),_0x57b383[_0x57b383[_0x23cbae(0x211)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x57b383[_0x57b383[_0x23cbae(0x184)]=0x232a]=_0x23cbae(0x184),_0x57b383[_0x57b383[_0x23cbae(0x2dd)]=0x232b]=_0x23cbae(0x2dd),_0x57b383[_0x57b383[_0x23cbae(0x228)]=0x232c]=_0x23cbae(0x228),_0x57b383[_0x57b383[_0x23cbae(0x44e)]=0x232d]=_0x23cbae(0x44e),_0x57b383[_0x57b383[_0x23cbae(0x2a3)]=0x2711]=_0x23cbae(0x2a3),_0x57b383[_0x57b383[_0x23cbae(0x192)]=0x2712]=_0x23cbae(0x192),_0x57b383[_0x57b383[_0x23cbae(0x3d8)]=0x2713]=_0x23cbae(0x3d8),_0x57b383[_0x57b383[_0x23cbae(0xf8)]=0x2714]=_0x23cbae(0xf8),_0x57b383[_0x57b383[_0x23cbae(0x297)]=-0x1]='UNRECOGNIZED',_0x57b383))(js||{}),k=(_0x1a7af3=>(_0x1a7af3[_0x1a7af3[_0x23cbae(0x3a3)]=0x0]='UNIVER_UNKNOWN',_0x1a7af3[_0x1a7af3[_0x23cbae(0x12f)]=0x1]=_0x23cbae(0x12f),_0x1a7af3[_0x1a7af3[_0x23cbae(0x34d)]=0x2]=_0x23cbae(0x34d),_0x1a7af3[_0x1a7af3[_0x23cbae(0x2fe)]=0x3]='UNIVER_SLIDE',_0x1a7af3[_0x1a7af3['UNIVER_PROJECT']=0x4]=_0x23cbae(0x420),_0x1a7af3[_0x1a7af3[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x1a7af3))(k||{}),I=(_0x12b1fb=>(_0x12b1fb[_0x12b1fb[_0x23cbae(0x1f0)]=0x0]=_0x23cbae(0x1f0),_0x12b1fb[_0x12b1fb[_0x23cbae(0x145)]=0x1]='HELLO',_0x12b1fb[_0x12b1fb['JOIN']=0x2]=_0x23cbae(0x2e0),_0x12b1fb[_0x12b1fb[_0x23cbae(0x12c)]=0x3]='LEAVE',_0x12b1fb[_0x12b1fb['INGEST']=0x4]=_0x23cbae(0x1a6),_0x12b1fb[_0x12b1fb['HEARTBEAT']=0x5]='HEARTBEAT',_0x12b1fb[_0x12b1fb[_0x23cbae(0x343)]=0x6]=_0x23cbae(0x343),_0x12b1fb[_0x12b1fb[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x12b1fb))(I||{}),Vt=(_0x52528f=>(_0x52528f[_0x52528f['UNKNOWN_CODE']=0x0]=_0x23cbae(0x2a9),_0x52528f[_0x52528f['OK']=0x1]='OK',_0x52528f[_0x52528f['FAIL']=0x2]='FAIL',_0x52528f[_0x52528f[_0x23cbae(0x297)]=-0x1]='UNRECOGNIZED',_0x52528f))(Vt||{}),xs=(_0x2e85cd=>(_0x2e85cd[_0x2e85cd['Undefined']=0x0]='Undefined',_0x2e85cd[_0x2e85cd[_0x23cbae(0x269)]=0x1]=_0x23cbae(0x269),_0x2e85cd[_0x2e85cd['HttpExport']=0x2]=_0x23cbae(0x31d),_0x2e85cd[_0x2e85cd[_0x23cbae(0x1b1)]=0x3]=_0x23cbae(0x1b1),_0x2e85cd[_0x2e85cd[_0x23cbae(0x424)]=0x4]=_0x23cbae(0x424),_0x2e85cd[_0x2e85cd[_0x23cbae(0x297)]=-0x1]=_0x23cbae(0x297),_0x2e85cd))(xs||{});const $='collaboration-client.config',An={};function Ln(_0x53e99f){const _0x1e5e96=_0x23cbae;var _0x143b00,_0x34e587,_0x4f8bde,_0x455f29;const _0x6fe111=_0x53e99f[_0x1e5e96(0x32d)],_0x5c9dfe=JSON['parse'](_0x6fe111);switch(_0x5c9dfe[_0x1e5e96(0x162)]){case I[_0x1e5e96(0x26d)]:case I[_0x1e5e96(0x145)]:{const _0x50d5d1=_0x5c9dfe['infoRsp'];return{..._0x5c9dfe,'data':_0x50d5d1,'cmd':_0x5c9dfe['cmd']};}case I['JOIN']:{const _0xf31544=_0x5c9dfe[_0x1e5e96(0x354)];return{..._0x5c9dfe,'data':_0xf31544,'cmd':_0x5c9dfe['cmd']};}case I[_0x1e5e96(0x343)]:{const _0x310182=_0x5c9dfe['collaMsg'];switch(_0x310182[_0x1e5e96(0x3f0)]){case _0x44cf74[_0x1e5e96(0x247)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x143b00=_0x310182[_0x1e5e96(0x106)])==null?void 0x0:_0x143b00['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x198)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x34e587=_0x310182[_0x1e5e96(0x25c)])==null?void 0x0:_0x34e587['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x1d6)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x4f8bde=_0x310182[_0x1e5e96(0xee)])==null?void 0x0:_0x4f8bde['cs']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74['CHANGESET_REJ']:return{..._0x5c9dfe,'data':{..._0x310182,'data':(_0x455f29=_0x310182[_0x1e5e96(0x1ac)])==null?void 0x0:_0x455f29['cs']},'cmd':_0x5c9dfe['cmd']};case _0x44cf74['UPDATE_CURSOR']:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['updateCursorEvent']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x3ed)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x2ad)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x25a)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x1cd)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0xec)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x11d)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74['LIVESHARE_FETCH_OPERATIONS']:case _0x44cf74[_0x1e5e96(0x22d)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['liveShareOperation']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x20f)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x11d)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x314)]:return{..._0x5c9dfe,'data':_0x310182,'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x335)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x144)]},'cmd':_0x5c9dfe['cmd']};case _0x44cf74[_0x1e5e96(0x436)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182[_0x1e5e96(0x2f3)]},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};case _0x44cf74[_0x1e5e96(0x34f)]:return{..._0x5c9dfe,'data':{..._0x310182,'data':_0x310182['shouldCloseConn']},'cmd':_0x5c9dfe[_0x1e5e96(0x162)]};default:return _0x5c9dfe;}}default:return _0x5c9dfe;}}function $n(_0x296f0e){const _0x252d3d=_0x23cbae;switch(_0x296f0e['cmd']){case I[_0x252d3d(0x26d)]:case I[_0x252d3d(0x145)]:return JSON[_0x252d3d(0x18a)]({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)]});case I[_0x252d3d(0x1a6)]:{let _0x3bc036;switch(_0x296f0e['data'][_0x252d3d(0x3f0)]){case _0x44cf74[_0x252d3d(0x1d4)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x1d4)],'updateCursorEvent':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x25a)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x25a)],'leaveEvent':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x3ed)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x3ed)],'joinEvent':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0xec)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0xec)],'liveShareNewHost':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x22d)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x22d)],'liveShareOperation':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0x20f)]:{_0x3bc036={'eventID':_0x44cf74[_0x252d3d(0x20f)],'liveShareTerminate':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74['LIVESHARE_REQUEST_HOST']:{_0x3bc036={'eventID':_0x44cf74['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x296f0e['data'][_0x252d3d(0x32d)]};break;}case _0x44cf74[_0x252d3d(0xf2)]:{_0x3bc036={'eventID':_0x44cf74['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x3bc036={'eventID':_0x296f0e[_0x252d3d(0x32d)][_0x252d3d(0x3f0)]};}return JSON['stringify']({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e['routeKey'],'collaMsg':_0x3bc036});}case I['JOIN']:return JSON['stringify']({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)],'joinReq':_0x296f0e['data']});case I[_0x252d3d(0x12c)]:return JSON[_0x252d3d(0x18a)]({'cmd':_0x296f0e[_0x252d3d(0x162)],'routeKey':_0x296f0e[_0x252d3d(0x150)],'leaveReq':_0x296f0e[_0x252d3d(0x32d)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var jn=Object[_0x23cbae(0xe2)],xn=Object[_0x23cbae(0x36a)],Hn=(_0x351390,_0x315a1b,_0x2cf2b2,_0x4e82fa)=>{const _0x5b67c1=_0x23cbae;for(var _0x4b0c95=_0x4e82fa>0x1?void 0x0:_0x4e82fa?xn(_0x315a1b,_0x2cf2b2):_0x315a1b,_0x59dbc6=_0x351390[_0x5b67c1(0xed)]-0x1,_0x48357d;_0x59dbc6>=0x0;_0x59dbc6--)(_0x48357d=_0x351390[_0x59dbc6])&&(_0x4b0c95=(_0x4e82fa?_0x48357d(_0x315a1b,_0x2cf2b2,_0x4b0c95):_0x48357d(_0x4b0c95))||_0x4b0c95);return _0x4e82fa&&_0x4b0c95&&jn(_0x315a1b,_0x2cf2b2,_0x4b0c95),_0x4b0c95;},Oe=(_0x5b5a7c,_0x3f43cf)=>(_0x376475,_0x2798e3)=>_0x3f43cf(_0x376475,_0x2798e3,_0x5b5a7c);function _0x3f49(_0xc725f0,_0x17d7e1){const _0x6cb7a3=_0x6cb7();return _0x3f49=function(_0x3f492e,_0x40c0b9){_0x3f492e=_0x3f492e-0xd7;let _0x3bb850=_0x6cb7a3[_0x3f492e];return _0x3bb850;},_0x3f49(_0xc725f0,_0x17d7e1);}const Hs=_0x1d1962(_0x23cbae(0x2db));function kn(_0x3b007f,_0x328f7a,_0x27cdd0){const _0x21cad7=_0x23cbae;return _0x3b007f+'/'+_0x328f7a+_0x21cad7(0xdf)+_0x27cdd0+_0x21cad7(0x137);}let Ct=class extends _0xbfc176{constructor(_0x5c931d,_0x530762,_0x26140d,_0x2e1104,_0x24f393){const _0x3f69ee=_0x23cbae;super(),this[_0x3f69ee(0x450)]=_0x5c931d,this[_0x3f69ee(0x242)]=_0x530762,this['_configService']=_0x26140d,this[_0x3f69ee(0x135)]=_0x2e1104,this[_0x3f69ee(0x42c)]=_0x24f393;}[_0x23cbae(0x43a)](_0x20ba05){const _0x317442=_0x23cbae,_0x441e74=this['_ws'][_0x317442(0x43a)](_0x20ba05);if(!_0x441e74)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x1abf29=new _0x1e2532(),_0x4c208c=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x1e6)][_0x317442(0x334)](_0x587292=>_0x4c208c[_0x317442(0x131)](_0x587292))),_0x1abf29[_0x317442(0x302)](_0xad1b53(()=>_0x4c208c[_0x317442(0x173)]()));const _0x526f0d=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x161)]['subscribe'](_0x6d7314=>_0x526f0d[_0x317442(0x131)](_0x6d7314))),_0x1abf29['add'](_0xad1b53(()=>_0x526f0d[_0x317442(0x173)]()));const _0x278124=new _0x4061c1();_0x1abf29[_0x317442(0x302)](_0x441e74[_0x317442(0x389)]['subscribe'](_0x473f4a=>{const _0x1521b5=_0x317442,_0x3d6088=Ln(_0x473f4a);_0x278124[_0x1521b5(0x131)](_0x3d6088);})),_0x1abf29[_0x317442(0x302)](_0xad1b53(()=>_0x278124[_0x317442(0x173)]()));let _0x38d43a;const _0x30e0ab=()=>{const _0x5565f5=_0x317442;_0x526f0d[_0x5565f5(0x131)](new Event(_0x5565f5(0x17c))),_0x4c208c['next'](new CloseEvent(_0x5565f5(0x17c))),_0x38d43a[_0x5565f5(0x2c2)]();};return _0x38d43a={'memberID':'','close$':_0x4c208c[_0x317442(0x341)](),'error$':_0x526f0d[_0x317442(0x341)](),'open$':_0x441e74[_0x317442(0x2a2)],'message$':_0x278124[_0x317442(0x341)](),'send':_0x4d1b30=>{const _0x290ed0=_0x317442;if(_0x4d1b30[_0x290ed0(0x162)]===I[_0x290ed0(0x1a6)]){if(_0x4d1b30['data'][_0x290ed0(0x3f0)]===_0x44cf74[_0x290ed0(0x1f2)]){this[_0x290ed0(0x3f9)](_0x38d43a,_0x4d1b30[_0x290ed0(0x32d)])[_0x290ed0(0x11c)](_0x29bf6e=>{const _0x55d3d9=_0x290ed0;this[_0x55d3d9(0x135)][_0x55d3d9(0x43f)](_0x29bf6e),_0x30e0ab();});return;}if(_0x4d1b30[_0x290ed0(0x32d)]['eventID']===_0x44cf74['FETCH_MISSING']){const _0x8c245f=_0x4d1b30[_0x290ed0(0x32d)];this[_0x290ed0(0x2e9)](_0x8c245f)[_0x290ed0(0x149)](_0x46f247=>{const _0x514ec0=_0x290ed0;_0x278124['next']({'cmd':I['RECV'],'code':Vt['OK'],'routeKey':_0x8c245f['data']['unitID'],'routeType':'','data':{'eventID':_0x44cf74[_0x514ec0(0x319)],'data':{'changesets':_0x46f247}}});})[_0x290ed0(0x11c)](_0x4192d5=>{const _0x1c2716=_0x290ed0;this[_0x1c2716(0x135)][_0x1c2716(0x43f)](_0x4192d5),_0x30e0ab();});return;}}_0x441e74[_0x290ed0(0x113)]($n(_0x4d1b30));},'close':()=>{const _0x1e8716=_0x317442;_0x441e74[_0x1e8716(0x2c2)](),_0x1abf29[_0x1e8716(0x35a)]();}},_0x38d43a;}async[_0x23cbae(0x3f9)](_0x48a63f,_0x3f5350){const _0x367a70=_0x23cbae;var _0x2fa297,_0x4387c0;const {unitType:_0x5847b7,unitID:_0xfd98c5,changeset:_0x40aa29}=_0x3f5350['data'],_0x3483fa={'unitID':_0xfd98c5,'memberID':_0x48a63f[_0x367a70(0x104)],'type':_0x5847b7,'changeset':_0x10373e(_0x40aa29)},_0x357170=this[_0x367a70(0x44c)][_0x367a70(0x266)](yn),_0x13e1c7=this[_0x367a70(0x44c)]['getConfig']($),_0x1a4c2c=kn((_0x4387c0=(_0x2fa297=_0x13e1c7==null?void 0x0:_0x13e1c7[_0x367a70(0x276)])!=null?_0x2fa297:_0x357170)!=null?_0x4387c0:Un,_0x5847b7,_0xfd98c5);try{await this['_http'][_0x367a70(0x1e5)](_0x1a4c2c,{'body':_0x3483fa});}catch(_0xefce4d){throw this[_0x367a70(0x135)][_0x367a70(0x43f)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0xefce4d;}}async['_fetchMissChangesets'](_0x23d561){const _0x59ceca=_0x23cbae,{unitID:_0x3b52d2,from:_0x34ce4b,to:_0x5f21c9,unitType:_0x20e76d}=_0x23d561['data'];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3b52d2,'type':_0x20e76d,'from':_0x34ce4b,'to':_0x5f21c9}))[_0x59ceca(0x439)];}};Ct=Hn([Oe(0x0,_0x57082d(_0x1b70f6)),Oe(0x1,_0x57082d(_0x556be8)),Oe(0x2,_0x465ebb),Oe(0x3,_0x2ed9bc),Oe(0x4,_0x5f1087)],Ct);const Bn=_0x23cbae(0x134);function Vn(_0x26e840){const _0x59d475=_0x23cbae;return JSON[_0x59d475(0x18a)](_0x26e840)[_0x59d475(0xed)];}class ks{constructor(){const _0x471703=_0x23cbae;l(this,_0x471703(0x23b),new _0x4061c1()),l(this,_0x471703(0x3e9),this[_0x471703(0x23b)][_0x471703(0x341)]());}[_0x23cbae(0x25b)](_0x1ef96d){const _0x58a21f=_0x23cbae;this[_0x58a21f(0x23b)][_0x58a21f(0x131)](_0x1ef96d);}}var Fn=Object[_0x23cbae(0xe2)],Wn=Object[_0x23cbae(0x36a)],Gn=(_0x38435e,_0x5e84eb,_0x4c8a9b,_0x10e795)=>{const _0x12e2ef=_0x23cbae;for(var _0x29c025=_0x10e795>0x1?void 0x0:_0x10e795?Wn(_0x5e84eb,_0x4c8a9b):_0x5e84eb,_0x1a797e=_0x38435e[_0x12e2ef(0xed)]-0x1,_0x2649fe;_0x1a797e>=0x0;_0x1a797e--)(_0x2649fe=_0x38435e[_0x1a797e])&&(_0x29c025=(_0x10e795?_0x2649fe(_0x5e84eb,_0x4c8a9b,_0x29c025):_0x2649fe(_0x29c025))||_0x29c025);return _0x10e795&&_0x29c025&&Fn(_0x5e84eb,_0x4c8a9b,_0x29c025),_0x29c025;},as=(_0x8242c5,_0x2faf8f)=>(_0x1f1fab,_0x2b0a53)=>_0x2faf8f(_0x1f1fab,_0x2b0a53,_0x8242c5);let ce=class extends _0xbfc176{constructor(_0x4b0bda,_0x392ce2){const _0x5286b1=_0x23cbae;super(),l(this,_0x5286b1(0x429),new Map()),(this[_0x5286b1(0x2ce)]=_0x4b0bda,this[_0x5286b1(0x416)]=_0x392ce2,this[_0x5286b1(0x165)](_0xad1b53(_0x395f71(this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231[_0x5286b1(0x34d)])[_0x5286b1(0x18c)](_0x57b187(_0x4072c6=>_0x4072c6[_0x5286b1(0x183)]())),this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231['UNIVER_DOC'])[_0x5286b1(0x18c)](_0x57b187(_0x4b61c3=>_0x4b61c3[_0x5286b1(0x183)]())),this[_0x5286b1(0x2ce)][_0x5286b1(0x3fe)](_0x2eb231[_0x5286b1(0x2fe)])[_0x5286b1(0x18c)](_0x57b187(_0x1d771b=>_0x1d771b[_0x5286b1(0x183)]())))['subscribe'](_0x186e16=>this[_0x5286b1(0x2ac)](_0x186e16)))));}[_0x23cbae(0x395)](_0x24a4db){const _0x4b30fd=_0x23cbae;this[_0x4b30fd(0x416)][_0x4b30fd(0x395)](_0x24a4db);}[_0x23cbae(0x177)](){const _0x4c0bd1=_0x23cbae;return this[_0x4c0bd1(0x416)][_0x4c0bd1(0x177)]();}[_0x23cbae(0x300)](_0x408d31,_0x22fcea){const _0xafecfb=_0x23cbae;let _0x41e686=this[_0xafecfb(0x429)][_0xafecfb(0x3fd)](_0x408d31);_0x41e686||(_0x41e686=new Yn(),this[_0xafecfb(0x429)]['set'](_0x408d31,_0x41e686)),_0x41e686['updateMember'](_0x22fcea);}[_0x23cbae(0x329)](_0x2072eb,_0x2b8688){const _0x36fe45=_0x23cbae,_0x165cc2=this[_0x36fe45(0x429)][_0x36fe45(0x3fd)](_0x2072eb);_0x165cc2&&_0x165cc2[_0x36fe45(0x329)](_0x2b8688);}[_0x23cbae(0x1f9)](_0x3a617e){const _0x5884d3=_0x23cbae;return this[_0x5884d3(0x429)][_0x5884d3(0x3fd)](_0x3a617e);}['getMember'](_0x3d0140,_0x5bc6b0){const _0x2744a8=_0x23cbae,_0x5f380c=this[_0x2744a8(0x429)][_0x2744a8(0x3fd)](_0x3d0140);if(_0x5f380c)return _0x5f380c['getMember'](_0x5bc6b0);}[_0x23cbae(0x2ac)](_0x52d2cb){const _0x5ddac4=_0x23cbae,_0x40332f=this[_0x5ddac4(0x429)]['get'](_0x52d2cb);_0x40332f&&(_0x40332f['dispose'](),this[_0x5ddac4(0x429)][_0x5ddac4(0x1a8)](_0x52d2cb));}[_0x23cbae(0x35a)](){const _0x2d9e9b=_0x23cbae;this[_0x2d9e9b(0x429)][_0x2d9e9b(0x273)](_0x16b9e1=>_0x16b9e1[_0x2d9e9b(0x35a)]()),this[_0x2d9e9b(0x429)][_0x2d9e9b(0x263)]();}};ce=Gn([as(0x0,_0xf0f4c1),as(0x1,_0x57082d(_0x235fd8))],ce);class Yn extends _0xbfc176{constructor(){const _0x1791b0=_0x23cbae;super(...arguments),l(this,_0x1791b0(0x3dd),new Map());}[_0x23cbae(0x35a)](){const _0x4544a6=_0x23cbae;this['_members'][_0x4544a6(0x263)]();}[_0x23cbae(0x300)](_0x3c622e){const _0x1b523c=_0x23cbae;this[_0x1b523c(0x3dd)][_0x1b523c(0x111)](_0x3c622e[_0x1b523c(0x104)],_0x3c622e);}[_0x23cbae(0x329)](_0x214db4){const _0x40051a=_0x23cbae;this[_0x40051a(0x3dd)][_0x40051a(0x1a8)](_0x214db4);}['getMember'](_0x4cf507){const _0x4b5687=_0x23cbae;return this['_members'][_0x4b5687(0x3fd)](_0x4cf507);}}var Kn=Object['defineProperty'],Xn=Object[_0x23cbae(0x36a)],qn=(_0x12af0e,_0x328dce,_0x46bf99,_0x367777)=>{const _0x4b7dbf=_0x23cbae;for(var _0x359be4=_0x367777>0x1?void 0x0:_0x367777?Xn(_0x328dce,_0x46bf99):_0x328dce,_0x860a69=_0x12af0e[_0x4b7dbf(0xed)]-0x1,_0x3b6c5c;_0x860a69>=0x0;_0x860a69--)(_0x3b6c5c=_0x12af0e[_0x860a69])&&(_0x359be4=(_0x367777?_0x3b6c5c(_0x328dce,_0x46bf99,_0x359be4):_0x3b6c5c(_0x359be4))||_0x359be4);return _0x367777&&_0x359be4&&Kn(_0x328dce,_0x46bf99,_0x359be4),_0x359be4;},J=(_0x27b6b7,_0x499c1a)=>(_0x41798c,_0x5cebad)=>_0x499c1a(_0x41798c,_0x5cebad,_0x27b6b7),Y=(_0x43f9b3=>(_0x43f9b3[_0x43f9b3['IDLE']=0x0]=_0x23cbae(0x271),_0x43f9b3[_0x43f9b3['JOINING']=0x1]='JOINING',_0x43f9b3[_0x43f9b3[_0x23cbae(0x1a9)]=0x2]='OFFLINE',_0x43f9b3[_0x43f9b3[_0x23cbae(0x12d)]=0x3]=_0x23cbae(0x12d),_0x43f9b3))(Y||{});let bt=class extends _0x3a262a{constructor(_0xf2829,_0x312e79,_0x5ab5a3,_0x480b77,_0x259515,_0x402a71,_0x655860,_0x5bbc4b,_0x344467,_0x385aa0){const _0x422c9b=_0x23cbae;super(),l(this,_0x422c9b(0x1be),new _0x169308(0x0)),l(this,_0x422c9b(0x18f),this['_sessionStatus$'][_0x422c9b(0x341)]()),l(this,'_event$',new _0x4061c1()),l(this,_0x422c9b(0x29c),this[_0x422c9b(0x310)][_0x422c9b(0x341)]()),l(this,'_socket'),l(this,_0x422c9b(0x1e2)),l(this,'_collaborationTimeoutTimer'),l(this,_0x422c9b(0x32a),!0x1),l(this,_0x422c9b(0x139),null),(this[_0x422c9b(0x38d)]=_0xf2829,this[_0x422c9b(0x135)]=_0x5ab5a3,this['_beforeCloseService']=_0x480b77,this['_messageService']=_0x259515,this[_0x422c9b(0x44c)]=_0x402a71,this[_0x422c9b(0x151)]=_0x655860,this['_memberService']=_0x5bbc4b,this[_0x422c9b(0x178)]=_0x344467,this['_telemetryService']=_0x385aa0,this[_0x422c9b(0x32a)]=!!this[_0x422c9b(0xf1)],_0x312e79[_0x422c9b(0x18c)](_0x5b993c(this[_0x422c9b(0x16f)]))[_0x422c9b(0x334)](_0x45021d=>{const _0x2f59fb=_0x422c9b;var _0xae1a85;typeof _0x45021d>'u'||(this['_socket']=_0x45021d,_0x45021d?(this[_0x2f59fb(0x3b6)](_0x45021d),this[_0x2f59fb(0x1e2)]=_0x45021d[_0x2f59fb(0x389)][_0x2f59fb(0x334)](_0x5d9bd9=>{const _0x3847eb=_0x2f59fb;_0x5d9bd9[_0x3847eb(0x150)]===this[_0x3847eb(0x38d)]&&this[_0x3847eb(0x2fb)](_0x5d9bd9);})):(this[_0x2f59fb(0x188)](),this[_0x2f59fb(0x1be)]['next'](0x2),(_0xae1a85=this['_socketMessageSubscription'])==null||_0xae1a85[_0x2f59fb(0x221)](),this[_0x2f59fb(0x1e2)]=null));}),this[_0x422c9b(0x165)](this[_0x422c9b(0x38b)][_0x422c9b(0x2c0)](()=>{const _0x479f2b=_0x422c9b;var _0x2da869;(_0x2da869=this[_0x479f2b(0x3b5)])==null||_0x2da869[_0x479f2b(0x113)]({'cmd':I[_0x479f2b(0x12c)],'data':{'roomID':this[_0x479f2b(0x38d)]}});})));}get['sessionStatus'](){const _0x3ef57e=_0x23cbae;return this[_0x3ef57e(0x1be)][_0x3ef57e(0x1d9)]();}['getMemberID'](){const _0x1e0f2e=_0x23cbae;var _0x125a3e,_0x7e9557;return(_0x7e9557=(_0x125a3e=this[_0x1e0f2e(0x3b5)])==null?void 0x0:_0x125a3e[_0x1e0f2e(0x104)])!=null?_0x7e9557:null;}[_0x23cbae(0x35a)](){const _0x1435b7=_0x23cbae;super[_0x1435b7(0x35a)](),this[_0x1435b7(0x16f)]['next'](),this[_0x1435b7(0x16f)][_0x1435b7(0x173)]();}['close'](){const _0x5b9e45=_0x23cbae;var _0x173614,_0x2958f7;this[_0x5b9e45(0x188)](),(_0x173614=this[_0x5b9e45(0x3b5)])==null||_0x173614[_0x5b9e45(0x113)]({'cmd':I[_0x5b9e45(0x12c)],'data':{'roomID':this[_0x5b9e45(0x38d)]}}),(_0x2958f7=this[_0x5b9e45(0x3b5)])==null||_0x2958f7[_0x5b9e45(0x2c2)](),this[_0x5b9e45(0x310)][_0x5b9e45(0x173)](),this[_0x5b9e45(0x1be)][_0x5b9e45(0x173)](),this[_0x5b9e45(0x35a)]();}[_0x23cbae(0x2fb)](_0x2265bf){const _0x9cbb20=_0x23cbae;_0x2265bf[_0x9cbb20(0x162)]===I[_0x9cbb20(0x2e0)]?this['_onJoinRoomEvent'](_0x2265bf):_0x2265bf[_0x9cbb20(0x162)]===I[_0x9cbb20(0x343)]&&this['_onRecvEvent'](_0x2265bf);}[_0x23cbae(0x3b6)](_0x201197){const _0x536a5b=_0x23cbae;this['_sessionStatus$']['next'](0x1),_0x201197[_0x536a5b(0x113)]({'cmd':I[_0x536a5b(0x2e0)],'routeKey':this[_0x536a5b(0x38d)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x2cd3db){const _0x41786c=_0x23cbae;var _0x3efa14;if(_0x2cd3db[_0x41786c(0x3f7)]===Vt[_0x41786c(0x21a)]){this[_0x41786c(0x3d5)][_0x41786c(0x2bb)]({'type':_0x135398[_0x41786c(0x153)],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0x41786c(0x131)](0x2);return;}this[_0x41786c(0x1be)]['next'](0x3);const _0x29d367=(_0x3efa14=_0x2cd3db[_0x41786c(0x32d)][_0x41786c(0x223)][this[_0x41786c(0x38d)]])==null?void 0x0:_0x3efa14[_0x41786c(0x34c)];_0x29d367&&_0x29d367[_0x41786c(0x273)](_0x365828=>this[_0x41786c(0x2f4)]['updateMember'](this[_0x41786c(0x38d)],_0x365828));}[_0x23cbae(0x112)](_0x71fac1){const _0x5ce073=_0x23cbae;try{const _0x37e309=_0x71fac1[_0x5ce073(0x32d)];switch(_0x37e309['eventID']){case _0x44cf74[_0x5ce073(0x3ed)]:this[_0x5ce073(0x136)](_0x37e309),this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);break;case _0x44cf74[_0x5ce073(0x25a)]:this[_0x5ce073(0x267)](_0x37e309),this[_0x5ce073(0x310)]['next'](_0x37e309);break;case _0x44cf74[_0x5ce073(0x198)]:this[_0x5ce073(0x2c4)](),this['_clearCollaborationTimeoutTimer'](),this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);break;case _0x44cf74[_0x5ce073(0x314)]:this['_logService'][_0x5ce073(0x43f)](_0x5ce073(0xe9)+JSON['stringify'](_0x37e309)),this[_0x5ce073(0x310)]['next'](_0x37e309);break;case _0x44cf74[_0x5ce073(0x335)]:this['_commentService']['onCommentUpdate'](_0x37e309['data']),this[_0x5ce073(0x310)]['next'](_0x37e309);break;default:this[_0x5ce073(0x310)][_0x5ce073(0x131)](_0x37e309);}}catch(_0x358196){this['_logService']['error'](_0x358196,_0x71fac1);}}[_0x23cbae(0x136)](_0x334eb3){const _0x21a878=_0x23cbae;this[_0x21a878(0x2f4)][_0x21a878(0x300)](this[_0x21a878(0x38d)],_0x334eb3[_0x21a878(0x32d)]);}[_0x23cbae(0x267)](_0x246ff2){const _0x4ef093=_0x23cbae;this['_memberService']['removeMember'](this[_0x4ef093(0x38d)],_0x246ff2[_0x4ef093(0x32d)][_0x4ef093(0x104)]);}async['send'](_0x5358cb,_0x524e14){const _0x4d8f86=_0x23cbae;if(this[_0x4d8f86(0x207)]!==0x3||!this[_0x4d8f86(0x3b5)])throw new Error(_0x4d8f86(0x41e));try{_0x5358cb[_0x4d8f86(0x3f0)]===_0x44cf74[_0x4d8f86(0x1f2)]&&(this[_0x4d8f86(0x3c8)](),this[_0x4d8f86(0x100)](_0x5358cb)),this[_0x4d8f86(0x3b5)][_0x4d8f86(0x113)]({'cmd':I['INGEST'],'routeKey':_0x524e14,'routeType':'','data':_0x5358cb});}catch(_0x1a63c4){this['_logService']['error'](_0x1a63c4);}}[_0x23cbae(0x3c8)](){const _0x434333=_0x23cbae;var _0x309931;this[_0x434333(0x25d)]=window['setTimeout'](()=>{const _0x128aa5=_0x434333;this[_0x128aa5(0x25d)]=null,this[_0x128aa5(0x3d5)][_0x128aa5(0x2bb)]({'type':_0x135398['Error'],'content':this[_0x128aa5(0x151)]['t'](_0x128aa5(0x342))});},(_0x309931=this[_0x434333(0x44c)]['getConfig'](Ls))!=null?_0x309931:$s);}[_0x23cbae(0x275)](){const _0x16d123=_0x23cbae;this[_0x16d123(0x25d)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x16d123(0x25d)]=null);}[_0x23cbae(0x100)](_0x589fb8){const _0x52ab2a=_0x23cbae;if(!this['_shouldReportTelemetry'])return;const {data:_0x4ecc2e}=_0x589fb8,{unitID:_0x236f16,changeset:_0x1a9f79}=_0x4ecc2e,{mutations:_0x410493,type:_0x22c70d}=_0x1a9f79;this[_0x52ab2a(0x139)]={'unitId':_0x236f16,'type':_0x22c70d,'startTime':performance[_0x52ab2a(0x3c1)](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x410493)};}[_0x23cbae(0x2c4)](){const _0x49ea2b=_0x23cbae;if(this[_0x49ea2b(0x32a)]){if(!this['_telemetryInfo']){this[_0x49ea2b(0x135)][_0x49ea2b(0x43f)](_0x49ea2b(0x32c),_0x49ea2b(0x353));return;}this[_0x49ea2b(0x139)][_0x49ea2b(0x3e1)]=performance[_0x49ea2b(0x3c1)](),this['_telemetryInfo']['duration']=this['_telemetryInfo'][_0x49ea2b(0x3e1)]-this[_0x49ea2b(0x139)]['startTime'],this['_telemetryService'][_0x49ea2b(0xe1)](Bn,this[_0x49ea2b(0x139)]),this[_0x49ea2b(0x139)]=null;}}[_0x23cbae(0x188)](){this['_telemetryInfo']=null;}};bt=qn([J(0x2,_0x2ed9bc),J(0x3,_0x5d89d3),J(0x4,_0x2493e9),J(0x5,_0x465ebb),J(0x6,_0x57082d(_0x1ba649)),J(0x7,_0x57082d(ce)),J(0x8,_0x57082d(ks)),J(0x9,_0x187eb8(_0x33d583))],bt);var Jn=Object[_0x23cbae(0xe2)],zn=Object[_0x23cbae(0x36a)],Zn=(_0x273adf,_0x4c607e,_0x53dbbe,_0x26d019)=>{const _0x430d53=_0x23cbae;for(var _0x3aea99=_0x26d019>0x1?void 0x0:_0x26d019?zn(_0x4c607e,_0x53dbbe):_0x4c607e,_0x3512aa=_0x273adf[_0x430d53(0xed)]-0x1,_0x4ba73a;_0x3512aa>=0x0;_0x3512aa--)(_0x4ba73a=_0x273adf[_0x3512aa])&&(_0x3aea99=(_0x26d019?_0x4ba73a(_0x4c607e,_0x53dbbe,_0x3aea99):_0x4ba73a(_0x3aea99))||_0x3aea99);return _0x26d019&&_0x3aea99&&Jn(_0x4c607e,_0x53dbbe,_0x3aea99),_0x3aea99;},fe=(_0x473d23,_0x1e3ec9)=>(_0xd01fe6,_0x4cf3b6)=>_0x1e3ec9(_0xd01fe6,_0x4cf3b6,_0x473d23);let he=class extends _0xbfc176{constructor(_0xe7cc39,_0x16b900,_0x30c42c,_0x3a112e,_0x2447f9,_0x18206d){const _0x5d679d=_0x23cbae;super(),l(this,_0x5d679d(0x10c),new _0x169308(void 0x0)),l(this,_0x5d679d(0x2d3),this['_socket$']['asObservable']()),l(this,_0x5d679d(0x1ce),null),l(this,_0x5d679d(0x2f6),new Map()),l(this,_0x5d679d(0x290),new _0x169308(Y['IDLE'])),l(this,_0x5d679d(0x19d),this[_0x5d679d(0x290)]['asObservable']()),l(this,'_socketReady',!0x1),l(this,_0x5d679d(0x30c)),l(this,_0x5d679d(0x21e),0x0),l(this,'_sendHeartbeatTimer'),l(this,_0x5d679d(0x2b2)),(this[_0x5d679d(0x171)]=_0xe7cc39,this[_0x5d679d(0x151)]=_0x16b900,this[_0x5d679d(0x3d5)]=_0x30c42c,this[_0x5d679d(0x135)]=_0x3a112e,this[_0x5d679d(0x44c)]=_0x2447f9,this[_0x5d679d(0x418)]=_0x18206d,this['_initEventListeners']());}get[_0x23cbae(0x3b5)](){const _0x3e9887=_0x23cbae;return this[_0x3e9887(0x10c)][_0x3e9887(0x1d9)]();}[_0x23cbae(0x405)](){const _0x1279c2=_0x23cbae;this[_0x1279c2(0x10d)](),this[_0x1279c2(0x2b3)]();}['dispose'](){const _0xb7d7c3=_0x23cbae;super[_0xb7d7c3(0x35a)](),this[_0xb7d7c3(0x2f6)]['forEach'](_0x15b1f4=>_0x15b1f4[_0xb7d7c3(0x35a)]()),this[_0xb7d7c3(0x2f6)][_0xb7d7c3(0x263)](),this[_0xb7d7c3(0x290)]['complete']();}async[_0x23cbae(0x236)](_0x4cf45d){const _0x11606a=_0x23cbae;if(this[_0x11606a(0x2f6)][_0x11606a(0x15b)](_0x4cf45d))return this[_0x11606a(0x2f6)][_0x11606a(0x3fd)](_0x4cf45d);this['_tryEnsureSocket']();const _0x4e7e66=this['_injector'][_0x11606a(0x351)](bt,_0x4cf45d,this['_socket$'][_0x11606a(0x341)]());return this[_0x11606a(0x2f6)][_0x11606a(0x111)](_0x4cf45d,_0x4e7e66),_0x4e7e66;}[_0x23cbae(0xff)](_0x335cdd){const _0x107ce1=_0x23cbae;var _0x11e677;const _0xaa4455=this[_0x107ce1(0x2f6)][_0x107ce1(0x3fd)](_0x335cdd);_0xaa4455&&(this['_sessions'][_0x107ce1(0x1a8)](_0x335cdd),_0xaa4455['close']()),this[_0x107ce1(0x2f6)][_0x107ce1(0x11b)]||(_0x11e677=this[_0x107ce1(0x3b5)])==null||_0x11e677['close']();}['reconnect'](){const _0xb0d6a5=_0x23cbae;this[_0xb0d6a5(0x21e)]=0x0,this[_0xb0d6a5(0x30c)]!=null&&(clearTimeout(this[_0xb0d6a5(0x30c)]),this[_0xb0d6a5(0x30c)]=null),this[_0xb0d6a5(0x35e)]();}[_0x23cbae(0x39a)](){const _0x511a31=_0x23cbae;var _0x21c4d8,_0x425872;const _0x496ab5=this[_0x511a31(0x44c)]['getConfig'](En),_0x28e1aa=this['_configService'][_0x511a31(0x266)]($),_0x47fa85=(_0x425872=(_0x21c4d8=_0x28e1aa==null?void 0x0:_0x28e1aa[_0x511a31(0x44d)])!=null?_0x21c4d8:_0x496ab5)!=null?_0x425872:Cn,_0x1c98be=this[_0x511a31(0x418)][_0x511a31(0x43a)](_0x47fa85);return this['_candidateSocket']=_0x1c98be,_0x1c98be;}[_0x23cbae(0x445)](){const _0x1aa8be=_0x23cbae;var _0x43a911,_0x1acd88;try{const _0x55aa09=(_0x1acd88=(_0x43a911=this['_socket'])!=null?_0x43a911:this[_0x1aa8be(0x1ce)])!=null?_0x1acd88:this[_0x1aa8be(0x39a)]();if(_0x55aa09){const _0x4efd47=_0x55aa09[_0x1aa8be(0x113)];_0x55aa09[_0x1aa8be(0x113)]=_0x589b0f=>(this['_rescheduleHeartbeat'](),_0x4efd47['apply'](_0x55aa09,[_0x589b0f])),_0x55aa09[_0x1aa8be(0x389)][_0x1aa8be(0x334)](_0x563318=>this['_onMessage'](_0x55aa09,_0x563318)),_0x55aa09[_0x1aa8be(0x161)][_0x1aa8be(0x18c)](_0x3d181d(0x1))['subscribe'](_0x1fd647=>this['_logService'][_0x1aa8be(0x43f)]('[CollaborationSessionService]:\x20socket\x20error',_0x1fd647)),_0x55aa09['open$'][_0x1aa8be(0x18c)](_0x3d181d(0x1))[_0x1aa8be(0x334)](()=>{this['_onConnectionOpen'](_0x55aa09);}),_0x55aa09['close$'][_0x1aa8be(0x18c)](_0x3d181d(0x1))['subscribe'](_0x25ebf8=>{const _0x45faeb=_0x1aa8be;this[_0x45faeb(0x135)][_0x45faeb(0x448)]('[CollaborationSessionService]',_0x45faeb(0x116),_0x25ebf8),this['_onConnectionFailed']();});}}catch(_0x23c7b6){this['_logService'][_0x1aa8be(0x43f)](_0x23c7b6),this[_0x1aa8be(0x172)]();}}[_0x23cbae(0x407)](_0x62f67f){const _0x2f5ba8=_0x23cbae;this[_0x2f5ba8(0x135)][_0x2f5ba8(0x448)](_0x2f5ba8(0x403),_0x2f5ba8(0x132)),_0x62f67f[_0x2f5ba8(0x113)]({'cmd':I[_0x2f5ba8(0x145)]}),this[_0x2f5ba8(0x2df)]();}[_0x23cbae(0x10d)](){const _0x5dabea=_0x23cbae;window[_0x5dabea(0x277)]('offline',()=>this['_onOffline']());}[_0x23cbae(0x180)](){const _0x50feec=_0x23cbae;this[_0x50feec(0x1bd)]=!0x1,this[_0x50feec(0x1ce)]=null,this[_0x50feec(0x290)][_0x50feec(0x131)](Y['OFFLINE']),this['_socket$'][_0x50feec(0x131)](null),this[_0x50feec(0x22b)](),this[_0x50feec(0x32f)]();}[_0x23cbae(0x172)](){const _0x4e1b24=_0x23cbae;var _0x42997c;this[_0x4e1b24(0x180)](),this[_0x4e1b24(0x21e)]<((_0x42997c=this[_0x4e1b24(0x44c)]['getConfig'](On))!=null?_0x42997c:Dn)?(this['_messageService'][_0x4e1b24(0x2bb)]({'key':_0x4e1b24(0x432),'type':_0x135398[_0x4e1b24(0x153)],'content':this[_0x4e1b24(0x151)]['t'](_0x4e1b24(0x10a))}),this[_0x4e1b24(0x35e)]()):this['_messageService'][_0x4e1b24(0x2bb)]({'key':_0x4e1b24(0x432),'type':_0x135398[_0x4e1b24(0x33b)],'content':this['_localeService']['t'](_0x4e1b24(0x1c6))});}[_0x23cbae(0x2b3)](){const _0x732225=_0x23cbae,_0x58bd19=()=>{const _0x3c2655=_0x3f49;this[_0x3c2655(0x3b5)]||this[_0x3c2655(0x312)]();},_0xa70b9c=()=>{const _0x51276a=_0x3f49;this[_0x51276a(0x3b5)]||document[_0x51276a(0x39c)]===_0x51276a(0x3e4)||this[_0x51276a(0x312)]();};window[_0x732225(0x277)](_0x732225(0x240),_0x58bd19),document[_0x732225(0x277)](_0x732225(0x2aa),_0xa70b9c);}[_0x23cbae(0x35e)](){const _0x4d562b=_0x23cbae;var _0x5ee128;const _0x29dc62=this[_0x4d562b(0x21e)],_0x4caac4=this[_0x4d562b(0x44c)][_0x4d562b(0x266)]($),_0x451c31=_0x29dc62===0x0?0x0:((_0x5ee128=_0x4caac4==null?void 0x0:_0x4caac4[_0x4d562b(0x3c0)])!=null?_0x5ee128:Rn)*0x2**_0x29dc62;this[_0x4d562b(0x30c)]=window[_0x4d562b(0x2d6)](()=>{const _0x13c20d=_0x4d562b;clearTimeout(this[_0x13c20d(0x30c)]),this[_0x13c20d(0x30c)]=null,this['_tryEnsureSocket']();},_0x451c31),this[_0x4d562b(0x21e)]+=0x1;}[_0x23cbae(0x27c)](_0xc0b613,_0x48c0eb){const _0x59b316=_0x23cbae,{cmd:_0x17ec66}=_0x48c0eb;_0x17ec66===I[_0x59b316(0x145)]&&!this[_0x59b316(0x1bd)]&&(_0xc0b613['memberID']=_0x48c0eb['data']['memberID'],this[_0x59b316(0x10c)]['next'](_0xc0b613),this[_0x59b316(0x290)][_0x59b316(0x131)](Y[_0x59b316(0x12d)]),this[_0x59b316(0x1bd)]=!0x0,this[_0x59b316(0x1ce)]=null),_0x17ec66===I[_0x59b316(0x26d)]&&this[_0x59b316(0x22b)](),this['_rescheduleHeartbeat']();}['_rescheduleHeartbeat'](){const _0x5677f0=_0x23cbae;var _0x456276;this[_0x5677f0(0x32f)](),this[_0x5677f0(0x3da)]=window[_0x5677f0(0x2d6)](()=>this[_0x5677f0(0x394)](),(_0x456276=this[_0x5677f0(0x44c)][_0x5677f0(0x266)](bn))!=null?_0x456276:Tn);}[_0x23cbae(0x394)](){const _0x39831c=_0x23cbae;this[_0x39831c(0x3b5)]['send']({'cmd':I['HEARTBEAT']}),this[_0x39831c(0x37f)]();}[_0x23cbae(0x37f)](){const _0x28c9b4=_0x23cbae;var _0x1f3539;this[_0x28c9b4(0x2b2)]=window[_0x28c9b4(0x2d6)](()=>this[_0x28c9b4(0x172)](),(_0x1f3539=this['_configService']['getConfig'](Ls))!=null?_0x1f3539:$s);}['_clearHeartbeatTimer'](){this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x23cbae(0x22b)](){const _0x301709=_0x23cbae;this[_0x301709(0x2b2)]!=null&&(clearTimeout(this[_0x301709(0x2b2)]),this[_0x301709(0x2b2)]=null);}};he=Zn([fe(0x0,_0x57082d(_0x5aca14)),fe(0x1,_0x57082d(_0x1ba649)),fe(0x2,_0x2493e9),fe(0x3,_0x2ed9bc),fe(0x4,_0x465ebb),fe(0x5,Hs)],he);var b=[];for(var ct=0x0;ct<0x100;++ct)b[_0x23cbae(0x12e)]((ct+0x100)[_0x23cbae(0x414)](0x10)[_0x23cbae(0x11f)](0x1));function Qn(_0x56955d,_0x4a1600=0x0){return(b[_0x56955d[_0x4a1600+0x0]]+b[_0x56955d[_0x4a1600+0x1]]+b[_0x56955d[_0x4a1600+0x2]]+b[_0x56955d[_0x4a1600+0x3]]+'-'+b[_0x56955d[_0x4a1600+0x4]]+b[_0x56955d[_0x4a1600+0x5]]+'-'+b[_0x56955d[_0x4a1600+0x6]]+b[_0x56955d[_0x4a1600+0x7]]+'-'+b[_0x56955d[_0x4a1600+0x8]]+b[_0x56955d[_0x4a1600+0x9]]+'-'+b[_0x56955d[_0x4a1600+0xa]]+b[_0x56955d[_0x4a1600+0xb]]+b[_0x56955d[_0x4a1600+0xc]]+b[_0x56955d[_0x4a1600+0xd]]+b[_0x56955d[_0x4a1600+0xe]]+b[_0x56955d[_0x4a1600+0xf]])['toLowerCase']();}var He,er=new Uint8Array(0x10);function tr(){const _0x1d6ee1=_0x23cbae;if(!He&&(He=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x1d6ee1(0x2ba)][_0x1d6ee1(0x2d9)](crypto),!He))throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');return He(er);}var sr=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x23cbae(0x3c6)][_0x23cbae(0x2d9)](crypto);const cs={'randomUUID':sr};function ir(_0x49bae3,_0x1f77ef,_0x55e38f){const _0x27920e=_0x23cbae;if(cs['randomUUID']&&!_0x1f77ef&&!_0x49bae3)return cs[_0x27920e(0x3c6)]();_0x49bae3=_0x49bae3||{};var _0x4bdbb7=_0x49bae3['random']||(_0x49bae3[_0x27920e(0x1ae)]||tr)();return _0x4bdbb7[0x6]=_0x4bdbb7[0x6]&0xf|0x40,_0x4bdbb7[0x8]=_0x4bdbb7[0x8]&0x3f|0x80,Qn(_0x4bdbb7);}var nr=Object[_0x23cbae(0xe2)],rr=Object['getOwnPropertyDescriptor'],or=(_0x590e7f,_0x4b96e2,_0x28f680,_0x3d93d8)=>{const _0x23e26a=_0x23cbae;for(var _0x591dc1=_0x3d93d8>0x1?void 0x0:_0x3d93d8?rr(_0x4b96e2,_0x28f680):_0x4b96e2,_0x2dd4e2=_0x590e7f[_0x23e26a(0xed)]-0x1,_0x107624;_0x2dd4e2>=0x0;_0x2dd4e2--)(_0x107624=_0x590e7f[_0x2dd4e2])&&(_0x591dc1=(_0x3d93d8?_0x107624(_0x4b96e2,_0x28f680,_0x591dc1):_0x107624(_0x591dc1))||_0x591dc1);return _0x3d93d8&&_0x591dc1&&nr(_0x4b96e2,_0x28f680,_0x591dc1),_0x591dc1;},ht=(_0x56840d,_0x5a6bfc)=>(_0x570e3e,_0xa82a43)=>_0x5a6bfc(_0x570e3e,_0xa82a43,_0x56840d);let Ye=class{constructor(_0x46d5c5,_0x36e34a,_0x2ebf5e){const _0x298192=_0x23cbae;this[_0x298192(0x171)]=_0x46d5c5,this[_0x298192(0x2f5)]=_0x36e34a,this[_0x298192(0x2f0)]=_0x2ebf5e;}['transformIMECache'](_0x450268){const _0x5d8f59=_0x23cbae;this['_transformUndoRedoStack'](_0x450268),this[_0x5d8f59(0x42f)](_0x450268);}[_0x23cbae(0x241)](_0x5ea467){const _0x1de1da=_0x23cbae,{unitID:_0xa2bec6}=_0x5ea467,_0x41c124=this[_0x1de1da(0x2f0)][_0x1de1da(0x1a0)](_0xa2bec6)[_0x1de1da(0x28e)](_0x3d5f40),{redoCache:_0x443241}=_0x41c124[_0x1de1da(0x36f)]();if(_0x443241[_0x1de1da(0xed)]===0x0)return _0x5ea467;let _0xcc6bd2=_0x2d9f70[_0x1de1da(0x415)](_0x5ea467['mutations'][0x0]);for(let _0x29f399=0x0;_0x29f399<_0x443241[_0x1de1da(0xed)];_0x29f399++){const _0x2e17cd={'id':_0x1de1da(0x200),'params':{..._0x443241[_0x29f399]}},_0x36f356=this[_0x1de1da(0x2f5)][_0x1de1da(0x2bf)](_0xcc6bd2,_0x2e17cd,!0x1);if(_0x426132(_0x36f356))throw _0x36f356[_0x1de1da(0x43f)];_0xcc6bd2=_0x36f356[_0x1de1da(0x3e8)];}return{..._0x2d9f70[_0x1de1da(0x415)](_0x5ea467),'mutations':[_0xcc6bd2]};}[_0x23cbae(0xef)](_0x1e3a7a){const _0x4f9822=_0x23cbae,{unitID:_0x4c0b1e}=_0x1e3a7a,_0x1eb9b1=this[_0x4f9822(0x2f0)][_0x4f9822(0x1a0)](_0x4c0b1e)[_0x4f9822(0x28e)](_0x3d5f40),{undoCache:_0x3ca9bd,redoCache:_0x57b2e2}=_0x1eb9b1[_0x4f9822(0x36f)]();if(_0x3ca9bd[_0x4f9822(0xed)]===0x0||_0x57b2e2[_0x4f9822(0xed)]===0x0)return;const _0x1e7aab=[],_0x23f009=[];let _0xdd8fff=_0x2d9f70[_0x4f9822(0x415)](_0x1e3a7a[_0x4f9822(0x2e4)][0x0]),_0x1f6808=_0x2d9f70[_0x4f9822(0x415)](_0x1e3a7a[_0x4f9822(0x2e4)][0x0]);for(let _0x2f6c51=_0x3ca9bd[_0x4f9822(0xed)]-0x1;_0x2f6c51>=0x0;_0x2f6c51--){const _0x45f902={'id':_0x4f9822(0x200),'params':{..._0x3ca9bd[_0x2f6c51]}},_0x7344eb={'id':_0x4f9822(0x200),'params':{..._0x57b2e2[_0x2f6c51]}},_0x57f1e6=this[_0x4f9822(0x2f5)][_0x4f9822(0x2bf)](_0xdd8fff,_0x45f902,!0x1),_0x34390c=this['_transformService'][_0x4f9822(0x2bf)](_0x1f6808,_0x7344eb,!0x1);if(_0x426132(_0x57f1e6))throw _0x57f1e6[_0x4f9822(0x43f)];if(_0x426132(_0x34390c))throw _0x34390c[_0x4f9822(0x43f)];_0x1e7aab[_0x4f9822(0x154)](_0x57f1e6['m2Prime'][_0x4f9822(0x1e4)]),_0x23f009[_0x4f9822(0x154)](_0x34390c[_0x4f9822(0x1b0)][_0x4f9822(0x1e4)]),_0xdd8fff=_0x57f1e6[_0x4f9822(0x3e8)],_0x1f6808=_0x34390c[_0x4f9822(0x3e8)];}_0x1eb9b1['setUndoRedoMutationParamsCache']({'undoCache':_0x1e7aab,'redoCache':_0x23f009});}['_transformPreviousActiveRange'](_0x431ee8){const _0x625846=_0x23cbae,{unitID:_0x383ace}=_0x431ee8,_0x59af29=this['_renderManagerService'][_0x625846(0x1a0)](_0x383ace)[_0x625846(0x28e)](_0x3d5f40),_0x4aebf5=_0x59af29[_0x625846(0x17a)]();if(_0x4aebf5==null)return;const _0x59678b=[{'id':_0x625846(0x200),'params':{'unitId':_0x431ee8[_0x625846(0x1a5)],'actions':null,'textRanges':[_0x4aebf5]}}],_0x560996=this[_0x625846(0x2f5)][_0x625846(0x3cc)](_0x431ee8,_0x59678b);if(!_0x24c912(_0x560996))throw _0x560996[_0x625846(0x43f)];const _0x3588b7=_0x560996[_0x625846(0x1b0)][0x0][_0x625846(0x1e4)][_0x625846(0x1f8)];Array[_0x625846(0x218)](_0x3588b7)&&_0x3588b7['length']&&_0x59af29['setActiveRange'](_0x3588b7[0x0]);}};Ye=or([ht(0x0,_0x57082d(_0x5aca14)),ht(0x1,_0x3ce5fa),ht(0x2,_0x241377)],Ye);var ar=Object[_0x23cbae(0xe2)],cr=Object[_0x23cbae(0x36a)],hr=(_0x2191d6,_0x54cd70,_0xebecaf,_0x1ffc55)=>{const _0x28e9c7=_0x23cbae;for(var _0x7825b7=_0x1ffc55>0x1?void 0x0:_0x1ffc55?cr(_0x54cd70,_0xebecaf):_0x54cd70,_0x2b12d4=_0x2191d6[_0x28e9c7(0xed)]-0x1,_0x2b5d5b;_0x2b12d4>=0x0;_0x2b12d4--)(_0x2b5d5b=_0x2191d6[_0x2b12d4])&&(_0x7825b7=(_0x1ffc55?_0x2b5d5b(_0x54cd70,_0xebecaf,_0x7825b7):_0x2b5d5b(_0x7825b7))||_0x7825b7);return _0x1ffc55&&_0x7825b7&&ar(_0x54cd70,_0xebecaf,_0x7825b7),_0x7825b7;},De=(_0x4ec95f,_0x182859)=>(_0x41fca5,_0x2f96f5)=>_0x182859(_0x41fca5,_0x2f96f5,_0x4ec95f);let w=class extends _0xbfc176{constructor(_0x2c4a5b,_0xf411,_0x164009,_0x147a95,_0x4be23f){const _0x89f5e0=_0x23cbae;super(),l(this,_0x89f5e0(0x2de),new Map()),l(this,_0x89f5e0(0x254),new Map()),l(this,_0x89f5e0(0x298),!0x1),(this[_0x89f5e0(0x44c)]=_0x2c4a5b,this[_0x89f5e0(0x212)]=_0xf411,this[_0x89f5e0(0x38b)]=_0x164009,this[_0x89f5e0(0x151)]=_0x147a95,this[_0x89f5e0(0x28a)]=_0x4be23f,this[_0x89f5e0(0x32e)]());}[_0x23cbae(0x2f9)](){const _0xc43d5f=_0x23cbae;this[_0xc43d5f(0x298)]=!0x0;}[_0x23cbae(0x446)](){this['_disabled']=!0x1;}[_0x23cbae(0x35a)](){const _0x3e181f=_0x23cbae;this[_0x3e181f(0x2b0)]()['then'](()=>super['dispose']());}async[_0x23cbae(0x2b7)](_0x50a6ab){const _0x11c966=_0x23cbae;return this[_0x11c966(0x298)]?null:this[_0x11c966(0x212)][_0x11c966(0x170)](hs(_0x50a6ab));}async[_0x23cbae(0x2d1)](_0x1c4a06,_0x1c56b3){const _0x2f09d7=_0x23cbae;return!!this[_0x2f09d7(0x212)][_0x2f09d7(0x30b)](_0x1c4a06,_0x1c56b3);}[_0x23cbae(0xe0)](_0x3a4d01,_0x557d72,_0x53e3bf,_0x43bbf4){const _0x3ff6a9=_0x23cbae,_0x5e1e1f=this['_revisionService'][_0x3ff6a9(0x305)](_0x3a4d01);this[_0x3ff6a9(0x2de)]['set'](_0x3a4d01,{'unitID':_0x3a4d01,'type':_0x557d72,'awaitingChangeset':_0x53e3bf,'mutations':_0x43bbf4,'rev':_0x5e1e1f}),this[_0x3ff6a9(0x254)][_0x3ff6a9(0x15b)](_0x3a4d01)||this[_0x3ff6a9(0x360)](_0x3a4d01);}['_scheduleSaving'](_0x2f9c64){const _0xfe3d90=_0x23cbae,_0x1e705e=this[_0xfe3d90(0x1a4)]();_0x1e705e===0x0?this[_0xfe3d90(0x187)](_0x2f9c64):this[_0xfe3d90(0x254)][_0xfe3d90(0x111)](_0x2f9c64,setTimeout(()=>this['_saveCache'](_0x2f9c64),_0x1e705e));}['_getSaveTimeout'](){var _0x505c94;return(_0x505c94=this['_configService']['getConfig'](wn))!=null?_0x505c94:Pn;}[_0x23cbae(0x187)](_0x579cd8){const _0x1254f5=_0x23cbae,_0x43d79e=this['_saveTaskMap'][_0x1254f5(0x3fd)](_0x579cd8);return _0x43d79e!==void 0x0&&window['clearTimeout'](_0x43d79e),this[_0x1254f5(0x212)][_0x1254f5(0x30b)](hs(_0x579cd8),this[_0x1254f5(0x2de)][_0x1254f5(0x3fd)](_0x579cd8))[_0x1254f5(0x149)](()=>this[_0x1254f5(0x254)][_0x1254f5(0x1a8)](_0x579cd8));}async[_0x23cbae(0x2b0)](){const _0x168cdb=_0x23cbae,_0x2c2ad6=[];this[_0x168cdb(0x254)][_0x168cdb(0x273)]((_0x58c27d,_0x23802c)=>{const _0x584b0a=_0x168cdb;window[_0x584b0a(0x43d)](_0x58c27d),_0x2c2ad6[_0x584b0a(0x12e)](this['_saveCache'](_0x23802c)[_0x584b0a(0x149)](()=>{this['_saveTaskMap']['delete'](_0x23802c);}));}),await Promise[_0x168cdb(0x3d1)](_0x2c2ad6);}[_0x23cbae(0x32e)](){const _0x254144=_0x23cbae;this[_0x254144(0x165)](this[_0x254144(0x38b)][_0x254144(0x38e)](()=>{const _0x46c97b=_0x254144;if(this[_0x46c97b(0x254)][_0x46c97b(0x11b)])return this['_localeService']['t'](_0x46c97b(0x158));}));}};w=hr([De(0x0,_0x465ebb),De(0x1,_0x16bea1),De(0x2,_0x5d89d3),De(0x3,_0x57082d(_0x1ba649)),De(0x4,_0x57082d(_0x2056a3))],w);function hs(_0xb9379c){return'unit-cache-'+_0xb9379c;}var lr=Object[_0x23cbae(0xe2)],_r=Object[_0x23cbae(0x36a)],ur=(_0x4fca7e,_0x23a730,_0x2a2889,_0x476158)=>{for(var _0x1441f8=_0x476158>0x1?void 0x0:_0x476158?_r(_0x23a730,_0x2a2889):_0x23a730,_0x4e8acd=_0x4fca7e['length']-0x1,_0x27bf01;_0x4e8acd>=0x0;_0x4e8acd--)(_0x27bf01=_0x4fca7e[_0x4e8acd])&&(_0x1441f8=(_0x476158?_0x27bf01(_0x23a730,_0x2a2889,_0x1441f8):_0x27bf01(_0x1441f8))||_0x1441f8);return _0x476158&&_0x1441f8&&lr(_0x23a730,_0x2a2889,_0x1441f8),_0x1441f8;},lt=(_0x38aa12,_0x123dc4)=>(_0x32fc23,_0x4447cd)=>_0x123dc4(_0x32fc23,_0x4447cd,_0x38aa12);function dr(_0x1369c5){const _0x5bd657=_0x23cbae,{unitID:_0x95cb66,mutations:_0x326313}=_0x1369c5;return{'unitId':_0x95cb66,'subUnitId':_0x326313[0x0]['params'][_0x5bd657(0x1ee)]};}let Ke=class{constructor(_0x2cb60f,_0x1fdc0a,_0x9044ca){const _0x1c69fd=_0x23cbae;this[_0x1c69fd(0x171)]=_0x2cb60f,this['_transformService']=_0x1fdc0a,this[_0x1c69fd(0x2a8)]=_0x9044ca;}['transformSelections'](_0x47fce4){const _0xc906c2=_0x23cbae;var _0x2b0dc2,_0x4e29d5,_0x2c2655,_0x545211;const _0x514cfe=this[_0xc906c2(0x171)][_0xc906c2(0x3fd)](_0x34b058),{unitId:_0x27eedf,subUnitId:_0x237bfe}=dr(_0x47fce4),_0x4ae163=_0x514cfe['getWorkbookSelections'](_0x27eedf)['getCurrentSelections'](),_0x46eb65=(_0x4e29d5=(_0x2b0dc2=this['_instanceService']['getUnit'](_0x27eedf))==null?void 0x0:_0x2b0dc2[_0xc906c2(0x3f1)]())==null?void 0x0:_0x4e29d5['getSheetId']();if(_0x4ae163[_0xc906c2(0xed)]===0x0||!_0x27eedf||!_0x237bfe)return;const _0x963367=[{'id':_0x58be78['id'],'params':{'unitId':_0x27eedf,'subUnitId':_0x46eb65,'selections':_0x2d9f70['deepClone'](_0x4ae163)}}],_0x20f263=this[_0xc906c2(0x2f5)]['transformMutationsWithChangeset'](_0x47fce4,_0x963367);if(!_0x24c912(_0x20f263))throw _0x20f263['error'];const _0x2b1204=(_0x545211=(_0x2c2655=_0x20f263[_0xc906c2(0x1b0)][0x0])==null?void 0x0:_0x2c2655[_0xc906c2(0x1e4)])==null?void 0x0:_0x545211[_0xc906c2(0x376)];Array[_0xc906c2(0x218)](_0x2b1204)&&_0x2b1204['length']&&this['_injector']['get'](_0x2c218a)[_0xc906c2(0x1ad)](_0x58be78['id'],{'unitId':_0x27eedf,'subUnitId':_0x46eb65,'selections':_0x2b1204});}};Ke=ur([lt(0x0,_0x57082d(_0x5aca14)),lt(0x1,_0x3ce5fa),lt(0x2,_0xf0f4c1)],Ke);const tt=_0x1d1962('univer-pro.collaboration-client.single-active-unit-service');var Bs=(_0x4b20fc=>(_0x4b20fc[_0x4b20fc[_0x23cbae(0x22a)]=0x0]=_0x23cbae(0x22a),_0x4b20fc[_0x4b20fc['OTHER_CLIENTS_EDITING']=0x1]=_0x23cbae(0x2ae),_0x4b20fc))(Bs||{});const ls=0x7530,_s=_0x23cbae(0x1a3);class fr extends _0xbfc176{constructor(){const _0x375edd=_0x23cbae;super(),l(this,_0x375edd(0x408),_0x2d9f70[_0x375edd(0x259)]()),l(this,_0x375edd(0x237),new Set()),l(this,_0x375edd(0x388),new Map()),l(this,'_heartbeatTimer',null),l(this,_0x375edd(0x370),new Map()),l(this,_0x375edd(0x2d0),new Map()),this[_0x375edd(0x383)]();}['dispose'](){const _0x281321=_0x23cbae;super[_0x281321(0x35a)](),this[_0x281321(0x370)][_0x281321(0x273)]((_0x38618b,_0x123641)=>this[_0x281321(0x3ec)](_0x123641)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x281321(0x2e3)]);}['getUnitStatus$'](_0x55bcc9){return this['_ensureSubject'](_0x55bcc9)['pipe'](_0x95638f());}[_0x23cbae(0x169)](_0x701245){const _0x295e73=_0x23cbae;this['_selfUnitIDs']['size']===0x0&&this[_0x295e73(0xf3)](),this[_0x295e73(0x237)][_0x295e73(0x302)](_0x701245),this[_0x295e73(0x350)]({'type':0x0,'memberID':this[_0x295e73(0x408)],'unitIDs':[_0x701245],'isForwarded':!0x1});}[_0x23cbae(0x103)](_0xf19752){const _0x581071=_0x23cbae;this[_0x581071(0x237)][_0x581071(0x1a8)](_0xf19752),this[_0x581071(0x237)]['size']===0x0&&this[_0x581071(0x2e3)]&&window[_0x581071(0x124)](this[_0x581071(0x2e3)]);}[_0x23cbae(0x383)](){const _0x227258=_0x23cbae;this[_0x227258(0x165)](_0xad1b53(_0x19a309(window,_0x227258(0x2fc))[_0x227258(0x334)](_0x5eb452=>{const _0xec8416=_0x227258;if(_0x5eb452[_0xec8416(0x1f4)]!==_s||!_0x5eb452[_0xec8416(0x208)])return;const _0x2efc93=JSON[_0xec8416(0x3ea)](_0x5eb452[_0xec8416(0x208)]);this[_0xec8416(0x43c)](_0x2efc93);}))),window[_0x227258(0x277)](_0x227258(0x1e1),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x227258(0x316)](this[_0x227258(0x237)])}));}[_0x23cbae(0x43c)](_0x4c74e2){const _0x53e81f=_0x23cbae;switch(_0x4c74e2[_0x53e81f(0x2f1)]){case 0x0:this[_0x53e81f(0x214)](_0x4c74e2);break;case 0x1:this[_0x53e81f(0x225)](_0x4c74e2);break;case 0x2:this[_0x53e81f(0x1cf)](_0x4c74e2);break;}}[_0x23cbae(0x214)](_0x21cefc){const _0x218059=_0x23cbae,{unitIDs:_0x3b50ea,memberID:_0x4bfe1f,isForwarded:_0x32b762}=_0x21cefc;_0x3b50ea[_0x218059(0x273)](_0x165520=>{const _0x374d1f=_0x218059;if(!_0x32b762&&this['_unitOnClients']['has'](_0x165520)&&this[_0x374d1f(0x27e)](_0x165520)[_0x374d1f(0x131)](0x1),!this[_0x374d1f(0x388)][_0x374d1f(0x15b)](_0x165520)||!this[_0x374d1f(0x388)][_0x374d1f(0x3fd)](_0x165520)[_0x374d1f(0x15b)](_0x4bfe1f)){const _0x90754=this[_0x374d1f(0x388)][_0x374d1f(0x3fd)](_0x165520)||new Set();_0x90754['add'](_0x4bfe1f),this[_0x374d1f(0x388)][_0x374d1f(0x111)](_0x165520,_0x90754),this['_scheduleClearOtherTimer'](_0x4bfe1f);}}),_0x32b762||this[_0x218059(0x350)]({'type':0x0,'memberID':this[_0x218059(0x408)],'unitIDs':[...this[_0x218059(0x237)]],'isForwarded':!0x0});}[_0x23cbae(0x25f)](_0x3872ba){const _0x3a69fd=_0x23cbae;this[_0x3a69fd(0x3ec)](_0x3872ba);const _0x1d4b95=window['setTimeout'](()=>{const _0x4a97c3=_0x3a69fd;this['_unitOnClients'][_0x4a97c3(0x273)](_0x7d0e43=>{_0x7d0e43['delete'](_0x3872ba);});},ls*0x2);this[_0x3a69fd(0x370)][_0x3a69fd(0x111)](_0x3872ba,_0x1d4b95);}[_0x23cbae(0x3ec)](_0x5c4078){const _0x51b267=_0x23cbae;if(this['_clearOtherTimers'][_0x51b267(0x15b)](_0x5c4078)){const _0x486cfb=this[_0x51b267(0x370)][_0x51b267(0x3fd)](_0x5c4078);_0x486cfb&&window[_0x51b267(0x43d)](_0x486cfb),this[_0x51b267(0x370)][_0x51b267(0x111)](_0x5c4078,null);}}[_0x23cbae(0x225)](_0x1dce5d){const _0x28fedf=_0x23cbae,{memberID:_0xe135e7,unitIDs:_0x3e9ed8}=_0x1dce5d;_0x3e9ed8[_0x28fedf(0x273)](_0xfaf85f=>{const _0xaef830=_0x28fedf;var _0x534a17;const _0xa75c4e=this[_0xaef830(0x388)][_0xaef830(0x3fd)](_0xfaf85f);_0xa75c4e&&(_0xa75c4e[_0xaef830(0x1a8)](_0xe135e7),(_0x534a17=this[_0xaef830(0x27e)](_0xfaf85f))==null||_0x534a17[_0xaef830(0x131)](_0xa75c4e[_0xaef830(0x11b)]===0x0?0x0:0x1));}),this[_0x28fedf(0x3ec)](_0xe135e7);}[_0x23cbae(0x1cf)](_0x3e277c){const _0x40b344=_0x23cbae;this[_0x40b344(0x25f)](_0x3e277c[_0x40b344(0x104)]);}[_0x23cbae(0x350)](_0xd7b166){const _0x327f99=_0x23cbae;localStorage[_0x327f99(0x30b)](_s,JSON['stringify'](_0xd7b166));}[_0x23cbae(0xf3)](){const _0x4a5774=_0x23cbae;this[_0x4a5774(0x2e3)]=window['setInterval'](()=>{const _0x196344=_0x4a5774;this['_send']({'type':0x2,'memberID':this[_0x196344(0x408)]});},ls);}[_0x23cbae(0x27e)](_0x5f3bd8){const _0x590c7a=_0x23cbae;return this[_0x590c7a(0x2d0)][_0x590c7a(0x15b)](_0x5f3bd8)||this[_0x590c7a(0x2d0)]['set'](_0x5f3bd8,new _0x169308(0x0)),this[_0x590c7a(0x2d0)][_0x590c7a(0x3fd)](_0x5f3bd8);}}function Vs(_0x19c01e){const _0x537f4e=_0x23cbae;let _0x2ef4ed='';for(const _0x5b45aa of _0x19c01e){const {startOffset:_0x5e87b6,endOffset:_0x392061,isActive:_0x461008}=_0x5b45aa;_0x2ef4ed[_0x537f4e(0xed)]&&(_0x2ef4ed+=','),_0x2ef4ed+=_0x5e87b6+':'+_0x392061+':'+(_0x461008?'1':'0');}return _0x2ef4ed;}function mr(_0x4e8978){const _0x4b754a=_0x23cbae,_0x3c8e1a=_0x4e8978[_0x4b754a(0x41f)](','),_0x1229f6=[];for(const _0x39eb4d of _0x3c8e1a){const [_0x4501bc,_0x419027,_0xd3222f]=_0x39eb4d[_0x4b754a(0x41f)](':');_0x1229f6['push']({'startOffset':Number(_0x4501bc),'endOffset':Number(_0x419027),'collapsed':_0x4501bc===_0x419027,'isActive':_0xd3222f==='1'});}return _0x1229f6[_0x4b754a(0x3e6)](_0x50dc9b=>_0x50dc9b[_0x4b754a(0x1b9)])||(_0x1229f6[0x0][_0x4b754a(0x1b9)]=!0x0),_0x1229f6;}class Ft extends _0x3a262a{constructor(){const _0x47d853=_0x23cbae;super(...arguments),l(this,'_collabCursorState$',new _0x169308(null)),l(this,_0x47d853(0x292),this['_collabCursorState$'][_0x47d853(0x341)]());}['syncEditingCollabCursor'](_0x1e9b05){const _0x45ee27=_0x23cbae,{unitID:_0x426c0e,memberID:_0x2078ee,textRanges:_0x219ef1}=_0x1e9b05,_0x40fa3b=Vs(_0x219ef1),_0x467d60={'unitID':_0x426c0e,'memberID':_0x2078ee,'selection':_0x40fa3b};this[_0x45ee27(0x313)][_0x45ee27(0x131)](_0x467d60);}}var gr=Object[_0x23cbae(0xe2)],Sr=Object['getOwnPropertyDescriptor'],pr=(_0x4e040b,_0x476a38,_0x5e3539,_0x4edcc4)=>{const _0x1ae62a=_0x23cbae;for(var _0xe06bd7=_0x4edcc4>0x1?void 0x0:_0x4edcc4?Sr(_0x476a38,_0x5e3539):_0x476a38,_0x3eaa7c=_0x4e040b[_0x1ae62a(0xed)]-0x1,_0x36a414;_0x3eaa7c>=0x0;_0x3eaa7c--)(_0x36a414=_0x4e040b[_0x3eaa7c])&&(_0xe06bd7=(_0x4edcc4?_0x36a414(_0x476a38,_0x5e3539,_0xe06bd7):_0x36a414(_0xe06bd7))||_0xe06bd7);return _0x4edcc4&&_0xe06bd7&&gr(_0x476a38,_0x5e3539,_0xe06bd7),_0xe06bd7;},us=(_0x601a9,_0x58e4ab)=>(_0x42e813,_0x134952)=>_0x58e4ab(_0x42e813,_0x134952,_0x601a9);let Xe=class{constructor(_0x76c33e,_0x351674){const _0x5d4509=_0x23cbae;this[_0x5d4509(0x171)]=_0x76c33e,this['_transformService']=_0x351674;}[_0x23cbae(0x3f8)](_0x42f5b7){const _0x4b21be=_0x23cbae;var _0xde927;const _0x330c4f=this['_injector'][_0x4b21be(0x3fd)](_0x5502c3),_0x25fd71=(_0xde927=_0x330c4f[_0x4b21be(0x338)]())!=null?_0xde927:[];if(_0x25fd71['length']===0x0)return;const _0x3b9604=[{'id':_0x4b21be(0x200),'params':{'unitId':_0x42f5b7[_0x4b21be(0x1a5)],'actions':null,'textRanges':_0x25fd71}}],_0x4df874=this[_0x4b21be(0x2f5)][_0x4b21be(0x3cc)](_0x42f5b7,_0x3b9604);if(!_0x24c912(_0x4df874))throw _0x4df874[_0x4b21be(0x43f)];const _0x523d04=_0x4df874['m2Prime'][0x0][_0x4b21be(0x1e4)][_0x4b21be(0x1f8)];Array[_0x4b21be(0x218)](_0x523d04)&&_0x523d04[_0x4b21be(0xed)]&&_0x330c4f[_0x4b21be(0xfb)](_0x523d04,!0x1);}};Xe=pr([us(0x0,_0x57082d(_0x5aca14)),us(0x1,_0x3ce5fa)],Xe);const vr=new Set([_0xecee35['id']]);function ds(_0x2a74f3,_0x16c9ba,_0x4dc805,_0x5cf634,_0x537330){const _0x383bd4=_0x23cbae;var _0x83ee2c,_0xb2c3ce,_0x21daa0,_0x4cb7ab;const _0x374e9f=[];for(const _0x360812 of _0x2a74f3)if(vr[_0x383bd4(0x15b)](_0x360812['id'])){if(_0x374e9f[_0x383bd4(0xed)]>0x0)break;_0x374e9f[_0x383bd4(0x12e)](_0x360812);break;}else _0x374e9f['push'](_0x360812);const _0x24145a=(_0xb2c3ce=(_0x83ee2c=_0x537330[_0x383bd4(0x177)]())==null?void 0x0:_0x83ee2c['userID'])!=null?_0xb2c3ce:_0x383bd4(0x301),_0x248b5f=(_0x4cb7ab=(_0x21daa0=_0x537330[_0x383bd4(0x177)]())==null?void 0x0:_0x21daa0['memberID'])!=null?_0x4cb7ab:_0x383bd4(0x301);return{'changeset':{'unitID':_0x16c9ba,'type':_0x2f6b1e(_0x4dc805[_0x383bd4(0xfa)](_0x16c9ba)),'baseRev':_0x5cf634[_0x383bd4(0x305)](_0x16c9ba),'revision':0x0,'userID':_0x24145a,'memberID':_0x248b5f,'mutations':_0x374e9f},'pendingMutations':_0x2a74f3['slice'](_0x374e9f[_0x383bd4(0xed)])};}function Ir(_0x204532,_0x2c5dc3,_0x19af8a,_0x5c3dad,_0x26a44b){const _0x384a4e=_0x23cbae;var _0x4574cb,_0x2dd87a,_0x4054e4,_0x5e41ae;const _0x382e7d=[_0x204532[_0x384a4e(0x39b)]((_0x33250d,_0x42cf04)=>{const _0x3e3cff=_0x384a4e;var _0x3c03c3;const {id:_0x3a3125}=_0x33250d,{id:_0x1a678c,type:_0x110696}=_0x42cf04,_0x2e795c=(_0x3c03c3=_0x33250d['params'])!=null?_0x3c03c3:{'actions':null},_0x6e5d02=_0x42cf04[_0x3e3cff(0x1e4)];if(_0x3a3125&&_0x3a3125!==_0x1a678c)throw new Error(_0x3e3cff(0x3b3)+_0x3a3125+_0x3e3cff(0x191)+_0x1a678c+'.');return{..._0x33250d,'id':_0x1a678c,'type':_0x110696,'params':{'unitId':_0x6e5d02[_0x3e3cff(0x37e)],'textRanges':_0x6e5d02['textRanges'],'actions':_0x26e9d3['compose'](_0x2e795c[_0x3e3cff(0x347)],_0x6e5d02[_0x3e3cff(0x347)])}};},{})],_0x560400=(_0x2dd87a=(_0x4574cb=_0x26a44b['getCurrentUser']())==null?void 0x0:_0x4574cb[_0x384a4e(0x441)])!=null?_0x2dd87a:_0x384a4e(0x301),_0x1766b8=(_0x5e41ae=(_0x4054e4=_0x26a44b[_0x384a4e(0x177)]())==null?void 0x0:_0x4054e4['memberID'])!=null?_0x5e41ae:_0x384a4e(0x301);return{'changeset':{'unitID':_0x2c5dc3,'type':_0x2f6b1e(_0x19af8a[_0x384a4e(0xfa)](_0x2c5dc3)),'baseRev':_0x5c3dad['getCurrentRevOfUnit'](_0x2c5dc3),'revision':0x0,'userID':_0x560400,'memberID':_0x1766b8,'mutations':_0x382e7d},'pendingMutations':[]};}const Er={'id':_0x37478b['id'],'type':_0x406a66[_0x23cbae(0x411)],'params':{}};var Cr=Object['defineProperty'],br=Object[_0x23cbae(0x36a)],_e=(_0x5d93fc,_0xa6c0cd,_0x4b0d32,_0xf86331)=>{const _0x3ebfec=_0x23cbae;for(var _0x20b81e=_0xf86331>0x1?void 0x0:_0xf86331?br(_0xa6c0cd,_0x4b0d32):_0xa6c0cd,_0x4fd3f6=_0x5d93fc[_0x3ebfec(0xed)]-0x1,_0x14e973;_0x4fd3f6>=0x0;_0x4fd3f6--)(_0x14e973=_0x5d93fc[_0x4fd3f6])&&(_0x20b81e=(_0xf86331?_0x14e973(_0xa6c0cd,_0x4b0d32,_0x20b81e):_0x14e973(_0x20b81e))||_0x20b81e);return _0xf86331&&_0x20b81e&&Cr(_0xa6c0cd,_0x4b0d32,_0x20b81e),_0x20b81e;},m=(_0x4ae3a9,_0x2eb85c)=>(_0x5ff5fb,_0x1df26e)=>_0x2eb85c(_0x5ff5fb,_0x1df26e,_0x4ae3a9),P=(_0x3fd256=>(_0x3fd256[_0x23cbae(0x26e)]=_0x23cbae(0x320),_0x3fd256['SYNCED']=_0x23cbae(0x369),_0x3fd256[_0x23cbae(0x160)]='pending',_0x3fd256[_0x23cbae(0x244)]=_0x23cbae(0x2fa),_0x3fd256[_0x23cbae(0x27f)]=_0x23cbae(0x1d0),_0x3fd256['FETCH_MISS']='fetch_missing',_0x3fd256[_0x23cbae(0x444)]=_0x23cbae(0x358),_0x3fd256[_0x23cbae(0x1a9)]=_0x23cbae(0x23f),_0x3fd256))(P||{});class ue{constructor(_0x1f71b6,_0x3b0862,_0x47c66,_0x1383fd,_0x12e3a3,_0x525ee6,_0xf2edd8,_0x4750a2,_0x1a89e5){const _0x1ecfdf=_0x23cbae;l(this,_0x1ecfdf(0x1ba),null),l(this,_0x1ecfdf(0x1ab),[]),(this[_0x1ecfdf(0x1a5)]=_0x1f71b6,this['type']=_0x3b0862,this[_0x1ecfdf(0x386)]=_0x12e3a3,this[_0x1ecfdf(0x393)]=_0x525ee6,this[_0x1ecfdf(0x216)]=_0xf2edd8,this[_0x1ecfdf(0x28a)]=_0x4750a2,this[_0x1ecfdf(0x279)]=_0x1a89e5,this[_0x1ecfdf(0x1ba)]=_0x47c66,this[_0x1ecfdf(0x1ab)]=_0x1383fd);}['_checkMissing'](_0x540180){const _0x3a7ce4=_0x23cbae,_0x5ddcd4=this[_0x3a7ce4(0x28a)][_0x3a7ce4(0x305)](this[_0x3a7ce4(0x1a5)]);return _0x540180['revision']>_0x5ddcd4+0x1?(this[_0x3a7ce4(0x386)][_0x3a7ce4(0x2c1)]({'from':_0x5ddcd4,'to':_0x540180[_0x3a7ce4(0x1d8)]-0x1}),!0x0):!0x1;}[_0x23cbae(0x159)](_0x4eb324){const _0x400dbc=_0x23cbae;this[_0x400dbc(0x216)][_0x400dbc(0x16c)](this['unitID'],_0x4eb324);}[_0x23cbae(0x1ea)](_0x2dd223){const _0x30210e=_0x23cbae;var _0x29f116,_0x3a15e8;(_0x3a15e8=(_0x29f116=this[_0x30210e(0x386)])[_0x30210e(0x246)])==null||_0x3a15e8['call'](_0x29f116,_0x2dd223);}['_transformIMECache'](_0x30d1c6){const _0x45ca71=_0x23cbae;var _0x37945a,_0x51f65c;return(_0x51f65c=(_0x37945a=this['_handler'])[_0x45ca71(0x15f)])==null?void 0x0:_0x51f65c[_0x45ca71(0x1fc)](_0x37945a,_0x30d1c6);}[_0x23cbae(0x1e0)](_0x31d9fc){const _0x2b471a=_0x23cbae;var _0xfb661d,_0x34e1db,_0x4cdc12;return(_0x4cdc12=(_0x34e1db=(_0xfb661d=this[_0x2b471a(0x386)])[_0x2b471a(0x13a)])==null?void 0x0:_0x34e1db[_0x2b471a(0x1fc)](_0xfb661d,_0x31d9fc))!=null?_0x4cdc12:_0x31d9fc;}[_0x23cbae(0x33f)](_0x92aff7){const _0x4e75b6=_0x23cbae;var _0x24d9ad,_0x22bfe5;if(this['type']===k[_0x4e75b6(0x12f)]){const {unitID:_0x5a3940,mutations:_0x5725c1,memberID:_0xbc27f8}=_0x92aff7,_0x15d38c=_0x5725c1[0x0][_0x4e75b6(0x1e4)][_0x4e75b6(0x1f8)];Array[_0x4e75b6(0x218)](_0x15d38c)&&_0x15d38c[_0x4e75b6(0xed)]>0x0&&((_0x22bfe5=(_0x24d9ad=this[_0x4e75b6(0x386)])['onSyncEditingCollabCursor'])==null||_0x22bfe5['call'](_0x24d9ad,{'unitID':_0x5a3940,'memberID':_0xbc27f8,'textRanges':_0x15d38c}));}}[_0x23cbae(0x24f)](){const _0x1ce97c=_0x23cbae;this['_localCacheService']['updateOfflineData'](this['unitID'],this[_0x1ce97c(0x2f1)],this[_0x1ce97c(0x1ba)],this[_0x1ce97c(0x1ab)]);}['_getCurrentRevision'](){const _0x4208e8=_0x23cbae;return this[_0x4208e8(0x28a)][_0x4208e8(0x305)](this[_0x4208e8(0x1a5)]);}[_0x23cbae(0x19a)](){const _0x4b9cf6=_0x23cbae;this[_0x4b9cf6(0x28a)]['incrementRevOfUnit'](this[_0x4b9cf6(0x1a5)]);}['_executeRemoteChangeset'](_0x17c6e8){const _0x14a371=_0x23cbae;var _0x3d085e;const _0x2ddfb0=this[_0x14a371(0x1e0)](_0x17c6e8),_0x27a9f6=_0x3b5adf(_0x2ddfb0['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x27a9f6[_0x14a371(0x315)])throw _0x27a9f6['error']instanceof Error?_0x27a9f6['error']:new Error((_0x3d085e=_0x27a9f6[_0x14a371(0x43f)])!=null?_0x3d085e:'[CollaborationState]:\x20apply\x20error!');this[_0x14a371(0x39f)](_0x2ddfb0),this[_0x14a371(0x159)](_0x17c6e8),this[_0x14a371(0x1ea)](_0x2ddfb0),this[_0x14a371(0x33f)](_0x2ddfb0),this[_0x14a371(0x19a)]();}}let pe=class extends ue{constructor(_0x279266,_0x455542,_0x776c82,_0x466ee4,_0x5885b5,_0x514719,_0x46eae8,_0x36d207,_0x5516fa,_0x3f1c01){const _0x34fd10=_0x23cbae;super(_0x279266,_0x455542,null,[],_0x776c82,_0x36d207,_0x46eae8,_0x466ee4,_0x5885b5),l(this,_0x34fd10(0x361),_0x34fd10(0x369)),(this[_0x34fd10(0x171)]=_0x514719,this[_0x34fd10(0x135)]=_0x5516fa,this[_0x34fd10(0x2f5)]=_0x3f1c01);}[_0x23cbae(0x3fb)](_0x5391ec){const _0x386f0b=_0x23cbae,_0x2aaae6=this[_0x386f0b(0x171)][_0x386f0b(0x351)](X,this[_0x386f0b(0x1a5)],this[_0x386f0b(0x2f1)],[_0x5391ec],this[_0x386f0b(0x386)]);return _0x2aaae6['_schedule'](),_0x2aaae6['_updateLocalCache'](),_0x2aaae6;}[_0x23cbae(0x1c3)](_0x368da5){const _0x3b13f5=_0x23cbae;if(this[_0x3b13f5(0x3b1)](_0x368da5))return this[_0x3b13f5(0x171)][_0x3b13f5(0x351)](B,this['unitID'],this['type'],null,[],null,[_0x368da5],this[_0x3b13f5(0x386)]);try{const _0x3c3d42=this[_0x3b13f5(0x2f5)]['transformMutationsWithChangeset'](_0x368da5,[Er]);if(_0x24c912(_0x3c3d42)){const {c1Prime:_0x4a458e}=_0x3c3d42;return this[_0x3b13f5(0x181)](_0x4a458e),this;}throw _0x3c3d42[_0x3b13f5(0x43f)];}catch(_0x3e5ff0){return this[_0x3b13f5(0x135)][_0x3b13f5(0x43f)](_0x3e5ff0),this[_0x3b13f5(0x128)](!0x1);}}[_0x23cbae(0x128)](_0x5eb3d1){const _0x35c8d1=_0x23cbae;return this[_0x35c8d1(0x171)]['createInstance'](ee,this[_0x35c8d1(0x1a5)],this[_0x35c8d1(0x2f1)],null,[],this[_0x35c8d1(0x386)],_0x5eb3d1);}[_0x23cbae(0x449)](){const _0x3994af=_0x23cbae;throw new Error(_0x3994af(0x27a));}[_0x23cbae(0x3d6)](){const _0x1f9057=_0x23cbae;throw new Error(_0x1f9057(0x406));}[_0x23cbae(0x433)](){const _0x37e62a=_0x23cbae;return this[_0x37e62a(0x171)][_0x37e62a(0x351)](te,this['unitID'],this['type'],null,[],this[_0x37e62a(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x107)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x4b0cbf=_0x23cbae,_0x44eee9=this[_0x4b0cbf(0x28a)][_0x4b0cbf(0x305)](this['unitID']);return this[_0x4b0cbf(0x386)]['onMissingChangesets']({'from':_0x44eee9,'to':0x0}),this[_0x4b0cbf(0x171)][_0x4b0cbf(0x351)](B,this[_0x4b0cbf(0x1a5)],this[_0x4b0cbf(0x2f1)],null,[],null,[],this[_0x4b0cbf(0x386)]);}};pe=_e([m(0x3,_0x57082d(_0x2056a3)),m(0x4,_0x57082d(w)),m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x2b3c29),m(0x7,_0x2c218a),m(0x8,_0x2ed9bc),m(0x9,_0x3ce5fa)],pe);let X=class extends ue{constructor(_0x55b7fc,_0x59f6a6,_0xee80da,_0x1a85a0,_0x578c23,_0x5b9aa3,_0x20abad,_0x49d5b5,_0x493852,_0x2645e8,_0x17084b,_0x21e3fb,_0x9eb154,_0x356c0c){const _0x45e8cf=_0x23cbae;super(_0x55b7fc,_0x59f6a6,null,_0xee80da,_0x1a85a0,_0x2645e8,_0x356c0c,_0x5b9aa3,_0x20abad),l(this,'status',_0x45e8cf(0x3ce)),l(this,_0x45e8cf(0x3ad),null),l(this,'_sendingTimer',null),(this[_0x45e8cf(0x171)]=_0x578c23,this['_memberService']=_0x49d5b5,this[_0x45e8cf(0x135)]=_0x493852,this[_0x45e8cf(0x44c)]=_0x17084b,this[_0x45e8cf(0x2f5)]=_0x21e3fb,this[_0x45e8cf(0x2ce)]=_0x9eb154);}[_0x23cbae(0x3fb)](_0x10764f){const _0x3d1580=_0x23cbae;return this[_0x3d1580(0x1ab)][_0x3d1580(0x12e)](_0x10764f),this['_updateLocalCache'](),this;}[_0x23cbae(0x1c3)](_0x42c2b2){const _0x116aa4=_0x23cbae;if(this[_0x116aa4(0x3b1)](_0x42c2b2))return this['_clearScheduledTask'](),this[_0x116aa4(0x171)]['createInstance'](B,this['unitID'],this['type'],null,this[_0x116aa4(0x1ab)],null,[_0x42c2b2],this[_0x116aa4(0x386)]);try{const _0x291a72=this[_0x116aa4(0x2f5)][_0x116aa4(0x3cc)](_0x42c2b2,this[_0x116aa4(0x1ab)]);if(_0x24c912(_0x291a72)){const {c1Prime:_0x239f0f,m2Prime:_0x32dd52}=_0x291a72;this['_executeRemoteChangeset'](_0x239f0f);const _0x19c222=this[_0x116aa4(0x171)][_0x116aa4(0x351)](X,this[_0x116aa4(0x1a5)],this['type'],_0x32dd52,this[_0x116aa4(0x386)]);return this[_0x116aa4(0x3bb)](),_0x19c222[_0x116aa4(0x2c8)](this[_0x116aa4(0x3ad)]?Math['max'](0x0,new Date()[_0x116aa4(0x324)]()-this['_scheduleTimestamp']):this[_0x116aa4(0x166)]()),_0x19c222;}throw _0x291a72[_0x116aa4(0x43f)];}catch(_0x1175b2){return this[_0x116aa4(0x135)][_0x116aa4(0x43f)](_0x1175b2),this['_onConflict'](!0x1);}}['onRemoteAck'](){const _0x47f824=_0x23cbae;throw new Error(_0x47f824(0x2e7));}[_0x23cbae(0x3d6)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x23cbae(0x433)](){const _0x3df8c9=_0x23cbae;return this[_0x3df8c9(0x3bb)](),this[_0x3df8c9(0x171)][_0x3df8c9(0x351)](te,this[_0x3df8c9(0x1a5)],this['type'],null,this[_0x3df8c9(0x1ab)],this[_0x3df8c9(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x2c8)](_0x200c74){const _0x436b01=_0x23cbae,_0x5d9f7b=_0x200c74!=null?_0x200c74:this['_getSendChangesetTimeout']();this[_0x436b01(0x3ad)]=new Date()[_0x436b01(0x324)](),this[_0x436b01(0x119)]=window[_0x436b01(0x2d6)](()=>{const _0x41606f=_0x436b01;this[_0x41606f(0x3bb)]();let _0x1e66de=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x1e66de=ds(this[_0x41606f(0x1ab)],this[_0x41606f(0x1a5)],this['_univerInstanceService'],this[_0x41606f(0x28a)],this['_memberService']);break;}case k[_0x41606f(0x12f)]:{this[_0x41606f(0x1ab)]['every'](_0x32916e=>_0x32916e['id']===_0x520c9a['id'])?_0x1e66de=Ir(this[_0x41606f(0x1ab)],this['unitID'],this[_0x41606f(0x2ce)],this[_0x41606f(0x28a)],this[_0x41606f(0x2f4)]):_0x1e66de=ds(this[_0x41606f(0x1ab)],this[_0x41606f(0x1a5)],this[_0x41606f(0x2ce)],this[_0x41606f(0x28a)],this[_0x41606f(0x2f4)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x41606f(0x2f1)]+_0x41606f(0x382));}const {changeset:_0x9ecf53,pendingMutations:_0x53a07f}=_0x1e66de;this['_handler'][_0x41606f(0x42a)](_0x9ecf53);const _0x12994=_0x53a07f[_0x41606f(0xed)]?this[_0x41606f(0x171)][_0x41606f(0x351)](q,this['unitID'],this[_0x41606f(0x2f1)],_0x9ecf53,_0x53a07f,this[_0x41606f(0x386)]):this[_0x41606f(0x171)]['createInstance'](Q,this['unitID'],this['type'],_0x9ecf53,this[_0x41606f(0x386)]);_0x12994['_updateLocalCache'](),this['_handler']['onStateChange'](this,_0x12994);},_0x5d9f7b);}['_getSendChangesetTimeout'](){const _0x46a6ba=_0x23cbae;var _0x465f8a;const _0xf44e18=this[_0x46a6ba(0x44c)][_0x46a6ba(0x266)]($);return(_0x465f8a=_0xf44e18==null?void 0x0:_0xf44e18['sendChangesetTimeout'])!=null?_0x465f8a:In;}[_0x23cbae(0x107)](){const _0x14c9ec=_0x23cbae;throw new Error(_0x14c9ec(0x423));}[_0x23cbae(0x3bb)](){const _0x200e05=_0x23cbae;this[_0x200e05(0x119)]!=null&&(clearTimeout(this[_0x200e05(0x119)]),this[_0x200e05(0x119)]=null);}[_0x23cbae(0x128)](_0x3b1f8b){const _0x54d042=_0x23cbae;return this[_0x54d042(0x3bb)](),this[_0x54d042(0x171)][_0x54d042(0x351)](ee,this[_0x54d042(0x1a5)],this['type'],null,this[_0x54d042(0x1ab)],this[_0x54d042(0x386)],_0x3b1f8b);}};X=_e([m(0x4,_0x57082d(_0x5aca14)),m(0x5,_0x57082d(_0x2056a3)),m(0x6,_0x57082d(w)),m(0x7,_0x57082d(ce)),m(0x8,_0x2ed9bc),m(0x9,_0x2c218a),m(0xa,_0x465ebb),m(0xb,_0x3ce5fa),m(0xc,_0xf0f4c1),m(0xd,_0x2b3c29)],X);let Q=class extends ue{constructor(_0x3c9d9a,_0x35a146,_0xe873d8,_0xd25268,_0x1e2efb,_0x54e40e,_0x40c2cf,_0x2e57d6,_0x36c13d,_0x91e3ca,_0x48969a){const _0x5ce353=_0x23cbae;super(_0x3c9d9a,_0x35a146,_0xe873d8,[],_0xd25268,_0x2e57d6,_0x48969a,_0x54e40e,_0x40c2cf),l(this,_0x5ce353(0x361),'awaiting'),(this[_0x5ce353(0x171)]=_0x1e2efb,this['_logService']=_0x36c13d,this['_transformService']=_0x91e3ca);}['appendMutation'](_0x5073aa){const _0xe729bb=_0x23cbae,_0x22de15=this[_0xe729bb(0x171)][_0xe729bb(0x351)](q,this[_0xe729bb(0x1a5)],this[_0xe729bb(0x2f1)],this['_awaitingChangeset'],[_0x5073aa],this[_0xe729bb(0x386)]);return _0x22de15[_0xe729bb(0x24f)](),_0x22de15;}['onRemoteChangeset'](_0x261891){const _0x4bde60=_0x23cbae;if(this[_0x4bde60(0x3b1)](_0x261891))return this[_0x4bde60(0x171)][_0x4bde60(0x351)](B,this[_0x4bde60(0x1a5)],this[_0x4bde60(0x2f1)],this[_0x4bde60(0x1ba)],[],null,[_0x261891],this[_0x4bde60(0x386)]);try{const _0x33fb6d=this[_0x4bde60(0x2f5)][_0x4bde60(0x399)]([_0x261891],[this['_awaitingChangeset']],!0x1);if(_0xf2155e(_0x33fb6d)){const {c1Prime:_0x31ecf5,c2Prime:_0x3b643b}=_0x33fb6d;this[_0x4bde60(0x181)](_0x31ecf5[0x0]),_0x3b643b[0x0][_0x4bde60(0x14f)]=this[_0x4bde60(0x288)]();const _0x48b508=this[_0x4bde60(0x171)][_0x4bde60(0x351)](Q,this[_0x4bde60(0x1a5)],this['type'],_0x3b643b[0x0],this['_handler']);return _0x48b508[_0x4bde60(0x24f)](),_0x48b508;}return this[_0x4bde60(0x128)](!0x1);}catch(_0x2154fa){return this[_0x4bde60(0x135)]['error'](_0x2154fa),this[_0x4bde60(0x128)](!0x1);}}[_0x23cbae(0x449)](_0x43120f){const _0x28204c=_0x23cbae,_0x491933=this[_0x28204c(0x28a)][_0x28204c(0x305)](this['unitID']);if(_0x43120f[_0x28204c(0x1d8)]<_0x491933-0x1)return this;if(this[_0x28204c(0x3b1)](_0x43120f))return this[_0x28204c(0x171)][_0x28204c(0x351)](B,this[_0x28204c(0x1a5)],this[_0x28204c(0x2f1)],null,[],this[_0x28204c(0x1ba)],[],this[_0x28204c(0x386)]);this['_incrementRevisionNumber']();const _0x55594e=this[_0x28204c(0x171)][_0x28204c(0x351)](pe,this['unitID'],this['type'],this['_handler']);return _0x55594e[_0x28204c(0x24f)](),_0x55594e;}[_0x23cbae(0x3d6)](_0x4945d7){const _0x416011=_0x23cbae;return this[_0x416011(0x128)](!!(_0x4945d7!=null&&_0x4945d7[_0x416011(0x226)]));}[_0x23cbae(0x433)](){const _0x519daa=_0x23cbae;return this[_0x519daa(0x171)][_0x519daa(0x351)](te,this['unitID'],this[_0x519daa(0x2f1)],this[_0x519daa(0x1ba)],[],this[_0x519daa(0x386)]);}[_0x23cbae(0x31a)](){return this;}['resend'](){const _0x2bdf8f=_0x23cbae;this[_0x2bdf8f(0x386)][_0x2bdf8f(0x42a)](this[_0x2bdf8f(0x1ba)]);}[_0x23cbae(0x128)](_0x285409){const _0x5a66a1=_0x23cbae;return this[_0x5a66a1(0x171)][_0x5a66a1(0x351)](ee,this[_0x5a66a1(0x1a5)],this[_0x5a66a1(0x2f1)],this[_0x5a66a1(0x1ba)],[],this['_handler'],_0x285409);}};Q=_e([m(0x4,_0x57082d(_0x5aca14)),m(0x5,_0x57082d(_0x2056a3)),m(0x6,_0x57082d(w)),m(0x7,_0x2c218a),m(0x8,_0x2ed9bc),m(0x9,_0x3ce5fa),m(0xa,_0x2b3c29)],Q);let q=class extends ue{constructor(_0xc475ac,_0x37800c,_0x4139dc,_0x25da34,_0x111c38,_0x562dca,_0x11a311,_0x2b5dbe,_0x4ca595,_0x175941,_0x1491d4,_0xae825d){const _0x1121fc=_0x23cbae;super(_0xc475ac,_0x37800c,_0x4139dc,_0x25da34,_0x111c38,_0x4ca595,_0xae825d,_0x11a311,_0x2b5dbe),l(this,_0x1121fc(0x361),_0x1121fc(0x1d0)),(this[_0x1121fc(0x171)]=_0x562dca,this[_0x1121fc(0x135)]=_0x175941,this[_0x1121fc(0x2f5)]=_0x1491d4);}[_0x23cbae(0x3fb)](_0x5446e7){const _0x3e5931=_0x23cbae;return this['_pendingMutations'][_0x3e5931(0x12e)](_0x5446e7),this;}[_0x23cbae(0x1c3)](_0x101eb4){const _0x38b96d=_0x23cbae;if(this[_0x38b96d(0x3b1)](_0x101eb4))return this[_0x38b96d(0x171)][_0x38b96d(0x351)](B,this['unitID'],this[_0x38b96d(0x2f1)],this['_awaitingChangeset'],this[_0x38b96d(0x1ab)],null,[_0x101eb4],this[_0x38b96d(0x386)]);try{const _0x30fc62=this[_0x38b96d(0x2f5)][_0x38b96d(0x399)]([_0x101eb4],[this[_0x38b96d(0x1ba)]],!0x1);if(_0xf2155e(_0x30fc62)){const {c1Prime:_0x4b0632,c2Prime:_0x23f0bb}=_0x30fc62,_0x411f88=this['_transformService'][_0x38b96d(0x3cc)](_0x4b0632[0x0],this[_0x38b96d(0x1ab)]);if(_0x24c912(_0x411f88)){const {c1Prime:_0x5466bd,m2Prime:_0x5a57e2}=_0x411f88;return this[_0x38b96d(0x181)](_0x5466bd),_0x23f0bb[0x0][_0x38b96d(0x14f)]=this['_getCurrentRevision'](),this['_injector'][_0x38b96d(0x351)](q,this[_0x38b96d(0x1a5)],this[_0x38b96d(0x2f1)],_0x23f0bb[0x0],_0x5a57e2,this[_0x38b96d(0x386)]);}throw _0x411f88[_0x38b96d(0x43f)];}throw _0x30fc62['error'];}catch(_0x1b6fc9){return this[_0x38b96d(0x135)]['error'](_0x1b6fc9),this[_0x38b96d(0x128)](!0x1);}}[_0x23cbae(0x449)](_0x51b211){const _0x524292=_0x23cbae;if(this[_0x524292(0x3b1)](_0x51b211))return this['_injector'][_0x524292(0x351)](B,this['unitID'],this[_0x524292(0x2f1)],null,this[_0x524292(0x1ab)],this[_0x524292(0x1ba)],[],this[_0x524292(0x386)]);this[_0x524292(0x19a)]();const _0x52aeb4=this['_injector'][_0x524292(0x351)](X,this[_0x524292(0x1a5)],this['type'],this['_pendingMutations'],this['_handler']);return _0x52aeb4['_schedule'](),_0x52aeb4[_0x524292(0x24f)](),_0x52aeb4;}[_0x23cbae(0x3d6)](_0x3b6111){const _0x41c2d3=_0x23cbae;return this[_0x41c2d3(0x128)](!!(_0x3b6111!=null&&_0x3b6111[_0x41c2d3(0x226)]));}[_0x23cbae(0x433)](){const _0x162962=_0x23cbae;return this[_0x162962(0x171)][_0x162962(0x351)](te,this[_0x162962(0x1a5)],this[_0x162962(0x2f1)],this[_0x162962(0x1ba)],this[_0x162962(0x1ab)],this[_0x162962(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x107)](){const _0x15307e=_0x23cbae;this['_handler']['onSendChangeset'](this[_0x15307e(0x1ba)]);}[_0x23cbae(0x128)](_0x22d7bb){const _0x48a97d=_0x23cbae;return this[_0x48a97d(0x171)][_0x48a97d(0x351)](ee,this[_0x48a97d(0x1a5)],this[_0x48a97d(0x2f1)],null,this[_0x48a97d(0x1ab)],this[_0x48a97d(0x386)],_0x22d7bb);}};q=_e([m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x57082d(_0x2056a3)),m(0x7,_0x57082d(w)),m(0x8,_0x2c218a),m(0x9,_0x2ed9bc),m(0xa,_0x3ce5fa),m(0xb,_0x2b3c29)],q);let ee=class extends ue{constructor(_0x50caf3,_0x27c0a9,_0xd348b7,_0x379364,_0x2b81af,_0x3cff5c=!0x1,_0x398976,_0xf82742,_0x796458,_0x3401aa,_0x117702,_0x50f024,_0x125030){const _0x50f2cc=_0x23cbae;super(_0x50caf3,_0x27c0a9,_0xd348b7,_0x379364,_0x2b81af,_0xf82742,_0x796458,_0x117702,_0x3401aa),l(this,_0x50f2cc(0x361),_0x50f2cc(0x358)),(this['_isPermissionRej']=_0x3cff5c,this['_permissionService']=_0x398976,this[_0x50f2cc(0x151)]=_0x50f024,this[_0x50f2cc(0x285)]=_0x125030,this[_0x50f2cc(0x2ef)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x23cbae(0x3fb)](){return this;}['onRemoteChangeset'](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}[_0x23cbae(0x107)](){const _0x4a78b9=_0x23cbae;throw new Error(_0x4a78b9(0x372));}[_0x23cbae(0x311)](){const _0x184d2e=_0x23cbae;this['_localCacheService'][_0x184d2e(0xe0)](this[_0x184d2e(0x1a5)],this[_0x184d2e(0x2f1)],null,[]);}['_showConflictNotification'](){const _0x4f816d=_0x23cbae;this[_0x4f816d(0x2a1)]?this[_0x4f816d(0x285)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this['_localeService']['t'](_0x4f816d(0x1dc)),'type':'error','duration':0x0}):this[_0x4f816d(0x285)][_0x4f816d(0x2bb)]({'title':this['_localeService']['t'](_0x4f816d(0x1aa)),'content':this[_0x4f816d(0x151)]['t'](_0x4f816d(0x2eb)),'type':_0x4f816d(0x43f),'duration':0x0});}[_0x23cbae(0x258)](){const _0x3116ee=_0x23cbae;this['_permissionService']['updatePermissionPoint'](new _0x41b6ca(this[_0x3116ee(0x1a5)])['id'],!0x1);}};ee=_e([m(0x6,_0x57082d(_0x3b2db3)),m(0x7,_0x2c218a),m(0x8,_0x2b3c29),m(0x9,_0x57082d(w)),m(0xa,_0x57082d(_0x2056a3)),m(0xb,_0x57082d(_0x1ba649)),m(0xc,_0x5cf6e8)],ee);let te=class extends ue{constructor(_0x192fb6,_0xbbd903,_0x45ea95,_0x46180b,_0x1b5dff,_0x51a18c,_0x15d169,_0x49dacb,_0x1f880e,_0x348d87){const _0x5be0bd=_0x23cbae;super(_0x192fb6,_0xbbd903,_0x45ea95,_0x46180b,_0x1b5dff,_0x1f880e,_0x348d87,_0x15d169,_0x49dacb),l(this,_0x5be0bd(0x361),_0x5be0bd(0x23f)),this[_0x5be0bd(0x171)]=_0x51a18c;}[_0x23cbae(0x3fb)](_0x1a00f5){const _0x2254ca=_0x23cbae;return this['_pendingMutations'][_0x2254ca(0x12e)](_0x1a00f5),this[_0x2254ca(0x24f)](),this;}[_0x23cbae(0x1c3)](_0x58b01e){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x23cbae(0x3d6)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x23cbae(0x433)](){return this;}['toggleOnline'](){const _0x13905e=_0x23cbae,{_injector:_0x53fe71,_pendingMutations:_0x7ddb0f,_awaitingChangeset:_0x546f7e,unitID:_0x227394,_handler:_0x36d5af,type:_0x38bb3d}=this,_0x5ea07f=Fs(_0x53fe71,_0x227394,_0x38bb3d,_0x546f7e,_0x7ddb0f,_0x36d5af);return _0x5ea07f instanceof X?_0x5ea07f['_schedule']():(_0x5ea07f instanceof q||_0x5ea07f instanceof Q)&&_0x5ea07f[_0x13905e(0x107)](),_0x5ea07f;}[_0x23cbae(0x107)](){const _0x3e5c20=_0x23cbae;throw new Error(_0x3e5c20(0x24d));}};te=_e([m(0x5,_0x57082d(_0x5aca14)),m(0x6,_0x57082d(_0x2056a3)),m(0x7,_0x57082d(w)),m(0x8,_0x2c218a),m(0x9,_0x2b3c29)],te);let B=class extends ue{constructor(_0x49dc0e,_0x1de849,_0x54167f,_0x218614,_0x4cc90d,_0x3b86ed,_0x34fd92,_0x1189fa,_0x4dc363,_0x37854b,_0x5058df,_0x48c7d8,_0x336fa4,_0x69c3bd){const _0x57ceff=_0x23cbae;super(_0x49dc0e,_0x1de849,_0x54167f,_0x218614,_0x34fd92,_0x48c7d8,_0x336fa4,_0x4dc363,_0x37854b),l(this,_0x57ceff(0x361),_0x57ceff(0x3d4)),(this[_0x57ceff(0x20a)]=_0x4cc90d,this['_queuedRemoteChangesets']=_0x3b86ed,this[_0x57ceff(0x171)]=_0x1189fa,this[_0x57ceff(0x135)]=_0x5058df,this[_0x57ceff(0x2f5)]=_0x69c3bd);}['onMissedChangesetFetched'](_0x57402b){const _0x4fbd7e=_0x23cbae;try{const _0x5adbf6=[..._0x57402b,...this[_0x4fbd7e(0x257)]],_0x33308a=[this['_awaitingChangeset']||this[_0x4fbd7e(0x20a)]][_0x4fbd7e(0x371)](_0x1a59d4=>!!_0x1a59d4);let _0x1c19a0,_0x1c3ab0;if(_0x33308a[_0x4fbd7e(0xed)]){const _0x4d7a72=this[_0x4fbd7e(0x2f5)][_0x4fbd7e(0x399)](_0x5adbf6,_0x33308a,!0x1);if(!_0xf2155e(_0x4d7a72))throw _0x4d7a72['error'];_0x1c19a0=_0x4d7a72[_0x4fbd7e(0x2d5)],_0x1c3ab0=_0x4d7a72[_0x4fbd7e(0x42b)];}else _0x1c19a0=_0x5adbf6,_0x1c3ab0=[];let _0x5c82a7=this[_0x4fbd7e(0x1ab)];_0x1c19a0[_0x4fbd7e(0x273)](_0x433772=>{const _0x17828a=_0x4fbd7e;let _0x28b1b4;if(_0x5c82a7['length']){const _0x2f46a7=this['_transformService']['transformMutationsWithChangeset'](_0x433772,_0x5c82a7);if(!_0x24c912(_0x2f46a7))throw _0x2f46a7[_0x17828a(0x43f)];_0x28b1b4=_0x2f46a7[_0x17828a(0x2d5)],_0x5c82a7=_0x2f46a7[_0x17828a(0x1b0)];}else _0x28b1b4=_0x433772;this[_0x17828a(0x181)](_0x28b1b4);}),this[_0x4fbd7e(0x20a)]&&this['_incrementRevisionNumber'](),this[_0x4fbd7e(0x1ba)]&&_0x1c3ab0['length']&&(_0x1c3ab0[0x0][_0x4fbd7e(0x14f)]=this[_0x4fbd7e(0x288)]());let _0x4c745e;if(this[_0x4fbd7e(0x1ba)]&&_0x5c82a7[_0x4fbd7e(0xed)]!==0x0)_0x4c745e=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](q,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],_0x1c3ab0[0x0],_0x5c82a7,this[_0x4fbd7e(0x386)]);else{if(this[_0x4fbd7e(0x1ba)]&&_0x5c82a7[_0x4fbd7e(0xed)]===0x0)_0x1c3ab0[0x0][_0x4fbd7e(0x14f)]=this[_0x4fbd7e(0x288)](),_0x4c745e=this['_injector'][_0x4fbd7e(0x351)](Q,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],_0x1c3ab0[0x0],this['_handler']);else{if(_0x5c82a7[_0x4fbd7e(0xed)]!==0x0){const _0x521913=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](X,this[_0x4fbd7e(0x1a5)],this['type'],_0x5c82a7,this[_0x4fbd7e(0x386)]);_0x521913[_0x4fbd7e(0x2c8)](),_0x4c745e=_0x521913;}else _0x4c745e=this[_0x4fbd7e(0x171)][_0x4fbd7e(0x351)](pe,this[_0x4fbd7e(0x1a5)],this['type'],this[_0x4fbd7e(0x386)]);}}return _0x4c745e[_0x4fbd7e(0x24f)](),_0x4c745e;}catch(_0x25f7c8){return this[_0x4fbd7e(0x135)]['error'](_0x4fbd7e(0x3c2),_0x4fbd7e(0x295),_0x25f7c8),this['_injector'][_0x4fbd7e(0x351)](ee,this[_0x4fbd7e(0x1a5)],this[_0x4fbd7e(0x2f1)],this[_0x4fbd7e(0x1ba)],this[_0x4fbd7e(0x1ab)],this[_0x4fbd7e(0x386)],!0x1);}}[_0x23cbae(0x107)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x23cbae(0x3fb)](_0x395114){const _0x34e1ad=_0x23cbae;return this[_0x34e1ad(0x1ab)][_0x34e1ad(0x12e)](_0x395114),this;}['onRemoteChangeset'](_0xd561e3){const _0xd919e9=_0x23cbae;return this[_0xd919e9(0x257)]['push'](_0xd561e3),this;}[_0x23cbae(0x449)](_0x5e0f04){const _0x84e8f6=_0x23cbae;if(this[_0x84e8f6(0x1ba)])return this[_0x84e8f6(0x20a)]=this['_awaitingChangeset'],this[_0x84e8f6(0x1ba)]=null,this;throw new Error(_0x84e8f6(0x238));}[_0x23cbae(0x3d6)](_0xecb657){const _0x373fd3=_0x23cbae;return this[_0x373fd3(0x128)](!!(_0xecb657!=null&&_0xecb657['isPermissionRej']));}['toggleOffline'](){const _0x18a48c=_0x23cbae;return this[_0x18a48c(0x171)][_0x18a48c(0x351)](te,this[_0x18a48c(0x1a5)],this['type'],this[_0x18a48c(0x1ba)],this[_0x18a48c(0x1ab)],this[_0x18a48c(0x386)]);}[_0x23cbae(0x31a)](){return this;}[_0x23cbae(0x128)](_0x2fe5f6){const _0x3b3f04=_0x23cbae;return this[_0x3b3f04(0x171)][_0x3b3f04(0x351)](ee,this[_0x3b3f04(0x1a5)],this['type'],this[_0x3b3f04(0x1ba)],this[_0x3b3f04(0x1ab)],this[_0x3b3f04(0x386)],_0x2fe5f6);}};B=_e([m(0x7,_0x57082d(_0x5aca14)),m(0x8,_0x57082d(_0x2056a3)),m(0x9,_0x57082d(w)),m(0xa,_0x2ed9bc),m(0xb,_0x2c218a),m(0xc,_0x2b3c29),m(0xd,_0x3ce5fa)],B);function Fs(_0x58dc6b,_0x31f45c,_0x3aff29,_0x39ca08,_0x288719,_0x378c67){const _0x291bc6=_0x23cbae;return _0x39ca08&&_0x288719['length']?_0x58dc6b[_0x291bc6(0x351)](q,_0x31f45c,_0x3aff29,_0x39ca08,_0x288719,_0x378c67):_0x39ca08?_0x58dc6b[_0x291bc6(0x351)](Q,_0x31f45c,_0x3aff29,_0x39ca08,_0x378c67):_0x288719[_0x291bc6(0xed)]?_0x58dc6b[_0x291bc6(0x351)](X,_0x31f45c,_0x3aff29,_0x288719,_0x378c67):_0x58dc6b[_0x291bc6(0x351)](pe,_0x31f45c,_0x3aff29,_0x378c67);}var Tr=Object[_0x23cbae(0xe2)],Rr=Object[_0x23cbae(0x36a)],Wt=(_0x1d72d0,_0x296701,_0x3a560c,_0x276aaf)=>{for(var _0x23f379=_0x276aaf>0x1?void 0x0:_0x276aaf?Rr(_0x296701,_0x3a560c):_0x296701,_0x2d9a23=_0x1d72d0['length']-0x1,_0x5500b0;_0x2d9a23>=0x0;_0x2d9a23--)(_0x5500b0=_0x1d72d0[_0x2d9a23])&&(_0x23f379=(_0x276aaf?_0x5500b0(_0x296701,_0x3a560c,_0x23f379):_0x5500b0(_0x23f379))||_0x23f379);return _0x276aaf&&_0x23f379&&Tr(_0x296701,_0x3a560c,_0x23f379),_0x23f379;},p=(_0x342ec1,_0x181795)=>(_0x3c7aea,_0x2d5a65)=>_0x181795(_0x3c7aea,_0x2d5a65,_0x342ec1);let qe=class extends _0x3a262a{constructor(_0x3352cd,_0x923b7f,_0x7be85,_0x1f0bf5,_0x27a4bd,_0x210531,_0x12cb47,_0x5ca153,_0x559196,_0xd3061c,_0x1b2ea2,_0x481e49,_0x31ec5b){const _0x5a217e=_0x23cbae;super(),l(this,_0x5a217e(0x2cc),new _0x169308(null)),l(this,_0x5a217e(0x2c9),this[_0x5a217e(0x2cc)][_0x5a217e(0x341)]()),l(this,_0x5a217e(0x155)),l(this,_0x5a217e(0x396),!0x1),l(this,_0x5a217e(0x431),''),l(this,_0x5a217e(0x3b4),0x0),l(this,_0x5a217e(0x19d),this['state$'][_0x5a217e(0x18c)](_0x29443(_0x4cebfd=>_0x4cebfd?_0x4cebfd[_0x5a217e(0x361)]:P['OFFLINE']),_0x153603(0x1))),l(this,_0x5a217e(0x44b),!0x1),l(this,_0x5a217e(0x12a),[]),(this['unitID']=_0x3352cd,this['session']=_0x923b7f,this['_type']=_0x7be85,this[_0x5a217e(0x171)]=_0x1f0bf5,this['_localCacheService']=_0x27a4bd,this['_compressMutationService']=_0x210531,this['_localeService']=_0x12cb47,this[_0x5a217e(0x28a)]=_0x5ca153,this['_logService']=_0x559196,this[_0x5a217e(0x393)]=_0xd3061c,this['_messageService']=_0x1b2ea2,this[_0x5a217e(0x34e)]=_0x481e49,this[_0x5a217e(0x141)]=_0x31ec5b);}get['state'](){const _0x3447b7=_0x23cbae;return this[_0x3447b7(0x155)];}async[_0x23cbae(0x410)](){const _0x3faa7f=_0x23cbae;if(this[_0x3faa7f(0x281)])throw new Error(_0x3faa7f(0x15c));await this[_0x3faa7f(0x383)]();}['pauseCollaboration'](){const _0x5e88b8=_0x23cbae;return this[_0x5e88b8(0x396)]=!0x0,_0xad1b53(()=>{const _0x2722a3=_0x5e88b8;this[_0x2722a3(0x396)]=!0x1,this[_0x2722a3(0x3ef)]();});}['_updateState'](_0x138b5b){const _0x2c6c49=_0x23cbae;this[_0x2c6c49(0x155)]=_0x138b5b,this[_0x2c6c49(0x2cc)]['next'](_0x138b5b);}async[_0x23cbae(0x383)](){const _0x4fa6a=_0x23cbae;var _0x4dce73;this[_0x4fa6a(0x325)](await this[_0x4fa6a(0x1bb)]()),this[_0x4fa6a(0x141)]&&((_0x4dce73=this[_0x4fa6a(0x141)])==null||_0x4dce73[_0x4fa6a(0x169)](this['unitID']),this[_0x4fa6a(0x165)](this['_singleActiveUnitService'][_0x4fa6a(0x2c6)](this[_0x4fa6a(0x1a5)])['subscribe'](_0x2649c8=>{const _0x6de2e5=_0x4fa6a;this[_0x6de2e5(0x135)]['debug'](_0x6de2e5(0x30e),_0x6de2e5(0x3ee),_0x2649c8),_0x2649c8===Bs[_0x6de2e5(0x2ae)]?(this[_0x6de2e5(0x3d5)][_0x6de2e5(0x2bb)]({'content':this[_0x6de2e5(0x151)]['t'](_0x6de2e5(0xd7)),'type':_0x135398['Warning']}),this[_0x6de2e5(0x34e)]['updatePermissionPoint'](new _0x41b6ca(this['unitID'])['id'],!0x1)):this[_0x6de2e5(0x34e)]['updatePermissionPoint'](new _0x41b6ca(this[_0x6de2e5(0x1a5)])['id'],!0x0);})));let _0x7e4fda=!0x1;return this[_0x4fa6a(0x165)](this[_0x4fa6a(0x291)][_0x4fa6a(0x18f)][_0x4fa6a(0x334)](_0x9284de=>{const _0x5bd663=_0x4fa6a;_0x9284de===Y[_0x5bd663(0x12d)]?this[_0x5bd663(0x26a)](_0x7e4fda):_0x9284de===Y['OFFLINE']&&(_0x7e4fda=!0x0,this[_0x5bd663(0xfc)]());})),this[_0x4fa6a(0x165)](this[_0x4fa6a(0x291)][_0x4fa6a(0x29c)]['subscribe'](_0x197f62=>{const _0x91c716=_0x4fa6a;try{switch(_0x197f62[_0x91c716(0x3f0)]){case _0x44cf74['NEW_CHANGESETS']:{this[_0x91c716(0xde)](_0x66b1e7(_0x197f62['data']));break;}case _0x44cf74[_0x91c716(0x198)]:{this[_0x91c716(0x1cc)](_0x197f62['data']);break;}case _0x44cf74[_0x91c716(0x366)]:{this['_onRemoteRejected']();break;}case _0x44cf74[_0x91c716(0x319)]:{this[_0x91c716(0x23c)](_0x197f62['data'][_0x91c716(0x439)]['map'](_0x5b0f97=>_0x66b1e7(_0x5b0f97)));break;}case _0x44cf74[_0x91c716(0x247)]:this[_0x91c716(0x1fa)]({'isPermissionRej':!0x0});}}catch(_0x8d8e47){throw console['error'](_0x91c716(0x125),_0x8d8e47),_0x8d8e47;}})),this[_0x4fa6a(0x155)];}[_0x23cbae(0xe8)](){const _0xb3668c=_0x23cbae;this[_0xb3668c(0x44b)]=!0x1;}[_0x23cbae(0x118)](){const _0x8a0c4f=_0x23cbae;if(this[_0x8a0c4f(0x44b)])throw new Error(_0x8a0c4f(0x348));this[_0x8a0c4f(0x44b)]=!0x0;}['_onLocalMutation'](_0x46b168){const _0x388ede=_0x23cbae;this[_0x388ede(0x118)](),this[_0x388ede(0x325)](this['_state'][_0x388ede(0x3fb)](_0x46b168)),this[_0x388ede(0xe8)]();}[_0x23cbae(0xde)](_0x13d57e){const _0x2a0bb0=_0x23cbae;if(!(_0x13d57e[_0x2a0bb0(0x1d8)]<=this[_0x2a0bb0(0x28a)][_0x2a0bb0(0x305)](this['unitID']))){if(this[_0x2a0bb0(0x396)]){this[_0x2a0bb0(0x12a)][_0x2a0bb0(0x12e)](_0x13d57e);return;}this[_0x2a0bb0(0x400)](_0x13d57e);}}[_0x23cbae(0x3ef)](){const _0x5477c5=_0x23cbae;this[_0x5477c5(0x12a)]['forEach'](_0x427a7e=>this[_0x5477c5(0x400)](_0x427a7e)),this[_0x5477c5(0x12a)]=[];}[_0x23cbae(0x400)](_0xecfcec){const _0x5835c7=_0x23cbae,_0x4fb5c4=this['_compressMutationService'][_0x5835c7(0x1f5)]['fetchThroughInterceptors'](this[_0x5835c7(0x115)]['interceptor'][_0x5835c7(0x293)]()['COMPRESS_MUTATION_APPLY'])(_0xecfcec[_0x5835c7(0x2e4)],null)||_0xecfcec['mutations'],_0x5328ce={..._0xecfcec,'mutations':_0x4fb5c4};this[_0x5835c7(0x118)](),this['_updateState'](this[_0x5835c7(0x155)][_0x5835c7(0x1c3)](_0x5328ce)),this[_0x5835c7(0xe8)]();}['_onRemoteACK'](_0x391570){const _0x5412b8=_0x23cbae;this[_0x5412b8(0x118)](),this['_updateState'](this[_0x5412b8(0x155)][_0x5412b8(0x449)](_0x391570)),this[_0x5412b8(0xe8)]();}['_onRemoteRejected'](_0x549bfb){const _0x5257d7=_0x23cbae;this['_lockTransition'](),this[_0x5257d7(0x325)](this[_0x5257d7(0x155)][_0x5257d7(0x3d6)](_0x549bfb)),this[_0x5257d7(0xe8)]();}[_0x23cbae(0x23c)](_0x341020){const _0x4039ea=_0x23cbae;if(!(this['_state']instanceof B))throw new TypeError(_0x4039ea(0x24c));const _0x3127db=_0x341020['map'](_0x1b1405=>{const _0x37e643=_0x4039ea,_0x7e7247=this['_compressMutationService'][_0x37e643(0x1f5)][_0x37e643(0x206)](this[_0x37e643(0x115)]['interceptor'][_0x37e643(0x293)]()[_0x37e643(0x122)])(_0x1b1405[_0x37e643(0x2e4)],null)||_0x1b1405[_0x37e643(0x2e4)];return{..._0x1b1405,'mutations':_0x7e7247};});this['_lockTransition'](),this[_0x4039ea(0x325)](this['_state'][_0x4039ea(0x3fa)](_0x3127db)),this[_0x4039ea(0xe8)]();}['_toggleOffline'](){const _0x1f33e9=_0x23cbae;this[_0x1f33e9(0x118)](),this[_0x1f33e9(0x325)](this['_state'][_0x1f33e9(0x433)]()),this[_0x1f33e9(0xe8)]();}[_0x23cbae(0x26a)](_0x1e8ded=!0x1){const _0x30e3ff=_0x23cbae;this['_lockTransition'](),this['_updateState'](this[_0x30e3ff(0x155)][_0x30e3ff(0x31a)]()),this['_unlockTransition']();const _0x48abf4=this['_state'];_0x1e8ded&&_0x48abf4 instanceof pe&&(this[_0x30e3ff(0x118)](),this['_updateState'](_0x48abf4[_0x30e3ff(0x1d3)]()),this[_0x30e3ff(0xe8)]());}async[_0x23cbae(0x1bb)](){return new Promise(_0x33b28b=>{const _0x1a9b51=_0x3f49;this[_0x1a9b51(0x291)][_0x1a9b51(0x18f)][_0x1a9b51(0x18c)](_0x333f84(0x1))['subscribe'](async _0x1f650a=>{const _0x3aa4b9=_0x1a9b51;_0x33b28b(await this[_0x3aa4b9(0x167)](_0x1f650a===Y[_0x3aa4b9(0x12d)]));});});}['_createHandler'](){const _0x427428=_0x23cbae,_0x2a06ce=this[_0x427428(0x1a5)];return{'onStateChange':(_0x4a01bb,_0x2dfa3d)=>{const _0x273d8e=_0x427428;if(_0x4a01bb!==this['_state'])throw new Error(_0x273d8e(0x409)+_0x4a01bb[_0x273d8e(0x361)]+_0x273d8e(0x15a)+_0x2dfa3d[_0x273d8e(0x361)]+'\x0aCurrent:\x20'+this['_state'][_0x273d8e(0x361)]);this[_0x273d8e(0x325)](_0x2dfa3d);},'onSendChangeset':_0x3770d3=>{const _0x3907e8=_0x427428;_0x3770d3['sid']||(_0x3770d3[_0x3907e8(0x1bf)]=this[_0x3907e8(0x431)],_0x3770d3['reqId']=++this['_changesetReqId']);const _0x41d253={'eventID':_0x44cf74['SUBMIT_CHANGESET'],'data':{'unitID':_0x3770d3[_0x3907e8(0x1a5)],'unitType':this[_0x3907e8(0x1e9)],'changeset':_0x3770d3,'memberID':this['session'][_0x3907e8(0x375)]()}};this[_0x3907e8(0x291)]['send'](_0x41d253,this[_0x3907e8(0x1a5)]);},'onMissingChangesets':({from:_0x559fe8,to:_0x2bc3ae})=>{const _0xf35a91=_0x427428;this['_logService']['debug'](_0xf35a91(0x30e),_0xf35a91(0x186)+_0x559fe8+_0xf35a91(0x392)+_0x2bc3ae);const _0x47bc1d={'eventID':_0x44cf74[_0xf35a91(0x417)],'data':{'unitID':_0x2a06ce,'unitType':this[_0xf35a91(0x1e9)],'from':_0x559fe8,'to':_0x2bc3ae}};this[_0xf35a91(0x291)]['send'](_0x47bc1d,this['unitID']);}};}async['_createInitialStateImpl'](_0x4b5bdc){const _0x579ab4=_0x23cbae;var _0x4e89e2,_0x1ce17d;const _0x290d1a=await this[_0x579ab4(0x279)][_0x579ab4(0x2b7)](this[_0x579ab4(0x1a5)]),_0x280bf1=(_0x4e89e2=_0x290d1a==null?void 0x0:_0x290d1a[_0x579ab4(0x2e4)])!=null?_0x4e89e2:[],_0xef888f=(_0x1ce17d=_0x290d1a==null?void 0x0:_0x290d1a[_0x579ab4(0x34a)])!=null?_0x1ce17d:null,_0x149162=!!(_0xef888f!=null&&_0xef888f[_0x579ab4(0x1bf)])&&!!(_0xef888f!=null&&_0xef888f[_0x579ab4(0x26b)]);this[_0x579ab4(0x431)]=_0x149162?_0xef888f[_0x579ab4(0x1bf)]:ir(),this[_0x579ab4(0x3b4)]=_0x149162?_0xef888f[_0x579ab4(0x26b)]:0x0;const _0x3b0515=this[_0x579ab4(0x1a5)];try{this[_0x579ab4(0x1e8)](_0xef888f,_0x280bf1);}catch(_0x571fdc){this[_0x579ab4(0x135)][_0x579ab4(0x43f)](_0x571fdc);}const _0xf3e500=this[_0x579ab4(0x296)]();if(_0x4b5bdc){const _0x2834fd=Fs(this[_0x579ab4(0x171)],_0x3b0515,this[_0x579ab4(0x1e9)],_0xef888f,_0x280bf1,_0xf3e500);return _0x2834fd instanceof X?_0x2834fd[_0x579ab4(0x2c8)]():(_0x2834fd instanceof q||_0x2834fd instanceof Q)&&_0x2834fd[_0x579ab4(0x107)](),_0x2834fd;}return this[_0x579ab4(0x171)]['createInstance'](te,_0x3b0515,this[_0x579ab4(0x1e9)],_0xef888f,_0x280bf1,_0xf3e500);}['_replayCachedMutations'](_0x24712c,_0x3bf401){const _0x66f800=_0x23cbae;var _0x2b6407,_0xbd4e25;const _0x5b6400=this[_0x66f800(0x115)][_0x66f800(0x1f5)][_0x66f800(0x206)](this[_0x66f800(0x115)][_0x66f800(0x1f5)][_0x66f800(0x293)]()['COMPRESS_MUTATION_APPLY']);(_0x2b6407=_0x5b6400((_0x24712c==null?void 0x0:_0x24712c[_0x66f800(0x2e4)])||[],null))==null||_0x2b6407['forEach'](_0x1d20a6=>this[_0x66f800(0x393)][_0x66f800(0x1ad)](_0x1d20a6['id'],_0x1d20a6[_0x66f800(0x1e4)])),(_0xbd4e25=_0x5b6400(_0x3bf401||[],null))==null||_0xbd4e25[_0x66f800(0x273)](_0x55de1d=>this[_0x66f800(0x393)][_0x66f800(0x1ad)](_0x55de1d['id'],_0x55de1d[_0x66f800(0x1e4)]));}};qe=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x2ed9bc),p(0x9,_0x2c218a),p(0xa,_0x2493e9),p(0xb,_0x3b2db3),p(0xc,_0x187eb8(tt))],qe);let Tt=class extends qe{constructor(_0x3d4b0b,_0x4a4ca0,_0xd90e70,_0x358c0a,_0x4eaf91,_0x1961bf,_0x35d7b1,_0x172a50,_0x7182c2,_0xa0f2f0,_0x22bd0c,_0x39d944,_0x5b2e11,_0x211ab2,_0x13e623,_0x28d440,_0x20a525){const _0x15f0b6=_0x23cbae;super(_0x3d4b0b,_0xd90e70,_0x4a4ca0,_0x358c0a,_0x4eaf91,_0x1961bf,_0x35d7b1,_0x172a50,_0x5b2e11,_0x211ab2,_0x13e623,_0x28d440,_0x20a525),this[_0x15f0b6(0x1a5)]=_0x3d4b0b,this['type']=_0x4a4ca0,this['_docStateChangeManagerService']=_0x7182c2,this[_0x15f0b6(0x2cd)]=_0xa0f2f0,this[_0x15f0b6(0x355)]=_0x22bd0c,this[_0x15f0b6(0x31f)]=_0x39d944;}[_0x23cbae(0x296)](){const _0x3a6e65=_0x23cbae,_0x29b6f1=super['_createHandler']();return _0x29b6f1[_0x3a6e65(0x15f)]=_0x5340c0=>this['_docTransformIMECacheService'][_0x3a6e65(0x14c)](_0x5340c0),_0x29b6f1[_0x3a6e65(0x246)]=_0x584ddb=>this[_0x3a6e65(0x355)][_0x3a6e65(0x3f8)](_0x584ddb),_0x29b6f1[_0x3a6e65(0x15e)]=_0x47ad5a=>this['_docSyncEditingCollabCursorService'][_0x3a6e65(0x427)](_0x47ad5a),_0x29b6f1[_0x3a6e65(0x13a)]=_0x385712=>this[_0x3a6e65(0x2cd)][_0x3a6e65(0x241)](_0x385712),_0x29b6f1;}async[_0x23cbae(0x383)](){const _0x197475=_0x23cbae,_0x1b4f3d=await super[_0x197475(0x383)]();return this[_0x197475(0x1c1)][_0x197475(0x26c)][_0x197475(0x18c)](_0x5b993c(this['dispose$']))['subscribe'](_0x59ea7f=>{const _0xc3672d=_0x197475;if(_0x59ea7f==null)return;const {unitId:_0x370ac4,redoState:_0x33cbed,commandId:_0x299445}=_0x59ea7f;if(_0x370ac4!==this['unitID'])return;const _0x1d2069={'id':_0x299445,'type':_0x406a66[_0xc3672d(0x411)],'params':{'unitId':_0x370ac4,'actions':_0x33cbed[_0xc3672d(0x347)],'textRanges':null}};this[_0xc3672d(0x156)](_0x1d2069);}),_0x1b4f3d;}};Tt=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x57082d(_0x2e5857)),p(0x9,_0x57082d(Ye)),p(0xa,_0x57082d(Xe)),p(0xb,_0x57082d(Ft)),p(0xc,_0x2ed9bc),p(0xd,_0x2c218a),p(0xe,_0x2493e9),p(0xf,_0x3b2db3),p(0x10,_0x187eb8(tt))],Tt);let Rt=class extends qe{constructor(_0x55c5fe,_0x32e73f,_0xfcce50,_0x30d525,_0x4ca23a,_0x5e8713,_0x5b7a68,_0x2c40c8,_0x29fa6d,_0xa36a9c,_0x220c34,_0x3d02f5,_0x1c05a7,_0x5c8499){const _0x10b96a=_0x23cbae;super(_0x55c5fe,_0xfcce50,_0x32e73f,_0x30d525,_0x4ca23a,_0x5e8713,_0x5b7a68,_0x2c40c8,_0xa36a9c,_0x220c34,_0x3d02f5,_0x1c05a7,_0x5c8499),this[_0x10b96a(0x1a5)]=_0x55c5fe,this[_0x10b96a(0x2f1)]=_0x32e73f,this[_0x10b96a(0x430)]=_0x29fa6d;}[_0x23cbae(0x296)](){const _0x3bb5dc=_0x23cbae,_0x5d18d0=super['_createHandler']();return _0x5d18d0['onTransformSelections']=_0x73fe9c=>this[_0x3bb5dc(0x430)][_0x3bb5dc(0x3f8)](_0x73fe9c),_0x5d18d0;}async[_0x23cbae(0x383)](){const _0x2761e9=_0x23cbae,_0x4b0717=await super['_init']();return this[_0x2761e9(0x165)](this['_commandService']['onCommandExecuted']((_0x26e755,_0x49f757)=>{const _0x18ce5b=_0x2761e9;if(_0x26e755[_0x18ce5b(0x2f1)]!==_0x406a66[_0x18ce5b(0x411)]||_0x49f757!=null&&_0x49f757[_0x18ce5b(0x176)]||_0x49f757!=null&&_0x49f757[_0x18ce5b(0x1c5)])return;const _0x553fd6=_0x26e755[_0x18ce5b(0x1e4)];if((_0x553fd6==null?void 0x0:_0x553fd6[_0x18ce5b(0x37e)])!==this['unitID'])return;const _0x4289e8=_0x26e755,_0x2b4b4a=this[_0x18ce5b(0x115)][_0x18ce5b(0x1f5)][_0x18ce5b(0x206)](this[_0x18ce5b(0x115)][_0x18ce5b(0x1f5)][_0x18ce5b(0x293)]()[_0x18ce5b(0x1db)])([_0x4289e8],null)||[_0x4289e8];this['_onLocalMutation'](_0x2b4b4a[0x0]);})),_0x4b0717;}};function _0x6cb7(){const _0x14c6f1=['visibilitychange','CONNECTOR_DATA_TOO_LARGE','_removeRoom','joinEvent','OTHER_CLIENTS_EDITING','text','exhaustSavingTask','&to=','_timeoutTimer','_listenToOnlineEvent','backgroundColor','ALREADY_EXISTS','values','loadOfflineData','collaboration.closeRoom','_cursorShapes','getRandomValues','show','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','arc','_substituteRedoStack','transformMutation','registerOnClose','onMissingChangesets','close','8764767vGUqes','_stopTelemetryCollaborationNewChangeset','APPLY_REVISION_CONFILICT','getUnitStatus$','create','_schedule','state$','font','_initStatusComponent','_state$','_docTransformIMECacheService','_univerInstanceService','getRangePointData','_unitStatus','saveOfflineData','colorChannel1','socket$','_getSnapshotAPIPrefix','c1Prime','setTimeout','update','1652532fdZqTi','bind','SNAPSHOT_INVALID_SNAPSHOT','univer-pro.collaboration-client-socket-service','defs','LICENSE_IMPORT_SIZE_EXCEEDED','_cachedData','_rescheduleHeartbeat','JOIN','getAncestorScale','LOCAL_CACHE_INTERVAL','_heartbeatTimer','mutations','searchParams','use','[PendingState]:\x20received\x20acknowledgement.','concat','_fetchMissChangesets','evenodd','conflict.content','COLLAB_SUBMIT_CHANGESET_URL','_colorAssignService','BASE64','_showConflictNotification','_renderManagerService','type','_context','updatePermissionObjEvent','_memberService','_transformService','_sessions','_roomMembers$','onPointerMove$','disableLocalCache','awaiting','_onCombEvent','storage','origin','UNIVER_SLIDE','_updateSubUnitFromURLParams','updateMember','unknown','add','allowed','_docSkeletonManagerService','getCurrentRevOfUnit','lineTo','object','skeleton','readAsDataURL','putCollaborators','setItem','_retryConnectingTimer','onRendered','[CollaborationEntity]','&source=','_event$','_clearLocalCache','reconnect','_collabCursorState$','MSG_FOR_ERROR','result','from','off-line-single','collabStatus.offline','PSEUDO_FETCH_MISSING_RESULT','toggleOnline','roomMembers','_initUnitPermissionChange','HttpExport','addObjects','_docSyncEditingCollabCursorService','not_collab','jiqing500','_clearRedo','getParam','getTime','_updateState','pushState','[UniverCollaborationClientPlugin]','_getLoginPath','removeMember','_shouldReportTelemetry','fillStyle','[CollaborationSession]','data','_setupBeforeClosingHandler','_clearHeartbeatTimer','DEFAULT_FILE_NAME','collabStatus.conflict','getOffsetConfig','ENSURE_SNAPSHOT_EXECUTION','subscribe','COMMENT_UPDATE','_cursorInfo$','subunit','getDocRanges','SUCCUSS','[DataLoaderController]','Error','on-line-single','/universer-api/stream/file/upload','_removeCollabCursors','_syncEditingCollabCursor','_collaborationController','asObservable','session.collaboration-timeout','RECV','_updateLocalCursor','_collabCursorController','416854hcwcFP','actions','[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.','fillRule','awaitingChangeset','#FFF','members','UNIVER_SHEET','_permissionService','SHOULD_CLOSE_CONN','_send','createInstance','path','telemetry\x20info\x20is\x20not\x20initialized','joinRsp','_docTransformSelectionsService','contains','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','conflict','blue400','dispose','rev','override','replace','_tryReconnect','xlink:href','_scheduleSaving','status','whenReady','selection','POST','file','CHANGESET_REJ','headers','UNDEFINED','synced','getOwnPropertyDescriptor','_initCommandExecutedListener','startsWith','addObject','measureText','getUndoRedoMutationParamsCache','_clearOtherTimers','filter','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_refreshCollabCursors','url(#off-line-single_clip0_910_343)','getMemberID','selections','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','TOO_MANY_REQUESTS','_updateStatus','labelPosition','loginUrlKey','ERROR_EXCEED_SIZE','_urlService','unitId','_waitForHeartbeatResponse','_onCursorDelete','4016YZoxUf','\x20in\x20_schedule.','_init','9724dEKmAH','getCurrentSelections','_handler','_initMergeInterceptor','_unitOnClients','message$','_updateCollabCursors','_beforeCloseService','onStarting','_unitID','registerBeforeClose','_getDownloadEndpointURL','createCollaborator','deleteCollaborator','\x20to\x20','_commandService','_sendHeartbeat','setCurrentUser','_collaborationPaused','collabStatus.syncing','_eventUnsubscribe','transformChangesets','_createSocket','reduce','visibilityState','getCollabEntity','LOGIN_URL_KEY','_transformIMECache','getMember','_hovered','round','UNIVER_UNKNOWN','/object/','_color','onPointerEnter$','Unknown\x20user','onlineStatusTitle','ERROR_IMAGE_TYPE','_getAPIPrefixPath','collaboratorID','drawWith','_scheduleTimestamp','_transformStack','setShapeProps','PERMISSION_DENIED','_checkMissing','location','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_changesetReqId','_socket','_joinRoom','_registerRenderDependencies','sheetID','univerjs-icon\x20univerjs-icon-','_substituteUndoStack','_clearScheduledTask','displayName','resolve','color','image/png','retryConnectingInterval','now','[FetchMissState]','assignAColorForMemberID','onlineStatus','SNAPSHOT_SERVER_URL_KEY','randomUUID','flatMap','_scheduleCollaborationTimeoutTimer','substring','unitId\x20is\x20not\x20found','SYNCED','transformMutationsWithChangeset','_range','pending','image/bmp','max','all','/object','_initStatusListener','fetch_missing','_messageService','onRemoteRej','registerHTTPInterceptor','YUUMI_RATE_OVER_LIMIT','HEARTBEAT_TIMEOUT','_sendHeartbeatTimer','RemoveColCommandId','_docSkeleton','_members','div','_backgroundColor','_drawAnchor','stopTime','getSkeleton','min','hidden','?size=','some','_redoStacks','m1Prime','commentUpdate$','parse','univer-online-status-icon','_removeClearOtherTimer','USERS_ENTER','editing\x20status\x20changed\x20to','_exhaustRemoteChangesetQueue','eventID','getActiveSheet','/block/','getRelativeToViewportCoord','/universer-api/oidc/authpage','_getSignURL','APPLY_PERMISSION_DENIED','code','transformSelections','_submitChangeset','onMissedChangesetFetched','appendMutation','replaceState','get','getTypeOfUnitDisposed$','_collaborationSessionService','_applyRemoteChangeset','DeleteRangeMoveLeftCommandId','/resources','[CollaborationSessionService]','height','_initEventListeners','[SyncedState]:\x20received\x20rejection.','_onConnectionOpen','_id','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','row','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','NOT_FOUND','clipPath','cursorInfo','_entityInit$','init','MUTATION','on-line-single_clip0_910_349','_change$','toString','deepClone','_userManagerService','FETCH_MISSING','_socketService','getFocusedUnit','APPLY_NON_SEQUENTIAL_REVISION','_onRefRangeChange','_lastPointer','map','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','split','UNIVER_PROJECT','_getCtorByUniverType','enableSingleActiveInstanceLock','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitSnapshot','collabStatus.synced','triggerDblclick','syncEditingCollabCursor','onCommandExecuted','_roomMembers','onSendChangeset','c2Prime','_snapshotServerService','_config','toRgbString','_transformPreviousActiveRange','_sheetTransformSelectionsService','_changesetSessionId','collaboration-session-retry','toggleOffline','apply','setAlpha','UPDATE_PERMISSION_OBJ','getCollabCursors$','_httpService','changesets','createSocket','purple300','_handleEvent','clearTimeout','_collabSessionService','error','_render','userID','[CollaborationUndoRedoService]','/collaborator','CONFLICT','_tryEnsureSocket','enableLocalCache','Univer','debug','onRemoteAck','InsertRowCommandId','_transitionLocked','_configService','collabWebSocketUrl','LICENSE_DISTRO_REJECTED','_hideTimer','_http','collaboration.single-unit.warning','getViewport','image/jpeg','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','createElement','_shapes','resize','_onRemoteChangeset','/unit/','updateOfflineData','capture','defineProperty','univer-online','_handleHover','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','UNIVER_COLLABORATION_CLIENT_PLUGIN','closePath','_unlockTransition','save\x20fail\x20reason\x20is\x20','extend','url(#on-line-single_clip0_910_349)','LIVESHARE_NEW_HOST','length','newCsEvent','_transformUndoRedoStack','transformStack\x20failed!','_telemetryService','LIVESHARE_FETCH_OPERATIONS','_scheduleHeartbeat','range','socketService','hide','getVpScrollXYInfoByPosToVp','YUUMI_SUBSCRIPTION_NOT_FOUND','refreshPermission','getUnitType','replaceTextRanges','_toggleOffline','1697680SplqoJ','_loadDoc','closeSession','_startTelemetryCollaborationNewChangeset','collab-rect-range-','url(#$1','disposeUnit','memberID','off-line-single_clip0_910_343','permissionRejEvent','resend','onPointerLeave$','collabStatus.notCollab','session.will-retry','_sheetSkeletonManagerService','_socket$','_listenToOfflineEvent','reject','getCurrentUnitForType','INVALID_ARGUMENT','set','_onRecvEvent','send','ERROR_IMAGE','_compressMutationService','socket\x20close','tag','_lockTransition','_sendingTimer','number','size','catch','liveShareNewHost','_anchor','slice','FETCH_MISS','1em','COMPRESS_MUTATION_APPLY','findNodePositionByCharIndex','clearInterval','Error\x20on\x20receiving\x20event','transformByState','onTransformChange$','_onConflict','285jgueZF','_remoteChangesetQueue','updatePermissionPoint','LEAVE','ONLINE','push','UNIVER_DOC','icon','next','socket\x20open.','_online','collaboration_new_changeset','_logService','_onUserJoin','/new_changes','className','_telemetryInfo','onTransformRemoteChangesetByIMECache','getCollabEntity$','InsertColCommandId','_getScale','listCollaborators','resourceIDs','_cursor','_singleActiveUnitService','_textBubble','assign','commentUpdateEvent','HELLO','_updateURLWithCurrentState','trim','indexOf','then','_session','_startCollaboration','transformIMECache','cursorInfo$','_hover','baseRev','routeKey','_localeService','localeService','Warning','unshift','_state','_onLocalMutation','DeleteRangeMoveUpCommandId','collaboration-client.offline-data-not-saved','_transformUndoredo','\x0aAfter:\x20','has','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','responseType','onSyncEditingCollabCursor','onTransformIME','PENDING','error$','cmd','getSheetBySheetId','fetchMissingChangesets','disposeWithMe','_getSendChangesetTimeout','_createInitialStateImpl','_assignedColors','editingUnit','/rev/','history','transformUndoRedo','objectActions','authzUrl','dispose$','getItem','_injector','_onConnectionFailed','complete','collab-text-anchor-','objectID','fromCollab','getCurrentUser','_commentService','getOwnPropertySymbols','getActiveRange','onMouseMove','connection\x20error','univer-online-status','_HTTPService','_decreaseWaiting','_onOffline','_executeRemoteChangeset','/universer-api/file/{fileID}/sign-url','getUnitId','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','snapshot','fetching\x20missing\x20changesets\x20from\x20','_saveCache','_throwTelemetryCollaborationNewChangeset','getCurrent','stringify','prototype','pipe','idSuffix','_cursors','sessionStatus$','setWaitCount','\x20-\x20','YUUMI_URL_COL_OUT_OF_RANGE','_getMergeRange','change$','_anchorDot','loadDoc','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CHANGESET_ACK','0\x200\x2017\x2016','_incrementRevisionNumber','roomMembers$','_initResize','status$','uploadFileServerUrl','propertyIsEnumerable','getRenderById','getTypeOfUnitAdded$','name','ACTIVE_UNIT_EVENT_CHANNEL','_getSaveTimeout','unitID','INGEST','_initCloseConn','delete','OFFLINE','conflict.title','_pendingMutations','csRejEvent','executeCommand','rng','_clearUndo','m2Prime','UnitEmbedded','getResourcesRequest','_themeService','INTERNAL_ERROR','RETRY_CONNECTING_MAX_COUNT','url','auth.needGotoLoginAlert','OffLineSingle','isActive','_awaitingChangeset','_createInitialState','originalMeta','_socketReady','_sessionStatus$','sid','_getSheetObject','_docStateChangeManagerService','_onCursorUpdate','onRemoteChangeset','currentSkeleton$','onlyLocal','session.connection-failed','UUID','copyFileMeta','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','listRoles','getUnhiddenWorksheets','_onRemoteACK','leaveEvent','_candidateSocket','_handleHeartbeatEvent','awaiting_with_pending','getDeserializedSheetBlock','symbol','fetchMiss','UPDATE_CURSOR','entries','NEW_CHANGESETS','registerRenderModule','revision','getValue','width','COMPRESS_MUTATION_SEND','permission.content','save','/role','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_transformRemoteChangesetByIMECache','unload','_socketMessageSubscription','collab-text-range-','params','post','close$','#fff','_replayCachedMutations','_type','_transformSelections','collab-client.tooltip.reconnect','json','none','subUnitId','initWorkbookPermissionChange','UNKNOWN_CMD','_scene','SUBMIT_CHANGESET','children','key','interceptor','body','getMergeData','textRanges','getRoom','_onRemoteRejected','/allowed','call','_getAnchorBounding','FileId','getSheetId','doc.mutation.rich-text-editing','_refRangeService','_getRedoStack','objectType','function','subscribeEvent','fetchThroughInterceptors','sessionStatus','newValue','_colorIndex','_acknowledgedAwaitingChangeset','CHANGESET_REVISION_CONFILICT','_name','ws://127.0.0.1:8000/universer-api/comb/connect','&assign=','LIVESHARE_TERMINATE','15813hrxDBK','LICENSE_MAX_UNITS_EXCEEDED','_localStorageService','_drawRectRange','_handleJoinEvent','_getAPIPrefix','_undoRedoService','defIds','isArray','_imageSourceCache','FAIL','column','top','unit','_retryCount','_snapshotService','put','unsubscribe','restore','roomInfos','roles','_handleLeaveEvent','isPermissionRej','string','LICENSE_EXPORT_SIZE_EXCEEDED','_entities','NO_OTHER_CLIENTS_EDITING','_clearTimeoutTimer','getLatestCsReqIdBySid','LIVESHARE_OPERATION','SNAPSHOT_URL_KEY','focused$','fill','RemoveRowCommandId','FromArray','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_drawTextRange','AUTHZ_URL_KEY','requireSession','_selfUnitIDs','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','engine','isEditing','_commentUpdate$','_onFetchMissResult','uni.network.url-service','black','offline','online','transformRemoteChangeset','_ws','hasOwnProperty','AWAITING','loadSheet','onTransformSelections','PERMISSION_REJ','currentTheme$','_getUndoStack','{fileID}','image/gif','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','action','_updateLocalCache','attrs','batchAllowed','beginPath','popstate','_saveTaskMap','VIEW_MAIN','_labelPosition','_queuedRemoteChangesets','_disableEditing','generateRandomId','USERS_LEAVE','onCommentUpdate','csAckEvent','_collaborationTimeoutTimer','/universer-api/comb','_scheduleClearOtherTimer','enableOfflineEditing','requestParams','_startSheetCollabCursor','clear','x-univer-host','find','getConfig','_onUserLeave','/-/object/-/batch_allowed','HttpImport','_toggleOnline','reqId','docStateChange$','HEARTBEAT','NOT_COLLAB','saveChangeset','HEADER_MENU','IDLE','onlineStatusIcon','forEach','MoveRangeCommandId','_clearCollaborationTimeoutTimer','collabSubmitChangesetUrl','addEventListener','encodeURIComponent','_localCacheService','[SyncedState]:\x20received\x20acknowledgement.','collaborators','_onMessage','includes','_ensureSubject','AWAITING_WITH_PENDING','APPLY_DUPLICATED','state','_initRequestHeader','encode','getImage','_notificationService','getUnitOnRev','makeDirty','_getCurrentRevision','...','_revisionService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_registerDependencies','_waitCount','with','M0\x200H16V16H0z','_status$','session','collabCursorState$','getInterceptPoints','saveImage','failed\x20to\x20apply\x20missed\x20changesets!','_createHandler','UNRECOGNIZED','_disabled','_replaceFileID','SNAPSHOT_HAS_BEEN_REMOVED','ranges','event$','4401096QvzstK','currentColor','_undoStacks','href','_isPermissionRej','open$','YUUMI_UNABLE_LOAD_URL','bottom','random','setParam','UNAUTHENTICATED','_instanceService','UNKNOWN_CODE'];_0x6cb7=function(){return _0x14c6f1;};return _0x6cb7();}Rt=Wt([p(0x3,_0x57082d(_0x5aca14)),p(0x4,_0x57082d(w)),p(0x5,_0x57082d(_0xa37832)),p(0x6,_0x57082d(_0x1ba649)),p(0x7,_0x57082d(_0x2056a3)),p(0x8,_0x57082d(Ke)),p(0x9,_0x2ed9bc),p(0xa,_0x2c218a),p(0xb,_0x2493e9),p(0xc,_0x3b2db3),p(0xd,_0x187eb8(tt))],Rt);var Or=Object[_0x23cbae(0xe2)],Dr=Object[_0x23cbae(0x36a)],wr=(_0x4105d5,_0x521fa2,_0x215ffe,_0x4c56c9)=>{const _0x2bc275=_0x23cbae;for(var _0x586dc3=_0x4c56c9>0x1?void 0x0:_0x4c56c9?Dr(_0x521fa2,_0x215ffe):_0x521fa2,_0xc9003f=_0x4105d5[_0x2bc275(0xed)]-0x1,_0xabfc0c;_0xc9003f>=0x0;_0xc9003f--)(_0xabfc0c=_0x4105d5[_0xc9003f])&&(_0x586dc3=(_0x4c56c9?_0xabfc0c(_0x521fa2,_0x215ffe,_0x586dc3):_0xabfc0c(_0x586dc3))||_0x586dc3);return _0x4c56c9&&_0x586dc3&&Or(_0x521fa2,_0x215ffe,_0x586dc3),_0x586dc3;},_t=(_0xb3699b,_0x1ac08f)=>(_0x88c3f9,_0xce38c3)=>_0x1ac08f(_0x88c3f9,_0xce38c3,_0xb3699b);let Le=class extends _0x3a262a{constructor(_0x59c4bb,_0x476683,_0x26f1a8){const _0x2054ee=_0x23cbae;super(),l(this,'_entities',new Map()),l(this,_0x2054ee(0x40f),new _0x4061c1()),(this[_0x2054ee(0x171)]=_0x59c4bb,this[_0x2054ee(0x43e)]=_0x476683,this[_0x2054ee(0x2ce)]=_0x26f1a8,this[_0x2054ee(0x383)]());}['dispose'](){const _0x242d5c=_0x23cbae;super['dispose'](),this[_0x242d5c(0x229)]['forEach'](_0x3842e0=>_0x3842e0['dispose']()),this[_0x242d5c(0x229)][_0x242d5c(0x263)]();}['getCollabEntity'](_0x1d6795){const _0x49784f=_0x23cbae;var _0x2676ba;return(_0x2676ba=this[_0x49784f(0x229)][_0x49784f(0x3fd)](_0x1d6795))!=null?_0x2676ba:null;}[_0x23cbae(0x13b)](_0x2a3abf){const _0x5d74a5=_0x23cbae,_0x15ac0f=this[_0x5d74a5(0x39d)](_0x2a3abf);return _0x15ac0f?_0x4a5add(_0x15ac0f):this[_0x5d74a5(0x40f)]['pipe'](_0x4eb371(_0x39324a=>_0x39324a[_0x5d74a5(0x1a5)]===_0x2a3abf));}['_init'](){const _0x169701=_0x23cbae;this[_0x169701(0x2ce)][_0x169701(0x1a1)](_0x2eb231['UNIVER_SHEET'])[_0x169701(0x18c)](_0x5b993c(this['dispose$']),_0x3f8011(0x10))['subscribe'](async _0x4f2999=>{const _0x3988e3=_0x169701,_0x2b6196=_0x4f2999[_0x3988e3(0x183)](),_0x4fcfb7=await this[_0x3988e3(0x14b)](_0x2b6196,k[_0x3988e3(0x34d)]);this['_entities'][_0x3988e3(0x111)](_0x2b6196,_0x4fcfb7);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2eb231[_0x169701(0x12f)])[_0x169701(0x18c)](_0x5b993c(this[_0x169701(0x16f)]),_0x3f8011(0x10))[_0x169701(0x18c)](_0x4eb371(_0x1ad883=>!_0x1ad883['getUnitId']()[_0x169701(0x36c)]('__')))['subscribe'](async _0x3eb02f=>{const _0x17dc4a=_0x169701,_0x3a144f=_0x3eb02f['getUnitId'](),_0x6e0d1d=await this[_0x17dc4a(0x14b)](_0x3a144f,k['UNIVER_DOC']);this[_0x17dc4a(0x229)]['set'](_0x3a144f,_0x6e0d1d);}),_0x395f71(this[_0x169701(0x2ce)]['getTypeOfUnitDisposed$'](_0x2eb231[_0x169701(0x34d)]),this[_0x169701(0x2ce)][_0x169701(0x3fe)](_0x2eb231['UNIVER_DOC']))[_0x169701(0x18c)](_0x5b993c(this[_0x169701(0x16f)]))['subscribe'](_0xf0575a=>{const _0x510c4b=_0x169701,_0x47970d=_0xf0575a['getUnitId'](),_0x1e3f3a=this['_entities'][_0x510c4b(0x3fd)](_0x47970d);_0x1e3f3a&&(_0x1e3f3a[_0x510c4b(0x35a)](),this[_0x510c4b(0x229)]['delete'](_0x47970d));});}async[_0x23cbae(0x14b)](_0x323584,_0x58dc0a){const _0x5eec04=_0x23cbae,_0x32ba5e=await this[_0x5eec04(0x43e)][_0x5eec04(0x236)](_0x323584),_0x1fcba8=this[_0x5eec04(0x171)]['createInstance'](this['_getCtorByUniverType'](_0x58dc0a),_0x323584,_0x58dc0a,_0x32ba5e);return await _0x1fcba8['init'](),this[_0x5eec04(0x40f)][_0x5eec04(0x131)](_0x1fcba8),_0x1fcba8;}[_0x23cbae(0x421)](_0x296006){const _0x42cded=_0x23cbae;switch(_0x296006){case k[_0x42cded(0x12f)]:return Tt;case k[_0x42cded(0x34d)]:return Rt;default:throw new Error(_0x42cded(0x377)+_0x296006);}}};Le=wr([_t(0x0,_0x57082d(_0x5aca14)),_t(0x1,_0x57082d(he)),_t(0x2,_0xf0f4c1)],Le);const fs=[_0x23cbae(0x43b),_0x23cbae(0x321),'verdancy600','red300',_0x23cbae(0x359),'gold400'];class Gt extends _0xbfc176{constructor(){const _0x16a72b=_0x23cbae;super(...arguments),l(this,_0x16a72b(0x168),new Map()),l(this,_0x16a72b(0x209),0x0);}[_0x23cbae(0x3c3)](_0x13c90d){const _0x3ae7a2=_0x23cbae;if(this[_0x3ae7a2(0x168)][_0x3ae7a2(0x15b)](_0x13c90d))return this[_0x3ae7a2(0x168)][_0x3ae7a2(0x3fd)](_0x13c90d);const _0x974e32=fs[this[_0x3ae7a2(0x209)]];return this[_0x3ae7a2(0x209)]=(this[_0x3ae7a2(0x209)]+0x1)%fs['length'],this[_0x3ae7a2(0x168)][_0x3ae7a2(0x111)](_0x13c90d,_0x974e32),_0x974e32;}}var Pr=Object[_0x23cbae(0xe2)],yr=Object[_0x23cbae(0x36a)],Ur=(_0x3b6bf9,_0x187914,_0x154edf,_0xc2fc65)=>{const _0x41fec0=_0x23cbae;for(var _0x314ed7=_0xc2fc65>0x1?void 0x0:_0xc2fc65?yr(_0x187914,_0x154edf):_0x187914,_0xa40450=_0x3b6bf9[_0x41fec0(0xed)]-0x1,_0x57ade5;_0xa40450>=0x0;_0xa40450--)(_0x57ade5=_0x3b6bf9[_0xa40450])&&(_0x314ed7=(_0xc2fc65?_0x57ade5(_0x187914,_0x154edf,_0x314ed7):_0x57ade5(_0x314ed7))||_0x314ed7);return _0xc2fc65&&_0x314ed7&&Pr(_0x187914,_0x154edf,_0x314ed7),_0x314ed7;},ie=(_0x557c07,_0xa96fc1)=>(_0x2dc0c7,_0x2d4d9e)=>_0xa96fc1(_0x2dc0c7,_0x2d4d9e,_0x557c07);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x3a262a{constructor(_0x5b4c91,_0x3f0c90,_0x2b59b2,_0x390848,_0x296585,_0x2a3ca4,_0x4490a1,_0xd094c2,_0x5ea8be){const _0x3ba4ff=_0x23cbae;super(),l(this,_0x3ba4ff(0x133),!0x1),l(this,_0x3ba4ff(0x383),!0x1),l(this,'_cursorInfo$',new _0x169308(new Map())),l(this,'cursorInfo$',this[_0x3ba4ff(0x336)][_0x3ba4ff(0x341)]()),l(this,'_roomMembers$',new _0x169308([])),l(this,_0x3ba4ff(0x19b),this[_0x3ba4ff(0x2f7)]['pipe'](_0x43ba67(Nr))),l(this,_0x3ba4ff(0x344),_0x23acc5(_0x39a641=>{const _0x86a43e=_0x3ba4ff,_0x5746b9={'eventID':_0x44cf74[_0x86a43e(0x1d4)],'data':{'unitID':this['unitID'],'memberID':this[_0x86a43e(0x14a)][_0x86a43e(0x375)](),'selection':Vs(_0x39a641)}};this[_0x86a43e(0x14a)][_0x86a43e(0x113)](_0x5746b9,this['unitID']);},Mr)),(this[_0x3ba4ff(0x1a5)]=_0x5b4c91,this[_0x3ba4ff(0x14a)]=_0x3f0c90,this[_0x3ba4ff(0x171)]=_0x2b59b2,this[_0x3ba4ff(0x2ed)]=_0x390848,this['_memberService']=_0x296585,this['_syncEditingCollabCursorService']=_0x2a3ca4,this[_0x3ba4ff(0x2f5)]=_0x4490a1,this[_0x3ba4ff(0x2ce)]=_0xd094c2,this[_0x3ba4ff(0x393)]=_0x5ea8be);}get[_0x23cbae(0x40e)](){const _0x5b6c9b=_0x23cbae;return this[_0x5b6c9b(0x336)]['getValue']();}get['roomMembers'](){const _0x864f84=_0x23cbae;return this[_0x864f84(0x2f7)]['getValue']();}[_0x23cbae(0x35a)](){const _0x1d9df0=_0x23cbae;super[_0x1d9df0(0x35a)](),this[_0x1d9df0(0x336)]['next'](new Map()),this[_0x1d9df0(0x336)][_0x1d9df0(0x173)](),this[_0x1d9df0(0x2f7)][_0x1d9df0(0x131)]([]),this[_0x1d9df0(0x2f7)][_0x1d9df0(0x173)]();}[_0x23cbae(0x410)](){const _0x2eaa67=_0x23cbae;this[_0x2eaa67(0x383)]||(this[_0x2eaa67(0x383)]=!0x0,this[_0x2eaa67(0x14a)][_0x2eaa67(0x18f)][_0x2eaa67(0x18c)](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x529b17=>{const _0x5d0a9e=_0x2eaa67;_0x529b17===Y['ONLINE']?this[_0x5d0a9e(0x26a)]():this[_0x5d0a9e(0xfc)]();}),this[_0x2eaa67(0x14a)]['event$']['pipe'](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x21cbca=>{const _0x5ea803=_0x2eaa67,_0x349f1b=_0x21cbca['eventID'];_0x349f1b===_0x44cf74['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x21cbca),_0x349f1b===_0x44cf74[_0x5ea803(0x25a)]&&this[_0x5ea803(0x380)](_0x21cbca);}),this['disposeWithMe'](this[_0x2eaa67(0x393)]['onCommandExecuted'](_0x33200b=>{const _0x3ff980=_0x2eaa67,_0x5e14a0=_0x33200b[_0x3ff980(0x1e4)];_0x5e14a0!=null&&this['_online']&&_0x33200b['id']===_0x212257['id']&&_0x5e14a0[_0x3ff980(0x37e)]===this[_0x3ff980(0x1a5)]&&_0x5e14a0[_0x3ff980(0x23a)]===!0x1&&this[_0x3ff980(0x344)](_0x5e14a0['ranges']);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x2eaa67(0x18c)](_0x5b993c(this[_0x2eaa67(0x16f)]))[_0x2eaa67(0x334)](_0x113841=>{const _0x192b12=_0x2eaa67;if((_0x113841==null?void 0x0:_0x113841[_0x192b12(0x1a5)])!==this[_0x192b12(0x1a5)])return;const _0xc01546={'eventID':_0x44cf74[_0x192b12(0x1d4)],'data':_0x113841};this[_0x192b12(0x1c2)](_0xc01546);}),this[_0x2eaa67(0x165)](this[_0x2eaa67(0x393)][_0x2eaa67(0x428)](_0x3758cc=>{const _0x575b59=_0x2eaa67;if(_0x3758cc['params']==null)return;const _0x21b0d6=_0x3758cc['params'];if(_0x3758cc['id']!==_0x520c9a['id']||_0x21b0d6[_0x575b59(0x37e)]!==this[_0x575b59(0x1a5)])return;const _0x1065ed={'id':_0x575b59(0x200),'params':_0x21b0d6},_0x30fa2c=this[_0x575b59(0x40e)];for(const [_0xa6da94,_0x27cc06]of _0x30fa2c){const _0x2e58ab={'id':_0x575b59(0x200),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x27cc06[_0x575b59(0x29b)]}},_0x2544f4=this[_0x575b59(0x2f5)][_0x575b59(0x2bf)](_0x1065ed,_0x2e58ab,!0x1);if(_0x426132(_0x2544f4))throw _0x2544f4['error'];_0x30fa2c[_0x575b59(0x111)](_0xa6da94,{..._0x27cc06,'ranges':_0x2544f4[_0x575b59(0x1b0)]['params']['textRanges']});}queueMicrotask(()=>{const _0x5268ea=_0x575b59;this['_cursorInfo$'][_0x5268ea(0x131)](_0x30fa2c);});})));}[_0x23cbae(0x1c2)](_0x5be245){const _0x391ee2=_0x23cbae;var _0x30dcab,_0x498bfe;const {memberID:_0x3c1cd4,selection:_0x1c9034}=_0x5be245[_0x391ee2(0x32d)],_0x3f922b=mr(_0x1c9034),_0x3aa6b0=(_0x498bfe=(_0x30dcab=this[_0x391ee2(0x2f4)][_0x391ee2(0x3a0)](this[_0x391ee2(0x1a5)],_0x3c1cd4))==null?void 0x0:_0x30dcab['name'])!=null?_0x498bfe:'Unknown\x20user',_0xa10f20={'color':this[_0x391ee2(0x2ed)][_0x391ee2(0x3c3)](_0x3c1cd4),'name':_0x3aa6b0,'ranges':_0x3f922b},_0x5ca0f9=this['cursorInfo'];_0x5ca0f9[_0x391ee2(0x111)](_0x3c1cd4,_0xa10f20),this[_0x391ee2(0x336)]['next'](_0x5ca0f9);}[_0x23cbae(0x380)](_0x5c1169){const _0x39e1b7=_0x23cbae,{memberID:_0x5b535c}=_0x5c1169['data'],_0x598fc4=this[_0x39e1b7(0x40e)];_0x598fc4[_0x39e1b7(0x1a8)](_0x5b535c),this[_0x39e1b7(0x336)]['next'](_0x598fc4);}[_0x23cbae(0x26a)](){const _0x1502b2=_0x23cbae;var _0x402cd8;if(this[_0x1502b2(0x133)]=!0x0,((_0x402cd8=this['_univerInstanceService'][_0x1502b2(0x419)]())==null?void 0x0:_0x402cd8[_0x1502b2(0x183)]())!==this[_0x1502b2(0x1a5)])return;const _0x53bf1d=this['_injector'][_0x1502b2(0x3fd)](_0x5502c3)[_0x1502b2(0x338)]();Array[_0x1502b2(0x218)](_0x53bf1d)&&_0x53bf1d[_0x1502b2(0xed)]>0x0&&this[_0x1502b2(0x344)](_0x53bf1d);}[_0x23cbae(0xfc)](){const _0x20b29f=_0x23cbae;this[_0x20b29f(0x133)]=!0x1;}};Ot=Ur([ie(0x2,_0x57082d(_0x5aca14)),ie(0x3,_0x57082d(Gt)),ie(0x4,_0x57082d(ce)),ie(0x5,_0x57082d(Ft)),ie(0x6,_0x3ce5fa),ie(0x7,_0xf0f4c1),ie(0x8,_0x2c218a)],Ot);var Ar=Object[_0x23cbae(0xe2)],Lr=Object[_0x23cbae(0x36a)],$r=(_0x203e74,_0x580aa0,_0x462c1b,_0x2c3ed3)=>{const _0x7c9bf=_0x23cbae;for(var _0x5a39f3=_0x2c3ed3>0x1?void 0x0:_0x2c3ed3?Lr(_0x580aa0,_0x462c1b):_0x580aa0,_0x1024e2=_0x203e74[_0x7c9bf(0xed)]-0x1,_0x1bb13d;_0x1024e2>=0x0;_0x1024e2--)(_0x1bb13d=_0x203e74[_0x1024e2])&&(_0x5a39f3=(_0x2c3ed3?_0x1bb13d(_0x580aa0,_0x462c1b,_0x5a39f3):_0x1bb13d(_0x5a39f3))||_0x5a39f3);return _0x2c3ed3&&_0x5a39f3&&Ar(_0x580aa0,_0x462c1b,_0x5a39f3),_0x5a39f3;},me=(_0xe324c1,_0x5be39e)=>(_0x27faed,_0x54613e)=>_0x5be39e(_0x27faed,_0x54613e,_0xe324c1);const jr=0x12c,xr=0x64,Hr=()=>{let _0x507002=[],_0x8ba849=!0x1;return _0xfc2f66=>{const _0x813be4=_0x3f49;_0x507002[_0x813be4(0x12e)](_0xfc2f66),_0x8ba849||(_0x8ba849=!0x0,setTimeout(()=>{const _0x512bc9=_0x813be4;_0x507002[_0x512bc9(0x273)](_0x442e4a=>_0x442e4a()),_0x507002=[],_0x8ba849=!0x1;}));};};let Dt=class extends _0x3a262a{constructor(_0x1a3656,_0x1d7ce8,_0x1dec7d,_0x7db7b2,_0xa0f987,_0x1cd372,_0x595cfd,_0x1130a2){const _0x1a0d44=_0x23cbae;super(),l(this,_0x1a0d44(0x133),!0x1),l(this,_0x1a0d44(0x383),!0x1),l(this,_0x1a0d44(0x336),new _0x169308(new Map())),l(this,_0x1a0d44(0x14d),this[_0x1a0d44(0x336)][_0x1a0d44(0x341)]()),l(this,'_roomMembers$',new _0x169308([])),l(this,_0x1a0d44(0x19b),this[_0x1a0d44(0x2f7)]['pipe'](_0x43ba67(jr))),l(this,'_updateLocalCursor',_0x23acc5((_0x4386e2,_0x20d45e)=>{const _0x72fc6b=_0x1a0d44,_0x24729f={'eventID':_0x44cf74[_0x72fc6b(0x1d4)],'data':{'unitID':this['unitID'],'memberID':this[_0x72fc6b(0x14a)][_0x72fc6b(0x375)](),'selection':_0x10f780(_0x4386e2,_0x20d45e[_0x72fc6b(0xf4)])}};this[_0x72fc6b(0x14a)][_0x72fc6b(0x113)](_0x24729f,this[_0x72fc6b(0x1a5)]);},xr)),(this['unitID']=_0x1a3656,this[_0x1a0d44(0x14a)]=_0x1d7ce8,this[_0x1a0d44(0x171)]=_0x1dec7d,this['_colorAssignService']=_0x7db7b2,this[_0x1a0d44(0x2f4)]=_0xa0f987,this['_univerInstanceService']=_0x1cd372,this[_0x1a0d44(0x393)]=_0x595cfd,this['_refRangeService']=_0x1130a2);}get['cursorInfo'](){const _0x144e82=_0x23cbae;return this[_0x144e82(0x336)]['getValue']();}get[_0x23cbae(0x31b)](){const _0x27708e=_0x23cbae;return this['_roomMembers$'][_0x27708e(0x1d9)]();}['dispose'](){const _0x439796=_0x23cbae;super['dispose'](),this[_0x439796(0x336)][_0x439796(0x131)](new Map()),this[_0x439796(0x336)][_0x439796(0x173)](),this['_roomMembers$'][_0x439796(0x131)]([]),this[_0x439796(0x2f7)][_0x439796(0x173)]();}['init'](){const _0x40565f=_0x23cbae;this[_0x40565f(0x383)]||(this[_0x40565f(0x383)]=!0x0,this['_session']['sessionStatus$'][_0x40565f(0x18c)](_0x5b993c(this['dispose$']))[_0x40565f(0x334)](_0x24876d=>{const _0x26298e=_0x40565f;_0x24876d===Y[_0x26298e(0x12d)]?this[_0x26298e(0x26a)]():this[_0x26298e(0xfc)]();}),this[_0x40565f(0x14a)][_0x40565f(0x29c)][_0x40565f(0x18c)](_0x5b993c(this['dispose$']))[_0x40565f(0x334)](_0x842170=>{const _0x56de6b=_0x40565f,_0x54726b=_0x842170[_0x56de6b(0x3f0)];_0x54726b===_0x44cf74['UPDATE_CURSOR']&&this[_0x56de6b(0x1c2)](_0x842170),_0x54726b===_0x44cf74[_0x56de6b(0x25a)]&&this[_0x56de6b(0x380)](_0x842170);}),this['_onRefRangeChange'](),this[_0x40565f(0x165)](this[_0x40565f(0x393)]['onCommandExecuted'](_0x3492b1=>{const _0x78e2db=_0x40565f;if(this[_0x78e2db(0x133)]&&_0x3492b1['id']===_0x58be78['id']&&_0x3492b1[_0x78e2db(0x1e4)][_0x78e2db(0x37e)]===this[_0x78e2db(0x1a5)]){const _0x4887df=_0x3492b1[_0x78e2db(0x1e4)];this[_0x78e2db(0x344)](_0x4887df[_0x78e2db(0x1ee)],_0x4887df[_0x78e2db(0x376)][0x0]);}})));}[_0x23cbae(0x1c2)](_0x5d08b4){const _0x54fa70=_0x23cbae;var _0x118398,_0x4301e3;const {memberID:_0x2336d1,selection:_0x358cce}=_0x5d08b4[_0x54fa70(0x32d)],{sheetName:_0x1f8889,range:_0xfc0943}=_0x177623(_0x358cce),_0x48cabb={'name':(_0x4301e3=(_0x118398=this[_0x54fa70(0x2f4)][_0x54fa70(0x3a0)](this[_0x54fa70(0x1a5)],_0x2336d1))==null?void 0x0:_0x118398[_0x54fa70(0x1a2)])!=null?_0x4301e3:_0x54fa70(0x3a7),'range':this[_0x54fa70(0x193)](_0x1f8889,_0xfc0943),'sheetID':_0x1f8889,'color':this[_0x54fa70(0x2ed)]['assignAColorForMemberID'](_0x2336d1),'selection':_0x358cce},_0x57e3fe=this[_0x54fa70(0x40e)];_0x57e3fe[_0x54fa70(0x111)](_0x2336d1,_0x48cabb),this[_0x54fa70(0x336)][_0x54fa70(0x131)](_0x57e3fe);}[_0x23cbae(0x380)](_0x7b9cc2){const _0x45ea1b=_0x23cbae,{memberID:_0x129708}=_0x7b9cc2[_0x45ea1b(0x32d)],_0x2804d9=this[_0x45ea1b(0x40e)];_0x2804d9[_0x45ea1b(0x1a8)](_0x129708),this[_0x45ea1b(0x336)]['next'](_0x2804d9);}['_getMergeRange'](_0x329fd4,_0x55e582){const _0xd7a9e=_0x23cbae;var _0x1de054,_0x2ffff1;const _0x322ae2=(_0x2ffff1=(_0x1de054=this[_0xd7a9e(0x2ce)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x1de054[_0xd7a9e(0x163)](_0x329fd4))==null?void 0x0:_0x2ffff1[_0xd7a9e(0x1f7)]();return(_0x322ae2==null?void 0x0:_0x322ae2[_0xd7a9e(0x265)](_0x2eb159=>_0x26d787[_0xd7a9e(0x356)](_0x2eb159,_0x55e582)))||_0x55e582;}[_0x23cbae(0x41b)](){const _0x477f0a=_0x23cbae,_0x500249=new _0x1e2532(),_0x567c6b=Hr(),_0x53fb71=()=>{_0x500249['dispose']();const _0x51df2f=(_0x3260f3,_0x50baee,_0xa02ace,_0x54dc18)=>{const _0x32422e=_0x3f49;let _0xef1826=[];switch(_0x3260f3['id']){case _0x100ffd[_0x32422e(0x401)]:{_0xef1826=_0x37de89(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x157)]:{_0xef1826=_0xce5f80(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x13c)]:{_0xef1826=_0x525801(_0x3260f3,_0x54dc18);break;}case _0x100ffd['InsertRangeMoveDownCommandId']:{_0xef1826=_0x378def(_0x3260f3,_0x54dc18);break;}case _0x100ffd['InsertRangeMoveRightCommandId']:{_0xef1826=_0x197b21(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x44a)]:{_0xef1826=_0x24f654(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x274)]:{_0xef1826=_0x4574e3(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x3db)]:{_0xef1826=_0x33a15e(_0x3260f3,_0x54dc18);break;}case _0x100ffd[_0x32422e(0x231)]:{_0xef1826=_0x575e9e(_0x3260f3,_0x54dc18);break;}}const _0x510a88=_0x368451(_0xef1826,_0x54dc18),_0x290b71=this[_0x32422e(0x40e)]['get'](_0x50baee);if(_0x290b71&&_0x510a88){const _0x1b384e={..._0x290b71,'range':_0x510a88};this['cursorInfo'][_0x32422e(0x111)](_0x50baee,_0x1b384e),_0x567c6b(()=>{const _0x2400ec=_0x32422e,_0x1d2fbb=this[_0x2400ec(0x201)]['registerRefRange'](_0x510a88,_0x24b7ea=>(_0x1d2fbb[_0x2400ec(0x35a)](),_0x51df2f(_0x24b7ea,_0x50baee,_0xa02ace,_0x510a88)));_0x500249[_0x2400ec(0x302)](_0x1d2fbb);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x19d641,_0x23807d)=>{const _0x2110b7=_0x3f49,{range:_0x222637,sheetID:_0x4c1f5b}=_0x19d641,_0x292738=this[_0x2110b7(0x201)]['registerRefRange'](_0x222637,_0x2ecfbb=>(_0x292738['dispose'](),_0x51df2f(_0x2ecfbb,_0x23807d,_0x4c1f5b,_0x222637)));_0x500249[_0x2110b7(0x302)](_0x292738);});};this[_0x477f0a(0x165)](_0xad1b53(this[_0x477f0a(0x336)][_0x477f0a(0x334)](()=>{_0x53fb71();})));}[_0x23cbae(0x26a)](){const _0x35408a=_0x23cbae;var _0x4f5b42,_0x2936b;if(this[_0x35408a(0x133)]=!0x0,((_0x4f5b42=this[_0x35408a(0x2ce)][_0x35408a(0x419)]())==null?void 0x0:_0x4f5b42[_0x35408a(0x183)]())!==this[_0x35408a(0x1a5)])return;const _0x258ea4=(_0x2936b=this[_0x35408a(0x171)][_0x35408a(0x3fd)](_0x34b058)[_0x35408a(0x385)]())==null?void 0x0:_0x2936b[0x0],_0xec96c2=this[_0x35408a(0x2ce)][_0x35408a(0x10f)](_0x2eb231[_0x35408a(0x34d)])[_0x35408a(0x3f1)]();_0x258ea4&&_0xec96c2&&this['_updateLocalCursor'](_0xec96c2[_0x35408a(0x1ff)](),_0x258ea4);}['_toggleOffline'](){const _0x2ee6b1=_0x23cbae;this[_0x2ee6b1(0x133)]=!0x1;}};Dt=$r([me(0x2,_0x57082d(_0x5aca14)),me(0x3,_0x57082d(Gt)),me(0x4,_0x57082d(ce)),me(0x5,_0xf0f4c1),me(0x6,_0x2c218a),me(0x7,_0x57082d(_0x178c8d))],Dt);var kr=Object['defineProperty'],Br=Object[_0x23cbae(0x36a)],Vr=(_0xc8fbed,_0x53c3f6,_0x36889f,_0x49de14)=>{const _0x586c77=_0x23cbae;for(var _0x55dd70=_0x49de14>0x1?void 0x0:_0x49de14?Br(_0x53c3f6,_0x36889f):_0x53c3f6,_0x5f20b6=_0xc8fbed[_0x586c77(0xed)]-0x1,_0x484d66;_0x5f20b6>=0x0;_0x5f20b6--)(_0x484d66=_0xc8fbed[_0x5f20b6])&&(_0x55dd70=(_0x49de14?_0x484d66(_0x53c3f6,_0x36889f,_0x55dd70):_0x484d66(_0x55dd70))||_0x55dd70);return _0x49de14&&_0x55dd70&&kr(_0x53c3f6,_0x36889f,_0x55dd70),_0x55dd70;},ut=(_0x59696c,_0x43d40b)=>(_0x5c496e,_0x24444d)=>_0x43d40b(_0x5c496e,_0x24444d,_0x59696c);let ve=class extends _0x3a262a{constructor(_0x11088d,_0x56919d,_0x428332){const _0x16ba9a=_0x23cbae;super(),l(this,_0x16ba9a(0x229),new Map()),l(this,_0x16ba9a(0x40f),new _0x4061c1()),(this[_0x16ba9a(0x2ce)]=_0x11088d,this[_0x16ba9a(0x171)]=_0x56919d,this[_0x16ba9a(0x43e)]=_0x428332,this[_0x16ba9a(0x383)]());}[_0x23cbae(0x35a)](){const _0x543b3b=_0x23cbae;super[_0x543b3b(0x35a)](),this[_0x543b3b(0x40f)][_0x543b3b(0x173)](),this[_0x543b3b(0x229)]['forEach'](_0x4b46ac=>_0x4b46ac[_0x543b3b(0x35a)]());}['getCollabCursors$'](_0x24bb78){const _0x2755ea=_0x23cbae;return this[_0x2755ea(0x229)]['has'](_0x24bb78)?this[_0x2755ea(0x229)][_0x2755ea(0x3fd)](_0x24bb78)[_0x2755ea(0x14d)]:this[_0x2755ea(0x40f)]['pipe'](_0x2258ad(_0x54d006=>_0x54d006[_0x2755ea(0x1a5)]===_0x24bb78),_0x338777(_0x51cd3b=>_0x51cd3b['cursorInfo$']));}['_init'](){const _0x387c70=_0x23cbae;this[_0x387c70(0x2ce)][_0x387c70(0x1a1)](_0x2eb231['UNIVER_SHEET'])[_0x387c70(0x18c)](_0x5b993c(this[_0x387c70(0x16f)]))[_0x387c70(0x334)](async _0x2f21b4=>{const _0x16b4cb=_0x387c70,_0x955a6d=_0x2f21b4['getUnitId'](),_0x466db4=await this['_startSheetCollabCursor'](_0x955a6d);this[_0x16b4cb(0x40f)][_0x16b4cb(0x131)](_0x466db4),this[_0x16b4cb(0x229)][_0x16b4cb(0x111)](_0x955a6d,_0x466db4);}),this['_univerInstanceService'][_0x387c70(0x1a1)](_0x2eb231['UNIVER_DOC'])['pipe'](_0x5b993c(this['dispose$']))[_0x387c70(0x18c)](_0x2258ad(_0x167a12=>!_0x167a12[_0x387c70(0x183)]()[_0x387c70(0x36c)]('__')))[_0x387c70(0x334)](async _0x43f7e7=>{const _0x5db6ec=_0x387c70,_0x4b742a=_0x43f7e7[_0x5db6ec(0x183)](),_0x588723=await this['_startDocCollabCursor'](_0x4b742a);this[_0x5db6ec(0x40f)]['next'](_0x588723),this[_0x5db6ec(0x229)][_0x5db6ec(0x111)](_0x4b742a,_0x588723);}),_0x395f71(this[_0x387c70(0x2ce)]['getTypeOfUnitDisposed$'](_0x2eb231[_0x387c70(0x12f)]),this[_0x387c70(0x2ce)][_0x387c70(0x3fe)](_0x2eb231[_0x387c70(0x34d)]))[_0x387c70(0x18c)](_0x5b993c(this['dispose$']))['subscribe'](_0x545639=>{const _0x9e2b88=_0x387c70,_0x22db3b=_0x545639[_0x9e2b88(0x183)](),_0x10b94d=this[_0x9e2b88(0x229)][_0x9e2b88(0x3fd)](_0x22db3b);_0x10b94d&&(_0x10b94d['dispose'](),this[_0x9e2b88(0x229)][_0x9e2b88(0x1a8)](_0x22db3b));});}async[_0x23cbae(0x262)](_0x5af7a7){const _0x4c4015=_0x23cbae,_0x498f0b=await this[_0x4c4015(0x43e)][_0x4c4015(0x236)](_0x5af7a7),_0x2aff1c=this[_0x4c4015(0x171)]['createInstance'](Dt,_0x5af7a7,_0x498f0b);return _0x2aff1c[_0x4c4015(0x410)](),_0x2aff1c;}async['_startDocCollabCursor'](_0x3cec3e){const _0x5e4bec=_0x23cbae,_0x83111=await this[_0x5e4bec(0x43e)][_0x5e4bec(0x236)](_0x3cec3e),_0xd633f2=this[_0x5e4bec(0x171)][_0x5e4bec(0x351)](Ot,_0x3cec3e,_0x83111);return _0xd633f2['init'](),_0xd633f2;}};ve=Vr([ut(0x0,_0xf0f4c1),ut(0x1,_0x57082d(_0x5aca14)),ut(0x2,_0x57082d(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x44c33f,_0x2f42c3){const _0x549e9c=_0x23cbae;let {radius:_0x2bb04a,width:_0x58d821,height:_0x2f237c}=_0x2f42c3;_0x2bb04a=_0x2bb04a!=null?_0x2bb04a:0x0,_0x58d821=_0x58d821!=null?_0x58d821:0x1e,_0x2f237c=_0x2f237c!=null?_0x2f237c:0x1e;let _0x360d5e=0x0,_0x5de87d=0x0,_0x3009e4=0x0;_0x360d5e=_0x5de87d=_0x3009e4=Math[_0x549e9c(0x3e3)](_0x2bb04a,_0x58d821/0x2,_0x2f237c/0x2),_0x44c33f[_0x549e9c(0x252)](),_0x44c33f['moveTo'](_0x360d5e,0x0),_0x44c33f[_0x549e9c(0x306)](_0x58d821-_0x5de87d,0x0),_0x44c33f[_0x549e9c(0x2bd)](_0x58d821-_0x5de87d,_0x5de87d,_0x5de87d,Math['PI']*0x3/0x2,0x0,!0x1),_0x44c33f[_0x549e9c(0x306)](_0x58d821,_0x2f237c-_0x3009e4),_0x44c33f['arc'](_0x58d821-_0x3009e4,_0x2f237c-_0x3009e4,_0x3009e4,0x0,Math['PI']/0x2,!0x1),_0x44c33f['lineTo'](0x0,_0x2f237c),_0x44c33f['lineTo'](0x0,_0x360d5e),_0x44c33f['arc'](_0x360d5e,_0x360d5e,_0x360d5e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x44c33f[_0x549e9c(0xe7)](),_0x2f42c3['fill']&&(_0x44c33f[_0x549e9c(0x1dd)](),_0x44c33f[_0x549e9c(0x32b)]=_0x2f42c3[_0x549e9c(0x230)],_0x2f42c3[_0x549e9c(0x349)]===_0x549e9c(0x2ea)?_0x44c33f[_0x549e9c(0x230)](_0x549e9c(0x2ea)):_0x44c33f[_0x549e9c(0x230)](),_0x44c33f[_0x549e9c(0x222)]());}class st extends _0xb8fdb8{constructor(_0x5a3c09,_0x2025e6){const _0x5c9c28=_0x23cbae;super(_0x5a3c09,_0x2025e6),l(this,'color'),l(this,_0x5c9c28(0x2af)),(this[_0x5c9c28(0x3be)]=_0x2025e6==null?void 0x0:_0x2025e6[_0x5c9c28(0x3be)],this['text']=_0x2025e6==null?void 0x0:_0x2025e6[_0x5c9c28(0x2af)]);}static[_0x23cbae(0x3ac)](_0x5a31b8,_0x6e39a8){const _0x276581=_0x23cbae,{text:_0xfec1c1,color:_0x5eaa77}=_0x6e39a8;_0x5a31b8[_0x276581(0x1dd)](),_0x5a31b8[_0x276581(0x2ca)]=_0x276581(0xe5);const _0x4a53f1=_0x5a31b8[_0x276581(0x36e)](_0xfec1c1)[_0x276581(0x1da)],_0xd98f4c=Math[_0x276581(0x3e3)](_0x4a53f1+0x2*dt,ms);Wr(_0x5a31b8,{'height':$e,'radius':0x4,'width':_0xd98f4c,'fill':_0x5eaa77,'evented':!0x1}),_0x5a31b8[_0x276581(0x32b)]=_0x276581(0x34b);const _0x49c5de=dt,_0x1d4270=$e-Fr,_0x16a487=ms-0x2*dt;if(_0x4a53f1>_0x16a487){let _0x5c244e='',_0x2753d9=0x0;for(const _0x259c16 of _0xfec1c1){const _0x595af7=_0x5a31b8['measureText'](_0x259c16)['width'];if(_0x2753d9+_0x595af7<=_0x16a487-_0x5a31b8[_0x276581(0x36e)](_0x276581(0x289))[_0x276581(0x1da)])_0x5c244e+=_0x259c16,_0x2753d9+=_0x595af7;else{_0x5c244e+=_0x276581(0x289);break;}}_0x5a31b8['fillText'](_0x5c244e,_0x49c5de,_0x1d4270);}else _0x5a31b8['fillText'](_0xfec1c1,_0x49c5de,_0x1d4270);_0x5a31b8[_0x276581(0x222)]();}['_draw'](_0x501fde){const _0x1ddb9c=_0x23cbae;st[_0x1ddb9c(0x3ac)](_0x501fde,this);}}const ft=_0x23cbae(0x174),Gr=_0x23cbae(0x1e3),Yr=_0x23cbae(0x101),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr='rgba(255,\x20255,\x20255,\x200.01)';class gs{constructor(_0x1fd897,_0x2e83e5,_0x449103,_0x16f554){const _0x5864d0=_0x23cbae;l(this,_0x5864d0(0xdc),[]),l(this,_0x5864d0(0x11e),null),l(this,_0x5864d0(0x142),null),l(this,_0x5864d0(0x195),null),l(this,_0x5864d0(0x44f),null),l(this,_0x5864d0(0x398),null),(this[_0x5864d0(0x140)]=_0x1fd897,this[_0x5864d0(0x1f1)]=_0x2e83e5,this[_0x5864d0(0x3dc)]=_0x449103,this['_document']=_0x16f554,this[_0x5864d0(0x440)]());}set['_hover'](_0x1c1c95){const _0x46fbee=_0x23cbae;_0x1c1c95?(this[_0x46fbee(0x195)]&&this[_0x46fbee(0x195)][_0x46fbee(0xf6)](),this['_textBubble']&&this['_textBubble'][_0x46fbee(0x2bb)]()):(this[_0x46fbee(0x195)]&&this[_0x46fbee(0x195)][_0x46fbee(0x2bb)](),this['_textBubble']&&this[_0x46fbee(0x142)][_0x46fbee(0xf6)]());}['dispose'](){const _0x6012a3=_0x23cbae;for(const _0x1ce13b of this['_shapes'])_0x1ce13b[_0x6012a3(0x35a)]();this[_0x6012a3(0x142)]&&this['_textBubble']['dispose'](),this[_0x6012a3(0x195)]&&this[_0x6012a3(0x195)][_0x6012a3(0x35a)](),this[_0x6012a3(0x11e)]&&this[_0x6012a3(0x11e)][_0x6012a3(0x35a)](),this[_0x6012a3(0x398)]&&this['_eventUnsubscribe']();}[_0x23cbae(0x440)](){const _0x364607=_0x23cbae;var _0x1ab569;const {_docSkeleton:_0x194686,_document:_0x300ed9}=this,{color:_0x447893,name:_0x34ea3c,ranges:_0x574ba6}=this[_0x364607(0x140)],_0xed02c9=_0x300ed9[_0x364607(0x332)](),{docsLeft:_0x4ac49a,docsTop:_0x49efc0}=_0xed02c9,_0x25ce47=new _0x57bfe0(_0xed02c9,_0x194686);for(const {startOffset:_0x507832,endOffset:_0x2de9ea,collapsed:_0x2109c1,isActive:_0x545432}of _0x574ba6){const _0x516566=_0x194686[_0x364607(0x123)](_0x507832),_0x2b6a2c=_0x194686[_0x364607(0x123)](_0x2de9ea);if(_0x545432){const {contentBoxPointGroup:_0x394f47}=_0x25ce47['getRangePointData'](_0x2b6a2c,_0x2b6a2c);if(_0x394f47[_0x364607(0xed)]===0x0)continue;this[_0x364607(0x3e0)](_0x447893,_0x394f47,_0x4ac49a,_0x49efc0,_0x34ea3c),this['_eventUnsubscribe']=this[_0x364607(0xe4)]();}if(!_0x2109c1&&_0x516566&&_0x2b6a2c){if(_0x153d05(_0x516566,_0x2b6a2c)){const _0x58b8f8=new _0x37669e(_0xed02c9,_0x194686),{pointGroup:_0x3b2e59}=(_0x1ab569=_0x58b8f8[_0x364607(0x2cf)](_0x516566,_0x2b6a2c))!=null?_0x1ab569:{};if(_0x3b2e59==null||_0x3b2e59[_0x364607(0xed)]===0x0)continue;this[_0x364607(0x213)](_0x447893,_0x3b2e59,_0x4ac49a,_0x49efc0);}else{const {contentBoxPointGroup:_0x39fdc8}=_0x25ce47[_0x364607(0x2cf)](_0x516566,_0x2b6a2c);if(_0x39fdc8[_0x364607(0xed)]===0x0)continue;this['_drawTextRange'](_0x447893,_0x39fdc8,_0x4ac49a,_0x49efc0);}}}}['_drawAnchor'](_0x12bc86,_0x4863a6,_0x3b147a,_0xa6b3be,_0x22d293){const _0x54687a=_0x23cbae,_0x58168a=this['_getAnchorBounding'](_0x4863a6),{left:_0x5e050c,top:_0xf8e98,height:_0x5e2df1}=_0x58168a,_0x4e9294=this[_0x54687a(0x13d)](),_0x4e1e0c=Xr/_0x4e9294,_0x576fe2=new _0x8fe6a0(ft+_0x2d9f70['generateRandomId'](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be,'height':_0x5e2df1,'width':Kr,'fill':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'strokeWidth':_0x4e1e0c,'stroke':qr,'evented':!0x0});this['_anchor']=_0x576fe2,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x576fe2,_0x252f9e);const _0x4c7513=new _0x8fe6a0(ft+_0x2d9f70['generateRandomId'](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be-mt/0x2,'height':mt,'width':mt,'fill':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'strokeWidth':0x0,'stroke':_0x12bc86||_0x5d3027(_0x56bec4[_0x54687a(0x23e)],0x0),'evented':!0x1});this[_0x54687a(0x195)]=_0x4c7513,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x4c7513,_0x252f9e);const _0x480689=new st(ft+_0x2d9f70[_0x54687a(0x259)](we),{'left':_0x5e050c+_0x3b147a-_0x4e1e0c,'top':_0xf8e98+_0xa6b3be-$e,'text':_0x22d293,'color':_0x12bc86});this[_0x54687a(0x142)]=_0x480689,this[_0x54687a(0x1f1)][_0x54687a(0x36d)](_0x480689,_0x252f9e),this[_0x54687a(0x14e)]=!0x1;}['_handleHover'](){const _0x109e9d=_0x23cbae,_0x1150e7=this['_anchor'][_0x109e9d(0x3a6)][_0x109e9d(0x205)](()=>{const _0x294ede=_0x109e9d;this[_0x294ede(0x14e)]=!0x0;}),_0x31e2d3=this[_0x109e9d(0x11e)][_0x109e9d(0x108)][_0x109e9d(0x205)](()=>{const _0x1c5590=_0x109e9d;this[_0x1c5590(0x44f)]&&clearTimeout(this[_0x1c5590(0x44f)]),this[_0x1c5590(0x44f)]=setTimeout(()=>{const _0x230f77=_0x1c5590;this[_0x230f77(0x14e)]=!0x1;},0x7d0);});return()=>{const _0x3b259f=_0x109e9d;_0x1150e7['unsubscribe'](),_0x31e2d3[_0x3b259f(0x221)]();};}[_0x23cbae(0x234)](_0x2f8be0,_0x6e3ff6,_0x496056,_0x1d5157){const _0x4ba605=_0x23cbae,_0x418a59=new _0xff1c14(_0x2f8be0)[_0x4ba605(0x435)](0.2)[_0x4ba605(0x42e)](),_0x38cc5c=new _0xc7b37d(Gr+_0x2d9f70['generateRandomId'](we),{'pointsGroup':_0x6e3ff6,'fill':_0x418a59||_0x5d3027(_0x56bec4[_0x4ba605(0x23e)],0.2),'left':_0x496056,'top':_0x1d5157,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4ba605(0xdc)][_0x4ba605(0x12e)](_0x38cc5c),this[_0x4ba605(0x1f1)]['addObject'](_0x38cc5c,_0x252f9e);}['_drawRectRange'](_0x39d13e,_0x4cf85c,_0x427224,_0xd97103){const _0x4af4ec=_0x23cbae,_0x5ba759=new _0xff1c14(_0x39d13e)[_0x4af4ec(0x435)](0.2)[_0x4af4ec(0x42e)](),_0x6cc4dd=new _0xc7b37d(Yr+_0x2d9f70[_0x4af4ec(0x259)](we),{'pointsGroup':_0x4cf85c,'fill':_0x5ba759||_0x5d3027(_0x56bec4[_0x4af4ec(0x23e)],0.2),'left':_0x427224,'top':_0xd97103,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4af4ec(0xdc)]['push'](_0x6cc4dd),this[_0x4af4ec(0x1f1)][_0x4af4ec(0x36d)](_0x6cc4dd,_0x252f9e);}[_0x23cbae(0x1fd)](_0xa73f34){const _0x18e175=_0xa73f34[0x0],_0x4a1c24=_0x18e175[0x0],_0x43dacc=_0x18e175[0x2],{x:_0x12ebc6,y:_0x46a246}=_0x4a1c24,{x:_0x1d7f8a,y:_0x276f46}=_0x43dacc;return{'left':_0x12ebc6,'top':_0x46a246,'width':_0x1d7f8a-_0x12ebc6,'height':_0x276f46-_0x46a246};}[_0x23cbae(0x13d)](){const _0xbf5531=_0x23cbae,{scaleX:_0x358c65,scaleY:_0x13c893}=this['_scene'][_0xbf5531(0x2e1)]();return Math[_0xbf5531(0x3d0)](_0x358c65,_0x13c893);}}var Jr=Object['defineProperty'],zr=Object[_0x23cbae(0x36a)],Zr=(_0x25ddeb,_0x581123,_0x593401,_0x1b3d5a)=>{const _0x4c384e=_0x23cbae;for(var _0x5f376f=_0x1b3d5a>0x1?void 0x0:_0x1b3d5a?zr(_0x581123,_0x593401):_0x581123,_0x4c035d=_0x25ddeb[_0x4c384e(0xed)]-0x1,_0x3ed76d;_0x4c035d>=0x0;_0x4c035d--)(_0x3ed76d=_0x25ddeb[_0x4c035d])&&(_0x5f376f=(_0x1b3d5a?_0x3ed76d(_0x581123,_0x593401,_0x5f376f):_0x3ed76d(_0x5f376f))||_0x5f376f);return _0x1b3d5a&&_0x5f376f&&Jr(_0x581123,_0x593401,_0x5f376f),_0x5f376f;},ke=(_0x3a9eb9,_0x2e941e)=>(_0xbb484e,_0x55c0a8)=>_0x2e941e(_0xbb484e,_0x55c0a8,_0x3a9eb9);let wt=class extends _0x3a262a{constructor(_0x496661,_0x3cd0,_0x2c8c85,_0x5c2992,_0x536860){const _0x5cd99e=_0x23cbae;super(),l(this,_0x5cd99e(0x2b9),[]),l(this,_0x5cd99e(0x18e),[]),(this['_context']=_0x496661,this[_0x5cd99e(0x304)]=_0x3cd0,this['_collabCursorController']=_0x2c8c85,this['_commandService']=_0x5c2992,this[_0x5cd99e(0x1b3)]=_0x536860,this['_init']());}[_0x23cbae(0x383)](){const _0x64f77d=_0x23cbae,_0x51dcdb=this[_0x64f77d(0x2f2)]['unitId'],_0x4049c6=this[_0x64f77d(0x304)];this[_0x64f77d(0x165)](_0x380b37([this[_0x64f77d(0x345)][_0x64f77d(0x437)](_0x51dcdb),this[_0x64f77d(0x1b3)][_0x64f77d(0x248)]])['pipe'](_0x57b187(([_0x3622,_0x29e12b])=>({'skeleton':_0x4049c6[_0x64f77d(0x3e2)](),'cursors':[..._0x3622[_0x64f77d(0x2b6)]()][_0x64f77d(0x3c7)](_0x4ae4d8=>({..._0x4ae4d8,'color':_0x29e12b[_0x4ae4d8[_0x64f77d(0x3be)]]}))})))[_0x64f77d(0x334)](_0x3d1ef2=>{const _0x1bd5f9=_0x64f77d;if(this[_0x1bd5f9(0x33e)](),_0x3d1ef2){const {skeleton:_0x6f0557,cursors:_0x3863a6}=_0x3d1ef2;this['_updateCollabCursors'](_0x6f0557,_0x3863a6);}})),this[_0x64f77d(0x19c)](),this[_0x64f77d(0x36b)]();}[_0x23cbae(0x38a)](_0x188c1e,_0x5f3517){const _0x19efed=_0x23cbae,{scene:_0x1a12bf,mainComponent:_0x2daaba}=this[_0x19efed(0x2f2)],_0x30d9e8=_0x5f3517[_0x19efed(0x41d)](_0x56bb17=>new gs(_0x56bb17,_0x1a12bf,_0x188c1e,_0x2daaba));this[_0x19efed(0x2b9)]=_0x30d9e8,this[_0x19efed(0x18e)]=_0x5f3517;}['_refreshCollabCursors'](){const _0x39dfe1=_0x23cbae;this[_0x39dfe1(0x33e)]();const {scene:_0x1a7147,mainComponent:_0x50cc25}=this[_0x39dfe1(0x2f2)],_0xc6e6aa=this['_docSkeletonManagerService'][_0x39dfe1(0x3e2)](),_0x325bef=this['_cursors'][_0x39dfe1(0x41d)](_0x403624=>new gs(_0x403624,_0x1a7147,_0xc6e6aa,_0x50cc25));this[_0x39dfe1(0x2b9)]=_0x325bef;}['_removeCollabCursors'](){const _0x3c997f=_0x23cbae;this['_cursorShapes'][_0x3c997f(0x273)](_0xa764ee=>_0xa764ee[_0x3c997f(0x35a)]()),this[_0x3c997f(0x2b9)]=[];}[_0x23cbae(0x36b)](){const _0x455093=_0x23cbae,_0x18c0c8=[_0x4a3846['id']];this[_0x455093(0x165)](this[_0x455093(0x393)]['onCommandExecuted'](_0x9d47f4=>{const _0x59646a=_0x455093;_0x18c0c8['includes'](_0x9d47f4['id'])&&_0x9d47f4[_0x59646a(0x1e4)][_0x59646a(0x37e)]===this[_0x59646a(0x2f2)][_0x59646a(0x37e)]&&this[_0x59646a(0x373)]();}));}[_0x23cbae(0x19c)](){const _0x540796=_0x23cbae;this[_0x540796(0x165)](_0x4a2855(this[_0x540796(0x2f2)][_0x540796(0x239)][_0x540796(0x127)])['pipe'](_0x4eb371(_0x161173=>_0x161173['type']===_0x106d8d[_0x540796(0xdd)]),_0x437201(0x10))[_0x540796(0x334)](()=>{const _0x42ddb0=_0x540796;this[_0x42ddb0(0x373)]();}));}};wt=Zr([ke(0x1,_0x57082d(_0x152335)),ke(0x2,_0x57082d(ve)),ke(0x3,_0x2c218a),ke(0x4,_0x57082d(_0xdd136e))],wt);const Qr=0x1,eo=1.5;class to extends _0xb8fdb8{constructor(_0x281f3e,_0x59a7b3){const _0x54ecd5=_0x23cbae;super(_0x281f3e,_0x59a7b3),l(this,_0x54ecd5(0x3a5)),l(this,_0x54ecd5(0x3a1),!0x1),l(this,_0x54ecd5(0x3cd)),l(this,_0x54ecd5(0x20c),''),l(this,_0x54ecd5(0x256),'top'),l(this,_0x54ecd5(0x3df)),(_0x59a7b3&&this[_0x54ecd5(0x3af)](_0x59a7b3),this[_0x54ecd5(0x3a6)][_0x54ecd5(0x205)](()=>this[_0x54ecd5(0x3af)]({'hovered':!0x0})),this[_0x54ecd5(0x108)][_0x54ecd5(0x205)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x23cbae(0x3af)](_0x413e67){const _0x100f99=_0x23cbae;var _0x105b6b,_0xd12307,_0x1b5ee6,_0xfa2276,_0x10d662,_0x2e2485;this[_0x100f99(0x3a5)]=(_0x105b6b=_0x413e67[_0x100f99(0x3be)])!=null?_0x105b6b:this[_0x100f99(0x3a5)],this[_0x100f99(0x3a1)]=(_0xd12307=_0x413e67['hovered'])!=null?_0xd12307:this[_0x100f99(0x3a1)],this[_0x100f99(0x3cd)]=(_0x1b5ee6=_0x413e67[_0x100f99(0xf4)])!=null?_0x1b5ee6:this['_range'],this[_0x100f99(0x20c)]=(_0xfa2276=_0x413e67[_0x100f99(0x1a2)])!=null?_0xfa2276:this[_0x100f99(0x20c)],this[_0x100f99(0x256)]=(_0x10d662=_0x413e67[_0x100f99(0x37a)])!=null?_0x10d662:this['_labelPosition'],this['_backgroundColor']=(_0x2e2485=_0x413e67[_0x100f99(0x2b4)])!=null?_0x2e2485:this['_backgroundColor'],this[_0x100f99(0x126)]({'width':_0x413e67['width'],'height':_0x413e67[_0x100f99(0x404)]});}['onMouseMove'](_0x486c9e){const _0x572680=_0x23cbae,{row:_0x3e8030,column:_0x3cff57}=_0x486c9e;if(_0x3e8030>=this['_range']['startRow']&&_0x3e8030<=this[_0x572680(0x3cd)]['endRow']&&_0x3cff57>=this['_range']['startColumn']&&_0x3cff57<=this[_0x572680(0x3cd)]['endColumn']){this[_0x572680(0x3af)]({'hovered':!0x0});return;}this[_0x572680(0x3af)]({'hovered':!0x1});}[_0x23cbae(0x426)](_0x55b189){return!0x1;}['_draw'](_0x1dcd88){const _0x284c20=_0x23cbae;_0x8fe6a0[_0x284c20(0x3ac)](_0x1dcd88,{'width':this[_0x284c20(0x1da)],'height':this['height'],'strokeWidth':eo,'stroke':this[_0x284c20(0x3a5)],'evented':!0x1,'fill':this[_0x284c20(0x3df)]}),this[_0x284c20(0x3a1)]&&(_0x1dcd88[_0x284c20(0x1dd)](),_0x1dcd88['transform'](0x1,0x0,0x0,0x1,this[_0x284c20(0x1da)],this[_0x284c20(0x256)]===_0x284c20(0x2a4)?0x0:-$e),st[_0x284c20(0x3ac)](_0x1dcd88,{'text':this[_0x284c20(0x20c)],'color':this[_0x284c20(0x3a5)]}),_0x1dcd88[_0x284c20(0x222)]());}}var so=Object[_0x23cbae(0xe2)],io=Object[_0x23cbae(0x36a)],no=(_0x305db5,_0x238b3d,_0x420794,_0x4551b6)=>{for(var _0x5b147f=_0x4551b6>0x1?void 0x0:_0x4551b6?io(_0x238b3d,_0x420794):_0x238b3d,_0x411937=_0x305db5['length']-0x1,_0x4d72c1;_0x411937>=0x0;_0x411937--)(_0x4d72c1=_0x305db5[_0x411937])&&(_0x5b147f=(_0x4551b6?_0x4d72c1(_0x238b3d,_0x420794,_0x5b147f):_0x4d72c1(_0x5b147f))||_0x5b147f);return _0x4551b6&&_0x5b147f&&so(_0x238b3d,_0x420794,_0x5b147f),_0x5b147f;},gt=(_0x49b30c,_0x1c0c00)=>(_0xe3cb75,_0x22430a)=>_0x1c0c00(_0xe3cb75,_0x22430a,_0x49b30c);const ro=0x1389;let Pt=class extends _0x3a262a{constructor(_0x4d4adf,_0x28e43e,_0x3b4756,_0xa5328e){const _0x40a10f=_0x23cbae;super(),l(this,_0x40a10f(0x18e),new Set()),l(this,'_lastPointer',null),(this['_context']=_0x4d4adf,this[_0x40a10f(0x10b)]=_0x28e43e,this['_collabCursorController']=_0x3b4756,this['_themeService']=_0xa5328e,this[_0x40a10f(0x383)]());}[_0x23cbae(0x383)](){const _0xa605c2=_0x23cbae;this['_sheetSkeletonManagerService'][_0xa605c2(0x1c4)]['pipe'](_0x5198ca(this[_0xa605c2(0x16f)]),_0x38d5ac(_0x18e68b=>{const _0x595ab9=_0xa605c2;if(_0x18e68b){const _0x11e4b4=_0x18e68b['sheetId'];return _0x380b37(this['_collabCursorController']['getCollabCursors$'](this[_0x595ab9(0x2f2)][_0x595ab9(0x37e)]),this[_0x595ab9(0x1b3)]['currentTheme$'])[_0x595ab9(0x18c)](_0x57b187(([_0x435a91,_0x30aad6])=>{const _0x3d465f=new Map();return _0x435a91['forEach']((_0x5bbaed,_0x4ed242)=>{const _0x94e98b=_0x3f49;if(_0x5bbaed[_0x94e98b(0x3b8)]===_0x11e4b4){const _0x32fc1b={..._0x5bbaed};_0x32fc1b['color']=_0x30aad6[_0x5bbaed['color']],_0x3d465f[_0x94e98b(0x111)](_0x4ed242,_0x32fc1b);}}),{'skeleton':_0x18e68b,'cursors':_0x3d465f};}));}return _0x4a5add({'skeleton':null,'cursors':new Map()});}))[_0xa605c2(0x334)](({skeleton:_0x572f67,cursors:_0x18d75c})=>{const _0x590d3b=_0xa605c2;this[_0x590d3b(0x33e)](),_0x572f67&&this['_updateCollabCursors'](_0x572f67,_0x18d75c);}),this[_0xa605c2(0x10b)][_0xa605c2(0x1c4)][_0xa605c2(0x334)](_0x25e221=>{const _0x5a2a1f=_0xa605c2;if(_0x25e221==null)return;const {skeleton:_0x3b924a}=_0x25e221,{scene:_0x208b67}=this['_context'];_0x208b67[_0x5a2a1f(0x2f8)][_0x5a2a1f(0x205)](_0x23acc5(_0x16e1ec=>{const _0x3b87e7=_0x5a2a1f;var _0x386d07,_0xaf2787;const {offsetX:_0xc853f7,offsetY:_0x2f315f}=_0x16e1ec,{x:_0x186472,y:_0x566bda}=_0x208b67[_0x3b87e7(0x3f3)](_0x36e9ae[_0x3b87e7(0x232)]([_0xc853f7,_0x2f315f])),{scaleX:_0x4132a2,scaleY:_0x423b6d}=_0x208b67[_0x3b87e7(0x2e1)](),_0x3e48e6=_0x208b67[_0x3b87e7(0xd8)](_0x407db2[_0x3b87e7(0x255)]),_0x33cb79=_0x208b67[_0x3b87e7(0xf7)](_0x36e9ae['FromArray']([_0x186472,_0x566bda]),_0x3e48e6),_0x5b42da=_0x3b924a['getCellPositionByOffset'](_0xc853f7,_0x2f315f,_0x4132a2,_0x423b6d,_0x33cb79);((_0x386d07=this[_0x3b87e7(0x41c)])==null?void 0x0:_0x386d07[_0x3b87e7(0x21b)])===_0x5b42da[_0x3b87e7(0x21b)]&&((_0xaf2787=this[_0x3b87e7(0x41c)])==null?void 0x0:_0xaf2787[_0x3b87e7(0x40a)])===_0x5b42da[_0x3b87e7(0x40a)]||this[_0x3b87e7(0x18e)][_0x3b87e7(0x273)](_0x51720f=>{const _0x1068f1=_0x3b87e7;_0x51720f[_0x1068f1(0x17b)](_0x5b42da);});},0x64));});}['_updateCollabCursors'](_0x2f2cbc,_0x461d3f){const _0x22b928=_0x23cbae;var _0x482448;const _0x13e912=(_0x482448=this[_0x22b928(0x10b)][_0x22b928(0x189)]())==null?void 0x0:_0x482448[_0x22b928(0x308)];if(!_0x13e912)return;const _0x34b1cf=this[_0x22b928(0x1c0)]();if(!_0x34b1cf)return;this[_0x22b928(0x18e)][_0x22b928(0x273)](_0x35ce59=>{const _0x54fd7e=_0x22b928;_0x35ce59[_0x54fd7e(0x287)]();});const {scene:_0x197559}=_0x34b1cf,_0x4282a8=oo(Array['from'](_0x461d3f[_0x22b928(0x2b6)]()))[_0x22b928(0x41d)](_0x410884=>{const _0x566fea=_0x22b928,{color:_0x54b8f9,range:_0x9936a,name:_0x1a911b,selection:_0x326da0,sheetID:_0x4be7a3}=_0x410884,{startColumn:_0x191e76,startRow:_0x28a2c2,endColumn:_0x1b8f3a,endRow:_0x4a0615}=_0x9936a,_0x30a00b=_0x198821(_0x28a2c2,_0x191e76,_0x197559,_0x13e912),_0x466e50=_0x198821(_0x4a0615,_0x1b8f3a,_0x197559,_0x13e912),{columnHeaderHeightAndMarginTop:_0x30f181}=_0x13e912,{startX:_0x54aea1,startY:_0x2b452b}=_0x30a00b,{endX:_0x24818e,endY:_0x5419ed}=_0x466e50,_0x3b6642=_0x24818e-_0x54aea1,_0x426169=_0x5419ed-_0x2b452b,_0x1a399b={'labelPosition':_0x2b452b-_0x30f181>=$e?_0x566fea(0x21c):_0x566fea(0x2a4),'sheetID':_0x4be7a3,'range':_0x9936a,'color':_0x54b8f9,'name':_0x1a911b,'selection':_0x326da0,'left':_0x54aea1,'top':_0x2b452b,'width':_0x3b6642,'height':_0x426169,'evented':!0x1,'zIndex':ro};return new to(_0x1a911b,_0x1a399b);});_0x197559[_0x22b928(0x31e)](_0x4282a8,Qr),this[_0x22b928(0x18e)]=new Set(_0x4282a8);}['_removeCollabCursors'](){const _0x5ad92d=_0x23cbae;var _0x32e05d;(_0x32e05d=this[_0x5ad92d(0x18e)])==null||_0x32e05d[_0x5ad92d(0x273)](_0x4cd050=>_0x4cd050[_0x5ad92d(0x35a)]());}[_0x23cbae(0x1c0)](){const _0x264def=_0x23cbae;return _0x4d0c7e(this[_0x264def(0x2f2)][_0x264def(0x21d)],this[_0x264def(0x2f2)]);}};Pt=no([gt(0x1,_0x57082d(_0x5d067c)),gt(0x2,_0x57082d(ve)),gt(0x3,_0x57082d(_0xdd136e))],Pt);function oo(_0x5403b6){const _0x568207=_0x23cbae,_0x334e55=new Map();return _0x5403b6[_0x568207(0x273)](_0x459604=>{const _0x173857=_0x568207;if(_0x334e55[_0x173857(0x15b)](_0x459604[_0x173857(0x363)])){const _0x229a20=_0x334e55[_0x173857(0x3fd)](_0x459604[_0x173857(0x363)]);_0x229a20['name']+=',\x20'+_0x459604['name'];}else _0x334e55['set'](_0x459604[_0x173857(0x363)],_0x459604);}),Array['from'](_0x334e55['values']());}var N=function(){const _0x2de1db=_0x23cbae;return N=Object[_0x2de1db(0x143)]||function(_0x557082){const _0x1955ec=_0x2de1db;for(var _0x595a0b,_0x3b66a6=0x1,_0x55bd58=arguments[_0x1955ec(0xed)];_0x3b66a6<_0x55bd58;_0x3b66a6++){_0x595a0b=arguments[_0x3b66a6];for(var _0xeb3ce6 in _0x595a0b)Object[_0x1955ec(0x18b)]['hasOwnProperty'][_0x1955ec(0x1fc)](_0x595a0b,_0xeb3ce6)&&(_0x557082[_0xeb3ce6]=_0x595a0b[_0xeb3ce6]);}return _0x557082;},N[_0x2de1db(0x434)](this,arguments);},ao=function(_0x3156e7,_0x3dc49d){const _0x20580a=_0x23cbae;var _0x313f9b={};for(var _0x7e08ed in _0x3156e7)Object[_0x20580a(0x18b)][_0x20580a(0x243)]['call'](_0x3156e7,_0x7e08ed)&&_0x3dc49d[_0x20580a(0x148)](_0x7e08ed)<0x0&&(_0x313f9b[_0x7e08ed]=_0x3156e7[_0x7e08ed]);if(_0x3156e7!=null&&typeof Object['getOwnPropertySymbols']==_0x20580a(0x204)){for(var _0x4863a3=0x0,_0x7e08ed=Object[_0x20580a(0x179)](_0x3156e7);_0x4863a3<_0x7e08ed[_0x20580a(0xed)];_0x4863a3++)_0x3dc49d[_0x20580a(0x148)](_0x7e08ed[_0x4863a3])<0x0&&Object[_0x20580a(0x18b)][_0x20580a(0x19f)]['call'](_0x3156e7,_0x7e08ed[_0x4863a3])&&(_0x313f9b[_0x7e08ed[_0x4863a3]]=_0x3156e7[_0x7e08ed[_0x4863a3]]);}return _0x313f9b;},Yt=_0x24db44(function(_0x4d18ff,_0x6a7eb9){const _0x17cb2d=_0x23cbae;var _0x67904=_0x4d18ff[_0x17cb2d(0x130)],_0x1d32ec=_0x4d18ff['id'],_0x5f3cc6=_0x4d18ff[_0x17cb2d(0x138)],_0x4a3182=_0x4d18ff['extend'],_0x36af5c=ao(_0x4d18ff,[_0x17cb2d(0x130),'id','className',_0x17cb2d(0xea)]),_0x50a787=_0x17cb2d(0x3b9)[_0x17cb2d(0x2e8)](_0x1d32ec,'\x20')[_0x17cb2d(0x2e8)](_0x5f3cc6||'')[_0x17cb2d(0x147)](),_0x51a3f9=_0xa945c8('_'[_0x17cb2d(0x2e8)](lo()));return Ws(_0x67904,''[_0x17cb2d(0x2e8)](_0x1d32ec),{'defIds':_0x67904['defIds'],'idSuffix':_0x51a3f9['current']},N({'ref':_0x6a7eb9,'className':_0x50a787},_0x36af5c),_0x4a3182);});function Ws(_0xcc596,_0x2bae61,_0x5c5a9d,_0x313621,_0x14e03e){const _0x2b7277=_0x23cbae;return _0x39bd90(_0xcc596[_0x2b7277(0x117)],N(N({'key':_0x2bae61},co(_0xcc596,_0x5c5a9d,_0x14e03e)),_0x313621),(ho(_0xcc596,_0x5c5a9d)['children']||[])[_0x2b7277(0x41d)](function(_0x883e2d,_0x3744e4){const _0x1c5237=_0x2b7277;return Ws(_0x883e2d,''['concat'](_0x2bae61,'-')[_0x1c5237(0x2e8)](_0xcc596[_0x1c5237(0x117)],'-')[_0x1c5237(0x2e8)](_0x3744e4),_0x5c5a9d,void 0x0,_0x14e03e);}));}function co(_0x112506,_0x360302,_0x2f874c){const _0x19b344=_0x23cbae;var _0x31478b=N({},_0x112506[_0x19b344(0x250)]);_0x2f874c!=null&&_0x2f874c[_0x19b344(0x2d2)]&&_0x31478b['fill']===_0x19b344(0x2d2)&&(_0x31478b[_0x19b344(0x230)]=_0x2f874c[_0x19b344(0x2d2)]);var _0x39f0ba=_0x360302[_0x19b344(0x217)];return!_0x39f0ba||_0x39f0ba[_0x19b344(0xed)]===0x0||(_0x112506[_0x19b344(0x117)]===_0x19b344(0x2e6)&&_0x31478b[_0x19b344(0x35f)]&&(_0x31478b[_0x19b344(0x35f)]=_0x31478b['xlink:href']+_0x360302['idSuffix']),Object[_0x19b344(0x1d5)](_0x31478b)['forEach'](function(_0x1d0231){const _0x37c06c=_0x19b344;var _0x2ee01c=_0x1d0231[0x0],_0x4789d8=_0x1d0231[0x1];typeof _0x4789d8==_0x37c06c(0x227)&&(_0x31478b[_0x2ee01c]=_0x4789d8[_0x37c06c(0x35d)](/url\(#(.*)\)/,_0x37c06c(0x102)['concat'](_0x360302['idSuffix'],')')));})),_0x31478b;}function ho(_0x32d601,_0x32503){const _0x3ff5c2=_0x23cbae;var _0x52fb92,_0x193730=_0x32503[_0x3ff5c2(0x217)];return!_0x193730||_0x193730['length']===0x0?_0x32d601:_0x32d601[_0x3ff5c2(0x117)]===_0x3ff5c2(0x2dc)&&(!((_0x52fb92=_0x32d601[_0x3ff5c2(0x1f3)])===null||_0x52fb92===void 0x0)&&_0x52fb92[_0x3ff5c2(0xed)])?N(N({},_0x32d601),{'children':_0x32d601[_0x3ff5c2(0x1f3)]['map'](function(_0x34245a){const _0x4f906c=_0x3ff5c2;return typeof _0x34245a[_0x4f906c(0x250)]['id']==_0x4f906c(0x227)&&_0x193730&&_0x193730[_0x4f906c(0x148)](_0x34245a[_0x4f906c(0x250)]['id'])>-0x1?N(N({},_0x34245a),{'attrs':N(N({},_0x34245a[_0x4f906c(0x250)]),{'id':_0x34245a[_0x4f906c(0x250)]['id']+_0x32503[_0x4f906c(0x18d)]})}):_0x34245a;})}):_0x32d601;}function lo(){const _0x147352=_0x23cbae;return Math[_0x147352(0x2a5)]()['toString'](0x24)[_0x147352(0x3c9)](0x2,0x8);}Yt[_0x23cbae(0x3bc)]='UniverIcon';var _o={'tag':'svg','attrs':{'fill':_0x23cbae(0x1ed),'viewBox':'0\x200\x2016\x2016','width':_0x23cbae(0x121),'height':_0x23cbae(0x121)},'children':[{'tag':'g','attrs':{'clipPath':_0x23cbae(0x374)},'children':[{'tag':_0x23cbae(0x352),'attrs':{'stroke':_0x23cbae(0x29e),'d':_0x23cbae(0x40b),'strokeLinecap':_0x23cbae(0x3a2),'strokeLinejoin':_0x23cbae(0x3a2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x23cbae(0x40d),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x23cbae(0x1e7),'d':_0x23cbae(0x28f)}}]}]}],'defIds':[_0x23cbae(0x105)]},Gs=_0x24db44(function(_0x40602d,_0x1488d2){const _0x49d756=_0x23cbae;return _0x39bd90(Yt,Object[_0x49d756(0x143)]({},_0x40602d,{'id':_0x49d756(0x317),'ref':_0x1488d2,'icon':_o}));});Gs['displayName']=_0x23cbae(0x1b8);var uo={'tag':'svg','attrs':{'fill':_0x23cbae(0x1ed),'viewBox':_0x23cbae(0x199),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x23cbae(0xeb)},'children':[{'tag':'path','attrs':{'stroke':_0x23cbae(0x29e),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x23cbae(0x3a2),'strokeLinejoin':_0x23cbae(0x3a2),'strokeWidth':1.2}}]},{'tag':_0x23cbae(0x2dc),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x23cbae(0x412)},'children':[{'tag':_0x23cbae(0x352),'attrs':{'fill':_0x23cbae(0x1e7),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x23cbae(0x412)]},Ys=_0x24db44(function(_0x1eb67d,_0xa6415f){const _0x2275ab=_0x23cbae;return _0x39bd90(Yt,Object[_0x2275ab(0x143)]({},_0x1eb67d,{'id':_0x2275ab(0x33c),'ref':_0xa6415f,'icon':uo}));});Ys['displayName']='OnLineSingle';function Ks(_0xf8d10f){const _0x2e4444=_0x23cbae;var _0x309efc,_0x5c5839,_0x1239bc='';if(typeof _0xf8d10f==_0x2e4444(0x227)||typeof _0xf8d10f==_0x2e4444(0x11a))_0x1239bc+=_0xf8d10f;else{if(typeof _0xf8d10f==_0x2e4444(0x307)){if(Array['isArray'](_0xf8d10f)){var _0x1c32b4=_0xf8d10f[_0x2e4444(0xed)];for(_0x309efc=0x0;_0x309efc<_0x1c32b4;_0x309efc++)_0xf8d10f[_0x309efc]&&(_0x5c5839=Ks(_0xf8d10f[_0x309efc]))&&(_0x1239bc&&(_0x1239bc+='\x20'),_0x1239bc+=_0x5c5839);}else{for(_0x5c5839 in _0xf8d10f)_0xf8d10f[_0x5c5839]&&(_0x1239bc&&(_0x1239bc+='\x20'),_0x1239bc+=_0x5c5839);}}}return _0x1239bc;}function fo(){for(var _0x4340a5,_0x942ed2,_0xa2086=0x0,_0x167a54='',_0x4dfd95=arguments['length'];_0xa2086<_0x4dfd95;_0xa2086++)(_0x4340a5=arguments[_0xa2086])&&(_0x942ed2=Ks(_0x4340a5))&&(_0x167a54&&(_0x167a54+='\x20'),_0x167a54+=_0x942ed2);return _0x167a54;}const mo=_0x23cbae(0x3eb),go='univer-online-status-title',So=_0x23cbae(0x17d),po=_0x23cbae(0xe3),vo='univer-offline',Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x1839b2){const _0x1851d0=_0x23cbae;switch(_0x1839b2){case P[_0x1851d0(0x1a9)]:return _0x1851d0(0x318);case P[_0x1851d0(0x444)]:return _0x1851d0(0x331);case P[_0x1851d0(0x120)]:return'collabStatus.fetchMiss';case P['NOT_COLLAB']:return _0x1851d0(0x109);case P['PENDING']:case P['AWAITING']:case P[_0x1851d0(0x27f)]:return _0x1851d0(0x397);case P[_0x1851d0(0x3cb)]:return _0x1851d0(0x425);}}function Eo(_0x279f38){const _0x1f04ed=_0x23cbae,{status$:_0x52d686}=_0x279f38,_0x3cf7df=_0x5a882d(_0x52d686,P[_0x1f04ed(0x26e)]),_0x364806=_0x32c0cd(_0x1ba649),_0x27423f=_0x32c0cd(he),_0xc44719=_0x3cf7df!==P[_0x1f04ed(0x1a9)],_0x200d68=_0x364806['t'](Io(_0x3cf7df)),_0xac6ea2=fo(Pe[_0x1f04ed(0x3c4)],{[Pe[_0x1f04ed(0x240)]]:_0xc44719,[Pe[_0x1f04ed(0x23f)]]:!_0xc44719}),_0x5f0136=_0xc44719?_0x5c5e4e[_0x1f04ed(0xdb)](Ys,null):_0x5c5e4e[_0x1f04ed(0xdb)](Gs,null),_0xca911=_0x40a9ea(()=>{_0xc44719||_0x27423f['reconnect']();},[_0xc44719,_0x27423f]);function _0x23e9bf(){const _0x5bca96=_0x1f04ed;return _0x5c5e4e['createElement'](_0x5bca96(0x3de),{'className':_0xac6ea2,'onClick':_0xca911},_0x5c5e4e[_0x5bca96(0xdb)]('div',{'className':Pe[_0x5bca96(0x272)]},_0x5f0136),_0x5c5e4e['createElement']('div',{'className':Pe[_0x5bca96(0x3a8)]},_0x200d68));}return _0xc44719?_0x23e9bf():_0x5c5e4e[_0x1f04ed(0xdb)](_0x115533,{'title':_0x364806['t'](_0x1f04ed(0x1eb))},_0x23e9bf());}var Co=Object[_0x23cbae(0xe2)],bo=Object[_0x23cbae(0x36a)],To=(_0x430b98,_0x3378c0,_0x2db448,_0x2b3420)=>{const _0x26465a=_0x23cbae;for(var _0x6ecba8=_0x2b3420>0x1?void 0x0:_0x2b3420?bo(_0x3378c0,_0x2db448):_0x3378c0,_0x58abdf=_0x430b98[_0x26465a(0xed)]-0x1,_0x5a0798;_0x58abdf>=0x0;_0x58abdf--)(_0x5a0798=_0x430b98[_0x58abdf])&&(_0x6ecba8=(_0x2b3420?_0x5a0798(_0x3378c0,_0x2db448,_0x6ecba8):_0x5a0798(_0x6ecba8))||_0x6ecba8);return _0x2b3420&&_0x6ecba8&&Co(_0x3378c0,_0x2db448,_0x6ecba8),_0x6ecba8;},Be=(_0x14efb3,_0x241f15)=>(_0x164b75,_0xfa96a5)=>_0x241f15(_0x164b75,_0xfa96a5,_0x14efb3);let Me=class extends _0xbfc176{constructor(_0x21476a,_0x1e0103,_0x3a6a7e,_0x5f7f16){const _0x135f4b=_0x23cbae;super(),l(this,'_status$',new _0x169308(P[_0x135f4b(0x26e)])),(this[_0x135f4b(0x2ce)]=_0x21476a,this['_uiPartsService']=_0x1e0103,this[_0x135f4b(0x171)]=_0x3a6a7e,this['_collaborationController']=_0x5f7f16,this[_0x135f4b(0x2cb)](),this['_initStatusListener']());}[_0x23cbae(0x3d3)](){const _0x8a1476=_0x23cbae;this[_0x8a1476(0x165)](this[_0x8a1476(0x2ce)]['focused$'][_0x8a1476(0x18c)](_0x338777(()=>{const _0x2032d5=_0x8a1476,_0x2f4ceb=this[_0x2032d5(0x2ce)]['getFocusedUnit']();return _0x2f4ceb?this[_0x2032d5(0x340)][_0x2032d5(0x13b)](_0x2f4ceb[_0x2032d5(0x183)]()):_0x4a5add(null);}),_0x338777(_0xb2d081=>_0xb2d081?_0xb2d081[_0x8a1476(0x19d)]:_0x4a5add(P[_0x8a1476(0x26e)])))[_0x8a1476(0x334)](_0xe94256=>{const _0x12b4c6=_0x8a1476;this['_status$'][_0x12b4c6(0x131)](_0xe94256);}));}[_0x23cbae(0x2cb)](){const _0x25aa65=_0x23cbae;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x1cbaaf[_0x25aa65(0x270)],()=>_0x2fb98b(Ro({'status$':this['_status$'][_0x25aa65(0x341)]()}),this['_injector'])));}};Me=To([Be(0x0,_0xf0f4c1),Be(0x1,_0x49417e),Be(0x2,_0x57082d(_0x5aca14)),Be(0x3,_0x57082d(Le))],Me);function Ro(_0x1ceb6b){const {status$:_0x680975}=_0x1ceb6b;return function(){const _0x58f7d7=_0x3f49;return _0x5c5e4e[_0x58f7d7(0xdb)](Eo,{'status$':_0x680975});};}const Xs=_0x1d1962(_0x23cbae(0x23d));var Oo=Object[_0x23cbae(0xe2)],Do=Object[_0x23cbae(0x36a)],wo=(_0x2ac873,_0x4d51ae,_0x5daafe,_0x3ca76d)=>{const _0x45491b=_0x23cbae;for(var _0x30eba2=_0x3ca76d>0x1?void 0x0:_0x3ca76d?Do(_0x4d51ae,_0x5daafe):_0x4d51ae,_0x37e0a1=_0x2ac873[_0x45491b(0xed)]-0x1,_0x4c7b75;_0x37e0a1>=0x0;_0x37e0a1--)(_0x4c7b75=_0x2ac873[_0x37e0a1])&&(_0x30eba2=(_0x3ca76d?_0x4c7b75(_0x4d51ae,_0x5daafe,_0x30eba2):_0x4c7b75(_0x30eba2))||_0x30eba2);return _0x3ca76d&&_0x30eba2&&Oo(_0x4d51ae,_0x5daafe,_0x30eba2),_0x30eba2;},ge=(_0xaf4611,_0x57708e)=>(_0x8f432e,_0x364a9b)=>_0x57708e(_0x8f432e,_0x364a9b,_0xaf4611);let Je=class extends _0x3a262a{constructor(_0x9a57f5,_0x28bb8f,_0x23c28b,_0x24ed77,_0xee5cde,_0x722dc5){const _0x361182=_0x23cbae;super(),this[_0x361182(0x37d)]=_0x9a57f5,this[_0x361182(0x135)]=_0x28bb8f,this[_0x361182(0x393)]=_0x23c28b,this[_0x361182(0x279)]=_0x24ed77,this[_0x361182(0x21f)]=_0xee5cde,_0x722dc5?_0x722dc5==null||_0x722dc5[_0x361182(0x362)]()['then'](()=>this[_0x361182(0x383)]()):(this[_0x361182(0x135)][_0x361182(0x448)](_0x361182(0x33a),_0x361182(0x28b)),this[_0x361182(0x383)]());}async[_0x23cbae(0x383)](){const _0x2cb958=_0x23cbae,_0x398507=this[_0x2cb958(0x37d)]['getParam'](_0x2cb958(0x21d)),_0x16789e=this['_urlService']['getParam'](_0x2cb958(0x2f1));if(!_0x398507||!_0x16789e){this[_0x2cb958(0x135)][_0x2cb958(0x448)](_0x2cb958(0x33a),_0x2cb958(0x357));return;}switch(Number(_0x16789e)){case k[_0x2cb958(0x34d)]:{const _0x4ecfb7=await this['_loadSheet'](_0x398507);this['_setupSubUnitSync'](_0x4ecfb7);break;}case k['UNIVER_DOC']:{await this[_0x2cb958(0xfe)](_0x398507);break;}default:{this[_0x2cb958(0x135)][_0x2cb958(0x43f)](_0x2cb958(0x33a),_0x2cb958(0x197));break;}}}async['_setupSubUnitSync'](_0x5524f5){const _0x1ef5bc=_0x23cbae;await this[_0x1ef5bc(0x2ff)](_0x5524f5),_0x5524f5['activeSheet$']['pipe'](_0x5b993c(this[_0x1ef5bc(0x16f)]))['subscribe'](_0x113a1f=>{const _0x440404=_0x1ef5bc;_0x113a1f&&this[_0x440404(0x146)](_0x113a1f);}),this['_urlService']['urlChange$']['pipe'](_0x5b993c(this[_0x1ef5bc(0x16f)]))[_0x1ef5bc(0x334)](()=>this[_0x1ef5bc(0x2ff)](_0x5524f5));}[_0x23cbae(0x146)](_0x15c9bb,_0x5e0fc5=!0x1){const _0x2cee3d=_0x23cbae,_0x2493dc=this[_0x2cee3d(0x37d)][_0x2cee3d(0x323)]('subunit');_0x15c9bb['getSheetId']()!==_0x2493dc&&this[_0x2cee3d(0x37d)][_0x2cee3d(0x2a6)](_0x2cee3d(0x337),_0x15c9bb[_0x2cee3d(0x1ff)](),_0x5e0fc5);}async[_0x23cbae(0x2ff)](_0x190536){const _0x1d590d=_0x23cbae;var _0x1e59c7;const _0x1f00ab=this[_0x1d590d(0x37d)][_0x1d590d(0x323)](_0x1d590d(0x337));if(!_0x1f00ab||!_0x190536[_0x1d590d(0x163)](_0x1f00ab)){const _0x101aa3=_0x190536[_0x1d590d(0x1cb)]()[0x0],_0x24df7f=_0x190536[_0x1d590d(0x163)](_0x101aa3);if(!_0x24df7f)return;this[_0x1d590d(0x146)](_0x24df7f,!0x0),await this['_commandService'][_0x1d590d(0x1ad)](_0x40f95f['id'],{'unitId':_0x190536['getUnitId'](),'subUnitId':_0x101aa3});return;}((_0x1e59c7=_0x190536[_0x1d590d(0x3f1)]())==null?void 0x0:_0x1e59c7[_0x1d590d(0x1ff)]())!==_0x1f00ab&&await this[_0x1d590d(0x393)][_0x1d590d(0x1ad)](_0x40f95f['id'],{'unitId':_0x190536['getUnitId'](),'subUnitId':_0x1f00ab});}async['_loadSheet'](_0x3dbb62){const _0x541d51=_0x23cbae;let _0xc9d8b7=0x0;const _0x225daa=await this[_0x541d51(0x279)][_0x541d51(0x2b7)](_0x3dbb62);return _0x225daa&&(_0x225daa[_0x541d51(0x34a)]||_0x225daa[_0x541d51(0x2e4)][_0x541d51(0xed)]!==0x0)&&(_0xc9d8b7=_0x225daa[_0x541d51(0x35b)]),_0xc9d8b7===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x541d51(0x1df)),this[_0x541d51(0x21f)][_0x541d51(0x245)](_0x3dbb62,_0xc9d8b7);}async[_0x23cbae(0xfe)](_0x57f783){const _0x600017=_0x23cbae;let _0x5f5d8c=0x0;const _0x2258ce=await this[_0x600017(0x279)]['loadOfflineData'](_0x57f783);return _0x2258ce&&(_0x2258ce[_0x600017(0x34a)]||_0x2258ce['mutations'][_0x600017(0xed)]!==0x0)&&(_0x5f5d8c=_0x2258ce[_0x600017(0x35b)]),_0x5f5d8c===0x0&&this[_0x600017(0x135)][_0x600017(0x448)](_0x600017(0x33a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x600017(0x196)](_0x57f783,_0x5f5d8c);}};Je=wo([ge(0x0,Xs),ge(0x1,_0x2ed9bc),ge(0x2,_0x2c218a),ge(0x3,_0x57082d(w)),ge(0x4,_0x57082d(_0x40068b)),ge(0x5,_0x187eb8(_0x5e7b1c))],Je);var Po=Object[_0x23cbae(0xe2)],yo=Object['getOwnPropertyDescriptor'],Uo=(_0x3671e3,_0x3e06c3,_0x46696f,_0x123956)=>{const _0x4bccea=_0x23cbae;for(var _0xc96e5c=_0x123956>0x1?void 0x0:_0x123956?yo(_0x3e06c3,_0x46696f):_0x3e06c3,_0x24684e=_0x3671e3[_0x4bccea(0xed)]-0x1,_0x54844e;_0x24684e>=0x0;_0x24684e--)(_0x54844e=_0x3671e3[_0x24684e])&&(_0xc96e5c=(_0x123956?_0x54844e(_0x3e06c3,_0x46696f,_0xc96e5c):_0x54844e(_0xc96e5c))||_0xc96e5c);return _0x123956&&_0xc96e5c&&Po(_0x3e06c3,_0x46696f,_0xc96e5c),_0xc96e5c;},Ss=(_0x29ad7c,_0x1255e9)=>(_0x26c394,_0x8b53bd)=>_0x1255e9(_0x26c394,_0x8b53bd,_0x29ad7c);const No=_0x23cbae(0x330),Mo=_0x23cbae(0x447);let ze=class extends _0xbfc176{constructor(_0x341e32,_0x95d4e5){const _0x9ccaee=_0x23cbae;super(),this['_univerInstanceService']=_0x341e32,this[_0x9ccaee(0x44c)]=_0x95d4e5,this['_init']();}[_0x23cbae(0x383)](){const _0x10e9d9=_0x23cbae;this[_0x10e9d9(0x165)](this[_0x10e9d9(0x2ce)][_0x10e9d9(0x22f)][_0x10e9d9(0x334)](()=>{const _0x4baaad=_0x10e9d9;var _0x5e9a72;const _0x1e3b32=this['_univerInstanceService'][_0x4baaad(0x419)]();let _0x370ac3=(_0x5e9a72=this['_configService'][_0x4baaad(0x266)](No))!=null?_0x5e9a72:Mo;_0x1e3b32 instanceof _0x54fdc9&&(_0x370ac3=_0x1e3b32['name']),document['title']=_0x370ac3;}));}};ze=Uo([Ss(0x0,_0xf0f4c1),Ss(0x1,_0x465ebb)],ze);var Ao=Object[_0x23cbae(0xe2)],Lo=Object['getOwnPropertyDescriptor'],$o=(_0x20e142,_0x3ce095,_0x30cf9,_0x3fdc1b)=>{for(var _0x24f2a0=_0x3fdc1b>0x1?void 0x0:_0x3fdc1b?Lo(_0x3ce095,_0x30cf9):_0x3ce095,_0x382b91=_0x20e142['length']-0x1,_0x5424dc;_0x382b91>=0x0;_0x382b91--)(_0x5424dc=_0x20e142[_0x382b91])&&(_0x24f2a0=(_0x3fdc1b?_0x5424dc(_0x3ce095,_0x30cf9,_0x24f2a0):_0x5424dc(_0x24f2a0))||_0x24f2a0);return _0x3fdc1b&&_0x24f2a0&&Ao(_0x3ce095,_0x30cf9,_0x24f2a0),_0x24f2a0;},St=(_0x340358,_0x4120e2)=>(_0x19f0a3,_0x114949)=>_0x4120e2(_0x19f0a3,_0x114949,_0x340358);let Ze=class{constructor(_0x2a6305,_0x5f2ce9,_0x1b7223){const _0x265a73=_0x23cbae;this['_configService']=_0x2a6305,this['_httpService']=_0x5f2ce9,this[_0x265a73(0x152)]=_0x1b7223,this[_0x265a73(0x410)]();}[_0x23cbae(0x410)](){const _0x4a124c=_0x23cbae;this[_0x4a124c(0x438)][_0x4a124c(0x3d7)]({'priority':0x1,'interceptor':(_0x1f5eaf,_0x2774ab)=>_0x2774ab(_0x1f5eaf)[_0x4a124c(0x18c)](_0x286f48(async _0x875c68=>{const _0x3546c1=_0x4a124c,_0x518cda=_0x875c68;if(_0x518cda[_0x3546c1(0x361)]===0x191&&window['confirm'](this[_0x3546c1(0x152)]['t'](_0x3546c1(0x1b7)))){const _0x72c453=window[_0x3546c1(0x278)](window[_0x3546c1(0x3b2)][_0x3546c1(0x2a0)]);window[_0x3546c1(0x3b2)]['href']=this[_0x3546c1(0x328)]()+'?url='+_0x72c453;}return _0x518cda;}))});}[_0x23cbae(0x328)](){const _0x36e23a=_0x23cbae;var _0x351e80,_0x2cb9e7;const _0x3eaba0=this['_configService'][_0x36e23a(0x266)](Nn),_0x2244e7=this['_configService'][_0x36e23a(0x266)]($);return(_0x2cb9e7=(_0x351e80=_0x2244e7==null?void 0x0:_0x2244e7[_0x36e23a(0x37b)])!=null?_0x351e80:_0x3eaba0)!=null?_0x2cb9e7:Mn;}};Ze=$o([St(0x0,_0x465ebb),St(0x1,_0x57082d(_0x1b70f6)),St(0x2,_0x57082d(_0x1ba649))],Ze);var jo=Object[_0x23cbae(0xe2)],xo=Object['getOwnPropertyDescriptor'],Ho=(_0x42e5c2,_0x45d1d8,_0x370883,_0x258784)=>{for(var _0x3492d9=_0x258784>0x1?void 0x0:_0x258784?xo(_0x45d1d8,_0x370883):_0x45d1d8,_0x10881f=_0x42e5c2['length']-0x1,_0x2d3a19;_0x10881f>=0x0;_0x10881f--)(_0x2d3a19=_0x42e5c2[_0x10881f])&&(_0x3492d9=(_0x258784?_0x2d3a19(_0x45d1d8,_0x370883,_0x3492d9):_0x2d3a19(_0x3492d9))||_0x3492d9);return _0x258784&&_0x3492d9&&jo(_0x45d1d8,_0x370883,_0x3492d9),_0x3492d9;},ps=(_0x14a6fa,_0x587606)=>(_0x1c814a,_0x3b2147)=>_0x587606(_0x1c814a,_0x3b2147,_0x14a6fa);const ko=_0x23cbae(0x235),Bo='/universer-api/authz';let yt=class extends _0xbfc176{constructor(_0x5aa433,_0x262f36){const _0x71fd3f=_0x23cbae;super(),this[_0x71fd3f(0x17e)]=_0x5aa433,this[_0x71fd3f(0x44c)]=_0x262f36,this[_0x71fd3f(0x387)]();}[_0x23cbae(0x387)](){const _0x481a42=_0x23cbae,_0x2f5cfb=this;this[_0x481a42(0x165)](this[_0x481a42(0x17e)][_0x481a42(0x3d7)]({'priority':0x3e7,'interceptor':_0x5afcd5({'isMatch'(_0x3bc192){const _0x5a9a52=_0x481a42;var _0x43f06f;if(_0x3bc192['method']==='POST'&&((_0x43f06f=_0x3bc192[_0x5a9a52(0x261)])!=null&&_0x43f06f[_0x5a9a52(0x1f6)])){const {objectID:_0x133c10,objectType:_0xfbb1bb}=_0x3bc192[_0x5a9a52(0x261)][_0x5a9a52(0x1f6)]||{};if(!_0x133c10||_0xfbb1bb===void 0x0)return!0x1;const _0x5a9bf2=_0x2f5cfb[_0x5a9a52(0x3aa)]()+'/'+_0xfbb1bb+_0x5a9a52(0x3a4)+_0x133c10+_0x5a9a52(0x1fb);if(_0x3bc192[_0x5a9a52(0x1b6)]===_0x5a9bf2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1b6f19){const _0x1d9abd=_0x481a42;var _0x22e85f;return(_0x22e85f=_0x1b6f19[_0x1d9abd(0x261)])==null?void 0x0:_0x22e85f[_0x1d9abd(0x1f6)];},'mergeParamsToRequest'(_0x4fddac,_0x429fb0){const _0x392fbf=_0x481a42,_0x552554=_0x2f5cfb[_0x392fbf(0x3aa)]()+_0x392fbf(0x268),_0x12c9d7=_0x4fddac[_0x392fbf(0x39b)]((_0x5c82b3,_0x51fcb1)=>{const _0x48f7f6=_0x392fbf,{unitID:_0x12f8d8,objectID:_0x58c7a4,objectType:_0x83226e,actions:_0x103cd0}=_0x51fcb1;return _0x5c82b3[_0x12f8d8]||(_0x5c82b3[_0x12f8d8]={}),_0x5c82b3[_0x12f8d8][_0x58c7a4]||(_0x5c82b3[_0x12f8d8][_0x58c7a4]={'objectID':_0x58c7a4,'objectType':_0x83226e,'actions':[]}),_0x5c82b3[_0x12f8d8][_0x58c7a4][_0x48f7f6(0x347)]['push'](..._0x103cd0),_0x5c82b3;},{}),_0x2f1806=[];for(const _0x34e33c in _0x12c9d7)for(const _0x33da8d in _0x12c9d7[_0x34e33c]){const {actions:_0x13395,objectType:_0x3d3da1}=_0x12c9d7[_0x34e33c][_0x33da8d],_0x508f89=[...new Set(_0x13395)];_0x2f1806['push']({'unitID':_0x34e33c,'objectID':_0x33da8d,'objectType':_0x3d3da1,'actions':_0x508f89});}return new _0x22675a(_0x392fbf(0x364),_0x552554,{'headers':_0x429fb0[_0x392fbf(0x367)],'withCredentials':_0x429fb0['withCredentials'],'responseType':_0x429fb0[_0x392fbf(0x15d)],'body':{'requests':_0x2f1806}});}},{'distributeResult'(_0xb7b9df,_0x16173f){const _0x37dff0=_0x481a42,{objectActions:_0x2d342f}=_0xb7b9df;return _0x16173f[_0x37dff0(0x41d)](_0x1adfde=>{const _0x2f89bf=_0x37dff0,{unitID:_0x5a97f8,objectID:_0x1b621a,actions:_0x54d845}=_0x1adfde,_0x5cd42f=_0x2d342f[_0x2f89bf(0x265)](_0x59dd65=>_0x59dd65[_0x2f89bf(0x1a5)]===_0x5a97f8&&_0x59dd65['objectID']===_0x1b621a),_0x1e568b=_0x54d845[_0x2f89bf(0x41d)](_0x3336a7=>_0x5cd42f==null?void 0x0:_0x5cd42f['actions'][_0x2f89bf(0x265)](_0x1619f2=>_0x1619f2[_0x2f89bf(0x24e)]===_0x3336a7))[_0x2f89bf(0x371)](_0x3f35ca=>!!_0x3f35ca);return{'config':_0x1adfde,'result':{'actions':_0x1e568b,'error':_0xb7b9df[_0x2f89bf(0x43f)]}};});}})}));}[_0x23cbae(0x3aa)](){const _0x58f9ea=_0x23cbae;var _0x281551,_0x4358ff;const _0x4b2484=this[_0x58f9ea(0x44c)][_0x58f9ea(0x266)](ko),_0x5b6f4f=this[_0x58f9ea(0x44c)][_0x58f9ea(0x266)]($);return(_0x4358ff=(_0x281551=_0x5b6f4f==null?void 0x0:_0x5b6f4f[_0x58f9ea(0x16e)])!=null?_0x281551:_0x4b2484)!=null?_0x4358ff:Bo;}async[_0x23cbae(0x2c7)](_0x5bce05){const _0x3f07ea=_0x23cbae,_0x43513a=this[_0x3f07ea(0x3aa)]()+'/'+_0x5bce05[_0x3f07ea(0x203)]+_0x3f07ea(0x3d2);return(await this['_HTTPService'][_0x3f07ea(0x1e5)](_0x43513a,{'body':_0x5bce05}))[_0x3f07ea(0x1f6)][_0x3f07ea(0x175)]||'';}async['list'](_0x44859c){const _0x46f77f=_0x23cbae,_0x3279cf=this[_0x46f77f(0x3aa)]()+'/-/object/list';return(await this[_0x46f77f(0x17e)]['post'](_0x3279cf,{'body':_0x44859c}))[_0x46f77f(0x1f6)]['objects'];}async[_0x23cbae(0x2d7)](_0x216bbc){const _0xa17e5e=_0x23cbae,_0x1394db=this[_0xa17e5e(0x3aa)]()+'/'+_0x216bbc[_0xa17e5e(0x203)]+_0xa17e5e(0x3a4)+_0x216bbc[_0xa17e5e(0x175)];await this[_0xa17e5e(0x17e)]['put'](_0x1394db,{'body':_0x216bbc});}async[_0x23cbae(0x303)](_0x327100){const _0x5d5d74=_0x23cbae,_0x2be7f7=this['_getAPIPrefixPath']()+'/'+_0x327100[_0x5d5d74(0x203)]+_0x5d5d74(0x3a4)+_0x327100[_0x5d5d74(0x175)]+_0x5d5d74(0x1fb);return(await this[_0x5d5d74(0x17e)]['post'](_0x2be7f7,{'body':_0x327100}))[_0x5d5d74(0x1f6)]['actions'];}async[_0x23cbae(0x251)](_0x11ebf8){const _0x2e2703=_0x23cbae,_0x1389d8=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x2e2703(0x17e)][_0x2e2703(0x1e5)](_0x1389d8,{'body':{'requests':_0x11ebf8}}))[_0x2e2703(0x1f6)][_0x2e2703(0x16d)];}async[_0x23cbae(0x1ca)](_0x532366){const _0x242a3b=_0x23cbae,_0x563956=this[_0x242a3b(0x3aa)]()+'/'+_0x532366[_0x242a3b(0x203)]+_0x242a3b(0x1de),_0x526cdb=await this['_HTTPService'][_0x242a3b(0x1e5)](_0x563956,{'body':_0x532366});return{'roles':_0x526cdb[_0x242a3b(0x1f6)][_0x242a3b(0x224)],'actions':_0x526cdb[_0x242a3b(0x1f6)][_0x242a3b(0x347)]};}async[_0x23cbae(0x391)](_0x5ca13f){const _0x5eb5a6=_0x23cbae,_0x4e3078=this['_getAPIPrefixPath']()+_0x5eb5a6(0x443);await this[_0x5eb5a6(0x17e)][_0x5eb5a6(0x1a8)](_0x4e3078,{'params':{'collaboratorID':_0x5ca13f[_0x5eb5a6(0x3ab)],'objectID':_0x5ca13f[_0x5eb5a6(0x175)],'unitID':_0x5ca13f[_0x5eb5a6(0x1a5)]}});}async['updateCollaborator'](_0x443b58){const _0x49666e=_0x23cbae,_0xc6d82=this[_0x49666e(0x3aa)]()+_0x49666e(0x443);await this[_0x49666e(0x17e)]['patch'](_0xc6d82,{'body':_0x443b58});}async[_0x23cbae(0x390)](_0x17daec){const _0x52562d=_0x23cbae,_0x25b126=this[_0x52562d(0x3aa)]()+_0x52562d(0x443);await this[_0x52562d(0x17e)][_0x52562d(0x1e5)](_0x25b126,{'body':_0x17daec});}async[_0x23cbae(0x13e)](_0x38aaca){const _0x33207d=_0x23cbae,_0xc75a89=this[_0x33207d(0x3aa)]()+'/collaborator';return(await this['_HTTPService'][_0x33207d(0x3fd)](_0xc75a89,{'params':{'objectID':_0x38aaca[_0x33207d(0x175)],'unitID':_0x38aaca[_0x33207d(0x1a5)]}}))[_0x33207d(0x1f6)][_0x33207d(0x27b)];}async[_0x23cbae(0x30a)](_0x2722be){const _0x2492f1=_0x23cbae,_0x3c9c6b=this[_0x2492f1(0x3aa)]()+_0x2492f1(0x443);await this[_0x2492f1(0x17e)][_0x2492f1(0x220)](_0x3c9c6b,{'body':_0x2722be});}};yt=Ho([ps(0x0,_0x57082d(_0x1b70f6)),ps(0x1,_0x57082d(_0x465ebb))],yt);var Vo=Object['defineProperty'],Fo=Object[_0x23cbae(0x36a)],Wo=(_0x57c3c0,_0x56f4f1,_0x4ec31b,_0x31c5b4)=>{const _0x512c97=_0x23cbae;for(var _0x5dd00f=_0x31c5b4>0x1?void 0x0:_0x31c5b4?Fo(_0x56f4f1,_0x4ec31b):_0x56f4f1,_0x5c3e80=_0x57c3c0[_0x512c97(0xed)]-0x1,_0x318e0e;_0x5c3e80>=0x0;_0x5c3e80--)(_0x318e0e=_0x57c3c0[_0x5c3e80])&&(_0x5dd00f=(_0x31c5b4?_0x318e0e(_0x56f4f1,_0x4ec31b,_0x5dd00f):_0x318e0e(_0x5dd00f))||_0x5dd00f);return _0x31c5b4&&_0x5dd00f&&Vo(_0x56f4f1,_0x4ec31b,_0x5dd00f),_0x5dd00f;},Go=(_0x398c7e,_0x3b2bb3)=>(_0x38f8cf,_0x4ff375)=>_0x3b2bb3(_0x38f8cf,_0x4ff375,_0x398c7e);let Qe=class{constructor(_0x13ca02){const _0x56316b=_0x23cbae;this[_0x56316b(0x438)]=_0x13ca02,this['_initRequestHeader']();}[_0x23cbae(0x282)](){const _0x462d92=_0x23cbae;this[_0x462d92(0x438)]['registerHTTPInterceptor']({'interceptor':(_0x3f14b7,_0xc7b55)=>{const _0x2c700f=_0x462d92,_0x2e90f7=_0x3f14b7['headers'],_0x414103=_0xa572df();return _0x414103&&_0x2e90f7['set'](_0x2c700f(0x264),_0x414103),_0xc7b55(_0x3f14b7);}});}};Qe=Wo([Go(0x0,_0x57082d(_0x1b70f6))],Qe);var Yo=Object['defineProperty'],Ko=Object[_0x23cbae(0x36a)],Xo=(_0x59e889,_0xb6fb08,_0x513fee,_0x1707e2)=>{for(var _0xeda35d=_0x1707e2>0x1?void 0x0:_0x1707e2?Ko(_0xb6fb08,_0x513fee):_0xb6fb08,_0x417771=_0x59e889['length']-0x1,_0x561b31;_0x417771>=0x0;_0x417771--)(_0x561b31=_0x59e889[_0x417771])&&(_0xeda35d=(_0x1707e2?_0x561b31(_0xb6fb08,_0x513fee,_0xeda35d):_0x561b31(_0xeda35d))||_0xeda35d);return _0x1707e2&&_0xeda35d&&Yo(_0xb6fb08,_0x513fee,_0xeda35d),_0xeda35d;},pt=(_0x41c5e4,_0x445b0c)=>(_0x3964ea,_0x567061)=>_0x445b0c(_0x3964ea,_0x567061,_0x41c5e4);const qo=[_0x23cbae(0x3bf),_0x23cbae(0xd9),'image/jpg',_0x23cbae(0x24b),_0x23cbae(0x3cf)],Jo=0x5*0x400*0x400,zo=_0x23cbae(0x1c9),Zo=_0x23cbae(0x33d),Qo=_0x23cbae(0x233),ea=_0x23cbae(0x182);let Ut=class{constructor(_0x486ce6,_0x575590,_0x4e28f2){const _0x4fb9de=_0x23cbae;l(this,'_waitCount',0x0),l(this,_0x4fb9de(0x413),new _0x4061c1()),l(this,_0x4fb9de(0x194),this[_0x4fb9de(0x413)]),l(this,_0x4fb9de(0x219),new Map()),(this[_0x4fb9de(0x438)]=_0x486ce6,this[_0x4fb9de(0x44c)]=_0x575590,this[_0x4fb9de(0x2ce)]=_0x4e28f2);}[_0x23cbae(0x190)](_0x179160){const _0x815f4c=_0x23cbae;this[_0x815f4c(0x28d)]=_0x179160,this[_0x815f4c(0x413)]['next'](_0x179160);}['getImageSourceCache'](_0xd15314,_0x5b6c58){const _0x991a6c=_0x23cbae;if(_0x5b6c58===_0xa7f0d8[_0x991a6c(0x2ee)]){const _0x358356=new Image();return _0x358356['src']=_0xd15314,_0x358356;}return this[_0x991a6c(0x219)]['get'](_0xd15314);}['addImageSourceCache'](_0x24ac98,_0x31cb7a,_0x4614a6){const _0x42635f=_0x23cbae;_0x31cb7a===_0xa7f0d8[_0x42635f(0x2ee)]||_0x4614a6==null||this['_imageSourceCache'][_0x42635f(0x111)](_0x24ac98,_0x4614a6);}async[_0x23cbae(0x284)](_0xd1d392){const _0x1727ff=_0x23cbae;try{const _0x5c1986=this[_0x1727ff(0x299)](this['_getSignURL'](),''+_0xd1d392),_0xf9313c=(await this[_0x1727ff(0x438)][_0x1727ff(0x3fd)](_0x5c1986))[_0x1727ff(0x1f6)];if(_0xf9313c[_0x1727ff(0x43f)]&&_0xf9313c[_0x1727ff(0x43f)]['code']===js['OK']){const _0x241e47=new URL(_0xf9313c['url'],this[_0x1727ff(0x38f)]())['toString']();return Promise[_0x1727ff(0x3bd)](_0x241e47);}return Promise['reject'](_0xf9313c[_0x1727ff(0x43f)]);}catch(_0x1213b9){return Promise[_0x1727ff(0x10e)](_0x1213b9);}}async[_0x23cbae(0x294)](_0xd788a6){const _0x31b980=_0x23cbae;let _0x5df742='';if(!qo[_0x31b980(0x27d)](_0xd788a6[_0x31b980(0x2f1)]))return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x3a9)]));if(_0xd788a6[_0x31b980(0x11b)]>Jo)return this[_0x31b980(0x17f)](),Promise['reject'](new Error(_0x497ab7[_0x31b980(0x37c)]));try{const _0x38558b=new FormData();_0x38558b['append'](_0x31b980(0x365),_0xd788a6);const _0xd31325=this[_0x31b980(0x2ce)][_0x31b980(0x419)](),_0x506068=_0xd31325==null?void 0x0:_0xd31325[_0x31b980(0x183)]();if(!_0x506068)throw new Error(_0x31b980(0x3ca));const _0x43bd9c=this['_getUploadFileURL']()+_0x31b980(0x3e5)+_0xd788a6[_0x31b980(0x11b)]['toString']()+_0x31b980(0x30f)+xs[_0x31b980(0x1b1)]+_0x31b980(0x20e)+encodeURIComponent(_0x506068),_0x9b5981=await(await fetch(_0x43bd9c,{'method':_0x31b980(0x364),'body':_0x38558b}))[_0x31b980(0x1ec)]();if(typeof _0x9b5981[_0x31b980(0x1fe)]!=_0x31b980(0x227))return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x114)]));_0x5df742=_0x9b5981[_0x31b980(0x1fe)];}catch{return this[_0x31b980(0x17f)](),Promise[_0x31b980(0x10e)](new Error(_0x497ab7[_0x31b980(0x114)]));}return new Promise((_0x539f83,_0x28b635)=>{const _0x19392e=_0x31b980,_0x3602d2=new FileReader();_0x3602d2[_0x19392e(0x309)](_0xd788a6),_0x3602d2['onload']=_0x34ea36=>{const _0x13a3a1=_0x19392e;var _0x1132c2;const _0x5c02f8=(_0x1132c2=_0x34ea36['target'])==null?void 0x0:_0x1132c2[_0x13a3a1(0x315)];if(_0x5c02f8==null){this[_0x13a3a1(0x17f)](),_0x28b635(new Error(_0x497ab7[_0x13a3a1(0x114)]));return;}const _0x382953=_0x2d9f70[_0x13a3a1(0x259)](0x6);_0x539f83({'imageId':_0x382953,'imageSourceType':_0xa7f0d8[_0x13a3a1(0x1c7)],'source':_0x5df742,'base64Cache':_0x5c02f8,'status':_0x497ab7[_0x13a3a1(0x339)]}),this[_0x13a3a1(0x17f)]();};});}['_getUploadFileURL'](){const _0x5586f0=_0x23cbae;var _0x496b9f,_0x5a33bb;const _0x45e4d0=this['_configService'][_0x5586f0(0x266)](zo),_0x2e2a00=this[_0x5586f0(0x44c)][_0x5586f0(0x266)]($);return(_0x5a33bb=(_0x496b9f=_0x2e2a00==null?void 0x0:_0x2e2a00[_0x5586f0(0x19e)])!=null?_0x496b9f:_0x45e4d0)!=null?_0x5a33bb:Zo;}[_0x23cbae(0x3f5)](){const _0x4044de=_0x23cbae;var _0xa8e1ac,_0x144147;const _0x13c872=this[_0x4044de(0x44c)][_0x4044de(0x266)](Qo),_0x1b4361=this[_0x4044de(0x44c)][_0x4044de(0x266)]($);return(_0x144147=(_0xa8e1ac=_0x1b4361==null?void 0x0:_0x1b4361['signUrlServerUrl'])!=null?_0xa8e1ac:_0x13c872)!=null?_0x144147:ea;}['_getDownloadEndpointURL'](){const _0x4e8904=_0x23cbae;var _0x21886f;const _0xda6f75=this[_0x4e8904(0x44c)][_0x4e8904(0x266)]($);return(_0x21886f=_0xda6f75==null?void 0x0:_0xda6f75['downloadEndpointUrl'])!=null?_0x21886f:location[_0x4e8904(0x2fd)];}['_replaceFileID'](_0x490d13,_0x553e26){const _0x1411b1=_0x23cbae;return _0x490d13[_0x1411b1(0x35d)](_0x1411b1(0x24a),_0x553e26);}['_decreaseWaiting'](){const _0x1b1816=_0x23cbae;this['_waitCount']-=0x1,this['_change$'][_0x1b1816(0x131)](this['_waitCount']);}};Ut=Xo([pt(0x0,_0x57082d(_0x1b70f6)),pt(0x1,_0x465ebb),pt(0x2,_0x57082d(_0xf0f4c1))],Ut);var ta=Object[_0x23cbae(0xe2)],sa=Object[_0x23cbae(0x36a)],ia=(_0x323770,_0x52df9a,_0x4737d8,_0x1d1f62)=>{for(var _0x4279d0=_0x1d1f62>0x1?void 0x0:_0x1d1f62?sa(_0x52df9a,_0x4737d8):_0x52df9a,_0x381ee9=_0x323770['length']-0x1,_0x5a6f1e;_0x381ee9>=0x0;_0x381ee9--)(_0x5a6f1e=_0x323770[_0x381ee9])&&(_0x4279d0=(_0x1d1f62?_0x5a6f1e(_0x52df9a,_0x4737d8,_0x4279d0):_0x5a6f1e(_0x4279d0))||_0x4279d0);return _0x1d1f62&&_0x4279d0&&ta(_0x52df9a,_0x4737d8,_0x4279d0),_0x4279d0;},ye=(_0x232952,_0x283104)=>(_0x172f4a,_0xa4b3c0)=>_0x283104(_0x172f4a,_0xa4b3c0,_0x232952);let et=class extends _0x3a262a{constructor(_0x1ba951,_0x2d71d7,_0xb2a78,_0x383263,_0xb95bc4){const _0x272021=_0x23cbae;super(),this[_0x272021(0x171)]=_0x1ba951,this[_0x272021(0x2ce)]=_0x2d71d7,this[_0x272021(0x34e)]=_0xb2a78,this['_collaborationSessionService']=_0x383263,this['_localeService']=_0xb95bc4,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x23cbae(0x1a7)](){const _0x450fef=_0x23cbae,_0x63163b=async _0x2c207a=>{const _0x36ee2a=_0x3f49;(await this[_0x36ee2a(0x3ff)][_0x36ee2a(0x236)](_0x2c207a))[_0x36ee2a(0x29c)]['pipe'](_0x4eb371(_0x3dfb77=>_0x3dfb77['eventID']===_0x44cf74[_0x36ee2a(0x34f)]),_0x5198ca(this[_0x36ee2a(0x16f)]))[_0x36ee2a(0x334)](_0x58c80a=>{const _0x4abe7c=_0x36ee2a,_0x3fb1c=_0x58c80a,{reason:_0xcc6081}=_0x3fb1c[_0x4abe7c(0x32d)];this['_injector'][_0x4abe7c(0x3fd)](_0x2493e9)[_0x4abe7c(0x2bb)]({'type':_0x135398[_0x4abe7c(0x33b)],'content':this[_0x4abe7c(0x151)]['t'](_0x4abe7c(0x2b8))+'('+_0xcc6081+')'}),this[_0x4abe7c(0x34e)][_0x4abe7c(0x12b)](new _0x41b6ca(_0x2c207a)['id'],!0x1),this[_0x4abe7c(0x3ff)][_0x4abe7c(0xff)](_0x2c207a);});};_0x395f71(this[_0x450fef(0x2ce)][_0x450fef(0x1a1)](_0x2eb231['UNIVER_SHEET']),this['_univerInstanceService'][_0x450fef(0x1a1)](_0x2eb231[_0x450fef(0x12f)]))[_0x450fef(0x18c)](_0x57b187(_0x34d194=>_0x34d194[_0x450fef(0x183)]()),_0x4eb371(_0x31dbdf=>!_0x45fcbc(_0x31dbdf)),_0x5198ca(this[_0x450fef(0x16f)]))[_0x450fef(0x334)](_0x5a6eca=>{_0x63163b(_0x5a6eca);});}[_0x23cbae(0x31c)](){const _0x2dc340=_0x23cbae,_0x4d5a64=async _0x1bf1a1=>{const _0x50a982=_0x3f49;(await this[_0x50a982(0x3ff)]['requireSession'](_0x1bf1a1))[_0x50a982(0x29c)][_0x50a982(0x18c)](_0x4eb371(_0x9b007f=>_0x9b007f[_0x50a982(0x3f0)]===_0x44cf74[_0x50a982(0x436)]),_0x5198ca(this[_0x50a982(0x16f)]))[_0x50a982(0x334)](_0x1f150d=>{const _0x10b6a9=_0x50a982,_0x2723f2=_0x1f150d,{objectId:_0x1006f3}=_0x2723f2[_0x10b6a9(0x32d)],_0x225a9f=this[_0x10b6a9(0x171)][_0x10b6a9(0x3fd)](_0x204f73);_0x1006f3===_0x1bf1a1?_0x225a9f[_0x10b6a9(0x1ef)](_0x1bf1a1):_0x225a9f[_0x10b6a9(0xf9)](_0x1bf1a1,_0x1006f3);});};_0x395f71(this[_0x2dc340(0x2ce)]['getTypeOfUnitAdded$'](_0x2eb231[_0x2dc340(0x34d)]),this[_0x2dc340(0x2ce)][_0x2dc340(0x1a1)](_0x2eb231[_0x2dc340(0x12f)]))[_0x2dc340(0x18c)](_0x57b187(_0xcdaca5=>_0xcdaca5[_0x2dc340(0x183)]()),_0x4eb371(_0x44f570=>!_0x45fcbc(_0x44f570)),_0x5198ca(this[_0x2dc340(0x16f)]))[_0x2dc340(0x334)](_0x5713e9=>{_0x4d5a64(_0x5713e9);});}};et=ia([ye(0x0,_0x57082d(_0x5aca14)),ye(0x1,_0xf0f4c1),ye(0x2,_0x3b2db3),ye(0x3,_0x57082d(he)),ye(0x4,_0x57082d(_0x1ba649))],et);var na=Object[_0x23cbae(0xe2)],ra=Object[_0x23cbae(0x36a)],oa=(_0x1ea4b0,_0x115ffc,_0x225eee,_0xf56e8e)=>{const _0x54f63e=_0x23cbae;for(var _0x3e1e2a=_0xf56e8e>0x1?void 0x0:_0xf56e8e?ra(_0x115ffc,_0x225eee):_0x115ffc,_0x91c92=_0x1ea4b0[_0x54f63e(0xed)]-0x1,_0x445bab;_0x91c92>=0x0;_0x91c92--)(_0x445bab=_0x1ea4b0[_0x91c92])&&(_0x3e1e2a=(_0xf56e8e?_0x445bab(_0x115ffc,_0x225eee,_0x3e1e2a):_0x445bab(_0x3e1e2a))||_0x3e1e2a);return _0xf56e8e&&_0x3e1e2a&&na(_0x115ffc,_0x225eee,_0x3e1e2a),_0x3e1e2a;},vs=(_0xb7e732,_0x39d803)=>(_0x461761,_0x1b4b22)=>_0x39d803(_0x461761,_0x1b4b22,_0xb7e732);let Nt=class{constructor(_0x34898e,_0x44528b){const _0x36e2a7=_0x23cbae;this['_configService']=_0x34898e,this[_0x36e2a7(0x438)]=_0x44528b;}async[_0x23cbae(0x286)](_0x50c598,_0x106e53){const _0x1cb2c7=_0x23cbae;var _0x200ebb;const {unitID:_0x38dc75,type:_0x2a4a13,revision:_0x16115f=0x0}=_0x106e53,_0xf256a2=this[_0x1cb2c7(0x2d4)]()+'/'+_0x2a4a13+'/unit/'+_0x38dc75+_0x1cb2c7(0x16a)+_0x16115f,_0x7751fa=(await this[_0x1cb2c7(0x438)][_0x1cb2c7(0x3fd)](_0xf256a2))[_0x1cb2c7(0x1f6)],_0x249995=(_0x200ebb=_0x7751fa[_0x1cb2c7(0x185)])==null?void 0x0:_0x200ebb['workbook'];if(_0x249995){const _0x35b494=_0x249995==null?void 0x0:_0x249995[_0x1cb2c7(0x1bc)],_0x296fe4=_0x510326[_0x1cb2c7(0x283)](_0x45b123(_0x35b494));_0x249995[_0x1cb2c7(0x1bc)]=_0x296fe4,Object[_0x1cb2c7(0x1d5)](_0x249995['sheets'])[_0x1cb2c7(0x273)](([,_0x326581])=>{const _0xe3077b=_0x1cb2c7,_0x3f5142=_0x326581[_0xe3077b(0x1bc)],_0x265086=_0x510326[_0xe3077b(0x283)](_0x45b123(_0x3f5142));_0x326581[_0xe3077b(0x1bc)]=_0x265086;});}return _0x7751fa;}async['getSheetBlock'](_0x5d73f0,_0x1aae06){const _0x1e7ab4=_0x23cbae,{unitID:_0x1a865c,type:_0x280be7,blockID:_0x532427}=_0x1aae06,_0xce333d=this[_0x1e7ab4(0x215)]()+'/'+_0x280be7+_0x1e7ab4(0xdf)+_0x1a865c+'/block/'+_0x532427;return(await this[_0x1e7ab4(0x438)]['get'](_0xce333d))['body'];}async[_0x23cbae(0x1d1)](_0x21bba2,_0x43fadb){const _0xcbb415=_0x23cbae,{unitID:_0x16b724,type:_0x48a1eb,blockID:_0x26fc25}=_0x43fadb,_0x8c2d4b=this[_0xcbb415(0x215)]()+_0xcbb415(0x3f2)+_0x48a1eb+_0xcbb415(0xdf)+_0x16b724+'/block/'+_0x26fc25;return(await this[_0xcbb415(0x438)]['get'](_0x8c2d4b))[_0xcbb415(0x1f6)];}async[_0x23cbae(0x164)](_0x326e4d,_0x1204bc){const _0x53671a=_0x23cbae,{unitID:_0x9817bc,type:_0x175317,from:_0x2dc69c,to:_0x371492}=_0x1204bc,_0x196011=this[_0x53671a(0x215)]()+'/'+_0x175317+_0x53671a(0xdf)+_0x9817bc+'/fetchmissing?from='+_0x2dc69c+_0x53671a(0x2b1)+_0x371492;return(await this[_0x53671a(0x438)][_0x53671a(0x3fd)](_0x196011))[_0x53671a(0x1f6)];}['_getSnapshotAPIPrefix'](){const _0x3acf39=_0x23cbae;var _0x310be5;return(_0x310be5=this[_0x3acf39(0x44c)][_0x3acf39(0x266)](vn))!=null?_0x310be5:this['_getAPIPrefix']();}[_0x23cbae(0x215)](){const _0x224cdf=_0x23cbae;var _0x189709,_0x32841c;const _0x4a9f0f=this['_configService'][_0x224cdf(0x266)](Sn),_0x17cc43=this[_0x224cdf(0x44c)]['getConfig']($);return(_0x32841c=(_0x189709=_0x17cc43==null?void 0x0:_0x17cc43['snapshotServerUrl'])!=null?_0x189709:_0x4a9f0f)!=null?_0x32841c:pn;}async[_0x23cbae(0x1b2)](_0x27a803,_0x1a2995){const _0x4a7e67=_0x23cbae,_0x1c97a2='/universer-api/snapshot/'+_0x1a2995['type']+_0x4a7e67(0xdf)+_0x1a2995[_0x4a7e67(0x1a5)]+_0x4a7e67(0x402);return(await this['_httpService']['get'](_0x1c97a2,{'params':{'resourceId':JSON[_0x4a7e67(0x18a)](_0x1a2995[_0x4a7e67(0x13f)])}}))[_0x4a7e67(0x1f6)];}['saveSnapshot'](){const _0x54ea66=_0x23cbae;throw new Error(_0x54ea66(0xda));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x23cbae(0x26f)](){const _0x374575=_0x23cbae;throw new Error(_0x374575(0xda));}[_0x23cbae(0x1c8)](){const _0x98173f=_0x23cbae;throw new Error(_0x98173f(0xda));}[_0x23cbae(0x22c)](){const _0x2f2f4c=_0x23cbae;throw new Error(_0x2f2f4c(0xda));}};Nt=oa([vs(0x0,_0x465ebb),vs(0x1,_0x57082d(_0x1b70f6))],Nt);var aa=Object[_0x23cbae(0xe2)],ca=Object[_0x23cbae(0x36a)],ha=(_0x4e5271,_0x3dbd1c,_0x593e3f,_0x2e561f)=>{const _0x38a29c=_0x23cbae;for(var _0x139603=_0x2e561f>0x1?void 0x0:_0x2e561f?ca(_0x3dbd1c,_0x593e3f):_0x3dbd1c,_0x47226c=_0x4e5271[_0x38a29c(0xed)]-0x1,_0x245773;_0x47226c>=0x0;_0x47226c--)(_0x245773=_0x4e5271[_0x47226c])&&(_0x139603=(_0x2e561f?_0x245773(_0x3dbd1c,_0x593e3f,_0x139603):_0x245773(_0x139603))||_0x139603);return _0x2e561f&&_0x139603&&aa(_0x3dbd1c,_0x593e3f,_0x139603),_0x139603;},Ue=(_0x64592e,_0x15bfdb)=>(_0x1a8e85,_0x4fae0a)=>_0x15bfdb(_0x1a8e85,_0x4fae0a,_0x64592e);let Mt=class extends _0x43badd{constructor(_0x41ea06,_0x2c1c76,_0x5eba37,_0x457ccf,_0x2bf891){const _0x430c54=_0x23cbae;super(_0x41ea06,_0x2c1c76,_0x5eba37),this[_0x430c54(0x2f5)]=_0x457ccf,this[_0x430c54(0x135)]=_0x2bf891;}['transformUndoRedo'](_0x34c5a0,_0x25fa2b){const _0x44dddf=_0x23cbae,_0x40fa17=this[_0x44dddf(0x249)](_0x34c5a0);if(_0x40fa17)try{const _0x1fffa1=this[_0x44dddf(0x3ae)](_0x40fa17,_0x25fa2b);this['_substituteUndoStack'](_0x34c5a0,_0x1fffa1);}catch(_0x553f69){this[_0x44dddf(0x135)]['error'](_0x44dddf(0x442),_0x553f69),this[_0x44dddf(0x1af)](_0x34c5a0);}const _0x433c4d=this['_getRedoStack'](_0x34c5a0);if(_0x433c4d)try{const _0x221894=this[_0x44dddf(0x3ae)](_0x433c4d,_0x25fa2b);this[_0x44dddf(0x2be)](_0x34c5a0,_0x221894);}catch(_0x58b69e){this[_0x44dddf(0x135)][_0x44dddf(0x43f)](_0x58b69e),this[_0x44dddf(0x322)](_0x34c5a0);}}[_0x23cbae(0x1af)](_0x586fb0){const _0x5ec2e4=_0x23cbae,_0x5a3f69=this['_getUndoStack'](_0x586fb0);_0x5a3f69&&(_0x5a3f69['length']=0x0,this[_0x5ec2e4(0x379)]());}[_0x23cbae(0x322)](_0x1d4180){const _0x5eec26=_0x23cbae,_0x5608fc=this[_0x5eec26(0x202)](_0x1d4180);_0x5608fc&&(_0x5608fc['length']=0x0,this[_0x5eec26(0x379)]());}[_0x23cbae(0x3ba)](_0xa24dcc,_0x2973ef){const _0x361002=_0x23cbae;this[_0x361002(0x29f)][_0x361002(0x111)](_0xa24dcc,_0x2973ef),this[_0x361002(0x379)]();}[_0x23cbae(0x2be)](_0x299d82,_0x7fdfcc){const _0x429def=_0x23cbae;this[_0x429def(0x3e7)][_0x429def(0x111)](_0x299d82,_0x7fdfcc),this[_0x429def(0x379)]();}['_transformStack'](_0x2244a2,_0x5bb8bc){const _0x26a753=_0x23cbae,_0x4b4991=[];let _0x2525e3=_0x5bb8bc,_0x138ca2=_0x5bb8bc;for(let _0x599dc7=_0x2244a2[_0x26a753(0xed)]-0x1;_0x599dc7>=0x0;_0x599dc7--){const {unitID:_0x36b1f7,undoMutations:_0x327396,redoMutations:_0x874cf4}=_0x2244a2[_0x599dc7],_0x3e37b9=this[_0x26a753(0x2f5)][_0x26a753(0x3cc)](_0x2525e3,_0x327396),_0x308a14=this[_0x26a753(0x2f5)][_0x26a753(0x3cc)](_0x138ca2,_0x874cf4);if(_0x4e72ac(_0x3e37b9)||_0x4e72ac(_0x308a14)){this[_0x26a753(0x135)][_0x26a753(0x43f)](_0x26a753(0x442),_0x26a753(0xf0),_0x3e37b9,_0x308a14);break;}_0x2525e3=_0x3e37b9[_0x26a753(0x2d5)],_0x138ca2=_0x308a14['c1Prime'],_0x4b4991[_0x26a753(0x12e)]({'unitID':_0x36b1f7,'undoMutations':_0x3e37b9['m2Prime'],'redoMutations':_0x308a14[_0x26a753(0x1b0)]});}return _0x4b4991['reverse']();}};Mt=ha([Ue(0x0,_0xf0f4c1),Ue(0x1,_0x2c218a),Ue(0x2,_0x35bd8b),Ue(0x3,_0x3ce5fa),Ue(0x4,_0x2ed9bc)],Mt);class la extends _0x3a262a{constructor(){const _0x5c5605=_0x23cbae;super(),l(this,'urlChange$'),this['urlChange$']=_0x19a309(window,_0x5c5605(0x253))['pipe'](_0x5b993c(this[_0x5c5605(0x16f)]),_0x153603(0x1),_0x483d69(void 0x0));}[_0x23cbae(0x2a6)](_0x88f50,_0x3babfd,_0x512199=!0x1){const _0x355167=_0x23cbae,_0x3740bc=new URL(window[_0x355167(0x3b2)][_0x355167(0x2a0)]);_0x3740bc['searchParams'][_0x355167(0x111)](_0x88f50,_0x3babfd),_0x512199?window[_0x355167(0x16b)][_0x355167(0x3fc)]('','',_0x3740bc[_0x355167(0x414)]()):window[_0x355167(0x16b)][_0x355167(0x326)]('','',_0x3740bc[_0x355167(0x414)]());}['removeParam'](_0x1f070b,_0x1b39bc=!0x1){const _0x9f2643=_0x23cbae,_0x1a8e8c=new URL(window[_0x9f2643(0x3b2)][_0x9f2643(0x2a0)]);_0x1a8e8c[_0x9f2643(0x2e5)][_0x9f2643(0x1a8)](_0x1f070b),_0x1b39bc?window[_0x9f2643(0x16b)][_0x9f2643(0x3fc)]('','',_0x1a8e8c[_0x9f2643(0x414)]()):window[_0x9f2643(0x16b)][_0x9f2643(0x326)]('','',_0x1a8e8c['toString']());}[_0x23cbae(0x323)](_0x48d2c0){const _0x197b86=_0x23cbae;var _0x6f51cd;return(_0x6f51cd=new URL(window[_0x197b86(0x3b2)][_0x197b86(0x2a0)])[_0x197b86(0x2e5)][_0x197b86(0x3fd)](_0x48d2c0))!=null?_0x6f51cd:void 0x0;}}var qs=Object[_0x23cbae(0xe2)],_a=Object[_0x23cbae(0x36a)],ua=(_0x4e5d3c,_0x1b67f7,_0x1d362f)=>_0x1b67f7 in _0x4e5d3c?qs(_0x4e5d3c,_0x1b67f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d362f}):_0x4e5d3c[_0x1b67f7]=_0x1d362f,da=(_0x453e21,_0x453967,_0x5e5ab7,_0x28eb7c)=>{const _0x5842ed=_0x23cbae;for(var _0x2d5656=_0x28eb7c>0x1?void 0x0:_0x28eb7c?_a(_0x453967,_0x5e5ab7):_0x453967,_0x521b62=_0x453e21[_0x5842ed(0xed)]-0x1,_0x3167ab;_0x521b62>=0x0;_0x521b62--)(_0x3167ab=_0x453e21[_0x521b62])&&(_0x2d5656=(_0x28eb7c?_0x3167ab(_0x453967,_0x5e5ab7,_0x2d5656):_0x3167ab(_0x2d5656))||_0x2d5656);return _0x28eb7c&&_0x2d5656&&qs(_0x453967,_0x5e5ab7,_0x2d5656),_0x2d5656;},Ve=(_0x5a8871,_0x367f71)=>(_0x42a918,_0x1e84a6)=>_0x367f71(_0x42a918,_0x1e84a6,_0x5a8871),fa=(_0x388d48,_0x249b1d,_0x392c0f)=>ua(_0x388d48,_0x249b1d+'',_0x392c0f);const ma=_0x23cbae(0xe6);let At=class extends _0x23b29f{constructor(_0x35ebf2=An,_0x616e,_0x3a58e3,_0x5f17b7,_0x2d1b8e){const _0x52b1c2=_0x23cbae;super(),this[_0x52b1c2(0x42d)]=_0x35ebf2,this[_0x52b1c2(0x135)]=_0x616e,this[_0x52b1c2(0x2f0)]=_0x3a58e3,this[_0x52b1c2(0x171)]=_0x5f17b7,this[_0x52b1c2(0x44c)]=_0x2d1b8e;const {..._0x390d37}=this[_0x52b1c2(0x42d)];this[_0x52b1c2(0x44c)]['setConfig']($,_0x390d37);}[_0x23cbae(0x38c)](){const _0x25e600=_0x23cbae;this['_registerDependencies'](),_0xb5fd96(this[_0x25e600(0x171)],[[ve],[Je],[et]]);}['onReady'](){const _0x20712b=_0x23cbae;_0xb5fd96(this[_0x20712b(0x171)],[[ze]]);}[_0x23cbae(0x30d)](){const _0xb72898=_0x23cbae;this[_0xb72898(0x3b7)]();}[_0x23cbae(0x28c)](){const _0x710dd4=_0x23cbae;var _0x3b752d,_0x420d09,_0x22cfc8,_0x6ad478;this[_0x710dd4(0x171)][_0x710dd4(0x15b)](_0x2b3c29)&&this[_0x710dd4(0x135)]['error'](_0x710dd4(0x327),_0x710dd4(0x2bc));let _0x3a3deb=[[_0x2b3c29,{'useClass':Mt}],[he],[Gt],[_0x1b70f6],[Xs,{'useClass':la}],[ce],[w],[_0x556be8],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[ks],[et],[Hs,{'useClass':(_0x420d09=(_0x3b752d=this[_0x710dd4(0x42d)])==null?void 0x0:_0x3b752d[_0x710dd4(0xf5)])!=null?_0x420d09:Ct}],[_0x58f9ac,{'useClass':_0x3fa144}],[_0x5f1087,{'useClass':Nt}],[_0x562510,{'useClass':yt}],[_0x50ad99,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x22cfc8=this['_config'])!=null&&_0x22cfc8[_0x710dd4(0x422)]&&_0x3a3deb[_0x710dd4(0x12e)]([tt,{'useClass':fr}]),_0x3a3deb=_0x542d4d(_0x3a3deb,(_0x6ad478=this[_0x710dd4(0x42d)])==null?void 0x0:_0x6ad478[_0x710dd4(0x35c)]),_0x3a3deb[_0x710dd4(0x273)](_0x2ce5e3=>this[_0x710dd4(0x171)][_0x710dd4(0x302)](_0x2ce5e3)),this['_initModules']();}[_0x23cbae(0x3b7)](){const _0x579bb2=_0x23cbae;this[_0x579bb2(0x165)](this['_renderManagerService']['registerRenderModule'](_0x2eb231[_0x579bb2(0x12f)],[wt])),this[_0x579bb2(0x165)](this[_0x579bb2(0x2f0)][_0x579bb2(0x1d7)](_0x2eb231[_0x579bb2(0x34d)],[Pt]));}['_initModules'](){const _0x5b18a6=_0x23cbae;var _0x45b600,_0x2a6b0a;this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](_0x1b70f6)[_0x5b18a6(0x3d7)]({'priority':0x14,'interceptor':_0xa20eb({'maxParallel':0x6})}),this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Qe),(_0x45b600=this[_0x5b18a6(0x42d)])!=null&&_0x45b600[_0x5b18a6(0x260)]||this[_0x5b18a6(0x171)]['get'](w)['disableLocalCache'](),(_0x2a6b0a=this[_0x5b18a6(0x42d)])!=null&&_0x2a6b0a['enableAuthServer']&&this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Ze),this[_0x5b18a6(0x171)]['get'](Le),this[_0x5b18a6(0x171)][_0x5b18a6(0x15b)](Me)&&this[_0x5b18a6(0x171)][_0x5b18a6(0x3fd)](Me);}};fa(At,'pluginName',ma),At=da([_0x375d34(_0x6a4b44),Ve(0x1,_0x2ed9bc),Ve(0x2,_0x241377),Ve(0x3,_0x57082d(_0x5aca14)),Ve(0x4,_0x465ebb)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,ks as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,Ls as HEARTBEAT_TIMEOUT_KEY,Hs as ICollaborationSocketService,Xs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
|
1
|
+
const _0x4d2b9e=_0x5c56;(function(_0x3c243c,_0x468d6c){const _0x570a81=_0x5c56,_0x5cb072=_0x3c243c();while(!![]){try{const _0x31cb9d=parseInt(_0x570a81(0x45a))/0x1*(parseInt(_0x570a81(0x25a))/0x2)+parseInt(_0x570a81(0x311))/0x3+parseInt(_0x570a81(0x334))/0x4+parseInt(_0x570a81(0x4d9))/0x5+parseInt(_0x570a81(0x48e))/0x6*(-parseInt(_0x570a81(0x477))/0x7)+-parseInt(_0x570a81(0x2a2))/0x8+-parseInt(_0x570a81(0x499))/0x9;if(_0x31cb9d===_0x468d6c)break;else _0x5cb072['push'](_0x5cb072['shift']());}catch(_0x5d3c60){_0x5cb072['push'](_0x5cb072['shift']());}}}(_0x44a1,0x790bb));var si=Object['defineProperty'],ii=(_0x18e069,_0x504e4d,_0x501005)=>_0x504e4d in _0x18e069?si(_0x18e069,_0x504e4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x501005}):_0x18e069[_0x504e4d]=_0x501005,l=(_0x17a441,_0x25911a,_0x2776db)=>ii(_0x17a441,typeof _0x25911a!=_0x4d2b9e(0x546)?_0x25911a+'':_0x25911a,_0x2776db);import{createIdentifier as _0x3bdb6e,Inject as _0x3a6c9c,Disposable as _0x5f4ac3,DisposableCollection as _0x41922f,toDisposable as _0xd3e61d,IConfigService as _0x542b48,ILogService as _0x4872ae,UserManagerService as _0x1e4f80,UniverInstanceType as _0x20a2e2,IUniverInstanceService as _0x5dad13,LocaleService as _0x5e971c,Optional as _0x2c3c6c,RxDisposable as _0x422fed,Injector as _0x51895d,Tools as _0x3e23fb,ILocalStorageService as _0x351116,Rectangle as _0x2ee4ab,ICommandService as _0x58f975,JSONX as _0x3ea2e9,CommandType as _0x5c4d79,IPermissionService as _0xb81372,IUndoRedoService as _0x5a5587,sequenceExecute as _0x12f195,debounce as _0x37d18e,COLORS as _0x2c6821,ColorKit as _0x159e01,ThemeService as _0x264397,fromEventSubject as _0x1a1c3f,useDependency as _0x556094,connectInjector as _0x8d5795,Workbook as _0xad81d8,isInternalEditorID as _0x2f6283,LocalUndoRedoService as _0x1178f7,IContextService as _0x31f21a,DependentOn as _0x467f42,Plugin as _0x33e2e4,touchDependencies as _0x438f99,IAuthzIoService as _0x33c527,mergeOverrideWithDependencies as _0x1b7a17}from'@univerjs/core';import{Subject as _0x1eeb2c,merge as _0x18ccc3,takeUntil as _0x1c623f,BehaviorSubject as _0x119970,distinctUntilChanged as _0x226292,fromEvent as _0x278262,map as _0xc4ce42,shareReplay as _0x2cc9d1,take as _0x58c955,of as _0x2fcf97,debounceTime as _0x17d959,filter as _0xed9dc0,switchMap as _0x2c5ab6,combineLatest as _0x2940c2,concatMap as _0x38fc07,mapTo as _0x1afef5}from'rxjs';import{map as _0x5cd2f6,take as _0x147f82,filter as _0x3b2fa1,delay as _0x11944f,throttleTime as _0xdf5fef,takeUntil as _0x28f50c,switchMap as _0x3b3ade}from'rxjs/operators';import{MessageType as _0x3a3d7c,Tooltip as _0x1bda5d}from'@univerjs/design';import{IBeforeCloseService as _0x4d5695,IMessageService as _0x15989f,INotificationService as _0x59f046,useObservable as _0x1e6802,BuiltInUIPart as _0x333347,IUIPartsService as _0x26923e}from'@univerjs/ui';import{HTTPService as _0x5e0b3d,WebSocketService as _0xbe274e,MergeInterceptorFactory as _0x314c26,HTTPRequest as _0x6faf85,IHTTPImplementation as _0x555a55,XHRHTTPImplementation as _0x30efa8,ThresholdInterceptorFactory as _0x583f8f}from'@univerjs/network';import{CollaborationEvent as _0x3e8b39,parseChangesetToProtocol as _0x24d166,ISnapshotServerService as _0x4a5b4e,isTransformMutationFailure as _0x27a6c3,isTransformMutationsWithChangesetSuccess as _0x4a48b2,ITransformService as _0x13d98e,RevisionService as _0x59f841,mapDocumentTypeToUniverType as _0x51f7a5,isTransformChangesetsSuccess as _0x46c507,CompressMutationService as _0xea5024,parseProtocolChangeset as _0x3e2d22,SnapshotService as _0x3e5f84,textEncoder as _0x386e0c,b64DecodeUnicode as _0x2b336b,isTransformMutationsWithChangesetFailure as _0x18bdc2,UniverCollaborationPlugin as _0x2cc2c3}from'@univerjs-pro/collaboration';import{ITelemetryService as _0x44947a}from'@univerjs/telemetry';import{DocIMEInputManagerService as _0x298dc3,DocStateChangeManagerService as _0x2dc970,NodePositionConvertToCursor as _0x3be08d,isValidRectRange as _0x43af2f,NodePositionConvertToRectRange as _0x56be84,TEXT_RANGE_LAYER_INDEX as _0x19ee43,SetDocZoomRatioOperation as _0x4eccb1}from'@univerjs/docs-ui';import{SheetsSelectionsService as _0x1f3c3d,SetSelectionsOperation as _0x5126a9,InsertSheetMutation as _0x3cfb08,EmptyMutation as _0x20a749,WorkbookEditablePermission as _0x438d93,RefRangeService as _0x37b1f1,EffectRefRangId as _0x149189,handleIRemoveRow as _0x42a2f5,handleIRemoveCol as _0x1fc408,handleMoveRange as _0x421974,handleInsertRow as _0x315df1,handleInsertRangeMoveRight as _0x217005,handleInsertRangeMoveDown as _0x5b6202,handleInsertCol as _0x4233ef,handleDeleteRangeMoveUp as _0x420c22,handleDeleteRangeMoveLeft as _0x1cfcce,runRefRangeMutations as _0x2c1b9b,SetWorksheetActivateCommand as _0x3d1123}from'@univerjs/sheets';import{IRenderManagerService as _0x1c6d4f,Shape as _0x4ff6eb,Rect as _0x2a8215,getColor as _0x482e95,RegularPolygon as _0xf43d48,TRANSFORM_CHANGE_OBSERVABLE_TYPE as _0x136872,Vector2 as _0xef5a49}from'@univerjs/engine-render';import{DocSelectionManagerService as _0x21931c,RichTextEditingMutation as _0x3782a9,SetTextSelectionsOperation as _0x5a8a91,DocSkeletonManagerService as _0x6478fd}from'@univerjs/docs';import{ImageSourceType as _0x5d934f,ImageUploadStatusType as _0x4c6dd9,IImageIoService as _0x3279d3}from'@univerjs/drawing';import{deserializeRangeWithSheet as _0x257946,serializeRangeWithSheet as _0x37a355}from'@univerjs/engine-formula';import{SheetSkeletonManagerService as _0x1ddfd6,VIEWPORT_KEY as _0x58605e,getCoordByCell as _0x20a702,getSheetObject as _0x28db2f,SheetPermissionInitController as _0x46d835}from'@univerjs/sheets-ui';import _0x498920,{forwardRef as _0x520498,useRef as _0x3c8608,createElement as _0x352b29,useCallback as _0x57de83}from'react';import{IRemoteInstanceService as _0x16a925}from'@univerjs/rpc';import{getAttachHeader as _0x148051}from'@univerjs-pro/license';const Sn=_0x4d2b9e(0x439),pn=_0x4d2b9e(0x53b),vn=_0x4d2b9e(0x30a),La='SEND_CHANGESET_TIMEOUT',In=0x7d0,En='COLLAB_WEB_SOCKET_URL',Cn=_0x4d2b9e(0x4b3),bn=_0x4d2b9e(0x45b),Tn=0x7530,$s=_0x4d2b9e(0x220),js=0x4e20,Rn=0x4e20,On=_0x4d2b9e(0x2ff),Dn=0x3,wn=_0x4d2b9e(0x402),Pn=0x3e8,yn=_0x4d2b9e(0x3e4),Un=_0x4d2b9e(0x4ec),Nn=_0x4d2b9e(0x31a),Mn=_0x4d2b9e(0x4a3);var xs=(_0x4a88d5=>(_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x491)]=0x0]=_0x4d2b9e(0x491),_0x4a88d5[_0x4a88d5['OK']=0x1]='OK',_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x21e)]=0x2]=_0x4d2b9e(0x21e),_0x4a88d5[_0x4a88d5['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x1ed)]=0x4]=_0x4d2b9e(0x1ed),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x275)]=0x5]=_0x4d2b9e(0x275),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x3d6)]=0x6]=_0x4d2b9e(0x3d6),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x436)]=0x7]=_0x4d2b9e(0x436),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x438)]=0x8]=_0x4d2b9e(0x438),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x455)]=0x9]='COMPLETION_FINISHED',_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x2fb)]=0x1389]=_0x4d2b9e(0x2fb),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x313)]=0x1771]=_0x4d2b9e(0x313),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x4ba)]=0x1772]=_0x4d2b9e(0x4ba),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x551)]=0x1773]=_0x4d2b9e(0x551),_0x4a88d5[_0x4a88d5['APPLY_REJECT']=0x1b59]=_0x4d2b9e(0x434),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x2a5)]=0x1b5a]=_0x4d2b9e(0x2a5),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x237)]=0x1b5b]=_0x4d2b9e(0x237),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x1fb)]=0x1b5c]=_0x4d2b9e(0x1fb),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x4e7)]=0x1b5d]='APPLY_DUPLICATED',_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x3ff)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x4a88d5[_0x4a88d5['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4d2b9e(0x346),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x32e)]=0x232a]=_0x4d2b9e(0x32e),_0x4a88d5[_0x4a88d5['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x4d2b9e(0x224),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x28c)]=0x232c]=_0x4d2b9e(0x28c),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x3de)]=0x232d]=_0x4d2b9e(0x3de),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x2b8)]=0x2711]=_0x4d2b9e(0x2b8),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x48d)]=0x2712]=_0x4d2b9e(0x48d),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x4c8)]=0x2713]=_0x4d2b9e(0x4c8),_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x3ac)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4a88d5[_0x4a88d5[_0x4d2b9e(0x49d)]=-0x1]='UNRECOGNIZED',_0x4a88d5))(xs||{}),k=(_0x37af74=>(_0x37af74[_0x37af74[_0x4d2b9e(0x38c)]=0x0]=_0x4d2b9e(0x38c),_0x37af74[_0x37af74[_0x4d2b9e(0x447)]=0x1]=_0x4d2b9e(0x447),_0x37af74[_0x37af74[_0x4d2b9e(0x32b)]=0x2]=_0x4d2b9e(0x32b),_0x37af74[_0x37af74['UNIVER_SLIDE']=0x3]=_0x4d2b9e(0x21d),_0x37af74[_0x37af74[_0x4d2b9e(0x292)]=0x4]='UNIVER_PROJECT',_0x37af74[_0x37af74[_0x4d2b9e(0x49d)]=-0x1]='UNRECOGNIZED',_0x37af74))(k||{}),I=(_0x5cc7bb=>(_0x5cc7bb[_0x5cc7bb[_0x4d2b9e(0x20a)]=0x0]=_0x4d2b9e(0x20a),_0x5cc7bb[_0x5cc7bb[_0x4d2b9e(0x3b5)]=0x1]=_0x4d2b9e(0x3b5),_0x5cc7bb[_0x5cc7bb[_0x4d2b9e(0x33a)]=0x2]='JOIN',_0x5cc7bb[_0x5cc7bb[_0x4d2b9e(0x2d6)]=0x3]=_0x4d2b9e(0x2d6),_0x5cc7bb[_0x5cc7bb[_0x4d2b9e(0x43a)]=0x4]=_0x4d2b9e(0x43a),_0x5cc7bb[_0x5cc7bb['HEARTBEAT']=0x5]=_0x4d2b9e(0x550),_0x5cc7bb[_0x5cc7bb[_0x4d2b9e(0x4f1)]=0x6]=_0x4d2b9e(0x4f1),_0x5cc7bb[_0x5cc7bb[_0x4d2b9e(0x49d)]=-0x1]='UNRECOGNIZED',_0x5cc7bb))(I||{}),Vt=(_0x2f41ed=>(_0x2f41ed[_0x2f41ed['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x2f41ed[_0x2f41ed['OK']=0x1]='OK',_0x2f41ed[_0x2f41ed[_0x4d2b9e(0x1e2)]=0x2]=_0x4d2b9e(0x1e2),_0x2f41ed[_0x2f41ed[_0x4d2b9e(0x49d)]=-0x1]=_0x4d2b9e(0x49d),_0x2f41ed))(Vt||{}),Hs=(_0x2e7349=>(_0x2e7349[_0x2e7349[_0x4d2b9e(0x44d)]=0x0]='Undefined',_0x2e7349[_0x2e7349[_0x4d2b9e(0x2f3)]=0x1]=_0x4d2b9e(0x2f3),_0x2e7349[_0x2e7349['HttpExport']=0x2]=_0x4d2b9e(0x317),_0x2e7349[_0x2e7349[_0x4d2b9e(0x2ae)]=0x3]=_0x4d2b9e(0x2ae),_0x2e7349[_0x2e7349[_0x4d2b9e(0x252)]=0x4]=_0x4d2b9e(0x252),_0x2e7349[_0x2e7349['UNRECOGNIZED']=-0x1]=_0x4d2b9e(0x49d),_0x2e7349))(Hs||{});const $=_0x4d2b9e(0x1f5),An={};function Ln(_0xc43ae1){const _0x3f4cd5=_0x4d2b9e;var _0x598170,_0x422414,_0x71e22a,_0x37d98f;const _0x5b43c6=_0xc43ae1[_0x3f4cd5(0x4b2)],_0x487b45=JSON[_0x3f4cd5(0x2c5)](_0x5b43c6);switch(_0x487b45[_0x3f4cd5(0x40a)]){case I[_0x3f4cd5(0x550)]:case I[_0x3f4cd5(0x3b5)]:{const _0x24178b=_0x487b45[_0x3f4cd5(0x52f)];return{..._0x487b45,'data':_0x24178b,'cmd':_0x487b45[_0x3f4cd5(0x40a)]};}case I[_0x3f4cd5(0x33a)]:{const _0x1052c1=_0x487b45[_0x3f4cd5(0x34a)];return{..._0x487b45,'data':_0x1052c1,'cmd':_0x487b45[_0x3f4cd5(0x40a)]};}case I['RECV']:{const _0x4b4c0b=_0x487b45['collaMsg'];switch(_0x4b4c0b[_0x3f4cd5(0x4b6)]){case _0x3e8b39['PERMISSION_REJ']:return{..._0x487b45,'data':{..._0x4b4c0b,'data':(_0x598170=_0x4b4c0b[_0x3f4cd5(0x3e6)])==null?void 0x0:_0x598170['cs']},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x22b)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':(_0x422414=_0x4b4c0b[_0x3f4cd5(0x46a)])==null?void 0x0:_0x422414['cs']},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x332)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':(_0x71e22a=_0x4b4c0b[_0x3f4cd5(0x2ce)])==null?void 0x0:_0x71e22a['cs']},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x2f5)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':(_0x37d98f=_0x4b4c0b[_0x3f4cd5(0x482)])==null?void 0x0:_0x37d98f['cs']},'cmd':_0x487b45['cmd']};case _0x3e8b39[_0x3f4cd5(0x445)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b['updateCursorEvent']},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x1d0)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b['joinEvent']},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x3c7)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b[_0x3f4cd5(0x3c4)]},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39['LIVESHARE_NEW_HOST']:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b[_0x3f4cd5(0x2e6)]},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39['LIVESHARE_FETCH_OPERATIONS']:case _0x3e8b39['LIVESHARE_OPERATION']:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b[_0x3f4cd5(0x2d0)]},'cmd':_0x487b45['cmd']};case _0x3e8b39[_0x3f4cd5(0x208)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b[_0x3f4cd5(0x2e6)]},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x270)]:return{..._0x487b45,'data':_0x4b4c0b,'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x547)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b[_0x3f4cd5(0x4df)]},'cmd':_0x487b45['cmd']};case _0x3e8b39['UPDATE_PERMISSION_OBJ']:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b[_0x3f4cd5(0x4fd)]},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};case _0x3e8b39[_0x3f4cd5(0x449)]:return{..._0x487b45,'data':{..._0x4b4c0b,'data':_0x4b4c0b[_0x3f4cd5(0x312)]},'cmd':_0x487b45[_0x3f4cd5(0x40a)]};default:return _0x487b45;}}default:return _0x487b45;}}function $n(_0x194336){const _0x57364f=_0x4d2b9e;switch(_0x194336[_0x57364f(0x40a)]){case I[_0x57364f(0x550)]:case I[_0x57364f(0x3b5)]:return JSON[_0x57364f(0x2d9)]({'cmd':_0x194336[_0x57364f(0x40a)],'routeKey':_0x194336[_0x57364f(0x345)]});case I[_0x57364f(0x43a)]:{let _0x479964;switch(_0x194336[_0x57364f(0x4b2)][_0x57364f(0x4b6)]){case _0x3e8b39[_0x57364f(0x445)]:{_0x479964={'eventID':_0x3e8b39['UPDATE_CURSOR'],'updateCursorEvent':_0x194336[_0x57364f(0x4b2)][_0x57364f(0x4b2)]};break;}case _0x3e8b39[_0x57364f(0x3c7)]:{_0x479964={'eventID':_0x3e8b39['USERS_LEAVE'],'leaveEvent':_0x194336['data'][_0x57364f(0x4b2)]};break;}case _0x3e8b39[_0x57364f(0x1d0)]:{_0x479964={'eventID':_0x3e8b39['USERS_ENTER'],'joinEvent':_0x194336[_0x57364f(0x4b2)][_0x57364f(0x4b2)]};break;}case _0x3e8b39[_0x57364f(0x4f9)]:{_0x479964={'eventID':_0x3e8b39[_0x57364f(0x4f9)],'liveShareNewHost':_0x194336[_0x57364f(0x4b2)][_0x57364f(0x4b2)]};break;}case _0x3e8b39['LIVESHARE_OPERATION']:{_0x479964={'eventID':_0x3e8b39[_0x57364f(0x3ea)],'liveShareOperation':_0x194336[_0x57364f(0x4b2)][_0x57364f(0x4b2)]};break;}case _0x3e8b39[_0x57364f(0x208)]:{_0x479964={'eventID':_0x3e8b39[_0x57364f(0x208)],'liveShareTerminate':_0x194336[_0x57364f(0x4b2)][_0x57364f(0x4b2)]};break;}case _0x3e8b39[_0x57364f(0x38f)]:{_0x479964={'eventID':_0x3e8b39[_0x57364f(0x38f)],'liveShareRequestHost':_0x194336[_0x57364f(0x4b2)][_0x57364f(0x4b2)]};break;}case _0x3e8b39[_0x57364f(0x203)]:{_0x479964={'eventID':_0x3e8b39['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x479964={'eventID':_0x194336[_0x57364f(0x4b2)]['eventID']};}return JSON[_0x57364f(0x2d9)]({'cmd':_0x194336['cmd'],'routeKey':_0x194336[_0x57364f(0x345)],'collaMsg':_0x479964});}case I[_0x57364f(0x33a)]:return JSON[_0x57364f(0x2d9)]({'cmd':_0x194336['cmd'],'routeKey':_0x194336[_0x57364f(0x345)],'joinReq':_0x194336[_0x57364f(0x4b2)]});case I['LEAVE']:return JSON['stringify']({'cmd':_0x194336[_0x57364f(0x40a)],'routeKey':_0x194336[_0x57364f(0x345)],'leaveReq':_0x194336['data']});default:throw new Error(_0x57364f(0x324));}}var jn=Object[_0x4d2b9e(0x47b)],xn=Object['getOwnPropertyDescriptor'],Hn=(_0x275abf,_0x178056,_0x5af15c,_0x3921e0)=>{const _0x502614=_0x4d2b9e;for(var _0xb85af9=_0x3921e0>0x1?void 0x0:_0x3921e0?xn(_0x178056,_0x5af15c):_0x178056,_0x27d63b=_0x275abf[_0x502614(0x3b7)]-0x1,_0x5b29da;_0x27d63b>=0x0;_0x27d63b--)(_0x5b29da=_0x275abf[_0x27d63b])&&(_0xb85af9=(_0x3921e0?_0x5b29da(_0x178056,_0x5af15c,_0xb85af9):_0x5b29da(_0xb85af9))||_0xb85af9);return _0x3921e0&&_0xb85af9&&jn(_0x178056,_0x5af15c,_0xb85af9),_0xb85af9;},Oe=(_0x2298e0,_0x54bd3d)=>(_0x5527d,_0x44b97e)=>_0x54bd3d(_0x5527d,_0x44b97e,_0x2298e0);const ks=_0x3bdb6e(_0x4d2b9e(0x3a2));function kn(_0x282581,_0x4daacf,_0x412391){const _0xaa8991=_0x4d2b9e;return _0x282581+'/'+_0x4daacf+_0xaa8991(0x39a)+_0x412391+_0xaa8991(0x377);}let Ct=class extends _0x5f4ac3{constructor(_0xa6f481,_0x404a49,_0xda76d1,_0x5501b3,_0x4e5827){const _0xac5a70=_0x4d2b9e;super(),this[_0xac5a70(0x253)]=_0xa6f481,this[_0xac5a70(0x1d2)]=_0x404a49,this[_0xac5a70(0x376)]=_0xda76d1,this[_0xac5a70(0x4fb)]=_0x5501b3,this[_0xac5a70(0x263)]=_0x4e5827;}[_0x4d2b9e(0x3f2)](_0x39fe03){const _0x23a458=_0x4d2b9e,_0x240d99=this[_0x23a458(0x1d2)]['createSocket'](_0x39fe03);if(!_0x240d99)throw new Error(_0x23a458(0x480));const _0x2f455a=new _0x41922f(),_0x524430=new _0x1eeb2c();_0x2f455a[_0x23a458(0x36d)](_0x240d99[_0x23a458(0x1d6)]['subscribe'](_0x51fc92=>_0x524430[_0x23a458(0x221)](_0x51fc92))),_0x2f455a[_0x23a458(0x36d)](_0xd3e61d(()=>_0x524430['complete']()));const _0x2d33b3=new _0x1eeb2c();_0x2f455a[_0x23a458(0x36d)](_0x240d99[_0x23a458(0x532)][_0x23a458(0x442)](_0x34c43f=>_0x2d33b3[_0x23a458(0x221)](_0x34c43f))),_0x2f455a['add'](_0xd3e61d(()=>_0x2d33b3[_0x23a458(0x2c6)]()));const _0x219c55=new _0x1eeb2c();_0x2f455a[_0x23a458(0x36d)](_0x240d99[_0x23a458(0x257)][_0x23a458(0x442)](_0x4a8189=>{const _0x36b374=_0x23a458,_0x1ebf81=Ln(_0x4a8189);_0x219c55[_0x36b374(0x221)](_0x1ebf81);})),_0x2f455a[_0x23a458(0x36d)](_0xd3e61d(()=>_0x219c55[_0x23a458(0x2c6)]()));let _0x358334;const _0x2cbf44=()=>{const _0x5d2d7c=_0x23a458;_0x2d33b3[_0x5d2d7c(0x221)](new Event(_0x5d2d7c(0x3f9))),_0x524430[_0x5d2d7c(0x221)](new CloseEvent(_0x5d2d7c(0x3f9))),_0x358334[_0x5d2d7c(0x424)]();};return _0x358334={'memberID':'','close$':_0x524430[_0x23a458(0x3e3)](),'error$':_0x2d33b3[_0x23a458(0x3e3)](),'open$':_0x240d99[_0x23a458(0x343)],'message$':_0x219c55[_0x23a458(0x3e3)](),'send':_0x5d50d2=>{const _0x142420=_0x23a458;if(_0x5d50d2[_0x142420(0x40a)]===I[_0x142420(0x43a)]){if(_0x5d50d2[_0x142420(0x4b2)][_0x142420(0x4b6)]===_0x3e8b39[_0x142420(0x226)]){this[_0x142420(0x49e)](_0x358334,_0x5d50d2[_0x142420(0x4b2)])[_0x142420(0x493)](_0x2a916c=>{const _0x33f69f=_0x142420;this[_0x33f69f(0x4fb)]['error'](_0x2a916c),_0x2cbf44();});return;}if(_0x5d50d2['data'][_0x142420(0x4b6)]===_0x3e8b39[_0x142420(0x48b)]){const _0x334443=_0x5d50d2['data'];this[_0x142420(0x3e8)](_0x334443)[_0x142420(0x399)](_0x33fe4f=>{const _0x43cb52=_0x142420;_0x219c55['next']({'cmd':I[_0x43cb52(0x4f1)],'code':Vt['OK'],'routeKey':_0x334443['data']['unitID'],'routeType':'','data':{'eventID':_0x3e8b39['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x33fe4f}}});})[_0x142420(0x493)](_0xab0c0c=>{const _0x499c88=_0x142420;this[_0x499c88(0x4fb)][_0x499c88(0x3fd)](_0xab0c0c),_0x2cbf44();});return;}}_0x240d99[_0x142420(0x26c)]($n(_0x5d50d2));},'close':()=>{const _0x465e79=_0x23a458;_0x240d99['close'](),_0x2f455a[_0x465e79(0x485)]();}},_0x358334;}async[_0x4d2b9e(0x49e)](_0x3f78bc,_0x37cd38){const _0xfa7696=_0x4d2b9e;var _0x2be56f,_0x1dbea0;const {unitType:_0x585ef1,unitID:_0x559703,changeset:_0x38608f}=_0x37cd38[_0xfa7696(0x4b2)],_0x1c5b6c={'unitID':_0x559703,'memberID':_0x3f78bc[_0xfa7696(0x4cb)],'type':_0x585ef1,'changeset':_0x24d166(_0x38608f)},_0xd41ab2=this[_0xfa7696(0x376)][_0xfa7696(0x352)](yn),_0x1b8916=this[_0xfa7696(0x376)][_0xfa7696(0x352)]($),_0x127696=kn((_0x1dbea0=(_0x2be56f=_0x1b8916==null?void 0x0:_0x1b8916[_0xfa7696(0x533)])!=null?_0x2be56f:_0xd41ab2)!=null?_0x1dbea0:Un,_0x585ef1,_0x559703);try{await this['_http'][_0xfa7696(0x383)](_0x127696,{'body':_0x1c5b6c});}catch(_0x2e3c0f){throw this['_logService']['error'](_0xfa7696(0x211),'submit\x20changeset\x20error!'),_0x2e3c0f;}}async[_0x4d2b9e(0x3e8)](_0x5b66b6){const _0x1f75a0=_0x4d2b9e,{unitID:_0x1b487c,from:_0x3f4b89,to:_0x571a45,unitType:_0x3add20}=_0x5b66b6[_0x1f75a0(0x4b2)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x1b487c,'type':_0x3add20,'from':_0x3f4b89,'to':_0x571a45}))[_0x1f75a0(0x4d6)];}};Ct=Hn([Oe(0x0,_0x3a6c9c(_0x5e0b3d)),Oe(0x1,_0x3a6c9c(_0xbe274e)),Oe(0x2,_0x542b48),Oe(0x3,_0x4872ae),Oe(0x4,_0x4a5b4e)],Ct);const Bn='collaboration_new_changeset';function Vn(_0x5abf7f){return JSON['stringify'](_0x5abf7f)['length'];}class Bs{constructor(){const _0x5d12b3=_0x4d2b9e;l(this,'_commentUpdate$',new _0x1eeb2c()),l(this,_0x5d12b3(0x3f1),this[_0x5d12b3(0x4b4)][_0x5d12b3(0x3e3)]());}[_0x4d2b9e(0x238)](_0x52d4b4){const _0x32cb9b=_0x4d2b9e;this[_0x32cb9b(0x4b4)][_0x32cb9b(0x221)](_0x52d4b4);}}var Fn=Object[_0x4d2b9e(0x47b)],Wn=Object['getOwnPropertyDescriptor'],Gn=(_0x38cc01,_0x591a68,_0x197b52,_0x3c449e)=>{for(var _0x2ceb52=_0x3c449e>0x1?void 0x0:_0x3c449e?Wn(_0x591a68,_0x197b52):_0x591a68,_0x442cab=_0x38cc01['length']-0x1,_0x4a26a4;_0x442cab>=0x0;_0x442cab--)(_0x4a26a4=_0x38cc01[_0x442cab])&&(_0x2ceb52=(_0x3c449e?_0x4a26a4(_0x591a68,_0x197b52,_0x2ceb52):_0x4a26a4(_0x2ceb52))||_0x2ceb52);return _0x3c449e&&_0x2ceb52&&Fn(_0x591a68,_0x197b52,_0x2ceb52),_0x2ceb52;},as=(_0xc4a753,_0x24fcda)=>(_0x19766d,_0x112bb6)=>_0x24fcda(_0x19766d,_0x112bb6,_0xc4a753);let ce=class extends _0x5f4ac3{constructor(_0x27907f,_0x1d0e18){const _0x5e54a4=_0x4d2b9e;super(),l(this,_0x5e54a4(0x200),new Map()),(this['_univerInstanceService']=_0x27907f,this[_0x5e54a4(0x27b)]=_0x1d0e18,this[_0x5e54a4(0x23d)](_0xd3e61d(_0x18ccc3(this[_0x5e54a4(0x2af)][_0x5e54a4(0x31c)](_0x20a2e2[_0x5e54a4(0x32b)])[_0x5e54a4(0x3a1)](_0x5cd2f6(_0x431286=>_0x431286[_0x5e54a4(0x459)]())),this['_univerInstanceService'][_0x5e54a4(0x31c)](_0x20a2e2['UNIVER_DOC'])[_0x5e54a4(0x3a1)](_0x5cd2f6(_0x55ecd0=>_0x55ecd0[_0x5e54a4(0x459)]())),this[_0x5e54a4(0x2af)][_0x5e54a4(0x31c)](_0x20a2e2[_0x5e54a4(0x21d)])[_0x5e54a4(0x3a1)](_0x5cd2f6(_0x1c1a79=>_0x1c1a79['getUnitId']())))[_0x5e54a4(0x442)](_0x375063=>this[_0x5e54a4(0x50a)](_0x375063)))));}[_0x4d2b9e(0x38a)](_0xf1cc20){const _0x440eeb=_0x4d2b9e;this[_0x440eeb(0x27b)][_0x440eeb(0x38a)](_0xf1cc20);}['getCurrentUser'](){const _0x203047=_0x4d2b9e;return this['_userManagerService'][_0x203047(0x47d)]();}[_0x4d2b9e(0x359)](_0x129f6b,_0xcf951c){const _0x5c99a4=_0x4d2b9e;let _0x23f850=this[_0x5c99a4(0x200)][_0x5c99a4(0x29a)](_0x129f6b);_0x23f850||(_0x23f850=new Yn(),this[_0x5c99a4(0x200)][_0x5c99a4(0x2be)](_0x129f6b,_0x23f850)),_0x23f850[_0x5c99a4(0x359)](_0xcf951c);}[_0x4d2b9e(0x2bd)](_0x1630c4,_0x880e25){const _0xf4b0=_0x4d2b9e,_0x1d0bd4=this['_roomMembers'][_0xf4b0(0x29a)](_0x1630c4);_0x1d0bd4&&_0x1d0bd4[_0xf4b0(0x2bd)](_0x880e25);}['getRoom'](_0x62cd5d){const _0x5cfdd7=_0x4d2b9e;return this[_0x5cfdd7(0x200)][_0x5cfdd7(0x29a)](_0x62cd5d);}['getMember'](_0x12fa39,_0x1e07a6){const _0x229aac=_0x4d2b9e,_0x172097=this[_0x229aac(0x200)][_0x229aac(0x29a)](_0x12fa39);if(_0x172097)return _0x172097[_0x229aac(0x302)](_0x1e07a6);}[_0x4d2b9e(0x50a)](_0xa2a93c){const _0x562290=_0x4d2b9e,_0xead643=this[_0x562290(0x200)]['get'](_0xa2a93c);_0xead643&&(_0xead643[_0x562290(0x485)](),this['_roomMembers'][_0x562290(0x1f1)](_0xa2a93c));}[_0x4d2b9e(0x485)](){const _0x4dbac8=_0x4d2b9e;this['_roomMembers']['forEach'](_0x561fdb=>_0x561fdb[_0x4dbac8(0x485)]()),this[_0x4dbac8(0x200)][_0x4dbac8(0x360)]();}};ce=Gn([as(0x0,_0x5dad13),as(0x1,_0x3a6c9c(_0x1e4f80))],ce);class Yn extends _0x5f4ac3{constructor(){const _0x5c98ca=_0x4d2b9e;super(...arguments),l(this,_0x5c98ca(0x4eb),new Map());}[_0x4d2b9e(0x485)](){const _0x590480=_0x4d2b9e;this[_0x590480(0x4eb)]['clear']();}['updateMember'](_0x4b1881){const _0x5e6228=_0x4d2b9e;this[_0x5e6228(0x4eb)]['set'](_0x4b1881[_0x5e6228(0x4cb)],_0x4b1881);}[_0x4d2b9e(0x2bd)](_0x40c281){const _0x50e378=_0x4d2b9e;this[_0x50e378(0x4eb)]['delete'](_0x40c281);}[_0x4d2b9e(0x302)](_0x5038e5){return this['_members']['get'](_0x5038e5);}}var Kn=Object[_0x4d2b9e(0x47b)],Xn=Object[_0x4d2b9e(0x298)],qn=(_0x2282e6,_0x50a088,_0x4afd76,_0x53f7b0)=>{const _0x9fff51=_0x4d2b9e;for(var _0x3b94b7=_0x53f7b0>0x1?void 0x0:_0x53f7b0?Xn(_0x50a088,_0x4afd76):_0x50a088,_0x492059=_0x2282e6[_0x9fff51(0x3b7)]-0x1,_0xc107d7;_0x492059>=0x0;_0x492059--)(_0xc107d7=_0x2282e6[_0x492059])&&(_0x3b94b7=(_0x53f7b0?_0xc107d7(_0x50a088,_0x4afd76,_0x3b94b7):_0xc107d7(_0x3b94b7))||_0x3b94b7);return _0x53f7b0&&_0x3b94b7&&Kn(_0x50a088,_0x4afd76,_0x3b94b7),_0x3b94b7;},J=(_0x25c726,_0x345b75)=>(_0x599167,_0x5a509b)=>_0x345b75(_0x599167,_0x5a509b,_0x25c726),Y=(_0xd725cb=>(_0xd725cb[_0xd725cb['IDLE']=0x0]=_0x4d2b9e(0x3b8),_0xd725cb[_0xd725cb[_0x4d2b9e(0x2b3)]=0x1]='JOINING',_0xd725cb[_0xd725cb[_0x4d2b9e(0x3fe)]=0x2]=_0x4d2b9e(0x3fe),_0xd725cb[_0xd725cb[_0x4d2b9e(0x476)]=0x3]=_0x4d2b9e(0x476),_0xd725cb))(Y||{});let bt=class extends _0x422fed{constructor(_0x5e23d6,_0x4651b4,_0x3dd658,_0x23aa00,_0x6c6258,_0x2f4147,_0x397561,_0xe72ee8,_0x2d8f49,_0x39516e){const _0x4c734d=_0x4d2b9e;super(),l(this,_0x4c734d(0x242),new _0x119970(0x0)),l(this,_0x4c734d(0x2cf),this['_sessionStatus$'][_0x4c734d(0x3e3)]()),l(this,_0x4c734d(0x37d),new _0x1eeb2c()),l(this,_0x4c734d(0x4a1),this[_0x4c734d(0x37d)][_0x4c734d(0x3e3)]()),l(this,_0x4c734d(0x35a)),l(this,_0x4c734d(0x409)),l(this,'_collaborationTimeoutTimer'),l(this,_0x4c734d(0x44e),!0x1),l(this,'_telemetryInfo',null),(this[_0x4c734d(0x384)]=_0x5e23d6,this['_logService']=_0x3dd658,this[_0x4c734d(0x316)]=_0x23aa00,this[_0x4c734d(0x52c)]=_0x6c6258,this[_0x4c734d(0x376)]=_0x2f4147,this[_0x4c734d(0x4f2)]=_0x397561,this['_memberService']=_0xe72ee8,this['_commentService']=_0x2d8f49,this[_0x4c734d(0x46d)]=_0x39516e,this[_0x4c734d(0x44e)]=!!this[_0x4c734d(0x46d)],_0x4651b4[_0x4c734d(0x3a1)](_0x1c623f(this[_0x4c734d(0x419)]))[_0x4c734d(0x442)](_0x5c6548=>{const _0x1d15af=_0x4c734d;var _0x5f5876;typeof _0x5c6548>'u'||(this[_0x1d15af(0x35a)]=_0x5c6548,_0x5c6548?(this[_0x1d15af(0x3cc)](_0x5c6548),this[_0x1d15af(0x409)]=_0x5c6548[_0x1d15af(0x257)]['subscribe'](_0x416fbf=>{const _0x33afe0=_0x1d15af;_0x416fbf['routeKey']===this[_0x33afe0(0x384)]&&this[_0x33afe0(0x232)](_0x416fbf);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x1d15af(0x242)][_0x1d15af(0x221)](0x2),(_0x5f5876=this['_socketMessageSubscription'])==null||_0x5f5876[_0x1d15af(0x3aa)](),this[_0x1d15af(0x409)]=null));}),this['disposeWithMe'](this[_0x4c734d(0x316)]['registerOnClose'](()=>{const _0x20d953=_0x4c734d;var _0xbd36c5;(_0xbd36c5=this[_0x20d953(0x35a)])==null||_0xbd36c5[_0x20d953(0x26c)]({'cmd':I[_0x20d953(0x2d6)],'data':{'roomID':this[_0x20d953(0x384)]}});})));}get[_0x4d2b9e(0x425)](){return this['_sessionStatus$']['getValue']();}[_0x4d2b9e(0x3a0)](){const _0x3ac1ab=_0x4d2b9e;var _0x1becc9,_0x17b56b;return(_0x17b56b=(_0x1becc9=this[_0x3ac1ab(0x35a)])==null?void 0x0:_0x1becc9[_0x3ac1ab(0x4cb)])!=null?_0x17b56b:null;}[_0x4d2b9e(0x485)](){const _0x6e8b09=_0x4d2b9e;super['dispose'](),this[_0x6e8b09(0x419)][_0x6e8b09(0x221)](),this['dispose$'][_0x6e8b09(0x2c6)]();}[_0x4d2b9e(0x424)](){const _0x2ad5a9=_0x4d2b9e;var _0x2ee262,_0x54dd76;this[_0x2ad5a9(0x4aa)](),(_0x2ee262=this[_0x2ad5a9(0x35a)])==null||_0x2ee262[_0x2ad5a9(0x26c)]({'cmd':I[_0x2ad5a9(0x2d6)],'data':{'roomID':this[_0x2ad5a9(0x384)]}}),(_0x54dd76=this[_0x2ad5a9(0x35a)])==null||_0x54dd76['close'](),this[_0x2ad5a9(0x37d)]['complete'](),this[_0x2ad5a9(0x242)][_0x2ad5a9(0x2c6)](),this[_0x2ad5a9(0x485)]();}['_onCombEvent'](_0x5d7e94){const _0x1ac16e=_0x4d2b9e;_0x5d7e94[_0x1ac16e(0x40a)]===I[_0x1ac16e(0x33a)]?this[_0x1ac16e(0x4a8)](_0x5d7e94):_0x5d7e94[_0x1ac16e(0x40a)]===I['RECV']&&this[_0x1ac16e(0x462)](_0x5d7e94);}[_0x4d2b9e(0x3cc)](_0x577113){const _0xc3cc8e=_0x4d2b9e;this['_sessionStatus$'][_0xc3cc8e(0x221)](0x1),_0x577113['send']({'cmd':I['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xc3cc8e(0x384)]}]}});}['_onJoinRoomEvent'](_0x72b648){const _0x594ec0=_0x4d2b9e;var _0x4be4d7;if(_0x72b648['code']===Vt[_0x594ec0(0x1e2)]){this['_messageService']['show']({'type':_0x3a3d7c[_0x594ec0(0x37e)],'content':this[_0x594ec0(0x4f2)]['t'](_0x594ec0(0x28e))}),this['_sessionStatus$'][_0x594ec0(0x221)](0x2);return;}this[_0x594ec0(0x242)]['next'](0x3);const _0x1cbbfe=(_0x4be4d7=_0x72b648[_0x594ec0(0x4b2)][_0x594ec0(0x1d5)][this[_0x594ec0(0x384)]])==null?void 0x0:_0x4be4d7[_0x594ec0(0x37b)];_0x1cbbfe&&_0x1cbbfe[_0x594ec0(0x380)](_0x22c6af=>this[_0x594ec0(0x31e)][_0x594ec0(0x359)](this[_0x594ec0(0x384)],_0x22c6af));}['_onRecvEvent'](_0x4479ac){const _0x446247=_0x4d2b9e;try{const _0x172ccb=_0x4479ac[_0x446247(0x4b2)];switch(_0x172ccb[_0x446247(0x4b6)]){case _0x3e8b39['USERS_ENTER']:this[_0x446247(0x30e)](_0x172ccb),this['_event$']['next'](_0x172ccb);break;case _0x3e8b39['USERS_LEAVE']:this[_0x446247(0x22c)](_0x172ccb),this['_event$']['next'](_0x172ccb);break;case _0x3e8b39[_0x446247(0x22b)]:this[_0x446247(0x41c)](),this[_0x446247(0x3c0)](),this[_0x446247(0x37d)][_0x446247(0x221)](_0x172ccb);break;case _0x3e8b39[_0x446247(0x270)]:this['_logService'][_0x446247(0x3fd)](_0x446247(0x492)+JSON[_0x446247(0x2d9)](_0x172ccb)),this['_event$']['next'](_0x172ccb);break;case _0x3e8b39['COMMENT_UPDATE']:this[_0x446247(0x461)][_0x446247(0x238)](_0x172ccb[_0x446247(0x4b2)]),this[_0x446247(0x37d)]['next'](_0x172ccb);break;default:this[_0x446247(0x37d)][_0x446247(0x221)](_0x172ccb);}}catch(_0x5f2d30){this[_0x446247(0x4fb)]['error'](_0x5f2d30,_0x4479ac);}}['_onUserJoin'](_0x27623a){const _0x18c5f6=_0x4d2b9e;this[_0x18c5f6(0x31e)][_0x18c5f6(0x359)](this['_unitID'],_0x27623a[_0x18c5f6(0x4b2)]);}[_0x4d2b9e(0x22c)](_0x3084fe){const _0x30e506=_0x4d2b9e;this[_0x30e506(0x31e)][_0x30e506(0x2bd)](this[_0x30e506(0x384)],_0x3084fe[_0x30e506(0x4b2)][_0x30e506(0x4cb)]);}async['send'](_0x34bbe8,_0x42b9d0){const _0x4bd1f2=_0x4d2b9e;if(this[_0x4bd1f2(0x425)]!==0x3||!this[_0x4bd1f2(0x35a)])throw new Error(_0x4bd1f2(0x375));try{_0x34bbe8[_0x4bd1f2(0x4b6)]===_0x3e8b39[_0x4bd1f2(0x226)]&&(this[_0x4bd1f2(0x53d)](),this[_0x4bd1f2(0x4f0)](_0x34bbe8)),this[_0x4bd1f2(0x35a)][_0x4bd1f2(0x26c)]({'cmd':I['INGEST'],'routeKey':_0x42b9d0,'routeType':'','data':_0x34bbe8});}catch(_0x4bd97a){this[_0x4bd1f2(0x4fb)][_0x4bd1f2(0x3fd)](_0x4bd97a);}}[_0x4d2b9e(0x53d)](){const _0x113bae=_0x4d2b9e;var _0x25871b;this[_0x113bae(0x4cd)]=window[_0x113bae(0x3da)](()=>{const _0x2da5f0=_0x113bae;this['_collaborationTimeoutTimer']=null,this[_0x2da5f0(0x52c)]['show']({'type':_0x3a3d7c[_0x2da5f0(0x460)],'content':this['_localeService']['t'](_0x2da5f0(0x397))});},(_0x25871b=this['_configService'][_0x113bae(0x352)]($s))!=null?_0x25871b:js);}['_clearCollaborationTimeoutTimer'](){const _0x509140=_0x4d2b9e;this[_0x509140(0x4cd)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x509140(0x4cd)]=null);}[_0x4d2b9e(0x4f0)](_0x157fd8){const _0x5f0b20=_0x4d2b9e;if(!this[_0x5f0b20(0x44e)])return;const {data:_0x53e3b0}=_0x157fd8,{unitID:_0x172e39,changeset:_0x524665}=_0x53e3b0,{mutations:_0x15ca90,type:_0x4d0dbd}=_0x524665;this[_0x5f0b20(0x1eb)]={'unitId':_0x172e39,'type':_0x4d0dbd,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Vn(_0x15ca90)};}[_0x4d2b9e(0x41c)](){const _0x41a411=_0x4d2b9e;if(this[_0x41a411(0x44e)]){if(!this[_0x41a411(0x1eb)]){this['_logService'][_0x41a411(0x3fd)]('[CollaborationSession]',_0x41a411(0x2ba));return;}this[_0x41a411(0x1eb)]['stopTime']=performance[_0x41a411(0x2c2)](),this[_0x41a411(0x1eb)][_0x41a411(0x3e5)]=this[_0x41a411(0x1eb)][_0x41a411(0x301)]-this['_telemetryInfo'][_0x41a411(0x1d1)],this[_0x41a411(0x46d)][_0x41a411(0x2df)](Bn,this[_0x41a411(0x1eb)]),this[_0x41a411(0x1eb)]=null;}}[_0x4d2b9e(0x4aa)](){const _0x3c1976=_0x4d2b9e;this[_0x3c1976(0x1eb)]=null;}};bt=qn([J(0x2,_0x4872ae),J(0x3,_0x4d5695),J(0x4,_0x15989f),J(0x5,_0x542b48),J(0x6,_0x3a6c9c(_0x5e971c)),J(0x7,_0x3a6c9c(ce)),J(0x8,_0x3a6c9c(Bs)),J(0x9,_0x2c3c6c(_0x44947a))],bt);var Jn=Object[_0x4d2b9e(0x47b)],zn=Object['getOwnPropertyDescriptor'],Zn=(_0x19ae8f,_0x542d0b,_0x22d5d0,_0x73aa4d)=>{const _0x4c7177=_0x4d2b9e;for(var _0x303f16=_0x73aa4d>0x1?void 0x0:_0x73aa4d?zn(_0x542d0b,_0x22d5d0):_0x542d0b,_0x15ddb8=_0x19ae8f[_0x4c7177(0x3b7)]-0x1,_0x56f362;_0x15ddb8>=0x0;_0x15ddb8--)(_0x56f362=_0x19ae8f[_0x15ddb8])&&(_0x303f16=(_0x73aa4d?_0x56f362(_0x542d0b,_0x22d5d0,_0x303f16):_0x56f362(_0x303f16))||_0x303f16);return _0x73aa4d&&_0x303f16&&Jn(_0x542d0b,_0x22d5d0,_0x303f16),_0x303f16;},fe=(_0x522e50,_0x5114ee)=>(_0x3a3514,_0x3f6738)=>_0x5114ee(_0x3a3514,_0x3f6738,_0x522e50);let he=class extends _0x5f4ac3{constructor(_0x318926,_0x569a75,_0x385970,_0x3ea0d1,_0x4b7e14,_0x280a80){const _0x4c94f0=_0x4d2b9e;super(),l(this,_0x4c94f0(0x4f4),new _0x119970(void 0x0)),l(this,_0x4c94f0(0x241),this[_0x4c94f0(0x4f4)][_0x4c94f0(0x3e3)]()),l(this,_0x4c94f0(0x219),null),l(this,_0x4c94f0(0x400),new Map()),l(this,_0x4c94f0(0x446),new _0x119970(Y[_0x4c94f0(0x3b8)])),l(this,_0x4c94f0(0x41e),this[_0x4c94f0(0x446)][_0x4c94f0(0x3e3)]()),l(this,_0x4c94f0(0x1ee),!0x1),l(this,_0x4c94f0(0x4de)),l(this,_0x4c94f0(0x212),0x0),l(this,_0x4c94f0(0x32d)),l(this,_0x4c94f0(0x3bf)),(this[_0x4c94f0(0x396)]=_0x318926,this[_0x4c94f0(0x4f2)]=_0x569a75,this[_0x4c94f0(0x52c)]=_0x385970,this[_0x4c94f0(0x4fb)]=_0x3ea0d1,this[_0x4c94f0(0x376)]=_0x4b7e14,this[_0x4c94f0(0x414)]=_0x280a80,this[_0x4c94f0(0x391)]());}get[_0x4d2b9e(0x35a)](){const _0x1a13c0=_0x4d2b9e;return this[_0x1a13c0(0x4f4)][_0x1a13c0(0x331)]();}[_0x4d2b9e(0x391)](){const _0x3e2dd7=_0x4d2b9e;this[_0x3e2dd7(0x251)](),this[_0x3e2dd7(0x2ca)]();}[_0x4d2b9e(0x485)](){const _0x30a166=_0x4d2b9e;super[_0x30a166(0x485)](),this[_0x30a166(0x400)][_0x30a166(0x380)](_0x28e4ba=>_0x28e4ba['dispose']()),this['_sessions'][_0x30a166(0x360)](),this[_0x30a166(0x446)][_0x30a166(0x2c6)]();}async[_0x4d2b9e(0x323)](_0x381c76){const _0xff74b0=_0x4d2b9e;if(this[_0xff74b0(0x400)]['has'](_0x381c76))return this[_0xff74b0(0x400)][_0xff74b0(0x29a)](_0x381c76);this[_0xff74b0(0x2f0)]();const _0x31e8ab=this[_0xff74b0(0x396)][_0xff74b0(0x49b)](bt,_0x381c76,this['_socket$'][_0xff74b0(0x3e3)]());return this[_0xff74b0(0x400)][_0xff74b0(0x2be)](_0x381c76,_0x31e8ab),_0x31e8ab;}['closeSession'](_0x517cc4){const _0x4a4487=_0x4d2b9e;var _0x11e7f5;const _0x61bce1=this[_0x4a4487(0x400)][_0x4a4487(0x29a)](_0x517cc4);_0x61bce1&&(this['_sessions'][_0x4a4487(0x1f1)](_0x517cc4),_0x61bce1['close']()),this[_0x4a4487(0x400)]['size']||(_0x11e7f5=this[_0x4a4487(0x35a)])==null||_0x11e7f5[_0x4a4487(0x424)]();}[_0x4d2b9e(0x3dc)](){const _0x3de47=_0x4d2b9e;this[_0x3de47(0x212)]=0x0,this[_0x3de47(0x4de)]!=null&&(clearTimeout(this[_0x3de47(0x4de)]),this[_0x3de47(0x4de)]=null),this[_0x3de47(0x1e8)]();}['_createSocket'](){const _0x54fa54=_0x4d2b9e;var _0x4ae19d,_0x381135;const _0x4153cf=this[_0x54fa54(0x376)]['getConfig'](En),_0x3e1450=this[_0x54fa54(0x376)][_0x54fa54(0x352)]($),_0x4c054=(_0x381135=(_0x4ae19d=_0x3e1450==null?void 0x0:_0x3e1450[_0x54fa54(0x39d)])!=null?_0x4ae19d:_0x4153cf)!=null?_0x381135:Cn,_0x48c918=this[_0x54fa54(0x414)][_0x54fa54(0x3f2)](_0x4c054);return this[_0x54fa54(0x219)]=_0x48c918,_0x48c918;}[_0x4d2b9e(0x2f0)](){const _0x58e364=_0x4d2b9e;var _0x3e6d3b,_0x456000;try{const _0x20c4ae=(_0x456000=(_0x3e6d3b=this[_0x58e364(0x35a)])!=null?_0x3e6d3b:this[_0x58e364(0x219)])!=null?_0x456000:this['_createSocket']();if(_0x20c4ae){const _0x4aeb12=_0x20c4ae[_0x58e364(0x26c)];_0x20c4ae[_0x58e364(0x26c)]=_0x37dbf8=>(this['_rescheduleHeartbeat'](),_0x4aeb12[_0x58e364(0x44a)](_0x20c4ae,[_0x37dbf8])),_0x20c4ae[_0x58e364(0x257)][_0x58e364(0x442)](_0x400246=>this[_0x58e364(0x3ba)](_0x20c4ae,_0x400246)),_0x20c4ae[_0x58e364(0x532)][_0x58e364(0x3a1)](_0x147f82(0x1))['subscribe'](_0x25c7f6=>this[_0x58e364(0x4fb)][_0x58e364(0x3fd)]('[CollaborationSessionService]:\x20socket\x20error',_0x25c7f6)),_0x20c4ae[_0x58e364(0x343)]['pipe'](_0x147f82(0x1))[_0x58e364(0x442)](()=>{const _0x53af2d=_0x58e364;this[_0x53af2d(0x500)](_0x20c4ae);}),_0x20c4ae[_0x58e364(0x1d6)][_0x58e364(0x3a1)](_0x147f82(0x1))[_0x58e364(0x442)](_0x290cbd=>{const _0x5acc51=_0x58e364;this[_0x5acc51(0x4fb)]['debug'](_0x5acc51(0x2bf),_0x5acc51(0x1dc),_0x290cbd),this[_0x5acc51(0x21f)]();});}}catch(_0x2d5eb8){this['_logService'][_0x58e364(0x3fd)](_0x2d5eb8),this[_0x58e364(0x21f)]();}}[_0x4d2b9e(0x500)](_0x331b67){const _0x352a26=_0x4d2b9e;this['_logService']['debug'](_0x352a26(0x2bf),_0x352a26(0x3ca)),_0x331b67['send']({'cmd':I[_0x352a26(0x3b5)]}),this['_rescheduleHeartbeat']();}[_0x4d2b9e(0x251)](){const _0x2c88a9=_0x4d2b9e;window['addEventListener'](_0x2c88a9(0x47c),()=>this[_0x2c88a9(0x27e)]());}[_0x4d2b9e(0x27e)](){const _0x3d2171=_0x4d2b9e;this['_socketReady']=!0x1,this[_0x3d2171(0x219)]=null,this[_0x3d2171(0x446)][_0x3d2171(0x221)](Y[_0x3d2171(0x3fe)]),this[_0x3d2171(0x4f4)][_0x3d2171(0x221)](null),this[_0x3d2171(0x276)](),this[_0x3d2171(0x430)]();}[_0x4d2b9e(0x21f)](){const _0xf45621=_0x4d2b9e;var _0x3a198a;this[_0xf45621(0x27e)](),this[_0xf45621(0x212)]<((_0x3a198a=this['_configService'][_0xf45621(0x352)](On))!=null?_0x3a198a:Dn)?(this[_0xf45621(0x52c)][_0xf45621(0x388)]({'key':_0xf45621(0x37a),'type':_0x3a3d7c[_0xf45621(0x37e)],'content':this[_0xf45621(0x4f2)]['t'](_0xf45621(0x549))}),this[_0xf45621(0x1e8)]()):this[_0xf45621(0x52c)][_0xf45621(0x388)]({'key':_0xf45621(0x37a),'type':_0x3a3d7c[_0xf45621(0x460)],'content':this[_0xf45621(0x4f2)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x5c2c03=_0x4d2b9e,_0x551f4d=()=>{const _0x462e7e=_0x5c56;this[_0x462e7e(0x35a)]||this[_0x462e7e(0x3dc)]();},_0xde30a0=()=>{const _0x59808b=_0x5c56;this['_socket']||document[_0x59808b(0x54b)]===_0x59808b(0x268)||this[_0x59808b(0x3dc)]();};window[_0x5c2c03(0x24c)](_0x5c2c03(0x4d2),_0x551f4d),document['addEventListener'](_0x5c2c03(0x22a),_0xde30a0);}[_0x4d2b9e(0x1e8)](){const _0x11d1fb=_0x4d2b9e;var _0x3cfa39;const _0x1e96b5=this[_0x11d1fb(0x212)],_0x3090e3=this['_configService'][_0x11d1fb(0x352)]($),_0x2e6ca6=_0x1e96b5===0x0?0x0:((_0x3cfa39=_0x3090e3==null?void 0x0:_0x3090e3[_0x11d1fb(0x23a)])!=null?_0x3cfa39:Rn)*0x2**_0x1e96b5;this['_retryConnectingTimer']=window[_0x11d1fb(0x3da)](()=>{const _0x2f7117=_0x11d1fb;clearTimeout(this[_0x2f7117(0x4de)]),this['_retryConnectingTimer']=null,this[_0x2f7117(0x2f0)]();},_0x2e6ca6),this['_retryCount']+=0x1;}[_0x4d2b9e(0x3ba)](_0x3e2231,_0x49e581){const _0x2c99be=_0x4d2b9e,{cmd:_0x2a1f05}=_0x49e581;_0x2a1f05===I[_0x2c99be(0x3b5)]&&!this[_0x2c99be(0x1ee)]&&(_0x3e2231[_0x2c99be(0x4cb)]=_0x49e581[_0x2c99be(0x4b2)]['memberID'],this['_socket$'][_0x2c99be(0x221)](_0x3e2231),this[_0x2c99be(0x446)][_0x2c99be(0x221)](Y[_0x2c99be(0x476)]),this['_socketReady']=!0x0,this[_0x2c99be(0x219)]=null),_0x2a1f05===I[_0x2c99be(0x550)]&&this[_0x2c99be(0x276)](),this['_rescheduleHeartbeat']();}[_0x4d2b9e(0x351)](){const _0x12cb50=_0x4d2b9e;var _0x245d25;this[_0x12cb50(0x430)](),this['_sendHeartbeatTimer']=window[_0x12cb50(0x3da)](()=>this['_sendHeartbeat'](),(_0x245d25=this[_0x12cb50(0x376)]['getConfig'](bn))!=null?_0x245d25:Tn);}[_0x4d2b9e(0x333)](){const _0x3e0a46=_0x4d2b9e;this['_socket'][_0x3e0a46(0x26c)]({'cmd':I['HEARTBEAT']}),this[_0x3e0a46(0x44c)]();}[_0x4d2b9e(0x44c)](){const _0x22d9e5=_0x4d2b9e;var _0x528927;this[_0x22d9e5(0x3bf)]=window[_0x22d9e5(0x3da)](()=>this[_0x22d9e5(0x21f)](),(_0x528927=this['_configService'][_0x22d9e5(0x352)]($s))!=null?_0x528927:js);}[_0x4d2b9e(0x430)](){const _0x586002=_0x4d2b9e;this[_0x586002(0x32d)]!=null&&(clearTimeout(this[_0x586002(0x32d)]),this[_0x586002(0x32d)]=null);}['_clearTimeoutTimer'](){const _0x1dd241=_0x4d2b9e;this[_0x1dd241(0x3bf)]!=null&&(clearTimeout(this[_0x1dd241(0x3bf)]),this[_0x1dd241(0x3bf)]=null);}};he=Zn([fe(0x0,_0x3a6c9c(_0x51895d)),fe(0x1,_0x3a6c9c(_0x5e971c)),fe(0x2,_0x15989f),fe(0x3,_0x4872ae),fe(0x4,_0x542b48),fe(0x5,ks)],he);var T=[];for(var ct=0x0;ct<0x100;++ct)T[_0x4d2b9e(0x52a)]((ct+0x100)[_0x4d2b9e(0x452)](0x10)[_0x4d2b9e(0x3b2)](0x1));function Qn(_0x2574d7,_0x4592f2=0x0){const _0x3528c2=_0x4d2b9e;return(T[_0x2574d7[_0x4592f2+0x0]]+T[_0x2574d7[_0x4592f2+0x1]]+T[_0x2574d7[_0x4592f2+0x2]]+T[_0x2574d7[_0x4592f2+0x3]]+'-'+T[_0x2574d7[_0x4592f2+0x4]]+T[_0x2574d7[_0x4592f2+0x5]]+'-'+T[_0x2574d7[_0x4592f2+0x6]]+T[_0x2574d7[_0x4592f2+0x7]]+'-'+T[_0x2574d7[_0x4592f2+0x8]]+T[_0x2574d7[_0x4592f2+0x9]]+'-'+T[_0x2574d7[_0x4592f2+0xa]]+T[_0x2574d7[_0x4592f2+0xb]]+T[_0x2574d7[_0x4592f2+0xc]]+T[_0x2574d7[_0x4592f2+0xd]]+T[_0x2574d7[_0x4592f2+0xe]]+T[_0x2574d7[_0x4592f2+0xf]])[_0x3528c2(0x548)]();}var He,er=new Uint8Array(0x10);function tr(){const _0x392ae0=_0x4d2b9e;if(!He&&(He=typeof crypto<'u'&&crypto['getRandomValues']&&crypto['getRandomValues']['bind'](crypto),!He))throw new Error(_0x392ae0(0x47f));return He(er);}var sr=typeof crypto<'u'&&crypto[_0x4d2b9e(0x308)]&&crypto[_0x4d2b9e(0x308)]['bind'](crypto);const cs={'randomUUID':sr};function ir(_0x505e9e,_0x54b320,_0x409633){const _0x57a507=_0x4d2b9e;if(cs[_0x57a507(0x308)]&&!_0x54b320&&!_0x505e9e)return cs[_0x57a507(0x308)]();_0x505e9e=_0x505e9e||{};var _0x29ba2f=_0x505e9e[_0x57a507(0x294)]||(_0x505e9e[_0x57a507(0x51f)]||tr)();return _0x29ba2f[0x6]=_0x29ba2f[0x6]&0xf|0x40,_0x29ba2f[0x8]=_0x29ba2f[0x8]&0x3f|0x80,Qn(_0x29ba2f);}var nr=Object['defineProperty'],rr=Object[_0x4d2b9e(0x298)],or=(_0x302e41,_0x592f69,_0x3aea2a,_0xbcd547)=>{const _0x21fa5b=_0x4d2b9e;for(var _0x5a2b4e=_0xbcd547>0x1?void 0x0:_0xbcd547?rr(_0x592f69,_0x3aea2a):_0x592f69,_0x32a67d=_0x302e41[_0x21fa5b(0x3b7)]-0x1,_0xb6e095;_0x32a67d>=0x0;_0x32a67d--)(_0xb6e095=_0x302e41[_0x32a67d])&&(_0x5a2b4e=(_0xbcd547?_0xb6e095(_0x592f69,_0x3aea2a,_0x5a2b4e):_0xb6e095(_0x5a2b4e))||_0x5a2b4e);return _0xbcd547&&_0x5a2b4e&&nr(_0x592f69,_0x3aea2a,_0x5a2b4e),_0x5a2b4e;},ht=(_0x102870,_0x24f49e)=>(_0x266996,_0x2fd010)=>_0x24f49e(_0x266996,_0x2fd010,_0x102870);let Ye=class{constructor(_0x42bb4b,_0x5c83ca,_0x2b5333){const _0x190989=_0x4d2b9e;this['_injector']=_0x42bb4b,this[_0x190989(0x453)]=_0x5c83ca,this[_0x190989(0x373)]=_0x2b5333;}['transformIMECache'](_0x3df128){const _0x40f929=_0x4d2b9e;this[_0x40f929(0x3e1)](_0x3df128),this[_0x40f929(0x1e1)](_0x3df128);}[_0x4d2b9e(0x52d)](_0x4c77c1){const _0x36a0e9=_0x4d2b9e,{unitID:_0x2a7a0a}=_0x4c77c1,_0x4fc3c7=this['_renderManagerService'][_0x36a0e9(0x4ff)](_0x2a7a0a)[_0x36a0e9(0x431)](_0x298dc3),{redoCache:_0x4cd681}=_0x4fc3c7[_0x36a0e9(0x235)]();if(_0x4cd681['length']===0x0)return _0x4c77c1;let _0x4ad653=_0x3e23fb[_0x36a0e9(0x524)](_0x4c77c1['mutations'][0x0]);for(let _0x3eb793=0x0;_0x3eb793<_0x4cd681[_0x36a0e9(0x3b7)];_0x3eb793++){const _0x58fd28={'id':_0x36a0e9(0x27c),'params':{..._0x4cd681[_0x3eb793]}},_0xa1bf36=this[_0x36a0e9(0x453)][_0x36a0e9(0x272)](_0x4ad653,_0x58fd28,!0x1);if(_0x27a6c3(_0xa1bf36))throw _0xa1bf36[_0x36a0e9(0x3fd)];_0x4ad653=_0xa1bf36[_0x36a0e9(0x3ec)];}return{..._0x3e23fb['deepClone'](_0x4c77c1),'mutations':[_0x4ad653]};}['_transformUndoRedoStack'](_0x7bdd5b){const _0x769294=_0x4d2b9e,{unitID:_0x48c5e3}=_0x7bdd5b,_0x447426=this[_0x769294(0x373)]['getRenderById'](_0x48c5e3)['with'](_0x298dc3),{undoCache:_0xfdf523,redoCache:_0x22de8b}=_0x447426[_0x769294(0x235)]();if(_0xfdf523[_0x769294(0x3b7)]===0x0||_0x22de8b[_0x769294(0x3b7)]===0x0)return;const _0x226dd3=[],_0x1adc8e=[];let _0x43340a=_0x3e23fb[_0x769294(0x524)](_0x7bdd5b[_0x769294(0x329)][0x0]),_0xcecb84=_0x3e23fb[_0x769294(0x524)](_0x7bdd5b[_0x769294(0x329)][0x0]);for(let _0x30e182=_0xfdf523[_0x769294(0x3b7)]-0x1;_0x30e182>=0x0;_0x30e182--){const _0x115d52={'id':_0x769294(0x27c),'params':{..._0xfdf523[_0x30e182]}},_0x3ec0f3={'id':_0x769294(0x27c),'params':{..._0x22de8b[_0x30e182]}},_0x948f78=this[_0x769294(0x453)][_0x769294(0x272)](_0x43340a,_0x115d52,!0x1),_0x5a4d5c=this[_0x769294(0x453)]['transformMutation'](_0xcecb84,_0x3ec0f3,!0x1);if(_0x27a6c3(_0x948f78))throw _0x948f78['error'];if(_0x27a6c3(_0x5a4d5c))throw _0x5a4d5c[_0x769294(0x3fd)];_0x226dd3['unshift'](_0x948f78[_0x769294(0x269)][_0x769294(0x1ef)]),_0x1adc8e['unshift'](_0x5a4d5c[_0x769294(0x269)][_0x769294(0x1ef)]),_0x43340a=_0x948f78['m1Prime'],_0xcecb84=_0x5a4d5c[_0x769294(0x3ec)];}_0x447426['setUndoRedoMutationParamsCache']({'undoCache':_0x226dd3,'redoCache':_0x1adc8e});}[_0x4d2b9e(0x1e1)](_0x2e10b4){const _0x20eb04=_0x4d2b9e,{unitID:_0x22462d}=_0x2e10b4,_0x5f4e0b=this[_0x20eb04(0x373)][_0x20eb04(0x4ff)](_0x22462d)[_0x20eb04(0x431)](_0x298dc3),_0x5d3d4c=_0x5f4e0b[_0x20eb04(0x2f8)]();if(_0x5d3d4c==null)return;const _0x44bef0=[{'id':_0x20eb04(0x27c),'params':{'unitId':_0x2e10b4[_0x20eb04(0x51a)],'actions':null,'textRanges':[_0x5d3d4c]}}],_0x4cde68=this[_0x20eb04(0x453)][_0x20eb04(0x54a)](_0x2e10b4,_0x44bef0);if(!_0x4a48b2(_0x4cde68))throw _0x4cde68[_0x20eb04(0x3fd)];const _0x147dc5=_0x4cde68[_0x20eb04(0x269)][0x0][_0x20eb04(0x1ef)]['textRanges'];Array['isArray'](_0x147dc5)&&_0x147dc5[_0x20eb04(0x3b7)]&&_0x5f4e0b[_0x20eb04(0x43b)](_0x147dc5[0x0]);}};Ye=or([ht(0x0,_0x3a6c9c(_0x51895d)),ht(0x1,_0x13d98e),ht(0x2,_0x1c6d4f)],Ye);var ar=Object[_0x4d2b9e(0x47b)],cr=Object[_0x4d2b9e(0x298)],hr=(_0x1e9098,_0x3c783d,_0x317eae,_0x4e6bcf)=>{const _0x4b87ef=_0x4d2b9e;for(var _0x2d57dc=_0x4e6bcf>0x1?void 0x0:_0x4e6bcf?cr(_0x3c783d,_0x317eae):_0x3c783d,_0x270871=_0x1e9098[_0x4b87ef(0x3b7)]-0x1,_0x49d1fb;_0x270871>=0x0;_0x270871--)(_0x49d1fb=_0x1e9098[_0x270871])&&(_0x2d57dc=(_0x4e6bcf?_0x49d1fb(_0x3c783d,_0x317eae,_0x2d57dc):_0x49d1fb(_0x2d57dc))||_0x2d57dc);return _0x4e6bcf&&_0x2d57dc&&ar(_0x3c783d,_0x317eae,_0x2d57dc),_0x2d57dc;},De=(_0x705d58,_0x510630)=>(_0x2f235f,_0x13569a)=>_0x510630(_0x2f235f,_0x13569a,_0x705d58);let w=class extends _0x5f4ac3{constructor(_0x5e2858,_0x29aa58,_0x2df519,_0x3ab93c,_0x2e60b6){const _0x574e61=_0x4d2b9e;super(),l(this,_0x574e61(0x255),new Map()),l(this,'_saveTaskMap',new Map()),l(this,'_disabled',!0x1),(this['_configService']=_0x5e2858,this['_localStorageService']=_0x29aa58,this[_0x574e61(0x316)]=_0x2df519,this[_0x574e61(0x4f2)]=_0x3ab93c,this[_0x574e61(0x50b)]=_0x2e60b6,this[_0x574e61(0x229)]());}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x4d2b9e(0x361)](){const _0x25f34f=_0x4d2b9e;this[_0x25f34f(0x236)]=!0x1;}[_0x4d2b9e(0x485)](){const _0x399eac=_0x4d2b9e;this['exhaustSavingTask']()[_0x399eac(0x399)](()=>super['dispose']());}async['loadOfflineData'](_0xf0bd6e){const _0x1c8469=_0x4d2b9e;return this['_disabled']?null:this['_localStorageService'][_0x1c8469(0x310)](hs(_0xf0bd6e));}async[_0x4d2b9e(0x4d1)](_0x1c09fe,_0x19de65){const _0x224dd6=_0x4d2b9e;return!!this[_0x224dd6(0x267)][_0x224dd6(0x2ab)](_0x1c09fe,_0x19de65);}[_0x4d2b9e(0x534)](_0xac8695,_0x411155,_0x408825,_0x5325dd){const _0x20d199=_0x4d2b9e,_0x1ae981=this[_0x20d199(0x50b)][_0x20d199(0x233)](_0xac8695);this[_0x20d199(0x255)][_0x20d199(0x2be)](_0xac8695,{'unitID':_0xac8695,'type':_0x411155,'awaitingChangeset':_0x408825,'mutations':_0x5325dd,'rev':_0x1ae981}),this['_saveTaskMap']['has'](_0xac8695)||this['_scheduleSaving'](_0xac8695);}[_0x4d2b9e(0x314)](_0x27e125){const _0x5e609a=_0x4d2b9e,_0x9439eb=this[_0x5e609a(0x432)]();_0x9439eb===0x0?this['_saveCache'](_0x27e125):this[_0x5e609a(0x307)]['set'](_0x27e125,setTimeout(()=>this[_0x5e609a(0x4f7)](_0x27e125),_0x9439eb));}[_0x4d2b9e(0x432)](){const _0x5c34fb=_0x4d2b9e;var _0x4ab11e;return(_0x4ab11e=this[_0x5c34fb(0x376)][_0x5c34fb(0x352)](wn))!=null?_0x4ab11e:Pn;}[_0x4d2b9e(0x4f7)](_0x4bca64){const _0x280a95=_0x4d2b9e,_0x5e8305=this['_saveTaskMap'][_0x280a95(0x29a)](_0x4bca64);return _0x5e8305!==void 0x0&&window[_0x280a95(0x4c6)](_0x5e8305),this[_0x280a95(0x267)][_0x280a95(0x2ab)](hs(_0x4bca64),this[_0x280a95(0x255)][_0x280a95(0x29a)](_0x4bca64))[_0x280a95(0x399)](()=>this['_saveTaskMap'][_0x280a95(0x1f1)](_0x4bca64));}async[_0x4d2b9e(0x464)](){const _0x4a74c7=_0x4d2b9e,_0x556cbd=[];this['_saveTaskMap'][_0x4a74c7(0x380)]((_0x561501,_0x19bb51)=>{const _0x573b74=_0x4a74c7;window[_0x573b74(0x4c6)](_0x561501),_0x556cbd[_0x573b74(0x52a)](this[_0x573b74(0x4f7)](_0x19bb51)[_0x573b74(0x399)](()=>{const _0x93b2c5=_0x573b74;this[_0x93b2c5(0x307)]['delete'](_0x19bb51);}));}),await Promise['all'](_0x556cbd);}[_0x4d2b9e(0x229)](){const _0x2b75dc=_0x4d2b9e;this[_0x2b75dc(0x23d)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0xb5857e=_0x2b75dc;if(this['_saveTaskMap']['size'])return this[_0xb5857e(0x4f2)]['t']('collaboration-client.offline-data-not-saved');}));}};w=hr([De(0x0,_0x542b48),De(0x1,_0x351116),De(0x2,_0x4d5695),De(0x3,_0x3a6c9c(_0x5e971c)),De(0x4,_0x3a6c9c(_0x59f841))],w);function hs(_0x1a209e){const _0x4bdc49=_0x4d2b9e;return _0x4bdc49(0x1f8)+_0x1a209e;}var lr=Object[_0x4d2b9e(0x47b)],_r=Object[_0x4d2b9e(0x298)],ur=(_0x384c2e,_0x4d4c70,_0x4d0f1e,_0x5797b6)=>{const _0xebe144=_0x4d2b9e;for(var _0xe350ac=_0x5797b6>0x1?void 0x0:_0x5797b6?_r(_0x4d4c70,_0x4d0f1e):_0x4d4c70,_0x29a72f=_0x384c2e[_0xebe144(0x3b7)]-0x1,_0x4dd170;_0x29a72f>=0x0;_0x29a72f--)(_0x4dd170=_0x384c2e[_0x29a72f])&&(_0xe350ac=(_0x5797b6?_0x4dd170(_0x4d4c70,_0x4d0f1e,_0xe350ac):_0x4dd170(_0xe350ac))||_0xe350ac);return _0x5797b6&&_0xe350ac&&lr(_0x4d4c70,_0x4d0f1e,_0xe350ac),_0xe350ac;},lt=(_0x63dacb,_0x470e86)=>(_0x44d087,_0x8ce0a0)=>_0x470e86(_0x44d087,_0x8ce0a0,_0x63dacb);function dr(_0xcacd5b){const _0x219148=_0x4d2b9e,{unitID:_0x4e6f78,mutations:_0x48b936}=_0xcacd5b;return{'unitId':_0x4e6f78,'subUnitId':_0x48b936[0x0][_0x219148(0x1ef)]['subUnitId']};}let Ke=class{constructor(_0x3639f3,_0x458e0c,_0x14569f){const _0x534313=_0x4d2b9e;this[_0x534313(0x396)]=_0x3639f3,this[_0x534313(0x453)]=_0x458e0c,this['_instanceService']=_0x14569f;}[_0x4d2b9e(0x385)](_0xcc8722){const _0x27ed3e=_0x4d2b9e;var _0x37e8a7,_0x69eef8,_0x22a9dc,_0x526081;const _0x3af2af=this['_injector'][_0x27ed3e(0x29a)](_0x1f3c3d),{unitId:_0x429d06,subUnitId:_0x3270dd}=dr(_0xcc8722),_0x4b73cd=_0x3af2af[_0x27ed3e(0x371)](_0x429d06)[_0x27ed3e(0x28b)](),_0x3080b2=(_0x69eef8=(_0x37e8a7=this[_0x27ed3e(0x30c)][_0x27ed3e(0x4ef)](_0x429d06))==null?void 0x0:_0x37e8a7[_0x27ed3e(0x4fc)]())==null?void 0x0:_0x69eef8[_0x27ed3e(0x379)]();if(_0x4b73cd[_0x27ed3e(0x3b7)]===0x0||!_0x429d06||!_0x3270dd)return;const _0x3c01fd=[{'id':_0x5126a9['id'],'params':{'unitId':_0x429d06,'subUnitId':_0x3080b2,'selections':_0x3e23fb[_0x27ed3e(0x524)](_0x4b73cd)}}],_0xabc62c=this[_0x27ed3e(0x453)][_0x27ed3e(0x54a)](_0xcc8722,_0x3c01fd);if(!_0x4a48b2(_0xabc62c))throw _0xabc62c[_0x27ed3e(0x3fd)];const _0x1ead54=(_0x526081=(_0x22a9dc=_0xabc62c[_0x27ed3e(0x269)][0x0])==null?void 0x0:_0x22a9dc[_0x27ed3e(0x1ef)])==null?void 0x0:_0x526081['selections'];if(Array['isArray'](_0x1ead54)&&_0x1ead54[_0x27ed3e(0x3b7)]){if(_0x1ead54[_0x27ed3e(0x3b7)]===_0x3c01fd[0x0][_0x27ed3e(0x1ef)]['selections'][_0x27ed3e(0x3b7)]&&_0x1ead54[_0x27ed3e(0x2b0)]((_0x4d6100,_0x2302fa)=>_0x2ee4ab[_0x27ed3e(0x42f)](_0x4d6100[_0x27ed3e(0x43c)],_0x3c01fd[0x0]['params'][_0x27ed3e(0x525)][_0x2302fa]['range'])))return;this['_injector'][_0x27ed3e(0x29a)](_0x58f975)[_0x27ed3e(0x49a)](_0x5126a9['id'],{'unitId':_0x429d06,'subUnitId':_0x3080b2,'selections':_0x1ead54});}}};Ke=ur([lt(0x0,_0x3a6c9c(_0x51895d)),lt(0x1,_0x13d98e),lt(0x2,_0x5dad13)],Ke);const tt=_0x3bdb6e(_0x4d2b9e(0x244));var Vs=(_0x3fae32=>(_0x3fae32[_0x3fae32[_0x4d2b9e(0x50e)]=0x0]=_0x4d2b9e(0x50e),_0x3fae32[_0x3fae32[_0x4d2b9e(0x25c)]=0x1]=_0x4d2b9e(0x25c),_0x3fae32))(Vs||{});const ls=0x7530,_s='ACTIVE_UNIT_EVENT_CHANNEL';class fr extends _0x5f4ac3{constructor(){const _0xceadd=_0x4d2b9e;super(),l(this,_0xceadd(0x1fa),_0x3e23fb[_0xceadd(0x300)]()),l(this,_0xceadd(0x2e8),new Set()),l(this,_0xceadd(0x520),new Map()),l(this,_0xceadd(0x542),null),l(this,_0xceadd(0x319),new Map()),l(this,_0xceadd(0x2c1),new Map()),this[_0xceadd(0x288)]();}[_0x4d2b9e(0x485)](){const _0x5a1042=_0x4d2b9e;super[_0x5a1042(0x485)](),this[_0x5a1042(0x319)][_0x5a1042(0x380)]((_0x3372e6,_0x37f1b1)=>this[_0x5a1042(0x32c)](_0x37f1b1)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x5a1042(0x542)]);}['getUnitStatus$'](_0x50f2b8){const _0x1167b0=_0x4d2b9e;return this[_0x1167b0(0x49c)](_0x50f2b8)['pipe'](_0x226292());}[_0x4d2b9e(0x1d8)](_0x5bc6bb){const _0x455985=_0x4d2b9e;this[_0x455985(0x2e8)][_0x455985(0x306)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs']['add'](_0x5bc6bb),this[_0x455985(0x3f5)]({'type':0x0,'memberID':this[_0x455985(0x1fa)],'unitIDs':[_0x5bc6bb],'isForwarded':!0x1});}[_0x4d2b9e(0x2f2)](_0x25572d){const _0x4d5d11=_0x4d2b9e;this[_0x4d5d11(0x2e8)][_0x4d5d11(0x1f1)](_0x25572d),this['_selfUnitIDs'][_0x4d5d11(0x306)]===0x0&&this[_0x4d5d11(0x542)]&&window[_0x4d5d11(0x4b9)](this[_0x4d5d11(0x542)]);}[_0x4d2b9e(0x288)](){const _0x17263d=_0x4d2b9e;this['disposeWithMe'](_0xd3e61d(_0x278262(window,_0x17263d(0x2b2))[_0x17263d(0x442)](_0x5126d4=>{const _0x104e7c=_0x17263d;if(_0x5126d4[_0x104e7c(0x2e7)]!==_s||!_0x5126d4[_0x104e7c(0x205)])return;const _0x24ff01=JSON[_0x104e7c(0x2c5)](_0x5126d4['newValue']);this[_0x104e7c(0x28f)](_0x24ff01);}))),window[_0x17263d(0x24c)](_0x17263d(0x2d4),()=>this[_0x17263d(0x3f5)]({'type':0x1,'memberID':this[_0x17263d(0x1fa)],'unitIDs':Array[_0x17263d(0x411)](this[_0x17263d(0x2e8)])}));}[_0x4d2b9e(0x28f)](_0xde7811){const _0x2f3bd3=_0x4d2b9e;switch(_0xde7811['type']){case 0x0:this[_0x2f3bd3(0x545)](_0xde7811);break;case 0x1:this[_0x2f3bd3(0x504)](_0xde7811);break;case 0x2:this[_0x2f3bd3(0x37f)](_0xde7811);break;}}[_0x4d2b9e(0x545)](_0x41533b){const _0x56cd9b=_0x4d2b9e,{unitIDs:_0xb8e182,memberID:_0x59bc5d,isForwarded:_0x55b61b}=_0x41533b;_0xb8e182[_0x56cd9b(0x380)](_0x1c5a8d=>{const _0x4b1964=_0x56cd9b;if(!_0x55b61b&&this[_0x4b1964(0x520)]['has'](_0x1c5a8d)&&this[_0x4b1964(0x49c)](_0x1c5a8d)['next'](0x1),!this[_0x4b1964(0x520)][_0x4b1964(0x4e6)](_0x1c5a8d)||!this[_0x4b1964(0x520)][_0x4b1964(0x29a)](_0x1c5a8d)[_0x4b1964(0x4e6)](_0x59bc5d)){const _0x517402=this[_0x4b1964(0x520)]['get'](_0x1c5a8d)||new Set();_0x517402['add'](_0x59bc5d),this['_unitOnClients'][_0x4b1964(0x2be)](_0x1c5a8d,_0x517402),this[_0x4b1964(0x2b1)](_0x59bc5d);}}),_0x55b61b||this[_0x56cd9b(0x3f5)]({'type':0x0,'memberID':this[_0x56cd9b(0x1fa)],'unitIDs':[...this[_0x56cd9b(0x2e8)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5c458b){const _0x16f583=_0x4d2b9e;this[_0x16f583(0x32c)](_0x5c458b);const _0x571d1c=window[_0x16f583(0x3da)](()=>{const _0x52de97=_0x16f583;this[_0x52de97(0x520)][_0x52de97(0x380)](_0x5ab240=>{_0x5ab240['delete'](_0x5c458b);});},ls*0x2);this[_0x16f583(0x319)][_0x16f583(0x2be)](_0x5c458b,_0x571d1c);}[_0x4d2b9e(0x32c)](_0x6d387e){const _0x2fae94=_0x4d2b9e;if(this['_clearOtherTimers'][_0x2fae94(0x4e6)](_0x6d387e)){const _0x3d6e8d=this[_0x2fae94(0x319)][_0x2fae94(0x29a)](_0x6d387e);_0x3d6e8d&&window[_0x2fae94(0x4c6)](_0x3d6e8d),this[_0x2fae94(0x319)][_0x2fae94(0x2be)](_0x6d387e,null);}}[_0x4d2b9e(0x504)](_0x4f0a93){const _0x4d14f2=_0x4d2b9e,{memberID:_0x2c0fee,unitIDs:_0x8e3858}=_0x4f0a93;_0x8e3858[_0x4d14f2(0x380)](_0x5a5a70=>{const _0x192f24=_0x4d14f2;var _0x57d814;const _0x17c430=this[_0x192f24(0x520)]['get'](_0x5a5a70);_0x17c430&&(_0x17c430['delete'](_0x2c0fee),(_0x57d814=this['_ensureSubject'](_0x5a5a70))==null||_0x57d814[_0x192f24(0x221)](_0x17c430[_0x192f24(0x306)]===0x0?0x0:0x1));}),this[_0x4d14f2(0x32c)](_0x2c0fee);}[_0x4d2b9e(0x37f)](_0xd29563){const _0x4c78c8=_0x4d2b9e;this[_0x4c78c8(0x2b1)](_0xd29563[_0x4c78c8(0x4cb)]);}[_0x4d2b9e(0x3f5)](_0x3cfe5f){const _0x2c456c=_0x4d2b9e;localStorage[_0x2c456c(0x2ab)](_s,JSON[_0x2c456c(0x2d9)](_0x3cfe5f));}['_scheduleHeartbeat'](){const _0x5ca7a2=_0x4d2b9e;this[_0x5ca7a2(0x542)]=window[_0x5ca7a2(0x4a5)](()=>{const _0x3cdbd7=_0x5ca7a2;this[_0x3cdbd7(0x3f5)]({'type':0x2,'memberID':this['_id']});},ls);}['_ensureSubject'](_0x4a92c2){const _0x3e3912=_0x4d2b9e;return this[_0x3e3912(0x2c1)]['has'](_0x4a92c2)||this[_0x3e3912(0x2c1)][_0x3e3912(0x2be)](_0x4a92c2,new _0x119970(0x0)),this['_unitStatus']['get'](_0x4a92c2);}}function Fs(_0x178dbc){const _0x15ba0a=_0x4d2b9e;let _0x3293a8='';for(const _0x1edaf7 of _0x178dbc){const {startOffset:_0x2958d3,endOffset:_0x1b0be3,isActive:_0x114ce6}=_0x1edaf7;_0x3293a8[_0x15ba0a(0x3b7)]&&(_0x3293a8+=','),_0x3293a8+=_0x2958d3+':'+_0x1b0be3+':'+(_0x114ce6?'1':'0');}return _0x3293a8;}function mr(_0x4a572b){const _0x619eff=_0x4d2b9e,_0x4b47c2=_0x4a572b[_0x619eff(0x4c4)](','),_0x45aca3=[];for(const _0x3108ab of _0x4b47c2){const [_0xe17ee,_0x4cc290,_0xa4c84e]=_0x3108ab['split'](':');_0x45aca3[_0x619eff(0x52a)]({'startOffset':Number(_0xe17ee),'endOffset':Number(_0x4cc290),'collapsed':_0xe17ee===_0x4cc290,'isActive':_0xa4c84e==='1'});}return _0x45aca3[_0x619eff(0x40f)](_0x5b555c=>_0x5b555c['isActive'])||(_0x45aca3[0x0][_0x619eff(0x273)]=!0x0),_0x45aca3;}class Ft extends _0x422fed{constructor(){const _0x166a85=_0x4d2b9e;super(...arguments),l(this,_0x166a85(0x50d),new _0x119970(null)),l(this,_0x166a85(0x3d0),this['_collabCursorState$'][_0x166a85(0x3e3)]());}[_0x4d2b9e(0x3c6)](_0x37db9f){const _0x378409=_0x4d2b9e,{unitID:_0x64c104,memberID:_0x5dbd25,textRanges:_0x5e451e}=_0x37db9f,_0x37aab9=Fs(_0x5e451e),_0x1ef0f7={'unitID':_0x64c104,'memberID':_0x5dbd25,'selection':_0x37aab9};this[_0x378409(0x50d)]['next'](_0x1ef0f7);}}var gr=Object[_0x4d2b9e(0x47b)],Sr=Object[_0x4d2b9e(0x298)],pr=(_0x4c0a3d,_0x21bc97,_0xb014b5,_0xab12f)=>{const _0x1d2def=_0x4d2b9e;for(var _0x3e565a=_0xab12f>0x1?void 0x0:_0xab12f?Sr(_0x21bc97,_0xb014b5):_0x21bc97,_0x3dc6df=_0x4c0a3d[_0x1d2def(0x3b7)]-0x1,_0x5f4092;_0x3dc6df>=0x0;_0x3dc6df--)(_0x5f4092=_0x4c0a3d[_0x3dc6df])&&(_0x3e565a=(_0xab12f?_0x5f4092(_0x21bc97,_0xb014b5,_0x3e565a):_0x5f4092(_0x3e565a))||_0x3e565a);return _0xab12f&&_0x3e565a&&gr(_0x21bc97,_0xb014b5,_0x3e565a),_0x3e565a;},us=(_0x15cfeb,_0x846ec5)=>(_0x44d478,_0x33f1e8)=>_0x846ec5(_0x44d478,_0x33f1e8,_0x15cfeb);function _0x5c56(_0x763377,_0x54e355){const _0x44a120=_0x44a1();return _0x5c56=function(_0x5c56ad,_0x307391){_0x5c56ad=_0x5c56ad-0x1cd;let _0x471299=_0x44a120[_0x5c56ad];return _0x471299;},_0x5c56(_0x763377,_0x54e355);}let Xe=class{constructor(_0x33e282,_0x7c78db){const _0x653979=_0x4d2b9e;this[_0x653979(0x396)]=_0x33e282,this[_0x653979(0x453)]=_0x7c78db;}['transformSelections'](_0x422443){const _0x580bee=_0x4d2b9e;var _0x8a9ec;const _0x38ee5b=this[_0x580bee(0x396)][_0x580bee(0x29a)](_0x21931c),_0x298c6f=(_0x8a9ec=_0x38ee5b[_0x580bee(0x2ed)]())!=null?_0x8a9ec:[];if(_0x298c6f[_0x580bee(0x3b7)]===0x0)return;const _0x1e47b0=[{'id':_0x580bee(0x27c),'params':{'unitId':_0x422443[_0x580bee(0x51a)],'actions':null,'textRanges':_0x298c6f}}],_0x36128b=this[_0x580bee(0x453)][_0x580bee(0x54a)](_0x422443,_0x1e47b0);if(!_0x4a48b2(_0x36128b))throw _0x36128b[_0x580bee(0x3fd)];const _0x2800db=_0x36128b[_0x580bee(0x269)][0x0][_0x580bee(0x1ef)]['textRanges'];Array[_0x580bee(0x20c)](_0x2800db)&&_0x2800db[_0x580bee(0x3b7)]&&_0x38ee5b[_0x580bee(0x2fc)](_0x2800db,!0x1);}};Xe=pr([us(0x0,_0x3a6c9c(_0x51895d)),us(0x1,_0x13d98e)],Xe);const vr=new Set([_0x3cfb08['id']]);function ds(_0x1f96b5,_0x44c63d,_0x1ffbed,_0x196d06,_0x51e13b){const _0x4a01c8=_0x4d2b9e;var _0x1945ea,_0x130fe2,_0x17909a,_0x299680;const _0x3ec34e=[];for(const _0x284d48 of _0x1f96b5)if(vr[_0x4a01c8(0x4e6)](_0x284d48['id'])){if(_0x3ec34e[_0x4a01c8(0x3b7)]>0x0)break;_0x3ec34e['push'](_0x284d48);break;}else _0x3ec34e[_0x4a01c8(0x52a)](_0x284d48);const _0x21d0c8=(_0x130fe2=(_0x1945ea=_0x51e13b['getCurrentUser']())==null?void 0x0:_0x1945ea['userID'])!=null?_0x130fe2:_0x4a01c8(0x2a6),_0x140fd8=(_0x299680=(_0x17909a=_0x51e13b['getCurrentUser']())==null?void 0x0:_0x17909a[_0x4a01c8(0x4cb)])!=null?_0x299680:_0x4a01c8(0x2a6);return{'changeset':{'unitID':_0x44c63d,'type':_0x51f7a5(_0x1ffbed[_0x4a01c8(0x3fa)](_0x44c63d)),'baseRev':_0x196d06[_0x4a01c8(0x233)](_0x44c63d),'revision':0x0,'userID':_0x21d0c8,'memberID':_0x140fd8,'mutations':_0x3ec34e},'pendingMutations':_0x1f96b5['slice'](_0x3ec34e[_0x4a01c8(0x3b7)])};}function Ir(_0x1fa563,_0x20b703,_0x11f2a,_0x5236c9,_0x426e3b){const _0x32e283=_0x4d2b9e;var _0x368181,_0x8b0636,_0x446867,_0xd65013;const _0x142dd1=[_0x1fa563[_0x32e283(0x41b)]((_0x147cc1,_0x102b35)=>{const _0x4e4ae9=_0x32e283;var _0x437ee2;const {id:_0x42d9d8}=_0x147cc1,{id:_0x15d9e3,type:_0x1a0f33}=_0x102b35,_0x415193=(_0x437ee2=_0x147cc1[_0x4e4ae9(0x1ef)])!=null?_0x437ee2:{'actions':null},_0x259c08=_0x102b35['params'];if(_0x42d9d8&&_0x42d9d8!==_0x15d9e3)throw new Error(_0x4e4ae9(0x406)+_0x42d9d8+_0x4e4ae9(0x427)+_0x15d9e3+'.');return{..._0x147cc1,'id':_0x15d9e3,'type':_0x1a0f33,'params':{'unitId':_0x259c08[_0x4e4ae9(0x299)],'textRanges':_0x259c08[_0x4e4ae9(0x209)],'actions':_0x3ea2e9['compose'](_0x415193[_0x4e4ae9(0x3a4)],_0x259c08[_0x4e4ae9(0x3a4)])}};},{})],_0x10ba1b=(_0x8b0636=(_0x368181=_0x426e3b['getCurrentUser']())==null?void 0x0:_0x368181[_0x32e283(0x29e)])!=null?_0x8b0636:_0x32e283(0x2a6),_0x27ee39=(_0xd65013=(_0x446867=_0x426e3b[_0x32e283(0x47d)]())==null?void 0x0:_0x446867[_0x32e283(0x4cb)])!=null?_0xd65013:_0x32e283(0x2a6);return{'changeset':{'unitID':_0x20b703,'type':_0x51f7a5(_0x11f2a[_0x32e283(0x3fa)](_0x20b703)),'baseRev':_0x5236c9[_0x32e283(0x233)](_0x20b703),'revision':0x0,'userID':_0x10ba1b,'memberID':_0x27ee39,'mutations':_0x142dd1},'pendingMutations':[]};}const Er={'id':_0x20a749['id'],'type':_0x5c4d79['MUTATION'],'params':{}};var Cr=Object[_0x4d2b9e(0x47b)],br=Object['getOwnPropertyDescriptor'],_e=(_0x2933f0,_0x174fca,_0x125599,_0x12778d)=>{const _0x25c09c=_0x4d2b9e;for(var _0x1e62b7=_0x12778d>0x1?void 0x0:_0x12778d?br(_0x174fca,_0x125599):_0x174fca,_0x12f6f7=_0x2933f0[_0x25c09c(0x3b7)]-0x1,_0x2f2d0e;_0x12f6f7>=0x0;_0x12f6f7--)(_0x2f2d0e=_0x2933f0[_0x12f6f7])&&(_0x1e62b7=(_0x12778d?_0x2f2d0e(_0x174fca,_0x125599,_0x1e62b7):_0x2f2d0e(_0x1e62b7))||_0x1e62b7);return _0x12778d&&_0x1e62b7&&Cr(_0x174fca,_0x125599,_0x1e62b7),_0x1e62b7;},m=(_0x4a836d,_0x35ff0e)=>(_0x200e25,_0x505efd)=>_0x35ff0e(_0x200e25,_0x505efd,_0x4a836d),P=(_0x1193db=>(_0x1193db[_0x4d2b9e(0x415)]='not_collab',_0x1193db[_0x4d2b9e(0x4bb)]=_0x4d2b9e(0x35d),_0x1193db[_0x4d2b9e(0x38e)]=_0x4d2b9e(0x4da),_0x1193db['AWAITING']='awaiting',_0x1193db[_0x4d2b9e(0x3c5)]=_0x4d2b9e(0x2f1),_0x1193db['FETCH_MISS']=_0x4d2b9e(0x4cc),_0x1193db[_0x4d2b9e(0x512)]='conflict',_0x1193db[_0x4d2b9e(0x3fe)]=_0x4d2b9e(0x47c),_0x1193db))(P||{});class ue{constructor(_0x4f6126,_0x5b0101,_0x11061a,_0x2aa1e3,_0x1d5dc4,_0x29f2ba,_0x1a4247,_0x187b84,_0x4f039a){const _0x3049ce=_0x4d2b9e;l(this,_0x3049ce(0x339),null),l(this,_0x3049ce(0x262),[]),(this[_0x3049ce(0x51a)]=_0x4f6126,this[_0x3049ce(0x249)]=_0x5b0101,this[_0x3049ce(0x266)]=_0x1d5dc4,this[_0x3049ce(0x1e5)]=_0x29f2ba,this[_0x3049ce(0x33f)]=_0x1a4247,this[_0x3049ce(0x50b)]=_0x187b84,this[_0x3049ce(0x2e1)]=_0x4f039a,this[_0x3049ce(0x339)]=_0x11061a,this[_0x3049ce(0x262)]=_0x2aa1e3);}[_0x4d2b9e(0x2dc)](_0x3aa7de){const _0x21aed1=_0x4d2b9e,_0x366083=this[_0x21aed1(0x50b)][_0x21aed1(0x233)](this[_0x21aed1(0x51a)]);return _0x3aa7de[_0x21aed1(0x24a)]>_0x366083+0x1?(this[_0x21aed1(0x266)][_0x21aed1(0x260)]({'from':_0x366083,'to':_0x3aa7de['revision']-0x1}),!0x0):!0x1;}[_0x4d2b9e(0x386)](_0x443a19){const _0x3903dc=_0x4d2b9e;this[_0x3903dc(0x33f)][_0x3903dc(0x3e2)](this['unitID'],_0x443a19);}[_0x4d2b9e(0x3bc)](_0xbe2493){const _0x3b7c2e=_0x4d2b9e;var _0x11ecd1,_0x340452;(_0x340452=(_0x11ecd1=this[_0x3b7c2e(0x266)])[_0x3b7c2e(0x428)])==null||_0x340452['call'](_0x11ecd1,_0xbe2493);}[_0x4d2b9e(0x2fa)](_0x31b031){const _0x41c308=_0x4d2b9e;var _0x6420f2,_0x39dc45;return(_0x39dc45=(_0x6420f2=this['_handler'])[_0x41c308(0x3f7)])==null?void 0x0:_0x39dc45[_0x41c308(0x41a)](_0x6420f2,_0x31b031);}['_transformRemoteChangesetByIMECache'](_0x658740){const _0x404452=_0x4d2b9e;var _0x545010,_0x1d8d5a,_0x2f522d;return(_0x2f522d=(_0x1d8d5a=(_0x545010=this[_0x404452(0x266)])[_0x404452(0x467)])==null?void 0x0:_0x1d8d5a[_0x404452(0x41a)](_0x545010,_0x658740))!=null?_0x2f522d:_0x658740;}[_0x4d2b9e(0x387)](_0x1e5494){const _0xc7e957=_0x4d2b9e;var _0x3f1b47,_0x149083;if(this['type']===k[_0xc7e957(0x447)]){const {unitID:_0x105f2b,mutations:_0x48cc16,memberID:_0x446a95}=_0x1e5494,_0x1a700c=_0x48cc16[0x0][_0xc7e957(0x1ef)]['textRanges'];Array[_0xc7e957(0x20c)](_0x1a700c)&&_0x1a700c[_0xc7e957(0x3b7)]>0x0&&((_0x149083=(_0x3f1b47=this[_0xc7e957(0x266)])['onSyncEditingCollabCursor'])==null||_0x149083[_0xc7e957(0x41a)](_0x3f1b47,{'unitID':_0x105f2b,'memberID':_0x446a95,'textRanges':_0x1a700c}));}}[_0x4d2b9e(0x2dd)](){const _0x49eae5=_0x4d2b9e;this['_localCacheService'][_0x49eae5(0x534)](this[_0x49eae5(0x51a)],this[_0x49eae5(0x249)],this['_awaitingChangeset'],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x1c6a43=_0x4d2b9e;return this[_0x1c6a43(0x50b)][_0x1c6a43(0x233)](this[_0x1c6a43(0x51a)]);}[_0x4d2b9e(0x363)](){const _0x257c4a=_0x4d2b9e;this[_0x257c4a(0x50b)][_0x257c4a(0x3a9)](this[_0x257c4a(0x51a)]);}[_0x4d2b9e(0x4ee)](_0x4dd8c6){const _0xaca80f=_0x4d2b9e;var _0x4684a0;const _0x1e7cb0=this[_0xaca80f(0x33b)](_0x4dd8c6),_0x2f516a=_0x12f195(_0x1e7cb0['mutations'],this[_0xaca80f(0x1e5)],{'fromCollab':!0x0});if(!_0x2f516a[_0xaca80f(0x466)])throw _0x2f516a[_0xaca80f(0x3fd)]instanceof Error?_0x2f516a[_0xaca80f(0x3fd)]:new Error((_0x4684a0=_0x2f516a[_0xaca80f(0x3fd)])!=null?_0x4684a0:'[CollaborationState]:\x20apply\x20error!');this[_0xaca80f(0x2fa)](_0x1e7cb0),this['_transformUndoredo'](_0x4dd8c6),this[_0xaca80f(0x3bc)](_0x1e7cb0),this['_syncEditingCollabCursor'](_0x1e7cb0),this[_0xaca80f(0x363)]();}}let pe=class extends ue{constructor(_0x5127e4,_0x801dfa,_0x489c26,_0x171d04,_0x2b8eaf,_0x55bb4c,_0x24fbeb,_0x28e6ee,_0x554613,_0x3a8b2e){const _0x2d840c=_0x4d2b9e;super(_0x5127e4,_0x801dfa,null,[],_0x489c26,_0x28e6ee,_0x24fbeb,_0x171d04,_0x2b8eaf),l(this,_0x2d840c(0x4c0),_0x2d840c(0x35d)),(this[_0x2d840c(0x396)]=_0x55bb4c,this[_0x2d840c(0x4fb)]=_0x554613,this[_0x2d840c(0x453)]=_0x3a8b2e);}['appendMutation'](_0xe28d90){const _0x5ead18=_0x4d2b9e,_0x10bd73=this[_0x5ead18(0x396)][_0x5ead18(0x49b)](X,this['unitID'],this[_0x5ead18(0x249)],[_0xe28d90],this['_handler']);return _0x10bd73[_0x5ead18(0x259)](),_0x10bd73[_0x5ead18(0x2dd)](),_0x10bd73;}['onRemoteChangeset'](_0x18e1d8){const _0x2fadb2=_0x4d2b9e;if(this[_0x2fadb2(0x2dc)](_0x18e1d8))return this[_0x2fadb2(0x396)]['createInstance'](B,this[_0x2fadb2(0x51a)],this['type'],null,[],null,[_0x18e1d8],this[_0x2fadb2(0x266)]);try{const _0x2ea72a=this[_0x2fadb2(0x453)][_0x2fadb2(0x54a)](_0x18e1d8,[Er]);if(_0x4a48b2(_0x2ea72a)){const {c1Prime:_0x237e9c}=_0x2ea72a;return this[_0x2fadb2(0x4ee)](_0x237e9c),this;}throw _0x2ea72a[_0x2fadb2(0x3fd)];}catch(_0x2c2a2b){return this[_0x2fadb2(0x4fb)][_0x2fadb2(0x3fd)](_0x2c2a2b),this[_0x2fadb2(0x3bb)](!0x1);}}[_0x4d2b9e(0x3bb)](_0x3666f6){const _0x2bc9f6=_0x4d2b9e;return this[_0x2bc9f6(0x396)][_0x2bc9f6(0x49b)](ee,this[_0x2bc9f6(0x51a)],this[_0x2bc9f6(0x249)],null,[],this[_0x2bc9f6(0x266)],_0x3666f6);}[_0x4d2b9e(0x2da)](){const _0x1739c3=_0x4d2b9e;throw new Error(_0x1739c3(0x1fc));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['toggleOffline'](){const _0x446c75=_0x4d2b9e;return this[_0x446c75(0x396)]['createInstance'](te,this['unitID'],this['type'],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x4d2b9e(0x35f)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d2b9e(0x2c7)](){const _0x7ea1f6=_0x4d2b9e,_0x3efae0=this[_0x7ea1f6(0x50b)][_0x7ea1f6(0x233)](this['unitID']);return this['_handler'][_0x7ea1f6(0x260)]({'from':_0x3efae0,'to':0x0}),this[_0x7ea1f6(0x396)][_0x7ea1f6(0x49b)](B,this[_0x7ea1f6(0x51a)],this['type'],null,[],null,[],this[_0x7ea1f6(0x266)]);}};pe=_e([m(0x3,_0x3a6c9c(_0x59f841)),m(0x4,_0x3a6c9c(w)),m(0x5,_0x3a6c9c(_0x51895d)),m(0x6,_0x5a5587),m(0x7,_0x58f975),m(0x8,_0x4872ae),m(0x9,_0x13d98e)],pe);let X=class extends ue{constructor(_0x5d85d5,_0x15cecf,_0xf93836,_0x1df899,_0x4609da,_0x229cb1,_0x493df8,_0x6bdd75,_0x3d7d93,_0x2e5d3a,_0x336793,_0x1cec23,_0x27c8c1,_0x1f2578){const _0x2e925c=_0x4d2b9e;super(_0x5d85d5,_0x15cecf,null,_0xf93836,_0x1df899,_0x2e5d3a,_0x1f2578,_0x229cb1,_0x493df8),l(this,_0x2e925c(0x4c0),_0x2e925c(0x4da)),l(this,'_scheduleTimestamp',null),l(this,_0x2e925c(0x370),null),(this[_0x2e925c(0x396)]=_0x4609da,this['_memberService']=_0x6bdd75,this[_0x2e925c(0x4fb)]=_0x3d7d93,this['_configService']=_0x336793,this[_0x2e925c(0x453)]=_0x1cec23,this[_0x2e925c(0x2af)]=_0x27c8c1);}['appendMutation'](_0x4b18cb){const _0xe267c=_0x4d2b9e;return this['_pendingMutations'][_0xe267c(0x52a)](_0x4b18cb),this[_0xe267c(0x2dd)](),this;}['onRemoteChangeset'](_0x2ffeab){const _0x13aa8f=_0x4d2b9e;if(this['_checkMissing'](_0x2ffeab))return this['_clearScheduledTask'](),this[_0x13aa8f(0x396)]['createInstance'](B,this['unitID'],this[_0x13aa8f(0x249)],null,this[_0x13aa8f(0x262)],null,[_0x2ffeab],this['_handler']);try{const _0x2066c6=this[_0x13aa8f(0x453)][_0x13aa8f(0x54a)](_0x2ffeab,this[_0x13aa8f(0x262)]);if(_0x4a48b2(_0x2066c6)){const {c1Prime:_0x222cb2,m2Prime:_0x98da0a}=_0x2066c6;this[_0x13aa8f(0x4ee)](_0x222cb2);const _0x20fc95=this[_0x13aa8f(0x396)][_0x13aa8f(0x49b)](X,this['unitID'],this['type'],_0x98da0a,this[_0x13aa8f(0x266)]);return this[_0x13aa8f(0x2d1)](),_0x20fc95[_0x13aa8f(0x259)](this[_0x13aa8f(0x3d3)]?Math[_0x13aa8f(0x53e)](0x0,new Date()[_0x13aa8f(0x374)]()-this[_0x13aa8f(0x3d3)]):this['_getSendChangesetTimeout']()),_0x20fc95;}throw _0x2066c6[_0x13aa8f(0x3fd)];}catch(_0x2699e6){return this['_logService'][_0x13aa8f(0x3fd)](_0x2699e6),this['_onConflict'](!0x1);}}[_0x4d2b9e(0x2da)](){const _0x56f421=_0x4d2b9e;throw new Error(_0x56f421(0x51c));}[_0x4d2b9e(0x405)](){const _0x4f002b=_0x4d2b9e;throw new Error(_0x4f002b(0x2a8));}[_0x4d2b9e(0x45d)](){const _0x2bd3b5=_0x4d2b9e;return this[_0x2bd3b5(0x2d1)](),this['_injector'][_0x2bd3b5(0x49b)](te,this[_0x2bd3b5(0x51a)],this[_0x2bd3b5(0x249)],null,this[_0x2bd3b5(0x262)],this[_0x2bd3b5(0x266)]);}[_0x4d2b9e(0x495)](){return this;}['_schedule'](_0x425d66){const _0x5af676=_0x4d2b9e,_0x56fade=_0x425d66!=null?_0x425d66:this['_getSendChangesetTimeout']();this[_0x5af676(0x3d3)]=new Date()[_0x5af676(0x374)](),this[_0x5af676(0x370)]=window[_0x5af676(0x3da)](()=>{const _0x4fe1bd=_0x5af676;this[_0x4fe1bd(0x2d1)]();let _0x1c2efe=null;switch(this['type']){case k['UNIVER_SHEET']:{_0x1c2efe=ds(this[_0x4fe1bd(0x262)],this[_0x4fe1bd(0x51a)],this['_univerInstanceService'],this[_0x4fe1bd(0x50b)],this[_0x4fe1bd(0x31e)]);break;}case k['UNIVER_DOC']:{this['_pendingMutations'][_0x4fe1bd(0x2b0)](_0x5652f8=>_0x5652f8['id']===_0x3782a9['id'])?_0x1c2efe=Ir(this[_0x4fe1bd(0x262)],this[_0x4fe1bd(0x51a)],this[_0x4fe1bd(0x2af)],this[_0x4fe1bd(0x50b)],this[_0x4fe1bd(0x31e)]):_0x1c2efe=ds(this['_pendingMutations'],this[_0x4fe1bd(0x51a)],this[_0x4fe1bd(0x2af)],this['_revisionService'],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4fe1bd(0x249)]+_0x4fe1bd(0x4ad));}const {changeset:_0x269806,pendingMutations:_0x404326}=_0x1c2efe;this[_0x4fe1bd(0x266)][_0x4fe1bd(0x423)](_0x269806);const _0x45d0e4=_0x404326[_0x4fe1bd(0x3b7)]?this[_0x4fe1bd(0x396)][_0x4fe1bd(0x49b)](q,this[_0x4fe1bd(0x51a)],this[_0x4fe1bd(0x249)],_0x269806,_0x404326,this[_0x4fe1bd(0x266)]):this[_0x4fe1bd(0x396)][_0x4fe1bd(0x49b)](Q,this[_0x4fe1bd(0x51a)],this[_0x4fe1bd(0x249)],_0x269806,this[_0x4fe1bd(0x266)]);_0x45d0e4['_updateLocalCache'](),this[_0x4fe1bd(0x266)]['onStateChange'](this,_0x45d0e4);},_0x56fade);}[_0x4d2b9e(0x422)](){const _0x170a9f=_0x4d2b9e;var _0x5bcd21;const _0x552b32=this[_0x170a9f(0x376)][_0x170a9f(0x352)]($);return(_0x5bcd21=_0x552b32==null?void 0x0:_0x552b32[_0x170a9f(0x2f9)])!=null?_0x5bcd21:In;}[_0x4d2b9e(0x35f)](){const _0x1a1b64=_0x4d2b9e;throw new Error(_0x1a1b64(0x404));}[_0x4d2b9e(0x2d1)](){const _0x360e88=_0x4d2b9e;this[_0x360e88(0x370)]!=null&&(clearTimeout(this[_0x360e88(0x370)]),this[_0x360e88(0x370)]=null);}['_onConflict'](_0x1ba038){const _0x2e6c8e=_0x4d2b9e;return this[_0x2e6c8e(0x2d1)](),this['_injector'][_0x2e6c8e(0x49b)](ee,this[_0x2e6c8e(0x51a)],this['type'],null,this[_0x2e6c8e(0x262)],this[_0x2e6c8e(0x266)],_0x1ba038);}};X=_e([m(0x4,_0x3a6c9c(_0x51895d)),m(0x5,_0x3a6c9c(_0x59f841)),m(0x6,_0x3a6c9c(w)),m(0x7,_0x3a6c9c(ce)),m(0x8,_0x4872ae),m(0x9,_0x58f975),m(0xa,_0x542b48),m(0xb,_0x13d98e),m(0xc,_0x5dad13),m(0xd,_0x5a5587)],X);let Q=class extends ue{constructor(_0x37a133,_0x22ca4a,_0x610ca,_0x10b1c9,_0x135549,_0x557282,_0x367fd9,_0x4a757a,_0x292306,_0x34f9b3,_0x2db4d2){const _0x3ee503=_0x4d2b9e;super(_0x37a133,_0x22ca4a,_0x610ca,[],_0x10b1c9,_0x4a757a,_0x2db4d2,_0x557282,_0x367fd9),l(this,_0x3ee503(0x4c0),_0x3ee503(0x274)),(this[_0x3ee503(0x396)]=_0x135549,this[_0x3ee503(0x4fb)]=_0x292306,this['_transformService']=_0x34f9b3);}[_0x4d2b9e(0x3df)](_0x1e9391){const _0x415ad8=_0x4d2b9e,_0x593b5e=this[_0x415ad8(0x396)][_0x415ad8(0x49b)](q,this[_0x415ad8(0x51a)],this['type'],this[_0x415ad8(0x339)],[_0x1e9391],this['_handler']);return _0x593b5e['_updateLocalCache'](),_0x593b5e;}[_0x4d2b9e(0x4d0)](_0x3fcad7){const _0x33ed64=_0x4d2b9e;if(this['_checkMissing'](_0x3fcad7))return this[_0x33ed64(0x396)][_0x33ed64(0x49b)](B,this[_0x33ed64(0x51a)],this['type'],this[_0x33ed64(0x339)],[],null,[_0x3fcad7],this[_0x33ed64(0x266)]);try{const _0x5ab668=this[_0x33ed64(0x453)][_0x33ed64(0x202)]([_0x3fcad7],[this[_0x33ed64(0x339)]],!0x1);if(_0x46c507(_0x5ab668)){const {c1Prime:_0xe1ab6,c2Prime:_0x1c9899}=_0x5ab668;this['_executeRemoteChangeset'](_0xe1ab6[0x0]),_0x1c9899[0x0]['baseRev']=this[_0x33ed64(0x26b)]();const _0x1a502e=this[_0x33ed64(0x396)]['createInstance'](Q,this[_0x33ed64(0x51a)],this['type'],_0x1c9899[0x0],this[_0x33ed64(0x266)]);return _0x1a502e[_0x33ed64(0x2dd)](),_0x1a502e;}return this[_0x33ed64(0x3bb)](!0x1);}catch(_0x520a79){return this[_0x33ed64(0x4fb)]['error'](_0x520a79),this['_onConflict'](!0x1);}}[_0x4d2b9e(0x2da)](_0x1ce8bc){const _0x1abe1f=_0x4d2b9e,_0x3b5aa5=this[_0x1abe1f(0x50b)]['getCurrentRevOfUnit'](this[_0x1abe1f(0x51a)]);if(_0x1ce8bc[_0x1abe1f(0x24a)]<_0x3b5aa5-0x1)return this;if(this['_checkMissing'](_0x1ce8bc))return this[_0x1abe1f(0x396)][_0x1abe1f(0x49b)](B,this[_0x1abe1f(0x51a)],this['type'],null,[],this[_0x1abe1f(0x339)],[],this['_handler']);this[_0x1abe1f(0x363)]();const _0x404092=this[_0x1abe1f(0x396)][_0x1abe1f(0x49b)](pe,this[_0x1abe1f(0x51a)],this[_0x1abe1f(0x249)],this['_handler']);return _0x404092[_0x1abe1f(0x2dd)](),_0x404092;}['onRemoteRej'](_0x445281){const _0x566737=_0x4d2b9e;return this[_0x566737(0x3bb)](!!(_0x445281!=null&&_0x445281[_0x566737(0x3c8)]));}[_0x4d2b9e(0x45d)](){const _0x1f3c8b=_0x4d2b9e;return this[_0x1f3c8b(0x396)]['createInstance'](te,this['unitID'],this[_0x1f3c8b(0x249)],this[_0x1f3c8b(0x339)],[],this[_0x1f3c8b(0x266)]);}[_0x4d2b9e(0x495)](){return this;}[_0x4d2b9e(0x35f)](){const _0x2b8745=_0x4d2b9e;this[_0x2b8745(0x266)]['onSendChangeset'](this[_0x2b8745(0x339)]);}[_0x4d2b9e(0x3bb)](_0x3f4940){const _0x416979=_0x4d2b9e;return this[_0x416979(0x396)][_0x416979(0x49b)](ee,this['unitID'],this[_0x416979(0x249)],this[_0x416979(0x339)],[],this[_0x416979(0x266)],_0x3f4940);}};Q=_e([m(0x4,_0x3a6c9c(_0x51895d)),m(0x5,_0x3a6c9c(_0x59f841)),m(0x6,_0x3a6c9c(w)),m(0x7,_0x58f975),m(0x8,_0x4872ae),m(0x9,_0x13d98e),m(0xa,_0x5a5587)],Q);let q=class extends ue{constructor(_0x1ffd5e,_0x31f547,_0x57ba07,_0x489b7e,_0x40d02c,_0x40ad5e,_0x20de62,_0x329268,_0x5145bc,_0x4eaa9b,_0x31c308,_0x2e8fe0){const _0x5718fd=_0x4d2b9e;super(_0x1ffd5e,_0x31f547,_0x57ba07,_0x489b7e,_0x40d02c,_0x5145bc,_0x2e8fe0,_0x20de62,_0x329268),l(this,'status',_0x5718fd(0x2f1)),(this['_injector']=_0x40ad5e,this[_0x5718fd(0x4fb)]=_0x4eaa9b,this[_0x5718fd(0x453)]=_0x31c308);}[_0x4d2b9e(0x3df)](_0x24ed66){const _0x4ffaca=_0x4d2b9e;return this[_0x4ffaca(0x262)][_0x4ffaca(0x52a)](_0x24ed66),this;}[_0x4d2b9e(0x4d0)](_0x1675f7){const _0x13898f=_0x4d2b9e;if(this[_0x13898f(0x2dc)](_0x1675f7))return this[_0x13898f(0x396)][_0x13898f(0x49b)](B,this[_0x13898f(0x51a)],this['type'],this[_0x13898f(0x339)],this[_0x13898f(0x262)],null,[_0x1675f7],this[_0x13898f(0x266)]);try{const _0x4b0a92=this['_transformService'][_0x13898f(0x202)]([_0x1675f7],[this[_0x13898f(0x339)]],!0x1);if(_0x46c507(_0x4b0a92)){const {c1Prime:_0x213c8e,c2Prime:_0x1a6786}=_0x4b0a92,_0x2a0b0b=this[_0x13898f(0x453)]['transformMutationsWithChangeset'](_0x213c8e[0x0],this[_0x13898f(0x262)]);if(_0x4a48b2(_0x2a0b0b)){const {c1Prime:_0x16d6d3,m2Prime:_0x1f836a}=_0x2a0b0b;return this['_executeRemoteChangeset'](_0x16d6d3),_0x1a6786[0x0]['baseRev']=this[_0x13898f(0x26b)](),this['_injector'][_0x13898f(0x49b)](q,this[_0x13898f(0x51a)],this[_0x13898f(0x249)],_0x1a6786[0x0],_0x1f836a,this[_0x13898f(0x266)]);}throw _0x2a0b0b[_0x13898f(0x3fd)];}throw _0x4b0a92['error'];}catch(_0x39bf58){return this[_0x13898f(0x4fb)][_0x13898f(0x3fd)](_0x39bf58),this[_0x13898f(0x3bb)](!0x1);}}['onRemoteAck'](_0x1f37d8){const _0x18fee3=_0x4d2b9e;if(this[_0x18fee3(0x2dc)](_0x1f37d8))return this[_0x18fee3(0x396)]['createInstance'](B,this['unitID'],this['type'],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this['_handler']);this[_0x18fee3(0x363)]();const _0x29e4a9=this[_0x18fee3(0x396)][_0x18fee3(0x49b)](X,this['unitID'],this['type'],this[_0x18fee3(0x262)],this[_0x18fee3(0x266)]);return _0x29e4a9[_0x18fee3(0x259)](),_0x29e4a9[_0x18fee3(0x2dd)](),_0x29e4a9;}['onRemoteRej'](_0x39889b){const _0x29b94a=_0x4d2b9e;return this[_0x29b94a(0x3bb)](!!(_0x39889b!=null&&_0x39889b['isPermissionRej']));}[_0x4d2b9e(0x45d)](){const _0x565a77=_0x4d2b9e;return this['_injector'][_0x565a77(0x49b)](te,this['unitID'],this[_0x565a77(0x249)],this[_0x565a77(0x339)],this[_0x565a77(0x262)],this[_0x565a77(0x266)]);}['toggleOnline'](){return this;}['resend'](){const _0xf9b4e5=_0x4d2b9e;this[_0xf9b4e5(0x266)][_0xf9b4e5(0x423)](this[_0xf9b4e5(0x339)]);}[_0x4d2b9e(0x3bb)](_0x2fd09a){const _0x2fcfda=_0x4d2b9e;return this['_injector'][_0x2fcfda(0x49b)](ee,this['unitID'],this[_0x2fcfda(0x249)],null,this['_pendingMutations'],this[_0x2fcfda(0x266)],_0x2fd09a);}};q=_e([m(0x5,_0x3a6c9c(_0x51895d)),m(0x6,_0x3a6c9c(_0x59f841)),m(0x7,_0x3a6c9c(w)),m(0x8,_0x58f975),m(0x9,_0x4872ae),m(0xa,_0x13d98e),m(0xb,_0x5a5587)],q);let ee=class extends ue{constructor(_0x36e016,_0x4d6b12,_0x5e714c,_0x3ec862,_0x202cbd,_0x5ba14d=!0x1,_0x4fb443,_0x97e147,_0x18a454,_0x2759e9,_0x53dd39,_0x553f15,_0x4df9e7){const _0x501121=_0x4d2b9e;super(_0x36e016,_0x4d6b12,_0x5e714c,_0x3ec862,_0x202cbd,_0x97e147,_0x18a454,_0x53dd39,_0x2759e9),l(this,'status',_0x501121(0x248)),(this[_0x501121(0x389)]=_0x5ba14d,this[_0x501121(0x26a)]=_0x4fb443,this['_localeService']=_0x553f15,this[_0x501121(0x24d)]=_0x4df9e7,this[_0x501121(0x32f)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x4d2b9e(0x3df)](){return this;}['onRemoteChangeset'](){return this;}[_0x4d2b9e(0x2da)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x4d2b9e(0x495)](){return this;}[_0x4d2b9e(0x35f)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d2b9e(0x393)](){const _0x38512e=_0x4d2b9e;this[_0x38512e(0x2e1)][_0x38512e(0x534)](this[_0x38512e(0x51a)],this[_0x38512e(0x249)],null,[]);}[_0x4d2b9e(0x32f)](){const _0x5d1048=_0x4d2b9e;this[_0x5d1048(0x389)]?this[_0x5d1048(0x24d)][_0x5d1048(0x388)]({'title':this[_0x5d1048(0x4f2)]['t']('permission.title'),'content':this['_localeService']['t'](_0x5d1048(0x541)),'type':_0x5d1048(0x3fd),'duration':0x0}):this['_notificationService'][_0x5d1048(0x388)]({'title':this['_localeService']['t'](_0x5d1048(0x381)),'content':this[_0x5d1048(0x4f2)]['t'](_0x5d1048(0x518)),'type':_0x5d1048(0x3fd),'duration':0x0});}['_disableEditing'](){const _0x1edba1=_0x4d2b9e;this[_0x1edba1(0x26a)]['updatePermissionPoint'](new _0x438d93(this['unitID'])['id'],!0x1);}};ee=_e([m(0x6,_0x3a6c9c(_0xb81372)),m(0x7,_0x58f975),m(0x8,_0x5a5587),m(0x9,_0x3a6c9c(w)),m(0xa,_0x3a6c9c(_0x59f841)),m(0xb,_0x3a6c9c(_0x5e971c)),m(0xc,_0x59f046)],ee);let te=class extends ue{constructor(_0x5c5f5e,_0x25cc16,_0x3733c5,_0x3f5b6b,_0x1caaa8,_0x4ecc61,_0x491201,_0x1a45c1,_0x542f6b,_0x349d92){const _0x98fe4b=_0x4d2b9e;super(_0x5c5f5e,_0x25cc16,_0x3733c5,_0x3f5b6b,_0x1caaa8,_0x542f6b,_0x349d92,_0x491201,_0x1a45c1),l(this,_0x98fe4b(0x4c0),_0x98fe4b(0x47c)),this[_0x98fe4b(0x396)]=_0x4ecc61;}[_0x4d2b9e(0x3df)](_0x17bd06){const _0x4bed93=_0x4d2b9e;return this[_0x4bed93(0x262)]['push'](_0x17bd06),this[_0x4bed93(0x2dd)](),this;}[_0x4d2b9e(0x4d0)](_0xcc942){const _0x120cb5=_0x4d2b9e;throw new Error(_0x120cb5(0x45e));}[_0x4d2b9e(0x2da)](){const _0x1ccd9a=_0x4d2b9e;throw new Error(_0x1ccd9a(0x3e0));}[_0x4d2b9e(0x405)](){const _0x9de2b8=_0x4d2b9e;throw new Error(_0x9de2b8(0x46b));}[_0x4d2b9e(0x45d)](){return this;}[_0x4d2b9e(0x495)](){const _0x47aac6=_0x4d2b9e,{_injector:_0x288aea,_pendingMutations:_0xb15451,_awaitingChangeset:_0x416e34,unitID:_0x5d2340,_handler:_0x4965e2,type:_0xe65cbd}=this,_0x1e884=Ws(_0x288aea,_0x5d2340,_0xe65cbd,_0x416e34,_0xb15451,_0x4965e2);return _0x1e884 instanceof X?_0x1e884[_0x47aac6(0x259)]():(_0x1e884 instanceof q||_0x1e884 instanceof Q)&&_0x1e884[_0x47aac6(0x35f)](),_0x1e884;}[_0x4d2b9e(0x35f)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};te=_e([m(0x5,_0x3a6c9c(_0x51895d)),m(0x6,_0x3a6c9c(_0x59f841)),m(0x7,_0x3a6c9c(w)),m(0x8,_0x58f975),m(0x9,_0x5a5587)],te);let B=class extends ue{constructor(_0x1ea6c4,_0x726dff,_0x279de6,_0x540d25,_0x51a351,_0x237d93,_0x59b1a4,_0x19be8d,_0x51eef7,_0x1c731d,_0x41bf4d,_0x551f66,_0x17ed3d,_0x591692){const _0x573425=_0x4d2b9e;super(_0x1ea6c4,_0x726dff,_0x279de6,_0x540d25,_0x59b1a4,_0x551f66,_0x17ed3d,_0x51eef7,_0x1c731d),l(this,_0x573425(0x4c0),_0x573425(0x4cc)),(this['_acknowledgedAwaitingChangeset']=_0x51a351,this[_0x573425(0x3f4)]=_0x237d93,this[_0x573425(0x396)]=_0x19be8d,this[_0x573425(0x4fb)]=_0x41bf4d,this[_0x573425(0x453)]=_0x591692);}[_0x4d2b9e(0x3b0)](_0x1741bd){const _0x60d17b=_0x4d2b9e;try{const _0x1df906=[..._0x1741bd,...this['_queuedRemoteChangesets']],_0x3369d1=[this['_awaitingChangeset']||this[_0x60d17b(0x523)]][_0x60d17b(0x527)](_0x4796f7=>!!_0x4796f7);let _0x33d90a,_0x42846a;if(_0x3369d1[_0x60d17b(0x3b7)]){const _0x79ba6c=this[_0x60d17b(0x453)][_0x60d17b(0x202)](_0x1df906,_0x3369d1,!0x1);if(!_0x46c507(_0x79ba6c))throw _0x79ba6c['error'];_0x33d90a=_0x79ba6c[_0x60d17b(0x39e)],_0x42846a=_0x79ba6c['c2Prime'];}else _0x33d90a=_0x1df906,_0x42846a=[];let _0x1a9fb6=this[_0x60d17b(0x262)];_0x33d90a[_0x60d17b(0x380)](_0x2b62ef=>{const _0x474f06=_0x60d17b;let _0xbcec46;if(_0x1a9fb6[_0x474f06(0x3b7)]){const _0xcd85c4=this[_0x474f06(0x453)]['transformMutationsWithChangeset'](_0x2b62ef,_0x1a9fb6);if(!_0x4a48b2(_0xcd85c4))throw _0xcd85c4[_0x474f06(0x3fd)];_0xbcec46=_0xcd85c4[_0x474f06(0x39e)],_0x1a9fb6=_0xcd85c4[_0x474f06(0x269)];}else _0xbcec46=_0x2b62ef;this['_executeRemoteChangeset'](_0xbcec46);}),this[_0x60d17b(0x523)]&&this['_incrementRevisionNumber'](),this[_0x60d17b(0x339)]&&_0x42846a[_0x60d17b(0x3b7)]&&(_0x42846a[0x0]['baseRev']=this[_0x60d17b(0x26b)]());let _0x39c31f;if(this[_0x60d17b(0x339)]&&_0x1a9fb6[_0x60d17b(0x3b7)]!==0x0)_0x39c31f=this[_0x60d17b(0x396)][_0x60d17b(0x49b)](q,this[_0x60d17b(0x51a)],this[_0x60d17b(0x249)],_0x42846a[0x0],_0x1a9fb6,this[_0x60d17b(0x266)]);else{if(this['_awaitingChangeset']&&_0x1a9fb6[_0x60d17b(0x3b7)]===0x0)_0x42846a[0x0]['baseRev']=this[_0x60d17b(0x26b)](),_0x39c31f=this[_0x60d17b(0x396)][_0x60d17b(0x49b)](Q,this[_0x60d17b(0x51a)],this[_0x60d17b(0x249)],_0x42846a[0x0],this[_0x60d17b(0x266)]);else{if(_0x1a9fb6[_0x60d17b(0x3b7)]!==0x0){const _0x195342=this[_0x60d17b(0x396)][_0x60d17b(0x49b)](X,this[_0x60d17b(0x51a)],this[_0x60d17b(0x249)],_0x1a9fb6,this[_0x60d17b(0x266)]);_0x195342[_0x60d17b(0x259)](),_0x39c31f=_0x195342;}else _0x39c31f=this[_0x60d17b(0x396)][_0x60d17b(0x49b)](pe,this[_0x60d17b(0x51a)],this[_0x60d17b(0x249)],this['_handler']);}}return _0x39c31f[_0x60d17b(0x2dd)](),_0x39c31f;}catch(_0x51ce63){return this[_0x60d17b(0x4fb)][_0x60d17b(0x3fd)]('[FetchMissState]',_0x60d17b(0x279),_0x51ce63),this[_0x60d17b(0x396)][_0x60d17b(0x49b)](ee,this[_0x60d17b(0x51a)],this[_0x60d17b(0x249)],this[_0x60d17b(0x339)],this['_pendingMutations'],this[_0x60d17b(0x266)],!0x1);}}[_0x4d2b9e(0x35f)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4d2b9e(0x3df)](_0x353d6e){const _0x2f3272=_0x4d2b9e;return this['_pendingMutations'][_0x2f3272(0x52a)](_0x353d6e),this;}['onRemoteChangeset'](_0x4dfb52){const _0x11a772=_0x4d2b9e;return this[_0x11a772(0x3f4)][_0x11a772(0x52a)](_0x4dfb52),this;}[_0x4d2b9e(0x2da)](_0x3c9060){const _0x4c0624=_0x4d2b9e;if(this[_0x4c0624(0x339)])return this['_acknowledgedAwaitingChangeset']=this[_0x4c0624(0x339)],this['_awaitingChangeset']=null,this;throw new Error(_0x4c0624(0x222));}['onRemoteRej'](_0x10e19b){const _0x5205d7=_0x4d2b9e;return this[_0x5205d7(0x3bb)](!!(_0x10e19b!=null&&_0x10e19b['isPermissionRej']));}[_0x4d2b9e(0x45d)](){const _0x4fad4f=_0x4d2b9e;return this[_0x4fad4f(0x396)][_0x4fad4f(0x49b)](te,this[_0x4fad4f(0x51a)],this[_0x4fad4f(0x249)],this[_0x4fad4f(0x339)],this[_0x4fad4f(0x262)],this[_0x4fad4f(0x266)]);}['toggleOnline'](){return this;}[_0x4d2b9e(0x3bb)](_0x33a8a5){const _0x140687=_0x4d2b9e;return this[_0x140687(0x396)][_0x140687(0x49b)](ee,this[_0x140687(0x51a)],this['type'],this[_0x140687(0x339)],this[_0x140687(0x262)],this[_0x140687(0x266)],_0x33a8a5);}};B=_e([m(0x7,_0x3a6c9c(_0x51895d)),m(0x8,_0x3a6c9c(_0x59f841)),m(0x9,_0x3a6c9c(w)),m(0xa,_0x4872ae),m(0xb,_0x58f975),m(0xc,_0x5a5587),m(0xd,_0x13d98e)],B);function Ws(_0x3bfc63,_0x177def,_0x18296c,_0xc678b,_0x370309,_0x59f437){const _0x5304eb=_0x4d2b9e;return _0xc678b&&_0x370309[_0x5304eb(0x3b7)]?_0x3bfc63[_0x5304eb(0x49b)](q,_0x177def,_0x18296c,_0xc678b,_0x370309,_0x59f437):_0xc678b?_0x3bfc63[_0x5304eb(0x49b)](Q,_0x177def,_0x18296c,_0xc678b,_0x59f437):_0x370309[_0x5304eb(0x3b7)]?_0x3bfc63[_0x5304eb(0x49b)](X,_0x177def,_0x18296c,_0x370309,_0x59f437):_0x3bfc63['createInstance'](pe,_0x177def,_0x18296c,_0x59f437);}var Tr=Object[_0x4d2b9e(0x47b)],Rr=Object['getOwnPropertyDescriptor'],Wt=(_0x46b7e3,_0x1ce140,_0x3407e2,_0x161fae)=>{const _0x439fd8=_0x4d2b9e;for(var _0x1eb595=_0x161fae>0x1?void 0x0:_0x161fae?Rr(_0x1ce140,_0x3407e2):_0x1ce140,_0x3b4159=_0x46b7e3[_0x439fd8(0x3b7)]-0x1,_0x1be271;_0x3b4159>=0x0;_0x3b4159--)(_0x1be271=_0x46b7e3[_0x3b4159])&&(_0x1eb595=(_0x161fae?_0x1be271(_0x1ce140,_0x3407e2,_0x1eb595):_0x1be271(_0x1eb595))||_0x1eb595);return _0x161fae&&_0x1eb595&&Tr(_0x1ce140,_0x3407e2,_0x1eb595),_0x1eb595;},p=(_0x48a742,_0xc63521)=>(_0x2d0a17,_0x231eaf)=>_0xc63521(_0x2d0a17,_0x231eaf,_0x48a742);let qe=class extends _0x422fed{constructor(_0x533901,_0x949049,_0x3428c1,_0x3e7281,_0x3e162f,_0x397126,_0x6c3a57,_0x5bb3ba,_0x18037d,_0x32a199,_0x422798,_0x494bef,_0x286793){const _0x53e928=_0x4d2b9e;super(),l(this,'_state$',new _0x119970(null)),l(this,_0x53e928(0x528),this['_state$'][_0x53e928(0x3e3)]()),l(this,_0x53e928(0x3f0)),l(this,_0x53e928(0x357),!0x1),l(this,'_changesetSessionId',''),l(this,'_changesetReqId',0x0),l(this,_0x53e928(0x41e),this[_0x53e928(0x528)]['pipe'](_0xc4ce42(_0x3cffb5=>_0x3cffb5?_0x3cffb5[_0x53e928(0x4c0)]:P['OFFLINE']),_0x2cc9d1(0x1))),l(this,'_transitionLocked',!0x1),l(this,'_remoteChangesetQueue',[]),(this[_0x53e928(0x51a)]=_0x533901,this[_0x53e928(0x207)]=_0x949049,this['_type']=_0x3428c1,this['_injector']=_0x3e7281,this['_localCacheService']=_0x3e162f,this[_0x53e928(0x214)]=_0x397126,this[_0x53e928(0x4f2)]=_0x6c3a57,this[_0x53e928(0x50b)]=_0x5bb3ba,this[_0x53e928(0x4fb)]=_0x18037d,this['_commandService']=_0x32a199,this[_0x53e928(0x52c)]=_0x422798,this[_0x53e928(0x26a)]=_0x494bef,this[_0x53e928(0x4b0)]=_0x286793);}get[_0x4d2b9e(0x503)](){const _0x3a2e01=_0x4d2b9e;return this[_0x3a2e01(0x3f0)];}async[_0x4d2b9e(0x2a9)](){const _0x8c6110=_0x4d2b9e;if(this[_0x8c6110(0x503)])throw new Error(_0x8c6110(0x356));await this['_init']();}[_0x4d2b9e(0x4fe)](){const _0x1a2333=_0x4d2b9e;return this[_0x1a2333(0x357)]=!0x0,_0xd3e61d(()=>{const _0x2d6a57=_0x1a2333;this['_collaborationPaused']=!0x1,this[_0x2d6a57(0x4ea)]();});}[_0x4d2b9e(0x4ac)](_0x3ec608){const _0x495571=_0x4d2b9e;this['_state']=_0x3ec608,this[_0x495571(0x318)][_0x495571(0x221)](_0x3ec608);}async['_init'](){const _0x3aee2f=_0x4d2b9e;var _0x3d3a62;this[_0x3aee2f(0x4ac)](await this[_0x3aee2f(0x348)]()),this[_0x3aee2f(0x4b0)]&&((_0x3d3a62=this[_0x3aee2f(0x4b0)])==null||_0x3d3a62[_0x3aee2f(0x1d8)](this['unitID']),this[_0x3aee2f(0x23d)](this[_0x3aee2f(0x4b0)][_0x3aee2f(0x410)](this[_0x3aee2f(0x51a)])[_0x3aee2f(0x442)](_0x3d26f6=>{const _0x11823c=_0x3aee2f;this[_0x11823c(0x4fb)][_0x11823c(0x277)](_0x11823c(0x2e0),_0x11823c(0x1df),_0x3d26f6),_0x3d26f6===Vs[_0x11823c(0x25c)]?(this['_messageService'][_0x11823c(0x388)]({'content':this[_0x11823c(0x4f2)]['t'](_0x11823c(0x1db)),'type':_0x3a3d7c['Warning']}),this[_0x11823c(0x26a)]['updatePermissionPoint'](new _0x438d93(this[_0x11823c(0x51a)])['id'],!0x1)):this['_permissionService']['updatePermissionPoint'](new _0x438d93(this[_0x11823c(0x51a)])['id'],!0x0);})));let _0x3e8682=!0x1;return this[_0x3aee2f(0x23d)](this[_0x3aee2f(0x207)][_0x3aee2f(0x2cf)][_0x3aee2f(0x442)](_0x35b9cb=>{const _0x511086=_0x3aee2f;_0x35b9cb===Y['ONLINE']?this[_0x511086(0x30b)](_0x3e8682):_0x35b9cb===Y[_0x511086(0x3fe)]&&(_0x3e8682=!0x0,this[_0x511086(0x441)]());})),this['disposeWithMe'](this[_0x3aee2f(0x207)][_0x3aee2f(0x4a1)][_0x3aee2f(0x442)](_0x936a54=>{const _0x3010b4=_0x3aee2f;try{switch(_0x936a54[_0x3010b4(0x4b6)]){case _0x3e8b39[_0x3010b4(0x332)]:{this[_0x3010b4(0x3d9)](_0x3e2d22(_0x936a54[_0x3010b4(0x4b2)]));break;}case _0x3e8b39[_0x3010b4(0x22b)]:{this[_0x3010b4(0x2a3)](_0x936a54[_0x3010b4(0x4b2)]);break;}case _0x3e8b39['CHANGESET_REJ']:{this[_0x3010b4(0x418)]();break;}case _0x3e8b39[_0x3010b4(0x347)]:{this[_0x3010b4(0x1fe)](_0x936a54[_0x3010b4(0x4b2)][_0x3010b4(0x4d6)][_0x3010b4(0x1de)](_0x38b361=>_0x3e2d22(_0x38b361)));break;}case _0x3e8b39['PERMISSION_REJ']:this[_0x3010b4(0x418)]({'isPermissionRej':!0x0});}}catch(_0x128049){throw console[_0x3010b4(0x3fd)](_0x3010b4(0x4c5),_0x128049),_0x128049;}})),this[_0x3aee2f(0x3f0)];}['_unlockTransition'](){const _0x40a548=_0x4d2b9e;this[_0x40a548(0x1d4)]=!0x1;}[_0x4d2b9e(0x39b)](){const _0x4714f0=_0x4d2b9e;if(this[_0x4714f0(0x1d4)])throw new Error(_0x4714f0(0x54c));this[_0x4714f0(0x1d4)]=!0x0;}['_onLocalMutation'](_0x10872d){const _0x351396=_0x4d2b9e;this['_lockTransition'](),this['_updateState'](this[_0x351396(0x3f0)]['appendMutation'](_0x10872d)),this[_0x351396(0x51b)]();}[_0x4d2b9e(0x3d9)](_0x5d203){const _0x353dc2=_0x4d2b9e;if(!(_0x5d203[_0x353dc2(0x24a)]<=this[_0x353dc2(0x50b)]['getCurrentRevOfUnit'](this[_0x353dc2(0x51a)]))){if(this[_0x353dc2(0x357)]){this[_0x353dc2(0x2f6)][_0x353dc2(0x52a)](_0x5d203);return;}this['_applyRemoteChangeset'](_0x5d203);}}[_0x4d2b9e(0x4ea)](){const _0x1d1931=_0x4d2b9e;this[_0x1d1931(0x2f6)][_0x1d1931(0x380)](_0x3bfd67=>this[_0x1d1931(0x206)](_0x3bfd67)),this[_0x1d1931(0x2f6)]=[];}[_0x4d2b9e(0x206)](_0x444dd1){const _0x590d57=_0x4d2b9e,_0x3969bb=this['_compressMutationService'][_0x590d57(0x530)][_0x590d57(0x4e0)](this[_0x590d57(0x214)][_0x590d57(0x530)][_0x590d57(0x4e3)]()['COMPRESS_MUTATION_APPLY'])(_0x444dd1[_0x590d57(0x329)],null)||_0x444dd1[_0x590d57(0x329)],_0x21cf3e={..._0x444dd1,'mutations':_0x3969bb};this['_lockTransition'](),this[_0x590d57(0x4ac)](this['_state'][_0x590d57(0x4d0)](_0x21cf3e)),this[_0x590d57(0x51b)]();}[_0x4d2b9e(0x2a3)](_0x41a301){const _0x58ca25=_0x4d2b9e;this[_0x58ca25(0x39b)](),this[_0x58ca25(0x4ac)](this[_0x58ca25(0x3f0)]['onRemoteAck'](_0x41a301)),this[_0x58ca25(0x51b)]();}['_onRemoteRejected'](_0xbb710b){const _0x42274e=_0x4d2b9e;this[_0x42274e(0x39b)](),this[_0x42274e(0x4ac)](this[_0x42274e(0x3f0)]['onRemoteRej'](_0xbb710b)),this[_0x42274e(0x51b)]();}[_0x4d2b9e(0x1fe)](_0x540e7f){const _0x1df1e3=_0x4d2b9e;if(!(this[_0x1df1e3(0x3f0)]instanceof B))throw new TypeError(_0x1df1e3(0x535));const _0x2080a1=_0x540e7f[_0x1df1e3(0x1de)](_0x4d62ec=>{const _0x5a2a20=_0x1df1e3,_0x704368=this[_0x5a2a20(0x214)][_0x5a2a20(0x530)][_0x5a2a20(0x4e0)](this[_0x5a2a20(0x214)][_0x5a2a20(0x530)][_0x5a2a20(0x4e3)]()[_0x5a2a20(0x531)])(_0x4d62ec[_0x5a2a20(0x329)],null)||_0x4d62ec['mutations'];return{..._0x4d62ec,'mutations':_0x704368};});this[_0x1df1e3(0x39b)](),this['_updateState'](this[_0x1df1e3(0x3f0)][_0x1df1e3(0x3b0)](_0x2080a1)),this[_0x1df1e3(0x51b)]();}['_toggleOffline'](){const _0x33ccb8=_0x4d2b9e;this[_0x33ccb8(0x39b)](),this[_0x33ccb8(0x4ac)](this[_0x33ccb8(0x3f0)][_0x33ccb8(0x45d)]()),this[_0x33ccb8(0x51b)]();}[_0x4d2b9e(0x30b)](_0x3a0948=!0x1){const _0x468734=_0x4d2b9e;this['_lockTransition'](),this['_updateState'](this[_0x468734(0x3f0)][_0x468734(0x495)]()),this[_0x468734(0x51b)]();const _0xdff23b=this[_0x468734(0x3f0)];_0x3a0948&&_0xdff23b instanceof pe&&(this['_lockTransition'](),this['_updateState'](_0xdff23b[_0x468734(0x2c7)]()),this[_0x468734(0x51b)]());}async[_0x4d2b9e(0x348)](){return new Promise(_0x42d8f7=>{const _0x3b92fd=_0x5c56;this['session']['sessionStatus$'][_0x3b92fd(0x3a1)](_0x58c955(0x1))[_0x3b92fd(0x442)](async _0x19728a=>{const _0x577f57=_0x3b92fd;_0x42d8f7(await this['_createInitialStateImpl'](_0x19728a===Y[_0x577f57(0x476)]));});});}[_0x4d2b9e(0x3d4)](){const _0x41204b=_0x4d2b9e,_0x5e832b=this[_0x41204b(0x51a)];return{'onStateChange':(_0x45c8a4,_0x1cf8bb)=>{const _0x42d5e9=_0x41204b;if(_0x45c8a4!==this[_0x42d5e9(0x3f0)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x45c8a4[_0x42d5e9(0x4c0)]+'\x0aAfter:\x20'+_0x1cf8bb['status']+_0x42d5e9(0x4af)+this[_0x42d5e9(0x3f0)][_0x42d5e9(0x4c0)]);this['_updateState'](_0x1cf8bb);},'onSendChangeset':_0x4e0b7b=>{const _0x32ab98=_0x41204b;_0x4e0b7b[_0x32ab98(0x34c)]||(_0x4e0b7b[_0x32ab98(0x34c)]=this[_0x32ab98(0x29f)],_0x4e0b7b['reqId']=++this[_0x32ab98(0x4c9)]);const _0x55e4eb={'eventID':_0x3e8b39[_0x32ab98(0x226)],'data':{'unitID':_0x4e0b7b[_0x32ab98(0x51a)],'unitType':this[_0x32ab98(0x364)],'changeset':_0x4e0b7b,'memberID':this[_0x32ab98(0x207)]['getMemberID']()}};this['session']['send'](_0x55e4eb,this[_0x32ab98(0x51a)]);},'onMissingChangesets':({from:_0x5089cf,to:_0x5757a0})=>{const _0x2f1037=_0x41204b;this[_0x2f1037(0x4fb)][_0x2f1037(0x277)](_0x2f1037(0x2e0),'fetching\x20missing\x20changesets\x20from\x20'+_0x5089cf+_0x2f1037(0x315)+_0x5757a0);const _0x25067d={'eventID':_0x3e8b39['FETCH_MISSING'],'data':{'unitID':_0x5e832b,'unitType':this[_0x2f1037(0x364)],'from':_0x5089cf,'to':_0x5757a0}};this[_0x2f1037(0x207)]['send'](_0x25067d,this[_0x2f1037(0x51a)]);}};}async['_createInitialStateImpl'](_0x36ac66){const _0x2e68ca=_0x4d2b9e;var _0x5edc88,_0x2b7a5f;const _0x56fb28=await this[_0x2e68ca(0x2e1)][_0x2e68ca(0x245)](this[_0x2e68ca(0x51a)]),_0x2681f3=(_0x5edc88=_0x56fb28==null?void 0x0:_0x56fb28['mutations'])!=null?_0x5edc88:[],_0x2a394b=(_0x2b7a5f=_0x56fb28==null?void 0x0:_0x56fb28[_0x2e68ca(0x417)])!=null?_0x2b7a5f:null,_0x48b770=!!(_0x2a394b!=null&&_0x2a394b[_0x2e68ca(0x34c)])&&!!(_0x2a394b!=null&&_0x2a394b[_0x2e68ca(0x536)]);this['_changesetSessionId']=_0x48b770?_0x2a394b[_0x2e68ca(0x34c)]:ir(),this[_0x2e68ca(0x4c9)]=_0x48b770?_0x2a394b[_0x2e68ca(0x536)]:0x0;const _0x50975=this[_0x2e68ca(0x51a)];try{this[_0x2e68ca(0x4a2)](_0x2a394b,_0x2681f3);}catch(_0x385b0c){this[_0x2e68ca(0x4fb)][_0x2e68ca(0x3fd)](_0x385b0c);}const _0x3ad1a4=this[_0x2e68ca(0x3d4)]();if(_0x36ac66){const _0x188fcb=Ws(this[_0x2e68ca(0x396)],_0x50975,this[_0x2e68ca(0x364)],_0x2a394b,_0x2681f3,_0x3ad1a4);return _0x188fcb instanceof X?_0x188fcb[_0x2e68ca(0x259)]():(_0x188fcb instanceof q||_0x188fcb instanceof Q)&&_0x188fcb[_0x2e68ca(0x35f)](),_0x188fcb;}return this[_0x2e68ca(0x396)][_0x2e68ca(0x49b)](te,_0x50975,this[_0x2e68ca(0x364)],_0x2a394b,_0x2681f3,_0x3ad1a4);}[_0x4d2b9e(0x4a2)](_0x1f4723,_0x148469){const _0x334ab3=_0x4d2b9e;var _0x58efc6,_0x4b1c39;const _0x12f27c=this['_compressMutationService']['interceptor'][_0x334ab3(0x4e0)](this[_0x334ab3(0x214)][_0x334ab3(0x530)][_0x334ab3(0x4e3)]()['COMPRESS_MUTATION_APPLY']);(_0x58efc6=_0x12f27c((_0x1f4723==null?void 0x0:_0x1f4723['mutations'])||[],null))==null||_0x58efc6['forEach'](_0x2494da=>this[_0x334ab3(0x1e5)][_0x334ab3(0x49a)](_0x2494da['id'],_0x2494da[_0x334ab3(0x1ef)])),(_0x4b1c39=_0x12f27c(_0x148469||[],null))==null||_0x4b1c39[_0x334ab3(0x380)](_0x1319de=>this[_0x334ab3(0x1e5)][_0x334ab3(0x49a)](_0x1319de['id'],_0x1319de['params']));}};qe=Wt([p(0x3,_0x3a6c9c(_0x51895d)),p(0x4,_0x3a6c9c(w)),p(0x5,_0x3a6c9c(_0xea5024)),p(0x6,_0x3a6c9c(_0x5e971c)),p(0x7,_0x3a6c9c(_0x59f841)),p(0x8,_0x4872ae),p(0x9,_0x58f975),p(0xa,_0x15989f),p(0xb,_0xb81372),p(0xc,_0x2c3c6c(tt))],qe);let Tt=class extends qe{constructor(_0xba8f2d,_0x5df3ff,_0x39ceb1,_0x24d9d2,_0x277eff,_0x52eb11,_0x2fa633,_0x3df98c,_0x515c5b,_0x412a7b,_0x2b52d5,_0xb06032,_0x12fc1e,_0x5e0614,_0x1ed2a7,_0x52102f,_0x592b78){const _0x24f6b6=_0x4d2b9e;super(_0xba8f2d,_0x39ceb1,_0x5df3ff,_0x24d9d2,_0x277eff,_0x52eb11,_0x2fa633,_0x3df98c,_0x12fc1e,_0x5e0614,_0x1ed2a7,_0x52102f,_0x592b78),this[_0x24f6b6(0x51a)]=_0xba8f2d,this[_0x24f6b6(0x249)]=_0x5df3ff,this[_0x24f6b6(0x4d8)]=_0x515c5b,this[_0x24f6b6(0x4bf)]=_0x412a7b,this['_docTransformSelectionsService']=_0x2b52d5,this[_0x24f6b6(0x2d8)]=_0xb06032;}[_0x4d2b9e(0x3d4)](){const _0x5bcc7b=_0x4d2b9e,_0x341dcd=super[_0x5bcc7b(0x3d4)]();return _0x341dcd[_0x5bcc7b(0x3f7)]=_0x492482=>this[_0x5bcc7b(0x4bf)][_0x5bcc7b(0x4f5)](_0x492482),_0x341dcd[_0x5bcc7b(0x428)]=_0x1b67c5=>this[_0x5bcc7b(0x21c)]['transformSelections'](_0x1b67c5),_0x341dcd[_0x5bcc7b(0x509)]=_0x20a1dd=>this[_0x5bcc7b(0x2d8)]['syncEditingCollabCursor'](_0x20a1dd),_0x341dcd[_0x5bcc7b(0x467)]=_0x858141=>this[_0x5bcc7b(0x4bf)]['transformRemoteChangeset'](_0x858141),_0x341dcd;}async[_0x4d2b9e(0x288)](){const _0x9a46cf=_0x4d2b9e,_0x2fb35e=await super[_0x9a46cf(0x288)]();return this[_0x9a46cf(0x4d8)]['docStateChange$'][_0x9a46cf(0x3a1)](_0x1c623f(this[_0x9a46cf(0x419)]))[_0x9a46cf(0x442)](_0x16a5ef=>{const _0x5a15ea=_0x9a46cf;if(_0x16a5ef==null)return;const {unitId:_0x5df98f,redoState:_0x441bb3,commandId:_0x2e5175}=_0x16a5ef;if(_0x5df98f!==this['unitID'])return;const _0x4da125={'id':_0x2e5175,'type':_0x5c4d79['MUTATION'],'params':{'unitId':_0x5df98f,'actions':_0x441bb3[_0x5a15ea(0x3a4)],'textRanges':null}};this[_0x5a15ea(0x4ab)](_0x4da125);}),_0x2fb35e;}};Tt=Wt([p(0x3,_0x3a6c9c(_0x51895d)),p(0x4,_0x3a6c9c(w)),p(0x5,_0x3a6c9c(_0xea5024)),p(0x6,_0x3a6c9c(_0x5e971c)),p(0x7,_0x3a6c9c(_0x59f841)),p(0x8,_0x3a6c9c(_0x2dc970)),p(0x9,_0x3a6c9c(Ye)),p(0xa,_0x3a6c9c(Xe)),p(0xb,_0x3a6c9c(Ft)),p(0xc,_0x4872ae),p(0xd,_0x58f975),p(0xe,_0x15989f),p(0xf,_0xb81372),p(0x10,_0x2c3c6c(tt))],Tt);let Rt=class extends qe{constructor(_0x1e3149,_0x5ba891,_0x50a3af,_0x46b991,_0x5a8233,_0x460d71,_0x99255d,_0x35fa99,_0x5ec2ab,_0x5f773a,_0xf1ae79,_0x4b8fd9,_0x4cdca6,_0x15f3d1){const _0x234624=_0x4d2b9e;super(_0x1e3149,_0x50a3af,_0x5ba891,_0x46b991,_0x5a8233,_0x460d71,_0x99255d,_0x35fa99,_0x5f773a,_0xf1ae79,_0x4b8fd9,_0x4cdca6,_0x15f3d1),this[_0x234624(0x51a)]=_0x1e3149,this['type']=_0x5ba891,this[_0x234624(0x540)]=_0x5ec2ab;}[_0x4d2b9e(0x3d4)](){const _0x508d95=_0x4d2b9e,_0x873e1=super[_0x508d95(0x3d4)]();return _0x873e1['onTransformSelections']=_0xa57733=>this[_0x508d95(0x540)][_0x508d95(0x385)](_0xa57733),_0x873e1;}async[_0x4d2b9e(0x288)](){const _0x2300bd=_0x4d2b9e,_0x4ee653=await super[_0x2300bd(0x288)]();return this['disposeWithMe'](this[_0x2300bd(0x1e5)][_0x2300bd(0x33e)]((_0x2ebdfb,_0x55f6a3)=>{const _0x323ea9=_0x2300bd;if(_0x2ebdfb[_0x323ea9(0x249)]!==_0x5c4d79[_0x323ea9(0x293)]||_0x55f6a3!=null&&_0x55f6a3[_0x323ea9(0x489)]||_0x55f6a3!=null&&_0x55f6a3[_0x323ea9(0x27a)])return;const _0x41437c=_0x2ebdfb[_0x323ea9(0x1ef)];if((_0x41437c==null?void 0x0:_0x41437c[_0x323ea9(0x299)])!==this[_0x323ea9(0x51a)])return;const _0x2a6cb6=_0x2ebdfb,_0x1155e5=this[_0x323ea9(0x214)]['interceptor'][_0x323ea9(0x4e0)](this['_compressMutationService']['interceptor'][_0x323ea9(0x4e3)]()[_0x323ea9(0x54d)])([_0x2a6cb6],null)||[_0x2a6cb6];this['_onLocalMutation'](_0x1155e5[0x0]);})),_0x4ee653;}};Rt=Wt([p(0x3,_0x3a6c9c(_0x51895d)),p(0x4,_0x3a6c9c(w)),p(0x5,_0x3a6c9c(_0xea5024)),p(0x6,_0x3a6c9c(_0x5e971c)),p(0x7,_0x3a6c9c(_0x59f841)),p(0x8,_0x3a6c9c(Ke)),p(0x9,_0x4872ae),p(0xa,_0x58f975),p(0xb,_0x15989f),p(0xc,_0xb81372),p(0xd,_0x2c3c6c(tt))],Rt);var Or=Object[_0x4d2b9e(0x47b)],Dr=Object[_0x4d2b9e(0x298)],wr=(_0x3d265b,_0x394dde,_0x38b0db,_0xfdc38c)=>{const _0x45875c=_0x4d2b9e;for(var _0x5b8217=_0xfdc38c>0x1?void 0x0:_0xfdc38c?Dr(_0x394dde,_0x38b0db):_0x394dde,_0x24010a=_0x3d265b[_0x45875c(0x3b7)]-0x1,_0x58f5b3;_0x24010a>=0x0;_0x24010a--)(_0x58f5b3=_0x3d265b[_0x24010a])&&(_0x5b8217=(_0xfdc38c?_0x58f5b3(_0x394dde,_0x38b0db,_0x5b8217):_0x58f5b3(_0x5b8217))||_0x5b8217);return _0xfdc38c&&_0x5b8217&&Or(_0x394dde,_0x38b0db,_0x5b8217),_0x5b8217;},_t=(_0x5afb80,_0x58c2f9)=>(_0x484326,_0x10bfff)=>_0x58c2f9(_0x484326,_0x10bfff,_0x5afb80);let Le=class extends _0x422fed{constructor(_0x5f1d1d,_0x172863,_0x4c978b){const _0x5454d=_0x4d2b9e;super(),l(this,'_entities',new Map()),l(this,_0x5454d(0x51d),new _0x1eeb2c()),(this[_0x5454d(0x396)]=_0x5f1d1d,this['_collabSessionService']=_0x172863,this[_0x5454d(0x2af)]=_0x4c978b,this[_0x5454d(0x288)]());}[_0x4d2b9e(0x485)](){const _0x2d53db=_0x4d2b9e;super['dispose'](),this[_0x2d53db(0x295)][_0x2d53db(0x380)](_0x1102f4=>_0x1102f4[_0x2d53db(0x485)]()),this[_0x2d53db(0x295)][_0x2d53db(0x360)]();}[_0x4d2b9e(0x20b)](_0x587a1f){const _0xf5301e=_0x4d2b9e;var _0x343857;return(_0x343857=this['_entities'][_0xf5301e(0x29a)](_0x587a1f))!=null?_0x343857:null;}[_0x4d2b9e(0x358)](_0x5e8b5b){const _0x219a02=_0x4d2b9e,_0x57c6a6=this[_0x219a02(0x20b)](_0x5e8b5b);return _0x57c6a6?_0x2fcf97(_0x57c6a6):this['_entityInit$'][_0x219a02(0x3a1)](_0x3b2fa1(_0x1b001c=>_0x1b001c[_0x219a02(0x51a)]===_0x5e8b5b));}['_init'](){const _0x41144d=_0x4d2b9e;this['_univerInstanceService'][_0x41144d(0x27d)](_0x20a2e2[_0x41144d(0x32b)])['pipe'](_0x1c623f(this[_0x41144d(0x419)]),_0x11944f(0x10))[_0x41144d(0x442)](async _0x53cef5=>{const _0x3c8b2e=_0x41144d,_0x5a6c45=_0x53cef5[_0x3c8b2e(0x459)](),_0x4a7630=await this[_0x3c8b2e(0x2fe)](_0x5a6c45,k[_0x3c8b2e(0x32b)]);this[_0x3c8b2e(0x295)][_0x3c8b2e(0x2be)](_0x5a6c45,_0x4a7630);}),this[_0x41144d(0x2af)][_0x41144d(0x27d)](_0x20a2e2['UNIVER_DOC'])[_0x41144d(0x3a1)](_0x1c623f(this['dispose$']),_0x11944f(0x10))[_0x41144d(0x3a1)](_0x3b2fa1(_0x1b5e2b=>!_0x1b5e2b[_0x41144d(0x459)]()[_0x41144d(0x3c9)]('__')))[_0x41144d(0x442)](async _0x223a0c=>{const _0xbb38df=_0x41144d,_0xb22d65=_0x223a0c[_0xbb38df(0x459)](),_0x1852d7=await this[_0xbb38df(0x2fe)](_0xb22d65,k[_0xbb38df(0x447)]);this[_0xbb38df(0x295)][_0xbb38df(0x2be)](_0xb22d65,_0x1852d7);}),_0x18ccc3(this[_0x41144d(0x2af)][_0x41144d(0x31c)](_0x20a2e2[_0x41144d(0x32b)]),this['_univerInstanceService'][_0x41144d(0x31c)](_0x20a2e2[_0x41144d(0x447)]))[_0x41144d(0x3a1)](_0x1c623f(this['dispose$']))['subscribe'](_0x19cc73=>{const _0x3ebca2=_0x41144d,_0x14c3db=_0x19cc73[_0x3ebca2(0x459)](),_0x43db4b=this['_entities']['get'](_0x14c3db);_0x43db4b&&(_0x43db4b['dispose'](),this[_0x3ebca2(0x295)][_0x3ebca2(0x1f1)](_0x14c3db));});}async[_0x4d2b9e(0x2fe)](_0xd551be,_0x2efe36){const _0x4a4033=_0x4d2b9e,_0x4f6141=await this[_0x4a4033(0x448)][_0x4a4033(0x323)](_0xd551be),_0x181283=this[_0x4a4033(0x396)]['createInstance'](this['_getCtorByUniverType'](_0x2efe36),_0xd551be,_0x2efe36,_0x4f6141);return await _0x181283[_0x4a4033(0x2a9)](),this[_0x4a4033(0x51d)][_0x4a4033(0x221)](_0x181283),_0x181283;}['_getCtorByUniverType'](_0xa9e494){const _0x22ff90=_0x4d2b9e;switch(_0xa9e494){case k[_0x22ff90(0x447)]:return Tt;case k[_0x22ff90(0x32b)]:return Rt;default:throw new Error(_0x22ff90(0x3d2)+_0xa9e494);}}};Le=wr([_t(0x0,_0x3a6c9c(_0x51895d)),_t(0x1,_0x3a6c9c(he)),_t(0x2,_0x5dad13)],Le);const fs=[_0x4d2b9e(0x281),_0x4d2b9e(0x3af),_0x4d2b9e(0x1f6),'red300','blue400','gold400'];class Gt extends _0x5f4ac3{constructor(){const _0x1e5642=_0x4d2b9e;super(...arguments),l(this,_0x1e5642(0x3f3),new Map()),l(this,'_colorIndex',0x0);}[_0x4d2b9e(0x4a6)](_0x42cdd0){const _0x305d4e=_0x4d2b9e;if(this[_0x305d4e(0x3f3)][_0x305d4e(0x4e6)](_0x42cdd0))return this['_assignedColors'][_0x305d4e(0x29a)](_0x42cdd0);const _0x3df782=fs[this[_0x305d4e(0x4e9)]];return this[_0x305d4e(0x4e9)]=(this[_0x305d4e(0x4e9)]+0x1)%fs[_0x305d4e(0x3b7)],this[_0x305d4e(0x3f3)]['set'](_0x42cdd0,_0x3df782),_0x3df782;}}var Pr=Object[_0x4d2b9e(0x47b)],yr=Object['getOwnPropertyDescriptor'],Ur=(_0x341de7,_0x132e2c,_0x5d7a63,_0x22e840)=>{const _0x2b7a48=_0x4d2b9e;for(var _0x5db648=_0x22e840>0x1?void 0x0:_0x22e840?yr(_0x132e2c,_0x5d7a63):_0x132e2c,_0x28d9ca=_0x341de7[_0x2b7a48(0x3b7)]-0x1,_0x1f9de;_0x28d9ca>=0x0;_0x28d9ca--)(_0x1f9de=_0x341de7[_0x28d9ca])&&(_0x5db648=(_0x22e840?_0x1f9de(_0x132e2c,_0x5d7a63,_0x5db648):_0x1f9de(_0x5db648))||_0x5db648);return _0x22e840&&_0x5db648&&Pr(_0x132e2c,_0x5d7a63,_0x5db648),_0x5db648;},ie=(_0x3580d1,_0xbe95d2)=>(_0x451660,_0x1c77b9)=>_0xbe95d2(_0x451660,_0x1c77b9,_0x3580d1);const Nr=0x12c,Mr=0x64;let Ot=class extends _0x422fed{constructor(_0x2d8381,_0x7337d4,_0x126949,_0x1268ce,_0x1f965e,_0x43b190,_0x1ba7cd,_0xdf7813,_0x5bf995){const _0x112c2a=_0x4d2b9e;super(),l(this,'_online',!0x1),l(this,'_init',!0x1),l(this,_0x112c2a(0x24e),new _0x119970(new Map())),l(this,_0x112c2a(0x1cf),this[_0x112c2a(0x24e)][_0x112c2a(0x3e3)]()),l(this,_0x112c2a(0x42c),new _0x119970([])),l(this,_0x112c2a(0x3a8),this[_0x112c2a(0x42c)][_0x112c2a(0x3a1)](_0x17d959(Nr))),l(this,_0x112c2a(0x283),_0x37d18e(_0x4a6100=>{const _0x4a96c0=_0x112c2a,_0xcc530c={'eventID':_0x3e8b39[_0x4a96c0(0x445)],'data':{'unitID':this[_0x4a96c0(0x51a)],'memberID':this['_session'][_0x4a96c0(0x3a0)](),'selection':Fs(_0x4a6100)}};this['_session'][_0x4a96c0(0x26c)](_0xcc530c,this[_0x4a96c0(0x51a)]);},Mr)),(this[_0x112c2a(0x51a)]=_0x2d8381,this[_0x112c2a(0x3d5)]=_0x7337d4,this[_0x112c2a(0x396)]=_0x126949,this[_0x112c2a(0x3b3)]=_0x1268ce,this[_0x112c2a(0x31e)]=_0x1f965e,this['_syncEditingCollabCursorService']=_0x43b190,this['_transformService']=_0x1ba7cd,this[_0x112c2a(0x2af)]=_0xdf7813,this[_0x112c2a(0x1e5)]=_0x5bf995);}get['cursorInfo'](){const _0x5547b7=_0x4d2b9e;return this[_0x5547b7(0x24e)]['getValue']();}get['roomMembers'](){const _0x408444=_0x4d2b9e;return this['_roomMembers$'][_0x408444(0x331)]();}[_0x4d2b9e(0x485)](){const _0x16b8b7=_0x4d2b9e;super[_0x16b8b7(0x485)](),this[_0x16b8b7(0x24e)][_0x16b8b7(0x221)](new Map()),this[_0x16b8b7(0x24e)][_0x16b8b7(0x2c6)](),this[_0x16b8b7(0x42c)]['next']([]),this[_0x16b8b7(0x42c)]['complete']();}[_0x4d2b9e(0x2a9)](){const _0x49a22c=_0x4d2b9e;this['_init']||(this[_0x49a22c(0x288)]=!0x0,this['_session'][_0x49a22c(0x2cf)][_0x49a22c(0x3a1)](_0x1c623f(this[_0x49a22c(0x419)]))[_0x49a22c(0x442)](_0x26de74=>{const _0x6fd08d=_0x49a22c;_0x26de74===Y[_0x6fd08d(0x476)]?this['_toggleOnline']():this[_0x6fd08d(0x441)]();}),this['_session'][_0x49a22c(0x4a1)]['pipe'](_0x1c623f(this[_0x49a22c(0x419)]))['subscribe'](_0x472ddf=>{const _0x2ab035=_0x49a22c,_0x20a822=_0x472ddf[_0x2ab035(0x4b6)];_0x20a822===_0x3e8b39['UPDATE_CURSOR']&&this[_0x2ab035(0x4f3)](_0x472ddf),_0x20a822===_0x3e8b39[_0x2ab035(0x3c7)]&&this[_0x2ab035(0x25b)](_0x472ddf);}),this[_0x49a22c(0x23d)](this[_0x49a22c(0x1e5)][_0x49a22c(0x33e)](_0x19a0cd=>{const _0xd78b17=_0x49a22c,_0x4ae4c5=_0x19a0cd[_0xd78b17(0x1ef)];_0x4ae4c5!=null&&this[_0xd78b17(0x3ef)]&&_0x19a0cd['id']===_0x5a8a91['id']&&_0x4ae4c5[_0xd78b17(0x299)]===this[_0xd78b17(0x51a)]&&_0x4ae4c5[_0xd78b17(0x45f)]===!0x1&&this[_0xd78b17(0x283)](_0x4ae4c5[_0xd78b17(0x47e)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x49a22c(0x3a1)](_0x1c623f(this[_0x49a22c(0x419)]))[_0x49a22c(0x442)](_0x568d12=>{const _0x9360b7=_0x49a22c;if((_0x568d12==null?void 0x0:_0x568d12['unitID'])!==this[_0x9360b7(0x51a)])return;const _0x4c9c36={'eventID':_0x3e8b39[_0x9360b7(0x445)],'data':_0x568d12};this[_0x9360b7(0x4f3)](_0x4c9c36);}),this[_0x49a22c(0x23d)](this[_0x49a22c(0x1e5)][_0x49a22c(0x33e)](_0x1dafd8=>{const _0x2cf834=_0x49a22c;if(_0x1dafd8[_0x2cf834(0x1ef)]==null)return;const _0xbdb34=_0x1dafd8[_0x2cf834(0x1ef)];if(_0x1dafd8['id']!==_0x3782a9['id']||_0xbdb34[_0x2cf834(0x299)]!==this[_0x2cf834(0x51a)])return;const _0x2ac27f={'id':_0x2cf834(0x27c),'params':_0xbdb34},_0x1df31c=this[_0x2cf834(0x25f)];for(const [_0x4bd5a4,_0xfca06a]of _0x1df31c){const _0x47d417={'id':_0x2cf834(0x27c),'params':{'unitId':this[_0x2cf834(0x51a)],'actions':null,'textRanges':_0xfca06a[_0x2cf834(0x47e)]}},_0x93554f=this['_transformService']['transformMutation'](_0x2ac27f,_0x47d417,!0x1);if(_0x27a6c3(_0x93554f))throw _0x93554f[_0x2cf834(0x3fd)];_0x1df31c[_0x2cf834(0x2be)](_0x4bd5a4,{..._0xfca06a,'ranges':_0x93554f[_0x2cf834(0x269)]['params']['textRanges']});}queueMicrotask(()=>{const _0x2f972=_0x2cf834;this[_0x2f972(0x24e)][_0x2f972(0x221)](_0x1df31c);});})));}['_onCursorUpdate'](_0x3db8f7){const _0x12b601=_0x4d2b9e;var _0xf6beac,_0x24720a;const {memberID:_0x24bb05,selection:_0x18ab8a}=_0x3db8f7[_0x12b601(0x4b2)],_0x8032bd=mr(_0x18ab8a),_0x2ea699=(_0x24720a=(_0xf6beac=this['_memberService'][_0x12b601(0x302)](this[_0x12b601(0x51a)],_0x24bb05))==null?void 0x0:_0xf6beac['name'])!=null?_0x24720a:'Unknown\x20user',_0x58e76f={'color':this[_0x12b601(0x3b3)][_0x12b601(0x4a6)](_0x24bb05),'name':_0x2ea699,'ranges':_0x8032bd},_0x5b50d5=this['cursorInfo'];_0x5b50d5[_0x12b601(0x2be)](_0x24bb05,_0x58e76f),this[_0x12b601(0x24e)]['next'](_0x5b50d5);}[_0x4d2b9e(0x25b)](_0x334b70){const _0x34212c=_0x4d2b9e,{memberID:_0x24f045}=_0x334b70[_0x34212c(0x4b2)],_0x223ec7=this[_0x34212c(0x25f)];_0x223ec7['delete'](_0x24f045),this[_0x34212c(0x24e)][_0x34212c(0x221)](_0x223ec7);}['_toggleOnline'](){const _0x358e3c=_0x4d2b9e;var _0x11b8e0;if(this[_0x358e3c(0x3ef)]=!0x0,((_0x11b8e0=this[_0x358e3c(0x2af)]['getFocusedUnit']())==null?void 0x0:_0x11b8e0[_0x358e3c(0x459)]())!==this[_0x358e3c(0x51a)])return;const _0x417ada=this['_injector'][_0x358e3c(0x29a)](_0x21931c)[_0x358e3c(0x2ed)]();Array[_0x358e3c(0x20c)](_0x417ada)&&_0x417ada['length']>0x0&&this['_updateLocalCursor'](_0x417ada);}[_0x4d2b9e(0x441)](){this['_online']=!0x1;}};Ot=Ur([ie(0x2,_0x3a6c9c(_0x51895d)),ie(0x3,_0x3a6c9c(Gt)),ie(0x4,_0x3a6c9c(ce)),ie(0x5,_0x3a6c9c(Ft)),ie(0x6,_0x13d98e),ie(0x7,_0x5dad13),ie(0x8,_0x58f975)],Ot);var Ar=Object[_0x4d2b9e(0x47b)],Lr=Object['getOwnPropertyDescriptor'],$r=(_0xe1db0c,_0x458954,_0x53f8d0,_0x2ed1d6)=>{const _0x4d3370=_0x4d2b9e;for(var _0x102aee=_0x2ed1d6>0x1?void 0x0:_0x2ed1d6?Lr(_0x458954,_0x53f8d0):_0x458954,_0x5ec139=_0xe1db0c[_0x4d3370(0x3b7)]-0x1,_0x1502b4;_0x5ec139>=0x0;_0x5ec139--)(_0x1502b4=_0xe1db0c[_0x5ec139])&&(_0x102aee=(_0x2ed1d6?_0x1502b4(_0x458954,_0x53f8d0,_0x102aee):_0x1502b4(_0x102aee))||_0x102aee);return _0x2ed1d6&&_0x102aee&&Ar(_0x458954,_0x53f8d0,_0x102aee),_0x102aee;},me=(_0x52bd37,_0x904f05)=>(_0x1a78b6,_0x3ef6e8)=>_0x904f05(_0x1a78b6,_0x3ef6e8,_0x52bd37);const jr=0x12c,xr=0x64,Hr=()=>{let _0x3ecefc=[],_0x1a6e8b=!0x1;return _0x4c6fcf=>{const _0x35fe61=_0x5c56;_0x3ecefc[_0x35fe61(0x52a)](_0x4c6fcf),_0x1a6e8b||(_0x1a6e8b=!0x0,setTimeout(()=>{_0x3ecefc['forEach'](_0x3c7e19=>_0x3c7e19()),_0x3ecefc=[],_0x1a6e8b=!0x1;}));};};let Dt=class extends _0x422fed{constructor(_0x45c106,_0x5c6965,_0x558c7e,_0x4f73b2,_0x3f1769,_0x2c9853,_0x3ba6b7,_0x14cd12){const _0x42ae08=_0x4d2b9e;super(),l(this,_0x42ae08(0x3ef),!0x1),l(this,_0x42ae08(0x288),!0x1),l(this,_0x42ae08(0x24e),new _0x119970(new Map())),l(this,_0x42ae08(0x1cf),this['_cursorInfo$'][_0x42ae08(0x3e3)]()),l(this,_0x42ae08(0x42c),new _0x119970([])),l(this,_0x42ae08(0x3a8),this['_roomMembers$'][_0x42ae08(0x3a1)](_0x17d959(jr))),l(this,_0x42ae08(0x283),_0x37d18e((_0x53b248,_0x111204)=>{const _0x35f1dd=_0x42ae08,_0x56bca6={'eventID':_0x3e8b39[_0x35f1dd(0x445)],'data':{'unitID':this[_0x35f1dd(0x51a)],'memberID':this['_session'][_0x35f1dd(0x3a0)](),'selection':_0x37a355(_0x53b248,_0x111204[_0x35f1dd(0x43c)])}};this['_session'][_0x35f1dd(0x26c)](_0x56bca6,this[_0x35f1dd(0x51a)]);},xr)),(this[_0x42ae08(0x51a)]=_0x45c106,this[_0x42ae08(0x3d5)]=_0x5c6965,this[_0x42ae08(0x396)]=_0x558c7e,this[_0x42ae08(0x3b3)]=_0x4f73b2,this[_0x42ae08(0x31e)]=_0x3f1769,this[_0x42ae08(0x2af)]=_0x2c9853,this[_0x42ae08(0x1e5)]=_0x3ba6b7,this['_refRangeService']=_0x14cd12);}get[_0x4d2b9e(0x25f)](){const _0x299640=_0x4d2b9e;return this[_0x299640(0x24e)][_0x299640(0x331)]();}get[_0x4d2b9e(0x23e)](){const _0x261831=_0x4d2b9e;return this[_0x261831(0x42c)][_0x261831(0x331)]();}[_0x4d2b9e(0x485)](){const _0x2b5011=_0x4d2b9e;super[_0x2b5011(0x485)](),this[_0x2b5011(0x24e)][_0x2b5011(0x221)](new Map()),this[_0x2b5011(0x24e)][_0x2b5011(0x2c6)](),this['_roomMembers$'][_0x2b5011(0x221)]([]),this['_roomMembers$'][_0x2b5011(0x2c6)]();}[_0x4d2b9e(0x2a9)](){const _0x8908b8=_0x4d2b9e;this['_init']||(this['_init']=!0x0,this['_session'][_0x8908b8(0x2cf)]['pipe'](_0x1c623f(this[_0x8908b8(0x419)]))[_0x8908b8(0x442)](_0x18c97b=>{const _0x39e0ee=_0x8908b8;_0x18c97b===Y[_0x39e0ee(0x476)]?this[_0x39e0ee(0x30b)]():this['_toggleOffline']();}),this[_0x8908b8(0x3d5)]['event$']['pipe'](_0x1c623f(this['dispose$']))[_0x8908b8(0x442)](_0x46f012=>{const _0x3c08a7=_0x8908b8,_0x4649dc=_0x46f012[_0x3c08a7(0x4b6)];_0x4649dc===_0x3e8b39[_0x3c08a7(0x445)]&&this['_onCursorUpdate'](_0x46f012),_0x4649dc===_0x3e8b39[_0x3c08a7(0x3c7)]&&this['_onCursorDelete'](_0x46f012);}),this['_onRefRangeChange'](),this[_0x8908b8(0x23d)](this[_0x8908b8(0x1e5)][_0x8908b8(0x33e)](_0x372298=>{const _0x4cb32a=_0x8908b8;if(this[_0x4cb32a(0x3ef)]&&_0x372298['id']===_0x5126a9['id']&&_0x372298[_0x4cb32a(0x1ef)][_0x4cb32a(0x299)]===this['unitID']){const _0x222cbd=_0x372298[_0x4cb32a(0x1ef)];this[_0x4cb32a(0x283)](_0x222cbd[_0x4cb32a(0x41d)],_0x222cbd['selections'][0x0]);}})));}[_0x4d2b9e(0x4f3)](_0x31d507){const _0x30ffaa=_0x4d2b9e;var _0x12f605,_0x5edbb2;const {memberID:_0x5757b7,selection:_0x17a88c}=_0x31d507[_0x30ffaa(0x4b2)],{sheetName:_0x1ed420,range:_0x52212d}=_0x257946(_0x17a88c),_0xcdc57d={'name':(_0x5edbb2=(_0x12f605=this[_0x30ffaa(0x31e)][_0x30ffaa(0x302)](this[_0x30ffaa(0x51a)],_0x5757b7))==null?void 0x0:_0x12f605[_0x30ffaa(0x3b6)])!=null?_0x5edbb2:'Unknown\x20user','range':this[_0x30ffaa(0x335)](_0x1ed420,_0x52212d),'sheetID':_0x1ed420,'color':this[_0x30ffaa(0x3b3)]['assignAColorForMemberID'](_0x5757b7),'selection':_0x17a88c},_0x1cbcc3=this[_0x30ffaa(0x25f)];_0x1cbcc3[_0x30ffaa(0x2be)](_0x5757b7,_0xcdc57d),this[_0x30ffaa(0x24e)][_0x30ffaa(0x221)](_0x1cbcc3);}[_0x4d2b9e(0x25b)](_0xc313f7){const _0x5b8a0c=_0x4d2b9e,{memberID:_0x5c7a42}=_0xc313f7[_0x5b8a0c(0x4b2)],_0x561d26=this['cursorInfo'];_0x561d26[_0x5b8a0c(0x1f1)](_0x5c7a42),this[_0x5b8a0c(0x24e)][_0x5b8a0c(0x221)](_0x561d26);}[_0x4d2b9e(0x335)](_0x419452,_0x3e1f91){const _0x46a07b=_0x4d2b9e;var _0x2de2cf,_0xdc9fa1;const _0x21a9d2=(_0xdc9fa1=(_0x2de2cf=this['_univerInstanceService'][_0x46a07b(0x25d)](this[_0x46a07b(0x51a)]))==null?void 0x0:_0x2de2cf[_0x46a07b(0x40c)](_0x419452))==null?void 0x0:_0xdc9fa1[_0x46a07b(0x3f8)]();return(_0x21a9d2==null?void 0x0:_0x21a9d2[_0x46a07b(0x3d1)](_0x477196=>_0x2ee4ab[_0x46a07b(0x2a0)](_0x477196,_0x3e1f91)))||_0x3e1f91;}[_0x4d2b9e(0x486)](){const _0x27cf80=_0x4d2b9e,_0x18e8be=new _0x41922f(),_0x231a89=Hr(),_0x140833=()=>{const _0x4a00ef=_0x5c56;_0x18e8be[_0x4a00ef(0x485)]();const _0x3e4dce=(_0x318c1d,_0x415fbe,_0x3194b3,_0xa45e5f)=>{const _0x117b7c=_0x4a00ef;let _0x58d130=[];switch(_0x318c1d['id']){case _0x149189[_0x117b7c(0x46c)]:{_0x58d130=_0x1cfcce(_0x318c1d,_0xa45e5f);break;}case _0x149189[_0x117b7c(0x246)]:{_0x58d130=_0x420c22(_0x318c1d,_0xa45e5f);break;}case _0x149189[_0x117b7c(0x52e)]:{_0x58d130=_0x4233ef(_0x318c1d,_0xa45e5f);break;}case _0x149189[_0x117b7c(0x228)]:{_0x58d130=_0x5b6202(_0x318c1d,_0xa45e5f);break;}case _0x149189[_0x117b7c(0x53c)]:{_0x58d130=_0x217005(_0x318c1d,_0xa45e5f);break;}case _0x149189[_0x117b7c(0x513)]:{_0x58d130=_0x315df1(_0x318c1d,_0xa45e5f);break;}case _0x149189[_0x117b7c(0x227)]:{_0x58d130=_0x421974(_0x318c1d,_0xa45e5f);break;}case _0x149189[_0x117b7c(0x412)]:{_0x58d130=_0x1fc408(_0x318c1d,_0xa45e5f);break;}case _0x149189['RemoveRowCommandId']:{_0x58d130=_0x42a2f5(_0x318c1d,_0xa45e5f);break;}}const _0x5ddeb5=_0x2c1b9b(_0x58d130,_0xa45e5f),_0x4010d6=this[_0x117b7c(0x25f)][_0x117b7c(0x29a)](_0x415fbe);if(_0x4010d6&&_0x5ddeb5){const _0x18176a={..._0x4010d6,'range':_0x5ddeb5};this['cursorInfo'][_0x117b7c(0x2be)](_0x415fbe,_0x18176a),_0x231a89(()=>{const _0x3cbe9e=_0x117b7c,_0x1d0770=this['_refRangeService'][_0x3cbe9e(0x501)](_0x5ddeb5,_0x3e9cfb=>(_0x1d0770['dispose'](),_0x3e4dce(_0x3e9cfb,_0x415fbe,_0x3194b3,_0x5ddeb5)));_0x18e8be[_0x3cbe9e(0x36d)](_0x1d0770);});}return{'redos':[],'undos':[]};};this[_0x4a00ef(0x25f)]['forEach']((_0x560731,_0x1c10d0)=>{const _0x4408c7=_0x4a00ef,{range:_0x3ef0d1,sheetID:_0x19b124}=_0x560731,_0x513e72=this[_0x4408c7(0x2ec)]['registerRefRange'](_0x3ef0d1,_0x1241d4=>(_0x513e72['dispose'](),_0x3e4dce(_0x1241d4,_0x1c10d0,_0x19b124,_0x3ef0d1)));_0x18e8be[_0x4408c7(0x36d)](_0x513e72);});};this[_0x27cf80(0x23d)](_0xd3e61d(this[_0x27cf80(0x24e)][_0x27cf80(0x442)](()=>{_0x140833();})));}[_0x4d2b9e(0x30b)](){const _0x277062=_0x4d2b9e;var _0x206a0b,_0x5ecf77;if(this[_0x277062(0x3ef)]=!0x0,((_0x206a0b=this[_0x277062(0x2af)][_0x277062(0x457)]())==null?void 0x0:_0x206a0b['getUnitId']())!==this[_0x277062(0x51a)])return;const _0x3e90fa=(_0x5ecf77=this['_injector'][_0x277062(0x29a)](_0x1f3c3d)[_0x277062(0x28b)]())==null?void 0x0:_0x5ecf77[0x0],_0xe3a239=this[_0x277062(0x2af)][_0x277062(0x338)](_0x20a2e2['UNIVER_SHEET'])[_0x277062(0x4fc)]();_0x3e90fa&&_0xe3a239&&this[_0x277062(0x283)](_0xe3a239[_0x277062(0x379)](),_0x3e90fa);}[_0x4d2b9e(0x441)](){const _0x5243d7=_0x4d2b9e;this[_0x5243d7(0x3ef)]=!0x1;}};Dt=$r([me(0x2,_0x3a6c9c(_0x51895d)),me(0x3,_0x3a6c9c(Gt)),me(0x4,_0x3a6c9c(ce)),me(0x5,_0x5dad13),me(0x6,_0x58f975),me(0x7,_0x3a6c9c(_0x37b1f1))],Dt);var kr=Object[_0x4d2b9e(0x47b)],Br=Object[_0x4d2b9e(0x298)],Vr=(_0x55414d,_0x366589,_0xc06a1e,_0x115d72)=>{const _0x23796f=_0x4d2b9e;for(var _0x2d9352=_0x115d72>0x1?void 0x0:_0x115d72?Br(_0x366589,_0xc06a1e):_0x366589,_0x10b05b=_0x55414d[_0x23796f(0x3b7)]-0x1,_0x1f0429;_0x10b05b>=0x0;_0x10b05b--)(_0x1f0429=_0x55414d[_0x10b05b])&&(_0x2d9352=(_0x115d72?_0x1f0429(_0x366589,_0xc06a1e,_0x2d9352):_0x1f0429(_0x2d9352))||_0x2d9352);return _0x115d72&&_0x2d9352&&kr(_0x366589,_0xc06a1e,_0x2d9352),_0x2d9352;},ut=(_0x29b11a,_0x8f1d8)=>(_0x294dd4,_0x5f36b4)=>_0x8f1d8(_0x294dd4,_0x5f36b4,_0x29b11a);let ve=class extends _0x422fed{constructor(_0xf203ee,_0x556ad2,_0x3ce574){const _0x75174b=_0x4d2b9e;super(),l(this,_0x75174b(0x295),new Map()),l(this,_0x75174b(0x51d),new _0x1eeb2c()),(this[_0x75174b(0x2af)]=_0xf203ee,this[_0x75174b(0x396)]=_0x556ad2,this['_collabSessionService']=_0x3ce574,this[_0x75174b(0x288)]());}[_0x4d2b9e(0x485)](){const _0x212947=_0x4d2b9e;super['dispose'](),this[_0x212947(0x51d)][_0x212947(0x2c6)](),this['_entities'][_0x212947(0x380)](_0x449559=>_0x449559[_0x212947(0x485)]());}[_0x4d2b9e(0x216)](_0x381f5b){const _0x57eb4c=_0x4d2b9e;return this[_0x57eb4c(0x295)][_0x57eb4c(0x4e6)](_0x381f5b)?this['_entities'][_0x57eb4c(0x29a)](_0x381f5b)[_0x57eb4c(0x1cf)]:this[_0x57eb4c(0x51d)][_0x57eb4c(0x3a1)](_0xed9dc0(_0x21bac0=>_0x21bac0[_0x57eb4c(0x51a)]===_0x381f5b),_0x2c5ab6(_0x164240=>_0x164240['cursorInfo$']));}[_0x4d2b9e(0x288)](){const _0x4d7ce3=_0x4d2b9e;this[_0x4d7ce3(0x2af)]['getTypeOfUnitAdded$'](_0x20a2e2[_0x4d7ce3(0x32b)])[_0x4d7ce3(0x3a1)](_0x1c623f(this[_0x4d7ce3(0x419)]))['subscribe'](async _0x296967=>{const _0xeb1da2=_0x4d7ce3,_0x5c497c=_0x296967[_0xeb1da2(0x459)](),_0x50bc48=await this['_startSheetCollabCursor'](_0x5c497c);this[_0xeb1da2(0x51d)][_0xeb1da2(0x221)](_0x50bc48),this['_entities'][_0xeb1da2(0x2be)](_0x5c497c,_0x50bc48);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x20a2e2[_0x4d7ce3(0x447)])[_0x4d7ce3(0x3a1)](_0x1c623f(this[_0x4d7ce3(0x419)]))[_0x4d7ce3(0x3a1)](_0xed9dc0(_0xed1e3d=>!_0xed1e3d['getUnitId']()[_0x4d7ce3(0x3c9)]('__')))[_0x4d7ce3(0x442)](async _0x3ba0c0=>{const _0x259786=_0x4d7ce3,_0x29506e=_0x3ba0c0[_0x259786(0x459)](),_0x4ac7d4=await this['_startDocCollabCursor'](_0x29506e);this[_0x259786(0x51d)][_0x259786(0x221)](_0x4ac7d4),this['_entities'][_0x259786(0x2be)](_0x29506e,_0x4ac7d4);}),_0x18ccc3(this['_univerInstanceService'][_0x4d7ce3(0x31c)](_0x20a2e2[_0x4d7ce3(0x447)]),this[_0x4d7ce3(0x2af)][_0x4d7ce3(0x31c)](_0x20a2e2[_0x4d7ce3(0x32b)]))[_0x4d7ce3(0x3a1)](_0x1c623f(this['dispose$']))['subscribe'](_0x3052a0=>{const _0x5151f5=_0x4d7ce3,_0x40587d=_0x3052a0['getUnitId'](),_0x47dce3=this[_0x5151f5(0x295)][_0x5151f5(0x29a)](_0x40587d);_0x47dce3&&(_0x47dce3['dispose'](),this[_0x5151f5(0x295)][_0x5151f5(0x1f1)](_0x40587d));});}async['_startSheetCollabCursor'](_0x275a24){const _0x57d80d=_0x4d2b9e,_0x5895e6=await this['_collabSessionService']['requireSession'](_0x275a24),_0x2db5e0=this['_injector'][_0x57d80d(0x49b)](Dt,_0x275a24,_0x5895e6);return _0x2db5e0['init'](),_0x2db5e0;}async[_0x4d2b9e(0x2ad)](_0x411538){const _0x420137=_0x4d2b9e,_0x543696=await this[_0x420137(0x448)][_0x420137(0x323)](_0x411538),_0xe7ce97=this['_injector'][_0x420137(0x49b)](Ot,_0x411538,_0x543696);return _0xe7ce97[_0x420137(0x2a9)](),_0xe7ce97;}};ve=Vr([ut(0x0,_0x5dad13),ut(0x1,_0x3a6c9c(_0x51895d)),ut(0x2,_0x3a6c9c(he))],ve);const $e=0x14,ms=0xc8,dt=0x4,Fr=0x5;function Wr(_0x558596,_0x4a5607){const _0x5527ee=_0x4d2b9e;let {radius:_0x367ec5,width:_0x278206,height:_0x2ec1fe}=_0x4a5607;_0x367ec5=_0x367ec5!=null?_0x367ec5:0x0,_0x278206=_0x278206!=null?_0x278206:0x1e,_0x2ec1fe=_0x2ec1fe!=null?_0x2ec1fe:0x1e;let _0x554f5b=0x0,_0x1f0f74=0x0,_0x42d530=0x0;_0x554f5b=_0x1f0f74=_0x42d530=Math[_0x5527ee(0x4e8)](_0x367ec5,_0x278206/0x2,_0x2ec1fe/0x2),_0x558596[_0x5527ee(0x46f)](),_0x558596[_0x5527ee(0x36b)](_0x554f5b,0x0),_0x558596[_0x5527ee(0x510)](_0x278206-_0x1f0f74,0x0),_0x558596[_0x5527ee(0x3ae)](_0x278206-_0x1f0f74,_0x1f0f74,_0x1f0f74,Math['PI']*0x3/0x2,0x0,!0x1),_0x558596[_0x5527ee(0x510)](_0x278206,_0x2ec1fe-_0x42d530),_0x558596[_0x5527ee(0x3ae)](_0x278206-_0x42d530,_0x2ec1fe-_0x42d530,_0x42d530,0x0,Math['PI']/0x2,!0x1),_0x558596[_0x5527ee(0x510)](0x0,_0x2ec1fe),_0x558596[_0x5527ee(0x510)](0x0,_0x554f5b),_0x558596['arc'](_0x554f5b,_0x554f5b,_0x554f5b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x558596['closePath'](),_0x4a5607['fill']&&(_0x558596[_0x5527ee(0x526)](),_0x558596[_0x5527ee(0x297)]=_0x4a5607[_0x5527ee(0x470)],_0x4a5607[_0x5527ee(0x506)]===_0x5527ee(0x54e)?_0x558596['fill'](_0x5527ee(0x54e)):_0x558596[_0x5527ee(0x470)](),_0x558596[_0x5527ee(0x443)]());}class st extends _0x4ff6eb{constructor(_0x2abc33,_0x5dc6c5){const _0x29870d=_0x4d2b9e;super(_0x2abc33,_0x5dc6c5),l(this,_0x29870d(0x231)),l(this,_0x29870d(0x471)),(this[_0x29870d(0x231)]=_0x5dc6c5==null?void 0x0:_0x5dc6c5[_0x29870d(0x231)],this[_0x29870d(0x471)]=_0x5dc6c5==null?void 0x0:_0x5dc6c5['text']);}static[_0x4d2b9e(0x271)](_0x42e222,_0x66d0d6){const _0x35f097=_0x4d2b9e,{text:_0x18ae89,color:_0x138d5a}=_0x66d0d6;_0x42e222[_0x35f097(0x526)](),_0x42e222[_0x35f097(0x4fa)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x22a43b=_0x42e222[_0x35f097(0x473)](_0x18ae89)[_0x35f097(0x3a5)],_0x2f0d6f=Math[_0x35f097(0x4e8)](_0x22a43b+0x2*dt,ms);Wr(_0x42e222,{'height':$e,'radius':0x4,'width':_0x2f0d6f,'fill':_0x138d5a,'evented':!0x1}),_0x42e222['fillStyle']=_0x35f097(0x3fc);const _0x910208=dt,_0x4c51ff=$e-Fr,_0x3b65a4=ms-0x2*dt;if(_0x22a43b>_0x3b65a4){let _0x5828b4='',_0x14b432=0x0;for(const _0x9d6305 of _0x18ae89){const _0x34af1c=_0x42e222['measureText'](_0x9d6305)[_0x35f097(0x3a5)];if(_0x14b432+_0x34af1c<=_0x3b65a4-_0x42e222['measureText'](_0x35f097(0x3a3))[_0x35f097(0x3a5)])_0x5828b4+=_0x9d6305,_0x14b432+=_0x34af1c;else{_0x5828b4+='...';break;}}_0x42e222['fillText'](_0x5828b4,_0x910208,_0x4c51ff);}else _0x42e222['fillText'](_0x18ae89,_0x910208,_0x4c51ff);_0x42e222[_0x35f097(0x443)]();}[_0x4d2b9e(0x20e)](_0x4d8d3f){const _0x36f8a5=_0x4d2b9e;st[_0x36f8a5(0x271)](_0x4d8d3f,this);}}const ft=_0x4d2b9e(0x261),Gr=_0x4d2b9e(0x290),Yr=_0x4d2b9e(0x36a),we=0x6,Kr=1.5,mt=0x4,Xr=1.5,qr=_0x4d2b9e(0x440);class gs{constructor(_0x232c13,_0x35909a,_0xc1647f,_0x587434){const _0x565a8b=_0x4d2b9e;l(this,_0x565a8b(0x282),[]),l(this,_0x565a8b(0x342),null),l(this,'_textBubble',null),l(this,'_anchorDot',null),l(this,_0x565a8b(0x511),null),l(this,_0x565a8b(0x502),null),(this[_0x565a8b(0x26e)]=_0x232c13,this[_0x565a8b(0x286)]=_0x35909a,this[_0x565a8b(0x488)]=_0xc1647f,this['_document']=_0x587434,this[_0x565a8b(0x3dd)]());}set[_0x4d2b9e(0x1ea)](_0x23965b){const _0x48bea6=_0x4d2b9e;_0x23965b?(this['_anchorDot']&&this[_0x48bea6(0x3b9)][_0x48bea6(0x42a)](),this[_0x48bea6(0x45c)]&&this[_0x48bea6(0x45c)][_0x48bea6(0x388)]()):(this['_anchorDot']&&this['_anchorDot'][_0x48bea6(0x388)](),this['_textBubble']&&this[_0x48bea6(0x45c)]['hide']());}[_0x4d2b9e(0x485)](){const _0x5e5760=_0x4d2b9e;for(const _0x51b0b3 of this['_shapes'])_0x51b0b3[_0x5e5760(0x485)]();this[_0x5e5760(0x45c)]&&this[_0x5e5760(0x45c)][_0x5e5760(0x485)](),this[_0x5e5760(0x3b9)]&&this[_0x5e5760(0x3b9)][_0x5e5760(0x485)](),this[_0x5e5760(0x342)]&&this[_0x5e5760(0x342)]['dispose'](),this[_0x5e5760(0x502)]&&this[_0x5e5760(0x502)]();}[_0x4d2b9e(0x3dd)](){const _0x1c0484=_0x4d2b9e;var _0x20e401;const {_docSkeleton:_0x1404f7,_document:_0x1fe427}=this,{color:_0x30ef1c,name:_0x287455,ranges:_0x30920d}=this[_0x1c0484(0x26e)],_0x3766c3=_0x1fe427[_0x1c0484(0x1e6)](),{docsLeft:_0x40d56f,docsTop:_0x20a505}=_0x3766c3,_0x5d92fb=new _0x3be08d(_0x3766c3,_0x1404f7);for(const {startOffset:_0x373a08,endOffset:_0x47aa33,collapsed:_0x31f0ab,isActive:_0x4a20e8}of _0x30920d){const _0x47fb32=_0x1404f7[_0x1c0484(0x3b4)](_0x373a08),_0xffd76c=_0x1404f7[_0x1c0484(0x3b4)](_0x47aa33);if(_0x4a20e8){const {contentBoxPointGroup:_0xa02d7a}=_0x5d92fb[_0x1c0484(0x421)](_0xffd76c,_0xffd76c);if(_0xa02d7a[_0x1c0484(0x3b7)]===0x0)continue;this[_0x1c0484(0x29b)](_0x30ef1c,_0xa02d7a,_0x40d56f,_0x20a505,_0x287455),this[_0x1c0484(0x502)]=this[_0x1c0484(0x2db)]();}if(!_0x31f0ab&&_0x47fb32&&_0xffd76c){if(_0x43af2f(_0x47fb32,_0xffd76c)){const _0x6f98e9=new _0x56be84(_0x3766c3,_0x1404f7),{pointGroup:_0x124dd6}=(_0x20e401=_0x6f98e9[_0x1c0484(0x421)](_0x47fb32,_0xffd76c))!=null?_0x20e401:{};if(_0x124dd6==null||_0x124dd6[_0x1c0484(0x3b7)]===0x0)continue;this['_drawRectRange'](_0x30ef1c,_0x124dd6,_0x40d56f,_0x20a505);}else{const {contentBoxPointGroup:_0x17bd28}=_0x5d92fb['getRangePointData'](_0x47fb32,_0xffd76c);if(_0x17bd28['length']===0x0)continue;this[_0x1c0484(0x21a)](_0x30ef1c,_0x17bd28,_0x40d56f,_0x20a505);}}}}[_0x4d2b9e(0x29b)](_0xc17c4b,_0x4dd6c7,_0x2d956,_0xa2c2c7,_0xad272e){const _0x2c5d95=_0x4d2b9e,_0x3f6751=this[_0x2c5d95(0x201)](_0x4dd6c7),{left:_0x466a78,top:_0x400038,height:_0x3efa87}=_0x3f6751,_0x3f4672=this[_0x2c5d95(0x326)](),_0xa0267a=Xr/_0x3f4672,_0x5419a2=new _0x2a8215(ft+_0x3e23fb[_0x2c5d95(0x300)](we),{'left':_0x466a78+_0x2d956-_0xa0267a,'top':_0x400038+_0xa2c2c7,'height':_0x3efa87,'width':Kr,'fill':_0xc17c4b||_0x482e95(_0x2c6821[_0x2c5d95(0x2e9)],0x0),'strokeWidth':_0xa0267a,'stroke':qr,'evented':!0x0});this[_0x2c5d95(0x342)]=_0x5419a2,this['_scene'][_0x2c5d95(0x367)](_0x5419a2,_0x19ee43);const _0x30b1b5=new _0x2a8215(ft+_0x3e23fb['generateRandomId'](we),{'left':_0x466a78+_0x2d956-_0xa0267a,'top':_0x400038+_0xa2c2c7-mt/0x2,'height':mt,'width':mt,'fill':_0xc17c4b||_0x482e95(_0x2c6821['black'],0x0),'strokeWidth':0x0,'stroke':_0xc17c4b||_0x482e95(_0x2c6821[_0x2c5d95(0x2e9)],0x0),'evented':!0x1});this[_0x2c5d95(0x3b9)]=_0x30b1b5,this[_0x2c5d95(0x286)][_0x2c5d95(0x367)](_0x30b1b5,_0x19ee43);const _0x3437af=new st(ft+_0x3e23fb[_0x2c5d95(0x300)](we),{'left':_0x466a78+_0x2d956-_0xa0267a,'top':_0x400038+_0xa2c2c7-$e,'text':_0xad272e,'color':_0xc17c4b});this[_0x2c5d95(0x45c)]=_0x3437af,this[_0x2c5d95(0x286)]['addObject'](_0x3437af,_0x19ee43),this[_0x2c5d95(0x1ea)]=!0x1;}[_0x4d2b9e(0x2db)](){const _0x20398e=_0x4d2b9e,_0x1a3a37=this[_0x20398e(0x342)]['onPointerEnter$'][_0x20398e(0x514)](()=>{const _0x1cf781=_0x20398e;this[_0x1cf781(0x1ea)]=!0x0;}),_0x4fabcb=this[_0x20398e(0x342)][_0x20398e(0x3a7)][_0x20398e(0x514)](()=>{const _0x59e940=_0x20398e;this[_0x59e940(0x511)]&&clearTimeout(this[_0x59e940(0x511)]),this[_0x59e940(0x511)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x453fa2=_0x20398e;_0x1a3a37[_0x453fa2(0x3aa)](),_0x4fabcb['unsubscribe']();};}[_0x4d2b9e(0x21a)](_0x480cbc,_0x35ddb7,_0x1b4154,_0x1508f9){const _0xed5667=_0x4d2b9e,_0x51ec96=new _0x159e01(_0x480cbc)[_0xed5667(0x487)](0.2)[_0xed5667(0x435)](),_0x68d390=new _0xf43d48(Gr+_0x3e23fb['generateRandomId'](we),{'pointsGroup':_0x35ddb7,'fill':_0x51ec96||_0x482e95(_0x2c6821[_0xed5667(0x2e9)],0.2),'left':_0x1b4154,'top':_0x1508f9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0xed5667(0x52a)](_0x68d390),this[_0xed5667(0x286)][_0xed5667(0x367)](_0x68d390,_0x19ee43);}[_0x4d2b9e(0x337)](_0x179c5b,_0x34f704,_0x5d2dad,_0x5ca4f6){const _0x1eea82=_0x4d2b9e,_0x5d2795=new _0x159e01(_0x179c5b)[_0x1eea82(0x487)](0.2)['toRgbString'](),_0x7bd66=new _0xf43d48(Yr+_0x3e23fb[_0x1eea82(0x300)](we),{'pointsGroup':_0x34f704,'fill':_0x5d2795||_0x482e95(_0x2c6821[_0x1eea82(0x2e9)],0.2),'left':_0x5d2dad,'top':_0x5ca4f6,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x7bd66),this['_scene']['addObject'](_0x7bd66,_0x19ee43);}['_getAnchorBounding'](_0x1f7520){const _0x5269e3=_0x1f7520[0x0],_0x5d7d43=_0x5269e3[0x0],_0x410152=_0x5269e3[0x2],{x:_0x19dd8a,y:_0x55803d}=_0x5d7d43,{x:_0x20ccca,y:_0x4f54f1}=_0x410152;return{'left':_0x19dd8a,'top':_0x55803d,'width':_0x20ccca-_0x19dd8a,'height':_0x4f54f1-_0x55803d};}[_0x4d2b9e(0x326)](){const _0x35cba7=_0x4d2b9e,{scaleX:_0x1b42c4,scaleY:_0x350a8e}=this[_0x35cba7(0x286)][_0x35cba7(0x213)]();return Math[_0x35cba7(0x53e)](_0x1b42c4,_0x350a8e);}}var Jr=Object['defineProperty'],zr=Object[_0x4d2b9e(0x298)],Zr=(_0x11f590,_0x5abc80,_0x5bab96,_0x319517)=>{const _0x4dea72=_0x4d2b9e;for(var _0x25c7c4=_0x319517>0x1?void 0x0:_0x319517?zr(_0x5abc80,_0x5bab96):_0x5abc80,_0x4d4453=_0x11f590[_0x4dea72(0x3b7)]-0x1,_0x2ef604;_0x4d4453>=0x0;_0x4d4453--)(_0x2ef604=_0x11f590[_0x4d4453])&&(_0x25c7c4=(_0x319517?_0x2ef604(_0x5abc80,_0x5bab96,_0x25c7c4):_0x2ef604(_0x25c7c4))||_0x25c7c4);return _0x319517&&_0x25c7c4&&Jr(_0x5abc80,_0x5bab96,_0x25c7c4),_0x25c7c4;},ke=(_0x22826c,_0x5f031c)=>(_0x426aa6,_0x3bc1a3)=>_0x5f031c(_0x426aa6,_0x3bc1a3,_0x22826c);let wt=class extends _0x422fed{constructor(_0x5cfd56,_0x5d5483,_0x57d882,_0x3aaae8,_0x2bda26){const _0x5718bf=_0x4d2b9e;super(),l(this,_0x5718bf(0x43d),[]),l(this,_0x5718bf(0x398),[]),(this['_context']=_0x5cfd56,this['_docSkeletonManagerService']=_0x5d5483,this[_0x5718bf(0x40b)]=_0x57d882,this[_0x5718bf(0x1e5)]=_0x3aaae8,this['_themeService']=_0x2bda26,this[_0x5718bf(0x288)]());}[_0x4d2b9e(0x288)](){const _0x49d957=_0x4d2b9e,_0x2e63fe=this[_0x49d957(0x225)]['unitId'],_0x526a9c=this['_docSkeletonManagerService'];this[_0x49d957(0x23d)](_0x2940c2([this[_0x49d957(0x40b)][_0x49d957(0x216)](_0x2e63fe),this[_0x49d957(0x451)][_0x49d957(0x1f7)]])['pipe'](_0x5cd2f6(([_0x2ab414,_0x41483c])=>({'skeleton':_0x526a9c[_0x49d957(0x365)](),'cursors':[..._0x2ab414['values']()][_0x49d957(0x349)](_0x2a0614=>({..._0x2a0614,'color':_0x41483c[_0x2a0614[_0x49d957(0x231)]]}))})))[_0x49d957(0x442)](_0x1b4aa1=>{const _0x1b987c=_0x49d957;if(this[_0x1b987c(0x296)](),_0x1b4aa1){const {skeleton:_0x4acd39,cursors:_0x1732bf}=_0x1b4aa1;this[_0x1b987c(0x454)](_0x4acd39,_0x1732bf);}})),this[_0x49d957(0x264)](),this[_0x49d957(0x258)]();}[_0x4d2b9e(0x454)](_0x4b969c,_0xa193b3){const _0x904641=_0x4d2b9e,{scene:_0x3fdb6c,mainComponent:_0xd73d51}=this[_0x904641(0x225)],_0x3425f8=_0xa193b3[_0x904641(0x1de)](_0x5b434c=>new gs(_0x5b434c,_0x3fdb6c,_0x4b969c,_0xd73d51));this[_0x904641(0x43d)]=_0x3425f8,this[_0x904641(0x398)]=_0xa193b3;}['_refreshCollabCursors'](){const _0x250569=_0x4d2b9e;this[_0x250569(0x296)]();const {scene:_0x26f21c,mainComponent:_0x3cbb2d}=this[_0x250569(0x225)],_0x4f48e9=this[_0x250569(0x3bd)][_0x250569(0x365)](),_0x33ae9a=this[_0x250569(0x398)][_0x250569(0x1de)](_0x1290a1=>new gs(_0x1290a1,_0x26f21c,_0x4f48e9,_0x3cbb2d));this[_0x250569(0x43d)]=_0x33ae9a;}[_0x4d2b9e(0x296)](){const _0x3d450b=_0x4d2b9e;this[_0x3d450b(0x43d)][_0x3d450b(0x380)](_0x1f5d6a=>_0x1f5d6a['dispose']()),this[_0x3d450b(0x43d)]=[];}[_0x4d2b9e(0x258)](){const _0x99e7cc=_0x4d2b9e,_0x29fdbb=[_0x4eccb1['id']];this[_0x99e7cc(0x23d)](this['_commandService'][_0x99e7cc(0x33e)](_0x41ab60=>{const _0xf9b543=_0x99e7cc;_0x29fdbb[_0xf9b543(0x4e4)](_0x41ab60['id'])&&_0x41ab60[_0xf9b543(0x1ef)][_0xf9b543(0x299)]===this['_context']['unitId']&&this['_refreshCollabCursors']();}));}[_0x4d2b9e(0x264)](){const _0x452018=_0x4d2b9e;this[_0x452018(0x23d)](_0x1a1c3f(this[_0x452018(0x225)]['engine']['onTransformChange$'])[_0x452018(0x3a1)](_0x3b2fa1(_0x1e9e58=>_0x1e9e58[_0x452018(0x249)]===_0x136872['resize']),_0xdf5fef(0x10))[_0x452018(0x442)](()=>{const _0x1e13b1=_0x452018;this[_0x1e13b1(0x287)]();}));}};wt=Zr([ke(0x1,_0x3a6c9c(_0x6478fd)),ke(0x2,_0x3a6c9c(ve)),ke(0x3,_0x58f975),ke(0x4,_0x3a6c9c(_0x264397))],wt);const Qr=0x1,eo=1.5;class to extends _0x4ff6eb{constructor(_0x394487,_0x46acb4){const _0x7050f2=_0x4d2b9e;super(_0x394487,_0x46acb4),l(this,_0x7050f2(0x2b5)),l(this,'_hovered',!0x1),l(this,_0x7050f2(0x368)),l(this,'_name',''),l(this,_0x7050f2(0x4dc),'top'),l(this,'_backgroundColor'),(_0x46acb4&&this['setShapeProps'](_0x46acb4),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4d2b9e(0x426)](_0x5146c3){const _0x24657c=_0x4d2b9e;var _0x33cbfa,_0x2dd595,_0x802558,_0x8a4cb6,_0x3c4e12,_0x553352;this[_0x24657c(0x2b5)]=(_0x33cbfa=_0x5146c3[_0x24657c(0x231)])!=null?_0x33cbfa:this[_0x24657c(0x2b5)],this['_hovered']=(_0x2dd595=_0x5146c3[_0x24657c(0x475)])!=null?_0x2dd595:this[_0x24657c(0x1ec)],this[_0x24657c(0x368)]=(_0x802558=_0x5146c3[_0x24657c(0x43c)])!=null?_0x802558:this[_0x24657c(0x368)],this['_name']=(_0x8a4cb6=_0x5146c3[_0x24657c(0x3b6)])!=null?_0x8a4cb6:this[_0x24657c(0x32a)],this['_labelPosition']=(_0x3c4e12=_0x5146c3[_0x24657c(0x1dd)])!=null?_0x3c4e12:this[_0x24657c(0x4dc)],this[_0x24657c(0x20d)]=(_0x553352=_0x5146c3[_0x24657c(0x48c)])!=null?_0x553352:this[_0x24657c(0x20d)],this[_0x24657c(0x2a7)]({'width':_0x5146c3[_0x24657c(0x3a5)],'height':_0x5146c3['height']});}[_0x4d2b9e(0x46e)](_0x41f1ba){const _0x4acbc6=_0x4d2b9e,{row:_0xb6bd41,column:_0x978ab4}=_0x41f1ba;if(_0xb6bd41>=this[_0x4acbc6(0x368)]['startRow']&&_0xb6bd41<=this[_0x4acbc6(0x368)][_0x4acbc6(0x230)]&&_0x978ab4>=this[_0x4acbc6(0x368)][_0x4acbc6(0x47a)]&&_0x978ab4<=this[_0x4acbc6(0x368)][_0x4acbc6(0x36f)]){this[_0x4acbc6(0x426)]({'hovered':!0x0});return;}this[_0x4acbc6(0x426)]({'hovered':!0x1});}[_0x4d2b9e(0x3cb)](_0x510c9a){return!0x1;}[_0x4d2b9e(0x20e)](_0x3d1d0e){const _0x2edc12=_0x4d2b9e;_0x2a8215['drawWith'](_0x3d1d0e,{'width':this[_0x2edc12(0x3a5)],'height':this[_0x2edc12(0x4db)],'strokeWidth':eo,'stroke':this[_0x2edc12(0x2b5)],'evented':!0x1,'fill':this[_0x2edc12(0x20d)]}),this[_0x2edc12(0x1ec)]&&(_0x3d1d0e[_0x2edc12(0x526)](),_0x3d1d0e[_0x2edc12(0x3fb)](0x1,0x0,0x0,0x1,this['width'],this[_0x2edc12(0x4dc)]==='bottom'?0x0:-$e),st['drawWith'](_0x3d1d0e,{'text':this[_0x2edc12(0x32a)],'color':this['_color']}),_0x3d1d0e['restore']());}}var so=Object[_0x4d2b9e(0x47b)],io=Object[_0x4d2b9e(0x298)],no=(_0x1e1036,_0x2e7c8c,_0x1b4d2c,_0x3b234c)=>{const _0x32724b=_0x4d2b9e;for(var _0x4d5c4a=_0x3b234c>0x1?void 0x0:_0x3b234c?io(_0x2e7c8c,_0x1b4d2c):_0x2e7c8c,_0x267a4d=_0x1e1036[_0x32724b(0x3b7)]-0x1,_0x4e7ed3;_0x267a4d>=0x0;_0x267a4d--)(_0x4e7ed3=_0x1e1036[_0x267a4d])&&(_0x4d5c4a=(_0x3b234c?_0x4e7ed3(_0x2e7c8c,_0x1b4d2c,_0x4d5c4a):_0x4e7ed3(_0x4d5c4a))||_0x4d5c4a);return _0x3b234c&&_0x4d5c4a&&so(_0x2e7c8c,_0x1b4d2c,_0x4d5c4a),_0x4d5c4a;},gt=(_0x1c7228,_0x5b1d72)=>(_0x97d6dd,_0x3d24eb)=>_0x5b1d72(_0x97d6dd,_0x3d24eb,_0x1c7228);const ro=0x1389;let Pt=class extends _0x422fed{constructor(_0x46bcab,_0x3e5338,_0x1cec45,_0x225db2){const _0x5db053=_0x4d2b9e;super(),l(this,_0x5db053(0x398),new Set()),l(this,_0x5db053(0x31f),null),(this['_context']=_0x46bcab,this['_sheetSkeletonManagerService']=_0x3e5338,this[_0x5db053(0x40b)]=_0x1cec45,this[_0x5db053(0x451)]=_0x225db2,this[_0x5db053(0x288)]());}[_0x4d2b9e(0x288)](){const _0x1428a6=_0x4d2b9e;this[_0x1428a6(0x517)][_0x1428a6(0x407)][_0x1428a6(0x3a1)](_0x28f50c(this[_0x1428a6(0x419)]),_0x3b3ade(_0x22a649=>{const _0x56fabc=_0x1428a6;if(_0x22a649){const _0x34e701=_0x22a649[_0x56fabc(0x490)];return _0x2940c2(this['_collabCursorController']['getCollabCursors$'](this[_0x56fabc(0x225)][_0x56fabc(0x299)]),this[_0x56fabc(0x451)][_0x56fabc(0x1f7)])[_0x56fabc(0x3a1)](_0x5cd2f6(([_0x29a186,_0x232aae])=>{const _0x880d47=_0x56fabc,_0xe5e0cc=new Map();return _0x29a186[_0x880d47(0x380)]((_0x4aeedc,_0x494971)=>{const _0x239220=_0x880d47;if(_0x4aeedc[_0x239220(0x458)]===_0x34e701){const _0x1a642b={..._0x4aeedc};_0x1a642b[_0x239220(0x231)]=_0x232aae[_0x4aeedc['color']],_0xe5e0cc['set'](_0x494971,_0x1a642b);}}),{'skeleton':_0x22a649,'cursors':_0xe5e0cc};}));}return _0x2fcf97({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x174879,cursors:_0x4c0243})=>{const _0xd3c71e=_0x1428a6;this[_0xd3c71e(0x296)](),_0x174879&&this[_0xd3c71e(0x454)](_0x174879,_0x4c0243);}),this[_0x1428a6(0x517)]['currentSkeleton$'][_0x1428a6(0x442)](_0x3f7910=>{const _0x3af1e9=_0x1428a6;if(_0x3f7910==null)return;const {skeleton:_0x25c653}=_0x3f7910,{scene:_0x1e1c79}=this[_0x3af1e9(0x225)];_0x1e1c79[_0x3af1e9(0x280)]['subscribeEvent'](_0x37d18e(_0x5ce094=>{const _0x3d9399=_0x3af1e9;var _0x42e0e3,_0x501b80;const {offsetX:_0xf5f112,offsetY:_0x22ea7f}=_0x5ce094,{x:_0x599e56,y:_0x43438f}=_0x1e1c79[_0x3d9399(0x354)](_0xef5a49[_0x3d9399(0x42d)]([_0xf5f112,_0x22ea7f])),{scaleX:_0x3981e7,scaleY:_0x150b86}=_0x1e1c79[_0x3d9399(0x213)](),_0x3ab9a2=_0x1e1c79[_0x3d9399(0x2aa)](_0x58605e['VIEW_MAIN']),_0x285c3c=_0x1e1c79[_0x3d9399(0x497)](_0xef5a49[_0x3d9399(0x42d)]([_0x599e56,_0x43438f]),_0x3ab9a2),_0x44eca0=_0x25c653[_0x3d9399(0x3be)](_0xf5f112,_0x22ea7f,_0x3981e7,_0x150b86,_0x285c3c);((_0x42e0e3=this[_0x3d9399(0x31f)])==null?void 0x0:_0x42e0e3[_0x3d9399(0x340)])===_0x44eca0[_0x3d9399(0x340)]&&((_0x501b80=this[_0x3d9399(0x31f)])==null?void 0x0:_0x501b80[_0x3d9399(0x505)])===_0x44eca0[_0x3d9399(0x505)]||this[_0x3d9399(0x398)][_0x3d9399(0x380)](_0x46f98b=>{const _0x4edba9=_0x3d9399;_0x46f98b[_0x4edba9(0x46e)](_0x44eca0);});},0x64));});}[_0x4d2b9e(0x454)](_0x37b446,_0xfae149){const _0x46cf58=_0x4d2b9e;var _0x2342ac;const _0x31b3ea=(_0x2342ac=this[_0x46cf58(0x517)]['getCurrent']())==null?void 0x0:_0x2342ac['skeleton'];if(!_0x31b3ea)return;const _0x49c57c=this['_getSheetObject']();if(!_0x49c57c)return;this[_0x46cf58(0x398)][_0x46cf58(0x380)](_0x148882=>{const _0xcbd9d1=_0x46cf58;_0x148882[_0xcbd9d1(0x2f7)]();});const {scene:_0x22b538}=_0x49c57c,_0x1a9c84=oo(Array[_0x46cf58(0x411)](_0xfae149[_0x46cf58(0x372)]()))['map'](_0x22ffc5=>{const _0x3beb03=_0x46cf58,{color:_0x4d4025,range:_0x4aea28,name:_0x1ecb30,selection:_0x2c1242,sheetID:_0xa5d3a2}=_0x22ffc5,{startColumn:_0x48d62d,startRow:_0x583673,endColumn:_0x37091b,endRow:_0x4daf25}=_0x4aea28,_0x2673ed=_0x20a702(_0x583673,_0x48d62d,_0x22b538,_0x31b3ea),_0x2f9791=_0x20a702(_0x4daf25,_0x37091b,_0x22b538,_0x31b3ea),{columnHeaderHeightAndMarginTop:_0x149f6f}=_0x31b3ea,{startX:_0x55ba9e,startY:_0x3cb463}=_0x2673ed,{endX:_0x580bda,endY:_0xdbb0d1}=_0x2f9791,_0x5c8472=_0x580bda-_0x55ba9e,_0x184308=_0xdbb0d1-_0x3cb463,_0x4dc43c={'labelPosition':_0x3cb463-_0x149f6f>=$e?'top':_0x3beb03(0x31b),'sheetID':_0xa5d3a2,'range':_0x4aea28,'color':_0x4d4025,'name':_0x1ecb30,'selection':_0x2c1242,'left':_0x55ba9e,'top':_0x3cb463,'width':_0x5c8472,'height':_0x184308,'evented':!0x1,'zIndex':ro};return new to(_0x1ecb30,_0x4dc43c);});_0x22b538[_0x46cf58(0x26f)](_0x1a9c84,Qr),this[_0x46cf58(0x398)]=new Set(_0x1a9c84);}[_0x4d2b9e(0x296)](){const _0x49cf6d=_0x4d2b9e;var _0x5b6866;(_0x5b6866=this[_0x49cf6d(0x398)])==null||_0x5b6866[_0x49cf6d(0x380)](_0x4a5369=>_0x4a5369[_0x49cf6d(0x485)]());}['_getSheetObject'](){const _0x511bdc=_0x4d2b9e;return _0x28db2f(this[_0x511bdc(0x225)][_0x511bdc(0x4e2)],this[_0x511bdc(0x225)]);}};Pt=no([gt(0x1,_0x3a6c9c(_0x1ddfd6)),gt(0x2,_0x3a6c9c(ve)),gt(0x3,_0x3a6c9c(_0x264397))],Pt);function oo(_0x244e23){const _0x549f47=_0x4d2b9e,_0x189e63=new Map();return _0x244e23[_0x549f47(0x380)](_0x5330b5=>{const _0x5016ea=_0x549f47;if(_0x189e63[_0x5016ea(0x4e6)](_0x5330b5['selection'])){const _0x12f3db=_0x189e63[_0x5016ea(0x29a)](_0x5330b5[_0x5016ea(0x38d)]);_0x12f3db[_0x5016ea(0x3b6)]+=',\x20'+_0x5330b5[_0x5016ea(0x3b6)];}else _0x189e63[_0x5016ea(0x2be)](_0x5330b5[_0x5016ea(0x38d)],_0x5330b5);}),Array[_0x549f47(0x411)](_0x189e63['values']());}var N=function(){const _0x36b2d6=_0x4d2b9e;return N=Object[_0x36b2d6(0x51e)]||function(_0x537476){const _0x4f56f8=_0x36b2d6;for(var _0x2ab527,_0x311bef=0x1,_0x3c6ece=arguments[_0x4f56f8(0x3b7)];_0x311bef<_0x3c6ece;_0x311bef++){_0x2ab527=arguments[_0x311bef];for(var _0x1fee84 in _0x2ab527)Object['prototype'][_0x4f56f8(0x3e9)]['call'](_0x2ab527,_0x1fee84)&&(_0x537476[_0x1fee84]=_0x2ab527[_0x1fee84]);}return _0x537476;},N['apply'](this,arguments);},ao=function(_0x57b5ce,_0x22e1f3){const _0x207feb=_0x4d2b9e;var _0x4413f7={};for(var _0x3e6b55 in _0x57b5ce)Object[_0x207feb(0x285)]['hasOwnProperty']['call'](_0x57b5ce,_0x3e6b55)&&_0x22e1f3[_0x207feb(0x3ab)](_0x3e6b55)<0x0&&(_0x4413f7[_0x3e6b55]=_0x57b5ce[_0x3e6b55]);if(_0x57b5ce!=null&&typeof Object[_0x207feb(0x344)]==_0x207feb(0x521)){for(var _0x34a7f1=0x0,_0x3e6b55=Object[_0x207feb(0x344)](_0x57b5ce);_0x34a7f1<_0x3e6b55[_0x207feb(0x3b7)];_0x34a7f1++)_0x22e1f3[_0x207feb(0x3ab)](_0x3e6b55[_0x34a7f1])<0x0&&Object[_0x207feb(0x285)][_0x207feb(0x2e5)][_0x207feb(0x41a)](_0x57b5ce,_0x3e6b55[_0x34a7f1])&&(_0x4413f7[_0x3e6b55[_0x34a7f1]]=_0x57b5ce[_0x3e6b55[_0x34a7f1]]);}return _0x4413f7;},Yt=_0x520498(function(_0x11eeac,_0x1e532c){const _0x42a0c2=_0x4d2b9e;var _0xd1bd20=_0x11eeac[_0x42a0c2(0x2c3)],_0x56660a=_0x11eeac['id'],_0x3abba8=_0x11eeac[_0x42a0c2(0x328)],_0x52e8cf=_0x11eeac[_0x42a0c2(0x420)],_0x210c9e=ao(_0x11eeac,[_0x42a0c2(0x2c3),'id',_0x42a0c2(0x328),_0x42a0c2(0x420)]),_0x1f7815=_0x42a0c2(0x494)[_0x42a0c2(0x1fd)](_0x56660a,'\x20')[_0x42a0c2(0x1fd)](_0x3abba8||'')['trim'](),_0x3918fc=_0x3c8608('_'['concat'](lo()));return Gs(_0xd1bd20,''['concat'](_0x56660a),{'defIds':_0xd1bd20[_0x42a0c2(0x1f4)],'idSuffix':_0x3918fc[_0x42a0c2(0x4be)]},N({'ref':_0x1e532c,'className':_0x1f7815},_0x210c9e),_0x52e8cf);});function Gs(_0x57c1a3,_0x439233,_0x2e1d4a,_0x91e4f4,_0x360c34){const _0xf11de0=_0x4d2b9e;return _0x352b29(_0x57c1a3[_0xf11de0(0x20f)],N(N({'key':_0x439233},co(_0x57c1a3,_0x2e1d4a,_0x360c34)),_0x91e4f4),(ho(_0x57c1a3,_0x2e1d4a)[_0xf11de0(0x4ca)]||[])[_0xf11de0(0x1de)](function(_0x4058a9,_0x1755fb){const _0x2add1e=_0xf11de0;return Gs(_0x4058a9,''[_0x2add1e(0x1fd)](_0x439233,'-')[_0x2add1e(0x1fd)](_0x57c1a3[_0x2add1e(0x20f)],'-')['concat'](_0x1755fb),_0x2e1d4a,void 0x0,_0x360c34);}));}function co(_0x37b3b4,_0x47d17f,_0x3dce51){const _0x3a2209=_0x4d2b9e;var _0x4bcf03=N({},_0x37b3b4[_0x3a2209(0x355)]);_0x3dce51!=null&&_0x3dce51[_0x3a2209(0x4d4)]&&_0x4bcf03[_0x3a2209(0x470)]===_0x3a2209(0x4d4)&&(_0x4bcf03[_0x3a2209(0x470)]=_0x3dce51['colorChannel1']);var _0x4a0b84=_0x47d17f['defIds'];return!_0x4a0b84||_0x4a0b84[_0x3a2209(0x3b7)]===0x0||(_0x37b3b4[_0x3a2209(0x20f)]===_0x3a2209(0x2ef)&&_0x4bcf03[_0x3a2209(0x43e)]&&(_0x4bcf03[_0x3a2209(0x43e)]=_0x4bcf03[_0x3a2209(0x43e)]+_0x47d17f[_0x3a2209(0x2c8)]),Object['entries'](_0x4bcf03)[_0x3a2209(0x380)](function(_0x4d6c43){const _0x1f45e7=_0x3a2209;var _0x4c5a1e=_0x4d6c43[0x0],_0x3b4e25=_0x4d6c43[0x1];typeof _0x3b4e25==_0x1f45e7(0x1e9)&&(_0x4bcf03[_0x4c5a1e]=_0x3b4e25[_0x1f45e7(0x395)](/url\(#(.*)\)/,_0x1f45e7(0x234)[_0x1f45e7(0x1fd)](_0x47d17f[_0x1f45e7(0x2c8)],')')));})),_0x4bcf03;}function ho(_0x2b8852,_0x23e58){const _0x147a6b=_0x4d2b9e;var _0xdbc975,_0x146a9c=_0x23e58[_0x147a6b(0x1f4)];return!_0x146a9c||_0x146a9c[_0x147a6b(0x3b7)]===0x0?_0x2b8852:_0x2b8852['tag']==='defs'&&(!((_0xdbc975=_0x2b8852['children'])===null||_0xdbc975===void 0x0)&&_0xdbc975[_0x147a6b(0x3b7)])?N(N({},_0x2b8852),{'children':_0x2b8852[_0x147a6b(0x4ca)][_0x147a6b(0x1de)](function(_0x4cd600){const _0x751d6e=_0x147a6b;return typeof _0x4cd600[_0x751d6e(0x355)]['id']==_0x751d6e(0x1e9)&&_0x146a9c&&_0x146a9c['indexOf'](_0x4cd600[_0x751d6e(0x355)]['id'])>-0x1?N(N({},_0x4cd600),{'attrs':N(N({},_0x4cd600['attrs']),{'id':_0x4cd600['attrs']['id']+_0x23e58[_0x751d6e(0x2c8)]})}):_0x4cd600;})}):_0x2b8852;}function lo(){const _0x26a996=_0x4d2b9e;return Math['random']()[_0x26a996(0x452)](0x24)['substring'](0x2,0x8);}Yt['displayName']=_0x4d2b9e(0x304);var _o={'tag':_0x4d2b9e(0x4c2),'attrs':{'fill':_0x4d2b9e(0x204),'viewBox':'0\x200\x2016\x2016','width':_0x4d2b9e(0x49f),'height':_0x4d2b9e(0x49f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d2b9e(0x408)},'children':[{'tag':'path','attrs':{'stroke':_0x4d2b9e(0x498),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x4d2b9e(0x36c),'strokeLinejoin':_0x4d2b9e(0x36c),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4d2b9e(0x2bc),'attrs':{'id':_0x4d2b9e(0x3d7)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x4d2b9e(0x41f)}}]}]}],'defIds':[_0x4d2b9e(0x3d7)]},Ys=_0x520498(function(_0x4a5200,_0x12e574){const _0x1c7e9b=_0x4d2b9e;return _0x352b29(Yt,Object[_0x1c7e9b(0x51e)]({},_0x4a5200,{'id':_0x1c7e9b(0x39c),'ref':_0x12e574,'icon':_o}));});Ys[_0x4d2b9e(0x4dd)]=_0x4d2b9e(0x250);var uo={'tag':'svg','attrs':{'fill':_0x4d2b9e(0x204),'viewBox':_0x4d2b9e(0x2de),'width':'1em','height':_0x4d2b9e(0x49f)},'children':[{'tag':'g','attrs':{'clipPath':_0x4d2b9e(0x2c9)},'children':[{'tag':'path','attrs':{'stroke':_0x4d2b9e(0x498),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x4d2b9e(0x36c),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4d2b9e(0x2bc),'attrs':{'id':_0x4d2b9e(0x1d9)},'children':[{'tag':_0x4d2b9e(0x218),'attrs':{'fill':_0x4d2b9e(0x30f),'d':_0x4d2b9e(0x41f),'transform':'translate(.97)'}}]}]}],'defIds':[_0x4d2b9e(0x1d9)]},Ks=_0x520498(function(_0x643ea5,_0x1b8efd){const _0x2352e4=_0x4d2b9e;return _0x352b29(Yt,Object['assign']({},_0x643ea5,{'id':_0x2352e4(0x403),'ref':_0x1b8efd,'icon':uo}));});Ks[_0x4d2b9e(0x4dd)]=_0x4d2b9e(0x217);function Xs(_0x309b1f){const _0x49a86e=_0x4d2b9e;var _0x3e5e73,_0x35d1fe,_0x2838ee='';if(typeof _0x309b1f==_0x49a86e(0x1e9)||typeof _0x309b1f=='number')_0x2838ee+=_0x309b1f;else{if(typeof _0x309b1f==_0x49a86e(0x240)){if(Array['isArray'](_0x309b1f)){var _0x24acde=_0x309b1f[_0x49a86e(0x3b7)];for(_0x3e5e73=0x0;_0x3e5e73<_0x24acde;_0x3e5e73++)_0x309b1f[_0x3e5e73]&&(_0x35d1fe=Xs(_0x309b1f[_0x3e5e73]))&&(_0x2838ee&&(_0x2838ee+='\x20'),_0x2838ee+=_0x35d1fe);}else{for(_0x35d1fe in _0x309b1f)_0x309b1f[_0x35d1fe]&&(_0x2838ee&&(_0x2838ee+='\x20'),_0x2838ee+=_0x35d1fe);}}}return _0x2838ee;}function fo(){const _0x10c186=_0x4d2b9e;for(var _0x58359c,_0x15aa98,_0x623acf=0x0,_0xf9ad4b='',_0x2bd99e=arguments[_0x10c186(0x3b7)];_0x623acf<_0x2bd99e;_0x623acf++)(_0x58359c=arguments[_0x623acf])&&(_0x15aa98=Xs(_0x58359c))&&(_0xf9ad4b&&(_0xf9ad4b+='\x20'),_0xf9ad4b+=_0x15aa98);return _0xf9ad4b;}const mo=_0x4d2b9e(0x341),go=_0x4d2b9e(0x4d5),So=_0x4d2b9e(0x515),po=_0x4d2b9e(0x390),vo=_0x4d2b9e(0x321),Pe={'onlineStatusIcon':mo,'onlineStatusTitle':go,'onlineStatus':So,'online':po,'offline':vo};function Io(_0x39de32){const _0x2ecf43=_0x4d2b9e;switch(_0x39de32){case P[_0x2ecf43(0x3fe)]:return _0x2ecf43(0x2e3);case P[_0x2ecf43(0x512)]:return _0x2ecf43(0x2d5);case P[_0x2ecf43(0x37c)]:return'collabStatus.fetchMiss';case P[_0x2ecf43(0x415)]:return _0x2ecf43(0x1da);case P[_0x2ecf43(0x38e)]:case P[_0x2ecf43(0x1e3)]:case P['AWAITING_WITH_PENDING']:return _0x2ecf43(0x29d);case P[_0x2ecf43(0x4bb)]:return _0x2ecf43(0x2eb);}}function Eo(_0x43e252){const _0x30fa76=_0x4d2b9e,{status$:_0x3080f3}=_0x43e252,_0x3158d3=_0x1e6802(_0x3080f3,P[_0x30fa76(0x415)]),_0xda7c74=_0x556094(_0x5e971c),_0x344e4d=_0x556094(he),_0xa8a925=_0x3158d3!==P[_0x30fa76(0x3fe)],_0x2f2cff=_0xda7c74['t'](Io(_0x3158d3)),_0x21d9f5=fo(Pe[_0x30fa76(0x2c4)],{[Pe[_0x30fa76(0x4d2)]]:_0xa8a925,[Pe[_0x30fa76(0x47c)]]:!_0xa8a925}),_0x51c880=_0xa8a925?_0x498920[_0x30fa76(0x2bb)](Ks,null):_0x498920[_0x30fa76(0x2bb)](Ys,null),_0x5e90e3=_0x57de83(()=>{_0xa8a925||_0x344e4d['reconnect']();},[_0xa8a925,_0x344e4d]);function _0x547d22(){const _0x30fe16=_0x30fa76;return _0x498920[_0x30fe16(0x2bb)]('div',{'className':_0x21d9f5,'onClick':_0x5e90e3},_0x498920[_0x30fe16(0x2bb)](_0x30fe16(0x327),{'className':Pe['onlineStatusIcon']},_0x51c880),_0x498920[_0x30fe16(0x2bb)](_0x30fe16(0x327),{'className':Pe[_0x30fe16(0x34f)]},_0x2f2cff));}return _0xa8a925?_0x547d22():_0x498920[_0x30fa76(0x2bb)](_0x1bda5d,{'title':_0xda7c74['t']('collab-client.tooltip.reconnect')},_0x547d22());}var Co=Object['defineProperty'],bo=Object[_0x4d2b9e(0x298)],To=(_0x564dae,_0x228d46,_0x4b6c63,_0xb63bba)=>{const _0x34461c=_0x4d2b9e;for(var _0x3fb185=_0xb63bba>0x1?void 0x0:_0xb63bba?bo(_0x228d46,_0x4b6c63):_0x228d46,_0x510d17=_0x564dae[_0x34461c(0x3b7)]-0x1,_0x1112f2;_0x510d17>=0x0;_0x510d17--)(_0x1112f2=_0x564dae[_0x510d17])&&(_0x3fb185=(_0xb63bba?_0x1112f2(_0x228d46,_0x4b6c63,_0x3fb185):_0x1112f2(_0x3fb185))||_0x3fb185);return _0xb63bba&&_0x3fb185&&Co(_0x228d46,_0x4b6c63,_0x3fb185),_0x3fb185;},Be=(_0x5ec0a4,_0x1d0ce2)=>(_0x46fc30,_0x21288b)=>_0x1d0ce2(_0x46fc30,_0x21288b,_0x5ec0a4);let Me=class extends _0x5f4ac3{constructor(_0x5c4b62,_0x35d2d7,_0x298753,_0x544580){const _0x3b50be=_0x4d2b9e;super(),l(this,_0x3b50be(0x446),new _0x119970(P[_0x3b50be(0x415)])),(this[_0x3b50be(0x2af)]=_0x5c4b62,this[_0x3b50be(0x2fd)]=_0x35d2d7,this[_0x3b50be(0x396)]=_0x298753,this[_0x3b50be(0x44f)]=_0x544580,this[_0x3b50be(0x4b8)](),this[_0x3b50be(0x2cb)]());}['_initStatusListener'](){const _0x5e3251=_0x4d2b9e;this['disposeWithMe'](this[_0x5e3251(0x2af)][_0x5e3251(0x2b4)][_0x5e3251(0x3a1)](_0x2c5ab6(()=>{const _0x2818b6=_0x5e3251,_0x58b7eb=this[_0x2818b6(0x2af)][_0x2818b6(0x457)]();return _0x58b7eb?this[_0x2818b6(0x44f)][_0x2818b6(0x358)](_0x58b7eb['getUnitId']()):_0x2fcf97(null);}),_0x2c5ab6(_0x4ad047=>_0x4ad047?_0x4ad047[_0x5e3251(0x41e)]:_0x2fcf97(P['NOT_COLLAB'])))[_0x5e3251(0x442)](_0x16c94c=>{const _0x5766cd=_0x5e3251;this['_status$'][_0x5766cd(0x221)](_0x16c94c);}));}[_0x4d2b9e(0x4b8)](){const _0x40030e=_0x4d2b9e;this['disposeWithMe'](this[_0x40030e(0x2fd)][_0x40030e(0x2ee)](_0x333347[_0x40030e(0x21b)],()=>_0x8d5795(Ro({'status$':this[_0x40030e(0x446)][_0x40030e(0x3e3)]()}),this[_0x40030e(0x396)])));}};Me=To([Be(0x0,_0x5dad13),Be(0x1,_0x26923e),Be(0x2,_0x3a6c9c(_0x51895d)),Be(0x3,_0x3a6c9c(Le))],Me);function Ro(_0x482281){const {status$:_0x329c66}=_0x482281;return function(){const _0x889091=_0x5c56;return _0x498920[_0x889091(0x2bb)](Eo,{'status$':_0x329c66});};}const qs=_0x3bdb6e(_0x4d2b9e(0x2ac));var Oo=Object['defineProperty'],Do=Object[_0x4d2b9e(0x298)],wo=(_0xbc101e,_0x5a8a5f,_0x434b4c,_0x2ab301)=>{const _0x22c410=_0x4d2b9e;for(var _0x5f26ea=_0x2ab301>0x1?void 0x0:_0x2ab301?Do(_0x5a8a5f,_0x434b4c):_0x5a8a5f,_0x284558=_0xbc101e[_0x22c410(0x3b7)]-0x1,_0xb7b28c;_0x284558>=0x0;_0x284558--)(_0xb7b28c=_0xbc101e[_0x284558])&&(_0x5f26ea=(_0x2ab301?_0xb7b28c(_0x5a8a5f,_0x434b4c,_0x5f26ea):_0xb7b28c(_0x5f26ea))||_0x5f26ea);return _0x2ab301&&_0x5f26ea&&Oo(_0x5a8a5f,_0x434b4c,_0x5f26ea),_0x5f26ea;},ge=(_0xf36d60,_0x421c81)=>(_0x26ed08,_0x403608)=>_0x421c81(_0x26ed08,_0x403608,_0xf36d60);let Je=class extends _0x422fed{constructor(_0x5f4c70,_0x41dee3,_0xfea47e,_0x4d6633,_0x4421dd,_0xbf4179){const _0x28d8fe=_0x4d2b9e;super(),this[_0x28d8fe(0x30d)]=_0x5f4c70,this['_logService']=_0x41dee3,this[_0x28d8fe(0x1e5)]=_0xfea47e,this[_0x28d8fe(0x2e1)]=_0x4d6633,this[_0x28d8fe(0x239)]=_0x4421dd,_0xbf4179?_0xbf4179==null||_0xbf4179[_0x28d8fe(0x4b1)]()['then'](()=>this[_0x28d8fe(0x288)]()):(this[_0x28d8fe(0x4fb)]['debug']('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x28d8fe(0x288)]());}async[_0x4d2b9e(0x288)](){const _0x638db8=_0x4d2b9e,_0xdb7cf4=this['_urlService'][_0x638db8(0x42b)](_0x638db8(0x4e2)),_0x34687d=this[_0x638db8(0x30d)]['getParam'](_0x638db8(0x249));if(!_0xdb7cf4||!_0x34687d){this[_0x638db8(0x4fb)][_0x638db8(0x277)](_0x638db8(0x278),_0x638db8(0x1cd));return;}switch(Number(_0x34687d)){case k[_0x638db8(0x32b)]:{const _0x4c6d3d=await this[_0x638db8(0x496)](_0xdb7cf4);this['_setupSubUnitSync'](_0x4c6d3d);break;}case k[_0x638db8(0x447)]:{await this[_0x638db8(0x243)](_0xdb7cf4);break;}default:{this[_0x638db8(0x4fb)][_0x638db8(0x3fd)](_0x638db8(0x278),_0x638db8(0x38b));break;}}}async[_0x4d2b9e(0x305)](_0x86cd13){const _0x137ddc=_0x4d2b9e;await this['_updateSubUnitFromURLParams'](_0x86cd13),_0x86cd13[_0x137ddc(0x223)][_0x137ddc(0x3a1)](_0x1c623f(this[_0x137ddc(0x419)]))[_0x137ddc(0x442)](_0xd169a4=>{const _0x273c9a=_0x137ddc;_0xd169a4&&this[_0x273c9a(0x53f)](_0xd169a4);}),this['_urlService'][_0x137ddc(0x33d)][_0x137ddc(0x3a1)](_0x1c623f(this['dispose$']))['subscribe'](()=>this[_0x137ddc(0x336)](_0x86cd13));}[_0x4d2b9e(0x53f)](_0x3446eb,_0x5c76c9=!0x1){const _0x37cfc8=_0x4d2b9e,_0x4e3fe5=this[_0x37cfc8(0x30d)][_0x37cfc8(0x42b)](_0x37cfc8(0x4b7));_0x3446eb[_0x37cfc8(0x379)]()!==_0x4e3fe5&&this[_0x37cfc8(0x30d)][_0x37cfc8(0x53a)](_0x37cfc8(0x4b7),_0x3446eb['getSheetId'](),_0x5c76c9);}async[_0x4d2b9e(0x336)](_0x37bdbb){const _0xad5467=_0x4d2b9e;var _0x2b7160;const _0x4115a1=this['_urlService']['getParam'](_0xad5467(0x4b7));if(!_0x4115a1||!_0x37bdbb[_0xad5467(0x40c)](_0x4115a1)){const _0x3b0367=_0x37bdbb[_0xad5467(0x450)]()[0x0],_0x452bed=_0x37bdbb['getSheetBySheetId'](_0x3b0367);if(!_0x452bed)return;this[_0xad5467(0x53f)](_0x452bed,!0x0),await this[_0xad5467(0x1e5)][_0xad5467(0x49a)](_0x3d1123['id'],{'unitId':_0x37bdbb['getUnitId'](),'subUnitId':_0x3b0367});return;}((_0x2b7160=_0x37bdbb[_0xad5467(0x4fc)]())==null?void 0x0:_0x2b7160[_0xad5467(0x379)]())!==_0x4115a1&&await this['_commandService']['executeCommand'](_0x3d1123['id'],{'unitId':_0x37bdbb['getUnitId'](),'subUnitId':_0x4115a1});}async[_0x4d2b9e(0x496)](_0x11145a){const _0x48eece=_0x4d2b9e;let _0x306576=0x0;const _0x3e0056=await this[_0x48eece(0x2e1)][_0x48eece(0x245)](_0x11145a);return _0x3e0056&&(_0x3e0056[_0x48eece(0x417)]||_0x3e0056['mutations'][_0x48eece(0x3b7)]!==0x0)&&(_0x306576=_0x3e0056[_0x48eece(0x413)]),_0x306576===0x0&&this['_logService']['debug'](_0x48eece(0x278),_0x48eece(0x42e)),this['_snapshotService'][_0x48eece(0x247)](_0x11145a,_0x306576);}async[_0x4d2b9e(0x243)](_0x2d534c){const _0x304e79=_0x4d2b9e;let _0x222f54=0x0;const _0x1664d9=await this[_0x304e79(0x2e1)]['loadOfflineData'](_0x2d534c);return _0x1664d9&&(_0x1664d9[_0x304e79(0x417)]||_0x1664d9[_0x304e79(0x329)][_0x304e79(0x3b7)]!==0x0)&&(_0x222f54=_0x1664d9[_0x304e79(0x413)]),_0x222f54===0x0&&this[_0x304e79(0x4fb)]['debug'](_0x304e79(0x278),_0x304e79(0x42e)),this[_0x304e79(0x239)][_0x304e79(0x1e0)](_0x2d534c,_0x222f54);}};Je=wo([ge(0x0,qs),ge(0x1,_0x4872ae),ge(0x2,_0x58f975),ge(0x3,_0x3a6c9c(w)),ge(0x4,_0x3a6c9c(_0x3e5f84)),ge(0x5,_0x2c3c6c(_0x16a925))],Je);var Po=Object[_0x4d2b9e(0x47b)],yo=Object[_0x4d2b9e(0x298)],Uo=(_0x48d09a,_0x204cf3,_0x31fa02,_0x4df6a9)=>{const _0x14e850=_0x4d2b9e;for(var _0x66d7fa=_0x4df6a9>0x1?void 0x0:_0x4df6a9?yo(_0x204cf3,_0x31fa02):_0x204cf3,_0x43dc67=_0x48d09a[_0x14e850(0x3b7)]-0x1,_0x167b96;_0x43dc67>=0x0;_0x43dc67--)(_0x167b96=_0x48d09a[_0x43dc67])&&(_0x66d7fa=(_0x4df6a9?_0x167b96(_0x204cf3,_0x31fa02,_0x66d7fa):_0x167b96(_0x66d7fa))||_0x66d7fa);return _0x4df6a9&&_0x66d7fa&&Po(_0x204cf3,_0x31fa02,_0x66d7fa),_0x66d7fa;},Ss=(_0x3926fa,_0x4bd9bd)=>(_0x4f419f,_0x62f695)=>_0x4bd9bd(_0x4f419f,_0x62f695,_0x3926fa);const No=_0x4d2b9e(0x378),Mo='Univer';let ze=class extends _0x5f4ac3{constructor(_0xdb3a3d,_0x45bf9b){const _0x15c2b8=_0x4d2b9e;super(),this[_0x15c2b8(0x2af)]=_0xdb3a3d,this[_0x15c2b8(0x376)]=_0x45bf9b,this[_0x15c2b8(0x288)]();}['_init'](){const _0x2491eb=_0x4d2b9e;this[_0x2491eb(0x23d)](this['_univerInstanceService'][_0x2491eb(0x2b4)][_0x2491eb(0x442)](()=>{const _0x31b722=_0x2491eb;var _0x341f89;const _0x418042=this['_univerInstanceService'][_0x31b722(0x457)]();let _0x5d2f80=(_0x341f89=this['_configService'][_0x31b722(0x352)](No))!=null?_0x341f89:Mo;_0x418042 instanceof _0xad81d8&&(_0x5d2f80=_0x418042[_0x31b722(0x3b6)]),document[_0x31b722(0x1d3)]=_0x5d2f80;}));}};ze=Uo([Ss(0x0,_0x5dad13),Ss(0x1,_0x542b48)],ze);var Ao=Object[_0x4d2b9e(0x47b)],Lo=Object[_0x4d2b9e(0x298)],$o=(_0x29c265,_0x116ca1,_0x222690,_0x55bd30)=>{for(var _0x1cdc3c=_0x55bd30>0x1?void 0x0:_0x55bd30?Lo(_0x116ca1,_0x222690):_0x116ca1,_0x244abb=_0x29c265['length']-0x1,_0x28d4e1;_0x244abb>=0x0;_0x244abb--)(_0x28d4e1=_0x29c265[_0x244abb])&&(_0x1cdc3c=(_0x55bd30?_0x28d4e1(_0x116ca1,_0x222690,_0x1cdc3c):_0x28d4e1(_0x1cdc3c))||_0x1cdc3c);return _0x55bd30&&_0x1cdc3c&&Ao(_0x116ca1,_0x222690,_0x1cdc3c),_0x1cdc3c;},St=(_0x3a02be,_0x29492a)=>(_0x208a83,_0x489fdc)=>_0x29492a(_0x208a83,_0x489fdc,_0x3a02be);let Ze=class{constructor(_0x5b291f,_0x538d7e,_0x224bad){const _0x519735=_0x4d2b9e;this[_0x519735(0x376)]=_0x5b291f,this['_httpService']=_0x538d7e,this[_0x519735(0x22d)]=_0x224bad,this[_0x519735(0x2a9)]();}[_0x4d2b9e(0x2a9)](){const _0x5010d5=_0x4d2b9e;this[_0x5010d5(0x24b)][_0x5010d5(0x23c)]({'priority':0x1,'interceptor':(_0x4f7ee6,_0xe65903)=>_0xe65903(_0x4f7ee6)[_0x5010d5(0x3a1)](_0x38fc07(async _0x50a411=>{const _0x291b7f=_0x5010d5,_0x2dec08=_0x50a411;if(_0x2dec08[_0x291b7f(0x4c0)]===0x191&&window[_0x291b7f(0x481)](this[_0x291b7f(0x22d)]['t'](_0x291b7f(0x468)))){const _0x21a639=window['encodeURIComponent'](window[_0x291b7f(0x256)]['href']);window[_0x291b7f(0x256)][_0x291b7f(0x463)]=this['_getLoginPath']()+_0x291b7f(0x484)+_0x21a639;}return _0x2dec08;}))});}[_0x4d2b9e(0x3d8)](){const _0x4f8e07=_0x4d2b9e;var _0x3da6ec,_0x728cc1;const _0x3c9cbd=this[_0x4f8e07(0x376)][_0x4f8e07(0x352)](Nn),_0x393505=this['_configService'][_0x4f8e07(0x352)]($);return(_0x728cc1=(_0x3da6ec=_0x393505==null?void 0x0:_0x393505[_0x4f8e07(0x2f4)])!=null?_0x3da6ec:_0x3c9cbd)!=null?_0x728cc1:Mn;}};Ze=$o([St(0x0,_0x542b48),St(0x1,_0x3a6c9c(_0x5e0b3d)),St(0x2,_0x3a6c9c(_0x5e971c))],Ze);var jo=Object[_0x4d2b9e(0x47b)],xo=Object[_0x4d2b9e(0x298)],Ho=(_0x145071,_0x3b6163,_0x576ccd,_0x488cac)=>{const _0x318ec6=_0x4d2b9e;for(var _0x50bd50=_0x488cac>0x1?void 0x0:_0x488cac?xo(_0x3b6163,_0x576ccd):_0x3b6163,_0x2a2737=_0x145071[_0x318ec6(0x3b7)]-0x1,_0x4b643d;_0x2a2737>=0x0;_0x2a2737--)(_0x4b643d=_0x145071[_0x2a2737])&&(_0x50bd50=(_0x488cac?_0x4b643d(_0x3b6163,_0x576ccd,_0x50bd50):_0x4b643d(_0x50bd50))||_0x50bd50);return _0x488cac&&_0x50bd50&&jo(_0x3b6163,_0x576ccd,_0x50bd50),_0x50bd50;},ps=(_0x3a2154,_0x3949a4)=>(_0x565a9c,_0x735787)=>_0x3949a4(_0x565a9c,_0x735787,_0x3a2154);const ko='AUTHZ_URL_KEY',Bo=_0x4d2b9e(0x284);let yt=class extends _0x5f4ac3{constructor(_0x4f83d1,_0x57c756){const _0x5846e0=_0x4d2b9e;super(),this[_0x5846e0(0x3eb)]=_0x4f83d1,this['_configService']=_0x57c756,this[_0x5846e0(0x3ed)]();}[_0x4d2b9e(0x3ed)](){const _0x151ae8=_0x4d2b9e,_0x49c0a8=this;this['disposeWithMe'](this[_0x151ae8(0x3eb)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x314c26({'isMatch'(_0x17b285){const _0x219023=_0x151ae8;var _0x2095f2;if(_0x17b285[_0x219023(0x1ce)]==='POST'&&((_0x2095f2=_0x17b285[_0x219023(0x529)])!=null&&_0x2095f2[_0x219023(0x437)])){const {objectID:_0x1dafdc,objectType:_0x547731}=_0x17b285['requestParams'][_0x219023(0x437)]||{};if(!_0x1dafdc||_0x547731===void 0x0)return!0x1;const _0x922745=_0x49c0a8[_0x219023(0x325)]()+'/'+_0x547731+'/object/'+_0x1dafdc+_0x219023(0x254);if(_0x17b285['url']===_0x922745)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x158a11){const _0x1da8a8=_0x151ae8;var _0x2b706e;return(_0x2b706e=_0x158a11['requestParams'])==null?void 0x0:_0x2b706e[_0x1da8a8(0x437)];},'mergeParamsToRequest'(_0x55bf12,_0x54a10a){const _0x3b2e8a=_0x151ae8,_0x51fb72=_0x49c0a8[_0x3b2e8a(0x325)]()+'/-/object/-/batch_allowed',_0x97f339=_0x55bf12[_0x3b2e8a(0x41b)]((_0x434468,_0x19e70b)=>{const _0x3abfd7=_0x3b2e8a,{unitID:_0xd9101c,objectID:_0x4c7b3f,objectType:_0x2e92fb,actions:_0x12875f}=_0x19e70b;return _0x434468[_0xd9101c]||(_0x434468[_0xd9101c]={}),_0x434468[_0xd9101c][_0x4c7b3f]||(_0x434468[_0xd9101c][_0x4c7b3f]={'objectID':_0x4c7b3f,'objectType':_0x2e92fb,'actions':[]}),_0x434468[_0xd9101c][_0x4c7b3f][_0x3abfd7(0x3a4)][_0x3abfd7(0x52a)](..._0x12875f),_0x434468;},{}),_0x290e49=[];for(const _0x3c1bd1 in _0x97f339)for(const _0x32e3dc in _0x97f339[_0x3c1bd1]){const {actions:_0x38d2e6,objectType:_0x11248d}=_0x97f339[_0x3c1bd1][_0x32e3dc],_0x26db86=[...new Set(_0x38d2e6)];_0x290e49[_0x3b2e8a(0x52a)]({'unitID':_0x3c1bd1,'objectID':_0x32e3dc,'objectType':_0x11248d,'actions':_0x26db86});}return new _0x6faf85(_0x3b2e8a(0x330),_0x51fb72,{'headers':_0x54a10a['headers'],'withCredentials':_0x54a10a[_0x3b2e8a(0x35e)],'responseType':_0x54a10a[_0x3b2e8a(0x538)],'body':{'requests':_0x290e49}});}},{'distributeResult'(_0x4c8d18,_0x271e81){const {objectActions:_0x35bf75}=_0x4c8d18;return _0x271e81['map'](_0x24470a=>{const _0x762bf8=_0x5c56,{unitID:_0x4b7fd9,objectID:_0x3e7cb8,actions:_0x271c17}=_0x24470a,_0x2568f3=_0x35bf75[_0x762bf8(0x3d1)](_0x108fe1=>_0x108fe1[_0x762bf8(0x51a)]===_0x4b7fd9&&_0x108fe1[_0x762bf8(0x394)]===_0x3e7cb8),_0x13185f=_0x271c17[_0x762bf8(0x1de)](_0x40d767=>_0x2568f3==null?void 0x0:_0x2568f3[_0x762bf8(0x3a4)][_0x762bf8(0x3d1)](_0x5dceb1=>_0x5dceb1[_0x762bf8(0x353)]===_0x40d767))[_0x762bf8(0x527)](_0x51bd81=>!!_0x51bd81);return{'config':_0x24470a,'result':{'actions':_0x13185f,'error':_0x4c8d18[_0x762bf8(0x3fd)]}};});}})}));}[_0x4d2b9e(0x325)](){const _0x5e5df7=_0x4d2b9e;var _0x285aaa,_0x2d00bf;const _0x31f2e5=this[_0x5e5df7(0x376)]['getConfig'](ko),_0x34abb2=this[_0x5e5df7(0x376)][_0x5e5df7(0x352)]($);return(_0x2d00bf=(_0x285aaa=_0x34abb2==null?void 0x0:_0x34abb2[_0x5e5df7(0x3f6)])!=null?_0x285aaa:_0x31f2e5)!=null?_0x2d00bf:Bo;}async['create'](_0xa75810){const _0x23725d=_0x4d2b9e,_0x35d4c8=this['_getAPIPrefixPath']()+'/'+_0xa75810[_0x23725d(0x544)]+_0x23725d(0x322);return(await this[_0x23725d(0x3eb)][_0x23725d(0x383)](_0x35d4c8,{'body':_0xa75810}))[_0x23725d(0x437)]['objectID']||'';}async['list'](_0x38eb03){const _0x154ab0=_0x4d2b9e,_0x155a3e=this[_0x154ab0(0x325)]()+'/-/object/list';return(await this[_0x154ab0(0x3eb)][_0x154ab0(0x383)](_0x155a3e,{'body':_0x38eb03}))[_0x154ab0(0x437)][_0x154ab0(0x4bc)];}async[_0x4d2b9e(0x23f)](_0x250709){const _0x46f4aa=_0x4d2b9e,_0x2521f9=this[_0x46f4aa(0x325)]()+'/'+_0x250709['objectType']+'/object/'+_0x250709[_0x46f4aa(0x394)];await this[_0x46f4aa(0x3eb)][_0x46f4aa(0x31d)](_0x2521f9,{'body':_0x250709});}async['allowed'](_0x3e1bdd){const _0x8893e6=_0x4d2b9e,_0x388889=this['_getAPIPrefixPath']()+'/'+_0x3e1bdd[_0x8893e6(0x544)]+_0x8893e6(0x519)+_0x3e1bdd[_0x8893e6(0x394)]+_0x8893e6(0x254);return(await this[_0x8893e6(0x3eb)][_0x8893e6(0x383)](_0x388889,{'body':_0x3e1bdd}))[_0x8893e6(0x437)]['actions'];}async[_0x4d2b9e(0x1f0)](_0x3d0f7e){const _0x121a6a=_0x4d2b9e,_0x271e5a=this[_0x121a6a(0x325)]()+'/-/object/-/batch_allowed';return(await this[_0x121a6a(0x3eb)][_0x121a6a(0x383)](_0x271e5a,{'body':{'requests':_0x3d0f7e}}))['body'][_0x121a6a(0x25e)];}async[_0x4d2b9e(0x474)](_0x1aac69){const _0x3cae0f=_0x4d2b9e,_0x58e075=this[_0x3cae0f(0x325)]()+'/'+_0x1aac69['objectType']+'/role',_0x2f6602=await this[_0x3cae0f(0x3eb)][_0x3cae0f(0x383)](_0x58e075,{'body':_0x1aac69});return{'roles':_0x2f6602['body']['roles'],'actions':_0x2f6602[_0x3cae0f(0x437)][_0x3cae0f(0x3a4)]};}async[_0x4d2b9e(0x4cf)](_0x280425){const _0x2a5b5a=_0x4d2b9e,_0xf230c5=this[_0x2a5b5a(0x325)]()+_0x2a5b5a(0x289);await this[_0x2a5b5a(0x3eb)][_0x2a5b5a(0x1f1)](_0xf230c5,{'params':{'collaboratorID':_0x280425[_0x2a5b5a(0x1ff)],'objectID':_0x280425[_0x2a5b5a(0x394)],'unitID':_0x280425['unitID']}});}async['updateCollaborator'](_0x3c0a3f){const _0x186585=_0x4d2b9e,_0x2cd4e3=this[_0x186585(0x325)]()+_0x186585(0x289);await this[_0x186585(0x3eb)][_0x186585(0x48f)](_0x2cd4e3,{'body':_0x3c0a3f});}async[_0x4d2b9e(0x309)](_0x574023){const _0x2c2f6d=_0x4d2b9e,_0x2396e7=this[_0x2c2f6d(0x325)]()+_0x2c2f6d(0x289);await this[_0x2c2f6d(0x3eb)][_0x2c2f6d(0x383)](_0x2396e7,{'body':_0x574023});}async['listCollaborators'](_0x42a812){const _0xbc469f=_0x4d2b9e,_0x3ddbd5=this[_0xbc469f(0x325)]()+_0xbc469f(0x289);return(await this[_0xbc469f(0x3eb)][_0xbc469f(0x29a)](_0x3ddbd5,{'params':{'objectID':_0x42a812[_0xbc469f(0x394)],'unitID':_0x42a812[_0xbc469f(0x51a)]}}))[_0xbc469f(0x437)][_0xbc469f(0x1f3)];}async[_0x4d2b9e(0x34d)](_0x4239ff){const _0x20aa4a=_0x4d2b9e,_0x2d1f60=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x20aa4a(0x3eb)][_0x20aa4a(0x31d)](_0x2d1f60,{'body':_0x4239ff});}};yt=Ho([ps(0x0,_0x3a6c9c(_0x5e0b3d)),ps(0x1,_0x3a6c9c(_0x542b48))],yt);var Vo=Object['defineProperty'],Fo=Object['getOwnPropertyDescriptor'],Wo=(_0x46a589,_0x4cdfdf,_0x4d0e89,_0x5858f3)=>{const _0x3de7cd=_0x4d2b9e;for(var _0x4e0621=_0x5858f3>0x1?void 0x0:_0x5858f3?Fo(_0x4cdfdf,_0x4d0e89):_0x4cdfdf,_0x1a6273=_0x46a589[_0x3de7cd(0x3b7)]-0x1,_0x4ab204;_0x1a6273>=0x0;_0x1a6273--)(_0x4ab204=_0x46a589[_0x1a6273])&&(_0x4e0621=(_0x5858f3?_0x4ab204(_0x4cdfdf,_0x4d0e89,_0x4e0621):_0x4ab204(_0x4e0621))||_0x4e0621);return _0x5858f3&&_0x4e0621&&Vo(_0x4cdfdf,_0x4d0e89,_0x4e0621),_0x4e0621;},Go=(_0x2f6407,_0x512137)=>(_0x59da29,_0x438be5)=>_0x512137(_0x59da29,_0x438be5,_0x2f6407);let Qe=class{constructor(_0x3ca210){const _0x2da4ec=_0x4d2b9e;this[_0x2da4ec(0x24b)]=_0x3ca210,this[_0x2da4ec(0x2b7)]();}['_initRequestHeader'](){const _0x49c788=_0x4d2b9e;this['_httpService'][_0x49c788(0x23c)]({'interceptor':(_0x3f8b63,_0x16f812)=>{const _0x363e9b=_0x49c788,_0x39e672=_0x3f8b63[_0x363e9b(0x479)],_0x4282cd=_0x148051();return _0x4282cd&&_0x39e672[_0x363e9b(0x2be)]('x-univer-host',_0x4282cd),_0x16f812(_0x3f8b63);}});}};Qe=Wo([Go(0x0,_0x3a6c9c(_0x5e0b3d))],Qe);var Yo=Object[_0x4d2b9e(0x47b)],Ko=Object[_0x4d2b9e(0x298)],Xo=(_0xe97d7d,_0x2d72fd,_0x4788bb,_0x40c75c)=>{for(var _0x95ca50=_0x40c75c>0x1?void 0x0:_0x40c75c?Ko(_0x2d72fd,_0x4788bb):_0x2d72fd,_0x2493e0=_0xe97d7d['length']-0x1,_0x2e6f22;_0x2493e0>=0x0;_0x2493e0--)(_0x2e6f22=_0xe97d7d[_0x2493e0])&&(_0x95ca50=(_0x40c75c?_0x2e6f22(_0x2d72fd,_0x4788bb,_0x95ca50):_0x2e6f22(_0x95ca50))||_0x95ca50);return _0x40c75c&&_0x95ca50&&Yo(_0x2d72fd,_0x4788bb,_0x95ca50),_0x95ca50;},pt=(_0x1f1751,_0x6504a1)=>(_0x5d019e,_0x3db1d4)=>_0x6504a1(_0x5d019e,_0x3db1d4,_0x1f1751);const qo=[_0x4d2b9e(0x23b),_0x4d2b9e(0x26d),'image/jpg','image/gif',_0x4d2b9e(0x4e5)],Jo=0x5*0x400*0x400,zo=_0x4d2b9e(0x3b1),Zo=_0x4d2b9e(0x24f),Qo=_0x4d2b9e(0x27f),ea=_0x4d2b9e(0x50f);let Ut=class{constructor(_0x447b30,_0x431733,_0x37ea17){const _0x5ec0e9=_0x4d2b9e;l(this,_0x5ec0e9(0x22e),0x0),l(this,_0x5ec0e9(0x215),new _0x1eeb2c()),l(this,'change$',this[_0x5ec0e9(0x215)]),l(this,_0x5ec0e9(0x40e),new Map()),(this[_0x5ec0e9(0x24b)]=_0x447b30,this['_configService']=_0x431733,this[_0x5ec0e9(0x2af)]=_0x37ea17);}['setWaitCount'](_0x2a8be7){const _0xf4ec6d=_0x4d2b9e;this['_waitCount']=_0x2a8be7,this[_0xf4ec6d(0x215)][_0xf4ec6d(0x221)](_0x2a8be7);}[_0x4d2b9e(0x2a4)](_0x20918c,_0x5a88cb){const _0x5382ab=_0x4d2b9e;if(_0x5a88cb===_0x5d934f[_0x5382ab(0x3c3)]){const _0x518444=new Image();return _0x518444['src']=_0x20918c,_0x518444;}return this['_imageSourceCache']['get'](_0x20918c);}['addImageSourceCache'](_0x387a8d,_0x2a1ea5,_0xa470f2){const _0x3ac5a1=_0x4d2b9e;_0x2a1ea5===_0x5d934f[_0x3ac5a1(0x3c3)]||_0xa470f2==null||this[_0x3ac5a1(0x40e)]['set'](_0x387a8d,_0xa470f2);}async[_0x4d2b9e(0x36e)](_0x7cec23){const _0x29f44f=_0x4d2b9e;try{const _0x9282=this[_0x29f44f(0x2b6)](this[_0x29f44f(0x2d2)](),''+_0x7cec23),_0x56424d=(await this[_0x29f44f(0x24b)][_0x29f44f(0x29a)](_0x9282))[_0x29f44f(0x437)];if(_0x56424d['error']&&_0x56424d[_0x29f44f(0x3fd)]['code']===xs['OK']){const _0x4a404=new URL(_0x56424d[_0x29f44f(0x35c)],this[_0x29f44f(0x3cf)]())[_0x29f44f(0x452)]();return Promise[_0x29f44f(0x3ad)](_0x4a404);}return Promise[_0x29f44f(0x320)](_0x56424d[_0x29f44f(0x3fd)]);}catch(_0x4229c6){return Promise[_0x29f44f(0x320)](_0x4229c6);}}async[_0x4d2b9e(0x265)](_0x247ceb){const _0x2addd4=_0x4d2b9e;let _0x157ea8='';if(!qo[_0x2addd4(0x4e4)](_0x247ceb[_0x2addd4(0x249)]))return this['_decreaseWaiting'](),Promise[_0x2addd4(0x320)](new Error(_0x4c6dd9[_0x2addd4(0x2e4)]));if(_0x247ceb[_0x2addd4(0x306)]>Jo)return this[_0x2addd4(0x4d3)](),Promise[_0x2addd4(0x320)](new Error(_0x4c6dd9[_0x2addd4(0x456)]));try{const _0x5919fa=new FormData();_0x5919fa[_0x2addd4(0x48a)](_0x2addd4(0x40d),_0x247ceb);const _0x12ef31=this[_0x2addd4(0x2af)][_0x2addd4(0x457)](),_0x2654e6=_0x12ef31==null?void 0x0:_0x12ef31['getUnitId']();if(!_0x2654e6)throw new Error(_0x2addd4(0x2cd));const _0x52f4c0=this[_0x2addd4(0x2cc)]()+_0x2addd4(0x4b5)+_0x247ceb['size']['toString']()+_0x2addd4(0x35b)+Hs[_0x2addd4(0x2ae)]+_0x2addd4(0x362)+encodeURIComponent(_0x2654e6),_0x4da07a=await(await fetch(_0x52f4c0,{'method':'POST','body':_0x5919fa}))[_0x2addd4(0x1e7)]();if(typeof _0x4da07a['FileId']!=_0x2addd4(0x1e9))return this[_0x2addd4(0x4d3)](),Promise['reject'](new Error(_0x4c6dd9['ERROR_IMAGE']));_0x157ea8=_0x4da07a['FileId'];}catch{return this[_0x2addd4(0x4d3)](),Promise[_0x2addd4(0x320)](new Error(_0x4c6dd9[_0x2addd4(0x3ee)]));}return new Promise((_0xe6a5a5,_0x5282b2)=>{const _0x3470b8=_0x2addd4,_0x13ee1e=new FileReader();_0x13ee1e[_0x3470b8(0x4a7)](_0x247ceb),_0x13ee1e[_0x3470b8(0x3c2)]=_0x4b53d9=>{const _0x162ac9=_0x3470b8;var _0x40e2ac;const _0x160913=(_0x40e2ac=_0x4b53d9['target'])==null?void 0x0:_0x40e2ac[_0x162ac9(0x466)];if(_0x160913==null){this[_0x162ac9(0x4d3)](),_0x5282b2(new Error(_0x4c6dd9[_0x162ac9(0x3ee)]));return;}const _0x3a1cc5=_0x3e23fb[_0x162ac9(0x300)](0x6);_0xe6a5a5({'imageId':_0x3a1cc5,'imageSourceType':_0x5d934f['UUID'],'source':_0x157ea8,'base64Cache':_0x160913,'status':_0x4c6dd9[_0x162ac9(0x44b)]}),this[_0x162ac9(0x4d3)]();};});}[_0x4d2b9e(0x2cc)](){const _0x15d35b=_0x4d2b9e;var _0x334b53,_0x292fff;const _0x13a316=this[_0x15d35b(0x376)][_0x15d35b(0x352)](zo),_0x322616=this['_configService']['getConfig']($);return(_0x292fff=(_0x334b53=_0x322616==null?void 0x0:_0x322616[_0x15d35b(0x54f)])!=null?_0x334b53:_0x13a316)!=null?_0x292fff:Zo;}[_0x4d2b9e(0x2d2)](){const _0x21d1c7=_0x4d2b9e;var _0x5151a1,_0x5872a9;const _0x22ac2c=this[_0x21d1c7(0x376)]['getConfig'](Qo),_0x5d8446=this[_0x21d1c7(0x376)]['getConfig']($);return(_0x5872a9=(_0x5151a1=_0x5d8446==null?void 0x0:_0x5d8446[_0x21d1c7(0x291)])!=null?_0x5151a1:_0x22ac2c)!=null?_0x5872a9:ea;}['_getDownloadEndpointURL'](){const _0x4a8a4b=_0x4d2b9e;var _0x5a04c5;const _0x4ecd10=this[_0x4a8a4b(0x376)][_0x4a8a4b(0x352)]($);return(_0x5a04c5=_0x4ecd10==null?void 0x0:_0x4ecd10[_0x4a8a4b(0x472)])!=null?_0x5a04c5:location['origin'];}[_0x4d2b9e(0x2b6)](_0x5621b8,_0x183e2a){const _0x2f45cc=_0x4d2b9e;return _0x5621b8[_0x2f45cc(0x395)]('{fileID}',_0x183e2a);}[_0x4d2b9e(0x4d3)](){const _0x2ffbd4=_0x4d2b9e;this[_0x2ffbd4(0x22e)]-=0x1,this[_0x2ffbd4(0x215)][_0x2ffbd4(0x221)](this[_0x2ffbd4(0x22e)]);}};Ut=Xo([pt(0x0,_0x3a6c9c(_0x5e0b3d)),pt(0x1,_0x542b48),pt(0x2,_0x3a6c9c(_0x5dad13))],Ut);var ta=Object['defineProperty'],sa=Object[_0x4d2b9e(0x298)],ia=(_0x479753,_0x5eb523,_0x5b5fd0,_0x3f8aac)=>{const _0x486554=_0x4d2b9e;for(var _0xa666c6=_0x3f8aac>0x1?void 0x0:_0x3f8aac?sa(_0x5eb523,_0x5b5fd0):_0x5eb523,_0x3bdff5=_0x479753[_0x486554(0x3b7)]-0x1,_0x1142e4;_0x3bdff5>=0x0;_0x3bdff5--)(_0x1142e4=_0x479753[_0x3bdff5])&&(_0xa666c6=(_0x3f8aac?_0x1142e4(_0x5eb523,_0x5b5fd0,_0xa666c6):_0x1142e4(_0xa666c6))||_0xa666c6);return _0x3f8aac&&_0xa666c6&&ta(_0x5eb523,_0x5b5fd0,_0xa666c6),_0xa666c6;},ye=(_0x3c8063,_0x3b43b6)=>(_0x19c975,_0xdbf814)=>_0x3b43b6(_0x19c975,_0xdbf814,_0x3c8063);let et=class extends _0x422fed{constructor(_0x55a9b9,_0xbe0237,_0x197768,_0x4d46e0,_0x150a9b){const _0x341986=_0x4d2b9e;super(),this[_0x341986(0x396)]=_0x55a9b9,this[_0x341986(0x2af)]=_0xbe0237,this[_0x341986(0x26a)]=_0x197768,this[_0x341986(0x366)]=_0x4d46e0,this['_localeService']=_0x150a9b,this[_0x341986(0x3ce)](),this[_0x341986(0x4ae)]();}[_0x4d2b9e(0x4ae)](){const _0x5b6a4f=_0x4d2b9e,_0x1da248=async _0x4d9756=>{const _0x89ae79=_0x5c56;(await this[_0x89ae79(0x366)][_0x89ae79(0x323)](_0x4d9756))[_0x89ae79(0x4a1)][_0x89ae79(0x3a1)](_0x3b2fa1(_0x118a0c=>_0x118a0c[_0x89ae79(0x4b6)]===_0x3e8b39[_0x89ae79(0x449)]),_0x28f50c(this['dispose$']))[_0x89ae79(0x442)](_0x3e69cc=>{const _0x1c9012=_0x89ae79,_0x403696=_0x3e69cc,{reason:_0x577203}=_0x403696['data'];this['_injector'][_0x1c9012(0x29a)](_0x15989f)[_0x1c9012(0x388)]({'type':_0x3a3d7c[_0x1c9012(0x460)],'content':this[_0x1c9012(0x4f2)]['t'](_0x1c9012(0x2e2))+'('+_0x577203+')'}),this[_0x1c9012(0x26a)][_0x1c9012(0x4f8)](new _0x438d93(_0x4d9756)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x4d9756);});};_0x18ccc3(this[_0x5b6a4f(0x2af)][_0x5b6a4f(0x27d)](_0x20a2e2[_0x5b6a4f(0x32b)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x20a2e2[_0x5b6a4f(0x447)]))[_0x5b6a4f(0x3a1)](_0x5cd2f6(_0x2e6812=>_0x2e6812[_0x5b6a4f(0x459)]()),_0x3b2fa1(_0x492b3f=>!_0x2f6283(_0x492b3f)),_0x28f50c(this[_0x5b6a4f(0x419)]))[_0x5b6a4f(0x442)](_0x3e55ff=>{_0x1da248(_0x3e55ff);});}[_0x4d2b9e(0x3ce)](){const _0x672a72=_0x4d2b9e,_0x553337=async _0x17b6d1=>{const _0x418266=_0x5c56;(await this[_0x418266(0x366)]['requireSession'](_0x17b6d1))[_0x418266(0x4a1)][_0x418266(0x3a1)](_0x3b2fa1(_0x4a7d23=>_0x4a7d23['eventID']===_0x3e8b39[_0x418266(0x3cd)]),_0x28f50c(this[_0x418266(0x419)]))[_0x418266(0x442)](_0x597ed8=>{const _0x777a70=_0x418266,_0x59cd33=_0x597ed8,{objectId:_0x3d1e23}=_0x59cd33[_0x777a70(0x4b2)],_0x3d2564=this[_0x777a70(0x396)][_0x777a70(0x29a)](_0x46d835);_0x3d1e23===_0x17b6d1?_0x3d2564[_0x777a70(0x392)](_0x17b6d1):_0x3d2564[_0x777a70(0x39f)](_0x17b6d1,_0x3d1e23);});};_0x18ccc3(this[_0x672a72(0x2af)][_0x672a72(0x27d)](_0x20a2e2[_0x672a72(0x32b)]),this[_0x672a72(0x2af)][_0x672a72(0x27d)](_0x20a2e2[_0x672a72(0x447)]))['pipe'](_0x5cd2f6(_0x5033f6=>_0x5033f6[_0x672a72(0x459)]()),_0x3b2fa1(_0x37d6c1=>!_0x2f6283(_0x37d6c1)),_0x28f50c(this[_0x672a72(0x419)]))[_0x672a72(0x442)](_0x23d807=>{_0x553337(_0x23d807);});}};et=ia([ye(0x0,_0x3a6c9c(_0x51895d)),ye(0x1,_0x5dad13),ye(0x2,_0xb81372),ye(0x3,_0x3a6c9c(he)),ye(0x4,_0x3a6c9c(_0x5e971c))],et);var na=Object[_0x4d2b9e(0x47b)],ra=Object[_0x4d2b9e(0x298)],oa=(_0xd1ea04,_0x20e1b1,_0x1d524f,_0x26560e)=>{const _0x25d8c6=_0x4d2b9e;for(var _0x506ed4=_0x26560e>0x1?void 0x0:_0x26560e?ra(_0x20e1b1,_0x1d524f):_0x20e1b1,_0x55e4f3=_0xd1ea04[_0x25d8c6(0x3b7)]-0x1,_0x33441f;_0x55e4f3>=0x0;_0x55e4f3--)(_0x33441f=_0xd1ea04[_0x55e4f3])&&(_0x506ed4=(_0x26560e?_0x33441f(_0x20e1b1,_0x1d524f,_0x506ed4):_0x33441f(_0x506ed4))||_0x506ed4);return _0x26560e&&_0x506ed4&&na(_0x20e1b1,_0x1d524f,_0x506ed4),_0x506ed4;},vs=(_0x3f094f,_0x190074)=>(_0x5f4fee,_0x165b22)=>_0x190074(_0x5f4fee,_0x165b22,_0x3f094f);let Nt=class{constructor(_0x3edda8,_0x58db1b){const _0x5897b1=_0x4d2b9e;this[_0x5897b1(0x376)]=_0x3edda8,this[_0x5897b1(0x24b)]=_0x58db1b;}async[_0x4d2b9e(0x508)](_0x8a21d,_0x11b17c){const _0x1e0643=_0x4d2b9e;var _0x12fc10;const {unitID:_0x5e5d37,type:_0xe7ca7b,revision:_0x52772c=0x0}=_0x11b17c,_0x563aff=this[_0x1e0643(0x2b9)]()+'/'+_0xe7ca7b+'/unit/'+_0x5e5d37+_0x1e0643(0x2ea)+_0x52772c,_0x5d8dd4=(await this['_httpService'][_0x1e0643(0x29a)](_0x563aff))[_0x1e0643(0x437)],_0x379ce7=(_0x12fc10=_0x5d8dd4[_0x1e0643(0x401)])==null?void 0x0:_0x12fc10['workbook'];if(_0x379ce7){const _0x375dfb=_0x379ce7==null?void 0x0:_0x379ce7[_0x1e0643(0x34b)],_0x16a970=_0x386e0c[_0x1e0643(0x516)](_0x2b336b(_0x375dfb));_0x379ce7['originalMeta']=_0x16a970,Object[_0x1e0643(0x50c)](_0x379ce7[_0x1e0643(0x4a9)])[_0x1e0643(0x380)](([,_0x4c42d2])=>{const _0x54d637=_0x1e0643,_0x17dcb0=_0x4c42d2[_0x54d637(0x34b)],_0x2d7804=_0x386e0c[_0x54d637(0x516)](_0x2b336b(_0x17dcb0));_0x4c42d2[_0x54d637(0x34b)]=_0x2d7804;});}return _0x5d8dd4;}async[_0x4d2b9e(0x33c)](_0x24dfd2,_0x3c03c6){const _0x5a515d=_0x4d2b9e,{unitID:_0x454ecf,type:_0x232fea,blockID:_0x39040d}=_0x3c03c6,_0x114a8f=this[_0x5a515d(0x4a4)]()+'/'+_0x232fea+'/unit/'+_0x454ecf+'/block/'+_0x39040d;return(await this['_httpService'][_0x5a515d(0x29a)](_0x114a8f))[_0x5a515d(0x437)];}async[_0x4d2b9e(0x416)](_0x3c6716,_0x209c8f){const _0x50197b=_0x4d2b9e,{unitID:_0x1dfaee,type:_0x2478eb,blockID:_0x1414b3}=_0x209c8f,_0x2a6757=this['_getAPIPrefix']()+_0x50197b(0x4bd)+_0x2478eb+_0x50197b(0x39a)+_0x1dfaee+_0x50197b(0x4bd)+_0x1414b3;return(await this[_0x50197b(0x24b)][_0x50197b(0x29a)](_0x2a6757))[_0x50197b(0x437)];}async[_0x4d2b9e(0x43f)](_0x396f43,_0x1d88fa){const _0xc33868=_0x4d2b9e,{unitID:_0x83af7f,type:_0x12514b,from:_0x2991bc,to:_0x5da443}=_0x1d88fa,_0x255393=this['_getAPIPrefix']()+'/'+_0x12514b+_0xc33868(0x39a)+_0x83af7f+'/fetchmissing?from='+_0x2991bc+_0xc33868(0x465)+_0x5da443;return(await this[_0xc33868(0x24b)]['get'](_0x255393))[_0xc33868(0x437)];}[_0x4d2b9e(0x2b9)](){const _0x393ed1=_0x4d2b9e;var _0x757c70;return(_0x757c70=this[_0x393ed1(0x376)]['getConfig'](vn))!=null?_0x757c70:this[_0x393ed1(0x4a4)]();}['_getAPIPrefix'](){const _0x335145=_0x4d2b9e;var _0x4dc20b,_0x191fca;const _0x5cd182=this[_0x335145(0x376)][_0x335145(0x352)](Sn),_0x132bf2=this[_0x335145(0x376)]['getConfig']($);return(_0x191fca=(_0x4dc20b=_0x132bf2==null?void 0x0:_0x132bf2[_0x335145(0x1e4)])!=null?_0x4dc20b:_0x5cd182)!=null?_0x191fca:pn;}async[_0x4d2b9e(0x22f)](_0x5a723f,_0x4edacd){const _0x3c5d6f=_0x4d2b9e,_0x55d773=_0x3c5d6f(0x539)+_0x4edacd[_0x3c5d6f(0x249)]+_0x3c5d6f(0x39a)+_0x4edacd[_0x3c5d6f(0x51a)]+_0x3c5d6f(0x469);return(await this[_0x3c5d6f(0x24b)][_0x3c5d6f(0x29a)](_0x55d773,{'params':{'resourceId':JSON[_0x3c5d6f(0x2d9)](_0x4edacd['resourceIDs'])}}))['body'];}[_0x4d2b9e(0x28a)](){const _0x3cad82=_0x4d2b9e;throw new Error(_0x3cad82(0x4e1));}[_0x4d2b9e(0x1f9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x2e1b4b=_0x4d2b9e;throw new Error(_0x2e1b4b(0x4e1));}[_0x4d2b9e(0x483)](){const _0xbf882=_0x4d2b9e;throw new Error(_0xbf882(0x4e1));}};Nt=oa([vs(0x0,_0x542b48),vs(0x1,_0x3a6c9c(_0x5e0b3d))],Nt);function _0x44a1(){const _0x43ab29=['incrementRevOfUnit','unsubscribe','indexOf','YUUMI_SUBSCRIPTION_NOT_FOUND','resolve','arc','jiqing500','onMissedChangesetFetched','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','slice','_colorAssignService','findNodePositionByCharIndex','HELLO','name','length','IDLE','_anchorDot','_onMessage','_onConflict','_transformSelections','_docSkeletonManagerService','getCellPositionByOffset','_timeoutTimer','_clearCollaborationTimeoutTimer','enableOfflineEditing','onload','BASE64','leaveEvent','AWAITING_WITH_PENDING','syncEditingCollabCursor','USERS_LEAVE','isPermissionRej','startsWith','socket\x20open.','triggerDblclick','_joinRoom','UPDATE_PERMISSION_OBJ','_initUnitPermissionChange','_getDownloadEndpointURL','collabCursorState$','find','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_scheduleTimestamp','_createHandler','_session','ALREADY_EXISTS','off-line-single_clip0_910_343','_getLoginPath','_onRemoteChangeset','setTimeout','_clearRedo','reconnect','_render','LICENSE_DISTRO_REJECTED','appendMutation','[OfflineState]:\x20received\x20acknowledgement.','_transformUndoRedoStack','transformUndoRedo','asObservable','COLLAB_SUBMIT_CHANGESET_URL','duration','permissionRejEvent','_registerRenderDependencies','_fetchMissChangesets','hasOwnProperty','LIVESHARE_OPERATION','_HTTPService','m1Prime','_initMergeInterceptor','ERROR_IMAGE','_online','_state','commentUpdate$','createSocket','_assignedColors','_queuedRemoteChangesets','_send','authzUrl','onTransformIME','getMergeData','connection\x20error','getUnitType','transform','#FFF','error','OFFLINE','CONNECTOR_DATA_TOO_LARGE','_sessions','snapshot','LOCAL_CACHE_INTERVAL','on-line-single','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onRemoteRej','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','currentSkeleton$','url(#off-line-single_clip0_910_343)','_socketMessageSubscription','cmd','_collabCursorController','getSheetBySheetId','file','_imageSourceCache','some','getUnitStatus$','from','RemoveColCommandId','rev','_socketService','NOT_COLLAB','getDeserializedSheetBlock','awaitingChangeset','_onRemoteRejected','dispose$','call','reduce','_stopTelemetryCollaborationNewChangeset','subUnitId','status$','M0\x200H16V16H0z','extend','getRangePointData','_getSendChangesetTimeout','onSendChangeset','close','sessionStatus','setShapeProps','\x20-\x20','onTransformSelections','_transformStack','hide','getParam','_roomMembers$','FromArray','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','equals','_clearHeartbeatTimer','with','_getSaveTimeout','onStarting','APPLY_REJECT','toRgbString','INVALID_ARGUMENT','body','TOO_MANY_REQUESTS','SNAPSHOT_SERVER_URL_KEY','INGEST','setActiveRange','range','_cursorShapes','xlink:href','fetchMissingChangesets','rgba(255,\x20255,\x20255,\x200.01)','_toggleOffline','subscribe','restore','pluginName','UPDATE_CURSOR','_status$','UNIVER_DOC','_collabSessionService','SHOULD_CLOSE_CONN','apply','SUCCUSS','_waitForHeartbeatResponse','Undefined','_shouldReportTelemetry','_collaborationController','getUnhiddenWorksheets','_themeService','toString','_transformService','_updateCollabCursors','COMPLETION_FINISHED','ERROR_EXCEED_SIZE','getFocusedUnit','sheetID','getUnitId','1wjApRW','HEARTBEAT_INTERVAL','_textBubble','toggleOffline','[OfflineState]:\x20received\x20changeset.','isEditing','Error','_commentService','_onRecvEvent','href','exhaustSavingTask','&to=','result','onTransformRemoteChangesetByIMECache','auth.needGotoLoginAlert','/resources','csAckEvent','[OfflineState]:\x20received\x20rejection.','DeleteRangeMoveLeftCommandId','_telemetryService','onMouseMove','beginPath','fill','text','downloadEndpointUrl','measureText','listRoles','hovered','ONLINE','14qjcAfs','_undoStacks','headers','startColumn','defineProperty','offline','getCurrentUser','ranges','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','confirm','csRejEvent','getLatestCsReqIdBySid','?url=','dispose','_onRefRangeChange','setAlpha','_docSkeleton','fromCollab','append','FETCH_MISSING','backgroundColor','YUUMI_URL_COL_OUT_OF_RANGE','87396lVIjad','patch','sheetId','UNDEFINED','save\x20fail\x20reason\x20is\x20','catch','univerjs-icon\x20univerjs-icon-','toggleOnline','_loadSheet','getVpScrollXYInfoByPosToVp','currentColor','8018397fPmgeu','executeCommand','createInstance','_ensureSubject','UNRECOGNIZED','_submitChangeset','1em','onRendered','event$','_replayCachedMutations','/universer-api/oidc/authpage','_getAPIPrefix','setInterval','assignAColorForMemberID','readAsDataURL','_onJoinRoomEvent','sheets','_throwTelemetryCollaborationNewChangeset','_onLocalMutation','_updateState','\x20in\x20_schedule.','_initCloseConn','\x0aCurrent:\x20','_singleActiveUnitService','whenReady','data','ws://127.0.0.1:8000/universer-api/comb/connect','_commentUpdate$','?size=','eventID','subunit','_initStatusComponent','clearInterval','SNAPSHOT_HAS_BEEN_REMOVED','SYNCED','objects','/block/','current','_docTransformIMECacheService','status','_getRedoStack','svg','pushState','split','Error\x20on\x20receiving\x20event','clearTimeout','searchParams','YUUMI_RATE_OVER_LIMIT','_changesetReqId','children','memberID','fetch_missing','_collaborationTimeoutTimer','[UniverCollaborationClientPlugin]','deleteCollaborator','onRemoteChangeset','saveOfflineData','online','_decreaseWaiting','colorChannel1','univer-online-status-title','changesets','socketService','_docStateChangeManagerService','3096115XmijwU','pending','height','_labelPosition','displayName','_retryConnectingTimer','commentUpdateEvent','fetchThroughInterceptors','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','unit','getInterceptPoints','includes','image/bmp','has','APPLY_DUPLICATED','min','_colorIndex','_exhaustRemoteChangesetQueue','_members','/universer-api/comb','_substituteRedoStack','_executeRemoteChangeset','getUnit','_startTelemetryCollaborationNewChangeset','RECV','_localeService','_onCursorUpdate','_socket$','transformIMECache','removeParam','_saveCache','updatePermissionPoint','LIVESHARE_NEW_HOST','font','_logService','getActiveSheet','updatePermissionObjEvent','pauseCollaboration','getRenderById','_onConnectionOpen','registerRefRange','_eventUnsubscribe','state','_handleLeaveEvent','row','fillRule','_updateStatus','getUnitOnRev','onSyncEditingCollabCursor','_removeRoom','_revisionService','entries','_collabCursorState$','NO_OTHER_CLIENTS_EDITING','/universer-api/file/{fileID}/sign-url','lineTo','_hideTimer','CONFLICT','InsertRowCommandId','subscribeEvent','univer-online-status','encode','_sheetSkeletonManagerService','conflict.content','/object/','unitID','_unlockTransition','[PendingState]:\x20received\x20acknowledgement.','_entityInit$','assign','rng','_unitOnClients','function','enableSingleActiveInstanceLock','_acknowledgedAwaitingChangeset','deepClone','selections','save','filter','state$','requestParams','push','reverse','_messageService','transformRemoteChangeset','InsertColCommandId','infoRsp','interceptor','COMPRESS_MUTATION_APPLY','error$','collabSubmitChangesetUrl','updateOfflineData','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','reqId','enableAuthServer','responseType','/universer-api/snapshot/','setParam','/universer-api/snapshot','InsertRangeMoveRightCommandId','_scheduleCollaborationTimeoutTimer','max','_updateURLWithCurrentState','_sheetTransformSelectionsService','permission.content','_heartbeatTimer','_initModules','objectType','_handleJoinEvent','symbol','COMMENT_UPDATE','toLowerCase','session.will-retry','transformMutationsWithChangeset','visibilityState','[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.','COMPRESS_MUTATION_SEND','evenodd','uploadFileServerUrl','HEARTBEAT','ENSURE_SNAPSHOT_EXECUTION','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','method','cursorInfo$','USERS_ENTER','startTime','_ws','title','_transitionLocked','roomInfos','close$','history','editingUnit','on-line-single_clip0_910_349','collabStatus.notCollab','collaboration.single-unit.warning','socket\x20close','labelPosition','map','editing\x20status\x20changed\x20to','loadDoc','_transformPreviousActiveRange','FAIL','AWAITING','snapshotServerUrl','_commandService','getOffsetConfig','json','_tryReconnect','string','_hover','_telemetryInfo','_hovered','NOT_FOUND','_socketReady','params','batchAllowed','delete','registerRenderModule','collaborators','defIds','collaboration-client.config','verdancy600','currentTheme$','unit-cache-','saveSheetBlock','_id','APPLY_PERMISSION_DENIED','[SyncedState]:\x20received\x20acknowledgement.','concat','_onFetchMissResult','collaboratorID','_roomMembers','_getAnchorBounding','transformChangesets','LIVESHARE_FETCH_OPERATIONS','none','newValue','_applyRemoteChangeset','session','LIVESHARE_TERMINATE','textRanges','UNKNOWN_CMD','getCollabEntity','isArray','_backgroundColor','_draw','tag','_clearUndo','[CollaborationSession]','_retryCount','getAncestorScale','_compressMutationService','_change$','getCollabCursors$','OnLineSingle','path','_candidateSocket','_drawTextRange','HEADER_MENU','_docTransformSelectionsService','UNIVER_SLIDE','INTERNAL_ERROR','_onConnectionFailed','HEARTBEAT_TIMEOUT','next','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','activeSheet$','LICENSE_IMPORT_SIZE_EXCEEDED','_context','SUBMIT_CHANGESET','MoveRangeCommandId','InsertRangeMoveDownCommandId','_setupBeforeClosingHandler','visibilitychange','CHANGESET_ACK','_onUserLeave','localeService','_waitCount','getResourcesRequest','endRow','color','_onCombEvent','getCurrentRevOfUnit','url(#$1','getUndoRedoMutationParamsCache','_disabled','APPLY_REVISION_CONFILICT','onCommentUpdate','_snapshotService','retryConnectingInterval','image/png','registerHTTPInterceptor','disposeWithMe','roomMembers','update','object','socket$','_sessionStatus$','_loadDoc','univer-pro.collaboration-client.single-active-unit-service','loadOfflineData','DeleteRangeMoveUpCommandId','loadSheet','conflict','type','revision','_httpService','addEventListener','_notificationService','_cursorInfo$','/universer-api/stream/file/upload','OffLineSingle','_listenToOfflineEvent','UnitSnapshot','_http','/allowed','_cachedData','location','message$','_initCommandExecutedListener','_schedule','1618618Ibpdxv','_onCursorDelete','OTHER_CLIENTS_EDITING','getUniverSheetInstance','objectActions','cursorInfo','onMissingChangesets','collab-text-anchor-','_pendingMutations','_snapshotServerService','_initResize','saveImage','_handler','_localStorageService','hidden','m2Prime','_permissionService','_getCurrentRevision','send','image/jpeg','_cursor','addObjects','MSG_FOR_ERROR','drawWith','transformMutation','isActive','awaiting','UNAUTHENTICATED','_clearTimeoutTimer','debug','[DataLoaderController]','failed\x20to\x20apply\x20missed\x20changesets!','onlyLocal','_userManagerService','doc.mutation.rich-text-editing','getTypeOfUnitAdded$','_onOffline','EXCHANGE_SIGN_URL_SERVER_URL_KEY','onPointerMove$','purple300','_shapes','_updateLocalCursor','/universer-api/authz','prototype','_scene','_refreshCollabCursors','_init','/collaborator','saveSnapshot','getCurrentSelections','LICENSE_EXPORT_SIZE_EXCEEDED','popstate','session.room-full','_handleEvent','collab-text-range-','signUrlServerUrl','UNIVER_PROJECT','MUTATION','random','_entities','_removeCollabCursors','fillStyle','getOwnPropertyDescriptor','unitId','get','_drawAnchor','transformStack\x20failed!','collabStatus.syncing','userID','_changesetSessionId','contains','disableLocalCache','7109200ojjROq','_onRemoteACK','getImageSourceCache','APPLY_NON_SEQUENTIAL_REVISION','unknown','transformByState','[PendingState]:\x20received\x20rejection.','init','getViewport','setItem','uni.network.url-service','_startDocCollabCursor','UnitEmbedded','_univerInstanceService','every','_scheduleClearOtherTimer','storage','JOINING','focused$','_color','_replaceFileID','_initRequestHeader','YUUMI_UNABLE_LOAD_URL','_getSnapshotAPIPrefix','telemetry\x20info\x20is\x20not\x20initialized','createElement','clipPath','removeMember','set','[CollaborationSessionService]','_substituteUndoStack','_unitStatus','now','icon','onlineStatus','parse','complete','fetchMiss','idSuffix','url(#on-line-single_clip0_910_349)','_listenToOnlineEvent','_initStatusListener','_getUploadFileURL','unitId\x20is\x20not\x20found','newCsEvent','sessionStatus$','liveShareOperation','_clearScheduledTask','_getSignURL','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','unload','collabStatus.conflict','LEAVE','_config','_docSyncEditingCollabCursorService','stringify','onRemoteAck','_handleHover','_checkMissing','_updateLocalCache','0\x200\x2017\x2016','capture','[CollaborationEntity]','_localCacheService','collaboration.closeRoom','collabStatus.offline','ERROR_IMAGE_TYPE','propertyIsEnumerable','liveShareNewHost','key','_selfUnitIDs','black','/rev/','collabStatus.synced','_refRangeService','getDocRanges','registerComponent','use','_tryEnsureSocket','awaiting_with_pending','disposeUnit','HttpImport','loginUrlKey','CHANGESET_REJ','_remoteChangesetQueue','makeDirty','getActiveRange','sendChangesetTimeout','_transformIMECache','CHANGESET_REVISION_CONFILICT','replaceTextRanges','_uiPartsService','_startCollaboration','RETRY_CONNECTING_MAX_COUNT','generateRandomId','stopTime','getMember','onReady','UniverIcon','_setupSubUnitSync','size','_saveTaskMap','randomUUID','createCollaborator','SNAPSHOT_URL_KEY','_toggleOnline','_instanceService','_urlService','_onUserJoin','#fff','getItem','696243FemLwD','shouldCloseConn','SNAPSHOT_INVALID_SNAPSHOT','_scheduleSaving','\x20to\x20','_beforeCloseService','HttpExport','_state$','_clearOtherTimers','LOGIN_URL_KEY','bottom','getTypeOfUnitDisposed$','put','_memberService','_lastPointer','reject','univer-offline','/object','requireSession','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_getAPIPrefixPath','_getScale','div','className','mutations','_name','UNIVER_SHEET','_removeClearOtherTimer','_sendHeartbeatTimer','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_showConflictNotification','POST','getValue','NEW_CHANGESETS','_sendHeartbeat','2575620VbjeYw','_getMergeRange','_updateSubUnitFromURLParams','_drawRectRange','getCurrentUnitForType','_awaitingChangeset','JOIN','_transformRemoteChangesetByIMECache','getSheetBlock','urlChange$','onCommandExecuted','_undoRedoService','column','univer-online-status-icon','_anchor','open$','getOwnPropertySymbols','routeKey','LICENSE_MAX_UNITS_EXCEEDED','PSEUDO_FETCH_MISSING_RESULT','_createInitialState','flatMap','joinRsp','originalMeta','sid','putCollaborators','_redoStacks','onlineStatusTitle','_registerDependencies','_rescheduleHeartbeat','getConfig','action','getRelativeToViewportCoord','attrs','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_collaborationPaused','getCollabEntity$','updateMember','_socket','&source=','url','synced','withCredentials','resend','clear','enableLocalCache','&assign=','_incrementRevisionNumber','_type','getSkeleton','_collaborationSessionService','addObject','_range','replaceState','collab-rect-range-','moveTo','round','add','getImage','endColumn','_sendingTimer','getWorkbookSelections','values','_renderManagerService','getTime','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_configService','/new_changes','DEFAULT_FILE_NAME','getSheetId','collaboration-session-retry','members','FETCH_MISS','_event$','Warning','_handleHeartbeatEvent','forEach','conflict.title','UNIVER_COLLABORATION_CLIENT_PLUGIN','post','_unitID','transformSelections','_transformUndoredo','_syncEditingCollabCursor','show','_isPermissionRej','setCurrentUser','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UNIVER_UNKNOWN','selection','PENDING','LIVESHARE_REQUEST_HOST','univer-online','_initEventListeners','initWorkbookPermissionChange','_clearLocalCache','objectID','replace','_injector','session.collaboration-timeout','_cursors','then','/unit/','_lockTransition','off-line-single','collabWebSocketUrl','c1Prime','refreshPermission','getMemberID','pipe','univer-pro.collaboration-client-socket-service','...','actions','width','_getUndoStack','onPointerLeave$','roomMembers$'];_0x44a1=function(){return _0x43ab29;};return _0x44a1();}var aa=Object[_0x4d2b9e(0x47b)],ca=Object[_0x4d2b9e(0x298)],ha=(_0x551cc5,_0x4f1e2c,_0x4389a5,_0x4adc81)=>{for(var _0x33a5e8=_0x4adc81>0x1?void 0x0:_0x4adc81?ca(_0x4f1e2c,_0x4389a5):_0x4f1e2c,_0x2dc2ff=_0x551cc5['length']-0x1,_0x2b2521;_0x2dc2ff>=0x0;_0x2dc2ff--)(_0x2b2521=_0x551cc5[_0x2dc2ff])&&(_0x33a5e8=(_0x4adc81?_0x2b2521(_0x4f1e2c,_0x4389a5,_0x33a5e8):_0x2b2521(_0x33a5e8))||_0x33a5e8);return _0x4adc81&&_0x33a5e8&&aa(_0x4f1e2c,_0x4389a5,_0x33a5e8),_0x33a5e8;},Ue=(_0x127f2c,_0x5f19e2)=>(_0x538c9d,_0x21dc78)=>_0x5f19e2(_0x538c9d,_0x21dc78,_0x127f2c);let Mt=class extends _0x1178f7{constructor(_0x25c3d7,_0x27a683,_0x5935da,_0x15ca3b,_0x3831aa){const _0x8bce45=_0x4d2b9e;super(_0x25c3d7,_0x27a683,_0x5935da),this[_0x8bce45(0x453)]=_0x15ca3b,this[_0x8bce45(0x4fb)]=_0x3831aa;}[_0x4d2b9e(0x3e2)](_0x45b0bb,_0x5b8a02){const _0x34ec79=_0x4d2b9e,_0xc9cab8=this[_0x34ec79(0x3a6)](_0x45b0bb);if(_0xc9cab8)try{const _0x59e141=this[_0x34ec79(0x429)](_0xc9cab8,_0x5b8a02);this[_0x34ec79(0x2c0)](_0x45b0bb,_0x59e141);}catch(_0x19ccf5){this['_logService'][_0x34ec79(0x3fd)]('[CollaborationUndoRedoService]',_0x19ccf5),this[_0x34ec79(0x210)](_0x45b0bb);}const _0x9303a2=this[_0x34ec79(0x4c1)](_0x45b0bb);if(_0x9303a2)try{const _0x1bcede=this[_0x34ec79(0x429)](_0x9303a2,_0x5b8a02);this[_0x34ec79(0x4ed)](_0x45b0bb,_0x1bcede);}catch(_0x2b29f1){this[_0x34ec79(0x4fb)][_0x34ec79(0x3fd)](_0x2b29f1),this[_0x34ec79(0x3db)](_0x45b0bb);}}[_0x4d2b9e(0x210)](_0x1e02bf){const _0x7e3131=_0x4d2b9e,_0x531e5b=this[_0x7e3131(0x3a6)](_0x1e02bf);_0x531e5b&&(_0x531e5b[_0x7e3131(0x3b7)]=0x0,this[_0x7e3131(0x507)]());}['_clearRedo'](_0x1c603e){const _0x11e081=_0x4d2b9e,_0x4b709e=this[_0x11e081(0x4c1)](_0x1c603e);_0x4b709e&&(_0x4b709e[_0x11e081(0x3b7)]=0x0,this[_0x11e081(0x507)]());}['_substituteUndoStack'](_0x3b855a,_0x427ed7){const _0x4d8f7f=_0x4d2b9e;this[_0x4d8f7f(0x478)]['set'](_0x3b855a,_0x427ed7),this[_0x4d8f7f(0x507)]();}[_0x4d2b9e(0x4ed)](_0x4c05b3,_0x199b39){const _0x28945b=_0x4d2b9e;this[_0x28945b(0x34e)][_0x28945b(0x2be)](_0x4c05b3,_0x199b39),this[_0x28945b(0x507)]();}[_0x4d2b9e(0x429)](_0x39bbcf,_0x31139e){const _0x573c05=_0x4d2b9e,_0x46fe68=[];let _0x3014f6=_0x31139e,_0x18834e=_0x31139e;for(let _0x14aa13=_0x39bbcf[_0x573c05(0x3b7)]-0x1;_0x14aa13>=0x0;_0x14aa13--){const {unitID:_0x1b013d,undoMutations:_0x3c864d,redoMutations:_0x4e5452}=_0x39bbcf[_0x14aa13],_0x200624=this[_0x573c05(0x453)][_0x573c05(0x54a)](_0x3014f6,_0x3c864d),_0x55393c=this[_0x573c05(0x453)][_0x573c05(0x54a)](_0x18834e,_0x4e5452);if(_0x18bdc2(_0x200624)||_0x18bdc2(_0x55393c)){this[_0x573c05(0x4fb)][_0x573c05(0x3fd)]('[CollaborationUndoRedoService]',_0x573c05(0x29c),_0x200624,_0x55393c);break;}_0x3014f6=_0x200624[_0x573c05(0x39e)],_0x18834e=_0x55393c[_0x573c05(0x39e)],_0x46fe68[_0x573c05(0x52a)]({'unitID':_0x1b013d,'undoMutations':_0x200624[_0x573c05(0x269)],'redoMutations':_0x55393c[_0x573c05(0x269)]});}return _0x46fe68[_0x573c05(0x52b)]();}};Mt=ha([Ue(0x0,_0x5dad13),Ue(0x1,_0x58f975),Ue(0x2,_0x31f21a),Ue(0x3,_0x13d98e),Ue(0x4,_0x4872ae)],Mt);class la extends _0x422fed{constructor(){const _0x2a3b7b=_0x4d2b9e;super(),l(this,'urlChange$'),this[_0x2a3b7b(0x33d)]=_0x278262(window,_0x2a3b7b(0x28d))[_0x2a3b7b(0x3a1)](_0x1c623f(this[_0x2a3b7b(0x419)]),_0x2cc9d1(0x1),_0x1afef5(void 0x0));}[_0x4d2b9e(0x53a)](_0x44c680,_0x23a5fa,_0xb78f66=!0x1){const _0x19c103=_0x4d2b9e,_0x221e0a=new URL(window[_0x19c103(0x256)]['href']);_0x221e0a[_0x19c103(0x4c7)][_0x19c103(0x2be)](_0x44c680,_0x23a5fa),_0xb78f66?window[_0x19c103(0x1d7)]['replaceState']('','',_0x221e0a[_0x19c103(0x452)]()):window[_0x19c103(0x1d7)][_0x19c103(0x4c3)]('','',_0x221e0a['toString']());}[_0x4d2b9e(0x4f6)](_0x59d075,_0x52abe7=!0x1){const _0x5d5f3a=_0x4d2b9e,_0x242584=new URL(window[_0x5d5f3a(0x256)][_0x5d5f3a(0x463)]);_0x242584[_0x5d5f3a(0x4c7)][_0x5d5f3a(0x1f1)](_0x59d075),_0x52abe7?window[_0x5d5f3a(0x1d7)][_0x5d5f3a(0x369)]('','',_0x242584[_0x5d5f3a(0x452)]()):window[_0x5d5f3a(0x1d7)][_0x5d5f3a(0x4c3)]('','',_0x242584['toString']());}[_0x4d2b9e(0x42b)](_0x18354c){const _0x4a411d=_0x4d2b9e;var _0xf52c04;return(_0xf52c04=new URL(window['location'][_0x4a411d(0x463)])['searchParams'][_0x4a411d(0x29a)](_0x18354c))!=null?_0xf52c04:void 0x0;}}var Js=Object['defineProperty'],_a=Object[_0x4d2b9e(0x298)],ua=(_0x210781,_0x3a1acd,_0x2c66be)=>_0x3a1acd in _0x210781?Js(_0x210781,_0x3a1acd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c66be}):_0x210781[_0x3a1acd]=_0x2c66be,da=(_0x495e1a,_0x3482b3,_0x3a08e7,_0x5516ec)=>{const _0x9a4a4e=_0x4d2b9e;for(var _0x2e4b25=_0x5516ec>0x1?void 0x0:_0x5516ec?_a(_0x3482b3,_0x3a08e7):_0x3482b3,_0x281f65=_0x495e1a[_0x9a4a4e(0x3b7)]-0x1,_0x250869;_0x281f65>=0x0;_0x281f65--)(_0x250869=_0x495e1a[_0x281f65])&&(_0x2e4b25=(_0x5516ec?_0x250869(_0x3482b3,_0x3a08e7,_0x2e4b25):_0x250869(_0x2e4b25))||_0x2e4b25);return _0x5516ec&&_0x2e4b25&&Js(_0x3482b3,_0x3a08e7,_0x2e4b25),_0x2e4b25;},Ve=(_0x2762cb,_0x1c9d0c)=>(_0x3bd918,_0x53c5ff)=>_0x1c9d0c(_0x3bd918,_0x53c5ff,_0x2762cb),fa=(_0x2c96c5,_0x5a0213,_0x517eb0)=>ua(_0x2c96c5,_0x5a0213+'',_0x517eb0);const ma=_0x4d2b9e(0x382);let At=class extends _0x33e2e4{constructor(_0x588273=An,_0x1d56e2,_0x29ee08,_0x19ff54,_0x440196){const _0x36777f=_0x4d2b9e;super(),this[_0x36777f(0x2d7)]=_0x588273,this[_0x36777f(0x4fb)]=_0x1d56e2,this['_renderManagerService']=_0x29ee08,this[_0x36777f(0x396)]=_0x19ff54,this[_0x36777f(0x376)]=_0x440196;const {..._0x338fb5}=this[_0x36777f(0x2d7)];this[_0x36777f(0x376)]['setConfig']($,_0x338fb5);}[_0x4d2b9e(0x433)](){const _0x27bafb=_0x4d2b9e;this[_0x27bafb(0x350)](),_0x438f99(this[_0x27bafb(0x396)],[[ve],[Je],[et]]);}[_0x4d2b9e(0x303)](){const _0x4c3f49=_0x4d2b9e;_0x438f99(this[_0x4c3f49(0x396)],[[ze]]);}[_0x4d2b9e(0x4a0)](){const _0x54237c=_0x4d2b9e;this[_0x54237c(0x3e7)]();}[_0x4d2b9e(0x350)](){const _0x5e1d2e=_0x4d2b9e;var _0x420029,_0x147216,_0x239f43,_0x2bcb46;this[_0x5e1d2e(0x396)][_0x5e1d2e(0x4e6)](_0x5a5587)&&this[_0x5e1d2e(0x4fb)]['error'](_0x5e1d2e(0x4ce),_0x5e1d2e(0x2d3));let _0xc13c3d=[[_0x5a5587,{'useClass':Mt}],[he],[Gt],[_0x5e0b3d],[qs,{'useClass':la}],[ce],[w],[_0xbe274e],[Ke],[Xe],[Ye],[Ft],[Ze],[Qe],[Bs],[et],[ks,{'useClass':(_0x147216=(_0x420029=this[_0x5e1d2e(0x2d7)])==null?void 0x0:_0x420029[_0x5e1d2e(0x4d7)])!=null?_0x147216:Ct}],[_0x555a55,{'useClass':_0x30efa8}],[_0x4a5b4e,{'useClass':Nt}],[_0x33c527,{'useClass':yt}],[_0x3279d3,{'useClass':Ut}],[Le],[Je],[Me],[ze],[ve]];(_0x239f43=this[_0x5e1d2e(0x2d7)])!=null&&_0x239f43[_0x5e1d2e(0x522)]&&_0xc13c3d[_0x5e1d2e(0x52a)]([tt,{'useClass':fr}]),_0xc13c3d=_0x1b7a17(_0xc13c3d,(_0x2bcb46=this[_0x5e1d2e(0x2d7)])==null?void 0x0:_0x2bcb46['override']),_0xc13c3d[_0x5e1d2e(0x380)](_0xfd7cbe=>this[_0x5e1d2e(0x396)][_0x5e1d2e(0x36d)](_0xfd7cbe)),this[_0x5e1d2e(0x543)]();}[_0x4d2b9e(0x3e7)](){const _0xa10723=_0x4d2b9e;this[_0xa10723(0x23d)](this[_0xa10723(0x373)]['registerRenderModule'](_0x20a2e2[_0xa10723(0x447)],[wt])),this[_0xa10723(0x23d)](this[_0xa10723(0x373)][_0xa10723(0x1f2)](_0x20a2e2[_0xa10723(0x32b)],[Pt]));}['_initModules'](){const _0x26620c=_0x4d2b9e;var _0x1ac8ea,_0xc1fb71;this[_0x26620c(0x396)][_0x26620c(0x29a)](_0x5e0b3d)[_0x26620c(0x23c)]({'priority':0x14,'interceptor':_0x583f8f({'maxParallel':0x6})}),this[_0x26620c(0x396)]['get'](Qe),(_0x1ac8ea=this[_0x26620c(0x2d7)])!=null&&_0x1ac8ea[_0x26620c(0x3c1)]||this[_0x26620c(0x396)][_0x26620c(0x29a)](w)[_0x26620c(0x2a1)](),(_0xc1fb71=this[_0x26620c(0x2d7)])!=null&&_0xc1fb71[_0x26620c(0x537)]&&this['_injector'][_0x26620c(0x29a)](Ze),this[_0x26620c(0x396)][_0x26620c(0x29a)](Le),this[_0x26620c(0x396)][_0x26620c(0x4e6)](Me)&&this[_0x26620c(0x396)][_0x26620c(0x29a)](Me);}};fa(At,_0x4d2b9e(0x444),ma),At=da([_0x467f42(_0x2cc2c3),Ve(0x1,_0x4872ae),Ve(0x2,_0x1c6d4f),Ve(0x3,_0x3a6c9c(_0x51895d)),Ve(0x4,_0x542b48)],At);export{ko as AUTHZ_URL_KEY,yt as AuthzIoHttpService,yn as COLLAB_SUBMIT_CHANGESET_URL_KEY,En as COLLAB_WEB_SOCKET_URL_KEY,Le as CollaborationController,qe as CollaborationEntity,bt as CollaborationSession,he as CollaborationSessionService,Ct as CollaborationSocketService,P as CollaborationStatus,Eo as CollaborationStatusDisplay,Bs as CommentService,Je as DataLoaderController,Me as DesktopCollaborationStatusDisplayController,Tt as DocCollaborationEntity,bn as HEARTBEAT_INTERVAL_KEY,$s as HEARTBEAT_TIMEOUT_KEY,ks as ICollaborationSocketService,qs as IURLService,Ut as ImageIoService,wn as LOCAL_CACHE_INTERVAL_KEY,Nn as LOGIN_URL_KEY,w as LocalCacheService,On as RETRY_CONNECTING_MAX_COUNT_KEY,La as SEND_CHANGESET_TIMEOUT_KEY,Sn as SNAPSHOT_SERVER_URL_KEY,vn as SNAPSHOT_URL_KEY,Y as SessionStatus,to as SheetCollabCursorShape,Rt as SheetCollaborationEntity,Nt as SnapshotServerOverHTTPService,At as UniverCollaborationClientPlugin,la as WebURLService,Ln as deserializeToCombResponse,$n as serializeCombRequest};
|